1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[506],{75682:function(s,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/password-recovery",function(){return a(67787)}])},67787:function(s,e,a){"use strict";a.r(e),a.d(e,{PasswordRecoveryPage:function(){return c}});var l=a(52322),n=a(5632),o=a(2784),r=a(85998),i=a(67817);let c=()=>{let{query:s}=(0,n.useRouter)(),{token:e}=s,a=(0,i.s0)(),[c,t]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),{error:f,isLoading:m,recoverPassword:x}=(0,i.LD)(),{error:h,isLoading:j,setNewPassword:N}=(0,i.fl)(),_=f||h,w=e&&"string"==typeof e,g=(0,o.useCallback)(async s=>{t(!await x(s))},[x]),p=(0,o.useCallback)(async s=>{w&&u(!await N({...s,token:e}))},[w,N,e]);return(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsxs)("div",{className:"col-12 col-sm-10 offset-sm-1 col-md-8 offset-md-2 col-lg-6 offset-lg-3",children:[a?(0,l.jsx)("div",{className:"logo logo--vertical",children:(0,l.jsx)("span",{className:"sr-only",children:"Caledonian Sleeper"})}):(0,l.jsx)("a",{href:"/",className:"logo logo--vertical",children:(0,l.jsx)("span",{className:"sr-only",children:"Caledonian Sleeper"})}),(0,l.jsxs)("div",{className:"box",children:[_&&(0,l.jsx)(r.Hs,{error:_}),w&&!d&&(0,l.jsx)(r.kY,{onSubmit:p,isDisabled:j,token:e}),w&&d&&(0,l.jsx)(r.W2,{}),!w&&!c&&(0,l.jsx)(r.yZ,{onSubmit:g,isDisabled:m}),!w&&c&&(0,l.jsx)(r.F4,{})]})]})})})};e.default=c}},function(s){s.O(0,[888,774,179],function(){return s(s.s=75682)}),_N_E=s.O()}]); 2//# sourceMappingURL=password-recovery-dc70bea19aafe553.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.