PageSourceSearch

https://www.robertocavalli.com/mobify/bundle/624/pages-reset-password.js

js robertocavalli.com collected 2026-09-24 20:03:55 UTC 12,727 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7900],{87136:(e,s,a)=>{a.r(s),a.d(s,{default:()=>S});var r=a(8108),t=a(49180),o=a(32484),l=a(4832),d=a(57960),i=a(42512),p=a(88820),u=a(32676),m=a(41820),n=a(65048),_=a(82868),c=a(33540),f=a(13548);const[w,y]=(0,f.c)();var g=a(4856),P=a(14850),v=a(10360);const x=(0,v.Os)({title:{id:"auth.resetPassword.title",defaultMessage:[{type:0,value:"Reset Password"}]},description:{id:"auth.resetPassword.description",defaultMessage:[{type:0,value:"Please enter your email address to receive an email with instructions to reset your password."}]},latinCharactersError:{id:"forms.fields.name.error.latinCharacters",defaultMessage:[{type:0,value:"Please enter Latin characters only"}]},email:{id:"forms.fields.email.labels.required",defaultMessage:[{type:0,value:"Email"}]},emailEmptyError:{id:"forms.fields.email.noempty",defaultMessage:[{type:0,value:"Please enter your email address"}]},emailInvalidError:{id:"forms.fields.email.noinvalid",defaultMessage:[{type:0,value:"Please enter a valid email address"}]},send:{id:"auth.resetPassword.submit",defaultMessage:[{type:0,value:"Send"}]},userNotFoundError:{id:"auth.resetPassword.error.userNotFound",defaultMessage:[{type:0,value:"No matching email address was found. Check your spelling and try again."}]},unexpectedError:{id:"loginForm.forgotPassword.error",defaultMessage:[{type:0,value:"Ooops! Something was wrong, please try later."}]},close:{id:"auth.resetPassword.close",defaultMessage:[{type:0,value:"Close"}]}}),h={"display-from-extra-small":"PopupResetPasswordFailed__display-from-extra-small--kwiT5","display-above-extra-small":"PopupResetPasswordFailed__display-above-extra-small--ATlSr","display-from-small":"PopupResetPasswordFailed__display-from-small--CEr3t","display-above-small":"PopupResetPasswordFailed__display-above-small--GeQzK","display-from-medium":"PopupResetPasswordFailed__display-from-medium--bDolr","display-above-medium":"PopupResetPasswordFailed__display-above-medium--F_KY3","display-from-large":"PopupResetPasswordFailed__display-from-large--td8C1","display-above-large":"PopupResetPasswordFailed__display-above-large--Icik9","display-from-x-large":"PopupResetPasswordFailed__display-from-x-large--t22GX","display-above-x-large":"PopupResetPasswordFailed__display-above-x-large--Fp1Mk","display-from-xx-large":"PopupResetPasswordFailed__display-from-xx-large--hkMKj","display-above-xx-large":"PopupResetPasswordFailed__display-above-xx-large--YMsZp","display-from-xxx-large":"PopupResetPasswordFailed__display-from-xxx-large--AleEZ","display-above-xxx-large":"PopupResetPasswordFailed__display-above-xxx-large--tn5Cn","display-from-xxxx-large":"PopupResetPasswordFailed__display-from-xxxx-large--jd35m","display-above-xxxx-large":"PopupResetPasswordFailed__display-above-xxxx-large--qVdQI","popup-reset-password__content":"PopupResetPasswordFailed__popup-reset-password__content--f6C4X","popup-reset-password__title":"PopupResetPasswordFailed__popup-reset-password__title--Pq_AF","popup-reset-password__error":"PopupResetPasswordFailed__popup-reset-password__error--J2kfq","popup-reset-password__form":"PopupResetPasswordFailed__popup-reset-password__form--XxKAO","popup-reset-password__form__field":"PopupResetPasswordFailed__popup-reset-password__form__field--bfaLx","popup-reset-password__form__field__error":"PopupResetPasswordFailed__popup-reset-password__form__field__error--uErl5","popup-reset-password__submit-wrapper":"PopupResetPasswordFailed__popup-reset-password__submit-wrapper--r23ik","popup-reset-password__submit-btn":"PopupResetPasswordFailed__popup-reset-password__submit-btn--zTKoR"},b="reset-password-failed",E=()=>{const e=(0,i.c)(),{managerRepository:s}=(0,m.w)(),{email:a,error:t,setError:o}=w(),c=(0,p.c)(),f=(0,r.useCallback)(function(){var a=(0,l.c)((function*(a){try{const r=yield c.resetCustomerPassword(a.email);if(r.error)return"Not possible to find the user"===r.validation.errorMsg?(o(e.formatMessage(x.userNotFoundError)),void s.getPopupsMgr().openPopup("reset-password-failed")):{email:r.validation.errorMsg};s.getPopupsMgr().closePopup(b),s.getPopupsMgr().openPopup("reset-password-success")}catch(s){return{email:e.formatMessage(x.unexpectedError)}}}));return function(e){return a.apply(this,arguments)}}(),[]),y=(0,r.useCallback)((()=>{o("")}),[]);return r.createElement(g.c,{id:b,overlayClassName:h["popup-reset-password__overlay"],popupContentClassName:h["popup-reset-password__content"],showCloseButton:!0},r.createElement(d.QF,{onSubmit:f,render:({handleSubmit:s,hasValidationErrors:o,submitting:l})=>(o&&t&&y(),r.createElement("form",{onSubmit:s,className:h["popup-reset-password__form"]},r.createElement(P.c,{variant:"h2",fontSize:"16",fontWeight:"semi-bold",classNames:h["popup-reset-password__title"]},e.formatMessage(x.title)),r.createElement(P.c,{fontSize:"14",variant:"p"},e.formatMessage(x.description)),t&&r.createElement(P.c,{fontSize:"14",variant:"p",classNames:h["popup-reset-password__error"]},t),r.createElement(_.c,{classNamesCntr:h["popup-reset-password__form__field"],errorClass:h["popup-reset-password__form__field__error"],label:e.formatMessage(x.email),id:"email",name:"email",type:"text",component:"input",initialValue:a,requirednessLabel:"*",validation:[{rule:u.c.isRequired,errorMessage:e.formatMessage(x.emailEmptyError)},{rule:u.c.validateCustomerName,errorMessage:e.formatMessage(x.latinCharactersError)},{rule:u.c.isEmail,errorMessage:e.formatMessage(x.emailInvalidError)}]}),r.createElement("div",{className:h["popup-reset-password__submit-wrapper"]},r.createElement(n.c,{type:"submit",variant:"primary",disabled:l||o,classNames:h["popup-reset-password__submit-btn"]},e.formatMessage(x.send)))))}))},M=(0,v.Os)({title:{id:"auth.resetPassword.title",defaultMessage:[{type:0,value:"Reset Password"}]},description:{id:"auth.resetPassword.success",defaultMessage:[{type:0,value:"Thanks for submitting your email address. We've sent you an email with the information needed to reset your password. The email might take a couple of minutes to reach your account. Please check your junk mail to ensure you receive it."}]},close:{id:"auth.resetPassword.close",defaultMessage:[{type:0,value:"Close"}]}}),R=()=>{const e=(0,i.c)();return r.createElement(g.c,{id:"reset-password-success",overlayClassName:"PopupResetPasswordSuccess__popup-reset-password__overlay--XtL12",popupContentClassName:"PopupResetPasswordSuccess__popup-reset-password__content--ZH8YJ"},r.createElement(P.c,{variant:"h2",classNames:"PopupResetPasswordSuccess__popup-reset-password__title--sHACc"},e.formatMessage(M.title)),r.createElement(P.c,{variant:"p",classNames:"PopupResetPasswordSuccess__popup-reset-password__description--N2RDP"},e.formatMessage(M.description)))},C=(0,v.Os)({title:{id:"auth.resetPassword.title",defaultMessage:[{type:0,value:"Reset Password"}]},description:{id:"auth.resetPassword.description",defaultMessage:[{type:0,value:"Please enter your email address to receive an email with instructions to reset your password."}]},latinCharactersError:{id:"forms.fields.name.error.latinCharacters",defaultMessage:[{type:0,value:"Please enter Latin characters only"}]}
1,email:{id:"forms.fields.email.labels.required",defaultMessage:[{type:0,value:"Email"}]},emailEmptyError:{id:"forms.fields.email.noempty",defaultMessage:[{type:0,value:"Please enter your email address"}]},emailInvalidError:{id:"forms.fields.email.noinvalid",defaultMessage:[{type:0,value:"Please enter a valid email address"}]},send:{id:"auth.resetPassword.submit",defaultMessage:[{type:0,value:"Send"}]},unexpectedError:{id:"loginForm.forgotPassword.error",defaultMessage:[{type:0,value:"Ooops! Something was wrong, please try later."}]},userNotFoundError:{id:"auth.resetPassword.error.userNotFound",defaultMessage:[{type:0,value:"No matching email address was found. Check your spelling and try again."}]}}),F={"display-from-extra-small":"AuthResetPassword__display-from-extra-small--eFXrc","display-above-extra-small":"AuthResetPassword__display-above-extra-small--NjBKs","display-from-small":"AuthResetPassword__display-from-small--_XUmh","display-above-small":"AuthResetPassword__display-above-small--V1oII","display-from-medium":"AuthResetPassword__display-from-medium--sUE4A","display-above-medium":"AuthResetPassword__display-above-medium--cfaxJ","display-from-large":"AuthResetPassword__display-from-large--IhuTp","display-above-large":"AuthResetPassword__display-above-large--Etw9U","display-from-x-large":"AuthResetPassword__display-from-x-large--BRiA0","display-above-x-large":"AuthResetPassword__display-above-x-large--ncpcC","display-from-xx-large":"AuthResetPassword__display-from-xx-large--honhs","display-above-xx-large":"AuthResetPassword__display-above-xx-large--esfJH","display-from-xxx-large":"AuthResetPassword__display-from-xxx-large--Zv9F1","display-above-xxx-large":"AuthResetPassword__display-above-xxx-large--je3YD","display-from-xxxx-large":"AuthResetPassword__display-from-xxxx-large--eH0Sa","display-above-xxxx-large":"AuthResetPassword__display-above-xxxx-large--u6smM","reset-password__container":"AuthResetPassword__reset-password__container--N1reI","reset-password__title":"AuthResetPassword__reset-password__title--W6Jvs","reset-password__description":"AuthResetPassword__reset-password__description--JmGdE","reset-password__form":"AuthResetPassword__reset-password__form--qb3Aj","reset-password__form__fields-wrapper":"AuthResetPassword__reset-password__form__fields-wrapper--Onl8S","reset-password__submit-wrapper":"AuthResetPassword__reset-password__submit-wrapper--t_thq"},N=()=>{const e=(0,i.c)(),{managerRepository:s}=(0,m.w)(),a=(0,p.c)(),[t,o]=(0,r.useState)(""),[f,w]=(0,r.useState)(""),g=(0,r.useCallback)(function(){var r=(0,l.c)((function*(r){o(r.email);try{const t=yield a.resetCustomerPassword(r.email);if(t.error)return"Not possible to find the user"===t.validation.errorMsg?(w(e.formatMessage(C.userNotFoundError)),void s.getPopupsMgr().openPopup("reset-password-failed")):{email:t.validation.errorMsg};s.getPopupsMgr().openPopup("reset-password-success")}catch(s){return{email:e.formatMessage(C.unexpectedError)}}}));return function(e){return r.apply(this,arguments)}}(),[]),v=(0,r.useCallback)((e=>{w(e)}),[]);return r.createElement(c.c,{classNames:F["reset-password__container"]},r.createElement(c.c.Row,null,r.createElement(c.c.Column,{classNames:F["reset-password__column"],md:5},r.createElement(d.QF,{onSubmit:g,render:({handleSubmit:s,submitting:a,hasValidationErrors:t})=>r.createElement("form",{onSubmit:s,className:F["reset-password__form"]},r.createElement(P.c,{variant:"h2",classNames:F["reset-password__title"]},e.formatMessage(C.title)),r.createElement(P.c,{variant:"p",classNames:F["reset-password__description"]},e.formatMessage(C.description)),r.createElement("div",{className:F["reset-password__form__fields-wrapper"]},r.createElement(_.c,{id:"email",label:e.formatMessage(C.email),classNamesCntr:F["reset-password__form__field"],errorClass:F["reset-password__form__field__error"],name:"email",type:"text",component:"input",validation:[{rule:u.c.isRequired,errorMessage:e.formatMessage(C.emailEmptyError)},{rule:u.c.validateCustomerName,errorMessage:e.formatMessage(C.latinCharactersError)},{rule:u.c.isEmail,errorMessage:e.formatMessage(C.emailInvalidError)}]}),r.createElement("div",{className:F["reset-password__submit-wrapper"]},r.createElement(n.c,{type:"submit",variant:"primary",disabled:a||t,classNames:F["reset-password__submit-btn"]},e.formatMessage(C.send)))))}),r.createElement(R,null),r.createElement(y,{value:{error:f,email:t,setError:v}},r.createElement(E,null)))))},A=(0,v.Os)({title:{id:"resetPassword.page.title",defaultMessage:[{type:0,value:"Reset password"}]},description:{id:"resetPassword.page.description",defaultMessage:[{type:0,value:"Please enter your email address to receive an email with instructions to reset your password."}]},latinCharactersError:{id:"forms.fields.name.error.latinCharacters",defaultMessage:[{type:0,value:"Please enter Latin characters only"}]}
1,email:{id:"forms.fields.email.labels.required",defaultMessage:[{type:0,value:"Email"},{type:8,value:"required",children:[{type:0,value:"*"}]}]},emailEmptyError:{id:"forms.fields.email.noempty",defaultMessage:[{type:0,value:"Please enter your email address"}]},emailInvalidError:{id:"forms.fields.email.noinvalid",defaultMessage:[{type:0,value:"Please enter a valid email address"}]},seoTitle:{id:"resetPassword.page.seoTitle",defaultMessage:[{type:0,value:"Reset password"}]},send:{id:"send",defaultMessage:[{type:0,value:"Send"}]}}),S=(0,t.c)((()=>((0,o.CO)({route:"ResetPasswordPage",seo:{title:A.seoTitle},slug:"/reset-password"}),r.createElement(N,null))),"reset-password")}}]);

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.