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.9 MiB
2 lines
1.9 MiB
3 years ago
|
/*! For license information please see 28.bdb10071.chunk.js.LICENSE.txt */
|
||
|
(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[28,4],{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 h=0;function d(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=h;h+=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 _=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),w={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,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,C=e.onMouseUp,O=e.holderRef,S=e.visible,x=e.forceRender,k=e.width,T=e.height,A=Object(o.useRef)(),P=Object(o.useRef)();i.a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=A.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===P.current?A.current.focus():e||t!==A.current||P.current.focus()}}}));var D,B,N,I={};void 0!==k&&(I.width=k),void 0!==T&&(I.height=T),h&&(D=i.a.createElement("div",{className:"".concat(n,"-footer")},h)),l&&(B=i.a.createElement("div",{className:"".concat(n,"-header")},i.a.createElement("div",{className:"".concat(n,"-title"),id:f},l))),d&&(N=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 R=i.a.createElement("div",{className:"".concat(n,"-content")},N,B,i.a.createElement("div",Object(r.a)({className:"".concat(n,"-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:O,style:Object(c.a)(Object(c.a)({},s),I),className:u()(n,a),onMouseDown:E,onMouseUp:C},i.a.createElement("div",{tabIndex:0,ref:A,style:w,"aria-hidden":"true"}),i.a.createElement(_,{shouldUpdate:S||x},y?y(R):R),i.a.createElement("div",{tabIndex:0,ref:P,style:w,"aria-hidden":"true"}))})),C=o.forwardRef((function(e,t){var n=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,_=Object(o.useRef)(),w=o.useState(),C=Object(a.a)(w,2),O=C[0],S=C[1],x={};function k(){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}(_.current);S(b?"".concat(b.x-e.left,"px ").concat(b.y-e.top,"px"):"")}return O&&(x.transformOrigin=O),o.createElement(g.b,{visible:f,onVisibleChanged:v,onAppearPrepare:k,onEnterPrepare:k,forceRender:h,motionName:p,removeOnLeave:d,ref:_},(function(a,f){var h=a.className,d=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)({},d),s),x),className:u()(l,h)}))}))}));C.displayName="Content";var O=C;function S(e){var t=e.prefixCls,n=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,_=void 0===y||y,w=e.scrollLocker,E=e.wrapStyle,C=e.wrapClassName,S=e.wrapProps,x=e.onClose,k=e.afterClose,T=e.transitionName,A=e.animation,P=e.closable,D=void 0===P||P,B=e.mask,N=void 0
|