PageSourceSearch

https://application.birthrightisraelonward.com/AdminLoginPage91243.js

js birthrightisraelonward.com collected 2026-09-29 05:58:29 UTC 1,929 bytes, 1 lines download raw bytes

1import{f as b,ad as B,ab as I,s as l,j as c,z as L,n,m as s,k as m,p as h,af as k,H as w,M as x,aF as N,o as _}from"./FormElements91243.js";import{B as U,_ as V}from"./index91243.js";import{T as A}from"./TextField91243.js";import{l as $,a as j}from"./local-state.creator91243.js";import{u as F}from"./use-birth-date-validation91243.js";const q={class:"adminPage"},D={key:0,class:"authPanel"},T={class:"container"},z={class:"title"},H=["textContent"],O=["textContent"],W=b({__name:"AdminLoginPage",setup(G){B().init();const{isOverMaxAge:C,isBetweenAges:P}=F(),i=I(),u=l();u.value=$();const d=l();d.value=j();const a=l(""),g=l(!0);async function S(r){var p,f,v;r.preventDefault(),a.value="";const o=u.value.value;i.setEmail(o);{const e=await i.emailExist(o);if(!(e!=null&&e.is_success)||!((p=e==null?void 0:e.data)!=null&&p.contact_id)){a.value=(e==null?void 0:e.error_text)||"User not found";return}}i.setIsAdminLogin(!0);const t=await i.loginRequest(d.value.value);if(C((f=t.data)==null?void 0:f.lead_type)){window.location.href=`${k.baseWebsiteUrl}/other-programs?contactId=${t.data.contact_id}`;return}if(P((v=t.data)==null?void 0:v.lead_type)){w().openModal(x.underMinAge),g.value=!1;return}if(!t.is_success){w().closeModal(x.error),a.value=t.error_text;return}const y=t.data.jwt,M=t.data.contact_id;await N().handleLoginSuccess({jwt:y,contactId:M})}return(r,o)=>(_(),c("div",q,[n(g)?(_(),c("div",D,[s("form",{onSubmit:S},[s("div",T,[s("div",z,[s("span",{textContent:h(r.$t("excelLoginPage.loginPanel.adminLogin"))},null,8,H),o[0]||(o[0]=s("div",{class:"line"},null,-1))]),m(A,{input:n(u)},null,8,["input"]),m(A,{input:n(d)},null,8,["input"]),n(a)?(_(),c("div",{key:0,class:"error",textContent:h(n(a))},null,8,O)):L("",!0),m(U,{"data-qa-id":"submit",primary:"",text:r.$t("excelLoginPage.loginPanel.login"),type:"submit"},null,8,["text"])])],32)])):L("",!0)]))}}),Z=V(W,[["__scopeId","data-v-298d4f6f"]]);export{Z 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.