(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2719],{8330:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/su/servers",function(){return r(5492)}])},5139:(e,s,r)=>{"use strict";r.d(s,{A:()=>n});var l=r(4848);r(6540);var a=r(7220),t=r(856);function n(e){let{slugText:s,justIcon:r,noIcon:n,title:i,outlined:d,extraClasses:c}=e;return(0,l.jsxs)("div",{className:(0,t.QP)("button small-text hover:!bg-transparent",d?" outlined gray bg-white":" ghost light-gray",c),onClick:e=>{navigator.clipboard.writeText(s).then(()=>{alert('Copied: "'.concat(s,'"'))})},style:d?void 0:{padding:0},children:[!n&&(0,l.jsx)(a.A,{size:d?15:20}),!r&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:i||"Copy Slug"})]})}},5125:(e,s,r)=>{"use strict";r.d(s,{A:()=>i});var l=r(4848),a=r(5139),t=r(2750),n=r(856);function i(e){var s;let{server:r,noLoadBalance:a}=e;return(0,l.jsxs)("div",{className:"stack w-full",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(t.A,{size:15,opacity:.5}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{children:r.host}),a?(0,l.jsx)(l.Fragment,{}):r.loadBalanced?(0,l.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,l.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,l.jsx)("div",{className:(0,n.QP)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,l.jsx)("ul",{className:"p-0 m-0 pl-4",children:null===(s=r.users)||void 0===s?void 0:s.map((e,s)=>(0,l.jsx)(d,{user:e},s))})})]})}function d(e){let{user:s}=e;return(0,l.jsx)("li",{className:(0,n.QP)("w-full"),children:(0,l.jsxs)("div",{className:"stack gap-0",children:[(0,l.jsxs)("span",{children:["user: ",(0,l.jsx)("b",{children:s.name})]}),(0,l.jsxs)("span",{children:["pass:"," ",(0,l.jsx)("b",{children:(0,l.jsx)(a.A,{slugText:s.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}},7220:(e,s,r)=>{"use strict";r.d(s,{A:()=>l});let l=(0,r(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},5492:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSP:()=>c,default:()=>o});var l=r(4848),a=r(6540),t=r(3430),n=r(5125);function i(){let e=a.useContext(t.AppContext).pageProps.servers;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between",children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,l.jsx)("span",{children:"All Servers"})]}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{children:"Add Server"})})]}),(0,l.jsxs)("section",{className:"paper",children:[(0,l.jsx)("div",{className:"flex flex-col gap-2 w-full",children:e.map((e,s)=>(0,l.jsx)(n.A,{server:e,noLoadBalance:!0},s))}),(0,l.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}var d=r(4725),c=!0;function o(e){let{user:s,data:r}=e,a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Load Balancing"}),(0,l.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,l.jsx)(d.A,{head:a,children:(0,l.jsx)(i,{})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,3348,4725,636,6593,8792],()=>s(8330)),_N_E=e.O()}]);