import{P as h}from"./PlayerNavbar-CVDUB3QO.js";import{e as _,T as b,r as y,b as k,f as w,l as u,j as v,k as L,n as t,X as C,H as I,g as s,aq as P}from"./jwt-decode.esm-Bw7_fA5B.js";import{u as N}from"./workspaceStore-DBRM2rRw.js";import"./userStore-DLKN1Ius.js";import"./metadata-CafHoAN1.js";import"./PhCursorClick.vue-Cof4LmM6.js";import"./PhHouse.vue-Bnu74Tur.js";import"./PhMagnifyingGlass.vue-BiBwk2K2.js";import"./PhWebhooksLogo.vue-C1merPZ6.js";import"./LoadingOutlined-CCC-cDSZ.js";import"./PhSignOut.vue-CvhLdjBp.js";import"./index-DQEy__OO.js";import"./runnerData-DrbfUeer.js";import"./url-DO-fsxUp.js";import"./colorHelpers-BQVfELzg.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]="678a104c-2781-42f6-a1c8-836b2b32281b",o._sentryDebugIdIdentifier="sentry-dbid-678a104c-2781-42f6-a1c8-836b2b32281b")}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}))])])}}}),G=P(R,[["__scopeId","data-v-4b9b2f4b"]]);export{G as default};
//# sourceMappingURL=Main-9LlsHG7r.js.map
