1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[45656],{jxhN:function(e,r,s){s.r(r)},OP2P:function(e,r,s){s.r(r),s.d(r,{default:function(){return D}});var a=s("sViW"),t=s("M5j3"),n=s("5ene"),o=s("jg1C"),i=s("ERkP"),l=s("aWzz"),c=s.n(l),u=s("SH0t"),d=s("pRvs"),E=s("+hKN"),h=s("ogaj"),m=s("66Ne"),S=s("ZxsG"),p=s("/y3p"),R=s("k0sV"),v=s("6aWq"),T=s("CJ1Y"),A=s("dsNx");function N(e,r){var s="";try{r.validateSync(e)}catch(e){s=e.message}return s}function f(e){var r,s;return"checkbox"===(null==e||null==(r=e.target)?void 0:r.type)?e.target.checked:(null==e||null==(s=e.target)?void 0:s.value)||""}var g=function(e,r){var s=(void 0===r?{}:r).initialValue,a=void 0===s?"":s,n=(0,i.useState)({value:a,touched:!1,error:""}),o=n[0],l=n[1],c=(0,i.useCallback)((function(r){var s=f(r);l((function(r){return(0,t.A)({},r,{value:s,error:N(s,e)})}))}),[e]),u=(0,i.useCallback)((function(r){var s=f(r);l((function(r){return(0,t.A)({},r,{touched:!0,value:s,error:N(s,e)})}))}),[e]),d=(0,i.useCallback)((function(r){l((function(s){return(0,t.A)({},s,{touched:!0,error:N(r,e)})}))}),[e]),E=(0,i.useCallback)((function(e){l({value:e||o.value,touched:!1,error:""})}),[o.value]);return(0,i.useMemo)((function(){return{fieldState:o,onChange:c,onBlur:u,onReset:E,setFieldTouched:d}}),[o,c,u,E,d])};var _=s("2WKp");function w(e){var r=e.invalidError,s=void 0===r?"El formato de la contraseña es incorrecto":r,a=e.minimumError,t=void 0===a?"Recuerda que debe contener, como mÃnimo, 8 carácteres.":a,n=e.requiredError,o=void 0===n?"Este campo es obligatorio":n;return(0,_.Yj)().min(8,t).matches(/[a-z]/,s).matches(/[A-Z]/,s).matches(/[0-9]/,s).matches(/[^a-zA-Z0-9]/,s).required(o)}var O=function(){var e=(0,E.s9)(),r=(0,i.useState)(!1),s=r[0],a=r[1],t=(0,i.useState)(!1),n=t[0],o=t[1],l=(0,i.useState)(!1),c=l[0],u=l[1],d=(0,i.useState)({hasLengthError:!1,hasLowercaseError:!1,hasUppercaseError:!1,hasNumbersError:!1,hasSpecialCharactersError:!1}),h=d[0],m=d[1],S=(0,i.useMemo)((function(){return{passwordSchema:(r={invalidError:e.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.INVALID"),minimumError:e.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.MINIMUM_ERROR"),requiredError:e.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.REQUIRED")}
1,s=r.invalidError,a=void 0===s?"El formato de la contraseña es incorrecto":s,t=r.minimumError,n=void 0===t?"Recuerda que debe contener, como mÃnimo, 8 carácteres.":t,o=r.requiredError,i=void 0===o?"Este campo es obligatorio":o,(0,_.Yj)().min(8,n).matches(/[a-z]/,a).matches(/[A-Z]/,a).matches(/[0-9]/,a).matches(/[^a-zA-Z0-9]/,a).required(i)),repeatPasswordSchema:w({invalidError:e.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.INVALID"),minimumError:e.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.MINIMUM_ERROR"),requiredError:e.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.REQUIRED")})};var r,s,a,t,n,o,i}),[e]),p=S.passwordSchema,R=S.repeatPasswordSchema,v=g(p,{initialValue:""}),T=v.fieldState,A=v.onChange,N=v.onBlur,f=v.onReset,O=g(R,{initialValue:""}),I=O.fieldState,x=O.onChange,P=O.onBlur,C=O.onReset,b=(0,i.useMemo)((function(){return function(e){void 0===e&&(e="");var r={length:"string"==typeof e&&e.length>=8,lowercase:/[a-z]/.test(e),uppercase:/[A-Z]/.test(e),numbers:/[0-9]/.test(e),specialCharacters:/[^a-zA-Z0-9]/.test(e)};return{isValid:Object.values(r).every((function(e){return e})),passesLengthValidation:r.length,passesLowercaseValidation:r.lowercase,passesUppercaseValidation:r.uppercase,passesNumbersValidation:r.numbers,passesSpecialCharactersValidation:r.specialCharacters}}(T.value)}),[T.value]);(0,i.useEffect)((function(){T.value&&(o(!0),m({hasLengthError:!b.passesLengthValidation,hasLowercaseError:!b.passesLowercaseValidation,hasUppercaseError:!b.passesUppercaseValidation,hasNumbersError:!b.passesNumbersValidation,hasSpecialCharactersError:!b.passesSpecialCharactersValidation}),b.isValid?u(!1):u(!0))}),[b,T.value]);var j=T.touched||I.touched,D=(0,i.useMemo)((function(){var e,r;return!1===(e=T.value,r=I.value,e!==r||"string"!=typeof e||"string"!=typeof e||""===e||""===r?{areEqual:!1,newPassword:null}:{areEqual:!0,newPassword:e}).areEqual&&j}),[j,T.value,I.value]),U=(0,i.useMemo)((function(){return!D&&!(void 0===(e=[{schema:p,value:T.value},{schema:R,value:I.value}])&&(e=[]),!e.map((function(e){var r=e.schema,s=e.value;return!0===r.isValidSync(s)})).every(Boolean));var e}),[D,T.value,p,I.value,R]),V=(0,i.useMemo)((function(){return!(!j||U)||!!D}),[j,D,U]),k=(0,i.useCallback)((function(){f(""),C("")}),[f,C]);return(0,i.useMemo)((function(){return{fields:{passwordField:T,repeatPasswordField:I},onPasswordChange:A,onPasswordBlur:N,onRepeatPasswordChange:x,onRepeatPasswordBlur:P,isFormValid:U,isFormDisabled:V,isSubmitting:s,arePasswordsDifferentError:D,passwordField:T,repeatPasswordField:I,setIsSubmitting:a,clearForm:k,isTouched:n,setIsTouched:o,passwordErrors:h,showPasswordValidationError:c}}),[T,I,A,N,x,P,U,V,s,D,k,n,h,c])},I=(0,i.lazy)((function(){return s.e(14637).then(s.bind(s,"X1jM"))})),x=(0,i.lazy)((function(){return s.e(99295).then(s.bind(s,"YVBl"))})),P="re-AuthResetPassword";function C(e){var r=e.token,s=void 0===r?"":r,t=(0,E.s9)(),l=(0,E.sn)(),c=(0,h.A)(),u=c.TRACKING_EVENTS,d=c.trackEvent,N=u.SEGMENT,f=t.culture,g=(0,i.useState)(!1),_=g[0],w=g[1],C=(0,i.useState)(!1),b=C[0],j=C[1],D=(0,i.useState)(!1),U=D[0],V=D[1],k=(0,i.useState)(""),y=k[0],M=k[1],W=(0,i.useState)(!1),L=W[0],H=W[1],z=(0,i.useState)(!1),B=z[0],F=z[1],q=(0,E.UK)("resetPasswordRequestErrorTypes")[0],K=(0,E.UK)("resetPasswordRequestValidationErrorTypes")[0],G=O(),Z=G.fields,Y=G.onPasswordChange,$=G.onPasswordBlur,Q=G.onRepeatPasswordChange,J=G.onRepeatPasswordBlur,X=G.isFormValid,ee=G.isFormDisabled,re=G.isSubmitting,se=G.arePasswordsDifferentError,ae=G.setIsSubmitting,te=G.clearForm,ne=G.isTouched,oe=G.passwordErrors,ie=G.showPasswordValidationError,le=oe.hasLengthError,ce=oe.hasLowercaseError,ue=oe.hasUppercaseError,de=oe.hasNumbersError,Ee=oe.hasSpecialCharactersError,he=Z.passwordField,me=Z.repeatPasswordField;(0,i.useEffect)((function(){d({eventName:N.RESET_PASSWORD_SHOWED,form_name:"reset_password_form"})}),[]);var Se=(0,a.A)((function(e){var r;return(0,n.YH)(this,(function(a){switch(a.label){case 0:if(e.preventDefault(),ae(!0),j(!1),!X)return ae(!1),[2];if(!X)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,l.get("reset_password_use_case").execute({resetToken:s,newPassword:he.value})];case 2:return a.sent(),ae(!1),w(!0),te(),d({eventName:N.RESET_PASSWORD_SUCCESS,form_name:"reset_password_form"}),[3,4];case 3:return r=a.sent(),ae(!1),j(!0),r.message===q.INVALID_TOKEN.errorName||"RESET_TOKEN_VALIDATION_ERROR"===r.message?(M(q.INVALID_TOKEN.errorName),d({eventName:N.RESET_PASSWORD_ERROR,error_reason:"invalid_reset_password_token"}),[2]):(M(q.SERVER_ERROR.errorName),d({eventName:N.RESET_PASSWORD_ERROR,error_reason:"server_error"}),[3,4]);case 4:return[2]}}
1))})),pe=y===q.INVALID_TOKEN.errorName||y===K.RESET_TOKEN_ERROR.errorName;return(0,o.jsx)("div",{className:P+" py-2xl px-lg sm:px-xl",children:_?(0,o.jsxs)("div",{className:P+"Confirmation",children:[(0,o.jsx)("h1",{children:t.t("AUTHENTICATION.RESET_PASSWORD.SUCCESS.TITLE")}),(0,o.jsx)("p",{children:t.t("AUTHENTICATION.RESET_PASSWORD.SUCCESS.SUBTITLE")}),(0,o.jsx)(p.$,{className:"w-full",onClick:function(){var e=f.split("-")[0];window.location.href="/"+e+"/login"},children:t.t("AUTHENTICATION.RESET_PASSWORD.SUCCESS.BUTTON")})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h1",{className:"text-headline-1",children:t.t("AUTHENTICATION.RESET_PASSWORD.TITLE")}),(0,o.jsxs)("form",{onSubmit:Se,noValidate:!0,children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)(R.D0,{name:"password",state:he.touched&&he.error?"error":void 0,children:[(0,o.jsx)(R.dh,{className:"font-semi-bold",htmlFor:"password",children:t.t("AUTHENTICATION.RESET_PASSWORD.NEW_PASSWORD_LABEL")}),(0,o.jsxs)(A.MG,{className:"h-40 mb-md",children:[(0,o.jsx)(A.pd,{"aria-label":"Password",className:"border-solid",onChange:Y,size:"sm",type:L?"text":"password",id:"password",tabIndex:0,value:he.value,onBlur:$}),(0,o.jsx)(A.px,{className:"border-sm border-outline border-solid",size:"sm",children:(0,o.jsx)(T.K,{intent:"main",variant:"ghost","aria-label":L?"Hide password":"Show password",onClick:function(){return H(!L)},size:"sm",children:(0,o.jsx)(v.I,{children:L?(0,o.jsx)(m.A,{}):(0,o.jsx)(S.A,{})})})})]})]}),(0,o.jsx)(i.Suspense,{fallback:null,children:(0,o.jsx)(I,{isTouched:ne,hasLengthError:le,hasLowercaseError:ce,hasUppercaseError:ue,hasNumbersError:de,hasSpecialCharactersError:Ee,showPasswordValidationError:ie})}),(0,o.jsxs)(R.D0,{name:"repeatPassword",state:me.touched&&me.error?"error":void 0,className:"mt-sm",children:[(0,o.jsx)(R.dh,{className:"font-semi-bold",htmlFor:"repeatPassword",children:t.t("AUTHENTICATION.RESET_PASSWORD.REPEAT_NEW_PASSWORD_LABEL")}),(0,o.jsxs)(A.MG,{className:"h-40 mb-md",children:[(0,o.jsx)(A.pd,{"aria-label":"repeatPassword",className:"border-solid",onChange:Q,size:"sm",type:B?"text":"password",id:"repeatPassword",tabIndex:0,value:me.value,onBlur:J}),(0,o.jsx)(A.px,{className:"border-sm border-outline border-solid",size:"sm",children:(0,o.jsx)(T.K,{intent:"main",variant:"ghost","aria-label":B?"Hide password":"Show password",onClick:function(){return F(!B)},size:"sm",children:(0,o.jsx)(v.I,{children:B?(0,o.jsx)(m.A,{}):(0,o.jsx)(S.A,{})})})})]}),(0,o.jsx)(R.sG,{children:se&&t.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.PASSWORDS_DO_NOT_MATCH")})]})]}),(0,o.jsx)(p.$,{className:"w-full mt-md",type:"submit",disabled:ee||re||pe,isLoading:re,children:t.t("AUTHENTICATION.RESET_PASSWORD.SUBMIT_BUTTON")}),b&&y===q.SERVER_ERROR.errorName&&(0,o.jsx)("p",{className:P+"ErrorMessage",children:t.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.SERVER_ERROR")}),b&&pe&&(0,o.jsxs)("p",{className:P+"ErrorMessage",children:[t.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.INVALID_TOKEN")," ",(0,o.jsx)("span",{className:P+"ErrorMessage-requestNewLink",onClick:function(){return V(!0)},children:t.t("AUTHENTICATION.RESET_PASSWORD.ERRORS.REQUEST_NEW_TOKEN")})]})]}),U&&(0,o.jsx)(i.Suspense,{fallback:null,children:(0,o.jsx)(x,{onClose:function(){return V(!1)}})})]})})}C.displayName="AuthResetPassword",C.propTypes={token:c().string};var b,j=C;function D(e){var r=e.location,s=e.seo,a=e.token,n=(0,E.sn)(),l=r.pathname,c=(0,h.A)().trackPageView;return(0,i.useEffect)((function(){n.get("track_page_view_use_case").execute({pathname:l})}),[]),(0,i.useEffect)((function(){c({pathname:l})}),[]),(0,o.jsxs)("div",{className:"flex items-center justify-center",children:[(0,o.jsx)(d.A,(0,t.A)({},s)),(0,o.jsx)("div",{children:(0,o.jsx)(j,{token:a})})]})}D.propTypes={location:c().object,seo:c().object,token:c().string},D.displayName="AuthResetPasswordPage",D.getInitialProps=(b=(0,a.A)((function(e){var r,s,a,t,o,i,l,c,d,E,h,m;return(0,n.YH)(this,(function(n){switch(n.label){case 0:r=e.context,s=e.routeInfo,a=r.domain,t=r.i18n,o=r.cookies,i=t.culture,l=s.location,c=l.query,d=l.pathname,E=u.A.parse(o||""),h=E.fc_reset_token||"",n.label=1;case 1:return n.trys.push([1,3,,4]),[4,a.get("get_head_seo_use_case").execute({culture:i,page:D.displayName})];case 2:return m=n.sent(),(null==c?void 0:c.pwrt)?[2,{seo:m,token:h,__HTTP__:{redirectTo:d}}]:[2,{seo:m,token:h}];case 3:return n.sent(),[2,{seo:{},token:""}];case 4:return[2]}}
1))})),function(e){return b.apply(this,arguments)})},"66Ne":function(e,r,s){var a=s("DPeK"),t=s("aiFg"),n=s("ERkP"),o=s("ArGU"),i=s("jg1C"),l=["id","title","design"],c=(0,n.memo)((function(e){var r=e.id,s=e.title,n=e.design,c=void 0===n?"filled":n,u=(0,t.A)(e,l),d=function(e){var r=e.id,s=e.svg,a=e.title;return a&&r?s.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+r+'"><title id="'+r+'">'+a+"</title>"):s.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:r,svg:'<svg viewBox="0 0 24 24"><path d="M21.014 2.459a.75.75 0 0 1 1.113 1l-.075.082-18.75 18a.75.75 0 0 1-1.113-1l.075-.082 18.75-18zm-1.87 5.979a.75.75 0 0 1 1.048-.164 21.32 21.32 0 0 1 3.19 2.861 2.414 2.414 0 0 1-.003 3.232c-3.184 3.505-7.482 5.949-11.373 5.883a10.735 10.735 0 0 1-3.264-.483.75.75 0 1 1 .444-1.432 9.272 9.272 0 0 0 2.827.415c3.406.057 7.335-2.176 10.254-5.389a.912.912 0 0 0 .003-1.219 19.818 19.818 0 0 0-2.962-2.656.75.75 0 0 1-.164-1.048zM11.992 5.25c.877-.01 1.751.092 2.602.304a.75.75 0 1 1-.362 1.456 8.854 8.854 0 0 0-2.244-.26C8.609 6.694 4.66 8.92 1.736 12.137a.912.912 0 0 0-.003 1.218 20.05 20.05 0 0 0 2.506 2.314.75.75 0 0 1-.92 1.184 21.563 21.563 0 0 1-2.697-2.49 2.414 2.414 0 0 1 .002-3.233c3.189-3.507 7.51-5.944 11.368-5.88z"/><path d="M12 8.25a.75.75 0 0 1 0 1.5 2.999 2.999 0 0 0-3 3 .75.75 0 1 1-1.5 0 4.499 4.499 0 0 1 4.5-4.5zm3.75 3.749a.75.75 0 0 1 .75.75A4.5 4.5 0 0 1 12 17.25a.75.75 0 1 1 0-1.5 3 3 0 0 0 3-3 .75.75 0 0 1 .75-.751z"/></svg>',title:s});return(0,i.jsx)(o.Ay,(0,a.A)({design:c},u,{children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})}))}));c.displayName="MemoViewOffAtomIcon",r.A=c},ZxsG:function(e,r,s){var a=s("DPeK"),t=s("aiFg"),n=s("ERkP"),o=s("ArGU"),i=s("jg1C"),l=["id","title","design"],c=(0,n.memo)((function(e){var r=e.id,s=e.title,n=e.design,c=void 0===n?"filled":n,u=(0,t.A)(e,l),d=function(e){var r=e.id,s=e.svg,a=e.title;return a&&r?s.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+r+'"><title id="'+r+'">'+a+"</title>"):s.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:r,svg:'<svg viewBox="0 0 24 24"><path d="M12.353 4.502h-.34C8.133 4.435 3.81 6.871.623 10.38a2.414 2.414 0 0 0-.001 3.232c3.092 3.406 7.236 5.81 11.055 5.884h.336c3.884.067 8.182-2.377 11.366-5.882.83-.92.83-2.314.002-3.232-3.085-3.392-7.248-5.797-11.028-5.88zm-.674 1.5h.655c3.293.074 7.104 2.275 9.935 5.388.31.344.31.872-.002 1.219-2.83 3.115-6.61 5.31-9.943 5.388l-.311.001c-3.432.057-7.36-2.177-10.279-5.391a.912.912 0 0 1 .002-1.22C4.57 8.268 8.37 6.08 11.68 6.002z"/><path d="M12 7.499a4.5 4.5 0 1 0 .238.006L12 7.5zm0 1.5a2.999 2.999 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>',title:s});return(0,i.jsx)(o.Ay,(0,a.A)({design:c},u,{children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})}))}));c.displayName="MemoViewOnAtomIcon",r.A=c}}]);
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.