import{d as v,h,o as i,y as u,l as e,i as t,F as C,z as x,m as n,da as w,q as f,L as B,c as P,j as l,Z as V,db as j,dc as d,a6 as A}from"./index-7qezL2zM.js";import{u as F}from"./usePageTitle-k72s0--o.js";import{u as L}from"./usePrefectApi-Z5ZnFhWQ.js";const M={class:"settings-block"},T=v({__name:"SettingsCodeBlock",props:{engineSettings:{}},setup(p){const s=p,a=h(()=>Object.entries(s.engineSettings));return(g,c)=>(i(),u("div",M,[e(n(w),{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})]))}}),E=v({__name:"Settings",async setup(p){let s,a;const g=[{text:"Settings"}],c=L(),[o,r]=([s,a]=B(()=>Promise.all([c.admin.getSettings(),c.admin.getVersion()])),s=await s,a(),s);return F("Settings"),(Z,m)=>{const b=l("p-key-value"),S=l("p-theme-toggle"),_=l("p-label"),k=l("p-layout-default");return i(),P(k,{class:"settings"},{header:t(()=>[e(n(V),{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(j),{selected:n(d),"onUpdate:selected":m[0]||(m[0]=y=>A(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{E as default};
//# sourceMappingURL=Settings-BPA_Xaec.js.map
