PageSourceSearch

https://believemy.com/_next/static/immutable/chunks/27johb-03dk3t.js

js believemy.com collected 2026-10-02 17:14:17 UTC 94,685 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,972687,e=>{"use strict";var t=e.i(843476),r=e.i(217255),a=e.i(727899),s=e.i(861476),l=e.i(271645),i=e.i(166540),n=e.i(170319),o=e.i(160478),c=e.i(720565),d=e.i(456904),u=e.i(109327),h=e.i(207155),x=e.i(508362),m=e.i(770703),p=e.i(646780),g=e.i(657688);function f({children:e,href:r,page:a,name:s,currentSVG:l,notCurrentSVG:i,blank:n=!1,sideNavIsOpen:o=()=>{},compact:c=!1,label:u}){let h=()=>{o&&o(!1)},x=a==s;return c?(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)(d.Link,{href:r,className:`sidenav-link sidenav-link-compact ${x?"font-semibold !text-[#05060F] dark:!text-lightBlue bg-black/[0.08] dark:bg-white/[0.10]":""}`,target:n?"_blank":"_self",onClick:h,"aria-label":u,children:l&&i&&(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 24 24",children:x?l:i})}),u&&(0,t.jsx)("span",{role:"tooltip",className:"pointer-events-none absolute left-full top-1/2 -translate-y-1/2 ml-2 px-2 py-1 rounded-md bg-gray-900 dark:bg-bgDark-300 text-white text-xs font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-150 z-50 shadow-lg",children:u})]}):(0,t.jsxs)(d.Link,{href:r,className:`sidenav-link ${x?"font-semibold !text-[#05060F] dark:!text-lightBlue bg-black/[0.08] dark:bg-white/[0.10]":""}`,target:n?"_blank":"_self",onClick:h,children:[l&&i&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 24 24",children:[x?l:i," "]})}),e]})}e.i(672956);var v=e.i(439092),b=e.i(596924),j=e.i(948148),k=e.i(861745),w=e.i(160889),y=e.i(618566),N=e.i(559842),C=e.i(242476),M=e.i(476085),S=e.i(66950),_=e.i(334541);let D="[email protected]",L=["Believemy","229 rue Saint-Honoré","75001 Paris, France"],z="block w-full rounded-2xl border-0 bg-white px-4 py-3 text-sm text-slate-900 outline-hidden ring-1 ring-slate-900/10 placeholder:text-slate-400 focus:ring-2 focus:ring-slate-900/20 dark:bg-white/5 dark:text-white dark:ring-white/10 dark:placeholder:text-grayDark-500 dark:focus:ring-white/25";function T({icon:e,text:r,copied:a,onCopy:s,copyLabel:l,copiedLabel:i}){return(0,t.jsxs)("button",{type:"button",onClick:s,className:"group flex w-full cursor-pointer items-center gap-2.5 px-3.5 py-2.5 text-left transition-colors duration-150 hover:bg-slate-100 dark:hover:bg-white/10",children:[(0,t.jsx)(_.default,{name:e,className:"shrink-0 text-base text-slate-400 dark:text-grayDark-400"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm text-slate-700 dark:text-grayDark-200",children:r}),(0,t.jsxs)("span",{className:`flex shrink-0 items-center gap-1 text-xs font-medium transition-colors duration-150 ${a?"text-emerald-600 dark:text-emerald-400":"text-slate-400 group-hover:text-slate-700 dark:text-grayDark-500 dark:group-hover:text-white"}`,children:[(0,t.jsx)(_.default,{name:a?"check-circle-linear":"copy-linear",className:"text-sm"}),(0,t.jsxs)("span",{className:"grid",children:[(0,t.jsx)("span",{className:`col-start-1 row-start-1 ${a?"invisible":""}`,children:l}),(0,t.jsx)("span",{className:`col-start-1 row-start-1 ${a?"":"invisible"}`,"aria-hidden":!a,children:i})]})]})]})}function H({user:e,onSent:r}){let a=(0,j.useTranslations)("layout"),[s,i]=(0,l.useState)(""),[o,c]=(0,l.useState)(""),[d,u]=(0,l.useState)(""),[h,x]=(0,l.useState)(!1),[m,g]=(0,l.useState)(null),f=(0,l.useRef)(null),v=e?[e.firstName,e.lastName].filter(Boolean).join(" ")||e.email:s.trim(),b=e?e.email:o.trim(),k=async()=>{if(!h){if(!v||!b||!d.trim())return void n.toast.error(a("ContactModal_fill"));x(!0);try{if(!(await fetch("/api/interface/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:v,email:b,message:d,page:window.location.pathname})})).ok)throw Error();n.toast.success(a("ContactModal_sent")),r()}catch{n.toast.error(a("ContactModal_error"))}finally{x(!1)}}},w=async(e,t)=>{try{await navigator.clipboard.writeText(t),g(e),clearTimeout(f.current),f.current=setTimeout(()=>g(null),1800)}catch{}};return(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("h3",{id:"contact-modal-title",className:"mb-1 text-lg font-bold text-slate-900 dark:text-white",children:a("ContactModal_title")}),(0,t.jsx)("p",{className:"mb-4 text-sm text-slate-500 dark:text-grayDark-400",children:a("ContactModal_description")}),!e&&(0,t.jsxs)("div",{className:"mb-2 grid gap-2 sm:grid-cols-2",children:[(0,t.jsx)("input",{type:"text",value:s,onChange:e=>i(e.target.value),maxLength:120,autoComplete:"name","aria-label":a("ContactModal_name"),placeholder:a("ContactModal_name"),className:z}),(0,t.jsx)("input",{type:"email",value:o,onChange:e=>c(e.target.value),maxLength:200,autoComplete:"email","aria-label":a("ContactModal_email"),placeholder:a("ContactModal_email"),className:z})]}),(0,t.jsxs)("div",{className:"rounded-2xl bg-white ring-1 ring-slate-900/10 transition-shadow duration-150 focus-within:ring-2 focus-within:ring-slate-900/20 dark:bg-white/5 dark:ring-white/10 dark:focus-within:ring-white/25",children:[(0,t.jsx)("textarea",{rows:5,value:d,onChange:e=>u(e.target.value),maxLength:4e3,"aria-label":a("ContactModal_message"),placeholder:a("ContactModal_message"),className:"block w-full resize-none border-0 bg-transparent px-4 pb-1 pt-3.5 text-sm leading-relaxed text-slate-900 outline-hidden placeholder:text-slate-400 focus:ring-0 dark:text-white dark:placeholder:text-grayDark-500"}),(0,t.jsxs)("div",{className:"flex min-h-14 items-center justify-between gap-3 py-2 pl-4 pr-2",children:[(0,t.jsx)("p",{className:"mb-0 min-w-0 truncate text-xs text-slate-400 dark:text-grayDark-500",children:e?a("ContactModal_replyTo",{email:e.email}):""}),(0,t.jsx)(p.default,{small:!0,isLoading:h,onClick:k,className:"!shrink-0 !rounded-full !bg-primary !text-white !font-medium !text-sm hover:!bg-primary-300",children:a("ContactModal_send")})]})]}),(0,t.jsx)("p",{className:"mb-1.5 mt-5 text-xs font-medium text-slate-500 dark:text-grayDark-400",children:a("ContactModal_other")}),(0,t.jsxs)("div",{className:"divide-y divide-slate-200/70 overflow-hidden rounded-2xl bg-slate-50 dark:divide-white/10 dark:bg-white/5",children:[(0,t.jsx)(T,{icon:"letter-linear",text:D,copied:"email"===m,onCopy:()=>w("email",D),copyLabel:a("ContactModal_copy"),copiedLabel:a("ContactModal_copied")}),(0,t.jsx)(T,{icon:"map-point-linear",text:L.slice(1).join(", "),copied:"address"===m,onCopy:()=>w("address",L.join("\n")),copyLabel:a("ContactModal_copy"),copiedLabel:a("ContactModal_copied")})]})]})}function F({isOpen:e,onClose:r,user:a}){return(0,t.jsx)(S.default,{isOpen:e,onClose:r,maxWidthClass:"sm:max-w-lg",zIndexClass:"z-[9999]",labelledBy:"contact-modal-title",portal:!0,children:(0,t.jsx)(H,{user:a,onSent:r})})}function R({compact:e=!1}){let r=(0,j.useTranslations)("layout"),[a,s]=(0,l.useState)(!1),[i,o]=(0,l.useState)(""),[c,d]=(0,l.useState)(!1),u=async()=>
1{if(!c){if(!i.trim())return void n.toast.error(r("FeatureSuggestion_empty"));d(!0);try{if(!(await fetch("/api/interface/feature-suggestion",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({suggestion:i,page:window.location.pathname})})).ok)throw Error();o(""),s(!1),n.toast.success(r("FeatureSuggestion_sent"))}catch{n.toast.error(r("FeatureSuggestion_error"))}finally{d(!1)}}};return(0,t.jsxs)(t.Fragment,{children:[e?(0,t.jsxs)("div",{className:"relative group w-full",children:[(0,t.jsx)("button",{type:"button",onClick:()=>s(!0),"aria-label":r("FeatureSuggestion_button"),className:"sidenav-link sidenav-link-compact w-full",children:(0,t.jsx)(_.default,{name:"lightbulb-linear",className:"w-5 h-5"})}),(0,t.jsx)("span",{role:"tooltip",className:"pointer-events-none absolute left-full top-1/2 -translate-y-1/2 ml-2 px-2 py-1 rounded-md bg-gray-900 dark:bg-grayDark-700 text-white text-xs font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-150 z-50 shadow-lg",children:r("FeatureSuggestion_button")})]}):(0,t.jsxs)("button",{type:"button",onClick:()=>s(!0),className:"sidenav-link w-full text-left",children:[(0,t.jsx)(_.default,{name:"lightbulb-linear",className:"w-5 h-5 shrink-0"}),(0,t.jsx)("div",{children:r("FeatureSuggestion_button")})]}),(0,t.jsx)(S.default,{isOpen:a,onClose:()=>!c&&s(!1),maxWidthClass:"sm:max-w-lg",zIndexClass:"z-[9999]",labelledBy:"feature-suggestion-title",portal:!0,children:(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("h3",{id:"feature-suggestion-title",className:"mb-1 text-lg font-bold text-slate-900 dark:text-white",children:r("FeatureSuggestion_title")}),(0,t.jsx)("p",{className:"mb-5 text-sm text-slate-500 dark:text-grayDark-400",children:r("FeatureSuggestion_description")}),(0,t.jsx)("textarea",{rows:6,value:i,maxLength:2e3,autoFocus:!0,onChange:e=>o(e.target.value),"aria-labelledby":"feature-suggestion-title",placeholder:r("FeatureSuggestion_placeholder"),className:"block w-full resize-none rounded-2xl border-0 bg-slate-100 px-4 py-3 text-sm leading-relaxed text-slate-900 outline-hidden placeholder:text-slate-400 focus:ring-2 focus:ring-slate-900/10 dark:bg-white/10 dark:text-white dark:placeholder:text-grayDark-500 dark:focus:ring-white/20"}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-end gap-2 pb-1",children:[(0,t.jsx)("button",{type:"button",onClick:()=>s(!1),disabled:c,className:"cursor-pointer rounded-full px-4 py-2.5 text-sm font-medium text-slate-600 transition-colors duration-150 hover:bg-slate-100 disabled:opacity-50 dark:text-grayDark-300 dark:hover:bg-white/10",children:r("FeatureSuggestion_cancel")}),(0,t.jsx)(p.default,{small:!0,isLoading:c,onClick:u,className:"!rounded-full !bg-primary !text-white !font-medium !text-sm hover:!bg-primary-300",children:r("FeatureSuggestion_send")})]})]})})]})}function E({page:e,session:r,sessionLoading:a,sideNavIsOpen:s=!1,promoConfig:i={},onCollapse:n,compact:o=!1,onExpand:c}){let u=(0,j.useTranslations)("layout"),[m,g]=(0,l.useState)(!1),[S,_]=(0,l.useState)(!1),[D,L]=(0,l.useState)(!1),z=(0,d.usePathname)(),T=(0,y.usePathname)(),H=(0,y.useParams)(),B=(0,d.useRouter)(),A=(0,k.useLocale)(),O=async e=>{if(e!=A){r?.user&&(0,M.syncAccountLanguage)(e);try{B.push({pathname:z,params:H},{locale:e})}catch(r){let t=T.split("/");w.routing.locales.includes(t[1])?t[1]=e:t.splice(1,0,e),window.location.assign(t.join("/")||`/${e}`)}}},V=w.labels;return(0,t.jsxs)("div",{className:`${o?"w-[58px]":"md:w-[230px] w-[290px]"} h-full bg-[#F4F5F7] dark:bg-bgDark-500 border-r border-gray-200 dark:border-borderDark flex flex-col`,children:[(0,t.jsxs)("div",{className:`flex-1 min-h-0 ${o?"":"overflow-y-auto"}`,children:[o?(0,t.jsxs)("div",{className:"pt-3 flex flex-col items-center gap-3",children:[(0,t.jsxs)(d.Link,{href:"/",className:"inline-block","aria-label":"Believemy",children:[(0,t.jsx)("div",{className:"dark:hidden",children:(0,t.jsx)(h.default,{icon:!0})}),(0,t.jsx)("div",{className:"hidden dark:block",children:(0,t.jsx)(h.default,{icon:!0,white:!0})})]}),c&&(0,t.jsx)("button",{type:"button",onClick:c,"aria-label":u("SideHeader_expand"),title:u("SideHeader_expand"),className:"hidden lg:flex items-center justify-center w-8 h-8 rounded-md text-gray-500 dark:text-grayDark-400 hover:bg-gray-200 dark:hover:bg-bgDark-300 hover:text-gray-900 dark:hover:text-white duration-150",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M9 6l6 6-6 6"})})})]}):(0,t.jsxs)("div",{className:"px-5 pt-5 pb-4 flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 min-w-0",children:[(0,t.jsxs)(d.Link,{href:"/",className:"inline-block",children:[(0,t.jsx)("div",{className:"dark:hidden",children:(0,t.jsx)(h.default,{ratio:"0.9"})}),(0,t.jsx)("div",{className:"hidden dark:block",children:(0,t.jsx)(h.default,{ratio:"0.9",white:!0})})]}),(0,t.jsx)(x.default,{})]}),n&&(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":u("SideHeader_collapse"),title:u("SideHeader_collapse"),className:"hidden lg:flex items-center justify-center w-7 h-7 rounded-md text-gray-500 dark:text-grayDark-400 hover:bg-gray-200 dark:hover:bg-bgDark-300 hover:text-gray-900 dark:hover:text-white duration-150",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M15 6l-6 6 6 6"})})})]}),(0,t.jsx)("nav",{className:o?"p-2 pt-3":"p-3",children:(0,t.jsxs)("ul",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/",page:e,name:"dashboard",compact:o,label:u("SideHeader_dashboard"),
1currentSVG:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10m1.956-7.905c-.193.17-.44.268-.932.465c-2.31.924-3.465 1.386-4.124.938a1.5 1.5 0 0 1-.398-.398c-.448-.66.014-1.814.938-4.124c.197-.493.295-.74.465-.933c.043-.049.09-.095.139-.138c.193-.17.44-.268.932-.465c2.31-.924 3.464-1.386 4.124-.938a1.5 1.5 0 0 1 .398.398c.448.66-.014 1.814-.938 4.124c-.197.493-.295.739-.465.932c-.043.05-.09.096-.139.139",clipRule:"evenodd"}),notCurrentSVG:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.75a9.25 9.25 0 1 0 0 18.5a9.25 9.25 0 0 0 0-18.5M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12S17.937 22.75 12 22.75S1.25 17.937 1.25 12m12.599-2.819c-.605.16-1.42.485-2.595.955c-.541.217-.642.268-.716.333a.758.758 0 0 0-.07.069c-.064.074-.115.175-.332.716c-.47 1.175-.794 1.99-.955 2.595c-.167.63-.085.79-.059.83a.75.75 0 0 0 .2.198c.038.027.199.108.829-.059c.605-.16 1.42-.484 2.594-.954c.542-.217.643-.268.717-.333l.494.564l-.494-.564a.733.733 0 0 0 .07-.07l.563.495l-.564-.494c.065-.074.116-.175.333-.717c.47-1.174.794-1.99.954-2.594c.168-.63.086-.791.06-.83a.75.75 0 0 0-.2-.199c-.038-.026-.2-.108-.83.06m-.384-1.45c.69-.183 1.436-.271 2.057.15c.234.16.437.362.596.597c.422.621.333 1.367.15 2.057c-.186.704-.546 1.605-.991 2.717l-.02.05l-.034.084c-.163.41-.308.772-.564 1.065a2.248 2.248 0 0 1-.208.208c-.293.256-.655.4-1.065.564l-.083.033l-.279-.696l.279.697l-.05.02c-1.113.445-2.014.805-2.718.991c-.69.183-1.436.272-2.057-.15l.422-.62l-.422.62a2.25 2.25 0 0 1-.596-.596c-.422-.621-.334-1.368-.15-2.057c.186-.705.546-1.605.99
11-2.717l.02-.05l.034-.085c.163-.41.307-.771.564-1.064c.065-.074.134-.143.208-.208c.293-.257.655-.401 1.064-.564l.084-.034l.05-.02c1.113-.445 2.013-.805 2.718-.992",clipRule:"evenodd"}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_dashboard")})})}),r&&r.user&&(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/reading-list",page:e,name:"reading-list",compact:o,label:u("SideHeader_readingList"),currentSVG:(0,t.jsx)("path",{fill:"currentColor",d:"M6.477 2.25h11.046c.91 0 1.674 0 2.286.082c.655.088 1.261.284 1.75.773c.49.49.685 1.095.773 1.75c.082.612.082 1.376.082 2.287V21a.75.75 0 0 1-1.135.643l-2.792-1.674c-.55-.33-.91-.545-1.213-.668c-.288-.117-.469-.143-.65-.143s-.362.026-.65.143c-.302.123-.663.337-1.213.668l-1.94 1.165a2.96 2.96 0 0 1-3.044 0l-1.94-1.165c-.55-.33-.911-.545-1.213-.668c-.288-.117-.469-.143-.65-.143s-.362.026-.65.143c-.302.123-.663.337-1.213.668L2.385 21.64A.75.75 0 0 1 1.25 21V7.142c0-.91 0-1.675.082-2.287c.088-.655.284-1.26.773-1.75c.49-.489 1.095-.685 1.75-.773c.612-.082 1.376-.082 2.287-.082Z"}),notCurrentSVG:(0,t.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:(0,t.jsx)("path",{d:"M4 17V7c0-2.357 0-3.536.732-4.268C5.464 2 6.643 2 9 2h6c2.357 0 3.536 0 4.268.732C20 3.464 20 4.643 20 7v14l-2.793-1.676c-1.097-.658-1.645-.987-2.262-1.05a3 3 0 0 0-.59 0c-.617.063-1.165.392-2.261 1.05a2.21 2.21 0 0 1-2.275 0c-1.097-.658-1.645-.987-2.262-1.05a3 3 0 0 0-.59 0c-.617.063-1.165.392-2.261 1.05L4 21Z"})}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_readingList")})})}),r&&r.user&&(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/leagues",page:e,name:"leagues",compact:o,label:u("SideHeader_leagues"),currentSVG:(0,t.jsx)("path",{fill:"currentColor",d:"M5 22h14v-2H5zM17.95 4H20a1 1 0 0 1 1 1v3a3 3 0 0 1-3 3h-1.3a5 5 0 0 1-3.7 2.9V16a2 2 0 0 1 2 2v1H9v-1a2 2 0 0 1 2-2v-2.1A5 5 0 0 1 7.3 11H6a3 3 0 0 1-3-3V5a1 1 0 0 1 1-1h2.05A5 5 0 0 1 6 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1a5 5 0 0 1-.05 1M5 6v2a1 1 0 0 0 1 1V6zm14 0h-1v3a1 1 0 0 0 1-1z"}),notCurrentSVG:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,t.jsx)("path",{d:"M7 4h10v4a5 5 0 0 1-10 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",d:"M7 5H4v3a3 3 0 0 0 3 3m10-6h3v3a3 3 0 0 1-3 3m-2 2v3a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-3m-2 8h10"})]}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_leagues")})})}),o?(0,t.jsx)("li",{className:"my-2 mx-2 h-px bg-[#05060F]/5 dark:bg-bgDark-550/40","aria-hidden":"true"}):(0,t.jsx)("li",{className:"after-line dark:[&>div]:!bg-bgDark-500 dark:[&::after]:!bg-bgDark-550/40",children:(0,t.jsx)("div",{children:u("SideHeader_doneYourself")})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/courses",page:e,name:"courses",compact:o,label:u("SideHeader_courses"),currentSVG:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{fill:"currentColor",d:"M14.217 3.5a5.17 5.17 0 0 0-4.434 0L3.092 6.637c-1.076.504-1.357 1.927-.842 2.91V14.5a.75.75 0 0 0 1.5 0v-3.828L9.783 13.5a5.17 5.17 0 0 0 4.434 0l6.691-3.137c1.456-.682 1.456-3.044 0-3.726z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M5 12.915v3.71c0 1.008.503 1.952 1.385 2.44C7.854 19.88 10.204 21 12 21c1.796 0 4.146-1.121 5.615-1.934c.882-.489 1.385-1.433 1.385-2.44v-3.711l-4.146 1.944a6.67 6.67 0 0 1-5.708 0z"})]}),notCurrentSVG:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.464 2.82a5.92 5.92 0 0 1 5.072 0l6.69 3.138C22.28 6.45 22.75 7.522 22.75 8.5c0 .978-.47 2.05-1.523 2.543l-1.477.692v4.89c0 1.253-.628 2.463-1.772 3.097c-.752.416-1.74.917-2.78 1.316c-1.027.394-2.164.712-3.198.712c-1.034 0-2.171-.318-3.199-.712c-1.04-.399-2.027-.9-2.779-1.316c-1.144-.634-1.772-1.844-1.772-3.097v-4.89l-1.477-.693l-.023-.01V14a.75.75 0 0 1-1.5 0V8.5c0-.978.471-2.05 1.523-2.542zM5.75 12.439v4.187c0 .763.379 1.441.999 1.785a21.14 21.14 0 0 0 2.59 1.227c.963.37 1.899.613 2.661.613s1.698-.243 2.662-.613a21.14 21.14 0 0 0 2.59-1.227c.62-.344.998-1.022.998-1.785v-4.187l-3.714 1.741a5.92 5.92 0 0 1-5.072 0zM3.41 9.684c-.403-.189-.66-.64-.66-1.184c0-.544.257-.995.66-1.184l6.691-3.137a4.42 4.42 0 0 1 3.798 0l6.691 3.137c.403.189.66.64.66 1.184c0 .544-.257.995-.66 1.184l-6.691 3.137a4.42 4.42 0 0 1-3.798 0z",clipRule:"evenodd"}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_courses")})})}),r?.user?.repsOnWeb&&(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/reps",page:e,name:"reps",compact:o,label:u("SideHeader_reps"),currentSVG:(0,t.jsx)("path",{fill:"currentColor",d:"M22 14v-4c0-.932 0-1.398-.152-1.765a2 2 0 0 0-1.083-1.083C20.398 7 19.932 7 19 7s-1.398 0-1.765.152a2 2 0 0 0-1.083 1.083C16 8.602 16 9.568 16 10.5H8c0-.932 0-1.898-.152-2.265a2 2 0 0 0-1.083-1.083C6.398 7 5.932 7 5 7s-1.398 0-1.765.152a2 2 0 0 0-1.083 1.083C2 8.602 2 9.068 2 10v4c0 .932 0 1.398.152 1.765a2 2 0 0 0 1.083 1.083C3.602 17 4.068 17 5 17s1.398 0 1.765-.152a2 2 0 0 0 1.083-1.083C8 15.398 8 14.432 8 13.5h8c0 .932 0 1.898.152 2.265a2 2 0 0 0 1.083 1.083C17.602 17 18.068 17 19 17s1.398 0 1.765-.152a2 2 0 0 0 1.083-1.083C22 15.398 22 14.932 22 14"}),notCurrentSVG:(0,t.jsx)("path",{fill:"currentColor",d:"m17.235 16.848l-.287.693zM16 13.5h.75a.75.75 0 0 0-.75-.75zm.152 2.265l-.693.287zm5.696 0l.693.287zm-1.083 1.083l-.287-.693zm0-9.696l-.287.693zm1.083 1.083l.693-.287zm-4.613-1.083l-.287-.693zM16 10.5v.75a.75.75 0 0 0 .75-.75zm.152-2.265l-.693-.287zM3.235 16.848l-.287.693zm-1.083-1.083l-.693.287zM8 13.5v-.75a.75.75 0 0 0-.75.75zm-.152 2.265l.693.287zm-1.083 1.083l.287.693zm0-9.696l.287-.693zM8 10.5h-.75c0 .414.336.75.75.75zm-.152-2.265l.693-.287zM3.235 7.152l-.287-.693zM2.152 8.235l-.693-.287zM21.25 10v4h1.5v-4zM19 16.25c-.476 0-.796 0-1.043-.017c-.241-.017-.358-.046-.435-.078l-.574 1.386c.29.12.59.167.907.188c.31.021.69.021 1.145.021zm-3.75-2.75c0 .461 0 .954.02 1.38c.01.213.026.421.051.609c.024.176.063.382.138.563l1.386-.574l-.012-.045a2 2 0 0 1-.026-.147a6 6 0 0 1-.039-.477a30 30 0 0 1-.018-1.309zm2.272 2.655a1.25 1.25 0 0 1-.677-.677l-1.386.574a2.75 2.75 0 0 0 1.489 1.489zM21.25 14c0 .476 0 .796-.017 1.043c-.017.241-.046.358-.078.435l1.386.574c.12-.29.167-.59.188-.907c.021-.31.021-.69.021-1.145zM19 17.75c.456 0 .835 0 1.145-.02c.317-.022.617-.069.907-.19l-.574-1.385c-.077.032-.194.061-.435.078c-.247.017-.567.01
17-1.043.017zm2.155-2.272a1.25 1.25 0 0 1-.677.677l.574 1.386a2.75 2.75 0 0 0 1.489-1.489zM19 7.75c.476 0 .796 0 1.043.017c.241.017.358.046.435.078l.574-1.386c-.29-.12-.59-.167-.907-.188c-.31-.021-.69-.021-1.145-.021zM22.75 10c0-.456 0-.835-.02-1.145a2.8 2.8 0 0 0-.19-.907l-1.385.574c.032.077.061.194.078.435c.017.247.017.567.017 1.043zm-2.272-2.155c.307.127.55.37.677.677l1.386-.574a2.75 2.75 0 0 0-1.489-1.489zM19 6.25c-.456 0-.835 0-1.145.02a2.8 2.8 0 0 0-.907.19l.574 1.385c.077-.032.194-.061.435-.078c.247-.017.567-.017 1.043-.017zm-2.25 4.25c0-.47 0-.926.018-1.309q.014-.286.04-.477q.012-.093.025-.147l.012-.045l-1.386-.574a2.3 2.3 0 0 0-.138.563a7 7 0 0 0-.051.61c-.02.425-.02.918-.02 1.379zm.198-4.04a2.75 2.75 0 0 0-1.489 1.488l1.386.574c.127-.307.37-.55.677-.677zM2.75 14v-4h-1.5v4zM5 16.25c-.476 0-.796 0-1.043-.017c-.241-.017-.358-.046-.435-.078l-.574 1.386c.29.12.59.167.907.188c.31.021.69.021 1.145.021zM1.25 14c0 .456 0 .835.02 1.145c.022.318.07.617.19.907l1.385-.574c-.032-.077-.061-.194-.078-.435A17 17 0 0 1 2.75 14zm2.272 2.155a1.25 1.25 0 0 1-.677-.677l-1.386.574a2.75 2.75 0 0 0 1.489 1.489zM7.25 13.5c0 .47 0 .926-.018 1.309q-.014.286-.04.477a2 2 0 0 1-.025.147l-.012.045l1.386.574c.075-.181.114-.387.138-.563c.025-.188.041-.396.051-.61c.02-.425.02-.918.02-1.379zM5 17.75c.456 0 .835 0 1.145-.02c.317-.022.617-.069.907-.19l-.574-1.385c-.077.032-.194.061-.435.078A17 17 0 0 1 5 16.25zm2.155-2.272a1.25 1.25 0 0 1-.677.677l.574 1.386a2.75 2.75 0 0 0 1.489-1.489zM5 7.75c.476 0 .796 0 1.043.017c.241.017.358.046.435.078l.574-1.386c-.29-.12-.59-.167-.907-.188c-.31-.021-.69-.021-1.145-.021zm3.75 2.75c0-.461 0-.954-.02-1.38a7 7 0 0 0-.051-.609a2.3 2.3 0 0 0-.138-.563l-1.386.574l.012.045q.012.053.026.147a6 6 0 0 1 .039.477c.018.383.018.838.018 1.309zM6.478 7.845c.307.127.55.37.677.677l1.386-.574a2.75 2.75 0 0 0-1.489-1.489zM5 6.25c-.456 0-.835 0-1.145.02a2.8 2.8 0 0 0-.907.19l.574 1.385c.077-.032.194-.061.435-.078A17 17 0 0 1 5 7.75zM2.75 10c0-.476 0-.796.017-1.043c.017-.241.046-.358.078-.435L1.46 7.948c-.12.29-.167.59-.188.907c-.021.31-.021.69-.021 1.145zm.198-3.54a2.75 2.75 0 0 0-1.489 1.488l1.386.574c.127-.307.37-.55.677-.677zM8 11.25h8v-1.5H8zm8 1.5H8v1.5h8z"}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_reps")})})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/articles",page:e,name:"articles",compact:o,label:u("SideHeader_articles"),currentSVG:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.25 4.48v3.057c0 .111 0 .27.021.406a.937.937 0 0 0 .444.683a.96.96 0 0 0 .783.072c.13-.04.272-.108.378-.159L17 8.005l1.124.534c.106.05.248.119.378.16a.958.958 0 0 0 .783-.073a.937.937 0 0 0 .444-.683c.022-.136.021-.295.021-.406V3.031c.113-.005.224-.01.332-.013C21.154 2.98 22 3.86 22 4.933v11.21c0 1.112-.906 2.01-2.015 2.08c-.97.06-2.108.179-2.985.41c-1.082.286-2.373.904-3.372 1.436c-.28.149-.575.257-.878.323V5.174a3.57 3.57 0 0 0 .924-.371c.184-.107.377-.216.576-.323m5.478 8.338a.75.75 0 0 1-.546.91l-4 1a.75.75 0 1 1-.364-1.456l4-1a.75.75 0 0 1 .91.546M11.25 5.214a3.444 3.444 0 0 1-.968-.339C9.296 4.354 8.05 3.765 7 3.487c-.887-.233-2.041-.352-3.018-.412C2.886 3.008 2 3.9 2 4.998v11.146c0 1.11.906 2.01 2.015 2.079c.97.06 2.108.179 2.985.41c1.081.286 2.373.904 3.372 1.436c.28.149.575.257.878.324zM4.273 8.818a.75.75 0 0 1 .91-.546l4 1a.75.75 0 1 1-.365 1.456l-4-1a.75.75 0 0 1-.545-.91m.91 3.454a.75.75 0 1 0-.365 1.456l4 1a.75.75 0 0 0 .364-1.456z",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M18.25 3.151c-.62.073-1.23.18-1.75.336a8.2 8.2 0 0 0-.75.27v3.182l.75-.356l.008-.005a1.13 1.13 0 0 1 .492-.13c.048 0 .094.004.138.01c.175.029.315.1.354.12l.009.005l.75.356V3.647z"})]}),notCurrentSVG:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{fill:"currentColor",d:"M19.728 12.818a.75.75 0 0 0-.91-.546l-4 1a.75.75 0 0 0 .364 1.456l4-1a.75.75 0 0 0 .546-.91M19.75 5.5a.75.75 0 0 0-1.5 0v3.439l-.75-.356l-.008-.005a1.13 1.13 0 0 0-.492-.13a1.13 1.13 0 0 0-.492.13l-.009.005l-.749.356V6.95a.75.75 0 0 0-1.5 0v2.587c0 .111 0 .27.02.406a.936.936 0 0 0 .445.683a.96.96 0 0 0 .783.072c.13-.04.272-.108.378-.159
1L17 10.005l1.124.534c.106.05.248.119.378.16a.957.957 0 0 0 .783-.073a.936.936 0 0 0 .444-.683c.021-.136.021-.295.021-.406zM4.272 8.818a.75.75 0 0 1 .91-.546l4 1a.75.75 0 1 1-.364 1.456l-4-1a.75.75 0 0 1-.546-.91m.91 3.454a.75.75 0 0 0-.364 1.456l4 1a.75.75 0 1 0 .364-1.456z"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M22.75 4.933c0-1.463-1.165-2.718-2.694-2.665c-1.139.04-2.626.158-3.771.501c-.995.298-2.114.88-2.987 1.385a2.77 2.77 0 0 1-2.665.058c-.996-.526-2.305-1.15-3.442-1.45c-.96-.253-2.176-.375-3.163-.436C2.47 2.231 1.25 3.5 1.25 4.998v11.146c0 1.536 1.244 2.735 2.718 2.827c.959.06 2.038.176 2.84.388c.993.261 2.22.844 3.212 1.372a4.224 4.224 0 0 0 3.96 0c.991-.528 2.219-1.11 3.211-1.372c.803-.212 1.882-.328 2.841-.388c1.474-.092 2.718-1.291 2.718-2.827zm-2.642-1.166c.615-.021 1.142.485 1.142 1.166v11.21c0 .686-.568 1.285-1.312 1.331c-.98.062-2.179.183-3.13.434c-1.17.31-2.525.962-3.533 1.5c-.168.09-.344.16-.525.211V5.942c.452-.09.892-.254 1.3-.49c.85-.492 1.845-1 2.665-1.246c.95-.284 2.274-.4 3.393-.439M11.25 5.975a4.199 4.199 0 0 1-1.318-.436c-.977-.517-2.161-1.072-3.123-1.326c-.813-.215-1.907-.33-2.873-.39c-.634-.038-1.186.478-1.186 1.175v11.146c0 .685.568 1.284 1.312 1.33c.98.062 2.179.183 3.13.434c1.17.31 2.525.962 3.533 1.5c.168.09.345.16.525.211z",clipRule:"evenodd"})]}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_articles")})})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/glossaries",page:e,name:"glossaries",compact:o,label:u("SideHeader_glossaries"),currentSVG:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.271 2.112c-.81.106-1.238.301-1.544.6c-.305.3-.504.72-.613 1.513C4.002 5.042 4 6.124 4 7.675v8.57a4.172 4.172 0 0 1 1.299-.593c.528-.139 1.144-.139 2.047-.138H20V7.676c0-1.552-.002-2.634-.114-3.451c-.109-.793-.308-1.213-.613-1.513c-.306-.299-.734-.494-1.544-.6c-.834-.11-1.938-.112-3.522-.112H9.793c-1.584 0-2.688.002-3.522.112m.488 4.483c0-.448.37-.811.827-.811h8.828a.82.82 0 0 1 .827.81a.82.82 0 0 1-.827.811H7.586a.82.82 0 0 1-.827-.81m.827 2.973a.82.82 0 0 0-.827.81c0 .448.37.811.827.811h5.517a.82.82 0 0 0 .828-.81a.82.82 0 0 0-.828-.811z",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M8.69 17.135H7.473c-1.079 0-1.456.007-1.746.083a2.464 2.464 0 0 0-1.697 1.538c.016.382.043.719.084 1.019c.109.793.308 1.213.613 1.513c.306.299.734.494 1.544.6c.834.11 1.938.112 3.522.112h4.414c1.584 0 2.688-.002 3.522-.111c.81-.107 1.238-.302 1.544-.601c.305-.3.504-.72.613-1.513c.092-.666.11-1.51.113-2.64h-6.896v3.007c0 .298 0 .447-.104.507c-.105.06-.248-.007-.534-.14l-1.371-.638c-.097-.045-.145-.067-.197-.067c-.053 0-.101.022-.198.067l-1.37.638c-.287.133-.43.2-.535.14c-.104-.06-.104-.21-.104-.507z"})]}),notCurrentSVG:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,t.jsx)("path",{d:"M4 8c0-2.828 0-4.243.879-5.121C5.757 2 7.172 2 10 2h4c2.828 0 4.243 0 5.121.879C20 3.757 20 5.172 20 8v8c0 2.828 0 4.243-.879 5.121C18.243 22 16.828 22 14 22h-4c-2.828 0-4.243 0-5.121-.879C4 20.243 4 18.828 4 16z"}),(0,t.jsx)("path",{d:"M19.898 16h-12c-.93 0-1.395 0-1.777.102A3 3 0 0 0 4 18.224"}),(0,t.jsx)("path",{strokeLinecap:"round",d:"M8 7h8m-8 3.5h5m0 5.5v3.53c0 .276 0 .414-.095.47c-.095.056-.224-.006-.484-.13l-1.242-.59c-.088-.04-.132-.062-.179-.062c-.047 0-.091.021-.179.063l-1.242.59c-.26.123-.39.185-.484.129C9 19.944 9 19.806 9 19.53v-3.08"})]})}),sideNavIsOpen:s,children:u("SideHeader_glossaries")})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/tools",page:e,name:"tools",compact:o,label:u("SideHeader_toolbox"),currentSVG:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.4 2.4a5.5 5.5 0 0 0-5.06 7.67L2.9 16.5a2.6 2.6 0 0 0 3.68 3.68l6.43-6.43a5.5 5.5 0 0 0 6.92-7.03a.75.75 0 0 0-1.22-.26l-2.3 2.3a1 1 0 0 1-1.42 0l-.75-.75a1 1 0 0 1 0-1.41l2.3-2.3a.75.75 0 0 0-.26-1.23a5.5 5.5 0 0 0-1.88-.33M5.5 18.5a1 1 0 1 1 0-2a1 1 0 0 1 0 2",clipRule:"evenodd"}),notCurrentSVG:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M14.4 3.15a4.75 4.75 0 0 0-4.2 6.93L3.43 16.85a1.85 1.85 0 1 0 2.62 2.62l6.77-6.77a4.75 4.75 0 0 0 6.02-6.13l-2.3 2.3a1.75 1.75 0 0 1-2.47 0l-.75-.75a1.75 1.75 0 0 1 0-2.48l2.3-2.3a4.7 4.7 0 0 0-1.22-.19Z"}),(0,t.jsx)("path",{d:"M5.5 17.5h.01"})]}),sideNavIsOpen:s,children:u("SideHeader_toolbox")})}),!r&&!a&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/pricing",page:e,name:"pricing",compact:o,label:u("SideHeader_pricing"),currentSVG:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{fill:"currentColor",d:"M9.034 5.963L6.491 8.5c-.467.466-.896.893-1.235 1.28a6 6 0 0 0-.619.82l-.024-.025l-.095-.094a4.9 4.9 0 0 0-1.532-1.004l-.123-.05l-.379-.15a.764.764 0 0 1-.259-1.252C3.345 6.907 4.69 5.566 5.34 5.297a3.4 3.4 0 0 1 1.788-.229c.546.081 1.063.362 1.907.895m4.342 13.35c.205.208.34.355.464.512q.243.311.434.658c.142.26.253.537.474 1.092a.69.69 0 0 0 1.126.224l.084-.083c1.12-1.117 2.465-2.458 2.735-3.105a3.35 3.35 0 0 0 .229-1.782c-.081-.545-.362-1.06-.897-1.902l-2.552 2.544c-.478.477-.916.914-1.313 1.256c-.237.206-.497.41-.784.586"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m14.447 16.377l5.847-5.83c.842-.839 1.263-1.259 1.484-1.792S22 7.627 22 6.44v-.567c0-1.826 0-2.739-.569-3.306S19.947 2 18.116 2h-.57c-1.19 0-1.785 0-2.32.221c-.536.221-.957.641-1.8 1.48L7.58 9.531c-.984.98-1.594 1.589-1.83 2.176a1.5 1.5 0 0 0-.112.562c0 .802.647 1.448 1.942 2.739l.174.173l2.038-2.069a.75.75 0 1 1 1.069 1.053L8.816 16.24l.137.137c1.295 1.29 1.943 1.936 2.747 1.936c.178 0 .348-.031.519-.094c.603-.222 1.219-.836 2.228-1.842m2.747-6.846a1.946 1.946 0 0 1-2.747 0a1.93 1.93 0 0 1 0-2.738a1.946 1.946 0 0 1 2.747 0a1.93 1.93 0 0 1 0 2.738",clipRule:"evenodd"})]}),notCurrentSVG:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.406 1.25h.761c.872 0 1.6 0 2.18.078c.61.082 1.166.262 1.613.708s.63 1.001.712 1.612c.078.578.078 1.304.078 2.173v.76c0 1.05 0 1.787-.28 2.461s-.802 1.195-1.547 1.937l-.1.1l-2.67 2.662l.093.143c.394.608.713 1.1.943 1.525c.238.44.408.853.476 1.31a4.1 4.1 0 0 1-.28 2.18c-.107.258-.292.527-.482.772c-.2.258-.444.538-.706.823a58 58 0 0 1-1.702 1.746l-.091.09c-.72.718-1.968.486-2.352-.477c-.227-.5
172-.32-.8-.435-1.01a4 4 0 0 0-.367-.555c-.146-.187-.316-.36-.74-.781l-.505-.443l-.02-.019a2 2 0 0 1-.285.018c-.632 0-1.153-.263-1.644-.637c-.464-.353-.98-.867-1.596-1.481l-1.447-1.443c-.616-.614-1.131-1.128-1.486-1.591c-.374-.49-.64-1.01-.64-1.642q.001-.17.026-.337l-.83-.827l-.087-.087a4.1 4.1 0 0 0-1.41-.895l-.378-.15a1.514 1.514 0 0 1-.513-2.48l.007-.008a59 59 0 0 1 1.751-1.697c.287-.261.568-.504.825-.703c.247-.19.517-.375.774-.481a4.13 4.13 0 0 1 2.184-.278c.457.067.87.236 1.311.474c.426.23.92.547 1.53.94l.148.095l2.672-2.665l.1-.099c.744-.743 1.266-1.264 1.942-1.543s1.413-.278 2.467-.278M9.137 6.919c-.56-.36-.963-.616-1.301-.799c-.36-.193-.6-.278-.82-.31a2.63 2.63 0 0 0-1.39.179a2.4 2.4 0 0 0-.432.284c-.212.163-.459.376-.73.623a57 57 0 0 0-1.71 1.658l-.004.006v.007l.003.008l.008.004l.383.152l.128.051a5.6 5.6 0 0 1 1.768 1.16c.028.026.055.053.098.097l.478.476q.098-.122.204-.242c.322-.368.735-.78 1.214-1.257zm4.317 11.42l.081.071l.052.052c.39.39.633.63.844.9q.281.36.501.76c.16.291.284.598.477 1.083l.02-.02a57 57 0 0 0 1.663-1.705c.248-.27.462-.517.625-.728a2.3 2.3 0 0 0 .285-.43a2.6 2.6 0 0 0 .179-1.383c-.032-.218-.117-.457-.31-.815c-.184-.338-.441-.74-.804-1.3l-2.109 2.102c-.49.488-.912.909-1.287 1.233a8 8 0 0 1-.217.18M17.547 2.75c-1.252 0-1.67.013-2.036.164c-.365.151-.67.436-1.555 1.319l-5.847 5.829c-.498.497-.876.874-1.16 1.2c-.287.325-.433.549-.504.725a.7.7 0 0 0-.058.282c0 .17.059.374.332.73c.285.374.728.817 1.39 1.478l.157.156l1.53-1.526a.75.75 0 0 1 1.06 1.063l-1.527 1.522l.153.154c.663.66 1.107 1.101 1.482 1.386c.358.272.563.331.736.331a.7.7 0 0 0 .26-.048c.175-.064.398-.204.73-.49c.33-.286.716-.67 1.227-1.18l5.847-5.828c.885-.883 1.17-1.186 1.321-1.55s.165-.778.165-2.027v-.567c0-.934-.002-1.56-.065-2.025c-.06-.443-.162-.629-.284-.75s-.308-.224-.754-.284c-.468-.062-1.095-.064-2.032-.064zm-.884 4.574a1.196 1.196 0 0 0-1.687 0a1.18 1.18 0 0 0 0 1.676a1.196 1.196 0 0 0 1.687 0a1.18 1.18 0 0 0 0-1.676M13.917 6.26a2.696 2.696 0 0 1 3.806 0a2.68 2.68 0 0 1 0 3.801a2.696 2.696 0 0 1-3.806 0a2.68 2.68 0 0 1 0-3.8",clipRule:"evenodd"})}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_pricing")})})})}),o?(0,t.jsx)("li",{className:"my-2 mx-2 h-px bg-[#05060F]/5 dark:bg-bgDark-550/40","aria-hidden":"true"}):(0,t.jsx)("li",{className:"after-line dark:[&>div]:!bg-bgDark-500 dark:[&::after]:!bg-bgDark-550/40",children:(0,t.jsx)("div",{children:u("SideHeader_doneWithYou")})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:"/accelerators",page:e,name:"accelerators",compact:o,label:u("SideHeader_accelerators"),currentSVG:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{fill:"currentColor",d:"M12.832 21.801c3.126-.626 7.168-2.875 7.168-8.69c0-5.291-3.873-8.815-6.658-10.434c-.619-.36-1.342.113-1.342.828v1.828c0 1.442-.606 4.074-2.29 5.169c-.86.559-1.79-.278-1.894-1.298l-.086-.838c-.1-.974-1.092-1.565-1.87-.971C4.461 8.46 3 10.33 3 13.11C3 20.221 8.289 22 10.933 22c.154 0 .316-.006.484-.015C10.111 21.874 8 21.064 8 18.444c0-2.05 1.495-3.435 2.631-4.11c.306-.18.663.055.663.41v.59c0 .45.175 1.155.59 1.637c.47.546 1.159-.026 1.214-.744c.018-.226.246-.37.442-.256c.641.375 1.46 1.175 1.46 2.473c0 2.048-1.129 2.99-2.168 3.357"})}),notCurrentSVG:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,t.jsx)("path",{d:"M20 13.111C20 20.222 13.956 22 10.933 22C8.29 22 3 20.222 3 13.111c0-2.782 1.461-4.65 2.86-5.716c.778-.594 1.77-.003 1.87.971l.086.838c.105 1.02 1.033 1.857 1.893 1.298C11.394 9.407 12 6.775 12 5.333V5.01c0-1.43 1.444-2.35 2.602-1.512C17.165 5.35 20 8.584 20 13.11Z"}),(0,t.jsx)("path",{d:"M8 18.445C8 21.289 10.489 22 11.733 22c1.09 0 3.267-.711 3.267-3.555c0-1.102-.59-1.845-1.16-2.274c-.398-.299-.957-.03-1.094.449c-.178.624-.823 1.016-1.152.456c-.3-.512-.3-1.28-.3-1.743c0-.636-.64-1.048-1.155-.674C9.106 15.409 8 16.68 8 18.445Z"})]})}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_accelerators")})})}),!1,o?(0,t.jsx)("li",{className:"my-2 mx-2 h-px bg-[#05060F]/5 dark:bg-bgDark-550/40","aria-hidden":"true"}):(0,t.jsx)("li",{className:"after-line dark:[&>div]:!bg-bgDark-500 dark:[&::after]:!bg-bgDark-550/40",children:(0,t.jsx)("div",{children:u("SideHeader_tools")})}),r&&r.user&&(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:r.user.pseudo?`/@${r.user.pseudo}`:r.user.userId?`/@believer-${r.user.userId}`:"/account",page:e,name:"profile",compact:o,label:u("SideHeader_myProfile"),currentSVG:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{fill:"currentColor",d:"M12 12a5 5 0 1 0 0-10a5 5 0 0 0 0 10"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c-3.788 0-7.107-1.948-9-4.876c.06-3.347 4.812-5.124 9-5.124s8.94 1.777 9 5.124C19.107 20.052 15.788 22 12 22",clipRule:"evenodd"})]}),notCurrentSVG:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,t.jsx)("circle",{cx:"12",cy:"6",r:"4"}),(0,t.jsx)("path",{d:"M20 17.5c0 2.485 0 4.5-8 4.5s-8-2.015-8-4.5S
17.582 13 12 13s8 2.015 8 4.5Z"})]})}),sideNavIsOpen:s,children:(0,t.jsx)("div",{children:u("SideHeader_myProfile")})})}),(0,t.jsx)("li",{children:o?(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)(d.Link,{href:"https://believemy.com/go/sZHSnA",target:"_blank",className:"sidenav-link sidenav-link-compact","aria-label":u("SideHeader_discord"),children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 24 24",children:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[(0,t.jsx)("path",{d:"M5.5 16c5 2.5 8 2.5 13 0"}),(0,t.jsx)("path",{d:"m15.5 17.5l1 2s4.171-1.328 5.5-3.5c0-1 .53-8.147-3-10.5c-1.5-1-4-1.5-4-1.5l-1 2h-2"}),(0,t.jsx)("path",{d:"m8.528 17.5l-1 2s-4.171-1.328-5.5-3.5c0-1-.53-8.147 3-10.5c1.5-1 4-1.5 4-1.5l1 2h2"}),(0,t.jsx)("path",{d:"M8.5 14c-.828 0-1.5-.895-1.5-2s.672-2 1.5-2s1.5.895 1.5 2s-.672 2-1.5 2m7 0c-.828 0-1.5-.895-1.5-2s.672-2 1.5-2s1.5.895 1.5 2s-.672 2-1.5 2"})]})})}),(0,t.jsx)("span",{role:"tooltip",className:"pointer-events-none absolute left-full top-1/2 -translate-y-1/2 ml-2 px-2 py-1 rounded-md bg-gray-900 dark:bg-grayDark-700 text-white text-xs font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-150 z-50 shadow-lg",children:u("SideHeader_discord")})]}):(0,t.jsx)(f,{href:"https://believemy.com/go/sZHSnA",page:e,name:"discord",blank:!0,children:(0,t.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 24 24",children:(0,t.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[(0,t.jsx)("path",{d:"M5.5 16c5 2.5 8 2.5 13 0"}),(0,t.jsx)("path",{d:"m15.5 17.5l1 2s4.171-1.328 5.5-3.5c0-1 .53-8.147-3-10.5c-1.5-1-4-1.5-4-1.5l-1 2h-2"}),(0,t.jsx)("path",{d:"m8.528 17.5l-1 2s-4.171-1.328-5.5-3.5c0-1-.53-8.147 3-10.5c1.5-1 4-1.5 4-1.5l1 2h2"}),(0,t.jsx)("path",{d:"M8.5 14c-.828 0-1.5-.895-1.5-2s.672-2 1.5-2s1.5.895 1.5 2s-.672 2-1.5 2m7 0c-.828 0-1.5-.895-1.5-2s.672-2 1.5-2s1.5.895 1.5 2s-.672 2-1.5 2"})]})}),(0,t.jsx)("div",{children:u("SideHeader_discord")})]}),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{fill:"currentColor",d:"M12 1.25h-.057c-2.309 0-4.118 0-5.53.19c-1.444.194-2.584.6-3.479 1.494c-.895.895-1.3 2.035-1.494 3.48c-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53c.194 1.444.6 2.584 1.494 3.479c.895.895 2.035 1.3 3.48 1.494c1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19c1.444-.194 2.584-.6 3.479-1.494c.895-.895 1.3-2.035 1.494-3.48c.19-1.411.19-3.22.19-5.529V12a.75.75 0 0 0-1.5 0c0 2.378-.002 4.086-.176 5.386c-.172 1.279-.5 2.05-1.069 2.62c-.57.569-1.34.896-2.619 1.068c-1.3.174-3.008.176-5.386.176s-4.086-.002-5.386-.176c-1.279-.172-2.05-.5-2.62-1.069c-.569-.57-.896-1.34-1.068-2.619c-.174-1.3-.176-3.008-.176-5.386s.002-4.086.176-5.386c.172-1.279.5-2.05 1.069-2.62c.57-.569 1.34-.896 2.619-1.068c1.3-.174 3.008-.176 5.386-.176a.75.75 0 0 0 0-1.5"}),(0,t.jsx)("path",{fill:"currentColor",d:"M12.47 10.47a.75.75 0 1 0 1.06 1.06l7.72-7.72v3.534a.75.75 0 0 0 1.5 0V2a.75.75 0 0 0-.75-.75h-5.344a.75.75 0 0 0 0 1.5h3.533z"})]})]})})})]})})]}),o?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 px-2 pb-4 pt-4 border-t border-gray-200 dark:border-borderDark",children:[r&&!a&&r.user&&r.user.currentTeam&&(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)(N.TeamSwitcher,{currentTeam:r.user.currentTeam,availableTeams:r.user.availableTeams||[],showCreateTeam:!1,useModal:!0,iconOnly:!0}),(0,t.jsx)("span",{role:"tooltip",className:"pointer-events-none absolute left-full top-1/2 -translate-y-1/2 ml-2 px-2 py-1 rounded-md bg-gray-900 dark:bg-grayDark-700 text-white text-xs font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-150 z-50 shadow-lg",children:r.user.currentTeam.name})]}),r&&!a&&r.user&&(0,t.jsx)(R,{compact:!0}),r&&!a&&r.user&&(()=>{let{level:e,progressToNextLevel:a}=(0,C.default)(r.user.xp||0),s=2*Math.PI*16;return(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsxs)("div",{className:"relative w-9 h-9 flex items-center justify-center cursor-default","aria-label":`${u("Level_level")} ${e}`,children:[(0,t.jsxs)("svg",{className:"absolute inset-0 -rotate-90",viewBox:"0 0 36 36",children:[(0,t.jsx)("circle",{cx:"18",cy:"18",r:16,fill:"none",strokeWidth:"2.5",className:"stroke-gray-200 dark:stroke-bgDark-300"}),(0,t.jsx)("circle",{cx:"18",cy:"18",r:16,fill:"none",strokeWidth:"2.5",strokeDasharray:s,strokeDashoffset:s-a/100*s,strokeLinecap:"round",className:"stroke-primary transition-[stroke-dashoffset] duration-500"})]}),(0,t.jsx)("span",{className:"text-[10px] font-bold text-primary",children:e})]}),(0,t.jsxs)("span",{role:"tooltip",className:"pointer-events-none absolute left-full top-1/2 -translate-y-1/2 ml-2 px-2 py-1 rounded-md bg-gray-900 dark:bg-grayDark-700 text-white text-xs font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-150 z-50 shadow-lg",children:[u("Level_level")," ",e," · ",a,"%"]})]})})()]}):(0,t.jsxs)("div",{className:"relative",children:[r&&!a&&r.user&&r.user.currentTeam&&(0,t.jsx)("div",{className:"px-3 mb-3",children:(0,t.jsx)(N.TeamSwitcher,{currentTeam:r.user.currentTeam,availableTeams:r.user.availableTeams||[],showCreateTeam:!1,size:"default",useModal:!0,fullWidth:!0})}),r&&!a&&r.user&&!r.user.pro&&!r.user.essential&&!r.user.currentTeam&&(0,t.jsx)("div",{className:"px-3",children:(0,t.jsxs)(d.Link,{href:"/pricing",className:"relative group block",children:[i.isActive&&(0,t.jsxs)("div",{className:"absolute -top-2 -right-2 z-10 bg-tertiary text-white text-xs font-bold px-2 py-1 rounded-full shadow-lg transform rotate-12",children:["-",
1i.discount,"%"]}),(0,t.jsx)("div",{className:"px-4 py-2 rounded-full text-sm font-medium bg-primary text-white hover:bg-primary/90 duration-150 whitespace-nowrap btn-3d lip-orange text-center",children:(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("span",{children:i.isActive?i.buttonText:u("SideHeader_upgradeButton")})})}),i.isActive&&(0,t.jsx)("div",{className:"absolute -bottom-8 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none",children:(0,t.jsxs)("div",{className:"bg-slate-800 dark:bg-grayDark-700 text-white text-xs px-2 py-1 rounded shadow-lg whitespace-nowrap relative",children:[(0,t.jsx)("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-b-4 border-transparent border-b-slate-800 dark:border-b-grayDark-700"}),("en"===A?i.nameEn:i.nameFr)||i.text," · -",i.discount,"%"]})})]})}),a?(0,t.jsx)("div",{className:"m-3",children:(0,t.jsx)(b.default,{height:30})}):(0,t.jsx)(t.Fragment,{children:r?(0,t.jsxs)(t.Fragment,{children:[r.user&&(0,t.jsx)("div",{className:"mx-3 mb-1",children:(0,t.jsx)(R,{})}),(0,t.jsx)("div",{className:"m-3 border-t dark:border-borderDark py-5",children:(0,t.jsx)(v.default,{session:r,integratedOnSidebar:!0})})]}):(0,t.jsxs)("div",{className:"m-3 border-t dark:border-borderDark pt-5 flex flex-col gap-2.5",children:[(0,t.jsx)(d.Link,{href:"/signup",children:(0,t.jsx)(p.default,{type:"pop",className:"w-full",small:!0,children:u("SideHeader_createAccountButton")})}),(0,t.jsx)(d.Link,{href:"/login",children:(0,t.jsx)(p.default,{type:"secondary",className:"w-full",small:!0,children:u("SideHeader_loginButton")})})]})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(F,{isOpen:S,onClose:()=>_(!1),user:a?null:r?.user}),m&&(0,t.jsxs)("div",{className:"absolute bottom-full left-0 right-0 mx-3 z-50",children:[(0,t.jsx)("div",{className:"bg-white dark:bg-bgDark-840 rounded-lg shadow-lg border border-gray-200 dark:border-borderDark overflow-hidden",children:(0,t.jsxs)("button",{type:"button",onClick:()=>{g(!1),_(!0)},className:"flex w-full cursor-pointer items-center gap-3 px-3 py-2.5 text-left hover:bg-gray-50 dark:hover:bg-white/10 transition-colors",children:[(0,t.jsx)("div",{className:"w-7 h-7 rounded-md bg-primary/10 flex items-center justify-center",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-3.5 h-3.5 text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,t.jsx)("polyline",{points:"22,6 12,13 2,6"})]})}),(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white mb-0",children:u("SideHeader_needHelp")})}),(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-3.5 h-3.5 text-gray-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"9 18 15 12 9 6"})})]})}),(0,t.jsx)("div",{className:"flex justify-start pl-[25%]",children:(0,t.jsx)("div",{className:"w-3 h-3 bg-white dark:bg-bgDark-840 border-r border-b border-gray-200 dark:border-borderDark transform rotate-45 -mt-1.5"})})]}),D&&(0,t.jsxs)("div",{className:"absolute bottom-full left-0 right-0 mx-3 z-50",children:[(0,t.jsx)("div",{className:"bg-white dark:bg-bgDark-840 rounded-lg shadow-lg border border-gray-200 dark:border-borderDark overflow-hidden",children:(0,t.jsx)("div",{className:"p-1",children:V.map(e=>(0,t.jsxs)("div",{onClick:()=>O(e.id),className:`flex items-center gap-2 px-3 py-2 rounded-md cursor-pointer transition-colors ${A===e.id?"bg-primary/10 text-primary":"hover:bg-gray-50 dark:hover:bg-white/10 text-gray-700 dark:text-white"}`,children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.label}),A===e.id&&(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 ml-auto",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.id))})}),(0,t.jsx)("div",{className:"flex justify-end pr-[25%]",children:(0,t.jsx)("div",{className:"w-3 h-3 bg-white dark:bg-bgDark-840 border-r border-b border-gray-200 dark:border-borderDark transform rotate-45 -mt-1.5"})})]}),(0,t.jsxs)("div",{className:"flex border-t dark:border-borderDark",children:[(0,t.jsxs)("div",{className:`flex-1 flex items-center justify-center gap-2 py-3 text-sm cursor-pointer transition-all duration-150 border-b-2 ${m?"border-primary text-primary dark:text-primary-100":"border-transparent text-gray-500 dark:text-textDark/80 hover:text-gray-700 dark:hover:text-textDark"}`,onClick:()=>{L(!1),g(!m)},children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,t.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),u("SideHeader_needHelpButton")]}),(0,t.jsxs)("div",{className:`flex-1 flex items-center justify-center gap-2 py-3 text-sm cursor-pointer transition-all duration-150 border-b-2 ${D?"border-primary text-primary dark:text-primary-100":"border-transparent text-gray-500 dark:text-textDark/80 hover:text-gray-700 dark:hover:text-textDark"}`,onClick:()=>{g(!1),L(!D)},children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),(0,t.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]}),A.toUpperCase()]})]})]})]})]})}var B=e.i(700572),A=e.i(45832),O=e.i(937472),V=e.i(935381);function W(e){if(!e)return"";let t=new Date(e).getTime()-Date.now();if(t<=0)return"0s";let r=Math.floor(t/1e3),a=Math.floor(r/3600),s=Math.floor(r%3600/60);return`${a}h ${String(s).padStart(2,"0")}m ${String(r%60).padStart(2,"0")}s`}function $({session:e,showTipsOnTop:r,withoutPopup:a=!1,hoverRounded:s="rounded-xl"}){let i=(0,j.useTranslations)("layout"),n=(0,V.hasUnlimitedEnergy)(e&&e.user),[o,c]=(0,l.useState)(null),[d,u]=(0,l.useState)(!1),[,h]=(0,l.useState)(0);(0,l.useEffect)(()=>{let e=!1;function t(){fetch("/api/reps/keys-state",{method:"POST"}).then(e=>e.ok?e.json():null).then(t=>{!e&&t&&t.keys&&c(t.keys)}).catch(()=>{})}t();let r=()=>t();return window.addEventListener("focus",r),window.addEventListener("reps:keys-changed",r),()=>{e=!0,window.removeEventListener("focus",r),window.removeEventListener("reps:keys-changed",r)}},[]),(0,l.useEffect)(()=>
1{if(!d)return;let e=setInterval(()=>h(e=>e+1),1e3);return()=>clearInterval(e)},[d]);let x=o?o.unlimited:n,m=o&&!o.unlimited?o.keys??0:null,p=!!(o&&o.starterKeys>0&&o.starterExpiresAt);return(0,t.jsxs)("div",{className:`flex items-center gap-1.5 hover:background-blur dark:hover:bg-white/10 duration-100 cursor-pointer p-2 ${s} relative`,onMouseOver:()=>u(!0),onMouseOut:()=>u(!1),children:[(0,t.jsx)(g.default,{src:"/static/icons/key.svg",width:15,height:17,alt:""}),(0,t.jsx)("div",{className:"text-sm text-gray-800/70 dark:text-lightBlue font-bold font-geistMono tabular-nums",children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.default,{name:"infinity-bold",className:"w-[18px] h-[18px] text-amber-500 dark:text-amber-400"}),(0,t.jsx)("span",{className:"sr-only",children:i("Keys_unlimited_title")})]}):null!==m?m:"·"}),(0,t.jsxs)(O.default,{open:d&&!a,showTipsOnTop:r,icon:(0,t.jsx)(g.default,{src:"/static/icons/key.svg",width:17,height:19,alt:""}),title:i("Keys_title"),badge:!x&&o&&o.eventActive?(0,t.jsx)("div",{className:"flex items-center gap-1 rounded-full bg-amber-50 px-2.5 py-1 dark:bg-amber-500/10",children:(0,t.jsx)("span",{className:"text-xs font-semibold text-amber-600 dark:text-amber-400",children:i("Keys_event")})}):null,cta:x?null:{href:"/pricing",label:i("Keys_unlock_all"),variant:"upsell"},children:[(0,t.jsx)("div",{className:"text-[#06050F]/60 dark:text-lightBlue font-geistSans text-sm mt-1",children:x?i("Keys_unlimited_title"):p?i("Keys_starter_lead",{count:o.starterKeys}):i("Keys_left_today",{count:m??0})}),!p&&(0,t.jsx)("div",{className:"text-[#06050F]/60 dark:text-lightBlue font-geistSans text-sm",children:i(x?"Keys_unlimited_sub":"Keys_use_to_unlock")}),p?(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-1 text-xs font-semibold text-amber-600 dark:text-amber-400 tabular-nums",children:[(0,t.jsx)(g.default,{src:"/static/icons/clock.svg",width:12,height:12,alt:""}),i("Keys_starter_deadline",{time:W(o.starterExpiresAt)})]}):!x&&o&&o.nextResetAt?(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-1 text-xs text-gray-400 tabular-nums",children:[(0,t.jsx)(g.default,{src:"/static/icons/clock.svg",width:12,height:12,alt:""}),i("Keys_reset_in",{time:W(o.nextResetAt)})]}):null]})]})}var I=e.i(319727);function P({size:e=16,className:r=""}){return(0,t.jsx)(g.default,{src:"/static/icons/boost.svg",width:Math.round(.62*e),height:e,alt:"",className:r})}function G({active:e,groups:r,activatingId:a,onActivate:s}){let l=(0,j.useTranslations)("layout"),i=r.slice(0,3),n=r.length-i.length,o=r.reduce((e,t)=>e+t.count,0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mb-0 mt-1 font-geistSans text-sm text-[#06050F]/60 dark:text-textSecondDark",children:l("Boost_description")}),e&&(0,t.jsxs)("div",{className:"mt-3 flex items-center justify-between rounded-lg bg-gradient-to-r from-orange-500 to-red-500 px-3 py-2 text-white",children:[(0,t.jsxs)("span",{className:"text-sm font-black tabular-nums",children:["×",e.multiplier]}),(0,t.jsx)("span",{className:"text-xs font-semibold tabular-nums",children:l("Boost_remaining",{time:(0,I.formatCountdown)(e.activeUntil)})})]}),r.length>0&&(0,t.jsx)(t.Fragment,{children:e?(0,t.jsx)("p",{className:"mb-0 mt-3 text-sm text-gray-500 dark:text-grayDark-400",children:l("Boost_reserve",{count:o})}):(0,t.jsxs)("ul",{className:"mt-3 space-y-1.5",children:[i.map(e=>(0,t.jsxs)("li",{className:"rounded-lg border border-gray-100 px-2.5 py-1.5 dark:border-white/10",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-sm text-gray-700 dark:text-grayDark-200",children:[(0,t.jsx)(P,{size:16}),(0,t.jsxs)("span",{className:"font-semibold",children:["×",e.multiplier]}),(0,t.jsx)("span",{className:"text-xs text-gray-400",children:l("Boost_duration",{minutes:e.durationMinutes})}),e.count>1&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-xs font-bold tabular-nums text-gray-600 dark:bg-white/10 dark:text-grayDark-300",children:e.count})]}),(0,t.jsx)("button",{type:"button",onClick:()=>s(e.nextId),disabled:a===e.nextId,className:"shrink-0 rounded-md bg-orange-500 px-2.5 py-1 text-xs font-semibold text-white transition-colors hover:bg-orange-600 disabled:cursor-not-allowed disabled:opacity-40",children:a===e.nextId?l("Boost_activating"):l("Boost_activate")})]}),e.expiringSoon>0&&(0,t.jsx)("p",{className:"mb-0 mt-1 text-xs font-semibold text-amber-600 dar
1k:text-amber-400",children:l("Boost_expiring",{count:e.expiringSoon,days:I.EXPIRY_WARNING_DAYS})})]},e.key)),n>0&&(0,t.jsx)("li",{className:"text-xs text-gray-400",children:l("Boost_more_groups",{count:n})})]})})]})}function Z({session:e,showTipsOnTop:r}){let a=(0,j.useTranslations)("layout"),s=!!(e&&e.user),{active:i,inventory:o,activate:c}=(0,I.default)(s),[u,h]=(0,l.useState)(!1),[x,m]=(0,l.useState)(!1),[p,g]=(0,l.useState)(null),[,f]=(0,l.useState)(0),v=!!i;(0,l.useEffect)(()=>{if(!v)return;let e=setInterval(()=>f(e=>e+1),1e3);return()=>clearInterval(e)},[v]);let b=i?i.activeUntil:null,k=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!b)return;let e=new Date(b).getTime()-Date.now();if(e<=0){if(k.current===b)return;k.current=b,window.dispatchEvent(new Event("reps:boosters-changed"));return}let t=setTimeout(()=>{window.dispatchEvent(new Event("reps:boosters-changed"))},e+1e3);return()=>clearTimeout(t)},[b]);let w=(0,I.groupBoosters)(o);if(!i&&0===w.length)return null;async function y(e){g(e);try{if(!await c(e))return void n.toast.error(a("Boost_one_active"));n.toast.success(a("Boost_activated"),{icon:()=>(0,t.jsx)(P,{size:22})}),m(!1)}catch(e){n.toast.error(a("Boost_one_active"))}finally{g(null)}}let N=w.reduce((e,t)=>e+t.count,0),C=i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P,{size:16}),(0,t.jsx)("span",{className:"font-geistMono text-sm font-bold tabular-nums text-white",children:(0,I.formatCountdownShort)(i.activeUntil)})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P,{size:16}),(0,t.jsx)("span",{className:"font-geistMono text-sm font-bold tabular-nums text-amber-600 dark:text-amber-400",children:N})]}),M=i?"bg-gradient-to-r from-orange-500 to-red-500 border-transparent":"bg-amber-50 border-amber-200/70 dark:bg-amber-500/10 dark:border-amber-500/20";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative hidden md:block",onMouseOver:()=>h(!0),onMouseOut:()=>h(!1),children:[(0,t.jsx)("div",{className:`flex cursor-pointer items-center gap-1.5 rounded-full border px-2.5 py-1.5 duration-100 ${M}`,children:C}),(0,t.jsx)(O.default,{open:u,showTipsOnTop:r,icon:(0,t.jsx)(P,{size:18}),title:a("Boost_title"),badge:i?(0,t.jsx)("div",{className:"flex items-center gap-1 rounded-full bg-orange-50 px-2.5 py-1 dark:bg-orange-500/10",children:(0,t.jsx)("span",{className:"text-xs font-semibold text-orange-600 dark:text-orange-400",children:a("Boost_active_badge")})}):null,cta:i&&0===w.length?{href:"/fragments",label:a("Boost_get_more"),variant:"default"}:null,children:(0,t.jsx)(G,{active:i,groups:w,activatingId:p,onActivate:y})})]}),(0,t.jsx)("button",{type:"button",onClick:()=>m(!0),"aria-label":a("Boost_open"),className:`flex items-center gap-1.5 rounded-full border px-2.5 py-1.5 duration-100 md:hidden ${M}`,children:C}),(0,t.jsx)(S.default,{isOpen:x,onClose:()=>m(!1),labelledBy:"boost-sheet-title",portal:!0,children:(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(P,{size:18}),(0,t.jsx)("span",{id:"boost-sheet-title",className:"truncate font-sourceSans text-lg font-bold text-[#06050F] dark:text-white",children:a("Boost_title")})]}),(0,t.jsx)("button",{type:"button",onClick:()=>m(!1),"aria-label":a("Boost_close"),className:"-mr-1 grid h-8 w-8 shrink-0 place-items-center rounded-full text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-white/10 dark:hover:text-grayDark-200",children:(0,t.jsx)(_.default,{name:"close-circle-linear",className:"text-xl"})})]}),(0,t.jsx)(G,{active:i,groups:w,activatingId:p,onActivate:y}),i&&0===w.length&&(0,t.jsx)(d.Link,{href:"/fragments",onClick:()=>m(!1),className:"btn-3d lip-orange mt-4 flex items-center justify-center rounded-full bg-primary px-5 py-2.5 text-sm font-bold text-white transition-opacity hover:text-white hover:opacity-95",children:a("Boost_get_more")})]})})]})}function U({onMaintenanceChange:e}){let t=(0,y.useSearchParams)();return(0,l.useEffect)(()=>{let r=t.get("maintenance");e&&e(r)},[t,e]),null}var K=e.i(566902);let q=["/pricing","/courses","/accelerators","/mentoring","/workshops","/articles","/community","/reps","/teams","/glossaries","/join-instructors","/join-mentors","/changelog","/tools","/terms-of-sale","/terms-of-use","/tools-terms","/privacy","/legal-mentions","/tools-alert"],Y=[/^\/course\/[^/]+$/,/^\/series\/[^/]+$/,/^\/wor
1kshops\/[^/]+$/,/^\/mentoring\/[^/]+$/,/^\/r\/[^/]+$/,/^\/community\/discussions\/[^/]+$/,/^\/certifications\/[^/]+$/,/^\/u\/[^/]+$/,/^\/@[^/]+$/,/^\/glossaries\/[^/]+$/,/^\/tools\/[^/]+$/],J=/^\/glossaries\/[^/]+\/[^/]+$/;var X=e.i(480317),Q=e.i(107849);let ee="linear-gradient(to right, #000 calc(100% - 32px), transparent 100%)";function et(){let e=(0,Q.useHeaderContextTitleValue)(),r=(0,l.useRef)(null),[a,s]=(0,l.useState)(!1),i=e?.title||null;if((0,l.useEffect)(()=>{let e=r.current;if(!e)return;let t=()=>s(e.scrollWidth>e.clientWidth+1);t();let a=new ResizeObserver(t);return a.observe(e),"u">typeof document&&document.fonts?.ready&&document.fonts.ready.then(t).catch(()=>{}),()=>a.disconnect()},[i]),!i)return null;let n="block whitespace-nowrap text-sm text-gray-500 dark:text-grayDark-400 transition-colors";return(0,t.jsxs)("div",{className:"hidden lg:flex items-center gap-3 min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"w-px h-5 bg-gray-200 dark:bg-borderDark shrink-0"}),(0,t.jsx)("div",{ref:r,style:a?{maskImage:ee,WebkitMaskImage:ee}:void 0,className:"min-w-0 overflow-hidden",children:e.href?(0,t.jsx)(d.Link,{href:e.href,title:i,className:`${n} hover:text-black dark:hover:text-white`,children:i}):(0,t.jsx)("span",{title:i,className:n,children:i})})]})}var er=e.i(810243),ea=e.i(86460),es=e.i(207130);let el=(0,m.default)(()=>e.A(746020),{loadableGenerated:{modules:[931076]},ssr:!1}),ei=(0,m.default)(()=>e.A(245582),{loadableGenerated:{modules:[569636]},ssr:!1}),en=(0,m.default)(()=>e.A(620981).then(e=>({default:e.SuspendedModal})),{loadableGenerated:{modules:[305307]},ssr:!1}),eo=(0,m.default)(()=>e.A(513260),{loadableGenerated:{modules:[130425]},ssr:!1});e.s(["default",0,function(m){let f=(0,j.useTranslations)("layout"),v=(0,j.useTranslations)("leagues"),w=(0,j.useTranslations)("notifications"),{data:y,status:N,update:C}=(0,r.useSession)(),M="loading"===N,D=(0,d.useRouter)(),L=(0,d.usePathname)(),z=new o.default,T=(0,l.useRef)(null),H=(0,k.useLocale)(),F=(0,c.useFeatureFlagVariantKey)("landing-page-style"),{unreadCount:R}=(0,er.useMessengerNotifications)(),O=(0,l.useRef)(null),{settings:V,settled:W}=(0,s.useCommerceSettings)(),I=V.promotion,P=(O.current={isActive:null!==I,discount:I?I.discountPercent:null,nameFr:I?I.nameFr:null,nameEn:I?I.nameEn:null,endDate:I?I.endsAt:null,text:f("UserLayout_promo_text"),buttonText:f("UserLayout_promo_button"),fallbackText:f("UserLayout_promo_fallback")},O.current),{campaign:G,campaignChecked:Q}=(0,a.default)(!!y?.user),ee=G?{...P,isActive:!1}:P,[ec,ed]=(0,l.useState)([]),[eu,eh]=(0,l.useState)(!1),[ex,em]=(0,l.useState)(!1),[ep,eg]=(0,l.useState)(!1),[ef,ev]=(0,l.useState)(!1),[eb,ej]=(0,l.useState)("test"!==F||!!y),[ek,ew]=(0,l.useState)(!1),[ey,eN]=(0,l.useState)(!1),[eC,eM]=(0,l.useState)(!1),[eS,e_]=(0,l.useState)(!1),[eD,eL]=(0,l.useState)(!1),[ez,eT]=(0,l.useState)("other"),[eH,eF]=(0,l.useState)(null),[eR,eE]=(0,l.useState)(!1),eB=!!y?.user&&!y.user.pro&&!y.user.currentTeam&&z.get("promotionModalShown")!==new Date().toDateString();(0,ea.usePromotionModalHold)(eR||eB&&(!(W&&Q)||ee.isActive));let eA=/\/course\/[^/]+\/[^/]+\/[^/]+/.test(L)||/\/accelerators\/[^/]+\/[^/]+\/[^/]+\/[^/]+/.test(L),eO=y?.user?.showNavOnCourses??!1,eV=L.includes("/r/")||/^\/glossaries\/[^/]+\/[^/]+/.test(L)||L.includes("/code-promo/")||L.includes("/discount-code/")||L.startsWith("/accelerators/rocket")||L.startsWith("/accelerators/python")||L.startsWith("/join-instructors")||L.startsWith("/join-mentors")||eA&&!eO,eW=L.startsWith("/admin")||L.startsWith("/pedagogy"),[e$,eI]=(0,l.useState)(!1),[eP,eG]=(0,l.useState)(!1),[eZ,eU]=(0,l.useState)(null);(0,l.useEffect)(()=>{let t=new Date("2026-04-19").getTime();Date.now()>t||!eA||(0,es.readLocal)("sidebar-hint-dismissed")||(eG(!0),e.A(541017).then(e=>{eU(e.default)}))},[eA]);let eK=eV?e$:eb,eq=()=>{eV?eI(!e$):(ej(!eb),eQ())},eY=async(e=!1)=>{if(!eu){eh(!0);let t=await fetch("/api/user/get/notifications",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({markAsRead:e})}),r=await t.json();if(t.ok){if(eh(!1),ed(r.notifications),e){let e=new Event("visibilitychange");document.dispatchEvent(e)}}else eh(!1),n.toast.error(r.message)}},eJ=async e=>{if(!ep){eg(!0);let t=await fetch("/api/user/delete/notification",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({notificationId:e})}),r=await t.json();t.ok?(eg(!1),ed(ec.filter(t=>t.id!==e))):(eg(!1),n.toast.error(r.message))}},eX=async()=>
1{if(y.user.darkMode=!y.user.darkMode,!ey){eN(!0);let e=await fetch("/api/user/toggle-dark-mode",{method:"get",headers:{"Content-Type":"application/json"}}),t=await e.json();if(e.ok){eN(!1);let e=new Event("visibilitychange");document.dispatchEvent(e)}else eN(!1),n.toast.error(t.message);eN(!1)}},eQ=async()=>{if(!eD&&y&&y.user){eL(!0);let e=await fetch("/api/user/must-leave-nav-open",{method:"get",headers:{"Content-Type":"application/json"}}),t=await e.json();e.ok?eL(!1):(eL(!1),n.toast.error(t.message))}},e0=e=>{"/"==e?eT("dashboard"):e.includes("/reading-list")?eT("reading-list"):e.includes("/leagues")?eT("leagues"):e.includes("/u/")||e.includes("/@")?eT("profile"):e.includes("/courses")||e.includes("/course")?eT("courses"):"/articles"==e||e.includes("/r/")?eT("articles"):e.includes("/reps")?eT("reps"):e.includes("/accelerators")?eT("accelerators"):e.includes("/mentoring")?eT("mentors"):"/glossaries"==e||"/glossaries/[slug]"==e||"/glossaries/[slug]/[termSlug]"==e?eT("glossaries"):e.includes("/community/discussion/")?eT("community"):e.includes("/pricing")?eT("pricing"):e.includes("/teams")?eT("teams"):e.includes("/glossaries")?eT("glossaries"):"/tools"===e||e.startsWith("/tools/")?eT("tools"):eT("other")};(0,l.useEffect)(()=>{let e;return!m.onlyUnconnected&&y&&y.user&&(e=setTimeout(()=>eY(),100)),e0(L),()=>{e&&clearTimeout(e)}},[]),(0,l.useEffect)(()=>{if(y&&y.user){if(ev(!0),!y.user.hasVerifiedEmail){L.includes("/verify-account")||L.includes("/pricing")||D.push("/verify-account",{locale:y.user.locale||"fr"});return}ej(y.user.mustLeaveNavOpen??!0)}},[y]),(0,l.useEffect)(()=>{e0(L),em(!1),ew(!1),eI(!1)},[L]);let[e1]=(0,l.useState)(()=>"1"===new URLSearchParams(window.location.search).get("subscription_started")),e2=(0,l.useRef)(0);(0,l.useEffect)(()=>{if(!e1||!y?.user||y.user.pro||y.user.essential||y.user.ultimate||e2.current>=10)return;let e=setTimeout(async()=>{e2.current+=1;try{await C?.()}catch(e){}},0===e2.current?800:2500);return()=>clearTimeout(e)},[y,e1,C]),(0,l.useEffect)(()=>{!y||M||!y.user||y.user.isOnboarded||L.includes("/pricing")||L.includes("onboarding")||L.includes("/verify-account")||D.push("/onboarding",{locale:H||"fr"})},[y,M,L,D]),(0,l.useEffect)(()=>{if(ee.isActive&&y?.user&&!y?.user?.pro&&!y?.user?.currentTeam&&z.get("promotionModalShown")!==new Date().toDateString()){let e=setTimeout(()=>{eE(!0)},2e3);return()=>clearTimeout(e)}},[y,ee.isActive]),(0,l.useEffect)(()=>{let e=e=>{if(!(e.metaKey||e.ctrlKey)||"/"!==e.key)return;let t=e.target,r=t?.tagName;t?.isContentEditable||"INPUT"===r||"TEXTAREA"===r||(e.preventDefault(),eq())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[eb,e$,eV]);let e5=(0,t.jsxs)("div",{className:"bg-white dark:bg-bgDark-840 w-80 md:w-[420px] max-h-[32rem] overflow-hidden flex flex-col",children:[(0,t.jsx)("div",{className:"px-5 py-4 border-b border-gray-100 dark:border-borderDark flex items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white text-base",children:f("notifications_title")||"Notifications"}),ec.filter(e=>!e.seen).length>0&&(0,t.jsx)("span",{className:"px-2 py-0.5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:ec.filter(e=>!e.seen).length})]})}),(0,t.jsxs)("div",{className:"overflow-y-auto flex-1 scrollbar-thin scrollbar-thumb-gray-200 dark:scrollbar-thumb-grayDark-700",children:[eu&&!ec[0]&&(0,t.jsx)("div",{className:"flex justify-center items-center py-16",children:(0,t.jsx)(u.SpinnerCircular,{size:36,thickness:180,color:"#C4A461"})}),!eu&&0===ec.length&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-6 text-center",children:[(0,t.jsx)("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-gray-50 to-gray-100 dark:from-grayDark-700 dark:to-grayDark-600 flex items-center justify-center mb-4 shadow-sm",children:(0,t.jsx)("svg",{className:"w-7 h-7 text-gray-400 dark:text-grayDark-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})})}),(0,t.jsx)("p",{className:"text-sm font-medium text-gray-600 dark:text-grayDark-300 mb
1-1",children:f("notifications_empty")||"Aucune notification"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 dark:text-grayDark-500 mb-0",children:f("notifications_empty_hint")||"Vous êtes à jour !"})]}),ec.map((e,r)=>(0,t.jsx)(d.Link,{href:e.link||"/",className:"block",children:(0,t.jsxs)("div",{className:`px-5 py-4 group cursor-pointer transition-all duration-150 relative ${!e.seen?"bg-gradient-to-r from-primary/5 to-transparent dark:from-primary/10 dark:to-transparent":"hover:bg-gray-50 dark:hover:bg-grayDark-700/30"} ${r!==ec.length-1?"border-b border-gray-100 dark:border-grayDark-700/30":""}`,children:[(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("div",{className:`flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${!e.seen?"bg-primary/10 dark:bg-primary/20":"bg-gray-100 dark:bg-grayDark-700"}`,children:(0,t.jsx)("svg",{className:`w-5 h-5 ${!e.seen?"text-primary":"text-gray-500 dark:text-grayDark-400"}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:`text-sm leading-relaxed ${!e.seen?"text-gray-900 dark:text-white font-medium":"text-gray-600 dark:text-grayDark-300"}`,children:(e=>{if(e.notificationType){let t=`${e.notificationType}`,r={...e.notificationData};if(e.notificationData.leagueLevel)try{r.league=v(`${e.notificationData.leagueLevel}`)}catch(e){}if(e.notificationType.includes("top3")&&r.position){let e=r.position;"fr"===H?r.position=1===e?"1er":`${e}e`:r.position=1===e?"1st":2===e?"2nd":3===e?"3rd":`${e}th`}try{let e=w(t,r);if(e!==t)return e}catch(e){}return e.message||"Nouvelle notification"}return e.message})(e)}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-1.5",children:[(0,t.jsx)("svg",{className:"w-3.5 h-3.5 text-gray-400 dark:text-grayDark-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,t.jsx)("span",{className:"text-xs text-gray-400 dark:text-grayDark-500",children:(0,i.default)(e.dateCreation).locale(H).calendar()[0].toUpperCase()+(0,i.default)(e.dateCreation).locale(H).calendar().slice(1)})]})]}),(0,t.jsx)("button",{className:"flex-shrink-0 self-start p-1.5 rounded-lg opacity-0 group-hover:opacity-100 transition-all duration-150 hover:bg-red-50 dark:hover:bg-red-900/30 text-gray-400 hover:text-red-500 dark:hover:text-red-400",onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),eJ(e.id)},children:ep?(0,t.jsx)(u.SpinnerCircular,{size:16,thickness:180,speed:100,color:"#ef4444"}):(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),!e.seen&&(0,t.jsx)("div",{className:"absolute top-4 left-1 w-2 h-2 rounded-full bg-primary shadow-sm shadow-primary/50"})]})},e.id))]})]});if(M&&m.needAuth&&(L.includes("/u/")||L.includes("/@")))return(0,t.jsx)(t.Fragment,{});let e4=null;return(y&&(e4=(0,t.jsxs)("ul",{children:[y&&y.user&&y.user.roles.includes("ROLE_SUPER_ADMIN")&&(0,t.jsx)(d.Link,{href:"/admin",className:"text-[#06050F]/60 dark:text-white hover:text-white",children:(0,t.jsxs)("li",{className:"dropdown-item flex items-center gap-3",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),f("userDropdown_administrationPanel")]})}),(y.user.roles.includes("ROLE_SUPER_ADMIN")||y.user.roles.includes("ROLE_ADMIN")||y.user.roles.includes("ROLE_INSTRUCTOR"))&&(0,t.jsx)(d.Link,{href:"/instru
1ctor",className:"text-[#06050F]/60 dark:text-white hover:text-white",children:(0,t.jsxs)("li",{className:"dropdown-item flex items-center gap-3",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.059 4.708a2.25 2.25 0 0 0-2.166-1.25a2.952 2.952 0 0 0-.51.096l-.446 3.74l3.118-.836a8.175 8.175 0 0 0 .289-.083a.25.25 0 0 0 .137-.238a8.315 8.315 0 0 0-.073-.292c-.19-.708-.26-.955-.35-1.137Zm-4.683 3.003l.447-3.743l-4.719 1.264l-.446 3.743l4.718-1.264ZM7.098 9.394l.446-3.743c-.817.219-1.401.379-1.85.544c-.474.174-.728.33-.904.505c-.279.28-.48.628-.582 1.009c-.064.24-.072.537.014 1.034c.063.362.167.79.31 1.338l2.566-.687ZM3.25 11.093c-.226-.843-.408-1.526-.506-2.094c-.104-.6-.129-1.141.015-1.678a3.75 3.75 0 0 1 .97-1.681c.394-.393.875-.643 1.447-.853c.554-.203 1.259-.392 2.132-.626l.78-.21a.746.746 0 0 1 .286-.076l5.972-1.6l.021-.006a.746.746 0 0 1 .286-.076c.474-.126.821-.21 1.142-.232a3.75 3.75 0 0 1 3.609 2.084c.164.332.272.736.43 1.328l.023.084l.012.046c.048.176.097.359.109.534a1.75 1.75 0 0 1-.973 1.684a2.826 2.826 0 0 1-.562.186L9.697 10.25h6.355c.898 0 1.648 0 2.242.08c.628.084 1.195.27 1.65.725c.456.456.642 1.023.726 1.65c.08.595.08 1.345.08 2.243v1.107c0 1.367 0 2.47-.117 3.337c-.12.9-.38 1.658-.982 2.26c-.602.601-1.36.86-2.26.981c-.866.117-1.969.117-3.336.117h-4.11c-1.368 0-2.47 0-3.337-.117c-.9-.12-1.658-.38-2.26-.981c-.602-.602-.86-1.36-.982-2.26c-.116-.867-.116-1.97-.116-3.337v-4.962Zm1.5.657V16c0 1.435.001 2.436.103 3.192c.099.734.28 1.122.556 1.399c.277.277.665.457 1.399.556c.755.101 1.756.103 3.192.103h4c1.435 0 2.436-.002 3.192-.103c.733-.099 1.122-.28 1.399-.556c.277-.277.457-.665.556-1.4c.101-.755.103-1.756.103-3.191v-1c0-.964-.002-1.612-.067-2.095c-.062-.461-.169-.659-.3-.789c-.13-.13-.327-.237-.789-.3c-.483-.065-1.13-.066-2.094-.066H4.75Zm8.448 2.83l.047.034l.042.03c.361.259.7.501.94.738c.27.265.523.623.523 1.118c0 .495-.252.852-.522 1.118c-.241.237-.58.48-.94.738l-.043.03l-.047.034c-.361.26-.706.506-1.001.652c-.315.155-.834.321-1.33-.029c-.43-.304-.533-.795-.574-1.138c-.043-.358-.043-.826-.043-1.358v-.094c0-.533 0-1 .043-1.358c.04-.343.144-.834.575-1.138c.495-.35 1.014-.185 1.329-.03c.295.146.64.394 1.001.653Zm-1.429.832c-.018.25-.02.593-.02 1.088c0 .495.002.838.02 1.088c.149-.097.34-.234.602-.421c.418-.3.658-.474.805-.619a.62.62 0 0 0 .046-.048a1.009 1.009 0 0 0-.046-.048c-.147-.145-.387-.32-.805-.619a18.297 18.297 0 0 0-.602-.421Z",clipRule:"evenodd"})}
1),f("userDropdown_instructorPanel")]})}),(y.user.roles.includes("ROLE_SUPER_ADMIN")||y.user.roles.includes("ROLE_ADMIN")||y.user.roles.includes("ROLE_MENTOR"))&&(0,t.jsx)(d.Link,{href:"/mentor",className:"text-[#06050F]/60 dark:text-white hover:text-white",children:(0,t.jsxs)("li",{className:"dropdown-item flex items-center gap-3",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"})}),f("userDropdown_mentorPanel")]})}),(y.user.roles.includes("ROLE_SUPER_ADMIN")||y.user.roles.includes("ROLE_ADMIN")||y.user.roles.includes("ROLE_PEDAGOGY"))&&(0,t.jsx)(d.Link,{href:"/pedagogy",className:"text-[#06050F]/60 dark:text-white hover:text-white",children:(0,t.jsxs)("li",{className:"dropdown-item flex items-center gap-3",children:[(0,t.jsx)(_.default,{name:"clipboard-text-linear",className:"w-4 h-4"}),f("userDropdown_pedagogyPanel")]})}),y.user.hasVerifiedEmail&&(y.user.roles.includes("ROLE_SUPER_ADMIN")||y.user.roles.includes("ROLE_ADMIN"))&&(0,t.jsx)(d.Link,{href:"/writer",className:"text-[#06050F]/60 dark:text-white hover:text-white",children:(0,t.jsxs)("li",{className:"dropdown-item flex items-center gap-3",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.943 1.25h.114c2.309 0 4.118 0 5.53.19c1.444.194 2.584.6 3.479 1.494c.793.793 1.203 1.78 1.42 3.005c.215 1.203.254 2.7.262 4.558a.75.75 0 0 1-1.5.006a73.32 73.32 0 0 0-.025-1.753H7.011a.73.73 0 0 1-.024 0h-4.21A120.56 120.56 0 0 0 2.75 12c0 2.378.002 4.086.176 5.386c.172 1.279.5 2.05 1.069 2.62c.484.484 1.112.79 2.067.978c.976.19 2.235.246 3.944.26a.75.75 0 1 1-.012 1.5c-1.704-.014-3.092-.067-4.22-.288c-1.15-.226-2.084-.634-2.84-1.39c-.895-.895-1.3-2.035-1.494-3.48c-.19-1.411-.19-3.22-.19-5.529v-.114c0-2.309 0-4.118.19-5.53c.194-1.444.6-2.584 1.494-3.479c.895-.895 2.035-1.3 3.48-1.494c1.411-.19 3.22-.19 5.529-.19Zm-9.086 6h3.731l2.856-4.488c-1.127.017-2.052.06-2.83.164c-1.279.172-2.05.5-2.62 1.069c-.569.57-.896 1.34-1.068 2.619c-.027.202-.05.413-.07.636Zm8.35-4.5a.753.753 0 0 1-.074.153L8.366 7.25h4.722l2.83-4.448C14.857 2.75 13.576 2.75 12 2.75h-.793Zm6.391.207L14.866 7.25h6.277c-.033-.382-.076-.73-.133-1.048c-.184-1.036-.498-1.7-1.005-2.207c-.537-.538-1.254-.86-2.407-1.038Zm.85 10.031a2.52 2.52 0 1 1 3.564 3.563l-4.282 4.282a6.38 6.38 0 0 1-.572.532a3.698 3.698 0 0 1-.683.423c-.206.098-.422.17-.732.273l-1.878.626a1.227 1.227 0 0 1-1.552-1.552l.626-1.878c.103-.31.175-.526.273-.732c.116-.242.258-.472.423-.683c.14-.18.301-.341.532-.572l4.282-4.282Zm2.503 1.06a1.02 1.02 0 0 0-1.442 0l-.131.132l.016.05c.082.236.238.548.533.843a2.223 2.223 0 0 0 .893.55l.131-.132a1.02 1.02 0 0 0 0-1.442Zm-1.265 2.708a3.756 3.756 0 0 1-1.442-1.442L15.258 18.3c-.272.273-.364.366-.44.464a2.193 2.193 0 0 0-.252.406c-.053.113-.096.236-.218.601l-.345 1.037l.189.19l1.037-.347c.365-.121.488-.164.6-.217a2.21 2.21 0 0 0 .407-.252c.098-.076.191-.168.464-.44l2.986-2.986Z",clipRule:"evenodd"})}),f("userDropdown_writerPanel")]})}),(0,t.jsx)(d.Link,{href:"/affiliate",className:"text-[#06050F]/60 dark:text-white hover:text-white",children:(0,t.jsxs)("li",{className:"dropdown-item flex items-center gap-3",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M11.943 1.25c-2.309 0-4.118 0-5.53.19c-1.444.194-2.584.6-3.479 1.494c-.895.895-1.3 2.035-1.494 3.48c-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53c.194 1.444.6 2.584 1.494 3.479c.895.895 2.035 1.3 3.48 1.494c1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19c1.444-.194 2.584-.6 3.479-1.494c.895-.895 1.3-2.035 1.494-3.48c.19-1.411.19-3.22.19-5.529v-.114c0-2.309 0-4.118-.19-5.53c-.194-1.444-.6-2.584-1.494-3.479c-.895-.895-2.035-1.3-3.48-1.494c-1.411-.19-3.22-.19-5.529-.19zm-.693 1.5c-1.994.002-3.477.02-4.636.176c-1.279.172-2.05.5-2.62 1.069c-.569.57-.896 1.34-1.068 2.619c-.155 1.159-.174 2.642-.176 4.636h4.164a4 4 0 0 1-.756-1.527C5.619 7.57 7.57 5.619 9.723 6.158a4 4 0 0 1 1.527.756zm-8.5 10c.002 1.994.02 3.477.176 4.636c.172 1.279.5 2.05 1.069 2.62c.57.569 1.34.896 2.619 
11.068c1.159.155 2.642.174 4.636.176v-7.126A4.75 4.75 0 0 1 7 16.75a.75.75 0 0 1 0-1.5a3.25 3.25 0 0 0 3.163-2.5zm10 8.5c1.994-.002 3.477-.02 4.636-.176c1.279-.172 2.05-.5 2.62-1.069c.569-.57.896-1.34 1.068-2.619c.155-1.159.174-2.642.176-4.636h-7.413A3.25 3.25 0 0 0 17 15.25a.75.75 0 0 1 0 1.5a4.75 4.75 0 0 1-4.25-2.626zm8.5-10h-4.164a4 4 0 0 0 .757-1.527c.538-2.153-1.413-4.104-3.565-3.565a4 4 0 0 0-1.528.756V2.75c1.994.002 3.477.02 4.636.176c1.279.172 2.05.5 2.62 1.069c.569.57.896 1.34 1.068 2.619c.155 1.159.174 2.642.176 4.636m-8.5 0v-1.22a2.5 2.5 0 0 1 1.891-2.417a1.44 1.44 0 0 1 1.746 1.746a2.5 2.5 0 0 1-2.415 1.891zm-1.5-1.223a2.5 2.5 0 0 0-1.891-2.414a1.44 1.44 0 0 0-1.746 1.746a2.5 2.5 0 0 0 2.415 1.891h1.222z",clipRule:"evenodd"})}),f("userDropdown_affiliate")]})}),(0,t.jsx)(d.Link,{href:"/account",className:"text-[#06050F]/60 dark:text-white hover:text-white",children:(0,t.jsxs)("li",{className:"dropdown-item flex items-center gap-3",children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),f("userDropdown_account")]})}),y&&y.user&&y.user.darkMode?(0,t.jsxs)("li",{onClick:eX,className:"dropdown-item flex items-center gap-3 text-[#06050F]/60 dark:text-white hover:text-white",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}),f("userDropdown_lightMode")]}):(0,t.jsxs)("li",{onClick:eX,className:"dropdown-item flex items-center gap-3 text-[#06050F]/60 dark:text-white hover:text-white",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}),f("userDropdown_darkMode")]}),(0,t.jsxs)("li",{onClick:()=>{if(n.toast.success(f("UserLayout_bye",{firstName:y.user.firstName})),"/articles"==L||"/r/[slug]"==L||"/courses"==L||"/course/[slug]"==L)(0,r.signOut)({redirect:!1});else{let e="https://believemy.com";"fr"!==H&&(e=`${e}/${H}`),(0,r.signOut)({callbackUrl:e})}},className:"dropdown-item flex items-center gap-3 text-[#06050F]/60 dark:text-white hover:text-white",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),f("userDropdown_logout")]})]})),L.includes("/series/[slug]/[seasonNumber]/[episodeNumber]")||/^\/workshops\/[^/]+\/play/.test(L)||"/links"===L||/^\/code\/[^/]+/.test(L)||/^\/accelerators\/[^/]+\/admission/.test(L)||/^\/accelerators\/[^/]+\/notebook/.test(L)||"/press"===L||"/support"===L||L.startsWith("/rdv")||(L.startsWith("/call/")||L.startsWith("/appel/"))&&!y||L.includes("/account/invoice")||L.includes("/documents")||L.includes("/entry-document")||L.includes("/login")||L.includes("/signup")||L.includes("/verify-account")||L.includes("/onboarding")||L.includes("/security/forgotten-password")||L.includes("/verified")||"/accelerators/rocket"==L&&!y||"/accelerators/python"==L&&!y||L.includes("/invitations")||"/"===L&&!y)?(0,t.jsx)(t.Fragment,{children:m.children}):L&&(q.includes(L)||J.test(L)||Y.some(e=>e.test(L)))&&!y?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(K.default,{}),(0,t.jsx)("div",{className:"pt-20","data-chrome":"vitrine",children:m.children})]}):(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Suspense,{fallback:null,children:(0,t.jsx)(U,{onMaintenanceChange:e=>{eF(e)}})}),(0,t.jsxs)("div",{className:`flex flex-col h-screen overflow-hidden [&.dark_.react-loading-skeleton]:[--base-color:#2C3A46] [&.dark_.react-loading-skeleton]:[--highlight-color:#38444D] ${y&&y.user&&y.user.darkMode&&"dark"}`,children:[!eW&&(0,t.jsx)("div",{className:`lg:hidden block fixed inset-0 transition-opacity duration-300 ease-in-out ${eS?"bg-black/50 pointer-events-auto cursor-pointer":"bg-black/0 pointer-events-none"}`,style:{zIndex:1e3},onClick:()=>e_(!1),children:(0,t.jsx)("div",{className:`fixed top-0 left-0 bottom-0 h-full transition-transform duration-300 ease-out bg-white dark:bg-bgDark-500 cursor-auto ${eS?"translate-x-0":"-translate-x-full"}`,onClick:e=>e.stopPropagation(),style:{boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},children:(0,t.jsx)(E,{page:ez,session:y,sideNavIsOpen:eS,promoConfig:ee})})}),(0,t.jsxs)("div",{className:"flex w-full relative h-full",children:[!eW&&(0,t.jsx)("div",{className:`h-full lg:block hidden transition-all duration-[400ms] ease-sidebar ${eK?"w-[230px] ml-0 opacity-100":"w-[58px] ml-0 opacity-100"}`,children:(0,t.jsx)(E,{page:ez,session:y,sessionLoading:M,promoConfig:ee,onCollapse:()=>{eK&&eq()},onExpand:()=>{eK||eq()},compact:!eK})}),(0,t.jsx)("div",{className:"relative flex-1 overflow-hidden max-w-full h-full",children:(0,t.jsx)("div",{className:"font-geistSans relative h-full",children:(0,t.jsx)("div",{className:"bg-white dark:bg-bgDark-700 transition-all duration-150 flex flex-col h-full",children:(0,t.jsxs)("div",{className:"overflow-x-hidden overflow-y-auto flex-1",ref:T,children:[!m.withoutHeader&&(0,t.jsx)("div",{className:"sticky top-0 z-50 h-[65px]",children:(0,t.jsx)("div",{className:"relative max-w-full z-50",children:(0,t.jsxs)("header",{className:"transition-all duration-150 sticky background-blur-white dark:!bg-bgDark-300/70 h-[65px] left-0 top-0 right-0 z-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between z-40 transition-all duration-1000 pt-3 px-3 dark:text-white",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[!eW&&(0,t.jsx)("div",{onClick:()=>{e_(!eS),eQ()}
1,className:"hover:text-primary cursor-pointer duration-100 lg:hidden block shrink-0",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.75 7a.75.75 0 0 1-.75.75H4a.75.75 0 0 1 0-1.5h16a.75.75 0 0 1 .75.75Zm0 5a.75.75 0 0 1-.75.75H4a.75.75 0 0 1 0-1.5h16a.75.75 0 0 1 .75.75Zm0 5a.75.75 0 0 1-.75.75H4a.75.75 0 0 1 0-1.5h16a.75.75 0 0 1 .75.75Z",clipRule:"evenodd"})})}),(0,t.jsxs)("div",{className:"md:hidden flex items-center gap-1 shrink-0",children:[(0,t.jsx)(d.Link,{href:"/",children:(0,t.jsx)(h.default,{icon:!0})}),(0,t.jsx)(x.default,{})]}),eW&&(0,t.jsx)("div",{className:"md:block hidden",children:(0,t.jsx)(d.Link,{href:"/",className:"hover:opacity-80 transition-opacity",children:(0,t.jsx)(h.default,{icon:!0})})}),(0,t.jsx)("div",{className:"md:block hidden shrink-0",children:(0,t.jsx)(el,{})}),(0,t.jsx)(et,{}),m.optionalMenu&&m.optionalMenu]}),M?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(b.default,{width:100,height:30})}):(0,t.jsx)(t.Fragment,{children:y?(0,t.jsxs)("div",{className:"flex items-center space-x-3 z-50 shrink-0",children:[(0,t.jsx)(Z,{session:y}),(0,t.jsxs)("div",{className:"md:flex hidden items-center bg-gray-50/80 dark:bg-bgDark-700 border border-gray-200/70 dark:border-bgDark-300 rounded-full",children:[(0,t.jsx)(B.default,{session:y,hoverRounded:"rounded-l-full rounded-r-none"}),(0,t.jsx)("div",{className:"w-px h-3.5 bg-gray-200 dark:bg-bgDark-300 self-center"}),(0,t.jsx)(A.default,{session:y,compact:!0,hoverRounded:y?.user?.repsOnWeb?"rounded-none":"rounded-r-full rounded-l-none"}),y?.user?.repsOnWeb&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-px h-3.5 bg-gray-200 dark:bg-bgDark-300 self-center"}),(0,t.jsx)($,{session:y,hoverRounded:"rounded-r-full rounded-l-none"})]})]}),(0,t.jsx)(d.Link,{href:"/affiliate",title:f("topbar_inviteEarn"),"aria-label":f("topbar_inviteEarn"),className:"group md:flex hidden items-center justify-center w-9 h-9 rounded-full hover:bg-gray-100 dark:hover:bg-bgDark-700 duration-150",children:(0,t.jsx)(_.default,{name:"gift-linear",className:"w-[22px] h-[22px] text-gray-400 dark:text-grayDark-300 group-hover:text-primary duration-150"})}),(0,t.jsx)("div",{className:"md:hidden block",children:(0,t.jsx)(el,{})}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)(d.Link,{href:"/messenger","aria-label":"Messages",className:"group flex items-center justify-center w-9 h-9 rounded-full hover:bg-gray-100 dark:hover:bg-bgDark-700 duration-150 text-gray-400 dark:text-grayDark-300",children:[R>0&&(0,t.jsx)("div",{className:"absolute -top-1 -right-1 text-xs text-white bg-red-400 rounded-full w-5 h-5 flex justify-center items-center z-10",children:R}),(0,t.jsx)(_.default,{name:"chat-round-line-linear",className:"w-[22px] h-[22px] group-hover:text-primary duration-150"})]})}),(0,t.jsxs)("div",{className:"relative",children:[y.user.unreadedNotifications>0&&(0,t.jsx)("div",{className:"absolute -top-1 -right-1 text-xs text-white bg-red-400 rounded-full w-5 h-5 flex justify-center items-center z-10",children:y.user.unreadedNotifications}),(0,t.jsx)("div",{className:`group flex items-center justify-center w-9 h-9 rounded-full duration-150 cursor-pointer ${ex?"bg-gray-100 dark:bg-bgDark-700":"hover:bg-gray-100 dark:hover:bg-bgDark-700"}`,onClick:()=>{ex||eY(!0),em(!ex),ew(!1)},children:(0,t.jsx)(_.default,{name:"bell-linear",className:`w-[22px] h-[22px] duration-150 ${ex?"text-primary":"text-gray-400 dark:text-grayDark-300 group-hover:text-primary"}`})}),ex&&(0,t.jsxs)("div",{className:"absolute top-full mt-3 z-[100] -right-[76px] md:right-0 animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,t.jsx)("div",{className:"absolute -top-2 right-[86px] md:right-[10px] w-4 h-4 bg-white dark:bg-bgDark-840 border-l border-t border-gray-100 dark:border-borderDark rotate-45 rounded-tl-[3px]"}),(0,t.jsx)("div",{className:"relative rounded-2xl shadow-xl shadow-black/10 dark:shadow-black/30 border border-gray-100 dark:border-borderDark overflow-hidden",children:e5})]})]}),!y.user.currentTeam&&!y.user.pro&&!y.user.essential&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"border-l h-5 w-px lg:block hidden border-gray-200/70 dark:border-bgDark-300"}),(0,t.jsxs)(d.Link,{href:"/pricing",className:"relative group lg:block hidden",children:[ee.isActive&&(0,t.jsxs)("div",{className:"absolute -top-2 -right-2 z-10 bg-tertiary text-white text-xs font-bold px-2 py-0.5 rounded-full shadow-lg transform rotate-12",children:["-",ee.discount,"%"]}),(0,t.jsx)("div",{className:"px-4 py-2 rounded-full text-sm font-medium bg-primary text-white hover:bg-primary/90 duration-150 whitespace-nowrap btn-3d lip-orange",children:ee.isActive?ee.buttonText:ee.fallbackText}),ee.isActive&&(0,t.jsx)("div",{className:"absolute -bottom-8 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none",children:(0,t.jsxs)("div",{className:"bg-slate-800 dark:bg-grayDark-700 text-white text-xs px-2 py-1 rounded shadow-lg whitespace-nowrap relative",children:[(0,t.jsx)("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-b-4 border-transparent border-b-slate-800 dark:border-b-grayDark-700"}),ee.text]})})]})]}),(0,t.jsxs)("div",{className:"ml-2 flex items-center gap-1",style:{lineHeight:0},children:[(0,t.jsx)("div",{children:(0,t.jsx)(g.default,{src:y.user.photo,alt:y.user.firstName,width:44,height:44,className:"rounded-full object-cover cursor-pointer",onClick:()=>{ew(!ek),em(!1)},style:{width:44,height:44}})}),(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 text-gray-400 dark:text-grayDark-400 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:()=>{ew(!ek),em(!1)},children:ek?(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.512 8.43a.75.75 0 0 1 .976 0l7 6a.75.75 0 1 1-.976 1.14L12 9.987l-6.512 5.581a.75.75 0 1 1-.976-1.138l7-6Z",clipRule:"evenodd"}):(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,t.jsx)(d.Link,{href:"/pricing",children:(0,t.jsx)("div",{className:"text-sm text-black/70 md:block hidden font-semibold dark:text-white/70 p-1.5 hover:bg-gray-50 rounded duration-100",children:"Believemy Pro"})}),(0,t.jsx)("div",{className:"border-l mx-3 h-5 w-[1px] md:block hidden"}),(0,t.jsx)(d.Link,{href:"/login",children:(0,t.jsx)("div",{className:"text-sm text-black/70 font-semibold dark:text-white/70 p-1.5 hover:bg-gray-50 rounded duration-100",children:f("UserLayout_login")})}),(0,t.jsx)(d.Link,{href:"/signup",children:(0,t.jsx)(p.default,{type:"pop",small:!0,children:f("UserLayout_signup")})})]})})]}),ek&&(0,t.jsxs)("div",{className:"absolute right-3 text-sm z-[100] mt-3 animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,t.jsx)("div",{className:"absolute -top-2 right-[34px] w-4 h-4 bg-white dark:bg-bgDark-840 border-l border-t border-gray-100 dark:border-borderDark rotate-45 rounded-tl-[3px]"}),(0,t.jsx)("div",{className:"relative rounded-xl bg-white dark:bg-bgDark-840 text-black dark:text-white w-52 overflow-hidden shadow-xl shadow-black/10 dark:shadow-black/30 border border-gray-100 dark:border-borderDark",children:e4})]})]})})}),(0,t.jsx)(S.default,{isOpen:eP&&!!eZ,onClose:()=>{eG(!1),(0,es.writeLocal)("sidebar-hint-dismissed","1")},maxWidthClass:"sm:max-w-sm",zIndexClass:"z-50",children:(0,t.jsxs)("div",{className:"p-6 text-center",children:[(0,t.jsx)("div",{className:"mx-auto -mt-16 mb-2 w-[180px]",children:(0,t.jsx)(eo,{src:eZ,loop:!0,autoplay:!0,style:{width:180,height:180}})}),(0,t.jsx)("p",{className:"mb-1 text-lg font-semibold text-gray-900 dark:text-white",children:"Nouveau"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-grayDark-300 !mb-0",children:"La barre latérale se ferme automatiquement pour vous offrir plus d'espace pendant vos formations. Vous pouvez la rouvrir à tout moment via le menu."}),(0,t.jsx)("button",{onClick:()=>{eG(!1),(0,es.writeLocal)("sidebar-hint-dismissed","1")},className:"mt-5 w-full rounded-full bg-primary px-6 py-2.5 text-sm font-medium text-white transition-colors hover:bg-primary/90 btn-3d lip-orange",children:"Compris !"}),(0,t.jsx)(d.Link,{href:"/account",onClick:()=>{eG(!1),(0,es.writeLocal)("sidebar-hint-dismissed","1")},className:"mt-3 inline-block text-xs text-gray-400 hover:text-gray-600 dark:text-grayDark-500 dark:hover:text-grayDark-300 transition-colors",children:"Modifier dans les paramètres"})]})}),(0,t.jsx)(X.ExtraPropProvider,{extraProp:T,children:m.children})]})})})})]})]}),(0,t.jsx)(n.ToastContainer,{position:"bottom-right",autoClose:8e3,theme:"dark",closeOnClick:!0}),(0,t.jsx)(ei,{open:eR,onClose:()=>{eE(!1);let e=new Date().toDateString(),t=new Date;t.setHours(23,59,59,999),z.set("promotionModalShown",e,{path:"/",expires:t})},endDate:ee.endDate,userSession:y,promotionName:"en"===H?ee.nameEn:ee.nameFr}),(0,t.jsx)(en,{isOpen:eC,onClose:()=>
1eM(!1),teamName:y?.user?.currentTeam?.name,teamId:y?.user?.currentTeam?.id})]})}],972687)}]);
2
3//# sourceMappingURL=2k88spddu-dqq.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.