https://www.oldfirestation.co.uk/_next/static/chunks/pages/reset-password/[hash]-89832953f17b8aab.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6767],{87009:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password/[hash]",function(){return n(95277)}])},95277:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var t=n(85893),r=n(4066),o=n(9008),i=n.n(o),a=n(67294),l=n(18941),c=n(61200),d=n(41749),p=n(80343),u=n(53369),h=n(95800),m=n(82175),f=n(53209),x=n(67421);let resetPasswordFormSchema=e=>f.Ry().shape({password:f.Z_().required(e("auth.errors.passwordRequired")),confirmPassword:f.Z_().oneOf([f.iH("password"),""],e("auth.errors.passwordDontMatch")).required(e("auth.errors.confirmPasswordRequired"))});var ResetPassword=()=>{let{t:e}=(0,x.$G)(),{submitForm:s,isSubmitting:n}=(0,m.u6)();return(0,t.jsx)(m.l0,{children:(0,t.jsxs)(d.Z,{container:!0,spacing:3,children:[(0,t.jsx)(d.Z,{item:!0,children:(0,t.jsx)(h.ZP,{type:"password",name:"password",autoComplete:"new-password",label:"".concat(e("resetPassword.password"),":"),fullWidth:!0})}),(0,t.jsx)(d.Z,{item:!0,children:(0,t.jsx)(h.ZP,{type:"password",name:"confirmPassword",autoComplete:"current-password",label:"".concat(e("resetPassword.confirmPassword"),":"),fullWidth:!0})}),(0,t.jsx)(d.Z,{item:!0,xs:12,children:(0,t.jsx)(p.Z,{mt:1,children:(0,t.jsx)(u.l,{color:"primary",variant:"contained",disabled:n,loading:n,onClick:s,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s())},children:e("resetPassword.button")})})})]})})},k=n(41120),g=n(43832),j=n(22318),w=n(49892),b=n(76668),y=n(61370),Z=n(11163),P=n(3725),v=n(98029);let apiPostResetPasswordForUser=async(e,s)=>await P.Z.post("api/reset-password/".concat(e,"/"),s).then(e=>e.data),usePostResetPasswordForUserMutation=(e,s,n)=>(0,v.D)({mutationFn:s=>apiPostResetPasswordForUser(e,s),onSuccess:()=>{s&&s()},onError:e=>{n&&n(e)}}),C=(0,k.Z)(e=>({root:{padding:e.spacing(14,0,0),position:"relative",[e.breakpoints.up("md")]:{padding:e.spacing(8.75,0,0)}},inner:{position:"relative",[e.breakpoints.up("md")]:{padding:e.spacing(11.75,0,0)}}})),_hash_ResetPassword=e=>{let{hash:s}=e,n=C(),o=(0,Z.useRouter)(),{enqueueSnackbar:d}=(0,y.Ds)(),u=(0,a.useRef)(null),{headerLookAndFeel:h,poweredByNative:m}=(0,a.useContext)(w.w6),[f,k]=(0,a.useState)(!1),{t:P}=(0,x.$G)(),{mutate:v}=usePostResetPasswordForUserMutation(s,()=>{k(!0),setTimeout(()=>{o.push("/")},4e3)},e=>{u.current.setSubmitting(!1),e.response.data.errors&&u.current.setErrors(e.response.data.errors),404===e.status&&d("Please resend reset password request",{variant:"error"})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i(),{children:[(0,t.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,t.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,t.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,t.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#5bbad5"}),(0,t.jsx)("meta",{name:"msapplication-TileColor",content:"#da532c"}),(0,t.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,t.jsx)("title",{children:P("resetPassword.title")}),(0,t.jsx)("meta",{property:"og:title",content:P("resetPassword.title")})]}),(0,t.jsxs)(p.Z,{className:n.root,children:["custom"===h?(0,t.jsx)(l.ZP,{}):(0,t.jsx)(c.ZP,{visibleLogo:!1}),(0,t.jsx)(g.Z,{component:"main",children:(0,t.jsx)(p.Z,{mt:10,mb:10,children:f?(0,t.jsx)(j.Z,{gutterBottom:!0,children:P("resetPassword.success")}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Z,{gutterBottom:!0,children:P("resetPassword.blurb")}),(0,t.jsx)(r.Z,{ref:u,initialValues:{password:"",confirmPassword:""},validationSchema:resetPasswordFormSchema(P),onSubmit:e=>{v(e)},enableReinitialize:!0,children:(0,t.jsx)(ResetPassword,{})})]})})})," ",m&&(0,t.jsx)(p.Z,{mt:9,children:(0,t.jsx)(b.$,{})})]})]})};_hash_ResetPassword.getInitialProps=e=>{let{query:s}=e,{hash:n}=s;return{hash:n}};var _=_hash_ResetPassword},76668:function(e,s,n){"use strict";n.d(s,{$:function(){return Footer}});var t=n(85893),r=n(67294),o=n(41664),i=n.n(o),a=n(86010),l=n(41120),c=n(80343),d=n(22318),p=n(89659),u=n(36459),h=n(50945),m=n(49892),f=n(13733),x=n(43832),k=n(17812),g=n(11476),j=n(80366),w=n(67421);let b=(0,g.Z)(c.Z)({position:"fixed",bottom:0,left:0,right:0,color:"#fff",background:"#000",zIndex:100,"& a":{textDecoration:"underline"},"& .MuiSvgIcon-root":{fontSize:"1rem",color:"#fff"},"& p":{padding:"1rem"}}),CookieBar=e=>{let{visible:s,handleClose:n}=e,{t:r}=(0,w.$G)();return s?(0,t.jsx)(b,{children:(0,t.jsx)(x.Z,{children:(0,t.jsxs)(c.Z,{display:"flex",children:[(0,t.jsx)(k.Z,{id:"closeCookiesBtn",onClick:n,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},"aria-label":"Close",children:(0,t.jsx)(j.Z,{color:"inherit"})}),(0,t.jsxs)(d.Z,{children:[r("components.CookieBar.intro")," ",(0,t.jsx)("a",{href:"".concat(u.YY,"/page/privacy-policy"),children:r("components.CookieBar.link")})," ",r("components.CookieBar.outro")]})]})})}):(0,t.jsx)(t.Fragment,{})};var y=n(2664),Z=n(29028),P=n(71833),v=n(83651),C=n(11163),_=n(72226);let F=(0,l.Z)(e=>({root:{[e.breakpoints.up("sm")]:{display:"flex",justifyContent:"center"}},link:{display:"block",position:"relative",padding:e.spacing(1,0),margin:e.spacing(0,2),fontFamily:h.Q9,fontWeight:800,textDecoration:"none","&:after":{content:"''",position:"absolute",bottom:0,left:0,width:"100%",height:"2px",backgroundColor:e.palette.primary.main,opacity:0,transform:"translateX(-100%)",transition:e.transitions.create(["opacity","transform"])},"&:hover":{textDecoration:"none",color:e.palette.primary.main,"&::after":{opacity:1,transform:"translateX(0%)"}}},linkOnMobile:{display:"block",[e.breakpoints.up("md")]:{display:"none"}},outer:{textAlign:"center",padding:e.spacing(4)},outerCookies:{paddingBottom:e.spacing(17),[e.breakpoints.up("sm")]:{paddingBottom:e.spacing(11)}}})),Footer=()=>{let e=F(),{t:s}=(0,w.$G)(),{displayFooterLinks:n,displayMyAccount:o,displayBurgerMenu:l,type:h,headerShowAllEvents:x,headerShowHome:k,promoter:g}=(0,r.useContext)(m.w6),{setMagicModalOpened:j}=(0,P.E)(),[b,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>N(!f.V.getItem("CookieConsent")),[]);let{setCartStore:R}=(0,v.x)(),E=(0,C.useRouter)(),logout=()=>{R(null),(0,_.hY)(E.asPath)},{profile:D}=(0,y.v9)(e=>e.profile),{user:O}=(0,y.v9)(e=>e.auth);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(c.Z,{component:"footer",className:(0,a.default)(e.outer,b&&e.outerCookies),children:[(0,t.jsx)(d.Z,{variant:"h5",component:"div",children:s("other.poweredByNative")}),(0,t.jsxs)(c.Z,{mt:4,className:e.root,children:[!l&&(0,t.jsxs)(t.Fragment,{children:[h===Z.DeploymentType.PROMOTER&&(0,t.jsxs)(t.Fragment,{children:[k&&(0,t.jsx)(i(),{href:"/",passHref:!0,children:(0,t.jsx)(p.Z,{className:(0,a.default)(e.link,e.linkOnMobile),children:s("auth.home")})}),x&&(0,t.jsx)(i(),{href:"/?allEvents=1",passHref:!0,children:(0,t.jsx)(p.Z,{className:(0,a.default)(e.link,e.linkOnMobile),children:s("auth.allEvents")})})]}),o&&(0,t.jsx)(t.Fragment,{children:O&&O.id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i(),{href:"/account/bookings",passHref:!0,children:(0,t.jsx)(p.Z,{id:"account-bookings-web-link",className:(0,a.default)(e.link,e.linkOnMobile),children:s("auth.bookings")})}),(0,t.jsx)(i(),{href:"/account/profile",passHref:!0,children:(0,t.jsx)(p.Z,{id:"account-profile-web-link",className:(0,a.default)(e.link,e.linkOnMobile),children:s("auth.profile")})}),(null==g?void 0:g.enableLoyaltySchemes)&&(0,t.jsx)(i(),{href:"/account/reward-scheme",passHref:!0,children:(0,t.jsx)(p.Z,{className:(0,a.default)(e.link,e.linkOnMobile),children:s("account.loyaltySchemes.rewards")})}),(null==D?void 0:D.individualRep)&&(0,t.jsx)(i(),{href:"/account/reps/dashboard",passHref:!0,children:(0,t.jsx)(p.Z,{id:"account-reps-dashboard",className:(0,a.default)(e.link,e.linkOnMobile),children:s("account.reps.repScheme")})}),(0,t.jsx)(p.Z,{id:"signout-wl-link",className:(0,a.default)(e.link,e.linkOnMobile),onClick:()=>{logout()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),logout())},children:s("auth.signOut")})]}):(0,t.jsx)(p.Z,{id:"menu-login-signup-link",className:(0,a.default)(e.link,e.linkOnMobile),onClick:()=>j(!0),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),j(!0))},children:s("auth.loginSignup")})})]}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Z,{id:"terms-link",className:e.link,href:"".concat(u.YY,"/page/terms-and-conditions"),target:"_blank",children:s("other.termsAndConditions")}),(0,t.jsx)(p.Z,{id:"privacy-policy-link",className:e.link,href:"".concat(u.YY,"/page/privacy-policy"),target:"_blank",children:s("other.privacyPolicy")})]})]}),(0,t.jsx)(CookieBar,{handleClose:()=>{f.V.setItem("CookieConsent","true",365),N(!1)},visible:b})]})})}}},function(e){e.O(0,[1253,1664,6199,1073,9774,2888,179],function(){return e(e.s=87009)}),_N_E=e.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.