import{P as h}from"./PlayerNavbar-Dd1Jfjyg.js";import{e as _,V as y,r as b,b as k,f as w,n as p,j as v,k as L,p as t,Z as C,J as I,g as s,ar as P}from"./jwt-decode.esm-01iVuizL.js";import{u as N}from"./workspaceStore-BhaNP0o0.js";import"./userStore-iHeQ9myT.js";import"./metadata-D505evBf.js";import"./PhCursorClick.vue-BoGuSmin.js";import"./PhHouse.vue-D9SyQW53.js";import"./PhMagnifyingGlass.vue-CKu85Jsu.js";import"./PhWebhooksLogo.vue-CaqvpPuk.js";import"./LoadingOutlined-CrTvjdoo.js";import"./PhSignOut.vue-DOE1tdrV.js";import"./index-DHgoI0C3.js";import"./runnerData-DQQoihab.js";import"./url-BSbu8oDe.js";import"./colorHelpers-CwNCbXrN.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="c19be010-7560-4f3f-93c6-48436747e776",o._sentryDebugIdIdentifier="sentry-dbid-c19be010-7560-4f3f-93c6-48436747e776")}catch{}})();const V={class:"main-container"},B={class:"content"},D=_({__name:"Main",setup(o){const e=I(),n=y(),a=N(),u=n.path,r=b(null),l=async({path:i,id:c})=>{r.value=c,await e.push({path:`/${i}`}),r.value=null},d=()=>{e.push({name:"playerLogin"})},m=()=>{e.push({name:"playerLogin"})},f=k(()=>!!n.meta.hideLogin);return(i,c)=>{const g=C("RouterView");return s(),w("div",V,[t(a).state.workspace&&t(a).state.currentPageType!=="page"?(s(),p(h,{key:0,"current-path":t(u),"hide-login":f.value,"runner-data":t(a).state.workspace,loading:r.value,"show-sidebar":t(a).state.currentPageType==="form",onNavigate:l,onLoginClick:m,onLogoutClick:d},null,8,["current-path","hide-login","runner-data","loading","show-sidebar"])):v("",!0),L("section",B,[(s(),p(g,{key:t(n).fullPath}))])])}}}),G=P(D,[["__scopeId","data-v-4b9b2f4b"]]);export{G as default};
//# sourceMappingURL=Main--l1w5OAc.js.map
