beancount-gs/public/static/js/668.c1806339.chunk.js

1 line
19 KiB
JavaScript
Raw Normal View History

2024-10-29 05:40:39 +00:00
"use strict";(self.webpackChunkbeancount_web=self.webpackChunkbeancount_web||[]).push([[668],{5069:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(9379),a=r(9284);const 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"};var l=r(3768),i=function(e,t){return a.createElement(l.A,(0,n.A)((0,n.A)({},e),{},{ref:t,icon:o}))};const c=a.forwardRef(i)},6668:(e,t,r)=>{r.d(t,{A:()=>pe});var n=r(713),a=r(4467),o=r(8168),l=r(436),i=r(4480),c=r.n(i),u=r(7285),s=r(9284),d=r(3135),f=r(259),m=r(5544);function p(e){var t=s.useState(e),r=(0,m.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 v=[];function h(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 g(e){var t=e.help,r=e.helpStatus,i=e.errors,m=void 0===i?v:i,g=e.warnings,b=void 0===g?v:g,A=e.className,y=e.fieldId,w=e.onVisibleChanged,C=s.useContext(n.hb).prefixCls,E=s.useContext(d.QO).getPrefixCls,x="".concat(C,"-item-explain"),O=E(),k=p(m),N=p(b),M=s.useMemo((function(){return void 0!==t&&null!==t?[h(t,r,"help")]:[].concat((0,l.A)(k.map((function(e,t){return h(e,"error","error",t)}))),(0,l.A)(N.map((function(e,t){return h(e,"warning","warning",t)}))))}),[t,r,k,N]),F={};return y&&(F.id="".concat(y,"_help")),s.createElement(u.Ay,{motionDeadline:f.Ay.motionDeadline,motionName:"".concat(O,"-show-help"),visible:!!M.length,onVisibleChanged:w},(function(e){var t=e.className,r=e.style;return s.createElement("div",(0,o.A)({},F,{className:c()(x,t,A),style:r,role:"alert"}),s.createElement(u.aF,(0,o.A)({keys:M},f.Ay,{motionName:"".concat(O,"-show-help-item"),component:!1}),(function(e){var t=e.key,r=e.error,n=e.errorStatus,o=e.className,l=e.style;return s.createElement("div",{key:t,className:c()(o,(0,a.A)({},"".concat(x,"-").concat(n),n)),style:l},r)})))}))}var b=r(2284),A=r(5533),y=r(1151),w=r(9416),C=r(4855);function E(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function x(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function O(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return x(r.overflowY,t)||x(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,l,i){return o<e&&l>t||o>e&&l<t?0:o<=e&&i<=r||l>=t&&i>=r?o-e-n:l>t&&i<r||o<e&&i>r?l-t+a:0}var N=function(e,t){var r=window,n=t.scrollMode,a=t.block,o=t.inline,l=t.boundary,i=t.skipOverflowHiddenElements,c="function"==typeof l?l:function(e){return e!==l};if(!E(e))throw new TypeError("Invalid target");for(var u,s,d=document.scrollingElement||document.documentElement,f=[],m=e;E(m)&&c(m);){if((m=null==(s=(u=m).parentElement)?u.getRootNode().host||null:s)===d){f.push(m);break}null!=m&&m===document.body&&O(m)&&!O(document.documentElement)||null!=m&&O(m,i)&&f.push(m)}for(var p=r.visualViewport?r.visualViewport.width:innerWidth,v=r.visualViewport?r.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),A=b.height,y=b.width,w=b.top,C=b.right,x=b.bottom,N=b.left,M="start"===a||"nearest