import{P as h}from"./PlayerNavbar-B_gyNVlu.js";import{e as _,U as b,r as y,b as k,f as w,n as p,j as v,k as L,p as t,Y as C,H as I,g as s,aq as P}from"./jwt-decode.esm-cMnpfgdw.js";import{u as N}from"./workspaceStore-B9WQPxPo.js";import"./userStore-DbIwjNKy.js";import"./metadata-BIa60fQy.js";import"./PhCursorClick.vue-1NPnW691.js";import"./PhHouse.vue-_iDofQZr.js";import"./PhMagnifyingGlass.vue-DNS7_t1H.js";import"./PhWebhooksLogo.vue-B0HpNhEk.js";import"./LoadingOutlined-BD61iDZs.js";import"./PhSignOut.vue-CweJ1YLZ.js";import"./index-Dm-m55ls.js";import"./runnerData-B02TUtQ4.js";import"./url-vqNrw1OC.js";import"./colorHelpers-CPrTu2hh.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]="4180d125-b92d-42c4-8b93-a8ac6d3ca4e3",o._sentryDebugIdIdentifier="sentry-dbid-4180d125-b92d-42c4-8b93-a8ac6d3ca4e3")}catch{}})();const B={class:"main-container"},D={class:"content"},R=_({__name:"Main",setup(o){const e=I(),a=b(),n=N(),u=a.path,r=y(null),d=async({path:i,id:c})=>{r.value=c,await e.push({path:`/${i}`}),r.value=null},l=()=>{e.push({name:"playerLogin"})},m=()=>{e.push({name:"playerLogin"})},g=k(()=>!!a.meta.hideLogin);return(i,c)=>{const f=C("RouterView");return s(),w("div",B,[t(n).state.workspace&&t(n).state.currentPageType!=="page"?(s(),p(h,{key:0,"current-path":t(u),"hide-login":g.value,"runner-data":t(n).state.workspace,loading:r.value,"show-sidebar":t(n).state.currentPageType==="form",onNavigate:d,onLoginClick:m,onLogoutClick:l},null,8,["current-path","hide-login","runner-data","loading","show-sidebar"])):v("",!0),L("section",D,[(s(),p(f,{key:t(a).fullPath}))])])}}}),F=P(R,[["__scopeId","data-v-4b9b2f4b"]]);export{F as default};
//# sourceMappingURL=Main-CHsD6y9C.js.map
