import{P as h}from"./PlayerNavbar-CT81OHNb.js";import{e as _,U as b,r as y,b as k,f as w,l as u,j as v,k as L,n as t,Y as C,J as I,g as s,ar as P}from"./jwt-decode.esm-BPi7UGps.js";import{u as N}from"./workspaceStore-C0F9gl0n.js";import"./userStore-DX_yqXyz.js";import"./metadata-BChRtKe-.js";import"./PhCursorClick.vue-DJnlpzw_.js";import"./PhHouse.vue-Hr4UgoFg.js";import"./PhMagnifyingGlass.vue-C5-WYoZW.js";import"./PhWebhooksLogo.vue-iVW9tShz.js";import"./LoadingOutlined-DXQ6kgSY.js";import"./PhSignOut.vue-BFy8d8e0.js";import"./index-CFDEbZ_7.js";import"./runnerData-CVdM876v.js";import"./url-pqXfY2Q9.js";import"./colorHelpers-2--HXixt.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]="39441657-7bbf-4a36-8281-7257ce9de00b",o._sentryDebugIdIdentifier="sentry-dbid-39441657-7bbf-4a36-8281-7257ce9de00b")}catch{}})();const B={class:"main-container"},D={class:"content"},R=_({__name:"Main",setup(o){const e=I(),a=b(),n=N(),p=a.path,r=y(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(()=>!!a.meta.hideLogin);return(i,c)=>{const g=C("RouterView");return s(),w("div",B,[t(n).state.workspace&&t(n).state.currentPageType!=="page"?(s(),u(h,{key:0,"current-path":t(p),"hide-login":f.value,"runner-data":t(n).state.workspace,loading:r.value,"show-sidebar":t(n).state.currentPageType==="form",onNavigate:l,onLoginClick:m,onLogoutClick:d},null,8,["current-path","hide-login","runner-data","loading","show-sidebar"])):v("",!0),L("section",D,[(s(),u(g,{key:t(a).fullPath}))])])}}}),F=P(R,[["__scopeId","data-v-4b9b2f4b"]]);export{F as default};
//# sourceMappingURL=Main-Bsk3ojga.js.map
