1import{_ as E,i as d,J as C,p as U,a as o,g as k,e as s,w as Y,d as A,f as t,v as u,z,A as b,B as f,t as O,H as _,o as r,L as R,W as V}from"./Do1nZpFk.js";import{_ as B}from"./Dyw--8_v.js";import{c as F,a as w,b as G}from"./CnljRIDj.js";import"./BM5aYONo.js";const P={class:"login-page d-flex flex-column justify-content-center"},N={class:"body"},W={class:"card-wrapper mx-auto text-center"},K={class:"card text-left"},j={class:"card-body !pb-[56px]"},H={key:0,class:"custom-aler-danger d-flex align-items-center mb-4"},D={class:"form-group"},J={key:0,class:"text-danger mt-1"},T={class:"form-group"},q={key:0,class:"text-danger mt-1"},S={class:"form-group"},X={key:0,class:"text-danger mt-1"},I=["disabled"],M={key:0,"aria-hidden":"true",class:"spinner-border spinner-border-sm"},Z={key:2,class:"text-center"},L=["textContent"],$={type:"submit",href:"https://estage.com/member/login",class:"js-change-block link-muted mt-5"},ee={style:{transform:"rotateY(180deg)"},xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},se={__name:"reset-password",setup(te){const c=d(!1),p=d(""),m=d(""),y=C(),n=d({email:"",password:"",password_confirmation:""}),a=d({email:"",password:"",password_confirmation:""}),h=F().shape({email:w().required("Email is required").email("Invalid email format"),password:w().required("Password is required").min(8,"Password must be at least 8 characters"),password_confirmation:w().oneOf([G("password")],"Passwords do not match").required("Password confirmation is required")}),v=async()=>{try{return await h.validate(n.value,{abortEarly:!1}),a.value={},!0}catch(g){return a.value={email:"",password:"",password_confirmation:""},g.inner.forEach(e=>{a.value[e.path]=e.message}),!1}},x=async()=>{if(m.value="",!await v())return;c.value=!0;const e=V();$fetch(`${e.public.apiBase}/api/auth/password/reset`,{method:"POST",body:{...n.value,token:y.query.token}}).catch(({data:i})=>{m.value=i.message}).then(({data:i})=>{console.log(i),p.value=i}).finally(()=>{c.value=!1})};return U(()=>{window.location.href="https://auth.estage.com/reset-password"}),(g,e)=>{const i=R,Q=_;return r(),o("div",P,[k(Q,null,{default:Y(()=>[k(i,{rel:"stylesheet",href:"/login.css"})]),_:1}),s("div",N,[s("div",W,[e[12]||(e[12]=s("a",{href:"/member/",class:"navbar-brand router-link-active","aria-label":"FourPercent",target:"_self"},[s("img",{src:B,alt:"Estage | FourPercent Logo"})],-1)),s("div",K,[s("div",j,[t(m)?(r(),o("div",H,[e[3]||(e[3]=s("i",{class:"fa fa-exclamation-triangle mr-3"},null,-1)),s("div",null,u(t(m)),1)])):A("",!0),t(p)?(r(),o("div",Z,[e[11]||(e[11]=s("svg",{class:"mb-5",width:"226",height:"226",viewBox:"0 0 226 226",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s("path",{d:"M61 113L100 152L165 74",stroke:"#598AEB","stroke-width":"12","stroke-linecap":"round","stroke-linejoin":"round"}),s("rect",{x:"4.5",y:"4.5",width:"217",height:"217",rx:"108.5",stroke:"#598AEB","stroke-width":"9"})],-1)),s("h5",{class:"mb-0",textContent:u(t(p))},null,8,L),s("a",$,[e[10]||(e[10]=O(" Login ")),(r(),o("svg",ee,e[9]||(e[9]=[s("line",{x1:"19",y1:"12",x2:"5",y2:"12"},null,-1),s("polyline",{points:"12 19 5 12 12 5"},null,-1)])))])])):(r(),o("form",{key:1,class:"js-validate",onSubmit:z(x,["prevent"])},[e[8]||(e[8]=s("h3",{class:"font-family-base-3 font-weight-medium mb-1 mb-4"},"Create new password",-1)),s("div",D,[e[4]||(e[4]=s("label",{class:"font-family-base-2 font-size-lg"}," Email ",-1)),b(s("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>t(n).email=l),type:"email",placeholder:"Email",autocomplete:"off",class:"form-control",style:{"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAkCAYAAADo6zjiAAAAAXNSR0IArs4c6QAAAbNJREFUWAntV8FqwkAQnaymUkpChB7tKSfxWCie/Yb+gbdeCqGf0YsQ+hU95QNyDoWCF/HkqdeiIaEUqyZ1ArvodrOHxanQOiCzO28y781skKwFW3scPV1/febP69XqarNeNTB2KGs07U3Ttt/Ozp3bh/u7V7muheQf6ftLUWyYDB5yz1ijuPAub2QRDDunJsdGkAO55KYYjl0OUu1VXOzQZ64Tr+IiPXedGI79bQHdbheCIAD0dUY6gV6vB67rAvo6IxVgWVbFy71KBKkAFaEc2xPQarXA931ot9tyHphiPwpJgSbfe54Hw+EQHMfZ/msVEEURjMfjCjbFeG2dFxPo9/sVOSYzxmAwGIjnTDFRQLMQAjQ5pJAQkCQJ5HlekeERxHEsiE0xUUCzEO9AmqYQhiF0Oh2Yz+ewWCzEY6aYKKBZCAGYs1wuYTabKdNNMWWxnaA4gp3Yry5JBZRlWTXDvaozUgGTyQSyLAP0dbb3DtQlmcan0yngT2ekE9ARc+z4AvC7nauh9iouhpcGamJeX8XF8MaClwaeROWRA7nk+tUnyzGvZrKg0/40gdME/t8EvgG0/NOS6v9NHQAAAABJRU5ErkJggg==')","background-repeat":"no-repeat","background-attachment":"scroll","background-size":"16px 18px","background-position":"98% 50%",cursor:"auto"}}
1,null,512),[[f,t(n).email]]),t(a).email?(r(),o("p",J,u(t(a).email),1)):A("",!0)]),s("div",T,[e[5]||(e[5]=s("label",{class:"font-family-base-2 font-size-lg"}," Password ",-1)),b(s("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>t(n).password=l),type:"password",placeholder:"*******",autocomplete:"off",class:"form-control",style:{"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAkCAYAAADo6zjiAAAAAXNSR0IArs4c6QAAAbNJREFUWAntV8FqwkAQnaymUkpChB7tKSfxWCie/Yb+gbdeCqGf0YsQ+hU95QNyDoWCF/HkqdeiIaEUqyZ1ArvodrOHxanQOiCzO28y781skKwFW3scPV1/febP69XqarNeNTB2KGs07U3Ttt/Ozp3bh/u7V7muheQf6ftLUWyYDB5yz1ijuPAub2QRDDunJsdGkAO55KYYjl0OUu1VXOzQZ64Tr+IiPXedGI79bQHdbheCIAD0dUY6gV6vB67rAvo6IxVgWVbFy71KBKkAFaEc2xPQarXA931ot9tyHphiPwpJgSbfe54Hw+EQHMfZ/msVEEURjMfjCjbFeG2dFxPo9/sVOSYzxmAwGIjnTDFRQLMQAjQ5pJAQkCQJ5HlekeERxHEsiE0xUUCzEO9AmqYQhiF0Oh2Yz+ewWCzEY6aYKKBZCAGYs1wuYTabKdNNMWWxnaA4gp3Yry5JBZRlWTXDvaozUgGTyQSyLAP0dbb3DtQlmcan0yngT2ekE9ARc+z4AvC7nauh9iouhpcGamJeX8XF8MaClwaeROWRA7nk+tUnyzGvZrKg0/40gdME/t8EvgG0/NOS6v9NHQAAAABJRU5ErkJggg==')","background-repeat":"no-repeat","background-attachment":"scroll","background-size":"16px 18px","background-position":"98% 50%",cursor:"auto"}},null,512),[[f,t(n).password]]),t(a).password?(r(),o("p",q,u(t(a).password),1)):A("",!0)]),s("div",S,[e[6]||(e[6]=s("label",{class:"font-family-base-2 font-size-lg"}," Password Confirmation ",-1)),b(s("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>t(n).password_confirmation=l),type:"password",placeholder:"*******",autocomplete:"off",class:"form-control",style:{"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAkCAYAAADo6zjiAAAAAXNSR0IArs4c6QAAAbNJREFUWAntV8FqwkAQnaymUkpChB7tKSfxWCie/Yb+gbdeCqGf0YsQ+hU95QNyDoWCF/HkqdeiIaEUqyZ1ArvodrOHxanQOiCzO28y781skKwFW3scPV1/febP69XqarNeNTB2KGs07U3Ttt/Ozp3bh/u7V7muheQf6ftLUWyYDB5yz1ijuPAub2QRDDunJsdGkAO55KYYjl0OUu1VXOzQZ64Tr+IiPXedGI79bQHdbheCIAD0dUY6gV6vB67rAvo6IxVgWVbFy71KBKkAFaEc2xPQarXA931ot9tyHphiPwpJgSbfe54Hw+EQHMfZ/msVEEURjMfjCjbFeG2dFxPo9/sVOSYzxmAwGIjnTDFRQLMQAjQ5pJAQkCQJ5HlekeERxHEsiE0xUUCzEO9AmqYQhiF0Oh2Yz+ewWCzEY6aYKKBZCAGYs1wuYTabKdNNMWWxnaA4gp3Yry5JBZRlWTXDvaozUgGTyQSyLAP0dbb3DtQlmcan0yngT2ekE9ARc+z4AvC7nauh9iouhpcGamJeX8XF8MaClwaeROWRA7nk+tUnyzGvZrKg0/40gdME/t8EvgG0/NOS6v9NHQAAAABJRU5ErkJggg==')","background-repeat":"no-repeat","background-attachment":"scroll","background-size":"16px 18px","background-position":"98% 50%",cursor:"auto"}},null,512),[[f,t(n).password_confirmation]]),t(a).password_confirmation?(r(),o("p",X,u(t(a).password_confirmation),1)):A("",!0)]),s("button",{type:"submit",disabled:t(c),class:"btn d-flex align-items-center justify-content-center btn btn-primary btn-fill btn-block btn-primary"},[e[7]||(e[7]=s("span",{class:"mr-2"},"Reset",-1)),t(c)?(r(),o("span",M)):A("",!0)],8,I)],32))])])])])])}}},ie=E(se,[["__scopeId","data-v-161a2b86"]]);export{ie as default};
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.