import{d as v,f as h,o as i,x as u,j as e,g as t,F as x,y as C,k as n,dk as B,q as f,K as w,c as M,h as l,U as P,dl as U,dm as d,a5 as V}from"./index-BqDjVCF_.js";import{u as j}from"./usePageTitle-CZh_IXm2.js";import{u as A}from"./usePrefectApi-Bdbej7WZ.js";const F={class:"settings-block"},T=v({__name:"SettingsCodeBlock",props:{engineSettings:{}},setup(g){const s=g,a=h(()=>Object.entries(s.engineSettings));return(p,c)=>(i(),u("div",F,[e(n(B),{multiline:""},{default:t(()=>[(i(!0),u(x,null,C(a.value,(o,r)=>(i(),u("div",{key:r,class:"settings-block--code-line"},f(o[0])+": "+f(o[1]),1))),128))]),_:1})]))}}),K=v({__name:"Settings",async setup(g){let s,a;const p=[{text:"Settings"}],c=A(),[o,r]=([s,a]=w(()=>Promise.all([c.admin.getSettings(),c.admin.getVersion()])),s=await s,a(),s);return j("Settings"),(q,m)=>{const S=l("p-key-value"),k=l("p-theme-toggle"),_=l("p-label"),b=l("p-layout-default");return i(),M(b,{class:"settings"},{header:t(()=>[e(n(P),{crumbs:p},{actions:t(()=>[e(S,{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(U),{selected:n(d),"onUpdate:selected":m[0]||(m[0]=y=>V(d)?d.value=y:null)},null,8,["selected"])]),_:1}),e(_,{label:"Server Settings"},{default:t(()=>[e(T,{class:"settings__code-block","engine-settings":n(o)},null,8,["engine-settings"])]),_:1})]),_:1})}}});export{K as default};
//# sourceMappingURL=Settings-DDxi3Od2.js.map
