PageSourceSearch

https://www.grover.com/_next/static/chunks/pages/[store-locale]/auth/reset-password-24f3ce00687e997e.js

js grover.com collected 2026-10-02 02:41:12 UTC 22,534 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4359],{12620:(e,r,t)=>{"use strict";t.d(r,{Y:()=>n});var s=t(37876),a=t(27964),o=t(45484);let i=t(87856).Ay.span.withConfig({componentId:"sc-f2be81a9-0"})(["color:inherit;text-decoration:underline;cursor:pointer;"]),n=e=>{let r,t,n=(0,a.c)(3),{children:l}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r={textDecoration:"underline ",cursor:"pointer"},n[0]=r):r=n[0],n[1]!==l?(t=(0,s.jsx)(i,{style:r,onClick:o.openHelpCenter,children:l}),n[1]=l,n[2]=t):t=n[2],t}},20194:(e,r,t)=>{"use strict";t.d(r,{Cb:()=>u,Rr:()=>l,_H:()=>m,ff:()=>h,lV:()=>n,zE:()=>p});var s=t(48230),a=t.n(s),o=t(87856),i=t(81605);o.Ay.div.withConfig({componentId:"sc-3825349e-0"})(["width:100%;display:flex;flex-direction:column;gap:",";"],({theme:e})=>e.spacers.L);let n=o.Ay.form.withConfig({componentId:"sc-3825349e-1"})(["width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:",";"],({theme:e})=>e.spacers.XXL);o.Ay.div.withConfig({componentId:"sc-3825349e-2"})(["width:100%;display:flex;align-items:flex-start;flex-direction:column;gap:",";@media (","){gap:",";}"],({theme:e})=>e.spacers.L,({theme:e})=>e.screens.desktop,({theme:e})=>e.spacers.XL);let l=o.Ay.p.withConfig({componentId:"sc-3825349e-3"})(["",";color:",";a{color:inherit;}"],({theme:e})=>e.typography.RegularParagraph,({theme:e})=>e.colors.text.darkGrey),d=o.Ay.p.withConfig({componentId:"sc-3825349e-4"})(["",";color:",";"],({theme:e})=>e.typography.SmallParagraph,({theme:e})=>e.colors.text.darkGrey);o.Ay.div.withConfig({componentId:"sc-3825349e-5"})(["width:100%;div:has(> input:disabled){background:",";border-color:",";}"],({theme:e})=>e.colors.background.superLightGrey,({theme:e})=>e.colors.stroke.lighterGrey),(0,o.Ay)(a()).withConfig({componentId:"sc-3825349e-6"})(["",";color:",";text-decoration:underline;text-underline-offset:2px;&:hover{color:",";}"],({theme:e})=>e.typography.SmallParagraph,({theme:e})=>e.colors.text.darkGrey,({theme:e})=>e.colors.hover.superDarkGrey),o.Ay.div.withConfig({componentId:"sc-3825349e-7"})(["width:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:"," ",";> ","{grid-column:1 / 3;}"],({theme:e})=>e.spacers.M,({theme:e})=>e.spacers.L,d);let c=(0,o.Ay)(i.A).withConfig({componentId:"sc-3825349e-8"})(["",";color:",";a{color:",";text-decoration:underline;text-underline-offset:2px;outline:none;&:hover{color:",";}&:focus-visible{box-shadow:",";border-radius:4px;}}"],({theme:e})=>e.typography.RegularParagraph,({theme:e})=>e.colors.text.darkGrey,({theme:e})=>e.colors.text.darkerGrey,({theme:e})=>e.colors.hover.superDarkGrey,({theme:e})=>e.shadows.focused);(0,o.Ay)(c).withConfig({componentId:"sc-3825349e-9"})(["margin-top:-",";"],({theme:e})=>e.spacers.L),o.Ay.div.withConfig({componentId:"sc-3825349e-10"})(["width:100%;display:flex;align-items:flex-start;flex-direction:column;gap:",";"],({theme:e})=>e.spacers.L),o.Ay.h2.withConfig({componentId:"sc-3825349e-11"})(["",";color:",";"],({theme:e})=>e.typography.TinyHeadline,({theme:e})=>e.colors.text.darkerGrey);let p=o.Ay.h1.withConfig({componentId:"sc-3825349e-12"})(["",";color:",";text-wrap:pretty;"],({theme:e})=>e.typography.SmallHeadline,({theme:e})=>e.colors.text.darkerGrey),u=o.Ay.div.withConfig({componentId:"sc-3825349e-13"})(["display:flex;flex-direction:column;align-items:flex-start;gap:",";"],({theme:e})=>e.spacers.L),m=o.Ay.div.withConfig({componentId:"sc-3825349e-14"})(["width:100%;display:flex;flex-direction:column;gap:",";@media (","){padding:",";max-width:375px;border:2px solid ",";border-radius:",";}"],({theme:e})=>e.spacers.XXL,({theme:e})=>e.screens.tablet,({theme:e})=>e.spacers.XXL,({theme:e})=>e.colors.stroke.lighterGrey,({theme:e})=>e.borderRadius.S),h=o.Ay.div.withConfig({componentId:"sc-3825349e-15"})(["padding:"," 0 0;width:100%;display:flex;flex-direction:column;align-items:center;gap:",";@media (","){padding:"," 0;> div:only-child{margin-top:",";}}"],({theme:e})=>e.spacers.XXL,({theme:e})=>e.spacers.XL,({theme:e})=>e.screens.tablet,({theme:e})=>e.spacers.XXL,({theme:e})=>e.spacers.XXL);o.Ay.div.withConfig({componentId:"sc-3825349e-16"})(["width:100%;display:flex;flex-direction:column;gap:",";"],({theme:e})=>e.spacers.L),o.Ay.p.withConfig({componentId:"sc-3825349e-17"})(["",";color:",";text-align:center;margin:0;"],({theme:e})=>e.typography.SmallParagraph,({theme:e})=>e.colors.text.darkGrey),o.Ay.div.withConfig({componentId:"sc-3825349e-18"})(["display:flex;flex-direction:column;align-items:center;text-align:center;gap:",";margin-bottom:",";",""],({theme:e})=>e.spacers.M,({theme:e})=>e.spacers.M,({theme:e,$leftAlignOnMobile:r})=>r&&(0,o.AH)(["@media (","){align-items:flex-start;text-align:left;}"],e.screens.mobileMax)),o.Ay.h1.withConfig({componentId:"sc-3825349e-19"})(["",";color:",";"],({theme:e})=>e.typography.SmallHeadline,({theme:e})=>e.colors.text.darkerGrey)},33305:(e,r,t)=>{"use strict";t.d(r,{Ai:()=>o,Ku:()=>c});var s=t(60513),a=t(36029);let o=s.z.object({email:s.z.string({message:"auth.errors.email.required"}).trim().min(1,{message:"auth.errors.email.required"}).email({message:"auth.errors.email.invalid"})}),i=s.z.string({message:"auth.errors.password.required"}).min(1,{message:"auth.errors.password.required"}).min(8,{message:"auth.errors.password.strength"}).max(a.K9,{message:"auth.errors.password.maxLength"}).regex(/[^A-Za-z0-9]{1,}/,{message:"auth.errors.password.strength"}).regex(/\d{1,}/,{message:"auth.errors.password.strength"}),n=new RegExp(/^[^0-9]+$/),l=new RegExp(/^[a-zA-ZÀ-ÖØ-öø-ÿ\s'’-]+$/),d=s.z.string({message:"auth.createAccountForm.errors.birthdate.required"}).trim().transform((e,r)=>{let[t,a,o]=String(e).split(".");if(!t||!a||!o)return r.addIssue({code:s.z.ZodIssueCode.custom,message:"auth.createAccountForm.errors.birthdate.requiredFormat"}),s.z.NEVER;let i=new Date().getFullYear().toString(),n=+i.slice(0,2)+(+o<=+i.substring(2)?0:-1),l=2===o.length?n+o:o;if(!t||!a||l?.length!==4||isNaN(new Date(`${l}-${a}-${t}`).getTime()))return r.addIssue({code:s.z.ZodIssueCode.custom,message:"auth.createAccountForm.errors.birthdate.requiredFormat"}),s.z.NEVER;let d=new Date(new Date().setFullYear(new Date().getFullYear()-18));if(new Date(`${l}-${a}-${t}`)>d)return r.addIssue({code:s.z.ZodIssueCode.custom,message:"auth.createAccountForm.errors.birthdate.minAge"}),s.z.NEVER;let c=new Date(new Date().setFullYear(new Date().getFullYear()-150));return new Date(`${l}-${a}-${t}`)<c?(r.addIssue({code:s.z.ZodIssueCode.custom,message:"auth.createAccountForm.errors.birthdate.maxAge"}),s.z.NEVER):`${t}-${a}-${l}`});s.z.object({email:s.z.string({message:"auth.errors.email.required"}).trim().min(1,{message:"auth.errors.email.required"}).max(a.PO,{message:"auth.errors.email.maxLength"}).email({message:"auth.errors.email.invalid"}),password:i,first_name:s.z.string({message:"auth.createAccountForm.errors.firstName.required"}).trim().min(1,{message:"auth.createAccountForm.errors.firstName.required"}).regex(n,{message:"auth.createAccountForm.errors.firstName.required"}
1).regex(l,{message:"auth.createAccountForm.errors.name.invalidCharacters"}).max(a.zx,{message:"auth.createAccountForm.errors.firstName.maxLength"}),last_name:s.z.string({message:"auth.createAccountForm.errors.lastName.required"}).trim().min(1,{message:"auth.createAccountForm.errors.lastName.required"}).regex(n,{message:"auth.createAccountForm.errors.lastName.required"}).regex(l,{message:"auth.createAccountForm.errors.name.invalidCharacters"}).max(a.bh,{message:"auth.createAccountForm.errors.lastName.maxLength"}),birthdate:d,subscribed_to_newsletter:s.z.boolean()}),s.z.object({email:s.z.string({message:"auth.errors.email.required"}).trim().min(1,{message:"auth.errors.email.required"}).email({message:"auth.errors.email.invalid"}),password:s.z.string({message:"auth.loginForm.errors.password.required"}).min(1,{message:"auth.loginForm.errors.password.required"})});let c=s.z.object({password:i})},49976:(e,r,t)=>{"use strict";t.d(r,{LE:()=>d,c:()=>n,cq:()=>i,xe:()=>l});var s=t(27964),a=t(27489);let o=/\[([^|]*)\|([^\]]*)\]/g,i=(e,r)=>{let t=(0,s.c)(11),{t:i}=(0,a.Bd)("common"),n=!!i(e).match(o);if(!r){let r;return t[0]!==e||t[1]!==i?(r=i(e),t[0]=e,t[1]=i,t[2]=r):r=t[2],r}if(n){let s;if(t[3]!==e||t[4]!==i||t[5]!==r){let a=((e,r)=>{let t=e.split("}}"),s=[t[0]];for(let e=1;e<t.length;e++){let a=t[e-1]??"",i=t[e]??"",n=r[a.split("{{").slice(-1)[0]??""];n||"number"==typeof n?s.push(i.replace(o,1===n?"$1":"$2")):s.push(i)}return s.join("}}")})(i(e,{interpolation:{skipOnVariables:!0}}),r);s=i(a,r),t[3]=e,t[4]=i,t[5]=r,t[6]=s}else s=t[6];return s}{let s;return t[7]!==e||t[8]!==i||t[9]!==r?(s=i(e,r),t[7]=e,t[8]=i,t[9]=r,t[10]=s):s=t[10],s}},n=e=>e.charAt(0).toUpperCase()+e.slice(1),l=e=>
1e.replace(/\\n/g,"<br/>"),d=e=>e.replace(/\\n/g,"\n")},51176:(e,r,t)=>{"use strict";t.d(r,{h:()=>a});var s=t(37876);let a=(0,t(14232).forwardRef)(({size:e=24,...r},t)=>(0,s.jsx)("svg",{"data-testid":"svg-circle-filled",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 24 24",ref:t,...r,children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10",clipRule:"evenodd"})}));a.displayName="SvgCircleFilled"},59470:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[store-locale]/auth/reset-password",function(){return t(70349)}])},59513:(e,r,t)=>{"use strict";t.d(r,{e:()=>n});var s=t(27964),a=t(35750),o=t(93184),i=t(10957);let n=()=>{let e,r,t=(0,s.c)(3),{activeLocale:n}=(0,o.Ym)(),{activeStore:l}=(0,i.P)();t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.A)(),t[0]=e):e=t[0];let{publicRuntimeConfig:d}=e,c=d?.frontshopBaseUrl??"",p=`${c}/${l}-${n}`;return t[1]!==p?(r={getBaseUrl:()=>p,getCompleteUrl:e=>{if(!e)return p;let r=e.startsWith("/")?e.replace("/",""):e;return`${p}/${r}`}},t[1]=p,t[2]=r):r=t[2],r}},66538:(e,r,t)=>{"use strict";t.d(r,{L4:()=>i,dF:()=>l,g6:()=>n});var s,a=t(29653),o=t(83049),i=((s={}).accountAlreadyHasIdentification="account-already-has-id",s.accountAlreadyHasPhone="account-already-has-phone",s.accountLocked="account-locked",s.emailAlreadyExists="email-already-exists",s.emailN
1otFound="email-not-found",s.identificationAlreadyExists="id-already-exists",s.invalidAuthToken="invalid-auth-token",s.invalidConfirmationCode="invalid-confirmation-code",s.invalidFormat="invalid-format",s.linkExpired="link-expired",s.passwordAlreadyUsed="password-already-used",s.passwordIncorrect="password-incorrect",s.passwordInsecure="password-insecure",s.phoneNumberAlreadyExists="phone-number-already-exists",s.tooManyRequests="too-many-requests",s.domainBlocked="domain-blocked",s.cloudflareChallenge="cloudflare-challenge",s.unknown="unknown",s);let n=async(e,r)=>{try{await (0,a.$)(e,{...r})}catch(t){o.v.warn("(trackAuthEvent): Failed to send Segment event",t instanceof Error?t:void 0,{event:e,context:r})}},l=async(e,r)=>{try{await (0,a.$)(e,r)}catch(t){o.v.warn("(trackOtpEvent): Failed to send Segment event",t instanceof Error?t:void 0,{event:e,payload:r})}}},70349:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>er,default:()=>et});var s=t(37876),a=t(27964),o=t(77328),i=t.n(o),n=t(27489),l=t(24010),d=t(20194),c=t(14232),p=t(89099),u=t(88992),m=t(13810),h=t(28612),g=t(71943),w=t(31438);let f=(0,c.forwardRef)(({size:e=24,...r},t)=>(0,s.jsxs)("svg",{"data-testid":"svg-canceled-eye",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 24 24",ref:t,...r,children:[(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.293 3.293 1.88 4.707l3.016 3.016A10.7 10.7 0 0 0 2 11.988C3.49 16.078 7.414 19 12.02 19c1.244 0 2.438-.213 3.547-.605l3.726 3.726 1.414-1.414-3.216-3.216-1.469-1.47-1.89-1.89-4.243-4.243-1.9-1.9L6.52 6.522zM6.311 9.14a8.7 8.7 0 0 0-2.147 2.85 8.66 8.66 0 0 0 9.79 4.793l-1.786-1.787q-.073.004-.148.004a3 3 0 0 1-2.997-3.148z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"currentColor",d:"m11.835 9.006 3.18 3.18q.005-.093.005-.186a3 3 0 0 0-3.185-2.994"}),(0,s.jsx)("path",{fill:"currentColor",d:"M19.867 12.01a8.7 8.7 0 0 1-2.164 2.864l1.417 1.417a10.7 10.7 0 0 0 2.91-4.28C20.54 7.922 16.618 5 12.012 5c-1.252 0-2.454.216-3.57.612l1.61 1.61a8.663 8.663 0 0 1 9.816 4.787"})]}));f.displayName="SvgCanceledEye";let x=(0,c.forwardRef)(({size:e=24,...r},t)=>(0,s.jsx)("svg",{"data-testid":"svg-eye",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 24 24",ref:t,...r,children:(0,s.jsx)("path",{fill:"currentColor",stroke:"currentColor",d:"m3.691 11.779-.099.211.099.212A9.16 9.16 0 0 0 12 17.5a9.16 9.16 0 0 0 8.3-5.279l.098-.211-.098-.212A9.16 9.16 0 0 0 11.99 6.5a9.16 9.16 0 0 0-8.3 5.279Zm10.81.221a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Zm-2.51-6.5c4.325 0 8.02 2.702 9.486 6.511A10.16 10.16 0 0 1 12 18.5c-4.324 0-8.019-2.702-9.485-6.511A10.16 10.16 0 0 1 11.992 5.5Z"})}));x.displayName="SvgEye";let y=(0,c.forwardRef)(({autoComplete:e,description:r,disabled:t=!1,error:a,label:o,name:i,onBlur:n=()=>null,onChange:l=()=>null,onFocus:d=()=>null,placeholder:p=" ",value:u,testId:m},y)=>{let[v,A]=(0,c.useState)(!1),b=(0,w.g)(i,!!a);return(0,s.jsx)(h.a,{description:r,disabled:t,error:a,icon:v?(0,s.jsx)(f,{}):(0,s.jsx)(x,{}),label:o,name:i,onIconClick:()=>A(e=>!e),iconAriaLabel:v?"Hide password":"Show password",iconAriaPressed:v,children:(0,s.jsx)(g.Sj,{autoComplete:e,autoCapitalize:"off","data-testid":null!=m?m:"password-input",disabled:t,$errorVisible:!!a,id:i,name:i,onBlur:n,onChange:e=>l(e.target.value),onFocus:d,placeholder:p,ref:y,type:v?"text":"password",value:u,"aria-describedby":b,"aria-invalid":!!a||void 0})})});y.displayName="PasswordInput";var v=t(23264),A=t(7336),b=t(89896),C=t(57493),j=t(81605),k=t(26563),F=t(7393),I=t(90142),L=t(66538),R=t(83049),E=t(64724);let $=async({password:e,store:r,token:t})=>{let s=await fetch(F.X.resetPassword,{method:"PATCH",headers:{"Content-Type":"application/json",[k.zK]:"en",[k.oJ]:r},body:JSON.stringify({user:{password:e,password_confirmation:e,reset_password_token:t}})});if(!s.ok){let e=await s.json();if("reset_password_token"in e&&Array.isArray(e.reset_password_token))throw await (0,L.g6)(I.V.passwordResetFailed,{error:L.L4.linkExpired}),new E.A("auth.expiredLinkNotice.passwordReset.description",s.status);if("password"in e&&Array.isArray(e.password)&&e.password[0]&&"string"==typeof e.password[0]){if(e.password[0].includes("already used"))throw await (0,L.g6)(I.V.passwordResetFailed,{error:L.L4.passwordAlreadyUsed}),new E.A("auth.resetPasswordForm.errors.password.unique",s.status);else if(e.password[0].includes("vulnerable passwords"))throw await (0,L.g6)(I.V.passwordResetFailed,{error:L.L4.passwordInsecure}),new E.A("auth.errors.password.unsafe",s.status)}await (0,L.g6)(I.V.passwordResetFailed,{error:L.L4.unknown});let r=s.headers.get("x-request-id");throw R.v.error("(setPassword): Unexpected error",void 0,{...e,traceId:r,bypassSample:!0}),Error()}return await s.json()};var _=t(93184),S=t(10957),z=t(73232),N=t(12620);t(48230),t(59513),t(34536);var P=t(35750);let{publicRuntimeConfig:q}=(0,P.A)();q?.frontshopBaseUrl,t(80739),t(54428),t(27361),t(20116),t(49976);var G=t(87856),X=t(25112);G.Ay.div.withConfig({componentId:"sc-95232144-0"})(["width:100%;display:flex;flex-direction:column;align-items:center;gap:",";&:last-child{margin-top:",";}"],({theme:e})=>e.spacers.L,({theme:e})=>e.spacers.L),(0,G.Ay)(j.A).withConfig({componentId:"sc-95232144-1"})(["",";color:",";text-align:center;b{",";}"],({theme:e})=>e.typography.RegularParagraph,({theme:e})=>e.colors.text.darkerGrey,({theme:e})=>e.typography.RegularParagraphBold),G.Ay.div.withConfig({componentId:"sc-95232144-2"})(["padding:",";display:flex;flex-direction:column;align-items:center;gap:",";overflow-x:hidden;overflow-y:auto;svg{min-height:100px;}"],({theme:e})=>`${e.spacers.L} ${e.spacers.L} ${e.spacers.XL}`,({theme:e})=>e.spacers.M),(0,G.Ay)(X.h).withConfig({componentId:"sc-95232144-3"})(["width:100%;max-height:80vh;background-color:",";border-radius:",";display:flex;flex-direction:column;gap:",";bottom:0;left:0;overflow:hidden;@supports (max-height:84svh){max-height:84svh;}@media (","){width:375px;border-radius:",";bottom:auto;top:50%;left:50%;transform:translate(-50%,-50%);}"],({theme:e})=>e.colors.background.white,({theme:e})=>`${e.borderRadius.S} ${e.borderRadius.S} 0 0`,({theme:e})=>e.spacers.M,({theme:e})=>e.screens.tablet,({theme:e})=>e.borderRadius.S),G.Ay.h3.withConfig({componentId:"sc-95232144-4"})(["",";color:",";text-align:center;"],({theme:e})=>e.typography.SmallHeadline,({theme:e})=>e.colors.text.darkerGrey);var B=t(22957),V=t(51176);let D=G.Ay.div.withConfig({componentId:"sc-8fc40ca1-0"})(["width:24px;height:24px;color:",";line-height:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;"],({theme:e,$valid:r})=>r?e.colors.status.darkGreen:e.colors.text.darkGrey),H=G.Ay.ul.withConfig({componentId:"sc-8fc40ca1-1"})(["list-style:none;padding:0;margin:0;display:flex;flex-direction:column;"]),M=G.Ay.li.withConfig({componentId:"sc-8fc40ca1-2"})(["display:flex;align-items:center;gap:",";list-style:none;"],({theme:e})=>e.spacers.S),Z=G.Ay.p.withConfig({componentId:"sc-8fc40ca1-3"})(["",";color:",";margin:0;"],({theme:e})=>e.typography.SmallParagraph,({theme:e})=>e.colors.text.darkGrey),Y=G.Ay.div.withConfig({componentId:"sc-8fc40ca1-4"})(["display:flex;flex-direction:column;"]),U={specialChars:{pattern:/[^A-Za-z0-9]/g,count:1},digits:{pattern:/\d/g,count:1},chars:{pattern:/./g,count:8}},O=e=>{let r,t,o,i,l=(0,a.c)(10),{password:d}=e,{t:c}=(0,n.Bd)();return l[0]!==c?(r=c("auth.passwordRequirements.prefix"),l[0]=c,l[1]=r):r=l[1],l[2]!==r?(t=(0,s.jsx)(Z,{children:r}),l[2]=r,l[3]=t):t=l[3],l[4]!==d||l[5]!==c?(o=(0,s.jsx)(H,{children:Object.entries(U).map(e=>{let[r,t]=e,{pattern:a,count:o}=t,i=((d||"").match(a)||[]).length>=o;return(0,s.jsxs)(M,{children:[(0,s.jsx)(D,{$valid:i,role:"img","aria-label":i?c("a11ylabels.auth.passwordRequirements.valid"):c("a11ylabels.auth.passwordRequirements.invalid"),children:i?(0,s.jsx)(B.C,{}):(0,s.jsx)(V.h,{size:5})}),(0,s.jsx)(Z,{children:c(`auth.passwordRequirements.${r}`,{count:o})})]},r)})}),l[4]=d,l[5]=c,l[6]=o):o=l[6],l[7]!==t||l[8]!==o?(i=(0,s.jsxs)(Y,{"data-dd-privacy":"allow",children:[t,o]}),l[7]=t,l[8]=o,l[9]=i):i=l[9],i},{publicRuntimeConfig:T}=(0,P.A)();T?.datadogEnvironment;let K=e=>{let r,t,o,i,l,c,p,u,m=(0,a.c)(19),{locale:h,store:g}=e,{t:w}=(0,n.Bd)();m[0]!==w?(r=w("auth.expiredLinkNotice.passwordReset.title"),m[0]=w,m[1]=r):r=m[1],m[2]!==r?(t=(0,s.jsx)(d.zE,{children:r}),m[2]=r,m[3]=t):t=m[3],m[4]!==w?(o=w("auth.expiredLinkNotice.passwordReset.description"),m[4]=w,m[5]=o):o=m[5],m[6]!==o?(i=(0,s.jsx)(d.Rr,{children:o}),m[6]=o,m[7]=i):i=m[7],m[8]!==t||m[9]!==i?(l=(0,s.jsxs)(d.Cb,{children:[t,i]}),m[8]=t,m[9]=i,m[10]=l):l=m[10];let f=`/${g}-${h}/auth/forgot-password`;return m[11]!==w?(c=w("auth.expiredLinkNotice.actions.resend"),m[11]=w,m[12]=c):c=m[12],m[13]!==f||m[14]!==c?(p=(0,s.jsx)(b.$,{fullWidth:!0,href:f,target:"_self",variant:"Primary",children:c}),m[13]=f,m[14]=c,m[15]=p):p=m[15],m[16]!==l||m[17]!==p?(u=(0,s.jsxs)(s.Fragment,{children:[l,p]}),m[16]=l,m[17]=p,m[18]=u):u=m[18],u},W=e=>{let r,t,o,i,l,c,p,u,m=(0,a.c)(19),{locale:h,store:g}=e,{t:w}=(0,n.Bd)();m[0]!==w?(r=w("auth.resetPasswordForm.success.title"),m[0]=w,m[1]=r):r=m[1],m[2]!==r?(t=(0,s.jsx)(d.zE,{children:r}),m[2]=r,m[3]=t):t=m[3],m[4]!==w?(o=w("auth.resetPasswordForm.success.description"),m[4]=w,m[5]=o):o=m[5],m[6]!==o?(i=(0,s.jsx)(d.Rr,{children:o}),m[6]=o,m[7]=i):i=m[7],m[8]!==t||m[9]!==i?(l=(0,s.jsxs)(d.Cb,{children:[t,i]}),m[8]=t,m[9]=i,m[10]=l):l=m[10];let f=`/${g}-${h}/auth/login`;return m[11]!==w?(c=w("auth.resetPasswordForm.success.action"),m[11]=w,m[12]=c):c=m[12],m[13]!==f||m[14]!==c?(p=(0,s.jsx)(b.$,{fullWidth:!0,href:f,target:"_self",variant:"Primary",children:c}),m[13]=f,m[14]=c,m[15]=p):p=m[15],m[16]!==l||m[17]!==p?(u=(0,s.jsxs)(s.Fragment,{children:[l,p]}),m[16]=l,m[17]=p,m[18]=u):u=m[18],u};var J=t(33305);let Q=()=>{let{token:e}=(0,p.useRouter)().query,{t:r}=(0,n.Bd)(),{activeLocale:t}=(0,_.Ym)(),{activeStore:a}=(0,S.P)(),[o,i]=(0,c.useState)("string"!=typeof e),[l,h]=(0,c.useState)(!1),[g,w]=(0,c.useState)(!1),{control:f,formState:x,handleSubmit:k,setError:F,setFocus:R}=(0,u.mN)({resolver:(0,m.u)(J.Ku)});(0,c.useEffect)(()=>{R("password")},[R]);let P=async({password:r})=>{if(!g){w(!0);try{if(!(await $({password:r,store:a,token:"string"==typeof e?e:""})).user.id)throw await (0,L.g6)(I.V.passwordResetFailed,{error:L.L4.unknown}),Error();await (0,L.g6)(I.V.passwordResetCompleted),h(!0),w(!1)}catch(t){let e="root.serverError",r="auth.errors.generic";if(t instanceof E.A){if(t.message.includes("expiredLinkNotice"))return void i(!0);r=t.message,e="password"}F(e,{message:r},{shouldFocus:!0}),w(!1)}}};return l?(0,s.jsx)(W,{locale:t,store:a}):o?(0,s.jsx)(K,{locale:t,store:a}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d.Cb,{children:[(0,s.jsx)(d.zE,{children:r("auth.resetPasswordForm.title")}),(0,s.jsx)(d.Rr,{children:r("auth.resetPasswordForm.description")})]}),(0,s.jsxs)(d.lV,{onSubmit:k(P),children:[(0,s.jsx)(u.xI,{name:"password",control:f,render:({field:e,fieldState:t})=>(0,s.jsx)(y,{...e,autoComplete:"new-password",description:(0,s.jsx)(O,{password:e.value}),label:r("auth.resetPasswordForm.inputs.password.label"),...t.error?.message&&{error:r(t.error.message)}})}),!!x.errors.root?.serverError?.message&&(0,s.jsx)(v.C,{icon:(0,s.jsx)(A.z,{}),variant:"error",children:(0,s.jsx)(j.A,{options:{overrides:{SupportLink:{component:N.Y}},wrapper:c.Fragment},children:r(x.errors.root.serverError.message)})}),(0,s.jsxs)(b.$,{fullWidth:!0,variant:"Primary",children:[g?(0,s.jsx)(z.M,{children:(0,s.jsx)(C.m,{})}):null,(0,s.jsx)("span",{children:r("auth.resetPasswordForm.actions.submit")})]})]})]})},ee=()=>{let e,r,t,o,l,d=(0,a.c)(8),{t:c}=(0,n.Bd)();return d[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("meta",{name:"robots",content:"noindex"}),d[0]=e):e=d[0],d[1]!==c?(r=c("auth.resetPasswordForm.title"),d[1]=c,d[2]=r):r=d[2],d[3]!==r?(t=(0,s.jsxs)(i(),{children:[e,(0,s.jsx)("title",{children:r})]}),d[3]=r,d[4]=t):t=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(Q,{}),d[5]=o):o=d[5],d[6]!==t?(l=(0,s.jsxs)(s.Fragment,{children:[t,o]}),d[6]=t,d[7]=l):l=d[7],l};ee.getLayout=e=>(0,s.jsx)(l.u9,{children:(0,s.jsx)(d.ff,{children:(0,s.jsx)(d._H,{children:e})})});var er=!0;let et=ee},77328:(e,r,t)=>{e.exports=t(22629)}},e=>{e.O(0,[4428,6593,636,8792],()=>e(e.s=59470)),_N_E=e.O()}]);
2//# sourceMappingURL=reset-password-24f3ce00687e997e.js.map

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.