From b2b330914dfbe4b88fa871d2e1f06057b9d75c97 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 6 Dec 2023 18:08:08 -0500 Subject: [PATCH] build(striker-ui): rebuild --- .../out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js | 1 + .../_middlewareManifest.js | 0 .../_ssgManifest.js | 0 .../out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_buildManifest.js | 1 - striker-ui/out/_next/static/chunks/209-4e2794319babfeec.js | 1 + striker-ui/out/_next/static/chunks/247-0dbdd6350b819672.js | 1 - striker-ui/out/_next/static/chunks/27-7790e406eb2ea28d.js | 1 + .../chunks/{336-24770f9b2621610a.js => 336-33ece0c8120f3bd4.js} | 2 +- .../chunks/{692-f4e7771f3a43db26.js => 404-b8e9ff2043a0d30c.js} | 2 +- .../chunks/{560-0ed707609765e23a.js => 560-a9c9ecda0eca25a9.js} | 2 +- striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js | 1 + striker-ui/out/_next/static/chunks/62-1cb6d52404130873.js | 1 - striker-ui/out/_next/static/chunks/638-13a283c3a7da370b.js | 1 + .../chunks/{707-445cd83859b24a36.js => 707-705fb5e735d81042.js} | 2 +- .../chunks/{86-366ac64963a6a0fd.js => 86-d7025c9609028f44.js} | 2 +- striker-ui/out/_next/static/chunks/94-8322ed453a3c08f0.js | 1 - striker-ui/out/_next/static/chunks/94-f83c1e7821f76736.js | 1 + striker-ui/out/_next/static/chunks/960-e28948d6eb4c8144.js | 1 - striker-ui/out/_next/static/chunks/987-1ff0d82724b0e58b.js | 1 - .../{anvil-48975a0cc7fcbd1f.js => anvil-3bce568d47e8eaba.js} | 2 +- .../out/_next/static/chunks/pages/config-511a465cb55668af.js | 1 + .../out/_next/static/chunks/pages/config-f22ac92929f0daf0.js | 1 - .../_next/static/chunks/pages/file-manager-53de9163caaf5a86.js | 1 - .../_next/static/chunks/pages/file-manager-a085c3bead0f489f.js | 1 + .../out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js | 1 + .../out/_next/static/chunks/pages/index-e5b260a0ddaa050c.js | 1 - .../{init-84d6e766b3c27e21.js => init-59fe9f29b6489800.js} | 2 +- .../{login-6f7a93d56a339079.js => login-183a6e481fd67cca.js} | 2 +- .../static/chunks/pages/manage-element-a689bf0140460775.js | 1 - .../static/chunks/pages/manage-element-d8b8ab9027cbbb98.js | 1 + striker-ui/out/anvil.html | 2 +- striker-ui/out/config.html | 2 +- striker-ui/out/file-manager.html | 2 +- striker-ui/out/index.html | 2 +- striker-ui/out/init.html | 2 +- striker-ui/out/login.html | 2 +- striker-ui/out/manage-element.html | 2 +- striker-ui/out/server.html | 2 +- 38 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js rename striker-ui/out/_next/static/{aBwJM8_Hf5TQtM8KFF7tW => BhFewlGkfrUA_bCvxhgLY}/_middlewareManifest.js (100%) rename striker-ui/out/_next/static/{aBwJM8_Hf5TQtM8KFF7tW => BhFewlGkfrUA_bCvxhgLY}/_ssgManifest.js (100%) delete mode 100644 striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_buildManifest.js create mode 100644 striker-ui/out/_next/static/chunks/209-4e2794319babfeec.js delete mode 100644 striker-ui/out/_next/static/chunks/247-0dbdd6350b819672.js create mode 100644 striker-ui/out/_next/static/chunks/27-7790e406eb2ea28d.js rename striker-ui/out/_next/static/chunks/{336-24770f9b2621610a.js => 336-33ece0c8120f3bd4.js} (68%) rename striker-ui/out/_next/static/chunks/{692-f4e7771f3a43db26.js => 404-b8e9ff2043a0d30c.js} (99%) rename striker-ui/out/_next/static/chunks/{560-0ed707609765e23a.js => 560-a9c9ecda0eca25a9.js} (83%) create mode 100644 striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js delete mode 100644 striker-ui/out/_next/static/chunks/62-1cb6d52404130873.js create mode 100644 striker-ui/out/_next/static/chunks/638-13a283c3a7da370b.js rename striker-ui/out/_next/static/chunks/{707-445cd83859b24a36.js => 707-705fb5e735d81042.js} (99%) rename striker-ui/out/_next/static/chunks/{86-366ac64963a6a0fd.js => 86-d7025c9609028f44.js} (99%) delete mode 100644 striker-ui/out/_next/static/chunks/94-8322ed453a3c08f0.js create mode 100644 striker-ui/out/_next/static/chunks/94-f83c1e7821f76736.js delete mode 100644 striker-ui/out/_next/static/chunks/960-e28948d6eb4c8144.js delete mode 100644 striker-ui/out/_next/static/chunks/987-1ff0d82724b0e58b.js rename striker-ui/out/_next/static/chunks/pages/{anvil-48975a0cc7fcbd1f.js => anvil-3bce568d47e8eaba.js} (99%) create mode 100644 striker-ui/out/_next/static/chunks/pages/config-511a465cb55668af.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/config-f22ac92929f0daf0.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/file-manager-53de9163caaf5a86.js create mode 100644 striker-ui/out/_next/static/chunks/pages/file-manager-a085c3bead0f489f.js create mode 100644 striker-ui/out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/index-e5b260a0ddaa050c.js rename striker-ui/out/_next/static/chunks/pages/{init-84d6e766b3c27e21.js => init-59fe9f29b6489800.js} (99%) rename striker-ui/out/_next/static/chunks/pages/{login-6f7a93d56a339079.js => login-183a6e481fd67cca.js} (98%) delete mode 100644 striker-ui/out/_next/static/chunks/pages/manage-element-a689bf0140460775.js create mode 100644 striker-ui/out/_next/static/chunks/pages/manage-element-d8b8ab9027cbbb98.js diff --git a/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js b/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js new file mode 100644 index 00000000..621480b0 --- /dev/null +++ b/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,a,e,t,n,i,f,d,b,u,k,h,j,r,g,l){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,f,d,"static/chunks/82-b2661d1af04f38ff.js",c,t,n,i,h,j,"static/chunks/pages/index-0bfb652a4f03dc4d.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,a,e,f,d,"static/chunks/638-13a283c3a7da370b.js",c,t,n,i,h,"static/chunks/pages/anvil-3bce568d47e8eaba.js"],"/config":[s,a,e,u,"static/chunks/519-4b7761e884c88eb9.js",c,t,n,i,b,k,r,"static/chunks/pages/config-511a465cb55668af.js"],"/file-manager":["static/chunks/29107295-fbcfe2172188e46f.js",s,a,e,f,"static/chunks/176-7308c25ba374961e.js",c,t,i,b,"static/chunks/pages/file-manager-a085c3bead0f489f.js"],"/init":[s,a,f,d,u,g,c,t,n,i,l,"static/chunks/pages/init-59fe9f29b6489800.js"],"/login":[s,a,e,c,t,n,b,k,"static/chunks/pages/login-183a6e481fd67cca.js"],"/manage-element":[s,a,e,f,d,u,g,"static/chunks/111-2605129c170ed35d.js",c,t,n,i,b,k,l,r,"static/chunks/pages/manage-element-d8b8ab9027cbbb98.js"],"/server":[s,e,"static/chunks/528-72edc50189f30fa9.js",c,j,"static/chunks/pages/server-8faafa80170f67f2.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/412-d77d0985f9905450.js","static/chunks/62-09a1812bcc63d819.js","static/chunks/438-0147a63d98e89439.js","static/chunks/894-e57948de523bcf96.js","static/chunks/195-fa06e61dd4339031.js","static/chunks/27-7790e406eb2ea28d.js","static/chunks/157-d1418743accab385.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/209-4e2794319babfeec.js","static/chunks/48-d4400834d0a31c6e.js","static/chunks/644-4eec2b397fdacb0c.js","static/chunks/336-33ece0c8120f3bd4.js","static/chunks/707-705fb5e735d81042.js","static/chunks/94-f83c1e7821f76736.js","static/chunks/560-a9c9ecda0eca25a9.js","static/chunks/404-b8e9ff2043a0d30c.js","static/chunks/86-d7025c9609028f44.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_middlewareManifest.js b/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_middlewareManifest.js similarity index 100% rename from striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_middlewareManifest.js rename to striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_middlewareManifest.js diff --git a/striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_ssgManifest.js b/striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_ssgManifest.js similarity index 100% rename from striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_ssgManifest.js rename to striker-ui/out/_next/static/BhFewlGkfrUA_bCvxhgLY/_ssgManifest.js diff --git a/striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_buildManifest.js b/striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_buildManifest.js deleted file mode 100644 index bf7990f0..00000000 --- a/striker-ui/out/_next/static/aBwJM8_Hf5TQtM8KFF7tW/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,n,i,f,u,k,d,h,j,b,r,g,l){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,f,u,"static/chunks/82-b2661d1af04f38ff.js",c,t,n,i,j,b,"static/chunks/pages/index-e5b260a0ddaa050c.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,a,e,f,u,"static/chunks/247-0dbdd6350b819672.js",c,t,n,i,j,"static/chunks/pages/anvil-48975a0cc7fcbd1f.js"],"/config":[s,a,e,d,"static/chunks/519-4b7761e884c88eb9.js",c,t,n,i,k,h,r,"static/chunks/pages/config-f22ac92929f0daf0.js"],"/file-manager":["static/chunks/29107295-fbcfe2172188e46f.js",s,a,e,f,"static/chunks/176-7308c25ba374961e.js",c,t,i,k,"static/chunks/pages/file-manager-53de9163caaf5a86.js"],"/init":[s,a,f,u,d,g,c,t,n,i,l,"static/chunks/pages/init-84d6e766b3c27e21.js"],"/login":[s,a,e,c,t,n,k,h,"static/chunks/pages/login-6f7a93d56a339079.js"],"/manage-element":[s,a,e,f,u,d,g,"static/chunks/111-2605129c170ed35d.js",c,t,n,i,k,h,l,r,"static/chunks/pages/manage-element-a689bf0140460775.js"],"/server":[s,e,"static/chunks/528-72edc50189f30fa9.js",c,b,"static/chunks/pages/server-8faafa80170f67f2.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/412-d77d0985f9905450.js","static/chunks/62-1cb6d52404130873.js","static/chunks/438-0147a63d98e89439.js","static/chunks/894-e57948de523bcf96.js","static/chunks/195-fa06e61dd4339031.js","static/chunks/987-1ff0d82724b0e58b.js","static/chunks/157-d1418743accab385.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/960-e28948d6eb4c8144.js","static/chunks/48-d4400834d0a31c6e.js","static/chunks/644-4eec2b397fdacb0c.js","static/chunks/336-24770f9b2621610a.js","static/chunks/707-445cd83859b24a36.js","static/chunks/94-8322ed453a3c08f0.js","static/chunks/560-0ed707609765e23a.js","static/chunks/692-f4e7771f3a43db26.js","static/chunks/86-366ac64963a6a0fd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/209-4e2794319babfeec.js b/striker-ui/out/_next/static/chunks/209-4e2794319babfeec.js new file mode 100644 index 00000000..2874ee81 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/209-4e2794319babfeec.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[209],{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:N,open:z,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,J]=r.useState(null),[Q,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||S&&!e||ce(null,ne)}),[ne,ce,le,pe,S]);const[ue,de]=(0,a.Z)({controlled:z,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=>!O||!(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&&Q>ne.length-1&&(ee(-1),xe(-1))}),[ne,A,Q,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,O,we,ye,he,ie,A]),Oe=(0,l.Z)((e=>{(0,s.Z)(X,e),e&&Ze()}));r.useEffect((()=>{Ze()}),[Ze]);const Se=e=>{ue||(de(!0),me(!0),N&&N(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=Q;-1===Q?""===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!==Q&&-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}),Se(o);break;case"PageDown":o.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:o}),Se(o);break;case"ArrowDown":o.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:o}),Se(o);break;case"ArrowUp":o.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:o}),Se(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 S&&""!==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===Q?ne.length-1:Q,t=ne.slice();t.splice(e,1),ke(o,t,"removeOption",{option:ne[e]})}}},Me=e=>{se(!0),W&&!U.current&&Se(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&&S&&""!==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"):Se(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},Ne=e=>t=>{const o=ne.slice();o.splice(e,1),ke(t,o,"removeOption",{option:ne[e]})},ze=e=>{ue?$e(e,"toggleInput"):Se(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||ze(e)};let Ve=S&&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:ze}),getTagProps:({index:e})=>(0,n.Z)({key:e,"data-tag-index":e,tabIndex:-1},!H&&{onDelete:Ne(e)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Oe,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!==Q,anchorEl:Y,setAnchorEl:J,focusedTag:Q,groupedOptions:Be}}},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),O=o(4799),S=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)(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"}))),N=(0,u.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,r.Z)({},e.typography.body1,{overflow:"auto"}))),z=(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:O,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:J=!1,filterSelectedOptions:Q=!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:Oe,renderTags:Se,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:Ne,popupOpen:ze,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:J,focused:We,fullWidth:oe,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:-1===Fe,popupOpen:ze,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=Se?Se(Te,e):Te.map(((t,o)=>(0,h.jsx)(S.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)),Je=Oe||((e,t)=>(0,h.jsx)("li",(0,r.Z)({},e,{children:re(t)}))),Qe=(e,t)=>{const o=De({option:e,index:t});return Je((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,O),ownerState:Ke},Pe(Ce),{children:Ze({id:Ne,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":ze?B:he,title:ze?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())})})),ze&&He?(0,h.jsx)(j,{as:ve,className:(0,a.Z)(_e.popper),disablePortal:J,style:{width:He?He.clientWidth:null},ownerState:Ke,role:"presentation",anchorEl:He,open:!0,children:(0,h.jsxs)(N,(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)(z,{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)=>Qe(t,e.index+o)))}):Qe(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 S}});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 O(e){return"Backspace"===e.key||"Delete"===e.key}var S=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:S,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)},N=!(!1===h||!P)||h,z="small"===M,W=N||I?m.Z:x||"div",F=(0,r.Z)({},o,{component:W,disabled:$,size:M,color:b,onDelete:!!I,clickable:N,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)}`]),z&&H.deleteIconSmall);B=S&&i.isValidElement(S)?i.cloneElement(S,{className:(0,a.Z)(S.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:!(!N||!$)||void 0,onClick:P,onKeyDown:e=>{e.currentTarget===e.target&&O(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&(I&&O(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]}))}))},8263:function(e,t,o){o.d(t,{ZP:function(){return x}});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(8673),m=o(5893);const g=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function h(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function b(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 v=(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,...b(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[`& > .${f.Z.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:`-${h(o)}`,[`& > .${f.Z.item}`]:{paddingTop:h(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% + ${h(o)})`,marginLeft:`-${h(o)}`,[`& > .${f.Z.item}`]:{paddingLeft:h(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} + ${h(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 x=i.forwardRef((function(e,t){const o=(0,u.Z)({props:e,name:"MuiGrid"}),l=(0,s.Z)(o),{className:p,columns:h,columnSpacing:x,component:y="div",container:w=!1,direction:Z="row",item:O=!1,lg:S=!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,g),E=k||P,D=x||P,T=i.useContext(d),j=h||T||12,N=(0,r.Z)({},l,{columns:j,container:w,direction:Z,item:O,lg:S,md:$,sm:C,rowSpacing:E,columnSpacing:D,wrap:I,xl:R,xs:L,zeroMinWidth:M}),z=(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:m}=e,g={root:["root",o&&"container",r&&"item",m&&"zeroMinWidth",...b(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,f.H,t)})(N);return W=(0,m.jsx)(v,(0,r.Z)({ownerState:N,className:(0,a.Z)(z.root,p),as:y,ref:t},A)),12!==j?(0,m.jsx)(d.Provider,{value:j,children:W}):W;var W}))},8673:function(e,t,o){o.d(t,{H:function(){return r}});var n=o(8979);function r(e){return(0,n.Z)("MuiGrid",e)}const i=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(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}`)),...i.map((e=>`grid-xs-${e}`)),...i.map((e=>`grid-sm-${e}`)),...i.map((e=>`grid-md-${e}`)),...i.map((e=>`grid-lg-${e}`)),...i.map((e=>`grid-xl-${e}`))]);t.Z=a},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 O(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 S(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",N="end",z="viewport",W="popper",F=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+N])}),[]),H=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+N])}),[]),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 Q(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?J(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 N: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"),O=E,S=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===N)S=M,b-=(d&&$.visualViewport?$.visualViewport.height:k[C])-n.height,b*=s?1:-1;if(r===E||(r===L||r===M)&&i===N)O=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={})[S]=Z?"0":"",I[O]=y?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",I)):Object.assign({},D,((t={})[S]=Z?b+"px":"",t[O]=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===z?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?z: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),O=h(e.elements.reference),S=Q({reference:O,element:y,strategy:"absolute",placement:r}),$=se(Object.assign({},y,S)),k=u===W?$:O,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=J(x),O="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 N,z="y"===Z?L:E,W="y"===Z?M:A,F="y"===Z?"height":"width",H=$[Z],V=H+v[z],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?S(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[z],te=Q[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!=(N=null==D?void 0:D[Z])?N: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=$[O],he="y"===O?"height":"width",be=ge+v[ue],ve=ge-v[de],xe=-1!==[L,E].indexOf(x),ye=null!=(pe=null==D?void 0:D[O])?pe:0,we=xe?be:ge-k[he]-C[he]-ye+I.altAxis,Ze=xe?ge+k[he]+C[he]-ye-I.altAxis:ve,Oe=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);$[O]=Oe,T[O]=Oe-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=J(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=S(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),O=s;o.modifiersData[n]=((t={})[O]=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]=Q({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,O=!0,S=x[0],$=0;$=0,R=I?"width":"height",N=fe(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),z=I?P?A:E:P?M:L;y[R]>w[R]&&(z=re(z));var W=re(z),V=[];if(i&&V.push(N[C]<=0),l&&V.push(N[z]<=0,N[W]<=0),V.every((function(e){return e}))){S=k,O=!1;break}Z.set(k,V)}if(O)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 S=t,"break"},q=m?3:1;q>0;q--){if("break"===B(q))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,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"],Oe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Se(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 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),[S,$]=r.useState(O);r.useEffect((()=>{y.current&&y.current.forceUpdate()})),(0,l.Z)((()=>{if(!o||!d)return;Se(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(Se(o),v.current,(0,n.Z)({placement:O},m,{modifiers:e}));return Z.current(t),()=>{t.destroy(),Z.current(null)}}),[o,p,u,d,m,O]);const k={placement:S};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,Oe),[y,w]=r.useState(!0);if(!u&&!f&&(!v||y))return null;const Z=l||(o?(0,s.Z)(Se(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}))}))}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/247-0dbdd6350b819672.js b/striker-ui/out/_next/static/chunks/247-0dbdd6350b819672.js deleted file mode 100644 index fdc3870f..00000000 --- a/striker-ui/out/_next/static/chunks/247-0dbdd6350b819672.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[247],{4685:function(t,e,n){var i=n(7892),r=n(5893);e.Z=(0,i.Z)((0,r.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert")},2852:function(t,e,n){var i=n(3366),r=n(7462),o=n(7294),a=n(6010),c=n(7192),l=n(1796),u=n(8216),s=n(1964),b=n(3616),d=n(1496),p=n(9632),h=n(5893);const v=["className","color","edge","size","sx"],f=(0,d.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${(0,u.Z)(n.edge)}`],e[`size${(0,u.Z)(n.size)}`]]}})((({ownerState:t})=>(0,r.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"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,[`& .${p.Z.thumb}`]:{width:16,height:16},[`& .${p.Z.switchBase}`]:{padding:4,[`&.${p.Z.checked}`]:{transform:"translateX(16px)"}}}))),m=(0,d.ZP)(s.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${p.Z.input}`]:e.input},"default"!==n.color&&e[`color${(0,u.Z)(n.color)}`]]}})((({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300],transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${p.Z.checked}`]:{transform:"translateX(20px)"},[`&.${p.Z.disabled}`]:{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},[`&.${p.Z.checked} + .${p.Z.track}`]:{opacity:.5},[`&.${p.Z.disabled} + .${p.Z.track}`]:{opacity:"light"===t.palette.mode?.12:.2},[`& .${p.Z.input}`]:{left:"-100%",width:"300%"}})),(({theme:t,ownerState:e})=>(0,r.Z)({"&:hover":{backgroundColor:(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==e.color&&{[`&.${p.Z.checked}`]:{color:t.palette[e.color].main,"&:hover":{backgroundColor:(0,l.Fq)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${p.Z.disabled}`]:{color:"light"===t.palette.mode?(0,l.$n)(t.palette[e.color].main,.62):(0,l._j)(t.palette[e.color].main,.55)}},[`&.${p.Z.checked} + .${p.Z.track}`]:{backgroundColor:t.palette[e.color].main}}))),g=(0,d.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})((({theme:t})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:"light"===t.palette.mode?t.palette.common.black:t.palette.common.white,opacity:"light"===t.palette.mode?.38:.3}))),y=(0,d.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})((({theme:t})=>({boxShadow:t.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Z=o.forwardRef((function(t,e){const n=(0,b.Z)({props:t,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:d="medium",sx:Z}=n,w=(0,i.Z)(n,v),B=(0,r.Z)({},n,{color:l,edge:s,size:d}),k=(t=>{const{classes:e,edge:n,size:i,color:o,checked:a,disabled:l}=t,s={root:["root",n&&`edge${(0,u.Z)(n)}`,`size${(0,u.Z)(i)}`],switchBase:["switchBase",`color${(0,u.Z)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=(0,c.Z)(s,p.H,e);return(0,r.Z)({},e,b)})(B),x=(0,h.jsx)(y,{className:k.thumb,ownerState:B});return(0,h.jsxs)(f,{className:(0,a.Z)(k.root,o),sx:Z,ownerState:B,children:[(0,h.jsx)(m,(0,r.Z)({type:"checkbox",icon:x,checkedIcon:x,ref:e,ownerState:B},w,{classes:(0,r.Z)({},k,{root:k.switchBase})})),(0,h.jsx)(g,{className:k.track,ownerState:B})]})}));e.Z=Z},4490:function(t,e,n){n.d(e,{_d:function(){return m},gO:function(){return f}});var i=function(t,e,n){return Math.max(e,Math.min(t,n))},r={"b-B":8n,"b-kB":8000n,"b-MB":8000000n,"b-GB":8000000000n,"b-TB":8000000000000n,"b-PB":8000000000000000n,"b-EB":8000000000000000000n,"b-ZB":8000000000000000000000n,"b-YB":8000000000000000000000000n,"b-KiB":8192n,"b-MiB":8388608n,"b-GiB":8589934592n,"b-TiB":8796093022208n,"b-PiB":9007199254740992n,"b-EiB":9223372036854775808n,"b-ZiB":9444732965739290427392n,"b-YiB":9671406556917033397649408n,"b-b":1n,"b-kbit":1000n,"b-Mbit":1000000n,"b-Gbit":1000000000n,"b-Tbit":1000000000000n,"b-Pbit":1000000000000000n,"b-Ebit":1000000000000000000n,"b-Zbit":1000000000000000000000n,"b-Ybit":1000000000000000000000000n,"b-Kibit":1024n,"b-Mibit":1048576n,"b-Gibit":1073741824n,"b-Tibit":1099511627776n,"b-Pibit":1125899906842624n,"b-Eibit":1152921504606846976n,"b-Zibit":1180591620717411303424n,"b-Yibit":1208925819614629174706176n},o=["byte","ibyte","bit","ibit"],a=["B","kB","MB","GB","TB","PB","EB","ZB","YB","B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB","b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit","b","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],c=function(t){return BigInt(Math.pow(10,t))},l=function(t,e){var n=t.precision,i=t.value,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.isReverse;if("b"===e)return{precision:n,value:i};var l="b-".concat(e),u=r[l];if(a)return{precision:n,value:i*u};var s=String(u).length,b=c(s),d=i*b/u;return{precision:n+s,value:d}},u=function(t,e,n,i,r,o,a){var c=o.indexOf(n),l=e;c<0&&(c=function(t,e){var n="i"===t[1],i=/B$/.test(t),r="".concat(n?"i":"").concat(i?"byte":"bit"),o=e.findIndex((function(t){return t===r}));return{section:r,index:o}}(e,o).index);for(var u=c*a,s=u+a;u=i["b-".concat(b)]?l=b:u=s}return l};function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function b(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},r=i.bigintFormatOptions,o=i.numberFormatOptions,a=i.locale,l=c(e),u=n/l,s=n%l,d="0.",h=p(d,2),v=h[0],f=h[1],m=u.toString(),g=s.toString();if(a){var y="string"===typeof a?a:void 0,Z=.1.toLocaleString(y,o),w=p(Z,2);v=w[0],f=w[1],m=u.toLocaleString(y,r),g=s.toLocaleString(y,b(b({},r),{},{useGrouping:!1}))}var B=m;return e>0&&(B+="".concat(f).concat(g.padStart(e,v))),B},f=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fromUnit,o=void 0===r?"B":r,a=n.locale,c=n.precision,u=n.toUnit;try{e=Z(t)}catch(x){return}var s=w(c),b=s.max,d=s.min,p=y(o,"B"),h=p.unit;e=l(e,h,{isReverse:!0});var f=B(e,h,{toUnit:u});e=l(e,f),e=g(e,{toPrecision:i(e.precision,d,b)}),e=k(e,d);var m=v(e,{locale:a});return{value:m,unit:f}},m=function(){var t=f.apply(void 0,arguments);return t?"".concat(t.value," ").concat(t.unit):t},g=function(t){var e=t.precision,n=t.value,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.toPrecision,o=void 0===r?0:r,a={precision:o,value:n};if(o>e)a.value*=c(o-e);else if(o4&&(a.value+=1n)}return a},y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,i=n.indexOf(t);return i<0?{unit:e,unitIndex:0}:{unit:n[i],unitIndex:i}},Z=function(t){var e,n,i=String(t).split(/\D/,2),r=null!==(e=null===(n=i[1])||void 0===n?void 0:n.length)&&void 0!==e?e:0,o=i.join("");if(0===o.length)throw Error("Value is blank.");return{value:BigInt(o),precision:r}},w=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"===typeof n?{max:n,min:n}:{max:null!==(t=n.max)&&void 0!==t?t:2,min:null!==(e=n.min)&&void 0!==e?e:0}},B=function(t,e){var n=t.precision,i=t.value,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=l.conversionTable,b=void 0===s?r:s,d=l.toUnit,p=l.units,h=void 0===p?a:p,v=l.unitSections,f=void 0===v?o:v,m=l.unitSectionLength,g=void 0===m?9:m,y=h.indexOf(d);return y>=0?h[y]:u(i/c(n),e,d,b,h,f,g)},k=function(t,e){for(var n=t.precision,i={precision:n,value:t.value},r=n-e,o=!0,a=1;o&&a<=r;a+=1){0n===i.value%10n?(i.value/=10n,i.precision-=1):o=!1}return i}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/27-7790e406eb2ea28d.js b/striker-ui/out/_next/static/chunks/27-7790e406eb2ea28d.js new file mode 100644 index 00000000..25870a82 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/27-7790e406eb2ea28d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27],{1250:function(t,r,e){e.d(r,{FZ:function(){return c},tf:function(){return l},ah:function(){return f},OU:function(){return s},Qt:function(){return y}});var n="[a-z0-9]",o="[a-z0-9-]",i="[0-9a-f]",u="(?:25[0-5]|(?:2[0-4]|1[0-9]|[1-9]|)[0-9])",a="(?:".concat(u,"[.]){3}").concat(u),c=new RegExp("^(?:".concat(n,"(?:").concat(o,"{0,61}").concat(n,")?[.])+").concat(n).concat(o,"{0,61}").concat(n,"$")),l=new RegExp("^".concat(a,"$")),f=new RegExp("^(?:".concat(a,"\\s*,\\s*)*").concat(a,"$")),s=/^[^'"/\\><}{]*$/,y=new RegExp("^".concat(i,"{8}-(?:").concat(i,"{4}-){3}").concat(i,"{12}$"),"i")},2027:function(t,r,e){e.d(r,{Ye:function(){return y},_:function(){return h},dg:function(){return A},qY:function(){return B},Gn:function(){return U},$e:function(){return V},LT:function(){return ut},BD:function(){return tt},X7:function(){return at},HJ:function(){return i},SQ:function(){return x}});var n=e(5893),o=e(1250),i=function(t){var r=t.value;return!!r&&String(r).length>0},u=e(7750);function a(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return a(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return a(t,r)}(t)||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 y=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,c=e.isRequired,y=e.onFinishBatch,b=f(e,["isRequired","onFinishBatch"]);return{defaults:l({},b,{onSuccess:r}),isRequired:c,onFinishBatch:y,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function m(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return b(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return b(t,r)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,a=e.isRequired,c=e.onFinishBatch,l=v(e,["isRequired","onFinishBatch"]);return{defaults:d({},l,{onSuccess:r}),isRequired:a,onFinishBatch:c,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function w(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return g(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return g(t,r)}(t)||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 A=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,a=e.isRequired,c=e.onFinishBatch,l=S(e,["isRequired","onFinishBatch"]);return{defaults:j({},l,{onSuccess:r}),isRequired:a,onFinishBatch:c,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;o=e&&n<=r)},F=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parseInt";return"number"===typeof t?t:Number[r](String(t))};function I(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function C(t){return function(t){if(Array.isArray(t))return I(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return I(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return I(t,r)}(t)||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 B=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,a=e.isRequired,c=e.onFinishBatch,l=E(e,["isRequired","onFinishBatch"]),f=[];return o?f.push({onFailure:function(){for(var r=arguments.length,e=new Array(r),i=0;it.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function $(t){return function(t){if(Array.isArray(t))return R(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return R(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return R(t,r)}(t)||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 U=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,c=e.isRequired,l=e.onFinishBatch,f=M(e,["isRequired","onFinishBatch"]);return{defaults:T({},f,{onSuccess:r}),isRequired:c,onFinishBatch:l,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;o"}),"), curly brackets (",(0,n.jsx)(u.Q0,{inheritColour:!0,text:"{}"}),")."]})].concat($(e)))},test:function(t){var r=t.value;return o.OU.test(r)}}]}};function Q(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function z(t){return function(t){if(Array.isArray(t))return Q(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return Q(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Q(t,r)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var V=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,a=e.isRequired,c=e.onFinishBatch,l=_(e,["isRequired","onFinishBatch"]);return{defaults:N({},l,{onSuccess:r}),isRequired:a,onFinishBatch:c,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&void 0!==arguments[0]?arguments[0]:{},r=t.excludeTestIds,e=void 0===r?[]:r,n=t.excludeTestIdsRe,o=t.inputs,i=void 0===o?{}:o,u=t.isContinueOnFailure,a=t.isIgnoreOnCallbacks,c=t.isTestAll,l=void 0===c?0===Object.keys(i).length:c,f=t.tests,s=void 0===f?{}:f,y=H(e),b={},p=!0;return l&&Object.keys(s).forEach((function(t){b[t]={}})),b=G({},b,i),n&&Object.keys(b).forEach((function(t){n.test(t)&&y.push(t)})),y.forEach((function(t){delete b[t]})),Object.keys(b).every((function(t){var r=s[t],e=r.defaults,n=void 0===e?{}:e,o=n.compare,i=void 0===o?[]:o,c=n.displayMax,l=n.displayMin,f=n.getCompare,y=n.getValue,d=n.isIgnoreOnCallbacks,v=void 0===d?a:d,m=n.max,h=void 0===m?0:m,g=n.min,O=void 0===g?0:g,j=n.onSuccess,S=n.value,w=void 0===S?null:S,A=r.isRequired,x=void 0!==A&&A,F=r.onFinishBatch,I=r.optionalTests,P=r.tests,k=!x,E=b[t],C=E.getCompare,B=void 0===C?f:C,R=E.getValue,q=void 0===R?y:R,T=E.isIgnoreOnCallbacks,M=void 0===T?v:T,$=E.max,U=void 0===$?h:$,Q=E.min,D=void 0===Q?O:Q,N=E.compare,_=void 0===N?K(null===B||void 0===B?void 0:B.call(null),i):N,z=E.value,V=void 0===z?K(null===q||void 0===q?void 0:q.call(null),w):z,Y=E.displayMax,Z=void 0===Y?W(c,String(U)):Y,G=E.displayMin,H=void 0===G?W(l,String(D)):G,J=X({isIgnoreOnCallbacks:M,onFinishBatch:F}),L=J.cbFinishBatch,tt=J.setTestCallbacks;if(!V&&k)return null===L||void 0===L||L.call(null,!0,t),!0;var rt=function(t){var r=t.onFailure,e=t.onSuccess,n=void 0===e?j:e,o={},i=(0,t.test)({append:o,compare:_,max:U,min:D,value:V}),u=tt({onFailure:r,onSuccess:n}),a=u.cbFailure,c=u.cbSuccess;return i?null===c||void 0===c||c.call(null,{append:o}):(p=i,null===a||void 0===a||a.call(null,{append:o,compare:_,displayMax:Z,displayMin:H,max:U,min:D,value:V})),i};null===I||void 0===I||I.forEach(rt);var et=P.every(rt);return null===L||void 0===L||L.call(null,et,t),et||u})),p};function rt(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function it(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return rt(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return rt(t,r)}(t)||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 ut=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.excludeTestIds,n=void 0===e?[]:e,o=ot(r,["excludeTestIds"]);return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=r.excludeTestIds,i=void 0===e?[]:e,u=ot(r,["excludeTestIds"]);return tt(nt({tests:t,excludeTestIds:it(n).concat(it(i))},o,u))}},at=function(t){return t.max>=t.min}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/336-24770f9b2621610a.js b/striker-ui/out/_next/static/chunks/336-33ece0c8120f3bd4.js similarity index 68% rename from striker-ui/out/_next/static/chunks/336-24770f9b2621610a.js rename to striker-ui/out/_next/static/chunks/336-33ece0c8120f3bd4.js index 32f5e372..fb246f93 100644 --- a/striker-ui/out/_next/static/chunks/336-24770f9b2621610a.js +++ b/striker-ui/out/_next/static/chunks/336-33ece0c8120f3bd4.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[336],{7504:function(n,e,t){var r=t(5893),u=t(7294),l=t(8263),o=t(7357);function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}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,u,l=[],o=!0,i=!1;try{for(t=t.call(n);!(o=(r=t.next()).done)&&(l.push(r.value),!e||l.length!==e);o=!0);}catch(a){i=!0,u=a}finally{try{o||null==t.return||t.return()}finally{if(i)throw u}}return l}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return i(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 i(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,i=n.layout,a=n.wrapperBoxProps,v=s(n,["calculateItemBreakpoints","layout","wrapperBoxProps"]),y=(0,u.useMemo)((function(){return Object.entries(i).map((function(n,e){var r=f(n,2),o=r[0],i=r[1],a=o;return i?(0,u.createElement)(l.ZP,c({},t(e,a),{key:a,item:!0},i)):void 0}))}),[t,i]);return(0,r.jsx)(o.Z,c({},a,{children:(0,r.jsx)(l.ZP,c({container:!0},v,{children:y}))}))}},4069:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(7294),u=t(3675),l=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.postSet,t=n.preSet,r=n.set,l=n.setType,o=void 0===l?"string":l,i=n.valueKey,a=void 0===i?"value":i;return function(n){var l=n.target[a],i=u.Z[o](l);null===t||void 0===t||t.call(null,n),null===r||void 0===r||r.call(null,i),null===e||void 0===e||e.call(null,n)}},o=t(7987);function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}function f(n){return function(n){if(Array.isArray(n))return i(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 i(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 i(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 v(n){var e=function(n,e){if("object"!==y(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===y(e)?e:String(e)}var y=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var d="input",p={boolean:!1,number:0,string:""},b={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},m=(0,r.forwardRef)((function(n,e){var t=n.input,u=n.inputTestBatch,i=n.onBlurAppend,y=n.onFirstRender,m=n.onFocusAppend,g=n.onUnmount,h=n.required,O=void 0===h?b.required:h,S=n.valueKey,j=n.valueType,w=void 0===j?b.valueType:j,k=n.createInputOnChangeHandlerOptions,C=void 0===k?b.createInputOnChangeHandlerOptions:k,I=C.postSet,A=C.valueKey,P=void 0===A?S:A,M=s(n.createInputOnChangeHandlerOptions,["postSet","valueKey"]),E=t.props,F=(0,r.useMemo)((function(){return null!==P&&void 0!==P?P:"checked"in E?"checked":"value"}),[E,P]),T=E.onBlur,x=E.onChange,B=E.onFocus,Z=E[F],R=void 0===Z?p[w]:Z,V=s(E,["onBlur","onChange","onFocus",F].map(v)),K=(0,r.useState)(R),U=K[0],q=K[1],H=(0,r.useState)(!1),N=H[0],_=H[1],$=(0,r.useState)(!1),D=$[0],L=$[1],W=(0,r.useCallback)((function(n){q(n)}),[]),z=(0,r.useMemo)((function(){var n;return u&&(u.isRequired=O,n=(0,o.LT)(a({},d,u))),n}),[u,O]),G=(0,r.useMemo)((function(){return null!==T&&void 0!==T?T:z&&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);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}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,u,l=[],o=!0,i=!1;try{for(t=t.call(n);!(o=(r=t.next()).done)&&(l.push(r.value),!e||l.length!==e);o=!0);}catch(a){i=!0,u=a}finally{try{o||null==t.return||t.return()}finally{if(i)throw u}}return l}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return i(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 i(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,i=n.layout,a=n.wrapperBoxProps,v=s(n,["calculateItemBreakpoints","layout","wrapperBoxProps"]),d=(0,u.useMemo)((function(){return Object.entries(i).map((function(n,e){var r=f(n,2),o=r[0],i=r[1],a=o;return i?(0,u.createElement)(l.ZP,c({},t(e,a),{key:a,item:!0},i)):void 0}))}),[t,i]);return(0,r.jsx)(o.Z,c({},a,{children:(0,r.jsx)(l.ZP,c({container:!0},v,{children:d}))}))}},4069:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(7294),u=t(3675),l=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.postSet,t=n.preSet,r=n.set,l=n.setType,o=void 0===l?"string":l,i=n.valueKey,a=void 0===i?"value":i;return function(n){var l=n.target[a],i=u.Z[o](l);null===t||void 0===t||t.call(null,n),null===r||void 0===r||r.call(null,i),null===e||void 0===e||e.call(null,n)}},o=t(2027);function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}function f(n){return function(n){if(Array.isArray(n))return i(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 i(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 i(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 v(n){var e=function(n,e){if("object"!==d(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===d(e)?e:String(e)}var d=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var p="input",y={boolean:!1,number:0,string:""},b={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},m=(0,r.forwardRef)((function(n,e){var t=n.input,u=n.inputTestBatch,i=n.onBlurAppend,d=n.onFirstRender,m=n.onFocusAppend,g=n.onUnmount,h=n.required,O=void 0===h?b.required:h,S=n.valueKey,j=n.valueType,w=void 0===j?b.valueType:j,k=n.createInputOnChangeHandlerOptions,C=void 0===k?b.createInputOnChangeHandlerOptions:k,A=C.postSet,I=C.valueKey,M=void 0===I?S:I,P=s(n.createInputOnChangeHandlerOptions,["postSet","valueKey"]),E=t.props,F=(0,r.useMemo)((function(){return null!==M&&void 0!==M?M:"checked"in E?"checked":"value"}),[E,M]),T=E.onBlur,x=E.onChange,B=E.onFocus,Z=E[F],R=void 0===Z?y[w]:Z,V=s(E,["onBlur","onChange","onFocus",F].map(v)),K=(0,r.useState)(R),U=K[0],q=K[1],H=(0,r.useState)(!1),N=H[0],_=H[1],$=(0,r.useState)(!1),D=$[0],L=$[1],W=(0,r.useCallback)((function(n){q(n)}),[]),z=(0,r.useMemo)((function(){var n;return u&&(u.isRequired=O,n=(0,o.LT)(a({},p,u))),n}),[u,O]),G=(0,r.useMemo)((function(){return null!==T&&void 0!==T?T:z&&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{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,o.Z)({zIndex:e.zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${R.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${R.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${R.arrow}`]:(0,o.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${R.arrow}`]:(0,o.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),P=(0,c.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,f.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,o.Z)({backgroundColor:(0,u.Fq)(e.palette.grey[700],.92),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${R.popper}[data-popper-placement*="left"] &`]:(0,o.Z)({transformOrigin:"right center"},t.isRtl?(0,o.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,o.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${R.popper}[data-popper-placement*="right"] &`]:(0,o.Z)({transformOrigin:"left center"},t.isRtl?(0,o.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,o.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${R.popper}[data-popper-placement*="top"] &`]:(0,o.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${R.popper}[data-popper-placement*="bottom"] &`]:(0,o.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),E=(0,c.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,u.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let M=!1,I=null;function T(e,t){return n=>{t&&t(n),e(n)}}var F=l.forwardRef((function(e,t){var n,u,c,y,R,F;const _=(0,p.Z)({props:e,name:"MuiTooltip"}),{arrow:O=!1,children:D,components:H={},componentsProps:L={},describeChild:j=!1,disableFocusListener:z=!1,disableHoverListener:$=!1,disableInteractive:V=!1,disableTouchListener:N=!1,enterDelay:A=100,enterNextDelay:B=0,enterTouchDelay:U=700,followCursor:W=!1,id:K,leaveDelay:G=0,leaveTouchDelay:q=1500,onClose:X,onOpen:Y,open:Q,placement:J="bottom",PopperComponent:ee,PopperProps:te={},title:ne,TransitionComponent:re=m.Z,TransitionProps:oe}=_,le=(0,r.Z)(_,Z),ie=(0,d.Z)(),ae="rtl"===ie.direction,[se,ue]=l.useState(),[ce,de]=l.useState(null),pe=l.useRef(!1),fe=V||W,me=l.useRef(),ge=l.useRef(),he=l.useRef(),be=l.useRef(),[ve,Ce]=(0,w.Z)({controlled:Q,default:!1,name:"Tooltip",state:"open"});let we=ve;const ye=(0,v.Z)(K),xe=l.useRef(),Re=l.useCallback((()=>{void 0!==xe.current&&(document.body.style.WebkitUserSelect=xe.current,xe.current=void 0),clearTimeout(be.current)}),[]);l.useEffect((()=>()=>{clearTimeout(me.current),clearTimeout(ge.current),clearTimeout(he.current),Re()}),[Re]);const ke=e=>{clearTimeout(I),M=!0,Ce(!0),Y&&!we&&Y(e)},Ze=(0,h.Z)((e=>{clearTimeout(I),I=setTimeout((()=>{M=!1}),800+G),Ce(!1),X&&we&&X(e),clearTimeout(me.current),me.current=setTimeout((()=>{pe.current=!1}),ie.transitions.duration.shortest)})),Se=e=>{pe.current&&"touchstart"!==e.type||(se&&se.removeAttribute("title"),clearTimeout(ge.current),clearTimeout(he.current),A||M&&B?ge.current=setTimeout((()=>{ke(e)}),M?B:A):ke(e))},Pe=e=>{clearTimeout(ge.current),clearTimeout(he.current),he.current=setTimeout((()=>{Ze(e)}),G)},{isFocusVisibleRef:Ee,onBlur:Me,onFocus:Ie,ref:Te}=(0,C.Z)(),[,Fe]=l.useState(!1),_e=e=>{Me(e),!1===Ee.current&&(Fe(!1),Pe(e))},Oe=e=>{se||ue(e.currentTarget),Ie(e),!0===Ee.current&&(Fe(!0),Se(e))},De=e=>{pe.current=!0;const t=D.props;t.onTouchStart&&t.onTouchStart(e)},He=Se,Le=Pe,je=e=>{De(e),clearTimeout(he.current),clearTimeout(me.current),Re(),xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout((()=>{document.body.style.WebkitUserSelect=xe.current,Se(e)}),U)},ze=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),Re(),clearTimeout(he.current),he.current=setTimeout((()=>{Ze(e)}),q)};l.useEffect((()=>{if(we)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ze(e)}}),[Ze,we]);const $e=(0,b.Z)(ue,t),Ve=(0,b.Z)(Te,$e),Ne=(0,b.Z)(D.ref,Ve);""===ne&&(we=!1);const Ae=l.useRef({x:0,y:0}),Be=l.useRef(),Ue={},We="string"===typeof ne;j?(Ue.title=we||!We||$?null:ne,Ue["aria-describedby"]=we?ye:null):(Ue["aria-label"]=We?ne:null,Ue["aria-labelledby"]=we&&!We?ye:null);const Ke=(0,o.Z)({},Ue,le,D.props,{className:(0,i.Z)(le.className,D.props.className),onTouchStart:De,ref:Ne},W?{onMouseMove:e=>{const t=D.props;t.onMouseMove&&t.onMouseMove(e),Ae.current={x:e.clientX,y:e.clientY},Be.current&&Be.current.update()}}:{});const Ge={};N||(Ke.onTouchStart=je,Ke.onTouchEnd=ze),$||(Ke.onMouseOver=T(He,Ke.onMouseOver),Ke.onMouseLeave=T(Le,Ke.onMouseLeave),fe||(Ge.onMouseOver=He,Ge.onMouseLeave=Le)),z||(Ke.onFocus=T(Oe,Ke.onFocus),Ke.onBlur=T(_e,Ke.onBlur),fe||(Ge.onFocus=Oe,Ge.onBlur=_e));const qe=l.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ce),options:{element:ce,padding:4}}];return null!=(e=te.popperOptions)&&e.modifiers&&(t=t.concat(te.popperOptions.modifiers)),(0,o.Z)({},te.popperOptions,{modifiers:t})}),[ce,te]),Xe=(0,o.Z)({},_,{isRtl:ae,arrow:O,disableInteractive:fe,placement:J,PopperComponentProp:ee,touch:pe.current}),Ye=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:l}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,f.Z)(l.split("-")[0])}`],arrow:["arrow"]};return(0,a.Z)(i,x,t)})(Xe),Qe=null!=(n=H.Popper)?n:S,Je=null!=(u=null!=(c=H.Transition)?c:re)?u:m.Z,et=null!=(y=H.Tooltip)?y:P,tt=null!=(R=H.Arrow)?R:E,nt=(0,s.Z)(Qe,(0,o.Z)({},te,L.popper),Xe),rt=(0,s.Z)(Je,(0,o.Z)({},oe,L.transition),Xe),ot=(0,s.Z)(et,(0,o.Z)({},L.tooltip),Xe),lt=(0,s.Z)(tt,(0,o.Z)({},L.arrow),Xe);return(0,k.jsxs)(l.Fragment,{children:[l.cloneElement(D,Ke),(0,k.jsx)(Qe,(0,o.Z)({as:null!=ee?ee:g.Z,placement:J,anchorEl:W?{getBoundingClientRect:()=>({top:Ae.current.y,left:Ae.current.x,right:Ae.current.x,bottom:Ae.current.y,width:0,height:0})}:se,popperRef:Be,open:!!se&&we,id:ye,transition:!0},Ge,nt,{className:(0,i.Z)(Ye.popper,null==te?void 0:te.className,null==(F=L.popper)?void 0:F.className),popperOptions:qe,children:({TransitionProps:e})=>{var t,n;return(0,k.jsx)(Je,(0,o.Z)({timeout:ie.transitions.duration.shorter},e,rt,{children:(0,k.jsxs)(et,(0,o.Z)({},ot,{className:(0,i.Z)(Ye.tooltip,null==(t=L.tooltip)?void 0:t.className),children:[ne,O?(0,k.jsx)(tt,(0,o.Z)({},lt,{className:(0,i.Z)(Ye.arrow,null==(n=L.arrow)?void 0:n.className),ref:de})):null]}))}))}}))]})}))},7070:function(e,t,n){"use strict";n(7294);var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},6686:function(e,t,n){"use strict";n(7294);var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},8396:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return d}});var o=n(7294),l=n(4168),i=n(539),a=n(8974);function s(e,t,n,r,l){const i="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,[s,u]=o.useState((()=>l&&i?n(e).matches:r?r(e).matches:t));return(0,a.Z)((()=>{let t=!0;if(!i)return;const r=n(e),o=()=>{t&&u(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}}),[e,n,i]),s}const u=(r||(r=n.t(o,2))).useSyncExternalStore;function c(e,t,n,r){const l=o.useCallback((()=>t),[t]),i=o.useMemo((()=>{if(null!==r){const{matches:t}=r(e);return()=>t}return l}),[l,e,r]),[a,s]=o.useMemo((()=>{if(null===n)return[l,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[l,n,e]);return u(s,a,i)}function d(e,t={}){const n=(0,l.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:p}=(0,i.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let f="function"===typeof e?e(n):e;f=f.replace(/^@media( ?)/m,"");return(void 0!==u?c:s)(f,o,a,d,p)}},7909:function(e,t,n){"use strict";var r=n(7579);t.Z=r.Z},8173:function(e,t,n){"use strict";n.d(t,{_:function(){return Cu}});var r=n(7294),o=n(1581),l=n.n(o);var i=n(7462),a=n(3366),s=n(6010),u=n(8216),c=n(1705),d=n(8974),p=n(7192),f=n(1496),m=n(1796),g=n(3490);const h=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${g._.autoHeight}`]:t.autoHeight},{[`& .${g._.editBooleanCell}`]:t.editBooleanCell},{[`& .${g._["cell--editing"]}`]:t["cell--editing"]},{[`& .${g._["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${g._["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${g._["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${g._["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${g._.cell}`]:t.cell},{[`& .${g._.cellContent}`]:t.cellContent},{[`& .${g._.cellCheckbox}`]:t.cellCheckbox},{[`& .${g._.checkboxInput}`]:t.checkboxInput},{[`& .${g._["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${g._["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${g._["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${g._["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${g._["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${g._["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${g._["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${g._["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${g._.columnHeader}`]:t.columnHeader},{[`& .${g._.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${g._.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${g._.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${g._["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${g._["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${g._.columnSeparator}`]:t.columnSeparator},{[`& .${g._.filterIcon}`]:t.filterIcon},{[`& .${g._.iconSeparator}`]:t.iconSeparator},{[`& .${g._.menuIcon}`]:t.menuIcon},{[`& .${g._.menuIconButton}`]:t.menuIconButton},{[`& .${g._.menuOpen}`]:t.menuOpen},{[`& .${g._.menuList}`]:t.menuList},{[`& .${g._["row--editable"]}`]:t["row--editable"]},{[`& .${g._["row--editing"]}`]:t["row--editing"]},{[`& .${g._["row--dragging"]}`]:t["row--dragging"]},{[`& .${g._.row}`]:t.row},{[`& .${g._.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${g._.rowReorderCell}`]:t.rowReorderCell},{[`& .${g._["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${g._.sortIcon}`]:t.sortIcon},{[`& .${g._.withBorder}`]:t.withBorder},{[`& .${g._.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${g._.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${g._.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${g._["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((({theme:e})=>{const t="light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68);return(0,i.Z)({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${g._.autoHeight}`]:{height:"auto",[`& .${g._["row--lastVisible"]} .${g._.cell}`]:{borderBottomColor:"transparent"}},[`& .${g._["virtualScrollerContent--overflowed"]} .${g._["row--lastVisible"]} .${g._.cell}`]:{borderBottomColor:"transparent"},[`& .${g._.columnHeader}, & .${g._.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${g._.columnHeader}:focus-within, & .${g._.cell}:focus-within`]:{outline:`solid ${(0,m.Fq)(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${g._.columnHeader}:focus, & .${g._.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${g._.columnHeaderCheckbox}, & .${g._.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${g._.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${g._["columnHeader--sorted"]} .${g._.iconButtonContainer}, & .${g._["columnHeader--filtered"]} .${g._.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${g._.columnHeader}:not(.${g._["columnHeader--sorted"]}) .${g._.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${g._.columnHeader}:not(.${g._["columnHeader--sorted"]}):hover .${g._.sortIcon}`]:{opacity:.5},[`& .${g._.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflowX:"hidden"},[`& .${g._.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${g._.sortIcon}, & .${g._.filterIcon}`]:{fontSize:"inherit"},[`& .${g._["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${g._["columnHeader--alignCenter"]} .${g._.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${g._["columnHeader--alignRight"]} .${g._.columnHeaderDraggableContainer}, & .${g._["columnHeader--alignRight"]} .${g._.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${g._["columnHeader--alignCenter"]} .${g._.menuIcon}, & .${g._["columnHeader--alignRight"]} .${g._.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${g._["columnHeader--alignRight"]} .${g._.menuIcon}, & .${g._["columnHeader--alignRight"]} .${g._.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${g._["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${g._.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${g._["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${g._["columnSeparator--sideRight"]}`]:{right:-12},[`& .${g._["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${g._["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${g._.iconSeparator}`]:{color:"inherit"},[`& .${g._.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${g._.columnHeader}:hover`]:{[`& .${g._.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${g._.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${g._.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${g._.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,m.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,m.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,m.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${g._.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${g._.row}:not(.${g._["row--dynamicHeight"]}) > .${g._.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${g._.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${g._.cell}.${g._["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${g._["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${g._["row--editing"]} .${g._.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${g._.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${g._.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${g._.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${g._.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${g._.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${g._["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${g._.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${g._.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${g._["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${g._["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${g._["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${g._.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%"},[`& .${g._.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${g._["columnHeader--dragging"]}, & .${g._["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${g._["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${g._.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${g._.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${g._.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${g._.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${g._.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}));var b="NOT_FOUND";var v=function(e,t){return e===t};function C(e,t){var n="object"===typeof t?t:{equalityCheck:t},r=n.equalityCheck,o=void 0===r?v:r,l=n.maxSize,i=void 0===l?1:l,a=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return b}return{get:r,put:function(t,o){r(t)===b&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(i,s);function c(){var t=u.get(arguments);if(t===b){if(t=e.apply(null,arguments),a){var n=u.getEntries(),r=n.find((function(e){return a(e.value,t)}));r&&(t=r.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function w(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}},k=(e,t)=>e,Z={cache:null},S=(R(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]),(...e)=>{null===Z.cache&&(Z.cache={});const t=(...t)=>{const[n,r]=t,o=!!n.current,l=o?n.current.instanceId:null!=r?r:"default",i=o?n.current.state:n;null===Z.cache&&(Z.cache={});const{cache:a}=Z;if(a[l]&&a[l].get(e))return a[l].get(e)(i,l);const s=x(...e);return a[l]||(a[l]=new Map),a[l].set(e,s),s(i,l)};return t.acceptsApiRef=!0,t}),P=e=>e.columns,E=S(P,(e=>e.all)),M=S(P,(e=>e.lookup)),I=S(E,M,((e,t)=>e.map((e=>t[e])))),T=S(P,(e=>e.columnVisibilityModel)),F=S(I,T,((e,t)=>e.filter((e=>!1!==t[e.field])))),_=(S(F,(e=>e.map((e=>e.field)))),S(F,(e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),D=S(I,(e=>e.filter((e=>e.filterable)))),H=S(I,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),L=(k(E),k(I),k(F),k(D),k(S(D,(e=>e.map((e=>e.field))))),k(S(F,(e=>e.length))),k(S(_,O,((e,t)=>({totalWidth:t,positions:e})))));R(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const j=(e,t)=>function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state),z=r.createContext(void 0);function $(){const e=r.useContext(z);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}const V=r.createContext(void 0);const N=()=>{const e=r.useContext(V);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.");return e},A=e=>e.rows,B=S(A,(e=>e.totalRowCount)),U=S(A,(e=>e.loading)),W=S(A,(e=>e.totalTopLevelRowCount)),K=S(A,(e=>e.idRowsLookup)),G=S(A,(e=>e.idToIdLookup)),q=S(A,(e=>e.tree)),X=S(A,(e=>e.groupingName)),Y=S(A,(e=>e.treeDepth)),Q=S(A,(e=>e.ids)),J=e=>e.density,ee=S(J,(e=>e.value)),te=S(J,(e=>e.rowHeight)),ne=S(J,(e=>e.headerHeight)),re=S(J,(e=>e.factor));var oe=n(5893);const le=["children","className"],ie=r.forwardRef((function(e,t){const n=N(),{children:o,className:l}=e,f=(0,a.Z)(e,le),m=$(),b=j(m,F),v=j(m,B),C=j(m,ee),w=r.useRef(null),y=(0,c.Z)(w,t),x=(e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${(0,u.Z)(n)}`]};return(0,p.Z)(o,g.d,r)})({density:C,classes:n.classes,autoHeight:n.autoHeight});m.current.rootElementRef=w;const[R,k]=r.useState(!1);return(0,d.Z)((()=>{k(!0)}),[]),(0,d.Z)((()=>{R&&m.current.unstable_updateGridDimensionsRef()}),[m,R]),R?(0,oe.jsx)(h,(0,i.Z)({ref:y,className:(0,s.Z)(l,x.root),role:"grid","aria-colcount":b.length,"aria-rowcount":v,"aria-multiselectable":!n.disableMultipleSelection,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"]},f,{children:o})):null}));function ae(e,t){const n=r.useRef(null);if(n.current)return n.current;const o=e.current.getLogger(t);return n.current=o,o}const se=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})));function ue(e){const t=(e=>{const{classes:t}=e;return(0,p.Z)({root:["main"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(se,{className:t.root,children:e.children})}class ce extends r.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}logError(e,t){this.props.logger.error(`An unexpected error occurred. Error: ${e&&e.message}. `,e,t)}render(){var e;return this.props.hasError||null!=(e=this.state)&&e.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}function de(e){const{children:t}=e,n=$(),r=ae(n,"GridErrorHandler"),o=N(),l=n.current.state.error;return(0,oe.jsx)(ce,{hasError:null!=l,componentProps:l,api:n,logger:r,render:e=>{var t;return(0,oe.jsx)(ue,{children:(0,oe.jsx)(o.components.ErrorOverlay,(0,i.Z)({},e,null==(t=o.componentsProps)?void 0:t.errorOverlay))})},children:t})}function pe(){var e;const t=$(),n=N(),o=r.useRef(null);return t.current.headerRef=o,(0,oe.jsx)("div",{ref:o,children:(0,oe.jsx)(n.components.Header,(0,i.Z)({},null==(e=n.componentsProps)?void 0:e.header))})}var fe=n(2068),me=n(5340);function ge(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},o=!1,l="",i="animationstart",a="Webkit Moz O ms".split(" "),s="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u=document.createElement("fakeelement");if(void 0!==u.style.animationName&&(o=!0),!1===o)for(var c=0;c div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="muiDetectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(a),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=a.createElement("div")).className="Mui-resizeTriggers",o.__resizeTriggers__.innerHTML='
',o.appendChild(o.__resizeTriggers__),n(o),o.addEventListener("scroll",r,!0),i&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName==d&&n(o)},o.__resizeTriggers__.addEventListener(i,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(l)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}const he=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],be=r.forwardRef((function(e,t){const{children:n,defaultHeight:o=null,defaultWidth:l=null,disableHeight:s=!1,disableWidth:u=!1,nonce:p,onResize:f,style:m}=e,g=(0,a.Z)(e,he),[h,b]=r.useState({height:o,width:l}),v=r.useRef(null),C=r.useRef(null),w=(0,fe.Z)((()=>{if(C.current){const e=C.current.offsetHeight||0,t=C.current.offsetWidth||0,n=(0,me.Z)(C.current).getComputedStyle(C.current),r=parseInt(n.paddingLeft,10)||0,o=parseInt(n.paddingRight,10)||0,l=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),i=t-r-o;(!s&&h.height!==l||!u&&h.width!==i)&&(b({height:l,width:i}),f&&f({height:l,width:i}))}}));(0,d.Z)((()=>{var e;if(C.current=v.current.parentElement,!C)return;const t=(0,me.Z)(null!=(e=C.current)?e:void 0),n=ge(p,t);return n.addResizeListener(C.current,w),w(),()=>{n.removeResizeListener(C.current,w)}}),[p,w]);const y={overflow:"visible"},x={};s||(y.height=0,x.height=h.height),u||(y.width=0,x.width=h.width);const R=(0,c.Z)(v,t);return(0,oe.jsx)("div",(0,i.Z)({ref:R,style:(0,i.Z)({},y,m)},g,{children:null===h.height&&null===h.width?null:n(x)}))})),ve=e=>e.sorting,Ce=S(ve,(e=>e.sortedRows)),we=S(Ce,K,((e,t)=>e.map((e=>({id:e,model:t[e]}))))),ye=S(ve,(e=>e.sortModel)),xe=S(ye,(e=>e.reduce(((t,n,r)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t)),{}))),Re=e=>e.filter,ke=S(Re,(e=>e.filterModel)),Ze=(S(ke,(e=>e.quickFilterValues)),S(Re,(e=>e.visibleRowsLookup))),Se=S(Re,(e=>e.filteredRowsLookup)),Pe=(S(Re,(e=>e.filteredDescendantCountLookup)),S(Ze,we,((e,t)=>t.filter((t=>!1!==e[t.id]))))),Ee=S(Pe,(e=>e.map((e=>e.id)))),Me=S(Se,we,((e,t)=>t.filter((t=>!1!==e[t.id])))),Ie=S(Me,(e=>e.map((e=>e.id)))),Te=S(Pe,q,Y,((e,t,n)=>n<2?e:e.filter((e=>{var n;return 0===(null==(n=t[e.id])?void 0:n.depth)})))),Fe=S(Pe,(e=>e.length)),_e=S(Te,(e=>e.length)),Oe=S(ke,M,((e,t)=>{var n;return null==(n=e.items)?void 0:n.filter((e=>{var n,r;if(!e.columnField)return!1;const o=t[e.columnField];if(null==o||!o.filterOperators||0===(null==o||null==(n=o.filterOperators)?void 0:n.length))return!1;const l=o.filterOperators.find((t=>t.value===e.operatorValue));return!!l&&(!l.InputComponent||null!=e.value&&""!==(null==(r=e.value)?void 0:r.toString()))}))})),De=S(Oe,(e=>e.reduce(((e,t)=>(e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e)),{})));function He(e){var t,n;const o=$(),l=N(),a=j(o,ne),[s,u]=r.useState((()=>{var e,t;return null!=(e=null==(t=o.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),c=r.useCallback((()=>{var e,t;u(null!=(e=null==(t=o.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[o]);(0,d.Z)((()=>o.current.subscribeEvent("viewportInnerSizeChange",c)),[o,c]);let p=null!=(t=null==s?void 0:s.height)?t:0;return l.autoHeight&&0===p&&(p="auto"),s?(0,oe.jsx)("div",(0,i.Z)({style:{height:p,width:null!=(n=null==s?void 0:s.width)?n:0,position:"absolute",top:a,bottom:"auto"===p?0:void 0}},e)):null}function Le(){const e=$(),t=N(),n=j(e,B),r=j(e,Fe),o=j(e,U),l=!o&&n>0&&0===r;let a=null;var s,u,c;o||0!==n||(a=(0,oe.jsx)(t.components.NoRowsOverlay,(0,i.Z)({},null==(s=t.componentsProps)?void 0:s.noRowsOverlay)));l&&(a=(0,oe.jsx)(t.components.NoResultsOverlay,(0,i.Z)({},null==(u=t.componentsProps)?void 0:u.noResultsOverlay)));o&&(a=(0,oe.jsx)(t.components.LoadingOverlay,(0,i.Z)({},null==(c=t.componentsProps)?void 0:c.loadingOverlay)));return null===a?null:(0,oe.jsx)(He,{children:a})}function je(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:o}=e,l=$(),i=N(),a=j(l,ne),[s,u]=r.useState(i.disableVirtualization),c=r.useCallback((()=>{u(!0)}),[]),d=r.useCallback((()=>{u(!1)}),[]);l.current.unstable_disableVirtualization=c,l.current.unstable_enableVirtualization=d;const p=r.useRef(null),f=r.useRef(null),m=r.useRef(null),g=r.useRef(null);l.current.columnHeadersContainerElementRef=f,l.current.columnHeadersElementRef=p,l.current.windowRef=m,l.current.renderingZoneRef=g;const h=r.useCallback((e=>{l.current.publishEvent("resize",e)}),[l]);return(0,oe.jsxs)(ue,{children:[(0,oe.jsx)(Le,{}),(0,oe.jsx)(o,{ref:f,innerRef:p}),(0,oe.jsx)(be,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:h,children:e=>{const t={width:e.width,height:e.height?e.height-a:"auto",marginTop:a};return(0,oe.jsx)(n,{ref:m,style:t,disableVirtualization:s})}}),t]})}function ze(){var e;const t=$(),n=N(),o=r.useRef(null);return t.current.footerRef=o,n.hideFooter?null:(0,oe.jsx)("div",{ref:o,children:(0,oe.jsx)(n.components.Footer,(0,i.Z)({},null==(e=n.componentsProps)?void 0:e.footer))})}const $e=({apiRef:e,props:t,children:n})=>(0,oe.jsx)(V.Provider,{value:t,children:(0,oe.jsx)(z.Provider,{value:e,children:n})});function Ve(e){return"function"===typeof e}function Ne(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function Ae(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Be=(e,t,n)=>Math.max(t,Math.min(n,e));function Ue(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r{},Ge={debug:Ke,info:Ke,warn:Ke,error:Ke},qe=["debug","info","warn","error"];function Xe(e,t,n=console){const r=qe.indexOf(t);if(-1===r)throw new Error(`MUI: Log level ${t} not recognized.`);return qe.reduce(((t,o,l)=>(t[o]=l>=r?(...t)=>{const[r,...l]=t;n[o](`MUI: ${e} - ${r}`,...l)}:Ke,t)),{})}function Ye(e,t,n){const o=r.useRef(t),[l]=r.useState(Object.keys(t)),i=r.useCallback((()=>{e.current&&l.forEach((t=>{e.current.hasOwnProperty(t)||(e.current[t]=(...e)=>o.current[t](...e))}))}),[l,e]);r.useEffect((()=>{o.current=t}),[t]),r.useEffect((()=>{i()}),[i]),i()}class Qe{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout((()=>{"function"===typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class Je{constructor(){this.registry=new FinalizationRegistry((e=>{"function"===typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}var et;!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}(et||(et={}));class tt{}const nt={registry:null},rt=function(e){let t=0;return function(n,o,l,i){null===e.registry&&(e.registry="undefined"!==typeof FinalizationRegistry?new Je:new Qe);const[a]=r.useState(new tt),s=r.useRef(null),u=r.useRef();u.current=l;const c=r.useRef(null);if(!s.current&&u.current){const r=(e,t,n)=>{var r;t.defaultMuiPrevented||(null==(r=u.current)||r.call(u,e,t,n))};s.current=n.current.subscribeEvent(o,r,i),t+=1,c.current={cleanupToken:t},e.registry.register(a,(()=>{var e;null==(e=s.current)||e.call(s),s.current=null,c.current=null}),c.current)}else!u.current&&s.current&&(s.current(),s.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));r.useEffect((()=>{if(!s.current&&u.current){const e=(e,t,n)=>{var r;t.defaultMuiPrevented||(null==(r=u.current)||r.call(u,e,t,n))};s.current=n.current.subscribeEvent(o,e,i)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var e;null==(e=s.current)||e.call(s),s.current=null}}),[n,o,i])}}(nt),ot={isFirst:!0};function lt(e,t,n){rt(e,t,n,ot)}class it{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let l=r.length-1;l>=0;l-=1){const e=r[l];n.highPriority.has(e)&&e.apply(this,t)}for(let l=0;l{const n=function(e,t){const n=r.useRef();n.current||(n.current={unstable_eventManager:new it,unstable_caches:{},state:{},instanceId:at},at+=1),r.useImperativeHandle(e,(()=>n.current),[n]);const o=r.useCallback(((...e)=>{const[r,o,l={}]=e;if(l.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(l)&&l.isPropagationStopped())return;const i=t.signature===et.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(r,o,l,i)}),[n,t.signature]),l=r.useCallback(((e,t,r)=>{n.current.unstable_eventManager.on(e,t,r);const o=n.current;return()=>{o.unstable_eventManager.removeListener(e,t)}}),[n]),i=r.useCallback((e=>{n.current.publishEvent("componentError",e)}),[n]);return Ye(n,{subscribeEvent:l,publishEvent:o,showError:i}),r.useEffect((()=>{const e=n.current;return()=>{e.publishEvent("unmount")}}),[n]),n}(e,t);return((e,t)=>{e.current.getLogger=r.useCallback((e=>We?Xe(e,"debug",t.logger):t.logLevel?Xe(e,t.logLevel.toString(),t.logger):Ge),[t.logLevel,t.logger])})(n,t),function(e,t){const n=r.useCallback((t=>{e.current.setState((e=>(0,i.Z)({},e,{error:t})))}),[e]);r.useEffect((()=>{n(t.error)}),[n,t.error]),rt(e,"componentError",n)}(n,t),((e,t)=>{const n=r.useRef({}),[,o]=r.useState(),l=r.useCallback((e=>{const{stateId:t}=e,r=(0,a.Z)(e,pt);n.current[t]=(0,i.Z)({},r,{stateId:t})}),[]),s=r.useCallback(((r,o)=>{let l;if(l=Ve(r)?r(e.current.state):r,e.current.state===l)return!1;let i=!1;const a=[];if(Object.keys(n.current).forEach((t=>{const r=n.current[t],o=r.stateSelector(e.current.state,e.current.instanceId),s=r.stateSelector(l,e.current.instanceId);s!==o&&(a.push({stateId:r.stateId,hasPropChanged:s!==r.propModel}),void 0!==r.propModel&&s!==r.propModel&&(i=!0))})),a.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(i||(e.current.state=l,e.current.publishEvent&&e.current.publishEvent("stateChange",l)),1===a.length){const{stateId:r,hasPropChanged:s}=a[0],u=n.current[r],c=u.stateSelector(l,e.current.instanceId);if(u.propOnChange&&s){const n=t.signature===et.DataGridPro?{api:e.current,reason:o}:{reason:o};u.propOnChange(c,n)}i||e.current.publishEvent(u.changeEvent,c,{reason:o})}return!i}),[e,t.signature]),u=r.useCallback(((t,n,r)=>e.current.setState((e=>(0,i.Z)({},e,{[t]:n(e[t])})),r)),[e]),c=r.useCallback((()=>o((()=>e.current.state))),[e]);Ye(e,{setState:s,forceUpdate:c,unstable_updateControlState:u,unstable_registerControlState:l})})(n,t),(e=>{const t=r.useRef({}),n=r.useCallback((e=>{e&&Object.values(e.appliers).forEach((e=>{e()}))}),[]);Ye(e,{unstable_registerPipeProcessor:r.useCallback(((e,r,o)=>{t.current[e]||(t.current[e]={processors:new Map,appliers:{}});const l=t.current[e];return l.processors.get(r)!==o&&(l.processors.set(r,o),n(l)),()=>{t.current[e].processors.set(r,null)}}),[n]),unstable_registerPipeApplier:r.useCallback(((e,n,r)=>(t.current[e]||(t.current[e]={processors:new Map,appliers:{}}),t.current[e].appliers[n]=r,()=>{const r=t.current[e].appliers,o=(0,a.Z)(r,[n].map(ut));t.current[e].appliers=o})),[]),unstable_requestPipeProcessorsApplication:r.useCallback((e=>{const r=t.current[e];n(r)}),[n]),unstable_applyPipeProcessors:r.useCallback(((...e)=>{const[n,r,o]=e;return t.current[n]?Array.from(t.current[n].processors.values()).reduce(((e,t)=>t?t(e,o):e),r):r}),[])})})(n),(e=>{const t=r.useRef(new Map),n=r.useRef({}),o=r.useCallback(((t,r,o)=>{const l=()=>{const e=n.current[r],o=(0,a.Z)(e,[t].map(ut));n.current[r]=o};n.current[r]||(n.current[r]={});const i=n.current[r],s=i[t];return i[t]=o,s&&s!==o?(t===e.current.unstable_getActiveStrategy(dt[r])&&e.current.publishEvent("activeStrategyProcessorChange",r),l):l}),[e]),l=r.useCallback(((t,r)=>{const o=e.current.unstable_getActiveStrategy(dt[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const l=n.current[t];if(!l||!l[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,l[o])(r)}),[e]),i=r.useCallback((e=>{var n;const r=Array.from(t.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return null!=(n=null==r?void 0:r[0])?n:ct}),[]),s=r.useCallback(((n,r,o)=>{t.current.set(r,{group:n,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);Ye(e,{unstable_registerStrategyProcessor:o,unstable_applyStrategyProcessor:l,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})})(n),((e,t)=>{Ye(e,{getLocaleText:r.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText])})})(n,t),n},mt=(e,t,n)=>{const o=r.useRef(!1);o.current||(t.current.state=e(t.current.state,n,t),o.current=!0)};function gt(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const ht=e=>{const t=r.useCallback(((t=!1)=>{if(0===e.current.getSelectedRows().size)return;const n=e.current.getDataAsCsv({includeHeaders:t,delimiter:"\t"});navigator.clipboard?navigator.clipboard.writeText(n).catch((()=>{gt(n)})):gt(n)}),[e]),n=r.useCallback((t=>{var n;const r=t.ctrlKey||t.metaKey||t.altKey;"C"===String.fromCharCode(t.keyCode)&&r&&""===(null==(n=window.getSelection())?void 0:n.toString())&&e.current.unstable_copySelectedRowsToClipboard(t.altKey)}),[e]);((e,t,n,o,l)=>{const i=ae(e,"useNativeEventListener"),[a,s]=r.useState(!1),u=r.useRef(o),c=r.useCallback((e=>u.current&&u.current(e)),[]);r.useEffect((()=>{u.current=o}),[o]),r.useEffect((()=>{let r;if(r=Ve(t)?t():t&&t.current?t.current:null,r&&c&&n&&!a){i.debug(`Binding native ${n} event`),r.addEventListener(n,c,l);const t=r;s(!0);const o=()=>{i.debug(`Clearing native ${n} event`),t.removeEventListener(n,c,l)};e.current.subscribeEvent("unmount",o)}}),[t,c,n,a,i,l,e])})(e,e.current.rootElementRef,"keydown",n);Ye(e,{unstable_copySelectedRowsToClipboard:t})},bt=e=>e.columnMenu,vt=e=>(0,i.Z)({},e,{columnMenu:{open:!1}}),Ct=e=>{const t=r.useRef(!0);t.current&&(t.current=!1,e())},wt=(e,t,n)=>{const o=r.useRef(),l=r.useRef(`mui-${Math.round(1e9*Math.random())}`),i=r.useCallback((()=>{o.current=e.current.unstable_registerPipeProcessor(t,l.current,n)}),[e,n,t]);Ct((()=>{i()}));const a=r.useRef(!0);r.useEffect((()=>(a.current?a.current=!1:i(),()=>{o.current&&(o.current(),o.current=null)})),[i])},yt=(e,t,n)=>{const o=r.useRef(),l=r.useRef(`mui-${Math.round(1e9*Math.random())}`),i=r.useCallback((()=>{o.current=e.current.unstable_registerPipeApplier(t,l.current,n)}),[e,n,t]);Ct((()=>{i()}));const a=r.useRef(!0);r.useEffect((()=>(a.current?a.current=!1:i(),()=>{o.current&&(o.current(),o.current=null)})),[i])};var xt=n(3970),Rt=n(7892);const kt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Zt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),St=(0,Rt.Z)((0,oe.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Pt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Et=(0,Rt.Z)((0,oe.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Mt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),It=(0,Rt.Z)((0,oe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Tt=((0,Rt.Z)((0,oe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,Rt.Z)((0,oe.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),Ft=(0,Rt.Z)((0,oe.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),_t=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Ot=(0,Rt.Z)((0,oe.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Dt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Ht=(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Lt=(0,Rt.Z)((0,oe.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"),jt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),zt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),$t=(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Vt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Nt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),At=(0,Rt.Z)((0,oe.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Bt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");var Ut=n(7909),Wt=n(9309);function Kt(e){return"object"===typeof e&&null!==e?e.value:e}function Gt(e,t){if(void 0===t)return;const n=t.find((t=>{const n=Kt(t);return String(n)===String(e)}));return Kt(n)}const qt=["item","applyValue","type","apiRef","focusElementRef"];const Xt=({valueOptions:e,valueFormatter:t,field:n},r,o)=>("function"===typeof e?["",...e({field:n})]:["",...e||[]]).map((e=>{const l="object"===typeof e,i=l?e.value:e,a=l?e.value:e,s=t&&""!==e?t({value:e,field:n,api:r}):e,u=l?e.label:s;return(0,oe.jsx)(o,{value:a,children:u},i)})),Yt=500;function Qt(e){var t,n,o,l,s;const{item:u,applyValue:c,type:d,apiRef:p,focusElementRef:f}=e,m=(0,a.Z)(e,qt);const g=r.useRef(),[h,b]=r.useState(null!=(t=u.value)?t:""),[v,C]=r.useState(!1),w=(0,Ut.Z)(),y=N(),x=null==(o=((null==(n=y.componentsProps)?void 0:n.baseSelect)||{}).native)||o,R="singleSelect"===d?{select:!0,SelectProps:(0,i.Z)({native:x},null==(l=y.componentsProps)?void 0:l.baseSelect),children:Xt(p.current.getColumn(u.columnField),p.current,x?"option":Wt.Z)}:{},k=r.useCallback((e=>{let t=e.target.value;if("singleSelect"===d){const e=p.current.getColumn(u.columnField),n="function"===typeof e.valueOptions?e.valueOptions({field:e.field}):e.valueOptions;t=Gt(t,n)}clearTimeout(g.current),b(String(t)),C(!0),g.current=setTimeout((()=>{c((0,i.Z)({},u,{value:t})),C(!1)}),Yt)}),[p,c,u,d]);r.useEffect((()=>()=>{clearTimeout(g.current)}),[]),r.useEffect((()=>{var e;const t=null!=(e=u.value)?e:"";b(String(t))}),[u.value]);const Z=v?{endAdornment:(0,oe.jsx)($t,{})}:m.InputProps;return(0,oe.jsx)(y.components.BaseTextField,(0,i.Z)({id:w,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:k,type:d||"text",variant:"standard",InputProps:Z,InputLabelProps:{shrink:!0},inputRef:f},R,m,null==(s=y.componentsProps)?void 0:s.baseTextField))}const Jt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],en=(0,f.ZP)(xt.ZP,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>(0,i.Z)({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})));function tn(e){var t;const n=N(),{id:o,value:l,field:s,colDef:u,hasFocus:c,debounceMs:f=(null!=(t=n.experimentalFeatures)&&t.newEditingApi?200:Yt),isProcessingProps:m,onValueChange:h}=e,b=(0,a.Z)(e,Jt),v=$(),C=r.useRef(),[w,y]=r.useState(l),x=(e=>{const{classes:t}=e;return(0,p.Z)({root:["editInputCell"]},g.d,t)})({classes:n.classes}),R=r.useCallback((async e=>{const t=e.target.value;h&&await h(e,t),y(t),v.current.setEditCellValue({id:o,field:s,value:t,debounceMs:f},e)}),[v,f,s,o,h]);return r.useEffect((()=>{y(l)}),[l]),(0,d.Z)((()=>{c&&C.current.focus()}),[c]),(0,oe.jsx)(en,(0,i.Z)({inputRef:C,className:x.root,fullWidth:!0,type:"number"===u.type?u.type:"text",value:null!=w?w:"",onChange:R,endAdornment:m?(0,oe.jsx)($t,{}):void 0},b))}const nn=R(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),rn=(e,t)=>t&&e.length>1?(nn(),[e[0]]):e,on=(e,t)=>n=>(0,i.Z)({},n,{sorting:(0,i.Z)({},n.sorting,{sortModel:rn(e,t)})}),ln=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},an=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,sn=new Intl.Collator,un=(e,t)=>{const n=an(e,t);return null!==n?n:Number(e)-Number(t)},cn=(e,t)=>{const n=an(e,t);return null!==n?n:e>t?1:e{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,u.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Sn.disabled}`]:{color:e.palette.text.disabled},[`&.${Sn.error}`]:{color:e.palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})));var Mn=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:l="p"}=n,c=(0,a.Z)(n,Pn),d=(0,yn.Z)(),f=(0,wn.Z)({props:n,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),m=(0,i.Z)({},n,{component:l,contained:"filled"===f.variant||"outlined"===f.variant,variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),g=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:l,filled:i,focused:a,required:s}=e,c={root:["root",o&&"disabled",l&&"error",r&&`size${(0,u.Z)(r)}`,n&&"contained",a&&"focused",i&&"filled",s&&"required"]};return(0,p.Z)(c,kn,t)})(m);return(0,oe.jsx)(En,(0,i.Z)({as:l,ownerState:m,className:(0,s.Z)(g.root,o),ref:t},c,{children:" "===r?Zn||(Zn=(0,oe.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),In=n(3213);function Tn(e){return(0,xn.Z)("MuiTextField",e)}(0,Rn.Z)("MuiTextField",["root"]);const Fn=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],_n={standard:gn.Z,filled:hn.Z,outlined:bn.Z},On=(0,f.ZP)(Cn.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var Dn=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:l,className:u,color:c="primary",defaultValue:d,disabled:f=!1,error:m=!1,FormHelperTextProps:g,fullWidth:h=!1,helperText:b,id:v,InputLabelProps:C,inputProps:w,InputProps:y,inputRef:x,label:R,maxRows:k,minRows:Z,multiline:S=!1,name:P,onBlur:E,onChange:M,onFocus:I,placeholder:T,required:F=!1,rows:_,select:O=!1,SelectProps:D,type:H,value:L,variant:j="outlined"}=n,z=(0,a.Z)(n,Fn),$=(0,i.Z)({},n,{autoFocus:o,color:c,disabled:f,error:m,fullWidth:h,multiline:S,required:F,select:O,variant:j}),V=(e=>{const{classes:t}=e;return(0,p.Z)({root:["root"]},Tn,t)})($);const N={};"outlined"===j&&(C&&"undefined"!==typeof C.shrink&&(N.notched=C.shrink),N.label=R),O&&(D&&D.native||(N.id=void 0),N["aria-describedby"]=void 0);const A=(0,fn.Z)(v),B=b&&A?`${A}-helper-text`:void 0,U=R&&A?`${A}-label`:void 0,W=_n[j],K=(0,oe.jsx)(W,(0,i.Z)({"aria-describedby":B,autoComplete:r,autoFocus:o,defaultValue:d,fullWidth:h,multiline:S,name:P,rows:_,maxRows:k,minRows:Z,type:H,value:L,id:A,inputRef:x,onBlur:E,onChange:M,onFocus:I,placeholder:T,inputProps:w},N,y));return(0,oe.jsxs)(On,(0,i.Z)({className:(0,s.Z)(V.root,u),disabled:f,error:m,fullWidth:h,ref:t,required:F,color:c,variant:j,ownerState:$},z,{children:[null!=R&&""!==R&&(0,oe.jsx)(vn.Z,(0,i.Z)({htmlFor:A,id:U},C,{children:R})),O?(0,oe.jsx)(In.Z,(0,i.Z)({"aria-describedby":B,id:A,labelId:U,value:L,input:K},D,{children:l})):K,b&&(0,oe.jsx)(Mn,(0,i.Z)({id:B},g,{children:b}))]}))}));const Hn=["item","applyValue","type","apiRef","focusElementRef"];function Ln(e){const{item:t,applyValue:n,type:o,apiRef:l,focusElementRef:s}=e,u=(0,a.Z)(e,Hn),[c,d]=r.useState(t.value||[]),p=(0,Ut.Z)();r.useEffect((()=>{var e;const n=null!=(e=t.value)?e:[];d(n.map(String))}),[t.value]);const f=r.useCallback(((e,r)=>{d(r.map(String)),n((0,i.Z)({},t,{value:[...r]}))}),[n,t]);return(0,oe.jsx)(dn.Z,(0,i.Z)({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:(e,t)=>{const{inputValue:n}=t;return null==n||""===n?[]:[n]},id:p,value:c,onChange:f,renderTags:(e,t)=>e.map(((e,n)=>(0,oe.jsx)(pn.Z,(0,i.Z)({variant:"outlined",size:"small",label:e},t({index:n}))))),renderInput:e=>(0,oe.jsx)(Dn,(0,i.Z)({},e,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,i.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:s,type:o||"text",variant:"standard"}))},u))}const jn={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,editable:!1,sortComparator:(e,t)=>{const n=an(e,t);return null!==n?n:"string"===typeof e?sn.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:[{value:"contains",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(Ae(e.value),"i");return({value:e})=>null!=e&&t.test(e.toString())},InputComponent:Qt},{value:"equals",getApplyFilterFn:e=>{if(!e.value)return null;const t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:n})=>null!=n&&0===t.compare(e.value,n.toString())},InputComponent:Qt},{value:"startsWith",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(`^${Ae(e.value)}.*$`,"i");return({value:e})=>null!=e&&t.test(e.toString())},InputComponent:Qt},{value:"endsWith",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(`.*${Ae(e.value)}$`,"i");return({value:e})=>null!=e&&t.test(e.toString())},InputComponent:Qt},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>""===e||null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>""!==e&&null!=e},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:n})=>null!=n&&e.value.some((e=>0===t.compare(e,n.toString()||"")))},InputComponent:Ln}],renderEditCell:e=>(0,oe.jsx)(tn,(0,i.Z)({},e)),getApplyQuickFilterFn:e=>{if(!e)return null;const t=new RegExp(Ae(e),"i");return({value:e})=>null!=e&&t.test(e.toString())}},zn=e=>null==e?null:Number(e),$n=()=>[{label:"=",value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>zn(t)===e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>zn(t)!==e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)>e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)>=e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)<=e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?({value:t})=>null!=t&&e.value.includes(Number(t)):null,InputComponent:Ln,InputComponentProps:{type:"number"}}],Vn=(k($n),(0,i.Z)({},jn,{type:"number",align:"right",headerAlign:"right",sortComparator:un,valueParser:e=>""===e?null:Number(e),valueFormatter:({value:e})=>function(e){return"number"===typeof e}(e)?e.toLocaleString():e||"",filterOperators:$n(),getApplyQuickFilterFn:e=>null==e||Number.isNaN(e)||""===e?null:({value:t})=>zn(t)===zn(e)})),Nn=["item","applyValue","type","apiRef","focusElementRef","InputProps"];function An(e){var t,n;const{item:o,applyValue:l,type:s,apiRef:u,focusElementRef:c,InputProps:d}=e,p=(0,a.Z)(e,Nn),f=r.useRef(),[m,g]=r.useState(null!=(t=o.value)?t:""),[h,b]=r.useState(!1),v=(0,Ut.Z)(),C=N(),w=r.useCallback((e=>{const t=e.target.value;clearTimeout(f.current),g(String(t)),b(!0),f.current=setTimeout((()=>{l((0,i.Z)({},o,{value:t})),b(!1)}),500)}),[l,o]);return r.useEffect((()=>()=>{clearTimeout(f.current)}),[]),r.useEffect((()=>{var e;const t=null!=(e=o.value)?e:"";g(String(t))}),[o.value]),(0,oe.jsx)(C.components.BaseTextField,(0,i.Z)({id:v,label:u.current.getLocaleText("filterPanelInputLabel"),placeholder:u.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:w,type:s||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:c,InputProps:(0,i.Z)({},h?{endAdornment:(0,oe.jsx)($t,{})}:{},d,{inputProps:(0,i.Z)({max:"datetime-local"===s?"9999-12-31T23:59":"9999-12-31"},null==d?void 0:d.inputProps)})},p,null==(n=C.componentsProps)?void 0:n.baseTextField))}const Bn=/(\d+)-(\d+)-(\d+)/,Un=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Wn(e,t,n,r){if(!e.value)return null;const[o,l,i,a,s]=e.value.match(n?Un:Bn).slice(1).map(Number),u=new Date(o,l-1,i,a||0,s||0).getTime();return({value:e})=>{if(!e)return!1;const o=e instanceof Date?e:new Date(e.toString());if(r)return t(o.getTime(),u);const l=(e instanceof Date?new Date(o):o).setHours(n?o.getHours():0,n?o.getMinutes():0,0,0);return t(l,u)}}const Kn=e=>[{value:"is",getApplyFilterFn:t=>Wn(t,((e,t)=>e===t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Wn(t,((e,t)=>e!==t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Wn(t,((e,t)=>e>t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Wn(t,((e,t)=>e>=t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Wn(t,((e,t)=>eWn(t,((e,t)=>e<=t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e}],Gn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"];function qn(e){const{id:t,value:n,field:o,colDef:l,hasFocus:s,inputProps:u,onValueChange:c}=e,f=(0,a.Z)(e,Gn),m="dateTime"===l.type,h=$(),b=r.useRef(),v=r.useMemo((()=>{let e,t;if(e=null==n?null:n instanceof Date?n:new Date((null!=n?n:"").toString()),null==e||Number.isNaN(e.getTime()))t="";else{t=new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,m?16:10)}return{parsed:e,formatted:t}}),[n,m]),[C,w]=r.useState(v),y=(e=>{const{classes:t}=e;return(0,p.Z)({root:["editInputCell"]},g.d,t)})({classes:N().classes}),x=r.useCallback((async e=>{const n=e.target.value;let r;if(""===n)r=null;else{const[e,t]=n.split("T"),[o,l,i]=e.split("-");if(r=new Date,r.setFullYear(o,Number(l)-1,i),r.setHours(0,0,0,0),t){const[e,n]=t.split(":");r.setHours(Number(e),Number(n),0,0)}}c&&await c(e,r),w({parsed:r,formatted:n}),h.current.setEditCellValue({id:t,field:o,value:r},e)}),[h,o,t,c]);return r.useEffect((()=>{w((e=>{var t,n;return v.parsed!==e.parsed&&(null==(t=v.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?v:e}))}),[v]),(0,d.Z)((()=>{s&&b.current.focus()}),[s]),(0,oe.jsx)(xt.ZP,(0,i.Z)({inputRef:b,fullWidth:!0,className:y.root,type:m?"datetime-local":"date",inputProps:(0,i.Z)({max:m?"9999-12-31T23:59":"9999-12-31"},u),value:C.formatted,onChange:x},f))}const Xn=e=>(0,oe.jsx)(qn,(0,i.Z)({},e));const Yn=(0,i.Z)({},jn,{type:"date",sortComparator:cn,valueFormatter:function({value:e}){return e instanceof Date?e.toLocaleDateString():null!=e?e:""},filterOperators:Kn(),renderEditCell:Xn,getApplyQuickFilterFn:void 0}),Qn=(0,i.Z)({},jn,{type:"dateTime",sortComparator:cn,valueFormatter:function({value:e}){return e instanceof Date?e.toLocaleString():null!=e?e:""},filterOperators:Kn(!0),renderEditCell:Xn,getApplyQuickFilterFn:void 0}),Jn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],er=r.memo((e=>{const{value:t}=e,n=(0,a.Z)(e,Jn),o=$(),l=N(),s=(e=>{const{classes:t}=e;return(0,p.Z)({root:["booleanCell"]},g.d,t)})({classes:l.classes}),u=r.useMemo((()=>t?l.components.BooleanCellTrueIcon:l.components.BooleanCellFalseIcon),[l.components.BooleanCellFalseIcon,l.components.BooleanCellTrueIcon,t]);return(0,oe.jsx)(u,(0,i.Z)({fontSize:"small",className:s.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))})),tr=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function nr(e){var t;const{id:n,value:o,field:l,className:u,hasFocus:c,onValueChange:f}=e,m=(0,a.Z)(e,tr),h=$(),b=r.useRef(null),v=(0,Ut.Z)(),[C,w]=r.useState(o),y=N(),x=(e=>{const{classes:t}=e;return(0,p.Z)({root:["editBooleanCell"]},g.d,t)})({classes:y.classes}),R=r.useCallback((async e=>{const t=e.target.checked;f&&await f(e,t),w(t),await h.current.setEditCellValue({id:n,field:l,value:t},e)}),[h,l,n,f]);return r.useEffect((()=>{w(o)}),[o]),(0,d.Z)((()=>{c&&b.current.focus()}),[c]),(0,oe.jsx)("label",(0,i.Z)({htmlFor:v,className:(0,s.Z)(x.root,u)},m,{children:(0,oe.jsx)(y.components.BaseCheckbox,(0,i.Z)({id:v,inputRef:b,checked:Boolean(C),onChange:R,size:"small"},null==(t=y.componentsProps)?void 0:t.baseCheckbox))}))}const rr=["item","applyValue","apiRef","focusElementRef"];function or(e){var t,n,o,l;const{item:s,applyValue:u,apiRef:c,focusElementRef:d}=e,p=(0,a.Z)(e,rr),[f,m]=r.useState(s.value||""),g=N(),h=null==(n=((null==(t=g.componentsProps)?void 0:t.baseSelect)||{}).native)||n,b=h?"option":Wt.Z,v=r.useCallback((e=>{const t=e.target.value;m(t),u((0,i.Z)({},s,{value:t}))}),[u,s]);return r.useEffect((()=>{m(s.value||"")}),[s.value]),(0,oe.jsxs)(g.components.BaseTextField,(0,i.Z)({label:c.current.getLocaleText("filterPanelInputLabel"),value:f,onChange:v,variant:"standard",select:!0,SelectProps:(0,i.Z)({native:h,displayEmpty:!0},null==(o=g.componentsProps)?void 0:o.baseSelect),InputLabelProps:{shrink:!0},inputRef:d},p,null==(l=g.componentsProps)?void 0:l.baseTextField,{children:[(0,oe.jsx)(b,{value:"",children:c.current.getLocaleText("filterValueAny")}),(0,oe.jsx)(b,{value:"true",children:c.current.getLocaleText("filterValueTrue")}),(0,oe.jsx)(b,{value:"false",children:c.current.getLocaleText("filterValueFalse")})]}))}const lr=(0,i.Z)({},jn,{type:"boolean",align:"center",headerAlign:"center",renderCell:e=>e.rowNode.isAutoGenerated?"":(0,oe.jsx)(er,(0,i.Z)({},e)),renderEditCell:e=>(0,oe.jsx)(nr,(0,i.Z)({},e)),sortComparator:un,valueFormatter:function({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t="true"===e.value;return({value:e})=>Boolean(e)===t},InputComponent:or}],getApplyQuickFilterFn:void 0}),ir=e=>"Escape"===e,ar=e=>"Enter"===e,sr=e=>"Tab"===e,ur=e=>" "===e,cr=e=>"Delete"===e||"Backspace"===e,dr=/^(\p{L}|\p{M}\p{L}|\p{M}|\p{N}|\p{Z}|\p{S}|\p{P})$/iu,pr=e=>dr.test(e),fr=["Enter","Escape","Tab"],mr=["Enter","Tab"],gr=e=>mr.indexOf(e)>-1,hr=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||ur(e),br=e=>!!e.key;var vr,Cr,wr;!function(e){e.Cell="cell",e.Row="row"}(vr||(vr={})),function(e){e.Edit="edit",e.View="view"}(Cr||(Cr={})),function(e){e.Edit="edit",e.View="view"}(wr||(wr={}));const yr=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function xr(e){var t,n,o;const{id:l,value:s,api:u,field:c,row:p,colDef:f,hasFocus:m,error:g,onValueChange:h}=e,b=(0,a.Z)(e,yr),v=$(),C=r.useRef(),w=r.useRef(),y=N(),[x,R]=r.useState("cell"===y.editMode),k=null!=(n=((null==(t=y.componentsProps)?void 0:t.baseSelect)||{}).native)&&n;let Z;Z="function"===typeof f.valueOptions?f.valueOptions({id:l,row:p,field:c}):f.valueOptions,f.valueFormatter&&(Z=Z.map((e=>{if("object"===typeof e)return e;const t={field:c,api:u,value:e};return{value:e,label:String(f.valueFormatter(t))}})));return(0,d.Z)((()=>{m&&w.current.focus()}),[m]),(0,oe.jsx)(y.components.BaseSelect,(0,i.Z)({ref:C,inputRef:w,value:s,onChange:async e=>{var t;R(!1);const n=Gt(e.target.value,Z);h&&await h(e,n);const r=await v.current.setEditCellValue({id:l,field:c,value:n},e);if(null!=(t=y.experimentalFeatures)&&t.newEditingApi)return;if(y.editMode===vr.Row||!1===r)return;if(await Promise.resolve(v.current.commitCellChange({id:l,field:c},e))&&(v.current.setCellMode(l,c,"view"),e.key)){const t=v.current.getCellParams(l,c);v.current.publishEvent("cellNavigationKeyDown",t,e)}},open:x,onOpen:()=>{R(!0)},MenuProps:{onClose:(e,t)=>{var n;y.editMode!==vr.Row?("backdropClick"===t||ir(e.key))&&(null!=(n=y.experimentalFeatures)&&n.newEditingApi?v.current.stopCellEditMode({id:l,field:c,ignoreModifications:!0}):v.current.setCellMode(l,c,"view")):R(!1)}},error:g,native:k,fullWidth:!0},b,null==(o=y.componentsProps)?void 0:o.baseSelect,{children:Z.map((e=>((e,t)=>{const n="object"===typeof e,r=n?e.value:e,o=n?e.value:e,l=n?e.label:e;return(0,oe.jsx)(t,{value:o,children:l},r)})(e,k?"option":Wt.Z)))}))}const Rr=["item","applyValue","type","apiRef","focusElementRef"],kr=({valueOptions:e,valueFormatter:t,field:n},r,o)=>("function"===typeof e?["",...e({field:n})]:["",...e||[]]).map((e=>{const l="object"===typeof e,i=l?e.value:e,a=l?e.value:e,s=t&&""!==e?t({value:e,field:n,api:r}):e,u=l?e.label:s;return(0,oe.jsx)(o,{value:a,children:u},i)}));function Zr(e){var t,n,o,l,s;const{item:u,applyValue:c,type:d,apiRef:p,focusElementRef:f}=e,m=(0,a.Z)(e,Rr),[g,h]=r.useState(null!=(t=u.value)?t:""),b=(0,Ut.Z)(),v=N(),C=null==(o=((null==(n=v.componentsProps)?void 0:n.baseSelect)||{}).native)||o,w=u.columnField?p.current.getColumn(u.columnField):null,y=r.useMemo((()=>"function"===typeof w.valueOptions?w.valueOptions({field:w.field}):w.valueOptions),[w]),x=r.useCallback((e=>{let t=e.target.value;t=Gt(t,y),h(String(t)),c((0,i.Z)({},u,{value:t}))}),[c,u,y]);return r.useEffect((()=>{var e;let t;if(void 0!==y){if(t=Gt(u.value,y),t!==u.value)return void c((0,i.Z)({},u,{value:t}))}else t=u.value;t=null!=(e=t)?e:"",h(String(t))}),[u,y,c]),(0,oe.jsx)(v.components.BaseTextField,(0,i.Z)({id:b,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:x,type:d||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:f,select:!0,SelectProps:(0,i.Z)({native:C},null==(l=v.componentsProps)?void 0:l.baseSelect)},m,null==(s=v.componentsProps)?void 0:s.baseTextField,{children:kr(p.current.getColumn(u.columnField),p.current,C?"option":Wt.Z)}))}var Sr=n(5949);const Pr=["item","applyValue","type","apiRef","focusElementRef"],Er=(e,t)=>Kt(e)===Kt(t),Mr=(0,Sr.D)();function Ir(e){const{item:t,applyValue:n,apiRef:o,focusElementRef:l}=e,s=(0,a.Z)(e,Pr),u=(0,Ut.Z)(),c=t.columnField?o.current.getColumn(t.columnField):null,d=r.useMemo((()=>null!=c&&c.valueOptions?"function"===typeof c.valueOptions?c.valueOptions({field:c.field}):c.valueOptions:[]),[c]),p=r.useMemo((()=>null==d?void 0:d.map(Kt)),[d]),{valueFormatter:f,field:m}=o.current.getColumn(t.columnField),g=e=>"object"===typeof e?e.label:f&&""!==e?f({value:e,field:m,api:o.current}):e,h=r.useMemo((()=>{if(!Array.isArray(t.value))return[];if(void 0!==d){return t.value.map((e=>{const t=Kt(e);return(null==p?void 0:p.findIndex((e=>e===t)))||0})).filter((e=>e>=0)).map((e=>d[e]))}return t.value}),[t.value,d,p]);r.useEffect((()=>{Array.isArray(t.value)&&h.length===t.value.length||n((0,i.Z)({},t,{value:h.map(Kt)}))}),[t,h,n]);const b=r.useCallback(((e,r)=>{n((0,i.Z)({},t,{value:[...r.map(Kt)]}))}),[n,t]);return(0,oe.jsx)(dn.Z,(0,i.Z)({multiple:!0,limitTags:1,options:d,isOptionEqualToValue:Er,filterOptions:Mr,id:u,value:h,onChange:b,renderTags:(e,t)=>e.map(((e,n)=>(0,oe.jsx)(pn.Z,(0,i.Z)({variant:"outlined",size:"small",label:g(e)},t({index:n}))))),renderInput:e=>(0,oe.jsx)(Dn,(0,i.Z)({},e,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,i.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:l,type:"singleSelect",variant:"standard"}))},s))}const Tr=e=>null==e||"object"!==typeof e?e:e.value,Fr=(0,i.Z)({},jn,{type:"singleSelect",renderEditCell:e=>(0,oe.jsx)(xr,(0,i.Z)({},e)),filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>Tr(t)===Tr(e.value),InputComponent:Zr},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>Tr(t)!==Tr(e.value),InputComponent:Zr},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(Tr);return({value:e})=>t.includes(Tr(e))},InputComponent:Ir}],getApplyQuickFilterFn:(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:l}=t,i=[Tr(e).toString()],a="function"===typeof r?r({field:l}):r||[];return a&&a.forEach((t=>{let r,a;"object"===typeof t?(r=t.value,a=t.label):(r=t,a=o?o({value:t,field:l,api:n.current}):t),a.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(i.includes(r)||i.push(r.toString()))})),({value:e})=>null!=e&&i.includes(Tr(e).toString())}});var _r=n(4799),Or=n(4118),Dr=n(67),Hr=n(3633),Lr=n(7094);function jr(e){return e.substring(2).toLowerCase()}var zr=function(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:l,touchEvent:i="onTouchEnd"}=e,a=r.useRef(!1),s=r.useRef(null),u=r.useRef(!1),c=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=(0,Dr.Z)(t.ref,s),p=(0,Hr.Z)((e=>{const t=c.current;c.current=!1;const r=(0,Lr.Z)(s.current);if(!u.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||s.current.contains(e.target),o||!n&&t||l(e)})),f=e=>n=>{c.current=!0;const r=t.props[e];r&&r(n)},m={ref:d};return!1!==i&&(m[i]=f(i)),r.useEffect((()=>{if(!1!==i){const e=jr(i),t=(0,Lr.Z)(s.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,i]),!1!==o&&(m[o]=f(o)),r.useEffect((()=>{if(!1!==o){const e=jr(o),t=(0,Lr.Z)(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,oe.jsx)(r.Fragment,{children:r.cloneElement(t,m)})},$r=n(6514),Vr=n(5113),Nr=n(4606);const Ar=["open","target","onClickAway","children","position","className","onExited"],Br=(0,f.ZP)(Nr.Z,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${g._.menuList}`]:{outline:0}}))),Ur={"bottom-start":"top left","bottom-end":"top right"},Wr=e=>{var t;const{open:n,target:o,onClickAway:l,children:u,position:c,className:d,onExited:f}=e,m=(0,a.Z)(e,Ar),h=$(),b=r.useRef(o),v=r.useRef(n),C=N(),w=(e=>{const{classes:t}=e;return(0,p.Z)({root:["menu"]},g.d,t)})({classes:C.classes});r.useEffect((()=>{v.current&&b.current&&b.current.focus();const e=n?"menuOpen":"menuClose";h.current.publishEvent(e,{target:o}),v.current=n,b.current=o}),[h,n,o]);return(0,oe.jsx)(Br,(0,i.Z)({as:C.components.BasePopper,className:(0,s.Z)(d,w.root),open:n,anchorEl:o,transition:!0,placement:c},m,null==(t=C.componentsProps)?void 0:t.basePopper,{children:({TransitionProps:e,placement:t})=>{return(0,oe.jsx)(zr,{onClickAway:l,mouseEvent:"onMouseDown",children:(0,oe.jsx)($r.Z,(0,i.Z)({},e,{style:{transformOrigin:Ur[t]},onExited:(n=null==e?void 0:e.onExited,e=>{n&&n(),f&&f(e)}),children:(0,oe.jsx)(Vr.Z,{children:u})}))});var n}}))},Kr=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],Gr=e=>{const{colDef:t,id:n,hasFocus:o,tabIndex:l,position:s="bottom-end",focusElementRef:u}=e,c=(0,a.Z)(e,Kr),[d,p]=r.useState(-1),[f,m]=r.useState(!1),h=$(),b=r.useRef(null),v=r.useRef(null),C=r.useRef(!1),w=r.useRef({}),y=(0,Ut.Z)(),x=(0,Ut.Z)(),R=N();if(r.useLayoutEffect((()=>{o||Object.entries(w.current).forEach((([e,t])=>{null==t||t.stop({},(()=>{delete w.current[e]}))}))}),[o]),r.useEffect((()=>{if(d<0||!b.current)return;if(d>=b.current.children.length)return;b.current.children[d].focus()}),[d]),r.useEffect((()=>{o||(p(-1),C.current=!1)}),[o]),r.useImperativeHandle(u,(()=>({focus(){C.current||p(0)}})),[]),!(e=>"function"===typeof e.getActions)(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=t.getActions(h.current.getRowParams(n)),Z=k.filter((e=>!e.props.showInMenu)),S=k.filter((e=>e.props.showInMenu)),P=Z.length+(S.length?1:0);r.useEffect((()=>{d>=P&&p(P-1)}),[d,P]);const E=()=>{m(!1)},M=e=>t=>{w.current[e]=t},I=(e,t)=>n=>{p(e),C.current=!0,t&&t(n)};return(0,oe.jsxs)("div",(0,i.Z)({role:"menu",ref:b,tabIndex:-1,className:g._.actionsCell,onKeyDown:e=>{if(P<=1)return;let t=d;"ArrowRight"===e.key?t+=1:"ArrowLeft"===e.key&&(t-=1),t<0||t>=P||t!==d&&(e.preventDefault(),e.stopPropagation(),p(t))}},c,{children:[Z.map(((e,t)=>r.cloneElement(e,{key:t,touchRippleRef:M(t),onClick:I(t,e.props.onClick),tabIndex:d===t?l:-1}))),S.length>0&&x&&(0,oe.jsx)(_r.Z,{ref:v,id:x,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-controls":y,"aria-expanded":f?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:()=>{m(!0),p(P-1),C.current=!0},touchRippleRef:M(x),tabIndex:d===Z.length?l:-1,children:(0,oe.jsx)(R.components.MoreActionsIcon,{fontSize:"small"})}),S.length>0&&(0,oe.jsx)(Wr,{onClickAway:E,onClick:E,open:f,target:v.current,position:s,children:(0,oe.jsx)(Or.Z,{id:y,className:g._.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&E()},"aria-labelledby":x,variant:"menu",autoFocusItem:!0,children:S.map(((e,t)=>r.cloneElement(e,{key:t})))})})]}))},qr="actions",Xr=(0,i.Z)({},jn,{sortable:!1,filterable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>(0,oe.jsx)(Gr,(0,i.Z)({},e)),getApplyQuickFilterFn:void 0}),Yr="__default__",Qr=["maxWidth","minWidth","width","flex"],Jr=(e={})=>{const t=(0,i.Z)({},{string:jn,number:Vn,date:Yn,dateTime:Qn,boolean:lr,singleSelect:Fr,[qr]:Xr,[Yr]:jn});return Object.entries(e).forEach((([e,n])=>{t[e]?t[e]=(0,i.Z)({},t[e],n):t[e]=(0,i.Z)({},t[n.extendType||Yr],n)})),t};const eo=(e,t)=>{const n={};let r=0,o=0;const l=[];e.all.forEach((t=>{const a=(0,i.Z)({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])a.computedWidth=0;else{let e;a.flex&&a.flex>0?(r+=a.flex,e=0,l.push(a)):e=Be(a.width,a.minWidth,a.maxWidth),o+=e,a.computedWidth=e}n[t]=a}));const a=Math.max(t-o,0);if(r>0&&t>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:e=>{const t=r.all[e];t&&!0!==t.frozen&&(r.all[e].frozen=!0,r.frozenFields.push(e))}};return function o(){if(r.frozenFields.length===n.length)return;const l={min:{},max:{}};let i=e,a=t,s=0;r.frozenFields.forEach((e=>{i-=r.all[e].computedWidth,a-=r.all[e].flex}));for(let e=0;et.maxWidth&&(s+=t.maxWidth-o,o=t.maxWidth,l.max[t.field]=!0),r.all[t.field]={frozen:!1,computedWidth:o,flex:t.flex}}s<0?Object.keys(l.max).forEach((e=>{r.freeze(e)})):s>0?Object.keys(l.min).forEach((e=>{r.freeze(e)})):n.forEach((({field:e})=>{r.freeze(e)})),o()}(),r.all}({initialFreeSpace:a,totalFlexUnits:r,flexColumns:l});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return(0,i.Z)({},e,{lookup:n})};const to=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=T(e),shouldRegenColumnVisibilityModelFromColumns:l,keepOnlyColumnsToUpsert:a=!1})=>{var s,u,c,d;const p=!e.current.state.columns;let f;if(p)f={all:[],lookup:{}};else{const t=P(e.current.state);f={all:a?[]:[...t.all],lookup:(0,i.Z)({},t.lookup)}}let m={};a&&!p&&(m=Object.keys(f.lookup).reduce(((e,t)=>(0,i.Z)({},e,{[t]:!1})),{}));const g={};t.forEach((e=>{const{field:t}=e;g[t]=!0,m[t]=!0;let n=f.lookup[t];null==n?(n=(0,i.Z)({},((e,t)=>t&&e[t]?e[t]:e.__default__)(r,e.type),{field:t,hasBeenResized:!1}),f.all.push(t)):a&&f.all.push(t);let o=n.hasBeenResized;Qr.forEach((t=>{void 0!==e[t]&&(o=!0,-1===e[t]&&(e[t]=1/0))})),f.lookup[t]=(0,i.Z)({},n,{hide:null!=e.hide&&e.hide},e,{hasBeenResized:o})})),a&&!p&&Object.keys(f.lookup).forEach((e=>{m[e]||delete f.lookup[e]}));const h=(0,i.Z)({},f.lookup),b=e.current.unstable_applyPipeProcessors("hydrateColumns",f);let v={};if(l){let t=!1;const n=(0,i.Z)({},o);p?b.all.forEach((e=>{n[e]=!f.lookup[e].hide})):a&&Object.keys(n).forEach((e=>{b.lookup[e]||(delete n[e],t=!0)})),b.all.forEach((r=>{if(!g[r]&&h[r]===b.lookup[r])return;let l=o[r];if(void 0===l)if(p)l=!0;else{l=!!P(e.current.state).lookup[r]}const i=!b.lookup[r].hide;i!==l&&(t=!0,n[r]=i)})),v=t||p?n:o}else v=o;const C=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(0===o.length&&0===n.length)return e;const l={},a=[];for(let i=0;i!l[e]))],u=(0,i.Z)({},e.lookup);for(let c=0;c{t[e]=-1===n?1/0:n})),u[e]=t}return{all:s,lookup:u}})(b,n),w=(0,i.Z)({},C,{columnVisibilityModel:v});return eo(w,null!=(s=null==(u=(c=e.current).getRootDimensions)||null==(d=u.call(c))?void 0:d.viewportInnerSize.width)?s:0)},no=e=>t=>(0,i.Z)({},t,{columns:e});function ro({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let l=e;for(let i=n;i{var r,o,l,a,s,u,c;const d=!!t.columnVisibilityModel||!(null==(r=t.initialState)||null==(o=r.columns)||!o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:d};const p=Jr(t.columnTypes),f=to({apiRef:n,columnTypes:p,columnsToUpsert:t.columns,initialState:null==(l=t.initialState)?void 0:l.columns,shouldRegenColumnVisibilityModelFromColumns:!d,currentColumnVisibilityModel:null!=(a=null!=(s=t.columnVisibilityModel)?s:null==(u=t.initialState)||null==(c=u.columns)?void 0:c.columnVisibilityModel)?a:{},keepOnlyColumnsToUpsert:!0});return(0,i.Z)({},e,{columns:f})};var ao;!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(ao||(ao={}));const so=(e,t,n)=>{switch(e){case ao.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n),factor:.7};case ao.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n),factor:1.3};default:return{value:e,headerHeight:t,rowHeight:n,factor:1}}},uo=(e,t)=>(0,i.Z)({},e,{density:so(t.density,t.headerHeight,t.rowHeight)});const co=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],po=r.forwardRef((function(e,t){var n;const{field:o,id:l,value:s,hasFocus:u,tabIndex:d}=e,f=(0,a.Z)(e,co),m=$(),h=N(),b=(e=>{const{classes:t}=e;return(0,p.Z)({root:["checkboxInput"]},g.d,t)})({classes:h.classes}),v=r.useRef(null),C=r.useRef(),w=(0,c.Z)(v,t),y=m.current.getCellElement(l,o);r.useLayoutEffect((()=>{0===d&&y&&(y.tabIndex=-1)}),[y,d]),r.useLayoutEffect((()=>{if(u){var e;const t=null==(e=v.current)?void 0:e.querySelector("input");null==t||t.focus()}else C.current&&C.current.stop({})}),[u]);const x=r.useCallback((t=>{ur(t.key)&&t.stopPropagation(),hr(t.key)&&!t.shiftKey&&m.current.publishEvent("cellNavigationKeyDown",e,t)}),[m,e]),R=!h.isRowSelectable||h.isRowSelectable(m.current.getRowParams(l)),k=m.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,oe.jsx)(h.components.BaseCheckbox,(0,i.Z)({ref:w,tabIndex:d,checked:s,onChange:e=>{const t={value:e.target.checked,id:l};m.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:b.root,inputProps:{"aria-label":k},onKeyDown:x,disabled:!R,touchRippleRef:C},null==(n=h.componentsProps)?void 0:n.baseCheckbox,f))})),fo=r.memo(po),mo=e=>e.focus,go=S(mo,(e=>e.cell)),ho=S(mo,(e=>e.columnHeader)),bo=e=>e.tabIndex,vo=S(bo,(e=>e.cell)),Co=S(bo,(e=>e.columnHeader)),wo=e=>e.selection,yo=S(wo,(e=>e.length)),xo=S(wo,K,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),Ro=S(wo,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{}))),ko=e=>e.pagination,Zo=S(ko,(e=>e.page)),So=S(ko,(e=>e.pageSize)),Po=(S(ko,(e=>e.pageCount)),S(ko,q,Y,Pe,Te,((e,t,n,r,o)=>{const l=o.length,i=Math.min(e.pageSize*e.page,l-1),a=Math.min(i+e.pageSize-1,l-1);if(-1===i||-1===a)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:a};const s=o[i],u=a-i+1,c=r.findIndex((e=>e.id===s.id));let d=c,p=0;for(;d0)&&(d+=1),0===e&&(p+=1)}return{firstRowIndex:c,lastRowIndex:d-1}}))),Eo=S(Pe,Po,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Mo=S(Ee,Po,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Io=["field","colDef"],To=r.forwardRef((function(e,t){var n;const o=(0,a.Z)(e,Io),[,l]=r.useState(!1),s=$(),u=N(),c=(e=>{const{classes:t}=e;return(0,p.Z)({root:["checkboxInput"]},g.d,t)})({classes:u.classes}),d=j(s,Co),f=j(s,wo),m=j(s,Ee),h=j(s,Mo),b=r.useMemo((()=>"function"!==typeof u.isRowSelectable?f:f.filter((e=>!!s.current.getRow(e)&&u.isRowSelectable(s.current.getRowParams(e))))),[s,u.isRowSelectable,f]),v=r.useMemo((()=>(u.pagination&&u.checkboxSelectionVisibleOnly?h:m).reduce(((e,t)=>(e[t]=!0,e)),{})),[u.pagination,u.checkboxSelectionVisibleOnly,h,m]),C=r.useMemo((()=>b.filter((e=>v[e])).length),[b,v]),w=C>0&&C0,x=null!==d&&d.field===e.field?0:-1;r.useLayoutEffect((()=>{const t=s.current.getColumnHeaderElement(e.field);0===x&&t&&(t.tabIndex=-1)}),[x,s,e.field]);const R=r.useCallback((t=>{" "===t.key&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!y}),hr(t.key)&&!t.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",e,t)}),[s,e,y]),k=r.useCallback((()=>{l((e=>!e))}),[]);r.useEffect((()=>s.current.subscribeEvent("selectionChange",k)),[s,k]);const Z=s.current.getLocaleText(y?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,oe.jsx)(u.components.BaseCheckbox,(0,i.Z)({ref:t,indeterminate:w,checked:y,onChange:e=>{const t={value:e.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",t)},className:c.root,inputProps:{"aria-label":Z},tabIndex:x,onKeyDown:R},null==(n=u.componentsProps)?void 0:n.baseCheckbox,o))})),Fo="__check__",_o=(0,i.Z)({},lr,{field:Fo,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>void 0!==Ro(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>(0,oe.jsx)(To,(0,i.Z)({},e)),renderCell:e=>(0,oe.jsx)(fo,(0,i.Z)({},e))}),Oo=(e,t)=>{if("string"===typeof e){const n=e.replace(/"/g,'""');return[t,"\n","\r"].some((e=>n.includes(e)))?`"${n}"`:n}return e};R(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);function Do(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:l}=e,i=n.reduce(((e,n)=>`${e}${((e,t,n,r)=>t.map((t=>{const o=n(e,t.field);return Oo(o.formattedValue,r)})))(n,t,r,o).join(o)}\r\n`),"").trim();if(!l)return i;return`${`${t.filter((e=>e.field!==_o.field)).map((e=>Oo(e.headerName||e.field,o))).join(o)}\r\n`}${i}`.trim()}const Ho=({apiRef:e,options:t})=>{const n=I(e);if(t.fields)return t.fields.map((e=>n.find((t=>t.field===e)))).filter((e=>!!e));return(t.allColumns?n:F(e)).filter((e=>!e.disableExport))},Lo=({apiRef:e})=>{const t=Ie(e),n=e.current.getSelectedRows();return n.size>0?t.filter((e=>n.has(e))):t},jo=e=>{const t=$(),{hideMenu:n,options:r}=e;return(0,oe.jsx)(Wt.Z,{onClick:()=>{t.current.exportDataAsCsv(r),null==n||n()},children:t.current.getLocaleText("toolbarExportCSV")})},zo=e=>{const t=$(),{hideMenu:n,options:r}=e;return(0,oe.jsx)(Wt.Z,{onClick:()=>{t.current.exportDataAsPrint(r),null==n||n()},children:t.current.getLocaleText("toolbarExportPrint")})},$o=e=>{const t=ae(e,"useGridCsvExport"),n=r.useCallback(((n={})=>{var r,o;t.debug("Get data as CSV");return Do({columns:Ho({apiRef:e,options:n}),rowIds:(null!=(r=n.getRowsToExport)?r:Lo)({apiRef:e}),getCellParams:e.current.getCellParams,delimiterCharacter:n.delimiter||",",includeHeaders:null==(o=n.includeHeaders)||o})}),[t,e]),o=r.useCallback((e=>{t.debug("Export data as CSV");const r=n(e);!function(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=r,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",r],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[t,n]);Ye(e,{getDataAsCsv:n,exportDataAsCsv:o});const l=r.useCallback(((e,t)=>{var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[...e,{component:(0,oe.jsx)(jo,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);wt(e,"exportMenu",l)};var Vo=n(8038);const No=e=>e.rowsMeta,Ao="client",Bo="server";var Uo;!function(e){e.And="and",e.Or="or"}(Uo||(Uo={}));const Wo=()=>({items:[],linkOperator:Uo.And,quickFilterValues:[],quickFilterLogicOperator:Uo.And}),Ko=(e,t,n,o)=>{const l=r.useCallback((()=>{e.current.unstable_registerStrategyProcessor(t,n,o)}),[e,o,n,t]);Ct((()=>{l()}));const i=r.useRef(!0);r.useEffect((()=>{i.current?i.current=!1:l()}),[l])},Go=(e,t)=>{const n=(0,i.Z)({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operatorValue){const e=M(t)[n.columnField];n.operatorValue=e&&e.filterOperators[0].value}return n},qo=R(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Xo=R("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Yo=R(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),Qo=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(qo(),o=[e.items[0]]):o=e.items;const l=r&&o.some((e=>null==e.id)),a=o.some((e=>null==e.operatorValue));return l&&Xo(),a&&Yo(),a||l?(0,i.Z)({},e,{items:o.map((e=>Go(e,n)))}):e.items!==o?(0,i.Z)({},e,{items:o}):e},Jo=(e,t,n)=>r=>(0,i.Z)({},r,{filterModel:Qo(e,t,n)}),el=(e,t)=>{const n=((e,t)=>{const{items:n,linkOperator:r=Uo.And}=e,o=n.map((e=>{if(!e.columnField||!e.operatorValue)return null;const n=t.current.getColumn(e.columnField);if(!n)return null;let r;if(n.valueParser){var o;const t=n.valueParser;r=Array.isArray(e.value)?null==(o=e.value)?void 0:o.map((e=>t(e))):t(e.value)}else r=e.value;const l=(0,i.Z)({},e,{value:r}),a=n.filterOperators;if(null==a||!a.length)throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const s=a.find((e=>e.value===l.operatorValue));if(!s)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${l.operatorValue}'.`);const u=s.getApplyFilterFn(l,n);return"function"!==typeof u?null:{fn:e=>{const n=t.current.getCellParams(e,l.columnField);return u(n)},item:l}})).filter((e=>!!e));return 0===o.length?null:(e,t)=>{const n=t?o.filter((e=>t(e.item.columnField))):o;return r===Uo.And?n.every((t=>t.fn(e))):n.some((t=>t.fn(e)))}})(e,t),r=((e,t)=>{const{quickFilterValues:n=[],quickFilterLogicOperator:r=Uo.And}=e;if(0===n.length)return null;const o=E(t),l={};o.forEach((e=>{const r=t.current.getColumn(e),o=null==r?void 0:r.getApplyQuickFilterFn;o&&(l[e]=n.map((e=>o(e,r,t))))}));const i=n.filter(((e,t)=>Object.keys(l).some((e=>null!=l[e][t]))));return(e,n)=>{const o={},a=[];return Object.keys(l).forEach((r=>{n&&!n(r)||(o[r]=t.current.getCellParams(e,r),a.push(r))})),r===Uo.And?i.every(((e,t)=>a.some((e=>{var n,r;return null!=l[e][t]&&(null==(n=(r=l[e])[t])?void 0:n.call(r,o[e]))})))):i.some(((e,t)=>a.some((e=>{var n,r;return null!=l[e][t]&&(null==(n=(r=l[e])[t])?void 0:n.call(r,o[e]))}))))}})(e,t);return null==n&&null==r?null:null==n?r:null==r?n:(e,t)=>n(e,t)&&r(e,t)},tl=(e,t,n)=>{var r,o,l,a;const s=null!=(r=null!=(o=t.filterModel)?o:null==(l=t.initialState)||null==(a=l.filter)?void 0:a.filterModel)?r:Wo();return(0,i.Z)({},e,{filter:{filterModel:Qo(s,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},nl=(e,t)=>{let n,r;return t.pagination&&"client"===t.paginationMode?(r=Po(e),n=Eo(e)):(n=Pe(e),r=0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},rl=(e,t)=>{const n=nl(e,t);return r.useMemo((()=>({rows:n.rows,range:n.range})),[n.rows,n.range])},ol=e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),ll="__detail_panel_toggle__",il=e=>e?0:100,al=e=>t=>(0,i.Z)({},t,{pagination:(0,i.Z)({},t.pagination,{pageSize:e})}),sl=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,ul=e=>e.pageCount?(0,i.Z)({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,cl=e=>t=>(0,i.Z)({},t,{pagination:ul((0,i.Z)({},t.pagination,{page:e}))}),dl=(R(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),(e,t)=>{var n,r,o,l,a,s,u,c;let d;return d=null!=t.pageSize?t.pageSize:null!=(null==(n=t.initialState)||null==(r=n.pagination)?void 0:r.pageSize)?t.initialState.pagination.pageSize:il(t.autoPageSize),(0,i.Z)({},e,{pagination:{pageSize:d,page:null!=(o=null!=(l=t.page)?l:null==(a=t.initialState)||null==(s=a.pagination)?void 0:s.page)?o:0,pageCount:sl(null!=(u=t.rowCount)?u:0,d),rowCount:null!=(c=t.rowCount)?c:0}})}),pl=(e,t)=>{((e,t)=>{var n,o;const l=ae(e,"useGridPageSize"),a=j(e,te);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:So,changeEvent:"pageSizeChange"});const s=r.useCallback((t=>{t!==So(e)&&(l.debug(`Setting page size to ${t}`),e.current.setState(al(t)),e.current.forceUpdate())}),[e,l]);Ye(e,{setPageSize:s});const u=r.useCallback((n=>{var r,o;const l=So(e);return null!=t.pageSize||null!=(null==(r=t.initialState)||null==(o=r.pagination)?void 0:o.pageSize)||l!==il(t.autoPageSize)?(0,i.Z)({},n,{pagination:(0,i.Z)({},n.pagination,{pageSize:l})}):n}),[e,t.pageSize,null==(n=t.initialState)||null==(o=n.pagination)?void 0:o.pageSize,t.autoPageSize]),c=r.useCallback(((t,n)=>{var r;const o=null==(r=n.stateToRestore.pagination)?void 0:r.pageSize;return null!=o&&e.current.setState(al(o)),t}),[e]);wt(e,"exportState",u),wt(e,"restoreState",c);const d=r.useCallback((()=>{const n=e.current.getRootDimensions();if(!t.autoPageSize||!n)return;const r=Math.floor(n.viewportInnerSize.height/a);e.current.setPageSize(r)}),[e,t.autoPageSize,a]);rt(e,"viewportInnerSizeChange",d),r.useEffect((()=>{null==t.pageSize||t.autoPageSize||e.current.setPageSize(t.pageSize)}),[e,t.autoPageSize,t.pageSize]),r.useEffect((()=>{d()}),[d])})(e,t),((e,t)=>{var n,o;const l=ae(e,"useGridPage"),a=j(e,_e);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:Zo,changeEvent:"pageChange"});const s=r.useCallback((t=>{l.debug(`Setting page to ${t}`),e.current.setState(cl(t)),e.current.forceUpdate()}),[e,l]);Ye(e,{setPage:s});const u=r.useCallback((n=>{var r,o;const l=Zo(e);return null!=t.page||null!=(null==(r=t.initialState)||null==(o=r.pagination)?void 0:o.page)||0!==l?(0,i.Z)({},n,{pagination:(0,i.Z)({},n.pagination,{page:l})}):n}),[e,t.page,null==(n=t.initialState)||null==(o=n.pagination)?void 0:o.page]),c=r.useCallback(((t,n)=>{var r,o;const l=null!=(r=null==(o=n.stateToRestore.pagination)?void 0:o.page)?r:Zo(e);return e.current.setState(cl(l)),t}),[e]);wt(e,"exportState",u),wt(e,"restoreState",c),rt(e,"pageSizeChange",(t=>{e.current.setState((e=>{const n=sl(e.pagination.rowCount,t);return(0,i.Z)({},e,{pagination:ul((0,i.Z)({},e.pagination,{pageCount:n,page:e.pagination.page}))})})),e.current.forceUpdate()})),rt(e,"pageChange",(()=>e.current.scrollToIndexes({rowIndex:Zo(e)*So(e)}))),r.useEffect((()=>{}),[t.rowCount,t.paginationMode]),r.useEffect((()=>{e.current.setState((e=>{const n=void 0!==t.rowCount?t.rowCount:a,r=sl(n,e.pagination.pageSize),o=null==t.page?e.pagination.page:t.page;return(0,i.Z)({},e,{pagination:ul((0,i.Z)({},e.pagination,{page:o,rowCount:n,pageCount:r}))})})),e.current.forceUpdate()}),[a,t.rowCount,t.page,t.paginationMode,e])})(e,t)},fl=e=>e.preferencePanel,ml=(e,t)=>{var n,r;return(0,i.Z)({},e,{preferencePanel:null!=(n=null==(r=t.initialState)?void 0:r.preferencePanel)?n:{open:!1}})},gl=e=>e.editRows;function hl(e){return"function"===typeof e.then}const bl=(e,t)=>{var n;const o=ae(e,"useGridEditRows"),l=e=>(...n)=>{t.editMode===vr.Cell&&e(...n)},a=r.useCallback(((t,n,r)=>{e.current.getCellMode(t,n)!==r&&(o.debug(`Switching cell id: ${t} field: ${n} to mode: ${r}`),e.current.setState((o=>{const l=(0,i.Z)({},o.editRows);return l[t]=(0,i.Z)({},l[t]),r===Cr.Edit?l[t][n]={value:e.current.getCellValue(t,n)}:(delete l[t][n],Object.keys(l[t]).length||delete l[t]),(0,i.Z)({},o,{editRows:l})})),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(t,n)))}),[e,o]),s=r.useCallback(((t,n)=>{const r=gl(e.current.state);return r[t]&&r[t][n]?Cr.Edit:Cr.View}),[e]),u=r.useCallback(((n,r={})=>{var o;const{id:l,field:a}=n;e.current.unstable_runPendingEditCellValueMutation(l,a);const s=e.current.getEditRowsModel();if(!s[l]||!s[l][a])throw new Error(`MUI: Cell at id: ${l} and field: ${a} is not in edit mode.`);const u=s[l][a],c=e.current.getColumn(a),d=e.current.getRow(l);if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating){const e=s[l][a];if(e.isValidating||e.error)return!1}const p=(0,i.Z)({},n,{value:u.value});let f=!!u.error;if(!f&&"function"===typeof c.preProcessEditCellProps){const t=c.preProcessEditCellProps({id:l,row:d,props:u});if(hl(t))return t.then((t=>(e.current.unstable_setEditCellProps({id:l,field:a,props:t}),!t.error&&(e.current.publishEvent("cellEditCommit",p,r),!0))));e.current.unstable_setEditCellProps({id:l,field:a,props:t}),f=!!t.error}return!f&&(e.current.publishEvent("cellEditCommit",p,r),!0)}),[e,null==(n=t.experimentalFeatures)?void 0:n.preventCommitWhileValidating]),c=r.useCallback((t=>{const n=e.current.getColumn(t.field),r=e.current.getRow(t.id);return new Promise((o=>{let l={value:t.value};const a=e.current.getEditRowsModel()[t.id][t.field];if("function"!==typeof n.preProcessEditCellProps)return e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:l})),void o(!0);l=e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:(0,i.Z)({},a,{isValidating:!0})})),Promise.resolve(n.preProcessEditCellProps({id:t.id,row:r,props:(0,i.Z)({},l,{value:e.current.unstable_parseValue(t.id,t.field,t.value)})})).then((n=>{e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:(0,i.Z)({},n,{isValidating:!1})})),o(!n.error)}))}))}),[e]);Ye(e,{setCellMode:a,getCellMode:s,commitCellChange:u,unstable_setCellEditingEditCellValue:c});const d=r.useCallback((async(t,n)=>{const{id:r,field:o,cellMode:l,isEditable:i}=t;if(!i)return;const a=l===Cr.Edit,s=n.ctrlKey||n.metaKey||n.altKey;var u;if(a||(u=n.key,!(ar(u)||cr(u)||pr(u)))||s||" "===n.key&&n.shiftKey||e.current.publishEvent("cellEditStart",t,n),!a&&cr(n.key)&&(e.current.setEditCellValue({id:r,field:o,value:""}),e.current.commitCellChange({id:r,field:o},n),e.current.publishEvent("cellEditStop",t,n)),a&&gr(n.key)){const t={id:r,field:o};if(!(await e.current.commitCellChange(t,n)))return}a&&(e=>fr.indexOf(e)>-1)(n.key)&&e.current.publishEvent("cellEditStop",t,n)}),[e]),p=r.useCallback(((t,n)=>{t.isEditable&&e.current.publishEvent("cellEditStart",t,n)}),[e]),f=async(t,n)=>{t.cellMode!==Cr.View&&(await e.current.commitCellChange(t,n),e.current.publishEvent("cellEditStop",t,n))},m=(0,fe.Z)(((e,t)=>{f(e,t)})),g=(0,fe.Z)((()=>{const t=go(e);if(!t)return;const n=e.current.getCellParams(t.id,t.field);f(n,{})})),h=r.useCallback(((t,n)=>{t.isEditable&&(e.current.setCellMode(t.id,t.field,Cr.Edit),br(n)&&pr(n.key)&&e.current.unstable_setEditCellProps({id:t.id,field:t.field,props:{value:""}}))}),[e]),b=r.useCallback(((t,n)=>{e.current.setCellMode(t.id,t.field,Cr.View),br(n)&&(gr(n.key)?e.current.publishEvent("cellNavigationKeyDown",t,n):("Escape"===n.key||cr(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e]),v=r.useCallback((t=>{const{id:n,field:r}=t,l=e.current.getEditRowsModel(),{value:a}=l[n][r];o.debug(`Setting cell id: ${n} field: ${r} to value: ${null==a?void 0:a.toString()}`);const s=e.current.getRow(n);if(s){const n=e.current.getColumn(t.field);let o=(0,i.Z)({},s,{[r]:a});n.valueSetter&&(o=n.valueSetter({row:s,value:a})),e.current.updateRows([o])}}),[e,o]),C=r.useCallback((t=>{const n=e.current.getRow(t.id),r=e.current.getColumn(t.field),o=r.preProcessEditCellProps?r.preProcessEditCellProps({id:t.id,row:n,props:t.props}):t.props;hl(o)?o.then((n=>{e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:n}))})):e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:o}))}),[e]);rt(e,"cellKeyDown",l(d)),rt(e,"cellDoubleClick",l(p)),rt(e,"cellFocusOut",l(m)),rt(e,"columnHeaderDragStart",l(g)),rt(e,"cellEditStart",l(h)),rt(e,"cellEditStop",l(b)),rt(e,"cellEditCommit",l(v)),rt(e,"editCellPropsChange",l(C)),lt(e,"cellEditCommit",t.onCellEditCommit),lt(e,"cellEditStart",t.onCellEditStart),lt(e,"cellEditStop",t.onCellEditStop)},vl=e=>(0,i.Z)({},e,{editRows:{}});function Cl(e,t){var n;const o=ae(e,"useGridEditRows");bl(e,t),((e,t)=>{var n,o;const l=r.useRef(null),a=r.useRef(null),s=j(e,I),u=e=>(...n)=>{t.editMode===vr.Row&&e(...n)},c=r.useCallback(((t,n)=>{n!==e.current.getRowMode(t)&&(e.current.setState((r=>{const o=(0,i.Z)({},r.editRows);return n===wr.Edit?(o[t]={},s.forEach((n=>{const r=e.current.getCellParams(t,n.field);r.isEditable&&(o[t][n.field]={value:r.value})}))):delete o[t],(0,i.Z)({},r,{editRows:o})})),e.current.forceUpdate())}),[e,s]),d=r.useCallback((n=>t.editMode===vr.Cell?wr.View:gl(e.current.state)[n]?wr.Edit:wr.View),[e,t.editMode]),p=r.useCallback(((n,r={})=>{var o;if(t.editMode===vr.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(n);const l=e.current.getEditRowsModel()[n];if(!l)throw new Error(`MUI: Row at id: ${n} is not being edited.`);if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating&&!Object.keys(l).reduce(((e,t)=>e&&!l[t].isValidating&&!l[t].error),!0))return!1;if(Object.values(l).some((e=>!!e.error)))return!1;const i=Object.keys(l).filter((t=>"function"===typeof e.current.getColumn(t).preProcessEditCellProps));if(i.length>0){const t=e.current.getRow(n),o=i.map((async r=>{const o=e.current.getColumn(r),i=await Promise.resolve(o.preProcessEditCellProps({id:n,row:t,props:l[r]}));return e.current.unstable_setEditCellProps({id:n,field:r,props:i}),i.error}));return Promise.all(o).then((t=>!t.some((e=>!!e))&&(e.current.publishEvent("rowEditCommit",n,r),!0)))}return e.current.publishEvent("rowEditCommit",n,r),!0}),[e,t.editMode,null==(n=t.experimentalFeatures)?void 0:n.preventCommitWhileValidating]),f=r.useCallback((t=>{const n=e.current.getEditRowsModel()[t.id],r=e.current.getRow(t.id);let o=!0;return new Promise((l=>{Object.keys(n).forEach((async l=>{const a=e.current.getColumn(l);let s=l===t.field?{value:t.value}:n[l];s=e.current.unstable_setEditCellProps({id:t.id,field:l,props:(0,i.Z)({},s,{isValidating:!0})}),a.preProcessEditCellProps&&(s=await Promise.resolve(a.preProcessEditCellProps({id:t.id,row:r,props:(0,i.Z)({},s,{value:l===t.field?e.current.unstable_parseValue(t.id,l,t.value):s.value})}))),s.error&&(o=!1),e.current.unstable_setEditCellProps({id:t.id,field:l,props:(0,i.Z)({},s,{isValidating:!1})})})),l(o)}))}),[e]);Ye(e,{setRowMode:c,getRowMode:d,commitRowChange:p,unstable_setRowEditingEditCellValue:f});const m=r.useCallback((async(n,r)=>{const{cellMode:o,isEditable:l}=n;if(!l)return;const i=o===Cr.Edit,a=e.current.getRowParams(n.id);if(i)if("Enter"===r.key){var s;if(!(await e.current.commitRowChange(n.id))&&null!=(s=t.experimentalFeatures)&&s.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",a,r)}else"Escape"===r.key&&e.current.publishEvent("rowEditStop",a,r);else"Enter"===r.key&&e.current.publishEvent("rowEditStart",a,r)}),[e,null==(o=t.experimentalFeatures)?void 0:o.preventCommitWhileValidating]),g=r.useCallback(((t,n)=>{if(!t.isEditable)return;const r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStart",r,n)}),[e]),h=r.useCallback((t=>{const n=e.current.getRow(t.id),r=e.current.getEditRowsModel()[t.id];Object.keys(r).forEach((async o=>{const l=e.current.getColumn(o);if(l.preProcessEditCellProps){const i=o===t.field?t.props:r[o],a=await Promise.resolve(l.preProcessEditCellProps({id:t.id,row:n,props:i}));e.current.unstable_setEditCellProps({id:t.id,field:o,props:a})}else o===t.field&&e.current.unstable_setEditCellProps(t)}))}),[e]),b=r.useCallback((t=>{e.current.setRowMode(t.id,wr.Edit)}),[e]),v=r.useCallback(((t,n)=>{e.current.setRowMode(t.id,wr.View),"Enter"===n.key&&e.current.publishEvent("cellNavigationKeyDown",t,n)}),[e]),C=r.useCallback((t=>{const n=e.current.getEditRowsModel()[t];if(!n)throw new Error(`MUI: Row at id: ${t} is not being edited.`);const r=e.current.getRow(t);if(r){let t=(0,i.Z)({},r);Object.keys(n).forEach((r=>{const o=e.current.getColumn(r),l=n[r].value;o.valueSetter?t=o.valueSetter({row:t,value:l}):t[r]=l})),e.current.updateRows([t])}}),[e]),w=r.useCallback((e=>{a.current=e}),[]),y=async(t,n)=>{t.cellMode!==Cr.View&&(a.current=null,l.current=setTimeout((async()=>{var r;if((null==(r=a.current)?void 0:r.id)!==t.id){await e.current.commitRowChange(t.id,n);const r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStop",r,n)}})))},x=(0,fe.Z)(((e,t)=>{y(e,t)})),R=(0,fe.Z)((()=>{const t=go(e);if(!t)return;const n=e.current.getCellParams(t.id,t.field);y(n,{})}));rt(e,"cellKeyDown",u(m)),rt(e,"cellDoubleClick",u(g)),rt(e,"editCellPropsChange",u(h)),rt(e,"rowEditStart",u(b)),rt(e,"rowEditStop",u(v)),rt(e,"rowEditCommit",u(C)),rt(e,"cellFocusIn",u(w)),rt(e,"cellFocusOut",u(x)),rt(e,"columnHeaderDragStart",u(R)),lt(e,"rowEditCommit",t.onRowEditCommit),lt(e,"rowEditStart",t.onRowEditStart),lt(e,"rowEditStop",t.onRowEditStop)})(e,t);const l=r.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:gl,changeEvent:"editRowsModelChange"});const a=r.useCallback((e=>!e.rowNode.isAutoGenerated&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(e))),[t.isCellEditable]),s=r.useCallback(((e,t)=>{if(l.current[e])if(t){if(l.current[e][t]){const[,n]=l.current[e][t];n()}}else Object.keys(l.current[e]).forEach((t=>{const[,n]=l.current[e][t];n()}))}),[]),u=r.useCallback(((n,r={})=>{((e,t,n,r)=>{if(!n)return void r();if(l.current[e]||(l.current[e]={}),l.current[e][t]){const[n]=l.current[e][t];clearTimeout(n)}const o=setTimeout((()=>{r(),delete l.current[e][t]}),n);l.current[e][t]=[o,()=>{r();const[n]=l.current[e][t];clearTimeout(n),delete l.current[e][t]}]})(n.id,n.field,n.debounceMs,(()=>{var o;if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating)return"row"===t.editMode?e.current.unstable_setRowEditingEditCellValue(n):e.current.unstable_setCellEditingEditCellValue(n);const l={id:n.id,field:n.field,props:{value:n.value}};return e.current.publishEvent("editCellPropsChange",l,r)}))}),[e,t.editMode,null==(n=t.experimentalFeatures)?void 0:n.preventCommitWhileValidating]),c=r.useCallback(((t,n,r)=>{const o=e.current.getColumn(n);return o.valueParser?o.valueParser(r,e.current.getCellParams(t,n)):r}),[e]),d=r.useCallback((t=>{const{id:n,field:r,props:l}=t;o.debug(`Setting cell props on id: ${n} field: ${r}`),e.current.setState((e=>{const t=(0,i.Z)({},e.editRows);return t[n]=(0,i.Z)({},e.editRows[n]),t[n][r]=(0,i.Z)({},l,{value:c(n,r,l.value)}),(0,i.Z)({},e,{editRows:t})})),e.current.forceUpdate();return gl(e.current.state)[n][r]}),[e,o,c]),p=r.useCallback((t=>{gl(e.current.state)!==t&&(o.debug("Setting editRows model"),e.current.setState((e=>(0,i.Z)({},e,{editRows:t}))),e.current.forceUpdate())}),[e,o]),f=r.useCallback((()=>gl(e.current.state)),[e]),m=r.useCallback(((e,t)=>{const n=t.detail>1;e.isEditable&&e.cellMode===Cr.View&&n&&t.preventDefault()}),[]);rt(e,"cellMouseDown",m),lt(e,"editCellPropsChange",t.onEditCellPropsChange);Ye(e,{isCellEditable:a,setEditRowsModel:p,getEditRowsModel:f,setEditCellValue:u,unstable_setEditCellProps:d,unstable_parseValue:c,unstable_runPendingEditCellValueMutation:s}),r.useEffect((()=>{void 0!==t.editRowsModel&&e.current.setEditRowsModel(t.editRowsModel)}),[e,t.editRowsModel])}var wl,yl;!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(wl||(wl={})),function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(yl||(yl={}));const xl=["id","field"],Rl=["id","field"],kl=R(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error");var Zl,Sl;!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(Zl||(Zl={})),function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(Sl||(Sl={}));const Pl=["id"],El=["id"],Ml=R(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),Il=e=>(0,i.Z)({},e,{editRows:{}}),Tl=(e,t)=>{((e,t)=>{const[n,o]=r.useState({}),l=r.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:u,cellModesModel:c,onCellModesModelChange:d,signature:p}=t,f=e=>(...n)=>{t.editMode===vr.Cell&&e(...n)},m=r.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),g=r.useCallback(((t,n,r)=>{if(e.current.getCellMode(t,n)!==r)throw new Error(`MUI: The cell with id=${t} and field=${n} is not in ${r} mode.`)}),[e]),h=r.useCallback(((t,n)=>{if(!t.isEditable)return;if(t.cellMode===Cr.Edit)return;const r=(0,i.Z)({},t,{reason:wl.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)}),[e]),b=r.useCallback(((t,n)=>{if(t.cellMode===Cr.View)return;const r=(0,i.Z)({},t,{reason:yl.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)}),[e]),v=r.useCallback(((t,n)=>{if(t.cellMode===Cr.Edit){let r;if("Escape"===n.key?r=yl.escapeKeyDown:"Enter"===n.key?r=yl.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?yl.shiftTabKeyDown:yl.tabKeyDown,n.preventDefault()),r){const o=(0,i.Z)({},t,{reason:r});e.current.publishEvent("cellEditStop",o,n)}}else if(t.isEditable){let r;if(pr(n.key)){if(n.shiftKey||n.ctrlKey||n.metaKey||n.altKey)return;r=wl.printableKeyDown}else"Enter"===n.key?r=wl.enterKeyDown:"Delete"===n.key&&(r=wl.deleteKeyDown);if(r){const o=(0,i.Z)({},t,{reason:r});e.current.publishEvent("cellEditStart",o,n)}}}),[e]),C=r.useCallback((t=>{const{id:n,field:r,reason:o}=t,l={id:n,field:r};o!==wl.deleteKeyDown&&o!==wl.printableKeyDown||(l.deleteValue=!0),e.current.startCellEditMode(l)}),[e]),w=r.useCallback((t=>{const{id:n,field:r,reason:o}=t;let l;o===yl.enterKeyDown?l="below":o===yl.tabKeyDown?l="right":o===yl.shiftTabKeyDown&&(l="left");let i="escapeKeyDown"===o;gl(e.current.state)[n][r].isProcessingProps&&(i=!0),e.current.stopCellEditMode({id:n,field:r,ignoreModifications:i,cellToFocusAfter:l})}),[e]);rt(e,"cellDoubleClick",f(h)),rt(e,"cellFocusOut",f(b)),rt(e,"cellKeyDown",f(v)),rt(e,"cellEditStart",f(C)),rt(e,"cellEditStop",f(w)),lt(e,"cellEditStart",t.onCellEditStart),lt(e,"cellEditStop",t.onCellEditStop);const y=r.useCallback(((t,n)=>{const r=gl(e.current.state);return r[t]&&r[t][n]?Cr.Edit:Cr.View}),[e]),x=r.useCallback((n=>{const r=n!==t.cellModesModel;if(d&&r){const t=p===et.DataGridPro?{api:e.current}:{};d(n,t)}t.cellModesModel&&r||(o(n),e.current.publishEvent("cellModesModelChange",n))}),[e,d,t.cellModesModel,p]),R=r.useCallback(((e,t,r)=>{const o=(0,i.Z)({},n);if(null!==r)o[e]=(0,i.Z)({},o[e],{[t]:(0,i.Z)({},r)});else{const r=n[e],l=(0,a.Z)(r,[t].map(ut));o[e]=l,0===Object.keys(o[e]).length&&delete o[e]}x(o)}),[n,x]),k=r.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=(0,i.Z)({},e.editRows);return null!==r?o[t]=(0,i.Z)({},o[t],{[n]:(0,i.Z)({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),(0,i.Z)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),Z=r.useCallback((e=>{const{id:t,field:n}=e,r=(0,a.Z)(e,xl);m(t,n),g(t,n,Cr.View),R(t,n,(0,i.Z)({mode:Cr.Edit},r))}),[m,g,R]),S=r.useCallback((t=>{const{id:n,field:r,deleteValue:o}=t,l={value:o?"":e.current.getCellValue(n,r),error:!1,isProcessingProps:!1};k(n,r,l),e.current.setCellFocus(n,r)}),[e,k]),P=r.useCallback((e=>{const{id:t,field:n}=e,r=(0,a.Z)(e,Rl);g(t,n,Cr.Edit),R(t,n,(0,i.Z)({mode:Cr.View},r))}),[g,R]),E=r.useCallback((async t=>{const{id:n,field:r,ignoreModifications:o,cellToFocusAfter:i="none"}=t;g(n,r,Cr.Edit),e.current.unstable_runPendingEditCellValueMutation(n,r);const a=()=>{"none"!==i&&e.current.unstable_moveFocusToRelativeCell(n,r,i),k(n,r,null),R(n,r,null)};if(o)return void a();const c=gl(e.current.state),{error:d,isProcessingProps:p}=c[n][r];if(d||p)return void(l.current[n][r].mode=Cr.Edit);const f=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(n,r);if(s){const t=e=>{l.current[n][r].mode=Cr.Edit,u?u(e):kl()};try{const r=e.current.getRow(n);Promise.resolve(s(f,r)).then((t=>{e.current.updateRows([t]),a()})).catch(t)}catch(m){t(m)}}else e.current.updateRows([f]),a()}),[e,u,s,g,R,k]),M=r.useCallback((async t=>{const{id:n,field:r,value:o}=t;m(n,r),g(n,r,Cr.Edit);const l=e.current.getColumn(r),a=e.current.getRow(n);let s=o;l.valueParser&&(s=l.valueParser(o,e.current.getCellParams(n,r)));let u=gl(e.current.state),c=(0,i.Z)({},u[n][r],{value:s});if(l.preProcessEditCellProps){const e=o!==u[n][r].value;c=(0,i.Z)({},c,{isProcessingProps:!0}),k(n,r,c),c=await Promise.resolve(l.preProcessEditCellProps({id:n,row:a,props:c,hasChanged:e}))}return e.current.getCellMode(n,r)!==Cr.View&&(u=gl(e.current.state),c=(0,i.Z)({},c,{isProcessingProps:!1}),c.value=l.preProcessEditCellProps?u[n][r].value:s,k(n,r,c),u=gl(e.current.state),!u[n][r].error)}),[e,m,g,k]),I=r.useCallback(((t,n)=>{const r=e.current.getColumn(n),o=gl(e.current.state),{value:l}=o[t][n],a=e.current.getRow(t);return r.valueSetter?r.valueSetter({value:l,row:a}):(0,i.Z)({},a,{[n]:l})}),[e]);Ye(e,{getCellMode:y,startCellEditMode:Z,stopCellEditMode:P,unstable_setCellEditingEditCellValue:M,unstable_getRowWithUpdatedValuesFromCellEditing:I}),r.useEffect((()=>{c&&x(c)}),[c,x]),r.useEffect((()=>{const t=G(e),r=l.current;l.current=n,Object.entries(n).forEach((([e,n])=>{Object.entries(n).forEach((([n,o])=>{var l,a,s;const u=(null==(l=r[e])||null==(a=l[n])?void 0:a.mode)||Cr.View,c=null!=(s=t[e])?s:e;o.mode===Cr.Edit&&u===Cr.View?S((0,i.Z)({id:c,field:n},o)):o.mode===Cr.View&&u===Cr.Edit&&E((0,i.Z)({id:c,field:n},o))}))}))}),[e,n,S,E])})(e,t),((e,t)=>{const[n,o]=r.useState({}),l=r.useRef({}),s=r.useRef(null),u=r.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:f,signature:m}=t,g=e=>(...n)=>{t.editMode===vr.Row&&e(...n)},h=r.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),b=r.useCallback(((t,n)=>{if(e.current.getRowMode(t)!==n)throw new Error(`MUI: The row with id=${t} is not in ${n} mode.`)}),[e]),v=r.useCallback(((t,n)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===wr.Edit)return;const r=e.current.getRowParams(t.id),o=(0,i.Z)({},r,{field:t.field,reason:Zl.cellDoubleClick});e.current.publishEvent("rowEditStart",o,n)}),[e]),C=r.useCallback((e=>{u.current=e}),[]),w=r.useCallback(((t,n)=>{t.isEditable&&e.current.getRowMode(t.id)!==wr.View&&(u.current=null,s.current=setTimeout((()=>{var r;if(s.current=null,(null==(r=u.current)?void 0:r.id)!==t.id){if(!e.current.getRow(t.id))return;const r=e.current.getRowParams(t.id),o=(0,i.Z)({},r,{field:t.field,reason:Sl.rowFocusOut});e.current.publishEvent("rowEditStop",o,n)}})))}),[e]);r.useEffect((()=>()=>{clearTimeout(s.current)}),[]);const y=r.useCallback(((t,n)=>{if(t.cellMode===wr.Edit){let r;if("Escape"===n.key)r=Sl.escapeKeyDown;else if("Enter"===n.key)r=Sl.enterKeyDown;else if("Tab"===n.key){const o=E(e).filter((n=>e.current.isCellEditable(e.current.getCellParams(t.id,n))));n.shiftKey?t.field===o[0]&&(r=Sl.shiftTabKeyDown):t.field===o[o.length-1]&&(r=Sl.tabKeyDown),r&&n.preventDefault()}if(r){const o=e.current.getRowParams(t.id),l=(0,i.Z)({},o,{reason:r,field:t.field});e.current.publishEvent("rowEditStop",l,n)}}else if(t.isEditable){let r;if(pr(n.key)){if(n.shiftKey||n.ctrlKey||n.metaKey||n.altKey)return;r=Zl.printableKeyDown}else"Enter"===n.key?r=Zl.enterKeyDown:"Delete"===n.key&&(r=Zl.deleteKeyDown);if(r){const o=e.current.getRowParams(t.id),l=(0,i.Z)({},o,{field:t.field,reason:r});e.current.publishEvent("rowEditStart",l,n)}}}),[e]),x=r.useCallback((t=>{const{id:n,field:r,reason:o}=t,l={id:n,fieldToFocus:r};o!==Zl.deleteKeyDown&&o!==Zl.printableKeyDown||(l.deleteValue=!!r),e.current.startRowEditMode(l)}),[e]),R=r.useCallback((t=>{const{id:n,reason:r,field:o}=t;let l;e.current.unstable_runPendingEditCellValueMutation(n),r===Sl.enterKeyDown?l="below":r===Sl.tabKeyDown?l="right":r===Sl.shiftTabKeyDown&&(l="left");let i="escapeKeyDown"===r;const a=gl(e.current.state);i||(i=Object.values(a[n]).some((e=>e.isProcessingProps))),e.current.stopRowEditMode({id:n,ignoreModifications:i,field:o,cellToFocusAfter:l})}),[e]);rt(e,"cellDoubleClick",g(v)),rt(e,"cellFocusIn",g(C)),rt(e,"cellFocusOut",g(w)),rt(e,"cellKeyDown",g(y)),rt(e,"rowEditStart",g(x)),rt(e,"rowEditStop",g(R)),lt(e,"rowEditStart",t.onRowEditStart),lt(e,"rowEditStop",t.onRowEditStop);const k=r.useCallback((n=>{if(t.editMode===vr.Cell)return wr.View;const r=gl(e.current.state);return r[n]&&Object.keys(r[n]).length>0?wr.Edit:wr.View}),[e,t.editMode]),Z=r.useCallback((n=>{const r=n!==t.rowModesModel;if(f&&r){const t=m===et.DataGridPro?{api:e.current}:{};f(n,t)}t.rowModesModel&&r||(o(n),e.current.publishEvent("rowModesModelChange",n))}),[e,f,t.rowModesModel,m]),S=r.useCallback(((e,t)=>{const r=(0,i.Z)({},n);null!==t?r[e]=(0,i.Z)({},t):delete r[e],Z(r)}),[n,Z]),P=r.useCallback(((t,n)=>{e.current.setState((e=>{const r=(0,i.Z)({},e.editRows);return null!==n?r[t]=n:delete r[t],(0,i.Z)({},e,{editRows:r})})),e.current.forceUpdate()}),[e]),M=r.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=(0,i.Z)({},e.editRows);return null!==r?o[t]=(0,i.Z)({},o[t],{[n]:(0,i.Z)({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),(0,i.Z)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),I=r.useCallback((e=>{const{id:t}=e,n=(0,a.Z)(e,Pl);b(t,wr.View),S(t,(0,i.Z)({mode:wr.Edit},n))}),[b,S]),T=r.useCallback((t=>{const{id:n,fieldToFocus:r,deleteValue:o}=t,l=E(e).reduce(((t,l)=>{if(!e.current.getCellParams(n,l).isEditable)return t;const i=o&&r===l;return t[l]={value:i?"":e.current.getCellValue(n,l),error:!1,isProcessingProps:!1},t}),{});P(n,l),r&&e.current.setCellFocus(n,r)}),[e,P]),F=r.useCallback((e=>{const{id:t}=e,n=(0,a.Z)(e,El);b(t,wr.Edit),S(t,(0,i.Z)({mode:wr.View},n))}),[b,S]),_=r.useCallback((t=>{const{id:n,ignoreModifications:r,field:o,cellToFocusAfter:i="none"}=t;e.current.unstable_runPendingEditCellValueMutation(n);const a=()=>{"none"!==i&&o&&e.current.unstable_moveFocusToRelativeCell(n,o,i),P(n,null),S(n,null)};if(r)return void a();const s=gl(e.current.state),u=e.current.getRow(n);if(Object.values(s[n]).some((e=>e.isProcessingProps)))return void(l.current[n].mode=wr.Edit);if(Object.values(s[n]).some((e=>e.error)))return void(l.current[n].mode=wr.Edit);const p=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n);if(c){const t=e=>{l.current[n].mode=wr.Edit,d?d(e):Ml()};try{Promise.resolve(c(p,u)).then((t=>{e.current.updateRows([t]),a()})).catch(t)}catch(f){t(f)}}else e.current.updateRows([p]),a()}),[e,d,c,P,S]),O=r.useCallback((t=>{const{id:n,field:r,value:o}=t;h(n,r);const l=e.current.getColumn(r),s=e.current.getRow(n);let u=o;l.valueParser&&(u=l.valueParser(o,e.current.getCellParams(n,r)));let c=gl(e.current.state),d=(0,i.Z)({},c[n][r],{value:u});return l.preProcessEditCellProps||M(n,r,d),new Promise((t=>{const o=[];if(l.preProcessEditCellProps){const p=d.value!==c[n][r].value;d=(0,i.Z)({},d,{isProcessingProps:!0}),M(n,r,d);const f=c[n],m=(0,a.Z)(f,[r].map(ut)),g=Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:d,hasChanged:p,otherFieldsProps:m})).then((o=>{e.current.getRowMode(n)!==wr.View?(c=gl(e.current.state),(o=(0,i.Z)({},o,{isProcessingProps:!1})).value=l.preProcessEditCellProps?c[n][r].value:u,M(n,r,o)):t(!1)}));o.push(g)}Object.entries(c[n]).forEach((([l,u])=>{if(l===r)return;const d=e.current.getColumn(l);if(!d.preProcessEditCellProps)return;u=(0,i.Z)({},u,{isProcessingProps:!0}),M(n,l,u),c=gl(e.current.state);const p=c[n],f=(0,a.Z)(p,[l].map(ut)),m=Promise.resolve(d.preProcessEditCellProps({id:n,row:s,props:u,hasChanged:!1,otherFieldsProps:f})).then((r=>{e.current.getRowMode(n)!==wr.View?(r=(0,i.Z)({},r,{isProcessingProps:!1}),M(n,l,r)):t(!1)}));o.push(m)})),Promise.all(o).then((()=>{e.current.getRowMode(n)===wr.Edit?(c=gl(e.current.state),t(!c[n][r].error)):t(!1)}))}))}),[e,h,M]),D=r.useCallback((t=>{const n=gl(e.current.state),r=e.current.getRow(t);let o=(0,i.Z)({},r);return Object.entries(n[t]).forEach((([t,n])=>{const r=e.current.getColumn(t);r.valueSetter?o=r.valueSetter({value:n.value,row:o}):o[t]=n.value})),o}),[e]);Ye(e,{getRowMode:k,startRowEditMode:I,stopRowEditMode:F,unstable_setRowEditingEditCellValue:O,unstable_getRowWithUpdatedValuesFromRowEditing:D}),r.useEffect((()=>{p&&Z(p)}),[p,Z]),r.useEffect((()=>{const t=G(e),r=l.current;l.current=n,Object.entries(n).forEach((([e,n])=>{var o,l;const a=(null==(o=r[e])?void 0:o.mode)||wr.View,s=null!=(l=t[e])?l:e;n.mode===wr.Edit&&a===wr.View?T((0,i.Z)({id:s},n)):n.mode===wr.View&&a===wr.Edit&&_((0,i.Z)({id:s},n))}))}),[e,n,T,_])})(e,t);const n=r.useRef({}),{isCellEditable:o}=t,l=r.useCallback((e=>!e.rowNode.isAutoGenerated&&(!!e.colDef.editable&&(!!e.colDef.renderEditCell&&(!o||o(e))))),[o]);r.useEffect((()=>{const e=n.current;return()=>{Object.entries(e).forEach((([t,n])=>{Object.keys(n).forEach((n=>{const[r]=e[t][n];clearTimeout(r),delete e[t][n]}))}))}}),[]);const s=r.useCallback(((e,t)=>{if(n.current[e])if(t){if(n.current[e][t]){const[,r]=n.current[e][t];r()}}else Object.keys(n.current[e]).forEach((t=>{const[,r]=n.current[e][t];r()}))}),[]),u=r.useCallback((r=>{const{id:o,field:l,debounceMs:i}=r;return new Promise((a=>{((e,t,r,o)=>{if(!r)return void o();if(n.current[e]||(n.current[e]={}),n.current[e][t]){const[r]=n.current[e][t];clearTimeout(r)}const l=setTimeout((()=>{o(),delete n.current[e][t]}),r);n.current[e][t]=[l,()=>{const[r]=n.current[e][t];clearTimeout(r),o(),delete n.current[e][t]}]})(o,l,i,(async()=>{const n=t.editMode===vr.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(o,l)===Cr.Edit){const e=await n(r);a(e)}}))}))}),[e,t.editMode]),c=r.useCallback(((n,r)=>t.editMode===vr.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(n,r):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n)),[e,t.editMode]);Ye(e,{isCellEditable:l,setEditCellValue:u,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c})},Fl=["rowsBeforePartialUpdates"];const _l=(e,t,n)=>{const r=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(r,e,n),r},Ol=({rows:e,getRowId:t,loading:n})=>{const r={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let o=0;o{const o=e.current.unstable_caches.rows,l=(0,a.Z)(o,Fl),s=null!=n?n:0,u=e.current.unstable_applyStrategyProcessor("rowTreeCreation",(0,i.Z)({},l,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",u),d=1===c.treeDepth?c.ids.length:Object.values(c.tree).filter((e=>null==e.parent)).length;return(0,i.Z)({},c,{groupingResponseBeforeRowHydration:u,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,d)})},Hl=(e,t,n)=>{var r;const o=null==(r=e[t])?void 0:r.children;if(null==o)return[];const l=[];for(let i=0;i(n.current.unstable_caches.rows=Ol({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),(0,i.Z)({},e,{rows:Dl({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),jl=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let l=0;l({field:t,colDef:e.current.getColumn(t)})),[e]),n=r.useCallback(((...t)=>e.current.getCellValue(...t)),[e]),o=r.useCallback((t=>{const r=e.current.getRow(t);if(!r)throw new Error(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:r,getValue:n}}),[e,n]),l=r.useCallback(((t,r)=>{const o=e.current.getRow(t),l=e.current.getRowNode(t);if(!o||!l)throw new Error(`No row with id #${t} found`);const i=go(e),a=vo(e);return{id:t,field:r,row:o,rowNode:l,value:o[r],colDef:e.current.getColumn(r),cellMode:e.current.getCellMode(t,r),getValue:n,api:e.current,hasFocus:null!==i&&i.field===r&&i.id===t,tabIndex:a&&a.field===r&&a.id===t?0:-1}}),[e,n]),i=r.useCallback(((t,r)=>{const o=e.current.getColumn(r),l=e.current.getCellValue(t,r),i=e.current.getRow(t),a=e.current.getRowNode(t);if(!i||!a)throw new Error(`No row with id #${t} found`);const s=go(e),u=vo(e),c={id:t,field:r,row:i,rowNode:a,colDef:o,cellMode:e.current.getCellMode(t,r),getValue:n,hasFocus:null!==s&&s.field===r&&s.id===t,tabIndex:u&&u.field===r&&u.id===t?0:-1,value:l,formattedValue:l};return o.valueFormatter&&(c.formattedValue=o.valueFormatter({id:t,field:c.field,value:c.value,api:e.current})),c.isEditable=o&&e.current.isCellEditable(c),c}),[e,n]),a=r.useCallback(((t,n)=>{const r=e.current.getColumn(n);if(!r||!r.valueGetter){const r=e.current.getRow(t);if(!r)throw new Error(`No row with id #${t} found`);return r[n]}return r.valueGetter(l(t,n))}),[e,l]),s=r.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${$l(t)}"]`)}(e.current.rootElementRef.current,t):null),[e]),u=r.useCallback((t=>e.current.rootElementRef.current?Vl(e.current.rootElementRef.current,t):null),[e]),c=r.useCallback(((t,n)=>e.current.rootElementRef.current?function(e,{id:t,field:n}){const r=Vl(e,t);return r?r.querySelector(`.${g._.cell}[data-field="${$l(n)}"]`):null}(e.current.rootElementRef.current,{id:t,field:n}):null),[e]);Ye(e,{getCellValue:a,getCellParams:i,getCellElement:c,getRowParams:o,getRowElement:u,getColumnHeaderParams:t,getColumnHeaderElement:s})}const Al=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],Bl=(e,t)=>{var n;return(0,i.Z)({},e,{selection:null!=(n=Al(t.selectionModel))?n:[]})},Ul=(e,t)=>{const n=(e=>{const{classes:t}=e;return r.useMemo((()=>(0,p.Z)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},g.d,t)),[t])})({classes:t.classes}),o=r.useCallback((r=>{const o=(0,i.Z)({},_o,{cellClassName:n.cellCheckbox,headerClassName:n.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=null!=r.lookup.__check__;return l&&!a?(r.lookup.__check__=o,r.all=[Fo,...r.all]):!l&&a?(delete r.lookup.__check__,r.all=r.all.filter((e=>e!==Fo))):l&&a&&(r.lookup.__check__=(0,i.Z)({},o,r.lookup.__check__)),r}),[e,n,t.checkboxSelection]);wt(e,"hydrateColumns",o)},Wl=(e,t)=>{var n,r,o,l;const a=null!=(n=null!=(r=t.sortModel)?r:null==(o=t.initialState)||null==(l=o.sorting)?void 0:l.sortModel)?n:[];return(0,i.Z)({},e,{sorting:{sortModel:rn(a,t.disableMultipleColumnsSorting),sortedRows:[]}})};function Kl(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,l=o+r;return r>t?o:l-t>n?l-t:o(0,i.Z)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Xl=e=>{var t,n;const o=ft(void 0,e);Ul(o,e),(e=>{Ko(e,ct,"rowTreeCreation",jl)})(o),mt(Bl,o,e),mt(io,o,e),mt(Ll,o,e),mt(null!=(t=e.experimentalFeatures)&&t.newEditingApi?Il:vl,o,e),mt(ol,o,e),mt(Wl,o,e),mt(ml,o,e),mt(tl,o,e),mt(uo,o,e),mt(dl,o,e),mt(ql,o,e),mt(vt,o,e),((e,t)=>{const n=ae(e,"useGridKeyboardNavigation"),o=rl(e,t),l=r.useCallback(((t,r,o="left")=>{var l;const i=null==(l=Pe(e)[r])?void 0:l.id,a=e.current.unstable_getCellColSpanInfo(i,t);a&&a.spannedByColSpan&&("left"===o?t=a.leftVisibleCellIndex:"right"===o&&(t=a.rightVisibleCellIndex)),n.debug(`Navigating to cell row ${r}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:r});const s=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(i,s)}),[e,n]),i=r.useCallback(((t,r)=>{n.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,r)}),[e,n]),a=r.useCallback(((t,n)=>{const r=e.current.getRootDimensions();if(!o.range||!r)return;const a=e.current.unstable_getViewportPageSize(),s=Pe(e),u=t.field?e.current.getColumnIndex(t.field):0,c=s.findIndex((e=>e.id===t.id)),d=o.range.firstRowIndex,p=o.range.lastRowIndex,f=F(e).length-1;let m=!0;switch(n.key){case"ArrowDown":case"Enter":cd?l(u,c-1):i(u,n);break;case"ArrowRight":u0&&l(u-1,c);break;case"Tab":n.shiftKey&&u>0?l(u-1,c,"left"):!n.shiftKey&&u=d?l(u,e):i(u,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?l(0,d):l(0,c);break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?l(f,p):l(f,c);break;default:m=!1}m&&n.preventDefault()}),[e,o,l,i]),s=r.useCallback(((t,n)=>{var r,a,s,u;const c=n.currentTarget.querySelector(`.${g._.columnHeaderTitleContainerContent}`);if(c&&c.contains(n.target)&&t.field!==_o.field)return;if(!e.current.getRootDimensions())return;const d=e.current.unstable_getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,f=null!=(r=null==(a=o.range)?void 0:a.firstRowIndex)?r:null,m=null!=(s=null==(u=o.range)?void 0:u.lastRowIndex)?s:null,h=F(e).length-1;let b=!0;switch(n.key){case"ArrowDown":null!==f&&l(p,f);break;case"ArrowRight":p0&&i(p-1,n);break;case"PageDown":null!==f&&null!==m&&l(p,Math.min(f+d,m));break;case"Home":i(0,n);break;case"End":i(h,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:b=!1}b&&n.preventDefault()}),[e,o,l,i]),u=r.useCallback(((t,n)=>{if(!n.currentTarget.contains(n.target))return;const r=e.current.getCellParams(t.id,t.field);r.cellMode!==Cr.Edit&&hr(n.key)&&e.current.publishEvent("cellNavigationKeyDown",r,n)}),[e]);rt(e,"cellNavigationKeyDown",a),rt(e,"columnHeaderKeyDown",s),rt(e,"cellKeyDown",u)})(o,e),((e,t)=>{const n=ae(e,"useGridSelection"),o=r.useMemo((()=>Al(t.selectionModel,wo(e.current.state))),[e,t.selectionModel]),l=r.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:o,propOnChange:t.onSelectionModelChange,stateSelector:wo,changeEvent:"selectionChange"});const{checkboxSelection:a,disableMultipleSelection:s,disableSelectionOnClick:u,isRowSelectable:c,pagination:d,paginationMode:p}=t,f=!s||a,m=rl(e,t),g=r.useCallback((t=>{var n;let r=t;const o=null!=(n=l.current)?n:t,i=e.current.isRowSelected(t);if(i){const t=Ee(e),n=t.findIndex((e=>e===o)),l=t.findIndex((e=>e===r));if(n===l)return;r=n>l?t[l+1]:t[l-1]}l.current=t,e.current.selectRowRange({startId:o,endId:r},!i)}),[e]),h=r.useCallback((t=>{wo(e.current.state)!==t&&(n.debug("Setting selection model"),e.current.setState((e=>(0,i.Z)({},e,{selection:t}))),e.current.forceUpdate())}),[e,n]),b=r.useCallback((t=>wo(e.current.state).includes(t)),[e]),v=r.useCallback((()=>xo(e)),[e]),C=r.useCallback(((t,r=!0,o=!1)=>{if(!c||c(e.current.getRowParams(t)))if(l.current=t,o)n.debug(`Setting selection for row ${t}`),e.current.setSelectionModel(r?[t]:[]);else{n.debug(`Toggling selection for row ${t}`);const o=wo(e.current.state).filter((e=>e!==t));r&&o.push(t),(o.length<2||f)&&e.current.setSelectionModel(o)}}),[e,c,n,f]),w=r.useCallback(((t,r=!0,o=!1)=>{n.debug("Setting selection for several rows");const l=c?t.filter((t=>c(e.current.getRowParams(t)))):t;let a;if(o)a=r?l:[];else{const t=(0,i.Z)({},Ro(e));l.forEach((e=>{r?t[e]=e:delete t[e]})),a=Object.values(t)}(a.length<2||f)&&e.current.setSelectionModel(a)}),[e,c,n,f]),y=r.useCallback((({startId:t,endId:r},o=!0,l)=>{if(!e.current.getRow(t)||!e.current.getRow(r))return;n.debug(`Expanding selection from row ${t} to row ${r}`);const i=Ee(e),a=i.indexOf(t),s=i.indexOf(r),[u,c]=a>s?[s,a]:[a,s],d=i.slice(u,c+1);e.current.selectRows(d,o,l)}),[e,n]);Ye(e,{selectRow:C,selectRows:w,selectRowRange:y,setSelectionModel:h,getSelectedRows:v,isRowSelected:b});const x=r.useCallback((()=>{if(t.keepNonExistentRowsSelected)return;const n=wo(e.current.state),r=K(e),o=(0,i.Z)({},Ro(e));let l=!1;n.forEach((e=>{r[e]||(delete o[e],l=!0)})),l&&e.current.setSelectionModel(Object.values(o))}),[e,t.keepNonExistentRowsSelected]),R=r.useCallback(((t,n)=>{const r=n.metaKey||n.ctrlKey,o=!a&&!r&&!br(n),l=!f||o,i=e.current.isRowSelected(t);l?e.current.selectRow(t,!!o||!i,!0):e.current.selectRow(t,!i,!1)}),[e,f,a]),k=r.useCallback(((t,n)=>{if(!u&&t.field!==_o.field&&t.field!==ll){if(t.field&&e.current.getColumn(t.field).type===qr)return;n.shiftKey&&(f||a)?g(t.id):R(t.id,n)}}),[u,f,a,e,g,R]),Z=r.useCallback(((e,t)=>{var n;f&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[f]),S=r.useCallback(((t,n)=>{n.nativeEvent.shiftKey?g(t.id):e.current.selectRow(t.id,t.value)}),[e,g]),P=r.useCallback((n=>{const r=t.checkboxSelectionVisibleOnly&&t.pagination?Mo(e):Ee(e);e.current.selectRows(r,n.value)}),[e,t.checkboxSelectionVisibleOnly,t.pagination]),E=r.useCallback(((t,n)=>{if(e.current.getCellMode(t.id,t.field)!==Cr.Edit&&n.currentTarget.contains(n.target)){if(hr(n.key)&&n.shiftKey){const r=go(e);if(r&&r.id!==t.id){n.preventDefault();const o=e.current.isRowSelected(r.id);if(!f)return void e.current.selectRow(r.id,!o,!0);const l=e.current.getRowIndexRelativeToVisibleRows(r.id),i=e.current.getRowIndexRelativeToVisibleRows(t.id);let a,s;l>i?o?(a=i,s=l-1):(a=i,s=l):o?(a=l+1,s=i):(a=l,s=i);const u=m.rows.slice(a,s+1).map((e=>e.id));return void e.current.selectRows(u,!o)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void R(t.id,n);"a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),w(e.current.getAllRowIds(),!0))}}),[e,R,w,m.rows,f]);rt(e,"sortedRowsSet",x),rt(e,"cellClick",k),rt(e,"rowSelectionCheckboxChange",S),rt(e,"headerSelectionCheckboxChange",P),rt(e,"cellMouseDown",Z),rt(e,"cellKeyDown",E),r.useEffect((()=>{void 0!==o&&e.current.setSelectionModel(o)}),[e,o]);const M=null!=o;r.useEffect((()=>{if(M)return;const t=wo(e.current.state);if(c){const n=t.filter((t=>c(e.current.getRowParams(t))));n.length{const t=wo(e.current.state);if(!f&&t.length>1){const{rows:n}=nl(e,{pagination:d,paginationMode:p}),r=n.reduce(((e,{id:t})=>(e[t]=!0,e)),{}),o=t.find((t=>{let n=!0;return c&&(n=c(e.current.getRowParams(t))),n&&r[t]}));e.current.setSelectionModel(void 0!==o?[o]:[])}}),[e,f,a,s,c,d,p])})(o,e),function(e,t){var n;const o=ae(e,"useGridColumns"),l=r.useMemo((()=>Jr(t.columnTypes)),[t.columnTypes]),a=r.useRef(t.columns),s=r.useRef(l);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:T,changeEvent:"columnVisibilityModelChange"});const u=r.useCallback((t=>{o.debug("Updating columns state."),e.current.setState(no(t)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",t.all)}),[o,e]),c=r.useCallback((t=>M(e)[t]),[e]),d=r.useCallback((()=>I(e)),[e]),p=r.useCallback((()=>F(e)),[e]),f=r.useCallback((()=>L(e)),[e]),m=r.useCallback(((t,n=!0)=>(n?F(e):I(e)).findIndex((e=>e.field===t))),[e]),g=r.useCallback((t=>{const n=m(t);return _(e)[n]}),[e,m]),h=r.useCallback((t=>{T(e)!==t&&(e.current.setState((n=>(0,i.Z)({},n,{columns:to({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.forceUpdate())}),[e,l]),b=r.useCallback((t=>{const n=to({apiRef:e,columnTypes:l,columnsToUpsert:t,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});u(n)}),[e,u,l]),v=r.useCallback((t=>e.current.updateColumns([t])),[e]),C=r.useCallback(((t,n)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var r;const o=T(e);if(n!==(null==(r=o[t])||r)){const r=(0,i.Z)({},o,{[t]:n});e.current.setColumnVisibilityModel(r)}}else{const r=e.current.getColumn(t),o=(0,i.Z)({},r,{hide:!n});e.current.updateColumns([o]);const l={field:t,colDef:o,isVisible:n};e.current.publishEvent("columnVisibilityChange",l)}}),[e]),w=r.useCallback(((t,n)=>{const r=E(e),l=r.findIndex((e=>e===t));if(l===n)return;o.debug(`Moving column ${t} to index ${n}`);const a=[...r],s=a.splice(l,1)[0];a.splice(n,0,s),u((0,i.Z)({},P(e.current.state),{all:a}));const c={field:t,element:e.current.getColumnHeaderElement(t),colDef:e.current.getColumn(t),targetIndex:n,oldIndex:l};e.current.publishEvent("columnOrderChange",c)}),[e,o,u]),y=r.useCallback(((t,n)=>{o.debug(`Updating column ${t} width to ${n}`);const r=e.current.getColumn(t),l=(0,i.Z)({},r,{width:n});e.current.updateColumns([l]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:l,width:n})}),[e,o]);Ye(e,{getColumn:c,getAllColumns:d,getColumnIndex:m,getColumnPosition:g,getVisibleColumns:p,getColumnsMeta:f,updateColumn:v,updateColumns:b,setColumnVisibilityModel:h,setColumnVisibility:C,setColumnIndex:w,setColumnWidth:y});const x=r.useCallback((t=>{const n={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){const t=T(e);Object.values(t).some((e=>!1===e))&&(n.columnVisibilityModel=t)}n.orderedFields=E(e);const r=I(e),o={};return r.forEach((e=>{if(e.hasBeenResized){const t={};Qr.forEach((n=>{let r=e[n];r===1/0&&(r=-1),t[n]=r})),o[e.field]=t}})),Object.keys(o).length>0&&(n.dimensions=o),(0,i.Z)({},t,{columns:n})}),[e]),R=r.useCallback(((t,n)=>{var r;const o=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?null==(r=n.stateToRestore.columns)?void 0:r.columnVisibilityModel:void 0,i=n.stateToRestore.columns;if(null==o&&null==i)return t;const a=to({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:i,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:o,keepOnlyColumnsToUpsert:!1});return e.current.setState(no(a)),null!=i&&e.current.publishEvent("columnsChange",a.all),t}),[e,l]),k=r.useCallback(((e,n)=>{if(n===lo.columns){var r;const e=t.components.ColumnsPanel;return(0,oe.jsx)(e,(0,i.Z)({},null==(r=t.componentsProps)?void 0:r.columnsPanel))}return e}),[t.components.ColumnsPanel,null==(n=t.componentsProps)?void 0:n.columnsPanel]);wt(e,"exportState",x),wt(e,"restoreState",R),wt(e,"preferencePanel",k);const Z=r.useRef(null);rt(e,"viewportInnerSizeChange",(t=>{Z.current!==t.width&&(Z.current=t.width,u(eo(P(e.current.state),t.width)))})),lt(e,"columnVisibilityChange",t.onColumnVisibilityChange);const S=r.useCallback((()=>{o.info("Columns pipe processing have changed, regenerating the columns");const t=to({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});u(t)}),[e,o,u,l]);yt(e,"hydrateColumns",S);const O=r.useRef(!0);r.useEffect((()=>{if(O.current)return void(O.current=!1);if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&s.current===l)return;const n=to({apiRef:e,columnTypes:l,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,s.current=l,u(n)}),[o,e,u,t.columns,l]),r.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,o,t.columnVisibilityModel])}(o,e),((e,t)=>{const n=ae(e,"useGridRows"),o=rl(e,t),l=r.useRef(Date.now()),a=r.useRef(null),s=r.useCallback((t=>{var n;return null!=(n=K(e)[t])?n:null}),[e]),u=r.useMemo((()=>o.rows.reduce(((e,{id:t},n)=>(e[t]=n,e)),{})),[o.rows]),c=r.useCallback(((n,r)=>{const o=()=>{a.current=null,l.current=Date.now(),e.current.setState((n=>(0,i.Z)({},n,{rows:Dl({apiRef:e,previousTree:q(e),rowCountProp:t.rowCount,loadingProp:t.loading})}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(a.current&&(clearTimeout(a.current),a.current=null),e.current.unstable_caches.rows=n,!r)return void o();const s=t.throttleRowsMs-(Date.now()-l.current);s>0?a.current=setTimeout(o,s):o()}),[t.throttleRowsMs,t.rowCount,t.loading,e]),d=r.useCallback((e=>{n.debug(`Updating all rows, new length ${e.length}`),c(Ol({rows:e,getRowId:t.getRowId,loading:t.loading}),!0)}),[n,t.getRowId,t.loading,c]),p=r.useCallback((n=>{if(t.signature===et.DataGrid&&n.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n"));const r=new Map;n.forEach((e=>{const n=_l(e,t.getRowId,"A row was provided without id when calling updateRows():");r.has(n)?r.set(n,(0,i.Z)({},r.get(n),e)):r.set(n,e)}));const o=[],l=e.current.unstable_caches.rows,a={rowsBeforePartialUpdates:l.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:l.loadingPropBeforePartialUpdates,idRowsLookup:(0,i.Z)({},l.idRowsLookup),idToIdLookup:(0,i.Z)({},l.idToIdLookup),ids:[...l.ids]};r.forEach(((t,n)=>"delete"===t._action?(delete a.idRowsLookup[n],delete a.idToIdLookup[n],void o.push(n)):e.current.getRow(n)?void(a.idRowsLookup[n]=(0,i.Z)({},e.current.getRow(n),t)):(a.idRowsLookup[n]=t,a.idToIdLookup[n]=n,void a.ids.push(n)))),o.length>0&&(a.ids=a.ids.filter((e=>!o.includes(e)))),c(a,!0)}),[t.signature,t.getRowId,c,e]),f=r.useCallback((()=>{const t=Q(e),n=K(e);return new Map(t.map((e=>[e,n[e]])))}),[e]),m=r.useCallback((()=>B(e)),[e]),g=r.useCallback((()=>Q(e)),[e]),h=r.useCallback((e=>u[e]),[u]),b=r.useCallback(((t,n)=>{const r=e.current.getRowNode(t);if(!r)throw new Error(`MUI: No row with id #${t} found`);const o=(0,i.Z)({},r,{childrenExpanded:n});e.current.setState((e=>(0,i.Z)({},e,{rows:(0,i.Z)({},e.rows,{tree:(0,i.Z)({},e.rows.tree,{[t]:o})})}))),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",o)}),[e]),v=r.useCallback((t=>{var n;return null!=(n=q(e)[t])?n:null}),[e]),C=r.useCallback((({skipAutoGeneratedRows:t=!0,groupId:n,applySorting:r,applyFiltering:o})=>{const l=q(e);let i;if(r){const r=l[n];if(!r)return[];const o=Ce(e);i=[];for(let e=o.findIndex((e=>e===n))+1;er.depth;e+=1){const n=o[e],r=l[n];t&&r.isAutoGenerated||i.push(n)}}else i=Hl(l,n,t);if(o){const t=Se(e);i=i.filter((e=>!1!==t[e]))}return i}),[e]),w={getRow:s,getRowModels:f,getRowsCount:m,getAllRowIds:g,setRows:d,setRowIndex:r.useCallback(((t,r)=>{const o=Q(e),l=o.findIndex((e=>e===t));if(-1===l||l===r)return;n.debug(`Moving row ${t} to index ${r}`);const a=[...o];a.splice(r,0,a.splice(l,1)[0]),e.current.setState((e=>(0,i.Z)({},e,{rows:(0,i.Z)({},e.rows,{ids:a})}))),e.current.applySorting()}),[e,n]),updateRows:p,setRowChildrenExpansion:b,getRowNode:v,getRowIndexRelativeToVisibleRows:h,getRowGroupChildren:C},y=r.useCallback((()=>{let r;n.info("Row grouping pre-processing have changed, regenerating the row tree"),r=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?e.current.unstable_caches.rows:Ol({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),c(r,!1)}),[n,e,t.rows,t.getRowId,t.loading,c]),x=r.useCallback((e=>{"rowTreeCreation"===e&&y()}),[y]),R=r.useCallback((()=>{e.current.unstable_getActiveStrategy("rowTree")!==X(e)&&y()}),[e,y]);rt(e,"activeStrategyProcessorChange",x),rt(e,"strategyAvailabilityChange",R);const k=r.useCallback((()=>{e.current.setState((t=>(0,i.Z)({},t,{rows:(0,i.Z)({},t.rows,e.current.unstable_applyPipeProcessors("hydrateRows",t.rows.groupingResponseBeforeRowHydration))}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e]);yt(e,"hydrateRows",k),Ye(e,w),r.useEffect((()=>()=>{null!==a.current&&clearTimeout(a.current)}),[]);const Z=r.useRef(!0);r.useEffect((()=>{if(Z.current)return void(Z.current=!1);const r=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,o=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading;r?o||(e.current.setState((e=>(0,i.Z)({},e,{rows:(0,i.Z)({},e.rows,{loading:t.loading})}))),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()):(n.debug(`Updating all rows, new length ${t.rows.length}`),c(Ol({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),!1))}),[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])})(o,e),Nl(o),(e=>{const t=r.useRef({}),n=r.useCallback(((e,n,r)=>{const o=t.current;o[e]||(o[e]={}),o[e][n]=r}),[]),o=r.useCallback(((e,n)=>{var r;return null==(r=t.current[e])?void 0:r[n]}),[]),l=r.useCallback((t=>{const{columnIndex:r,rowId:o,minFirstColumnIndex:l,maxLastColumnIndex:i}=t,a=e.current.getVisibleColumns(),s=a.length,u=a[r],c="function"===typeof u.colSpan?u.colSpan(e.current.getCellParams(o,u.field)):u.colSpan;if(!c||1===c)return n(o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let d=u.computedWidth;for(let e=1;e=l&&t{for(let r=t;r1&&(r+=o.colSpan-1)}}),[l]);Ye(e,{unstable_getCellColSpanInfo:o,unstable_calculateColSpan:i});const a=r.useCallback((()=>{t.current={}}),[]);rt(e,"columnOrderChange",a)})(o);return(null!=(n=e.experimentalFeatures)&&n.newEditingApi?Tl:Cl)(o,e),((e,t)=>{const n=ae(e,"useGridFocus"),o=r.useRef(null),l=r.useCallback(((t,r)=>{const o=go(e);(null==o?void 0:o.id)===t&&(null==o?void 0:o.field)===r||(e.current.setState((e=>(n.debug(`Focusing on cell with id=${t} and field=${r}`),(0,i.Z)({},e,{tabIndex:{cell:{id:t,field:r},columnHeader:null},focus:{cell:{id:t,field:r},columnHeader:null}})))),e.current.forceUpdate(),e.current.getRow(t)&&e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,r)))}),[e,n]),a=r.useCallback(((t,r={})=>{const o=go(e);o&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(o.id,o.field),r),e.current.setState((e=>(n.debug(`Focusing on column header with colIndex=${t}`),(0,i.Z)({},e,{tabIndex:{columnHeader:{field:t},cell:null},focus:{columnHeader:{field:t},cell:null}})))),e.current.forceUpdate()}),[e,n]),s=r.useCallback(((n,r,o)=>{let l=e.current.getColumnIndex(r),i=e.current.getRowIndexRelativeToVisibleRows(n);const a=F(e);"right"===o?l+=1:"left"===o?l-=1:i+=1;const s=nl(e,{pagination:t.pagination,paginationMode:t.paginationMode});l>=a.length?(i+=1,i=0&&(l=a.length-1)),i=Be(i,0,s.rows.length-1),l=Be(l,0,a.length-1);const u=s.rows[i],c=a[l];e.current.setCellFocus(u.id,c.field)}),[e,t.pagination,t.paginationMode]),u=r.useCallback((({id:t,field:n})=>{e.current.setCellFocus(t,n)}),[e]),c=r.useCallback(((t,n)=>{"Enter"===n.key||"Tab"===n.key||hr(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),d=r.useCallback((({field:t},n)=>{n.target===n.currentTarget&&e.current.setColumnHeaderFocus(t,n)}),[e]),p=r.useCallback((()=>{n.debug("Clearing focus"),e.current.setState((e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null}})))}),[n,e]),f=r.useCallback((e=>{o.current=e}),[]),m=r.useCallback((t=>{const n=o.current;o.current=null;const r=go(e);if(!r)return void(n&&e.current.setCellFocus(n.id,n.field));if((null==n?void 0:n.id)===r.id&&(null==n?void 0:n.field)===r.field)return;const l=e.current.getCellElement(r.id,r.field);null!=l&&l.contains(t.target)||e.current.getRow(r.id)&&(e.current.publishEvent("cellFocusOut",e.current.getCellParams(r.id,r.field),t),n?e.current.setCellFocus(n.id,n.field):(e.current.setState((e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null}}))),e.current.forceUpdate()))}),[e]),g=r.useCallback((t=>{if("view"===t.cellMode)return;const n=go(e);(null==n?void 0:n.id)===t.id&&(null==n?void 0:n.field)===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),h=r.useCallback((()=>{const t=go(e);t&&!e.current.getRow(t.id)&&e.current.setState((e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null}})))}),[e]);Ye(e,{setCellFocus:l,setColumnHeaderFocus:a,unstable_moveFocusToRelativeCell:s}),r.useEffect((()=>{const t=(0,Vo.Z)(e.current.rootElementRef.current);return t.addEventListener("click",m),()=>{t.removeEventListener("click",m)}}),[e,m]),rt(e,"columnHeaderBlur",p),rt(e,"cellDoubleClick",u),rt(e,"cellMouseUp",f),rt(e,"cellKeyDown",c),rt(e,"cellModeChange",g),rt(e,"columnHeaderFocus",d),rt(e,"rowsSet",h)})(o,e),(e=>{const t=ae(e,"useGridPreferencesPanel"),n=r.useRef(),o=r.useRef(),l=r.useCallback((()=>{t.debug("Hiding Preferences Panel");const n=fl(e.current.state);n.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:n.openedPanelValue}),e.current.setState((e=>(0,i.Z)({},e,{preferencePanel:{open:!1}}))),e.current.forceUpdate()}),[e,t]),a=r.useCallback((()=>{o.current=setTimeout((()=>clearTimeout(n.current)),0)}),[]),s=r.useCallback((()=>{n.current=setTimeout(l,100)}),[l]),u=r.useCallback((n=>{t.debug("Opening Preferences Panel"),a(),e.current.setState((e=>(0,i.Z)({},e,{preferencePanel:(0,i.Z)({},e.preferencePanel,{open:!0,openedPanelValue:n})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:n}),e.current.forceUpdate()}),[t,a,e]);Ye(e,{showPreferences:u,hidePreferences:s});const c=r.useCallback((t=>{const n=fl(e.current.state);return n.open||n.openedPanelValue?(0,i.Z)({},t,{preferencePanel:n}):t}),[e]),d=r.useCallback(((t,n)=>{const r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((e=>(0,i.Z)({},e,{preferencePanel:r}))),t}),[e]);wt(e,"exportState",c),wt(e,"restoreState",d),r.useEffect((()=>()=>{clearTimeout(n.current),clearTimeout(o.current)}),[])})(o),((e,t)=>{var n;const o=ae(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:ke,changeEvent:"filterModelChange"});const l=r.useCallback((()=>{e.current.setState((n=>{const r=ke(n,e.current.instanceId),o=t.filterMode===Ao?el(r,e):null,l=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:o});return(0,i.Z)({},n,{filter:(0,i.Z)({},n.filter,l)})})),e.current.publishEvent("filteredRowsSet")}),[t.filterMode,e]),a=r.useCallback((()=>{l(),e.current.forceUpdate()}),[e,l]),s=r.useCallback((t=>{const n=ke(e),r=[...n.items],o=r.findIndex((e=>e.id===t.id));-1===o?r.push(t):r[o]=t,e.current.setFilterModel((0,i.Z)({},n,{items:r}),"upsertFilterItem")}),[e]),u=r.useCallback((t=>{const n=ke(e),r=[...n.items];t.forEach((e=>{const n=t.findIndex((t=>t.id===e.id));-1===n?r.push(e):r[n]=e})),e.current.setFilterModel((0,i.Z)({},n,{items:t}),"upsertFilterItems")}),[e]),c=r.useCallback((t=>{const n=ke(e),r=n.items.filter((e=>e.id!==t.id));r.length!==n.items.length&&e.current.setFilterModel((0,i.Z)({},n,{items:r}),"deleteFilterItem")}),[e]),d=r.useCallback((n=>{if(o.debug("Displaying filter panel"),n){const r=ke(e),o=r.items.filter((e=>void 0!==e.value));let l;l=o.find((e=>e.columnField===n))?o:t.disableMultipleColumnsFiltering?[Go({columnField:n},e)]:[...o,Go({columnField:n},e)],e.current.setFilterModel((0,i.Z)({},r,{items:l}))}e.current.showPreferences(lo.filters)}),[e,o,t.disableMultipleColumnsFiltering]),p=r.useCallback((()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,o]),f=r.useCallback((t=>{const n=ke(e);n.linkOperator!==t&&e.current.setFilterModel((0,i.Z)({},n,{linkOperator:t}),"changeLogicOperator")}),[e]),m=r.useCallback((t=>{const n=ke(e);Ue(n.quickFilterValues,t)||e.current.setFilterModel((0,i.Z)({},n,{quickFilterValues:[...t]}))}),[e]),g=r.useCallback(((n,r)=>{ke(e)!==n&&(o.debug("Setting filter model"),e.current.unstable_updateControlState("filter",Jo(n,t.disableMultipleColumnsFiltering,e),r),e.current.unstable_applyFilters())}),[e,o,t.disableMultipleColumnsFiltering]),h=r.useCallback((()=>{const t=Pe(e);return new Map(t.map((e=>[e.id,e.model])))}),[e]);Ye(e,{setFilterLinkOperator:f,unstable_applyFilters:a,deleteFilterItem:c,upsertFilterItem:s,upsertFilterItems:u,setFilterModel:g,showFilterPanel:d,hideFilterPanel:p,getVisibleRowModels:h,setQuickFilterValues:m});const b=r.useCallback((t=>{const n=ke(e);return 0===n.items.length&&n.linkOperator===Wo().linkOperator?t:(0,i.Z)({},t,{filter:{filterModel:n}})}),[e]),v=r.useCallback(((n,r)=>{var o;const l=null==(o=r.stateToRestore.filter)?void 0:o.filterModel;return null==l?n:(e.current.unstable_updateControlState("filter",Jo(l,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,i.Z)({},n,{callbacks:[...n.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),C=r.useCallback(((e,n)=>{if(n===lo.filters){var r;const e=t.components.FilterPanel;return(0,oe.jsx)(e,(0,i.Z)({},null==(r=t.componentsProps)?void 0:r.filterPanel))}return e}),[t.components.FilterPanel,null==(n=t.componentsProps)?void 0:n.filterPanel]),w=r.useCallback((n=>{if(t.filterMode===Ao&&n.isRowMatchingFilters){const t=Q(e),r={};for(let e=0;e{o.debug("onColUpdated - GridColumns changed, applying filters");const t=ke(e),n=H(e),r=t.items.filter((e=>e.columnField&&n[e.columnField]));r.length{"filtering"===t&&e.current.unstable_applyFilters()}),[e]);rt(e,"rowsSet",l),rt(e,"rowExpansionChange",e.current.unstable_applyFilters),rt(e,"columnsChange",y),rt(e,"activeStrategyProcessorChange",x),Ct((()=>{e.current.unstable_applyFilters()})),r.useEffect((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,o,t.filterModel])})(o,e),((e,t)=>{const n=ae(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ye,changeEvent:"sortModelChange"});const o=r.useCallback(((t,n)=>{const r=ye(e),o=r.findIndex((e=>e.field===t));let l=[...r];return o>-1?n?l.splice(o,1,n):l.splice(o,1):l=[...r,n],l}),[e]),l=r.useCallback(((n,r)=>{var o;const l=ye(e).find((e=>e.field===n.field));if(l){var a;const e=void 0===r?ln(null!=(a=n.sortingOrder)?a:t.sortingOrder,l.sort):r;return null==e?void 0:(0,i.Z)({},l,{sort:e})}return{field:n.field,sort:void 0===r?ln(null!=(o=n.sortingOrder)?o:t.sortingOrder):r}}),[e,t.sortingOrder]),a=r.useCallback((()=>{e.current.setState((r=>{if(t.sortingMode===Bo)return n.debug("Skipping sorting rows as sortingMode = server"),(0,i.Z)({},r,{sorting:(0,i.Z)({},r.sorting,{sortedRows:Q(r,e.current.instanceId)})});const o=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);return n?{getSortCellParams:e=>({id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:"desc"===e.sort?(...e)=>-1*n.sortComparator(...e):n.sortComparator}:null})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({value:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return r=n,o=e.params,l=t.params,r.reduce(((e,t,n)=>{if(0!==e)return e;const r=o[n],i=l[n];return t.comparator(r.value,i.value,r,i)}),0);var r,o,l})).map((e=>e.value.id))})(ye(r,e.current.instanceId),e),l=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:o});return(0,i.Z)({},r,{sorting:(0,i.Z)({},r.sorting,{sortedRows:l})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,n,t.sortingMode]),s=r.useCallback((r=>{ye(e)!==r&&(n.debug("Setting sort model"),e.current.setState(on(r,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,n,t.disableMultipleColumnsSorting]),u=r.useCallback(((n,r,i)=>{if(!n.sortable)return;const a=l(n,r);let s;s=!i||t.disableMultipleColumnsSorting?a?[a]:[]:o(n.field,a),e.current.setSortModel(s)}),[e,o,l,t.disableMultipleColumnsSorting]),c=r.useCallback((()=>ye(e)),[e]),d=r.useCallback((()=>we(e).map((e=>e.model))),[e]),p=r.useCallback((()=>Ce(e)),[e]),f=r.useCallback((t=>e.current.getSortedRowIds().indexOf(t)),[e]),m=r.useCallback((t=>e.current.getSortedRowIds()[t]),[e]);Ye(e,{getSortModel:c,getSortedRows:d,getSortedRowIds:p,getRowIndex:f,getRowIdFromRowIndex:m,setSortModel:s,sortColumn:u,applySorting:a});const g=r.useCallback((t=>{const n=ye(e);return 0===n.length?t:(0,i.Z)({},t,{sorting:{sortModel:n}})}),[e]),h=r.useCallback(((n,r)=>{var o;const l=null==(o=r.stateToRestore.sorting)?void 0:o.sortModel;return null==l?n:(e.current.setState(on(l,t.disableMultipleColumnsSorting)),(0,i.Z)({},n,{callbacks:[...n.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),b=r.useCallback((t=>{if(!t.sortRowList)return Q(e);const n=q(e);return t.sortRowList(Object.values(n))}),[e]);wt(e,"exportState",g),wt(e,"restoreState",h),Ko(e,ct,"sorting",b);const v=r.useCallback((({colDef:e},t)=>{const n=t.shiftKey||t.metaKey||t.ctrlKey;u(e,void 0,n)}),[u]),C=r.useCallback((({colDef:e},t)=>{!ar(t.key)||t.ctrlKey||t.metaKey||u(e,void 0,t.shiftKey)}),[u]),w=r.useCallback((()=>{const t=ye(e),n=M(e);if(t.length>0){const r=t.filter((e=>n[e.field]));r.length{"sorting"===t&&e.current.applySorting()}),[e]);rt(e,"columnHeaderClick",v),rt(e,"columnHeaderKeyDown",C),rt(e,"rowsSet",e.current.applySorting),rt(e,"columnsChange",w),rt(e,"activeStrategyProcessorChange",y),Ct((()=>{e.current.applySorting()})),r.useEffect((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(o,e),((e,t)=>{const n=ae(e,"useDensity"),o=r.useCallback(((r,o=t.headerHeight,l=t.rowHeight)=>{n.debug(`Set grid density to ${r}`),e.current.setState((e=>{const t=J(e),n=so(r,o,l);return Ue(t,n)?e:(0,i.Z)({},e,{density:n})})),e.current.forceUpdate()}),[n,e,t.headerHeight,t.rowHeight]);r.useEffect((()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight)}),[e,t.density,t.rowHeight,t.headerHeight]),Ye(e,{setDensity:o})})(o,e),pl(o,e),((e,t)=>{const{getRowHeight:n,getRowSpacing:o,getEstimatedRowHeight:l}=t,a=r.useRef({}),s=r.useRef(-1),u=r.useRef(!1),c=j(e,te),d=j(e,Re),p=j(e,ko),f=j(e,ve),m=rl(e,t),g=r.useCallback((()=>{u.current=!1;const t=re(e.current.state,e.current.instanceId),r=[],d=m.rows.reduce(((s,d)=>{r.push(s),a.current[d.id]||(a.current[d.id]={sizes:{base:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:p,needsFirstMeasurement:f,sizes:g}=a.current[d.id];let h=c;const b=g.base;if(p)h=b;else if(n){const e=n((0,i.Z)({},d,{densityFactor:t}));if("auto"===e){if(f){const e=l?l((0,i.Z)({},d,{densityFactor:t})):c;h=null!=e?e:c}else h=b;u.current=!0,a.current[d.id].autoHeight=!0}else h=null!=e?e:c,a.current[d.id].needsFirstMeasurement=!1,a.current[d.id].autoHeight=!1}else a.current[d.id].needsFirstMeasurement=!1;const v={base:h};if(o){var C,w;const t=e.current.getRowIndexRelativeToVisibleRows(d.id),n=o((0,i.Z)({},d,{isFirstVisible:0===t,isLastVisible:t===m.rows.length-1,indexRelativeToCurrentPage:t}));v.spacingTop=null!=(C=n.top)?C:0,v.spacingBottom=null!=(w=n.bottom)?w:0}const y=e.current.unstable_applyPipeProcessors("rowHeight",v,d);return a.current[d.id].sizes=y,s+Object.values(y).reduce(((e,t)=>e+t),0)}),0);e.current.setState((e=>(0,i.Z)({},e,{rowsMeta:{currentPageTotalHeight:d,positions:r}}))),u.current||(s.current=1/0),e.current.forceUpdate()}),[e,m.rows,c,n,o,l]),h=r.useCallback((e=>{const t=a.current[e];return t?t.sizes.base:c}),[c]),b=r.useCallback(((e,t)=>{a.current[e].sizes.base=t,a.current[e].isResized=!0,a.current[e].needsFirstMeasurement=!1,g()}),[g]),v=r.useMemo((()=>(0,Gl.Z)(g)),[g]),C=r.useCallback(((e,t)=>{if(!a.current[e]||!a.current[e].autoHeight)return;const n=a.current[e].sizes.base!==t;a.current[e].needsFirstMeasurement=!1,a.current[e].sizes.base=t,n&&v()}),[v]),w=r.useCallback((e=>{var t;return(null==(t=a.current[e])?void 0:t.autoHeight)||!1}),[]),y=r.useCallback((()=>s.current),[]),x=r.useCallback((e=>{u.current&&e>s.current&&(s.current=e)}),[]);r.useEffect((()=>{g()}),[c,d,p,f,g]),yt(e,"rowHeight",g),Ye(e,{unstable_getLastMeasuredRowIndex:y,unstable_setLastMeasuredRowIndex:x,unstable_rowHasAutoHeight:w,unstable_getRowHeight:h,unstable_getRowInternalSizes:e=>{var t;return null==(t=a.current[e])?void 0:t.sizes},unstable_setRowHeight:b,unstable_storeRowHeightMeasurement:C})})(o,e),((e,t)=>{const n=ae(e,"useGridScroll"),o=e.current.columnHeadersElementRef,l=e.current.windowRef,i=j(e,Pe),a=r.useCallback((r=>{const o=B(e),a=F(e);if(null!=r.rowIndex&&0===o||0===a.length)return!1;n.debug(`Scrolling to cell at row ${r.rowIndex}, col: ${r.colIndex} `);let s={};if(null!=r.colIndex){const t=_(e);let n;if("undefined"!==typeof r.rowIndex){var u;const t=null==(u=i[r.rowIndex])?void 0:u.id,o=e.current.unstable_getCellColSpanInfo(t,r.colIndex);o&&!o.spannedByColSpan&&(n=o.cellProps.width)}"undefined"===typeof n&&(n=a[r.colIndex].computedWidth),s.left=Kl({clientHeight:l.current.clientWidth,scrollTop:l.current.scrollLeft,offsetHeight:n,offsetTop:t[r.colIndex]})}if(null!=r.rowIndex){const n=No(e.current.state),o=Zo(e),i=So(e),a=t.pagination?r.rowIndex-o*i:r.rowIndex,u=n.positions[a+1]?n.positions[a+1]-n.positions[a]:n.currentPageTotalHeight-n.positions[a];s.top=Kl({clientHeight:l.current.clientHeight,scrollTop:l.current.scrollTop,offsetHeight:u,offsetTop:n.positions[a]})}return s=e.current.unstable_applyPipeProcessors("scrollToIndexes",s,r),(void 0!==typeof s.left||void 0!==typeof s.top)&&(e.current.scroll(s),!0)}),[n,e,l,t.pagination,i]),s=r.useCallback((e=>{l.current&&null!=e.left&&o.current&&(o.current.scrollLeft=e.left,l.current.scrollLeft=e.left,n.debug(`Scrolling left: ${e.left}`)),l.current&&null!=e.top&&(l.current.scrollTop=e.top,n.debug(`Scrolling top: ${e.top}`)),n.debug("Scrolling, updating container, and viewport")}),[l,o,n]),u=r.useCallback((()=>null!=l&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0}),[l]);Ye(e,{scroll:s,scrollToIndexes:a,getScrollPosition:u})})(o,e),(e=>{const t=ae(e,"useGridColumnMenu"),n=r.useCallback((n=>{e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===n?e:(t.debug("Opening Column Menu"),(0,i.Z)({},e,{columnMenu:{open:!0,field:n}}))))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,t]),o=r.useCallback((()=>{e.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(t.debug("Hiding Column Menu"),(0,i.Z)({},e,{columnMenu:(0,i.Z)({},e.columnMenu,{open:!1,field:void 0})})):e))&&e.current.forceUpdate()}),[e,t]),l=r.useCallback((r=>{t.debug("Toggle Column Menu");const l=bt(e.current.state);l.open&&l.field===r?o():n(r)}),[e,t,n,o]);Ye(e,{showColumnMenu:n,hideColumnMenu:o,toggleColumnMenu:l});const a=r.useCallback(((t,n)=>{if(!n.target.classList.contains(g._.menuIconButton))return;if(!n.relatedTarget)return;const r=n.relatedTarget.classList.contains(g._.menuList),o="menuitem"===n.relatedTarget.getAttribute("role");(r||o)&&e.current.setColumnHeaderFocus(t.field)}),[e]);rt(e,"columnResizeStart",o),rt(e,"columnHeaderFocus",a),rt(e,"virtualScrollerWheel",e.current.hideColumnMenu),rt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(o),$o(o),((e,t)=>{const n=ae(e,"useGridPrintExport"),o=r.useRef(null),l=r.useRef(null),a=r.useRef({});r.useEffect((()=>{o.current=(0,Vo.Z)(e.current.rootElementRef.current)}),[e]);const s=r.useCallback(((t,n)=>new Promise((r=>{if(!t&&!n)return void r();const o=Ho({apiRef:e,options:{fields:t,allColumns:n}}).map((e=>e.field)),l=I(e),i={};l.forEach((e=>{i[e.field]=o.includes(e.field)})),e.current.setColumnVisibilityModel(i),r()}))),[e]),u=r.useCallback((e=>{const t=document.createElement("iframe");return t.id="grid-print-window",t.src=window.location.href,t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}),[]),c=r.useCallback(((t,n)=>{var r,l,a;const s=(0,i.Z)({copyStyles:!0,hideToolbar:!1,hideFooter:!1},n);t.onload=null;const u=t.contentDocument||(null==(r=t.contentWindow)?void 0:r.document);if(!u)return;const c=ne(e),d=No(e.current.state),p=e.current.rootElementRef.current,f=p.cloneNode(!0),m=f.querySelector(`.${g._.virtualScroller}`);m.style.height="auto",m.style.width="auto",m.parentElement.style.width="auto",m.parentElement.style.height="auto",f.querySelector(`.${g._.main}`).style.overflow="visible",f.querySelector(`.${g._.columnHeaders}`).querySelector(`.${g._.columnHeadersInner}`).style.width="100%";let h=(null==(l=p.querySelector(`.${g._.toolbarContainer}`))?void 0:l.clientHeight)||0,b=(null==(a=p.querySelector(`.${g._.footerContainer}`))?void 0:a.clientHeight)||0;var v,C;s.hideToolbar&&(null==(v=f.querySelector(`.${g._.toolbarContainer}`))||v.remove(),h=0),s.hideFooter&&(null==(C=f.querySelector(`.${g._.footerContainer}`))||C.remove(),b=0),f.style.height=`${d.currentPageTotalHeight+c+h+b}px`,u.body.innerHTML="",u.body.appendChild(f);const w="function"===typeof s.pageStyle?s.pageStyle():s.pageStyle;if("string"===typeof w){const e=u.createElement("style");e.appendChild(u.createTextNode(w)),u.head.appendChild(e)}if(s.bodyClassName&&u.body.classList.add(...s.bodyClassName.split(" ")),s.copyStyles){const e=o.current.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t{var n,r;o.current.body.removeChild(t),e.current.restoreState(l.current||{}),null!=(n=l.current)&&null!=(r=n.columns)&&r.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.unstable_enableVirtualization(),l.current=null,a.current={}}),[e]),p=r.useCallback((async r=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(l.current=e.current.exportState(),a.current=T(e),t.pagination){const t=Fe(e);e.current.setPageSize(t)}await s(null==r?void 0:r.fields,null==r?void 0:r.allColumns),e.current.unstable_disableVirtualization();const i=u(null==r?void 0:r.fileName);o.current.body.appendChild(i),i.onload=()=>c(i,r),i.contentWindow.onafterprint=()=>d(i)}),[t,n,e,u,c,d,s]);Ye(e,{exportDataAsPrint:p});const f=r.useCallback(((e,t)=>{var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[...e,{component:(0,oe.jsx)(zo,{options:t.printOptions}),componentName:"printExport"}]}),[]);wt(e,"exportMenu",f)})(o,e),ht(o),function(e,t){const n=ae(e,"useResizeContainer"),o=r.useRef(!1),l=r.useRef(null),i=r.useRef(null),a=j(e,No),s=j(e,ne),u=r.useCallback((()=>{var n;const r=null==(n=e.current.rootElementRef)?void 0:n.current,o=O(e);if(!l.current)return;let u;if(null!=t.scrollbarSize)u=t.scrollbarSize;else if(o&&r){const e=(0,Vo.Z)(r).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",r.appendChild(e),u=e.offsetWidth-e.clientWidth,r.removeChild(e)}else u=0;const c={width:l.current.width,height:t.autoHeight?a.currentPageTotalHeight:l.current.height-s},{hasScrollX:d,hasScrollY:p}=(({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let l=!1,i=!1;return(r||o)&&(l=r,i=e.height+(l?n:0)>t.height,i&&(l=e.width+n>t.width)),{hasScrollX:l,hasScrollY:i}})({content:{width:Math.round(o),height:a.currentPageTotalHeight},container:c,scrollBarSize:u}),f={viewportOuterSize:c,viewportInnerSize:{width:c.width-(p?u:0),height:c.height-(d?u:0)},hasScrollX:d,hasScrollY:p,scrollBarSize:u},m=i.current;i.current=f,f.viewportInnerSize.width===(null==m?void 0:m.viewportInnerSize.width)&&f.viewportInnerSize.height===(null==m?void 0:m.viewportInnerSize.height)||e.current.publishEvent("viewportInnerSizeChange",f.viewportInnerSize)}),[e,t.scrollbarSize,t.autoHeight,s,a.currentPageTotalHeight]),c=r.useCallback((()=>{u(),e.current.publishEvent("debouncedResize",l.current)}),[e,u]),p=r.useCallback((()=>i.current),[]),f=r.useCallback((()=>{const n=e.current.getRootDimensions();if(!n)return 0;const r=nl(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const t=e.current.unstable_getRenderContext(),n=t.lastRowIndex-t.firstRowIndex;return Math.min(n-1,r.rows.length)}const o=Math.floor(n.viewportInnerSize.height/te(e));return Math.min(o,r.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight]);Ye(e,{resize:c,getRootDimensions:p,unstable_getViewportPageSize:f,unstable_updateGridDimensionsRef:u});const m=r.useMemo((()=>(0,Gl.Z)(c,60)),[c]),g=r.useRef(!0),h=r.useCallback((e=>{l.current=e;const r=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||o.current||t.autoHeight||r||(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),0!==e.width||o.current||r||(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),g.current)return c(),void(g.current=!1);m()}),[t.autoHeight,m,n,c]);(0,d.Z)((()=>u()),[u]),lt(e,"sortedRowsSet",u),lt(e,"pageChange",u),lt(e,"pageSizeChange",u),lt(e,"columnsChange",u),rt(e,"resize",h),lt(e,"debouncedResize",t.onResize)}(o,e),function(e,t){lt(e,"columnHeaderClick",t.onColumnHeaderClick),lt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),lt(e,"columnHeaderOver",t.onColumnHeaderOver),lt(e,"columnHeaderOut",t.onColumnHeaderOut),lt(e,"columnHeaderEnter",t.onColumnHeaderEnter),lt(e,"columnHeaderLeave",t.onColumnHeaderLeave),lt(e,"columnOrderChange",t.onColumnOrderChange),lt(e,"cellClick",t.onCellClick),lt(e,"cellDoubleClick",t.onCellDoubleClick),lt(e,"cellKeyDown",t.onCellKeyDown),lt(e,"cellFocusOut",t.onCellFocusOut),lt(e,"preferencePanelClose",t.onPreferencePanelClose),lt(e,"preferencePanelOpen",t.onPreferencePanelOpen),lt(e,"menuOpen",t.onMenuOpen),lt(e,"menuClose",t.onMenuClose),lt(e,"rowDoubleClick",t.onRowDoubleClick),lt(e,"rowClick",t.onRowClick),lt(e,"componentError",t.onError),lt(e,"stateChange",t.onStateChange)}(o,e),(e=>{const t=r.useCallback((()=>e.current.unstable_applyPipeProcessors("exportState",{})),[e]),n=r.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()})),e.current.forceUpdate()}),[e]);Ye(e,{exportState:t,restoreState:n})})(o),o},Yl={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search...",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering"};var Ql=n(8128),Jl=n(2852),ei=n(2992),ti=n(4386);const ni=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let ri;var oi=e=>{const t=r.useRef({});return r.useEffect((()=>{t.current=e})),t.current};function li(e){return(0,xn.Z)("MuiBadge",e)}var ii=(0,Rn.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopLeft","anchorOriginTopRight","anchorOriginBottomLeft","anchorOriginBottomRight","invisible"]),ai=n(8320),si=n(3554);const ui=["anchorOrigin","classes","badgeContent","component","children","className","components","componentsProps","invisible","max","showZero","variant"],ci=r.forwardRef((function(e,t){const{anchorOrigin:n={vertical:"top",horizontal:"right"},classes:r,component:o,children:l,className:u,components:c={},componentsProps:d={},max:f=99,showZero:m=!1,variant:g="standard"}=e,h=(0,a.Z)(e,ui),{anchorOrigin:b,badgeContent:v,max:C,variant:w,displayValue:y,invisible:x}=function(e){const{anchorOrigin:t={vertical:"top",horizontal:"right"},badgeContent:n,invisible:r=!1,max:o=99,showZero:l=!1,variant:i="standard"}=e,a=oi({anchorOrigin:t,badgeContent:n,max:o,variant:i});let s=r;!1===r&&(0===n&&!l||null==n&&"dot"!==i)&&(s=!0);const{anchorOrigin:u=t,badgeContent:c,max:d=o,variant:p=i}=s?a:e;let f="";return"dot"!==p&&(f=c&&Number(c)>d?`${d}+`:c),{anchorOrigin:u,badgeContent:c,invisible:s,max:d,variant:p,displayValue:f}}((0,i.Z)({},e,{anchorOrigin:n,max:f,variant:g})),R=(0,i.Z)({},e,{anchorOrigin:b,badgeContent:v,classes:r,invisible:x,max:C,variant:w,showZero:m}),k=(e=>{const{variant:t,anchorOrigin:n,invisible:r,classes:o}=e,l={root:["root"],badge:["badge",t,`anchorOrigin${(0,ai.Z)(n.vertical)}${(0,ai.Z)(n.horizontal)}`,r&&"invisible"]};return(0,p.Z)(l,li,o)})(R),Z=o||c.Root||"span",S=(0,si.Z)(Z,(0,i.Z)({},h,d.root),R),P=c.Badge||"span",E=(0,si.Z)(P,d.badge,R);return(0,oe.jsxs)(Z,(0,i.Z)({},S,{ref:t},h,{className:(0,s.Z)(k.root,S.className,u),children:[l,(0,oe.jsx)(P,(0,i.Z)({},E,{className:(0,s.Z)(k.badge,E.className),children:y}))]}))}));var di=ci,pi=n(8442);var fi=e=>!e||!(0,pi.Z)(e);const mi=["anchorOrigin","component","components","componentsProps","overlap","color","invisible","badgeContent","showZero","variant"],gi=(0,i.Z)({},ii,(0,Rn.Z)("MuiBadge",["colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"])),hi=(0,f.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),bi=(0,f.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,u.Z)(n.anchorOrigin.vertical)}${(0,u.Z)(n.anchorOrigin.horizontal)}${(0,u.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})));var vi=r.forwardRef((function(e,t){var n,r;const o=(0,mn.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:l={vertical:"top",horizontal:"right"},component:c="span",components:d={},componentsProps:p={},overlap:f="rectangular",color:m="default",invisible:g=!1,badgeContent:h,showZero:b=!1,variant:v="standard"}=o,C=(0,a.Z)(o,mi),w=oi({anchorOrigin:l,color:m,overlap:f});let y=g;!1===g&&(0===h&&!b||null==h&&"dot"!==v)&&(y=!0);const{color:x=m,overlap:R=f,anchorOrigin:k=l}=y?w:o,Z=(e=>{const{color:t,anchorOrigin:n,overlap:r,classes:o={}}=e;return(0,i.Z)({},o,{badge:(0,s.Z)(o.badge,li(`anchorOrigin${(0,u.Z)(n.vertical)}${(0,u.Z)(n.horizontal)}${(0,u.Z)(r)}`),li(`overlap${(0,u.Z)(r)}`),"default"!==t&&[li(`color${(0,u.Z)(t)}`),o[`color${(0,u.Z)(t)}`]])})})((0,i.Z)({},o,{anchorOrigin:k,invisible:y,color:x,overlap:R}));return(0,oe.jsx)(di,(0,i.Z)({anchorOrigin:k,invisible:g,badgeContent:h,showZero:b,variant:v},C,{components:(0,i.Z)({Root:hi,Badge:bi},d),componentsProps:{root:(0,i.Z)({},p.root,fi(d.Root)&&{as:c,ownerState:(0,i.Z)({},null==(n=p.root)?void 0:n.ownerState,{color:x,overlap:R})}),badge:(0,i.Z)({},p.badge,fi(d.Badge)&&{ownerState:(0,i.Z)({},null==(r=p.badge)?void 0:r.ownerState,{color:x,overlap:R})})},classes:Z,ref:t}))}));const Ci=["className"],wi=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),yi=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Ci),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["iconButtonContainer"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(wi,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))}));const xi=["hideMenu","currentColumn","open","id","labelledby","className","children"],Ri=r.forwardRef((function(e,t){const{hideMenu:n,open:o,id:l,labelledby:u,className:c,children:d}=e,p=(0,a.Z)(e,xi),f=r.useCallback((e=>{var t;sr(e.key)&&e.preventDefault(),t=e.key,(sr(t)||ir(t))&&n(e)}),[n]);return(0,oe.jsx)(Or.Z,(0,i.Z)({id:l,ref:t,className:(0,s.Z)(g._.menuList,c),"aria-labelledby":u,onKeyDown:f,autoFocus:o},p,{children:d}))})),ki=e=>{const{onClick:t}=e,n=$(),o=N(),l=r.useCallback((e=>{t(e),n.current.showPreferences(lo.columns)}),[n,t]);return o.disableColumnSelector?null:(0,oe.jsx)(Wt.Z,{onClick:l,children:n.current.getLocaleText("columnMenuShowColumns")})},Zi=e=>{const{column:t,onClick:n}=e,o=$(),l=N(),i=r.useCallback((e=>{n(e),o.current.showFilterPanel(null==t?void 0:t.field)}),[o,null==t?void 0:t.field,n]);return l.disableColumnFilter||null==t||!t.filterable?null:(0,oe.jsx)(Wt.Z,{onClick:i,children:o.current.getLocaleText("columnMenuFilter")})},Si=e=>{const{column:t,onClick:n}=e,o=$(),l=N(),i=r.useRef(),a=1===F(o).filter((e=>!0!==e.disableColumnMenu)).length,s=r.useCallback((e=>{a||(n(e),i.current=setTimeout((()=>{o.current.setColumnVisibility(null==t?void 0:t.field,!1)}),100))}),[o,null==t?void 0:t.field,n,a]);return r.useEffect((()=>()=>clearTimeout(i.current)),[]),l.disableColumnSelector||!1===t.hideable?null:(0,oe.jsx)(Wt.Z,{onClick:s,disabled:a,children:o.current.getLocaleText("columnMenuHideColumn")})},Pi=e=>{const{column:t,onClick:n}=e,o=$(),l=j(o,ye),i=r.useMemo((()=>{if(!t)return null;const e=l.find((e=>e.field===t.field));return null==e?void 0:e.sort}),[t,l]),a=r.useCallback((e=>{n(e);const r=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(t,r)}),[o,t,n]);return t&&t.sortable?(0,oe.jsxs)(r.Fragment,{children:[(0,oe.jsx)(Wt.Z,{onClick:a,disabled:null==i,children:o.current.getLocaleText("columnMenuUnsort")}),(0,oe.jsx)(Wt.Z,{onClick:a,"data-value":"asc",disabled:"asc"===i,children:o.current.getLocaleText("columnMenuSortAsc")}),(0,oe.jsx)(Wt.Z,{onClick:a,"data-value":"desc",disabled:"desc"===i,children:o.current.getLocaleText("columnMenuSortDesc")})]}):null},Ei=r.forwardRef((function(e,t){const{hideMenu:n,currentColumn:o}=e,l=$(),a=[(0,oe.jsx)(Pi,{onClick:n,column:o}),(0,oe.jsx)(Zi,{onClick:n,column:o}),(0,oe.jsx)(Si,{onClick:n,column:o}),(0,oe.jsx)(ki,{onClick:n,column:o})],s=l.current.unstable_applyPipeProcessors("columnMenu",a,o);return(0,oe.jsx)(Ri,(0,i.Z)({ref:t},e,{children:s.map(((e,t)=>r.cloneElement(e,{key:t,onClick:n,column:o})))}))})),Mi=["className","rowCount","visibleRowCount"],Ii=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)}))),Ti=r.forwardRef((function(e,t){const{className:n,rowCount:r,visibleRowCount:o}=e,l=(0,a.Z)(e,Mi),u=$(),c=(e=>{const{classes:t}=e;return(0,p.Z)({root:["rowCount"]},g.d,t)})({classes:N().classes});if(0===r)return null;const d=ot.selectedRowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}))),Oi=r.forwardRef((function(e,t){const{className:n,selectedRowCount:r}=e,o=(0,a.Z)(e,Fi),l=$(),u=(e=>{const{classes:t}=e;return(0,p.Z)({root:["selectedRowCount"]},g.d,t)})({classes:N().classes}),c=l.current.getLocaleText("footerRowSelected")(r);return(0,oe.jsx)(_i,(0,i.Z)({ref:t,className:(0,s.Z)(u.root,n)},o,{children:c}))})),Di=["className"],Hi=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})((({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${"light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68)}`}))),Li=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Di),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["footerContainer"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Hi,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))})),ji=r.forwardRef((function(e,t){var n;const r=$(),o=N(),l=j(r,W),a=j(r,yo),s=j(r,_e),u=!o.hideFooterSelectedRowCount&&a>0?(0,oe.jsx)(Oi,{selectedRowCount:a}):(0,oe.jsx)("div",{}),c=o.hideFooterRowCount||o.pagination?null:(0,oe.jsx)(Ti,{rowCount:l,visibleRowCount:s}),d=o.pagination&&!o.hideFooterPagination&&o.components.Pagination&&(0,oe.jsx)(o.components.Pagination,(0,i.Z)({},null==(n=o.componentsProps)?void 0:n.pagination));return(0,oe.jsxs)(Li,(0,i.Z)({ref:t},e,{children:[u,c,d]}))})),zi=r.forwardRef((function(e,t){var n,r;const o=N();return(0,oe.jsxs)("div",(0,i.Z)({ref:t},e,{children:[(0,oe.jsx)(o.components.PreferencesPanel,(0,i.Z)({},null==(n=o.componentsProps)?void 0:n.preferencesPanel)),o.components.Toolbar&&(0,oe.jsx)(o.components.Toolbar,(0,i.Z)({},null==(r=o.componentsProps)?void 0:r.toolbar))]}))})),$i=r.forwardRef((function(e,t){var n,r,o;const l=$(),a=j(l,I),s=N(),u=j(l,fl),c=l.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=u.openedPanelValue)?n:lo.filters);return(0,oe.jsx)(s.components.Panel,(0,i.Z)({ref:t,as:s.components.BasePopper,open:a.length>0&&u.open},null==(r=s.componentsProps)?void 0:r.panel,e,null==(o=s.componentsProps)?void 0:o.basePopper,{children:c}))}));var Vi=n(6489);const Ni=["className"],Ai=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})((({theme:e})=>({display:"flex",height:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:(0,m.Fq)(e.palette.background.default,e.palette.action.disabledOpacity)}))),Bi=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Ni),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["overlay"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Ai,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))})),Ui=r.forwardRef((function(e,t){return(0,oe.jsx)(Bi,(0,i.Z)({ref:t},e,{children:(0,oe.jsx)(Vi.Z,{})}))})),Wi=r.forwardRef((function(e,t){const n=$().current.getLocaleText("noRowsLabel");return(0,oe.jsx)(Bi,(0,i.Z)({ref:t},e,{children:n}))}));var Ki=r.createContext();var Gi=r.createContext();function qi(e){return(0,xn.Z)("MuiTableCell",e)}var Xi=(0,Rn.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Yi=["align","className","component","padding","scope","size","sortDirection","variant"],Qi=(0,f.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,u.Z)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,u.Z)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,u.Z)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,i.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:`1px solid\n ${"light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:e.palette.text.primary},"footer"===t.variant&&{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Xi.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.default})));var Ji=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:l,component:c,padding:d,scope:f,size:m,sortDirection:g,variant:h}=n,b=(0,a.Z)(n,Yi),v=r.useContext(Ki),C=r.useContext(Gi),w=C&&"head"===C.variant;let y;y=c||(w?"th":"td");let x=f;!x&&w&&(x="col");const R=h||C&&C.variant,k=(0,i.Z)({},n,{align:o,component:y,padding:d||(v&&v.padding?v.padding:"normal"),size:m||(v&&v.size?v.size:"medium"),sortDirection:g,stickyHeader:"head"===R&&v&&v.stickyHeader,variant:R}),Z=(e=>{const{classes:t,variant:n,align:r,padding:o,size:l,stickyHeader:i}=e,a={root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${(0,u.Z)(r)}`,"normal"!==o&&`padding${(0,u.Z)(o)}`,`size${(0,u.Z)(l)}`]};return(0,p.Z)(a,qi,t)})(k);let S=null;return g&&(S="asc"===g?"ascending":"descending"),(0,oe.jsx)(Qi,(0,i.Z)({as:y,ref:t,className:(0,s.Z)(Z.root,l),"aria-sort":S,scope:x,ownerState:k},b))}));function ea(e){return(0,xn.Z)("MuiToolbar",e)}(0,Rn.Z)("MuiToolbar",["root","gutters","regular","dense"]);const ta=["className","component","disableGutters","variant"],na=(0,f.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar));var ra,oa,la,ia,aa,sa,ua,ca,da=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:l=!1,variant:u="regular"}=n,c=(0,a.Z)(n,ta),d=(0,i.Z)({},n,{component:o,disableGutters:l,variant:u}),f=(e=>{const{classes:t,disableGutters:n,variant:r}=e,o={root:["root",!n&&"gutters",r]};return(0,p.Z)(o,ea,t)})(d);return(0,oe.jsx)(na,(0,i.Z)({as:o,className:(0,s.Z)(f.root,r),ref:t,ownerState:d},c))})),pa=n(7070),fa=n(6686),ma=n(2734),ga=(0,Rt.Z)((0,oe.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ha=(0,Rt.Z)((0,oe.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");const ba=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"];var va=r.forwardRef((function(e,t){const{backIconButtonProps:n,count:r,getItemAriaLabel:o,nextIconButtonProps:l,onPageChange:s,page:u,rowsPerPage:c,showFirstButton:d,showLastButton:p}=e,f=(0,a.Z)(e,ba),m=(0,ma.Z)();return(0,oe.jsxs)("div",(0,i.Z)({ref:t},f,{children:[d&&(0,oe.jsx)(_r.Z,{onClick:e=>{s(e,0)},disabled:0===u,"aria-label":o("first",u),title:o("first",u),children:"rtl"===m.direction?ra||(ra=(0,oe.jsx)(ga,{})):oa||(oa=(0,oe.jsx)(ha,{}))}),(0,oe.jsx)(_r.Z,(0,i.Z)({onClick:e=>{s(e,u-1)},disabled:0===u,color:"inherit","aria-label":o("previous",u),title:o("previous",u)},n,{children:"rtl"===m.direction?la||(la=(0,oe.jsx)(fa.Z,{})):ia||(ia=(0,oe.jsx)(pa.Z,{}))})),(0,oe.jsx)(_r.Z,(0,i.Z)({onClick:e=>{s(e,u+1)},disabled:-1!==r&&u>=Math.ceil(r/c)-1,color:"inherit","aria-label":o("next",u),title:o("next",u)},l,{children:"rtl"===m.direction?aa||(aa=(0,oe.jsx)(pa.Z,{})):sa||(sa=(0,oe.jsx)(fa.Z,{}))})),p&&(0,oe.jsx)(_r.Z,{onClick:e=>{s(e,Math.max(0,Math.ceil(r/c)-1))},disabled:u>=Math.ceil(r/c)-1,"aria-label":o("last",u),title:o("last",u),children:"rtl"===m.direction?ua||(ua=(0,oe.jsx)(ha,{})):ca||(ca=(0,oe.jsx)(ga,{}))})]}))}));function Ca(e){return(0,xn.Z)("MuiTablePagination",e)}var wa,ya=(0,Rn.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);const xa=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Ra=(0,f.ZP)(Ji,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),ka=(0,f.ZP)(da,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,i.Z)({[`& .${ya.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${ya.actions}`]:{flexShrink:0,marginLeft:20}}))),Za=(0,f.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Sa=(0,f.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>(0,i.Z)({},e.typography.body2,{flexShrink:0}))),Pa=(0,f.ZP)(In.Z,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,i.Z)({[`& .${ya.selectIcon}`]:t.selectIcon,[`& .${ya.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ya.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Ea=(0,f.ZP)(Wt.Z,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ma=(0,f.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>(0,i.Z)({},e.typography.body2,{flexShrink:0})));function Ia({from:e,to:t,count:n}){return`${e}\u2013${t} of ${-1!==n?n:`more than ${t}`}`}function Ta(e){return`Go to ${e} page`}var Fa=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=va,backIconButtonProps:l,className:u,colSpan:c,component:d=Ji,count:f,getItemAriaLabel:m=Ta,labelDisplayedRows:g=Ia,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:b,onPageChange:v,onRowsPerPageChange:C,page:w,rowsPerPage:y,rowsPerPageOptions:x=[10,25,50,100],SelectProps:R={},showFirstButton:k=!1,showLastButton:Z=!1}=n,S=(0,a.Z)(n,xa),P=n,E=(e=>{const{classes:t}=e;return(0,p.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Ca,t)})(P),M=R.native?"option":Ea;let I;d!==Ji&&"td"!==d||(I=c||1e3);const T=(0,Ut.Z)(R.id),F=(0,Ut.Z)(R.labelId);return(0,oe.jsx)(Ra,(0,i.Z)({colSpan:I,ref:t,as:d,ownerState:P,className:(0,s.Z)(E.root,u)},S,{children:(0,oe.jsxs)(ka,{className:E.toolbar,children:[(0,oe.jsx)(Za,{className:E.spacer}),x.length>1&&(0,oe.jsx)(Sa,{className:E.selectLabel,id:F,children:h}),x.length>1&&(0,oe.jsx)(Pa,(0,i.Z)({variant:"standard",input:wa||(wa=(0,oe.jsx)(xt.ZP,{})),value:y,onChange:C,id:T,labelId:F},R,{classes:(0,i.Z)({},R.classes,{root:(0,s.Z)(E.input,E.selectRoot,(R.classes||{}).root),select:(0,s.Z)(E.select,(R.classes||{}).select),icon:(0,s.Z)(E.selectIcon,(R.classes||{}).icon)}),children:x.map((e=>(0,r.createElement)(M,(0,i.Z)({},!(0,pi.Z)(M)&&{ownerState:P},{className:E.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,oe.jsx)(Ma,{className:E.displayedRows,children:g({from:0===f?0:w*y+1,to:-1===f?(w+1)*y:-1===y?f:Math.min(f,(w+1)*y),count:-1===f?-1:f,page:w})}),(0,oe.jsx)(o,{className:E.actions,backIconButtonProps:l,count:f,nextIconButtonProps:b,onPageChange:v,page:w,rowsPerPage:y,showFirstButton:k,showLastButton:Z,getItemAriaLabel:m})]})}))}));const _a=(0,f.ZP)(Fa)((({theme:e})=>({[`& .${ya.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${ya.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),Oa=r.forwardRef((function(e,t){var n;const o=$(),l=N(),a=j(o,ko),s=r.useMemo((()=>Math.floor(a.rowCount/(a.pageSize||1))),[a.rowCount,a.pageSize]),u=r.useCallback((e=>{const t=Number(e.target.value);o.current.setPageSize(t)}),[o]),c=r.useCallback(((e,t)=>{o.current.setPage(t)}),[o]);return(0,oe.jsx)(_a,(0,i.Z)({ref:t,component:"div",count:a.rowCount,page:a.page<=s?a.page:s,rowsPerPageOptions:null!=(n=l.rowsPerPageOptions)&&n.includes(a.pageSize)?l.rowsPerPageOptions:[],rowsPerPage:a.pageSize,onPageChange:c,onRowsPerPageChange:u},o.current.getLocaleText("MuiTablePagination"),e))})),Da=["className"],Ha=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function La(e){const{className:t}=e,n=(0,a.Z)(e,Da),r=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelContent"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Ha,(0,i.Z)({className:(0,s.Z)(t,r.root)},n))}const ja=["className"],za=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"})));function $a(e){const{className:t}=e,n=(0,a.Z)(e,ja),r=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelFooter"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(za,(0,i.Z)({className:(0,s.Z)(t,r.root)},n))}var Va=n(2310);const Na=["className"],Aa=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Ba=()=>!0,Ua=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Na),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelWrapper"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Va.Z,{open:!0,disableEnforceFocus:!0,isEnabled:Ba,children:(0,oe.jsx)(Aa,(0,i.Z)({ref:t,tabIndex:-1,className:(0,s.Z)(n,o.root)},r))})})),Wa=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Ka=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((({theme:e})=>({display:"flex",padding:e.spacing(1)}))),Ga=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)}))),qa=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Xa=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Ya=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Qa=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Ja=e=>{switch(e){case Uo.And:return"filterPanelOperatorAnd";case Uo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},es=e=>e.headerName||e.field,ts=new Intl.Collator,ns=r.forwardRef((function(e,t){var n,o,l,c,d,f,m;const{item:h,hasMultipleFilters:b,deleteFilter:v,applyFilterChanges:C,multiFilterOperator:w,showMultiFilterOperators:y,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:R,focusElementRef:k,linkOperators:Z=[Uo.And,Uo.Or],columnsSort:S,deleteIconProps:P={},linkOperatorInputProps:E={},operatorInputProps:M={},columnInputProps:I={},valueInputProps:T={}}=e,F=(0,a.Z)(e,Wa),_=$(),O=j(_,D),H=(0,Ut.Z)(),L=(0,Ut.Z)(),z=(0,Ut.Z)(),V=(0,Ut.Z)(),A=N(),B=(e=>{const{classes:t}=e;return(0,p.Z)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},g.d,t)})({classes:A.classes}),U=r.useRef(null),W=r.useRef(null),K=b&&Z.length>0,G=(null==(n=A.componentsProps)?void 0:n.baseFormControl)||{},q=null==(l=((null==(o=A.componentsProps)?void 0:o.baseSelect)||{}).native)||l,X=q?"option":Wt.Z,Y=r.useMemo((()=>{switch(S){case"asc":return O.sort(((e,t)=>ts.compare(es(e),es(t))));case"desc":return O.sort(((e,t)=>-ts.compare(es(e),es(t))));default:return O}}),[O,S]),Q=h.columnField?_.current.getColumn(h.columnField):null,J=r.useMemo((()=>{var e;return h.operatorValue&&Q?null==(e=Q.filterOperators)?void 0:e.find((e=>e.value===h.operatorValue)):null}),[h,Q]),ee=r.useCallback((e=>{const t=e.target.value,n=_.current.getColumn(t);if(n.field===Q.field)return;const r=n.filterOperators.find((e=>e.value===h.operatorValue))||n.filterOperators[0],o=!r.InputComponent||r.InputComponent!==(null==J?void 0:J.InputComponent);C((0,i.Z)({},h,{columnField:t,operatorValue:r.value,value:o?void 0:h.value}))}),[_,C,h,Q,J]),te=r.useCallback((e=>{const t=e.target.value,n=null==Q?void 0:Q.filterOperators.find((e=>e.value===t)),r=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==J?void 0:J.InputComponent);C((0,i.Z)({},h,{operatorValue:t,value:r?void 0:h.value}))}),[C,h,Q,J]),ne=r.useCallback((e=>{const t=e.target.value===Uo.And.toString()?Uo.And:Uo.Or;R(t)}),[R]);return r.useImperativeHandle(k,(()=>({focus:()=>{var e;null!=J&&J.InputComponent?null==U||null==(e=U.current)||e.focus():W.current.focus()}})),[J]),(0,oe.jsxs)(Ka,(0,i.Z)({ref:t,className:B.root},F,{children:[(0,oe.jsx)(Ga,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,P,{className:(0,s.Z)(B.deleteIcon,G.className,P.className),children:(0,oe.jsx)(_r.Z,{"aria-label":_.current.getLocaleText("filterPanelDeleteIconLabel"),title:_.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{A.disableMultipleColumnsFiltering?void 0===h.value?v(h):C((0,i.Z)({},h,{value:void 0})):v(h)},size:"small",children:(0,oe.jsx)(A.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),(0,oe.jsx)(qa,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,E,{sx:(0,i.Z)({display:K?"flex":"none",visibility:y?"visible":"hidden"},G.sx||{},E.sx||{}),className:(0,s.Z)(B.linkOperatorInput,G.className,E.className),children:(0,oe.jsx)(A.components.BaseSelect,(0,i.Z)({inputProps:{"aria-label":_.current.getLocaleText("filterPanelLinkOperator")},value:w,onChange:ne,disabled:!!x||1===Z.length,native:q},null==(c=A.componentsProps)?void 0:c.baseSelect,{children:Z.map((e=>(0,oe.jsx)(X,{value:e.toString(),children:_.current.getLocaleText(Ja(e))},e.toString())))}))})),(0,oe.jsxs)(Xa,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,I,{className:(0,s.Z)(B.columnInput,G.className,I.className),children:[(0,oe.jsx)(vn.Z,{htmlFor:H,id:L,children:_.current.getLocaleText("filterPanelColumns")}),(0,oe.jsx)(A.components.BaseSelect,(0,i.Z)({labelId:L,id:H,label:_.current.getLocaleText("filterPanelColumns"),value:h.columnField||"",onChange:ee,native:q},null==(d=A.componentsProps)?void 0:d.baseSelect,{children:Y.map((e=>(0,oe.jsx)(X,{value:e.field,children:es(e)},e.field)))}))]})),(0,oe.jsxs)(Ya,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,M,{className:(0,s.Z)(B.operatorInput,G.className,M.className),children:[(0,oe.jsx)(vn.Z,{htmlFor:z,id:V,children:_.current.getLocaleText("filterPanelOperators")}),(0,oe.jsx)(A.components.BaseSelect,(0,i.Z)({labelId:V,label:_.current.getLocaleText("filterPanelOperators"),id:z,value:h.operatorValue,onChange:te,native:q,inputRef:W},null==(f=A.componentsProps)?void 0:f.baseSelect,{children:null==Q||null==(m=Q.filterOperators)?void 0:m.map((e=>(0,oe.jsx)(X,{value:e.value,children:e.label||_.current.getLocaleText(`filterOperator${(0,u.Z)(e.value)}`)},e.value)))}))]})),(0,oe.jsx)(Qa,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,T,{className:(0,s.Z)(B.valueInput,G.className,T.className),children:null!=J&&J.InputComponent?(0,oe.jsx)(J.InputComponent,(0,i.Z)({apiRef:_,item:h,applyValue:C,focusElementRef:U},J.InputComponentProps)):null}))]}))})),rs=["linkOperators","columnsSort","filterFormProps","children"],os=r.forwardRef((function(e,t){var n;const o=$(),l=N(),s=j(o,ke),u=j(o,D),c=r.useRef(null),{linkOperators:d=[Uo.And,Uo.Or],columnsSort:p,filterFormProps:f}=e,m=(0,a.Z)(e,rs),g=r.useCallback((e=>{o.current.upsertFilterItem(e)}),[o]),h=r.useCallback((e=>{o.current.setFilterLinkOperator(e)}),[o]),b=r.useCallback((()=>{const e=u.find((e=>{var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?{columnField:e.field,operatorValue:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}:null}),[u]),v=r.useMemo((()=>{if(s.items.length)return s.items;const e=b();return e?[e]:[]}),[s.items,b]),C=v.length>1,w=r.useCallback((e=>{const t=1===v.length;o.current.deleteFilterItem(e),t&&o.current.hideFilterPanel()}),[o,v.length]);return r.useEffect((()=>{d.length>0&&s.linkOperator&&!d.includes(s.linkOperator)&&h(d[0])}),[d,h,s.linkOperator]),r.useEffect((()=>{v.length>0&&c.current.focus()}),[v.length]),(0,oe.jsxs)(Ua,(0,i.Z)({ref:t},m,{children:[(0,oe.jsx)(La,{children:v.map(((e,t)=>(0,oe.jsx)(ns,(0,i.Z)({item:e,applyFilterChanges:g,deleteFilter:w,hasMultipleFilters:C,showMultiFilterOperators:t>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:h,focusElementRef:t===v.length-1?c:null,linkOperators:d,columnsSort:p},f),null==e.id?t:e.id)))}),!l.disableMultipleColumnsFiltering&&(0,oe.jsx)($a,{children:(0,oe.jsx)(l.components.BaseButton,(0,i.Z)({onClick:()=>{const e=b();e&&o.current.upsertFilterItems([...v,e])},startIcon:(0,oe.jsx)(jt,{})},null==(n=l.componentsProps)?void 0:n.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}));var ls=n(9632),is=n(480);const as=["className"],ss=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})((({theme:e})=>({padding:e.spacing(1)})));function us(e){const{className:t}=e,n=(0,a.Z)(e,as),r=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelHeader"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(ss,(0,i.Z)({className:(0,s.Z)(t,r.root)},n))}var cs=n(3454);let ds=!1;"undefined"!==typeof cs&&void 0!==cs.env.GRID_EXPERIMENTAL_ENABLED&&Ne()&&window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED")?ds="true"===window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED"):"undefined"!==typeof cs&&(ds="true"===cs.env.GRID_EXPERIMENTAL_ENABLED);const ps=ds,fs=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})((()=>({padding:"8px 0px 8px 8px"}))),ms=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})((({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${ls.Z.root}`]:{marginRight:e.spacing(.5)}}))),gs=(0,f.ZP)(_r.Z)({justifyContent:"flex-end"});const hs=["children","className","classes"],bs=(0,Rn.Z)("MuiDataGrid",["panel","paper"]),vs=(0,f.ZP)(Nr.Z,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((({theme:e})=>({zIndex:e.zIndex.modal}))),Cs=(0,f.ZP)(Vr.Z,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}))),ws=r.forwardRef(((e,t)=>{var n;const{children:o,className:l}=e,u=(0,a.Z)(e,hs),c=$(),d=bs,[p,f]=r.useState(!1),m=r.useCallback((()=>{c.current.hidePreferences()}),[c]),g=r.useCallback((e=>{ir(e.key)&&c.current.hidePreferences()}),[c]),h=r.useMemo((()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{f(!0)},effect:()=>()=>{f(!1)}}]),[]),b=null==(n=c.current.columnHeadersContainerElementRef)?void 0:n.current;return b?(0,oe.jsx)(vs,(0,i.Z)({ref:t,placement:"bottom-start",className:(0,s.Z)(l,d.panel),anchorEl:b,modifiers:h},u,{children:(0,oe.jsx)(zr,{mouseEvent:"onMouseUp",onClickAway:m,children:(0,oe.jsx)(Cs,{className:d.paper,elevation:8,onKeyDown:g,children:p&&o})})})):null})),ys=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],xs=({width:e})=>{if(!e)return null;const t={width:e};return(0,oe.jsx)("div",{className:"MuiDataGrid-cell",style:t})};const Rs=["sortingOrder"],ks=r.memo((function(e){const{sortingOrder:t}=e,n=(0,a.Z)(e,Rs),r=N(),[o]=t,l="asc"===o?r.components.ColumnSortedAscendingIcon:r.components.ColumnSortedDescendingIcon;return l?(0,oe.jsx)(l,(0,i.Z)({},n)):null})),Zs=["message","hasError","errorInfo"],Ss=r.forwardRef((function(e,t){const{message:n}=e,r=(0,a.Z)(e,Zs),o=$(),l=o.current.getLocaleText("errorOverlayDefaultLabel"),s=j(o,te);return(0,oe.jsx)(Bi,(0,i.Z)({ref:t,sx:{width:"100%",minHeight:2*s}},r,{children:n||l}))})),Ps=r.forwardRef((function(e,t){const n=$().current.getLocaleText("noResultsOverlayLabel");return(0,oe.jsx)(Bi,(0,i.Z)({ref:t},e,{children:n}))})),Es={BooleanCellTrueIcon:At,BooleanCellFalseIcon:Lt,ColumnMenuIcon:Ht,OpenFilterButtonIcon:Et,FilterPanelDeleteIcon:Lt,ColumnFilteredIcon:Mt,ColumnSelectorIcon:Tt,ColumnUnsortedIcon:ks,ColumnSortedAscendingIcon:kt,ColumnSortedDescendingIcon:Zt,ColumnResizeIcon:Ft,DensityCompactIcon:_t,DensityStandardIcon:Ot,DensityComfortableIcon:Dt,ExportIcon:Nt,MoreActionsIcon:Bt,TreeDataCollapseIcon:Pt,TreeDataExpandIcon:St,GroupingCriteriaCollapseIcon:Pt,GroupingCriteriaExpandIcon:St,DetailPanelExpandIcon:jt,DetailPanelCollapseIcon:zt,RowReorderIcon:Vt,QuickFilterIcon:It,QuickFilterClearIcon:Lt},Ms=(0,i.Z)({},Es,{BaseCheckbox:Ql.Z,BaseTextField:Dn,BaseFormControl:Cn.Z,BaseSelect:In.Z,BaseSwitch:Jl.Z,BaseButton:ei.Z,BaseTooltip:ti.Z,BasePopper:Nr.Z,Cell:function(e){const{align:t,children:n,colIndex:o,cellMode:l,field:c,formattedValue:d,hasFocus:f,height:m,isEditable:h,rowId:b,tabIndex:v,value:C,width:w,className:y,showRightBorder:x,colSpan:R,disableDragEvents:k,onClick:Z,onDoubleClick:S,onMouseDown:P,onMouseUp:E,onKeyDown:M,onDragEnter:I,onDragOver:T}=e,F=(0,a.Z)(e,ni),_=null==d?C:d,O=r.useRef(null),D=r.useRef(null),H=$(),L=(e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,l={root:["cell",`cell--text${(0,u.Z)(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return(0,p.Z)(l,g.d,o)})({align:t,showRightBorder:x,isEditable:h,classes:N().classes}),j=r.useCallback((e=>t=>{const n=H.current.getCellParams(b,c||"");H.current.publishEvent(e,n,t),E&&E(t)}),[H,c,E,b]),z=r.useCallback(((e,t)=>n=>{if(!n.currentTarget.contains(n.target))return;if(!H.current.getRow(b))return;const r=H.current.getCellParams(b,c||"");H.current.publishEvent(e,r,n),t&&t(n)}),[H,c,b]),V={minWidth:w,maxWidth:w,minHeight:m,maxHeight:"auto"===m?"none":m};r.useLayoutEffect((()=>{if(!f||l===Cr.Edit)return;const e=(0,Vo.Z)(H.current.rootElementRef.current);if(O.current&&!O.current.contains(e.activeElement)){const e=O.current.querySelector('[tabindex="0"]'),t=D.current||e||O.current;if(void 0===ri&&document.createElement("div").focus({get preventScroll(){return ri=!0,!1}}),ri)t.focus({preventScroll:!0});else{const e=H.current.getScrollPosition();t.focus(),H.current.scroll(e)}}}),[f,l,H]);let A=F.onFocus;const B="actions"===H.current.getColumn(c).type,U=k?null:{onDragEnter:z("cellDragEnter",I),onDragOver:z("cellDragOver",T)};return(0,oe.jsx)("div",(0,i.Z)({ref:O,className:(0,s.Z)(y,L.root),role:"cell","data-field":c,"data-colindex":o,"aria-colindex":o+1,"aria-colspan":R,style:V,tabIndex:"view"!==l&&h||B?-1:v,onClick:z("cellClick",Z),onDoubleClick:z("cellDoubleClick",S),onMouseDown:z("cellMouseDown",P),onMouseUp:j("cellMouseUp"),onKeyDown:z("cellKeyDown",M)},U,F,{onFocus:A,children:null==n?(0,oe.jsx)("div",{className:L.content,children:null==_?void 0:_.toString()}):r.isValidElement(n)&&B?r.cloneElement(n,{focusElementRef:D}):n}))},ColumnHeaderFilterIconButton:function(e){var t;const{counter:n,field:o,onClick:l}=e,a=$(),s=N(),u=(e=>{const{classes:t}=e;return(0,p.Z)({icon:["filterIcon"]},g.d,t)})((0,i.Z)({},e,{classes:s.classes})),c=r.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=fl(a.current.state);t&&n===lo.filters?a.current.hideFilterPanel():a.current.showFilterPanel(),l&&l(a.current.getColumnHeaderParams(o),e)}),[a,o,l]);if(!n)return null;const d=(0,oe.jsx)(_r.Z,{onClick:c,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:(0,oe.jsx)(s.components.ColumnFilteredIcon,{className:u.icon,fontSize:"small"})});return(0,oe.jsx)(s.components.BaseTooltip,(0,i.Z)({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},null==(t=s.componentsProps)?void 0:t.baseTooltip,{children:(0,oe.jsxs)(yi,{children:[n>1&&(0,oe.jsx)(vi,{badgeContent:n,color:"default",children:d}),1===n&&d]})}))},ColumnMenu:Ei,ErrorOverlay:Ss,Footer:ji,Header:zi,Toolbar:null,PreferencesPanel:$i,LoadingOverlay:Ui,NoResultsOverlay:Ps,NoRowsOverlay:Wi,Pagination:Oa,FilterPanel:os,ColumnsPanel:function(e){var t,n,o;const l=$(),a=r.useRef(null),s=j(l,I),u=j(l,T),c=N(),[d,f]=r.useState(""),m=(e=>{const{classes:t}=e;return(0,p.Z)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},g.d,t)})({classes:c.classes}),h=e=>{const{name:t}=e.target;l.current.setColumnVisibility(t,!1===u[t])},b=r.useCallback((e=>l.current.unstable_caches.columns.isUsingColumnVisibilityModel?e?l.current.setColumnVisibilityModel({}):l.current.setColumnVisibilityModel(Object.fromEntries(s.filter((e=>!1!==e.hideable)).map((e=>[e.field,!1])))):l.current.updateColumns(s.map((t=>!1!==t.hideable?{field:t.field,hide:!e}:t)))),[l,s]),v=r.useCallback((e=>{f(e.target.value)}),[]),C=r.useMemo((()=>{if(!d)return s;const e=d.toLowerCase();return s.filter((t=>(t.headerName||t.field).toLowerCase().indexOf(e)>-1))}),[s,d]);return r.useEffect((()=>{a.current.focus()}),[]),(0,oe.jsxs)(Ua,(0,i.Z)({},e,{children:[(0,oe.jsx)(us,{children:(0,oe.jsx)(c.components.BaseTextField,(0,i.Z)({label:l.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:l.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:a,value:d,onChange:v,variant:"standard",fullWidth:!0},null==(t=c.componentsProps)?void 0:t.baseTextField))}),(0,oe.jsx)(La,{children:(0,oe.jsx)(fs,{className:m.root,children:C.map((e=>{var t;return(0,oe.jsxs)(ms,{className:m.columnsPanelRow,children:[(0,oe.jsx)(is.Z,{control:(0,oe.jsx)(c.components.BaseSwitch,(0,i.Z)({disabled:!1===e.hideable,checked:!1!==u[e.field],onClick:h,name:e.field,size:"small"},null==(t=c.componentsProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!c.disableColumnReorder&&ps&&(0,oe.jsx)(gs,{draggable:!0,"aria-label":l.current.getLocaleText("columnsPanelDragIconLabel"),title:l.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:(0,oe.jsx)(Vt,{})})]},e.field)}))})}),(0,oe.jsxs)($a,{children:[(0,oe.jsx)(c.components.BaseButton,(0,i.Z)({onClick:()=>b(!1)},null==(n=c.componentsProps)?void 0:n.baseButton,{children:l.current.getLocaleText("columnsPanelHideAllButton")})),(0,oe.jsx)(c.components.BaseButton,(0,i.Z)({onClick:()=>b(!0)},null==(o=c.componentsProps)?void 0:o.baseButton,{children:l.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))},Panel:ws,Row:function(e){var t;const{selected:n,rowId:o,row:l,index:u,style:c,rowHeight:d,className:f,visibleColumns:m,renderedColumns:h,containerWidth:b,firstColumnToRender:v,cellFocus:C,cellTabIndex:w,editRowsState:y,isLastVisible:x=!1,onClick:R,onDoubleClick:k,onMouseEnter:Z,onMouseLeave:S}=e,P=(0,a.Z)(e,ys),E=u+2,M=$(),I=r.useRef(null),T=N(),F=rl(M,T),_=j(M,O),D=j(M,ye),H=j(M,Y),{hasScrollX:L,hasScrollY:z}=null!=(t=M.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},V=(e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:l,classes:i}=e,a={root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible","auto"===l&&"row--dynamicHeight"]};return(0,p.Z)(a,g.d,i)})({selected:n,isLastVisible:x,classes:T.classes,editing:M.current.getRowMode(o)===wr.Edit,editable:T.editMode===vr.Row,rowHeight:d});r.useLayoutEffect((()=>{"auto"===d&&I.current&&"undefined"===typeof ResizeObserver&&M.current.unstable_storeRowHeightMeasurement(o,I.current.clientHeight)})),r.useLayoutEffect((()=>{F.range&&M.current.unstable_setLastMeasuredRowIndex(u-F.range.firstRowIndex);const e=I.current;if(!e||"auto"!==d||"undefined"===typeof ResizeObserver)return;const t=new ResizeObserver((e=>{const[t]=e,n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;M.current.unstable_storeRowHeightMeasurement(o,n)}));return t.observe(e),()=>t.disconnect()}),[M,F.range,u,d,o]);const A=r.useCallback(((e,t)=>n=>{(1!==n.target.nodeType||n.currentTarget.contains(n.target))&&M.current.getRow(o)&&(M.current.publishEvent(e,M.current.getRowParams(o),n),t&&t(n))}),[M,o]),B=r.useCallback((e=>{const t=zl(e.target,g._.cell),n=null==t?void 0:t.getAttribute("data-field");if(n){if(n===_o.field)return;if(n===ll)return;if("__reorder__"===n)return;if(M.current.getCellMode(o,n)===Cr.Edit)return;if(M.current.getColumn(n).type===qr)return}A("rowClick",R)(e)}),[M,R,A,o]),U=(0,i.Z)({},c,{maxHeight:"auto"===d?"none":d,minHeight:d}),W=M.current.unstable_getRowInternalSizes(o);if(null!=W&&W.spacingTop){U["border"===T.rowSpacingType?"borderTopWidth":"marginTop"]=W.spacingTop}if(null!=W&&W.spacingBottom){U["border"===T.rowSpacingType?"borderBottomWidth":"marginBottom"]=W.spacingBottom}let K=null;if("function"===typeof T.getRowClassName){const e=u-F.range.firstRowIndex,t=(0,i.Z)({},M.current.getRowParams(o),{isFirstVisible:0===e,isLastVisible:e===F.rows.length-1,indexRelativeToCurrentPage:e});K=T.getRowClassName(t)}const G=[];for(let r=0;r1&&Object.keys(y).length>0;e.cellClassName&&p.push((0,s.Z)("function"===typeof e.cellClassName?e.cellClassName(c):e.cellClassName));const b=y[o]?y[o][e.field]:null;let x=null;var q;if(null==b&&e.renderCell)x=e.renderCell((0,i.Z)({},c,{api:M.current})),p.push((0,s.Z)(g._["cell--withRenderer"],null==(q=T.classes)?void 0:q["cell--withRenderer"]));if(null!=b&&e.renderEditCell){var X;let t=l;M.current.unstable_getRowWithUpdatedValues&&(t=M.current.unstable_getRowWithUpdatedValues(o,e.field));const n=(0,i.Z)({},c,{row:t},b,{api:M.current});x=e.renderEditCell(n),p.push((0,s.Z)(g._["cell--editing"],null==(X=T.classes)?void 0:X["cell--editing"]))}T.getCellClassName&&p.push(T.getCellClassName(c));const R=null!==C&&C.id===o&&C.field===e.field,k=null!==w&&w.id===o&&w.field===e.field&&"view"===c.cellMode?0:-1,Z=M.current.unstable_getCellColSpanInfo(o,t);if(Z&&!Z.spannedByColSpan){var Q;const{colSpan:n,width:r}=Z.cellProps;G.push((0,oe.jsx)(T.components.Cell,(0,i.Z)({value:c.value,field:e.field,width:r,rowId:o,height:d,showRightBorder:u,formattedValue:c.formattedValue,align:e.align||"left",cellMode:c.cellMode,colIndex:t,isEditable:c.isEditable,hasFocus:R,tabIndex:k,className:(0,s.Z)(p),colSpan:n,disableDragEvents:f},null==(Q=T.componentsProps)?void 0:Q.cell,{children:x}),e.field))}}const J=b-_;return(0,oe.jsxs)("div",(0,i.Z)({ref:I,"data-id":o,"data-rowindex":u,role:"row",className:(0,s.Z)(K,V.root,f),"aria-rowindex":E,"aria-selected":n,style:U,onClick:B,onDoubleClick:A("rowDoubleClick",k),onMouseEnter:A("rowMouseEnter",Z),onMouseLeave:A("rowMouseLeave",S)},P,{children:[G,J>0&&(0,oe.jsx)(xs,{width:J})]}))}}),Is={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},Ts={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:ao.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,editMode:vr.Cell,filterMode:Ao,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:Ao,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:Ao,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1},Fs=["className"],_s=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),Os=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Fs),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["virtualScroller"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(_s,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))})),Ds=["className","style"],Hs=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Ls=r.forwardRef((function(e,t){const{className:n,style:r}=e,o=(0,a.Z)(e,Ds),l=N(),u=(e=>{const{classes:t,overflowedContent:n}=e,r={root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]};return(0,p.Z)(r,g.d,t)})({classes:l.classes,overflowedContent:!l.autoHeight&&"auto"===(null==r?void 0:r.minHeight)});return(0,oe.jsx)(Hs,(0,i.Z)({ref:t,className:(0,s.Z)(u.root,n),style:r},o))})),js=["className"],zs=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),$s=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,js),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["virtualScrollerRenderZone"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(zs,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))}));var Vs=n(3935);const Ns=["style"];function As(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2);return e<=t[o]?As(e,t,n,o):As(e,t,o+1,r)}const Bs=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Be(e-n,r,o),Be(t+n,r,o)],Us=e=>{const t=$(),n=N(),o=j(t,F),{ref:l,disableVirtualization:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=o.length,getRowProps:f}=e,m=j(t,_),g=j(t,O),h=j(t,te),b=j(t,go),v=j(t,vo),C=j(t,No),w=j(t,gl),y=j(t,Ro),x=rl(t,n),R=r.useRef(null),k=r.useRef(null),Z=(0,c.Z)(l,k),[S,P]=r.useState(null),E=r.useRef(S),M=r.useRef({top:0,left:0}),[I,T]=r.useState(null),D=r.useRef(g),H=r.useCallback((e=>{const n=Math.max(0,t.current.unstable_getLastMeasuredRowIndex());return n===1/0||C.positions[n]>=e?As(e,C.positions):function(e,t,n){let r=1;for(;n{if(s)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:o.length};const{top:e,left:r}=M.current,l=Math.min(H(e),C.positions.length-1),i=n.autoHeight?l+x.rows.length:H(e+k.current.clientHeight);let a=!1,u=0,c=m.length;const[d,p]=Bs({firstIndex:l,lastIndex:i,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:n.rowBuffer});for(let n=d;n{s?R.current.style.transform="translate3d(0px, 0px, 0px)":(k.current.scrollLeft=0,k.current.scrollTop=0)}),[s]),r.useEffect((()=>{T(k.current.clientWidth)}),[C.currentPageTotalHeight]);const z=r.useCallback((()=>{k.current&&T(k.current.clientWidth)}),[]);rt(t,"resize",z);const V=r.useCallback((e=>{const[r,o]=Bs({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:n.rowBuffer}),[l]=Bs({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:n.columnBuffer}),i=ro({firstColumnToRender:l,apiRef:t,firstRowToRender:r,lastRowToRender:o,visibleRows:x.rows}),a=No(t.current.state).positions[r],s=_(t)[i];R.current.style.transform=`translate3d(${s}px, ${a}px, 0px)`,"function"===typeof u&&u({top:a,left:s})}),[t,x.rows,u,d,p,n.columnBuffer,n.rowBuffer]);r.useLayoutEffect((()=>{S&&V(S)}),[S,V]);const A=r.useCallback((e=>{P(e),E.current=e}),[P,E]);r.useEffect((()=>{if(null==I)return;const e=L();A(e);const{top:n,left:r}=M.current,o={top:n,left:r,renderContext:e};t.current.publishEvent("rowsScroll",o)}),[t,L,I,A]);const B=e=>{const{scrollTop:r,scrollLeft:o}=e.currentTarget;if(M.current.top=r,M.current.left=o,o<0||r<0||!E.current)return;const l=s?E.current:L(),i=Math.abs(l.firstRowIndex-E.current.firstRowIndex),a=Math.abs(l.lastRowIndex-E.current.lastRowIndex),u=Math.abs(l.firstColumnIndex-E.current.firstColumnIndex),c=Math.abs(l.lastColumnIndex-E.current.lastColumnIndex),d=i>=n.rowThreshold||a>=n.rowThreshold||u>=n.columnThreshold||c>=n.columnThreshold||D.current!==g;t.current.publishEvent("rowsScroll",{top:r,left:o,renderContext:d?l:E.current},e),d&&(Vs.flushSync((()=>{A(l)})),D.current=g)},U=e=>{t.current.publishEvent("virtualScrollerWheel",{},e)},W=e=>{t.current.publishEvent("virtualScrollerTouchMove",{},e)},K=I&&g>I,G=r.useMemo((()=>{const e=Math.max(C.currentPageTotalHeight,1);let t=!1;null!=k&&k.current&&e<=(null==k?void 0:k.current.clientHeight)&&(t=!0);const r={width:K?g:"auto",height:e,minHeight:t?"100%":"auto"};return n.autoHeight&&0===x.rows.length&&(r.height=2*h),r}),[k,g,C.currentPageTotalHeight,x.rows.length,K,n.autoHeight,h]);r.useEffect((()=>{t.current.publishEvent("virtualScrollerContentSizeChange")}),[t,G]),n.autoHeight&&0===x.rows.length&&(G.height=2*h);const q={};K||(q.overflowX="hidden"),n.autoHeight&&(q.overflowY="hidden");const X=r.useCallback((()=>E.current),[]);return t.current.unstable_getRenderContext=X,{renderContext:S,updateRenderZonePosition:V,getRows:(e={renderContext:S})=>{const{renderContext:r,minFirstColumn:l=d,maxLastColumn:a=p,availableSpace:u=I,ignoreAutoHeight:c}=e;if(!x.range||!r||null==u)return null;const m=s?0:n.rowBuffer,g=s?0:n.columnBuffer,[h,C]=Bs({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:m}),R=[];for(let n=h;n{let{style:t={}}=e,n=(0,a.Z)(e,Ns);return(0,i.Z)({ref:Z,onScroll:B,onWheel:U,onTouchMove:W,style:(0,i.Z)({},t,q)},n)},getContentProps:({style:e={}}={})=>({style:(0,i.Z)({},e,G)}),getRenderZoneProps:()=>({ref:R})}},Ws=["className","disableVirtualization"],Ks=r.forwardRef((function(e,t){const{className:n,disableVirtualization:r}=e,o=(0,a.Z)(e,Ws),{getRootProps:l,getContentProps:s,getRenderZoneProps:u,getRows:c}=Us({ref:t,disableVirtualization:r});return(0,oe.jsx)(Os,(0,i.Z)({className:n},l(o),{children:(0,oe.jsx)(Ls,(0,i.Z)({},s(),{children:(0,oe.jsx)($s,(0,i.Z)({},u(),{children:c()}))}))}))}));function Gs(e){const{direction:t,index:n,sortingOrder:r}=e,o=$(),l=N(),a=(e=>{const{classes:t}=e;return(0,p.Z)({icon:["sortIcon"]},g.d,t)})((0,i.Z)({},e,{classes:l.classes})),s=function(e,t,n,r){let o;const l={};return"asc"===t?o=e.ColumnSortedAscendingIcon:"desc"===t?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,l.sortingOrder=r),o?(0,oe.jsx)(o,(0,i.Z)({fontSize:"small",className:n},l)):null}(l.components,t,a.icon,r);if(!s)return null;const u=(0,oe.jsx)(_r.Z,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:s});return(0,oe.jsxs)(yi,{children:[null!=n&&(0,oe.jsx)(vi,{badgeContent:n,color:"default",children:u}),null==n&&u]})}const qs=r.memo(Gs),Xs=["className"],Ys=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})((({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium}))),Qs=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Xs),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["columnHeaderTitle"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Ys,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))}));function Js(e){var t;const{label:n,description:o,columnWidth:l}=e,a=N(),s=r.useRef(null),[u,c]=r.useState("");return r.useEffect((()=>{if(!o&&s&&s.current){const t=(e=s.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;c(t?n:"")}var e}),[s,l,o,n]),(0,oe.jsx)(a.components.BaseTooltip,(0,i.Z)({title:o||u},null==(t=a.componentsProps)?void 0:t.baseTooltip,{children:(0,oe.jsx)(Qs,{ref:s,children:n})}))}const eu=["resizable","resizing","height","side"];var tu;!function(e){e.Left="left",e.Right="right"}(tu||(tu={}));function nu(e){const{height:t,side:n=tu.Right}=e,o=(0,a.Z)(e,eu),l=N(),s=(e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${(0,u.Z)(o)}`],icon:["iconSeparator"]};return(0,p.Z)(l,g.d,r)})((0,i.Z)({},e,{side:n,classes:l.classes})),c=r.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,oe.jsx)("div",(0,i.Z)({className:s.root,style:{minHeight:t,opacity:l.showColumnRightBorder?0:1}},o,{onClick:c,children:(0,oe.jsx)(l.components.ColumnResizeIcon,{className:s.icon})}))}const ru=r.memo(nu),ou=r.memo((e=>{const{column:t,open:n,columnMenuId:o,columnMenuButtonId:l,iconButtonRef:a}=e,s=$(),u=N(),c=(e=>{const{classes:t,open:n}=e,r={root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]};return(0,p.Z)(r,g.d,t)})((0,i.Z)({},e,{classes:u.classes})),d=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),s.current.toggleColumnMenu(t.field)}),[s,t.field]);return(0,oe.jsx)("div",{className:c.root,children:(0,oe.jsx)(_r.Z,{ref:a,tabIndex:-1,className:c.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:d,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":o,id:l,children:(0,oe.jsx)(u.components.ColumnMenuIcon,{fontSize:"small"})})})}));function lu({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:o,field:l,open:a,target:s,onExited:u}){const c=$(),d=c.current.getColumn(l),p=r.useCallback((e=>{e.stopPropagation(),c.current.hideColumnMenu()}),[c]);return s?(0,oe.jsx)(Wr,{placement:"bottom-"+("right"===d.align?"start":"end"),open:a,target:s,onClickAway:p,onExited:u,children:(0,oe.jsx)(n,(0,i.Z)({currentColumn:d,hideMenu:p,open:a,id:e,labelledby:t},o))}):null}function iu(e){var t,n,o,l,a;const{column:u,columnMenuOpen:c,colIndex:d,headerHeight:f,isResizing:m,isLastColumn:h,sortDirection:b,sortIndex:v,filterItemsCounter:C,hasFocus:w,tabIndex:y,extendRowFullWidth:x,disableReorder:R,separatorSide:k}=e,Z=$(),S=N(),P=r.useRef(null),E=(0,Ut.Z)(),M=(0,Ut.Z)(),I=r.useRef(null),[T,F]=r.useState(c),{hasScrollX:_,hasScrollY:O}=null!=(t=Z.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},D=r.useMemo((()=>!S.disableColumnReorder&&!R&&!u.disableReorder),[S.disableColumnReorder,R,u.disableReorder]);let H=null;u.renderHeader&&(H=u.renderHeader(Z.current.getColumnHeaderParams(u.field)));const L=r.useCallback((e=>t=>{t.currentTarget.contains(t.target)&&Z.current.publishEvent(e,Z.current.getColumnHeaderParams(u.field),t)}),[Z,u.field]),j={onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")},z=D?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:null,V=h?!(h&&_&&!O)&&!x:S.showColumnRightBorder,A=(e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:l,filterItemsCounter:i}=e,a=null!=o,s=null!=i&&i>0,u="number"===t.type,c={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",s&&"columnHeader--filtered",u&&"columnHeader--numeric",l&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,p.Z)(c,g.d,n)})((0,i.Z)({},e,{classes:S.classes,showRightBorder:V})),B=u.computedWidth;let U="none";null!=b&&(U="asc"===b?"ascending":"descending"),r.useEffect((()=>{T||F(c)}),[T,c]);const W=r.useCallback((()=>{F(!1)}),[]),K=!S.disableColumnMenu&&!u.disableColumnMenu&&(0,oe.jsx)(ou,{column:u,columnMenuId:E,columnMenuButtonId:M,open:T,iconButtonRef:I}),G=null!=(n=u.sortingOrder)?n:S.sortingOrder,q=(0,oe.jsxs)(r.Fragment,{children:[!S.disableColumnFilter&&(0,oe.jsx)(S.components.ColumnHeaderFilterIconButton,(0,i.Z)({field:u.field,counter:C},null==(o=S.componentsProps)?void 0:o.columnHeaderFilterIconButton)),u.sortable&&!u.hideSortIcons&&(0,oe.jsx)(qs,{direction:b,index:v,sortingOrder:G})]});r.useLayoutEffect((()=>{const e=Z.current.state.columnMenu;if(w&&!e.open){const e=P.current.querySelector('[tabindex="0"]')||P.current;null==e||e.focus(),Z.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[Z,w]);const X="function"===typeof u.headerClassName?u.headerClassName({field:u.field,colDef:u}):u.headerClassName,Y=null!=(l=u.headerName)?l:u.field;return(0,oe.jsxs)("div",(0,i.Z)({ref:P,className:(0,s.Z)(A.root,X),"data-field":u.field,style:{width:B,minWidth:B,maxWidth:B},role:"columnheader",tabIndex:y,"aria-colindex":d+1,"aria-sort":U,"aria-label":u.renderHeader&&null==H?Y:void 0},j,{children:[(0,oe.jsxs)("div",(0,i.Z)({className:A.draggableContainer,draggable:D},z,{children:[(0,oe.jsxs)("div",{className:A.titleContainer,children:[(0,oe.jsx)("div",{className:A.titleContainerContent,children:u.renderHeader?H:(0,oe.jsx)(Js,{label:Y,description:u.description,columnWidth:B})}),q]}),K]})),(0,oe.jsx)(ru,{resizable:!S.disableColumnResize&&!!u.resizable,resizing:m,height:f,onMouseDown:L("columnSeparatorMouseDown"),side:k}),(0,oe.jsx)(lu,{columnMenuId:E,columnMenuButtonId:M,field:u.field,open:c,target:I.current,ContentComponent:S.components.ColumnMenu,contentComponentProps:null==(a=S.componentsProps)?void 0:a.columnMenu,onExited:W})]}))}const au=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${g._["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${g._["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${g._["scrollArea--left"]}`]:{left:0},[`&.${g._["scrollArea--right"]}`]:{right:0}})));function su(e){const{scrollDirection:t}=e,n=r.useRef(null),o=$(),l=r.useRef(),[a,u]=r.useState(!1),c=j(o,ne),d=r.useRef({left:0,top:0}),f=N(),m=(e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return(0,p.Z)(r,g.d,n)})((0,i.Z)({},e,{classes:f.classes})),h=r.useCallback((e=>{d.current=e}),[]),b=r.useCallback((e=>{let r;if("left"===t)r=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI: Wrong drag direction");r=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}r=1.5*(r-1)+1,clearTimeout(l.current),l.current=setTimeout((()=>{o.current.scroll({left:d.current.left+r,top:d.current.top})}))}),[t,o]);r.useEffect((()=>()=>{clearTimeout(l.current)}),[]);const v=r.useCallback((()=>{u((e=>!e))}),[]);return rt(o,"rowsScroll",h),rt(o,"columnHeaderDragStart",v),rt(o,"columnHeaderDragEnd",v),a?(0,oe.jsx)(au,{ref:n,className:(0,s.Z)(m.root),onDragOver:b,style:{height:c}}):null}const uu=r.memo(su),cu=["className"],du=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})((({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:`1px solid ${"light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius}))),pu=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,cu),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["columnHeaders"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(du,(0,i.Z)({ref:t,className:(0,s.Z)(n,o.root)},r))})),fu=["isDragging","className"],mu=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${g._.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"center",[`&.${g._.columnHeaderDropZone} .${g._.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${g._["columnHeadersInner--scrollable"]} .${g._.columnHeader}:last-child`]:{borderRight:"none"}}))),gu=r.forwardRef((function(e,t){var n,r;const{isDragging:o,className:l}=e,u=(0,a.Z)(e,fu),c=$(),d=N(),f=(e=>{const{isDragging:t,hasScrollX:n,classes:r}=e,o={root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]};return(0,p.Z)(o,g.d,r)})({isDragging:o,hasScrollX:null!=(n=null==(r=c.current.getRootDimensions())?void 0:r.hasScrollX)&&n,classes:d.classes});return(0,oe.jsx)(mu,(0,i.Z)({ref:t,className:(0,s.Z)(l,f.root)},u))})),hu=["innerRef","className"],bu=r.forwardRef((function(e,t){const{innerRef:n}=e,o=(0,a.Z)(e,hu),{isDragging:l,getRootProps:s,getInnerProps:u,getColumns:d}=(e=>{const{innerRef:t,minColumnIndex:n=0}=e,[o,l]=r.useState(""),[a,s]=r.useState(""),u=$(),d=j(u,F),p=j(u,_),f=j(u,Co),m=j(u,vo),g=j(u,ho),h=j(u,ne),b=j(u,De),v=j(u,xe),w=j(u,bt),y=N(),x=r.useRef(null),R=(0,c.Z)(t,x),[k,Z]=r.useState(null),S=r.useRef(k),P=r.useRef(0),E=rl(u,y);r.useEffect((()=>{u.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[u]);const M=r.useRef(C(oo,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((n=>e[n]===t[n]))})),I=r.useCallback((e=>{const[t,r]=Bs({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:y.rowBuffer}),o=M.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:n,columnBuffer:y.columnBuffer,firstRowToRender:t,lastRowToRender:r,apiRef:u,visibleRows:E.rows}),l=o>0?P.current-p[o]:P.current;x.current.style.transform=`translate3d(${-l}px, 0px, 0px)`}),[p,n,y.columnBuffer,u,E.rows,y.rowBuffer]);r.useLayoutEffect((()=>{k&&I(k)}),[k,I]);const T=r.useCallback((({left:e,renderContext:t=null},n)=>{var r,o;if(!x.current)return;if(P.current===e&&(null==(r=S.current)?void 0:r.firstColumnIndex)===(null==t?void 0:t.firstColumnIndex)&&(null==(o=S.current)?void 0:o.lastColumnIndex)===(null==t?void 0:t.lastColumnIndex))return;P.current=e;let l=!1;t===S.current&&S.current?l=!0:(function(e){return!!e.target}(n)?(Vs.flushSync((()=>{Z(t)})),l=!0):Z(t),S.current=t),t&&l&&I(t)}),[I]),O=r.useCallback((e=>s(e.field)),[]),D=r.useCallback((()=>s("")),[]),H=r.useCallback((e=>l(e.field)),[]),L=r.useCallback((()=>l("")),[]);rt(u,"columnResizeStart",O),rt(u,"columnResizeStop",D),rt(u,"columnHeaderDragStart",H),rt(u,"columnHeaderDragEnd",L),rt(u,"rowsScroll",T);const z={minHeight:h,maxHeight:h,lineHeight:`${h}px`};return{renderContext:k,getColumns:(e,t={})=>{const{renderContext:r=k,minFirstColumn:l=n,maxLastColumn:s=d.length}=e||{};if(!r)return null;const c=[],[p,C]=Bs({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:y.rowBuffer}),x=M.current({firstColumnIndex:r.firstColumnIndex,minColumnIndex:l,columnBuffer:y.columnBuffer,apiRef:u,firstRowToRender:p,lastRowToRender:C,visibleRows:E.rows}),R=Math.min(r.lastColumnIndex+y.columnBuffer,s),Z=d.slice(x,R);for(let n=0;n(0,i.Z)({style:z},e),getInnerProps:()=>({ref:R,"aria-rowindex":1,role:"row"})}})({innerRef:n});return(0,oe.jsxs)(pu,(0,i.Z)({ref:t},s(o),{children:[(0,oe.jsx)(uu,{scrollDirection:"left"}),(0,oe.jsx)(gu,(0,i.Z)({isDragging:l},u(),{children:d()})),(0,oe.jsx)(uu,{scrollDirection:"right"})]}))})),vu=r.forwardRef((function(e,t){const n=(e=>{if(e.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=(0,mn.Z)({props:e,name:"MuiDataGrid"}),n=r.useMemo((()=>(0,i.Z)({},Yl,t.localeText)),[t.localeText]),o=r.useMemo((()=>{const e=t.components;if(!e)return(0,i.Z)({},Ms);const n={};return Object.entries(Ms).forEach((([t,r])=>{n[t]=void 0===e[t]?r:e[t]})),n}),[t.components]);return r.useMemo((()=>(0,i.Z)({},Ts,t,{localeText:n,components:o},Is)),[t,n,o])})(e),o=Xl(n);return(0,oe.jsx)($e,{apiRef:o,props:n,children:(0,oe.jsx)(ie,{className:n.className,style:n.style,sx:n.sx,ref:t,children:(0,oe.jsxs)(de,{children:[(0,oe.jsx)(pe,{}),(0,oe.jsx)(je,{ColumnHeadersComponent:bu,VirtualScrollerComponent:Ks}),(0,oe.jsx)(ze,{})]})})})})),Cu=r.memo(vu);vu.propTypes={"aria-label":l().string,"aria-labelledby":l().string,autoHeight:l().bool,autoPageSize:l().bool,cellModesModel:l().object,checkboxSelection:l().bool,classes:l().object,columnBuffer:l().number,columns:(l().array.isRequired,()=>null),columnThreshold:l().number,columnTypes:l().object,columnVisibilityModel:l().object,components:l().object,componentsProps:l().object,density:l().oneOf(["comfortable","compact","standard"]),disableColumnFilter:l().bool,disableColumnMenu:l().bool,disableColumnSelector:l().bool,disableDensitySelector:l().bool,disableExtendRowFullWidth:l().bool,disableSelectionOnClick:l().bool,disableVirtualization:l().bool,editMode:l().oneOf(["cell","row"]),editRowsModel:l().object,error:l().any,experimentalFeatures:l().shape({newEditingApi:l().bool,preventCommitWhileValidating:l().bool,warnIfFocusStateIsNotSynced:l().bool}),filterMode:l().oneOf(["client","server"]),filterModel:l().shape({items:l().arrayOf(l().shape({columnField:l().string.isRequired,id:l().oneOfType([l().number,l().string]),operatorValue:l().string,value:l().any})).isRequired,linkOperator:l().oneOf(["and","or"]),quickFilterLogicOperator:l().oneOf(["and","or"]),quickFilterValues:l().array}),getCellClassName:l().func,getDetailPanelContent:l().func,getEstimatedRowHeight:l().func,getRowClassName:l().func,getRowHeight:l().func,getRowId:l().func,getRowSpacing:l().func,headerHeight:l().number,hideFooter:l().bool,hideFooterPagination:l().bool,hideFooterSelectedRowCount:l().bool,initialState:l().object,isCellEditable:l().func,isRowSelectable:l().func,keepNonExistentRowsSelected:l().bool,loading:l().bool,localeText:l().object,logger:l().shape({debug:l().func.isRequired,error:l().func.isRequired,info:l().func.isRequired,warn:l().func.isRequired}),logLevel:l().oneOf(["debug","error","info","warn",!1]),nonce:l().string,onCellClick:l().func,onCellDoubleClick:l().func,onCellEditCommit:l().func,onCellEditStart:l().func,onCellEditStop:l().func,onCellFocusOut:l().func,onCellKeyDown:l().func,onCellModesModelChange:l().func,onColumnHeaderClick:l().func,onColumnHeaderDoubleClick:l().func,onColumnHeaderEnter:l().func,onColumnHeaderLeave:l().func,onColumnHeaderOut:l().func,onColumnHeaderOver:l().func,onColumnOrderChange:l().func,onColumnVisibilityChange:l().func,onColumnVisibilityModelChange:l().func,onEditCellPropsChange:l().func,onEditRowsModelChange:l().func,onError:l().func,onFilterModelChange:l().func,onMenuClose:l().func,onMenuOpen:l().func,onPageChange:l().func,onPageSizeChange:l().func,onPreferencePanelClose:l().func,onPreferencePanelOpen:l().func,onProcessRowUpdateError:l().func,onResize:l().func,onRowClick:l().func,onRowDoubleClick:l().func,onRowEditCommit:l().func,onRowEditStart:l().func,onRowEditStop:l().func,onRowModesModelChange:l().func,onSelectionModelChange:l().func,onSortModelChange:l().func,onStateChange:l().func,page:l().number,pageSize:(l().number,()=>null),pagination:e=>!1===e.pagination?new Error(["MUI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the DataGridPro component to disable the pagination."].join("\n")):null,paginationMode:l().oneOf(["client","server"]),processRowUpdate:l().func,rowBuffer:l().number,rowCount:l().number,rowHeight:l().number,rowModesModel:l().object,rows:l().array.isRequired,rowSpacingType:l().oneOf(["border","margin"]),rowsPerPageOptions:l().arrayOf(l().number),rowThreshold:l().number,scrollbarSize:l().number,selectionModel:(l().oneOfType([l().number,l().string,l().array]),()=>null),showCellRightBorder:l().bool,showColumnRightBorder:l().bool,sortingMode:l().oneOf(["client","server"]),sortingOrder:l().arrayOf(l().oneOf(["asc","desc"])),sortModel:l().arrayOf(l().shape({field:l().string.isRequired,sort:l().oneOf(["asc","desc"])})),sx:l().oneOfType([l().arrayOf(l().oneOfType([l().func,l().object,l().bool])),l().func,l().object])}},3490:function(e,t,n){"use strict";n.d(t,{d:function(){return o},_:function(){return l}});var r=n(8979);function o(e){return(0,r.Z)("MuiDataGrid",e)}const l=(0,n(6087).Z)("MuiDataGrid",["actionsCell","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle"])},8951:function(e,t){(function(){var e,n,r,o,l,i,a,s;s=function(e){return[(e&255<<24)>>>24,(e&255<<16)>>>16,(65280&e)>>>8,255&e].join(".")},a=function(e){var t,r,o,l,i,a;for(t=[],o=l=0;l<=3&&0!==e.length;o=++l){if(o>0){if("."!==e[0])throw new Error("Invalid IP");e=e.substring(1)}i=(a=n(e))[0],r=a[1],e=e.substring(r),t.push(i)}if(0!==e.length)throw new Error("Invalid IP");switch(t.length){case 1:if(t[0]>4294967295)throw new Error("Invalid IP");return t[0]>>>0;case 2:if(t[0]>255||t[1]>16777215)throw new Error("Invalid IP");return(t[0]<<24|t[1])>>>0;case 3:if(t[0]>255||t[1]>255||t[2]>65535)throw new Error("Invalid IP");return(t[0]<<24|t[1]<<16|t[2])>>>0;case 4:if(t[0]>255||t[1]>255||t[2]>255||t[3]>255)throw new Error("Invalid IP");return(t[0]<<24|t[1]<<16|t[2]<<8|t[3])>>>0;default:throw new Error("Invalid IP")}},o=(r=function(e){return e.charCodeAt(0)})("0"),i=r("a"),l=r("A"),n=function(e){var t,n,a,s,u;for(s=0,t=10,n="9",a=0,e.length>1&&"0"===e[a]&&("x"===e[a+1]||"X"===e[a+1]?(a+=2,t=16):"0"<=e[a+1]&&e[a+1]<="9"&&(a++,t=8,n="7")),u=a;a>>0;else{if(16!==t)break;if("a"<=e[a]&&e[a]<="f")s=s*t+(10+r(e[a])-i)>>>0;else{if(!("A"<=e[a]&&e[a]<="F"))break;s=s*t+(10+r(e[a])-l)>>>0}}if(s>4294967295)throw new Error("too large");a++}if(a===u)throw new Error("empty octet");return[s,a]},e=function(){function e(e,t){var n,r,o;if("string"!==typeof e)throw new Error("Missing `net' parameter");if(t||(o=e.split("/",2),e=o[0],t=o[1]),t||(t=32),"string"===typeof t&&t.indexOf(".")>-1){try{this.maskLong=a(t)}catch(l){throw l,new Error("Invalid mask: "+t)}for(n=r=32;r>=0;n=--r)if(this.maskLong===4294967295<<32-n>>>0){this.bitmask=n;break}}else{if(!t&&0!==t)throw new Error("Invalid mask: empty");this.bitmask=parseInt(t,10),this.maskLong=0,this.bitmask>0&&(this.maskLong=4294967295<<32-this.bitmask>>>0)}try{this.netLong=(a(e)&this.maskLong)>>>0}catch(l){throw l,new Error("Invalid net address: "+e)}if(!(this.bitmask<=32))throw new Error("Invalid mask for ip4: "+t);this.size=Math.pow(2,32-this.bitmask),this.base=s(this.netLong),this.mask=s(this.maskLong),this.hostmask=s(~this.maskLong),this.first=this.bitmask<=30?s(this.netLong+1):this.base,this.last=this.bitmask<=30?s(this.netLong+this.size-2):s(this.netLong+this.size-1),this.broadcast=this.bitmask<=30?s(this.netLong+this.size-1):void 0}return e.prototype.contains=function(t){return"string"===typeof t&&(t.indexOf("/")>0||4!==t.split(".").length)&&(t=new e(t)),t instanceof e?this.contains(t.base)&&this.contains(t.broadcast||t.last):(a(t)&this.maskLong)>>>0===(this.netLong&this.maskLong)>>>0},e.prototype.next=function(t){return null==t&&(t=1),new e(s(this.netLong+this.size*t),this.mask)},e.prototype.forEach=function(e){var t,n,r;for(r=a(this.first),n=a(this.last),t=0;r<=n;)e(s(r),r,t),t++,r++},e.prototype.toString=function(){return this.base+"/"+this.bitmask},e}(),t.ip2long=a,t.long2ip=s,t.Netmask=e}).call(this)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},1581:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[404],{3554:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7462),o=n(8442);function l(e,t={},n){return(0,o.Z)(e)?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},9699:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandle")},4386:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(3366),o=n(7462),l=n(7294),i=n(6010),a=n(7192),s=n(3554),u=n(1796),c=n(1496),d=n(2734),p=n(3616),f=n(8216),m=n(6514),g=n(4606),h=n(2068),b=n(1705),v=n(7909),C=n(8791),w=n(9299),y=n(8979);function x(e){return(0,y.Z)("MuiTooltip",e)}var R=(0,n(6087).Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),k=n(5893);const Z=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];const S=(0,c.ZP)(g.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,o.Z)({zIndex:e.zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${R.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${R.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${R.arrow}`]:(0,o.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${R.arrow}`]:(0,o.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),P=(0,c.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,f.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,o.Z)({backgroundColor:(0,u.Fq)(e.palette.grey[700],.92),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${R.popper}[data-popper-placement*="left"] &`]:(0,o.Z)({transformOrigin:"right center"},t.isRtl?(0,o.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,o.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${R.popper}[data-popper-placement*="right"] &`]:(0,o.Z)({transformOrigin:"left center"},t.isRtl?(0,o.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,o.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${R.popper}[data-popper-placement*="top"] &`]:(0,o.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${R.popper}[data-popper-placement*="bottom"] &`]:(0,o.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),E=(0,c.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,u.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let M=!1,I=null;function T(e,t){return n=>{t&&t(n),e(n)}}var F=l.forwardRef((function(e,t){var n,u,c,y,R,F;const _=(0,p.Z)({props:e,name:"MuiTooltip"}),{arrow:O=!1,children:D,components:H={},componentsProps:L={},describeChild:j=!1,disableFocusListener:z=!1,disableHoverListener:$=!1,disableInteractive:V=!1,disableTouchListener:N=!1,enterDelay:A=100,enterNextDelay:B=0,enterTouchDelay:U=700,followCursor:W=!1,id:K,leaveDelay:G=0,leaveTouchDelay:q=1500,onClose:X,onOpen:Y,open:Q,placement:J="bottom",PopperComponent:ee,PopperProps:te={},title:ne,TransitionComponent:re=m.Z,TransitionProps:oe}=_,le=(0,r.Z)(_,Z),ie=(0,d.Z)(),ae="rtl"===ie.direction,[se,ue]=l.useState(),[ce,de]=l.useState(null),pe=l.useRef(!1),fe=V||W,me=l.useRef(),ge=l.useRef(),he=l.useRef(),be=l.useRef(),[ve,Ce]=(0,w.Z)({controlled:Q,default:!1,name:"Tooltip",state:"open"});let we=ve;const ye=(0,v.Z)(K),xe=l.useRef(),Re=l.useCallback((()=>{void 0!==xe.current&&(document.body.style.WebkitUserSelect=xe.current,xe.current=void 0),clearTimeout(be.current)}),[]);l.useEffect((()=>()=>{clearTimeout(me.current),clearTimeout(ge.current),clearTimeout(he.current),Re()}),[Re]);const ke=e=>{clearTimeout(I),M=!0,Ce(!0),Y&&!we&&Y(e)},Ze=(0,h.Z)((e=>{clearTimeout(I),I=setTimeout((()=>{M=!1}),800+G),Ce(!1),X&&we&&X(e),clearTimeout(me.current),me.current=setTimeout((()=>{pe.current=!1}),ie.transitions.duration.shortest)})),Se=e=>{pe.current&&"touchstart"!==e.type||(se&&se.removeAttribute("title"),clearTimeout(ge.current),clearTimeout(he.current),A||M&&B?ge.current=setTimeout((()=>{ke(e)}),M?B:A):ke(e))},Pe=e=>{clearTimeout(ge.current),clearTimeout(he.current),he.current=setTimeout((()=>{Ze(e)}),G)},{isFocusVisibleRef:Ee,onBlur:Me,onFocus:Ie,ref:Te}=(0,C.Z)(),[,Fe]=l.useState(!1),_e=e=>{Me(e),!1===Ee.current&&(Fe(!1),Pe(e))},Oe=e=>{se||ue(e.currentTarget),Ie(e),!0===Ee.current&&(Fe(!0),Se(e))},De=e=>{pe.current=!0;const t=D.props;t.onTouchStart&&t.onTouchStart(e)},He=Se,Le=Pe,je=e=>{De(e),clearTimeout(he.current),clearTimeout(me.current),Re(),xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout((()=>{document.body.style.WebkitUserSelect=xe.current,Se(e)}),U)},ze=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),Re(),clearTimeout(he.current),he.current=setTimeout((()=>{Ze(e)}),q)};l.useEffect((()=>{if(we)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ze(e)}}),[Ze,we]);const $e=(0,b.Z)(ue,t),Ve=(0,b.Z)(Te,$e),Ne=(0,b.Z)(D.ref,Ve);""===ne&&(we=!1);const Ae=l.useRef({x:0,y:0}),Be=l.useRef(),Ue={},We="string"===typeof ne;j?(Ue.title=we||!We||$?null:ne,Ue["aria-describedby"]=we?ye:null):(Ue["aria-label"]=We?ne:null,Ue["aria-labelledby"]=we&&!We?ye:null);const Ke=(0,o.Z)({},Ue,le,D.props,{className:(0,i.Z)(le.className,D.props.className),onTouchStart:De,ref:Ne},W?{onMouseMove:e=>{const t=D.props;t.onMouseMove&&t.onMouseMove(e),Ae.current={x:e.clientX,y:e.clientY},Be.current&&Be.current.update()}}:{});const Ge={};N||(Ke.onTouchStart=je,Ke.onTouchEnd=ze),$||(Ke.onMouseOver=T(He,Ke.onMouseOver),Ke.onMouseLeave=T(Le,Ke.onMouseLeave),fe||(Ge.onMouseOver=He,Ge.onMouseLeave=Le)),z||(Ke.onFocus=T(Oe,Ke.onFocus),Ke.onBlur=T(_e,Ke.onBlur),fe||(Ge.onFocus=Oe,Ge.onBlur=_e));const qe=l.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ce),options:{element:ce,padding:4}}];return null!=(e=te.popperOptions)&&e.modifiers&&(t=t.concat(te.popperOptions.modifiers)),(0,o.Z)({},te.popperOptions,{modifiers:t})}),[ce,te]),Xe=(0,o.Z)({},_,{isRtl:ae,arrow:O,disableInteractive:fe,placement:J,PopperComponentProp:ee,touch:pe.current}),Ye=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:l}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,f.Z)(l.split("-")[0])}`],arrow:["arrow"]};return(0,a.Z)(i,x,t)})(Xe),Qe=null!=(n=H.Popper)?n:S,Je=null!=(u=null!=(c=H.Transition)?c:re)?u:m.Z,et=null!=(y=H.Tooltip)?y:P,tt=null!=(R=H.Arrow)?R:E,nt=(0,s.Z)(Qe,(0,o.Z)({},te,L.popper),Xe),rt=(0,s.Z)(Je,(0,o.Z)({},oe,L.transition),Xe),ot=(0,s.Z)(et,(0,o.Z)({},L.tooltip),Xe),lt=(0,s.Z)(tt,(0,o.Z)({},L.arrow),Xe);return(0,k.jsxs)(l.Fragment,{children:[l.cloneElement(D,Ke),(0,k.jsx)(Qe,(0,o.Z)({as:null!=ee?ee:g.Z,placement:J,anchorEl:W?{getBoundingClientRect:()=>({top:Ae.current.y,left:Ae.current.x,right:Ae.current.x,bottom:Ae.current.y,width:0,height:0})}:se,popperRef:Be,open:!!se&&we,id:ye,transition:!0},Ge,nt,{className:(0,i.Z)(Ye.popper,null==te?void 0:te.className,null==(F=L.popper)?void 0:F.className),popperOptions:qe,children:({TransitionProps:e})=>{var t,n;return(0,k.jsx)(Je,(0,o.Z)({timeout:ie.transitions.duration.shorter},e,rt,{children:(0,k.jsxs)(et,(0,o.Z)({},ot,{className:(0,i.Z)(Ye.tooltip,null==(t=L.tooltip)?void 0:t.className),children:[ne,O?(0,k.jsx)(tt,(0,o.Z)({},lt,{className:(0,i.Z)(Ye.arrow,null==(n=L.arrow)?void 0:n.className),ref:de})):null]}))}))}}))]})}))},7070:function(e,t,n){"use strict";n(7294);var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},6686:function(e,t,n){"use strict";n(7294);var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},8396:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return d}});var o=n(7294),l=n(4168),i=n(539),a=n(8974);function s(e,t,n,r,l){const i="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,[s,u]=o.useState((()=>l&&i?n(e).matches:r?r(e).matches:t));return(0,a.Z)((()=>{let t=!0;if(!i)return;const r=n(e),o=()=>{t&&u(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}}),[e,n,i]),s}const u=(r||(r=n.t(o,2))).useSyncExternalStore;function c(e,t,n,r){const l=o.useCallback((()=>t),[t]),i=o.useMemo((()=>{if(null!==r){const{matches:t}=r(e);return()=>t}return l}),[l,e,r]),[a,s]=o.useMemo((()=>{if(null===n)return[l,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[l,n,e]);return u(s,a,i)}function d(e,t={}){const n=(0,l.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:p}=(0,i.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let f="function"===typeof e?e(n):e;f=f.replace(/^@media( ?)/m,"");return(void 0!==u?c:s)(f,o,a,d,p)}},7909:function(e,t,n){"use strict";var r=n(7579);t.Z=r.Z},8173:function(e,t,n){"use strict";n.d(t,{_:function(){return Cu}});var r=n(7294),o=n(1581),l=n.n(o);var i=n(7462),a=n(3366),s=n(6010),u=n(8216),c=n(1705),d=n(8974),p=n(7192),f=n(1496),m=n(1796),g=n(3490);const h=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${g._.autoHeight}`]:t.autoHeight},{[`& .${g._.editBooleanCell}`]:t.editBooleanCell},{[`& .${g._["cell--editing"]}`]:t["cell--editing"]},{[`& .${g._["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${g._["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${g._["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${g._["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${g._.cell}`]:t.cell},{[`& .${g._.cellContent}`]:t.cellContent},{[`& .${g._.cellCheckbox}`]:t.cellCheckbox},{[`& .${g._.checkboxInput}`]:t.checkboxInput},{[`& .${g._["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${g._["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${g._["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${g._["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${g._["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${g._["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${g._["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${g._["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${g._.columnHeader}`]:t.columnHeader},{[`& .${g._.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${g._.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${g._.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${g._["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${g._["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${g._.columnSeparator}`]:t.columnSeparator},{[`& .${g._.filterIcon}`]:t.filterIcon},{[`& .${g._.iconSeparator}`]:t.iconSeparator},{[`& .${g._.menuIcon}`]:t.menuIcon},{[`& .${g._.menuIconButton}`]:t.menuIconButton},{[`& .${g._.menuOpen}`]:t.menuOpen},{[`& .${g._.menuList}`]:t.menuList},{[`& .${g._["row--editable"]}`]:t["row--editable"]},{[`& .${g._["row--editing"]}`]:t["row--editing"]},{[`& .${g._["row--dragging"]}`]:t["row--dragging"]},{[`& .${g._.row}`]:t.row},{[`& .${g._.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${g._.rowReorderCell}`]:t.rowReorderCell},{[`& .${g._["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${g._.sortIcon}`]:t.sortIcon},{[`& .${g._.withBorder}`]:t.withBorder},{[`& .${g._.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${g._.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${g._.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${g._["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((({theme:e})=>{const t="light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68);return(0,i.Z)({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${g._.autoHeight}`]:{height:"auto",[`& .${g._["row--lastVisible"]} .${g._.cell}`]:{borderBottomColor:"transparent"}},[`& .${g._["virtualScrollerContent--overflowed"]} .${g._["row--lastVisible"]} .${g._.cell}`]:{borderBottomColor:"transparent"},[`& .${g._.columnHeader}, & .${g._.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${g._.columnHeader}:focus-within, & .${g._.cell}:focus-within`]:{outline:`solid ${(0,m.Fq)(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${g._.columnHeader}:focus, & .${g._.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${g._.columnHeaderCheckbox}, & .${g._.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${g._.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${g._["columnHeader--sorted"]} .${g._.iconButtonContainer}, & .${g._["columnHeader--filtered"]} .${g._.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${g._.columnHeader}:not(.${g._["columnHeader--sorted"]}) .${g._.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${g._.columnHeader}:not(.${g._["columnHeader--sorted"]}):hover .${g._.sortIcon}`]:{opacity:.5},[`& .${g._.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflowX:"hidden"},[`& .${g._.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${g._.sortIcon}, & .${g._.filterIcon}`]:{fontSize:"inherit"},[`& .${g._["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${g._["columnHeader--alignCenter"]} .${g._.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${g._["columnHeader--alignRight"]} .${g._.columnHeaderDraggableContainer}, & .${g._["columnHeader--alignRight"]} .${g._.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${g._["columnHeader--alignCenter"]} .${g._.menuIcon}, & .${g._["columnHeader--alignRight"]} .${g._.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${g._["columnHeader--alignRight"]} .${g._.menuIcon}, & .${g._["columnHeader--alignRight"]} .${g._.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${g._["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${g._.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${g._["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${g._["columnSeparator--sideRight"]}`]:{right:-12},[`& .${g._["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${g._["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${g._.iconSeparator}`]:{color:"inherit"},[`& .${g._.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${g._.columnHeader}:hover`]:{[`& .${g._.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${g._.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${g._.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${g._.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,m.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,m.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,m.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${g._.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${g._.row}:not(.${g._["row--dynamicHeight"]}) > .${g._.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${g._.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${g._.cell}.${g._["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${g._["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${g._["row--editing"]} .${g._.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${g._.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${g._.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${g._.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${g._.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${g._.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${g._["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${g._.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${g._.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${g._["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${g._["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${g._["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${g._.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%"},[`& .${g._.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${g._["columnHeader--dragging"]}, & .${g._["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${g._["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${g._.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${g._.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${g._.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${g._.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${g._.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}));var b="NOT_FOUND";var v=function(e,t){return e===t};function C(e,t){var n="object"===typeof t?t:{equalityCheck:t},r=n.equalityCheck,o=void 0===r?v:r,l=n.maxSize,i=void 0===l?1:l,a=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return b}return{get:r,put:function(t,o){r(t)===b&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(i,s);function c(){var t=u.get(arguments);if(t===b){if(t=e.apply(null,arguments),a){var n=u.getEntries(),r=n.find((function(e){return a(e.value,t)}));r&&(t=r.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function w(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}},k=(e,t)=>e,Z={cache:null},S=(R(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]),(...e)=>{null===Z.cache&&(Z.cache={});const t=(...t)=>{const[n,r]=t,o=!!n.current,l=o?n.current.instanceId:null!=r?r:"default",i=o?n.current.state:n;null===Z.cache&&(Z.cache={});const{cache:a}=Z;if(a[l]&&a[l].get(e))return a[l].get(e)(i,l);const s=x(...e);return a[l]||(a[l]=new Map),a[l].set(e,s),s(i,l)};return t.acceptsApiRef=!0,t}),P=e=>e.columns,E=S(P,(e=>e.all)),M=S(P,(e=>e.lookup)),I=S(E,M,((e,t)=>e.map((e=>t[e])))),T=S(P,(e=>e.columnVisibilityModel)),F=S(I,T,((e,t)=>e.filter((e=>!1!==t[e.field])))),_=(S(F,(e=>e.map((e=>e.field)))),S(F,(e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),D=S(I,(e=>e.filter((e=>e.filterable)))),H=S(I,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),L=(k(E),k(I),k(F),k(D),k(S(D,(e=>e.map((e=>e.field))))),k(S(F,(e=>e.length))),k(S(_,O,((e,t)=>({totalWidth:t,positions:e})))));R(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const j=(e,t)=>function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state),z=r.createContext(void 0);function $(){const e=r.useContext(z);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}const V=r.createContext(void 0);const N=()=>{const e=r.useContext(V);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.");return e},A=e=>e.rows,B=S(A,(e=>e.totalRowCount)),U=S(A,(e=>e.loading)),W=S(A,(e=>e.totalTopLevelRowCount)),K=S(A,(e=>e.idRowsLookup)),G=S(A,(e=>e.idToIdLookup)),q=S(A,(e=>e.tree)),X=S(A,(e=>e.groupingName)),Y=S(A,(e=>e.treeDepth)),Q=S(A,(e=>e.ids)),J=e=>e.density,ee=S(J,(e=>e.value)),te=S(J,(e=>e.rowHeight)),ne=S(J,(e=>e.headerHeight)),re=S(J,(e=>e.factor));var oe=n(5893);const le=["children","className"],ie=r.forwardRef((function(e,t){const n=N(),{children:o,className:l}=e,f=(0,a.Z)(e,le),m=$(),b=j(m,F),v=j(m,B),C=j(m,ee),w=r.useRef(null),y=(0,c.Z)(w,t),x=(e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${(0,u.Z)(n)}`]};return(0,p.Z)(o,g.d,r)})({density:C,classes:n.classes,autoHeight:n.autoHeight});m.current.rootElementRef=w;const[R,k]=r.useState(!1);return(0,d.Z)((()=>{k(!0)}),[]),(0,d.Z)((()=>{R&&m.current.unstable_updateGridDimensionsRef()}),[m,R]),R?(0,oe.jsx)(h,(0,i.Z)({ref:y,className:(0,s.Z)(l,x.root),role:"grid","aria-colcount":b.length,"aria-rowcount":v,"aria-multiselectable":!n.disableMultipleSelection,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"]},f,{children:o})):null}));function ae(e,t){const n=r.useRef(null);if(n.current)return n.current;const o=e.current.getLogger(t);return n.current=o,o}const se=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})));function ue(e){const t=(e=>{const{classes:t}=e;return(0,p.Z)({root:["main"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(se,{className:t.root,children:e.children})}class ce extends r.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}logError(e,t){this.props.logger.error(`An unexpected error occurred. Error: ${e&&e.message}. `,e,t)}render(){var e;return this.props.hasError||null!=(e=this.state)&&e.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}function de(e){const{children:t}=e,n=$(),r=ae(n,"GridErrorHandler"),o=N(),l=n.current.state.error;return(0,oe.jsx)(ce,{hasError:null!=l,componentProps:l,api:n,logger:r,render:e=>{var t;return(0,oe.jsx)(ue,{children:(0,oe.jsx)(o.components.ErrorOverlay,(0,i.Z)({},e,null==(t=o.componentsProps)?void 0:t.errorOverlay))})},children:t})}function pe(){var e;const t=$(),n=N(),o=r.useRef(null);return t.current.headerRef=o,(0,oe.jsx)("div",{ref:o,children:(0,oe.jsx)(n.components.Header,(0,i.Z)({},null==(e=n.componentsProps)?void 0:e.header))})}var fe=n(2068),me=n(5340);function ge(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},o=!1,l="",i="animationstart",a="Webkit Moz O ms".split(" "),s="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u=document.createElement("fakeelement");if(void 0!==u.style.animationName&&(o=!0),!1===o)for(var c=0;c div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="muiDetectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(a),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=a.createElement("div")).className="Mui-resizeTriggers",o.__resizeTriggers__.innerHTML='
',o.appendChild(o.__resizeTriggers__),n(o),o.addEventListener("scroll",r,!0),i&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName==d&&n(o)},o.__resizeTriggers__.addEventListener(i,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(l)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}const he=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],be=r.forwardRef((function(e,t){const{children:n,defaultHeight:o=null,defaultWidth:l=null,disableHeight:s=!1,disableWidth:u=!1,nonce:p,onResize:f,style:m}=e,g=(0,a.Z)(e,he),[h,b]=r.useState({height:o,width:l}),v=r.useRef(null),C=r.useRef(null),w=(0,fe.Z)((()=>{if(C.current){const e=C.current.offsetHeight||0,t=C.current.offsetWidth||0,n=(0,me.Z)(C.current).getComputedStyle(C.current),r=parseInt(n.paddingLeft,10)||0,o=parseInt(n.paddingRight,10)||0,l=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),i=t-r-o;(!s&&h.height!==l||!u&&h.width!==i)&&(b({height:l,width:i}),f&&f({height:l,width:i}))}}));(0,d.Z)((()=>{var e;if(C.current=v.current.parentElement,!C)return;const t=(0,me.Z)(null!=(e=C.current)?e:void 0),n=ge(p,t);return n.addResizeListener(C.current,w),w(),()=>{n.removeResizeListener(C.current,w)}}),[p,w]);const y={overflow:"visible"},x={};s||(y.height=0,x.height=h.height),u||(y.width=0,x.width=h.width);const R=(0,c.Z)(v,t);return(0,oe.jsx)("div",(0,i.Z)({ref:R,style:(0,i.Z)({},y,m)},g,{children:null===h.height&&null===h.width?null:n(x)}))})),ve=e=>e.sorting,Ce=S(ve,(e=>e.sortedRows)),we=S(Ce,K,((e,t)=>e.map((e=>({id:e,model:t[e]}))))),ye=S(ve,(e=>e.sortModel)),xe=S(ye,(e=>e.reduce(((t,n,r)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t)),{}))),Re=e=>e.filter,ke=S(Re,(e=>e.filterModel)),Ze=(S(ke,(e=>e.quickFilterValues)),S(Re,(e=>e.visibleRowsLookup))),Se=S(Re,(e=>e.filteredRowsLookup)),Pe=(S(Re,(e=>e.filteredDescendantCountLookup)),S(Ze,we,((e,t)=>t.filter((t=>!1!==e[t.id]))))),Ee=S(Pe,(e=>e.map((e=>e.id)))),Me=S(Se,we,((e,t)=>t.filter((t=>!1!==e[t.id])))),Ie=S(Me,(e=>e.map((e=>e.id)))),Te=S(Pe,q,Y,((e,t,n)=>n<2?e:e.filter((e=>{var n;return 0===(null==(n=t[e.id])?void 0:n.depth)})))),Fe=S(Pe,(e=>e.length)),_e=S(Te,(e=>e.length)),Oe=S(ke,M,((e,t)=>{var n;return null==(n=e.items)?void 0:n.filter((e=>{var n,r;if(!e.columnField)return!1;const o=t[e.columnField];if(null==o||!o.filterOperators||0===(null==o||null==(n=o.filterOperators)?void 0:n.length))return!1;const l=o.filterOperators.find((t=>t.value===e.operatorValue));return!!l&&(!l.InputComponent||null!=e.value&&""!==(null==(r=e.value)?void 0:r.toString()))}))})),De=S(Oe,(e=>e.reduce(((e,t)=>(e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e)),{})));function He(e){var t,n;const o=$(),l=N(),a=j(o,ne),[s,u]=r.useState((()=>{var e,t;return null!=(e=null==(t=o.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),c=r.useCallback((()=>{var e,t;u(null!=(e=null==(t=o.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[o]);(0,d.Z)((()=>o.current.subscribeEvent("viewportInnerSizeChange",c)),[o,c]);let p=null!=(t=null==s?void 0:s.height)?t:0;return l.autoHeight&&0===p&&(p="auto"),s?(0,oe.jsx)("div",(0,i.Z)({style:{height:p,width:null!=(n=null==s?void 0:s.width)?n:0,position:"absolute",top:a,bottom:"auto"===p?0:void 0}},e)):null}function Le(){const e=$(),t=N(),n=j(e,B),r=j(e,Fe),o=j(e,U),l=!o&&n>0&&0===r;let a=null;var s,u,c;o||0!==n||(a=(0,oe.jsx)(t.components.NoRowsOverlay,(0,i.Z)({},null==(s=t.componentsProps)?void 0:s.noRowsOverlay)));l&&(a=(0,oe.jsx)(t.components.NoResultsOverlay,(0,i.Z)({},null==(u=t.componentsProps)?void 0:u.noResultsOverlay)));o&&(a=(0,oe.jsx)(t.components.LoadingOverlay,(0,i.Z)({},null==(c=t.componentsProps)?void 0:c.loadingOverlay)));return null===a?null:(0,oe.jsx)(He,{children:a})}function je(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:o}=e,l=$(),i=N(),a=j(l,ne),[s,u]=r.useState(i.disableVirtualization),c=r.useCallback((()=>{u(!0)}),[]),d=r.useCallback((()=>{u(!1)}),[]);l.current.unstable_disableVirtualization=c,l.current.unstable_enableVirtualization=d;const p=r.useRef(null),f=r.useRef(null),m=r.useRef(null),g=r.useRef(null);l.current.columnHeadersContainerElementRef=f,l.current.columnHeadersElementRef=p,l.current.windowRef=m,l.current.renderingZoneRef=g;const h=r.useCallback((e=>{l.current.publishEvent("resize",e)}),[l]);return(0,oe.jsxs)(ue,{children:[(0,oe.jsx)(Le,{}),(0,oe.jsx)(o,{ref:f,innerRef:p}),(0,oe.jsx)(be,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:h,children:e=>{const t={width:e.width,height:e.height?e.height-a:"auto",marginTop:a};return(0,oe.jsx)(n,{ref:m,style:t,disableVirtualization:s})}}),t]})}function ze(){var e;const t=$(),n=N(),o=r.useRef(null);return t.current.footerRef=o,n.hideFooter?null:(0,oe.jsx)("div",{ref:o,children:(0,oe.jsx)(n.components.Footer,(0,i.Z)({},null==(e=n.componentsProps)?void 0:e.footer))})}const $e=({apiRef:e,props:t,children:n})=>(0,oe.jsx)(V.Provider,{value:t,children:(0,oe.jsx)(z.Provider,{value:e,children:n})});function Ve(e){return"function"===typeof e}function Ne(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function Ae(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Be=(e,t,n)=>Math.max(t,Math.min(n,e));function Ue(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r{},Ge={debug:Ke,info:Ke,warn:Ke,error:Ke},qe=["debug","info","warn","error"];function Xe(e,t,n=console){const r=qe.indexOf(t);if(-1===r)throw new Error(`MUI: Log level ${t} not recognized.`);return qe.reduce(((t,o,l)=>(t[o]=l>=r?(...t)=>{const[r,...l]=t;n[o](`MUI: ${e} - ${r}`,...l)}:Ke,t)),{})}function Ye(e,t,n){const o=r.useRef(t),[l]=r.useState(Object.keys(t)),i=r.useCallback((()=>{e.current&&l.forEach((t=>{e.current.hasOwnProperty(t)||(e.current[t]=(...e)=>o.current[t](...e))}))}),[l,e]);r.useEffect((()=>{o.current=t}),[t]),r.useEffect((()=>{i()}),[i]),i()}class Qe{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout((()=>{"function"===typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class Je{constructor(){this.registry=new FinalizationRegistry((e=>{"function"===typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}var et;!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}(et||(et={}));class tt{}const nt={registry:null},rt=function(e){let t=0;return function(n,o,l,i){null===e.registry&&(e.registry="undefined"!==typeof FinalizationRegistry?new Je:new Qe);const[a]=r.useState(new tt),s=r.useRef(null),u=r.useRef();u.current=l;const c=r.useRef(null);if(!s.current&&u.current){const r=(e,t,n)=>{var r;t.defaultMuiPrevented||(null==(r=u.current)||r.call(u,e,t,n))};s.current=n.current.subscribeEvent(o,r,i),t+=1,c.current={cleanupToken:t},e.registry.register(a,(()=>{var e;null==(e=s.current)||e.call(s),s.current=null,c.current=null}),c.current)}else!u.current&&s.current&&(s.current(),s.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));r.useEffect((()=>{if(!s.current&&u.current){const e=(e,t,n)=>{var r;t.defaultMuiPrevented||(null==(r=u.current)||r.call(u,e,t,n))};s.current=n.current.subscribeEvent(o,e,i)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var e;null==(e=s.current)||e.call(s),s.current=null}}),[n,o,i])}}(nt),ot={isFirst:!0};function lt(e,t,n){rt(e,t,n,ot)}class it{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let l=r.length-1;l>=0;l-=1){const e=r[l];n.highPriority.has(e)&&e.apply(this,t)}for(let l=0;l{const n=function(e,t){const n=r.useRef();n.current||(n.current={unstable_eventManager:new it,unstable_caches:{},state:{},instanceId:at},at+=1),r.useImperativeHandle(e,(()=>n.current),[n]);const o=r.useCallback(((...e)=>{const[r,o,l={}]=e;if(l.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(l)&&l.isPropagationStopped())return;const i=t.signature===et.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(r,o,l,i)}),[n,t.signature]),l=r.useCallback(((e,t,r)=>{n.current.unstable_eventManager.on(e,t,r);const o=n.current;return()=>{o.unstable_eventManager.removeListener(e,t)}}),[n]),i=r.useCallback((e=>{n.current.publishEvent("componentError",e)}),[n]);return Ye(n,{subscribeEvent:l,publishEvent:o,showError:i}),r.useEffect((()=>{const e=n.current;return()=>{e.publishEvent("unmount")}}),[n]),n}(e,t);return((e,t)=>{e.current.getLogger=r.useCallback((e=>We?Xe(e,"debug",t.logger):t.logLevel?Xe(e,t.logLevel.toString(),t.logger):Ge),[t.logLevel,t.logger])})(n,t),function(e,t){const n=r.useCallback((t=>{e.current.setState((e=>(0,i.Z)({},e,{error:t})))}),[e]);r.useEffect((()=>{n(t.error)}),[n,t.error]),rt(e,"componentError",n)}(n,t),((e,t)=>{const n=r.useRef({}),[,o]=r.useState(),l=r.useCallback((e=>{const{stateId:t}=e,r=(0,a.Z)(e,pt);n.current[t]=(0,i.Z)({},r,{stateId:t})}),[]),s=r.useCallback(((r,o)=>{let l;if(l=Ve(r)?r(e.current.state):r,e.current.state===l)return!1;let i=!1;const a=[];if(Object.keys(n.current).forEach((t=>{const r=n.current[t],o=r.stateSelector(e.current.state,e.current.instanceId),s=r.stateSelector(l,e.current.instanceId);s!==o&&(a.push({stateId:r.stateId,hasPropChanged:s!==r.propModel}),void 0!==r.propModel&&s!==r.propModel&&(i=!0))})),a.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(i||(e.current.state=l,e.current.publishEvent&&e.current.publishEvent("stateChange",l)),1===a.length){const{stateId:r,hasPropChanged:s}=a[0],u=n.current[r],c=u.stateSelector(l,e.current.instanceId);if(u.propOnChange&&s){const n=t.signature===et.DataGridPro?{api:e.current,reason:o}:{reason:o};u.propOnChange(c,n)}i||e.current.publishEvent(u.changeEvent,c,{reason:o})}return!i}),[e,t.signature]),u=r.useCallback(((t,n,r)=>e.current.setState((e=>(0,i.Z)({},e,{[t]:n(e[t])})),r)),[e]),c=r.useCallback((()=>o((()=>e.current.state))),[e]);Ye(e,{setState:s,forceUpdate:c,unstable_updateControlState:u,unstable_registerControlState:l})})(n,t),(e=>{const t=r.useRef({}),n=r.useCallback((e=>{e&&Object.values(e.appliers).forEach((e=>{e()}))}),[]);Ye(e,{unstable_registerPipeProcessor:r.useCallback(((e,r,o)=>{t.current[e]||(t.current[e]={processors:new Map,appliers:{}});const l=t.current[e];return l.processors.get(r)!==o&&(l.processors.set(r,o),n(l)),()=>{t.current[e].processors.set(r,null)}}),[n]),unstable_registerPipeApplier:r.useCallback(((e,n,r)=>(t.current[e]||(t.current[e]={processors:new Map,appliers:{}}),t.current[e].appliers[n]=r,()=>{const r=t.current[e].appliers,o=(0,a.Z)(r,[n].map(ut));t.current[e].appliers=o})),[]),unstable_requestPipeProcessorsApplication:r.useCallback((e=>{const r=t.current[e];n(r)}),[n]),unstable_applyPipeProcessors:r.useCallback(((...e)=>{const[n,r,o]=e;return t.current[n]?Array.from(t.current[n].processors.values()).reduce(((e,t)=>t?t(e,o):e),r):r}),[])})})(n),(e=>{const t=r.useRef(new Map),n=r.useRef({}),o=r.useCallback(((t,r,o)=>{const l=()=>{const e=n.current[r],o=(0,a.Z)(e,[t].map(ut));n.current[r]=o};n.current[r]||(n.current[r]={});const i=n.current[r],s=i[t];return i[t]=o,s&&s!==o?(t===e.current.unstable_getActiveStrategy(dt[r])&&e.current.publishEvent("activeStrategyProcessorChange",r),l):l}),[e]),l=r.useCallback(((t,r)=>{const o=e.current.unstable_getActiveStrategy(dt[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const l=n.current[t];if(!l||!l[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,l[o])(r)}),[e]),i=r.useCallback((e=>{var n;const r=Array.from(t.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return null!=(n=null==r?void 0:r[0])?n:ct}),[]),s=r.useCallback(((n,r,o)=>{t.current.set(r,{group:n,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);Ye(e,{unstable_registerStrategyProcessor:o,unstable_applyStrategyProcessor:l,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})})(n),((e,t)=>{Ye(e,{getLocaleText:r.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText])})})(n,t),n},mt=(e,t,n)=>{const o=r.useRef(!1);o.current||(t.current.state=e(t.current.state,n,t),o.current=!0)};function gt(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const ht=e=>{const t=r.useCallback(((t=!1)=>{if(0===e.current.getSelectedRows().size)return;const n=e.current.getDataAsCsv({includeHeaders:t,delimiter:"\t"});navigator.clipboard?navigator.clipboard.writeText(n).catch((()=>{gt(n)})):gt(n)}),[e]),n=r.useCallback((t=>{var n;const r=t.ctrlKey||t.metaKey||t.altKey;"C"===String.fromCharCode(t.keyCode)&&r&&""===(null==(n=window.getSelection())?void 0:n.toString())&&e.current.unstable_copySelectedRowsToClipboard(t.altKey)}),[e]);((e,t,n,o,l)=>{const i=ae(e,"useNativeEventListener"),[a,s]=r.useState(!1),u=r.useRef(o),c=r.useCallback((e=>u.current&&u.current(e)),[]);r.useEffect((()=>{u.current=o}),[o]),r.useEffect((()=>{let r;if(r=Ve(t)?t():t&&t.current?t.current:null,r&&c&&n&&!a){i.debug(`Binding native ${n} event`),r.addEventListener(n,c,l);const t=r;s(!0);const o=()=>{i.debug(`Clearing native ${n} event`),t.removeEventListener(n,c,l)};e.current.subscribeEvent("unmount",o)}}),[t,c,n,a,i,l,e])})(e,e.current.rootElementRef,"keydown",n);Ye(e,{unstable_copySelectedRowsToClipboard:t})},bt=e=>e.columnMenu,vt=e=>(0,i.Z)({},e,{columnMenu:{open:!1}}),Ct=e=>{const t=r.useRef(!0);t.current&&(t.current=!1,e())},wt=(e,t,n)=>{const o=r.useRef(),l=r.useRef(`mui-${Math.round(1e9*Math.random())}`),i=r.useCallback((()=>{o.current=e.current.unstable_registerPipeProcessor(t,l.current,n)}),[e,n,t]);Ct((()=>{i()}));const a=r.useRef(!0);r.useEffect((()=>(a.current?a.current=!1:i(),()=>{o.current&&(o.current(),o.current=null)})),[i])},yt=(e,t,n)=>{const o=r.useRef(),l=r.useRef(`mui-${Math.round(1e9*Math.random())}`),i=r.useCallback((()=>{o.current=e.current.unstable_registerPipeApplier(t,l.current,n)}),[e,n,t]);Ct((()=>{i()}));const a=r.useRef(!0);r.useEffect((()=>(a.current?a.current=!1:i(),()=>{o.current&&(o.current(),o.current=null)})),[i])};var xt=n(3970),Rt=n(7892);const kt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Zt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),St=(0,Rt.Z)((0,oe.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Pt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Et=(0,Rt.Z)((0,oe.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Mt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),It=(0,Rt.Z)((0,oe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Tt=((0,Rt.Z)((0,oe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,Rt.Z)((0,oe.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),Ft=(0,Rt.Z)((0,oe.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),_t=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Ot=(0,Rt.Z)((0,oe.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Dt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Ht=(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Lt=(0,Rt.Z)((0,oe.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"),jt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),zt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),$t=(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Vt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Nt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),At=(0,Rt.Z)((0,oe.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Bt=(0,Rt.Z)((0,oe.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");var Ut=n(7909),Wt=n(9309);function Kt(e){return"object"===typeof e&&null!==e?e.value:e}function Gt(e,t){if(void 0===t)return;const n=t.find((t=>{const n=Kt(t);return String(n)===String(e)}));return Kt(n)}const qt=["item","applyValue","type","apiRef","focusElementRef"];const Xt=({valueOptions:e,valueFormatter:t,field:n},r,o)=>("function"===typeof e?["",...e({field:n})]:["",...e||[]]).map((e=>{const l="object"===typeof e,i=l?e.value:e,a=l?e.value:e,s=t&&""!==e?t({value:e,field:n,api:r}):e,u=l?e.label:s;return(0,oe.jsx)(o,{value:a,children:u},i)})),Yt=500;function Qt(e){var t,n,o,l,s;const{item:u,applyValue:c,type:d,apiRef:p,focusElementRef:f}=e,m=(0,a.Z)(e,qt);const g=r.useRef(),[h,b]=r.useState(null!=(t=u.value)?t:""),[v,C]=r.useState(!1),w=(0,Ut.Z)(),y=N(),x=null==(o=((null==(n=y.componentsProps)?void 0:n.baseSelect)||{}).native)||o,R="singleSelect"===d?{select:!0,SelectProps:(0,i.Z)({native:x},null==(l=y.componentsProps)?void 0:l.baseSelect),children:Xt(p.current.getColumn(u.columnField),p.current,x?"option":Wt.Z)}:{},k=r.useCallback((e=>{let t=e.target.value;if("singleSelect"===d){const e=p.current.getColumn(u.columnField),n="function"===typeof e.valueOptions?e.valueOptions({field:e.field}):e.valueOptions;t=Gt(t,n)}clearTimeout(g.current),b(String(t)),C(!0),g.current=setTimeout((()=>{c((0,i.Z)({},u,{value:t})),C(!1)}),Yt)}),[p,c,u,d]);r.useEffect((()=>()=>{clearTimeout(g.current)}),[]),r.useEffect((()=>{var e;const t=null!=(e=u.value)?e:"";b(String(t))}),[u.value]);const Z=v?{endAdornment:(0,oe.jsx)($t,{})}:m.InputProps;return(0,oe.jsx)(y.components.BaseTextField,(0,i.Z)({id:w,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:k,type:d||"text",variant:"standard",InputProps:Z,InputLabelProps:{shrink:!0},inputRef:f},R,m,null==(s=y.componentsProps)?void 0:s.baseTextField))}const Jt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],en=(0,f.ZP)(xt.ZP,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>(0,i.Z)({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})));function tn(e){var t;const n=N(),{id:o,value:l,field:s,colDef:u,hasFocus:c,debounceMs:f=(null!=(t=n.experimentalFeatures)&&t.newEditingApi?200:Yt),isProcessingProps:m,onValueChange:h}=e,b=(0,a.Z)(e,Jt),v=$(),C=r.useRef(),[w,y]=r.useState(l),x=(e=>{const{classes:t}=e;return(0,p.Z)({root:["editInputCell"]},g.d,t)})({classes:n.classes}),R=r.useCallback((async e=>{const t=e.target.value;h&&await h(e,t),y(t),v.current.setEditCellValue({id:o,field:s,value:t,debounceMs:f},e)}),[v,f,s,o,h]);return r.useEffect((()=>{y(l)}),[l]),(0,d.Z)((()=>{c&&C.current.focus()}),[c]),(0,oe.jsx)(en,(0,i.Z)({inputRef:C,className:x.root,fullWidth:!0,type:"number"===u.type?u.type:"text",value:null!=w?w:"",onChange:R,endAdornment:m?(0,oe.jsx)($t,{}):void 0},b))}const nn=R(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),rn=(e,t)=>t&&e.length>1?(nn(),[e[0]]):e,on=(e,t)=>n=>(0,i.Z)({},n,{sorting:(0,i.Z)({},n.sorting,{sortModel:rn(e,t)})}),ln=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},an=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,sn=new Intl.Collator,un=(e,t)=>{const n=an(e,t);return null!==n?n:Number(e)-Number(t)},cn=(e,t)=>{const n=an(e,t);return null!==n?n:e>t?1:e{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,u.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Sn.disabled}`]:{color:e.palette.text.disabled},[`&.${Sn.error}`]:{color:e.palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})));var Mn=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:l="p"}=n,c=(0,a.Z)(n,Pn),d=(0,yn.Z)(),f=(0,wn.Z)({props:n,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),m=(0,i.Z)({},n,{component:l,contained:"filled"===f.variant||"outlined"===f.variant,variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),g=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:l,filled:i,focused:a,required:s}=e,c={root:["root",o&&"disabled",l&&"error",r&&`size${(0,u.Z)(r)}`,n&&"contained",a&&"focused",i&&"filled",s&&"required"]};return(0,p.Z)(c,kn,t)})(m);return(0,oe.jsx)(En,(0,i.Z)({as:l,ownerState:m,className:(0,s.Z)(g.root,o),ref:t},c,{children:" "===r?Zn||(Zn=(0,oe.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),In=n(3213);function Tn(e){return(0,xn.Z)("MuiTextField",e)}(0,Rn.Z)("MuiTextField",["root"]);const Fn=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],_n={standard:gn.Z,filled:hn.Z,outlined:bn.Z},On=(0,f.ZP)(Cn.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var Dn=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:l,className:u,color:c="primary",defaultValue:d,disabled:f=!1,error:m=!1,FormHelperTextProps:g,fullWidth:h=!1,helperText:b,id:v,InputLabelProps:C,inputProps:w,InputProps:y,inputRef:x,label:R,maxRows:k,minRows:Z,multiline:S=!1,name:P,onBlur:E,onChange:M,onFocus:I,placeholder:T,required:F=!1,rows:_,select:O=!1,SelectProps:D,type:H,value:L,variant:j="outlined"}=n,z=(0,a.Z)(n,Fn),$=(0,i.Z)({},n,{autoFocus:o,color:c,disabled:f,error:m,fullWidth:h,multiline:S,required:F,select:O,variant:j}),V=(e=>{const{classes:t}=e;return(0,p.Z)({root:["root"]},Tn,t)})($);const N={};"outlined"===j&&(C&&"undefined"!==typeof C.shrink&&(N.notched=C.shrink),N.label=R),O&&(D&&D.native||(N.id=void 0),N["aria-describedby"]=void 0);const A=(0,fn.Z)(v),B=b&&A?`${A}-helper-text`:void 0,U=R&&A?`${A}-label`:void 0,W=_n[j],K=(0,oe.jsx)(W,(0,i.Z)({"aria-describedby":B,autoComplete:r,autoFocus:o,defaultValue:d,fullWidth:h,multiline:S,name:P,rows:_,maxRows:k,minRows:Z,type:H,value:L,id:A,inputRef:x,onBlur:E,onChange:M,onFocus:I,placeholder:T,inputProps:w},N,y));return(0,oe.jsxs)(On,(0,i.Z)({className:(0,s.Z)(V.root,u),disabled:f,error:m,fullWidth:h,ref:t,required:F,color:c,variant:j,ownerState:$},z,{children:[null!=R&&""!==R&&(0,oe.jsx)(vn.Z,(0,i.Z)({htmlFor:A,id:U},C,{children:R})),O?(0,oe.jsx)(In.Z,(0,i.Z)({"aria-describedby":B,id:A,labelId:U,value:L,input:K},D,{children:l})):K,b&&(0,oe.jsx)(Mn,(0,i.Z)({id:B},g,{children:b}))]}))}));const Hn=["item","applyValue","type","apiRef","focusElementRef"];function Ln(e){const{item:t,applyValue:n,type:o,apiRef:l,focusElementRef:s}=e,u=(0,a.Z)(e,Hn),[c,d]=r.useState(t.value||[]),p=(0,Ut.Z)();r.useEffect((()=>{var e;const n=null!=(e=t.value)?e:[];d(n.map(String))}),[t.value]);const f=r.useCallback(((e,r)=>{d(r.map(String)),n((0,i.Z)({},t,{value:[...r]}))}),[n,t]);return(0,oe.jsx)(dn.Z,(0,i.Z)({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:(e,t)=>{const{inputValue:n}=t;return null==n||""===n?[]:[n]},id:p,value:c,onChange:f,renderTags:(e,t)=>e.map(((e,n)=>(0,oe.jsx)(pn.Z,(0,i.Z)({variant:"outlined",size:"small",label:e},t({index:n}))))),renderInput:e=>(0,oe.jsx)(Dn,(0,i.Z)({},e,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,i.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:s,type:o||"text",variant:"standard"}))},u))}const jn={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,editable:!1,sortComparator:(e,t)=>{const n=an(e,t);return null!==n?n:"string"===typeof e?sn.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:[{value:"contains",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(Ae(e.value),"i");return({value:e})=>null!=e&&t.test(e.toString())},InputComponent:Qt},{value:"equals",getApplyFilterFn:e=>{if(!e.value)return null;const t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:n})=>null!=n&&0===t.compare(e.value,n.toString())},InputComponent:Qt},{value:"startsWith",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(`^${Ae(e.value)}.*$`,"i");return({value:e})=>null!=e&&t.test(e.toString())},InputComponent:Qt},{value:"endsWith",getApplyFilterFn:e=>{if(!e.value)return null;const t=new RegExp(`.*${Ae(e.value)}$`,"i");return({value:e})=>null!=e&&t.test(e.toString())},InputComponent:Qt},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>""===e||null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>""!==e&&null!=e},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:n})=>null!=n&&e.value.some((e=>0===t.compare(e,n.toString()||"")))},InputComponent:Ln}],renderEditCell:e=>(0,oe.jsx)(tn,(0,i.Z)({},e)),getApplyQuickFilterFn:e=>{if(!e)return null;const t=new RegExp(Ae(e),"i");return({value:e})=>null!=e&&t.test(e.toString())}},zn=e=>null==e?null:Number(e),$n=()=>[{label:"=",value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>zn(t)===e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>zn(t)!==e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)>e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)>=e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)null==e.value||Number.isNaN(e.value)?null:({value:t})=>null!=t&&zn(t)<=e.value,InputComponent:Qt,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?({value:t})=>null!=t&&e.value.includes(Number(t)):null,InputComponent:Ln,InputComponentProps:{type:"number"}}],Vn=(k($n),(0,i.Z)({},jn,{type:"number",align:"right",headerAlign:"right",sortComparator:un,valueParser:e=>""===e?null:Number(e),valueFormatter:({value:e})=>function(e){return"number"===typeof e}(e)?e.toLocaleString():e||"",filterOperators:$n(),getApplyQuickFilterFn:e=>null==e||Number.isNaN(e)||""===e?null:({value:t})=>zn(t)===zn(e)})),Nn=["item","applyValue","type","apiRef","focusElementRef","InputProps"];function An(e){var t,n;const{item:o,applyValue:l,type:s,apiRef:u,focusElementRef:c,InputProps:d}=e,p=(0,a.Z)(e,Nn),f=r.useRef(),[m,g]=r.useState(null!=(t=o.value)?t:""),[h,b]=r.useState(!1),v=(0,Ut.Z)(),C=N(),w=r.useCallback((e=>{const t=e.target.value;clearTimeout(f.current),g(String(t)),b(!0),f.current=setTimeout((()=>{l((0,i.Z)({},o,{value:t})),b(!1)}),500)}),[l,o]);return r.useEffect((()=>()=>{clearTimeout(f.current)}),[]),r.useEffect((()=>{var e;const t=null!=(e=o.value)?e:"";g(String(t))}),[o.value]),(0,oe.jsx)(C.components.BaseTextField,(0,i.Z)({id:v,label:u.current.getLocaleText("filterPanelInputLabel"),placeholder:u.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:w,type:s||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:c,InputProps:(0,i.Z)({},h?{endAdornment:(0,oe.jsx)($t,{})}:{},d,{inputProps:(0,i.Z)({max:"datetime-local"===s?"9999-12-31T23:59":"9999-12-31"},null==d?void 0:d.inputProps)})},p,null==(n=C.componentsProps)?void 0:n.baseTextField))}const Bn=/(\d+)-(\d+)-(\d+)/,Un=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Wn(e,t,n,r){if(!e.value)return null;const[o,l,i,a,s]=e.value.match(n?Un:Bn).slice(1).map(Number),u=new Date(o,l-1,i,a||0,s||0).getTime();return({value:e})=>{if(!e)return!1;const o=e instanceof Date?e:new Date(e.toString());if(r)return t(o.getTime(),u);const l=(e instanceof Date?new Date(o):o).setHours(n?o.getHours():0,n?o.getMinutes():0,0,0);return t(l,u)}}const Kn=e=>[{value:"is",getApplyFilterFn:t=>Wn(t,((e,t)=>e===t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Wn(t,((e,t)=>e!==t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Wn(t,((e,t)=>e>t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Wn(t,((e,t)=>e>=t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Wn(t,((e,t)=>eWn(t,((e,t)=>e<=t),e),InputComponent:An,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>null==e},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>null!=e}],Gn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"];function qn(e){const{id:t,value:n,field:o,colDef:l,hasFocus:s,inputProps:u,onValueChange:c}=e,f=(0,a.Z)(e,Gn),m="dateTime"===l.type,h=$(),b=r.useRef(),v=r.useMemo((()=>{let e,t;if(e=null==n?null:n instanceof Date?n:new Date((null!=n?n:"").toString()),null==e||Number.isNaN(e.getTime()))t="";else{t=new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,m?16:10)}return{parsed:e,formatted:t}}),[n,m]),[C,w]=r.useState(v),y=(e=>{const{classes:t}=e;return(0,p.Z)({root:["editInputCell"]},g.d,t)})({classes:N().classes}),x=r.useCallback((async e=>{const n=e.target.value;let r;if(""===n)r=null;else{const[e,t]=n.split("T"),[o,l,i]=e.split("-");if(r=new Date,r.setFullYear(o,Number(l)-1,i),r.setHours(0,0,0,0),t){const[e,n]=t.split(":");r.setHours(Number(e),Number(n),0,0)}}c&&await c(e,r),w({parsed:r,formatted:n}),h.current.setEditCellValue({id:t,field:o,value:r},e)}),[h,o,t,c]);return r.useEffect((()=>{w((e=>{var t,n;return v.parsed!==e.parsed&&(null==(t=v.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?v:e}))}),[v]),(0,d.Z)((()=>{s&&b.current.focus()}),[s]),(0,oe.jsx)(xt.ZP,(0,i.Z)({inputRef:b,fullWidth:!0,className:y.root,type:m?"datetime-local":"date",inputProps:(0,i.Z)({max:m?"9999-12-31T23:59":"9999-12-31"},u),value:C.formatted,onChange:x},f))}const Xn=e=>(0,oe.jsx)(qn,(0,i.Z)({},e));const Yn=(0,i.Z)({},jn,{type:"date",sortComparator:cn,valueFormatter:function({value:e}){return e instanceof Date?e.toLocaleDateString():null!=e?e:""},filterOperators:Kn(),renderEditCell:Xn,getApplyQuickFilterFn:void 0}),Qn=(0,i.Z)({},jn,{type:"dateTime",sortComparator:cn,valueFormatter:function({value:e}){return e instanceof Date?e.toLocaleString():null!=e?e:""},filterOperators:Kn(!0),renderEditCell:Xn,getApplyQuickFilterFn:void 0}),Jn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],er=r.memo((e=>{const{value:t}=e,n=(0,a.Z)(e,Jn),o=$(),l=N(),s=(e=>{const{classes:t}=e;return(0,p.Z)({root:["booleanCell"]},g.d,t)})({classes:l.classes}),u=r.useMemo((()=>t?l.components.BooleanCellTrueIcon:l.components.BooleanCellFalseIcon),[l.components.BooleanCellFalseIcon,l.components.BooleanCellTrueIcon,t]);return(0,oe.jsx)(u,(0,i.Z)({fontSize:"small",className:s.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))})),tr=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function nr(e){var t;const{id:n,value:o,field:l,className:u,hasFocus:c,onValueChange:f}=e,m=(0,a.Z)(e,tr),h=$(),b=r.useRef(null),v=(0,Ut.Z)(),[C,w]=r.useState(o),y=N(),x=(e=>{const{classes:t}=e;return(0,p.Z)({root:["editBooleanCell"]},g.d,t)})({classes:y.classes}),R=r.useCallback((async e=>{const t=e.target.checked;f&&await f(e,t),w(t),await h.current.setEditCellValue({id:n,field:l,value:t},e)}),[h,l,n,f]);return r.useEffect((()=>{w(o)}),[o]),(0,d.Z)((()=>{c&&b.current.focus()}),[c]),(0,oe.jsx)("label",(0,i.Z)({htmlFor:v,className:(0,s.Z)(x.root,u)},m,{children:(0,oe.jsx)(y.components.BaseCheckbox,(0,i.Z)({id:v,inputRef:b,checked:Boolean(C),onChange:R,size:"small"},null==(t=y.componentsProps)?void 0:t.baseCheckbox))}))}const rr=["item","applyValue","apiRef","focusElementRef"];function or(e){var t,n,o,l;const{item:s,applyValue:u,apiRef:c,focusElementRef:d}=e,p=(0,a.Z)(e,rr),[f,m]=r.useState(s.value||""),g=N(),h=null==(n=((null==(t=g.componentsProps)?void 0:t.baseSelect)||{}).native)||n,b=h?"option":Wt.Z,v=r.useCallback((e=>{const t=e.target.value;m(t),u((0,i.Z)({},s,{value:t}))}),[u,s]);return r.useEffect((()=>{m(s.value||"")}),[s.value]),(0,oe.jsxs)(g.components.BaseTextField,(0,i.Z)({label:c.current.getLocaleText("filterPanelInputLabel"),value:f,onChange:v,variant:"standard",select:!0,SelectProps:(0,i.Z)({native:h,displayEmpty:!0},null==(o=g.componentsProps)?void 0:o.baseSelect),InputLabelProps:{shrink:!0},inputRef:d},p,null==(l=g.componentsProps)?void 0:l.baseTextField,{children:[(0,oe.jsx)(b,{value:"",children:c.current.getLocaleText("filterValueAny")}),(0,oe.jsx)(b,{value:"true",children:c.current.getLocaleText("filterValueTrue")}),(0,oe.jsx)(b,{value:"false",children:c.current.getLocaleText("filterValueFalse")})]}))}const lr=(0,i.Z)({},jn,{type:"boolean",align:"center",headerAlign:"center",renderCell:e=>e.rowNode.isAutoGenerated?"":(0,oe.jsx)(er,(0,i.Z)({},e)),renderEditCell:e=>(0,oe.jsx)(nr,(0,i.Z)({},e)),sortComparator:un,valueFormatter:function({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t="true"===e.value;return({value:e})=>Boolean(e)===t},InputComponent:or}],getApplyQuickFilterFn:void 0}),ir=e=>"Escape"===e,ar=e=>"Enter"===e,sr=e=>"Tab"===e,ur=e=>" "===e,cr=e=>"Delete"===e||"Backspace"===e,dr=/^(\p{L}|\p{M}\p{L}|\p{M}|\p{N}|\p{Z}|\p{S}|\p{P})$/iu,pr=e=>dr.test(e),fr=["Enter","Escape","Tab"],mr=["Enter","Tab"],gr=e=>mr.indexOf(e)>-1,hr=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||ur(e),br=e=>!!e.key;var vr,Cr,wr;!function(e){e.Cell="cell",e.Row="row"}(vr||(vr={})),function(e){e.Edit="edit",e.View="view"}(Cr||(Cr={})),function(e){e.Edit="edit",e.View="view"}(wr||(wr={}));const yr=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function xr(e){var t,n,o;const{id:l,value:s,api:u,field:c,row:p,colDef:f,hasFocus:m,error:g,onValueChange:h}=e,b=(0,a.Z)(e,yr),v=$(),C=r.useRef(),w=r.useRef(),y=N(),[x,R]=r.useState("cell"===y.editMode),k=null!=(n=((null==(t=y.componentsProps)?void 0:t.baseSelect)||{}).native)&&n;let Z;Z="function"===typeof f.valueOptions?f.valueOptions({id:l,row:p,field:c}):f.valueOptions,f.valueFormatter&&(Z=Z.map((e=>{if("object"===typeof e)return e;const t={field:c,api:u,value:e};return{value:e,label:String(f.valueFormatter(t))}})));return(0,d.Z)((()=>{m&&w.current.focus()}),[m]),(0,oe.jsx)(y.components.BaseSelect,(0,i.Z)({ref:C,inputRef:w,value:s,onChange:async e=>{var t;R(!1);const n=Gt(e.target.value,Z);h&&await h(e,n);const r=await v.current.setEditCellValue({id:l,field:c,value:n},e);if(null!=(t=y.experimentalFeatures)&&t.newEditingApi)return;if(y.editMode===vr.Row||!1===r)return;if(await Promise.resolve(v.current.commitCellChange({id:l,field:c},e))&&(v.current.setCellMode(l,c,"view"),e.key)){const t=v.current.getCellParams(l,c);v.current.publishEvent("cellNavigationKeyDown",t,e)}},open:x,onOpen:()=>{R(!0)},MenuProps:{onClose:(e,t)=>{var n;y.editMode!==vr.Row?("backdropClick"===t||ir(e.key))&&(null!=(n=y.experimentalFeatures)&&n.newEditingApi?v.current.stopCellEditMode({id:l,field:c,ignoreModifications:!0}):v.current.setCellMode(l,c,"view")):R(!1)}},error:g,native:k,fullWidth:!0},b,null==(o=y.componentsProps)?void 0:o.baseSelect,{children:Z.map((e=>((e,t)=>{const n="object"===typeof e,r=n?e.value:e,o=n?e.value:e,l=n?e.label:e;return(0,oe.jsx)(t,{value:o,children:l},r)})(e,k?"option":Wt.Z)))}))}const Rr=["item","applyValue","type","apiRef","focusElementRef"],kr=({valueOptions:e,valueFormatter:t,field:n},r,o)=>("function"===typeof e?["",...e({field:n})]:["",...e||[]]).map((e=>{const l="object"===typeof e,i=l?e.value:e,a=l?e.value:e,s=t&&""!==e?t({value:e,field:n,api:r}):e,u=l?e.label:s;return(0,oe.jsx)(o,{value:a,children:u},i)}));function Zr(e){var t,n,o,l,s;const{item:u,applyValue:c,type:d,apiRef:p,focusElementRef:f}=e,m=(0,a.Z)(e,Rr),[g,h]=r.useState(null!=(t=u.value)?t:""),b=(0,Ut.Z)(),v=N(),C=null==(o=((null==(n=v.componentsProps)?void 0:n.baseSelect)||{}).native)||o,w=u.columnField?p.current.getColumn(u.columnField):null,y=r.useMemo((()=>"function"===typeof w.valueOptions?w.valueOptions({field:w.field}):w.valueOptions),[w]),x=r.useCallback((e=>{let t=e.target.value;t=Gt(t,y),h(String(t)),c((0,i.Z)({},u,{value:t}))}),[c,u,y]);return r.useEffect((()=>{var e;let t;if(void 0!==y){if(t=Gt(u.value,y),t!==u.value)return void c((0,i.Z)({},u,{value:t}))}else t=u.value;t=null!=(e=t)?e:"",h(String(t))}),[u,y,c]),(0,oe.jsx)(v.components.BaseTextField,(0,i.Z)({id:b,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:x,type:d||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:f,select:!0,SelectProps:(0,i.Z)({native:C},null==(l=v.componentsProps)?void 0:l.baseSelect)},m,null==(s=v.componentsProps)?void 0:s.baseTextField,{children:kr(p.current.getColumn(u.columnField),p.current,C?"option":Wt.Z)}))}var Sr=n(5949);const Pr=["item","applyValue","type","apiRef","focusElementRef"],Er=(e,t)=>Kt(e)===Kt(t),Mr=(0,Sr.D)();function Ir(e){const{item:t,applyValue:n,apiRef:o,focusElementRef:l}=e,s=(0,a.Z)(e,Pr),u=(0,Ut.Z)(),c=t.columnField?o.current.getColumn(t.columnField):null,d=r.useMemo((()=>null!=c&&c.valueOptions?"function"===typeof c.valueOptions?c.valueOptions({field:c.field}):c.valueOptions:[]),[c]),p=r.useMemo((()=>null==d?void 0:d.map(Kt)),[d]),{valueFormatter:f,field:m}=o.current.getColumn(t.columnField),g=e=>"object"===typeof e?e.label:f&&""!==e?f({value:e,field:m,api:o.current}):e,h=r.useMemo((()=>{if(!Array.isArray(t.value))return[];if(void 0!==d){return t.value.map((e=>{const t=Kt(e);return(null==p?void 0:p.findIndex((e=>e===t)))||0})).filter((e=>e>=0)).map((e=>d[e]))}return t.value}),[t.value,d,p]);r.useEffect((()=>{Array.isArray(t.value)&&h.length===t.value.length||n((0,i.Z)({},t,{value:h.map(Kt)}))}),[t,h,n]);const b=r.useCallback(((e,r)=>{n((0,i.Z)({},t,{value:[...r.map(Kt)]}))}),[n,t]);return(0,oe.jsx)(dn.Z,(0,i.Z)({multiple:!0,limitTags:1,options:d,isOptionEqualToValue:Er,filterOptions:Mr,id:u,value:h,onChange:b,renderTags:(e,t)=>e.map(((e,n)=>(0,oe.jsx)(pn.Z,(0,i.Z)({variant:"outlined",size:"small",label:g(e)},t({index:n}))))),renderInput:e=>(0,oe.jsx)(Dn,(0,i.Z)({},e,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,i.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:l,type:"singleSelect",variant:"standard"}))},s))}const Tr=e=>null==e||"object"!==typeof e?e:e.value,Fr=(0,i.Z)({},jn,{type:"singleSelect",renderEditCell:e=>(0,oe.jsx)(xr,(0,i.Z)({},e)),filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>Tr(t)===Tr(e.value),InputComponent:Zr},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:({value:t})=>Tr(t)!==Tr(e.value),InputComponent:Zr},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(Tr);return({value:e})=>t.includes(Tr(e))},InputComponent:Ir}],getApplyQuickFilterFn:(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:l}=t,i=[Tr(e).toString()],a="function"===typeof r?r({field:l}):r||[];return a&&a.forEach((t=>{let r,a;"object"===typeof t?(r=t.value,a=t.label):(r=t,a=o?o({value:t,field:l,api:n.current}):t),a.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(i.includes(r)||i.push(r.toString()))})),({value:e})=>null!=e&&i.includes(Tr(e).toString())}});var _r=n(4799),Or=n(4118),Dr=n(67),Hr=n(3633),Lr=n(7094);function jr(e){return e.substring(2).toLowerCase()}var zr=function(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:l,touchEvent:i="onTouchEnd"}=e,a=r.useRef(!1),s=r.useRef(null),u=r.useRef(!1),c=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=(0,Dr.Z)(t.ref,s),p=(0,Hr.Z)((e=>{const t=c.current;c.current=!1;const r=(0,Lr.Z)(s.current);if(!u.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||s.current.contains(e.target),o||!n&&t||l(e)})),f=e=>n=>{c.current=!0;const r=t.props[e];r&&r(n)},m={ref:d};return!1!==i&&(m[i]=f(i)),r.useEffect((()=>{if(!1!==i){const e=jr(i),t=(0,Lr.Z)(s.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,i]),!1!==o&&(m[o]=f(o)),r.useEffect((()=>{if(!1!==o){const e=jr(o),t=(0,Lr.Z)(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,oe.jsx)(r.Fragment,{children:r.cloneElement(t,m)})},$r=n(6514),Vr=n(5113),Nr=n(4606);const Ar=["open","target","onClickAway","children","position","className","onExited"],Br=(0,f.ZP)(Nr.Z,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${g._.menuList}`]:{outline:0}}))),Ur={"bottom-start":"top left","bottom-end":"top right"},Wr=e=>{var t;const{open:n,target:o,onClickAway:l,children:u,position:c,className:d,onExited:f}=e,m=(0,a.Z)(e,Ar),h=$(),b=r.useRef(o),v=r.useRef(n),C=N(),w=(e=>{const{classes:t}=e;return(0,p.Z)({root:["menu"]},g.d,t)})({classes:C.classes});r.useEffect((()=>{v.current&&b.current&&b.current.focus();const e=n?"menuOpen":"menuClose";h.current.publishEvent(e,{target:o}),v.current=n,b.current=o}),[h,n,o]);return(0,oe.jsx)(Br,(0,i.Z)({as:C.components.BasePopper,className:(0,s.Z)(d,w.root),open:n,anchorEl:o,transition:!0,placement:c},m,null==(t=C.componentsProps)?void 0:t.basePopper,{children:({TransitionProps:e,placement:t})=>{return(0,oe.jsx)(zr,{onClickAway:l,mouseEvent:"onMouseDown",children:(0,oe.jsx)($r.Z,(0,i.Z)({},e,{style:{transformOrigin:Ur[t]},onExited:(n=null==e?void 0:e.onExited,e=>{n&&n(),f&&f(e)}),children:(0,oe.jsx)(Vr.Z,{children:u})}))});var n}}))},Kr=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],Gr=e=>{const{colDef:t,id:n,hasFocus:o,tabIndex:l,position:s="bottom-end",focusElementRef:u}=e,c=(0,a.Z)(e,Kr),[d,p]=r.useState(-1),[f,m]=r.useState(!1),h=$(),b=r.useRef(null),v=r.useRef(null),C=r.useRef(!1),w=r.useRef({}),y=(0,Ut.Z)(),x=(0,Ut.Z)(),R=N();if(r.useLayoutEffect((()=>{o||Object.entries(w.current).forEach((([e,t])=>{null==t||t.stop({},(()=>{delete w.current[e]}))}))}),[o]),r.useEffect((()=>{if(d<0||!b.current)return;if(d>=b.current.children.length)return;b.current.children[d].focus()}),[d]),r.useEffect((()=>{o||(p(-1),C.current=!1)}),[o]),r.useImperativeHandle(u,(()=>({focus(){C.current||p(0)}})),[]),!(e=>"function"===typeof e.getActions)(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=t.getActions(h.current.getRowParams(n)),Z=k.filter((e=>!e.props.showInMenu)),S=k.filter((e=>e.props.showInMenu)),P=Z.length+(S.length?1:0);r.useEffect((()=>{d>=P&&p(P-1)}),[d,P]);const E=()=>{m(!1)},M=e=>t=>{w.current[e]=t},I=(e,t)=>n=>{p(e),C.current=!0,t&&t(n)};return(0,oe.jsxs)("div",(0,i.Z)({role:"menu",ref:b,tabIndex:-1,className:g._.actionsCell,onKeyDown:e=>{if(P<=1)return;let t=d;"ArrowRight"===e.key?t+=1:"ArrowLeft"===e.key&&(t-=1),t<0||t>=P||t!==d&&(e.preventDefault(),e.stopPropagation(),p(t))}},c,{children:[Z.map(((e,t)=>r.cloneElement(e,{key:t,touchRippleRef:M(t),onClick:I(t,e.props.onClick),tabIndex:d===t?l:-1}))),S.length>0&&x&&(0,oe.jsx)(_r.Z,{ref:v,id:x,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-controls":y,"aria-expanded":f?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:()=>{m(!0),p(P-1),C.current=!0},touchRippleRef:M(x),tabIndex:d===Z.length?l:-1,children:(0,oe.jsx)(R.components.MoreActionsIcon,{fontSize:"small"})}),S.length>0&&(0,oe.jsx)(Wr,{onClickAway:E,onClick:E,open:f,target:v.current,position:s,children:(0,oe.jsx)(Or.Z,{id:y,className:g._.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&E()},"aria-labelledby":x,variant:"menu",autoFocusItem:!0,children:S.map(((e,t)=>r.cloneElement(e,{key:t})))})})]}))},qr="actions",Xr=(0,i.Z)({},jn,{sortable:!1,filterable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>(0,oe.jsx)(Gr,(0,i.Z)({},e)),getApplyQuickFilterFn:void 0}),Yr="__default__",Qr=["maxWidth","minWidth","width","flex"],Jr=(e={})=>{const t=(0,i.Z)({},{string:jn,number:Vn,date:Yn,dateTime:Qn,boolean:lr,singleSelect:Fr,[qr]:Xr,[Yr]:jn});return Object.entries(e).forEach((([e,n])=>{t[e]?t[e]=(0,i.Z)({},t[e],n):t[e]=(0,i.Z)({},t[n.extendType||Yr],n)})),t};const eo=(e,t)=>{const n={};let r=0,o=0;const l=[];e.all.forEach((t=>{const a=(0,i.Z)({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])a.computedWidth=0;else{let e;a.flex&&a.flex>0?(r+=a.flex,e=0,l.push(a)):e=Be(a.width,a.minWidth,a.maxWidth),o+=e,a.computedWidth=e}n[t]=a}));const a=Math.max(t-o,0);if(r>0&&t>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:e=>{const t=r.all[e];t&&!0!==t.frozen&&(r.all[e].frozen=!0,r.frozenFields.push(e))}};return function o(){if(r.frozenFields.length===n.length)return;const l={min:{},max:{}};let i=e,a=t,s=0;r.frozenFields.forEach((e=>{i-=r.all[e].computedWidth,a-=r.all[e].flex}));for(let e=0;et.maxWidth&&(s+=t.maxWidth-o,o=t.maxWidth,l.max[t.field]=!0),r.all[t.field]={frozen:!1,computedWidth:o,flex:t.flex}}s<0?Object.keys(l.max).forEach((e=>{r.freeze(e)})):s>0?Object.keys(l.min).forEach((e=>{r.freeze(e)})):n.forEach((({field:e})=>{r.freeze(e)})),o()}(),r.all}({initialFreeSpace:a,totalFlexUnits:r,flexColumns:l});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return(0,i.Z)({},e,{lookup:n})};const to=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=T(e),shouldRegenColumnVisibilityModelFromColumns:l,keepOnlyColumnsToUpsert:a=!1})=>{var s,u,c,d;const p=!e.current.state.columns;let f;if(p)f={all:[],lookup:{}};else{const t=P(e.current.state);f={all:a?[]:[...t.all],lookup:(0,i.Z)({},t.lookup)}}let m={};a&&!p&&(m=Object.keys(f.lookup).reduce(((e,t)=>(0,i.Z)({},e,{[t]:!1})),{}));const g={};t.forEach((e=>{const{field:t}=e;g[t]=!0,m[t]=!0;let n=f.lookup[t];null==n?(n=(0,i.Z)({},((e,t)=>t&&e[t]?e[t]:e.__default__)(r,e.type),{field:t,hasBeenResized:!1}),f.all.push(t)):a&&f.all.push(t);let o=n.hasBeenResized;Qr.forEach((t=>{void 0!==e[t]&&(o=!0,-1===e[t]&&(e[t]=1/0))})),f.lookup[t]=(0,i.Z)({},n,{hide:null!=e.hide&&e.hide},e,{hasBeenResized:o})})),a&&!p&&Object.keys(f.lookup).forEach((e=>{m[e]||delete f.lookup[e]}));const h=(0,i.Z)({},f.lookup),b=e.current.unstable_applyPipeProcessors("hydrateColumns",f);let v={};if(l){let t=!1;const n=(0,i.Z)({},o);p?b.all.forEach((e=>{n[e]=!f.lookup[e].hide})):a&&Object.keys(n).forEach((e=>{b.lookup[e]||(delete n[e],t=!0)})),b.all.forEach((r=>{if(!g[r]&&h[r]===b.lookup[r])return;let l=o[r];if(void 0===l)if(p)l=!0;else{l=!!P(e.current.state).lookup[r]}const i=!b.lookup[r].hide;i!==l&&(t=!0,n[r]=i)})),v=t||p?n:o}else v=o;const C=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(0===o.length&&0===n.length)return e;const l={},a=[];for(let i=0;i!l[e]))],u=(0,i.Z)({},e.lookup);for(let c=0;c{t[e]=-1===n?1/0:n})),u[e]=t}return{all:s,lookup:u}})(b,n),w=(0,i.Z)({},C,{columnVisibilityModel:v});return eo(w,null!=(s=null==(u=(c=e.current).getRootDimensions)||null==(d=u.call(c))?void 0:d.viewportInnerSize.width)?s:0)},no=e=>t=>(0,i.Z)({},t,{columns:e});function ro({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let l=e;for(let i=n;i{var r,o,l,a,s,u,c;const d=!!t.columnVisibilityModel||!(null==(r=t.initialState)||null==(o=r.columns)||!o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:d};const p=Jr(t.columnTypes),f=to({apiRef:n,columnTypes:p,columnsToUpsert:t.columns,initialState:null==(l=t.initialState)?void 0:l.columns,shouldRegenColumnVisibilityModelFromColumns:!d,currentColumnVisibilityModel:null!=(a=null!=(s=t.columnVisibilityModel)?s:null==(u=t.initialState)||null==(c=u.columns)?void 0:c.columnVisibilityModel)?a:{},keepOnlyColumnsToUpsert:!0});return(0,i.Z)({},e,{columns:f})};var ao;!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(ao||(ao={}));const so=(e,t,n)=>{switch(e){case ao.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n),factor:.7};case ao.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n),factor:1.3};default:return{value:e,headerHeight:t,rowHeight:n,factor:1}}},uo=(e,t)=>(0,i.Z)({},e,{density:so(t.density,t.headerHeight,t.rowHeight)});const co=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],po=r.forwardRef((function(e,t){var n;const{field:o,id:l,value:s,hasFocus:u,tabIndex:d}=e,f=(0,a.Z)(e,co),m=$(),h=N(),b=(e=>{const{classes:t}=e;return(0,p.Z)({root:["checkboxInput"]},g.d,t)})({classes:h.classes}),v=r.useRef(null),C=r.useRef(),w=(0,c.Z)(v,t),y=m.current.getCellElement(l,o);r.useLayoutEffect((()=>{0===d&&y&&(y.tabIndex=-1)}),[y,d]),r.useLayoutEffect((()=>{if(u){var e;const t=null==(e=v.current)?void 0:e.querySelector("input");null==t||t.focus()}else C.current&&C.current.stop({})}),[u]);const x=r.useCallback((t=>{ur(t.key)&&t.stopPropagation(),hr(t.key)&&!t.shiftKey&&m.current.publishEvent("cellNavigationKeyDown",e,t)}),[m,e]),R=!h.isRowSelectable||h.isRowSelectable(m.current.getRowParams(l)),k=m.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,oe.jsx)(h.components.BaseCheckbox,(0,i.Z)({ref:w,tabIndex:d,checked:s,onChange:e=>{const t={value:e.target.checked,id:l};m.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:b.root,inputProps:{"aria-label":k},onKeyDown:x,disabled:!R,touchRippleRef:C},null==(n=h.componentsProps)?void 0:n.baseCheckbox,f))})),fo=r.memo(po),mo=e=>e.focus,go=S(mo,(e=>e.cell)),ho=S(mo,(e=>e.columnHeader)),bo=e=>e.tabIndex,vo=S(bo,(e=>e.cell)),Co=S(bo,(e=>e.columnHeader)),wo=e=>e.selection,yo=S(wo,(e=>e.length)),xo=S(wo,K,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),Ro=S(wo,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{}))),ko=e=>e.pagination,Zo=S(ko,(e=>e.page)),So=S(ko,(e=>e.pageSize)),Po=(S(ko,(e=>e.pageCount)),S(ko,q,Y,Pe,Te,((e,t,n,r,o)=>{const l=o.length,i=Math.min(e.pageSize*e.page,l-1),a=Math.min(i+e.pageSize-1,l-1);if(-1===i||-1===a)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:a};const s=o[i],u=a-i+1,c=r.findIndex((e=>e.id===s.id));let d=c,p=0;for(;d0)&&(d+=1),0===e&&(p+=1)}return{firstRowIndex:c,lastRowIndex:d-1}}))),Eo=S(Pe,Po,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Mo=S(Ee,Po,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Io=["field","colDef"],To=r.forwardRef((function(e,t){var n;const o=(0,a.Z)(e,Io),[,l]=r.useState(!1),s=$(),u=N(),c=(e=>{const{classes:t}=e;return(0,p.Z)({root:["checkboxInput"]},g.d,t)})({classes:u.classes}),d=j(s,Co),f=j(s,wo),m=j(s,Ee),h=j(s,Mo),b=r.useMemo((()=>"function"!==typeof u.isRowSelectable?f:f.filter((e=>!!s.current.getRow(e)&&u.isRowSelectable(s.current.getRowParams(e))))),[s,u.isRowSelectable,f]),v=r.useMemo((()=>(u.pagination&&u.checkboxSelectionVisibleOnly?h:m).reduce(((e,t)=>(e[t]=!0,e)),{})),[u.pagination,u.checkboxSelectionVisibleOnly,h,m]),C=r.useMemo((()=>b.filter((e=>v[e])).length),[b,v]),w=C>0&&C0,x=null!==d&&d.field===e.field?0:-1;r.useLayoutEffect((()=>{const t=s.current.getColumnHeaderElement(e.field);0===x&&t&&(t.tabIndex=-1)}),[x,s,e.field]);const R=r.useCallback((t=>{" "===t.key&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!y}),hr(t.key)&&!t.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",e,t)}),[s,e,y]),k=r.useCallback((()=>{l((e=>!e))}),[]);r.useEffect((()=>s.current.subscribeEvent("selectionChange",k)),[s,k]);const Z=s.current.getLocaleText(y?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,oe.jsx)(u.components.BaseCheckbox,(0,i.Z)({ref:t,indeterminate:w,checked:y,onChange:e=>{const t={value:e.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",t)},className:c.root,inputProps:{"aria-label":Z},tabIndex:x,onKeyDown:R},null==(n=u.componentsProps)?void 0:n.baseCheckbox,o))})),Fo="__check__",_o=(0,i.Z)({},lr,{field:Fo,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>void 0!==Ro(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>(0,oe.jsx)(To,(0,i.Z)({},e)),renderCell:e=>(0,oe.jsx)(fo,(0,i.Z)({},e))}),Oo=(e,t)=>{if("string"===typeof e){const n=e.replace(/"/g,'""');return[t,"\n","\r"].some((e=>n.includes(e)))?`"${n}"`:n}return e};R(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);function Do(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:l}=e,i=n.reduce(((e,n)=>`${e}${((e,t,n,r)=>t.map((t=>{const o=n(e,t.field);return Oo(o.formattedValue,r)})))(n,t,r,o).join(o)}\r\n`),"").trim();if(!l)return i;return`${`${t.filter((e=>e.field!==_o.field)).map((e=>Oo(e.headerName||e.field,o))).join(o)}\r\n`}${i}`.trim()}const Ho=({apiRef:e,options:t})=>{const n=I(e);if(t.fields)return t.fields.map((e=>n.find((t=>t.field===e)))).filter((e=>!!e));return(t.allColumns?n:F(e)).filter((e=>!e.disableExport))},Lo=({apiRef:e})=>{const t=Ie(e),n=e.current.getSelectedRows();return n.size>0?t.filter((e=>n.has(e))):t},jo=e=>{const t=$(),{hideMenu:n,options:r}=e;return(0,oe.jsx)(Wt.Z,{onClick:()=>{t.current.exportDataAsCsv(r),null==n||n()},children:t.current.getLocaleText("toolbarExportCSV")})},zo=e=>{const t=$(),{hideMenu:n,options:r}=e;return(0,oe.jsx)(Wt.Z,{onClick:()=>{t.current.exportDataAsPrint(r),null==n||n()},children:t.current.getLocaleText("toolbarExportPrint")})},$o=e=>{const t=ae(e,"useGridCsvExport"),n=r.useCallback(((n={})=>{var r,o;t.debug("Get data as CSV");return Do({columns:Ho({apiRef:e,options:n}),rowIds:(null!=(r=n.getRowsToExport)?r:Lo)({apiRef:e}),getCellParams:e.current.getCellParams,delimiterCharacter:n.delimiter||",",includeHeaders:null==(o=n.includeHeaders)||o})}),[t,e]),o=r.useCallback((e=>{t.debug("Export data as CSV");const r=n(e);!function(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=r,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",r],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[t,n]);Ye(e,{getDataAsCsv:n,exportDataAsCsv:o});const l=r.useCallback(((e,t)=>{var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[...e,{component:(0,oe.jsx)(jo,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);wt(e,"exportMenu",l)};var Vo=n(8038);const No=e=>e.rowsMeta,Ao="client",Bo="server";var Uo;!function(e){e.And="and",e.Or="or"}(Uo||(Uo={}));const Wo=()=>({items:[],linkOperator:Uo.And,quickFilterValues:[],quickFilterLogicOperator:Uo.And}),Ko=(e,t,n,o)=>{const l=r.useCallback((()=>{e.current.unstable_registerStrategyProcessor(t,n,o)}),[e,o,n,t]);Ct((()=>{l()}));const i=r.useRef(!0);r.useEffect((()=>{i.current?i.current=!1:l()}),[l])},Go=(e,t)=>{const n=(0,i.Z)({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operatorValue){const e=M(t)[n.columnField];n.operatorValue=e&&e.filterOperators[0].value}return n},qo=R(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Xo=R("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Yo=R(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),Qo=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(qo(),o=[e.items[0]]):o=e.items;const l=r&&o.some((e=>null==e.id)),a=o.some((e=>null==e.operatorValue));return l&&Xo(),a&&Yo(),a||l?(0,i.Z)({},e,{items:o.map((e=>Go(e,n)))}):e.items!==o?(0,i.Z)({},e,{items:o}):e},Jo=(e,t,n)=>r=>(0,i.Z)({},r,{filterModel:Qo(e,t,n)}),el=(e,t)=>{const n=((e,t)=>{const{items:n,linkOperator:r=Uo.And}=e,o=n.map((e=>{if(!e.columnField||!e.operatorValue)return null;const n=t.current.getColumn(e.columnField);if(!n)return null;let r;if(n.valueParser){var o;const t=n.valueParser;r=Array.isArray(e.value)?null==(o=e.value)?void 0:o.map((e=>t(e))):t(e.value)}else r=e.value;const l=(0,i.Z)({},e,{value:r}),a=n.filterOperators;if(null==a||!a.length)throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const s=a.find((e=>e.value===l.operatorValue));if(!s)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${l.operatorValue}'.`);const u=s.getApplyFilterFn(l,n);return"function"!==typeof u?null:{fn:e=>{const n=t.current.getCellParams(e,l.columnField);return u(n)},item:l}})).filter((e=>!!e));return 0===o.length?null:(e,t)=>{const n=t?o.filter((e=>t(e.item.columnField))):o;return r===Uo.And?n.every((t=>t.fn(e))):n.some((t=>t.fn(e)))}})(e,t),r=((e,t)=>{const{quickFilterValues:n=[],quickFilterLogicOperator:r=Uo.And}=e;if(0===n.length)return null;const o=E(t),l={};o.forEach((e=>{const r=t.current.getColumn(e),o=null==r?void 0:r.getApplyQuickFilterFn;o&&(l[e]=n.map((e=>o(e,r,t))))}));const i=n.filter(((e,t)=>Object.keys(l).some((e=>null!=l[e][t]))));return(e,n)=>{const o={},a=[];return Object.keys(l).forEach((r=>{n&&!n(r)||(o[r]=t.current.getCellParams(e,r),a.push(r))})),r===Uo.And?i.every(((e,t)=>a.some((e=>{var n,r;return null!=l[e][t]&&(null==(n=(r=l[e])[t])?void 0:n.call(r,o[e]))})))):i.some(((e,t)=>a.some((e=>{var n,r;return null!=l[e][t]&&(null==(n=(r=l[e])[t])?void 0:n.call(r,o[e]))}))))}})(e,t);return null==n&&null==r?null:null==n?r:null==r?n:(e,t)=>n(e,t)&&r(e,t)},tl=(e,t,n)=>{var r,o,l,a;const s=null!=(r=null!=(o=t.filterModel)?o:null==(l=t.initialState)||null==(a=l.filter)?void 0:a.filterModel)?r:Wo();return(0,i.Z)({},e,{filter:{filterModel:Qo(s,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},nl=(e,t)=>{let n,r;return t.pagination&&"client"===t.paginationMode?(r=Po(e),n=Eo(e)):(n=Pe(e),r=0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},rl=(e,t)=>{const n=nl(e,t);return r.useMemo((()=>({rows:n.rows,range:n.range})),[n.rows,n.range])},ol=e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),ll="__detail_panel_toggle__",il=e=>e?0:100,al=e=>t=>(0,i.Z)({},t,{pagination:(0,i.Z)({},t.pagination,{pageSize:e})}),sl=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,ul=e=>e.pageCount?(0,i.Z)({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,cl=e=>t=>(0,i.Z)({},t,{pagination:ul((0,i.Z)({},t.pagination,{page:e}))}),dl=(R(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),(e,t)=>{var n,r,o,l,a,s,u,c;let d;return d=null!=t.pageSize?t.pageSize:null!=(null==(n=t.initialState)||null==(r=n.pagination)?void 0:r.pageSize)?t.initialState.pagination.pageSize:il(t.autoPageSize),(0,i.Z)({},e,{pagination:{pageSize:d,page:null!=(o=null!=(l=t.page)?l:null==(a=t.initialState)||null==(s=a.pagination)?void 0:s.page)?o:0,pageCount:sl(null!=(u=t.rowCount)?u:0,d),rowCount:null!=(c=t.rowCount)?c:0}})}),pl=(e,t)=>{((e,t)=>{var n,o;const l=ae(e,"useGridPageSize"),a=j(e,te);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:So,changeEvent:"pageSizeChange"});const s=r.useCallback((t=>{t!==So(e)&&(l.debug(`Setting page size to ${t}`),e.current.setState(al(t)),e.current.forceUpdate())}),[e,l]);Ye(e,{setPageSize:s});const u=r.useCallback((n=>{var r,o;const l=So(e);return null!=t.pageSize||null!=(null==(r=t.initialState)||null==(o=r.pagination)?void 0:o.pageSize)||l!==il(t.autoPageSize)?(0,i.Z)({},n,{pagination:(0,i.Z)({},n.pagination,{pageSize:l})}):n}),[e,t.pageSize,null==(n=t.initialState)||null==(o=n.pagination)?void 0:o.pageSize,t.autoPageSize]),c=r.useCallback(((t,n)=>{var r;const o=null==(r=n.stateToRestore.pagination)?void 0:r.pageSize;return null!=o&&e.current.setState(al(o)),t}),[e]);wt(e,"exportState",u),wt(e,"restoreState",c);const d=r.useCallback((()=>{const n=e.current.getRootDimensions();if(!t.autoPageSize||!n)return;const r=Math.floor(n.viewportInnerSize.height/a);e.current.setPageSize(r)}),[e,t.autoPageSize,a]);rt(e,"viewportInnerSizeChange",d),r.useEffect((()=>{null==t.pageSize||t.autoPageSize||e.current.setPageSize(t.pageSize)}),[e,t.autoPageSize,t.pageSize]),r.useEffect((()=>{d()}),[d])})(e,t),((e,t)=>{var n,o;const l=ae(e,"useGridPage"),a=j(e,_e);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:Zo,changeEvent:"pageChange"});const s=r.useCallback((t=>{l.debug(`Setting page to ${t}`),e.current.setState(cl(t)),e.current.forceUpdate()}),[e,l]);Ye(e,{setPage:s});const u=r.useCallback((n=>{var r,o;const l=Zo(e);return null!=t.page||null!=(null==(r=t.initialState)||null==(o=r.pagination)?void 0:o.page)||0!==l?(0,i.Z)({},n,{pagination:(0,i.Z)({},n.pagination,{page:l})}):n}),[e,t.page,null==(n=t.initialState)||null==(o=n.pagination)?void 0:o.page]),c=r.useCallback(((t,n)=>{var r,o;const l=null!=(r=null==(o=n.stateToRestore.pagination)?void 0:o.page)?r:Zo(e);return e.current.setState(cl(l)),t}),[e]);wt(e,"exportState",u),wt(e,"restoreState",c),rt(e,"pageSizeChange",(t=>{e.current.setState((e=>{const n=sl(e.pagination.rowCount,t);return(0,i.Z)({},e,{pagination:ul((0,i.Z)({},e.pagination,{pageCount:n,page:e.pagination.page}))})})),e.current.forceUpdate()})),rt(e,"pageChange",(()=>e.current.scrollToIndexes({rowIndex:Zo(e)*So(e)}))),r.useEffect((()=>{}),[t.rowCount,t.paginationMode]),r.useEffect((()=>{e.current.setState((e=>{const n=void 0!==t.rowCount?t.rowCount:a,r=sl(n,e.pagination.pageSize),o=null==t.page?e.pagination.page:t.page;return(0,i.Z)({},e,{pagination:ul((0,i.Z)({},e.pagination,{page:o,rowCount:n,pageCount:r}))})})),e.current.forceUpdate()}),[a,t.rowCount,t.page,t.paginationMode,e])})(e,t)},fl=e=>e.preferencePanel,ml=(e,t)=>{var n,r;return(0,i.Z)({},e,{preferencePanel:null!=(n=null==(r=t.initialState)?void 0:r.preferencePanel)?n:{open:!1}})},gl=e=>e.editRows;function hl(e){return"function"===typeof e.then}const bl=(e,t)=>{var n;const o=ae(e,"useGridEditRows"),l=e=>(...n)=>{t.editMode===vr.Cell&&e(...n)},a=r.useCallback(((t,n,r)=>{e.current.getCellMode(t,n)!==r&&(o.debug(`Switching cell id: ${t} field: ${n} to mode: ${r}`),e.current.setState((o=>{const l=(0,i.Z)({},o.editRows);return l[t]=(0,i.Z)({},l[t]),r===Cr.Edit?l[t][n]={value:e.current.getCellValue(t,n)}:(delete l[t][n],Object.keys(l[t]).length||delete l[t]),(0,i.Z)({},o,{editRows:l})})),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(t,n)))}),[e,o]),s=r.useCallback(((t,n)=>{const r=gl(e.current.state);return r[t]&&r[t][n]?Cr.Edit:Cr.View}),[e]),u=r.useCallback(((n,r={})=>{var o;const{id:l,field:a}=n;e.current.unstable_runPendingEditCellValueMutation(l,a);const s=e.current.getEditRowsModel();if(!s[l]||!s[l][a])throw new Error(`MUI: Cell at id: ${l} and field: ${a} is not in edit mode.`);const u=s[l][a],c=e.current.getColumn(a),d=e.current.getRow(l);if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating){const e=s[l][a];if(e.isValidating||e.error)return!1}const p=(0,i.Z)({},n,{value:u.value});let f=!!u.error;if(!f&&"function"===typeof c.preProcessEditCellProps){const t=c.preProcessEditCellProps({id:l,row:d,props:u});if(hl(t))return t.then((t=>(e.current.unstable_setEditCellProps({id:l,field:a,props:t}),!t.error&&(e.current.publishEvent("cellEditCommit",p,r),!0))));e.current.unstable_setEditCellProps({id:l,field:a,props:t}),f=!!t.error}return!f&&(e.current.publishEvent("cellEditCommit",p,r),!0)}),[e,null==(n=t.experimentalFeatures)?void 0:n.preventCommitWhileValidating]),c=r.useCallback((t=>{const n=e.current.getColumn(t.field),r=e.current.getRow(t.id);return new Promise((o=>{let l={value:t.value};const a=e.current.getEditRowsModel()[t.id][t.field];if("function"!==typeof n.preProcessEditCellProps)return e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:l})),void o(!0);l=e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:(0,i.Z)({},a,{isValidating:!0})})),Promise.resolve(n.preProcessEditCellProps({id:t.id,row:r,props:(0,i.Z)({},l,{value:e.current.unstable_parseValue(t.id,t.field,t.value)})})).then((n=>{e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:(0,i.Z)({},n,{isValidating:!1})})),o(!n.error)}))}))}),[e]);Ye(e,{setCellMode:a,getCellMode:s,commitCellChange:u,unstable_setCellEditingEditCellValue:c});const d=r.useCallback((async(t,n)=>{const{id:r,field:o,cellMode:l,isEditable:i}=t;if(!i)return;const a=l===Cr.Edit,s=n.ctrlKey||n.metaKey||n.altKey;var u;if(a||(u=n.key,!(ar(u)||cr(u)||pr(u)))||s||" "===n.key&&n.shiftKey||e.current.publishEvent("cellEditStart",t,n),!a&&cr(n.key)&&(e.current.setEditCellValue({id:r,field:o,value:""}),e.current.commitCellChange({id:r,field:o},n),e.current.publishEvent("cellEditStop",t,n)),a&&gr(n.key)){const t={id:r,field:o};if(!(await e.current.commitCellChange(t,n)))return}a&&(e=>fr.indexOf(e)>-1)(n.key)&&e.current.publishEvent("cellEditStop",t,n)}),[e]),p=r.useCallback(((t,n)=>{t.isEditable&&e.current.publishEvent("cellEditStart",t,n)}),[e]),f=async(t,n)=>{t.cellMode!==Cr.View&&(await e.current.commitCellChange(t,n),e.current.publishEvent("cellEditStop",t,n))},m=(0,fe.Z)(((e,t)=>{f(e,t)})),g=(0,fe.Z)((()=>{const t=go(e);if(!t)return;const n=e.current.getCellParams(t.id,t.field);f(n,{})})),h=r.useCallback(((t,n)=>{t.isEditable&&(e.current.setCellMode(t.id,t.field,Cr.Edit),br(n)&&pr(n.key)&&e.current.unstable_setEditCellProps({id:t.id,field:t.field,props:{value:""}}))}),[e]),b=r.useCallback(((t,n)=>{e.current.setCellMode(t.id,t.field,Cr.View),br(n)&&(gr(n.key)?e.current.publishEvent("cellNavigationKeyDown",t,n):("Escape"===n.key||cr(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e]),v=r.useCallback((t=>{const{id:n,field:r}=t,l=e.current.getEditRowsModel(),{value:a}=l[n][r];o.debug(`Setting cell id: ${n} field: ${r} to value: ${null==a?void 0:a.toString()}`);const s=e.current.getRow(n);if(s){const n=e.current.getColumn(t.field);let o=(0,i.Z)({},s,{[r]:a});n.valueSetter&&(o=n.valueSetter({row:s,value:a})),e.current.updateRows([o])}}),[e,o]),C=r.useCallback((t=>{const n=e.current.getRow(t.id),r=e.current.getColumn(t.field),o=r.preProcessEditCellProps?r.preProcessEditCellProps({id:t.id,row:n,props:t.props}):t.props;hl(o)?o.then((n=>{e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:n}))})):e.current.unstable_setEditCellProps((0,i.Z)({},t,{props:o}))}),[e]);rt(e,"cellKeyDown",l(d)),rt(e,"cellDoubleClick",l(p)),rt(e,"cellFocusOut",l(m)),rt(e,"columnHeaderDragStart",l(g)),rt(e,"cellEditStart",l(h)),rt(e,"cellEditStop",l(b)),rt(e,"cellEditCommit",l(v)),rt(e,"editCellPropsChange",l(C)),lt(e,"cellEditCommit",t.onCellEditCommit),lt(e,"cellEditStart",t.onCellEditStart),lt(e,"cellEditStop",t.onCellEditStop)},vl=e=>(0,i.Z)({},e,{editRows:{}});function Cl(e,t){var n;const o=ae(e,"useGridEditRows");bl(e,t),((e,t)=>{var n,o;const l=r.useRef(null),a=r.useRef(null),s=j(e,I),u=e=>(...n)=>{t.editMode===vr.Row&&e(...n)},c=r.useCallback(((t,n)=>{n!==e.current.getRowMode(t)&&(e.current.setState((r=>{const o=(0,i.Z)({},r.editRows);return n===wr.Edit?(o[t]={},s.forEach((n=>{const r=e.current.getCellParams(t,n.field);r.isEditable&&(o[t][n.field]={value:r.value})}))):delete o[t],(0,i.Z)({},r,{editRows:o})})),e.current.forceUpdate())}),[e,s]),d=r.useCallback((n=>t.editMode===vr.Cell?wr.View:gl(e.current.state)[n]?wr.Edit:wr.View),[e,t.editMode]),p=r.useCallback(((n,r={})=>{var o;if(t.editMode===vr.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(n);const l=e.current.getEditRowsModel()[n];if(!l)throw new Error(`MUI: Row at id: ${n} is not being edited.`);if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating&&!Object.keys(l).reduce(((e,t)=>e&&!l[t].isValidating&&!l[t].error),!0))return!1;if(Object.values(l).some((e=>!!e.error)))return!1;const i=Object.keys(l).filter((t=>"function"===typeof e.current.getColumn(t).preProcessEditCellProps));if(i.length>0){const t=e.current.getRow(n),o=i.map((async r=>{const o=e.current.getColumn(r),i=await Promise.resolve(o.preProcessEditCellProps({id:n,row:t,props:l[r]}));return e.current.unstable_setEditCellProps({id:n,field:r,props:i}),i.error}));return Promise.all(o).then((t=>!t.some((e=>!!e))&&(e.current.publishEvent("rowEditCommit",n,r),!0)))}return e.current.publishEvent("rowEditCommit",n,r),!0}),[e,t.editMode,null==(n=t.experimentalFeatures)?void 0:n.preventCommitWhileValidating]),f=r.useCallback((t=>{const n=e.current.getEditRowsModel()[t.id],r=e.current.getRow(t.id);let o=!0;return new Promise((l=>{Object.keys(n).forEach((async l=>{const a=e.current.getColumn(l);let s=l===t.field?{value:t.value}:n[l];s=e.current.unstable_setEditCellProps({id:t.id,field:l,props:(0,i.Z)({},s,{isValidating:!0})}),a.preProcessEditCellProps&&(s=await Promise.resolve(a.preProcessEditCellProps({id:t.id,row:r,props:(0,i.Z)({},s,{value:l===t.field?e.current.unstable_parseValue(t.id,l,t.value):s.value})}))),s.error&&(o=!1),e.current.unstable_setEditCellProps({id:t.id,field:l,props:(0,i.Z)({},s,{isValidating:!1})})})),l(o)}))}),[e]);Ye(e,{setRowMode:c,getRowMode:d,commitRowChange:p,unstable_setRowEditingEditCellValue:f});const m=r.useCallback((async(n,r)=>{const{cellMode:o,isEditable:l}=n;if(!l)return;const i=o===Cr.Edit,a=e.current.getRowParams(n.id);if(i)if("Enter"===r.key){var s;if(!(await e.current.commitRowChange(n.id))&&null!=(s=t.experimentalFeatures)&&s.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",a,r)}else"Escape"===r.key&&e.current.publishEvent("rowEditStop",a,r);else"Enter"===r.key&&e.current.publishEvent("rowEditStart",a,r)}),[e,null==(o=t.experimentalFeatures)?void 0:o.preventCommitWhileValidating]),g=r.useCallback(((t,n)=>{if(!t.isEditable)return;const r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStart",r,n)}),[e]),h=r.useCallback((t=>{const n=e.current.getRow(t.id),r=e.current.getEditRowsModel()[t.id];Object.keys(r).forEach((async o=>{const l=e.current.getColumn(o);if(l.preProcessEditCellProps){const i=o===t.field?t.props:r[o],a=await Promise.resolve(l.preProcessEditCellProps({id:t.id,row:n,props:i}));e.current.unstable_setEditCellProps({id:t.id,field:o,props:a})}else o===t.field&&e.current.unstable_setEditCellProps(t)}))}),[e]),b=r.useCallback((t=>{e.current.setRowMode(t.id,wr.Edit)}),[e]),v=r.useCallback(((t,n)=>{e.current.setRowMode(t.id,wr.View),"Enter"===n.key&&e.current.publishEvent("cellNavigationKeyDown",t,n)}),[e]),C=r.useCallback((t=>{const n=e.current.getEditRowsModel()[t];if(!n)throw new Error(`MUI: Row at id: ${t} is not being edited.`);const r=e.current.getRow(t);if(r){let t=(0,i.Z)({},r);Object.keys(n).forEach((r=>{const o=e.current.getColumn(r),l=n[r].value;o.valueSetter?t=o.valueSetter({row:t,value:l}):t[r]=l})),e.current.updateRows([t])}}),[e]),w=r.useCallback((e=>{a.current=e}),[]),y=async(t,n)=>{t.cellMode!==Cr.View&&(a.current=null,l.current=setTimeout((async()=>{var r;if((null==(r=a.current)?void 0:r.id)!==t.id){await e.current.commitRowChange(t.id,n);const r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStop",r,n)}})))},x=(0,fe.Z)(((e,t)=>{y(e,t)})),R=(0,fe.Z)((()=>{const t=go(e);if(!t)return;const n=e.current.getCellParams(t.id,t.field);y(n,{})}));rt(e,"cellKeyDown",u(m)),rt(e,"cellDoubleClick",u(g)),rt(e,"editCellPropsChange",u(h)),rt(e,"rowEditStart",u(b)),rt(e,"rowEditStop",u(v)),rt(e,"rowEditCommit",u(C)),rt(e,"cellFocusIn",u(w)),rt(e,"cellFocusOut",u(x)),rt(e,"columnHeaderDragStart",u(R)),lt(e,"rowEditCommit",t.onRowEditCommit),lt(e,"rowEditStart",t.onRowEditStart),lt(e,"rowEditStop",t.onRowEditStop)})(e,t);const l=r.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:gl,changeEvent:"editRowsModelChange"});const a=r.useCallback((e=>!e.rowNode.isAutoGenerated&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(e))),[t.isCellEditable]),s=r.useCallback(((e,t)=>{if(l.current[e])if(t){if(l.current[e][t]){const[,n]=l.current[e][t];n()}}else Object.keys(l.current[e]).forEach((t=>{const[,n]=l.current[e][t];n()}))}),[]),u=r.useCallback(((n,r={})=>{((e,t,n,r)=>{if(!n)return void r();if(l.current[e]||(l.current[e]={}),l.current[e][t]){const[n]=l.current[e][t];clearTimeout(n)}const o=setTimeout((()=>{r(),delete l.current[e][t]}),n);l.current[e][t]=[o,()=>{r();const[n]=l.current[e][t];clearTimeout(n),delete l.current[e][t]}]})(n.id,n.field,n.debounceMs,(()=>{var o;if(null!=(o=t.experimentalFeatures)&&o.preventCommitWhileValidating)return"row"===t.editMode?e.current.unstable_setRowEditingEditCellValue(n):e.current.unstable_setCellEditingEditCellValue(n);const l={id:n.id,field:n.field,props:{value:n.value}};return e.current.publishEvent("editCellPropsChange",l,r)}))}),[e,t.editMode,null==(n=t.experimentalFeatures)?void 0:n.preventCommitWhileValidating]),c=r.useCallback(((t,n,r)=>{const o=e.current.getColumn(n);return o.valueParser?o.valueParser(r,e.current.getCellParams(t,n)):r}),[e]),d=r.useCallback((t=>{const{id:n,field:r,props:l}=t;o.debug(`Setting cell props on id: ${n} field: ${r}`),e.current.setState((e=>{const t=(0,i.Z)({},e.editRows);return t[n]=(0,i.Z)({},e.editRows[n]),t[n][r]=(0,i.Z)({},l,{value:c(n,r,l.value)}),(0,i.Z)({},e,{editRows:t})})),e.current.forceUpdate();return gl(e.current.state)[n][r]}),[e,o,c]),p=r.useCallback((t=>{gl(e.current.state)!==t&&(o.debug("Setting editRows model"),e.current.setState((e=>(0,i.Z)({},e,{editRows:t}))),e.current.forceUpdate())}),[e,o]),f=r.useCallback((()=>gl(e.current.state)),[e]),m=r.useCallback(((e,t)=>{const n=t.detail>1;e.isEditable&&e.cellMode===Cr.View&&n&&t.preventDefault()}),[]);rt(e,"cellMouseDown",m),lt(e,"editCellPropsChange",t.onEditCellPropsChange);Ye(e,{isCellEditable:a,setEditRowsModel:p,getEditRowsModel:f,setEditCellValue:u,unstable_setEditCellProps:d,unstable_parseValue:c,unstable_runPendingEditCellValueMutation:s}),r.useEffect((()=>{void 0!==t.editRowsModel&&e.current.setEditRowsModel(t.editRowsModel)}),[e,t.editRowsModel])}var wl,yl;!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(wl||(wl={})),function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(yl||(yl={}));const xl=["id","field"],Rl=["id","field"],kl=R(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error");var Zl,Sl;!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(Zl||(Zl={})),function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(Sl||(Sl={}));const Pl=["id"],El=["id"],Ml=R(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),Il=e=>(0,i.Z)({},e,{editRows:{}}),Tl=(e,t)=>{((e,t)=>{const[n,o]=r.useState({}),l=r.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:u,cellModesModel:c,onCellModesModelChange:d,signature:p}=t,f=e=>(...n)=>{t.editMode===vr.Cell&&e(...n)},m=r.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),g=r.useCallback(((t,n,r)=>{if(e.current.getCellMode(t,n)!==r)throw new Error(`MUI: The cell with id=${t} and field=${n} is not in ${r} mode.`)}),[e]),h=r.useCallback(((t,n)=>{if(!t.isEditable)return;if(t.cellMode===Cr.Edit)return;const r=(0,i.Z)({},t,{reason:wl.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)}),[e]),b=r.useCallback(((t,n)=>{if(t.cellMode===Cr.View)return;const r=(0,i.Z)({},t,{reason:yl.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)}),[e]),v=r.useCallback(((t,n)=>{if(t.cellMode===Cr.Edit){let r;if("Escape"===n.key?r=yl.escapeKeyDown:"Enter"===n.key?r=yl.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?yl.shiftTabKeyDown:yl.tabKeyDown,n.preventDefault()),r){const o=(0,i.Z)({},t,{reason:r});e.current.publishEvent("cellEditStop",o,n)}}else if(t.isEditable){let r;if(pr(n.key)){if(n.shiftKey||n.ctrlKey||n.metaKey||n.altKey)return;r=wl.printableKeyDown}else"Enter"===n.key?r=wl.enterKeyDown:"Delete"===n.key&&(r=wl.deleteKeyDown);if(r){const o=(0,i.Z)({},t,{reason:r});e.current.publishEvent("cellEditStart",o,n)}}}),[e]),C=r.useCallback((t=>{const{id:n,field:r,reason:o}=t,l={id:n,field:r};o!==wl.deleteKeyDown&&o!==wl.printableKeyDown||(l.deleteValue=!0),e.current.startCellEditMode(l)}),[e]),w=r.useCallback((t=>{const{id:n,field:r,reason:o}=t;let l;o===yl.enterKeyDown?l="below":o===yl.tabKeyDown?l="right":o===yl.shiftTabKeyDown&&(l="left");let i="escapeKeyDown"===o;gl(e.current.state)[n][r].isProcessingProps&&(i=!0),e.current.stopCellEditMode({id:n,field:r,ignoreModifications:i,cellToFocusAfter:l})}),[e]);rt(e,"cellDoubleClick",f(h)),rt(e,"cellFocusOut",f(b)),rt(e,"cellKeyDown",f(v)),rt(e,"cellEditStart",f(C)),rt(e,"cellEditStop",f(w)),lt(e,"cellEditStart",t.onCellEditStart),lt(e,"cellEditStop",t.onCellEditStop);const y=r.useCallback(((t,n)=>{const r=gl(e.current.state);return r[t]&&r[t][n]?Cr.Edit:Cr.View}),[e]),x=r.useCallback((n=>{const r=n!==t.cellModesModel;if(d&&r){const t=p===et.DataGridPro?{api:e.current}:{};d(n,t)}t.cellModesModel&&r||(o(n),e.current.publishEvent("cellModesModelChange",n))}),[e,d,t.cellModesModel,p]),R=r.useCallback(((e,t,r)=>{const o=(0,i.Z)({},n);if(null!==r)o[e]=(0,i.Z)({},o[e],{[t]:(0,i.Z)({},r)});else{const r=n[e],l=(0,a.Z)(r,[t].map(ut));o[e]=l,0===Object.keys(o[e]).length&&delete o[e]}x(o)}),[n,x]),k=r.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=(0,i.Z)({},e.editRows);return null!==r?o[t]=(0,i.Z)({},o[t],{[n]:(0,i.Z)({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),(0,i.Z)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),Z=r.useCallback((e=>{const{id:t,field:n}=e,r=(0,a.Z)(e,xl);m(t,n),g(t,n,Cr.View),R(t,n,(0,i.Z)({mode:Cr.Edit},r))}),[m,g,R]),S=r.useCallback((t=>{const{id:n,field:r,deleteValue:o}=t,l={value:o?"":e.current.getCellValue(n,r),error:!1,isProcessingProps:!1};k(n,r,l),e.current.setCellFocus(n,r)}),[e,k]),P=r.useCallback((e=>{const{id:t,field:n}=e,r=(0,a.Z)(e,Rl);g(t,n,Cr.Edit),R(t,n,(0,i.Z)({mode:Cr.View},r))}),[g,R]),E=r.useCallback((async t=>{const{id:n,field:r,ignoreModifications:o,cellToFocusAfter:i="none"}=t;g(n,r,Cr.Edit),e.current.unstable_runPendingEditCellValueMutation(n,r);const a=()=>{"none"!==i&&e.current.unstable_moveFocusToRelativeCell(n,r,i),k(n,r,null),R(n,r,null)};if(o)return void a();const c=gl(e.current.state),{error:d,isProcessingProps:p}=c[n][r];if(d||p)return void(l.current[n][r].mode=Cr.Edit);const f=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(n,r);if(s){const t=e=>{l.current[n][r].mode=Cr.Edit,u?u(e):kl()};try{const r=e.current.getRow(n);Promise.resolve(s(f,r)).then((t=>{e.current.updateRows([t]),a()})).catch(t)}catch(m){t(m)}}else e.current.updateRows([f]),a()}),[e,u,s,g,R,k]),M=r.useCallback((async t=>{const{id:n,field:r,value:o}=t;m(n,r),g(n,r,Cr.Edit);const l=e.current.getColumn(r),a=e.current.getRow(n);let s=o;l.valueParser&&(s=l.valueParser(o,e.current.getCellParams(n,r)));let u=gl(e.current.state),c=(0,i.Z)({},u[n][r],{value:s});if(l.preProcessEditCellProps){const e=o!==u[n][r].value;c=(0,i.Z)({},c,{isProcessingProps:!0}),k(n,r,c),c=await Promise.resolve(l.preProcessEditCellProps({id:n,row:a,props:c,hasChanged:e}))}return e.current.getCellMode(n,r)!==Cr.View&&(u=gl(e.current.state),c=(0,i.Z)({},c,{isProcessingProps:!1}),c.value=l.preProcessEditCellProps?u[n][r].value:s,k(n,r,c),u=gl(e.current.state),!u[n][r].error)}),[e,m,g,k]),I=r.useCallback(((t,n)=>{const r=e.current.getColumn(n),o=gl(e.current.state),{value:l}=o[t][n],a=e.current.getRow(t);return r.valueSetter?r.valueSetter({value:l,row:a}):(0,i.Z)({},a,{[n]:l})}),[e]);Ye(e,{getCellMode:y,startCellEditMode:Z,stopCellEditMode:P,unstable_setCellEditingEditCellValue:M,unstable_getRowWithUpdatedValuesFromCellEditing:I}),r.useEffect((()=>{c&&x(c)}),[c,x]),r.useEffect((()=>{const t=G(e),r=l.current;l.current=n,Object.entries(n).forEach((([e,n])=>{Object.entries(n).forEach((([n,o])=>{var l,a,s;const u=(null==(l=r[e])||null==(a=l[n])?void 0:a.mode)||Cr.View,c=null!=(s=t[e])?s:e;o.mode===Cr.Edit&&u===Cr.View?S((0,i.Z)({id:c,field:n},o)):o.mode===Cr.View&&u===Cr.Edit&&E((0,i.Z)({id:c,field:n},o))}))}))}),[e,n,S,E])})(e,t),((e,t)=>{const[n,o]=r.useState({}),l=r.useRef({}),s=r.useRef(null),u=r.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:f,signature:m}=t,g=e=>(...n)=>{t.editMode===vr.Row&&e(...n)},h=r.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI: The cell with id=${t} and field=${n} is not editable.`)}),[e]),b=r.useCallback(((t,n)=>{if(e.current.getRowMode(t)!==n)throw new Error(`MUI: The row with id=${t} is not in ${n} mode.`)}),[e]),v=r.useCallback(((t,n)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===wr.Edit)return;const r=e.current.getRowParams(t.id),o=(0,i.Z)({},r,{field:t.field,reason:Zl.cellDoubleClick});e.current.publishEvent("rowEditStart",o,n)}),[e]),C=r.useCallback((e=>{u.current=e}),[]),w=r.useCallback(((t,n)=>{t.isEditable&&e.current.getRowMode(t.id)!==wr.View&&(u.current=null,s.current=setTimeout((()=>{var r;if(s.current=null,(null==(r=u.current)?void 0:r.id)!==t.id){if(!e.current.getRow(t.id))return;const r=e.current.getRowParams(t.id),o=(0,i.Z)({},r,{field:t.field,reason:Sl.rowFocusOut});e.current.publishEvent("rowEditStop",o,n)}})))}),[e]);r.useEffect((()=>()=>{clearTimeout(s.current)}),[]);const y=r.useCallback(((t,n)=>{if(t.cellMode===wr.Edit){let r;if("Escape"===n.key)r=Sl.escapeKeyDown;else if("Enter"===n.key)r=Sl.enterKeyDown;else if("Tab"===n.key){const o=E(e).filter((n=>e.current.isCellEditable(e.current.getCellParams(t.id,n))));n.shiftKey?t.field===o[0]&&(r=Sl.shiftTabKeyDown):t.field===o[o.length-1]&&(r=Sl.tabKeyDown),r&&n.preventDefault()}if(r){const o=e.current.getRowParams(t.id),l=(0,i.Z)({},o,{reason:r,field:t.field});e.current.publishEvent("rowEditStop",l,n)}}else if(t.isEditable){let r;if(pr(n.key)){if(n.shiftKey||n.ctrlKey||n.metaKey||n.altKey)return;r=Zl.printableKeyDown}else"Enter"===n.key?r=Zl.enterKeyDown:"Delete"===n.key&&(r=Zl.deleteKeyDown);if(r){const o=e.current.getRowParams(t.id),l=(0,i.Z)({},o,{field:t.field,reason:r});e.current.publishEvent("rowEditStart",l,n)}}}),[e]),x=r.useCallback((t=>{const{id:n,field:r,reason:o}=t,l={id:n,fieldToFocus:r};o!==Zl.deleteKeyDown&&o!==Zl.printableKeyDown||(l.deleteValue=!!r),e.current.startRowEditMode(l)}),[e]),R=r.useCallback((t=>{const{id:n,reason:r,field:o}=t;let l;e.current.unstable_runPendingEditCellValueMutation(n),r===Sl.enterKeyDown?l="below":r===Sl.tabKeyDown?l="right":r===Sl.shiftTabKeyDown&&(l="left");let i="escapeKeyDown"===r;const a=gl(e.current.state);i||(i=Object.values(a[n]).some((e=>e.isProcessingProps))),e.current.stopRowEditMode({id:n,ignoreModifications:i,field:o,cellToFocusAfter:l})}),[e]);rt(e,"cellDoubleClick",g(v)),rt(e,"cellFocusIn",g(C)),rt(e,"cellFocusOut",g(w)),rt(e,"cellKeyDown",g(y)),rt(e,"rowEditStart",g(x)),rt(e,"rowEditStop",g(R)),lt(e,"rowEditStart",t.onRowEditStart),lt(e,"rowEditStop",t.onRowEditStop);const k=r.useCallback((n=>{if(t.editMode===vr.Cell)return wr.View;const r=gl(e.current.state);return r[n]&&Object.keys(r[n]).length>0?wr.Edit:wr.View}),[e,t.editMode]),Z=r.useCallback((n=>{const r=n!==t.rowModesModel;if(f&&r){const t=m===et.DataGridPro?{api:e.current}:{};f(n,t)}t.rowModesModel&&r||(o(n),e.current.publishEvent("rowModesModelChange",n))}),[e,f,t.rowModesModel,m]),S=r.useCallback(((e,t)=>{const r=(0,i.Z)({},n);null!==t?r[e]=(0,i.Z)({},t):delete r[e],Z(r)}),[n,Z]),P=r.useCallback(((t,n)=>{e.current.setState((e=>{const r=(0,i.Z)({},e.editRows);return null!==n?r[t]=n:delete r[t],(0,i.Z)({},e,{editRows:r})})),e.current.forceUpdate()}),[e]),M=r.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=(0,i.Z)({},e.editRows);return null!==r?o[t]=(0,i.Z)({},o[t],{[n]:(0,i.Z)({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),(0,i.Z)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),I=r.useCallback((e=>{const{id:t}=e,n=(0,a.Z)(e,Pl);b(t,wr.View),S(t,(0,i.Z)({mode:wr.Edit},n))}),[b,S]),T=r.useCallback((t=>{const{id:n,fieldToFocus:r,deleteValue:o}=t,l=E(e).reduce(((t,l)=>{if(!e.current.getCellParams(n,l).isEditable)return t;const i=o&&r===l;return t[l]={value:i?"":e.current.getCellValue(n,l),error:!1,isProcessingProps:!1},t}),{});P(n,l),r&&e.current.setCellFocus(n,r)}),[e,P]),F=r.useCallback((e=>{const{id:t}=e,n=(0,a.Z)(e,El);b(t,wr.Edit),S(t,(0,i.Z)({mode:wr.View},n))}),[b,S]),_=r.useCallback((t=>{const{id:n,ignoreModifications:r,field:o,cellToFocusAfter:i="none"}=t;e.current.unstable_runPendingEditCellValueMutation(n);const a=()=>{"none"!==i&&o&&e.current.unstable_moveFocusToRelativeCell(n,o,i),P(n,null),S(n,null)};if(r)return void a();const s=gl(e.current.state),u=e.current.getRow(n);if(Object.values(s[n]).some((e=>e.isProcessingProps)))return void(l.current[n].mode=wr.Edit);if(Object.values(s[n]).some((e=>e.error)))return void(l.current[n].mode=wr.Edit);const p=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n);if(c){const t=e=>{l.current[n].mode=wr.Edit,d?d(e):Ml()};try{Promise.resolve(c(p,u)).then((t=>{e.current.updateRows([t]),a()})).catch(t)}catch(f){t(f)}}else e.current.updateRows([p]),a()}),[e,d,c,P,S]),O=r.useCallback((t=>{const{id:n,field:r,value:o}=t;h(n,r);const l=e.current.getColumn(r),s=e.current.getRow(n);let u=o;l.valueParser&&(u=l.valueParser(o,e.current.getCellParams(n,r)));let c=gl(e.current.state),d=(0,i.Z)({},c[n][r],{value:u});return l.preProcessEditCellProps||M(n,r,d),new Promise((t=>{const o=[];if(l.preProcessEditCellProps){const p=d.value!==c[n][r].value;d=(0,i.Z)({},d,{isProcessingProps:!0}),M(n,r,d);const f=c[n],m=(0,a.Z)(f,[r].map(ut)),g=Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:d,hasChanged:p,otherFieldsProps:m})).then((o=>{e.current.getRowMode(n)!==wr.View?(c=gl(e.current.state),(o=(0,i.Z)({},o,{isProcessingProps:!1})).value=l.preProcessEditCellProps?c[n][r].value:u,M(n,r,o)):t(!1)}));o.push(g)}Object.entries(c[n]).forEach((([l,u])=>{if(l===r)return;const d=e.current.getColumn(l);if(!d.preProcessEditCellProps)return;u=(0,i.Z)({},u,{isProcessingProps:!0}),M(n,l,u),c=gl(e.current.state);const p=c[n],f=(0,a.Z)(p,[l].map(ut)),m=Promise.resolve(d.preProcessEditCellProps({id:n,row:s,props:u,hasChanged:!1,otherFieldsProps:f})).then((r=>{e.current.getRowMode(n)!==wr.View?(r=(0,i.Z)({},r,{isProcessingProps:!1}),M(n,l,r)):t(!1)}));o.push(m)})),Promise.all(o).then((()=>{e.current.getRowMode(n)===wr.Edit?(c=gl(e.current.state),t(!c[n][r].error)):t(!1)}))}))}),[e,h,M]),D=r.useCallback((t=>{const n=gl(e.current.state),r=e.current.getRow(t);let o=(0,i.Z)({},r);return Object.entries(n[t]).forEach((([t,n])=>{const r=e.current.getColumn(t);r.valueSetter?o=r.valueSetter({value:n.value,row:o}):o[t]=n.value})),o}),[e]);Ye(e,{getRowMode:k,startRowEditMode:I,stopRowEditMode:F,unstable_setRowEditingEditCellValue:O,unstable_getRowWithUpdatedValuesFromRowEditing:D}),r.useEffect((()=>{p&&Z(p)}),[p,Z]),r.useEffect((()=>{const t=G(e),r=l.current;l.current=n,Object.entries(n).forEach((([e,n])=>{var o,l;const a=(null==(o=r[e])?void 0:o.mode)||wr.View,s=null!=(l=t[e])?l:e;n.mode===wr.Edit&&a===wr.View?T((0,i.Z)({id:s},n)):n.mode===wr.View&&a===wr.Edit&&_((0,i.Z)({id:s},n))}))}),[e,n,T,_])})(e,t);const n=r.useRef({}),{isCellEditable:o}=t,l=r.useCallback((e=>!e.rowNode.isAutoGenerated&&(!!e.colDef.editable&&(!!e.colDef.renderEditCell&&(!o||o(e))))),[o]);r.useEffect((()=>{const e=n.current;return()=>{Object.entries(e).forEach((([t,n])=>{Object.keys(n).forEach((n=>{const[r]=e[t][n];clearTimeout(r),delete e[t][n]}))}))}}),[]);const s=r.useCallback(((e,t)=>{if(n.current[e])if(t){if(n.current[e][t]){const[,r]=n.current[e][t];r()}}else Object.keys(n.current[e]).forEach((t=>{const[,r]=n.current[e][t];r()}))}),[]),u=r.useCallback((r=>{const{id:o,field:l,debounceMs:i}=r;return new Promise((a=>{((e,t,r,o)=>{if(!r)return void o();if(n.current[e]||(n.current[e]={}),n.current[e][t]){const[r]=n.current[e][t];clearTimeout(r)}const l=setTimeout((()=>{o(),delete n.current[e][t]}),r);n.current[e][t]=[l,()=>{const[r]=n.current[e][t];clearTimeout(r),o(),delete n.current[e][t]}]})(o,l,i,(async()=>{const n=t.editMode===vr.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(o,l)===Cr.Edit){const e=await n(r);a(e)}}))}))}),[e,t.editMode]),c=r.useCallback(((n,r)=>t.editMode===vr.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(n,r):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n)),[e,t.editMode]);Ye(e,{isCellEditable:l,setEditCellValue:u,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c})},Fl=["rowsBeforePartialUpdates"];const _l=(e,t,n)=>{const r=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(r,e,n),r},Ol=({rows:e,getRowId:t,loading:n})=>{const r={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let o=0;o{const o=e.current.unstable_caches.rows,l=(0,a.Z)(o,Fl),s=null!=n?n:0,u=e.current.unstable_applyStrategyProcessor("rowTreeCreation",(0,i.Z)({},l,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",u),d=1===c.treeDepth?c.ids.length:Object.values(c.tree).filter((e=>null==e.parent)).length;return(0,i.Z)({},c,{groupingResponseBeforeRowHydration:u,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,d)})},Hl=(e,t,n)=>{var r;const o=null==(r=e[t])?void 0:r.children;if(null==o)return[];const l=[];for(let i=0;i(n.current.unstable_caches.rows=Ol({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),(0,i.Z)({},e,{rows:Dl({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),jl=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let l=0;l({field:t,colDef:e.current.getColumn(t)})),[e]),n=r.useCallback(((...t)=>e.current.getCellValue(...t)),[e]),o=r.useCallback((t=>{const r=e.current.getRow(t);if(!r)throw new Error(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:r,getValue:n}}),[e,n]),l=r.useCallback(((t,r)=>{const o=e.current.getRow(t),l=e.current.getRowNode(t);if(!o||!l)throw new Error(`No row with id #${t} found`);const i=go(e),a=vo(e);return{id:t,field:r,row:o,rowNode:l,value:o[r],colDef:e.current.getColumn(r),cellMode:e.current.getCellMode(t,r),getValue:n,api:e.current,hasFocus:null!==i&&i.field===r&&i.id===t,tabIndex:a&&a.field===r&&a.id===t?0:-1}}),[e,n]),i=r.useCallback(((t,r)=>{const o=e.current.getColumn(r),l=e.current.getCellValue(t,r),i=e.current.getRow(t),a=e.current.getRowNode(t);if(!i||!a)throw new Error(`No row with id #${t} found`);const s=go(e),u=vo(e),c={id:t,field:r,row:i,rowNode:a,colDef:o,cellMode:e.current.getCellMode(t,r),getValue:n,hasFocus:null!==s&&s.field===r&&s.id===t,tabIndex:u&&u.field===r&&u.id===t?0:-1,value:l,formattedValue:l};return o.valueFormatter&&(c.formattedValue=o.valueFormatter({id:t,field:c.field,value:c.value,api:e.current})),c.isEditable=o&&e.current.isCellEditable(c),c}),[e,n]),a=r.useCallback(((t,n)=>{const r=e.current.getColumn(n);if(!r||!r.valueGetter){const r=e.current.getRow(t);if(!r)throw new Error(`No row with id #${t} found`);return r[n]}return r.valueGetter(l(t,n))}),[e,l]),s=r.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${$l(t)}"]`)}(e.current.rootElementRef.current,t):null),[e]),u=r.useCallback((t=>e.current.rootElementRef.current?Vl(e.current.rootElementRef.current,t):null),[e]),c=r.useCallback(((t,n)=>e.current.rootElementRef.current?function(e,{id:t,field:n}){const r=Vl(e,t);return r?r.querySelector(`.${g._.cell}[data-field="${$l(n)}"]`):null}(e.current.rootElementRef.current,{id:t,field:n}):null),[e]);Ye(e,{getCellValue:a,getCellParams:i,getCellElement:c,getRowParams:o,getRowElement:u,getColumnHeaderParams:t,getColumnHeaderElement:s})}const Al=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],Bl=(e,t)=>{var n;return(0,i.Z)({},e,{selection:null!=(n=Al(t.selectionModel))?n:[]})},Ul=(e,t)=>{const n=(e=>{const{classes:t}=e;return r.useMemo((()=>(0,p.Z)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},g.d,t)),[t])})({classes:t.classes}),o=r.useCallback((r=>{const o=(0,i.Z)({},_o,{cellClassName:n.cellCheckbox,headerClassName:n.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=null!=r.lookup.__check__;return l&&!a?(r.lookup.__check__=o,r.all=[Fo,...r.all]):!l&&a?(delete r.lookup.__check__,r.all=r.all.filter((e=>e!==Fo))):l&&a&&(r.lookup.__check__=(0,i.Z)({},o,r.lookup.__check__)),r}),[e,n,t.checkboxSelection]);wt(e,"hydrateColumns",o)},Wl=(e,t)=>{var n,r,o,l;const a=null!=(n=null!=(r=t.sortModel)?r:null==(o=t.initialState)||null==(l=o.sorting)?void 0:l.sortModel)?n:[];return(0,i.Z)({},e,{sorting:{sortModel:rn(a,t.disableMultipleColumnsSorting),sortedRows:[]}})};function Kl(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,l=o+r;return r>t?o:l-t>n?l-t:o(0,i.Z)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Xl=e=>{var t,n;const o=ft(void 0,e);Ul(o,e),(e=>{Ko(e,ct,"rowTreeCreation",jl)})(o),mt(Bl,o,e),mt(io,o,e),mt(Ll,o,e),mt(null!=(t=e.experimentalFeatures)&&t.newEditingApi?Il:vl,o,e),mt(ol,o,e),mt(Wl,o,e),mt(ml,o,e),mt(tl,o,e),mt(uo,o,e),mt(dl,o,e),mt(ql,o,e),mt(vt,o,e),((e,t)=>{const n=ae(e,"useGridKeyboardNavigation"),o=rl(e,t),l=r.useCallback(((t,r,o="left")=>{var l;const i=null==(l=Pe(e)[r])?void 0:l.id,a=e.current.unstable_getCellColSpanInfo(i,t);a&&a.spannedByColSpan&&("left"===o?t=a.leftVisibleCellIndex:"right"===o&&(t=a.rightVisibleCellIndex)),n.debug(`Navigating to cell row ${r}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:r});const s=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(i,s)}),[e,n]),i=r.useCallback(((t,r)=>{n.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,r)}),[e,n]),a=r.useCallback(((t,n)=>{const r=e.current.getRootDimensions();if(!o.range||!r)return;const a=e.current.unstable_getViewportPageSize(),s=Pe(e),u=t.field?e.current.getColumnIndex(t.field):0,c=s.findIndex((e=>e.id===t.id)),d=o.range.firstRowIndex,p=o.range.lastRowIndex,f=F(e).length-1;let m=!0;switch(n.key){case"ArrowDown":case"Enter":cd?l(u,c-1):i(u,n);break;case"ArrowRight":u0&&l(u-1,c);break;case"Tab":n.shiftKey&&u>0?l(u-1,c,"left"):!n.shiftKey&&u=d?l(u,e):i(u,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?l(0,d):l(0,c);break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?l(f,p):l(f,c);break;default:m=!1}m&&n.preventDefault()}),[e,o,l,i]),s=r.useCallback(((t,n)=>{var r,a,s,u;const c=n.currentTarget.querySelector(`.${g._.columnHeaderTitleContainerContent}`);if(c&&c.contains(n.target)&&t.field!==_o.field)return;if(!e.current.getRootDimensions())return;const d=e.current.unstable_getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,f=null!=(r=null==(a=o.range)?void 0:a.firstRowIndex)?r:null,m=null!=(s=null==(u=o.range)?void 0:u.lastRowIndex)?s:null,h=F(e).length-1;let b=!0;switch(n.key){case"ArrowDown":null!==f&&l(p,f);break;case"ArrowRight":p0&&i(p-1,n);break;case"PageDown":null!==f&&null!==m&&l(p,Math.min(f+d,m));break;case"Home":i(0,n);break;case"End":i(h,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:b=!1}b&&n.preventDefault()}),[e,o,l,i]),u=r.useCallback(((t,n)=>{if(!n.currentTarget.contains(n.target))return;const r=e.current.getCellParams(t.id,t.field);r.cellMode!==Cr.Edit&&hr(n.key)&&e.current.publishEvent("cellNavigationKeyDown",r,n)}),[e]);rt(e,"cellNavigationKeyDown",a),rt(e,"columnHeaderKeyDown",s),rt(e,"cellKeyDown",u)})(o,e),((e,t)=>{const n=ae(e,"useGridSelection"),o=r.useMemo((()=>Al(t.selectionModel,wo(e.current.state))),[e,t.selectionModel]),l=r.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:o,propOnChange:t.onSelectionModelChange,stateSelector:wo,changeEvent:"selectionChange"});const{checkboxSelection:a,disableMultipleSelection:s,disableSelectionOnClick:u,isRowSelectable:c,pagination:d,paginationMode:p}=t,f=!s||a,m=rl(e,t),g=r.useCallback((t=>{var n;let r=t;const o=null!=(n=l.current)?n:t,i=e.current.isRowSelected(t);if(i){const t=Ee(e),n=t.findIndex((e=>e===o)),l=t.findIndex((e=>e===r));if(n===l)return;r=n>l?t[l+1]:t[l-1]}l.current=t,e.current.selectRowRange({startId:o,endId:r},!i)}),[e]),h=r.useCallback((t=>{wo(e.current.state)!==t&&(n.debug("Setting selection model"),e.current.setState((e=>(0,i.Z)({},e,{selection:t}))),e.current.forceUpdate())}),[e,n]),b=r.useCallback((t=>wo(e.current.state).includes(t)),[e]),v=r.useCallback((()=>xo(e)),[e]),C=r.useCallback(((t,r=!0,o=!1)=>{if(!c||c(e.current.getRowParams(t)))if(l.current=t,o)n.debug(`Setting selection for row ${t}`),e.current.setSelectionModel(r?[t]:[]);else{n.debug(`Toggling selection for row ${t}`);const o=wo(e.current.state).filter((e=>e!==t));r&&o.push(t),(o.length<2||f)&&e.current.setSelectionModel(o)}}),[e,c,n,f]),w=r.useCallback(((t,r=!0,o=!1)=>{n.debug("Setting selection for several rows");const l=c?t.filter((t=>c(e.current.getRowParams(t)))):t;let a;if(o)a=r?l:[];else{const t=(0,i.Z)({},Ro(e));l.forEach((e=>{r?t[e]=e:delete t[e]})),a=Object.values(t)}(a.length<2||f)&&e.current.setSelectionModel(a)}),[e,c,n,f]),y=r.useCallback((({startId:t,endId:r},o=!0,l)=>{if(!e.current.getRow(t)||!e.current.getRow(r))return;n.debug(`Expanding selection from row ${t} to row ${r}`);const i=Ee(e),a=i.indexOf(t),s=i.indexOf(r),[u,c]=a>s?[s,a]:[a,s],d=i.slice(u,c+1);e.current.selectRows(d,o,l)}),[e,n]);Ye(e,{selectRow:C,selectRows:w,selectRowRange:y,setSelectionModel:h,getSelectedRows:v,isRowSelected:b});const x=r.useCallback((()=>{if(t.keepNonExistentRowsSelected)return;const n=wo(e.current.state),r=K(e),o=(0,i.Z)({},Ro(e));let l=!1;n.forEach((e=>{r[e]||(delete o[e],l=!0)})),l&&e.current.setSelectionModel(Object.values(o))}),[e,t.keepNonExistentRowsSelected]),R=r.useCallback(((t,n)=>{const r=n.metaKey||n.ctrlKey,o=!a&&!r&&!br(n),l=!f||o,i=e.current.isRowSelected(t);l?e.current.selectRow(t,!!o||!i,!0):e.current.selectRow(t,!i,!1)}),[e,f,a]),k=r.useCallback(((t,n)=>{if(!u&&t.field!==_o.field&&t.field!==ll){if(t.field&&e.current.getColumn(t.field).type===qr)return;n.shiftKey&&(f||a)?g(t.id):R(t.id,n)}}),[u,f,a,e,g,R]),Z=r.useCallback(((e,t)=>{var n;f&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[f]),S=r.useCallback(((t,n)=>{n.nativeEvent.shiftKey?g(t.id):e.current.selectRow(t.id,t.value)}),[e,g]),P=r.useCallback((n=>{const r=t.checkboxSelectionVisibleOnly&&t.pagination?Mo(e):Ee(e);e.current.selectRows(r,n.value)}),[e,t.checkboxSelectionVisibleOnly,t.pagination]),E=r.useCallback(((t,n)=>{if(e.current.getCellMode(t.id,t.field)!==Cr.Edit&&n.currentTarget.contains(n.target)){if(hr(n.key)&&n.shiftKey){const r=go(e);if(r&&r.id!==t.id){n.preventDefault();const o=e.current.isRowSelected(r.id);if(!f)return void e.current.selectRow(r.id,!o,!0);const l=e.current.getRowIndexRelativeToVisibleRows(r.id),i=e.current.getRowIndexRelativeToVisibleRows(t.id);let a,s;l>i?o?(a=i,s=l-1):(a=i,s=l):o?(a=l+1,s=i):(a=l,s=i);const u=m.rows.slice(a,s+1).map((e=>e.id));return void e.current.selectRows(u,!o)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void R(t.id,n);"a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),w(e.current.getAllRowIds(),!0))}}),[e,R,w,m.rows,f]);rt(e,"sortedRowsSet",x),rt(e,"cellClick",k),rt(e,"rowSelectionCheckboxChange",S),rt(e,"headerSelectionCheckboxChange",P),rt(e,"cellMouseDown",Z),rt(e,"cellKeyDown",E),r.useEffect((()=>{void 0!==o&&e.current.setSelectionModel(o)}),[e,o]);const M=null!=o;r.useEffect((()=>{if(M)return;const t=wo(e.current.state);if(c){const n=t.filter((t=>c(e.current.getRowParams(t))));n.length{const t=wo(e.current.state);if(!f&&t.length>1){const{rows:n}=nl(e,{pagination:d,paginationMode:p}),r=n.reduce(((e,{id:t})=>(e[t]=!0,e)),{}),o=t.find((t=>{let n=!0;return c&&(n=c(e.current.getRowParams(t))),n&&r[t]}));e.current.setSelectionModel(void 0!==o?[o]:[])}}),[e,f,a,s,c,d,p])})(o,e),function(e,t){var n;const o=ae(e,"useGridColumns"),l=r.useMemo((()=>Jr(t.columnTypes)),[t.columnTypes]),a=r.useRef(t.columns),s=r.useRef(l);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:T,changeEvent:"columnVisibilityModelChange"});const u=r.useCallback((t=>{o.debug("Updating columns state."),e.current.setState(no(t)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",t.all)}),[o,e]),c=r.useCallback((t=>M(e)[t]),[e]),d=r.useCallback((()=>I(e)),[e]),p=r.useCallback((()=>F(e)),[e]),f=r.useCallback((()=>L(e)),[e]),m=r.useCallback(((t,n=!0)=>(n?F(e):I(e)).findIndex((e=>e.field===t))),[e]),g=r.useCallback((t=>{const n=m(t);return _(e)[n]}),[e,m]),h=r.useCallback((t=>{T(e)!==t&&(e.current.setState((n=>(0,i.Z)({},n,{columns:to({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.forceUpdate())}),[e,l]),b=r.useCallback((t=>{const n=to({apiRef:e,columnTypes:l,columnsToUpsert:t,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});u(n)}),[e,u,l]),v=r.useCallback((t=>e.current.updateColumns([t])),[e]),C=r.useCallback(((t,n)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var r;const o=T(e);if(n!==(null==(r=o[t])||r)){const r=(0,i.Z)({},o,{[t]:n});e.current.setColumnVisibilityModel(r)}}else{const r=e.current.getColumn(t),o=(0,i.Z)({},r,{hide:!n});e.current.updateColumns([o]);const l={field:t,colDef:o,isVisible:n};e.current.publishEvent("columnVisibilityChange",l)}}),[e]),w=r.useCallback(((t,n)=>{const r=E(e),l=r.findIndex((e=>e===t));if(l===n)return;o.debug(`Moving column ${t} to index ${n}`);const a=[...r],s=a.splice(l,1)[0];a.splice(n,0,s),u((0,i.Z)({},P(e.current.state),{all:a}));const c={field:t,element:e.current.getColumnHeaderElement(t),colDef:e.current.getColumn(t),targetIndex:n,oldIndex:l};e.current.publishEvent("columnOrderChange",c)}),[e,o,u]),y=r.useCallback(((t,n)=>{o.debug(`Updating column ${t} width to ${n}`);const r=e.current.getColumn(t),l=(0,i.Z)({},r,{width:n});e.current.updateColumns([l]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:l,width:n})}),[e,o]);Ye(e,{getColumn:c,getAllColumns:d,getColumnIndex:m,getColumnPosition:g,getVisibleColumns:p,getColumnsMeta:f,updateColumn:v,updateColumns:b,setColumnVisibilityModel:h,setColumnVisibility:C,setColumnIndex:w,setColumnWidth:y});const x=r.useCallback((t=>{const n={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){const t=T(e);Object.values(t).some((e=>!1===e))&&(n.columnVisibilityModel=t)}n.orderedFields=E(e);const r=I(e),o={};return r.forEach((e=>{if(e.hasBeenResized){const t={};Qr.forEach((n=>{let r=e[n];r===1/0&&(r=-1),t[n]=r})),o[e.field]=t}})),Object.keys(o).length>0&&(n.dimensions=o),(0,i.Z)({},t,{columns:n})}),[e]),R=r.useCallback(((t,n)=>{var r;const o=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?null==(r=n.stateToRestore.columns)?void 0:r.columnVisibilityModel:void 0,i=n.stateToRestore.columns;if(null==o&&null==i)return t;const a=to({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:i,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:o,keepOnlyColumnsToUpsert:!1});return e.current.setState(no(a)),null!=i&&e.current.publishEvent("columnsChange",a.all),t}),[e,l]),k=r.useCallback(((e,n)=>{if(n===lo.columns){var r;const e=t.components.ColumnsPanel;return(0,oe.jsx)(e,(0,i.Z)({},null==(r=t.componentsProps)?void 0:r.columnsPanel))}return e}),[t.components.ColumnsPanel,null==(n=t.componentsProps)?void 0:n.columnsPanel]);wt(e,"exportState",x),wt(e,"restoreState",R),wt(e,"preferencePanel",k);const Z=r.useRef(null);rt(e,"viewportInnerSizeChange",(t=>{Z.current!==t.width&&(Z.current=t.width,u(eo(P(e.current.state),t.width)))})),lt(e,"columnVisibilityChange",t.onColumnVisibilityChange);const S=r.useCallback((()=>{o.info("Columns pipe processing have changed, regenerating the columns");const t=to({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});u(t)}),[e,o,u,l]);yt(e,"hydrateColumns",S);const O=r.useRef(!0);r.useEffect((()=>{if(O.current)return void(O.current=!1);if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&s.current===l)return;const n=to({apiRef:e,columnTypes:l,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,s.current=l,u(n)}),[o,e,u,t.columns,l]),r.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,o,t.columnVisibilityModel])}(o,e),((e,t)=>{const n=ae(e,"useGridRows"),o=rl(e,t),l=r.useRef(Date.now()),a=r.useRef(null),s=r.useCallback((t=>{var n;return null!=(n=K(e)[t])?n:null}),[e]),u=r.useMemo((()=>o.rows.reduce(((e,{id:t},n)=>(e[t]=n,e)),{})),[o.rows]),c=r.useCallback(((n,r)=>{const o=()=>{a.current=null,l.current=Date.now(),e.current.setState((n=>(0,i.Z)({},n,{rows:Dl({apiRef:e,previousTree:q(e),rowCountProp:t.rowCount,loadingProp:t.loading})}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(a.current&&(clearTimeout(a.current),a.current=null),e.current.unstable_caches.rows=n,!r)return void o();const s=t.throttleRowsMs-(Date.now()-l.current);s>0?a.current=setTimeout(o,s):o()}),[t.throttleRowsMs,t.rowCount,t.loading,e]),d=r.useCallback((e=>{n.debug(`Updating all rows, new length ${e.length}`),c(Ol({rows:e,getRowId:t.getRowId,loading:t.loading}),!0)}),[n,t.getRowId,t.loading,c]),p=r.useCallback((n=>{if(t.signature===et.DataGrid&&n.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n"));const r=new Map;n.forEach((e=>{const n=_l(e,t.getRowId,"A row was provided without id when calling updateRows():");r.has(n)?r.set(n,(0,i.Z)({},r.get(n),e)):r.set(n,e)}));const o=[],l=e.current.unstable_caches.rows,a={rowsBeforePartialUpdates:l.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:l.loadingPropBeforePartialUpdates,idRowsLookup:(0,i.Z)({},l.idRowsLookup),idToIdLookup:(0,i.Z)({},l.idToIdLookup),ids:[...l.ids]};r.forEach(((t,n)=>"delete"===t._action?(delete a.idRowsLookup[n],delete a.idToIdLookup[n],void o.push(n)):e.current.getRow(n)?void(a.idRowsLookup[n]=(0,i.Z)({},e.current.getRow(n),t)):(a.idRowsLookup[n]=t,a.idToIdLookup[n]=n,void a.ids.push(n)))),o.length>0&&(a.ids=a.ids.filter((e=>!o.includes(e)))),c(a,!0)}),[t.signature,t.getRowId,c,e]),f=r.useCallback((()=>{const t=Q(e),n=K(e);return new Map(t.map((e=>[e,n[e]])))}),[e]),m=r.useCallback((()=>B(e)),[e]),g=r.useCallback((()=>Q(e)),[e]),h=r.useCallback((e=>u[e]),[u]),b=r.useCallback(((t,n)=>{const r=e.current.getRowNode(t);if(!r)throw new Error(`MUI: No row with id #${t} found`);const o=(0,i.Z)({},r,{childrenExpanded:n});e.current.setState((e=>(0,i.Z)({},e,{rows:(0,i.Z)({},e.rows,{tree:(0,i.Z)({},e.rows.tree,{[t]:o})})}))),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",o)}),[e]),v=r.useCallback((t=>{var n;return null!=(n=q(e)[t])?n:null}),[e]),C=r.useCallback((({skipAutoGeneratedRows:t=!0,groupId:n,applySorting:r,applyFiltering:o})=>{const l=q(e);let i;if(r){const r=l[n];if(!r)return[];const o=Ce(e);i=[];for(let e=o.findIndex((e=>e===n))+1;er.depth;e+=1){const n=o[e],r=l[n];t&&r.isAutoGenerated||i.push(n)}}else i=Hl(l,n,t);if(o){const t=Se(e);i=i.filter((e=>!1!==t[e]))}return i}),[e]),w={getRow:s,getRowModels:f,getRowsCount:m,getAllRowIds:g,setRows:d,setRowIndex:r.useCallback(((t,r)=>{const o=Q(e),l=o.findIndex((e=>e===t));if(-1===l||l===r)return;n.debug(`Moving row ${t} to index ${r}`);const a=[...o];a.splice(r,0,a.splice(l,1)[0]),e.current.setState((e=>(0,i.Z)({},e,{rows:(0,i.Z)({},e.rows,{ids:a})}))),e.current.applySorting()}),[e,n]),updateRows:p,setRowChildrenExpansion:b,getRowNode:v,getRowIndexRelativeToVisibleRows:h,getRowGroupChildren:C},y=r.useCallback((()=>{let r;n.info("Row grouping pre-processing have changed, regenerating the row tree"),r=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?e.current.unstable_caches.rows:Ol({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),c(r,!1)}),[n,e,t.rows,t.getRowId,t.loading,c]),x=r.useCallback((e=>{"rowTreeCreation"===e&&y()}),[y]),R=r.useCallback((()=>{e.current.unstable_getActiveStrategy("rowTree")!==X(e)&&y()}),[e,y]);rt(e,"activeStrategyProcessorChange",x),rt(e,"strategyAvailabilityChange",R);const k=r.useCallback((()=>{e.current.setState((t=>(0,i.Z)({},t,{rows:(0,i.Z)({},t.rows,e.current.unstable_applyPipeProcessors("hydrateRows",t.rows.groupingResponseBeforeRowHydration))}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e]);yt(e,"hydrateRows",k),Ye(e,w),r.useEffect((()=>()=>{null!==a.current&&clearTimeout(a.current)}),[]);const Z=r.useRef(!0);r.useEffect((()=>{if(Z.current)return void(Z.current=!1);const r=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,o=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading;r?o||(e.current.setState((e=>(0,i.Z)({},e,{rows:(0,i.Z)({},e.rows,{loading:t.loading})}))),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()):(n.debug(`Updating all rows, new length ${t.rows.length}`),c(Ol({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),!1))}),[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])})(o,e),Nl(o),(e=>{const t=r.useRef({}),n=r.useCallback(((e,n,r)=>{const o=t.current;o[e]||(o[e]={}),o[e][n]=r}),[]),o=r.useCallback(((e,n)=>{var r;return null==(r=t.current[e])?void 0:r[n]}),[]),l=r.useCallback((t=>{const{columnIndex:r,rowId:o,minFirstColumnIndex:l,maxLastColumnIndex:i}=t,a=e.current.getVisibleColumns(),s=a.length,u=a[r],c="function"===typeof u.colSpan?u.colSpan(e.current.getCellParams(o,u.field)):u.colSpan;if(!c||1===c)return n(o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let d=u.computedWidth;for(let e=1;e=l&&t{for(let r=t;r1&&(r+=o.colSpan-1)}}),[l]);Ye(e,{unstable_getCellColSpanInfo:o,unstable_calculateColSpan:i});const a=r.useCallback((()=>{t.current={}}),[]);rt(e,"columnOrderChange",a)})(o);return(null!=(n=e.experimentalFeatures)&&n.newEditingApi?Tl:Cl)(o,e),((e,t)=>{const n=ae(e,"useGridFocus"),o=r.useRef(null),l=r.useCallback(((t,r)=>{const o=go(e);(null==o?void 0:o.id)===t&&(null==o?void 0:o.field)===r||(e.current.setState((e=>(n.debug(`Focusing on cell with id=${t} and field=${r}`),(0,i.Z)({},e,{tabIndex:{cell:{id:t,field:r},columnHeader:null},focus:{cell:{id:t,field:r},columnHeader:null}})))),e.current.forceUpdate(),e.current.getRow(t)&&e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,r)))}),[e,n]),a=r.useCallback(((t,r={})=>{const o=go(e);o&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(o.id,o.field),r),e.current.setState((e=>(n.debug(`Focusing on column header with colIndex=${t}`),(0,i.Z)({},e,{tabIndex:{columnHeader:{field:t},cell:null},focus:{columnHeader:{field:t},cell:null}})))),e.current.forceUpdate()}),[e,n]),s=r.useCallback(((n,r,o)=>{let l=e.current.getColumnIndex(r),i=e.current.getRowIndexRelativeToVisibleRows(n);const a=F(e);"right"===o?l+=1:"left"===o?l-=1:i+=1;const s=nl(e,{pagination:t.pagination,paginationMode:t.paginationMode});l>=a.length?(i+=1,i=0&&(l=a.length-1)),i=Be(i,0,s.rows.length-1),l=Be(l,0,a.length-1);const u=s.rows[i],c=a[l];e.current.setCellFocus(u.id,c.field)}),[e,t.pagination,t.paginationMode]),u=r.useCallback((({id:t,field:n})=>{e.current.setCellFocus(t,n)}),[e]),c=r.useCallback(((t,n)=>{"Enter"===n.key||"Tab"===n.key||hr(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),d=r.useCallback((({field:t},n)=>{n.target===n.currentTarget&&e.current.setColumnHeaderFocus(t,n)}),[e]),p=r.useCallback((()=>{n.debug("Clearing focus"),e.current.setState((e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null}})))}),[n,e]),f=r.useCallback((e=>{o.current=e}),[]),m=r.useCallback((t=>{const n=o.current;o.current=null;const r=go(e);if(!r)return void(n&&e.current.setCellFocus(n.id,n.field));if((null==n?void 0:n.id)===r.id&&(null==n?void 0:n.field)===r.field)return;const l=e.current.getCellElement(r.id,r.field);null!=l&&l.contains(t.target)||e.current.getRow(r.id)&&(e.current.publishEvent("cellFocusOut",e.current.getCellParams(r.id,r.field),t),n?e.current.setCellFocus(n.id,n.field):(e.current.setState((e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null}}))),e.current.forceUpdate()))}),[e]),g=r.useCallback((t=>{if("view"===t.cellMode)return;const n=go(e);(null==n?void 0:n.id)===t.id&&(null==n?void 0:n.field)===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),h=r.useCallback((()=>{const t=go(e);t&&!e.current.getRow(t.id)&&e.current.setState((e=>(0,i.Z)({},e,{focus:{cell:null,columnHeader:null}})))}),[e]);Ye(e,{setCellFocus:l,setColumnHeaderFocus:a,unstable_moveFocusToRelativeCell:s}),r.useEffect((()=>{const t=(0,Vo.Z)(e.current.rootElementRef.current);return t.addEventListener("click",m),()=>{t.removeEventListener("click",m)}}),[e,m]),rt(e,"columnHeaderBlur",p),rt(e,"cellDoubleClick",u),rt(e,"cellMouseUp",f),rt(e,"cellKeyDown",c),rt(e,"cellModeChange",g),rt(e,"columnHeaderFocus",d),rt(e,"rowsSet",h)})(o,e),(e=>{const t=ae(e,"useGridPreferencesPanel"),n=r.useRef(),o=r.useRef(),l=r.useCallback((()=>{t.debug("Hiding Preferences Panel");const n=fl(e.current.state);n.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:n.openedPanelValue}),e.current.setState((e=>(0,i.Z)({},e,{preferencePanel:{open:!1}}))),e.current.forceUpdate()}),[e,t]),a=r.useCallback((()=>{o.current=setTimeout((()=>clearTimeout(n.current)),0)}),[]),s=r.useCallback((()=>{n.current=setTimeout(l,100)}),[l]),u=r.useCallback((n=>{t.debug("Opening Preferences Panel"),a(),e.current.setState((e=>(0,i.Z)({},e,{preferencePanel:(0,i.Z)({},e.preferencePanel,{open:!0,openedPanelValue:n})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:n}),e.current.forceUpdate()}),[t,a,e]);Ye(e,{showPreferences:u,hidePreferences:s});const c=r.useCallback((t=>{const n=fl(e.current.state);return n.open||n.openedPanelValue?(0,i.Z)({},t,{preferencePanel:n}):t}),[e]),d=r.useCallback(((t,n)=>{const r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((e=>(0,i.Z)({},e,{preferencePanel:r}))),t}),[e]);wt(e,"exportState",c),wt(e,"restoreState",d),r.useEffect((()=>()=>{clearTimeout(n.current),clearTimeout(o.current)}),[])})(o),((e,t)=>{var n;const o=ae(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:ke,changeEvent:"filterModelChange"});const l=r.useCallback((()=>{e.current.setState((n=>{const r=ke(n,e.current.instanceId),o=t.filterMode===Ao?el(r,e):null,l=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:o});return(0,i.Z)({},n,{filter:(0,i.Z)({},n.filter,l)})})),e.current.publishEvent("filteredRowsSet")}),[t.filterMode,e]),a=r.useCallback((()=>{l(),e.current.forceUpdate()}),[e,l]),s=r.useCallback((t=>{const n=ke(e),r=[...n.items],o=r.findIndex((e=>e.id===t.id));-1===o?r.push(t):r[o]=t,e.current.setFilterModel((0,i.Z)({},n,{items:r}),"upsertFilterItem")}),[e]),u=r.useCallback((t=>{const n=ke(e),r=[...n.items];t.forEach((e=>{const n=t.findIndex((t=>t.id===e.id));-1===n?r.push(e):r[n]=e})),e.current.setFilterModel((0,i.Z)({},n,{items:t}),"upsertFilterItems")}),[e]),c=r.useCallback((t=>{const n=ke(e),r=n.items.filter((e=>e.id!==t.id));r.length!==n.items.length&&e.current.setFilterModel((0,i.Z)({},n,{items:r}),"deleteFilterItem")}),[e]),d=r.useCallback((n=>{if(o.debug("Displaying filter panel"),n){const r=ke(e),o=r.items.filter((e=>void 0!==e.value));let l;l=o.find((e=>e.columnField===n))?o:t.disableMultipleColumnsFiltering?[Go({columnField:n},e)]:[...o,Go({columnField:n},e)],e.current.setFilterModel((0,i.Z)({},r,{items:l}))}e.current.showPreferences(lo.filters)}),[e,o,t.disableMultipleColumnsFiltering]),p=r.useCallback((()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,o]),f=r.useCallback((t=>{const n=ke(e);n.linkOperator!==t&&e.current.setFilterModel((0,i.Z)({},n,{linkOperator:t}),"changeLogicOperator")}),[e]),m=r.useCallback((t=>{const n=ke(e);Ue(n.quickFilterValues,t)||e.current.setFilterModel((0,i.Z)({},n,{quickFilterValues:[...t]}))}),[e]),g=r.useCallback(((n,r)=>{ke(e)!==n&&(o.debug("Setting filter model"),e.current.unstable_updateControlState("filter",Jo(n,t.disableMultipleColumnsFiltering,e),r),e.current.unstable_applyFilters())}),[e,o,t.disableMultipleColumnsFiltering]),h=r.useCallback((()=>{const t=Pe(e);return new Map(t.map((e=>[e.id,e.model])))}),[e]);Ye(e,{setFilterLinkOperator:f,unstable_applyFilters:a,deleteFilterItem:c,upsertFilterItem:s,upsertFilterItems:u,setFilterModel:g,showFilterPanel:d,hideFilterPanel:p,getVisibleRowModels:h,setQuickFilterValues:m});const b=r.useCallback((t=>{const n=ke(e);return 0===n.items.length&&n.linkOperator===Wo().linkOperator?t:(0,i.Z)({},t,{filter:{filterModel:n}})}),[e]),v=r.useCallback(((n,r)=>{var o;const l=null==(o=r.stateToRestore.filter)?void 0:o.filterModel;return null==l?n:(e.current.unstable_updateControlState("filter",Jo(l,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,i.Z)({},n,{callbacks:[...n.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),C=r.useCallback(((e,n)=>{if(n===lo.filters){var r;const e=t.components.FilterPanel;return(0,oe.jsx)(e,(0,i.Z)({},null==(r=t.componentsProps)?void 0:r.filterPanel))}return e}),[t.components.FilterPanel,null==(n=t.componentsProps)?void 0:n.filterPanel]),w=r.useCallback((n=>{if(t.filterMode===Ao&&n.isRowMatchingFilters){const t=Q(e),r={};for(let e=0;e{o.debug("onColUpdated - GridColumns changed, applying filters");const t=ke(e),n=H(e),r=t.items.filter((e=>e.columnField&&n[e.columnField]));r.length{"filtering"===t&&e.current.unstable_applyFilters()}),[e]);rt(e,"rowsSet",l),rt(e,"rowExpansionChange",e.current.unstable_applyFilters),rt(e,"columnsChange",y),rt(e,"activeStrategyProcessorChange",x),Ct((()=>{e.current.unstable_applyFilters()})),r.useEffect((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,o,t.filterModel])})(o,e),((e,t)=>{const n=ae(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ye,changeEvent:"sortModelChange"});const o=r.useCallback(((t,n)=>{const r=ye(e),o=r.findIndex((e=>e.field===t));let l=[...r];return o>-1?n?l.splice(o,1,n):l.splice(o,1):l=[...r,n],l}),[e]),l=r.useCallback(((n,r)=>{var o;const l=ye(e).find((e=>e.field===n.field));if(l){var a;const e=void 0===r?ln(null!=(a=n.sortingOrder)?a:t.sortingOrder,l.sort):r;return null==e?void 0:(0,i.Z)({},l,{sort:e})}return{field:n.field,sort:void 0===r?ln(null!=(o=n.sortingOrder)?o:t.sortingOrder):r}}),[e,t.sortingOrder]),a=r.useCallback((()=>{e.current.setState((r=>{if(t.sortingMode===Bo)return n.debug("Skipping sorting rows as sortingMode = server"),(0,i.Z)({},r,{sorting:(0,i.Z)({},r.sorting,{sortedRows:Q(r,e.current.instanceId)})});const o=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);return n?{getSortCellParams:e=>({id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:"desc"===e.sort?(...e)=>-1*n.sortComparator(...e):n.sortComparator}:null})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({value:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return r=n,o=e.params,l=t.params,r.reduce(((e,t,n)=>{if(0!==e)return e;const r=o[n],i=l[n];return t.comparator(r.value,i.value,r,i)}),0);var r,o,l})).map((e=>e.value.id))})(ye(r,e.current.instanceId),e),l=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:o});return(0,i.Z)({},r,{sorting:(0,i.Z)({},r.sorting,{sortedRows:l})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,n,t.sortingMode]),s=r.useCallback((r=>{ye(e)!==r&&(n.debug("Setting sort model"),e.current.setState(on(r,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,n,t.disableMultipleColumnsSorting]),u=r.useCallback(((n,r,i)=>{if(!n.sortable)return;const a=l(n,r);let s;s=!i||t.disableMultipleColumnsSorting?a?[a]:[]:o(n.field,a),e.current.setSortModel(s)}),[e,o,l,t.disableMultipleColumnsSorting]),c=r.useCallback((()=>ye(e)),[e]),d=r.useCallback((()=>we(e).map((e=>e.model))),[e]),p=r.useCallback((()=>Ce(e)),[e]),f=r.useCallback((t=>e.current.getSortedRowIds().indexOf(t)),[e]),m=r.useCallback((t=>e.current.getSortedRowIds()[t]),[e]);Ye(e,{getSortModel:c,getSortedRows:d,getSortedRowIds:p,getRowIndex:f,getRowIdFromRowIndex:m,setSortModel:s,sortColumn:u,applySorting:a});const g=r.useCallback((t=>{const n=ye(e);return 0===n.length?t:(0,i.Z)({},t,{sorting:{sortModel:n}})}),[e]),h=r.useCallback(((n,r)=>{var o;const l=null==(o=r.stateToRestore.sorting)?void 0:o.sortModel;return null==l?n:(e.current.setState(on(l,t.disableMultipleColumnsSorting)),(0,i.Z)({},n,{callbacks:[...n.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),b=r.useCallback((t=>{if(!t.sortRowList)return Q(e);const n=q(e);return t.sortRowList(Object.values(n))}),[e]);wt(e,"exportState",g),wt(e,"restoreState",h),Ko(e,ct,"sorting",b);const v=r.useCallback((({colDef:e},t)=>{const n=t.shiftKey||t.metaKey||t.ctrlKey;u(e,void 0,n)}),[u]),C=r.useCallback((({colDef:e},t)=>{!ar(t.key)||t.ctrlKey||t.metaKey||u(e,void 0,t.shiftKey)}),[u]),w=r.useCallback((()=>{const t=ye(e),n=M(e);if(t.length>0){const r=t.filter((e=>n[e.field]));r.length{"sorting"===t&&e.current.applySorting()}),[e]);rt(e,"columnHeaderClick",v),rt(e,"columnHeaderKeyDown",C),rt(e,"rowsSet",e.current.applySorting),rt(e,"columnsChange",w),rt(e,"activeStrategyProcessorChange",y),Ct((()=>{e.current.applySorting()})),r.useEffect((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(o,e),((e,t)=>{const n=ae(e,"useDensity"),o=r.useCallback(((r,o=t.headerHeight,l=t.rowHeight)=>{n.debug(`Set grid density to ${r}`),e.current.setState((e=>{const t=J(e),n=so(r,o,l);return Ue(t,n)?e:(0,i.Z)({},e,{density:n})})),e.current.forceUpdate()}),[n,e,t.headerHeight,t.rowHeight]);r.useEffect((()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight)}),[e,t.density,t.rowHeight,t.headerHeight]),Ye(e,{setDensity:o})})(o,e),pl(o,e),((e,t)=>{const{getRowHeight:n,getRowSpacing:o,getEstimatedRowHeight:l}=t,a=r.useRef({}),s=r.useRef(-1),u=r.useRef(!1),c=j(e,te),d=j(e,Re),p=j(e,ko),f=j(e,ve),m=rl(e,t),g=r.useCallback((()=>{u.current=!1;const t=re(e.current.state,e.current.instanceId),r=[],d=m.rows.reduce(((s,d)=>{r.push(s),a.current[d.id]||(a.current[d.id]={sizes:{base:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:p,needsFirstMeasurement:f,sizes:g}=a.current[d.id];let h=c;const b=g.base;if(p)h=b;else if(n){const e=n((0,i.Z)({},d,{densityFactor:t}));if("auto"===e){if(f){const e=l?l((0,i.Z)({},d,{densityFactor:t})):c;h=null!=e?e:c}else h=b;u.current=!0,a.current[d.id].autoHeight=!0}else h=null!=e?e:c,a.current[d.id].needsFirstMeasurement=!1,a.current[d.id].autoHeight=!1}else a.current[d.id].needsFirstMeasurement=!1;const v={base:h};if(o){var C,w;const t=e.current.getRowIndexRelativeToVisibleRows(d.id),n=o((0,i.Z)({},d,{isFirstVisible:0===t,isLastVisible:t===m.rows.length-1,indexRelativeToCurrentPage:t}));v.spacingTop=null!=(C=n.top)?C:0,v.spacingBottom=null!=(w=n.bottom)?w:0}const y=e.current.unstable_applyPipeProcessors("rowHeight",v,d);return a.current[d.id].sizes=y,s+Object.values(y).reduce(((e,t)=>e+t),0)}),0);e.current.setState((e=>(0,i.Z)({},e,{rowsMeta:{currentPageTotalHeight:d,positions:r}}))),u.current||(s.current=1/0),e.current.forceUpdate()}),[e,m.rows,c,n,o,l]),h=r.useCallback((e=>{const t=a.current[e];return t?t.sizes.base:c}),[c]),b=r.useCallback(((e,t)=>{a.current[e].sizes.base=t,a.current[e].isResized=!0,a.current[e].needsFirstMeasurement=!1,g()}),[g]),v=r.useMemo((()=>(0,Gl.Z)(g)),[g]),C=r.useCallback(((e,t)=>{if(!a.current[e]||!a.current[e].autoHeight)return;const n=a.current[e].sizes.base!==t;a.current[e].needsFirstMeasurement=!1,a.current[e].sizes.base=t,n&&v()}),[v]),w=r.useCallback((e=>{var t;return(null==(t=a.current[e])?void 0:t.autoHeight)||!1}),[]),y=r.useCallback((()=>s.current),[]),x=r.useCallback((e=>{u.current&&e>s.current&&(s.current=e)}),[]);r.useEffect((()=>{g()}),[c,d,p,f,g]),yt(e,"rowHeight",g),Ye(e,{unstable_getLastMeasuredRowIndex:y,unstable_setLastMeasuredRowIndex:x,unstable_rowHasAutoHeight:w,unstable_getRowHeight:h,unstable_getRowInternalSizes:e=>{var t;return null==(t=a.current[e])?void 0:t.sizes},unstable_setRowHeight:b,unstable_storeRowHeightMeasurement:C})})(o,e),((e,t)=>{const n=ae(e,"useGridScroll"),o=e.current.columnHeadersElementRef,l=e.current.windowRef,i=j(e,Pe),a=r.useCallback((r=>{const o=B(e),a=F(e);if(null!=r.rowIndex&&0===o||0===a.length)return!1;n.debug(`Scrolling to cell at row ${r.rowIndex}, col: ${r.colIndex} `);let s={};if(null!=r.colIndex){const t=_(e);let n;if("undefined"!==typeof r.rowIndex){var u;const t=null==(u=i[r.rowIndex])?void 0:u.id,o=e.current.unstable_getCellColSpanInfo(t,r.colIndex);o&&!o.spannedByColSpan&&(n=o.cellProps.width)}"undefined"===typeof n&&(n=a[r.colIndex].computedWidth),s.left=Kl({clientHeight:l.current.clientWidth,scrollTop:l.current.scrollLeft,offsetHeight:n,offsetTop:t[r.colIndex]})}if(null!=r.rowIndex){const n=No(e.current.state),o=Zo(e),i=So(e),a=t.pagination?r.rowIndex-o*i:r.rowIndex,u=n.positions[a+1]?n.positions[a+1]-n.positions[a]:n.currentPageTotalHeight-n.positions[a];s.top=Kl({clientHeight:l.current.clientHeight,scrollTop:l.current.scrollTop,offsetHeight:u,offsetTop:n.positions[a]})}return s=e.current.unstable_applyPipeProcessors("scrollToIndexes",s,r),(void 0!==typeof s.left||void 0!==typeof s.top)&&(e.current.scroll(s),!0)}),[n,e,l,t.pagination,i]),s=r.useCallback((e=>{l.current&&null!=e.left&&o.current&&(o.current.scrollLeft=e.left,l.current.scrollLeft=e.left,n.debug(`Scrolling left: ${e.left}`)),l.current&&null!=e.top&&(l.current.scrollTop=e.top,n.debug(`Scrolling top: ${e.top}`)),n.debug("Scrolling, updating container, and viewport")}),[l,o,n]),u=r.useCallback((()=>null!=l&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0}),[l]);Ye(e,{scroll:s,scrollToIndexes:a,getScrollPosition:u})})(o,e),(e=>{const t=ae(e,"useGridColumnMenu"),n=r.useCallback((n=>{e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===n?e:(t.debug("Opening Column Menu"),(0,i.Z)({},e,{columnMenu:{open:!0,field:n}}))))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,t]),o=r.useCallback((()=>{e.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(t.debug("Hiding Column Menu"),(0,i.Z)({},e,{columnMenu:(0,i.Z)({},e.columnMenu,{open:!1,field:void 0})})):e))&&e.current.forceUpdate()}),[e,t]),l=r.useCallback((r=>{t.debug("Toggle Column Menu");const l=bt(e.current.state);l.open&&l.field===r?o():n(r)}),[e,t,n,o]);Ye(e,{showColumnMenu:n,hideColumnMenu:o,toggleColumnMenu:l});const a=r.useCallback(((t,n)=>{if(!n.target.classList.contains(g._.menuIconButton))return;if(!n.relatedTarget)return;const r=n.relatedTarget.classList.contains(g._.menuList),o="menuitem"===n.relatedTarget.getAttribute("role");(r||o)&&e.current.setColumnHeaderFocus(t.field)}),[e]);rt(e,"columnResizeStart",o),rt(e,"columnHeaderFocus",a),rt(e,"virtualScrollerWheel",e.current.hideColumnMenu),rt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(o),$o(o),((e,t)=>{const n=ae(e,"useGridPrintExport"),o=r.useRef(null),l=r.useRef(null),a=r.useRef({});r.useEffect((()=>{o.current=(0,Vo.Z)(e.current.rootElementRef.current)}),[e]);const s=r.useCallback(((t,n)=>new Promise((r=>{if(!t&&!n)return void r();const o=Ho({apiRef:e,options:{fields:t,allColumns:n}}).map((e=>e.field)),l=I(e),i={};l.forEach((e=>{i[e.field]=o.includes(e.field)})),e.current.setColumnVisibilityModel(i),r()}))),[e]),u=r.useCallback((e=>{const t=document.createElement("iframe");return t.id="grid-print-window",t.src=window.location.href,t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}),[]),c=r.useCallback(((t,n)=>{var r,l,a;const s=(0,i.Z)({copyStyles:!0,hideToolbar:!1,hideFooter:!1},n);t.onload=null;const u=t.contentDocument||(null==(r=t.contentWindow)?void 0:r.document);if(!u)return;const c=ne(e),d=No(e.current.state),p=e.current.rootElementRef.current,f=p.cloneNode(!0),m=f.querySelector(`.${g._.virtualScroller}`);m.style.height="auto",m.style.width="auto",m.parentElement.style.width="auto",m.parentElement.style.height="auto",f.querySelector(`.${g._.main}`).style.overflow="visible",f.querySelector(`.${g._.columnHeaders}`).querySelector(`.${g._.columnHeadersInner}`).style.width="100%";let h=(null==(l=p.querySelector(`.${g._.toolbarContainer}`))?void 0:l.clientHeight)||0,b=(null==(a=p.querySelector(`.${g._.footerContainer}`))?void 0:a.clientHeight)||0;var v,C;s.hideToolbar&&(null==(v=f.querySelector(`.${g._.toolbarContainer}`))||v.remove(),h=0),s.hideFooter&&(null==(C=f.querySelector(`.${g._.footerContainer}`))||C.remove(),b=0),f.style.height=`${d.currentPageTotalHeight+c+h+b}px`,u.body.innerHTML="",u.body.appendChild(f);const w="function"===typeof s.pageStyle?s.pageStyle():s.pageStyle;if("string"===typeof w){const e=u.createElement("style");e.appendChild(u.createTextNode(w)),u.head.appendChild(e)}if(s.bodyClassName&&u.body.classList.add(...s.bodyClassName.split(" ")),s.copyStyles){const e=o.current.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t{var n,r;o.current.body.removeChild(t),e.current.restoreState(l.current||{}),null!=(n=l.current)&&null!=(r=n.columns)&&r.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.unstable_enableVirtualization(),l.current=null,a.current={}}),[e]),p=r.useCallback((async r=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(l.current=e.current.exportState(),a.current=T(e),t.pagination){const t=Fe(e);e.current.setPageSize(t)}await s(null==r?void 0:r.fields,null==r?void 0:r.allColumns),e.current.unstable_disableVirtualization();const i=u(null==r?void 0:r.fileName);o.current.body.appendChild(i),i.onload=()=>c(i,r),i.contentWindow.onafterprint=()=>d(i)}),[t,n,e,u,c,d,s]);Ye(e,{exportDataAsPrint:p});const f=r.useCallback(((e,t)=>{var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[...e,{component:(0,oe.jsx)(zo,{options:t.printOptions}),componentName:"printExport"}]}),[]);wt(e,"exportMenu",f)})(o,e),ht(o),function(e,t){const n=ae(e,"useResizeContainer"),o=r.useRef(!1),l=r.useRef(null),i=r.useRef(null),a=j(e,No),s=j(e,ne),u=r.useCallback((()=>{var n;const r=null==(n=e.current.rootElementRef)?void 0:n.current,o=O(e);if(!l.current)return;let u;if(null!=t.scrollbarSize)u=t.scrollbarSize;else if(o&&r){const e=(0,Vo.Z)(r).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",r.appendChild(e),u=e.offsetWidth-e.clientWidth,r.removeChild(e)}else u=0;const c={width:l.current.width,height:t.autoHeight?a.currentPageTotalHeight:l.current.height-s},{hasScrollX:d,hasScrollY:p}=(({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let l=!1,i=!1;return(r||o)&&(l=r,i=e.height+(l?n:0)>t.height,i&&(l=e.width+n>t.width)),{hasScrollX:l,hasScrollY:i}})({content:{width:Math.round(o),height:a.currentPageTotalHeight},container:c,scrollBarSize:u}),f={viewportOuterSize:c,viewportInnerSize:{width:c.width-(p?u:0),height:c.height-(d?u:0)},hasScrollX:d,hasScrollY:p,scrollBarSize:u},m=i.current;i.current=f,f.viewportInnerSize.width===(null==m?void 0:m.viewportInnerSize.width)&&f.viewportInnerSize.height===(null==m?void 0:m.viewportInnerSize.height)||e.current.publishEvent("viewportInnerSizeChange",f.viewportInnerSize)}),[e,t.scrollbarSize,t.autoHeight,s,a.currentPageTotalHeight]),c=r.useCallback((()=>{u(),e.current.publishEvent("debouncedResize",l.current)}),[e,u]),p=r.useCallback((()=>i.current),[]),f=r.useCallback((()=>{const n=e.current.getRootDimensions();if(!n)return 0;const r=nl(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const t=e.current.unstable_getRenderContext(),n=t.lastRowIndex-t.firstRowIndex;return Math.min(n-1,r.rows.length)}const o=Math.floor(n.viewportInnerSize.height/te(e));return Math.min(o,r.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight]);Ye(e,{resize:c,getRootDimensions:p,unstable_getViewportPageSize:f,unstable_updateGridDimensionsRef:u});const m=r.useMemo((()=>(0,Gl.Z)(c,60)),[c]),g=r.useRef(!0),h=r.useCallback((e=>{l.current=e;const r=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||o.current||t.autoHeight||r||(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),0!==e.width||o.current||r||(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),g.current)return c(),void(g.current=!1);m()}),[t.autoHeight,m,n,c]);(0,d.Z)((()=>u()),[u]),lt(e,"sortedRowsSet",u),lt(e,"pageChange",u),lt(e,"pageSizeChange",u),lt(e,"columnsChange",u),rt(e,"resize",h),lt(e,"debouncedResize",t.onResize)}(o,e),function(e,t){lt(e,"columnHeaderClick",t.onColumnHeaderClick),lt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),lt(e,"columnHeaderOver",t.onColumnHeaderOver),lt(e,"columnHeaderOut",t.onColumnHeaderOut),lt(e,"columnHeaderEnter",t.onColumnHeaderEnter),lt(e,"columnHeaderLeave",t.onColumnHeaderLeave),lt(e,"columnOrderChange",t.onColumnOrderChange),lt(e,"cellClick",t.onCellClick),lt(e,"cellDoubleClick",t.onCellDoubleClick),lt(e,"cellKeyDown",t.onCellKeyDown),lt(e,"cellFocusOut",t.onCellFocusOut),lt(e,"preferencePanelClose",t.onPreferencePanelClose),lt(e,"preferencePanelOpen",t.onPreferencePanelOpen),lt(e,"menuOpen",t.onMenuOpen),lt(e,"menuClose",t.onMenuClose),lt(e,"rowDoubleClick",t.onRowDoubleClick),lt(e,"rowClick",t.onRowClick),lt(e,"componentError",t.onError),lt(e,"stateChange",t.onStateChange)}(o,e),(e=>{const t=r.useCallback((()=>e.current.unstable_applyPipeProcessors("exportState",{})),[e]),n=r.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()})),e.current.forceUpdate()}),[e]);Ye(e,{exportState:t,restoreState:n})})(o),o},Yl={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search...",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering"};var Ql=n(8128),Jl=n(2852),ei=n(2992),ti=n(4386);const ni=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let ri;var oi=e=>{const t=r.useRef({});return r.useEffect((()=>{t.current=e})),t.current};function li(e){return(0,xn.Z)("MuiBadge",e)}var ii=(0,Rn.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopLeft","anchorOriginTopRight","anchorOriginBottomLeft","anchorOriginBottomRight","invisible"]),ai=n(8320),si=n(3554);const ui=["anchorOrigin","classes","badgeContent","component","children","className","components","componentsProps","invisible","max","showZero","variant"],ci=r.forwardRef((function(e,t){const{anchorOrigin:n={vertical:"top",horizontal:"right"},classes:r,component:o,children:l,className:u,components:c={},componentsProps:d={},max:f=99,showZero:m=!1,variant:g="standard"}=e,h=(0,a.Z)(e,ui),{anchorOrigin:b,badgeContent:v,max:C,variant:w,displayValue:y,invisible:x}=function(e){const{anchorOrigin:t={vertical:"top",horizontal:"right"},badgeContent:n,invisible:r=!1,max:o=99,showZero:l=!1,variant:i="standard"}=e,a=oi({anchorOrigin:t,badgeContent:n,max:o,variant:i});let s=r;!1===r&&(0===n&&!l||null==n&&"dot"!==i)&&(s=!0);const{anchorOrigin:u=t,badgeContent:c,max:d=o,variant:p=i}=s?a:e;let f="";return"dot"!==p&&(f=c&&Number(c)>d?`${d}+`:c),{anchorOrigin:u,badgeContent:c,invisible:s,max:d,variant:p,displayValue:f}}((0,i.Z)({},e,{anchorOrigin:n,max:f,variant:g})),R=(0,i.Z)({},e,{anchorOrigin:b,badgeContent:v,classes:r,invisible:x,max:C,variant:w,showZero:m}),k=(e=>{const{variant:t,anchorOrigin:n,invisible:r,classes:o}=e,l={root:["root"],badge:["badge",t,`anchorOrigin${(0,ai.Z)(n.vertical)}${(0,ai.Z)(n.horizontal)}`,r&&"invisible"]};return(0,p.Z)(l,li,o)})(R),Z=o||c.Root||"span",S=(0,si.Z)(Z,(0,i.Z)({},h,d.root),R),P=c.Badge||"span",E=(0,si.Z)(P,d.badge,R);return(0,oe.jsxs)(Z,(0,i.Z)({},S,{ref:t},h,{className:(0,s.Z)(k.root,S.className,u),children:[l,(0,oe.jsx)(P,(0,i.Z)({},E,{className:(0,s.Z)(k.badge,E.className),children:y}))]}))}));var di=ci,pi=n(8442);var fi=e=>!e||!(0,pi.Z)(e);const mi=["anchorOrigin","component","components","componentsProps","overlap","color","invisible","badgeContent","showZero","variant"],gi=(0,i.Z)({},ii,(0,Rn.Z)("MuiBadge",["colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"])),hi=(0,f.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),bi=(0,f.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,u.Z)(n.anchorOrigin.vertical)}${(0,u.Z)(n.anchorOrigin.horizontal)}${(0,u.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})));var vi=r.forwardRef((function(e,t){var n,r;const o=(0,mn.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:l={vertical:"top",horizontal:"right"},component:c="span",components:d={},componentsProps:p={},overlap:f="rectangular",color:m="default",invisible:g=!1,badgeContent:h,showZero:b=!1,variant:v="standard"}=o,C=(0,a.Z)(o,mi),w=oi({anchorOrigin:l,color:m,overlap:f});let y=g;!1===g&&(0===h&&!b||null==h&&"dot"!==v)&&(y=!0);const{color:x=m,overlap:R=f,anchorOrigin:k=l}=y?w:o,Z=(e=>{const{color:t,anchorOrigin:n,overlap:r,classes:o={}}=e;return(0,i.Z)({},o,{badge:(0,s.Z)(o.badge,li(`anchorOrigin${(0,u.Z)(n.vertical)}${(0,u.Z)(n.horizontal)}${(0,u.Z)(r)}`),li(`overlap${(0,u.Z)(r)}`),"default"!==t&&[li(`color${(0,u.Z)(t)}`),o[`color${(0,u.Z)(t)}`]])})})((0,i.Z)({},o,{anchorOrigin:k,invisible:y,color:x,overlap:R}));return(0,oe.jsx)(di,(0,i.Z)({anchorOrigin:k,invisible:g,badgeContent:h,showZero:b,variant:v},C,{components:(0,i.Z)({Root:hi,Badge:bi},d),componentsProps:{root:(0,i.Z)({},p.root,fi(d.Root)&&{as:c,ownerState:(0,i.Z)({},null==(n=p.root)?void 0:n.ownerState,{color:x,overlap:R})}),badge:(0,i.Z)({},p.badge,fi(d.Badge)&&{ownerState:(0,i.Z)({},null==(r=p.badge)?void 0:r.ownerState,{color:x,overlap:R})})},classes:Z,ref:t}))}));const Ci=["className"],wi=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),yi=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Ci),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["iconButtonContainer"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(wi,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))}));const xi=["hideMenu","currentColumn","open","id","labelledby","className","children"],Ri=r.forwardRef((function(e,t){const{hideMenu:n,open:o,id:l,labelledby:u,className:c,children:d}=e,p=(0,a.Z)(e,xi),f=r.useCallback((e=>{var t;sr(e.key)&&e.preventDefault(),t=e.key,(sr(t)||ir(t))&&n(e)}),[n]);return(0,oe.jsx)(Or.Z,(0,i.Z)({id:l,ref:t,className:(0,s.Z)(g._.menuList,c),"aria-labelledby":u,onKeyDown:f,autoFocus:o},p,{children:d}))})),ki=e=>{const{onClick:t}=e,n=$(),o=N(),l=r.useCallback((e=>{t(e),n.current.showPreferences(lo.columns)}),[n,t]);return o.disableColumnSelector?null:(0,oe.jsx)(Wt.Z,{onClick:l,children:n.current.getLocaleText("columnMenuShowColumns")})},Zi=e=>{const{column:t,onClick:n}=e,o=$(),l=N(),i=r.useCallback((e=>{n(e),o.current.showFilterPanel(null==t?void 0:t.field)}),[o,null==t?void 0:t.field,n]);return l.disableColumnFilter||null==t||!t.filterable?null:(0,oe.jsx)(Wt.Z,{onClick:i,children:o.current.getLocaleText("columnMenuFilter")})},Si=e=>{const{column:t,onClick:n}=e,o=$(),l=N(),i=r.useRef(),a=1===F(o).filter((e=>!0!==e.disableColumnMenu)).length,s=r.useCallback((e=>{a||(n(e),i.current=setTimeout((()=>{o.current.setColumnVisibility(null==t?void 0:t.field,!1)}),100))}),[o,null==t?void 0:t.field,n,a]);return r.useEffect((()=>()=>clearTimeout(i.current)),[]),l.disableColumnSelector||!1===t.hideable?null:(0,oe.jsx)(Wt.Z,{onClick:s,disabled:a,children:o.current.getLocaleText("columnMenuHideColumn")})},Pi=e=>{const{column:t,onClick:n}=e,o=$(),l=j(o,ye),i=r.useMemo((()=>{if(!t)return null;const e=l.find((e=>e.field===t.field));return null==e?void 0:e.sort}),[t,l]),a=r.useCallback((e=>{n(e);const r=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(t,r)}),[o,t,n]);return t&&t.sortable?(0,oe.jsxs)(r.Fragment,{children:[(0,oe.jsx)(Wt.Z,{onClick:a,disabled:null==i,children:o.current.getLocaleText("columnMenuUnsort")}),(0,oe.jsx)(Wt.Z,{onClick:a,"data-value":"asc",disabled:"asc"===i,children:o.current.getLocaleText("columnMenuSortAsc")}),(0,oe.jsx)(Wt.Z,{onClick:a,"data-value":"desc",disabled:"desc"===i,children:o.current.getLocaleText("columnMenuSortDesc")})]}):null},Ei=r.forwardRef((function(e,t){const{hideMenu:n,currentColumn:o}=e,l=$(),a=[(0,oe.jsx)(Pi,{onClick:n,column:o}),(0,oe.jsx)(Zi,{onClick:n,column:o}),(0,oe.jsx)(Si,{onClick:n,column:o}),(0,oe.jsx)(ki,{onClick:n,column:o})],s=l.current.unstable_applyPipeProcessors("columnMenu",a,o);return(0,oe.jsx)(Ri,(0,i.Z)({ref:t},e,{children:s.map(((e,t)=>r.cloneElement(e,{key:t,onClick:n,column:o})))}))})),Mi=["className","rowCount","visibleRowCount"],Ii=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)}))),Ti=r.forwardRef((function(e,t){const{className:n,rowCount:r,visibleRowCount:o}=e,l=(0,a.Z)(e,Mi),u=$(),c=(e=>{const{classes:t}=e;return(0,p.Z)({root:["rowCount"]},g.d,t)})({classes:N().classes});if(0===r)return null;const d=ot.selectedRowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}))),Oi=r.forwardRef((function(e,t){const{className:n,selectedRowCount:r}=e,o=(0,a.Z)(e,Fi),l=$(),u=(e=>{const{classes:t}=e;return(0,p.Z)({root:["selectedRowCount"]},g.d,t)})({classes:N().classes}),c=l.current.getLocaleText("footerRowSelected")(r);return(0,oe.jsx)(_i,(0,i.Z)({ref:t,className:(0,s.Z)(u.root,n)},o,{children:c}))})),Di=["className"],Hi=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})((({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${"light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68)}`}))),Li=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Di),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["footerContainer"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Hi,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))})),ji=r.forwardRef((function(e,t){var n;const r=$(),o=N(),l=j(r,W),a=j(r,yo),s=j(r,_e),u=!o.hideFooterSelectedRowCount&&a>0?(0,oe.jsx)(Oi,{selectedRowCount:a}):(0,oe.jsx)("div",{}),c=o.hideFooterRowCount||o.pagination?null:(0,oe.jsx)(Ti,{rowCount:l,visibleRowCount:s}),d=o.pagination&&!o.hideFooterPagination&&o.components.Pagination&&(0,oe.jsx)(o.components.Pagination,(0,i.Z)({},null==(n=o.componentsProps)?void 0:n.pagination));return(0,oe.jsxs)(Li,(0,i.Z)({ref:t},e,{children:[u,c,d]}))})),zi=r.forwardRef((function(e,t){var n,r;const o=N();return(0,oe.jsxs)("div",(0,i.Z)({ref:t},e,{children:[(0,oe.jsx)(o.components.PreferencesPanel,(0,i.Z)({},null==(n=o.componentsProps)?void 0:n.preferencesPanel)),o.components.Toolbar&&(0,oe.jsx)(o.components.Toolbar,(0,i.Z)({},null==(r=o.componentsProps)?void 0:r.toolbar))]}))})),$i=r.forwardRef((function(e,t){var n,r,o;const l=$(),a=j(l,I),s=N(),u=j(l,fl),c=l.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=u.openedPanelValue)?n:lo.filters);return(0,oe.jsx)(s.components.Panel,(0,i.Z)({ref:t,as:s.components.BasePopper,open:a.length>0&&u.open},null==(r=s.componentsProps)?void 0:r.panel,e,null==(o=s.componentsProps)?void 0:o.basePopper,{children:c}))}));var Vi=n(6489);const Ni=["className"],Ai=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})((({theme:e})=>({display:"flex",height:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:(0,m.Fq)(e.palette.background.default,e.palette.action.disabledOpacity)}))),Bi=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Ni),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["overlay"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Ai,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))})),Ui=r.forwardRef((function(e,t){return(0,oe.jsx)(Bi,(0,i.Z)({ref:t},e,{children:(0,oe.jsx)(Vi.Z,{})}))})),Wi=r.forwardRef((function(e,t){const n=$().current.getLocaleText("noRowsLabel");return(0,oe.jsx)(Bi,(0,i.Z)({ref:t},e,{children:n}))}));var Ki=r.createContext();var Gi=r.createContext();function qi(e){return(0,xn.Z)("MuiTableCell",e)}var Xi=(0,Rn.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Yi=["align","className","component","padding","scope","size","sortDirection","variant"],Qi=(0,f.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,u.Z)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,u.Z)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,u.Z)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,i.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:`1px solid\n ${"light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:e.palette.text.primary},"footer"===t.variant&&{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Xi.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.default})));var Ji=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:l,component:c,padding:d,scope:f,size:m,sortDirection:g,variant:h}=n,b=(0,a.Z)(n,Yi),v=r.useContext(Ki),C=r.useContext(Gi),w=C&&"head"===C.variant;let y;y=c||(w?"th":"td");let x=f;!x&&w&&(x="col");const R=h||C&&C.variant,k=(0,i.Z)({},n,{align:o,component:y,padding:d||(v&&v.padding?v.padding:"normal"),size:m||(v&&v.size?v.size:"medium"),sortDirection:g,stickyHeader:"head"===R&&v&&v.stickyHeader,variant:R}),Z=(e=>{const{classes:t,variant:n,align:r,padding:o,size:l,stickyHeader:i}=e,a={root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${(0,u.Z)(r)}`,"normal"!==o&&`padding${(0,u.Z)(o)}`,`size${(0,u.Z)(l)}`]};return(0,p.Z)(a,qi,t)})(k);let S=null;return g&&(S="asc"===g?"ascending":"descending"),(0,oe.jsx)(Qi,(0,i.Z)({as:y,ref:t,className:(0,s.Z)(Z.root,l),"aria-sort":S,scope:x,ownerState:k},b))}));function ea(e){return(0,xn.Z)("MuiToolbar",e)}(0,Rn.Z)("MuiToolbar",["root","gutters","regular","dense"]);const ta=["className","component","disableGutters","variant"],na=(0,f.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar));var ra,oa,la,ia,aa,sa,ua,ca,da=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:l=!1,variant:u="regular"}=n,c=(0,a.Z)(n,ta),d=(0,i.Z)({},n,{component:o,disableGutters:l,variant:u}),f=(e=>{const{classes:t,disableGutters:n,variant:r}=e,o={root:["root",!n&&"gutters",r]};return(0,p.Z)(o,ea,t)})(d);return(0,oe.jsx)(na,(0,i.Z)({as:o,className:(0,s.Z)(f.root,r),ref:t,ownerState:d},c))})),pa=n(7070),fa=n(6686),ma=n(2734),ga=(0,Rt.Z)((0,oe.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ha=(0,Rt.Z)((0,oe.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");const ba=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"];var va=r.forwardRef((function(e,t){const{backIconButtonProps:n,count:r,getItemAriaLabel:o,nextIconButtonProps:l,onPageChange:s,page:u,rowsPerPage:c,showFirstButton:d,showLastButton:p}=e,f=(0,a.Z)(e,ba),m=(0,ma.Z)();return(0,oe.jsxs)("div",(0,i.Z)({ref:t},f,{children:[d&&(0,oe.jsx)(_r.Z,{onClick:e=>{s(e,0)},disabled:0===u,"aria-label":o("first",u),title:o("first",u),children:"rtl"===m.direction?ra||(ra=(0,oe.jsx)(ga,{})):oa||(oa=(0,oe.jsx)(ha,{}))}),(0,oe.jsx)(_r.Z,(0,i.Z)({onClick:e=>{s(e,u-1)},disabled:0===u,color:"inherit","aria-label":o("previous",u),title:o("previous",u)},n,{children:"rtl"===m.direction?la||(la=(0,oe.jsx)(fa.Z,{})):ia||(ia=(0,oe.jsx)(pa.Z,{}))})),(0,oe.jsx)(_r.Z,(0,i.Z)({onClick:e=>{s(e,u+1)},disabled:-1!==r&&u>=Math.ceil(r/c)-1,color:"inherit","aria-label":o("next",u),title:o("next",u)},l,{children:"rtl"===m.direction?aa||(aa=(0,oe.jsx)(pa.Z,{})):sa||(sa=(0,oe.jsx)(fa.Z,{}))})),p&&(0,oe.jsx)(_r.Z,{onClick:e=>{s(e,Math.max(0,Math.ceil(r/c)-1))},disabled:u>=Math.ceil(r/c)-1,"aria-label":o("last",u),title:o("last",u),children:"rtl"===m.direction?ua||(ua=(0,oe.jsx)(ha,{})):ca||(ca=(0,oe.jsx)(ga,{}))})]}))}));function Ca(e){return(0,xn.Z)("MuiTablePagination",e)}var wa,ya=(0,Rn.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);const xa=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Ra=(0,f.ZP)(Ji,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),ka=(0,f.ZP)(da,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,i.Z)({[`& .${ya.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${ya.actions}`]:{flexShrink:0,marginLeft:20}}))),Za=(0,f.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Sa=(0,f.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>(0,i.Z)({},e.typography.body2,{flexShrink:0}))),Pa=(0,f.ZP)(In.Z,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,i.Z)({[`& .${ya.selectIcon}`]:t.selectIcon,[`& .${ya.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ya.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Ea=(0,f.ZP)(Wt.Z,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ma=(0,f.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>(0,i.Z)({},e.typography.body2,{flexShrink:0})));function Ia({from:e,to:t,count:n}){return`${e}\u2013${t} of ${-1!==n?n:`more than ${t}`}`}function Ta(e){return`Go to ${e} page`}var Fa=r.forwardRef((function(e,t){const n=(0,mn.Z)({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=va,backIconButtonProps:l,className:u,colSpan:c,component:d=Ji,count:f,getItemAriaLabel:m=Ta,labelDisplayedRows:g=Ia,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:b,onPageChange:v,onRowsPerPageChange:C,page:w,rowsPerPage:y,rowsPerPageOptions:x=[10,25,50,100],SelectProps:R={},showFirstButton:k=!1,showLastButton:Z=!1}=n,S=(0,a.Z)(n,xa),P=n,E=(e=>{const{classes:t}=e;return(0,p.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Ca,t)})(P),M=R.native?"option":Ea;let I;d!==Ji&&"td"!==d||(I=c||1e3);const T=(0,Ut.Z)(R.id),F=(0,Ut.Z)(R.labelId);return(0,oe.jsx)(Ra,(0,i.Z)({colSpan:I,ref:t,as:d,ownerState:P,className:(0,s.Z)(E.root,u)},S,{children:(0,oe.jsxs)(ka,{className:E.toolbar,children:[(0,oe.jsx)(Za,{className:E.spacer}),x.length>1&&(0,oe.jsx)(Sa,{className:E.selectLabel,id:F,children:h}),x.length>1&&(0,oe.jsx)(Pa,(0,i.Z)({variant:"standard",input:wa||(wa=(0,oe.jsx)(xt.ZP,{})),value:y,onChange:C,id:T,labelId:F},R,{classes:(0,i.Z)({},R.classes,{root:(0,s.Z)(E.input,E.selectRoot,(R.classes||{}).root),select:(0,s.Z)(E.select,(R.classes||{}).select),icon:(0,s.Z)(E.selectIcon,(R.classes||{}).icon)}),children:x.map((e=>(0,r.createElement)(M,(0,i.Z)({},!(0,pi.Z)(M)&&{ownerState:P},{className:E.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,oe.jsx)(Ma,{className:E.displayedRows,children:g({from:0===f?0:w*y+1,to:-1===f?(w+1)*y:-1===y?f:Math.min(f,(w+1)*y),count:-1===f?-1:f,page:w})}),(0,oe.jsx)(o,{className:E.actions,backIconButtonProps:l,count:f,nextIconButtonProps:b,onPageChange:v,page:w,rowsPerPage:y,showFirstButton:k,showLastButton:Z,getItemAriaLabel:m})]})}))}));const _a=(0,f.ZP)(Fa)((({theme:e})=>({[`& .${ya.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${ya.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),Oa=r.forwardRef((function(e,t){var n;const o=$(),l=N(),a=j(o,ko),s=r.useMemo((()=>Math.floor(a.rowCount/(a.pageSize||1))),[a.rowCount,a.pageSize]),u=r.useCallback((e=>{const t=Number(e.target.value);o.current.setPageSize(t)}),[o]),c=r.useCallback(((e,t)=>{o.current.setPage(t)}),[o]);return(0,oe.jsx)(_a,(0,i.Z)({ref:t,component:"div",count:a.rowCount,page:a.page<=s?a.page:s,rowsPerPageOptions:null!=(n=l.rowsPerPageOptions)&&n.includes(a.pageSize)?l.rowsPerPageOptions:[],rowsPerPage:a.pageSize,onPageChange:c,onRowsPerPageChange:u},o.current.getLocaleText("MuiTablePagination"),e))})),Da=["className"],Ha=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function La(e){const{className:t}=e,n=(0,a.Z)(e,Da),r=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelContent"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Ha,(0,i.Z)({className:(0,s.Z)(t,r.root)},n))}const ja=["className"],za=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"})));function $a(e){const{className:t}=e,n=(0,a.Z)(e,ja),r=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelFooter"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(za,(0,i.Z)({className:(0,s.Z)(t,r.root)},n))}var Va=n(2310);const Na=["className"],Aa=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Ba=()=>!0,Ua=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Na),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelWrapper"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Va.Z,{open:!0,disableEnforceFocus:!0,isEnabled:Ba,children:(0,oe.jsx)(Aa,(0,i.Z)({ref:t,tabIndex:-1,className:(0,s.Z)(n,o.root)},r))})})),Wa=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Ka=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((({theme:e})=>({display:"flex",padding:e.spacing(1)}))),Ga=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)}))),qa=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Xa=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Ya=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Qa=(0,f.ZP)(Cn.Z,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Ja=e=>{switch(e){case Uo.And:return"filterPanelOperatorAnd";case Uo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},es=e=>e.headerName||e.field,ts=new Intl.Collator,ns=r.forwardRef((function(e,t){var n,o,l,c,d,f,m;const{item:h,hasMultipleFilters:b,deleteFilter:v,applyFilterChanges:C,multiFilterOperator:w,showMultiFilterOperators:y,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:R,focusElementRef:k,linkOperators:Z=[Uo.And,Uo.Or],columnsSort:S,deleteIconProps:P={},linkOperatorInputProps:E={},operatorInputProps:M={},columnInputProps:I={},valueInputProps:T={}}=e,F=(0,a.Z)(e,Wa),_=$(),O=j(_,D),H=(0,Ut.Z)(),L=(0,Ut.Z)(),z=(0,Ut.Z)(),V=(0,Ut.Z)(),A=N(),B=(e=>{const{classes:t}=e;return(0,p.Z)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},g.d,t)})({classes:A.classes}),U=r.useRef(null),W=r.useRef(null),K=b&&Z.length>0,G=(null==(n=A.componentsProps)?void 0:n.baseFormControl)||{},q=null==(l=((null==(o=A.componentsProps)?void 0:o.baseSelect)||{}).native)||l,X=q?"option":Wt.Z,Y=r.useMemo((()=>{switch(S){case"asc":return O.sort(((e,t)=>ts.compare(es(e),es(t))));case"desc":return O.sort(((e,t)=>-ts.compare(es(e),es(t))));default:return O}}),[O,S]),Q=h.columnField?_.current.getColumn(h.columnField):null,J=r.useMemo((()=>{var e;return h.operatorValue&&Q?null==(e=Q.filterOperators)?void 0:e.find((e=>e.value===h.operatorValue)):null}),[h,Q]),ee=r.useCallback((e=>{const t=e.target.value,n=_.current.getColumn(t);if(n.field===Q.field)return;const r=n.filterOperators.find((e=>e.value===h.operatorValue))||n.filterOperators[0],o=!r.InputComponent||r.InputComponent!==(null==J?void 0:J.InputComponent);C((0,i.Z)({},h,{columnField:t,operatorValue:r.value,value:o?void 0:h.value}))}),[_,C,h,Q,J]),te=r.useCallback((e=>{const t=e.target.value,n=null==Q?void 0:Q.filterOperators.find((e=>e.value===t)),r=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==J?void 0:J.InputComponent);C((0,i.Z)({},h,{operatorValue:t,value:r?void 0:h.value}))}),[C,h,Q,J]),ne=r.useCallback((e=>{const t=e.target.value===Uo.And.toString()?Uo.And:Uo.Or;R(t)}),[R]);return r.useImperativeHandle(k,(()=>({focus:()=>{var e;null!=J&&J.InputComponent?null==U||null==(e=U.current)||e.focus():W.current.focus()}})),[J]),(0,oe.jsxs)(Ka,(0,i.Z)({ref:t,className:B.root},F,{children:[(0,oe.jsx)(Ga,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,P,{className:(0,s.Z)(B.deleteIcon,G.className,P.className),children:(0,oe.jsx)(_r.Z,{"aria-label":_.current.getLocaleText("filterPanelDeleteIconLabel"),title:_.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{A.disableMultipleColumnsFiltering?void 0===h.value?v(h):C((0,i.Z)({},h,{value:void 0})):v(h)},size:"small",children:(0,oe.jsx)(A.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),(0,oe.jsx)(qa,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,E,{sx:(0,i.Z)({display:K?"flex":"none",visibility:y?"visible":"hidden"},G.sx||{},E.sx||{}),className:(0,s.Z)(B.linkOperatorInput,G.className,E.className),children:(0,oe.jsx)(A.components.BaseSelect,(0,i.Z)({inputProps:{"aria-label":_.current.getLocaleText("filterPanelLinkOperator")},value:w,onChange:ne,disabled:!!x||1===Z.length,native:q},null==(c=A.componentsProps)?void 0:c.baseSelect,{children:Z.map((e=>(0,oe.jsx)(X,{value:e.toString(),children:_.current.getLocaleText(Ja(e))},e.toString())))}))})),(0,oe.jsxs)(Xa,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,I,{className:(0,s.Z)(B.columnInput,G.className,I.className),children:[(0,oe.jsx)(vn.Z,{htmlFor:H,id:L,children:_.current.getLocaleText("filterPanelColumns")}),(0,oe.jsx)(A.components.BaseSelect,(0,i.Z)({labelId:L,id:H,label:_.current.getLocaleText("filterPanelColumns"),value:h.columnField||"",onChange:ee,native:q},null==(d=A.componentsProps)?void 0:d.baseSelect,{children:Y.map((e=>(0,oe.jsx)(X,{value:e.field,children:es(e)},e.field)))}))]})),(0,oe.jsxs)(Ya,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,M,{className:(0,s.Z)(B.operatorInput,G.className,M.className),children:[(0,oe.jsx)(vn.Z,{htmlFor:z,id:V,children:_.current.getLocaleText("filterPanelOperators")}),(0,oe.jsx)(A.components.BaseSelect,(0,i.Z)({labelId:V,label:_.current.getLocaleText("filterPanelOperators"),id:z,value:h.operatorValue,onChange:te,native:q,inputRef:W},null==(f=A.componentsProps)?void 0:f.baseSelect,{children:null==Q||null==(m=Q.filterOperators)?void 0:m.map((e=>(0,oe.jsx)(X,{value:e.value,children:e.label||_.current.getLocaleText(`filterOperator${(0,u.Z)(e.value)}`)},e.value)))}))]})),(0,oe.jsx)(Qa,(0,i.Z)({variant:"standard",as:A.components.BaseFormControl},G,T,{className:(0,s.Z)(B.valueInput,G.className,T.className),children:null!=J&&J.InputComponent?(0,oe.jsx)(J.InputComponent,(0,i.Z)({apiRef:_,item:h,applyValue:C,focusElementRef:U},J.InputComponentProps)):null}))]}))})),rs=["linkOperators","columnsSort","filterFormProps","children"],os=r.forwardRef((function(e,t){var n;const o=$(),l=N(),s=j(o,ke),u=j(o,D),c=r.useRef(null),{linkOperators:d=[Uo.And,Uo.Or],columnsSort:p,filterFormProps:f}=e,m=(0,a.Z)(e,rs),g=r.useCallback((e=>{o.current.upsertFilterItem(e)}),[o]),h=r.useCallback((e=>{o.current.setFilterLinkOperator(e)}),[o]),b=r.useCallback((()=>{const e=u.find((e=>{var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?{columnField:e.field,operatorValue:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}:null}),[u]),v=r.useMemo((()=>{if(s.items.length)return s.items;const e=b();return e?[e]:[]}),[s.items,b]),C=v.length>1,w=r.useCallback((e=>{const t=1===v.length;o.current.deleteFilterItem(e),t&&o.current.hideFilterPanel()}),[o,v.length]);return r.useEffect((()=>{d.length>0&&s.linkOperator&&!d.includes(s.linkOperator)&&h(d[0])}),[d,h,s.linkOperator]),r.useEffect((()=>{v.length>0&&c.current.focus()}),[v.length]),(0,oe.jsxs)(Ua,(0,i.Z)({ref:t},m,{children:[(0,oe.jsx)(La,{children:v.map(((e,t)=>(0,oe.jsx)(ns,(0,i.Z)({item:e,applyFilterChanges:g,deleteFilter:w,hasMultipleFilters:C,showMultiFilterOperators:t>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:h,focusElementRef:t===v.length-1?c:null,linkOperators:d,columnsSort:p},f),null==e.id?t:e.id)))}),!l.disableMultipleColumnsFiltering&&(0,oe.jsx)($a,{children:(0,oe.jsx)(l.components.BaseButton,(0,i.Z)({onClick:()=>{const e=b();e&&o.current.upsertFilterItems([...v,e])},startIcon:(0,oe.jsx)(jt,{})},null==(n=l.componentsProps)?void 0:n.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}));var ls=n(9632),is=n(480);const as=["className"],ss=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})((({theme:e})=>({padding:e.spacing(1)})));function us(e){const{className:t}=e,n=(0,a.Z)(e,as),r=(e=>{const{classes:t}=e;return(0,p.Z)({root:["panelHeader"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(ss,(0,i.Z)({className:(0,s.Z)(t,r.root)},n))}var cs=n(3454);let ds=!1;"undefined"!==typeof cs&&void 0!==cs.env.GRID_EXPERIMENTAL_ENABLED&&Ne()&&window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED")?ds="true"===window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED"):"undefined"!==typeof cs&&(ds="true"===cs.env.GRID_EXPERIMENTAL_ENABLED);const ps=ds,fs=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})((()=>({padding:"8px 0px 8px 8px"}))),ms=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})((({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${ls.Z.root}`]:{marginRight:e.spacing(.5)}}))),gs=(0,f.ZP)(_r.Z)({justifyContent:"flex-end"});const hs=["children","className","classes"],bs=(0,Rn.Z)("MuiDataGrid",["panel","paper"]),vs=(0,f.ZP)(Nr.Z,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((({theme:e})=>({zIndex:e.zIndex.modal}))),Cs=(0,f.ZP)(Vr.Z,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}))),ws=r.forwardRef(((e,t)=>{var n;const{children:o,className:l}=e,u=(0,a.Z)(e,hs),c=$(),d=bs,[p,f]=r.useState(!1),m=r.useCallback((()=>{c.current.hidePreferences()}),[c]),g=r.useCallback((e=>{ir(e.key)&&c.current.hidePreferences()}),[c]),h=r.useMemo((()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{f(!0)},effect:()=>()=>{f(!1)}}]),[]),b=null==(n=c.current.columnHeadersContainerElementRef)?void 0:n.current;return b?(0,oe.jsx)(vs,(0,i.Z)({ref:t,placement:"bottom-start",className:(0,s.Z)(l,d.panel),anchorEl:b,modifiers:h},u,{children:(0,oe.jsx)(zr,{mouseEvent:"onMouseUp",onClickAway:m,children:(0,oe.jsx)(Cs,{className:d.paper,elevation:8,onKeyDown:g,children:p&&o})})})):null})),ys=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],xs=({width:e})=>{if(!e)return null;const t={width:e};return(0,oe.jsx)("div",{className:"MuiDataGrid-cell",style:t})};const Rs=["sortingOrder"],ks=r.memo((function(e){const{sortingOrder:t}=e,n=(0,a.Z)(e,Rs),r=N(),[o]=t,l="asc"===o?r.components.ColumnSortedAscendingIcon:r.components.ColumnSortedDescendingIcon;return l?(0,oe.jsx)(l,(0,i.Z)({},n)):null})),Zs=["message","hasError","errorInfo"],Ss=r.forwardRef((function(e,t){const{message:n}=e,r=(0,a.Z)(e,Zs),o=$(),l=o.current.getLocaleText("errorOverlayDefaultLabel"),s=j(o,te);return(0,oe.jsx)(Bi,(0,i.Z)({ref:t,sx:{width:"100%",minHeight:2*s}},r,{children:n||l}))})),Ps=r.forwardRef((function(e,t){const n=$().current.getLocaleText("noResultsOverlayLabel");return(0,oe.jsx)(Bi,(0,i.Z)({ref:t},e,{children:n}))})),Es={BooleanCellTrueIcon:At,BooleanCellFalseIcon:Lt,ColumnMenuIcon:Ht,OpenFilterButtonIcon:Et,FilterPanelDeleteIcon:Lt,ColumnFilteredIcon:Mt,ColumnSelectorIcon:Tt,ColumnUnsortedIcon:ks,ColumnSortedAscendingIcon:kt,ColumnSortedDescendingIcon:Zt,ColumnResizeIcon:Ft,DensityCompactIcon:_t,DensityStandardIcon:Ot,DensityComfortableIcon:Dt,ExportIcon:Nt,MoreActionsIcon:Bt,TreeDataCollapseIcon:Pt,TreeDataExpandIcon:St,GroupingCriteriaCollapseIcon:Pt,GroupingCriteriaExpandIcon:St,DetailPanelExpandIcon:jt,DetailPanelCollapseIcon:zt,RowReorderIcon:Vt,QuickFilterIcon:It,QuickFilterClearIcon:Lt},Ms=(0,i.Z)({},Es,{BaseCheckbox:Ql.Z,BaseTextField:Dn,BaseFormControl:Cn.Z,BaseSelect:In.Z,BaseSwitch:Jl.Z,BaseButton:ei.Z,BaseTooltip:ti.Z,BasePopper:Nr.Z,Cell:function(e){const{align:t,children:n,colIndex:o,cellMode:l,field:c,formattedValue:d,hasFocus:f,height:m,isEditable:h,rowId:b,tabIndex:v,value:C,width:w,className:y,showRightBorder:x,colSpan:R,disableDragEvents:k,onClick:Z,onDoubleClick:S,onMouseDown:P,onMouseUp:E,onKeyDown:M,onDragEnter:I,onDragOver:T}=e,F=(0,a.Z)(e,ni),_=null==d?C:d,O=r.useRef(null),D=r.useRef(null),H=$(),L=(e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,l={root:["cell",`cell--text${(0,u.Z)(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return(0,p.Z)(l,g.d,o)})({align:t,showRightBorder:x,isEditable:h,classes:N().classes}),j=r.useCallback((e=>t=>{const n=H.current.getCellParams(b,c||"");H.current.publishEvent(e,n,t),E&&E(t)}),[H,c,E,b]),z=r.useCallback(((e,t)=>n=>{if(!n.currentTarget.contains(n.target))return;if(!H.current.getRow(b))return;const r=H.current.getCellParams(b,c||"");H.current.publishEvent(e,r,n),t&&t(n)}),[H,c,b]),V={minWidth:w,maxWidth:w,minHeight:m,maxHeight:"auto"===m?"none":m};r.useLayoutEffect((()=>{if(!f||l===Cr.Edit)return;const e=(0,Vo.Z)(H.current.rootElementRef.current);if(O.current&&!O.current.contains(e.activeElement)){const e=O.current.querySelector('[tabindex="0"]'),t=D.current||e||O.current;if(void 0===ri&&document.createElement("div").focus({get preventScroll(){return ri=!0,!1}}),ri)t.focus({preventScroll:!0});else{const e=H.current.getScrollPosition();t.focus(),H.current.scroll(e)}}}),[f,l,H]);let A=F.onFocus;const B="actions"===H.current.getColumn(c).type,U=k?null:{onDragEnter:z("cellDragEnter",I),onDragOver:z("cellDragOver",T)};return(0,oe.jsx)("div",(0,i.Z)({ref:O,className:(0,s.Z)(y,L.root),role:"cell","data-field":c,"data-colindex":o,"aria-colindex":o+1,"aria-colspan":R,style:V,tabIndex:"view"!==l&&h||B?-1:v,onClick:z("cellClick",Z),onDoubleClick:z("cellDoubleClick",S),onMouseDown:z("cellMouseDown",P),onMouseUp:j("cellMouseUp"),onKeyDown:z("cellKeyDown",M)},U,F,{onFocus:A,children:null==n?(0,oe.jsx)("div",{className:L.content,children:null==_?void 0:_.toString()}):r.isValidElement(n)&&B?r.cloneElement(n,{focusElementRef:D}):n}))},ColumnHeaderFilterIconButton:function(e){var t;const{counter:n,field:o,onClick:l}=e,a=$(),s=N(),u=(e=>{const{classes:t}=e;return(0,p.Z)({icon:["filterIcon"]},g.d,t)})((0,i.Z)({},e,{classes:s.classes})),c=r.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=fl(a.current.state);t&&n===lo.filters?a.current.hideFilterPanel():a.current.showFilterPanel(),l&&l(a.current.getColumnHeaderParams(o),e)}),[a,o,l]);if(!n)return null;const d=(0,oe.jsx)(_r.Z,{onClick:c,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:(0,oe.jsx)(s.components.ColumnFilteredIcon,{className:u.icon,fontSize:"small"})});return(0,oe.jsx)(s.components.BaseTooltip,(0,i.Z)({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},null==(t=s.componentsProps)?void 0:t.baseTooltip,{children:(0,oe.jsxs)(yi,{children:[n>1&&(0,oe.jsx)(vi,{badgeContent:n,color:"default",children:d}),1===n&&d]})}))},ColumnMenu:Ei,ErrorOverlay:Ss,Footer:ji,Header:zi,Toolbar:null,PreferencesPanel:$i,LoadingOverlay:Ui,NoResultsOverlay:Ps,NoRowsOverlay:Wi,Pagination:Oa,FilterPanel:os,ColumnsPanel:function(e){var t,n,o;const l=$(),a=r.useRef(null),s=j(l,I),u=j(l,T),c=N(),[d,f]=r.useState(""),m=(e=>{const{classes:t}=e;return(0,p.Z)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},g.d,t)})({classes:c.classes}),h=e=>{const{name:t}=e.target;l.current.setColumnVisibility(t,!1===u[t])},b=r.useCallback((e=>l.current.unstable_caches.columns.isUsingColumnVisibilityModel?e?l.current.setColumnVisibilityModel({}):l.current.setColumnVisibilityModel(Object.fromEntries(s.filter((e=>!1!==e.hideable)).map((e=>[e.field,!1])))):l.current.updateColumns(s.map((t=>!1!==t.hideable?{field:t.field,hide:!e}:t)))),[l,s]),v=r.useCallback((e=>{f(e.target.value)}),[]),C=r.useMemo((()=>{if(!d)return s;const e=d.toLowerCase();return s.filter((t=>(t.headerName||t.field).toLowerCase().indexOf(e)>-1))}),[s,d]);return r.useEffect((()=>{a.current.focus()}),[]),(0,oe.jsxs)(Ua,(0,i.Z)({},e,{children:[(0,oe.jsx)(us,{children:(0,oe.jsx)(c.components.BaseTextField,(0,i.Z)({label:l.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:l.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:a,value:d,onChange:v,variant:"standard",fullWidth:!0},null==(t=c.componentsProps)?void 0:t.baseTextField))}),(0,oe.jsx)(La,{children:(0,oe.jsx)(fs,{className:m.root,children:C.map((e=>{var t;return(0,oe.jsxs)(ms,{className:m.columnsPanelRow,children:[(0,oe.jsx)(is.Z,{control:(0,oe.jsx)(c.components.BaseSwitch,(0,i.Z)({disabled:!1===e.hideable,checked:!1!==u[e.field],onClick:h,name:e.field,size:"small"},null==(t=c.componentsProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!c.disableColumnReorder&&ps&&(0,oe.jsx)(gs,{draggable:!0,"aria-label":l.current.getLocaleText("columnsPanelDragIconLabel"),title:l.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:(0,oe.jsx)(Vt,{})})]},e.field)}))})}),(0,oe.jsxs)($a,{children:[(0,oe.jsx)(c.components.BaseButton,(0,i.Z)({onClick:()=>b(!1)},null==(n=c.componentsProps)?void 0:n.baseButton,{children:l.current.getLocaleText("columnsPanelHideAllButton")})),(0,oe.jsx)(c.components.BaseButton,(0,i.Z)({onClick:()=>b(!0)},null==(o=c.componentsProps)?void 0:o.baseButton,{children:l.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))},Panel:ws,Row:function(e){var t;const{selected:n,rowId:o,row:l,index:u,style:c,rowHeight:d,className:f,visibleColumns:m,renderedColumns:h,containerWidth:b,firstColumnToRender:v,cellFocus:C,cellTabIndex:w,editRowsState:y,isLastVisible:x=!1,onClick:R,onDoubleClick:k,onMouseEnter:Z,onMouseLeave:S}=e,P=(0,a.Z)(e,ys),E=u+2,M=$(),I=r.useRef(null),T=N(),F=rl(M,T),_=j(M,O),D=j(M,ye),H=j(M,Y),{hasScrollX:L,hasScrollY:z}=null!=(t=M.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},V=(e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:l,classes:i}=e,a={root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible","auto"===l&&"row--dynamicHeight"]};return(0,p.Z)(a,g.d,i)})({selected:n,isLastVisible:x,classes:T.classes,editing:M.current.getRowMode(o)===wr.Edit,editable:T.editMode===vr.Row,rowHeight:d});r.useLayoutEffect((()=>{"auto"===d&&I.current&&"undefined"===typeof ResizeObserver&&M.current.unstable_storeRowHeightMeasurement(o,I.current.clientHeight)})),r.useLayoutEffect((()=>{F.range&&M.current.unstable_setLastMeasuredRowIndex(u-F.range.firstRowIndex);const e=I.current;if(!e||"auto"!==d||"undefined"===typeof ResizeObserver)return;const t=new ResizeObserver((e=>{const[t]=e,n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;M.current.unstable_storeRowHeightMeasurement(o,n)}));return t.observe(e),()=>t.disconnect()}),[M,F.range,u,d,o]);const A=r.useCallback(((e,t)=>n=>{(1!==n.target.nodeType||n.currentTarget.contains(n.target))&&M.current.getRow(o)&&(M.current.publishEvent(e,M.current.getRowParams(o),n),t&&t(n))}),[M,o]),B=r.useCallback((e=>{const t=zl(e.target,g._.cell),n=null==t?void 0:t.getAttribute("data-field");if(n){if(n===_o.field)return;if(n===ll)return;if("__reorder__"===n)return;if(M.current.getCellMode(o,n)===Cr.Edit)return;if(M.current.getColumn(n).type===qr)return}A("rowClick",R)(e)}),[M,R,A,o]),U=(0,i.Z)({},c,{maxHeight:"auto"===d?"none":d,minHeight:d}),W=M.current.unstable_getRowInternalSizes(o);if(null!=W&&W.spacingTop){U["border"===T.rowSpacingType?"borderTopWidth":"marginTop"]=W.spacingTop}if(null!=W&&W.spacingBottom){U["border"===T.rowSpacingType?"borderBottomWidth":"marginBottom"]=W.spacingBottom}let K=null;if("function"===typeof T.getRowClassName){const e=u-F.range.firstRowIndex,t=(0,i.Z)({},M.current.getRowParams(o),{isFirstVisible:0===e,isLastVisible:e===F.rows.length-1,indexRelativeToCurrentPage:e});K=T.getRowClassName(t)}const G=[];for(let r=0;r1&&Object.keys(y).length>0;e.cellClassName&&p.push((0,s.Z)("function"===typeof e.cellClassName?e.cellClassName(c):e.cellClassName));const b=y[o]?y[o][e.field]:null;let x=null;var q;if(null==b&&e.renderCell)x=e.renderCell((0,i.Z)({},c,{api:M.current})),p.push((0,s.Z)(g._["cell--withRenderer"],null==(q=T.classes)?void 0:q["cell--withRenderer"]));if(null!=b&&e.renderEditCell){var X;let t=l;M.current.unstable_getRowWithUpdatedValues&&(t=M.current.unstable_getRowWithUpdatedValues(o,e.field));const n=(0,i.Z)({},c,{row:t},b,{api:M.current});x=e.renderEditCell(n),p.push((0,s.Z)(g._["cell--editing"],null==(X=T.classes)?void 0:X["cell--editing"]))}T.getCellClassName&&p.push(T.getCellClassName(c));const R=null!==C&&C.id===o&&C.field===e.field,k=null!==w&&w.id===o&&w.field===e.field&&"view"===c.cellMode?0:-1,Z=M.current.unstable_getCellColSpanInfo(o,t);if(Z&&!Z.spannedByColSpan){var Q;const{colSpan:n,width:r}=Z.cellProps;G.push((0,oe.jsx)(T.components.Cell,(0,i.Z)({value:c.value,field:e.field,width:r,rowId:o,height:d,showRightBorder:u,formattedValue:c.formattedValue,align:e.align||"left",cellMode:c.cellMode,colIndex:t,isEditable:c.isEditable,hasFocus:R,tabIndex:k,className:(0,s.Z)(p),colSpan:n,disableDragEvents:f},null==(Q=T.componentsProps)?void 0:Q.cell,{children:x}),e.field))}}const J=b-_;return(0,oe.jsxs)("div",(0,i.Z)({ref:I,"data-id":o,"data-rowindex":u,role:"row",className:(0,s.Z)(K,V.root,f),"aria-rowindex":E,"aria-selected":n,style:U,onClick:B,onDoubleClick:A("rowDoubleClick",k),onMouseEnter:A("rowMouseEnter",Z),onMouseLeave:A("rowMouseLeave",S)},P,{children:[G,J>0&&(0,oe.jsx)(xs,{width:J})]}))}}),Is={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},Ts={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:ao.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,editMode:vr.Cell,filterMode:Ao,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:Ao,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:Ao,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1},Fs=["className"],_s=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),Os=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Fs),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["virtualScroller"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(_s,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))})),Ds=["className","style"],Hs=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Ls=r.forwardRef((function(e,t){const{className:n,style:r}=e,o=(0,a.Z)(e,Ds),l=N(),u=(e=>{const{classes:t,overflowedContent:n}=e,r={root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]};return(0,p.Z)(r,g.d,t)})({classes:l.classes,overflowedContent:!l.autoHeight&&"auto"===(null==r?void 0:r.minHeight)});return(0,oe.jsx)(Hs,(0,i.Z)({ref:t,className:(0,s.Z)(u.root,n),style:r},o))})),js=["className"],zs=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),$s=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,js),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["virtualScrollerRenderZone"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(zs,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))}));var Vs=n(3935);const Ns=["style"];function As(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2);return e<=t[o]?As(e,t,n,o):As(e,t,o+1,r)}const Bs=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Be(e-n,r,o),Be(t+n,r,o)],Us=e=>{const t=$(),n=N(),o=j(t,F),{ref:l,disableVirtualization:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=o.length,getRowProps:f}=e,m=j(t,_),g=j(t,O),h=j(t,te),b=j(t,go),v=j(t,vo),C=j(t,No),w=j(t,gl),y=j(t,Ro),x=rl(t,n),R=r.useRef(null),k=r.useRef(null),Z=(0,c.Z)(l,k),[S,P]=r.useState(null),E=r.useRef(S),M=r.useRef({top:0,left:0}),[I,T]=r.useState(null),D=r.useRef(g),H=r.useCallback((e=>{const n=Math.max(0,t.current.unstable_getLastMeasuredRowIndex());return n===1/0||C.positions[n]>=e?As(e,C.positions):function(e,t,n){let r=1;for(;n{if(s)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:o.length};const{top:e,left:r}=M.current,l=Math.min(H(e),C.positions.length-1),i=n.autoHeight?l+x.rows.length:H(e+k.current.clientHeight);let a=!1,u=0,c=m.length;const[d,p]=Bs({firstIndex:l,lastIndex:i,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:n.rowBuffer});for(let n=d;n{s?R.current.style.transform="translate3d(0px, 0px, 0px)":(k.current.scrollLeft=0,k.current.scrollTop=0)}),[s]),r.useEffect((()=>{T(k.current.clientWidth)}),[C.currentPageTotalHeight]);const z=r.useCallback((()=>{k.current&&T(k.current.clientWidth)}),[]);rt(t,"resize",z);const V=r.useCallback((e=>{const[r,o]=Bs({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:n.rowBuffer}),[l]=Bs({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:n.columnBuffer}),i=ro({firstColumnToRender:l,apiRef:t,firstRowToRender:r,lastRowToRender:o,visibleRows:x.rows}),a=No(t.current.state).positions[r],s=_(t)[i];R.current.style.transform=`translate3d(${s}px, ${a}px, 0px)`,"function"===typeof u&&u({top:a,left:s})}),[t,x.rows,u,d,p,n.columnBuffer,n.rowBuffer]);r.useLayoutEffect((()=>{S&&V(S)}),[S,V]);const A=r.useCallback((e=>{P(e),E.current=e}),[P,E]);r.useEffect((()=>{if(null==I)return;const e=L();A(e);const{top:n,left:r}=M.current,o={top:n,left:r,renderContext:e};t.current.publishEvent("rowsScroll",o)}),[t,L,I,A]);const B=e=>{const{scrollTop:r,scrollLeft:o}=e.currentTarget;if(M.current.top=r,M.current.left=o,o<0||r<0||!E.current)return;const l=s?E.current:L(),i=Math.abs(l.firstRowIndex-E.current.firstRowIndex),a=Math.abs(l.lastRowIndex-E.current.lastRowIndex),u=Math.abs(l.firstColumnIndex-E.current.firstColumnIndex),c=Math.abs(l.lastColumnIndex-E.current.lastColumnIndex),d=i>=n.rowThreshold||a>=n.rowThreshold||u>=n.columnThreshold||c>=n.columnThreshold||D.current!==g;t.current.publishEvent("rowsScroll",{top:r,left:o,renderContext:d?l:E.current},e),d&&(Vs.flushSync((()=>{A(l)})),D.current=g)},U=e=>{t.current.publishEvent("virtualScrollerWheel",{},e)},W=e=>{t.current.publishEvent("virtualScrollerTouchMove",{},e)},K=I&&g>I,G=r.useMemo((()=>{const e=Math.max(C.currentPageTotalHeight,1);let t=!1;null!=k&&k.current&&e<=(null==k?void 0:k.current.clientHeight)&&(t=!0);const r={width:K?g:"auto",height:e,minHeight:t?"100%":"auto"};return n.autoHeight&&0===x.rows.length&&(r.height=2*h),r}),[k,g,C.currentPageTotalHeight,x.rows.length,K,n.autoHeight,h]);r.useEffect((()=>{t.current.publishEvent("virtualScrollerContentSizeChange")}),[t,G]),n.autoHeight&&0===x.rows.length&&(G.height=2*h);const q={};K||(q.overflowX="hidden"),n.autoHeight&&(q.overflowY="hidden");const X=r.useCallback((()=>E.current),[]);return t.current.unstable_getRenderContext=X,{renderContext:S,updateRenderZonePosition:V,getRows:(e={renderContext:S})=>{const{renderContext:r,minFirstColumn:l=d,maxLastColumn:a=p,availableSpace:u=I,ignoreAutoHeight:c}=e;if(!x.range||!r||null==u)return null;const m=s?0:n.rowBuffer,g=s?0:n.columnBuffer,[h,C]=Bs({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:m}),R=[];for(let n=h;n{let{style:t={}}=e,n=(0,a.Z)(e,Ns);return(0,i.Z)({ref:Z,onScroll:B,onWheel:U,onTouchMove:W,style:(0,i.Z)({},t,q)},n)},getContentProps:({style:e={}}={})=>({style:(0,i.Z)({},e,G)}),getRenderZoneProps:()=>({ref:R})}},Ws=["className","disableVirtualization"],Ks=r.forwardRef((function(e,t){const{className:n,disableVirtualization:r}=e,o=(0,a.Z)(e,Ws),{getRootProps:l,getContentProps:s,getRenderZoneProps:u,getRows:c}=Us({ref:t,disableVirtualization:r});return(0,oe.jsx)(Os,(0,i.Z)({className:n},l(o),{children:(0,oe.jsx)(Ls,(0,i.Z)({},s(),{children:(0,oe.jsx)($s,(0,i.Z)({},u(),{children:c()}))}))}))}));function Gs(e){const{direction:t,index:n,sortingOrder:r}=e,o=$(),l=N(),a=(e=>{const{classes:t}=e;return(0,p.Z)({icon:["sortIcon"]},g.d,t)})((0,i.Z)({},e,{classes:l.classes})),s=function(e,t,n,r){let o;const l={};return"asc"===t?o=e.ColumnSortedAscendingIcon:"desc"===t?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,l.sortingOrder=r),o?(0,oe.jsx)(o,(0,i.Z)({fontSize:"small",className:n},l)):null}(l.components,t,a.icon,r);if(!s)return null;const u=(0,oe.jsx)(_r.Z,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:s});return(0,oe.jsxs)(yi,{children:[null!=n&&(0,oe.jsx)(vi,{badgeContent:n,color:"default",children:u}),null==n&&u]})}const qs=r.memo(Gs),Xs=["className"],Ys=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})((({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium}))),Qs=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,Xs),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["columnHeaderTitle"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(Ys,(0,i.Z)({ref:t,className:(0,s.Z)(o.root,n)},r))}));function Js(e){var t;const{label:n,description:o,columnWidth:l}=e,a=N(),s=r.useRef(null),[u,c]=r.useState("");return r.useEffect((()=>{if(!o&&s&&s.current){const t=(e=s.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;c(t?n:"")}var e}),[s,l,o,n]),(0,oe.jsx)(a.components.BaseTooltip,(0,i.Z)({title:o||u},null==(t=a.componentsProps)?void 0:t.baseTooltip,{children:(0,oe.jsx)(Qs,{ref:s,children:n})}))}const eu=["resizable","resizing","height","side"];var tu;!function(e){e.Left="left",e.Right="right"}(tu||(tu={}));function nu(e){const{height:t,side:n=tu.Right}=e,o=(0,a.Z)(e,eu),l=N(),s=(e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${(0,u.Z)(o)}`],icon:["iconSeparator"]};return(0,p.Z)(l,g.d,r)})((0,i.Z)({},e,{side:n,classes:l.classes})),c=r.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,oe.jsx)("div",(0,i.Z)({className:s.root,style:{minHeight:t,opacity:l.showColumnRightBorder?0:1}},o,{onClick:c,children:(0,oe.jsx)(l.components.ColumnResizeIcon,{className:s.icon})}))}const ru=r.memo(nu),ou=r.memo((e=>{const{column:t,open:n,columnMenuId:o,columnMenuButtonId:l,iconButtonRef:a}=e,s=$(),u=N(),c=(e=>{const{classes:t,open:n}=e,r={root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]};return(0,p.Z)(r,g.d,t)})((0,i.Z)({},e,{classes:u.classes})),d=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),s.current.toggleColumnMenu(t.field)}),[s,t.field]);return(0,oe.jsx)("div",{className:c.root,children:(0,oe.jsx)(_r.Z,{ref:a,tabIndex:-1,className:c.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:d,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":o,id:l,children:(0,oe.jsx)(u.components.ColumnMenuIcon,{fontSize:"small"})})})}));function lu({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:o,field:l,open:a,target:s,onExited:u}){const c=$(),d=c.current.getColumn(l),p=r.useCallback((e=>{e.stopPropagation(),c.current.hideColumnMenu()}),[c]);return s?(0,oe.jsx)(Wr,{placement:"bottom-"+("right"===d.align?"start":"end"),open:a,target:s,onClickAway:p,onExited:u,children:(0,oe.jsx)(n,(0,i.Z)({currentColumn:d,hideMenu:p,open:a,id:e,labelledby:t},o))}):null}function iu(e){var t,n,o,l,a;const{column:u,columnMenuOpen:c,colIndex:d,headerHeight:f,isResizing:m,isLastColumn:h,sortDirection:b,sortIndex:v,filterItemsCounter:C,hasFocus:w,tabIndex:y,extendRowFullWidth:x,disableReorder:R,separatorSide:k}=e,Z=$(),S=N(),P=r.useRef(null),E=(0,Ut.Z)(),M=(0,Ut.Z)(),I=r.useRef(null),[T,F]=r.useState(c),{hasScrollX:_,hasScrollY:O}=null!=(t=Z.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},D=r.useMemo((()=>!S.disableColumnReorder&&!R&&!u.disableReorder),[S.disableColumnReorder,R,u.disableReorder]);let H=null;u.renderHeader&&(H=u.renderHeader(Z.current.getColumnHeaderParams(u.field)));const L=r.useCallback((e=>t=>{t.currentTarget.contains(t.target)&&Z.current.publishEvent(e,Z.current.getColumnHeaderParams(u.field),t)}),[Z,u.field]),j={onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")},z=D?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:null,V=h?!(h&&_&&!O)&&!x:S.showColumnRightBorder,A=(e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:l,filterItemsCounter:i}=e,a=null!=o,s=null!=i&&i>0,u="number"===t.type,c={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",s&&"columnHeader--filtered",u&&"columnHeader--numeric",l&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,p.Z)(c,g.d,n)})((0,i.Z)({},e,{classes:S.classes,showRightBorder:V})),B=u.computedWidth;let U="none";null!=b&&(U="asc"===b?"ascending":"descending"),r.useEffect((()=>{T||F(c)}),[T,c]);const W=r.useCallback((()=>{F(!1)}),[]),K=!S.disableColumnMenu&&!u.disableColumnMenu&&(0,oe.jsx)(ou,{column:u,columnMenuId:E,columnMenuButtonId:M,open:T,iconButtonRef:I}),G=null!=(n=u.sortingOrder)?n:S.sortingOrder,q=(0,oe.jsxs)(r.Fragment,{children:[!S.disableColumnFilter&&(0,oe.jsx)(S.components.ColumnHeaderFilterIconButton,(0,i.Z)({field:u.field,counter:C},null==(o=S.componentsProps)?void 0:o.columnHeaderFilterIconButton)),u.sortable&&!u.hideSortIcons&&(0,oe.jsx)(qs,{direction:b,index:v,sortingOrder:G})]});r.useLayoutEffect((()=>{const e=Z.current.state.columnMenu;if(w&&!e.open){const e=P.current.querySelector('[tabindex="0"]')||P.current;null==e||e.focus(),Z.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[Z,w]);const X="function"===typeof u.headerClassName?u.headerClassName({field:u.field,colDef:u}):u.headerClassName,Y=null!=(l=u.headerName)?l:u.field;return(0,oe.jsxs)("div",(0,i.Z)({ref:P,className:(0,s.Z)(A.root,X),"data-field":u.field,style:{width:B,minWidth:B,maxWidth:B},role:"columnheader",tabIndex:y,"aria-colindex":d+1,"aria-sort":U,"aria-label":u.renderHeader&&null==H?Y:void 0},j,{children:[(0,oe.jsxs)("div",(0,i.Z)({className:A.draggableContainer,draggable:D},z,{children:[(0,oe.jsxs)("div",{className:A.titleContainer,children:[(0,oe.jsx)("div",{className:A.titleContainerContent,children:u.renderHeader?H:(0,oe.jsx)(Js,{label:Y,description:u.description,columnWidth:B})}),q]}),K]})),(0,oe.jsx)(ru,{resizable:!S.disableColumnResize&&!!u.resizable,resizing:m,height:f,onMouseDown:L("columnSeparatorMouseDown"),side:k}),(0,oe.jsx)(lu,{columnMenuId:E,columnMenuButtonId:M,field:u.field,open:c,target:I.current,ContentComponent:S.components.ColumnMenu,contentComponentProps:null==(a=S.componentsProps)?void 0:a.columnMenu,onExited:W})]}))}const au=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${g._["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${g._["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${g._["scrollArea--left"]}`]:{left:0},[`&.${g._["scrollArea--right"]}`]:{right:0}})));function su(e){const{scrollDirection:t}=e,n=r.useRef(null),o=$(),l=r.useRef(),[a,u]=r.useState(!1),c=j(o,ne),d=r.useRef({left:0,top:0}),f=N(),m=(e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return(0,p.Z)(r,g.d,n)})((0,i.Z)({},e,{classes:f.classes})),h=r.useCallback((e=>{d.current=e}),[]),b=r.useCallback((e=>{let r;if("left"===t)r=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI: Wrong drag direction");r=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}r=1.5*(r-1)+1,clearTimeout(l.current),l.current=setTimeout((()=>{o.current.scroll({left:d.current.left+r,top:d.current.top})}))}),[t,o]);r.useEffect((()=>()=>{clearTimeout(l.current)}),[]);const v=r.useCallback((()=>{u((e=>!e))}),[]);return rt(o,"rowsScroll",h),rt(o,"columnHeaderDragStart",v),rt(o,"columnHeaderDragEnd",v),a?(0,oe.jsx)(au,{ref:n,className:(0,s.Z)(m.root),onDragOver:b,style:{height:c}}):null}const uu=r.memo(su),cu=["className"],du=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})((({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:`1px solid ${"light"===e.palette.mode?(0,m.$n)((0,m.Fq)(e.palette.divider,1),.88):(0,m._j)((0,m.Fq)(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius}))),pu=r.forwardRef((function(e,t){const{className:n}=e,r=(0,a.Z)(e,cu),o=(e=>{const{classes:t}=e;return(0,p.Z)({root:["columnHeaders"]},g.d,t)})({classes:N().classes});return(0,oe.jsx)(du,(0,i.Z)({ref:t,className:(0,s.Z)(n,o.root)},r))})),fu=["isDragging","className"],mu=(0,f.ZP)("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${g._.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"center",[`&.${g._.columnHeaderDropZone} .${g._.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${g._["columnHeadersInner--scrollable"]} .${g._.columnHeader}:last-child`]:{borderRight:"none"}}))),gu=r.forwardRef((function(e,t){var n,r;const{isDragging:o,className:l}=e,u=(0,a.Z)(e,fu),c=$(),d=N(),f=(e=>{const{isDragging:t,hasScrollX:n,classes:r}=e,o={root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]};return(0,p.Z)(o,g.d,r)})({isDragging:o,hasScrollX:null!=(n=null==(r=c.current.getRootDimensions())?void 0:r.hasScrollX)&&n,classes:d.classes});return(0,oe.jsx)(mu,(0,i.Z)({ref:t,className:(0,s.Z)(l,f.root)},u))})),hu=["innerRef","className"],bu=r.forwardRef((function(e,t){const{innerRef:n}=e,o=(0,a.Z)(e,hu),{isDragging:l,getRootProps:s,getInnerProps:u,getColumns:d}=(e=>{const{innerRef:t,minColumnIndex:n=0}=e,[o,l]=r.useState(""),[a,s]=r.useState(""),u=$(),d=j(u,F),p=j(u,_),f=j(u,Co),m=j(u,vo),g=j(u,ho),h=j(u,ne),b=j(u,De),v=j(u,xe),w=j(u,bt),y=N(),x=r.useRef(null),R=(0,c.Z)(t,x),[k,Z]=r.useState(null),S=r.useRef(k),P=r.useRef(0),E=rl(u,y);r.useEffect((()=>{u.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[u]);const M=r.useRef(C(oo,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((n=>e[n]===t[n]))})),I=r.useCallback((e=>{const[t,r]=Bs({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:y.rowBuffer}),o=M.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:n,columnBuffer:y.columnBuffer,firstRowToRender:t,lastRowToRender:r,apiRef:u,visibleRows:E.rows}),l=o>0?P.current-p[o]:P.current;x.current.style.transform=`translate3d(${-l}px, 0px, 0px)`}),[p,n,y.columnBuffer,u,E.rows,y.rowBuffer]);r.useLayoutEffect((()=>{k&&I(k)}),[k,I]);const T=r.useCallback((({left:e,renderContext:t=null},n)=>{var r,o;if(!x.current)return;if(P.current===e&&(null==(r=S.current)?void 0:r.firstColumnIndex)===(null==t?void 0:t.firstColumnIndex)&&(null==(o=S.current)?void 0:o.lastColumnIndex)===(null==t?void 0:t.lastColumnIndex))return;P.current=e;let l=!1;t===S.current&&S.current?l=!0:(function(e){return!!e.target}(n)?(Vs.flushSync((()=>{Z(t)})),l=!0):Z(t),S.current=t),t&&l&&I(t)}),[I]),O=r.useCallback((e=>s(e.field)),[]),D=r.useCallback((()=>s("")),[]),H=r.useCallback((e=>l(e.field)),[]),L=r.useCallback((()=>l("")),[]);rt(u,"columnResizeStart",O),rt(u,"columnResizeStop",D),rt(u,"columnHeaderDragStart",H),rt(u,"columnHeaderDragEnd",L),rt(u,"rowsScroll",T);const z={minHeight:h,maxHeight:h,lineHeight:`${h}px`};return{renderContext:k,getColumns:(e,t={})=>{const{renderContext:r=k,minFirstColumn:l=n,maxLastColumn:s=d.length}=e||{};if(!r)return null;const c=[],[p,C]=Bs({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:y.rowBuffer}),x=M.current({firstColumnIndex:r.firstColumnIndex,minColumnIndex:l,columnBuffer:y.columnBuffer,apiRef:u,firstRowToRender:p,lastRowToRender:C,visibleRows:E.rows}),R=Math.min(r.lastColumnIndex+y.columnBuffer,s),Z=d.slice(x,R);for(let n=0;n(0,i.Z)({style:z},e),getInnerProps:()=>({ref:R,"aria-rowindex":1,role:"row"})}})({innerRef:n});return(0,oe.jsxs)(pu,(0,i.Z)({ref:t},s(o),{children:[(0,oe.jsx)(uu,{scrollDirection:"left"}),(0,oe.jsx)(gu,(0,i.Z)({isDragging:l},u(),{children:d()})),(0,oe.jsx)(uu,{scrollDirection:"right"})]}))})),vu=r.forwardRef((function(e,t){const n=(e=>{if(e.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=(0,mn.Z)({props:e,name:"MuiDataGrid"}),n=r.useMemo((()=>(0,i.Z)({},Yl,t.localeText)),[t.localeText]),o=r.useMemo((()=>{const e=t.components;if(!e)return(0,i.Z)({},Ms);const n={};return Object.entries(Ms).forEach((([t,r])=>{n[t]=void 0===e[t]?r:e[t]})),n}),[t.components]);return r.useMemo((()=>(0,i.Z)({},Ts,t,{localeText:n,components:o},Is)),[t,n,o])})(e),o=Xl(n);return(0,oe.jsx)($e,{apiRef:o,props:n,children:(0,oe.jsx)(ie,{className:n.className,style:n.style,sx:n.sx,ref:t,children:(0,oe.jsxs)(de,{children:[(0,oe.jsx)(pe,{}),(0,oe.jsx)(je,{ColumnHeadersComponent:bu,VirtualScrollerComponent:Ks}),(0,oe.jsx)(ze,{})]})})})})),Cu=r.memo(vu);vu.propTypes={"aria-label":l().string,"aria-labelledby":l().string,autoHeight:l().bool,autoPageSize:l().bool,cellModesModel:l().object,checkboxSelection:l().bool,classes:l().object,columnBuffer:l().number,columns:(l().array.isRequired,()=>null),columnThreshold:l().number,columnTypes:l().object,columnVisibilityModel:l().object,components:l().object,componentsProps:l().object,density:l().oneOf(["comfortable","compact","standard"]),disableColumnFilter:l().bool,disableColumnMenu:l().bool,disableColumnSelector:l().bool,disableDensitySelector:l().bool,disableExtendRowFullWidth:l().bool,disableSelectionOnClick:l().bool,disableVirtualization:l().bool,editMode:l().oneOf(["cell","row"]),editRowsModel:l().object,error:l().any,experimentalFeatures:l().shape({newEditingApi:l().bool,preventCommitWhileValidating:l().bool,warnIfFocusStateIsNotSynced:l().bool}),filterMode:l().oneOf(["client","server"]),filterModel:l().shape({items:l().arrayOf(l().shape({columnField:l().string.isRequired,id:l().oneOfType([l().number,l().string]),operatorValue:l().string,value:l().any})).isRequired,linkOperator:l().oneOf(["and","or"]),quickFilterLogicOperator:l().oneOf(["and","or"]),quickFilterValues:l().array}),getCellClassName:l().func,getDetailPanelContent:l().func,getEstimatedRowHeight:l().func,getRowClassName:l().func,getRowHeight:l().func,getRowId:l().func,getRowSpacing:l().func,headerHeight:l().number,hideFooter:l().bool,hideFooterPagination:l().bool,hideFooterSelectedRowCount:l().bool,initialState:l().object,isCellEditable:l().func,isRowSelectable:l().func,keepNonExistentRowsSelected:l().bool,loading:l().bool,localeText:l().object,logger:l().shape({debug:l().func.isRequired,error:l().func.isRequired,info:l().func.isRequired,warn:l().func.isRequired}),logLevel:l().oneOf(["debug","error","info","warn",!1]),nonce:l().string,onCellClick:l().func,onCellDoubleClick:l().func,onCellEditCommit:l().func,onCellEditStart:l().func,onCellEditStop:l().func,onCellFocusOut:l().func,onCellKeyDown:l().func,onCellModesModelChange:l().func,onColumnHeaderClick:l().func,onColumnHeaderDoubleClick:l().func,onColumnHeaderEnter:l().func,onColumnHeaderLeave:l().func,onColumnHeaderOut:l().func,onColumnHeaderOver:l().func,onColumnOrderChange:l().func,onColumnVisibilityChange:l().func,onColumnVisibilityModelChange:l().func,onEditCellPropsChange:l().func,onEditRowsModelChange:l().func,onError:l().func,onFilterModelChange:l().func,onMenuClose:l().func,onMenuOpen:l().func,onPageChange:l().func,onPageSizeChange:l().func,onPreferencePanelClose:l().func,onPreferencePanelOpen:l().func,onProcessRowUpdateError:l().func,onResize:l().func,onRowClick:l().func,onRowDoubleClick:l().func,onRowEditCommit:l().func,onRowEditStart:l().func,onRowEditStop:l().func,onRowModesModelChange:l().func,onSelectionModelChange:l().func,onSortModelChange:l().func,onStateChange:l().func,page:l().number,pageSize:(l().number,()=>null),pagination:e=>!1===e.pagination?new Error(["MUI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the DataGridPro component to disable the pagination."].join("\n")):null,paginationMode:l().oneOf(["client","server"]),processRowUpdate:l().func,rowBuffer:l().number,rowCount:l().number,rowHeight:l().number,rowModesModel:l().object,rows:l().array.isRequired,rowSpacingType:l().oneOf(["border","margin"]),rowsPerPageOptions:l().arrayOf(l().number),rowThreshold:l().number,scrollbarSize:l().number,selectionModel:(l().oneOfType([l().number,l().string,l().array]),()=>null),showCellRightBorder:l().bool,showColumnRightBorder:l().bool,sortingMode:l().oneOf(["client","server"]),sortingOrder:l().arrayOf(l().oneOf(["asc","desc"])),sortModel:l().arrayOf(l().shape({field:l().string.isRequired,sort:l().oneOf(["asc","desc"])})),sx:l().oneOfType([l().arrayOf(l().oneOfType([l().func,l().object,l().bool])),l().func,l().object])}},3490:function(e,t,n){"use strict";n.d(t,{d:function(){return o},_:function(){return l}});var r=n(8979);function o(e){return(0,r.Z)("MuiDataGrid",e)}const l=(0,n(6087).Z)("MuiDataGrid",["actionsCell","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle"])},8951:function(e,t){(function(){var e,n,r,o,l,i,a,s;s=function(e){return[(e&255<<24)>>>24,(e&255<<16)>>>16,(65280&e)>>>8,255&e].join(".")},a=function(e){var t,r,o,l,i,a;for(t=[],o=l=0;l<=3&&0!==e.length;o=++l){if(o>0){if("."!==e[0])throw new Error("Invalid IP");e=e.substring(1)}i=(a=n(e))[0],r=a[1],e=e.substring(r),t.push(i)}if(0!==e.length)throw new Error("Invalid IP");switch(t.length){case 1:if(t[0]>4294967295)throw new Error("Invalid IP");return t[0]>>>0;case 2:if(t[0]>255||t[1]>16777215)throw new Error("Invalid IP");return(t[0]<<24|t[1])>>>0;case 3:if(t[0]>255||t[1]>255||t[2]>65535)throw new Error("Invalid IP");return(t[0]<<24|t[1]<<16|t[2])>>>0;case 4:if(t[0]>255||t[1]>255||t[2]>255||t[3]>255)throw new Error("Invalid IP");return(t[0]<<24|t[1]<<16|t[2]<<8|t[3])>>>0;default:throw new Error("Invalid IP")}},o=(r=function(e){return e.charCodeAt(0)})("0"),i=r("a"),l=r("A"),n=function(e){var t,n,a,s,u;for(s=0,t=10,n="9",a=0,e.length>1&&"0"===e[a]&&("x"===e[a+1]||"X"===e[a+1]?(a+=2,t=16):"0"<=e[a+1]&&e[a+1]<="9"&&(a++,t=8,n="7")),u=a;a>>0;else{if(16!==t)break;if("a"<=e[a]&&e[a]<="f")s=s*t+(10+r(e[a])-i)>>>0;else{if(!("A"<=e[a]&&e[a]<="F"))break;s=s*t+(10+r(e[a])-l)>>>0}}if(s>4294967295)throw new Error("too large");a++}if(a===u)throw new Error("empty octet");return[s,a]},e=function(){function e(e,t){var n,r,o;if("string"!==typeof e)throw new Error("Missing `net' parameter");if(t||(o=e.split("/",2),e=o[0],t=o[1]),t||(t=32),"string"===typeof t&&t.indexOf(".")>-1){try{this.maskLong=a(t)}catch(l){throw l,new Error("Invalid mask: "+t)}for(n=r=32;r>=0;n=--r)if(this.maskLong===4294967295<<32-n>>>0){this.bitmask=n;break}}else{if(!t&&0!==t)throw new Error("Invalid mask: empty");this.bitmask=parseInt(t,10),this.maskLong=0,this.bitmask>0&&(this.maskLong=4294967295<<32-this.bitmask>>>0)}try{this.netLong=(a(e)&this.maskLong)>>>0}catch(l){throw l,new Error("Invalid net address: "+e)}if(!(this.bitmask<=32))throw new Error("Invalid mask for ip4: "+t);this.size=Math.pow(2,32-this.bitmask),this.base=s(this.netLong),this.mask=s(this.maskLong),this.hostmask=s(~this.maskLong),this.first=this.bitmask<=30?s(this.netLong+1):this.base,this.last=this.bitmask<=30?s(this.netLong+this.size-2):s(this.netLong+this.size-1),this.broadcast=this.bitmask<=30?s(this.netLong+this.size-1):void 0}return e.prototype.contains=function(t){return"string"===typeof t&&(t.indexOf("/")>0||4!==t.split(".").length)&&(t=new e(t)),t instanceof e?this.contains(t.base)&&this.contains(t.broadcast||t.last):(a(t)&this.maskLong)>>>0===(this.netLong&this.maskLong)>>>0},e.prototype.next=function(t){return null==t&&(t=1),new e(s(this.netLong+this.size*t),this.mask)},e.prototype.forEach=function(e){var t,n,r;for(r=a(this.first),n=a(this.last),t=0;r<=n;)e(s(r),r,t),t++,r++},e.prototype.toString=function(){return this.base+"/"+this.bitmask},e}(),t.ip2long=a,t.long2ip=s,t.Netmask=e}).call(this)},1163:function(e,t,n){e.exports=n(387)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},1581:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/560-0ed707609765e23a.js b/striker-ui/out/_next/static/chunks/560-a9c9ecda0eca25a9.js similarity index 83% rename from striker-ui/out/_next/static/chunks/560-0ed707609765e23a.js rename to striker-ui/out/_next/static/chunks/560-a9c9ecda0eca25a9.js index e56f4a78..de1f2086 100644 --- a/striker-ui/out/_next/static/chunks/560-0ed707609765e23a.js +++ b/striker-ui/out/_next/static/chunks/560-a9c9ecda0eca25a9.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[560],{2545:function(e,t,r){var n=r(5893),o=r(7294),l=r(157);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return l}}(e,t)||y(e,t)||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 f(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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 y(e,t){if(e){if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}var p=(0,o.forwardRef)((function(e,t){var r=e.children,i=e.contentContainerProps,u=e.dialogProps,y=e.onSubmitAppend,p=e.proceedButtonProps,d=e.scrollBoxProps,b=e.scrollContent,h=a(e,["children","contentContainerProps","dialogProps","onSubmitAppend","proceedButtonProps","scrollBoxProps","scrollContent"]),m=(0,o.useMemo)((function(){return c({},i,{component:"form",onSubmit:function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}),[y.length]),b=(0,o.useMemo)((function(){return f.length>1}),[f.length]),h=(0,o.useCallback)((function(e){var t=e.confirmDialogProps,r=void 0===t?{}:t,o=e.formSummaryProps,l=void 0===o?{}:o,u=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return c({actionProceedText:"Delete",content:(0,n.jsx)(i.Z,c({entries:a,maxDepth:0,renderEntry:f},l)),onProceedAppend:s,proceedColour:"red",titleText:u(y.length)},r)}),[a,y.length]),m=(0,o.useCallback)((function(e){return a[e]}),[a]),g=(0,o.useCallback)((function(e){return s(f.reduce((function(t,r){return e&&(t[r]=e),t}),{}))}),[f]),v=(0,o.useCallback)((function(e,t){return s((0,l.ZP)(e,t||void 0))}),[]);return{buildDeleteDialogProps:h,checklist:a,checks:y,getCheck:m,hasAllChecks:p,hasChecks:d,multipleItems:b,setAllChecks:g,setCheck:v}}},6632:function(e,t,r){var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionProceedText,r=void 0===t?"":t,o=e.content,u=void 0===o?"":o,c=e.titleText,a=void 0===c?"":c,s=i(e,["actionProceedText","content","titleText"]);return(0,n.useState)(l({actionProceedText:r,content:u,titleText:a},s))}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[560],{2545:function(e,t,r){var n=r(5893),o=r(7294),l=r(157);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return l}}(e,t)||y(e,t)||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 f(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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 y(e,t){if(e){if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}var p=(0,o.forwardRef)((function(e,t){var r=e.children,i=e.contentContainerProps,u=e.dialogProps,y=e.onSubmitAppend,p=e.proceedButtonProps,d=e.scrollBoxProps,b=e.scrollContent,h=a(e,["children","contentContainerProps","dialogProps","onSubmitAppend","proceedButtonProps","scrollBoxProps","scrollContent"]),m=(0,o.useMemo)((function(){return c({},i,{component:"form",onSubmit:function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}),[y.length]),b=(0,o.useMemo)((function(){return f.length>1}),[f.length]),h=(0,o.useCallback)((function(e){var t=e.confirmDialogProps,r=void 0===t?{}:t,o=e.formSummaryProps,l=void 0===o?{}:o,u=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return c({actionProceedText:"Delete",content:(0,n.jsx)(i.Z,c({entries:a,maxDepth:0,renderEntry:f},l)),onProceedAppend:s,proceedColour:"red",titleText:u(y.length)},r)}),[a,y.length]),m=(0,o.useCallback)((function(e){return a[e]}),[a]),g=(0,o.useCallback)((function(){return s({})}),[]),v=(0,o.useCallback)((function(e){return s(f.reduce((function(t,r){return e&&(t[r]=e),t}),{}))}),[f]),O=(0,o.useCallback)((function(e,t){return s((0,l.ZP)(e,t||void 0))}),[]);return{buildDeleteDialogProps:h,checklist:a,checks:y,getCheck:m,hasAllChecks:p,hasChecks:d,multipleItems:b,resetChecks:g,setAllChecks:v,setCheck:O}}},6632:function(e,t,r){var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionProceedText,r=void 0===t?"":t,o=e.content,u=void 0===o?"":o,c=e.titleText,a=void 0===c?"":c,s=i(e,["actionProceedText","content","titleText"]);return(0,n.useState)(l({actionProceedText:r,content:u,titleText:a},s))}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js b/striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js new file mode 100644 index 00000000..2d752c1d --- /dev/null +++ b/striker-ui/out/_next/static/chunks/62-09a1812bcc63d819.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62],{2427:function(e,r,n){var t=n(1496),o=n(8441),i=n(8962),c=n(7169);var a,u,l,s=(0,t.ZP)(o.Z)((a={backgroundColor:"transparent",borderRadius:c.n_,height:"1em"},u="& .".concat(i.Z.bar),l={borderRadius:c.n_},u in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l,a));r.Z=s},5813:function(e,r,n){var t=n(5893),o=n(1496),i=n(8962),c=n(7357),a=n(7294),u=n(7169),l=n(2427),s=n(5247);function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=(0,o.ZP)(l.Z)({height:".4em"}),v=(0,o.ZP)(s.Z)({height:".2em"});r.Z=function(e){var r=e.barProps,n=void 0===r?{}:r,o=e.thin,f=e.underlineProps,g=e.value,h=n.sx,O=b(n,["sx"]),j=(0,a.useMemo)((function(){return"value"in g?{default:g}:g}),[g]),x=(0,a.useMemo)((function(){return Object.entries(j).reverse()}),[j]),w=(0,a.useMemo)((function(){return o?y:l.Z}),[o]),P=(0,a.useMemo)((function(){return o?v:s.Z}),[o]),S=(0,a.useMemo)((function(){return x.map((function(e,r){var n,t,o,c,l=m(e,2),s=l[0],f=l[1],b=f.colour,y=void 0===b?u.s7:b,v=f.value,g="string"===typeof y?y:null!==(t=null===(n=Object.entries(y).reverse().find((function(e){var r=m(e,1)[0];return v>=Number(r)})))||void 0===n?void 0:n[1])&&void 0!==t?t:u.s7,j="relative";return r&&(j="absolute",o=0,c="100%"),(0,a.createElement)(w,p({key:"stack-bar-".concat(s),sx:p(d({position:j,top:o,width:c},"& .".concat(i.Z.bar),{backgroundColor:g}),h),variant:"determinate",value:v},O))}))}),[h,x,w,O]);return(0,t.jsxs)(c.Z,{position:"relative",children:[S,(0,a.createElement)(P,f)]})}},5247:function(e,r,n){var t=n(1496),o=n(7357),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.rr,borderRadius:i.n_,display:"block",height:"4px",position:"relative"});r.Z=c},5172:function(e,r,n){n.d(r,{CD:function(){return d},ko:function(){return v}});var t=n(5893),o=n(1496),i=n(7169),c=n(2427),a=n(5247);function u(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var l="AllocationBar",s={barOk:"".concat(l,"-barOk"),barWarning:"".concat(l,"-barWarning"),barAlert:"".concat(l,"-barAlert")},f=(0,o.ZP)("div")((function(){var e;return u(e={},"& .".concat(s.barOk),{backgroundColor:i.Ej}),u(e,"& .".concat(s.barWarning),{backgroundColor:i.Wd}),u(e,"& .".concat(s.barAlert),{backgroundColor:i.hM}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(c.Z,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};function p(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var b="ProgressBar",m={barOk:"".concat(b,"-barOk"),barInProgress:"".concat(b,"-barInProgress")},y=(0,o.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:i.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:i.Wd}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(c.Z,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};n(5813)},2349:function(e,r,n){var t=n(5893),o=n(8128),i=n(3631),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.sx,n=l(e,["sx"]);return(0,t.jsx)(o.Z,u({},n,{sx:u(a({color:c.s7},"&.".concat(i.Z.checked),{color:c.s7}),r)}))}},582:function(e,r,n){var t=n(1496),o=n(7720),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.d});r.Z=c},4690:function(e,r,n){var t=n(5893),o=n(7357),i=n(7294);function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l={columnSpacing:void 0,fullWidth:!1,growFirst:!1,row:!1,rowSpacing:void 0,lg:void 0,md:void 0,sm:void 0,spacing:"1em",xl:void 0,xs:"column"},s=function(e){var r=e.fullWidth,n=e.growFirst,c=e.lg,s=void 0===c?l.lg:c,f=e.md,d=void 0===f?l.md:f,p=e.row,b=e.sm,m=void 0===b?l.sm:b,y=e.spacing,v=void 0===y?l.spacing:y,g=e.sx,h=e.xl,O=void 0===h?l.xl:h,j=e.xs,x=void 0===j?l.xs:j,w=e.columnSpacing,P=void 0===w?v:w,S=e.rowSpacing,Z=void 0===S?v:S,I=u(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),k=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),A=(0,i.useMemo)((function(){return m||k}),[m,k]),C=(0,i.useMemo)((function(){return d||A}),[d,A]),E=(0,i.useMemo)((function(){return s||C}),[s,C]),M=(0,i.useMemo)((function(){return O||E}),[O,E]),T=(0,i.useMemo)((function(){return{column:{alignItems:"normal",marginLeft:0,marginTop:P},row:{alignItems:"center",marginLeft:Z,marginTop:0}}}),[P,Z]),D=(0,i.useMemo)((function(){return n?1:void 0}),[n]),R=(0,i.useMemo)((function(){return r?"100%":void 0}),[r]);return(0,t.jsx)(o.Z,a({},I,{sx:a({alignItems:{xs:T[k].alignItems,sm:T[A].alignItems,md:T[C].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:A,md:C,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[A].marginLeft,md:T[C].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[A].marginTop,md:T[C].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=l,r.Z=s},1706:function(e,r,n){n.d(r,{Z:function(){return P}});var t=n(2428),o=n(5537),i=n(6761),c=n(1797),a=n(6059),u=n(1370),l=n(2186),s=n(5697),f=n(1496),d=n(4799),p=n(7021),b=n(7294),m=n(7169);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,f.ZP)(d.Z)(y({borderRadius:m.n_,backgroundColor:m.s7,color:m.E5,"&:hover":{backgroundColor:"".concat(m.s7,"F0")}},"&.".concat(p.Z.disabled),{backgroundColor:m.rr})),h=(0,f.ZP)(g)({backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}}),O=(0,f.ZP)(d.Z)({color:m.s7}),j={add:{none:{iconType:t.Z}},close:{none:{iconType:o.Z}},delete:{none:{iconType:i.Z}},edit:{false:{iconType:c.Z},true:{iconType:a.Z,iconProps:{sx:{color:m.Ej}}}},play:{none:{iconType:u.Z}},visibility:{false:{iconType:l.Z},true:{iconType:s.Z}}},x={contained:g,normal:O,redcontained:h},w=function(e){var r=e.children,n=e.defaultIcon,t=e.iconProps,o=e.mapPreset,i=e.mapToIcon,c=e.state,a=void 0===c?"none":c,u=e.variant,l=void 0===u?"contained":u,s=v(e,["children","defaultIcon","iconProps","mapPreset","mapToIcon","state","variant"]),f=(0,b.useMemo)((function(){return null!==i&&void 0!==i?i:o&&j[o]}),[i,o]),d=(0,b.useMemo)((function(){var e;if(f){var o,i=null!==(o=f[a])&&void 0!==o?o:{iconType:n},c=i.iconType,u=i.iconProps;c&&(e=(0,b.createElement)(c,function(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y="1.7em",v={iconProps:{},indicatorProps:{},indicatorTextProps:{},initialIndicatorValue:!1},g="24%",h="50%",O=".1rem",j="0rem",x=(0,i.forwardRef)((function(e,r){var n=e.icon,f=e.iconProps,d=(void 0===f?v.iconProps:f).sx,x=e.indicatorProps,w=(void 0===x?v.indicatorProps:x).sx,P=e.indicatorTextProps,S=(void 0===P?v.indicatorTextProps:P).sx,Z=e.initialIndicatorValue,I=void 0===Z?v.initialIndicatorValue:Z,k=e.sx,A=b(e.iconProps,["sx"]),C=b(e.indicatorProps,["sx"]),E=b(e.indicatorTextProps,["sx"]),M=(0,l.Z)().protect,T=m((0,s.Z)(I,M),2),D=T[0],R=T[1],L=(0,i.useCallback)((function(e,r,n){return(0,t.jsx)(a.Z,p({row:!0},C,{sx:p({backgroundColor:c.Ej,borderColor:c.E5,borderRadius:"50%",borderStyle:"solid",borderWidth:".1em",bottom:n,boxSizing:"content-box",height:0,justifyContent:"center",paddingBottom:r,position:"absolute",right:n,width:r},w),children:e}))}),[w,C]),W=(0,i.useCallback)((function(e){return(0,t.jsx)(u.Ac,p({},E,{sx:p({fontWeight:"500",paddingTop:"100%"},S),children:e>9?"".concat(9,"+"):e}))}),[S,E]),N=(0,i.useMemo)((function(){var e;if(D){var r,n=g,t=O;Number.isFinite(D)&&(r=W(D),n=h,t=j),e=L(r,n,t)}return e}),[L,W,D]);return(0,i.useImperativeHandle)(r,(function(){return{indicate:function(e){return R(e)}}}),[R]),(0,t.jsxs)(o.Z,{sx:p({height:y,width:y,position:"relative"},k),children:[(0,i.createElement)(n,p({},A,{sx:p({height:"100%",width:"100%"},d)})),N]})}));x.defaultProps=v,x.displayName="IconWithIndicator",r.Z=x},2444:function(e,r,n){var t=n(5893),o=n(8333),i=n(7294),c=n(2029),a=n(5172),u=n(4690),l=n(6125),s=n(1905),f=n(7750),d=n(2749);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||k(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,r){if(e){if("string"===typeof e)return x(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,r):void 0}}var A=(0,o.forwardRef)((function(e){var r=e.allowCheckAll,n=void 0!==r&&r,x=e.allowEdit,w=void 0!==x&&x,k=e.allowItemButton,A=void 0!==k&&k,C=e.disableDelete,E=void 0!==C&&C,M=e.edit,T=void 0!==M&&M,D=e.flexBoxProps,R=e.getListCheckboxProps,L=e.getListItemCheckboxProps,W=e.header,N=e.headerSpacing,q=void 0===N?".3em":N,_=e.insertHeader,F=void 0===_||_,B=e.listEmpty,U=e.listItemIconMinWidth,H=void 0===U?"56px":U,z=e.listItemKeyPrefix,$=void 0===z?(0,b.Z)():z,J=e.listItemProps,G=(void 0===J?{}:J).sx,V=e.listItems,X=e.listProps,Y=(void 0===X?{}:X).sx,K=e.loading,Q=e.onAdd,ee=e.onDelete,re=e.onEdit,ne=e.onAllCheckboxChange,te=e.onItemCheckboxChange,oe=e.onItemClick,ie=e.renderListItem,ce=void 0===ie?function(e){return(0,t.jsx)(j.Ac,{children:e})}:ie,ae=e.renderListItemCheckboxState,ue=e.scroll,le=void 0!==ue&&ue,se=e.allowAddItem,fe=void 0===se?w:se,de=e.allowCheckItem,pe=void 0===de?w:de,be=e.allowDelete,me=void 0===be?w:be,ye=e.allowEditItem,ve=void 0===ye?w:ye,ge=S(e.listItemProps,["sx"]),he=S(e.listProps,["sx"]),Oe=(0,o.useMemo)((function(){return"calc(".concat(H," - ").concat(q,")")}),[q,H]),je=(0,o.useMemo)((function(){return fe?(0,t.jsx)(h.Z,{onClick:Q,size:"small",children:(0,t.jsx)(i.Z,{})}):void 0}),[fe,Q]),xe=(0,o.useMemo)((function(){return T&&me?(0,t.jsx)(h.Z,{disabled:E,onClick:ee,size:"small",sx:{backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}},children:(0,t.jsx)(c.Z,{})}):void 0}),[E,me,T,ee]),we=(0,o.useMemo)((function(){if(ve)return(0,t.jsx)(h.Z,{onClick:re,size:"small",children:T?(0,t.jsx)(a.Z,{sx:{color:m.Ej}}):(0,t.jsx)(u.Z,{})})}),[ve,T,re]),Pe=(0,o.useMemo)((function(){var e;return T&&pe&&(e=n?(0,t.jsx)(l.Z,{sx:{minWidth:Oe},children:(0,t.jsx)(y.Z,P({edge:"start",onChange:ne},null===R||void 0===R?void 0:R.call(null)))}):(0,t.jsx)(v.Z,{sx:{minWidth:Oe}})),e}),[Oe,R,n,pe,T,ne]),Se=(0,o.useMemo)((function(){var e,r="undefined"===typeof W?"undefined":(e=W)&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return F&&W?(0,t.jsxs)(g.Z,{row:!0,spacing:q,sx:{height:"2.4em"},children:[Pe,["boolean","string"].includes(r)?(0,t.jsxs)(t.Fragment,{children:["string"===r&&(0,t.jsx)(j.Ac,{children:W}),(0,t.jsx)(v.Z,{sx:{flexGrow:1}})]}):W,xe,we,je]}):W}),[je,Pe,xe,we,W,q,F]),Ze=(0,o.useMemo)((function(){return"string"===typeof B?(0,t.jsx)(j.Ac,{align:"center",children:B}):B}),[B]),Ie=(0,o.useCallback)((function(e,r,n){return T&&pe?(0,t.jsx)(s.Z,{sx:{minWidth:H},children:(0,t.jsx)(y.Z,P({checked:r,edge:"start",onChange:function(){for(var r=arguments.length,n=new Array(r),t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=function(e){var r=e.headerMarginOffset,n=void 0===r?".3em":r,o=e.ml,i=e.mv,c=void 0===i?"1.4em":i,s=e.sx,f=e.mb,b=void 0===f?c:f,m=e.mt,y=void 0===m?c:m,v=p(e,["headerMarginOffset","ml","mv","sx","mb","mt"]),g=(0,u.useMemo)((function(){return o?"calc(".concat(o," + ").concat(n,")"):n}),[n,o]),h=(0,u.useMemo)((function(){var e="number"===typeof y?"".concat(y,"px"):y;return"calc(".concat(e," + ").concat(n,")")}),[n,y]),O=(0,u.useMemo)((function(){return d({borderWidth:"1px",borderRadius:l.n_,borderStyle:"solid",borderColor:l.d,paddingBottom:0,position:"relative"},s)}),[s]);return(0,t.jsx)(a.Z,d({mb:b,ml:g,mt:h},v,{sx:O}))};function m(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function y(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=function(e){var r=e.sx,n=v(e,["sx"]),o=(0,u.useMemo)((function(){return y({position:"relative",zIndex:20},r)}),[r]);return(0,t.jsx)(a.Z,y({padding:".3em .7em"},n,{sx:o}))},h=function(e){var r=e.children;return(0,t.jsxs)(a.Z,{sx:{position:"relative",whiteSpace:"pre-wrap"},children:[(0,t.jsx)(a.Z,{sx:{alignItems:"center",borderColor:l.d,borderRadius:l.n_,borderStyle:"solid",borderWidth:"1px",display:"flex",left:"-.3em",paddingBottom:".2em",paddingLeft:"1em",paddingRight:".7em",paddingTop:".4em",position:"absolute",top:"-.3em",width:"100%",zIndex:"10","& > :first-child":{flexGrow:1}},children:r}),(0,t.jsx)(a.Z,{sx:{display:"flex",paddingBottom:".4em",paddingRight:"1.7em",visibility:"hidden"},children:r})]})},O=n(2152),j=n(7750);function x(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var w="1.2em",P=function(e){var r=e.children,n=e.expandInitially,f=void 0!==n&&n,d=e.header,p=e.loading,m=void 0!==p&&p,y=e.panelProps,v=e.showHeaderSpinner,P=void 0!==v&&v,S=(0,u.useState)(f),Z=S[0],I=S[1],k=(0,u.useMemo)((function(){return Z?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})}),[Z]),A=(0,u.useMemo)((function(){return Z?"auto":".2em"}),[Z]),C=(0,u.useMemo)((function(){return"string"===typeof d?(0,t.jsx)(j.Ac,{children:d}):d}),[d]),E=(0,u.useMemo)((function(){return P&&!Z&&m?(0,t.jsx)(O.Z,{progressProps:{style:{height:w,width:w}}}):void 0}),[Z,m,P]),M=(0,u.useMemo)((function(){return Z&&m?(0,t.jsx)(O.Z,{sx:{margin:"1em 0"}}):(0,t.jsx)(g,{children:r})}),[r,Z,m]);return(0,t.jsxs)(b,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var C="Panel",E={paper:"".concat(C,"-paper"),square:"".concat(C,"-square"),topSquare:"".concat(C,"-topSquare"),bottomSquare:"".concat(C,"-bottomSquare")},M=(0,S.ZP)(a.Z)((function(){var e;return I(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:l.v9,height:"100%",opacity:.8,padding:"2.1em",position:"relative",width:"100%",zIndex:10}),I(e,"& .".concat(E.square),{content:'""',position:"absolute",width:"2.1em",height:"2.1em",border:"1px",borderColor:l.lD,borderWidth:"1px",borderRadius:l.n_,borderStyle:"solid",padding:0,margin:0}),I(e,"& .".concat(E.topSquare),{top:"-.3em",left:"-.3em"}),I(e,"& .".concat(E.bottomSquare),{bottom:"-.3em",right:"-.3em"}),e})),T={paperProps:{}},D=(0,t.jsx)(Z.Z,{styles:{"*::-webkit-scrollbar":{width:".6em"},"*::-webkit-scrollbar-track":{backgroundColor:l.v9},"*::-webkit-scrollbar-thumb":{backgroundColor:l.lD,outline:"1px solid transparent",borderRadius:l.n_}}}),R=function(e){var r=e.children,n=e.classes,o=e.className,i=e.paperProps,c=(void 0===i?T.paperProps:i).className,u=e.sx,l=A(e.paperProps,["className"]),s=A(e,["children","classes","className","paperProps","sx"]);return(0,t.jsxs)(M,k({classes:n,className:o,sx:u},s,{children:[D,(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.topSquare)}),(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.bottomSquare)}),(0,t.jsx)(a.Z,k({},l,{className:"".concat(E.paper," ").concat(c),children:r}))]}))};R.defaultProps=T;var L=R,W=(0,S.ZP)(a.Z)({alignItems:"center",display:"flex",flexDirection:"row",marginBottom:"1em",width:"100%","& > :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}})},2152:function(e,r,n){var t=n(5893),o=n(7357),i=n(2346),c=n(6489),a=n(7169);function u(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={progressProps:{}},d=function(e){var r=e.mt,n=void 0===r?"3em":r,d=e.progressProps,p=void 0===d?f.progressProps:d,b=e.sx,m=s(e,["mt","progressProps","sx"]);return(0,t.jsx)(o.Z,l({},m,{sx:l(u({alignItems:"center",display:"flex",justifyContent:"center",marginTop:n},"& .".concat(i.Z.root),{color:a.lD}),b),children:(0,t.jsx)(c.Z,l({},p,{variant:"indeterminate"}))}))};d.defaultProps=f,r.Z=d},7750:function(e,r,n){n.d(r,{Ac:function(){return b},z:function(){return O},Q0:function(){return I},$_:function(){return E},PJ:function(){return N},KI:function(){return w}});var t=n(5893),o=n(7294),i=n(5861),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s="BodyText",f={edge:null,inheritColour:!1,inline:!1,inverted:!1,monospaced:!1,selected:!0,text:null},d={inheritColour:"".concat(s,"-inherit-colour"),inverted:"".concat(s,"-inverted"),monospaced:"".concat(s,"-monospaced"),selected:"".concat(s,"-selected"),unselected:"".concat(s,"-unselected")},p=function(e){var r,n=e.children,s=e.className,p=e.inheritColour,b=void 0===p?f.inheritColour:p,m=e.inline,y=void 0===m?f.inline:m,v=e.inverted,g=void 0===v?f.inverted:v,h=e.monospaced,O=void 0===h?f.monospaced:h,j=e.selected,x=void 0===j?f.selected:j,w=e.sx,P=e.text,S=void 0===P?f.text:P,Z=l(e,["children","className","inheritColour","inline","inverted","monospaced","selected","sx","text"]),I=(0,o.useMemo)((function(){return y?"inline":void 0}),[y]),k=(0,o.useMemo)((function(){return function(e){var r=e.isInheritColour,n=e.isInvert,t=e.isMonospace,o=e.isSelect,i=[];return r?i.push(d.inheritColour):n?i.push(d.inverted):o?i.push(d.selected):i.push(d.unselected),t&&i.push(d.monospaced),i.join(" ")}({isInheritColour:b,isInvert:g,isMonospace:O,isSelect:x})}),[b,g,O,x]),A=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,u({className:"".concat(k," ").concat(s),variant:"subtitle1"},Z,{sx:u((r={display:I},a(r,"&.".concat(d.inverted),{color:c.E5}),a(r,"&.".concat(d.monospaced),{fontFamily:"Source Code Pro",fontWeight:400}),a(r,"&.".concat(d.selected),{color:c.lD}),a(r,"&.".concat(d.unselected),{color:c.UZ}),r),w),children:A}))};p.defaultProps=f;var b=p,m=n(1496);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,m.ZP)(i.Z)({color:c.lD}),h=function(e){var r=e.children,n=e.text,i=v(e,["children","text"]),c=(0,o.useMemo)((function(){return null!==r&&void 0!==r?r:n}),[r,n]);return(0,t.jsx)(g,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var I=function(e){var r=e.edge,n=e.sx,i=Z(e,["edge","sx"]),c=(0,o.useMemo)((function(){return"start"===r?0:void 0}),[r]),a=(0,o.useMemo)((function(){return"end"===r?0:void 0}),[r]),u=(0,o.useMemo)((function(){return S({display:"inline",padding:".1rem .3rem",paddingLeft:c,paddingRight:a},n)}),[c,a,n]);return(0,t.jsx)(w,S({monospaced:!0,sx:u},i))};function k(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function A(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(e){var r=e.sx,n=C(e,["sx"]);return(0,t.jsx)(w,A({monospaced:!0,sx:A({alignItems:"center",display:"flex",height:"100%"},r)},n))},M=n(2992),T=n(4690),D=n(1706);function R(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function L(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n1?n-1:0),o=1;oe.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},n=r.refreshInterval,i=void 0===n?5e3:n,c=r.onSuccess,a=(0,t.ZP)(e,o.Z,{refreshInterval:i,onSuccess:c}),u=a.data,l=a.error;return{data:u,isLoading:!l&&!u,error:l}}},1770:function(e,r){r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.onRequestError,t=void 0===n?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:n,o=r.onResponseErrorAppend,i=r.onSetupError,c=void 0===i?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:i,a=r.onResponseError,u=void 0===a?function(e){var r,n,t=e.status,i=e.statusText;500===t?r={children:"The API encountered a problem: ".concat(t," (").concat(i,")! Please check its systemd service logs."),type:"error"}:r=null!==(n=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==n?n:{children:"API responded with ".concat(t," (").concat(i,")."),type:"warning"};return r}:a,l=e.request,s=e.response,f=e.message;return s?u(s):l?t(l):c(f)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/62-1cb6d52404130873.js b/striker-ui/out/_next/static/chunks/62-1cb6d52404130873.js deleted file mode 100644 index c1c8b3b8..00000000 --- a/striker-ui/out/_next/static/chunks/62-1cb6d52404130873.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62],{2427:function(e,r,n){var t=n(1496),o=n(8441),i=n(8962),c=n(7169);var a,u,l,s=(0,t.ZP)(o.Z)((a={backgroundColor:"transparent",borderRadius:c.n_,height:"1em"},u="& .".concat(i.Z.bar),l={borderRadius:c.n_},u in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l,a));r.Z=s},5813:function(e,r,n){var t=n(5893),o=n(1496),i=n(8962),c=n(7357),a=n(7294),u=n(7169),l=n(2427),s=n(5247);function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=(0,o.ZP)(l.Z)({height:".4em"}),v=(0,o.ZP)(s.Z)({height:".2em"});r.Z=function(e){var r=e.barProps,n=void 0===r?{}:r,o=e.thin,f=e.underlineProps,g=e.value,h=n.sx,O=b(n,["sx"]),j=(0,a.useMemo)((function(){return"value"in g?{default:g}:g}),[g]),x=(0,a.useMemo)((function(){return Object.entries(j).reverse()}),[j]),w=(0,a.useMemo)((function(){return o?y:l.Z}),[o]),P=(0,a.useMemo)((function(){return o?v:s.Z}),[o]),S=(0,a.useMemo)((function(){return x.map((function(e,r){var n,t,o,c,l=m(e,2),s=l[0],f=l[1],b=f.colour,y=void 0===b?u.s7:b,v=f.value,g="string"===typeof y?y:null!==(t=null===(n=Object.entries(y).reverse().find((function(e){var r=m(e,1)[0];return v>=Number(r)})))||void 0===n?void 0:n[1])&&void 0!==t?t:u.s7,j="relative";return r&&(j="absolute",o=0,c="100%"),(0,a.createElement)(w,p({key:"stack-bar-".concat(s),sx:p(d({position:j,top:o,width:c},"& .".concat(i.Z.bar),{backgroundColor:g}),h),variant:"determinate",value:v},O))}))}),[h,x,w,O]);return(0,t.jsxs)(c.Z,{position:"relative",children:[S,(0,a.createElement)(P,f)]})}},5247:function(e,r,n){var t=n(1496),o=n(7357),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.rr,borderRadius:i.n_,display:"block",height:"4px",position:"relative"});r.Z=c},5172:function(e,r,n){n.d(r,{CD:function(){return d},ko:function(){return v}});var t=n(5893),o=n(1496),i=n(7169),c=n(2427),a=n(5247);function u(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var l="AllocationBar",s={barOk:"".concat(l,"-barOk"),barWarning:"".concat(l,"-barWarning"),barAlert:"".concat(l,"-barAlert")},f=(0,o.ZP)("div")((function(){var e;return u(e={},"& .".concat(s.barOk),{backgroundColor:i.Ej}),u(e,"& .".concat(s.barWarning),{backgroundColor:i.Wd}),u(e,"& .".concat(s.barAlert),{backgroundColor:i.hM}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(c.Z,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};function p(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var b="ProgressBar",m={barOk:"".concat(b,"-barOk"),barInProgress:"".concat(b,"-barInProgress")},y=(0,o.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:i.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:i.Wd}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(c.Z,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};n(5813)},2349:function(e,r,n){var t=n(5893),o=n(8128),i=n(3631),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.sx,n=l(e,["sx"]);return(0,t.jsx)(o.Z,u({},n,{sx:u(a({color:c.s7},"&.".concat(i.Z.checked),{color:c.s7}),r)}))}},582:function(e,r,n){var t=n(1496),o=n(7720),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.d});r.Z=c},4690:function(e,r,n){var t=n(5893),o=n(7357),i=n(7294);function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l={columnSpacing:void 0,fullWidth:!1,growFirst:!1,row:!1,rowSpacing:void 0,lg:void 0,md:void 0,sm:void 0,spacing:"1em",xl:void 0,xs:"column"},s=function(e){var r=e.fullWidth,n=e.growFirst,c=e.lg,s=void 0===c?l.lg:c,f=e.md,d=void 0===f?l.md:f,p=e.row,b=e.sm,m=void 0===b?l.sm:b,y=e.spacing,v=void 0===y?l.spacing:y,g=e.sx,h=e.xl,O=void 0===h?l.xl:h,j=e.xs,x=void 0===j?l.xs:j,w=e.columnSpacing,P=void 0===w?v:w,S=e.rowSpacing,Z=void 0===S?v:S,I=u(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),k=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),A=(0,i.useMemo)((function(){return m||k}),[m,k]),C=(0,i.useMemo)((function(){return d||A}),[d,A]),E=(0,i.useMemo)((function(){return s||C}),[s,C]),M=(0,i.useMemo)((function(){return O||E}),[O,E]),T=(0,i.useMemo)((function(){return{column:{alignItems:"normal",marginLeft:0,marginTop:P},row:{alignItems:"center",marginLeft:Z,marginTop:0}}}),[P,Z]),D=(0,i.useMemo)((function(){return n?1:void 0}),[n]),R=(0,i.useMemo)((function(){return r?"100%":void 0}),[r]);return(0,t.jsx)(o.Z,a({},I,{sx:a({alignItems:{xs:T[k].alignItems,sm:T[A].alignItems,md:T[C].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:A,md:C,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[A].marginLeft,md:T[C].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[A].marginTop,md:T[C].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=l,r.Z=s},1706:function(e,r,n){n.d(r,{Z:function(){return P}});var t=n(2428),o=n(5537),i=n(6761),c=n(1797),a=n(6059),u=n(1370),l=n(2186),s=n(5697),f=n(1496),d=n(4799),p=n(7021),b=n(7294),m=n(7169);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,f.ZP)(d.Z)(y({borderRadius:m.n_,backgroundColor:m.s7,color:m.E5,"&:hover":{backgroundColor:"".concat(m.s7,"F0")}},"&.".concat(p.Z.disabled),{backgroundColor:m.rr})),h=(0,f.ZP)(g)({backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}}),O=(0,f.ZP)(d.Z)({color:m.s7}),j={add:{none:{iconType:t.Z}},close:{none:{iconType:o.Z}},delete:{none:{iconType:i.Z}},edit:{false:{iconType:c.Z},true:{iconType:a.Z,iconProps:{sx:{color:m.Ej}}}},play:{none:{iconType:u.Z}},visibility:{false:{iconType:l.Z},true:{iconType:s.Z}}},x={contained:g,normal:O,redcontained:h},w=function(e){var r=e.children,n=e.defaultIcon,t=e.iconProps,o=e.mapPreset,i=e.mapToIcon,c=e.state,a=void 0===c?"none":c,u=e.variant,l=void 0===u?"contained":u,s=v(e,["children","defaultIcon","iconProps","mapPreset","mapToIcon","state","variant"]),f=(0,b.useMemo)((function(){return null!==i&&void 0!==i?i:o&&j[o]}),[i,o]),d=(0,b.useMemo)((function(){var e;if(f){var o,i=null!==(o=f[a])&&void 0!==o?o:{iconType:n},c=i.iconType,u=i.iconProps;c&&(e=(0,b.createElement)(c,function(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y="1.7em",v={iconProps:{},indicatorProps:{},indicatorTextProps:{},initialIndicatorValue:!1},g="24%",h="50%",O=".1rem",j="0rem",x=(0,i.forwardRef)((function(e,r){var n=e.icon,f=e.iconProps,d=(void 0===f?v.iconProps:f).sx,x=e.indicatorProps,w=(void 0===x?v.indicatorProps:x).sx,P=e.indicatorTextProps,S=(void 0===P?v.indicatorTextProps:P).sx,Z=e.initialIndicatorValue,I=void 0===Z?v.initialIndicatorValue:Z,k=e.sx,A=b(e.iconProps,["sx"]),C=b(e.indicatorProps,["sx"]),E=b(e.indicatorTextProps,["sx"]),M=(0,l.Z)().protect,T=m((0,s.Z)(I,M),2),D=T[0],R=T[1],L=(0,i.useCallback)((function(e,r,n){return(0,t.jsx)(a.Z,p({row:!0},C,{sx:p({backgroundColor:c.Ej,borderColor:c.E5,borderRadius:"50%",borderStyle:"solid",borderWidth:".1em",bottom:n,boxSizing:"content-box",height:0,justifyContent:"center",paddingBottom:r,position:"absolute",right:n,width:r},w),children:e}))}),[w,C]),W=(0,i.useCallback)((function(e){return(0,t.jsx)(u.Ac,p({},E,{sx:p({fontWeight:"500",paddingTop:"100%"},S),children:e>9?"".concat(9,"+"):e}))}),[S,E]),N=(0,i.useMemo)((function(){var e;if(D){var r,n=g,t=O;Number.isFinite(D)&&(r=W(D),n=h,t=j),e=L(r,n,t)}return e}),[L,W,D]);return(0,i.useImperativeHandle)(r,(function(){return{indicate:function(e){return R(e)}}}),[R]),(0,t.jsxs)(o.Z,{sx:p({height:y,width:y,position:"relative"},k),children:[(0,i.createElement)(n,p({},A,{sx:p({height:"100%",width:"100%"},d)})),N]})}));x.defaultProps=v,x.displayName="IconWithIndicator",r.Z=x},2444:function(e,r,n){var t=n(5893),o=n(8333),i=n(7294),c=n(2029),a=n(5172),u=n(4690),l=n(6125),s=n(1905),f=n(7750),d=n(2749);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function 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(u){a=!0,o=u}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,A=e.disableDelete,C=void 0!==A&&A,E=e.edit,M=void 0!==E&&E,T=e.flexBoxProps,D=e.getListCheckboxProps,R=e.getListItemCheckboxProps,L=e.header,W=e.headerSpacing,N=void 0===W?".3em":W,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,ue=e.allowAddItem,le=void 0===ue?x:ue,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 le?(0,t.jsx)(h.Z,{onClick:Y,size:"small",children:(0,t.jsx)(i.Z,{})}):void 0}),[le,Y]),Oe=(0,o.useMemo)((function(){return M&&pe?(0,t.jsx)(h.Z,{disabled:C,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}),[C,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)(u.Z,{})})}),[me,M,Q]),xe=(0,o.useMemo)((function(){var e;return M&&fe&&(e=n?(0,t.jsx)(l.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 L?"undefined":(e=L)&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return _&&L?(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:L}),(0,t.jsx)(v.Z,{sx:{flexGrow:1}})]}):L,Oe,je,he]}):L}),[he,xe,Oe,je,L,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,u.useMemo)((function(){return o?"calc(".concat(o," + ").concat(n,")"):n}),[n,o]),h=(0,u.useMemo)((function(){var e="number"===typeof y?"".concat(y,"px"):y;return"calc(".concat(e," + ").concat(n,")")}),[n,y]),O=(0,u.useMemo)((function(){return d({borderWidth:"1px",borderRadius:l.n_,borderStyle:"solid",borderColor:l.d,paddingBottom:0,position:"relative"},s)}),[s]);return(0,t.jsx)(a.Z,d({mb:b,ml:g,mt:h},v,{sx:O}))};function m(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function y(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=function(e){var r=e.sx,n=v(e,["sx"]),o=(0,u.useMemo)((function(){return y({position:"relative",zIndex:20},r)}),[r]);return(0,t.jsx)(a.Z,y({padding:".3em .7em"},n,{sx:o}))},h=function(e){var r=e.children;return(0,t.jsxs)(a.Z,{sx:{position:"relative",whiteSpace:"pre-wrap"},children:[(0,t.jsx)(a.Z,{sx:{alignItems:"center",borderColor:l.d,borderRadius:l.n_,borderStyle:"solid",borderWidth:"1px",display:"flex",left:"-.3em",paddingBottom:".2em",paddingLeft:"1em",paddingRight:".7em",paddingTop:".4em",position:"absolute",top:"-.3em",width:"100%",zIndex:"10","& > :first-child":{flexGrow:1}},children:r}),(0,t.jsx)(a.Z,{sx:{display:"flex",paddingBottom:".4em",paddingRight:"1.7em",visibility:"hidden"},children:r})]})},O=n(2152),j=n(7750);function x(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var w="1.2em",P=function(e){var r=e.children,n=e.expandInitially,f=void 0!==n&&n,d=e.header,p=e.loading,m=void 0!==p&&p,y=e.panelProps,v=e.showHeaderSpinner,P=void 0!==v&&v,S=(0,u.useState)(f),Z=S[0],I=S[1],k=(0,u.useMemo)((function(){return Z?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})}),[Z]),A=(0,u.useMemo)((function(){return Z?"auto":".2em"}),[Z]),C=(0,u.useMemo)((function(){return"string"===typeof d?(0,t.jsx)(j.Ac,{children:d}):d}),[d]),E=(0,u.useMemo)((function(){return P&&!Z&&m?(0,t.jsx)(O.Z,{progressProps:{style:{height:w,width:w}}}):void 0}),[Z,m,P]),M=(0,u.useMemo)((function(){return Z&&m?(0,t.jsx)(O.Z,{sx:{margin:"1em 0"}}):(0,t.jsx)(g,{children:r})}),[r,Z,m]);return(0,t.jsxs)(b,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var C="Panel",E={paper:"".concat(C,"-paper"),square:"".concat(C,"-square"),topSquare:"".concat(C,"-topSquare"),bottomSquare:"".concat(C,"-bottomSquare")},M=(0,S.ZP)(a.Z)((function(){var e;return I(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:l.v9,height:"100%",opacity:.8,padding:"2.1em",position:"relative",width:"100%",zIndex:10}),I(e,"& .".concat(E.square),{content:'""',position:"absolute",width:"2.1em",height:"2.1em",border:"1px",borderColor:l.lD,borderWidth:"1px",borderRadius:l.n_,borderStyle:"solid",padding:0,margin:0}),I(e,"& .".concat(E.topSquare),{top:"-.3em",left:"-.3em"}),I(e,"& .".concat(E.bottomSquare),{bottom:"-.3em",right:"-.3em"}),e})),T={paperProps:{}},D=(0,t.jsx)(Z.Z,{styles:{"*::-webkit-scrollbar":{width:".6em"},"*::-webkit-scrollbar-track":{backgroundColor:l.v9},"*::-webkit-scrollbar-thumb":{backgroundColor:l.lD,outline:"1px solid transparent",borderRadius:l.n_}}}),R=function(e){var r=e.children,n=e.classes,o=e.className,i=e.paperProps,c=(void 0===i?T.paperProps:i).className,u=e.sx,l=A(e.paperProps,["className"]),s=A(e,["children","classes","className","paperProps","sx"]);return(0,t.jsxs)(M,k({classes:n,className:o,sx:u},s,{children:[D,(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.topSquare)}),(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.bottomSquare)}),(0,t.jsx)(a.Z,k({},l,{className:"".concat(E.paper," ").concat(c),children:r}))]}))};R.defaultProps=T;var L=R,W=(0,S.ZP)(a.Z)({alignItems:"center",display:"flex",flexDirection:"row",marginBottom:"1em",width:"100%","& > :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}})},2152:function(e,r,n){var t=n(5893),o=n(7357),i=n(2346),c=n(6489),a=n(7169);function u(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={progressProps:{}},d=function(e){var r=e.mt,n=void 0===r?"3em":r,d=e.progressProps,p=void 0===d?f.progressProps:d,b=e.sx,m=s(e,["mt","progressProps","sx"]);return(0,t.jsx)(o.Z,l({},m,{sx:l(u({alignItems:"center",display:"flex",justifyContent:"center",marginTop:n},"& .".concat(i.Z.root),{color:a.lD}),b),children:(0,t.jsx)(c.Z,l({},p,{variant:"indeterminate"}))}))};d.defaultProps=f,r.Z=d},7750:function(e,r,n){n.d(r,{Ac:function(){return b},z:function(){return O},Q0:function(){return I},$_:function(){return E},PJ:function(){return N},KI:function(){return w}});var t=n(5893),o=n(7294),i=n(5861),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s="BodyText",f={edge:null,inheritColour:!1,inline:!1,inverted:!1,monospaced:!1,selected:!0,text:null},d={inheritColour:"".concat(s,"-inherit-colour"),inverted:"".concat(s,"-inverted"),monospaced:"".concat(s,"-monospaced"),selected:"".concat(s,"-selected"),unselected:"".concat(s,"-unselected")},p=function(e){var r,n=e.children,s=e.className,p=e.inheritColour,b=void 0===p?f.inheritColour:p,m=e.inline,y=void 0===m?f.inline:m,v=e.inverted,g=void 0===v?f.inverted:v,h=e.monospaced,O=void 0===h?f.monospaced:h,j=e.selected,x=void 0===j?f.selected:j,w=e.sx,P=e.text,S=void 0===P?f.text:P,Z=l(e,["children","className","inheritColour","inline","inverted","monospaced","selected","sx","text"]),I=(0,o.useMemo)((function(){return y?"inline":void 0}),[y]),k=(0,o.useMemo)((function(){return function(e){var r=e.isInheritColour,n=e.isInvert,t=e.isMonospace,o=e.isSelect,i=[];return r?i.push(d.inheritColour):n?i.push(d.inverted):o?i.push(d.selected):i.push(d.unselected),t&&i.push(d.monospaced),i.join(" ")}({isInheritColour:b,isInvert:g,isMonospace:O,isSelect:x})}),[b,g,O,x]),A=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,u({className:"".concat(k," ").concat(s),variant:"subtitle1"},Z,{sx:u((r={display:I},a(r,"&.".concat(d.inverted),{color:c.E5}),a(r,"&.".concat(d.monospaced),{fontFamily:"Source Code Pro",fontWeight:400}),a(r,"&.".concat(d.selected),{color:c.lD}),a(r,"&.".concat(d.unselected),{color:c.UZ}),r),w),children:A}))};p.defaultProps=f;var b=p,m=n(1496);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,m.ZP)(i.Z)({color:c.lD}),h=function(e){var r=e.children,n=e.text,i=v(e,["children","text"]),c=(0,o.useMemo)((function(){return null!==r&&void 0!==r?r:n}),[r,n]);return(0,t.jsx)(g,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var I=function(e){var r=e.edge,n=e.sx,i=Z(e,["edge","sx"]),c=(0,o.useMemo)((function(){return"start"===r?0:void 0}),[r]),a=(0,o.useMemo)((function(){return"end"===r?0:void 0}),[r]),u=(0,o.useMemo)((function(){return S({display:"inline",padding:".1rem .3rem",paddingLeft:c,paddingRight:a},n)}),[c,a,n]);return(0,t.jsx)(w,S({monospaced:!0,sx:u},i))};function k(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function A(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(e){var r=e.sx,n=C(e,["sx"]);return(0,t.jsx)(w,A({monospaced:!0,sx:A({alignItems:"center",display:"flex",height:"100%"},r)},n))},M=n(2992),T=n(4690),D=n(1706);function R(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function L(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n1?n-1:0),o=1;oe.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},n=r.refreshInterval,i=void 0===n?5e3:n,c=r.onSuccess,a=(0,t.ZP)(e,o.Z,{refreshInterval:i,onSuccess:c}),u=a.data,l=a.error;return{data:u,isLoading:!l&&!u,error:l}}},1770:function(e,r){r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.onRequestError,t=void 0===n?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:n,o=r.onResponseErrorAppend,i=r.onSetupError,c=void 0===i?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:i,a=r.onResponseError,u=void 0===a?function(e){var r,n,t=e.status,i=e.statusText;500===t?r={children:"The API encountered a problem: ".concat(t," (").concat(i,")! Please check its systemd service logs."),type:"error"}:r=null!==(n=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==n?n:{children:"API responded with ".concat(t," (").concat(i,")."),type:"warning"};return r}:a,l=e.request,s=e.response,f=e.message;return s?u(s):l?t(l):c(f)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/638-13a283c3a7da370b.js b/striker-ui/out/_next/static/chunks/638-13a283c3a7da370b.js new file mode 100644 index 00000000..d6db4970 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/638-13a283c3a7da370b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[638],{4685:function(t,e,n){"use strict";var i=n(7892),r=n(5893);e.Z=(0,i.Z)((0,r.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert")},2852:function(t,e,n){"use strict";var i=n(3366),r=n(7462),o=n(7294),a=n(6010),c=n(7192),l=n(1796),u=n(8216),s=n(1964),b=n(3616),d=n(1496),p=n(9632),h=n(5893);const v=["className","color","edge","size","sx"],f=(0,d.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${(0,u.Z)(n.edge)}`],e[`size${(0,u.Z)(n.size)}`]]}})((({ownerState:t})=>(0,r.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"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,[`& .${p.Z.thumb}`]:{width:16,height:16},[`& .${p.Z.switchBase}`]:{padding:4,[`&.${p.Z.checked}`]:{transform:"translateX(16px)"}}}))),m=(0,d.ZP)(s.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${p.Z.input}`]:e.input},"default"!==n.color&&e[`color${(0,u.Z)(n.color)}`]]}})((({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300],transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${p.Z.checked}`]:{transform:"translateX(20px)"},[`&.${p.Z.disabled}`]:{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},[`&.${p.Z.checked} + .${p.Z.track}`]:{opacity:.5},[`&.${p.Z.disabled} + .${p.Z.track}`]:{opacity:"light"===t.palette.mode?.12:.2},[`& .${p.Z.input}`]:{left:"-100%",width:"300%"}})),(({theme:t,ownerState:e})=>(0,r.Z)({"&:hover":{backgroundColor:(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==e.color&&{[`&.${p.Z.checked}`]:{color:t.palette[e.color].main,"&:hover":{backgroundColor:(0,l.Fq)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${p.Z.disabled}`]:{color:"light"===t.palette.mode?(0,l.$n)(t.palette[e.color].main,.62):(0,l._j)(t.palette[e.color].main,.55)}},[`&.${p.Z.checked} + .${p.Z.track}`]:{backgroundColor:t.palette[e.color].main}}))),g=(0,d.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})((({theme:t})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:"light"===t.palette.mode?t.palette.common.black:t.palette.common.white,opacity:"light"===t.palette.mode?.38:.3}))),y=(0,d.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})((({theme:t})=>({boxShadow:t.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Z=o.forwardRef((function(t,e){const n=(0,b.Z)({props:t,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:d="medium",sx:Z}=n,w=(0,i.Z)(n,v),B=(0,r.Z)({},n,{color:l,edge:s,size:d}),k=(t=>{const{classes:e,edge:n,size:i,color:o,checked:a,disabled:l}=t,s={root:["root",n&&`edge${(0,u.Z)(n)}`,`size${(0,u.Z)(i)}`],switchBase:["switchBase",`color${(0,u.Z)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=(0,c.Z)(s,p.H,e);return(0,r.Z)({},e,b)})(B),x=(0,h.jsx)(y,{className:k.thumb,ownerState:B});return(0,h.jsxs)(f,{className:(0,a.Z)(k.root,o),sx:Z,ownerState:B,children:[(0,h.jsx)(m,(0,r.Z)({type:"checkbox",icon:x,checkedIcon:x,ref:e,ownerState:B},w,{classes:(0,r.Z)({},k,{root:k.switchBase})})),(0,h.jsx)(g,{className:k.track,ownerState:B})]})}));e.Z=Z},4490:function(t,e,n){"use strict";n.d(e,{_d:function(){return m},gO:function(){return f}});var i=function(t,e,n){return Math.max(e,Math.min(t,n))},r={"b-B":8n,"b-kB":8000n,"b-MB":8000000n,"b-GB":8000000000n,"b-TB":8000000000000n,"b-PB":8000000000000000n,"b-EB":8000000000000000000n,"b-ZB":8000000000000000000000n,"b-YB":8000000000000000000000000n,"b-KiB":8192n,"b-MiB":8388608n,"b-GiB":8589934592n,"b-TiB":8796093022208n,"b-PiB":9007199254740992n,"b-EiB":9223372036854775808n,"b-ZiB":9444732965739290427392n,"b-YiB":9671406556917033397649408n,"b-b":1n,"b-kbit":1000n,"b-Mbit":1000000n,"b-Gbit":1000000000n,"b-Tbit":1000000000000n,"b-Pbit":1000000000000000n,"b-Ebit":1000000000000000000n,"b-Zbit":1000000000000000000000n,"b-Ybit":1000000000000000000000000n,"b-Kibit":1024n,"b-Mibit":1048576n,"b-Gibit":1073741824n,"b-Tibit":1099511627776n,"b-Pibit":1125899906842624n,"b-Eibit":1152921504606846976n,"b-Zibit":1180591620717411303424n,"b-Yibit":1208925819614629174706176n},o=["byte","ibyte","bit","ibit"],a=["B","kB","MB","GB","TB","PB","EB","ZB","YB","B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB","b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit","b","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],c=function(t){return BigInt(Math.pow(10,t))},l=function(t,e){var n=t.precision,i=t.value,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.isReverse;if("b"===e)return{precision:n,value:i};var l="b-".concat(e),u=r[l];if(a)return{precision:n,value:i*u};var s=String(u).length,b=c(s),d=i*b/u;return{precision:n+s,value:d}},u=function(t,e,n,i,r,o,a){var c=o.indexOf(n),l=e;c<0&&(c=function(t,e){var n="i"===t[1],i=/B$/.test(t),r="".concat(n?"i":"").concat(i?"byte":"bit"),o=e.findIndex((function(t){return t===r}));return{section:r,index:o}}(e,o).index);for(var u=c*a,s=u+a;u=i["b-".concat(b)]?l=b:u=s}return l};function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function b(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},r=i.bigintFormatOptions,o=i.numberFormatOptions,a=i.locale,l=c(e),u=n/l,s=n%l,d="0.",h=p(d,2),v=h[0],f=h[1],m=u.toString(),g=s.toString();if(a){var y="string"===typeof a?a:void 0,Z=.1.toLocaleString(y,o),w=p(Z,2);v=w[0],f=w[1],m=u.toLocaleString(y,r),g=s.toLocaleString(y,b(b({},r),{},{useGrouping:!1}))}var B=m;return e>0&&(B+="".concat(f).concat(g.padStart(e,v))),B},f=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fromUnit,o=void 0===r?"B":r,a=n.locale,c=n.precision,u=n.toUnit;try{e=Z(t)}catch(x){return}var s=w(c),b=s.max,d=s.min,p=y(o,"B"),h=p.unit;e=l(e,h,{isReverse:!0});var f=B(e,h,{toUnit:u});e=l(e,f),e=g(e,{toPrecision:i(e.precision,d,b)}),e=k(e,d);var m=v(e,{locale:a});return{value:m,unit:f}},m=function(){var t=f.apply(void 0,arguments);return t?"".concat(t.value," ").concat(t.unit):t},g=function(t){var e=t.precision,n=t.value,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.toPrecision,o=void 0===r?0:r,a={precision:o,value:n};if(o>e)a.value*=c(o-e);else if(o4&&(a.value+=1n)}return a},y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,i=n.indexOf(t);return i<0?{unit:e,unitIndex:0}:{unit:n[i],unitIndex:i}},Z=function(t){var e,n,i=String(t).split(/\D/,2),r=null!==(e=null===(n=i[1])||void 0===n?void 0:n.length)&&void 0!==e?e:0,o=i.join("");if(0===o.length)throw Error("Value is blank.");return{value:BigInt(o),precision:r}},w=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"===typeof n?{max:n,min:n}:{max:null!==(t=n.max)&&void 0!==t?t:2,min:null!==(e=n.min)&&void 0!==e?e:0}},B=function(t,e){var n=t.precision,i=t.value,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=l.conversionTable,b=void 0===s?r:s,d=l.toUnit,p=l.units,h=void 0===p?a:p,v=l.unitSections,f=void 0===v?o:v,m=l.unitSectionLength,g=void 0===m?9:m,y=h.indexOf(d);return y>=0?h[y]:u(i/c(n),e,d,b,h,f,g)},k=function(t,e){for(var n=t.precision,i={precision:n,value:t.value},r=n-e,o=!0,a=1;o&&a<=r;a+=1){0n===i.value%10n?(i.value/=10n,i.precision-=1):o=!1}return i}},1163:function(t,e,n){t.exports=n(387)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/707-445cd83859b24a36.js b/striker-ui/out/_next/static/chunks/707-705fb5e735d81042.js similarity index 99% rename from striker-ui/out/_next/static/chunks/707-445cd83859b24a36.js rename to striker-ui/out/_next/static/chunks/707-705fb5e735d81042.js index f413a359..c91a1b7a 100644 --- a/striker-ui/out/_next/static/chunks/707-445cd83859b24a36.js +++ b/striker-ui/out/_next/static/chunks/707-705fb5e735d81042.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{4594:function(e,n,t){var r=t(5893),i=t(6514),o=t(5113),a=t(4656),s=t(482),l=t(2994),u=t(7357),c=t(9890),d=t(7169),p=t(1363),f=t(6284);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var g=function(e){return(0,r.jsx)(i.Z,{in:!0,children:(0,r.jsx)(o.Z,m({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,i=e.label,o=e.messageBoxProps,h=e.renderInput,b=e.sx,y=x(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),j=m({paper:{sx:{backgroundColor:d.lD}}},n),U=null!==h&&void 0!==h?h:function(e){var n=e.fullWidth,o=e.InputProps,a=e.InputLabelProps,s=e.inputProps,l={formControlProps:{fullWidth:n,ref:o.ref},inputLabelProps:a,inputProps:{className:o.className,endAdornment:o.endAdornment,inputProps:s,startAdornment:o.startAdornment},label:i};return null===t||void 0===t||t.call(null,l,e),(0,r.jsx)(f.Z,m({},l))},S=m(v({},"& .".concat(a.Z.root," .").concat(s.Z.endAdornment),v({right:"7px"},"& .".concat(l.Z.root),{color:d.s7})),b);return(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(c.Z,m({PaperComponent:g},y,{componentsProps:j,renderInput:U,sx:S})),(0,r.jsx)(p.Z,m({},o))]})}},8750:function(e,n,t){t.d(n,{Z:function(){return F}});var r=t(5893),i=t(1113),o=t(1496),a=t(2293),s=t(7357),l=t(2992),u=t(4799),c=t(7294),d=t(7169),p=t(4433),f=t(9029),v=t(7533),m=t(8462),x=t(7212),g=t(8619),h=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"},y=t(4390),j=t(582),U=t(4690),S=t(1770),I=t(7750),P=t(1883);function D(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){var r=t(5893),i=t(2429),o=t(9309),a=t(7169);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"}},"&:hover\n .".concat(y.Z.root,"\n .").concat(j.Z.root,"\n .").concat(j.Z.notchedOutline),{borderColor:d.s7}),children:[(0,r.jsx)(b.Z,P({id:n,label:t},o)),(0,r.jsx)(S.Z,P({formControlProps:{fullWidth:!1,sx:{minWidth:"min-content"}},id:"".concat(n,"-nested-select"),selectItems:u},p))]}),(0,r.jsx)(U.Z,P({},l))]})};O.defaultProps=D;var Z=O,w=t(3679),M=t(2152),C=t(7987),k=t(7750);function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function L(e,n){return G(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(e,n)||V(e,n)||T()}function E(e){return G(e)||z(e)||V(e,i)||T()}function R(e){return function(e){if(Array.isArray(e))return A(e)}(e)||z(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,n){if(e){if("string"===typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,n):void 0}}var W,q,Q=BigInt(0),_=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],H="GiB",Y=BigInt(65536),J=BigInt(104857600),K={backgroundColor:d.Ej,color:d.lD,"&:hover":{backgroundColor:d.Ej}},X=function(e,n){var t=n.onButtonClick;return(0,r.jsx)(m.Z,{disabled:void 0===t,onClick:t,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(e)})},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.endAdornment,t=e.mainLabel,i=e.subLabel;return(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[t&&(0,r.jsx)(k.Ac,{inverted:!0,text:t}),i&&(0,r.jsx)(k.Ac,{inverted:!0,text:i})]}),n]})},ee=function(e,n,t,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=s.includeAnvilUUIDs,u=void 0===l?[]:l,c=s.includeFileUUIDs,d=void 0===c?[]:c,p=s.includeStorageGroupUUIDs,f=void 0===p?[]:p,v=function(){return!0},m=function(){return!0},x=function(){return!0};u.length>0&&(v=function(e){return u.includes(e)}),d.length>0&&(m=function(e){return d.includes(e)}),f.length>0&&(x=function(e){return f.includes(e)});var g={},h=o.reduce((function(e,n,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q;return e.all+=o,""===n||(void 0===e[n]&&(e[n]=Q),e[n]+=o),e}),{all:Q}),b=e.reduce((function(e,s){var l=s.anvilUUID;if(v(l)){var u,c=s.anvilTotalCPUCores,d=s.anvilTotalAvailableMemory,p=s.files,f=s.fileUUIDs,b=s.storageGroups,y=[],j=Q,U=Q;if(b.forEach((function(e){var n=e.storageGroupUUID,t=e.storageGroupFree;x(n)&&(y.push(n),U+=t,t>j&&(j=t))})),[function(){return b.length>0},function(){return t<=c},function(){return r<=d},function(){return o.every((function(e,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q,a=!0,s=o<=j;return""!==e&&(a=y.includes(e),s=o<=n[e].storageGroupFree),a&&s}))},function(){return Object.entries(h).every((function(e){var t=L(e,2),r=t[0],i=t[1];return"all"===r?i<=U:i<=n[r].storageGroupFree}))},function(){return a.every((function(e){return""===e||f.includes(e)}))}].every((function(e){return e()})))e.anvils.push(s),e.anvilUUIDs.push(l),e.maxCPUCores=Math.max(c,e.maxCPUCores),d>e.maxMemory&&(e.maxMemory=d),p.forEach((function(e){var n=e.fileUUID;m(n)&&(g[n]=!0)})),(u=e.storageGroupUUIDs).push.apply(u,R(y)),e.maxVirtualDiskSizes.fill(j)}return e}),{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:Q,maxVirtualDiskSizes:o.map((function(){return Q})),storageGroupUUIDs:[]});return b.fileUUIDs=Object.keys(g),o.forEach((function(e,t){""!==e&&(b.maxVirtualDiskSizes[t]=n[e].storageGroupFree)})),b},ne=function(e){return e.filter((function(e){return""!==e}))},te=function(e){return{fromUnit:"B",onSuccess:{string:e},precision:0,toUnit:"ibyte"}};(0,x.Bh)(Y,te((function(e,n){W="".concat(e," ").concat(n)}))),(0,x.Bh)(J,te((function(e,n){q="".concat(e," ").concat(n)})));var re=function(e){var n=e.dialogProps.open,t=e.onClose,i=(0,o.useState)([]),y=i[0],j=i[1],U=(0,o.useState)({}),I=U[0],P=U[1],D=(0,o.useState)({}),O=D[0],A=D[1],G=(0,o.useState)({}),z=G[0],T=G[1],V=(0,o.useState)({}),te=V[0],re=V[1],ie=(0,o.useState)([]),oe=ie[0],ae=ie[1],se=(0,o.useState)([]),le=se[0],ue=se[1],ce=(0,o.useState)([]),de=ce[0],pe=ce[1],fe=(0,o.useState)([]),ve=fe[0],me=fe[1],xe=(0,o.useState)(""),ge=xe[0],he=xe[1],be=(0,o.useState)(),ye=be[0],je=be[1],Ue=(0,o.useState)(1),Se=Ue[0],Ie=Ue[1],Pe=(0,o.useState)(0),De=Pe[0],Oe=Pe[1],Ze=(0,o.useState)(),we=Ze[0],Me=Ze[1],Ce=(0,o.useState)(Q),ke=Ce[0],Ae=Ce[1],Ge=(0,o.useState)(Q),Be=Ge[0],ze=Ge[1],Te=(0,o.useState)(),Fe=Te[0],Ne=Te[1],Le=(0,o.useState)("0"),Ee=Le[0],Re=Le[1],Ve=(0,o.useState)(""),We=Ve[0],qe=Ve[1],Qe=(0,o.useState)(H),_e=Qe[0],He=Qe[1],Ye=(0,o.useState)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.existingVirtualDisks,t=void 0===n?{stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]}:n,r=e.stateId,i=void 0===r?(0,c.Z)():r,o=e.inputMax,a=void 0===o?"0":o,s=e.inputSize,l=void 0===s?"":s,u=e.inputSizeMessage,d=void 0===u?void 0:u,p=e.inputStorageGroupUUID,f=void 0===p?"":p,v=e.inputStorageGroupUUIDMessage,m=void 0===v?void 0:v,x=e.inputUnit,g=void 0===x?H:x,h=e.max,b=void 0===h?Q:h,y=e.setVirtualDisks,j=e.size,U=void 0===j?Q:j,S=t.stateIds,I=t.inputMaxes,P=t.inputSizeMessages,D=t.inputSizes,O=t.inputStorageGroupUUIDMessages,Z=t.inputStorageGroupUUIDs,w=t.inputUnits,M=t.maxes,C=t.sizes;return S.push(i),I.push(a),P.push(d),D.push(l),O.push(m),Z.push(f),w.push(g),M.push(b),C.push(U),null===y||void 0===y||y.call(null,F({},t)),t}()),Je=Ye[0],Ke=Ye[1],Xe=(0,o.useState)(""),$e=Xe[0],en=Xe[1],nn=(0,o.useState)(),tn=nn[0],rn=nn[1],on=(0,o.useState)(""),an=on[0],sn=on[1],ln=(0,o.useState)()[0],un=(0,o.useState)(""),cn=un[0],dn=un[1],pn=(0,o.useState)(),fn=pn[0],vn=pn[1],mn=(0,o.useState)(null),xn=mn[0],gn=mn[1],hn=(0,o.useState)(),bn=hn[0],yn=hn[1],jn=(0,o.useState)([]),Un=jn[0],Sn=jn[1],In=(0,o.useState)([]),Pn=In[0],Dn=In[1],On=(0,o.useState)([]),Zn=On[0],wn=On[1],Mn=(0,o.useState)(!1),Cn=Mn[0],kn=Mn[1],An=(0,o.useState)(!1),Gn=An[0],Bn=An[1],zn=(0,o.useState)(!1),Tn=zn[0],Fn=zn[1],Nn=(0,o.useState)(0),Ln=Nn[0],En=Nn[1],Rn=(0,o.useMemo)((function(){for(var e=[],n=1;n<=De;n+=1)e.push(n);return e}),[De]),Vn={serverName:{defaults:{onSuccess:function(){je(void 0)},value:ge},isRequired:!0,tests:[{onFailure:function(){je({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:function(e){var n=e.value.length;return n>=1&&n<=16}},{onFailure:function(){je({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:function(e){var n=e.value;return/^[a-zA-Z0-9_-]+$/.test(n)}},{onFailure:function(){je({text:"This server name already exists, please choose another name.",type:"warning"})},test:function(e){var n=e.value;return void 0===z[n]}}]},cpuCores:{defaults:{max:De,min:1,onSuccess:function(){Me(void 0)},value:Se},isRequired:!0,tests:[{onFailure:function(){Me({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Me({text:"The number of CPU cores is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},memory:{defaults:{displayMax:"".concat(Ee," ").concat(_e),displayMin:W,max:Be,min:Y,onSuccess:function(){Ne(void 0)},value:ke},isRequired:!0,tests:[{onFailure:function(){Ne({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Ne({text:"Memory is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},installISO:{defaults:{onSuccess:function(){rn(void 0)},value:$e},isRequired:!0,tests:[{test:C.HJ}]},anvil:{defaults:{onSuccess:function(){vn(void 0)},value:cn},isRequired:!0,tests:[{test:C.HJ}]},optimizeForOS:{defaults:{onSuccess:function(){yn(void 0)},value:null===xn||void 0===xn?void 0:xn.key},isRequired:!0,tests:[{test:C.HJ}]}};Je.inputSizeMessages.forEach((function(e,n){Vn["vd".concat(n,"Size")]={defaults:{displayMax:"".concat(Je.inputMaxes[n]," ").concat(Je.inputUnits[n]),displayMin:q,max:Je.maxes[n],min:J,onSuccess:function(){Je.inputSizeMessages[n]=void 0},value:Je.sizes[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{onFailure:function(){Je.inputSizeMessages[n]={text:"Non available.",type:"warning"}},test:C.X7},{onFailure:function(e){var t=e.displayMax,r=e.displayMin;Je.inputSizeMessages[n]={text:"Virtual disk ".concat(n," size is expected to be between ").concat(r," and ").concat(t,"."),type:"warning"}},test:C.SQ}]},Vn["vd".concat(n,"StorageGroup")]={defaults:{onSuccess:function(){Je.inputStorageGroupUUIDMessages[n]=void 0},value:Je.inputStorageGroupUUIDs[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{test:C.HJ}]}}));var Wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.allAnvils,t=void 0===n?y:n,r=e.cpuCores,i=void 0===r?Se:r,o=e.fileUUIDs,a=void 0===o?[$e,an]:o,s=e.includeAnvilUUIDs,l=void 0===s?ne([cn]):s,u=e.includeFileUUIDs,c=e.includeStorageGroupUUIDs,d=e.inputMemoryUnit,p=void 0===d?_e:d,f=e.memory,v=void 0===f?ke:f,m=e.storageGroupUUIDMapToData,g=void 0===m?te:m,h=e.virtualDisks,b=void 0===h?Je:h,j=ee(t,g,i,v,b.sizes,b.inputStorageGroupUUIDs,a,{includeAnvilUUIDs:l,includeFileUUIDs:u,includeStorageGroupUUIDs:c}),U=j.anvilUUIDs,S=j.fileUUIDs,I=j.maxCPUCores,P=j.maxMemory,D=j.maxVirtualDiskSizes,O=j.storageGroupUUIDs;Oe(I),ze(P);var Z=[];b.maxes=D,b.maxes.forEach((function(e,n){(0,x.Bh)(e,{fromUnit:"B",onSuccess:{string:function(e,t){b.inputMaxes[n]=e,Z[n]="".concat(e," ").concat(t)}},toUnit:b.inputUnits[n]})})),Ke(F({},b)),Sn(U),Dn(S),wn(O);var w="";return(0,x.Bh)(P,{fromUnit:"B",onSuccess:{string:function(e,n){Re(e),w="".concat(e," ").concat(n)}},toUnit:p}),{formattedMaxMemory:w,formattedMaxVDSizes:Z,maxCPUCores:I,maxMemory:P,maxVirtualDiskSizes:D}},qn=(0,o.useCallback)(Wn,[]),Qn=function(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.cmValue,t=void 0===n?Q:n,r=e.cmUnit,i=void 0===r?_e:r;Ae(t);var o=Wn({inputMemoryUnit:i,memory:t}),a=o.formattedMaxMemory,s=o.maxMemory;Qn({inputs:{memory:{displayMax:a,max:s,value:t}}})},Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.value,t=void 0===n?We:n,r=e.unit,i=void 0===r?_e:r;t!==We&&qe(t),i!==_e&&He(i),(0,x.KY)(t,i,(function(e){return _n({cmValue:e,cmUnit:i})}),(function(){return _n({cmUnit:i})}))},Yn=function(e){en(e),Wn({fileUUIDs:[e,an]})},Jn=function(e){sn(e),Wn({fileUUIDs:[$e,e]})},Kn=function(e){var n=ne([e]);dn(e),Wn({includeAnvilUUIDs:n})};return(0,o.useEffect)((function(){p.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then((function(e){var n=e.data,t=function(e){var n={},t=e.reduce((function(e,t){var i=t.anvilUUID,o=t.anvilName,s=t.anvilTotalMemory,l=t.anvilTotalAllocatedMemory,u=t.anvilTotalAvailableMemory,c=t.hosts,d=t.servers,p=t.storageGroups,f=t.files,v=p.reduce((function(n,t){var a=F({},t,{anvilUUID:i,anvilName:o,storageGroupSize:BigInt(t.storageGroupSize),storageGroupFree:BigInt(t.storageGroupFree),humanizedStorageGroupFree:""});return(0,x.Bh)(t.storageGroupFree,{fromUnit:"B",onSuccess:{string:function(e,n){a.humanizedStorageGroupFree="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),n.anvilStorageGroupUUIDs.push(t.storageGroupUUID),n.anvilStorageGroups.push(a),e.storageGroups.push(a),e.storageGroupSelectItems.push({displayValue:$({endAdornment:(0,r.jsx)(k.Ac,{inverted:!0,text:"~".concat(a.humanizedStorageGroupFree," free")}),mainLabel:t.storageGroupName,subLabel:o}),value:t.storageGroupUUID}),e.storageGroupUUIDMapToData[t.storageGroupUUID]=a,n}),{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=v.anvilStorageGroups,g=v.anvilStorageGroupUUIDs,h=[];f.forEach((function(e){var t=e.fileUUID;h.push(t),n[t]=e}));var b=F({},t,{anvilTotalMemory:BigInt(s),anvilTotalAllocatedMemory:BigInt(l),anvilTotalAvailableMemory:BigInt(u),humanizedAnvilTotalAvailableMemory:"",hosts:c.map((function(e){return F({},e,{hostMemory:BigInt(e.hostMemory)})})),servers:d.map((function(n){var t=n.serverMemory,r=n.serverName,i=F({},N(n,["serverMemory","serverName"]),{serverMemory:BigInt(t),serverName:r});return e.serverNameMapToData[r]=i,i})),storageGroupUUIDs:g,storageGroups:m,fileUUIDs:h});return(0,x.Bh)(u,{fromUnit:"B",onSuccess:{string:function(e,n){b.humanizedAnvilTotalAvailableMemory="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),e.anvils.push(b),e.anvilSelectItems.push({displayValue:$({endAdornment:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,r.jsx)(k.Ac,{inverted:!0,text:"CPU: ".concat(b.anvilTotalCPUCores," cores")}),(0,r.jsx)(k.Ac,{inverted:!0,text:"Memory: ~".concat(b.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:b.anvilName,subLabel:b.anvilDescription}),value:i}),e.anvilUUIDMapToData[i]=b,e}),{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(n).forEach((function(e){t.files.push(e),t.fileSelectItems.push({displayValue:e.fileName,value:e.fileUUID}),t.fileUUIDMapToData[e.fileUUID]=e})),t}(n.anvils),i=t.anvils,o=t.anvilSelectItems,s=t.anvilUUIDMapToData,l=t.fileSelectItems,u=t.fileUUIDMapToData,c=t.serverNameMapToData,d=t.storageGroupSelectItems,p=t.storageGroupUUIDMapToData;j(i),P(s),A(u),T(c),re(p),ae(o),ue(l),me(d);var f={allAnvils:i,storageGroupUUIDMapToData:p};if(1===o.length){var v=o[0].value;dn(v),f.includeAnvilUUIDs=[v]}if(1===l.length){var m=l[0].value;en(m),f.fileUUIDs=[m,""]}if(1===d.length){var g=d[0].value;Ke((function(e){var n=F({},e);return n.inputStorageGroupUUIDs[0]=g,f.virtualDisks=n,n}))}qn(f),pe(Object.entries(n.oses).map((function(e){var n=L(e,2);return{key:n[0],label:n[1]}}))),kn(!0)}))}),[qn]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{fullWidth:!0,maxWidth:"sm",open:n,PaperComponent:w.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,r.jsxs)(w.V9,{children:[(0,r.jsx)(k.z,{text:"Provision a Server"}),(0,r.jsx)(g.Z,{onClick:t,sx:{backgroundColor:d.hM,color:d.lD,"&:hover":{backgroundColor:d.hM}},children:(0,r.jsx)(u.Z,{})})]}),Cn?(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(b.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:function(e){var n=e.target.value;he(n),Qn({inputs:{serverName:{value:n}}})},value:ge},inputLabelProps:{isNotifyRequired:0===ge.length},messageBoxProps:ye})}),(0,r.jsx)(f.Z,{id:"ps-cpu-cores",disableClearable:!0,extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=Se<=0},getOptionLabel:function(e){return String(e)},label:"CPU cores",messageBoxProps:we,noOptionsText:"No available number of cores.",onChange:function(e,n){if(n&&n!==Se){Ie(n);var t=Wn({cpuCores:n}).maxCPUCores;Qn({inputs:{cpuCores:{max:t,value:n}}})}},openOnFocus:!0,options:Rn,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-cpu-cores-".concat(n),children:n}))},value:Se}),(0,r.jsx)(Z,{id:"ps-memory",label:"Memory",messageBoxProps:Fe,inputWithLabelProps:{inputProps:{endAdornment:X("".concat(Ee," ").concat(_e),{onButtonClick:function(){qe(Ee),_n({cmValue:Be})}}),onChange:function(e){var n=e.target.value;Hn({value:n})},type:"number",value:We},inputLabelProps:{isNotifyRequired:ke===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;Hn({unit:n})},value:_e}}}),Je.stateIds.map((function(e,n){return function(e,n,t,i,o,s,l,u){var c=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return e[t][r]},d=function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;e[r][o]=i,t(F({},e))},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q;d("sizes",t);var r=s({virtualDisks:e}),i=r.formattedMaxVDSizes,o=r.maxVirtualDiskSizes;u({inputs:B({},"vd".concat(n,"Size"),{displayMax:"".concat(i[n]),max:o[n],value:t})})},f=function(e){var n=e.value,t=void 0===n?c("inputSizes"):n,r=e.unit,i=void 0===r?c("inputUnits"):r;t!==c("inputSizes")&&d("inputSizes",t),i!==c("inputUnits")&&d("inputUnits",i),(0,x.KY)(t,i,(function(e){return p(e)}),(function(){return p()}))},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c("inputStorageGroupUUIDs");n!==c("inputStorageGroupUUIDs")&&d("inputStorageGroupUUIDs",n),s({virtualDisks:e})};return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(Z,{id:"ps-virtual-disk-size-".concat(n),label:"Disk size",messageBoxProps:c("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:X("".concat(c("inputMaxes")," ").concat(c("inputUnits")),{onButtonClick:function(){d("inputSizes",c("inputMaxes")),p(c("maxes"))}}),onChange:function(e){var n=e.target.value;f({value:n})},type:"number",value:c("inputSizes")},inputLabelProps:{isNotifyRequired:c("sizes")===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;f({unit:n})},value:c("inputUnits")}}})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(S.Z,{id:"ps-storage-group-".concat(n),label:"Storage group",disableItem:function(e){return!(o.includes(e)&&c("sizes")<=l[e].storageGroupFree)},inputLabelProps:{isNotifyRequired:0===c("inputStorageGroupUUIDs").length},messageBoxProps:c("inputStorageGroupUUIDMessages"),selectItems:i,selectProps:{onChange:function(e){var n=e.target.value;v(n)},onClearIndicatorClick:function(){return v("")},renderValue:function(e){var n,t=null!==(n=l[e])&&void 0!==n?n:{},r=t.anvilName,i=void 0===r?"?":r,o=t.storageGroupName,a=void 0===o?"Unknown (".concat(e,")"):o;return"".concat(a," (").concat(i,")")},value:c("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(c("stateIds")))}(Je,n,Ke,ve,Zn,Wn,te,Qn)})),(0,r.jsx)(S.Z,{disableItem:function(e){return e===an},hideItem:function(e){return!Pn.includes(e)},id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===$e.length},label:"Install ISO",messageBoxProps:tn,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Yn(n)},onClearIndicatorClick:function(){return Yn("")},value:$e}}),(0,r.jsx)(S.Z,{disableItem:function(e){return e===$e},hideItem:function(e){return!Pn.includes(e)},id:"ps-driver-image",label:"Driver ISO",messageBoxProps:ln,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Jn(n)},onClearIndicatorClick:function(){return Jn("")},value:an}}),(0,r.jsx)(S.Z,{disableItem:function(e){return!Un.includes(e)},id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===cn.length},label:"Anvil node",messageBoxProps:fn,selectItems:oe,selectProps:{onChange:function(e){var n=e.target.value;Kn(n)},onClearIndicatorClick:function(){return Kn("")},renderValue:function(e){var n,t=(null!==(n=I[e])&&void 0!==n?n:{}).anvilName;return void 0===t?"Unknown ".concat(e):t},value:cn}}),(0,r.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=null===xn},isOptionEqualToValue:function(e,n){return e.key===n.key},label:"Optimize for OS",messageBoxProps:bn,noOptionsText:"No matching OS",onChange:function(e,n){gn(n)},openOnFocus:!0,options:de,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-optimize-for-os-".concat(n.key),children:[n.label," (",n.key,")"]}))},value:xn})]}):(0,r.jsx)(M.Z,{}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[Ln>0&&(0,r.jsx)(h.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),Tn?(0,r.jsx)(M.Z,{mt:0}):(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,r.jsx)(m.Z,{disabled:!Qn({isIgnoreOnCallbacks:!0}),onClick:function(){Bn(!0)},sx:K,children:"Provision"})})]})]}),Gn&&(0,r.jsx)(v.Z,{actionProceedText:"Provision",content:function(){var e=10;return(0,r.jsxs)(s.ZP,{container:!0,columns:e,direction:"column",children:[(0,r.jsx)(s.ZP,{item:!0,xs:e,children:(0,r.jsxs)(k.Ac,{children:["Server ",(0,r.jsx)(k.Q0,{text:ge})," will be created on anvil node"," ",(0,r.jsx)(k.Q0,{text:I[cn].anvilName})," ","with the following properties:"]})}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:Se})," ","core(s)"]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:De})," ","core(s) available"]})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsx)(k.Ac,{children:(0,r.jsxs)(k.Q0,{edge:"start",children:[We," ",_e]})})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[Ee," ",_e]})," ","available"]})})]}),Je.stateIds.map((function(n,t){var i=Je.inputMaxes[t],o=Je.inputSizes[t],a=Je.inputUnits[t],l=te[Je.inputStorageGroupUUIDs[t]].storageGroupName;return(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsxs)(k.Ac,{children:["Disk ",(0,r.jsx)(k.Q0,{text:t})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[o," ",a]})," ","on ",(0,r.jsx)(k.Q0,{children:l})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[i," ",a]})," ","available"]})})]},"ps-virtual-disk-".concat(n,"-summary"))})),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Install ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:O[$e].fileName})})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Driver ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:O[an]?(0,r.jsx)(k.Q0,{edge:"start",children:O[an].fileName}):"none"})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Optimize for OS"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:"".concat(null===xn||void 0===xn?void 0:xn.label)})})})]})]})}(),dialogProps:{open:Gn},onCancelAppend:function(){Bn(!1)},onProceedAppend:function(){var e={serverName:ge,cpuCores:Se,memory:ke.toString(),virtualDisks:Je.stateIds.map((function(e,n){return{storageSize:Je.sizes[n].toString(),storageGroupUUID:Je.inputStorageGroupUUIDs[n]}})),installISOFileUUID:$e,driverISOFileUUID:an,anvilUUID:cn,optimizeForOS:null===xn||void 0===xn?void 0:xn.key};Fn(!0),p.Z.post("/server",e).then((function(){Fn(!1),En(Ln+1)})),Bn(!1)},proceedButtonProps:{sx:K},titleText:"Provision ".concat(ge,"?")})]})}},2519:function(e,n,t){t.d(n,{Z:function(){return O}});var r=t(5893),i=t(5603),o=t(8128),a=t(3640),s=t(7294),l=t(1363),u=t(4427),c=t(9),d=t(192),p=t(5537),f=t(9558),v=t(6239),m=t(7021),x=t(1057),g=t(4799),h=t(3213),b=t(7169);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S=function(e){var n=e.onClearIndicatorClick,t=U(e,["onClearIndicatorClick"]),o=t.sx,a=t.value,l=U(t,["sx","value"]),u=(0,s.useMemo)((function(){var e;return j((y(e={},"& .".concat(i.Z.icon),{color:b.s7}),y(e,"& .".concat(f.Z.root),{marginRight:".8em"}),y(e,"& .".concat(v.Z.root),{color:b.s7,visibility:"hidden"}),y(e,"&:hover .".concat(f.Z.root," .").concat(v.Z.root,",\n &.").concat(m.Z.focused," .").concat(f.Z.root," .").concat(v.Z.root),{visibility:"visible"}),e),o)}),[o]),c=(0,s.useMemo)((function(){return String(a).length>0&&n&&(0,r.jsx)(x.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(p.Z,{fontSize:"small"})})})}),[n,a]);return(0,r.jsx)(h.Z,j({endAdornment:c,value:a},l,{sx:u}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var O=function(e){var n=e.id,t=e.label,p=e.selectItems,f=e.checkItem,v=e.disableItem,m=e.formControlProps,x=e.hideItem,g=e.inputLabelProps,h=void 0===g?{}:g,b=e.isReadOnly,y=void 0!==b&&b,j=e.messageBoxProps,U=void 0===j?{}:j,O=e.name,Z=e.onBlur,w=e.onChange,M=e.onFocus,C=e.required,k=e.selectProps,A=void 0===k?{}:k,G=A.multiple,B=A.sx,z=e.value,T=e.isCheckableItems,F=void 0===T?G:T,N=D(e.selectProps,["multiple","sx"]),L=(0,s.useMemo)((function(){return y?P(I({},"& .".concat(i.Z.icon),{visibility:"hidden"}),B):B}),[y,B]),E=(0,s.useCallback)((function(e){return F&&(0,r.jsx)(o.Z,{checked:null===f||void 0===f?void 0:f.call(null,e)})}),[f,F]),R=(0,s.useCallback)((function(e,t){return(0,r.jsxs)(u.Z,{disabled:null===v||void 0===v?void 0:v.call(null,e),sx:{display:(null===x||void 0===x?void 0:x.call(null,e))?"none":void 0},value:e,children:[E(e),t]},"".concat(n,"-").concat(e))}),[E,v,x,n]),V=(0,s.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),W=(0,s.useMemo)((function(){return(0,r.jsx)(c.Z,{id:n,label:t})}),[n,t]),q=(0,s.useMemo)((function(){return t&&(0,r.jsx)(d.Z,P({htmlFor:V,isNotifyRequired:C},h,{children:t}))}),[h,C,t,V]),Q=(0,s.useMemo)((function(){return p.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return R(t,void 0===r?t:r)}))}),[R,p]);return(0,r.jsxs)(a.Z,P({fullWidth:!0},m,{children:[q,(0,r.jsx)(S,P({id:V,input:W,multiple:G,name:O,onBlur:Z,onChange:w,onFocus:M,readOnly:y,value:z},N,{sx:L,children:Q})),(0,r.jsx)(l.Z,P({},U))]}))}},5737:function(e,n,t){t.d(n,{Bh:function(){return i},KY:function(){return o},MU:function(){return a}});var r=t(4490),i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fromUnit,i=n.onFailure,o=n.onSuccess,a=n.precision,s=n.toUnit,l=(0,r.gO)(e,{fromUnit:t,precision:a,toUnit:s});if(l){var u=l.value,c=l.unit;try{var d,p,f;null===o||void 0===o||null===(d=o.bigint)||void 0===d||d.call(null,BigInt(u),c),null===o||void 0===o||null===(p=o.number)||void 0===p||p.call(null,parseFloat(u),c),null===o||void 0===o||null===(f=o.string)||void 0===f||f.call(null,u,c)}catch(v){null===i||void 0===i||i.call(null,v,u,c)}}else null===i||void 0===i||i.call(null)},o=function(e,n,t,r){i(e,{fromUnit:n,onFailure:r,onSuccess:{bigint:t},precision:0,toUnit:"B"})},a=function(e){return(0,r._d)(e,{toUnit:"ibyte"})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{4594:function(e,n,t){var r=t(5893),i=t(6514),o=t(5113),a=t(4656),s=t(482),l=t(2994),u=t(7357),c=t(9890),d=t(7169),p=t(1363),f=t(6284);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var g=function(e){return(0,r.jsx)(i.Z,{in:!0,children:(0,r.jsx)(o.Z,m({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,i=e.label,o=e.messageBoxProps,h=e.renderInput,b=e.sx,y=x(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),j=m({paper:{sx:{backgroundColor:d.lD}}},n),U=null!==h&&void 0!==h?h:function(e){var n=e.fullWidth,o=e.InputProps,a=e.InputLabelProps,s=e.inputProps,l={formControlProps:{fullWidth:n,ref:o.ref},inputLabelProps:a,inputProps:{className:o.className,endAdornment:o.endAdornment,inputProps:s,startAdornment:o.startAdornment},label:i};return null===t||void 0===t||t.call(null,l,e),(0,r.jsx)(f.Z,m({},l))},S=m(v({},"& .".concat(a.Z.root," .").concat(s.Z.endAdornment),v({right:"7px"},"& .".concat(l.Z.root),{color:d.s7})),b);return(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(c.Z,m({PaperComponent:g},y,{componentsProps:j,renderInput:U,sx:S})),(0,r.jsx)(p.Z,m({},o))]})}},8750:function(e,n,t){t.d(n,{Z:function(){return F}});var r=t(5893),i=t(1113),o=t(1496),a=t(2293),s=t(7357),l=t(2992),u=t(4799),c=t(7294),d=t(7169),p=t(4433),f=t(9029),v=t(7533),m=t(8462),x=t(7212),g=t(8619),h=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"},y=t(4390),j=t(582),U=t(4690),S=t(1770),I=t(7750),P=t(1883);function D(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){var r=t(5893),i=t(2429),o=t(9309),a=t(7169);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"}},"&:hover\n .".concat(y.Z.root,"\n .").concat(j.Z.root,"\n .").concat(j.Z.notchedOutline),{borderColor:d.s7}),children:[(0,r.jsx)(b.Z,P({id:n,label:t},o)),(0,r.jsx)(S.Z,P({formControlProps:{fullWidth:!1,sx:{minWidth:"min-content"}},id:"".concat(n,"-nested-select"),selectItems:u},p))]}),(0,r.jsx)(U.Z,P({},l))]})};O.defaultProps=D;var Z=O,w=t(3679),M=t(2152),C=t(2027),k=t(7750);function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function L(e,n){return G(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(e,n)||V(e,n)||T()}function E(e){return G(e)||z(e)||V(e,i)||T()}function R(e){return function(e){if(Array.isArray(e))return A(e)}(e)||z(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,n){if(e){if("string"===typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,n):void 0}}var W,q,Q=BigInt(0),_=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],H="GiB",Y=BigInt(65536),J=BigInt(104857600),K={backgroundColor:d.Ej,color:d.lD,"&:hover":{backgroundColor:d.Ej}},X=function(e,n){var t=n.onButtonClick;return(0,r.jsx)(m.Z,{disabled:void 0===t,onClick:t,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(e)})},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.endAdornment,t=e.mainLabel,i=e.subLabel;return(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[t&&(0,r.jsx)(k.Ac,{inverted:!0,text:t}),i&&(0,r.jsx)(k.Ac,{inverted:!0,text:i})]}),n]})},ee=function(e,n,t,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=s.includeAnvilUUIDs,u=void 0===l?[]:l,c=s.includeFileUUIDs,d=void 0===c?[]:c,p=s.includeStorageGroupUUIDs,f=void 0===p?[]:p,v=function(){return!0},m=function(){return!0},x=function(){return!0};u.length>0&&(v=function(e){return u.includes(e)}),d.length>0&&(m=function(e){return d.includes(e)}),f.length>0&&(x=function(e){return f.includes(e)});var g={},h=o.reduce((function(e,n,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q;return e.all+=o,""===n||(void 0===e[n]&&(e[n]=Q),e[n]+=o),e}),{all:Q}),b=e.reduce((function(e,s){var l=s.anvilUUID;if(v(l)){var u,c=s.anvilTotalCPUCores,d=s.anvilTotalAvailableMemory,p=s.files,f=s.fileUUIDs,b=s.storageGroups,y=[],j=Q,U=Q;if(b.forEach((function(e){var n=e.storageGroupUUID,t=e.storageGroupFree;x(n)&&(y.push(n),U+=t,t>j&&(j=t))})),[function(){return b.length>0},function(){return t<=c},function(){return r<=d},function(){return o.every((function(e,t){var r,o=null!==(r=i[t])&&void 0!==r?r:Q,a=!0,s=o<=j;return""!==e&&(a=y.includes(e),s=o<=n[e].storageGroupFree),a&&s}))},function(){return Object.entries(h).every((function(e){var t=L(e,2),r=t[0],i=t[1];return"all"===r?i<=U:i<=n[r].storageGroupFree}))},function(){return a.every((function(e){return""===e||f.includes(e)}))}].every((function(e){return e()})))e.anvils.push(s),e.anvilUUIDs.push(l),e.maxCPUCores=Math.max(c,e.maxCPUCores),d>e.maxMemory&&(e.maxMemory=d),p.forEach((function(e){var n=e.fileUUID;m(n)&&(g[n]=!0)})),(u=e.storageGroupUUIDs).push.apply(u,R(y)),e.maxVirtualDiskSizes.fill(j)}return e}),{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:Q,maxVirtualDiskSizes:o.map((function(){return Q})),storageGroupUUIDs:[]});return b.fileUUIDs=Object.keys(g),o.forEach((function(e,t){""!==e&&(b.maxVirtualDiskSizes[t]=n[e].storageGroupFree)})),b},ne=function(e){return e.filter((function(e){return""!==e}))},te=function(e){return{fromUnit:"B",onSuccess:{string:e},precision:0,toUnit:"ibyte"}};(0,x.Bh)(Y,te((function(e,n){W="".concat(e," ").concat(n)}))),(0,x.Bh)(J,te((function(e,n){q="".concat(e," ").concat(n)})));var re=function(e){var n=e.dialogProps.open,t=e.onClose,i=(0,o.useState)([]),y=i[0],j=i[1],U=(0,o.useState)({}),I=U[0],P=U[1],D=(0,o.useState)({}),O=D[0],A=D[1],G=(0,o.useState)({}),z=G[0],T=G[1],V=(0,o.useState)({}),te=V[0],re=V[1],ie=(0,o.useState)([]),oe=ie[0],ae=ie[1],se=(0,o.useState)([]),le=se[0],ue=se[1],ce=(0,o.useState)([]),de=ce[0],pe=ce[1],fe=(0,o.useState)([]),ve=fe[0],me=fe[1],xe=(0,o.useState)(""),ge=xe[0],he=xe[1],be=(0,o.useState)(),ye=be[0],je=be[1],Ue=(0,o.useState)(1),Se=Ue[0],Ie=Ue[1],Pe=(0,o.useState)(0),De=Pe[0],Oe=Pe[1],Ze=(0,o.useState)(),we=Ze[0],Me=Ze[1],Ce=(0,o.useState)(Q),ke=Ce[0],Ae=Ce[1],Ge=(0,o.useState)(Q),Be=Ge[0],ze=Ge[1],Te=(0,o.useState)(),Fe=Te[0],Ne=Te[1],Le=(0,o.useState)("0"),Ee=Le[0],Re=Le[1],Ve=(0,o.useState)(""),We=Ve[0],qe=Ve[1],Qe=(0,o.useState)(H),_e=Qe[0],He=Qe[1],Ye=(0,o.useState)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.existingVirtualDisks,t=void 0===n?{stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]}:n,r=e.stateId,i=void 0===r?(0,c.Z)():r,o=e.inputMax,a=void 0===o?"0":o,s=e.inputSize,l=void 0===s?"":s,u=e.inputSizeMessage,d=void 0===u?void 0:u,p=e.inputStorageGroupUUID,f=void 0===p?"":p,v=e.inputStorageGroupUUIDMessage,m=void 0===v?void 0:v,x=e.inputUnit,g=void 0===x?H:x,h=e.max,b=void 0===h?Q:h,y=e.setVirtualDisks,j=e.size,U=void 0===j?Q:j,S=t.stateIds,I=t.inputMaxes,P=t.inputSizeMessages,D=t.inputSizes,O=t.inputStorageGroupUUIDMessages,Z=t.inputStorageGroupUUIDs,w=t.inputUnits,M=t.maxes,C=t.sizes;return S.push(i),I.push(a),P.push(d),D.push(l),O.push(m),Z.push(f),w.push(g),M.push(b),C.push(U),null===y||void 0===y||y.call(null,F({},t)),t}()),Je=Ye[0],Ke=Ye[1],Xe=(0,o.useState)(""),$e=Xe[0],en=Xe[1],nn=(0,o.useState)(),tn=nn[0],rn=nn[1],on=(0,o.useState)(""),an=on[0],sn=on[1],ln=(0,o.useState)()[0],un=(0,o.useState)(""),cn=un[0],dn=un[1],pn=(0,o.useState)(),fn=pn[0],vn=pn[1],mn=(0,o.useState)(null),xn=mn[0],gn=mn[1],hn=(0,o.useState)(),bn=hn[0],yn=hn[1],jn=(0,o.useState)([]),Un=jn[0],Sn=jn[1],In=(0,o.useState)([]),Pn=In[0],Dn=In[1],On=(0,o.useState)([]),Zn=On[0],wn=On[1],Mn=(0,o.useState)(!1),Cn=Mn[0],kn=Mn[1],An=(0,o.useState)(!1),Gn=An[0],Bn=An[1],zn=(0,o.useState)(!1),Tn=zn[0],Fn=zn[1],Nn=(0,o.useState)(0),Ln=Nn[0],En=Nn[1],Rn=(0,o.useMemo)((function(){for(var e=[],n=1;n<=De;n+=1)e.push(n);return e}),[De]),Vn={serverName:{defaults:{onSuccess:function(){je(void 0)},value:ge},isRequired:!0,tests:[{onFailure:function(){je({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:function(e){var n=e.value.length;return n>=1&&n<=16}},{onFailure:function(){je({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:function(e){var n=e.value;return/^[a-zA-Z0-9_-]+$/.test(n)}},{onFailure:function(){je({text:"This server name already exists, please choose another name.",type:"warning"})},test:function(e){var n=e.value;return void 0===z[n]}}]},cpuCores:{defaults:{max:De,min:1,onSuccess:function(){Me(void 0)},value:Se},isRequired:!0,tests:[{onFailure:function(){Me({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Me({text:"The number of CPU cores is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},memory:{defaults:{displayMax:"".concat(Ee," ").concat(_e),displayMin:W,max:Be,min:Y,onSuccess:function(){Ne(void 0)},value:ke},isRequired:!0,tests:[{onFailure:function(){Ne({text:"Non available.",type:"warning"})},test:C.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Ne({text:"Memory is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:C.SQ}]},installISO:{defaults:{onSuccess:function(){rn(void 0)},value:$e},isRequired:!0,tests:[{test:C.HJ}]},anvil:{defaults:{onSuccess:function(){vn(void 0)},value:cn},isRequired:!0,tests:[{test:C.HJ}]},optimizeForOS:{defaults:{onSuccess:function(){yn(void 0)},value:null===xn||void 0===xn?void 0:xn.key},isRequired:!0,tests:[{test:C.HJ}]}};Je.inputSizeMessages.forEach((function(e,n){Vn["vd".concat(n,"Size")]={defaults:{displayMax:"".concat(Je.inputMaxes[n]," ").concat(Je.inputUnits[n]),displayMin:q,max:Je.maxes[n],min:J,onSuccess:function(){Je.inputSizeMessages[n]=void 0},value:Je.sizes[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{onFailure:function(){Je.inputSizeMessages[n]={text:"Non available.",type:"warning"}},test:C.X7},{onFailure:function(e){var t=e.displayMax,r=e.displayMin;Je.inputSizeMessages[n]={text:"Virtual disk ".concat(n," size is expected to be between ").concat(r," and ").concat(t,"."),type:"warning"}},test:C.SQ}]},Vn["vd".concat(n,"StorageGroup")]={defaults:{onSuccess:function(){Je.inputStorageGroupUUIDMessages[n]=void 0},value:Je.inputStorageGroupUUIDs[n]},isRequired:!0,onFinishBatch:function(){Ke(F({},Je))},tests:[{test:C.HJ}]}}));var Wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.allAnvils,t=void 0===n?y:n,r=e.cpuCores,i=void 0===r?Se:r,o=e.fileUUIDs,a=void 0===o?[$e,an]:o,s=e.includeAnvilUUIDs,l=void 0===s?ne([cn]):s,u=e.includeFileUUIDs,c=e.includeStorageGroupUUIDs,d=e.inputMemoryUnit,p=void 0===d?_e:d,f=e.memory,v=void 0===f?ke:f,m=e.storageGroupUUIDMapToData,g=void 0===m?te:m,h=e.virtualDisks,b=void 0===h?Je:h,j=ee(t,g,i,v,b.sizes,b.inputStorageGroupUUIDs,a,{includeAnvilUUIDs:l,includeFileUUIDs:u,includeStorageGroupUUIDs:c}),U=j.anvilUUIDs,S=j.fileUUIDs,I=j.maxCPUCores,P=j.maxMemory,D=j.maxVirtualDiskSizes,O=j.storageGroupUUIDs;Oe(I),ze(P);var Z=[];b.maxes=D,b.maxes.forEach((function(e,n){(0,x.Bh)(e,{fromUnit:"B",onSuccess:{string:function(e,t){b.inputMaxes[n]=e,Z[n]="".concat(e," ").concat(t)}},toUnit:b.inputUnits[n]})})),Ke(F({},b)),Sn(U),Dn(S),wn(O);var w="";return(0,x.Bh)(P,{fromUnit:"B",onSuccess:{string:function(e,n){Re(e),w="".concat(e," ").concat(n)}},toUnit:p}),{formattedMaxMemory:w,formattedMaxVDSizes:Z,maxCPUCores:I,maxMemory:P,maxVirtualDiskSizes:D}},qn=(0,o.useCallback)(Wn,[]),Qn=function(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.cmValue,t=void 0===n?Q:n,r=e.cmUnit,i=void 0===r?_e:r;Ae(t);var o=Wn({inputMemoryUnit:i,memory:t}),a=o.formattedMaxMemory,s=o.maxMemory;Qn({inputs:{memory:{displayMax:a,max:s,value:t}}})},Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.value,t=void 0===n?We:n,r=e.unit,i=void 0===r?_e:r;t!==We&&qe(t),i!==_e&&He(i),(0,x.KY)(t,i,(function(e){return _n({cmValue:e,cmUnit:i})}),(function(){return _n({cmUnit:i})}))},Yn=function(e){en(e),Wn({fileUUIDs:[e,an]})},Jn=function(e){sn(e),Wn({fileUUIDs:[$e,e]})},Kn=function(e){var n=ne([e]);dn(e),Wn({includeAnvilUUIDs:n})};return(0,o.useEffect)((function(){p.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then((function(e){var n=e.data,t=function(e){var n={},t=e.reduce((function(e,t){var i=t.anvilUUID,o=t.anvilName,s=t.anvilTotalMemory,l=t.anvilTotalAllocatedMemory,u=t.anvilTotalAvailableMemory,c=t.hosts,d=t.servers,p=t.storageGroups,f=t.files,v=p.reduce((function(n,t){var a=F({},t,{anvilUUID:i,anvilName:o,storageGroupSize:BigInt(t.storageGroupSize),storageGroupFree:BigInt(t.storageGroupFree),humanizedStorageGroupFree:""});return(0,x.Bh)(t.storageGroupFree,{fromUnit:"B",onSuccess:{string:function(e,n){a.humanizedStorageGroupFree="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),n.anvilStorageGroupUUIDs.push(t.storageGroupUUID),n.anvilStorageGroups.push(a),e.storageGroups.push(a),e.storageGroupSelectItems.push({displayValue:$({endAdornment:(0,r.jsx)(k.Ac,{inverted:!0,text:"~".concat(a.humanizedStorageGroupFree," free")}),mainLabel:t.storageGroupName,subLabel:o}),value:t.storageGroupUUID}),e.storageGroupUUIDMapToData[t.storageGroupUUID]=a,n}),{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=v.anvilStorageGroups,g=v.anvilStorageGroupUUIDs,h=[];f.forEach((function(e){var t=e.fileUUID;h.push(t),n[t]=e}));var b=F({},t,{anvilTotalMemory:BigInt(s),anvilTotalAllocatedMemory:BigInt(l),anvilTotalAvailableMemory:BigInt(u),humanizedAnvilTotalAvailableMemory:"",hosts:c.map((function(e){return F({},e,{hostMemory:BigInt(e.hostMemory)})})),servers:d.map((function(n){var t=n.serverMemory,r=n.serverName,i=F({},N(n,["serverMemory","serverName"]),{serverMemory:BigInt(t),serverName:r});return e.serverNameMapToData[r]=i,i})),storageGroupUUIDs:g,storageGroups:m,fileUUIDs:h});return(0,x.Bh)(u,{fromUnit:"B",onSuccess:{string:function(e,n){b.humanizedAnvilTotalAvailableMemory="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),e.anvils.push(b),e.anvilSelectItems.push({displayValue:$({endAdornment:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,r.jsx)(k.Ac,{inverted:!0,text:"CPU: ".concat(b.anvilTotalCPUCores," cores")}),(0,r.jsx)(k.Ac,{inverted:!0,text:"Memory: ~".concat(b.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:b.anvilName,subLabel:b.anvilDescription}),value:i}),e.anvilUUIDMapToData[i]=b,e}),{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(n).forEach((function(e){t.files.push(e),t.fileSelectItems.push({displayValue:e.fileName,value:e.fileUUID}),t.fileUUIDMapToData[e.fileUUID]=e})),t}(n.anvils),i=t.anvils,o=t.anvilSelectItems,s=t.anvilUUIDMapToData,l=t.fileSelectItems,u=t.fileUUIDMapToData,c=t.serverNameMapToData,d=t.storageGroupSelectItems,p=t.storageGroupUUIDMapToData;j(i),P(s),A(u),T(c),re(p),ae(o),ue(l),me(d);var f={allAnvils:i,storageGroupUUIDMapToData:p};if(1===o.length){var v=o[0].value;dn(v),f.includeAnvilUUIDs=[v]}if(1===l.length){var m=l[0].value;en(m),f.fileUUIDs=[m,""]}if(1===d.length){var g=d[0].value;Ke((function(e){var n=F({},e);return n.inputStorageGroupUUIDs[0]=g,f.virtualDisks=n,n}))}qn(f),pe(Object.entries(n.oses).map((function(e){var n=L(e,2);return{key:n[0],label:n[1]}}))),kn(!0)}))}),[qn]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{fullWidth:!0,maxWidth:"sm",open:n,PaperComponent:w.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,r.jsxs)(w.V9,{children:[(0,r.jsx)(k.z,{text:"Provision a Server"}),(0,r.jsx)(g.Z,{onClick:t,sx:{backgroundColor:d.hM,color:d.lD,"&:hover":{backgroundColor:d.hM}},children:(0,r.jsx)(u.Z,{})})]}),Cn?(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(b.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:function(e){var n=e.target.value;he(n),Qn({inputs:{serverName:{value:n}}})},value:ge},inputLabelProps:{isNotifyRequired:0===ge.length},messageBoxProps:ye})}),(0,r.jsx)(f.Z,{id:"ps-cpu-cores",disableClearable:!0,extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=Se<=0},getOptionLabel:function(e){return String(e)},label:"CPU cores",messageBoxProps:we,noOptionsText:"No available number of cores.",onChange:function(e,n){if(n&&n!==Se){Ie(n);var t=Wn({cpuCores:n}).maxCPUCores;Qn({inputs:{cpuCores:{max:t,value:n}}})}},openOnFocus:!0,options:Rn,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-cpu-cores-".concat(n),children:n}))},value:Se}),(0,r.jsx)(Z,{id:"ps-memory",label:"Memory",messageBoxProps:Fe,inputWithLabelProps:{inputProps:{endAdornment:X("".concat(Ee," ").concat(_e),{onButtonClick:function(){qe(Ee),_n({cmValue:Be})}}),onChange:function(e){var n=e.target.value;Hn({value:n})},type:"number",value:We},inputLabelProps:{isNotifyRequired:ke===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;Hn({unit:n})},value:_e}}}),Je.stateIds.map((function(e,n){return function(e,n,t,i,o,s,l,u){var c=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return e[t][r]},d=function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;e[r][o]=i,t(F({},e))},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q;d("sizes",t);var r=s({virtualDisks:e}),i=r.formattedMaxVDSizes,o=r.maxVirtualDiskSizes;u({inputs:B({},"vd".concat(n,"Size"),{displayMax:"".concat(i[n]),max:o[n],value:t})})},f=function(e){var n=e.value,t=void 0===n?c("inputSizes"):n,r=e.unit,i=void 0===r?c("inputUnits"):r;t!==c("inputSizes")&&d("inputSizes",t),i!==c("inputUnits")&&d("inputUnits",i),(0,x.KY)(t,i,(function(e){return p(e)}),(function(){return p()}))},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c("inputStorageGroupUUIDs");n!==c("inputStorageGroupUUIDs")&&d("inputStorageGroupUUIDs",n),s({virtualDisks:e})};return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(Z,{id:"ps-virtual-disk-size-".concat(n),label:"Disk size",messageBoxProps:c("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:X("".concat(c("inputMaxes")," ").concat(c("inputUnits")),{onButtonClick:function(){d("inputSizes",c("inputMaxes")),p(c("maxes"))}}),onChange:function(e){var n=e.target.value;f({value:n})},type:"number",value:c("inputSizes")},inputLabelProps:{isNotifyRequired:c("sizes")===Q}},selectItems:_,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;f({unit:n})},value:c("inputUnits")}}})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(S.Z,{id:"ps-storage-group-".concat(n),label:"Storage group",disableItem:function(e){return!(o.includes(e)&&c("sizes")<=l[e].storageGroupFree)},inputLabelProps:{isNotifyRequired:0===c("inputStorageGroupUUIDs").length},messageBoxProps:c("inputStorageGroupUUIDMessages"),selectItems:i,selectProps:{onChange:function(e){var n=e.target.value;v(n)},onClearIndicatorClick:function(){return v("")},renderValue:function(e){var n,t=null!==(n=l[e])&&void 0!==n?n:{},r=t.anvilName,i=void 0===r?"?":r,o=t.storageGroupName,a=void 0===o?"Unknown (".concat(e,")"):o;return"".concat(a," (").concat(i,")")},value:c("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(c("stateIds")))}(Je,n,Ke,ve,Zn,Wn,te,Qn)})),(0,r.jsx)(S.Z,{disableItem:function(e){return e===an},hideItem:function(e){return!Pn.includes(e)},id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===$e.length},label:"Install ISO",messageBoxProps:tn,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Yn(n)},onClearIndicatorClick:function(){return Yn("")},value:$e}}),(0,r.jsx)(S.Z,{disableItem:function(e){return e===$e},hideItem:function(e){return!Pn.includes(e)},id:"ps-driver-image",label:"Driver ISO",messageBoxProps:ln,selectItems:le,selectProps:{onChange:function(e){var n=e.target.value;Jn(n)},onClearIndicatorClick:function(){return Jn("")},value:an}}),(0,r.jsx)(S.Z,{disableItem:function(e){return!Un.includes(e)},id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===cn.length},label:"Anvil node",messageBoxProps:fn,selectItems:oe,selectProps:{onChange:function(e){var n=e.target.value;Kn(n)},onClearIndicatorClick:function(){return Kn("")},renderValue:function(e){var n,t=(null!==(n=I[e])&&void 0!==n?n:{}).anvilName;return void 0===t?"Unknown ".concat(e):t},value:cn}}),(0,r.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=null===xn},isOptionEqualToValue:function(e,n){return e.key===n.key},label:"Optimize for OS",messageBoxProps:bn,noOptionsText:"No matching OS",onChange:function(e,n){gn(n)},openOnFocus:!0,options:de,renderOption:function(e,n){return(0,o.createElement)("li",F({},e,{key:"ps-optimize-for-os-".concat(n.key),children:[n.label," (",n.key,")"]}))},value:xn})]}):(0,r.jsx)(M.Z,{}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[Ln>0&&(0,r.jsx)(h.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),Tn?(0,r.jsx)(M.Z,{mt:0}):(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,r.jsx)(m.Z,{disabled:!Qn({isIgnoreOnCallbacks:!0}),onClick:function(){Bn(!0)},sx:K,children:"Provision"})})]})]}),Gn&&(0,r.jsx)(v.Z,{actionProceedText:"Provision",content:function(){var e=10;return(0,r.jsxs)(s.ZP,{container:!0,columns:e,direction:"column",children:[(0,r.jsx)(s.ZP,{item:!0,xs:e,children:(0,r.jsxs)(k.Ac,{children:["Server ",(0,r.jsx)(k.Q0,{text:ge})," will be created on anvil node"," ",(0,r.jsx)(k.Q0,{text:I[cn].anvilName})," ","with the following properties:"]})}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:Se})," ","core(s)"]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsx)(k.Q0,{edge:"start",children:De})," ","core(s) available"]})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsx)(k.Ac,{children:(0,r.jsxs)(k.Q0,{edge:"start",children:[We," ",_e]})})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[Ee," ",_e]})," ","available"]})})]}),Je.stateIds.map((function(n,t){var i=Je.inputMaxes[t],o=Je.inputSizes[t],a=Je.inputUnits[t],l=te[Je.inputStorageGroupUUIDs[t]].storageGroupName;return(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsxs)(k.Ac,{children:["Disk ",(0,r.jsx)(k.Q0,{text:t})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[o," ",a]})," ","on ",(0,r.jsx)(k.Q0,{children:l})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(k.Ac,{children:[(0,r.jsxs)(k.Q0,{edge:"start",children:[i," ",a]})," ","available"]})})]},"ps-virtual-disk-".concat(n,"-summary"))})),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Install ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:O[$e].fileName})})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Driver ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:O[an]?(0,r.jsx)(k.Q0,{edge:"start",children:O[an].fileName}):"none"})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:e,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(k.Ac,{text:"Optimize for OS"})}),(0,r.jsx)(s.ZP,{item:!0,xs:8,children:(0,r.jsx)(k.Ac,{children:(0,r.jsx)(k.Q0,{edge:"start",children:"".concat(null===xn||void 0===xn?void 0:xn.label)})})})]})]})}(),dialogProps:{open:Gn},onCancelAppend:function(){Bn(!1)},onProceedAppend:function(){var e={serverName:ge,cpuCores:Se,memory:ke.toString(),virtualDisks:Je.stateIds.map((function(e,n){return{storageSize:Je.sizes[n].toString(),storageGroupUUID:Je.inputStorageGroupUUIDs[n]}})),installISOFileUUID:$e,driverISOFileUUID:an,anvilUUID:cn,optimizeForOS:null===xn||void 0===xn?void 0:xn.key};Fn(!0),p.Z.post("/server",e).then((function(){Fn(!1),En(Ln+1)})),Bn(!1)},proceedButtonProps:{sx:K},titleText:"Provision ".concat(ge,"?")})]})}},2519:function(e,n,t){t.d(n,{Z:function(){return O}});var r=t(5893),i=t(5603),o=t(8128),a=t(3640),s=t(7294),l=t(1363),u=t(4427),c=t(9),d=t(192),p=t(5537),f=t(9558),v=t(6239),m=t(7021),x=t(1057),g=t(4799),h=t(3213),b=t(7169);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S=function(e){var n=e.onClearIndicatorClick,t=U(e,["onClearIndicatorClick"]),o=t.sx,a=t.value,l=U(t,["sx","value"]),u=(0,s.useMemo)((function(){var e;return j((y(e={},"& .".concat(i.Z.icon),{color:b.s7}),y(e,"& .".concat(f.Z.root),{marginRight:".8em"}),y(e,"& .".concat(v.Z.root),{color:b.s7,visibility:"hidden"}),y(e,"&:hover .".concat(f.Z.root," .").concat(v.Z.root,",\n &.").concat(m.Z.focused," .").concat(f.Z.root," .").concat(v.Z.root),{visibility:"visible"}),e),o)}),[o]),c=(0,s.useMemo)((function(){return String(a).length>0&&n&&(0,r.jsx)(x.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(p.Z,{fontSize:"small"})})})}),[n,a]);return(0,r.jsx)(h.Z,j({endAdornment:c,value:a},l,{sx:u}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var O=function(e){var n=e.id,t=e.label,p=e.selectItems,f=e.checkItem,v=e.disableItem,m=e.formControlProps,x=e.hideItem,g=e.inputLabelProps,h=void 0===g?{}:g,b=e.isReadOnly,y=void 0!==b&&b,j=e.messageBoxProps,U=void 0===j?{}:j,O=e.name,Z=e.onBlur,w=e.onChange,M=e.onFocus,C=e.required,k=e.selectProps,A=void 0===k?{}:k,G=A.multiple,B=A.sx,z=e.value,T=e.isCheckableItems,F=void 0===T?G:T,N=D(e.selectProps,["multiple","sx"]),L=(0,s.useMemo)((function(){return y?P(I({},"& .".concat(i.Z.icon),{visibility:"hidden"}),B):B}),[y,B]),E=(0,s.useCallback)((function(e){return F&&(0,r.jsx)(o.Z,{checked:null===f||void 0===f?void 0:f.call(null,e)})}),[f,F]),R=(0,s.useCallback)((function(e,t){return(0,r.jsxs)(u.Z,{disabled:null===v||void 0===v?void 0:v.call(null,e),sx:{display:(null===x||void 0===x?void 0:x.call(null,e))?"none":void 0},value:e,children:[E(e),t]},"".concat(n,"-").concat(e))}),[E,v,x,n]),V=(0,s.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),W=(0,s.useMemo)((function(){return(0,r.jsx)(c.Z,{id:n,label:t})}),[n,t]),q=(0,s.useMemo)((function(){return t&&(0,r.jsx)(d.Z,P({htmlFor:V,isNotifyRequired:C},h,{children:t}))}),[h,C,t,V]),Q=(0,s.useMemo)((function(){return p.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return R(t,void 0===r?t:r)}))}),[R,p]);return(0,r.jsxs)(a.Z,P({fullWidth:!0},m,{children:[q,(0,r.jsx)(S,P({id:V,input:W,multiple:G,name:O,onBlur:Z,onChange:w,onFocus:M,readOnly:y,value:z},N,{sx:L,children:Q})),(0,r.jsx)(l.Z,P({},U))]}))}},5737:function(e,n,t){t.d(n,{Bh:function(){return i},KY:function(){return o},MU:function(){return a}});var r=t(4490),i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fromUnit,i=n.onFailure,o=n.onSuccess,a=n.precision,s=n.toUnit,l=(0,r.gO)(e,{fromUnit:t,precision:a,toUnit:s});if(l){var u=l.value,c=l.unit;try{var d,p,f;null===o||void 0===o||null===(d=o.bigint)||void 0===d||d.call(null,BigInt(u),c),null===o||void 0===o||null===(p=o.number)||void 0===p||p.call(null,parseFloat(u),c),null===o||void 0===o||null===(f=o.string)||void 0===f||f.call(null,u,c)}catch(v){null===i||void 0===i||i.call(null,v,u,c)}}else null===i||void 0===i||i.call(null)},o=function(e,n,t,r){i(e,{fromUnit:n,onFailure:r,onSuccess:{bigint:t},precision:0,toUnit:"B"})},a=function(e){return(0,r._d)(e,{toUnit:"ibyte"})}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/86-366ac64963a6a0fd.js b/striker-ui/out/_next/static/chunks/86-d7025c9609028f44.js similarity index 99% rename from striker-ui/out/_next/static/chunks/86-366ac64963a6a0fd.js rename to striker-ui/out/_next/static/chunks/86-d7025c9609028f44.js index 3e107ceb..2a665acf 100644 --- a/striker-ui/out/_next/static/chunks/86-366ac64963a6a0fd.js +++ b/striker-ui/out/_next/static/chunks/86-d7025c9609028f44.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86],{1939:function(e,n,t){var r=t(5893),o=t(7357),i=t(7169);function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c="Decorator",s={ok:"".concat(c,"-ok"),warning:"".concat(c,"-warning"),error:"".concat(c,"-error"),off:"".concat(c,"-off")};n.Z=function(e){var n,t=e.colour,c=e.sx,f=l(e,["colour","sx"]);return(0,r.jsx)(o.Z,a({},f,{className:s[t],sx:a((n={borderRadius:i.n_,height:"100%",width:"1.4em"},u(n,"&.".concat(s.ok),{backgroundColor:i.Ej}),u(n,"&.".concat(s.warning),{backgroundColor:i.Wd}),u(n,"&.".concat(s.error),{backgroundColor:i.hM}),u(n,"&.".concat(s.off),{backgroundColor:i.s7}),n),c)}))}},5741:function(e,n,t){var r=t(5893),o=t(1714),i=t(122),u=t(7169),a=t(4690);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=e.children,t=e.sx,l=s(e,["children","sx"]);return(0,r.jsx)(i.Z,c({underline:"hover",variant:"subtitle1"},l,{sx:c({color:u.lD,textDecorationColor:u.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},4427:function(e,n,t){var r=t(5893),o=t(2429),i=t(9309),u=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Z=function(e){var n=e.isFloating,t=e.networkInterface,i=t.networkInterfaceName,u=t.networkInterfaceState,a=e.onClose,l=e.sx,c=C(e,["isFloating","networkInterface","onClose","sx"]),f=n?{borderColor:y.s7,borderRadius:y.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:y.E5,padding:".6em 1.2em"}:{};return(0,r.jsxs)(o.Z,O({sx:O({display:"flex",flexDirection:"row","& > :not(:first-child)":{alignSelf:"center",marginLeft:".5em"}},f,l)},c,{children:[(0,r.jsx)(x.Z,{colour:"up"===u?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.Ac,{text:i}),a&&(0,r.jsx)(w.Z,{onClick:a,size:"small",sx:{color:y.s7},children:(0,r.jsx)(s.Z,{})})]}))};Z.defaultProps={isFloating:!1,onClose:void 0};var M=Z,S=(0,t(1496).ZP)(o.Z)((function(){return{borderColor:y.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}})),P=t(4690),D=t(1706),U=t(4069),A=t(7869),N=t(6284),R=t(3679),E=t(1905),V=t(2519),T=t(634),F=t(2152),L=t(7987);function q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function W(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(l){a=!0,o=l}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||$(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,n){if(e){if("string"===typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}var J={ifaceNotApplied:"".concat("NetworkInitForm","-network-interface-not-applied")},z=[void 0,void 0],X="dns",K="gateway",Y=function(e){return"".concat(e,"Interface")},Q=function(e){return"".concat(e,"IPAddress")},ee=function(e){return"".concat(e,"Name")},ne=function(e){return"".concat(e,"SubnetMask")},te=function(e){return"".concat(e,"NetworkSubnetConflict")},re=Array.from({length:2},(function(e,n){return n+1})),oe={bcn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.20".concat(e,".").concat(n)},mask:"255.255.0.0"},ifn:{ip:function(){return""},mask:""},mn:{ip:function(){return"10.199."},mask:"255.255.0.0"},sn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.10".concat(e,".").concat(n)},mask:"255.255.0.0"}},ie=function(e){return"network".concat(e)},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.inputUUID,t=void 0===n?(0,m.Z)():n,r=e.interfaces,o=void 0===r?G(z):r,i=e.ipAddress,u=void 0===i?"":i,a=e.name,l=e.subnetMask,c=void 0===l?"":l,s=e.type,f=void 0===s?"":s,d=e.typeCount,v=void 0===d?0:d,p=_(e,["inputUUID","interfaces","ipAddress","name","subnetMask","type","typeCount"]),b=a;return a||(b=h.Z[f]&&v>0?"".concat(h.Z[f]," ").concat(v):"Unknown Network"),H({inputUUID:t,interfaces:o,ipAddress:u,name:b,subnetMask:c,type:f,typeCount:v},p)},ae=function(e,n){return[{align:"center",field:"",renderCell:function(t){var i,u=t.row,a=(null!==(i=n[u.networkInterfaceUUID])&&void 0!==i&&i).isApplied,s="grab",f=function(){for(var n=arguments.length,t=new Array(n),r=0;r :not(:first-child)":{marginLeft:".5em"}},children:[(0,r.jsx)(x.Z,{colour:"up"===t?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.KI,{text:i})]})}},{field:"networkInterfaceMACAddress",flex:1,headerName:"MAC",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.$_,{text:n})}},{field:"networkInterfaceState",flex:1,headerName:"State",renderCell:function(e){var n=e.value,t=String(n);return(0,r.jsx)(j.KI,{text:"".concat(t.charAt(0).toUpperCase()).concat(t.substring(1))})}},{field:"networkInterfaceSpeed",flex:1,headerName:"Speed",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.KI,{text:"".concat(parseFloat(n).toLocaleString()," Mbps")})}},{field:"networkInterfaceOrder",flex:1,headerName:"Order"}]},le=function(e){var n=e.allowMigrationNetwork,t=e.createDropMouseUpHandler,a=e.getNetworkTypeCount,l=e.hostDetail,c=void 0===l?{}:l,d=c.hostType,v=c.sequence,p=e.networkIndex,m=e.networkInput,g=e.networkInterfaceCount,k=e.networkInterfaceInputMap,w=e.removeNetwork,x=e.setMessageRe,I=e.setNetworkInputs,O=e.setNetworkInterfaceInputMap,C=e.testInput,Z=e.testInputToToggleSubmitDisabled,P=(0,i.Z)(),A=(0,u.Z)(P.breakpoints.up("md")),E=(0,u.Z)(P.breakpoints.up("lg")),T=(0,b.useRef)({}),F=(0,b.useRef)({}),L=m.inputUUID,q=m.interfaces,_=m.ipAddress,$=m.isRequired,J=m.subnetMask,z=m.type,X=m.typeCount,K=(0,b.useMemo)((function(){return ie(L)}),[L]),ee=(0,b.useMemo)((function(){return Y(K)}),[K]),ue=(0,b.useMemo)((function(){return Q(K)}),[K]),ae=(0,b.useMemo)((function(){return ne(K)}),[K]),le=(0,b.useMemo)((function(){return te(K)}),[K]),ce=(0,b.useMemo)((function(){return"node"===d}),[d]),se=(0,b.useMemo)((function(){return!ce&&g<=2?[1]:re}),[ce,g]),fe=(0,b.useMemo)((function(){var e=h.Z.bcn,t=h.Z.ifn,r=h.Z.mn,o=h.Z.sn;return ce&&g>=8&&(n||"mn"===z)?{bcn:e,ifn:t,mn:r,sn:o}:{bcn:e,ifn:t,sn:o}}),[n,ce,g,z]),de=(0,b.useCallback)((function(e,n,t){var r=T.current,o=r.getIsChangedByUser,i=r.setValue,u=F.current,a=u.getIsChangedByUser,l=u.setValue;(null===o||void 0===o?void 0:o.call(null))||(e.ipAddress=n,null===i||void 0===i||i.call(null,n)),(null===a||void 0===a?void 0:a.call(null))||(e.subnetMask=t,null===l||void 0===l||l.call(null,t))}),[]);return(0,b.useEffect)((function(){var e,n;"striker"===d&&"ifn"!==z&&(!(null===(e=T.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))&&Number(v)&&(null===(n=T.current.setValue)||void 0===n||n.call(null,_.replace(/^((?:\d+\.){3})\d*$/,"$1".concat(v)))))}),[d,_,v,z]),(0,b.useEffect)((function(){var e=m.ipAddressInputRef,n=m.subnetMaskInputRef;e===T&&n===F||(m.ipAddressInputRef=T,m.subnetMaskInputRef=F,I((function(e){return G(e)})))}),[m,I]),(0,r.jsxs)(R.Lg,{children:[(0,r.jsxs)(R.CH,{children:[(0,r.jsx)(V.Z,{id:"network-".concat(L,"-name"),isReadOnly:$,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(fe).map((function(e){var n=W(e,2),t=n[0],r=n[1],o=a(t,{lastIndex:p});return t!==z&&(o+=1),{value:t,displayValue:"".concat(r," ").concat(o)}})),selectProps:{onChange:function(e){var n=e.target.value,t=String(n);m.type=t;var r=a(t,{lastIndex:p});m.typeCount=r,m.name="".concat(h.Z[t]," ").concat(r);var o=oe[t];if(o){var i,u=o.ip,l=o.mask;"striker"===d&&"bcn"===t&&(i="4."),de(m,u(r,i),l)}I((function(e){return G(e)}))},renderValue:E?void 0:function(e){return"".concat(String(e).toUpperCase()," ").concat(X)},value:z}}),!$&&(0,r.jsx)(D.Z,{onClick:function(){w(p)},sx:{padding:".2em",position:"absolute",right:"-9px",top:"-4px"},children:(0,r.jsx)(s.Z,{fontSize:"small"})})]}),(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",margin:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[se.map((function(e){var n="Link ".concat(e),i=e-1,u=q[i],a=(null!==u&&void 0!==u?u:{}).networkInterfaceUUID,l=void 0===a?"":a,c=A?(0,r.jsx)(j.Ac,{text:"Drop to add interface."}):(0,r.jsx)(f.Z,{sx:{alignSelf:"center",color:y.s7}});return(0,r.jsxs)(o.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:"1em"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(j.Ac,{sx:{whiteSpace:"nowrap"},text:n}),(0,r.jsx)(S,{onMouseUp:function(){for(var e=arguments.length,n=new Array(e),r=0;r=we.length||Object.values(_).every((function(e){return e.isApplied}))||"node"===t&&we.length<=6}),[t,re,we,_]),Ie=(0,b.useMemo)((function(){return u&&!l}),[u,l]),Oe=(0,b.useMemo)((function(){return re.every((function(e){return"mn"!==e.type}))}),[re]),Ce=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessage)||void 0===t?void 0:t.call(null,e,n)}),[]),Ze=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessageRe)||void 0===t?void 0:t.call(null,e,n)}),[]),Me=(0,b.useCallback)((function(e){return Ce(X,e)}),[Ce]),Se=(0,b.useCallback)((function(e){return Ce(K,e)}),[Ce]),Pe=(0,b.useCallback)((function(e){var n,t=e.fn,r=void 0===t?"every":t,o=e.ip,i=void 0===o?"":o,u=e.mask,a=void 0===u?"":u,l=e.isNegateMatch,c=void 0===l?"every"===r:l,s=e.onMatch,f=e.onMiss,d=e.skipUUID,v="every"===r;try{n=new p.Netmask("".concat(i,"/").concat(a))}catch(b){}return re[r]((function(e){var t,r,o=e.inputUUID,u=e.ipAddressInputRef,a=e.subnetMaskInputRef;if(o===d)return v;var l=null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null),m=null===(r=null===a||void 0===a?void 0:a.current.getValue)||void 0===r?void 0:r.call(null),g=!1;try{g=function(e,n){var t=n.b,r=n.bIP,o=void 0===r?"":r;return e.contains(null!==t&&void 0!==t?t:o)||void 0!==t&&t.contains(e)}(new p.Netmask("".concat(l,"/").concat(m)),{b:n,bIP:i})}catch(b){}return g?null===s||void 0===s||s.call(null,e):null===f||void 0===f||f.call(null,e),c?!g:g}))}),[re]),De=(0,b.useCallback)((function(e){Ce("api",e)}),[Ce]),Ue=(0,b.useMemo)((function(){var e,n=(B(e={},X,{defaults:{getValue:function(){var e;return null===(e=be.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Me()}},tests:[{onFailure:function(){Me({children:"Domain name servers should be a comma-separated list of IPv4 addresses without trailing comma(s)."})},test:function(e){var n=e.value;return k.ah.test(n)}},{test:L.HJ}]}),B(e,K,{defaults:{getValue:function(){var e;return null===(e=me.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Se()}},tests:[{onFailure:function(){Se({children:"Gateway should be a valid IPv4 address."})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value,t=!0,r=Pe({fn:"some",ip:n,onMatch:function(e){var r=e.ipAddress,o=e.name,i=e.type,u=e.typeCount;if(n===r)return t=!1,void Se({children:"Gateway cannot be the same as IP address in ".concat(o,".")});pe("".concat(i).concat(u))}});return r||Se({children:"Gateway must be in one network's subnet."}),r&&t}},{test:L.HJ}]}),e);return re.forEach((function(e){var t,r,o=e.inputUUID,i=e.interfaces,u=e.ipAddressInputRef,a=e.name,l=e.subnetMaskInputRef,c=ie(o),s=Y(c),f=Q(c),d=ne(c),v=function(e){return Ce(s,e)},p=function(e){return Ce(f,e)},b=function(e){return Ce(d,e)},m=function(e,n,t){var r,o="".concat(te(c),"-").concat(n),i="".concat(te(ie(n)),"-").concat(e);Ce((null===(r=ye.current.exists)||void 0===r?void 0:r.call(null,i))?i:o,t)},g=function(e){var n=e.ip,i=void 0===n?null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null):n,c=e.mask,s=void 0===c?null===(r=null===l||void 0===l?void 0:l.current.getValue)||void 0===r?void 0:r.call(null):c;return Pe({ip:i,mask:s,onMatch:function(e){var n=e.inputUUID,t=e.name;m(o,n,{children:'"'.concat(a,'" and "').concat(t,'" cannot be in the same subnet.')})},onMiss:function(e){var n=e.inputUUID;m(o,n)},skipUUID:o})};n[s]={defaults:{getCompare:function(){return i.map((function(e){return void 0!==e}))},onSuccess:function(){v()}},tests:[{onFailure:function(){v({children:"".concat(a," must have at least 1 interface.")})},test:function(e){return e.compare.some((function(e){return e}))}},{onFailure:function(){v({children:"".concat(a," must have a Link 1 interface.")})},test:function(e){var n=W(e.compare,2),t=n[0];return!(n[1]&&!t)}}]},n[f]={defaults:{getValue:function(){var e;return null===(e=null===u||void 0===u?void 0:u.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){p()}},tests:[{onFailure:function(){p({children:"IP address in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({ip:n})}},{test:L.HJ}]},n[ee(c)]={defaults:{value:a},tests:[{test:L.HJ}]},n[d]={defaults:{getValue:function(){var e;return null===(e=null===l||void 0===l?void 0:l.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){b()}},tests:[{onFailure:function(){b({children:"Subnet mask in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({mask:n})}},{test:L.HJ}]}})),n}),[re,Me,Se,Ce,Pe]),Ae=(0,b.useMemo)((function(){return(0,L.LT)(Ue)}),[Ue]),Ne=(0,b.useCallback)((function(e){null===s||void 0===s||s.call(null,Ae(H({isIgnoreOnCallbacks:!0,isTestAll:!0},e)))}),[Ae,s]),Re=(0,b.useCallback)((function(){fe(void 0)}),[]),Ee=(0,b.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};re.unshift(ue(e)),null===s||void 0===s||s.call(null,!1),oe(G(re))}),[re,s]),Ve=(0,b.useCallback)((function(e){var n=W(re.splice(e,1),1)[0],t=n.inputUUID;n.interfaces.forEach((function(e){if(void 0!==e){var n=e.networkInterfaceUUID;_[n].isApplied=!1}})),Ne({excludeTestIdsRe:RegExp(t)}),oe(G(re)),$((function(e){return H({},e)}))}),[re,_,Ne]),Te=(0,b.useCallback)((function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.inputs,r=void 0===t?re:t,o=n.lastIndex,i=void 0===o?0:o,u=0,a=r.length-1;a>=i;a-=1)r[a].type===e&&(u+=1);return u}),[re]),Fe=(0,b.useMemo)((function(){if(void 0!==se){var e=se.networkInterfaceUUID;return function(n,t){return function(){var r,o=(null!==(r=n[t])&&void 0!==r?r:{}).networkInterfaceUUID;o&&o!==e&&(_[o].isApplied=!1),n[t]=se,_[e].isApplied=!0}}}}),[se,_]),Le=(0,b.useMemo)((function(){return se?{cursor:"grabbing",userSelect:"none"}:{}}),[se]),qe=(0,b.useMemo)((function(){if(void 0===se)return(0,r.jsx)(r.Fragment,{});var e=R.x,n=R.y;return(0,r.jsx)(M,{isFloating:!0,networkInterface:se,sx:{left:"calc(".concat(e,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})}),[R,se]),Be=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]),He=(0,b.useMemo)((function(){return se?function(e){var n=e.currentTarget,t=e.nativeEvent,r=t.clientX,o=t.clientY,i=n.getBoundingClientRect(),u=i.left,a=i.top;V({x:r-u,y:o-a})}:void 0}),[se]),_e=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]);(0,b.useEffect)((function(){if([Object.keys(_).length>0,u,l,ge.current,be.current,me.current].every((function(e){return Boolean(e)}))){var e,n;ge.current=!1;var t=l.dns,r=l.gateway,o=l.gatewayInterface,i=l.networks;if([t,r,o,i].some((function(e){return!e})))return;null===(e=be.current.setValue)||void 0===e||e.call(null,t),null===(n=me.current.setValue)||void 0===n||n.call(null,r);var a=[],c=Object.values(i).reduce((function(e,n){var t,r,o=n.ip,i=n.link1Uuid,u=n.link2Uuid,l=void 0===u?"":u,c=n.subnetMask,s=n.type,f=Te(s,{inputs:e})+1,d=Z[s]===f,v="".concat(h.Z[s]," ").concat(f);return a.push(i,l),e.push({inputUUID:(0,m.Z)(),interfaces:[null===(t=_[i])||void 0===t?void 0:t.metadata,null===(r=_[l])||void 0===r?void 0:r.metadata],ipAddress:o,isRequired:d,name:v,subnetMask:c,type:s,typeCount:f}),e}),[]);pe(o),$((function(e){var n=H({},e);return a.forEach((function(e){n[e]&&(n[e].isApplied=!0)})),n})),oe(c),Ne()}}),[u,Te,l,_,Z,Ne]),(0,b.useEffect)((function(){return(0,T.Z)(1,De),window&&window.addEventListener("beforeunload",(function(){var e=new XMLHttpRequest;e.open("PUT","".concat(g.Z,"/init/set-map-network"),!1),e.send(null)}),{once:!0}),function(){(0,T.Z)(0,De)}}),[De]),(0,b.useImperativeHandle)(n,(function(){return H({},ye.current,{get:function(){var e,n;return{dns:null===(e=be.current.getValue)||void 0===e?void 0:e.call(null),gateway:null===(n=me.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:ve,networks:re.map((function(e){var n,t,r=e.inputUUID,o=e.interfaces,i=e.ipAddressInputRef,u=e.name,a=e.subnetMaskInputRef,l=e.type,c=e.typeCount;return{inputUUID:r,interfaces:o,ipAddress:null!==(I=null===(n=null===i||void 0===i?void 0:i.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==I?I:"",name:u,subnetMask:null!==(O=null===(t=null===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null))&&void 0!==O?O:"",type:l,typeCount:c}}))}}})}),[ve,re]);var We,Ge="13em";return xe?(0,r.jsx)(F.Z,{}):(0,r.jsxs)(o.Z,{onMouseDown:function(e){var n=e.clientX,t=e.clientY,r=e.currentTarget.getBoundingClientRect(),o=r.left,i=r.top;V({x:n-o,y:t-i})},onMouseLeave:Be,onMouseMove:He,onMouseUp:_e,sx:H({position:"relative"},Le),children:[qe,(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child, :nth-child(3))":{marginTop:"1em"}},children:[(0,r.jsx)(d._,{autoHeight:!0,columns:ae((function(e){fe(e)}),_),componentsProps:{row:{onMouseDown:function(e){var n=e.target,t=(void 0===n?{}:n).parentElement,r=(void 0===t?{}:t).dataset,o=(void 0===r?{}:r).id,i=void 0===o?void 0:o;if(i){var u=_[i],a=u.isApplied,l=u.metadata;a||fe(l)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:function(e){var n,t=e.row.networkInterfaceUUID,r="";return(null!==(n=_[t])&&void 0!==n&&n).isApplied||(r+=" ".concat(J.ifaceNotApplied)),r},getRowId:function(e){return e.networkInterfaceUUID},hideFooter:!0,initialState:{sorting:{sortModel:[{field:"networkInterfaceName",sort:"asc"}]}},rows:we,sx:(We={color:y.s7},B(We,"& .".concat(a.Z.root),{color:"inherit"}),B(We,"& .".concat(v._.cell,":focus"),{outline:"none"}),B(We,"& .".concat(v._.row,".").concat(J.ifaceNotApplied,":hover"),B({cursor:"grab"},"& .".concat(v._.cell," p"),{cursor:"auto"})),We)}),!Ie&&(0,r.jsx)(P.Z,{row:!0,sx:{"& > :first-child":{alignSelf:"start",marginTop:".7em"},"& > :last-child":{flexGrow:1}},children:(0,r.jsx)(o.Z,{sx:{alignItems:"strech",display:"flex",flexDirection:"row",overflowX:"auto",paddingLeft:".3em","& > div":{marginBottom:".8em",marginTop:".4em",minWidth:Ge,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:re.map((function(e,n){var o=e.inputUUID;return(0,r.jsx)(le,{allowMigrationNetwork:Oe,createDropMouseUpHandler:Fe,getNetworkTypeCount:Te,hostDetail:{hostType:t,sequence:x},networkIndex:n,networkInput:e,networkInterfaceCount:we.length,networkInterfaceInputMap:_,removeNetwork:Ve,setMessageRe:Ze,setNetworkInputs:oe,setNetworkInterfaceInputMap:$,testInput:Ae,testInputToToggleSubmitDisabled:Ne},"network-".concat(o))}))})}),(0,r.jsxs)(P.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:Ge,width:{sm:"25%"}}},children:[(0,r.jsx)(D.Z,{disabled:je,onClick:function(){Ee()},children:(0,r.jsx)(f.Z,{})}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-gateway",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},K,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},K,{value:n})}),Se()},label:"Gateway"}),ref:me}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-dns-csv",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},X,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},X,{value:n})}),Me()},label:"Domain name server(s)"}),ref:be})]}),(0,r.jsx)(A.Z,{count:1,defaultMessageType:"warning",ref:ye})]})]})}));ce.defaultProps={expectHostDetail:!1,hostDetail:void 0,hostSequence:void 0,toggleSubmitDisabled:void 0},ce.displayName="NetworkInitForm";var se=ce},2519:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(5893),o=t(5603),i=t(8128),u=t(3640),a=t(7294),l=t(1363),c=t(4427),s=t(9),f=t(192),d=t(5537),v=t(9558),p=t(6239),b=t(7021),m=t(1057),g=t(4799),y=t(3213),h=t(7169);function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var j=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,l=x(t,["sx","value"]),c=(0,a.useMemo)((function(){var e;return w((k(e={},"& .".concat(o.Z.icon),{color:h.s7}),k(e,"& .".concat(v.Z.root),{marginRight:".8em"}),k(e,"& .".concat(p.Z.root),{color:h.s7,visibility:"hidden"}),k(e,"&:hover .".concat(v.Z.root," .").concat(p.Z.root,",\n &.").concat(b.Z.focused," .").concat(v.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,a.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(m.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(y.Z,w({endAdornment:s,value:u},l,{sx:c}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Z=function(e){var n=e.id,t=e.label,d=e.selectItems,v=e.checkItem,p=e.disableItem,b=e.formControlProps,m=e.hideItem,g=e.inputLabelProps,y=void 0===g?{}:g,h=e.isReadOnly,k=void 0!==h&&h,w=e.messageBoxProps,x=void 0===w?{}:w,Z=e.name,M=e.onBlur,S=e.onChange,P=e.onFocus,D=e.required,U=e.selectProps,A=void 0===U?{}:U,N=A.multiple,R=A.sx,E=e.value,V=e.isCheckableItems,T=void 0===V?N:V,F=C(e.selectProps,["multiple","sx"]),L=(0,a.useMemo)((function(){return k?O(I({},"& .".concat(o.Z.icon),{visibility:"hidden"}),R):R}),[k,R]),q=(0,a.useCallback)((function(e){return T&&(0,r.jsx)(i.Z,{checked:null===v||void 0===v?void 0:v.call(null,e)})}),[v,T]),B=(0,a.useCallback)((function(e,t){return(0,r.jsxs)(c.Z,{disabled:null===p||void 0===p?void 0:p.call(null,e),sx:{display:(null===m||void 0===m?void 0:m.call(null,e))?"none":void 0},value:e,children:[q(e),t]},"".concat(n,"-").concat(e))}),[q,p,m,n]),H=(0,a.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),_=(0,a.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,a.useMemo)((function(){return t&&(0,r.jsx)(f.Z,O({htmlFor:H,isNotifyRequired:D},y,{children:t}))}),[y,D,t,H]),G=(0,a.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return B(t,void 0===r?t:r)}))}),[B,d]);return(0,r.jsxs)(u.Z,O({fullWidth:!0},b,{children:[W,(0,r.jsx)(j,O({id:H,input:_,multiple:N,name:Z,onBlur:M,onChange:S,onFocus:P,readOnly:k,value:E},F,{sx:L,children:G})),(0,r.jsx)(l.Z,O({},x))]}))}},3106:function(e,n){n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},634:function(e,n,t){var r=t(5893),o=t(4390),i=t(1770);n.Z=function(e,n){o.Z.put("/init/set-map-network",{value:e}).catch((function(t){var o=(0,i.Z)(t);o.children=(0,r.jsxs)(r.Fragment,{children:["Failed to ",e?"enable":"disable"," network mapping."," ",o.children]}),null===n||void 0===n||n.call(null,o)}))}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86],{1939:function(e,n,t){var r=t(5893),o=t(7357),i=t(7169);function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c="Decorator",s={ok:"".concat(c,"-ok"),warning:"".concat(c,"-warning"),error:"".concat(c,"-error"),off:"".concat(c,"-off")};n.Z=function(e){var n,t=e.colour,c=e.sx,f=l(e,["colour","sx"]);return(0,r.jsx)(o.Z,a({},f,{className:s[t],sx:a((n={borderRadius:i.n_,height:"100%",width:"1.4em"},u(n,"&.".concat(s.ok),{backgroundColor:i.Ej}),u(n,"&.".concat(s.warning),{backgroundColor:i.Wd}),u(n,"&.".concat(s.error),{backgroundColor:i.hM}),u(n,"&.".concat(s.off),{backgroundColor:i.s7}),n),c)}))}},5741:function(e,n,t){var r=t(5893),o=t(1714),i=t(122),u=t(7169),a=t(4690);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=e.children,t=e.sx,l=s(e,["children","sx"]);return(0,r.jsx)(i.Z,c({underline:"hover",variant:"subtitle1"},l,{sx:c({color:u.lD,textDecorationColor:u.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},4427:function(e,n,t){var r=t(5893),o=t(2429),i=t(9309),u=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Z=function(e){var n=e.isFloating,t=e.networkInterface,i=t.networkInterfaceName,u=t.networkInterfaceState,a=e.onClose,l=e.sx,c=C(e,["isFloating","networkInterface","onClose","sx"]),f=n?{borderColor:y.s7,borderRadius:y.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:y.E5,padding:".6em 1.2em"}:{};return(0,r.jsxs)(o.Z,O({sx:O({display:"flex",flexDirection:"row","& > :not(:first-child)":{alignSelf:"center",marginLeft:".5em"}},f,l)},c,{children:[(0,r.jsx)(x.Z,{colour:"up"===u?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.Ac,{text:i}),a&&(0,r.jsx)(w.Z,{onClick:a,size:"small",sx:{color:y.s7},children:(0,r.jsx)(s.Z,{})})]}))};Z.defaultProps={isFloating:!1,onClose:void 0};var M=Z,S=(0,t(1496).ZP)(o.Z)((function(){return{borderColor:y.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}})),P=t(4690),D=t(1706),U=t(4069),A=t(7869),N=t(6284),R=t(3679),E=t(1905),V=t(2519),T=t(634),F=t(2152),L=t(2027);function q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function W(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(l){a=!0,o=l}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||$(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,n){if(e){if("string"===typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}var J={ifaceNotApplied:"".concat("NetworkInitForm","-network-interface-not-applied")},z=[void 0,void 0],X="dns",K="gateway",Y=function(e){return"".concat(e,"Interface")},Q=function(e){return"".concat(e,"IPAddress")},ee=function(e){return"".concat(e,"Name")},ne=function(e){return"".concat(e,"SubnetMask")},te=function(e){return"".concat(e,"NetworkSubnetConflict")},re=Array.from({length:2},(function(e,n){return n+1})),oe={bcn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.20".concat(e,".").concat(n)},mask:"255.255.0.0"},ifn:{ip:function(){return""},mask:""},mn:{ip:function(){return"10.199."},mask:"255.255.0.0"},sn:{ip:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.10".concat(e,".").concat(n)},mask:"255.255.0.0"}},ie=function(e){return"network".concat(e)},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.inputUUID,t=void 0===n?(0,m.Z)():n,r=e.interfaces,o=void 0===r?G(z):r,i=e.ipAddress,u=void 0===i?"":i,a=e.name,l=e.subnetMask,c=void 0===l?"":l,s=e.type,f=void 0===s?"":s,d=e.typeCount,v=void 0===d?0:d,p=_(e,["inputUUID","interfaces","ipAddress","name","subnetMask","type","typeCount"]),b=a;return a||(b=h.Z[f]&&v>0?"".concat(h.Z[f]," ").concat(v):"Unknown Network"),H({inputUUID:t,interfaces:o,ipAddress:u,name:b,subnetMask:c,type:f,typeCount:v},p)},ae=function(e,n){return[{align:"center",field:"",renderCell:function(t){var i,u=t.row,a=(null!==(i=n[u.networkInterfaceUUID])&&void 0!==i&&i).isApplied,s="grab",f=function(){for(var n=arguments.length,t=new Array(n),r=0;r :not(:first-child)":{marginLeft:".5em"}},children:[(0,r.jsx)(x.Z,{colour:"up"===t?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(j.KI,{text:i})]})}},{field:"networkInterfaceMACAddress",flex:1,headerName:"MAC",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.$_,{text:n})}},{field:"networkInterfaceState",flex:1,headerName:"State",renderCell:function(e){var n=e.value,t=String(n);return(0,r.jsx)(j.KI,{text:"".concat(t.charAt(0).toUpperCase()).concat(t.substring(1))})}},{field:"networkInterfaceSpeed",flex:1,headerName:"Speed",renderCell:function(e){var n=e.value;return(0,r.jsx)(j.KI,{text:"".concat(parseFloat(n).toLocaleString()," Mbps")})}},{field:"networkInterfaceOrder",flex:1,headerName:"Order"}]},le=function(e){var n=e.allowMigrationNetwork,t=e.createDropMouseUpHandler,a=e.getNetworkTypeCount,l=e.hostDetail,c=void 0===l?{}:l,d=c.hostType,v=c.sequence,p=e.networkIndex,m=e.networkInput,g=e.networkInterfaceCount,k=e.networkInterfaceInputMap,w=e.removeNetwork,x=e.setMessageRe,I=e.setNetworkInputs,O=e.setNetworkInterfaceInputMap,C=e.testInput,Z=e.testInputToToggleSubmitDisabled,P=(0,i.Z)(),A=(0,u.Z)(P.breakpoints.up("md")),E=(0,u.Z)(P.breakpoints.up("lg")),T=(0,b.useRef)({}),F=(0,b.useRef)({}),L=m.inputUUID,q=m.interfaces,_=m.ipAddress,$=m.isRequired,J=m.subnetMask,z=m.type,X=m.typeCount,K=(0,b.useMemo)((function(){return ie(L)}),[L]),ee=(0,b.useMemo)((function(){return Y(K)}),[K]),ue=(0,b.useMemo)((function(){return Q(K)}),[K]),ae=(0,b.useMemo)((function(){return ne(K)}),[K]),le=(0,b.useMemo)((function(){return te(K)}),[K]),ce=(0,b.useMemo)((function(){return"node"===d}),[d]),se=(0,b.useMemo)((function(){return!ce&&g<=2?[1]:re}),[ce,g]),fe=(0,b.useMemo)((function(){var e=h.Z.bcn,t=h.Z.ifn,r=h.Z.mn,o=h.Z.sn;return ce&&g>=8&&(n||"mn"===z)?{bcn:e,ifn:t,mn:r,sn:o}:{bcn:e,ifn:t,sn:o}}),[n,ce,g,z]),de=(0,b.useCallback)((function(e,n,t){var r=T.current,o=r.getIsChangedByUser,i=r.setValue,u=F.current,a=u.getIsChangedByUser,l=u.setValue;(null===o||void 0===o?void 0:o.call(null))||(e.ipAddress=n,null===i||void 0===i||i.call(null,n)),(null===a||void 0===a?void 0:a.call(null))||(e.subnetMask=t,null===l||void 0===l||l.call(null,t))}),[]);return(0,b.useEffect)((function(){var e,n;"striker"===d&&"ifn"!==z&&(!(null===(e=T.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))&&Number(v)&&(null===(n=T.current.setValue)||void 0===n||n.call(null,_.replace(/^((?:\d+\.){3})\d*$/,"$1".concat(v)))))}),[d,_,v,z]),(0,b.useEffect)((function(){var e=m.ipAddressInputRef,n=m.subnetMaskInputRef;e===T&&n===F||(m.ipAddressInputRef=T,m.subnetMaskInputRef=F,I((function(e){return G(e)})))}),[m,I]),(0,r.jsxs)(R.Lg,{children:[(0,r.jsxs)(R.CH,{children:[(0,r.jsx)(V.Z,{id:"network-".concat(L,"-name"),isReadOnly:$,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(fe).map((function(e){var n=W(e,2),t=n[0],r=n[1],o=a(t,{lastIndex:p});return t!==z&&(o+=1),{value:t,displayValue:"".concat(r," ").concat(o)}})),selectProps:{onChange:function(e){var n=e.target.value,t=String(n);m.type=t;var r=a(t,{lastIndex:p});m.typeCount=r,m.name="".concat(h.Z[t]," ").concat(r);var o=oe[t];if(o){var i,u=o.ip,l=o.mask;"striker"===d&&"bcn"===t&&(i="4."),de(m,u(r,i),l)}I((function(e){return G(e)}))},renderValue:E?void 0:function(e){return"".concat(String(e).toUpperCase()," ").concat(X)},value:z}}),!$&&(0,r.jsx)(D.Z,{onClick:function(){w(p)},sx:{padding:".2em",position:"absolute",right:"-9px",top:"-4px"},children:(0,r.jsx)(s.Z,{fontSize:"small"})})]}),(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",margin:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[se.map((function(e){var n="Link ".concat(e),i=e-1,u=q[i],a=(null!==u&&void 0!==u?u:{}).networkInterfaceUUID,l=void 0===a?"":a,c=A?(0,r.jsx)(j.Ac,{text:"Drop to add interface."}):(0,r.jsx)(f.Z,{sx:{alignSelf:"center",color:y.s7}});return(0,r.jsxs)(o.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:"1em"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(j.Ac,{sx:{whiteSpace:"nowrap"},text:n}),(0,r.jsx)(S,{onMouseUp:function(){for(var e=arguments.length,n=new Array(e),r=0;r=we.length||Object.values(_).every((function(e){return e.isApplied}))||"node"===t&&we.length<=6}),[t,re,we,_]),Ie=(0,b.useMemo)((function(){return u&&!l}),[u,l]),Oe=(0,b.useMemo)((function(){return re.every((function(e){return"mn"!==e.type}))}),[re]),Ce=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessage)||void 0===t?void 0:t.call(null,e,n)}),[]),Ze=(0,b.useCallback)((function(e,n){var t;return null===(t=ye.current.setMessageRe)||void 0===t?void 0:t.call(null,e,n)}),[]),Me=(0,b.useCallback)((function(e){return Ce(X,e)}),[Ce]),Se=(0,b.useCallback)((function(e){return Ce(K,e)}),[Ce]),Pe=(0,b.useCallback)((function(e){var n,t=e.fn,r=void 0===t?"every":t,o=e.ip,i=void 0===o?"":o,u=e.mask,a=void 0===u?"":u,l=e.isNegateMatch,c=void 0===l?"every"===r:l,s=e.onMatch,f=e.onMiss,d=e.skipUUID,v="every"===r;try{n=new p.Netmask("".concat(i,"/").concat(a))}catch(b){}return re[r]((function(e){var t,r,o=e.inputUUID,u=e.ipAddressInputRef,a=e.subnetMaskInputRef;if(o===d)return v;var l=null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null),m=null===(r=null===a||void 0===a?void 0:a.current.getValue)||void 0===r?void 0:r.call(null),g=!1;try{g=function(e,n){var t=n.b,r=n.bIP,o=void 0===r?"":r;return e.contains(null!==t&&void 0!==t?t:o)||void 0!==t&&t.contains(e)}(new p.Netmask("".concat(l,"/").concat(m)),{b:n,bIP:i})}catch(b){}return g?null===s||void 0===s||s.call(null,e):null===f||void 0===f||f.call(null,e),c?!g:g}))}),[re]),De=(0,b.useCallback)((function(e){Ce("api",e)}),[Ce]),Ue=(0,b.useMemo)((function(){var e,n=(B(e={},X,{defaults:{getValue:function(){var e;return null===(e=be.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Me()}},tests:[{onFailure:function(){Me({children:"Domain name servers should be a comma-separated list of IPv4 addresses without trailing comma(s)."})},test:function(e){var n=e.value;return k.ah.test(n)}},{test:L.HJ}]}),B(e,K,{defaults:{getValue:function(){var e;return null===(e=me.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){Se()}},tests:[{onFailure:function(){Se({children:"Gateway should be a valid IPv4 address."})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value,t=!0,r=Pe({fn:"some",ip:n,onMatch:function(e){var r=e.ipAddress,o=e.name,i=e.type,u=e.typeCount;if(n===r)return t=!1,void Se({children:"Gateway cannot be the same as IP address in ".concat(o,".")});pe("".concat(i).concat(u))}});return r||Se({children:"Gateway must be in one network's subnet."}),r&&t}},{test:L.HJ}]}),e);return re.forEach((function(e){var t,r,o=e.inputUUID,i=e.interfaces,u=e.ipAddressInputRef,a=e.name,l=e.subnetMaskInputRef,c=ie(o),s=Y(c),f=Q(c),d=ne(c),v=function(e){return Ce(s,e)},p=function(e){return Ce(f,e)},b=function(e){return Ce(d,e)},m=function(e,n,t){var r,o="".concat(te(c),"-").concat(n),i="".concat(te(ie(n)),"-").concat(e);Ce((null===(r=ye.current.exists)||void 0===r?void 0:r.call(null,i))?i:o,t)},g=function(e){var n=e.ip,i=void 0===n?null===(t=null===u||void 0===u?void 0:u.current.getValue)||void 0===t?void 0:t.call(null):n,c=e.mask,s=void 0===c?null===(r=null===l||void 0===l?void 0:l.current.getValue)||void 0===r?void 0:r.call(null):c;return Pe({ip:i,mask:s,onMatch:function(e){var n=e.inputUUID,t=e.name;m(o,n,{children:'"'.concat(a,'" and "').concat(t,'" cannot be in the same subnet.')})},onMiss:function(e){var n=e.inputUUID;m(o,n)},skipUUID:o})};n[s]={defaults:{getCompare:function(){return i.map((function(e){return void 0!==e}))},onSuccess:function(){v()}},tests:[{onFailure:function(){v({children:"".concat(a," must have at least 1 interface.")})},test:function(e){return e.compare.some((function(e){return e}))}},{onFailure:function(){v({children:"".concat(a," must have a Link 1 interface.")})},test:function(e){var n=W(e.compare,2),t=n[0];return!(n[1]&&!t)}}]},n[f]={defaults:{getValue:function(){var e;return null===(e=null===u||void 0===u?void 0:u.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){p()}},tests:[{onFailure:function(){p({children:"IP address in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({ip:n})}},{test:L.HJ}]},n[ee(c)]={defaults:{value:a},tests:[{test:L.HJ}]},n[d]={defaults:{getValue:function(){var e;return null===(e=null===l||void 0===l?void 0:l.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){b()}},tests:[{onFailure:function(){b({children:"Subnet mask in ".concat(a," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return k.tf.test(n)}},{test:function(e){var n=e.value;return g({mask:n})}},{test:L.HJ}]}})),n}),[re,Me,Se,Ce,Pe]),Ae=(0,b.useMemo)((function(){return(0,L.LT)(Ue)}),[Ue]),Ne=(0,b.useCallback)((function(e){null===s||void 0===s||s.call(null,Ae(H({isIgnoreOnCallbacks:!0,isTestAll:!0},e)))}),[Ae,s]),Re=(0,b.useCallback)((function(){fe(void 0)}),[]),Ee=(0,b.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};re.unshift(ue(e)),null===s||void 0===s||s.call(null,!1),oe(G(re))}),[re,s]),Ve=(0,b.useCallback)((function(e){var n=W(re.splice(e,1),1)[0],t=n.inputUUID;n.interfaces.forEach((function(e){if(void 0!==e){var n=e.networkInterfaceUUID;_[n].isApplied=!1}})),Ne({excludeTestIdsRe:RegExp(t)}),oe(G(re)),$((function(e){return H({},e)}))}),[re,_,Ne]),Te=(0,b.useCallback)((function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.inputs,r=void 0===t?re:t,o=n.lastIndex,i=void 0===o?0:o,u=0,a=r.length-1;a>=i;a-=1)r[a].type===e&&(u+=1);return u}),[re]),Fe=(0,b.useMemo)((function(){if(void 0!==se){var e=se.networkInterfaceUUID;return function(n,t){return function(){var r,o=(null!==(r=n[t])&&void 0!==r?r:{}).networkInterfaceUUID;o&&o!==e&&(_[o].isApplied=!1),n[t]=se,_[e].isApplied=!0}}}}),[se,_]),Le=(0,b.useMemo)((function(){return se?{cursor:"grabbing",userSelect:"none"}:{}}),[se]),qe=(0,b.useMemo)((function(){if(void 0===se)return(0,r.jsx)(r.Fragment,{});var e=R.x,n=R.y;return(0,r.jsx)(M,{isFloating:!0,networkInterface:se,sx:{left:"calc(".concat(e,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})}),[R,se]),Be=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]),He=(0,b.useMemo)((function(){return se?function(e){var n=e.currentTarget,t=e.nativeEvent,r=t.clientX,o=t.clientY,i=n.getBoundingClientRect(),u=i.left,a=i.top;V({x:r-u,y:o-a})}:void 0}),[se]),_e=(0,b.useMemo)((function(){return se?function(){Re()}:void 0}),[Re,se]);(0,b.useEffect)((function(){if([Object.keys(_).length>0,u,l,ge.current,be.current,me.current].every((function(e){return Boolean(e)}))){var e,n;ge.current=!1;var t=l.dns,r=l.gateway,o=l.gatewayInterface,i=l.networks;if([t,r,o,i].some((function(e){return!e})))return;null===(e=be.current.setValue)||void 0===e||e.call(null,t),null===(n=me.current.setValue)||void 0===n||n.call(null,r);var a=[],c=Object.values(i).reduce((function(e,n){var t,r,o=n.ip,i=n.link1Uuid,u=n.link2Uuid,l=void 0===u?"":u,c=n.subnetMask,s=n.type,f=Te(s,{inputs:e})+1,d=Z[s]===f,v="".concat(h.Z[s]," ").concat(f);return a.push(i,l),e.push({inputUUID:(0,m.Z)(),interfaces:[null===(t=_[i])||void 0===t?void 0:t.metadata,null===(r=_[l])||void 0===r?void 0:r.metadata],ipAddress:o,isRequired:d,name:v,subnetMask:c,type:s,typeCount:f}),e}),[]);pe(o),$((function(e){var n=H({},e);return a.forEach((function(e){n[e]&&(n[e].isApplied=!0)})),n})),oe(c),Ne()}}),[u,Te,l,_,Z,Ne]),(0,b.useEffect)((function(){return(0,T.Z)(1,De),window&&window.addEventListener("beforeunload",(function(){var e=new XMLHttpRequest;e.open("PUT","".concat(g.Z,"/init/set-map-network"),!1),e.send(null)}),{once:!0}),function(){(0,T.Z)(0,De)}}),[De]),(0,b.useImperativeHandle)(n,(function(){return H({},ye.current,{get:function(){var e,n;return{dns:null===(e=be.current.getValue)||void 0===e?void 0:e.call(null),gateway:null===(n=me.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:ve,networks:re.map((function(e){var n,t,r=e.inputUUID,o=e.interfaces,i=e.ipAddressInputRef,u=e.name,a=e.subnetMaskInputRef,l=e.type,c=e.typeCount;return{inputUUID:r,interfaces:o,ipAddress:null!==(I=null===(n=null===i||void 0===i?void 0:i.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==I?I:"",name:u,subnetMask:null!==(O=null===(t=null===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null))&&void 0!==O?O:"",type:l,typeCount:c}}))}}})}),[ve,re]);var We,Ge="13em";return xe?(0,r.jsx)(F.Z,{}):(0,r.jsxs)(o.Z,{onMouseDown:function(e){var n=e.clientX,t=e.clientY,r=e.currentTarget.getBoundingClientRect(),o=r.left,i=r.top;V({x:n-o,y:t-i})},onMouseLeave:Be,onMouseMove:He,onMouseUp:_e,sx:H({position:"relative"},Le),children:[qe,(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child, :nth-child(3))":{marginTop:"1em"}},children:[(0,r.jsx)(d._,{autoHeight:!0,columns:ae((function(e){fe(e)}),_),componentsProps:{row:{onMouseDown:function(e){var n=e.target,t=(void 0===n?{}:n).parentElement,r=(void 0===t?{}:t).dataset,o=(void 0===r?{}:r).id,i=void 0===o?void 0:o;if(i){var u=_[i],a=u.isApplied,l=u.metadata;a||fe(l)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:function(e){var n,t=e.row.networkInterfaceUUID,r="";return(null!==(n=_[t])&&void 0!==n&&n).isApplied||(r+=" ".concat(J.ifaceNotApplied)),r},getRowId:function(e){return e.networkInterfaceUUID},hideFooter:!0,initialState:{sorting:{sortModel:[{field:"networkInterfaceName",sort:"asc"}]}},rows:we,sx:(We={color:y.s7},B(We,"& .".concat(a.Z.root),{color:"inherit"}),B(We,"& .".concat(v._.cell,":focus"),{outline:"none"}),B(We,"& .".concat(v._.row,".").concat(J.ifaceNotApplied,":hover"),B({cursor:"grab"},"& .".concat(v._.cell," p"),{cursor:"auto"})),We)}),!Ie&&(0,r.jsx)(P.Z,{row:!0,sx:{"& > :first-child":{alignSelf:"start",marginTop:".7em"},"& > :last-child":{flexGrow:1}},children:(0,r.jsx)(o.Z,{sx:{alignItems:"strech",display:"flex",flexDirection:"row",overflowX:"auto",paddingLeft:".3em","& > div":{marginBottom:".8em",marginTop:".4em",minWidth:Ge,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:re.map((function(e,n){var o=e.inputUUID;return(0,r.jsx)(le,{allowMigrationNetwork:Oe,createDropMouseUpHandler:Fe,getNetworkTypeCount:Te,hostDetail:{hostType:t,sequence:x},networkIndex:n,networkInput:e,networkInterfaceCount:we.length,networkInterfaceInputMap:_,removeNetwork:Ve,setMessageRe:Ze,setNetworkInputs:oe,setNetworkInterfaceInputMap:$,testInput:Ae,testInputToToggleSubmitDisabled:Ne},"network-".concat(o))}))})}),(0,r.jsxs)(P.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:Ge,width:{sm:"25%"}}},children:[(0,r.jsx)(D.Z,{disabled:je,onClick:function(){Ee()},children:(0,r.jsx)(f.Z,{})}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-gateway",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},K,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},K,{value:n})}),Se()},label:"Gateway"}),ref:me}),(0,r.jsx)(U.Z,{input:(0,r.jsx)(N.Z,{id:"network-init-dns-csv",inputProps:{onBlur:function(e){var n=e.target.value;Ae({inputs:B({},X,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;Ne({inputs:B({},X,{value:n})}),Me()},label:"Domain name server(s)"}),ref:be})]}),(0,r.jsx)(A.Z,{count:1,defaultMessageType:"warning",ref:ye})]})]})}));ce.defaultProps={expectHostDetail:!1,hostDetail:void 0,hostSequence:void 0,toggleSubmitDisabled:void 0},ce.displayName="NetworkInitForm";var se=ce},2519:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(5893),o=t(5603),i=t(8128),u=t(3640),a=t(7294),l=t(1363),c=t(4427),s=t(9),f=t(192),d=t(5537),v=t(9558),p=t(6239),b=t(7021),m=t(1057),g=t(4799),y=t(3213),h=t(7169);function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var j=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,l=x(t,["sx","value"]),c=(0,a.useMemo)((function(){var e;return w((k(e={},"& .".concat(o.Z.icon),{color:h.s7}),k(e,"& .".concat(v.Z.root),{marginRight:".8em"}),k(e,"& .".concat(p.Z.root),{color:h.s7,visibility:"hidden"}),k(e,"&:hover .".concat(v.Z.root," .").concat(p.Z.root,",\n &.").concat(b.Z.focused," .").concat(v.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,a.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(m.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(y.Z,w({endAdornment:s,value:u},l,{sx:c}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Z=function(e){var n=e.id,t=e.label,d=e.selectItems,v=e.checkItem,p=e.disableItem,b=e.formControlProps,m=e.hideItem,g=e.inputLabelProps,y=void 0===g?{}:g,h=e.isReadOnly,k=void 0!==h&&h,w=e.messageBoxProps,x=void 0===w?{}:w,Z=e.name,M=e.onBlur,S=e.onChange,P=e.onFocus,D=e.required,U=e.selectProps,A=void 0===U?{}:U,N=A.multiple,R=A.sx,E=e.value,V=e.isCheckableItems,T=void 0===V?N:V,F=C(e.selectProps,["multiple","sx"]),L=(0,a.useMemo)((function(){return k?O(I({},"& .".concat(o.Z.icon),{visibility:"hidden"}),R):R}),[k,R]),q=(0,a.useCallback)((function(e){return T&&(0,r.jsx)(i.Z,{checked:null===v||void 0===v?void 0:v.call(null,e)})}),[v,T]),B=(0,a.useCallback)((function(e,t){return(0,r.jsxs)(c.Z,{disabled:null===p||void 0===p?void 0:p.call(null,e),sx:{display:(null===m||void 0===m?void 0:m.call(null,e))?"none":void 0},value:e,children:[q(e),t]},"".concat(n,"-").concat(e))}),[q,p,m,n]),H=(0,a.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),_=(0,a.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,a.useMemo)((function(){return t&&(0,r.jsx)(f.Z,O({htmlFor:H,isNotifyRequired:D},y,{children:t}))}),[y,D,t,H]),G=(0,a.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return B(t,void 0===r?t:r)}))}),[B,d]);return(0,r.jsxs)(u.Z,O({fullWidth:!0},b,{children:[W,(0,r.jsx)(j,O({id:H,input:_,multiple:N,name:Z,onBlur:M,onChange:S,onFocus:P,readOnly:k,value:E},F,{sx:L,children:G})),(0,r.jsx)(l.Z,O({},x))]}))}},3106:function(e,n){n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},634:function(e,n,t){var r=t(5893),o=t(4390),i=t(1770);n.Z=function(e,n){o.Z.put("/init/set-map-network",{value:e}).catch((function(t){var o=(0,i.Z)(t);o.children=(0,r.jsxs)(r.Fragment,{children:["Failed to ",e?"enable":"disable"," network mapping."," ",o.children]}),null===n||void 0===n||n.call(null,o)}))}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/94-8322ed453a3c08f0.js b/striker-ui/out/_next/static/chunks/94-8322ed453a3c08f0.js deleted file mode 100644 index 23ce8bb0..00000000 --- a/striker-ui/out/_next/static/chunks/94-8322ed453a3c08f0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[94],{5094:function(e,n,t){t.d(n,{S:function(){return Z},M:function(){return $}});var r=t(5893),i=t(791),o=t(5537),a=t(1496),s=t(7357),c=t(8333),l=t(5861),u=t(5152),f=t(7294),d=t(1706),v="0xffe3",h="0xffe9",x=[{keys:"Ctrl + Alt + Delete",scans:[]},{keys:"Ctrl + Alt + F1",scans:[v,h,"0xffbe"]},{keys:"Ctrl + Alt + F2",scans:[v,h,"0xffbf"]},{keys:"Ctrl + Alt + F3",scans:[v,h,"0xffc0"]},{keys:"Ctrl + Alt + F4",scans:[v,h,"0xffc1"]},{keys:"Ctrl + Alt + F5",scans:[v,h,"0xffc2"]},{keys:"Ctrl + Alt + F6",scans:[v,h,"0xffc3"]},{keys:"Ctrl + Alt + F7",scans:[v,h,"0xffc4"]},{keys:"Ctrl + Alt + F8",scans:[v,h,"0xffc5"]},{keys:"Ctrl + Alt + F9",scans:[v,h,"0xffc6"]}],m=t(4427),y=t(3679),p=t(2152),b=t(7750),j=t(1081);function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0;t-=1)N.current.sendKey(e[t],0)}else N.current.sendCtrlAltDel();S(null)}}(t)},children:(0,r.jsx)(l.Z,{variant:"subtitle1",children:n})},n)}))})]})}),[w]),W=(0,f.useMemo)((function(){return(0,r.jsx)(d.Z,{onClick:function(){for(var e=arguments.length,t=new Array(e),r=0;r :first-child":{flexGrow:1}},children:[(0,r.jsx)(s.Z,{textAlign:"center",children:L?(0,r.jsx)(p.Z,{mt:"1em",mb:"1em"}):(0,r.jsx)(U.Z,{component:"span",disabled:!H,onClick:w,sx:{borderRadius:B.n_,color:B.s7,padding:0},children:ee})}),y&&H&&(0,r.jsx)(T.Z,{children:(0,r.jsx)(d.Z,{onClick:Z,children:(0,r.jsx)(O.Z,{})})})]})]})};L.defaultProps=D;var $=L},9370:function(e,n,t){function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&void 0!==arguments[2]?arguments[2]:{}).ms,r=c(t)-e;return r<=n},u=function(e){var n,t=e,r=o(a([60,60].reduce((function(e,n){var r=t%n;return e.push(r),t=(t-r)/n,e}),[])).concat([t]),3),s=r[0],c=r[1],l=r[2],u=null!==(n=[{unit:"h",value:l},{unit:"m",value:c}].find((function(e){return e.value})))&&void 0!==n?n:{unit:"s",value:s};return function(e){for(var n=1;ne.length)&&(n=e.length);for(var r=0,t=new Array(n);r=0;r-=1)R.current.sendKey(e[r],0)}else R.current.sendCtrlAltDel();k(null)}}(r)},children:(0,t.jsx)(u.Z,{variant:"subtitle1",children:n})},n)}))})]})}),[C]),X=(0,d.useMemo)((function(){return(0,t.jsx)(a.Z,{children:(0,t.jsx)(v.Z,{onClick:function(){for(var e=arguments.length,r=new Array(e),t=0;t :first-child":{flexGrow:1}},children:[(0,t.jsx)(a.Z,{textAlign:"center",children:re}),p&&q&&(0,t.jsx)(_.Z,{children:(0,t.jsx)(v.Z,{onClick:I,children:(0,t.jsx)(U.Z,{})})})]})]})};$.defaultProps=N;var G=$},9370:function(e,n,r){function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r2&&void 0!==arguments[2]?arguments[2]:{}).ms,t=a(r)-e;return t<=n},u=function(e){var n,r=e,t=o(s([60,60].reduce((function(e,n){var t=r%n;return e.push(t),r=(r-t)/n,e}),[])).concat([r]),3),c=t[0],a=t[1],l=t[2],u=null!==(n=[{unit:"h",value:l},{unit:"m",value:a}].find((function(e){return e.value})))&&void 0!==n?n:{unit:"s",value:c};return function(e){for(var n=1;n{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:N,open:z,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,J]=r.useState(null),[Q,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||S&&!e||ce(null,ne)}),[ne,ce,le,pe,S]);const[ue,de]=(0,a.Z)({controlled:z,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=>!O||!(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&&Q>ne.length-1&&(ee(-1),xe(-1))}),[ne,A,Q,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,O,we,ye,he,ie,A]),Oe=(0,l.Z)((e=>{(0,s.Z)(X,e),e&&Ze()}));r.useEffect((()=>{Ze()}),[Ze]);const Se=e=>{ue||(de(!0),me(!0),N&&N(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=Q;-1===Q?""===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!==Q&&-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}),Se(o);break;case"PageDown":o.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:o}),Se(o);break;case"ArrowDown":o.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:o}),Se(o);break;case"ArrowUp":o.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:o}),Se(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 S&&""!==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===Q?ne.length-1:Q,t=ne.slice();t.splice(e,1),ke(o,t,"removeOption",{option:ne[e]})}}},Me=e=>{se(!0),W&&!U.current&&Se(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&&S&&""!==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"):Se(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},Ne=e=>t=>{const o=ne.slice();o.splice(e,1),ke(t,o,"removeOption",{option:ne[e]})},ze=e=>{ue?$e(e,"toggleInput"):Se(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||ze(e)};let Ve=S&&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:ze}),getTagProps:({index:e})=>(0,n.Z)({key:e,"data-tag-index":e,tabIndex:-1},!H&&{onDelete:Ne(e)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Oe,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!==Q,anchorEl:Y,setAnchorEl:J,focusedTag:Q,groupedOptions:Be}}},9890:function(e,t,o){"use strict";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),O=o(4799),S=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)(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"}))),N=(0,u.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,r.Z)({},e.typography.body1,{overflow:"auto"}))),z=(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:O,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:J=!1,filterSelectedOptions:Q=!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:Oe,renderTags:Se,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:Ne,popupOpen:ze,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:J,focused:We,fullWidth:oe,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:-1===Fe,popupOpen:ze,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=Se?Se(Te,e):Te.map(((t,o)=>(0,h.jsx)(S.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)),Je=Oe||((e,t)=>(0,h.jsx)("li",(0,r.Z)({},e,{children:re(t)}))),Qe=(e,t)=>{const o=De({option:e,index:t});return Je((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,O),ownerState:Ke},Pe(Ce),{children:Ze({id:Ne,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":ze?B:he,title:ze?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())})})),ze&&He?(0,h.jsx)(j,{as:ve,className:(0,a.Z)(_e.popper),disablePortal:J,style:{width:He?He.clientWidth:null},ownerState:Ke,role:"presentation",anchorEl:He,open:!0,children:(0,h.jsxs)(N,(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)(z,{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)=>Qe(t,e.index+o)))}):Qe(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 S}});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 O(e){return"Backspace"===e.key||"Delete"===e.key}var S=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:S,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)},N=!(!1===h||!P)||h,z="small"===M,W=N||I?m.Z:x||"div",F=(0,r.Z)({},o,{component:W,disabled:$,size:M,color:b,onDelete:!!I,clickable:N,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)}`]),z&&H.deleteIconSmall);B=S&&i.isValidElement(S)?i.cloneElement(S,{className:(0,a.Z)(S.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:!(!N||!$)||void 0,onClick:P,onKeyDown:e=>{e.currentTarget===e.target&&O(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&(I&&O(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]}))}))},8263:function(e,t,o){"use strict";o.d(t,{ZP:function(){return x}});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(8673),m=o(5893);const g=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function h(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function b(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 v=(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,...b(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[`& > .${f.Z.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:`-${h(o)}`,[`& > .${f.Z.item}`]:{paddingTop:h(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% + ${h(o)})`,marginLeft:`-${h(o)}`,[`& > .${f.Z.item}`]:{paddingLeft:h(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} + ${h(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 x=i.forwardRef((function(e,t){const o=(0,u.Z)({props:e,name:"MuiGrid"}),l=(0,s.Z)(o),{className:p,columns:h,columnSpacing:x,component:y="div",container:w=!1,direction:Z="row",item:O=!1,lg:S=!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,g),E=k||P,D=x||P,T=i.useContext(d),j=h||T||12,N=(0,r.Z)({},l,{columns:j,container:w,direction:Z,item:O,lg:S,md:$,sm:C,rowSpacing:E,columnSpacing:D,wrap:I,xl:R,xs:L,zeroMinWidth:M}),z=(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:m}=e,g={root:["root",o&&"container",r&&"item",m&&"zeroMinWidth",...b(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,f.H,t)})(N);return W=(0,m.jsx)(v,(0,r.Z)({ownerState:N,className:(0,a.Z)(z.root,p),as:y,ref:t},A)),12!==j?(0,m.jsx)(d.Provider,{value:j,children:W}):W;var W}))},8673:function(e,t,o){"use strict";o.d(t,{H:function(){return r}});var n=o(8979);function r(e){return(0,n.Z)("MuiGrid",e)}const i=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(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}`)),...i.map((e=>`grid-xs-${e}`)),...i.map((e=>`grid-sm-${e}`)),...i.map((e=>`grid-md-${e}`)),...i.map((e=>`grid-lg-${e}`)),...i.map((e=>`grid-xl-${e}`))]);t.Z=a},4606:function(e,t,o){"use strict";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 O(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 S(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",N="end",z="viewport",W="popper",F=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+N])}),[]),H=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+N])}),[]),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 Q(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?J(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 N: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"),O=E,S=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===N)S=M,b-=(d&&$.visualViewport?$.visualViewport.height:k[C])-n.height,b*=s?1:-1;if(r===E||(r===L||r===M)&&i===N)O=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={})[S]=Z?"0":"",I[O]=y?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",I)):Object.assign({},D,((t={})[S]=Z?b+"px":"",t[O]=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===z?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?z: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),O=h(e.elements.reference),S=Q({reference:O,element:y,strategy:"absolute",placement:r}),$=se(Object.assign({},y,S)),k=u===W?$:O,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=J(x),O="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 N,z="y"===Z?L:E,W="y"===Z?M:A,F="y"===Z?"height":"width",H=$[Z],V=H+v[z],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?S(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[z],te=Q[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!=(N=null==D?void 0:D[Z])?N: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=$[O],he="y"===O?"height":"width",be=ge+v[ue],ve=ge-v[de],xe=-1!==[L,E].indexOf(x),ye=null!=(pe=null==D?void 0:D[O])?pe:0,we=xe?be:ge-k[he]-C[he]-ye+I.altAxis,Ze=xe?ge+k[he]+C[he]-ye-I.altAxis:ve,Oe=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);$[O]=Oe,T[O]=Oe-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=J(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=S(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),O=s;o.modifiersData[n]=((t={})[O]=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]=Q({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,O=!0,S=x[0],$=0;$=0,R=I?"width":"height",N=fe(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),z=I?P?A:E:P?M:L;y[R]>w[R]&&(z=re(z));var W=re(z),V=[];if(i&&V.push(N[C]<=0),l&&V.push(N[z]<=0,N[W]<=0),V.every((function(e){return e}))){S=k,O=!1;break}Z.set(k,V)}if(O)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 S=t,"break"},q=m?3:1;q>0;q--){if("break"===B(q))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,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"],Oe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Se(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 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),[S,$]=r.useState(O);r.useEffect((()=>{y.current&&y.current.forceUpdate()})),(0,l.Z)((()=>{if(!o||!d)return;Se(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(Se(o),v.current,(0,n.Z)({placement:O},m,{modifiers:e}));return Z.current(t),()=>{t.destroy(),Z.current(null)}}),[o,p,u,d,m,O]);const k={placement:S};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,Oe),[y,w]=r.useState(!0);if(!u&&!f&&(!v||y))return null;const Z=l||(o?(0,s.Z)(Se(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}))}))},1163:function(e,t,o){e.exports=o(387)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/987-1ff0d82724b0e58b.js b/striker-ui/out/_next/static/chunks/987-1ff0d82724b0e58b.js deleted file mode 100644 index ffec88d2..00000000 --- a/striker-ui/out/_next/static/chunks/987-1ff0d82724b0e58b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[987],{1250:function(t,r,e){e.d(r,{FZ:function(){return c},tf:function(){return l},ah:function(){return f},OU:function(){return s},Qt:function(){return y}});var n="[a-z0-9]",o="[a-z0-9-]",i="[0-9a-f]",u="(?:25[0-5]|(?:2[0-4]|1[0-9]|[1-9]|)[0-9])",a="(?:".concat(u,"[.]){3}").concat(u),c=new RegExp("^(?:".concat(n,"(?:").concat(o,"{0,61}").concat(n,")?[.])+").concat(n).concat(o,"{0,61}").concat(n,"$")),l=new RegExp("^".concat(a,"$")),f=new RegExp("^(?:".concat(a,"\\s*,\\s*)*").concat(a,"$")),s=/^[^'"/\\><}{]*$/,y=new RegExp("^".concat(i,"{8}-(?:").concat(i,"{4}-){3}").concat(i,"{12}$"),"i")},4894:function(t,r,e){e.d(r,{Z:function(){return s}});var n=e(5893),o=e(6777),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parseInt";return"number"===typeof t?t:Number[r](String(t))};function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function f(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t)||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 s=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,y=e.isRequired,b=e.onFinishBatch,p=l(e,["isRequired","onFinishBatch"]),d=[];return u?d.push({onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;o0},u=e(7750);function a(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return a(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return a(t,r)}(t)||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 y=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,c=e.isRequired,y=e.onFinishBatch,b=f(e,["isRequired","onFinishBatch"]);return{defaults:l({},b,{onSuccess:r}),isRequired:c,onFinishBatch:y,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function m(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return b(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return b(t,r)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,a=e.isRequired,c=e.onFinishBatch,l=v(e,["isRequired","onFinishBatch"]);return{defaults:d({},l,{onSuccess:r}),isRequired:a,onFinishBatch:c,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function w(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return g(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return g(t,r)}(t)||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 A=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,a=e.isRequired,c=e.onFinishBatch,l=S(e,["isRequired","onFinishBatch"]);return{defaults:j({},l,{onSuccess:r}),isRequired:a,onFinishBatch:c,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function E(t){return function(t){if(Array.isArray(t))return F(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return F(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return F(t,r)}(t)||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 C=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,c=e.isRequired,l=e.onFinishBatch,f=k(e,["isRequired","onFinishBatch"]);return{defaults:P({},f,{onSuccess:r}),isRequired:c,onFinishBatch:l,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;o"}),"), curly brackets (",(0,n.jsx)(u.Q0,{inheritColour:!0,text:"{}"}),")."]})].concat(E(e)))},test:function(t){var r=t.value;return o.OU.test(r)}}]}};function B(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function M(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return B(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return B(t,r)}(t)||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 $=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,a=e.isRequired,c=e.onFinishBatch,l=T(e,["isRequired","onFinishBatch"]);return{defaults:q({},l,{onSuccess:r}),isRequired:a,onFinishBatch:c,tests:[{test:i},{onFailure:function(){for(var r=arguments.length,e=new Array(r),o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&void 0!==arguments[0]?arguments[0]:{},r=t.excludeTestIds,e=void 0===r?[]:r,n=t.excludeTestIdsRe,o=t.inputs,i=void 0===o?{}:o,u=t.isContinueOnFailure,a=t.isIgnoreOnCallbacks,c=t.isTestAll,l=void 0===c?0===Object.keys(i).length:c,f=t.tests,s=void 0===f?{}:f,y=Z(e),b={},p=!0;return l&&Object.keys(s).forEach((function(t){b[t]={}})),b=D({},b,i),n&&Object.keys(b).forEach((function(t){n.test(t)&&y.push(t)})),y.forEach((function(t){delete b[t]})),Object.keys(b).every((function(t){var r=s[t],e=r.defaults,n=void 0===e?{}:e,o=n.compare,i=void 0===o?[]:o,c=n.displayMax,l=n.displayMin,f=n.getCompare,y=n.getValue,d=n.isIgnoreOnCallbacks,v=void 0===d?a:d,m=n.max,h=void 0===m?0:m,g=n.min,O=void 0===g?0:g,j=n.onSuccess,S=n.value,w=void 0===S?null:S,A=r.isRequired,x=void 0!==A&&A,F=r.onFinishBatch,I=r.optionalTests,P=r.tests,k=!x,E=b[t],C=E.getCompare,B=void 0===C?f:C,R=E.getValue,q=void 0===R?y:R,T=E.isIgnoreOnCallbacks,M=void 0===T?v:T,$=E.max,U=void 0===$?h:$,Q=E.min,D=void 0===Q?O:Q,Z=E.compare,N=void 0===Z?V(null===B||void 0===B?void 0:B.call(null),i):Z,_=E.value,G=void 0===_?V(null===q||void 0===q?void 0:q.call(null),w):_,H=E.displayMax,J=void 0===H?Y(c,String(U)):H,L=E.displayMin,X=void 0===L?Y(l,String(D)):L,K=z({isIgnoreOnCallbacks:M,onFinishBatch:F}),W=K.cbFinishBatch,tt=K.setTestCallbacks;if(!G&&k)return null===W||void 0===W||W.call(null,!0,t),!0;var rt=function(t){var r=t.onFailure,e=t.onSuccess,n=void 0===e?j:e,o={},i=(0,t.test)({append:o,compare:N,max:U,min:D,value:G}),u=tt({onFailure:r,onSuccess:n}),a=u.cbFailure,c=u.cbSuccess;return i?null===c||void 0===c||c.call(null,{append:o}):(p=i,null===a||void 0===a||a.call(null,{append:o,compare:N,displayMax:J,displayMin:X,max:U,min:D,value:G})),i};null===I||void 0===I||I.forEach(rt);var et=P.every(rt);return null===W||void 0===W||W.call(null,et,t),et||u})),p};function H(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function K(t){return function(t){if(Array.isArray(t))return H(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"===typeof t)return H(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return H(t,r)}(t)||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 W=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.excludeTestIds,n=void 0===e?[]:e,o=X(r,["excludeTestIds"]);return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=r.excludeTestIds,i=void 0===e?[]:e,u=X(r,["excludeTestIds"]);return G(L({tests:t,excludeTestIds:K(n).concat(K(i))},o,u))}},tt=function(t){return t.max>=t.min},rt=e(6777)},6777:function(t,r){r.Z=function(t){var r=t.max,e=t.min,n=t.value;return!!n&&(n>=e&&n<=r)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/anvil-48975a0cc7fcbd1f.js b/striker-ui/out/_next/static/chunks/pages/anvil-3bce568d47e8eaba.js similarity index 99% rename from striker-ui/out/_next/static/chunks/pages/anvil-48975a0cc7fcbd1f.js rename to striker-ui/out/_next/static/chunks/pages/anvil-3bce568d47e8eaba.js index 3418f9a0..97d7b464 100644 --- a/striker-ui/out/_next/static/chunks/pages/anvil-48975a0cc7fcbd1f.js +++ b/striker-ui/out/_next/static/chunks/pages/anvil-3bce568d47e8eaba.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{6069:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/anvil",function(){return t(2693)}])},1939:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l="Decorator",u={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};n.Z=function(e){var n,t=e.colour,l=e.sx,d=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},d,{className:u[t],sx:c((n={borderRadius:i.n_,height:"100%",width:"1.4em"},a(n,"&.".concat(u.ok),{backgroundColor:i.Ej}),a(n,"&.".concat(u.warning),{backgroundColor:i.Wd}),a(n,"&.".concat(u.error),{backgroundColor:i.hM}),a(n,"&.".concat(u.off),{backgroundColor:i.s7}),n),l)}))}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,u=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:c,titleText:l},u))}},2693:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nn}});var r=t(5893),o=t(1496),i=t(7357),a=t(9008),c=t(1163),s=t(7294),l=t(2029),u=t(7169),d={uuid:"",setAnvilUuid:function(){return null}},f=(0,s.createContext)(d),h=function(e){var n=e.children,t=(0,s.useState)(""),o=t[0],i=t[1];return(0,r.jsx)(f.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:n})},x=t(3679),v=t(1905),m=t(2852),g=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),p=t(1939),j=function(e,n){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},b=t(7750);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},Z=(0,o.ZP)(i.Z)((function(){return y({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),_=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},k=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},O=function(e){var n=e.list,t=(0,s.useContext)(f).uuid,o=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(Z,y({},"children",""!==t&&(0,r.jsxs)(r.Fragment,y({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(p.Z,{colour:_(n[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:n[o].anvil_name}),(0,r.jsx)(b.z,{text:g.get(n[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,y({p:1},"children",(0,r.jsx)(m.Z,y({checked:k(n[o])},"onChange",(function(){var e=n[o],t=e.anvil_uuid;j("".concat(l.Z,"/command/").concat(k(e)?"stop-an":"start-an","/").concat(t),{})})))))]))))},P=t(8462),S=t(7720),A=t(7212),N=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:n.anvil_name}),(0,r.jsx)(b.Ac,{text:g.get(n.anvil_state)||"State unavailable"})]})};function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},ae=t(2749);function ce(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);tu.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(F,{list:p}),(0,r.jsx)(te,{anvil:p.anvils})]}),(0,r.jsx)(i.Z,{className:Ye.server,children:(0,r.jsx)(Re,{anvil:p.anvils})}),(0,r.jsx)(i.Z,{className:Ye.child,children:(0,r.jsx)(Xe,{})}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]}):(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(Re,{anvil:p.anvils}),(0,r.jsx)(F,{list:p}),(0,r.jsx)(te,{anvil:p.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]})),e}),[p,n]),y=(0,s.useMemo)((function(){return j?(0,r.jsx)(x.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 10em)",maxWidth:{xs:void 0,sm:"60%",md:"50%",lg:"40%"},minWidth:"fit-content"},children:(0,r.jsx)(G.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===d&&m((null===t||void 0===t?void 0:t.toString())||"")}),[d,t,m]),(0,r.jsxs)(en,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(h,{children:[(0,r.jsx)($.Z,{}),y]})]})}}},function(e){e.O(0,[412,438,894,182,960,247,62,195,987,157,707,774,888,179],(function(){return n=6069,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{6069:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/anvil",function(){return t(2693)}])},1939:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l="Decorator",u={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};n.Z=function(e){var n,t=e.colour,l=e.sx,d=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},d,{className:u[t],sx:c((n={borderRadius:i.n_,height:"100%",width:"1.4em"},a(n,"&.".concat(u.ok),{backgroundColor:i.Ej}),a(n,"&.".concat(u.warning),{backgroundColor:i.Wd}),a(n,"&.".concat(u.error),{backgroundColor:i.hM}),a(n,"&.".concat(u.off),{backgroundColor:i.s7}),n),l)}))}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,u=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:c,titleText:l},u))}},2693:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nn}});var r=t(5893),o=t(1496),i=t(7357),a=t(9008),c=t(1163),s=t(7294),l=t(2029),u=t(7169),d={uuid:"",setAnvilUuid:function(){return null}},f=(0,s.createContext)(d),h=function(e){var n=e.children,t=(0,s.useState)(""),o=t[0],i=t[1];return(0,r.jsx)(f.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:n})},x=t(3679),v=t(1905),m=t(2852),g=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),p=t(1939),j=function(e,n){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},b=t(7750);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},Z=(0,o.ZP)(i.Z)((function(){return y({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),_=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},k=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},O=function(e){var n=e.list,t=(0,s.useContext)(f).uuid,o=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(Z,y({},"children",""!==t&&(0,r.jsxs)(r.Fragment,y({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(p.Z,{colour:_(n[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:n[o].anvil_name}),(0,r.jsx)(b.z,{text:g.get(n[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,y({p:1},"children",(0,r.jsx)(m.Z,y({checked:k(n[o])},"onChange",(function(){var e=n[o],t=e.anvil_uuid;j("".concat(l.Z,"/command/").concat(k(e)?"stop-an":"start-an","/").concat(t),{})})))))]))))},P=t(8462),S=t(7720),A=t(7212),N=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:n.anvil_name}),(0,r.jsx)(b.Ac,{text:g.get(n.anvil_state)||"State unavailable"})]})};function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},ae=t(2749);function ce(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);tu.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(F,{list:p}),(0,r.jsx)(te,{anvil:p.anvils})]}),(0,r.jsx)(i.Z,{className:Ye.server,children:(0,r.jsx)(Re,{anvil:p.anvils})}),(0,r.jsx)(i.Z,{className:Ye.child,children:(0,r.jsx)(Xe,{})}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]}):(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(Re,{anvil:p.anvils}),(0,r.jsx)(F,{list:p}),(0,r.jsx)(te,{anvil:p.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(H,{}),(0,r.jsx)(oe,{})]})]})),e}),[p,n]),y=(0,s.useMemo)((function(){return j?(0,r.jsx)(x.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 10em)",maxWidth:{xs:void 0,sm:"60%",md:"50%",lg:"40%"},minWidth:"fit-content"},children:(0,r.jsx)(G.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===d&&m((null===t||void 0===t?void 0:t.toString())||"")}),[d,t,m]),(0,r.jsxs)(en,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(h,{children:[(0,r.jsx)($.Z,{}),y]})]})}}},function(e){e.O(0,[412,438,894,182,209,638,62,195,27,157,707,774,888,179],(function(){return n=6069,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/config-511a465cb55668af.js b/striker-ui/out/_next/static/chunks/pages/config-511a465cb55668af.js new file mode 100644 index 00000000..e602bbd6 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/config-511a465cb55668af.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{329:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return t(6028)}])},5741:function(e,n,t){"use strict";var r=t(5893),o=t(1714),i=t(122),c=t(7169),l=t(4690);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=e.children,t=e.sx,a=u(e,["children","sx"]);return(0,r.jsx)(i.Z,s({underline:"hover",variant:"subtitle1"},a,{sx:s({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(l.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},3106:function(e,n){"use strict";n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},6028:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ke}});var r=t(5893),o=t(8263),i=t(9008),c=t(7294),l=t(2029),a=t(157),s=t(8750),u=t(1905),d=t(3106),f=t(4188),h=t(4390);function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t3&&void 0!==arguments[3]?arguments[3]:e,o=function(t){var r;null===(r=n.current.setMessage)||void 0===r||r.call(null,e,t)};return t&&(t[r]=o),o},b=function(e,n){var t,r,o={};return t=e,o=(null!=(r=Array)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e.reduce((function(e,t){return y(t,n,e),e}),o):Object.entries(e).reduce((function(e,t){var r=m(t,2),o=r[0],i=r[1];return y(i,n,e,o),e}),o)},v=t(6607),g=t(480),x=t(2349),j=t(7750);function w(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(g({actionProceedText:"Delete",content:"The peer relationship between this striker and the selected ".concat(t," host(s) will terminate. The removed peer(s) can be re-added later."),onProceedAppend:function(){h.Z.delete("/host/connection",{data:n}).catch((function(e){var n=(0,S.Z)(e);n.children="Failed to delete peer connection(s). ".concat(n.children),y(n)}))},proceedColour:"red",titleText:"Delete ".concat(t," peer(s) from this striker?")}),null===(e=f.current.setOpen)||void 0===e||e.call(null,!0))},onEdit:function(){k((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){T[e].isChecked=t,C((function(e){return ne({},e)}))},renderListItem:function(e,n){var t=n.isPingTest,o=void 0!==t&&t;return(0,r.jsx)(Z.Z,{row:!0,spacing:0,children:(0,r.jsxs)(Z.Z,{spacing:0,children:[(0,r.jsx)(j.$_,{children:e}),(0,r.jsx)(J,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(B,{ref:s}),(0,r.jsx)(a.Z,ne({closeOnProceed:!0},v,{ref:f}))]})},oe=t(582),ie=t(5741),ce=t(3906);function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[y]),F=(0,u.Z)("".concat(l.Z,"/ssh-key/conflict"),{onError:function(e){p({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:function(e){b((function(n){return Object.values(e).reduce((function(e,t){return Object.values(t).forEach((function(t){var r=t.hostName,o=t.hostUUID,i=t.ipAddress,c=t.stateUUID;e[c]=se({},n[c],{hostName:r,hostUUID:o,ipAddress:i})})),e}),{})}))},refreshInterval:i}).isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(G.TZ,{header:"Manage changed SSH keys",loading:F,children:[(0,r.jsxs)(Z.Z,{spacing:".2em",children:[(0,r.jsx)(j.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(V.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(ie.Z,{href:t,sx:{display:"inline-flex"},target:"_blank",children:'"Man In The Middle"'})," ","attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys."]}),(0,r.jsx)(H.Z,{header:(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{width:"100%","& > :not(:last-child)":{display:{xs:"none",sm:"flex"}},"& > :last-child":{display:{xs:"initial",sm:"none"},marginLeft:0}},children:[(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(j.Ac,{children:"Host name"}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(Z.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(j.Ac,{children:"IP address"}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(oe.Z,{sx:{flexGrow:1}})]}),allowCheckAll:E,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!k,edit:!0,getListCheckboxProps:function(){return{checked:O}},listEmpty:(0,r.jsx)(j.Ac,{align:"center",children:"No conflicting keys found."}),listItems:y,onAllCheckboxChange:function(e,n){I(n)},onDelete:function(){var e,n=P.reduce((function(e,n){if(!A(n))return e;var t=y[n].hostUUID;return e[t]||(e[t]=[]),e[t].push(n),e}),{});x({actionProceedText:"Delete",content:"Resolve ".concat(P.length," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:function(){h.Z.delete("/ssh-key/conflict",{data:n}).catch((function(e){var n=(0,S.Z)(e);n.children="Failed to delete selected SSH key conflicts. ".concat(n.children),p(n)}))},proceedColour:"red",titleText:"Delete ".concat(P.length," conflicting SSH keys?")}),null===(e=s.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:function(e,n,t){T(e,t)},renderListItem:function(e,n){var t=n.hostName,o=n.ipAddress;return(0,r.jsxs)(Z.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(j.Ac,{children:t}),(0,r.jsx)(j.Ac,{children:o})]})},renderListItemCheckboxState:function(e){return A(e)}})]}),C]}),(0,r.jsx)(a.Z,se({closeOnProceed:!0},g,{ref:s}))]})};function fe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function he(e){for(var n=1;n0),l(pe,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(ye),ref:m,required:h})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(C.Z,{id:pe,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(pe)}},onFinishBatch:t(pe),tests:[{test:E.HJ},{onFailure:function(){i(pe,{children:"The passwords do not match."})},test:function(e){var n;return e.value===(null===(n=m.current.getValue)||void 0===n?void 0:n.call(null))}}]},onFirstRender:o(pe),ref:y,required:v})}}:void 0}),[t,o,v,h,i,l,p]);return(0,r.jsx)(O.Z,{columns:{xs:1,sm:2,md:3},layout:he({"common-user-input-cell-name":{children:(0,r.jsx)(I.Z,{input:(0,r.jsx)(C.Z,{id:me,inputProps:{readOnly:u},label:be,value:s}),inputTestBatch:(0,E.Gn)(be,(function(){i(me)}),{onFinishBatch:t(me)},(function(e){i(me,{children:e})})),onFirstRender:o(me),required:!0}),md:1,sm:2}},x),spacing:"1em"})},xe=t(2545),je=t(8610),we=t(6632),Pe=t(8859);function Ae(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function qe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],c=!0,l=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);c=!0);}catch(a){l=!0,o=a}finally{try{c||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||We(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e){return function(e){if(Array.isArray(e))return He(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,n){if(e){if("string"===typeof e)return He(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?He(e,n):void 0}}var Ke=function(e){var n=e.refreshInterval,t=void 0===n?6e4:n,d=(0,Y.Z)().protect,f=(0,c.useState)(!1),h=f[0],p=f[1],m=(0,c.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:h},onCancelAppend:function(){p(!1)},onProceedAppend:function(){p(!1)},titleText:""}),y=m[0],b=m[1],v=qe((0,M.Z)(void 0,d),2),g=v[0],x=v[1],j=qe((0,M.Z)("",d),2),w=j[0],P=j[1],A=(0,u.Z)("".concat(l.Z,"/host/local"),{onError:function(){P("Unknown")},onSuccess:function(e){var n=e.installTarget,t=e.shortHostName;x(n),P(t)},refreshInterval:t}),Z=A.data,O=A.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:O?"Loading...":"".concat(null===Z||void 0===Z?void 0:Z.shortHostName," Config")})}),(0,r.jsx)(s.Z,{}),(0,r.jsxs)(o.ZP,{container:!0,columns:{xs:1,md:3,lg:4},children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Be,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=$e(e,["onProceedAppend"]);b((function(e){return Ge({},e,t,{onProceedAppend:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=e.children,t=e.sx,a=u(e,["children","sx"]);return(0,r.jsx)(i.Z,s({underline:"hover",variant:"subtitle1"},a,{sx:s({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(l.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},3106:function(e,n){"use strict";n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},6028:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Qe}});var r=t(5893),o=t(8263),i=t(9008),c=t(7294),l=t(2029),a=t(157),s=t(8750),u=t(1905),d=t(3106),f=t(4188),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(){S((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){T[e].isChecked=t,C((function(e){return ie({},e)}))},renderListItem:function(e,n){var t=n.isPingTest,o=void 0!==t&&t;return(0,r.jsx)(O.Z,{row:!0,spacing:0,children:(0,r.jsxs)(O.Z,{spacing:0,children:[(0,r.jsx)(w.$_,{children:e}),(0,r.jsx)(te,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(q,{ref:s}),(0,r.jsx)(a.Z,ie({closeOnProceed:!0},v,{ref:f}))]})},ae=t(582),se=t(5741),ue=t(3906);function de(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[y]),F=(0,u.Z)("".concat(l.Z,"/ssh-key/conflict"),{onError:function(e){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,c=t.stateUUID;e[c]=pe({},n[c],{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:F,children:[(0,r.jsxs)(O.Z,{spacing:".2em",children:[(0,r.jsx)(w.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(z.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(se.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)(O.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)(O.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(w.Ac,{children:"Host name"}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(O.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(w.Ac,{children:"IP address"}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),allowCheckAll:E,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!S,edit:!0,getListCheckboxProps:function(){return{checked:A}},listEmpty:(0,r.jsx)(w.Ac,{align:"center",children:"No conflicting keys found."}),listItems:y,onAllCheckboxChange:function(e,n){I(n)},onDelete:function(){var e,n=P.reduce((function(e,n){if(!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){T(e,t)},renderListItem:function(e,n){var t=n.hostName,o=n.ipAddress;return(0,r.jsxs)(O.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)}})]}),C]}),(0,r.jsx)(a.Z,pe({closeOnProceed:!0},g,{ref:s}))]})};function ye(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e){for(var n=1;n0),l(ve,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(xe),ref:m,required:p})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(T.Z,{input:(0,r.jsx)(E.Z,{id:ve,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(ve)}},onFinishBatch:t(ve),tests:[{test:F.HJ},{onFailure:function(){i(ve,{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(ve),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:be({"common-user-input-cell-name":{children:(0,r.jsx)(T.Z,{input:(0,r.jsx)(E.Z,{id:ge,inputProps:{readOnly:u},label:je,value:s}),inputTestBatch:(0,F.Gn)(je,(function(){i(ge)}),{onFinishBatch:t(ge)},(function(e){i(ge,{children:e})})),onFirstRender:o(ge),required:!0}),md:1,sm:2}},x),spacing:"1em"})},Ze=t(2545),Ae=t(8610),Oe=t(6632),Se=t(8859);function ke(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 Xe(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)||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 Je(e){return function(e){if(Array.isArray(e))return qe(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 qe(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)?qe(e,n):void 0}}var Qe=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=Xe((0,U.Z)(void 0,d),2),g=v[0],x=v[1],j=Xe((0,U.Z)("",d),2),w=j[0],P=j[1],Z=(0,u.Z)("".concat(l.Z,"/host/local"),{onError:function(){P("Unknown")},onSuccess:function(e){var n=e.installTarget,t=e.shortHostName;x(n),P(t)},refreshInterval:t}),A=Z.data,O=Z.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:O?"Loading...":"".concat(null===A||void 0===A?void 0:A.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)($e,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=Ke(e,["onProceedAppend"]);b((function(e){return ze({},e,t,{onProceedAppend:function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var w=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,a=x(t,["sx","value"]),c=(0,l.useMemo)((function(){var e;return O((j(e={},"& .".concat(o.Z.icon),{color:g.s7}),j(e,"& .".concat(y.Z.root),{marginRight:".8em"}),j(e,"& .".concat(p.Z.root),{color:g.s7,visibility:"hidden"}),j(e,"&:hover .".concat(y.Z.root," .").concat(p.Z.root,",\n &.").concat(m.Z.focused," .").concat(y.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,l.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(v.Z,{position:"end",children:(0,r.jsx)(h.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(b.Z,O({endAdornment:s,value:u},a,{sx:c}))};function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Z=function(e){var n=e.id,t=e.label,d=e.selectItems,y=e.checkItem,p=e.disableItem,m=e.formControlProps,v=e.hideItem,h=e.inputLabelProps,b=void 0===h?{}:h,g=e.isReadOnly,j=void 0!==g&&g,O=e.messageBoxProps,x=void 0===O?{}:O,Z=e.name,C=e.onBlur,A=e.onChange,I=e.onFocus,E=e.required,M=e.selectProps,D=void 0===M?{}:M,U=D.multiple,T=D.sx,L=e.value,F=e.isCheckableItems,V=void 0===F?U:F,R=P(e.selectProps,["multiple","sx"]),_=(0,l.useMemo)((function(){return j?S(k({},"& .".concat(o.Z.icon),{visibility:"hidden"}),T):T}),[j,T]),H=(0,l.useCallback)((function(e){return V&&(0,r.jsx)(i.Z,{checked:null===y||void 0===y?void 0:y.call(null,e)})}),[y,V]),N=(0,l.useCallback)((function(e,t){return(0,r.jsxs)(c.Z,{disabled:null===p||void 0===p?void 0:p.call(null,e),sx:{display:(null===v||void 0===v?void 0:v.call(null,e))?"none":void 0},value:e,children:[H(e),t]},"".concat(n,"-").concat(e))}),[H,p,v,n]),$=(0,l.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),B=(0,l.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,l.useMemo)((function(){return t&&(0,r.jsx)(f.Z,S({htmlFor:$,isNotifyRequired:E},b,{children:t}))}),[b,E,t,$]),z=(0,l.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return N(t,void 0===r?t:r)}))}),[N,d]);return(0,r.jsxs)(u.Z,S({fullWidth:!0},m,{children:[W,(0,r.jsx)(w,S({id:$,input:B,multiple:U,name:Z,onBlur:C,onChange:A,onFocus:I,readOnly:j,value:L},R,{sx:_,children:z})),(0,r.jsx)(a.Z,S({},x))]}))}},3906:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(6607),u=t(8610);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n0}),[d.length]),m=(0,o.useMemo)((function(){return f.length>1}),[f.length]),v=(0,o.useCallback)((function(e){var n=e.confirmDialogProps,t=void 0===n?{}:n,o=e.formSummaryProps,i=void 0===o?{}:o,l=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return a({actionProceedText:"Delete",content:(0,r.jsx)(u.Z,a({entries:c,maxDepth:0,renderEntry:f},i)),onProceedAppend:s,proceedColour:"red",titleText:l(d.length)},t)}),[c,d.length]),h=(0,o.useCallback)((function(e){return c[e]}),[c]),b=(0,o.useCallback)((function(e){return s(f.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[f]),g=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:v,checklist:c,checks:d,getCheck:h,hasAllChecks:y,hasChecks:p,multipleItems:m,setAllChecks:b,setCheck:g}}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,l=void 0===o?"":o,a=e.titleText,c=void 0===a?"":a,s=u(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:l,titleText:c},s))}},7791:function(e,n,t){"use strict";var r=t(8100),o=t(2029),i=t(1200);function u(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,l=void 0===t?i.Z:t,a=n.baseUrl,c=void 0===a?o.Z:a,s=u(n,["fetcher","baseUrl"]),f=(0,r.ZP)("".concat(c).concat(e),l,s),d=f.data,y=f.error,p=!y&&!d;return{data:d,error:y,loading:p}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,o=n.hostUUID;return e[o]={name:t,type:r,uuid:o},e}),{})},o=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,o=n.anvilName,i=n.anvilUUID,u=n.hosts;return e[i]={description:t,hosts:r(u),name:o,uuid:i},e}),{})}},6474:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ae}});var r=t(5893),o=t(9008),i=t(8750),u=t(4490),l=t(7294),a=t(2029),c=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],s=new Map(c),f=t(2175),d=t(5934),y=t(46),p=t(4390),m=t(4825);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},t=n.build,r=void 0===t?function(e,n){return{children:n,type:"warning"}}:t,o=n.chain,i=void 0===o?"":o;return Object.entries(e).reduce((function(e,n){var t=g(n,2),o=t[0],u=t[1],l=String(i).length?[i,o].join("."):o;return"object"===typeof u?b({},e,j(u,{chain:l})):(e[l]=r(l,u),e)}),{})},O=j,x=t(3457),w=t(6486),k=t(4690),S=t(6125),P=t(6284),Z=t(3679),C=t(2519),A=t(7750),I=t(4188),E=t(3675);function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return M(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e){var n=function(e,n){if("object"!==F(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===F(n)?n:String(n)}var F=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var V=(0,l.forwardRef)((function(e,n){var t=e.input,r=e.onChange,o=void 0===r?function(e){for(var n,t,r=e.handlers,o=r.base,i=r.origin,u=arguments.length,l=new Array(u>1?u-1:0),a=1;ae.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[i.values,o]),O=(0,l.useMemo)((function(){return(0,r.jsx)(R,{input:(0,r.jsx)(P.Z,{id:p,label:"File name",name:p,onBlur:s,onChange:d,value:i.values[o].name})})}),[d,i.values,o,s,p]),I=(0,l.useMemo)((function(){return u&&(0,r.jsx)(Z.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("anvils"),allowCheckItem:!0,edit:!0,header:!0,listItems:n,getListCheckboxProps:function(){return b("anvils")},getListItemCheckboxProps:function(e){return g("anvils",e)},renderListItem:function(e,n){var t=n.description,o=n.name;return(0,r.jsxs)(A.Ac,{children:[o,": ",t]})}})})}),[n,j,b,g,u]),E=(0,l.useMemo)((function(){return u&&(0,r.jsx)(Z.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("drHosts"),allowCheckItem:!0,edit:!0,header:!0,listItems:t,getListCheckboxProps:function(){return b("drHosts")},getListItemCheckboxProps:function(e){return g("drHosts",e)},renderListItem:function(e,n){var t=n.hostName;return(0,r.jsx)(A.Ac,{children:t})}})})}),[t,j,b,g,u]),M=(0,l.useMemo)((function(){return a&&(0,r.jsx)(C.Z,{id:v,label:"File type",name:v,onBlur:s,onChange:f,selectItems:c.map((function(e){var n=H(e,2),t=n[0];return{displayValue:H(n[1],2)[1],value:t}})),value:i.values[o].type})}),[i.values,o,s,f,a,v]);return(0,r.jsxs)(x.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(k.Z,{sm:"row",xs:"column",children:[O,M]}),I,E]})},$=t(1770),B=t(8187),W=t(7869),z=t(6310);function q(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var G=function(e,n){return e&&Object.keys(e).reduce((function(e,t){return function(e){for(var n=1;n :first-child":{minWidth:100,overflow:"hidden",overflowWrap:"normal",textOverflow:"ellipsis",whiteSpace:"nowrap",width:{xs:"100%",md:200},wordBreak:"keep-all"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(A.Ac,{children:n}),(0,r.jsx)(ne.ko,{progressPercentage:t})]},"upload-".concat(o))}))})},re=t(2749);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);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 x=function(e){var n=e.onClearIndicatorClick,t=w(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,a=w(t,["sx","value"]),c=(0,l.useMemo)((function(){var e;return O((j(e={},"& .".concat(o.Z.icon),{color:g.s7}),j(e,"& .".concat(y.Z.root),{marginRight:".8em"}),j(e,"& .".concat(p.Z.root),{color:g.s7,visibility:"hidden"}),j(e,"&:hover .".concat(y.Z.root," .").concat(p.Z.root,",\n &.").concat(v.Z.focused," .").concat(y.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,l.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(m.Z,{position:"end",children:(0,r.jsx)(h.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(b.Z,O({endAdornment:s,value:u},a,{sx:c}))};function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Z=function(e){var n=e.id,t=e.label,d=e.selectItems,y=e.checkItem,p=e.disableItem,v=e.formControlProps,m=e.hideItem,h=e.inputLabelProps,b=void 0===h?{}:h,g=e.isReadOnly,j=void 0!==g&&g,O=e.messageBoxProps,w=void 0===O?{}:O,Z=e.name,C=e.onBlur,A=e.onChange,I=e.onFocus,E=e.required,M=e.selectProps,D=void 0===M?{}:M,U=D.multiple,T=D.sx,L=e.value,F=e.isCheckableItems,V=void 0===F?U:F,R=P(e.selectProps,["multiple","sx"]),_=(0,l.useMemo)((function(){return j?k(S({},"& .".concat(o.Z.icon),{visibility:"hidden"}),T):T}),[j,T]),H=(0,l.useCallback)((function(e){return V&&(0,r.jsx)(i.Z,{checked:null===y||void 0===y?void 0:y.call(null,e)})}),[y,V]),N=(0,l.useCallback)((function(e,t){return(0,r.jsxs)(c.Z,{disabled:null===p||void 0===p?void 0:p.call(null,e),sx:{display:(null===m||void 0===m?void 0:m.call(null,e))?"none":void 0},value:e,children:[H(e),t]},"".concat(n,"-").concat(e))}),[H,p,m,n]),$=(0,l.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),B=(0,l.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,l.useMemo)((function(){return t&&(0,r.jsx)(f.Z,k({htmlFor:$,isNotifyRequired:E},b,{children:t}))}),[b,E,t,$]),z=(0,l.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return N(t,void 0===r?t:r)}))}),[N,d]);return(0,r.jsxs)(u.Z,k({fullWidth:!0},v,{children:[W,(0,r.jsx)(x,k({id:$,input:B,multiple:U,name:Z,onBlur:C,onChange:A,onFocus:I,readOnly:j,value:L},R,{sx:_,children:z})),(0,r.jsx)(a.Z,k({},w))]}))}},3906:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(6607),u=t(8610);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n0}),[d.length]),v=(0,o.useMemo)((function(){return f.length>1}),[f.length]),m=(0,o.useCallback)((function(e){var n=e.confirmDialogProps,t=void 0===n?{}:n,o=e.formSummaryProps,i=void 0===o?{}:o,l=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return a({actionProceedText:"Delete",content:(0,r.jsx)(u.Z,a({entries:c,maxDepth:0,renderEntry:f},i)),onProceedAppend:s,proceedColour:"red",titleText:l(d.length)},t)}),[c,d.length]),h=(0,o.useCallback)((function(e){return c[e]}),[c]),b=(0,o.useCallback)((function(){return s({})}),[]),g=(0,o.useCallback)((function(e){return s(f.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[f]),j=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:m,checklist:c,checks:d,getCheck:h,hasAllChecks:y,hasChecks:p,multipleItems:v,resetChecks:b,setAllChecks:g,setCheck:j}}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,l=void 0===o?"":o,a=e.titleText,c=void 0===a?"":a,s=u(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:l,titleText:c},s))}},7791:function(e,n,t){"use strict";var r=t(8100),o=t(2029),i=t(1200);function u(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,l=void 0===t?i.Z:t,a=n.baseUrl,c=void 0===a?o.Z:a,s=u(n,["fetcher","baseUrl"]),f=(0,r.ZP)("".concat(c).concat(e),l,s),d=f.data,y=f.error,p=!y&&!d;return{data:d,error:y,loading:p}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,o=n.hostUUID;return e[o]={name:t,type:r,uuid:o},e}),{})},o=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,o=n.anvilName,i=n.anvilUUID,u=n.hosts;return e[i]={description:t,hosts:r(u),name:o,uuid:i},e}),{})}},9132:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ue}});var r=t(5893),o=t(9008),i=t(8750),u=t(4490),l=t(7294),a=t(2029),c=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],s=new Map(c),f=t(2175),d=t(5934),y=t(46),p=t(4390),v=t(4825);function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},t=n.build,r=void 0===t?function(e,n){return{children:n,type:"warning"}}:t,o=n.chain,i=void 0===o?"":o;return Object.entries(e).reduce((function(e,n){var t=g(n,2),o=t[0],u=t[1],l=String(i).length?[i,o].join("."):o;return"object"===typeof u?b({},e,j(u,{chain:l})):(e[l]=r(l,u),e)}),{})},O=j,w=t(3457),x=t(6486),S=t(4690),k=t(6125),P=t(6284),Z=t(3679),C=t(2519),A=t(7750),I=t(4188),E=t(3675);function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return M(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e){var n=function(e,n){if("object"!==F(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===F(n)?n:String(n)}var F=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var V=(0,l.forwardRef)((function(e,n){var t=e.input,r=e.onChange,o=void 0===r?function(e){for(var n,t,r=e.handlers,o=r.base,i=r.origin,u=arguments.length,l=new Array(u>1?u-1:0),a=1;ae.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[i.values,o]),O=(0,l.useMemo)((function(){return(0,r.jsx)(R,{input:(0,r.jsx)(P.Z,{id:p,label:"File name",name:p,onBlur:s,onChange:d,value:i.values[o].name})})}),[d,i.values,o,s,p]),I=(0,l.useMemo)((function(){return u&&(0,r.jsx)(Z.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(k.Z,{allowCheckAll:j("anvils"),allowCheckItem:!0,edit:!0,header:!0,listItems:n,getListCheckboxProps:function(){return b("anvils")},getListItemCheckboxProps:function(e){return g("anvils",e)},renderListItem:function(e,n){var t=n.description,o=n.name;return(0,r.jsxs)(A.Ac,{children:[o,": ",t]})}})})}),[n,j,b,g,u]),E=(0,l.useMemo)((function(){return u&&(0,r.jsx)(Z.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(k.Z,{allowCheckAll:j("drHosts"),allowCheckItem:!0,edit:!0,header:!0,listItems:t,getListCheckboxProps:function(){return b("drHosts")},getListItemCheckboxProps:function(e){return g("drHosts",e)},renderListItem:function(e,n){var t=n.hostName;return(0,r.jsx)(A.Ac,{children:t})}})})}),[t,j,b,g,u]),M=(0,l.useMemo)((function(){return a&&(0,r.jsx)(C.Z,{id:m,label:"File type",name:m,onBlur:s,onChange:f,selectItems:c.map((function(e){var n=H(e,2),t=n[0];return{displayValue:H(n[1],2)[1],value:t}})),value:i.values[o].type})}),[i.values,o,s,f,a,m]);return(0,r.jsxs)(w.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(S.Z,{sm:"row",xs:"column",children:[O,M]}),I,E]})},$=t(1770),B=t(8187),W=t(7869),z=t(6310);function q(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var G=function(e,n){return e&&Object.keys(e).reduce((function(e,t){return function(e){for(var n=1;n :first-child":{minWidth:100,overflow:"hidden",overflowWrap:"normal",textOverflow:"ellipsis",whiteSpace:"nowrap",width:{xs:"100%",md:200},wordBreak:"keep-all"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(A.Ac,{children:n}),(0,r.jsx)(ne.ko,{progressPercentage:t})]},"upload-".concat(o))}))})},re=t(2749);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:{},n=e.onError,t=e.onData,r=e.url,o=void 0===r?"":r,i=we((0,re.Z)(!1),2),u=i[0],a=i[1],c=(0,l.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="".concat(o).concat(e);r&&(a(!0),p.Z.get(r).then((function(e){var n=e.data;null===t||void 0===t||t.call(null,n)})).catch((function(e){var t=(0,$.Z)(e);null===n||void 0===n||n.call(null,t)})).finally((function(){a(!1)})))}),[o,a,n,t]);return{fetch:c,loading:u}},Se=t(3906),ke=t(6632),Pe=t(7791);function Ze(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Ee(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,l=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(a){l=!0,o=a}finally{try{u||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return Ze(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ze(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Me=function(e){return e.reduce((function(e,n){var t=Ee(n,5),r=t[0],o=t[1],i=t[2],u=t[3],l=t[4];return e[r]={checksum:l,name:o,size:i,type:u,uuid:r},e}),{})},De=function(){var e=(0,l.useRef)(null),n=(0,l.useRef)({}),t=(0,l.useRef)(null),o=(0,l.useRef)({}),i=Ee((0,ke.Z)(),2),c=i[0],f=i[1],d=(0,l.useState)(!1),y=d[0],v=d[1],m=Ee((0,re.Z)(void 0),2),h=m[0],b=m[1],g=Ee((0,re.Z)(void 0),2),j=g[0],O=g[1],w=(0,ge.Z)("".concat(a.Z,"/file"),{onSuccess:function(e){O(Me(e))}}).isLoading,x=xe({onData:function(e){return O(Me(e))},url:"/file"}),P=x.fetch,C=x.loading,I=(0,l.useMemo)((function(){return w||C}),[C,w]),E=(0,Se.Z)({list:j}),M=E.buildDeleteDialogProps,D=E.checks,U=E.getCheck,T=E.hasAllChecks,L=E.hasChecks,F=E.multipleItems,V=E.resetChecks,R=E.setAllChecks,_=E.setCheck,H=(0,l.useCallback)((function(e){var n;return null===(n=o.current.setMessage)||void 0===n?void 0:n.call(null,"api",e)}),[]),N=xe({onData:function(e){return b(function(e){var n=e[0];if(n){var t=Ee(n,5),r=t[0],o=t[1],i=t[2],u=t[3],l=t[4];return e.reduce((function(e,n){var t=n[5],r=n[6],o=n[7],i=n[8],u=n[9],l=n[10],a=n[11],c=n[12];e.anvils[o]||(e.anvils[o]={description:u,locationUuids:[],name:i,uuid:o}),e.hosts[l]||(e.hosts[l]={locationUuids:[],name:a,type:c,uuid:l}),"dr"===c?e.hosts[l].locationUuids.push(t):e.anvils[o].locationUuids.push(t);var s=1===Number(r);return e.locations[t]={anvilUuid:o,active:s,hostUuid:l,uuid:t},e}),{anvils:{},checksum:l,hosts:{},locations:{},name:o,size:i,type:u,uuid:r})}}(e))},onError:function(e){var n=e.children,t=Ie(e,["children"]);H(Ae({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get file detail. ",n]})},t))},url:"/file/"}),$=N.fetch,B=N.loading,z=(0,Pe.Z)("/anvil",{onError:function(e){H({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get node list. ",e]}),type:"warning"})}}),q=z.data,G=z.loading,K=(0,l.useMemo)((function(){return q&&(0,se.Z)(q)}),[q]),J=(0,Pe.Z)("/host?types=dr",{onError:function(e){H({children:(0,r.jsxs)(r.Fragment,{children:["Failed to get DR host list. ",e]}),type:"warning"})}}),X=J.data,Q=J.loading,Y=(0,l.useMemo)((function(){return(0,r.jsx)(k.Z,{allowCheckAll:F,allowEdit:!0,allowItemButton:y,disableDelete:!L,edit:y,getListCheckboxProps:function(){return{checked:T,onChange:function(e,n){R(n)}}},getListItemCheckboxProps:function(e){return{checked:U(e),onChange:function(n,t){_(e,t)}}},header:!0,listEmpty:"No file(s) found.",listItems:j,onAdd:function(){var n;null===(n=e.current)||void 0===n||n.setOpen(!0)},onDelete:function(){var e;f(M({onProceedAppend:function(){var e=D.map((function(e){return p.Z.delete("/file/".concat(e))}));Promise.all(e).then((function(){return P()})),V()},getConfirmDialogTitle:function(e){return"Delete the following ".concat(e," file(s)?")},renderEntry:function(e){var n=e.key;return(0,r.jsx)(A.Ac,{children:null===j||void 0===j?void 0:j[n].name})}})),null===(e=n.current.setOpen)||void 0===e||e.call(null,!0)},onEdit:function(){v((function(e){return!e}))},onItemClick:function(e,n){var r;null===(r=t.current)||void 0===r||r.setOpen(!0),$(n)},renderListItem:function(e,n){var t,o=n.checksum,i=n.name,l=n.size,a=n.type;return(0,r.jsxs)(S.Z,{columnSpacing:0,fullWidth:!0,md:"row",xs:"column",children:[(0,r.jsxs)(S.Z,{spacing:0,flexGrow:1,children:[(0,r.jsxs)(S.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(A.$_,{children:i}),(0,r.jsx)(ye.Z,{flexItem:!0,orientation:"vertical"}),(0,r.jsx)(A.Ac,{children:null===(t=s.get(a))||void 0===t?void 0:t[1]})]}),(0,r.jsx)(A.Ac,{children:(0,u._d)(l,{toUnit:"ibyte"})})]}),(0,r.jsx)(A.$_,{children:o})]})}})}),[M,D,y,j,U,$,P,T,L,F,V,R,_,f]),ee=(0,l.useMemo)((function(){return I?(0,r.jsx)(je.Z,{}):Y}),[I,Y]),ne=(0,l.useMemo)((function(){return(0,r.jsx)(W.Z,{count:1,ref:o,usePlaceholder:!1})}),[]),te=(0,l.useMemo)((function(){return w||G||Q}),[G,Q,w]),oe=(0,l.useMemo)((function(){return w||G||Q||B}),[G,Q,B,w]),ie=(0,l.useMemo)((function(){return K&&X&&(0,r.jsx)(ce,{anvils:K,drHosts:X})}),[K,X]),ue=(0,l.useMemo)((function(){return K&&X&&h&&(0,r.jsx)(be,{anvils:K,drHosts:X,onSuccess:function(){P()},previous:h})}),[K,X,h,P]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(Z.s_,{children:[(0,r.jsx)(Z.V9,{children:(0,r.jsx)(A.z,{children:"Files"})}),ne,ee]}),(0,r.jsx)(de.Js,{header:"Add file(s)",loading:te,ref:e,showClose:!0,wide:!0,children:ie}),(0,r.jsx)(de.Js,{header:"Update file ".concat(null===h||void 0===h?void 0:h.name),loading:oe,ref:t,showClose:!0,wide:!0,children:ue}),(0,r.jsx)(fe.Z,Ae({closeOnProceed:!0,wide:!0},c,{ref:n}))]})},Ue=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{children:(0,r.jsx)("title",{children:"File Manager"})}),(0,r.jsx)(i.Z,{}),(0,r.jsx)(De,{})]})}}},function(e){e.O(0,[662,412,438,894,182,176,62,195,157,48,774,888,179],(function(){return n=8283,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js b/striker-ui/out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js new file mode 100644 index 00000000..f7cae4d6 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/index-0bfb652a4f03dc4d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(9048)}])},7504:function(e,n,t){"use strict";var r=t(5893),i=t(7294),o=t(8263),c=t(7357);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],c=!0,a=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);c=!0);}catch(s){a=!0,i=s}finally{try{c||null==t.return||t.return()}finally{if(a)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.Z=function(e){var n=e.calculateItemBreakpoints,t=void 0===n?function(){return{xs:1}}:n,a=e.layout,s=e.wrapperBoxProps,f=u(e,["calculateItemBreakpoints","layout","wrapperBoxProps"]),h=(0,i.useMemo)((function(){return Object.entries(a).map((function(e,n){var r=d(e,2),c=r[0],a=r[1],s=c;return a?(0,i.createElement)(o.ZP,l({},t(n,s),{key:s,item:!0},a)):void 0}))}),[t,a]);return(0,r.jsx)(c.Z,l({},s,{children:(0,r.jsx)(o.ZP,l({container:!0},f,{children:h}))}))}},5741:function(e,n,t){"use strict";var r=t(5893),i=t(1714),o=t(122),c=t(7169),a=t(4690);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=e.children,t=e.sx,s=u(e,["children","sx"]);return(0,r.jsx)(o.Z,l({underline:"hover",variant:"subtitle1"},s,{sx:l({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(i.Z,{sx:{marginLeft:".3em"}})]})}))}},7791:function(e,n,t){"use strict";var r=t(8100),i=t(2029),o=t(1200);function c(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,a=void 0===t?o.Z:t,s=n.baseUrl,l=void 0===s?i.Z:s,u=c(n,["fetcher","baseUrl"]),d=(0,r.ZP)("".concat(l).concat(e),a,u),f=d.data,h=d.error,m=!h&&!f;return{data:f,error:h,loading:m}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,i=n.hostUUID;return e[i]={name:t,type:r,uuid:i},e}),{})},i=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,i=n.anvilName,o=n.anvilUUID,c=n.hosts;return e[o]={description:t,hosts:r(c),name:i,uuid:o},e}),{})}},9048:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var r=t(5893),i=t(2428),o=t(8263),c=t(7357),a=t(7720),s=t(9008),l=t(7294),u=t(2029),d=t(7169),f=t(8673),h=t(4490),m=function(e){var n=e.anvil_name,t=e.anvil_state,r=e.anvil_uuid;return{hosts:e.hosts.reduce((function(e,n){var t=n.host_name,r=n.host_uuid,i=n.maintenance_mode,o=n.server_count,c=n.state,a=n.state_percent;return e[r]={name:t,maintenance:i,serverCount:o,state:c,stateProgress:a,uuid:r},e}),{}),name:n,state:t,uuid:r}},v=function(e){var n=e.allocated,t=e.reserved,r=e.total;return{allocated:BigInt(n),reserved:BigInt(t),total:BigInt(r)}},x=function(e){var n=e.storage_groups,t=e.total_free,r=e.total_size,i=BigInt(t),o=BigInt(r);return n.reduce((function(e,n){var t=n.storage_group_free,r=n.storage_group_name,i=n.storage_group_total,o=n.storage_group_uuid,c=BigInt(t),a=BigInt(i);return e.storageGroups[o]={free:c,name:r,size:a,uuid:o},e}),{storageGroups:{},totalFree:i,totalSize:o})},j=t(582),p=t(4690),g=t(2152),b=t(5813),y=t(7750),Z=t(7791);function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var P=BigInt(100),w={degraded:d.hM,not_ready:d.Wd,optimal:d.Ej},_={offline:d.Wd,online:d.Ej},S=function(e){var n=e.anvilUuid,t=(0,Z.Z)("/anvil/".concat(n)),i=t.data,c=t.loading,a=(0,l.useMemo)((function(){return i&&m(i)}),[i]),s=(0,Z.Z)("/anvil/".concat(n,"/cpu")),u=s.data,S=s.loading,I=(0,l.useMemo)((function(){return u&&Object.values(u.hosts)}),[u]),A=(0,Z.Z)("/anvil/".concat(n,"/memory")),U=A.data,C=A.loading,E=(0,l.useMemo)((function(){return U&&v(U)}),[U]),M=(0,Z.Z)("/anvil/".concat(n,"/store")),B=M.data,k=M.loading,N=(0,l.useMemo)((function(){return B&&x(B)}),[B]),D=(0,l.useMemo)((function(){return[c,S,C,k].some((function(e){return e}))}),[c,S,C,k]),T=(0,l.useMemo)((function(){return a&&(0,r.jsx)(y.$_,{inheritColour:!0,color:w[a.state],children:a.state})}),[a]),z=(0,l.useMemo)((function(){return a&&(0,r.jsx)(o.ZP,{alignItems:"center",columns:20,columnSpacing:"0.5em",container:!0,sx:O({},"& > .".concat(f.Z.item,":nth-child(-n + 4)"),{marginBottom:"-.6em"}),children:Object.values(a.hosts).map((function(e){var n,t,i=e.name,c=e.serverCount,a=e.state,s=e.stateProgress,l=e.uuid,u=null!==(n=_[a])&&void 0!==n?n:d.s7,f=a;return["offline","online"].includes(a)?t=(0,r.jsx)(y.$_,{variant:"caption",children:c}):f="".concat(s,"%"),[(0,r.jsx)(o.ZP,{item:!0,xs:7,children:(0,r.jsx)(y.Ac,{variant:"caption",whiteSpace:"nowrap",children:i})},"".concat(l,"-state-label")),(0,r.jsx)(o.ZP,{item:!0,xs:5,children:(0,r.jsx)(y.$_,{inheritColour:!0,color:u,children:f})},"".concat(l,"-state")),(0,r.jsx)(o.ZP,{item:!0,xs:!0,children:(0,r.jsx)(j.Z,{sx:{marginBottom:"-.4em"}})},"".concat(l,"-divider")),(0,r.jsx)(o.ZP,{item:!0,width:"2.2em",children:t&&(0,r.jsx)(y.Ac,{variant:"caption",children:"Servers"})},"".concat(l,"-server-label")),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",width:"2em",children:t},"".concat(l,"-server-count"))]}))})}),[a]),$=(0,l.useMemo)((function(){return u&&I&&(0,r.jsxs)(p.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(p.Z,{spacing:0,children:(0,r.jsxs)(y.Ac,{variant:"caption",whiteSpace:"nowrap",children:["Vendor"," ",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:I[0].vendor})]})}),(0,r.jsx)(j.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(o.ZP,{alignItems:"center",columns:2,container:!0,sx:O({width:"3.7em"},"& > .".concat(f.Z.item,":nth-child(-n + 2)"),{marginBottom:"-.6em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{variant:"caption",children:"Cores"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(y.$_,{variant:"caption",children:u.cores})}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{variant:"caption",children:"Threads"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(y.$_,{variant:"caption",children:u.threads})})]})]})}),[u,I]),W=(0,l.useMemo)((function(){return E&&(0,r.jsxs)(p.Z,{spacing:0,children:[(0,r.jsx)(p.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(y.Ac,{mb:"-.3em",variant:"caption",children:["Free",(0,r.jsx)(y.Q0,{children:(0,h._d)(E.total-(E.reserved+E.allocated),{toUnit:"ibyte"})}),"/",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:(0,h._d)(E.total,{toUnit:"ibyte"})})]})}),(0,r.jsx)(b.Z,{thin:!0,value:{reserved:{value:Number(E.reserved*P/E.total)},allocated:{value:Number((E.reserved+E.allocated)*P/E.total),colour:{0:d.Ej,70:d.Wd,90:d.hM}}}})]})}),[E]),F=(0,l.useMemo)((function(){return N&&(0,r.jsxs)(p.Z,{spacing:0,children:[(0,r.jsx)(p.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(y.Ac,{mb:"-.3em",variant:"caption",children:["Total free",(0,r.jsx)(y.Q0,{children:(0,h._d)(N.totalFree,{toUnit:"ibyte"})}),"/",(0,r.jsx)(y.Q0,{sx:{paddingRight:0},children:(0,h._d)(N.totalSize,{toUnit:"ibyte"})})]})}),(0,r.jsx)(b.Z,{thin:!0,value:{allocated:{value:Number((N.totalSize-N.totalFree)*P/N.totalSize),colour:{0:d.Ej,70:d.Wd,90:d.hM}}}})]})}),[N]);return D?(0,r.jsx)(g.Z,{mt:0}):(0,r.jsxs)(o.ZP,{alignItems:"center",columns:4,container:!0,sx:O({},"& > .".concat(f.Z.item,":nth-child(odd)"),{alignItems:"center",display:"flex",height:"2.2em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Node"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:T}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Subnodes"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:z}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"CPU"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:$}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Memory"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:W}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Ac,{children:"Storage"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:F})]})},I=t(8669),A=t(7504),U=t(3679);var C=function(){var e=(0,Z.Z)("/anvil",{refreshInterval:5e3}),n=e.data,t=e.loading,i=(0,l.useMemo)((function(){return n&&(0,I.Z)(n)}),[n]),o=(0,l.useMemo)((function(){return i&&(0,r.jsx)(A.Z,{columns:{xs:1,sm:2,md:3,xl:4},layout:Object.values(i).reduce((function(e,n){var t=n.description,i=n.name,o=n.uuid;return e["anvil-".concat(o)]={children:(0,r.jsxs)(U.Lg,{height:"100%",mv:0,children:[(0,r.jsx)(U.CH,{children:(0,r.jsxs)(y.Ac,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[i,": ",t]})}),(0,r.jsx)(U.bc,{children:(0,r.jsx)(S,{anvilUuid:o})})]})},e}),{}),spacing:"1em",sx:(e={alignContent:"stretch"},n="& > .".concat(f.Z.item),t={minWidth:"20em"},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e)});var e,n,t}),[i]);return(0,r.jsxs)(U.s_,{children:[(0,r.jsx)(U.V9,{children:(0,r.jsx)(y.z,{children:"Nodes"})}),t?(0,r.jsx)(g.Z,{}):o]})},E=t(5094),M=t(1200),B=t(8750),k=t(1706),N=t(5741),D=t(9),T=t(1905),z=t(7698),$=t(9370);function W(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t div":{height:"100%",marginBottom:0,marginTop:0}},xs:1,children:(0,r.jsx)(E.M,{externalPreview:a,externalTimestamp:d,headerEndAdornment:[(0,r.jsx)(N.Z,{href:"/server?uuid=".concat(u,"&server_name=").concat(s,"&server_state=").concat(l),children:s},"server_list_to_server_".concat(u)),(0,r.jsx)(N.Z,{href:"/anvil?anvil_uuid=".concat(t),sx:{opacity:.7},children:n},"server_list_server_".concat(u,"_to_anvil_").concat(t))],hrefPreview:"/server?uuid=".concat(u,"&server_name=").concat(s,"&server_state=").concat(l,"&vnc=1"),isExternalLoading:c,isExternalPreviewStale:i,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,serverState:l,serverUUID:u})},"".concat(u,"-preview"))}))})},G=function(e,n){return""===n?{exclude:e,include:[]}:e.reduce((function(e,t){return t.serverName.includes(n)?e.include.push(t):e.exclude.push(t),e}),{exclude:[],include:[]})},V=function(){var e=(0,l.useRef)(!0),n=(0,l.useState)([]),t=n[0],o=n[1],f=(0,l.useState)([]),h=f[0],m=f[1],v=(0,l.useState)([]),x=v[0],j=v[1],p=(0,l.useState)(""),b=p[0],Z=p[1],O=(0,l.useState)(!1),P=O[0],w=O[1],_=function(){for(var n=arguments.length,t=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(n){var i,c=n.serverUUID,a=Q({},n,{loading:!0,screenshot:(null===(i=t.find((function(e){return e.serverUUID===c})))||void 0===i?void 0:i.screenshot)||"",timestamp:0});return(0,M.Z)("".concat(u.Z,"/server/").concat(c,"?ss=1")).then((function(n){var t=n.screenshot,i=n.timestamp;if(0!==t.length){a.isScreenshotStale=!(0,$.Z$)(i,300),a.loading=!1,a.screenshot=t,a.timestamp=i;var c=L(r);e.current&&o(c)}})).catch((function(){a.isScreenshotStale=!0})).finally((function(){a.loading=!1})),a}));o(r),_(r,b)},refreshInterval:6e4}).isLoading;return(0,l.useEffect)((function(){return function(){e.current=!1}}),[]),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(s.default,{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsx)(B.Z,{}),(0,r.jsx)(U.s_,{children:S?(0,r.jsx)(g.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(U.V9,{sx:{marginBottom:"2em"},children:[(0,r.jsx)(y.z,{children:"Servers"}),(0,r.jsx)(k.Z,{onClick:function(){return w(!0)},children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(D.Z,{placeholder:"Search by server name",onChange:function(e){var n=e.target.value;Z(n),_(t,n)},sx:{minWidth:"16em"},value:b})]}),R(x),x.length>0&&(0,r.jsx)(a.Z,{sx:{backgroundColor:d.d}}),R(h)]})}),(0,r.jsx)(C,{}),(0,r.jsx)(z.Z,{dialogProps:{open:P},onClose:function(){w(!1)}})]})}}},function(e){e.O(0,[412,438,894,182,209,82,62,195,27,157,707,94,774,888,179],(function(){return n=5301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/index-e5b260a0ddaa050c.js b/striker-ui/out/_next/static/chunks/pages/index-e5b260a0ddaa050c.js deleted file mode 100644 index 2e30507b..00000000 --- a/striker-ui/out/_next/static/chunks/pages/index-e5b260a0ddaa050c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(9048)}])},7504:function(e,n,t){"use strict";var r=t(5893),i=t(7294),o=t(8263),c=t(7357);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],c=!0,a=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);c=!0);}catch(s){a=!0,i=s}finally{try{c||null==t.return||t.return()}finally{if(a)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.Z=function(e){var n=e.calculateItemBreakpoints,t=void 0===n?function(){return{xs:1}}:n,a=e.layout,s=e.wrapperBoxProps,f=u(e,["calculateItemBreakpoints","layout","wrapperBoxProps"]),h=(0,i.useMemo)((function(){return Object.entries(a).map((function(e,n){var r=d(e,2),c=r[0],a=r[1],s=c;return a?(0,i.createElement)(o.ZP,l({},t(n,s),{key:s,item:!0},a)):void 0}))}),[t,a]);return(0,r.jsx)(c.Z,l({},s,{children:(0,r.jsx)(o.ZP,l({container:!0},f,{children:h}))}))}},5741:function(e,n,t){"use strict";var r=t(5893),i=t(1714),o=t(122),c=t(7169),a=t(4690);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=e.children,t=e.sx,s=u(e,["children","sx"]);return(0,r.jsx)(o.Z,l({underline:"hover",variant:"subtitle1"},s,{sx:l({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(i.Z,{sx:{marginLeft:".3em"}})]})}))}},7791:function(e,n,t){"use strict";var r=t(8100),i=t(2029),o=t(1200);function c(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,a=void 0===t?o.Z:t,s=n.baseUrl,l=void 0===s?i.Z:s,u=c(n,["fetcher","baseUrl"]),d=(0,r.ZP)("".concat(l).concat(e),a,u),f=d.data,h=d.error,m=!h&&!f;return{data:f,error:h,loading:m}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,i=n.hostUUID;return e[i]={name:t,type:r,uuid:i},e}),{})},i=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,i=n.anvilName,o=n.anvilUUID,c=n.hosts;return e[o]={description:t,hosts:r(c),name:i,uuid:o},e}),{})}},9048:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return X}});var r=t(5893),i=t(2428),o=t(8263),c=t(7357),a=t(7720),s=t(9008),l=t(1163),u=t(7294),d=t(2029),f=t(7169),h=t(8673),m=t(4490),v=function(e){var n=e.anvil_name,t=e.anvil_state,r=e.anvil_uuid;return{hosts:e.hosts.reduce((function(e,n){var t=n.host_name,r=n.host_uuid,i=n.maintenance_mode,o=n.server_count,c=n.state,a=n.state_percent;return e[r]={name:t,maintenance:i,serverCount:o,state:c,stateProgress:a,uuid:r},e}),{}),name:n,state:t,uuid:r}},x=function(e){var n=e.allocated,t=e.reserved,r=e.total;return{allocated:BigInt(n),reserved:BigInt(t),total:BigInt(r)}},j=function(e){var n=e.storage_groups,t=e.total_free,r=e.total_size,i=BigInt(t),o=BigInt(r);return n.reduce((function(e,n){var t=n.storage_group_free,r=n.storage_group_name,i=n.storage_group_total,o=n.storage_group_uuid,c=BigInt(t),a=BigInt(i);return e.storageGroups[o]={free:c,name:r,size:a,uuid:o},e}),{storageGroups:{},totalFree:i,totalSize:o})},p=t(582),g=t(4690),b=t(2152),y=t(5813),Z=t(7750),O=t(7791);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}var w=BigInt(100),_={degraded:f.hM,not_ready:f.Wd,optimal:f.Ej},S={offline:f.Wd,online:f.Ej},I=function(e){var n=e.anvilUuid,t=(0,O.Z)("/anvil/".concat(n)),i=t.data,c=t.loading,a=(0,u.useMemo)((function(){return i&&v(i)}),[i]),s=(0,O.Z)("/anvil/".concat(n,"/cpu")),l=s.data,d=s.loading,I=(0,u.useMemo)((function(){return l&&Object.values(l.hosts)}),[l]),A=(0,O.Z)("/anvil/".concat(n,"/memory")),U=A.data,C=A.loading,E=(0,u.useMemo)((function(){return U&&x(U)}),[U]),M=(0,O.Z)("/anvil/".concat(n,"/store")),B=M.data,k=M.loading,N=(0,u.useMemo)((function(){return B&&j(B)}),[B]),D=(0,u.useMemo)((function(){return[c,d,C,k].some((function(e){return e}))}),[c,d,C,k]),T=(0,u.useMemo)((function(){return a&&(0,r.jsx)(Z.$_,{inheritColour:!0,color:_[a.state],children:a.state})}),[a]),z=(0,u.useMemo)((function(){return a&&(0,r.jsx)(o.ZP,{alignItems:"center",columns:20,columnSpacing:"0.5em",container:!0,sx:P({},"& > .".concat(h.Z.item,":nth-child(-n + 4)"),{marginBottom:"-.6em"}),children:Object.values(a.hosts).map((function(e){var n,t,i=e.name,c=e.serverCount,a=e.state,s=e.stateProgress,l=e.uuid,u=null!==(n=S[a])&&void 0!==n?n:f.s7,d=a;return["offline","online"].includes(a)?t=(0,r.jsx)(Z.$_,{variant:"caption",children:c}):d="".concat(s,"%"),[(0,r.jsx)(o.ZP,{item:!0,xs:7,children:(0,r.jsx)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:i})},"".concat(l,"-state-label")),(0,r.jsx)(o.ZP,{item:!0,xs:5,children:(0,r.jsx)(Z.$_,{inheritColour:!0,color:u,children:d})},"".concat(l,"-state")),(0,r.jsx)(o.ZP,{item:!0,xs:!0,children:(0,r.jsx)(p.Z,{sx:{marginBottom:"-.4em"}})},"".concat(l,"-divider")),(0,r.jsx)(o.ZP,{item:!0,width:"2.2em",children:t&&(0,r.jsx)(Z.Ac,{variant:"caption",children:"Servers"})},"".concat(l,"-server-label")),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",width:"2em",children:t},"".concat(l,"-server-count"))]}))})}),[a]),$=(0,u.useMemo)((function(){return l&&I&&(0,r.jsxs)(g.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(g.Z,{spacing:0,children:(0,r.jsxs)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:["Vendor"," ",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:I[0].vendor})]})}),(0,r.jsx)(p.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(o.ZP,{alignItems:"center",columns:2,container:!0,sx:P({width:"3.7em"},"& > .".concat(h.Z.item,":nth-child(-n + 2)"),{marginBottom:"-.6em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Cores"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.cores})}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Threads"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.threads})})]})]})}),[l,I]),W=(0,u.useMemo)((function(){return E&&(0,r.jsxs)(g.Z,{spacing:0,children:[(0,r.jsx)(g.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Free",(0,r.jsx)(Z.Q0,{children:(0,m._d)(E.total-(E.reserved+E.allocated),{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,m._d)(E.total,{toUnit:"ibyte"})})]})}),(0,r.jsx)(y.Z,{thin:!0,value:{reserved:{value:Number(E.reserved*w/E.total)},allocated:{value:Number((E.reserved+E.allocated)*w/E.total),colour:{0:f.Ej,70:f.Wd,90:f.hM}}}})]})}),[E]),F=(0,u.useMemo)((function(){return N&&(0,r.jsxs)(g.Z,{spacing:0,children:[(0,r.jsx)(g.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Total free",(0,r.jsx)(Z.Q0,{children:(0,m._d)(N.totalFree,{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,m._d)(N.totalSize,{toUnit:"ibyte"})})]})}),(0,r.jsx)(y.Z,{thin:!0,value:{allocated:{value:Number((N.totalSize-N.totalFree)*w/N.totalSize),colour:{0:f.Ej,70:f.Wd,90:f.hM}}}})]})}),[N]);return D?(0,r.jsx)(b.Z,{mt:0}):(0,r.jsxs)(o.ZP,{alignItems:"center",columns:4,container:!0,sx:P({},"& > .".concat(h.Z.item,":nth-child(odd)"),{alignItems:"center",display:"flex",height:"2.2em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Node"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:T}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Subnodes"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:z}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"CPU"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:$}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Memory"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:W}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Storage"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:F})]})},A=t(8669),U=t(7504),C=t(3679);var E=function(){var e=(0,O.Z)("/anvil",{refreshInterval:5e3}),n=e.data,t=e.loading,i=(0,u.useMemo)((function(){return n&&(0,A.Z)(n)}),[n]),o=(0,u.useMemo)((function(){return i&&(0,r.jsx)(U.Z,{columns:{xs:1,sm:2,md:3,xl:4},layout:Object.values(i).reduce((function(e,n){var t=n.description,i=n.name,o=n.uuid;return e["anvil-".concat(o)]={children:(0,r.jsxs)(C.Lg,{height:"100%",mv:0,children:[(0,r.jsx)(C.CH,{children:(0,r.jsxs)(Z.Ac,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[i,": ",t]})}),(0,r.jsx)(C.bc,{children:(0,r.jsx)(I,{anvilUuid:o})})]})},e}),{}),spacing:"1em",sx:(e={alignContent:"stretch"},n="& > .".concat(h.Z.item),t={minWidth:"20em"},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e)});var e,n,t}),[i]);return(0,r.jsxs)(C.s_,{children:[(0,r.jsx)(C.V9,{children:(0,r.jsx)(Z.z,{children:"Nodes"})}),t?(0,r.jsx)(b.Z,{}):o]})},M=t(5094),B=t(1200),k=t(8750),N=t(1706),D=t(5741),T=t(9),z=t(1905),$=t(7698),W=t(9370);function F(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t div":{height:"100%",marginBottom:0,marginTop:0}},xs:1,children:(0,r.jsx)(M.M,{externalPreview:s,externalTimestamp:f,headerEndAdornment:[(0,r.jsx)(D.Z,{href:"/server?uuid=".concat(d,"&server_name=").concat(l,"&server_state=").concat(u),children:l},"server_list_to_server_".concat(d)),(0,r.jsx)(D.Z,{href:"/anvil?anvil_uuid=".concat(i),sx:{opacity:.7},children:t},"server_list_server_".concat(d,"_to_anvil_").concat(i))],isExternalLoading:a,isExternalPreviewStale:c,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,onClickPreview:function(){n.push("/server?uuid=".concat(d,"&server_name=").concat(l,"&server_state=").concat(u,"&vnc=1"))},serverState:u,serverUUID:d})},"".concat(d,"-preview"))}))})},V=function(e,n){return""===n?{exclude:e,include:[]}:e.reduce((function(e,t){return t.serverName.includes(n)?e.include.push(t):e.exclude.push(t),e}),{exclude:[],include:[]})},X=function(){var e=(0,u.useRef)(!0),n=(0,l.useRouter)(),t=(0,u.useState)([]),o=t[0],h=t[1],m=(0,u.useState)([]),v=m[0],x=m[1],j=(0,u.useState)([]),p=j[0],g=j[1],y=(0,u.useState)(""),O=y[0],P=y[1],w=(0,u.useState)(!1),_=w[0],S=w[1],I=function(){for(var n=arguments.length,t=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],t=n.map((function(n){var r,i=n.serverUUID,c=R({},n,{loading:!0,screenshot:(null===(r=o.find((function(e){return e.serverUUID===i})))||void 0===r?void 0:r.screenshot)||"",timestamp:0});return(0,B.Z)("".concat(d.Z,"/server/").concat(i,"?ss=1")).then((function(n){var r=n.screenshot,i=n.timestamp;if(0!==r.length){c.isScreenshotStale=!(0,W.Z$)(i,300),c.loading=!1,c.screenshot=r,c.timestamp=i;var o=L(t);e.current&&h(o)}})).catch((function(){c.isScreenshotStale=!0})).finally((function(){c.loading=!1})),c}));h(t),I(t,O)},refreshInterval:6e4}).isLoading;return(0,u.useEffect)((function(){return function(){e.current=!1}}),[]),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(s.default,{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsx)(k.Z,{}),(0,r.jsx)(C.s_,{children:A?(0,r.jsx)(b.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(C.V9,{sx:{marginBottom:"2em"},children:[(0,r.jsx)(Z.z,{children:"Servers"}),(0,r.jsx)(N.Z,{onClick:function(){return S(!0)},children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(T.Z,{placeholder:"Search by server name",onChange:function(e){var n=e.target.value;P(n),I(o,n)},sx:{minWidth:"16em"},value:O})]}),G(p,n),p.length>0&&(0,r.jsx)(a.Z,{sx:{backgroundColor:f.d}}),G(v,n)]})}),(0,r.jsx)(E,{}),(0,r.jsx)($.Z,{dialogProps:{open:_},onClose:function(){S(!1)}})]})}}},function(e){e.O(0,[412,438,894,182,960,82,62,195,987,157,707,94,774,888,179],(function(){return n=5301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/init-84d6e766b3c27e21.js b/striker-ui/out/_next/static/chunks/pages/init-59fe9f29b6489800.js similarity index 99% rename from striker-ui/out/_next/static/chunks/pages/init-84d6e766b3c27e21.js rename to striker-ui/out/_next/static/chunks/pages/init-59fe9f29b6489800.js index 52c9c67f..c46977e1 100644 --- a/striker-ui/out/_next/static/chunks/pages/init-84d6e766b3c27e21.js +++ b/striker-ui/out/_next/static/chunks/pages/init-59fe9f29b6489800.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{593:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/init",function(){return t(8616)}])},4069:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var r=t(7294),i=t(3675),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,o=e.setType,l=void 0===o?"string":o,u=e.valueKey,a=void 0===u?"value":u;return function(e){var o=e.target[a],u=i.Z[l](o);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,u),null===n||void 0===n||n.call(null,e)}},l=t(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 o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}var v=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var p="input",m={boolean:!1,number:0,string:""},h={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},g=(0,r.forwardRef)((function(e,n){var t=e.input,i=e.inputTestBatch,u=e.onBlurAppend,v=e.onFirstRender,g=e.onFocusAppend,y=e.onUnmount,b=e.required,x=void 0===b?h.required:b,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,O=e.createInputOnChangeHandlerOptions,S=void 0===O?h.createInputOnChangeHandlerOptions:O,k=S.postSet,Z=S.valueKey,C=void 0===Z?j:Z,A=s(e.createInputOnChangeHandlerOptions,["postSet","valueKey"]),I=t.props,N=(0,r.useMemo)((function(){return null!==C&&void 0!==C?C:"checked"in I?"checked":"value"}),[I,C]),V=I.onBlur,H=I.onChange,R=I.onFocus,M=I[N],F=void 0===M?m[P]:M,T=s(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(F),z=E[0],B=E[1],D=(0,r.useState)(!1),_=D[0],L=D[1],q=(0,r.useState)(!1),U=q[0],$=q[1],Q=(0,r.useCallback)((function(e){B(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=x,e=(0,l.LT)(a({},p,i))),e}),[i,x]),G=(0,r.useMemo)((function(){return null!==V&&void 0!==V?V:J&&function(){for(var e=arguments.length,n=new Array(e),t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);l=!0);}catch(a){u=!0,i=a}finally{try{l||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}var d=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var f={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},v=(0,i.forwardRef)((function(e,n){var t=e.count,l=void 0===t?f.count:t,d=e.defaultMessageType,v=void 0===d?f.defaultMessageType:d,p=e.messages,m=e.onSet,h=e.usePlaceholder,g=void 0===h?f.usePlaceholder:h,y=(0,i.useState)({}),b=y[0],x=y[1],j=(0,i.useMemo)((function(){return function(e){for(var n=1;n0,t=n?l:e.length,i=[];if(e.every((function(e){var n=c(e,2),l=n[0],u=n[1],a=u.children,s=u.type,d=void 0===s?v:s;return i.push((0,r.jsx)(o.Z,{type:d,children:a},"message-".concat(l))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,o=void 0===i?2:i,l=n.which,u=void 0===l?"Start":l;return String(e)["pad".concat(u)](o,r)};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S={show:!0},k=function(e){var n=e.onClick,t=e.show,i=void 0===t?S.show:t,o=O(e,["onClick","show"]);return i?(0,r.jsx)(v.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(/\s/).filter((function(e){return!/and|of/.test(e)})).slice(0,5),t=n.length>1?2:n.length;return _[t](n)},q=function(e){var n=e.organizationPrefix,t=e.hostNumber,r=e.domainName;return[n,t,r].every((function(e){return Boolean(e)}))?"".concat(n,"-striker").concat(w(t),".").concat(r):""},U=(0,a.forwardRef)((function(e,n){var t,i,o,u,c=e.expectHostDetail,s=void 0!==c&&c,d=e.hostDetail,f=e.onHostNumberBlurAppend,v=e.toggleSubmitDisabled,w=(0,a.useState)(),P=w[0],O=w[1],S=(0,a.useState)(!1),k=S[0],I=S[1],R=(0,a.useState)(!1),_=R[0],U=R[1],$=(0,a.useState)(!0),Q=$[0],J=$[1],G=(0,a.useState)(!0),K=G[0],W=G[1],X=(0,a.useRef)(!0),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useRef)({}),te=(0,a.useRef)({}),re=(0,a.useRef)({}),ie=(0,a.useRef)({}),oe=(0,a.useRef)({}),le=(0,a.useRef)({}),ue=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,D,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),ce=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,T,e)}),[]),se=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),de=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),fe=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),ve=(0,a.useMemo)((function(){var e;return N(e={},M,{defaults:{getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){de(void 0)}},tests:[{onFailure:function(){de({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(A.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(A.Q0,{text:'"'}),"), slash (",(0,r.jsx)(A.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(A.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(A.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(A.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:C.HJ}]}),N(e,F,{defaults:{getValue:function(){var e,n;return null===(e=ee.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){fe(void 0)}},tests:[{onFailure:function(){fe({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=Y.current.getValue)||void 0===n?void 0:n.call(null))}},{test:C.HJ}]}),N(e,T,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=re.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ce(void 0)}},tests:[{onFailure:function(){ce({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,E,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=oe.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){se(void 0)}},tests:[{onFailure:function(){se({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,z,{defaults:{getValue:function(){var e;return null===(e=ie.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:C.HJ}]}),N(e,B,{defaults:{getValue:function(){var e;return null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:C.HJ}]}),N(e,D,{defaults:{getValue:function(){var e;return null===(e=te.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ue(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ue({children:"Organization prefix must be ".concat(t," to ").concat(n," lowercase alphanumeric characters.")})},test:function(e){var n=e.max,t=e.min,r=e.value;return RegExp("^[a-z0-9]{".concat(t,",").concat(n,"}$")).test(r)}}]}),e}),[K,de,fe,ce,se,ae,ue]),pe=(0,a.useMemo)((function(){return(0,C.LT)(ve)}),[ve]),me=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.excludeTestIds,t=void 0===n?[]:n,r=e.inputs,i=e.isContinueOnFailure,o=e.isExcludeConfirmAdminPassword,l=void 0===o?!Q:o;l&&t.push(F),null===v||void 0===v||v.call(null,pe({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[Q,pe,v]),he=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,i=void 0===r?null===(t=ne.current.getValue)||void 0===t?void 0:t.call(null):r,o=L(i);return null===(e=te.current.setValue)||void 0===e||e.call(null,o),me({inputs:N({},D,{isIgnoreOnCallbacks:!1,value:o}),isContinueOnFailure:!0}),o}),[me]),ge=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(i=te.current.getValue)||void 0===i?void 0:i.call(null):t,l=n.hostNumber,a=void 0===l?null===(o=ie.current.getValue)||void 0===o?void 0:o.call(null):l,c=n.domainName,s=void 0===c?null===(u=re.current.getValue)||void 0===u?void 0:u.call(null):c,d=q({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=oe.current.setValue)||void 0===e||e.call(null,d),me({inputs:N({},E,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[me]),ye=(0,a.useCallback)((function(){var e;return Boolean(null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null))}),[]),be=(0,a.useCallback)((function(){var e,n,t;return[null===(e=te.current.getValue)||void 0===e?void 0:e.call(null),null===(n=ie.current.getValue)||void 0===n?void 0:n.call(null),null===(t=re.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),xe=(0,a.useCallback)((function(){var e;(null===(e=te.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?I(ye()):he()}),[ye,he]),je=(0,a.useCallback)((function(){var e;(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?U(be()):ge()}),[be,ge]),we=(0,a.useCallback)((function(){var e,n=he();(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||ge({organizationPrefix:n})}),[ge,he]),Pe=(0,a.useCallback)((function(){ge()}),[ge]),Oe=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),Se=(0,a.useMemo)((function(){return(0,r.jsx)(m.Z,{checked:K,onChange:function(e,n){var t;W(n),me({inputs:(t={},N(t,T,{compare:[!n],isIgnoreOnCallbacks:!1}),N(t,E,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[K,me]);return(0,a.useEffect)((function(){if([s,d,X.current,re.current,oe.current,ie.current,ne.current,te.current].every((function(e){return Boolean(e)}))){var e,n,t,r,i;X.current=!1;var o=d.domain,l=d.hostName,u=d.organization,a=d.prefix,c=d.sequence;null===(e=re.current.setValue)||void 0===e||e.call(null,o),null===(n=oe.current.setValue)||void 0===n||n.call(null,l),null===(t=ie.current.setValue)||void 0===t||t.call(null,c),null===(r=ne.current.setValue)||void 0===r||r.call(null,u),null===(i=te.current.setValue)||void 0===i||i.call(null,a),me()}}),[s,d,me]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,o;return{adminPassword:null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=ne.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=te.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=re.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=ie.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(o=oe.current.getValue)||void 0===o?void 0:o.call(null)}}}})),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:xe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){me()},onHelp:function(){O(Oe("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:ne}),(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(Z,{show:k,onClick:we}),inputProps:{maxLength:5,sx:{minWidth:"2.5em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},M,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===h.Z.password;me({isExcludeConfirmAdminPassword:!n}),J(n),fe()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;me({inputs:N({},M,{value:n})}),de()},onHelp:function(){O(Oe("Password use to login to this Striker and connect to its database. Don't provide an used password here because it'll be stored as plaintext."))}}),ref:Y})}),Q&&(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},F,{value:n})})}},inputLabelProps:{isNotifyRequired:Q},label:"Confirm password",onChange:function(e){var n=e.target.value;me({inputs:N({},F,{value:n})}),fe()}}),ref:ee})})]})})]}),(0,r.jsx)(x.Z,{count:1,defaultMessageType:"warning",ref:le}),(0,r.jsx)(b.Z,{children:(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[Se,(0,r.jsx)(A.Ac,{inverted:!0,children:K?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),P&&(0,r.jsx)(b.Z,{onClose:function(){O(void 0)},children:P})]})}));U.defaultProps={expectHostDetail:!1,hostDetail:void 0,onHostNumberBlurAppend:void 0,toggleSubmitDisabled:void 0},U.displayName="GeneralInitForm";var $=U,Q=t(1770),J=t(1706),G=t(3377),K=t(2444),W=t(5741),X=t(4596),Y=t(3679),ee=t(634),ne=t(2152),te=t(2749);function re(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,o=e.setType,l=void 0===o?"string":o,u=e.valueKey,a=void 0===u?"value":u;return function(e){var o=e.target[a],u=i.Z[l](o);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,u),null===n||void 0===n||n.call(null,e)}},l=t(2027);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}var v=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var p="input",m={boolean:!1,number:0,string:""},h={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},g=(0,r.forwardRef)((function(e,n){var t=e.input,i=e.inputTestBatch,u=e.onBlurAppend,v=e.onFirstRender,g=e.onFocusAppend,y=e.onUnmount,b=e.required,x=void 0===b?h.required:b,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,O=e.createInputOnChangeHandlerOptions,S=void 0===O?h.createInputOnChangeHandlerOptions:O,k=S.postSet,Z=S.valueKey,C=void 0===Z?j:Z,A=s(e.createInputOnChangeHandlerOptions,["postSet","valueKey"]),I=t.props,N=(0,r.useMemo)((function(){return null!==C&&void 0!==C?C:"checked"in I?"checked":"value"}),[I,C]),V=I.onBlur,H=I.onChange,R=I.onFocus,M=I[N],F=void 0===M?m[P]:M,T=s(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(F),z=E[0],B=E[1],D=(0,r.useState)(!1),_=D[0],L=D[1],q=(0,r.useState)(!1),U=q[0],$=q[1],Q=(0,r.useCallback)((function(e){B(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=x,e=(0,l.LT)(a({},p,i))),e}),[i,x]),G=(0,r.useMemo)((function(){return null!==V&&void 0!==V?V:J&&function(){for(var e=arguments.length,n=new Array(e),t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);l=!0);}catch(a){u=!0,i=a}finally{try{l||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}var d=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var f={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},v=(0,i.forwardRef)((function(e,n){var t=e.count,l=void 0===t?f.count:t,d=e.defaultMessageType,v=void 0===d?f.defaultMessageType:d,p=e.messages,m=e.onSet,h=e.usePlaceholder,g=void 0===h?f.usePlaceholder:h,y=(0,i.useState)({}),b=y[0],x=y[1],j=(0,i.useMemo)((function(){return function(e){for(var n=1;n0,t=n?l:e.length,i=[];if(e.every((function(e){var n=c(e,2),l=n[0],u=n[1],a=u.children,s=u.type,d=void 0===s?v:s;return i.push((0,r.jsx)(o.Z,{type:d,children:a},"message-".concat(l))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,o=void 0===i?2:i,l=n.which,u=void 0===l?"Start":l;return String(e)["pad".concat(u)](o,r)};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S={show:!0},k=function(e){var n=e.onClick,t=e.show,i=void 0===t?S.show:t,o=O(e,["onClick","show"]);return i?(0,r.jsx)(v.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(/\s/).filter((function(e){return!/and|of/.test(e)})).slice(0,5),t=n.length>1?2:n.length;return _[t](n)},q=function(e){var n=e.organizationPrefix,t=e.hostNumber,r=e.domainName;return[n,t,r].every((function(e){return Boolean(e)}))?"".concat(n,"-striker").concat(w(t),".").concat(r):""},U=(0,a.forwardRef)((function(e,n){var t,i,o,u,c=e.expectHostDetail,s=void 0!==c&&c,d=e.hostDetail,f=e.onHostNumberBlurAppend,v=e.toggleSubmitDisabled,w=(0,a.useState)(),P=w[0],O=w[1],S=(0,a.useState)(!1),k=S[0],I=S[1],R=(0,a.useState)(!1),_=R[0],U=R[1],$=(0,a.useState)(!0),Q=$[0],J=$[1],G=(0,a.useState)(!0),K=G[0],W=G[1],X=(0,a.useRef)(!0),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useRef)({}),te=(0,a.useRef)({}),re=(0,a.useRef)({}),ie=(0,a.useRef)({}),oe=(0,a.useRef)({}),le=(0,a.useRef)({}),ue=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,D,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),ce=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,T,e)}),[]),se=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),de=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),fe=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),ve=(0,a.useMemo)((function(){var e;return N(e={},M,{defaults:{getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){de(void 0)}},tests:[{onFailure:function(){de({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(A.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(A.Q0,{text:'"'}),"), slash (",(0,r.jsx)(A.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(A.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(A.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(A.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:C.HJ}]}),N(e,F,{defaults:{getValue:function(){var e,n;return null===(e=ee.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){fe(void 0)}},tests:[{onFailure:function(){fe({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=Y.current.getValue)||void 0===n?void 0:n.call(null))}},{test:C.HJ}]}),N(e,T,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=re.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ce(void 0)}},tests:[{onFailure:function(){ce({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,E,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=oe.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){se(void 0)}},tests:[{onFailure:function(){se({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,z,{defaults:{getValue:function(){var e;return null===(e=ie.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:C.HJ}]}),N(e,B,{defaults:{getValue:function(){var e;return null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:C.HJ}]}),N(e,D,{defaults:{getValue:function(){var e;return null===(e=te.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ue(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ue({children:"Organization prefix must be ".concat(t," to ").concat(n," lowercase alphanumeric characters.")})},test:function(e){var n=e.max,t=e.min,r=e.value;return RegExp("^[a-z0-9]{".concat(t,",").concat(n,"}$")).test(r)}}]}),e}),[K,de,fe,ce,se,ae,ue]),pe=(0,a.useMemo)((function(){return(0,C.LT)(ve)}),[ve]),me=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.excludeTestIds,t=void 0===n?[]:n,r=e.inputs,i=e.isContinueOnFailure,o=e.isExcludeConfirmAdminPassword,l=void 0===o?!Q:o;l&&t.push(F),null===v||void 0===v||v.call(null,pe({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[Q,pe,v]),he=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,i=void 0===r?null===(t=ne.current.getValue)||void 0===t?void 0:t.call(null):r,o=L(i);return null===(e=te.current.setValue)||void 0===e||e.call(null,o),me({inputs:N({},D,{isIgnoreOnCallbacks:!1,value:o}),isContinueOnFailure:!0}),o}),[me]),ge=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(i=te.current.getValue)||void 0===i?void 0:i.call(null):t,l=n.hostNumber,a=void 0===l?null===(o=ie.current.getValue)||void 0===o?void 0:o.call(null):l,c=n.domainName,s=void 0===c?null===(u=re.current.getValue)||void 0===u?void 0:u.call(null):c,d=q({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=oe.current.setValue)||void 0===e||e.call(null,d),me({inputs:N({},E,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[me]),ye=(0,a.useCallback)((function(){var e;return Boolean(null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null))}),[]),be=(0,a.useCallback)((function(){var e,n,t;return[null===(e=te.current.getValue)||void 0===e?void 0:e.call(null),null===(n=ie.current.getValue)||void 0===n?void 0:n.call(null),null===(t=re.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),xe=(0,a.useCallback)((function(){var e;(null===(e=te.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?I(ye()):he()}),[ye,he]),je=(0,a.useCallback)((function(){var e;(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?U(be()):ge()}),[be,ge]),we=(0,a.useCallback)((function(){var e,n=he();(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||ge({organizationPrefix:n})}),[ge,he]),Pe=(0,a.useCallback)((function(){ge()}),[ge]),Oe=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),Se=(0,a.useMemo)((function(){return(0,r.jsx)(m.Z,{checked:K,onChange:function(e,n){var t;W(n),me({inputs:(t={},N(t,T,{compare:[!n],isIgnoreOnCallbacks:!1}),N(t,E,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[K,me]);return(0,a.useEffect)((function(){if([s,d,X.current,re.current,oe.current,ie.current,ne.current,te.current].every((function(e){return Boolean(e)}))){var e,n,t,r,i;X.current=!1;var o=d.domain,l=d.hostName,u=d.organization,a=d.prefix,c=d.sequence;null===(e=re.current.setValue)||void 0===e||e.call(null,o),null===(n=oe.current.setValue)||void 0===n||n.call(null,l),null===(t=ie.current.setValue)||void 0===t||t.call(null,c),null===(r=ne.current.setValue)||void 0===r||r.call(null,u),null===(i=te.current.setValue)||void 0===i||i.call(null,a),me()}}),[s,d,me]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,o;return{adminPassword:null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=ne.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=te.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=re.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=ie.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(o=oe.current.getValue)||void 0===o?void 0:o.call(null)}}}})),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:xe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){me()},onHelp:function(){O(Oe("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:ne}),(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(Z,{show:k,onClick:we}),inputProps:{maxLength:5,sx:{minWidth:"2.5em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},M,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===h.Z.password;me({isExcludeConfirmAdminPassword:!n}),J(n),fe()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;me({inputs:N({},M,{value:n})}),de()},onHelp:function(){O(Oe("Password use to login to this Striker and connect to its database. Don't provide an used password here because it'll be stored as plaintext."))}}),ref:Y})}),Q&&(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},F,{value:n})})}},inputLabelProps:{isNotifyRequired:Q},label:"Confirm password",onChange:function(e){var n=e.target.value;me({inputs:N({},F,{value:n})}),fe()}}),ref:ee})})]})})]}),(0,r.jsx)(x.Z,{count:1,defaultMessageType:"warning",ref:le}),(0,r.jsx)(b.Z,{children:(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[Se,(0,r.jsx)(A.Ac,{inverted:!0,children:K?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),P&&(0,r.jsx)(b.Z,{onClose:function(){O(void 0)},children:P})]})}));U.defaultProps={expectHostDetail:!1,hostDetail:void 0,onHostNumberBlurAppend:void 0,toggleSubmitDisabled:void 0},U.displayName="GeneralInitForm";var $=U,Q=t(1770),J=t(1706),G=t(3377),K=t(2444),W=t(5741),X=t(4596),Y=t(3679),ee=t(634),ne=t(2152),te=t(2749);function re(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(t[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`),Number(i)>0&&(t[`spacing-sm-${String(i)}`]||`spacing-sm-${String(i)}`),Number(o)>0&&(t[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(t[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(t[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const b=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,r)=>{const{container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:l,xl:c,xs:p,zeroMinWidth:d}=n.ownerState;return[r.root,t&&r.container,i&&r.item,d&&r.zeroMinWidth,...x(u,t,r),"row"!==e&&r[`direction-xs-${String(e)}`],"wrap"!==l&&r[`wrap-xs-${String(l)}`],!1!==p&&r[`grid-xs-${String(p)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==c&&r[`grid-xl-${String(c)}`]]}})((({ownerState:n})=>(0,i.Z)({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},"wrap"!==n.wrap&&{flexWrap:n.wrap})),(function({theme:n,ownerState:r}){const t=(0,s.P$)({values:r.direction,breakpoints:n.breakpoints.values});return(0,s.k9)({theme:n},t,(n=>{const r={flexDirection:n};return 0===n.indexOf("column")&&(r[`& > .${m.Z.item}`]={maxWidth:"none"}),r}))}),(function({theme:n,ownerState:r}){const{container:t,rowSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{marginTop:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingTop:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){const{container:t,columnSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{width:`calc(100% + ${h(t)})`,marginLeft:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingLeft:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){let t;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof u?u[o]:u;if(void 0===l||null===l)return e;const c=Math.round(t/l*1e8)/1e6+"%";let p={};if(r.container&&r.item&&0!==r.columnSpacing){const t=n.spacing(r.columnSpacing);if("0px"!==t){const n=`calc(${c} + ${h(t)})`;p={flexBasis:n,maxWidth:n}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},p)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));var v=o.forwardRef((function(n,r){const t=(0,p.Z)({props:n,name:"MuiGrid"}),s=(0,u.Z)(t),{className:c,columns:h,columnSpacing:v,component:w="div",container:S=!1,direction:y="row",item:$=!1,lg:P=!1,md:j=!1,rowSpacing:Z,sm:O=!1,spacing:k=0,wrap:I="wrap",xl:W=!1,xs:M=!1,zeroMinWidth:N=!1}=s,A=(0,e.Z)(s,g),L=Z||k,C=v||k,B=o.useContext(d),F=h||B||12,R=(0,i.Z)({},s,{columns:F,container:S,direction:y,item:$,lg:P,md:j,sm:O,rowSpacing:L,columnSpacing:C,wrap:I,xl:W,xs:M,zeroMinWidth:N}),_=(n=>{const{classes:r,container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:c,xl:p,xs:d,zeroMinWidth:f}=n,g={root:["root",t&&"container",i&&"item",f&&"zeroMinWidth",...x(u,t),"row"!==e&&`direction-xs-${String(e)}`,"wrap"!==c&&`wrap-xs-${String(c)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==p&&`grid-xl-${String(p)}`]};return(0,l.Z)(g,m.H,r)})(R);return T=(0,f.jsx)(b,(0,i.Z)({ownerState:R,className:(0,a.Z)(_.root,c),as:w,ref:r},A)),12!==F?(0,f.jsx)(d.Provider,{value:F,children:T}):T;var T}))},8673:function(n,r,t){"use strict";t.d(r,{H:function(){return i}});var e=t(8979);function i(n){return(0,e.Z)("MuiGrid",n)}const o=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(0,t(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((n=>`spacing-xs-${n}`)),...["column-reverse","column","row-reverse","row"].map((n=>`direction-xs-${n}`)),...["nowrap","wrap-reverse","wrap"].map((n=>`wrap-xs-${n}`)),...o.map((n=>`grid-xs-${n}`)),...o.map((n=>`grid-sm-${n}`)),...o.map((n=>`grid-md-${n}`)),...o.map((n=>`grid-lg-${n}`)),...o.map((n=>`grid-xl-${n}`))]);r.Z=a},7106:function(n,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1686)}])},4629:function(n,r,t){"use strict";var e=t(5893),i=t(7357),o=t(7294),a=t(4188),s=t(4825),u=t(4690),l=t(7504),c=t(4069),p=t(7869),d=t(6284),m=t(2152),f=t(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",I=(0,o.forwardRef)((function(n,r){var t,x,b=n.formContainer,$=void 0===b||b,j=n.gridProps,I=void 0===j?{}:j,W=I.columns,M=void 0===W?{xs:1,sm:2}:W,N=(I.layout,I.spacing),A=void 0===N?"1em":N,L=n.identifierId,C=void 0===L?Z:L,B=n.identifierInputTestBatchBuilder,F=void 0===B?f.Gn:B,R=n.identifierLabel,_=n.identifierOutlinedInputWithLabelProps,T=void 0===_?{}:_,G=T.formControlProps,z=void 0===G?{}:G,E=T.inputProps,U=n.onIdentifierBlurAppend,q=n.onSubmit,D=n.onSubmitAppend,H=n.passphraseId,V=void 0===H?O:H,X=n.passphraseLabel,J=n.passphraseOutlinedInputWithLabelProps,K=void 0===J?{}:J,Q=K.formControlProps,Y=void 0===Q?{}:Q,nn=K.inputProps,rn=n.submitLabel,tn=n.allowSubmit,en=void 0===tn?$:tn,on=w(n.gridProps,["columns","layout","spacing"]),an=w(n.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),sn=w(n.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),un=z.sx,ln=w(z,["sx"]),cn=Y.sx,pn=w(Y,["sx"]),dn=(0,o.useRef)({}),mn=(0,o.useRef)({}),fn=(0,o.useRef)({}),gn=S((0,h.Z)(!1),2),hn=gn[0],xn=gn[1],bn=(0,g.Z)([Z,O],fn),vn=bn.buildFinishInputTestBatchFunction,wn=bn.buildInputFirstRenderFunction,Sn=bn.buildInputUnmountFunction,yn=bn.isFormInvalid,$n=bn.setMessage,Pn=(0,o.useMemo)((function(){return null!==q&&void 0!==q?q:function(){for(var n=arguments.length,r=new Array(n),t=0;t0&&(t[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`),Number(i)>0&&(t[`spacing-sm-${String(i)}`]||`spacing-sm-${String(i)}`),Number(o)>0&&(t[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(t[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(t[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const b=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,r)=>{const{container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:l,xl:c,xs:p,zeroMinWidth:d}=n.ownerState;return[r.root,t&&r.container,i&&r.item,d&&r.zeroMinWidth,...x(u,t,r),"row"!==e&&r[`direction-xs-${String(e)}`],"wrap"!==l&&r[`wrap-xs-${String(l)}`],!1!==p&&r[`grid-xs-${String(p)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==c&&r[`grid-xl-${String(c)}`]]}})((({ownerState:n})=>(0,i.Z)({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},"wrap"!==n.wrap&&{flexWrap:n.wrap})),(function({theme:n,ownerState:r}){const t=(0,s.P$)({values:r.direction,breakpoints:n.breakpoints.values});return(0,s.k9)({theme:n},t,(n=>{const r={flexDirection:n};return 0===n.indexOf("column")&&(r[`& > .${m.Z.item}`]={maxWidth:"none"}),r}))}),(function({theme:n,ownerState:r}){const{container:t,rowSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{marginTop:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingTop:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){const{container:t,columnSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{width:`calc(100% + ${h(t)})`,marginLeft:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingLeft:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){let t;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof u?u[o]:u;if(void 0===l||null===l)return e;const c=Math.round(t/l*1e8)/1e6+"%";let p={};if(r.container&&r.item&&0!==r.columnSpacing){const t=n.spacing(r.columnSpacing);if("0px"!==t){const n=`calc(${c} + ${h(t)})`;p={flexBasis:n,maxWidth:n}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},p)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));var v=o.forwardRef((function(n,r){const t=(0,p.Z)({props:n,name:"MuiGrid"}),s=(0,u.Z)(t),{className:c,columns:h,columnSpacing:v,component:w="div",container:S=!1,direction:y="row",item:$=!1,lg:P=!1,md:j=!1,rowSpacing:Z,sm:O=!1,spacing:k=0,wrap:I="wrap",xl:W=!1,xs:M=!1,zeroMinWidth:N=!1}=s,A=(0,e.Z)(s,g),L=Z||k,C=v||k,B=o.useContext(d),F=h||B||12,R=(0,i.Z)({},s,{columns:F,container:S,direction:y,item:$,lg:P,md:j,sm:O,rowSpacing:L,columnSpacing:C,wrap:I,xl:W,xs:M,zeroMinWidth:N}),_=(n=>{const{classes:r,container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:c,xl:p,xs:d,zeroMinWidth:f}=n,g={root:["root",t&&"container",i&&"item",f&&"zeroMinWidth",...x(u,t),"row"!==e&&`direction-xs-${String(e)}`,"wrap"!==c&&`wrap-xs-${String(c)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==p&&`grid-xl-${String(p)}`]};return(0,l.Z)(g,m.H,r)})(R);return T=(0,f.jsx)(b,(0,i.Z)({ownerState:R,className:(0,a.Z)(_.root,c),as:w,ref:r},A)),12!==F?(0,f.jsx)(d.Provider,{value:F,children:T}):T;var T}))},8673:function(n,r,t){"use strict";t.d(r,{H:function(){return i}});var e=t(8979);function i(n){return(0,e.Z)("MuiGrid",n)}const o=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(0,t(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((n=>`spacing-xs-${n}`)),...["column-reverse","column","row-reverse","row"].map((n=>`direction-xs-${n}`)),...["nowrap","wrap-reverse","wrap"].map((n=>`wrap-xs-${n}`)),...o.map((n=>`grid-xs-${n}`)),...o.map((n=>`grid-sm-${n}`)),...o.map((n=>`grid-md-${n}`)),...o.map((n=>`grid-lg-${n}`)),...o.map((n=>`grid-xl-${n}`))]);r.Z=a},7106:function(n,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1686)}])},4629:function(n,r,t){"use strict";var e=t(5893),i=t(7357),o=t(7294),a=t(4188),s=t(4825),u=t(4690),l=t(7504),c=t(4069),p=t(7869),d=t(6284),m=t(2152),f=t(2027),g=t(8859),h=t(2749);function x(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t=0||(i[t]=n[t]);return i}(n,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}function S(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],a=!0,s=!1;try{for(t=t.call(n);!(a=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(n,r)||$(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(n){return function(n){if(Array.isArray(n))return x(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||$(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(n,r){if(n){if("string"===typeof n)return x(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(n,r):void 0}}var P={width:"100%"},j="gate-input",Z="".concat(j,"-credential-id"),O="".concat(j,"-credential-passphrase"),k="access",I=(0,o.forwardRef)((function(n,r){var t,x,b=n.formContainer,$=void 0===b||b,j=n.gridProps,I=void 0===j?{}:j,W=I.columns,M=void 0===W?{xs:1,sm:2}:W,N=(I.layout,I.spacing),A=void 0===N?"1em":N,L=n.identifierId,C=void 0===L?Z:L,B=n.identifierInputTestBatchBuilder,F=void 0===B?f.Gn:B,R=n.identifierLabel,_=n.identifierOutlinedInputWithLabelProps,T=void 0===_?{}:_,G=T.formControlProps,z=void 0===G?{}:G,E=T.inputProps,U=n.onIdentifierBlurAppend,q=n.onSubmit,D=n.onSubmitAppend,H=n.passphraseId,V=void 0===H?O:H,X=n.passphraseLabel,J=n.passphraseOutlinedInputWithLabelProps,K=void 0===J?{}:J,Q=K.formControlProps,Y=void 0===Q?{}:Q,nn=K.inputProps,rn=n.submitLabel,tn=n.allowSubmit,en=void 0===tn?$:tn,on=w(n.gridProps,["columns","layout","spacing"]),an=w(n.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),sn=w(n.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),un=z.sx,ln=w(z,["sx"]),cn=Y.sx,pn=w(Y,["sx"]),dn=(0,o.useRef)({}),mn=(0,o.useRef)({}),fn=(0,o.useRef)({}),gn=S((0,h.Z)(!1),2),hn=gn[0],xn=gn[1],bn=(0,g.Z)([Z,O],fn),vn=bn.buildFinishInputTestBatchFunction,wn=bn.buildInputFirstRenderFunction,Sn=bn.buildInputUnmountFunction,yn=bn.isFormInvalid,$n=bn.setMessage,Pn=(0,o.useMemo)((function(){return null!==q&&void 0!==q?q:function(){for(var n=arguments.length,r=new Array(n),t=0;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var 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))},k=h(m({},"& .".concat(a.Z.root," .").concat(u.Z.endAdornment),m({right:"7px"},"& .".concat(c.Z.root),{color:d.s7})),g);return(0,r.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(l.Z,h({PaperComponent:y},j,{componentsProps:x,renderInput:w,sx:k})),(0,r.jsx)(f.Z,h({},i))]})}},4629:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7294),a=t(4188),u=t(4825),c=t(4690),s=t(7504),l=t(4069),d=t(7869),f=t(6284),p=t(2152),m=t(7987),h=t(8859),v=t(2749);function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){if(e){if("string"===typeof e)return 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 O={width:"100%"},I="gate-input",P="".concat(I,"-credential-id"),Z="".concat(I,"-credential-passphrase"),S="access",A=(0,i.forwardRef)((function(e,n){var t,y,b=e.formContainer,k=void 0===b||b,I=e.gridProps,A=void 0===I?{}:I,M=A.columns,F=void 0===M?{xs:1,sm:2}:M,T=(A.layout,A.spacing),C=void 0===T?"1em":T,U=e.identifierId,N=void 0===U?P:U,E=e.identifierInputTestBatchBuilder,R=void 0===E?m.Gn:E,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,q=void 0===D?{}:D,L=q.formControlProps,_=void 0===L?{}:L,H=q.inputProps,V=e.onIdentifierBlurAppend,$=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,Y=e.passphraseOutlinedInputWithLabelProps,J=void 0===Y?{}:Y,K=J.formControlProps,X=void 0===K?{}:K,ee=J.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?k:te,oe=j(e.gridProps,["columns","layout","spacing"]),ie=j(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ae=j(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ue=_.sx,ce=j(_,["sx"]),se=X.sx,le=j(X,["sx"]),de=(0,i.useRef)({}),fe=(0,i.useRef)({}),pe=(0,i.useRef)({}),me=x((0,v.Z)(!1),2),he=me[0],ve=me[1],ye=(0,h.Z)([P,Z],pe),be=ye.buildFinishInputTestBatchFunction,ge=ye.buildInputFirstRenderFunction,je=ye.buildInputUnmountFunction,xe=ye.isFormInvalid,we=ye.setMessage,ke=(0,i.useMemo)((function(){return null!==$&&void 0!==$?$:function(){for(var e=arguments.length,n=new Array(e),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},t=n.fallbackValue,r=void 0===t?"":t,o=n.joinSeparator,i=void 0===o?"":o,a=n.limit,u=void 0===a?1:a;return c(e,Array)?e.slice(0,u).join(i):null!==e&&void 0!==e?e:r},l=t(7504),d=t(1770),f=t(8750),p=t(2029),m=t(7357),h=t(4594),v=t(1496),y=t(4386),b=t(4188),g=t(4690),j=t(4069),x=t(6284),w=t(3679),k=t(2519),O=t(480),I=t(2852),P=t(7169),Z=t(7750);function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);tN(n,1)[0]?1:-1})).reduce((function(e,o){var a=N(o,2),u=a[0],c=a[1],s=c.content_type,l=c.default,d=c.deprecated,p=c.description,h=c.options,v=c.required;if("1"===String(d))return e;var b,g,j=e.optional,x=e.required,w=null!==(b=D[s])&&void 0!==b?b:D.string,k=q(n,u),O=null!==(g=f[k])&&void 0!==g?g:l,I="1"===String(v),P=/passw/i.test(u),S=w({formUtils:i,id:k,isChecked:E.includes(O),isRequired:I,isSensitive:P,label:u,selectOptions:h,value:O}),A=(0,r.jsx)(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)(L,{children:[(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:b,label:k,name:b,value:u}),inputTestBatch:(0,T.Gn)(k,(function(){d(b)}),{onFinishBatch:s(b)},(function(e){d(b,{children:e})})),onFirstRender:l(b),required:!0},"".concat(b,"-wrapper")),v]})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(L,{children:h})})]})}return e}),[s,l,n,t,o,i,u,c,d]);return(0,r.jsx)(r.Fragment,{children:f})},H=t(2152),V=t(1081);function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tz(n,1)[0]?1:-1})).map((function(e){var n=z(e,2),t=n[0],r=n[1].description;return{fenceDescription:"string"===typeof r?r:"No description.",fenceId:t,label:t}})):[]}),[n]),f=(0,a.useMemo)((function(){return(0,r.jsx)(h.Z,{id:W,isOptionEqualToValue:function(e,n){return e.fenceId===n.fenceId},label:"Fence device type",onChange:function(e,n){i(W,null!==n),l(n)},openOnFocus:!0,options:d,renderOption:function(e,n,t){var o=n.fenceDescription,i=n.fenceId,a=t.selected;return(0,r.jsxs)(m.Z,function(e){for(var n=1;n *":{width:"100%"}}},e,{children:[(0,r.jsx)(Z.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:a?400:void 0},children:i}),(0,r.jsx)(Z.Ac,{selected:!1,children:o})]}))},sx:{marginTop:".3em"},value:s})}),[d,s,i]),p=(0,a.useMemo)((function(){return(0,r.jsx)(_,{fenceId:null===s||void 0===s?void 0:s.fenceId,fenceTemplate:n,formUtils:t})}),[n,null===s||void 0===s?void 0:s.fenceId,t]),v=(0,a.useMemo)((function(){return o?(0,r.jsx)(H.Z,{}):(0,r.jsxs)(g.Z,{children:[f,p]})}),[f,p,o]);return(0,a.useEffect)((function(){u&&i(W,null!==s)}),[s,u,i]),(0,r.jsx)(r.Fragment,{children:v})},Y=t(157),J=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.formUtils,i=e.loading,u=e.previousFenceName,c=e.previousFenceParameters,s=(0,a.useMemo)((function(){return i?(0,r.jsx)(H.Z,{}):(0,r.jsx)(_,{fenceId:n,fenceTemplate:t,formUtils:o,previousFenceName:u,previousFenceParameters:c})}),[t,n,o,i,u,c]);return(0,r.jsx)(r.Fragment,{children:s})},K=t(2545),X=t(8610),ee=t(6125),ne=t(7869),te=t(1905),re=t(3906),oe=t(6632),ie=t(8859),ae=t(2749);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},r=n.input,o=void 0===r?t:r,i=n.end,a=void 0===i?t.length:i,u=a-1,c=0;return o.every((function(n,t){return tn(n,2)[1].networkType===e&&(c+=1),t0&&void 0!==arguments[0]?arguments[0]:{},n=e.networkMinIp,t=void 0===n?"":n,r=e.networkSubnetMask,o=void 0===r?"":r,i=e.networkType,a=void 0===i?"ifn":i,u=e.networkGateway,c=void 0===u?ln(a)?"":void 0:u,s=e.networkNumber,l=void 0===s?y(a)+1:s;return{network:{networkGateway:c,networkMinIp:t,networkNumber:l,networkSubnetMask:o,networkType:a},networkId:(0,_e.Z)()}}),[y]),w=(0,a.useCallback)((function(e,n){return f((0,Ke.ZP)(e,n))}),[f]),k=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,s=t.reduce((function(e,n){var t=tn(n,2),i=t[0],s=t[1],l=s.networkNumber,d=s.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?l=c:d===o&&(l-=1),e[i]=nn({},s,{networkNumber:l,networkType:d})):e[i]=s,e}),{});f(s)}),[t,v,f]),O=(0,a.useCallback)((function(e){var n=e.networkId,r=e.networkType,o=!1,i=0,a=t.reduce((function(e,t){var a=tn(t,2),u=a[0],c=a[1];u===n?o=!0:(c.networkType===r&&(i+=1),e[u]=o?nn({},c,{networkNumber:i}):c);return e}),{});f(a)}),[t,f]),I=(0,a.useMemo)((function(){var e={};return e=t.reduce((function(e,t){var o=tn(t,2),i=o[0],a=o[1],u=a.networkGateway,c=a.networkMinIp,s=a.networkNumber,l=a.networkSubnetMask,d=a.networkType,f="".concat(on,"-").concat(i),p=1===s,m=ln(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(Je,{formUtils:n,networkId:i,networkNumber:s,networkType:d,networkTypeOptions:b,onClose:O,onNetworkTypeChange:k,previous:{gateway:u,minIp:c,subnetMask:l},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,b,O,k]);return(0,r.jsx)(l.Z,{columns:{xs:1,sm:2,md:3},layout:nn({},I,{"an-network-config-cell-add-network":{children:(0,r.jsx)(Ve.Z,{mapPreset:"add",onClick:function(){var e=g(),n=e.network,t=e.networkId;w(t,n)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:an,label:"DNS",value:c}),inputTestBatch:(0,T.dg)("DNS",(function(){h(an)}),{onFinishBatch:p(an)},(function(e){h(an,{children:e})})),onFirstRender:m(an),required:!0})},"an-network-config-input-cell-ntp":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:cn,label:"NTP",value:d}),inputTestBatch:(0,T.dg)("NTP",(function(){h(cn)}),{onFinishBatch:p(cn)},(function(e){h(cn,{children:e})})),onFirstRender:m(cn)})},"an-network-config-input-cell-mtu":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:un,inputProps:{placeholder:"1500"},label:"MTU",value:s}),inputTestBatch:(0,T.qY)("MTU",(function(){h(un)}),{onFinishBatch:p(un)},(function(e){h(un,{children:e})})),onFirstRender:m(un),valueType:"number"})}}),spacing:"1em"})};function fn(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var pn={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}},mn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous,u=void 0===i?{}:i,c=u.hostConfig,s=u.networkConfig,l=void 0===s?{}:s,d=fn(e.previous,["hostConfig","networkConfig"]),f=l.networks,p=void 0===f?pn:f,m=(0,a.useState)(p),h=m[0],v=m[1],y=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(Le,{formUtils:n,previous:d}),(0,r.jsx)(dn,{formUtils:n,networkListEntries:y,previous:l,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,s=e.radioItems,l=e.radioProps,d=(void 0===l?{}:l).sx,f=e.radioGroupProps,p=jt(e.radioProps,["sx"]),m=(0,a.useMemo)((function(){return"string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u}),[u]),h=(0,a.useMemo)((function(){return Object.entries(s).map((function(e){var n=xt(e,2),o=n[0],a=n[1],u=a.label,c=a.value,s="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(O.Z,gt({control:(0,r.jsx)(ft.Z,gt({},p,{sx:gt(bt({},"&.".concat(pt.Z.root),{color:P.s7}),d)})),value:c,label:s},t),"".concat(i,"-").concat(o))}))}),[t,i,s,d,p]);return(0,r.jsxs)(mt.Z,gt({},n,{children:[(0,r.jsx)(ht.Z,gt({},o,{children:m})),(0,r.jsx)(vt.Z,gt({onChange:c,row:!0},f,{children:h}))]}))},kt=t(3144);function Ot(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Vt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||Gt(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,n){if(e){if("string"===typeof e)return qt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qt(e,n):void 0}}var zt="prepare-network-host-name-input",Wt="prepare-network-netconf-input-group",Qt="Host name",Yt=function(e){for(var n=e.netconf,t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var rr=function(e){var n=e.label,t=tr(e,["label"]),o=(0,a.useMemo)((function(){return"string"===typeof n?(0,r.jsx)(Z.Ac,{inheritColour:!0,children:n}):n}),[n]);return(0,r.jsx)(Xt.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function fr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return sr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sr(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pr="1.8em",mr=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=dr(e,["orientation","variant"]),s=(0,ir.Z)(),l=(0,a.useCallback)((function(e){return s.breakpoints.up(e)}),[s]),d=(0,ar.Z)(l("xs")),f=(0,ar.Z)(l("sm")),p=(0,ar.Z)(l("md")),m=(0,ar.Z)(l("lg")),h=(0,ar.Z)(l("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),y=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=fr(n,2),r=t[0],i=t[1];return i&&o[r]&&(e=o[r]),!i})):e=o,e}),[v,o]);return(0,r.jsx)(ur.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var b=function(e){return(0,r.jsx)(o.Z,{in:!0,children:(0,r.jsx)(i.Z,h({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,o=e.label,i=e.messageBoxProps,y=e.renderInput,g=e.sx,j=v(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),x=h({paper:{sx:{backgroundColor:d.lD}}},n),w=null!==y&&void 0!==y?y:function(e){var n=e.fullWidth,i=e.InputProps,a=e.InputLabelProps,u=e.inputProps,c={formControlProps:{fullWidth:n,ref:i.ref},inputLabelProps:a,inputProps:{className:i.className,endAdornment:i.endAdornment,inputProps:u,startAdornment:i.startAdornment},label:o};return null===t||void 0===t||t.call(null,c,e),(0,r.jsx)(p.Z,h({},c))},k=h(m({},"& .".concat(a.Z.root," .").concat(u.Z.endAdornment),m({right:"7px"},"& .".concat(c.Z.root),{color:d.s7})),g);return(0,r.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(l.Z,h({PaperComponent:b},j,{componentsProps:x,renderInput:w,sx:k})),(0,r.jsx)(f.Z,h({},i))]})}},4629:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7294),a=t(4188),u=t(4825),c=t(4690),s=t(7504),l=t(4069),d=t(7869),f=t(6284),p=t(2152),m=t(2027),h=t(8859),v=t(2749);function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){if(e){if("string"===typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}var O={width:"100%"},I="gate-input",P="".concat(I,"-credential-id"),Z="".concat(I,"-credential-passphrase"),S="access",A=(0,i.forwardRef)((function(e,n){var t,b,y=e.formContainer,k=void 0===y||y,I=e.gridProps,A=void 0===I?{}:I,F=A.columns,M=void 0===F?{xs:1,sm:2}:F,T=(A.layout,A.spacing),C=void 0===T?"1em":T,U=e.identifierId,N=void 0===U?P:U,E=e.identifierInputTestBatchBuilder,R=void 0===E?m.Gn:E,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,q=void 0===D?{}:D,L=q.formControlProps,_=void 0===L?{}:L,H=q.inputProps,V=e.onIdentifierBlurAppend,$=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,Y=e.passphraseOutlinedInputWithLabelProps,J=void 0===Y?{}:Y,K=J.formControlProps,X=void 0===K?{}:K,ee=J.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?k:te,oe=j(e.gridProps,["columns","layout","spacing"]),ie=j(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ae=j(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ue=_.sx,ce=j(_,["sx"]),se=X.sx,le=j(X,["sx"]),de=(0,i.useRef)({}),fe=(0,i.useRef)({}),pe=(0,i.useRef)({}),me=x((0,v.Z)(!1),2),he=me[0],ve=me[1],be=(0,h.Z)([P,Z],pe),ye=be.buildFinishInputTestBatchFunction,ge=be.buildInputFirstRenderFunction,je=be.buildInputUnmountFunction,xe=be.isFormInvalid,we=be.setMessage,ke=(0,i.useMemo)((function(){return null!==$&&void 0!==$?$:function(){for(var e=arguments.length,n=new Array(e),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},t=n.fallbackValue,r=void 0===t?"":t,o=n.joinSeparator,i=void 0===o?"":o,a=n.limit,u=void 0===a?1:a;return c(e,Array)?e.slice(0,u).join(i):null!==e&&void 0!==e?e:r},l=t(7504),d=t(1770),f=t(8750),p=t(2029),m=t(7357),h=t(4594),v=t(1496),b=t(4386),y=t(4188),g=t(4690),j=t(4069),x=t(6284),w=t(3679),k=t(2519),O=t(480),I=t(2852),P=t(7169),Z=t(7750);function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);tN(n,1)[0]?1:-1})).reduce((function(e,o){var a=N(o,2),u=a[0],c=a[1],s=c.content_type,l=c.default,d=c.deprecated,p=c.description,h=c.options,v=c.required;if("1"===String(d))return e;var y,g,j=e.optional,x=e.required,w=null!==(y=D[s])&&void 0!==y?y:D.string,k=q(n,u),O=null!==(g=f[k])&&void 0!==g?g:l,I="1"===String(v),P=/passw/i.test(u),S=w({formUtils:i,id:k,isChecked:E.includes(O),isRequired:I,isSensitive:P,label:u,selectOptions:h,value:O}),A=(0,r.jsx)(b.Z,function(e){for(var n=1;n div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,r.jsx)(w.TZ,{expandInitially:!0,header:"Required parameters",children:(0,r.jsxs)(L,{children:[(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:y,label:k,name:y,value:u}),inputTestBatch:(0,T.Gn)(k,(function(){d(y)}),{onFinishBatch:s(y)},(function(e){d(y,{children:e})})),onFirstRender:l(y),required:!0},"".concat(y,"-wrapper")),v]})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(L,{children:h})})]})}return e}),[s,l,n,t,o,i,u,c,d]);return(0,r.jsx)(r.Fragment,{children:f})},H=t(2152),V=t(1081);function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tz(n,1)[0]?1:-1})).map((function(e){var n=z(e,2),t=n[0],r=n[1].description;return{fenceDescription:"string"===typeof r?r:"No description.",fenceId:t,label:t}})):[]}),[n]),f=(0,a.useMemo)((function(){return(0,r.jsx)(h.Z,{id:W,isOptionEqualToValue:function(e,n){return e.fenceId===n.fenceId},label:"Fence device type",onChange:function(e,n){i(W,null!==n),l(n)},openOnFocus:!0,options:d,renderOption:function(e,n,t){var o=n.fenceDescription,i=n.fenceId,a=t.selected;return(0,r.jsxs)(m.Z,function(e){for(var n=1;n *":{width:"100%"}}},e,{children:[(0,r.jsx)(Z.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:a?400:void 0},children:i}),(0,r.jsx)(Z.Ac,{selected:!1,children:o})]}))},sx:{marginTop:".3em"},value:s})}),[d,s,i]),p=(0,a.useMemo)((function(){return(0,r.jsx)(_,{fenceId:null===s||void 0===s?void 0:s.fenceId,fenceTemplate:n,formUtils:t})}),[n,null===s||void 0===s?void 0:s.fenceId,t]),v=(0,a.useMemo)((function(){return o?(0,r.jsx)(H.Z,{}):(0,r.jsxs)(g.Z,{children:[f,p]})}),[f,p,o]);return(0,a.useEffect)((function(){u&&i(W,null!==s)}),[s,u,i]),(0,r.jsx)(r.Fragment,{children:v})},Y=t(157),J=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.formUtils,i=e.loading,u=e.previousFenceName,c=e.previousFenceParameters,s=(0,a.useMemo)((function(){return i?(0,r.jsx)(H.Z,{}):(0,r.jsx)(_,{fenceId:n,fenceTemplate:t,formUtils:o,previousFenceName:u,previousFenceParameters:c})}),[t,n,o,i,u,c]);return(0,r.jsx)(r.Fragment,{children:s})},K=t(2545),X=t(8610),ee=t(6125),ne=t(7869),te=t(1905),re=t(3906),oe=t(6632),ie=t(8859),ae=t(2749);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},r=n.input,o=void 0===r?t:r,i=n.end,a=void 0===i?t.length:i,u=a-1,c=0;return o.every((function(n,t){return tn(n,2)[1].networkType===e&&(c+=1),t0&&void 0!==arguments[0]?arguments[0]:{},n=e.networkMinIp,t=void 0===n?"":n,r=e.networkSubnetMask,o=void 0===r?"":r,i=e.networkType,a=void 0===i?"ifn":i,u=e.networkGateway,c=void 0===u?ln(a)?"":void 0:u,s=e.networkNumber,l=void 0===s?b(a)+1:s;return{network:{networkGateway:c,networkMinIp:t,networkNumber:l,networkSubnetMask:o,networkType:a},networkId:(0,_e.Z)()}}),[b]),w=(0,a.useCallback)((function(e,n){return f((0,Ke.ZP)(e,n))}),[f]),k=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,s=t.reduce((function(e,n){var t=tn(n,2),i=t[0],s=t[1],l=s.networkNumber,d=s.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?l=c:d===o&&(l-=1),e[i]=nn({},s,{networkNumber:l,networkType:d})):e[i]=s,e}),{});f(s)}),[t,v,f]),O=(0,a.useCallback)((function(e){var n=e.networkId,r=e.networkType,o=!1,i=0,a=t.reduce((function(e,t){var a=tn(t,2),u=a[0],c=a[1];u===n?o=!0:(c.networkType===r&&(i+=1),e[u]=o?nn({},c,{networkNumber:i}):c);return e}),{});f(a)}),[t,f]),I=(0,a.useMemo)((function(){var e={};return e=t.reduce((function(e,t){var o=tn(t,2),i=o[0],a=o[1],u=a.networkGateway,c=a.networkMinIp,s=a.networkNumber,l=a.networkSubnetMask,d=a.networkType,f="".concat(on,"-").concat(i),p=1===s,m=ln(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(Je,{formUtils:n,networkId:i,networkNumber:s,networkType:d,networkTypeOptions:y,onClose:O,onNetworkTypeChange:k,previous:{gateway:u,minIp:c,subnetMask:l},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,y,O,k]);return(0,r.jsx)(l.Z,{columns:{xs:1,sm:2,md:3},layout:nn({},I,{"an-network-config-cell-add-network":{children:(0,r.jsx)(Ve.Z,{mapPreset:"add",onClick:function(){var e=g(),n=e.network,t=e.networkId;w(t,n)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:an,label:"DNS",value:c}),inputTestBatch:(0,T.dg)("DNS",(function(){h(an)}),{onFinishBatch:p(an)},(function(e){h(an,{children:e})})),onFirstRender:m(an),required:!0})},"an-network-config-input-cell-ntp":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:cn,label:"NTP",value:d}),inputTestBatch:(0,T.dg)("NTP",(function(){h(cn)}),{onFinishBatch:p(cn)},(function(e){h(cn,{children:e})})),onFirstRender:m(cn)})},"an-network-config-input-cell-mtu":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:un,inputProps:{placeholder:"1500"},label:"MTU",value:s}),inputTestBatch:(0,T.qY)("MTU",(function(){h(un)}),{onFinishBatch:p(un)},(function(e){h(un,{children:e})})),onFirstRender:m(un),valueType:"number"})}}),spacing:"1em"})};function fn(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var pn={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}},mn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous,u=void 0===i?{}:i,c=u.hostConfig,s=u.networkConfig,l=void 0===s?{}:s,d=fn(e.previous,["hostConfig","networkConfig"]),f=l.networks,p=void 0===f?pn:f,m=(0,a.useState)(p),h=m[0],v=m[1],b=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(Le,{formUtils:n,previous:d}),(0,r.jsx)(dn,{formUtils:n,networkListEntries:b,previous:l,setNetworkList:v}),(0,r.jsx)(Ce,{formUtils:n,knownFences:t,knownUpses:o,networkListEntries:b,previous:c})]})},hn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous;return(0,r.jsx)(mn,{formUtils:n,knownFences:t,knownUpses:o,previous:i})};function vn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function xt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return bt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=function(e){var n=e.formControlProps,t=e.formControlLabelProps,o=e.formLabelProps,i=e.id,u=e.label,c=e.onChange,s=e.radioItems,l=e.radioProps,d=(void 0===l?{}:l).sx,f=e.radioGroupProps,p=jt(e.radioProps,["sx"]),m=(0,a.useMemo)((function(){return"string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u}),[u]),h=(0,a.useMemo)((function(){return Object.entries(s).map((function(e){var n=xt(e,2),o=n[0],a=n[1],u=a.label,c=a.value,s="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(O.Z,gt({control:(0,r.jsx)(ft.Z,gt({},p,{sx:gt(yt({},"&.".concat(pt.Z.root),{color:P.s7}),d)})),value:c,label:s},t),"".concat(i,"-").concat(o))}))}),[t,i,s,d,p]);return(0,r.jsxs)(mt.Z,gt({},n,{children:[(0,r.jsx)(ht.Z,gt({},o,{children:m})),(0,r.jsx)(vt.Z,gt({onChange:c,row:!0},f,{children:h}))]}))},kt=t(3144);function Ot(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Vt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||Gt(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,n){if(e){if("string"===typeof e)return qt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qt(e,n):void 0}}var zt="prepare-network-host-name-input",Wt="prepare-network-netconf-input-group",Qt="Host name",Yt=function(e){for(var n=e.netconf,t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var rr=function(e){var n=e.label,t=tr(e,["label"]),o=(0,a.useMemo)((function(){return"string"===typeof n?(0,r.jsx)(Z.Ac,{inheritColour:!0,children:n}):n}),[n]);return(0,r.jsx)(Xt.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function fr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return sr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sr(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pr="1.8em",mr=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=dr(e,["orientation","variant"]),s=(0,ir.Z)(),l=(0,a.useCallback)((function(e){return s.breakpoints.up(e)}),[s]),d=(0,ar.Z)(l("xs")),f=(0,ar.Z)(l("sm")),p=(0,ar.Z)(l("md")),m=(0,ar.Z)(l("lg")),h=(0,ar.Z)(l("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),b=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=fr(n,2),r=t[0],i=t[1];return i&&o[r]&&(e=o[r]),!i})):e=o,e}),[v,o]);return(0,r.jsx)(ur.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);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 0c60f453..391d1305 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 4ade34c4..e2c91aed 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 cad4a92a..8a721a7b 100644 --- a/striker-ui/out/index.html +++ b/striker-ui/out/index.html @@ -1 +1 @@ -Dashboard

Nodes

\ No newline at end of file +Dashboard

Nodes

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

Loading...

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

Loading...

Placeholder
Uncheck to skip domain and host name pattern validation.
\ No newline at end of file diff --git a/striker-ui/out/login.html b/striker-ui/out/login.html index 6a6e6824..a0292fd4 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 a4201fe9..e4f257d1 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 f1ceb5ca..2d4d50af 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