PageSourceSearch

https://finedays.org/_nuxt/jZzIlNYE.js

js finedays.org collected 2026-10-02 07:16:18 UTC 3,402 bytes, 1 lines download raw bytes

1import{_ as M,r as u,l as S,g as N,c as l,h as n,o as r,a as t,q as y,s as f,v as h,n as _,t as c,Q as T,d as V,x as $}from"#entry";const F={class:"modal-content"},P={class:"mb-3"},R=["disabled"],B={key:0,class:"invalid-feedback"},O={class:"mb-3"},U=["disabled"],D={key:0,class:"invalid-feedback"},I={class:"mb-3"},j=["disabled"],z={key:0,class:"invalid-feedback"},L={class:"form-check mb-3"},Q=["disabled"],W={class:"d-flex gap-2"},A=["disabled"],G={key:0,class:"spinner-border spinner-border-sm me-2"},H={key:0,class:"alert alert-success mt-3"},J={key:1,class:"alert alert-danger mt-3"},K={__name:"FundingRequestModal",props:{isOpen:Boolean},emits:["close"],setup(g,{emit:k}){const q=k,o=u(!1),d=u(""),b=u(""),m=u(""),v=u(""),p=u(""),s=S({name:"",phone:"",email:"",subscription:!0,source:""}),w=a=>a.trim()?"":"Name is required",x=a=>a.trim()?"":"Phone is required",C=a=>{const e=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return a?e.test(a)?"":"Invalid email format":"Email is required"},E=async()=>{if(m.value=w(s.name),v.value=x(s.phone),p.value=C(s.email),!(m.value||v.value||p.value)){o.value=!0,d.value="",b.value="";try{const a={name:s.name,phone:s.phone,email:s.email,source:window.location.href},e=$();await $fetch(e.public.leadsEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:a}),d.value="Thank you! We'll contact you with funding info.",Object.assign(s,{name:"",phone:"",email:"",subscription:!0}),setTimeout(()=>{q("close"),d.value=""},2e3)}catch(a){a.status===409?d.value="This email is already registered.":b.value="Something went wrong. Please try again."}finally{o.value=!1}}};return N(()=>{s.source=window.location.href}),(a,e)=>g.isOpen?(r(),l("div",{key:0,class:"modal-backdrop",onClick:e[5]||(e[5]=y(i=>a.$emit("close"),["self"]))},[t("div",F,[e[7]||(e[7]=t("h5",null,"Request Funding Information",-1)),t("form",{onSubmit:y(E,["prevent"])},[t("div",P,[f(t("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=i=>s.name=i),class:_(["form-control",{"is-invalid":m.value}]),placeholder:"Full Name *",disabled:o.value,required:""},null,10,R),[[h,s.name]]),m.value?(r(),l("div",B,c(m.value),1)):n("",!0)]),t("div",O,[f(t("input",{type:"tel","onUpdate:modelValue":e[1]||(e[1]=i=>s.phone=i),class:_(["form-control",{"is-invalid":v.value}]),placeholder:"Phone Number *",disabled:o.value,required:""},null,10,U),[[h,s.phone]]),v.value?(r(),l("div",D,c(v.value),1)):n("",!0)]),t("div",I,[f(t("input",{type:"email","onUpdate:modelValue":e[2]||(e[2]=i=>s.email=i),class:_(["form-control",{"is-invalid":p.value}]),placeholder:"Email *",disabled:o.value,required:""},null,10,j),[[h,s.email]]),p.value?(r(),l("div",z,c(p.value),1)):n("",!0)]),t("div",L,[f(t("input",{type:"checkbox","onUpdate:modelValue":e[3]||(e[3]=i=>s.subscription=i),id:"subscription",class:"form-check-input",disabled:o.value},null,8,Q),[[T,s.subscription]]),e[6]||(e[6]=t("label",{for:"subscription",class:"form-check-label"}," Subscribe to funding updates ",-1))]),t("div",W,[t("button",{type:"submit",class:"btn btn-primary",disabled:o.value},[o.value?(r(),l("span",G)):n("",!0),V(" "+c(o.value?"Sending...":"Submit"),1)],8,A),t("button",{type:"button",class:"btn btn-secondary",onClick:e[4]||(e[4]=i=>a.$emit("close"))}," Cancel ")])],32),d.value?(r(),l("div",H,c(d.value),1)):n("",!0),b.value?(r(),l("div",J,c(b.value),1)):n("",!0)])])):n("",!0)}},Y=M(K,[["__scopeId","data-v-53c55456"]]);export{Y as F};

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.