import{d as v,g as h,q as u,o as i,k as e,j as t,F as C,v as x,t as f,n,du as w,L as B,i as l,c as F,dv as P,a6 as V,dw as p,z as j}from"./index-DLpks3Kx.js";import{u as q}from"./usePageTitle-TEWQ-kob.js";import{u as A}from"./usePrefectApi-Dzv5J7zX.js";import"./api-3LBnZLPv.js";import"./mapper-h5MJOUO4.js";const L={class:"settings-block"},M=v({__name:"SettingsCodeBlock",props:{engineSettings:{}},setup(d){const s=d,o=h(()=>Object.entries(s.engineSettings));return(g,c)=>(i(),u("div",L,[e(n(w),{multiline:""},{default:t(()=>[(i(!0),u(C,null,x(o.value,(a,r)=>(i(),u("div",{key:r,class:"settings-block--code-line"},f(a[0])+": "+f(a[1]),1))),128))]),_:1})]))}}),R=v({__name:"Settings",async setup(d){let s,o;const g=[{text:"Settings"}],c=A(),[a,r]=([s,o]=B(()=>Promise.all([c.admin.getSettings(),c.admin.getVersion()])),s=await s,o(),s);return q("Settings"),(T,m)=>{const S=l("p-key-value"),b=l("p-theme-toggle"),_=l("p-label"),k=l("p-layout-default");return i(),F(k,{class:"settings"},{header:t(()=>[e(n(j),{crumbs:g},{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(b)]),_:1}),e(_,{label:"Color Mode",class:"settings__color-mode"},{default:t(()=>[e(n(P),{selected:n(p),"onUpdate:selected":m[0]||(m[0]=y=>V(p)?p.value=y:null)},null,8,["selected"])]),_:1}),e(_,{label:"Server Settings"},{default:t(()=>[e(M,{class:"settings__code-block","engine-settings":n(a)},null,8,["engine-settings"])]),_:1})]),_:1})}}});export{R as default};
//# sourceMappingURL=Settings-CX780J7R.js.map
