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