import{d as v,h as y,o as i,x as u,k as e,i as t,A as x,z as C,l as n,db as B,t as f,M as w,c as A,j as l,K as M,dc as P,dd as d,a6 as V}from"./index-CibiDZQv.js";import{u as j}from"./usePageTitle-DYAZWMh1.js";import{u as K}from"./usePrefectApi-CxW5JR2S.js";const T={class:"settings-block"},z=v({__name:"SettingsCodeBlock",props:{engineSettings:{}},setup(p){const s=p,a=y(()=>Object.entries(s.engineSettings));return(g,c)=>(i(),u("div",T,[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})]))}}),L=v({__name:"Settings",async setup(p){let s,a;const g=[{text:"Settings"}],c=K(),[o,r]=([s,a]=w(()=>Promise.all([c.admin.getSettings(),c.admin.getVersion()])),s=await s,a(),s);return j("Settings"),(D,m)=>{const b=l("p-key-value"),S=l("p-theme-toggle"),_=l("p-label"),k=l("p-layout-default");return i(),A(k,{class:"settings"},{header:t(()=>[e(n(M),{crumbs:g},{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(S)]),_:1}),e(_,{label:"Color Mode",class:"settings__color-mode"},{default:t(()=>[e(n(P),{selected:n(d),"onUpdate:selected":m[0]||(m[0]=h=>V(d)?d.value=h:null)},null,8,["selected"])]),_:1}),e(_,{label:"Server Settings"},{default:t(()=>[e(z,{class:"settings__code-block","engine-settings":n(o)},null,8,["engine-settings"])]),_:1})]),_:1})}}});export{L as default};
//# sourceMappingURL=Settings-CzqPmPxf.js.map
