1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5860],{31700:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>w});var t=a(6029);a(55729);var r=a(95647),i=a(81278),l=a(71422),n=a(47623),o=a(13771),c=a(47165),d=a(31240),u=a(57521),p=a(25961);let h=n.object().shape({password:n.string().required("Must provide a password").min(8,"Must be at least 8 characters long")}),m=()=>{let{currentUser:e}=(0,u.Us)(),s=(0,i.useRouter)(),a=async()=>{let e=s.query.request_id;e?(await (0,p.SJ0)(e)).requested_coach?s.push("/coaching/booking?request_id=".concat(e)):s.push("/coaching"):s.push("/")},r=async(e,s)=>{try{await (0,p.wOb)(e.password),s.setSubmitting(!1),await a()}catch(e){s.setFieldError("password",e.message)}};return(0,t.jsx)("div",{className:"flex flex-col items-center justify-center p-8 pb-24 md:p-24",children:(0,t.jsxs)(c.A,{className:"max-w-xl",children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-gray-900 mb-3 text-center",children:"Choose a password to continue"}),(0,t.jsxs)("p",{className:"text-sm text-gray-500 text-center",children:["We created a new account with the email ",(0,t.jsx)("b",{children:null==e?void 0:e.email}),". To continue, please choose a password for your account."]}),(0,t.jsx)(l.l1,{initialValues:{email:null==e?void 0:e.email},onSubmit:r,validationSchema:h,enableReinitialize:!0,children:e=>{let{errors:s,isSubmitting:a}=e;return(0,t.jsxs)(l.lV,{className:"mt-6",children:[(0,t.jsx)(d.ks,{name:"password",label:"Password",type:"password",placeholder:"Password"}),(0,t.jsx)(o.Ay,{type:"submit",className:"w-full mt-4",disabled:!!s.password||a,children:"Continue"})]})}})]})})};m.getLayout=e=>(0,t.jsx)(r.A,{minimalHeader:!0,minimalFooter:!0,children:e});let w=m},42259:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login/upgrade-password",function(){return a(31700)}])},47165:(e,s,a)=>{"use strict";a.d(s,{A:()=>i});var t=a(6029);a(55729);var r=a(51369);function i(e){let{shadow:s=!0,border:a=!1,className:i,children:l,...n}=e;return(0,t.jsx)("div",{className:(0,r.cx)("bg-white rounded-lg px-4 py-5 sm:p-6",{shadow:s,"border border-gray-200":a},i),...n,children:l})}}},e=>{e.O(0,[5789,1479,525,2342,6184,2953,7623,1240,6593,636,8792],()=>e(e.s=42259)),_N_E=e.O()}]); 2//# sourceMappingURL=upgrade-password-2dc7431cb754f4be.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.