import{d as v,g as h,o as c,m as u,n as e,j as t,F as C,cc as x,u as n,cd as A,t as f,ce as B,cf as P,bk as w,c as F,l,P as V,cg as j,ch as g,A as M}from"./index-bJiZR03d.js";import{u as T}from"./usePageTitle-wT6f1BZv.js";const D={class:"settings-block"},E=v({__name:"SettingsCodeBlock",props:{engineSettings:{}},setup(p){const s=p,a=h(()=>Object.entries(s.engineSettings));return(d,i)=>(c(),u("div",D,[e(n(A),{multiline:""},{default:t(()=>[(c(!0),u(C,null,x(a.value,(o,r)=>(c(),u("div",{key:r,class:"settings-block--code-line"},f(o[0])+": "+f(o[1]),1))),128))]),_:1})]))}});function K(){return B(P)}const R=v({__name:"Settings",async setup(p){let s,a;const d=[{text:"Settings"}],i=K(),[o,r]=([s,a]=w(()=>Promise.all([i.admin.getSettings(),i.admin.getVersion()])),s=await s,a(),s);return T("Settings"),(L,m)=>{const b=l("p-key-value"),k=l("p-theme-toggle"),_=l("p-label"),S=l("p-layout-default");return c(),F(S,{class:"settings"},{header:t(()=>[e(n(V),{crumbs:d},{actions:t(()=>[e(b,{class:"settings__version",label:"Version",value:n(r),alternate:""},null,8,["value"])]),_:1})]),default:t(()=>[e(_,{label:"Theme"},{default:t(()=>[e(k)]),_:1}),e(_,{label:"Color Mode",class:"settings__color-mode"},{default:t(()=>[e(n(j),{selected:n(g),"onUpdate:selected":m[0]||(m[0]=y=>M(g)?g.value=y:null)},null,8,["selected"])]),_:1}),e(_,{label:"Server Settings"},{default:t(()=>[e(E,{class:"settings__code-block","engine-settings":n(o)},null,8,["engine-settings"])]),_:1})]),_:1})}}});export{R as default};
