(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(9623)}])},8610:function(e,n,t){"use strict";var r=t(5893),o=t(8216),i=t(7212),u=t(8462),l=t(7357),a=t(4690),c=t(7750);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var w=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,a=x(t,["sx","value"]),c=(0,l.useMemo)((function(){var e;return O((j(e={},"& .".concat(o.Z.icon),{color:g.s7}),j(e,"& .".concat(y.Z.root),{marginRight:".8em"}),j(e,"& .".concat(p.Z.root),{color:g.s7,visibility:"hidden"}),j(e,"&:hover .".concat(y.Z.root," .").concat(p.Z.root,",\n &.").concat(m.Z.focused," .").concat(y.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,l.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(v.Z,{position:"end",children:(0,r.jsx)(h.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(b.Z,O({endAdornment:s,value:u},a,{sx:c}))};function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var C=function(e){var n=e.id,t=e.label,d=e.selectItems,y=e.checkItem,p=e.disableItem,m=e.formControlProps,v=e.hideItem,h=e.inputLabelProps,b=void 0===h?{}:h,g=e.isReadOnly,j=void 0!==g&&g,O=e.messageBoxProps,x=void 0===O?{}:O,C=e.name,Z=e.onBlur,A=e.onChange,I=e.onFocus,E=e.required,M=e.selectProps,D=void 0===M?{}:M,U=D.multiple,T=D.sx,L=e.value,F=e.isCheckableItems,V=void 0===F?U:F,R=P(e.selectProps,["multiple","sx"]),_=(0,l.useMemo)((function(){return j?S(k({},"& .".concat(o.Z.icon),{visibility:"hidden"}),T):T}),[j,T]),H=(0,l.useCallback)((function(e){return V&&(0,r.jsx)(i.Z,{checked:null===y||void 0===y?void 0:y.call(null,e)})}),[y,V]),N=(0,l.useCallback)((function(e,t){return(0,r.jsxs)(c.Z,{disabled:null===p||void 0===p?void 0:p.call(null,e),sx:{display:(null===v||void 0===v?void 0:v.call(null,e))?"none":void 0},value:e,children:[H(e),t]},"".concat(n,"-").concat(e))}),[H,p,v,n]),$=(0,l.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),B=(0,l.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,l.useMemo)((function(){return t&&(0,r.jsx)(f.Z,S({htmlFor:$,isNotifyRequired:E},b,{children:t}))}),[b,E,t,$]),z=(0,l.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return N(t,void 0===r?t:r)}))}),[N,d]);return(0,r.jsxs)(u.Z,S({fullWidth:!0},m,{children:[W,(0,r.jsx)(w,S({id:$,input:B,multiple:U,name:C,onBlur:Z,onChange:A,onFocus:I,readOnly:j,value:L},R,{sx:_,children:z})),(0,r.jsx)(a.Z,S({},x))]}))}},3906:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(6607),u=t(8610);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n0}),[d.length]),m=(0,o.useMemo)((function(){return f.length>1}),[f.length]),v=(0,o.useCallback)((function(e){var n=e.confirmDialogProps,t=void 0===n?{}:n,o=e.formSummaryProps,i=void 0===o?{}:o,l=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return a({actionProceedText:"Delete",content:(0,r.jsx)(u.Z,a({entries:c,maxDepth:0,renderEntry:f},i)),onProceedAppend:s,proceedColour:"red",titleText:l(d.length)},t)}),[c,d.length]),h=(0,o.useCallback)((function(e){return c[e]}),[c]),b=(0,o.useCallback)((function(e){return s(f.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[f]),g=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:v,checklist:c,checks:d,getCheck:h,hasAllChecks:y,hasChecks:p,multipleItems:m,setAllChecks:b,setCheck:g}}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,l=void 0===o?"":o,a=e.titleText,c=void 0===a?"":a,s=u(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:l,titleText:c},s))}},9623:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Me}});var r=t(5893),o=t(9008),i=t(5521),u=t(4490),l=t(7294),a=t(2029),c=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],s=new Map(c),f=t(2175),d=t(5934),y=t(46),p=t(4390),m=t(4825);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},t=n.build,r=void 0===t?function(e,n){return{children:n,type:"warning"}}:t,o=n.chain,i=void 0===o?"":o;return Object.entries(e).reduce((function(e,n){var t=g(n,2),o=t[0],u=t[1],l=String(i).length?[i,o].join("."):o;return"object"===typeof u?b({},e,j(u,{chain:l})):(e[l]=r(l,u),e)}),{})},O=j,x=t(3457),w=t(6486),k=t(4690),S=t(6125),P=t(6284),C=t(3679),Z=t(2519),A=t(7750),I=t(4188),E=t(3675);function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function T(e){return function(e){if(Array.isArray(e))return M(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 M(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 M(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.")}()}function L(e){var n=function(e,n){if("object"!==F(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===F(n)?n:String(n)}var F=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var V=(0,l.forwardRef)((function(e,n){var t=e.input,r=e.onChange,o=void 0===r?function(e){for(var n,t,r=e.handlers,o=r.base,i=r.origin,u=arguments.length,l=new Array(u>1?u-1:0),a=1;ae.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[i.values,o]),O=(0,l.useMemo)((function(){return(0,r.jsx)(R,{input:(0,r.jsx)(P.Z,{id:p,label:"File name",name:p,onBlur:s,onChange:d,value:i.values[o].name})})}),[d,i.values,o,s,p]),I=(0,l.useMemo)((function(){return u&&(0,r.jsx)(C.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("anvils"),allowCheckItem:!0,edit:!0,header:!0,listItems:n,getListCheckboxProps:function(){return b("anvils")},getListItemCheckboxProps:function(e){return g("anvils",e)},renderListItem:function(e,n){var t=n.description,o=n.name;return(0,r.jsxs)(A.Ac,{children:[o,": ",t]})}})})}),[n,j,b,g,u]),E=(0,l.useMemo)((function(){return u&&(0,r.jsx)(C.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("drHosts"),allowCheckItem:!0,edit:!0,header:!0,listItems:t,getListCheckboxProps:function(){return b("drHosts")},getListItemCheckboxProps:function(e){return g("drHosts",e)},renderListItem:function(e,n){var t=n.hostName;return(0,r.jsx)(A.Ac,{children:t})}})})}),[t,j,b,g,u]),M=(0,l.useMemo)((function(){return a&&(0,r.jsx)(Z.Z,{id:v,label:"File type",name:v,onBlur:s,onChange:f,selectItems:c.map((function(e){var n=H(e,2),t=n[0];return{displayValue:H(n[1],2)[1],value:t}})),value:i.values[o].type})}),[i.values,o,s,f,a,v]);return(0,r.jsxs)(x.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(k.Z,{sm:"row",xs:"column",children:[O,M]}),I,E]})},$=t(1770),B=t(8187),W=t(7869),z=t(6310);function q(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var G=function(e,n){return e&&Object.keys(e).reduce((function(e,t){return function(e){for(var n=1;n :first-child":{minWidth:100,overflow:"hidden",overflowWrap:"normal",textOverflow:"ellipsis",whiteSpace:"nowrap",width:{xs:"100%",md:200},wordBreak:"keep-all"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(A.Ac,{children:n}),(0,r.jsx)(ne.k,{progressPercentage:t})]},"upload-".concat(o))}))})},re=t(2749);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Se=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,r=void 0===t?we.Z:t,o=n.baseUrl,i=void 0===o?a.Z:o,u=ke(n,["fetcher","baseUrl"]),l=(0,xe.ZP)("".concat(i).concat(e),r,u),c=l.data,s=l.error,f=!s&&!c;return{data:c,error:s,loading:f}};function Pe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t