@minecraft-docker/mcctl-console 2.3.3 → 2.3.5

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.
Files changed (64) hide show
  1. package/.next/standalone/platform/services/mcctl-console/.next/BUILD_ID +1 -1
  2. package/.next/standalone/platform/services/mcctl-console/.next/app-build-manifest.json +34 -34
  3. package/.next/standalone/platform/services/mcctl-console/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/platform/services/mcctl-console/.next/build-manifest.json +2 -2
  5. package/.next/standalone/platform/services/mcctl-console/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page.js +1 -1
  10. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page.js +1 -1
  18. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.html +1 -1
  21. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.rsc +1 -1
  22. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.html +1 -1
  23. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.rsc +1 -1
  24. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.html +1 -1
  25. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.rsc +1 -1
  26. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.html +1 -1
  27. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.rsc +1 -1
  28. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.html +1 -1
  29. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.rsc +1 -1
  30. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.html +1 -1
  32. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.rsc +1 -1
  33. package/.next/standalone/platform/services/mcctl-console/.next/server/app/page_client-reference-manifest.js +1 -1
  34. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.html +1 -1
  35. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.rsc +1 -1
  36. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.html +1 -1
  37. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.rsc +2 -2
  38. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.html +1 -1
  39. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.rsc +1 -1
  40. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.html +1 -1
  41. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.rsc +2 -2
  42. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.html +1 -1
  44. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.rsc +1 -1
  45. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.html +1 -1
  46. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.rsc +1 -1
  47. package/.next/standalone/platform/services/mcctl-console/.next/server/app-paths-manifest.json +16 -16
  48. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/354.js +1 -1
  49. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/5843.js +1 -1
  50. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8243.js +1 -1
  51. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/9350.js +1 -1
  52. package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json +5 -5
  53. package/.next/standalone/platform/services/mcctl-console/.next/server/next-font-manifest.js +1 -1
  54. package/.next/standalone/platform/services/mcctl-console/.next/server/next-font-manifest.json +1 -1
  55. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/404.html +1 -1
  56. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/500.html +1 -1
  57. package/.next/standalone/platform/services/mcctl-console/.next/server/server-reference-manifest.json +1 -1
  58. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/{7965-9d8c883e48d2ae13.js → 7965-a31f12b5a5f1519b.js} +1 -1
  59. package/.next/static/chunks/{7965-9d8c883e48d2ae13.js → 7965-a31f12b5a5f1519b.js} +1 -1
  60. package/package.json +2 -2
  61. /package/.next/standalone/platform/services/mcctl-console/.next/static/{fJbPg2dJtmyxgfCQ-wCCp → Vw--10Vi0bTd2OQdVRcrz}/_buildManifest.js +0 -0
  62. /package/.next/standalone/platform/services/mcctl-console/.next/static/{fJbPg2dJtmyxgfCQ-wCCp → Vw--10Vi0bTd2OQdVRcrz}/_ssgManifest.js +0 -0
  63. /package/.next/static/{fJbPg2dJtmyxgfCQ-wCCp → Vw--10Vi0bTd2OQdVRcrz}/_buildManifest.js +0 -0
  64. /package/.next/static/{fJbPg2dJtmyxgfCQ-wCCp → Vw--10Vi0bTd2OQdVRcrz}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7965],{76544:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)([(0,i.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,i.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")},23695:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},21605:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},9078:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},84974:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},29983:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},93315:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop")},42730:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},52082:function(e,n,r){r.d(n,{Z:function(){return w}});var t,s=r(32324),i=r(81500),a=r(35106),l=r(70316),o=r(65951),c=r(38762),d=r(31317),x=r(14406),u=r(85016),h=r(34519),p=r(11379),m=r(9049);function Z(e){return(0,m.ZP)("MuiInputAdornment",e)}let j=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var f=r(28057),v=r(94655);let g=["children","className","component","disablePointerEvents","disableTypography","position","variant"],y=e=>{let{classes:n,disablePointerEvents:r,hiddenLabel:t,position:s,size:i,variant:a}=e,l={root:["root",r&&"disablePointerEvents",s&&"position".concat((0,c.Z)(s)),a,t&&"hiddenLabel",i&&"size".concat((0,c.Z)(i))]};return(0,o.Z)(l,Z,n)},b=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,n)=>{let{ownerState:r}=e;return[n.root,n["position".concat((0,c.Z)(r.position))],!0===r.disablePointerEvents&&n.disablePointerEvents,n[r.variant]]}})(e=>{let{theme:n,ownerState:r}=e;return(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},"filled"===r.variant&&{["&.".concat(j.positionStart,"&:not(.").concat(j.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})});var w=a.forwardRef(function(e,n){let r=(0,f.i)({props:e,name:"MuiInputAdornment"}),{children:o,className:c,component:h="div",disablePointerEvents:p=!1,disableTypography:m=!1,position:Z,variant:j}=r,w=(0,s.Z)(r,g),S=(0,u.Z)()||{},z=j;j&&S.variant,S&&!z&&(z=S.variant);let P=(0,i.Z)({},r,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:p,position:Z,variant:z}),C=y(P);return(0,v.jsx)(x.Z.Provider,{value:null,children:(0,v.jsx)(b,(0,i.Z)({as:h,ownerState:P,className:(0,l.Z)(C.root,c),ref:n},w,{children:"string"!=typeof o||m?(0,v.jsxs)(a.Fragment,{children:["start"===Z?t||(t=(0,v.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,v.jsx)(d.Z,{color:"text.secondary",children:o})}))})})},57965:function(e,n,r){r.d(n,{eE:function(){return Q},E4:function(){return A},SB:function(){return M},ms:function(){return q},hI:function(){return Z},aY:function(){return ec},zd:function(){return W},Ik:function(){return z}});var t=r(94655),s=r(628),i=r(41565),a=r(31317),l=r(7281),o=r(25333),c=r(21138),d=r(84811),x=r(70366),u=r(47001),h=r(59602);let p={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},m={border:0,py:1};function Z(e){var n;let{router:r}=e,Z=(n=r.mode)?n.includes("in-docker")||n.includes("auto-discovery")?{label:"Auto Discovery",color:"info"}:n.includes("mapping")?{label:"Manual Mapping",color:"warning"}:{label:n,color:"default"}:{label:"Unknown",color:"default"};return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(h.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Platform Information"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Router Name"}),(0,t.jsx)(u.Z,{sx:m,children:r.name})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Port"}),(0,t.jsx)(u.Z,{sx:m,children:r.port})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Mode"}),(0,t.jsx)(u.Z,{sx:m,children:(0,t.jsx)(o.Z,{label:Z.label,size:"small",color:Z.color,variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Uptime"}),(0,t.jsx)(u.Z,{sx:m,children:r.uptime||"-"})]})]})})]})})}var j=r(95511),f=r(66561),v=r(12795),g=r(96407),y=r(29983),b=r(81960);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(e){let{status:n}=e;return(0,t.jsx)(j.Z,{title:n,arrow:!0,children:(0,t.jsx)(l.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:w(n),flexShrink:0,boxShadow:"running"===n?"0 0 6px ".concat(w(n)):"none"}})})}function z(e){let{router:n}=e,r=function(e){let n=new Map;for(let r of e){let e=r.target.replace(/^mc-/,"").replace(/:25565$/,""),t=n.get(e);t?t.hostnames.push(r.hostname):n.set(e,{status:r.serverStatus,hostnames:[r.hostname],serverType:r.serverType,serverVersion:r.serverVersion})}return n}(n.routes);return(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(y.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"MC-Router Status"}),(0,t.jsxs)(l.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[(0,t.jsx)(o.Z,{label:n.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"}}(n.status)}),(0,t.jsx)(o.Z,{label:n.health,size:"small",color:function(e){switch(e){case"healthy":return"success";case"unhealthy":return"error";case"starting":return"warning";default:return"default"}}(n.health),variant:"outlined"})]})]}),(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{mb:1,mt:3},children:"Routing Table"}),0===n.routes.length?(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No routes configured"}):(0,t.jsx)(l.Z,{sx:{mt:1},children:Array.from(r.entries()).map(e=>{let[n,{status:r,hostnames:s,serverType:i,serverVersion:o}]=e;return(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:[(0,t.jsx)(v.Z,{expandIcon:(0,t.jsx)(b.Z,{}),children:(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",pr:1},children:[(0,t.jsx)(S,{status:r}),(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{fontWeight:600},children:n}),(i||o)&&(0,t.jsx)(a.Z,{variant:"caption",color:"text.secondary",children:[i,o].filter(Boolean).join(" ")}),(0,t.jsxs)(a.Z,{variant:"caption",color:"text.secondary",sx:{ml:"auto"},children:[s.length," ",1===s.length?"route":"routes"]})]})}),(0,t.jsx)(g.Z,{sx:{pt:0},children:(0,t.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:s.map(e=>(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.85rem",color:"text.secondary"},children:e},e))})})]},n)})})]})})}var P=r(21605);let C={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},I={border:0,py:1};function M(e){var n;let{router:r}=e,h=r.routes.filter(e=>"running"===e.serverStatus).length,p=r.routes.length;return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(P.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Network Settings"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Listening Port"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:r.port,size:"small",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Routing Mode"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:(n=r.mode)?n.includes("in-docker")||n.includes("auto-discovery")?"Auto Discovery":n.includes("mapping")?"Manual Mapping":n:"Unknown",size:"small",color:"info",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Total Routes"}),(0,t.jsx)(u.Z,{sx:I,children:p})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Active Routes"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:"".concat(h," / ").concat(p),size:"small",color:h>0?"success":"default",variant:"outlined"})})]})]})})]})})}var N=r(76544);function A(e){var n;let{avahi:r}=e,c=null!==(n=null==r?void 0:r.status)&&void 0!==n?n:"unknown";return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(N.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"mDNS (Avahi)"}),(0,t.jsx)(o.Z,{label:c,size:"small",color:"running"===c?"success":c.includes("not running")?"warning":"not installed"===c?"error":"default",sx:{ml:"auto"}})]}),(0,t.jsxs)(a.Z,{variant:"body2",color:"text.secondary",children:["Avahi mDNS daemon enables ",(0,t.jsx)("code",{children:".local"})," hostname resolution for Minecraft servers on the local network."]})]})})}var k=r(35106),E=r(97436),L=r(30417),T=r(93017),D=r(30114),R=r(6986);function W(e){var n;let{onSuccess:r,onError:c}=e,{data:d}=(0,R.kP)(),[x,u]=(0,k.useState)((null==d?void 0:null===(n=d.user)||void 0===n?void 0:n.name)||""),[h,p]=(0,k.useState)(!1),[m,Z]=(0,k.useState)(!1),j=null==d?void 0:d.user;(0,k.useEffect)(()=>{(null==j?void 0:j.name)&&!m&&(u(j.name),Z(!0))},[null==j?void 0:j.name,m]);let f=x!==((null==j?void 0:j.name)||""),v=async()=>{if(f&&x.trim()){p(!0);try{let{error:e}=await (0,R.Nq)({name:x.trim()});e?c(e.message||"Failed to update profile"):r("Profile updated successfully")}catch(e){c("Failed to update profile")}finally{p(!1)}}};return j?(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[(0,t.jsx)(D.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Profile"})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[(0,t.jsx)(E.Z,{label:"Name",value:x,onChange:e=>u(e.target.value),fullWidth:!0,size:"small"}),(0,t.jsx)(E.Z,{label:"Email",value:j.email,fullWidth:!0,size:"small",disabled:!0,helperText:"Email cannot be changed"}),(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:"Role:"}),(0,t.jsx)(o.Z,{label:"admin"===j.role?"Admin":"User",size:"small",color:"admin"===j.role?"primary":"default",variant:"outlined"})]}),(0,t.jsx)(l.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,t.jsx)(L.Z,{variant:"contained",onClick:v,disabled:!f||!x.trim()||h,startIcon:h?(0,t.jsx)(T.Z,{size:16}):null,children:h?"Saving...":"Save Changes"})})]})]})}):null}var F=r(52082),_=r(79983),B=r(70603),U=r(28058),V=r(42730);function q(e){let{onSuccess:n,onError:r}=e,[o,c]=(0,k.useState)(""),[d,x]=(0,k.useState)(""),[u,h]=(0,k.useState)(""),[p,m]=(0,k.useState)(!1),[Z,j]=(0,k.useState)(!1),[f,v]=(0,k.useState)(!1),[g,y]=(0,k.useState)(!1),[b,w]=(0,k.useState)({}),S=()=>{let e={};return o||(e.currentPassword="Current password is required"),d?d.length<8&&(e.newPassword="Password must be at least ".concat(8," characters")):e.newPassword="New password is required",u?d!==u&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your new password",o&&d&&o===d&&(e.newPassword="New password must be different from current password"),w(e),0===Object.keys(e).length},z=async e=>{if(e.preventDefault(),S()){y(!0);try{let{error:e}=await (0,R.Cp)({currentPassword:o,newPassword:d,revokeOtherSessions:!1});e?r(e.message||"Failed to change password"):(n("Password changed successfully"),c(""),x(""),h(""),w({}))}catch(e){r("Failed to change password")}finally{y(!1)}}},P=(e,n)=>(0,t.jsx)(F.Z,{position:"end",children:(0,t.jsx)(_.Z,{"aria-label":e?"hide password":"show password",onClick:()=>n(!e),edge:"end",size:"small",children:e?(0,t.jsx)(V.Z,{fontSize:"small"}):(0,t.jsx)(U.Z,{fontSize:"small"})})});return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[(0,t.jsx)(B.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Change Password"})]}),(0,t.jsxs)(l.Z,{component:"form",onSubmit:z,sx:{display:"flex",flexDirection:"column",gap:2.5},children:[(0,t.jsx)(E.Z,{label:"Current Password",type:p?"text":"password",value:o,onChange:e=>{c(e.target.value),b.currentPassword&&w(e=>({...e,currentPassword:""}))},error:!!b.currentPassword,helperText:b.currentPassword,fullWidth:!0,size:"small",autoComplete:"current-password",InputProps:{endAdornment:P(p,m)}}),(0,t.jsx)(E.Z,{label:"New Password",type:Z?"text":"password",value:d,onChange:e=>{x(e.target.value),b.newPassword&&w(e=>({...e,newPassword:""}))},error:!!b.newPassword,helperText:b.newPassword||"Minimum ".concat(8," characters"),fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:P(Z,j)}}),(0,t.jsx)(E.Z,{label:"Confirm New Password",type:f?"text":"password",value:u,onChange:e=>{h(e.target.value),b.confirmPassword&&w(e=>({...e,confirmPassword:""}))},error:!!b.confirmPassword,helperText:b.confirmPassword,fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:P(f,v)}}),(0,t.jsx)(l.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,t.jsx)(L.Z,{type:"submit",variant:"contained",disabled:g,startIcon:g?(0,t.jsx)(T.Z,{size:16}):null,children:g?"Changing...":"Change Password"})})]})]})})}var H=r(23695);let O={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},K={border:0,py:1};function $(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,R.kP)(),n=null==e?void 0:e.user;return n?(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(H.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Account Information"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Account ID"}),(0,t.jsx)(u.Z,{sx:K,children:(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem"},children:n.id})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Created"}),(0,t.jsx)(u.Z,{sx:K,children:$(n.createdAt)})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Last Updated"}),(0,t.jsx)(u.Z,{sx:K,children:$(n.updatedAt)})]})]})})]})}):null}var X=r(11254),Y=r(10721),G=r(81071),J=r(84974),ee=r(5501),en=r(93315),er=r(9078),et=r(10449),es=r(24559),ei=r(37228);let ea={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},el={border:0,py:1};function eo(e){let{text:n}=e,[r,s]=(0,k.useState)(!1),i=async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Failed to copy:",e)}};return(0,t.jsx)(_.Z,{size:"small",onClick:i,sx:{ml:1,color:r?"success.main":"text.secondary","&:hover":{bgcolor:"action.hover"}},"aria-label":r?"Copied":"Copy to clipboard",children:r?(0,t.jsx)(es.Z,{sx:{fontSize:16}}):(0,t.jsx)(et.Z,{sx:{fontSize:16}})})}function ec(){let{data:e,isLoading:n,error:r}=(0,ei.UW)(),h=(0,ei.Bc)(),p=(0,ei.N$)();if(r)return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(G.Z,{severity:"error",children:["Failed to load playit status: ",r.message]})]})});if(n)return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(Y.Z,{variant:"circular",width:24,height:24}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%",height:32})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[(0,t.jsx)(Y.Z,{variant:"text",width:"35%"}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%"})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[(0,t.jsx)(Y.Z,{variant:"text",width:"35%"}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%"})]})]})});if(!(null==e?void 0:e.enabled))return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(G.Z,{severity:"info",children:[(0,t.jsx)(a.Z,{variant:"body2",fontWeight:500,sx:{mb:.5},children:"Not configured"}),(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:"playit.gg agent is not set up. Configure PLAYIT_SECRET to enable external access."})]})]})});let m=e.agentRunning&&"running"===e.containerStatus,Z=h.isPending||p.isPending;return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"}),(0,t.jsxs)(l.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[(0,t.jsx)(L.Z,{component:"a",href:"https://playit.gg/account/tunnels",target:"_blank",rel:"noopener noreferrer",size:"small",startIcon:(0,t.jsx)(er.Z,{}),sx:{fontSize:12},children:"View Dashboard"}),m?(0,t.jsx)(L.Z,{variant:"outlined",size:"small",color:"error",startIcon:Z?(0,t.jsx)(T.Z,{size:16}):(0,t.jsx)(en.Z,{}),onClick:()=>{p.mutate()},disabled:Z,sx:{fontSize:12},children:Z?"Stopping...":"Stop Agent"}):(0,t.jsx)(L.Z,{variant:"contained",size:"small",color:"success",startIcon:Z?(0,t.jsx)(T.Z,{size:16,color:"inherit"}):(0,t.jsx)(ee.Z,{}),onClick:()=>{h.mutate()},disabled:Z,sx:{fontSize:12},children:Z?"Starting...":"Start Agent"})]})]}),(0,t.jsx)(c.Z,{size:"small",sx:{mb:3},children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:ea,children:"Agent Status"}),(0,t.jsx)(u.Z,{sx:el,children:(0,t.jsx)(o.Z,{label:m?"Running":"Stopped",size:"small",color:m?"success":"default",variant:"outlined"})})]}),e.uptime&&(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:ea,children:"Uptime"}),(0,t.jsx)(u.Z,{sx:el,children:e.uptime})]})]})}),e.servers&&e.servers.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{mb:1.5,fontWeight:600},children:"Server Domains"}),(0,t.jsxs)(c.Z,{size:"small",children:[(0,t.jsx)(X.Z,{children:(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"Server"}),(0,t.jsx)(u.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"External Domain"})]})}),(0,t.jsx)(d.Z,{children:e.servers.map(e=>(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:e.serverName}),(0,t.jsx)(u.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:e.playitDomain?(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace"},children:e.playitDomain}),(0,t.jsx)(eo,{text:e.playitDomain})]}):(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:"Not configured"})})]},e.serverName))})]})]})]})})}},37228:function(e,n,r){r.d(n,{Bc:function(){return o},N$:function(){return c},UW:function(){return l}});var t=r(5632),s=r(58919),i=r(20367),a=r(42936);function l(){return(0,t.a)({queryKey:["playit-status"],queryFn:()=>(0,a.SC)("/api/playit/status"),refetchInterval:3e4})}function o(){let e=(0,s.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/start",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}function c(){let e=(0,s.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/stop",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}},6986:function(e,n,r){r.d(n,{Cp:function(){return u},Nq:function(){return x},cg:function(){return l},kP:function(){return d},w7:function(){return o},y1:function(){return c},zB:function(){return h}});var t=r(77054),s=r(61648),i=r(35016);let a=(0,t.X)({baseURL:i.env.NEXT_PUBLIC_BETTER_AUTH_URL||"",plugins:[(0,s.zB)()]}),{signIn:l,signOut:o,signUp:c,useSession:d,updateUser:x,changePassword:u}=a,h=a.admin}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7965],{76544:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)([(0,i.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,i.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")},23695:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},21605:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},9078:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},84974:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},29983:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},93315:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop")},42730:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.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")},52082:function(e,n,r){r.d(n,{Z:function(){return w}});var t,s=r(32324),i=r(81500),a=r(35106),l=r(70316),o=r(65951),c=r(38762),d=r(31317),x=r(14406),u=r(85016),h=r(34519),p=r(11379),m=r(9049);function Z(e){return(0,m.ZP)("MuiInputAdornment",e)}let j=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var f=r(28057),v=r(94655);let g=["children","className","component","disablePointerEvents","disableTypography","position","variant"],y=e=>{let{classes:n,disablePointerEvents:r,hiddenLabel:t,position:s,size:i,variant:a}=e,l={root:["root",r&&"disablePointerEvents",s&&"position".concat((0,c.Z)(s)),a,t&&"hiddenLabel",i&&"size".concat((0,c.Z)(i))]};return(0,o.Z)(l,Z,n)},b=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,n)=>{let{ownerState:r}=e;return[n.root,n["position".concat((0,c.Z)(r.position))],!0===r.disablePointerEvents&&n.disablePointerEvents,n[r.variant]]}})(e=>{let{theme:n,ownerState:r}=e;return(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},"filled"===r.variant&&{["&.".concat(j.positionStart,"&:not(.").concat(j.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})});var w=a.forwardRef(function(e,n){let r=(0,f.i)({props:e,name:"MuiInputAdornment"}),{children:o,className:c,component:h="div",disablePointerEvents:p=!1,disableTypography:m=!1,position:Z,variant:j}=r,w=(0,s.Z)(r,g),S=(0,u.Z)()||{},z=j;j&&S.variant,S&&!z&&(z=S.variant);let P=(0,i.Z)({},r,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:p,position:Z,variant:z}),C=y(P);return(0,v.jsx)(x.Z.Provider,{value:null,children:(0,v.jsx)(b,(0,i.Z)({as:h,ownerState:P,className:(0,l.Z)(C.root,c),ref:n},w,{children:"string"!=typeof o||m?(0,v.jsxs)(a.Fragment,{children:["start"===Z?t||(t=(0,v.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,v.jsx)(d.Z,{color:"text.secondary",children:o})}))})})},57965:function(e,n,r){r.d(n,{eE:function(){return Q},E4:function(){return A},SB:function(){return M},ms:function(){return q},hI:function(){return Z},aY:function(){return ec},zd:function(){return W},Ik:function(){return z}});var t=r(94655),s=r(628),i=r(41565),a=r(31317),l=r(7281),o=r(25333),c=r(21138),d=r(84811),x=r(70366),u=r(47001),h=r(59602);let p={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},m={border:0,py:1};function Z(e){var n;let{router:r}=e,Z=(n=r.mode)?n.includes("in-docker")||n.includes("auto-discovery")?{label:"Auto Discovery",color:"info"}:n.includes("mapping")?{label:"Manual Mapping",color:"warning"}:{label:n,color:"default"}:{label:"Unknown",color:"default"};return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(h.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Platform Information"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Router Name"}),(0,t.jsx)(u.Z,{sx:m,children:r.name})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Port"}),(0,t.jsx)(u.Z,{sx:m,children:r.port})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Mode"}),(0,t.jsx)(u.Z,{sx:m,children:(0,t.jsx)(o.Z,{label:Z.label,size:"small",color:Z.color,variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Uptime"}),(0,t.jsx)(u.Z,{sx:m,children:r.uptime||"-"})]})]})})]})})}var j=r(95511),f=r(66561),v=r(12795),g=r(96407),y=r(29983),b=r(81960);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(e){let{status:n}=e;return(0,t.jsx)(j.Z,{title:n,arrow:!0,children:(0,t.jsx)(l.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:w(n),flexShrink:0,boxShadow:"running"===n?"0 0 6px ".concat(w(n)):"none"}})})}function z(e){let{router:n}=e,r=function(e){let n=new Map;for(let r of e){let e=r.target.replace(/^mc-/,"").replace(/:25565$/,""),t=n.get(e);t?t.hostnames.push(r.hostname):n.set(e,{status:r.serverStatus,hostnames:[r.hostname],serverType:r.serverType,serverVersion:r.serverVersion})}return n}(n.routes);return(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(y.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"MC-Router Status"}),(0,t.jsxs)(l.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[(0,t.jsx)(o.Z,{label:n.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"}}(n.status)}),(0,t.jsx)(o.Z,{label:n.health,size:"small",color:function(e){switch(e){case"healthy":return"success";case"unhealthy":return"error";case"starting":return"warning";default:return"default"}}(n.health),variant:"outlined"})]})]}),(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{mb:1,mt:3},children:"Routing Table"}),0===n.routes.length?(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No routes configured"}):(0,t.jsx)(l.Z,{sx:{mt:1},children:Array.from(r.entries()).map(e=>{let[n,{status:r,hostnames:s,serverType:i,serverVersion:o}]=e;return(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:[(0,t.jsx)(v.Z,{expandIcon:(0,t.jsx)(b.Z,{}),children:(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",pr:1},children:[(0,t.jsx)(S,{status:r}),(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{fontWeight:600},children:n}),(i||o)&&(0,t.jsx)(a.Z,{variant:"caption",color:"text.secondary",children:[i,o].filter(Boolean).join(" ")}),(0,t.jsxs)(a.Z,{variant:"caption",color:"text.secondary",sx:{ml:"auto"},children:[s.length," ",1===s.length?"route":"routes"]})]})}),(0,t.jsx)(g.Z,{sx:{pt:0},children:(0,t.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:s.map(e=>(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.85rem",color:"text.secondary"},children:e},e))})})]},n)})})]})})}var P=r(21605);let C={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},I={border:0,py:1};function M(e){var n;let{router:r}=e,h=r.routes.filter(e=>"running"===e.serverStatus).length,p=r.routes.length;return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(P.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Network Settings"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Listening Port"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:r.port,size:"small",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Routing Mode"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:(n=r.mode)?n.includes("in-docker")||n.includes("auto-discovery")?"Auto Discovery":n.includes("mapping")?"Manual Mapping":n:"Unknown",size:"small",color:"info",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Total Routes"}),(0,t.jsx)(u.Z,{sx:I,children:p})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Active Routes"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:"".concat(h," / ").concat(p),size:"small",color:h>0?"success":"default",variant:"outlined"})})]})]})})]})})}var N=r(76544);function A(e){var n;let{avahi:r}=e,c=null!==(n=null==r?void 0:r.status)&&void 0!==n?n:"unknown";return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(N.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"mDNS (Avahi)"}),(0,t.jsx)(o.Z,{label:c,size:"small",color:"running"===c?"success":c.includes("not running")?"warning":"not installed"===c?"error":"default",sx:{ml:"auto"}})]}),(0,t.jsxs)(a.Z,{variant:"body2",color:"text.secondary",children:["Avahi mDNS daemon enables ",(0,t.jsx)("code",{children:".local"})," hostname resolution for Minecraft servers on the local network."]})]})})}var k=r(35106),E=r(97436),L=r(30417),T=r(93017),D=r(30114),R=r(6986);function W(e){var n;let{onSuccess:r,onError:c}=e,{data:d}=(0,R.kP)(),[x,u]=(0,k.useState)((null==d?void 0:null===(n=d.user)||void 0===n?void 0:n.name)||""),[h,p]=(0,k.useState)(!1),[m,Z]=(0,k.useState)(!1),j=null==d?void 0:d.user;(0,k.useEffect)(()=>{(null==j?void 0:j.name)&&!m&&(u(j.name),Z(!0))},[null==j?void 0:j.name,m]);let f=x!==((null==j?void 0:j.name)||""),v=async()=>{if(f&&x.trim()){p(!0);try{let{error:e}=await (0,R.Nq)({name:x.trim()});e?c(e.message||"Failed to update profile"):r("Profile updated successfully")}catch(e){c("Failed to update profile")}finally{p(!1)}}};return j?(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[(0,t.jsx)(D.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Profile"})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[(0,t.jsx)(E.Z,{label:"Name",value:x,onChange:e=>u(e.target.value),fullWidth:!0,size:"small"}),(0,t.jsx)(E.Z,{label:"Email",value:j.email,fullWidth:!0,size:"small",disabled:!0,helperText:"Email cannot be changed"}),(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:"Role:"}),(0,t.jsx)(o.Z,{label:"admin"===j.role?"Admin":"User",size:"small",color:"admin"===j.role?"primary":"default",variant:"outlined"})]}),(0,t.jsx)(l.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,t.jsx)(L.Z,{variant:"contained",onClick:v,disabled:!f||!x.trim()||h,startIcon:h?(0,t.jsx)(T.Z,{size:16}):null,children:h?"Saving...":"Save Changes"})})]})]})}):null}var F=r(52082),U=r(79983),_=r(70603),B=r(28058),V=r(42730);function q(e){let{onSuccess:n,onError:r}=e,[o,c]=(0,k.useState)(""),[d,x]=(0,k.useState)(""),[u,h]=(0,k.useState)(""),[p,m]=(0,k.useState)(!1),[Z,j]=(0,k.useState)(!1),[f,v]=(0,k.useState)(!1),[g,y]=(0,k.useState)(!1),[b,w]=(0,k.useState)({}),S=()=>{let e={};return o||(e.currentPassword="Current password is required"),d?d.length<8&&(e.newPassword="Password must be at least ".concat(8," characters")):e.newPassword="New password is required",u?d!==u&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your new password",o&&d&&o===d&&(e.newPassword="New password must be different from current password"),w(e),0===Object.keys(e).length},z=async e=>{if(e.preventDefault(),S()){y(!0);try{let{error:e}=await (0,R.Cp)({currentPassword:o,newPassword:d,revokeOtherSessions:!1});e?r(e.message||"Failed to change password"):(n("Password changed successfully"),c(""),x(""),h(""),w({}))}catch(e){r("Failed to change password")}finally{y(!1)}}},P=(e,n)=>(0,t.jsx)(F.Z,{position:"end",children:(0,t.jsx)(U.Z,{"aria-label":e?"hide password":"show password",onClick:()=>n(!e),edge:"end",size:"small",children:e?(0,t.jsx)(V.Z,{fontSize:"small"}):(0,t.jsx)(B.Z,{fontSize:"small"})})});return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[(0,t.jsx)(_.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Change Password"})]}),(0,t.jsxs)(l.Z,{component:"form",onSubmit:z,sx:{display:"flex",flexDirection:"column",gap:2.5},children:[(0,t.jsx)(E.Z,{label:"Current Password",type:p?"text":"password",value:o,onChange:e=>{c(e.target.value),b.currentPassword&&w(e=>({...e,currentPassword:""}))},error:!!b.currentPassword,helperText:b.currentPassword,fullWidth:!0,size:"small",autoComplete:"current-password",InputProps:{endAdornment:P(p,m)}}),(0,t.jsx)(E.Z,{label:"New Password",type:Z?"text":"password",value:d,onChange:e=>{x(e.target.value),b.newPassword&&w(e=>({...e,newPassword:""}))},error:!!b.newPassword,helperText:b.newPassword||"Minimum ".concat(8," characters"),fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:P(Z,j)}}),(0,t.jsx)(E.Z,{label:"Confirm New Password",type:f?"text":"password",value:u,onChange:e=>{h(e.target.value),b.confirmPassword&&w(e=>({...e,confirmPassword:""}))},error:!!b.confirmPassword,helperText:b.confirmPassword,fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:P(f,v)}}),(0,t.jsx)(l.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,t.jsx)(L.Z,{type:"submit",variant:"contained",disabled:g,startIcon:g?(0,t.jsx)(T.Z,{size:16}):null,children:g?"Changing...":"Change Password"})})]})]})})}var H=r(23695);let O={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},K={border:0,py:1};function $(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,R.kP)(),n=null==e?void 0:e.user;return n?(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(H.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Account Information"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Account ID"}),(0,t.jsx)(u.Z,{sx:K,children:(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem"},children:n.id})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Created"}),(0,t.jsx)(u.Z,{sx:K,children:$(n.createdAt)})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Last Updated"}),(0,t.jsx)(u.Z,{sx:K,children:$(n.updatedAt)})]})]})})]})}):null}var X=r(11254),Y=r(10721),G=r(81071),J=r(84974),ee=r(5501),en=r(93315),er=r(9078),et=r(10449),es=r(24559),ei=r(37228);let ea={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},el={border:0,py:1};function eo(e){let{text:n}=e,[r,s]=(0,k.useState)(!1),i=async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Failed to copy:",e)}};return(0,t.jsx)(U.Z,{size:"small",onClick:i,sx:{ml:1,color:r?"success.main":"text.secondary","&:hover":{bgcolor:"action.hover"}},"aria-label":r?"Copied":"Copy to clipboard",children:r?(0,t.jsx)(es.Z,{sx:{fontSize:16}}):(0,t.jsx)(et.Z,{sx:{fontSize:16}})})}function ec(){let{data:e,isLoading:n,error:r}=(0,ei.UW)(),h=(0,ei.Bc)(),p=(0,ei.N$)();if(r)return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(G.Z,{severity:"error",children:["Failed to load playit status: ",r.message]})]})});if(n)return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(Y.Z,{variant:"circular",width:24,height:24}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%",height:32})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[(0,t.jsx)(Y.Z,{variant:"text",width:"35%"}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%"})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[(0,t.jsx)(Y.Z,{variant:"text",width:"35%"}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%"})]})]})});if(!(null==e?void 0:e.enabled))return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(G.Z,{severity:"info",children:[(0,t.jsx)(a.Z,{variant:"body2",fontWeight:500,sx:{mb:.5},children:"Not configured"}),(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:"playit.gg agent is not set up. Configure PLAYIT_SECRET to enable external access."})]})]})});let m=e.agentRunning&&"running"===e.containerStatus,Z=h.isPending||p.isPending,j=h.error||p.error;return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),j&&(0,t.jsx)(G.Z,{severity:"error",sx:{mb:2},children:j.message||"Action failed"}),(0,t.jsxs)(l.Z,{sx:{display:"flex",gap:1,mb:2,flexWrap:"wrap"},children:[m?(0,t.jsx)(L.Z,{variant:"outlined",size:"small",color:"error",startIcon:Z?(0,t.jsx)(T.Z,{size:16}):(0,t.jsx)(en.Z,{}),onClick:()=>{p.mutate()},disabled:Z,sx:{fontSize:12},children:Z?"Stopping...":"Stop Agent"}):(0,t.jsx)(L.Z,{variant:"contained",size:"small",color:"success",startIcon:Z?(0,t.jsx)(T.Z,{size:16,color:"inherit"}):(0,t.jsx)(ee.Z,{}),onClick:()=>{h.mutate()},disabled:Z,sx:{fontSize:12},children:Z?"Starting...":"Start Agent"}),(0,t.jsx)(L.Z,{component:"a",href:"https://playit.gg/account/tunnels",target:"_blank",rel:"noopener noreferrer",size:"small",startIcon:(0,t.jsx)(er.Z,{}),sx:{fontSize:12},children:"View Dashboard"})]}),(0,t.jsx)(c.Z,{size:"small",sx:{mb:3},children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:ea,children:"Agent Status"}),(0,t.jsx)(u.Z,{sx:el,children:(0,t.jsx)(o.Z,{label:m?"Running":"Stopped",size:"small",color:m?"success":"default",variant:"outlined"})})]}),e.uptime&&(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:ea,children:"Uptime"}),(0,t.jsx)(u.Z,{sx:el,children:e.uptime})]})]})}),e.servers&&e.servers.length>0&&(()=>{let n=e.servers.filter(e=>e.playitDomain),r=e.servers.filter(e=>!e.playitDomain);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{mb:1.5,fontWeight:600},children:"Server Domains"}),n.length>0?(0,t.jsxs)(c.Z,{size:"small",sx:{mb:r.length>0?2:0},children:[(0,t.jsx)(X.Z,{children:(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"Server"}),(0,t.jsx)(u.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"External Domain"})]})}),(0,t.jsx)(d.Z,{children:n.map(e=>(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:e.serverName}),(0,t.jsx)(u.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace"},children:e.playitDomain}),(0,t.jsx)(eo,{text:e.playitDomain})]})})]},e.serverName))})]}):(0,t.jsxs)(a.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:["No servers with external domains configured. Use ",(0,t.jsx)("code",{children:"mcctl create --playit-domain"})," to register a domain."]}),r.length>0&&(0,t.jsxs)(a.Z,{variant:"body2",color:"text.secondary",children:[r.length," server",r.length>1?"s":""," without external domain: ",r.map(e=>e.serverName).join(", ")]})]})})()]})})}},37228:function(e,n,r){r.d(n,{Bc:function(){return o},N$:function(){return c},UW:function(){return l}});var t=r(5632),s=r(58919),i=r(20367),a=r(42936);function l(){return(0,t.a)({queryKey:["playit-status"],queryFn:()=>(0,a.SC)("/api/playit/status"),refetchInterval:3e4})}function o(){let e=(0,s.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/start",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}function c(){let e=(0,s.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/stop",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}},6986:function(e,n,r){r.d(n,{Cp:function(){return u},Nq:function(){return x},cg:function(){return l},kP:function(){return d},w7:function(){return o},y1:function(){return c},zB:function(){return h}});var t=r(77054),s=r(61648),i=r(35016);let a=(0,t.X)({baseURL:i.env.NEXT_PUBLIC_BETTER_AUTH_URL||"",plugins:[(0,s.zB)()]}),{signIn:l,signOut:o,signUp:c,useSession:d,updateUser:x,changePassword:u}=a,h=a.admin}}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft-docker/mcctl-console",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "Web management console for Docker Minecraft servers",
5
5
  "bin": {
6
6
  "mcctl-console": "bin/start.js"
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@emotion/react": "^11.13.5",
49
49
  "@emotion/styled": "^11.13.5",
50
- "@minecraft-docker/shared": "^2.3.3",
50
+ "@minecraft-docker/shared": "^2.3.5",
51
51
  "@mui/icons-material": "^5.17.1",
52
52
  "@mui/material": "^5.17.1",
53
53
  "@mui/material-nextjs": "^5.17.1",