1 line
36 KiB
JavaScript
1 line
36 KiB
JavaScript
|
|
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[15],{188:function(e,t,n){"use strict";var r=n(0),a=n(5);t.a=e=>class extends r.Component{constructor(){super(...arguments),this.defaultCommodity={currency:"CNY",symbol:"\uffe5"},this.currentCommodity=window.localStorage.getItem("ledgerCurrency")}render(){return Object(a.jsx)(e,{...this.props,commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity})}}},224:function(e,t,n){"use strict";var r=n(2),a=n(0),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},c=n(12),l=function(e,t){return a.createElement(c.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:o}))},i=a.forwardRef(l);t.a=i},275:function(e,t,n){"use strict";var r=n(99),a=n(1),o=n(3),c=n(6),l=n(10),i=n.n(l),s=n(39),u=n(0),d=n(42),f=n(48),m=n(4);function p(e){var t=u.useState(e),n=Object(m.a)(t,2),r=n[0],a=n[1];return u.useEffect((function(){var t=setTimeout((function(){a(e)}),e.length?0:10);return function(){clearTimeout(t)}}),[e]),r}var v=[];function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"===typeof e?e:"".concat(n,"-").concat(r),error:e,errorStatus:t}}function h(e){var t=e.help,n=e.helpStatus,l=e.errors,m=void 0===l?v:l,h=e.warnings,O=void 0===h?v:h,g=e.className,y=e.fieldId,j=e.onVisibleChanged,C=u.useContext(r.c).prefixCls,w=u.useContext(d.b).getPrefixCls,x="".concat(C,"-item-explain"),E=w(),N=p(m),k=p(O),M=u.useMemo((function(){return void 0!==t&&null!==t?[b(t,n,"help")]:[].concat(Object(c.a)(N.map((function(e,t){return b(e,"error","error",t)}))),Object(c.a)(k.map((function(e,t){return b(e,"warning","warning",t)}))))}),[t,n,N,k]),S={};return y&&(S.id="".concat(y,"_help")),u.createElement(s.b,{motionDeadline:f.a.motionDeadline,motionName:"".concat(E,"-show-help"),visible:!!M.length,onVisibleChanged:j},(function(e){var t=e.className,n=e.style;return u.createElement("div",Object(o.a)({},S,{className:i()(x,t,g),style:n,role:"alert"}),u.createElement(s.a,Object(o.a)({keys:M},f.a,{motionName:"".concat(E,"-show-help-item"),component:!1}),(function(e){var t=e.key,n=e.error,r=e.errorStatus,o=e.className,c=e.style;return u.createElement("div",{key:t,className:i()(o,Object(a.a)({},"".concat(x,"-").concat(r),r)),style:c},n)})))}))}var O=n(7),g=n(101),y=n(70),j=n(57),C=n(108);function w(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function x(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function E(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return x(n.overflowY,t)||x(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function N(e,t,n,r,a,o,c,l){return o<e&&c>t||o>e&&c<t?0:o<=e&&l<=n||c>=t&&l>=n?o-e-r:c>t&&l<n||o<e&&l>n?c-t+a:0}var k=function(e,t){var n=window,r=t.scrollMode,a=t.block,o=t.inline,c=t.boundary,l=t.skipOverflowHiddenElements,i="function"==typeof c?c:function(e){return e!==c};if(!w(e))throw new TypeError("Invalid target");for(var s,u,d=document.scrollingElement||document.documentElement,f=[],m=e;w(m)&&i(m);){if((m=null==(u=(s=m).parentElement)?s.getRootNode().host||null:u)===d){f.push(m);break}null!=m&&m===document.body
|