import{d as S,e as A,o as l,k as _,i as t,w as a,F as C,a_ as w,j as s,a$ as f,b0 as h,c as B,A as $,b1 as O,av as v,g as c,h as V,b2 as j,b3 as F,b4 as r,y as M}from"./index.ace9693c.js";import{u as R}from"./usePageTitle.12638eb5.js";const D={class:"settings-block"},E=S({__name:"SettingsCodeBlock",props:{engineSettings:null},setup(i){const e=i,n=A(()=>Object.entries(e.engineSettings));return(u,d)=>(l(),_("div",D,[t(s(h),{multiline:""},{default:a(()=>[(l(!0),_(C,null,w(s(n),(o,p)=>(l(),_("div",{key:p,class:"settings-block--code-line"},f(o[0])+": "+f(o[1]),1))),128))]),_:1})]))}});class L extends $(O){}const b=B(new L);const T=S({__name:"Settings",async setup(i){let e,n;const u=[{text:"Settings"}],d=([e,n]=v(()=>b.getSettings()),e=await e,n(),e),o=([e,n]=v(()=>b.getVersion()),e=await e,n(),e);return R("Settings"),(p,g)=>{const y=c("p-key-value"),m=c("p-label"),k=c("p-layout-default");return l(),V(k,{class:"settings"},{header:a(()=>[t(s(j),{crumbs:u},{actions:a(()=>[t(y,{label:"Version",value:s(o),alternate:""},null,8,["value"])]),_:1})]),default:a(()=>[t(m,{label:"Color Mode",class:"settings__color-mode"},{default:a(()=>[t(s(F),{selected:s(r),"onUpdate:selected":g[0]||(g[0]=x=>M(r)?r.value=x:null)},null,8,["selected"])]),_:1}),t(m,{label:"Orion Settings"},{default:a(()=>[t(E,{class:"settings__code-block","engine-settings":s(d)},null,8,["engine-settings"])]),_:1})]),_:1})}}});export{T as default};
