1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3372],{16494:(e,s,r)=>{"use strict";r.d(s,{A:()=>n});var o=r(37876),t=r(14232),a=r(78799);function n(e){let{placeholder:s="Password",id:r="password",register:n,validate:i,errors:c,canToggleVisible:l=!1,required:u=!0}=e,[d,m]=(0,t.useState)("password");return(0,o.jsxs)("div",{className:"form-control",children:[(0,o.jsx)("input",{type:d,className:"input ".concat(l?"pr-16":""),autoComplete:"current-password","aria-label":s,required:!0,id:r,...n(r,{required:u,validate:i||void 0})}),(0,o.jsx)("label",{htmlFor:r,className:"label",children:s}),l&&(0,o.jsxs)("button",{type:"button",onClick:()=>m(e=>"password"===e?"text":"password"),className:"password-view-toggle-button","aria-label":"password"===d?"Show password":"Hide password",children:["es-es"===a.vV&&("text"===d?"ocultar":"ver"),"es-es"!==a.vV&&("text"===d?"hide":"view")]}),c&&(0,o.jsx)("p",{className:"text-sm font-medium",children:c})]})}},28088:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/new-password",function(){return r(32500)}])},32500:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>i});var o=r(37876),t=r(89099),a=r(85391),n=r(60778);function i(){let e=(0,t.useRouter)(),s=async s=>{let{customerResetByUrl:r}=await (0,a.Ay)({query:"\n mutation customerReset($password: String!, $resetUrl: URL!) {\n customerResetByUrl(password: $password, resetUrl: $resetUrl) {\n customer {\n id\n email\n }\n customerAccessToken {\n accessToken\n }\n customerUserErrors {\n message\n field\n code\n }\n }\n }\n",variables:{resetUrl:e.query.reset_url,password:s.password}});return r};return(0,o.jsx)(n.A,{onSubmit:s})}},60778:(e,s,r)=>{"use strict";r.d(s,{A:()=>u});var o=r(37876),t=r(14232),a=r(48230),n=r.n(a),i=r(88992),c=r(72692),l=r(16494);function u(e){var s;let{onSubmit:r}=e,{register:a,handleSubmit:u,watch:d,setError:m,clearErrors:p,formState:{errors:h}}=(0,i.mN)(),[x,b]=(0,t.useState)(!1),g=d("password"),w=async e=>{p();try{let s=await r(e);s.customerUserErrors.length>0?(m("errorOther",{message:s.customerUserErrors[0].message}),console.log(s)):b(!0)}catch(e){m("errorOther",{message:"Something went wrong. Please try again."}),console.log(e)}};return(0,o.jsx)("div",{className:"py-14",children:x?(0,o.jsxs)("div",{className:"flex flex-col max-w-md mx-auto px-8 gap-y-4",children:[(0,o.jsx)("h1",{className:"text-3xl text-center",children:c.xw.kX}),(0,o.jsx)("p",{className:"mt-4 mb-10 font-medium text-center text-gray-500 max-md:text-sm",children:c.xw.D0}),(0,o.jsx)(n(),{legacyBehavior:!0,href:"/profile/subscriptions",prefetch:!1,children:(0,o.jsx)("a",{className:"button button-primary",children:c.iD.lO})})]}):(0,o.jsxs)("form",{onSubmit:u(w),className:"flex flex-col max-w-md mx-auto px-8 gap-y-4",children:[(0,o.jsx)("h1",{className:"text-3xl text-center",children:c.xw.lO}),(0,o.jsx)("p",{className:"mt-4 mb-10 font-medium text-center text-gray-500 max-md:text-sm",children:c.xw.LS}),h.errorOther&&(0,o.jsxs)("p",{className:"p-2 bg-red-100 ",children:[h.errorOther.message,".",(0,o.jsx)("br",{})," ",(0,o.jsx)("br",{})," ",(0,o.jsxs)("span",{className:"text-sm",children:["If you're activating your account for the first time, please try again later, or contact us at"," ",(0,o.jsx)("a",{className:"underline",href:"mailto:[email protected]",children:"[email protected]"})," ","if the problem persists."]})]}),(0,o.jsx)(l.A,{register:a,canToggleVisible:!0}),(0,o.jsx)(l.A,{register:a,errors:null==(s=h.passwordConfirm)?void 0:s.message,id:"passwordConfirm",placeholder:"Password Confirmation",canToggleVisible:!0,validate:e=>e===g||"Passwords do not match"}),(0,o.jsx)("button",{className:"button button-primary",type:"submit",children:c.xw.tA})]})})}},72692:e=>{"use strict";e.exports=JSON.parse('{"DD":"Hello, Beautiful","h_":"Log in to your Birchbox account.","tG":{"D":"Important note","h":"If you\'re having trouble logging in, please click the Forgot Password link below the log in button. Once you reset your password you should be able to log into your Birchbox account page. Email <a class=\'font-medium text-bbx-peach\' href=\'mailto:[email protected]\'>[email protected]</a> if you\'re still having issues!"},"lU":{"D":"Let\'s get you set up","h":"Create an account so we can remember you","or":"or"},"BD":{"l":"Forgot Password?"},"iD":{"lO":"Log in","sO":{"Q":"Unable to sign in. Please try again."}},"mA":{"DD":"Verify your phone number","h_":"Enter the code sent to your phone number","NB":"Enter the code","lO":"Verify","L5":"Resend code","B8":["Resend code in","seconds"]},"$5":{"pf":["I agree to Birchbox\'s","Terms of Service","and","Privacy Policy"],"Ko":["Data processed by Beautycom UK Limited to manage the registration of your account and, if you authorise it, to send you personalised commercial communications based on your interests.. You can exercise your right of access, rectification, erasure, object and other rights. Info here","privacy policy"],"uJ":"Yes, I\'d like to sign up for messages and be first to know about offers personalized just for me.","u$":"First Name","UK":"Last Name","wJ":"Password","d2":"View","cT":"Hide","lO":"Sign up"},"qr":{"e":["By signing up you agree to Birchbox\'s","Terms of Service","and","Privacy Policy",""]},"xw":{"lO":"Reset your password","D0":"Your password has been updated.","kX":"Success!","tA":"Submit","LS":"Log in to view your profile","h_":"Provide your email to reset your password","Jl":"Check your email for a link to reset your password."},"f3":"Your session has expired. Please log in.","or":"Or"}')}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=28088)),_N_E=e.O()}]); 2//# sourceMappingURL=new-password-28e652f9e338ed8c.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.