import{d as _,ck as d,cl as S,cm as p,cn as f,co as v,b3 as w,D as M,o as k,c as R,a as r,w as P,cp as T,F as g}from"../../../js/index-lT0LPxUj.js";import{_ as h}from"../../../js/AppNavigation-Bz7QIlby.js";const i=(o,e)=>{let t;return o.query[e]?t=o.query[e]:o.params[e]?t=o.params[e]:t=new URLSearchParams(window.location.search).get(e),t},E=_({__name:"MainLayout",setup(o){const e=d(),t=S(),s=p(),l=f(),c=v(),m=[{icon:"mdi:mdi-tools",id:"nestProject",simulator:"nest",title:"Sandbox",to:{name:"nestProjectRoot"}},{icon:"nest:logo",id:"nestModel",simulator:"nest",title:"Model",to:{name:"nestModelRoot"}}];return w(()=>{const n=i(c,"nest_server_url");n&&(s.state.url=n);const a=i(c,"nest_server_access_token");a&&(s.state.accessToken=a),s.update(),e.update(),t.init(),l.init()}),(n,a)=>{const u=M("router-view");return k(),R(g,null,[r(h,{"nav-items":m}),r(T,null,{default:P(()=>[r(u)]),_:1})],64)}}});export{E as default};
