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