import{d as v,j as C,o as l,l as c,a as t,w as o,G as w,J as A,u as s,E as f,bO as B,b as y,c as h,r,bL as O,bP as V,t as j}from"./index-4d9fe32c-718dc5d9.js";import{y as E}from"./prefect-design-a921a7c6.js";import{u as L}from"./usePageTitle-e8e2e29d.js";import{d as M}from"./vue-compositions-55710141.js";import{A as P}from"./ApiRoute-3ea941f2.js";import{a as _}from"./colorMode-4bac673d.js";import"./meta-26546594.js";const R={class:"settings-block"},U=v({__name:"SettingsCodeBlock",props:{engineSettings:null},setup(i){const e=i,n=C(()=>Object.entries(e.engineSettings));return(u,p)=>(l(),c("div",R,[t(s(E),{multiline:""},{default:o(()=>[(l(!0),c(w,null,A(s(n),(a,d)=>(l(),c("div",{key:d,class:"settings-block--code-line"},f(a[0])+": "+f(a[1]),1))),128))]),_:1})]))}});class q extends P(B){}const b=M(new q),z=v({__name:"Settings",async setup(i){let e,n;const u=[{text:"Settings"}],p=([e,n]=y(()=>b.getSettings()),e=await e,n(),e),a=([e,n]=y(()=>b.getVersion()),e=await e,n(),e);return L("Settings"),(d,g)=>{const S=r("p-key-value"),m=r("p-label"),k=r("p-layout-default");return l(),h(k,{class:"settings"},{header:o(()=>[t(s(O),{crumbs:u},{actions:o(()=>[t(S,{label:"Version",value:s(a),alternate:""},null,8,["value"])]),_:1})]),default:o(()=>[t(m,{label:"Color Mode",class:"settings__color-mode"},{default:o(()=>[t(s(V),{selected:s(_),"onUpdate:selected":g[0]||(g[0]=x=>j(_)?_.value=x:null)},null,8,["selected"])]),_:1}),t(m,{label:"Orion Settings"},{default:o(()=>[t(U,{class:"settings__code-block","engine-settings":s(p)},null,8,["engine-settings"])]),_:1})]),_:1})}}});export{z as default};
