1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1bc21cf2-129b-458f-ab65-394647613b4c",e._sentryDebugIdIdentifier="sentry-dbid-1bc21cf2-129b-458f-ab65-394647613b4c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9924],{9924:(e,t,l)=>{l.r(t),l.d(t,{config:()=>x,default:()=>k});var a=l(8501),n=l(41033),r=l(37909),i=l(33834),s=l(58e3),o=l(57259),c=l(75066),d=l(54741),u=l(46887),m=l(81278),h=l(55729),p=l(81300),f=l(72837);let x={id:"vactory_header:variant7",lazy:!0},g=(0,o.getEnabledLanguages)({withLabels:!0}),b=({mainMenu:e,logo:t,dfComponents:l})=>{let[i,o]=(0,h.useState)(null),[u,x]=(0,h.useState)(null),[g,b]=(0,h.useState)(null),w=(0,m.useRouter)().locale,k=(0,s.useMenu)(e),{t:N}=(0,s.useI18n)(),{headerState:Y}=(0,s.useHeader)(40),_=(0,h.useRef)(null);(0,h.useEffect)(()=>{u||g?document.body.classList.add("overflow-y-hidden"):document.body.classList.remove("overflow-y-hidden")},[u,g]);let F=e=>{_.current&&!_.current.contains(e.target)&&o(null)},D=e=>{"Escape"===e.key&&o(null)};(0,h.useEffect)(()=>{u?document.body.classList.add("max-sm:overflow-hidden"):document.body.classList.remove("max-sm:overflow-hidden")},[u]),(0,h.useEffect)(()=>(document.addEventListener("mousedown",F),document.addEventListener("keydown",D),()=>{document.removeEventListener("mousedown",F),document.removeEventListener("keydown",D)}),[]);let[T,C]=(0,h.useState)(null);return(0,a.Y)("div",{className:(0,d.vclsx)("translate-transform fixed left-0 top-0 z-[80] h-[72px] w-full duration-500 ease-in-out lg:h-[100px]",`${"top"===Y?"translate-y-[0px] bg-transparent text-white":"bypassing_header"===Y?" -translate-y-[72px] bg-transparent text-white lg:-translate-y-[100px]":"scroll_down_after_header"===Y?" -translate-y-[72px] bg-primary-900 text-black lg:-translate-y-[100px]":"scroll_top"===Y?"translate-y-[0px] bg-primary-900 text-black":"translate-y-[0px] bg-transparent text-white"} `),children:(0,a.Y)("header",{className:"h-full",children:(0,a.FD)("nav",{className:"h-full px-4 sm:px-6 lg:px-8 lg:py-6","aria-label":"Top",children:[(0,a.FD)("div",{className:"relative flex h-full w-full items-center justify-between",children:[(0,a.Y)("button",{className:"lg:hidden",onClick:()=>u?x(!1):x(!0),children:(0,a.Y)(f.Icon,{id:"burger-menu",className:"h-5 w-5 text-white"})}),(0,a.Y)("div",{className:(0,d.vclsx)("absolute left-0 top-[71px] z-[100] h-0 w-0 border-b-[15px] border-l-[15px] border-r-[15px] border-b-white border-l-transparent border-r-transparent transition-all duration-500 ease-in-out"),style:{transform:`translateY(-${10*(null!==i)}px) translateX(${T?.position?.left||0}px) scale(${+(null!==i)})`,opacity:`${+(null!==i)}`,display:!T?.show&&"none"}}),(0,a.FD)("div",{className:"flex w-full flex-grow items-center",children:[(0,a.FD)(f.Link,{href:`/${w}`,className:"mx-auto flex-shrink-0 lg:mx-0",children:[(0,a.Y)(f.Text,{as:"span",className:"sr-only",children:"Factory"}),t.src&&(0,a.Y)(f.Image,{className:"h-10 w-auto",...t,alt:t.alt,priority:"high",disablePlaceholder:!0})]}),(0,a.Y)("ul",{className:"max-lg::hidden ml-10 mr-8 flex w-full items-center justify-start gap-6 tracking-wider",ref:_,children:k.map((e,t)=>(0,a.FD)("li",{"data-show":Array.isArray(e?.below),onMouseEnter:e=>{let l,a,n,r,s,c;null===i?o(t):o(null),l=e.currentTarget,a=JSON.parse(l?.dataset?.show)||!1,s=(r=(n=l.getBoundingClientRect()).width)/2,C({position:{top:(c={top:n.top+window.scrollY,left:n.left+window.scrollX-32-15}).top,left:c.left+s},width:r,show:a}),o(t)},children:[(0,a.Y)("span",{role:"button",tabIndex:0,onClick:()=>{o(null),b(null),x(null)},onKeyDown:()=>{o(null),b(null),x(null)},className:(0,d.vclsx)(`${"top"===Y?"translate-y-[0px] ":"bypassing_header"===Y||"scroll_down_after_header"===Y?" translate-y-[72px] lg:translate-y-[100px] ":"translate-y-[0px]"} `,"fixed inset-0 z-[1] h-screen w-screen bg-[rgba(0,0,0,0.05)] transition-transform duration-500",i==t?"block":"hidden")}),e.below?(0,a.FD)(f.Text,{as:"span",className:"relative z-[2] flex cursor-pointer items-center gap-2 font-medium tracking-[0px] text-white transition-opacity duration-200 ease-in-out first-letter:inline-flex xl:text-[16
1px] max-xl:text-[16px]",variant:"custom",children:[e.title,(0,a.Y)(f.Icon,{id:"chevron-down",className:(0,d.vclsx)("h-[15px] w-[15px]","fill-current transition-transform duration-200 ease-in-out",i===t?"rotate-180":"rotate-0")})]},e.id):(0,a.Y)(a.FK,{children:(0,a.Y)(f.Link,{href:e.url,className:"relative z-[2] font-medium tracking-[0px] text-white transition-opacity duration-200 ease-in-out hover:underline xl:text-[16px] max-xl:text-[16px]",onClick:()=>o(null),children:e.title},e.id)}),e.below&&(0,a.FD)("ul",{className:(0,d.vclsx)("absolute left-0 right-0 top-[76px] z-[100] w-full overflow-hidden bg-white px-7 py-6 text-black shadow-lg xl:px-10",i===t?"block":"hidden"),children:[(0,a.Y)("button",{className:"absolute right-3 top-3 bg-transparent",onClick:()=>{i===t?o(null):o(t),b(null),x(null)},children:(0,a.Y)(f.Icon,{id:"close",className:"h-4 w-4"})}),e.below.map((e,t)=>e?.injectedTemplate?.widget_id?(0,a.Y)(c.ParagraphsTemplate,{Widgets:p.q,id:e?.injectedTemplate?.widget_id,settings:JSON.parse(e?.injectedTemplate?.widget_data)},t):e.url?(0,a.Y)("li",{className:"mb-3 w-fit text-base font-semibold hover:text-primary hover:underline",children:(0,a.Y)(f.Link,{href:e.url||"#",onClick:()=>o(null),children:e.title},e.id||t)}):null)]})]},t))})]}),(0,a.FD)("div",{className:"max-lg::hidden flex items-center space-x-4",children:[l.map((e,t)=>e.link.href&&(0,n.n)(f.Button,{...e.link,key:t,className:"z-[2]"},e.link.title)),(0,a.Y)(y,{}),(0,a.Y)(v,{})]})]}),(0,a.FD)(r.e,{as:"div",show:!!u,enter:"transition ease-out duration-300",enterFrom:"transform opacity-0 -translate-x-[345px]",enterTo:"transform opacity-100 translate-x-0",leave:"transition ease-in duration-300",leaveFrom:"transform opacity-100 translate-x-0",leaveTo:"transform opacity-0 -translate-x-[345px]",className:"animate fixed bottom-0 left-0 right-0 top-0 z-[99] flex h-screen w-full flex-col items-start lg:hidden",children:[(0,a.FD)("div",{className:"relative flex h-[72px] w-full items-center justify-between gap-4 bg-primary-900 px-4 text-white",children:[(0,a.Y)("button",{onClick:()=>{u?x(!1):x(!0),b(null),o(null)},children:(0,a.Y)(f.Icon,{id:"close",className:"h-4 w-4"})}),(0,a.Y)(y,{})]}),(0,a.FD)("ul",{className:"relative flex h-[calc(100%-72px)] w-full flex-col overflow-y-scroll bg-white text-black",children:[k.map((e,t)=>(0,a.FD)("li",{className:"border-b border-gray-100",children:[e.below?(0,a.FD)(f.Text,{as:"span",variant:"custom",className:(0,d.vclsx)("inline-flex w-full cursor-pointer items-center justify-between gap-3 px-5 py-4"),onClick:()=>{b(t)},children:[(0,a.Y)("span",{children:e.title}),(0,a.Y)(f.Icon,{id:"chevron-right",className:"h-3.5 w-3.5 flex-shrink-0 fill-current"})]},e.id):(0,a.Y)(f.Link,{href:e.url,className:(0,d.vclsx)("inline-flex w-full items-center justify-between gap-3 px-5 py-4"),onClick:()=>{b(null),o(null),x(null)},children:e.title},e.id),e.below&&(0,a.FD)(r.e,{as:"div",show:g===t,enter:"transition ease-out duration-300",enterFrom:"transform opacity-0 -translate-x-full",enterTo:"transform opacity-100 translate-x-0",leave:"transition ease-in duration-300",leaveFrom:"transform opacity-100 translate-x-0",leaveTo:"transform opacity-0 -translate-x-full",className:"absolute left-0 top-0 z-[100] h-full w-full bg-white",children:[(0,a.FD)(f.Text,{className:"inline-flex w-full cursor-pointer items-center justify-start gap-2 border-b border-gray-100 px-5 py-4 font-medium",onClick:()=>{b(null)},children:[(0,a.Y)(f.Icon,{id:"chevron-left",className:"h-3.5 w-3.5 flex-shrink-0 fill-current"}),(0,a.Y)("span",{children:N("Nx:Return")})]}),(0,a.Y)("ul",{className:"flex flex-col gap-3 p-6",children:e.below.map((e,t)=>e?.injectedTemplate?.widget_id?(0,a.Y)("div",{onClick:()=>{b(null),o(null),x(null)},onKeyDown:()=>{b(null),o(null),x(null)},role:"button",tabIndex:0,children:(0,a.Y)(c.ParagraphsTemplate,{Widgets:p.q,id:e?.injectedTemplate?.widget_id,settings:JSON.parse(e?.injectedTemplate?.widget_data)})},t):e.url?(0,a.Y)("li",{children:(0,a.Y)(f.Link,{href:e.url||"#",onClick:()=>{b(null),o(null),x(null)},children:e.title},e.id||t)}):null)})]})]},t)),(0,a.FD)("div",{className:"mt-auto flex flex-col items-center justify-center gap-4 py-5",children:[l.map((e,t)=>e.link.title&&(0,n.n)(f.Button,{...e.link,key:t,className:"z-[2]"},e.link.title)),(0,a.Y)(v,{})]})]})]})]})})})},y=()=>{let e=(0,m.useRouter)().locale,{path_18n:t}=(0,s.useNode)(),l=(0,h.useRef)(null);return(0,a.FD)(i.W1,{as:"div",className:"relative inline-block text-left",children:[(0,a.Y)("div",{children:(0,a.FD)(i.IU,{ref:l,className:"inline-flex w-full justify-center rounded-md bg-black bg-opacity-20 px-4 py-2 text-sm font-medium text-white hover:bg-opacity-30 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75","data-testid":"switch-locale-button",children:[e.toUpperCase(),(0,a.Y)(f.Icon,{id:"chevron-down",className:"-mr-1 ml-2 h-5 w-5 text-primary-200 hover:text-primary-100","aria-hidden":"true"})]})}),(0,a.Y)(r.e,{enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,a.Y)(i.c,{className:"absolute right-0 z-10 mt-2 w-20 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,a.Y)("div",{className:"px-1 py-1 ",children:g?.map((e,n)=>(0,a.Y)(i.Dr,{as:"div",children:({focus:r})=>{let i=t[e.code]||"#.";return(0,a.Y)("a",{onClick:()=>{(0,o.dlPush)("S\xe9lection langue",{Langue:e.code}),l?.current?.click()},locale:!1,href:i,className:`${r?"bg-primary-500 text-white":"text-gray-900"} group flex w-full items-center rounded-md px-2 py-2 text-sm`,"data-testid":`switch-locale-item-${e.code}`,children:e.label},n)}},e.code))})})})]})},w=({data:e,signOut:t,accountUrl:l})=>{let n=[{name:"Settings",href:l},{name:"Sign out",href:"#.",onClick:()=>{t().then(()=>{u.A.remove("isAuth")})}}];return(0,a.FD)(i.W1,{as:"div",className:"relative ml-4 inline-block flex-shrink-0",children:[(0,a.Y)("div",{children:(0,a.FD)(i.IU,{className:"flex rounded-full bg-gray-800 text-sm text-white focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800",children:[(0,a.Y)(f.Text,{as:"span",className:"sr-only",children:"Open user menu"}),e.user?.avatar?(0,a.Y)(f.Avatar,{src:e.user.avatar,size:"normal",alt:"Me"}):(0,a.Y)(f.Avatar,{variant:"placeholder",size:"normal"})]})}),(0,a.Y)(r.e,{enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,a.FD)(i.c,{className:"absolute right-0 z-10 mt-2 w-48 origin-top-right divide-y divide-gray-100 rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[(0,a.Y)("div",{className:"py-1",children:(0,a.Y)(i.Dr,{children:(0,a.Y)(f.Text,{as:"span",className:"block px-4 py-2 text-sm font-bold text-gray-900",children:e.user.full_name})})}),(0,a.Y)("div",{className:"py-1",children:n?.map((e,t)=>(0,a.Y)(i.Dr,{children:({focus:l})=>(0,a.Y)(f.Link,{href:e?.href,children:(0,a.Y)("div",{onClick:e?.onClick,onKeyDown:t=>"Enter"===t.key&&e?.onClick,role:"button",tabIndex:0,className:(0,d.vclsx)(l?"bg-gray-100 text-gray-900":"text-gray-700","block rounded-md px-4 py-2 text-sm"),children:e.name})},t)},e.name))})]})})]})},v=()=>{let{t:e}=(0,s.useI18n)(),{signOut:t,loginUrl:l,accountUrl:n,profile:r,isAuthenticated:i}=(0,s.useAccount)();return i?(0,a.Y)(w,{data:r,accountUrl:n,signOut:t}):(0,a.Y)(a.FK,{children:(0,a.Y)(f.Link,{href:l,className:"inline-block whitespace-nowrap rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-primary-600 hover:bg-primary-50",children:e("Nx:Sign in")})})},k=({data:e})=>{let t={mainMenu:e?.extra_field?.use_menu||"main",logo:{src:e?.extra_field?.header_logo?.[0]?._default||null,width:e?.extra_field?.header_logo?.[0]?.meta?.width,height:e?.extra_field?.header_logo?.[0]?.meta?.height,alt:e?.extra_field?.header_logo?.[0]?.meta?.alt},dfComponents:e?.components?.map(e=>({link:{title:e?.cta?.title,href:e?.cta?.url||null,id:e?.cta?.attributes.id||"",className:e?.cta?.attributes?.class||"",rel:e?.cta?.attributes?.rel||"",target:e?.cta?.attributes?.target||"_self"}}))||[]};return(0,a.Y)(b,{...t})}}}]);
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.