1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3149],{85119:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/connection",function(){return s(30883)}])},30883:function(e,n,s){"use strict";s.r(n);var t=s(85893),i=s(67294),o=s(87536),a=s(17527),l=s(48606),r=s(31955),c=s(41664),d=s.n(c),m=s(11163),u=s(68658),g=s(69584),h=s(11566),p=s(15930),x=s(93884);n.default=()=>{let{setContentTranslations:e}=(0,i.useContext)(p.Z),[n,s]=(0,i.useState)(!1),{i18n:c,t:f}=(0,a.$G)(),{register:w,handleSubmit:b,formState:{errors:j}}=(0,o.cI)(),N=(0,m.useRouter)(),onSubmit=async e=>{let{email:n,password:t}=e,i=await (0,l.t2)({user:n,password:t});if(s((0,u.Z)(null==i?void 0:i.login)),!(0,u.Z)(null==i?void 0:i.login)){var o;r.Z.set("refreshToken",null==i?void 0:null===(o=i.login)||void 0===o?void 0:o.refreshToken,{expires:90}),N.push("/".concat(c.language===x.I?"":c.language))}};return(0,i.useEffect)(()=>{e([{language:{slug:"en"},uri:"/en/login"},{language:{slug:"fr"},uri:"/connection"}],c.language===x.I?"en/login":"connection")},[]),(0,t.jsxs)(g.Z,{children:[(0,t.jsx)(h.Z,{title:f("header.login"),metas:{metaRobotsNoindex:"noindex"}}),(0,t.jsx)("div",{className:"mx-15 md:mx-0",children:(0,t.jsxs)("div",{className:"content-container md:w-1/2 lg:w-1/3 !mt-30 md:!mt-50 flow-root",children:[(0,t.jsx)("h1",{children:f("header.login")}),(0,t.jsxs)("form",{onSubmit:b(onSubmit),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block font-soehneKraftig text-13 uppercase text-brown-800 mt-30",htmlFor:"email",children:f("sign.email")}),(0,t.jsx)("input",{...w("email",{required:!0}),className:"appearance-none border border-sand-300 w-full focus:outline-none focus:ring py-10 px-15 font-soehneLeicht text-19 mt-5",id:"email",name:"email",type:"email",autoComplete:"email",placeholder:f("sign.email")}),void 0!==j.email&&(0,t.jsx)("em",{className:"block leading-17 text-15 mt-10 font-soehneLeicht text-red",children:f("sign.email_missing")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block font-soehneKraftig text-13 uppercase text-brown-800 mt-10",htmlFor:"password",children:f("sign.password")}),(0,t.jsx)("input",{...w("password",{required:!0}),className:"appearance-none border border-sand-300 w-full focus:outline-none focus:ring py-10 px-15 font-soehneLeicht text-19 mt-5",id:"password",name:"password",type:"password",autoComplete:"current-password",placeholder:"***********"}),void 0!==j.password&&(0,t.jsx)("em",{className:"block leading-17 text-15 mt-10 font-soehneLeicht text-red",children:f("sign.password_missing")})]}),n&&(0,t.jsx)("div",{children:(0,t.jsx)("em",{className:"block leading-17 text-15 mt-10 font-soehneLeicht text-red",children:f("sign.signin_error")})}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-30",children:[(0,t.jsx)("button",{type:"submit",className:"btn btn-primary btn-normal",children:f("sign.signin")}),(0,t.jsx)(d(),{href:c.language===x.I?"/reinitialiser-mot-de-passe":"/".concat(c.language,"/reset-password"),className:"uppercase text-13 font-soehneKraftig leading-17 text-brown-800 mr-20",children:f("sign.forgot_password")})]})]})]})})]})}}},function(e){e.O(0,[8797,7536,2281,9774,2888,179],function(){return e(e.s=85119)}),_N_E=e.O()}]);
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.