1import{_ as Z}from"./DYo8c19V.js";import{bw as ee,bx as te,by as ae,bg as g,bh as R,bj as o,bo as r,bz as m,cF as b,cG as v,bi as e,bq as S,bB as j,bu as y,bl as n,bt as h,bk as se,bA as oe,bm as P,bC as ne,bn as le,bv as k,bD as A,b6 as ie,bf as re,cy as ce,da as C,b7 as ue,bO as de,bI as me,b9 as pe,b8 as fe,ca as q,bb as z,bp as ge,bM as E,ba as N,eW as be,e_ as ve,bS as he}from"./Bl3OJams.js";import{_ as _e}from"./CsuOxe_P.js";import{u as ye,a as M,_ as Se,H as O,P as ke,b as xe,c as $e}from"./BGztrFqp.js";import{c as we}from"./rg4swsKP.js";import{_ as Te}from"./D91UmsT1.js";import{I as Ie}from"./Bw52u5Ex.js";import{W as Pe}from"./C-uYESQS.js";import{c as Ue,a as De}from"./DMX38L2a.js";import"./D_C0Kb8A.js";import"./DNhO6QpW.js";import"./D0ywb2kW.js";import"./C9Ou6e3x.js";import"./Z7JuNJNv.js";import"./BC_GU2bR.js";import"./BPe40eMx.js";import"./CzsiSt4U.js";import"./Db92ovy1.js";import"./DkwzbJPH.js";import"./DDpQ9iPf.js";import"./CKqyDCss.js";import"./NXwdpfai.js";import"./VgnNI3nJ.js";import"./B4FxW8wU.js";import"./C-DV0Fpb.js";import"./DMLIuEAQ.js";import"./CVBuYAS3.js";import"./C8tdCacw.js";import"./BJd4zC8G.js";import"./Cqan76au.js";import"./CwUiy5mE.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new a.Error().stack;p&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[p]="b3b372e8-7379-433c-a521-6cf1308eaaab",a._sentryDebugIdIdentifier="sentry-dbid-b3b372e8-7379-433c-a521-6cf1308eaaab")}catch{}})();const Re={slots:{root:"h-(--ui-header-height) shrink-0 flex items-center justify-between border-b border-default px-4 sm:px-6 gap-1.5",left:"flex items-center gap-1.5 min-w-0",icon:"shrink-0 size-5 self-center me-1.5",title:"flex items-center gap-1.5 font-semibold text-highlighted truncate",center:"hidden lg:flex",right:"flex items-center shrink-0 gap-1.5",toggle:""},variants:{toggleSide:{left:{toggle:""},right:{toggle:""}}}},je=Object.assign({inheritAttrs:!1},{__name:"UDashboardNavbar",props:{as:{type:null,required:!1},icon:{type:null,required:!1},title:{type:String,required:!1},toggle:{type:[Boolean,Object],required:!1,default:!0},toggleSide:{type:String,required:!1,default:"left"},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(a){const p=a,x=ee(),$=te(),d=ae("dashboardNavbar",p),c=ye({}),[T,l]=we(),i=k(()=>A({extend:A(Re),...$.ui?.dashboardNavbar||{}})());return(t,_)=>(g(),R(le,null,[o(e(T),null,{default:r(()=>[m(t.$slots,"toggle",b(v({...e(c),ui:i.value})),()=>[a.toggle?(g(),S(M,j({key:0},typeof a.toggle=="object"?a.toggle:{},{side:a.toggleSide,"data-slot":"toggle",class:i.value.toggle({class:e(d)?.toggle,toggleSide:a.toggleSide})}),null,16,["side","class"])):y("",!0)])]),_:3}),o(e(ne),j({as:a.as},t.$attrs,{"data-slot":"root",class:i.value.root({class:[e(d)?.root,p.class]})}),{default:r(()=>[n("div",{"data-slot":"left",class:h(i.value.left({class:e(d)?.left}))},[a.toggleSide==="left"?(g(),S(e(l),{key:0})):y("",!0),m(t.$slots,"left",b(v(e(c))),()=>[m(t.$slots,"leading",b(v({...e(c),ui:i.value})),()=>[a.icon?(g(),S(se,{key:0,name:a.icon,"data-slot":"icon",class:h(i.value.icon({class:e(d)?.icon}))},null,8,["name","class"])):y("",!0)]),n("h1",{"data-slot":"title",class:h(i.value.title({class:e(d)?.title}))},[m(t.$slots,"title",{},()=>[oe(P(a.title),1)])],2),m(t.$slots,"trailing",b(v({...e(c),ui:i.value})))])],2),x.default?(g(),R("div",{key:0,"data-slot":"center",class:h(i.value.center({class:e(d)?.center}))}
1,[m(t.$slots,"default",b(v(e(c))))],2)):y("",!0),n("div",{"data-slot":"right",class:h(i.value.right({class:e(d)?.right}))},[m(t.$slots,"right",b(v(e(c)))),a.toggleSide==="right"?(g(),S(e(l),{key:0})):y("",!0)],2)]),_:3},16,["as","class"])],64))}}),Ae={href:"#main-content",class:"sr-only focus:not-sr-only focus:absolute focus:z-100 focus:p-4 focus:bg-white focus:text-primary-700 focus:font-semibold"},Ce={class:"flex flex-col items-center w-full mb-6"},qe={class:"text-sm text-ui-text-toned"},ze={class:"flex min-h-0 flex-1 flex-col"},Ee={class:"relative z-10 h-16 flex shrink-0 justify-between items-center"},Ne={class:"lg:hidden px-4 pt-5 flex justify-between w-full md:px-8"},Oe={class:"w-full h-20 bg-zinc-100 lg:flex lg:justify-end hidden items-center pr-6"},Me={id:"main-content",class:"min-h-0 flex-1 overflow-y-auto lg:pt-6"},ht=ie({__name:"default",setup(a){re({script:[{src:"https://js-eu1.hsforms.net/forms/embed/147432241.js",defer:!0}]});const{user:p,logout:x}=ce(),{currentUser:$,currentUserNames:d,currentUserPseudo:c}=C(),{isAdmin:T}=C(),l=ue(),i=de();me(async()=>{const u=l.query.discourse_pending;if(u)try{const{apiFetch:s}=pe(),{redirectUrl:I}=await s(`/discourse/sso/resume?token=${encodeURIComponent(u)}`);globalThis.location.href=I}catch(s){console.error("[Discourse SSO resume] Ãchec :",s)}});const{t}=fe(),_=N(!1),B=k(()=>Ue($.data.value)),W=k(()=>De()),F=k(()=>[[{label:t("nav.overview"),icon:"i-lucide-home",to:"/espace-enseignant",active:l.path==="/espace-enseignant"},...B.value?[{label:t("nav.classes"),icon:"i-lucide-users",to:"/espace-enseignant/classes",active:l.path.startsWith("/espace-enseignant/classes")},{label:t("nav.programmation"),icon:"i-lucide-book-open",to:"/espace-enseignant/programmation",active:l.path.startsWith("/espace-enseignant/programmation")}]:[],...W.value?[{label:t("nav.jadapte"),icon:"i-lucide-test-tube-diagonal",to:be,active:ve(l.path)}]:[],{label:t("nav.inspire"),icon:"i-lucide-lightbulb",to:"/espace-enseignant/je-m-inspire",active:l.path.startsWith("/espace-enseignant/je-m-inspire")},{label:t("nav.workshops"),icon:"i-lucide-calendar",to:"/espace-enseignant/ateliers",active:l.path.startsWith("/espace-enseignant/ateliers")},{label:t("nav.favorites"),icon:"i-lucide-bookmark",to:"/espace-enseignant/favoris",active:l.path.startsWith("/espace-enseignant/favoris")},...T.value?[{label:t("nav.backOffice"),icon:"i-lucide-shield",to:"/admin"}]:[],{label:t("nav.myProfile"),avatar:{src:$.data.value?.avatar??"",alt:c.value&&c.value.length>0?c.value:d.value,loading:"lazy",ui:{fallback:"font-medium leading-none text-ui-text-toned truncate"}},class:"lg:hidden",type:"link",to:"/espace-enseignant/mon-profil"},{label:t("nav.logout"),icon:"i-lucide-door-open",class:"!text-error-700 lg:hidden",ui:{linkLeadingIcon:"!text-error-700"},onSelect:async()=>{x(),await i.push("/")}}]]),f=N(!1),L=k(()=>({class:"lg:hidden","aria-label":t("nav.closeMenu"),"aria-expanded":f.value?"true":"false","aria-controls":"mobile-navigation"})),U=q(Ie,()=>!1),D=q(Pe,()=>!1);return z(()=>l.fullPath,()=>{if(U.value){U.value=!1;return}if(D.value){D.value=!1;return}document.getElementById("main-content")?.scrollTo({top:0})}),z(f,async u=>{u&&(await he(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.querySelector(`[aria-label="${t("nav.closeMenu")}"]`)?.focus({focusVisible:!0})})}))}),(u,s)=>{const I=Z,H=ge,K=_e,V=xe,J=je,G=M,Y=$e,Q=Te,X=Se;return g(),S(X,{unit:"rem"},{default:r(()=>[n("a",Ae,P(u.$t("nav.skipToContent")),1),o(V,{toggle:e(L),"toggle-side":"right",open:e(f),"onUpdate:open":s[1]||(s[1]=w=>E(f)?f.value=w:null),"max-size":60},{header:r(()=>[o(O)]),default:r(()=>[o(I,{items:e(F),orientation:"vertical","aria-label":"Navigation principale"},null,8,["items"])]),footer:r(()=>[n("div",Ce,[o(K,{text:u.$t("nav.callMentor")},{default:r(()=>[o(H,{label:u.$t("nav.callMentor"),icon:"i-lucide-users-round",variant:"outline",color:"neutral",size:"lg",block:"",class:"mt-2 border-zinc-300",onClick:s[0]||(s[0]=w=>_.value=!0)},null,8,["label"])]),_:1},8,["text"])])]),_:1},8,["toggle","open"]),o(Y,null,{header:r(()=>[n("header",null,[o(J,null,{leading:r(()=>[n("span",qe,P(e(p)?.email),1)]),_:1})])]),default:r(()=>[n("div",ze,[n("header",Ee,[n("div",Ne,[o(O),o(G,{class:h(["text-zinc-700",{hidden:e(f)}]),"aria-label":u.$t("nav.openMenu"),"aria-expanded":e(f)?"true":"false","aria-controls":"mobile-navigation"},null,8,["class","aria-label","aria-expanded"])]),n("div",Oe,[o(ke)])]),n("main",Me,[m(u.$slots,"default")])])]),_:3}),o(Q,{open:e(_),"onUpdate:open":s[2]||(s[2]=w=>E(_)?_.value=w:null),class:"lg:min-w-1/2"},{body:r(()=>[...s[3]||(s[3]=[n("div",{class:"hs-form-frame","data-region":"eu1","data-form-id":"c6315767-745c-4f47-8545-97db7972cd8a","data-
1portal-id":"147432241"},null,-1)])]),_:1},8,["open"])]),_:3})}}});export{ht as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.