import{m as k,l as S}from"./icons.4255d62c.js";import{d as h,K as v,b as a,c as s,x as o,F as p,L as R,z as i,G as m,N as f,q as _,v as I,D as l,e as N,I as w,t as x,O as C,Q as D}from"./registerWidgets.9f96e537.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="88aa2a80-efba-46a3-8d24-9580692a4bbf",e._sentryDebugIdIdentifier="sentry-dbid-88aa2a80-efba-46a3-8d24-9580692a4bbf")}catch{}})();const $={class:"sidebar-content"},B={class:"section"},E=["onClick"],U=h({__name:"Sidebar",props:{currentRuntime:null,displaySidebar:{type:Boolean},forceResponsivity:null},emits:["selectRuntime","closeSidebar"],setup(e,{emit:r}){const d=e,u=v(()=>d.currentRuntime.runtimeType==="dash"),c=t=>{n(t.id)||r("selectRuntime",t)},y=v(()=>d.currentRuntime.sidebar.filter(t=>t.visible)),n=t=>t===d.currentRuntime.id;return(t,g)=>(a(),s("div",{class:m(["sidebar",e.forceResponsivity,{open:e.displaySidebar,dash:i(u)}])},[o("div",$,[o("div",B,[(a(!0),s(p,null,R(i(y),b=>(a(),s("div",{key:b.id,class:m(["item",{active:n(b.id)}]),onClick:Q=>c(b)},[o("div",{class:m(["item-title",{open:e.displaySidebar}])},f(b.name),3)],10,E))),128))])])],2))}});const P=_(U,[["__scopeId","data-v-09ca60c8"]]),T=e=>(C("data-v-533045c7"),e=e(),D(),e),V={class:"left-side"},z=["d"],F={key:1,class:"brand"},L=["src"],q={key:1,class:"brand-name"},G=T(()=>o("div",null,null,-1)),K={key:0,class:"signed-email"},O=h({__name:"PlayerNavbar",props:{runtime:null,brandName:null,logoUrl:null,userEmail:null,forceResponsivity:null},emits:["logout","navigate"],setup(e,{emit:r}){const d=e,u=I({displaySidebar:!1}),c=v(()=>{const n=d.runtime.sidebar;return!n||n.length==0?!1:n.some(t=>t.visible)}),y=n=>r("navigate",n);return(n,t)=>(a(),s(p,null,[i(c)||e.runtime.logoUrl||e.runtime.brandName||e.userEmail?(a(),s("div",{key:0,class:m(["navbar",(e.runtime.runtimeType=="dash"||i(c))&&"background"])},[o("div",V,[i(c)?(a(),s("svg",{key:0,class:m(["sidebar-menu-icon",e.forceResponsivity,{dash:e.runtime.runtimeType=="dash"}]),viewBox:"0 0 24 24",fill:"var(--color-main)",onClick:t[0]||(t[0]=g=>u.displaySidebar=!u.displaySidebar)},[o("path",{d:i(k)},null,8,z)],2)):l("",!0),e.runtime.logoUrl||e.runtime.brandName?(a(),s("div",F,[e.runtime.logoUrl?(a(),s("img",{key:0,src:e.logoUrl,class:"logo-image"},null,8,L)):l("",!0),e.runtime.brandName?(a(),s("p",q,f(e.runtime.brandName),1)):l("",!0)])):l("",!0)]),G,e.userEmail?(a(),s("div",K,[o("span",null,f(e.userEmail),1),N(w,{width:"20",height:"20",class:"logout",path:i(S),fill:"var(--color-main)",onClick:t[1]||(t[1]=g=>r("logout"))},null,8,["path"])])):l("",!0)],2)):l("",!0),i(c)?(a(),x(P,{key:1,"current-runtime":e.runtime,"display-sidebar":u.displaySidebar,"force-responsivity":e.forceResponsivity,onSelectRuntime:y},null,8,["current-runtime","display-sidebar","force-responsivity"])):l("",!0)],64))}});const H=_(O,[["__scopeId","data-v-533045c7"]]);export{H as P};
//# sourceMappingURL=PlayerNavbar.6a5e884d.js.map
