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.
1 line
30 KiB
1 line
30 KiB
2 years ago
|
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[941],{8283:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/file-manager",function(){return t(7241)}])},157:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(8262),l=t(7294),c=t(7169),a=t(4825),u=t(4690),s=t(3679),f=t(2152),d=t(7750);function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){m(e,n,t[n])}))}return e}function v(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function y(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x={blue:c.Ej,red:c.hM},g=(0,l.forwardRef)((function(e,n){var t=e.actionCancelText,p=void 0===t?"Cancel":t,m=e.actionProceedText,g=e.contentContainerProps,b=void 0===g?{}:g,j=e.closeOnProceed,w=void 0!==j&&j,Z=e.content,O=e.dialogProps,S=void 0===O?{}:O,C=S.open,P=void 0!==C&&C,A=S.PaperProps,k=void 0===A?{}:A,I=e.disableProceed,D=e.formContent,U=e.loading,E=void 0!==U&&U,F=e.loadingAction,L=void 0!==F&&F,T=e.onActionAppend,N=e.onCancelAppend,M=e.onProceedAppend,B=e.onSubmitAppend,_=e.openInitially,R=void 0!==_&&_,W=e.preActionArea,H=e.proceedButtonProps,V=void 0===H?{}:H,z=e.proceedColour,$=void 0===z?"blue":z,G=e.scrollContent,X=void 0!==G&&G,J=e.scrollBoxProps,Y=(void 0===J?{}:J).sx,q=e.titleText,K=v(e.dialogProps,["open","PaperProps"]),Q=v(e.scrollBoxProps,["sx"]),ee=k.sx,ne=v(k,["sx"]),te=V.disabled,re=void 0===te?I:te,oe=V.sx,ie=v(V,["disabled","sx"]),le=(0,l.useState)(R),ce=le[0],ae=le[1],ue=(0,l.useMemo)((function(){return n?ce:P}),[P,ce,n]),se=(0,l.useMemo)((function(){return x[$]}),[$]),fe=(0,l.useMemo)((function(){var e,n,t,r=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,o;w&&ae(!1),null===T||void 0===T||(r=T).call.apply(r,[null].concat(y(n))),null===M||void 0===M||(o=M).call.apply(o,[null].concat(y(n)))};return D&&(e="form",n=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o;e.preventDefault(),w&&ae(!1),null===B||void 0===B||(o=B).call.apply(o,[null,e].concat(y(t)))},r=void 0,t="submit"),{contentContainerComponent:e,contentContainerSubmitEventHandler:n,proceedButtonClickEventHandler:r,proceedButtonType:t}}),[w,D,T,M,B]),de=fe.contentContainerComponent,pe=fe.contentContainerSubmitEventHandler,me=fe.proceedButtonClickEventHandler,he=fe.proceedButtonType,ve=(0,l.useMemo)((function(){return(0,r.jsx)(a.Z,{onClick:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,o;ae(!1),null===T||void 0===T||(r=T).call.apply(r,[null].concat(y(n))),null===N||void 0===N||(o=N).call.apply(o,[null].concat(y(n)))},children:p})}),[p,T,N]),ye=(0,l.useMemo)((function(){return(0,r.jsx)(a.Z,h({disabled:re,onClick:me,type:he},ie,{sx:h({backgrou
|