beancount-gs/public/static/js/15.a5c0b7e2.chunk.js

1 line
37 KiB
JavaScript
Raw Normal View History

2024-03-10 15:29:20 +00:00
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[15],{147:function(e,t,n){"use strict";var r=n(1),a=n(14),o=n(15),c=n(19),l=n(20),i=n(0),s=n(5);t.a=function(e){return function(t){Object(c.a)(i,t);var n=Object(l.a)(i);function i(){var e;Object(a.a)(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).defaultCommodity={currency:"CNY",symbol:"\uffe5"},e.currentCommodity=window.localStorage.getItem("ledgerCurrency"),e}return Object(o.a)(i,[{key:"render",value:function(){return Object(s.jsx)(e,Object(r.a)(Object(r.a)({},this.props),{},{commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity}))}}]),i}(i.Component)}},193:function(e,t,n){"use strict";var r=n(1),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(11),l=function(e,t){return a.createElement(c.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:o}))};l.displayName="QuestionCircleOutlined";t.a=a.forwardRef(l)},256:function(e,t,n){"use strict";var r=n(90),a=n(3),o=n(2),c=n(6),l=n(8),i=n.n(l),s=n(35),u=n(0),d=n(39),f=n(44),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 b=[];function v(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?b:l,h=e.warnings,O=void 0===h?b:h,j=e.className,g=e.fieldId,y=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),S=u.useMemo((function(){return void 0!==t&&null!==t?[v(t,n,"help")]:[].concat(Object(c.a)(N.map((function(e,t){return v(e,"error","error",t)}))),Object(c.a)(k.map((function(e,t){return v(e,"warning","warning",t)}))))}),[t,n,N,k]),M={};return g&&(M.id="".concat(g,"_help")),u.createElement(s.b,{motionDeadline:f.a.motionDeadline,motionName:"".concat(E,"-show-help"),visible:!!S.length,onVisibleChanged:y},(function(e){var t=e.className,n=e.style;return u.createElement("div",Object(o.a)({},M,{className:i()(x,t,j),style:n,role:"alert"}),u.createElement(s.a,Object(o.a)({keys:S},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(9),j=n(92),g=n(66),y=n(54),C=n(97);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.skipOverf