1import{d as B,z as F,E as v,c as N,H as t,j as a,aH as V,aa as d,f as _,l as x,q as U,a_ as h,a5 as f,p as n,x as C,aG as $,a3 as S,a4 as E,ae as j,bB as q,A as H,af as O,F as z,r as l}from"./vendor-vuetify-CZqx1F5r.js";import{_ as K,a as G,b as W}from"./lock-ClzDkBdR.js";import{u as J,d as Q,M as X,A as D,j as Y}from"./index-B5oZ1XjT.js";import{_ as Z}from"./LoginPageWrapper.vue_vue_type_style_index_0_lang-C1Oc6S2g.js";import{b as I}from"./route-block-BIO7NrfO.js";import"./vendor-sentry-CdlvO8A5.js";import"./login_separator-BTLGKtnZ.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new r.Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="d73afb27-d5db-4933-955b-da50598d3d5e",r._sentryDebugIdIdentifier="sentry-dbid-d73afb27-d5db-4933-955b-da50598d3d5e")}catch{}const T="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2398ADB7'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='feather%20feather-mail'%3e%3cpath%20d='M4%204h16c1.1%200%202%20.9%202%202v12c0%201.1-.9%202-2%202H4c-1.1%200-2-.9-2-2V6c0-1.1.9-2%202-2z'%3e%3c/path%3e%3cpolyline%20points='22,6%2012,13%202,6'%3e%3c/polyline%3e%3c/svg%3e",ee="/assets/lock-DSm9_CBI.svg",te={class:"text-red"},ae={class:"d-flex justify-space-between"},se={class:"text-grey1"},oe=B({__name:"LoginForm",setup(r){const o=l(""),u=l(""),g=l(!0),y=l(!1),i=l(!1),p=l(!1),m=l(""),b=l(""),w=l(!1),L=J(),M=Q(),P=async()=>{b.value="",w.value=!0;try{await D.account.login({email:o.value,password:u.value,isRememberMe:g.value}),L.push({path:"/auth",query:M.query})}catch(c){console.error(c),b.value="User not found or incorrect password",w.value=!1}},R=async()=>{try{await D.account.resetPassword(m.value),Y().success("We've sent a message to the email listed.")}catch(c){console.error(c)}finally{p.value=!1}},k=()=>{o.value=o.value.toLowerCase()};return(c,e)=>{const A=F("router-link");return v(),N(z,null,[t($,{class:"base-form",onSubmit:C(P,["prevent"])},{default:a(()=>[t(V,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=s=>o.value=s),variant:"outlined",type:"email",autocomplete:"username",label:"Login","hide-details":"",class:"mb-6","single-line":"",onKeyup:k},{"prepend-inner":a(()=>[t(d,{width:"16",height:"16",src:T})]),_:1},8,["modelValue"]),t(V,{modelValue:u.value,"onUpdate:modelValue":e[3]||(e[3]=s=>u.value=s),variant:"outlined",label:"Password",autocomplete:"current-password","hide-details":"","single-line":"",type:i.value?"text":"password"},{"append-inner":a(()=>[i.value?(v(),_(d,{key:0,width:"16",height:"16",src:G,style:{cursor:"pointer"},onClick:e[1]||(e[1]=s=>i.value=!i.value)})):(v(),_(d,{key:1,width:"16",height:"16",src:W,style:{cursor:"pointer"},onClick:e[2]||(e[2]=s=>i.value=!i.value)}))]),"prepend-inner":a(()=>[t(d,{width:"16",height:"16",src:K})]),_:1},8,["modelValue","type"]),x("span",te,U(b.value),1),x("div",ae,[t(h,{modelValue:g.value,"onUpdate:modelValue":e[4]||(e[4]=s=>g.value=s),density:"compact","hide-details":"",label:"Remember me",class:"text-grey1 rounded-xl",color:"primary",rounded:""},null,8,["modelValue"]),t(f,{variant:"plain",color:"primary",class:"tx-body-1 ma-0 pa-0 pr-1",style:{opacity:"1"},onClick:e[5]||(e[5]=s=>p.value=!0)},{default:a(()=>[...e[11]||(e[11]=[n("Forgot password? ",-1)])]),_:1})]),t(h,{modelValue:y.value,"onUpdate:modelValue":e[7]||(e[7]=s=>y.value=s),density:"compact","hide-details":"",color:"primary"},{label:a(()=>[x("span",se,[e[13]||(e[13]=n(" I agree with the ",-1)),t(A,{to:{name:"Documents / Terms and Conditions"},class:"link text-primary",onClick:e[6]||(e[6]=C(()=>{},["stop"]))},{default:a(()=>[...e[12]||(e[12]=[n(" TERMS AND CONDITIONS ",-1)])]),_:1})])]),_:1},8,["modelValue"]),t(f,{variant:"flat",color:"primary",width:"200",class:"mt-6 mx-auto",type:"submit",loading:w.value,disabled:!o.value||!u.value||!y.value},{default:a(()=>[...e[14]||(e[14]=[n("Login",-1)])]),_:1},8,["loading","disabled"])]),_:1}),t(O,{modelValue:p.value,"onUpdate:modelValue":e[10]||(e[10]=s=>p.value=s),class:"ma-6",width:"400"},{default:a(()=>[t(S,{class:"pa-8 pt-4"},{default:a(()=>[t(d,{width:"220",height:"160",class:"mx-auto","aspect-ratio":1,src:ee}),t(E,{class:"text-center tx-subtitle-2 pa-0"},{default:a(()=>[...e[15]||(e[15]=[n("Forgot Password",-1)])]),_:1}),t(j,{class:"text-center text-grey1 my-6 pa-0"},{default:a(()=>[...e[16]||(e[16]=[n(" Enter your registered email for password reset instructions. ",-1)])]),_:1}),t(V,{modelValue:m.value,"onUpdate:modelValue":e[8]||(e[8]=s=>m.value=s),variant:"outlined",type:"email",label:"Login","hide-details":"",class:"mb-6","single-line":"",onKeyup:k},{"prepend-inner":a(()=>[t(d,{width:"16",height:"16",src:T})]),_:1},8,["modelValue"]),t(q,{class:"pa-0"},{default:a(()=>[t(f,{variant:"flat",color:"primary",disabled:!m.value,block:"",onClick:R},{default:a(()=>[...e[17]||(e[17]=[n("Reset password",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1}),t(f,{icon:H(X).close,variant:"outlined",color:"primary",class:"rounded-xl bg-background",style:{position:"absolute",top:"-15px",right:"-15px"},onClick:e[9]||(e[9]=s=>p.value=!1)},null,8,["icon"])]),_:1},8,["modelValue"])],64)}}}),le=B({__name:"login",setup(r){return(o,u)=>(v(),_(Z,null,{default:a(()=>[t(oe)]),_:1}))}});typeof I=="function"&&I(le);export{le as default}; 2//# sourceMappingURL=login-CaLwyVYQ.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.