(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7471],{6708:(s,e,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/su/load-balancing",function(){return a(5812)}])},5139:(s,e,a)=>{"use strict";a.d(e,{A:()=>n});var l=a(4848);a(6540);var r=a(7220),t=a(856);function n(s){let{slugText:e,justIcon:a,noIcon:n,title:i,outlined:c,extraClasses:d}=s;return(0,l.jsxs)("div",{className:(0,t.QP)("button small-text hover:!bg-transparent",c?" outlined gray bg-white":" ghost light-gray",d),onClick:s=>{navigator.clipboard.writeText(e).then(()=>{alert('Copied: "'.concat(e,'"'))})},style:c?void 0:{padding:0},children:[!n&&(0,l.jsx)(r.A,{size:c?15:20}),!a&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:i||"Copy Slug"})]})}},5125:(s,e,a)=>{"use strict";a.d(e,{A:()=>i});var l=a(4848),r=a(5139),t=a(2750),n=a(856);function i(s){var e;let{server:a,noLoadBalance:r}=s;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:a.host}),r?(0,l.jsx)(l.Fragment,{}):a.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===(e=a.users)||void 0===e?void 0:e.map((s,e)=>(0,l.jsx)(c,{user:s},e))})})]})}function c(s){let{user:e}=s;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:e.name})]}),(0,l.jsxs)("span",{children:["pass:"," ",(0,l.jsx)("b",{children:(0,l.jsx)(r.A,{slugText:e.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}},7220:(s,e,a)=>{"use strict";a.d(e,{A:()=>l});let l=(0,a(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"}]])},5812:(s,e,a)=>{"use strict";a.r(e),a.d(e,{__N_SSP:()=>d,default:()=>o});var l=a(4848),r=a(6540),t=a(3430),n=a(5125);function i(){let s=r.useContext(t.AppContext).pageProps.servers;return(0,l.jsxs)(r.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:"Load Balancing"}),(0,l.jsx)("span",{children:"Distribute database load accross servers"})]}),(0,l.jsx)("div",{})]}),(0,l.jsxs)("section",{className:"paper",children:[(0,l.jsx)("h2",{className:"text-base m-0",children:"Servers"}),(0,l.jsx)("div",{className:"flex flex-col gap-2 w-full",children:s.map((s,e)=>(0,l.jsx)(n.A,{server:s},e))})]})]})}var c=a(4725),d=!0;function o(s){let{user:e,data:a}=s,r=(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)(c.A,{head:r,children:(0,l.jsx)(i,{})})}}},s=>{var e=e=>s(s.s=e);s.O(0,[1335,3348,4725,636,6593,8792],()=>e(6708)),_N_E=s.O()}]);