import{P as h}from"./PlayerNavbar-BSV0ksBM.js";import{e as _,T as y,r as b,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-B6XDbfGf.js";import{u as N}from"./workspaceStore-9Q06oGWD.js";import"./userStore-CL9is6l7.js";import"./metadata-J_0zYcch.js";import"./PhCursorClick.vue-D7IVZ5IP.js";import"./PhHouse.vue-CnfPW_Lg.js";import"./PhMagnifyingGlass.vue-DLaxbNv7.js";import"./PhWebhooksLogo.vue-roFzFft0.js";import"./LoadingOutlined-ykaS4PCd.js";import"./PhSignOut.vue-DPDp2M04.js";import"./index-BLM_z_pS.js";import"./runnerData-vL0mOcKb.js";import"./url-cT_5jFM4.js";import"./colorHelpers-BYxQEHcT.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]="0c0c0f8e-bdfe-440d-8930-c81cec4023a5",o._sentryDebugIdIdentifier="sentry-dbid-0c0c0f8e-bdfe-440d-8930-c81cec4023a5")}catch{}})();const B={class:"main-container"},D={class:"content"},R=_({__name:"Main",setup(o){const e=I(),a=y(),n=N(),p=a.path,r=b(null),d=async({path:c,id:i})=>{r.value=i,await e.push({path:`/${c}`}),r.value=null},l=()=>{e.push({name:"playerLogin"})},m=()=>{e.push({name:"playerLogin"})},f=k(()=>!!a.meta.hideLogin);return(c,i)=>{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:d,onLoginClick:m,onLogoutClick:l},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-Oks3GnzI.js.map
