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