beancount-gs/public/static/js/12.aecf39db.chunk.js

1 line
15 KiB
JavaScript
Raw Permalink Normal View History

2021-12-04 05:23:22 +00:00
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[12],{120:function(e,t,n){var a=n(72),r=n(121),c=n(94),i=Math.max,o=Math.min;e.exports=function(e,t,n){var s,l,u,p,d,f,m=0,b=!1,h=!1,j=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=s,a=l;return s=l=void 0,m=t,p=e.apply(a,n)}function g(e){return m=e,d=setTimeout(O,t),b?v(e):p}function y(e){var n=e-f;return void 0===f||n>=t||n<0||h&&e-m>=u}function O(){var e=r();if(y(e))return x(e);d=setTimeout(O,function(e){var n=t-(e-f);return h?o(n,u-(e-m)):n}(e))}function x(e){return d=void 0,j&&s?v(e):(s=l=void 0,p)}function S(){var e=r(),n=y(e);if(s=arguments,l=this,f=e,n){if(void 0===d)return g(f);if(h)return clearTimeout(d),d=setTimeout(O,t),v(f)}return void 0===d&&(d=setTimeout(O,t)),p}return t=c(t)||0,a(n)&&(b=!!n.leading,u=(h="maxWait"in n)?i(c(n.maxWait)||0,t):u,j="trailing"in n?!!n.trailing:j),S.cancel=function(){void 0!==d&&clearTimeout(d),m=0,s=f=l=d=void 0},S.flush=function(){return void 0===d?p:x(r())},S}},121:function(e,t,n){var a=n(55);e.exports=function(){return a.Date.now()}},122:function(e,t,n){var a=n(123),r=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(r,""):e}},123:function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},209:function(e,t,n){"use strict";var a=n(3),r=n(40),c=n(45),i=n(47),o=n(48),s=n(49),l=n(0),u=n(39),p=n.n(u),d=n(52),f=n(120),m=n.n(f),b=n(222),h=n(66),j=n(59),v=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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},g=(Object(h.a)("small","default","large"),null);var y=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var i;Object(c.a)(this,n),(i=t.call(this,e)).debouncifyUpdateSpinning=function(e){var t=(e||i.props).delay;t&&(i.cancelExistingSpin(),i.updateSpinning=m()(i.originalUpdateSpinning,t))},i.updateSpinning=function(){var e=i.props.spinning;i.state.spinning!==e&&i.setState({spinning:e})},i.renderSpin=function(e){var t,n=e.getPrefixCls,c=e.direction,o=i.props,s=o.prefixCls,u=o.className,f=o.size,m=o.tip,b=o.wrapperClassName,h=o.style,y=v(o,["prefixCls","className","size","tip","wrapperClassName","style"]),O=i.state.spinning,x=n("spin",s),S=p()(x,(t={},Object(r.a)(t,"".concat(x,"-sm"),"small"===f),Object(r.a)(t,"".concat(x,"-lg"),"large"===f),Object(r.a)(t,"".concat(x,"-spinning"),O),Object(r.a)(t,"".concat(x,"-show-text"),!!m),Object(r.a)(t,"".concat(x,"-rtl"),"rtl"===c),t),u),N=Object(d.a)(y,["spinning","delay","indicator"]),w=l.createElement("div",Object(a.a)({},N,{style:h,className:S}),function(e,t){var n=t.indicator,a="".concat(e,"-dot");return null===n?null:Object(j.b)(n)?Object(j.a)(n,{className:p()(n.props.className,a)}):Object(j.b)(g)?Object(j.a)(g,{className:p()(g.props.className,a)}):l.createElement("span",{className:p()(a,"".concat(e,"-dot-spin"))},l.createElement("i",{className:"".concat(e,"-dot-item")}),l.createElement("i",{className:"".concat(e,"-dot-item")}),l.createElement("i",{className:"".concat(e,"-dot-item")}),l.createElement("i",{className:"".concat(e,"-dot-item")}))}(x,i.props),m?l.createElement("div",{className:"".concat(x,"-text")},m):null);if(i.isNestedPattern()){var k=p()("".concat(x,"-container"),Object(r.a)({},"".concat(x,"-blur"),O));return l.createElement("div",Object(a.a)({},N,{className:p()("".concat(x,"-nested-loading"),b)}),O&&l.createElement("div",{key:"loading"},w),l.createElement("div",{className:k,key:"container"},i.props.children))}return w};var o=e.spinning,s=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,e.delay);return i.state={spinning:o&&!s},i.originalUpdateSpinning=i.updateSpinning,i.debouncifyUpdateSpinning(e),i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(