import{P as h}from"./PlayerNavbar-BcuQYvPw.js";import{e as _,W as b,r as y,b as k,f as w,q as d,j as v,k as L,s as t,$ as C,N as I,g as s,ar as N}from"./jwt-decode.esm-CX61wVx3.js";import{u as P}from"./workspaceStore-QlTT1mu8.js";import"./userStore-C3Z0vN5p.js";import"./metadata-Dox04t5g.js";import"./PhWebhooksLogo.vue-CkLqDVcc.js";import"./PhHouse.vue-CqaxhGyx.js";import"./PhMagnifyingGlass.vue-C4JZlKTc.js";import"./LoadingOutlined-CVkBHrpy.js";import"./PhSignOut.vue-BJ-022M3.js";import"./index-DhpJ3FpU.js";import"./runnerData-B4AKypWD.js";import"./url-D1jI6Lt8.js";import"./colorHelpers-Dde0Xcnl.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]="1edd83a6-62d2-4133-b4bf-4ffe9cf81aed",o._sentryDebugIdIdentifier="sentry-dbid-1edd83a6-62d2-4133-b4bf-4ffe9cf81aed")}catch{}})();const B={class:"main-container"},D={class:"content"},R=_({__name:"Main",setup(o){const e=I(),a=b(),n=P(),u=a.path,r=y(null),p=async({path:i,id:c})=>{r.value=c,await e.push({path:`/${i}`}),r.value=null},l=()=>{e.push({name:"playerLogin"})},f=()=>{e.push({name:"playerLogin"})},m=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(),d(h,{key:0,"current-path":t(u),"hide-login":m.value,"runner-data":t(n).state.workspace,loading:r.value,"show-sidebar":t(n).state.currentPageType==="form",onNavigate:p,onLoginClick:f,onLogoutClick:l},null,8,["current-path","hide-login","runner-data","loading","show-sidebar"])):v("",!0),L("section",D,[(s(),d(g,{key:t(a).fullPath}))])])}}}),H=N(R,[["__scopeId","data-v-4b9b2f4b"]]);export{H as default};
//# sourceMappingURL=Main-D6lmAl57.js.map
