diff --git a/striker-ui/out/_next/static/80gKnCQuMqHJTSo3gTfw0/_buildManifest.js b/striker-ui/out/_next/static/80gKnCQuMqHJTSo3gTfw0/_buildManifest.js new file mode 100644 index 00000000..2c93cfc3 --- /dev/null +++ b/striker-ui/out/_next/static/80gKnCQuMqHJTSo3gTfw0/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,a,c,e,t,n,i,d,f,u,k,b,h,j,r,g){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,e,i,d,b,"static/chunks/717-8bd60b96d67fd464.js",a,t,n,f,h,j,"static/chunks/pages/index-2eaaa0d56c4c4f15.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,c,e,i,d,b,a,t,n,f,h,"static/chunks/pages/anvil-fbef5033b416c0dd.js"],"/config":[s,c,e,u,a,t,n,k,"static/chunks/pages/config-0381f0311f2b572a.js"],"/file-manager":[s,c,e,i,"static/chunks/768-9ee3dcb62beecb53.js",a,t,"static/chunks/pages/file-manager-21a667deb0a17960.js"],"/init":[s,c,i,d,u,r,a,t,n,f,g,"static/chunks/pages/init-e60db40234cb8025.js"],"/login":[s,c,e,a,t,n,k,"static/chunks/pages/login-398afa43b3c54927.js"],"/manage-element":[s,c,e,i,d,u,r,"static/chunks/195-d5fd184cc249f755.js",a,t,n,f,k,g,"static/chunks/pages/manage-element-79adadce1efb772f.js"],"/server":[s,e,"static/chunks/227-a3756585a7ef09ae.js",a,j,"static/chunks/pages/server-bf2d408a68a09e13.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/382-f51344f6f9208507.js","static/chunks/746-a9b6e396d532b9a2.js","static/chunks/483-f8013e38dca1620d.js","static/chunks/894-e57948de523bcf96.js","static/chunks/203-2f903a41f9b4e31e.js","static/chunks/899-83e9de2a35c6bcf0.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/614-0ce04fd295045ffe.js","static/chunks/140-ec935fb15330b98a.js","static/chunks/644-c7c6e21c71345aed.js","static/chunks/903-dc2a40be612a10c3.js","static/chunks/485-77798bccc4308d0e.js","static/chunks/116-dfb7b81f7280bb6d.js","static/chunks/906-86856e16ad160b72.js","static/chunks/676-6159ce853338cc1f.js","static/chunks/692-59a4ae2829590f4c.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/Gz6Kj_Ki5rQUCqqbGvdvl/_middlewareManifest.js b/striker-ui/out/_next/static/80gKnCQuMqHJTSo3gTfw0/_middlewareManifest.js similarity index 100% rename from striker-ui/out/_next/static/Gz6Kj_Ki5rQUCqqbGvdvl/_middlewareManifest.js rename to striker-ui/out/_next/static/80gKnCQuMqHJTSo3gTfw0/_middlewareManifest.js diff --git a/striker-ui/out/_next/static/Gz6Kj_Ki5rQUCqqbGvdvl/_ssgManifest.js b/striker-ui/out/_next/static/80gKnCQuMqHJTSo3gTfw0/_ssgManifest.js similarity index 100% rename from striker-ui/out/_next/static/Gz6Kj_Ki5rQUCqqbGvdvl/_ssgManifest.js rename to striker-ui/out/_next/static/80gKnCQuMqHJTSo3gTfw0/_ssgManifest.js diff --git a/striker-ui/out/_next/static/Gz6Kj_Ki5rQUCqqbGvdvl/_buildManifest.js b/striker-ui/out/_next/static/Gz6Kj_Ki5rQUCqqbGvdvl/_buildManifest.js deleted file mode 100644 index a17f90f9..00000000 --- a/striker-ui/out/_next/static/Gz6Kj_Ki5rQUCqqbGvdvl/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,t,n,i,d,u,k,b,f,h,j,r,g){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,e,i,d,f,"static/chunks/717-8bd60b96d67fd464.js",a,t,n,u,h,j,"static/chunks/pages/index-588d908af57f0a28.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,c,e,i,d,f,a,t,n,u,h,"static/chunks/pages/anvil-b955a7eac68cca34.js"],"/config":[s,c,e,k,"static/chunks/498-f83753eab52e101f.js",a,t,n,b,"static/chunks/pages/config-9e92d58e16ee1271.js"],"/file-manager":[s,c,e,i,"static/chunks/768-9ee3dcb62beecb53.js",a,t,"static/chunks/pages/file-manager-1b85936e77f64656.js"],"/init":[s,c,i,d,k,r,a,t,n,u,g,"static/chunks/pages/init-ff373e16c7d6eeac.js"],"/login":[s,c,e,a,t,n,b,"static/chunks/pages/login-6051b0bf38e75dfa.js"],"/manage-element":[s,c,e,i,d,k,r,"static/chunks/305-53fc33c7363998ae.js",a,t,n,u,b,g,"static/chunks/pages/manage-element-8af5b7d40288c65b.js"],"/server":[s,e,"static/chunks/227-a3756585a7ef09ae.js",a,j,"static/chunks/pages/server-bf2d408a68a09e13.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/382-f51344f6f9208507.js","static/chunks/746-f7f7db4392d6988b.js","static/chunks/923-9d13de6fec2fa4e9.js","static/chunks/894-e57948de523bcf96.js","static/chunks/203-2f903a41f9b4e31e.js","static/chunks/899-83e9de2a35c6bcf0.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/536-25c00e0e9292ce69.js","static/chunks/140-ec935fb15330b98a.js","static/chunks/644-c7c6e21c71345aed.js","static/chunks/903-29a2317305af2d71.js","static/chunks/303-2b528121b9d38fea.js","static/chunks/116-dfb7b81f7280bb6d.js","static/chunks/906-86856e16ad160b72.js","static/chunks/676-6159ce853338cc1f.js","static/chunks/692-833d087a56e52baf.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/195-d5fd184cc249f755.js b/striker-ui/out/_next/static/chunks/195-d5fd184cc249f755.js new file mode 100644 index 00000000..8636c6de --- /dev/null +++ b/striker-ui/out/_next/static/chunks/195-d5fd184cc249f755.js @@ -0,0 +1 @@ +"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/305-53fc33c7363998ae.js b/striker-ui/out/_next/static/chunks/305-53fc33c7363998ae.js deleted file mode 100644 index 7b42f615..00000000 --- a/striker-ui/out/_next/static/chunks/305-53fc33c7363998ae.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[305],{3457:function(e,t,o){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";const r=o(7294).createContext(void 0);t.Z=r},5316:function(e,t,o){"use strict";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){"use strict";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){"use strict";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){"use strict";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},1163:function(e,t,o){e.exports=o(387)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/483-f8013e38dca1620d.js b/striker-ui/out/_next/static/chunks/483-f8013e38dca1620d.js new file mode 100644 index 00000000..82d72a92 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/483-f8013e38dca1620d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[483],{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")},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 g=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(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%"}))),x=i.forwardRef((function(e,t){const n=(0,s.Z)({props:e,name:"MuiFormControl"}),{children:d,className:x,color:Z="primary",component:v="div",disabled:S=!1,error:w=!1,focused:y,fullWidth:z=!1,hiddenLabel:$=!1,margin:k="none",required:C=!1,size:M="medium",variant:R="outlined"}=n,W=(0,r.Z)(n,g),A=(0,o.Z)({},n,{color:Z,component:v,disabled:S,error:w,fullWidth:z,hiddenLabel:$,margin:k,required:C,size:M,variant:R}),N=(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)})(A),[L,E]=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})),[P,F]=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})),[j,I]=i.useState(!1);S&&j&&I(!1);const O=void 0===y||S?j:y;const B=i.useCallback((()=>{F(!0)}),[]),q={adornedStart:L,setAdornedStart:E,color:Z,disabled:S,error:w,filled:P,focused:O,fullWidth:z,hiddenLabel:$,size:M,onBlur:()=>{I(!1)},onEmpty:i.useCallback((()=>{F(!1)}),[]),onFilled:B,onFocus:()=>{I(!0)},registerEffect:undefined,required:C,variant:R};return(0,h.jsx)(m.Z.Provider,{value:q,children:(0,h.jsx)(b,(0,o.Z)({as:v,ownerState:A,className:(0,a.Z)(N.root,x),ref:t},W,{children:d}))})}));t.Z=x},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"],g=(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}}))),b=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${m.Z.error}`]:{color:e.palette.error.main}}))),x=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:p,component:x="label"}=n,Z=(0,r.Z)(n,h),v=(0,d.Z)(),S=(0,s.Z)({props:n,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),w=(0,o.Z)({},n,{color:S.color||"primary",component:x,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.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)})(w);return(0,f.jsxs)(g,(0,o.Z)({as:x,ownerState:w,className:(0,a.Z)(y.root,p),ref:t},Z,{children:[i,S.required&&(0,f.jsxs)(b,{ownerState:w,"aria-hidden":!0,className:y.asterisk,children:["\u2009","*"]})]}))}));t.Z=x},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},6886:function(e,t,n){n.d(t,{ZP:function(){return w}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),l=n(5408),s=n(9707),d=n(7192),u=n(1496),c=n(3616);var p=i.createContext(),m=n(8979);function f(e){return(0,m.Z)("MuiGrid",e)}const h=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var g=(0,n(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...h.map((e=>`grid-xs-${e}`)),...h.map((e=>`grid-sm-${e}`)),...h.map((e=>`grid-md-${e}`)),...h.map((e=>`grid-lg-${e}`)),...h.map((e=>`grid-xl-${e}`))]),b=n(5893);const x=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function Z(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function v(e,t,n={}){if(!t||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:r,sm:o,md:i,lg:a,xl:l}=e;return[Number(r)>0&&(n[`spacing-xs-${String(r)}`]||`spacing-xs-${String(r)}`),Number(o)>0&&(n[`spacing-sm-${String(o)}`]||`spacing-sm-${String(o)}`),Number(i)>0&&(n[`spacing-md-${String(i)}`]||`spacing-md-${String(i)}`),Number(a)>0&&(n[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(l)>0&&(n[`spacing-xl-${String(l)}`]||`spacing-xl-${String(l)}`)]}const S=(0,u.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{container:n,direction:r,item:o,lg:i,md:a,sm:l,spacing:s,wrap:d,xl:u,xs:c,zeroMinWidth:p}=e.ownerState;return[t.root,n&&t.container,o&&t.item,p&&t.zeroMinWidth,...v(s,n,t),"row"!==r&&t[`direction-xs-${String(r)}`],"wrap"!==d&&t[`wrap-xs-${String(d)}`],!1!==c&&t[`grid-xs-${String(c)}`],!1!==l&&t[`grid-sm-${String(l)}`],!1!==a&&t[`grid-md-${String(a)}`],!1!==i&&t[`grid-lg-${String(i)}`],!1!==u&&t[`grid-xl-${String(u)}`]]}})((({ownerState:e})=>(0,o.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const n=(0,l.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,l.k9)({theme:e},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${g.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,l.P$)({values:r,breakpoints:e.breakpoints.values});o=(0,l.k9)({theme:e},t,(t=>{const n=e.spacing(t);return"0px"!==n?{marginTop:`-${Z(n)}`,[`& > .${g.item}`]:{paddingTop:Z(n)}}:{}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,l.P$)({values:r,breakpoints:e.breakpoints.values});o=(0,l.k9)({theme:e},t,(t=>{const n=e.spacing(t);return"0px"!==n?{width:`calc(100% + ${Z(n)})`,marginLeft:`-${Z(n)}`,[`& > .${g.item}`]:{paddingLeft:Z(n)}}:{}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,l.P$)({values:t.columns,breakpoints:e.breakpoints.values}),d="object"===typeof s?s[i]:s;if(void 0===d||null===d)return r;const u=Math.round(n/d*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${u} + ${Z(n)})`;c={flexBasis:e,maxWidth:e}}}a=(0,o.Z)({flexBasis:u,flexGrow:0,maxWidth:u},c)}return 0===e.breakpoints.values[i]?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r}),{})}));var w=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiGrid"}),l=(0,s.Z)(n),{className:u,columns:m,columnSpacing:h,component:g="div",container:Z=!1,direction:w="row",item:y=!1,lg:z=!1,md:$=!1,rowSpacing:k,sm:C=!1,spacing:M=0,wrap:R="wrap",xl:W=!1,xs:A=!1,zeroMinWidth:N=!1}=l,L=(0,r.Z)(l,x),E=k||M,P=h||M,F=i.useContext(p),j=m||F||12,I=(0,o.Z)({},l,{columns:j,container:Z,direction:w,item:y,lg:z,md:$,sm:C,rowSpacing:E,columnSpacing:P,wrap:R,xl:W,xs:A,zeroMinWidth:N}),O=(e=>{const{classes:t,container:n,direction:r,item:o,lg:i,md:a,sm:l,spacing:s,wrap:u,xl:c,xs:p,zeroMinWidth:m}=e,h={root:["root",n&&"container",o&&"item",m&&"zeroMinWidth",...v(s,n),"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==u&&`wrap-xs-${String(u)}`,!1!==p&&`grid-xs-${String(p)}`,!1!==l&&`grid-sm-${String(l)}`,!1!==a&&`grid-md-${String(a)}`,!1!==i&&`grid-lg-${String(i)}`,!1!==c&&`grid-xl-${String(c)}`]};return(0,d.Z)(h,f,t)})(I);return B=(0,b.jsx)(S,(0,o.Z)({ownerState:I,className:(0,a.Z)(O.root,u),as:g,ref:t},L)),12!==j?(0,b.jsx)(p.Provider,{value:j,children:B}):B;var B}))},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),g=n(5893);const b=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(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"}))),Z=a.forwardRef((function(e,t){const n=(0,h.Z)({props:e,name:"MuiInputAdornment"}),{children:m,className:Z,component:v="div",disablePointerEvents:S=!1,disableTypography:w=!1,position:y,variant:z}=n,$=(0,o.Z)(n,b),k=(0,p.Z)()||{};let C=z;z&&k.variant,k&&!C&&(C=k.variant);const M=(0,i.Z)({},n,{hiddenLabel:k.hiddenLabel,size:k.size,disablePointerEvents:S,position:y,variant:C}),R=(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)})(M);return(0,g.jsx)(c.Z.Provider,{value:null,children:(0,g.jsx)(x,(0,i.Z)({as:v,ownerState:M,className:(0,l.Z)(R.root,Z),ref:t},$,{children:"string"!==typeof m||w?(0,g.jsxs)(a.Fragment,{children:["start"===y?r||(r=(0,g.jsx)("span",{className:"notranslate",children:"\u200b"})):null,m]}):(0,g.jsx)(u.Z,{color:"text.secondary",children:m})}))})}));t.Z=Z},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 E},Ej:function(){return L},ZP:function(){return F},_o:function(){return N},Gx:function(){return A}});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 g=a.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:l=1,style:g,value:b}=e,x=(0,r.Z)(e,m),{current:Z}=a.useRef(null!=b),v=a.useRef(null),S=(0,s.Z)(t,v),w=a.useRef(null),y=a.useRef(0),[z,$]=a.useState({}),k=a.useCallback((()=>{const t=v.current,n=(0,d.Z)(t).getComputedStyle(t);if("0px"===n.width)return;const r=w.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;$((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)(v.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(v.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[k]),(0,c.Z)((()=>{k()})),a.useEffect((()=>{y.current=0}),[b]);return(0,p.jsxs)(a.Fragment,{children:[(0,p.jsx)("textarea",(0,o.Z)({value:b,onChange:e=>{y.current=0,Z||k(),n&&n(e)},ref:S,rows:l,style:(0,o.Z)({height:z.outerHeightStyle,overflow:z.overflow?"hidden":null},g)},x)),(0,p.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:(0,o.Z)({},h,g,{padding:0})})]})})),b=n(7192),x=n(8442),Z=n(5704),v=n(7167),S=n(4423),w=n(1496),y=n(3616),z=n(8216),$=n(1705),k=n(8974),C=n(2287),M=n(5108),R=n(5827);const W=["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"],A=(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]},N=(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]},L=(0,w.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:A})((({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",[`&.${R.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%"}))),E=(0,w.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:N})((({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] + .${R.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},[`&.${R.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"})})),P=(0,p.jsx)(C.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}});var F=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:w,disableInjectingGlobalStyles:C,endAdornment:A,fullWidth:N=!1,id:F,inputComponent:j="input",inputProps:I={},inputRef:O,maxRows:B,minRows:q,multiline:T=!1,name:H,onBlur:G,onChange:D,onClick:V,onFocus:K,onKeyDown:_,onKeyUp:U,placeholder:Y,readOnly:J,renderSuffix:Q,rows:X,startAdornment:ee,type:te="text",value:ne}=n,re=(0,r.Z)(n,W),oe=null!=I.value?I.value:ne,{current:ie}=a.useRef(null!=oe),ae=a.useRef(),le=a.useCallback((e=>{0}),[]),se=(0,$.Z)(I.ref,le),de=(0,$.Z)(O,se),ue=(0,$.Z)(ae,de),[ce,pe]=a.useState(!1),me=(0,S.Z)();const fe=(0,Z.Z)({props:n,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=me?me.focused:ce,a.useEffect((()=>{!me&&w&&ce&&(pe(!1),G&&G())}),[me,w,ce,G]);const he=me&&me.onFilled,ge=me&&me.onEmpty,be=a.useCallback((e=>{(0,M.vd)(e)?he&&he():ge&&ge()}),[he,ge]);(0,k.Z)((()=>{ie&&be({value:oe})}),[oe,be,ie]);a.useEffect((()=>{be(ae.current)}),[]);let xe=j,Ze=I;T&&"input"===xe&&(Ze=X?(0,o.Z)({type:void 0,minRows:X,maxRows:X},Ze):(0,o.Z)({type:void 0,maxRows:B,minRows:q},Ze),xe=g);a.useEffect((()=>{me&&me.setAdornedStart(Boolean(ee))}),[me,ee]);const ve=(0,o.Z)({},n,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:A,error:fe.error,focused:fe.focused,formControl:me,fullWidth:N,hiddenLabel:fe.hiddenLabel,multiline:T,size:fe.size,startAdornment:ee,type:te}),Se=(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,b.Z)(f,R.u,t)})(ve),we=m.Root||L,ye=f.root||{},ze=m.Input||E;return Ze=(0,o.Z)({},Ze,f.input),(0,p.jsxs)(a.Fragment,{children:[!C&&P,(0,p.jsxs)(we,(0,o.Z)({},ye,!(0,x.Z)(we)&&{ownerState:(0,o.Z)({},ve,ye.ownerState)},{ref:t,onClick:e=>{ae.current&&e.currentTarget===e.target&&ae.current.focus(),V&&V(e)}},re,{className:(0,l.Z)(Se.root,ye.className,c),children:[ee,(0,p.jsx)(v.Z.Provider,{value:null,children:(0,p.jsx)(ze,(0,o.Z)({ownerState:ve,"aria-invalid":fe.error,"aria-describedby":s,autoComplete:d,autoFocus:u,defaultValue:h,disabled:fe.disabled,id:F,onAnimationStart:e=>{be("mui-auto-fill-cancel"===e.animationName?ae.current:{value:"x"})},name:H,placeholder:Y,readOnly:J,required:fe.required,rows:X,value:oe,onKeyDown:_,onKeyUp:U,type:te},Ze,!(0,x.Z)(ze)&&{as:xe,ownerState:(0,o.Z)({},ve,Ze.ownerState)},{ref:ue,className:(0,l.Z)(Se.input,Ze.className),onBlur:e=>{G&&G(e),I.onBlur&&I.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));be({value:t.value})}I.onChange&&I.onChange(e,...t),D&&D(e,...t)},onFocus:e=>{fe.disabled?e.stopPropagation():(K&&K(e),I.onFocus&&I.onFocus(e),me&&me.onFocus?me.onFocus(e):pe(!0))}}))}),A,Q?Q((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"],g=(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)"})))),b=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 b=d;"undefined"===typeof b&&p&&(b=p.filled||p.focused||p.adornedStart);const x=(0,l.Z)({props:n,muiFormControl:p,states:["size","variant","required"]}),Z=(0,o.Z)({},n,{disableAnimation:i,formControl:p,shrink:b,size:x.size,variant:x.variant,required:x.required}),v=(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)})(Z);return(0,f.jsx)(g,(0,o.Z)({"data-shrink":b,ownerState:Z,ref:t},u,{classes:v}))}));t.Z=b},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),g=n(3970),b=n(3616);const x=["components","fullWidth","inputComponent","label","multiline","notched","type"],Z=(0,s.ZP)(g.Ej,{shouldForwardProp:e=>(0,s.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:g.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"}))})),v=(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)"}))),S=(0,s.ZP)(g.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g._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}))),w=a.forwardRef((function(e,t){var n;const r=(0,b.Z)({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:p,multiline:w=!1,notched:y,type:z="text"}=r,$=(0,o.Z)(r,x),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),C=(0,m.Z)(),M=(0,f.Z)({props:r,muiFormControl:C,states:["required"]});return(0,d.jsx)(g.ZP,(0,i.Z)({components:(0,i.Z)({Root:Z,Input:S},s),renderSuffix:e=>(0,d.jsx)(v,{className:k.notchedOutline,label:null!=p&&""!==p&&M.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:w,ref:t,type:z},$,{classes:(0,i.Z)({},k,{notchedOutline:null})}))}));w.muiName="Input";var y=w},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/303-2b528121b9d38fea.js b/striker-ui/out/_next/static/chunks/485-77798bccc4308d0e.js similarity index 75% rename from striker-ui/out/_next/static/chunks/303-2b528121b9d38fea.js rename to striker-ui/out/_next/static/chunks/485-77798bccc4308d0e.js index b78140bc..4e5df22f 100644 --- a/striker-ui/out/_next/static/chunks/303-2b528121b9d38fea.js +++ b/striker-ui/out/_next/static/chunks/485-77798bccc4308d0e.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[303],{1184:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ne},TW:function(){return K}});var r=n(3366),a=n(7462),o=n(7294),i=n(6010),l=n(6087),s=n(8979);function u(e){return(0,s.Z)("MuiSlider",e)}var c=(0,l.Z)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),d=n(5893);var b=function(e){const{children:t,className:n,value:r,theme:a}=e,l=(e=>{const{open:t}=e;return{offset:(0,i.Z)(t&&c.valueLabelOpen),circle:c.valueLabelCircle,label:c.valueLabelLabel}})(e);return o.cloneElement(t,{className:(0,i.Z)(t.props.className)},(0,d.jsxs)(o.Fragment,{children:[t.props.children,(0,d.jsx)("span",{className:(0,i.Z)(l.offset,n),theme:a,"aria-hidden":!0,children:(0,d.jsx)("span",{className:l.circle,children:(0,d.jsx)("span",{className:l.label,children:r})})})]}))},m=n(3554),v=n(8442),p=n(7192),f=n(7094),h=n(8925),g=n(9962),Z=n(67),x=n(6600),k=n(3633);var y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function w(e,t){return e-t}function S(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function L(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const a=Math.abs(t-n);return null===e||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},C=e=>e;let A;function j(){return void 0===A&&(A="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),A}function E(e){const{ref:t,"aria-labelledby":n,defaultValue:r,disableSwap:i=!1,disabled:l=!1,marks:s=!1,max:u=100,min:c=0,name:d,onChange:b,onChangeCommitted:m,orientation:v="horizontal",scale:p=C,step:A=1,tabIndex:E,value:T,isRtl:$=!1}=e,I=o.useRef(),[N,V]=o.useState(-1),[F,D]=o.useState(-1),[Y,G]=o.useState(!1),_=o.useRef(0),[U,X]=(0,h.Z)({controlled:T,default:null!=r?r:c,name:"Slider"}),K=b&&((e,t,n)=>{const r=e.nativeEvent||e,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:t,name:d}}),b(a,t,n)}),q=Array.isArray(U);let H=q?U.slice().sort(w):[U];H=H.map((e=>S(e,c,u)));const W=!0===s&&null!==A?[...Array(Math.floor((u-c)/A)+1)].map(((e,t)=>({value:c+A*t}))):s||[],J=W.map((e=>e.value)),{isFocusVisibleRef:Q,onBlur:ee,onFocus:te,ref:ne}=(0,g.Z)(),[re,ae]=o.useState(-1),oe=o.useRef(),ie=(0,Z.Z)(ne,oe),le=(0,Z.Z)(t,ie),se=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));te(t),!0===Q.current&&ae(r),D(r),null==e||null==(n=e.onFocus)||n.call(e,t)},ue=e=>t=>{var n;ee(t),!1===Q.current&&ae(-1),D(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,x.Z)((()=>{var e;l&&oe.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[l]),l&&-1!==N&&V(-1),l&&-1!==re&&ae(-1);const ce=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index")),a=H[r],o=J.indexOf(a);let l=t.target.valueAsNumber;if(W&&null==A&&(l=l{const{current:r}=oe,{width:a,height:o,bottom:l,left:s}=r.getBoundingClientRect();let d,b;if(d=0===be.indexOf("vertical")?(l-e.y)/o:(e.x-s)/a,-1!==be.indexOf("-reverse")&&(d=1-d),b=function(e,t,n){return(n-t)*e+t}(d,c,u),A)b=B(b,A,c);else{const e=L(J,b);b=J[e]}b=S(b,c,u);let m=0;if(q){m=t?de.current:L(n,b),i&&(b=S(b,n[m-1]||-1/0,n[m+1]||1/0));const e=b;b=M({values:n,newValue:b,index:m}),i&&t||(m=b.indexOf(e),de.current=m)}return{newValue:b,activeIndex:m}},ve=(0,k.Z)((e=>{const t=P(e,I);if(!t)return;if(_.current+=1,"mousemove"===e.type&&0===e.buttons)return void pe(e);const{newValue:n,activeIndex:r}=me({finger:t,move:!0,values:H});z({sliderRef:oe,activeIndex:r,setActive:V}),X(n),!Y&&_.current>2&&G(!0),K&&K(e,n,r)})),pe=(0,k.Z)((e=>{const t=P(e,I);if(G(!1),!t)return;const{newValue:n}=me({finger:t,values:H});V(-1),"touchend"===e.type&&D(-1),m&&m(e,n),I.current=void 0,he()})),fe=(0,k.Z)((e=>{j()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(I.current=t.identifier);const n=P(e,I);if(!1!==n){const{newValue:t,activeIndex:r}=me({finger:n,values:H});z({sliderRef:oe,activeIndex:r,setActive:V}),X(t),K&&K(e,t,r)}_.current=0;const r=(0,f.Z)(oe.current);r.addEventListener("touchmove",ve),r.addEventListener("touchend",pe)})),he=o.useCallback((()=>{const e=(0,f.Z)(oe.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",pe),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",pe)}),[pe,ve]);o.useEffect((()=>{const{current:e}=oe;return e.addEventListener("touchstart",fe,{passive:j()}),()=>{e.removeEventListener("touchstart",fe,{passive:j()}),he()}}),[he,fe]),o.useEffect((()=>{l&&he()}),[l,he]);const ge=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),t.defaultPrevented)return;if(0!==t.button)return;t.preventDefault();const r=P(t,I);if(!1!==r){const{newValue:e,activeIndex:n}=me({finger:r,values:H});z({sliderRef:oe,activeIndex:n,setActive:V}),X(e),K&&K(t,e,n)}_.current=0;const a=(0,f.Z)(oe.current);a.addEventListener("mousemove",ve),a.addEventListener("mouseup",pe)},Ze=R(q?H[0]:c,c,u),xe=R(H[H.length-1],c,u)-Ze,ke=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index"));D(r)},ye=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),D(-1)};return{axis:be,axisProps:O,getRootProps:e=>{const t={onMouseDown:ge(e||{})},n=(0,a.Z)({},e,t);return(0,a.Z)({ref:le},n)},getHiddenInputProps:t=>{const r={onChange:ce(t||{}),onFocus:se(t||{}),onBlur:ue(t||{})},o=(0,a.Z)({},t,r);return(0,a.Z)({tabIndex:E,"aria-labelledby":n,"aria-orientation":v,"aria-valuemax":p(u),"aria-valuemin":p(c),name:d,type:"range",min:e.min,max:e.max,step:e.step,disabled:l},o,{style:(0,a.Z)({},y,{direction:$?"rtl":"ltr",width:"100%",height:"100%"})})},getThumbProps:e=>{const t={onMouseOver:ke(e||{}),onMouseLeave:ye(e||{})},n=(0,a.Z)({},e,t);return(0,a.Z)({},n)},dragging:Y,marks:W,values:H,active:N,focusVisible:re,open:F,range:q,trackOffset:Ze,trackLeap:xe}}const T=["aria-label","aria-valuetext","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"],$=e=>e,I=({children:e})=>e,N=o.forwardRef((function(e,t){var n,l,s,c,f,h,g;const{"aria-label":Z,"aria-valuetext":x,className:k,component:y,classes:w,disableSwap:S=!1,disabled:L=!1,getAriaLabel:P,getAriaValueText:B,marks:M=!1,max:z=100,min:O=0,onMouseDown:C,orientation:A="horizontal",scale:j=$,step:N=1,track:V="normal",valueLabelDisplay:F="off",valueLabelFormat:D=$,isRtl:Y=!1,components:G={},componentsProps:_={}}=e,U=(0,r.Z)(e,T),X=(0,a.Z)({},e,{mark:M,classes:w,disabled:L,isRtl:Y,max:z,min:O,orientation:A,scale:j,step:N,track:V,valueLabelDisplay:F,valueLabelFormat:D}),{axisProps:K,getRootProps:q,getHiddenInputProps:H,getThumbProps:W,open:J,active:Q,axis:ee,range:te,focusVisible:ne,dragging:re,marks:ae,values:oe,trackOffset:ie,trackLeap:le}=E((0,a.Z)({},X,{ref:t}));X.marked=ae.length>0&&ae.some((e=>e.label)),X.dragging=re;const se=null!=(n=null!=y?y:G.Root)?n:"span",ue=(0,m.Z)(se,(0,a.Z)({},U,_.root),X),ce=null!=(l=G.Rail)?l:"span",de=(0,m.Z)(ce,_.rail,X),be=null!=(s=G.Track)?s:"span",me=(0,m.Z)(be,_.track,X),ve=(0,a.Z)({},K[ee].offset(ie),K[ee].leap(le)),pe=null!=(c=G.Thumb)?c:"span",fe=(0,m.Z)(pe,_.thumb,X),he=null!=(f=G.ValueLabel)?f:b,ge=(0,m.Z)(he,_.valueLabel,X),Ze=null!=(h=G.Mark)?h:"span",xe=(0,m.Z)(Ze,_.mark,X),ke=null!=(g=G.MarkLabel)?g:"span",ye=(0,m.Z)(ke,_.markLabel,X),we=G.Input||"input",Se=(0,m.Z)(we,_.input,X),Le=H(),Pe=(e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:o,classes:i}=e,l={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===a&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,p.Z)(l,u,i)})(X);return(0,d.jsxs)(se,(0,a.Z)({},ue,q({onMouseDown:C}),{className:(0,i.Z)(Pe.root,ue.className,k),children:[(0,d.jsx)(ce,(0,a.Z)({},de,{className:(0,i.Z)(Pe.rail,de.className)})),(0,d.jsx)(be,(0,a.Z)({},me,{className:(0,i.Z)(Pe.track,me.className),style:(0,a.Z)({},ve,me.style)})),ae.map(((e,t)=>{const n=R(e.value,O,z),r=K[ee].offset(n);let l;return l=!1===V?-1!==oe.indexOf(e.value):"normal"===V&&(te?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0])||"inverted"===V&&(te?e.value<=oe[0]||e.value>=oe[oe.length-1]:e.value>=oe[0]),(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)(Ze,(0,a.Z)({"data-index":t},xe,!(0,v.Z)(Ze)&&{markActive:l},{style:(0,a.Z)({},r,xe.style),className:(0,i.Z)(Pe.mark,xe.className,l&&Pe.markActive)})),null!=e.label?(0,d.jsx)(ke,(0,a.Z)({"aria-hidden":!0,"data-index":t},ye,!(0,v.Z)(ke)&&{markLabelActive:l},{style:(0,a.Z)({},r,ye.style),className:(0,i.Z)(Pe.markLabel,ye.className,l&&Pe.markLabelActive),children:e.label})):null]},e.value)})),oe.map(((e,t)=>{const n=R(e,O,z),r=K[ee].offset(n),l="off"===F?I:he;return(0,d.jsx)(o.Fragment,{children:(0,d.jsx)(l,(0,a.Z)({},!(0,v.Z)(l)&&{valueLabelFormat:D,valueLabelDisplay:F,value:"function"===typeof D?D(j(e),t):D,index:t,open:J===t||Q===t||"on"===F,disabled:L},ge,{className:(0,i.Z)(Pe.valueLabel,ge.className),children:(0,d.jsx)(pe,(0,a.Z)({"data-index":t},fe,W(),{className:(0,i.Z)(Pe.thumb,fe.className,Q===t&&Pe.active,ne===t&&Pe.focusVisible)},!(0,v.Z)(pe)&&{ownerState:(0,a.Z)({},X,fe.ownerState)},{style:(0,a.Z)({},r,{pointerEvents:S&&Q!==t?"none":void 0},fe.style),children:(0,d.jsx)(we,(0,a.Z)({},Le,{"data-index":t,"aria-label":P?P(t):Z,"aria-valuenow":j(e),"aria-valuetext":B?B(j(e),t):x,value:oe[t]},!(0,v.Z)(we)&&{ownerState:(0,a.Z)({},X,Se.ownerState)},Se,{style:(0,a.Z)({},Le.style,Se.style)}))}))}))},t)}))]}))}));var V=N,F=n(1796),D=n(3616),Y=n(1496),G=n(2734),_=n(6285),U=n(8216);const X=["component","components","componentsProps","color","size"],K=(0,a.Z)({},c,(0,l.Z)("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),q=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,r=!0===n.marksProp&&null!==n.step?[...Array(Math.floor((n.max-n.min)/n.step)+1)].map(((e,t)=>({value:n.min+n.step*t}))):n.marksProp||[],a=r.length>0&&r.some((e=>e.label));return[t.root,t[`color${(0,U.Z)(n.color)}`],"medium"!==n.size&&t[`size${(0,U.Z)(n.size)}`],a&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>(0,a.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&(0,a.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&(0,a.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${K.disabled}`]:{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},[`&.${K.dragging}`]:{[`& .${K.thumb}, & .${K.track}`]:{transition:"none"}}}))),H=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>(0,a.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),W=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?(0,F.$n)(e.palette[t.color].main,.62):(0,F._j)(e.palette[t.color].main,.5);return(0,a.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:n,borderColor:n})})),J=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,U.Z)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,U.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,a.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,a.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:e.shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${K.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${(0,F.Fq)(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${K.active}`]:{boxShadow:`0px 0px 0px 14px ${(0,F.Fq)(e.palette[t.color].main,.16)}`},[`&.${K.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),Q=(0,Y.ZP)(b,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>(0,a.Z)({[`&.${K.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-10,transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:e.palette.grey[600],borderRadius:2,color:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"},{"&:before":{position:"absolute",content:'""',width:8,height:8,bottom:0,left:"50%",transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit"}}))),ee=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,Y.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>t.mark})((({theme:e,ownerState:t,markActive:n})=>(0,a.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:e.palette.background.paper,opacity:.8}))),te=(0,Y.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,Y.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:n})=>(0,a.Z)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:e.palette.text.primary})));var ne=o.forwardRef((function(e,t){var n,o,l,s;const c=(0,D.Z)({props:e,name:"MuiSlider"}),b="rtl"===(0,G.Z)().direction,{component:m="span",components:v={},componentsProps:p={},color:f="primary",size:h="medium"}=c,g=(0,r.Z)(c,X),Z=(e=>{const{color:t,size:n,classes:r={}}=e;return(0,a.Z)({},r,{root:(0,i.Z)(r.root,u(`color${(0,U.Z)(t)}`),r[`color${(0,U.Z)(t)}`],n&&[u(`size${(0,U.Z)(n)}`),r[`size${(0,U.Z)(n)}`]]),thumb:(0,i.Z)(r.thumb,u(`thumbColor${(0,U.Z)(t)}`),r[`thumbColor${(0,U.Z)(t)}`],n&&[u(`thumbSize${(0,U.Z)(n)}`),r[`thumbSize${(0,U.Z)(n)}`]])})})((0,a.Z)({},c,{color:f,size:h}));return(0,d.jsx)(V,(0,a.Z)({},g,{isRtl:b,components:(0,a.Z)({Root:q,Rail:H,Track:W,Thumb:J,ValueLabel:Q,Mark:ee,MarkLabel:te},v),componentsProps:(0,a.Z)({},p,{root:(0,a.Z)({},p.root,(0,_.Z)(v.Root)&&{as:m,ownerState:(0,a.Z)({},null==(n=p.root)?void 0:n.ownerState,{color:f,size:h})}),thumb:(0,a.Z)({},p.thumb,(0,_.Z)(v.Thumb)&&{ownerState:(0,a.Z)({},null==(o=p.thumb)?void 0:o.ownerState,{color:f,size:h})}),track:(0,a.Z)({},p.track,(0,_.Z)(v.Track)&&{ownerState:(0,a.Z)({},null==(l=p.track)?void 0:l.ownerState,{color:f,size:h})}),valueLabel:(0,a.Z)({},p.valueLabel,(0,_.Z)(v.ValueLabel)&&{ownerState:(0,a.Z)({},null==(s=p.valueLabel)?void 0:s.ownerState,{color:f,size:h})})}),classes:Z,ref:t}))}))},4490:function(e,t,n){"use strict";n.d(t,{_d:function(){return h},gO:function(){return f}});var r=function(e,t,n){return Math.max(t,Math.min(e,n))},a={"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"],i=["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"],l=function(e){return BigInt(Math.pow(10,e))},s=function(e,t){var n=e.precision,r=e.value,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.isReverse;if("b"===t)return{precision:n,value:r};var s="b-".concat(t),u=a[s];if(i)return{precision:n,value:r*u};var c=String(u).length,d=l(c),b=r*d/u;return{precision:n+c,value:b}},u=function(e,t,n,r,a,o,i){var l=o.indexOf(n),s=t;l<0&&(l=function(e,t){var n="i"===e[1],r=/B$/.test(e),a="".concat(n?"i":"").concat(r?"byte":"bit"),o=t.findIndex((function(e){return e===a}));return{section:a,index:o}}(t,o).index);for(var u=l*i,c=u+i;u=r["b-".concat(d)]?s=d:u=c}return s};function c(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 d(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]:{},a=r.bigintFormatOptions,o=r.numberFormatOptions,i=r.locale,s=l(t),u=n/s,c=n%s,b="0.",v=m(b,2),p=v[0],f=v[1],h=u.toString(),g=c.toString();if(i){var Z="string"===typeof i?i:void 0,x=.1.toLocaleString(Z,o),k=m(x,2);p=k[0],f=k[1],h=u.toLocaleString(Z,a),g=c.toLocaleString(Z,d(d({},a),{},{useGrouping:!1}))}var y=h;return t>0&&(y+="".concat(f).concat(g.padStart(t,p))),y},f=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.fromUnit,o=void 0===a?"B":a,i=n.locale,l=n.precision,u=n.toUnit;try{t=x(e)}catch(S){return}var c=k(l),d=c.max,b=c.min,m=Z(o,"B"),v=m.unit;t=s(t,v,{isReverse:!0});var f=y(t,v,{toUnit:u});t=s(t,f),t=g(t,{toPrecision:r(t.precision,b,d)}),t=w(t,b);var h=p(t,{locale:i});return{value:h,unit:f}},h=function(){var e=f.apply(void 0,arguments);return e?"".concat(e.value," ").concat(e.unit):e},g=function(e){var t=e.precision,n=e.value,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.toPrecision,o=void 0===a?0:a,i={precision:o,value:n};if(o>t)i.value*=l(o-t);else if(o4&&(i.value+=1n)}return i},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=n.indexOf(e);return r<0?{unit:t,unitIndex:0}:{unit:n[r],unitIndex:r}},x=function(e){var t,n,r=String(e).split(/\D/,2),a=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:a}},k=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}},y=function(e,t){var n=e.precision,r=e.value,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=s.conversionTable,d=void 0===c?a:c,b=s.toUnit,m=s.units,v=void 0===m?i:m,p=s.unitSections,f=void 0===p?o:p,h=s.unitSectionLength,g=void 0===h?9:h,Z=v.indexOf(b);return Z>=0?v[Z]:u(r/l(n),t,b,d,v,f,g)},w=function(e,t){for(var n=e.precision,r={precision:n,value:e.value},a=n-t,o=!0,i=1;o&&i<=a;i+=1){0n===r.value%10n?(r.value/=10n,r.precision-=1):o=!1}return r}},1163:function(e,t,n){e.exports=n(387)}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[485],{1184:function(e,t,n){n.d(t,{ZP:function(){return ne},TW:function(){return K}});var r=n(3366),a=n(7462),o=n(7294),i=n(6010),l=n(6087),s=n(8979);function u(e){return(0,s.Z)("MuiSlider",e)}var c=(0,l.Z)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),d=n(5893);var b=function(e){const{children:t,className:n,value:r,theme:a}=e,l=(e=>{const{open:t}=e;return{offset:(0,i.Z)(t&&c.valueLabelOpen),circle:c.valueLabelCircle,label:c.valueLabelLabel}})(e);return o.cloneElement(t,{className:(0,i.Z)(t.props.className)},(0,d.jsxs)(o.Fragment,{children:[t.props.children,(0,d.jsx)("span",{className:(0,i.Z)(l.offset,n),theme:a,"aria-hidden":!0,children:(0,d.jsx)("span",{className:l.circle,children:(0,d.jsx)("span",{className:l.label,children:r})})})]}))},m=n(3554),v=n(8442),p=n(7192),f=n(7094),h=n(8925),g=n(9962),Z=n(67),x=n(6600),k=n(3633);var y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function w(e,t){return e-t}function S(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function L(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const a=Math.abs(t-n);return null===e||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},C=e=>e;let A;function j(){return void 0===A&&(A="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),A}function E(e){const{ref:t,"aria-labelledby":n,defaultValue:r,disableSwap:i=!1,disabled:l=!1,marks:s=!1,max:u=100,min:c=0,name:d,onChange:b,onChangeCommitted:m,orientation:v="horizontal",scale:p=C,step:A=1,tabIndex:E,value:T,isRtl:$=!1}=e,I=o.useRef(),[N,V]=o.useState(-1),[F,D]=o.useState(-1),[Y,G]=o.useState(!1),_=o.useRef(0),[U,X]=(0,h.Z)({controlled:T,default:null!=r?r:c,name:"Slider"}),K=b&&((e,t,n)=>{const r=e.nativeEvent||e,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:t,name:d}}),b(a,t,n)}),q=Array.isArray(U);let H=q?U.slice().sort(w):[U];H=H.map((e=>S(e,c,u)));const W=!0===s&&null!==A?[...Array(Math.floor((u-c)/A)+1)].map(((e,t)=>({value:c+A*t}))):s||[],J=W.map((e=>e.value)),{isFocusVisibleRef:Q,onBlur:ee,onFocus:te,ref:ne}=(0,g.Z)(),[re,ae]=o.useState(-1),oe=o.useRef(),ie=(0,Z.Z)(ne,oe),le=(0,Z.Z)(t,ie),se=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));te(t),!0===Q.current&&ae(r),D(r),null==e||null==(n=e.onFocus)||n.call(e,t)},ue=e=>t=>{var n;ee(t),!1===Q.current&&ae(-1),D(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,x.Z)((()=>{var e;l&&oe.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[l]),l&&-1!==N&&V(-1),l&&-1!==re&&ae(-1);const ce=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index")),a=H[r],o=J.indexOf(a);let l=t.target.valueAsNumber;if(W&&null==A&&(l=l{const{current:r}=oe,{width:a,height:o,bottom:l,left:s}=r.getBoundingClientRect();let d,b;if(d=0===be.indexOf("vertical")?(l-e.y)/o:(e.x-s)/a,-1!==be.indexOf("-reverse")&&(d=1-d),b=function(e,t,n){return(n-t)*e+t}(d,c,u),A)b=B(b,A,c);else{const e=L(J,b);b=J[e]}b=S(b,c,u);let m=0;if(q){m=t?de.current:L(n,b),i&&(b=S(b,n[m-1]||-1/0,n[m+1]||1/0));const e=b;b=M({values:n,newValue:b,index:m}),i&&t||(m=b.indexOf(e),de.current=m)}return{newValue:b,activeIndex:m}},ve=(0,k.Z)((e=>{const t=P(e,I);if(!t)return;if(_.current+=1,"mousemove"===e.type&&0===e.buttons)return void pe(e);const{newValue:n,activeIndex:r}=me({finger:t,move:!0,values:H});z({sliderRef:oe,activeIndex:r,setActive:V}),X(n),!Y&&_.current>2&&G(!0),K&&K(e,n,r)})),pe=(0,k.Z)((e=>{const t=P(e,I);if(G(!1),!t)return;const{newValue:n}=me({finger:t,values:H});V(-1),"touchend"===e.type&&D(-1),m&&m(e,n),I.current=void 0,he()})),fe=(0,k.Z)((e=>{j()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(I.current=t.identifier);const n=P(e,I);if(!1!==n){const{newValue:t,activeIndex:r}=me({finger:n,values:H});z({sliderRef:oe,activeIndex:r,setActive:V}),X(t),K&&K(e,t,r)}_.current=0;const r=(0,f.Z)(oe.current);r.addEventListener("touchmove",ve),r.addEventListener("touchend",pe)})),he=o.useCallback((()=>{const e=(0,f.Z)(oe.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",pe),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",pe)}),[pe,ve]);o.useEffect((()=>{const{current:e}=oe;return e.addEventListener("touchstart",fe,{passive:j()}),()=>{e.removeEventListener("touchstart",fe,{passive:j()}),he()}}),[he,fe]),o.useEffect((()=>{l&&he()}),[l,he]);const ge=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),t.defaultPrevented)return;if(0!==t.button)return;t.preventDefault();const r=P(t,I);if(!1!==r){const{newValue:e,activeIndex:n}=me({finger:r,values:H});z({sliderRef:oe,activeIndex:n,setActive:V}),X(e),K&&K(t,e,n)}_.current=0;const a=(0,f.Z)(oe.current);a.addEventListener("mousemove",ve),a.addEventListener("mouseup",pe)},Ze=R(q?H[0]:c,c,u),xe=R(H[H.length-1],c,u)-Ze,ke=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index"));D(r)},ye=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),D(-1)};return{axis:be,axisProps:O,getRootProps:e=>{const t={onMouseDown:ge(e||{})},n=(0,a.Z)({},e,t);return(0,a.Z)({ref:le},n)},getHiddenInputProps:t=>{const r={onChange:ce(t||{}),onFocus:se(t||{}),onBlur:ue(t||{})},o=(0,a.Z)({},t,r);return(0,a.Z)({tabIndex:E,"aria-labelledby":n,"aria-orientation":v,"aria-valuemax":p(u),"aria-valuemin":p(c),name:d,type:"range",min:e.min,max:e.max,step:e.step,disabled:l},o,{style:(0,a.Z)({},y,{direction:$?"rtl":"ltr",width:"100%",height:"100%"})})},getThumbProps:e=>{const t={onMouseOver:ke(e||{}),onMouseLeave:ye(e||{})},n=(0,a.Z)({},e,t);return(0,a.Z)({},n)},dragging:Y,marks:W,values:H,active:N,focusVisible:re,open:F,range:q,trackOffset:Ze,trackLeap:xe}}const T=["aria-label","aria-valuetext","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"],$=e=>e,I=({children:e})=>e,N=o.forwardRef((function(e,t){var n,l,s,c,f,h,g;const{"aria-label":Z,"aria-valuetext":x,className:k,component:y,classes:w,disableSwap:S=!1,disabled:L=!1,getAriaLabel:P,getAriaValueText:B,marks:M=!1,max:z=100,min:O=0,onMouseDown:C,orientation:A="horizontal",scale:j=$,step:N=1,track:V="normal",valueLabelDisplay:F="off",valueLabelFormat:D=$,isRtl:Y=!1,components:G={},componentsProps:_={}}=e,U=(0,r.Z)(e,T),X=(0,a.Z)({},e,{mark:M,classes:w,disabled:L,isRtl:Y,max:z,min:O,orientation:A,scale:j,step:N,track:V,valueLabelDisplay:F,valueLabelFormat:D}),{axisProps:K,getRootProps:q,getHiddenInputProps:H,getThumbProps:W,open:J,active:Q,axis:ee,range:te,focusVisible:ne,dragging:re,marks:ae,values:oe,trackOffset:ie,trackLeap:le}=E((0,a.Z)({},X,{ref:t}));X.marked=ae.length>0&&ae.some((e=>e.label)),X.dragging=re;const se=null!=(n=null!=y?y:G.Root)?n:"span",ue=(0,m.Z)(se,(0,a.Z)({},U,_.root),X),ce=null!=(l=G.Rail)?l:"span",de=(0,m.Z)(ce,_.rail,X),be=null!=(s=G.Track)?s:"span",me=(0,m.Z)(be,_.track,X),ve=(0,a.Z)({},K[ee].offset(ie),K[ee].leap(le)),pe=null!=(c=G.Thumb)?c:"span",fe=(0,m.Z)(pe,_.thumb,X),he=null!=(f=G.ValueLabel)?f:b,ge=(0,m.Z)(he,_.valueLabel,X),Ze=null!=(h=G.Mark)?h:"span",xe=(0,m.Z)(Ze,_.mark,X),ke=null!=(g=G.MarkLabel)?g:"span",ye=(0,m.Z)(ke,_.markLabel,X),we=G.Input||"input",Se=(0,m.Z)(we,_.input,X),Le=H(),Pe=(e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:o,classes:i}=e,l={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===a&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,p.Z)(l,u,i)})(X);return(0,d.jsxs)(se,(0,a.Z)({},ue,q({onMouseDown:C}),{className:(0,i.Z)(Pe.root,ue.className,k),children:[(0,d.jsx)(ce,(0,a.Z)({},de,{className:(0,i.Z)(Pe.rail,de.className)})),(0,d.jsx)(be,(0,a.Z)({},me,{className:(0,i.Z)(Pe.track,me.className),style:(0,a.Z)({},ve,me.style)})),ae.map(((e,t)=>{const n=R(e.value,O,z),r=K[ee].offset(n);let l;return l=!1===V?-1!==oe.indexOf(e.value):"normal"===V&&(te?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0])||"inverted"===V&&(te?e.value<=oe[0]||e.value>=oe[oe.length-1]:e.value>=oe[0]),(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)(Ze,(0,a.Z)({"data-index":t},xe,!(0,v.Z)(Ze)&&{markActive:l},{style:(0,a.Z)({},r,xe.style),className:(0,i.Z)(Pe.mark,xe.className,l&&Pe.markActive)})),null!=e.label?(0,d.jsx)(ke,(0,a.Z)({"aria-hidden":!0,"data-index":t},ye,!(0,v.Z)(ke)&&{markLabelActive:l},{style:(0,a.Z)({},r,ye.style),className:(0,i.Z)(Pe.markLabel,ye.className,l&&Pe.markLabelActive),children:e.label})):null]},e.value)})),oe.map(((e,t)=>{const n=R(e,O,z),r=K[ee].offset(n),l="off"===F?I:he;return(0,d.jsx)(o.Fragment,{children:(0,d.jsx)(l,(0,a.Z)({},!(0,v.Z)(l)&&{valueLabelFormat:D,valueLabelDisplay:F,value:"function"===typeof D?D(j(e),t):D,index:t,open:J===t||Q===t||"on"===F,disabled:L},ge,{className:(0,i.Z)(Pe.valueLabel,ge.className),children:(0,d.jsx)(pe,(0,a.Z)({"data-index":t},fe,W(),{className:(0,i.Z)(Pe.thumb,fe.className,Q===t&&Pe.active,ne===t&&Pe.focusVisible)},!(0,v.Z)(pe)&&{ownerState:(0,a.Z)({},X,fe.ownerState)},{style:(0,a.Z)({},r,{pointerEvents:S&&Q!==t?"none":void 0},fe.style),children:(0,d.jsx)(we,(0,a.Z)({},Le,{"data-index":t,"aria-label":P?P(t):Z,"aria-valuenow":j(e),"aria-valuetext":B?B(j(e),t):x,value:oe[t]},!(0,v.Z)(we)&&{ownerState:(0,a.Z)({},X,Se.ownerState)},Se,{style:(0,a.Z)({},Le.style,Se.style)}))}))}))},t)}))]}))}));var V=N,F=n(1796),D=n(3616),Y=n(1496),G=n(2734),_=n(6285),U=n(8216);const X=["component","components","componentsProps","color","size"],K=(0,a.Z)({},c,(0,l.Z)("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),q=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,r=!0===n.marksProp&&null!==n.step?[...Array(Math.floor((n.max-n.min)/n.step)+1)].map(((e,t)=>({value:n.min+n.step*t}))):n.marksProp||[],a=r.length>0&&r.some((e=>e.label));return[t.root,t[`color${(0,U.Z)(n.color)}`],"medium"!==n.size&&t[`size${(0,U.Z)(n.size)}`],a&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>(0,a.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&(0,a.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&(0,a.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${K.disabled}`]:{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},[`&.${K.dragging}`]:{[`& .${K.thumb}, & .${K.track}`]:{transition:"none"}}}))),H=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>(0,a.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),W=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?(0,F.$n)(e.palette[t.color].main,.62):(0,F._j)(e.palette[t.color].main,.5);return(0,a.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:n,borderColor:n})})),J=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,U.Z)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,U.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,a.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,a.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:e.shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${K.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${(0,F.Fq)(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${K.active}`]:{boxShadow:`0px 0px 0px 14px ${(0,F.Fq)(e.palette[t.color].main,.16)}`},[`&.${K.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),Q=(0,Y.ZP)(b,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>(0,a.Z)({[`&.${K.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-10,transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:e.palette.grey[600],borderRadius:2,color:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"},{"&:before":{position:"absolute",content:'""',width:8,height:8,bottom:0,left:"50%",transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit"}}))),ee=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,Y.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>t.mark})((({theme:e,ownerState:t,markActive:n})=>(0,a.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:e.palette.background.paper,opacity:.8}))),te=(0,Y.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,Y.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:n})=>(0,a.Z)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:e.palette.text.primary})));var ne=o.forwardRef((function(e,t){var n,o,l,s;const c=(0,D.Z)({props:e,name:"MuiSlider"}),b="rtl"===(0,G.Z)().direction,{component:m="span",components:v={},componentsProps:p={},color:f="primary",size:h="medium"}=c,g=(0,r.Z)(c,X),Z=(e=>{const{color:t,size:n,classes:r={}}=e;return(0,a.Z)({},r,{root:(0,i.Z)(r.root,u(`color${(0,U.Z)(t)}`),r[`color${(0,U.Z)(t)}`],n&&[u(`size${(0,U.Z)(n)}`),r[`size${(0,U.Z)(n)}`]]),thumb:(0,i.Z)(r.thumb,u(`thumbColor${(0,U.Z)(t)}`),r[`thumbColor${(0,U.Z)(t)}`],n&&[u(`thumbSize${(0,U.Z)(n)}`),r[`thumbSize${(0,U.Z)(n)}`]])})})((0,a.Z)({},c,{color:f,size:h}));return(0,d.jsx)(V,(0,a.Z)({},g,{isRtl:b,components:(0,a.Z)({Root:q,Rail:H,Track:W,Thumb:J,ValueLabel:Q,Mark:ee,MarkLabel:te},v),componentsProps:(0,a.Z)({},p,{root:(0,a.Z)({},p.root,(0,_.Z)(v.Root)&&{as:m,ownerState:(0,a.Z)({},null==(n=p.root)?void 0:n.ownerState,{color:f,size:h})}),thumb:(0,a.Z)({},p.thumb,(0,_.Z)(v.Thumb)&&{ownerState:(0,a.Z)({},null==(o=p.thumb)?void 0:o.ownerState,{color:f,size:h})}),track:(0,a.Z)({},p.track,(0,_.Z)(v.Track)&&{ownerState:(0,a.Z)({},null==(l=p.track)?void 0:l.ownerState,{color:f,size:h})}),valueLabel:(0,a.Z)({},p.valueLabel,(0,_.Z)(v.ValueLabel)&&{ownerState:(0,a.Z)({},null==(s=p.valueLabel)?void 0:s.ownerState,{color:f,size:h})})}),classes:Z,ref:t}))}))},4490:function(e,t,n){n.d(t,{_d:function(){return h},gO:function(){return f}});var r=function(e,t,n){return Math.max(t,Math.min(e,n))},a={"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"],i=["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"],l=function(e){return BigInt(Math.pow(10,e))},s=function(e,t){var n=e.precision,r=e.value,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.isReverse;if("b"===t)return{precision:n,value:r};var s="b-".concat(t),u=a[s];if(i)return{precision:n,value:r*u};var c=String(u).length,d=l(c),b=r*d/u;return{precision:n+c,value:b}},u=function(e,t,n,r,a,o,i){var l=o.indexOf(n),s=t;l<0&&(l=function(e,t){var n="i"===e[1],r=/B$/.test(e),a="".concat(n?"i":"").concat(r?"byte":"bit"),o=t.findIndex((function(e){return e===a}));return{section:a,index:o}}(t,o).index);for(var u=l*i,c=u+i;u=r["b-".concat(d)]?s=d:u=c}return s};function c(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 d(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]:{},a=r.bigintFormatOptions,o=r.numberFormatOptions,i=r.locale,s=l(t),u=n/s,c=n%s,b="0.",v=m(b,2),p=v[0],f=v[1],h=u.toString(),g=c.toString();if(i){var Z="string"===typeof i?i:void 0,x=.1.toLocaleString(Z,o),k=m(x,2);p=k[0],f=k[1],h=u.toLocaleString(Z,a),g=c.toLocaleString(Z,d(d({},a),{},{useGrouping:!1}))}var y=h;return t>0&&(y+="".concat(f).concat(g.padStart(t,p))),y},f=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.fromUnit,o=void 0===a?"B":a,i=n.locale,l=n.precision,u=n.toUnit;try{t=x(e)}catch(S){return}var c=k(l),d=c.max,b=c.min,m=Z(o,"B"),v=m.unit;t=s(t,v,{isReverse:!0});var f=y(t,v,{toUnit:u});t=s(t,f),t=g(t,{toPrecision:r(t.precision,b,d)}),t=w(t,b);var h=p(t,{locale:i});return{value:h,unit:f}},h=function(){var e=f.apply(void 0,arguments);return e?"".concat(e.value," ").concat(e.unit):e},g=function(e){var t=e.precision,n=e.value,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.toPrecision,o=void 0===a?0:a,i={precision:o,value:n};if(o>t)i.value*=l(o-t);else if(o4&&(i.value+=1n)}return i},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=n.indexOf(e);return r<0?{unit:t,unitIndex:0}:{unit:n[r],unitIndex:r}},x=function(e){var t,n,r=String(e).split(/\D/,2),a=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:a}},k=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}},y=function(e,t){var n=e.precision,r=e.value,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=s.conversionTable,d=void 0===c?a:c,b=s.toUnit,m=s.units,v=void 0===m?i:m,p=s.unitSections,f=void 0===p?o:p,h=s.unitSectionLength,g=void 0===h?9:h,Z=v.indexOf(b);return Z>=0?v[Z]:u(r/l(n),t,b,d,v,f,g)},w=function(e,t){for(var n=e.precision,r={precision:n,value:e.value},a=n-t,o=!0,i=1;o&&i<=a;i+=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/498-f83753eab52e101f.js b/striker-ui/out/_next/static/chunks/498-f83753eab52e101f.js deleted file mode 100644 index 2454b6ee..00000000 --- a/striker-ui/out/_next/static/chunks/498-f83753eab52e101f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[498],{5685:function(e,r,n){var i=n(7892),t=n(5893);r.Z=(0,i.Z)((0,t.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")},8262:function(e,r,n){n.d(r,{Z:function(){return y}});var i=n(3366),t=n(7462),a=n(7294),o=n(6010),s=n(7192),l=n(7579),c=n(8216),p=n(9964),d=n(6628),u=n(5113),m=n(3616),g=n(1496),x=n(8979);function h(e){return(0,x.Z)("MuiDialog",e)}var f=(0,n(6087).Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var S=(0,a.createContext)({}),w=n(7227),b=n(2734),$=n(5893);const v=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],W=(0,g.ZP)(w.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,r)=>r.backdrop})({zIndex:-1}),Z=(0,g.ZP)(p.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,r)=>r.root})({"@media print":{position:"absolute !important"}}),k=(0,g.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.container,r[`scroll${(0,c.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,t.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"}}))),M=(0,g.ZP)(u.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.paper,r[`scrollPaper${(0,c.Z)(n.scroll)}`],r[`paperWidth${(0,c.Z)(String(n.maxWidth))}`],n.fullWidth&&r.paperFullWidth,n.fullScreen&&r.paperFullScreen]}})((({theme:e,ownerState:r})=>(0,t.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==r.maxWidth&&{maxWidth:`${e.breakpoints.values[r.maxWidth]}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var y=a.forwardRef((function(e,r){const n=(0,m.Z)({props:e,name:"MuiDialog"}),p=(0,b.Z)(),g={enter:p.transitions.duration.enteringScreen,exit:p.transitions.duration.leavingScreen},{"aria-describedby":x,"aria-labelledby":f,BackdropComponent:w,BackdropProps:y,children:P,className:C,disableEscapeKeyDown:N=!1,fullScreen:B=!1,fullWidth:D=!1,maxWidth:z="sm",onBackdropClick:j,onClose:R,open:F,PaperComponent:T=u.Z,PaperProps:E={},scroll:G="paper",TransitionComponent:A=d.Z,transitionDuration:I=g,TransitionProps:K}=n,L=(0,i.Z)(n,v),_=(0,t.Z)({},n,{disableEscapeKeyDown:N,fullScreen:B,fullWidth:D,maxWidth:z,scroll:G}),X=(e=>{const{classes:r,scroll:n,maxWidth:i,fullWidth:t,fullScreen:a}=e,o={root:["root"],container:["container",`scroll${(0,c.Z)(n)}`],paper:["paper",`paperScroll${(0,c.Z)(n)}`,`paperWidth${(0,c.Z)(String(i))}`,t&&"paperFullWidth",a&&"paperFullScreen"]};return(0,s.Z)(o,h,r)})(_),Y=a.useRef(),H=(0,l.Z)(f),O=a.useMemo((()=>({titleId:H})),[H]);return(0,$.jsx)(Z,(0,t.Z)({className:(0,o.Z)(X.root,C),BackdropProps:(0,t.Z)({transitionDuration:I,as:w},y),closeAfterTransition:!0,BackdropComponent:W,disableEscapeKeyDown:N,onClose:R,open:F,ref:r,onClick:e=>{Y.current&&(Y.current=null,j&&j(e),R&&R(e,"backdropClick"))},ownerState:_},L,{children:(0,$.jsx)(A,(0,t.Z)({appear:!0,in:F,timeout:I,role:"presentation"},K,{children:(0,$.jsx)(k,{className:(0,o.Z)(X.container),onMouseDown:e=>{Y.current=e.target===e.currentTarget},ownerState:_,children:(0,$.jsx)(M,(0,t.Z)({as:T,elevation:24,role:"dialog","aria-describedby":x,"aria-labelledby":H},E,{className:(0,o.Z)(X.paper,E.className),ownerState:_,children:(0,$.jsx)(S.Provider,{value:O,children:P})}))})}))}))}))},6886:function(e,r,n){n.d(r,{ZP:function(){return v}});var i=n(3366),t=n(7462),a=n(7294),o=n(6010),s=n(5408),l=n(9707),c=n(7192),p=n(1496),d=n(3616);var u=a.createContext(),m=n(8979);function g(e){return(0,m.Z)("MuiGrid",e)}const x=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var h=(0,n(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...x.map((e=>`grid-xs-${e}`)),...x.map((e=>`grid-sm-${e}`)),...x.map((e=>`grid-md-${e}`)),...x.map((e=>`grid-lg-${e}`)),...x.map((e=>`grid-xl-${e}`))]),f=n(5893);const S=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function w(e){const r=parseFloat(e);return`${r}${String(e).replace(String(r),"")||"px"}`}function b(e,r,n={}){if(!r||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:i,sm:t,md:a,lg:o,xl:s}=e;return[Number(i)>0&&(n[`spacing-xs-${String(i)}`]||`spacing-xs-${String(i)}`),Number(t)>0&&(n[`spacing-sm-${String(t)}`]||`spacing-sm-${String(t)}`),Number(a)>0&&(n[`spacing-md-${String(a)}`]||`spacing-md-${String(a)}`),Number(o)>0&&(n[`spacing-lg-${String(o)}`]||`spacing-lg-${String(o)}`),Number(s)>0&&(n[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const $=(0,p.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>{const{container:n,direction:i,item:t,lg:a,md:o,sm:s,spacing:l,wrap:c,xl:p,xs:d,zeroMinWidth:u}=e.ownerState;return[r.root,n&&r.container,t&&r.item,u&&r.zeroMinWidth,...b(l,n,r),"row"!==i&&r[`direction-xs-${String(i)}`],"wrap"!==c&&r[`wrap-xs-${String(c)}`],!1!==d&&r[`grid-xs-${String(d)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==o&&r[`grid-md-${String(o)}`],!1!==a&&r[`grid-lg-${String(a)}`],!1!==p&&r[`grid-xl-${String(p)}`]]}})((({ownerState:e})=>(0,t.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:r}){const n=(0,s.P$)({values:r.direction,breakpoints:e.breakpoints.values});return(0,s.k9)({theme:e},n,(e=>{const r={flexDirection:e};return 0===e.indexOf("column")&&(r[`& > .${h.item}`]={maxWidth:"none"}),r}))}),(function({theme:e,ownerState:r}){const{container:n,rowSpacing:i}=r;let t={};if(n&&0!==i){const r=(0,s.P$)({values:i,breakpoints:e.breakpoints.values});t=(0,s.k9)({theme:e},r,(r=>{const n=e.spacing(r);return"0px"!==n?{marginTop:`-${w(n)}`,[`& > .${h.item}`]:{paddingTop:w(n)}}:{}}))}return t}),(function({theme:e,ownerState:r}){const{container:n,columnSpacing:i}=r;let t={};if(n&&0!==i){const r=(0,s.P$)({values:i,breakpoints:e.breakpoints.values});t=(0,s.k9)({theme:e},r,(r=>{const n=e.spacing(r);return"0px"!==n?{width:`calc(100% + ${w(n)})`,marginLeft:`-${w(n)}`,[`& > .${h.item}`]:{paddingLeft:w(n)}}:{}}))}return t}),(function({theme:e,ownerState:r}){let n;return e.breakpoints.keys.reduce(((i,a)=>{let o={};if(r[a]&&(n=r[a]),!n)return i;if(!0===n)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.P$)({values:r.columns,breakpoints:e.breakpoints.values}),c="object"===typeof l?l[a]:l;if(void 0===c||null===c)return i;const p=Math.round(n/c*1e8)/1e6+"%";let d={};if(r.container&&r.item&&0!==r.columnSpacing){const n=e.spacing(r.columnSpacing);if("0px"!==n){const e=`calc(${p} + ${w(n)})`;d={flexBasis:e,maxWidth:e}}}o=(0,t.Z)({flexBasis:p,flexGrow:0,maxWidth:p},d)}return 0===e.breakpoints.values[a]?Object.assign(i,o):i[e.breakpoints.up(a)]=o,i}),{})}));var v=a.forwardRef((function(e,r){const n=(0,d.Z)({props:e,name:"MuiGrid"}),s=(0,l.Z)(n),{className:p,columns:m,columnSpacing:x,component:h="div",container:w=!1,direction:v="row",item:W=!1,lg:Z=!1,md:k=!1,rowSpacing:M,sm:y=!1,spacing:P=0,wrap:C="wrap",xl:N=!1,xs:B=!1,zeroMinWidth:D=!1}=s,z=(0,i.Z)(s,S),j=M||P,R=x||P,F=a.useContext(u),T=m||F||12,E=(0,t.Z)({},s,{columns:T,container:w,direction:v,item:W,lg:Z,md:k,sm:y,rowSpacing:j,columnSpacing:R,wrap:C,xl:N,xs:B,zeroMinWidth:D}),G=(e=>{const{classes:r,container:n,direction:i,item:t,lg:a,md:o,sm:s,spacing:l,wrap:p,xl:d,xs:u,zeroMinWidth:m}=e,x={root:["root",n&&"container",t&&"item",m&&"zeroMinWidth",...b(l,n),"row"!==i&&`direction-xs-${String(i)}`,"wrap"!==p&&`wrap-xs-${String(p)}`,!1!==u&&`grid-xs-${String(u)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==o&&`grid-md-${String(o)}`,!1!==a&&`grid-lg-${String(a)}`,!1!==d&&`grid-xl-${String(d)}`]};return(0,c.Z)(x,g,r)})(E);return A=(0,f.jsx)($,(0,t.Z)({ownerState:E,className:(0,o.Z)(G.root,p),as:h,ref:r},z)),12!==T?(0,f.jsx)(u.Provider,{value:T,children:A}):A;var A}))},7579:function(e,r,n){var i;n.d(r,{Z:function(){return s}});var t=n(7294);let a=0;const o=(i||(i=n.t(t,2))).useId;function s(e){if(void 0!==o){const r=o();return null!=e?e:r}return function(e){const[r,n]=t.useState(e),i=e||r;return t.useEffect((()=>{null==r&&(a+=1,n(`mui-${a}`))}),[r]),i}(e)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/536-25c00e0e9292ce69.js b/striker-ui/out/_next/static/chunks/536-25c00e0e9292ce69.js deleted file mode 100644 index e470bcb4..00000000 --- a/striker-ui/out/_next/static/chunks/536-25c00e0e9292ce69.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[536],{5949:function(e,t,o){o.d(t,{D:function(){return p},Z:function(){return f}});var n=o(7462),r=o(7294),i=o(7579),a=o(8925),l=o(3633),s=o(7960);function c(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function p(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:r="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let p=a?l.trim():l;o&&(p=p.toLowerCase()),t&&(p=c(p));const u=e.filter((e=>{let n=(i||s)(e);return o&&(n=n.toLowerCase()),t&&(n=c(n)),"start"===r?0===n.indexOf(p):n.indexOf(p)>-1}));return"number"===typeof n?u.slice(0,n):u}}function u(e,t){for(let o=0;o{var t;return null!=(t=e.label)?t:e}),isOptionEqualToValue:C=((e,t)=>e===t),groupBy:P,handleHomeEndKeys:I=!e.freeSolo,id:R,includeInputInList:L=!1,inputValue:M,multiple:A=!1,onChange:E,onClose:D,onHighlightChange:T,onInputChange:j,onOpen:z,open:N,openOnFocus:W=!1,options:F,readOnly:H=!1,selectOnFocus:V=!e.freeSolo,value:B}=e,q=(0,i.Z)(R);let G=k;G=e=>{const t=k(e);return"string"!==typeof t?String(t):t};const U=r.useRef(!1),K=r.useRef(!0),_=r.useRef(null),X=r.useRef(null),[Y,Q]=r.useState(null),[J,ee]=r.useState(-1),te=o?0:-1,oe=r.useRef(te),[ne,re]=(0,a.Z)({controlled:B,default:b,name:h}),[ie,ae]=(0,a.Z)({controlled:M,default:"",name:h,state:"inputValue"}),[le,se]=r.useState(!1),ce=r.useCallback(((e,t)=>{if(!(A?ne.length{const e=ne!==pe.current;pe.current=ne,le&&!e||O&&!e||ce(null,ne)}),[ne,ce,le,pe,O]);const[ue,de]=(0,a.Z)({controlled:N,default:!1,name:h,state:"open"}),[fe,me]=r.useState(!0),ge=!A&&null!=ne&&ie===G(ne),he=ue&&!H,be=he?Z(F.filter((e=>!S||!(A?ne:[ne]).some((t=>null!==t&&C(e,t))))),{inputValue:ge&&fe?"":ie,getOptionLabel:G}):[],ve=ue&&be.length>0&&!H;const xe=(0,l.Z)((e=>{-1===e?_.current.focus():Y.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{A&&J>ne.length-1&&(ee(-1),xe(-1))}),[ne,A,J,xe]);const ye=(0,l.Z)((({event:e,index:t,reason:o="auto"})=>{if(oe.current=t,-1===t?_.current.removeAttribute("aria-activedescendant"):_.current.setAttribute("aria-activedescendant",`${q}-option-${t}`),T&&T(e,-1===t?null:be[t],o),!X.current)return;const n=X.current.querySelector('[role="option"].Mui-focused');n&&(n.classList.remove("Mui-focused"),n.classList.remove("Mui-focusVisible"));const r=X.current.parentElement.querySelector('[role="listbox"]');if(!r)return;if(-1===t)return void(r.scrollTop=0);const i=X.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add("Mui-focused"),"keyboard"===o&&i.classList.add("Mui-focusVisible"),r.scrollHeight>r.clientHeight&&"mouse"!==o)){const e=i,t=r.clientHeight+r.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?r.scrollTop=o-r.clientHeight:e.offsetTop-e.offsetHeight*(P?1.3:0){if(!he)return;const i=function(e,t){if(!X.current||-1===e)return-1;let o=e;for(;;){if("next"===t&&o===be.length||"previous"===t&&-1===o)return-1;const e=X.current.querySelector(`[data-option-index="${o}"]`),n=!y&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||n))return o;o+="next"===t?1:-1}}((()=>{const e=be.length-1;if("reset"===o)return te;if("start"===o)return 0;if("end"===o)return e;const t=oe.current+o;return t<0?-1===t&&L?-1:w&&-1!==oe.current||Math.abs(o)>1?0:e:t>e?t===e+1&&L?-1:w||Math.abs(o)>1?e:0:t})(),n);if(ye({index:i,reason:r,event:e}),t&&"reset"!==o)if(-1===i)_.current.value=ie;else{const e=G(be[i]);_.current.value=e;0===e.toLowerCase().indexOf(ie.toLowerCase())&&ie.length>0&&_.current.setSelectionRange(ie.length,e.length)}})),Ze=r.useCallback((()=>{if(!he)return;const e=A?ne[0]:ne;if(0!==be.length&&null!=e){if(X.current)if(null==e)oe.current>=be.length-1?ye({index:be.length-1}):ye({index:oe.current});else{const t=be[oe.current];if(A&&t&&-1!==u(ne,(e=>C(t,e))))return;const o=u(be,(t=>C(t,e)));-1===o?we({diff:"reset"}):ye({index:o})}}else we({diff:"reset"})}),[be.length,!A&&ne,S,we,ye,he,ie,A]),Se=(0,l.Z)((e=>{(0,s.Z)(X,e),e&&Ze()}));r.useEffect((()=>{Ze()}),[Ze]);const Oe=e=>{ue||(de(!0),me(!0),z&&z(e))},$e=(e,t)=>{ue&&(de(!1),D&&D(e,t))},ke=(e,t,o,n)=>{if(Array.isArray(ne)){if(ne.length===t.length&&ne.every(((e,o)=>e===t[o])))return}else if(ne===t)return;E&&E(e,t,o,n),re(t)},Ce=r.useRef(!1),Pe=(e,t,o="selectOption",n="options")=>{let r=o,i=t;if(A){i=Array.isArray(ne)?ne.slice():[];const e=u(i,(e=>C(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}ce(e,i),ke(e,i,r,{option:t}),x||e.ctrlKey||e.metaKey||$e(e,r),(!0===p||"touch"===p&&Ce.current||"mouse"===p&&!Ce.current)&&_.current.blur()};const Ie=(e,t)=>{if(!A)return;$e(e,"toggleInput");let o=J;-1===J?""===ie&&"previous"===t&&(o=ne.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ne.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ne.length||"previous"===t&&-1===o)return-1;const e=Y.querySelector(`[data-tag-index="${o}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),ee(o),xe(o)},Re=e=>{U.current=!0,ae(""),j&&j(e,"","clear"),ke(e,A?[]:null,"clear")},Le=e=>o=>{if(e.onKeyDown&&e.onKeyDown(o),!o.defaultMuiPrevented&&(-1!==J&&-1===["ArrowLeft","ArrowRight"].indexOf(o.key)&&(ee(-1),xe(-1)),229!==o.which))switch(o.key){case"Home":he&&I&&(o.preventDefault(),we({diff:"start",direction:"next",reason:"keyboard",event:o}));break;case"End":he&&I&&(o.preventDefault(),we({diff:"end",direction:"previous",reason:"keyboard",event:o}));break;case"PageUp":o.preventDefault(),we({diff:-5,direction:"previous",reason:"keyboard",event:o}),Oe(o);break;case"PageDown":o.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:o}),Oe(o);break;case"ArrowDown":o.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:o}),Oe(o);break;case"ArrowUp":o.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:o}),Oe(o);break;case"ArrowLeft":Ie(o,"previous");break;case"ArrowRight":Ie(o,"next");break;case"Enter":if(-1!==oe.current&&he){const e=be[oe.current],n=!!$&&$(e);if(o.preventDefault(),n)return;Pe(o,e,"selectOption"),t&&_.current.setSelectionRange(_.current.value.length,_.current.value.length)}else O&&""!==ie&&!1===ge&&(A&&o.preventDefault(),Pe(o,ie,"createOption","freeSolo"));break;case"Escape":he?(o.preventDefault(),o.stopPropagation(),$e(o,"escape")):g&&(""!==ie||A&&ne.length>0)&&(o.preventDefault(),o.stopPropagation(),Re(o));break;case"Backspace":if(A&&!H&&""===ie&&ne.length>0){const e=-1===J?ne.length-1:J,t=ne.slice();t.splice(e,1),ke(o,t,"removeOption",{option:ne[e]})}}},Me=e=>{se(!0),W&&!U.current&&Oe(e)},Ae=e=>{null!==X.current&&X.current.parentElement.contains(document.activeElement)?_.current.focus():(se(!1),K.current=!0,U.current=!1,c&&-1!==oe.current&&he?Pe(e,be[oe.current],"blur"):c&&O&&""!==ie?Pe(e,ie,"blur","freeSolo"):m&&ce(e,ne),$e(e,"blur"))},Ee=e=>{const t=e.target.value;ie!==t&&(ae(t),me(!1),j&&j(e,t,"input")),""===t?v||A||ke(e,null,"clear"):Oe(e)},De=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Te=()=>{Ce.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Pe(e,be[t],"selectOption"),Ce.current=!1},ze=e=>t=>{const o=ne.slice();o.splice(e,1),ke(t,o,"removeOption",{option:ne[e]})},Ne=e=>{ue?$e(e,"toggleInput"):Oe(e)},We=e=>{e.target.getAttribute("id")!==q&&e.preventDefault()},Fe=()=>{_.current.focus(),V&&K.current&&_.current.selectionEnd-_.current.selectionStart===0&&_.current.select(),K.current=!1},He=e=>{""!==ie&&ue||Ne(e)};let Ve=O&&ie.length>0;Ve=Ve||(A?ne.length>0:null!==ne);let Be=be;if(P){new Map;Be=be.reduce(((e,t,o)=>{const n=P(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return f&&le&&Ae(),{getRootProps:(e={})=>(0,n.Z)({"aria-owns":ve?`${q}-listbox`:null,role:"combobox","aria-expanded":ve},e,{onKeyDown:Le(e),onMouseDown:We,onClick:Fe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:ie,onBlur:Ae,onFocus:Me,onChange:Ee,onMouseDown:He,"aria-activedescendant":he?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ve?`${q}-listbox`:void 0,autoComplete:"off",ref:_,autoCapitalize:"none",spellCheck:"false"}),getClearProps:()=>({tabIndex:-1,onClick:Re}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ne}),getTagProps:({index:e})=>(0,n.Z)({key:e,"data-tag-index":e,tabIndex:-1},!H&&{onDelete:ze(e)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const o=(A?ne:[ne]).some((e=>null!=e&&C(t,e))),n=!!$&&$(t);return{key:G(t),tabIndex:-1,role:"option",id:`${q}-option-${e}`,onMouseOver:De,onClick:je,onTouchStart:Te,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:q,inputValue:ie,value:ne,dirty:Ve,popupOpen:he,focused:le||-1!==J,anchorEl:Y,setAnchorEl:Q,focusedTag:J,groupedOptions:Be}}},3554:function(e,t,o){o.d(t,{Z:function(){return i}});var n=o(7462),r=o(8442);function i(e,t={},o){return(0,r.Z)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,o)})}},5685:function(e,t,o){var n=o(7892),r=o(5893);t.Z=(0,n.Z)((0,r.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")},9890:function(e,t,o){o.d(t,{Z:function(){return B}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(5949),c=o(1796),p=o(4606),u=o(1496),d=o(3616),f=o(8216),m=o(8979);function g(e){return(0,m.Z)("MuiListSubheader",e)}(0,o(6087).Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var h=o(5893);const b=["className","color","component","disableGutters","disableSticky","inset"],v=(0,u.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,f.Z)(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,r.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:e.palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:e.palette.background.paper})));var x,y,w=i.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:s="default",component:c="li",disableGutters:p=!1,disableSticky:u=!1,inset:m=!1}=o,x=(0,n.Z)(o,b),y=(0,r.Z)({},o,{color:s,component:c,disableGutters:p,disableSticky:u,inset:m}),w=(e=>{const{classes:t,color:o,disableGutters:n,inset:r,disableSticky:i}=e,a={root:["root","default"!==o&&`color${(0,f.Z)(o)}`,!n&&"gutters",r&&"inset",!i&&"sticky"]};return(0,l.Z)(a,g,t)})(y);return(0,h.jsx)(v,(0,r.Z)({as:c,className:(0,a.Z)(w.root,i),ref:t,ownerState:y},x))})),Z=o(5113),S=o(4799),O=o(7918),$=o(7021),k=o(5827),C=o(4656),P=o(4707),I=(0,o(7892).Z)((0,h.jsx)("path",{d:"M19 6.41L17.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"),R=o(224),L=o(482);const M=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],A=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:r,hasPopupIcon:i,inputFocused:a,size:l}=o;return[{[`& .${L.Z.tag}`]:t.tag},{[`& .${L.Z.tag}`]:t[`tagSize${(0,f.Z)(l)}`]},{[`& .${L.Z.inputRoot}`]:t.inputRoot},{[`& .${L.Z.input}`]:t.input},{[`& .${L.Z.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,r&&t.hasClearIcon]}})((({ownerState:e})=>(0,r.Z)({[`&.${L.Z.focused} .${L.Z.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${L.Z.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${L.Z.tag}`]:(0,r.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${L.Z.inputRoot}`]:{flexWrap:"wrap",[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:30},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:56},[`& .${L.Z.input}`]:{width:0,minWidth:30}},[`& .${$.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$.Z.root}.${k.Z.sizeSmall}`]:{[`& .${$.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${C.Z.root}`]:{padding:9,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${L.Z.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${C.Z.root}.${k.Z.sizeSmall}`]:{padding:6,[`& .${L.Z.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${P.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${P.Z.input}`]:{padding:"7px 4px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${P.Z.root}.${k.Z.sizeSmall}`]:{paddingBottom:1,[`& .${P.Z.input}`]:{padding:"2.5px 4px"}},[`& .${k.Z.hiddenLabel}`]:{paddingTop:8},[`& .${L.Z.input}`]:(0,r.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),E=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),D=(0,u.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),T=(0,u.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,r.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,r.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),j=(0,u.ZP)(p.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${L.Z.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,r.Z)({zIndex:e.zIndex.modal},t.disablePortal&&{position:"absolute"}))),z=(0,u.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,r.Z)({},e.typography.body1,{overflow:"auto"}))),N=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),W=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),F=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${L.Z.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${L.Z.focused}`]:{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${L.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},'&[aria-selected="true"]':{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${L.Z.focused}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.palette.action.selected}},[`&.${L.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),H=(0,u.ZP)(w,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:e.palette.background.paper,top:-8}))),V=(0,u.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${L.Z.option}`]:{paddingLeft:24}});var B=i.forwardRef((function(e,t){var o,c;const u=(0,d.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:m=!1,autoHighlight:g=!1,autoSelect:b=!1,blurOnSelect:v=!1,ChipProps:w,className:S,clearIcon:$=x||(x=(0,h.jsx)(I,{fontSize:"small"})),clearOnBlur:k=!u.freeSolo,clearOnEscape:C=!1,clearText:P="Clear",closeText:B="Close",componentsProps:q={},defaultValue:G=(u.multiple?[]:null),disableClearable:U=!1,disableCloseOnSelect:K=!1,disabled:_=!1,disabledItemsFocusable:X=!1,disableListWrap:Y=!1,disablePortal:Q=!1,filterSelectedOptions:J=!1,forcePopupIcon:ee="auto",freeSolo:te=!1,fullWidth:oe=!1,getLimitTagsText:ne=(e=>`+${e}`),getOptionLabel:re=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:ie,handleHomeEndKeys:ae=!u.freeSolo,includeInputInList:le=!1,limitTags:se=-1,ListboxComponent:ce="ul",ListboxProps:pe,loading:ue=!1,loadingText:de="Loading\u2026",multiple:fe=!1,noOptionsText:me="No options",openOnFocus:ge=!1,openText:he="Open",PaperComponent:be=Z.Z,PopperComponent:ve=p.Z,popupIcon:xe=y||(y=(0,h.jsx)(R.Z,{})),readOnly:ye=!1,renderGroup:we,renderInput:Ze,renderOption:Se,renderTags:Oe,selectOnFocus:$e=!u.freeSolo,size:ke="medium"}=u,Ce=(0,n.Z)(u,M),{getRootProps:Pe,getInputProps:Ie,getInputLabelProps:Re,getPopupIndicatorProps:Le,getClearProps:Me,getTagProps:Ae,getListboxProps:Ee,getOptionProps:De,value:Te,dirty:je,id:ze,popupOpen:Ne,focused:We,focusedTag:Fe,anchorEl:He,setAnchorEl:Ve,inputValue:Be,groupedOptions:qe}=(0,s.Z)((0,r.Z)({},u,{componentName:"Autocomplete"})),Ge=!U&&!_&&je&&!ye,Ue=(!te||!0===ee)&&!1!==ee,Ke=(0,r.Z)({},u,{disablePortal:Q,focused:We,fullWidth:oe,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:-1===Fe,popupOpen:Ne,size:ke}),_e=(e=>{const{classes:t,disablePortal:o,focused:n,fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,popupOpen:c,size:p}=e,u={root:["root",n&&"focused",r&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${(0,f.Z)(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(u,L.q,t)})(Ke);let Xe;if(fe&&Te.length>0){const e=e=>(0,r.Z)({className:(0,a.Z)(_e.tag),disabled:_},Ae(e));Xe=Oe?Oe(Te,e):Te.map(((t,o)=>(0,h.jsx)(O.Z,(0,r.Z)({label:re(t),size:ke},e({index:o}),w))))}if(se>-1&&Array.isArray(Xe)){const e=Xe.length-se;!We&&e>0&&(Xe=Xe.splice(0,se),Xe.push((0,h.jsx)("span",{className:_e.tag,children:ne(e)},Xe.length)))}const Ye=we||(e=>(0,h.jsxs)("li",{children:[(0,h.jsx)(H,{className:_e.groupLabel,ownerState:Ke,component:"div",children:e.group}),(0,h.jsx)(V,{className:_e.groupUl,ownerState:Ke,children:e.children})]},e.key)),Qe=Se||((e,t)=>(0,h.jsx)("li",(0,r.Z)({},e,{children:re(t)}))),Je=(e,t)=>{const o=De({option:e,index:t});return Qe((0,r.Z)({},o,{className:_e.option}),e,{selected:o["aria-selected"],inputValue:Be})};return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(A,(0,r.Z)({ref:t,className:(0,a.Z)(_e.root,S),ownerState:Ke},Pe(Ce),{children:Ze({id:ze,disabled:_,fullWidth:!0,size:"small"===ke?"small":void 0,InputLabelProps:Re(),InputProps:{ref:Ve,className:_e.inputRoot,startAdornment:Xe,endAdornment:(0,h.jsxs)(E,{className:_e.endAdornment,ownerState:Ke,children:[Ge?(0,h.jsx)(D,(0,r.Z)({},Me(),{"aria-label":P,title:P,ownerState:Ke},q.clearIndicator,{className:(0,a.Z)(_e.clearIndicator,null==(o=q.clearIndicator)?void 0:o.className),children:$})):null,Ue?(0,h.jsx)(T,(0,r.Z)({},Le(),{disabled:_,"aria-label":Ne?B:he,title:Ne?B:he,className:(0,a.Z)(_e.popupIndicator),ownerState:Ke,children:xe})):null]})},inputProps:(0,r.Z)({className:(0,a.Z)(_e.input),disabled:_,readOnly:ye},Ie())})})),Ne&&He?(0,h.jsx)(j,{as:ve,className:(0,a.Z)(_e.popper),disablePortal:Q,style:{width:He?He.clientWidth:null},ownerState:Ke,role:"presentation",anchorEl:He,open:!0,children:(0,h.jsxs)(z,(0,r.Z)({ownerState:Ke,as:be},q.paper,{className:(0,a.Z)(_e.paper,null==(c=q.paper)?void 0:c.className),children:[ue&&0===qe.length?(0,h.jsx)(N,{className:_e.loading,ownerState:Ke,children:de}):null,0!==qe.length||te||ue?null:(0,h.jsx)(W,{className:_e.noOptions,ownerState:Ke,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:me}),qe.length>0?(0,h.jsx)(F,(0,r.Z)({as:ce,className:_e.listbox,ownerState:Ke},Ee(),pe,{children:qe.map(((e,t)=>ie?Ye({key:e.key,group:e.group,children:e.options.map(((t,o)=>Je(t,e.index+o)))}):Je(e,t)))})):null]}))}):null]})}))},482:function(e,t,o){o.d(t,{q:function(){return r}});var n=o(8979);function r(e){return(0,n.Z)("MuiAutocomplete",e)}const i=(0,o(6087).Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);t.Z=i},7918:function(e,t,o){o.d(t,{Z:function(){return O}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(1796),c=o(7892),p=o(5893),u=(0,c.Z)((0,p.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),d=o(1705),f=o(8216),m=o(7739),g=o(3616),h=o(1496),b=o(8979);function v(e){return(0,b.Z)("MuiChip",e)}var x=(0,o(6087).Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]);const y=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],w=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:n,clickable:r,onDelete:i,size:a,variant:l}=o;return[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,f.Z)(a)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,f.Z)(n)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,f.Z)(a)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,f.Z)(n)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,f.Z)(a)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,f.Z)(n)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconOutlinedColor${(0,f.Z)(n)}`]},t.root,t[`size${(0,f.Z)(a)}`],t[`color${(0,f.Z)(n)}`],r&&t.clickable,r&&"default"!==n&&t[`clickableColor${(0,f.Z)(n)})`],i&&t.deletable,i&&"default"!==n&&t[`deletableColor${(0,f.Z)(n)}`],t[l],"outlined"===l&&t[`outlined${(0,f.Z)(n)}`]]}})((({theme:e,ownerState:t})=>{const o=(0,s.Fq)(e.palette.text.primary,.26);return(0,r.Z)({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:(0,r.Z)({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${x.deleteIcon}`]:(0,r.Z)({WebkitTapHighlightColor:"transparent",color:o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,s.Fq)(o,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:(0,s.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,r.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,r.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,s.Fq)(e.palette[t.color].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:(0,s.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),Z=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:n}=o;return[t.label,t[`label${(0,f.Z)(n)}`]]}})((({ownerState:e})=>(0,r.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function S(e){return"Backspace"===e.key||"Delete"===e.key}var O=i.forwardRef((function(e,t){const o=(0,g.Z)({props:e,name:"MuiChip"}),{avatar:s,className:c,clickable:h,color:b="default",component:x,deleteIcon:O,disabled:$=!1,icon:k,label:C,onClick:P,onDelete:I,onKeyDown:R,onKeyUp:L,size:M="medium",variant:A="filled"}=o,E=(0,n.Z)(o,y),D=i.useRef(null),T=(0,d.Z)(D,t),j=e=>{e.stopPropagation(),I&&I(e)},z=!(!1===h||!P)||h,N="small"===M,W=z||I?m.Z:x||"div",F=(0,r.Z)({},o,{component:W,disabled:$,size:M,color:b,onDelete:!!I,clickable:z,variant:A}),H=(e=>{const{classes:t,disabled:o,size:n,color:r,onDelete:i,clickable:a,variant:s}=e,c={root:["root",s,o&&"disabled",`size${(0,f.Z)(n)}`,`color${(0,f.Z)(r)}`,a&&"clickable",a&&`clickableColor${(0,f.Z)(r)}`,i&&"deletable",i&&`deletableColor${(0,f.Z)(r)}`,`${s}${(0,f.Z)(r)}`],label:["label",`label${(0,f.Z)(n)}`],avatar:["avatar",`avatar${(0,f.Z)(n)}`,`avatarColor${(0,f.Z)(r)}`],icon:["icon",`icon${(0,f.Z)(n)}`,`iconColor${(0,f.Z)(r)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,f.Z)(n)}`,`deleteIconColor${(0,f.Z)(r)}`,`deleteIconOutlinedColor${(0,f.Z)(r)}`]};return(0,l.Z)(c,v,t)})(F),V=W===m.Z?(0,r.Z)({component:x||"div",focusVisibleClassName:H.focusVisible},I&&{disableRipple:!0}):{};let B=null;if(I){const e=(0,a.Z)("default"!==b&&("outlined"===A?H[`deleteIconOutlinedColor${(0,f.Z)(b)}`]:H[`deleteIconColor${(0,f.Z)(b)}`]),N&&H.deleteIconSmall);B=O&&i.isValidElement(O)?i.cloneElement(O,{className:(0,a.Z)(O.props.className,H.deleteIcon,e),onClick:j}):(0,p.jsx)(u,{className:(0,a.Z)(H.deleteIcon,e),onClick:j})}let q=null;s&&i.isValidElement(s)&&(q=i.cloneElement(s,{className:(0,a.Z)(H.avatar,s.props.className)}));let G=null;return k&&i.isValidElement(k)&&(G=i.cloneElement(k,{className:(0,a.Z)(H.icon,k.props.className)})),(0,p.jsxs)(w,(0,r.Z)({as:W,className:(0,a.Z)(H.root,c),disabled:!(!z||!$)||void 0,onClick:P,onKeyDown:e=>{e.currentTarget===e.target&&S(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&(I&&S(e)?I(e):"Escape"===e.key&&D.current&&D.current.blur()),L&&L(e)},ref:T,ownerState:F},V,E,{children:[q||G,(0,p.jsx)(Z,{className:(0,a.Z)(H.label),ownerState:F,children:C}),B]}))}))},6886:function(e,t,o){o.d(t,{ZP:function(){return Z}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(5408),s=o(9707),c=o(7192),p=o(1496),u=o(3616);var d=i.createContext(),f=o(8979);function m(e){return(0,f.Z)("MuiGrid",e)}const g=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var h=(0,o(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...g.map((e=>`grid-xs-${e}`)),...g.map((e=>`grid-sm-${e}`)),...g.map((e=>`grid-md-${e}`)),...g.map((e=>`grid-lg-${e}`)),...g.map((e=>`grid-xl-${e}`))]),b=o(5893);const v=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function x(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function y(e,t,o={}){if(!t||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[o[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:n,sm:r,md:i,lg:a,xl:l}=e;return[Number(n)>0&&(o[`spacing-xs-${String(n)}`]||`spacing-xs-${String(n)}`),Number(r)>0&&(o[`spacing-sm-${String(r)}`]||`spacing-sm-${String(r)}`),Number(i)>0&&(o[`spacing-md-${String(i)}`]||`spacing-md-${String(i)}`),Number(a)>0&&(o[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(l)>0&&(o[`spacing-xl-${String(l)}`]||`spacing-xl-${String(l)}`)]}const w=(0,p.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{container:o,direction:n,item:r,lg:i,md:a,sm:l,spacing:s,wrap:c,xl:p,xs:u,zeroMinWidth:d}=e.ownerState;return[t.root,o&&t.container,r&&t.item,d&&t.zeroMinWidth,...y(s,o,t),"row"!==n&&t[`direction-xs-${String(n)}`],"wrap"!==c&&t[`wrap-xs-${String(c)}`],!1!==u&&t[`grid-xs-${String(u)}`],!1!==l&&t[`grid-sm-${String(l)}`],!1!==a&&t[`grid-md-${String(a)}`],!1!==i&&t[`grid-lg-${String(i)}`],!1!==p&&t[`grid-xl-${String(p)}`]]}})((({ownerState:e})=>(0,r.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const o=(0,l.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,l.k9)({theme:e},o,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${h.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:o,rowSpacing:n}=t;let r={};if(o&&0!==n){const t=(0,l.P$)({values:n,breakpoints:e.breakpoints.values});r=(0,l.k9)({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{marginTop:`-${x(o)}`,[`& > .${h.item}`]:{paddingTop:x(o)}}:{}}))}return r}),(function({theme:e,ownerState:t}){const{container:o,columnSpacing:n}=t;let r={};if(o&&0!==n){const t=(0,l.P$)({values:n,breakpoints:e.breakpoints.values});r=(0,l.k9)({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${x(o)})`,marginLeft:`-${x(o)}`,[`& > .${h.item}`]:{paddingLeft:x(o)}}:{}}))}return r}),(function({theme:e,ownerState:t}){let o;return e.breakpoints.keys.reduce(((n,i)=>{let a={};if(t[i]&&(o=t[i]),!o)return n;if(!0===o)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===o)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,l.P$)({values:t.columns,breakpoints:e.breakpoints.values}),c="object"===typeof s?s[i]:s;if(void 0===c||null===c)return n;const p=Math.round(o/c*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const o=e.spacing(t.columnSpacing);if("0px"!==o){const e=`calc(${p} + ${x(o)})`;u={flexBasis:e,maxWidth:e}}}a=(0,r.Z)({flexBasis:p,flexGrow:0,maxWidth:p},u)}return 0===e.breakpoints.values[i]?Object.assign(n,a):n[e.breakpoints.up(i)]=a,n}),{})}));var Z=i.forwardRef((function(e,t){const o=(0,u.Z)({props:e,name:"MuiGrid"}),l=(0,s.Z)(o),{className:p,columns:f,columnSpacing:g,component:h="div",container:x=!1,direction:Z="row",item:S=!1,lg:O=!1,md:$=!1,rowSpacing:k,sm:C=!1,spacing:P=0,wrap:I="wrap",xl:R=!1,xs:L=!1,zeroMinWidth:M=!1}=l,A=(0,n.Z)(l,v),E=k||P,D=g||P,T=i.useContext(d),j=f||T||12,z=(0,r.Z)({},l,{columns:j,container:x,direction:Z,item:S,lg:O,md:$,sm:C,rowSpacing:E,columnSpacing:D,wrap:I,xl:R,xs:L,zeroMinWidth:M}),N=(e=>{const{classes:t,container:o,direction:n,item:r,lg:i,md:a,sm:l,spacing:s,wrap:p,xl:u,xs:d,zeroMinWidth:f}=e,g={root:["root",o&&"container",r&&"item",f&&"zeroMinWidth",...y(s,o),"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==p&&`wrap-xs-${String(p)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==l&&`grid-sm-${String(l)}`,!1!==a&&`grid-md-${String(a)}`,!1!==i&&`grid-lg-${String(i)}`,!1!==u&&`grid-xl-${String(u)}`]};return(0,c.Z)(g,m,t)})(z);return W=(0,b.jsx)(w,(0,r.Z)({ownerState:z,className:(0,a.Z)(N.root,p),as:h,ref:t},A)),12!==j?(0,b.jsx)(d.Provider,{value:j,children:W}):W;var W}))},4606:function(e,t,o){o.d(t,{Z:function(){return Ie}});var n=o(7462),r=o(7294),i=o(3366),a=o(67),l=o(6600),s=o(7094);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){return e instanceof c(e).Element||e instanceof Element}function u(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!==typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var f=Math.max,m=Math.min,g=Math.round;function h(e,t){void 0===t&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(u(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(n=g(o.width)/a||1),i>0&&(r=g(o.height)/i||1)}return{width:o.width/n,height:o.height/r,top:o.top/r,right:o.right/n,bottom:o.bottom/r,left:o.left/n,x:o.left/n,y:o.top/r}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return h(x(e)).left+b(e).scrollLeft}function w(e){return c(e).getComputedStyle(e)}function Z(e){var t=w(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function S(e,t,o){void 0===o&&(o=!1);var n=u(t),r=u(t)&&function(e){var t=e.getBoundingClientRect(),o=g(t.width)/e.offsetWidth||1,n=g(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),i=x(t),a=h(e,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!o)&&(("body"!==v(t)||Z(i))&&(l=function(e){return e!==c(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:b(e);var t}(t)),u(t)?((s=h(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=y(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function O(e){var t=h(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function $(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||x(e)}function k(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:u(e)&&Z(e)?e:k($(e))}function C(e,t){var o;void 0===t&&(t=[]);var n=k(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=c(n),a=r?[i].concat(i.visualViewport||[],Z(n)?n:[]):n,l=t.concat(a);return r?l:l.concat(C($(a)))}function P(e){return["table","td","th"].indexOf(v(e))>=0}function I(e){return u(e)&&"fixed"!==w(e).position?e.offsetParent:null}function R(e){for(var t=c(e),o=I(e);o&&P(o)&&"static"===w(o).position;)o=I(o);return o&&("html"===v(o)||"body"===v(o)&&"static"===w(o).position)?t:o||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&u(e)&&"fixed"===w(e).position)return null;for(var o=$(e);u(o)&&["html","body"].indexOf(v(o))<0;){var n=w(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}var L="top",M="bottom",A="right",E="left",D="auto",T=[L,M,A,E],j="start",z="end",N="viewport",W="popper",F=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+z])}),[]),H=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+z])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function q(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),o=0;o=0?"x":"y"}function J(e){var t,o=e.reference,n=e.element,r=e.placement,i=r?X(r):null,a=r?Y(r):null,l=o.x+o.width/2-n.width/2,s=o.y+o.height/2-n.height/2;switch(i){case L:t={x:l,y:o.y-n.height};break;case M:t={x:l,y:o.y+o.height};break;case A:t={x:o.x+o.width,y:s};break;case E:t={x:o.x-n.width,y:s};break;default:t={x:o.x,y:o.y}}var c=i?Q(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case j:t[c]=t[c]-(o[p]/2-n[p]/2);break;case z:t[c]=t[c]+(o[p]/2-n[p]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,o=e.popper,n=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,m=void 0===f?0:f,h=a.y,b=void 0===h?0:h,v="function"===typeof u?u({x:m,y:b}):{x:m,y:b};m=v.x,b=v.y;var y=a.hasOwnProperty("x"),Z=a.hasOwnProperty("y"),S=E,O=L,$=window;if(p){var k=R(o),C="clientHeight",P="clientWidth";if(k===c(o)&&"static"!==w(k=x(o)).position&&"absolute"===l&&(C="scrollHeight",P="scrollWidth"),k=k,r===L||(r===E||r===A)&&i===z)O=M,b-=(d&&$.visualViewport?$.visualViewport.height:k[C])-n.height,b*=s?1:-1;if(r===E||(r===L||r===M)&&i===z)S=A,m-=(d&&$.visualViewport?$.visualViewport.width:k[P])-n.width,m*=s?1:-1}var I,D=Object.assign({position:l},p&&ee),T=!0===u?function(e){var t=e.x,o=e.y,n=window.devicePixelRatio||1;return{x:g(t*n)/n||0,y:g(o*n)/n||0}}({x:m,y:b}):{x:m,y:b};return m=T.x,b=T.y,s?Object.assign({},D,((I={})[O]=Z?"0":"",I[S]=y?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",I)):Object.assign({},D,((t={})[O]=Z?b+"px":"",t[S]=y?m+"px":"",t.transform="",t))}var oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.offset,i=void 0===r?[0,0]:r,a=H.reduce((function(e,o){return e[o]=function(e,t,o){var n=X(e),r=[E,L].indexOf(n)>=0?-1:1,i="function"===typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[E,A].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},ne={left:"right",right:"left",bottom:"top",top:"bottom"};function re(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var ie={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function le(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&d(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t){return t===N?se(function(e){var t=c(e),o=x(e),n=t.visualViewport,r=o.clientWidth,i=o.clientHeight,a=0,l=0;return n&&(r=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,l=n.offsetTop)),{width:r,height:i,x:a+y(e),y:l}}(e)):p(t)?function(e){var t=h(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):se(function(e){var t,o=x(e),n=b(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=f(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=f(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+y(e),s=-n.scrollTop;return"rtl"===w(r||o).direction&&(l+=f(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(x(e)))}function pe(e,t,o){var n="clippingParents"===t?function(e){var t=C($(e)),o=["absolute","fixed"].indexOf(w(e).position)>=0&&u(e)?R(e):e;return p(o)?t.filter((function(e){return p(e)&&le(e,o)&&"body"!==v(e)})):[]}(e):[].concat(t),r=[].concat(n,[o]),i=r[0],a=r.reduce((function(t,o){var n=ce(e,o);return t.top=f(n.top,t.top),t.right=m(n.right,t.right),t.bottom=m(n.bottom,t.bottom),t.left=f(n.left,t.left),t}),ce(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function de(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}function fe(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=void 0===n?e.placement:n,i=o.boundary,a=void 0===i?"clippingParents":i,l=o.rootBoundary,s=void 0===l?N:l,c=o.elementContext,u=void 0===c?W:c,d=o.altBoundary,f=void 0!==d&&d,m=o.padding,g=void 0===m?0:m,b=ue("number"!==typeof g?g:de(g,T)),v=u===W?"reference":W,y=e.rects.popper,w=e.elements[f?v:u],Z=pe(p(w)?w:w.contextElement||x(e.elements.popper),a,s),S=h(e.elements.reference),O=J({reference:S,element:y,strategy:"absolute",placement:r}),$=se(Object.assign({},y,O)),k=u===W?$:S,C={top:Z.top-k.top+b.top,bottom:k.bottom-Z.bottom+b.bottom,left:Z.left-k.left+b.left,right:k.right-Z.right+b.right},P=e.modifiersData.offset;if(u===W&&P){var I=P[r];Object.keys(C).forEach((function(e){var t=[A,M].indexOf(e)>=0?1:-1,o=[L,M].indexOf(e)>=0?"y":"x";C[e]+=I[o]*t}))}return C}function me(e,t,o){return f(e,m(t,o))}var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,c=o.rootBoundary,p=o.altBoundary,u=o.padding,d=o.tether,g=void 0===d||d,h=o.tetherOffset,b=void 0===h?0:h,v=fe(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:p}),x=X(t.placement),y=Y(t.placement),w=!y,Z=Q(x),S="x"===Z?"y":"x",$=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,P="function"===typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,I="number"===typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if($){if(i){var z,N="y"===Z?L:E,W="y"===Z?M:A,F="y"===Z?"height":"width",H=$[Z],V=H+v[N],B=H-v[W],q=g?-C[F]/2:0,G=y===j?k[F]:C[F],U=y===j?-C[F]:-k[F],K=t.elements.arrow,_=g&&K?O(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[N],te=J[W],oe=me(0,k[F],_[F]),ne=w?k[F]/2-q-oe-ee-I.mainAxis:G-oe-ee-I.mainAxis,re=w?-k[F]/2+q+oe+te+I.mainAxis:U+oe+te+I.mainAxis,ie=t.elements.arrow&&R(t.elements.arrow),ae=ie?"y"===Z?ie.clientTop||0:ie.clientLeft||0:0,le=null!=(z=null==D?void 0:D[Z])?z:0,se=H+re-le,ce=me(g?m(V,H+ne-le-ae):V,H,g?f(B,se):B);$[Z]=ce,T[Z]=ce-H}if(l){var pe,ue="x"===Z?L:E,de="x"===Z?M:A,ge=$[S],he="y"===S?"height":"width",be=ge+v[ue],ve=ge-v[de],xe=-1!==[L,E].indexOf(x),ye=null!=(pe=null==D?void 0:D[S])?pe:0,we=xe?be:ge-k[he]-C[he]-ye+I.altAxis,Ze=xe?ge+k[he]+C[he]-ye-I.altAxis:ve,Se=g&&xe?function(e,t,o){var n=me(e,t,o);return n>o?o:n}(we,ge,Ze):me(g?we:be,ge,g?Ze:ve);$[S]=Se,T[S]=Se-ge}t.modifiersData[n]=T}},requiresIfExists:["offset"]};var he={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,n=e.name,r=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=X(o.placement),s=Q(l),c=[E,A].indexOf(l)>=0?"height":"width";if(i&&a){var p=function(e,t){return ue("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:de(e,T))}(r.padding,o),u=O(i),d="y"===s?L:E,f="y"===s?M:A,m=o.rects.reference[c]+o.rects.reference[s]-a[s]-o.rects.popper[c],g=a[s]-o.rects.reference[s],h=R(i),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=m/2-g/2,x=p[d],y=b-u[c]-p[f],w=b/2-u[c]/2+v,Z=me(x,w,y),S=s;o.modifiersData[n]=((t={})[S]=Z,t.centerOffset=Z-w,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&le(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function be(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function ve(e){return[L,A,M,E].some((function(t){return e[t]>=0}))}var xe=K({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,i=void 0===r||r,a=n.resize,l=void 0===a||a,s=c(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(e){e.addEventListener("scroll",o.update,_)})),l&&s.addEventListener("resize",o.update,_),function(){i&&p.forEach((function(e){e.removeEventListener("scroll",o.update,_)})),l&&s.removeEventListener("resize",o.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,c={placement:X(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];u(r)&&v(r)&&(Object.assign(r.style,o),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});u(n)&&v(n)&&(Object.assign(n.style,i),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,c=o.padding,p=o.boundary,u=o.rootBoundary,d=o.altBoundary,f=o.flipVariations,m=void 0===f||f,g=o.allowedAutoPlacements,h=t.options.placement,b=X(h),v=s||(b===h||!m?[re(h)]:function(e){if(X(e)===D)return[];var t=re(e);return[ae(e),t,ae(t)]}(h)),x=[h].concat(v).reduce((function(e,o){return e.concat(X(o)===D?function(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,c=void 0===s?H:s,p=Y(n),u=p?l?F:F.filter((function(e){return Y(e)===p})):T,d=u.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=u);var f=d.reduce((function(t,o){return t[o]=fe(e,{placement:o,boundary:r,rootBoundary:i,padding:a})[X(o)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:o,boundary:p,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:g}):o)}),[]),y=t.rects.reference,w=t.rects.popper,Z=new Map,S=!0,O=x[0],$=0;$=0,R=I?"width":"height",z=fe(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),N=I?P?A:E:P?M:L;y[R]>w[R]&&(N=re(N));var W=re(N),V=[];if(i&&V.push(z[C]<=0),l&&V.push(z[N]<=0,z[W]<=0),V.every((function(e){return e}))){O=k,S=!1;break}Z.set(k,V)}if(S)for(var B=function(e){var t=x.find((function(t){var o=Z.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},q=m?3:1;q>0;q--){if("break"===B(q))break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ge,he,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=fe(t,{elementContext:"reference"}),l=fe(t,{altBoundary:!0}),s=be(a,n),c=be(l,r,i),p=ve(s),u=ve(c);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]}),ye=o(8385),we=o(5893);const Ze=["anchorEl","children","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Se=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Oe(e){return"function"===typeof e?e():e}const $e={},ke=r.forwardRef((function(e,t){const{anchorEl:o,children:s,direction:c,disablePortal:p,modifiers:u,open:d,placement:f,popperOptions:m,popperRef:g,TransitionProps:h}=e,b=(0,i.Z)(e,Ze),v=r.useRef(null),x=(0,a.Z)(v,t),y=r.useRef(null),w=(0,a.Z)(y,g),Z=r.useRef(w);(0,l.Z)((()=>{Z.current=w}),[w]),r.useImperativeHandle(g,(()=>y.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,c),[O,$]=r.useState(S);r.useEffect((()=>{y.current&&y.current.forceUpdate()})),(0,l.Z)((()=>{if(!o||!d)return;Oe(o);let e=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{$(e.placement)}}];null!=u&&(e=e.concat(u)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=xe(Oe(o),v.current,(0,n.Z)({placement:S},m,{modifiers:e}));return Z.current(t),()=>{t.destroy(),Z.current(null)}}),[o,p,u,d,m,S]);const k={placement:O};return null!==h&&(k.TransitionProps=h),(0,we.jsx)("div",(0,n.Z)({ref:x,role:"tooltip"},b,{children:"function"===typeof s?s(k):s}))}));var Ce=r.forwardRef((function(e,t){const{anchorEl:o,children:a,container:l,direction:c="ltr",disablePortal:p=!1,keepMounted:u=!1,modifiers:d,open:f,placement:m="bottom",popperOptions:g=$e,popperRef:h,style:b,transition:v=!1}=e,x=(0,i.Z)(e,Se),[y,w]=r.useState(!0);if(!u&&!f&&(!v||y))return null;const Z=l||(o?(0,s.Z)(Oe(o)).body:void 0);return(0,we.jsx)(ye.Z,{disablePortal:p,container:Z,children:(0,we.jsx)(ke,(0,n.Z)({anchorEl:o,direction:c,disablePortal:p,modifiers:d,ref:t,open:v?!y:f,placement:m,popperOptions:g,popperRef:h},x,{style:(0,n.Z)({position:"fixed",top:0,left:0,display:f||!u||v&&!y?null:"none"},b),TransitionProps:v?{in:f,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:null,children:a}))})})),Pe=o(4168);var Ie=r.forwardRef((function(e,t){const o=(0,Pe.Z)();return(0,we.jsx)(Ce,(0,n.Z)({direction:null==o?void 0:o.direction},e,{ref:t}))}))},6285:function(e,t,o){var n=o(8442);t.Z=e=>!e||!(0,n.Z)(e)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/614-0ce04fd295045ffe.js b/striker-ui/out/_next/static/chunks/614-0ce04fd295045ffe.js new file mode 100644 index 00000000..9090a193 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/614-0ce04fd295045ffe.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[614],{5949:function(e,t,o){"use strict";o.d(t,{D:function(){return p},Z:function(){return f}});var n=o(7462),r=o(7294),i=o(7579),a=o(8925),l=o(3633),s=o(7960);function c(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function p(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:r="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let p=a?l.trim():l;o&&(p=p.toLowerCase()),t&&(p=c(p));const u=e.filter((e=>{let n=(i||s)(e);return o&&(n=n.toLowerCase()),t&&(n=c(n)),"start"===r?0===n.indexOf(p):n.indexOf(p)>-1}));return"number"===typeof n?u.slice(0,n):u}}function u(e,t){for(let o=0;o{var t;return null!=(t=e.label)?t:e}),isOptionEqualToValue:$=((e,t)=>e===t),groupBy:I,handleHomeEndKeys:P=!e.freeSolo,id:R,includeInputInList:L=!1,inputValue:A,multiple:E=!1,onChange:D,onClose:M,onHighlightChange:T,onInputChange:j,onOpen:z,open:N,openOnFocus:W=!1,options:F,readOnly:H=!1,selectOnFocus:V=!e.freeSolo,value:q}=e,B=(0,i.Z)(R);let U=k;U=e=>{const t=k(e);return"string"!==typeof t?String(t):t};const K=r.useRef(!1),G=r.useRef(!0),_=r.useRef(null),X=r.useRef(null),[Y,Q]=r.useState(null),[J,ee]=r.useState(-1),te=o?0:-1,oe=r.useRef(te),[ne,re]=(0,a.Z)({controlled:q,default:b,name:g}),[ie,ae]=(0,a.Z)({controlled:A,default:"",name:g,state:"inputValue"}),[le,se]=r.useState(!1),ce=r.useCallback(((e,t)=>{if(!(E?ne.length{const e=ne!==pe.current;pe.current=ne,le&&!e||C&&!e||ce(null,ne)}),[ne,ce,le,pe,C]);const[ue,de]=(0,a.Z)({controlled:N,default:!1,name:g,state:"open"}),[fe,me]=r.useState(!0),he=!E&&null!=ne&&ie===U(ne),ge=ue&&!H,be=ge?w(F.filter((e=>!O||!(E?ne:[ne]).some((t=>null!==t&&$(e,t))))),{inputValue:he&&fe?"":ie,getOptionLabel:U}):[],ve=ue&&be.length>0&&!H;const ye=(0,l.Z)((e=>{-1===e?_.current.focus():Y.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{E&&J>ne.length-1&&(ee(-1),ye(-1))}),[ne,E,J,ye]);const xe=(0,l.Z)((({event:e,index:t,reason:o="auto"})=>{if(oe.current=t,-1===t?_.current.removeAttribute("aria-activedescendant"):_.current.setAttribute("aria-activedescendant",`${B}-option-${t}`),T&&T(e,-1===t?null:be[t],o),!X.current)return;const n=X.current.querySelector('[role="option"].Mui-focused');n&&(n.classList.remove("Mui-focused"),n.classList.remove("Mui-focusVisible"));const r=X.current.parentElement.querySelector('[role="listbox"]');if(!r)return;if(-1===t)return void(r.scrollTop=0);const i=X.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add("Mui-focused"),"keyboard"===o&&i.classList.add("Mui-focusVisible"),r.scrollHeight>r.clientHeight&&"mouse"!==o)){const e=i,t=r.clientHeight+r.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?r.scrollTop=o-r.clientHeight:e.offsetTop-e.offsetHeight*(I?1.3:0){if(!ge)return;const i=function(e,t){if(!X.current||-1===e)return-1;let o=e;for(;;){if("next"===t&&o===be.length||"previous"===t&&-1===o)return-1;const e=X.current.querySelector(`[data-option-index="${o}"]`),n=!x&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||n))return o;o+="next"===t?1:-1}}((()=>{const e=be.length-1;if("reset"===o)return te;if("start"===o)return 0;if("end"===o)return e;const t=oe.current+o;return t<0?-1===t&&L?-1:Z&&-1!==oe.current||Math.abs(o)>1?0:e:t>e?t===e+1&&L?-1:Z||Math.abs(o)>1?e:0:t})(),n);if(xe({index:i,reason:r,event:e}),t&&"reset"!==o)if(-1===i)_.current.value=ie;else{const e=U(be[i]);_.current.value=e;0===e.toLowerCase().indexOf(ie.toLowerCase())&&ie.length>0&&_.current.setSelectionRange(ie.length,e.length)}})),we=r.useCallback((()=>{if(!ge)return;const e=E?ne[0]:ne;if(0!==be.length&&null!=e){if(X.current)if(null==e)oe.current>=be.length-1?xe({index:be.length-1}):xe({index:oe.current});else{const t=be[oe.current];if(E&&t&&-1!==u(ne,(e=>$(t,e))))return;const o=u(be,(t=>$(t,e)));-1===o?Ze({diff:"reset"}):xe({index:o})}}else Ze({diff:"reset"})}),[be.length,!E&&ne,O,Ze,xe,ge,ie,E]),Oe=(0,l.Z)((e=>{(0,s.Z)(X,e),e&&we()}));r.useEffect((()=>{we()}),[we]);const Ce=e=>{ue||(de(!0),me(!0),z&&z(e))},Se=(e,t)=>{ue&&(de(!1),M&&M(e,t))},ke=(e,t,o,n)=>{if(Array.isArray(ne)){if(ne.length===t.length&&ne.every(((e,o)=>e===t[o])))return}else if(ne===t)return;D&&D(e,t,o,n),re(t)},$e=r.useRef(!1),Ie=(e,t,o="selectOption",n="options")=>{let r=o,i=t;if(E){i=Array.isArray(ne)?ne.slice():[];const e=u(i,(e=>$(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}ce(e,i),ke(e,i,r,{option:t}),y||e.ctrlKey||e.metaKey||Se(e,r),(!0===p||"touch"===p&&$e.current||"mouse"===p&&!$e.current)&&_.current.blur()};const Pe=(e,t)=>{if(!E)return;Se(e,"toggleInput");let o=J;-1===J?""===ie&&"previous"===t&&(o=ne.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ne.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ne.length||"previous"===t&&-1===o)return-1;const e=Y.querySelector(`[data-tag-index="${o}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),ee(o),ye(o)},Re=e=>{K.current=!0,ae(""),j&&j(e,"","clear"),ke(e,E?[]:null,"clear")},Le=e=>o=>{if(e.onKeyDown&&e.onKeyDown(o),!o.defaultMuiPrevented&&(-1!==J&&-1===["ArrowLeft","ArrowRight"].indexOf(o.key)&&(ee(-1),ye(-1)),229!==o.which))switch(o.key){case"Home":ge&&P&&(o.preventDefault(),Ze({diff:"start",direction:"next",reason:"keyboard",event:o}));break;case"End":ge&&P&&(o.preventDefault(),Ze({diff:"end",direction:"previous",reason:"keyboard",event:o}));break;case"PageUp":o.preventDefault(),Ze({diff:-5,direction:"previous",reason:"keyboard",event:o}),Ce(o);break;case"PageDown":o.preventDefault(),Ze({diff:5,direction:"next",reason:"keyboard",event:o}),Ce(o);break;case"ArrowDown":o.preventDefault(),Ze({diff:1,direction:"next",reason:"keyboard",event:o}),Ce(o);break;case"ArrowUp":o.preventDefault(),Ze({diff:-1,direction:"previous",reason:"keyboard",event:o}),Ce(o);break;case"ArrowLeft":Pe(o,"previous");break;case"ArrowRight":Pe(o,"next");break;case"Enter":if(-1!==oe.current&&ge){const e=be[oe.current],n=!!S&&S(e);if(o.preventDefault(),n)return;Ie(o,e,"selectOption"),t&&_.current.setSelectionRange(_.current.value.length,_.current.value.length)}else C&&""!==ie&&!1===he&&(E&&o.preventDefault(),Ie(o,ie,"createOption","freeSolo"));break;case"Escape":ge?(o.preventDefault(),o.stopPropagation(),Se(o,"escape")):h&&(""!==ie||E&&ne.length>0)&&(o.preventDefault(),o.stopPropagation(),Re(o));break;case"Backspace":if(E&&!H&&""===ie&&ne.length>0){const e=-1===J?ne.length-1:J,t=ne.slice();t.splice(e,1),ke(o,t,"removeOption",{option:ne[e]})}}},Ae=e=>{se(!0),W&&!K.current&&Ce(e)},Ee=e=>{null!==X.current&&X.current.parentElement.contains(document.activeElement)?_.current.focus():(se(!1),G.current=!0,K.current=!1,c&&-1!==oe.current&&ge?Ie(e,be[oe.current],"blur"):c&&C&&""!==ie?Ie(e,ie,"blur","freeSolo"):m&&ce(e,ne),Se(e,"blur"))},De=e=>{const t=e.target.value;ie!==t&&(ae(t),me(!1),j&&j(e,t,"input")),""===t?v||E||ke(e,null,"clear"):Ce(e)},Me=e=>{xe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Te=()=>{$e.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ie(e,be[t],"selectOption"),$e.current=!1},ze=e=>t=>{const o=ne.slice();o.splice(e,1),ke(t,o,"removeOption",{option:ne[e]})},Ne=e=>{ue?Se(e,"toggleInput"):Ce(e)},We=e=>{e.target.getAttribute("id")!==B&&e.preventDefault()},Fe=()=>{_.current.focus(),V&&G.current&&_.current.selectionEnd-_.current.selectionStart===0&&_.current.select(),G.current=!1},He=e=>{""!==ie&&ue||Ne(e)};let Ve=C&&ie.length>0;Ve=Ve||(E?ne.length>0:null!==ne);let qe=be;if(I){new Map;qe=be.reduce(((e,t,o)=>{const n=I(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return f&&le&&Ee(),{getRootProps:(e={})=>(0,n.Z)({"aria-owns":ve?`${B}-listbox`:null,role:"combobox","aria-expanded":ve},e,{onKeyDown:Le(e),onMouseDown:We,onClick:Fe}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ie,onBlur:Ee,onFocus:Ae,onChange:De,onMouseDown:He,"aria-activedescendant":ge?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ve?`${B}-listbox`:void 0,autoComplete:"off",ref:_,autoCapitalize:"none",spellCheck:"false"}),getClearProps:()=>({tabIndex:-1,onClick:Re}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ne}),getTagProps:({index:e})=>(0,n.Z)({key:e,"data-tag-index":e,tabIndex:-1},!H&&{onDelete:ze(e)}),getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:Oe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const o=(E?ne:[ne]).some((e=>null!=e&&$(t,e))),n=!!S&&S(t);return{key:U(t),tabIndex:-1,role:"option",id:`${B}-option-${e}`,onMouseOver:Me,onClick:je,onTouchStart:Te,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:B,inputValue:ie,value:ne,dirty:Ve,popupOpen:ge,focused:le||-1!==J,anchorEl:Y,setAnchorEl:Q,focusedTag:J,groupedOptions:qe}}},3554:function(e,t,o){"use strict";o.d(t,{Z:function(){return i}});var n=o(7462),r=o(8442);function i(e,t={},o){return(0,r.Z)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,o)})}},5685:function(e,t,o){"use strict";var n=o(7892),r=o(5893);t.Z=(0,n.Z)((0,r.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")},9890:function(e,t,o){"use strict";o.d(t,{Z:function(){return q}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(5949),c=o(1796),p=o(4606),u=o(1496),d=o(3616),f=o(8216),m=o(8979);function h(e){return(0,m.Z)("MuiListSubheader",e)}(0,o(6087).Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var g=o(5893);const b=["className","color","component","disableGutters","disableSticky","inset"],v=(0,u.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,f.Z)(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,r.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:e.palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:e.palette.background.paper})));var y,x,Z=i.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:s="default",component:c="li",disableGutters:p=!1,disableSticky:u=!1,inset:m=!1}=o,y=(0,n.Z)(o,b),x=(0,r.Z)({},o,{color:s,component:c,disableGutters:p,disableSticky:u,inset:m}),Z=(e=>{const{classes:t,color:o,disableGutters:n,inset:r,disableSticky:i}=e,a={root:["root","default"!==o&&`color${(0,f.Z)(o)}`,!n&&"gutters",r&&"inset",!i&&"sticky"]};return(0,l.Z)(a,h,t)})(x);return(0,g.jsx)(v,(0,r.Z)({as:c,className:(0,a.Z)(Z.root,i),ref:t,ownerState:x},y))})),w=o(5113),O=o(4799),C=o(7918),S=o(7021),k=o(5827),$=o(4656),I=o(4707),P=(0,o(7892).Z)((0,g.jsx)("path",{d:"M19 6.41L17.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"),R=o(224),L=o(482);const A=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],E=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:r,hasPopupIcon:i,inputFocused:a,size:l}=o;return[{[`& .${L.Z.tag}`]:t.tag},{[`& .${L.Z.tag}`]:t[`tagSize${(0,f.Z)(l)}`]},{[`& .${L.Z.inputRoot}`]:t.inputRoot},{[`& .${L.Z.input}`]:t.input},{[`& .${L.Z.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,r&&t.hasClearIcon]}})((({ownerState:e})=>(0,r.Z)({[`&.${L.Z.focused} .${L.Z.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${L.Z.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${L.Z.tag}`]:(0,r.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${L.Z.inputRoot}`]:{flexWrap:"wrap",[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:30},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:56},[`& .${L.Z.input}`]:{width:0,minWidth:30}},[`& .${S.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${S.Z.root}.${k.Z.sizeSmall}`]:{[`& .${S.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$.Z.root}`]:{padding:9,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${L.Z.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${$.Z.root}.${k.Z.sizeSmall}`]:{padding:6,[`& .${L.Z.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${I.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${I.Z.input}`]:{padding:"7px 4px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${I.Z.root}.${k.Z.sizeSmall}`]:{paddingBottom:1,[`& .${I.Z.input}`]:{padding:"2.5px 4px"}},[`& .${k.Z.hiddenLabel}`]:{paddingTop:8},[`& .${L.Z.input}`]:(0,r.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),D=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),M=(0,u.ZP)(O.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),T=(0,u.ZP)(O.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,r.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,r.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),j=(0,u.ZP)(p.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${L.Z.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,r.Z)({zIndex:e.zIndex.modal},t.disablePortal&&{position:"absolute"}))),z=(0,u.ZP)(w.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,r.Z)({},e.typography.body1,{overflow:"auto"}))),N=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),W=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),F=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${L.Z.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${L.Z.focused}`]:{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${L.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},'&[aria-selected="true"]':{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${L.Z.focused}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.palette.action.selected}},[`&.${L.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),H=(0,u.ZP)(Z,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:e.palette.background.paper,top:-8}))),V=(0,u.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${L.Z.option}`]:{paddingLeft:24}});var q=i.forwardRef((function(e,t){var o,c;const u=(0,d.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:m=!1,autoHighlight:h=!1,autoSelect:b=!1,blurOnSelect:v=!1,ChipProps:Z,className:O,clearIcon:S=y||(y=(0,g.jsx)(P,{fontSize:"small"})),clearOnBlur:k=!u.freeSolo,clearOnEscape:$=!1,clearText:I="Clear",closeText:q="Close",componentsProps:B={},defaultValue:U=(u.multiple?[]:null),disableClearable:K=!1,disableCloseOnSelect:G=!1,disabled:_=!1,disabledItemsFocusable:X=!1,disableListWrap:Y=!1,disablePortal:Q=!1,filterSelectedOptions:J=!1,forcePopupIcon:ee="auto",freeSolo:te=!1,fullWidth:oe=!1,getLimitTagsText:ne=(e=>`+${e}`),getOptionLabel:re=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:ie,handleHomeEndKeys:ae=!u.freeSolo,includeInputInList:le=!1,limitTags:se=-1,ListboxComponent:ce="ul",ListboxProps:pe,loading:ue=!1,loadingText:de="Loading\u2026",multiple:fe=!1,noOptionsText:me="No options",openOnFocus:he=!1,openText:ge="Open",PaperComponent:be=w.Z,PopperComponent:ve=p.Z,popupIcon:ye=x||(x=(0,g.jsx)(R.Z,{})),readOnly:xe=!1,renderGroup:Ze,renderInput:we,renderOption:Oe,renderTags:Ce,selectOnFocus:Se=!u.freeSolo,size:ke="medium"}=u,$e=(0,n.Z)(u,A),{getRootProps:Ie,getInputProps:Pe,getInputLabelProps:Re,getPopupIndicatorProps:Le,getClearProps:Ae,getTagProps:Ee,getListboxProps:De,getOptionProps:Me,value:Te,dirty:je,id:ze,popupOpen:Ne,focused:We,focusedTag:Fe,anchorEl:He,setAnchorEl:Ve,inputValue:qe,groupedOptions:Be}=(0,s.Z)((0,r.Z)({},u,{componentName:"Autocomplete"})),Ue=!K&&!_&&je&&!xe,Ke=(!te||!0===ee)&&!1!==ee,Ge=(0,r.Z)({},u,{disablePortal:Q,focused:We,fullWidth:oe,hasClearIcon:Ue,hasPopupIcon:Ke,inputFocused:-1===Fe,popupOpen:Ne,size:ke}),_e=(e=>{const{classes:t,disablePortal:o,focused:n,fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,popupOpen:c,size:p}=e,u={root:["root",n&&"focused",r&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${(0,f.Z)(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(u,L.q,t)})(Ge);let Xe;if(fe&&Te.length>0){const e=e=>(0,r.Z)({className:(0,a.Z)(_e.tag),disabled:_},Ee(e));Xe=Ce?Ce(Te,e):Te.map(((t,o)=>(0,g.jsx)(C.Z,(0,r.Z)({label:re(t),size:ke},e({index:o}),Z))))}if(se>-1&&Array.isArray(Xe)){const e=Xe.length-se;!We&&e>0&&(Xe=Xe.splice(0,se),Xe.push((0,g.jsx)("span",{className:_e.tag,children:ne(e)},Xe.length)))}const Ye=Ze||(e=>(0,g.jsxs)("li",{children:[(0,g.jsx)(H,{className:_e.groupLabel,ownerState:Ge,component:"div",children:e.group}),(0,g.jsx)(V,{className:_e.groupUl,ownerState:Ge,children:e.children})]},e.key)),Qe=Oe||((e,t)=>(0,g.jsx)("li",(0,r.Z)({},e,{children:re(t)}))),Je=(e,t)=>{const o=Me({option:e,index:t});return Qe((0,r.Z)({},o,{className:_e.option}),e,{selected:o["aria-selected"],inputValue:qe})};return(0,g.jsxs)(i.Fragment,{children:[(0,g.jsx)(E,(0,r.Z)({ref:t,className:(0,a.Z)(_e.root,O),ownerState:Ge},Ie($e),{children:we({id:ze,disabled:_,fullWidth:!0,size:"small"===ke?"small":void 0,InputLabelProps:Re(),InputProps:{ref:Ve,className:_e.inputRoot,startAdornment:Xe,endAdornment:(0,g.jsxs)(D,{className:_e.endAdornment,ownerState:Ge,children:[Ue?(0,g.jsx)(M,(0,r.Z)({},Ae(),{"aria-label":I,title:I,ownerState:Ge},B.clearIndicator,{className:(0,a.Z)(_e.clearIndicator,null==(o=B.clearIndicator)?void 0:o.className),children:S})):null,Ke?(0,g.jsx)(T,(0,r.Z)({},Le(),{disabled:_,"aria-label":Ne?q:ge,title:Ne?q:ge,className:(0,a.Z)(_e.popupIndicator),ownerState:Ge,children:ye})):null]})},inputProps:(0,r.Z)({className:(0,a.Z)(_e.input),disabled:_,readOnly:xe},Pe())})})),Ne&&He?(0,g.jsx)(j,{as:ve,className:(0,a.Z)(_e.popper),disablePortal:Q,style:{width:He?He.clientWidth:null},ownerState:Ge,role:"presentation",anchorEl:He,open:!0,children:(0,g.jsxs)(z,(0,r.Z)({ownerState:Ge,as:be},B.paper,{className:(0,a.Z)(_e.paper,null==(c=B.paper)?void 0:c.className),children:[ue&&0===Be.length?(0,g.jsx)(N,{className:_e.loading,ownerState:Ge,children:de}):null,0!==Be.length||te||ue?null:(0,g.jsx)(W,{className:_e.noOptions,ownerState:Ge,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:me}),Be.length>0?(0,g.jsx)(F,(0,r.Z)({as:ce,className:_e.listbox,ownerState:Ge},De(),pe,{children:Be.map(((e,t)=>ie?Ye({key:e.key,group:e.group,children:e.options.map(((t,o)=>Je(t,e.index+o)))}):Je(e,t)))})):null]}))}):null]})}))},482:function(e,t,o){"use strict";o.d(t,{q:function(){return r}});var n=o(8979);function r(e){return(0,n.Z)("MuiAutocomplete",e)}const i=(0,o(6087).Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);t.Z=i},7918:function(e,t,o){"use strict";o.d(t,{Z:function(){return C}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(1796),c=o(7892),p=o(5893),u=(0,c.Z)((0,p.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),d=o(1705),f=o(8216),m=o(7739),h=o(3616),g=o(1496),b=o(8979);function v(e){return(0,b.Z)("MuiChip",e)}var y=(0,o(6087).Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]);const x=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],Z=(0,g.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:n,clickable:r,onDelete:i,size:a,variant:l}=o;return[{[`& .${y.avatar}`]:t.avatar},{[`& .${y.avatar}`]:t[`avatar${(0,f.Z)(a)}`]},{[`& .${y.avatar}`]:t[`avatarColor${(0,f.Z)(n)}`]},{[`& .${y.icon}`]:t.icon},{[`& .${y.icon}`]:t[`icon${(0,f.Z)(a)}`]},{[`& .${y.icon}`]:t[`iconColor${(0,f.Z)(n)}`]},{[`& .${y.deleteIcon}`]:t.deleteIcon},{[`& .${y.deleteIcon}`]:t[`deleteIcon${(0,f.Z)(a)}`]},{[`& .${y.deleteIcon}`]:t[`deleteIconColor${(0,f.Z)(n)}`]},{[`& .${y.deleteIcon}`]:t[`deleteIconOutlinedColor${(0,f.Z)(n)}`]},t.root,t[`size${(0,f.Z)(a)}`],t[`color${(0,f.Z)(n)}`],r&&t.clickable,r&&"default"!==n&&t[`clickableColor${(0,f.Z)(n)})`],i&&t.deletable,i&&"default"!==n&&t[`deletableColor${(0,f.Z)(n)}`],t[l],"outlined"===l&&t[`outlined${(0,f.Z)(n)}`]]}})((({theme:e,ownerState:t})=>{const o=(0,s.Fq)(e.palette.text.primary,.26);return(0,r.Z)({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${y.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${y.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${y.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${y.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${y.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${y.icon}`]:(0,r.Z)({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${y.deleteIcon}`]:(0,r.Z)({WebkitTapHighlightColor:"transparent",color:o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,s.Fq)(o,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:(0,s.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${y.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${y.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,r.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${y.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${y.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,r.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${y.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${y.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${y.avatar}`]:{marginLeft:4},[`& .${y.avatarSmall}`]:{marginLeft:2},[`& .${y.icon}`]:{marginLeft:4},[`& .${y.iconSmall}`]:{marginLeft:2},[`& .${y.deleteIcon}`]:{marginRight:5},[`& .${y.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,s.Fq)(e.palette[t.color].main,.7)}`,[`&.${y.clickable}:hover`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${y.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${y.deleteIcon}`]:{color:(0,s.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),w=(0,g.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:n}=o;return[t.label,t[`label${(0,f.Z)(n)}`]]}})((({ownerState:e})=>(0,r.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function O(e){return"Backspace"===e.key||"Delete"===e.key}var C=i.forwardRef((function(e,t){const o=(0,h.Z)({props:e,name:"MuiChip"}),{avatar:s,className:c,clickable:g,color:b="default",component:y,deleteIcon:C,disabled:S=!1,icon:k,label:$,onClick:I,onDelete:P,onKeyDown:R,onKeyUp:L,size:A="medium",variant:E="filled"}=o,D=(0,n.Z)(o,x),M=i.useRef(null),T=(0,d.Z)(M,t),j=e=>{e.stopPropagation(),P&&P(e)},z=!(!1===g||!I)||g,N="small"===A,W=z||P?m.Z:y||"div",F=(0,r.Z)({},o,{component:W,disabled:S,size:A,color:b,onDelete:!!P,clickable:z,variant:E}),H=(e=>{const{classes:t,disabled:o,size:n,color:r,onDelete:i,clickable:a,variant:s}=e,c={root:["root",s,o&&"disabled",`size${(0,f.Z)(n)}`,`color${(0,f.Z)(r)}`,a&&"clickable",a&&`clickableColor${(0,f.Z)(r)}`,i&&"deletable",i&&`deletableColor${(0,f.Z)(r)}`,`${s}${(0,f.Z)(r)}`],label:["label",`label${(0,f.Z)(n)}`],avatar:["avatar",`avatar${(0,f.Z)(n)}`,`avatarColor${(0,f.Z)(r)}`],icon:["icon",`icon${(0,f.Z)(n)}`,`iconColor${(0,f.Z)(r)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,f.Z)(n)}`,`deleteIconColor${(0,f.Z)(r)}`,`deleteIconOutlinedColor${(0,f.Z)(r)}`]};return(0,l.Z)(c,v,t)})(F),V=W===m.Z?(0,r.Z)({component:y||"div",focusVisibleClassName:H.focusVisible},P&&{disableRipple:!0}):{};let q=null;if(P){const e=(0,a.Z)("default"!==b&&("outlined"===E?H[`deleteIconOutlinedColor${(0,f.Z)(b)}`]:H[`deleteIconColor${(0,f.Z)(b)}`]),N&&H.deleteIconSmall);q=C&&i.isValidElement(C)?i.cloneElement(C,{className:(0,a.Z)(C.props.className,H.deleteIcon,e),onClick:j}):(0,p.jsx)(u,{className:(0,a.Z)(H.deleteIcon,e),onClick:j})}let B=null;s&&i.isValidElement(s)&&(B=i.cloneElement(s,{className:(0,a.Z)(H.avatar,s.props.className)}));let U=null;return k&&i.isValidElement(k)&&(U=i.cloneElement(k,{className:(0,a.Z)(H.icon,k.props.className)})),(0,p.jsxs)(Z,(0,r.Z)({as:W,className:(0,a.Z)(H.root,c),disabled:!(!z||!S)||void 0,onClick:I,onKeyDown:e=>{e.currentTarget===e.target&&O(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&(P&&O(e)?P(e):"Escape"===e.key&&M.current&&M.current.blur()),L&&L(e)},ref:T,ownerState:F},V,D,{children:[B||U,(0,p.jsx)(w,{className:(0,a.Z)(H.label),ownerState:F,children:$}),q]}))}))},4606:function(e,t,o){"use strict";o.d(t,{Z:function(){return Pe}});var n=o(7462),r=o(7294),i=o(3366),a=o(67),l=o(6600),s=o(7094);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){return e instanceof c(e).Element||e instanceof Element}function u(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!==typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var f=Math.max,m=Math.min,h=Math.round;function g(e,t){void 0===t&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(u(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(n=h(o.width)/a||1),i>0&&(r=h(o.height)/i||1)}return{width:o.width/n,height:o.height/r,top:o.top/r,right:o.right/n,bottom:o.bottom/r,left:o.left/n,x:o.left/n,y:o.top/r}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v(e){return e?(e.nodeName||"").toLowerCase():null}function y(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return g(y(e)).left+b(e).scrollLeft}function Z(e){return c(e).getComputedStyle(e)}function w(e){var t=Z(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function O(e,t,o){void 0===o&&(o=!1);var n=u(t),r=u(t)&&function(e){var t=e.getBoundingClientRect(),o=h(t.width)/e.offsetWidth||1,n=h(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),i=y(t),a=g(e,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!o)&&(("body"!==v(t)||w(i))&&(l=function(e){return e!==c(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:b(e);var t}(t)),u(t)?((s=g(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=x(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function C(e){var t=g(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function S(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||y(e)}function k(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:u(e)&&w(e)?e:k(S(e))}function $(e,t){var o;void 0===t&&(t=[]);var n=k(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=c(n),a=r?[i].concat(i.visualViewport||[],w(n)?n:[]):n,l=t.concat(a);return r?l:l.concat($(S(a)))}function I(e){return["table","td","th"].indexOf(v(e))>=0}function P(e){return u(e)&&"fixed"!==Z(e).position?e.offsetParent:null}function R(e){for(var t=c(e),o=P(e);o&&I(o)&&"static"===Z(o).position;)o=P(o);return o&&("html"===v(o)||"body"===v(o)&&"static"===Z(o).position)?t:o||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&u(e)&&"fixed"===Z(e).position)return null;for(var o=S(e);u(o)&&["html","body"].indexOf(v(o))<0;){var n=Z(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}var L="top",A="bottom",E="right",D="left",M="auto",T=[L,A,E,D],j="start",z="end",N="viewport",W="popper",F=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+z])}),[]),H=[].concat(T,[M]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+z])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function B(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),o=0;o=0?"x":"y"}function J(e){var t,o=e.reference,n=e.element,r=e.placement,i=r?X(r):null,a=r?Y(r):null,l=o.x+o.width/2-n.width/2,s=o.y+o.height/2-n.height/2;switch(i){case L:t={x:l,y:o.y-n.height};break;case A:t={x:l,y:o.y+o.height};break;case E:t={x:o.x+o.width,y:s};break;case D:t={x:o.x-n.width,y:s};break;default:t={x:o.x,y:o.y}}var c=i?Q(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case j:t[c]=t[c]-(o[p]/2-n[p]/2);break;case z:t[c]=t[c]+(o[p]/2-n[p]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,o=e.popper,n=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,m=void 0===f?0:f,g=a.y,b=void 0===g?0:g,v="function"===typeof u?u({x:m,y:b}):{x:m,y:b};m=v.x,b=v.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),O=D,C=L,S=window;if(p){var k=R(o),$="clientHeight",I="clientWidth";if(k===c(o)&&"static"!==Z(k=y(o)).position&&"absolute"===l&&($="scrollHeight",I="scrollWidth"),k=k,r===L||(r===D||r===E)&&i===z)C=A,b-=(d&&S.visualViewport?S.visualViewport.height:k[$])-n.height,b*=s?1:-1;if(r===D||(r===L||r===A)&&i===z)O=E,m-=(d&&S.visualViewport?S.visualViewport.width:k[I])-n.width,m*=s?1:-1}var P,M=Object.assign({position:l},p&&ee),T=!0===u?function(e){var t=e.x,o=e.y,n=window.devicePixelRatio||1;return{x:h(t*n)/n||0,y:h(o*n)/n||0}}({x:m,y:b}):{x:m,y:b};return m=T.x,b=T.y,s?Object.assign({},M,((P={})[C]=w?"0":"",P[O]=x?"0":"",P.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",P)):Object.assign({},M,((t={})[C]=w?b+"px":"",t[O]=x?m+"px":"",t.transform="",t))}var oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.offset,i=void 0===r?[0,0]:r,a=H.reduce((function(e,o){return e[o]=function(e,t,o){var n=X(e),r=[D,L].indexOf(n)>=0?-1:1,i="function"===typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[D,E].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},ne={left:"right",right:"left",bottom:"top",top:"bottom"};function re(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var ie={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function le(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&d(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t){return t===N?se(function(e){var t=c(e),o=y(e),n=t.visualViewport,r=o.clientWidth,i=o.clientHeight,a=0,l=0;return n&&(r=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,l=n.offsetTop)),{width:r,height:i,x:a+x(e),y:l}}(e)):p(t)?function(e){var t=g(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):se(function(e){var t,o=y(e),n=b(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=f(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=f(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+x(e),s=-n.scrollTop;return"rtl"===Z(r||o).direction&&(l+=f(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(y(e)))}function pe(e,t,o){var n="clippingParents"===t?function(e){var t=$(S(e)),o=["absolute","fixed"].indexOf(Z(e).position)>=0&&u(e)?R(e):e;return p(o)?t.filter((function(e){return p(e)&&le(e,o)&&"body"!==v(e)})):[]}(e):[].concat(t),r=[].concat(n,[o]),i=r[0],a=r.reduce((function(t,o){var n=ce(e,o);return t.top=f(n.top,t.top),t.right=m(n.right,t.right),t.bottom=m(n.bottom,t.bottom),t.left=f(n.left,t.left),t}),ce(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function de(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}function fe(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=void 0===n?e.placement:n,i=o.boundary,a=void 0===i?"clippingParents":i,l=o.rootBoundary,s=void 0===l?N:l,c=o.elementContext,u=void 0===c?W:c,d=o.altBoundary,f=void 0!==d&&d,m=o.padding,h=void 0===m?0:m,b=ue("number"!==typeof h?h:de(h,T)),v=u===W?"reference":W,x=e.rects.popper,Z=e.elements[f?v:u],w=pe(p(Z)?Z:Z.contextElement||y(e.elements.popper),a,s),O=g(e.elements.reference),C=J({reference:O,element:x,strategy:"absolute",placement:r}),S=se(Object.assign({},x,C)),k=u===W?S:O,$={top:w.top-k.top+b.top,bottom:k.bottom-w.bottom+b.bottom,left:w.left-k.left+b.left,right:k.right-w.right+b.right},I=e.modifiersData.offset;if(u===W&&I){var P=I[r];Object.keys($).forEach((function(e){var t=[E,A].indexOf(e)>=0?1:-1,o=[L,A].indexOf(e)>=0?"y":"x";$[e]+=P[o]*t}))}return $}function me(e,t,o){return f(e,m(t,o))}var he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,c=o.rootBoundary,p=o.altBoundary,u=o.padding,d=o.tether,h=void 0===d||d,g=o.tetherOffset,b=void 0===g?0:g,v=fe(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:p}),y=X(t.placement),x=Y(t.placement),Z=!x,w=Q(y),O="x"===w?"y":"x",S=t.modifiersData.popperOffsets,k=t.rects.reference,$=t.rects.popper,I="function"===typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,P="number"===typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(S){if(i){var z,N="y"===w?L:D,W="y"===w?A:E,F="y"===w?"height":"width",H=S[w],V=H+v[N],q=H-v[W],B=h?-$[F]/2:0,U=x===j?k[F]:$[F],K=x===j?-$[F]:-k[F],G=t.elements.arrow,_=h&&G?C(G):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[N],te=J[W],oe=me(0,k[F],_[F]),ne=Z?k[F]/2-B-oe-ee-P.mainAxis:U-oe-ee-P.mainAxis,re=Z?-k[F]/2+B+oe+te+P.mainAxis:K+oe+te+P.mainAxis,ie=t.elements.arrow&&R(t.elements.arrow),ae=ie?"y"===w?ie.clientTop||0:ie.clientLeft||0:0,le=null!=(z=null==M?void 0:M[w])?z:0,se=H+re-le,ce=me(h?m(V,H+ne-le-ae):V,H,h?f(q,se):q);S[w]=ce,T[w]=ce-H}if(l){var pe,ue="x"===w?L:D,de="x"===w?A:E,he=S[O],ge="y"===O?"height":"width",be=he+v[ue],ve=he-v[de],ye=-1!==[L,D].indexOf(y),xe=null!=(pe=null==M?void 0:M[O])?pe:0,Ze=ye?be:he-k[ge]-$[ge]-xe+P.altAxis,we=ye?he+k[ge]+$[ge]-xe-P.altAxis:ve,Oe=h&&ye?function(e,t,o){var n=me(e,t,o);return n>o?o:n}(Ze,he,we):me(h?Ze:be,he,h?we:ve);S[O]=Oe,T[O]=Oe-he}t.modifiersData[n]=T}},requiresIfExists:["offset"]};var ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,n=e.name,r=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=X(o.placement),s=Q(l),c=[D,E].indexOf(l)>=0?"height":"width";if(i&&a){var p=function(e,t){return ue("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:de(e,T))}(r.padding,o),u=C(i),d="y"===s?L:D,f="y"===s?A:E,m=o.rects.reference[c]+o.rects.reference[s]-a[s]-o.rects.popper[c],h=a[s]-o.rects.reference[s],g=R(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=p[d],x=b-u[c]-p[f],Z=b/2-u[c]/2+v,w=me(y,Z,x),O=s;o.modifiersData[n]=((t={})[O]=w,t.centerOffset=w-Z,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&le(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function be(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function ve(e){return[L,E,A,D].some((function(t){return e[t]>=0}))}var ye=G({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,i=void 0===r||r,a=n.resize,l=void 0===a||a,s=c(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(e){e.addEventListener("scroll",o.update,_)})),l&&s.addEventListener("resize",o.update,_),function(){i&&p.forEach((function(e){e.removeEventListener("scroll",o.update,_)})),l&&s.removeEventListener("resize",o.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,c={placement:X(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];u(r)&&v(r)&&(Object.assign(r.style,o),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});u(n)&&v(n)&&(Object.assign(n.style,i),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,c=o.padding,p=o.boundary,u=o.rootBoundary,d=o.altBoundary,f=o.flipVariations,m=void 0===f||f,h=o.allowedAutoPlacements,g=t.options.placement,b=X(g),v=s||(b===g||!m?[re(g)]:function(e){if(X(e)===M)return[];var t=re(e);return[ae(e),t,ae(t)]}(g)),y=[g].concat(v).reduce((function(e,o){return e.concat(X(o)===M?function(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,c=void 0===s?H:s,p=Y(n),u=p?l?F:F.filter((function(e){return Y(e)===p})):T,d=u.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=u);var f=d.reduce((function(t,o){return t[o]=fe(e,{placement:o,boundary:r,rootBoundary:i,padding:a})[X(o)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:o,boundary:p,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:h}):o)}),[]),x=t.rects.reference,Z=t.rects.popper,w=new Map,O=!0,C=y[0],S=0;S=0,R=P?"width":"height",z=fe(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),N=P?I?E:D:I?A:L;x[R]>Z[R]&&(N=re(N));var W=re(N),V=[];if(i&&V.push(z[$]<=0),l&&V.push(z[N]<=0,z[W]<=0),V.every((function(e){return e}))){C=k,O=!1;break}w.set(k,V)}if(O)for(var q=function(e){var t=y.find((function(t){var o=w.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},B=m?3:1;B>0;B--){if("break"===q(B))break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},he,ge,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=fe(t,{elementContext:"reference"}),l=fe(t,{altBoundary:!0}),s=be(a,n),c=be(l,r,i),p=ve(s),u=ve(c);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]}),xe=o(8385),Ze=o(5893);const we=["anchorEl","children","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Oe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Ce(e){return"function"===typeof e?e():e}const Se={},ke=r.forwardRef((function(e,t){const{anchorEl:o,children:s,direction:c,disablePortal:p,modifiers:u,open:d,placement:f,popperOptions:m,popperRef:h,TransitionProps:g}=e,b=(0,i.Z)(e,we),v=r.useRef(null),y=(0,a.Z)(v,t),x=r.useRef(null),Z=(0,a.Z)(x,h),w=r.useRef(Z);(0,l.Z)((()=>{w.current=Z}),[Z]),r.useImperativeHandle(h,(()=>x.current),[]);const O=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,c),[C,S]=r.useState(O);r.useEffect((()=>{x.current&&x.current.forceUpdate()})),(0,l.Z)((()=>{if(!o||!d)return;Ce(o);let e=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{S(e.placement)}}];null!=u&&(e=e.concat(u)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=ye(Ce(o),v.current,(0,n.Z)({placement:O},m,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[o,p,u,d,m,O]);const k={placement:C};return null!==g&&(k.TransitionProps=g),(0,Ze.jsx)("div",(0,n.Z)({ref:y,role:"tooltip"},b,{children:"function"===typeof s?s(k):s}))}));var $e=r.forwardRef((function(e,t){const{anchorEl:o,children:a,container:l,direction:c="ltr",disablePortal:p=!1,keepMounted:u=!1,modifiers:d,open:f,placement:m="bottom",popperOptions:h=Se,popperRef:g,style:b,transition:v=!1}=e,y=(0,i.Z)(e,Oe),[x,Z]=r.useState(!0);if(!u&&!f&&(!v||x))return null;const w=l||(o?(0,s.Z)(Ce(o)).body:void 0);return(0,Ze.jsx)(xe.Z,{disablePortal:p,container:w,children:(0,Ze.jsx)(ke,(0,n.Z)({anchorEl:o,direction:c,disablePortal:p,modifiers:d,ref:t,open:v?!x:f,placement:m,popperOptions:h,popperRef:g},y,{style:(0,n.Z)({position:"fixed",top:0,left:0,display:f||!u||v&&!x?null:"none"},b),TransitionProps:v?{in:f,onEnter:()=>{Z(!1)},onExited:()=>{Z(!0)}}:null,children:a}))})})),Ie=o(4168);var Pe=r.forwardRef((function(e,t){const o=(0,Ie.Z)();return(0,Ze.jsx)($e,(0,n.Z)({direction:null==o?void 0:o.direction},e,{ref:t}))}))},6285:function(e,t,o){"use strict";var n=o(8442);t.Z=e=>!e||!(0,n.Z)(e)},1163:function(e,t,o){e.exports=o(387)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/692-59a4ae2829590f4c.js b/striker-ui/out/_next/static/chunks/692-59a4ae2829590f4c.js new file mode 100644 index 00000000..51f20d62 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/692-59a4ae2829590f4c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[692],{1939:function(e,n,t){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 u(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",s={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,f=c(e,["colour","sx"]);return(0,r.jsx)(o.Z,u({},f,{className:s[t],sx:u((n={borderRadius:i.n_,height:"100%",width:"1.4em"},a(n,"&.".concat(s.ok),{backgroundColor:i.Ej}),a(n,"&.".concat(s.warning),{backgroundColor:i.Wd}),a(n,"&.".concat(s.error),{backgroundColor:i.hM}),a(n,"&.".concat(s.off),{backgroundColor:i.s7}),n),l)}))}},5741:function(e,n,t){var r=t(5893),o=t(1714),i=t(122),a=t(7169),u=t(4690);function c(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}n.Z=function(e){var n=e.children,t=e.sx,c=s(e,["children","sx"]);return(0,r.jsx)(i.Z,l({underline:"hover",variant:"subtitle1"},c,{sx:l({color:a.lD,textDecorationColor:a.s7},t),children:(0,r.jsxs)(u.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},8461:function(e,n,t){t.d(n,{Z:function(){return fe}});var r=t(5893),o=t(7357),i=t(2734),a=t(8396),u=t(6239),c=t(9699),l=t(2026),s=t(5537),f=t(2428),d=t(2275),p=t(3490),v=t(8951),m=t(7294),b=t(5934),g=t(2029),y=t(7169),h=t(3106),w=t(1250),x=t(4390),k=t(4799),I=t(1939),j=t(7750);function C(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 U=function(e){var n=e.isFloating,t=e.networkInterface,i=t.networkInterfaceName,a=t.networkInterfaceState,u=e.onClose,c=e.sx,l=M(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,c)},l,{children:[(0,r.jsx)(I.Z,{colour:"up"===a?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.Ac,{text:i}),u&&(0,r.jsx)(k.Z,{onClick:u,size:"small",sx:{color:y.s7},children:(0,r.jsx)(s.Z,{})})]}))};U.defaultProps={isFloating:!1,onClose:void 0};var Z=U,D=(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"}}})),S=t(4690),P=t(1770),A=t(1706),N=t(9099),R=t(7869),E=t(6284),T=t(3679),F=t(1905),L=t(7783),V=t(2152),H=function(e){for(var n=0,t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t :not(:first-child)":{marginLeft:".5em"}},children:[(0,r.jsx)(I.Z,{colour:"up"===t?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.KI,{text:i})]})},sortComparator:function(e,n){return H(e)-H(n)}},{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.createDropMouseUpHandler,t=e.getNetworkTypeCount,u=e.hostDetail,c=(void 0===u?{}:u).hostType,l=e.networkIndex,d=e.networkInput,p=e.networkInterfaceCount,v=e.networkInterfaceInputMap,b=e.removeNetwork,g=e.setMessageRe,w=e.setNetworkInputs,x=e.setNetworkInterfaceInputMap,k=e.testInput,I=e.testInputToToggleSubmitDisabled,C=(0,i.Z)(),O=(0,a.Z)(C.breakpoints.up("md")),M=(0,a.Z)(C.breakpoints.up("lg")),U=(0,m.useRef)({}),S=(0,m.useRef)({}),P=d.inputUUID,R=d.interfaces,F=d.ipAddress,V=d.isRequired,H=d.subnetMask,q=d.type,_=d.typeCount,X=(0,m.useMemo)((function(){return ue(P)}),[P]),$=(0,m.useMemo)((function(){return ne(X)}),[X]),z=(0,m.useMemo)((function(){return te(X)}),[X]),K=(0,m.useMemo)((function(){return oe(X)}),[X]),Y=(0,m.useMemo)((function(){return ie(X)}),[X]),Q=(0,m.useMemo)((function(){return"node"===c}),[c]),ee=(0,m.useMemo)((function(){return!Q&&p<=2?[1]:ae}),[Q,p]),re=(0,m.useMemo)((function(){var e=h.Z.bcn,n=h.Z.ifn,t=h.Z.mn,r=h.Z.sn;return Q&&p>=8?{bcn:e,ifn:n,mn:t,sn:r}:{bcn:e,ifn:n,sn:r}}),[Q,p]);return(0,m.useEffect)((function(){var e=d.ipAddressInputRef,n=d.subnetMaskInputRef;e===U&&n===S||(d.ipAddressInputRef=U,d.subnetMaskInputRef=S,w((function(e){return W(e)})))}),[d,w]),(0,r.jsxs)(T.Lg,{children:[(0,r.jsxs)(T.CH,{children:[(0,r.jsx)(L.Z,{id:"network-".concat(P,"-name"),isReadOnly:V,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(re).map((function(e){var n=J(e,2),r=n[0],o=n[1],i=t(r,{lastIndex:l});return r!==q&&(i+=1),{value:r,displayValue:"".concat(o," ").concat(i)}})),selectProps:{onChange:function(e){var n=e.target.value,r=String(n);d.type=r;var o=t(r,{lastIndex:l});d.typeCount=o,d.name="".concat(h.Z[r]," ").concat(o),w((function(e){return W(e)}))},renderValue:M?void 0:function(e){return"".concat(String(e).toUpperCase()," ").concat(_)},value:q}}),!V&&(0,r.jsx)(A.Z,{onClick:function(){b(l)},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:[ee.map((function(e){var t="Link ".concat(e),i=e-1,a=R[i],u=(null!==a&&void 0!==a?a:{}).networkInterfaceUUID,c=void 0===u?"":u,l=O?(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:t}),(0,r.jsx)(D,{onMouseUp:function(){for(var e=arguments.length,t=new Array(e),r=0;r=Ie.length||Object.values(H).every((function(e){return e.isApplied}))||"node"===I&&Ie.length<=6}),[I,ae,Ie,H]),Oe=(0,m.useMemo)((function(){return c&&!l}),[c,l]),Me=(0,m.useCallback)((function(e,n){var t;return null===(t=we.current.setMessage)||void 0===t?void 0:t.call(null,e,n)}),[]),Ue=(0,m.useCallback)((function(e,n){var t;return null===(t=we.current.setMessageRe)||void 0===t?void 0:t.call(null,e,n)}),[]),Ze=(0,m.useCallback)((function(e){return Me(Q,e)}),[Me]),De=(0,m.useCallback)((function(e){return Me(ee,e)}),[Me]),Se=(0,m.useCallback)((function(e){var n,t=e.fn,r=void 0===t?"every":t,o=e.ip,i=void 0===o?"":o,a=e.mask,u=void 0===a?"":a,c=e.isNegateMatch,l=void 0===c?"every"===r:c,s=e.onMatch,f=e.onMiss,d=e.skipUUID,p="every"===r;try{n=new v.Netmask("".concat(i,"/").concat(u))}catch(m){}return ae[r]((function(e){var t,r,o=e.inputUUID,a=e.ipAddressInputRef,u=e.subnetMaskInputRef;if(o===d)return p;var c=null===(t=null===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null),b=null===(r=null===u||void 0===u?void 0:u.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 v.Netmask("".concat(c,"/").concat(b)),{b:n,bIP:i})}catch(m){}return g?null===s||void 0===s||s.call(null,e):null===f||void 0===f||f.call(null,e),l?!g:g}))}),[ae]),Pe=(0,m.useCallback)((function(e){x.Z.put("/init/set-map-network",{value:e}).catch((function(n){var t=(0,P.Z)(n);t.children=(0,r.jsxs)(r.Fragment,{children:["Failed to ",e?"enable":"disable"," network mapping."," ",t.children]}),Me("api",t)}))}),[Me]),Ae=(0,m.useMemo)((function(){var e,n=(B(e={},Q,{defaults:{getValue:function(){var e;return null===(e=ge.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Ze()}},tests:[{onFailure:function(){Ze({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 w.ah.test(n)}},{test:q.HJ}]}),B(e,ee,{defaults:{getValue:function(){var e;return null===(e=ye.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){De()}},tests:[{onFailure:function(){De({children:"Gateway should be a valid IPv4 address."})},test:function(e){var n=e.value;return w.tf.test(n)}},{test:function(e){var n=e.value,t=!0,r=Se({fn:"some",ip:n,onMatch:function(e){var r=e.ipAddress,o=e.name,i=e.type,a=e.typeCount;if(n===r)return t=!1,void De({children:"Gateway cannot be the same as IP address in ".concat(o,".")});be("".concat(i).concat(a))}});return r||De({children:"Gateway must be in one network's subnet."}),r&&t}},{test:q.HJ}]}),e);return ae.forEach((function(e){var t,r,o=e.inputUUID,i=e.interfaces,a=e.ipAddressInputRef,u=e.name,c=e.subnetMaskInputRef,l=ue(o),s=ne(l),f=te(l),d=oe(l),p=function(e){return Me(s,e)},v=function(e){return Me(f,e)},m=function(e){return Me(d,e)},b=function(e,n,t){var r,o="".concat(ie(l),"-").concat(n),i="".concat(ie(ue(n)),"-").concat(e);Me((null===(r=we.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===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null):n,l=e.mask,s=void 0===l?null===(r=null===c||void 0===c?void 0:c.current.getValue)||void 0===r?void 0:r.call(null):l;return Se({ip:i,mask:s,onMatch:function(e){var n=e.inputUUID,t=e.name;b(o,n,{children:'"'.concat(u,'" and "').concat(t,'" cannot be in the same subnet.')})},onMiss:function(e){var n=e.inputUUID;b(o,n)},skipUUID:o})};n[s]={defaults:{getCompare:function(){return i.map((function(e){return void 0!==e}))},onSuccess:function(){p()}},tests:[{onFailure:function(){p({children:"".concat(u," must have at least 1 interface.")})},test:function(e){return e.compare.some((function(e){return e}))}},{onFailure:function(){p({children:"".concat(u," must have a Link 1 interface.")})},test:function(e){var n=J(e.compare,2),t=n[0];return!(n[1]&&!t)}}]},n[f]={defaults:{getValue:function(){var e;return null===(e=null===a||void 0===a?void 0:a.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){v()}},tests:[{onFailure:function(){v({children:"IP address in ".concat(u," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return w.tf.test(n)}},{test:function(e){var n=e.value;return g({ip:n})}},{test:q.HJ}]},n[re(l)]={defaults:{value:u},tests:[{test:q.HJ}]},n[d]={defaults:{getValue:function(){var e;return null===(e=null===c||void 0===c?void 0:c.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){m()}},tests:[{onFailure:function(){m({children:"Subnet mask in ".concat(u," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return w.tf.test(n)}},{test:function(e){var n=e.value;return g({mask:n})}},{test:q.HJ}]}})),n}),[ae,Ze,De,Me,Se]),Ne=(0,m.useMemo)((function(){return(0,q.LT)(Ae)}),[Ae]),Re=(0,m.useCallback)((function(e){null===s||void 0===s||s.call(null,Ne(G({isIgnoreOnCallbacks:!0,isTestAll:!0},e)))}),[Ne,s]),Ee=(0,m.useCallback)((function(){pe(void 0)}),[]),Te=(0,m.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.inputUUID,t=void 0===n?(0,b.Z)():n,r=e.interfaces,o=void 0===r?W(z):r,i=e.ipAddress,a=void 0===i?"":i,u=e.name,c=void 0===u?"Unknown Network":u,l=e.subnetMask,f=void 0===l?"":l,d=e.type,p=void 0===d?"":d,v=e.typeCount,m=void 0===v?0:v;ae.unshift({inputUUID:t,interfaces:o,ipAddress:a,name:c,subnetMask:f,type:p,typeCount:m}),null===s||void 0===s||s.call(null,!1),se(W(ae))}),[ae,s]),Fe=(0,m.useCallback)((function(e){var n=J(ae.splice(e,1),1)[0],t=n.inputUUID;n.interfaces.forEach((function(e){if(void 0!==e){var n=e.networkInterfaceUUID;H[n].isApplied=!1}})),Re({excludeTestIdsRe:RegExp(t)}),se(W(ae)),_((function(e){return G({},e)}))}),[ae,H,Re]),Le=(0,m.useCallback)((function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.inputs,r=void 0===t?ae:t,o=n.lastIndex,i=void 0===o?0:o,a=0,u=r.length-1;u>=i;u-=1)r[u].type===e&&(a+=1);return a}),[ae]),Ve=(0,m.useMemo)((function(){if(void 0!==de){var e=de.networkInterfaceUUID;return function(n,t){return function(){var r,o=(null!==(r=n[t])&&void 0!==r?r:{}).networkInterfaceUUID;o&&o!==e&&(H[o].isApplied=!1),n[t]=de,H[e].isApplied=!0}}}}),[de,H]),He=(0,m.useMemo)((function(){return de?{cursor:"grabbing",userSelect:"none"}:{}}),[de]),qe=(0,m.useMemo)((function(){if(void 0===de)return(0,r.jsx)(r.Fragment,{});var e=D.x,n=D.y;return(0,r.jsx)(Z,{isFloating:!0,networkInterface:de,sx:{left:"calc(".concat(e,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})}),[D,de]),_e=(0,m.useMemo)((function(){return de?function(){Ee()}:void 0}),[Ee,de]),Be=(0,m.useMemo)((function(){return de?function(e){var n=e.currentTarget,t=e.nativeEvent,r=t.clientX,o=t.clientY,i=n.getBoundingClientRect(),a=i.left,u=i.top;T({x:r-a,y:o-u})}:void 0}),[de]),Ge=(0,m.useMemo)((function(){return de?function(){Ee()}:void 0}),[Ee,de]);(0,m.useEffect)((function(){if([Object.keys(H).length>0,c,l,he.current,ge.current,ye.current].every((function(e){return Boolean(e)}))){var e,n;he.current=!1;var t=l.dns,r=l.gateway,o=l.gatewayInterface,i=l.networks;null===(e=ge.current.setValue)||void 0===e||e.call(null,t),null===(n=ye.current.setValue)||void 0===n||n.call(null,r);var a=[],u=Object.values(i).reduce((function(e,n){var t,r,o=n.ip,i=n.link1Uuid,u=n.link2Uuid,c=void 0===u?"":u,l=n.subnetMask,s=n.type,f=Le(s,{inputs:e})+1,d=M[s]===f,p="".concat(h.Z[s]," ").concat(f);return a.push(i,c),e.push({inputUUID:(0,b.Z)(),interfaces:[null===(t=H[i])||void 0===t?void 0:t.metadata,null===(r=H[c])||void 0===r?void 0:r.metadata],ipAddress:o,isRequired:d,name:p,subnetMask:l,type:s,typeCount:f}),e}),[]);be(o),_((function(e){var n=G({},e);return a.forEach((function(e){n[e]&&(n[e].isApplied=!0)})),n})),se(u),Re()}}),[Te,c,Le,l,ae,H,M,Re]),(0,m.useEffect)((function(){return Pe(1),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(){Pe(0)}}),[Pe]),(0,m.useImperativeHandle)(n,(function(){return G({},we.current,{get:function(){var e,n;return{dns:null===(e=ge.current.getValue)||void 0===e?void 0:e.call(null),gateway:null===(n=ye.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:me,networks:ae.map((function(e){var n,r,o=e.inputUUID,a=e.interfaces,u=e.ipAddressInputRef,c=e.name,l=e.subnetMaskInputRef,s=e.type,f=e.typeCount;return{inputUUID:o,interfaces:a,ipAddress:null!==(t=null===(n=null===u||void 0===u?void 0:u.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==t?t:"",name:c,subnetMask:null!==(i=null===(r=null===l||void 0===l?void 0:l.current.getValue)||void 0===r?void 0:r.call(null))&&void 0!==i?i:"",type:s,typeCount:f}}))}}})}),[me,ae]);var Je,We="13em";return je?(0,r.jsx)(V.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;T({x:n-o,y:t-i})},onMouseLeave:_e,onMouseMove:Be,onMouseUp:Ge,sx:G({position:"relative"},He),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:ce((function(e){pe(e)}),H),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 a=H[i],u=a.isApplied,c=a.metadata;u||pe(c)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:function(e){var n,t=e.row.networkInterfaceUUID,r="";return(null!==(n=H[t])&&void 0!==n&&n).isApplied||(r+=" ".concat($.ifaceNotApplied)),r},getRowId:function(e){return e.networkInterfaceUUID},hideFooter:!0,rows:Ie,sx:(Je={color:y.s7},B(Je,"& .".concat(u.Z.root),{color:"inherit"}),B(Je,"& .".concat(p._.cell,":focus"),{outline:"none"}),B(Je,"& .".concat(p._.row,".").concat($.ifaceNotApplied,":hover"),B({cursor:"grab"},"& .".concat(p._.cell," p"),{cursor:"auto"})),Je)}),!Oe&&(0,r.jsx)(S.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:We,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:ae.map((function(e,n){var t=e.inputUUID;return(0,r.jsx)(le,{createDropMouseUpHandler:Ve,getNetworkTypeCount:Le,hostDetail:l,networkIndex:n,networkInput:e,networkInterfaceCount:Ie.length,networkInterfaceInputMap:H,removeNetwork:Fe,setMessageRe:Ue,setNetworkInputs:se,setNetworkInterfaceInputMap:_,testInput:Ne,testInputToToggleSubmitDisabled:Re},"network-".concat(t))}))})}),(0,r.jsxs)(S.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:We,width:{sm:"25%"}}},children:[(0,r.jsx)(A.Z,{disabled:Ce,onClick:function(){Te()},children:(0,r.jsx)(f.Z,{})}),(0,r.jsx)(N.Z,{input:(0,r.jsx)(E.Z,{id:"network-init-gateway",inputProps:{onBlur:function(e){var n=e.target.value;Ne({inputs:B({},ee,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Re({inputs:B({},ee,{value:n})}),De()},label:"Gateway"}),ref:ye}),(0,r.jsx)(N.Z,{input:(0,r.jsx)(E.Z,{id:"network-init-dns-csv",inputProps:{onBlur:function(e){var n=e.target.value;Ne({inputs:B({},Q,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Re({inputs:B({},Q,{value:n})}),Ze()},label:"Domain name server(s)"}),ref:ge})]}),(0,r.jsx)(R.Z,{count:1,defaultMessageType:"warning",ref:we})]})]})}));se.defaultProps={expectHostDetail:!1,hostDetail:void 0,toggleSubmitDisabled:void 0},se.displayName="NetworkInitForm";var fe=se},3106:function(e,n){n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/692-833d087a56e52baf.js b/striker-ui/out/_next/static/chunks/692-833d087a56e52baf.js deleted file mode 100644 index 54444859..00000000 --- a/striker-ui/out/_next/static/chunks/692-833d087a56e52baf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[692],{1939:function(e,n,t){var r=t(5893),o=t(7357),a=t(7169);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 u(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l="Decorator",s={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,f=c(e,["colour","sx"]);return(0,r.jsx)(o.Z,u({},f,{className:s[t],sx:u((n={borderRadius:a.n_,height:"100%",width:"1.4em"},i(n,"&.".concat(s.ok),{backgroundColor:a.Ej}),i(n,"&.".concat(s.warning),{backgroundColor:a.Wd}),i(n,"&.".concat(s.error),{backgroundColor:a.hM}),i(n,"&.".concat(s.off),{backgroundColor:a.s7}),n),l)}))}},5741:function(e,n,t){var r=t(5893),o=t(1714),a=t(122),i=t(7169),u=t(4690);function c(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 a=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,c=s(e,["children","sx"]);return(0,r.jsx)(a.Z,l({underline:"hover",variant:"subtitle1"},c,{sx:l({color:i.lD,textDecorationColor:i.s7},t),children:(0,r.jsxs)(u.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},8461:function(e,n,t){t.d(n,{Z:function(){return fe}});var r=t(5893),o=t(7357),a=t(2734),i=t(8396),u=t(6239),c=t(9699),l=t(2026),s=t(5537),f=t(2428),d=t(2275),p=t(3490),v=t(8951),m=t(7294),b=t(5934),g=t(2029),h=t(7169),y=t(3106),w=t(1250),x=t(4390),k=t(4799),I=t(1939),j=t(7750);function C(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 a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var S=function(e){var n=e.isFloating,t=e.networkInterface,a=t.networkInterfaceName,i=t.networkInterfaceState,u=e.onClose,c=e.sx,l=M(e,["isFloating","networkInterface","onClose","sx"]),f=n?{borderColor:h.s7,borderRadius:h.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:h.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,c)},l,{children:[(0,r.jsx)(I.Z,{colour:"up"===i?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.Ac,{text:a}),u&&(0,r.jsx)(k.Z,{onClick:u,size:"small",sx:{color:h.s7},children:(0,r.jsx)(s.Z,{})})]}))};S.defaultProps={isFloating:!1,onClose:void 0};var Z=S,U=(0,t(1496).ZP)(o.Z)((function(){return{borderColor:h.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}})),D=t(4690),P=t(1770),A=t(1706),N=t(9099),R=t(7869),E=t(6284),T=t(3679),F=t(1905),L=t(7783),V=t(2152),H=function(e){for(var n=0,t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t :not(:first-child)":{marginLeft:".5em"}},children:[(0,r.jsx)(I.Z,{colour:"up"===t?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.KI,{text:a})]})},sortComparator:function(e,n){return H(e)-H(n)}},{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.createDropMouseUpHandler,t=e.getNetworkTypeCount,u=e.hostDetail,c=(void 0===u?{}:u).hostType,l=e.networkIndex,d=e.networkInput,p=e.networkInterfaceCount,v=e.networkInterfaceInputMap,b=e.removeNetwork,g=e.setMessageRe,w=e.setNetworkInputs,x=e.setNetworkInterfaceInputMap,k=e.testInput,I=e.testInputToToggleSubmitDisabled,C=(0,a.Z)(),O=(0,i.Z)(C.breakpoints.up("md")),M=(0,i.Z)(C.breakpoints.up("lg")),S=(0,m.useRef)({}),D=(0,m.useRef)({}),P=d.inputUUID,R=d.interfaces,F=d.ipAddress,V=d.isRequired,H=d.subnetMask,_=d.type,q=d.typeCount,X=(0,m.useMemo)((function(){return ue(P)}),[P]),$=(0,m.useMemo)((function(){return ne(X)}),[X]),z=(0,m.useMemo)((function(){return te(X)}),[X]),K=(0,m.useMemo)((function(){return oe(X)}),[X]),Y=(0,m.useMemo)((function(){return ae(X)}),[X]),Q=(0,m.useMemo)((function(){return"node"===c}),[c]),ee=(0,m.useMemo)((function(){return!Q&&p<=2?[1]:ie}),[Q,p]),re=(0,m.useMemo)((function(){var e=y.Z.bcn,n=y.Z.ifn,t=y.Z.mn,r=y.Z.sn;return Q&&p>=8?{bcn:e,ifn:n,mn:t,sn:r}:{bcn:e,ifn:n,sn:r}}),[Q,p]);return(0,m.useEffect)((function(){var e=d.ipAddressInputRef,n=d.subnetMaskInputRef;e===S&&n===D||(d.ipAddressInputRef=S,d.subnetMaskInputRef=D,w((function(e){return W(e)})))}),[d,w]),(0,r.jsxs)(T.Lg,{children:[(0,r.jsxs)(T.CH,{children:[(0,r.jsx)(L.Z,{id:"network-".concat(P,"-name"),isReadOnly:V,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(re).map((function(e){var n=J(e,2),r=n[0],o=n[1],a=t(r,{lastIndex:l});return r!==_&&(a+=1),{value:r,displayValue:"".concat(o," ").concat(a)}})),selectProps:{onChange:function(e){var n=e.target.value,r=String(n);d.type=r;var o=t(r,{lastIndex:l});d.typeCount=o,d.name="".concat(y.Z[r]," ").concat(o),w((function(e){return W(e)}))},renderValue:M?void 0:function(e){return"".concat(String(e).toUpperCase()," ").concat(q)},value:_}}),!V&&(0,r.jsx)(A.Z,{onClick:function(){b(l)},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:[ee.map((function(e){var t="Link ".concat(e),a=e-1,i=R[a],u=(null!==i&&void 0!==i?i:{}).networkInterfaceUUID,c=void 0===u?"":u,l=O?(0,r.jsx)(j.Ac,{text:"Drop to add interface."}):(0,r.jsx)(f.Z,{sx:{alignSelf:"center",color:h.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:t}),(0,r.jsx)(U,{onMouseUp:function(){for(var e=arguments.length,t=new Array(e),r=0;r=ye.length||Object.values(U).every((function(e){return e.isApplied}))||"node"===k&&ye.length<=6}),[k,H,ye,U]),ke=(0,m.useCallback)((function(e,n){var t;return null===(t=be.current.setMessage)||void 0===t?void 0:t.call(null,e,n)}),[]),Ie=(0,m.useCallback)((function(e,n){var t;return null===(t=be.current.setMessageRe)||void 0===t?void 0:t.call(null,e,n)}),[]),je=(0,m.useCallback)((function(e){return ke(Q,e)}),[ke]),Ce=(0,m.useCallback)((function(e){return ke(ee,e)}),[ke]),Oe=(0,m.useCallback)((function(e){var n,t=e.fn,r=void 0===t?"every":t,o=e.ip,a=void 0===o?"":o,i=e.mask,u=void 0===i?"":i,c=e.isNegateMatch,l=void 0===c?"every"===r:c,s=e.onMatch,f=e.onMiss,d=e.skipUUID,p="every"===r;try{n=new v.Netmask("".concat(a,"/").concat(u))}catch(m){}return H[r]((function(e){var t,r,o=e.inputUUID,i=e.ipAddressInputRef,u=e.subnetMaskInputRef;if(o===d)return p;var c=null===(t=null===i||void 0===i?void 0:i.current.getValue)||void 0===t?void 0:t.call(null),b=null===(r=null===u||void 0===u?void 0:u.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 v.Netmask("".concat(c,"/").concat(b)),{b:n,bIP:a})}catch(m){}return g?null===s||void 0===s||s.call(null,e):null===f||void 0===f||f.call(null,e),l?!g:g}))}),[H]),Me=(0,m.useCallback)((function(e){x.Z.put("/init/set-map-network",{value:e}).catch((function(n){var t=(0,P.Z)(n);t.children=(0,r.jsxs)(r.Fragment,{children:["Failed to ",e?"enable":"disable"," network mapping."," ",t.children]}),ke("api",t)}))}),[ke]),Se=(0,m.useMemo)((function(){var e,n=(B(e={},Q,{defaults:{getValue:function(){var e;return null===(e=me.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){je()}},tests:[{onFailure:function(){je({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 w.ah.test(n)}},{test:_.HJ}]}),B(e,ee,{defaults:{getValue:function(){var e;return null===(e=ve.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Ce()}},tests:[{onFailure:function(){Ce({children:"Gateway should be a valid IPv4 address."})},test:function(e){var n=e.value;return w.tf.test(n)}},{test:function(e){var n=e.value,t=!0,r=Oe({fn:"some",ip:n,onMatch:function(e){var r=e.ipAddress,o=e.name,a=e.type,i=e.typeCount;if(n===r)return t=!1,void Ce({children:"Gateway cannot be the same as IP address in ".concat(o,".")});pe("".concat(a).concat(i))}});return r||Ce({children:"Gateway must be in one network's subnet."}),r&&t}},{test:_.HJ}]}),e);return H.forEach((function(e){var t,r,o=e.inputUUID,a=e.interfaces,i=e.ipAddressInputRef,u=e.name,c=e.subnetMaskInputRef,l=ue(o),s=ne(l),f=te(l),d=oe(l),p=function(e){return ke(s,e)},v=function(e){return ke(f,e)},m=function(e){return ke(d,e)},b=function(e,n,t){var r,o="".concat(ae(l),"-").concat(n),a="".concat(ae(ue(n)),"-").concat(e);ke((null===(r=be.current.exists)||void 0===r?void 0:r.call(null,a))?a:o,t)},g=function(e){var n=e.ip,a=void 0===n?null===(t=null===i||void 0===i?void 0:i.current.getValue)||void 0===t?void 0:t.call(null):n,l=e.mask,s=void 0===l?null===(r=null===c||void 0===c?void 0:c.current.getValue)||void 0===r?void 0:r.call(null):l;return Oe({ip:a,mask:s,onMatch:function(e){var n=e.inputUUID,t=e.name;b(o,n,{children:'"'.concat(u,'" and "').concat(t,'" cannot be in the same subnet.')})},onMiss:function(e){var n=e.inputUUID;b(o,n)},skipUUID:o})};n[s]={defaults:{getCompare:function(){return a.map((function(e){return void 0!==e}))},onSuccess:function(){p()}},tests:[{onFailure:function(){p({children:"".concat(u," must have at least 1 interface.")})},test:function(e){return e.compare.some((function(e){return e}))}},{onFailure:function(){p({children:"".concat(u," must have a Link 1 interface.")})},test:function(e){var n=J(e.compare,2),t=n[0];return!(n[1]&&!t)}}]},n[f]={defaults:{getValue:function(){var e;return null===(e=null===i||void 0===i?void 0:i.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){v()}},tests:[{onFailure:function(){v({children:"IP address in ".concat(u," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return w.tf.test(n)}},{test:function(e){var n=e.value;return g({ip:n})}},{test:_.HJ}]},n[re(l)]={defaults:{value:u},tests:[{test:_.HJ}]},n[d]={defaults:{getValue:function(){var e;return null===(e=null===c||void 0===c?void 0:c.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){m()}},tests:[{onFailure:function(){m({children:"Subnet mask in ".concat(u," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return w.tf.test(n)}},{test:function(e){var n=e.value;return g({mask:n})}},{test:_.HJ}]}})),n}),[H,je,Ce,ke,Oe]),Ze=(0,m.useMemo)((function(){return(0,_.LT)(Se)}),[Se]),Ue=(0,m.useCallback)((function(e){null===c||void 0===c||c.call(null,Ze(G({isIgnoreOnCallbacks:!0,isTestAll:!0},e)))}),[Ze,c]),De=(0,m.useCallback)((function(){se(void 0)}),[]),Pe=(0,m.useCallback)((function(){H.unshift({inputUUID:(0,b.Z)(),interfaces:W(z),ipAddress:"",name:"Unknown Network",subnetMask:"",type:"",typeCount:0}),null===c||void 0===c||c.call(null,!1),q(W(H))}),[H,c]),Ae=(0,m.useCallback)((function(e){var n=J(H.splice(e,1),1)[0],t=n.inputUUID;n.interfaces.forEach((function(e){if(void 0!==e){var n=e.networkInterfaceUUID;U[n].isApplied=!1}})),Ue({excludeTestIdsRe:RegExp(t)}),q(W(H)),T((function(e){return G({},e)}))}),[H,U,Ue]),Ne=(0,m.useCallback)((function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.inputs,r=void 0===t?H:t,o=n.lastIndex,a=void 0===o?0:o,i=0,u=r.length-1;u>=a;u-=1)r[u].type===e&&(i+=1);return i}),[H]),Re=(0,m.useMemo)((function(){if(void 0!==ie){var e=ie.networkInterfaceUUID;return function(n,t){return function(){var r,o=(null!==(r=n[t])&&void 0!==r?r:{}).networkInterfaceUUID;o&&o!==e&&(U[o].isApplied=!1),n[t]=ie,U[e].isApplied=!0}}}}),[ie,U]),Ee=(0,m.useMemo)((function(){return ie?{cursor:"grabbing",userSelect:"none"}:{}}),[ie]),Te=(0,m.useMemo)((function(){if(void 0===ie)return(0,r.jsx)(r.Fragment,{});var e=O.x,n=O.y;return(0,r.jsx)(Z,{isFloating:!0,networkInterface:ie,sx:{left:"calc(".concat(e,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})}),[O,ie]),Fe=(0,m.useMemo)((function(){return ie?function(){De()}:void 0}),[De,ie]),Le=(0,m.useMemo)((function(){return ie?function(e){var n=e.currentTarget,t=e.nativeEvent,r=t.clientX,o=t.clientY,a=n.getBoundingClientRect(),i=a.left,u=a.top;M({x:r-i,y:o-u})}:void 0}),[ie]),Ve=(0,m.useMemo)((function(){return ie?function(){De()}:void 0}),[De,ie]);(0,m.useEffect)((function(){return Me(1),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(){Me(0)}}),[Me]),(0,m.useImperativeHandle)(n,(function(){return{get:function(){var e,n;return{dns:null===(e=me.current.getValue)||void 0===e?void 0:e.call(null),gateway:null===(n=ve.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:de,networks:H.map((function(e){var n,r,o=e.inputUUID,i=e.interfaces,u=e.ipAddressInputRef,c=e.name,l=e.subnetMaskInputRef,s=e.type,f=e.typeCount;return{inputUUID:o,interfaces:i,ipAddress:null!==(t=null===(n=null===u||void 0===u?void 0:u.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==t?t:"",name:c,subnetMask:null!==(a=null===(r=null===l||void 0===l?void 0:l.current.getValue)||void 0===r?void 0:r.call(null))&&void 0!==a?a:"",type:s,typeCount:f}}))}}}}),[de,H]);var He,_e="13em";return we?(0,r.jsx)(V.Z,{}):(0,r.jsxs)(o.Z,{onMouseDown:function(e){var n=e.clientX,t=e.clientY,r=e.currentTarget.getBoundingClientRect(),o=r.left,a=r.top;M({x:n-o,y:t-a})},onMouseLeave:Fe,onMouseMove:Le,onMouseUp:Ve,sx:G({position:"relative"},Ee),children:[Te,(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:ce((function(e){se(e)}),U),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,a=void 0===o?void 0:o;if(a){var i=U[a],u=i.isApplied,c=i.metadata;u||se(c)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:function(e){var n,t=e.row.networkInterfaceUUID,r="";return(null!==(n=U[t])&&void 0!==n&&n).isApplied||(r+=" ".concat($.ifaceNotApplied)),r},getRowId:function(e){return e.networkInterfaceUUID},hideFooter:!0,rows:ye,sx:(He={color:h.s7},B(He,"& .".concat(u.Z.root),{color:"inherit"}),B(He,"& .".concat(p._.cell,":focus"),{outline:"none"}),B(He,"& .".concat(p._.row,".").concat($.ifaceNotApplied,":hover"),B({cursor:"grab"},"& .".concat(p._.cell," p"),{cursor:"auto"})),He)}),(0,r.jsx)(D.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:_e,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:H.map((function(e,n){var t=e.inputUUID;return(0,r.jsx)(le,{createDropMouseUpHandler:Re,getNetworkTypeCount:Ne,hostDetail:i,networkIndex:n,networkInput:e,networkInterfaceCount:ye.length,networkInterfaceInputMap:U,removeNetwork:Ae,setMessageRe:Ie,setNetworkInputs:q,setNetworkInterfaceInputMap:T,testInput:Ze,testInputToToggleSubmitDisabled:Ue},"network-".concat(t))}))})}),(0,r.jsxs)(D.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:_e,width:{sm:"25%"}}},children:[(0,r.jsx)(A.Z,{disabled:xe,onClick:Pe,children:(0,r.jsx)(f.Z,{})}),(0,r.jsx)(N.Z,{input:(0,r.jsx)(E.Z,{id:"network-init-gateway",inputProps:{onBlur:function(e){var n=e.target.value;Ze({inputs:B({},ee,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ue({inputs:B({},ee,{value:n})}),Ce()},label:"Gateway",value:y}),ref:ve}),(0,r.jsx)(N.Z,{input:(0,r.jsx)(E.Z,{id:"network-init-dns-csv",inputProps:{onBlur:function(e){var n=e.target.value;Ze({inputs:B({},Q,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ue({inputs:B({},Q,{value:n})}),je()},label:"Domain name server(s)",value:s}),ref:me})]}),(0,r.jsx)(R.Z,{count:1,defaultMessageType:"warning",ref:be})]})]})}));se.defaultProps={hostDetail:void 0,toggleSubmitDisabled:void 0},se.displayName="NetworkInitForm";var fe=se},3106:function(e,n){n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/746-a9b6e396d532b9a2.js b/striker-ui/out/_next/static/chunks/746-a9b6e396d532b9a2.js new file mode 100644 index 00000000..a662e117 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/746-a9b6e396d532b9a2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[746],{9297:function(e,r,n){n.d(r,{C:function(){return d},k:function(){return v}});var t=n(5893),o=n(1458),i=n(1496),c=n(7169),a=(0,i.ZP)(o.Z)({height:"1em",borderRadius:c.n_,backgroundColor:c.v9});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"),underline:"".concat(u,"-underline")},f=(0,i.ZP)("div")((function(){var e;return l(e={},"& .".concat(s.barOk),{backgroundColor:c.Ej}),l(e,"& .".concat(s.barWarning),{backgroundColor:c.Wd}),l(e,"& .".concat(s.barAlert),{backgroundColor:c.hM}),l(e,"& .".concat(s.underline),{borderRadius:c.n_}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(a,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(o.Z,{className:s.underline,variant:"determinate",value:0})]})};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"),underline:"".concat(b,"-underline")},y=(0,i.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:c.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:c.Wd}),p(e,"& .".concat(m.underline),{borderRadius:c.n_}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(a,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(o.Z,{className:m.underline,variant:"determinate",value:0})]})}},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){var t=n(5893),o=n(7933),i=n(2992),c=n(7294),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}r.Z=function(e){var r=e.sx,n=s(e,["sx"]),f=(0,c.useMemo)((function(){return u(l({backgroundColor:a.s7,color:a.E5,textTransform:"none","&:hover":{backgroundColor:"".concat(a.s7,"F0")}},"&.".concat(o.Z.disabled),{backgroundColor:a.rr}),r)}),[r]);return(0,t.jsx)(i.Z,u({variant:"contained"},n,{sx:f}))}},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 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,I=l(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),k=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),C=(0,i.useMemo)((function(){return m||k}),[m,k]),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({},I,{sx:a({alignItems:{xs:T[k].alignItems,sm:T[C].alignItems,md:T[A].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:C,md:A,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[C].marginLeft,md:T[A].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[C].marginTop,md:T[A].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=u,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),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},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,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,I=void 0===Z?v.initialIndicatorValue:Z,k=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)(I,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"},k),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(9297),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 S(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 Z(e){return function(e){if(Array.isArray(e))return j(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 j(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)?j(e,r):void 0}}var k=(0,o.forwardRef)((function(e){var r=e.allowCheckAll,n=void 0!==r&&r,j=e.allowEdit,x=void 0!==j&&j,I=e.allowItemButton,k=void 0!==I&&I,C=e.disableDelete,A=void 0!==C&&C,E=e.edit,M=void 0!==E&&E,T=e.flexBoxProps,D=e.getListCheckboxProps,R=e.getListItemCheckboxProps,W=e.header,L=e.headerSpacing,N=void 0===L?".3em":L,q=e.insertHeader,_=void 0===q||q,F=e.listEmpty,B=e.listItemIconMinWidth,U=void 0===B?"56px":B,H=e.listItemKeyPrefix,z=void 0===H?(0,b.Z)():H,$=e.listItemProps,J=(void 0===$?{}:$).sx,G=e.listItems,V=e.listProps,X=(void 0===V?{}:V).sx,Y=e.onAdd,K=e.onDelete,Q=e.onEdit,ee=e.onAllCheckboxChange,re=e.onItemCheckboxChange,ne=e.onItemClick,te=e.renderListItem,oe=void 0===te?function(e){return(0,t.jsx)(O.Ac,{children:e})}:te,ie=e.renderListItemCheckboxState,ce=e.scroll,ae=void 0!==ce&&ce,le=e.allowAddItem,ue=void 0===le?x:le,se=e.allowCheckItem,fe=void 0===se?x:se,de=e.allowDelete,pe=void 0===de?x:de,be=e.allowEditItem,me=void 0===be?x:be,ye=P(e.listItemProps,["sx"]),ve=P(e.listProps,["sx"]),ge=(0,o.useMemo)((function(){return"calc(".concat(U," - ").concat(N,")")}),[N,U]),he=(0,o.useMemo)((function(){return ue?(0,t.jsx)(h.Z,{onClick:Y,size:"small",children:(0,t.jsx)(i.Z,{})}):void 0}),[ue,Y]),Oe=(0,o.useMemo)((function(){return M&&pe?(0,t.jsx)(h.Z,{disabled:A,onClick:K,size:"small",sx:{backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}},children:(0,t.jsx)(c.Z,{})}):void 0}),[A,pe,M,K]),je=(0,o.useMemo)((function(){if(me)return(0,t.jsx)(h.Z,{onClick:Q,size:"small",children:M?(0,t.jsx)(a.Z,{sx:{color:m.Ej}}):(0,t.jsx)(l.Z,{})})}),[me,M,Q]),xe=(0,o.useMemo)((function(){var e;return M&&fe&&(e=n?(0,t.jsx)(u.Z,{sx:{minWidth:ge},children:(0,t.jsx)(y.Z,w({edge:"start",onChange:ee},null===D||void 0===D?void 0:D.call(null)))}):(0,t.jsx)(v.Z,{sx:{minWidth:ge}})),e}),[ge,D,n,fe,M,ee]),we=(0,o.useMemo)((function(){var e,r="undefined"===typeof W?"undefined":(e=W)&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return _&&W?(0,t.jsxs)(g.Z,{row:!0,spacing:N,sx:{height:"2.4em"},children:[xe,["boolean","string"].includes(r)?(0,t.jsxs)(t.Fragment,{children:["string"===r&&(0,t.jsx)(O.Ac,{children:W}),(0,t.jsx)(v.Z,{sx:{flexGrow:1}})]}):W,Oe,je,he]}):W}),[he,xe,Oe,je,W,N,_]),Pe=(0,o.useMemo)((function(){return"string"===typeof F?(0,t.jsx)(O.Ac,{align:"center",children:F}):F}),[F]),Se=(0,o.useCallback)((function(e,r,n){return M&&fe?(0,t.jsx)(s.Z,{sx:{minWidth:U},children:(0,t.jsx)(y.Z,w({checked:r,edge:"start",onChange:function(){for(var r=arguments.length,n=new Array(r),t=0;t0&&(e=r.map((function(e){var r=S(e,2),n=r[0],i=r[1],c=oe(n,i);return(0,o.createElement)(f.ZP,w({},ye,{key:"".concat(z,"-").concat(n),sx:w({paddingLeft:0,paddingRight:0},J),children:[Se(n,null===ie||void 0===ie?void 0:ie.call(null,n,i),null===R||void 0===R?void 0:R.call(null,n,i)),k?(0,t.jsx)(d.Z,{onClick:function(){for(var e=arguments.length,r=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 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}},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],I=S[1],k=(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 I(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:u.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:u.lD,borderWidth:"1px",borderRadius:u.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: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,k({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,k({},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 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 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={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"]),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]),C=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,l({className:"".concat(k," ").concat(s),variant:"subtitle1"},Z,{sx:l((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: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 I=function(e){var r=e.sx,n=Z(e,["sx"]);return(0,t.jsx)(w,S({},n,{monospaced:!0,sx:S({display:"inline",padding:".1rem .3rem"},r)}))};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 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(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 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/746-f7f7db4392d6988b.js b/striker-ui/out/_next/static/chunks/746-f7f7db4392d6988b.js deleted file mode 100644 index 61d22187..00000000 --- a/striker-ui/out/_next/static/chunks/746-f7f7db4392d6988b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[746],{9297:function(e,r,n){n.d(r,{C:function(){return d},k:function(){return v}});var t=n(5893),o=n(1458),i=n(1496),c=n(7169),a=(0,i.ZP)(o.Z)({height:"1em",borderRadius:c.n_,backgroundColor:c.v9});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"),underline:"".concat(u,"-underline")},f=(0,i.ZP)("div")((function(){var e;return l(e={},"& .".concat(s.barOk),{backgroundColor:c.Ej}),l(e,"& .".concat(s.barWarning),{backgroundColor:c.Wd}),l(e,"& .".concat(s.barAlert),{backgroundColor:c.hM}),l(e,"& .".concat(s.underline),{borderRadius:c.n_}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(a,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(o.Z,{className:s.underline,variant:"determinate",value:0})]})};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"),underline:"".concat(b,"-underline")},y=(0,i.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:c.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:c.Wd}),p(e,"& .".concat(m.underline),{borderRadius:c.n_}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(a,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(o.Z,{className:m.underline,variant:"determinate",value:0})]})}},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){var t=n(5893),o=n(7933),i=n(2992),c=n(7294),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}r.Z=function(e){var r=e.sx,n=s(e,["sx"]),f=(0,c.useMemo)((function(){return u(l({backgroundColor:a.s7,color:a.E5,textTransform:"none","&:hover":{backgroundColor:"".concat(a.s7,"F0")}},"&.".concat(o.Z.disabled),{backgroundColor:a.rr}),r)}),[r]);return(0,t.jsx)(i.Z,u({variant:"contained"},n,{sx:f}))}},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 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,I=l(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),k=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),C=(0,i.useMemo)((function(){return m||k}),[m,k]),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({},I,{sx:a({alignItems:{xs:T[k].alignItems,sm:T[C].alignItems,md:T[A].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:C,md:A,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[C].marginLeft,md:T[A].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[C].marginTop,md:T[A].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=u,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),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},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,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,I=void 0===Z?v.initialIndicatorValue:Z,k=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)(I,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]),N=(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]),q=(0,i.useMemo)((function(){var e;if(D){var r,n=g,t=O;Number.isFinite(D)&&(r=N(D),n=h,t=j),e=W(r,n,t)}return e}),[W,N,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({},C,{sx:p({height:"100%",width:"100%"},d)})),q]})}));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(9297),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 S(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 Z(e){return function(e){if(Array.isArray(e))return j(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 j(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)?j(e,r):void 0}}var k=(0,o.forwardRef)((function(e,r){var n=e.allowCheckAll,j=void 0!==n&&n,x=e.allowEdit,I=void 0!==x&&x,k=e.allowItemButton,C=void 0!==k&&k,A=e.disableDelete,E=void 0!==A&&A,M=e.edit,T=void 0!==M&&M,D=e.flexBoxProps,R=e.getListItemCheckboxProps,W=e.header,N=e.headerSpacing,q=void 0===N?".3em":N,L=e.initialCheckAll,_=void 0!==L&&L,F=e.insertHeader,B=void 0===F||F,U=e.listEmpty,H=e.listItemIconMinWidth,z=void 0===H?"56px":H,$=e.listItemKeyPrefix,J=void 0===$?(0,b.Z)():$,G=e.listItemProps,V=(void 0===G?{}:G).sx,X=e.listItems,Y=e.listProps,K=(void 0===Y?{}:Y).sx,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)(O.Ac,{children:e})}:ie,ae=e.renderListItemCheckboxState,le=e.scroll,ue=void 0!==le&&le,se=e.allowAddItem,fe=void 0===se?I:se,de=e.allowCheckItem,pe=void 0===de?I:de,be=e.allowDelete,me=void 0===be?I:be,ye=e.allowEditItem,ve=void 0===ye?I:ye,ge=P(e.listItemProps,["sx"]),he=P(e.listProps,["sx"]),Oe=(0,o.useState)(_),je=Oe[0],xe=Oe[1],we=(0,o.useMemo)((function(){return"calc(".concat(z," - ").concat(q,")")}),[q,z]),Pe=(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]),Se=(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]),Ze=(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]),Ie=(0,o.useMemo)((function(){var e;return T&&pe&&(e=j?(0,t.jsx)(u.Z,{sx:{minWidth:we},children:(0,t.jsx)(y.Z,{checked:je,edge:"start",onChange:function(){for(var e=arguments.length,r=new Array(e),n=0;n0&&(e=r.map((function(e){var r=S(e,2),n=r[0],i=r[1],c=ce(n,i);return(0,o.createElement)(f.ZP,w({},ge,{key:"".concat(J,"-").concat(n),sx:w({paddingLeft:0,paddingRight:0},V),children:[Ae(n,null===ae||void 0===ae?void 0:ae.call(null,n,i),null===R||void 0===R?void 0:R.call(null,n,i)),C?(0,t.jsx)(d.Z,{onClick:function(){for(var e=arguments.length,r=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 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}},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],I=S[1],k=(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 I(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:u.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:u.lD,borderWidth:"1px",borderRadius:u.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: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,k({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,k({},u,{className:"".concat(E.paper," ").concat(c),children:r}))]}))};R.defaultProps=T;var W=R,N=(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 I},$_:function(){return E},PJ:function(){return q},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={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"]),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]),C=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,l({className:"".concat(k," ").concat(s),variant:"subtitle1"},Z,{sx:l((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: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 I=function(e){var r=e.sx,n=Z(e,["sx"]);return(0,t.jsx)(w,S({},n,{monospaced:!0,sx:S({display:"inline",padding:".1rem .3rem"},r)}))};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 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(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 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/903-29a2317305af2d71.js b/striker-ui/out/_next/static/chunks/903-dc2a40be612a10c3.js similarity index 78% rename from striker-ui/out/_next/static/chunks/903-29a2317305af2d71.js rename to striker-ui/out/_next/static/chunks/903-dc2a40be612a10c3.js index a9f4647c..6668f99c 100644 --- a/striker-ui/out/_next/static/chunks/903-29a2317305af2d71.js +++ b/striker-ui/out/_next/static/chunks/903-dc2a40be612a10c3.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[903],{7504:function(n,e,t){var r=t(5893),o=t(7294),i=t(6886),u=t(7357);function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function f(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return l(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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(n,e)}(n,e)||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.")}()}e.Z=function(n){var e=n.calculateItemBreakpoints,t=void 0===e?function(){return{xs:1}}:e,l=n.layout,a=n.wrapperBoxProps,d=s(n,["calculateItemBreakpoints","layout","wrapperBoxProps"]),p=(0,o.useMemo)((function(){return Object.entries(l).map((function(n,e){var r=f(n,2),u=r[0],l=r[1],a=u;return l?(0,o.createElement)(i.ZP,c({},t(e,a),{key:a,item:!0},l)):void 0}))}),[t,l]);return(0,r.jsx)(u.Z,c({},a,{children:(0,r.jsx)(i.ZP,c({container:!0},d,{children:p}))}))}},5521:function(n,e,t){t.d(e,{Z:function(){return H}});var r=t(5893),o=t(1113),i=t(1496),u=t(2293),l=t(7357),a=t(2992),c=t(4799),s=t(7294),f=t(7169),d=t(4433),p=t(9029),v=t(7533),y=t(8462),m=t(7212),b=t(8619),g=[{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"}],h={width:"40em",height:"40em"},j=t(4390),O=t(582),S=t(4690),w=t(1770),x=t(7750),A=t(1081);function k(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(e).concat(n)]}),[t]),i=(0,s.useCallback)((function(){return o("user")}),[o]);return(0,s.useEffect)((function(){if(n){var e=document.cookie.split(/\s*;\s*/);r(e.reduce((function(n,e){var t,r=P(e.split("=",2),2),o=r[0],i=r[1],u=decodeURIComponent(i);if(u.startsWith("j:"))try{t=JSON.parse(u.substring(2))}catch(l){t=i}else t=i;return n[o]=t,n}),{}))}}),[n]),{cookieJar:t,getCookie:o,getSessionUser:i}};function C(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Z(n){for(var e=1;e0)},ref:e})]})}},9099:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(7294),o={boolean:function(n){return Boolean(n)},number:function(n){return parseInt(String(n),10)||0},string:function(n){return String(n)}},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.postSet,t=n.preSet,r=n.set,i=n.setType,u=void 0===i?"string":i,l=n.valueKey,a=void 0===l?"value":l;return function(n){var i=n.target[a],l=o[u](i);null===t||void 0===t||t.call(null,n),null===r||void 0===r||r.call(null,l),null===e||void 0===e||e.call(null,n)}},u=t(7987);function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function f(n){return function(n){if(Array.isArray(n))return l(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return l(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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(n,e)}(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 d(n){var e=function(n,e){if("object"!==p(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===p(e)?e:String(e)}var p=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var v="input",y={boolean:!1,number:0,string:""},m={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},b=(0,r.forwardRef)((function(n,e){var t=n.input,o=n.inputTestBatch,l=n.onBlurAppend,p=n.onFirstRender,b=n.onFocusAppend,g=n.onUnmount,h=n.required,j=void 0===h?m.required:h,O=n.valueKey,S=n.valueType,w=void 0===S?m.valueType:S,x=n.createInputOnChangeHandlerOptions,A=void 0===x?m.createInputOnChangeHandlerOptions:x,k=A.postSet,P=A.valueKey,I=void 0===P?O:P,C=s(n.createInputOnChangeHandlerOptions,["postSet","valueKey"]),Z=t.props,E=(0,r.useMemo)((function(){return null!==I&&void 0!==I?I:"checked"in Z?"checked":"value"}),[Z,I]),M=Z.onBlur,B=Z.onChange,T=Z.onFocus,F=Z[E],R=void 0===F?y[w]:F,U=s(Z,["onBlur","onChange","onFocus",E].map(d)),N=(0,r.useState)(R),_=N[0],V=N[1],H=(0,r.useState)(!1),K=H[0],D=H[1],q=(0,r.useState)(!1),W=q[0],$=q[1],L=(0,r.useCallback)((function(n){V(n)}),[]),G=(0,r.useMemo)((function(){var n;return o&&(o.isRequired=j,n=(0,u.LT)(a({},v,o))),n}),[o,j]),J=(0,r.useMemo)((function(){return null!==M&&void 0!==M?M:G&&function(){for(var n=arguments.length,e=new Array(n),t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function a(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return u(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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(n,e)}(n,e)||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 c(n){var e=function(n,e){if("object"!==s(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===s(e)?e:String(e)}var s=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var f={count:0,defaultMessageType:"info",onSet:void 0,usePlaceholder:!0},d=(0,o.forwardRef)((function(n,e){var t=n.count,u=void 0===t?f.count:t,s=n.defaultMessageType,d=void 0===s?f.defaultMessageType:s,p=n.onSet,v=n.usePlaceholder,y=void 0===v?f.usePlaceholder:v,m=(0,o.useState)({}),b=m[0],g=m[1],h=(0,o.useCallback)((function(n){return void 0!==b[n]}),[b]),j=(0,o.useCallback)((function(n,e){var t=0;g((function(r){r[n];var o=l(r,[n].map(c));return e&&(o[n]=e),t=Object.keys(o).length,o})),null===p||void 0===p||p.call(null,t)}),[p]),O=(0,o.useCallback)((function(n,e){var t=0,r=e?function(n,r){n[r]=e,t+=1}:void 0;g((function(e){var o={};return Object.keys(e).forEach((function(i){n.test(i)?null===r||void 0===r||r.call(null,o,i):(o[i]=e[i],t+=1)})),o})),null===p||void 0===p||p.call(null,t)}),[p]),S=(0,o.useMemo)((function(){var n=Object.entries(b),e=u>0,t=e?u:n.length,o=[];if(n.every((function(n){var e=a(n,2),u=e[0],l=e[1],c=l.children,s=l.type,f=void 0===s?d:s;return o.push((0,r.jsx)(i.Z,{type:f,children:c},"message-".concat(u))),o.lengthn.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function l(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return r(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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 r(n,e)}(n,e)||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 a(n){var e=function(n,e){if("object"!==c(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===c(e)?e:String(e)}t.d(e,{Um:function(){return d}});var c=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var s=function(){for(var n=arguments.length,e=new Array(n),t=0;t2&&void 0!==arguments[2]?arguments[2]:{},r=t.guard,o=void 0===r?function(){return!0}:r,l=t.set,c=void 0===l?s:l;return function(t){t[n];var r=i({},u(t,[n].map(a)));return o(t,n,e)&&c(t,r,n,e),r}},d=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.set,o=void 0===r?s:r;return function(t){var r={};return Object.keys(t).forEach((function(i){var u=i;n.test(i)?o(t,r,u,e):r[u]=t[u]})),r}};e.ZP=f}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[903],{7504:function(n,e,t){var r=t(5893),o=t(7294),i=t(6886),u=t(7357);function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function f(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return l(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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(n,e)}(n,e)||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.")}()}e.Z=function(n){var e=n.calculateItemBreakpoints,t=void 0===e?function(){return{xs:1}}:e,l=n.layout,a=n.wrapperBoxProps,d=s(n,["calculateItemBreakpoints","layout","wrapperBoxProps"]),p=(0,o.useMemo)((function(){return Object.entries(l).map((function(n,e){var r=f(n,2),u=r[0],l=r[1],a=u;return l?(0,o.createElement)(i.ZP,c({},t(e,a),{key:a,item:!0},l)):void 0}))}),[t,l]);return(0,r.jsx)(u.Z,c({},a,{children:(0,r.jsx)(i.ZP,c({container:!0},d,{children:p}))}))}},5521:function(n,e,t){t.d(e,{Z:function(){return H}});var r=t(5893),o=t(1113),i=t(1496),u=t(2293),l=t(7357),a=t(2992),c=t(4799),s=t(7294),f=t(7169),d=t(4433),p=t(9029),v=t(7533),y=t(8462),m=t(7212),b=t(8619),g=[{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"}],h={width:"40em",height:"40em"},j=t(4390),O=t(582),S=t(4690),w=t(1770),x=t(7750),A=t(1081);function k(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(e).concat(n)]}),[t]),i=(0,s.useCallback)((function(){return o("user")}),[o]);return(0,s.useEffect)((function(){if(n){var e=document.cookie.split(/\s*;\s*/);r(e.reduce((function(n,e){var t,r=P(e.split("=",2),2),o=r[0],i=r[1],u=decodeURIComponent(i);if(u.startsWith("j:"))try{t=JSON.parse(u.substring(2))}catch(l){t=i}else t=i;return n[o]=t,n}),{}))}}),[n]),{cookieJar:t,getCookie:o,getSessionUser:i}};function C(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Z(n){for(var e=1;e0)},ref:e})]})}},9099:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(7294),o={boolean:function(n){return Boolean(n)},number:function(n){return parseInt(String(n),10)||0},string:function(n){return String(n)}},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.postSet,t=n.preSet,r=n.set,i=n.setType,u=void 0===i?"string":i,l=n.valueKey,a=void 0===l?"value":l;return function(n){var i=n.target[a],l=o[u](i);null===t||void 0===t||t.call(null,n),null===r||void 0===r||r.call(null,l),null===e||void 0===e||e.call(null,n)}},u=t(7987);function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function f(n){return function(n){if(Array.isArray(n))return l(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return l(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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(n,e)}(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 d(n){var e=function(n,e){if("object"!==p(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===p(e)?e:String(e)}var p=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var v="input",y={boolean:!1,number:0,string:""},m={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},b=(0,r.forwardRef)((function(n,e){var t=n.input,o=n.inputTestBatch,l=n.onBlurAppend,p=n.onFirstRender,b=n.onFocusAppend,g=n.onUnmount,h=n.required,j=void 0===h?m.required:h,O=n.valueKey,S=n.valueType,w=void 0===S?m.valueType:S,x=n.createInputOnChangeHandlerOptions,A=void 0===x?m.createInputOnChangeHandlerOptions:x,k=A.postSet,P=A.valueKey,I=void 0===P?O:P,C=s(n.createInputOnChangeHandlerOptions,["postSet","valueKey"]),Z=t.props,E=(0,r.useMemo)((function(){return null!==I&&void 0!==I?I:"checked"in Z?"checked":"value"}),[Z,I]),M=Z.onBlur,B=Z.onChange,T=Z.onFocus,F=Z[E],R=void 0===F?y[w]:F,U=s(Z,["onBlur","onChange","onFocus",E].map(d)),N=(0,r.useState)(R),_=N[0],V=N[1],H=(0,r.useState)(!1),K=H[0],D=H[1],q=(0,r.useState)(!1),W=q[0],$=q[1],L=(0,r.useCallback)((function(n){V(n)}),[]),G=(0,r.useMemo)((function(){var n;return o&&(o.isRequired=j,n=(0,u.LT)(a({},v,o))),n}),[o,j]),J=(0,r.useMemo)((function(){return null!==M&&void 0!==M?M:G&&function(){for(var n=arguments.length,e=new Array(n),t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function a(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return u(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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(n,e)}(n,e)||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 c(n){var e=function(n,e){if("object"!==s(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===s(e)?e:String(e)}var s=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var f={count:0,defaultMessageType:"info",onSet:void 0,usePlaceholder:!0},d=(0,o.forwardRef)((function(n,e){var t=n.count,u=void 0===t?f.count:t,s=n.defaultMessageType,d=void 0===s?f.defaultMessageType:s,p=n.onSet,v=n.usePlaceholder,y=void 0===v?f.usePlaceholder:v,m=(0,o.useState)({}),b=m[0],g=m[1],h=(0,o.useCallback)((function(n){return void 0!==b[n]}),[b]),j=(0,o.useCallback)((function(n,e){var t=0;g((function(r){r[n];var o=l(r,[n].map(c));return e&&(o[n]=e),t=Object.keys(o).length,o})),null===p||void 0===p||p.call(null,t)}),[p]),O=(0,o.useCallback)((function(n,e){var t=0,r=e?function(n,r){n[r]=e,t+=1}:void 0;g((function(e){var o={};return Object.keys(e).forEach((function(i){n.test(i)?null===r||void 0===r||r.call(null,o,i):(o[i]=e[i],t+=1)})),o})),null===p||void 0===p||p.call(null,t)}),[p]),S=(0,o.useMemo)((function(){var n=Object.entries(b),e=u>0,t=e?u:n.length,o=[];if(n.every((function(n){var e=a(n,2),u=e[0],l=e[1],c=l.children,s=l.type,f=void 0===s?d:s;return o.push((0,r.jsx)(i.Z,{type:f,children:c},"message-".concat(u))),o.lengthn.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function l(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return r(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.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 r(n,e)}(n,e)||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 a(n){var e=function(n,e){if("object"!==c(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===c(e)?e:String(e)}t.d(e,{Um:function(){return d}});var c=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var s=function(){for(var n=arguments.length,e=new Array(n),t=0;t2&&void 0!==arguments[2]?arguments[2]:{},r=t.guard,o=void 0===r?function(){return!0}:r,l=t.set,c=void 0===l?s:l;return function(t){t[n];var r=i({},u(t,[n].map(a)));return o(t,n,e)&&c(t,r,n,e),r}},d=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.set,o=void 0===r?s:r;return function(t){var r={};return Object.keys(t).forEach((function(i){var u=i;n.test(i)?o(t,r,u,e):r[u]=t[u]})),r}};e.ZP=f}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/923-9d13de6fec2fa4e9.js b/striker-ui/out/_next/static/chunks/923-9d13de6fec2fa4e9.js deleted file mode 100644 index 8d0471e7..00000000 --- a/striker-ui/out/_next/static/chunks/923-9d13de6fec2fa4e9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[923],{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")},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: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,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:C,hiddenLabel:z,size:A,onBlur:()=>{P(!1)},onEmpty:i.useCallback((()=>{j(!1)}),[]),onFilled:q,onFocus:()=>{P(!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 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),[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%"}))),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] + .${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"})})),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:J,renderSuffix:Q,rows:X,startAdornment:ee,type:te="text",value:ne}=n,re=(0,r.Z)(n,M),oe=null!=P.value?P.value:ne,{current:ie}=a.useRef(null!=oe),ae=a.useRef(),le=a.useCallback((e=>{0}),[]),se=(0,z.Z)(P.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=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,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||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)(Ce,(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:J,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),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,Q?Q((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/pages/anvil-b955a7eac68cca34.js b/striker-ui/out/_next/static/chunks/pages/anvil-fbef5033b416c0dd.js similarity index 99% rename from striker-ui/out/_next/static/chunks/pages/anvil-b955a7eac68cca34.js rename to striker-ui/out/_next/static/chunks/pages/anvil-fbef5033b416c0dd.js index 09790692..afa736ee 100644 --- a/striker-ui/out/_next/static/chunks/pages/anvil-b955a7eac68cca34.js +++ b/striker-ui/out/_next/static/chunks/pages/anvil-fbef5033b416c0dd.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{2852:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),c=n(7192),s=n(1796),l=n(8216),d=n(1964),u=n(3616),h=n(1496),f=n(9632),x=n(5893);const m=["className","color","edge","size","sx"],v=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,l.Z)(n.edge)}`],t[`size${(0,l.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${f.Z.thumb}`]:{width:16,height:16},[`& .${f.Z.switchBase}`]:{padding:4,[`&.${f.Z.checked}`]:{transform:"translateX(16px)"}}}))),p=(0,h.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${f.Z.input}`]:t.input},"default"!==n.color&&t[`color${(0,l.Z)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${f.Z.checked}`]:{transform:"translateX(20px)"},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${f.Z.checked} + .${f.Z.track}`]:{opacity:.5},[`&.${f.Z.disabled} + .${f.Z.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${f.Z.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>(0,o.Z)({"&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${f.Z.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?(0,s.$n)(e.palette[t.color].main,.62):(0,s._j)(e.palette[t.color].main,.55)}},[`&.${f.Z.checked} + .${f.Z.track}`]:{backgroundColor:e.palette[t.color].main}}))),g=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),j=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),b=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiSwitch"}),{className:i,color:s="primary",edge:d=!1,size:h="medium",sx:b}=n,Z=(0,r.Z)(n,m),w=(0,o.Z)({},n,{color:s,edge:d,size:h}),y=(e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,d={root:["root",n&&`edge${(0,l.Z)(n)}`,`size${(0,l.Z)(r)}`],switchBase:["switchBase",`color${(0,l.Z)(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,c.Z)(d,f.H,t);return(0,o.Z)({},t,u)})(w),k=(0,x.jsx)(j,{className:y.thumb,ownerState:w});return(0,x.jsxs)(v,{className:(0,a.Z)(y.root,i),sx:b,ownerState:w,children:[(0,x.jsx)(p,(0,o.Z)({type:"checkbox",icon:k,checkedIcon:k,ref:t,ownerState:w},Z,{classes:(0,o.Z)({},y,{root:y.switchBase})})),(0,x.jsx)(g,{className:y.track,ownerState:w})]})}));t.Z=b},6069:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/anvil",function(){return n(1692)}])},1939:function(e,t,n){"use strict";var r=n(5893),o=n(7357),i=n(7169);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l="Decorator",d={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};t.Z=function(e){var t,n=e.colour,l=e.sx,u=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},u,{className:d[n],sx:c((t={borderRadius:i.n_,height:"100%",width:"1.4em"},a(t,"&.".concat(d.ok),{backgroundColor:i.Ej}),a(t,"&.".concat(d.warning),{backgroundColor:i.Wd}),a(t,"&.".concat(d.error),{backgroundColor:i.hM}),a(t,"&.".concat(d.off),{backgroundColor:i.s7}),t),l)}))}},6632:function(e,t,n){"use strict";var r=n(7294);function o(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;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionProceedText,n=void 0===t?"":t,o=e.content,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,d=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:n,content:c,titleText:l},d))}},1692:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tt}});var r=n(5893),o=n(1496),i=n(7357),a=n(9008),c=n(1163),s=n(7294),l=n(2029),d=n(7169),u={uuid:"",setAnvilUuid:function(){return null}},h=(0,s.createContext)(u),f=function(e){var t=e.children,n=(0,s.useState)(""),o=n[0],i=n[1];return(0,r.jsx)(h.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:t})},x=n(3679),m=n(1905),v=n(2852),p=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),g=n(1939),j=n(8336),b=n(7750);function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},y=(0,o.ZP)(i.Z)((function(){return Z({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),k=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},_=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},S=function(e){var t=e.list,n=(0,s.useContext)(h).uuid,o=t.findIndex((function(e){return e.anvil_uuid===n}));return(0,r.jsx)(y,Z({},"children",""!==n&&(0,r.jsxs)(r.Fragment,Z({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(g.Z,{colour:k(t[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:t[o].anvil_name}),(0,r.jsx)(b.z,{text:p.get(t[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,Z({p:1},"children",(0,r.jsx)(v.Z,Z({checked:_(t[o])},"onChange",(function(){var e=t[o],n=e.anvil_uuid;(0,j.Z)("".concat(l.Z,"/command/").concat(_(e)?"stop-an":"start-an","/").concat(n),{})})))))]))))},O=n(8462),P=n(7720),A=n(7212),N=function(e){var t=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:t.anvil_name}),(0,r.jsx)(b.Ac,{text:p.get(t.anvil_state)||"State unavailable"})]})};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[t].link.link_speed,e.bond_state=e.hosts[t].link.link_state})),n},ae=n(2749);function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nd.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(z,{list:g}),(0,r.jsx)(ne,{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)(G,{}),(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)(z,{list:g}),(0,r.jsx)(ne,{anvil:g.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(G,{}),(0,r.jsx)(oe,{})]})]})),e}),[g,t]),Z=(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)(F.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===u&&v((null===n||void 0===n?void 0:n.toString())||"")}),[u,n,v]),(0,r.jsxs)(et,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(f,{children:[(0,r.jsx)(H.Z,{}),Z]})]})}}},function(e){e.O(0,[382,923,894,182,536,303,746,203,899,140,116,774,888,179],(function(){return t=6069,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{2852:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),c=n(7192),s=n(1796),l=n(8216),d=n(1964),u=n(3616),h=n(1496),f=n(9632),x=n(5893);const m=["className","color","edge","size","sx"],v=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,l.Z)(n.edge)}`],t[`size${(0,l.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${f.Z.thumb}`]:{width:16,height:16},[`& .${f.Z.switchBase}`]:{padding:4,[`&.${f.Z.checked}`]:{transform:"translateX(16px)"}}}))),p=(0,h.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${f.Z.input}`]:t.input},"default"!==n.color&&t[`color${(0,l.Z)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${f.Z.checked}`]:{transform:"translateX(20px)"},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${f.Z.checked} + .${f.Z.track}`]:{opacity:.5},[`&.${f.Z.disabled} + .${f.Z.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${f.Z.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>(0,o.Z)({"&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${f.Z.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?(0,s.$n)(e.palette[t.color].main,.62):(0,s._j)(e.palette[t.color].main,.55)}},[`&.${f.Z.checked} + .${f.Z.track}`]:{backgroundColor:e.palette[t.color].main}}))),g=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),j=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),b=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiSwitch"}),{className:i,color:s="primary",edge:d=!1,size:h="medium",sx:b}=n,Z=(0,r.Z)(n,m),w=(0,o.Z)({},n,{color:s,edge:d,size:h}),y=(e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,d={root:["root",n&&`edge${(0,l.Z)(n)}`,`size${(0,l.Z)(r)}`],switchBase:["switchBase",`color${(0,l.Z)(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,c.Z)(d,f.H,t);return(0,o.Z)({},t,u)})(w),k=(0,x.jsx)(j,{className:y.thumb,ownerState:w});return(0,x.jsxs)(v,{className:(0,a.Z)(y.root,i),sx:b,ownerState:w,children:[(0,x.jsx)(p,(0,o.Z)({type:"checkbox",icon:k,checkedIcon:k,ref:t,ownerState:w},Z,{classes:(0,o.Z)({},y,{root:y.switchBase})})),(0,x.jsx)(g,{className:y.track,ownerState:w})]})}));t.Z=b},6069:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/anvil",function(){return n(1692)}])},1939:function(e,t,n){"use strict";var r=n(5893),o=n(7357),i=n(7169);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l="Decorator",d={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};t.Z=function(e){var t,n=e.colour,l=e.sx,u=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},u,{className:d[n],sx:c((t={borderRadius:i.n_,height:"100%",width:"1.4em"},a(t,"&.".concat(d.ok),{backgroundColor:i.Ej}),a(t,"&.".concat(d.warning),{backgroundColor:i.Wd}),a(t,"&.".concat(d.error),{backgroundColor:i.hM}),a(t,"&.".concat(d.off),{backgroundColor:i.s7}),t),l)}))}},6632:function(e,t,n){"use strict";var r=n(7294);function o(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;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionProceedText,n=void 0===t?"":t,o=e.content,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,d=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:n,content:c,titleText:l},d))}},1692:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tt}});var r=n(5893),o=n(1496),i=n(7357),a=n(9008),c=n(1163),s=n(7294),l=n(2029),d=n(7169),u={uuid:"",setAnvilUuid:function(){return null}},h=(0,s.createContext)(u),f=function(e){var t=e.children,n=(0,s.useState)(""),o=n[0],i=n[1];return(0,r.jsx)(h.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:t})},x=n(3679),m=n(1905),v=n(2852),p=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),g=n(1939),j=n(8336),b=n(7750);function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},y=(0,o.ZP)(i.Z)((function(){return Z({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),k=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},_=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},S=function(e){var t=e.list,n=(0,s.useContext)(h).uuid,o=t.findIndex((function(e){return e.anvil_uuid===n}));return(0,r.jsx)(y,Z({},"children",""!==n&&(0,r.jsxs)(r.Fragment,Z({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(g.Z,{colour:k(t[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:t[o].anvil_name}),(0,r.jsx)(b.z,{text:p.get(t[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,Z({p:1},"children",(0,r.jsx)(v.Z,Z({checked:_(t[o])},"onChange",(function(){var e=t[o],n=e.anvil_uuid;(0,j.Z)("".concat(l.Z,"/command/").concat(_(e)?"stop-an":"start-an","/").concat(n),{})})))))]))))},O=n(8462),P=n(7720),A=n(7212),N=function(e){var t=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:t.anvil_name}),(0,r.jsx)(b.Ac,{text:p.get(t.anvil_state)||"State unavailable"})]})};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[t].link.link_speed,e.bond_state=e.hosts[t].link.link_state})),n},ae=n(2749);function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nd.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(z,{list:g}),(0,r.jsx)(ne,{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)(G,{}),(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)(z,{list:g}),(0,r.jsx)(ne,{anvil:g.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(G,{}),(0,r.jsx)(oe,{})]})]})),e}),[g,t]),Z=(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)(F.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===u&&v((null===n||void 0===n?void 0:n.toString())||"")}),[u,n,v]),(0,r.jsxs)(et,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(f,{children:[(0,r.jsx)(H.Z,{}),Z]})]})}}},function(e){e.O(0,[382,483,894,182,614,485,746,203,899,140,116,774,888,179],(function(){return t=6069,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/config-0381f0311f2b572a.js b/striker-ui/out/_next/static/chunks/pages/config-0381f0311f2b572a.js new file mode 100644 index 00000000..a507b78c --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/config-0381f0311f2b572a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{5685:function(e,n,t){"use strict";var r=t(7892),o=t(5893);n.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")},8262:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});var r=t(3366),o=t(7462),i=t(7294),l=t(6010),c=t(7192),a=t(7579),s=t(8216),u=t(9964),d=t(6628),f=t(5113),p=t(3616),h=t(1496),m=t(8979);function y(e){return(0,m.Z)("MuiDialog",e)}var b=(0,t(6087).Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var v=(0,i.createContext)({}),g=t(7227),x=t(2734),j=t(5893);const w=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],P=(0,h.ZP)(g.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,n)=>n.backdrop})({zIndex:-1}),Z=(0,h.ZP)(u.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,n)=>n.root})({"@media print":{position:"absolute !important"}}),O=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.container,n[`scroll${(0,s.Z)(t.scroll)}`]]}})((({ownerState:e})=>(0,o.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"}}))),S=(0,h.ZP)(f.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.paper,n[`scrollPaper${(0,s.Z)(t.scroll)}`],n[`paperWidth${(0,s.Z)(String(t.maxWidth))}`],t.fullWidth&&n.paperFullWidth,t.fullScreen&&n.paperFullScreen]}})((({theme:e,ownerState:n})=>(0,o.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${b.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==n.maxWidth&&{maxWidth:`${e.breakpoints.values[n.maxWidth]}${e.breakpoints.unit}`,[`&.${b.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${b.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var A=i.forwardRef((function(e,n){const t=(0,p.Z)({props:e,name:"MuiDialog"}),u=(0,x.Z)(),h={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":b,BackdropComponent:g,BackdropProps:A,children:k,className:C,disableEscapeKeyDown:I=!1,fullScreen:T=!1,fullWidth:E=!1,maxWidth:M="sm",onBackdropClick:D,onClose:F,open:B,PaperComponent:W=f.Z,PaperProps:R={},scroll:U="paper",TransitionComponent:N=d.Z,transitionDuration:L=h,TransitionProps:$}=t,_=(0,r.Z)(t,w),H=(0,o.Z)({},t,{disableEscapeKeyDown:I,fullScreen:T,fullWidth:E,maxWidth:M,scroll:U}),V=(e=>{const{classes:n,scroll:t,maxWidth:r,fullWidth:o,fullScreen:i}=e,l={root:["root"],container:["container",`scroll${(0,s.Z)(t)}`],paper:["paper",`paperScroll${(0,s.Z)(t)}`,`paperWidth${(0,s.Z)(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,c.Z)(l,y,n)})(H),z=i.useRef(),G=(0,a.Z)(b),K=i.useMemo((()=>({titleId:G})),[G]);return(0,j.jsx)(Z,(0,o.Z)({className:(0,l.Z)(V.root,C),BackdropProps:(0,o.Z)({transitionDuration:L,as:g},A),closeAfterTransition:!0,BackdropComponent:P,disableEscapeKeyDown:I,onClose:F,open:B,ref:n,onClick:e=>{z.current&&(z.current=null,D&&D(e),F&&F(e,"backdropClick"))},ownerState:H},_,{children:(0,j.jsx)(N,(0,o.Z)({appear:!0,in:B,timeout:L,role:"presentation"},$,{children:(0,j.jsx)(O,{className:(0,l.Z)(V.container),onMouseDown:e=>{z.current=e.target===e.currentTarget},ownerState:H,children:(0,j.jsx)(S,(0,o.Z)({as:W,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":G},R,{className:(0,l.Z)(V.paper,R.className),ownerState:H,children:(0,j.jsx)(v.Provider,{value:K,children:k})}))})}))}))}))},7579:function(e,n,t){"use strict";var r;t.d(n,{Z:function(){return c}});var o=t(7294);let i=0;const l=(r||(r=t.t(o,2))).useId;function c(e){if(void 0!==l){const n=l();return null!=e?e:n}return function(e){const[n,t]=o.useState(e),r=e||n;return o.useEffect((()=>{null==n&&(i+=1,t(`mui-${i}`))}),[n]),r}(e)}},329:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return t(6028)}])},157:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(8262),l=t(7294),c=t(7169),a=t(4825),s=t(4690),u=t(3679),d=t(2152),f=t(7750);function p(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 b(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var v={blue:c.Ej,red:c.hM},g=(0,l.forwardRef)((function(e,n){var t=e.actionCancelText,p=void 0===t?"Cancel":t,h=e.actionProceedText,g=e.contentContainerProps,x=void 0===g?{}:g,j=e.closeOnProceed,w=void 0!==j&&j,P=e.content,Z=e.dialogProps,O=void 0===Z?{}:Z,S=O.open,A=void 0!==S&&S,k=O.PaperProps,C=void 0===k?{}:k,I=e.disableProceed,T=e.formContent,E=e.loading,M=void 0!==E&&E,D=e.loadingAction,F=void 0!==D&&D,B=e.onActionAppend,W=e.onCancelAppend,R=e.onProceedAppend,U=e.onSubmitAppend,N=e.openInitially,L=void 0!==N&&N,$=e.preActionArea,_=e.proceedButtonProps,H=void 0===_?{}:_,V=e.proceedColour,z=void 0===V?"blue":V,G=e.scrollContent,K=void 0!==G&&G,q=e.scrollBoxProps,X=(void 0===q?{}:q).sx,Y=e.titleText,J=y(e.dialogProps,["open","PaperProps"]),Q=y(e.scrollBoxProps,["sx"]),ee=C.sx,ne=y(C,["sx"]),te=H.disabled,re=void 0===te?I:te,oe=H.sx,ie=y(H,["disabled","sx"]),le=(0,l.useState)(L),ce=le[0],ae=le[1],se=(0,l.useMemo)((function(){return n?ce:A}),[A,ce,n]),ue=(0,l.useMemo)((function(){return v[z]}),[z]),de=(0,l.useMemo)((function(){var e,n,t,r=function(){for(var e=arguments.length,n=new Array(e),t=0;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}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:l.lD,textDecorationColor:l.s7},t),children:(0,r.jsxs)(c.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},3906:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(6607),l=t(8610);function c(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}),[f.length]),m=(0,o.useMemo)((function(){return d.length>1}),[d.length]),y=(0,o.useCallback)((function(e){var n=e.confirmDialogProps,t=void 0===n?{}:n,o=e.formSummaryProps,i=void 0===o?{}:o,c=e.getConfirmDialogTitle,u=e.onProceedAppend,d=e.renderEntry;return a({actionProceedText:"Delete",content:(0,r.jsx)(l.Z,a({entries:s,maxDepth:0,renderEntry:d},i)),onProceedAppend:u,proceedColour:"red",titleText:c(f.length)},t)}),[s,f.length]),b=(0,o.useCallback)((function(e){return s[e]}),[s]),v=(0,o.useCallback)((function(e){return u(d.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[d]),g=(0,o.useCallback)((function(e,n){return u((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:y,checklist:s,checks:f,getCheck:b,hasAllChecks:p,hasChecks:h,multipleItems:m,setAllChecks:v,setCheck:g}}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,c=void 0===o?"":o,a=e.titleText,s=void 0===a?"":a,u=l(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:c,titleText:s},u))}},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 Je}});var r=t(5893),o=t(6886),i=t(9008),l=t(7294),c=t(2029),a=t(157),s=t(5521),u=t(1905),d=t(3106),f=t(4188),p=t(4390);function h(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(4894),g=t(6607),x=t(480),j=t(2349),w=t(7750);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 Z(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(){p.Z.delete("/host/connection",{data:n}).catch((function(e){var n=(0,k.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(){A((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){I[e].isChecked=t,T((function(e){return oe({},e)}))},renderListItem:function(e,n){var t=n.isPingTest,o=void 0!==t&&t;return(0,r.jsx)(S.Z,{row:!0,spacing:0,children:(0,r.jsxs)(S.Z,{spacing:0,children:[(0,r.jsx)(w.$_,{children:e}),(0,r.jsx)(ne,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(V,{ref:s}),(0,r.jsx)(a.Z,oe({closeOnProceed:!0},v,{ref:f}))]})},ce=t(582),ae=t(5741),se=t(3906);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[y]),M=(0,u.Z)("".concat(c.Z,"/ssh-key/conflict"),{onError:function(e){h({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,l=t.stateUUID;e[l]=fe({},n[l],{hostName:r,hostUUID:o,ipAddress:i})})),e}),{})}))},refreshInterval:i}).isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K.TZ,{header:"Manage changed SSH keys",loading:M,children:[(0,r.jsxs)(S.Z,{spacing:".2em",children:[(0,r.jsx)(w.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(G.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(ae.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)(z.Z,{header:(0,r.jsxs)(S.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)(S.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(w.Ac,{children:"Host name"}),(0,r.jsx)(ce.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(S.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(w.Ac,{children:"IP address"}),(0,r.jsx)(ce.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(ce.Z,{sx:{flexGrow:1}})]}),allowCheckAll:E,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!A,edit:!0,getListCheckboxProps:function(){return{checked:O}},listEmpty:(0,r.jsx)(w.Ac,{align:"center",children:"No conflicting keys found."}),listItems:y,onAllCheckboxChange:function(e,n){C(n)},onDelete:function(){var e,n=P.reduce((function(e,n){if(!Z(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(){p.Z.delete("/ssh-key/conflict",{data:n}).catch((function(e){var n=(0,k.Z)(e);n.children="Failed to delete selected SSH key conflicts. ".concat(n.children),h(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){I(e,t)},renderListItem:function(e,n){var t=n.hostName,o=n.ipAddress;return(0,r.jsxs)(S.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(w.Ac,{children:t}),(0,r.jsx)(w.Ac,{children:o})]})},renderListItemCheckboxState:function(e){return Z(e)}})]}),T]}),(0,r.jsx)(a.Z,fe({closeOnProceed:!0},g,{ref:s}))]})};function me(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ye(e){for(var n=1;n0),c(be,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(ge),ref:m,required:p})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(C.Z,{input:(0,r.jsx)(T.Z,{id:be,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(be)}},onFinishBatch:t(be),tests:[{test:E.HJ},{onFailure:function(){i(be,{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(be),ref:y,required:v})}}:void 0}),[t,o,v,p,i,c,h]);return(0,r.jsx)(A.Z,{columns:{xs:1,sm:2,md:3},layout:ye({"common-user-input-cell-name":{children:(0,r.jsx)(C.Z,{input:(0,r.jsx)(T.Z,{id:ve,inputProps:{readOnly:u},label:xe,value:s}),inputTestBatch:(0,E.Gn)(xe,(function(){i(ve)}),{onFinishBatch:t(ve)},(function(e){i(ve,{children:e})})),onFirstRender:o(ve),required:!0}),md:1,sm:2}},x),spacing:"1em"})},Pe=t(2545),Ze=t(8610),Oe=t(6632),Se=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=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);l=!0);}catch(a){c=!0,o=a}finally{try{l||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||Ye(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 Xe(e){return function(e){if(Array.isArray(e))return Ve(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ye(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 Ye(e,n){if(e){if("string"===typeof e)return Ve(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)?Ve(e,n):void 0}}var Je=function(e){var n=e.refreshInterval,t=void 0===n?6e4:n,d=(0,M.Z)().protect,f=(0,l.useState)(!1),p=f[0],h=f[1],m=(0,l.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:p},onCancelAppend:function(){h(!1)},onProceedAppend:function(){h(!1)},titleText:""}),y=m[0],b=m[1],v=qe((0,D.Z)(void 0,d),2),g=v[0],x=v[1],j=qe((0,D.Z)("",d),2),w=j[0],P=j[1],Z=(0,u.Z)("".concat(c.Z,"/host/local"),{onError:function(){P("Unknown")},onSuccess:function(e){var n=e.installTarget,t=e.shortHostName;x(n),P(t)},refreshInterval:t}),O=Z.data,S=Z.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:S?"Loading...":"".concat(null===O||void 0===O?void 0:O.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)(He,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=Ke(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}function b(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var v={blue:l.Ej,red:l.hM},g=(0,c.forwardRef)((function(e,n){var t=e.actionCancelText,p=void 0===t?"Cancel":t,h=e.actionProceedText,g=e.contentContainerProps,x=void 0===g?{}:g,j=e.closeOnProceed,w=void 0!==j&&j,P=e.content,O=e.dialogProps,A=void 0===O?{}:O,Z=A.open,S=void 0!==Z&&Z,k=A.PaperProps,I=void 0===k?{}:k,C=e.disableProceed,T=e.formContent,E=e.loading,M=void 0!==E&&E,D=e.loadingAction,F=void 0!==D&&D,U=e.onActionAppend,R=e.onCancelAppend,N=e.onProceedAppend,B=e.onSubmitAppend,L=e.openInitially,_=void 0!==L&&L,H=e.preActionArea,V=e.proceedButtonProps,$=void 0===V?{}:V,G=e.proceedColour,W=void 0===G?"blue":G,q=e.scrollContent,z=void 0!==q&&q,K=e.scrollBoxProps,X=(void 0===K?{}:K).sx,J=e.titleText,Y=y(e.dialogProps,["open","PaperProps"]),Q=y(e.scrollBoxProps,["sx"]),ee=I.sx,ne=y(I,["sx"]),te=$.disabled,re=void 0===te?C:te,oe=$.sx,ie=y($,["disabled","sx"]),ce=(0,c.useState)(_),le=ce[0],ae=ce[1],ue=(0,c.useMemo)((function(){return n?le:S}),[S,le,n]),se=(0,c.useMemo)((function(){return v[W]}),[W]),de=(0,c.useMemo)((function(){var e,n,t,r=function(){for(var e=arguments.length,n=new Array(e),t=0;t1?n-1:0),r=1;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=s(e,["children","sx"]);return(0,r.jsx)(i.Z,u({underline:"hover",variant:"subtitle1"},a,{sx:u({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"}})]})}))}},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,u=void 0===a?"":a,s=c(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:l,titleText:u},s))}},3106:function(e,n){"use strict";n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},6256:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return sn}});var r=t(5893),o=t(6886),i=t(9008),c=t(7294),l=t(2029),a=t(157),u=t(5521),s=t(1905),d=t(3106),f=t(4188),p=t(4390);function h(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(4894),g=t(6607),x=t(480),j=t(2349),w=t(7750);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){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(){p.Z.delete("/host/connection",{data:n}).catch((function(e){var n=(0,k.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(){S((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){C[e].isChecked=t,T((function(e){return oe({},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)(w.$_,{children:e}),(0,r.jsx)(ne,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(G,{ref:u}),(0,r.jsx)(a.Z,oe({closeOnProceed:!0},v,{ref:f}))]})},le=t(582),ae=t(5741);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[v]),S=(0,s.Z)("".concat(l.Z,"/ssh-key/conflict"),{onError:function(e){y({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:function(e){g((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]=de({},n[c],{hostName:r,hostUUID:o,ipAddress:i})})),e}),{})}))},refreshInterval:i}).isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(z.TZ,{header:"Manage changed SSH keys",loading:S,children:[(0,r.jsxs)(Z.Z,{spacing:".2em",children:[(0,r.jsx)(w.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(q.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(ae.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)(W.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)(w.Ac,{children:"Host name"}),(0,r.jsx)(le.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(w.Ac,{children:"IP address"}),(0,r.jsx)(le.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(le.Z,{sx:{flexGrow:1}})]}),allowCheckAll:A,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,edit:!0,listEmpty:(0,r.jsx)(w.Ac,{align:"center",children:"No conflicting keys found."}),listItems:v,onAllCheckboxChange:function(e,n){Object.keys(v).forEach((function(e){v[e].isChecked=n})),g((function(e){return de({},e)}))},onDelete:function(){var e,n=0,t=Object.entries(v).reduce((function(e,t){var r=fe(t,2),o=r[0],i=r[1],c=i.hostUUID;return i.isChecked&&(e[c]||(e[c]=[]),e[c].push(o),n+=1),e}),{});P({actionProceedText:"Delete",content:"Resolve ".concat(n," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:function(){p.Z.delete("/ssh-key/conflict",{data:t}).catch((function(e){var n=(0,k.Z)(e);n.children="Failed to delete selected SSH key conflicts. ".concat(n.children),y(n)}))},proceedColour:"red",titleText:"Delete ".concat(n," conflicting SSH keys?")}),null===(e=d.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:function(e,n,t){var r;v[e].isChecked=t,null===(r=f.current.setCheckAll)||void 0===r||r.call(null,Object.values(v).every((function(e){return e.isChecked}))),g((function(e){return de({},e)}))},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)(w.Ac,{children:t}),(0,r.jsx)(w.Ac,{children:o})]})},renderListItemCheckboxState:function(e,n){return!0===n.isChecked},ref:f})]}),O]}),(0,r.jsx)(a.Z,de({closeOnProceed:!0},j,{ref:d}))]})};function he(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function me(e){for(var n=1;n0),l(ye,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(ve),ref:m,required:p})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(T.Z,{id:ye,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(ye)}},onFinishBatch:t(ye),tests:[{test:E.HJ},{onFailure:function(){i(ye,{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(ye),ref:y,required:v})}}:void 0}),[t,o,v,p,i,l,h]);return(0,r.jsx)(S.Z,{columns:{xs:1,sm:2,md:3},layout:me({"common-user-input-cell-name":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(T.Z,{id:be,inputProps:{readOnly:s},label:ge,value:u}),inputTestBatch:(0,E.Gn)(ge,(function(){i(be)}),{onFinishBatch:t(be)},(function(e){i(be,{children:e})})),onFirstRender:o(be),required:!0}),md:1,sm:2}},x),spacing:"1em"})},we=t(2545),Pe=t(7212),Oe=t(8462),Ae=t(8216);function Ze(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0}),[o.length]),l=(0,c.useCallback)((function(e){var t=e.confirmDialogProps,i=void 0===t?{}:t,c=e.formSummaryProps,l=void 0===c?{}:c,a=e.getConfirmDialogTitle;return De({actionProceedText:"Delete",content:(0,r.jsx)(Ee,De({entries:n,maxDepth:0},l)),proceedColour:"red",titleText:a(o.length)},i)}),[n,o.length]),a=(0,c.useCallback)((function(e){return n[e]}),[n]),u=(0,c.useCallback)((function(e,n){return t((0,g.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:l,checklist:n,checks:o,getCheck:a,hasChecks:i,setCheck:u}},Ue=t(6632),Re=t(8859);function Ne(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 ln(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)||un(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 an(e){return function(e){if(Array.isArray(e))return tn(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||un(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 un(e,n){if(e){if("string"===typeof e)return tn(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)?tn(e,n):void 0}}var sn=function(e){var n=e.refreshInterval,t=void 0===n?6e4:n,d=(0,M.Z)().protect,f=(0,c.useState)(!1),p=f[0],h=f[1],m=(0,c.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:p},onCancelAppend:function(){h(!1)},onProceedAppend:function(){h(!1)},titleText:""}),y=m[0],b=m[1],v=ln((0,D.Z)(void 0,d),2),g=v[0],x=v[1],j=ln((0,D.Z)("",d),2),w=j[0],P=j[1],O=(0,s.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}),A=O.data,Z=O.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:Z?"Loading...":"".concat(null===A||void 0===A?void 0:A.shortHostName," Config")})}),(0,r.jsx)(u.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)(nn,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=cn(e,["onProceedAppend"]);b((function(e){return on({},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}function y(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x={blue:c.Ej,red:c.hM},g=(0,l.forwardRef)((function(e,n){var t=e.actionCancelText,p=void 0===t?"Cancel":t,m=e.actionProceedText,g=e.contentContainerProps,b=void 0===g?{}:g,j=e.closeOnProceed,w=void 0!==j&&j,Z=e.content,O=e.dialogProps,S=void 0===O?{}:O,C=S.open,P=void 0!==C&&C,A=S.PaperProps,k=void 0===A?{}:A,I=e.disableProceed,D=e.formContent,U=e.loading,E=void 0!==U&&U,F=e.loadingAction,L=void 0!==F&&F,T=e.onActionAppend,N=e.onCancelAppend,M=e.onProceedAppend,B=e.onSubmitAppend,_=e.openInitially,R=void 0!==_&&_,W=e.preActionArea,H=e.proceedButtonProps,V=void 0===H?{}:H,z=e.proceedColour,$=void 0===z?"blue":z,G=e.scrollContent,X=void 0!==G&&G,J=e.scrollBoxProps,Y=(void 0===J?{}:J).sx,q=e.titleText,K=v(e.dialogProps,["open","PaperProps"]),Q=v(e.scrollBoxProps,["sx"]),ee=k.sx,ne=v(k,["sx"]),te=V.disabled,re=void 0===te?I:te,oe=V.sx,ie=v(V,["disabled","sx"]),le=(0,l.useState)(R),ce=le[0],ae=le[1],ue=(0,l.useMemo)((function(){return n?ce:P}),[P,ce,n]),se=(0,l.useMemo)((function(){return x[$]}),[$]),fe=(0,l.useMemo)((function(){var e,n,t,r=function(){for(var e=arguments.length,n=new Array(e),t=0;t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(n).concat(e)]}),[t]),i=(0,s.useCallback)((function(){return o("user")}),[o]);return(0,s.useEffect)((function(){if(e){var n=document.cookie.split(/\s*;\s*/);r(n.reduce((function(e,n){var t,r=P(n.split("=",2),2),o=r[0],i=r[1],l=decodeURIComponent(i);if(l.startsWith("j:"))try{t=JSON.parse(l.substring(2))}catch(c){t=i}else t=i;return e[o]=t,e}),{}))}}),[e]),{cookieJar:t,getCookie:o,getSessionUser:i}};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 I(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),l=t(7169);function c(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}n.Z=function(e){var n=e.onClearIndicatorClick,t=v(e,["onClearIndicatorClick"]),y=t.sx,x=t.value,g=v(t,["sx","value"]),b=(0,d.useMemo)((function(){var e;return h((m(e={},"& .".concat(i.Z.icon),{color:p.s7}),m(e,"& .".concat(l.Z.root),{marginRight:".8em"}),m(e,"& .".concat(c.Z.root),{color:p.s7,visibility:"hidden"}),m(e,"&:hover .".concat(l.Z.root," .").concat(c.Z.root,",\n &.").concat(a.Z.focused," .").concat(l.Z.root," .").concat(c.Z.root),{visibility:"visible"}),e),y)}),[y]),j=(0,d.useMemo)((function(){return String(x).length>0&&n&&(0,r.jsx)(u.Z,{position:"end",children:(0,r.jsx)(s.Z,{onClick:n,children:(0,r.jsx)(o.Z,{fontSize:"small"})})})}),[n,x]);return(0,r.jsx)(f.Z,h({endAdornment:j,value:x},g,{sx:b}))}},1081:function(e,n,t){"use strict";var r=t(7294);n.Z=function(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},7241:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ie}});var r=t(5893),o=t(9008),i=t(4051),l=t.n(i),c=t(7294),a=t(7357),u=t(2428),s=t(2026),f=t(1797),d=t(5293),p=t.n(d),m=t(2029),h=t(7169),v=t(8128),y=t(3631),x=t(4390),g=t(157),b=t(4825),j=t(1496),w=t(3457),Z=t(3640),O=t(480),S=t(267),C=t(1925),P=t(5934),A=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],k=new Map(A),I=t(4427),D=t(9),U=t(192),E=t(2879);function F(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]:B,n=e.fileName,t=e.fileType,o=e.fileLocations,i=e.isReadonly,l=e.onChange,c=(0,P.Z)(),a="file-name-".concat(c),u="File name",s="file-type-".concat(c),f="File type";return(0,r.jsxs)(w.Z,{sx:{"> :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(Z.Z,{children:[(0,r.jsx)(U.Z,{htmlFor:a,children:u}),(0,r.jsx)(D.Z,{defaultValue:n,disabled:i,id:a,label:u,onChange:function(e){var t=e.target.value;null===l||void 0===l||l.call(null,{fileName:t===n?void 0:t})}})]}),t&&(0,r.jsxs)(Z.Z,{children:[(0,r.jsx)(U.Z,{htmlFor:s,children:f}),(0,r.jsx)(E.Z,{defaultValue:t,disabled:i,id:s,input:(0,r.jsx)(D.Z,{label:f}),onChange:function(e){var n=e.target.value;null===l||void 0===l||l.call(null,{fileType:n===t?void 0:n})},children:A.map((function(e){var n=L(e,2),t=n[0],o=L(n[1],2)[1];return(0,r.jsx)(I.Z,{value:t,children:o},t)}))})]}),o.map((function(e,n){var t=e.anvilName,o=e.anvilDescription,c=e.anvilUUID,a=e.isFileLocationActive;return(0,r.jsx)(O.Z,{control:(0,r.jsx)(_,{checkedIcon:(0,r.jsx)(S.Z,{}),defaultChecked:a,disabled:i,icon:(0,r.jsx)(C.Z,{}),onChange:function(e){var t=e.target.checked;null===l||void 0===l||l.call(null,{isFileLocationActive:t===a?void 0:t},{fileLocationIndex:n})}}),label:"".concat(t,": ").concat(o),sx:{color:h.lD},value:"".concat(c,"-sync")},c)}))]})};R.defaultProps=B;var W=R,H=t(2152),V=t(1200);function z(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]:q,n=e.filesOverview,t=e.onEditFilesComplete,o=e.onPurgeFilesComplete,i=(0,c.useState)([]),u=i[0],s=i[1],f=(0,c.useState)([]),d=f[0],p=f[1],j=(0,c.useState)(!1),w=j[0],Z=j[1],O=(0,c.useState)(!1),S=O[0],C=O[1],P=(0,c.useState)(0),A=P[0],k=P[1],I={backgroundColor:h.hM,color:h.lD,"&:hover":{backgroundColor:h.hM}},D=function(e){return function(n){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fileLocationIndex;void 0!==t?u[e].fileLocations[t]=J({},u[e].fileLocations[t],n):u[e]=J({},u[e],n)}},U=function(e){e.preventDefault(),Z(!0);var n=u.reduce((function(e,n){var t=n.fileLocations,r=n.fileName,o=n.fileType,i=n.fileUUID,l={};void 0!==r&&(l.fileName=r),void 0!==o&&(l.fileType=o);var c=t.reduce((function(e,n){var t=n.fileLocationUUID,r=n.isFileLocationActive;return void 0!==r&&e.push({fileLocationUUID:t,isFileLocationActive:r}),e}),[]);return c.length>0&&(l.fileLocations=c),Object.keys(l).length>0&&e.push(x.Z.put("/file/".concat(i),l)),e}),[]);Promise.all(n).then((function(){Z(!1)})).then(t)},E=function(){C(!1),Z(!0);var e=d.filter((function(e){return e.isSelected})).map((function(e){var n=e.fileUUID;return x.Z.delete("/file/".concat(n))}));Promise.all(e).then((function(){Z(!1)})).then(o)},F=function(){C(!1)},L=function(){var e=d.filter((function(e){return e.isSelected})).length;k(e),e>0&&C(!0)};return(0,c.useEffect)((function(){Z(!0),Promise.all(n.map(function(){var e=G(l().mark((function e(n){var t,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=J({},n,{fileLocations:[]}),e.prev=1,e.next=4,(0,V.Z)("".concat(m.Z,"/file/").concat(n.fileUUID));case 4:r=e.sent,t.fileLocations=r.map((function(e){var n=Y(e,10),t=n[5],r=n[6],o=n[7],i=n[8];return{anvilDescription:n[9],anvilName:i,anvilUUID:o,fileLocationUUID:t,isFileLocationActive:1===parseInt(r,10)}})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t.dataIncompleteError=e.t0;case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(n){return e.apply(this,arguments)}}())).then((function(e){p(e);for(var n=[],t=0;t :not(:first-child)":{marginTop:"1em"}},children:[d.map((function(e,n){var t=e.fileName,o=e.fileLocations,i=e.fileType,l=e.fileUUID;return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"row","& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(a.Z,{sx:{marginTop:".4em"},children:(0,r.jsx)(v.Z,{onChange:function(e){var t=e.target.checked;d[n].isSelected=t},sx:X({color:h.s7},"&.".concat(y.Z.checked),{color:h.lD})})}),(0,r.jsx)(W,{fileName:t,fileType:i,fileLocations:o,onChange:D(n)})]},"file-edit-".concat(l))})),d.length>0&&(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end","& > :not(:last-child)":{marginRight:".5em"}},children:[(0,r.jsx)(b.Z,{onClick:L,sx:I,children:"Purge"}),(0,r.jsx)(b.Z,{type:"submit",children:"Update"})]})]}),(0,r.jsx)(g.Z,{actionProceedText:"Purge",content:"".concat(A," files will be removed from the system. You cannot undo this purge."),dialogProps:{open:S},onCancelAppend:F,onProceedAppend:E,proceedButtonProps:{sx:I},titleText:"Are you sure you want to purge ".concat(A," selected files? ")})]})})};K.defaultProps=q;var Q=K,ee=t(8462),ne=t(7212),te=t(7720),re=t(8600),oe=t.n(re),ie=t(7750),le=function(e){var n=e.filesOverview;return(0,r.jsx)(ee.Z,{children:n.map((function(e){var n,t,o=e.fileChecksum,i=e.fileName,l=e.fileSizeInBytes,c=e.fileType,u=e.fileUUID,s=oe()(l,{binary:!0});return(0,r.jsx)(ne.ZP,{sx:{padding:".6em 0"},children:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},width:"100%"},children:[(0,r.jsxs)(a.Z,{sx:{flexGrow:1},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"row"},children:[(0,r.jsx)(ie.Ac,{sx:{fontFamily:"Source Code Pro",fontWeight:400},text:i}),(0,r.jsx)(te.Z,{flexItem:!0,orientation:"vertical",sx:{backgroundColor:h.d,marginLeft:".5em",marginRight:".5em"}}),(0,r.jsx)(ie.Ac,{text:null!==(t=null===(n=k.get(c))||void 0===n?void 0:n[1])&&void 0!==t?t:""})]}),(0,r.jsx)(ie.Ac,{text:s})]}),(0,r.jsx)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:(0,r.jsx)(ie.Ac,{sx:{fontFamily:"Source Code Pro",fontWeight:400},text:o})})]})},u)}))})},ce=t(76),ae=t(9332),ue=t(9297),se=t(8187);function fe(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]:ye,n=e.onFileUploadComplete,t=e.eventEmitter,o=(0,c.useRef)(),i=(0,c.useState)([]),l=i[0],u=i[1],s=(0,c.useState)([]),f=s[0],d=s[1],p=function(e){var n,t=k.entries();do{var r=t.next();if(r.value){var o=me(r.value,2),i=o[0];e===me(o[1],1)[0]&&(n=i)}else n="other"}while(!n);return n},m=function(e){var n=e.target.files;n&&u(Array.from(n).map((function(e){return{file:e,fileName:e.name,fileLocations:[],fileType:p(e.type)}})))},h=function(e){return function(n){l[e]=pe({},l[e],n)}},v=function(e){for(e.preventDefault();l.length>0;){var t=l.shift();if(t){var r=t.file,o=t.fileName,i=new FormData;i.append("file",new File([r],o,pe({},r)));var c={fileName:o,progressValue:0};f.push(c),x.Z.post("/file",i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){var n=e.loaded,t=e.total;c.progressValue=Math.round(n/t*100),d(he(f))}}).then((function(){null===n||void 0===n||n.call(null),f.splice(f.indexOf(c),1),d(he(f))}))}}u([]),d(he(f))};return(0,c.useEffect)((function(){null===t||void 0===t||t.addListener("openFilePicker",(function(){var e;null===(e=o.current)||void 0===e||e.click()})),null===t||void 0===t||t.addListener("clearSelectedFiles",(function(){u([])}))}),[t]),(0,r.jsxs)("form",{onSubmit:v,children:[(0,r.jsx)(ce.Z,{htmlFor:"select-file",children:(0,r.jsx)(ae.Z,{id:"select-file",inputProps:{multiple:!0},onChange:m,ref:o,sx:{display:"none"},type:"file"})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:f.map((function(e){var n=e.fileName,t=e.progressValue;return(0,r.jsxs)(a.Z,{sx:{alignItems:{md:"center"},display:"flex",flexDirection:{xs:"column",md:"row"},"& > :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)(ie.Ac,{text:n}),(0,r.jsx)(ue.k,{progressPercentage:t})]},"in-upload-".concat(n))}))}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[l.length>0&&(0,r.jsx)(se.Z,{text:"Uploaded files will be listed automatically, but it may take a while for larger files to appear.",type:"info"}),l.map((function(e,n){var t=e.file.name,r=e.fileName,o=e.fileLocations;return(0,c.createElement)(W,{fileName:r,fileLocations:o,key:"selected-".concat(t),onChange:h(n)})})),l.length>0&&(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end"},children:(0,r.jsx)(b.Z,{type:"submit",children:"Upload"})})]})]})};xe.defaultProps=ye;var ge=xe,be=t(1706),je=t(3679),we=t(1905);function Ze(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}},children:[(0,r.jsx)(ie.z,{text:"Files"}),!g&&(0,r.jsx)(be.Z,{onClick:function(){j.emit("openFilePicker")},children:(0,r.jsx)(u.Z,{})}),(0,r.jsx)(be.Z,{onClick:function(){j.emit("clearSelectedFiles"),b(!g)},children:g?(0,r.jsx)(s.Z,{sx:{color:h.Ej}}):(0,r.jsx)(f.Z,{})})]}),i&&(0,r.jsx)(se.Z,{text:i,type:"error"}),(0,r.jsx)(ge,{eventEmitter:j,onFileUploadComplete:w}),function(){var e;if(v)e=(0,r.jsx)(H.Z,{});else{var t=n.map((function(e){var n=Se(e,5),t=n[0],r=n[1],o=n[2],i=n[3];return{fileChecksum:n[4],fileName:r,fileSizeInBytes:parseInt(o,10),fileType:i,fileUUID:t}}));e=g?(0,r.jsx)(Q,{filesOverview:t,onEditFilesComplete:w,onPurgeFilesComplete:w}):(0,r.jsx)(le,{filesOverview:t})}return e}()]})},Ae=Pe,ke=t(5521),Ie=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{children:(0,r.jsx)("title",{children:"File Manager"})}),(0,r.jsx)(ke.Z,{}),(0,r.jsx)(Ae,{})]})}}},function(e){e.O(0,[382,923,894,182,768,746,203,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/file-manager-21a667deb0a17960.js b/striker-ui/out/_next/static/chunks/pages/file-manager-21a667deb0a17960.js new file mode 100644 index 00000000..1920317e --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/file-manager-21a667deb0a17960.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[941],{8283:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/file-manager",function(){return t(7241)}])},157:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(8262),l=t(7294),c=t(7169),a=t(4825),u=t(4690),s=t(3679),f=t(2152),d=t(7750);function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=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){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g={blue:c.Ej,red:c.hM},y=(0,l.forwardRef)((function(e,n){var t=e.actionCancelText,p=void 0===t?"Cancel":t,m=e.actionProceedText,y=e.contentContainerProps,b=void 0===y?{}:y,j=e.closeOnProceed,w=void 0!==j&&j,Z=e.content,O=e.dialogProps,P=void 0===O?{}:O,S=P.open,C=void 0!==S&&S,A=P.PaperProps,k=void 0===A?{}:A,I=e.disableProceed,U=e.formContent,D=e.loading,E=void 0!==D&&D,F=e.loadingAction,L=void 0!==F&&F,T=e.onActionAppend,N=e.onCancelAppend,M=e.onProceedAppend,B=e.onSubmitAppend,_=e.openInitially,R=void 0!==_&&_,W=e.preActionArea,H=e.proceedButtonProps,V=void 0===H?{}:H,z=e.proceedColour,G=void 0===z?"blue":z,$=e.scrollContent,X=void 0!==$&&$,J=e.scrollBoxProps,Y=(void 0===J?{}:J).sx,q=e.titleText,K=v(e.dialogProps,["open","PaperProps"]),Q=v(e.scrollBoxProps,["sx"]),ee=k.sx,ne=v(k,["sx"]),te=V.disabled,re=void 0===te?I:te,oe=V.sx,ie=v(V,["disabled","sx"]),le=(0,l.useState)(R),ce=le[0],ae=le[1],ue=(0,l.useMemo)((function(){return n?ce:C}),[C,ce,n]),se=(0,l.useMemo)((function(){return g[G]}),[G]),fe=(0,l.useMemo)((function(){var e,n,t,r=function(){for(var e=arguments.length,n=new Array(e),t=0;t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(n).concat(e)]}),[t]),i=(0,s.useCallback)((function(){return o("user")}),[o]);return(0,s.useEffect)((function(){if(e){var n=document.cookie.split(/\s*;\s*/);r(n.reduce((function(e,n){var t,r=C(n.split("=",2),2),o=r[0],i=r[1],l=decodeURIComponent(i);if(l.startsWith("j:"))try{t=JSON.parse(l.substring(2))}catch(c){t=i}else t=i;return e[o]=t,e}),{}))}}),[e]),{cookieJar:t,getCookie:o,getSessionUser:i}};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 I(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),l=t(7169);function c(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}n.Z=function(e){var n=e.onClearIndicatorClick,t=v(e,["onClearIndicatorClick"]),x=t.sx,g=t.value,y=v(t,["sx","value"]),b=(0,d.useMemo)((function(){var e;return h((m(e={},"& .".concat(i.Z.icon),{color:p.s7}),m(e,"& .".concat(l.Z.root),{marginRight:".8em"}),m(e,"& .".concat(c.Z.root),{color:p.s7,visibility:"hidden"}),m(e,"&:hover .".concat(l.Z.root," .").concat(c.Z.root,",\n &.").concat(a.Z.focused," .").concat(l.Z.root," .").concat(c.Z.root),{visibility:"visible"}),e),x)}),[x]),j=(0,d.useMemo)((function(){return String(g).length>0&&n&&(0,r.jsx)(u.Z,{position:"end",children:(0,r.jsx)(s.Z,{onClick:n,children:(0,r.jsx)(o.Z,{fontSize:"small"})})})}),[n,g]);return(0,r.jsx)(f.Z,h({endAdornment:j,value:g},y,{sx:b}))}},1081:function(e,n,t){"use strict";var r=t(7294);n.Z=function(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},7241:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ie}});var r=t(5893),o=t(9008),i=t(4051),l=t.n(i),c=t(7294),a=t(7357),u=t(2428),s=t(2026),f=t(1797),d=t(5293),p=t.n(d),m=t(2029),h=t(7169),v=t(8128),x=t(3631),g=t(4390),y=t(157),b=t(4825),j=t(1496),w=t(3457),Z=t(3640),O=t(6886),P=t(480),S=t(267),C=t(1925),A=t(5934),k=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],I=new Map(k),U=t(6125),D=t(4427),E=t(9),F=t(192),L=t(3679),T=t(2879);function N(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]:W,n=e.fileName,t=e.fileType,o=e.fileLocations,i=e.isReadonly,l=e.onChange,a=(0,A.Z)(),u="file-name-".concat(a),s="File name",f="file-type-".concat(a),d="File type",p=(0,c.useMemo)((function(){return o.reduce((function(e,n){var t=n.anvilDescription,r=n.anvilName,o=n.anvilUUID;return e[o]||(e[o]={anvilDescription:t,anvilName:r,anvilUUID:o,flocs:[]}),e[o].flocs.push(n),e}),{})}),[o]);return(0,r.jsxs)(w.Z,{sx:{"> :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(Z.Z,{children:[(0,r.jsx)(F.Z,{htmlFor:u,children:s}),(0,r.jsx)(E.Z,{defaultValue:n,disabled:i,id:u,label:s,onChange:function(e){var t=e.target.value;null===l||void 0===l||l.call(null,{fileName:t===n?void 0:t})}})]}),t&&(0,r.jsxs)(Z.Z,{children:[(0,r.jsx)(F.Z,{htmlFor:f,children:d}),(0,r.jsx)(T.Z,{defaultValue:t,disabled:i,id:f,input:(0,r.jsx)(E.Z,{label:d}),onChange:function(e){var n=e.target.value;null===l||void 0===l||l.call(null,{fileType:n===t?void 0:n})},children:k.map((function(e){var n=M(e,2),t=n[0],o=M(n[1],2)[1];return(0,r.jsx)(D.Z,{value:t,children:o},t)}))})]}),(0,r.jsx)(U.Z,{listItems:p,listProps:{dense:!0,disablePadding:!0},renderListItem:function(e,n){var t=n.anvilDescription,c=n.anvilName,a=n.flocs;return(0,r.jsx)(L.TZ,{header:"".concat(c,": ").concat(t),panelProps:{padding:0,width:"100%"},children:(0,r.jsx)(L.bc,{children:(0,r.jsx)(O.ZP,{columns:{xs:1,sm:2,md:3,lg:4,xl:5},columnSpacing:"1em",container:!0,direction:"row",children:a.map((function(n){var t=n.fileLocationUUID,c=n.hostName,a=n.hostUUID,u=n.isFileLocationActive;return(0,r.jsx)(O.ZP,{item:!0,xs:1,children:(0,r.jsx)(P.Z,{control:(0,r.jsx)(H,{checkedIcon:(0,r.jsx)(S.Z,{}),defaultChecked:u,disabled:i,edge:"start",icon:(0,r.jsx)(C.Z,{}),onChange:function(e){var n=e.target.checked;null===l||void 0===l||l.call(null,{isFileLocationActive:n===u?void 0:n},{fileLocationIndex:o.findIndex((function(e){var n=e.fileLocationUUID;return t===n}))})}}),label:c,sx:{color:h.lD},value:"".concat(a,"-sync")})},"floc-".concat(e,"-").concat(a))}))})})})}})]})};V.defaultProps=W;var z=V,G=t(2152),$=t(1200);function X(e,n,t,r,o,i,l){try{var c=e[i](l),a=c.value}catch(u){return void t(u)}c.done?n(a):Promise.resolve(a).then(r,o)}function J(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function l(e){X(i,r,o,l,c,"next",e)}function c(e){X(i,r,o,l,c,"throw",e)}l(void 0)}))}}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 q(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:K,n=e.filesOverview,t=e.onEditFilesComplete,o=e.onPurgeFilesComplete,i=(0,c.useState)([]),u=i[0],s=i[1],f=(0,c.useState)([]),d=f[0],p=f[1],j=(0,c.useState)(!1),w=j[0],Z=j[1],O=(0,c.useState)(!1),P=O[0],S=O[1],C=(0,c.useState)(0),A=C[0],k=C[1],I={backgroundColor:h.hM,color:h.lD,"&:hover":{backgroundColor:h.hM}},U=function(e){return function(n){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fileLocationIndex;void 0!==t?u[e].fileLocations[t]=q({},u[e].fileLocations[t],n):u[e]=q({},u[e],n)}},D=function(e){e.preventDefault(),Z(!0);var n=u.reduce((function(e,n){var t=n.fileLocations,r=n.fileName,o=n.fileType,i=n.fileUUID,l={};void 0!==r&&(l.fileName=r),void 0!==o&&(l.fileType=o);var c=t.reduce((function(e,n){var t=n.fileLocationUUID,r=n.isFileLocationActive;return void 0!==r&&e.push({fileLocationUUID:t,isFileLocationActive:r}),e}),[]);return c.length>0&&(l.fileLocations=c),Object.keys(l).length>0&&e.push(g.Z.put("/file/".concat(i),l)),e}),[]);Promise.all(n).then((function(){Z(!1)})).then(t)},E=function(){S(!1),Z(!0);var e=d.filter((function(e){return e.isSelected})).map((function(e){var n=e.fileUUID;return g.Z.delete("/file/".concat(n))}));Promise.all(e).then((function(){Z(!1)})).then(o)},F=function(){S(!1)},L=function(){var e=d.filter((function(e){return e.isSelected})).length;k(e),e>0&&S(!0)};return(0,c.useEffect)((function(){Z(!0),Promise.all(n.map(function(){var e=J(l().mark((function e(n){var t,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=q({},n,{fileLocations:[]}),e.prev=1,e.next=4,(0,$.Z)("".concat(m.Z,"/file/").concat(n.fileUUID));case 4:r=e.sent,t.fileLocations=r.map((function(e){var n=e[5],t=e[6],r=e[7],o=e[8],i=e[9],l=e[10];return{anvilDescription:i,anvilName:o,anvilUUID:r,fileLocationUUID:n,hostName:e[11],hostUUID:l,isFileLocationActive:1===parseInt(t,10)}})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t.dataIncompleteError=e.t0;case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(n){return e.apply(this,arguments)}}())).then((function(e){p(e);for(var n=[],t=0;t :not(:first-child)":{marginTop:"1em"}},children:[d.map((function(e,n){var t=e.fileName,o=e.fileLocations,i=e.fileType,l=e.fileUUID;return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"row","& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(a.Z,{sx:{marginTop:".4em"},children:(0,r.jsx)(v.Z,{onChange:function(e){var t=e.target.checked;d[n].isSelected=t},sx:Y({color:h.s7},"&.".concat(x.Z.checked),{color:h.lD})})}),(0,r.jsx)(z,{fileName:t,fileType:i,fileLocations:o,onChange:U(n)})]},"file-edit-".concat(l))})),d.length>0&&(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end","& > :not(:last-child)":{marginRight:".5em"}},children:[(0,r.jsx)(b.Z,{onClick:L,sx:I,children:"Purge"}),(0,r.jsx)(b.Z,{type:"submit",children:"Update"})]})]}),(0,r.jsx)(y.Z,{actionProceedText:"Purge",content:"".concat(A," files will be removed from the system. You cannot undo this purge."),dialogProps:{open:P},onCancelAppend:F,onProceedAppend:E,proceedButtonProps:{sx:I},titleText:"Are you sure you want to purge ".concat(A," selected files? ")})]})})};Q.defaultProps=K;var ee=Q,ne=t(8462),te=t(7212),re=t(7720),oe=t(8600),ie=t.n(oe),le=t(7750),ce=function(e){var n=e.filesOverview;return(0,r.jsx)(ne.Z,{children:n.map((function(e){var n,t,o=e.fileChecksum,i=e.fileName,l=e.fileSizeInBytes,c=e.fileType,u=e.fileUUID,s=ie()(l,{binary:!0});return(0,r.jsx)(te.ZP,{sx:{padding:".6em 0"},children:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},width:"100%"},children:[(0,r.jsxs)(a.Z,{sx:{flexGrow:1},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"row"},children:[(0,r.jsx)(le.Ac,{sx:{fontFamily:"Source Code Pro",fontWeight:400},text:i}),(0,r.jsx)(re.Z,{flexItem:!0,orientation:"vertical",sx:{backgroundColor:h.d,marginLeft:".5em",marginRight:".5em"}}),(0,r.jsx)(le.Ac,{text:null!==(t=null===(n=I.get(c))||void 0===n?void 0:n[1])&&void 0!==t?t:""})]}),(0,r.jsx)(le.Ac,{text:s})]}),(0,r.jsx)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:(0,r.jsx)(le.Ac,{sx:{fontFamily:"Source Code Pro",fontWeight:400},text:o})})]})},u)}))})},ae=t(76),ue=t(9332),se=t(9297),fe=t(8187);function de(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]:ge,n=e.onFileUploadComplete,t=e.eventEmitter,o=(0,c.useRef)(),i=(0,c.useState)([]),l=i[0],u=i[1],s=(0,c.useState)([]),f=s[0],d=s[1],p=function(e){var n,t=I.entries();do{var r=t.next();if(r.value){var o=he(r.value,2),i=o[0];e===he(o[1],1)[0]&&(n=i)}else n="other"}while(!n);return n},m=function(e){var n=e.target.files;n&&u(Array.from(n).map((function(e){return{file:e,fileName:e.name,fileLocations:[],fileType:p(e.type)}})))},h=function(e){return function(n){l[e]=me({},l[e],n)}},v=function(e){for(e.preventDefault();l.length>0;){var t=l.shift();if(t){var r=t.file,o=t.fileName,i=new FormData;i.append("file",new File([r],o,me({},r)));var c={fileName:o,progressValue:0};f.push(c),g.Z.post("/file",i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){var n=e.loaded,t=e.total;c.progressValue=Math.round(n/t*100),d(ve(f))}}).then((function(){null===n||void 0===n||n.call(null),f.splice(f.indexOf(c),1),d(ve(f))}))}}u([]),d(ve(f))};return(0,c.useEffect)((function(){null===t||void 0===t||t.addListener("openFilePicker",(function(){var e;null===(e=o.current)||void 0===e||e.click()})),null===t||void 0===t||t.addListener("clearSelectedFiles",(function(){u([])}))}),[t]),(0,r.jsxs)("form",{onSubmit:v,children:[(0,r.jsx)(ae.Z,{htmlFor:"select-file",children:(0,r.jsx)(ue.Z,{id:"select-file",inputProps:{multiple:!0},onChange:m,ref:o,sx:{display:"none"},type:"file"})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:f.map((function(e){var n=e.fileName,t=e.progressValue;return(0,r.jsxs)(a.Z,{sx:{alignItems:{md:"center"},display:"flex",flexDirection:{xs:"column",md:"row"},"& > :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)(le.Ac,{text:n}),(0,r.jsx)(se.k,{progressPercentage:t})]},"in-upload-".concat(n))}))}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[l.length>0&&(0,r.jsx)(fe.Z,{text:"Uploaded files will be listed automatically, but it may take a while for larger files to appear.",type:"info"}),l.map((function(e,n){var t=e.file.name,r=e.fileName,o=e.fileLocations;return(0,c.createElement)(z,{fileName:r,fileLocations:o,key:"selected-".concat(t),onChange:h(n)})})),l.length>0&&(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end"},children:(0,r.jsx)(b.Z,{type:"submit",children:"Upload"})})]})]})};ye.defaultProps=ge;var be=ye,je=t(1706),we=t(1905);function Ze(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}},children:[(0,r.jsx)(le.z,{text:"Files"}),!y&&(0,r.jsx)(je.Z,{onClick:function(){j.emit("openFilePicker")},children:(0,r.jsx)(u.Z,{})}),(0,r.jsx)(je.Z,{onClick:function(){j.emit("clearSelectedFiles"),b(!y)},children:y?(0,r.jsx)(s.Z,{sx:{color:h.Ej}}):(0,r.jsx)(f.Z,{})})]}),i&&(0,r.jsx)(fe.Z,{text:i,type:"error"}),(0,r.jsx)(be,{eventEmitter:j,onFileUploadComplete:w}),function(){var e;if(v)e=(0,r.jsx)(G.Z,{});else{var t=n.map((function(e){var n=Pe(e,5),t=n[0],r=n[1],o=n[2],i=n[3];return{fileChecksum:n[4],fileName:r,fileSizeInBytes:parseInt(o,10),fileType:i,fileUUID:t}}));e=y?(0,r.jsx)(ee,{filesOverview:t,onEditFilesComplete:w,onPurgeFilesComplete:w}):(0,r.jsx)(ce,{filesOverview:t})}return e}()]})},Ae=Ce,ke=t(5521),Ie=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{children:(0,r.jsx)("title",{children:"File Manager"})}),(0,r.jsx)(ke.Z,{}),(0,r.jsx)(Ae,{})]})}}},function(e){e.O(0,[382,483,894,182,768,746,203,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-588d908af57f0a28.js b/striker-ui/out/_next/static/chunks/pages/index-2eaaa0d56c4c4f15.js similarity index 96% rename from striker-ui/out/_next/static/chunks/pages/index-588d908af57f0a28.js rename to striker-ui/out/_next/static/chunks/pages/index-2eaaa0d56c4c4f15.js index 3a794e3f..bdb0a0be 100644 --- a/striker-ui/out/_next/static/chunks/pages/index-588d908af57f0a28.js +++ b/striker-ui/out/_next/static/chunks/pages/index-2eaaa0d56c4c4f15.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(5075)}])},5741:function(e,r,n){"use strict";var t=n(5893),o=n(1714),c=n(122),i=n(7169),u=n(4690);function s(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 c=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.children,n=e.sx,s=l(e,["children","sx"]);return(0,t.jsx)(c.Z,a({underline:"hover",variant:"subtitle1"},s,{sx:a({color:i.lD,textDecorationColor:i.s7},n),children:(0,t.jsxs)(u.Z,{row:!0,children:[r,(0,t.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},5075:function(e,r,n){"use strict";n.r(r);var t=n(5893),o=n(9008),c=n(1163),i=n(7294),u=n(7357),s=n(7720),a=n(2428),l=n(2029),f=n(7169),v=n(7906),d=n(1200),h=n(5521),p=n(1706),b=n(5741),y=n(9),m=n(3679),x=n(1905),j=n(4968),g=n(2152);function w(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n *":{width:{xs:"20em",md:"24em"}},"& > :not(:last-child)":{marginRight:"2em"}},children:e.map((function(e){var n=e.anvilName,o=e.anvilUUID,c=e.isScreenshotStale,i=e.screenshot,u=e.serverName,s=e.serverUUID;return(0,t.jsx)(v.M,{externalPreview:i,headerEndAdornment:[(0,t.jsx)(b.Z,{href:"/server?uuid=".concat(s,"&server_name=").concat(u),children:u},"server_list_to_server_".concat(s)),(0,t.jsx)(b.Z,{href:"/anvil?anvil_uuid=".concat(o),sx:{opacity:.7},children:n},"server_list_server_".concat(s,"_to_anvil_").concat(o))],isExternalPreviewStale:c,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,onClickPreview:function(){r.push("/server?uuid=".concat(s,"&server_name=").concat(u,"&vnc=1"))},serverUUID:s},"server-preview-".concat(s))}))})},P=function(e,r){return""===r?{exclude:e,include:[]}:e.reduce((function(e,n){return n.serverName.includes(r)?e.include.push(n):e.exclude.push(n),e}),{exclude:[],include:[]})};r.default=function(){var e=(0,i.useRef)(!0),r=(0,c.useRouter)(),n=(0,i.useState)([]),v=n[0],b=n[1],w=(0,i.useState)([]),O=w[0],E=w[1],U=(0,i.useState)([]),D=U[0],I=U[1],k=(0,i.useState)(""),C=k[0],A=k[1],N=(0,i.useState)(!1),R=N[0],T=N[1],F=function(){for(var r=arguments.length,n=new Array(r),t=0;t0&&void 0!==arguments[0]?arguments[0]:[],n=r.map((function(r){var t,o=r.serverUUID,c=S({},r,{screenshot:(null===(t=v.find((function(e){return e.serverUUID===o})))||void 0===t?void 0:t.screenshot)||""});return(0,d.Z)("".concat(l.Z,"/server/").concat(o,"?ss")).then((function(r){var t=r.screenshot;c.screenshot=t,c.isScreenshotStale=!1;var o=_(n);e.current&&b(o)})).catch((function(){c.isScreenshotStale=!0})),c}));b(n),F(n,C)},refreshInterval:6e4}).isLoading;return(0,i.useEffect)((function(){return function(){e.current=!1}}),[]),(0,t.jsxs)(u.Z,{children:[(0,t.jsx)(o.default,{children:(0,t.jsx)("title",{children:"Dashboard"})}),(0,t.jsx)(h.Z,{}),(0,t.jsx)(m.s_,{children:L?(0,t.jsx)(g.Z,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.V9,{children:[(0,t.jsx)(y.Z,{placeholder:"Search by server name",onChange:function(e){var r=e.target.value;A(r),F(v,r)},sx:{marginRight:".6em"},value:C}),(0,t.jsx)(p.Z,{onClick:function(){return T(!0)},children:(0,t.jsx)(a.Z,{})})]}),Z(D,r),D.length>0&&(0,t.jsx)(s.Z,{sx:{backgroundColor:f.d}}),Z(O,r)]})}),(0,t.jsx)(j.Z,{dialogProps:{open:R},onClose:function(){T(!1)}})]})}}},function(e){e.O(0,[382,923,894,182,536,303,717,746,203,899,140,116,906,774,888,179],(function(){return r=5301,e(e.s=r);var r}));var r=e.O();_N_E=r}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(5075)}])},5741:function(e,r,n){"use strict";var t=n(5893),o=n(1714),c=n(122),i=n(7169),u=n(4690);function s(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 c=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.children,n=e.sx,s=l(e,["children","sx"]);return(0,t.jsx)(c.Z,a({underline:"hover",variant:"subtitle1"},s,{sx:a({color:i.lD,textDecorationColor:i.s7},n),children:(0,t.jsxs)(u.Z,{row:!0,children:[r,(0,t.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},5075:function(e,r,n){"use strict";n.r(r);var t=n(5893),o=n(9008),c=n(1163),i=n(7294),u=n(7357),s=n(7720),a=n(2428),l=n(2029),f=n(7169),v=n(7906),d=n(1200),h=n(5521),p=n(1706),b=n(5741),y=n(9),m=n(3679),x=n(1905),j=n(4968),g=n(2152);function w(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n *":{width:{xs:"20em",md:"24em"}},"& > :not(:last-child)":{marginRight:"2em"}},children:e.map((function(e){var n=e.anvilName,o=e.anvilUUID,c=e.isScreenshotStale,i=e.screenshot,u=e.serverName,s=e.serverUUID;return(0,t.jsx)(v.M,{externalPreview:i,headerEndAdornment:[(0,t.jsx)(b.Z,{href:"/server?uuid=".concat(s,"&server_name=").concat(u),children:u},"server_list_to_server_".concat(s)),(0,t.jsx)(b.Z,{href:"/anvil?anvil_uuid=".concat(o),sx:{opacity:.7},children:n},"server_list_server_".concat(s,"_to_anvil_").concat(o))],isExternalPreviewStale:c,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,onClickPreview:function(){r.push("/server?uuid=".concat(s,"&server_name=").concat(u,"&vnc=1"))},serverUUID:s},"server-preview-".concat(s))}))})},P=function(e,r){return""===r?{exclude:e,include:[]}:e.reduce((function(e,n){return n.serverName.includes(r)?e.include.push(n):e.exclude.push(n),e}),{exclude:[],include:[]})};r.default=function(){var e=(0,i.useRef)(!0),r=(0,c.useRouter)(),n=(0,i.useState)([]),v=n[0],b=n[1],w=(0,i.useState)([]),O=w[0],E=w[1],U=(0,i.useState)([]),D=U[0],I=U[1],k=(0,i.useState)(""),C=k[0],A=k[1],N=(0,i.useState)(!1),R=N[0],T=N[1],F=function(){for(var r=arguments.length,n=new Array(r),t=0;t0&&void 0!==arguments[0]?arguments[0]:[],n=r.map((function(r){var t,o=r.serverUUID,c=S({},r,{screenshot:(null===(t=v.find((function(e){return e.serverUUID===o})))||void 0===t?void 0:t.screenshot)||""});return(0,d.Z)("".concat(l.Z,"/server/").concat(o,"?ss")).then((function(r){var t=r.screenshot;c.screenshot=t,c.isScreenshotStale=!1;var o=_(n);e.current&&b(o)})).catch((function(){c.isScreenshotStale=!0})),c}));b(n),F(n,C)},refreshInterval:6e4}).isLoading;return(0,i.useEffect)((function(){return function(){e.current=!1}}),[]),(0,t.jsxs)(u.Z,{children:[(0,t.jsx)(o.default,{children:(0,t.jsx)("title",{children:"Dashboard"})}),(0,t.jsx)(h.Z,{}),(0,t.jsx)(m.s_,{children:L?(0,t.jsx)(g.Z,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.V9,{children:[(0,t.jsx)(y.Z,{placeholder:"Search by server name",onChange:function(e){var r=e.target.value;A(r),F(v,r)},sx:{marginRight:".6em"},value:C}),(0,t.jsx)(p.Z,{onClick:function(){return T(!0)},children:(0,t.jsx)(a.Z,{})})]}),Z(D,r),D.length>0&&(0,t.jsx)(s.Z,{sx:{backgroundColor:f.d}}),Z(O,r)]})}),(0,t.jsx)(j.Z,{dialogProps:{open:R},onClose:function(){T(!1)}})]})}}},function(e){e.O(0,[382,483,894,182,614,485,717,746,203,899,140,116,906,774,888,179],(function(){return r=5301,e(e.s=r);var r}));var r=e.O();_N_E=r}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/init-e60db40234cb8025.js b/striker-ui/out/_next/static/chunks/pages/init-e60db40234cb8025.js new file mode 100644 index 00000000..a67788d6 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/init-e60db40234cb8025.js @@ -0,0 +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)}])},9099:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var r=t(7294),i={boolean:function(e){return Boolean(e)},number:function(e){return parseInt(String(e),10)||0},string:function(e){return String(e)}},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,l=e.setType,o=void 0===l?"string":l,u=e.valueKey,a=void 0===u?"value":u;return function(e){var l=e.target[a],u=i[o](l);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)}},o=t(7987);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 l=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,x=e.onUnmount,y=e.required,b=void 0===y?h.required:y,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,S=e.createInputOnChangeHandlerOptions,k=void 0===S?h.createInputOnChangeHandlerOptions:S,O=k.postSet,Z=k.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,R=I.onChange,M=I.onFocus,F=I[N],H=void 0===F?m[P]:F,T=s(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(H),z=E[0],D=E[1],B=(0,r.useState)(!1),_=B[0],L=B[1],U=(0,r.useState)(!1),q=U[0],$=U[1],Q=(0,r.useCallback)((function(e){D(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=b,e=(0,o.LT)(a({},p,i))),e}),[i,b]),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 l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function a(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,l=[],o=!0,u=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(l.push(r.value),!n||l.length!==n);o=!0);}catch(a){u=!0,i=a}finally{try{o||null==t.return||t.return()}finally{if(u)throw i}}return l}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return o(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 o(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 c(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var s=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var d={count:0,defaultMessageType:"info",onSet:void 0,usePlaceholder:!0},f=(0,i.forwardRef)((function(e,n){var t=e.count,o=void 0===t?d.count:t,s=e.defaultMessageType,f=void 0===s?d.defaultMessageType:s,v=e.onSet,p=e.usePlaceholder,m=void 0===p?d.usePlaceholder:p,h=(0,i.useState)({}),g=h[0],x=h[1],y=(0,i.useCallback)((function(e){return void 0!==g[e]}),[g]),b=(0,i.useCallback)((function(e,n){var t=0;x((function(r){r[e];var i=u(r,[e].map(c));return n&&(i[e]=n),t=Object.keys(i).length,i})),null===v||void 0===v||v.call(null,t)}),[v]),j=(0,i.useCallback)((function(e,n){var t=0,r=n?function(e,r){e[r]=n,t+=1}:void 0;x((function(n){var i={};return Object.keys(n).forEach((function(l){e.test(l)?null===r||void 0===r||r.call(null,i,l):(i[l]=n[l],t+=1)})),i})),null===v||void 0===v||v.call(null,t)}),[v]),w=(0,i.useMemo)((function(){var e=Object.entries(g),n=o>0,t=n?o:e.length,i=[];if(e.every((function(e){var n=a(e,2),o=n[0],u=n[1],c=u.children,s=u.type,d=void 0===s?f:s;return i.push((0,r.jsx)(l.Z,{type:d,children:c},"message-".concat(o))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,l=void 0===i?2:i,o=n.which,u=void 0===o?"Start":o;return String(e)["pad".concat(u)](l,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 S(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var k={show:!0},O=function(e){var n=e.onClick,t=e.show,i=void 0===t?k.show:t,l=S(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)},U=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):""},q=(0,a.forwardRef)((function(e,n){var t,i,l,u,c=e.expectHostDetail,s=void 0!==c&&c,d=e.hostDetail,f=e.toggleSubmitDisabled,v=(0,a.useState)(),w=v[0],P=v[1],S=(0,a.useState)(!1),k=S[0],O=S[1],I=(0,a.useState)(!1),V=I[0],M=I[1],_=(0,a.useState)(!0),q=_[0],$=_[1],Q=(0,a.useState)(!0),J=Q[0],G=Q[1],K=(0,a.useRef)(!0),W=(0,a.useRef)({}),X=(0,a.useRef)({}),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useRef)({}),te=(0,a.useRef)({}),re=(0,a.useRef)({}),ie=(0,a.useRef)({}),le=(0,a.useCallback)((function(e){var n;return null===(n=ie.current.setMessage)||void 0===n?void 0:n.call(null,B,e)}),[]),oe=(0,a.useCallback)((function(e){var n;return null===(n=ie.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),ue=(0,a.useCallback)((function(e){var n;return null===(n=ie.current.setMessage)||void 0===n?void 0:n.call(null,T,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=ie.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),ce=(0,a.useCallback)((function(e){var n;return null===(n=ie.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),se=(0,a.useCallback)((function(e){var n;return null===(n=ie.current.setMessage)||void 0===n?void 0:n.call(null,H,e)}),[]),de=(0,a.useMemo)((function(){var e;return N(e={},F,{defaults:{getValue:function(){var e;return null===(e=W.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:["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,H,{defaults:{getValue:function(){var e,n;return null===(e=X.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){se(void 0)}},tests:[{onFailure:function(){se({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=W.current.getValue)||void 0===n?void 0:n.call(null))}},{test:C.HJ}]}),N(e,T,{defaults:{compare:[!J],getValue:function(){var e;return null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ue(void 0)}},tests:[{onFailure:function(){ue({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:[!J],getValue:function(){var e;return null===(e=re.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({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=te.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){oe(void 0)}},tests:[{onFailure:function(){oe({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:C.HJ}]}),N(e,D,{defaults:{getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:C.HJ}]}),N(e,B,{defaults:{getValue:function(){var e;return null===(e=ee.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){le(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;le({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}),[J,ce,se,ue,ae,oe,le]),fe=(0,a.useMemo)((function(){return(0,C.LT)(de)}),[de]),ve=(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,l=e.isExcludeConfirmAdminPassword,o=void 0===l?!q:l;o&&t.push(H),null===f||void 0===f||f.call(null,fe({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[q,fe,f]),pe=(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=Y.current.getValue)||void 0===t?void 0:t.call(null):r,l=L(i);return null===(e=ee.current.setValue)||void 0===e||e.call(null,l),ve({inputs:N({},B,{isIgnoreOnCallbacks:!1,value:l}),isContinueOnFailure:!0}),l}),[ve]),me=(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=ee.current.getValue)||void 0===i?void 0:i.call(null):t,o=n.hostNumber,a=void 0===o?null===(l=te.current.getValue)||void 0===l?void 0:l.call(null):o,c=n.domainName,s=void 0===c?null===(u=ne.current.getValue)||void 0===u?void 0:u.call(null):c,d=U({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=re.current.setValue)||void 0===e||e.call(null,d),ve({inputs:N({},E,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[ve]),he=(0,a.useCallback)((function(){var e;return Boolean(null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null))}),[]),ge=(0,a.useCallback)((function(){var e,n,t;return[null===(e=ee.current.getValue)||void 0===e?void 0:e.call(null),null===(n=te.current.getValue)||void 0===n?void 0:n.call(null),null===(t=ne.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=ee.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?O(he()):pe()}),[he,pe]),ye=(0,a.useCallback)((function(){var e;(null===(e=re.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?M(ge()):me()}),[ge,me]),be=(0,a.useCallback)((function(){var e,n=pe();(null===(e=re.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||me({organizationPrefix:n})}),[me,pe]),je=(0,a.useCallback)((function(){me()}),[me]),we=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),Pe=(0,a.useMemo)((function(){return(0,r.jsx)(m.Z,{checked:J,onChange:function(e,n){var t;G(n),ve({inputs:(t={},N(t,T,{compare:[!n],isIgnoreOnCallbacks:!1}),N(t,E,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[J,ve]);return(0,a.useEffect)((function(){if([s,d,K.current,ne.current,re.current,te.current,Y.current,ee.current].every((function(e){return Boolean(e)}))){var e,n,t,r,i;K.current=!1;var l=d.domain,o=d.hostName,u=d.organization,a=d.prefix,c=d.sequence;null===(e=ne.current.setValue)||void 0===e||e.call(null,l),null===(n=re.current.setValue)||void 0===n||n.call(null,o),null===(t=te.current.setValue)||void 0===t||t.call(null,c),null===(r=Y.current.setValue)||void 0===r||r.call(null,u),null===(i=ee.current.setValue)||void 0===i||i.call(null,a),ve()}}),[s,d,ve]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,l;return{adminPassword:null===(e=W.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=Y.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=ee.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=ne.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=te.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(l=re.current.getValue)||void 0===l?void 0:l.call(null)}}}})),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)(o.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(x.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:xe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){ve()},onHelp:function(){P(we("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:Y}),(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(x.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(Z,{show:k,onClick:be}),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;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(x.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;fe({inputs:N({},F,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===h.Z.password;ve({isExcludeConfirmAdminPassword:!n}),$(n),se()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;ve({inputs:N({},F,{value:n})}),ce()},onHelp:function(){P(we("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:W})}),q&&(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(x.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;fe({inputs:N({},H,{value:n})})}},inputLabelProps:{isNotifyRequired:q},label:"Confirm password",onChange:function(e){var n=e.target.value;ve({inputs:N({},H,{value:n})}),se()}}),ref:X})})]})})]}),(0,r.jsx)(b.Z,{count:1,defaultMessageType:"warning",ref:ie}),(0,r.jsx)(y.Z,{children:(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[Pe,(0,r.jsx)(A.Ac,{inverted:!0,children:J?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),w&&(0,r.jsx)(y.Z,{onClose:function(){P(void 0)},children:w})]})}));q.defaultProps={expectHostDetail:!1,hostDetail:void 0,toggleSubmitDisabled:void 0},q.displayName="GeneralInitForm";var $=q,Q=t(1770),J=t(1706),G=t(3377),K=t(2444),W=t(5741),X=t(8461),Y=t(3679),ee=t(2152),ne=t(2749);function te(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,l=e.setType,o=void 0===l?"string":l,u=e.valueKey,a=void 0===u?"value":u;return function(e){var l=e.target[a],u=i[o](l);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)}},o=t(7987);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 l=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,x=e.onUnmount,b=e.required,y=void 0===b?h.required:b,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,k=e.createInputOnChangeHandlerOptions,O=void 0===k?h.createInputOnChangeHandlerOptions:k,S=O.postSet,Z=O.valueKey,C=void 0===Z?j:Z,A=c(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,T=I.onChange,F=I.onFocus,M=I[N],R=void 0===M?m[P]:M,z=c(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(R),H=E[0],_=E[1],B=(0,r.useState)(!1),D=B[0],L=B[1],U=(0,r.useState)(!1),$=U[0],q=U[1],Q=(0,r.useCallback)((function(e){_(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=y,e=(0,o.LT)(a({},p,i))),e}),[i,y]),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 l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function a(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,l=[],o=!0,u=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(l.push(r.value),!n||l.length!==n);o=!0);}catch(a){u=!0,i=a}finally{try{o||null==t.return||t.return()}finally{if(u)throw i}}return l}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return o(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 o(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"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}var c=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var d={count:0,defaultMessageType:"info",onSet:void 0,usePlaceholder:!0},f=(0,i.forwardRef)((function(e,n){var t=e.count,o=void 0===t?d.count:t,c=e.defaultMessageType,f=void 0===c?d.defaultMessageType:c,v=e.onSet,p=e.usePlaceholder,m=void 0===p?d.usePlaceholder:p,h=(0,i.useState)({}),g=h[0],x=h[1],b=(0,i.useCallback)((function(e){return void 0!==g[e]}),[g]),y=(0,i.useCallback)((function(e,n){var t=0;x((function(r){r[e];var i=u(r,[e].map(s));return n&&(i[e]=n),t=Object.keys(i).length,i})),null===v||void 0===v||v.call(null,t)}),[v]),j=(0,i.useCallback)((function(e,n){var t=0,r=n?function(e,r){e[r]=n,t+=1}:void 0;x((function(n){var i={};return Object.keys(n).forEach((function(l){e.test(l)?null===r||void 0===r||r.call(null,i,l):(i[l]=n[l],t+=1)})),i})),null===v||void 0===v||v.call(null,t)}),[v]),w=(0,i.useMemo)((function(){var e=Object.entries(g),n=o>0,t=n?o:e.length,i=[];if(e.every((function(e){var n=a(e,2),o=n[0],u=n[1],s=u.children,c=u.type,d=void 0===c?f:c;return i.push((0,r.jsx)(l.Z,{type:d,children:s},"message-".concat(o))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,l=void 0===i?2:i,o=n.which,u=void 0===o?"Start":o;return String(e)["pad".concat(u)](l,r)};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,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var k={show:!0},O=function(e){var n=e.onClick,t=e.show,i=void 0===t?k.show:t,l=P(e,["onClick","show"]);return i?(0,r.jsx)(f.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 B[t](n)},L=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(j(t),".").concat(r):""},U=(0,u.forwardRef)((function(e,n){var t,i,l,a,s=e.toggleSubmitDisabled,c=(0,u.useState)(),d=c[0],f=c[1],j=(0,u.useState)(!1),w=j[0],P=j[1],k=(0,u.useState)(!1),O=k[0],A=k[1],N=(0,u.useState)(!0),T=N[0],B=N[1],U=(0,u.useState)(!0),$=U[0],q=U[1],Q=(0,u.useRef)({}),J=(0,u.useRef)({}),G=(0,u.useRef)({}),K=(0,u.useRef)({}),W=(0,u.useRef)({}),X=(0,u.useRef)({}),Y=(0,u.useRef)({}),ee=(0,u.useRef)({}),ne=(0,u.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,_,e)}),[]),te=(0,u.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),re=(0,u.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,R,e)}),[]),ie=(0,u.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),le=(0,u.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),oe=(0,u.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),ue=(0,u.useMemo)((function(){var e;return I(e={},F,{defaults:{getValue:function(){var e;return null===(e=Q.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){le(void 0)}},tests:[{onFailure:function(){le({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(C.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(C.Q0,{text:'"'}),"), slash (",(0,r.jsx)(C.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(C.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(C.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(C.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:Z.HJ}]}),I(e,M,{defaults:{getValue:function(){var e,n;return null===(e=J.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){oe(void 0)}},tests:[{onFailure:function(){oe({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=Q.current.getValue)||void 0===n?void 0:n.call(null))}},{test:Z.HJ}]}),I(e,R,{defaults:{compare:[!$],getValue:function(){var e;return null===(e=W.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){re(void 0)}},tests:[{onFailure:function(){re({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(C.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(C.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||h.FZ.test(t)}},{test:Z.HJ}]}),I(e,z,{defaults:{compare:[!$],getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ie(void 0)}},tests:[{onFailure:function(){ie({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(C.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(C.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||h.FZ.test(t)}},{test:Z.HJ}]}),I(e,E,{defaults:{getValue:function(){var e;return null===(e=X.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){te(void 0)}},tests:[{onFailure:function(){te({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:Z.HJ}]}),I(e,H,{defaults:{getValue:function(){var e;return null===(e=G.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:Z.HJ}]}),I(e,_,{defaults:{getValue:function(){var e;return null===(e=K.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ne(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ne({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}),[$,le,oe,re,ie,te,ne]),ae=(0,u.useMemo)((function(){return(0,Z.LT)(ue)}),[ue]),se=(0,u.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,l=e.isExcludeConfirmAdminPassword,o=void 0===l?!T:l;o&&t.push(M),null===s||void 0===s||s.call(null,ae({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[T,ae,s]),ce=(0,u.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,i=void 0===r?null===(t=G.current.getValue)||void 0===t?void 0:t.call(null):r,l=D(i);return null===(e=K.current.setValue)||void 0===e||e.call(null,l),se({inputs:I({},_,{isIgnoreOnCallbacks:!1,value:l}),isContinueOnFailure:!0}),l}),[se]),de=(0,u.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(i=K.current.getValue)||void 0===i?void 0:i.call(null):t,o=n.hostNumber,u=void 0===o?null===(l=X.current.getValue)||void 0===l?void 0:l.call(null):o,s=n.domainName,c=void 0===s?null===(a=W.current.getValue)||void 0===a?void 0:a.call(null):s,d=L({organizationPrefix:r,hostNumber:u,domainName:c});return null===(e=Y.current.setValue)||void 0===e||e.call(null,d),se({inputs:I({},z,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[se]),fe=(0,u.useCallback)((function(){var e;return Boolean(null===(e=G.current.getValue)||void 0===e?void 0:e.call(null))}),[]),ve=(0,u.useCallback)((function(){var e,n,t;return[null===(e=K.current.getValue)||void 0===e?void 0:e.call(null),null===(n=X.current.getValue)||void 0===n?void 0:n.call(null),null===(t=W.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),pe=(0,u.useCallback)((function(){var e;(null===(e=K.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?P(fe()):ce()}),[fe,ce]),me=(0,u.useCallback)((function(){var e;(null===(e=Y.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?A(ve()):de()}),[ve,de]),he=(0,u.useCallback)((function(){var e,n=ce();(null===(e=Y.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||de({organizationPrefix:n})}),[de,ce]),ge=(0,u.useCallback)((function(){de()}),[de]),xe=(0,u.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),be=(0,u.useMemo)((function(){return(0,r.jsx)(p.Z,{checked:$,onChange:function(e,n){var t;q(n),se({inputs:(t={},I(t,R,{compare:[!n],isIgnoreOnCallbacks:!1}),I(t,z,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[$,se]);return(0,u.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,l;return{adminPassword:null===(e=Q.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=G.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=K.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=W.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=X.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(l=Y.current.getValue)||void 0===l?void 0:l.call(null)}}}})),(0,r.jsxs)(v.Z,{children:[(0,r.jsxs)(o.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(g.Z,{input:(0,r.jsx)(y.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:pe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){se()},onHelp:function(){f(xe("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:G}),(0,r.jsxs)(v.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(g.Z,{input:(0,r.jsx)(y.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(S,{show:w,onClick:he}),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;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(g.Z,{input:(0,r.jsx)(y.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:m.Z.password},onBlur:function(e){var n=e.target.value;ae({inputs:I({},F,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===m.Z.password;se({isExcludeConfirmAdminPassword:!n}),B(n),oe()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;se({inputs:I({},F,{value:n})}),le()},onHelp:function(){f(xe("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:Q})}),T&&(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(g.Z,{input:(0,r.jsx)(y.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:m.Z.password},onBlur:function(e){var n=e.target.value;ae({inputs:I({},M,{value:n})})}},inputLabelProps:{isNotifyRequired:T},label:"Confirm password",onChange:function(e){var n=e.target.value;se({inputs:I({},M,{value:n})}),oe()}}),ref:J})})]})})]}),(0,r.jsx)(b.Z,{count:1,defaultMessageType:"warning",ref:ee}),(0,r.jsx)(x.Z,{children:(0,r.jsxs)(v.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[be,(0,r.jsx)(C.Ac,{inverted:!0,children:$?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),d&&(0,r.jsx)(x.Z,{onClose:function(){f(void 0)},children:d})]})}));U.defaultProps={toggleSubmitDisabled:void 0},U.displayName="GeneralInitForm";var $=U,q=t(1770),Q=t(1706),J=t(3377),G=t(2444),K=t(5741),W=t(8461),X=t(3679),Y=t(2152);function ee(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ne(e){for(var n=1;nn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(i[t]=n[t]);return i}(n,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}function j(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,i,o=[],u=!0,a=!1;try{for(t=t.call(n);!(u=(r=t.next()).done)&&(o.push(r.value),!e||o.length!==e);u=!0);}catch(l){a=!0,i=l}finally{try{u||null==t.return||t.return()}finally{if(a)throw i}}return o}}(n,e)||P(n,e)||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(n){return function(n){if(Array.isArray(n))return v(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||P(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 P(n,e){if(n){if("string"===typeof n)return v(n,e);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)?v(n,e):void 0}}var O={width:"100%"},I="gate-input",Z="".concat(I,"-credential-id"),S="".concat(I,"-credential-passphrase"),A="access",L=(0,o.forwardRef)((function(n,e){var t,v,y=n.formContainer,P=void 0===y||y,I=n.gridProps,L=void 0===I?{}:I,C=L.columns,_=void 0===C?{xs:1,sm:2}:C,F=(L.layout,L.spacing),E=void 0===F?"1em":F,M=n.identifierId,R=void 0===M?Z:M,T=n.identifierInputTestBatchBuilder,B=void 0===T?m.Gn:T,k=n.identifierLabel,N=n.identifierOutlinedInputWithLabelProps,U=void 0===N?{}:N,W=U.formControlProps,G=void 0===W?{}:W,q=U.inputProps,z=n.onIdentifierBlurAppend,D=n.onSubmit,V=n.onSubmitAppend,X=n.passphraseId,H=void 0===X?S:X,Q=n.passphraseLabel,$=n.passphraseOutlinedInputWithLabelProps,J=void 0===$?{}:$,K=J.formControlProps,Y=void 0===K?{}:K,nn=J.inputProps,en=n.submitLabel,tn=n.allowSubmit,rn=void 0===tn?P:tn,on=x(n.gridProps,["columns","layout","spacing"]),un=x(n.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),an=x(n.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ln=G.sx,sn=x(G,["sx"]),cn=Y.sx,pn=x(Y,["sx"]),dn=(0,o.useRef)({}),fn=(0,o.useRef)({}),mn=(0,o.useRef)({}),hn=j((0,b.Z)(!1),2),bn=hn[0],vn=hn[1],yn=(0,h.Z)([Z,S],mn),gn=yn.buildFinishInputTestBatchFunction,xn=yn.buildInputFirstRenderFunction,jn=yn.buildInputUnmountFunction,wn=yn.isFormInvalid,Pn=yn.setMessage,On=(0,o.useMemo)((function(){return null!==D&&void 0!==D?D:function(){for(var n=arguments.length,e=new Array(n),t=0;t`spacing-xs-${n}`)),...["column-reverse","column","row-reverse","row"].map((n=>`direction-xs-${n}`)),...["nowrap","wrap-reverse","wrap"].map((n=>`wrap-xs-${n}`)),...g.map((n=>`grid-xs-${n}`)),...g.map((n=>`grid-sm-${n}`)),...g.map((n=>`grid-md-${n}`)),...g.map((n=>`grid-lg-${n}`)),...g.map((n=>`grid-xl-${n}`))]),x=t(5893);const b=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function v(n){const r=parseFloat(n);return`${r}${String(n).replace(String(r),"")||"px"}`}function w(n,r,t={}){if(!r||!n||n<=0)return[];if("string"===typeof n&&!Number.isNaN(Number(n))||"number"===typeof n)return[t[`spacing-xs-${String(n)}`]||`spacing-xs-${String(n)}`];const{xs:e,sm:i,md:o,lg:a,xl:s}=n;return[Number(e)>0&&(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 S=(0,l.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:c,xl:l,xs:p,zeroMinWidth:d}=n.ownerState;return[r.root,t&&r.container,i&&r.item,d&&r.zeroMinWidth,...w(u,t,r),"row"!==e&&r[`direction-xs-${String(e)}`],"wrap"!==c&&r[`wrap-xs-${String(c)}`],!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!==l&&r[`grid-xl-${String(l)}`]]}})((({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[`& > .${h.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:`-${v(t)}`,[`& > .${h.item}`]:{paddingTop:v(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% + ${v(t)})`,marginLeft:`-${v(t)}`,[`& > .${h.item}`]:{paddingLeft:v(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}),c="object"===typeof u?u[o]:u;if(void 0===c||null===c)return e;const l=Math.round(t/c*1e8)/1e6+"%";let p={};if(r.container&&r.item&&0!==r.columnSpacing){const t=n.spacing(r.columnSpacing);if("0px"!==t){const n=`calc(${l} + ${v(t)})`;p={flexBasis:n,maxWidth:n}}}a=(0,i.Z)({flexBasis:l,flexGrow:0,maxWidth:l},p)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));var y=o.forwardRef((function(n,r){const t=(0,p.Z)({props:n,name:"MuiGrid"}),s=(0,u.Z)(t),{className:l,columns:m,columnSpacing:g,component:h="div",container:v=!1,direction:y="row",item:$=!1,lg:P=!1,md:j=!1,rowSpacing:Z,sm:O=!1,spacing:k=0,wrap:M="wrap",xl:I=!1,xs:W=!1,zeroMinWidth:N=!1}=s,A=(0,e.Z)(s,b),L=Z||k,C=g||k,B=o.useContext(d),F=m||B||12,R=(0,i.Z)({},s,{columns:F,container:v,direction:y,item:$,lg:P,md:j,sm:O,rowSpacing:L,columnSpacing:C,wrap:M,xl:I,xs:W,zeroMinWidth:N}),_=(n=>{const{classes:r,container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:l,xl:p,xs:d,zeroMinWidth:m}=n,g={root:["root",t&&"container",i&&"item",m&&"zeroMinWidth",...w(u,t),"row"!==e&&`direction-xs-${String(e)}`,"wrap"!==l&&`wrap-xs-${String(l)}`,!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,c.Z)(g,f,r)})(R);return z=(0,x.jsx)(S,(0,i.Z)({ownerState:R,className:(0,a.Z)(_.root,l),as:h,ref:r},A)),12!==F?(0,x.jsx)(d.Provider,{value:F,children:z}):z;var z}))},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),c=t(7504),l=t(9099),p=t(7869),d=t(6284),m=t(2152),f=t(7987),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",M=(0,o.forwardRef)((function(n,r){var t,x,b=n.formContainer,$=void 0===b||b,j=n.gridProps,M=void 0===j?{}:j,I=M.columns,W=void 0===I?{xs:1,sm:2}:I,N=(M.layout,M.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,z=void 0===_?{}:_,G=z.formControlProps,T=void 0===G?{}:G,E=z.inputProps,U=n.onIdentifierBlurAppend,q=n.onSubmit,D=n.onSubmitAppend,V=n.passphraseId,X=void 0===V?O:V,H=n.passphraseLabel,Q=n.passphraseOutlinedInputWithLabelProps,J=void 0===Q?{}:Q,K=J.formControlProps,Y=void 0===K?{}:K,nn=J.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=T.sx,cn=w(T,["sx"]),ln=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 y=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,b=e.renderInput,g=e.sx,j=v(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),x=h({paper:{sx:{backgroundColor:d.lD}}},n),w=null!==b&&void 0!==b?b: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))},O=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)(l.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(s.Z,h({PaperComponent:y},j,{componentsProps:x,renderInput:w,sx:O})),(0,r.jsx)(f.Z,h({},i))]})}},2545:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(157);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}var u=(0,o.forwardRef)((function(e,n){var t=e.scrollContent,u=(0,o.useMemo)((function(){return t?".5em":void 0}),[t]);return(0,r.jsx)(i.Z,function(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);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)||O(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 y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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 O(e,n){if(e){if("string"===typeof e)return y(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)?y(e,n):void 0}}var k={width:"100%"},P="gate-input",I="".concat(P,"-credential-id"),Z="".concat(P,"-credential-passphrase"),S="access",A=(0,i.forwardRef)((function(e,n){var t,y,b=e.formContainer,O=void 0===b||b,P=e.gridProps,A=void 0===P?{}:P,M=A.columns,T=void 0===M?{xs:1,sm:2}:M,F=(A.layout,A.spacing),C=void 0===F?"1em":F,U=e.identifierId,E=void 0===U?I:U,N=e.identifierInputTestBatchBuilder,R=void 0===N?m.Gn:N,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,L=void 0===D?{}:D,q=L.formControlProps,_=void 0===q?{}:q,H=L.inputProps,V=e.onIdentifierBlurAppend,$=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,K=e.passphraseOutlinedInputWithLabelProps,J=void 0===K?{}:K,X=J.formControlProps,Y=void 0===X?{}:X,ee=J.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?O: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"]),le=Y.sx,se=j(Y,["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],ye=(0,h.Z)([I,Z],pe),be=ye.buildFinishInputTestBatchFunction,ge=ye.buildInputFirstRenderFunction,je=ye.buildInputUnmountFunction,xe=ye.isFormInvalid,we=ye.setMessage,Oe=(0,i.useMemo)((function(){return null!==$&&void 0!==$?$:function(){for(var e=arguments.length,n=new Array(e),t=0;t0}),[f.length]),h=(0,o.useMemo)((function(){return d.length>1}),[d.length]),v=(0,o.useCallback)((function(e){var n=e.confirmDialogProps,t=void 0===n?{}:n,o=e.formSummaryProps,i=void 0===o?{}:o,u=e.getConfirmDialogTitle,s=e.onProceedAppend,d=e.renderEntry;return c({actionProceedText:"Delete",content:(0,r.jsx)(a.Z,c({entries:l,maxDepth:0,renderEntry:d},i)),onProceedAppend:s,proceedColour:"red",titleText:u(f.length)},t)}),[l,f.length]),y=(0,o.useCallback)((function(e){return l[e]}),[l]),b=(0,o.useCallback)((function(e){return s(d.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[d]),g=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:v,checklist:l,checks:f,getCheck:y,hasAllChecks:p,hasChecks:m,multipleItems:h,setAllChecks:b,setCheck:g}}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,u=void 0===o?"":o,c=e.titleText,l=void 0===c?"":c,s=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:u,titleText:l},s))}},8938:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Cr}});var r=t(5893),o=t(9008),i=t(1163),a=t(7294),u=t(4390);function c(e,n){return null!=n&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n}var l=function(e){var n=arguments.length>1&&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},s=t(7504),d=t(1770),f=t(5521),p=t(2029),m=t(7357),h=t(4594),v=t(1496),y=t(4386),b=t(4188),g=t(4690),j=t(9099),x=t(6284),w=t(3679),O=t(7783),k=t(480),P=t(2852),I=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);tE(n,1)[0]?1:-1})).reduce((function(e,o){var a=E(o,2),u=a[0],c=a[1],l=c.content_type,s=c.default,d=c.deprecated,p=c.description,h=c.options,v=c.required;if("1"===String(d))return e;var b,g,j=e.optional,x=e.required,w=null!==(b=D[l])&&void 0!==b?b:D.string,O=L(n,u),k=null!==(g=f[O])&&void 0!==g?g:s,P="1"===String(v),I=/passw/i.test(u),S=w({formUtils:i,id:O,isChecked:N.includes(k),isRequired:P,isSensitive:I,label:u,selectOptions:h,value:k}),A=(0,r.jsx)(y.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)(q,{children:[(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:b,label:O,name:b,value:u}),inputTestBatch:(0,F.Gn)(O,(function(){d(b)}),{onFinishBatch:l(b)},(function(e){d(b,{children:e})})),onFirstRender:s(b),required:!0},"".concat(b,"-wrapper")),v]})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(q,{children:h})})]})}return e}),[l,s,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),s(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:l})}),[d,l,i]),p=(0,a.useMemo)((function(){return(0,r.jsx)(_,{fenceId:null===l||void 0===l?void 0:l.fenceId,fenceTemplate:n,formUtils:t})}),[n,null===l||void 0===l?void 0:l.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!==l)}),[l,u,i]),(0,r.jsx)(r.Fragment,{children:v})},K=t(157),J=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.formUtils,i=e.loading,u=e.previousFenceName,c=e.previousFenceParameters,l=(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:l})},X=t(2545),Y=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?sn(a)?"":void 0:u,l=e.networkNumber,s=void 0===l?y(a)+1:l;return{network:{networkGateway:c,networkMinIp:t,networkNumber:s,networkSubnetMask:o,networkType:a},networkId:(0,_e.Z)()}}),[y]),w=(0,a.useCallback)((function(e,n){return f((0,Xe.ZP)(e,n))}),[f]),O=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,l=t.reduce((function(e,n){var t=tn(n,2),i=t[0],l=t[1],s=l.networkNumber,d=l.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?s=c:d===o&&(s-=1),e[i]=nn({},l,{networkNumber:s,networkType:d})):e[i]=l,e}),{});f(l)}),[t,v,f]),k=(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]),P=(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,l=a.networkNumber,s=a.networkSubnetMask,d=a.networkType,f="".concat(on,"-").concat(i),p=1===l,m=sn(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(Je,{formUtils:n,networkId:i,networkNumber:l,networkType:d,networkTypeOptions:b,onClose:k,onNetworkTypeChange:O,previous:{gateway:u,minIp:c,subnetMask:s},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,b,k,O]);return(0,r.jsx)(s.Z,{columns:{xs:1,sm:2,md:3},layout:nn({},P,{"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,F.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,F.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:l}),inputTestBatch:(0,F.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,l=u.networkConfig,s=void 0===l?{}:l,d=fn(e.previous,["hostConfig","networkConfig"]),f=s.networks,p=void 0===f?pn:f,m=(0,a.useState)(p),h=m[0],v=m[1],y=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(qe,{formUtils:n,previous:d}),(0,r.jsx)(dn,{formUtils:n,networkListEntries:y,previous:s,setNetworkList:v}),(0,r.jsx)(Ce,{formUtils:n,knownFences:t,knownUpses:o,networkListEntries:y,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 yt(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 yt(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,l=e.radioItems,s=e.radioProps,d=(void 0===s?{}:s).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(l).map((function(e){var n=xt(e,2),o=n[0],a=n[1],u=a.label,c=a.value,l="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(k.Z,gt({control:(0,r.jsx)(ft.Z,gt({},p,{sx:gt(bt({},"&.".concat(pt.Z.root),{color:I.s7}),d)})),value:c,label:l},t),"".concat(i,"-").concat(o))}))}),[t,i,l,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}))]}))},Ot=t(3144);function kt(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 Ht(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)||$t(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 Vt(e){return function(e){if(Array.isArray(e))return Dt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$t(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 $t(e,n){if(e){if("string"===typeof e)return Dt(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)?Dt(e,n):void 0}}var Gt="prepare-network-host-name-input",zt="prepare-network-netconf-input-group",Wt="Host name",Qt=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 tr=function(e){var n=e.label,t=nr(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 dr(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 cr(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 cr(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 fr="1.8em",pr=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=sr(e,["orientation","variant"]),l=(0,or.Z)(),s=(0,a.useCallback)((function(e){return l.breakpoints.up(e)}),[l]),d=(0,ir.Z)(s("xs")),f=(0,ir.Z)(s("sm")),p=(0,ir.Z)(s("md")),m=(0,ir.Z)(s("lg")),h=(0,ir.Z)(s("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),y=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=dr(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)(ar.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 y=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,b=e.renderInput,g=e.sx,j=v(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),x=h({paper:{sx:{backgroundColor:d.lD}}},n),w=null!==b&&void 0!==b?b: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))},O=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)(l.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(s.Z,h({PaperComponent:y},j,{componentsProps:x,renderInput:w,sx:O})),(0,r.jsx)(f.Z,h({},i))]})}},2545:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(157);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}var u=(0,o.forwardRef)((function(e,n){var t=e.scrollContent,u=(0,o.useMemo)((function(){return t?".5em":void 0}),[t]);return(0,r.jsx)(i.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 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)||O(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 y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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 O(e,n){if(e){if("string"===typeof e)return y(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)?y(e,n):void 0}}var P={width:"100%"},I="gate-input",k="".concat(I,"-credential-id"),Z="".concat(I,"-credential-passphrase"),S="access",A=(0,i.forwardRef)((function(e,n){var t,y,b=e.formContainer,O=void 0===b||b,I=e.gridProps,A=void 0===I?{}:I,T=A.columns,M=void 0===T?{xs:1,sm:2}:T,F=(A.layout,A.spacing),C=void 0===F?"1em":F,U=e.identifierId,N=void 0===U?k:U,R=e.identifierInputTestBatchBuilder,E=void 0===R?m.Gn:R,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,q=void 0===D?{}:D,_=q.formControlProps,L=void 0===_?{}:_,H=q.inputProps,$=e.onIdentifierBlurAppend,V=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,K=e.passphraseOutlinedInputWithLabelProps,X=void 0===K?{}:K,Y=X.formControlProps,J=void 0===Y?{}:Y,ee=X.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?O:te,oe=j(e.gridProps,["columns","layout","spacing"]),ie=j(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ae=j(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ue=L.sx,ce=j(L,["sx"]),le=J.sx,se=j(J,["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],ye=(0,h.Z)([k,Z],pe),be=ye.buildFinishInputTestBatchFunction,ge=ye.buildInputFirstRenderFunction,je=ye.buildInputUnmountFunction,xe=ye.isFormInvalid,we=ye.setMessage,Oe=(0,i.useMemo)((function(){return null!==V&&void 0!==V?V:function(){for(var e=arguments.length,n=new Array(e),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}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,u=void 0===o?"":o,c=e.titleText,l=void 0===c?"":c,s=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:u,titleText:l},s))}},8938:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return br}});var r=t(5893),o=t(9008),i=t(1163),a=t(7294),u=t(4390);function c(e,n){return null!=n&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n}var l=function(e){var n=arguments.length>1&&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},s=t(7504),d=t(1770),f=t(5521),p=t(7357),m=t(2029),h=t(4594),v=t(1496),y=t(4386),b=t(4188),g=t(4690),j=t(9099),x=t(6284),w=t(3679),O=t(7783),P=t(480),I=t(2852),k=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);tU(n,1)[0]?1:-1})).reduce((function(e,o){var i=U(o,2),a=i[0],u=i[1],l=u.content_type,s=u.default,d=u.deprecated,f=u.description,m=u.options,h=u.required;if(!("1"===String(d))){var v,b,g=e.optional,j=e.required,x=null!==(v=E[l])&&void 0!==v?v:E.string,w=B(n,a),O=null!==(b=c[w])&&void 0!==b?b:s,P="1"===String(h),I=/passw/i.test(a),k=x({id:w,isChecked:N.includes(O),isRequired:P,isSensitive:I,label:a,selectOptions:m,value:O}),S=(0,r.jsx)(y.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.jsx)(D,{children:d})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(D,{children:s})})]})}return e}),[n,t,o,i,u]);return(0,r.jsx)(r.Fragment,{children:c})},_=t(2152);function L(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t$(n,1)[0]?1:-1})).map((function(e){var n=$(e,2),t=n[0],r=n[1].description;return{fenceDescription:"string"===typeof r?r:"No description.",fenceId:t,label:t}})):[]}),[n]),l=(0,a.useMemo)((function(){return(0,r.jsx)(h.Z,{id:"add-fence-select-type",isOptionEqualToValue:function(e,n){return e.fenceId===n.fenceId},label:"Fence device type",onChange:function(e,n){u(n)},openOnFocus:!0,options:c,renderOption:function(e,n,t){var o=n.fenceDescription,i=n.fenceId,a=t.selected;return(0,r.jsxs)(p.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:i})}),[c,i]),s=(0,a.useMemo)((function(){return(0,r.jsx)(q,{fenceId:null===i||void 0===i?void 0:i.fenceId,fenceTemplate:n})}),[n,i]),d=(0,a.useMemo)((function(){return t?(0,r.jsx)(_.Z,{}):(0,r.jsxs)(g.Z,{children:[l,s]})}),[l,s,t]);return(0,r.jsx)(r.Fragment,{children:d})},G=t(157),z=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.loading,i=e.previousFenceName,u=e.previousFenceParameters,c=(0,a.useMemo)((function(){return o?(0,r.jsx)(_.Z,{}):(0,r.jsx)(q,{fenceId:n,fenceTemplate:t,previousFenceName:i,previousFenceParameters:u})}),[t,n,o,i,u]);return(0,r.jsx)(r.Fragment,{children:c})},W=t(6125),Q=t(1905),K=t(1081),X=t(2749);function Y(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 Ge(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?Je(a)?"":void 0:u,l=e.networkNumber,s=void 0===l?y(a)+1:l;return{network:{networkGateway:c,networkMinIp:t,networkNumber:s,networkSubnetMask:o,networkType:a},networkId:(0,Fe.Z)()}}),[y]),w=(0,a.useCallback)((function(e,n){return f((0,Le.ZP)(e,n))}),[f]),O=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,l=t.reduce((function(e,n){var t=Ge(n,2),i=t[0],l=t[1],s=l.networkNumber,d=l.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?s=c:d===o&&(s-=1),e[i]=Ve({},l,{networkNumber:s,networkType:d})):e[i]=l,e}),{});f(l)}),[t,v,f]),P=(0,a.useCallback)((function(e){var n=e.networkId,r=e.networkType,o=!1,i=0,a=t.reduce((function(e,t){var a=Ge(t,2),u=a[0],c=a[1];u===n?o=!0:(c.networkType===r&&(i+=1),e[u]=o?Ve({},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=Ge(t,2),i=o[0],a=o[1],u=a.networkGateway,c=a.networkMinIp,l=a.networkNumber,s=a.networkSubnetMask,d=a.networkType,f="".concat(We,"-").concat(i),p=1===l,m=Je(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(_e,{formUtils:n,networkId:i,networkNumber:l,networkType:d,networkTypeOptions:b,onClose:P,onNetworkTypeChange:O,previous:{gateway:u,minIp:c,subnetMask:s},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,b,P,O]);return(0,r.jsx)(s.Z,{columns:{xs:1,sm:2,md:3},layout:Ve({},I,{"an-network-config-cell-add-network":{children:(0,r.jsx)(Ue.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:Qe,label:"DNS",value:c}),inputTestBatch:(0,ae.dg)("DNS",(function(){h(Qe)}),{onFinishBatch:p(Qe)},(function(e){h(Qe,{children:e})})),onFirstRender:m(Qe),required:!0})},"an-network-config-input-cell-ntp":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:Xe,label:"NTP",value:d}),inputTestBatch:(0,ae.dg)("NTP",(function(){h(Xe)}),{onFinishBatch:p(Xe)},(function(e){h(Xe,{children:e})})),onFirstRender:m(Xe)})},"an-network-config-input-cell-mtu":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:Ke,inputProps:{placeholder:"1500"},label:"MTU",value:l}),inputTestBatch:(0,ae.qY)("MTU",(function(){h(Ke)}),{onFinishBatch:p(Ke)},(function(e){h(Ke,{children:e})})),onFirstRender:m(Ke),valueType:"number"})}}),spacing:"1em"})};function nn(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 tn={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"}},rn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous,u=void 0===i?{}:i,c=u.hostConfig,l=u.networkConfig,s=void 0===l?{}:l,d=nn(e.previous,["hostConfig","networkConfig"]),f=s.networks,p=void 0===f?tn:f,m=(0,a.useState)(p),h=m[0],v=m[1],y=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(Me,{formUtils:n,previous:d}),(0,r.jsx)(en,{formUtils:n,networkListEntries:y,previous:s,setNetworkList:v}),(0,r.jsx)(Oe,{formUtils:n,knownFences:t,knownUpses:o,networkListEntries:y,previous:c})]})},on=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous;return(0,r.jsx)(rn,{formUtils:n,knownFences:t,knownUpses:o,previous:i})},an=t(2545),un=t(7869);function cn(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 ht(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 dt(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 dt(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 vt=function(e){var n=e.formControlProps,t=e.formControlLabelProps,o=e.formLabelProps,i=e.id,u=e.label,c=e.onChange,l=e.radioItems,s=e.radioProps,d=(void 0===s?{}:s).sx,f=e.radioGroupProps,p=mt(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(l).map((function(e){var n=ht(e,2),o=n[0],a=n[1],u=a.label,c=a.value,l="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(P.Z,pt({control:(0,r.jsx)(at.Z,pt({},p,{sx:pt(ft({},"&.".concat(ut.Z.root),{color:k.s7}),d)})),value:c,label:l},t),"".concat(i,"-").concat(o))}))}),[t,i,l,d,p]);return(0,r.jsxs)(ct.Z,pt({},n,{children:[(0,r.jsx)(lt.Z,pt({},o,{children:m})),(0,r.jsx)(st.Z,pt({onChange:c,row:!0},f,{children:h}))]}))},yt=t(3144);function bt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var _t=function(e){var n=e.label,t=qt(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)(Et.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 Kt(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 zt(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 zt(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 Xt="1.8em",Yt=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=Qt(e,["orientation","variant"]),l=(0,Ht.Z)(),s=(0,a.useCallback)((function(e){return l.breakpoints.up(e)}),[l]),d=(0,$t.Z)(s("xs")),f=(0,$t.Z)(s("sm")),p=(0,$t.Z)(s("md")),m=(0,$t.Z)(s("lg")),h=(0,$t.Z)(s("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),y=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=Kt(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)(Vt.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);tAnvil
\ 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 be937233..72382a52 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 63abf25e..8fb49405 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 50863a7c..58a66368 100644 --- a/striker-ui/out/index.html +++ b/striker-ui/out/index.html @@ -1 +1 @@ -Dashboard
      \ No newline at end of file +Dashboard
      \ No newline at end of file diff --git a/striker-ui/out/init.html b/striker-ui/out/init.html index 082bf2af..c18255cd 100644 --- a/striker-ui/out/init.html +++ b/striker-ui/out/init.html @@ -1 +1 @@ -

      Initialize striker

      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 b80781d2..624233dd 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 9a5dadf8..e6b0c7d2 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 caeab84e..c7227b91 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