1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{27864:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return i(41595)}])},41595:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>_,default:()=>k});var r=i(21962),n=i(77153),o=i(54986),s=i(80838),l=i(85208),a=i(63843),d=i(15101),c=i(90185),h=i(94220),x=i(5823),p=i(86558),g=i(73222),m=i(97601),u=i(91930),y=i(81352),f=i(95413);let j=h.Ik({email:g.wW,password:g.FM}),w=e=>{let{onLogin:t,originalUrl:i,loginError:h}=e,g=(0,f.useRouter)(),w=(0,o.A)(),{Link:b,locale:v,t:A}=(0,y.f)(),_=(0,d.mN)({resolver:(0,n.u)(j),defaultValues:{email:g.query.email||void 0}}),k=async e=>{t(e.email,e.password)},E=h?A((null==h?void 0:h.type)==="API_ERROR"?"login.error.".concat(h.code):"login.error.UNEXPECTED_ERROR"):void 0;return(0,r.jsxs)(u.p,{children:[(0,r.jsx)(s.A,{mb:6,children:(0,r.jsx)(b,{href:"/",children:(0,r.jsx)(p._V,{src:"/assets/packiro/logo-with-text-small.svg",sx:{width:122}})})}),(0,r.jsx)(l.A,{variant:"h1",maxWidth:m.h1,mb:2,fontSize:[24,32],children:A("login.header.value")}),(0,r.jsx)(s.A,{mb:8,children:(0,r.jsxs)(l.A,{variant:"body2",children:[(0,r.jsx)(s.A,{component:"span",fontSize:16,mr:1,display:"inline",children:A("login.header.text")}),(0,r.jsx)(p.QW,{"data-cy":"login:button.navToSignupForm",sx:{fontWeight:"bold",textTransform:"none",display:"inline",fontSize:16,textDecoration:"none",p:0,":hover":{backgroundColor:"transparent"}},typography:"h6",component:b,href:i?"/".concat(v,"/register?originalUrl=").concat(i):"/".concat(v,"/register"),children:A("login.signup.button")})]})}),E&&(0,r.jsx)(p.Qp,{type:"error",title:E,sx:{width:"100%",my:8,px:3,flexDirection:"row",".icon-text-container":{flexDirection:"row",gap:1,textAlign:"left","> div svg":{mb:0}}}}),(0,r.jsx)(s.A,{sx:{zIndex:10},children:(0,r.jsx)(d.Op,{..._,children:(0,r.jsxs)(s.A,{component:"form",onSubmit:_.handleSubmit(k),mb:4,children:[(0,r.jsx)(c.L,{"data-cy":"login:email",label:A("login.email"),name:"email",sx:{mb:4}}),(0,r.jsx)(x.L,{"data-cy":"login:password",label:A("login.password.value"),name:"password",sx:{mb:3}}),(0,r.jsx)(p.QW,{typography:"h6",color:w.palette.primary.cta,ml:3,href:"/account/recover/email",sx:{textDecoration:"none",p:0,m:0},children:A("login.password.forget")}),(0,r.jsx)(s.A,{display:"flex",mt:6,children:(0,r.jsx)(a.A,{"data-cy":"login:button",type:"submit",variant:"contained",fullWidth:!0,size:"large",children:A("login.button")})})]})})})]})};var b=i(46089),v=i(26210);let A=()=>{let{login:e,loginError:t,resetLoginError:i}=(0,b.L)(),n=(0,f.useRouter)().query.originalUrl||void 0;return(0,v.useEffect)(()=>()=>i(),[i]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w,{onLogin:e,loginError:t,originalUrl:"string"==typeof n?n:void 0}),";"]})};var _=!0;let k=A;A.layout="off.off"},91930:(e,t,i)=>{"use strict";i.d(t,{p:()=>h});var r=i(21962),n=i(54986),o=i(58855),s=i(80838),l=i(86558),a=i(69326),d=i(56240),c=i(32676);let h=e=>{let{children:t}=e,i=(0,n.A)(),{t:h}=(0,c.fJ)();return(0,r.jsxs)(o.Ay,{container:!0,sx:{height:"100vh",width:"100vw"},children:[(0,r.jsxs)(o.Ay,{component:"div",item:!0,px:[6,16,24],py:[14],sx:{position:"relative",width:"100%",backgroundColor:i.palette.background.paper},children:[(0,r.jsx)(d.w,{sx:{position:"absolute",top:0,left:0,right:0,width:"100%"},on:["sm"],children:(0,r.jsx)(s.A,{px:8,py:4,sx:{backgroundColor:i.palette.grey[100]},children:(0,r.jsx)(l.QW,{sx:{textDecoration:"none",textTransform:"capitalize",fontWeight:"bold"},typography:"h6",color:i.palette.primary.cta,href:"/",children:(0,r.jsxs)(s.A,{display:"flex",sx:{gap:1},children:[(0,r.jsx)(a.yd,{width:24,height:24,sx:{transform:"rotate(90deg)"}}),h("staticwords.cancel")]})})})}),(0,r.jsx)(s.A,{sx:{display:"flex",height:"100%",width:"100%"},children:(0,r.jsx)(s.A,{sx:{margin:"auto",position:"relative",width:"100%",maxWidth:384,mt:6,display:"flex",justifyContent:"center",flexDirection:"column","@media (min-width: 768px)":{height:"100%"}},children:t})}),(0,r.jsx)(d.w,{sx:{position:"fixed",bottom:0,left:0,zIndex:10},on:["md","lg"],children:(0,r.jsx)(s.A,{px:[8,10],py:4,children:(0,r.jsx)(l.QW,{sx:{textDecoration:"none",textTransform:"capitalize",fontWeight:"bold"},typography:"h6",color:i.palette.primary.cta,href:"/",children:(0,r.jsxs)(s.A,{display:"flex",sx:{gap:1},children:[(0,r.jsx)(a.yd,{width:24,height:24,sx:{transform:"rotate(90deg)"}}),h("staticwords.cancel")]})})})})]}),(0,r.jsx)(d.w,{on:[],children:(0,r.jsx)(o.Ay,{item:!0,sm:12,md:6,display:["none","block"],children:(0,r.jsx)(l._V,{src:"https://packiro-content-staging.s3.eu-central-1.amazonaws.com/151008102414-trump-hat-2-640x360.png",alt:"Login",style:{width:"100%",height:"100%",objectFit:"cover"}})})})]})}},5823:(e,t,i)=>{"use strict";i.d(t,{L:()=>c});var r=i(21962),n=i(54986),o=i(61692),s=i(73522),l=i(69326),a=i(90185),d=i(26210);let c=e=>{let{...t}=e,i=(0,n.A)(),[c,h]=(0,d.useState)(!1);return(0,r.jsx)(a.L,{...t,type:c?"text":"password",InputProps:{endAdornment:(0,r.jsx)(o.A,{position:"end",children:(0,r.jsx)(s.A,{"aria-label":"toggle password visibility",onClick:()=>h(e=>!e),edge:"end",sx:{mr:0},children:c?(0,r.jsx)(l.Dr,{width:24,height:24,color:i.palette.primary.cta}):(0,r.jsx)(l.$G,{width:24,height:24,color:i.palette.primary.cta})})})}})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(27864)),_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.