filesbox/web/dist/99567.2ad37727.async.js

2 lines
10 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[99567],{41412:function(){},86743:function(xe,p,a){"use strict";var b=a(22122),i=a(28481),G=a(30470),$=a(67294),V=a(71577),re=a(73839);function X(j){return!!(j&&!!j.then)}var n=function(P){var D=$.useRef(!1),K=$.useRef(null),q=(0,G.Z)(!1),W=(0,i.Z)(q,2),le=W[0],Y=W[1],w=P.close,U=function(){w==null||w.apply(void 0,arguments)};$.useEffect(function(){var S=null;return P.autoFocus&&(S=setTimeout(function(){var O;(O=K.current)===null||O===void 0||O.focus()})),function(){S&&clearTimeout(S)}},[]);var ee=function(O){!X(O)||(Y(!0),O.then(function(){Y(!1,!0),U.apply(void 0,arguments),D.current=!1},function(I){console.error(I),Y(!1,!0),D.current=!1}))},ce=function(O){var I=P.actionFn;if(!D.current){if(D.current=!0,!I){U();return}var B;if(P.emitEvent){if(B=I(O),P.quitOnNullishReturnValue&&!X(B)){D.current=!1,U(O);return}}else if(I.length)B=I(w),D.current=!1;else if(B=I(),!B){U();return}ee(B)}},te=P.type,ie=P.children,ue=P.prefixCls,ne=P.buttonProps;return $.createElement(V.Z,(0,b.Z)({},(0,re.n)(te),{onClick:ce,loading:le,prefixCls:ue},ne,{ref:K}),ie)};p.Z=n},50146:function(xe,p,a){"use strict";a.d(p,{Z:function(){return we}});var b=a(85061),i=a(22122),G=a(15873),$=a(73218),V=a(57119),re=a(68628),X=a(38135),n=a(67294),j=a(39559),P=a(96156),D=a(94184),K=a.n(D),q=a(86743),W=a(33603),le=a(54549),Y=a(57315),w=a(71577),U=a(73839),ee=a(53124),ce=a(65223),te=a(42051),ie=a(4173),ue=a(31808),ne=a(83008),S=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)e.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(r[o[l]]=t[o[l]]);return r},O,I=function(e){O={x:e.pageX,y:e.pageY},setTimeout(function(){O=null},100)};(0,ue.jD)()&&document.documentElement.addEventListener("click",I,!0);var B=function(e){var r,o,l=n.useContext(ee.E_),u=l.getPopupContainer,v=l.getPrefixCls,Z=l.direction,s=function(m){var R=e.onCancel;R==null||R(m)},C=function(m){var R=e.onOk;R==null||R(m)},f=e.prefixCls,c=e.footer,d=e.visible,g=e.open,y=g===void 0?!1:g,h=e.wrapClassName,x=e.centered,E=e.getContainer,N=e.closeIcon,k=e.focusTriggerAfterClose,F=k===void 0?!0:k,T=e.width,L=T===void 0?520:T,H=S(e,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),M=v("modal",f),oe=v(),se=n.createElement(te.Z,{componentName:"Modal",defaultLocale:(0,ne.A)()},function(Q){var m=e.okText,R=e.okType,ve=R===void 0?"primary":R,me=e.cancelText,ae=e.confirmLoading,Ce=ae===void 0?!1:ae;return n.createElement(n.Fragment,null,n.createElement(w.Z,(0,i.Z)({onClick:s},e.cancelButtonProps),me||Q.cancelText),n.createElement(w.Z,(0,i.Z)({},(0,U.n)(ve),{loading:Ce,onClick:C},e.okButtonProps),m!=null?m:Q.okText))}),fe=n.createElement("span",{className:"".concat(M,"-close-x")},N||n.createElement(le.Z,{className:"".concat(M,"-close-icon")})),de=K()(h,(r={},(0,P.Z)(r,"".concat(M,"-centered"),!!x),(0,P.Z)(r,"".concat(M,"-wrap-rtl"),Z==="rtl"),r));return n.createElement(ie.BR,null,n.createElement(ce.Ux,{status:!0,override:!0},n.createElement(Y.Z,(0,i.Z)({width:L},H,{getContainer:E===void 0?u:E,prefixCls:M,wrapClassName:de,footer:c===void 0?se:c,visible:y||d,mousePosition:(o=H.mousePosition)!==null&&o!==void 0?o:O,onClose:s,closeIcon:fe,focusTriggerAfterClose:F,transitionName:(0,W.mL)(oe,"zoom",e.transitionName),maskTransitionName:(0,W.mL)(oe,"fade",e.maskTransitionName)}))))},ge=B,be=function(e){var r=e.icon,o=e.onCancel,l=e.onOk,u=e.close,v=e.zIndex,Z=e.afterClose,s=e.visible,C=e.open,f=e.keyboard,c=e.centered,d=e.getContainer,g=e.maskStyle,y=e.okText,h=e.okButtonProps,x=e.cancelText,E=e.cancelButtonProps,N=e.direction,k=e.prefixCls,F=e.wrapClassName,T=e.rootPrefixCls,L=e.iconPrefixCls,H=e.bodyStyle,M=e.closable,oe=M===void 0?!1:M,se=e.closeIcon,fe=e.modalRender,de=e.focusTriggerAfterClose,Q=e.okType||"primary",m="".concat(k,"-confirm"),R="okCancel"in e?e.okCancel:!0,ve=