1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f4914790-e754-47b8-9201-771e192e54cc",e._sentryDebugIdIdentifier="sentry-dbid-f4914790-e754-47b8-9201-771e192e54cc")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1110],{54535:function(e,s,r){"use strict";r.r(s),r.d(s,{__N_SSP:function(){return C},default:function(){return ResetPasswordPage}});var t=r(75582),o=r(26304),a=r(40685),n=r(68925),i=r.n(n),d=r(25108),l=r(60071),c=r.n(l),u=r(34376),h=r(12350),w=r(82684),m=r(30173),p=r(21631),f=r(76128),_=r(48444),x={src:"/_next/static/media/reset-password-error.916e7328.svg",height:158,width:224,blurWidth:0,blurHeight:0},g={src:"/_next/static/media/reset-password-success.3c9d06e5.svg",height:158,width:224,blurWidth:0,blurHeight:0},b={src:"/_next/static/media/reset-password.77304b93.svg",height:344,width:396,blurWidth:0,blurHeight:0},j=r(25363),P=r(1272),v=r(28715),N=r(83143),y=r.n(N),R=r(28598),k=["query"],ResetPassword_ResetPassword=function(e){var s=e.className,r=(0,h.$G)(["common"]).t,n=(0,u.useRouter)(),l=n.query,N=(0,o.Z)(n,k),C=(0,f.ac)().isMobile,q=(0,_.oR)(),E=q.modals,M=q.updateModals,D=E.isOpenLoginModal,toggleLoginModal=function(){M({isOpenLoginModal:!D})},W=l.token,Z=(0,w.useState)(!1),I=Z[0],L=Z[1],F=(0,w.useState)(!1),H=F[0],O=F[1],S=(0,a.D)(p.bk,{onError:function(){L(!1),O(!0)},onCompleted:function(e){e.resetPassword.success?(O(!1),L(!0)):(O(!0),L(!1))}}),T=(0,t.Z)(S,1)[0];return(0,w.useEffect)(function(){H&&setTimeout(function(){O(!1),L(!1)},6e3),I&&setTimeout(function(){N.push("/"),toggleLoginModal()},6e3)},[H,I]),(0,R.jsx)("div",{className:i()(s,y().resetPassword),children:(0,R.jsx)(P.Z,{children:(0,R.jsx)(P.Z,{full:!1,children:(0,R.jsx)("section",{className:(I||H)&&y().status,children:I||H?(0,R.jsxs)(R.Fragment,{children:[H&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(c(),{src:x,alt:""}),(0,R.jsxs)("h5",{children:[r("error"),"!"]}),(0,R.jsx)("p",{children:r("message from beckend.")}),(0,R.jsx)("p",{children:r("click âbackâ to try one more time.")}),(0,R.jsx)(j.default,{className:y().button,text:r("back"),onClick:function(){O(!1),L(!1)}}),(0,R.jsx)("span",{children:r("you will be automatically redirected in sec.",{count:6})})]}),I&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(c(),{src:g,alt:""}),(0,R.jsx)("h5",{children:r("password is updated!")}),(0,R.jsx)("p",{children:r("your password has been successfully updated. click continue to go to the log in page.")}),(0,R.jsx)(j.default,{className:y().button,text:r("continue"),to:"/?modal=login"}),(0,R.jsx)("span",{children:r("you will be automatically redirected in sec.",{count:6})})]})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:y().image,children:(0,R.jsx)(c(),{src:b,alt:""})}),(0,R.jsx)(d.J9,{validateOnMount:!0,enableReinitialize:!0,initialValues:{password:"",confirmPassword:""},validationSchema:m.Ry().shape({password:m.Z_().required(r("validation.error.require",{field:r("password")})).min(6,r("validation.error.min",{field:r("password"),min:6})),confirmPassword:m.Z_().required(r("validation.error.require",{field:r("confirm password")})).oneOf([m.iH("password"),null],r("passwords must match"))}),children:function(e){var s=e.values,t=e.touched,o=e.errors,a=e.handleChange,n=e.handleBlur;return e.setFieldValue,(0,R.jsxs)("form",{className:y().form,children:[(0,R.jsx)("h2",{className:y().title,children:r("reset password")}),(0,R.jsx)("h5",{children:r("come up with a password")}),(0,R.jsx)("p",{className:y().text,children:r("password must be at least characters",{count:6})}),(0,R.jsx)("div",{className:y().input,children:(0,R.jsx)(v.Z,{autoFocus:!0,name:"password",placeholder:"â¢â¢â¢â¢â¢â¢",label:r("password"),required:!0,value:s.password,onChange:a,onBlur:n,errors:t.password&&o.password})}),(0,R.jsx)("div",{className:y().input,children:(0,R.jsx)(v.Z,{name:"confirmPassword",placeholder:"â¢â¢â¢â¢â¢â¢",label:r("confirm password"),required:!0,value:s.confirmPassword,onChange:a,onBlur:n,errors:t.confirmPassword&&o.confirmPassword})}),(0,R.jsxs)("div",{className:y().controls,children:[(0,R.jsx)(j.default,{disabled:o.password||o.confirmPassword,className:y().button,text:r("continue"),onClick:function(){T({variables:{newPassword:s.password,resetHash:W}})}}),C&&(0,R.jsx)(j.default,{className:y().button,text:r("in app"),to:"luxexpress://?type=reset-password&token=".concat(W)})]})]})}})]})})})})})},C=!0;function ResetPasswordPage(){return(0,R.jsx)(ResetPassword_ResetPassword,{})}},40402:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/change-passw",function(){return r(54535)}])},83143:function(e){e.exports={greenColor:"#2bba83",lightColor:"#f0f0f1",lightRedColor:"#e7070
17",mainColor:"#484c55",maxWidthDesktop:"1440px",maxWidthLaptop:"1279px",maxWidthMobile:"767px",maxWidthTablet:"1024px",redColor:"#c30909",tanColor:"#c6b791",resetPassword:"ResetPassword_resetPassword__rKg4q",status:"ResetPassword_status__joWnL",button:"ResetPassword_button___g8ht",image:"ResetPassword_image__01I3Q",form:"ResetPassword_form__rbs8d",text:"ResetPassword_text__3cPnq",input:"ResetPassword_input__jyMBD",error:"ResetPassword_error__6GLxm",controls:"ResetPassword_controls__XAEr7",showNav:"ResetPassword_showNav__H9DhI"}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=40402)}),_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.