import{u as h,v as S}from"./icons.f637ef04.js";import{d as y,H as _,b as i,ev as t,e as d,a$ as f,eC as k,ez as m,eD as v,v as g,G as R,u as b,ex as o,f as I,I as N,c as C,eE as $,eF as w}from"./outputWidgets.af28e799.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="7e4c31f1-81c5-46e5-815f-3e7ec394310c",s._sentryDebugIdIdentifier="sentry-dbid-7e4c31f1-81c5-46e5-815f-3e7ec394310c")}catch{}})();const B={class:"sidebar-content"},E={class:"section"},D=["onClick"],P={class:"item-title"},U=y({__name:"Sidebar",props:{currentRuntime:{},displaySidebar:{type:Boolean},forceResponsivity:{}},emits:["selectRuntime","closeSidebar"],setup(s,{emit:n}){const a=s,u=e=>{p(e.id)||n("selectRuntime",e)},l=_(()=>a.currentRuntime.sidebar.filter(e=>e.visible)),p=e=>"id"in a.currentRuntime?a.currentRuntime.id===e:!1;return(e,r)=>(i(),t("div",{class:m(["sidebar",e.forceResponsivity,{open:e.displaySidebar}])},[d("div",B,[d("div",E,[(i(!0),t(f,null,k(l.value,c=>(i(),t("div",{key:c.id,class:m(["item",{active:p(c.id)}]),onClick:K=>u(c)},[d("div",P,v(c.name),1)],10,D))),128))])])],2))}});const V=g(U,[["__scopeId","data-v-ed02befc"]]),z=s=>($("data-v-92330d74"),s=s(),w(),s),F={class:"left-side"},G=["d"],H={key:1,class:"brand"},L=["src"],j={key:1,class:"brand-name"},q=z(()=>d("div",null,null,-1)),A={key:0,class:"signed-email"},J=y({__name:"PlayerNavbar",props:{runtime:{},userEmail:{},forceResponsivity:{},hideSidebar:{type:Boolean}},emits:["logout","navigate"],setup(s,{emit:n}){const a=s,u=R({displaySidebar:!1}),l=_(()=>{const e=a.runtime.sidebar;return!e||e.length==0||a.hideSidebar?!1:e.some(r=>r.visible)}),p=e=>n("navigate",e);return(e,r)=>(i(),t(f,null,[l.value||e.runtime.logoUrl||e.runtime.brandName||e.userEmail?(i(),t("div",{key:0,class:m(["navbar",l.value&&"background"])},[d("div",F,[l.value?(i(),t("svg",{key:0,class:m(["sidebar-menu-icon",e.forceResponsivity]),viewBox:"0 0 24 24",fill:"var(--color-main)",onClick:r[0]||(r[0]=c=>u.displaySidebar=!u.displaySidebar)},[d("path",{d:b(h)},null,8,G)],2)):o("",!0),e.runtime.logoUrl||e.runtime.brandName?(i(),t("div",H,[e.runtime.logoUrl?(i(),t("img",{key:0,src:e.runtime.logoUrl,class:"logo-image"},null,8,L)):o("",!0),e.runtime.brandName?(i(),t("p",j,v(e.runtime.brandName),1)):o("",!0)])):o("",!0)]),q,e.userEmail?(i(),t("div",A,[d("span",null,v(e.userEmail),1),I(N,{width:"20",height:"20",class:"logout",path:b(S),fill:"var(--color-main)",onClick:r[1]||(r[1]=c=>n("logout"))},null,8,["path"])])):o("",!0)],2)):o("",!0),l.value?(i(),C(V,{key:1,"current-runtime":e.runtime,"display-sidebar":u.displaySidebar,"force-responsivity":e.forceResponsivity,onSelectRuntime:p},null,8,["current-runtime","display-sidebar","force-responsivity"])):o("",!0)],64))}});const Q=g(J,[["__scopeId","data-v-92330d74"]]);export{Q as P};
//# sourceMappingURL=PlayerNavbar.79167a94.js.map
