@minecraft-docker/mcctl-console 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/platform/services/mcctl-console/.next/BUILD_ID +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/app-build-manifest.json +63 -63
- package/.next/standalone/platform/services/mcctl-console/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/build-manifest.json +2 -2
- package/.next/standalone/platform/services/mcctl-console/.next/prerender-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page.js +2 -2
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page.js +5 -5
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page.js +4 -4
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.rsc +2 -2
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.rsc +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.rsc +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.rsc +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app-paths-manifest.json +18 -18
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/2743.js +54 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/354.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/4609.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/5843.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/{5845.js → 6509.js} +5 -5
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/7573.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8055.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8849.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/9874.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/platform/services/mcctl-console/.next/server/next-font-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/next-font-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/pages/404.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/pages/500.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2535-54681cf49f7f39e8.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/3333-7e2d13faa47ed67e.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/3945-7c1c5f7e488ff042.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4187-07672ba5a9f76f7c.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4240-16f6e4c7e86ef2ce.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4436-bf86b627021ca7ab.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5381-d66dae5d5171cd57.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7082-a03865af2ed57a67.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7965-51dfb844f8b8584c.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8233-0fdf0ee81a8cadce.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8468-8346b1d9ff3f7efa.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8858-e009f69745d12205.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/audit-logs/{page-2763a56ce0490dd1.js → page-90479d797d04efdb.js} +1 -1
- package/.next/{static/chunks/app/(main)/dashboard/page-b2677b1041311201.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/dashboard/page-aa8e2d7970450b2a.js} +1 -1
- package/.next/{static/chunks/app/(main)/layout-9ce7f2bf657eacfa.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/layout-e6d8aef242d7e516.js} +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/{page-785e0ce7c07f8119.js → page-4a3f72a092662e75.js} +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/routing/page-29d4216d11c4d426.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-ab34db97055578dd.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/{page-c5378a7bfc6472ca.js → page-4324a833564ed326.js} +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/settings/page-12a46542ea952feb.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/worlds/page-7f194148444c39f3.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/css/4d6bfee1e91e393d.css +1 -0
- package/.next/static/chunks/2535-54681cf49f7f39e8.js +1 -0
- package/.next/static/chunks/3333-7e2d13faa47ed67e.js +1 -0
- package/.next/static/chunks/3945-7c1c5f7e488ff042.js +1 -0
- package/.next/static/chunks/4187-07672ba5a9f76f7c.js +1 -0
- package/.next/static/chunks/4240-16f6e4c7e86ef2ce.js +1 -0
- package/.next/static/chunks/4436-bf86b627021ca7ab.js +1 -0
- package/.next/static/chunks/5381-d66dae5d5171cd57.js +1 -0
- package/.next/static/chunks/7082-a03865af2ed57a67.js +1 -0
- package/.next/static/chunks/7965-51dfb844f8b8584c.js +1 -0
- package/.next/static/chunks/8233-0fdf0ee81a8cadce.js +1 -0
- package/.next/static/chunks/8468-8346b1d9ff3f7efa.js +1 -0
- package/.next/static/chunks/8858-e009f69745d12205.js +1 -0
- package/.next/static/chunks/app/(main)/audit-logs/{page-2763a56ce0490dd1.js → page-90479d797d04efdb.js} +1 -1
- package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/dashboard/page-b2677b1041311201.js → static/chunks/app/(main)/dashboard/page-aa8e2d7970450b2a.js} +1 -1
- package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/layout-9ce7f2bf657eacfa.js → static/chunks/app/(main)/layout-e6d8aef242d7e516.js} +1 -1
- package/.next/static/chunks/app/(main)/players/{page-785e0ce7c07f8119.js → page-4a3f72a092662e75.js} +1 -1
- package/.next/static/chunks/app/(main)/routing/page-29d4216d11c4d426.js +1 -0
- package/.next/static/chunks/app/(main)/servers/[name]/page-ab34db97055578dd.js +1 -0
- package/.next/static/chunks/app/(main)/servers/{page-c5378a7bfc6472ca.js → page-4324a833564ed326.js} +1 -1
- package/.next/static/chunks/app/(main)/settings/page-12a46542ea952feb.js +1 -0
- package/.next/static/chunks/app/(main)/worlds/page-7f194148444c39f3.js +1 -0
- package/.next/static/css/4d6bfee1e91e393d.css +1 -0
- package/package.json +2 -2
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/3810.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/4207.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/4282.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/7402.js +0 -54
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/7445.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/9350.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/190-9ecdd3c2ad7fadef.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2698-aeed063326ab23db.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4474-b7d88543d50f7f58.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4596-fa980f5e0b65f2b7.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4682-61f6b7ad99cfd0c9.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5381-4e3aac97e0617278.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5386-a568e84580b1d208.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7965-a31f12b5a5f1519b.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8918-bae025d477685e7d.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/9727-8e82372636a2fca6.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/9951-34eb9e4c6b6cdd23.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/routing/page-8333f2419cbdd686.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-b5a8d2d603b92812.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/settings/page-af345917f438de8d.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/worlds/page-01447db96eaf75eb.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/css/2a015360a6bc64f3.css +0 -1
- package/.next/static/chunks/190-9ecdd3c2ad7fadef.js +0 -1
- package/.next/static/chunks/2698-aeed063326ab23db.js +0 -1
- package/.next/static/chunks/4474-b7d88543d50f7f58.js +0 -1
- package/.next/static/chunks/4596-fa980f5e0b65f2b7.js +0 -1
- package/.next/static/chunks/4682-61f6b7ad99cfd0c9.js +0 -1
- package/.next/static/chunks/5381-4e3aac97e0617278.js +0 -1
- package/.next/static/chunks/5386-a568e84580b1d208.js +0 -1
- package/.next/static/chunks/7965-a31f12b5a5f1519b.js +0 -1
- package/.next/static/chunks/8918-bae025d477685e7d.js +0 -1
- package/.next/static/chunks/9727-8e82372636a2fca6.js +0 -1
- package/.next/static/chunks/9951-34eb9e4c6b6cdd23.js +0 -1
- package/.next/static/chunks/app/(main)/routing/page-8333f2419cbdd686.js +0 -1
- package/.next/static/chunks/app/(main)/servers/[name]/page-b5a8d2d603b92812.js +0 -1
- package/.next/static/chunks/app/(main)/settings/page-af345917f438de8d.js +0 -1
- package/.next/static/chunks/app/(main)/worlds/page-01447db96eaf75eb.js +0 -1
- package/.next/static/css/2a015360a6bc64f3.css +0 -1
- /package/.next/standalone/platform/services/mcctl-console/.next/static/{UT1hqjjvqYlP0_6fAgVvi → fdYvEyTkN35IFbAO8RHVv}/_buildManifest.js +0 -0
- /package/.next/standalone/platform/services/mcctl-console/.next/static/{UT1hqjjvqYlP0_6fAgVvi → fdYvEyTkN35IFbAO8RHVv}/_ssgManifest.js +0 -0
- /package/.next/static/{UT1hqjjvqYlP0_6fAgVvi → fdYvEyTkN35IFbAO8RHVv}/_buildManifest.js +0 -0
- /package/.next/static/{UT1hqjjvqYlP0_6fAgVvi → fdYvEyTkN35IFbAO8RHVv}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
exports.id=354,exports.ids=[354],exports.modules={78729:(e,r,t)=>{Promise.resolve().then(t.bind(t,47600))},47600:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>_});var a=t(58120),s=t(36372),i=t(89352),n=t(56539),l=t(40611),o=t(22053),c=t(39497),d=t(54365),x=t(2365),h=t(27121),m=t(58664),p=t(73091),u=t(19609),f=t(63654),g=t(63856),b=t(6695),j=t(33615),y=t(6545),v=t(43908),Z=t(28669),w=t(32130),C=t(88517),k=t(765),S=t(37372),P=t(34081),z=t(60417);function I(e){return(0,a.jsxs)(z.Z,{...e,viewBox:"0 0 32 32",children:[a.jsx("rect",{width:"32",height:"32",fill:"#5DA840"}),a.jsx("rect",{x:"4",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"20",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"12",y:"16",width:"8",height:"4",fill:"#000"}),a.jsx("rect",{x:"8",y:"20",width:"16",height:"8",fill:"#000"}),a.jsx("rect",{x:"8",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"20",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"0",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"8",y:"4",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"24",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"28",y:"8",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"0",y:"24",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"})]})}var W=t(36597),A=t(68763);let D=[{label:"Dashboard",href:"/dashboard",icon:a.jsx(y.Z,{})},{label:"Servers",href:"/servers",icon:a.jsx(v.Z,{})},{label:"Worlds",href:"/worlds",icon:a.jsx(k.Z,{})},{label:"Players",href:"/players",icon:a.jsx(Z.Z,{})},{label:"Audit",href:"/audit-logs",icon:a.jsx(C.Z,{})},{label:"Backups",href:"/backups",icon:a.jsx(S.Z,{})},{label:"Routing",href:"/routing",icon:a.jsx(w.Z,{})}];function T({mobileOpen:e,onMenuToggle:r}){let t=(0,n.usePathname)(),{data:s}=(0,A.kP)(),y=e=>"/dashboard"===e?"/dashboard"===t||"/"===t:t.startsWith(e);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(o.Z,{position:"fixed",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider",zIndex:e=>e.zIndex.drawer+1},children:(0,a.jsxs)(c.Z,{sx:{maxWidth:"1400px",width:"100%",mx:"auto",px:{xs:2,sm:3}},children:[a.jsx(d.Z,{color:"inherit","aria-label":"open menu",edge:"start",onClick:r,sx:{mr:2,display:{md:"none"}},children:a.jsx(b.Z,{})}),(0,a.jsxs)(l.default,{href:"/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:28,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"common.white",letterSpacing:"0.05em",fontSize:"1.1rem"},children:"Minecraft Console"})]}),a.jsx(i.Z,{component:"nav",sx:{display:{xs:"none",md:"flex"},alignItems:"center",gap:1,ml:4,flex:1},children:D.map(e=>{let r=y(e.href);return a.jsx(l.default,{href:e.href,style:{textDecoration:"none"},onClick:()=>!r&&(0,W.Av)(),children:(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,color:r?"primary.main":"text.secondary",backgroundColor:r?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{backgroundColor:"action.hover",color:r?"primary.main":"text.primary"}},children:[a.jsx(i.Z,{component:"span",sx:{display:"flex",alignItems:"center","& svg":{fontSize:20}},children:e.icon}),a.jsx(x.Z,{variant:"body2",sx:{fontWeight:r?600:400},children:e.label})]})},e.href)})}),a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:a.jsx(P.Ie,{})})]})}),a.jsx(h.ZP,{variant:"temporary",anchor:"left",open:e,onClose:r,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:280,backgroundColor:"background.paper"}},children:(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:2,minHeight:64,borderBottom:"1px solid",borderColor:"divider"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:24,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"primary.main",letterSpacing:"0.05em",fontSize:"1rem"},children:"Minecraft Console"})]}),a.jsx(d.Z,{onClick:r,"aria-label":"close menu",children:a.jsx(j.Z,{})})]}),a.jsx(m.Z,{sx:{flex:1,px:1,py:2},children:D.map(e=>{let t=y(e.href);return a.jsx(p.ZP,{disablePadding:!0,sx:{mb:.5},children:(0,a.jsxs)(u.Z,{component:l.default,href:e.href,onClick:()=>{r(),t||(0,W.Av)()},"aria-current":t?"page":void 0,sx:{borderRadius:2,backgroundColor:t?"action.selected":"transparent","&:hover":{backgroundColor:"action.hover"}},children:[a.jsx(f.Z,{sx:{color:t?"primary.main":"text.secondary",minWidth:40},children:e.icon}),a.jsx(g.Z,{primary:e.label,primaryTypographyProps:{fontWeight:t?600:400,color:t?"primary.main":"text.primary"}})]})},e.href)})})]})})]})}var M=t(23972),q=t(42578),R=t(80336),U=t(3984),E=t(60028);function H(e){return a.jsx(z.Z,{...e,viewBox:"0 0 24 24",children:a.jsx("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.186m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288z"})})}let B=[{title:"Resources",links:[{label:"Getting Started",href:"https://minecraft-server-manager.readthedocs.io/en/latest/getting-started/",external:!0},{label:"Configuration",href:"https://minecraft-server-manager.readthedocs.io/en/latest/configuration/",external:!0},{label:"Troubleshooting",href:"https://minecraft-server-manager.readthedocs.io/en/latest/troubleshooting/",external:!0}]},{title:"Documentation",links:[{label:"CLI Commands",href:"https://minecraft-server-manager.readthedocs.io/en/latest/cli/",external:!0},{label:"API Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/console/",external:!0},{label:"itzg Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/itzg-reference/",external:!0}]},{title:"Community",links:[{label:"GitHub",href:"https://github.com/smallmiro/minecraft-server-manager",external:!0},{label:"Issues",href:"https://github.com/smallmiro/minecraft-server-manager/issues",external:!0}]},{title:"About",links:[{label:"License",href:"https://github.com/smallmiro/minecraft-server-manager/blob/main/LICENSE",external:!0},{label:"Docker Hub",href:"https://hub.docker.com/r/itzg/minecraft-server",external:!0}]}];function V(){let e=new Date().getFullYear();return a.jsx(i.Z,{component:"footer",sx:{backgroundColor:"background.paper",borderTop:"1px solid",borderColor:"divider",mt:"auto"},children:(0,a.jsxs)(M.Z,{maxWidth:"lg",sx:{py:6},children:[a.jsx(i.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(4, 1fr)"},gap:4,mb:4},children:B.map(e=>(0,a.jsxs)(i.Z,{children:[a.jsx(x.Z,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary",mb:2},children:e.title}),a.jsx(i.Z,{component:"ul",sx:{listStyle:"none",p:0,m:0},children:e.links.map(e=>a.jsx(i.Z,{component:"li",sx:{mb:1},children:a.jsx(q.Z,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,underline:"hover",sx:{color:"text.secondary",fontSize:"0.875rem",transition:"color 0.2s ease","&:hover":{color:"primary.main"}},children:e.label})},e.label))})]},e.title))}),a.jsx(R.Z,{sx:{mb:3}}),(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:2},children:[(0,a.jsxs)(x.Z,{variant:"body2",sx:{color:"text.tertiary"},children:[e," \xa9"," ",a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer",underline:"hover",sx:{color:"primary.main"},children:"Minecraft Server Management Console"})]}),(0,a.jsxs)(i.Z,{sx:{display:"flex",gap:2},children:[a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(U.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://minecraft-server-manager.readthedocs.io/",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(E.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://hub.docker.com/r/itzg/minecraft-server",target:"_blank",rel:"noopener noreferrer","aria-label":"Docker Hub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(H,{fontSize:"small"})})]})]})]})})}function _({children:e}){let[r,t]=(0,s.useState)(!1);return(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:"background.default"},children:[a.jsx(T,{mobileOpen:r,onMenuToggle:()=>{t(!r)}}),a.jsx(i.Z,{component:"main",sx:{flexGrow:1,display:"flex",flexDirection:"column",pt:{xs:"88px",sm:"96px"},pb:{xs:3,sm:4},px:{xs:2,sm:3,md:4},maxWidth:"1400px",width:"100%",mx:"auto"},children:e}),a.jsx(V,{})]})}},34081:(e,r,t)=>{"use strict";t.d(r,{U0:()=>p,WS:()=>u,Ie:()=>I});var a=t(58120),s=t(36372),i=t(89352),n=t(66757),l=t(6275),o=t(92559),c=t(54365),d=t(10257),x=t(3643),h=t(8721),m=t(68763);function p({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(!1),[b,j]=(0,s.useState)({}),[y,v]=(0,s.useState)(null),[Z,w]=(0,s.useState)(!1),C=()=>{let e={};return r?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)||(e.email="Invalid email address"):e.email="Email is required",p||(e.password="Password is required"),j(e),0===Object.keys(e).length},k=async t=>{if(t.preventDefault(),v(null),C()){w(!0);try{let t=await m.cg.email({email:r,password:p});if(t.error){v(t.error.message||"Invalid credentials"),w(!1);return}e&&e()}catch(e){v("An unexpected error occurred. Please try again."),w(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:k,sx:{display:"flex",flexDirection:"column",gap:2},children:[y&&a.jsx(n.Z,{severity:"error",onClose:()=>v(null),children:y}),a.jsx(l.Z,{label:"Email",type:"email",value:r,onChange:e=>t(e.target.value),error:!!b.email,helperText:b.email,disabled:Z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:f?"text":"password",value:p,onChange:e=>u(e.target.value),error:!!b.password,helperText:b.password,disabled:Z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{g(!f)},edge:"end",children:f?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:Z,fullWidth:!0,size:"large",children:Z?"Signing in...":"Sign In"})]})}function u({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(""),[b,j]=(0,s.useState)(""),[y,v]=(0,s.useState)(!1),[Z,w]=(0,s.useState)(!1),[C,k]=(0,s.useState)({}),[S,P]=(0,s.useState)(null),[z,I]=(0,s.useState)(!1),W=()=>{let e={};return r||(e.name="Name is required"),p?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)||(e.email="Invalid email address"):e.email="Email is required",f?f.length<8&&(e.password="Password must be at least 8 characters"):e.password="Password is required",b?f!==b&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your password",k(e),0===Object.keys(e).length},A=async t=>{if(t.preventDefault(),P(null),W()){I(!0);try{let t=await m.y1.email({email:p,password:f,name:r});if(t.error){P(t.error.message||"Registration failed"),I(!1);return}e&&e()}catch(e){P("An unexpected error occurred. Please try again."),I(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:A,sx:{display:"flex",flexDirection:"column",gap:2},children:[S&&a.jsx(n.Z,{severity:"error",onClose:()=>P(null),children:S}),a.jsx(l.Z,{label:"Name",type:"text",value:r,onChange:e=>t(e.target.value),error:!!C.name,helperText:C.name,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Email",type:"email",value:p,onChange:e=>u(e.target.value),error:!!C.email,helperText:C.email,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:y?"text":"password",value:f,onChange:e=>g(e.target.value),error:!!C.password,helperText:C.password,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{v(!y)},edge:"end",children:y?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(l.Z,{label:"Confirm Password",type:Z?"text":"password",value:b,onChange:e=>j(e.target.value),error:!!C.confirmPassword,helperText:C.confirmPassword,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{w(!Z)},edge:"end",children:Z?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:z,fullWidth:!0,size:"large",children:z?"Creating account...":"Sign Up"})]})}var f=t(56539),g=t(79943),b=t(61573),j=t(51232),y=t(2365),v=t(48787),Z=t(80336),w=t(99634),C=t(63654),k=t(63856),S=t(62178),P=t(50210),z=t(49185);function I(){let e=(0,f.useRouter)(),{data:r,isPending:t}=(0,m.kP)(),[n,l]=(0,s.useState)(null),o=()=>{l(null)},x=async()=>{o(),await (0,m.w7)(),e.push("/login")};if(t)return a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(g.Z,{size:24})});if(!r?.user)return a.jsx(d.Z,{variant:"contained",color:"primary",onClick:()=>{e.push("/login")},children:"Sign In"});let{user:h}=r,p=((e,r)=>{if(e){let r=e.split(" ");return r.length>=2?`${r[0][0]}${r[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()}return r?r[0].toUpperCase():"?"})(h.name,h.email);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(c.Z,{onClick:e=>{l(e.currentTarget)},"aria-label":"user menu",children:a.jsx(b.Z,{sx:{bgcolor:"primary.main"},children:p})}),(0,a.jsxs)(j.Z,{anchorEl:n,open:!!n,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{mt:1},children:[(0,a.jsxs)(i.Z,{sx:{px:2,py:1.5,minWidth:200},children:[a.jsx(y.Z,{variant:"subtitle1",fontWeight:"600",children:h.name||"User"}),a.jsx(y.Z,{variant:"body2",color:"text.secondary",children:h.email}),"admin"===h.role&&a.jsx(v.Z,{label:"Admin",size:"small",color:"primary",sx:{mt:1}})]}),a.jsx(Z.Z,{}),"admin"===h.role&&(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/admin/users")},children:[a.jsx(C.Z,{children:a.jsx(S.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Users"})]}),(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/settings")},children:[a.jsx(C.Z,{children:a.jsx(P.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Settings"})]}),(0,a.jsxs)(w.Z,{onClick:x,children:[a.jsx(C.Z,{children:a.jsx(z.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Logout"})]})]})]})}},36597:(e,r,t)=>{"use strict";t.d(r,{Av:()=>a.startLoading});var a=t(21908)},68763:(e,r,t)=>{"use strict";t.d(r,{Cp:()=>x,Nq:()=>d,cg:()=>n,kP:()=>c,w7:()=>l,y1:()=>o,zB:()=>h});var a=t(19106),s=t(82829);let i=(0,a.X)({baseURL:process.env.NEXT_PUBLIC_BETTER_AUTH_URL||"",plugins:[(0,s.zB)()]}),{signIn:n,signOut:l,signUp:o,useSession:c,updateUser:d,changePassword:x}=i,h=i.admin},26072:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>a});let a=(0,t(2325).createProxy)(String.raw`/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/(main)/layout.tsx#default`)},52001:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var a=t(15505);let s=e=>[{type:"image/svg+xml",sizes:"any",url:(0,a.fillMetadataSegment)(".",e.params,"icon.svg")+"?0f68875a168deab8"}]}};
|
|
1
|
+
exports.id=354,exports.ids=[354],exports.modules={78729:(e,r,t)=>{Promise.resolve().then(t.bind(t,47600))},47600:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>_});var a=t(58120),s=t(36372),i=t(89352),n=t(56539),l=t(40611),o=t(22053),c=t(39497),d=t(54365),x=t(2365),h=t(33549),m=t(58664),p=t(73091),u=t(19609),f=t(63654),g=t(63856),b=t(6695),j=t(33615),y=t(6545),v=t(43908),Z=t(28669),w=t(32130),C=t(88517),k=t(765),S=t(37372),P=t(34081),z=t(60417);function I(e){return(0,a.jsxs)(z.Z,{...e,viewBox:"0 0 32 32",children:[a.jsx("rect",{width:"32",height:"32",fill:"#5DA840"}),a.jsx("rect",{x:"4",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"20",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"12",y:"16",width:"8",height:"4",fill:"#000"}),a.jsx("rect",{x:"8",y:"20",width:"16",height:"8",fill:"#000"}),a.jsx("rect",{x:"8",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"20",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"0",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"8",y:"4",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"24",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"28",y:"8",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"0",y:"24",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"})]})}var W=t(36597),A=t(68763);let D=[{label:"Dashboard",href:"/dashboard",icon:a.jsx(y.Z,{})},{label:"Servers",href:"/servers",icon:a.jsx(v.Z,{})},{label:"Worlds",href:"/worlds",icon:a.jsx(k.Z,{})},{label:"Players",href:"/players",icon:a.jsx(Z.Z,{})},{label:"Audit",href:"/audit-logs",icon:a.jsx(C.Z,{})},{label:"Backups",href:"/backups",icon:a.jsx(S.Z,{})},{label:"Routing",href:"/routing",icon:a.jsx(w.Z,{})}];function T({mobileOpen:e,onMenuToggle:r}){let t=(0,n.usePathname)(),{data:s}=(0,A.kP)(),y=e=>"/dashboard"===e?"/dashboard"===t||"/"===t:t.startsWith(e);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(o.Z,{position:"fixed",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider",zIndex:e=>e.zIndex.drawer+1},children:(0,a.jsxs)(c.Z,{sx:{maxWidth:"1400px",width:"100%",mx:"auto",px:{xs:2,sm:3}},children:[a.jsx(d.Z,{color:"inherit","aria-label":"open menu",edge:"start",onClick:r,sx:{mr:2,display:{md:"none"}},children:a.jsx(b.Z,{})}),(0,a.jsxs)(l.default,{href:"/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:28,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"common.white",letterSpacing:"0.05em",fontSize:"1.1rem"},children:"Minecraft Console"})]}),a.jsx(i.Z,{component:"nav",sx:{display:{xs:"none",md:"flex"},alignItems:"center",gap:1,ml:4,flex:1},children:D.map(e=>{let r=y(e.href);return a.jsx(l.default,{href:e.href,style:{textDecoration:"none"},onClick:()=>!r&&(0,W.Av)(),children:(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,color:r?"primary.main":"text.secondary",backgroundColor:r?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{backgroundColor:"action.hover",color:r?"primary.main":"text.primary"}},children:[a.jsx(i.Z,{component:"span",sx:{display:"flex",alignItems:"center","& svg":{fontSize:20}},children:e.icon}),a.jsx(x.Z,{variant:"body2",sx:{fontWeight:r?600:400},children:e.label})]})},e.href)})}),a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:a.jsx(P.Ie,{})})]})}),a.jsx(h.ZP,{variant:"temporary",anchor:"left",open:e,onClose:r,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:280,backgroundColor:"background.paper"}},children:(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:2,minHeight:64,borderBottom:"1px solid",borderColor:"divider"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:24,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"primary.main",letterSpacing:"0.05em",fontSize:"1rem"},children:"Minecraft Console"})]}),a.jsx(d.Z,{onClick:r,"aria-label":"close menu",children:a.jsx(j.Z,{})})]}),a.jsx(m.Z,{sx:{flex:1,px:1,py:2},children:D.map(e=>{let t=y(e.href);return a.jsx(p.ZP,{disablePadding:!0,sx:{mb:.5},children:(0,a.jsxs)(u.Z,{component:l.default,href:e.href,onClick:()=>{r(),t||(0,W.Av)()},"aria-current":t?"page":void 0,sx:{borderRadius:2,backgroundColor:t?"action.selected":"transparent","&:hover":{backgroundColor:"action.hover"}},children:[a.jsx(f.Z,{sx:{color:t?"primary.main":"text.secondary",minWidth:40},children:e.icon}),a.jsx(g.Z,{primary:e.label,primaryTypographyProps:{fontWeight:t?600:400,color:t?"primary.main":"text.primary"}})]})},e.href)})})]})})]})}var M=t(23972),q=t(42578),R=t(80336),U=t(3984),E=t(60028);function H(e){return a.jsx(z.Z,{...e,viewBox:"0 0 24 24",children:a.jsx("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.186m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288z"})})}let B=[{title:"Resources",links:[{label:"Getting Started",href:"https://minecraft-server-manager.readthedocs.io/en/latest/getting-started/",external:!0},{label:"Configuration",href:"https://minecraft-server-manager.readthedocs.io/en/latest/configuration/",external:!0},{label:"Troubleshooting",href:"https://minecraft-server-manager.readthedocs.io/en/latest/troubleshooting/",external:!0}]},{title:"Documentation",links:[{label:"CLI Commands",href:"https://minecraft-server-manager.readthedocs.io/en/latest/cli/",external:!0},{label:"API Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/console/",external:!0},{label:"itzg Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/itzg-reference/",external:!0}]},{title:"Community",links:[{label:"GitHub",href:"https://github.com/smallmiro/minecraft-server-manager",external:!0},{label:"Issues",href:"https://github.com/smallmiro/minecraft-server-manager/issues",external:!0}]},{title:"About",links:[{label:"License",href:"https://github.com/smallmiro/minecraft-server-manager/blob/main/LICENSE",external:!0},{label:"Docker Hub",href:"https://hub.docker.com/r/itzg/minecraft-server",external:!0}]}];function V(){let e=new Date().getFullYear();return a.jsx(i.Z,{component:"footer",sx:{backgroundColor:"background.paper",borderTop:"1px solid",borderColor:"divider",mt:"auto"},children:(0,a.jsxs)(M.Z,{maxWidth:"lg",sx:{py:6},children:[a.jsx(i.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(4, 1fr)"},gap:4,mb:4},children:B.map(e=>(0,a.jsxs)(i.Z,{children:[a.jsx(x.Z,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary",mb:2},children:e.title}),a.jsx(i.Z,{component:"ul",sx:{listStyle:"none",p:0,m:0},children:e.links.map(e=>a.jsx(i.Z,{component:"li",sx:{mb:1},children:a.jsx(q.Z,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,underline:"hover",sx:{color:"text.secondary",fontSize:"0.875rem",transition:"color 0.2s ease","&:hover":{color:"primary.main"}},children:e.label})},e.label))})]},e.title))}),a.jsx(R.Z,{sx:{mb:3}}),(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:2},children:[(0,a.jsxs)(x.Z,{variant:"body2",sx:{color:"text.tertiary"},children:[e," \xa9"," ",a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer",underline:"hover",sx:{color:"primary.main"},children:"Minecraft Server Management Console"})]}),(0,a.jsxs)(i.Z,{sx:{display:"flex",gap:2},children:[a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(U.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://minecraft-server-manager.readthedocs.io/",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(E.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://hub.docker.com/r/itzg/minecraft-server",target:"_blank",rel:"noopener noreferrer","aria-label":"Docker Hub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(H,{fontSize:"small"})})]})]})]})})}function _({children:e}){let[r,t]=(0,s.useState)(!1);return(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:"background.default"},children:[a.jsx(T,{mobileOpen:r,onMenuToggle:()=>{t(!r)}}),a.jsx(i.Z,{component:"main",sx:{flexGrow:1,display:"flex",flexDirection:"column",pt:{xs:"88px",sm:"96px"},pb:{xs:3,sm:4},px:{xs:2,sm:3,md:4},maxWidth:"1400px",width:"100%",mx:"auto"},children:e}),a.jsx(V,{})]})}},34081:(e,r,t)=>{"use strict";t.d(r,{U0:()=>p,WS:()=>u,Ie:()=>I});var a=t(58120),s=t(36372),i=t(89352),n=t(66757),l=t(6275),o=t(92559),c=t(54365),d=t(10257),x=t(3643),h=t(8721),m=t(68763);function p({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(!1),[b,j]=(0,s.useState)({}),[y,v]=(0,s.useState)(null),[Z,w]=(0,s.useState)(!1),C=()=>{let e={};return r?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)||(e.email="Invalid email address"):e.email="Email is required",p||(e.password="Password is required"),j(e),0===Object.keys(e).length},k=async t=>{if(t.preventDefault(),v(null),C()){w(!0);try{let t=await m.cg.email({email:r,password:p});if(t.error){v(t.error.message||"Invalid credentials"),w(!1);return}e&&e()}catch(e){v("An unexpected error occurred. Please try again."),w(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:k,sx:{display:"flex",flexDirection:"column",gap:2},children:[y&&a.jsx(n.Z,{severity:"error",onClose:()=>v(null),children:y}),a.jsx(l.Z,{label:"Email",type:"email",value:r,onChange:e=>t(e.target.value),error:!!b.email,helperText:b.email,disabled:Z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:f?"text":"password",value:p,onChange:e=>u(e.target.value),error:!!b.password,helperText:b.password,disabled:Z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{g(!f)},edge:"end",children:f?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:Z,fullWidth:!0,size:"large",children:Z?"Signing in...":"Sign In"})]})}function u({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(""),[b,j]=(0,s.useState)(""),[y,v]=(0,s.useState)(!1),[Z,w]=(0,s.useState)(!1),[C,k]=(0,s.useState)({}),[S,P]=(0,s.useState)(null),[z,I]=(0,s.useState)(!1),W=()=>{let e={};return r||(e.name="Name is required"),p?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)||(e.email="Invalid email address"):e.email="Email is required",f?f.length<8&&(e.password="Password must be at least 8 characters"):e.password="Password is required",b?f!==b&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your password",k(e),0===Object.keys(e).length},A=async t=>{if(t.preventDefault(),P(null),W()){I(!0);try{let t=await m.y1.email({email:p,password:f,name:r});if(t.error){P(t.error.message||"Registration failed"),I(!1);return}e&&e()}catch(e){P("An unexpected error occurred. Please try again."),I(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:A,sx:{display:"flex",flexDirection:"column",gap:2},children:[S&&a.jsx(n.Z,{severity:"error",onClose:()=>P(null),children:S}),a.jsx(l.Z,{label:"Name",type:"text",value:r,onChange:e=>t(e.target.value),error:!!C.name,helperText:C.name,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Email",type:"email",value:p,onChange:e=>u(e.target.value),error:!!C.email,helperText:C.email,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:y?"text":"password",value:f,onChange:e=>g(e.target.value),error:!!C.password,helperText:C.password,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{v(!y)},edge:"end",children:y?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(l.Z,{label:"Confirm Password",type:Z?"text":"password",value:b,onChange:e=>j(e.target.value),error:!!C.confirmPassword,helperText:C.confirmPassword,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{w(!Z)},edge:"end",children:Z?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:z,fullWidth:!0,size:"large",children:z?"Creating account...":"Sign Up"})]})}var f=t(56539),g=t(79943),b=t(61573),j=t(51232),y=t(2365),v=t(48787),Z=t(80336),w=t(99634),C=t(63654),k=t(63856),S=t(62178),P=t(50210),z=t(49185);function I(){let e=(0,f.useRouter)(),{data:r,isPending:t}=(0,m.kP)(),[n,l]=(0,s.useState)(null),o=()=>{l(null)},x=async()=>{o(),await (0,m.w7)(),e.push("/login")};if(t)return a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(g.Z,{size:24})});if(!r?.user)return a.jsx(d.Z,{variant:"contained",color:"primary",onClick:()=>{e.push("/login")},children:"Sign In"});let{user:h}=r,p=((e,r)=>{if(e){let r=e.split(" ");return r.length>=2?`${r[0][0]}${r[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()}return r?r[0].toUpperCase():"?"})(h.name,h.email);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(c.Z,{onClick:e=>{l(e.currentTarget)},"aria-label":"user menu",children:a.jsx(b.Z,{sx:{bgcolor:"primary.main"},children:p})}),(0,a.jsxs)(j.Z,{anchorEl:n,open:!!n,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{mt:1},children:[(0,a.jsxs)(i.Z,{sx:{px:2,py:1.5,minWidth:200},children:[a.jsx(y.Z,{variant:"subtitle1",fontWeight:"600",children:h.name||"User"}),a.jsx(y.Z,{variant:"body2",color:"text.secondary",children:h.email}),"admin"===h.role&&a.jsx(v.Z,{label:"Admin",size:"small",color:"primary",sx:{mt:1}})]}),a.jsx(Z.Z,{}),"admin"===h.role&&(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/admin/users")},children:[a.jsx(C.Z,{children:a.jsx(S.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Users"})]}),(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/settings")},children:[a.jsx(C.Z,{children:a.jsx(P.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Settings"})]}),(0,a.jsxs)(w.Z,{onClick:x,children:[a.jsx(C.Z,{children:a.jsx(z.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Logout"})]})]})]})}},36597:(e,r,t)=>{"use strict";t.d(r,{Av:()=>a.startLoading});var a=t(21908)},68763:(e,r,t)=>{"use strict";t.d(r,{Cp:()=>x,Nq:()=>d,cg:()=>n,kP:()=>c,w7:()=>l,y1:()=>o,zB:()=>h});var a=t(19106),s=t(82829);let i=(0,a.X)({baseURL:process.env.NEXT_PUBLIC_BETTER_AUTH_URL||"",plugins:[(0,s.zB)()]}),{signIn:n,signOut:l,signUp:o,useSession:c,updateUser:d,changePassword:x}=i,h=i.admin},26072:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>a});let a=(0,t(2325).createProxy)(String.raw`/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/(main)/layout.tsx#default`)},52001:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var a=t(15505);let s=e=>[{type:"image/svg+xml",sizes:"any",url:(0,a.fillMetadataSegment)(".",e.params,"icon.svg")+"?0f68875a168deab8"}]}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=4609,exports.ids=[4609],exports.modules={54458:(e,r
|
|
1
|
+
"use strict";exports.id=4609,exports.ids=[4609],exports.modules={54458:(e,t,r)=>{r.d(t,{Z:()=>C});var s=r(36885),n=r(4981),i=r(36372),o=r(30330),u=r(3693),a=r(62923),c=r(51118),l=r(9103),d=r(2365),y=r(89206),h=r(7967);function p(e){return(0,h.ZP)("MuiDialogContentText",e)}(0,y.Z)("MuiDialogContentText",["root"]);var m=r(58120);let v=["children","className"],S=e=>{let{classes:t}=e,r=(0,u.Z)({root:["root"]},p,t);return(0,n.Z)({},t,r)},f=(0,a.ZP)(d.Z,{shouldForwardProp:e=>(0,c.Z)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C=i.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiDialogContentText"}),{className:i}=r,u=(0,s.Z)(r,v),a=S(u);return(0,m.jsx)(f,(0,n.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:u,className:(0,o.Z)(a.root,i)},r,{classes:a}))})},43137:(e,t,r)=>{async function s(e,t={}){let r={...t.headers};t.body&&(r["Content-Type"]="application/json");let s=await fetch(e,{...t,headers:r});if(!s.ok){let e=await s.json().catch(()=>({error:"UnknownError",message:s.statusText})),t=Error(e.message);throw t.statusCode=s.status,t.code=e.error,t}return s.json()}r.d(t,{SC:()=>s})},74151:(e,t,r)=>{r.d(t,{$t:()=>R,Aw:()=>d,Bx:()=>K,Fv:()=>S,Hq:()=>c,Hy:()=>a,Js:()=>b,Ll:()=>D,MH:()=>C,S0:()=>L,Sr:()=>h,Yo:()=>Q,_I:()=>y,c5:()=>g,g2:()=>v,gx:()=>q,hy:()=>p,iC:()=>f,jM:()=>l,mj:()=>O,nq:()=>m,nv:()=>w,ox:()=>N,s8:()=>F,x$:()=>u,zF:()=>I});var s=r(28872),n=r(95343),i=r(20042),o=r(43137);function u(){return(0,s.a)({queryKey:["servers"],queryFn:()=>(0,o.SC)("/api/servers"),refetchInterval:6e4})}function a(e,t){return(0,s.a)({queryKey:["servers",e],queryFn:()=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}`),enabled:t?.enabled!==!1&&!!e,refetchInterval:3e4})}function c(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({name:e,force:t})=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}${t?"?force=true":""}`,{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["servers"]})}})}function l(){let e=(0,n.NL)();return(0,i.D)({mutationFn:e=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/start`,{method:"POST"}),onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["servers"]}),e.invalidateQueries({queryKey:["servers",r]})}})}function d(){let e=(0,n.NL)();return(0,i.D)({mutationFn:e=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/stop`,{method:"POST"}),onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["servers"]}),e.invalidateQueries({queryKey:["servers",r]})}})}function y(){let e=(0,n.NL)();return(0,i.D)({mutationFn:e=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/restart`,{method:"POST"}),onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["servers"]}),e.invalidateQueries({queryKey:["servers",r]})}})}function h(){return(0,s.a)({queryKey:["worlds"],queryFn:()=>(0,o.SC)("/api/worlds"),refetchInterval:3e4})}function p(){let e=(0,n.NL)();return(0,i.D)({mutationFn:e=>(0,o.SC)("/api/worlds",{method:"POST",body:JSON.stringify(e)}),onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]})}})}function m(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({worldName:e,serverName:t})=>(0,o.SC)(`/api/worlds/${encodeURIComponent(e)}/assign`,{method:"POST",body:JSON.stringify({serverName:t})}),onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]}),e.invalidateQueries({queryKey:["servers"]})}})}function v(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({worldName:e,force:t})=>(0,o.SC)(`/api/worlds/${encodeURIComponent(e)}/release${t?"?force=true":""}`,{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]})}})}function S(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({name:e,force:t})=>(0,o.SC)(`/api/worlds/${encodeURIComponent(e)}${t?"?force=true":""}`,{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]})}})}function f(e,t){return(0,s.a)({queryKey:["servers",e,"config"],queryFn:()=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/config`),enabled:t?.enabled!==!1&&!!e})}function C(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({serverName:e,config:t})=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/config`,{method:"PATCH",body:JSON.stringify(t)}),onSuccess:(t,{serverName:r})=>{e.invalidateQueries({queryKey:["servers",r,"config"]}),e.invalidateQueries({queryKey:["servers",r]})}})}function q(){let e=(0,n.NL)();return(0,i.D)({mutationFn:e=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/world/reset`,{method:"POST"}),onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["servers",r]}),e.invalidateQueries({queryKey:["worlds"]})}})}function b(e,t){return(0,s.a)({queryKey:["servers",e,"hostnames"],queryFn:()=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/hostnames`),enabled:t?.enabled!==!1&&!!e})}function K(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({serverName:e,customHostnames:t})=>(0,o.SC)(`/api/servers/${encodeURIComponent(e)}/hostnames`,{method:"PUT",body:JSON.stringify({customHostnames:t})}),onSuccess:(t,{serverName:r})=>{e.invalidateQueries({queryKey:["servers",r,"hostnames"]}),e.invalidateQueries({queryKey:["servers",r]})}})}function w(){return(0,s.a)({queryKey:["router-status"],queryFn:()=>(0,o.SC)("/api/router/status"),refetchInterval:3e4})}function O(){return(0,s.a)({queryKey:["backup-status"],queryFn:()=>(0,o.SC)("/api/backup"),refetchInterval:6e4})}function R(e=20){return(0,s.a)({queryKey:["backup-history",e],queryFn:()=>(0,o.SC)(`/api/backup/history?limit=${e}`),refetchInterval:6e4})}function g(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({message:e})=>(0,o.SC)("/api/backup",{method:"POST",body:JSON.stringify({message:e})}),onSuccess:()=>{e.invalidateQueries({queryKey:["backup-status"]}),e.invalidateQueries({queryKey:["backup-history"]})}})}function F(){let e=(0,n.NL)();return(0,i.D)({mutationFn:e=>(0,o.SC)("/api/backup/restore",{method:"POST",body:JSON.stringify({commitHash:e})}),onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]}),e.invalidateQueries({queryKey:["servers"]})}})}function N(e){return(0,s.a)({queryKey:["servers",e,"whitelist"],queryFn:()=>(0,o.SC)(`/api/players/whitelist?server=${encodeURIComponent(e)}`),enabled:!!e})}function Q(e){return(0,s.a)({queryKey:["servers",e,"whitelist-status"],queryFn:()=>(0,o.SC)(`/api/players/whitelist/status?server=${encodeURIComponent(e)}`),enabled:!!e})}function I(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({serverName:e,enabled:t})=>(0,o.SC)("/api/players/whitelist/status",{method:"PUT",body:JSON.stringify({server:e,enabled:t})}),onSuccess:(t,{serverName:r})=>{e.invalidateQueries({queryKey:["servers",r,"whitelist-status"]}),e.invalidateQueries({queryKey:["servers",r,"whitelist"]})}})}function D(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({serverName:e,player:t})=>(0,o.SC)("/api/players/whitelist",{method:"POST",body:JSON.stringify({server:e,player:t})}),onSuccess:(t,{serverName:r})=>{e.invalidateQueries({queryKey:["servers",r,"whitelist"]})}})}function L(){let e=(0,n.NL)();return(0,i.D)({mutationFn:({serverName:e,player:t})=>(0,o.SC)(`/api/players/whitelist?player=${encodeURIComponent(t)}&server=${encodeURIComponent(e)}`,{method:"DELETE"}),onSuccess:(t,{serverName:r})=>{e.invalidateQueries({queryKey:["servers",r,"whitelist"]})}})}},20042:(e,t,r)=>{r.d(t,{D:()=>l});var s=r(36372),n=r(83365),i=r(96254),o=r(16360),u=r(35114),a=class extends o.l{#e;#t=void 0;#r;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,u.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,u.Ym)(t.mutationKey)!==(0,u.Ym)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#i()}mutate(e,t){return this.#s=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){let e=this.#r?.state??(0,n.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){i.Vr.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},c=r(95343);function l(e,t){let r=(0,c.NL)(t),[n]=s.useState(()=>new a(r,e));s.useEffect(()=>{n.setOptions(e)},[n,e]);let o=s.useSyncExternalStore(s.useCallback(e=>n.subscribe(i.Vr.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),l=s.useCallback((e,t)=>{n.mutate(e,t).catch(u.ZT)},[n]);if(o.error&&(0,u.L3)(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=5843,exports.ids=[5843],exports.modules={5414:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)([(0,a.jsx)("path",{d:"m7.3 14.7 1.2-1.2c-1-1-1.5-2.3-1.5-3.5 0-1.3.5-2.6 1.5-3.5L7.3 5.3c-1.3 1.3-2 3-2 4.7s.7 3.4 2 4.7M19.1 2.9l-1.2 1.2c1.6 1.6 2.4 3.8 2.4 5.9 0 2.1-.8 4.3-2.4 5.9l1.2 1.2c2-2 2.9-4.5 2.9-7.1 0-2.6-1-5.1-2.9-7.1"},"0"),(0,a.jsx)("path",{d:"M6.1 4.1 4.9 2.9C3 4.9 2 7.4 2 10c0 2.6 1 5.1 2.9 7.1l1.2-1.2c-1.6-1.6-2.4-3.8-2.4-5.9 0-2.1.8-4.3 2.4-5.9m10.6 10.6c1.3-1.3 2-3 2-4.7-.1-1.7-.7-3.4-2-4.7l-1.2 1.2c1 1 1.5 2.3 1.5 3.5 0 1.3-.5 2.6-1.5 3.5zM14.5 10c0-1.38-1.12-2.5-2.5-2.5S9.5 8.62 9.5 10c0 .76.34 1.42.87 1.88L7 22h2l.67-2h4.67l.66 2h2l-3.37-10.12c.53-.46.87-1.12.87-1.88m-4.17 8L12 13l1.67 5z"},"1")],"CellTower")},94304:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info")},79603:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5M1 9l2 2c2.88-2.88 6.79-4.08 10.53-3.62l1.19-2.68C9.89 3.84 4.74 5.27 1 9m20 2 2-2c-1.64-1.64-3.55-2.82-5.59-3.57l-.53 2.82c1.5.62 2.9 1.53 4.12 2.75m-4 4 2-2c-.8-.8-1.7-1.42-2.66-1.89l-.55 2.92c.42.27.83.59 1.21.97M5 13l2 2c1.13-1.13 2.56-1.79 4.03-2l1.28-2.88c-2.63-.08-5.3.87-7.31 2.88"}),"NetworkCheck")},97441:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},84292:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop")},36739:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},95843:(e,s,r)=>{r.d(s,{eE:()=>Q,E4:()=>M,SB:()=>k,ms:()=>O,hI:()=>j,aY:()=>ec,zd:()=>L,Ik:()=>C});var t=r(58120),n=r(67073),a=r(92797),l=r(2365),i=r(89352),o=r(48787),c=r(37891),d=r(88916),x=r(59059),h=r(75698),u=r(79795);let m={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},p={border:0,py:1};function j({router:e}){var s;let r=(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?{label:"Auto Discovery",color:"info"}:s.includes("mapping")?{label:"Manual Mapping",color:"warning"}:{label:s,color:"default"}:{label:"Unknown",color:"default"};return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(u.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Platform Information"})]}),t.jsx(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Router Name"}),t.jsx(h.Z,{sx:p,children:e.name})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Port"}),t.jsx(h.Z,{sx:p,children:e.port})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Mode"}),t.jsx(h.Z,{sx:p,children:t.jsx(o.Z,{label:r.label,size:"small",color:r.color,variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Uptime"}),t.jsx(h.Z,{sx:p,children:e.uptime||"-"})]})]})})]})})}var Z=r(98243),f=r(95009),g=r(4587),y=r(45912),v=r(32130),b=r(84527);function w(e){switch(e){case"running":return"#4caf50";case"exited":case"dead":case"not_found":case"not_created":return"#f44336";case"created":case"restarting":case"paused":return"#ff9800";default:return"#9e9e9e"}}function S({status:e}){return t.jsx(Z.Z,{title:e,arrow:!0,children:t.jsx(i.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:w(e),flexShrink:0,boxShadow:"running"===e?`0 0 6px ${w(e)}`:"none"}})})}function C({router:e}){let s=function(e){let s=new Map;for(let r of e){let e=r.target.replace(/^mc-/,"").replace(/:25565$/,""),t=s.get(e);t?t.hostnames.push(r.hostname):s.set(e,{status:r.serverStatus,hostnames:[r.hostname],serverType:r.serverType,serverVersion:r.serverVersion})}return s}(e.routes);return t.jsx(n.Z,{sx:{height:"100%"},children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(v.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"MC-Router Status"}),(0,t.jsxs)(i.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[t.jsx(o.Z,{label:e.status,size:"small",color:function(e){switch(e){case"running":return"success";case"exited":case"dead":case"not_found":case"not_created":return"error";case"created":case"restarting":case"paused":return"warning";default:return"default"}}(e.status)}),t.jsx(o.Z,{label:e.health,size:"small",color:function(e){switch(e){case"healthy":return"success";case"unhealthy":return"error";case"starting":return"warning";default:return"default"}}(e.health),variant:"outlined"})]})]}),t.jsx(l.Z,{variant:"subtitle2",sx:{mb:1,mt:3},children:"Routing Table"}),0===e.routes.length?t.jsx(l.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No routes configured"}):t.jsx(i.Z,{sx:{mt:1},children:Array.from(s.entries()).map(([e,{status:s,hostnames:r,serverType:n,serverVersion:a}])=>(0,t.jsxs)(f.Z,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:{border:1,borderColor:"divider","&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"}},children:[t.jsx(g.Z,{expandIcon:t.jsx(b.Z,{}),children:(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",pr:1},children:[t.jsx(S,{status:s}),t.jsx(l.Z,{variant:"subtitle2",sx:{fontWeight:600},children:e}),(n||a)&&t.jsx(l.Z,{variant:"caption",color:"text.secondary",children:[n,a].filter(Boolean).join(" ")}),(0,t.jsxs)(l.Z,{variant:"caption",color:"text.secondary",sx:{ml:"auto"},children:[r.length," ",1===r.length?"route":"routes"]})]})}),t.jsx(y.Z,{sx:{pt:0},children:t.jsx(i.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:r.map(e=>t.jsx(l.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.85rem",color:"text.secondary"},children:e},e))})})]},e))})]})})}var z=r(79603);let P={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},I={border:0,py:1};function k({router:e}){var s;let r=e.routes.filter(e=>"running"===e.serverStatus).length,u=e.routes.length;return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(z.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Network Settings"})]}),t.jsx(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Listening Port"}),t.jsx(h.Z,{sx:I,children:t.jsx(o.Z,{label:e.port,size:"small",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Routing Mode"}),t.jsx(h.Z,{sx:I,children:t.jsx(o.Z,{label:(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?"Auto Discovery":s.includes("mapping")?"Manual Mapping":s:"Unknown",size:"small",color:"info",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Total Routes"}),t.jsx(h.Z,{sx:I,children:u})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Active Routes"}),t.jsx(h.Z,{sx:I,children:t.jsx(o.Z,{label:`${r} / ${u}`,size:"small",color:r>0?"success":"default",variant:"outlined"})})]})]})})]})})}var A=r(5414);function M({avahi:e}){let s=e?.status??"unknown";return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(A.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"mDNS (Avahi)"}),t.jsx(o.Z,{label:s,size:"small",color:"running"===s?"success":s.includes("not running")?"warning":"not installed"===s?"error":"default",sx:{ml:"auto"}})]}),(0,t.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:["Avahi mDNS daemon enables ",t.jsx("code",{children:".local"})," hostname resolution for Minecraft servers on the local network."]})]})})}var N=r(36372),D=r(6275),T=r(10257),W=r(79943),E=r(38481),F=r(68763);function L({onSuccess:e,onError:s}){let{data:r}=(0,F.kP)(),[c,d]=(0,N.useState)(r?.user?.name||""),[x,h]=(0,N.useState)(!1),[u,m]=(0,N.useState)(!1),p=r?.user,j=c!==(p?.name||""),Z=async()=>{if(j&&c.trim()){h(!0);try{let{error:r}=await (0,F.Nq)({name:c.trim()});r?s(r.message||"Failed to update profile"):e("Profile updated successfully")}catch{s("Failed to update profile")}finally{h(!1)}}};return p?t.jsx(n.Z,{sx:{height:"100%"},children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[t.jsx(E.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Profile"})]}),(0,t.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[t.jsx(D.Z,{label:"Name",value:c,onChange:e=>d(e.target.value),fullWidth:!0,size:"small"}),t.jsx(D.Z,{label:"Email",value:p.email,fullWidth:!0,size:"small",disabled:!0,helperText:"Email cannot be changed"}),(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(l.Z,{variant:"body2",color:"text.secondary",children:"Role:"}),t.jsx(o.Z,{label:"admin"===p.role?"Admin":"User",size:"small",color:"admin"===p.role?"primary":"default",variant:"outlined"})]}),t.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:t.jsx(T.Z,{variant:"contained",onClick:Z,disabled:!j||!c.trim()||x,startIcon:x?t.jsx(W.Z,{size:16}):null,children:x?"Saving...":"Save Changes"})})]})]})}):null}var R=r(92559),U=r(54365),B=r(61960),V=r(27767),q=r(36739);function O({onSuccess:e,onError:s}){let[r,o]=(0,N.useState)(""),[c,d]=(0,N.useState)(""),[x,h]=(0,N.useState)(""),[u,m]=(0,N.useState)(!1),[p,j]=(0,N.useState)(!1),[Z,f]=(0,N.useState)(!1),[g,y]=(0,N.useState)(!1),[v,b]=(0,N.useState)({}),w=()=>{let e={};return r||(e.currentPassword="Current password is required"),c?c.length<8&&(e.newPassword="Password must be at least 8 characters"):e.newPassword="New password is required",x?c!==x&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your new password",r&&c&&r===c&&(e.newPassword="New password must be different from current password"),b(e),0===Object.keys(e).length},S=async t=>{if(t.preventDefault(),w()){y(!0);try{let{error:t}=await (0,F.Cp)({currentPassword:r,newPassword:c,revokeOtherSessions:!1});t?s(t.message||"Failed to change password"):(e("Password changed successfully"),o(""),d(""),h(""),b({}))}catch{s("Failed to change password")}finally{y(!1)}}},C=(e,s)=>t.jsx(R.Z,{position:"end",children:t.jsx(U.Z,{"aria-label":e?"hide password":"show password",onClick:()=>s(!e),edge:"end",size:"small",children:e?t.jsx(q.Z,{fontSize:"small"}):t.jsx(V.Z,{fontSize:"small"})})});return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[t.jsx(B.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Change Password"})]}),(0,t.jsxs)(i.Z,{component:"form",onSubmit:S,sx:{display:"flex",flexDirection:"column",gap:2.5},children:[t.jsx(D.Z,{label:"Current Password",type:u?"text":"password",value:r,onChange:e=>{o(e.target.value),v.currentPassword&&b(e=>({...e,currentPassword:""}))},error:!!v.currentPassword,helperText:v.currentPassword,fullWidth:!0,size:"small",autoComplete:"current-password",InputProps:{endAdornment:C(u,m)}}),t.jsx(D.Z,{label:"New Password",type:p?"text":"password",value:c,onChange:e=>{d(e.target.value),v.newPassword&&b(e=>({...e,newPassword:""}))},error:!!v.newPassword,helperText:v.newPassword||"Minimum 8 characters",fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:C(p,j)}}),t.jsx(D.Z,{label:"Confirm New Password",type:Z?"text":"password",value:x,onChange:e=>{h(e.target.value),v.confirmPassword&&b(e=>({...e,confirmPassword:""}))},error:!!v.confirmPassword,helperText:v.confirmPassword,fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:C(Z,f)}}),t.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:t.jsx(T.Z,{type:"submit",variant:"contained",disabled:g,startIcon:g?t.jsx(W.Z,{size:16}):null,children:g?"Changing...":"Change Password"})})]})]})})}var $=r(94304);let _={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},H={border:0,py:1};function K(e){return e?("string"==typeof e?new Date(e):e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function Q(){let{data:e}=(0,F.kP)(),s=e?.user;return s?t.jsx(n.Z,{sx:{height:"100%"},children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx($.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Account Information"})]}),t.jsx(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:_,children:"Account ID"}),t.jsx(h.Z,{sx:H,children:t.jsx(l.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem"},children:s.id})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:_,children:"Created"}),t.jsx(h.Z,{sx:H,children:K(s.createdAt)})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:_,children:"Last Updated"}),t.jsx(h.Z,{sx:H,children:K(s.updatedAt)})]})]})})]})}):null}var Y=r(70862),G=r(68913),J=r(66757),X=r(765),ee=r(29553),es=r(84292),er=r(97441),et=r(51999),en=r(53825),ea=r(15934);let el={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},ei={border:0,py:1};function eo({text:e}){let[s,r]=(0,N.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)}catch(e){console.error("Failed to copy:",e)}};return t.jsx(U.Z,{size:"small",onClick:n,sx:{ml:1,color:s?"success.main":"text.secondary","&:hover":{bgcolor:"action.hover"}},"aria-label":s?"Copied":"Copy to clipboard",children:s?t.jsx(en.Z,{sx:{fontSize:16}}):t.jsx(et.Z,{sx:{fontSize:16}})})}function ec(){let{data:e,isLoading:s,error:r}=(0,ea.UW)(),u=(0,ea.Bc)(),m=(0,ea.N$)();if(r)return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(X.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(J.Z,{severity:"error",children:["Failed to load playit status: ",r.message]})]})});if(s)return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(G.Z,{variant:"circular",width:24,height:24}),t.jsx(G.Z,{variant:"text",width:"40%",height:32})]}),(0,t.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[t.jsx(G.Z,{variant:"text",width:"35%"}),t.jsx(G.Z,{variant:"text",width:"40%"})]}),(0,t.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[t.jsx(G.Z,{variant:"text",width:"35%"}),t.jsx(G.Z,{variant:"text",width:"40%"})]})]})});if(!e?.enabled)return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(X.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(J.Z,{severity:"info",children:[t.jsx(l.Z,{variant:"body2",fontWeight:500,sx:{mb:.5},children:"Not configured"}),t.jsx(l.Z,{variant:"body2",color:"text.secondary",children:"playit.gg agent is not set up. Configure PLAYIT_SECRET to enable external access."})]})]})});let p=e.agentRunning&&"running"===e.containerStatus,j=u.isPending||m.isPending,Z=u.error||m.error;return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[t.jsx(X.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),Z&&t.jsx(J.Z,{severity:"error",sx:{mb:2},children:Z.message||"Action failed"}),(0,t.jsxs)(i.Z,{sx:{display:"flex",gap:1,mb:2,flexWrap:"wrap"},children:[p?t.jsx(T.Z,{variant:"outlined",size:"small",color:"error",startIcon:j?t.jsx(W.Z,{size:16}):t.jsx(es.Z,{}),onClick:()=>{m.mutate()},disabled:j,sx:{fontSize:12},children:j?"Stopping...":"Stop Agent"}):t.jsx(T.Z,{variant:"contained",size:"small",color:"success",startIcon:j?t.jsx(W.Z,{size:16,color:"inherit"}):t.jsx(ee.Z,{}),onClick:()=>{u.mutate()},disabled:j,sx:{fontSize:12},children:j?"Starting...":"Start Agent"}),t.jsx(T.Z,{component:"a",href:"https://playit.gg/account/tunnels",target:"_blank",rel:"noopener noreferrer",size:"small",startIcon:t.jsx(er.Z,{}),sx:{fontSize:12},children:"View Dashboard"})]}),t.jsx(c.Z,{size:"small",sx:{mb:3},children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:el,children:"Agent Status"}),t.jsx(h.Z,{sx:ei,children:t.jsx(o.Z,{label:p?"Running":"Stopped",size:"small",color:p?"success":"default",variant:"outlined"})})]}),e.uptime&&(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:el,children:"Uptime"}),t.jsx(h.Z,{sx:ei,children:e.uptime})]})]})}),e.servers&&e.servers.length>0&&(()=>{let s=e.servers.filter(e=>e.playitDomain),r=e.servers.filter(e=>!e.playitDomain);return(0,t.jsxs)(t.Fragment,{children:[t.jsx(l.Z,{variant:"subtitle2",sx:{mb:1.5,fontWeight:600},children:"Server Domains"}),s.length>0?(0,t.jsxs)(c.Z,{size:"small",sx:{mb:r.length>0?2:0},children:[t.jsx(Y.Z,{children:(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"Server"}),t.jsx(h.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"External Domain"})]})}),t.jsx(d.Z,{children:s.map(e=>(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:e.serverName}),t.jsx(h.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(l.Z,{variant:"body2",sx:{fontFamily:"monospace"},children:e.playitDomain}),t.jsx(eo,{text:e.playitDomain})]})})]},e.serverName))})]}):(0,t.jsxs)(l.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:["No servers with external domains configured. Use ",t.jsx("code",{children:"mcctl create --playit-domain"})," to register a domain."]}),r.length>0&&(0,t.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:[r.length," server",r.length>1?"s":""," without external domain: ",r.map(e=>e.serverName).join(", ")]})]})})()]})})}},43137:(e,s,r)=>{async function t(e,s={}){let r={...s.headers};s.body&&(r["Content-Type"]="application/json");let t=await fetch(e,{...s,headers:r});if(!t.ok){let e=await t.json().catch(()=>({error:"UnknownError",message:t.statusText})),s=Error(e.message);throw s.statusCode=t.status,s.code=e.error,s}return t.json()}r.d(s,{SC:()=>t})},15934:(e,s,r)=>{r.d(s,{Bc:()=>o,N$:()=>c,UW:()=>i});var t=r(28872),n=r(95343),a=r(20042),l=r(43137);function i(){return(0,t.a)({queryKey:["playit-status"],queryFn:()=>(0,l.SC)("/api/playit/status"),refetchInterval:3e4})}function o(){let e=(0,n.NL)();return(0,a.D)({mutationFn:()=>(0,l.SC)("/api/playit/start",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}function c(){let e=(0,n.NL)();return(0,a.D)({mutationFn:()=>(0,l.SC)("/api/playit/stop",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}}};
|
|
1
|
+
"use strict";exports.id=5843,exports.ids=[5843],exports.modules={5414:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)([(0,a.jsx)("path",{d:"m7.3 14.7 1.2-1.2c-1-1-1.5-2.3-1.5-3.5 0-1.3.5-2.6 1.5-3.5L7.3 5.3c-1.3 1.3-2 3-2 4.7s.7 3.4 2 4.7M19.1 2.9l-1.2 1.2c1.6 1.6 2.4 3.8 2.4 5.9 0 2.1-.8 4.3-2.4 5.9l1.2 1.2c2-2 2.9-4.5 2.9-7.1 0-2.6-1-5.1-2.9-7.1"},"0"),(0,a.jsx)("path",{d:"M6.1 4.1 4.9 2.9C3 4.9 2 7.4 2 10c0 2.6 1 5.1 2.9 7.1l1.2-1.2c-1.6-1.6-2.4-3.8-2.4-5.9 0-2.1.8-4.3 2.4-5.9m10.6 10.6c1.3-1.3 2-3 2-4.7-.1-1.7-.7-3.4-2-4.7l-1.2 1.2c1 1 1.5 2.3 1.5 3.5 0 1.3-.5 2.6-1.5 3.5zM14.5 10c0-1.38-1.12-2.5-2.5-2.5S9.5 8.62 9.5 10c0 .76.34 1.42.87 1.88L7 22h2l.67-2h4.67l.66 2h2l-3.37-10.12c.53-.46.87-1.12.87-1.88m-4.17 8L12 13l1.67 5z"},"1")],"CellTower")},94304:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info")},79603:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5M1 9l2 2c2.88-2.88 6.79-4.08 10.53-3.62l1.19-2.68C9.89 3.84 4.74 5.27 1 9m20 2 2-2c-1.64-1.64-3.55-2.82-5.59-3.57l-.53 2.82c1.5.62 2.9 1.53 4.12 2.75m-4 4 2-2c-.8-.8-1.7-1.42-2.66-1.89l-.55 2.92c.42.27.83.59 1.21.97M5 13l2 2c1.13-1.13 2.56-1.79 4.03-2l1.28-2.88c-2.63-.08-5.3.87-7.31 2.88"}),"NetworkCheck")},97441:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},84292:(e,s,r)=>{var t=r(66682);s.Z=void 0;var n=t(r(7750)),a=r(58120);s.Z=(0,n.default)((0,a.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop")},95843:(e,s,r)=>{r.d(s,{eE:()=>Q,E4:()=>N,SB:()=>k,ms:()=>$,hI:()=>j,aY:()=>ec,zd:()=>L,Ik:()=>C});var t=r(58120),n=r(67073),a=r(92797),l=r(2365),i=r(89352),o=r(48787),c=r(37891),d=r(88916),x=r(59059),h=r(75698),u=r(79795);let m={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},p={border:0,py:1};function j({router:e}){var s;let r=(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?{label:"Auto Discovery",color:"info"}:s.includes("mapping")?{label:"Manual Mapping",color:"warning"}:{label:s,color:"default"}:{label:"Unknown",color:"default"};return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(u.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Platform Information"})]}),t.jsx(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Router Name"}),t.jsx(h.Z,{sx:p,children:e.name})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Port"}),t.jsx(h.Z,{sx:p,children:e.port})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Mode"}),t.jsx(h.Z,{sx:p,children:t.jsx(o.Z,{label:r.label,size:"small",color:r.color,variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:m,children:"Uptime"}),t.jsx(h.Z,{sx:p,children:e.uptime||"-"})]})]})})]})})}var Z=r(98243),f=r(95009),g=r(4587),y=r(45912),v=r(32130),w=r(84527);function b(e){switch(e){case"running":return"#4caf50";case"exited":case"dead":case"not_found":case"not_created":return"#f44336";case"created":case"restarting":case"paused":return"#ff9800";default:return"#9e9e9e"}}function S({status:e}){return t.jsx(Z.Z,{title:e,arrow:!0,children:t.jsx(i.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:b(e),flexShrink:0,boxShadow:"running"===e?`0 0 6px ${b(e)}`:"none"}})})}function C({router:e}){let s=function(e){let s=new Map;for(let r of e){let e=r.target.replace(/^mc-/,"").replace(/:25565$/,""),t=s.get(e);t?t.hostnames.push(r.hostname):s.set(e,{status:r.serverStatus,hostnames:[r.hostname],serverType:r.serverType,serverVersion:r.serverVersion})}return s}(e.routes);return t.jsx(n.Z,{sx:{height:"100%"},children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(v.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"MC-Router Status"}),(0,t.jsxs)(i.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[t.jsx(o.Z,{label:e.status,size:"small",color:function(e){switch(e){case"running":return"success";case"exited":case"dead":case"not_found":case"not_created":return"error";case"created":case"restarting":case"paused":return"warning";default:return"default"}}(e.status)}),t.jsx(o.Z,{label:e.health,size:"small",color:function(e){switch(e){case"healthy":return"success";case"unhealthy":return"error";case"starting":return"warning";default:return"default"}}(e.health),variant:"outlined"})]})]}),t.jsx(l.Z,{variant:"subtitle2",sx:{mb:1,mt:3},children:"Routing Table"}),0===e.routes.length?t.jsx(l.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No routes configured"}):t.jsx(i.Z,{sx:{mt:1},children:Array.from(s.entries()).map(([e,{status:s,hostnames:r,serverType:n,serverVersion:a}])=>(0,t.jsxs)(f.Z,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:{border:1,borderColor:"divider","&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"}},children:[t.jsx(g.Z,{expandIcon:t.jsx(w.Z,{}),children:(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",pr:1},children:[t.jsx(S,{status:s}),t.jsx(l.Z,{variant:"subtitle2",sx:{fontWeight:600},children:e}),(n||a)&&t.jsx(l.Z,{variant:"caption",color:"text.secondary",children:[n,a].filter(Boolean).join(" ")}),(0,t.jsxs)(l.Z,{variant:"caption",color:"text.secondary",sx:{ml:"auto"},children:[r.length," ",1===r.length?"route":"routes"]})]})}),t.jsx(y.Z,{sx:{pt:0},children:t.jsx(i.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:r.map(e=>t.jsx(l.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.85rem",color:"text.secondary"},children:e},e))})})]},e))})]})})}var z=r(79603);let P={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},I={border:0,py:1};function k({router:e}){var s;let r=e.routes.filter(e=>"running"===e.serverStatus).length,u=e.routes.length;return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(z.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Network Settings"})]}),t.jsx(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Listening Port"}),t.jsx(h.Z,{sx:I,children:t.jsx(o.Z,{label:e.port,size:"small",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Routing Mode"}),t.jsx(h.Z,{sx:I,children:t.jsx(o.Z,{label:(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?"Auto Discovery":s.includes("mapping")?"Manual Mapping":s:"Unknown",size:"small",color:"info",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Total Routes"}),t.jsx(h.Z,{sx:I,children:u})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:P,children:"Active Routes"}),t.jsx(h.Z,{sx:I,children:t.jsx(o.Z,{label:`${r} / ${u}`,size:"small",color:r>0?"success":"default",variant:"outlined"})})]})]})})]})})}var A=r(5414);function N({avahi:e}){let s=e?.status??"unknown";return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(A.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"mDNS (Avahi)"}),t.jsx(o.Z,{label:s,size:"small",color:"running"===s?"success":s.includes("not running")?"warning":"not installed"===s?"error":"default",sx:{ml:"auto"}})]}),(0,t.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:["Avahi mDNS daemon enables ",t.jsx("code",{children:".local"})," hostname resolution for Minecraft servers on the local network."]})]})})}var D=r(36372),M=r(6275),T=r(10257),W=r(79943),E=r(38481),F=r(68763);function L({onSuccess:e,onError:s}){let{data:r}=(0,F.kP)(),[c,d]=(0,D.useState)(r?.user?.name||""),[x,h]=(0,D.useState)(!1),[u,m]=(0,D.useState)(!1),p=r?.user,j=c!==(p?.name||""),Z=async()=>{if(j&&c.trim()){h(!0);try{let{error:r}=await (0,F.Nq)({name:c.trim()});r?s(r.message||"Failed to update profile"):e("Profile updated successfully")}catch{s("Failed to update profile")}finally{h(!1)}}};return p?t.jsx(n.Z,{sx:{height:"100%"},children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[t.jsx(E.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Profile"})]}),(0,t.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[t.jsx(M.Z,{label:"Name",value:c,onChange:e=>d(e.target.value),fullWidth:!0,size:"small"}),t.jsx(M.Z,{label:"Email",value:p.email,fullWidth:!0,size:"small",disabled:!0,helperText:"Email cannot be changed"}),(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(l.Z,{variant:"body2",color:"text.secondary",children:"Role:"}),t.jsx(o.Z,{label:"admin"===p.role?"Admin":"User",size:"small",color:"admin"===p.role?"primary":"default",variant:"outlined"})]}),t.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:t.jsx(T.Z,{variant:"contained",onClick:Z,disabled:!j||!c.trim()||x,startIcon:x?t.jsx(W.Z,{size:16}):null,children:x?"Saving...":"Save Changes"})})]})]})}):null}var R=r(92559),U=r(54365),B=r(61960),V=r(27767),q=r(36739);function $({onSuccess:e,onError:s}){let[r,o]=(0,D.useState)(""),[c,d]=(0,D.useState)(""),[x,h]=(0,D.useState)(""),[u,m]=(0,D.useState)(!1),[p,j]=(0,D.useState)(!1),[Z,f]=(0,D.useState)(!1),[g,y]=(0,D.useState)(!1),[v,w]=(0,D.useState)({}),b=()=>{let e={};return r||(e.currentPassword="Current password is required"),c?c.length<8&&(e.newPassword="Password must be at least 8 characters"):e.newPassword="New password is required",x?c!==x&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your new password",r&&c&&r===c&&(e.newPassword="New password must be different from current password"),w(e),0===Object.keys(e).length},S=async t=>{if(t.preventDefault(),b()){y(!0);try{let{error:t}=await (0,F.Cp)({currentPassword:r,newPassword:c,revokeOtherSessions:!1});t?s(t.message||"Failed to change password"):(e("Password changed successfully"),o(""),d(""),h(""),w({}))}catch{s("Failed to change password")}finally{y(!1)}}},C=(e,s)=>t.jsx(R.Z,{position:"end",children:t.jsx(U.Z,{"aria-label":e?"hide password":"show password",onClick:()=>s(!e),edge:"end",size:"small",children:e?t.jsx(q.Z,{fontSize:"small"}):t.jsx(V.Z,{fontSize:"small"})})});return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[t.jsx(B.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Change Password"})]}),(0,t.jsxs)(i.Z,{component:"form",onSubmit:S,sx:{display:"flex",flexDirection:"column",gap:2.5},children:[t.jsx(M.Z,{label:"Current Password",type:u?"text":"password",value:r,onChange:e=>{o(e.target.value),v.currentPassword&&w(e=>({...e,currentPassword:""}))},error:!!v.currentPassword,helperText:v.currentPassword,fullWidth:!0,size:"small",autoComplete:"current-password",InputProps:{endAdornment:C(u,m)}}),t.jsx(M.Z,{label:"New Password",type:p?"text":"password",value:c,onChange:e=>{d(e.target.value),v.newPassword&&w(e=>({...e,newPassword:""}))},error:!!v.newPassword,helperText:v.newPassword||"Minimum 8 characters",fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:C(p,j)}}),t.jsx(M.Z,{label:"Confirm New Password",type:Z?"text":"password",value:x,onChange:e=>{h(e.target.value),v.confirmPassword&&w(e=>({...e,confirmPassword:""}))},error:!!v.confirmPassword,helperText:v.confirmPassword,fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:C(Z,f)}}),t.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:t.jsx(T.Z,{type:"submit",variant:"contained",disabled:g,startIcon:g?t.jsx(W.Z,{size:16}):null,children:g?"Changing...":"Change Password"})})]})]})})}var _=r(94304);let O={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},H={border:0,py:1};function K(e){return e?("string"==typeof e?new Date(e):e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function Q(){let{data:e}=(0,F.kP)(),s=e?.user;return s?t.jsx(n.Z,{sx:{height:"100%"},children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(_.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"Account Information"})]}),t.jsx(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:O,children:"Account ID"}),t.jsx(h.Z,{sx:H,children:t.jsx(l.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem"},children:s.id})})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:O,children:"Created"}),t.jsx(h.Z,{sx:H,children:K(s.createdAt)})]}),(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:O,children:"Last Updated"}),t.jsx(h.Z,{sx:H,children:K(s.updatedAt)})]})]})})]})}):null}var Y=r(70862),G=r(68913),J=r(66757),X=r(765),ee=r(29553),es=r(84292),er=r(97441),et=r(51999),en=r(53825),ea=r(15934);let el={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},ei={border:0,py:1};function eo({text:e}){let[s,r]=(0,D.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)}catch(e){console.error("Failed to copy:",e)}};return t.jsx(U.Z,{size:"small",onClick:n,sx:{ml:1,color:s?"success.main":"text.secondary","&:hover":{bgcolor:"action.hover"}},"aria-label":s?"Copied":"Copy to clipboard",children:s?t.jsx(en.Z,{sx:{fontSize:16}}):t.jsx(et.Z,{sx:{fontSize:16}})})}function ec(){let{data:e,isLoading:s,error:r}=(0,ea.UW)(),u=(0,ea.Bc)(),m=(0,ea.N$)();if(r)return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(X.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(J.Z,{severity:"error",children:["Failed to load playit status: ",r.message]})]})});if(s)return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(G.Z,{variant:"circular",width:24,height:24}),t.jsx(G.Z,{variant:"text",width:"40%",height:32})]}),(0,t.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[t.jsx(G.Z,{variant:"text",width:"35%"}),t.jsx(G.Z,{variant:"text",width:"40%"})]}),(0,t.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[t.jsx(G.Z,{variant:"text",width:"35%"}),t.jsx(G.Z,{variant:"text",width:"40%"})]})]})});if(!e?.enabled)return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[t.jsx(X.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(J.Z,{severity:"info",children:[t.jsx(l.Z,{variant:"body2",fontWeight:500,sx:{mb:.5},children:"Not configured"}),t.jsx(l.Z,{variant:"body2",color:"text.secondary",children:"playit.gg agent is not set up. Configure PLAYIT_SECRET to enable external access."})]})]})});let p=e.agentRunning&&"running"===e.containerStatus,j=u.isPending||m.isPending,Z=u.error||m.error;return t.jsx(n.Z,{children:(0,t.jsxs)(a.Z,{children:[(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[t.jsx(X.Z,{color:"primary"}),t.jsx(l.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),Z&&t.jsx(J.Z,{severity:"error",sx:{mb:2},children:Z.message||"Action failed"}),(0,t.jsxs)(i.Z,{sx:{display:"flex",gap:1,mb:2,flexWrap:"wrap"},children:[p?t.jsx(T.Z,{variant:"outlined",size:"small",color:"error",startIcon:j?t.jsx(W.Z,{size:16}):t.jsx(es.Z,{}),onClick:()=>{m.mutate()},disabled:j,sx:{fontSize:12},children:j?"Stopping...":"Stop Agent"}):t.jsx(T.Z,{variant:"contained",size:"small",color:"success",startIcon:j?t.jsx(W.Z,{size:16,color:"inherit"}):t.jsx(ee.Z,{}),onClick:()=>{u.mutate()},disabled:j,sx:{fontSize:12},children:j?"Starting...":"Start Agent"}),t.jsx(T.Z,{component:"a",href:"https://playit.gg/account/tunnels",target:"_blank",rel:"noopener noreferrer",size:"small",startIcon:t.jsx(er.Z,{}),sx:{fontSize:12},children:"View Dashboard"})]}),t.jsx(c.Z,{size:"small",sx:{mb:3},children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:el,children:"Agent Status"}),t.jsx(h.Z,{sx:ei,children:t.jsx(o.Z,{label:p?"Running":"Stopped",size:"small",color:p?"success":"default",variant:"outlined"})})]}),e.uptime&&(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:el,children:"Uptime"}),t.jsx(h.Z,{sx:ei,children:e.uptime})]})]})}),e.servers&&e.servers.length>0&&(()=>{let s=e.servers.filter(e=>e.playitDomain),r=e.servers.filter(e=>!e.playitDomain);return(0,t.jsxs)(t.Fragment,{children:[t.jsx(l.Z,{variant:"subtitle2",sx:{mb:1.5,fontWeight:600},children:"Server Domains"}),s.length>0?(0,t.jsxs)(c.Z,{size:"small",sx:{mb:r.length>0?2:0},children:[t.jsx(Y.Z,{children:(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"Server"}),t.jsx(h.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"External Domain"})]})}),t.jsx(d.Z,{children:s.map(e=>(0,t.jsxs)(x.Z,{children:[t.jsx(h.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:e.serverName}),t.jsx(h.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:(0,t.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(l.Z,{variant:"body2",sx:{fontFamily:"monospace"},children:e.playitDomain}),t.jsx(eo,{text:e.playitDomain})]})})]},e.serverName))})]}):(0,t.jsxs)(l.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:["No servers with external domains configured. Use ",t.jsx("code",{children:"mcctl create --playit-domain"})," to register a domain."]}),r.length>0&&(0,t.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:[r.length," server",r.length>1?"s":""," without external domain: ",r.map(e=>e.serverName).join(", ")]})]})})()]})})}},43137:(e,s,r)=>{async function t(e,s={}){let r={...s.headers};s.body&&(r["Content-Type"]="application/json");let t=await fetch(e,{...s,headers:r});if(!t.ok){let e=await t.json().catch(()=>({error:"UnknownError",message:t.statusText})),s=Error(e.message);throw s.statusCode=t.status,s.code=e.error,s}return t.json()}r.d(s,{SC:()=>t})},15934:(e,s,r)=>{r.d(s,{Bc:()=>o,N$:()=>c,UW:()=>i});var t=r(28872),n=r(95343),a=r(20042),l=r(43137);function i(){return(0,t.a)({queryKey:["playit-status"],queryFn:()=>(0,l.SC)("/api/playit/status"),refetchInterval:3e4})}function o(){let e=(0,n.NL)();return(0,a.D)({mutationFn:()=>(0,l.SC)("/api/playit/start",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}function c(){let e=(0,n.NL)();return(0,a.D)({mutationFn:()=>(0,l.SC)("/api/playit/stop",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}}};
|
package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/{5845.js → 6509.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";exports.id=
|
|
1
|
+
"use strict";exports.id=6509,exports.ids=[6509],exports.modules={53825:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),a=n(58120);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},51999:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),a=n(58120);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},79795:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),a=n(58120);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},61960:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),a=n(58120);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},77343:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),a=n(58120);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},27767:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),a=n(58120);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},36739:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),a=n(58120);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},68913:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(36885),o=n(4981),a=n(36372),i=n(30330),l=n(84199),s=n(3693),c=n(95940),u=n(62923),d=n(9103),h=n(89206),m=n(7967);function v(e){return(0,m.ZP)("MuiSkeleton",e)}(0,h.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var p=n(58120);let f=["animation","className","component","height","style","variant","width"],g=e=>e,Z,b,x,C,w=e=>{let{classes:t,variant:n,animation:r,hasChildren:o,width:a,height:i}=e;return(0,s.Z)({root:["root",n,r,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]},v,t)},k=(0,l.F4)(Z||(Z=g`
|
|
2
2
|
0% {
|
|
3
3
|
opacity: 1;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
100% {
|
|
11
11
|
opacity: 1;
|
|
12
12
|
}
|
|
13
|
-
`)),y=(0,
|
|
13
|
+
`)),y=(0,l.F4)(b||(b=g`
|
|
14
14
|
0% {
|
|
15
15
|
transform: translateX(-100%);
|
|
16
16
|
}
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
100% {
|
|
24
24
|
transform: translateX(100%);
|
|
25
25
|
}
|
|
26
|
-
`)),
|
|
26
|
+
`)),M=(0,u.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{let n=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",r=parseFloat(e.shape.borderRadius);return(0,o.Z)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,c.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>"pulse"===e.animation&&(0,l.iv)(x||(x=g`
|
|
27
27
|
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
28
|
-
`),k),({ownerState:e,theme:t})=>"wave"===e.animation&&(0,
|
|
28
|
+
`),k),({ownerState:e,theme:t})=>"wave"===e.animation&&(0,l.iv)(C||(C=g`
|
|
29
29
|
position: relative;
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
right: 0;
|
|
49
49
|
top: 0;
|
|
50
50
|
}
|
|
51
|
-
`),y,(t.vars||t).palette.action.hover)),
|
|
51
|
+
`),y,(t.vars||t).palette.action.hover)),E=a.forwardRef(function(e,t){let n=(0,d.i)({props:e,name:"MuiSkeleton"}),{animation:a="pulse",className:l,component:s="span",height:c,style:u,variant:h="text",width:m}=n,v=(0,r.Z)(n,f),g=(0,o.Z)({},n,{animation:a,component:s,variant:h,hasChildren:!!v.children}),Z=w(g);return(0,p.jsx)(M,(0,o.Z)({as:s,ref:t,className:(0,i.Z)(Z.root,l),ownerState:g},v,{style:(0,o.Z)({width:m,height:c},u)}))})},60920:(e,t,n)=>{n.d(t,{Z:()=>N});var r=n(36885),o=n(4981),a=n(36372),i=n(3693),l=n(23359),s=n(48170),c=n(49982),u=n(27079);let d=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:l}=e,d=(0,s.Z)();a.useEffect(()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[i,r]);let h=(0,c.Z)((e,t)=>{null==r||r(e,t)}),m=(0,c.Z)(e=>{r&&null!=e&&d.start(e,()=>{h(null,"timeout")})});a.useEffect(()=>(i&&m(t),d.clear),[i,t,m,d]);let v=d.clear,p=a.useCallback(()=>{null!=t&&m(null!=l?l:.5*t)},[t,l,m]),f=e=>t=>{let n=e.onBlur;null==n||n(t),p()},g=e=>t=>{let n=e.onFocus;null==n||n(t),v()},Z=e=>t=>{let n=e.onMouseEnter;null==n||n(t),v()},b=e=>t=>{let n=e.onMouseLeave;null==n||n(t),p()};return a.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",p),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",v)}},[n,i,p,v]),{getRootProps:(t={})=>{let n=(0,o.Z)({},(0,u.Z)(e),(0,u.Z)(t));return(0,o.Z)({role:"presentation"},t,n,{onBlur:f(n),onFocus:g(n),onMouseEnter:Z(n),onMouseLeave:b(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}};var h=n(21430),m=n(52059),v=n(34200),p=n(58120);function f(e){return e.substring(2).toLowerCase()}function g(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,l=a.useRef(!1),s=a.useRef(null),u=a.useRef(!1),d=a.useRef(!1);a.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);let g=(0,h.Z)((0,v.Z)(t),s),Z=(0,c.Z)(e=>{let t=d.current;d.current=!1;let r=(0,m.Z)(s.current);if(u.current&&s.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(l.current){l.current=!1;return}(e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target))||!n&&t||o(e)}}),b=e=>n=>{d.current=!0;let r=t.props[e];r&&r(n)},x={ref:g};return!1!==i&&(x[i]=b(i)),a.useEffect(()=>{if(!1!==i){let e=f(i),t=(0,m.Z)(s.current),n=()=>{l.current=!0};return t.addEventListener(e,Z),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,Z),t.removeEventListener("touchmove",n)}}},[Z,i]),!1!==r&&(x[r]=b(r)),a.useEffect(()=>{if(!1!==r){let e=f(r),t=(0,m.Z)(s.current);return t.addEventListener(e,Z),()=>{t.removeEventListener(e,Z)}}},[Z,r]),(0,p.jsx)(a.Fragment,{children:a.cloneElement(t,x)})}var Z=n(62923),b=n(62073),x=n(9103),C=n(29251),w=n(77485),k=n(30330),y=n(93445),M=n(52329),E=n(89206),S=n(7967);function R(e){return(0,S.ZP)("MuiSnackbarContent",e)}(0,E.Z)("MuiSnackbarContent",["root","message","action"]);let L=["action","className","message","role"],O=e=>{let{classes:t}=e;return(0,i.Z)({root:["root"],action:["action"],message:["message"]},R,t)},P=(0,Z.ZP)(M.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,n=(0,y._4)(e.palette.background.default,t);return(0,o.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),j=(0,Z.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),z=(0,Z.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),T=a.forwardRef(function(e,t){let n=(0,x.i)({props:e,name:"MuiSnackbarContent"}),{action:a,className:i,message:l,role:s="alert"}=n,c=(0,r.Z)(n,L),u=O(n);return(0,p.jsxs)(P,(0,o.Z)({role:s,square:!0,elevation:6,className:(0,k.Z)(u.root,i),ownerState:n,ref:t},c,{children:[(0,p.jsx)(j,{className:u.message,ownerState:n,children:l}),a?(0,p.jsx)(z,{className:u.action,ownerState:n,children:a}):null]}))});function $(e){return(0,S.ZP)("MuiSnackbar",e)}(0,E.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let F=["onEnter","onExited"],A=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],B=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,C.Z)(n.vertical)}${(0,C.Z)(n.horizontal)}`]};return(0,i.Z)(r,$,t)},H=(0,Z.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,C.Z)(n.anchorOrigin.vertical)}${(0,C.Z)(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,o.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,o.Z)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),N=a.forwardRef(function(e,t){let n=(0,x.i)({props:e,name:"MuiSnackbar"}),i=(0,b.Z)(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:u,horizontal:h}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:f,ClickAwayListenerProps:Z,ContentProps:C,disableWindowBlurListener:k=!1,message:y,open:M,TransitionComponent:E=w.Z,transitionDuration:S=s,TransitionProps:{onEnter:R,onExited:L}={}}=n,O=(0,r.Z)(n.TransitionProps,F),P=(0,r.Z)(n,A),j=(0,o.Z)({},n,{anchorOrigin:{vertical:u,horizontal:h},autoHideDuration:m,disableWindowBlurListener:k,TransitionComponent:E,transitionDuration:S}),z=B(j),{getRootProps:$,onClickAway:N}=d((0,o.Z)({},j)),[V,X]=a.useState(!0),I=(0,l.Z)({elementType:H,getSlotProps:$,externalForwardedProps:P,ownerState:j,additionalProps:{ref:t},className:[z.root,f]});return!M&&V?null:(0,p.jsx)(g,(0,o.Z)({onClickAway:N},Z,{children:(0,p.jsx)(H,(0,o.Z)({},I,{children:(0,p.jsx)(E,(0,o.Z)({appear:!0,in:M,timeout:S,direction:"top"===u?"down":"up",onEnter:(e,t)=>{X(!1),R&&R(e,t)},onExited:e=>{X(!0),L&&L(e)}},O,{children:v||(0,p.jsx)(T,(0,o.Z)({message:y,action:c},C))}))}))}))})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=7573,exports.ids=[7573],exports.modules={37372:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"Backup")},33615:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},6545:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard")},43908:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"Dns")},3984:(e,t,r)=>{var o=r(66682);t.Z=void 0,function(e,t){if((!e||!e.__esModule)&&null!==e&&("object"==typeof e||"function"==typeof e)){var r=i(void 0);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=a?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(o,n,s):o[n]=e[n]}o.default=e,r&&r.set(e,o)}}(r(36372));var a=o(r(7750)),n=r(58120);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}t.Z=(0,a.default)((0,n.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},88517:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History")},6695:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},60028:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)([(0,n.jsx)("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),(0,n.jsx)("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")],"MenuBook")},28669:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People")},765:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},32130:(e,t,r)=>{var o=r(66682);t.Z=void 0;var a=o(r(7750)),n=r(58120);t.Z=(0,a.default)((0,n.jsx)("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1 .9 0 1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router")},7750:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=r(14973)},22053:(e,t,r)=>{r.d(t,{Z:()=>x});var o=r(36885),a=r(4981),n=r(36372),i=r(30330),s=r(3693),l=r(62923),c=r(9103),d=r(29251),p=r(52329),u=r(89206),v=r(7967);function m(e){return(0,v.ZP)("MuiAppBar",e)}(0,u.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var f=r(58120);let h=["className","color","enableColorOnDark","position"],g=e=>{let{color:t,position:r,classes:o}=e,a={root:["root",`color${(0,d.Z)(t)}`,`position${(0,d.Z)(r)}`]};return(0,s.Z)(a,m,o)},Z=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,b=(0,l.ZP)(p.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${(0,d.Z)(r.position)}`],t[`color${(0,d.Z)(r.color)}`]]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,a.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,a.Z)({},"default"===t.color&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,a.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,a.Z)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Z(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Z(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Z(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Z(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),x=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiAppBar"}),{className:n,color:s="primary",enableColorOnDark:l=!1,position:d="fixed"}=r,p=(0,o.Z)(r,h),u=(0,a.Z)({},r,{color:s,position:d,enableColorOnDark:l}),v=g(u);return(0,f.jsx)(b,(0,a.Z)({square:!0,component:"header",ownerState:u,elevation:4,className:(0,i.Z)(v.root,n,"fixed"===d&&"mui-fixed"),ref:t},p))})},33549:(e,t,r)=>{r.d(t,{ZP:()=>S});var o=r(36885),a=r(4981),n=r(36372),i=r(30330),s=r(3693),l=r(10587),c=r(94615),d=r(11999),p=r(52329),u=r(29251),v=r(62073),m=r(9103),f=r(62923),h=r(51118),g=r(89206),Z=r(7967);function b(e){return(0,Z.ZP)("MuiDrawer",e)}(0,g.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var x=r(58120);let y=["BackdropProps"],k=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],C=(e,t)=>{let{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},M=e=>{let{classes:t,anchor:r,variant:o}=e,a={root:["root"],docked:[("permanent"===o||"persistent"===o)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,u.Z)(r)}`,"temporary"!==o&&`paperAnchorDocked${(0,u.Z)(r)}`]};return(0,s.Z)(a,b,t)},P=(0,f.ZP)(c.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:C})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),$=(0,f.ZP)("div",{shouldForwardProp:h.Z,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:C})({flex:"0 0 auto"}),w=(0,f.ZP)(p.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`paperAnchor${(0,u.Z)(r.anchor)}`],"temporary"!==r.variant&&t[`paperAnchorDocked${(0,u.Z)(r.anchor)}`]]}})(({theme:e,ownerState:t})=>(0,a.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),I={left:"right",right:"left",top:"down",bottom:"up"},S=n.forwardRef(function(e,t){let r=(0,m.i)({props:e,name:"MuiDrawer"}),s=(0,v.Z)(),c=(0,l.V)(),p={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:f,children:h,className:g,elevation:Z=16,hideBackdrop:b=!1,ModalProps:{BackdropProps:C}={},onClose:S,open:A=!1,PaperProps:B={},SlideProps:O,TransitionComponent:R=d.Z,transitionDuration:j=p,variant:z="temporary"}=r,D=(0,o.Z)(r.ModalProps,y),V=(0,o.Z)(r,k),L=n.useRef(!1);n.useEffect(()=>{L.current=!0},[]);let N=function({direction:e},t){return"rtl"===e&&-1!==["left","right"].indexOf(t)?I[t]:t}({direction:c?"rtl":"ltr"},u),T=(0,a.Z)({},r,{anchor:u,elevation:Z,open:A,variant:z},V),E=M(T),F=(0,x.jsx)(w,(0,a.Z)({elevation:"temporary"===z?Z:0,square:!0},B,{className:(0,i.Z)(E.paper,B.className),ownerState:T,children:h}));if("permanent"===z)return(0,x.jsx)($,(0,a.Z)({className:(0,i.Z)(E.root,E.docked,g),ownerState:T,ref:t},V,{children:F}));let G=(0,x.jsx)(R,(0,a.Z)({in:A,direction:I[N],timeout:j,appear:L.current},O,{children:F}));return"persistent"===z?(0,x.jsx)($,(0,a.Z)({className:(0,i.Z)(E.root,E.docked,g),ownerState:T,ref:t},V,{children:G})):(0,x.jsx)(P,(0,a.Z)({BackdropProps:(0,a.Z)({},f,C,{transitionDuration:j}),className:(0,i.Z)(E.root,E.modal,g),open:A,ownerState:T,onClose:S,hideBackdrop:b,ref:t},V,D,{children:G}))})},73091:(e,t,r)=>{r.d(t,{ZP:()=>R});var o=r(36885),a=r(4981),n=r(36372),i=r(30330),s=r(3693),l=r(93445),c=r(5384),d=r(62923),p=r(9103),u=r(39183),v=r(94850),m=r(22608),f=r(69473),h=r(95894),g=r(89206),Z=r(7967);function b(e){return(0,Z.ZP)("MuiListItem",e)}let x=(0,g.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var y=r(26211);function k(e){return(0,Z.ZP)("MuiListItemSecondaryAction",e)}(0,g.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var C=r(58120);let M=["className"],P=e=>{let{disableGutters:t,classes:r}=e;return(0,s.Z)({root:["root",t&&"disableGutters"]},k,r)},$=(0,d.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>(0,a.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),w=n.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiListItemSecondaryAction"}),{className:s}=r,l=(0,o.Z)(r,M),c=n.useContext(h.Z),d=(0,a.Z)({},r,{disableGutters:c.disableGutters}),u=P(d);return(0,C.jsx)($,(0,a.Z)({className:(0,i.Z)(u.root,s),ownerState:d,ref:t},l))});w.muiName="ListItemSecondaryAction";let I=["className"],S=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],A=e=>{let{alignItems:t,button:r,classes:o,dense:a,disabled:n,disableGutters:i,disablePadding:l,divider:c,hasSecondaryAction:d,selected:p}=e;return(0,s.Z)({root:["root",a&&"dense",!i&&"gutters",!l&&"padding",c&&"divider",n&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},b,o)},B=(0,d.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>(0,a.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,a.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${y.Z.root}`]:{paddingRight:48}},{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),O=(0,d.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),R=n.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiListItem"}),{alignItems:s="center",autoFocus:l=!1,button:d=!1,children:g,className:Z,component:b,components:y={},componentsProps:k={},ContainerComponent:M="li",ContainerProps:{className:P}={},dense:$=!1,disabled:R=!1,disableGutters:j=!1,disablePadding:z=!1,divider:D=!1,focusVisibleClassName:V,secondaryAction:L,selected:N=!1,slotProps:T={},slots:E={}}=r,F=(0,o.Z)(r.ContainerProps,I),G=(0,o.Z)(r,S),H=n.useContext(h.Z),q=n.useMemo(()=>({dense:$||H.dense||!1,alignItems:s,disableGutters:j}),[s,H.dense,$,j]),_=n.useRef(null);(0,m.Z)(()=>{l&&_.current&&_.current.focus()},[l]);let W=n.Children.toArray(g),Y=W.length&&(0,v.Z)(W[W.length-1],["ListItemSecondaryAction"]),X=(0,a.Z)({},r,{alignItems:s,autoFocus:l,button:d,dense:q.dense,disabled:R,disableGutters:j,disablePadding:z,divider:D,hasSecondaryAction:Y,selected:N}),J=A(X),K=(0,f.Z)(_,t),Q=E.root||y.Root||B,U=T.root||k.root||{},ee=(0,a.Z)({className:(0,i.Z)(J.root,U.className,Z),disabled:R},G),et=b||"li";return(d&&(ee.component=b||"div",ee.focusVisibleClassName=(0,i.Z)(x.focusVisible,V),et=u.Z),Y)?(et=ee.component||b?et:"div","li"===M&&("li"===et?et="div":"li"===ee.component&&(ee.component="div")),(0,C.jsx)(h.Z.Provider,{value:q,children:(0,C.jsxs)(O,(0,a.Z)({as:M,className:(0,i.Z)(J.container,P),ref:K,ownerState:X},F,{children:[(0,C.jsx)(Q,(0,a.Z)({},U,!(0,c.Z)(Q)&&{as:et,ownerState:(0,a.Z)({},X,U.ownerState)},ee,{children:W})),W.pop()]}))})):(0,C.jsx)(h.Z.Provider,{value:q,children:(0,C.jsxs)(Q,(0,a.Z)({},U,{as:et,ref:K},!(0,c.Z)(Q)&&{ownerState:(0,a.Z)({},X,U.ownerState)},ee,{children:[W,L&&(0,C.jsx)(w,{children:L})]}))})})},19609:(e,t,r)=>{r.d(t,{Z:()=>y});var o=r(36885),a=r(4981),n=r(36372),i=r(30330),s=r(3693),l=r(93445),c=r(62923),d=r(51118),p=r(9103),u=r(39183),v=r(22608),m=r(69473),f=r(95894),h=r(26211),g=r(58120);let Z=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],b=e=>{let{alignItems:t,classes:r,dense:o,disabled:n,disableGutters:i,divider:l,selected:c}=e,d=(0,s.Z)({root:["root",o&&"dense",!i&&"gutters",l&&"divider",n&&"disabled","flex-start"===t&&"alignItemsFlexStart",c&&"selected"]},h.t,r);return(0,a.Z)({},r,d)},x=(0,c.ZP)(u.Z,{shouldForwardProp:e=>(0,d.Z)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,a.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.Z.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${h.Z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${h.Z.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${h.Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${h.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),y=n.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiListItemButton"}),{alignItems:s="center",autoFocus:l=!1,component:c="div",children:d,dense:u=!1,disableGutters:h=!1,divider:y=!1,focusVisibleClassName:k,selected:C=!1,className:M}=r,P=(0,o.Z)(r,Z),$=n.useContext(f.Z),w=n.useMemo(()=>({dense:u||$.dense||!1,alignItems:s,disableGutters:h}),[s,$.dense,u,h]),I=n.useRef(null);(0,v.Z)(()=>{l&&I.current&&I.current.focus()},[l]);let S=(0,a.Z)({},r,{alignItems:s,dense:w.dense,disableGutters:h,divider:y,selected:C}),A=b(S),B=(0,m.Z)(I,t);return(0,g.jsx)(f.Z.Provider,{value:w,children:(0,g.jsx)(x,(0,a.Z)({ref:B,href:P.href||P.to,component:(P.href||P.to)&&"div"===c?"button":c,focusVisibleClassName:(0,i.Z)(A.focusVisible,k),ownerState:S,className:(0,i.Z)(A.root,M)},P,{classes:A,children:d}))})})},26211:(e,t,r)=>{r.d(t,{Z:()=>i,t:()=>n});var o=r(89206),a=r(7967);function n(e){return(0,a.ZP)("MuiListItemButton",e)}let i=(0,o.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"])},11999:(e,t,r)=>{r.d(t,{Z:()=>h});var o=r(4981),a=r(36885),n=r(36372),i=r(82474),s=r(34200),l=r(4793),c=r(69473),d=r(62073),p=r(83871),u=r(76805),v=r(58120);let m=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(e,t,r){let o=function(e,t,r){let o;let a=t.getBoundingClientRect(),n=r&&r.getBoundingClientRect(),i=(0,u.Z)(t);if(t.fakeTransform)o=t.fakeTransform;else{let e=i.getComputedStyle(t);o=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(o&&"none"!==o&&"string"==typeof o){let e=o.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?n?`translateX(${n.right+s-a.left}px)`:`translateX(${i.innerWidth+s-a.left}px)`:"right"===e?n?`translateX(-${a.right-n.left-s}px)`:`translateX(-${a.left+a.width-s}px)`:"up"===e?n?`translateY(${n.bottom+l-a.top}px)`:`translateY(${i.innerHeight+l-a.top}px)`:n?`translateY(-${a.top-n.top+a.height-l}px)`:`translateY(-${a.top+a.height-l}px)`}(e,t,"function"==typeof r?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}let h=n.forwardRef(function(e,t){let r=(0,d.Z)(),h={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},g={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:Z,appear:b=!0,children:x,container:y,direction:k="down",easing:C=h,in:M,onEnter:P,onEntered:$,onEntering:w,onExit:I,onExited:S,onExiting:A,style:B,timeout:O=g,TransitionComponent:R=i.ZP}=e,j=(0,a.Z)(e,m),z=n.useRef(null),D=(0,c.Z)((0,s.Z)(x),z,t),V=e=>t=>{e&&(void 0===t?e(z.current):e(z.current,t))},L=V((e,t)=>{f(k,e,y),(0,p.n)(e),P&&P(e,t)}),N=V((e,t)=>{let a=(0,p.C)({timeout:O,style:B,easing:C},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,o.Z)({},a)),e.style.transition=r.transitions.create("transform",(0,o.Z)({},a)),e.style.webkitTransform="none",e.style.transform="none",w&&w(e,t)}),T=V($),E=V(A),F=V(e=>{let t=(0,p.C)({timeout:O,style:B,easing:C},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),f(k,e,y),I&&I(e)}),G=V(e=>{e.style.webkitTransition="",e.style.transition="",S&&S(e)}),H=n.useCallback(()=>{z.current&&f(k,z.current,y)},[k,y]);return n.useEffect(()=>{if(M||"down"===k||"right"===k)return;let e=(0,l.Z)(()=>{z.current&&f(k,z.current,y)}),t=(0,u.Z)(z.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[k,M,y]),n.useEffect(()=>{M||H()},[M,H]),(0,v.jsx)(R,(0,o.Z)({nodeRef:z,onEnter:L,onEntered:T,onEntering:N,onExit:F,onExited:G,onExiting:E,addEndListener:e=>{Z&&Z(z.current,e)},appear:b,in:M,timeout:O},j,{children:(e,t)=>n.cloneElement(x,(0,o.Z)({ref:D,style:(0,o.Z)({visibility:"exited"!==e||M?void 0:"hidden"},B,x.props.style)},t))}))})},39497:(e,t,r)=>{r.d(t,{Z:()=>g});var o=r(36885),a=r(4981),n=r(36372),i=r(30330),s=r(3693),l=r(9103),c=r(62923),d=r(89206),p=r(7967);function u(e){return(0,p.ZP)("MuiToolbar",e)}(0,d.Z)("MuiToolbar",["root","gutters","regular","dense"]);var v=r(58120);let m=["className","component","disableGutters","variant"],f=e=>{let{classes:t,disableGutters:r,variant:o}=e;return(0,s.Z)({root:["root",!r&&"gutters",o]},u,t)},h=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>(0,a.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),g=n.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiToolbar"}),{className:n,component:s="div",disableGutters:c=!1,variant:d="regular"}=r,p=(0,o.Z)(r,m),u=(0,a.Z)({},r,{component:s,disableGutters:c,variant:d}),g=f(u);return(0,v.jsx)(h,(0,a.Z)({as:s,className:(0,i.Z)(g.root,n),ref:t,ownerState:u},p))})},38004:(e,t,r)=>{r.d(t,{Z:()=>o});let o=r(81588).Z},14973:(e,t,r)=>{r.r(t),r.d(t,{capitalize:()=>a.Z,createChainedFunction:()=>n.Z,createSvgIcon:()=>i.Z,debounce:()=>s.Z,deprecatedPropType:()=>l,isMuiElement:()=>c.Z,ownerDocument:()=>d.Z,ownerWindow:()=>p.Z,requirePropFactory:()=>u,setRef:()=>v,unstable_ClassNameGenerator:()=>y,unstable_useEnhancedEffect:()=>m.Z,unstable_useId:()=>f.Z,unsupportedProp:()=>h,useControlled:()=>g.Z,useEventCallback:()=>Z.Z,useForkRef:()=>b.Z,useIsFocusVisible:()=>x.Z});var o=r(68710),a=r(29251),n=r(38004),i=r(59647),s=r(4793);let l=function(e,t){return()=>null};var c=r(94850),d=r(25334),p=r(76805);r(4981);let u=function(e,t){return()=>null},v=r(39119).Z;var m=r(22608),f=r(59906);let h=function(e,t,r,o,a){return null};var g=r(3011),Z=r(71514),b=r(69473),x=r(48467);let y={configure:e=>{o.Z.configure(e)}}},59906:(e,t,r)=>{r.d(t,{Z:()=>o});let o=r(98925).Z}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=8055,exports.ids=[8055],exports.modules={29553:(t,e,i)=>{var r=i(66682);e.Z=void 0;var n=r(i(7750)),s=i(58120);e.Z=(0,n.default)((0,s.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},5374:(t,e,i)=>{i.d(e,{Z:()=>C});var r=i(36885),n=i(4981),s=i(36372),o=i(30330),a=i(82474),u=i(48170),l=i(3693),h=i(62923),d=i(9103),c=i(62546),p=i(83871),m=i(62073),y=i(69473),v=i(89206),f=i(7967);function g(t){return(0,f.ZP)("MuiCollapse",t)}(0,v.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var x=i(58120);let w=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Z=t=>{let{orientation:e,classes:i}=t,r={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return(0,l.Z)(r,g,i)},b=(0,h.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:i}=t;return[e.root,e[i.orientation],"entered"===i.state&&e.entered,"exited"===i.state&&!i.in&&"0px"===i.collapsedSize&&e.hidden]}})(({theme:t,ownerState:e})=>(0,n.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===e.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===e.state&&(0,n.Z)({height:"auto",overflow:"visible"},"horizontal"===e.orientation&&{width:"auto"}),"exited"===e.state&&!e.in&&"0px"===e.collapsedSize&&{visibility:"hidden"})),M=(0,h.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(({ownerState:t})=>(0,n.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})),R=(0,h.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(({ownerState:t})=>(0,n.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})),E=s.forwardRef(function(t,e){let i=(0,d.i)({props:t,name:"MuiCollapse"}),{addEndListener:l,children:h,className:v,collapsedSize:f="0px",component:g,easing:E,in:C,onEnter:O,onEntered:S,onEntering:z,onExit:P,onExited:$,onExiting:j,orientation:D="vertical",style:I,timeout:K=c.x9.standard,TransitionComponent:L=a.ZP}=i,A=(0,r.Z)(i,w),N=(0,n.Z)({},i,{orientation:D,collapsedSize:f}),H=Z(N),T=(0,m.Z)(),W=(0,u.Z)(),U=s.useRef(null),V=s.useRef(),k="number"==typeof f?`${f}px`:f,F="horizontal"===D,Y=F?"width":"height",q=s.useRef(null),B=(0,y.Z)(e,q),G=t=>e=>{if(t){let i=q.current;void 0===e?t(i):t(i,e)}},J=()=>U.current?U.current[F?"clientWidth":"clientHeight"]:0,Q=G((t,e)=>{U.current&&F&&(U.current.style.position="absolute"),t.style[Y]=k,O&&O(t,e)}),X=G((t,e)=>{let i=J();U.current&&F&&(U.current.style.position="");let{duration:r,easing:n}=(0,p.C)({style:I,timeout:K,easing:E},{mode:"enter"});if("auto"===K){let e=T.transitions.getAutoHeightDuration(i);t.style.transitionDuration=`${e}ms`,V.current=e}else t.style.transitionDuration="string"==typeof r?r:`${r}ms`;t.style[Y]=`${i}px`,t.style.transitionTimingFunction=n,z&&z(t,e)}),_=G((t,e)=>{t.style[Y]="auto",S&&S(t,e)}),tt=G(t=>{t.style[Y]=`${J()}px`,P&&P(t)}),te=G($),ti=G(t=>{let e=J(),{duration:i,easing:r}=(0,p.C)({style:I,timeout:K,easing:E},{mode:"exit"});if("auto"===K){let i=T.transitions.getAutoHeightDuration(e);t.style.transitionDuration=`${i}ms`,V.current=i}else t.style.transitionDuration="string"==typeof i?i:`${i}ms`;t.style[Y]=k,t.style.transitionTimingFunction=r,j&&j(t)});return(0,x.jsx)(L,(0,n.Z)({in:C,onEnter:Q,onEntered:_,onEntering:X,onExit:tt,onExited:te,onExiting:ti,addEndListener:t=>{"auto"===K&&W.start(V.current||0,t),l&&l(q.current,t)},nodeRef:q,timeout:"auto"===K?null:K},A,{children:(t,e)=>(0,x.jsx)(b,(0,n.Z)({as:g,className:(0,o.Z)(H.root,v,{entered:H.entered,exited:!C&&"0px"===k&&H.hidden}[t]),style:(0,n.Z)({[F?"minWidth":"minHeight"]:k},I),ref:B},e,{ownerState:(0,n.Z)({},N,{state:t}),children:(0,x.jsx)(M,{ownerState:(0,n.Z)({},N,{state:t}),className:H.wrapper,ref:U,children:(0,x.jsx)(R,{ownerState:(0,n.Z)({},N,{state:t}),className:H.wrapperInner,children:h})})}))}))});E.muiSupportAuto=!0;let C=E},20042:(t,e,i)=>{i.d(e,{D:()=>h});var r=i(36372),n=i(83365),s=i(96254),o=i(16360),a=i(35114),u=class extends o.l{#t;#e=void 0;#i;#r;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#i,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(e.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#i?.state.status==="pending"&&this.#i.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#i?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#i?.removeObserver(this),this.#i=void 0,this.#n(),this.#s()}mutate(t,e){return this.#r=e,this.#i?.removeObserver(this),this.#i=this.#t.getMutationCache().build(this.#t,this.options),this.#i.addObserver(this),this.#i.execute(t)}#n(){let t=this.#i?.state??(0,n.R)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#s(t){s.Vr.batch(()=>{if(this.#r&&this.hasListeners()){let e=this.#e.variables,i=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,e,i,r)}catch(t){Promise.reject(t)}try{this.#r.onSettled?.(t.data,null,e,i,r)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,e,i,r)}catch(t){Promise.reject(t)}try{this.#r.onSettled?.(void 0,t.error,e,i,r)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}},l=i(95343);function h(t,e){let i=(0,l.NL)(e),[n]=r.useState(()=>new u(i,t));r.useEffect(()=>{n.setOptions(t)},[n,t]);let o=r.useSyncExternalStore(r.useCallback(t=>n.subscribe(s.Vr.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),h=r.useCallback((t,e)=>{n.mutate(t,e).catch(a.ZT)},[n]);if(o.error&&(0,a.L3)(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:h,mutateAsync:o.mutate}}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=8849,exports.ids=[8849],exports.modules={84527:(e,r,o)=>{var t=o(66682);r.Z=void 0;var a=t(o(7750)),n=o(58120);r.Z=(0,a.default)((0,n.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},38481:(e,r,o)=>{var t=o(66682);r.Z=void 0;var a=t(o(7750)),n=o(58120);r.Z=(0,a.default)((0,n.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person")},95009:(e,r,o)=>{o.d(r,{Z:()=>M});var t=o(4981),a=o(36885),n=o(36372),i=o(30330),s=o(3693),d=o(62923),l=o(9103),c=o(5374),p=o(52329),u=o(33041),m=o(3011),f=o(55753),b=o(89206),v=o(7967);function x(e){return(0,v.ZP)("MuiAccordion",e)}let Z=(0,b.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);var g=o(58120);let h=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],y=e=>{let{classes:r,square:o,expanded:t,disabled:a,disableGutters:n}=e;return(0,s.Z)({root:["root",!o&&"rounded",t&&"expanded",a&&"disabled",!n&&"gutters"],region:["region"]},x,r)},R=(0,d.ZP)(p.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:o}=e;return[{[`& .${Z.region}`]:r.region},r.root,!o.square&&r.rounded,!o.disableGutters&&r.gutters]}})(({theme:e})=>{let r={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],r),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],r)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Z.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Z.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${Z.expanded}`]:{margin:"16px 0"}}}]})),M=n.forwardRef(function(e,r){let o=(0,l.i)({props:e,name:"MuiAccordion"}),{children:s,className:d,defaultExpanded:p=!1,disabled:b=!1,disableGutters:v=!1,expanded:x,onChange:Z,square:M=!1,slots:A={},slotProps:C={},TransitionComponent:P,TransitionProps:w}=o,N=(0,a.Z)(o,h),[S,j]=(0,m.Z)({controlled:x,default:p,name:"Accordion",state:"expanded"}),$=n.useCallback(e=>{j(!S),Z&&Z(e,!S)},[S,Z,j]),[k,...G]=n.Children.toArray(s),T=n.useMemo(()=>({expanded:S,disabled:b,disableGutters:v,toggle:$}),[S,b,v,$]),I=(0,t.Z)({},o,{square:M,disabled:b,disableGutters:v,expanded:S}),V=y(I),B=(0,t.Z)({transition:P},A),W=(0,t.Z)({transition:w},C),[q,D]=(0,f.Z)("transition",{elementType:c.Z,externalForwardedProps:{slots:B,slotProps:W},ownerState:I});return(0,g.jsxs)(R,(0,t.Z)({className:(0,i.Z)(V.root,d),ref:r,ownerState:I,square:M},N,{children:[(0,g.jsx)(u.Z.Provider,{value:T,children:k}),(0,g.jsx)(q,(0,t.Z)({in:S,timeout:"auto"},D,{children:(0,g.jsx)("div",{"aria-labelledby":k.props.id,id:k.props["aria-controls"],role:"region",className:V.region,children:G})}))]}))})},33041:(e,r,o)=>{o.d(r,{Z:()=>t});let t=o(36372).createContext({})},45912:(e,r,o)=>{o.d(r,{Z:()=>x});var t=o(4981),a=o(36885),n=o(36372),i=o(30330),s=o(3693),d=o(62923),l=o(9103),c=o(89206),p=o(7967);function u(e){return(0,p.ZP)("MuiAccordionDetails",e)}(0,c.Z)("MuiAccordionDetails",["root"]);var m=o(58120);let f=["className"],b=e=>{let{classes:r}=e;return(0,s.Z)({root:["root"]},u,r)},v=(0,d.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),x=n.forwardRef(function(e,r){let o=(0,l.i)({props:e,name:"MuiAccordionDetails"}),{className:n}=o,s=(0,a.Z)(o,f),d=b(o);return(0,m.jsx)(v,(0,t.Z)({className:(0,i.Z)(d.root,n),ref:r,ownerState:o},s))})},4587:(e,r,o)=>{o.d(r,{Z:()=>R});var t=o(4981),a=o(36885),n=o(36372),i=o(30330),s=o(3693),d=o(62923),l=o(9103),c=o(39183),p=o(33041),u=o(89206),m=o(7967);function f(e){return(0,m.ZP)("MuiAccordionSummary",e)}let b=(0,u.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var v=o(58120);let x=["children","className","expandIcon","focusVisibleClassName","onClick"],Z=e=>{let{classes:r,expanded:o,disabled:t,disableGutters:a}=e;return(0,s.Z)({root:["root",o&&"expanded",t&&"disabled",!a&&"gutters"],focusVisible:["focusVisible"],content:["content",o&&"expanded",!a&&"contentGutters"],expandIconWrapper:["expandIconWrapper",o&&"expanded"]},f,r)},g=(0,d.ZP)(c.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e})=>{let r={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${b.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${b.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${b.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${b.expanded}`]:{minHeight:64}}}]}}),h=(0,d.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,r)=>r.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${b.expanded}`]:{margin:"20px 0"}}}]})),y=(0,d.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,r)=>r.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${b.expanded}`]:{transform:"rotate(180deg)"}})),R=n.forwardRef(function(e,r){let o=(0,l.i)({props:e,name:"MuiAccordionSummary"}),{children:s,className:d,expandIcon:c,focusVisibleClassName:u,onClick:m}=o,f=(0,a.Z)(o,x),{disabled:b=!1,disableGutters:R,expanded:M,toggle:A}=n.useContext(p.Z),C=(0,t.Z)({},o,{expanded:M,disabled:b,disableGutters:R}),P=Z(C);return(0,v.jsxs)(g,(0,t.Z)({focusRipple:!1,disableRipple:!0,disabled:b,component:"div","aria-expanded":M,className:(0,i.Z)(P.root,d),focusVisibleClassName:(0,i.Z)(P.focusVisible,u),onClick:e=>{A&&A(e),m&&m(e)},ref:r,ownerState:C},f,{children:[(0,v.jsx)(h,{className:P.content,ownerState:C,children:s}),c&&(0,v.jsx)(y,{className:P.expandIconWrapper,ownerState:C,children:c})]}))})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=9874,exports.ids=[9874],exports.modules={5374:(e,t,r)=>{r.d(t,{Z:()=>B});var o=r(36885),l=r(4981),n=r(36372),i=r(30330),a=r(82474),s=r(48170),c=r(3693),d=r(62923),u=r(9103),p=r(62546),h=r(83871),f=r(62073),b=r(69473),m=r(89206),v=r(7967);function x(e){return(0,v.ZP)("MuiCollapse",e)}(0,m.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var Z=r(58120);let g=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],w=e=>{let{orientation:t,classes:r}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,c.Z)(o,x,r)},y=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})(({theme:e,ownerState:t})=>(0,l.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,l.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"})),S=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>(0,l.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),C=(0,d.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>(0,l.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),E=n.forwardRef(function(e,t){let r=(0,u.i)({props:e,name:"MuiCollapse"}),{addEndListener:c,children:d,className:m,collapsedSize:v="0px",component:x,easing:E,in:B,onEnter:I,onEntered:M,onEntering:R,onExit:W,onExited:P,onExiting:z,orientation:T="vertical",style:N,timeout:L=p.x9.standard,TransitionComponent:$=a.ZP}=r,A=(0,o.Z)(r,g),j=(0,l.Z)({},r,{orientation:T,collapsedSize:v}),k=w(j),H=(0,f.Z)(),D=(0,s.Z)(),F=n.useRef(null),X=n.useRef(),O="number"==typeof v?`${v}px`:v,Y="horizontal"===T,V=Y?"width":"height",q=n.useRef(null),K=(0,b.Z)(t,q),G=e=>t=>{if(e){let r=q.current;void 0===t?e(r):e(r,t)}},U=()=>F.current?F.current[Y?"clientWidth":"clientHeight"]:0,J=G((e,t)=>{F.current&&Y&&(F.current.style.position="absolute"),e.style[V]=O,I&&I(e,t)}),Q=G((e,t)=>{let r=U();F.current&&Y&&(F.current.style.position="");let{duration:o,easing:l}=(0,h.C)({style:N,timeout:L,easing:E},{mode:"enter"});if("auto"===L){let t=H.transitions.getAutoHeightDuration(r);e.style.transitionDuration=`${t}ms`,X.current=t}else e.style.transitionDuration="string"==typeof o?o:`${o}ms`;e.style[V]=`${r}px`,e.style.transitionTimingFunction=l,R&&R(e,t)}),_=G((e,t)=>{e.style[V]="auto",M&&M(e,t)}),ee=G(e=>{e.style[V]=`${U()}px`,W&&W(e)}),et=G(P),er=G(e=>{let t=U(),{duration:r,easing:o}=(0,h.C)({style:N,timeout:L,easing:E},{mode:"exit"});if("auto"===L){let r=H.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${r}ms`,X.current=r}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[V]=O,e.style.transitionTimingFunction=o,z&&z(e)});return(0,Z.jsx)($,(0,l.Z)({in:B,onEnter:J,onEntered:_,onEntering:Q,onExit:ee,onExited:et,onExiting:er,addEndListener:e=>{"auto"===L&&D.start(X.current||0,e),c&&c(q.current,e)},nodeRef:q,timeout:"auto"===L?null:L},A,{children:(e,t)=>(0,Z.jsx)(y,(0,l.Z)({as:x,className:(0,i.Z)(k.root,m,{entered:k.entered,exited:!B&&"0px"===O&&k.hidden}[e]),style:(0,l.Z)({[Y?"minWidth":"minHeight"]:O},N),ref:K},t,{ownerState:(0,l.Z)({},j,{state:e}),children:(0,Z.jsx)(S,{ownerState:(0,l.Z)({},j,{state:e}),className:k.wrapper,ref:F,children:(0,Z.jsx)(C,{ownerState:(0,l.Z)({},j,{state:e}),className:k.wrapperInner,children:d})})}))}))});E.muiSupportAuto=!0;let B=E},22599:(e,t,r)=>{r.d(t,{Z:()=>g});var o=r(36885),l=r(4981),n=r(36372),i=r(30330),a=r(3693),s=r(39183),c=r(29251),d=r(9103),u=r(62923),p=r(89206),h=r(7967);function f(e){return(0,h.ZP)("MuiTab",e)}let b=(0,p.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var m=r(58120);let v=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],x=e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:l,icon:n,label:i,selected:s,disabled:d}=e,u={root:["root",n&&i&&"labelIcon",`textColor${(0,c.Z)(r)}`,o&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(u,f,t)},Z=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${(0,c.Z)(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${b.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>(0,l.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${b.iconWrapper}`]:(0,l.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${b.selected}`]:{opacity:1},[`&.${b.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${b.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${b.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${b.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${b.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),g=n.forwardRef(function(e,t){let r=(0,d.i)({props:e,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:u,icon:p,iconPosition:h="top",indicator:f,label:b,onChange:g,onClick:w,onFocus:y,selected:S,selectionFollowsFocus:C,textColor:E="inherit",value:B,wrapped:I=!1}=r,M=(0,o.Z)(r,v),R=(0,l.Z)({},r,{disabled:s,disableFocusRipple:c,selected:S,icon:!!p,iconPosition:h,label:!!b,fullWidth:u,textColor:E,wrapped:I}),W=x(R),P=p&&b&&n.isValidElement(p)?n.cloneElement(p,{className:(0,i.Z)(W.iconWrapper,p.props.className)}):p;return(0,m.jsxs)(Z,(0,l.Z)({focusRipple:!c,className:(0,i.Z)(W.root,a),ref:t,role:"tab","aria-selected":S,disabled:s,onClick:e=>{!S&&g&&g(e,B),w&&w(e)},onFocus:e=>{C&&!S&&g&&g(e,B),y&&y(e)},ownerState:R,tabIndex:S?0:-1},M,{children:["top"===h||"start"===h?(0,m.jsxs)(n.Fragment,{children:[P,b]}):(0,m.jsxs)(n.Fragment,{children:[b,P]}),f]}))})},65137:(e,t,r)=>{let o;r.d(t,{Z:()=>K});var l=r(36885),n=r(4981),i=r(36372),a=r(30330),s=r(3693),c=r(10587),d=r(23359),u=r(62923),p=r(9103),h=r(62073),f=r(4793);function b(){if(o)return o;let e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),o="reverse",e.scrollLeft>0?o="default":(e.scrollLeft=1,0===e.scrollLeft&&(o="negative")),document.body.removeChild(e),o}function m(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var v=r(22608),x=r(76805),Z=r(58120);let g=["onChange"],w={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var y=r(29235),S=r(63645),C=r(39183),E=r(89206),B=r(7967);function I(e){return(0,B.ZP)("MuiTabScrollButton",e)}let M=(0,E.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),R=["className","slots","slotProps","direction","orientation","disabled"],W=e=>{let{classes:t,orientation:r,disabled:o}=e;return(0,s.Z)({root:["root",r,o&&"disabled"]},I,t)},P=(0,u.ZP)(C.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>(0,n.Z)({width:40,flexShrink:0,opacity:.8,[`&.${M.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),z=i.forwardRef(function(e,t){var r,o;let i=(0,p.i)({props:e,name:"MuiTabScrollButton"}),{className:s,slots:u={},slotProps:h={},direction:f}=i,b=(0,l.Z)(i,R),m=(0,c.V)(),v=(0,n.Z)({isRtl:m},i),x=W(v),g=null!=(r=u.StartScrollButtonIcon)?r:y.Z,w=null!=(o=u.EndScrollButtonIcon)?o:S.Z,C=(0,d.Z)({elementType:g,externalSlotProps:h.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),E=(0,d.Z)({elementType:w,externalSlotProps:h.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return(0,Z.jsx)(P,(0,n.Z)({component:"div",className:(0,a.Z)(x.root,s),ref:t,role:null,ownerState:v,tabIndex:null},b,{children:"left"===f?(0,Z.jsx)(g,(0,n.Z)({},C)):(0,Z.jsx)(w,(0,n.Z)({},E))}))});var T=r(71514);function N(e){return(0,B.ZP)("MuiTabs",e)}let L=(0,E.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var $=r(25334);let A=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],j=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,k=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,H=(e,t,r)=>{let o=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(o)return;o=!0}let t=l.disabled||"true"===l.getAttribute("aria-disabled");if(!l.hasAttribute("tabindex")||t)l=r(e,l);else{l.focus();return}}},D=e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:l,scrollableY:n,centered:i,scrollButtonsHideMobile:a,classes:c}=e;return(0,s.Z)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",l&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},N,c)},F=(0,u.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${L.scrollButtons}`]:t.scrollButtons},{[`& .${L.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>(0,n.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${L.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),X=(0,u.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>(0,n.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),O=(0,u.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>(0,n.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Y=(0,u.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>(0,n.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),V=(0,u.ZP)(function(e){let{onChange:t}=e,r=(0,l.Z)(e,g),o=i.useRef(),a=i.useRef(null),s=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return(0,v.Z)(()=>{let e=(0,f.Z)(()=>{let e=o.current;s(),e!==o.current&&t(o.current)}),r=(0,x.Z)(a.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{s(),t(o.current)},[t]),(0,Z.jsx)("div",(0,n.Z)({style:w},r,{ref:a}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),q={},K=i.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiTabs"}),o=(0,h.Z)(),s=(0,c.V)(),{"aria-label":u,"aria-labelledby":v,action:g,centered:w=!1,children:y,className:S,component:C="div",allowScrollButtonsMobile:E=!1,indicatorColor:B="primary",onChange:I,orientation:M="horizontal",ScrollButtonComponent:R=z,scrollButtons:W="auto",selectionFollowsFocus:P,slots:N={},slotProps:L={},TabIndicatorProps:K={},TabScrollButtonProps:G={},textColor:U="primary",value:J,variant:Q="standard",visibleScrollbar:_=!1}=r,ee=(0,l.Z)(r,A),et="scrollable"===Q,er="vertical"===M,eo=er?"scrollTop":"scrollLeft",el=er?"top":"left",en=er?"bottom":"right",ei=er?"clientHeight":"clientWidth",ea=er?"height":"width",es=(0,n.Z)({},r,{component:C,allowScrollButtonsMobile:E,indicatorColor:B,orientation:M,vertical:er,scrollButtons:W,textColor:U,variant:Q,visibleScrollbar:_,fixed:!et,hideScrollbar:et&&!_,scrollableX:et&&!er,scrollableY:et&&er,centered:w&&!et,scrollButtonsHideMobile:!E}),ec=D(es),ed=(0,d.Z)({elementType:N.StartScrollButtonIcon,externalSlotProps:L.startScrollButtonIcon,ownerState:es}),eu=(0,d.Z)({elementType:N.EndScrollButtonIcon,externalSlotProps:L.endScrollButtonIcon,ownerState:es}),[ep,eh]=i.useState(!1),[ef,eb]=i.useState(q),[em,ev]=i.useState(!1),[ex,eZ]=i.useState(!1),[eg,ew]=i.useState(!1),[ey,eS]=i.useState({overflow:"hidden",scrollbarWidth:0}),eC=new Map,eE=i.useRef(null),eB=i.useRef(null),eI=()=>{let e,t;let r=eE.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:function(e,t){let r=e.scrollLeft;if("rtl"!==t)return r;switch(b()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}(r,s?"rtl":"ltr"),scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==J){let e=eB.current.children;if(e.length>0){let r=e[eC.get(J)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eM=(0,T.Z)(()=>{let e;let{tabsMeta:t,tabMeta:r}=eI(),o=0;if(er)e="top",r&&t&&(o=r.top-t.top+t.scrollTop);else if(e=s?"right":"left",r&&t){let l=s?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;o=(s?-1:1)*(r[e]-t[e]+l)}let l={[e]:o,[ea]:r?r[ea]:0};if(isNaN(ef[e])||isNaN(ef[ea]))eb(l);else{let t=Math.abs(ef[e]-l[e]),r=Math.abs(ef[ea]-l[ea]);(t>=1||r>=1)&&eb(l)}}),eR=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},l=()=>{}){let{ease:n=m,duration:i=300}=o,a=null,s=t[e],c=!1,d=o=>{if(c){l(Error("Animation cancelled"));return}null===a&&(a=o);let u=Math.min(1,(o-a)/i);if(t[e]=n(u)*(r-s)+s,u>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===r?l(Error("Element already at target position")):requestAnimationFrame(d),()=>{c=!0}}(eo,eE.current,e,{duration:o.transitions.duration.standard}):eE.current[eo]=e},eW=e=>{let t=eE.current[eo];er?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===b()?-1:1),eR(t)},eP=()=>{let e=eE.current[ei],t=0,r=Array.from(eB.current.children);for(let o=0;o<r.length;o+=1){let l=r[o];if(t+l[ei]>e){0===o&&(t=e);break}t+=l[ei]}return t},ez=()=>{eW(-1*eP())},eT=()=>{eW(eP())},eN=i.useCallback(e=>{eS({overflow:null,scrollbarWidth:e})},[]),eL=(0,T.Z)(e=>{let{tabsMeta:t,tabMeta:r}=eI();r&&t&&(r[el]<t[el]?eR(t[eo]+(r[el]-t[el]),{animation:e}):r[en]>t[en]&&eR(t[eo]+(r[en]-t[en]),{animation:e}))}),e$=(0,T.Z)(()=>{et&&!1!==W&&ew(!eg)});i.useEffect(()=>{let e,t;let r=(0,f.Z)(()=>{eE.current&&eM()}),o=(0,x.Z)(eE.current);return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(eB.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{var r;null==(r=e)||r.unobserve(t)}),t.addedNodes.forEach(t=>{var r;null==(r=e)||r.observe(t)})}),r(),e$()})).observe(eB.current,{childList:!0}),()=>{var l,n;r.clear(),o.removeEventListener("resize",r),null==(l=t)||l.disconnect(),null==(n=e)||n.disconnect()}},[eM,e$]),i.useEffect(()=>{let e=Array.from(eB.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&et&&!1!==W){let r=e[0],o=e[t-1],l={root:eE.current,threshold:.99},n=new IntersectionObserver(e=>{ev(!e[0].isIntersecting)},l);n.observe(r);let i=new IntersectionObserver(e=>{eZ(!e[0].isIntersecting)},l);return i.observe(o),()=>{n.disconnect(),i.disconnect()}}},[et,W,eg,null==y?void 0:y.length]),i.useEffect(()=>{eh(!0)},[]),i.useEffect(()=>{eM()}),i.useEffect(()=>{eL(q!==ef)},[eL,ef]),i.useImperativeHandle(g,()=>({updateIndicator:eM,updateScrollButtons:e$}),[eM,e$]);let eA=(0,Z.jsx)(Y,(0,n.Z)({},K,{className:(0,a.Z)(ec.indicator,K.className),ownerState:es,style:(0,n.Z)({},ef,K.style)})),ej=0,ek=i.Children.map(y,e=>{if(!i.isValidElement(e))return null;let t=void 0===e.props.value?ej:e.props.value;eC.set(t,ej);let r=t===J;return ej+=1,i.cloneElement(e,(0,n.Z)({fullWidth:"fullWidth"===Q,indicator:r&&!ep&&eA,selected:r,selectionFollowsFocus:P,onChange:I,textColor:U,value:t},1!==ej||!1!==J||e.props.tabIndex?{}:{tabIndex:0}))}),eH=(()=>{let e={};e.scrollbarSizeListener=et?(0,Z.jsx)(V,{onChange:eN,className:(0,a.Z)(ec.scrollableX,ec.hideScrollbar)}):null;let t=et&&("auto"===W&&(em||ex)||!0===W);return e.scrollButtonStart=t?(0,Z.jsx)(R,(0,n.Z)({slots:{StartScrollButtonIcon:N.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ed},orientation:M,direction:s?"right":"left",onClick:ez,disabled:!em},G,{className:(0,a.Z)(ec.scrollButtons,G.className)})):null,e.scrollButtonEnd=t?(0,Z.jsx)(R,(0,n.Z)({slots:{EndScrollButtonIcon:N.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:eu},orientation:M,direction:s?"left":"right",onClick:eT,disabled:!ex},G,{className:(0,a.Z)(ec.scrollButtons,G.className)})):null,e})();return(0,Z.jsxs)(F,(0,n.Z)({className:(0,a.Z)(ec.root,S),ownerState:es,ref:t,as:C},ee,{children:[eH.scrollButtonStart,eH.scrollbarSizeListener,(0,Z.jsxs)(X,{className:ec.scroller,ownerState:es,style:{overflow:ey.overflow,[er?`margin${s?"Left":"Right"}`:"marginBottom"]:_?void 0:-ey.scrollbarWidth},ref:eE,children:[(0,Z.jsx)(O,{"aria-label":u,"aria-labelledby":v,"aria-orientation":"vertical"===M?"vertical":null,className:ec.flexContainer,ownerState:es,onKeyDown:e=>{let t=eB.current,r=(0,$.Z)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let o="horizontal"===M?"ArrowLeft":"ArrowUp",l="horizontal"===M?"ArrowRight":"ArrowDown";switch("horizontal"===M&&s&&(o="ArrowRight",l="ArrowLeft"),e.key){case o:e.preventDefault(),H(t,r,k);break;case l:e.preventDefault(),H(t,r,j);break;case"Home":e.preventDefault(),H(t,null,j);break;case"End":e.preventDefault(),H(t,null,k)}},ref:eB,role:"tablist",children:ek}),ep&&eA]}),eH.scrollButtonEnd]}))})},29235:(e,t,r)=>{r.d(t,{Z:()=>n}),r(36372);var o=r(59647),l=r(58120);let n=(0,o.Z)((0,l.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},63645:(e,t,r)=>{r.d(t,{Z:()=>n}),r(36372);var o=r(59647),l=r(58120);let n=(0,o.Z)((0,l.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")}};
|
package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"wasm": [],
|
|
18
18
|
"assets": [],
|
|
19
19
|
"env": {
|
|
20
|
-
"__NEXT_BUILD_ID": "
|
|
21
|
-
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "
|
|
22
|
-
"__NEXT_PREVIEW_MODE_ID": "
|
|
23
|
-
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "
|
|
24
|
-
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "
|
|
20
|
+
"__NEXT_BUILD_ID": "fdYvEyTkN35IFbAO8RHVv",
|
|
21
|
+
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "FIYptul/RtM/xYazOR8ttsitTRvYGTX2nCksnYxo1sM=",
|
|
22
|
+
"__NEXT_PREVIEW_MODE_ID": "758c34009dc64347b218eb2bcd770f85",
|
|
23
|
+
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "9eb99364fe2ab445dee24719137568148e15f840384519c0cd8f3b03405e0e8f",
|
|
24
|
+
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "6b84550eafdc65a582b913bb9ecd52f45b574a2e07c91357e08c984ce86ca472"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{"/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/layout":["static/media/c99b890c5ded8d2e-s.p.woff2","static/media/
|
|
1
|
+
self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{"/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/layout":["static/media/c99b890c5ded8d2e-s.p.woff2","static/media/70d2fd2b9078a5a3-s.p.woff2","static/media/33a864272e2b3e97-s.p.woff2","static/media/3ecd40fce058ee61-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}';
|
package/.next/standalone/platform/services/mcctl-console/.next/server/next-font-manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"pages":{},"app":{"/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/layout":["static/media/c99b890c5ded8d2e-s.p.woff2","static/media/
|
|
1
|
+
{"pages":{},"app":{"/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/layout":["static/media/c99b890c5ded8d2e-s.p.woff2","static/media/70d2fd2b9078a5a3-s.p.woff2","static/media/33a864272e2b3e97-s.p.woff2","static/media/3ecd40fce058ee61-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}
|