PageSourceSearch

https://lender.sparkil.org/assets/Login-BbyYRAFo.js

js sparkil.org collected 2026-09-26 07:52:48 UTC 3,604 bytes, 1 lines download raw bytes

1import{_ as T}from"./BaseButton-Cj-1BM-l.js";import{_ as U,a as D,b as I}from"./vue3-recaptcha2.es-eTOonBgM.js";import{d as R,f as $,h as M,r as i,w,u as z,o as v,c as y,a as e,j as t,k as G,t as r,b as c,i as k,l as V,m as H,n as A}from"./main-QFd2JyzA.js";import{_ as K}from"./spark-logo-C9K4t_mj.js";import{u as P}from"./payments-DXXwx96o.js";import{u as W}from"./useAnalytics-Bc_Q_dud.js";import"./useMoney-BWFuUMK8.js";const X={class:"w-screen mx-auto h-screen min-h-full flex"},Y={class:"flex flex-col w-full md:w-1/2 h-full px-5 md:px-10"},J={class:"flex items-center justify-between mt-5"},O=["href"],Q={class:"flex items-center"},Z={class:"font-weight-700 me-5"},ee={class:"flex flex-col w-full h-full lg:max-w-1/2 mx-auto items-center justify-center gap-3"},te={class:"font-weight-700 text-2xl"},se={class:"mb-5"},oe={key:0,class:"text-start text-xs my-2 text-error"},ae={key:1,class:"text-start text-xs my-2 text-error"},pe=R({__name:"Login",setup(le){const n=P(),u=z(),m=M(),{t:o,locale:f}=$(),{sendLoginEvent:E}=W(),C="6LceHaAfAAAAAM3mg2Bt2h80U9WNk0XYGFbExtE_";m.params.lang&&(f.value=m.params.lang);const S=i(o("login.wrong_credentials")),L=i(o("login.answer_recaptcha")),_=i(!1),g=i(!1),h=i(!1),s=m.query.redirectFrom,d=m.query.email,a=i({email:d||"",password:"",recaptcha:null});w(()=>{n.isAuthenticated&&d&&n.account&&d!==n.account.email&&n.logout(u,f)}),w(()=>{n.isAuthenticated&&(s?u.replace(s==null?void 0:s.toString()):u.push({name:"profile",query:{next:"forward"}}))}),w(()=>{h.value=n.loginLoading});const j=p=>{if(p.preventDefault(),_.value=!1,g.value=!1,!a.value.recaptcha){g.value=!0;return}n.login({email:a.value.email,password:a.value.password,client_id:"9d88ce73-f7d5-451d-818a-d9a435d8e2b3"}).then(()=>{E()}).catch(()=>{_.value=!0})},q=p=>{a.value.recaptcha=p},F=()=>{s&&(localStorage.setItem("redirectTo",s==null?void 0:s.toString()),localStorage.setItem("redirectTime",new Date().getTime().toString())),u.push({name:"forgot-password-msal",query:{redirectFrom:s}})};return(p,l)=>{const N=H("router-link"),b=U,B=T;return v(),y("div",X,[e("div",Y,[e("div",J,[e("a",{href:t(G)()},l[2]||(l[2]=[e("img",{alt:"",class:"h-10",src:K,srcset:""},null,-1)]),8,O),e("div",Q,[e("p",Z,r(t(o)("login.new_to_spark")),1),c(N,{to:{name:"register",query:{redirectFrom:t(s),email:t(d)}},class:"rounded-lg border-2 border-primary font-weight-700 px-3 py-2"},{default:k(()=>[V(r(t(o)("login.sign-up")),1)]),_:1},8,["to"])])]),e("form",ee,[e("span",te,r(t(o)("login.sign-in")),1),e("div",null,[c(b,{modelValue:a.value.email,"onUpdate:modelValue":l[0]||(l[0]=x=>a.value.email=x),placeholder:t(o)("login.email_address"),name:"email",type:"email"},null,8,["modelValue","placeholder"]),c(b,{modelValue:a.value.password,"onUpdate:modelValue":l[1]||(l[1]=x=>a.value.password=x),placeholder:t(o)("login.password"),name:"password",type:"password"},null,8,["modelValue","placeholder"]),e("div",{class:"font-weight-700 text-start text-xs cursor-pointer mb-5",onClick:F},r(t(o)("login.forgot_password")),1),e("div",se,[c(t(D),{hl:t(f)==="he"?"iw":"en",sitekey:t(C),size:"normal",theme:"light",onVerify:q},null,8,["hl","sitekey"])])]),c(B,{disabled:h.value,loading:h.value,class:"gradient-btn py-3 flex items-center justify-center border-0 text-white font-weight-700",onClick:j},{default:k(()=>[V(r(t(o)("login.sign-in_btn")),1)]),_:1},8,["disabled","loading"]),_.value?(v(),y("p",oe,r(S.value),1)):A("",!0),g.value?(v(),y("p",ae,r(L.value),1)):A("",!0)])]),l[3]||(l[3]=e("div",{class:"hidden md:block md:w-1/2"},[e("img",{alt:"",class:"w-full h-full object-cover",src:I})],-1))])}}});export{pe 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.