1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
|
|
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[13],{188:function(e,t,n){"use strict";var a=n(0),c=n(5);t.a=e=>class extends a.Component{constructor(){super(...arguments),this.defaultCommodity={currency:"CNY",symbol:"\uffe5"},this.currentCommodity=window.localStorage.getItem("ledgerCurrency")}render(){return Object(c.jsx)(e,{...this.props,commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity})}}},189:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},197:function(e,t,n){var a=n(208),c=n(189),r=n(132),i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=o.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},206:function(e,t,n){var a=n(189),c=n(207),r=n(197),i=Math.max,o=Math.min;e.exports=function(e,t,n){var s,l,u,d,m,f,p=0,b=!1,h=!1,j=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function O(t){var n=s,a=l;return s=l=void 0,p=t,d=e.apply(a,n)}function v(e){var n=e-f;return void 0===f||n>=t||n<0||h&&e-p>=u}function y(){var e=c();if(v(e))return x(e);m=setTimeout(y,function(e){var n=t-(e-f);return h?o(n,u-(e-p)):n}(e))}function x(e){return m=void 0,j&&s?O(e):(s=l=void 0,d)}function g(){var e=c(),n=v(e);if(s=arguments,l=this,f=e,n){if(void 0===m)return function(e){return p=e,m=setTimeout(y,t),b?O(e):d}(f);if(h)return clearTimeout(m),m=setTimeout(y,t),O(f)}return void 0===m&&(m=setTimeout(y,t)),d}return t=r(t)||0,a(n)&&(b=!!n.leading,u=(h="maxWait"in n)?i(r(n.maxWait)||0,t):u,j="trailing"in n?!!n.trailing:j),g.cancel=function(){void 0!==m&&clearTimeout(m),p=0,s=f=l=m=void 0},g.flush=function(){return void 0===m?d:x(c())},g}},207:function(e,t,n){var a=n(131);e.exports=function(){return a.Date.now()}},208:function(e,t,n){var a=n(209),c=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(c,""):e}},209:function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},217:function(e,t,n){"use strict";var a=n(3),c=n(1),r=n(4),i=n(10),o=n.n(i),s=n(206),l=n.n(s),u=n(68),d=n(0),m=n(42),f=n(56),p=n(47),b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(e);c<a.length;c++)t.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(n[a[c]]=e[a[c]])}return n},h=(Object(p.a)("small","default","large"),null);var j=function(e){var t=e.spinPrefixCls,n=e.spinning,i=void 0===n||n,s=e.delay,p=e.className,j=e.size,O=void 0===j?"default":j,v=e.tip,y=e.wrapperClassName,x=e.style,g=e.children,C=b(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),N=d.useState((function(){return i&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(i,s)})),E=Object(r.a)(N,2),w=E[0],k=E[1];d.useEffect((function(){var e=l()((function(){k(i)}),s);return e(),function(){var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}),[s,i]);var S=function(n){var r=n.direction,i=o()(t,Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},"".concat(t,"-sm"),"small"===O),"".concat(t,"-lg"),"large"===O),"".concat(t,"-spinning"),w),"".concat(t,"-show-text"),!!v),"".concat(t,"-rtl"),"rtl"===r),p),s=Object(u.a)(C,["indicator","prefixCls"]),l=d.createElement("div",Object(a.a)({},s,{style:x,className:i,"aria-live":"polite","aria-busy":w}),function(e,t){var n=t.indicator,a="".concat(e,"-dot");return null===n?null:Object(f.c)(n)?Object(f.a)(n,{className:o()(n.props.className,a)}):Object(f.c)(h)?Object(f.a)(h,{className:o()(h.props.className,a)}):d.createElement("span",{className:o()(a,"".concat(e,"-dot-spin"))},d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}),d.create
|