PageSourceSearch

https://www.jellybelly.ca/_next/static/chunks/pages/user/resetpasswordconfirm-4f60cbb84d2563e0.js

js jellybelly.ca collected 2026-09-27 05:21:12 UTC 8,115 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4455],{60888:function(r,e,t){"use strict";var n=t(64836);e.Z=void 0;var o=n(t(64938)),a=t(85893);e.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},20136:function(r,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/resetpasswordconfirm",function(){return t(99530)}])},24485:function(r,e,t){"use strict";var n=t(35944);t(67294);var o=t(73601),a=t(94054),i=t(47312),s=t(93946),l=t(56815),d=t(90948),c=t(41796);let u=(0,d.ZP)(o.ZP)(r=>{let{theme:e,error:t}=r;return{"label + &":{marginTop:e.spacing(3)},"&.MuiInputBase-root:focus-within":{boxShadow:"".concat((0,c.Fq)(t?e.palette.error.main:e.palette.primary.main,.25)," 0 0 0 0.2rem")},"& .MuiInputBase-input":{position:"relative",padding:"4.5px 12px",transition:e.transitions.create(["border-color","background-color","box-shadow"]),"& :focus":{"& .MuiInputBase-root":{border:"none",boxShadow:"".concat((0,c.Fq)(t?e.palette.error.main:e.palette.primary.main,.25)," 0 0 0 0.2rem")}}}}}),m=r=>{let{label:e,required:t=!1,error:o=!1,helperText:d="",placeholder:c,onKeyDown:m,icon:p,sx:h,value:w,onChange:Z,onBlur:f,onIconClick:g,...v}=r;return(0,n.BX)(a.Z,{variant:"standard",error:o,required:t,...v,fullWidth:!0,children:[(0,n.tZ)(i.Z,{shrink:!0,htmlFor:"kibo-input",children:e}),(0,n.tZ)(u,{sx:{borderColor:o?"error.main":"text.secondary",borderWidth:"1px",borderStyle:"solid",borderRadius:1,...h},value:w,id:e,size:"small",error:o,inputProps:{"aria-invalid":o,"aria-label":e},placeholder:c,onChange:r=>Z&&Z(r.target.name,r.target.value),onBlur(r){f&&f(r.target.name,r.target.value)},onKeyDown:m,...p&&{endAdornment:g?(0,n.tZ)(s.Z,{"aria-label":"toggle icon visibility",size:"small",onClick:g,children:p}):p},...v}),(0,n.tZ)(l.Z,{id:"helper-text",error:!0,"aria-errormessage":d,children:o?d:" "})]})};e.Z=m},67714:function(r,e,t){"use strict";var n=t(35944);t(67294);var o=t(60888),a=t(51233),i=t(15861),s=t(82010),l=t(68277);let d=r=>{let{password:e=""}=r,{t}=(0,s.$G)("common"),{isHavingAtLeastEightCharacters:d,isHavingAtLeastOneNumber:c,isHavingAtLeastOneCapitalLetter:u,isHavingAtLeastOneSpecialCharacter:m}=(0,l.u)(e);return(0,n.BX)(a.Z,{gap:1,alignItems:"flex-start",children:[(0,n.tZ)(i.Z,{variant:"h4",component:"h4",sx:{fontWeight:"bold"},children:t("password-requirements")}),(0,n.BX)(a.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,n.tZ)(o.Z,{fontSize:"small",color:d?"primary":"error","data-testid":"isHavingAtLeastEightCharacters"}),t("at-least-eight-characters-long")]}),(0,n.BX)(a.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,n.tZ)(o.Z,{fontSize:"small",color:c?"primary":"error","data-testid":"isHavingAtLeastOneNumber"}),t("at-least-one-number")]}),(0,n.BX)(a.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,n.tZ)(o.Z,{fontSize:"small",color:u?"primary":"error","data-testid":"isHavingAtLeastOneCapitalLetter"}),t("at-least-one-capital-letter")]}),(0,n.BX)(a.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,n.tZ)(o.Z,{fontSize:"small",color:m?"primary":"error","data-testid":"isHavingAtLeastOneSpecialCharacter"}),t("at-least-one-special-character")]})]})};e.Z=d},68277:function(r,e,t){"use strict";t.d(e,{m:function(){return o},u:function(){return n}});let n=r=>{let e=r.toString().length>=8,t=/\d/.test(r),n=/[A-Z]/.test(r),o=/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(r);return{isHavingAtLeastEightCharacters:e,isHavingAtLeastOneNumber:t,isHavingAtLeastOneCapitalLetter:n,isHavingAtLeastOneSpecialCharacter:o}},o=r=>{let{isHavingAtLeastEightCharacters:e,isHavingAtLeastOneNumber:t,isHavingAtLeastOneCapitalLetter:o,isHavingAtLeastOneSpecialCharacter:a}=n(r);return e&&t&&o&&a}},99530:function(r,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return X},default:function(){return M}});var n=t(35944),o=t(11163),a=t.n(o),i=t(67294),s=t(47533),l=t(82066),d=t(85893),c=(0,l.Z)((0,d.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),u=(0,l.Z)((0,d.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),m=t(46574),p=t(80822),h=t(15861),w=t(67720),Z=t(94054),f=t(25662),g=t(82010),v=t(87536),P=t(74231),b=t(24485),C=t(67714),x=t(98029),y=t(66549);let I=async r=>{let e=(0,y.g)(),{userName:t,confirmationCode:n,newPassword:o}=r,a=await e.request({document:"\n  mutation updateForgottenAccountPassword($confirmationInfoInput
1: ConfirmationInfoInput) {\n    updatePassword: updateForgottenCustomerAccountPassword(\n      confirmationInfoInput: $confirmationInfoInput\n    )\n  }\n",variables:{confirmationInfoInput:{userName:t,confirmationCode:n,newPassword:o}}});return null==a?void 0:a.updatePassword},B=()=>({updateForgottenPassword:(0,x.D)({mutationFn:I})});var _=t(68277);let k=()=>{let{t:r}=(0,g.$G)("common");return P.Ry().shape({newPassword:P.Z_().required(r("this-field-is-required")).test(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,_.m)(r)}),confirmPassword:P.Z_().required(r("this-field-is-required")).oneOf([P.iH("newPassword")],r("it-should-match-your-new-password"))})},S=r=>{let{token:e,userName:t}=r,{t:o}=(0,g.$G)("common"),l=k(),{updateForgottenPassword:d}=B(),[P,x]=(0,i.useState)({newPassword:!1,confirmPassword:!1}),y=r=>{x({...P,[r]:!P[r]})},{formState:{errors:I,isValid:_,isDirty:S},watch:q,control:X,trigger:M,handleSubmit:N}=(0,v.cI)({mode:"onChange",reValidateMode:"onChange",criteriaMode:"firstError",resolver:(0,s.X)(l),shouldFocusError:!0}),z=q("newPassword"),A=q("confirmPassword"),E=async r=>{try{let n=await d.mutateAsync({userName:t,confirmationCode:e,newPassword:r.newPassword});n&&a().push("/")}catch(o){console.log(o)}},F=r=>E(r);return(0,i.useEffect)(()=>{z&&A&&M("confirmPassword")},[z,A,M]),(0,n.BX)(m.Z,{maxWidth:"lg",children:[(0,n.BX)(p.Z,{py:4,children:[(0,n.tZ)(h.Z,{variant:"h1",gutterBottom:!0,children:o("reset-password")}),(0,n.tZ)(w.Z,{sx:{borderColor:"primary.main"}})]}),(0,n.tZ)(p.Z,{pb:4,children:(0,n.BX)(Z.Z,{children:[(0,n.tZ)(v.Qr,{name:"newPassword",control:X,render(r){var e;let{field:t}=r;return(0,n.tZ)(b.Z,{value:t.value||"",label:o("new-password"),required:!0,onBlur:t.onBlur,onChange:(r,e)=>t.onChange(e),error:!!I.newPassword,helperText:null==I?void 0:null===(e=I.newPassword)||void 0===e?void 0:e.message,type:P.newPassword?"text":"password",icon:P.newPassword?(0,n.tZ)(c,{}):(0,n.tZ)(u,{}),onIconClick:()=>y("newPassword")})}}),(0,n.tZ)(v.Qr,{name:"confirmPassword",control:X,render(r){var e;let{field:t}=r;return(0,n.tZ)(b.Z,{value:t.value||"",label:o("confirm-password"),required:!0,onBlur:t.onBlur,onChange:(r,e)=>t.onChange(e),error:!!I.confirmPassword,helperText:null==I?void 0:null===(e=I.confirmPassword)||void 0===e?void 0:e.message,type:P.confirmPassword?"text":"password",icon:P.confirmPassword?(0,n.tZ)(c,{}):(0,n.tZ)(u,{}),onIconClick:()=>y("confirmPassword")})}}),(0,n.tZ)(p.Z,{sx:{paddingBlock:2},children:(0,n.tZ)(C.Z,{password:z})}),(0,n.tZ)(p.Z,{maxWidth:"23.5rem",children:(0,n.tZ)(f.Z,{variant:"contained",color:"inherit",fullWidth:!0,sx:{mt:"0.75rem"},...(!_||!S)&&{disabled:!0},onClick:()=>N(F)(),children:o("reset-password")})})]})})]})},q=r=>{var e;let{customerAccount:t}=r,a=(0,o.useRouter)();return(0,n.tZ)(n.HY,{children:(0,n.tZ)(S,{token:null===(e=a.query)||void 0===e?void 0:e.t,userName:null==t?void 0:t.userName})})};var X=!0,M=q}},function(r){r.O(0,[9927,4133,9299,9774,2888,179],function(){return r(r.s=20136)}),_N_E=r.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.