You cannot 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
71 KiB
JavaScript
2 lines
71 KiB
JavaScript
1 year ago
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7710],{93633:function(e,t,n){n.d(t,{Z:function(){return oe}});var r=n(86905),i=n(70101),o=n(2303),s=n(67294),a=(n(45697),n(86010)),u=n(48054);function l(e){return e.charAt(0).toUpperCase()+e.slice(1)}var c=n(73935),d=n(41601),f=n(93869);var p=function(e){return e&&e.ownerDocument||document};function h(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function v(e,t){return s.useMemo((function(){return null==e&&null==t?null:function(n){h(e,n),h(t,n)}}),[e,t])}var y="undefined"!==typeof window?s.useLayoutEffect:s.useEffect;var m=s.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,u=s.useState(null),l=u[0],d=u[1],f=v(n.ref,t);return y((function(){o||d(function(e){return e="function"===typeof e?e():e,c.findDOMNode(e)}(r)||document.body)}),[r,o]),y((function(){if(l&&!o)return h(t,l),function(){h(t,null)}}),[t,l,o]),y((function(){a&&(l||o)&&a()}),[a,l,o]),o?(s.Children.only(n),s.cloneElement(n,{ref:f})):l?c.createPortal(n,l):l}));function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}var b="undefined"!==typeof window?s.useLayoutEffect:s.useEffect;function x(e){var t=s.useRef(e);return b((function(){t.current=e})),s.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}var k=n(92781);function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var E=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t};var P=function(e){return p(e).defaultView||window};function R(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function C(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(w(r)),s=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===s.indexOf(e.tagName)&&R(e,i)}))}function A(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function j(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){var s=function(e){var t=p(e);return t.body===e?P(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o),a=o.parentElement,u="HTML"===a.nodeName?a:o;if(r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden",s){var l=E();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(C(o)+l,"px"),n=p(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(C(e)+l,"px")}))}}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}var t,n,r;return t=e,(n=[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&R(e.modalRef,!1);var
|
||
|
//# sourceMappingURL=7710-6415b80ed944c3d1.js.map
|