1import{aG as ne,aI as be,b2 as Pe,aJ as ue,aH as xe,aO as Re,aK as fe,aL as Le,aF as qe,aE as Ge}from"#entry";import{h as Ae,x as Ie,e as Ye,g as Je,l as Qe,a as Xe}from"./CBQMRp4-.js";import{u as Ve}from"./BbffRtfu.js";import{r as A,y as N,j as re,d as y,e as r,z as t,q as o,f as e,i as T,t as a,v as q,ac as s,s as V,h as pe,F as Y,p as U,X as ve,o as me,w as oe,n as ge,C as ee,ae as Be,x as Te,c as Ne,J as Ke,b as Ze,I as He,A as $e,l as Ee,L as Oe,G as ze,B as Ce,T as et}from"./7e6OSnGa.js";import{_ as tt}from"./CiAtBjVT.js";import{d as Me,u as st}from"./C9lMrH3-.js";import{r as at,e as ot,m as nt}from"./DheAvtOM.js";import{u as Ue}from"./B6lx4WUi.js";import{u as De,a as rt,b as lt}from"./ER4C7Lb6.js";import{u as it}from"./JB0xCIyF.js";import{u as ut}from"./BUewlgTu.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};g.SENTRY_RELEASE={id:"5a5f4f282d5b76b153474ed3a90c2a4effbf411e"}}catch{}})();try{(function(){var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new g.Error().stack;u&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[u]="0b015258-b699-492a-88d0-6b9092f65f89",g._sentryDebugIdIdentifier="sentry-dbid-0b015258-b699-492a-88d0-6b9092f65f89")})()}catch{}const ct={class:"flex items-center gap-2"},dt={class:"w-[22px] h-[22px] bg-white/20 rounded-full items-center justify-center flex"},pt={class:"bg-white overflow-hidden"},ft={class:"px-4 py-4 bg-gradient-to-r from-slate-50 to-slate-100 border-b border-slate-200"},mt={class:"flex items-center gap-4"},ht=["src"],vt={key:1,class:"w-14 h-14 bg-sky-600 rounded-md shadow flex-shrink-0 flex items-center justify-center"},gt={class:"flex-1 min-w-0 space-y-1"},bt={class:"font-semibold text-slate-900 text-sm truncate"},xt={key:0,class:"text-slate-600 text-xs truncate"},yt={key:1,class:"text-slate-500 text-xs truncate"},_t={class:"px-4 py-4 space-y-3 border-b border-slate-200"},wt={class:"grid grid-cols-1 gap-2 text-xs"},kt={class:"flex justify-between items-center"},$t={class:"text-slate-600 font-medium"},Et={class:"text-slate-900 truncate ml-2"},Ct={key:0,class:"flex justify-between items-center"},Mt={class:"text-slate-600 font-medium"},Tt={class:"text-slate-900 capitalize"},Lt={key:0,class:"px-4 py-3 bg-amber-50 border-b border-amber-200"},At={class:"px-1 py-4"},Dt={class:"space-y-2"},St={__name:"Account",props:{user:{type:Object,default:()=>({})}},setup(g){const u=g,{getPictureUrl:S}=Ve(),n=ne(),b=A(),_=A(!1),w=m=>{_.value=!_.value,b.value&&b.value.toggle(m)},{isIndividuel:d,isCollectif:$,isFirme:f,barData:E,firmData:D,userData:l}=be(),{hasUnpaidContribution:L}=Pe(),C=N(()=>d.value&&l.value?.directory_address?.city?.name&&l.value?.directory_address?.country?.name?`${l.value.directory_address.city.name}, ${l.value.directory_address.country.name}`:"");N(()=>u.user?.createdAt?new Date(u.user.createdAt).getFullYear():"");const H=N(()=>d.value&&l.value?`${l.value.lastname||""} ${l.value.firstname||""}`.trim():$.value&&E.value?E.value.name||"":f.value&&D.value?D.value.name||"":u.user?.email||""),k=N(()=>d.value&&l.value?.user_code||""),O=N(()=>d.value?l.value?.photo:f.value&&D.value?.logo?D.value.logo:null);return(m,x)=>{const p=re("font-awesome"),v=Ae,c=ue,z=Ie;return r(),y(Y,null,[t(v,{type:"button",variant:"link","aria-haspopup":"true","aria-controls":"account_menu","pt:root":"!text-xs !text-white hover:!text-sky-100 !flex !items-center !gap-2 !h-8 !py-0",onClick:w},{default:o(()=>[e("div",ct,[e("div",dt,[t(p,{class:"text-xs",icon:["fas","user"]})]),T(" "+a(m.$t("pages.auth.menu.myAccount"))+" ",1),t(p,{class:q(["text-xs fa-fw transition-transform duration-200",{"rotate-180":s(_)}]),icon:["fas","chevron-down"]},null,8,["class"])])]),_:1}),t(z,{ref_key:"menu",ref:b,"pt:root":"!z-[1200]","pt:content":"!p-0 !min-w-[320px] !bg-white !shadow-xl !border !border-slate-100"},{default:o(()=>[e("div",pt,[e("div",ft,[e("div",mt,[s(O)?(r(),y("img",{key:0,class:"w-14 h-14 rounded-md shadow object-cover bg-sky-600 flex-shrink-0",src:s(S)(s(O))},null,8,ht)):(r(),y("div",vt,[t(p,{class:"text-white text-lg",icon:["fas",s(d)?"user":"building"]},null,8,["icon"])])),e("div",gt,[e("h3",bt,a(s(H)),1),s(k)?(r(),y("p",xt,a(s(k)),1)):V("",!0),s(C)?(r(),y("p",yt,[t(p,{class:"fa-fw mr-1",icon:["fas","map-marker-alt"]}),T(" "+a(s(C)),1)])):V("",!0)])])]),e("div",_t,[e("div",wt,[e("div",kt,[e("span",$t,a(m.$t("pages.auth.menu.email"))+a(m.$t("global.punctuation.colon")),1
1),e("span",Et,a(g.user.email),1)]),g.user.language?(r(),y("div",Ct,[e("span",Mt,a(m.$t("pages.auth.menu.language"))+a(m.$t("global.punctuation.colon")),1),e("span",Tt,a(m.$t(`global.languages.${g.user.language}`)),1)])):V("",!0)])]),s(L)?(r(),y("div",Lt,[t(c,{to:s(n)({name:"auth-private-profile"}),class:"flex items-start gap-2 text-xs text-amber-800 hover:text-amber-900 transition-colors"},{default:o(()=>[t(p,{icon:["fas","exclamation-triangle"],class:"text-amber-600 mt-0.5 flex-shrink-0"}),e("span",null,a(m.$t("pages.auth.contribution.warningTitle")),1)]),_:1},8,["to"])])):V("",!0),e("div",At,[e("div",Dt,[t(c,{to:s(n)({name:"auth-private"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","tachometer-alt"]}),T(" "+a(m.$t("pages.auth.private.dashboard.title")),1)]),_:1},8,["to"]),s(d)?(r(),y(Y,{key:0},[t(c,{to:s(n)({name:"auth-private-profile"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","user"]}),T(" "+a(m.$t("pages.auth.private.profile.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-my-documents"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","file-contract"]}),T(" "+a(m.$t("pages.auth.private.myDocuments.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-events"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","calendar"]}),T(" "+a(m.$t("pages.auth.private.events.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-commissions"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","users"]}),T(" "+a(m.$t("pages.auth.private.commissions.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-committees"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","user-friends"]}),T(" "+a(m.$t("pages.auth.private.committees.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-national-committees"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","globe"]}),T(" "+a(m.$t("pages.auth.private.nationalCommittees.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-mandates"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","scroll"]}),T(" "+a(m.$t("pages.auth.private.mandates.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-transactions"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","file-invoice"]}),T(" "+a(m.$t("pages.auth.private.transactions.title")),1)]),_:1},8,["to"])],64)):V("",!0),s($)?(r(),y(Y,{key:1},[t(c,{to:s(n)({name:"auth-private-bar-profile"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","building"]}),T(" "+a(m.$t("pages.auth.private.barProfile.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-bar-members"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","users"]}),T(" "+a(m.$t("pages.auth.private.barMembers.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-transactions"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","file-invoice"]}),T(" "+a(m.$t("pages.auth.private.transactions.title")),1)]),_:1},8,["to"])],64)):V("",!0),s(f)?(r(),y(Y,{key:2},[t(c,{to:s(n)({name:"auth-private-firm-profile"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","building"]}),T(" "+a(m.$t("pages.auth.private.firmProfile.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-firm-members"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","users"]}),T(" "+a(m.$t("pages.auth.private.firmMembers.title")),1)]),_:1},8,["to"]),t(c,{to:s(n)({name:"auth-private-transactions"}),class:"w-full flex gap-2 items-center px-3 py-2 text-sm text-slate-700 hover:bg-sky-50 hover:text-slate-900 hover:transform rounded-md transition-all duration-200 cursor-pointer"},{default:o(()=>[t(p,{class:"fa-fw text-slate-500",icon:["fas","file-invoice"]}),T(" "+a(m.$t("pages.auth.private.transactions.title")),1)]),_:1},8,["to"])],64)):V("",!0),x[0]||(x[0]=e("hr",{class:"my-3 border-slate-200"},null,-1)),pe(m.$slots,"menu")])])])]),_:3},512)],64)}}},jt={class:"flex items-center pl-2 h-8"},Ht={class:"w-[22px] h-[22px] bg-white/20 rounded-full items-center justify-center flex -mr-1"},Ot={class:"text-xl font-medium leading-6 text-slate-900"},zt={for:"code",class:"block text-sm font-medium text-slate-700 pb-2"},Pt={class:"mt-1"},Rt={for:"email",class:"block text-sm font-medium text-slate-700 pb-2"},It={class:"mt-1"},Vt={class:"flex items-center justify-between"},Bt={for:"password",class:"block text-sm font-medium text-slate-700"},Nt={class:"mt-1"},Ut={class:"relative"},Ft=["disabled"],Wt={class:"flex items-center gap-2"},qt={for:"remember"},Gt={class:"text-slate-500"},Yt={__name:"Login",setup(g,{expose:u}){const S=A(),n=ne(),b=xe();Me("required",at),Me("email",ot),Me("min",nt);const _={email:"email",code:"",remember:""},{defineField:w,handleSubmit:d,errors:$}=st({validationSchema:_}),[f]=w("email"),[E]=w("code"),[D]=w("password"),[l]=w("remember"),L=A(!1),C=A(!1),H=A(null),k=A(!1);function O(){L.value=!0}function m(){L.value=!1}function x(){m(),H.value&&H.value.openModal()}u({openModal:O,closeModal:m});const p=d(async v=>{k.value=!0;try{let c=v.email;if(v.code&&v.code.trim()&&(c=await b.getEmailByUserCode(v.code.trim())),!c||!c.trim()){b.error="Please provide either an email or a user code";return}await b.login({identifier:c,password:v.password}),!b.error&&b.user&&b.token&&m()}catch(c){console.error("Login failed:",c)}finally{k.value=!1}});return(v,c)=>{const z=re("font-awesome"),G=Ae,Z=Ye,J=Je,Q=Qe,ae=ue,K=Xe,ce=tt;return r(),y("div",null,[e("div",jt,[e("div",Ht,[t(z,{class:"text-xs",icon:["fas","user"]})]),t(G,{type:"button",variant:"link","aria-haspopup":"true","aria-controls":"language_menu","pt:root":"!text-xs !text-white hover:!text-sky-100 !h-8 !py-0",onClick:O},{default:o(()=>[T(a(v.$t("pages.auth.menu.connect")),1)]),_:1})]),t(K,{ref_key:"dialogRef",ref:S,visible:L.value,"onUpdate:visible":c[6]||(c[6]=F=>L.value=F),modal:"",draggable:!1,"dismissable-mask":!0,position:"top",class:"w-sm","pt:root":"overflow-hidden","pt:mask":"pt-24 backdrop-blur-xs","pt:header":"border-b border-slate-200","pt:footer":"bg-slate-100 !p-4 !justify-center"},{header:o(()=>[e("h3",Ot,a(v.$t("pages.auth.login.title")),1)]),closeicon:o(()=>[t(z,{class:"fa-fw",icon:["fas","xmark"]})]),footer:o(()=>[e("div",Gt,[T(a(v.$t("pages.auth.login.signup.title"))+" ",1),t(ae,{to:s(n)({name:"auth-signup"}),class:"text-link",onClick:m},{default:o(()=>[T(a(v.$t("pages.auth.login.signup.link")),1)]),_:1},8,["to"])])]),default:o(()=>
1[e("form",{class:"space-y-4 mt-4",onSubmit:c[5]||(c[5]=(...F)=>s(p)&&s(p)(...F))},[e("div",null,[e("label",zt,a(v.$t("pages.auth.login.form.user_code")),1),e("div",Pt,[t(Z,{id:"code",modelValue:s(E),"onUpdate:modelValue":c[0]||(c[0]=F=>ve(E)?E.value=F:null),invalid:!!s($).code,disabled:k.value,fluid:"",type:"text",autocomplete:"off",placeholder:v.$t("pages.auth.login.form.user_code_placeholder")},null,8,["modelValue","invalid","disabled","placeholder"]),t(J,{severity:"error",size:"small",variant:"simple"},{default:o(()=>[T(a(s($).code),1)]),_:1})])]),e("div",null,[e("label",Rt,a(v.$t("pages.auth.login.form.orEmail")),1),e("div",It,[t(Z,{id:"email",modelValue:s(f),"onUpdate:modelValue":c[1]||(c[1]=F=>ve(f)?f.value=F:null),invalid:!!s($).email,disabled:k.value,fluid:"",autofocus:"",type:"email",autocomplete:"email",placeholder:v.$t("pages.auth.login.form.email_placeholder")},null,8,["modelValue","invalid","disabled","placeholder"]),t(J,{severity:"error",size:"small",variant:"simple"},{default:o(()=>[T(a(s($).email),1)]),_:1})])]),e("div",null,[e("div",Vt,[e("label",Bt,a(v.$t("pages.auth.login.form.password")),1),t(G,{type:"button",variant:"text",size:"small",disabled:k.value,label:v.$t("pages.auth.login.form.forgot"),onClick:x},null,8,["disabled","label"])]),e("div",Nt,[e("div",Ut,[t(Z,{id:"password",modelValue:s(D),"onUpdate:modelValue":c[2]||(c[2]=F=>ve(D)?D.value=F:null),invalid:s($).password,disabled:k.value,fluid:"",type:C.value?"text":"password",autocomplete:"current-password"},null,8,["modelValue","invalid","disabled","type"]),e("button",{type:"button",disabled:k.value,class:"absolute right-2 top-1/2 -translate-y-1/2 text-slate-500 hover:text-slate-700 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed",onClick:c[3]||(c[3]=F=>C.value=!C.value)},[C.value===!1?(r(),U(z,{key:0,class:"fa-fw",icon:["fas","eye-slash"]})):V("",!0),C.value===!0?(r(),U(z,{key:1,class:"fa-fw",icon:["fas","eye"]})):V("",!0)],8,Ft)]),t(J,{severity:"error",size:"small",variant:"simple"},{default:o(()=>[T(a(s($).password),1)]),_:1})])]),e("div",Wt,[t(Q,{modelValue:s(l),"onUpdate:modelValue":c[4]||(c[4]=F=>ve(l)?l.value=F:null),"input-id":"remember",type:"checkbox",disabled:k.value,binary:""},null,8,["modelValue","disabled"]),e("label",qt,a(v.$t("pages.auth.login.form.remember")),1)]),s(b).error?(r(),U(J,{key:0,class:"mb-2",severity:"error",size:"small",variant:"error"},{default:o(()=>[T(a(v.$t("pages.auth.login.error")),1)]),_:1})):V("",!0),e("div",null,[t(G,{type:"submit",fluid:"",disabled:k.value},{default:o(()=>[k.value?(r(),U(z,{key:0,class:"fa-fw mr-2 fa-spin",icon:["fas","spinner-third"]})):V("",!0),T(" "+a(v.$t("pages.auth.login.form.submit")),1)]),_:1},8,["disabled"])])],32)]),_:1},8,["visible"]),t(ce,{ref_key:"forgotPasswordRef",ref:H},null,512)])}}},Jt={key:0},Qt={key:1},Xt={class:"flex items-center gap-2 px-2"},Kt={class:"w-[22px] h-[22px] bg-white/20 rounded-full items-center justify-center flex"},Zt={__name:"Auth",setup(g){const u=xe(),{userQuality:S}=be(),n=N(()=>u.user),{setLoginModalRef:b}=Ue(),_=ne(),w=Re(),d=A(null),$=async()=>{u.logout(),await w.push(_({name:"index"}))};return me(()=>{d.value&&b(d.value)}),oe(()=>u.user,async(f,E)=>{!f&&E&&(await ge(),d.value&&b(d.value))},{flush:"post"}),oe(d,f=>{f&&b(f)},{flush:"post"}),(f,E)=>{const D=re("font-awesome"),l=St,L=Yt,C=fe;return r(),U(C,null,{fallback:o(()=>[e("div",Xt,[e("div",Kt,[t(D,{class:"text-xs",icon:["fas","user"]})])])]),default:o(()=>[s(n)?(r(),y("div",Jt,[(r(),U(l,{key:`account-${s(S)}-${s(n).id}`,user:s(n)},{menu:o(()=>[e("button",{type:"button",class:"w-full cursor-pointer flex items-center gap-2 px-3 py-2 text-sm text-red-700 hover:bg-red-50 hover:text-red-700 rounded-md transition-colors duration-200 font-medium",onClick:E[0]||(E[0]=H=>$())},[t(D,{class:"fa-fw",icon:["fas","sign-out-alt"]}),T(" "+a(f.$t("pages.auth.menu.disconnect")),1)])]),_:1},8,["user"]))])):(r(),y("div",Qt,[t(L,{ref_key:"loginRef",ref:d},null,512)]))]),_:1})}}},es={class:"bg-sky-950 font-body h-8"},ts={class:"container flex justify-between items-center"},ss={class:"text-xs flex justify-end font-light text-white h-8"},as={class:"flex items-center h-8"},os={class:"border-l border-white/50 h-8 flex items-center"},ns={class:"flex h-8"},rs={class:"border-l border-white/50 h-8 flex items-center"},Ra={__name:"MenuTop",setup(g){const{menuTop:u}=De(),S=ne(),n=A(),b=A(!1),_=()=>{const d=n.value;return Array.isArray(d)?d[0]:d},w=d=>{b.value=!b.value,_()?.toggle(d)};return(d,$)=>{const f=ue,E=Ae,D=re("font-awesome"),l=Ie,L=Zt,C=rt;return r(),y("nav",es,[e("div",ts,[t(f,{class:"font-light text-xs text-white",to:s(S)({name:"index"})},{default:o(()=>[T(a(d.$t("menu.MenuTop.uia")),1)]),_:1},8,["to"]),e("ul",ss,[(r(!0),y(Y,null,ee(s(u),H=>(r(),y("li",{key:H.title,class:"flex items-center h-8"},[H.items.length===1?(r(),U(E,{key:0,"as-child":"","pt:root":"!h-8 !py-0"},{default:o(()=>[t(f,{class:"text-xs text-white hover:text-sky-100 flex px-3 h-8 items-center",to:s(S)({name:H.items[0].path,params:H.items[0].params||{}})},{default:o(()=>[T(a(H.title),1)]),_:2},1032,["to"])]),_:2},1024)):(r(),y(Y,{key:1},[t(E,{type:"button",variant:"link","aria-haspopup":"true","pt:root":"!text-xs !text-white hover:!text-sky-100 !flex !items-center !gap-1 !h-8 !py-0 !px-3",onClick:w},{default:o(()=>[T(a(H.title)+" ",1),t(D,{class:q(["text-[10px] fa-fw transition-transform duration-200",{"rotate-180":s(b)}]),icon:["fas","chevron-down"]},null,8,["class"])]),_:2},1024),t(l,{ref_for:!0,ref_key:"sponsorshipMenu",ref:n,"pt:root":"!z-[1200]","pt:content":"!p-0 !min-w-[200px] !bg-white !shadow-xl !border !border-slate-100",onHide:$[1]||($[1]=k=>b.value=!1)},{default:o(()=>[(r(!0),y(Y,null,ee(H.items,k=>(r(),U(f,{key:k.title,to:s(S)({name:k.path})+(k.hash||""),class:"block w-full py-2 px-4 text-sm text-slate-700 hover:bg-sky-50 hover:text-sky-800 transition-colors duration-200",onClick:$[0]||($[0]=O=>_()?.hide())},{default:o(()=>[T(a(k.title),1)]),_:2},1032,["to"]))),128))]),_:2},1536)],64))]))),128)),e("li",as,[t(E,{"as-child":"","pt:root":"!h-8 !py-0"},{default:o(()=>[t(f,{class:"text-xs text-white hover:text-sky-100 flex px-3 h-8 items-center",to:s(S)({name:"contact"})},{default:o(()=>[e("span",null,a(d.$t("footer.contact")),1)]),_:1},8,["to"])]),_:1})]),e("li",os,[e("span",ns,[t(L)])]),e("li",rs,[t(C)])])])])}}},ls=380,is=400,us=(g={})=>{const{handler:u="hover",align:S="center",screenOffset:n=10,dropdownOffset:b=0,transitionTimeout:_=250}=g,w=A(null),d=A(null),$=A([]),f=A([]),E=A(!1),D=A(typeof window<"u"?window.innerWidth:0),l=A(null),L=A(null),C=A(null),H=A(null),k=A(null),O=A(null);let m=null,x=null,p=null,v={end:"pointerup",enter:"pointerenter",leave:"pointerleave"};const c=()=>
1{if(!d.value||!l.value||!w.value)return;const M=document.documentElement.offsetWidth,i=l.value.getBoundingClientRect(),h=w.value.getBoundingClientRect();let{offsetHeight:R,offsetWidth:ie}=d.value.content;const he=h.left-i.left;let X=null;switch(d.value.align||S){case"left":X=he;break;case"right":X=he-ie+h.width;break;default:X=he-ie/2+h.width/2}X+i.left<n&&(X=n-i.left);const Se=X+i.left+ie;Se>M-n&&(X-=Se-M+n,X<n-i.left&&(X=n-i.left,ie=M-n*2)),X=Math.round(X);const ke=b+w.value.offsetTop,We=ie/ls,je=R/is;F(),ae(),C.value.style.transform=`translate(${X}px, ${ke}px)`,C.value.style.width=`${ie}px`,C.value.style.height=`${R}px`,O.value.style.transform=`translate(${he+h.width/2}px, ${ke}px) rotate(45deg)`,H.value.style.transform=`translate(${X}px, ${ke}px) scaleX(${We}) scaleY(${je})`,k.value.style.transform=`translateY(${d.value.content.firstElementChild.offsetHeight/je}px)`},z=M=>{if(w.value===M)return;w.value=M,M.setAttribute("aria-expanded","true"),l.value?.classList.add("uia-overlay-active","uia-dropdown-active"),$.value.forEach(R=>R.classList.remove("uia-active")),M.classList.add("uia-active");const i=M.getAttribute("data-dropdown");let h="uia-left";f.value.forEach(R=>{R.el.classList.remove("uia-active","uia-left","uia-right"),R.name===i?(R.el.setAttribute("aria-hidden","false"),R.el.removeAttribute("inert"),R.el.classList.add("uia-active"),h="uia-right",d.value=R):(R.el.setAttribute("aria-hidden","true"),R.el.setAttribute("inert",""),R.el.classList.add(h))}),c()},G=()=>{if(!w.value)return;const M=d.value,i=w.value;if($.value.forEach(h=>h.classList.remove("uia-active")),M?.el)try{const h=M.el.querySelector(":focus");h&&h.blur(),M.el.setAttribute("aria-hidden","true"),M.el.setAttribute("inert","")}catch(h){console.warn("Error setting aria-hidden:",h)}K(),ce(),l.value?.classList.remove("uia-overlay-active","uia-dropdown-active"),i&&i.setAttribute("aria-expanded","false"),d.value=null,w.value=null},Z=M=>{w.value===M?G():z(M)},J=()=>{m=setTimeout(()=>G(),50)},Q=()=>{clearTimeout(m)},ae=()=>{x=setTimeout(()=>l.value?.classList.remove("uia-no-transition"),50)},K=()=>{clearTimeout(x)},ce=()=>{p=setTimeout(()=>l.value?.classList.add("uia-no-transition"),_)},F=()=>{clearTimeout(p)},ye=(M=!1)=>{$.value.forEach(i=>{i._uiaMenu&&!M||(i._uiaMenuHandlers&&Object.entries(i._uiaMenuHandlers).forEach(([h,R])=>{i.removeEventListener(h,R)}),u==="hover"?i._uiaMenuHandlers={focusin:()=>{Q(),z(i)},[v.enter]:h=>{(!h.pointerType||h.pointerType!=="touch")&&(Q(),z(i))},[v.leave]:h=>{(!h.pointerType||h.pointerType!=="touch")&&J()}}:i._uiaMenuHandlers={},i._uiaMenuHandlers[v.end]=h=>{h.preventDefault(),h.stopPropagation(),Z(i)},Object.entries(i._uiaMenuHandlers).forEach(([h,R])=>{i.addEventListener(h,R)}),i._uiaMenu=!0)})},_e=(M=!1)=>{const i=C.value;i&&(i._uiaMenu&&!M||(i._uiaMenuHandlers&&Object.entries(i._uiaMenuHandlers).forEach(([h,R])=>{i.removeEventListener(h,R)}),u==="hover"?i._uiaMenuHandlers={[v.enter]:h=>{(!h.pointerType||h.pointerType!=="touch")&&Q()},[v.leave]:h=>{(!h.pointerType||h.pointerType!=="touch")&&J()}}:i._uiaMenuHandlers={},i._uiaMenuHandlers[v.end]=h=>{h.stopPropagation()},Object.entries(i._uiaMenuHandlers).forEach(([h,R])=>{i.addEventListener(h,R)}),i._uiaMenu=!0))},we=()=>{if(!L.value||!C.value)return;const M=L.value.querySelector(".uia-link-container");M&&($.value=Array.from(M.children).filter(i=>i.classList.contains("uia-has-dropdown")||i.hasAttribute("data-dropdown")),f.value=Array.from(C.value.children).map(i=>({el:i,name:i.getAttribute("data-dropdown"),align:i.getAttribute("data-align"),content:i.firstElementChild})),f.value.forEach(i=>{i.el.setAttribute("aria-hidden","true"),i.el.setAttribute("inert","")}))},j=()=>{C.value?.removeAttribute("style"),O.value?.removeAttribute("style"),H.value?.removeAttribute("style"),k.value?.removeAttribute("style")},W=()=>{if(D.value!==window.innerWidth){if(D.value=window.innerWidth,w.value){l.value?.classList.add("uia-no-transition"),c();return}H.value?.getAttribute("style")&&(l.value?.classList.add("uia-no-transition","uia-no-transition_dropdown"),setTimeout(()=>l.value?.classList.remove("uia-no-transition_dropdown")),G(),j())}},B=()=>{E.value=!0},le=()=>{E.value=!1},se=()=>{E.value||G()},P=()=>{typeof window>"u"||(window.addEventListener("resize",W),document.addEventListener("touchmove",B),document.addEventListener("touchstart",le),document.body.addEventListener(v.end,se))},te=()=>{typeof window>"u"||(window.removeEventListener("resize",W),document.removeEventListener("touchmove",B),document.removeEventListener("touchstart",le),document.body.removeEventListener(v.end,se))};return me(()=>{typeof window<"u"&&(v=window.PointerEvent?{end:"pointerup",enter:"pointerenter",leave:"pointerleave"}
1:{end:"touchend",enter:"mouseenter",leave:"mouseleave"}),P()}),Be(()=>{te(),Q(),K(),F()}),{activeDropdown:w,activeDropdownItem:d,elementsWithDropdown:$,dropdownContainerItems:f,rootEl:l,linkContainerEl:L,dropdownContainerEl:C,backgroundEl:H,backgroundAltEl:k,arrowEl:O,openDropdown:z,closeDropdown:G,toggleDropdown:Z,resizeDropdown:c,updateDataElements:we,registerDropdownElementsEvents:ye,registerDropdownContainerEvents:_e}},cs={class:"uia-nav"},ds={class:"uia-link-container uia-mob-hide"},ps={class:"uia-dropdown uia-mob-hide"},fs=["data-dropdown","data-align"],ms={class:"uia-dropdown-content"},hs={__name:"DropdownMenu",props:{menu:{type:Array,required:!0},element:{type:String,default:"header",validator:g=>!!g},screenOffset:{type:[Number,String],default:10,validator:g=>+g>=0},dropdownOffset:{type:[Number,String],default:0,validator:g=>+g>=0},handler:{type:String,default:"hover",validator:g=>["hover","click"].includes(g)},transitionTimeout:{type:[Number,String],default:250},align:{type:String,default:"center",validator:g=>["left","center","right"].includes(g)}},emits:["open-dropdown","close-dropdown"],setup(g,{expose:u,emit:S}){const n=g,{rootEl:b,linkContainerEl:_,dropdownContainerEl:w,backgroundEl:d,backgroundAltEl:$,arrowEl:f,elementsWithDropdown:E,openDropdown:D,closeDropdown:l,updateDataElements:L,registerDropdownElementsEvents:C,registerDropdownContainerEvents:H}=us({handler:n.handler,align:n.align,screenOffset:n.screenOffset,dropdownOffset:n.dropdownOffset,transitionTimeout:n.transitionTimeout}),k=N(()=>n.menu.filter(O=>O.dropdown));return oe(()=>n.element,async()=>{await ge(),L(),C()}),oe(()=>n.handler,()=>{C(!0),H(!0)}),oe(()=>n.menu,async()=>{await ge(),L(),C()},{deep:!0}),me(async()=>{await ge(),L(),C(),H()}),u({elementsWithDropdown:E,openDropdown:D,closeDropdown:l}),(O,m)=>(r(),U(Te(g.element),{ref_key:"rootEl",ref:b,class:"uia-menu uia-no-transition"},{default:o(()=>[e("nav",cs,[e("ul",{ref_key:"linkContainerEl",ref:_,class:"uia-root"},[pe(O.$slots,"before-nav"),e("li",ds,[(r(!0),y(Y,null,ee(g.menu,(x,p)=>(r(),U(Te(x.element||(x.dropdown?"button":"a")),Ne({key:p,class:["uia-link",x.attributes?x.attributes.class:null,{"uia-has-dropdown":x.dropdown}],"data-dropdown":x.dropdown,"data-align":x.align,"aria-haspopup":x.dropdown&&"true","aria-expanded":x.dropdown&&"false",tabindex:"0"},{ref_for:!0},x.attributes,Ke(x.listeners||{})),{default:o(()=>[pe(O.$slots,"title",{item:x,index:p},()=>[e("span",null,a(x.title),1)])]),_:2},1040,["class","data-dropdown","data-align","aria-haspopup","aria-expanded"]))),128))]),pe(O.$slots,"after-nav")],512)]),e("div",ps,[e("div",{ref_key:"backgroundEl",ref:d,class:"uia-background"},[e("div",{ref_key:"backgroundAltEl",ref:$,class:"uia-background-alt"},null,512)],512),e("div",{ref_key:"arrowEl",ref:f,class:"uia-arrow"},null,512),e("div",{ref_key:"dropdownContainerEl",ref:w,class:"uia-dropdown-container"},[(r(!0),y(Y,null,ee(k.value,(x,p)=>(r(),y("div",{key:p,class:"uia-dropdown-section","data-dropdown":x.dropdown,"data-align":x.align},[e("div",ms,[pe(O.$slots,"default",{item:x,index:p})])],8,fs))),128))],512)])]),_:3},512))}},I=Ze({isModalOpen:!1,query:"",results:{},loading:!1});let de=null;function Fe(){const{locale:g}=Le(),u=N(()=>I.results),S=N(()=>I.loading),n=N(()=>Object.values(I.results).reduce((l,L)=>l+(L.total||0),0)),b=N(()=>n.value>0),_=N({get:()=>I.isModalOpen,set:l=>I.isModalOpen=l}),w=N({get:()=>I.query,set:l=>E(l)}),d=N(()=>Object.entries(I.results).filter(([,l])=>l.items?.length>0).map(([l,L])=>({type:l,items:L.items,total:L.total})));function $(){I.isModalOpen=!0}function f(){I.isModalOpen=!1}function E(l){if(I.query=l,de&&clearTimeout(de),!l||l.trim().length<2){I.results={},I.loading=!1;return}I.loading=!0,de=setTimeout(async()=>{try{const L=await $fetch("/api/search",{params:{q:l.trim(),locale:g.value,limit:3}});I.query===l&&(I.results=L.results||{})}catch(L){console.error("[useGlobalSearch]",L),I.results={}}finally{I.query===l&&(I.loading=!1)}},300)}function D(){I.query="",I.results={},I.loading=!1,de&&clearTimeout(de)}return{isModalOpen:_,query:w,results:u,loading:S,totalResults:n,hasResults:b,resultTypes:d,openModal:$,closeModal:f,search:E,clearSearch:D}}const vs=["aria-expanded","aria-label"],gs={class:"relative w-5 h-5 z-10"},bs={class:"p-6 flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-sky-600 scrollbar-track-slate-100"},xs={class:"space-y-6"},ys={key:0,class:"border-b border-slate-200 pb-6"},_s={class:"relative z-10 text-base tracking-wide"},ws={key:1,class:"border-b border-slate-200 pb-6"},ks={class:"flex items-center justify-between mb-4"},$s={class:"text-xl font-bold text-slate-900 tracking-tight"},Es={class:"mb-5 p-4 bg-gradient-to-br from-slate-50 via-sky-50 to-slate-50 rounded-xl border border-slate-200 shadow-md hover:shadow-xl transition-all duration-300"},Cs={class:"flex items-center gap-4"},Ms={class:"relative flex-shrink-0"},Ts=["src","alt"],Ls={class:"absolute -bottom-1 -right-1 w-5 h-5 bg-emerald-500 rounded-full border-2 border-white flex items-center justify-center"},As={class:"flex-1 min-w-0"},Ds={class:"font-bold text-slate-900 text-base truncate leading-tight mb-1"},Ss={key:0,class:"text-sky-700 text-sm font-semibold truncate flex items-center gap-1.5"},js={class:"text-lg font-bold text-slate-900 tracking-tight group-hover:text-sky-700 transition-colors duration-300"},Hs={class:"w-8 h-8 flex items-center justify-center rounded-lg bg-slate-100 group-hover:bg-sky-600 transition-all duration-300"},Os={class:"overflow-hidden"},zs={class:"w-10 h-10 flex items-center justify-center rounded-lg bg-sky-50 group-hover:bg-sky-100 transition-colors duration-300"},Ps={class:"text-slate-700 font-semibold group-hover:text-slate-900 transition-colors duration-300 flex-1"},Rs={class:"border-b border-slate-200 pb-6"},Is={class:"relative"},Vs={class:"text-slate-900 font-semibold capitalize"},Bs={class:"mt-2 p-2 bg-white rounded-xl border border-slate-200 shadow-lg"},Ns=["onClick"],Us={class:"capitalize"},Fs={class:"border-b border-slate-200 pb-6"},Ws={class:"text-sm font-medium text-slate-600"},qs=["onClick"],Gs={class:"text-lg font-bold text-slate-900 tracking-tight group-hover:text-sky-700 transition-colors duration-300"},Ys={class:"w-8 h-8 flex items-center justify-center rounded-lg bg-slate-100 group-hover:bg-sky-600 transition-all duration-300"},Js={class:"overflow-hidden"},Qs={class:"w-9 h-9 flex items-center justify-center rounded-lg transition-all duration-300 group-hover:scale-110"},Xs={class:"text-slate-700 font-medium group-hover:text-slate-900 transition-colors duration-300 flex-1"},Ks={class:"border-b border-slate-200 pb-6"},Zs={class:"space-y-2"},ea={class:"w-9 h-9 flex items-center justify-center rounded-lg bg-sky-50 group-hover:bg-sky-100 transition-all duration-300 group-hover:scale-110"},ta={class:"text-slate-700 font-medium group-hover:text-slate-900 transition-colors duration-300 flex-1"},sa={class:"pt-2 space-y-3"},aa={class:"relative z-10 text-base tracking-wide"},oa={key:2,class:"pt-2"},na={class:"relative z-10 text-base tracking-wide"},ra={__name:"Burger",setup(g){const u=A(!1),S=ne(),n=Re(),{menuMain:b,menuTop:_}=De(),{getPictureUrl:w}=Ve(),{openLoginModal:d}=Ue(),{openModal:$}=Fe(),f=xe(),E=N(()=>f.user),{userData:D,isIndividuel:l,isCollectif:L,isFirme:C}=be(),{hasUnpaidContribution:H}=Pe();A(!1);const k=A({}),O=A(!1),m=()=>{const j={};b&&typeof b=="object"&&Object.keys(b).forEach(W=>{j[W]=!1}),k.value=j,O.value=!1},x=j=>{k.value={...k.value,[j]:!k.value[j]}},p=()=>{O.value=!O.value},v=j=>k.value[j]===!0,c=()=>{u.value=!u.value,u.value?(document.body.style.overflow="hidden",m()):document.body.style.overflow="auto"},z=()=>{u.value=!1,document.body.style.overflow="auto"},G=()=>{d(),z()},Z=async()=>{z(),f.logout(),await n.push(S({name:"index"}))};oe(()=>n.currentRoute.value.path,()=>{u.value&&z()});const{locale:J,locales:Q}=Le(),{changeLocale:ae}=lt(),K=A(!1),ce=N(()=>Q.value.find(j=>j.code===J.value)),F=()=>{K.value=!K.value},ye=j=>{ae(j),K.value=!1},_e=N(()=>{const j=[{to:{name:"auth-private"},icon:"tachometer-alt",label:"pages.auth.private.dashboard.title"}];return l.value?[...j,{to:{name:"auth-private-profile"},icon:"user",label:"pages.auth.private.profile.title"},{to:{name:"auth-private-events"},icon:"calendar",label:"pages.auth.private.events.title"},{to:{name:"auth-private-my-documents"},icon:"file-contract",label:"pages.auth.private.myDocuments.title"},{to:{name:"auth-private-commissions"},icon:"users",label:"pages.auth.private.commissions.title"},{to:{name:"auth-private-committees"},icon:"user-friends",label:"pages.auth.private.committees.title"},{to:{name:"auth-private-national-committees"},icon:"globe",label:"pages.auth.private.nationalCommittees.title"},{to:{name:"auth-private-mandates"},icon:"scroll",label:"pages.auth.private.mandates.title"},{to:{name:"auth-private-transactions"},icon:"file-invoice",label:"pages.auth.private.transactions.title"}]:L.value?[...j,{to:{name:"auth-private-bar-profile"},icon:"building",label:"pages.auth.private.barProfile.title"},{to:{name:"auth-private-bar-members"},icon:"users",label:"pages.auth.private.barMembers.title"},{to:{name:"auth-private-transactions"},icon:"file-invoice",label:"pages.auth.private.transactions.title"}]:C.value?[...j,{to:{name:"auth-private-firm-profile"},icon:"building",label:"pages.auth.private.firmProfile.title"},{to:{name:"auth-private-firm-members"},icon:"users",label:"pages.auth.private.firmMembers.title"},{to:{name:"auth-private-transactions"},icon:"file-invoice",label:"pages.auth.private.transactions.title"}]:j});function we(){$(),z()}return(j,W)=>{const B=re("font-awesome"),le=fe,se=ue;return r(),y("div",null,[e("button",{class:"group cursor-pointer relative flex items-center justify-center w-[35px] h-[35px] rounded-xl bg-gradient-to-br from-sky-900 via-sky-800 to-sky-950 hover:from-sky-800 hover:via-sky-700 hover:to-sky-900 shadow-lg hover:shadow-xl transition-all duration-300 focus:outline-none focus:ring-4 focus:ring-sky-500/50 focus:ring-offset-2 overflow-hidden","aria-expanded":u.value,"aria-label":u.value?"Close menu":"Open menu",onClick:c},[W[0]||(W[0]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-sky-600/0 via-sky-400/20 to-sky-600/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},null,-1)),e("div",gs,[e("span",{class:q(["absolute top-1/2 left-1/2 block w-[18px] h-[2px] bg-white rounded-full transition-all duration-300 ease-out -translate-x-1/2 shadow-sm",{"rotate-45 -translate-y-1/2 bg-gradient-to-r from-white to-sky-100":u.value,"-translate-y-[8px]":!u.value}])},null,2),e("span",{class:q(["absolute top-1/2 left-1/2 block w-[18px] h-[2px] bg-white rounded-full transition-all duration-300 ease-out -translate-x-1/2 -translate-y-1/2 shadow-sm",{"opacity-0 scale-0":u.value}])},null,2),e("span",{class:q(["absolute top-1/2 left-1/2 block w-[18px] h-[2px] bg-white rounded-full transition-all duration-300 ease-out -translate-x-1/2 shadow-sm",{"-rotate-45 -translate-y-1/2 bg-gradient-to-r from-white to-sky-100":u.value,"translate-y-[6px]":!u.value}])},null,2)])],8,vs),(r(),U(et,{to:"body"},[e("div",{class:q(["fixed inset-0 z-[9999] transition-all duration-300 ease-out mt-[calc(var(--header-height))]",{"opacity-100 visible":u.value,"opacity-0 invisible pointer-events-none":!u.value}])},[e("div",{class:"absolute inset-0 bg-gradient-to-br from-slate-900/60 via-sky-900/40 to-slate-900/60 backdrop-blur-sm transition-all duration-300",onClick:z}),e("div",{class:q(["absolute right-0 top-0 h-[calc(100svh-var(--header-height))] w-full sm:w-[420px] bg-white shadow-2xl transform transition-transform duration-300 ease-out flex flex-col",{"translate-x-0":u.value,"translate-x-full":!u.value}])},[W[5]||(W[5]=e("div",{class:"h-1 bg-gradient-to-r from-sky-500 via-sky-600 to-sky-700 shadow-lg flex-shrink-0"},null,-1)),e("div",bs,[e("nav",xs,[E.value?V("",!0):(r(),y("div",ys,[e("button",{class:"group cursor-pointer w-full relative overflow-hidden flex items-center justify-center gap-3 px-6 py-4 bg-gradient-to-r from-sky-600 via-sky-700 to-sky-800 hover:from-sky-700 hover:via-sky-800 hover:to-sky-900 text-white font-bold rounded-xl shadow-xl hover:shadow-2xl transition-all duration-500 transform hover:scale-[1.02] active:scale-[0.98]",onClick:G},[W[1]||(W[1]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"},null,-1)),t(B,{icon:["fas","sign-in-alt"],class:"text-xl relative z-10 group-hover:rotate-12 transition-transform duration-300"}),e("span",_s,a(j.$t("pages.auth.menu.connect")),1)])])),E.value?(r(),y("div",ws,[e("div",ks,[e("h3",$s,a(j.$t("pages.auth.menu.myAccount")),1),W[2]||(W[2]=e("div",{class:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse shadow-lg shadow-emerald-500/50"},null,-1))]),e("div",Es,[e("div",Cs,[e("div",Ms,[e("img",{class:"w-16 h-16 rounded-xl shadow-lg object-cover ring-4 ring-white transition-transform duration-300 hover:scale-105",src:s(w)(s(D)),alt:s(D)?.fullname||E.value.email},null,8,Ts),e("div",Ls,[t(B,{class:"text-white text-[10px]",icon:["fas","check"]})])]),e("div",As,[t(le,null,{default:o(()=>[e("p",Ds,a(s(D)?.fullname||E.value.email),1),s(D)?.user_code?(r(),y("p",Ss,[t(B,{class:"text-xs",icon:["fas","id-badge"]}),T(" "+a(s(D).user_code),1)])):V("",!0)]),_:1})])])]),s(H)?(r(),U(se,{key:0,to:s(S)({name:"auth-private-profile"}),class:"flex items-start gap-2 mb-4 px-3 py-2.5 bg-amber-50 border border-amber-200 rounded-xl text-xs text-amber-800 hover:bg-amber-100 transition-colors duration-200",onClick:z},{default:o(()=>[t(B,{icon:["fas","exclamation-triangle"],class:"text-amber-600 mt-0.5 flex-shrink-0"}),e("span",null,a(j.$t("pages.auth.contribution.warningTitle")),1)]),_:1},8,["to"])):V("",!0),e("button",{type:"button",class:"group w-full flex items-center justify-between p-3 rounded-xl hover:bg-slate-50 transition-all duration-300 cursor-pointer mb-3",onClick:He(p,["prevent"])},[e("span",js,a(j.$t("pages.auth.menu.myAccount")),1),e("div",Hs,[t(B,{icon:["fas","chevron-down"],class:q(["text-sm text-slate-600 group-hover:text-white transition-all duration-300",{"rotate-180":O.value}])},null,8,["class"])])]),t(le,null,{default:o(()=>[t($e,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 max-h-0","enter-to-class":"opacity-100 max-h-[2000px]","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 max-h-[2000px]","leave-to-class":"opacity-0 max-h-0"},{default:o(()=>[Ee(e("div",Os,[t(Oe,{name:"stagger-fade",tag:"div",class:"space-y-2"},{default:o(()=>[(r(!0),y(Y,null,ee(_e.value,(P,te)=>(r(),U(se,{key:P.label,to:s(S)(P.to),class:"group flex items-center gap-4 p-3.5 rounded-xl hover:bg-sky-50 transition-all duration-300 border border-transparent hover:border-sky-100",style:ze({transitionDelay:`${te*40}ms`}),onClick:z},{default:o(()=>[e("div",zs,[t(B,{icon:["fas",P.icon],class:"text-sky-600 group-hover:text-sky-700 transition-colors duration-300"}
1,null,8,["icon"])]),e("span",Ps,a(j.$t(P.label)),1),t(B,{icon:["fas","chevron-right"],class:"text-slate-400 text-sm group-hover:text-sky-600 transition-colors duration-300"})]),_:2},1032,["to","style"]))),128))]),_:1})],512),[[Ce,O.value]])]),_:1})]),_:1})])):V("",!0),e("div",Rs,[e("div",Is,[e("button",{type:"button",class:"w-full flex items-center justify-between p-3.5 rounded-xl bg-slate-50 hover:bg-sky-50 border border-slate-200 hover:border-sky-200 transition-all duration-300 cursor-pointer",onClick:F},[e("span",Vs,a(ce.value?.name),1),t(B,{icon:["fas","chevron-down"],class:q(["text-slate-600 text-sm transition-transform duration-300",{"rotate-180":K.value}])},null,8,["class"])]),t($e,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"opacity-0 -translate-y-2","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-2"},{default:o(()=>[Ee(e("div",Bs,[(r(!0),y(Y,null,ee(s(Q),P=>(r(),y("button",{key:P.code,type:"button",class:q(["cursor-pointer w-full flex items-center gap-3 p-3 rounded-lg hover:bg-sky-50 transition-colors duration-200 text-left",{"bg-sky-100 text-sky-900 font-semibold":P.code===s(J),"text-slate-700":P.code!==s(J)}]),onClick:te=>ye(P.code)},[e("span",Us,a(P.name),1),P.code===s(J)?(r(),U(B,{key:0,icon:["fas","check"],class:"text-sky-600 text-sm ml-auto"})):V("",!0)],10,Ns))),128))],512),[[Ce,K.value]])]),_:1})])]),e("div",Fs,[e("button",{class:"w-full flex items-center gap-3 p-3 rounded-xl bg-slate-50 hover:bg-sky-50 transition-all duration-200 cursor-pointer",onClick:we},[t(B,{class:"text-sky-600",icon:["fas","magnifying-glass"]}),e("span",Ws,a(j.$t("globalSearch.placeholder")),1)])]),(r(!0),y(Y,null,ee(s(b),(P,te)=>(r(),y("div",{key:te,class:"border-b border-slate-200 pb-6 last:border-0"},[e("button",{type:"button",class:"group w-full flex items-center justify-between p-3 rounded-xl hover:bg-slate-50 transition-all duration-300 cursor-pointer",onClick:He(M=>x(te),["prevent"])},[e("span",Gs,a(P.title),1),e("div",Ys,[t(B,{icon:["fas","chevron-down"],class:q(["text-sm text-slate-600 group-hover:text-white transition-all duration-300",{"rotate-180":v(te)}])},null,8,["class"])])],8,qs),t(le,null,{default:o(()=>[t($e,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 max-h-0","enter-to-class":"opacity-100 max-h-[2000px]","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 max-h-[2000px]","leave-to-class":"opacity-0 max-h-0"},{default:o(()=>[Ee(e("div",Js,[t(Oe,{name:"stagger-fade",tag:"div",class:"space-y-2 pt-3"},{default:o(()=>[(r(!0),y(Y,null,ee(P.items,(M,i)=>(r(),U(se,{key:M.title,to:s(S)({name:M.path,params:M.params||{}}),class:"group flex items-center gap-3.5 p-3 pl-4 rounded-xl hover:bg-gradient-to-r hover:from-slate-50 hover:to-sky-50 transition-all duration-300 border border-transparent hover:border-sky-100 hover:shadow-sm",style:ze({transitionDelay:`${i*35}ms`}),onClick:z},{default:o(()=>[e("div",Qs,[t(B,{icon:["fas",M.icon],class:q(["text-lg transition-colors duration-300",[M.iconCss.split(" ")[0],"group-hover:text-sky-600"]])},null,8,["icon","class"])]),e("span",Xs,a(M.title),1),t(B,{icon:["fas","arrow-right"],class:"text-slate-300 text-xs opacity-0 -translate-x-2 group-hover:opacity-100 group-hover:translate-x-0 group-hover:text-sky-600 transition-all duration-300"})]),_:2},1032,["to","style"]))),128))]),_:2},1024)],512),[[Ce,v(te)]])]),_:2},1024)]),_:2},1024)]))),128)),e("div",Ks,[e("div",Zs,[(r(!0),y(Y,null,ee(s(_).filter(P=>P.items[0].path!=="index"),P=>(r(),U(se,{key:P.title,to:s(S)({name:P.items[0].path,params:P.items[0].params||{}}),class:"group flex items-center gap-3.5 p-3 rounded-xl hover:bg-gradient-to-r hover:from-slate-50 hover:to-sky-50 transition-all duration-300 border border-transparent hover:border-sky-100 hover:shadow-sm",onClick:z},{default:o(()=>
1[e("div",ea,[t(B,{icon:["fas","newspaper"],class:"text-lg text-sky-600 group-hover:text-sky-700 transition-colors duration-300"})]),e("span",ta,a(P.title),1),t(B,{icon:["fas","arrow-right"],class:"text-slate-300 text-xs opacity-0 -translate-x-2 group-hover:opacity-100 group-hover:translate-x-0 group-hover:text-sky-600 transition-all duration-300"})]),_:2},1032,["to"]))),128))])]),e("div",sa,[t(se,{to:s(S)({name:"contact"}),class:"group cursor-pointer relative overflow-hidden w-full flex items-center justify-center gap-3 px-6 py-4 bg-gradient-to-r from-sky-600 via-sky-700 to-sky-800 hover:from-sky-700 hover:via-sky-800 hover:to-sky-900 text-white font-bold rounded-xl shadow-xl hover:shadow-2xl transition-all duration-500 transform hover:scale-[1.02] active:scale-[0.98]",onClick:z},{default:o(()=>[W[3]||(W[3]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"},null,-1)),t(B,{icon:["fas","envelope"],class:"text-xl relative z-10 group-hover:rotate-12 transition-transform duration-300"}),e("span",aa,a(j.$t("footer.contact")),1)]),_:1},8,["to"])]),E.value?(r(),y("div",oa,[e("button",{class:"group cursor-pointer relative overflow-hidden w-full flex items-center justify-center gap-3 px-6 py-4 bg-gradient-to-r from-red-500 via-red-600 to-red-700 hover:from-red-600 hover:via-red-700 hover:to-red-800 text-white font-bold rounded-xl shadow-xl hover:shadow-2xl transition-all duration-500 transform hover:scale-[1.02] active:scale-[0.98]",onClick:Z},[W[4]||(W[4]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"},null,-1)),t(B,{icon:["fas","sign-out-alt"],class:"text-xl relative z-10 group-hover:-rotate-12 transition-transform duration-300"}),e("span",na,a(j.$t("pages.auth.menu.disconnect")),1)])])):V("",!0)])])],2)],2)
1]))])}}},la=qe(ra,[["__scopeId","data-v-59b228f5"]]),ia=Ge("/logo/logo_multi_blue.webp"),ua=""+new URL("logo_multi_blue.CBJzhN9Q.png",import.meta.url).href,ca=ia,da={class:"container flex items-end justify-between"},pa={class:"flex"},fa={class:"flex items-center justify-end w-full"},ma={class:"hidden lg:flex items-center justify-end"},ha={class:"self-end"},va={class:"flex gap-4"},ga=["aria-label"],ba={class:"mr-2 whitespace-nowrap flex items-center"},xa={class:"inline-block max-w-0 opacity-0 overflow-hidden transition-all duration-300 ease-in-out group-hover:max-w-[200px] group-hover:opacity-100 group-hover:ml-1"},ya={class:"mr-2 whitespace-nowrap flex items-center"},_a={class:"inline-block max-w-0 opacity-0 overflow-hidden transition-all duration-300 ease-in-out group-hover:max-w-[200px] group-hover:opacity-100 group-hover:ml-1"},Ia={__name:"MenuMain",setup(g){const{isUserStatusValid:u}=it(),{openModal:S}=Fe(),n=A(null),b=A(null),_=A(!1),w=ne(),{locale:d}=Le(),{menuConfig:$}=De(),f=()=>{if(b.value){const x=b.value.offsetHeight;document.documentElement.style.setProperty("--header-height",`${x}px`)}},E=xe(),D=N(()=>E.user),{userData:l,isIndividuel:L}=be(),C=()=>{window.scrollY>100?_.value=!0:window.scrollY===0&&(_.value=!1)},H=x=>{const p=n.value?.elementsWithDropdown?.[x];p&&n.value?.openDropdown(p)},k=()=>{n.value?.closeDropdown()},O=()=>{n.value?.closeDropdown()},m=N(()=>u(l.value));return me(()=>{window.addEventListener("scroll",C),window.addEventListener("resize",f),C(),f()}),Be(()=>{window.removeEventListener("scroll",C),window.removeEventListener("resize",f)}),oe(_,()=>{setTimeout(f,300)}),(x,p)=>{const v=ue,c=fe,z=hs,G=re("font-awesome"),Z=fe,J=la;return r(),y("div",{ref_key:"headerRef",ref:b,class:"w-full bg-white border-b border-slate-200 relative z-[1100]"},[e("div",da,[e("div",pa,[t(v,{to:s(w)({name:"index"}),class:"flex items-center"},{default:o(()=>[p[2]||(p[2]=e("span",{class:"sr-only"},"UIA",-1)),e("picture",null,[p[1]||(p[1]=e("source",{srcset:ca,type:"image/webp"},null,-1)),e("img",{class:q(["w-auto object-contain transition-all duration-300 mx-2 xl:mx-0",s(_)?"h-8 lg:h-16 my-2":"h-12 lg:h-20 my-4"]),src:ua,alt:"Company Logo"},null,2)])]),_:1},8,["to"])]),e("div",fa,[e("div",ma,[e("div",ha,[t(z,{ref_key:"mainMenuRef",ref:n,menu:s($),locale:s(d),class:"font-semibold",onClickCapture:O},{default:o(({item:Q,index:ae})=>[t(c,null,{default:o(()=>[(r(),U(Te(Q.component),Ne({dropdown:Q.dropdown},{onFocus:K=>H(ae),onBlur:k}),null,16,["onFocus"]))]),_:2},1024)]),_:1},8,["menu","locale"])])]),e("div",va,[e("button",{"aria-label":x.$t("globalSearch.placeholder"),class:q(["hidden lg:flex items-center justify-center w-9 h-9 rounded-full text-slate-500 hover:text-sky-700 hover:bg-sky-50 transition-all duration-200 cursor-pointer self-end",s(_)?"mb-2 lg:mb-[15px]":"mb-4 lg:mb-[15px]"]),onClick:p[0]||(p[0]=(...Q)=>s(S)&&s(S)(...Q))},[t(G,{class:"text-lg",icon:["fas","magnifying-glass"]})],10,ga),t(Z,null,{default:o(()=>[s(D)?V("",!0):(r(),U(v,{key:0,to:s(w)({name:"auth-choose"}),class:q(["self-end transition-all duration-300 rounded-full bg-sky-900 hover:bg-sky-700 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:shadow-lg focus-visible:outline focus-visible:outline-offset-2 focus-visible:outline-slate-800 group flex items-center w-fit overflow-hidden",s(_)?"mb-2 lg:mb-[15px]":"mb-4 lg:mb-[15px]"])},{default:o(()=>[e("span",ba,[e("span",null,a(x.$t("menu.mainMenu.createAccountShort")),1),e("span",xa,a(x.$t("menu.mainMenu.createAccountHover")),1)]),t(G,{icon:["fas","chevron-right"],class:"transition-transform duration-300 group-hover:translate-x-1"})]),_:1},8,["to","class"])),s(D)&&!s(m)&&s(L)?(r(),U(v,{key:1,to:s(w)({name:"auth-subscribe"}),class:q(["self-end transition-all duration-300 rounded-full bg-sky-900 hover:bg-sky-700 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:shadow-lg focus-visible:outline focus-visible:outline-offset-2 focus-visible:outline-slate-800 group flex items-center w-fit overflow-hidden",s(_)?"mb-2 lg:mb-[15px]":"mb-4 lg:mb-[15px]"])},{default:o(()=>[e("span",ya,[e("span",null,a(x.$t("menu.mainMenu.membershipShort")),1),e("span",_a,a(x.$t("menu.mainMenu.membershipHover")),1)]),t(G,{icon:["fas","chevron-right"],class:"transition-transform duration-300 group-hover:translate-x-1"})]),_:1},8,["to","class"])):V("",!0)]),_:1})]),t(J,{class:q(["lg:hidden ml-3 self-end transition-all duration-300",s(_)?"mb-2":"mb-4"])},null,8,["class"])])])],512)}}},wa={role:"list",class:"container flex h-8 overflow-hidden pointer-events-none"},ka={class:"flex shrink-0"},$a={class:"flex items-center"},Ea={class:"flex items-center"},Va={__name:"BreadCrumbs",setup(g){const u=ut(),S=ne(),n=A(null);return me(()=>{if(n.value){const _=(parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-height"))||0)+n.value.offsetHeight;document.documentElement.style.setProperty("--header-height",`${_}px`)}}),(b,_)=>{const w=re("font-awesome"),d=ue,$=fe;return s(u).hidden?V("",!0):(r(),y("nav",{key:0,ref_key:"breadcrumbsRef",ref:n,class:"bg-slate-50 border-b border-slate-200 relative z-[1000]","aria-label":"Breadcrumb"},[e("ol",wa,[e("li",ka,[e("div",$a,[t(d,{to:s(S)({name:"index"}),class:"text-slate-400 hover:text-sky-800 flex items-center pointer-events-auto"},{default:o(()=>[t(w,{class:"text-sm fa-fw",icon:["fas","house"]}),_[0]||(_[0]=e("span",{class:"sr-only"},"Home",-1))]),_:1},8,["to"])])]),t($,null,{default:o(()=>[s(u).crumbs&&s(u).crumbs.length>0?(r(!0),y(Y,{key:0},ee(s(u).crumbs,f=>(r(),y("li",{key:f.name,class:"flex"},[e("div",Ea,[_[1]||(_[1]=e("svg",{class:"h-full w-4 shrink-0 text-slate-200 ml-2",viewBox:"0 0 24 44",preserveAspectRatio:"none",fill:"
1currentColor","aria-hidden":"true"},[e("path",{d:"M.293 0l22 22-22 22h1.414l22-22-22-22H.293z"})],-1)),t(d,{to:s(S)({name:f.path,params:f.params||{}}),class:"ml-2 text-sm text-slate-500 hover:text-sky-800 truncate md:text-clip max-w-[60vw] lg:max-w-7xl pointer-events-auto",title:f.name},{default:o(()=>[T(a(f.name),1)]),_:2},1032,["to","title"])])]))),128)):V("",!0)]),_:1})])],512))}}};export{Ra as _,Ia as a,Va as b,Fe as u}; 2//# sourceMappingURL=BgIeBbMi.js.map
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.