(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66037,40854,92273],{74524:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});let s=e=>"/"===e[0]?e.slice(1):e;function r(e){let{src:t,width:o,quality:r}=e;return"https://res.cloudinary.com/drxl6wwv3/"+["f_auto","c_limit","w_"+o,"q_"+(r||"auto")].join(",")+"/"+s(t)}},57150:function(e,t,o){"use strict";var s=o(15311);o(20132);var r=o(5724),n=o(5762),a=o.n(n),i=o(79105),c=o(41013),l=o(95591),u=o(94046),d=o.n(u);t.Z=e=>{let{className:t,href:o,label:n}=e,{t:u}=(0,r.Z)("common");return(0,s.jsx)(l.Z,{className:(0,i.WM)(d().backBtn,t),label:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Z,{}),n||u("back-btn")]}),theme:"orangeText",...o?{href:o}:{onClick:a().back}})}},95591:function(e,t,o){"use strict";var s=o(15311);o(20132);var r=o(79105),n=o(46748),a=o(46626),i=o(79476),c=o.n(i);t.Z=e=>{let{ariaLabel:t,className:o,disabled:i,fillIcon:l,fullWidth:u,href:d,isLoading:h,label:_,onClick:p,onMouseEnter:g,onMouseLeave:f,rel:w,small:m,target:x,theme:v="primary",type:j="button",style:k,withArrow:b}=e,y=(0,r.WM)(c().button,c()[v],m&&c().small,h&&c().isLoading,l&&c().fillIcon,u&&c().fullWidth,o),L=b&&(0,s.jsx)("span",{className:c().arrow});return d?(0,s.jsx)(a.Z,{className:y,href:d,onMouseEnter:g,onMouseLeave:f,target:x,onClick:p,rel:w,children:(0,s.jsxs)("span",{children:[_,L]})}):(0,s.jsx)("button",{className:y,disabled:i||h,onClick:p,onMouseEnter:g,onMouseLeave:f,type:j,"aria-label":t,style:k,children:h?(0,s.jsx)(n.Z,{className:c().loader}):(0,s.jsxs)("span",{children:[_,L]})})}},148:function(e,t,o){"use strict";var s=o(15311);o(20132);var r=o(18795),n=o.n(r);t.Z=e=>{let{error:t}=e;return(0,s.jsx)("div",{className:n().root,children:t})}},95231:function(e,t,o){"use strict";var s=o(15311),r=o(20132),n=o(35511),a=o(79105),i=o(5724),c=o(89830),l=o(74034),u=o.n(l),d=o(85413),h=o.n(d);t.Z=e=>{let{autoComplete:t,error:o,hidePasswordLabel:l,label:d,register:_,showPasswordLabel:p,watch:g}=e,{t:f}=(0,i.Z)("common"),[w,m]=(0,r.useState)(!1),x=g("password"),v=x&&x.length>=12,j=!!(null==x?void 0:x.match(/(?=.*[a-z])/)),k=!!(null==x?void 0:x.match(/(?=.*[A-Z])/)),b=!!(null==x?void 0:x.match(/(?=.*[0-9])/));return(0,s.jsxs)(c.Z,{className:h().root,type:w?"text":"password",label:d,error:o,autoComplete:t||"off",register:_("password",{required:f("error-field-required"),pattern:{value:a.BV,message:f("error-invalid-password")}}),children:[!!p&&(0,s.jsx)("a",{className:h().showPasswordBtn,onClick:()=>{m(!w),(0,n.L9)({category:n.FS.Authentication,action:"toggled_password_visibility"})},type:"button","aria-label":w?l:p,children:w?(0,s.jsxs)("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",children:[(0,s.jsx)("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M9.74051 6.5376C9.74051 7.77435 8.73751 8.77664 7.50076 8.77664C6.26401 8.77664 5.26172 7.77435 5.26172 6.5376C5.26172 5.30014 6.26401 4.29785 7.50076 4.29785C8.73751 4.29785 9.74051 5.30014 9.74051 6.5376Z",stroke:"#6A6F78",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49989 11.7097C10.1972 11.7097 12.6643 9.77032 14.0534 6.53748C12.6643 3.30465 10.1972 1.36523 7.49989 1.36523H7.50272C4.80539 1.36523 2.33826 3.30465 0.949219 6.53748C2.33826 9.77032 4.80539 11.7097 7.50272 11.7097H7.49989Z",stroke:"#6A6F78",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,s.jsxs)("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",children:[(0,s.jsx)("path",{opacity:"0.4",d:"M5.91693 8.17644C5.50964 7.76986 5.26172 7.21736 5.26172 6.59756C5.26172 5.35586 6.26189 4.35498 7.50289 4.35498C8.11701 4.35498 8.68226 4.60361 9.08247 5.01019",stroke:"#6A6F78",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{opacity:"0.4",d:"M9.69939 6.995C9.53505 7.90874 8.81539 8.62983 7.90234 8.79558",stroke:"#6A6F78",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M3.71526 10.3762C2.59114 9.49365 1.63914 8.20448 0.949219 6.59727C1.64622 4.98298 2.60459 3.68673 3.7358 2.79707C4.85993 1.9074 6.15689 1.42432 7.5013 1.42432C8.85351 1.42432 10.1498 1.91448 11.281 2.81052",stroke:"#6A6F78",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M12.7762 4.36853C13.2635 5.01595 13.6921 5.76324 14.0526 6.59695C12.6593 9.82482 10.1972 11.7692 7.50053 11.7692C6.88924 11.7692 6.28645 11.67 5.70703 11.4767",stroke:"#6A6F78",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.0873 1.01013L1.91406 12.1834",stroke:"#6A6F78",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,s.jsxs)("div",{className:(0,a.WM)(h().passwordInfo,v&&j&&k&&b&&h().hide),children:[f("password-info-title"),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[(0,s.jsx)(u(),{className:h().icon,alt:"check",src:v?"v1696668016/website/Group_3782_eiaofk.png":"v1696668479/website/Frame_35840_dea7wk.png",height:15,width:15}),f("password-info-1")]}),(0,s.jsxs)("li",{children:[(0,s.jsx)(u(),{className:h().icon,alt:"check",src:j?"v1696668016/website/Group_3782_eiaofk.png":"v1696668479/website/Frame_35840_dea7wk.png",height:15,width:15}),f("password-info-2")]}),(0,s.jsxs)("li",{children:[(0,s.jsx)(u(),{className:h().icon,alt:"check",src:k?"v1696668016/website/Group_3782_eiaofk.png":"v1696668479/website/Frame_35840_dea7wk.png",height:15,width:15}),f("password-info-3")]}),(0,s.jsxs)("li",{children:[(0,s.jsx)(u(),{className:h().icon,alt:"check",src:b?"v1696668016/website/Group_3782_eiaofk.png":"v1696668479/website/Frame_35840_dea7wk.png",height:15,width:15}),f("password-info-4")]})]})]})]})}},89830:function(e,t,o){"use strict";var s=o(15311);o(20132);var r=o(79105),n=o(5296),a=o.n(n);t.Z=e=>{let{autoComplete:t="",autoFocus:o,children:n,className:i,defaultValue:c,disabled:l,error:u,label:d,max:h,min:_,step:p,name:g,onBlur:f,onChange:w,onClick:m,onFocus:x,pattern:v,placeholder:j,register:k,rounded:b,small:y,style:L,type:C,value:N,withoutMargin:M}=e;return(0,s.jsxs)("label",{className:(0,r.WM)(a().root,M&&a().withoutMargin,i),onClick:m,children:[d,(0,s.jsx)("input",{className:(0,r.WM)(u&&a().hasError,b&&a().rounded,y&&a().small),name:g,type:C,placeholder:j,autoComplete:t,autoFocus:o,disabled:l,onChange:w,defaultValue:c,value:N,"aria-label":j,max:h,min:_,pattern:v,step:p,style:L,onFocus:x,onBlur:f,...k}),n,u&&(0,s.jsx)("div",{className:a().error,role:"alert",children:u.message})]})}},90092:function(e,t,o){"use strict";o.d(t,{Z:function(){return l}});var s=o(35511);let r=(e,t,o)=>{sessionStorage&&sessionStorage.setItem(e,JSON.stringify({data:t,expirationTimestamp:Date.now()+1e3*o}))};var n=o(40854),a=o(20132),i=o(92273),c=o(57143);function l(e){let{buildRequestParams:t,disableErrorToast:o,onBeforeRequest:l,onSuccess:u,shouldCacheRequest:d,trackingEvent:h}=e,_=(0,a.useRef)(),[p,g]=(0,a.useState)(!1),[f,w]=(0,a.useState)(!1),[m,x]=(0,a.useState)(),[v,j]=(0,a.useState)(""),[,k]=(0,a.useContext)(c.hC),b=async e=>{_.current&&y(),_.current=new AbortController,l&&l(e),g(!0),j("");let a=t(e);if(d){let t=function(e){if(!sessionStorage)return;let t=sessionStorage.getItem(e);if(!t)return;let{data:o,expirationTimestamp:s}=JSON.parse(t);if(Date.now()>s){sessionStorage.removeItem(e);return}return o}("".concat(a.requestPath,"-").concat(d.key));if(t){g(!1),j(""),w(!0),x(t),u&&u(t,e);return}}let c=await (0,n.fetchAPI)({...a,signal:_.current.signal});c.isCancelled||(g(!1),j(c.error||""),c.success?(w(!0),x(c.data),u&&u(c.data,e),d&&r("".concat(a.requestPath,"-").concat(d.key),c.data,d.ttlInseconds)):c.error&&!o&&(0,i.showToast)(k,c.error,!0),(0,s.L9)({...h,label:c.success?"success":"failure"}))},y=()=>{var e;null===(e=_.current)||void 0===e||e.abort()};return(0,a.useEffect)(()=>()=>{y()},[]),{cancelRequest:y,data:m,error:v,executeRequest:b,isLoading:p,isSuccess:f,setData:x}}},19778:function(e,t,o){"use strict";var s=o(15311);o(20132);var r=o(74034),n=o.n(r),a=o(79105),i=o(64512),c=o(57150),l=o(78517),u=o.n(l);t.Z=e=>{let{children:t,contentClassName:o,imageAlt:r,imageSrc:l,isWhiteLabel:d,whiteLabelData:h,withBackBtn:_}=e;return(0,s.jsxs)("div",{className:(0,a.WM)(u().root,o),children:[(0,s.jsxs)("div",{className:u().content,children:[_&&(0,s.jsx)(c.Z,{className:u().backBtn,label:_}),(0,s.jsx)(i.Z,{className:u().logo,isLight:!h||h.isWhiteLabelLightMode,isWhiteLabel:d,logoUrl:null==h?void 0:h.logoUrl}),t]}),(0,s.jsx)("div",{className:u().imageContainer,children:(0,s.jsx)("div",{className:u().imageWrapper,children:(0,s.jsx)(n(),{alt:r,src:l,fill:!0,sizes:"(max-width: 1500px) 500px, 600px",style:{objectFit:"contain"},priority:!0})})})]})}},64512:function(e,t,o){"use strict";var s=o(15311);o(20132);var r=o(5724),n=o(74034),a=o.n(n),i=o(35511),c=o(6381),l=o.n(c),u=o(79105),d=o(12413),h=o.n(d);t.Z=e=>{let{className:t,href:o,isLight:n,isWhiteLabel:c,logoRatio:d,logoUrl:_,small:p}=e,{t:g}=(0,r.Z)("navbar");if(!_&&c)return(0,s.jsx)("span",{});if(_){let e=(0,s.jsx)(a(),{src:_,alt:g("logo-image-white-label-alt"),height:p?32:40,width:p?d?Math.round(32*parseFloat(d)):120:d?Math.round(40*parseFloat(d)):160,priority:!0,style:{objectFit:"contain",objectPosition:"left"}});return o?(0,s.jsx)(l(),{className:(0,u.WM)(h().root,t),href:o,children:e}):(0,s.jsx)("span",{className:(0,u.WM)(h().root,t),children:e})}return(0,s.jsx)(l(),{className:(0,u.WM)(h().root,t),href:o||"/",onClick:()=>(0,i.L9)({action:"logo_clicked",category:i.FS.Navbar}),passHref:!0,scroll:!1,children:(0,s.jsx)(a(),{src:n?"v1696676179/website/logo_1_pbe6pn.png":"v1696669101/website/logo_vcgzza.png",alt:g("logo-image-alt"),height:p?20:32,width:p?124:200,priority:!0})})}},41013:function(e,t,o){"use strict";var s=o(15311);o(20132),t.Z=e=>{let{className:t,color:o="#FE785C"}=e;return(0,s.jsxs)("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",children:[(0,s.jsx)("path",{d:"M8 8L5 4.5L8 1",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M14 4.5L6 4.5",stroke:o,strokeWidth:"1.5",strokeLinecap:"round"})]})}},10039:function(e,t,o){"use strict";o.d(t,{i:function(){return s}});let s=async()=>{window.caches&&await window.caches.delete("next-data")}},40854:function(e,t,o){"use strict";async function s(e){let t,{body:o,isFileDownload:s,method:r,requestPath:n,signal:a,url:i}=e;try{t=await fetch(i||"/api".concat(n),{method:r,cache:"no-cache",mode:"cors",signal:a,redirect:"follow",headers:{"Content-Type":"application/json"},...o&&{body:JSON.stringify(o)},...n&&{credentials:"same-origin"}})}catch(e){if("".concat(e).includes("aborted"))return{success:!1,isCancelled:!0};return{success:!1,error:"Une erreur est survenue : probl\xe8me de connexion"}}if(200===t.status||201===t.status){let e;try{e=!t.redirected&&(s?await t.blob():await t.json())}catch(e){}return{status:t.status,success:!0,data:e}}{let e;try{e=t&&await t.json()}catch(e){}return{status:t.status,success:!1,error:(null==e?void 0:e.message)||"Une erreur est survenue : probl\xe8me de connexion",errorType:null==e?void 0:e.error}}}o.r(t),o.d(t,{fetchAPI:function(){return s}})},92273:function(e,t,o){"use strict";o.r(t),o.d(t,{logoutUser:function(){return l},showToast:function(){return c}});var s=o(35511),r=o(10039),n=o(5762),a=o.n(n),i=o(40854);let c=(e,t,o,s)=>{let r=new Date;e({type:"showToast",toast:{id:r,text:t,isError:o}}),setTimeout(()=>e({type:"hideToast",id:r}),s?6e3:3e3)},l=async(e,t,o)=>{t&&t(!0);let n=await (0,i.fetchAPI)({method:"POST",requestPath:"/users/logout"});t&&t(!1),n.success&&(await (0,r.i)(),e({type:"setUser",user:void 0}),o?a().reload():a().push("/")),(0,s.L9)({category:s.FS.Authentication,action:"logout"})}},94046:function(e){e.exports={backBtn:"BackButton_backBtn__hupvX"}},79476:function(e){e.exports={button:"Button_button__NmzcR",fullWidth:"Button_fullWidth__oAc5D",small:"Button_small__739FW",loader:"Button_loader__cgsia",primary:"Button_primary__g_M_z",isLoading:"Button_isLoading__FhgCq",fillIcon:"Button_fillIcon__kCseA",secondary:"Button_secondary__pzrEz",arrow:"Button_arrow__nBiH6",white:"Button_white__12bMg",transparent:"Button_transparent__vnLPf",orangeText:"Button_orangeText__Hqs2G"}},18795:function(e){e.exports={root:"FormError_root__rwGfR"}},85413:function(e){e.exports={root:"PasswordInput_root__isIuZ",showPasswordBtn:"PasswordInput_showPasswordBtn__qfwBb",passwordInfo:"PasswordInput_passwordInfo__QF5CY",hide:"PasswordInput_hide__IgiO_",icon:"PasswordInput_icon__quOX_"}},5296:function(e){e.exports={root:"TextInput_root__3zeUL",rounded:"TextInput_rounded__OSQIM",hasError:"TextInput_hasError__JgqF5",small:"TextInput_small__EX0tX",withoutMargin:"TextInput_withoutMargin__04ZzP",error:"TextInput_error__Ot2YM"}},78517:function(e){e.exports={root:"LoginPageLayout_root__bTNDN",content:"LoginPageLayout_content__Qiq4E",backBtn:"LoginPageLayout_backBtn__bqv_W",logo:"LoginPageLayout_logo__ymluO",imageContainer:"LoginPageLayout_imageContainer__YNtan",imageWrapper:"LoginPageLayout_imageWrapper__Z7yQ4"}},12413:function(e){e.exports={root:"NavbarLogo_root__I8MAM"}}}]);