From 52fdc67cfdb73eaa7f18e84fa1f2105b1e93bf1d Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 13 Dec 2023 15:47:35 -0500 Subject: [PATCH] build(striker-ui): rebuild --- .../static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js | 1 - .../static/L_YVfOsZ3q029Wna3HXeD/_buildManifest.js | 1 + .../_middlewareManifest.js | 0 .../_ssgManifest.js | 0 .../out/_next/static/chunks/157-0528651bf3cd10a7.js | 1 + .../out/_next/static/chunks/157-d1418743accab385.js | 1 - .../out/_next/static/chunks/170-357f4683929223df.js | 1 + .../out/_next/static/chunks/182-08683bbe95fbb010.js | 1 - ...1-2605129c170ed35d.js => 195-d5fd184cc249f755.js} | 2 +- .../out/_next/static/chunks/195-fa06e61dd4339031.js | 1 - .../out/_next/static/chunks/213-a0488f84cc98f172.js | 1 + .../out/_next/static/chunks/284-03dc30df5d459e72.js | 1 + .../out/_next/static/chunks/438-0147a63d98e89439.js | 1 - ...2-d77d0985f9905450.js => 498-e1933a5461cd8607.js} | 12 ++++++------ .../out/_next/static/chunks/528-72edc50189f30fa9.js | 1 - .../out/_next/static/chunks/570-6bad4610969fc14b.js | 1 + .../out/_next/static/chunks/62-09a1812bcc63d819.js | 1 - .../out/_next/static/chunks/668-b264bf73f0c1b5eb.js | 1 + ...7-705fb5e735d81042.js => 707-ee38ab2abcd0aa3f.js} | 2 +- .../out/_next/static/chunks/82-b2661d1af04f38ff.js | 1 - .../out/_next/static/chunks/839-dabd319a60c8df83.js | 1 + ...86-d7025c9609028f44.js => 86-af7e2d6c5444a983.js} | 2 +- .../out/_next/static/chunks/910-2a0e86a170f6eb77.js | 1 + .../out/_next/static/chunks/936-f64829e0e2013921.js | 1 + .../out/_next/static/chunks/94-f83c1e7821f76736.js | 1 - .../static/chunks/pages/anvil-3bce568d47e8eaba.js | 1 - .../static/chunks/pages/anvil-7fb5cba6fcb66e8c.js | 1 + ...11a465cb55668af.js => config-e3aa9a84a8baacc1.js} | 2 +- ...ead0f489f.js => file-manager-ef725a93a3e227aa.js} | 2 +- ...0bfb652a4f03dc4d.js => index-8766524a2b0384fc.js} | 2 +- ...-59fe9f29b6489800.js => init-b774a276c8a4ad79.js} | 2 +- ...183a6e481fd67cca.js => login-270fe7adf9f44c67.js} | 2 +- ...7cbbb98.js => manage-element-e577aadd99900dcb.js} | 2 +- ...faafa80170f67f2.js => server-97d4cafd19cb2e9d.js} | 2 +- striker-ui/out/anvil.html | 2 +- striker-ui/out/config.html | 2 +- striker-ui/out/file-manager.html | 2 +- striker-ui/out/index.html | 2 +- striker-ui/out/init.html | 2 +- striker-ui/out/login.html | 2 +- striker-ui/out/manage-element.html | 2 +- striker-ui/out/server.html | 2 +- 42 files changed, 35 insertions(+), 34 deletions(-) delete mode 100644 striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js create mode 100644 striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_buildManifest.js rename striker-ui/out/_next/static/{BhFewlGkfrUA_bCvxhgLY => L_YVfOsZ3q029Wna3HXeD}/_middlewareManifest.js (100%) rename striker-ui/out/_next/static/{BhFewlGkfrUA_bCvxhgLY => L_YVfOsZ3q029Wna3HXeD}/_ssgManifest.js (100%) create mode 100644 striker-ui/out/_next/static/chunks/157-0528651bf3cd10a7.js delete mode 100644 striker-ui/out/_next/static/chunks/157-d1418743accab385.js create mode 100644 striker-ui/out/_next/static/chunks/170-357f4683929223df.js delete mode 100644 striker-ui/out/_next/static/chunks/182-08683bbe95fbb010.js rename striker-ui/out/_next/static/chunks/{111-2605129c170ed35d.js => 195-d5fd184cc249f755.js} (99%) delete mode 100644 striker-ui/out/_next/static/chunks/195-fa06e61dd4339031.js create mode 100644 striker-ui/out/_next/static/chunks/213-a0488f84cc98f172.js create mode 100644 striker-ui/out/_next/static/chunks/284-03dc30df5d459e72.js delete mode 100644 striker-ui/out/_next/static/chunks/438-0147a63d98e89439.js rename striker-ui/out/_next/static/chunks/{412-d77d0985f9905450.js => 498-e1933a5461cd8607.js} (87%) delete mode 100644 striker-ui/out/_next/static/chunks/528-72edc50189f30fa9.js create mode 100644 striker-ui/out/_next/static/chunks/570-6bad4610969fc14b.js delete mode 100644 striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js create mode 100644 striker-ui/out/_next/static/chunks/668-b264bf73f0c1b5eb.js rename striker-ui/out/_next/static/chunks/{707-705fb5e735d81042.js => 707-ee38ab2abcd0aa3f.js} (99%) delete mode 100644 striker-ui/out/_next/static/chunks/82-b2661d1af04f38ff.js create mode 100644 striker-ui/out/_next/static/chunks/839-dabd319a60c8df83.js rename striker-ui/out/_next/static/chunks/{86-d7025c9609028f44.js => 86-af7e2d6c5444a983.js} (99%) create mode 100644 striker-ui/out/_next/static/chunks/910-2a0e86a170f6eb77.js create mode 100644 striker-ui/out/_next/static/chunks/936-f64829e0e2013921.js delete mode 100644 striker-ui/out/_next/static/chunks/94-f83c1e7821f76736.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/anvil-3bce568d47e8eaba.js create mode 100644 striker-ui/out/_next/static/chunks/pages/anvil-7fb5cba6fcb66e8c.js rename striker-ui/out/_next/static/chunks/pages/{config-511a465cb55668af.js => config-e3aa9a84a8baacc1.js} (99%) rename striker-ui/out/_next/static/chunks/pages/{file-manager-a085c3bead0f489f.js => file-manager-ef725a93a3e227aa.js} (99%) rename striker-ui/out/_next/static/chunks/pages/{index-0bfb652a4f03dc4d.js => index-8766524a2b0384fc.js} (97%) rename striker-ui/out/_next/static/chunks/pages/{init-59fe9f29b6489800.js => init-b774a276c8a4ad79.js} (99%) rename striker-ui/out/_next/static/chunks/pages/{login-183a6e481fd67cca.js => login-270fe7adf9f44c67.js} (98%) rename striker-ui/out/_next/static/chunks/pages/{manage-element-d8b8ab9027cbbb98.js => manage-element-e577aadd99900dcb.js} (99%) rename striker-ui/out/_next/static/chunks/pages/{server-8faafa80170f67f2.js => server-97d4cafd19cb2e9d.js} (96%) diff --git a/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js b/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js deleted file mode 100644 index 621480b0..00000000 --- a/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,n,i,f,d,b,u,k,h,j,r,g,l){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,f,d,"static/chunks/82-b2661d1af04f38ff.js",c,t,n,i,h,j,"static/chunks/pages/index-0bfb652a4f03dc4d.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,a,e,f,d,"static/chunks/638-13a283c3a7da370b.js",c,t,n,i,h,"static/chunks/pages/anvil-3bce568d47e8eaba.js"],"/config":[s,a,e,u,"static/chunks/519-4b7761e884c88eb9.js",c,t,n,i,b,k,r,"static/chunks/pages/config-511a465cb55668af.js"],"/file-manager":["static/chunks/29107295-fbcfe2172188e46f.js",s,a,e,f,"static/chunks/176-7308c25ba374961e.js",c,t,i,b,"static/chunks/pages/file-manager-a085c3bead0f489f.js"],"/init":[s,a,f,d,u,g,c,t,n,i,l,"static/chunks/pages/init-59fe9f29b6489800.js"],"/login":[s,a,e,c,t,n,b,k,"static/chunks/pages/login-183a6e481fd67cca.js"],"/manage-element":[s,a,e,f,d,u,g,"static/chunks/111-2605129c170ed35d.js",c,t,n,i,b,k,l,r,"static/chunks/pages/manage-element-d8b8ab9027cbbb98.js"],"/server":[s,e,"static/chunks/528-72edc50189f30fa9.js",c,j,"static/chunks/pages/server-8faafa80170f67f2.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/412-d77d0985f9905450.js","static/chunks/62-09a1812bcc63d819.js","static/chunks/438-0147a63d98e89439.js","static/chunks/894-e57948de523bcf96.js","static/chunks/195-fa06e61dd4339031.js","static/chunks/27-7790e406eb2ea28d.js","static/chunks/157-d1418743accab385.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/209-4e2794319babfeec.js","static/chunks/48-d4400834d0a31c6e.js","static/chunks/644-4eec2b397fdacb0c.js","static/chunks/336-33ece0c8120f3bd4.js","static/chunks/707-705fb5e735d81042.js","static/chunks/94-f83c1e7821f76736.js","static/chunks/560-a9c9ecda0eca25a9.js","static/chunks/404-b8e9ff2043a0d30c.js","static/chunks/86-d7025c9609028f44.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_buildManifest.js b/striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_buildManifest.js new file mode 100644 index 00000000..132ad4d7 --- /dev/null +++ b/striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,e,a,t,n,i,f,u,k,h,j,b,d,r,g,l,_,o){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,e,a,i,u,k,d,"static/chunks/936-f64829e0e2013921.js",c,t,n,f,r,g,"static/chunks/pages/index-8766524a2b0384fc.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,e,a,i,u,k,"static/chunks/638-13a283c3a7da370b.js",c,t,n,f,r,"static/chunks/pages/anvil-7fb5cba6fcb66e8c.js"],"/config":[s,e,a,j,"static/chunks/519-4b7761e884c88eb9.js",c,t,n,f,h,b,l,"static/chunks/pages/config-e3aa9a84a8baacc1.js"],"/file-manager":["static/chunks/29107295-fbcfe2172188e46f.js",s,e,a,i,u,"static/chunks/176-7308c25ba374961e.js",c,t,n,h,"static/chunks/pages/file-manager-ef725a93a3e227aa.js"],"/init":[s,e,i,u,k,j,_,c,t,n,f,o,"static/chunks/pages/init-b774a276c8a4ad79.js"],"/login":[s,e,a,c,t,f,h,b,"static/chunks/pages/login-270fe7adf9f44c67.js"],"/manage-element":[s,e,a,i,u,k,j,_,"static/chunks/195-d5fd184cc249f755.js",c,t,n,f,h,b,o,l,"static/chunks/pages/manage-element-e577aadd99900dcb.js"],"/server":[s,a,i,d,c,n,g,"static/chunks/pages/server-97d4cafd19cb2e9d.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/498-e1933a5461cd8607.js","static/chunks/668-b264bf73f0c1b5eb.js","static/chunks/910-2a0e86a170f6eb77.js","static/chunks/894-e57948de523bcf96.js","static/chunks/284-03dc30df5d459e72.js","static/chunks/157-0528651bf3cd10a7.js","static/chunks/839-dabd319a60c8df83.js","static/chunks/27-7790e406eb2ea28d.js","static/chunks/213-a0488f84cc98f172.js","static/chunks/209-4e2794319babfeec.js","static/chunks/48-d4400834d0a31c6e.js","static/chunks/644-4eec2b397fdacb0c.js","static/chunks/336-33ece0c8120f3bd4.js","static/chunks/570-6bad4610969fc14b.js","static/chunks/707-ee38ab2abcd0aa3f.js","static/chunks/170-357f4683929223df.js","static/chunks/560-a9c9ecda0eca25a9.js","static/chunks/404-b8e9ff2043a0d30c.js","static/chunks/86-af7e2d6c5444a983.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_middlewareManifest.js b/striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_middlewareManifest.js similarity index 100% rename from striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_middlewareManifest.js rename to striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_middlewareManifest.js diff --git a/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_ssgManifest.js b/striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_ssgManifest.js similarity index 100% rename from striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_ssgManifest.js rename to striker-ui/out/_next/static/L_YVfOsZ3q029Wna3HXeD/_ssgManifest.js diff --git a/striker-ui/out/_next/static/chunks/157-0528651bf3cd10a7.js b/striker-ui/out/_next/static/chunks/157-0528651bf3cd10a7.js new file mode 100644 index 00000000..a72d05f4 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/157-0528651bf3cd10a7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{46:function(n,e,r){var o=r(5893),t=r(1496),i=r(7294),l=r(5934),c=r(4825),a=r(4690),u=r(2152);function s(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var d=(0,t.ZP)(a.Z)({justifyContent:"flex-end",width:"100%"});e.Z=function(n){var e=n.actions,r=void 0===e?[]:e,t=n.loading,a=(0,i.useMemo)((function(){return r.map((function(n){return(0,o.jsx)(c.Z,function(n){for(var e=1;en.length)&&(e=n.length);for(var r=0,o=new Array(e);r=0||(t[r]=n[r]);return t}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var d=(0,i.createContext)(void 0),f=(0,i.forwardRef)((function(n,e){var r=n.children,a=n.dialogProps,f=void 0===a?{}:a,p=n.loading,v=n.openInitially,y=void 0!==v&&v,b=n.wide,h=f.open,m=f.PaperProps,g=void 0===m?{}:m,O=s(f,["open","PaperProps"]),w=g.sx,P=s(g,["sx"]),j=(0,i.useState)(y),C=j[0],x=j[1],A=(0,i.useMemo)((function(){return null!==h&&void 0!==h?h:C}),[C,h]),k=(0,i.useMemo)((function(){return p?(0,o.jsx)(c.Z,{mt:0}):r}),[r,p]),S=(0,i.useMemo)((function(){return u({minWidth:b?{xs:"calc(100%)",md:"50em"}:null,overflow:"visible"},w)}),[w,b]);return(0,i.useImperativeHandle)(e,(function(){return{open:A,setOpen:x}}),[A]),(0,o.jsx)(t.Z,u({open:A,PaperComponent:l.s_,PaperProps:u({},P,{sx:S})},O,{children:(0,o.jsx)(d.Provider,{value:{open:A,setOpen:x},children:k})}))}));f.displayName="Dialog";var p=f,v=r(46);function y(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,o=new Array(e);r1?l-1:0),a=1;an.length)&&(e=n.length);for(var r=0,o=new Array(e);r=0||(t[r]=n[r]);return t}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var s=(0,i.createContext)(void 0),f=(0,i.forwardRef)((function(n,e){var r=n.children,a=n.dialogProps,f=void 0===a?{}:a,p=n.loading,v=n.openInitially,y=void 0!==v&&v,b=n.wide,m=f.open,g=f.PaperProps,h=void 0===g?{}:g,O=d(f,["open","PaperProps"]),P=h.sx,w=d(h,["sx"]),j=(0,i.useState)(y),C=j[0],x=j[1],A=(0,i.useMemo)((function(){return null!==m&&void 0!==m?m:C}),[C,m]),k=(0,i.useMemo)((function(){return p?(0,o.jsx)(c.Z,{mt:0}):r}),[r,p]),S=(0,i.useMemo)((function(){return u({minWidth:b?{xs:"calc(100%)",md:"50em"}:null,overflow:"visible"},P)}),[P,b]);return(0,i.useImperativeHandle)(e,(function(){return{open:A,setOpen:x}}),[A]),(0,o.jsx)(t.Z,u({open:A,PaperComponent:l.s_,PaperProps:u({},w,{sx:S})},O,{children:(0,o.jsx)(s.Provider,{value:{open:A,setOpen:x},children:k})}))}));f.displayName="Dialog";var p=f,v=r(46);function y(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,o=new Array(e);r1?l-1:0),a=1;ae.length)&&(n=e.length);for(var r=0,t=new Array(n);re.length)&&(n=e.length);for(var r=0,t=new Array(n);r=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function D(e){return function(e){if(Array.isArray(e))return Z(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 Z(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z(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 T=function(e){var n=e.children,r=e.containedButtonProps,o=e.iconButtonProps,i=e.muiMenuProps,l=e.onButtonClick,c=e.onItemClick,u=e.variant,s=void 0===u?"icon":u,f=M(e,["children","containedButtonProps","iconButtonProps","muiMenuProps","onButtonClick","onItemClick","variant"]),v=(0,d.useState)(null),m=v[0],h=v[1],p=(0,d.useMemo)((function(){return Boolean(m)}),[m]),y=(0,d.useMemo)((function(){return n||("icon"===s?(0,t.jsx)(j.Z,{fontSize:null===o||void 0===o?void 0:o.size}):"Options")}),[n,null===o||void 0===o?void 0:o.size,s]),b=(0,d.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},n=e.initial,r=void 0===n?{}:n,o=r.actionProceedText,i=void 0===o?"":o,l=r.content,c=void 0===l?"":l,a=r.titleText,u=void 0===a?"":a,s=(0,d.useRef)(null),f=(0,d.useState)({actionProceedText:i,content:c,titleText:u}),v=f[0],m=f[1],h=(0,d.useCallback)((function(e){var n,r;return null===s||void 0===s||null===(n=s.current)||void 0===n||null===(r=n.setOpen)||void 0===r?void 0:r.call(null,e)}),[]),p=(0,d.useCallback)((function(e,n){return m({actionProceedText:"",content:(0,t.jsx)(N.Z,R({},n)),showActionArea:!1,showClose:!0,titleText:e})}),[]),y=(0,d.useMemo)((function(){return(0,t.jsx)(z.Z,R({},v,{ref:s}))}),[v]);return{confirmDialog:y,confirmDialogRef:s,setConfirmDialogOpen:h,setConfirmDialogProps:m,finishConfirm:p}};function $(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function q(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var J=function(e){e.getItemDisabled,e.items,e.onItemClick,e.renderItem;var n,r=e.serverName,o=e.serverState,i=e.serverUuid,l=G(e,["getItemDisabled","items","onItemClick","renderItem","serverName","serverState","serverUuid"]),c=L(),u=c.confirmDialog,s=c.setConfirmDialogOpen,f=c.setConfirmDialogProps,v=c.finishConfirm,m=(0,d.useMemo)((function(){return{"force-off":{colour:"red",description:(0,t.jsx)(t.Fragment,{children:"This is equal to pulling the power cord, which may cause data loss or system corruption."}),label:"Force off",path:"/command/stop-server/".concat(i,"?force=1")},"power-off":{description:(0,t.jsx)(t.Fragment,{children:"This is equal to pushing the power button. If the server doesn't respond to the corresponding signals, you may have to manually shut it down."}),label:"Power off",path:"/command/stop-server/".concat(i)},"power-on":{description:(0,t.jsx)(t.Fragment,{children:"This is equal to pushing the power button."}),label:"Power on",path:"/command/start-server/".concat(i)}}}),[i]);return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(T,q({getItemDisabled:function(e){var n=e.includes("on");return"running"===o===n},items:m,onItemClick:function(e,n){var o=n.colour,i=n.description,l=n.label,c=n.path,a=l.toLocaleLowerCase();f({actionProceedText:l,content:(0,t.jsx)(B.Ac,{children:i}),onProceedAppend:function(){f((function(e){return q({},e,{loading:!0})})),g.Z.put(c).then((function(){v("Success",{children:(0,t.jsxs)(t.Fragment,{children:["Successfully registered ",a," job on ",r,"."]})})})).catch((function(e){var n=(0,U.Z)(e);n.children=(0,t.jsxs)(t.Fragment,{children:["Failed to register ",a," job on ",r,"; CAUSE:"," ",n.children,"."]}),v("Error",n)}))},proceedColour:o,titleText:"".concat(l," server ").concat(r,"?")}),s(!0)},renderItem:function(e,n){var r,o=n.colour,i=n.label;return o&&(r=w.D[o]),(0,t.jsx)(B.Ac,{inheritColour:!0,color:r,children:i})}},l,{children:(0,t.jsx)(x.Z,{fontSize:null===l||void 0===l||null===(n=l.iconButtonProps)||void 0===n?void 0:n.size})})),u]})},K=r(2152),V=r(1081);function H(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r=0;r-=1)D.current.sendKey(e[r],0)}else D.current.sendCtrlAltDel();j(null)}}(r)},children:(0,t.jsx)(s.Z,{variant:"subtitle1",children:n})},n)}))})]})}),[g]),H=(0,d.useMemo)((function(){return(0,t.jsx)(a.Z,{children:(0,t.jsx)(v.Z,{onClick:function(){for(var e=arguments.length,r=new Array(e),t=0;t :first-child":{flexGrow:1}},children:[(0,t.jsx)(a.Z,{textAlign:"center",children:G}),b&&z&&(0,t.jsx)(ue.Z,{spacing:".3em",children:(0,t.jsx)(v.Z,{onClick:I,children:(0,t.jsx)(le.Z,{})})})]})]})};he.defaultProps=de;var pe=he},9370:function(e,n,r){function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r2&&void 0!==arguments[2]?arguments[2]:{}).ms,t=a(r)-e;return t<=n},s=function(e){var n,r=e,t=i(l([60,60].reduce((function(e,n){var t=r%n;return e.push(t),r=(r-t)/n,e}),[])).concat([r]),3),c=t[0],a=t[1],u=t[2],s=null!==(n=[{unit:"h",value:u},{unit:"m",value:a}].find((function(e){return e.value})))&&void 0!==n?n:{unit:"s",value:c};return function(e){for(var n=1;nt.backdrop})({zIndex:-1}),C=(0,b.ZP)(p.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),P=(0,b.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,d.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,r.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),k=(0,b.ZP)(c.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,d.Z)(n.scroll)}`],t[`paperWidth${(0,d.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,r.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${v.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${v.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${v.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var R=i.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiDialog"}),p=(0,x.Z)(),b={enter:p.transitions.duration.enteringScreen,exit:p.transitions.duration.leavingScreen},{"aria-describedby":f,"aria-labelledby":v,BackdropComponent:Z,BackdropProps:R,children:W,className:$,disableEscapeKeyDown:I=!1,fullScreen:M=!1,fullWidth:B=!1,maxWidth:O="sm",onBackdropClick:F,onClose:E,open:N,PaperComponent:D=c.Z,PaperProps:j={},scroll:A="paper",TransitionComponent:T=u.Z,transitionDuration:L=b,TransitionProps:V}=n,z=(0,o.Z)(n,S),U=(0,r.Z)({},n,{disableEscapeKeyDown:I,fullScreen:M,fullWidth:B,maxWidth:O,scroll:A}),K=(e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${(0,d.Z)(n)}`],paper:["paper",`paperScroll${(0,d.Z)(n)}`,`paperWidth${(0,d.Z)(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return(0,l.Z)(a,h,t)})(U),G=i.useRef(),X=(0,s.Z)(v),H=i.useMemo((()=>({titleId:X})),[X]);return(0,y.jsx)(C,(0,r.Z)({className:(0,a.Z)(K.root,$),BackdropProps:(0,r.Z)({transitionDuration:L,as:Z},R),closeAfterTransition:!0,BackdropComponent:w,disableEscapeKeyDown:I,onClose:E,open:N,ref:t,onClick:e=>{G.current&&(G.current=null,F&&F(e),E&&E(e,"backdropClick"))},ownerState:U},z,{children:(0,y.jsx)(T,(0,r.Z)({appear:!0,in:N,timeout:L,role:"presentation"},V,{children:(0,y.jsx)(P,{className:(0,a.Z)(K.container),onMouseDown:e=>{G.current=e.target===e.currentTarget},ownerState:U,children:(0,y.jsx)(k,(0,r.Z)({as:D,elevation:24,role:"dialog","aria-describedby":f,"aria-labelledby":X},j,{className:(0,a.Z)(K.paper,j.className),ownerState:U,children:(0,y.jsx)(g.Provider,{value:H,children:W})}))})}))}))}))},6135:function(e,t,n){var o=n(3366),r=n(7462),i=n(7294),a=n(9766),l=n(7192),s=n(3970),d=n(1496),p=n(3616),u=n(4707),c=n(5893);const m=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],b=(0,d.ZP)(s.Ej,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,s.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return(0,r.Z)({position:"relative",backgroundColor:i,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:i}},[`&.${u.Z.focused}`]:{backgroundColor:i},[`&.${u.Z.disabled}`]:{backgroundColor:n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${u.Z.focused}:after`]:{transform:"scaleX(1)"},[`&.${u.Z.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${u.Z.disabled}):before`]:{borderBottom:`1px solid ${e.palette.text.primary}`},[`&.${u.Z.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,r.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),f=(0,d.ZP)(s.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:s._o})((({theme:e,ownerState:t})=>(0,r.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),h=i.forwardRef((function(e,t){const n=(0,p.Z)({props:e,name:"MuiFilledInput"}),{components:i={},componentsProps:d,fullWidth:h=!1,inputComponent:v="input",multiline:g=!1,type:Z="text"}=n,x=(0,o.Z)(n,m),y=(0,r.Z)({},n,{fullWidth:h,inputComponent:v,multiline:g,type:Z}),S=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},i=(0,l.Z)(o,u._,t);return(0,r.Z)({},t,i)})(n),w={root:{ownerState:y},input:{ownerState:y}},C=d?(0,a.Z)(d,w):w;return(0,c.jsx)(s.ZP,(0,r.Z)({components:(0,r.Z)({Root:b,Input:f},i),componentsProps:C,fullWidth:h,inputComponent:v,multiline:g,ref:t,type:Z},x,{classes:S}))}));h.muiName="Input",t.Z=h},4707:function(e,t,n){n.d(t,{_:function(){return r}});var o=n(8979);function r(e){return(0,o.Z)("MuiFilledInput",e)}const i=(0,n(6087).Z)("MuiFilledInput",["root","colorSecondary","underline","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","hiddenLabel","input","inputSizeSmall","inputHiddenLabel","inputMultiline","inputAdornedStart","inputAdornedEnd"]);t.Z=i},9332:function(e,t,n){var o=n(3366),r=n(7462),i=n(7294),a=n(7192),l=n(9766),s=n(3970),d=n(1496),p=n(3616),u=n(7021),c=n(5893);const m=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],b=(0,d.ZP)(s.Ej,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,s.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return(0,r.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${u.Z.focused}:after`]:{transform:"scaleX(1)"},[`&.${u.Z.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${u.Z.disabled}):before`]:{borderBottom:`2px solid ${e.palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${u.Z.disabled}:before`]:{borderBottomStyle:"dotted"}})})),f=(0,d.ZP)(s.rA,{name:"MuiInput",slot:"Input",overridesResolver:s._o})({}),h=i.forwardRef((function(e,t){const n=(0,p.Z)({props:e,name:"MuiInput"}),{disableUnderline:i,components:d={},componentsProps:h,fullWidth:v=!1,inputComponent:g="input",multiline:Z=!1,type:x="text"}=n,y=(0,o.Z)(n,m),S=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},i=(0,a.Z)(o,u.l,t);return(0,r.Z)({},t,i)})(n),w={root:{ownerState:{disableUnderline:i}}},C=h?(0,l.Z)(h,w):w;return(0,c.jsx)(s.ZP,(0,r.Z)({components:(0,r.Z)({Root:b,Input:f},d),componentsProps:C,fullWidth:v,inputComponent:g,multiline:Z,ref:t,type:x},y,{classes:S}))}));h.muiName="Input",t.Z=h},9309:function(e,t,n){n.d(t,{Z:function(){return S}});var o=n(3366),r=n(7462),i=n(7294),a=n(6010),l=n(7192),s=n(1796),d=n(1496),p=n(3616),u=n(9773),c=n(7739),m=n(8974),b=n(1705),f=n(5097),h=n(4592);var v=(0,n(6087).Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),g=n(2429),Z=n(5893);const x=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],y=(0,d.ZP)(c.Z,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,r.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${g.Z.selected}`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${g.Z.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${g.Z.selected}:hover`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${g.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${g.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity},[`& + .${f.Z.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${f.Z.inset}`]:{marginLeft:52},[`& .${v.root}`]:{marginTop:0,marginBottom:0},[`& .${v.inset}`]:{paddingLeft:36},[`& .${h.Z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,r.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${h.Z.root} svg`]:{fontSize:"1.25rem"}}))));var S=i.forwardRef((function(e,t){const n=(0,p.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:d="li",dense:c=!1,divider:f=!1,disableGutters:h=!1,focusVisibleClassName:v,role:S="menuitem",tabIndex:w}=n,C=(0,o.Z)(n,x),P=i.useContext(u.Z),k={dense:c||P.dense||!1,disableGutters:h},R=i.useRef(null);(0,m.Z)((()=>{s&&R.current&&R.current.focus()}),[s]);const W=(0,r.Z)({},n,{dense:k.dense,divider:f,disableGutters:h}),$=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:i,selected:a,classes:s}=e,d={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",o&&"divider",a&&"selected"]},p=(0,l.Z)(d,g.K,s);return(0,r.Z)({},s,p)})(n),I=(0,b.Z)(R,t);let M;return n.disabled||(M=void 0!==w?w:-1),(0,Z.jsx)(u.Z.Provider,{value:k,children:(0,Z.jsx)(y,(0,r.Z)({ref:I,role:S,tabIndex:M,component:d,focusVisibleClassName:(0,a.Z)($.focusVisible,v)},C,{ownerState:W,classes:$}))})}))},2429:function(e,t,n){n.d(t,{K:function(){return r}});var o=n(8979);function r(e){return(0,o.Z)("MuiMenuItem",e)}const i=(0,n(6087).Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);t.Z=i},3213:function(e,t,n){n.d(t,{Z:function(){return Y}});var o=n(7462),r=n(3366),i=n(7294),a=n(6010),l=n(9766),s=n(1387),d=(n(9864),n(7192)),p=n(8038),u=n(8216),c=n(8333),m=n(8979);function b(e){return(0,m.Z)("MuiNativeSelect",e)}var f=(0,n(6087).Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),h=n(1496),v=n(5893);const g=["className","disabled","IconComponent","inputRef","variant"],Z=({ownerState:e,theme:t})=>(0,o.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${f.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),x=(0,h.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:h.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${f.multiple}`]:t.multiple}]}})(Z),y=({ownerState:e,theme:t})=>(0,o.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${f.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),S=(0,h.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,u.Z)(n.variant)}`],n.open&&t.iconOpen]}})(y);var w,C=i.forwardRef((function(e,t){const{className:n,disabled:l,IconComponent:s,inputRef:p,variant:c="standard"}=e,m=(0,r.Z)(e,g),f=(0,o.Z)({},e,{disabled:l,variant:c}),h=(e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i}=e,a={select:["select",n,o&&"disabled",r&&"multiple"],icon:["icon",`icon${(0,u.Z)(n)}`,i&&"iconOpen",o&&"disabled"]};return(0,d.Z)(a,b,t)})(f);return(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(x,(0,o.Z)({ownerState:f,className:(0,a.Z)(h.select,n),disabled:l,ref:p||t},m)),e.multiple?null:(0,v.jsx)(S,{as:s,ownerState:f,className:h.icon})]})})),P=n(5108),k=n(1705),R=n(9299),W=n(5603);const $=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],I=(0,h.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${W.Z.select}`]:t.select},{[`&.${W.Z.select}`]:t[n.variant]},{[`&.${W.Z.multiple}`]:t.multiple}]}})(Z,{[`&.${W.Z.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),M=(0,h.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,u.Z)(n.variant)}`],n.open&&t.iconOpen]}})(y),B=(0,h.ZP)("input",{shouldForwardProp:e=>(0,h.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function O(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function F(e){return null==e||"string"===typeof e&&!e.trim()}var E,N,D=i.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":l,autoFocus:m,autoWidth:b,children:f,className:h,defaultOpen:g,defaultValue:Z,disabled:x,displayEmpty:y,IconComponent:S,inputRef:C,labelId:E,MenuProps:N={},multiple:D,name:j,onBlur:A,onChange:T,onClose:L,onFocus:V,onOpen:z,open:U,readOnly:K,renderValue:G,SelectDisplayProps:X={},tabIndex:H,value:_,variant:q="standard"}=e,Y=(0,r.Z)(e,$),[J,Q]=(0,R.Z)({controlled:_,default:Z,name:"Select"}),[ee,te]=(0,R.Z)({controlled:U,default:g,name:"Select"}),ne=i.useRef(null),oe=i.useRef(null),[re,ie]=i.useState(null),{current:ae}=i.useRef(null!=U),[le,se]=i.useState(),de=(0,k.Z)(t,C),pe=i.useCallback((e=>{oe.current=e,e&&ie(e)}),[]);i.useImperativeHandle(de,(()=>({focus:()=>{oe.current.focus()},node:ne.current,value:J})),[J]),i.useEffect((()=>{g&&ee&&re&&!ae&&(se(b?null:re.clientWidth),oe.current.focus())}),[re,b]),i.useEffect((()=>{m&&oe.current.focus()}),[m]),i.useEffect((()=>{if(!E)return;const e=(0,p.Z)(oe.current).getElementById(E);if(e){const t=()=>{getSelection().isCollapsed&&oe.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[E]);const ue=(e,t)=>{e?z&&z(t):L&&L(t),ae||(se(b?null:re.clientWidth),te(e))},ce=i.Children.toArray(f),me=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(D){n=Array.isArray(J)?J.slice():[];const t=J.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),J!==n&&(Q(n),T)){const o=t.nativeEvent||t,r=new o.constructor(o.type,o);Object.defineProperty(r,"target",{writable:!0,value:{value:n,name:j}}),T(r,e)}D||ue(!1,t)}},be=null!==re&ⅇlet fe,he;delete Y["aria-invalid"];const ve=[];let ge=!1,Ze=!1;((0,P.vd)({value:J})||y)&&(G?fe=G(J):ge=!0);const xe=ce.map((e=>{if(!i.isValidElement(e))return null;let t;if(D){if(!Array.isArray(J))throw new Error((0,s.Z)(2));t=J.some((t=>O(t,e.props.value))),t&&ge&&ve.push(e.props.children)}else t=O(J,e.props.value),t&&ge&&(he=e.props.children);return t&&(Ze=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:me(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ge&&(fe=D?0===ve.length?null:ve.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:o,multiple:r,open:i}=e,a={select:["select",n,o&&"disabled",r&&"multiple"],icon:["icon",`icon${(0,u.Z)(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return(0,d.Z)(a,W.o,t)})(Ce);return(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(I,(0,o.Z)({ref:pe,tabIndex:ye,role:"button","aria-disabled":x?"true":void 0,"aria-expanded":be?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[E,we].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!K){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ue(!0,e))}},onMouseDown:x||K?null:e=>{0===e.button&&(e.preventDefault(),oe.current.focus(),ue(!0,e))},onBlur:e=>{!be&&A&&(Object.defineProperty(e,"target",{writable:!0,value:{value:J,name:j}}),A(e))},onFocus:V},X,{ownerState:Ce,className:(0,a.Z)(Pe.select,h,X.className),id:we,children:F(fe)?w||(w=(0,v.jsx)("span",{className:"notranslate",children:"\u200b"})):fe})),(0,v.jsx)(B,(0,o.Z)({value:Array.isArray(J)?J.join(","):J,name:j,ref:ne,"aria-hidden":!0,onChange:e=>{const t=ce.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=ce[t];Q(n.props.value),T&&T(e,n)},tabIndex:-1,disabled:x,className:Pe.nativeInput,autoFocus:m,ownerState:Ce},Y)),(0,v.jsx)(M,{as:S,className:Pe.icon,ownerState:Ce}),(0,v.jsx)(c.Z,(0,o.Z)({id:`menu-${j||""}`,anchorEl:re,open:be,onClose:e=>{ue(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},N,{MenuListProps:(0,o.Z)({"aria-labelledby":E,role:"listbox",disableListWrap:!0},N.MenuListProps),PaperProps:(0,o.Z)({},N.PaperProps,{style:(0,o.Z)({minWidth:Se},null!=N.PaperProps?N.PaperProps.style:null)}),children:xe}))]})})),j=n(5704),A=n(4423),T=n(224),L=n(9332),V=n(6135),z=n(7709),U=n(3616);const K=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],G={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,h.FO)(e)&&"variant"!==e,slot:"Root"},X=(0,h.ZP)(L.Z,G)(""),H=(0,h.ZP)(z.Z,G)(""),_=(0,h.ZP)(V.Z,G)(""),q=i.forwardRef((function(e,t){const n=(0,U.Z)({name:"MuiSelect",props:e}),{autoWidth:s=!1,children:d,classes:p={},className:u,defaultOpen:c=!1,displayEmpty:m=!1,IconComponent:b=T.Z,id:f,input:h,inputProps:g,label:Z,labelId:x,MenuProps:y,multiple:S=!1,native:w=!1,onClose:P,onOpen:R,open:W,renderValue:$,SelectDisplayProps:I,variant:M="outlined"}=n,B=(0,r.Z)(n,K),O=w?C:D,F=(0,A.Z)(),L=(0,j.Z)({props:n,muiFormControl:F,states:["variant"]}).variant||M,V=h||{standard:E||(E=(0,v.jsx)(X,{})),outlined:(0,v.jsx)(H,{label:Z}),filled:N||(N=(0,v.jsx)(_,{}))}[L],z=(e=>{const{classes:t}=e;return t})((0,o.Z)({},n,{variant:L,classes:p})),G=(0,k.Z)(t,V.ref);return i.cloneElement(V,(0,o.Z)({inputComponent:O,inputProps:(0,o.Z)({children:d,IconComponent:b,variant:L,type:void 0,multiple:S},w?{id:f}:{autoWidth:s,defaultOpen:c,displayEmpty:m,labelId:x,MenuProps:y,onClose:P,onOpen:R,open:W,renderValue:$,SelectDisplayProps:(0,o.Z)({id:f},I)},g,{classes:g?(0,l.Z)(z,g.classes):z},h?h.props.inputProps:{})},S&&w&&"outlined"===L?{notched:!0}:{},{ref:G,className:(0,a.Z)(V.props.className,u),variant:L},B))}));q.muiName="Select";var Y=q},5603:function(e,t,n){n.d(t,{o:function(){return r}});var o=n(8979);function r(e){return(0,o.Z)("MuiSelect",e)}const i=(0,n(6087).Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);t.Z=i},224:function(e,t,n){n(7294);var o=n(7892),r=n(5893);t.Z=(0,o.Z)((0,r.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},7579:function(e,t,n){var o;n.d(t,{Z:function(){return l}});var r=n(7294);let i=0;const a=(o||(o=n.t(r,2))).useId;function l(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),o=e||t;return r.useEffect((()=>{null==t&&(i+=1,n(`mui-${i}`))}),[t]),o}(e)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/111-2605129c170ed35d.js b/striker-ui/out/_next/static/chunks/195-d5fd184cc249f755.js similarity index 99% rename from striker-ui/out/_next/static/chunks/111-2605129c170ed35d.js rename to striker-ui/out/_next/static/chunks/195-d5fd184cc249f755.js index 4c6d0abe..8636c6de 100644 --- a/striker-ui/out/_next/static/chunks/111-2605129c170ed35d.js +++ b/striker-ui/out/_next/static/chunks/195-d5fd184cc249f755.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[111],{3457:function(e,t,o){o.d(t,{Z:function(){return v}});var r=o(3366),l=o(7462),n=o(7294),i=o(6010),a=o(7192),s=o(1496),c=o(3616),d=o(8979);function u(e){return(0,d.Z)("MuiFormGroup",e)}(0,o(6087).Z)("MuiFormGroup",["root","row","error"]);var f=o(4423),p=o(5704),h=o(5893);const b=["className","row"],m=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})((({ownerState:e})=>(0,l.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})));var v=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:s=!1}=o,d=(0,r.Z)(o,b),v=(0,f.Z)(),Z=(0,p.Z)({props:o,muiFormControl:v,states:["error"]}),w=(0,l.Z)({},o,{row:s,error:Z.error}),x=(e=>{const{classes:t,row:o,error:r}=e,l={root:["root",o&&"row",r&&"error"]};return(0,a.Z)(l,u,t)})(w);return(0,h.jsx)(m,(0,l.Z)({className:(0,i.Z)(x.root,n),ownerState:w,ref:t},d))}))},575:function(e,t,o){o.d(t,{Z:function(){return k}});var r=o(3366),l=o(7462),n=o(7294),i=o(7192),a=o(1796),s=o(1964),c=o(3616),d=o(7892),u=o(5893),f=(0,d.Z)((0,u.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=(0,d.Z)((0,u.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),h=o(1496);const b=(0,h.ZP)("span")({position:"relative",display:"flex"}),m=(0,h.ZP)(f)({transform:"scale(1)"}),v=(0,h.ZP)(p)((({theme:e,ownerState:t})=>(0,l.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));var Z=function(e){const{checked:t=!1,classes:o={},fontSize:r}=e,n=(0,l.Z)({},e,{checked:t});return(0,u.jsxs)(b,{className:o.root,ownerState:n,children:[(0,u.jsx)(m,{fontSize:r,className:o.background,ownerState:n}),(0,u.jsx)(v,{fontSize:r,className:o.dot,ownerState:n})]})},w=o(8216),x=o(9064).Z,S=o(209);var g=o(4568);const C=["checked","checkedIcon","color","icon","name","onChange","size"],y=(0,h.ZP)(s.Z,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${(0,w.Z)(o.color)}`]]}})((({theme:e,ownerState:t})=>(0,l.Z)({color:e.palette.text.secondary,"&:hover":{backgroundColor:(0,a.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g.Z.checked}`]:{color:e.palette[t.color].main}},{[`&.${g.Z.disabled}`]:{color:e.palette.action.disabled}})));const M=(0,u.jsx)(Z,{checked:!0}),R=(0,u.jsx)(Z,{});var k=n.forwardRef((function(e,t){var o,a;const s=(0,c.Z)({props:e,name:"MuiRadio"}),{checked:d,checkedIcon:f=M,color:p="primary",icon:h=R,name:b,onChange:m,size:v="medium"}=s,Z=(0,r.Z)(s,C),k=(0,l.Z)({},s,{color:p,size:v}),B=(e=>{const{classes:t,color:o}=e,r={root:["root",`color${(0,w.Z)(o)}`]};return(0,l.Z)({},t,(0,i.Z)(r,g.l,t))})(k),W=n.useContext(S.Z);let N=d;const E=x(m,W&&W.onChange);let z=b;var P,F;return W&&("undefined"===typeof N&&(P=W.value,N="object"===typeof(F=s.value)&&null!==F?P===F:String(P)===String(F)),"undefined"===typeof z&&(z=W.name)),(0,u.jsx)(y,(0,l.Z)({type:"radio",icon:n.cloneElement(h,{fontSize:null!=(o=R.props.fontSize)?o:v}),checkedIcon:n.cloneElement(f,{fontSize:null!=(a=M.props.fontSize)?a:v}),ownerState:k,classes:B,name:z,checked:N,onChange:E,ref:t},Z))}))},4568:function(e,t,o){o.d(t,{l:function(){return l}});var r=o(8979);function l(e){return(0,r.Z)("MuiRadio",e)}const n=(0,o(6087).Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);t.Z=n},8061:function(e,t,o){var r=o(7462),l=o(3366),n=o(7294),i=o(3457),a=o(1705),s=o(9299),c=o(209),d=o(7909),u=o(5893);const f=["actions","children","defaultValue","name","onChange","value"],p=n.forwardRef((function(e,t){const{actions:o,children:p,defaultValue:h,name:b,onChange:m,value:v}=e,Z=(0,l.Z)(e,f),w=n.useRef(null),[x,S]=(0,s.Z)({controlled:v,default:h,name:"RadioGroup"});n.useImperativeHandle(o,(()=>({focus:()=>{let e=w.current.querySelector("input:not(:disabled):checked");e||(e=w.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const g=(0,a.Z)(t,w),C=(0,d.Z)(b);return(0,u.jsx)(c.Z.Provider,{value:{name:C,onChange:e=>{S(e.target.value),m&&m(e,e.target.value)},value:x},children:(0,u.jsx)(i.Z,(0,r.Z)({role:"radiogroup",ref:g},Z,{children:p}))})}));t.Z=p},209:function(e,t,o){const r=o(7294).createContext(void 0);t.Z=r},5316:function(e,t,o){var r=o(3366),l=o(7462),n=o(7294),i=o(6010),a=o(7192),s=o(7739),c=o(8216),d=o(3616),u=o(1496),f=o(1073),p=o(5893);const h=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],b=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${(0,c.Z)(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,l.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${f.Z.iconWrapper}`]:(0,l.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${f.Z.selected}`]:{opacity:1},[`&.${f.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"primary"===t.textColor&&{color:e.palette.text.secondary,[`&.${f.Z.selected}`]:{color:e.palette.primary.main},[`&.${f.Z.disabled}`]:{color:e.palette.text.disabled}},"secondary"===t.textColor&&{color:e.palette.text.secondary,[`&.${f.Z.selected}`]:{color:e.palette.secondary.main},[`&.${f.Z.disabled}`]:{color:e.palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),m=n.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiTab"}),{className:s,disabled:u=!1,disableFocusRipple:m=!1,fullWidth:v,icon:Z,iconPosition:w="top",indicator:x,label:S,onChange:g,onClick:C,onFocus:y,selected:M,selectionFollowsFocus:R,textColor:k="inherit",value:B,wrapped:W=!1}=o,N=(0,r.Z)(o,h),E=(0,l.Z)({},o,{disabled:u,disableFocusRipple:m,selected:M,icon:!!Z,iconPosition:w,label:!!S,fullWidth:v,textColor:k,wrapped:W}),z=(e=>{const{classes:t,textColor:o,fullWidth:r,wrapped:l,icon:n,label:i,selected:s,disabled:d}=e,u={root:["root",n&&i&&"labelIcon",`textColor${(0,c.Z)(o)}`,r&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(u,f.V,t)})(E),P=Z&&S&&n.isValidElement(Z)?n.cloneElement(Z,{className:(0,i.Z)(z.iconWrapper,Z.props.className)}):Z;return(0,p.jsxs)(b,(0,l.Z)({focusRipple:!m,className:(0,i.Z)(z.root,s),ref:t,role:"tab","aria-selected":M,disabled:u,onClick:e=>{!M&&g&&g(e,B),C&&C(e)},onFocus:e=>{R&&!M&&g&&g(e,B),y&&y(e)},ownerState:E,tabIndex:M?0:-1},N,{children:["top"===w||"start"===w?(0,p.jsxs)(n.Fragment,{children:[P,S]}):(0,p.jsxs)(n.Fragment,{children:[S,P]}),x]}))}));t.Z=m},1073:function(e,t,o){o.d(t,{V:function(){return l}});var r=o(8979);function l(e){return(0,r.Z)("MuiTab",e)}const n=(0,o(6087).Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);t.Z=n},7023:function(e,t,o){o.d(t,{Z:function(){return Y}});var r=o(3366),l=o(7462),n=o(7294),i=(o(9864),o(6010)),a=o(7192),s=o(1496),c=o(3616),d=o(2734),u=o(7144);let f;function p(){if(f)return f;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),f="reverse",e.scrollLeft>0?f="default":(e.scrollLeft=1,0===e.scrollLeft&&(f="negative")),document.body.removeChild(e),f}function h(e,t){const o=e.scrollLeft;if("rtl"!==t)return o;switch(p()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}function b(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var m=o(5340),v=o(5893);const Z=["onChange"],w={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var x=o(7070),S=o(6686),g=o(7739),C=o(8979);function y(e){return(0,C.Z)("MuiTabScrollButton",e)}var M,R,k=(0,o(6087).Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const B=["className","direction","orientation","disabled"],W=(0,s.ZP)(g.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})((({ownerState:e})=>(0,l.Z)({width:40,flexShrink:0,opacity:.8,[`&.${k.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})));var N=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiTabScrollButton"}),{className:n,direction:s}=o,u=(0,r.Z)(o,B),f="rtl"===(0,d.Z)().direction,p=(0,l.Z)({isRtl:f},o),h=(e=>{const{classes:t,orientation:o,disabled:r}=e,l={root:["root",o,r&&"disabled"]};return(0,a.Z)(l,y,t)})(p);return(0,v.jsx)(W,(0,l.Z)({component:"div",className:(0,i.Z)(h.root,n),ref:t,role:null,ownerState:p,tabIndex:null},u,{children:"left"===s?M||(M=(0,v.jsx)(x.Z,{fontSize:"small"})):R||(R=(0,v.jsx)(S.Z,{fontSize:"small"}))}))})),E=o(2068),z=o(852),P=o(8038);const F=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],T=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,j=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,I=(e,t,o)=>{let r=!1,l=o(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const t=l.disabled||"true"===l.getAttribute("aria-disabled");if(l.hasAttribute("tabindex")&&!t)return void l.focus();l=o(e,l)}},L=(0,s.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${z.Z.scrollButtons}`]:t.scrollButtons},{[`& .${z.Z.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,l.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${z.Z.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),H=(0,s.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,l.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),$=(0,s.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})((({ownerState:e})=>(0,l.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),A=(0,s.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,l.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:t.palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:t.palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),X=(0,s.ZP)((function(e){const{onChange:t}=e,o=(0,r.Z)(e,Z),i=n.useRef(),a=n.useRef(null),s=()=>{i.current=a.current.offsetHeight-a.current.clientHeight};return n.useEffect((()=>{const e=(0,u.Z)((()=>{const e=i.current;s(),e!==i.current&&t(i.current)})),o=(0,m.Z)(a.current);return o.addEventListener("resize",e),()=>{e.clear(),o.removeEventListener("resize",e)}}),[t]),n.useEffect((()=>{s(),t(i.current)}),[t]),(0,v.jsx)("div",(0,l.Z)({style:w,ref:a},o))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),D={};var Y=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiTabs"}),s=(0,d.Z)(),f="rtl"===s.direction,{"aria-label":Z,"aria-labelledby":w,action:x,centered:S=!1,children:g,className:C,component:y="div",allowScrollButtonsMobile:M=!1,indicatorColor:R="primary",onChange:k,orientation:B="horizontal",ScrollButtonComponent:W=N,scrollButtons:Y="auto",selectionFollowsFocus:V,TabIndicatorProps:O={},TabScrollButtonProps:q={},textColor:G="primary",value:_,variant:U="standard",visibleScrollbar:K=!1}=o,J=(0,r.Z)(o,F),Q="scrollable"===U,ee="vertical"===B,te=ee?"scrollTop":"scrollLeft",oe=ee?"top":"left",re=ee?"bottom":"right",le=ee?"clientHeight":"clientWidth",ne=ee?"height":"width",ie=(0,l.Z)({},o,{component:y,allowScrollButtonsMobile:M,indicatorColor:R,orientation:B,vertical:ee,scrollButtons:Y,textColor:G,variant:U,visibleScrollbar:K,fixed:!Q,hideScrollbar:Q&&!K,scrollableX:Q&&!ee,scrollableY:Q&&ee,centered:S&&!Q,scrollButtonsHideMobile:!M}),ae=(e=>{const{vertical:t,fixed:o,hideScrollbar:r,scrollableX:l,scrollableY:n,centered:i,scrollButtonsHideMobile:s,classes:c}=e,d={root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",l&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,a.Z)(d,z.m,c)})(ie);const[se,ce]=n.useState(!1),[de,ue]=n.useState(D),[fe,pe]=n.useState({start:!1,end:!1}),[he,be]=n.useState({overflow:"hidden",scrollbarWidth:0}),me=new Map,ve=n.useRef(null),Ze=n.useRef(null),we=()=>{const e=ve.current;let t,o;if(e){const o=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:h(e,s.direction),scrollWidth:e.scrollWidth,top:o.top,bottom:o.bottom,left:o.left,right:o.right}}if(e&&!1!==_){const e=Ze.current.children;if(e.length>0){const t=e[me.get(_)];0,o=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:o}},xe=(0,E.Z)((()=>{const{tabsMeta:e,tabMeta:t}=we();let o,r=0;if(ee)o="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(o=f?"right":"left",t&&e){const l=f?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(f?-1:1)*(t[o]-e[o]+l)}const l={[o]:r,[ne]:t?t[ne]:0};if(isNaN(de[o])||isNaN(de[ne]))ue(l);else{const e=Math.abs(de[o]-l[o]),t=Math.abs(de[ne]-l[ne]);(e>=1||t>=1)&&ue(l)}})),Se=(e,{animation:t=!0}={})=>{t?function(e,t,o,r={},l=(()=>{})){const{ease:n=b,duration:i=300}=r;let a=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void l(new Error("Animation cancelled"));null===a&&(a=r);const d=Math.min(1,(r-a)/i);t[e]=n(d)*(o-s)+s,d>=1?requestAnimationFrame((()=>{l(null)})):requestAnimationFrame(u)};s===o?l(new Error("Element already at target position")):requestAnimationFrame(u)}(te,ve.current,e,{duration:s.transitions.duration.standard}):ve.current[te]=e},ge=e=>{let t=ve.current[te];ee?t+=e:(t+=e*(f?-1:1),t*=f&&"reverse"===p()?-1:1),Se(t)},Ce=()=>{const e=ve.current[le];let t=0;const o=Array.from(Ze.current.children);for(let r=0;re)break;t+=l[le]}return t},ye=()=>{ge(-1*Ce())},Me=()=>{ge(Ce())},Re=n.useCallback((e=>{be({overflow:null,scrollbarWidth:e})}),[]),ke=(0,E.Z)((e=>{const{tabsMeta:t,tabMeta:o}=we();if(o&&t)if(o[oe]t[re]){const r=t[te]+(o[re]-t[re]);Se(r,{animation:e})}})),Be=(0,E.Z)((()=>{if(Q&&!1!==Y){const{scrollTop:e,scrollHeight:t,clientHeight:o,scrollWidth:r,clientWidth:l}=ve.current;let n,i;if(ee)n=e>1,i=e1,i=f?e>1:e{const e=(0,u.Z)((()=>{xe(),Be()})),t=(0,m.Z)(ve.current);let o;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(o=new ResizeObserver(e),Array.from(Ze.current.children).forEach((e=>{o.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),o&&o.disconnect()}}),[xe,Be]);const We=n.useMemo((()=>(0,u.Z)((()=>{Be()}))),[Be]);n.useEffect((()=>()=>{We.clear()}),[We]),n.useEffect((()=>{ce(!0)}),[]),n.useEffect((()=>{xe(),Be()})),n.useEffect((()=>{ke(D!==de)}),[ke,de]),n.useImperativeHandle(x,(()=>({updateIndicator:xe,updateScrollButtons:Be})),[xe,Be]);const Ne=(0,v.jsx)(A,(0,l.Z)({},O,{className:(0,i.Z)(ae.indicator,O.className),ownerState:ie,style:(0,l.Z)({},de,O.style)}));let Ee=0;const ze=n.Children.map(g,(e=>{if(!n.isValidElement(e))return null;const t=void 0===e.props.value?Ee:e.props.value;me.set(t,Ee);const o=t===_;return Ee+=1,n.cloneElement(e,(0,l.Z)({fullWidth:"fullWidth"===U,indicator:o&&!se&&Ne,selected:o,selectionFollowsFocus:V,onChange:k,textColor:G,value:t},1!==Ee||!1!==_||e.props.tabIndex?{}:{tabIndex:0}))})),Pe=(()=>{const e={};e.scrollbarSizeListener=Q?(0,v.jsx)(X,{onChange:Re,className:(0,i.Z)(ae.scrollableX,ae.hideScrollbar)}):null;const t=fe.start||fe.end,o=Q&&("auto"===Y&&t||!0===Y);return e.scrollButtonStart=o?(0,v.jsx)(W,(0,l.Z)({orientation:B,direction:f?"right":"left",onClick:ye,disabled:!fe.start},q,{className:(0,i.Z)(ae.scrollButtons,q.className)})):null,e.scrollButtonEnd=o?(0,v.jsx)(W,(0,l.Z)({orientation:B,direction:f?"left":"right",onClick:Me,disabled:!fe.end},q,{className:(0,i.Z)(ae.scrollButtons,q.className)})):null,e})();return(0,v.jsxs)(L,(0,l.Z)({className:(0,i.Z)(ae.root,C),ownerState:ie,ref:t,as:y},J,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,(0,v.jsxs)(H,{className:ae.scroller,ownerState:ie,style:{overflow:he.overflow,[ee?"margin"+(f?"Left":"Right"):"marginBottom"]:K?void 0:-he.scrollbarWidth},ref:ve,onScroll:We,children:[(0,v.jsx)($,{"aria-label":Z,"aria-labelledby":w,"aria-orientation":"vertical"===B?"vertical":null,className:ae.flexContainer,ownerState:ie,onKeyDown:e=>{const t=Ze.current,o=(0,P.Z)(t).activeElement;if("tab"!==o.getAttribute("role"))return;let r="horizontal"===B?"ArrowLeft":"ArrowUp",l="horizontal"===B?"ArrowRight":"ArrowDown";switch("horizontal"===B&&f&&(r="ArrowRight",l="ArrowLeft"),e.key){case r:e.preventDefault(),I(t,o,j);break;case l:e.preventDefault(),I(t,o,T);break;case"Home":e.preventDefault(),I(t,null,T);break;case"End":e.preventDefault(),I(t,null,j)}},ref:Ze,role:"tablist",children:ze}),se&&Ne]}),Pe.scrollButtonEnd]}))}))},852:function(e,t,o){o.d(t,{m:function(){return l}});var r=o(8979);function l(e){return(0,r.Z)("MuiTabs",e)}const n=(0,o(6087).Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.Z=n}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{3457:function(e,t,o){o.d(t,{Z:function(){return v}});var r=o(3366),l=o(7462),n=o(7294),i=o(6010),a=o(7192),s=o(1496),c=o(3616),d=o(8979);function u(e){return(0,d.Z)("MuiFormGroup",e)}(0,o(6087).Z)("MuiFormGroup",["root","row","error"]);var f=o(4423),p=o(5704),h=o(5893);const b=["className","row"],m=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})((({ownerState:e})=>(0,l.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})));var v=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:s=!1}=o,d=(0,r.Z)(o,b),v=(0,f.Z)(),Z=(0,p.Z)({props:o,muiFormControl:v,states:["error"]}),w=(0,l.Z)({},o,{row:s,error:Z.error}),x=(e=>{const{classes:t,row:o,error:r}=e,l={root:["root",o&&"row",r&&"error"]};return(0,a.Z)(l,u,t)})(w);return(0,h.jsx)(m,(0,l.Z)({className:(0,i.Z)(x.root,n),ownerState:w,ref:t},d))}))},575:function(e,t,o){o.d(t,{Z:function(){return k}});var r=o(3366),l=o(7462),n=o(7294),i=o(7192),a=o(1796),s=o(1964),c=o(3616),d=o(7892),u=o(5893),f=(0,d.Z)((0,u.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=(0,d.Z)((0,u.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),h=o(1496);const b=(0,h.ZP)("span")({position:"relative",display:"flex"}),m=(0,h.ZP)(f)({transform:"scale(1)"}),v=(0,h.ZP)(p)((({theme:e,ownerState:t})=>(0,l.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));var Z=function(e){const{checked:t=!1,classes:o={},fontSize:r}=e,n=(0,l.Z)({},e,{checked:t});return(0,u.jsxs)(b,{className:o.root,ownerState:n,children:[(0,u.jsx)(m,{fontSize:r,className:o.background,ownerState:n}),(0,u.jsx)(v,{fontSize:r,className:o.dot,ownerState:n})]})},w=o(8216),x=o(9064).Z,S=o(209);var g=o(4568);const C=["checked","checkedIcon","color","icon","name","onChange","size"],y=(0,h.ZP)(s.Z,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${(0,w.Z)(o.color)}`]]}})((({theme:e,ownerState:t})=>(0,l.Z)({color:e.palette.text.secondary,"&:hover":{backgroundColor:(0,a.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g.Z.checked}`]:{color:e.palette[t.color].main}},{[`&.${g.Z.disabled}`]:{color:e.palette.action.disabled}})));const M=(0,u.jsx)(Z,{checked:!0}),R=(0,u.jsx)(Z,{});var k=n.forwardRef((function(e,t){var o,a;const s=(0,c.Z)({props:e,name:"MuiRadio"}),{checked:d,checkedIcon:f=M,color:p="primary",icon:h=R,name:b,onChange:m,size:v="medium"}=s,Z=(0,r.Z)(s,C),k=(0,l.Z)({},s,{color:p,size:v}),B=(e=>{const{classes:t,color:o}=e,r={root:["root",`color${(0,w.Z)(o)}`]};return(0,l.Z)({},t,(0,i.Z)(r,g.l,t))})(k),W=n.useContext(S.Z);let N=d;const E=x(m,W&&W.onChange);let z=b;var P,F;return W&&("undefined"===typeof N&&(P=W.value,N="object"===typeof(F=s.value)&&null!==F?P===F:String(P)===String(F)),"undefined"===typeof z&&(z=W.name)),(0,u.jsx)(y,(0,l.Z)({type:"radio",icon:n.cloneElement(h,{fontSize:null!=(o=R.props.fontSize)?o:v}),checkedIcon:n.cloneElement(f,{fontSize:null!=(a=M.props.fontSize)?a:v}),ownerState:k,classes:B,name:z,checked:N,onChange:E,ref:t},Z))}))},4568:function(e,t,o){o.d(t,{l:function(){return l}});var r=o(8979);function l(e){return(0,r.Z)("MuiRadio",e)}const n=(0,o(6087).Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);t.Z=n},8061:function(e,t,o){var r=o(7462),l=o(3366),n=o(7294),i=o(3457),a=o(1705),s=o(9299),c=o(209),d=o(7909),u=o(5893);const f=["actions","children","defaultValue","name","onChange","value"],p=n.forwardRef((function(e,t){const{actions:o,children:p,defaultValue:h,name:b,onChange:m,value:v}=e,Z=(0,l.Z)(e,f),w=n.useRef(null),[x,S]=(0,s.Z)({controlled:v,default:h,name:"RadioGroup"});n.useImperativeHandle(o,(()=>({focus:()=>{let e=w.current.querySelector("input:not(:disabled):checked");e||(e=w.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const g=(0,a.Z)(t,w),C=(0,d.Z)(b);return(0,u.jsx)(c.Z.Provider,{value:{name:C,onChange:e=>{S(e.target.value),m&&m(e,e.target.value)},value:x},children:(0,u.jsx)(i.Z,(0,r.Z)({role:"radiogroup",ref:g},Z,{children:p}))})}));t.Z=p},209:function(e,t,o){const r=o(7294).createContext(void 0);t.Z=r},5316:function(e,t,o){var r=o(3366),l=o(7462),n=o(7294),i=o(6010),a=o(7192),s=o(7739),c=o(8216),d=o(3616),u=o(1496),f=o(1073),p=o(5893);const h=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],b=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${(0,c.Z)(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,l.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${f.Z.iconWrapper}`]:(0,l.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${f.Z.selected}`]:{opacity:1},[`&.${f.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"primary"===t.textColor&&{color:e.palette.text.secondary,[`&.${f.Z.selected}`]:{color:e.palette.primary.main},[`&.${f.Z.disabled}`]:{color:e.palette.text.disabled}},"secondary"===t.textColor&&{color:e.palette.text.secondary,[`&.${f.Z.selected}`]:{color:e.palette.secondary.main},[`&.${f.Z.disabled}`]:{color:e.palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),m=n.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiTab"}),{className:s,disabled:u=!1,disableFocusRipple:m=!1,fullWidth:v,icon:Z,iconPosition:w="top",indicator:x,label:S,onChange:g,onClick:C,onFocus:y,selected:M,selectionFollowsFocus:R,textColor:k="inherit",value:B,wrapped:W=!1}=o,N=(0,r.Z)(o,h),E=(0,l.Z)({},o,{disabled:u,disableFocusRipple:m,selected:M,icon:!!Z,iconPosition:w,label:!!S,fullWidth:v,textColor:k,wrapped:W}),z=(e=>{const{classes:t,textColor:o,fullWidth:r,wrapped:l,icon:n,label:i,selected:s,disabled:d}=e,u={root:["root",n&&i&&"labelIcon",`textColor${(0,c.Z)(o)}`,r&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(u,f.V,t)})(E),P=Z&&S&&n.isValidElement(Z)?n.cloneElement(Z,{className:(0,i.Z)(z.iconWrapper,Z.props.className)}):Z;return(0,p.jsxs)(b,(0,l.Z)({focusRipple:!m,className:(0,i.Z)(z.root,s),ref:t,role:"tab","aria-selected":M,disabled:u,onClick:e=>{!M&&g&&g(e,B),C&&C(e)},onFocus:e=>{R&&!M&&g&&g(e,B),y&&y(e)},ownerState:E,tabIndex:M?0:-1},N,{children:["top"===w||"start"===w?(0,p.jsxs)(n.Fragment,{children:[P,S]}):(0,p.jsxs)(n.Fragment,{children:[S,P]}),x]}))}));t.Z=m},1073:function(e,t,o){o.d(t,{V:function(){return l}});var r=o(8979);function l(e){return(0,r.Z)("MuiTab",e)}const n=(0,o(6087).Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);t.Z=n},7023:function(e,t,o){o.d(t,{Z:function(){return Y}});var r=o(3366),l=o(7462),n=o(7294),i=(o(9864),o(6010)),a=o(7192),s=o(1496),c=o(3616),d=o(2734),u=o(7144);let f;function p(){if(f)return f;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),f="reverse",e.scrollLeft>0?f="default":(e.scrollLeft=1,0===e.scrollLeft&&(f="negative")),document.body.removeChild(e),f}function h(e,t){const o=e.scrollLeft;if("rtl"!==t)return o;switch(p()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}function b(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var m=o(5340),v=o(5893);const Z=["onChange"],w={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var x=o(7070),S=o(6686),g=o(7739),C=o(8979);function y(e){return(0,C.Z)("MuiTabScrollButton",e)}var M,R,k=(0,o(6087).Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const B=["className","direction","orientation","disabled"],W=(0,s.ZP)(g.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})((({ownerState:e})=>(0,l.Z)({width:40,flexShrink:0,opacity:.8,[`&.${k.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})));var N=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiTabScrollButton"}),{className:n,direction:s}=o,u=(0,r.Z)(o,B),f="rtl"===(0,d.Z)().direction,p=(0,l.Z)({isRtl:f},o),h=(e=>{const{classes:t,orientation:o,disabled:r}=e,l={root:["root",o,r&&"disabled"]};return(0,a.Z)(l,y,t)})(p);return(0,v.jsx)(W,(0,l.Z)({component:"div",className:(0,i.Z)(h.root,n),ref:t,role:null,ownerState:p,tabIndex:null},u,{children:"left"===s?M||(M=(0,v.jsx)(x.Z,{fontSize:"small"})):R||(R=(0,v.jsx)(S.Z,{fontSize:"small"}))}))})),E=o(2068),z=o(852),P=o(8038);const F=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],T=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,j=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,I=(e,t,o)=>{let r=!1,l=o(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const t=l.disabled||"true"===l.getAttribute("aria-disabled");if(l.hasAttribute("tabindex")&&!t)return void l.focus();l=o(e,l)}},L=(0,s.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${z.Z.scrollButtons}`]:t.scrollButtons},{[`& .${z.Z.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,l.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${z.Z.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),H=(0,s.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,l.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),$=(0,s.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})((({ownerState:e})=>(0,l.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),A=(0,s.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,l.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:t.palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:t.palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),X=(0,s.ZP)((function(e){const{onChange:t}=e,o=(0,r.Z)(e,Z),i=n.useRef(),a=n.useRef(null),s=()=>{i.current=a.current.offsetHeight-a.current.clientHeight};return n.useEffect((()=>{const e=(0,u.Z)((()=>{const e=i.current;s(),e!==i.current&&t(i.current)})),o=(0,m.Z)(a.current);return o.addEventListener("resize",e),()=>{e.clear(),o.removeEventListener("resize",e)}}),[t]),n.useEffect((()=>{s(),t(i.current)}),[t]),(0,v.jsx)("div",(0,l.Z)({style:w,ref:a},o))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),D={};var Y=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiTabs"}),s=(0,d.Z)(),f="rtl"===s.direction,{"aria-label":Z,"aria-labelledby":w,action:x,centered:S=!1,children:g,className:C,component:y="div",allowScrollButtonsMobile:M=!1,indicatorColor:R="primary",onChange:k,orientation:B="horizontal",ScrollButtonComponent:W=N,scrollButtons:Y="auto",selectionFollowsFocus:V,TabIndicatorProps:O={},TabScrollButtonProps:q={},textColor:G="primary",value:_,variant:U="standard",visibleScrollbar:K=!1}=o,J=(0,r.Z)(o,F),Q="scrollable"===U,ee="vertical"===B,te=ee?"scrollTop":"scrollLeft",oe=ee?"top":"left",re=ee?"bottom":"right",le=ee?"clientHeight":"clientWidth",ne=ee?"height":"width",ie=(0,l.Z)({},o,{component:y,allowScrollButtonsMobile:M,indicatorColor:R,orientation:B,vertical:ee,scrollButtons:Y,textColor:G,variant:U,visibleScrollbar:K,fixed:!Q,hideScrollbar:Q&&!K,scrollableX:Q&&!ee,scrollableY:Q&&ee,centered:S&&!Q,scrollButtonsHideMobile:!M}),ae=(e=>{const{vertical:t,fixed:o,hideScrollbar:r,scrollableX:l,scrollableY:n,centered:i,scrollButtonsHideMobile:s,classes:c}=e,d={root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",l&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,a.Z)(d,z.m,c)})(ie);const[se,ce]=n.useState(!1),[de,ue]=n.useState(D),[fe,pe]=n.useState({start:!1,end:!1}),[he,be]=n.useState({overflow:"hidden",scrollbarWidth:0}),me=new Map,ve=n.useRef(null),Ze=n.useRef(null),we=()=>{const e=ve.current;let t,o;if(e){const o=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:h(e,s.direction),scrollWidth:e.scrollWidth,top:o.top,bottom:o.bottom,left:o.left,right:o.right}}if(e&&!1!==_){const e=Ze.current.children;if(e.length>0){const t=e[me.get(_)];0,o=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:o}},xe=(0,E.Z)((()=>{const{tabsMeta:e,tabMeta:t}=we();let o,r=0;if(ee)o="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(o=f?"right":"left",t&&e){const l=f?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(f?-1:1)*(t[o]-e[o]+l)}const l={[o]:r,[ne]:t?t[ne]:0};if(isNaN(de[o])||isNaN(de[ne]))ue(l);else{const e=Math.abs(de[o]-l[o]),t=Math.abs(de[ne]-l[ne]);(e>=1||t>=1)&&ue(l)}})),Se=(e,{animation:t=!0}={})=>{t?function(e,t,o,r={},l=(()=>{})){const{ease:n=b,duration:i=300}=r;let a=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void l(new Error("Animation cancelled"));null===a&&(a=r);const d=Math.min(1,(r-a)/i);t[e]=n(d)*(o-s)+s,d>=1?requestAnimationFrame((()=>{l(null)})):requestAnimationFrame(u)};s===o?l(new Error("Element already at target position")):requestAnimationFrame(u)}(te,ve.current,e,{duration:s.transitions.duration.standard}):ve.current[te]=e},ge=e=>{let t=ve.current[te];ee?t+=e:(t+=e*(f?-1:1),t*=f&&"reverse"===p()?-1:1),Se(t)},Ce=()=>{const e=ve.current[le];let t=0;const o=Array.from(Ze.current.children);for(let r=0;re)break;t+=l[le]}return t},ye=()=>{ge(-1*Ce())},Me=()=>{ge(Ce())},Re=n.useCallback((e=>{be({overflow:null,scrollbarWidth:e})}),[]),ke=(0,E.Z)((e=>{const{tabsMeta:t,tabMeta:o}=we();if(o&&t)if(o[oe]t[re]){const r=t[te]+(o[re]-t[re]);Se(r,{animation:e})}})),Be=(0,E.Z)((()=>{if(Q&&!1!==Y){const{scrollTop:e,scrollHeight:t,clientHeight:o,scrollWidth:r,clientWidth:l}=ve.current;let n,i;if(ee)n=e>1,i=e1,i=f?e>1:e{const e=(0,u.Z)((()=>{xe(),Be()})),t=(0,m.Z)(ve.current);let o;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(o=new ResizeObserver(e),Array.from(Ze.current.children).forEach((e=>{o.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),o&&o.disconnect()}}),[xe,Be]);const We=n.useMemo((()=>(0,u.Z)((()=>{Be()}))),[Be]);n.useEffect((()=>()=>{We.clear()}),[We]),n.useEffect((()=>{ce(!0)}),[]),n.useEffect((()=>{xe(),Be()})),n.useEffect((()=>{ke(D!==de)}),[ke,de]),n.useImperativeHandle(x,(()=>({updateIndicator:xe,updateScrollButtons:Be})),[xe,Be]);const Ne=(0,v.jsx)(A,(0,l.Z)({},O,{className:(0,i.Z)(ae.indicator,O.className),ownerState:ie,style:(0,l.Z)({},de,O.style)}));let Ee=0;const ze=n.Children.map(g,(e=>{if(!n.isValidElement(e))return null;const t=void 0===e.props.value?Ee:e.props.value;me.set(t,Ee);const o=t===_;return Ee+=1,n.cloneElement(e,(0,l.Z)({fullWidth:"fullWidth"===U,indicator:o&&!se&&Ne,selected:o,selectionFollowsFocus:V,onChange:k,textColor:G,value:t},1!==Ee||!1!==_||e.props.tabIndex?{}:{tabIndex:0}))})),Pe=(()=>{const e={};e.scrollbarSizeListener=Q?(0,v.jsx)(X,{onChange:Re,className:(0,i.Z)(ae.scrollableX,ae.hideScrollbar)}):null;const t=fe.start||fe.end,o=Q&&("auto"===Y&&t||!0===Y);return e.scrollButtonStart=o?(0,v.jsx)(W,(0,l.Z)({orientation:B,direction:f?"right":"left",onClick:ye,disabled:!fe.start},q,{className:(0,i.Z)(ae.scrollButtons,q.className)})):null,e.scrollButtonEnd=o?(0,v.jsx)(W,(0,l.Z)({orientation:B,direction:f?"left":"right",onClick:Me,disabled:!fe.end},q,{className:(0,i.Z)(ae.scrollButtons,q.className)})):null,e})();return(0,v.jsxs)(L,(0,l.Z)({className:(0,i.Z)(ae.root,C),ownerState:ie,ref:t,as:y},J,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,(0,v.jsxs)(H,{className:ae.scroller,ownerState:ie,style:{overflow:he.overflow,[ee?"margin"+(f?"Left":"Right"):"marginBottom"]:K?void 0:-he.scrollbarWidth},ref:ve,onScroll:We,children:[(0,v.jsx)($,{"aria-label":Z,"aria-labelledby":w,"aria-orientation":"vertical"===B?"vertical":null,className:ae.flexContainer,ownerState:ie,onKeyDown:e=>{const t=Ze.current,o=(0,P.Z)(t).activeElement;if("tab"!==o.getAttribute("role"))return;let r="horizontal"===B?"ArrowLeft":"ArrowUp",l="horizontal"===B?"ArrowRight":"ArrowDown";switch("horizontal"===B&&f&&(r="ArrowRight",l="ArrowLeft"),e.key){case r:e.preventDefault(),I(t,o,j);break;case l:e.preventDefault(),I(t,o,T);break;case"Home":e.preventDefault(),I(t,null,T);break;case"End":e.preventDefault(),I(t,null,j)}},ref:Ze,role:"tablist",children:ze}),se&&Ne]}),Pe.scrollButtonEnd]}))}))},852:function(e,t,o){o.d(t,{m:function(){return l}});var r=o(8979);function l(e){return(0,r.Z)("MuiTabs",e)}const n=(0,o(6087).Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.Z=n}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/195-fa06e61dd4339031.js b/striker-ui/out/_next/static/chunks/195-fa06e61dd4339031.js deleted file mode 100644 index fa07f296..00000000 --- a/striker-ui/out/_next/static/chunks/195-fa06e61dd4339031.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{4825:function(r,e,n){var t=n(5893),o=n(1496),i=n(2992),l=n(7933),c=n(7169);function u(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var a={blue:c.Ej,normal:c.s7,red:c.hM},s=(0,o.ZP)(i.Z)(u({backgroundColor:c.s7,color:c.E5,textTransform:"none","&:hover":{backgroundColor:"".concat(c.s7,"F0")}},"&.".concat(l.Z.disabled),{backgroundColor:c.rr})),f=(0,o.ZP)((function(r){return(0,t.jsx)(s,function(r){for(var e=1;e=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}e.Z=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=r.sx,n=r.text,i=c(r,["sx","text"]);return(0,t.jsx)(t.Fragment,{children:n&&(0,t.jsx)(o.Z,l({},i,{sx:l({marginTop:".4em"},e),text:n}))})}},8187:function(r,e,n){var t=n(5893),o=n(7294),i=n(7357),l=n(4799),c=n(6576),u=n(238),a=n(6195),s=n(5537),f=n(7169),p=n(7750);function d(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function v(r){return function(r){if(Array.isArray(r))return d(r)}(r)||function(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(!r)return;if("string"===typeof r)return d(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(r,e)}(r)||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 g="MessageBox",h={error:"".concat(g,"-error"),info:"".concat(g,"-info"),warning:"".concat(g,"-warning")},O={error:(0,t.jsx)(c.Z,{}),info:(0,t.jsx)(u.Z,{}),warning:(0,t.jsx)(a.Z,{})},j={isShowInitially:!0,isAllowClose:!1,onClose:void 0,onCloseAppend:void 0,text:void 0,type:"info"},x=function(r){var e=r.children,n=r.isAllowClose,c=void 0===n?j.isAllowClose:n,u=r.isShowInitially,a=void 0===u?j.isShowInitially:u,d=r.onClose,g=r.onCloseAppend,x=r.type,w=void 0===x?j.type:x,P=r.text,Z=m(r,["children","isAllowClose","isShowInitially","onClose","onCloseAppend","type","text"]),S=Z.sx,A=(0,o.useState)(a),C=A[0],k=A[1],I=(0,o.useMemo)((function(){return c||void 0!==d||void 0!==g}),[c,d,g]),E=(0,o.useCallback)((function(r){return h[r]}),[]),M=(0,o.useCallback)((function(r){return void 0===O[r]?O.info:O[r]}),[]),D=(0,o.useCallback)((function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return(0,t.jsx)(p.Ac,{inverted:"info"===r,children:n})}),[e]),R=(0,o.useMemo)((function(){var r;return y((b(r={alignItems:"center",borderRadius:f.n_,display:"flex",flexDirection:"row",padding:".3em .6em","& > *":{color:f.lD},"& > :first-child":{marginRight:".3em"},"& > :nth-child(2)":{flexGrow:1}},"&.".concat(h.error),{backgroundColor:f.hM}),b(r,"&.".concat(h.info),{backgroundColor:f.s7,"& > *":{color:"".concat(f.E5)}}),b(r,"&.".concat(h.warning),{backgroundColor:f.Wd}),r),S)}),[S]);return C?(0,t.jsxs)(i.Z,y({},Z,{className:E(w),sx:R,children:[M(w),D(w,P),I&&(0,t.jsx)(l.Z,{onClick:null!==d&&void 0!==d?d:function(){for(var r=arguments.length,e=new Array(r),n=0;nr.length)&&(e=r.length);for(var n=0,t=new Array(e);n=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function m(r){return function(r){if(Array.isArray(r))return p(r)}(r)||function(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(!r)return;if("string"===typeof r)return p(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(r,e)}(r)||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 v=function(r){var e=r.endAdornment,n=r.label,p=r.onPasswordVisibilityAppend,v=r.sx,g=r.inputProps,h=(void 0===g?{}:g).type,O=r.type,j=void 0===O?h:O,x=y(r.inputProps,["type"]),w=y(r,["endAdornment","label","onPasswordVisibilityAppend","sx","inputProps","type"]),P=(0,a.useState)(j),Z=P[0],S=P[1],A=(0,a.useMemo)((function(){var r=j===f.Z.password,e=Z===f.Z.password;return(0,t.jsx)(t.Fragment,{children:r&&(0,t.jsx)(l.Z,{onClick:function(){for(var r=arguments.length,n=new Array(r),t=0;t=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}var d=function(r){var e,n=r.children,d=r.isNotifyRequired,b=r.sx,y=r.variant,m=void 0===y?"outlined":y,v=p(r,["children","isNotifyRequired","sx","variant"]),g=f((s(e={color:"".concat(a.s7,"9F")},"& .".concat(i.Z.root),{color:a.s7}),s(e,"&.".concat(l.Z.focused),{backgroundColor:a.s7,borderRadius:a.n_,color:a.E5,padding:".1em .6em"}),s(e,"&.".concat(l.Z.shrink," .").concat(i.Z.root),{display:"none"}),e),b);return(0,t.jsx)(c.Z,f({variant:m},v,{sx:g,children:(0,t.jsxs)(u.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[d&&(0,t.jsx)(o.Z,{sx:{marginLeft:"-.2rem",marginRight:".4rem"}}),n]})}))}},6284:function(r,e,n){var t=n(5893),o=n(5685),i=n(3640),l=n(1057),c=n(6239),u=n(4799),a=n(7294),s=n(7169),f=n(1363),p=n(9),d=n(192);function b(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function g(r){return function(r){if(Array.isArray(r))return b(r)}(r)||function(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(!r)return;if("string"===typeof r)return b(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(r,e)}(r)||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 h={baseInputProps:void 0,fillRow:!1,formControlProps:{},helpMessageBoxProps:{},id:"",inputProps:{},inputLabelProps:{},messageBoxProps:{},onHelp:void 0,onHelpAppend:void 0,required:!1,type:void 0,value:""},O=function(r){var e,n=r.baseInputProps,b=r.fillRow,O=void 0===b?h.fillRow:b,j=r.formControlProps,x=void 0===j?h.formControlProps:j,w=r.helpMessageBoxProps,P=void 0===w?h.helpMessageBoxProps:w,Z=r.id,S=void 0===Z?h.id:Z,A=r.inputProps,C=(void 0===A?h.inputProps:A).endAdornment,k=r.inputLabelProps,I=void 0===k?h.inputLabelProps:k,E=r.label,M=r.messageBoxProps,D=void 0===M?h.messageBoxProps:M,R=r.name,F=r.onBlur,B=r.onChange,q=r.onFocus,N=r.onHelp,_=r.onHelpAppend,L=r.required,T=void 0===L?h.required:L,H=r.type,U=r.value,W=void 0===U?h.value:U,V=v(r.inputProps,["endAdornment"]),$=x.sx,z=v(x,["sx"]),G=P.text,J=void 0===G?"":G,K=(0,a.useState)(!1),Q=K[0],X=K[1],Y=(0,a.useMemo)((function(){return O?"100%":void 0}),[O]),rr=(0,a.useMemo)((function(){return Q&&(0,t.jsx)(f.Z,m({onClose:function(){X(!1)}},P))}),[P,Q]),er=(0,a.useMemo)((function(){return void 0!==N||J.length>0}),[J,N]),nr=(0,a.useCallback)((function(){var r;return N?r=N:J.length>0&&(r=function(){for(var r=arguments.length,e=new Array(r),n=0;n .".concat(c.Z.root),{color:s.s7,padding:".2em"}),y(e,"& > :not(:first-child, .".concat(c.Z.root,")"),{marginLeft:".3em"}),e),children:[C,er&&(0,t.jsx)(u.Z,{onClick:tr,tabIndex:-1,children:(0,t.jsx)(o.Z,{})})]}),fullWidth:x.fullWidth,id:S,inputProps:n,label:E,name:R,onBlur:F,onChange:B,onFocus:q,type:H,value:W},V)),rr,(0,t.jsx)(f.Z,m({},D))]}))};O.defaultProps=h,e.Z=O},4188:function(r,e){e.Z={checkbox:"checkbox",number:"number",password:"password",text:"text"}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/213-a0488f84cc98f172.js b/striker-ui/out/_next/static/chunks/213-a0488f84cc98f172.js new file mode 100644 index 00000000..e553540d --- /dev/null +++ b/striker-ui/out/_next/static/chunks/213-a0488f84cc98f172.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[213],{6135:function(e,t,n){var o=n(3366),r=n(7462),i=n(7294),a=n(9766),l=n(7192),s=n(3970),d=n(1496),u=n(3616),p=n(4707),c=n(5893);const m=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],b=(0,d.ZP)(s.Ej,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,s.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return(0,r.Z)({position:"relative",backgroundColor:i,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:i}},[`&.${p.Z.focused}`]:{backgroundColor:i},[`&.${p.Z.disabled}`]:{backgroundColor:n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${p.Z.focused}:after`]:{transform:"scaleX(1)"},[`&.${p.Z.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${p.Z.disabled}):before`]:{borderBottom:`1px solid ${e.palette.text.primary}`},[`&.${p.Z.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,r.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),f=(0,d.ZP)(s.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:s._o})((({theme:e,ownerState:t})=>(0,r.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),v=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiFilledInput"}),{components:i={},componentsProps:d,fullWidth:v=!1,inputComponent:h="input",multiline:g=!1,type:Z="text"}=n,y=(0,o.Z)(n,m),S=(0,r.Z)({},n,{fullWidth:v,inputComponent:h,multiline:g,type:Z}),P=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},i=(0,l.Z)(o,p._,t);return(0,r.Z)({},t,i)})(n),w={root:{ownerState:S},input:{ownerState:S}},x=d?(0,a.Z)(d,w):w;return(0,c.jsx)(s.ZP,(0,r.Z)({components:(0,r.Z)({Root:b,Input:f},i),componentsProps:x,fullWidth:v,inputComponent:h,multiline:g,ref:t,type:Z},y,{classes:P}))}));v.muiName="Input",t.Z=v},4707:function(e,t,n){n.d(t,{_:function(){return r}});var o=n(8979);function r(e){return(0,o.Z)("MuiFilledInput",e)}const i=(0,n(6087).Z)("MuiFilledInput",["root","colorSecondary","underline","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","hiddenLabel","input","inputSizeSmall","inputHiddenLabel","inputMultiline","inputAdornedStart","inputAdornedEnd"]);t.Z=i},9332:function(e,t,n){var o=n(3366),r=n(7462),i=n(7294),a=n(7192),l=n(9766),s=n(3970),d=n(1496),u=n(3616),p=n(7021),c=n(5893);const m=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],b=(0,d.ZP)(s.Ej,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,s.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return(0,r.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${p.Z.focused}:after`]:{transform:"scaleX(1)"},[`&.${p.Z.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${p.Z.disabled}):before`]:{borderBottom:`2px solid ${e.palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${p.Z.disabled}:before`]:{borderBottomStyle:"dotted"}})})),f=(0,d.ZP)(s.rA,{name:"MuiInput",slot:"Input",overridesResolver:s._o})({}),v=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiInput"}),{disableUnderline:i,components:d={},componentsProps:v,fullWidth:h=!1,inputComponent:g="input",multiline:Z=!1,type:y="text"}=n,S=(0,o.Z)(n,m),P=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},i=(0,a.Z)(o,p.l,t);return(0,r.Z)({},t,i)})(n),w={root:{ownerState:{disableUnderline:i}}},x=v?(0,l.Z)(v,w):w;return(0,c.jsx)(s.ZP,(0,r.Z)({components:(0,r.Z)({Root:b,Input:f},d),componentsProps:x,fullWidth:h,inputComponent:g,multiline:Z,ref:t,type:y},S,{classes:P}))}));v.muiName="Input",t.Z=v},3213:function(e,t,n){n.d(t,{Z:function(){return J}});var o=n(7462),r=n(3366),i=n(7294),a=n(6010),l=n(9766),s=n(1387),d=(n(9864),n(7192)),u=n(8038),p=n(8216),c=n(8333),m=n(8979);function b(e){return(0,m.Z)("MuiNativeSelect",e)}var f=(0,n(6087).Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),v=n(1496),h=n(5893);const g=["className","disabled","IconComponent","inputRef","variant"],Z=({ownerState:e,theme:t})=>(0,o.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${f.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),y=(0,v.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:v.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${f.multiple}`]:t.multiple}]}})(Z),S=({ownerState:e,theme:t})=>(0,o.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${f.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),P=(0,v.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,p.Z)(n.variant)}`],n.open&&t.iconOpen]}})(S);var w,x=i.forwardRef((function(e,t){const{className:n,disabled:l,IconComponent:s,inputRef:u,variant:c="standard"}=e,m=(0,r.Z)(e,g),f=(0,o.Z)({},e,{disabled:l,variant:c}),v=(e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i}=e,a={select:["select",n,o&&"disabled",r&&"multiple"],icon:["icon",`icon${(0,p.Z)(n)}`,i&&"iconOpen",o&&"disabled"]};return(0,d.Z)(a,b,t)})(f);return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(y,(0,o.Z)({ownerState:f,className:(0,a.Z)(v.select,n),disabled:l,ref:u||t},m)),e.multiple?null:(0,h.jsx)(P,{as:s,ownerState:f,className:v.icon})]})})),R=n(5108),C=n(1705),I=n(9299),O=n(5603);const E=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],M=(0,v.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${O.Z.select}`]:t.select},{[`&.${O.Z.select}`]:t[n.variant]},{[`&.${O.Z.multiple}`]:t.multiple}]}})(Z,{[`&.${O.Z.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$=(0,v.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,p.Z)(n.variant)}`],n.open&&t.iconOpen]}})(S),F=(0,v.ZP)("input",{shouldForwardProp:e=>(0,v.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function k(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function N(e){return null==e||"string"===typeof e&&!e.trim()}var B,j,A=i.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":l,autoFocus:m,autoWidth:b,children:f,className:v,defaultOpen:g,defaultValue:Z,disabled:y,displayEmpty:S,IconComponent:P,inputRef:x,labelId:B,MenuProps:j={},multiple:A,name:W,onBlur:L,onChange:D,onClose:T,onFocus:U,onOpen:z,open:V,readOnly:_,renderValue:X,SelectDisplayProps:K={},tabIndex:H,value:G,variant:q="standard"}=e,J=(0,r.Z)(e,E),[Q,Y]=(0,I.Z)({controlled:G,default:Z,name:"Select"}),[ee,te]=(0,I.Z)({controlled:V,default:g,name:"Select"}),ne=i.useRef(null),oe=i.useRef(null),[re,ie]=i.useState(null),{current:ae}=i.useRef(null!=V),[le,se]=i.useState(),de=(0,C.Z)(t,x),ue=i.useCallback((e=>{oe.current=e,e&&ie(e)}),[]);i.useImperativeHandle(de,(()=>({focus:()=>{oe.current.focus()},node:ne.current,value:Q})),[Q]),i.useEffect((()=>{g&&ee&&re&&!ae&&(se(b?null:re.clientWidth),oe.current.focus())}),[re,b]),i.useEffect((()=>{m&&oe.current.focus()}),[m]),i.useEffect((()=>{if(!B)return;const e=(0,u.Z)(oe.current).getElementById(B);if(e){const t=()=>{getSelection().isCollapsed&&oe.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[B]);const pe=(e,t)=>{e?z&&z(t):T&&T(t),ae||(se(b?null:re.clientWidth),te(e))},ce=i.Children.toArray(f),me=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(A){n=Array.isArray(Q)?Q.slice():[];const t=Q.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),Q!==n&&(Y(n),D)){const o=t.nativeEvent||t,r=new o.constructor(o.type,o);Object.defineProperty(r,"target",{writable:!0,value:{value:n,name:W}}),D(r,e)}A||pe(!1,t)}},be=null!==re&ⅇlet fe,ve;delete J["aria-invalid"];const he=[];let ge=!1,Ze=!1;((0,R.vd)({value:Q})||S)&&(X?fe=X(Q):ge=!0);const ye=ce.map((e=>{if(!i.isValidElement(e))return null;let t;if(A){if(!Array.isArray(Q))throw new Error((0,s.Z)(2));t=Q.some((t=>k(t,e.props.value))),t&&ge&&he.push(e.props.children)}else t=k(Q,e.props.value),t&&ge&&(ve=e.props.children);return t&&(Ze=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:me(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ge&&(fe=A?0===he.length?null:he.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:o,multiple:r,open:i}=e,a={select:["select",n,o&&"disabled",r&&"multiple"],icon:["icon",`icon${(0,p.Z)(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return(0,d.Z)(a,O.o,t)})(xe);return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(M,(0,o.Z)({ref:ue,tabIndex:Se,role:"button","aria-disabled":y?"true":void 0,"aria-expanded":be?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[B,we].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!_){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),pe(!0,e))}},onMouseDown:y||_?null:e=>{0===e.button&&(e.preventDefault(),oe.current.focus(),pe(!0,e))},onBlur:e=>{!be&&L&&(Object.defineProperty(e,"target",{writable:!0,value:{value:Q,name:W}}),L(e))},onFocus:U},K,{ownerState:xe,className:(0,a.Z)(Re.select,v,K.className),id:we,children:N(fe)?w||(w=(0,h.jsx)("span",{className:"notranslate",children:"\u200b"})):fe})),(0,h.jsx)(F,(0,o.Z)({value:Array.isArray(Q)?Q.join(","):Q,name:W,ref:ne,"aria-hidden":!0,onChange:e=>{const t=ce.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=ce[t];Y(n.props.value),D&&D(e,n)},tabIndex:-1,disabled:y,className:Re.nativeInput,autoFocus:m,ownerState:xe},J)),(0,h.jsx)($,{as:P,className:Re.icon,ownerState:xe}),(0,h.jsx)(c.Z,(0,o.Z)({id:`menu-${W||""}`,anchorEl:re,open:be,onClose:e=>{pe(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},j,{MenuListProps:(0,o.Z)({"aria-labelledby":B,role:"listbox",disableListWrap:!0},j.MenuListProps),PaperProps:(0,o.Z)({},j.PaperProps,{style:(0,o.Z)({minWidth:Pe},null!=j.PaperProps?j.PaperProps.style:null)}),children:ye}))]})})),W=n(5704),L=n(4423),D=n(224),T=n(9332),U=n(6135),z=n(7709),V=n(3616);const _=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],X={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,v.FO)(e)&&"variant"!==e,slot:"Root"},K=(0,v.ZP)(T.Z,X)(""),H=(0,v.ZP)(z.Z,X)(""),G=(0,v.ZP)(U.Z,X)(""),q=i.forwardRef((function(e,t){const n=(0,V.Z)({name:"MuiSelect",props:e}),{autoWidth:s=!1,children:d,classes:u={},className:p,defaultOpen:c=!1,displayEmpty:m=!1,IconComponent:b=D.Z,id:f,input:v,inputProps:g,label:Z,labelId:y,MenuProps:S,multiple:P=!1,native:w=!1,onClose:R,onOpen:I,open:O,renderValue:E,SelectDisplayProps:M,variant:$="outlined"}=n,F=(0,r.Z)(n,_),k=w?x:A,N=(0,L.Z)(),T=(0,W.Z)({props:n,muiFormControl:N,states:["variant"]}).variant||$,U=v||{standard:B||(B=(0,h.jsx)(K,{})),outlined:(0,h.jsx)(H,{label:Z}),filled:j||(j=(0,h.jsx)(G,{}))}[T],z=(e=>{const{classes:t}=e;return t})((0,o.Z)({},n,{variant:T,classes:u})),X=(0,C.Z)(t,U.ref);return i.cloneElement(U,(0,o.Z)({inputComponent:k,inputProps:(0,o.Z)({children:d,IconComponent:b,variant:T,type:void 0,multiple:P},w?{id:f}:{autoWidth:s,defaultOpen:c,displayEmpty:m,labelId:y,MenuProps:S,onClose:R,onOpen:I,open:O,renderValue:E,SelectDisplayProps:(0,o.Z)({id:f},M)},g,{classes:g?(0,l.Z)(z,g.classes):z},v?v.props.inputProps:{})},P&&w&&"outlined"===T?{notched:!0}:{},{ref:X,className:(0,a.Z)(U.props.className,p),variant:T},F))}));q.muiName="Select";var J=q},5603:function(e,t,n){n.d(t,{o:function(){return r}});var o=n(8979);function r(e){return(0,o.Z)("MuiSelect",e)}const i=(0,n(6087).Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);t.Z=i},224:function(e,t,n){n(7294);var o=n(7892),r=n(5893);t.Z=(0,o.Z)((0,r.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/284-03dc30df5d459e72.js b/striker-ui/out/_next/static/chunks/284-03dc30df5d459e72.js new file mode 100644 index 00000000..db20d4ef --- /dev/null +++ b/striker-ui/out/_next/static/chunks/284-03dc30df5d459e72.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[284],{1363:function(e,r,n){var t=n(5893),o=n(8187);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.sx,n=e.text,i=u(e,["sx","text"]);return(0,t.jsx)(t.Fragment,{children:n&&(0,t.jsx)(o.Z,l({},i,{sx:l({marginTop:".4em"},r),text:n}))})}},9:function(e,r,n){n.d(r,{Z:function(){return g}});var t=n(5893),o=n(2186),i=n(5697),l=n(4799),u=n(4656),c=n(7709),a=n(7294),s=n(7169),f=n(4188);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(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,r){if(!e)return;if("string"===typeof e)return p(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,r)}(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 v=function(e){var r=e.endAdornment,n=e.label,p=e.onPasswordVisibilityAppend,v=e.sx,g=e.inputProps,O=(void 0===g?{}:g).type,h=e.type,j=void 0===h?O:h,x=y(e.inputProps,["type"]),P=y(e,["endAdornment","label","onPasswordVisibilityAppend","sx","inputProps","type"]),w=(0,a.useState)(j),Z=w[0],S=w[1],A=(0,a.useMemo)((function(){var e=j===f.Z.password,r=Z===f.Z.password;return(0,t.jsx)(t.Fragment,{children:e&&(0,t.jsx)(l.Z,{onClick:function(){for(var e=arguments.length,n=new Array(e),t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d=function(e){var r,n=e.children,d=e.isNotifyRequired,b=e.sx,y=e.variant,m=void 0===y?"outlined":y,v=p(e,["children","isNotifyRequired","sx","variant"]),g=f((s(r={color:"".concat(a.s7,"9F")},"& .".concat(i.Z.root),{color:a.s7}),s(r,"&.".concat(l.Z.focused),{backgroundColor:a.s7,borderRadius:a.n_,color:a.E5,padding:".1em .6em"}),s(r,"&.".concat(l.Z.shrink," .").concat(i.Z.root),{display:"none"}),r),b);return(0,t.jsx)(u.Z,f({variant:m},v,{sx:g,children:(0,t.jsxs)(c.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[d&&(0,t.jsx)(o.Z,{sx:{marginLeft:"-.2rem",marginRight:".4rem"}}),n]})}))}},6284:function(e,r,n){var t=n(5893),o=n(5685),i=n(3640),l=n(1057),u=n(6239),c=n(4799),a=n(7294),s=n(7169),f=n(1363),p=n(9),d=n(192);function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return b(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,r)}(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 O={baseInputProps:void 0,fillRow:!1,formControlProps:{},helpMessageBoxProps:{},id:"",inputProps:{},inputLabelProps:{},messageBoxProps:{},onHelp:void 0,onHelpAppend:void 0,required:!1,type:void 0,value:""},h=function(e){var r,n=e.baseInputProps,b=e.fillRow,h=void 0===b?O.fillRow:b,j=e.formControlProps,x=void 0===j?O.formControlProps:j,P=e.helpMessageBoxProps,w=void 0===P?O.helpMessageBoxProps:P,Z=e.id,S=void 0===Z?O.id:Z,A=e.inputProps,k=(void 0===A?O.inputProps:A).endAdornment,C=e.inputLabelProps,E=void 0===C?O.inputLabelProps:C,I=e.label,M=e.messageBoxProps,R=void 0===M?O.messageBoxProps:M,B=e.name,D=e.onBlur,F=e.onChange,q=e.onFocus,L=e.onHelp,N=e.onHelpAppend,_=e.required,H=void 0===_?O.required:_,T=e.type,U=e.value,V=void 0===U?O.value:U,W=v(e.inputProps,["endAdornment"]),$=x.sx,z=v(x,["sx"]),G=w.text,J=void 0===G?"":G,K=(0,a.useState)(!1),Q=K[0],X=K[1],Y=(0,a.useMemo)((function(){return h?"100%":void 0}),[h]),ee=(0,a.useMemo)((function(){return Q&&(0,t.jsx)(f.Z,m({onClose:function(){X(!1)}},w))}),[w,Q]),re=(0,a.useMemo)((function(){return void 0!==L||J.length>0}),[J,L]),ne=(0,a.useCallback)((function(){var e;return L?e=L:J.length>0&&(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n .".concat(u.Z.root),{color:s.s7,padding:".2em"}),y(r,"& > :not(:first-child, .".concat(u.Z.root,")"),{marginLeft:".3em"}),r),children:[k,re&&(0,t.jsx)(c.Z,{onClick:te,tabIndex:-1,children:(0,t.jsx)(o.Z,{})})]}),fullWidth:x.fullWidth,id:S,inputProps:n,label:I,name:B,onBlur:D,onChange:F,onFocus:q,type:T,value:V},W)),ee,(0,t.jsx)(f.Z,m({},R))]}))};h.defaultProps=O,r.Z=h},4188:function(e,r){r.Z={checkbox:"checkbox",number:"number",password:"password",text:"text"}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/438-0147a63d98e89439.js b/striker-ui/out/_next/static/chunks/438-0147a63d98e89439.js deleted file mode 100644 index 1c54c525..00000000 --- a/striker-ui/out/_next/static/chunks/438-0147a63d98e89439.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[438],{6576:function(e,t,n){var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error")},238:function(e,t,n){var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info")},5685:function(e,t,n){var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"}),"QuestionMark")},6400:function(e,t,n){var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},6195:function(e,t,n){var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning")},3640:function(e,t,n){var r=n(3366),o=n(7462),i=n(7294),a=n(6010),l=n(7192),s=n(3616),d=n(1496),u=n(5108),c=n(8216),p=n(1579),m=n(7167),f=n(7120),h=n(5893);const b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Z=(0,d.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,o.Z)({},t.root,t[`margin${(0,c.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),v=i.forwardRef((function(e,t){const n=(0,s.Z)({props:e,name:"MuiFormControl"}),{children:d,className:v,color:g="primary",component:x="div",disabled:w=!1,error:S=!1,focused:y,fullWidth:z=!1,hiddenLabel:C=!1,margin:k="none",required:R=!1,size:A="medium",variant:M="outlined"}=n,L=(0,r.Z)(n,b),E=(0,o.Z)({},n,{color:g,component:x,disabled:w,error:S,fullWidth:z,hiddenLabel:C,margin:k,required:R,size:A,variant:M}),W=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&`margin${(0,c.Z)(n)}`,r&&"fullWidth"]};return(0,l.Z)(o,f.e,t)})(E),[F,I]=i.useState((()=>{let e=!1;return d&&i.Children.forEach(d,(t=>{if(!(0,p.Z)(t,["Input","Select"]))return;const n=(0,p.Z)(t,["Select"])?t.props.input:t;n&&(0,u.B7)(n.props)&&(e=!0)})),e})),[N,j]=i.useState((()=>{let e=!1;return d&&i.Children.forEach(d,(t=>{(0,p.Z)(t,["Input","Select"])&&(0,u.vd)(t.props,!0)&&(e=!0)})),e})),[O,P]=i.useState(!1);w&&O&&P(!1);const $=void 0===y||w?O:y;const q=i.useCallback((()=>{j(!0)}),[]),B={adornedStart:F,setAdornedStart:I,color:g,disabled:w,error:S,filled:N,focused:$,fullWidth:z,hiddenLabel:C,size:A,onBlur:()=>{P(!1)},onEmpty:i.useCallback((()=>{j(!1)}),[]),onFilled:q,onFocus:()=>{P(!0)},registerEffect:undefined,required:R,variant:M};return(0,h.jsx)(m.Z.Provider,{value:B,children:(0,h.jsx)(Z,(0,o.Z)({as:x,ownerState:E,className:(0,a.Z)(W.root,v),ref:t},L,{children:d}))})}));t.Z=v},7120:function(e,t,n){n.d(t,{e:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiFormControl",e)}const i=(0,n(6087).Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);t.Z=i},5704:function(e,t,n){function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&"undefined"===typeof e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{Z:function(){return r}})},476:function(e,t,n){var r=n(3366),o=n(7462),i=n(7294),a=n(6010),l=n(7192),s=n(5704),d=n(4423),u=n(8216),c=n(3616),p=n(1496),m=n(4748),f=n(5893);const h=["children","className","color","component","disabled","error","filled","focused","required"],b=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,o.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${m.Z.focused}`]:{color:e.palette[t.color].main},[`&.${m.Z.disabled}`]:{color:e.palette.text.disabled},[`&.${m.Z.error}`]:{color:e.palette.error.main}}))),Z=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${m.Z.error}`]:{color:e.palette.error.main}}))),v=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:p,component:v="label"}=n,g=(0,r.Z)(n,h),x=(0,d.Z)(),w=(0,s.Z)({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),S=(0,o.Z)({},n,{color:w.color||"primary",component:v,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),y=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,d={root:["root",`color${(0,u.Z)(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,l.Z)(d,m.M,t)})(S);return(0,f.jsxs)(b,(0,o.Z)({as:v,ownerState:S,className:(0,a.Z)(y.root,p),ref:t},g,{children:[i,w.required&&(0,f.jsxs)(Z,{ownerState:S,"aria-hidden":!0,className:y.asterisk,children:["\u2009","*"]})]}))}));t.Z=v},4748:function(e,t,n){n.d(t,{M:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiFormLabel",e)}const i=(0,n(6087).Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.Z=i},1057:function(e,t,n){var r,o=n(3366),i=n(7462),a=n(7294),l=n(6010),s=n(7192),d=n(8216),u=n(5861),c=n(7167),p=n(4423),m=n(1496),f=n(9558),h=n(3616),b=n(5893);const Z=["children","className","component","disablePointerEvents","disableTypography","position","variant"],v=(0,m.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,d.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:e.palette.action.active},"filled"===t.variant&&{[`&.${f.Z.positionStart}&:not(.${f.Z.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),g=a.forwardRef((function(e,t){const n=(0,h.Z)({props:e,name:"MuiInputAdornment"}),{children:m,className:g,component:x="div",disablePointerEvents:w=!1,disableTypography:S=!1,position:y,variant:z}=n,C=(0,o.Z)(n,Z),k=(0,p.Z)()||{};let R=z;z&&k.variant,k&&!R&&(R=k.variant);const A=(0,i.Z)({},n,{hiddenLabel:k.hiddenLabel,size:k.size,disablePointerEvents:w,position:y,variant:R}),M=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${(0,d.Z)(o)}`,a,r&&"hiddenLabel",i&&`size${(0,d.Z)(i)}`]};return(0,s.Z)(l,f.w,t)})(A);return(0,b.jsx)(c.Z.Provider,{value:null,children:(0,b.jsx)(v,(0,i.Z)({as:x,ownerState:A,className:(0,l.Z)(M.root,g),ref:t},C,{children:"string"!==typeof m||S?(0,b.jsxs)(a.Fragment,{children:["start"===y?r||(r=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,m]}):(0,b.jsx)(u.Z,{color:"text.secondary",children:m})}))})}));t.Z=g},9558:function(e,t,n){n.d(t,{w:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInputAdornment",e)}const i=(0,n(6087).Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);t.Z=i},3970:function(e,t,n){n.d(t,{rA:function(){return I},Ej:function(){return F},ZP:function(){return j},_o:function(){return W},Gx:function(){return E}});var r=n(3366),o=n(7462),i=n(1387),a=n(7294),l=n(6010),s=n(67),d=n(8290),u=n(7596),c=n(6600),p=n(5893);const m=["onChange","maxRows","minRows","style","value"];function f(e,t){return parseInt(e[t],10)||0}const h={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var b=a.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:l=1,style:b,value:Z}=e,v=(0,r.Z)(e,m),{current:g}=a.useRef(null!=Z),x=a.useRef(null),w=(0,s.Z)(t,x),S=a.useRef(null),y=a.useRef(0),[z,C]=a.useState({}),k=a.useCallback((()=>{const t=x.current,n=(0,d.Z)(t).getComputedStyle(t);if("0px"===n.width)return;const r=S.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n["box-sizing"],a=f(n,"padding-bottom")+f(n,"padding-top"),s=f(n,"border-bottom-width")+f(n,"border-top-width"),u=r.scrollHeight;r.value="x";const c=r.scrollHeight;let p=u;l&&(p=Math.max(Number(l)*c,p)),i&&(p=Math.min(Number(i)*c,p)),p=Math.max(p,c);const m=p+("border-box"===o?a+s:0),h=Math.abs(p-u)<=1;C((e=>y.current<20&&(m>0&&Math.abs((e.outerHeightStyle||0)-m)>1||e.overflow!==h)?(y.current+=1,{overflow:h,outerHeightStyle:m}):e))}),[i,l,e.placeholder]);a.useEffect((()=>{const e=(0,u.Z)((()=>{y.current=0,k()})),t=(0,d.Z)(x.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(x.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[k]),(0,c.Z)((()=>{k()})),a.useEffect((()=>{y.current=0}),[Z]);return(0,p.jsxs)(a.Fragment,{children:[(0,p.jsx)("textarea",(0,o.Z)({value:Z,onChange:e=>{y.current=0,g||k(),n&&n(e)},ref:w,rows:l,style:(0,o.Z)({height:z.outerHeightStyle,overflow:z.overflow?"hidden":null},b)},v)),(0,p.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,o.Z)({},h,b,{padding:0})})]})})),Z=n(7192),v=n(8442),g=n(5704),x=n(7167),w=n(4423),S=n(1496),y=n(3616),z=n(8216),C=n(1705),k=n(8974),R=n(2287),A=n(5108),M=n(5827);const L=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],E=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,z.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},W=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},F=(0,S.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:E})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${M.Z.disabled}`]:{color:e.palette.text.disabled,cursor:"default"}},t.multiline&&(0,o.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),I=(0,S.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:W})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r={color:"currentColor",opacity:n?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a={opacity:n?.42:.5};return(0,o.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${M.Z.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${M.Z.disabled}`]:{opacity:1,WebkitTextFillColor:e.palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),N=(0,p.jsx)(R.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}});var j=a.forwardRef((function(e,t){const n=(0,y.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:d,autoFocus:u,className:c,components:m={},componentsProps:f={},defaultValue:h,disabled:S,disableInjectingGlobalStyles:R,endAdornment:E,fullWidth:W=!1,id:j,inputComponent:O="input",inputProps:P={},inputRef:$,maxRows:q,minRows:B,multiline:T=!1,name:H,onBlur:D,onChange:V,onClick:K,onFocus:_,onKeyDown:G,onKeyUp:U,placeholder:Y,readOnly:Q,renderSuffix:J,rows:X,startAdornment:ee,type:te="text",value:ne}=n,re=(0,r.Z)(n,L),oe=null!=P.value?P.value:ne,{current:ie}=a.useRef(null!=oe),ae=a.useRef(),le=a.useCallback((e=>{0}),[]),se=(0,C.Z)(P.ref,le),de=(0,C.Z)($,se),ue=(0,C.Z)(ae,de),[ce,pe]=a.useState(!1),me=(0,w.Z)();const fe=(0,g.Z)({props:n,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=me?me.focused:ce,a.useEffect((()=>{!me&&S&&ce&&(pe(!1),D&&D())}),[me,S,ce,D]);const he=me&&me.onFilled,be=me&&me.onEmpty,Ze=a.useCallback((e=>{(0,A.vd)(e)?he&&he():be&&be()}),[he,be]);(0,k.Z)((()=>{ie&&Ze({value:oe})}),[oe,Ze,ie]);a.useEffect((()=>{Ze(ae.current)}),[]);let ve=O,ge=P;T&&"input"===ve&&(ge=X?(0,o.Z)({type:void 0,minRows:X,maxRows:X},ge):(0,o.Z)({type:void 0,maxRows:q,minRows:B},ge),ve=b);a.useEffect((()=>{me&&me.setAdornedStart(Boolean(ee))}),[me,ee]);const xe=(0,o.Z)({},n,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:E,error:fe.error,focused:fe.focused,formControl:me,fullWidth:W,hiddenLabel:fe.hiddenLabel,multiline:T,size:fe.size,startAdornment:ee,type:te}),we=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:d,multiline:u,size:c,startAdornment:p,type:m}=e,f={root:["root",`color${(0,z.Z)(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===c&&"sizeSmall",u&&"multiline",p&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===c&&"inputSizeSmall",d&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd"]};return(0,Z.Z)(f,M.u,t)})(xe),Se=m.Root||F,ye=f.root||{},ze=m.Input||I;return ge=(0,o.Z)({},ge,f.input),(0,p.jsxs)(a.Fragment,{children:[!R&&N,(0,p.jsxs)(Se,(0,o.Z)({},ye,!(0,v.Z)(Se)&&{ownerState:(0,o.Z)({},xe,ye.ownerState)},{ref:t,onClick:e=>{ae.current&&e.currentTarget===e.target&&ae.current.focus(),K&&K(e)}},re,{className:(0,l.Z)(we.root,ye.className,c),children:[ee,(0,p.jsx)(x.Z.Provider,{value:null,children:(0,p.jsx)(ze,(0,o.Z)({ownerState:xe,"aria-invalid":fe.error,"aria-describedby":s,autoComplete:d,autoFocus:u,defaultValue:h,disabled:fe.disabled,id:j,onAnimationStart:e=>{Ze("mui-auto-fill-cancel"===e.animationName?ae.current:{value:"x"})},name:H,placeholder:Y,readOnly:Q,required:fe.required,rows:X,value:oe,onKeyDown:G,onKeyUp:U,type:te},ge,!(0,v.Z)(ze)&&{as:ve,ownerState:(0,o.Z)({},xe,ge.ownerState)},{ref:ue,className:(0,l.Z)(we.input,ge.className),onBlur:e=>{D&&D(e),P.onBlur&&P.onBlur(e),me&&me.onBlur?me.onBlur(e):pe(!1)},onChange:(e,...t)=>{if(!ie){const t=e.target||ae.current;if(null==t)throw new Error((0,i.Z)(1));Ze({value:t.value})}P.onChange&&P.onChange(e,...t),V&&V(e,...t)},onFocus:e=>{fe.disabled?e.stopPropagation():(_&&_(e),P.onFocus&&P.onFocus(e),me&&me.onFocus?me.onFocus(e):pe(!0))}}))}),E,J?J((0,o.Z)({},fe,{startAdornment:ee})):null]}))]})}))},5827:function(e,t,n){n.d(t,{u:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInputBase",e)}const i=(0,n(6087).Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.Z=i},5108:function(e,t,n){function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{vd:function(){return o},B7:function(){return i}})},76:function(e,t,n){var r=n(3366),o=n(7462),i=n(7294),a=n(7192),l=n(5704),s=n(4423),d=n(476),u=n(4748),c=n(3616),p=n(1496),m=n(6727),f=n(5893);const h=["disableAnimation","margin","shrink","variant"],b=(0,p.ZP)(d.Z,{shouldForwardProp:e=>(0,p.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${u.Z.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,o.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),Z=i.forwardRef((function(e,t){const n=(0,c.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:d}=n,u=(0,r.Z)(n,h),p=(0,s.Z)();let Z=d;"undefined"===typeof Z&&p&&(Z=p.filled||p.focused||p.adornedStart);const v=(0,l.Z)({props:n,muiFormControl:p,states:["size","variant","required"]}),g=(0,o.Z)({},n,{disableAnimation:i,formControl:p,shrink:Z,size:v.size,variant:v.variant,required:v.required}),x=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:l,variant:s,required:d}=e,u={root:["root",n&&"formControl",!l&&"animated",i&&"shrink","small"===r&&"sizeSmall",s],asterisk:[d&&"asterisk"]},c=(0,a.Z)(u,m.Y,t);return(0,o.Z)({},t,c)})(g);return(0,f.jsx)(b,(0,o.Z)({"data-shrink":Z,ownerState:g,ref:t},u,{classes:x}))}));t.Z=Z},6727:function(e,t,n){n.d(t,{Y:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInputLabel",e)}const i=(0,n(6087).Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);t.Z=i},7709:function(e,t,n){n.d(t,{Z:function(){return y}});var r,o=n(3366),i=n(7462),a=n(7294),l=n(7192),s=n(1496),d=n(5893);const u=["children","classes","className","label","notched"],c=(0,s.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p=(0,s.ZP)("legend")((({ownerState:e,theme:t})=>(0,i.Z)({float:"unset"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,i.Z)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));var m=n(4423),f=n(5704),h=n(4656),b=n(3970),Z=n(3616);const v=["components","fullWidth","inputComponent","label","multiline","notched","type"],g=(0,s.ZP)(b.Ej,{shouldForwardProp:e=>(0,s.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:b.Gx})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.Z)({position:"relative",borderRadius:e.shape.borderRadius,[`&:hover .${h.Z.notchedOutline}`]:{borderColor:e.palette.text.primary},"@media (hover: none)":{[`&:hover .${h.Z.notchedOutline}`]:{borderColor:n}},[`&.${h.Z.focused} .${h.Z.notchedOutline}`]:{borderColor:e.palette[t.color].main,borderWidth:2},[`&.${h.Z.error} .${h.Z.notchedOutline}`]:{borderColor:e.palette.error.main},[`&.${h.Z.disabled} .${h.Z.notchedOutline}`]:{borderColor:e.palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,i.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),x=(0,s.ZP)((function(e){const{className:t,label:n,notched:a}=e,l=(0,o.Z)(e,u),s=null!=n&&""!==n,m=(0,i.Z)({},e,{notched:a,withLabel:s});return(0,d.jsx)(c,(0,i.Z)({"aria-hidden":!0,className:t,ownerState:m},l,{children:(0,d.jsx)(p,{ownerState:m,children:s?(0,d.jsx)("span",{children:n}):r||(r=(0,d.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>({borderColor:"light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}))),w=(0,s.ZP)(b.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:b._o})((({theme:e,ownerState:t})=>(0,i.Z)({padding:"16.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),S=a.forwardRef((function(e,t){var n;const r=(0,Z.Z)({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:p,multiline:S=!1,notched:y,type:z="text"}=r,C=(0,o.Z)(r,v),k=(e=>{const{classes:t}=e,n=(0,l.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},h.e,t);return(0,i.Z)({},t,n)})(r),R=(0,m.Z)(),A=(0,f.Z)({props:r,muiFormControl:R,states:["required"]});return(0,d.jsx)(b.ZP,(0,i.Z)({components:(0,i.Z)({Root:g,Input:w},s),renderSuffix:e=>(0,d.jsx)(x,{className:k.notchedOutline,label:null!=p&&""!==p&&A.required?n||(n=(0,d.jsxs)(a.Fragment,{children:[p,"\xa0","*"]})):p,notched:"undefined"!==typeof y?y:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:S,ref:t,type:z},C,{classes:(0,i.Z)({},k,{notchedOutline:null})}))}));S.muiName="Input";var y=S},4656:function(e,t,n){n.d(t,{e:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiOutlinedInput",e)}const i=(0,n(6087).Z)("MuiOutlinedInput",["root","colorSecondary","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","notchedOutline","input","inputSizeSmall","inputMultiline","inputAdornedStart","inputAdornedEnd"]);t.Z=i}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/412-d77d0985f9905450.js b/striker-ui/out/_next/static/chunks/498-e1933a5461cd8607.js similarity index 87% rename from striker-ui/out/_next/static/chunks/412-d77d0985f9905450.js rename to striker-ui/out/_next/static/chunks/498-e1933a5461cd8607.js index 9d180ec2..40826971 100644 --- a/striker-ui/out/_next/static/chunks/412-d77d0985f9905450.js +++ b/striker-ui/out/_next/static/chunks/498-e1933a5461cd8607.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{917:function(e,t,n){"use strict";var r;n.d(t,{xB:function(){return u},iv:function(){return d},F4:function(){return p}});var o=n(7294),i=(n(4474),n(4880)),a=(n(8679),n(444)),s=n(3772),c=n(1526),l=(r||(r=n.t(o,2))).useInsertionEffect?(r||(r=n.t(o,2))).useInsertionEffect:o.useLayoutEffect,u=(0,i.w)((function(e,t){var n=e.styles,r=(0,s.O)([n],void 0,(0,o.useContext)(i.T)),u=(0,o.useRef)();return l((function(){var e=t.key+"-global",n=new c.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,o],function(){n.flush()}}),[t]),l((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&(0,a.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function d(){for(var e=arguments.length,t=new Array(e),n=0;n{l||d(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,l]),(0,a.Z)((()=>{if(u&&!l)return(0,s.Z)(t,u),()=>{(0,s.Z)(t,null)}}),[t,u,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:p}):n:u?o.createPortal(n,u):u}));t.Z=c},2310:function(e,t,n){"use strict";var r=n(7294),o=n(67),i=n(7094),a=n(5893);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function c(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function l(){return!0}t.Z=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=c,isEnabled:p=l,open:f}=e,h=r.useRef(),m=r.useRef(null),v=r.useRef(null),g=r.useRef(null),b=r.useRef(null),y=r.useRef(!1),Z=r.useRef(null),x=(0,o.Z)(t.ref,Z),w=r.useRef(null);r.useEffect((()=>{f&&Z.current&&(y.current=!n)}),[n,f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current);return Z.current.contains(e.activeElement)||(Z.current.hasAttribute("tabIndex")||Z.current.setAttribute("tabIndex",-1),y.current&&Z.current.focus()),()=>{u||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}}),[f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current),t=t=>{const{current:n}=Z;if(null!==n)if(e.hasFocus()&&!s&&p()&&!h.current){if(!n.contains(e.activeElement)){if(t&&b.current!==t.target||e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!y.current)return;let i=[];if(e.activeElement!==m.current&&e.activeElement!==v.current||(i=d(Z.current)),i.length>0){var r,o;const e=Boolean((null==(r=w.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=w.current)?void 0:o.key)),t=i[0],n=i[i.length-1];e?n.focus():t.focus()}else n.focus()}}else h.current=!1},n=t=>{w.current=t,!s&&p()&&"Tab"===t.key&&e.activeElement===Z.current&&t.shiftKey&&(h.current=!0,v.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,s,u,p,f,d]);const S=e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0,b.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:v,"data-test":"sentinelEnd"})]})}},7192:function(e,t,n){"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},8442:function(e,t){"use strict";t.Z=function(e){return"string"===typeof e}},2428:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add")},1113:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Assignment")},5537:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},6761:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")},6059:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done")},1797:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit")},1680:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},6571:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},1370:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle")},2186:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility")},5697:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff")},7227:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(7192),l=n(6087),u=n(8979);function d(e){return(0,u.Z)("MuiBackdrop",e)}(0,l.Z)("MuiBackdrop",["root","invisible"]);var p=n(5893);const f=["classes","className","invisible","component","components","componentsProps","theme"];var h=i.forwardRef((function(e,t){const{classes:n,className:i,invisible:l=!1,component:u="div",components:h={},componentsProps:m={},theme:v}=e,g=(0,r.Z)(e,f),b=(0,o.Z)({},e,{classes:n,invisible:l}),y=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,c.Z)(r,d,t)})(b),Z=h.Root||u,x=m.root||{};return(0,p.jsx)(Z,(0,o.Z)({"aria-hidden":!0},x,!(0,a.Z)(Z)&&{as:u,ownerState:(0,o.Z)({},b,x.ownerState),theme:v},{ref:t},g,{className:(0,s.Z)(y.root,x.className,i)}))})),m=n(1496),v=n(3616),g=n(6628);const b=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],y=(0,m.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,o.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Z=i.forwardRef((function(e,t){var n;const i=(0,v.Z)({props:e,name:"MuiBackdrop"}),{children:s,components:c={},componentsProps:l={},className:u,invisible:d=!1,open:f,transitionDuration:m,TransitionComponent:Z=g.Z}=i,x=(0,r.Z)(i,b),w=(e=>{const{classes:t}=e;return t})((0,o.Z)({},i,{invisible:d}));return(0,p.jsx)(Z,(0,o.Z)({in:f,timeout:m},x,{children:(0,p.jsx)(h,{className:u,invisible:d,components:(0,o.Z)({Root:y},c),componentsProps:{root:(0,o.Z)({},l.root,(!c.Root||!(0,a.Z)(c.Root))&&{ownerState:(0,o.Z)({},null==(n=l.root)?void 0:n.ownerState)})},classes:w,ref:t,children:s})}))}))},7357:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(561),c=n(6523),l=n(9707),u=n(6682),d=n(5893);const p=["className","component"];var f=n(9981);const h=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:f,styleFunctionSx:h=c.Z}=e,m=(0,s.ZP)("div")(h);return i.forwardRef((function(e,i){const s=(0,u.Z)(t),c=(0,l.Z)(e),{className:h,component:v="div"}=c,g=(0,o.Z)(c,p);return(0,d.jsx)(m,(0,r.Z)({as:v,ref:i,className:(0,a.Z)(h,f?f(n):n),theme:s},g))}))}({defaultTheme:(0,n(1265).Z)(),defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var m=h},2992:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7925),c=n(7192),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(8216),h=n(7933);var m=i.createContext({}),v=n(5893);const g=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],b=e=>(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,f.Z)(n.color)}`],t[`size${(0,f.Z)(n.size)}`],t[`${n.variant}Size${(0,f.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${e.palette[t.color].main}`,backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.palette[t.color].dark,"@media (hover: none)":{backgroundColor:e.palette[t.color].main}}),"&:active":(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[8]}),[`&.${h.Z.focusVisible}`]:(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[6]}),[`&.${h.Z.disabled}`]:(0,o.Z)({color:e.palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${e.palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${e.palette.action.disabled}`},"contained"===t.variant&&{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"outlined"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,l.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${h.Z.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${h.Z.disabled}`]:{boxShadow:"none"}})),Z=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},b(e)))),x=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},b(e))));var w=i.forwardRef((function(e,t){const n=i.useContext(m),l=(0,s.Z)(n,e),u=(0,d.Z)({props:l,name:"MuiButton"}),{children:p,color:b="primary",component:w="button",className:S,disabled:E=!1,disableElevation:k=!1,disableFocusRipple:R=!1,endIcon:C,focusVisibleClassName:P,fullWidth:T=!1,size:M="medium",startIcon:I,type:O,variant:N="text"}=u,z=(0,r.Z)(u,g),j=(0,o.Z)({},u,{color:b,component:w,disabled:E,disableElevation:k,disableFocusRipple:R,fullWidth:T,size:M,type:O,variant:N}),A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,f.Z)(t)}`,`size${(0,f.Z)(i)}`,`${a}Size${(0,f.Z)(i)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,f.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,f.Z)(i)}`]},u=(0,c.Z)(l,h.F,s);return(0,o.Z)({},s,u)})(j),L=I&&(0,v.jsx)(Z,{className:A.startIcon,ownerState:j,children:I}),F=C&&(0,v.jsx)(x,{className:A.endIcon,ownerState:j,children:C});return(0,v.jsxs)(y,(0,o.Z)({ownerState:j,className:(0,a.Z)(S,n.className),component:w,disabled:E,focusRipple:!R,focusVisibleClassName:(0,a.Z)(A.focusVisible,P),ref:t,type:O},z,{classes:A,children:[L,p,F]}))}))},7933:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiButton",e)}const i=(0,n(6087).Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);t.Z=i},7739:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(1705),d=n(2068),p=n(8791);var f=n(5068),h=n(220);function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(o[c])for(r=0;r{if(!l&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,l,d]),(0,w.jsx)("span",{className:h,style:m,children:(0,w.jsx)("span",{className:v})})},E=n(6087);var k=(0,E.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const R=["center","classes","className"];let C,P,T,M,I=e=>e;const O=(0,x.F4)(C||(C=I` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[498],{917:function(e,t,n){"use strict";var r;n.d(t,{xB:function(){return u},iv:function(){return d},F4:function(){return p}});var o=n(7294),i=(n(4474),n(4880)),a=(n(8679),n(444)),s=n(3772),c=n(1526),l=(r||(r=n.t(o,2))).useInsertionEffect?(r||(r=n.t(o,2))).useInsertionEffect:o.useLayoutEffect,u=(0,i.w)((function(e,t){var n=e.styles,r=(0,s.O)([n],void 0,(0,o.useContext)(i.T)),u=(0,o.useRef)();return l((function(){var e=t.key+"-global",n=new c.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,o],function(){n.flush()}}),[t]),l((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&(0,a.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function d(){for(var e=arguments.length,t=new Array(e),n=0;n{l||d(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,l]),(0,a.Z)((()=>{if(u&&!l)return(0,s.Z)(t,u),()=>{(0,s.Z)(t,null)}}),[t,u,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:p}):n:u?o.createPortal(n,u):u}));t.Z=c},2310:function(e,t,n){"use strict";var r=n(7294),o=n(67),i=n(7094),a=n(5893);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function c(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function l(){return!0}t.Z=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=c,isEnabled:p=l,open:f}=e,h=r.useRef(),m=r.useRef(null),v=r.useRef(null),g=r.useRef(null),b=r.useRef(null),y=r.useRef(!1),Z=r.useRef(null),x=(0,o.Z)(t.ref,Z),w=r.useRef(null);r.useEffect((()=>{f&&Z.current&&(y.current=!n)}),[n,f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current);return Z.current.contains(e.activeElement)||(Z.current.hasAttribute("tabIndex")||Z.current.setAttribute("tabIndex",-1),y.current&&Z.current.focus()),()=>{u||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}}),[f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current),t=t=>{const{current:n}=Z;if(null!==n)if(e.hasFocus()&&!s&&p()&&!h.current){if(!n.contains(e.activeElement)){if(t&&b.current!==t.target||e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!y.current)return;let i=[];if(e.activeElement!==m.current&&e.activeElement!==v.current||(i=d(Z.current)),i.length>0){var r,o;const e=Boolean((null==(r=w.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=w.current)?void 0:o.key)),t=i[0],n=i[i.length-1];e?n.focus():t.focus()}else n.focus()}}else h.current=!1},n=t=>{w.current=t,!s&&p()&&"Tab"===t.key&&e.activeElement===Z.current&&t.shiftKey&&(h.current=!0,v.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,s,u,p,f,d]);const S=e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0,b.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:v,"data-test":"sentinelEnd"})]})}},7192:function(e,t,n){"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},8442:function(e,t){"use strict";t.Z=function(e){return"string"===typeof e}},2428:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add")},1113:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Assignment")},5537:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},6761:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")},6059:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done")},1797:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit")},6576:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error")},1680:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},6571:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},238:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info")},1370:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle")},2186:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility")},5697:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff")},6195:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning")},7227:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(7192),l=n(6087),u=n(8979);function d(e){return(0,u.Z)("MuiBackdrop",e)}(0,l.Z)("MuiBackdrop",["root","invisible"]);var p=n(5893);const f=["classes","className","invisible","component","components","componentsProps","theme"];var h=i.forwardRef((function(e,t){const{classes:n,className:i,invisible:l=!1,component:u="div",components:h={},componentsProps:m={},theme:v}=e,g=(0,r.Z)(e,f),b=(0,o.Z)({},e,{classes:n,invisible:l}),y=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,c.Z)(r,d,t)})(b),Z=h.Root||u,x=m.root||{};return(0,p.jsx)(Z,(0,o.Z)({"aria-hidden":!0},x,!(0,a.Z)(Z)&&{as:u,ownerState:(0,o.Z)({},b,x.ownerState),theme:v},{ref:t},g,{className:(0,s.Z)(y.root,x.className,i)}))})),m=n(1496),v=n(3616),g=n(6628);const b=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],y=(0,m.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,o.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Z=i.forwardRef((function(e,t){var n;const i=(0,v.Z)({props:e,name:"MuiBackdrop"}),{children:s,components:c={},componentsProps:l={},className:u,invisible:d=!1,open:f,transitionDuration:m,TransitionComponent:Z=g.Z}=i,x=(0,r.Z)(i,b),w=(e=>{const{classes:t}=e;return t})((0,o.Z)({},i,{invisible:d}));return(0,p.jsx)(Z,(0,o.Z)({in:f,timeout:m},x,{children:(0,p.jsx)(h,{className:u,invisible:d,components:(0,o.Z)({Root:y},c),componentsProps:{root:(0,o.Z)({},l.root,(!c.Root||!(0,a.Z)(c.Root))&&{ownerState:(0,o.Z)({},null==(n=l.root)?void 0:n.ownerState)})},classes:w,ref:t,children:s})}))}))},7357:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(561),c=n(6523),l=n(9707),u=n(6682),d=n(5893);const p=["className","component"];var f=n(9981);const h=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:f,styleFunctionSx:h=c.Z}=e,m=(0,s.ZP)("div")(h);return i.forwardRef((function(e,i){const s=(0,u.Z)(t),c=(0,l.Z)(e),{className:h,component:v="div"}=c,g=(0,o.Z)(c,p);return(0,d.jsx)(m,(0,r.Z)({as:v,ref:i,className:(0,a.Z)(h,f?f(n):n),theme:s},g))}))}({defaultTheme:(0,n(1265).Z)(),defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var m=h},2992:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7925),c=n(7192),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(8216),h=n(7933);var m=i.createContext({}),v=n(5893);const g=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],b=e=>(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,f.Z)(n.color)}`],t[`size${(0,f.Z)(n.size)}`],t[`${n.variant}Size${(0,f.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${e.palette[t.color].main}`,backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.palette[t.color].dark,"@media (hover: none)":{backgroundColor:e.palette[t.color].main}}),"&:active":(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[8]}),[`&.${h.Z.focusVisible}`]:(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[6]}),[`&.${h.Z.disabled}`]:(0,o.Z)({color:e.palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${e.palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${e.palette.action.disabled}`},"contained"===t.variant&&{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"outlined"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,l.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${h.Z.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${h.Z.disabled}`]:{boxShadow:"none"}})),Z=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},b(e)))),x=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},b(e))));var w=i.forwardRef((function(e,t){const n=i.useContext(m),l=(0,s.Z)(n,e),u=(0,d.Z)({props:l,name:"MuiButton"}),{children:p,color:b="primary",component:w="button",className:S,disabled:E=!1,disableElevation:k=!1,disableFocusRipple:R=!1,endIcon:C,focusVisibleClassName:P,fullWidth:T=!1,size:M="medium",startIcon:I,type:O,variant:z="text"}=u,N=(0,r.Z)(u,g),j=(0,o.Z)({},u,{color:b,component:w,disabled:E,disableElevation:k,disableFocusRipple:R,fullWidth:T,size:M,type:O,variant:z}),A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,f.Z)(t)}`,`size${(0,f.Z)(i)}`,`${a}Size${(0,f.Z)(i)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,f.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,f.Z)(i)}`]},u=(0,c.Z)(l,h.F,s);return(0,o.Z)({},s,u)})(j),L=I&&(0,v.jsx)(Z,{className:A.startIcon,ownerState:j,children:I}),F=C&&(0,v.jsx)(x,{className:A.endIcon,ownerState:j,children:C});return(0,v.jsxs)(y,(0,o.Z)({ownerState:j,className:(0,a.Z)(S,n.className),component:w,disabled:E,focusRipple:!R,focusVisibleClassName:(0,a.Z)(A.focusVisible,P),ref:t,type:O},N,{classes:A,children:[L,p,F]}))}))},7933:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiButton",e)}const i=(0,n(6087).Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);t.Z=i},7739:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(1705),d=n(2068),p=n(8791);var f=n(5068),h=n(220);function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(o[c])for(r=0;r{if(!l&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,l,d]),(0,w.jsx)("span",{className:h,style:m,children:(0,w.jsx)("span",{className:v})})},E=n(6087);var k=(0,E.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const R=["center","classes","className"];let C,P,T,M,I=e=>e;const O=(0,x.F4)(C||(C=I` 0% { transform: scale(0); opacity: 0.1; @@ -8,7 +8,7 @@ transform: scale(1); opacity: 0.3; } -`)),N=(0,x.F4)(P||(P=I` +`)),z=(0,x.F4)(P||(P=I` 0% { opacity: 1; } @@ -16,7 +16,7 @@ 100% { opacity: 0; } -`)),z=(0,x.F4)(T||(T=I` +`)),N=(0,x.F4)(T||(T=I` 0% { transform: scale(1); } @@ -71,7 +71,7 @@ animation-iteration-count: infinite; animation-delay: 200ms; } -`),k.rippleVisible,O,550,(({theme:e})=>e.transitions.easing.easeInOut),k.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),k.child,k.childLeaving,N,550,(({theme:e})=>e.transitions.easing.easeInOut),k.childPulsate,z,(({theme:e})=>e.transitions.easing.easeInOut));var L=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:c={},className:u}=n,d=(0,o.Z)(n,R),[p,f]=i.useState([]),h=i.useRef(0),m=i.useRef(null);i.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[p]);const v=i.useRef(!1),g=i.useRef(null),b=i.useRef(null),y=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(g.current)}),[]);const x=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;f((e=>[...e,(0,w.jsx)(A,{classes:{ripple:(0,a.Z)(c.ripple,k.ripple),rippleVisible:(0,a.Z)(c.rippleVisible,k.rippleVisible),ripplePulsate:(0,a.Z)(c.ripplePulsate,k.ripplePulsate),child:(0,a.Z)(c.child,k.child),childLeaving:(0,a.Z)(c.childLeaving,k.childLeaving),childPulsate:(0,a.Z)(c.childPulsate,k.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},h.current)])),h.current+=1,m.current=i}),[c]),S=i.useCallback(((e={},t={},n)=>{const{pulsate:r=!1,center:o=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e.type&&v.current)return void(v.current=!1);"touchstart"===e.type&&(v.current=!0);const a=i?null:y.current,c=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,u,d;if(o||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(c.width/2),u=Math.round(c.height/2);else{const{clientX:t,clientY:n}=e.touches?e.touches[0]:e;l=Math.round(t-c.left),u=Math.round(n-c.top)}if(o)d=Math.sqrt((2*c.width**2+c.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-l),l)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e.touches?null===b.current&&(b.current=()=>{x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})},g.current=setTimeout((()=>{b.current&&(b.current(),b.current=null)}),80)):x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})}),[s,x]),E=i.useCallback((()=>{S({},{pulsate:!0})}),[S]),C=i.useCallback(((e,t)=>{if(clearTimeout(g.current),"touchend"===e.type&&b.current)return b.current(),b.current=null,void(g.current=setTimeout((()=>{C(e,t)})));b.current=null,f((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:E,start:S,stop:C})),[E,S,C]),(0,w.jsx)(j,(0,r.Z)({className:(0,a.Z)(c.root,k.root,u),ref:y},d,{children:(0,w.jsx)(Z,{component:null,exit:!0,children:p})}))})),F=n(8979);function $(e){return(0,F.Z)("MuiButtonBase",e)}var B=(0,E.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const D=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=(0,c.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${B.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var _=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiButtonBase"}),{action:c,centerRipple:f=!1,children:h,className:m,component:v="button",disabled:g=!1,disableRipple:b=!1,disableTouchRipple:y=!1,focusRipple:Z=!1,LinkComponent:x="a",onBlur:S,onClick:E,onContextMenu:k,onDragLeave:R,onFocus:C,onFocusVisible:P,onKeyDown:T,onKeyUp:M,onMouseDown:I,onMouseLeave:O,onMouseUp:N,onTouchEnd:z,onTouchMove:j,onTouchStart:A,tabIndex:F=0,TouchRippleProps:B,touchRippleRef:_,type:q}=n,W=(0,o.Z)(n,D),U=i.useRef(null),H=i.useRef(null),K=(0,u.Z)(H,_),{isFocusVisibleRef:G,onFocus:X,onBlur:Y,ref:J}=(0,p.Z)(),[Q,ee]=i.useState(!1);function te(e,t,n=y){return(0,d.Z)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}g&&Q&&ee(!1),i.useImperativeHandle(c,(()=>({focusVisible:()=>{ee(!0),U.current.focus()}})),[]),i.useEffect((()=>{Q&&Z&&!b&&H.current.pulsate()}),[b,Z,Q]);const ne=te("start",I),re=te("stop",k),oe=te("stop",R),ie=te("stop",N),ae=te("stop",(e=>{Q&&e.preventDefault(),O&&O(e)})),se=te("start",A),ce=te("stop",z),le=te("stop",j),ue=te("stop",(e=>{Y(e),!1===G.current&&ee(!1),S&&S(e)}),!1),de=(0,d.Z)((e=>{U.current||(U.current=e.currentTarget),X(e),!0===G.current&&(ee(!0),P&&P(e)),C&&C(e)})),pe=()=>{const e=U.current;return v&&"button"!==v&&!("A"===e.tagName&&e.href)},fe=i.useRef(!1),he=(0,d.Z)((e=>{Z&&!fe.current&&Q&&H.current&&" "===e.key&&(fe.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!g&&(e.preventDefault(),E&&E(e))})),me=(0,d.Z)((e=>{Z&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(fe.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),M&&M(e),E&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&E(e)}));let ve=v;"button"===ve&&(W.href||W.to)&&(ve=x);const ge={};"button"===ve?(ge.type=void 0===q?"button":q,ge.disabled=g):(W.href||W.to||(ge.role="button"),g&&(ge["aria-disabled"]=g));const be=(0,u.Z)(J,U),ye=(0,u.Z)(t,be),[Ze,xe]=i.useState(!1);i.useEffect((()=>{xe(!0)}),[]);const we=Ze&&!b&&!g;const Se=(0,r.Z)({},n,{centerRipple:f,component:v,disabled:g,disableRipple:b,disableTouchRipple:y,focusRipple:Z,tabIndex:F,focusVisible:Q}),Ee=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.Z)(i,$,o);return n&&r&&(a.root+=` ${r}`),a})(Se);return(0,w.jsxs)(V,(0,r.Z)({as:ve,className:(0,a.Z)(Ee.root,m),ownerState:Se,onBlur:ue,onClick:E,onContextMenu:re,onFocus:de,onKeyDown:he,onKeyUp:me,onMouseDown:ne,onMouseLeave:ae,onMouseUp:ie,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:se,ref:ye,tabIndex:g?-1:F,type:q},ge,W,{children:[h,we?(0,w.jsx)(L,(0,r.Z)({ref:K,center:f},B)):null]}))}))},8128:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(3366),o=n(7462),i=n(7294),a=n(7192),s=n(1796),c=n(1964),l=n(7892),u=n(5893),d=(0,l.Z)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),p=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(8216),m=n(3616),v=n(1496),g=n(3631);const b=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],y=(0,v.ZP)(c.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,h.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g.Z.checked}, &.${g.Z.indeterminate}`]:{color:e.palette[t.color].main},[`&.${g.Z.disabled}`]:{color:e.palette.action.disabled}}))),Z=(0,u.jsx)(p,{}),x=(0,u.jsx)(d,{}),w=(0,u.jsx)(f,{});var S=i.forwardRef((function(e,t){var n,s;const c=(0,m.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Z,color:d="primary",icon:p=x,indeterminate:f=!1,indeterminateIcon:v=w,inputProps:S,size:E="medium"}=c,k=(0,r.Z)(c,b),R=f?v:p,C=f?v:l,P=(0,o.Z)({},c,{color:d,indeterminate:f,size:E}),T=(e=>{const{classes:t,indeterminate:n,color:r}=e,i={root:["root",n&&"indeterminate",`color${(0,h.Z)(r)}`]},s=(0,a.Z)(i,g.y,t);return(0,o.Z)({},t,s)})(P);return(0,u.jsx)(y,(0,o.Z)({type:"checkbox",inputProps:(0,o.Z)({"data-indeterminate":f},S),icon:i.cloneElement(R,{fontSize:null!=(n=R.props.fontSize)?n:E}),checkedIcon:i.cloneElement(C,{fontSize:null!=(s=C.props.fontSize)?s:E}),ownerState:P,ref:t},k,{classes:T}))}))},3631:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCheckbox",e)}const i=(0,n(6087).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);t.Z=i},6489:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(8216),u=n(3616),d=n(1496),p=n(2346),f=n(5893);const h=["className","color","disableShrink","size","style","thickness","value","variant"];let m,v,g,b,y=e=>e;const Z=44,x=(0,c.F4)(m||(m=y` +`),k.rippleVisible,O,550,(({theme:e})=>e.transitions.easing.easeInOut),k.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),k.child,k.childLeaving,z,550,(({theme:e})=>e.transitions.easing.easeInOut),k.childPulsate,N,(({theme:e})=>e.transitions.easing.easeInOut));var L=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:c={},className:u}=n,d=(0,o.Z)(n,R),[p,f]=i.useState([]),h=i.useRef(0),m=i.useRef(null);i.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[p]);const v=i.useRef(!1),g=i.useRef(null),b=i.useRef(null),y=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(g.current)}),[]);const x=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;f((e=>[...e,(0,w.jsx)(A,{classes:{ripple:(0,a.Z)(c.ripple,k.ripple),rippleVisible:(0,a.Z)(c.rippleVisible,k.rippleVisible),ripplePulsate:(0,a.Z)(c.ripplePulsate,k.ripplePulsate),child:(0,a.Z)(c.child,k.child),childLeaving:(0,a.Z)(c.childLeaving,k.childLeaving),childPulsate:(0,a.Z)(c.childPulsate,k.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},h.current)])),h.current+=1,m.current=i}),[c]),S=i.useCallback(((e={},t={},n)=>{const{pulsate:r=!1,center:o=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e.type&&v.current)return void(v.current=!1);"touchstart"===e.type&&(v.current=!0);const a=i?null:y.current,c=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,u,d;if(o||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(c.width/2),u=Math.round(c.height/2);else{const{clientX:t,clientY:n}=e.touches?e.touches[0]:e;l=Math.round(t-c.left),u=Math.round(n-c.top)}if(o)d=Math.sqrt((2*c.width**2+c.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-l),l)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e.touches?null===b.current&&(b.current=()=>{x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})},g.current=setTimeout((()=>{b.current&&(b.current(),b.current=null)}),80)):x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})}),[s,x]),E=i.useCallback((()=>{S({},{pulsate:!0})}),[S]),C=i.useCallback(((e,t)=>{if(clearTimeout(g.current),"touchend"===e.type&&b.current)return b.current(),b.current=null,void(g.current=setTimeout((()=>{C(e,t)})));b.current=null,f((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:E,start:S,stop:C})),[E,S,C]),(0,w.jsx)(j,(0,r.Z)({className:(0,a.Z)(c.root,k.root,u),ref:y},d,{children:(0,w.jsx)(Z,{component:null,exit:!0,children:p})}))})),F=n(8979);function $(e){return(0,F.Z)("MuiButtonBase",e)}var B=(0,E.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const D=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=(0,c.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${B.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var _=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiButtonBase"}),{action:c,centerRipple:f=!1,children:h,className:m,component:v="button",disabled:g=!1,disableRipple:b=!1,disableTouchRipple:y=!1,focusRipple:Z=!1,LinkComponent:x="a",onBlur:S,onClick:E,onContextMenu:k,onDragLeave:R,onFocus:C,onFocusVisible:P,onKeyDown:T,onKeyUp:M,onMouseDown:I,onMouseLeave:O,onMouseUp:z,onTouchEnd:N,onTouchMove:j,onTouchStart:A,tabIndex:F=0,TouchRippleProps:B,touchRippleRef:_,type:q}=n,W=(0,o.Z)(n,D),U=i.useRef(null),H=i.useRef(null),K=(0,u.Z)(H,_),{isFocusVisibleRef:G,onFocus:X,onBlur:Y,ref:J}=(0,p.Z)(),[Q,ee]=i.useState(!1);function te(e,t,n=y){return(0,d.Z)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}g&&Q&&ee(!1),i.useImperativeHandle(c,(()=>({focusVisible:()=>{ee(!0),U.current.focus()}})),[]),i.useEffect((()=>{Q&&Z&&!b&&H.current.pulsate()}),[b,Z,Q]);const ne=te("start",I),re=te("stop",k),oe=te("stop",R),ie=te("stop",z),ae=te("stop",(e=>{Q&&e.preventDefault(),O&&O(e)})),se=te("start",A),ce=te("stop",N),le=te("stop",j),ue=te("stop",(e=>{Y(e),!1===G.current&&ee(!1),S&&S(e)}),!1),de=(0,d.Z)((e=>{U.current||(U.current=e.currentTarget),X(e),!0===G.current&&(ee(!0),P&&P(e)),C&&C(e)})),pe=()=>{const e=U.current;return v&&"button"!==v&&!("A"===e.tagName&&e.href)},fe=i.useRef(!1),he=(0,d.Z)((e=>{Z&&!fe.current&&Q&&H.current&&" "===e.key&&(fe.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!g&&(e.preventDefault(),E&&E(e))})),me=(0,d.Z)((e=>{Z&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(fe.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),M&&M(e),E&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&E(e)}));let ve=v;"button"===ve&&(W.href||W.to)&&(ve=x);const ge={};"button"===ve?(ge.type=void 0===q?"button":q,ge.disabled=g):(W.href||W.to||(ge.role="button"),g&&(ge["aria-disabled"]=g));const be=(0,u.Z)(J,U),ye=(0,u.Z)(t,be),[Ze,xe]=i.useState(!1);i.useEffect((()=>{xe(!0)}),[]);const we=Ze&&!b&&!g;const Se=(0,r.Z)({},n,{centerRipple:f,component:v,disabled:g,disableRipple:b,disableTouchRipple:y,focusRipple:Z,tabIndex:F,focusVisible:Q}),Ee=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.Z)(i,$,o);return n&&r&&(a.root+=` ${r}`),a})(Se);return(0,w.jsxs)(V,(0,r.Z)({as:ve,className:(0,a.Z)(Ee.root,m),ownerState:Se,onBlur:ue,onClick:E,onContextMenu:re,onFocus:de,onKeyDown:he,onKeyUp:me,onMouseDown:ne,onMouseLeave:ae,onMouseUp:ie,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:se,ref:ye,tabIndex:g?-1:F,type:q},ge,W,{children:[h,we?(0,w.jsx)(L,(0,r.Z)({ref:K,center:f},B)):null]}))}))},8128:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(3366),o=n(7462),i=n(7294),a=n(7192),s=n(1796),c=n(1964),l=n(7892),u=n(5893),d=(0,l.Z)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),p=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(8216),m=n(3616),v=n(1496),g=n(3631);const b=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],y=(0,v.ZP)(c.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,h.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g.Z.checked}, &.${g.Z.indeterminate}`]:{color:e.palette[t.color].main},[`&.${g.Z.disabled}`]:{color:e.palette.action.disabled}}))),Z=(0,u.jsx)(p,{}),x=(0,u.jsx)(d,{}),w=(0,u.jsx)(f,{});var S=i.forwardRef((function(e,t){var n,s;const c=(0,m.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Z,color:d="primary",icon:p=x,indeterminate:f=!1,indeterminateIcon:v=w,inputProps:S,size:E="medium"}=c,k=(0,r.Z)(c,b),R=f?v:p,C=f?v:l,P=(0,o.Z)({},c,{color:d,indeterminate:f,size:E}),T=(e=>{const{classes:t,indeterminate:n,color:r}=e,i={root:["root",n&&"indeterminate",`color${(0,h.Z)(r)}`]},s=(0,a.Z)(i,g.y,t);return(0,o.Z)({},t,s)})(P);return(0,u.jsx)(y,(0,o.Z)({type:"checkbox",inputProps:(0,o.Z)({"data-indeterminate":f},S),icon:i.cloneElement(R,{fontSize:null!=(n=R.props.fontSize)?n:E}),checkedIcon:i.cloneElement(C,{fontSize:null!=(s=C.props.fontSize)?s:E}),ownerState:P,ref:t},k,{classes:T}))}))},3631:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCheckbox",e)}const i=(0,n(6087).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);t.Z=i},6489:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(8216),u=n(3616),d=n(1496),p=n(2346),f=n(5893);const h=["className","color","disableShrink","size","style","thickness","value","variant"];let m,v,g,b,y=e=>e;const Z=44,x=(0,c.F4)(m||(m=y` 0% { transform: rotate(0deg); } @@ -98,7 +98,7 @@ animation: ${0} 1.4s linear infinite; `),x))),E=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),k=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,l.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,o.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,c.iv)(b||(b=y` animation: ${0} 1.4s ease-in-out infinite; - `),w))),R=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:c="primary",disableShrink:d=!1,size:m=40,style:v,thickness:g=3.6,value:b=0,variant:y="indeterminate"}=n,x=(0,r.Z)(n,h),w=(0,o.Z)({},n,{color:c,disableShrink:d,size:m,thickness:g,value:b,variant:y}),R=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,l.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,l.Z)(n)}`,o&&"circleDisableShrink"]};return(0,s.Z)(i,p.C,t)})(w),C={},P={},T={};if("determinate"===y){const e=2*Math.PI*((Z-g)/2);C.strokeDasharray=e.toFixed(3),T["aria-valuenow"]=Math.round(b),C.strokeDashoffset=`${((100-b)/100*e).toFixed(3)}px`,P.transform="rotate(-90deg)"}return(0,f.jsx)(S,(0,o.Z)({className:(0,a.Z)(R.root,i),style:(0,o.Z)({width:m,height:m},P,v),ownerState:w,ref:t,role:"progressbar"},T,x,{children:(0,f.jsx)(E,{className:R.svg,ownerState:w,viewBox:"22 22 44 44",children:(0,f.jsx)(k,{className:R.circle,style:C,ownerState:w,cx:Z,cy:Z,r:(Z-g)/2,fill:"none",strokeWidth:g})})}))}));t.Z=R},2346:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCircularProgress",e)}const i=(0,n(6087).Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);t.Z=i},7720:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(5097),p=n(5893);const f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,l.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:e.palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:(0,c.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${e.palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${e.palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,o.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),m=(0,l.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),v=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:c,className:l,component:v=(c?"div":"hr"),flexItem:g=!1,light:b=!1,orientation:y="horizontal",role:Z=("hr"!==v?"separator":void 0),textAlign:x="center",variant:w="fullWidth"}=n,S=(0,r.Z)(n,f),E=(0,o.Z)({},n,{absolute:i,component:v,flexItem:g,light:b,orientation:y,role:Z,textAlign:x,variant:w}),k=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e,u={root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===c&&"vertical"!==a&&"textAlignRight","left"===c&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,r)})(E);return(0,p.jsx)(h,(0,o.Z)({as:v,className:(0,a.Z)(k.root,l),role:Z,ref:t,ownerState:E},S,{children:c?(0,p.jsx)(m,{className:k.wrapper,ownerState:E,children:c}):null}))}));t.Z=v},5097:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiDivider",e)}const i=(0,n(6087).Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=i},6628:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},f=i.forwardRef((function(e,t){const n=(0,s.Z)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:h,appear:m=!0,children:v,easing:g,in:b,onEnter:y,onEntered:Z,onEntering:x,onExit:w,onExited:S,onExiting:E,style:k,timeout:R=f,TransitionComponent:C=a.ZP}=e,P=(0,o.Z)(e,d),T=i.useRef(null),M=(0,l.Z)(v.ref,t),I=(0,l.Z)(T,M),O=e=>t=>{if(e){const n=T.current;void 0===t?e(n):e(n,t)}},N=O(x),z=O(((e,t)=>{(0,c.n)(e);const r=(0,c.C)({style:k,timeout:R,easing:g},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),y&&y(e,t)})),j=O(Z),A=O(E),L=O((e=>{const t=(0,c.C)({style:k,timeout:R,easing:g},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),w&&w(e)})),F=O(S);return(0,u.jsx)(C,(0,r.Z)({appear:m,in:b,nodeRef:T,onEnter:z,onEntered:j,onEntering:N,onExit:L,onExited:F,onExiting:A,addEndListener:e=>{h&&h(T.current,e)},timeout:R},P,{children:(e,t)=>i.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],k,v.props.style),ref:I},t))}))}));t.Z=f},7167:function(e,t,n){"use strict";const r=n(7294).createContext();t.Z=r},4423:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7167);function i(){return r.useContext(o.Z)}},2287:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=(n(7294),n(917)),i=n(5893);function a(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(o.xB,{styles:r})}var s=n(247);var c=function(e){return(0,i.jsx)(a,(0,r.Z)({},e,{defaultTheme:s.Z}))}},6514:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h=i.forwardRef((function(e,t){const{addEndListener:n,appear:h=!0,children:m,easing:v,in:g,onEnter:b,onEntered:y,onEntering:Z,onExit:x,onExited:w,onExiting:S,style:E,timeout:k="auto",TransitionComponent:R=a.ZP}=e,C=(0,o.Z)(e,d),P=i.useRef(),T=i.useRef(),M=(0,s.Z)(),I=i.useRef(null),O=(0,l.Z)(m.ref,t),N=(0,l.Z)(I,O),z=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},j=z(Z),A=z(((e,t)=>{(0,c.n)(e);const{duration:n,delay:r,easing:o}=(0,c.C)({style:E,timeout:k,easing:v},{mode:"enter"});let i;"auto"===k?(i=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=i):i=n,e.style.transition=[M.transitions.create("opacity",{duration:i,delay:r}),M.transitions.create("transform",{duration:.666*i,delay:r,easing:o})].join(","),b&&b(e,t)})),L=z(y),F=z(S),$=z((e=>{const{duration:t,delay:n,easing:r}=(0,c.C)({style:E,timeout:k,easing:v},{mode:"exit"});let o;"auto"===k?(o=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=o):o=t,e.style.transition=[M.transitions.create("opacity",{duration:o,delay:n}),M.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity="0",e.style.transform=p(.75),x&&x(e)})),B=z(w);return i.useEffect((()=>()=>{clearTimeout(P.current)}),[]),(0,u.jsx)(R,(0,r.Z)({appear:h,in:g,nodeRef:I,onEnter:A,onEntered:L,onEntering:j,onExit:$,onExited:B,onExiting:F,addEndListener:e=>{"auto"===k&&(P.current=setTimeout(e,T.current||0)),n&&n(I.current,e)},timeout:"auto"===k?null:k},C,{children:(e,t)=>i.cloneElement(m,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||g?void 0:"hidden"},f[e],E,m.props.style),ref:N},t))}))}));h.muiSupportAuto=!0,t.Z=h},4799:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8216),f=n(6239),h=n(5893);const m=["edge","children","className","color","disabled","disableFocusRipple","size"],v=(0,l.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.Z)(n.color)}`],n.edge&&t[`edge${(0,p.Z)(n.edge)}`],t[`size${(0,p.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>(0,o.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,o.Z)({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${f.Z.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}}))),g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:c,className:l,color:d="default",disabled:g=!1,disableFocusRipple:b=!1,size:y="medium"}=n,Z=(0,r.Z)(n,m),x=(0,o.Z)({},n,{edge:i,color:d,disabled:g,disableFocusRipple:b,size:y}),w=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,p.Z)(r)}`,o&&`edge${(0,p.Z)(o)}`,`size${(0,p.Z)(i)}`]};return(0,s.Z)(a,f.r,t)})(x);return(0,h.jsx)(v,(0,o.Z)({className:(0,a.Z)(w.root,l),centerRipple:!0,focusRipple:!b,disabled:g,ref:t,ownerState:x},Z,{children:c}))}));t.Z=g},6239:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiIconButton",e)}const i=(0,n(6087).Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);t.Z=i},7021:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInput",e)}const i=(0,n(6087).Z)("MuiInput",["root","formControl","focused","disabled","colorSecondary","underline","error","sizeSmall","multiline","fullWidth","input","inputSizeSmall","inputMultiline","inputTypeSearch"]);t.Z=i},8441:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(1796),u=n(8216),d=n(2734),p=n(1496),f=n(3616),h=n(8962),m=n(5893);const v=["className","color","value","valueBuffer","variant"];let g,b,y,Z,x,w,S=e=>e;const E=(0,c.F4)(g||(g=S` + `),w))),R=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:c="primary",disableShrink:d=!1,size:m=40,style:v,thickness:g=3.6,value:b=0,variant:y="indeterminate"}=n,x=(0,r.Z)(n,h),w=(0,o.Z)({},n,{color:c,disableShrink:d,size:m,thickness:g,value:b,variant:y}),R=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,l.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,l.Z)(n)}`,o&&"circleDisableShrink"]};return(0,s.Z)(i,p.C,t)})(w),C={},P={},T={};if("determinate"===y){const e=2*Math.PI*((Z-g)/2);C.strokeDasharray=e.toFixed(3),T["aria-valuenow"]=Math.round(b),C.strokeDashoffset=`${((100-b)/100*e).toFixed(3)}px`,P.transform="rotate(-90deg)"}return(0,f.jsx)(S,(0,o.Z)({className:(0,a.Z)(R.root,i),style:(0,o.Z)({width:m,height:m},P,v),ownerState:w,ref:t,role:"progressbar"},T,x,{children:(0,f.jsx)(E,{className:R.svg,ownerState:w,viewBox:"22 22 44 44",children:(0,f.jsx)(k,{className:R.circle,style:C,ownerState:w,cx:Z,cy:Z,r:(Z-g)/2,fill:"none",strokeWidth:g})})}))}));t.Z=R},2346:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCircularProgress",e)}const i=(0,n(6087).Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);t.Z=i},7720:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(5097),p=n(5893);const f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,l.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:e.palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:(0,c.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${e.palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${e.palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,o.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),m=(0,l.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),v=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:c,className:l,component:v=(c?"div":"hr"),flexItem:g=!1,light:b=!1,orientation:y="horizontal",role:Z=("hr"!==v?"separator":void 0),textAlign:x="center",variant:w="fullWidth"}=n,S=(0,r.Z)(n,f),E=(0,o.Z)({},n,{absolute:i,component:v,flexItem:g,light:b,orientation:y,role:Z,textAlign:x,variant:w}),k=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e,u={root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===c&&"vertical"!==a&&"textAlignRight","left"===c&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,r)})(E);return(0,p.jsx)(h,(0,o.Z)({as:v,className:(0,a.Z)(k.root,l),role:Z,ref:t,ownerState:E},S,{children:c?(0,p.jsx)(m,{className:k.wrapper,ownerState:E,children:c}):null}))}));t.Z=v},5097:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiDivider",e)}const i=(0,n(6087).Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=i},6628:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},f=i.forwardRef((function(e,t){const n=(0,s.Z)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:h,appear:m=!0,children:v,easing:g,in:b,onEnter:y,onEntered:Z,onEntering:x,onExit:w,onExited:S,onExiting:E,style:k,timeout:R=f,TransitionComponent:C=a.ZP}=e,P=(0,o.Z)(e,d),T=i.useRef(null),M=(0,l.Z)(v.ref,t),I=(0,l.Z)(T,M),O=e=>t=>{if(e){const n=T.current;void 0===t?e(n):e(n,t)}},z=O(x),N=O(((e,t)=>{(0,c.n)(e);const r=(0,c.C)({style:k,timeout:R,easing:g},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),y&&y(e,t)})),j=O(Z),A=O(E),L=O((e=>{const t=(0,c.C)({style:k,timeout:R,easing:g},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),w&&w(e)})),F=O(S);return(0,u.jsx)(C,(0,r.Z)({appear:m,in:b,nodeRef:T,onEnter:N,onEntered:j,onEntering:z,onExit:L,onExited:F,onExiting:A,addEndListener:e=>{h&&h(T.current,e)},timeout:R},P,{children:(e,t)=>i.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],k,v.props.style),ref:I},t))}))}));t.Z=f},7167:function(e,t,n){"use strict";const r=n(7294).createContext();t.Z=r},4423:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7167);function i(){return r.useContext(o.Z)}},2287:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=(n(7294),n(917)),i=n(5893);function a(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(o.xB,{styles:r})}var s=n(247);var c=function(e){return(0,i.jsx)(a,(0,r.Z)({},e,{defaultTheme:s.Z}))}},6514:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h=i.forwardRef((function(e,t){const{addEndListener:n,appear:h=!0,children:m,easing:v,in:g,onEnter:b,onEntered:y,onEntering:Z,onExit:x,onExited:w,onExiting:S,style:E,timeout:k="auto",TransitionComponent:R=a.ZP}=e,C=(0,o.Z)(e,d),P=i.useRef(),T=i.useRef(),M=(0,s.Z)(),I=i.useRef(null),O=(0,l.Z)(m.ref,t),z=(0,l.Z)(I,O),N=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},j=N(Z),A=N(((e,t)=>{(0,c.n)(e);const{duration:n,delay:r,easing:o}=(0,c.C)({style:E,timeout:k,easing:v},{mode:"enter"});let i;"auto"===k?(i=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=i):i=n,e.style.transition=[M.transitions.create("opacity",{duration:i,delay:r}),M.transitions.create("transform",{duration:.666*i,delay:r,easing:o})].join(","),b&&b(e,t)})),L=N(y),F=N(S),$=N((e=>{const{duration:t,delay:n,easing:r}=(0,c.C)({style:E,timeout:k,easing:v},{mode:"exit"});let o;"auto"===k?(o=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=o):o=t,e.style.transition=[M.transitions.create("opacity",{duration:o,delay:n}),M.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity="0",e.style.transform=p(.75),x&&x(e)})),B=N(w);return i.useEffect((()=>()=>{clearTimeout(P.current)}),[]),(0,u.jsx)(R,(0,r.Z)({appear:h,in:g,nodeRef:I,onEnter:A,onEntered:L,onEntering:j,onExit:$,onExited:B,onExiting:F,addEndListener:e=>{"auto"===k&&(P.current=setTimeout(e,T.current||0)),n&&n(I.current,e)},timeout:"auto"===k?null:k},C,{children:(e,t)=>i.cloneElement(m,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||g?void 0:"hidden"},f[e],E,m.props.style),ref:z},t))}))}));h.muiSupportAuto=!0,t.Z=h},4799:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8216),f=n(6239),h=n(5893);const m=["edge","children","className","color","disabled","disableFocusRipple","size"],v=(0,l.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.Z)(n.color)}`],n.edge&&t[`edge${(0,p.Z)(n.edge)}`],t[`size${(0,p.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>(0,o.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,o.Z)({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${f.Z.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}}))),g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:c,className:l,color:d="default",disabled:g=!1,disableFocusRipple:b=!1,size:y="medium"}=n,Z=(0,r.Z)(n,m),x=(0,o.Z)({},n,{edge:i,color:d,disabled:g,disableFocusRipple:b,size:y}),w=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,p.Z)(r)}`,o&&`edge${(0,p.Z)(o)}`,`size${(0,p.Z)(i)}`]};return(0,s.Z)(a,f.r,t)})(x);return(0,h.jsx)(v,(0,o.Z)({className:(0,a.Z)(w.root,l),centerRipple:!0,focusRipple:!b,disabled:g,ref:t,ownerState:x},Z,{children:c}))}));t.Z=g},6239:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiIconButton",e)}const i=(0,n(6087).Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);t.Z=i},7021:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInput",e)}const i=(0,n(6087).Z)("MuiInput",["root","formControl","focused","disabled","colorSecondary","underline","error","sizeSmall","multiline","fullWidth","input","inputSizeSmall","inputMultiline","inputTypeSearch"]);t.Z=i},8441:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(1796),u=n(8216),d=n(2734),p=n(1496),f=n(3616),h=n(8962),m=n(5893);const v=["className","color","value","valueBuffer","variant"];let g,b,y,Z,x,w,S=e=>e;const E=(0,c.F4)(g||(g=S` 0% { left: -35%; right: 100%; @@ -151,4 +151,4 @@ `),E))),I=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,u.Z)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:C(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(w||(w=S` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),k))),O=i.forwardRef((function(e,t){const n=(0,f.Z)({props:e,name:"MuiLinearProgress"}),{className:i,color:c="primary",value:l,valueBuffer:p,variant:g="indeterminate"}=n,b=(0,r.Z)(n,v),y=(0,o.Z)({},n,{color:c,variant:g}),Z=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,u.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,u.Z)(r)}`],bar1:["bar",`barColor${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,u.Z)(r)}`,"buffer"===n&&`color${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,s.Z)(o,h.E,t)})(y),x=(0,d.Z)(),w={},S={bar1:{},bar2:{}};if("determinate"===g||"buffer"===g)if(void 0!==l){w["aria-valuenow"]=Math.round(l),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let e=l-100;"rtl"===x.direction&&(e=-e),S.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===g)if(void 0!==p){let e=(p||0)-100;"rtl"===x.direction&&(e=-e),S.bar2.transform=`translateX(${e}%)`}else 0;return(0,m.jsxs)(P,(0,o.Z)({className:(0,a.Z)(Z.root,i),ownerState:y,role:"progressbar"},w,{ref:t},b,{children:["buffer"===g?(0,m.jsx)(T,{className:Z.dashed,ownerState:y}):null,(0,m.jsx)(M,{className:Z.bar1,ownerState:y,style:S.bar1}),"determinate"===g?null:(0,m.jsx)(I,{className:Z.bar2,ownerState:y,style:S.bar2})]}))}));t.Z=O},8962:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiLinearProgress",e)}const i=(0,n(6087).Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);t.Z=i},8462:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(9773),d=n(8979);function p(e){return(0,d.Z)("MuiList",e)}(0,n(6087).Z)("MuiList",["root","padding","dense","subheader"]);var f=n(5893);const h=["children","className","component","dense","disablePadding","subheader"],m=(0,c.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var v=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiList"}),{children:c,className:d,component:v="ul",dense:g=!1,disablePadding:b=!1,subheader:y}=n,Z=(0,r.Z)(n,h),x=i.useMemo((()=>({dense:g})),[g]),w=(0,o.Z)({},n,{component:v,dense:g,disablePadding:b}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,s.Z)(i,p,t)})(w);return(0,f.jsx)(u.Z.Provider,{value:x,children:(0,f.jsxs)(m,(0,o.Z)({as:v,className:(0,a.Z)(S.root,d),ref:t,ownerState:w},Z,{children:[y,c]}))})}))},9773:function(e,t,n){"use strict";const r=n(7294).createContext({});t.Z=r},7212:function(e,t,n){"use strict";n.d(t,{ZP:function(){return O}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8442),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(1579),h=n(8974),m=n(1705),v=n(9773),g=n(8979),b=n(6087);function y(e){return(0,g.Z)("MuiListItem",e)}var Z=(0,b.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),x=n(8686);function w(e){return(0,g.Z)("MuiListItemSecondaryAction",e)}(0,b.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(5893);const E=["className"],k=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,o.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),R=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:c}=n,l=(0,r.Z)(n,E),u=i.useContext(v.Z),p=(0,o.Z)({},n,{disableGutters:u.disableGutters}),f=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.Z)(r,w,n)})(p);return(0,S.jsx)(k,(0,o.Z)({className:(0,a.Z)(f.root,c),ownerState:p,ref:t},l))}));R.muiName="ListItemSecondaryAction";var C=R;const P=["className"],T=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],M=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,o.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${x.Z.root}`]:{paddingRight:48}},{[`&.${Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${Z.selected}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Z.focusVisible}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Z.selected}:hover`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),I=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var O=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:g=!1,children:b,className:x,component:w,components:E={},componentsProps:k={},ContainerComponent:R="li",ContainerProps:{className:O}={},dense:N=!1,disabled:z=!1,disableGutters:j=!1,disablePadding:A=!1,divider:L=!1,focusVisibleClassName:F,secondaryAction:$,selected:B=!1}=n,D=(0,r.Z)(n.ContainerProps,P),V=(0,r.Z)(n,T),_=i.useContext(v.Z),q={dense:N||_.dense||!1,alignItems:l,disableGutters:j},W=i.useRef(null);(0,h.Z)((()=>{u&&W.current&&W.current.focus()}),[u]);const U=i.Children.toArray(b),H=U.length&&(0,f.Z)(U[U.length-1],["ListItemSecondaryAction"]),K=(0,o.Z)({},n,{alignItems:l,autoFocus:u,button:g,dense:q.dense,disabled:z,disableGutters:j,disablePadding:A,divider:L,hasSecondaryAction:H,selected:B}),G=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:c,divider:l,hasSecondaryAction:u,selected:d}=e,p={root:["root",o&&"dense",!a&&"gutters",!c&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,y,r)})(K),X=(0,m.Z)(W,t),Y=E.Root||M,J=k.root||{},Q=(0,o.Z)({className:(0,a.Z)(G.root,J.className,x),disabled:z},V);let ee=w||"li";return g&&(Q.component=w||"div",Q.focusVisibleClassName=(0,a.Z)(Z.focusVisible,F),ee=p.Z),H?(ee=Q.component||w?ee:"div","li"===R&&("li"===ee?ee="div":"li"===Q.component&&(Q.component="div")),(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(I,(0,o.Z)({as:R,className:(0,a.Z)(G.container,O),ref:X,ownerState:K},D,{children:[(0,S.jsx)(Y,(0,o.Z)({},J,!(0,c.Z)(Y)&&{as:ee,ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:U})),U.pop()]}))})):(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(Y,(0,o.Z)({},J,{as:ee,ref:X,ownerState:K},!(0,c.Z)(Y)&&{ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:[U,$&&(0,S.jsx)(C,{children:$})]}))})}))},8619:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8974),f=n(1705),h=n(9773),m=n(8686),v=n(5893);const g=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],b=(0,l.ZP)(d.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.Z.selected}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${m.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${m.Z.selected}:hover`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${m.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${m.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiListItemButton"}),{alignItems:c="center",autoFocus:l=!1,component:d="div",children:y,dense:Z=!1,disableGutters:x=!1,divider:w=!1,focusVisibleClassName:S,selected:E=!1}=n,k=(0,r.Z)(n,g),R=i.useContext(h.Z),C={dense:Z||R.dense||!1,alignItems:c,disableGutters:x},P=i.useRef(null);(0,p.Z)((()=>{l&&P.current&&P.current.focus()}),[l]);const T=(0,o.Z)({},n,{alignItems:c,dense:C.dense,disableGutters:x,divider:w,selected:E}),M=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:c,selected:l}=e,u={root:["root",r&&"dense",!a&&"gutters",c&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},d=(0,s.Z)(u,m.t,n);return(0,o.Z)({},n,d)})(T),I=(0,f.Z)(P,t);return(0,v.jsx)(h.Z.Provider,{value:C,children:(0,v.jsx)(b,(0,o.Z)({ref:I,component:d,focusVisibleClassName:(0,a.Z)(M.focusVisible,S),ownerState:T},k,{classes:M,children:y}))})}));t.Z=y},8686:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemButton",e)}const i=(0,n(6087).Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=i},7594:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(4592),d=n(9773),p=n(5893);const f=["className"],h=(0,c.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,o.Z)({minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),m=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiListItemIcon"}),{className:c}=n,m=(0,r.Z)(n,f),v=i.useContext(d.Z),g=(0,o.Z)({},n,{alignItems:v.alignItems}),b=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(r,u.f,n)})(g);return(0,p.jsx)(h,(0,o.Z)({className:(0,a.Z)(b.root,c),ownerState:g,ref:t},m))}));t.Z=m},4592:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemIcon",e)}const i=(0,n(6087).Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=i},8333:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(6010)),s=n(7192),c=n(4118),l=n(5113),u=n(1496),d=n(3616),p=n(7144),f=n(8038),h=n(5340),m=n(1705),v=n(6514),g=n(9964),b=n(8979),y=n(6087);function Z(e){return(0,b.Z)("MuiPopover",e)}(0,y.Z)("MuiPopover",["root","paper"]);var x=n(5893);const w=["onEntering"],S=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function E(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function k(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function R(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function C(e){return"function"===typeof e?e():e}const P=(0,u.ZP)(g.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T=(0,u.ZP)(l.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var M=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiPopover"}),{action:c,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:b="anchorEl",children:y,className:M,container:I,elevation:O=8,marginThreshold:N=16,open:z,PaperProps:j={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:L=v.Z,transitionDuration:F="auto",TransitionProps:{onEntering:$}={}}=n,B=(0,o.Z)(n.TransitionProps,w),D=(0,o.Z)(n,S),V=i.useRef(),_=(0,m.Z)(V,j.ref),q=(0,r.Z)({},n,{anchorOrigin:u,anchorReference:b,elevation:O,marginThreshold:N,PaperProps:j,transformOrigin:A,TransitionComponent:L,transitionDuration:F,TransitionProps:B}),W=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},Z,t)})(q),U=i.useCallback((()=>{if("anchorPosition"===b)return g;const e=C(l),t=(e&&1===e.nodeType?e:(0,f.Z)(V.current).body).getBoundingClientRect();return{top:t.top+E(t,u.vertical),left:t.left+k(t,u.horizontal)}}),[l,u.horizontal,u.vertical,g,b]),H=i.useCallback((e=>({vertical:E(e,A.vertical),horizontal:k(e,A.horizontal)})),[A.horizontal,A.vertical]),K=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=H(t);if("none"===b)return{top:null,left:null,transformOrigin:R(n)};const r=U();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=(0,h.Z)(C(l)),u=c.innerHeight-N,d=c.innerWidth-N;if(ou){const e=a-u;o-=e,n.vertical+=e}if(id){const e=s-d;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:R(n)}}),[l,b,U,H,N]),G=i.useCallback((()=>{const e=V.current;if(!e)return;const t=K(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[K]);i.useEffect((()=>{z&&G()})),i.useImperativeHandle(c,(()=>z?{updatePosition:()=>{G()}}:null),[z,G]),i.useEffect((()=>{if(!z)return;const e=(0,p.Z)((()=>{G()})),t=(0,h.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,z,G]);let X=F;"auto"!==F||L.muiSupportAuto||(X=void 0);const Y=I||(l?(0,f.Z)(C(l)).body:void 0);return(0,x.jsx)(P,(0,r.Z)({BackdropProps:{invisible:!0},className:(0,a.Z)(W.root,M),container:Y,open:z,ref:t,ownerState:q},D,{children:(0,x.jsx)(L,(0,r.Z)({appear:!0,in:z,onEntering:(e,t)=>{$&&$(e,t),G()},timeout:X},B,{children:(0,x.jsx)(T,(0,r.Z)({elevation:O},j,{ref:_,className:(0,a.Z)(W.paper,j.className),children:y}))}))}))})),I=n(2734);function O(e){return(0,b.Z)("MuiMenu",e)}(0,y.Z)("MuiMenu",["root","paper","list"]);const N=["onEntering"],z=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],j={vertical:"top",horizontal:"right"},A={vertical:"top",horizontal:"left"},L=(0,u.ZP)(M,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F=(0,u.ZP)(l.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$=(0,u.ZP)(c.Z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var B=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiMenu"}),{autoFocus:c=!0,children:l,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:h,PaperProps:m={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:b}={},variant:y="selectedMenu"}=n,Z=(0,o.Z)(n.TransitionProps,N),w=(0,o.Z)(n,z),S=(0,I.Z)(),E="rtl"===S.direction,k=(0,r.Z)({},n,{autoFocus:c,disableAutoFocusItem:u,MenuListProps:p,onEntering:b,PaperProps:m,transitionDuration:g,TransitionProps:Z,variant:y}),R=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},O,t)})(k),C=c&&!u&&h,P=i.useRef(null);let T=-1;return i.Children.map(l,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===T)&&(T=t))})),(0,x.jsx)(L,(0,r.Z)({classes:v,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?j:A,PaperProps:(0,r.Z)({component:F},m,{classes:(0,r.Z)({},m.classes,{root:R.paper})}),className:R.root,open:h,ref:t,transitionDuration:g,TransitionProps:(0,r.Z)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,S),b&&b(e,t)}},Z),ownerState:k},w,{children:(0,x.jsx)($,(0,r.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:P,autoFocus:c&&(-1===T||u),autoFocusItem:C,variant:y},p,{className:(0,a.Z)(R.list,p.className),children:l}))}))}))},4118:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(8038)),s=n(8462),c=n(5806).Z,l=n(1705),u=n(8974),d=n(5893);const p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function h(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function v(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}var g=i.forwardRef((function(e,t){const{actions:n,autoFocus:g=!1,autoFocusItem:b=!1,children:y,className:Z,disabledItemsFocusable:x=!1,disableListWrap:w=!1,onKeyDown:S,variant:E="selectedMenu"}=e,k=(0,o.Z)(e,p),R=i.useRef(null),C=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.Z)((()=>{g&&R.current.focus()}),[g]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!R.current.style.width;if(e.clientHeight{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===E&&e.props.selected||-1===T)&&(T=t))}));const M=i.Children.map(y,((e,t)=>{if(t===T){const t={};return b&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===E&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,d.jsx)(s.Z,(0,r.Z)({role:"menu",ref:P,className:Z,onKeyDown:e=>{const t=R.current,n=e.key,r=(0,a.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),v(t,r,w,x,f);else if("ArrowUp"===n)e.preventDefault(),v(t,r,w,x,h);else if("Home"===n)e.preventDefault(),v(t,null,w,x,f);else if("End"===n)e.preventDefault(),v(t,null,w,x,h);else if(1===n.length){const o=C.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&m(r,o);o.previousKeyMatched&&(s||v(t,r,!1,x,f,o))?e.preventDefault():o.previousKeyMatched=!1}S&&S(e)},tabIndex:g?0:-1},k,{children:M}))}))},9964:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(67),l=n(7094),u=n(3633),d=n(9064),p=n(7192),f=n(8385),h=n(8290),m=n(5806);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function b(e,t,n,r=[],o){const i=[t,n,...r],a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(e=>{-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&v(e,o)}))}function y(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Z(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,l.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,m.Z)((0,l.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${g(r)+e}px`;const t=(0,l.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${g(t)+e}px`}))}const e=r.parentElement,t=(0,h.Z)(r),o="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===t.getComputedStyle(e).overflowY?e:r;n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}var x=n(2310),w=n(6087),S=n(8979);function E(e){return(0,S.Z)("MuiModal",e)}(0,w.Z)("MuiModal",["root","hidden"]);var k=n(5893);const R=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];const C=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);b(t,e.mount,e.modalRef,r,!0);const o=y(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Z(r,t))}remove(e){const t=this.modals.indexOf(e);if(-1===t)return t;const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&v(e.modalRef,!0),b(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&v(e.modalRef,!1)}return t}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var P=i.forwardRef((function(e,t){const{BackdropComponent:n,BackdropProps:h,children:m,classes:g,className:b,closeAfterTransition:y=!1,component:Z="div",components:w={},componentsProps:S={},container:P,disableAutoFocus:T=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:I=!1,disablePortal:O=!1,disableRestoreFocus:N=!1,disableScrollLock:z=!1,hideBackdrop:j=!1,keepMounted:A=!1,manager:L=C,onBackdropClick:F,onClose:$,onKeyDown:B,open:D,theme:V,onTransitionEnter:_,onTransitionExited:q}=e,W=(0,r.Z)(e,R),[U,H]=i.useState(!0),K=i.useRef({}),G=i.useRef(null),X=i.useRef(null),Y=(0,c.Z)(X,t),J=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),Q=()=>(K.current.modalRef=X.current,K.current.mountNode=G.current,K.current),ee=()=>{L.mount(Q(),{disableScrollLock:z}),X.current.scrollTop=0},te=(0,u.Z)((()=>{const e=function(e){return"function"===typeof e?e():e}(P)||(0,l.Z)(G.current).body;L.add(Q(),e),X.current&&ee()})),ne=i.useCallback((()=>L.isTopModal(Q())),[L]),re=(0,u.Z)((e=>{G.current=e,e&&(D&&ne()?ee():v(X.current,!0))})),oe=i.useCallback((()=>{L.remove(Q())}),[L]);i.useEffect((()=>()=>{oe()}),[oe]),i.useEffect((()=>{D?te():J&&y||oe()}),[D,oe,J,y,te]);const ie=(0,o.Z)({},e,{classes:g,closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:M,disableEscapeKeyDown:I,disablePortal:O,disableRestoreFocus:N,disableScrollLock:z,exited:U,hideBackdrop:j,keepMounted:A}),ae=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"]};return(0,p.Z)(o,E,r)})(ie);if(!A&&!D&&(!J||U))return null;const se=()=>{H(!1),_&&_()},ce=()=>{H(!0),q&&q(),y&&oe()},le={};void 0===m.props.tabIndex&&(le.tabIndex="-1"),J&&(le.onEnter=(0,d.Z)(se,m.props.onEnter),le.onExited=(0,d.Z)(ce,m.props.onExited));const ue=w.Root||Z,de=S.root||{};return(0,k.jsx)(f.Z,{ref:re,container:P,disablePortal:O,children:(0,k.jsxs)(ue,(0,o.Z)({role:"presentation"},de,!(0,a.Z)(ue)&&{as:Z,ownerState:(0,o.Z)({},ie,de.ownerState),theme:V},W,{ref:Y,onKeyDown:e=>{B&&B(e),"Escape"===e.key&&ne()&&(I||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},className:(0,s.Z)(ae.root,de.className,b),children:[!j&&n?(0,k.jsx)(n,(0,o.Z)({open:D,onClick:e=>{e.target===e.currentTarget&&(F&&F(e),$&&$(e,"backdropClick"))}},h)):null,(0,k.jsx)(x.Z,{disableEnforceFocus:M,disableAutoFocus:T,disableRestoreFocus:N,isEnabled:ne,open:D,children:i.cloneElement(m,le)})]}))})})),T=n(1496),M=n(3616),I=n(7227);const O=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],N=(0,T.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,o.Z)({position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),z=(0,T.ZP)(I.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var j=i.forwardRef((function(e,t){var n;const s=(0,M.Z)({name:"MuiModal",props:e}),{BackdropComponent:c=z,closeAfterTransition:l=!1,children:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:b=!1,hideBackdrop:y=!1,keepMounted:Z=!1}=s,x=(0,r.Z)(s,O),[w,S]=i.useState(!0),E={closeAfterTransition:l,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:g,disableScrollLock:b,hideBackdrop:y,keepMounted:Z},R=(e=>e.classes)((0,o.Z)({},s,E,{exited:w}));return(0,k.jsx)(P,(0,o.Z)({components:(0,o.Z)({Root:N},d),componentsProps:{root:(0,o.Z)({},p.root,(!d.Root||!(0,a.Z)(d.Root))&&{ownerState:(0,o.Z)({},null==(n=p.root)?void 0:n.ownerState)})},BackdropComponent:c,onTransitionEnter:()=>S(!1),onTransitionExited:()=>S(!0),ref:t},x,{classes:R},E,{children:u}))}))},5113:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(8979);function p(e){return(0,d.Z)("MuiPaper",e)}(0,n(6087).Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var f=n(5893);const h=["className","component","elevation","square","variant"],m=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},v=(0,l.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${e.palette.divider}`},"elevation"===t.variant&&(0,o.Z)({boxShadow:e.shadows[t.elevation]},"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,c.Fq)("#fff",m(t.elevation))}, ${(0,c.Fq)("#fff",m(t.elevation))})`}))));var g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiPaper"}),{className:i,component:c="div",elevation:l=1,square:d=!1,variant:m="elevation"}=n,g=(0,r.Z)(n,h),b=(0,o.Z)({},n,{component:c,elevation:l,square:d,variant:m}),y=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(i,p,o)})(b);return(0,f.jsx)(v,(0,o.Z)({as:c,ownerState:b,className:(0,a.Z)(y.root,i),ref:t},g))}))},2994:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiSvgIcon",e)}const i=(0,n(6087).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);t.Z=i},5861:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(9707),c=n(7192),l=n(1496),u=n(3616),d=n(8216),p=n(8979);function f(e){return(0,p.Z)("MuiTypography",e)}(0,n(6087).Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(5893);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],v=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTypography"}),i=(e=>b[e]||e)(n.color),l=(0,s.Z)((0,o.Z)({},n,{color:i})),{align:p="inherit",className:y,component:Z,gutterBottom:x=!1,noWrap:w=!1,paragraph:S=!1,variant:E="body1",variantMapping:k=g}=l,R=(0,r.Z)(l,m),C=(0,o.Z)({},l,{align:p,color:i,className:y,component:Z,gutterBottom:x,noWrap:w,paragraph:S,variant:E,variantMapping:k}),P=Z||(S?"p":k[E]||g[E])||"span",T=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,d.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,c.Z)(s,f,a)})(C);return(0,h.jsx)(v,(0,o.Z)({as:P,ref:t,ownerState:C,className:(0,a.Z)(T.root,y)},R))}))},1964:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8216),l=n(1496),u=n(9299),d=n(4423),p=n(7739),f=n(8979);function h(e){return(0,f.Z)("PrivateSwitchBase",e)}(0,n(6087).Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=n(5893);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.ZP)(p.Z)((({ownerState:e})=>(0,o.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),b=(0,l.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var y=i.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:l,className:p,defaultChecked:f,disabled:y,disableFocusRipple:Z=!1,edge:x=!1,icon:w,id:S,inputProps:E,inputRef:k,name:R,onBlur:C,onChange:P,onFocus:T,readOnly:M,required:I,tabIndex:O,type:N,value:z}=e,j=(0,r.Z)(e,v),[A,L]=(0,u.Z)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),F=(0,d.Z)();let $=y;F&&"undefined"===typeof $&&($=F.disabled);const B="checkbox"===N||"radio"===N,D=(0,o.Z)({},e,{checked:A,disabled:$,disableFocusRipple:Z,edge:x}),V=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,c.Z)(o)}`],input:["input"]};return(0,s.Z)(i,h,t)})(D);return(0,m.jsxs)(g,(0,o.Z)({component:"span",className:(0,a.Z)(V.root,p),centerRipple:!0,focusRipple:!Z,disabled:$,tabIndex:null,role:void 0,onFocus:e=>{T&&T(e),F&&F.onFocus&&F.onFocus(e)},onBlur:e=>{C&&C(e),F&&F.onBlur&&F.onBlur(e)},ownerState:D,ref:t},j,{children:[(0,m.jsx)(b,(0,o.Z)({autoFocus:n,checked:i,defaultChecked:f,className:V.input,disabled:$,id:B&&S,name:R,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),P&&P(e,t)},readOnly:M,ref:k,required:I,ownerState:D,tabIndex:O,type:N},"checkbox"===N&&void 0===z?{}:{value:z},E)),A?l:w]}))}))},247:function(e,t,n){"use strict";const r=(0,n(1265).Z)();t.Z=r},1496:function(e,t,n){"use strict";n.d(t,{ZP:function(){return w},FO:function(){return y},Dz:function(){return Z}});var r=n(7462),o=n(3366),i=n(561),a=n(6500),s=n(8320);const c=["variant"];function l(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,o.Z)(e,c);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?l(r)?e[t]:(0,s.Z)(e[t]):`${l(r)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),r}var d=n(6523);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],f=["theme"],h=["theme"];function m(e){return 0===Object.keys(e).length}function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,a.Z)();var b=n(247);const y=e=>v(e)&&"classes"!==e,Z=v,x=function(e={}){const{defaultTheme:t=g,rootShouldForwardProp:n=v,slotShouldForwardProp:a=v,styleFunctionSx:s=d.Z}=e;return(e,c={})=>{const{name:l,slot:d,skipVariantsResolver:g,skipSx:b,overridesResolver:y}=c,Z=(0,o.Z)(c,p),x=void 0!==g?g:d&&"Root"!==d||!1,w=b||!1;let S=v;"Root"===d?S=n:d&&(S=a);const E=(0,i.ZP)(e,(0,r.Z)({shouldForwardProp:S,label:undefined},Z)),k=(e,...n)=>{const i=n?n.map((e=>"function"===typeof e&&e.__emotion_real!==e?n=>{let{theme:i}=n,a=(0,o.Z)(n,f);return e((0,r.Z)({theme:m(i)?t:i},a))}:e)):[];let a=e;l&&y&&i.push((e=>{const n=m(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"===typeof r?r(e):r})),y(e,t)}return null})),l&&!x&&i.push((e=>{const n=m(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],c=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return c&&c.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r})(l,n),n,l)})),w||i.push((e=>{const n=m(e.theme)?t:e.theme;return s((0,r.Z)({},e,{theme:n}))}));const c=i.length-n.length;if(Array.isArray(e)&&c>0){const t=new Array(c).fill("");a=[...e,...t],a.raw=[...e.raw,...t]}else"function"===typeof e&&(a=n=>{let{theme:i}=n,a=(0,o.Z)(n,h);return e((0,r.Z)({theme:m(i)?t:i},a))});return E(a,...i)};return E.withConfig&&(k.withConfig=E.withConfig),k}}({defaultTheme:b.Z,rootShouldForwardProp:y});var w=x},2734:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(7294);var r=n(6682),o=n(247);function i(){return(0,r.Z)(o.Z)}},3616:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(539),o=n(6682);var i=n(247);function a({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){const i=(0,o.Z)(n);return(0,r.Z)({theme:i,name:t,props:e})}({props:e,name:t,defaultTheme:i.Z})}},577:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return o}});const r=e=>e.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}},8216:function(e,t,n){"use strict";var r=n(8320);t.Z=r.Z},7892:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(7294),i=n(3366),a=n(6010),s=n(7192),c=n(8216),l=n(3616),u=n(1496),d=n(2994),p=n(5893);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,c.Z)(n.color)}`],t[`fontSize${(0,c.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,d,p,f,h,m,v,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(c=e.typography)||null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(p=null==(f=e.palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=e.palette)||null==(v=m.action)?void 0:v.active,disabled:null==(g=e.palette)||null==(b=g.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),m=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:m="inherit",component:v="svg",fontSize:g="medium",htmlColor:b,inheritViewBox:y=!1,titleAccess:Z,viewBox:x="0 0 24 24"}=n,w=(0,i.Z)(n,f),S=(0,r.Z)({},n,{color:m,component:v,fontSize:g,inheritViewBox:y,viewBox:x}),E={};y||(E.viewBox=x);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,c.Z)(t)}`,`fontSize${(0,c.Z)(n)}`]};return(0,s.Z)(o,d.h,r)})(S);return(0,p.jsxs)(h,(0,r.Z)({as:v,className:(0,a.Z)(k.root,u),ownerState:S,focusable:"false",color:b,"aria-hidden":!Z||void 0,role:Z?"img":void 0,ref:t},E,w,{children:[o,Z?(0,p.jsx)("title",{children:Z}):null]}))}));m.muiName="SvgIcon";var v=m;function g(e,t){const n=(n,o)=>(0,p.jsx)(v,(0,r.Z)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=v.muiName,o.memo(o.forwardRef(n))}},7144:function(e,t,n){"use strict";var r=n(7596);t.Z=r.Z},1579:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);var o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8038:function(e,t,n){"use strict";var r=n(7094);t.Z=r.Z},5340:function(e,t,n){"use strict";var r=n(8290);t.Z=r.Z},9299:function(e,t,n){"use strict";var r=n(8925);t.Z=r.Z},8974:function(e,t,n){"use strict";var r=n(6600);t.Z=r.Z},2068:function(e,t,n){"use strict";var r=n(3633);t.Z=r.Z},1705:function(e,t,n){"use strict";var r=n(67);t.Z=r.Z},8791:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7294);let o,i=!0,a=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function l(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var p=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("touchstart",l,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},561:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x}});var r=n(7294),o=n.t(r,2),i=n(7462),a=n(7866),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,a.Z)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(4880),u=n(444),d=n(3772),p=c,f=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},v=o.useInsertionEffect?o.useInsertionEffect:function(e){e()};var g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);v((function(){return(0,u.My)(t,n,r)}));return null},b=function e(t,n){var o,a,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var p=m(t,n,s),f=p||h(c),v=!f("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var Z=b.length,x=1;x(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},a=n(8700),s=n(5408);function c(e){return"number"!==typeof e?e:`${e}px solid`}const l=(0,r.Z)({prop:"border",themeKey:"borders",transform:c}),u=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:c}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:c}),p=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:c}),f=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:c}),h=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),m=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),g=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),y=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,a.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,a.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};y.propTypes={},y.filterProps=["borderRadius"];var Z=i(l,u,d,p,f,h,m,v,g,b,y);var x=i((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"}));var w=i((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"}));const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,a.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const E=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,a.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};E.propTypes={},E.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,a.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];var R=i(S,E,k,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"}));var C=i((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"}));var P=i((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"}));var T=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function M(e){return e<=1&&0!==e?100*e+"%":e}const I=(0,r.Z)({prop:"width",transform:M}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||M(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const N=(0,r.Z)({prop:"minWidth",transform:M}),z=(0,r.Z)({prop:"height",transform:M}),j=(0,r.Z)({prop:"maxHeight",transform:M}),A=(0,r.Z)({prop:"minHeight",transform:M});(0,r.Z)({prop:"size",cssProperty:"width",transform:M}),(0,r.Z)({prop:"size",cssProperty:"height",transform:M});var L=i(I,O,N,z,j,A,(0,r.Z)({prop:"boxSizing"}));const F=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),$=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),B=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),D=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),V=(0,r.Z)({prop:"letterSpacing"}),_=(0,r.Z)({prop:"textTransform"}),q=(0,r.Z)({prop:"lineHeight"}),W=(0,r.Z)({prop:"textAlign"});var U=i((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),F,$,B,D,V,q,W,_);const H={borders:Z.filterProps,display:x.filterProps,flexbox:w.filterProps,grid:R.filterProps,positions:C.filterProps,palette:P.filterProps,shadows:T.filterProps,sizing:L.filterProps,spacing:a.ZP.filterProps,typography:U.filterProps},K={borders:Z,display:x,flexbox:w,grid:R,positions:C,palette:P,shadows:T,sizing:L,spacing:a.ZP,typography:U},G=Object.keys(H).reduce(((e,t)=>(H[t].forEach((n=>{e[n]=K[t]})),e)),{})},9707:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=n(3366),i=n(9766),a=n(8528);const s=["sx"];function c(e){const{sx:t}=e,n=(0,o.Z)(e,s),{systemProps:c,otherProps:l}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{a.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let u;return u=Array.isArray(t)?[c,...t]:"function"===typeof t?(...e)=>{const n=t(...e);return(0,i.P)(n)?(0,r.Z)({},c,n):c}:(0,r.Z)({},c,t),(0,r.Z)({},l,{sx:u})}},6523:function(e,t,n){"use strict";var r=n(7730),o=n(8528),i=n(5408);const a=function(e=o.G$){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(o){const{sx:a,theme:s={}}=o||{};if(!a)return null;function c(o){let a=o;if("function"===typeof o)a=o(s);else if("object"!==typeof o)return o;if(!a)return null;const c=(0,i.W8)(s.breakpoints),l=Object.keys(c);let u=c;return Object.keys(a).forEach((o=>{const c=(l=a[o],d=s,"function"===typeof l?l(d):l);var l,d;if(null!==c&&void 0!==c)if("object"===typeof c)if(t[o])u=(0,r.Z)(u,n(o,c,s));else{const t=(0,i.k9)({theme:s},c,(e=>({[o]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(t,c)?u=(0,r.Z)(u,t):u[o]=e({sx:c,theme:s})}else u=(0,r.Z)(u,n(o,c,s))})),(0,i.L7)(l,u)}return Array.isArray(a)?a.map(c):c(a)}}();a.filterProps=["sx"],t.Z=a},539:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7925);function o(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},9064:function(e,t,n){"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:function(){return r}})},7596:function(e,t,n){"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{Z:function(){return r}})},5806:function(e,t,n){"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:function(){return r}})},7094:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},8290:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7094);function o(e){return(0,r.Z)(e).defaultView||window}},7925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},7960:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);function o({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[i?e:a,r.useCallback((e=>{i||s(e)}),[])]}},6600:function(e,t,n){"use strict";var r=n(7294);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},3633:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(6600);function i(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},67:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7960);function i(e,t){return r.useMemo((()=>null==e&&null==t?null:n=>{(0,o.Z)(e,n),(0,o.Z)(t,n)}),[e,t])}},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),l=n(7985),u=n(5061),d=n(5655),p=n(5263);e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",Z=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+Z)}var x=s(e.baseURL,e.url);function w(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(n(u("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(u("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(n(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),b.send(h)}))}},1609:function(e,t,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5655));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:function(e,t,n){"use strict";var r=n(5263);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(s)})),e.exports=l},7288:function(e){e.exports={version:"0.24.0"}},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:function(e,t,n){"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:function(e,t,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return u(r)}},5068:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return o}})},8100:function(e,t,n){"use strict";n.d(t,{ZP:function(){return X}});var r=n(7294);function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:function(e,t){return g(e)==g(t)},isPaused:function(){return!1},cache:D,mutate:V,fallback:{}},k),q=function(e,t){var n=p(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=p(o,a))}return n},W=(0,r.createContext)({}),U=function(e){return d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},H=function(){return p(_,(0,r.useContext)(W))},K=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G={dedupe:!0},X=(l.defineProperty((function(e){var t=e.value,n=q((0,r.useContext)(W),t),o=t&&t.provider,i=(0,r.useState)((function(){return o?$(o(n.cache||D),t):c}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),T((function(){return i?i[2]:c}),[]),(0,r.createElement)(W.Provider,p(e,{value:n}))}),"default",{value:_}),a=function(e,t,n){var a=n.cache,s=n.compare,l=n.fallbackData,f=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,v=n.refreshWhenHidden,g=n.refreshWhenOffline,b=N.get(a),y=b[0],Z=b[1],x=b[2],w=b[3],S=O(e),E=S[0],k=S[1],R=S[2],M=(0,r.useRef)(!1),I=(0,r.useRef)(!1),j=(0,r.useRef)(E),F=(0,r.useRef)(t),$=(0,r.useRef)(n),B=function(){return $.current},D=function(){return B().isVisible()&&B().isOnline()},V=function(e){return a.set(R,p(a.get(R),e))},_=a.get(E),q=u(l)?n.fallback[E]:l,W=u(_)?q:_,U=a.get(R)||{},H=U.error,X=!M.current,Y=function(){return X&&!u(h)?h:!B().isPaused()&&(f?!u(W):u(W)||n.revalidateIfStale)},J=!(!E||!t)&&(!!U.isValidating||X&&Y()),Q=function(e,t){var n=(0,r.useState)({})[1],o=(0,r.useRef)(e),i=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,r.useCallback)((function(e){var r=!1,a=o.current;for(var s in e){var c=s;a[c]!==e[c]&&(a[c]=e[c],i.current[c]&&(r=!0))}r&&!t.current&&n({})}),[]);return T((function(){o.current=e})),[o,i.current,a]}({data:W,error:H,isValidating:J},I),ee=Q[0],te=Q[1],ne=Q[2],re=(0,r.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,r,o,l,p,f,h,m,v,g,b,y,Z;return i(this,(function(i){switch(i.label){case 0:if(t=F.current,!E||!t||I.current||B().isPaused())return[2,!1];l=!0,p=e||{},f=!w[E]||!p.dedupe,h=function(){return!I.current&&E===j.current&&M.current},m=function(){var e=w[E];e&&e[1]===o&&delete w[E]},v={isValidating:!1},g=function(){V({isValidating:!1}),h()&&ne(v)},V({isValidating:!0}),ne({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),f&&(z(a,E,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!a.get(E)&&setTimeout((function(){l&&h()&&B().onLoadingSlow(E,n)}),n.loadingTimeout),w[E]=[t.apply(void 0,k),A()]),Z=w[E],r=Z[0],o=Z[1],[4,r];case 2:return r=i.sent(),f&&setTimeout(m,n.dedupingInterval),w[E]&&w[E][1]===o?(V({error:c}),v.error=c,b=x[E],!u(b)&&(o<=b[0]||o<=b[1]||0===b[1])?(g(),f&&h()&&B().onDiscarded(E),[2,!1]):(s(ee.current.data,r)?v.data=ee.current.data:v.data=r,s(a.get(E),r)||a.set(E,r),f&&h()&&B().onSuccess(r,E,n),[3,4])):(f&&h()&&B().onDiscarded(E),[2,!1]);case 3:return y=i.sent(),m(),B().isPaused()||(V({error:y}),v.error=y,f&&h()&&(B().onError(y,E,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||d(n.shouldRetryOnError)&&n.shouldRetryOnError(y))&&D()&&B().onErrorRetry(y,E,n,re,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,g(),h()&&f&&z(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,r.useCallback)(L.bind(c,a,(function(){return j.current})),[]);if(T((function(){F.current=t,$.current=n})),T((function(){if(E){var e=E!==j.current,t=re.bind(c,G),n=0,r=K(E,Z,(function(e,t,n){ne(p({error:t,isValidating:n},s(ee.current.data,e)?c:{data:e}))})),o=K(E,y,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&D()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&D()&&t();else if(2==e)return re()}));return I.current=!1,j.current=E,M.current=!0,e&&ne({data:W,error:H,isValidating:J}),Y()&&(u(W)||C?t():P(t)),function(){I.current=!0,r(),o()}}}),[E,re]),T((function(){var e;function t(){var t=d(m)?m(W):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!v&&!B().isVisible()||!g&&!B().isOnline()?t():re(G).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,v,g,re]),(0,r.useDebugValue)(W),f&&u(W)&&E)throw F.current=t,$.current=n,I.current=!1,u(H)?re(G):H;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,H},get isValidating(){return te.isValidating=!0,J}}},function(){for(var e=[],t=0;t0;)l=u[d](l);return l(o,i||c.fetcher,c)})}}]); \ No newline at end of file + `),k))),O=i.forwardRef((function(e,t){const n=(0,f.Z)({props:e,name:"MuiLinearProgress"}),{className:i,color:c="primary",value:l,valueBuffer:p,variant:g="indeterminate"}=n,b=(0,r.Z)(n,v),y=(0,o.Z)({},n,{color:c,variant:g}),Z=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,u.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,u.Z)(r)}`],bar1:["bar",`barColor${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,u.Z)(r)}`,"buffer"===n&&`color${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,s.Z)(o,h.E,t)})(y),x=(0,d.Z)(),w={},S={bar1:{},bar2:{}};if("determinate"===g||"buffer"===g)if(void 0!==l){w["aria-valuenow"]=Math.round(l),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let e=l-100;"rtl"===x.direction&&(e=-e),S.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===g)if(void 0!==p){let e=(p||0)-100;"rtl"===x.direction&&(e=-e),S.bar2.transform=`translateX(${e}%)`}else 0;return(0,m.jsxs)(P,(0,o.Z)({className:(0,a.Z)(Z.root,i),ownerState:y,role:"progressbar"},w,{ref:t},b,{children:["buffer"===g?(0,m.jsx)(T,{className:Z.dashed,ownerState:y}):null,(0,m.jsx)(M,{className:Z.bar1,ownerState:y,style:S.bar1}),"determinate"===g?null:(0,m.jsx)(I,{className:Z.bar2,ownerState:y,style:S.bar2})]}))}));t.Z=O},8962:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiLinearProgress",e)}const i=(0,n(6087).Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);t.Z=i},8462:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(9773),d=n(8979);function p(e){return(0,d.Z)("MuiList",e)}(0,n(6087).Z)("MuiList",["root","padding","dense","subheader"]);var f=n(5893);const h=["children","className","component","dense","disablePadding","subheader"],m=(0,c.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var v=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiList"}),{children:c,className:d,component:v="ul",dense:g=!1,disablePadding:b=!1,subheader:y}=n,Z=(0,r.Z)(n,h),x=i.useMemo((()=>({dense:g})),[g]),w=(0,o.Z)({},n,{component:v,dense:g,disablePadding:b}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,s.Z)(i,p,t)})(w);return(0,f.jsx)(u.Z.Provider,{value:x,children:(0,f.jsxs)(m,(0,o.Z)({as:v,className:(0,a.Z)(S.root,d),ref:t,ownerState:w},Z,{children:[y,c]}))})}))},9773:function(e,t,n){"use strict";const r=n(7294).createContext({});t.Z=r},7212:function(e,t,n){"use strict";n.d(t,{ZP:function(){return O}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8442),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(1579),h=n(8974),m=n(1705),v=n(9773),g=n(8979),b=n(6087);function y(e){return(0,g.Z)("MuiListItem",e)}var Z=(0,b.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),x=n(8686);function w(e){return(0,g.Z)("MuiListItemSecondaryAction",e)}(0,b.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(5893);const E=["className"],k=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,o.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),R=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:c}=n,l=(0,r.Z)(n,E),u=i.useContext(v.Z),p=(0,o.Z)({},n,{disableGutters:u.disableGutters}),f=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.Z)(r,w,n)})(p);return(0,S.jsx)(k,(0,o.Z)({className:(0,a.Z)(f.root,c),ownerState:p,ref:t},l))}));R.muiName="ListItemSecondaryAction";var C=R;const P=["className"],T=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],M=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,o.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${x.Z.root}`]:{paddingRight:48}},{[`&.${Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${Z.selected}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Z.focusVisible}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Z.selected}:hover`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),I=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var O=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:g=!1,children:b,className:x,component:w,components:E={},componentsProps:k={},ContainerComponent:R="li",ContainerProps:{className:O}={},dense:z=!1,disabled:N=!1,disableGutters:j=!1,disablePadding:A=!1,divider:L=!1,focusVisibleClassName:F,secondaryAction:$,selected:B=!1}=n,D=(0,r.Z)(n.ContainerProps,P),V=(0,r.Z)(n,T),_=i.useContext(v.Z),q={dense:z||_.dense||!1,alignItems:l,disableGutters:j},W=i.useRef(null);(0,h.Z)((()=>{u&&W.current&&W.current.focus()}),[u]);const U=i.Children.toArray(b),H=U.length&&(0,f.Z)(U[U.length-1],["ListItemSecondaryAction"]),K=(0,o.Z)({},n,{alignItems:l,autoFocus:u,button:g,dense:q.dense,disabled:N,disableGutters:j,disablePadding:A,divider:L,hasSecondaryAction:H,selected:B}),G=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:c,divider:l,hasSecondaryAction:u,selected:d}=e,p={root:["root",o&&"dense",!a&&"gutters",!c&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,y,r)})(K),X=(0,m.Z)(W,t),Y=E.Root||M,J=k.root||{},Q=(0,o.Z)({className:(0,a.Z)(G.root,J.className,x),disabled:N},V);let ee=w||"li";return g&&(Q.component=w||"div",Q.focusVisibleClassName=(0,a.Z)(Z.focusVisible,F),ee=p.Z),H?(ee=Q.component||w?ee:"div","li"===R&&("li"===ee?ee="div":"li"===Q.component&&(Q.component="div")),(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(I,(0,o.Z)({as:R,className:(0,a.Z)(G.container,O),ref:X,ownerState:K},D,{children:[(0,S.jsx)(Y,(0,o.Z)({},J,!(0,c.Z)(Y)&&{as:ee,ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:U})),U.pop()]}))})):(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(Y,(0,o.Z)({},J,{as:ee,ref:X,ownerState:K},!(0,c.Z)(Y)&&{ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:[U,$&&(0,S.jsx)(C,{children:$})]}))})}))},8619:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8974),f=n(1705),h=n(9773),m=n(8686),v=n(5893);const g=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],b=(0,l.ZP)(d.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.Z.selected}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${m.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${m.Z.selected}:hover`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${m.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${m.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiListItemButton"}),{alignItems:c="center",autoFocus:l=!1,component:d="div",children:y,dense:Z=!1,disableGutters:x=!1,divider:w=!1,focusVisibleClassName:S,selected:E=!1}=n,k=(0,r.Z)(n,g),R=i.useContext(h.Z),C={dense:Z||R.dense||!1,alignItems:c,disableGutters:x},P=i.useRef(null);(0,p.Z)((()=>{l&&P.current&&P.current.focus()}),[l]);const T=(0,o.Z)({},n,{alignItems:c,dense:C.dense,disableGutters:x,divider:w,selected:E}),M=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:c,selected:l}=e,u={root:["root",r&&"dense",!a&&"gutters",c&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},d=(0,s.Z)(u,m.t,n);return(0,o.Z)({},n,d)})(T),I=(0,f.Z)(P,t);return(0,v.jsx)(h.Z.Provider,{value:C,children:(0,v.jsx)(b,(0,o.Z)({ref:I,component:d,focusVisibleClassName:(0,a.Z)(M.focusVisible,S),ownerState:T},k,{classes:M,children:y}))})}));t.Z=y},8686:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemButton",e)}const i=(0,n(6087).Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=i},7594:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(4592),d=n(9773),p=n(5893);const f=["className"],h=(0,c.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,o.Z)({minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),m=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiListItemIcon"}),{className:c}=n,m=(0,r.Z)(n,f),v=i.useContext(d.Z),g=(0,o.Z)({},n,{alignItems:v.alignItems}),b=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(r,u.f,n)})(g);return(0,p.jsx)(h,(0,o.Z)({className:(0,a.Z)(b.root,c),ownerState:g,ref:t},m))}));t.Z=m},4592:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemIcon",e)}const i=(0,n(6087).Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=i},8333:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(6010)),s=n(7192),c=n(4118),l=n(5113),u=n(1496),d=n(3616),p=n(7144),f=n(8038),h=n(5340),m=n(1705),v=n(6514),g=n(9964),b=n(8979),y=n(6087);function Z(e){return(0,b.Z)("MuiPopover",e)}(0,y.Z)("MuiPopover",["root","paper"]);var x=n(5893);const w=["onEntering"],S=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function E(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function k(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function R(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function C(e){return"function"===typeof e?e():e}const P=(0,u.ZP)(g.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T=(0,u.ZP)(l.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var M=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiPopover"}),{action:c,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:b="anchorEl",children:y,className:M,container:I,elevation:O=8,marginThreshold:z=16,open:N,PaperProps:j={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:L=v.Z,transitionDuration:F="auto",TransitionProps:{onEntering:$}={}}=n,B=(0,o.Z)(n.TransitionProps,w),D=(0,o.Z)(n,S),V=i.useRef(),_=(0,m.Z)(V,j.ref),q=(0,r.Z)({},n,{anchorOrigin:u,anchorReference:b,elevation:O,marginThreshold:z,PaperProps:j,transformOrigin:A,TransitionComponent:L,transitionDuration:F,TransitionProps:B}),W=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},Z,t)})(q),U=i.useCallback((()=>{if("anchorPosition"===b)return g;const e=C(l),t=(e&&1===e.nodeType?e:(0,f.Z)(V.current).body).getBoundingClientRect();return{top:t.top+E(t,u.vertical),left:t.left+k(t,u.horizontal)}}),[l,u.horizontal,u.vertical,g,b]),H=i.useCallback((e=>({vertical:E(e,A.vertical),horizontal:k(e,A.horizontal)})),[A.horizontal,A.vertical]),K=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=H(t);if("none"===b)return{top:null,left:null,transformOrigin:R(n)};const r=U();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=(0,h.Z)(C(l)),u=c.innerHeight-z,d=c.innerWidth-z;if(ou){const e=a-u;o-=e,n.vertical+=e}if(id){const e=s-d;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:R(n)}}),[l,b,U,H,z]),G=i.useCallback((()=>{const e=V.current;if(!e)return;const t=K(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[K]);i.useEffect((()=>{N&&G()})),i.useImperativeHandle(c,(()=>N?{updatePosition:()=>{G()}}:null),[N,G]),i.useEffect((()=>{if(!N)return;const e=(0,p.Z)((()=>{G()})),t=(0,h.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,N,G]);let X=F;"auto"!==F||L.muiSupportAuto||(X=void 0);const Y=I||(l?(0,f.Z)(C(l)).body:void 0);return(0,x.jsx)(P,(0,r.Z)({BackdropProps:{invisible:!0},className:(0,a.Z)(W.root,M),container:Y,open:N,ref:t,ownerState:q},D,{children:(0,x.jsx)(L,(0,r.Z)({appear:!0,in:N,onEntering:(e,t)=>{$&&$(e,t),G()},timeout:X},B,{children:(0,x.jsx)(T,(0,r.Z)({elevation:O},j,{ref:_,className:(0,a.Z)(W.paper,j.className),children:y}))}))}))})),I=n(2734);function O(e){return(0,b.Z)("MuiMenu",e)}(0,y.Z)("MuiMenu",["root","paper","list"]);const z=["onEntering"],N=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],j={vertical:"top",horizontal:"right"},A={vertical:"top",horizontal:"left"},L=(0,u.ZP)(M,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F=(0,u.ZP)(l.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$=(0,u.ZP)(c.Z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var B=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiMenu"}),{autoFocus:c=!0,children:l,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:h,PaperProps:m={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:b}={},variant:y="selectedMenu"}=n,Z=(0,o.Z)(n.TransitionProps,z),w=(0,o.Z)(n,N),S=(0,I.Z)(),E="rtl"===S.direction,k=(0,r.Z)({},n,{autoFocus:c,disableAutoFocusItem:u,MenuListProps:p,onEntering:b,PaperProps:m,transitionDuration:g,TransitionProps:Z,variant:y}),R=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},O,t)})(k),C=c&&!u&&h,P=i.useRef(null);let T=-1;return i.Children.map(l,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===T)&&(T=t))})),(0,x.jsx)(L,(0,r.Z)({classes:v,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?j:A,PaperProps:(0,r.Z)({component:F},m,{classes:(0,r.Z)({},m.classes,{root:R.paper})}),className:R.root,open:h,ref:t,transitionDuration:g,TransitionProps:(0,r.Z)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,S),b&&b(e,t)}},Z),ownerState:k},w,{children:(0,x.jsx)($,(0,r.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:P,autoFocus:c&&(-1===T||u),autoFocusItem:C,variant:y},p,{className:(0,a.Z)(R.list,p.className),children:l}))}))}))},4118:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(8038)),s=n(8462),c=n(5806).Z,l=n(1705),u=n(8974),d=n(5893);const p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function h(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function v(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}var g=i.forwardRef((function(e,t){const{actions:n,autoFocus:g=!1,autoFocusItem:b=!1,children:y,className:Z,disabledItemsFocusable:x=!1,disableListWrap:w=!1,onKeyDown:S,variant:E="selectedMenu"}=e,k=(0,o.Z)(e,p),R=i.useRef(null),C=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.Z)((()=>{g&&R.current.focus()}),[g]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!R.current.style.width;if(e.clientHeight{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===E&&e.props.selected||-1===T)&&(T=t))}));const M=i.Children.map(y,((e,t)=>{if(t===T){const t={};return b&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===E&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,d.jsx)(s.Z,(0,r.Z)({role:"menu",ref:P,className:Z,onKeyDown:e=>{const t=R.current,n=e.key,r=(0,a.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),v(t,r,w,x,f);else if("ArrowUp"===n)e.preventDefault(),v(t,r,w,x,h);else if("Home"===n)e.preventDefault(),v(t,null,w,x,f);else if("End"===n)e.preventDefault(),v(t,null,w,x,h);else if(1===n.length){const o=C.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&m(r,o);o.previousKeyMatched&&(s||v(t,r,!1,x,f,o))?e.preventDefault():o.previousKeyMatched=!1}S&&S(e)},tabIndex:g?0:-1},k,{children:M}))}))},9964:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(67),l=n(7094),u=n(3633),d=n(9064),p=n(7192),f=n(8385),h=n(8290),m=n(5806);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function b(e,t,n,r=[],o){const i=[t,n,...r],a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(e=>{-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&v(e,o)}))}function y(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Z(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,l.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,m.Z)((0,l.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${g(r)+e}px`;const t=(0,l.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${g(t)+e}px`}))}const e=r.parentElement,t=(0,h.Z)(r),o="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===t.getComputedStyle(e).overflowY?e:r;n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}var x=n(2310),w=n(6087),S=n(8979);function E(e){return(0,S.Z)("MuiModal",e)}(0,w.Z)("MuiModal",["root","hidden"]);var k=n(5893);const R=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];const C=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);b(t,e.mount,e.modalRef,r,!0);const o=y(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Z(r,t))}remove(e){const t=this.modals.indexOf(e);if(-1===t)return t;const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&v(e.modalRef,!0),b(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&v(e.modalRef,!1)}return t}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var P=i.forwardRef((function(e,t){const{BackdropComponent:n,BackdropProps:h,children:m,classes:g,className:b,closeAfterTransition:y=!1,component:Z="div",components:w={},componentsProps:S={},container:P,disableAutoFocus:T=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:I=!1,disablePortal:O=!1,disableRestoreFocus:z=!1,disableScrollLock:N=!1,hideBackdrop:j=!1,keepMounted:A=!1,manager:L=C,onBackdropClick:F,onClose:$,onKeyDown:B,open:D,theme:V,onTransitionEnter:_,onTransitionExited:q}=e,W=(0,r.Z)(e,R),[U,H]=i.useState(!0),K=i.useRef({}),G=i.useRef(null),X=i.useRef(null),Y=(0,c.Z)(X,t),J=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),Q=()=>(K.current.modalRef=X.current,K.current.mountNode=G.current,K.current),ee=()=>{L.mount(Q(),{disableScrollLock:N}),X.current.scrollTop=0},te=(0,u.Z)((()=>{const e=function(e){return"function"===typeof e?e():e}(P)||(0,l.Z)(G.current).body;L.add(Q(),e),X.current&&ee()})),ne=i.useCallback((()=>L.isTopModal(Q())),[L]),re=(0,u.Z)((e=>{G.current=e,e&&(D&&ne()?ee():v(X.current,!0))})),oe=i.useCallback((()=>{L.remove(Q())}),[L]);i.useEffect((()=>()=>{oe()}),[oe]),i.useEffect((()=>{D?te():J&&y||oe()}),[D,oe,J,y,te]);const ie=(0,o.Z)({},e,{classes:g,closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:M,disableEscapeKeyDown:I,disablePortal:O,disableRestoreFocus:z,disableScrollLock:N,exited:U,hideBackdrop:j,keepMounted:A}),ae=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"]};return(0,p.Z)(o,E,r)})(ie);if(!A&&!D&&(!J||U))return null;const se=()=>{H(!1),_&&_()},ce=()=>{H(!0),q&&q(),y&&oe()},le={};void 0===m.props.tabIndex&&(le.tabIndex="-1"),J&&(le.onEnter=(0,d.Z)(se,m.props.onEnter),le.onExited=(0,d.Z)(ce,m.props.onExited));const ue=w.Root||Z,de=S.root||{};return(0,k.jsx)(f.Z,{ref:re,container:P,disablePortal:O,children:(0,k.jsxs)(ue,(0,o.Z)({role:"presentation"},de,!(0,a.Z)(ue)&&{as:Z,ownerState:(0,o.Z)({},ie,de.ownerState),theme:V},W,{ref:Y,onKeyDown:e=>{B&&B(e),"Escape"===e.key&&ne()&&(I||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},className:(0,s.Z)(ae.root,de.className,b),children:[!j&&n?(0,k.jsx)(n,(0,o.Z)({open:D,onClick:e=>{e.target===e.currentTarget&&(F&&F(e),$&&$(e,"backdropClick"))}},h)):null,(0,k.jsx)(x.Z,{disableEnforceFocus:M,disableAutoFocus:T,disableRestoreFocus:z,isEnabled:ne,open:D,children:i.cloneElement(m,le)})]}))})})),T=n(1496),M=n(3616),I=n(7227);const O=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],z=(0,T.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,o.Z)({position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),N=(0,T.ZP)(I.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var j=i.forwardRef((function(e,t){var n;const s=(0,M.Z)({name:"MuiModal",props:e}),{BackdropComponent:c=N,closeAfterTransition:l=!1,children:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:b=!1,hideBackdrop:y=!1,keepMounted:Z=!1}=s,x=(0,r.Z)(s,O),[w,S]=i.useState(!0),E={closeAfterTransition:l,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:g,disableScrollLock:b,hideBackdrop:y,keepMounted:Z},R=(e=>e.classes)((0,o.Z)({},s,E,{exited:w}));return(0,k.jsx)(P,(0,o.Z)({components:(0,o.Z)({Root:z},d),componentsProps:{root:(0,o.Z)({},p.root,(!d.Root||!(0,a.Z)(d.Root))&&{ownerState:(0,o.Z)({},null==(n=p.root)?void 0:n.ownerState)})},BackdropComponent:c,onTransitionEnter:()=>S(!1),onTransitionExited:()=>S(!0),ref:t},x,{classes:R},E,{children:u}))}))},5113:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(8979);function p(e){return(0,d.Z)("MuiPaper",e)}(0,n(6087).Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var f=n(5893);const h=["className","component","elevation","square","variant"],m=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},v=(0,l.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${e.palette.divider}`},"elevation"===t.variant&&(0,o.Z)({boxShadow:e.shadows[t.elevation]},"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,c.Fq)("#fff",m(t.elevation))}, ${(0,c.Fq)("#fff",m(t.elevation))})`}))));var g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiPaper"}),{className:i,component:c="div",elevation:l=1,square:d=!1,variant:m="elevation"}=n,g=(0,r.Z)(n,h),b=(0,o.Z)({},n,{component:c,elevation:l,square:d,variant:m}),y=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(i,p,o)})(b);return(0,f.jsx)(v,(0,o.Z)({as:c,ownerState:b,className:(0,a.Z)(y.root,i),ref:t},g))}))},2994:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiSvgIcon",e)}const i=(0,n(6087).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);t.Z=i},5861:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(9707),c=n(7192),l=n(1496),u=n(3616),d=n(8216),p=n(8979);function f(e){return(0,p.Z)("MuiTypography",e)}(0,n(6087).Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(5893);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],v=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTypography"}),i=(e=>b[e]||e)(n.color),l=(0,s.Z)((0,o.Z)({},n,{color:i})),{align:p="inherit",className:y,component:Z,gutterBottom:x=!1,noWrap:w=!1,paragraph:S=!1,variant:E="body1",variantMapping:k=g}=l,R=(0,r.Z)(l,m),C=(0,o.Z)({},l,{align:p,color:i,className:y,component:Z,gutterBottom:x,noWrap:w,paragraph:S,variant:E,variantMapping:k}),P=Z||(S?"p":k[E]||g[E])||"span",T=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,d.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,c.Z)(s,f,a)})(C);return(0,h.jsx)(v,(0,o.Z)({as:P,ref:t,ownerState:C,className:(0,a.Z)(T.root,y)},R))}))},1964:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8216),l=n(1496),u=n(9299),d=n(4423),p=n(7739),f=n(8979);function h(e){return(0,f.Z)("PrivateSwitchBase",e)}(0,n(6087).Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=n(5893);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.ZP)(p.Z)((({ownerState:e})=>(0,o.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),b=(0,l.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var y=i.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:l,className:p,defaultChecked:f,disabled:y,disableFocusRipple:Z=!1,edge:x=!1,icon:w,id:S,inputProps:E,inputRef:k,name:R,onBlur:C,onChange:P,onFocus:T,readOnly:M,required:I,tabIndex:O,type:z,value:N}=e,j=(0,r.Z)(e,v),[A,L]=(0,u.Z)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),F=(0,d.Z)();let $=y;F&&"undefined"===typeof $&&($=F.disabled);const B="checkbox"===z||"radio"===z,D=(0,o.Z)({},e,{checked:A,disabled:$,disableFocusRipple:Z,edge:x}),V=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,c.Z)(o)}`],input:["input"]};return(0,s.Z)(i,h,t)})(D);return(0,m.jsxs)(g,(0,o.Z)({component:"span",className:(0,a.Z)(V.root,p),centerRipple:!0,focusRipple:!Z,disabled:$,tabIndex:null,role:void 0,onFocus:e=>{T&&T(e),F&&F.onFocus&&F.onFocus(e)},onBlur:e=>{C&&C(e),F&&F.onBlur&&F.onBlur(e)},ownerState:D,ref:t},j,{children:[(0,m.jsx)(b,(0,o.Z)({autoFocus:n,checked:i,defaultChecked:f,className:V.input,disabled:$,id:B&&S,name:R,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),P&&P(e,t)},readOnly:M,ref:k,required:I,ownerState:D,tabIndex:O,type:z},"checkbox"===z&&void 0===N?{}:{value:N},E)),A?l:w]}))}))},247:function(e,t,n){"use strict";const r=(0,n(1265).Z)();t.Z=r},1496:function(e,t,n){"use strict";n.d(t,{ZP:function(){return w},FO:function(){return y},Dz:function(){return Z}});var r=n(7462),o=n(3366),i=n(561),a=n(6500),s=n(8320);const c=["variant"];function l(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,o.Z)(e,c);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?l(r)?e[t]:(0,s.Z)(e[t]):`${l(r)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),r}var d=n(6523);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],f=["theme"],h=["theme"];function m(e){return 0===Object.keys(e).length}function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,a.Z)();var b=n(247);const y=e=>v(e)&&"classes"!==e,Z=v,x=function(e={}){const{defaultTheme:t=g,rootShouldForwardProp:n=v,slotShouldForwardProp:a=v,styleFunctionSx:s=d.Z}=e;return(e,c={})=>{const{name:l,slot:d,skipVariantsResolver:g,skipSx:b,overridesResolver:y}=c,Z=(0,o.Z)(c,p),x=void 0!==g?g:d&&"Root"!==d||!1,w=b||!1;let S=v;"Root"===d?S=n:d&&(S=a);const E=(0,i.ZP)(e,(0,r.Z)({shouldForwardProp:S,label:undefined},Z)),k=(e,...n)=>{const i=n?n.map((e=>"function"===typeof e&&e.__emotion_real!==e?n=>{let{theme:i}=n,a=(0,o.Z)(n,f);return e((0,r.Z)({theme:m(i)?t:i},a))}:e)):[];let a=e;l&&y&&i.push((e=>{const n=m(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"===typeof r?r(e):r})),y(e,t)}return null})),l&&!x&&i.push((e=>{const n=m(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],c=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return c&&c.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r})(l,n),n,l)})),w||i.push((e=>{const n=m(e.theme)?t:e.theme;return s((0,r.Z)({},e,{theme:n}))}));const c=i.length-n.length;if(Array.isArray(e)&&c>0){const t=new Array(c).fill("");a=[...e,...t],a.raw=[...e.raw,...t]}else"function"===typeof e&&(a=n=>{let{theme:i}=n,a=(0,o.Z)(n,h);return e((0,r.Z)({theme:m(i)?t:i},a))});return E(a,...i)};return E.withConfig&&(k.withConfig=E.withConfig),k}}({defaultTheme:b.Z,rootShouldForwardProp:y});var w=x},2734:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(7294);var r=n(6682),o=n(247);function i(){return(0,r.Z)(o.Z)}},3616:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(539),o=n(6682);var i=n(247);function a({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){const i=(0,o.Z)(n);return(0,r.Z)({theme:i,name:t,props:e})}({props:e,name:t,defaultTheme:i.Z})}},577:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return o}});const r=e=>e.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}},8216:function(e,t,n){"use strict";var r=n(8320);t.Z=r.Z},7892:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(7294),i=n(3366),a=n(6010),s=n(7192),c=n(8216),l=n(3616),u=n(1496),d=n(2994),p=n(5893);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,c.Z)(n.color)}`],t[`fontSize${(0,c.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,d,p,f,h,m,v,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(c=e.typography)||null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(p=null==(f=e.palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=e.palette)||null==(v=m.action)?void 0:v.active,disabled:null==(g=e.palette)||null==(b=g.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),m=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:m="inherit",component:v="svg",fontSize:g="medium",htmlColor:b,inheritViewBox:y=!1,titleAccess:Z,viewBox:x="0 0 24 24"}=n,w=(0,i.Z)(n,f),S=(0,r.Z)({},n,{color:m,component:v,fontSize:g,inheritViewBox:y,viewBox:x}),E={};y||(E.viewBox=x);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,c.Z)(t)}`,`fontSize${(0,c.Z)(n)}`]};return(0,s.Z)(o,d.h,r)})(S);return(0,p.jsxs)(h,(0,r.Z)({as:v,className:(0,a.Z)(k.root,u),ownerState:S,focusable:"false",color:b,"aria-hidden":!Z||void 0,role:Z?"img":void 0,ref:t},E,w,{children:[o,Z?(0,p.jsx)("title",{children:Z}):null]}))}));m.muiName="SvgIcon";var v=m;function g(e,t){const n=(n,o)=>(0,p.jsx)(v,(0,r.Z)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=v.muiName,o.memo(o.forwardRef(n))}},7144:function(e,t,n){"use strict";var r=n(7596);t.Z=r.Z},1579:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);var o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8038:function(e,t,n){"use strict";var r=n(7094);t.Z=r.Z},5340:function(e,t,n){"use strict";var r=n(8290);t.Z=r.Z},9299:function(e,t,n){"use strict";var r=n(8925);t.Z=r.Z},8974:function(e,t,n){"use strict";var r=n(6600);t.Z=r.Z},2068:function(e,t,n){"use strict";var r=n(3633);t.Z=r.Z},1705:function(e,t,n){"use strict";var r=n(67);t.Z=r.Z},8791:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7294);let o,i=!0,a=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function l(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var p=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("touchstart",l,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},561:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x}});var r=n(7294),o=n.t(r,2),i=n(7462),a=n(7866),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,a.Z)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(4880),u=n(444),d=n(3772),p=c,f=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},v=o.useInsertionEffect?o.useInsertionEffect:function(e){e()};var g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);v((function(){return(0,u.My)(t,n,r)}));return null},b=function e(t,n){var o,a,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var p=m(t,n,s),f=p||h(c),v=!f("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var Z=b.length,x=1;x(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},a=n(8700),s=n(5408);function c(e){return"number"!==typeof e?e:`${e}px solid`}const l=(0,r.Z)({prop:"border",themeKey:"borders",transform:c}),u=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:c}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:c}),p=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:c}),f=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:c}),h=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),m=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),g=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),y=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,a.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,a.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};y.propTypes={},y.filterProps=["borderRadius"];var Z=i(l,u,d,p,f,h,m,v,g,b,y);var x=i((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"}));var w=i((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"}));const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,a.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const E=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,a.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};E.propTypes={},E.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,a.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];var R=i(S,E,k,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"}));var C=i((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"}));var P=i((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"}));var T=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function M(e){return e<=1&&0!==e?100*e+"%":e}const I=(0,r.Z)({prop:"width",transform:M}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||M(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const z=(0,r.Z)({prop:"minWidth",transform:M}),N=(0,r.Z)({prop:"height",transform:M}),j=(0,r.Z)({prop:"maxHeight",transform:M}),A=(0,r.Z)({prop:"minHeight",transform:M});(0,r.Z)({prop:"size",cssProperty:"width",transform:M}),(0,r.Z)({prop:"size",cssProperty:"height",transform:M});var L=i(I,O,z,N,j,A,(0,r.Z)({prop:"boxSizing"}));const F=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),$=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),B=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),D=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),V=(0,r.Z)({prop:"letterSpacing"}),_=(0,r.Z)({prop:"textTransform"}),q=(0,r.Z)({prop:"lineHeight"}),W=(0,r.Z)({prop:"textAlign"});var U=i((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),F,$,B,D,V,q,W,_);const H={borders:Z.filterProps,display:x.filterProps,flexbox:w.filterProps,grid:R.filterProps,positions:C.filterProps,palette:P.filterProps,shadows:T.filterProps,sizing:L.filterProps,spacing:a.ZP.filterProps,typography:U.filterProps},K={borders:Z,display:x,flexbox:w,grid:R,positions:C,palette:P,shadows:T,sizing:L,spacing:a.ZP,typography:U},G=Object.keys(H).reduce(((e,t)=>(H[t].forEach((n=>{e[n]=K[t]})),e)),{})},9707:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=n(3366),i=n(9766),a=n(8528);const s=["sx"];function c(e){const{sx:t}=e,n=(0,o.Z)(e,s),{systemProps:c,otherProps:l}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{a.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let u;return u=Array.isArray(t)?[c,...t]:"function"===typeof t?(...e)=>{const n=t(...e);return(0,i.P)(n)?(0,r.Z)({},c,n):c}:(0,r.Z)({},c,t),(0,r.Z)({},l,{sx:u})}},6523:function(e,t,n){"use strict";var r=n(7730),o=n(8528),i=n(5408);const a=function(e=o.G$){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(o){const{sx:a,theme:s={}}=o||{};if(!a)return null;function c(o){let a=o;if("function"===typeof o)a=o(s);else if("object"!==typeof o)return o;if(!a)return null;const c=(0,i.W8)(s.breakpoints),l=Object.keys(c);let u=c;return Object.keys(a).forEach((o=>{const c=(l=a[o],d=s,"function"===typeof l?l(d):l);var l,d;if(null!==c&&void 0!==c)if("object"===typeof c)if(t[o])u=(0,r.Z)(u,n(o,c,s));else{const t=(0,i.k9)({theme:s},c,(e=>({[o]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(t,c)?u=(0,r.Z)(u,t):u[o]=e({sx:c,theme:s})}else u=(0,r.Z)(u,n(o,c,s))})),(0,i.L7)(l,u)}return Array.isArray(a)?a.map(c):c(a)}}();a.filterProps=["sx"],t.Z=a},539:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7925);function o(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},9064:function(e,t,n){"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:function(){return r}})},7596:function(e,t,n){"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{Z:function(){return r}})},5806:function(e,t,n){"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:function(){return r}})},7094:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},8290:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7094);function o(e){return(0,r.Z)(e).defaultView||window}},7925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},7960:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);function o({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[i?e:a,r.useCallback((e=>{i||s(e)}),[])]}},6600:function(e,t,n){"use strict";var r=n(7294);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},3633:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(6600);function i(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},67:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7960);function i(e,t){return r.useMemo((()=>null==e&&null==t?null:n=>{(0,o.Z)(e,n),(0,o.Z)(t,n)}),[e,t])}},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),l=n(7985),u=n(5061),d=n(5655),p=n(5263);e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",Z=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+Z)}var x=s(e.baseURL,e.url);function w(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(n(u("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(u("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(n(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),b.send(h)}))}},1609:function(e,t,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5655));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:function(e,t,n){"use strict";var r=n(5263);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(s)})),e.exports=l},7288:function(e){e.exports={version:"0.24.0"}},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:function(e,t,n){"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:function(e,t,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return u(r)}},5068:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return o}})},8100:function(e,t,n){"use strict";n.d(t,{ZP:function(){return X}});var r=n(7294);function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:function(e,t){return g(e)==g(t)},isPaused:function(){return!1},cache:D,mutate:V,fallback:{}},k),q=function(e,t){var n=p(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=p(o,a))}return n},W=(0,r.createContext)({}),U=function(e){return d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},H=function(){return p(_,(0,r.useContext)(W))},K=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G={dedupe:!0},X=(l.defineProperty((function(e){var t=e.value,n=q((0,r.useContext)(W),t),o=t&&t.provider,i=(0,r.useState)((function(){return o?$(o(n.cache||D),t):c}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),T((function(){return i?i[2]:c}),[]),(0,r.createElement)(W.Provider,p(e,{value:n}))}),"default",{value:_}),a=function(e,t,n){var a=n.cache,s=n.compare,l=n.fallbackData,f=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,v=n.refreshWhenHidden,g=n.refreshWhenOffline,b=z.get(a),y=b[0],Z=b[1],x=b[2],w=b[3],S=O(e),E=S[0],k=S[1],R=S[2],M=(0,r.useRef)(!1),I=(0,r.useRef)(!1),j=(0,r.useRef)(E),F=(0,r.useRef)(t),$=(0,r.useRef)(n),B=function(){return $.current},D=function(){return B().isVisible()&&B().isOnline()},V=function(e){return a.set(R,p(a.get(R),e))},_=a.get(E),q=u(l)?n.fallback[E]:l,W=u(_)?q:_,U=a.get(R)||{},H=U.error,X=!M.current,Y=function(){return X&&!u(h)?h:!B().isPaused()&&(f?!u(W):u(W)||n.revalidateIfStale)},J=!(!E||!t)&&(!!U.isValidating||X&&Y()),Q=function(e,t){var n=(0,r.useState)({})[1],o=(0,r.useRef)(e),i=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,r.useCallback)((function(e){var r=!1,a=o.current;for(var s in e){var c=s;a[c]!==e[c]&&(a[c]=e[c],i.current[c]&&(r=!0))}r&&!t.current&&n({})}),[]);return T((function(){o.current=e})),[o,i.current,a]}({data:W,error:H,isValidating:J},I),ee=Q[0],te=Q[1],ne=Q[2],re=(0,r.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,r,o,l,p,f,h,m,v,g,b,y,Z;return i(this,(function(i){switch(i.label){case 0:if(t=F.current,!E||!t||I.current||B().isPaused())return[2,!1];l=!0,p=e||{},f=!w[E]||!p.dedupe,h=function(){return!I.current&&E===j.current&&M.current},m=function(){var e=w[E];e&&e[1]===o&&delete w[E]},v={isValidating:!1},g=function(){V({isValidating:!1}),h()&&ne(v)},V({isValidating:!0}),ne({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),f&&(N(a,E,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!a.get(E)&&setTimeout((function(){l&&h()&&B().onLoadingSlow(E,n)}),n.loadingTimeout),w[E]=[t.apply(void 0,k),A()]),Z=w[E],r=Z[0],o=Z[1],[4,r];case 2:return r=i.sent(),f&&setTimeout(m,n.dedupingInterval),w[E]&&w[E][1]===o?(V({error:c}),v.error=c,b=x[E],!u(b)&&(o<=b[0]||o<=b[1]||0===b[1])?(g(),f&&h()&&B().onDiscarded(E),[2,!1]):(s(ee.current.data,r)?v.data=ee.current.data:v.data=r,s(a.get(E),r)||a.set(E,r),f&&h()&&B().onSuccess(r,E,n),[3,4])):(f&&h()&&B().onDiscarded(E),[2,!1]);case 3:return y=i.sent(),m(),B().isPaused()||(V({error:y}),v.error=y,f&&h()&&(B().onError(y,E,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||d(n.shouldRetryOnError)&&n.shouldRetryOnError(y))&&D()&&B().onErrorRetry(y,E,n,re,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,g(),h()&&f&&N(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,r.useCallback)(L.bind(c,a,(function(){return j.current})),[]);if(T((function(){F.current=t,$.current=n})),T((function(){if(E){var e=E!==j.current,t=re.bind(c,G),n=0,r=K(E,Z,(function(e,t,n){ne(p({error:t,isValidating:n},s(ee.current.data,e)?c:{data:e}))})),o=K(E,y,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&D()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&D()&&t();else if(2==e)return re()}));return I.current=!1,j.current=E,M.current=!0,e&&ne({data:W,error:H,isValidating:J}),Y()&&(u(W)||C?t():P(t)),function(){I.current=!0,r(),o()}}}),[E,re]),T((function(){var e;function t(){var t=d(m)?m(W):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!v&&!B().isVisible()||!g&&!B().isOnline()?t():re(G).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,v,g,re]),(0,r.useDebugValue)(W),f&&u(W)&&E)throw F.current=t,$.current=n,I.current=!1,u(H)?re(G):H;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,H},get isValidating(){return te.isValidating=!0,J}}},function(){for(var e=[],t=0;t0;)l=u[d](l);return l(o,i||c.fetcher,c)})}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/528-72edc50189f30fa9.js b/striker-ui/out/_next/static/chunks/528-72edc50189f30fa9.js deleted file mode 100644 index dc6a0bb0..00000000 --- a/striker-ui/out/_next/static/chunks/528-72edc50189f30fa9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[528],{2787:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"}),"DesktopWindows")},791:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}),"Keyboard")},5668:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNewOutlined")},9309:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(3366),o=n(7462),a=n(7294),i=n(6010),u=n(7192),s=n(1796),l=n(1496),c=n(3616),d=n(9773),f=n(7739),p=n(8974),v=n(1705),b=n(5097),m=n(4592);var h=(0,n(6087).Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),y=n(2429),g=n(5893);const _=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],w=(0,l.ZP)(f.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${y.Z.selected}`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${y.Z.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${y.Z.selected}:hover`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${y.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${y.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity},[`& + .${b.Z.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${b.Z.inset}`]:{marginLeft:52},[`& .${h.root}`]:{marginTop:0,marginBottom:0},[`& .${h.inset}`]:{paddingLeft:36},[`& .${m.Z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${m.Z.root} svg`]:{fontSize:"1.25rem"}}))));var O=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:l="li",dense:f=!1,divider:b=!1,disableGutters:m=!1,focusVisibleClassName:h,role:O="menuitem",tabIndex:Z}=n,C=(0,r.Z)(n,_),k=a.useContext(d.Z),x={dense:f||k.dense||!1,disableGutters:m},V=a.useRef(null);(0,p.Z)((()=>{s&&V.current&&V.current.focus()}),[s]);const j=(0,o.Z)({},n,{dense:x.dense,divider:b,disableGutters:m}),z=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:i,classes:s}=e,l={root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},c=(0,u.Z)(l,y.K,s);return(0,o.Z)({},s,c)})(n),M=(0,v.Z)(V,t);let P;return n.disabled||(P=void 0!==Z?Z:-1),(0,g.jsx)(d.Z.Provider,{value:x,children:(0,g.jsx)(w,(0,o.Z)({ref:M,role:O,tabIndex:P,component:l,focusVisibleClassName:(0,i.Z)(z.focusVisible,h)},C,{ownerState:j,classes:z}))})}))},2429:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiMenuItem",e)}const a=(0,n(6087).Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);t.Z=a},638:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return f=!0,t()};m(d,e).then(n,n)}))},window.__NEXT_PRELOADREADY=b.preloadReady;var h=b;t.default=h},5152:function(e,t,n){e.exports=n(638)},1163:function(e,t,n){e.exports=n(387)},8217:function(e,t,n){"use strict";var r=n(6086),o=n(7294);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=o.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var i=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),i({getCurrentValue:t,subscribe:n,value:a})),o.useDebugValue(a),o.useEffect((function(){function e(){if(!o){var e=t();i((function(o){return o.getCurrentValue!==t||o.subscribe!==n||o.value===e?o:r({},o,{value:e})}))}}var o=!1,a=n(e);return e(),function(){o=!0,a()}}),[t,n]),a}},7161:function(e,t,n){"use strict";e.exports=n(8217)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/570-6bad4610969fc14b.js b/striker-ui/out/_next/static/chunks/570-6bad4610969fc14b.js new file mode 100644 index 00000000..66ef3fae --- /dev/null +++ b/striker-ui/out/_next/static/chunks/570-6bad4610969fc14b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[570],{2787:function(e,t,r){"use strict";var n=r(7892),u=r(5893);t.Z=(0,n.Z)((0,u.jsx)("path",{d:"M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"}),"DesktopWindows")},791:function(e,t,r){"use strict";var n=r(7892),u=r(5893);t.Z=(0,n.Z)((0,u.jsx)("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}),"Keyboard")},4685:function(e,t,r){"use strict";var n=r(7892),u=r(5893);t.Z=(0,n.Z)((0,u.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert")},1706:function(e,t,r){"use strict";var n=r(7892),u=r(5893);t.Z=(0,n.Z)((0,u.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew")},5668:function(e,t,r){"use strict";var n=r(7892),u=r(5893);t.Z=(0,n.Z)((0,u.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNewOutlined")},638:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return d=!0,t()};b(f,e).then(r,r)}))},window.__NEXT_PRELOADREADY=p.preloadReady;var m=p;t.default=m},5152:function(e,t,r){e.exports=r(638)},8217:function(e,t,r){"use strict";var n=r(6086),u=r(7294);t.useSubscription=function(e){var t=e.getCurrentValue,r=e.subscribe,a=u.useState((function(){return{getCurrentValue:t,subscribe:r,value:t()}}));e=a[0];var o=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===r||(a=t(),o({getCurrentValue:t,subscribe:r,value:a})),u.useDebugValue(a),u.useEffect((function(){function e(){if(!u){var e=t();o((function(u){return u.getCurrentValue!==t||u.subscribe!==r||u.value===e?u:n({},u,{value:e})}))}}var u=!1,a=r(e);return e(),function(){u=!0,a()}}),[t,r]),a}},7161:function(e,t,r){"use strict";e.exports=r(8217)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js b/striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js deleted file mode 100644 index 2d752c1d..00000000 --- a/striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62],{2427:function(e,r,n){var t=n(1496),o=n(8441),i=n(8962),c=n(7169);var a,u,l,s=(0,t.ZP)(o.Z)((a={backgroundColor:"transparent",borderRadius:c.n_,height:"1em"},u="& .".concat(i.Z.bar),l={borderRadius:c.n_},u in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l,a));r.Z=s},5813:function(e,r,n){var t=n(5893),o=n(1496),i=n(8962),c=n(7357),a=n(7294),u=n(7169),l=n(2427),s=n(5247);function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=(0,o.ZP)(l.Z)({height:".4em"}),v=(0,o.ZP)(s.Z)({height:".2em"});r.Z=function(e){var r=e.barProps,n=void 0===r?{}:r,o=e.thin,f=e.underlineProps,g=e.value,h=n.sx,O=b(n,["sx"]),j=(0,a.useMemo)((function(){return"value"in g?{default:g}:g}),[g]),x=(0,a.useMemo)((function(){return Object.entries(j).reverse()}),[j]),w=(0,a.useMemo)((function(){return o?y:l.Z}),[o]),P=(0,a.useMemo)((function(){return o?v:s.Z}),[o]),S=(0,a.useMemo)((function(){return x.map((function(e,r){var n,t,o,c,l=m(e,2),s=l[0],f=l[1],b=f.colour,y=void 0===b?u.s7:b,v=f.value,g="string"===typeof y?y:null!==(t=null===(n=Object.entries(y).reverse().find((function(e){var r=m(e,1)[0];return v>=Number(r)})))||void 0===n?void 0:n[1])&&void 0!==t?t:u.s7,j="relative";return r&&(j="absolute",o=0,c="100%"),(0,a.createElement)(w,p({key:"stack-bar-".concat(s),sx:p(d({position:j,top:o,width:c},"& .".concat(i.Z.bar),{backgroundColor:g}),h),variant:"determinate",value:v},O))}))}),[h,x,w,O]);return(0,t.jsxs)(c.Z,{position:"relative",children:[S,(0,a.createElement)(P,f)]})}},5247:function(e,r,n){var t=n(1496),o=n(7357),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.rr,borderRadius:i.n_,display:"block",height:"4px",position:"relative"});r.Z=c},5172:function(e,r,n){n.d(r,{CD:function(){return d},ko:function(){return v}});var t=n(5893),o=n(1496),i=n(7169),c=n(2427),a=n(5247);function u(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var l="AllocationBar",s={barOk:"".concat(l,"-barOk"),barWarning:"".concat(l,"-barWarning"),barAlert:"".concat(l,"-barAlert")},f=(0,o.ZP)("div")((function(){var e;return u(e={},"& .".concat(s.barOk),{backgroundColor:i.Ej}),u(e,"& .".concat(s.barWarning),{backgroundColor:i.Wd}),u(e,"& .".concat(s.barAlert),{backgroundColor:i.hM}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(c.Z,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};function p(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var b="ProgressBar",m={barOk:"".concat(b,"-barOk"),barInProgress:"".concat(b,"-barInProgress")},y=(0,o.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:i.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:i.Wd}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(c.Z,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};n(5813)},2349:function(e,r,n){var t=n(5893),o=n(8128),i=n(3631),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.sx,n=l(e,["sx"]);return(0,t.jsx)(o.Z,u({},n,{sx:u(a({color:c.s7},"&.".concat(i.Z.checked),{color:c.s7}),r)}))}},582:function(e,r,n){var t=n(1496),o=n(7720),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.d});r.Z=c},4690:function(e,r,n){var t=n(5893),o=n(7357),i=n(7294);function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l={columnSpacing:void 0,fullWidth:!1,growFirst:!1,row:!1,rowSpacing:void 0,lg:void 0,md:void 0,sm:void 0,spacing:"1em",xl:void 0,xs:"column"},s=function(e){var r=e.fullWidth,n=e.growFirst,c=e.lg,s=void 0===c?l.lg:c,f=e.md,d=void 0===f?l.md:f,p=e.row,b=e.sm,m=void 0===b?l.sm:b,y=e.spacing,v=void 0===y?l.spacing:y,g=e.sx,h=e.xl,O=void 0===h?l.xl:h,j=e.xs,x=void 0===j?l.xs:j,w=e.columnSpacing,P=void 0===w?v:w,S=e.rowSpacing,Z=void 0===S?v:S,I=u(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),k=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),A=(0,i.useMemo)((function(){return m||k}),[m,k]),C=(0,i.useMemo)((function(){return d||A}),[d,A]),E=(0,i.useMemo)((function(){return s||C}),[s,C]),M=(0,i.useMemo)((function(){return O||E}),[O,E]),T=(0,i.useMemo)((function(){return{column:{alignItems:"normal",marginLeft:0,marginTop:P},row:{alignItems:"center",marginLeft:Z,marginTop:0}}}),[P,Z]),D=(0,i.useMemo)((function(){return n?1:void 0}),[n]),R=(0,i.useMemo)((function(){return r?"100%":void 0}),[r]);return(0,t.jsx)(o.Z,a({},I,{sx:a({alignItems:{xs:T[k].alignItems,sm:T[A].alignItems,md:T[C].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:A,md:C,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[A].marginLeft,md:T[C].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[A].marginTop,md:T[C].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=l,r.Z=s},1706:function(e,r,n){n.d(r,{Z:function(){return P}});var t=n(2428),o=n(5537),i=n(6761),c=n(1797),a=n(6059),u=n(1370),l=n(2186),s=n(5697),f=n(1496),d=n(4799),p=n(7021),b=n(7294),m=n(7169);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,f.ZP)(d.Z)(y({borderRadius:m.n_,backgroundColor:m.s7,color:m.E5,"&:hover":{backgroundColor:"".concat(m.s7,"F0")}},"&.".concat(p.Z.disabled),{backgroundColor:m.rr})),h=(0,f.ZP)(g)({backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}}),O=(0,f.ZP)(d.Z)({color:m.s7}),j={add:{none:{iconType:t.Z}},close:{none:{iconType:o.Z}},delete:{none:{iconType:i.Z}},edit:{false:{iconType:c.Z},true:{iconType:a.Z,iconProps:{sx:{color:m.Ej}}}},play:{none:{iconType:u.Z}},visibility:{false:{iconType:l.Z},true:{iconType:s.Z}}},x={contained:g,normal:O,redcontained:h},w=function(e){var r=e.children,n=e.defaultIcon,t=e.iconProps,o=e.mapPreset,i=e.mapToIcon,c=e.state,a=void 0===c?"none":c,u=e.variant,l=void 0===u?"contained":u,s=v(e,["children","defaultIcon","iconProps","mapPreset","mapToIcon","state","variant"]),f=(0,b.useMemo)((function(){return null!==i&&void 0!==i?i:o&&j[o]}),[i,o]),d=(0,b.useMemo)((function(){var e;if(f){var o,i=null!==(o=f[a])&&void 0!==o?o:{iconType:n},c=i.iconType,u=i.iconProps;c&&(e=(0,b.createElement)(c,function(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y="1.7em",v={iconProps:{},indicatorProps:{},indicatorTextProps:{},initialIndicatorValue:!1},g="24%",h="50%",O=".1rem",j="0rem",x=(0,i.forwardRef)((function(e,r){var n=e.icon,f=e.iconProps,d=(void 0===f?v.iconProps:f).sx,x=e.indicatorProps,w=(void 0===x?v.indicatorProps:x).sx,P=e.indicatorTextProps,S=(void 0===P?v.indicatorTextProps:P).sx,Z=e.initialIndicatorValue,I=void 0===Z?v.initialIndicatorValue:Z,k=e.sx,A=b(e.iconProps,["sx"]),C=b(e.indicatorProps,["sx"]),E=b(e.indicatorTextProps,["sx"]),M=(0,l.Z)().protect,T=m((0,s.Z)(I,M),2),D=T[0],R=T[1],L=(0,i.useCallback)((function(e,r,n){return(0,t.jsx)(a.Z,p({row:!0},C,{sx:p({backgroundColor:c.Ej,borderColor:c.E5,borderRadius:"50%",borderStyle:"solid",borderWidth:".1em",bottom:n,boxSizing:"content-box",height:0,justifyContent:"center",paddingBottom:r,position:"absolute",right:n,width:r},w),children:e}))}),[w,C]),W=(0,i.useCallback)((function(e){return(0,t.jsx)(u.Ac,p({},E,{sx:p({fontWeight:"500",paddingTop:"100%"},S),children:e>9?"".concat(9,"+"):e}))}),[S,E]),N=(0,i.useMemo)((function(){var e;if(D){var r,n=g,t=O;Number.isFinite(D)&&(r=W(D),n=h,t=j),e=L(r,n,t)}return e}),[L,W,D]);return(0,i.useImperativeHandle)(r,(function(){return{indicate:function(e){return R(e)}}}),[R]),(0,t.jsxs)(o.Z,{sx:p({height:y,width:y,position:"relative"},k),children:[(0,i.createElement)(n,p({},A,{sx:p({height:"100%",width:"100%"},d)})),N]})}));x.defaultProps=v,x.displayName="IconWithIndicator",r.Z=x},2444:function(e,r,n){var t=n(5893),o=n(8333),i=n(7294),c=n(2029),a=n(5172),u=n(4690),l=n(6125),s=n(1905),f=n(7750),d=n(2749);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||k(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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 k(e,r){if(e){if("string"===typeof e)return x(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,r):void 0}}var A=(0,o.forwardRef)((function(e){var r=e.allowCheckAll,n=void 0!==r&&r,x=e.allowEdit,w=void 0!==x&&x,k=e.allowItemButton,A=void 0!==k&&k,C=e.disableDelete,E=void 0!==C&&C,M=e.edit,T=void 0!==M&&M,D=e.flexBoxProps,R=e.getListCheckboxProps,L=e.getListItemCheckboxProps,W=e.header,N=e.headerSpacing,q=void 0===N?".3em":N,_=e.insertHeader,F=void 0===_||_,B=e.listEmpty,U=e.listItemIconMinWidth,H=void 0===U?"56px":U,z=e.listItemKeyPrefix,$=void 0===z?(0,b.Z)():z,J=e.listItemProps,G=(void 0===J?{}:J).sx,V=e.listItems,X=e.listProps,Y=(void 0===X?{}:X).sx,K=e.loading,Q=e.onAdd,ee=e.onDelete,re=e.onEdit,ne=e.onAllCheckboxChange,te=e.onItemCheckboxChange,oe=e.onItemClick,ie=e.renderListItem,ce=void 0===ie?function(e){return(0,t.jsx)(j.Ac,{children:e})}:ie,ae=e.renderListItemCheckboxState,ue=e.scroll,le=void 0!==ue&&ue,se=e.allowAddItem,fe=void 0===se?w:se,de=e.allowCheckItem,pe=void 0===de?w:de,be=e.allowDelete,me=void 0===be?w:be,ye=e.allowEditItem,ve=void 0===ye?w:ye,ge=S(e.listItemProps,["sx"]),he=S(e.listProps,["sx"]),Oe=(0,o.useMemo)((function(){return"calc(".concat(H," - ").concat(q,")")}),[q,H]),je=(0,o.useMemo)((function(){return fe?(0,t.jsx)(h.Z,{onClick:Q,size:"small",children:(0,t.jsx)(i.Z,{})}):void 0}),[fe,Q]),xe=(0,o.useMemo)((function(){return T&&me?(0,t.jsx)(h.Z,{disabled:E,onClick:ee,size:"small",sx:{backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}},children:(0,t.jsx)(c.Z,{})}):void 0}),[E,me,T,ee]),we=(0,o.useMemo)((function(){if(ve)return(0,t.jsx)(h.Z,{onClick:re,size:"small",children:T?(0,t.jsx)(a.Z,{sx:{color:m.Ej}}):(0,t.jsx)(u.Z,{})})}),[ve,T,re]),Pe=(0,o.useMemo)((function(){var e;return T&&pe&&(e=n?(0,t.jsx)(l.Z,{sx:{minWidth:Oe},children:(0,t.jsx)(y.Z,P({edge:"start",onChange:ne},null===R||void 0===R?void 0:R.call(null)))}):(0,t.jsx)(v.Z,{sx:{minWidth:Oe}})),e}),[Oe,R,n,pe,T,ne]),Se=(0,o.useMemo)((function(){var e,r="undefined"===typeof W?"undefined":(e=W)&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return F&&W?(0,t.jsxs)(g.Z,{row:!0,spacing:q,sx:{height:"2.4em"},children:[Pe,["boolean","string"].includes(r)?(0,t.jsxs)(t.Fragment,{children:["string"===r&&(0,t.jsx)(j.Ac,{children:W}),(0,t.jsx)(v.Z,{sx:{flexGrow:1}})]}):W,xe,we,je]}):W}),[je,Pe,xe,we,W,q,F]),Ze=(0,o.useMemo)((function(){return"string"===typeof B?(0,t.jsx)(j.Ac,{align:"center",children:B}):B}),[B]),Ie=(0,o.useCallback)((function(e,r,n){return T&&pe?(0,t.jsx)(s.Z,{sx:{minWidth:H},children:(0,t.jsx)(y.Z,P({checked:r,edge:"start",onChange:function(){for(var r=arguments.length,n=new Array(r),t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=function(e){var r=e.headerMarginOffset,n=void 0===r?".3em":r,o=e.ml,i=e.mv,c=void 0===i?"1.4em":i,s=e.sx,f=e.mb,b=void 0===f?c:f,m=e.mt,y=void 0===m?c:m,v=p(e,["headerMarginOffset","ml","mv","sx","mb","mt"]),g=(0,u.useMemo)((function(){return o?"calc(".concat(o," + ").concat(n,")"):n}),[n,o]),h=(0,u.useMemo)((function(){var e="number"===typeof y?"".concat(y,"px"):y;return"calc(".concat(e," + ").concat(n,")")}),[n,y]),O=(0,u.useMemo)((function(){return d({borderWidth:"1px",borderRadius:l.n_,borderStyle:"solid",borderColor:l.d,paddingBottom:0,position:"relative"},s)}),[s]);return(0,t.jsx)(a.Z,d({mb:b,ml:g,mt:h},v,{sx:O}))};function m(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function y(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=function(e){var r=e.sx,n=v(e,["sx"]),o=(0,u.useMemo)((function(){return y({position:"relative",zIndex:20},r)}),[r]);return(0,t.jsx)(a.Z,y({padding:".3em .7em"},n,{sx:o}))},h=function(e){var r=e.children;return(0,t.jsxs)(a.Z,{sx:{position:"relative",whiteSpace:"pre-wrap"},children:[(0,t.jsx)(a.Z,{sx:{alignItems:"center",borderColor:l.d,borderRadius:l.n_,borderStyle:"solid",borderWidth:"1px",display:"flex",left:"-.3em",paddingBottom:".2em",paddingLeft:"1em",paddingRight:".7em",paddingTop:".4em",position:"absolute",top:"-.3em",width:"100%",zIndex:"10","& > :first-child":{flexGrow:1}},children:r}),(0,t.jsx)(a.Z,{sx:{display:"flex",paddingBottom:".4em",paddingRight:"1.7em",visibility:"hidden"},children:r})]})},O=n(2152),j=n(7750);function x(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var w="1.2em",P=function(e){var r=e.children,n=e.expandInitially,f=void 0!==n&&n,d=e.header,p=e.loading,m=void 0!==p&&p,y=e.panelProps,v=e.showHeaderSpinner,P=void 0!==v&&v,S=(0,u.useState)(f),Z=S[0],I=S[1],k=(0,u.useMemo)((function(){return Z?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})}),[Z]),A=(0,u.useMemo)((function(){return Z?"auto":".2em"}),[Z]),C=(0,u.useMemo)((function(){return"string"===typeof d?(0,t.jsx)(j.Ac,{children:d}):d}),[d]),E=(0,u.useMemo)((function(){return P&&!Z&&m?(0,t.jsx)(O.Z,{progressProps:{style:{height:w,width:w}}}):void 0}),[Z,m,P]),M=(0,u.useMemo)((function(){return Z&&m?(0,t.jsx)(O.Z,{sx:{margin:"1em 0"}}):(0,t.jsx)(g,{children:r})}),[r,Z,m]);return(0,t.jsxs)(b,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var C="Panel",E={paper:"".concat(C,"-paper"),square:"".concat(C,"-square"),topSquare:"".concat(C,"-topSquare"),bottomSquare:"".concat(C,"-bottomSquare")},M=(0,S.ZP)(a.Z)((function(){var e;return I(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:l.v9,height:"100%",opacity:.8,padding:"2.1em",position:"relative",width:"100%",zIndex:10}),I(e,"& .".concat(E.square),{content:'""',position:"absolute",width:"2.1em",height:"2.1em",border:"1px",borderColor:l.lD,borderWidth:"1px",borderRadius:l.n_,borderStyle:"solid",padding:0,margin:0}),I(e,"& .".concat(E.topSquare),{top:"-.3em",left:"-.3em"}),I(e,"& .".concat(E.bottomSquare),{bottom:"-.3em",right:"-.3em"}),e})),T={paperProps:{}},D=(0,t.jsx)(Z.Z,{styles:{"*::-webkit-scrollbar":{width:".6em"},"*::-webkit-scrollbar-track":{backgroundColor:l.v9},"*::-webkit-scrollbar-thumb":{backgroundColor:l.lD,outline:"1px solid transparent",borderRadius:l.n_}}}),R=function(e){var r=e.children,n=e.classes,o=e.className,i=e.paperProps,c=(void 0===i?T.paperProps:i).className,u=e.sx,l=A(e.paperProps,["className"]),s=A(e,["children","classes","className","paperProps","sx"]);return(0,t.jsxs)(M,k({classes:n,className:o,sx:u},s,{children:[D,(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.topSquare)}),(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.bottomSquare)}),(0,t.jsx)(a.Z,k({},l,{className:"".concat(E.paper," ").concat(c),children:r}))]}))};R.defaultProps=T;var L=R,W=(0,S.ZP)(a.Z)({alignItems:"center",display:"flex",flexDirection:"row",marginBottom:"1em",width:"100%","& > :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}})},2152:function(e,r,n){var t=n(5893),o=n(7357),i=n(2346),c=n(6489),a=n(7169);function u(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={progressProps:{}},d=function(e){var r=e.mt,n=void 0===r?"3em":r,d=e.progressProps,p=void 0===d?f.progressProps:d,b=e.sx,m=s(e,["mt","progressProps","sx"]);return(0,t.jsx)(o.Z,l({},m,{sx:l(u({alignItems:"center",display:"flex",justifyContent:"center",marginTop:n},"& .".concat(i.Z.root),{color:a.lD}),b),children:(0,t.jsx)(c.Z,l({},p,{variant:"indeterminate"}))}))};d.defaultProps=f,r.Z=d},7750:function(e,r,n){n.d(r,{Ac:function(){return b},z:function(){return O},Q0:function(){return I},$_:function(){return E},PJ:function(){return N},KI:function(){return w}});var t=n(5893),o=n(7294),i=n(5861),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s="BodyText",f={edge:null,inheritColour:!1,inline:!1,inverted:!1,monospaced:!1,selected:!0,text:null},d={inheritColour:"".concat(s,"-inherit-colour"),inverted:"".concat(s,"-inverted"),monospaced:"".concat(s,"-monospaced"),selected:"".concat(s,"-selected"),unselected:"".concat(s,"-unselected")},p=function(e){var r,n=e.children,s=e.className,p=e.inheritColour,b=void 0===p?f.inheritColour:p,m=e.inline,y=void 0===m?f.inline:m,v=e.inverted,g=void 0===v?f.inverted:v,h=e.monospaced,O=void 0===h?f.monospaced:h,j=e.selected,x=void 0===j?f.selected:j,w=e.sx,P=e.text,S=void 0===P?f.text:P,Z=l(e,["children","className","inheritColour","inline","inverted","monospaced","selected","sx","text"]),I=(0,o.useMemo)((function(){return y?"inline":void 0}),[y]),k=(0,o.useMemo)((function(){return function(e){var r=e.isInheritColour,n=e.isInvert,t=e.isMonospace,o=e.isSelect,i=[];return r?i.push(d.inheritColour):n?i.push(d.inverted):o?i.push(d.selected):i.push(d.unselected),t&&i.push(d.monospaced),i.join(" ")}({isInheritColour:b,isInvert:g,isMonospace:O,isSelect:x})}),[b,g,O,x]),A=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,u({className:"".concat(k," ").concat(s),variant:"subtitle1"},Z,{sx:u((r={display:I},a(r,"&.".concat(d.inverted),{color:c.E5}),a(r,"&.".concat(d.monospaced),{fontFamily:"Source Code Pro",fontWeight:400}),a(r,"&.".concat(d.selected),{color:c.lD}),a(r,"&.".concat(d.unselected),{color:c.UZ}),r),w),children:A}))};p.defaultProps=f;var b=p,m=n(1496);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,m.ZP)(i.Z)({color:c.lD}),h=function(e){var r=e.children,n=e.text,i=v(e,["children","text"]),c=(0,o.useMemo)((function(){return null!==r&&void 0!==r?r:n}),[r,n]);return(0,t.jsx)(g,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var I=function(e){var r=e.edge,n=e.sx,i=Z(e,["edge","sx"]),c=(0,o.useMemo)((function(){return"start"===r?0:void 0}),[r]),a=(0,o.useMemo)((function(){return"end"===r?0:void 0}),[r]),u=(0,o.useMemo)((function(){return S({display:"inline",padding:".1rem .3rem",paddingLeft:c,paddingRight:a},n)}),[c,a,n]);return(0,t.jsx)(w,S({monospaced:!0,sx:u},i))};function k(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function A(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(e){var r=e.sx,n=C(e,["sx"]);return(0,t.jsx)(w,A({monospaced:!0,sx:A({alignItems:"center",display:"flex",height:"100%"},r)},n))},M=n(2992),T=n(4690),D=n(1706);function R(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function L(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n1?n-1:0),o=1;oe.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},n=r.refreshInterval,i=void 0===n?5e3:n,c=r.onSuccess,a=(0,t.ZP)(e,o.Z,{refreshInterval:i,onSuccess:c}),u=a.data,l=a.error;return{data:u,isLoading:!l&&!u,error:l}}},1770:function(e,r){r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.onRequestError,t=void 0===n?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:n,o=r.onResponseErrorAppend,i=r.onSetupError,c=void 0===i?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:i,a=r.onResponseError,u=void 0===a?function(e){var r,n,t=e.status,i=e.statusText;500===t?r={children:"The API encountered a problem: ".concat(t," (").concat(i,")! Please check its systemd service logs."),type:"error"}:r=null!==(n=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==n?n:{children:"API responded with ".concat(t," (").concat(i,")."),type:"warning"};return r}:a,l=e.request,s=e.response,f=e.message;return s?u(s):l?t(l):c(f)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/668-b264bf73f0c1b5eb.js b/striker-ui/out/_next/static/chunks/668-b264bf73f0c1b5eb.js new file mode 100644 index 00000000..1bb83619 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/668-b264bf73f0c1b5eb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[668],{2427:function(e,r,n){var t=n(1496),o=n(8441),i=n(8962),c=n(7169);var a,l,u,s=(0,t.ZP)(o.Z)((a={backgroundColor:"transparent",borderRadius:c.n_,height:"1em"},l="& .".concat(i.Z.bar),u={borderRadius:c.n_},l in a?Object.defineProperty(a,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[l]=u,a));r.Z=s},5813:function(e,r,n){var t=n(5893),o=n(1496),i=n(8962),c=n(7357),a=n(7294),l=n(7169),u=n(2427),s=n(5247);function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=(0,o.ZP)(u.Z)({height:".4em"}),v=(0,o.ZP)(s.Z)({height:".2em"});r.Z=function(e){var r=e.barProps,n=void 0===r?{}:r,o=e.thin,f=e.underlineProps,g=e.value,h=n.sx,O=b(n,["sx"]),j=(0,a.useMemo)((function(){return"value"in g?{default:g}:g}),[g]),x=(0,a.useMemo)((function(){return Object.entries(j).reverse()}),[j]),w=(0,a.useMemo)((function(){return o?y:u.Z}),[o]),P=(0,a.useMemo)((function(){return o?v:s.Z}),[o]),S=(0,a.useMemo)((function(){return x.map((function(e,r){var n,t,o,c,u=m(e,2),s=u[0],f=u[1],b=f.colour,y=void 0===b?l.s7:b,v=f.value,g="string"===typeof y?y:null!==(t=null===(n=Object.entries(y).reverse().find((function(e){var r=m(e,1)[0];return v>=Number(r)})))||void 0===n?void 0:n[1])&&void 0!==t?t:l.s7,j="relative";return r&&(j="absolute",o=0,c="100%"),(0,a.createElement)(w,p({key:"stack-bar-".concat(s),sx:p(d({position:j,top:o,width:c},"& .".concat(i.Z.bar),{backgroundColor:g}),h),variant:"determinate",value:v},O))}))}),[h,x,w,O]);return(0,t.jsxs)(c.Z,{position:"relative",children:[S,(0,a.createElement)(P,f)]})}},5247:function(e,r,n){var t=n(1496),o=n(7357),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.rr,borderRadius:i.n_,display:"block",height:"4px",position:"relative"});r.Z=c},5172:function(e,r,n){n.d(r,{CD:function(){return d},ko:function(){return v}});var t=n(5893),o=n(1496),i=n(7169),c=n(2427),a=n(5247);function l(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var u="AllocationBar",s={barOk:"".concat(u,"-barOk"),barWarning:"".concat(u,"-barWarning"),barAlert:"".concat(u,"-barAlert")},f=(0,o.ZP)("div")((function(){var e;return l(e={},"& .".concat(s.barOk),{backgroundColor:i.Ej}),l(e,"& .".concat(s.barWarning),{backgroundColor:i.Wd}),l(e,"& .".concat(s.barAlert),{backgroundColor:i.hM}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(c.Z,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};function p(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var b="ProgressBar",m={barOk:"".concat(b,"-barOk"),barInProgress:"".concat(b,"-barInProgress")},y=(0,o.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:i.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:i.Wd}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(c.Z,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};n(5813)},2349:function(e,r,n){var t=n(5893),o=n(8128),i=n(3631),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.sx,n=u(e,["sx"]);return(0,t.jsx)(o.Z,l({},n,{sx:l(a({color:c.s7},"&.".concat(i.Z.checked),{color:c.s7}),r)}))}},4825:function(e,r,n){n.d(r,{D:function(){return u}});var t=n(5893),o=n(1496),i=n(2992),c=n(7933),a=n(7169);function l(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var u={blue:a.Ej,normal:a.s7,red:a.hM},s=(0,o.ZP)(i.Z)(l({backgroundColor:a.s7,color:a.E5,textTransform:"none","&:hover":{backgroundColor:"".concat(a.s7,"F0")}},"&.".concat(c.Z.disabled),{backgroundColor:a.rr})),f=(0,o.ZP)((function(e){return(0,t.jsx)(s,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u={columnSpacing:void 0,fullWidth:!1,growFirst:!1,row:!1,rowSpacing:void 0,lg:void 0,md:void 0,sm:void 0,spacing:"1em",xl:void 0,xs:"column"},s=function(e){var r=e.fullWidth,n=e.growFirst,c=e.lg,s=void 0===c?u.lg:c,f=e.md,d=void 0===f?u.md:f,p=e.row,b=e.sm,m=void 0===b?u.sm:b,y=e.spacing,v=void 0===y?u.spacing:y,g=e.sx,h=e.xl,O=void 0===h?u.xl:h,j=e.xs,x=void 0===j?u.xs:j,w=e.columnSpacing,P=void 0===w?v:w,S=e.rowSpacing,Z=void 0===S?v:S,k=l(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),I=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),C=(0,i.useMemo)((function(){return m||I}),[m,I]),A=(0,i.useMemo)((function(){return d||C}),[d,C]),E=(0,i.useMemo)((function(){return s||A}),[s,A]),M=(0,i.useMemo)((function(){return O||E}),[O,E]),T=(0,i.useMemo)((function(){return{column:{alignItems:"normal",marginLeft:0,marginTop:P},row:{alignItems:"center",marginLeft:Z,marginTop:0}}}),[P,Z]),D=(0,i.useMemo)((function(){return n?1:void 0}),[n]),R=(0,i.useMemo)((function(){return r?"100%":void 0}),[r]);return(0,t.jsx)(o.Z,a({},k,{sx:a({alignItems:{xs:T[I].alignItems,sm:T[C].alignItems,md:T[A].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:I,sm:C,md:A,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[I].marginLeft,sm:T[C].marginLeft,md:T[A].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[I].marginTop,sm:T[C].marginTop,md:T[A].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=u,r.Z=s},5722:function(e,r,n){var t=n(2428),o=n(5537),i=n(6761),c=n(1797),a=n(6059),l=n(1370),u=n(2186),s=n(5697),f=n(1496),d=n(4799),p=n(7021),b=n(7294),m=n(7169);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,f.ZP)(d.Z)(y({borderRadius:m.n_,backgroundColor:m.s7,color:m.E5,"&:hover":{backgroundColor:"".concat(m.s7,"F0")}},"&.".concat(p.Z.disabled),{backgroundColor:m.rr})),h=(0,f.ZP)(g)({backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}}),O=(0,f.ZP)(d.Z)({color:m.s7}),j={add:{none:{iconType:t.Z}},close:{none:{iconType:o.Z}},delete:{none:{iconType:i.Z}},edit:{false:{iconType:c.Z},true:{iconType:a.Z,iconProps:{sx:{color:m.Ej}}}},play:{none:{iconType:l.Z}},visibility:{false:{iconType:u.Z},true:{iconType:s.Z}}},x={contained:g,normal:O,redcontained:h};r.Z=function(e){var r=e.children,n=e.defaultIcon,t=e.iconProps,o=e.mapPreset,i=e.mapToIcon,c=e.state,a=void 0===c?"none":c,l=e.variant,u=void 0===l?"contained":l,s=v(e,["children","defaultIcon","iconProps","mapPreset","mapToIcon","state","variant"]),f=(0,b.useMemo)((function(){return null!==i&&void 0!==i?i:o&&j[o]}),[i,o]),d=(0,b.useMemo)((function(){var e;if(f){var o,i=null!==(o=f[a])&&void 0!==o?o:{iconType:n},c=i.iconType,l=i.iconProps;c&&(e=(0,b.createElement)(c,function(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y="1.7em",v={iconProps:{},indicatorProps:{},indicatorTextProps:{},initialIndicatorValue:!1},g="24%",h="50%",O=".1rem",j="0rem",x=(0,i.forwardRef)((function(e,r){var n=e.icon,f=e.iconProps,d=(void 0===f?v.iconProps:f).sx,x=e.indicatorProps,w=(void 0===x?v.indicatorProps:x).sx,P=e.indicatorTextProps,S=(void 0===P?v.indicatorTextProps:P).sx,Z=e.initialIndicatorValue,k=void 0===Z?v.initialIndicatorValue:Z,I=e.sx,C=b(e.iconProps,["sx"]),A=b(e.indicatorProps,["sx"]),E=b(e.indicatorTextProps,["sx"]),M=(0,u.Z)().protect,T=m((0,s.Z)(k,M),2),D=T[0],R=T[1],W=(0,i.useCallback)((function(e,r,n){return(0,t.jsx)(a.Z,p({row:!0},A,{sx:p({backgroundColor:c.Ej,borderColor:c.E5,borderRadius:"50%",borderStyle:"solid",borderWidth:".1em",bottom:n,boxSizing:"content-box",height:0,justifyContent:"center",paddingBottom:r,position:"absolute",right:n,width:r},w),children:e}))}),[w,A]),L=(0,i.useCallback)((function(e){return(0,t.jsx)(l.Ac,p({},E,{sx:p({fontWeight:"500",paddingTop:"100%"},S),children:e>9?"".concat(9,"+"):e}))}),[S,E]),N=(0,i.useMemo)((function(){var e;if(D){var r,n=g,t=O;Number.isFinite(D)&&(r=L(D),n=h,t=j),e=W(r,n,t)}return e}),[W,L,D]);return(0,i.useImperativeHandle)(r,(function(){return{indicate:function(e){return R(e)}}}),[R]),(0,t.jsxs)(o.Z,{sx:p({height:y,width:y,position:"relative"},I),children:[(0,i.createElement)(n,p({},C,{sx:p({height:"100%",width:"100%"},d)})),N]})}));x.defaultProps=v,x.displayName="IconWithIndicator",r.Z=x},2444:function(e,r,n){var t=n(5893),o=n(8333),i=n(7294),c=n(2029),a=n(5172),l=n(4690),u=n(6125),s=n(1905),f=n(7750),d=n(2749);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||I(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(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 I(e,r){if(e){if("string"===typeof e)return x(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,r):void 0}}var C=(0,o.forwardRef)((function(e){var r=e.allowCheckAll,n=void 0!==r&&r,x=e.allowEdit,w=void 0!==x&&x,I=e.allowItemButton,C=void 0!==I&&I,A=e.disableDelete,E=void 0!==A&&A,M=e.edit,T=void 0!==M&&M,D=e.flexBoxProps,R=e.getListCheckboxProps,W=e.getListItemCheckboxProps,L=e.header,N=e.headerSpacing,q=void 0===N?".3em":N,_=e.insertHeader,F=void 0===_||_,B=e.listEmpty,U=e.listItemIconMinWidth,H=void 0===U?"56px":U,z=e.listItemKeyPrefix,$=void 0===z?(0,b.Z)():z,G=e.listItemProps,J=(void 0===G?{}:G).sx,V=e.listItems,X=e.listProps,Y=(void 0===X?{}:X).sx,K=e.loading,Q=e.onAdd,ee=e.onDelete,re=e.onEdit,ne=e.onAllCheckboxChange,te=e.onItemCheckboxChange,oe=e.onItemClick,ie=e.renderListItem,ce=void 0===ie?function(e){return(0,t.jsx)(j.Ac,{children:e})}:ie,ae=e.renderListItemCheckboxState,le=e.scroll,ue=void 0!==le&&le,se=e.allowAddItem,fe=void 0===se?w:se,de=e.allowCheckItem,pe=void 0===de?w:de,be=e.allowDelete,me=void 0===be?w:be,ye=e.allowEditItem,ve=void 0===ye?w:ye,ge=S(e.listItemProps,["sx"]),he=S(e.listProps,["sx"]),Oe=(0,o.useMemo)((function(){return"calc(".concat(H," - ").concat(q,")")}),[q,H]),je=(0,o.useMemo)((function(){return fe?(0,t.jsx)(h.Z,{onClick:Q,size:"small",children:(0,t.jsx)(i.Z,{})}):void 0}),[fe,Q]),xe=(0,o.useMemo)((function(){return T&&me?(0,t.jsx)(h.Z,{disabled:E,onClick:ee,size:"small",sx:{backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}},children:(0,t.jsx)(c.Z,{})}):void 0}),[E,me,T,ee]),we=(0,o.useMemo)((function(){if(ve)return(0,t.jsx)(h.Z,{onClick:re,size:"small",children:T?(0,t.jsx)(a.Z,{sx:{color:m.Ej}}):(0,t.jsx)(l.Z,{})})}),[ve,T,re]),Pe=(0,o.useMemo)((function(){var e;return T&&pe&&(e=n?(0,t.jsx)(u.Z,{sx:{minWidth:Oe},children:(0,t.jsx)(y.Z,P({edge:"start",onChange:ne},null===R||void 0===R?void 0:R.call(null)))}):(0,t.jsx)(v.Z,{sx:{minWidth:Oe}})),e}),[Oe,R,n,pe,T,ne]),Se=(0,o.useMemo)((function(){var e,r="undefined"===typeof L?"undefined":(e=L)&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return F&&L?(0,t.jsxs)(g.Z,{row:!0,spacing:q,sx:{height:"2.4em"},children:[Pe,["boolean","string"].includes(r)?(0,t.jsxs)(t.Fragment,{children:["string"===r&&(0,t.jsx)(j.Ac,{children:L}),(0,t.jsx)(v.Z,{sx:{flexGrow:1}})]}):L,xe,we,je]}):L}),[je,Pe,xe,we,L,q,F]),Ze=(0,o.useMemo)((function(){return"string"===typeof B?(0,t.jsx)(j.Ac,{align:"center",children:B}):B}),[B]),ke=(0,o.useCallback)((function(e,r,n){return T&&pe?(0,t.jsx)(s.Z,{sx:{minWidth:H},children:(0,t.jsx)(y.Z,P({checked:r,edge:"start",onChange:function(){for(var r=arguments.length,n=new Array(r),t=0;te.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(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,r){if(!e)return;if("string"===typeof e)return p(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,r)}(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 g="MessageBox",h={error:"".concat(g,"-error"),info:"".concat(g,"-info"),warning:"".concat(g,"-warning")},O={error:(0,t.jsx)(a.Z,{}),info:(0,t.jsx)(l.Z,{}),warning:(0,t.jsx)(u.Z,{})},j={isShowInitially:!0,isAllowClose:!1,onClose:void 0,onCloseAppend:void 0,text:void 0,type:"info"},x=function(e){var r=e.children,n=e.isAllowClose,a=void 0===n?j.isAllowClose:n,l=e.isShowInitially,u=void 0===l?j.isShowInitially:l,p=e.onClose,g=e.onCloseAppend,x=e.type,w=void 0===x?j.type:x,P=e.text,S=y(e,["children","isAllowClose","isShowInitially","onClose","onCloseAppend","type","text"]),Z=S.sx,k=(0,o.useState)(u),I=k[0],C=k[1],A=(0,o.useMemo)((function(){return a||void 0!==p||void 0!==g}),[a,p,g]),E=(0,o.useCallback)((function(e){return h[e]}),[]),M=(0,o.useCallback)((function(e){return void 0===O[e]?O.info:O[e]}),[]),T=(0,o.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return(0,t.jsx)(d.Ac,{inverted:"info"===e,children:n})}),[r]),D=(0,o.useMemo)((function(){var e;return m((b(e={alignItems:"center",borderRadius:f.n_,display:"flex",flexDirection:"row",padding:".3em .6em","& > *":{color:f.lD},"& > :first-child":{marginRight:".3em"},"& > :nth-child(2)":{flexGrow:1}},"&.".concat(h.error),{backgroundColor:f.hM}),b(e,"&.".concat(h.info),{backgroundColor:f.s7,"& > *":{color:"".concat(f.E5)}}),b(e,"&.".concat(h.warning),{backgroundColor:f.Wd}),e),Z)}),[Z]);return I?(0,t.jsxs)(i.Z,m({},S,{className:E(w),sx:D,children:[M(w),T(w,P),A&&(0,t.jsx)(c.Z,{onClick:null!==p&&void 0!==p?p:function(){for(var e=arguments.length,r=new Array(e),n=0;n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=function(e){var r=e.headerMarginOffset,n=void 0===r?".3em":r,o=e.ml,i=e.mv,c=void 0===i?"1.4em":i,s=e.sx,f=e.mb,b=void 0===f?c:f,m=e.mt,y=void 0===m?c:m,v=p(e,["headerMarginOffset","ml","mv","sx","mb","mt"]),g=(0,l.useMemo)((function(){return o?"calc(".concat(o," + ").concat(n,")"):n}),[n,o]),h=(0,l.useMemo)((function(){var e="number"===typeof y?"".concat(y,"px"):y;return"calc(".concat(e," + ").concat(n,")")}),[n,y]),O=(0,l.useMemo)((function(){return d({borderWidth:"1px",borderRadius:u.n_,borderStyle:"solid",borderColor:u.d,paddingBottom:0,position:"relative"},s)}),[s]);return(0,t.jsx)(a.Z,d({mb:b,ml:g,mt:h},v,{sx:O}))};function m(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function y(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=function(e){var r=e.sx,n=v(e,["sx"]),o=(0,l.useMemo)((function(){return y({position:"relative",zIndex:20},r)}),[r]);return(0,t.jsx)(a.Z,y({padding:".3em .7em"},n,{sx:o}))},h=function(e){var r=e.children;return(0,t.jsxs)(a.Z,{sx:{position:"relative",whiteSpace:"pre-wrap"},children:[(0,t.jsx)(a.Z,{sx:{alignItems:"center",borderColor:u.d,borderRadius:u.n_,borderStyle:"solid",borderWidth:"1px",display:"flex",left:"-.3em",paddingBottom:".2em",paddingLeft:"1em",paddingRight:".7em",paddingTop:".4em",position:"absolute",top:"-.3em",width:"100%",zIndex:"10","& > :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}},children:r}),(0,t.jsx)(a.Z,{sx:{display:"flex",paddingBottom:".4em",paddingRight:"1.7em",visibility:"hidden"},children:r})]})},O=n(2152),j=n(7750);function x(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var w="1.2em",P=function(e){var r=e.children,n=e.expandInitially,f=void 0!==n&&n,d=e.header,p=e.loading,m=void 0!==p&&p,y=e.panelProps,v=e.showHeaderSpinner,P=void 0!==v&&v,S=(0,l.useState)(f),Z=S[0],k=S[1],I=(0,l.useMemo)((function(){return Z?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})}),[Z]),C=(0,l.useMemo)((function(){return Z?"auto":".2em"}),[Z]),A=(0,l.useMemo)((function(){return"string"===typeof d?(0,t.jsx)(j.Ac,{children:d}):d}),[d]),E=(0,l.useMemo)((function(){return P&&!Z&&m?(0,t.jsx)(O.Z,{progressProps:{style:{height:w,width:w}}}):void 0}),[Z,m,P]),M=(0,l.useMemo)((function(){return Z&&m?(0,t.jsx)(O.Z,{sx:{margin:"1em 0"}}):(0,t.jsx)(g,{children:r})}),[r,Z,m]);return(0,t.jsxs)(b,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A="Panel",E={paper:"".concat(A,"-paper"),square:"".concat(A,"-square"),topSquare:"".concat(A,"-topSquare"),bottomSquare:"".concat(A,"-bottomSquare")},M=(0,S.ZP)(a.Z)((function(){var e;return k(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:u.v9,height:"100%",opacity:.8,padding:"2.1em",position:"relative",width:"100%",zIndex:10}),k(e,"& .".concat(E.square),{content:'""',position:"absolute",width:"2.1em",height:"2.1em",border:"1px",borderColor:u.lD,borderWidth:"1px",borderRadius:u.n_,borderStyle:"solid",padding:0,margin:0}),k(e,"& .".concat(E.topSquare),{top:"-.3em",left:"-.3em"}),k(e,"& .".concat(E.bottomSquare),{bottom:"-.3em",right:"-.3em"}),e})),T={paperProps:{}},D=(0,t.jsx)(Z.Z,{styles:{"*::-webkit-scrollbar":{width:".6em"},"*::-webkit-scrollbar-track":{backgroundColor:u.v9},"*::-webkit-scrollbar-thumb":{backgroundColor:u.lD,outline:"1px solid transparent",borderRadius:u.n_}}}),R=function(e){var r=e.children,n=e.classes,o=e.className,i=e.paperProps,c=(void 0===i?T.paperProps:i).className,l=e.sx,u=C(e.paperProps,["className"]),s=C(e,["children","classes","className","paperProps","sx"]);return(0,t.jsxs)(M,I({classes:n,className:o,sx:l},s,{children:[D,(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.topSquare)}),(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.bottomSquare)}),(0,t.jsx)(a.Z,I({},u,{className:"".concat(E.paper," ").concat(c),children:r}))]}))};R.defaultProps=T;var W=R,L=(0,S.ZP)(a.Z)({alignItems:"center",display:"flex",flexDirection:"row",marginBottom:"1em",width:"100%","& > :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}})},2152:function(e,r,n){var t=n(5893),o=n(7357),i=n(2346),c=n(6489),a=n(7169);function l(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={progressProps:{}},d=function(e){var r=e.mt,n=void 0===r?"3em":r,d=e.progressProps,p=void 0===d?f.progressProps:d,b=e.sx,m=s(e,["mt","progressProps","sx"]);return(0,t.jsx)(o.Z,u({},m,{sx:u(l({alignItems:"center",display:"flex",justifyContent:"center",marginTop:n},"& .".concat(i.Z.root),{color:a.lD}),b),children:(0,t.jsx)(c.Z,u({},p,{variant:"indeterminate"}))}))};d.defaultProps=f,r.Z=d},7750:function(e,r,n){n.d(r,{Ac:function(){return b},z:function(){return O},Q0:function(){return k},$_:function(){return E},PJ:function(){return N},KI:function(){return w}});var t=n(5893),o=n(7294),i=n(5861),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s="BodyText",f={edge:null,inheritColour:!1,inline:!1,inverted:!1,monospaced:!1,selected:!0,text:null},d={inheritColour:"".concat(s,"-inherit-colour"),inverted:"".concat(s,"-inverted"),monospaced:"".concat(s,"-monospaced"),selected:"".concat(s,"-selected"),unselected:"".concat(s,"-unselected")},p=function(e){var r,n=e.children,s=e.className,p=e.inheritColour,b=void 0===p?f.inheritColour:p,m=e.inline,y=void 0===m?f.inline:m,v=e.inverted,g=void 0===v?f.inverted:v,h=e.monospaced,O=void 0===h?f.monospaced:h,j=e.selected,x=void 0===j?f.selected:j,w=e.sx,P=e.text,S=void 0===P?f.text:P,Z=u(e,["children","className","inheritColour","inline","inverted","monospaced","selected","sx","text"]),k=(0,o.useMemo)((function(){return y?"inline":void 0}),[y]),I=(0,o.useMemo)((function(){return function(e){var r=e.isInheritColour,n=e.isInvert,t=e.isMonospace,o=e.isSelect,i=[];return r?i.push(d.inheritColour):n?i.push(d.inverted):o?i.push(d.selected):i.push(d.unselected),t&&i.push(d.monospaced),i.join(" ")}({isInheritColour:b,isInvert:g,isMonospace:O,isSelect:x})}),[b,g,O,x]),C=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,l({className:"".concat(I," ").concat(s),variant:"subtitle1"},Z,{sx:l((r={display:k},a(r,"&.".concat(d.inverted),{color:c.E5}),a(r,"&.".concat(d.monospaced),{fontFamily:"Source Code Pro",fontWeight:400}),a(r,"&.".concat(d.selected),{color:c.lD}),a(r,"&.".concat(d.unselected),{color:c.UZ}),r),w),children:C}))};p.defaultProps=f;var b=p,m=n(1496);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,m.ZP)(i.Z)({color:c.lD}),h=function(e){var r=e.children,n=e.text,i=v(e,["children","text"]),c=(0,o.useMemo)((function(){return null!==r&&void 0!==r?r:n}),[r,n]);return(0,t.jsx)(g,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var k=function(e){var r=e.edge,n=e.sx,i=Z(e,["edge","sx"]),c=(0,o.useMemo)((function(){return"start"===r?0:void 0}),[r]),a=(0,o.useMemo)((function(){return"end"===r?0:void 0}),[r]),l=(0,o.useMemo)((function(){return S({display:"inline",padding:".1rem .3rem",paddingLeft:c,paddingRight:a},n)}),[c,a,n]);return(0,t.jsx)(w,S({monospaced:!0,sx:l},i))};function I(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function C(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(e){var r=e.sx,n=A(e,["sx"]);return(0,t.jsx)(w,C({monospaced:!0,sx:C({alignItems:"center",display:"flex",height:"100%"},r)},n))},M=n(2992),T=n(4690),D=n(7971);function R(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function W(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n1?n-1:0),o=1;oe.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},n=r.refreshInterval,i=void 0===n?5e3:n,c=r.onSuccess,a=(0,t.ZP)(e,o.Z,{refreshInterval:i,onSuccess:c}),l=a.data,u=a.error;return{data:l,isLoading:!u&&!l,error:u}}},1770:function(e,r){r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.onRequestError,t=void 0===n?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:n,o=r.onResponseErrorAppend,i=r.onSetupError,c=void 0===i?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:i,a=r.onResponseError,l=void 0===a?function(e){var r,n,t=e.status,i=e.statusText;500===t?r={children:"The API encountered a problem: ".concat(t," (").concat(i,")! Please check its systemd service logs."),type:"error"}:r=null!==(n=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==n?n:{children:"API responded with ".concat(t," (").concat(i,")."),type:"warning"};return r}:a,u=e.request,s=e.response,f=e.message;return s?l(s):u?t(u):c(f)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/707-705fb5e735d81042.js b/striker-ui/out/_next/static/chunks/707-ee38ab2abcd0aa3f.js similarity index 99% rename from striker-ui/out/_next/static/chunks/707-705fb5e735d81042.js rename to striker-ui/out/_next/static/chunks/707-ee38ab2abcd0aa3f.js index c91a1b7a..2c80cad0 100644 --- a/striker-ui/out/_next/static/chunks/707-705fb5e735d81042.js +++ b/striker-ui/out/_next/static/chunks/707-ee38ab2abcd0aa3f.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{4594:function(e,n,t){var r=t(5893),i=t(6514),o=t(5113),a=t(4656),s=t(482),l=t(2994),u=t(7357),c=t(9890),d=t(7169),p=t(1363),f=t(6284);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var g=function(e){return(0,r.jsx)(i.Z,{in:!0,children:(0,r.jsx)(o.Z,m({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,i=e.label,o=e.messageBoxProps,h=e.renderInput,b=e.sx,y=x(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),j=m({paper:{sx:{backgroundColor:d.lD}}},n),U=null!==h&&void 0!==h?h:function(e){var n=e.fullWidth,o=e.InputProps,a=e.InputLabelProps,s=e.inputProps,l={formControlProps:{fullWidth:n,ref:o.ref},inputLabelProps:a,inputProps:{className:o.className,endAdornment:o.endAdornment,inputProps:s,startAdornment:o.startAdornment},label:i};return null===t||void 0===t||t.call(null,l,e),(0,r.jsx)(f.Z,m({},l))},S=m(v({},"& .".concat(a.Z.root," .").concat(s.Z.endAdornment),v({right:"7px"},"& .".concat(l.Z.root),{color:d.s7})),b);return(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(c.Z,m({PaperComponent:g},y,{componentsProps:j,renderInput:U,sx:S})),(0,r.jsx)(p.Z,m({},o))]})}},8750:function(e,n,t){t.d(n,{Z:function(){return F}});var r=t(5893),i=t(1113),o=t(1496),a=t(2293),s=t(7357),l=t(2992),u=t(4799),c=t(7294),d=t(7169),p=t(4433),f=t(9029),v=t(7533),m=t(8462),x=t(7212),g=t(8619),h=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"},y=t(4390),j=t(582),U=t(4690),S=t(1770),I=t(7750),P=t(1883);function D(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){var r=t(5893),i=t(2429),o=t(9309),a=t(7169);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"}},"&:hover\n .".concat(y.Z.root,"\n .").concat(j.Z.root,"\n .").concat(j.Z.notchedOutline),{borderColor:d.s7}),children:[(0,r.jsx)(b.Z,P({id:n,label:t},o)),(0,r.jsx)(S.Z,P({formControlProps:{fullWidth:!1,sx:{minWidth:"min-content"}},id:"".concat(n,"-nested-select"),selectItems:u},p))]}),(0,r.jsx)(U.Z,P({},l))]})};O.defaultProps=D;var Z=O,w=t(3679),M=t(2152),C=t(2027),k=t(7750);function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function L(e,n){return G(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(e,n)||V(e,n)||T()}function E(e){return G(e)||z(e)||V(e,i)||T()}function R(e){return function(e){if(Array.isArray(e))return A(e)}(e)||z(e)||V(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 V(e,n){if(e){if("string"===typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,n):void 0}}var W,q,Q=BigInt(0),_=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],H="GiB",Y=BigInt(65536),J=BigInt(104857600),K={backgroundColor:d.Ej,color:d.lD,"&:hover":{backgroundColor:d.Ej}},X=function(e,n){var t=n.onButtonClick;return(0,r.jsx)(m.Z,{disabled:void 0===t,onClick:t,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(e)})},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.endAdornment,t=e.mainLabel,i=e.subLabel;return(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[t&&(0,r.jsx)(k.Ac,{inverted:!0,text:t}),i&&(0,r.jsx)(k.Ac,{inverted:!0,text:i})]}),n]})},ee=function(e,n,t,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=s.includeAnvilUUIDs,u=void 0===l?[]:l,c=s.includeFileUUIDs,d=void 0===c?[]:c,p=s.includeStorageGroupUUIDs,f=void 0===p?[]:p,v=function(){return!0},m=function(){return!0},x=function(){return!0};u.length>0&&(v=function(e){return u.includes(e)}),d.length>0&&(m=function(e){return d.includes(e)}),f.length>0&&(x=function(e){return f.includes(e)});var g={},h=o.reduce((function(e,n,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q;return e.all+=o,""===n||(void 0===e[n]&&(e[n]=Q),e[n]+=o),e}),{all:Q}),b=e.reduce((function(e,s){var l=s.anvilUUID;if(v(l)){var u,c=s.anvilTotalCPUCores,d=s.anvilTotalAvailableMemory,p=s.files,f=s.fileUUIDs,b=s.storageGroups,y=[],j=Q,U=Q;if(b.forEach((function(e){var n=e.storageGroupUUID,t=e.storageGroupFree;x(n)&&(y.push(n),U+=t,t>j&&(j=t))})),[function(){return b.length>0},function(){return t<=c},function(){return r<=d},function(){return o.every((function(e,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q,a=!0,s=o<=j;return""!==e&&(a=y.includes(e),s=o<=n[e].storageGroupFree),a&&s}))},function(){return Object.entries(h).every((function(e){var t=L(e,2),r=t[0],i=t[1];return"all"===r?i<=U:i<=n[r].storageGroupFree}))},function(){return a.every((function(e){return""===e||f.includes(e)}))}].every((function(e){return e()})))e.anvils.push(s),e.anvilUUIDs.push(l),e.maxCPUCores=Math.max(c,e.maxCPUCores),d>e.maxMemory&&(e.maxMemory=d),p.forEach((function(e){var n=e.fileUUID;m(n)&&(g[n]=!0)})),(u=e.storageGroupUUIDs).push.apply(u,R(y)),e.maxVirtualDiskSizes.fill(j)}return e}),{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:Q,maxVirtualDiskSizes:o.map((function(){return Q})),storageGroupUUIDs:[]});return b.fileUUIDs=Object.keys(g),o.forEach((function(e,t){""!==e&&(b.maxVirtualDiskSizes[t]=n[e].storageGroupFree)})),b},ne=function(e){return e.filter((function(e){return""!==e}))},te=function(e){return{fromUnit:"B",onSuccess:{string:e},precision:0,toUnit:"ibyte"}};(0,x.Bh)(Y,te((function(e,n){W="".concat(e," ").concat(n)}))),(0,x.Bh)(J,te((function(e,n){q="".concat(e," ").concat(n)})));var re=function(e){var n=e.dialogProps.open,t=e.onClose,i=(0,o.useState)([]),y=i[0],j=i[1],U=(0,o.useState)({}),I=U[0],P=U[1],D=(0,o.useState)({}),O=D[0],A=D[1],G=(0,o.useState)({}),z=G[0],T=G[1],V=(0,o.useState)({}),te=V[0],re=V[1],ie=(0,o.useState)([]),oe=ie[0],ae=ie[1],se=(0,o.useState)([]),le=se[0],ue=se[1],ce=(0,o.useState)([]),de=ce[0],pe=ce[1],fe=(0,o.useState)([]),ve=fe[0],me=fe[1],xe=(0,o.useState)(""),ge=xe[0],he=xe[1],be=(0,o.useState)(),ye=be[0],je=be[1],Ue=(0,o.useState)(1),Se=Ue[0],Ie=Ue[1],Pe=(0,o.useState)(0),De=Pe[0],Oe=Pe[1],Ze=(0,o.useState)(),we=Ze[0],Me=Ze[1],Ce=(0,o.useState)(Q),ke=Ce[0],Ae=Ce[1],Ge=(0,o.useState)(Q),Be=Ge[0],ze=Ge[1],Te=(0,o.useState)(),Fe=Te[0],Ne=Te[1],Le=(0,o.useState)("0"),Ee=Le[0],Re=Le[1],Ve=(0,o.useState)(""),We=Ve[0],qe=Ve[1],Qe=(0,o.useState)(H),_e=Qe[0],He=Qe[1],Ye=(0,o.useState)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.existingVirtualDisks,t=void 0===n?{stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]}:n,r=e.stateId,i=void 0===r?(0,c.Z)():r,o=e.inputMax,a=void 0===o?"0":o,s=e.inputSize,l=void 0===s?"":s,u=e.inputSizeMessage,d=void 0===u?void 0:u,p=e.inputStorageGroupUUID,f=void 0===p?"":p,v=e.inputStorageGroupUUIDMessage,m=void 0===v?void 0:v,x=e.inputUnit,g=void 0===x?H:x,h=e.max,b=void 0===h?Q:h,y=e.setVirtualDisks,j=e.size,U=void 0===j?Q:j,S=t.stateIds,I=t.inputMaxes,P=t.inputSizeMessages,D=t.inputSizes,O=t.inputStorageGroupUUIDMessages,Z=t.inputStorageGroupUUIDs,w=t.inputUnits,M=t.maxes,C=t.sizes;return S.push(i),I.push(a),P.push(d),D.push(l),O.push(m),Z.push(f),w.push(g),M.push(b),C.push(U),null===y||void 0===y||y.call(null,F({},t)),t}()),Je=Ye[0],Ke=Ye[1],Xe=(0,o.useState)(""),$e=Xe[0],en=Xe[1],nn=(0,o.useState)(),tn=nn[0],rn=nn[1],on=(0,o.useState)(""),an=on[0],sn=on[1],ln=(0,o.useState)()[0],un=(0,o.useState)(""),cn=un[0],dn=un[1],pn=(0,o.useState)(),fn=pn[0],vn=pn[1],mn=(0,o.useState)(null),xn=mn[0],gn=mn[1],hn=(0,o.useState)(),bn=hn[0],yn=hn[1],jn=(0,o.useState)([]),Un=jn[0],Sn=jn[1],In=(0,o.useState)([]),Pn=In[0],Dn=In[1],On=(0,o.useState)([]),Zn=On[0],wn=On[1],Mn=(0,o.useState)(!1),Cn=Mn[0],kn=Mn[1],An=(0,o.useState)(!1),Gn=An[0],Bn=An[1],zn=(0,o.useState)(!1),Tn=zn[0],Fn=zn[1],Nn=(0,o.useState)(0),Ln=Nn[0],En=Nn[1],Rn=(0,o.useMemo)((function(){for(var e=[],n=1;n<=De;n+=1)e.push(n);return e}),[De]),Vn={serverName:{defaults:{onSuccess:function(){je(void 0)},value:ge},isRequired:!0,tests:[{onFailure:function(){je({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:function(e){var n=e.value.length;return n>=1&&n<=16}},{onFailure:function(){je({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:function(e){var n=e.value;return/^[a-zA-Z0-9_-]+$/.test(n)}},{onFailure:function(){je({text:"This server name already exists, please choose another name.",type:"warning"})},test:function(e){var n=e.value;return void 0===z[n]}}]},cpuCores:{defaults:{max:De,min:1,onSuccess:function(){Me(void 0)},value:Se},isRequired:!0,tests:[{onFailure:function(){Me({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Me({text:"The number of CPU cores is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},memory:{defaults:{displayMax:"".concat(Ee," ").concat(_e),displayMin:W,max:Be,min:Y,onSuccess:function(){Ne(void 0)},value:ke},isRequired:!0,tests:[{onFailure:function(){Ne({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Ne({text:"Memory is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},installISO:{defaults:{onSuccess:function(){rn(void 0)},value:$e},isRequired:!0,tests:[{test:C.HJ}]},anvil:{defaults:{onSuccess:function(){vn(void 0)},value:cn},isRequired:!0,tests:[{test:C.HJ}]},optimizeForOS:{defaults:{onSuccess:function(){yn(void 0)},value:null===xn||void 0===xn?void 0:xn.key},isRequired:!0,tests:[{test:C.HJ}]}};Je.inputSizeMessages.forEach((function(e,n){Vn["vd".concat(n,"Size")]={defaults:{displayMax:"".concat(Je.inputMaxes[n]," ").concat(Je.inputUnits[n]),displayMin:q,max:Je.maxes[n],min:J,onSuccess:function(){Je.inputSizeMessages[n]=void 0},value:Je.sizes[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{onFailure:function(){Je.inputSizeMessages[n]={text:"Non available.",type:"warning"}},test:C.X7},{onFailure:function(e){var t=e.displayMax,r=e.displayMin;Je.inputSizeMessages[n]={text:"Virtual disk ".concat(n," size is expected to be between ").concat(r," and ").concat(t,"."),type:"warning"}},test:C.SQ}]},Vn["vd".concat(n,"StorageGroup")]={defaults:{onSuccess:function(){Je.inputStorageGroupUUIDMessages[n]=void 0},value:Je.inputStorageGroupUUIDs[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{test:C.HJ}]}}));var Wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.allAnvils,t=void 0===n?y:n,r=e.cpuCores,i=void 0===r?Se:r,o=e.fileUUIDs,a=void 0===o?[$e,an]:o,s=e.includeAnvilUUIDs,l=void 0===s?ne([cn]):s,u=e.includeFileUUIDs,c=e.includeStorageGroupUUIDs,d=e.inputMemoryUnit,p=void 0===d?_e:d,f=e.memory,v=void 0===f?ke:f,m=e.storageGroupUUIDMapToData,g=void 0===m?te:m,h=e.virtualDisks,b=void 0===h?Je:h,j=ee(t,g,i,v,b.sizes,b.inputStorageGroupUUIDs,a,{includeAnvilUUIDs:l,includeFileUUIDs:u,includeStorageGroupUUIDs:c}),U=j.anvilUUIDs,S=j.fileUUIDs,I=j.maxCPUCores,P=j.maxMemory,D=j.maxVirtualDiskSizes,O=j.storageGroupUUIDs;Oe(I),ze(P);var Z=[];b.maxes=D,b.maxes.forEach((function(e,n){(0,x.Bh)(e,{fromUnit:"B",onSuccess:{string:function(e,t){b.inputMaxes[n]=e,Z[n]="".concat(e," ").concat(t)}},toUnit:b.inputUnits[n]})})),Ke(F({},b)),Sn(U),Dn(S),wn(O);var w="";return(0,x.Bh)(P,{fromUnit:"B",onSuccess:{string:function(e,n){Re(e),w="".concat(e," ").concat(n)}},toUnit:p}),{formattedMaxMemory:w,formattedMaxVDSizes:Z,maxCPUCores:I,maxMemory:P,maxVirtualDiskSizes:D}},qn=(0,o.useCallback)(Wn,[]),Qn=function(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.cmValue,t=void 0===n?Q:n,r=e.cmUnit,i=void 0===r?_e:r;Ae(t);var o=Wn({inputMemoryUnit:i,memory:t}),a=o.formattedMaxMemory,s=o.maxMemory;Qn({inputs:{memory:{displayMax:a,max:s,value:t}}})},Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.value,t=void 0===n?We:n,r=e.unit,i=void 0===r?_e:r;t!==We&&qe(t),i!==_e&&He(i),(0,x.KY)(t,i,(function(e){return _n({cmValue:e,cmUnit:i})}),(function(){return _n({cmUnit:i})}))},Yn=function(e){en(e),Wn({fileUUIDs:[e,an]})},Jn=function(e){sn(e),Wn({fileUUIDs:[$e,e]})},Kn=function(e){var n=ne([e]);dn(e),Wn({includeAnvilUUIDs:n})};return(0,o.useEffect)((function(){p.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then((function(e){var n=e.data,t=function(e){var n={},t=e.reduce((function(e,t){var i=t.anvilUUID,o=t.anvilName,s=t.anvilTotalMemory,l=t.anvilTotalAllocatedMemory,u=t.anvilTotalAvailableMemory,c=t.hosts,d=t.servers,p=t.storageGroups,f=t.files,v=p.reduce((function(n,t){var a=F({},t,{anvilUUID:i,anvilName:o,storageGroupSize:BigInt(t.storageGroupSize),storageGroupFree:BigInt(t.storageGroupFree),humanizedStorageGroupFree:""});return(0,x.Bh)(t.storageGroupFree,{fromUnit:"B",onSuccess:{string:function(e,n){a.humanizedStorageGroupFree="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),n.anvilStorageGroupUUIDs.push(t.storageGroupUUID),n.anvilStorageGroups.push(a),e.storageGroups.push(a),e.storageGroupSelectItems.push({displayValue:$({endAdornment:(0,r.jsx)(k.Ac,{inverted:!0,text:"~".concat(a.humanizedStorageGroupFree," free")}),mainLabel:t.storageGroupName,subLabel:o}),value:t.storageGroupUUID}),e.storageGroupUUIDMapToData[t.storageGroupUUID]=a,n}),{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=v.anvilStorageGroups,g=v.anvilStorageGroupUUIDs,h=[];f.forEach((function(e){var t=e.fileUUID;h.push(t),n[t]=e}));var b=F({},t,{anvilTotalMemory:BigInt(s),anvilTotalAllocatedMemory:BigInt(l),anvilTotalAvailableMemory:BigInt(u),humanizedAnvilTotalAvailableMemory:"",hosts:c.map((function(e){return F({},e,{hostMemory:BigInt(e.hostMemory)})})),servers:d.map((function(n){var t=n.serverMemory,r=n.serverName,i=F({},N(n,["serverMemory","serverName"]),{serverMemory:BigInt(t),serverName:r});return e.serverNameMapToData[r]=i,i})),storageGroupUUIDs:g,storageGroups:m,fileUUIDs:h});return(0,x.Bh)(u,{fromUnit:"B",onSuccess:{string:function(e,n){b.humanizedAnvilTotalAvailableMemory="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),e.anvils.push(b),e.anvilSelectItems.push({displayValue:$({endAdornment:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,r.jsx)(k.Ac,{inverted:!0,text:"CPU: ".concat(b.anvilTotalCPUCores," cores")}),(0,r.jsx)(k.Ac,{inverted:!0,text:"Memory: ~".concat(b.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:b.anvilName,subLabel:b.anvilDescription}),value:i}),e.anvilUUIDMapToData[i]=b,e}),{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(n).forEach((function(e){t.files.push(e),t.fileSelectItems.push({displayValue:e.fileName,value:e.fileUUID}),t.fileUUIDMapToData[e.fileUUID]=e})),t}(n.anvils),i=t.anvils,o=t.anvilSelectItems,s=t.anvilUUIDMapToData,l=t.fileSelectItems,u=t.fileUUIDMapToData,c=t.serverNameMapToData,d=t.storageGroupSelectItems,p=t.storageGroupUUIDMapToData;j(i),P(s),A(u),T(c),re(p),ae(o),ue(l),me(d);var f={allAnvils:i,storageGroupUUIDMapToData:p};if(1===o.length){var v=o[0].value;dn(v),f.includeAnvilUUIDs=[v]}if(1===l.length){var m=l[0].value;en(m),f.fileUUIDs=[m,""]}if(1===d.length){var g=d[0].value;Ke((function(e){var n=F({},e);return n.inputStorageGroupUUIDs[0]=g,f.virtualDisks=n,n}))}qn(f),pe(Object.entries(n.oses).map((function(e){var n=L(e,2);return{key:n[0],label:n[1]}}))),kn(!0)}))}),[qn]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{fullWidth:!0,maxWidth:"sm",open:n,PaperComponent:w.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,r.jsxs)(w.V9,{children:[(0,r.jsx)(k.z,{text:"Provision a Server"}),(0,r.jsx)(g.Z,{onClick:t,sx:{backgroundColor:d.hM,color:d.lD,"&:hover":{backgroundColor:d.hM}},children:(0,r.jsx)(u.Z,{})})]}),Cn?(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(b.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:function(e){var n=e.target.value;he(n),Qn({inputs:{serverName:{value:n}}})},value:ge},inputLabelProps:{isNotifyRequired:0===ge.length},messageBoxProps:ye})}),(0,r.jsx)(f.Z,{id:"ps-cpu-cores",disableClearable:!0,extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=Se<=0},getOptionLabel:function(e){return String(e)},label:"CPU cores",messageBoxProps:we,noOptionsText:"No available number of cores.",onChange:function(e,n){if(n&&n!==Se){Ie(n);var t=Wn({cpuCores:n}).maxCPUCores;Qn({inputs:{cpuCores:{max:t,value:n}}})}},openOnFocus:!0,options:Rn,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-cpu-cores-".concat(n),children:n}))},value:Se}),(0,r.jsx)(Z,{id:"ps-memory",label:"Memory",messageBoxProps:Fe,inputWithLabelProps:{inputProps:{endAdornment:X("".concat(Ee," ").concat(_e),{onButtonClick:function(){qe(Ee),_n({cmValue:Be})}}),onChange:function(e){var n=e.target.value;Hn({value:n})},type:"number",value:We},inputLabelProps:{isNotifyRequired:ke===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;Hn({unit:n})},value:_e}}}),Je.stateIds.map((function(e,n){return function(e,n,t,i,o,s,l,u){var c=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return e[t][r]},d=function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;e[r][o]=i,t(F({},e))},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q;d("sizes",t);var r=s({virtualDisks:e}),i=r.formattedMaxVDSizes,o=r.maxVirtualDiskSizes;u({inputs:B({},"vd".concat(n,"Size"),{displayMax:"".concat(i[n]),max:o[n],value:t})})},f=function(e){var n=e.value,t=void 0===n?c("inputSizes"):n,r=e.unit,i=void 0===r?c("inputUnits"):r;t!==c("inputSizes")&&d("inputSizes",t),i!==c("inputUnits")&&d("inputUnits",i),(0,x.KY)(t,i,(function(e){return p(e)}),(function(){return p()}))},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c("inputStorageGroupUUIDs");n!==c("inputStorageGroupUUIDs")&&d("inputStorageGroupUUIDs",n),s({virtualDisks:e})};return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(Z,{id:"ps-virtual-disk-size-".concat(n),label:"Disk size",messageBoxProps:c("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:X("".concat(c("inputMaxes")," ").concat(c("inputUnits")),{onButtonClick:function(){d("inputSizes",c("inputMaxes")),p(c("maxes"))}}),onChange:function(e){var n=e.target.value;f({value:n})},type:"number",value:c("inputSizes")},inputLabelProps:{isNotifyRequired:c("sizes")===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;f({unit:n})},value:c("inputUnits")}}})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(S.Z,{id:"ps-storage-group-".concat(n),label:"Storage group",disableItem:function(e){return!(o.includes(e)&&c("sizes")<=l[e].storageGroupFree)},inputLabelProps:{isNotifyRequired:0===c("inputStorageGroupUUIDs").length},messageBoxProps:c("inputStorageGroupUUIDMessages"),selectItems:i,selectProps:{onChange:function(e){var n=e.target.value;v(n)},onClearIndicatorClick:function(){return v("")},renderValue:function(e){var n,t=null!==(n=l[e])&&void 0!==n?n:{},r=t.anvilName,i=void 0===r?"?":r,o=t.storageGroupName,a=void 0===o?"Unknown (".concat(e,")"):o;return"".concat(a," (").concat(i,")")},value:c("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(c("stateIds")))}(Je,n,Ke,ve,Zn,Wn,te,Qn)})),(0,r.jsx)(S.Z,{disableItem:function(e){return e===an},hideItem:function(e){return!Pn.includes(e)},id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===$e.length},label:"Install ISO",messageBoxProps:tn,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Yn(n)},onClearIndicatorClick:function(){return Yn("")},value:$e}}),(0,r.jsx)(S.Z,{disableItem:function(e){return e===$e},hideItem:function(e){return!Pn.includes(e)},id:"ps-driver-image",label:"Driver ISO",messageBoxProps:ln,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Jn(n)},onClearIndicatorClick:function(){return Jn("")},value:an}}),(0,r.jsx)(S.Z,{disableItem:function(e){return!Un.includes(e)},id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===cn.length},label:"Anvil node",messageBoxProps:fn,selectItems:oe,selectProps:{onChange:function(e){var n=e.target.value;Kn(n)},onClearIndicatorClick:function(){return Kn("")},renderValue:function(e){var n,t=(null!==(n=I[e])&&void 0!==n?n:{}).anvilName;return void 0===t?"Unknown ".concat(e):t},value:cn}}),(0,r.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=null===xn},isOptionEqualToValue:function(e,n){return e.key===n.key},label:"Optimize for OS",messageBoxProps:bn,noOptionsText:"No matching OS",onChange:function(e,n){gn(n)},openOnFocus:!0,options:de,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-optimize-for-os-".concat(n.key),children:[n.label," (",n.key,")"]}))},value:xn})]}):(0,r.jsx)(M.Z,{}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[Ln>0&&(0,r.jsx)(h.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),Tn?(0,r.jsx)(M.Z,{mt:0}):(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,r.jsx)(m.Z,{disabled:!Qn({isIgnoreOnCallbacks:!0}),onClick:function(){Bn(!0)},sx:K,children:"Provision"})})]})]}),Gn&&(0,r.jsx)(v.Z,{actionProceedText:"Provision",content:function(){var e=10;return(0,r.jsxs)(s.ZP,{container:!0,columns:e,direction:"column",children:[(0,r.jsx)(s.ZP,{item:!0,xs:e,children:(0,r.jsxs)(k.Ac,{children:["Server ",(0,r.jsx)(k.Q0,{text:ge})," will be created on anvil node"," ",(0,r.jsx)(k.Q0,{text:I[cn].anvilName})," ","with the following properties:"]})}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:Se})," ","core(s)"]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:De})," ","core(s) available"]})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsx)(k.Ac,{children:(0,r.jsxs)(k.Q0,{edge:"start",children:[We," ",_e]})})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[Ee," ",_e]})," ","available"]})})]}),Je.stateIds.map((function(n,t){var i=Je.inputMaxes[t],o=Je.inputSizes[t],a=Je.inputUnits[t],l=te[Je.inputStorageGroupUUIDs[t]].storageGroupName;return(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsxs)(k.Ac,{children:["Disk ",(0,r.jsx)(k.Q0,{text:t})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[o," ",a]})," ","on ",(0,r.jsx)(k.Q0,{children:l})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[i," ",a]})," ","available"]})})]},"ps-virtual-disk-".concat(n,"-summary"))})),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Install ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:O[$e].fileName})})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Driver ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:O[an]?(0,r.jsx)(k.Q0,{edge:"start",children:O[an].fileName}):"none"})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Optimize for OS"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:"".concat(null===xn||void 0===xn?void 0:xn.label)})})})]})]})}(),dialogProps:{open:Gn},onCancelAppend:function(){Bn(!1)},onProceedAppend:function(){var e={serverName:ge,cpuCores:Se,memory:ke.toString(),virtualDisks:Je.stateIds.map((function(e,n){return{storageSize:Je.sizes[n].toString(),storageGroupUUID:Je.inputStorageGroupUUIDs[n]}})),installISOFileUUID:$e,driverISOFileUUID:an,anvilUUID:cn,optimizeForOS:null===xn||void 0===xn?void 0:xn.key};Fn(!0),p.Z.post("/server",e).then((function(){Fn(!1),En(Ln+1)})),Bn(!1)},proceedButtonProps:{sx:K},titleText:"Provision ".concat(ge,"?")})]})}},2519:function(e,n,t){t.d(n,{Z:function(){return O}});var r=t(5893),i=t(5603),o=t(8128),a=t(3640),s=t(7294),l=t(1363),u=t(4427),c=t(9),d=t(192),p=t(5537),f=t(9558),v=t(6239),m=t(7021),x=t(1057),g=t(4799),h=t(3213),b=t(7169);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S=function(e){var n=e.onClearIndicatorClick,t=U(e,["onClearIndicatorClick"]),o=t.sx,a=t.value,l=U(t,["sx","value"]),u=(0,s.useMemo)((function(){var e;return j((y(e={},"& .".concat(i.Z.icon),{color:b.s7}),y(e,"& .".concat(f.Z.root),{marginRight:".8em"}),y(e,"& .".concat(v.Z.root),{color:b.s7,visibility:"hidden"}),y(e,"&:hover .".concat(f.Z.root," .").concat(v.Z.root,",\n &.").concat(m.Z.focused," .").concat(f.Z.root," .").concat(v.Z.root),{visibility:"visible"}),e),o)}),[o]),c=(0,s.useMemo)((function(){return String(a).length>0&&n&&(0,r.jsx)(x.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(p.Z,{fontSize:"small"})})})}),[n,a]);return(0,r.jsx)(h.Z,j({endAdornment:c,value:a},l,{sx:u}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var O=function(e){var n=e.id,t=e.label,p=e.selectItems,f=e.checkItem,v=e.disableItem,m=e.formControlProps,x=e.hideItem,g=e.inputLabelProps,h=void 0===g?{}:g,b=e.isReadOnly,y=void 0!==b&&b,j=e.messageBoxProps,U=void 0===j?{}:j,O=e.name,Z=e.onBlur,w=e.onChange,M=e.onFocus,C=e.required,k=e.selectProps,A=void 0===k?{}:k,G=A.multiple,B=A.sx,z=e.value,T=e.isCheckableItems,F=void 0===T?G:T,N=D(e.selectProps,["multiple","sx"]),L=(0,s.useMemo)((function(){return y?P(I({},"& .".concat(i.Z.icon),{visibility:"hidden"}),B):B}),[y,B]),E=(0,s.useCallback)((function(e){return F&&(0,r.jsx)(o.Z,{checked:null===f||void 0===f?void 0:f.call(null,e)})}),[f,F]),R=(0,s.useCallback)((function(e,t){return(0,r.jsxs)(u.Z,{disabled:null===v||void 0===v?void 0:v.call(null,e),sx:{display:(null===x||void 0===x?void 0:x.call(null,e))?"none":void 0},value:e,children:[E(e),t]},"".concat(n,"-").concat(e))}),[E,v,x,n]),V=(0,s.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),W=(0,s.useMemo)((function(){return(0,r.jsx)(c.Z,{id:n,label:t})}),[n,t]),q=(0,s.useMemo)((function(){return t&&(0,r.jsx)(d.Z,P({htmlFor:V,isNotifyRequired:C},h,{children:t}))}),[h,C,t,V]),Q=(0,s.useMemo)((function(){return p.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return R(t,void 0===r?t:r)}))}),[R,p]);return(0,r.jsxs)(a.Z,P({fullWidth:!0},m,{children:[q,(0,r.jsx)(S,P({id:V,input:W,multiple:G,name:O,onBlur:Z,onChange:w,onFocus:M,readOnly:y,value:z},N,{sx:L,children:Q})),(0,r.jsx)(l.Z,P({},U))]}))}},5737:function(e,n,t){t.d(n,{Bh:function(){return i},KY:function(){return o},MU:function(){return a}});var r=t(4490),i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fromUnit,i=n.onFailure,o=n.onSuccess,a=n.precision,s=n.toUnit,l=(0,r.gO)(e,{fromUnit:t,precision:a,toUnit:s});if(l){var u=l.value,c=l.unit;try{var d,p,f;null===o||void 0===o||null===(d=o.bigint)||void 0===d||d.call(null,BigInt(u),c),null===o||void 0===o||null===(p=o.number)||void 0===p||p.call(null,parseFloat(u),c),null===o||void 0===o||null===(f=o.string)||void 0===f||f.call(null,u,c)}catch(v){null===i||void 0===i||i.call(null,v,u,c)}}else null===i||void 0===i||i.call(null)},o=function(e,n,t,r){i(e,{fromUnit:n,onFailure:r,onSuccess:{bigint:t},precision:0,toUnit:"B"})},a=function(e){return(0,r._d)(e,{toUnit:"ibyte"})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{4594:function(e,n,t){var r=t(5893),i=t(6514),o=t(5113),a=t(4656),s=t(482),l=t(2994),u=t(7357),c=t(9890),d=t(7169),p=t(1363),f=t(6284);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var g=function(e){return(0,r.jsx)(i.Z,{in:!0,children:(0,r.jsx)(o.Z,m({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,i=e.label,o=e.messageBoxProps,h=e.renderInput,b=e.sx,y=x(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),j=m({paper:{sx:{backgroundColor:d.lD}}},n),U=null!==h&&void 0!==h?h:function(e){var n=e.fullWidth,o=e.InputProps,a=e.InputLabelProps,s=e.inputProps,l={formControlProps:{fullWidth:n,ref:o.ref},inputLabelProps:a,inputProps:{className:o.className,endAdornment:o.endAdornment,inputProps:s,startAdornment:o.startAdornment},label:i};return null===t||void 0===t||t.call(null,l,e),(0,r.jsx)(f.Z,m({},l))},S=m(v({},"& .".concat(a.Z.root," .").concat(s.Z.endAdornment),v({right:"7px"},"& .".concat(l.Z.root),{color:d.s7})),b);return(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(c.Z,m({PaperComponent:g},y,{componentsProps:j,renderInput:U,sx:S})),(0,r.jsx)(p.Z,m({},o))]})}},8750:function(e,n,t){t.d(n,{Z:function(){return F}});var r=t(5893),i=t(1113),o=t(1496),a=t(2293),s=t(7357),l=t(2992),u=t(4799),c=t(7294),d=t(7169),p=t(4433),f=t(9029),v=t(7533),m=t(8462),x=t(7212),g=t(8619),h=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"},y=t(4390),j=t(582),U=t(4690),S=t(1770),I=t(7750),P=t(1883);function D(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){var r=t(5893),i=t(2429),o=t(9309),a=t(7169);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"}},"&:hover\n .".concat(y.Z.root,"\n .").concat(j.Z.root,"\n .").concat(j.Z.notchedOutline),{borderColor:d.s7}),children:[(0,r.jsx)(b.Z,P({id:n,label:t},o)),(0,r.jsx)(S.Z,P({formControlProps:{fullWidth:!1,sx:{minWidth:"min-content"}},id:"".concat(n,"-nested-select"),selectItems:u},p))]}),(0,r.jsx)(U.Z,P({},l))]})};O.defaultProps=D;var Z=O,w=t(3679),M=t(2152),C=t(2027),k=t(7750);function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function L(e,n){return G(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(e,n)||V(e,n)||T()}function E(e){return G(e)||z(e)||V(e,i)||T()}function R(e){return function(e){if(Array.isArray(e))return A(e)}(e)||z(e)||V(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 V(e,n){if(e){if("string"===typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,n):void 0}}var W,q,Q=BigInt(0),_=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],H="GiB",Y=BigInt(65536),J=BigInt(104857600),K={backgroundColor:d.Ej,color:d.lD,"&:hover":{backgroundColor:d.Ej}},X=function(e,n){var t=n.onButtonClick;return(0,r.jsx)(m.Z,{disabled:void 0===t,onClick:t,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(e)})},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.endAdornment,t=e.mainLabel,i=e.subLabel;return(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[t&&(0,r.jsx)(k.Ac,{inverted:!0,text:t}),i&&(0,r.jsx)(k.Ac,{inverted:!0,text:i})]}),n]})},ee=function(e,n,t,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=s.includeAnvilUUIDs,u=void 0===l?[]:l,c=s.includeFileUUIDs,d=void 0===c?[]:c,p=s.includeStorageGroupUUIDs,f=void 0===p?[]:p,v=function(){return!0},m=function(){return!0},x=function(){return!0};u.length>0&&(v=function(e){return u.includes(e)}),d.length>0&&(m=function(e){return d.includes(e)}),f.length>0&&(x=function(e){return f.includes(e)});var g={},h=o.reduce((function(e,n,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q;return e.all+=o,""===n||(void 0===e[n]&&(e[n]=Q),e[n]+=o),e}),{all:Q}),b=e.reduce((function(e,s){var l=s.anvilUUID;if(v(l)){var u,c=s.anvilTotalCPUCores,d=s.anvilTotalAvailableMemory,p=s.files,f=s.fileUUIDs,b=s.storageGroups,y=[],j=Q,U=Q;if(b.forEach((function(e){var n=e.storageGroupUUID,t=e.storageGroupFree;x(n)&&(y.push(n),U+=t,t>j&&(j=t))})),[function(){return b.length>0},function(){return t<=c},function(){return r<=d},function(){return o.every((function(e,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q,a=!0,s=o<=j;return""!==e&&(a=y.includes(e),s=o<=n[e].storageGroupFree),a&&s}))},function(){return Object.entries(h).every((function(e){var t=L(e,2),r=t[0],i=t[1];return"all"===r?i<=U:i<=n[r].storageGroupFree}))},function(){return a.every((function(e){return""===e||f.includes(e)}))}].every((function(e){return e()})))e.anvils.push(s),e.anvilUUIDs.push(l),e.maxCPUCores=Math.max(c,e.maxCPUCores),d>e.maxMemory&&(e.maxMemory=d),p.forEach((function(e){var n=e.fileUUID;m(n)&&(g[n]=!0)})),(u=e.storageGroupUUIDs).push.apply(u,R(y)),e.maxVirtualDiskSizes.fill(j)}return e}),{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:Q,maxVirtualDiskSizes:o.map((function(){return Q})),storageGroupUUIDs:[]});return b.fileUUIDs=Object.keys(g),o.forEach((function(e,t){""!==e&&(b.maxVirtualDiskSizes[t]=n[e].storageGroupFree)})),b},ne=function(e){return e.filter((function(e){return""!==e}))},te=function(e){return{fromUnit:"B",onSuccess:{string:e},precision:0,toUnit:"ibyte"}};(0,x.Bh)(Y,te((function(e,n){W="".concat(e," ").concat(n)}))),(0,x.Bh)(J,te((function(e,n){q="".concat(e," ").concat(n)})));var re=function(e){var n=e.dialogProps.open,t=e.onClose,i=(0,o.useState)([]),y=i[0],j=i[1],U=(0,o.useState)({}),I=U[0],P=U[1],D=(0,o.useState)({}),O=D[0],A=D[1],G=(0,o.useState)({}),z=G[0],T=G[1],V=(0,o.useState)({}),te=V[0],re=V[1],ie=(0,o.useState)([]),oe=ie[0],ae=ie[1],se=(0,o.useState)([]),le=se[0],ue=se[1],ce=(0,o.useState)([]),de=ce[0],pe=ce[1],fe=(0,o.useState)([]),ve=fe[0],me=fe[1],xe=(0,o.useState)(""),ge=xe[0],he=xe[1],be=(0,o.useState)(),ye=be[0],je=be[1],Ue=(0,o.useState)(1),Se=Ue[0],Ie=Ue[1],Pe=(0,o.useState)(0),De=Pe[0],Oe=Pe[1],Ze=(0,o.useState)(),we=Ze[0],Me=Ze[1],Ce=(0,o.useState)(Q),ke=Ce[0],Ae=Ce[1],Ge=(0,o.useState)(Q),Be=Ge[0],ze=Ge[1],Te=(0,o.useState)(),Fe=Te[0],Ne=Te[1],Le=(0,o.useState)("0"),Ee=Le[0],Re=Le[1],Ve=(0,o.useState)(""),We=Ve[0],qe=Ve[1],Qe=(0,o.useState)(H),_e=Qe[0],He=Qe[1],Ye=(0,o.useState)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.existingVirtualDisks,t=void 0===n?{stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]}:n,r=e.stateId,i=void 0===r?(0,c.Z)():r,o=e.inputMax,a=void 0===o?"0":o,s=e.inputSize,l=void 0===s?"":s,u=e.inputSizeMessage,d=void 0===u?void 0:u,p=e.inputStorageGroupUUID,f=void 0===p?"":p,v=e.inputStorageGroupUUIDMessage,m=void 0===v?void 0:v,x=e.inputUnit,g=void 0===x?H:x,h=e.max,b=void 0===h?Q:h,y=e.setVirtualDisks,j=e.size,U=void 0===j?Q:j,S=t.stateIds,I=t.inputMaxes,P=t.inputSizeMessages,D=t.inputSizes,O=t.inputStorageGroupUUIDMessages,Z=t.inputStorageGroupUUIDs,w=t.inputUnits,M=t.maxes,C=t.sizes;return S.push(i),I.push(a),P.push(d),D.push(l),O.push(m),Z.push(f),w.push(g),M.push(b),C.push(U),null===y||void 0===y||y.call(null,F({},t)),t}()),Je=Ye[0],Ke=Ye[1],Xe=(0,o.useState)(""),$e=Xe[0],en=Xe[1],nn=(0,o.useState)(),tn=nn[0],rn=nn[1],on=(0,o.useState)(""),an=on[0],sn=on[1],ln=(0,o.useState)()[0],un=(0,o.useState)(""),cn=un[0],dn=un[1],pn=(0,o.useState)(),fn=pn[0],vn=pn[1],mn=(0,o.useState)(null),xn=mn[0],gn=mn[1],hn=(0,o.useState)(),bn=hn[0],yn=hn[1],jn=(0,o.useState)([]),Un=jn[0],Sn=jn[1],In=(0,o.useState)([]),Pn=In[0],Dn=In[1],On=(0,o.useState)([]),Zn=On[0],wn=On[1],Mn=(0,o.useState)(!1),Cn=Mn[0],kn=Mn[1],An=(0,o.useState)(!1),Gn=An[0],Bn=An[1],zn=(0,o.useState)(!1),Tn=zn[0],Fn=zn[1],Nn=(0,o.useState)(0),Ln=Nn[0],En=Nn[1],Rn=(0,o.useMemo)((function(){for(var e=[],n=1;n<=De;n+=1)e.push(n);return e}),[De]),Vn={serverName:{defaults:{onSuccess:function(){je(void 0)},value:ge},isRequired:!0,tests:[{onFailure:function(){je({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:function(e){var n=e.value.length;return n>=1&&n<=16}},{onFailure:function(){je({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:function(e){var n=e.value;return/^[a-zA-Z0-9_-]+$/.test(n)}},{onFailure:function(){je({text:"This server name already exists, please choose another name.",type:"warning"})},test:function(e){var n=e.value;return void 0===z[n]}}]},cpuCores:{defaults:{max:De,min:1,onSuccess:function(){Me(void 0)},value:Se},isRequired:!0,tests:[{onFailure:function(){Me({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Me({text:"The number of CPU cores is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},memory:{defaults:{displayMax:"".concat(Ee," ").concat(_e),displayMin:W,max:Be,min:Y,onSuccess:function(){Ne(void 0)},value:ke},isRequired:!0,tests:[{onFailure:function(){Ne({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Ne({text:"Memory is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},installISO:{defaults:{onSuccess:function(){rn(void 0)},value:$e},isRequired:!0,tests:[{test:C.HJ}]},anvil:{defaults:{onSuccess:function(){vn(void 0)},value:cn},isRequired:!0,tests:[{test:C.HJ}]},optimizeForOS:{defaults:{onSuccess:function(){yn(void 0)},value:null===xn||void 0===xn?void 0:xn.key},isRequired:!0,tests:[{test:C.HJ}]}};Je.inputSizeMessages.forEach((function(e,n){Vn["vd".concat(n,"Size")]={defaults:{displayMax:"".concat(Je.inputMaxes[n]," ").concat(Je.inputUnits[n]),displayMin:q,max:Je.maxes[n],min:J,onSuccess:function(){Je.inputSizeMessages[n]=void 0},value:Je.sizes[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{onFailure:function(){Je.inputSizeMessages[n]={text:"Non available.",type:"warning"}},test:C.X7},{onFailure:function(e){var t=e.displayMax,r=e.displayMin;Je.inputSizeMessages[n]={text:"Virtual disk ".concat(n," size is expected to be between ").concat(r," and ").concat(t,"."),type:"warning"}},test:C.SQ}]},Vn["vd".concat(n,"StorageGroup")]={defaults:{onSuccess:function(){Je.inputStorageGroupUUIDMessages[n]=void 0},value:Je.inputStorageGroupUUIDs[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{test:C.HJ}]}}));var Wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.allAnvils,t=void 0===n?y:n,r=e.cpuCores,i=void 0===r?Se:r,o=e.fileUUIDs,a=void 0===o?[$e,an]:o,s=e.includeAnvilUUIDs,l=void 0===s?ne([cn]):s,u=e.includeFileUUIDs,c=e.includeStorageGroupUUIDs,d=e.inputMemoryUnit,p=void 0===d?_e:d,f=e.memory,v=void 0===f?ke:f,m=e.storageGroupUUIDMapToData,g=void 0===m?te:m,h=e.virtualDisks,b=void 0===h?Je:h,j=ee(t,g,i,v,b.sizes,b.inputStorageGroupUUIDs,a,{includeAnvilUUIDs:l,includeFileUUIDs:u,includeStorageGroupUUIDs:c}),U=j.anvilUUIDs,S=j.fileUUIDs,I=j.maxCPUCores,P=j.maxMemory,D=j.maxVirtualDiskSizes,O=j.storageGroupUUIDs;Oe(I),ze(P);var Z=[];b.maxes=D,b.maxes.forEach((function(e,n){(0,x.Bh)(e,{fromUnit:"B",onSuccess:{string:function(e,t){b.inputMaxes[n]=e,Z[n]="".concat(e," ").concat(t)}},toUnit:b.inputUnits[n]})})),Ke(F({},b)),Sn(U),Dn(S),wn(O);var w="";return(0,x.Bh)(P,{fromUnit:"B",onSuccess:{string:function(e,n){Re(e),w="".concat(e," ").concat(n)}},toUnit:p}),{formattedMaxMemory:w,formattedMaxVDSizes:Z,maxCPUCores:I,maxMemory:P,maxVirtualDiskSizes:D}},qn=(0,o.useCallback)(Wn,[]),Qn=function(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.cmValue,t=void 0===n?Q:n,r=e.cmUnit,i=void 0===r?_e:r;Ae(t);var o=Wn({inputMemoryUnit:i,memory:t}),a=o.formattedMaxMemory,s=o.maxMemory;Qn({inputs:{memory:{displayMax:a,max:s,value:t}}})},Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.value,t=void 0===n?We:n,r=e.unit,i=void 0===r?_e:r;t!==We&&qe(t),i!==_e&&He(i),(0,x.KY)(t,i,(function(e){return _n({cmValue:e,cmUnit:i})}),(function(){return _n({cmUnit:i})}))},Yn=function(e){en(e),Wn({fileUUIDs:[e,an]})},Jn=function(e){sn(e),Wn({fileUUIDs:[$e,e]})},Kn=function(e){var n=ne([e]);dn(e),Wn({includeAnvilUUIDs:n})};return(0,o.useEffect)((function(){p.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then((function(e){var n=e.data,t=function(e){var n={},t=e.reduce((function(e,t){var i=t.anvilUUID,o=t.anvilName,s=t.anvilTotalMemory,l=t.anvilTotalAllocatedMemory,u=t.anvilTotalAvailableMemory,c=t.hosts,d=t.servers,p=t.storageGroups,f=t.files,v=p.reduce((function(n,t){var a=F({},t,{anvilUUID:i,anvilName:o,storageGroupSize:BigInt(t.storageGroupSize),storageGroupFree:BigInt(t.storageGroupFree),humanizedStorageGroupFree:""});return(0,x.Bh)(t.storageGroupFree,{fromUnit:"B",onSuccess:{string:function(e,n){a.humanizedStorageGroupFree="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),n.anvilStorageGroupUUIDs.push(t.storageGroupUUID),n.anvilStorageGroups.push(a),e.storageGroups.push(a),e.storageGroupSelectItems.push({displayValue:$({endAdornment:(0,r.jsx)(k.Ac,{inverted:!0,text:"~".concat(a.humanizedStorageGroupFree," free")}),mainLabel:t.storageGroupName,subLabel:o}),value:t.storageGroupUUID}),e.storageGroupUUIDMapToData[t.storageGroupUUID]=a,n}),{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=v.anvilStorageGroups,g=v.anvilStorageGroupUUIDs,h=[];f.forEach((function(e){var t=e.fileUUID;h.push(t),n[t]=e}));var b=F({},t,{anvilTotalMemory:BigInt(s),anvilTotalAllocatedMemory:BigInt(l),anvilTotalAvailableMemory:BigInt(u),humanizedAnvilTotalAvailableMemory:"",hosts:c.map((function(e){return F({},e,{hostMemory:BigInt(e.hostMemory)})})),servers:d.map((function(n){var t=n.serverMemory,r=n.serverName,i=F({},N(n,["serverMemory","serverName"]),{serverMemory:BigInt(t),serverName:r});return e.serverNameMapToData[r]=i,i})),storageGroupUUIDs:g,storageGroups:m,fileUUIDs:h});return(0,x.Bh)(u,{fromUnit:"B",onSuccess:{string:function(e,n){b.humanizedAnvilTotalAvailableMemory="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),e.anvils.push(b),e.anvilSelectItems.push({displayValue:$({endAdornment:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,r.jsx)(k.Ac,{inverted:!0,text:"CPU: ".concat(b.anvilTotalCPUCores," cores")}),(0,r.jsx)(k.Ac,{inverted:!0,text:"Memory: ~".concat(b.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:b.anvilName,subLabel:b.anvilDescription}),value:i}),e.anvilUUIDMapToData[i]=b,e}),{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(n).forEach((function(e){t.files.push(e),t.fileSelectItems.push({displayValue:e.fileName,value:e.fileUUID}),t.fileUUIDMapToData[e.fileUUID]=e})),t}(n.anvils),i=t.anvils,o=t.anvilSelectItems,s=t.anvilUUIDMapToData,l=t.fileSelectItems,u=t.fileUUIDMapToData,c=t.serverNameMapToData,d=t.storageGroupSelectItems,p=t.storageGroupUUIDMapToData;j(i),P(s),A(u),T(c),re(p),ae(o),ue(l),me(d);var f={allAnvils:i,storageGroupUUIDMapToData:p};if(1===o.length){var v=o[0].value;dn(v),f.includeAnvilUUIDs=[v]}if(1===l.length){var m=l[0].value;en(m),f.fileUUIDs=[m,""]}if(1===d.length){var g=d[0].value;Ke((function(e){var n=F({},e);return n.inputStorageGroupUUIDs[0]=g,f.virtualDisks=n,n}))}qn(f),pe(Object.entries(n.oses).map((function(e){var n=L(e,2);return{key:n[0],label:n[1]}}))),kn(!0)}))}),[qn]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{fullWidth:!0,maxWidth:"sm",open:n,PaperComponent:w.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,r.jsxs)(w.V9,{children:[(0,r.jsx)(k.z,{text:"Provision a Server"}),(0,r.jsx)(g.Z,{onClick:t,sx:{backgroundColor:d.hM,color:d.lD,"&:hover":{backgroundColor:d.hM}},children:(0,r.jsx)(u.Z,{})})]}),Cn?(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(b.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:function(e){var n=e.target.value;he(n),Qn({inputs:{serverName:{value:n}}})},value:ge},inputLabelProps:{isNotifyRequired:0===ge.length},messageBoxProps:ye})}),(0,r.jsx)(f.Z,{id:"ps-cpu-cores",disableClearable:!0,extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=Se<=0},getOptionLabel:function(e){return String(e)},label:"CPU cores",messageBoxProps:we,noOptionsText:"No available number of cores.",onChange:function(e,n){if(n&&n!==Se){Ie(n);var t=Wn({cpuCores:n}).maxCPUCores;Qn({inputs:{cpuCores:{max:t,value:n}}})}},openOnFocus:!0,options:Rn,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-cpu-cores-".concat(n),children:n}))},value:Se}),(0,r.jsx)(Z,{id:"ps-memory",label:"Memory",messageBoxProps:Fe,inputWithLabelProps:{inputProps:{endAdornment:X("".concat(Ee," ").concat(_e),{onButtonClick:function(){qe(Ee),_n({cmValue:Be})}}),onChange:function(e){var n=e.target.value;Hn({value:n})},type:"number",value:We},inputLabelProps:{isNotifyRequired:ke===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;Hn({unit:n})},value:_e}}}),Je.stateIds.map((function(e,n){return function(e,n,t,i,o,s,l,u){var c=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return e[t][r]},d=function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;e[r][o]=i,t(F({},e))},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q;d("sizes",t);var r=s({virtualDisks:e}),i=r.formattedMaxVDSizes,o=r.maxVirtualDiskSizes;u({inputs:B({},"vd".concat(n,"Size"),{displayMax:"".concat(i[n]),max:o[n],value:t})})},f=function(e){var n=e.value,t=void 0===n?c("inputSizes"):n,r=e.unit,i=void 0===r?c("inputUnits"):r;t!==c("inputSizes")&&d("inputSizes",t),i!==c("inputUnits")&&d("inputUnits",i),(0,x.KY)(t,i,(function(e){return p(e)}),(function(){return p()}))},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c("inputStorageGroupUUIDs");n!==c("inputStorageGroupUUIDs")&&d("inputStorageGroupUUIDs",n),s({virtualDisks:e})};return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(Z,{id:"ps-virtual-disk-size-".concat(n),label:"Disk size",messageBoxProps:c("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:X("".concat(c("inputMaxes")," ").concat(c("inputUnits")),{onButtonClick:function(){d("inputSizes",c("inputMaxes")),p(c("maxes"))}}),onChange:function(e){var n=e.target.value;f({value:n})},type:"number",value:c("inputSizes")},inputLabelProps:{isNotifyRequired:c("sizes")===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;f({unit:n})},value:c("inputUnits")}}})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(S.Z,{id:"ps-storage-group-".concat(n),label:"Storage group",disableItem:function(e){return!(o.includes(e)&&c("sizes")<=l[e].storageGroupFree)},inputLabelProps:{isNotifyRequired:0===c("inputStorageGroupUUIDs").length},messageBoxProps:c("inputStorageGroupUUIDMessages"),selectItems:i,selectProps:{onChange:function(e){var n=e.target.value;v(n)},onClearIndicatorClick:function(){return v("")},renderValue:function(e){var n,t=null!==(n=l[e])&&void 0!==n?n:{},r=t.anvilName,i=void 0===r?"?":r,o=t.storageGroupName,a=void 0===o?"Unknown (".concat(e,")"):o;return"".concat(a," (").concat(i,")")},value:c("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(c("stateIds")))}(Je,n,Ke,ve,Zn,Wn,te,Qn)})),(0,r.jsx)(S.Z,{disableItem:function(e){return e===an},hideItem:function(e){return!Pn.includes(e)},id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===$e.length},label:"Install ISO",messageBoxProps:tn,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Yn(n)},onClearIndicatorClick:function(){return Yn("")},value:$e}}),(0,r.jsx)(S.Z,{disableItem:function(e){return e===$e},hideItem:function(e){return!Pn.includes(e)},id:"ps-driver-image",label:"Driver ISO",messageBoxProps:ln,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Jn(n)},onClearIndicatorClick:function(){return Jn("")},value:an}}),(0,r.jsx)(S.Z,{disableItem:function(e){return!Un.includes(e)},id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===cn.length},label:"Anvil node",messageBoxProps:fn,selectItems:oe,selectProps:{onChange:function(e){var n=e.target.value;Kn(n)},onClearIndicatorClick:function(){return Kn("")},renderValue:function(e){var n,t=(null!==(n=I[e])&&void 0!==n?n:{}).anvilName;return void 0===t?"Unknown ".concat(e):t},value:cn}}),(0,r.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=null===xn},isOptionEqualToValue:function(e,n){return e.key===n.key},label:"Optimize for OS",messageBoxProps:bn,noOptionsText:"No matching OS",onChange:function(e,n){gn(n)},openOnFocus:!0,options:de,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-optimize-for-os-".concat(n.key),children:[n.label," (",n.key,")"]}))},value:xn})]}):(0,r.jsx)(M.Z,{}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[Ln>0&&(0,r.jsx)(h.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),Tn?(0,r.jsx)(M.Z,{mt:0}):(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,r.jsx)(m.Z,{disabled:!Qn({isIgnoreOnCallbacks:!0}),onClick:function(){Bn(!0)},sx:K,children:"Provision"})})]})]}),Gn&&(0,r.jsx)(v.Z,{actionProceedText:"Provision",content:function(){var e=10;return(0,r.jsxs)(s.ZP,{container:!0,columns:e,direction:"column",children:[(0,r.jsx)(s.ZP,{item:!0,xs:e,children:(0,r.jsxs)(k.Ac,{children:["Server ",(0,r.jsx)(k.Q0,{text:ge})," will be created on anvil node"," ",(0,r.jsx)(k.Q0,{text:I[cn].anvilName})," ","with the following properties:"]})}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:Se})," ","core(s)"]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:De})," ","core(s) available"]})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsx)(k.Ac,{children:(0,r.jsxs)(k.Q0,{edge:"start",children:[We," ",_e]})})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[Ee," ",_e]})," ","available"]})})]}),Je.stateIds.map((function(n,t){var i=Je.inputMaxes[t],o=Je.inputSizes[t],a=Je.inputUnits[t],l=te[Je.inputStorageGroupUUIDs[t]].storageGroupName;return(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsxs)(k.Ac,{children:["Disk ",(0,r.jsx)(k.Q0,{text:t})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[o," ",a]})," ","on ",(0,r.jsx)(k.Q0,{children:l})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[i," ",a]})," ","available"]})})]},"ps-virtual-disk-".concat(n,"-summary"))})),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Install ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:O[$e].fileName})})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Driver ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:O[an]?(0,r.jsx)(k.Q0,{edge:"start",children:O[an].fileName}):"none"})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Optimize for OS"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:"".concat(null===xn||void 0===xn?void 0:xn.label)})})})]})]})}(),dialogProps:{open:Gn},onCancelAppend:function(){Bn(!1)},onProceedAppend:function(){var e={serverName:ge,cpuCores:Se,memory:ke.toString(),virtualDisks:Je.stateIds.map((function(e,n){return{storageSize:Je.sizes[n].toString(),storageGroupUUID:Je.inputStorageGroupUUIDs[n]}})),installISOFileUUID:$e,driverISOFileUUID:an,anvilUUID:cn,optimizeForOS:null===xn||void 0===xn?void 0:xn.key};Fn(!0),p.Z.post("/server",e).then((function(){Fn(!1),En(Ln+1)})),Bn(!1)},proceedButtonProps:{sx:K},titleText:"Provision ".concat(ge,"?")})]})}},2519:function(e,n,t){t.d(n,{Z:function(){return O}});var r=t(5893),i=t(5603),o=t(8128),a=t(3640),s=t(7294),l=t(1363),u=t(4427),c=t(9),d=t(192),p=t(5537),f=t(9558),v=t(6239),m=t(7021),x=t(1057),g=t(4799),h=t(3213),b=t(7169);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S=function(e){var n=e.onClearIndicatorClick,t=U(e,["onClearIndicatorClick"]),o=t.sx,a=t.value,l=U(t,["sx","value"]),u=(0,s.useMemo)((function(){var e;return j((y(e={},"& .".concat(i.Z.icon),{color:b.s7}),y(e,"& .".concat(f.Z.root),{marginRight:".8em"}),y(e,"& .".concat(v.Z.root),{color:b.s7,visibility:"hidden"}),y(e,"&:hover .".concat(f.Z.root," .").concat(v.Z.root,",\n &.").concat(m.Z.focused," .").concat(f.Z.root," .").concat(v.Z.root),{visibility:"visible"}),e),o)}),[o]),c=(0,s.useMemo)((function(){return String(a).length>0&&n&&(0,r.jsx)(x.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(p.Z,{fontSize:"small"})})})}),[n,a]);return(0,r.jsx)(h.Z,j({endAdornment:c,value:a},l,{sx:u}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var O=function(e){var n=e.id,t=e.label,p=e.selectItems,f=e.checkItem,v=e.disableItem,m=e.formControlProps,x=e.hideItem,g=e.inputLabelProps,h=void 0===g?{}:g,b=e.isReadOnly,y=void 0!==b&&b,j=e.messageBoxProps,U=void 0===j?{}:j,O=e.name,Z=e.onBlur,w=e.onChange,M=e.onFocus,C=e.required,k=e.selectProps,A=void 0===k?{}:k,G=A.multiple,B=A.sx,z=e.value,T=e.isCheckableItems,F=void 0===T?G:T,N=D(e.selectProps,["multiple","sx"]),L=(0,s.useMemo)((function(){return y?P(I({},"& .".concat(i.Z.icon),{visibility:"hidden"}),B):B}),[y,B]),E=(0,s.useCallback)((function(e){return F&&(0,r.jsx)(o.Z,{checked:null===f||void 0===f?void 0:f.call(null,e)})}),[f,F]),R=(0,s.useCallback)((function(e,t){return(0,r.jsxs)(u.Z,{disabled:null===v||void 0===v?void 0:v.call(null,e),sx:{display:(null===x||void 0===x?void 0:x.call(null,e))?"none":void 0},value:e,children:[E(e),t]},"".concat(n,"-").concat(e))}),[E,v,x,n]),V=(0,s.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),W=(0,s.useMemo)((function(){return(0,r.jsx)(c.Z,{id:n,label:t})}),[n,t]),q=(0,s.useMemo)((function(){return t&&(0,r.jsx)(d.Z,P({htmlFor:V,isNotifyRequired:C},h,{children:t}))}),[h,C,t,V]),Q=(0,s.useMemo)((function(){return p.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return R(t,void 0===r?t:r)}))}),[R,p]);return(0,r.jsxs)(a.Z,P({fullWidth:!0},m,{children:[q,(0,r.jsx)(S,P({id:V,input:W,multiple:G,name:O,onBlur:Z,onChange:w,onFocus:M,readOnly:y,value:z},N,{sx:L,children:Q})),(0,r.jsx)(l.Z,P({},U))]}))}},5737:function(e,n,t){t.d(n,{Bh:function(){return i},KY:function(){return o},MU:function(){return a}});var r=t(4490),i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fromUnit,i=n.onFailure,o=n.onSuccess,a=n.precision,s=n.toUnit,l=(0,r.gO)(e,{fromUnit:t,precision:a,toUnit:s});if(l){var u=l.value,c=l.unit;try{var d,p,f;null===o||void 0===o||null===(d=o.bigint)||void 0===d||d.call(null,BigInt(u),c),null===o||void 0===o||null===(p=o.number)||void 0===p||p.call(null,parseFloat(u),c),null===o||void 0===o||null===(f=o.string)||void 0===f||f.call(null,u,c)}catch(v){null===i||void 0===i||i.call(null,v,u,c)}}else null===i||void 0===i||i.call(null)},o=function(e,n,t,r){i(e,{fromUnit:n,onFailure:r,onSuccess:{bigint:t},precision:0,toUnit:"B"})},a=function(e){return(0,r._d)(e,{toUnit:"ibyte"})}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/82-b2661d1af04f38ff.js b/striker-ui/out/_next/static/chunks/82-b2661d1af04f38ff.js deleted file mode 100644 index 23a2d3bb..00000000 --- a/striker-ui/out/_next/static/chunks/82-b2661d1af04f38ff.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{2787:function(e,t,n){"use strict";var r=n(7892),i=n(5893);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"}),"DesktopWindows")},791:function(e,t,n){"use strict";var r=n(7892),i=n(5893);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}),"Keyboard")},1714:function(e,t,n){"use strict";var r=n(7892),i=n(5893);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link")},5668:function(e,t,n){"use strict";var r=n(7892),i=n(5893);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNewOutlined")},122:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(3366),i=n(7462),o=n(7294),u=n(6010),a=n(7192),l=n(4844),c=n(1796),s=n(8216),f=n(1496),d=n(3616),b=n(8791),v=n(1705),p=n(5861),h=n(8979);function m(e){return(0,h.Z)("MuiLink",e)}var y=(0,n(6087).Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),g=n(5893);const _=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"],O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=(0,f.ZP)(p.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,s.Z)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>{const n=(0,l.D)(e,`palette.${(e=>O[e]||e)(t.color)}`)||t.color;return(0,i.Z)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&{textDecoration:"underline",textDecorationColor:"inherit"!==n?(0,c.Fq)(n,.4):void 0,"&:hover":{textDecorationColor:"inherit"}},"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y.focusVisible}`]:{outline:"auto"}})}));var B=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiLink"}),{className:l,color:c="primary",component:f="a",onBlur:p,onFocus:h,TypographyClasses:y,underline:O="always",variant:B="inherit"}=n,x=(0,r.Z)(n,_),{isFocusVisibleRef:P,onBlur:j,onFocus:S,ref:k}=(0,b.Z)(),[Z,M]=o.useState(!1),E=(0,v.Z)(t,k),V=(0,i.Z)({},n,{color:c,component:f,focusVisible:Z,underline:O,variant:B}),C=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,s.Z)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,a.Z)(o,m,t)})(V);return(0,g.jsx)(w,(0,i.Z)({className:(0,u.Z)(C.root,l),classes:y,color:c,component:f,onBlur:e=>{j(e),!1===P.current&&M(!1),p&&p(e)},onFocus:e=>{S(e),!0===P.current&&M(!0),h&&h(e)},ref:E,ownerState:V,variant:B},x))}))},4490:function(e,t,n){"use strict";n.d(t,{_d:function(){return m},gO:function(){return h}});var r=function(e,t,n){return Math.max(t,Math.min(e,n))},i={"b-B":8n,"b-kB":8000n,"b-MB":8000000n,"b-GB":8000000000n,"b-TB":8000000000000n,"b-PB":8000000000000000n,"b-EB":8000000000000000000n,"b-ZB":8000000000000000000000n,"b-YB":8000000000000000000000000n,"b-KiB":8192n,"b-MiB":8388608n,"b-GiB":8589934592n,"b-TiB":8796093022208n,"b-PiB":9007199254740992n,"b-EiB":9223372036854775808n,"b-ZiB":9444732965739290427392n,"b-YiB":9671406556917033397649408n,"b-b":1n,"b-kbit":1000n,"b-Mbit":1000000n,"b-Gbit":1000000000n,"b-Tbit":1000000000000n,"b-Pbit":1000000000000000n,"b-Ebit":1000000000000000000n,"b-Zbit":1000000000000000000000n,"b-Ybit":1000000000000000000000000n,"b-Kibit":1024n,"b-Mibit":1048576n,"b-Gibit":1073741824n,"b-Tibit":1099511627776n,"b-Pibit":1125899906842624n,"b-Eibit":1152921504606846976n,"b-Zibit":1180591620717411303424n,"b-Yibit":1208925819614629174706176n},o=["byte","ibyte","bit","ibit"],u=["B","kB","MB","GB","TB","PB","EB","ZB","YB","B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB","b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit","b","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],a=function(e){return BigInt(Math.pow(10,e))},l=function(e,t){var n=e.precision,r=e.value,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=o.isReverse;if("b"===t)return{precision:n,value:r};var l="b-".concat(t),c=i[l];if(u)return{precision:n,value:r*c};var s=String(c).length,f=a(s),d=r*f/c;return{precision:n+s,value:d}},c=function(e,t,n,r,i,o,u){var a=o.indexOf(n),l=t;a<0&&(a=function(e,t){var n="i"===e[1],r=/B$/.test(e),i="".concat(n?"i":"").concat(r?"byte":"bit"),o=t.findIndex((function(e){return e===i}));return{section:i,index:o}}(t,o).index);for(var c=a*u,s=c+u;c=r["b-".concat(f)]?l=f:c=s}return l};function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},i=r.bigintFormatOptions,o=r.numberFormatOptions,u=r.locale,l=a(t),c=n/l,s=n%l,d="0.",v=b(d,2),p=v[0],h=v[1],m=c.toString(),y=s.toString();if(u){var g="string"===typeof u?u:void 0,_=.1.toLocaleString(g,o),O=b(_,2);p=O[0],h=O[1],m=c.toLocaleString(g,i),y=s.toLocaleString(g,f(f({},i),{},{useGrouping:!1}))}var w=m;return t>0&&(w+="".concat(h).concat(y.padStart(t,p))),w},h=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.fromUnit,o=void 0===i?"B":i,u=n.locale,a=n.precision,c=n.toUnit;try{t=_(e)}catch(x){return}var s=O(a),f=s.max,d=s.min,b=g(o,"B"),v=b.unit;t=l(t,v,{isReverse:!0});var h=w(t,v,{toUnit:c});t=l(t,h),t=y(t,{toPrecision:r(t.precision,d,f)}),t=B(t,d);var m=p(t,{locale:u});return{value:m,unit:h}},m=function(){var e=h.apply(void 0,arguments);return e?"".concat(e.value," ").concat(e.unit):e},y=function(e){var t=e.precision,n=e.value,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.toPrecision,o=void 0===i?0:i,u={precision:o,value:n};if(o>t)u.value*=a(o-t);else if(o4&&(u.value+=1n)}return u},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=n.indexOf(e);return r<0?{unit:t,unitIndex:0}:{unit:n[r],unitIndex:r}},_=function(e){var t,n,r=String(e).split(/\D/,2),i=null!==(t=null===(n=r[1])||void 0===n?void 0:n.length)&&void 0!==t?t:0,o=r.join("");if(0===o.length)throw Error("Value is blank.");return{value:BigInt(o),precision:i}},O=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"===typeof n?{max:n,min:n}:{max:null!==(e=n.max)&&void 0!==e?e:2,min:null!==(t=n.min)&&void 0!==t?t:0}},w=function(e,t){var n=e.precision,r=e.value,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=l.conversionTable,f=void 0===s?i:s,d=l.toUnit,b=l.units,v=void 0===b?u:b,p=l.unitSections,h=void 0===p?o:p,m=l.unitSectionLength,y=void 0===m?9:m,g=v.indexOf(d);return g>=0?v[g]:c(r/a(n),t,d,f,v,h,y)},B=function(e,t){for(var n=e.precision,r={precision:n,value:e.value},i=n-t,o=!0,u=1;o&&u<=i;u+=1){0n===r.value%10n?(r.value/=10n,r.precision-=1):o=!1}return r}},638:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return d=!0,t()};h(f,e).then(n,n)}))},window.__NEXT_PRELOADREADY=p.preloadReady;var m=p;t.default=m},5152:function(e,t,n){e.exports=n(638)},8217:function(e,t,n){"use strict";var r=n(6086),i=n(7294);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var u=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),u({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();u((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},7161:function(e,t,n){"use strict";e.exports=n(8217)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/839-dabd319a60c8df83.js b/striker-ui/out/_next/static/chunks/839-dabd319a60c8df83.js new file mode 100644 index 00000000..c1e7f3a1 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/839-dabd319a60c8df83.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[839],{8262:function(e,t,o){o.d(t,{Z:function(){return $}});var r=o(3366),i=o(7462),a=o(7294),n=o(6010),l=o(7192),s=o(7579),d=o(8216),c=o(9964),p=o(6628),u=o(5113),m=o(3616),h=o(1496),b=o(8979);function f(e){return(0,b.Z)("MuiDialog",e)}var g=(0,o(6087).Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var Z=(0,a.createContext)({}),x=o(7227),v=o(2734),y=o(5893);const k=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],S=(0,h.ZP)(x.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),W=(0,h.ZP)(c.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),w=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.container,t[`scroll${(0,d.Z)(o.scroll)}`]]}})((({ownerState:e})=>(0,i.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),C=(0,h.ZP)(u.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`scrollPaper${(0,d.Z)(o.scroll)}`],t[`paperWidth${(0,d.Z)(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,i.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${g.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${g.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${g.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var $=a.forwardRef((function(e,t){const o=(0,m.Z)({props:e,name:"MuiDialog"}),c=(0,v.Z)(),h={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{"aria-describedby":b,"aria-labelledby":g,BackdropComponent:x,BackdropProps:$,children:P,className:M,disableEscapeKeyDown:B=!1,fullScreen:D=!1,fullWidth:F=!1,maxWidth:I="sm",onBackdropClick:R,onClose:N,open:T,PaperComponent:j=u.Z,PaperProps:O={},scroll:E="paper",TransitionComponent:G=p.Z,transitionDuration:V=h,TransitionProps:K}=o,A=(0,r.Z)(o,k),H=(0,i.Z)({},o,{disableEscapeKeyDown:B,fullScreen:D,fullWidth:F,maxWidth:I,scroll:E}),L=(e=>{const{classes:t,scroll:o,maxWidth:r,fullWidth:i,fullScreen:a}=e,n={root:["root"],container:["container",`scroll${(0,d.Z)(o)}`],paper:["paper",`paperScroll${(0,d.Z)(o)}`,`paperWidth${(0,d.Z)(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return(0,l.Z)(n,f,t)})(H),q=a.useRef(),_=(0,s.Z)(g),z=a.useMemo((()=>({titleId:_})),[_]);return(0,y.jsx)(W,(0,i.Z)({className:(0,n.Z)(L.root,M),BackdropProps:(0,i.Z)({transitionDuration:V,as:x},$),closeAfterTransition:!0,BackdropComponent:S,disableEscapeKeyDown:B,onClose:N,open:T,ref:t,onClick:e=>{q.current&&(q.current=null,R&&R(e),N&&N(e,"backdropClick"))},ownerState:H},A,{children:(0,y.jsx)(G,(0,i.Z)({appear:!0,in:T,timeout:V,role:"presentation"},K,{children:(0,y.jsx)(w,{className:(0,n.Z)(L.container),onMouseDown:e=>{q.current=e.target===e.currentTarget},ownerState:H,children:(0,y.jsx)(C,(0,i.Z)({as:j,elevation:24,role:"dialog","aria-describedby":b,"aria-labelledby":_},O,{className:(0,n.Z)(L.paper,O.className),ownerState:H,children:(0,y.jsx)(Z.Provider,{value:z,children:P})}))})}))}))}))},9309:function(e,t,o){o.d(t,{Z:function(){return k}});var r=o(3366),i=o(7462),a=o(7294),n=o(6010),l=o(7192),s=o(1796),d=o(1496),c=o(3616),p=o(9773),u=o(7739),m=o(8974),h=o(1705),b=o(5097),f=o(4592);var g=(0,o(6087).Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Z=o(2429),x=o(5893);const v=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],y=(0,d.ZP)(u.Z,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,i.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Z.Z.selected}`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Z.Z.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Z.Z.selected}:hover`]:{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Z.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${Z.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity},[`& + .${b.Z.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${b.Z.inset}`]:{marginLeft:52},[`& .${g.root}`]:{marginTop:0,marginBottom:0},[`& .${g.inset}`]:{paddingLeft:36},[`& .${f.Z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${f.Z.root} svg`]:{fontSize:"1.25rem"}}))));var k=a.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:d="li",dense:u=!1,divider:b=!1,disableGutters:f=!1,focusVisibleClassName:g,role:k="menuitem",tabIndex:S}=o,W=(0,r.Z)(o,v),w=a.useContext(p.Z),C={dense:u||w.dense||!1,disableGutters:f},$=a.useRef(null);(0,m.Z)((()=>{s&&$.current&&$.current.focus()}),[s]);const P=(0,i.Z)({},o,{dense:C.dense,divider:b,disableGutters:f}),M=(e=>{const{disabled:t,dense:o,divider:r,disableGutters:a,selected:n,classes:s}=e,d={root:["root",o&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",n&&"selected"]},c=(0,l.Z)(d,Z.K,s);return(0,i.Z)({},s,c)})(o),B=(0,h.Z)($,t);let D;return o.disabled||(D=void 0!==S?S:-1),(0,x.jsx)(p.Z.Provider,{value:C,children:(0,x.jsx)(y,(0,i.Z)({ref:B,role:k,tabIndex:D,component:d,focusVisibleClassName:(0,n.Z)(M.focusVisible,g)},W,{ownerState:P,classes:M}))})}))},2429:function(e,t,o){o.d(t,{K:function(){return i}});var r=o(8979);function i(e){return(0,r.Z)("MuiMenuItem",e)}const a=(0,o(6087).Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);t.Z=a},7579:function(e,t,o){var r;o.d(t,{Z:function(){return l}});var i=o(7294);let a=0;const n=(r||(r=o.t(i,2))).useId;function l(e){if(void 0!==n){const t=n();return null!=e?e:t}return function(e){const[t,o]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(a+=1,o(`mui-${a}`))}),[t]),r}(e)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/86-d7025c9609028f44.js b/striker-ui/out/_next/static/chunks/86-af7e2d6c5444a983.js similarity index 99% rename from striker-ui/out/_next/static/chunks/86-d7025c9609028f44.js rename to striker-ui/out/_next/static/chunks/86-af7e2d6c5444a983.js index 2a665acf..1597de65 100644 --- a/striker-ui/out/_next/static/chunks/86-d7025c9609028f44.js +++ b/striker-ui/out/_next/static/chunks/86-af7e2d6c5444a983.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86],{1939:function(e,n,t){var r=t(5893),o=t(7357),i=t(7169);function u(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;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="Decorator",s={ok:"".concat(c,"-ok"),warning:"".concat(c,"-warning"),error:"".concat(c,"-error"),off:"".concat(c,"-off")};n.Z=function(e){var n,t=e.colour,c=e.sx,f=l(e,["colour","sx"]);return(0,r.jsx)(o.Z,a({},f,{className:s[t],sx:a((n={borderRadius:i.n_,height:"100%",width:"1.4em"},u(n,"&.".concat(s.ok),{backgroundColor:i.Ej}),u(n,"&.".concat(s.warning),{backgroundColor:i.Wd}),u(n,"&.".concat(s.error),{backgroundColor:i.hM}),u(n,"&.".concat(s.off),{backgroundColor:i.s7}),n),c)}))}},5741:function(e,n,t){var r=t(5893),o=t(1714),i=t(122),u=t(7169),a=t(4690);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 c(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(e){var n=e.children,t=e.sx,l=s(e,["children","sx"]);return(0,r.jsx)(i.Z,c({underline:"hover",variant:"subtitle1"},l,{sx:c({color:u.lD,textDecorationColor:u.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},4427:function(e,n,t){var r=t(5893),o=t(2429),i=t(9309),u=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(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 Z=function(e){var n=e.isFloating,t=e.networkInterface,i=t.networkInterfaceName,u=t.networkInterfaceState,a=e.onClose,l=e.sx,c=C(e,["isFloating","networkInterface","onClose","sx"]),f=n?{borderColor:y.s7,borderRadius:y.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:y.E5,padding:".6em 1.2em"}:{};return(0,r.jsxs)(o.Z,O({sx:O({display:"flex",flexDirection:"row","& > :not(:first-child)":{alignSelf:"center",marginLeft:".5em"}},f,l)},c,{children:[(0,r.jsx)(x.Z,{colour:"up"===u?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.Ac,{text:i}),a&&(0,r.jsx)(w.Z,{onClick:a,size:"small",sx:{color:y.s7},children:(0,r.jsx)(s.Z,{})})]}))};Z.defaultProps={isFloating:!1,onClose:void 0};var M=Z,S=(0,t(1496).ZP)(o.Z)((function(){return{borderColor:y.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}})),P=t(4690),D=t(1706),U=t(4069),A=t(7869),N=t(6284),R=t(3679),E=t(1905),V=t(2519),T=t(634),F=t(2152),L=t(2027);function q(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 W(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(l){a=!0,o=l}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||$(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$(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 $(e,n){if(e){if("string"===typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}var J={ifaceNotApplied:"".concat("NetworkInitForm","-network-interface-not-applied")},z=[void 0,void 0],X="dns",K="gateway",Y=function(e){return"".concat(e,"Interface")},Q=function(e){return"".concat(e,"IPAddress")},ee=function(e){return"".concat(e,"Name")},ne=function(e){return"".concat(e,"SubnetMask")},te=function(e){return"".concat(e,"NetworkSubnetConflict")},re=Array.from({length:2},(function(e,n){return n+1})),oe={bcn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.20".concat(e,".").concat(n)},mask:"255.255.0.0"},ifn:{ip:function(){return""},mask:""},mn:{ip:function(){return"10.199."},mask:"255.255.0.0"},sn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.10".concat(e,".").concat(n)},mask:"255.255.0.0"}},ie=function(e){return"network".concat(e)},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.inputUUID,t=void 0===n?(0,m.Z)():n,r=e.interfaces,o=void 0===r?G(z):r,i=e.ipAddress,u=void 0===i?"":i,a=e.name,l=e.subnetMask,c=void 0===l?"":l,s=e.type,f=void 0===s?"":s,d=e.typeCount,v=void 0===d?0:d,p=_(e,["inputUUID","interfaces","ipAddress","name","subnetMask","type","typeCount"]),b=a;return a||(b=h.Z[f]&&v>0?"".concat(h.Z[f]," ").concat(v):"Unknown Network"),H({inputUUID:t,interfaces:o,ipAddress:u,name:b,subnetMask:c,type:f,typeCount:v},p)},ae=function(e,n){return[{align:"center",field:"",renderCell:function(t){var i,u=t.row,a=(null!==(i=n[u.networkInterfaceUUID])&&void 0!==i&&i).isApplied,s="grab",f=function(){for(var n=arguments.length,t=new Array(n),r=0;r :not(:first-child)":{marginLeft:".5em"}},children:[(0,r.jsx)(x.Z,{colour:"up"===t?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.KI,{text:i})]})}},{field:"networkInterfaceMACAddress",flex:1,headerName:"MAC",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.$_,{text:n})}},{field:"networkInterfaceState",flex:1,headerName:"State",renderCell:function(e){var n=e.value,t=String(n);return(0,r.jsx)(j.KI,{text:"".concat(t.charAt(0).toUpperCase()).concat(t.substring(1))})}},{field:"networkInterfaceSpeed",flex:1,headerName:"Speed",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.KI,{text:"".concat(parseFloat(n).toLocaleString()," Mbps")})}},{field:"networkInterfaceOrder",flex:1,headerName:"Order"}]},le=function(e){var n=e.allowMigrationNetwork,t=e.createDropMouseUpHandler,a=e.getNetworkTypeCount,l=e.hostDetail,c=void 0===l?{}:l,d=c.hostType,v=c.sequence,p=e.networkIndex,m=e.networkInput,g=e.networkInterfaceCount,k=e.networkInterfaceInputMap,w=e.removeNetwork,x=e.setMessageRe,I=e.setNetworkInputs,O=e.setNetworkInterfaceInputMap,C=e.testInput,Z=e.testInputToToggleSubmitDisabled,P=(0,i.Z)(),A=(0,u.Z)(P.breakpoints.up("md")),E=(0,u.Z)(P.breakpoints.up("lg")),T=(0,b.useRef)({}),F=(0,b.useRef)({}),L=m.inputUUID,q=m.interfaces,_=m.ipAddress,$=m.isRequired,J=m.subnetMask,z=m.type,X=m.typeCount,K=(0,b.useMemo)((function(){return ie(L)}),[L]),ee=(0,b.useMemo)((function(){return Y(K)}),[K]),ue=(0,b.useMemo)((function(){return Q(K)}),[K]),ae=(0,b.useMemo)((function(){return ne(K)}),[K]),le=(0,b.useMemo)((function(){return te(K)}),[K]),ce=(0,b.useMemo)((function(){return"node"===d}),[d]),se=(0,b.useMemo)((function(){return!ce&&g<=2?[1]:re}),[ce,g]),fe=(0,b.useMemo)((function(){var e=h.Z.bcn,t=h.Z.ifn,r=h.Z.mn,o=h.Z.sn;return ce&&g>=8&&(n||"mn"===z)?{bcn:e,ifn:t,mn:r,sn:o}:{bcn:e,ifn:t,sn:o}}),[n,ce,g,z]),de=(0,b.useCallback)((function(e,n,t){var r=T.current,o=r.getIsChangedByUser,i=r.setValue,u=F.current,a=u.getIsChangedByUser,l=u.setValue;(null===o||void 0===o?void 0:o.call(null))||(e.ipAddress=n,null===i||void 0===i||i.call(null,n)),(null===a||void 0===a?void 0:a.call(null))||(e.subnetMask=t,null===l||void 0===l||l.call(null,t))}),[]);return(0,b.useEffect)((function(){var e,n;"striker"===d&&"ifn"!==z&&(!(null===(e=T.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))&&Number(v)&&(null===(n=T.current.setValue)||void 0===n||n.call(null,_.replace(/^((?:\d+\.){3})\d*$/,"$1".concat(v)))))}),[d,_,v,z]),(0,b.useEffect)((function(){var e=m.ipAddressInputRef,n=m.subnetMaskInputRef;e===T&&n===F||(m.ipAddressInputRef=T,m.subnetMaskInputRef=F,I((function(e){return G(e)})))}),[m,I]),(0,r.jsxs)(R.Lg,{children:[(0,r.jsxs)(R.CH,{children:[(0,r.jsx)(V.Z,{id:"network-".concat(L,"-name"),isReadOnly:$,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(fe).map((function(e){var n=W(e,2),t=n[0],r=n[1],o=a(t,{lastIndex:p});return t!==z&&(o+=1),{value:t,displayValue:"".concat(r," ").concat(o)}})),selectProps:{onChange:function(e){var n=e.target.value,t=String(n);m.type=t;var r=a(t,{lastIndex:p});m.typeCount=r,m.name="".concat(h.Z[t]," ").concat(r);var o=oe[t];if(o){var i,u=o.ip,l=o.mask;"striker"===d&&"bcn"===t&&(i="4."),de(m,u(r,i),l)}I((function(e){return G(e)}))},renderValue:E?void 0:function(e){return"".concat(String(e).toUpperCase()," ").concat(X)},value:z}}),!$&&(0,r.jsx)(D.Z,{onClick:function(){w(p)},sx:{padding:".2em",position:"absolute",right:"-9px",top:"-4px"},children:(0,r.jsx)(s.Z,{fontSize:"small"})})]}),(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",margin:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[se.map((function(e){var n="Link ".concat(e),i=e-1,u=q[i],a=(null!==u&&void 0!==u?u:{}).networkInterfaceUUID,l=void 0===a?"":a,c=A?(0,r.jsx)(j.Ac,{text:"Drop to add interface."}):(0,r.jsx)(f.Z,{sx:{alignSelf:"center",color:y.s7}});return(0,r.jsxs)(o.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:"1em"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(j.Ac,{sx:{whiteSpace:"nowrap"},text:n}),(0,r.jsx)(S,{onMouseUp:function(){for(var e=arguments.length,n=new Array(e),r=0;r=we.length||Object.values(_).every((function(e){return e.isApplied}))||"node"===t&&we.length<=6}),[t,re,we,_]),Ie=(0,b.useMemo)((function(){return u&&!l}),[u,l]),Oe=(0,b.useMemo)((function(){return re.every((function(e){return"mn"!==e.type}))}),[re]),Ce=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessage)||void 0===t?void 0:t.call(null,e,n)}),[]),Ze=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessageRe)||void 0===t?void 0:t.call(null,e,n)}),[]),Me=(0,b.useCallback)((function(e){return Ce(X,e)}),[Ce]),Se=(0,b.useCallback)((function(e){return Ce(K,e)}),[Ce]),Pe=(0,b.useCallback)((function(e){var n,t=e.fn,r=void 0===t?"every":t,o=e.ip,i=void 0===o?"":o,u=e.mask,a=void 0===u?"":u,l=e.isNegateMatch,c=void 0===l?"every"===r:l,s=e.onMatch,f=e.onMiss,d=e.skipUUID,v="every"===r;try{n=new p.Netmask("".concat(i,"/").concat(a))}catch(b){}return re[r]((function(e){var t,r,o=e.inputUUID,u=e.ipAddressInputRef,a=e.subnetMaskInputRef;if(o===d)return v;var l=null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null),m=null===(r=null===a||void 0===a?void 0:a.current.getValue)||void 0===r?void 0:r.call(null),g=!1;try{g=function(e,n){var t=n.b,r=n.bIP,o=void 0===r?"":r;return e.contains(null!==t&&void 0!==t?t:o)||void 0!==t&&t.contains(e)}(new p.Netmask("".concat(l,"/").concat(m)),{b:n,bIP:i})}catch(b){}return g?null===s||void 0===s||s.call(null,e):null===f||void 0===f||f.call(null,e),c?!g:g}))}),[re]),De=(0,b.useCallback)((function(e){Ce("api",e)}),[Ce]),Ue=(0,b.useMemo)((function(){var e,n=(B(e={},X,{defaults:{getValue:function(){var e;return null===(e=be.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Me()}},tests:[{onFailure:function(){Me({children:"Domain name servers should be a comma-separated list of IPv4 addresses without trailing comma(s)."})},test:function(e){var n=e.value;return k.ah.test(n)}},{test:L.HJ}]}),B(e,K,{defaults:{getValue:function(){var e;return null===(e=me.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Se()}},tests:[{onFailure:function(){Se({children:"Gateway should be a valid IPv4 address."})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value,t=!0,r=Pe({fn:"some",ip:n,onMatch:function(e){var r=e.ipAddress,o=e.name,i=e.type,u=e.typeCount;if(n===r)return t=!1,void Se({children:"Gateway cannot be the same as IP address in ".concat(o,".")});pe("".concat(i).concat(u))}});return r||Se({children:"Gateway must be in one network's subnet."}),r&&t}},{test:L.HJ}]}),e);return re.forEach((function(e){var t,r,o=e.inputUUID,i=e.interfaces,u=e.ipAddressInputRef,a=e.name,l=e.subnetMaskInputRef,c=ie(o),s=Y(c),f=Q(c),d=ne(c),v=function(e){return Ce(s,e)},p=function(e){return Ce(f,e)},b=function(e){return Ce(d,e)},m=function(e,n,t){var r,o="".concat(te(c),"-").concat(n),i="".concat(te(ie(n)),"-").concat(e);Ce((null===(r=ye.current.exists)||void 0===r?void 0:r.call(null,i))?i:o,t)},g=function(e){var n=e.ip,i=void 0===n?null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null):n,c=e.mask,s=void 0===c?null===(r=null===l||void 0===l?void 0:l.current.getValue)||void 0===r?void 0:r.call(null):c;return Pe({ip:i,mask:s,onMatch:function(e){var n=e.inputUUID,t=e.name;m(o,n,{children:'"'.concat(a,'" and "').concat(t,'" cannot be in the same subnet.')})},onMiss:function(e){var n=e.inputUUID;m(o,n)},skipUUID:o})};n[s]={defaults:{getCompare:function(){return i.map((function(e){return void 0!==e}))},onSuccess:function(){v()}},tests:[{onFailure:function(){v({children:"".concat(a," must have at least 1 interface.")})},test:function(e){return e.compare.some((function(e){return e}))}},{onFailure:function(){v({children:"".concat(a," must have a Link 1 interface.")})},test:function(e){var n=W(e.compare,2),t=n[0];return!(n[1]&&!t)}}]},n[f]={defaults:{getValue:function(){var e;return null===(e=null===u||void 0===u?void 0:u.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){p()}},tests:[{onFailure:function(){p({children:"IP address in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({ip:n})}},{test:L.HJ}]},n[ee(c)]={defaults:{value:a},tests:[{test:L.HJ}]},n[d]={defaults:{getValue:function(){var e;return null===(e=null===l||void 0===l?void 0:l.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){b()}},tests:[{onFailure:function(){b({children:"Subnet mask in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({mask:n})}},{test:L.HJ}]}})),n}),[re,Me,Se,Ce,Pe]),Ae=(0,b.useMemo)((function(){return(0,L.LT)(Ue)}),[Ue]),Ne=(0,b.useCallback)((function(e){null===s||void 0===s||s.call(null,Ae(H({isIgnoreOnCallbacks:!0,isTestAll:!0},e)))}),[Ae,s]),Re=(0,b.useCallback)((function(){fe(void 0)}),[]),Ee=(0,b.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};re.unshift(ue(e)),null===s||void 0===s||s.call(null,!1),oe(G(re))}),[re,s]),Ve=(0,b.useCallback)((function(e){var n=W(re.splice(e,1),1)[0],t=n.inputUUID;n.interfaces.forEach((function(e){if(void 0!==e){var n=e.networkInterfaceUUID;_[n].isApplied=!1}})),Ne({excludeTestIdsRe:RegExp(t)}),oe(G(re)),$((function(e){return H({},e)}))}),[re,_,Ne]),Te=(0,b.useCallback)((function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.inputs,r=void 0===t?re:t,o=n.lastIndex,i=void 0===o?0:o,u=0,a=r.length-1;a>=i;a-=1)r[a].type===e&&(u+=1);return u}),[re]),Fe=(0,b.useMemo)((function(){if(void 0!==se){var e=se.networkInterfaceUUID;return function(n,t){return function(){var r,o=(null!==(r=n[t])&&void 0!==r?r:{}).networkInterfaceUUID;o&&o!==e&&(_[o].isApplied=!1),n[t]=se,_[e].isApplied=!0}}}}),[se,_]),Le=(0,b.useMemo)((function(){return se?{cursor:"grabbing",userSelect:"none"}:{}}),[se]),qe=(0,b.useMemo)((function(){if(void 0===se)return(0,r.jsx)(r.Fragment,{});var e=R.x,n=R.y;return(0,r.jsx)(M,{isFloating:!0,networkInterface:se,sx:{left:"calc(".concat(e,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})}),[R,se]),Be=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]),He=(0,b.useMemo)((function(){return se?function(e){var n=e.currentTarget,t=e.nativeEvent,r=t.clientX,o=t.clientY,i=n.getBoundingClientRect(),u=i.left,a=i.top;V({x:r-u,y:o-a})}:void 0}),[se]),_e=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]);(0,b.useEffect)((function(){if([Object.keys(_).length>0,u,l,ge.current,be.current,me.current].every((function(e){return Boolean(e)}))){var e,n;ge.current=!1;var t=l.dns,r=l.gateway,o=l.gatewayInterface,i=l.networks;if([t,r,o,i].some((function(e){return!e})))return;null===(e=be.current.setValue)||void 0===e||e.call(null,t),null===(n=me.current.setValue)||void 0===n||n.call(null,r);var a=[],c=Object.values(i).reduce((function(e,n){var t,r,o=n.ip,i=n.link1Uuid,u=n.link2Uuid,l=void 0===u?"":u,c=n.subnetMask,s=n.type,f=Te(s,{inputs:e})+1,d=Z[s]===f,v="".concat(h.Z[s]," ").concat(f);return a.push(i,l),e.push({inputUUID:(0,m.Z)(),interfaces:[null===(t=_[i])||void 0===t?void 0:t.metadata,null===(r=_[l])||void 0===r?void 0:r.metadata],ipAddress:o,isRequired:d,name:v,subnetMask:c,type:s,typeCount:f}),e}),[]);pe(o),$((function(e){var n=H({},e);return a.forEach((function(e){n[e]&&(n[e].isApplied=!0)})),n})),oe(c),Ne()}}),[u,Te,l,_,Z,Ne]),(0,b.useEffect)((function(){return(0,T.Z)(1,De),window&&window.addEventListener("beforeunload",(function(){var e=new XMLHttpRequest;e.open("PUT","".concat(g.Z,"/init/set-map-network"),!1),e.send(null)}),{once:!0}),function(){(0,T.Z)(0,De)}}),[De]),(0,b.useImperativeHandle)(n,(function(){return H({},ye.current,{get:function(){var e,n;return{dns:null===(e=be.current.getValue)||void 0===e?void 0:e.call(null),gateway:null===(n=me.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:ve,networks:re.map((function(e){var n,t,r=e.inputUUID,o=e.interfaces,i=e.ipAddressInputRef,u=e.name,a=e.subnetMaskInputRef,l=e.type,c=e.typeCount;return{inputUUID:r,interfaces:o,ipAddress:null!==(I=null===(n=null===i||void 0===i?void 0:i.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==I?I:"",name:u,subnetMask:null!==(O=null===(t=null===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null))&&void 0!==O?O:"",type:l,typeCount:c}}))}}})}),[ve,re]);var We,Ge="13em";return xe?(0,r.jsx)(F.Z,{}):(0,r.jsxs)(o.Z,{onMouseDown:function(e){var n=e.clientX,t=e.clientY,r=e.currentTarget.getBoundingClientRect(),o=r.left,i=r.top;V({x:n-o,y:t-i})},onMouseLeave:Be,onMouseMove:He,onMouseUp:_e,sx:H({position:"relative"},Le),children:[qe,(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child, :nth-child(3))":{marginTop:"1em"}},children:[(0,r.jsx)(d._,{autoHeight:!0,columns:ae((function(e){fe(e)}),_),componentsProps:{row:{onMouseDown:function(e){var n=e.target,t=(void 0===n?{}:n).parentElement,r=(void 0===t?{}:t).dataset,o=(void 0===r?{}:r).id,i=void 0===o?void 0:o;if(i){var u=_[i],a=u.isApplied,l=u.metadata;a||fe(l)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:function(e){var n,t=e.row.networkInterfaceUUID,r="";return(null!==(n=_[t])&&void 0!==n&&n).isApplied||(r+=" ".concat(J.ifaceNotApplied)),r},getRowId:function(e){return e.networkInterfaceUUID},hideFooter:!0,initialState:{sorting:{sortModel:[{field:"networkInterfaceName",sort:"asc"}]}},rows:we,sx:(We={color:y.s7},B(We,"& .".concat(a.Z.root),{color:"inherit"}),B(We,"& .".concat(v._.cell,":focus"),{outline:"none"}),B(We,"& .".concat(v._.row,".").concat(J.ifaceNotApplied,":hover"),B({cursor:"grab"},"& .".concat(v._.cell," p"),{cursor:"auto"})),We)}),!Ie&&(0,r.jsx)(P.Z,{row:!0,sx:{"& > :first-child":{alignSelf:"start",marginTop:".7em"},"& > :last-child":{flexGrow:1}},children:(0,r.jsx)(o.Z,{sx:{alignItems:"strech",display:"flex",flexDirection:"row",overflowX:"auto",paddingLeft:".3em","& > div":{marginBottom:".8em",marginTop:".4em",minWidth:Ge,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:re.map((function(e,n){var o=e.inputUUID;return(0,r.jsx)(le,{allowMigrationNetwork:Oe,createDropMouseUpHandler:Fe,getNetworkTypeCount:Te,hostDetail:{hostType:t,sequence:x},networkIndex:n,networkInput:e,networkInterfaceCount:we.length,networkInterfaceInputMap:_,removeNetwork:Ve,setMessageRe:Ze,setNetworkInputs:oe,setNetworkInterfaceInputMap:$,testInput:Ae,testInputToToggleSubmitDisabled:Ne},"network-".concat(o))}))})}),(0,r.jsxs)(P.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:Ge,width:{sm:"25%"}}},children:[(0,r.jsx)(D.Z,{disabled:je,onClick:function(){Ee()},children:(0,r.jsx)(f.Z,{})}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-gateway",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},K,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},K,{value:n})}),Se()},label:"Gateway"}),ref:me}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-dns-csv",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},X,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},X,{value:n})}),Me()},label:"Domain name server(s)"}),ref:be})]}),(0,r.jsx)(A.Z,{count:1,defaultMessageType:"warning",ref:ye})]})]})}));ce.defaultProps={expectHostDetail:!1,hostDetail:void 0,hostSequence:void 0,toggleSubmitDisabled:void 0},ce.displayName="NetworkInitForm";var se=ce},2519:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(5893),o=t(5603),i=t(8128),u=t(3640),a=t(7294),l=t(1363),c=t(4427),s=t(9),f=t(192),d=t(5537),v=t(9558),p=t(6239),b=t(7021),m=t(1057),g=t(4799),y=t(3213),h=t(7169);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 w(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 j=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,l=x(t,["sx","value"]),c=(0,a.useMemo)((function(){var e;return w((k(e={},"& .".concat(o.Z.icon),{color:h.s7}),k(e,"& .".concat(v.Z.root),{marginRight:".8em"}),k(e,"& .".concat(p.Z.root),{color:h.s7,visibility:"hidden"}),k(e,"&:hover .".concat(v.Z.root," .").concat(p.Z.root,",\n &.").concat(b.Z.focused," .").concat(v.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,a.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(m.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(y.Z,w({endAdornment:s,value:u},l,{sx:c}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(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 Z=function(e){var n=e.id,t=e.label,d=e.selectItems,v=e.checkItem,p=e.disableItem,b=e.formControlProps,m=e.hideItem,g=e.inputLabelProps,y=void 0===g?{}:g,h=e.isReadOnly,k=void 0!==h&&h,w=e.messageBoxProps,x=void 0===w?{}:w,Z=e.name,M=e.onBlur,S=e.onChange,P=e.onFocus,D=e.required,U=e.selectProps,A=void 0===U?{}:U,N=A.multiple,R=A.sx,E=e.value,V=e.isCheckableItems,T=void 0===V?N:V,F=C(e.selectProps,["multiple","sx"]),L=(0,a.useMemo)((function(){return k?O(I({},"& .".concat(o.Z.icon),{visibility:"hidden"}),R):R}),[k,R]),q=(0,a.useCallback)((function(e){return T&&(0,r.jsx)(i.Z,{checked:null===v||void 0===v?void 0:v.call(null,e)})}),[v,T]),B=(0,a.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===m||void 0===m?void 0:m.call(null,e))?"none":void 0},value:e,children:[q(e),t]},"".concat(n,"-").concat(e))}),[q,p,m,n]),H=(0,a.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),_=(0,a.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,a.useMemo)((function(){return t&&(0,r.jsx)(f.Z,O({htmlFor:H,isNotifyRequired:D},y,{children:t}))}),[y,D,t,H]),G=(0,a.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return B(t,void 0===r?t:r)}))}),[B,d]);return(0,r.jsxs)(u.Z,O({fullWidth:!0},b,{children:[W,(0,r.jsx)(j,O({id:H,input:_,multiple:N,name:Z,onBlur:M,onChange:S,onFocus:P,readOnly:k,value:E},F,{sx:L,children:G})),(0,r.jsx)(l.Z,O({},x))]}))}},3106:function(e,n){n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},634:function(e,n,t){var r=t(5893),o=t(4390),i=t(1770);n.Z=function(e,n){o.Z.put("/init/set-map-network",{value:e}).catch((function(t){var o=(0,i.Z)(t);o.children=(0,r.jsxs)(r.Fragment,{children:["Failed to ",e?"enable":"disable"," network mapping."," ",o.children]}),null===n||void 0===n||n.call(null,o)}))}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86],{1939:function(e,n,t){var r=t(5893),o=t(7357),i=t(7169);function u(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;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="Decorator",s={ok:"".concat(c,"-ok"),warning:"".concat(c,"-warning"),error:"".concat(c,"-error"),off:"".concat(c,"-off")};n.Z=function(e){var n,t=e.colour,c=e.sx,f=l(e,["colour","sx"]);return(0,r.jsx)(o.Z,a({},f,{className:s[t],sx:a((n={borderRadius:i.n_,height:"100%",width:"1.4em"},u(n,"&.".concat(s.ok),{backgroundColor:i.Ej}),u(n,"&.".concat(s.warning),{backgroundColor:i.Wd}),u(n,"&.".concat(s.error),{backgroundColor:i.hM}),u(n,"&.".concat(s.off),{backgroundColor:i.s7}),n),c)}))}},5741:function(e,n,t){var r=t(5893),o=t(1714),i=t(122),u=t(7169),a=t(4690);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 c(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(e){var n=e.children,t=e.sx,l=s(e,["children","sx"]);return(0,r.jsx)(i.Z,c({underline:"hover",variant:"subtitle1"},l,{sx:c({color:u.lD,textDecorationColor:u.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},4427:function(e,n,t){var r=t(5893),o=t(2429),i=t(9309),u=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(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 Z=function(e){var n=e.isFloating,t=e.networkInterface,i=t.networkInterfaceName,u=t.networkInterfaceState,a=e.onClose,l=e.sx,c=C(e,["isFloating","networkInterface","onClose","sx"]),f=n?{borderColor:y.s7,borderRadius:y.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:y.E5,padding:".6em 1.2em"}:{};return(0,r.jsxs)(o.Z,O({sx:O({display:"flex",flexDirection:"row","& > :not(:first-child)":{alignSelf:"center",marginLeft:".5em"}},f,l)},c,{children:[(0,r.jsx)(x.Z,{colour:"up"===u?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.Ac,{text:i}),a&&(0,r.jsx)(w.Z,{onClick:a,size:"small",sx:{color:y.s7},children:(0,r.jsx)(s.Z,{})})]}))};Z.defaultProps={isFloating:!1,onClose:void 0};var M=Z,S=(0,t(1496).ZP)(o.Z)((function(){return{borderColor:y.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}})),P=t(4690),D=t(7971),U=t(4069),A=t(7869),N=t(6284),R=t(3679),E=t(1905),V=t(2519),T=t(634),F=t(2152),L=t(2027);function q(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 W(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(l){a=!0,o=l}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||$(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$(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 $(e,n){if(e){if("string"===typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}var J={ifaceNotApplied:"".concat("NetworkInitForm","-network-interface-not-applied")},z=[void 0,void 0],X="dns",K="gateway",Y=function(e){return"".concat(e,"Interface")},Q=function(e){return"".concat(e,"IPAddress")},ee=function(e){return"".concat(e,"Name")},ne=function(e){return"".concat(e,"SubnetMask")},te=function(e){return"".concat(e,"NetworkSubnetConflict")},re=Array.from({length:2},(function(e,n){return n+1})),oe={bcn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.20".concat(e,".").concat(n)},mask:"255.255.0.0"},ifn:{ip:function(){return""},mask:""},mn:{ip:function(){return"10.199."},mask:"255.255.0.0"},sn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.10".concat(e,".").concat(n)},mask:"255.255.0.0"}},ie=function(e){return"network".concat(e)},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.inputUUID,t=void 0===n?(0,m.Z)():n,r=e.interfaces,o=void 0===r?G(z):r,i=e.ipAddress,u=void 0===i?"":i,a=e.name,l=e.subnetMask,c=void 0===l?"":l,s=e.type,f=void 0===s?"":s,d=e.typeCount,v=void 0===d?0:d,p=_(e,["inputUUID","interfaces","ipAddress","name","subnetMask","type","typeCount"]),b=a;return a||(b=h.Z[f]&&v>0?"".concat(h.Z[f]," ").concat(v):"Unknown Network"),H({inputUUID:t,interfaces:o,ipAddress:u,name:b,subnetMask:c,type:f,typeCount:v},p)},ae=function(e,n){return[{align:"center",field:"",renderCell:function(t){var i,u=t.row,a=(null!==(i=n[u.networkInterfaceUUID])&&void 0!==i&&i).isApplied,s="grab",f=function(){for(var n=arguments.length,t=new Array(n),r=0;r :not(:first-child)":{marginLeft:".5em"}},children:[(0,r.jsx)(x.Z,{colour:"up"===t?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.KI,{text:i})]})}},{field:"networkInterfaceMACAddress",flex:1,headerName:"MAC",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.$_,{text:n})}},{field:"networkInterfaceState",flex:1,headerName:"State",renderCell:function(e){var n=e.value,t=String(n);return(0,r.jsx)(j.KI,{text:"".concat(t.charAt(0).toUpperCase()).concat(t.substring(1))})}},{field:"networkInterfaceSpeed",flex:1,headerName:"Speed",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.KI,{text:"".concat(parseFloat(n).toLocaleString()," Mbps")})}},{field:"networkInterfaceOrder",flex:1,headerName:"Order"}]},le=function(e){var n=e.allowMigrationNetwork,t=e.createDropMouseUpHandler,a=e.getNetworkTypeCount,l=e.hostDetail,c=void 0===l?{}:l,d=c.hostType,v=c.sequence,p=e.networkIndex,m=e.networkInput,g=e.networkInterfaceCount,k=e.networkInterfaceInputMap,w=e.removeNetwork,x=e.setMessageRe,I=e.setNetworkInputs,O=e.setNetworkInterfaceInputMap,C=e.testInput,Z=e.testInputToToggleSubmitDisabled,P=(0,i.Z)(),A=(0,u.Z)(P.breakpoints.up("md")),E=(0,u.Z)(P.breakpoints.up("lg")),T=(0,b.useRef)({}),F=(0,b.useRef)({}),L=m.inputUUID,q=m.interfaces,_=m.ipAddress,$=m.isRequired,J=m.subnetMask,z=m.type,X=m.typeCount,K=(0,b.useMemo)((function(){return ie(L)}),[L]),ee=(0,b.useMemo)((function(){return Y(K)}),[K]),ue=(0,b.useMemo)((function(){return Q(K)}),[K]),ae=(0,b.useMemo)((function(){return ne(K)}),[K]),le=(0,b.useMemo)((function(){return te(K)}),[K]),ce=(0,b.useMemo)((function(){return"node"===d}),[d]),se=(0,b.useMemo)((function(){return!ce&&g<=2?[1]:re}),[ce,g]),fe=(0,b.useMemo)((function(){var e=h.Z.bcn,t=h.Z.ifn,r=h.Z.mn,o=h.Z.sn;return ce&&g>=8&&(n||"mn"===z)?{bcn:e,ifn:t,mn:r,sn:o}:{bcn:e,ifn:t,sn:o}}),[n,ce,g,z]),de=(0,b.useCallback)((function(e,n,t){var r=T.current,o=r.getIsChangedByUser,i=r.setValue,u=F.current,a=u.getIsChangedByUser,l=u.setValue;(null===o||void 0===o?void 0:o.call(null))||(e.ipAddress=n,null===i||void 0===i||i.call(null,n)),(null===a||void 0===a?void 0:a.call(null))||(e.subnetMask=t,null===l||void 0===l||l.call(null,t))}),[]);return(0,b.useEffect)((function(){var e,n;"striker"===d&&"ifn"!==z&&(!(null===(e=T.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))&&Number(v)&&(null===(n=T.current.setValue)||void 0===n||n.call(null,_.replace(/^((?:\d+\.){3})\d*$/,"$1".concat(v)))))}),[d,_,v,z]),(0,b.useEffect)((function(){var e=m.ipAddressInputRef,n=m.subnetMaskInputRef;e===T&&n===F||(m.ipAddressInputRef=T,m.subnetMaskInputRef=F,I((function(e){return G(e)})))}),[m,I]),(0,r.jsxs)(R.Lg,{children:[(0,r.jsxs)(R.CH,{children:[(0,r.jsx)(V.Z,{id:"network-".concat(L,"-name"),isReadOnly:$,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(fe).map((function(e){var n=W(e,2),t=n[0],r=n[1],o=a(t,{lastIndex:p});return t!==z&&(o+=1),{value:t,displayValue:"".concat(r," ").concat(o)}})),selectProps:{onChange:function(e){var n=e.target.value,t=String(n);m.type=t;var r=a(t,{lastIndex:p});m.typeCount=r,m.name="".concat(h.Z[t]," ").concat(r);var o=oe[t];if(o){var i,u=o.ip,l=o.mask;"striker"===d&&"bcn"===t&&(i="4."),de(m,u(r,i),l)}I((function(e){return G(e)}))},renderValue:E?void 0:function(e){return"".concat(String(e).toUpperCase()," ").concat(X)},value:z}}),!$&&(0,r.jsx)(D.Z,{onClick:function(){w(p)},sx:{padding:".2em",position:"absolute",right:"-9px",top:"-4px"},children:(0,r.jsx)(s.Z,{fontSize:"small"})})]}),(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",margin:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[se.map((function(e){var n="Link ".concat(e),i=e-1,u=q[i],a=(null!==u&&void 0!==u?u:{}).networkInterfaceUUID,l=void 0===a?"":a,c=A?(0,r.jsx)(j.Ac,{text:"Drop to add interface."}):(0,r.jsx)(f.Z,{sx:{alignSelf:"center",color:y.s7}});return(0,r.jsxs)(o.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:"1em"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(j.Ac,{sx:{whiteSpace:"nowrap"},text:n}),(0,r.jsx)(S,{onMouseUp:function(){for(var e=arguments.length,n=new Array(e),r=0;r=we.length||Object.values(_).every((function(e){return e.isApplied}))||"node"===t&&we.length<=6}),[t,re,we,_]),Ie=(0,b.useMemo)((function(){return u&&!l}),[u,l]),Oe=(0,b.useMemo)((function(){return re.every((function(e){return"mn"!==e.type}))}),[re]),Ce=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessage)||void 0===t?void 0:t.call(null,e,n)}),[]),Ze=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessageRe)||void 0===t?void 0:t.call(null,e,n)}),[]),Me=(0,b.useCallback)((function(e){return Ce(X,e)}),[Ce]),Se=(0,b.useCallback)((function(e){return Ce(K,e)}),[Ce]),Pe=(0,b.useCallback)((function(e){var n,t=e.fn,r=void 0===t?"every":t,o=e.ip,i=void 0===o?"":o,u=e.mask,a=void 0===u?"":u,l=e.isNegateMatch,c=void 0===l?"every"===r:l,s=e.onMatch,f=e.onMiss,d=e.skipUUID,v="every"===r;try{n=new p.Netmask("".concat(i,"/").concat(a))}catch(b){}return re[r]((function(e){var t,r,o=e.inputUUID,u=e.ipAddressInputRef,a=e.subnetMaskInputRef;if(o===d)return v;var l=null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null),m=null===(r=null===a||void 0===a?void 0:a.current.getValue)||void 0===r?void 0:r.call(null),g=!1;try{g=function(e,n){var t=n.b,r=n.bIP,o=void 0===r?"":r;return e.contains(null!==t&&void 0!==t?t:o)||void 0!==t&&t.contains(e)}(new p.Netmask("".concat(l,"/").concat(m)),{b:n,bIP:i})}catch(b){}return g?null===s||void 0===s||s.call(null,e):null===f||void 0===f||f.call(null,e),c?!g:g}))}),[re]),De=(0,b.useCallback)((function(e){Ce("api",e)}),[Ce]),Ue=(0,b.useMemo)((function(){var e,n=(B(e={},X,{defaults:{getValue:function(){var e;return null===(e=be.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Me()}},tests:[{onFailure:function(){Me({children:"Domain name servers should be a comma-separated list of IPv4 addresses without trailing comma(s)."})},test:function(e){var n=e.value;return k.ah.test(n)}},{test:L.HJ}]}),B(e,K,{defaults:{getValue:function(){var e;return null===(e=me.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Se()}},tests:[{onFailure:function(){Se({children:"Gateway should be a valid IPv4 address."})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value,t=!0,r=Pe({fn:"some",ip:n,onMatch:function(e){var r=e.ipAddress,o=e.name,i=e.type,u=e.typeCount;if(n===r)return t=!1,void Se({children:"Gateway cannot be the same as IP address in ".concat(o,".")});pe("".concat(i).concat(u))}});return r||Se({children:"Gateway must be in one network's subnet."}),r&&t}},{test:L.HJ}]}),e);return re.forEach((function(e){var t,r,o=e.inputUUID,i=e.interfaces,u=e.ipAddressInputRef,a=e.name,l=e.subnetMaskInputRef,c=ie(o),s=Y(c),f=Q(c),d=ne(c),v=function(e){return Ce(s,e)},p=function(e){return Ce(f,e)},b=function(e){return Ce(d,e)},m=function(e,n,t){var r,o="".concat(te(c),"-").concat(n),i="".concat(te(ie(n)),"-").concat(e);Ce((null===(r=ye.current.exists)||void 0===r?void 0:r.call(null,i))?i:o,t)},g=function(e){var n=e.ip,i=void 0===n?null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null):n,c=e.mask,s=void 0===c?null===(r=null===l||void 0===l?void 0:l.current.getValue)||void 0===r?void 0:r.call(null):c;return Pe({ip:i,mask:s,onMatch:function(e){var n=e.inputUUID,t=e.name;m(o,n,{children:'"'.concat(a,'" and "').concat(t,'" cannot be in the same subnet.')})},onMiss:function(e){var n=e.inputUUID;m(o,n)},skipUUID:o})};n[s]={defaults:{getCompare:function(){return i.map((function(e){return void 0!==e}))},onSuccess:function(){v()}},tests:[{onFailure:function(){v({children:"".concat(a," must have at least 1 interface.")})},test:function(e){return e.compare.some((function(e){return e}))}},{onFailure:function(){v({children:"".concat(a," must have a Link 1 interface.")})},test:function(e){var n=W(e.compare,2),t=n[0];return!(n[1]&&!t)}}]},n[f]={defaults:{getValue:function(){var e;return null===(e=null===u||void 0===u?void 0:u.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){p()}},tests:[{onFailure:function(){p({children:"IP address in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({ip:n})}},{test:L.HJ}]},n[ee(c)]={defaults:{value:a},tests:[{test:L.HJ}]},n[d]={defaults:{getValue:function(){var e;return null===(e=null===l||void 0===l?void 0:l.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){b()}},tests:[{onFailure:function(){b({children:"Subnet mask in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({mask:n})}},{test:L.HJ}]}})),n}),[re,Me,Se,Ce,Pe]),Ae=(0,b.useMemo)((function(){return(0,L.LT)(Ue)}),[Ue]),Ne=(0,b.useCallback)((function(e){null===s||void 0===s||s.call(null,Ae(H({isIgnoreOnCallbacks:!0,isTestAll:!0},e)))}),[Ae,s]),Re=(0,b.useCallback)((function(){fe(void 0)}),[]),Ee=(0,b.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};re.unshift(ue(e)),null===s||void 0===s||s.call(null,!1),oe(G(re))}),[re,s]),Ve=(0,b.useCallback)((function(e){var n=W(re.splice(e,1),1)[0],t=n.inputUUID;n.interfaces.forEach((function(e){if(void 0!==e){var n=e.networkInterfaceUUID;_[n].isApplied=!1}})),Ne({excludeTestIdsRe:RegExp(t)}),oe(G(re)),$((function(e){return H({},e)}))}),[re,_,Ne]),Te=(0,b.useCallback)((function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.inputs,r=void 0===t?re:t,o=n.lastIndex,i=void 0===o?0:o,u=0,a=r.length-1;a>=i;a-=1)r[a].type===e&&(u+=1);return u}),[re]),Fe=(0,b.useMemo)((function(){if(void 0!==se){var e=se.networkInterfaceUUID;return function(n,t){return function(){var r,o=(null!==(r=n[t])&&void 0!==r?r:{}).networkInterfaceUUID;o&&o!==e&&(_[o].isApplied=!1),n[t]=se,_[e].isApplied=!0}}}}),[se,_]),Le=(0,b.useMemo)((function(){return se?{cursor:"grabbing",userSelect:"none"}:{}}),[se]),qe=(0,b.useMemo)((function(){if(void 0===se)return(0,r.jsx)(r.Fragment,{});var e=R.x,n=R.y;return(0,r.jsx)(M,{isFloating:!0,networkInterface:se,sx:{left:"calc(".concat(e,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})}),[R,se]),Be=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]),He=(0,b.useMemo)((function(){return se?function(e){var n=e.currentTarget,t=e.nativeEvent,r=t.clientX,o=t.clientY,i=n.getBoundingClientRect(),u=i.left,a=i.top;V({x:r-u,y:o-a})}:void 0}),[se]),_e=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]);(0,b.useEffect)((function(){if([Object.keys(_).length>0,u,l,ge.current,be.current,me.current].every((function(e){return Boolean(e)}))){var e,n;ge.current=!1;var t=l.dns,r=l.gateway,o=l.gatewayInterface,i=l.networks;if([t,r,o,i].some((function(e){return!e})))return;null===(e=be.current.setValue)||void 0===e||e.call(null,t),null===(n=me.current.setValue)||void 0===n||n.call(null,r);var a=[],c=Object.values(i).reduce((function(e,n){var t,r,o=n.ip,i=n.link1Uuid,u=n.link2Uuid,l=void 0===u?"":u,c=n.subnetMask,s=n.type,f=Te(s,{inputs:e})+1,d=Z[s]===f,v="".concat(h.Z[s]," ").concat(f);return a.push(i,l),e.push({inputUUID:(0,m.Z)(),interfaces:[null===(t=_[i])||void 0===t?void 0:t.metadata,null===(r=_[l])||void 0===r?void 0:r.metadata],ipAddress:o,isRequired:d,name:v,subnetMask:c,type:s,typeCount:f}),e}),[]);pe(o),$((function(e){var n=H({},e);return a.forEach((function(e){n[e]&&(n[e].isApplied=!0)})),n})),oe(c),Ne()}}),[u,Te,l,_,Z,Ne]),(0,b.useEffect)((function(){return(0,T.Z)(1,De),window&&window.addEventListener("beforeunload",(function(){var e=new XMLHttpRequest;e.open("PUT","".concat(g.Z,"/init/set-map-network"),!1),e.send(null)}),{once:!0}),function(){(0,T.Z)(0,De)}}),[De]),(0,b.useImperativeHandle)(n,(function(){return H({},ye.current,{get:function(){var e,n;return{dns:null===(e=be.current.getValue)||void 0===e?void 0:e.call(null),gateway:null===(n=me.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:ve,networks:re.map((function(e){var n,t,r=e.inputUUID,o=e.interfaces,i=e.ipAddressInputRef,u=e.name,a=e.subnetMaskInputRef,l=e.type,c=e.typeCount;return{inputUUID:r,interfaces:o,ipAddress:null!==(I=null===(n=null===i||void 0===i?void 0:i.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==I?I:"",name:u,subnetMask:null!==(O=null===(t=null===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null))&&void 0!==O?O:"",type:l,typeCount:c}}))}}})}),[ve,re]);var We,Ge="13em";return xe?(0,r.jsx)(F.Z,{}):(0,r.jsxs)(o.Z,{onMouseDown:function(e){var n=e.clientX,t=e.clientY,r=e.currentTarget.getBoundingClientRect(),o=r.left,i=r.top;V({x:n-o,y:t-i})},onMouseLeave:Be,onMouseMove:He,onMouseUp:_e,sx:H({position:"relative"},Le),children:[qe,(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child, :nth-child(3))":{marginTop:"1em"}},children:[(0,r.jsx)(d._,{autoHeight:!0,columns:ae((function(e){fe(e)}),_),componentsProps:{row:{onMouseDown:function(e){var n=e.target,t=(void 0===n?{}:n).parentElement,r=(void 0===t?{}:t).dataset,o=(void 0===r?{}:r).id,i=void 0===o?void 0:o;if(i){var u=_[i],a=u.isApplied,l=u.metadata;a||fe(l)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:function(e){var n,t=e.row.networkInterfaceUUID,r="";return(null!==(n=_[t])&&void 0!==n&&n).isApplied||(r+=" ".concat(J.ifaceNotApplied)),r},getRowId:function(e){return e.networkInterfaceUUID},hideFooter:!0,initialState:{sorting:{sortModel:[{field:"networkInterfaceName",sort:"asc"}]}},rows:we,sx:(We={color:y.s7},B(We,"& .".concat(a.Z.root),{color:"inherit"}),B(We,"& .".concat(v._.cell,":focus"),{outline:"none"}),B(We,"& .".concat(v._.row,".").concat(J.ifaceNotApplied,":hover"),B({cursor:"grab"},"& .".concat(v._.cell," p"),{cursor:"auto"})),We)}),!Ie&&(0,r.jsx)(P.Z,{row:!0,sx:{"& > :first-child":{alignSelf:"start",marginTop:".7em"},"& > :last-child":{flexGrow:1}},children:(0,r.jsx)(o.Z,{sx:{alignItems:"strech",display:"flex",flexDirection:"row",overflowX:"auto",paddingLeft:".3em","& > div":{marginBottom:".8em",marginTop:".4em",minWidth:Ge,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:re.map((function(e,n){var o=e.inputUUID;return(0,r.jsx)(le,{allowMigrationNetwork:Oe,createDropMouseUpHandler:Fe,getNetworkTypeCount:Te,hostDetail:{hostType:t,sequence:x},networkIndex:n,networkInput:e,networkInterfaceCount:we.length,networkInterfaceInputMap:_,removeNetwork:Ve,setMessageRe:Ze,setNetworkInputs:oe,setNetworkInterfaceInputMap:$,testInput:Ae,testInputToToggleSubmitDisabled:Ne},"network-".concat(o))}))})}),(0,r.jsxs)(P.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:Ge,width:{sm:"25%"}}},children:[(0,r.jsx)(D.Z,{disabled:je,onClick:function(){Ee()},children:(0,r.jsx)(f.Z,{})}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-gateway",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},K,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},K,{value:n})}),Se()},label:"Gateway"}),ref:me}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-dns-csv",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},X,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},X,{value:n})}),Me()},label:"Domain name server(s)"}),ref:be})]}),(0,r.jsx)(A.Z,{count:1,defaultMessageType:"warning",ref:ye})]})]})}));ce.defaultProps={expectHostDetail:!1,hostDetail:void 0,hostSequence:void 0,toggleSubmitDisabled:void 0},ce.displayName="NetworkInitForm";var se=ce},2519:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(5893),o=t(5603),i=t(8128),u=t(3640),a=t(7294),l=t(1363),c=t(4427),s=t(9),f=t(192),d=t(5537),v=t(9558),p=t(6239),b=t(7021),m=t(1057),g=t(4799),y=t(3213),h=t(7169);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 w(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 j=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,l=x(t,["sx","value"]),c=(0,a.useMemo)((function(){var e;return w((k(e={},"& .".concat(o.Z.icon),{color:h.s7}),k(e,"& .".concat(v.Z.root),{marginRight:".8em"}),k(e,"& .".concat(p.Z.root),{color:h.s7,visibility:"hidden"}),k(e,"&:hover .".concat(v.Z.root," .").concat(p.Z.root,",\n &.").concat(b.Z.focused," .").concat(v.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,a.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(m.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(y.Z,w({endAdornment:s,value:u},l,{sx:c}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(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 Z=function(e){var n=e.id,t=e.label,d=e.selectItems,v=e.checkItem,p=e.disableItem,b=e.formControlProps,m=e.hideItem,g=e.inputLabelProps,y=void 0===g?{}:g,h=e.isReadOnly,k=void 0!==h&&h,w=e.messageBoxProps,x=void 0===w?{}:w,Z=e.name,M=e.onBlur,S=e.onChange,P=e.onFocus,D=e.required,U=e.selectProps,A=void 0===U?{}:U,N=A.multiple,R=A.sx,E=e.value,V=e.isCheckableItems,T=void 0===V?N:V,F=C(e.selectProps,["multiple","sx"]),L=(0,a.useMemo)((function(){return k?O(I({},"& .".concat(o.Z.icon),{visibility:"hidden"}),R):R}),[k,R]),q=(0,a.useCallback)((function(e){return T&&(0,r.jsx)(i.Z,{checked:null===v||void 0===v?void 0:v.call(null,e)})}),[v,T]),B=(0,a.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===m||void 0===m?void 0:m.call(null,e))?"none":void 0},value:e,children:[q(e),t]},"".concat(n,"-").concat(e))}),[q,p,m,n]),H=(0,a.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),_=(0,a.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,a.useMemo)((function(){return t&&(0,r.jsx)(f.Z,O({htmlFor:H,isNotifyRequired:D},y,{children:t}))}),[y,D,t,H]),G=(0,a.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return B(t,void 0===r?t:r)}))}),[B,d]);return(0,r.jsxs)(u.Z,O({fullWidth:!0},b,{children:[W,(0,r.jsx)(j,O({id:H,input:_,multiple:N,name:Z,onBlur:M,onChange:S,onFocus:P,readOnly:k,value:E},F,{sx:L,children:G})),(0,r.jsx)(l.Z,O({},x))]}))}},3106:function(e,n){n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},634:function(e,n,t){var r=t(5893),o=t(4390),i=t(1770);n.Z=function(e,n){o.Z.put("/init/set-map-network",{value:e}).catch((function(t){var o=(0,i.Z)(t);o.children=(0,r.jsxs)(r.Fragment,{children:["Failed to ",e?"enable":"disable"," network mapping."," ",o.children]}),null===n||void 0===n||n.call(null,o)}))}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/910-2a0e86a170f6eb77.js b/striker-ui/out/_next/static/chunks/910-2a0e86a170f6eb77.js new file mode 100644 index 00000000..cbae9eee --- /dev/null +++ b/striker-ui/out/_next/static/chunks/910-2a0e86a170f6eb77.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[910],{5685:function(e,t,n){var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"}),"QuestionMark")},6400:function(e,t,n){var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},3640:function(e,t,n){var r=n(3366),o=n(7462),i=n(7294),a=n(6010),l=n(7192),s=n(3616),d=n(1496),u=n(5108),c=n(8216),p=n(1579),m=n(7167),f=n(7120),h=n(5893);const b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Z=(0,d.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,o.Z)({},t.root,t[`margin${(0,c.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),v=i.forwardRef((function(e,t){const n=(0,s.Z)({props:e,name:"MuiFormControl"}),{children:d,className:v,color:g="primary",component:x="div",disabled:w=!1,error:S=!1,focused:y,fullWidth:C=!1,hiddenLabel:z=!1,margin:k="none",required:R=!1,size:A="medium",variant:L="outlined"}=n,M=(0,r.Z)(n,b),E=(0,o.Z)({},n,{color:g,component:x,disabled:w,error:S,fullWidth:C,hiddenLabel:z,margin:k,required:R,size:A,variant:L}),W=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&`margin${(0,c.Z)(n)}`,r&&"fullWidth"]};return(0,l.Z)(o,f.e,t)})(E),[F,N]=i.useState((()=>{let e=!1;return d&&i.Children.forEach(d,(t=>{if(!(0,p.Z)(t,["Input","Select"]))return;const n=(0,p.Z)(t,["Select"])?t.props.input:t;n&&(0,u.B7)(n.props)&&(e=!0)})),e})),[I,O]=i.useState((()=>{let e=!1;return d&&i.Children.forEach(d,(t=>{(0,p.Z)(t,["Input","Select"])&&(0,u.vd)(t.props,!0)&&(e=!0)})),e})),[P,j]=i.useState(!1);w&&P&&j(!1);const $=void 0===y||w?P:y;const q=i.useCallback((()=>{O(!0)}),[]),B={adornedStart:F,setAdornedStart:N,color:g,disabled:w,error:S,filled:I,focused:$,fullWidth:C,hiddenLabel:z,size:A,onBlur:()=>{j(!1)},onEmpty:i.useCallback((()=>{O(!1)}),[]),onFilled:q,onFocus:()=>{j(!0)},registerEffect:undefined,required:R,variant:L};return(0,h.jsx)(m.Z.Provider,{value:B,children:(0,h.jsx)(Z,(0,o.Z)({as:x,ownerState:E,className:(0,a.Z)(W.root,v),ref:t},M,{children:d}))})}));t.Z=v},7120:function(e,t,n){n.d(t,{e:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiFormControl",e)}const i=(0,n(6087).Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);t.Z=i},5704:function(e,t,n){function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&"undefined"===typeof e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{Z:function(){return r}})},476:function(e,t,n){var r=n(3366),o=n(7462),i=n(7294),a=n(6010),l=n(7192),s=n(5704),d=n(4423),u=n(8216),c=n(3616),p=n(1496),m=n(4748),f=n(5893);const h=["children","className","color","component","disabled","error","filled","focused","required"],b=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,o.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${m.Z.focused}`]:{color:e.palette[t.color].main},[`&.${m.Z.disabled}`]:{color:e.palette.text.disabled},[`&.${m.Z.error}`]:{color:e.palette.error.main}}))),Z=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${m.Z.error}`]:{color:e.palette.error.main}}))),v=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:p,component:v="label"}=n,g=(0,r.Z)(n,h),x=(0,d.Z)(),w=(0,s.Z)({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),S=(0,o.Z)({},n,{color:w.color||"primary",component:v,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),y=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,d={root:["root",`color${(0,u.Z)(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,l.Z)(d,m.M,t)})(S);return(0,f.jsxs)(b,(0,o.Z)({as:v,ownerState:S,className:(0,a.Z)(y.root,p),ref:t},g,{children:[i,w.required&&(0,f.jsxs)(Z,{ownerState:S,"aria-hidden":!0,className:y.asterisk,children:["\u2009","*"]})]}))}));t.Z=v},4748:function(e,t,n){n.d(t,{M:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiFormLabel",e)}const i=(0,n(6087).Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.Z=i},1057:function(e,t,n){var r,o=n(3366),i=n(7462),a=n(7294),l=n(6010),s=n(7192),d=n(8216),u=n(5861),c=n(7167),p=n(4423),m=n(1496),f=n(9558),h=n(3616),b=n(5893);const Z=["children","className","component","disablePointerEvents","disableTypography","position","variant"],v=(0,m.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,d.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:e.palette.action.active},"filled"===t.variant&&{[`&.${f.Z.positionStart}&:not(.${f.Z.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),g=a.forwardRef((function(e,t){const n=(0,h.Z)({props:e,name:"MuiInputAdornment"}),{children:m,className:g,component:x="div",disablePointerEvents:w=!1,disableTypography:S=!1,position:y,variant:C}=n,z=(0,o.Z)(n,Z),k=(0,p.Z)()||{};let R=C;C&&k.variant,k&&!R&&(R=k.variant);const A=(0,i.Z)({},n,{hiddenLabel:k.hiddenLabel,size:k.size,disablePointerEvents:w,position:y,variant:R}),L=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${(0,d.Z)(o)}`,a,r&&"hiddenLabel",i&&`size${(0,d.Z)(i)}`]};return(0,s.Z)(l,f.w,t)})(A);return(0,b.jsx)(c.Z.Provider,{value:null,children:(0,b.jsx)(v,(0,i.Z)({as:x,ownerState:A,className:(0,l.Z)(L.root,g),ref:t},z,{children:"string"!==typeof m||S?(0,b.jsxs)(a.Fragment,{children:["start"===y?r||(r=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,m]}):(0,b.jsx)(u.Z,{color:"text.secondary",children:m})}))})}));t.Z=g},9558:function(e,t,n){n.d(t,{w:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInputAdornment",e)}const i=(0,n(6087).Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);t.Z=i},3970:function(e,t,n){n.d(t,{rA:function(){return N},Ej:function(){return F},ZP:function(){return O},_o:function(){return W},Gx:function(){return E}});var r=n(3366),o=n(7462),i=n(1387),a=n(7294),l=n(6010),s=n(67),d=n(8290),u=n(7596),c=n(6600),p=n(5893);const m=["onChange","maxRows","minRows","style","value"];function f(e,t){return parseInt(e[t],10)||0}const h={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var b=a.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:l=1,style:b,value:Z}=e,v=(0,r.Z)(e,m),{current:g}=a.useRef(null!=Z),x=a.useRef(null),w=(0,s.Z)(t,x),S=a.useRef(null),y=a.useRef(0),[C,z]=a.useState({}),k=a.useCallback((()=>{const t=x.current,n=(0,d.Z)(t).getComputedStyle(t);if("0px"===n.width)return;const r=S.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n["box-sizing"],a=f(n,"padding-bottom")+f(n,"padding-top"),s=f(n,"border-bottom-width")+f(n,"border-top-width"),u=r.scrollHeight;r.value="x";const c=r.scrollHeight;let p=u;l&&(p=Math.max(Number(l)*c,p)),i&&(p=Math.min(Number(i)*c,p)),p=Math.max(p,c);const m=p+("border-box"===o?a+s:0),h=Math.abs(p-u)<=1;z((e=>y.current<20&&(m>0&&Math.abs((e.outerHeightStyle||0)-m)>1||e.overflow!==h)?(y.current+=1,{overflow:h,outerHeightStyle:m}):e))}),[i,l,e.placeholder]);a.useEffect((()=>{const e=(0,u.Z)((()=>{y.current=0,k()})),t=(0,d.Z)(x.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(x.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[k]),(0,c.Z)((()=>{k()})),a.useEffect((()=>{y.current=0}),[Z]);return(0,p.jsxs)(a.Fragment,{children:[(0,p.jsx)("textarea",(0,o.Z)({value:Z,onChange:e=>{y.current=0,g||k(),n&&n(e)},ref:w,rows:l,style:(0,o.Z)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},b)},v)),(0,p.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,o.Z)({},h,b,{padding:0})})]})})),Z=n(7192),v=n(8442),g=n(5704),x=n(7167),w=n(4423),S=n(1496),y=n(3616),C=n(8216),z=n(1705),k=n(8974),R=n(2287),A=n(5108),L=n(5827);const M=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],E=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,C.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},W=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},F=(0,S.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:E})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${L.Z.disabled}`]:{color:e.palette.text.disabled,cursor:"default"}},t.multiline&&(0,o.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),N=(0,S.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:W})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r={color:"currentColor",opacity:n?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a={opacity:n?.42:.5};return(0,o.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${L.Z.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${L.Z.disabled}`]:{opacity:1,WebkitTextFillColor:e.palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),I=(0,p.jsx)(R.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}});var O=a.forwardRef((function(e,t){const n=(0,y.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:d,autoFocus:u,className:c,components:m={},componentsProps:f={},defaultValue:h,disabled:S,disableInjectingGlobalStyles:R,endAdornment:E,fullWidth:W=!1,id:O,inputComponent:P="input",inputProps:j={},inputRef:$,maxRows:q,minRows:B,multiline:T=!1,name:H,onBlur:D,onChange:K,onClick:_,onFocus:V,onKeyDown:G,onKeyUp:U,placeholder:Y,readOnly:Q,renderSuffix:J,rows:X,startAdornment:ee,type:te="text",value:ne}=n,re=(0,r.Z)(n,M),oe=null!=j.value?j.value:ne,{current:ie}=a.useRef(null!=oe),ae=a.useRef(),le=a.useCallback((e=>{0}),[]),se=(0,z.Z)(j.ref,le),de=(0,z.Z)($,se),ue=(0,z.Z)(ae,de),[ce,pe]=a.useState(!1),me=(0,w.Z)();const fe=(0,g.Z)({props:n,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=me?me.focused:ce,a.useEffect((()=>{!me&&S&&ce&&(pe(!1),D&&D())}),[me,S,ce,D]);const he=me&&me.onFilled,be=me&&me.onEmpty,Ze=a.useCallback((e=>{(0,A.vd)(e)?he&&he():be&&be()}),[he,be]);(0,k.Z)((()=>{ie&&Ze({value:oe})}),[oe,Ze,ie]);a.useEffect((()=>{Ze(ae.current)}),[]);let ve=P,ge=j;T&&"input"===ve&&(ge=X?(0,o.Z)({type:void 0,minRows:X,maxRows:X},ge):(0,o.Z)({type:void 0,maxRows:q,minRows:B},ge),ve=b);a.useEffect((()=>{me&&me.setAdornedStart(Boolean(ee))}),[me,ee]);const xe=(0,o.Z)({},n,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:E,error:fe.error,focused:fe.focused,formControl:me,fullWidth:W,hiddenLabel:fe.hiddenLabel,multiline:T,size:fe.size,startAdornment:ee,type:te}),we=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:d,multiline:u,size:c,startAdornment:p,type:m}=e,f={root:["root",`color${(0,C.Z)(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===c&&"sizeSmall",u&&"multiline",p&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===c&&"inputSizeSmall",d&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd"]};return(0,Z.Z)(f,L.u,t)})(xe),Se=m.Root||F,ye=f.root||{},Ce=m.Input||N;return ge=(0,o.Z)({},ge,f.input),(0,p.jsxs)(a.Fragment,{children:[!R&&I,(0,p.jsxs)(Se,(0,o.Z)({},ye,!(0,v.Z)(Se)&&{ownerState:(0,o.Z)({},xe,ye.ownerState)},{ref:t,onClick:e=>{ae.current&&e.currentTarget===e.target&&ae.current.focus(),_&&_(e)}},re,{className:(0,l.Z)(we.root,ye.className,c),children:[ee,(0,p.jsx)(x.Z.Provider,{value:null,children:(0,p.jsx)(Ce,(0,o.Z)({ownerState:xe,"aria-invalid":fe.error,"aria-describedby":s,autoComplete:d,autoFocus:u,defaultValue:h,disabled:fe.disabled,id:O,onAnimationStart:e=>{Ze("mui-auto-fill-cancel"===e.animationName?ae.current:{value:"x"})},name:H,placeholder:Y,readOnly:Q,required:fe.required,rows:X,value:oe,onKeyDown:G,onKeyUp:U,type:te},ge,!(0,v.Z)(Ce)&&{as:ve,ownerState:(0,o.Z)({},xe,ge.ownerState)},{ref:ue,className:(0,l.Z)(we.input,ge.className),onBlur:e=>{D&&D(e),j.onBlur&&j.onBlur(e),me&&me.onBlur?me.onBlur(e):pe(!1)},onChange:(e,...t)=>{if(!ie){const t=e.target||ae.current;if(null==t)throw new Error((0,i.Z)(1));Ze({value:t.value})}j.onChange&&j.onChange(e,...t),K&&K(e,...t)},onFocus:e=>{fe.disabled?e.stopPropagation():(V&&V(e),j.onFocus&&j.onFocus(e),me&&me.onFocus?me.onFocus(e):pe(!0))}}))}),E,J?J((0,o.Z)({},fe,{startAdornment:ee})):null]}))]})}))},5827:function(e,t,n){n.d(t,{u:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInputBase",e)}const i=(0,n(6087).Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.Z=i},5108:function(e,t,n){function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{vd:function(){return o},B7:function(){return i}})},76:function(e,t,n){var r=n(3366),o=n(7462),i=n(7294),a=n(7192),l=n(5704),s=n(4423),d=n(476),u=n(4748),c=n(3616),p=n(1496),m=n(6727),f=n(5893);const h=["disableAnimation","margin","shrink","variant"],b=(0,p.ZP)(d.Z,{shouldForwardProp:e=>(0,p.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${u.Z.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,o.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),Z=i.forwardRef((function(e,t){const n=(0,c.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:d}=n,u=(0,r.Z)(n,h),p=(0,s.Z)();let Z=d;"undefined"===typeof Z&&p&&(Z=p.filled||p.focused||p.adornedStart);const v=(0,l.Z)({props:n,muiFormControl:p,states:["size","variant","required"]}),g=(0,o.Z)({},n,{disableAnimation:i,formControl:p,shrink:Z,size:v.size,variant:v.variant,required:v.required}),x=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:l,variant:s,required:d}=e,u={root:["root",n&&"formControl",!l&&"animated",i&&"shrink","small"===r&&"sizeSmall",s],asterisk:[d&&"asterisk"]},c=(0,a.Z)(u,m.Y,t);return(0,o.Z)({},t,c)})(g);return(0,f.jsx)(b,(0,o.Z)({"data-shrink":Z,ownerState:g,ref:t},u,{classes:x}))}));t.Z=Z},6727:function(e,t,n){n.d(t,{Y:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInputLabel",e)}const i=(0,n(6087).Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);t.Z=i},7709:function(e,t,n){n.d(t,{Z:function(){return y}});var r,o=n(3366),i=n(7462),a=n(7294),l=n(7192),s=n(1496),d=n(5893);const u=["children","classes","className","label","notched"],c=(0,s.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p=(0,s.ZP)("legend")((({ownerState:e,theme:t})=>(0,i.Z)({float:"unset"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,i.Z)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));var m=n(4423),f=n(5704),h=n(4656),b=n(3970),Z=n(3616);const v=["components","fullWidth","inputComponent","label","multiline","notched","type"],g=(0,s.ZP)(b.Ej,{shouldForwardProp:e=>(0,s.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:b.Gx})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.Z)({position:"relative",borderRadius:e.shape.borderRadius,[`&:hover .${h.Z.notchedOutline}`]:{borderColor:e.palette.text.primary},"@media (hover: none)":{[`&:hover .${h.Z.notchedOutline}`]:{borderColor:n}},[`&.${h.Z.focused} .${h.Z.notchedOutline}`]:{borderColor:e.palette[t.color].main,borderWidth:2},[`&.${h.Z.error} .${h.Z.notchedOutline}`]:{borderColor:e.palette.error.main},[`&.${h.Z.disabled} .${h.Z.notchedOutline}`]:{borderColor:e.palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,i.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),x=(0,s.ZP)((function(e){const{className:t,label:n,notched:a}=e,l=(0,o.Z)(e,u),s=null!=n&&""!==n,m=(0,i.Z)({},e,{notched:a,withLabel:s});return(0,d.jsx)(c,(0,i.Z)({"aria-hidden":!0,className:t,ownerState:m},l,{children:(0,d.jsx)(p,{ownerState:m,children:s?(0,d.jsx)("span",{children:n}):r||(r=(0,d.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>({borderColor:"light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}))),w=(0,s.ZP)(b.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:b._o})((({theme:e,ownerState:t})=>(0,i.Z)({padding:"16.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),S=a.forwardRef((function(e,t){var n;const r=(0,Z.Z)({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:p,multiline:S=!1,notched:y,type:C="text"}=r,z=(0,o.Z)(r,v),k=(e=>{const{classes:t}=e,n=(0,l.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},h.e,t);return(0,i.Z)({},t,n)})(r),R=(0,m.Z)(),A=(0,f.Z)({props:r,muiFormControl:R,states:["required"]});return(0,d.jsx)(b.ZP,(0,i.Z)({components:(0,i.Z)({Root:g,Input:w},s),renderSuffix:e=>(0,d.jsx)(x,{className:k.notchedOutline,label:null!=p&&""!==p&&A.required?n||(n=(0,d.jsxs)(a.Fragment,{children:[p,"\xa0","*"]})):p,notched:"undefined"!==typeof y?y:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:S,ref:t,type:C},z,{classes:(0,i.Z)({},k,{notchedOutline:null})}))}));S.muiName="Input";var y=S},4656:function(e,t,n){n.d(t,{e:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiOutlinedInput",e)}const i=(0,n(6087).Z)("MuiOutlinedInput",["root","colorSecondary","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","notchedOutline","input","inputSizeSmall","inputMultiline","inputAdornedStart","inputAdornedEnd"]);t.Z=i}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/936-f64829e0e2013921.js b/striker-ui/out/_next/static/chunks/936-f64829e0e2013921.js new file mode 100644 index 00000000..05612829 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/936-f64829e0e2013921.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[936],{1714:function(n,t,e){var r=e(7892),i=e(5893);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link")},122:function(n,t,e){e.d(t,{Z:function(){return Z}});var r=e(3366),i=e(7462),o=e(7294),a=e(6010),u=e(7192),c=e(4844),l=e(1796),b=e(8216),s=e(1496),v=e(3616),f=e(8791),p=e(1705),d=e(5861),m=e(8979);function y(n){return(0,m.Z)("MuiLink",n)}var h=(0,e(6087).Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),g=e(5893);const B=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"],x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},O=(0,s.ZP)(d.Z,{name:"MuiLink",slot:"Root",overridesResolver:(n,t)=>{const{ownerState:e}=n;return[t.root,t[`underline${(0,b.Z)(e.underline)}`],"button"===e.component&&t.button]}})((({theme:n,ownerState:t})=>{const e=(0,c.D)(n,`palette.${(n=>x[n]||n)(t.color)}`)||t.color;return(0,i.Z)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&{textDecoration:"underline",textDecorationColor:"inherit"!==e?(0,l.Fq)(e,.4):void 0,"&:hover":{textDecorationColor:"inherit"}},"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${h.focusVisible}`]:{outline:"auto"}})}));var Z=o.forwardRef((function(n,t){const e=(0,v.Z)({props:n,name:"MuiLink"}),{className:c,color:l="primary",component:s="a",onBlur:d,onFocus:m,TypographyClasses:h,underline:x="always",variant:Z="inherit"}=e,S=(0,r.Z)(e,B),{isFocusVisibleRef:w,onBlur:P,onFocus:M,ref:j}=(0,f.Z)(),[k,E]=o.useState(!1),T=(0,p.Z)(t,j),D=(0,i.Z)({},e,{color:l,component:s,focusVisible:k,underline:x,variant:Z}),A=(n=>{const{classes:t,component:e,focusVisible:r,underline:i}=n,o={root:["root",`underline${(0,b.Z)(i)}`,"button"===e&&"button",r&&"focusVisible"]};return(0,u.Z)(o,y,t)})(D);return(0,g.jsx)(O,(0,i.Z)({className:(0,a.Z)(A.root,c),classes:h,color:l,component:s,onBlur:n=>{P(n),!1===w.current&&E(!1),d&&d(n)},onFocus:n=>{M(n),!0===w.current&&E(!0),m&&m(n)},ref:T,ownerState:D,variant:Z},S))}))},4490:function(n,t,e){e.d(t,{_d:function(){return y},gO:function(){return m}});var r=function(n,t,e){return Math.max(t,Math.min(n,e))},i={"b-B":8n,"b-kB":8000n,"b-MB":8000000n,"b-GB":8000000000n,"b-TB":8000000000000n,"b-PB":8000000000000000n,"b-EB":8000000000000000000n,"b-ZB":8000000000000000000000n,"b-YB":8000000000000000000000000n,"b-KiB":8192n,"b-MiB":8388608n,"b-GiB":8589934592n,"b-TiB":8796093022208n,"b-PiB":9007199254740992n,"b-EiB":9223372036854775808n,"b-ZiB":9444732965739290427392n,"b-YiB":9671406556917033397649408n,"b-b":1n,"b-kbit":1000n,"b-Mbit":1000000n,"b-Gbit":1000000000n,"b-Tbit":1000000000000n,"b-Pbit":1000000000000000n,"b-Ebit":1000000000000000000n,"b-Zbit":1000000000000000000000n,"b-Ybit":1000000000000000000000000n,"b-Kibit":1024n,"b-Mibit":1048576n,"b-Gibit":1073741824n,"b-Tibit":1099511627776n,"b-Pibit":1125899906842624n,"b-Eibit":1152921504606846976n,"b-Zibit":1180591620717411303424n,"b-Yibit":1208925819614629174706176n},o=["byte","ibyte","bit","ibit"],a=["B","kB","MB","GB","TB","PB","EB","ZB","YB","B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB","b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit","b","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],u=function(n){return BigInt(Math.pow(10,n))},c=function(n,t){var e=n.precision,r=n.value,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.isReverse;if("b"===t)return{precision:e,value:r};var c="b-".concat(t),l=i[c];if(a)return{precision:e,value:r*l};var b=String(l).length,s=u(b),v=r*s/l;return{precision:e+b,value:v}},l=function(n,t,e,r,i,o,a){var u=o.indexOf(e),c=t;u<0&&(u=function(n,t){var e="i"===n[1],r=/B$/.test(n),i="".concat(e?"i":"").concat(r?"byte":"bit"),o=t.findIndex((function(n){return n===i}));return{section:i,index:o}}(t,o).index);for(var l=u*a,b=l+a;l=r["b-".concat(s)]?c=s:l=b}return c};function b(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function s(n){for(var t=1;tn.length)&&(t=n.length);for(var e=0,r=new Array(t);e1&&void 0!==arguments[1]?arguments[1]:{},i=r.bigintFormatOptions,o=r.numberFormatOptions,a=r.locale,c=u(t),l=e/c,b=e%c,v="0.",p=f(v,2),d=p[0],m=p[1],y=l.toString(),h=b.toString();if(a){var g="string"===typeof a?a:void 0,B=.1.toLocaleString(g,o),x=f(B,2);d=x[0],m=x[1],y=l.toLocaleString(g,i),h=b.toLocaleString(g,s(s({},i),{},{useGrouping:!1}))}var O=y;return t>0&&(O+="".concat(m).concat(h.padStart(t,d))),O},m=function(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fromUnit,o=void 0===i?"B":i,a=e.locale,u=e.precision,l=e.toUnit;try{t=B(n)}catch(S){return}var b=x(u),s=b.max,v=b.min,f=g(o,"B"),p=f.unit;t=c(t,p,{isReverse:!0});var m=O(t,p,{toUnit:l});t=c(t,m),t=h(t,{toPrecision:r(t.precision,v,s)}),t=Z(t,v);var y=d(t,{locale:a});return{value:y,unit:m}},y=function(){var n=m.apply(void 0,arguments);return n?"".concat(n.value," ").concat(n.unit):n},h=function(n){var t=n.precision,e=n.value,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.toPrecision,o=void 0===i?0:i,a={precision:o,value:e};if(o>t)a.value*=u(o-t);else if(o4&&(a.value+=1n)}return a},g=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=e.indexOf(n);return r<0?{unit:t,unitIndex:0}:{unit:e[r],unitIndex:r}},B=function(n){var t,e,r=String(n).split(/\D/,2),i=null!==(t=null===(e=r[1])||void 0===e?void 0:e.length)&&void 0!==t?t:0,o=r.join("");if(0===o.length)throw Error("Value is blank.");return{value:BigInt(o),precision:i}},x=function(){var n,t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"===typeof e?{max:e,min:e}:{max:null!==(n=e.max)&&void 0!==n?n:2,min:null!==(t=e.min)&&void 0!==t?t:0}},O=function(n,t){var e=n.precision,r=n.value,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},b=c.conversionTable,s=void 0===b?i:b,v=c.toUnit,f=c.units,p=void 0===f?a:f,d=c.unitSections,m=void 0===d?o:d,y=c.unitSectionLength,h=void 0===y?9:y,g=p.indexOf(v);return g>=0?p[g]:l(r/u(e),t,v,s,p,m,h)},Z=function(n,t){for(var e=n.precision,r={precision:e,value:n.value},i=e-t,o=!0,a=1;o&&a<=i;a+=1){0n===r.value%10n?(r.value/=10n,r.precision-=1):o=!1}return r}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/94-f83c1e7821f76736.js b/striker-ui/out/_next/static/chunks/94-f83c1e7821f76736.js deleted file mode 100644 index f1c0e8e3..00000000 --- a/striker-ui/out/_next/static/chunks/94-f83c1e7821f76736.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[94],{5094:function(e,n,r){r.d(n,{S:function(){return I},M:function(){return G}});var t=r(5893),i=r(791),o=r(5537),s=r(4433),c=r(1496),a=r(7357),l=r(8333),u=r(5861),f=r(5152),d=r(7294),v=r(1706),h="0xffe3",x="0xffe9",m=[{keys:"Ctrl + Alt + Delete",scans:[]},{keys:"Ctrl + Alt + F1",scans:[h,x,"0xffbe"]},{keys:"Ctrl + Alt + F2",scans:[h,x,"0xffbf"]},{keys:"Ctrl + Alt + F3",scans:[h,x,"0xffc0"]},{keys:"Ctrl + Alt + F4",scans:[h,x,"0xffc1"]},{keys:"Ctrl + Alt + F5",scans:[h,x,"0xffc2"]},{keys:"Ctrl + Alt + F6",scans:[h,x,"0xffc3"]},{keys:"Ctrl + Alt + F7",scans:[h,x,"0xffc4"]},{keys:"Ctrl + Alt + F8",scans:[h,x,"0xffc5"]},{keys:"Ctrl + Alt + F9",scans:[h,x,"0xffc6"]}],y=r(4427),p=r(3679),b=r(2152),j=r(7750),w=r(1081);function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r=0;r-=1)R.current.sendKey(e[r],0)}else R.current.sendCtrlAltDel();k(null)}}(r)},children:(0,t.jsx)(u.Z,{variant:"subtitle1",children:n})},n)}))})]})}),[C]),X=(0,d.useMemo)((function(){return(0,t.jsx)(a.Z,{children:(0,t.jsx)(v.Z,{onClick:function(){for(var e=arguments.length,r=new Array(e),t=0;t :first-child":{flexGrow:1}},children:[(0,t.jsx)(a.Z,{textAlign:"center",children:re}),p&&q&&(0,t.jsx)(_.Z,{children:(0,t.jsx)(v.Z,{onClick:I,children:(0,t.jsx)(U.Z,{})})})]})]})};$.defaultProps=N;var G=$},9370:function(e,n,r){function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r2&&void 0!==arguments[2]?arguments[2]:{}).ms,t=a(r)-e;return t<=n},u=function(e){var n,r=e,t=o(s([60,60].reduce((function(e,n){var t=r%n;return e.push(t),r=(r-t)/n,e}),[])).concat([r]),3),c=t[0],a=t[1],l=t[2],u=null!==(n=[{unit:"h",value:l},{unit:"m",value:a}].find((function(e){return e.value})))&&void 0!==n?n:{unit:"s",value:c};return function(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 l="Decorator",u={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};n.Z=function(e){var n,t=e.colour,l=e.sx,d=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},d,{className:u[t],sx:c((n={borderRadius:i.n_,height:"100%",width:"1.4em"},a(n,"&.".concat(u.ok),{backgroundColor:i.Ej}),a(n,"&.".concat(u.warning),{backgroundColor:i.Wd}),a(n,"&.".concat(u.error),{backgroundColor:i.hM}),a(n,"&.".concat(u.off),{backgroundColor:i.s7}),n),l)}))}},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,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,u=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:c,titleText:l},u))}},2693:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nn}});var r=t(5893),o=t(1496),i=t(7357),a=t(9008),c=t(1163),s=t(7294),l=t(2029),u=t(7169),d={uuid:"",setAnvilUuid:function(){return null}},f=(0,s.createContext)(d),h=function(e){var n=e.children,t=(0,s.useState)(""),o=t[0],i=t[1];return(0,r.jsx)(f.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:n})},x=t(3679),v=t(1905),m=t(2852),g=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),p=t(1939),j=function(e,n){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},b=t(7750);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},Z=(0,o.ZP)(i.Z)((function(){return y({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),_=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},k=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},O=function(e){var n=e.list,t=(0,s.useContext)(f).uuid,o=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(Z,y({},"children",""!==t&&(0,r.jsxs)(r.Fragment,y({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(p.Z,{colour:_(n[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:n[o].anvil_name}),(0,r.jsx)(b.z,{text:g.get(n[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,y({p:1},"children",(0,r.jsx)(m.Z,y({checked:k(n[o])},"onChange",(function(){var e=n[o],t=e.anvil_uuid;j("".concat(l.Z,"/command/").concat(k(e)?"stop-an":"start-an","/").concat(t),{})})))))]))))},P=t(8462),S=t(7720),A=t(7212),N=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:n.anvil_name}),(0,r.jsx)(b.Ac,{text:g.get(n.anvil_state)||"State unavailable"})]})};function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},ae=t(2749);function ce(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);tu.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(F,{list:p}),(0,r.jsx)(te,{anvil:p.anvils})]}),(0,r.jsx)(i.Z,{className:Ye.server,children:(0,r.jsx)(Re,{anvil:p.anvils})}),(0,r.jsx)(i.Z,{className:Ye.child,children:(0,r.jsx)(Xe,{})}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]}):(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(Re,{anvil:p.anvils}),(0,r.jsx)(F,{list:p}),(0,r.jsx)(te,{anvil:p.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]})),e}),[p,n]),y=(0,s.useMemo)((function(){return j?(0,r.jsx)(x.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 10em)",maxWidth:{xs:void 0,sm:"60%",md:"50%",lg:"40%"},minWidth:"fit-content"},children:(0,r.jsx)(G.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===d&&m((null===t||void 0===t?void 0:t.toString())||"")}),[d,t,m]),(0,r.jsxs)(en,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(h,{children:[(0,r.jsx)($.Z,{}),y]})]})}}},function(e){e.O(0,[412,438,894,182,209,638,62,195,27,157,707,774,888,179],(function(){return n=6069,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/anvil-7fb5cba6fcb66e8c.js b/striker-ui/out/_next/static/chunks/pages/anvil-7fb5cba6fcb66e8c.js new file mode 100644 index 00000000..27aafc62 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/anvil-7fb5cba6fcb66e8c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{6069:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/anvil",function(){return t(2693)}])},1939:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(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 l="Decorator",u={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};n.Z=function(e){var n,t=e.colour,l=e.sx,d=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},d,{className:u[t],sx:c((n={borderRadius:i.n_,height:"100%",width:"1.4em"},a(n,"&.".concat(u.ok),{backgroundColor:i.Ej}),a(n,"&.".concat(u.warning),{backgroundColor:i.Wd}),a(n,"&.".concat(u.error),{backgroundColor:i.hM}),a(n,"&.".concat(u.off),{backgroundColor:i.s7}),n),l)}))}},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,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,u=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:c,titleText:l},u))}},2693:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nn}});var r=t(5893),o=t(1496),i=t(7357),a=t(9008),c=t(1163),s=t(7294),l=t(2029),u=t(7169),d={uuid:"",setAnvilUuid:function(){return null}},f=(0,s.createContext)(d),h=function(e){var n=e.children,t=(0,s.useState)(""),o=t[0],i=t[1];return(0,r.jsx)(f.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:n})},x=t(3679),v=t(1905),m=t(2852),p=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),g=t(1939),j=function(e,n){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},b=t(7750);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},Z=(0,o.ZP)(i.Z)((function(){return y({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),_=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},k=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},O=function(e){var n=e.list,t=(0,s.useContext)(f).uuid,o=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(Z,y({},"children",""!==t&&(0,r.jsxs)(r.Fragment,y({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(g.Z,{colour:_(n[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:n[o].anvil_name}),(0,r.jsx)(b.z,{text:p.get(n[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,y({p:1},"children",(0,r.jsx)(m.Z,y({checked:k(n[o])},"onChange",(function(){var e=n[o],t=e.anvil_uuid;j("".concat(l.Z,"/command/").concat(k(e)?"stop-an":"start-an","/").concat(t),{})})))))]))))},P=t(8462),S=t(7720),A=t(7212),N=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:n.anvil_name}),(0,r.jsx)(b.Ac,{text:p.get(n.anvil_state)||"State unavailable"})]})};function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},ae=t(2749);function ce(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);tu.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(F,{list:g}),(0,r.jsx)(te,{anvil:g.anvils})]}),(0,r.jsx)(i.Z,{className:Ye.server,children:(0,r.jsx)(Re,{anvil:g.anvils})}),(0,r.jsx)(i.Z,{className:Ye.child,children:(0,r.jsx)(Xe,{})}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]}):(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(Re,{anvil:g.anvils}),(0,r.jsx)(F,{list:g}),(0,r.jsx)(te,{anvil:g.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]})),e}),[g,n]),y=(0,s.useMemo)((function(){return j?(0,r.jsx)(x.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 10em)",maxWidth:{xs:void 0,sm:"60%",md:"50%",lg:"40%"},minWidth:"fit-content"},children:(0,r.jsx)(G.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===d&&m((null===t||void 0===t?void 0:t.toString())||"")}),[d,t,m]),(0,r.jsxs)(en,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(h,{children:[(0,r.jsx)($.Z,{}),y]})]})}}},function(e){e.O(0,[498,910,894,839,213,209,638,668,284,157,27,707,774,888,179],(function(){return n=6069,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/config-511a465cb55668af.js b/striker-ui/out/_next/static/chunks/pages/config-e3aa9a84a8baacc1.js similarity index 99% rename from striker-ui/out/_next/static/chunks/pages/config-511a465cb55668af.js rename to striker-ui/out/_next/static/chunks/pages/config-e3aa9a84a8baacc1.js index e602bbd6..74e1c5ee 100644 --- a/striker-ui/out/_next/static/chunks/pages/config-511a465cb55668af.js +++ b/striker-ui/out/_next/static/chunks/pages/config-e3aa9a84a8baacc1.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{329:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return t(6028)}])},5741:function(e,n,t){"use strict";var r=t(5893),o=t(1714),i=t(122),c=t(7169),l=t(4690);function a(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}n.Z=function(e){var n=e.children,t=e.sx,a=u(e,["children","sx"]);return(0,r.jsx)(i.Z,s({underline:"hover",variant:"subtitle1"},a,{sx:s({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(l.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},3106:function(e,n){"use strict";n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},6028:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ke}});var r=t(5893),o=t(8263),i=t(9008),c=t(7294),l=t(2029),a=t(157),s=t(8750),u=t(1905),d=t(3106),f=t(4188),h=t(4390);function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t3&&void 0!==arguments[3]?arguments[3]:e,o=function(t){var r;null===(r=n.current.setMessage)||void 0===r||r.call(null,e,t)};return t&&(t[r]=o),o},b=function(e,n){var t,r,o={};return t=e,o=(null!=(r=Array)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e.reduce((function(e,t){return y(t,n,e),e}),o):Object.entries(e).reduce((function(e,t){var r=m(t,2),o=r[0],i=r[1];return y(i,n,e,o),e}),o)},v=t(6607),g=t(480),x=t(2349),j=t(7750);function w(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;ne.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);t0&&(g({actionProceedText:"Delete",content:"The peer relationship between this striker and the selected ".concat(t," host(s) will terminate. The removed peer(s) can be re-added later."),onProceedAppend:function(){h.Z.delete("/host/connection",{data:n}).catch((function(e){var n=(0,S.Z)(e);n.children="Failed to delete peer connection(s). ".concat(n.children),y(n)}))},proceedColour:"red",titleText:"Delete ".concat(t," peer(s) from this striker?")}),null===(e=f.current.setOpen)||void 0===e||e.call(null,!0))},onEdit:function(){k((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){T[e].isChecked=t,C((function(e){return ne({},e)}))},renderListItem:function(e,n){var t=n.isPingTest,o=void 0!==t&&t;return(0,r.jsx)(Z.Z,{row:!0,spacing:0,children:(0,r.jsxs)(Z.Z,{spacing:0,children:[(0,r.jsx)(j.$_,{children:e}),(0,r.jsx)(J,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(B,{ref:s}),(0,r.jsx)(a.Z,ne({closeOnProceed:!0},v,{ref:f}))]})},oe=t(582),ie=t(5741),ce=t(3906);function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[y]),F=(0,u.Z)("".concat(l.Z,"/ssh-key/conflict"),{onError:function(e){p({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:function(e){b((function(n){return Object.values(e).reduce((function(e,t){return Object.values(t).forEach((function(t){var r=t.hostName,o=t.hostUUID,i=t.ipAddress,c=t.stateUUID;e[c]=se({},n[c],{hostName:r,hostUUID:o,ipAddress:i})})),e}),{})}))},refreshInterval:i}).isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(G.TZ,{header:"Manage changed SSH keys",loading:F,children:[(0,r.jsxs)(Z.Z,{spacing:".2em",children:[(0,r.jsx)(j.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(V.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(ie.Z,{href:t,sx:{display:"inline-flex"},target:"_blank",children:'"Man In The Middle"'})," ","attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys."]}),(0,r.jsx)(H.Z,{header:(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{width:"100%","& > :not(:last-child)":{display:{xs:"none",sm:"flex"}},"& > :last-child":{display:{xs:"initial",sm:"none"},marginLeft:0}},children:[(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(j.Ac,{children:"Host name"}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(j.Ac,{children:"IP address"}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),allowCheckAll:E,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!k,edit:!0,getListCheckboxProps:function(){return{checked:O}},listEmpty:(0,r.jsx)(j.Ac,{align:"center",children:"No conflicting keys found."}),listItems:y,onAllCheckboxChange:function(e,n){I(n)},onDelete:function(){var e,n=P.reduce((function(e,n){if(!A(n))return e;var t=y[n].hostUUID;return e[t]||(e[t]=[]),e[t].push(n),e}),{});x({actionProceedText:"Delete",content:"Resolve ".concat(P.length," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:function(){h.Z.delete("/ssh-key/conflict",{data:n}).catch((function(e){var n=(0,S.Z)(e);n.children="Failed to delete selected SSH key conflicts. ".concat(n.children),p(n)}))},proceedColour:"red",titleText:"Delete ".concat(P.length," conflicting SSH keys?")}),null===(e=s.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:function(e,n,t){T(e,t)},renderListItem:function(e,n){var t=n.hostName,o=n.ipAddress;return(0,r.jsxs)(Z.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(j.Ac,{children:t}),(0,r.jsx)(j.Ac,{children:o})]})},renderListItemCheckboxState:function(e){return A(e)}})]}),C]}),(0,r.jsx)(a.Z,se({closeOnProceed:!0},g,{ref:s}))]})};function fe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function he(e){for(var n=1;n0),l(pe,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(ye),ref:m,required:h})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(C.Z,{id:pe,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(pe)}},onFinishBatch:t(pe),tests:[{test:E.HJ},{onFailure:function(){i(pe,{children:"The passwords do not match."})},test:function(e){var n;return e.value===(null===(n=m.current.getValue)||void 0===n?void 0:n.call(null))}}]},onFirstRender:o(pe),ref:y,required:v})}}:void 0}),[t,o,v,h,i,l,p]);return(0,r.jsx)(O.Z,{columns:{xs:1,sm:2,md:3},layout:he({"common-user-input-cell-name":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(C.Z,{id:me,inputProps:{readOnly:u},label:be,value:s}),inputTestBatch:(0,E.Gn)(be,(function(){i(me)}),{onFinishBatch:t(me)},(function(e){i(me,{children:e})})),onFirstRender:o(me),required:!0}),md:1,sm:2}},x),spacing:"1em"})},xe=t(2545),je=t(8610),we=t(6632),Pe=t(8859);function Ae(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);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}function qe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],c=!0,l=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);c=!0);}catch(a){l=!0,o=a}finally{try{c||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||We(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e){return function(e){if(Array.isArray(e))return He(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(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 We(e,n){if(e){if("string"===typeof e)return He(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?He(e,n):void 0}}var Ke=function(e){var n=e.refreshInterval,t=void 0===n?6e4:n,d=(0,Y.Z)().protect,f=(0,c.useState)(!1),h=f[0],p=f[1],m=(0,c.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:h},onCancelAppend:function(){p(!1)},onProceedAppend:function(){p(!1)},titleText:""}),y=m[0],b=m[1],v=qe((0,M.Z)(void 0,d),2),g=v[0],x=v[1],j=qe((0,M.Z)("",d),2),w=j[0],P=j[1],A=(0,u.Z)("".concat(l.Z,"/host/local"),{onError:function(){P("Unknown")},onSuccess:function(e){var n=e.installTarget,t=e.shortHostName;x(n),P(t)},refreshInterval:t}),Z=A.data,O=A.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:O?"Loading...":"".concat(null===Z||void 0===Z?void 0:Z.shortHostName," Config")})}),(0,r.jsx)(s.Z,{}),(0,r.jsxs)(o.ZP,{container:!0,columns:{xs:1,md:3,lg:4},children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Be,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=$e(e,["onProceedAppend"]);b((function(e){return Ge({},e,t,{onProceedAppend:function(){for(var e=arguments.length,t=new Array(e),r=0;r=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(e){var n=e.children,t=e.sx,a=u(e,["children","sx"]);return(0,r.jsx)(i.Z,s({underline:"hover",variant:"subtitle1"},a,{sx:s({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(l.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},3106:function(e,n){"use strict";n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},6028:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ke}});var r=t(5893),o=t(8263),i=t(9008),c=t(7294),l=t(2029),a=t(157),s=t(8750),u=t(1905),d=t(3106),f=t(4188),h=t(4390);function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t3&&void 0!==arguments[3]?arguments[3]:e,o=function(t){var r;null===(r=n.current.setMessage)||void 0===r||r.call(null,e,t)};return t&&(t[r]=o),o},b=function(e,n){var t,r,o={};return t=e,o=(null!=(r=Array)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e.reduce((function(e,t){return y(t,n,e),e}),o):Object.entries(e).reduce((function(e,t){var r=m(t,2),o=r[0],i=r[1];return y(i,n,e,o),e}),o)},v=t(6607),g=t(480),x=t(2349),j=t(7750);function w(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;ne.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);t0&&(g({actionProceedText:"Delete",content:"The peer relationship between this striker and the selected ".concat(t," host(s) will terminate. The removed peer(s) can be re-added later."),onProceedAppend:function(){h.Z.delete("/host/connection",{data:n}).catch((function(e){var n=(0,S.Z)(e);n.children="Failed to delete peer connection(s). ".concat(n.children),y(n)}))},proceedColour:"red",titleText:"Delete ".concat(t," peer(s) from this striker?")}),null===(e=f.current.setOpen)||void 0===e||e.call(null,!0))},onEdit:function(){k((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){T[e].isChecked=t,C((function(e){return ne({},e)}))},renderListItem:function(e,n){var t=n.isPingTest,o=void 0!==t&&t;return(0,r.jsx)(Z.Z,{row:!0,spacing:0,children:(0,r.jsxs)(Z.Z,{spacing:0,children:[(0,r.jsx)(j.$_,{children:e}),(0,r.jsx)(J,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(B,{ref:s}),(0,r.jsx)(a.Z,ne({closeOnProceed:!0},v,{ref:f}))]})},oe=t(582),ie=t(5741),ce=t(3906);function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[y]),F=(0,u.Z)("".concat(l.Z,"/ssh-key/conflict"),{onError:function(e){p({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:function(e){b((function(n){return Object.values(e).reduce((function(e,t){return Object.values(t).forEach((function(t){var r=t.hostName,o=t.hostUUID,i=t.ipAddress,c=t.stateUUID;e[c]=se({},n[c],{hostName:r,hostUUID:o,ipAddress:i})})),e}),{})}))},refreshInterval:i}).isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(G.TZ,{header:"Manage changed SSH keys",loading:F,children:[(0,r.jsxs)(Z.Z,{spacing:".2em",children:[(0,r.jsx)(j.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(V.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(ie.Z,{href:t,sx:{display:"inline-flex"},target:"_blank",children:'"Man In The Middle"'})," ","attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys."]}),(0,r.jsx)(H.Z,{header:(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{width:"100%","& > :not(:last-child)":{display:{xs:"none",sm:"flex"}},"& > :last-child":{display:{xs:"initial",sm:"none"},marginLeft:0}},children:[(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(j.Ac,{children:"Host name"}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(j.Ac,{children:"IP address"}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),allowCheckAll:E,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!k,edit:!0,getListCheckboxProps:function(){return{checked:O}},listEmpty:(0,r.jsx)(j.Ac,{align:"center",children:"No conflicting keys found."}),listItems:y,onAllCheckboxChange:function(e,n){I(n)},onDelete:function(){var e,n=P.reduce((function(e,n){if(!A(n))return e;var t=y[n].hostUUID;return e[t]||(e[t]=[]),e[t].push(n),e}),{});x({actionProceedText:"Delete",content:"Resolve ".concat(P.length," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:function(){h.Z.delete("/ssh-key/conflict",{data:n}).catch((function(e){var n=(0,S.Z)(e);n.children="Failed to delete selected SSH key conflicts. ".concat(n.children),p(n)}))},proceedColour:"red",titleText:"Delete ".concat(P.length," conflicting SSH keys?")}),null===(e=s.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:function(e,n,t){T(e,t)},renderListItem:function(e,n){var t=n.hostName,o=n.ipAddress;return(0,r.jsxs)(Z.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(j.Ac,{children:t}),(0,r.jsx)(j.Ac,{children:o})]})},renderListItemCheckboxState:function(e){return A(e)}})]}),C]}),(0,r.jsx)(a.Z,se({closeOnProceed:!0},g,{ref:s}))]})};function fe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function he(e){for(var n=1;n0),l(pe,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(ye),ref:m,required:h})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(C.Z,{id:pe,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(pe)}},onFinishBatch:t(pe),tests:[{test:E.HJ},{onFailure:function(){i(pe,{children:"The passwords do not match."})},test:function(e){var n;return e.value===(null===(n=m.current.getValue)||void 0===n?void 0:n.call(null))}}]},onFirstRender:o(pe),ref:y,required:v})}}:void 0}),[t,o,v,h,i,l,p]);return(0,r.jsx)(O.Z,{columns:{xs:1,sm:2,md:3},layout:he({"common-user-input-cell-name":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(C.Z,{id:me,inputProps:{readOnly:u},label:be,value:s}),inputTestBatch:(0,E.Gn)(be,(function(){i(me)}),{onFinishBatch:t(me)},(function(e){i(me,{children:e})})),onFirstRender:o(me),required:!0}),md:1,sm:2}},x),spacing:"1em"})},xe=t(2545),je=t(8610),we=t(6632),Pe=t(8859);function Ae(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);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}function qe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],c=!0,l=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);c=!0);}catch(a){l=!0,o=a}finally{try{c||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||We(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e){return function(e){if(Array.isArray(e))return He(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(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 We(e,n){if(e){if("string"===typeof e)return He(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?He(e,n):void 0}}var Ke=function(e){var n=e.refreshInterval,t=void 0===n?6e4:n,d=(0,Y.Z)().protect,f=(0,c.useState)(!1),h=f[0],p=f[1],m=(0,c.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:h},onCancelAppend:function(){p(!1)},onProceedAppend:function(){p(!1)},titleText:""}),y=m[0],b=m[1],v=qe((0,M.Z)(void 0,d),2),g=v[0],x=v[1],j=qe((0,M.Z)("",d),2),w=j[0],P=j[1],A=(0,u.Z)("".concat(l.Z,"/host/local"),{onError:function(){P("Unknown")},onSuccess:function(e){var n=e.installTarget,t=e.shortHostName;x(n),P(t)},refreshInterval:t}),Z=A.data,O=A.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:O?"Loading...":"".concat(null===Z||void 0===Z?void 0:Z.shortHostName," Config")})}),(0,r.jsx)(s.Z,{}),(0,r.jsxs)(o.ZP,{container:!0,columns:{xs:1,md:3,lg:4},children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Be,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=$e(e,["onProceedAppend"]);b((function(e){return Ge({},e,t,{onProceedAppend:function(){for(var e=arguments.length,t=new Array(e),r=0;re.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 x=function(e){var n=e.onClearIndicatorClick,t=w(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,a=w(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(v.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)(m.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 S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(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 Z=function(e){var n=e.id,t=e.label,d=e.selectItems,y=e.checkItem,p=e.disableItem,v=e.formControlProps,m=e.hideItem,h=e.inputLabelProps,b=void 0===h?{}:h,g=e.isReadOnly,j=void 0!==g&&g,O=e.messageBoxProps,w=void 0===O?{}:O,Z=e.name,C=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?k(S({},"& .".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===m||void 0===m?void 0:m.call(null,e))?"none":void 0},value:e,children:[H(e),t]},"".concat(n,"-").concat(e))}),[H,p,m,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,k({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,k({fullWidth:!0},v,{children:[W,(0,r.jsx)(x,k({id:$,input:B,multiple:U,name:Z,onBlur:C,onChange:A,onFocus:I,readOnly:j,value:L},R,{sx:_,children:z})),(0,r.jsx)(a.Z,k({},w))]}))}},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]),v=(0,o.useMemo)((function(){return f.length>1}),[f.length]),m=(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(){return s({})}),[]),g=(0,o.useCallback)((function(e){return s(f.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[f]),j=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:m,checklist:c,checks:d,getCheck:h,hasAllChecks:y,hasChecks:p,multipleItems:v,resetChecks:b,setAllChecks:g,setCheck:j}}},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))}},7791:function(e,n,t){"use strict";var r=t(8100),o=t(2029),i=t(1200);function u(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=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(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,l=void 0===t?i.Z:t,a=n.baseUrl,c=void 0===a?o.Z:a,s=u(n,["fetcher","baseUrl"]),f=(0,r.ZP)("".concat(c).concat(e),l,s),d=f.data,y=f.error,p=!y&&!d;return{data:d,error:y,loading:p}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,o=n.hostUUID;return e[o]={name:t,type:r,uuid:o},e}),{})},o=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,o=n.anvilName,i=n.anvilUUID,u=n.hosts;return e[i]={description:t,hosts:r(u),name:o,uuid:i},e}),{})}},9132:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ue}});var r=t(5893),o=t(9008),i=t(8750),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),v=t(4825);function m(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,w=t(3457),x=t(6486),S=t(4690),k=t(6125),P=t(6284),Z=t(3679),C=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)(Z.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(k.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)(Z.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(k.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)(C.Z,{id:m,label:"File type",name:m,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,m]);return(0,r.jsxs)(w.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(S.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.ko,{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);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:{},n=e.onError,t=e.onData,r=e.url,o=void 0===r?"":r,i=we((0,re.Z)(!1),2),u=i[0],a=i[1],c=(0,l.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="".concat(o).concat(e);r&&(a(!0),p.Z.get(r).then((function(e){var n=e.data;null===t||void 0===t||t.call(null,n)})).catch((function(e){var t=(0,$.Z)(e);null===n||void 0===n||n.call(null,t)})).finally((function(){a(!1)})))}),[o,a,n,t]);return{fetch:c,loading:u}},Se=t(3906),ke=t(6632),Pe=t(7791);function Ze(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 Ee(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return Ze(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 Ze(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Me=function(e){return e.reduce((function(e,n){var t=Ee(n,5),r=t[0],o=t[1],i=t[2],u=t[3],l=t[4];return e[r]={checksum:l,name:o,size:i,type:u,uuid:r},e}),{})},De=function(){var e=(0,l.useRef)(null),n=(0,l.useRef)({}),t=(0,l.useRef)(null),o=(0,l.useRef)({}),i=Ee((0,ke.Z)(),2),c=i[0],f=i[1],d=(0,l.useState)(!1),y=d[0],v=d[1],m=Ee((0,re.Z)(void 0),2),h=m[0],b=m[1],g=Ee((0,re.Z)(void 0),2),j=g[0],O=g[1],w=(0,ge.Z)("".concat(a.Z,"/file"),{onSuccess:function(e){O(Me(e))}}).isLoading,x=xe({onData:function(e){return O(Me(e))},url:"/file"}),P=x.fetch,C=x.loading,I=(0,l.useMemo)((function(){return w||C}),[C,w]),E=(0,Se.Z)({list:j}),M=E.buildDeleteDialogProps,D=E.checks,U=E.getCheck,T=E.hasAllChecks,L=E.hasChecks,F=E.multipleItems,V=E.resetChecks,R=E.setAllChecks,_=E.setCheck,H=(0,l.useCallback)((function(e){var n;return null===(n=o.current.setMessage)||void 0===n?void 0:n.call(null,"api",e)}),[]),N=xe({onData:function(e){return b(function(e){var n=e[0];if(n){var t=Ee(n,5),r=t[0],o=t[1],i=t[2],u=t[3],l=t[4];return e.reduce((function(e,n){var t=n[5],r=n[6],o=n[7],i=n[8],u=n[9],l=n[10],a=n[11],c=n[12];e.anvils[o]||(e.anvils[o]={description:u,locationUuids:[],name:i,uuid:o}),e.hosts[l]||(e.hosts[l]={locationUuids:[],name:a,type:c,uuid:l}),"dr"===c?e.hosts[l].locationUuids.push(t):e.anvils[o].locationUuids.push(t);var s=1===Number(r);return e.locations[t]={anvilUuid:o,active:s,hostUuid:l,uuid:t},e}),{anvils:{},checksum:l,hosts:{},locations:{},name:o,size:i,type:u,uuid:r})}}(e))},onError:function(e){var n=e.children,t=Ie(e,["children"]);H(Ae({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get file detail. ",n]})},t))},url:"/file/"}),$=N.fetch,B=N.loading,z=(0,Pe.Z)("/anvil",{onError:function(e){H({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get node list. ",e]}),type:"warning"})}}),q=z.data,G=z.loading,K=(0,l.useMemo)((function(){return q&&(0,se.Z)(q)}),[q]),J=(0,Pe.Z)("/host?types=dr",{onError:function(e){H({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get DR host list. ",e]}),type:"warning"})}}),X=J.data,Q=J.loading,Y=(0,l.useMemo)((function(){return(0,r.jsx)(k.Z,{allowCheckAll:F,allowEdit:!0,allowItemButton:y,disableDelete:!L,edit:y,getListCheckboxProps:function(){return{checked:T,onChange:function(e,n){R(n)}}},getListItemCheckboxProps:function(e){return{checked:U(e),onChange:function(n,t){_(e,t)}}},header:!0,listEmpty:"No file(s) found.",listItems:j,onAdd:function(){var n;null===(n=e.current)||void 0===n||n.setOpen(!0)},onDelete:function(){var e;f(M({onProceedAppend:function(){var e=D.map((function(e){return p.Z.delete("/file/".concat(e))}));Promise.all(e).then((function(){return P()})),V()},getConfirmDialogTitle:function(e){return"Delete the following ".concat(e," file(s)?")},renderEntry:function(e){var n=e.key;return(0,r.jsx)(A.Ac,{children:null===j||void 0===j?void 0:j[n].name})}})),null===(e=n.current.setOpen)||void 0===e||e.call(null,!0)},onEdit:function(){v((function(e){return!e}))},onItemClick:function(e,n){var r;null===(r=t.current)||void 0===r||r.setOpen(!0),$(n)},renderListItem:function(e,n){var t,o=n.checksum,i=n.name,l=n.size,a=n.type;return(0,r.jsxs)(S.Z,{columnSpacing:0,fullWidth:!0,md:"row",xs:"column",children:[(0,r.jsxs)(S.Z,{spacing:0,flexGrow:1,children:[(0,r.jsxs)(S.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(A.$_,{children:i}),(0,r.jsx)(ye.Z,{flexItem:!0,orientation:"vertical"}),(0,r.jsx)(A.Ac,{children:null===(t=s.get(a))||void 0===t?void 0:t[1]})]}),(0,r.jsx)(A.Ac,{children:(0,u._d)(l,{toUnit:"ibyte"})})]}),(0,r.jsx)(A.$_,{children:o})]})}})}),[M,D,y,j,U,$,P,T,L,F,V,R,_,f]),ee=(0,l.useMemo)((function(){return I?(0,r.jsx)(je.Z,{}):Y}),[I,Y]),ne=(0,l.useMemo)((function(){return(0,r.jsx)(W.Z,{count:1,ref:o,usePlaceholder:!1})}),[]),te=(0,l.useMemo)((function(){return w||G||Q}),[G,Q,w]),oe=(0,l.useMemo)((function(){return w||G||Q||B}),[G,Q,B,w]),ie=(0,l.useMemo)((function(){return K&&X&&(0,r.jsx)(ce,{anvils:K,drHosts:X})}),[K,X]),ue=(0,l.useMemo)((function(){return K&&X&&h&&(0,r.jsx)(be,{anvils:K,drHosts:X,onSuccess:function(){P()},previous:h})}),[K,X,h,P]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(Z.s_,{children:[(0,r.jsx)(Z.V9,{children:(0,r.jsx)(A.z,{children:"Files"})}),ne,ee]}),(0,r.jsx)(de.Js,{header:"Add file(s)",loading:te,ref:e,showClose:!0,wide:!0,children:ie}),(0,r.jsx)(de.Js,{header:"Update file ".concat(null===h||void 0===h?void 0:h.name),loading:oe,ref:t,showClose:!0,wide:!0,children:ue}),(0,r.jsx)(fe.Z,Ae({closeOnProceed:!0,wide:!0},c,{ref:n}))]})},Ue=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{children:(0,r.jsx)("title",{children:"File Manager"})}),(0,r.jsx)(i.Z,{}),(0,r.jsx)(De,{})]})}}},function(e){e.O(0,[662,412,438,894,182,176,62,195,157,48,774,888,179],(function(){return n=8283,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(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(9132)}])},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 x=function(e){var n=e.onClearIndicatorClick,t=w(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,a=w(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(v.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)(m.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 S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(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 Z=function(e){var n=e.id,t=e.label,d=e.selectItems,y=e.checkItem,p=e.disableItem,v=e.formControlProps,m=e.hideItem,h=e.inputLabelProps,b=void 0===h?{}:h,g=e.isReadOnly,j=void 0!==g&&g,O=e.messageBoxProps,w=void 0===O?{}:O,Z=e.name,C=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?k(S({},"& .".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===m||void 0===m?void 0:m.call(null,e))?"none":void 0},value:e,children:[H(e),t]},"".concat(n,"-").concat(e))}),[H,p,m,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,k({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,k({fullWidth:!0},v,{children:[W,(0,r.jsx)(x,k({id:$,input:B,multiple:U,name:Z,onBlur:C,onChange:A,onFocus:I,readOnly:j,value:L},R,{sx:_,children:z})),(0,r.jsx)(a.Z,k({},w))]}))}},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]),v=(0,o.useMemo)((function(){return f.length>1}),[f.length]),m=(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(){return s({})}),[]),g=(0,o.useCallback)((function(e){return s(f.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[f]),j=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:m,checklist:c,checks:d,getCheck:h,hasAllChecks:y,hasChecks:p,multipleItems:v,resetChecks:b,setAllChecks:g,setCheck:j}}},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))}},7791:function(e,n,t){"use strict";var r=t(8100),o=t(2029),i=t(1200);function u(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=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(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,l=void 0===t?i.Z:t,a=n.baseUrl,c=void 0===a?o.Z:a,s=u(n,["fetcher","baseUrl"]),f=(0,r.ZP)("".concat(c).concat(e),l,s),d=f.data,y=f.error,p=!y&&!d;return{data:d,error:y,loading:p}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,o=n.hostUUID;return e[o]={name:t,type:r,uuid:o},e}),{})},o=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,o=n.anvilName,i=n.anvilUUID,u=n.hosts;return e[i]={description:t,hosts:r(u),name:o,uuid:i},e}),{})}},9132:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ue}});var r=t(5893),o=t(9008),i=t(8750),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),v=t(4825);function m(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,w=t(3457),x=t(6486),S=t(4690),k=t(6125),P=t(6284),Z=t(3679),C=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)(Z.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(k.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)(Z.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(k.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)(C.Z,{id:m,label:"File type",name:m,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,m]);return(0,r.jsxs)(w.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(S.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.ko,{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);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:{},n=e.onError,t=e.onData,r=e.url,o=void 0===r?"":r,i=we((0,re.Z)(!1),2),u=i[0],a=i[1],c=(0,l.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="".concat(o).concat(e);r&&(a(!0),p.Z.get(r).then((function(e){var n=e.data;null===t||void 0===t||t.call(null,n)})).catch((function(e){var t=(0,$.Z)(e);null===n||void 0===n||n.call(null,t)})).finally((function(){a(!1)})))}),[o,a,n,t]);return{fetch:c,loading:u}},Se=t(3906),ke=t(6632),Pe=t(7791);function Ze(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 Ee(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return Ze(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 Ze(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Me=function(e){return e.reduce((function(e,n){var t=Ee(n,5),r=t[0],o=t[1],i=t[2],u=t[3],l=t[4];return e[r]={checksum:l,name:o,size:i,type:u,uuid:r},e}),{})},De=function(){var e=(0,l.useRef)(null),n=(0,l.useRef)({}),t=(0,l.useRef)(null),o=(0,l.useRef)({}),i=Ee((0,ke.Z)(),2),c=i[0],f=i[1],d=(0,l.useState)(!1),y=d[0],v=d[1],m=Ee((0,re.Z)(void 0),2),h=m[0],b=m[1],g=Ee((0,re.Z)(void 0),2),j=g[0],O=g[1],w=(0,ge.Z)("".concat(a.Z,"/file"),{onSuccess:function(e){O(Me(e))}}).isLoading,x=xe({onData:function(e){return O(Me(e))},url:"/file"}),P=x.fetch,C=x.loading,I=(0,l.useMemo)((function(){return w||C}),[C,w]),E=(0,Se.Z)({list:j}),M=E.buildDeleteDialogProps,D=E.checks,U=E.getCheck,T=E.hasAllChecks,L=E.hasChecks,F=E.multipleItems,V=E.resetChecks,R=E.setAllChecks,_=E.setCheck,H=(0,l.useCallback)((function(e){var n;return null===(n=o.current.setMessage)||void 0===n?void 0:n.call(null,"api",e)}),[]),N=xe({onData:function(e){return b(function(e){var n=e[0];if(n){var t=Ee(n,5),r=t[0],o=t[1],i=t[2],u=t[3],l=t[4];return e.reduce((function(e,n){var t=n[5],r=n[6],o=n[7],i=n[8],u=n[9],l=n[10],a=n[11],c=n[12];e.anvils[o]||(e.anvils[o]={description:u,locationUuids:[],name:i,uuid:o}),e.hosts[l]||(e.hosts[l]={locationUuids:[],name:a,type:c,uuid:l}),"dr"===c?e.hosts[l].locationUuids.push(t):e.anvils[o].locationUuids.push(t);var s=1===Number(r);return e.locations[t]={anvilUuid:o,active:s,hostUuid:l,uuid:t},e}),{anvils:{},checksum:l,hosts:{},locations:{},name:o,size:i,type:u,uuid:r})}}(e))},onError:function(e){var n=e.children,t=Ie(e,["children"]);H(Ae({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get file detail. ",n]})},t))},url:"/file/"}),$=N.fetch,B=N.loading,z=(0,Pe.Z)("/anvil",{onError:function(e){H({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get node list. ",e]}),type:"warning"})}}),q=z.data,G=z.loading,K=(0,l.useMemo)((function(){return q&&(0,se.Z)(q)}),[q]),J=(0,Pe.Z)("/host?types=dr",{onError:function(e){H({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get DR host list. ",e]}),type:"warning"})}}),X=J.data,Q=J.loading,Y=(0,l.useMemo)((function(){return(0,r.jsx)(k.Z,{allowCheckAll:F,allowEdit:!0,allowItemButton:y,disableDelete:!L,edit:y,getListCheckboxProps:function(){return{checked:T,onChange:function(e,n){R(n)}}},getListItemCheckboxProps:function(e){return{checked:U(e),onChange:function(n,t){_(e,t)}}},header:!0,listEmpty:"No file(s) found.",listItems:j,onAdd:function(){var n;null===(n=e.current)||void 0===n||n.setOpen(!0)},onDelete:function(){var e;f(M({onProceedAppend:function(){var e=D.map((function(e){return p.Z.delete("/file/".concat(e))}));Promise.all(e).then((function(){return P()})),V()},getConfirmDialogTitle:function(e){return"Delete the following ".concat(e," file(s)?")},renderEntry:function(e){var n=e.key;return(0,r.jsx)(A.Ac,{children:null===j||void 0===j?void 0:j[n].name})}})),null===(e=n.current.setOpen)||void 0===e||e.call(null,!0)},onEdit:function(){v((function(e){return!e}))},onItemClick:function(e,n){var r;null===(r=t.current)||void 0===r||r.setOpen(!0),$(n)},renderListItem:function(e,n){var t,o=n.checksum,i=n.name,l=n.size,a=n.type;return(0,r.jsxs)(S.Z,{columnSpacing:0,fullWidth:!0,md:"row",xs:"column",children:[(0,r.jsxs)(S.Z,{spacing:0,flexGrow:1,children:[(0,r.jsxs)(S.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(A.$_,{children:i}),(0,r.jsx)(ye.Z,{flexItem:!0,orientation:"vertical"}),(0,r.jsx)(A.Ac,{children:null===(t=s.get(a))||void 0===t?void 0:t[1]})]}),(0,r.jsx)(A.Ac,{children:(0,u._d)(l,{toUnit:"ibyte"})})]}),(0,r.jsx)(A.$_,{children:o})]})}})}),[M,D,y,j,U,$,P,T,L,F,V,R,_,f]),ee=(0,l.useMemo)((function(){return I?(0,r.jsx)(je.Z,{}):Y}),[I,Y]),ne=(0,l.useMemo)((function(){return(0,r.jsx)(W.Z,{count:1,ref:o,usePlaceholder:!1})}),[]),te=(0,l.useMemo)((function(){return w||G||Q}),[G,Q,w]),oe=(0,l.useMemo)((function(){return w||G||Q||B}),[G,Q,B,w]),ie=(0,l.useMemo)((function(){return K&&X&&(0,r.jsx)(ce,{anvils:K,drHosts:X})}),[K,X]),ue=(0,l.useMemo)((function(){return K&&X&&h&&(0,r.jsx)(be,{anvils:K,drHosts:X,onSuccess:function(){P()},previous:h})}),[K,X,h,P]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(Z.s_,{children:[(0,r.jsx)(Z.V9,{children:(0,r.jsx)(A.z,{children:"Files"})}),ne,ee]}),(0,r.jsx)(de.Js,{header:"Add file(s)",loading:te,ref:e,showClose:!0,wide:!0,children:ie}),(0,r.jsx)(de.Js,{header:"Update file ".concat(null===h||void 0===h?void 0:h.name),loading:oe,ref:t,showClose:!0,wide:!0,children:ue}),(0,r.jsx)(fe.Z,Ae({closeOnProceed:!0,wide:!0},c,{ref:n}))]})},Ue=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{children:(0,r.jsx)("title",{children:"File Manager"})}),(0,r.jsx)(i.Z,{}),(0,r.jsx)(De,{})]})}}},function(e){e.O(0,[662,498,910,894,839,213,176,668,284,157,48,774,888,179],(function(){return n=8283,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js b/striker-ui/out/_next/static/chunks/pages/index-8766524a2b0384fc.js similarity index 97% rename from striker-ui/out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js rename to striker-ui/out/_next/static/chunks/pages/index-8766524a2b0384fc.js index f7cae4d6..fc1612da 100644 --- a/striker-ui/out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js +++ b/striker-ui/out/_next/static/chunks/pages/index-8766524a2b0384fc.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(9048)}])},7504:function(e,n,t){"use strict";var r=t(5893),i=t(7294),o=t(8263),c=t(7357);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],c=!0,a=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);c=!0);}catch(s){a=!0,i=s}finally{try{c||null==t.return||t.return()}finally{if(a)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return a(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 a(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.Z=function(e){var n=e.calculateItemBreakpoints,t=void 0===n?function(){return{xs:1}}:n,a=e.layout,s=e.wrapperBoxProps,f=u(e,["calculateItemBreakpoints","layout","wrapperBoxProps"]),h=(0,i.useMemo)((function(){return Object.entries(a).map((function(e,n){var r=d(e,2),c=r[0],a=r[1],s=c;return a?(0,i.createElement)(o.ZP,l({},t(n,s),{key:s,item:!0},a)):void 0}))}),[t,a]);return(0,r.jsx)(c.Z,l({},s,{children:(0,r.jsx)(o.ZP,l({container:!0},f,{children:h}))}))}},5741:function(e,n,t){"use strict";var r=t(5893),i=t(1714),o=t(122),c=t(7169),a=t(4690);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=e.children,t=e.sx,s=u(e,["children","sx"]);return(0,r.jsx)(o.Z,l({underline:"hover",variant:"subtitle1"},s,{sx:l({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(i.Z,{sx:{marginLeft:".3em"}})]})}))}},7791:function(e,n,t){"use strict";var r=t(8100),i=t(2029),o=t(1200);function c(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,a=void 0===t?o.Z:t,s=n.baseUrl,l=void 0===s?i.Z:s,u=c(n,["fetcher","baseUrl"]),d=(0,r.ZP)("".concat(l).concat(e),a,u),f=d.data,h=d.error,m=!h&&!f;return{data:f,error:h,loading:m}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,i=n.hostUUID;return e[i]={name:t,type:r,uuid:i},e}),{})},i=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,i=n.anvilName,o=n.anvilUUID,c=n.hosts;return e[o]={description:t,hosts:r(c),name:i,uuid:o},e}),{})}},9048:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var r=t(5893),i=t(2428),o=t(8263),c=t(7357),a=t(7720),s=t(9008),l=t(7294),u=t(2029),d=t(7169),f=t(8673),h=t(4490),m=function(e){var n=e.anvil_name,t=e.anvil_state,r=e.anvil_uuid;return{hosts:e.hosts.reduce((function(e,n){var t=n.host_name,r=n.host_uuid,i=n.maintenance_mode,o=n.server_count,c=n.state,a=n.state_percent;return e[r]={name:t,maintenance:i,serverCount:o,state:c,stateProgress:a,uuid:r},e}),{}),name:n,state:t,uuid:r}},v=function(e){var n=e.allocated,t=e.reserved,r=e.total;return{allocated:BigInt(n),reserved:BigInt(t),total:BigInt(r)}},x=function(e){var n=e.storage_groups,t=e.total_free,r=e.total_size,i=BigInt(t),o=BigInt(r);return n.reduce((function(e,n){var t=n.storage_group_free,r=n.storage_group_name,i=n.storage_group_total,o=n.storage_group_uuid,c=BigInt(t),a=BigInt(i);return e.storageGroups[o]={free:c,name:r,size:a,uuid:o},e}),{storageGroups:{},totalFree:i,totalSize:o})},j=t(582),p=t(4690),g=t(2152),b=t(5813),y=t(7750),Z=t(7791);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}var P=BigInt(100),w={degraded:d.hM,not_ready:d.Wd,optimal:d.Ej},_={offline:d.Wd,online:d.Ej},S=function(e){var n=e.anvilUuid,t=(0,Z.Z)("/anvil/".concat(n)),i=t.data,c=t.loading,a=(0,l.useMemo)((function(){return i&&m(i)}),[i]),s=(0,Z.Z)("/anvil/".concat(n,"/cpu")),u=s.data,S=s.loading,I=(0,l.useMemo)((function(){return u&&Object.values(u.hosts)}),[u]),A=(0,Z.Z)("/anvil/".concat(n,"/memory")),U=A.data,C=A.loading,E=(0,l.useMemo)((function(){return U&&v(U)}),[U]),M=(0,Z.Z)("/anvil/".concat(n,"/store")),B=M.data,k=M.loading,N=(0,l.useMemo)((function(){return B&&x(B)}),[B]),D=(0,l.useMemo)((function(){return[c,S,C,k].some((function(e){return e}))}),[c,S,C,k]),T=(0,l.useMemo)((function(){return a&&(0,r.jsx)(y.$_,{inheritColour:!0,color:w[a.state],children:a.state})}),[a]),z=(0,l.useMemo)((function(){return a&&(0,r.jsx)(o.ZP,{alignItems:"center",columns:20,columnSpacing:"0.5em",container:!0,sx:O({},"& > .".concat(f.Z.item,":nth-child(-n + 4)"),{marginBottom:"-.6em"}),children:Object.values(a.hosts).map((function(e){var n,t,i=e.name,c=e.serverCount,a=e.state,s=e.stateProgress,l=e.uuid,u=null!==(n=_[a])&&void 0!==n?n:d.s7,f=a;return["offline","online"].includes(a)?t=(0,r.jsx)(y.$_,{variant:"caption",children:c}):f="".concat(s,"%"),[(0,r.jsx)(o.ZP,{item:!0,xs:7,children:(0,r.jsx)(y.Ac,{variant:"caption",whiteSpace:"nowrap",children:i})},"".concat(l,"-state-label")),(0,r.jsx)(o.ZP,{item:!0,xs:5,children:(0,r.jsx)(y.$_,{inheritColour:!0,color:u,children:f})},"".concat(l,"-state")),(0,r.jsx)(o.ZP,{item:!0,xs:!0,children:(0,r.jsx)(j.Z,{sx:{marginBottom:"-.4em"}})},"".concat(l,"-divider")),(0,r.jsx)(o.ZP,{item:!0,width:"2.2em",children:t&&(0,r.jsx)(y.Ac,{variant:"caption",children:"Servers"})},"".concat(l,"-server-label")),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",width:"2em",children:t},"".concat(l,"-server-count"))]}))})}),[a]),$=(0,l.useMemo)((function(){return u&&I&&(0,r.jsxs)(p.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(p.Z,{spacing:0,children:(0,r.jsxs)(y.Ac,{variant:"caption",whiteSpace:"nowrap",children:["Vendor"," ",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:I[0].vendor})]})}),(0,r.jsx)(j.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(o.ZP,{alignItems:"center",columns:2,container:!0,sx:O({width:"3.7em"},"& > .".concat(f.Z.item,":nth-child(-n + 2)"),{marginBottom:"-.6em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{variant:"caption",children:"Cores"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(y.$_,{variant:"caption",children:u.cores})}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{variant:"caption",children:"Threads"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(y.$_,{variant:"caption",children:u.threads})})]})]})}),[u,I]),W=(0,l.useMemo)((function(){return E&&(0,r.jsxs)(p.Z,{spacing:0,children:[(0,r.jsx)(p.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(y.Ac,{mb:"-.3em",variant:"caption",children:["Free",(0,r.jsx)(y.Q0,{children:(0,h._d)(E.total-(E.reserved+E.allocated),{toUnit:"ibyte"})}),"/",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:(0,h._d)(E.total,{toUnit:"ibyte"})})]})}),(0,r.jsx)(b.Z,{thin:!0,value:{reserved:{value:Number(E.reserved*P/E.total)},allocated:{value:Number((E.reserved+E.allocated)*P/E.total),colour:{0:d.Ej,70:d.Wd,90:d.hM}}}})]})}),[E]),F=(0,l.useMemo)((function(){return N&&(0,r.jsxs)(p.Z,{spacing:0,children:[(0,r.jsx)(p.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(y.Ac,{mb:"-.3em",variant:"caption",children:["Total free",(0,r.jsx)(y.Q0,{children:(0,h._d)(N.totalFree,{toUnit:"ibyte"})}),"/",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:(0,h._d)(N.totalSize,{toUnit:"ibyte"})})]})}),(0,r.jsx)(b.Z,{thin:!0,value:{allocated:{value:Number((N.totalSize-N.totalFree)*P/N.totalSize),colour:{0:d.Ej,70:d.Wd,90:d.hM}}}})]})}),[N]);return D?(0,r.jsx)(g.Z,{mt:0}):(0,r.jsxs)(o.ZP,{alignItems:"center",columns:4,container:!0,sx:O({},"& > .".concat(f.Z.item,":nth-child(odd)"),{alignItems:"center",display:"flex",height:"2.2em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Node"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:T}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Subnodes"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:z}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"CPU"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:$}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Memory"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:W}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Storage"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:F})]})},I=t(8669),A=t(7504),U=t(3679);var C=function(){var e=(0,Z.Z)("/anvil",{refreshInterval:5e3}),n=e.data,t=e.loading,i=(0,l.useMemo)((function(){return n&&(0,I.Z)(n)}),[n]),o=(0,l.useMemo)((function(){return i&&(0,r.jsx)(A.Z,{columns:{xs:1,sm:2,md:3,xl:4},layout:Object.values(i).reduce((function(e,n){var t=n.description,i=n.name,o=n.uuid;return e["anvil-".concat(o)]={children:(0,r.jsxs)(U.Lg,{height:"100%",mv:0,children:[(0,r.jsx)(U.CH,{children:(0,r.jsxs)(y.Ac,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[i,": ",t]})}),(0,r.jsx)(U.bc,{children:(0,r.jsx)(S,{anvilUuid:o})})]})},e}),{}),spacing:"1em",sx:(e={alignContent:"stretch"},n="& > .".concat(f.Z.item),t={minWidth:"20em"},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e)});var e,n,t}),[i]);return(0,r.jsxs)(U.s_,{children:[(0,r.jsx)(U.V9,{children:(0,r.jsx)(y.z,{children:"Nodes"})}),t?(0,r.jsx)(g.Z,{}):o]})},E=t(5094),M=t(1200),B=t(8750),k=t(1706),N=t(5741),D=t(9),T=t(1905),z=t(7698),$=t(9370);function W(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t div":{height:"100%",marginBottom:0,marginTop:0}},xs:1,children:(0,r.jsx)(E.M,{externalPreview:a,externalTimestamp:d,headerEndAdornment:[(0,r.jsx)(N.Z,{href:"/server?uuid=".concat(u,"&server_name=").concat(s,"&server_state=").concat(l),children:s},"server_list_to_server_".concat(u)),(0,r.jsx)(N.Z,{href:"/anvil?anvil_uuid=".concat(t),sx:{opacity:.7},children:n},"server_list_server_".concat(u,"_to_anvil_").concat(t))],hrefPreview:"/server?uuid=".concat(u,"&server_name=").concat(s,"&server_state=").concat(l,"&vnc=1"),isExternalLoading:c,isExternalPreviewStale:i,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,serverState:l,serverUUID:u})},"".concat(u,"-preview"))}))})},G=function(e,n){return""===n?{exclude:e,include:[]}:e.reduce((function(e,t){return t.serverName.includes(n)?e.include.push(t):e.exclude.push(t),e}),{exclude:[],include:[]})},V=function(){var e=(0,l.useRef)(!0),n=(0,l.useState)([]),t=n[0],o=n[1],f=(0,l.useState)([]),h=f[0],m=f[1],v=(0,l.useState)([]),x=v[0],j=v[1],p=(0,l.useState)(""),b=p[0],Z=p[1],O=(0,l.useState)(!1),P=O[0],w=O[1],_=function(){for(var n=arguments.length,t=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(n){var i,c=n.serverUUID,a=Q({},n,{loading:!0,screenshot:(null===(i=t.find((function(e){return e.serverUUID===c})))||void 0===i?void 0:i.screenshot)||"",timestamp:0});return(0,M.Z)("".concat(u.Z,"/server/").concat(c,"?ss=1")).then((function(n){var t=n.screenshot,i=n.timestamp;if(0!==t.length){a.isScreenshotStale=!(0,$.Z$)(i,300),a.loading=!1,a.screenshot=t,a.timestamp=i;var c=L(r);e.current&&o(c)}})).catch((function(){a.isScreenshotStale=!0})).finally((function(){a.loading=!1})),a}));o(r),_(r,b)},refreshInterval:6e4}).isLoading;return(0,l.useEffect)((function(){return function(){e.current=!1}}),[]),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(s.default,{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsx)(B.Z,{}),(0,r.jsx)(U.s_,{children:S?(0,r.jsx)(g.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(U.V9,{sx:{marginBottom:"2em"},children:[(0,r.jsx)(y.z,{children:"Servers"}),(0,r.jsx)(k.Z,{onClick:function(){return w(!0)},children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(D.Z,{placeholder:"Search by server name",onChange:function(e){var n=e.target.value;Z(n),_(t,n)},sx:{minWidth:"16em"},value:b})]}),R(x),x.length>0&&(0,r.jsx)(a.Z,{sx:{backgroundColor:d.d}}),R(h)]})}),(0,r.jsx)(C,{}),(0,r.jsx)(z.Z,{dialogProps:{open:P},onClose:function(){w(!1)}})]})}}},function(e){e.O(0,[412,438,894,182,209,82,62,195,27,157,707,94,774,888,179],(function(){return n=5301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(9048)}])},7504:function(e,n,t){"use strict";var r=t(5893),i=t(7294),o=t(8263),c=t(7357);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],c=!0,a=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);c=!0);}catch(s){a=!0,i=s}finally{try{c||null==t.return||t.return()}finally{if(a)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return a(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 a(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.Z=function(e){var n=e.calculateItemBreakpoints,t=void 0===n?function(){return{xs:1}}:n,a=e.layout,s=e.wrapperBoxProps,f=u(e,["calculateItemBreakpoints","layout","wrapperBoxProps"]),h=(0,i.useMemo)((function(){return Object.entries(a).map((function(e,n){var r=d(e,2),c=r[0],a=r[1],s=c;return a?(0,i.createElement)(o.ZP,l({},t(n,s),{key:s,item:!0},a)):void 0}))}),[t,a]);return(0,r.jsx)(c.Z,l({},s,{children:(0,r.jsx)(o.ZP,l({container:!0},f,{children:h}))}))}},5741:function(e,n,t){"use strict";var r=t(5893),i=t(1714),o=t(122),c=t(7169),a=t(4690);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=e.children,t=e.sx,s=u(e,["children","sx"]);return(0,r.jsx)(o.Z,l({underline:"hover",variant:"subtitle1"},s,{sx:l({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(i.Z,{sx:{marginLeft:".3em"}})]})}))}},7791:function(e,n,t){"use strict";var r=t(8100),i=t(2029),o=t(1200);function c(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,a=void 0===t?o.Z:t,s=n.baseUrl,l=void 0===s?i.Z:s,u=c(n,["fetcher","baseUrl"]),d=(0,r.ZP)("".concat(l).concat(e),a,u),f=d.data,h=d.error,m=!h&&!f;return{data:f,error:h,loading:m}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,i=n.hostUUID;return e[i]={name:t,type:r,uuid:i},e}),{})},i=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,i=n.anvilName,o=n.anvilUUID,c=n.hosts;return e[o]={description:t,hosts:r(c),name:i,uuid:o},e}),{})}},9048:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var r=t(5893),i=t(2428),o=t(8263),c=t(7357),a=t(7720),s=t(9008),l=t(7294),u=t(2029),d=t(7169),f=t(8673),h=t(4490),m=function(e){var n=e.anvil_name,t=e.anvil_state,r=e.anvil_uuid;return{hosts:e.hosts.reduce((function(e,n){var t=n.host_name,r=n.host_uuid,i=n.maintenance_mode,o=n.server_count,c=n.state,a=n.state_percent;return e[r]={name:t,maintenance:i,serverCount:o,state:c,stateProgress:a,uuid:r},e}),{}),name:n,state:t,uuid:r}},v=function(e){var n=e.allocated,t=e.reserved,r=e.total;return{allocated:BigInt(n),reserved:BigInt(t),total:BigInt(r)}},x=function(e){var n=e.storage_groups,t=e.total_free,r=e.total_size,i=BigInt(t),o=BigInt(r);return n.reduce((function(e,n){var t=n.storage_group_free,r=n.storage_group_name,i=n.storage_group_total,o=n.storage_group_uuid,c=BigInt(t),a=BigInt(i);return e.storageGroups[o]={free:c,name:r,size:a,uuid:o},e}),{storageGroups:{},totalFree:i,totalSize:o})},j=t(582),p=t(4690),g=t(2152),b=t(5813),y=t(7750),Z=t(7791);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}var P=BigInt(100),w={degraded:d.hM,not_ready:d.Wd,optimal:d.Ej},_={offline:d.Wd,online:d.Ej},S=function(e){var n=e.anvilUuid,t=(0,Z.Z)("/anvil/".concat(n)),i=t.data,c=t.loading,a=(0,l.useMemo)((function(){return i&&m(i)}),[i]),s=(0,Z.Z)("/anvil/".concat(n,"/cpu")),u=s.data,S=s.loading,I=(0,l.useMemo)((function(){return u&&Object.values(u.hosts)}),[u]),A=(0,Z.Z)("/anvil/".concat(n,"/memory")),U=A.data,C=A.loading,E=(0,l.useMemo)((function(){return U&&v(U)}),[U]),M=(0,Z.Z)("/anvil/".concat(n,"/store")),B=M.data,k=M.loading,N=(0,l.useMemo)((function(){return B&&x(B)}),[B]),D=(0,l.useMemo)((function(){return[c,S,C,k].some((function(e){return e}))}),[c,S,C,k]),T=(0,l.useMemo)((function(){return a&&(0,r.jsx)(y.$_,{inheritColour:!0,color:w[a.state],children:a.state})}),[a]),z=(0,l.useMemo)((function(){return a&&(0,r.jsx)(o.ZP,{alignItems:"center",columns:20,columnSpacing:"0.5em",container:!0,sx:O({},"& > .".concat(f.Z.item,":nth-child(-n + 4)"),{marginBottom:"-.6em"}),children:Object.values(a.hosts).map((function(e){var n,t,i=e.name,c=e.serverCount,a=e.state,s=e.stateProgress,l=e.uuid,u=null!==(n=_[a])&&void 0!==n?n:d.s7,f=a;return["offline","online"].includes(a)?t=(0,r.jsx)(y.$_,{variant:"caption",children:c}):f="".concat(s,"%"),[(0,r.jsx)(o.ZP,{item:!0,xs:7,children:(0,r.jsx)(y.Ac,{variant:"caption",whiteSpace:"nowrap",children:i})},"".concat(l,"-state-label")),(0,r.jsx)(o.ZP,{item:!0,xs:5,children:(0,r.jsx)(y.$_,{inheritColour:!0,color:u,children:f})},"".concat(l,"-state")),(0,r.jsx)(o.ZP,{item:!0,xs:!0,children:(0,r.jsx)(j.Z,{sx:{marginBottom:"-.4em"}})},"".concat(l,"-divider")),(0,r.jsx)(o.ZP,{item:!0,width:"2.2em",children:t&&(0,r.jsx)(y.Ac,{variant:"caption",children:"Servers"})},"".concat(l,"-server-label")),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",width:"2em",children:t},"".concat(l,"-server-count"))]}))})}),[a]),$=(0,l.useMemo)((function(){return u&&I&&(0,r.jsxs)(p.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(p.Z,{spacing:0,children:(0,r.jsxs)(y.Ac,{variant:"caption",whiteSpace:"nowrap",children:["Vendor"," ",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:I[0].vendor})]})}),(0,r.jsx)(j.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(o.ZP,{alignItems:"center",columns:2,container:!0,sx:O({width:"3.7em"},"& > .".concat(f.Z.item,":nth-child(-n + 2)"),{marginBottom:"-.6em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{variant:"caption",children:"Cores"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(y.$_,{variant:"caption",children:u.cores})}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{variant:"caption",children:"Threads"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(y.$_,{variant:"caption",children:u.threads})})]})]})}),[u,I]),W=(0,l.useMemo)((function(){return E&&(0,r.jsxs)(p.Z,{spacing:0,children:[(0,r.jsx)(p.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(y.Ac,{mb:"-.3em",variant:"caption",children:["Free",(0,r.jsx)(y.Q0,{children:(0,h._d)(E.total-(E.reserved+E.allocated),{toUnit:"ibyte"})}),"/",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:(0,h._d)(E.total,{toUnit:"ibyte"})})]})}),(0,r.jsx)(b.Z,{thin:!0,value:{reserved:{value:Number(E.reserved*P/E.total)},allocated:{value:Number((E.reserved+E.allocated)*P/E.total),colour:{0:d.Ej,70:d.Wd,90:d.hM}}}})]})}),[E]),F=(0,l.useMemo)((function(){return N&&(0,r.jsxs)(p.Z,{spacing:0,children:[(0,r.jsx)(p.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(y.Ac,{mb:"-.3em",variant:"caption",children:["Total free",(0,r.jsx)(y.Q0,{children:(0,h._d)(N.totalFree,{toUnit:"ibyte"})}),"/",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:(0,h._d)(N.totalSize,{toUnit:"ibyte"})})]})}),(0,r.jsx)(b.Z,{thin:!0,value:{allocated:{value:Number((N.totalSize-N.totalFree)*P/N.totalSize),colour:{0:d.Ej,70:d.Wd,90:d.hM}}}})]})}),[N]);return D?(0,r.jsx)(g.Z,{mt:0}):(0,r.jsxs)(o.ZP,{alignItems:"center",columns:4,container:!0,sx:O({},"& > .".concat(f.Z.item,":nth-child(odd)"),{alignItems:"center",display:"flex",height:"2.2em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Node"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:T}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Subnodes"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:z}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"CPU"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:$}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Memory"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:W}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Storage"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:F})]})},I=t(8669),A=t(7504),U=t(3679);var C=function(){var e=(0,Z.Z)("/anvil",{refreshInterval:5e3}),n=e.data,t=e.loading,i=(0,l.useMemo)((function(){return n&&(0,I.Z)(n)}),[n]),o=(0,l.useMemo)((function(){return i&&(0,r.jsx)(A.Z,{columns:{xs:1,sm:2,md:3,xl:4},layout:Object.values(i).reduce((function(e,n){var t=n.description,i=n.name,o=n.uuid;return e["anvil-".concat(o)]={children:(0,r.jsxs)(U.Lg,{height:"100%",mv:0,children:[(0,r.jsx)(U.CH,{children:(0,r.jsxs)(y.Ac,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[i,": ",t]})}),(0,r.jsx)(U.bc,{children:(0,r.jsx)(S,{anvilUuid:o})})]})},e}),{}),spacing:"1em",sx:(e={alignContent:"stretch"},n="& > .".concat(f.Z.item),t={minWidth:"20em"},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e)});var e,n,t}),[i]);return(0,r.jsxs)(U.s_,{children:[(0,r.jsx)(U.V9,{children:(0,r.jsx)(y.z,{children:"Nodes"})}),t?(0,r.jsx)(g.Z,{}):o]})},E=t(3170),M=t(1200),B=t(8750),k=t(7971),N=t(5741),D=t(9),T=t(1905),z=t(7698),$=t(9370);function W(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t div":{height:"100%",marginBottom:0,marginTop:0}},xs:1,children:(0,r.jsx)(E.M,{externalPreview:a,externalTimestamp:d,headerEndAdornment:[(0,r.jsx)(N.Z,{href:"/server?uuid=".concat(u,"&server_name=").concat(s,"&server_state=").concat(l),children:s},"server_list_to_server_".concat(u)),(0,r.jsx)(N.Z,{href:"/anvil?anvil_uuid=".concat(t),sx:{opacity:.7},children:n},"server_list_server_".concat(u,"_to_anvil_").concat(t))],hrefPreview:"/server?uuid=".concat(u,"&server_name=").concat(s,"&server_state=").concat(l,"&vnc=1"),isExternalLoading:c,isExternalPreviewStale:i,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,serverState:l,serverUUID:u})},"".concat(u,"-preview"))}))})},G=function(e,n){return""===n?{exclude:e,include:[]}:e.reduce((function(e,t){return t.serverName.includes(n)?e.include.push(t):e.exclude.push(t),e}),{exclude:[],include:[]})},V=function(){var e=(0,l.useRef)(!0),n=(0,l.useState)([]),t=n[0],o=n[1],f=(0,l.useState)([]),h=f[0],m=f[1],v=(0,l.useState)([]),x=v[0],j=v[1],p=(0,l.useState)(""),b=p[0],Z=p[1],O=(0,l.useState)(!1),P=O[0],w=O[1],_=function(){for(var n=arguments.length,t=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(n){var i,c=n.serverUUID,a=Q({},n,{loading:!0,screenshot:(null===(i=t.find((function(e){return e.serverUUID===c})))||void 0===i?void 0:i.screenshot)||"",timestamp:0});return(0,M.Z)("".concat(u.Z,"/server/").concat(c,"?ss=1")).then((function(n){var t=n.screenshot,i=n.timestamp;if(0!==t.length){a.isScreenshotStale=!(0,$.Z$)(i,300),a.loading=!1,a.screenshot=t,a.timestamp=i;var c=L(r);e.current&&o(c)}})).catch((function(){a.isScreenshotStale=!0})).finally((function(){a.loading=!1})),a}));o(r),_(r,b)},refreshInterval:6e4}).isLoading;return(0,l.useEffect)((function(){return function(){e.current=!1}}),[]),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(s.default,{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsx)(B.Z,{}),(0,r.jsx)(U.s_,{children:S?(0,r.jsx)(g.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(U.V9,{sx:{marginBottom:"2em"},children:[(0,r.jsx)(y.z,{children:"Servers"}),(0,r.jsx)(k.Z,{onClick:function(){return w(!0)},children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(D.Z,{placeholder:"Search by server name",onChange:function(e){var n=e.target.value;Z(n),_(t,n)},sx:{minWidth:"16em"},value:b})]}),R(x),x.length>0&&(0,r.jsx)(a.Z,{sx:{backgroundColor:d.d}}),R(h)]})}),(0,r.jsx)(C,{}),(0,r.jsx)(z.Z,{dialogProps:{open:P},onClose:function(){w(!1)}})]})}}},function(e){e.O(0,[498,910,894,839,213,209,570,936,668,284,157,27,707,170,774,888,179],(function(){return n=5301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/init-59fe9f29b6489800.js b/striker-ui/out/_next/static/chunks/pages/init-b774a276c8a4ad79.js similarity index 99% rename from striker-ui/out/_next/static/chunks/pages/init-59fe9f29b6489800.js rename to striker-ui/out/_next/static/chunks/pages/init-b774a276c8a4ad79.js index c46977e1..c1e68bbf 100644 --- a/striker-ui/out/_next/static/chunks/pages/init-59fe9f29b6489800.js +++ b/striker-ui/out/_next/static/chunks/pages/init-b774a276c8a4ad79.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{593:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/init",function(){return t(8616)}])},4069:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var r=t(7294),i=t(3675),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,o=e.setType,l=void 0===o?"string":o,u=e.valueKey,a=void 0===u?"value":u;return function(e){var o=e.target[a],u=i.Z[l](o);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,u),null===n||void 0===n||n.call(null,e)}},l=t(2027);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return function(e){if(Array.isArray(e))return u(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 u(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 u(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 f(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}var v=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var p="input",m={boolean:!1,number:0,string:""},h={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},g=(0,r.forwardRef)((function(e,n){var t=e.input,i=e.inputTestBatch,u=e.onBlurAppend,v=e.onFirstRender,g=e.onFocusAppend,y=e.onUnmount,b=e.required,x=void 0===b?h.required:b,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,O=e.createInputOnChangeHandlerOptions,S=void 0===O?h.createInputOnChangeHandlerOptions:O,k=S.postSet,Z=S.valueKey,C=void 0===Z?j:Z,A=s(e.createInputOnChangeHandlerOptions,["postSet","valueKey"]),I=t.props,N=(0,r.useMemo)((function(){return null!==C&&void 0!==C?C:"checked"in I?"checked":"value"}),[I,C]),V=I.onBlur,H=I.onChange,R=I.onFocus,M=I[N],F=void 0===M?m[P]:M,T=s(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(F),z=E[0],B=E[1],D=(0,r.useState)(!1),_=D[0],L=D[1],q=(0,r.useState)(!1),U=q[0],$=q[1],Q=(0,r.useCallback)((function(e){B(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=x,e=(0,l.LT)(a({},p,i))),e}),[i,x]),G=(0,r.useMemo)((function(){return null!==V&&void 0!==V?V:J&&function(){for(var e=arguments.length,n=new Array(e),t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);l=!0);}catch(a){u=!0,i=a}finally{try{l||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return l(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 l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}var d=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var f={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},v=(0,i.forwardRef)((function(e,n){var t=e.count,l=void 0===t?f.count:t,d=e.defaultMessageType,v=void 0===d?f.defaultMessageType:d,p=e.messages,m=e.onSet,h=e.usePlaceholder,g=void 0===h?f.usePlaceholder:h,y=(0,i.useState)({}),b=y[0],x=y[1],j=(0,i.useMemo)((function(){return function(e){for(var n=1;n0,t=n?l:e.length,i=[];if(e.every((function(e){var n=c(e,2),l=n[0],u=n[1],a=u.children,s=u.type,d=void 0===s?v:s;return i.push((0,r.jsx)(o.Z,{type:d,children:a},"message-".concat(l))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,o=void 0===i?2:i,l=n.which,u=void 0===l?"Start":l;return String(e)["pad".concat(u)](o,r)};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S={show:!0},k=function(e){var n=e.onClick,t=e.show,i=void 0===t?S.show:t,o=O(e,["onClick","show"]);return i?(0,r.jsx)(v.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(/\s/).filter((function(e){return!/and|of/.test(e)})).slice(0,5),t=n.length>1?2:n.length;return _[t](n)},q=function(e){var n=e.organizationPrefix,t=e.hostNumber,r=e.domainName;return[n,t,r].every((function(e){return Boolean(e)}))?"".concat(n,"-striker").concat(w(t),".").concat(r):""},U=(0,a.forwardRef)((function(e,n){var t,i,o,u,c=e.expectHostDetail,s=void 0!==c&&c,d=e.hostDetail,f=e.onHostNumberBlurAppend,v=e.toggleSubmitDisabled,w=(0,a.useState)(),P=w[0],O=w[1],S=(0,a.useState)(!1),k=S[0],I=S[1],R=(0,a.useState)(!1),_=R[0],U=R[1],$=(0,a.useState)(!0),Q=$[0],J=$[1],G=(0,a.useState)(!0),K=G[0],W=G[1],X=(0,a.useRef)(!0),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useRef)({}),te=(0,a.useRef)({}),re=(0,a.useRef)({}),ie=(0,a.useRef)({}),oe=(0,a.useRef)({}),le=(0,a.useRef)({}),ue=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,D,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),ce=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,T,e)}),[]),se=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),de=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),fe=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),ve=(0,a.useMemo)((function(){var e;return N(e={},M,{defaults:{getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){de(void 0)}},tests:[{onFailure:function(){de({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(A.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(A.Q0,{text:'"'}),"), slash (",(0,r.jsx)(A.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(A.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(A.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(A.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:C.HJ}]}),N(e,F,{defaults:{getValue:function(){var e,n;return null===(e=ee.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){fe(void 0)}},tests:[{onFailure:function(){fe({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=Y.current.getValue)||void 0===n?void 0:n.call(null))}},{test:C.HJ}]}),N(e,T,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=re.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ce(void 0)}},tests:[{onFailure:function(){ce({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,E,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=oe.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){se(void 0)}},tests:[{onFailure:function(){se({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,z,{defaults:{getValue:function(){var e;return null===(e=ie.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:C.HJ}]}),N(e,B,{defaults:{getValue:function(){var e;return null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:C.HJ}]}),N(e,D,{defaults:{getValue:function(){var e;return null===(e=te.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ue(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ue({children:"Organization prefix must be ".concat(t," to ").concat(n," lowercase alphanumeric characters.")})},test:function(e){var n=e.max,t=e.min,r=e.value;return RegExp("^[a-z0-9]{".concat(t,",").concat(n,"}$")).test(r)}}]}),e}),[K,de,fe,ce,se,ae,ue]),pe=(0,a.useMemo)((function(){return(0,C.LT)(ve)}),[ve]),me=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.excludeTestIds,t=void 0===n?[]:n,r=e.inputs,i=e.isContinueOnFailure,o=e.isExcludeConfirmAdminPassword,l=void 0===o?!Q:o;l&&t.push(F),null===v||void 0===v||v.call(null,pe({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[Q,pe,v]),he=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,i=void 0===r?null===(t=ne.current.getValue)||void 0===t?void 0:t.call(null):r,o=L(i);return null===(e=te.current.setValue)||void 0===e||e.call(null,o),me({inputs:N({},D,{isIgnoreOnCallbacks:!1,value:o}),isContinueOnFailure:!0}),o}),[me]),ge=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(i=te.current.getValue)||void 0===i?void 0:i.call(null):t,l=n.hostNumber,a=void 0===l?null===(o=ie.current.getValue)||void 0===o?void 0:o.call(null):l,c=n.domainName,s=void 0===c?null===(u=re.current.getValue)||void 0===u?void 0:u.call(null):c,d=q({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=oe.current.setValue)||void 0===e||e.call(null,d),me({inputs:N({},E,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[me]),ye=(0,a.useCallback)((function(){var e;return Boolean(null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null))}),[]),be=(0,a.useCallback)((function(){var e,n,t;return[null===(e=te.current.getValue)||void 0===e?void 0:e.call(null),null===(n=ie.current.getValue)||void 0===n?void 0:n.call(null),null===(t=re.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),xe=(0,a.useCallback)((function(){var e;(null===(e=te.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?I(ye()):he()}),[ye,he]),je=(0,a.useCallback)((function(){var e;(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?U(be()):ge()}),[be,ge]),we=(0,a.useCallback)((function(){var e,n=he();(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||ge({organizationPrefix:n})}),[ge,he]),Pe=(0,a.useCallback)((function(){ge()}),[ge]),Oe=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),Se=(0,a.useMemo)((function(){return(0,r.jsx)(m.Z,{checked:K,onChange:function(e,n){var t;W(n),me({inputs:(t={},N(t,T,{compare:[!n],isIgnoreOnCallbacks:!1}),N(t,E,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[K,me]);return(0,a.useEffect)((function(){if([s,d,X.current,re.current,oe.current,ie.current,ne.current,te.current].every((function(e){return Boolean(e)}))){var e,n,t,r,i;X.current=!1;var o=d.domain,l=d.hostName,u=d.organization,a=d.prefix,c=d.sequence;null===(e=re.current.setValue)||void 0===e||e.call(null,o),null===(n=oe.current.setValue)||void 0===n||n.call(null,l),null===(t=ie.current.setValue)||void 0===t||t.call(null,c),null===(r=ne.current.setValue)||void 0===r||r.call(null,u),null===(i=te.current.setValue)||void 0===i||i.call(null,a),me()}}),[s,d,me]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,o;return{adminPassword:null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=ne.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=te.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=re.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=ie.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(o=oe.current.getValue)||void 0===o?void 0:o.call(null)}}}})),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:xe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){me()},onHelp:function(){O(Oe("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:ne}),(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(Z,{show:k,onClick:we}),inputProps:{maxLength:5,sx:{minWidth:"2.5em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},M,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===h.Z.password;me({isExcludeConfirmAdminPassword:!n}),J(n),fe()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;me({inputs:N({},M,{value:n})}),de()},onHelp:function(){O(Oe("Password use to login to this Striker and connect to its database. Don't provide an used password here because it'll be stored as plaintext."))}}),ref:Y})}),Q&&(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},F,{value:n})})}},inputLabelProps:{isNotifyRequired:Q},label:"Confirm password",onChange:function(e){var n=e.target.value;me({inputs:N({},F,{value:n})}),fe()}}),ref:ee})})]})})]}),(0,r.jsx)(x.Z,{count:1,defaultMessageType:"warning",ref:le}),(0,r.jsx)(b.Z,{children:(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[Se,(0,r.jsx)(A.Ac,{inverted:!0,children:K?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),P&&(0,r.jsx)(b.Z,{onClose:function(){O(void 0)},children:P})]})}));U.defaultProps={expectHostDetail:!1,hostDetail:void 0,onHostNumberBlurAppend:void 0,toggleSubmitDisabled:void 0},U.displayName="GeneralInitForm";var $=U,Q=t(1770),J=t(1706),G=t(3377),K=t(2444),W=t(5741),X=t(4596),Y=t(3679),ee=t(634),ne=t(2152),te=t(2749);function re(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,o=e.setType,l=void 0===o?"string":o,u=e.valueKey,a=void 0===u?"value":u;return function(e){var o=e.target[a],u=i.Z[l](o);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,u),null===n||void 0===n||n.call(null,e)}},l=t(2027);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return function(e){if(Array.isArray(e))return u(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 u(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 u(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 f(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}var v=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var p="input",m={boolean:!1,number:0,string:""},h={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},g=(0,r.forwardRef)((function(e,n){var t=e.input,i=e.inputTestBatch,u=e.onBlurAppend,v=e.onFirstRender,g=e.onFocusAppend,y=e.onUnmount,b=e.required,x=void 0===b?h.required:b,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,O=e.createInputOnChangeHandlerOptions,S=void 0===O?h.createInputOnChangeHandlerOptions:O,k=S.postSet,Z=S.valueKey,C=void 0===Z?j:Z,A=s(e.createInputOnChangeHandlerOptions,["postSet","valueKey"]),I=t.props,N=(0,r.useMemo)((function(){return null!==C&&void 0!==C?C:"checked"in I?"checked":"value"}),[I,C]),V=I.onBlur,H=I.onChange,R=I.onFocus,M=I[N],F=void 0===M?m[P]:M,T=s(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(F),z=E[0],B=E[1],D=(0,r.useState)(!1),_=D[0],L=D[1],q=(0,r.useState)(!1),U=q[0],$=q[1],Q=(0,r.useCallback)((function(e){B(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=x,e=(0,l.LT)(a({},p,i))),e}),[i,x]),G=(0,r.useMemo)((function(){return null!==V&&void 0!==V?V:J&&function(){for(var e=arguments.length,n=new Array(e),t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);l=!0);}catch(a){u=!0,i=a}finally{try{l||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return l(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 l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}var d=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var f={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},v=(0,i.forwardRef)((function(e,n){var t=e.count,l=void 0===t?f.count:t,d=e.defaultMessageType,v=void 0===d?f.defaultMessageType:d,p=e.messages,m=e.onSet,h=e.usePlaceholder,g=void 0===h?f.usePlaceholder:h,y=(0,i.useState)({}),b=y[0],x=y[1],j=(0,i.useMemo)((function(){return function(e){for(var n=1;n0,t=n?l:e.length,i=[];if(e.every((function(e){var n=c(e,2),l=n[0],u=n[1],a=u.children,s=u.type,d=void 0===s?v:s;return i.push((0,r.jsx)(o.Z,{type:d,children:a},"message-".concat(l))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,o=void 0===i?2:i,l=n.which,u=void 0===l?"Start":l;return String(e)["pad".concat(u)](o,r)};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S={show:!0},k=function(e){var n=e.onClick,t=e.show,i=void 0===t?S.show:t,o=O(e,["onClick","show"]);return i?(0,r.jsx)(v.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(/\s/).filter((function(e){return!/and|of/.test(e)})).slice(0,5),t=n.length>1?2:n.length;return _[t](n)},q=function(e){var n=e.organizationPrefix,t=e.hostNumber,r=e.domainName;return[n,t,r].every((function(e){return Boolean(e)}))?"".concat(n,"-striker").concat(w(t),".").concat(r):""},U=(0,a.forwardRef)((function(e,n){var t,i,o,u,c=e.expectHostDetail,s=void 0!==c&&c,d=e.hostDetail,f=e.onHostNumberBlurAppend,v=e.toggleSubmitDisabled,w=(0,a.useState)(),P=w[0],O=w[1],S=(0,a.useState)(!1),k=S[0],I=S[1],R=(0,a.useState)(!1),_=R[0],U=R[1],$=(0,a.useState)(!0),Q=$[0],J=$[1],G=(0,a.useState)(!0),K=G[0],W=G[1],X=(0,a.useRef)(!0),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useRef)({}),te=(0,a.useRef)({}),re=(0,a.useRef)({}),ie=(0,a.useRef)({}),oe=(0,a.useRef)({}),le=(0,a.useRef)({}),ue=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,D,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),ce=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,T,e)}),[]),se=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),de=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),fe=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),ve=(0,a.useMemo)((function(){var e;return N(e={},M,{defaults:{getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){de(void 0)}},tests:[{onFailure:function(){de({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(A.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(A.Q0,{text:'"'}),"), slash (",(0,r.jsx)(A.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(A.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(A.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(A.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:C.HJ}]}),N(e,F,{defaults:{getValue:function(){var e,n;return null===(e=ee.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){fe(void 0)}},tests:[{onFailure:function(){fe({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=Y.current.getValue)||void 0===n?void 0:n.call(null))}},{test:C.HJ}]}),N(e,T,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=re.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ce(void 0)}},tests:[{onFailure:function(){ce({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,E,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=oe.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){se(void 0)}},tests:[{onFailure:function(){se({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,z,{defaults:{getValue:function(){var e;return null===(e=ie.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:C.HJ}]}),N(e,B,{defaults:{getValue:function(){var e;return null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:C.HJ}]}),N(e,D,{defaults:{getValue:function(){var e;return null===(e=te.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ue(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ue({children:"Organization prefix must be ".concat(t," to ").concat(n," lowercase alphanumeric characters.")})},test:function(e){var n=e.max,t=e.min,r=e.value;return RegExp("^[a-z0-9]{".concat(t,",").concat(n,"}$")).test(r)}}]}),e}),[K,de,fe,ce,se,ae,ue]),pe=(0,a.useMemo)((function(){return(0,C.LT)(ve)}),[ve]),me=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.excludeTestIds,t=void 0===n?[]:n,r=e.inputs,i=e.isContinueOnFailure,o=e.isExcludeConfirmAdminPassword,l=void 0===o?!Q:o;l&&t.push(F),null===v||void 0===v||v.call(null,pe({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[Q,pe,v]),he=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,i=void 0===r?null===(t=ne.current.getValue)||void 0===t?void 0:t.call(null):r,o=L(i);return null===(e=te.current.setValue)||void 0===e||e.call(null,o),me({inputs:N({},D,{isIgnoreOnCallbacks:!1,value:o}),isContinueOnFailure:!0}),o}),[me]),ge=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(i=te.current.getValue)||void 0===i?void 0:i.call(null):t,l=n.hostNumber,a=void 0===l?null===(o=ie.current.getValue)||void 0===o?void 0:o.call(null):l,c=n.domainName,s=void 0===c?null===(u=re.current.getValue)||void 0===u?void 0:u.call(null):c,d=q({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=oe.current.setValue)||void 0===e||e.call(null,d),me({inputs:N({},E,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[me]),ye=(0,a.useCallback)((function(){var e;return Boolean(null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null))}),[]),be=(0,a.useCallback)((function(){var e,n,t;return[null===(e=te.current.getValue)||void 0===e?void 0:e.call(null),null===(n=ie.current.getValue)||void 0===n?void 0:n.call(null),null===(t=re.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),xe=(0,a.useCallback)((function(){var e;(null===(e=te.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?I(ye()):he()}),[ye,he]),je=(0,a.useCallback)((function(){var e;(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?U(be()):ge()}),[be,ge]),we=(0,a.useCallback)((function(){var e,n=he();(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||ge({organizationPrefix:n})}),[ge,he]),Pe=(0,a.useCallback)((function(){ge()}),[ge]),Oe=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),Se=(0,a.useMemo)((function(){return(0,r.jsx)(m.Z,{checked:K,onChange:function(e,n){var t;W(n),me({inputs:(t={},N(t,T,{compare:[!n],isIgnoreOnCallbacks:!1}),N(t,E,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[K,me]);return(0,a.useEffect)((function(){if([s,d,X.current,re.current,oe.current,ie.current,ne.current,te.current].every((function(e){return Boolean(e)}))){var e,n,t,r,i;X.current=!1;var o=d.domain,l=d.hostName,u=d.organization,a=d.prefix,c=d.sequence;null===(e=re.current.setValue)||void 0===e||e.call(null,o),null===(n=oe.current.setValue)||void 0===n||n.call(null,l),null===(t=ie.current.setValue)||void 0===t||t.call(null,c),null===(r=ne.current.setValue)||void 0===r||r.call(null,u),null===(i=te.current.setValue)||void 0===i||i.call(null,a),me()}}),[s,d,me]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,o;return{adminPassword:null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=ne.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=te.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=re.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=ie.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(o=oe.current.getValue)||void 0===o?void 0:o.call(null)}}}})),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:xe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){me()},onHelp:function(){O(Oe("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:ne}),(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(Z,{show:k,onClick:we}),inputProps:{maxLength:5,sx:{minWidth:"2.5em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},M,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===h.Z.password;me({isExcludeConfirmAdminPassword:!n}),J(n),fe()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;me({inputs:N({},M,{value:n})}),de()},onHelp:function(){O(Oe("Password use to login to this Striker and connect to its database. Don't provide an used password here because it'll be stored as plaintext."))}}),ref:Y})}),Q&&(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},F,{value:n})})}},inputLabelProps:{isNotifyRequired:Q},label:"Confirm password",onChange:function(e){var n=e.target.value;me({inputs:N({},F,{value:n})}),fe()}}),ref:ee})})]})})]}),(0,r.jsx)(x.Z,{count:1,defaultMessageType:"warning",ref:le}),(0,r.jsx)(b.Z,{children:(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[Se,(0,r.jsx)(A.Ac,{inverted:!0,children:K?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),P&&(0,r.jsx)(b.Z,{onClose:function(){O(void 0)},children:P})]})}));U.defaultProps={expectHostDetail:!1,hostDetail:void 0,onHostNumberBlurAppend:void 0,toggleSubmitDisabled:void 0},U.displayName="GeneralInitForm";var $=U,Q=t(1770),J=t(7971),G=t(3377),K=t(2444),W=t(5741),X=t(4596),Y=t(3679),ee=t(634),ne=t(2152),te=t(2749);function re(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(t[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`),Number(i)>0&&(t[`spacing-sm-${String(i)}`]||`spacing-sm-${String(i)}`),Number(o)>0&&(t[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(t[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(t[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const b=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,r)=>{const{container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:l,xl:c,xs:p,zeroMinWidth:d}=n.ownerState;return[r.root,t&&r.container,i&&r.item,d&&r.zeroMinWidth,...x(u,t,r),"row"!==e&&r[`direction-xs-${String(e)}`],"wrap"!==l&&r[`wrap-xs-${String(l)}`],!1!==p&&r[`grid-xs-${String(p)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==c&&r[`grid-xl-${String(c)}`]]}})((({ownerState:n})=>(0,i.Z)({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},"wrap"!==n.wrap&&{flexWrap:n.wrap})),(function({theme:n,ownerState:r}){const t=(0,s.P$)({values:r.direction,breakpoints:n.breakpoints.values});return(0,s.k9)({theme:n},t,(n=>{const r={flexDirection:n};return 0===n.indexOf("column")&&(r[`& > .${m.Z.item}`]={maxWidth:"none"}),r}))}),(function({theme:n,ownerState:r}){const{container:t,rowSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{marginTop:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingTop:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){const{container:t,columnSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{width:`calc(100% + ${h(t)})`,marginLeft:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingLeft:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){let t;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof u?u[o]:u;if(void 0===l||null===l)return e;const c=Math.round(t/l*1e8)/1e6+"%";let p={};if(r.container&&r.item&&0!==r.columnSpacing){const t=n.spacing(r.columnSpacing);if("0px"!==t){const n=`calc(${c} + ${h(t)})`;p={flexBasis:n,maxWidth:n}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},p)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));var v=o.forwardRef((function(n,r){const t=(0,p.Z)({props:n,name:"MuiGrid"}),s=(0,u.Z)(t),{className:c,columns:h,columnSpacing:v,component:w="div",container:S=!1,direction:y="row",item:$=!1,lg:P=!1,md:j=!1,rowSpacing:Z,sm:O=!1,spacing:k=0,wrap:I="wrap",xl:W=!1,xs:M=!1,zeroMinWidth:N=!1}=s,A=(0,e.Z)(s,g),L=Z||k,C=v||k,B=o.useContext(d),F=h||B||12,R=(0,i.Z)({},s,{columns:F,container:S,direction:y,item:$,lg:P,md:j,sm:O,rowSpacing:L,columnSpacing:C,wrap:I,xl:W,xs:M,zeroMinWidth:N}),_=(n=>{const{classes:r,container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:c,xl:p,xs:d,zeroMinWidth:f}=n,g={root:["root",t&&"container",i&&"item",f&&"zeroMinWidth",...x(u,t),"row"!==e&&`direction-xs-${String(e)}`,"wrap"!==c&&`wrap-xs-${String(c)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==p&&`grid-xl-${String(p)}`]};return(0,l.Z)(g,m.H,r)})(R);return T=(0,f.jsx)(b,(0,i.Z)({ownerState:R,className:(0,a.Z)(_.root,c),as:w,ref:r},A)),12!==F?(0,f.jsx)(d.Provider,{value:F,children:T}):T;var T}))},8673:function(n,r,t){"use strict";t.d(r,{H:function(){return i}});var e=t(8979);function i(n){return(0,e.Z)("MuiGrid",n)}const o=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(0,t(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((n=>`spacing-xs-${n}`)),...["column-reverse","column","row-reverse","row"].map((n=>`direction-xs-${n}`)),...["nowrap","wrap-reverse","wrap"].map((n=>`wrap-xs-${n}`)),...o.map((n=>`grid-xs-${n}`)),...o.map((n=>`grid-sm-${n}`)),...o.map((n=>`grid-md-${n}`)),...o.map((n=>`grid-lg-${n}`)),...o.map((n=>`grid-xl-${n}`))]);r.Z=a},7106:function(n,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1686)}])},4629:function(n,r,t){"use strict";var e=t(5893),i=t(7357),o=t(7294),a=t(4188),s=t(4825),u=t(4690),l=t(7504),c=t(4069),p=t(7869),d=t(6284),m=t(2152),f=t(2027),g=t(8859),h=t(2749);function x(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t=0||(i[t]=n[t]);return i}(n,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}function S(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],a=!0,s=!1;try{for(t=t.call(n);!(a=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(n,r)||$(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(n){return function(n){if(Array.isArray(n))return x(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||$(n)||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 $(n,r){if(n){if("string"===typeof n)return x(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(n,r):void 0}}var P={width:"100%"},j="gate-input",Z="".concat(j,"-credential-id"),O="".concat(j,"-credential-passphrase"),k="access",I=(0,o.forwardRef)((function(n,r){var t,x,b=n.formContainer,$=void 0===b||b,j=n.gridProps,I=void 0===j?{}:j,W=I.columns,M=void 0===W?{xs:1,sm:2}:W,N=(I.layout,I.spacing),A=void 0===N?"1em":N,L=n.identifierId,C=void 0===L?Z:L,B=n.identifierInputTestBatchBuilder,F=void 0===B?f.Gn:B,R=n.identifierLabel,_=n.identifierOutlinedInputWithLabelProps,T=void 0===_?{}:_,G=T.formControlProps,z=void 0===G?{}:G,E=T.inputProps,U=n.onIdentifierBlurAppend,q=n.onSubmit,D=n.onSubmitAppend,H=n.passphraseId,V=void 0===H?O:H,X=n.passphraseLabel,J=n.passphraseOutlinedInputWithLabelProps,K=void 0===J?{}:J,Q=K.formControlProps,Y=void 0===Q?{}:Q,nn=K.inputProps,rn=n.submitLabel,tn=n.allowSubmit,en=void 0===tn?$:tn,on=w(n.gridProps,["columns","layout","spacing"]),an=w(n.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),sn=w(n.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),un=z.sx,ln=w(z,["sx"]),cn=Y.sx,pn=w(Y,["sx"]),dn=(0,o.useRef)({}),mn=(0,o.useRef)({}),fn=(0,o.useRef)({}),gn=S((0,h.Z)(!1),2),hn=gn[0],xn=gn[1],bn=(0,g.Z)([Z,O],fn),vn=bn.buildFinishInputTestBatchFunction,wn=bn.buildInputFirstRenderFunction,Sn=bn.buildInputUnmountFunction,yn=bn.isFormInvalid,$n=bn.setMessage,Pn=(0,o.useMemo)((function(){return null!==q&&void 0!==q?q:function(){for(var n=arguments.length,r=new Array(n),t=0;t0&&(t[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`),Number(i)>0&&(t[`spacing-sm-${String(i)}`]||`spacing-sm-${String(i)}`),Number(o)>0&&(t[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(t[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(t[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const b=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,r)=>{const{container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:l,xl:c,xs:p,zeroMinWidth:d}=n.ownerState;return[r.root,t&&r.container,i&&r.item,d&&r.zeroMinWidth,...x(u,t,r),"row"!==e&&r[`direction-xs-${String(e)}`],"wrap"!==l&&r[`wrap-xs-${String(l)}`],!1!==p&&r[`grid-xs-${String(p)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==c&&r[`grid-xl-${String(c)}`]]}})((({ownerState:n})=>(0,i.Z)({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},"wrap"!==n.wrap&&{flexWrap:n.wrap})),(function({theme:n,ownerState:r}){const t=(0,s.P$)({values:r.direction,breakpoints:n.breakpoints.values});return(0,s.k9)({theme:n},t,(n=>{const r={flexDirection:n};return 0===n.indexOf("column")&&(r[`& > .${m.Z.item}`]={maxWidth:"none"}),r}))}),(function({theme:n,ownerState:r}){const{container:t,rowSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{marginTop:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingTop:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){const{container:t,columnSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{width:`calc(100% + ${h(t)})`,marginLeft:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingLeft:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){let t;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof u?u[o]:u;if(void 0===l||null===l)return e;const c=Math.round(t/l*1e8)/1e6+"%";let p={};if(r.container&&r.item&&0!==r.columnSpacing){const t=n.spacing(r.columnSpacing);if("0px"!==t){const n=`calc(${c} + ${h(t)})`;p={flexBasis:n,maxWidth:n}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},p)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));var v=o.forwardRef((function(n,r){const t=(0,p.Z)({props:n,name:"MuiGrid"}),s=(0,u.Z)(t),{className:c,columns:h,columnSpacing:v,component:w="div",container:S=!1,direction:y="row",item:$=!1,lg:P=!1,md:j=!1,rowSpacing:Z,sm:O=!1,spacing:k=0,wrap:I="wrap",xl:W=!1,xs:M=!1,zeroMinWidth:N=!1}=s,A=(0,e.Z)(s,g),L=Z||k,C=v||k,B=o.useContext(d),F=h||B||12,R=(0,i.Z)({},s,{columns:F,container:S,direction:y,item:$,lg:P,md:j,sm:O,rowSpacing:L,columnSpacing:C,wrap:I,xl:W,xs:M,zeroMinWidth:N}),_=(n=>{const{classes:r,container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:c,xl:p,xs:d,zeroMinWidth:f}=n,g={root:["root",t&&"container",i&&"item",f&&"zeroMinWidth",...x(u,t),"row"!==e&&`direction-xs-${String(e)}`,"wrap"!==c&&`wrap-xs-${String(c)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==p&&`grid-xl-${String(p)}`]};return(0,l.Z)(g,m.H,r)})(R);return T=(0,f.jsx)(b,(0,i.Z)({ownerState:R,className:(0,a.Z)(_.root,c),as:w,ref:r},A)),12!==F?(0,f.jsx)(d.Provider,{value:F,children:T}):T;var T}))},8673:function(n,r,t){"use strict";t.d(r,{H:function(){return i}});var e=t(8979);function i(n){return(0,e.Z)("MuiGrid",n)}const o=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(0,t(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((n=>`spacing-xs-${n}`)),...["column-reverse","column","row-reverse","row"].map((n=>`direction-xs-${n}`)),...["nowrap","wrap-reverse","wrap"].map((n=>`wrap-xs-${n}`)),...o.map((n=>`grid-xs-${n}`)),...o.map((n=>`grid-sm-${n}`)),...o.map((n=>`grid-md-${n}`)),...o.map((n=>`grid-lg-${n}`)),...o.map((n=>`grid-xl-${n}`))]);r.Z=a},7106:function(n,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1686)}])},4629:function(n,r,t){"use strict";var e=t(5893),i=t(7357),o=t(7294),a=t(4188),s=t(4825),u=t(4690),l=t(7504),c=t(4069),p=t(7869),d=t(6284),m=t(2152),f=t(2027),g=t(8859),h=t(2749);function x(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t=0||(i[t]=n[t]);return i}(n,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}function S(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],a=!0,s=!1;try{for(t=t.call(n);!(a=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(n,r)||$(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(n){return function(n){if(Array.isArray(n))return x(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||$(n)||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 $(n,r){if(n){if("string"===typeof n)return x(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(n,r):void 0}}var P={width:"100%"},j="gate-input",Z="".concat(j,"-credential-id"),O="".concat(j,"-credential-passphrase"),k="access",I=(0,o.forwardRef)((function(n,r){var t,x,b=n.formContainer,$=void 0===b||b,j=n.gridProps,I=void 0===j?{}:j,W=I.columns,M=void 0===W?{xs:1,sm:2}:W,N=(I.layout,I.spacing),A=void 0===N?"1em":N,L=n.identifierId,C=void 0===L?Z:L,B=n.identifierInputTestBatchBuilder,F=void 0===B?f.Gn:B,R=n.identifierLabel,_=n.identifierOutlinedInputWithLabelProps,T=void 0===_?{}:_,G=T.formControlProps,z=void 0===G?{}:G,E=T.inputProps,U=n.onIdentifierBlurAppend,q=n.onSubmit,D=n.onSubmitAppend,H=n.passphraseId,V=void 0===H?O:H,X=n.passphraseLabel,J=n.passphraseOutlinedInputWithLabelProps,K=void 0===J?{}:J,Q=K.formControlProps,Y=void 0===Q?{}:Q,nn=K.inputProps,rn=n.submitLabel,tn=n.allowSubmit,en=void 0===tn?$:tn,on=w(n.gridProps,["columns","layout","spacing"]),an=w(n.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),sn=w(n.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),un=z.sx,ln=w(z,["sx"]),cn=Y.sx,pn=w(Y,["sx"]),dn=(0,o.useRef)({}),mn=(0,o.useRef)({}),fn=(0,o.useRef)({}),gn=S((0,h.Z)(!1),2),hn=gn[0],xn=gn[1],bn=(0,g.Z)([Z,O],fn),vn=bn.buildFinishInputTestBatchFunction,wn=bn.buildInputFirstRenderFunction,Sn=bn.buildInputUnmountFunction,yn=bn.isFormInvalid,$n=bn.setMessage,Pn=(0,o.useMemo)((function(){return null!==q&&void 0!==q?q:function(){for(var n=arguments.length,r=new Array(n),t=0;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 b=function(e){return(0,r.jsx)(o.Z,{in:!0,children:(0,r.jsx)(i.Z,h({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,o=e.label,i=e.messageBoxProps,y=e.renderInput,g=e.sx,j=v(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),x=h({paper:{sx:{backgroundColor:d.lD}}},n),w=null!==y&&void 0!==y?y:function(e){var n=e.fullWidth,i=e.InputProps,a=e.InputLabelProps,u=e.inputProps,c={formControlProps:{fullWidth:n,ref:i.ref},inputLabelProps:a,inputProps:{className:i.className,endAdornment:i.endAdornment,inputProps:u,startAdornment:i.startAdornment},label:o};return null===t||void 0===t||t.call(null,c,e),(0,r.jsx)(p.Z,h({},c))},k=h(m({},"& .".concat(a.Z.root," .").concat(u.Z.endAdornment),m({right:"7px"},"& .".concat(c.Z.root),{color:d.s7})),g);return(0,r.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(l.Z,h({PaperComponent:b},j,{componentsProps:x,renderInput:w,sx:k})),(0,r.jsx)(f.Z,h({},i))]})}},4629:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7294),a=t(4188),u=t(4825),c=t(4690),s=t(7504),l=t(4069),d=t(7869),f=t(6284),p=t(2152),m=t(2027),h=t(8859),v=t(2749);function b(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 x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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 k(e,n){if(e){if("string"===typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}var O={width:"100%"},I="gate-input",P="".concat(I,"-credential-id"),Z="".concat(I,"-credential-passphrase"),S="access",A=(0,i.forwardRef)((function(e,n){var t,b,y=e.formContainer,k=void 0===y||y,I=e.gridProps,A=void 0===I?{}:I,F=A.columns,M=void 0===F?{xs:1,sm:2}:F,T=(A.layout,A.spacing),C=void 0===T?"1em":T,U=e.identifierId,N=void 0===U?P:U,E=e.identifierInputTestBatchBuilder,R=void 0===E?m.Gn:E,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,q=void 0===D?{}:D,L=q.formControlProps,_=void 0===L?{}:L,H=q.inputProps,V=e.onIdentifierBlurAppend,$=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,Y=e.passphraseOutlinedInputWithLabelProps,J=void 0===Y?{}:Y,K=J.formControlProps,X=void 0===K?{}:K,ee=J.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?k:te,oe=j(e.gridProps,["columns","layout","spacing"]),ie=j(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ae=j(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ue=_.sx,ce=j(_,["sx"]),se=X.sx,le=j(X,["sx"]),de=(0,i.useRef)({}),fe=(0,i.useRef)({}),pe=(0,i.useRef)({}),me=x((0,v.Z)(!1),2),he=me[0],ve=me[1],be=(0,h.Z)([P,Z],pe),ye=be.buildFinishInputTestBatchFunction,ge=be.buildInputFirstRenderFunction,je=be.buildInputUnmountFunction,xe=be.isFormInvalid,we=be.setMessage,ke=(0,i.useMemo)((function(){return null!==$&&void 0!==$?$:function(){for(var e=arguments.length,n=new Array(e),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},t=n.fallbackValue,r=void 0===t?"":t,o=n.joinSeparator,i=void 0===o?"":o,a=n.limit,u=void 0===a?1:a;return c(e,Array)?e.slice(0,u).join(i):null!==e&&void 0!==e?e:r},l=t(7504),d=t(1770),f=t(8750),p=t(2029),m=t(7357),h=t(4594),v=t(1496),b=t(4386),y=t(4188),g=t(4690),j=t(4069),x=t(6284),w=t(3679),k=t(2519),O=t(480),I=t(2852),P=t(7169),Z=t(7750);function S(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;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);tN(n,1)[0]?1:-1})).reduce((function(e,o){var a=N(o,2),u=a[0],c=a[1],s=c.content_type,l=c.default,d=c.deprecated,p=c.description,h=c.options,v=c.required;if("1"===String(d))return e;var y,g,j=e.optional,x=e.required,w=null!==(y=D[s])&&void 0!==y?y:D.string,k=q(n,u),O=null!==(g=f[k])&&void 0!==g?g:l,I="1"===String(v),P=/passw/i.test(u),S=w({formUtils:i,id:k,isChecked:E.includes(O),isRequired:I,isSensitive:P,label:u,selectOptions:h,value:O}),A=(0,r.jsx)(b.Z,function(e){for(var n=1;n div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,r.jsx)(w.TZ,{expandInitially:!0,header:"Required parameters",children:(0,r.jsxs)(L,{children:[(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:y,label:k,name:y,value:u}),inputTestBatch:(0,T.Gn)(k,(function(){d(y)}),{onFinishBatch:s(y)},(function(e){d(y,{children:e})})),onFirstRender:l(y),required:!0},"".concat(y,"-wrapper")),v]})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(L,{children:h})})]})}return e}),[s,l,n,t,o,i,u,c,d]);return(0,r.jsx)(r.Fragment,{children:f})},H=t(2152),V=t(1081);function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tz(n,1)[0]?1:-1})).map((function(e){var n=z(e,2),t=n[0],r=n[1].description;return{fenceDescription:"string"===typeof r?r:"No description.",fenceId:t,label:t}})):[]}),[n]),f=(0,a.useMemo)((function(){return(0,r.jsx)(h.Z,{id:W,isOptionEqualToValue:function(e,n){return e.fenceId===n.fenceId},label:"Fence device type",onChange:function(e,n){i(W,null!==n),l(n)},openOnFocus:!0,options:d,renderOption:function(e,n,t){var o=n.fenceDescription,i=n.fenceId,a=t.selected;return(0,r.jsxs)(m.Z,function(e){for(var n=1;n *":{width:"100%"}}},e,{children:[(0,r.jsx)(Z.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:a?400:void 0},children:i}),(0,r.jsx)(Z.Ac,{selected:!1,children:o})]}))},sx:{marginTop:".3em"},value:s})}),[d,s,i]),p=(0,a.useMemo)((function(){return(0,r.jsx)(_,{fenceId:null===s||void 0===s?void 0:s.fenceId,fenceTemplate:n,formUtils:t})}),[n,null===s||void 0===s?void 0:s.fenceId,t]),v=(0,a.useMemo)((function(){return o?(0,r.jsx)(H.Z,{}):(0,r.jsxs)(g.Z,{children:[f,p]})}),[f,p,o]);return(0,a.useEffect)((function(){u&&i(W,null!==s)}),[s,u,i]),(0,r.jsx)(r.Fragment,{children:v})},Y=t(157),J=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.formUtils,i=e.loading,u=e.previousFenceName,c=e.previousFenceParameters,s=(0,a.useMemo)((function(){return i?(0,r.jsx)(H.Z,{}):(0,r.jsx)(_,{fenceId:n,fenceTemplate:t,formUtils:o,previousFenceName:u,previousFenceParameters:c})}),[t,n,o,i,u,c]);return(0,r.jsx)(r.Fragment,{children:s})},K=t(2545),X=t(8610),ee=t(6125),ne=t(7869),te=t(1905),re=t(3906),oe=t(6632),ie=t(8859),ae=t(2749);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.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);te.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);t1&&void 0!==arguments[1]?arguments[1]:{},r=n.input,o=void 0===r?t:r,i=n.end,a=void 0===i?t.length:i,u=a-1,c=0;return o.every((function(n,t){return tn(n,2)[1].networkType===e&&(c+=1),t0&&void 0!==arguments[0]?arguments[0]:{},n=e.networkMinIp,t=void 0===n?"":n,r=e.networkSubnetMask,o=void 0===r?"":r,i=e.networkType,a=void 0===i?"ifn":i,u=e.networkGateway,c=void 0===u?ln(a)?"":void 0:u,s=e.networkNumber,l=void 0===s?b(a)+1:s;return{network:{networkGateway:c,networkMinIp:t,networkNumber:l,networkSubnetMask:o,networkType:a},networkId:(0,_e.Z)()}}),[b]),w=(0,a.useCallback)((function(e,n){return f((0,Ke.ZP)(e,n))}),[f]),k=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,s=t.reduce((function(e,n){var t=tn(n,2),i=t[0],s=t[1],l=s.networkNumber,d=s.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?l=c:d===o&&(l-=1),e[i]=nn({},s,{networkNumber:l,networkType:d})):e[i]=s,e}),{});f(s)}),[t,v,f]),O=(0,a.useCallback)((function(e){var n=e.networkId,r=e.networkType,o=!1,i=0,a=t.reduce((function(e,t){var a=tn(t,2),u=a[0],c=a[1];u===n?o=!0:(c.networkType===r&&(i+=1),e[u]=o?nn({},c,{networkNumber:i}):c);return e}),{});f(a)}),[t,f]),I=(0,a.useMemo)((function(){var e={};return e=t.reduce((function(e,t){var o=tn(t,2),i=o[0],a=o[1],u=a.networkGateway,c=a.networkMinIp,s=a.networkNumber,l=a.networkSubnetMask,d=a.networkType,f="".concat(on,"-").concat(i),p=1===s,m=ln(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(Je,{formUtils:n,networkId:i,networkNumber:s,networkType:d,networkTypeOptions:y,onClose:O,onNetworkTypeChange:k,previous:{gateway:u,minIp:c,subnetMask:l},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,y,O,k]);return(0,r.jsx)(l.Z,{columns:{xs:1,sm:2,md:3},layout:nn({},I,{"an-network-config-cell-add-network":{children:(0,r.jsx)(Ve.Z,{mapPreset:"add",onClick:function(){var e=g(),n=e.network,t=e.networkId;w(t,n)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:an,label:"DNS",value:c}),inputTestBatch:(0,T.dg)("DNS",(function(){h(an)}),{onFinishBatch:p(an)},(function(e){h(an,{children:e})})),onFirstRender:m(an),required:!0})},"an-network-config-input-cell-ntp":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:cn,label:"NTP",value:d}),inputTestBatch:(0,T.dg)("NTP",(function(){h(cn)}),{onFinishBatch:p(cn)},(function(e){h(cn,{children:e})})),onFirstRender:m(cn)})},"an-network-config-input-cell-mtu":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:un,inputProps:{placeholder:"1500"},label:"MTU",value:s}),inputTestBatch:(0,T.qY)("MTU",(function(){h(un)}),{onFinishBatch:p(un)},(function(e){h(un,{children:e})})),onFirstRender:m(un),valueType:"number"})}}),spacing:"1em"})};function fn(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=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 pn={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}},mn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous,u=void 0===i?{}:i,c=u.hostConfig,s=u.networkConfig,l=void 0===s?{}:s,d=fn(e.previous,["hostConfig","networkConfig"]),f=l.networks,p=void 0===f?pn:f,m=(0,a.useState)(p),h=m[0],v=m[1],b=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(Le,{formUtils:n,previous:d}),(0,r.jsx)(dn,{formUtils:n,networkListEntries:b,previous:l,setNetworkList:v}),(0,r.jsx)(Ce,{formUtils:n,knownFences:t,knownUpses:o,networkListEntries:b,previous:c})]})},hn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous;return(0,r.jsx)(mn,{formUtils:n,knownFences:t,knownUpses:o,previous:i})};function vn(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);t1?n-1:0),r=1;re.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);t1?n-1:0),r=1;re.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 xt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return bt(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 bt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=function(e){var n=e.formControlProps,t=e.formControlLabelProps,o=e.formLabelProps,i=e.id,u=e.label,c=e.onChange,s=e.radioItems,l=e.radioProps,d=(void 0===l?{}:l).sx,f=e.radioGroupProps,p=jt(e.radioProps,["sx"]),m=(0,a.useMemo)((function(){return"string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u}),[u]),h=(0,a.useMemo)((function(){return Object.entries(s).map((function(e){var n=xt(e,2),o=n[0],a=n[1],u=a.label,c=a.value,s="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(O.Z,gt({control:(0,r.jsx)(ft.Z,gt({},p,{sx:gt(yt({},"&.".concat(pt.Z.root),{color:P.s7}),d)})),value:c,label:s},t),"".concat(i,"-").concat(o))}))}),[t,i,s,d,p]);return(0,r.jsxs)(mt.Z,gt({},n,{children:[(0,r.jsx)(ht.Z,gt({},o,{children:m})),(0,r.jsx)(vt.Z,gt({onChange:c,row:!0},f,{children:h}))]}))},kt=t(3144);function Ot(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}function Vt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||Gt(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gt(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 Gt(e,n){if(e){if("string"===typeof e)return qt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qt(e,n):void 0}}var zt="prepare-network-host-name-input",Wt="prepare-network-netconf-input-group",Qt="Host name",Yt=function(e){for(var n=e.netconf,t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=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 rr=function(e){var n=e.label,t=tr(e,["label"]),o=(0,a.useMemo)((function(){return"string"===typeof n?(0,r.jsx)(Z.Ac,{inheritColour:!0,children:n}):n}),[n]);return(0,r.jsx)(Xt.Z,function(e){for(var n=1;ne.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 fr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return sr(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 sr(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pr="1.8em",mr=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=dr(e,["orientation","variant"]),s=(0,ir.Z)(),l=(0,a.useCallback)((function(e){return s.breakpoints.up(e)}),[s]),d=(0,ar.Z)(l("xs")),f=(0,ar.Z)(l("sm")),p=(0,ar.Z)(l("md")),m=(0,ar.Z)(l("lg")),h=(0,ar.Z)(l("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),b=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=fr(n,2),r=t[0],i=t[1];return i&&o[r]&&(e=o[r]),!i})):e=o,e}),[v,o]);return(0,r.jsx)(ur.Z,function(e){for(var n=1;ne.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 b=function(e){return(0,r.jsx)(o.Z,{in:!0,children:(0,r.jsx)(i.Z,h({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,o=e.label,i=e.messageBoxProps,y=e.renderInput,g=e.sx,j=v(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),x=h({paper:{sx:{backgroundColor:d.lD}}},n),w=null!==y&&void 0!==y?y:function(e){var n=e.fullWidth,i=e.InputProps,a=e.InputLabelProps,u=e.inputProps,c={formControlProps:{fullWidth:n,ref:i.ref},inputLabelProps:a,inputProps:{className:i.className,endAdornment:i.endAdornment,inputProps:u,startAdornment:i.startAdornment},label:o};return null===t||void 0===t||t.call(null,c,e),(0,r.jsx)(p.Z,h({},c))},k=h(m({},"& .".concat(a.Z.root," .").concat(u.Z.endAdornment),m({right:"7px"},"& .".concat(c.Z.root),{color:d.s7})),g);return(0,r.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(l.Z,h({PaperComponent:b},j,{componentsProps:x,renderInput:w,sx:k})),(0,r.jsx)(f.Z,h({},i))]})}},4629:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7294),a=t(4188),u=t(4825),c=t(4690),s=t(7504),l=t(4069),d=t(7869),f=t(6284),p=t(2152),m=t(2027),h=t(8859),v=t(2749);function b(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 x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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 k(e,n){if(e){if("string"===typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}var O={width:"100%"},I="gate-input",P="".concat(I,"-credential-id"),Z="".concat(I,"-credential-passphrase"),S="access",A=(0,i.forwardRef)((function(e,n){var t,b,y=e.formContainer,k=void 0===y||y,I=e.gridProps,A=void 0===I?{}:I,F=A.columns,M=void 0===F?{xs:1,sm:2}:F,T=(A.layout,A.spacing),C=void 0===T?"1em":T,U=e.identifierId,N=void 0===U?P:U,E=e.identifierInputTestBatchBuilder,R=void 0===E?m.Gn:E,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,q=void 0===D?{}:D,L=q.formControlProps,_=void 0===L?{}:L,H=q.inputProps,V=e.onIdentifierBlurAppend,$=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,Y=e.passphraseOutlinedInputWithLabelProps,J=void 0===Y?{}:Y,K=J.formControlProps,X=void 0===K?{}:K,ee=J.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?k:te,oe=j(e.gridProps,["columns","layout","spacing"]),ie=j(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ae=j(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ue=_.sx,ce=j(_,["sx"]),se=X.sx,le=j(X,["sx"]),de=(0,i.useRef)({}),fe=(0,i.useRef)({}),pe=(0,i.useRef)({}),me=x((0,v.Z)(!1),2),he=me[0],ve=me[1],be=(0,h.Z)([P,Z],pe),ye=be.buildFinishInputTestBatchFunction,ge=be.buildInputFirstRenderFunction,je=be.buildInputUnmountFunction,xe=be.isFormInvalid,we=be.setMessage,ke=(0,i.useMemo)((function(){return null!==$&&void 0!==$?$:function(){for(var e=arguments.length,n=new Array(e),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},t=n.fallbackValue,r=void 0===t?"":t,o=n.joinSeparator,i=void 0===o?"":o,a=n.limit,u=void 0===a?1:a;return c(e,Array)?e.slice(0,u).join(i):null!==e&&void 0!==e?e:r},l=t(7504),d=t(1770),f=t(8750),p=t(2029),m=t(7357),h=t(4594),v=t(1496),b=t(4386),y=t(4188),g=t(4690),j=t(4069),x=t(6284),w=t(3679),k=t(2519),O=t(480),I=t(2852),P=t(7169),Z=t(7750);function S(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;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);tN(n,1)[0]?1:-1})).reduce((function(e,o){var a=N(o,2),u=a[0],c=a[1],s=c.content_type,l=c.default,d=c.deprecated,p=c.description,h=c.options,v=c.required;if("1"===String(d))return e;var y,g,j=e.optional,x=e.required,w=null!==(y=D[s])&&void 0!==y?y:D.string,k=q(n,u),O=null!==(g=f[k])&&void 0!==g?g:l,I="1"===String(v),P=/passw/i.test(u),S=w({formUtils:i,id:k,isChecked:E.includes(O),isRequired:I,isSensitive:P,label:u,selectOptions:h,value:O}),A=(0,r.jsx)(b.Z,function(e){for(var n=1;n div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,r.jsx)(w.TZ,{expandInitially:!0,header:"Required parameters",children:(0,r.jsxs)(L,{children:[(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:y,label:k,name:y,value:u}),inputTestBatch:(0,T.Gn)(k,(function(){d(y)}),{onFinishBatch:s(y)},(function(e){d(y,{children:e})})),onFirstRender:l(y),required:!0},"".concat(y,"-wrapper")),v]})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(L,{children:h})})]})}return e}),[s,l,n,t,o,i,u,c,d]);return(0,r.jsx)(r.Fragment,{children:f})},H=t(2152),V=t(1081);function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tz(n,1)[0]?1:-1})).map((function(e){var n=z(e,2),t=n[0],r=n[1].description;return{fenceDescription:"string"===typeof r?r:"No description.",fenceId:t,label:t}})):[]}),[n]),f=(0,a.useMemo)((function(){return(0,r.jsx)(h.Z,{id:W,isOptionEqualToValue:function(e,n){return e.fenceId===n.fenceId},label:"Fence device type",onChange:function(e,n){i(W,null!==n),l(n)},openOnFocus:!0,options:d,renderOption:function(e,n,t){var o=n.fenceDescription,i=n.fenceId,a=t.selected;return(0,r.jsxs)(m.Z,function(e){for(var n=1;n *":{width:"100%"}}},e,{children:[(0,r.jsx)(Z.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:a?400:void 0},children:i}),(0,r.jsx)(Z.Ac,{selected:!1,children:o})]}))},sx:{marginTop:".3em"},value:s})}),[d,s,i]),p=(0,a.useMemo)((function(){return(0,r.jsx)(_,{fenceId:null===s||void 0===s?void 0:s.fenceId,fenceTemplate:n,formUtils:t})}),[n,null===s||void 0===s?void 0:s.fenceId,t]),v=(0,a.useMemo)((function(){return o?(0,r.jsx)(H.Z,{}):(0,r.jsxs)(g.Z,{children:[f,p]})}),[f,p,o]);return(0,a.useEffect)((function(){u&&i(W,null!==s)}),[s,u,i]),(0,r.jsx)(r.Fragment,{children:v})},Y=t(157),J=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.formUtils,i=e.loading,u=e.previousFenceName,c=e.previousFenceParameters,s=(0,a.useMemo)((function(){return i?(0,r.jsx)(H.Z,{}):(0,r.jsx)(_,{fenceId:n,fenceTemplate:t,formUtils:o,previousFenceName:u,previousFenceParameters:c})}),[t,n,o,i,u,c]);return(0,r.jsx)(r.Fragment,{children:s})},K=t(2545),X=t(8610),ee=t(6125),ne=t(7869),te=t(1905),re=t(3906),oe=t(6632),ie=t(8859),ae=t(2749);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.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);te.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);t1&&void 0!==arguments[1]?arguments[1]:{},r=n.input,o=void 0===r?t:r,i=n.end,a=void 0===i?t.length:i,u=a-1,c=0;return o.every((function(n,t){return tn(n,2)[1].networkType===e&&(c+=1),t0&&void 0!==arguments[0]?arguments[0]:{},n=e.networkMinIp,t=void 0===n?"":n,r=e.networkSubnetMask,o=void 0===r?"":r,i=e.networkType,a=void 0===i?"ifn":i,u=e.networkGateway,c=void 0===u?ln(a)?"":void 0:u,s=e.networkNumber,l=void 0===s?b(a)+1:s;return{network:{networkGateway:c,networkMinIp:t,networkNumber:l,networkSubnetMask:o,networkType:a},networkId:(0,_e.Z)()}}),[b]),w=(0,a.useCallback)((function(e,n){return f((0,Ke.ZP)(e,n))}),[f]),k=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,s=t.reduce((function(e,n){var t=tn(n,2),i=t[0],s=t[1],l=s.networkNumber,d=s.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?l=c:d===o&&(l-=1),e[i]=nn({},s,{networkNumber:l,networkType:d})):e[i]=s,e}),{});f(s)}),[t,v,f]),O=(0,a.useCallback)((function(e){var n=e.networkId,r=e.networkType,o=!1,i=0,a=t.reduce((function(e,t){var a=tn(t,2),u=a[0],c=a[1];u===n?o=!0:(c.networkType===r&&(i+=1),e[u]=o?nn({},c,{networkNumber:i}):c);return e}),{});f(a)}),[t,f]),I=(0,a.useMemo)((function(){var e={};return e=t.reduce((function(e,t){var o=tn(t,2),i=o[0],a=o[1],u=a.networkGateway,c=a.networkMinIp,s=a.networkNumber,l=a.networkSubnetMask,d=a.networkType,f="".concat(on,"-").concat(i),p=1===s,m=ln(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(Je,{formUtils:n,networkId:i,networkNumber:s,networkType:d,networkTypeOptions:y,onClose:O,onNetworkTypeChange:k,previous:{gateway:u,minIp:c,subnetMask:l},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,y,O,k]);return(0,r.jsx)(l.Z,{columns:{xs:1,sm:2,md:3},layout:nn({},I,{"an-network-config-cell-add-network":{children:(0,r.jsx)(Ve.Z,{mapPreset:"add",onClick:function(){var e=g(),n=e.network,t=e.networkId;w(t,n)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:an,label:"DNS",value:c}),inputTestBatch:(0,T.dg)("DNS",(function(){h(an)}),{onFinishBatch:p(an)},(function(e){h(an,{children:e})})),onFirstRender:m(an),required:!0})},"an-network-config-input-cell-ntp":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:cn,label:"NTP",value:d}),inputTestBatch:(0,T.dg)("NTP",(function(){h(cn)}),{onFinishBatch:p(cn)},(function(e){h(cn,{children:e})})),onFirstRender:m(cn)})},"an-network-config-input-cell-mtu":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:un,inputProps:{placeholder:"1500"},label:"MTU",value:s}),inputTestBatch:(0,T.qY)("MTU",(function(){h(un)}),{onFinishBatch:p(un)},(function(e){h(un,{children:e})})),onFirstRender:m(un),valueType:"number"})}}),spacing:"1em"})};function fn(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=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 pn={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}},mn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous,u=void 0===i?{}:i,c=u.hostConfig,s=u.networkConfig,l=void 0===s?{}:s,d=fn(e.previous,["hostConfig","networkConfig"]),f=l.networks,p=void 0===f?pn:f,m=(0,a.useState)(p),h=m[0],v=m[1],b=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(Le,{formUtils:n,previous:d}),(0,r.jsx)(dn,{formUtils:n,networkListEntries:b,previous:l,setNetworkList:v}),(0,r.jsx)(Ce,{formUtils:n,knownFences:t,knownUpses:o,networkListEntries:b,previous:c})]})},hn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous;return(0,r.jsx)(mn,{formUtils:n,knownFences:t,knownUpses:o,previous:i})};function vn(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);t1?n-1:0),r=1;re.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);t1?n-1:0),r=1;re.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 xt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return bt(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 bt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=function(e){var n=e.formControlProps,t=e.formControlLabelProps,o=e.formLabelProps,i=e.id,u=e.label,c=e.onChange,s=e.radioItems,l=e.radioProps,d=(void 0===l?{}:l).sx,f=e.radioGroupProps,p=jt(e.radioProps,["sx"]),m=(0,a.useMemo)((function(){return"string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u}),[u]),h=(0,a.useMemo)((function(){return Object.entries(s).map((function(e){var n=xt(e,2),o=n[0],a=n[1],u=a.label,c=a.value,s="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(O.Z,gt({control:(0,r.jsx)(ft.Z,gt({},p,{sx:gt(yt({},"&.".concat(pt.Z.root),{color:P.s7}),d)})),value:c,label:s},t),"".concat(i,"-").concat(o))}))}),[t,i,s,d,p]);return(0,r.jsxs)(mt.Z,gt({},n,{children:[(0,r.jsx)(ht.Z,gt({},o,{children:m})),(0,r.jsx)(vt.Z,gt({onChange:c,row:!0},f,{children:h}))]}))},kt=t(3144);function Ot(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}function Vt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||Gt(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gt(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 Gt(e,n){if(e){if("string"===typeof e)return qt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qt(e,n):void 0}}var zt="prepare-network-host-name-input",Wt="prepare-network-netconf-input-group",Qt="Host name",Yt=function(e){for(var n=e.netconf,t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=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 rr=function(e){var n=e.label,t=tr(e,["label"]),o=(0,a.useMemo)((function(){return"string"===typeof n?(0,r.jsx)(Z.Ac,{inheritColour:!0,children:n}):n}),[n]);return(0,r.jsx)(Xt.Z,function(e){for(var n=1;ne.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 fr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return sr(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 sr(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pr="1.8em",mr=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=dr(e,["orientation","variant"]),s=(0,ir.Z)(),l=(0,a.useCallback)((function(e){return s.breakpoints.up(e)}),[s]),d=(0,ar.Z)(l("xs")),f=(0,ar.Z)(l("sm")),p=(0,ar.Z)(l("md")),m=(0,ar.Z)(l("lg")),h=(0,ar.Z)(l("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),b=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=fr(n,2),r=t[0],i=t[1];return i&&o[r]&&(e=o[r]),!i})):e=o,e}),[v,o]);return(0,r.jsx)(ur.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0)},ref:n})]})}},4427:function(e,n,t){"use strict";var r=t(5893),o=t(2429),i=t(9309),c=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n0,x=(null===d||void 0===d?void 0:d.toString())||"",j=(null===f||void 0===f?void 0:f.toString())||"",b=(null===h||void 0===h?void 0:h.toString())||"";return(0,l.useEffect)((function(){m&&t(!1)}),[m]),(0,r.jsxs)(g,{children:[(0,r.jsx)(c.default,{children:(0,r.jsx)("title",{children:x})}),(0,r.jsx)(u.Z,{}),n?(0,r.jsx)(i.Z,{className:p.preview,children:(0,r.jsx)(s.M,{onClickPreview:function(){t(!1)},serverName:x,serverState:j,serverUUID:b})}):(0,r.jsx)(i.Z,{className:p.fullView,children:(0,r.jsx)(s.S,{onClickCloseButton:function(){t(!0)},serverUUID:b,serverName:x})})]})}}},function(e){e.O(0,[412,894,528,62,94,774,888,179],(function(){return n=8954,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[753],{8954:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/server",function(){return t(1142)}])},8750:function(e,n,t){"use strict";t.d(n,{Z:function(){return V}});var r=t(5893),o=t(1113),i=t(1496),c=t(2293),a=t(7357),l=t(2992),s=t(4799),u=t(7294),d=t(7169),f=t(4433),p=t(9029),g=t(7533),h=t(8462),v=t(7212),m=t(8619),x=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],j={width:"40em",height:"40em"},b=t(4390),w=t(582),Z=t(4690),y=t(1770),O=t(7750),k=t(1883);function _(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function C(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){"use strict";var r=t(5893),o=t(2429),i=t(9309),c=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n0,x=(null===d||void 0===d?void 0:d.toString())||"",j=(null===f||void 0===f?void 0:f.toString())||"",b=(null===h||void 0===h?void 0:h.toString())||"";return(0,l.useEffect)((function(){m&&t(!1)}),[m]),(0,r.jsxs)(g,{children:[(0,r.jsx)(c.default,{children:(0,r.jsx)("title",{children:x})}),(0,r.jsx)(u.Z,{}),n?(0,r.jsx)(i.Z,{className:p.preview,children:(0,r.jsx)(s.M,{onClickPreview:function(){t(!1)},serverName:x,serverState:j,serverUUID:b})}):(0,r.jsx)(i.Z,{className:p.fullView,children:(0,r.jsx)(s.S,{onClickCloseButton:function(){t(!0)},serverUUID:b,serverName:x})})]})}},1163:function(e,n,t){e.exports=t(387)}},function(e){e.O(0,[498,894,839,570,668,157,170,774,888,179],(function(){return n=8954,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/anvil.html b/striker-ui/out/anvil.html index 4babea71..228633a5 100644 --- a/striker-ui/out/anvil.html +++ b/striker-ui/out/anvil.html @@ -1 +1 @@ -Anvil
\ No newline at end of file +Anvil
\ No newline at end of file diff --git a/striker-ui/out/config.html b/striker-ui/out/config.html index 391d1305..fc15f920 100644 --- a/striker-ui/out/config.html +++ b/striker-ui/out/config.html @@ -1 +1 @@ -Loading...
Install target
Configure striker peers
Configure striker peers
Inbound connections

    No inbound connections found.
Peer connections

    No peer connections found.
Manage changed SSH keys
Manage changed SSH keys
The identity of the following targets have unexpectedly changed.
If you haven't rebuilt the listed targets, then you could be experiencing a
"Man In The Middle"
attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys.

Host name

IP address


    No conflicting keys found.
Manage users
Manage users

    No users found.
\ No newline at end of file +Loading...
Install target
Configure striker peers
Configure striker peers
Inbound connections

    No inbound connections found.
Peer connections

    No peer connections found.
Manage changed SSH keys
Manage changed SSH keys
The identity of the following targets have unexpectedly changed.
If you haven't rebuilt the listed targets, then you could be experiencing a
"Man In The Middle"
attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys.

Host name

IP address


    No conflicting keys found.
Manage users
Manage users

    No users found.
\ No newline at end of file diff --git a/striker-ui/out/file-manager.html b/striker-ui/out/file-manager.html index e2c91aed..8add65b1 100644 --- a/striker-ui/out/file-manager.html +++ b/striker-ui/out/file-manager.html @@ -1 +1 @@ -File Manager

Files

\ No newline at end of file +File Manager

Files

\ No newline at end of file diff --git a/striker-ui/out/index.html b/striker-ui/out/index.html index 8a721a7b..08111867 100644 --- a/striker-ui/out/index.html +++ b/striker-ui/out/index.html @@ -1 +1 @@ -Dashboard

Nodes

\ No newline at end of file +Dashboard

Nodes

\ No newline at end of file diff --git a/striker-ui/out/init.html b/striker-ui/out/init.html index b4c5785e..de8395c4 100644 --- a/striker-ui/out/init.html +++ b/striker-ui/out/init.html @@ -1 +1 @@ -

Loading...

Placeholder
Uncheck to skip domain and host name pattern validation.
\ No newline at end of file +

Loading...

Placeholder
Uncheck to skip domain and host name pattern validation.
\ No newline at end of file diff --git a/striker-ui/out/login.html b/striker-ui/out/login.html index a0292fd4..5871dfb3 100644 --- a/striker-ui/out/login.html +++ b/striker-ui/out/login.html @@ -1 +1 @@ -Login
Placeholder
\ No newline at end of file +Login
Placeholder
\ No newline at end of file diff --git a/striker-ui/out/manage-element.html b/striker-ui/out/manage-element.html index e4f257d1..78955fc3 100644 --- a/striker-ui/out/manage-element.html +++ b/striker-ui/out/manage-element.html @@ -1 +1 @@ -Loading
\ No newline at end of file +Loading
\ No newline at end of file diff --git a/striker-ui/out/server.html b/striker-ui/out/server.html index 2d4d50af..8d98e8e8 100644 --- a/striker-ui/out/server.html +++ b/striker-ui/out/server.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file