PageSourceSearch

https://www.equinox.com/_next/static/chunks/pages/help/recover-password/[token]-a750f2d15efae818.js

js equinox.com collected 2026-09-24 08:41:53 UTC 9,874 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4182],{90681:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/help/recover-password/[token]",function(){return s(85400)}])},85400:function(e,r,s){"use strict";s.r(r),s.d(r,{__N_SSP:function(){return p},default:function(){return h}});var t=s(85893),a=s(45697),i=s.n(a),n=s(67294),o=s(17602),m=s(87536),l=s(88400),d=s(68413),u=s(73480),c=s.n(u);let f=({ctaLabel:e="Sign In",title:r="Reset Your Password",token:s,tokenData:a})=>{let{register:i,handleSubmit:o,formState:{errors:u}}=(0,m.cI)(),[f,_]=(0,n.useState)(null),[p,h]=(0,n.useState)(!1),g=async e=>{h(!0),(await fetch("https://api.production.equinox.com/v6/account/authentication/activate-with-password",{body:JSON.stringify({lastName:a.lastName,password:e.password,token:s}),headers:{"Content-Type":"application/json"},method:"POST"})).ok?window.location.href="/account":(h(!1),_(!0))};return(0,t.jsxs)("section",{className:c().recoverPasswordForm,"data-is":"RecoverPasswordForm",children:[(0,t.jsx)("h1",{className:c().title,children:r}),(0,t.jsxs)("form",{className:c().form,noValidate:!0,onSubmit:o(g),children:[(0,t.jsx)("strong",{className:c().salutation,children:`Hello ${a.firstName||"Member"}`}),(0,t.jsx)("p",{className:c().instructions,children:"Please enter a new password to get started."}),(0,t.jsxs)("label",{className:c().separator,children:["New password",(0,t.jsx)("input",{"data-has-error":u.password,maxLength:"20",minLength:"8",type:"password",...i("password",{pattern:{message:"Password must contain at least one uppercase, lowercase, and digit and be at least 8 characters long max 20 characters",value:d.zU},required:"Password is required"})})]}),(0,t.jsx)(l.Z,{isError:!!(u.password||f)}),(0,t.jsx)("button",{className:c().cta,disabled:p,name:"RecoverPassword - Submit",type:"submit",children:p?"Loading...":e})]})]})};f.propTypes={ctaLabel:i().string,title:i().string,token:i().string,tokenData:i().object};let _=({isOlp:e=!1,isWebRefresh:r=!1,token:s,tokenData:a})=>(0,t.jsx)(o.Z,{hasFooter:!1,hasSimpleHeader:!0,hasSimpleHeaderTagline:!1,isWebRefresh:r,navigation:r?void 0:{},children:(0,t.jsx)(f,{ctaLabel:e?"Set Password":"Sign In",title:e?"Set Your Password":"Reset Your Password",token:s,tokenData:a})});_.propTypes={isOlp:i().bool,isWebRefresh:i().bool,token:i().string,tokenData:i().object};var p=!0,h=_},88400:function(e,r,s){"use strict";s.d(r,{Z:function(){return d}});var t=s(85893),a=s(45697),i=s.n(a);s(67294);var n=s(30303),o=s(27464),m=s.n(o);let l=({hasIcon:e=!1,hasTitle:r=!0,isError:s=!1})=>(0,t.jsxs)("div",{className:m().passwordRequirementsNotice,"data-has-error":s,"data-is":"PasswordRequirementsNotice",children:[r&&(0,t.jsxs)("header",{className:m().header,children:["Password Requirements",e&&s&&(0,t.jsx)(n.IEI,{color:"#ee0000",style:{height:"16px",width:"16px"}})]}),(0,t.jsx)("p",{children:"Between 8 and 20 characters in length."}),(0,t.jsx)("p",{children:"Must contain the following types of characters:"}),(0,t.jsxs)("ul",{className:m().specificRequirements,children:[(0,t.jsx)("li",{children:"Lower case letters (a-z)"}),(0,t.jsx)("li",{children:"Upper case letters (A-Z)"}),(0,t.jsx)("li",{children:"Numbers (0-9)"}),(0,t.jsx)("li",{children:"Special characters (!@#$%^&*)"})]})]});l.propTypes={hasIcon:i().bool,hasTitle:i().bool,isError:i().bool};var d=l},27980:function(e,r,s){"use strict";s.d(r,{ZB:function(){return i},ki:function(){return a},xK:function(){return t}});let t=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,a=/^[0-9A-Z-]+$/,i=/^[A-Za-z0-9]{10,25}$/},68413:function(e,r,s){"use strict";s.d(r,{DO:function(){return f},EJ:function(){return Z},Oe:function(){return g},PO:function(){return x},Vc:function(){return h},XM:function(){return N},co:function(){return p},eW:function(){return o},h9:function(){return m},kj:function(){return d},lj:function(){return u},od:function(){return i},om:function(){return _},pr:function(){return w},r1:function(){return c},zU:function(){return n}});var t=s(63448),a=s(27980);let i=e=>/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i.test(e),n=/(?=.*?[a-z])(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[!@#$%^&*])^[A-Za-z0-9!@#$%^&*]{8,20}$/,o=e=>n.test(e),m=(e,r)=>("us"===r.toLowerCase()?/^\d{5}
1$|^\d{5}-\d{4}/:"uk"===r.toLowerCase()?/^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {0,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR ?0AA)$/:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i).test(e),l=/^[(\d]\d+ ?\d+[)]?[- /]?\d+[- ]?\d+$/,d=e=>{if(!1===l.test(e))return!1;let r=e.replace(/\D/g,"");return 0==r.charAt(0)?r.length>=10&&r.length<=11:10===r.length},u=RegExp("^\\p{Letter}[\\p{Letter}0-9 ‘’`'-.,]*[\\p{Letter}.]+$","u"),c=e=>e.length>1,f=t.Ry({"Company Email":t.Z_().min(1,{message:"Company Email is required."}).email({message:"Enter a valid email address."}).trim(),"First Name":t.Z_().min(2,{message:"First Name must be at least 2 characters."}).trim().regex(u,{message:"Enter a valid name."}),"Last Name":t.Z_().min(2,{message:"Last Name must be at least 2 characters."}).trim().regex(u,{message:"Enter a valid name."}),"Personal Email":t.Z_().min(1,{message:"Personal Email is required."}).email({message:"Enter a valid email address."}).trim(),"Phone Number":t.Z_().min(1,{message:"Phone Number is required."}).regex(l,{message:"Phone number must be 10 or 11 digits long."}).trim().refine(e=>{let r=e.replace(/\D/g,"").length;return 10<=r&&r<=11},{message:"Phone number must be 10 or 11 digits long."})}),_=t.Ry({"Email address":t.Z_().email().min(5).trim(),"First name":t.Z_().min(2).trim().regex(u),"Last name":t.Z_().min(2).trim().regex(u)}),p=t.Ry({emailAddress:t.Z_().email().min(5).trim(),firstName:t.Z_().min(2).trim().regex(u),lastName:t.Z_().min(2).trim().regex(u)}),h=t.Ry({amount:t.Rx().max(500),customAmount:t.Z_().optional(),emailAddress:t.Z_().email().min(5).trim(),firstName:t.Z_().min(2).trim().regex(u),lastName:t.Z_().min(2).trim().regex(u),message:t.Z_().max(150),reTypeEmailAddress:t.Z_().email().min(5).trim(),sendDate:t.hT()}).refine(e=>e.reTypeEmailAddress===e.emailAddress,{path:["reTypeEmailAddress"]}).refine(e=>e.amount>-1||e.customAmount&&!e.customAmount.includes(",")&&!e.customAmount.includes(".")&&!isNaN(e.customAmount)&&parseInt(e.customAmount)>0&&500>=parseInt(e.customAmount),{path:["customAmount"]}),g=(e=!1)=>{let r=e?2e4:25e3;return t.Ry({amount:t.Z_().refine(e=>{if(""===e)return!0;if(!/^\d+(\.\d{1,2})?$/.test(e))return!1;let s=parseFloat(e);return s>=5&&s<=r},{message:`Amount must be between ${e?"\xa35":"$5"} and ${e?"\xa320,000":"$25,000"}.`}),gcNumber:t.Z_().refine(e=>""===e||a.ZB.test(e),{message:"Gift card number must contain 10 to 25 alphanumeric characters."})})},w=t.Ry({freezeDuration:t.Z_(),medicalReason:t.Z_(),startDate:t.hT()}),N=e=>{let r={};return e.forEach(e=>{"select"===e.type&&(r[e.name]=t.Rx().min(1,`${e.text} is required`))}),t.Ry(r)},Z=e=>{let r={};return e.forEach(e=>{if(e&&e.fields&&e.fields.label){if(e.fields.formFieldSelectName){r[e.fields.formFieldSelectName]=e.fields.isRequiredField?t.Z_().min(1):t.Z_();return}if(e.fields.formFieldTextAreaName){r[e.fields.formFieldTextAreaName]=e.fields.isRequiredField?t.Z_().min(1):t.Z_();return}if("email"===e.fields.formFieldName||"email"===e.fields.label.toLowerCase()){r[e.fields.formFieldName]=t.Z_().email().min(5).trim();return}if("phone"===e.fields.formFieldName){r[e.fields.formFieldName]=t.Z_().regex(l).trim().refine(e=>{let r=e.replace(/\D/g,"").length;return 10<=r&&r<=11},{message:"Phone number must be 10 or 11 digits long."});return}if(e.fields.label.toLowerCase().includes("name")){r[e.fields.formFieldName]=t.Z_().min(2).trim().regex(u);return}r[e.fields.formFieldName]=e.fields.isRequiredField?t.Z_().min(1):t.Z_()}}),t.Ry(r)},x=e=>t.Ry({birth_date:t.hT({message:"Birth Date is required."}),card_data:t.Ry({}),city:t.Z_().min(1,{message:"City is required."}),company_email:t.Z_().email({message:"Enter a valid email address."}).or(t.i0("")),corp_info:t.Ry({}).optional(),first_name:t.Z_().min(2,{message:"First Name must be at least 2 characters."}).trim().regex(u,{message:"Enter a valid name."}),floor:t.Z_().optional(),last_name:t.Z_().min(2,{message:"Last Name must be at least 2 characters."}).trim().regex(u,{message:"Enter a valid name."}),personal_email:t.Z_().min(1,{message:"Personal Email is required."}).email({message:"Enter a valid email address."}).trim(),street_address:t.Z_().min(1,{message:"Street Address is required."}),zip:t.Z_().min(1,{message:"Zip Code is required."}).refine(r=>m(r,e),{message:"Enter a valid zip code."}),..."UK"!==e?{state:t.Z_().min(1,{message:"State is required."})}:{}}
1)},27464:function(e){e.exports={"password-requirements-notice":"PasswordRequirementsNotice_password-requirements-notice__UFbtu",passwordRequirementsNotice:"PasswordRequirementsNotice_password-requirements-notice__UFbtu",header:"PasswordRequirementsNotice_header__jYfta","specific-requirements":"PasswordRequirementsNotice_specific-requirements__Mdrqu",specificRequirements:"PasswordRequirementsNotice_specific-requirements__Mdrqu"}},73480:function(e){e.exports={"recover-password-form":"RecoverPasswordForm_recover-password-form__qEgmZ",recoverPasswordForm:"RecoverPasswordForm_recover-password-form__qEgmZ",title:"RecoverPasswordForm_title__zUzaL",salutation:"RecoverPasswordForm_salutation__RpkFM",instructions:"RecoverPasswordForm_instructions__okaY2",form:"RecoverPasswordForm_form__KVBCJ",cta:"RecoverPasswordForm_cta__l18Q8"}}},function(e){e.O(0,[9284,2200,7982,9456,3448,7536,7602,8597,6202,2888,9774,179],function(){return e(e.s=90681)}),_N_E=e.O()}]);
2//# sourceMappingURL=[token]-a750f2d15efae818.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.