1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
|
|
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[4],{224:function(e,t,r){"use strict";var n=r(2),a=r(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=r(12),l=function(e,t){return a.createElement(c.a,Object(n.a)(Object(n.a)({},e),{},{ref:t,icon:o}))},i=a.forwardRef(l);t.a=i},275:function(e,t,r){"use strict";var n=r(99),a=r(1),o=r(3),c=r(6),l=r(10),i=r.n(l),u=r(39),s=r(0),d=r(42),f=r(48),b=r(4);function m(e){var t=s.useState(e),r=Object(b.a)(t,2),n=r[0],a=r[1];return s.useEffect((function(){var t=setTimeout((function(){a(e)}),e.length?0:10);return function(){clearTimeout(t)}}),[e]),n}var p=[];function v(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"===typeof e?e:"".concat(r,"-").concat(n),error:e,errorStatus:t}}function h(e){var t=e.help,r=e.helpStatus,l=e.errors,b=void 0===l?p:l,h=e.warnings,g=void 0===h?p:h,O=e.className,j=e.fieldId,y=e.onVisibleChanged,w=s.useContext(n.c).prefixCls,C=s.useContext(d.b).getPrefixCls,E="".concat(w,"-item-explain"),x=C(),k=m(b),N=m(g),I=s.useMemo((function(){return void 0!==t&&null!==t?[v(t,r,"help")]:[].concat(Object(c.a)(k.map((function(e,t){return v(e,"error","error",t)}))),Object(c.a)(N.map((function(e,t){return v(e,"warning","warning",t)}))))}),[t,r,k,N]),M={};return j&&(M.id="".concat(j,"_help")),s.createElement(u.b,{motionDeadline:f.a.motionDeadline,motionName:"".concat(x,"-show-help"),visible:!!I.length,onVisibleChanged:y},(function(e){var t=e.className,r=e.style;return s.createElement("div",Object(o.a)({},M,{className:i()(E,t,O),style:r,role:"alert"}),s.createElement(u.a,Object(o.a)({keys:I},f.a,{motionName:"".concat(x,"-show-help-item"),component:!1}),(function(e){var t=e.key,r=e.error,n=e.errorStatus,o=e.className,c=e.style;return s.createElement("div",{key:t,className:i()(o,Object(a.a)({},"".concat(E,"-").concat(n),n)),style:c},r)})))}))}var g=r(7),O=r(101),j=r(70),y=r(57),w=r(108);function C(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function E(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function x(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return E(r.overflowY,t)||E(r.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 k(e,t,r,n,a,o,c,l){return o<e&&c>t||o>e&&c<t?0:o<=e&&l<=r||c>=t&&l>=r?o-e-n:c>t&&l<r||o<e&&l>r?c-t+a:0}var N=function(e,t){var r=window,n=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(!C(e))throw new TypeError("Invalid target");for(var u,s,d=document.scrollingElement||document.documentElement,f=[],b=e;C(b)&&i(b);){if((b=null==(s=(u=b).parentElement)?u.getRootNode().host||null:s)===d){f.push(b);break}null!=b&&b===document.body&&x(b)&&!x(document.documentElement)||null!=b&&x(b,l)&&f.push(b)}for(var m=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),O=g.height,j=g.width,y=g.top,w=g.right,E=g.bottom,N=g.left,I="start"===a||"nearest"===a?y:"end"===a?E:y+O/2,M="ce
|