PageSourceSearch

https://www.hero.co/_next/static/chunks/pages/account/forgot-08e87f80e3fd490d.js

js hero.co collected 2026-10-02 15:08:16 UTC 4,743 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5564],{43790:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/forgot",function(){return r(81715)}])},88116:function(e,t,r){"use strict";var n=r(85893),i=(r(67294),r(5391));t.Z=function(e){var t=e.title,r=e.children,s=e.containerTitle,a=e.containerSubtitle;return(0,n.jsx)("div",{className:"bg-beige relative 800:bg-gray-f7",children:(0,n.jsx)("div",{className:"relative py-40 px-20 800:pt-[14.8rem] flex justify-center w-full 800:pb-220 z-2",children:(0,n.jsx)("div",{className:"flex justify-center w-full",children:(0,n.jsxs)("div",{className:"max-w-[50rem] w-full ",children:[(0,n.jsx)("div",{className:"flex flex-col items-center",children:(0,n.jsx)("h1",{className:"mb-52 text-48 leading-60 font-700",children:t})}),(0,n.jsx)(i.Z,{title:s,color:"beige",subtitle:a,subtitleClassName:"text-center italic",children:r})]})})})})}},53454:function(e,t,r){"use strict";var n=r(67294),i=r(3214),s=r(11163),a=r(60374);t.Z=function(){var e=(0,s.useRouter)(),t=(0,i.ZP)((function(e){return{customer:e.customer,isHydratingCustomer:e.isHydratingCustomer}}),a.Z),r=t.customer,c=t.isHydratingCustomer;return(0,n.useEffect)((function(){var t=e.query.returnTo;return r&&!c&&(t?e.push(t):setTimeout((function(){window.location.href="https://shop.hero.co/account"}),1e3)),function(){}}),[r,c]),[r,c]}},81715:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return Z}});var n=r(26042),i=r(69396),s=r(828),a=r(85893),c=r(67294),o=r(93967),l=r.n(o),u=r(60374),d=r(9008),m=r.n(d),h=r(87536),f=r(99245),x=r.n(f),b=r(87211),g=r(421),j=r(3214),p=r(56737),v=r(53454),w=r(88116),N={showErrors:!1,isSubmitting:!1,isSuccess:!1,submitError:void 0},Z=!0;t.default=function(e){var t=(0,c.useState)(N),r=t[0],o=t[1],d=r.showErrors,f=(r.submitError,r.isSubmitting),Z=r.isSuccess,S=(0,s.Z)((0,v.Z)(),2),y=S[0],E=S[1],_=((0,j.ZP)((function(e){return{hydrateTokenFromServer:e.hydrateTokenFromServer}}),u.Z).hydrateTokenFromServer,(0,h.cI)()),k=_.register,T=_.handleSubmit,P=(_.watch,_.formState.errors),F=(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-14 leading-14 text-center mb-24",children:"Enter the email address for your Hero account. We\u2019ll send a verification code for you to enter before signing in."}),(0,a.jsxs)("form",{onSubmit:T((function(e){if(o((0,i.Z)((0,n.Z)({},r),{showErrors:!1,isSubmitting:!0})),x()(P)){var t=e.email;(0,b.A9)(t).then((function(e){if(e.ok)return e.json();throw e})).then((function(e){e.token,e.customer;o({isSubmitting:!1,isSuccess:!0})})).catch((function(e){o((0,i.Z)((0,n.Z)({},r),{isSubmitting:!1,submitError:e}))}))}else o((0,i.Z)((0,n.Z)({},r),{showErrors:!0,isSubmitting:!1}))})),children:[(0,a.jsxs)("div",{className:"mb-24",children:[(0,a.jsx)("label",{htmlFor:"email","aria-label":"Email Input",children:(0,a.jsx)("input",(0,n.Z)({name:"email",type:"email",className:l()("input-form",{"input-form-error":P.email}),placeholder:"Email"},k("email",{required:!0,pattern:g.Z})))}),P.email&&(0,a.jsx)("p",{className:"mt-8 text-error text-14 leading-14",children:"Please enter a valid email."})]}),(0,a.jsx)("div",{className:"mb-32",children:(0,a.jsx)("button",{disabled:f||d,type:"submit",className:l()("button button-brand w-full",{error:P,loading:f}),children:"Reset Password"})}),(0,a.jsx)("p",{className:"text-14 leading-14 text-center",children:(0,a.jsx)(p.Z,{url:"/account/login",className:"link--underline font-700 uppercase",children:"Sign In"})})]})]}),C=(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-24",children:(0,a.jsx)("p",{className:"text-14 leading-14 mb-16 text-center ",children:"An email was sent with instructions to change your password.."})}),(0,a.jsx)("div",{className:"mb-32",children:(0,a.jsx)(p.Z,{url:"/account/login",className:"button button-brand w-full",children:"Login"})}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("button",{onClick:function(){o((0,i.Z)((0,n.Z)({},r),{isSuccess:!1}))},className:"link--underline font-700 uppercase",children:"Try Again"})})]}),H="Forgot Password | Hero";return(0,a.jsxs)(c.Fragment,{children:[(0,a.jsxs)(m(),{children:[(0,a.jsx)("title",{children:H}),(0,a.jsx)("meta",{property:"og:title",content:H},"title")]}),!y&&!E&&(0,a.jsx)(w.Z,{title:"Forgot Password",containerTitle:"Forgot",containerSubtitle:"Enter the email address associated with your Hero Bread\u2122 account to re-set your access password.",children:Z?C:F})]})}},421:function(e,t){"use strict";t.Z=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i}},function(e){e.O(0,[3479,9774,2888,179],(function(){return t=43790,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.