"use strict";(()=>{var e={};e.id=329,e.ids=[329],e.modules={2578:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>P,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>v});var a=r(7093),i=r(5244),l=r(1323),n=r(1070),c=r(3893),d=r(4300),o=e([c,d]);[c,d]=o.then?(await o)():o;let u=(0,l.l)(d,"default"),p=(0,l.l)(d,"getStaticProps"),x=(0,l.l)(d,"getStaticPaths"),m=(0,l.l)(d,"getServerSideProps"),g=(0,l.l)(d,"config"),h=(0,l.l)(d,"reportWebVitals"),v=(0,l.l)(d,"unstable_getStaticProps"),j=(0,l.l)(d,"unstable_getStaticPaths"),f=(0,l.l)(d,"unstable_getStaticParams"),S=(0,l.l)(d,"unstable_getServerProps"),q=(0,l.l)(d,"unstable_getServerSideProps"),P=new a.PagesRouteModule({definition:{kind:i.x.PAGES,page:"/admin/services/[service_name]",pathname:"/admin/services/[service_name]",bundlePath:"",filename:""},components:{App:c.default,Document:n.default},userland:d});s()}catch(e){s(e)}})},5272:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>u});var a=r(997),i=r(3216),l=r(6689),n=r(3893),c=r(9705),d=r(9986),o=e([i,n,c,d]);function u({service:e}){let{pageProps:t}=(0,l.useContext)(n.AppContext),r=e.servers,[s,o]=(0,l.useState)(r?.[0]),u=!!r?.length&&!!(r.length%2);return a.jsx(i.Z,{className:"w-full grid-cell col-span-1 gap-0",children:(0,a.jsxs)(c.Z,{className:"nested-grid-frame xl:grid-cols-2",children:[r?.map((t,r)=>a.jsx(d.Z,{server:t,service:e,wrapperProps:{className:"grid-cell"}},r)),u?a.jsx("div",{className:"grid-cell"}):null]})})}[i,n,c,d]=o.then?(await o)():o,s()}catch(e){s(e)}})},5094:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>x});var a=r(997),i=r(3216),l=r(6689),n=r(3893),c=r(5272),d=r(9705),o=r(5031),u=r(1309),p=e([i,n,c,d,o,u]);function x(){let{pageProps:e,ws:t}=(0,l.useContext)(n.AppContext),{service:r,deployment:s,children_services:p}=e,x=[r,...p||[]],[m,g]=(0,l.useState)(r||void 0),h=x.findIndex(e=>e?.service_name==m?.service_name)+1;return m?.servers,a.jsx(i.Z,{className:"w-full nested-grid-frame grid-cols-1",children:(0,a.jsxs)(i.Z,{className:"grid-cell gap-0",children:[a.jsx(d.Z,{className:"grid-cell-content flex-nowrap",children:(0,a.jsxs)(d.Z,{className:"w-full justify-between",children:[a.jsx(d.Z,{children:(0,a.jsxs)(u.Z,{children:["Cluster #",h]})}),a.jsx(d.Z,{children:a.jsx(o.Z,{options:x.map((e,t)=>({value:e?.service_name,title:`Cluster #${t+1}`})),wrapperWrapperProps:{className:"max-w-[250px]"},changeHandler:e=>{g(void 0),t.sendData({event:"client:kill-all-ports"}),setTimeout(()=>{g(x.find(t=>t?.service_name==e)||void 0)},200)}})})]})}),a.jsx("hr",{}),m?a.jsx(c.Z,{service:m}):void 0]})})}[i,n,c,d,o,u]=p.then?(await p)():p,s()}catch(e){s(e)}})},7680:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>p});var a=r(997),i=r(6689),l=r(3893),n=r(6425),c=r(2984),d=r(2394),o=r(5094),u=e([l,c,d,o]);function p(){let{pageProps:e}=(0,i.useContext)(l.AppContext),{service:t,deployment:r}=e,s=r?.deployment_name,u=t?.service_name;return(0,a.jsxs)(i.Fragment,{children:[a.jsx(d.Z,{title:`${(0,n.Z)(u)} Service`,description:(0,a.jsxs)(a.Fragment,{children:["Deployment ",a.jsx("code",{children:s})," > ",a.jsx("code",{children:u})]})}),a.jsx(c.Z,{}),a.jsx(o.Z,{})]})}[l,c,d,o]=u.then?(await u)():u,s()}catch(e){s(e)}})},4300:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{default:()=>d,getServerSideProps:()=>o});var a=r(997),i=r(7680),l=r(8688),n=r(3060),c=e([i,n]);function d(){return a.jsx(n.Z,{children:a.jsx(i.Z,{})})}[i,n]=c.then?(await c)():c;let o=async e=>await (0,l.Z)({ctx:e});s()}catch(e){s(e)}})},5191:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},4882:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt")},4605:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/ejson")},1521:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/numberfy")},6255:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/slugify")},1635:e=>{e.exports=require("dayjs")},6517:e=>{e.exports=require("lodash")},2423:e=>{e.exports=require("lucide-react")},2785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},968:e=>{e.exports=require("next/head")},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},997:e=>{e.exports=require("react/jsx-runtime")},2048:e=>{e.exports=require("fs")},5315:e=>{e.exports=require("path")},8097:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[859,330,752,248,150,824],()=>r(2578));module.exports=s})();