PageSourceSearch

https://claimready.io/assets/Login-HCGeFyd4.js

js claimready.io collected 2026-10-02 01:57:14 UTC 4,875 bytes, 1 lines download raw bytes

1import{C as q,_ as D}from"./Container-BXpLuevF.js";import{d as A,i as d,j as L,k as P,o as r,w as y,e as i,b as h,c as g,g as f,t as _,f as V,F as N,h as T,l as G,m as U,u as S,p as W,q as j,s as z,G as M,v as H,x as J}from"./index-phbp4HFs.js";import{B as K,_ as I}from"./SignupForm.vue_vue_type_style_index_0_scoped_cfb7eaf2_lang-CT9EJUtl.js";import{I as x}from"./Input-9TnQlYb5.js";import{C as O}from"./Card-DKDtiJYz.js";import{A as Q}from"./Alert-Bp7Yp4yU.js";import{S as X}from"./SocialAuthButton-DTZePLs2.js";const Y={class:"mb-login-form__title"},Z={key:1,class:"mb-login-form__social"},ee={key:2,class:"mb-login-form__divider"},oe={class:"mb-login-form__fields"},ae={key:3,class:"mb-login-form__forgot"},le={key:4,class:"mb-login-form__signup"},te=A({__name:"LoginForm",props:{title:{default:"Sign In"},submitLabel:{default:"Sign In"},loading:{type:Boolean,default:!1},loadingProvider:{default:null},error:{},showForgotPassword:{type:Boolean,default:!0},showSignupLink:{type:Boolean,default:!0},signupLabel:{default:"Don't have an account? Sign up"},forgotPasswordLabel:{default:"Forgot password?"},socialProviders:{default:()=>["google","facebook"]},showDivider:{type:Boolean,default:!0}},emits:["submit","social-auth","forgot-password","signup-click"],setup(e,{emit:v}){const p=e,c=v,n=d(""),a=d(""),m=d(""),b=d(""),w=d(!1),t=d(!1),s=L(()=>n.value.trim()!==""&&a.value.trim()!==""),u=L(()=>p.loading||p.loadingProvider!==null);function B(){return w.value?n.value.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.value)?(m.value="",!0):(m.value="Please enter a valid email",!1):(m.value="Email is required",!1):!0}function C(){return t.value?a.value?(b.value="",!0):(b.value="Password is required",!1):!0}function E(){w.value=!0,B()}function F(){t.value=!0,C()}function $(){w.value=!0,t.value=!0;const k=B(),o=C();k&&o&&c("submit",{email:n.value,password:a.value})}function R(k){c("social-auth",k)}return(k,o)=>(r(),P(O,{class:"mb-login-form",padding:"lg"},{default:y(()=>[i("form",{onSubmit:G($,["prevent"])},[i("h2",Y,_(e.title),1),e.error?(r(),P(Q,{key:0,variant:"destructive",class:"mb-login-form__error"},{default:y(()=>[V(_(e.error),1)]),_:1})):h("",!0),e.socialProviders.length>0?(r(),g("div",Z,[(r(!0),g(N,null,T(e.socialProviders,l=>(r(),P(X,{key:l,provider:l,action:"signin",loading:e.loadingProvider===l,disabled:u.value&&e.loadingProvider!==l,onClick:ue=>R(l)},null,8,["provider","loading","disabled","onClick"]))),128))])):h("",!0),e.socialProviders.length>0&&e.showDivider?(r(),g("div",ee,[...o[4]||(o[4]=[i("span",null,"or",-1)])])):h("",!0),i("div",oe,[f(x,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l),type:"email",label:"Email",placeholder:"[email protected]",error:m.value,disabled:u.value,autocomplete:"email",onBlur:E},null,8,["modelValue","error","disabled"]),f(x,{modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=l=>a.value=l),type:"password",label:"Password",placeholder:"••••••••",error:b.value,disabled:u.value,autocomplete:"current-password",onBlur:F},null,8,["modelValue","error","disabled"])]),e.showForgotPassword?(r(),g("div",ae,[i("button",{type:"button",class:"mb-login-form__link",onClick:o[2]||(o[2]=l=>c("forgot-password"))},_(e.forgotPasswordLabel),1)])):h("",!0),f(K,{type:"submit",class:"mb-login-form__submit",disabled:!s.value||u.value,loading:e.loadingProvider==="email"||e.loading&&!e.loadingProvider},{default:y(()=>[V(_(e.submitLabel),1)]),_:1},8,["disabled","loading"]),e.showSignupLink?(r(),g("div",le,[i("button",{type:"button",class:"mb-login-form__link",onClick:o[3]||(o[3]=l=>c("signup-click"))},_(e.signupLabel),1)])):h("",!0)],32)]),_:1}))}}),se=I(te,[["__scopeId","data-v-c089cf98"]]),ie={class:"login-page"},re={class:"login-page__header"},ne=A({__name:"Login",setup(e){const v=W(),p=j(),{signIn:c,error:n}=U(),a=d(null),m=async t=>{a.value="email";try{await c(t.email,t.password);const s=p.query.redirect||"/app";v.push(s)}finally{a.value=null}},b=async t=>{a.value=t;try{if(t==="google"){const s=new M;await H(J,s);const u=p.query.redirect||"/app";v.push(u)}}finally{a.value=null}},w=()=>{v.push("/signup")};return(t,s)=>{const u=z("RouterLink");return r(),g("div",ie,[f(S(q),{size:"sm",class:"login-page__container"},{default:y(()=>[i("div",re,[f(u,{to:"/",class:"login-page__logo"},{default:y(()=>[...s[0]||(s[0]=[i("img",{src:D,alt:"ClaimReady",class:"login-page__logo-icon"},null,-1),i("span",{class:"login-page__logo-text"},"ClaimReady",-1)])]),_:1})]),f(S(se),{title:"Welcome Back","submit-label":"Sign In","loading-provider":a.value,error:S(n)||void 0,"social-prov
1iders":["google"],"show-forgot-password":!1,onSubmit:m,onSocialAuth:b,onSignupClick:w},null,8,["loading-provider","error"]),s[1]||(s[1]=i("p",{class:"login-page__footer"}," Secure analysis of your VA decision letters ",-1))]),_:1})])}}}),be=I(ne,[["__scopeId","data-v-3f6963e5"]]);export{be 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.