You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.6 MiB
2 lines
1.6 MiB
2 years ago
|
/*! For license information please see 39.2e982a5a.chunk.js.LICENSE.txt */
|
||
|
(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[39,4],{1045:function(e,t,r){"use strict";var n=r(19),a=r(562),o=r(2),i=r.n(o),s=r(1046),c=r(558),l=r(559),u=r.n(l),f=r(575);var h=0;function d(e){var t=o.useState("ssr-id"),r=Object(a.a)(t,2),n=r[0],i=r[1],s=Object(c.a)({},o).useId,l=null===s||void 0===s?void 0:s();return o.useEffect((function(){if(!s){var e=h;h+=1,i("rc_unique_".concat(e))}}),[]),e||(l||n)}var p=r(1165),m=r(591),g=r(620);function v(e){var t=e.prefixCls,r=e.style,a=e.visible,i=e.maskProps,s=e.motionName;return o.createElement(g.b,{key:"mask",visible:a,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},(function(e){var a=e.className,s=e.style;return o.createElement("div",Object(n.a)({style:Object(c.a)(Object(c.a)({},s),r),className:u()("".concat(t,"-mask"),a)},i))}))}function b(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function y(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!==typeof r){var a=e.document;"number"!==typeof(r=a.documentElement[n])&&(r=a.body[n])}return r}var w=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),C={width:0,height:0,overflow:"hidden",outline:"none"};var E=i.a.forwardRef((function(e,t){var r=e.prefixCls,a=e.className,s=e.style,l=e.title,f=e.ariaId,h=e.footer,d=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,v=e.bodyStyle,b=e.bodyProps,y=e.modalRender,E=e.onMouseDown,S=e.onMouseUp,_=e.holderRef,k=e.visible,O=e.forceRender,x=e.width,A=e.height,T=Object(o.useRef)(),B=Object(o.useRef)();i.a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=T.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===B.current?T.current.focus():e||t!==T.current||B.current.focus()}}}));var D,R,P,I={};void 0!==x&&(I.width=x),void 0!==A&&(I.height=A),h&&(D=i.a.createElement("div",{className:"".concat(r,"-footer")},h)),l&&(R=i.a.createElement("div",{className:"".concat(r,"-header")},i.a.createElement("div",{className:"".concat(r,"-title"),id:f},l))),d&&(P=i.a.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(r,"-close")},p||i.a.createElement("span",{className:"".concat(r,"-close-x")})));var N=i.a.createElement("div",{className:"".concat(r,"-content")},P,R,i.a.createElement("div",Object(n.a)({className:"".concat(r,"-body"),style:v},b),g),D);return i.a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?f:null,"aria-modal":"true",ref:_,style:Object(c.a)(Object(c.a)({},s),I),className:u()(r,a),onMouseDown:E,onMouseUp:S},i.a.createElement("div",{tabIndex:0,ref:T,style:C,"aria-hidden":"true"}),i.a.createElement(w,{shouldUpdate:k||O},y?y(N):N),i.a.createElement("div",{tabIndex:0,ref:B,style:C,"aria-hidden":"true"}))})),S=o.forwardRef((function(e,t){var r=e.prefixCls,i=e.title,s=e.style,l=e.className,f=e.visible,h=e.forceRender,d=e.destroyOnClose,p=e.motionName,m=e.ariaId,v=e.onVisibleChanged,b=e.mousePosition,w=Object(o.useRef)(),C=o.useState(),S=Object(a.a)(C,2),_=S[0],k=S[1],O={};function x(){var e=function(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,a=n.defaultView||n.parentWindow;return r.left+=y(a),r.top+=y(a,!0),r}(w.current);k(b?"".concat(b.x-e.left,"px ").concat(b.y-e.top,"px"):"")}return _&&(O.transformOrigin=_),o.createElement(g.b,{visible:f,onVisibleChanged:v,onAppearPrepare:x,onEnterPrepare:x,forceRender:h,motionName:p,removeOnLeave:d,ref:w},(function(a,f){var h=a.className,d=a.style;return o.createElement(E,Object(n.a)({},e,{ref:t,title:i,ariaId:m,prefixCls:r,holderRef:f,style:Object(c.a)(Object(c.a)(Object(c.a)({},d),s),O),className:u()(l,h)}))}))}));S.displayName="Content";var _=S;function k(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,i=e.zIndex,s=e.visible,l=void 0!==s&&s,h=e.keyboard,g=void 0===h||h,y=e.focusTriggerAfterClose,w=void 0===y||y,C=e.scrollLocker,E=e.wrapStyle,S=e.wrapClassName,k=e.wrapProps,O=e.onClose,x=e.afterClose,A=e.transitionName,T=e.animation,B=e.closable,D=void 0===B||B,R=e.mask,P=void 0
|