1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5808],{45808:function(e,r,t){t.r(r);var n=t(47113),o=t(17285),s=t(40430),a=t(4509),d=t(17082),l=t(96778),i=t(81791),u=t(82121),m=t(13151),c=t(34083),b=t(94325),p=t(30265);r.default=()=>{var e,r,t;let f=(0,s.useRouter)(),{closeModal:x}=(0,c.SO)(),{data:w}=(0,c.X9)(),{register:h,handleSubmit:g,control:y,watch:v,formState:{errors:k}}=(0,d.cI)(),$=v("newPassword"),N=(0,d.qo)({control:y}),[j,{isLoading:P}]=(0,i.eN)();async function q(e){let{newPassword:r,resetPasswordToken:t}=e;(0,l.Z)("login data",r),(0,l.Z)("login data",t),(0,o.sendGTMEvent)({event:"form_submit",value:"reset password submitted"});try{var n,s,a;let e=await j({email:null==w?void 0:w.email,resetPasswordToken:t,newPassword:r}).unwrap();if((null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.resetPassword)===!0)return(0,p.C)("success","Password Reset successfully"),x(),f.push("/".concat(null==w?void 0:w.country,"/customer/account/login")),null==e?void 0:e.data;{let r=null==e?void 0:null===(a=e.errors)||void 0===a?void 0:null===(s=a[0])||void 0===s?void 0:s.message;(0,p.C)("failure",r)}}catch(e){(0,p.C)("failure","Password Reset failed")}}return(0,a.useEffect)(()=>{(0,o.sendGTMEvent)({event:"form_start",value:"form started"})},[N]),(0,l.Z)(w,"email for forget password"),(0,n.jsxs)("div",{className:"bg-white w-full md:w-[500px] lg:w-[680px]",children:[(0,n.jsx)("h2",{className:"mb-6 font-semibold text-black text-xl md:text-3xl pt-7",children:"Reset Password"}),(0,n.jsxs)("p",{className:"pb-8 font-normal text-secondary-550 text-base mx-auto w-full md:w-3/4 px-4",children:["Please create a new password for your account.",(0,n.jsx)("br",{}),"Your password must be different",(0,n.jsx)("br",{})," from the previous one."]}),(0,n.jsxs)("form",{onSubmit:g(q),className:"flex flex-col justify-center mx-auto w-full md:w-3/5 px-4 pb-12",noValidate:!0,children:[(0,n.jsx)(b.Z,{placeholder:"New Password*",...h("newPassword",{required:"This is a required field.",minLength:{value:6,message:"Minimum length of this field must be equal or greater than 6 symbols. Leading and trailing spaces will be ignored."}}),error:null===(e=k.newPassword)||void 0===e?void 0:e.message,className:"border-r-0 border-t-0 border-l-0 pb-4"}),(0,n.jsx)(b.Z,{placeholder:"Confirm Password*",...h("confirmNewPassword",{required:"This is a required field.",validate:e=>e===$||"Please enter the same value again.",minLength:{value:6,message:"Minimum length of this field must be equal or greater than 6 symbols. Leading and trailing spaces will be ignored."}}),error:null===(r=k.confirmNewPassword)||void 0===r?void 0:r.message,className:"border-r-0 border-t-0 border-l-0 pb-4"}),(0,n.jsx)(m.Z,{type:"text",variant:"logininput",placeholder:"Reset Password Token*",...h("resetPasswordToken",{required:"Reset Password Token Required"}),error:null===(t=k.resetPasswordToken)||void 0===t?void 0:t.message,className:"border-r-0 border-t-0 border-l-0 pb-4",errorClassName:"!bg-white p-[2px]"}),(0,n.jsx)(u.Z,{variant:"dark",className:"bg-black w-full text-center block rounded-none border-none hover:!bg-[#ff5000]",type:"submit",isLoading:P,disabled:P,children:"CONTINUE"})]})]})}},81791:function(e,r,t){t.d(r,{gA:function(){return u},Nv:function(){return s},xZ:function(){return a},UF:function(){return l},mF:function(){return d},eN:function(){return i}});var n=t(18940);let o=e=>{let{email:r,mobile_number:t}=e;return'query{\n checkCustomerExist(\n mobile_number:"'.concat(t,'"\n email:"').concat(r,'"\n ){\n status\n message\n }\n}')},{useCreateCustomerMutation:s,useCustomerLoginMobileMutation:a,useResendOtpMutation:d,useRequestPasswordResetEmailMutation:l,useResetPasswordAuthMutation:i,useCheckIsCustomerExistMutation:u}=n.Z.injectEndpoints({endpoints:e=>({createCustomer:e.mutation({query:e=>{let{firstname:r,lastname:t,mobile_number:n,email:o,dob:s,gender:a,password:d}=e;return{query:"\n mutation createCustomerV2($firstname: String!, $lastname: String!, $mobile_number:String!, $email: String!, $dob: String!, $gender: Int!, $password: String!, $registered_from: String!) {\n createCustomerV2(\n input: {\n firstname: $firstname\n lastname: $lastname\n mobile_number: $mobile_number\n email: $email\n dob: $dob\n gender: $gender\n password: $password\n registered_from: $registered_from\n }\n ) {\n customer {\n firstname\n lastname\n email\n mobile_number\n }\n }\n }\n ",variables:{firstname:r,lastname:t,mobile_number:n,email:o,dob:s,gender:a,password:d,registered_from:"Web"}}}}),customerLoginMobile:e.mutation({query:e=>{let{email:r,password:t,type:n,mobile_number:o}=e;return{query:"\n mutation generateCustomerToken($email: String!, $password: String!, $type: String!, $mobile_number: String!) {\n generateCustomerToken(\n email: $email\n password: $password\n type: $type\n mobile_number: $mobile_number\n ) {\n token\n message\n }\n }\n ",variables:{email:r,password:t,type:n,mobile_number:o}}}}),resendOtp:e.mutation({query:e=>{let{email:r,mobile_number:t,type:n}=e;return{query:"\n mutation resendOtp($email: String, $mobile_number: String!, $type: String!) {\n resendOtp(\n input: {\n email: $email\n mobile_number: $mobile_number\n type: $type\n }\n )\n }\n ",variables:{email:r,mobile_number:t,type:n}}}}),requestPasswordResetEmail:e.mutation({query:e=>{let{email:r}=e;return{query:"\n mutation requestPasswordResetEmail($email: String!) {\n requestPasswordResetEmail(\n email: $email\n )\n }\n ",variables:{email:r}}}}),resetPasswordAuth:e.mutation({query:e=>{let{email:r,resetPasswordToken:t,newPassword:n}=e;return{query:"\n mutation resetPassword($email: String!,$resetPasswordToken: String!,$newPassword: String!) {\n resetPassword(\n email: $email\n resetPasswordToken: $resetPasswordToken\n newPassword: $newPassword\n )\n }\n ",variables:{email:r,resetPasswordToken:t,newPassword:n}}}}
1),checkIsCustomerExist:e.mutation({query:e=>{let{mobile_number:r,email:t}=e;return{query:o({mobile_number:r,email:t})}}})})})},13151:function(e,r,t){var n=t(47113),o=t(21514),s=t(51914),a=t(4509);let d=a.memo(a.forwardRef((e,r)=>{let{className:t="block relative",label:a,name:d,error:l,placeholder:i,variant:u="normal",shadow:m=!1,type:c="text",inputClassName:b,labelClassName:p,errorClassName:f,leftIcon:x,disabled:w,maxLength:h,...g}=e,y=(0,o.Z)("py-2 px-4 w-full appearance-none transition duration-150 ease-in-out border text-input text-13px lg:text-sm font-body placeholder-[#999999] transition duration-200 ease-in-out text-brand-dark focus:ring-0 focus:outline-none",{"rounded min-h-12 border-0 bg-white focus:text-black focus:ring-0":"normal"===u,"rounded min-h-12 text-brand-dark border-border-two focus:border-2 focus:outline-none focus:border-brand-darkBlue h-11 md:h-12":"solid"===u,"rounded min-h-12 border-gray-300 focus:border-brand":"outline"===u,"text-brand-dark min-h-12 border-r-0 border-t-0 border-l-0 pb-0 rounded-0 bg-transparent":"authinput"===u,"text-brand-dark border-r-0 border-t-0 border-b-0 border-l-0 pb-0 rounded-0 bg-transparent":"enquireinput"===u,"rounded min-h-14 text-brand-dark border-border-two focus:border-2 focus:outline-none focus:border-brand-darkBlue h-11 md:h-14 text-base":"contactinput"===u,"rounded-none min-h-10 !h-10 text-brand-dark border-border-two focus:border-2 focus:outline-none focus:border-brand-darkBlue h-11 md:h-14 text-base":"logininput"===u,"h-10 w-40 md:w-38 lg:w-64 bg-secondary-650 font-normal placeholder:text-[15px] md:placeholder:text-[17px] placeholder:text-[13px] text-secondary-400 border-[#e2e2e3] focus:ring-0 focus:border-[#e2e2e3] focus:box-shadow:none md:text-base":"footerinput"===u,"!bg-[#fffff] min-h-10 border-gray-300 focus:shadow focus:text-black focus:border-gray-300":"coupon"===u,"!bg-[#fffff] min-h-[43px] border-black focus:text-black focus:border-gray-300 placeholder:text-[#000000]":"storeSearch"===u,"bg-white py-2 px-4 md:px-5 w-full placeholder:text-black border-[#e2e2e3] focus:ring-0 focus:border-[#e2e2e3] focus:box-shadow:none h-10 bg-secondary-650 font-normal placeholder:text-xs placeholder:text-secondary-400 text-secondary-400 border-[#e2e2e3] focus:ring-0 focus:border-[#e2e2e3] focus:box-shadow:none ":"accountInput"===u},{"rounded focus:shadow min-h-12":m},b,{"pl-10":x},{"opacity-50 cursor-not-allowed":w});return(0,n.jsxs)("div",{className:t,children:[a&&(0,n.jsx)("label",{htmlFor:d,className:"block font-normal text-sm leading-none mb-3 cursor-pointer ".concat(p||"text-brand-dark text-opacity-70"),children:a}),x?(0,n.jsx)("div",{className:"absolute inset-y-0 left-0 flex pt-[13px] pl-4",children:(0,n.jsx)("span",{className:"text-gray-500 sm:text-sm",children:(0,n.jsx)(s.default,{src:x,width:20,height:20,alt:"icon",quality:100,priority:!0,className:(0,o.Z)("h-[20px] w-[20px]")})})}):null,(0,n.jsx)("input",{id:d,name:d,type:c,ref:r,placeholder:i,className:y,autoComplete:"one-time-code",spellCheck:"false","aria-invalid":l?"true":"false",disabled:w,maxLength:h,...g}),l&&(0,n.jsx)("p",{className:"my-2 text-[13px] text-red text-left ".concat(f),children:l})]})}));d.displayName="Input",r.Z=d},94325:function(e,r,t){t.d(r,{Z:function(){return i}});var n=t(47113),o=t(21514),s=t(4509);let a=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}),d=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}),l=s.forwardRef((e,r)=>{let{className:t="block",variant:l,inputClassName:i,label:u,name:m,error:c,...b}
1=e,[p,f]=(0,s.useState)(!1),x=(0,o.Z)("py-2 px-4 md:px-5 w-full appearance-none border text-input text-13px lg:text-sm font-body rounded-none placeholder-[#999999] text-brand-dark border-border-two focus:border-2 focus:outline-none focus:ring-0 focus:border-brand h-10 md:h-10 transition duration-150 ease-in-out",{"border-gray-200":"accountPasswordInput"===l},i);return(0,n.jsxs)("div",{className:t,children:[u&&(0,n.jsx)("label",{htmlFor:m,className:"block mb-3 text-sm font-normal leading-none cursor-pointer text-brand-dark opacity-70",children:u}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{id:m,name:m,type:p?"text":"password",ref:r,className:x,autoComplete:"off",spellCheck:"false",...b}),(0,n.jsx)("button",{type:"button",className:"absolute right-4 rtl:left-4 top-1/2 transform -translate-y-1/2 text-brand-dark text-opacity-30",onClick:()=>f(e=>!e),"aria-label":p?"Hide password":"Show password",children:p?(0,n.jsx)(d,{className:"w-6 h-6 text-[#807f83]"}):(0,n.jsx)(a,{className:"w-6 h-6 text-[#807f83]"})})]}),c&&(0,n.jsx)("p",{className:"my-2 text-[13px] text-red text-left !bg-white p-[2px]",children:c})]})});l.displayName="PasswordInput";var i=l}}]);
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.