PageSourceSearch

https://cpf-coaching.com/assets/PreMeetingForm-CrlfZMep.js

js cpf-coaching.com collected 2026-09-25 02:33:44 UTC 4,283 bytes, 1 lines download raw bytes

1import{r as h,j as e,B as g,b as m}from"./index-dF1gQMi3.js";import{D as b,a as j,b as y,c as f}from"./dialog-DD81QTLz.js";import{I as l}from"./input-bGos5nL4.js";import{T as v}from"./textarea-HcGDREkb.js";import{S as N,a as _,b as w,c as S,d as i}from"./select-9-ZJ-y4F.js";import{L as r}from"./label-ttNFI5I-.js";import{C}from"./calendar-DYokg_BS.js";import{L as q}from"./loader-circle-B4SFlydE.js";import{A as D}from"./arrow-right-D5Xga1p_.js";import"./Combination-DYAUeQ1C.js";import"./index-BbigE-vO.js";import"./index-VgyrWbue.js";import"./check-CDiRryCS.js";function G({open:u,onOpenChange:c}){const[a,s]=h.useState({full_name:"",email:"",company:"",phone:"",inquiry_type:"meeting_request",message:""}),[d,n]=h.useState(!1),x=async t=>{t.preventDefault(),n(!0);try{const o=await m.entities.Lead.create(a);try{await m.functions.invoke("createHubSpotContact",{leadId:o.id})}catch(p){console.error("HubSpot sync error:",p)}m.analytics.track({eventName:"lead_form_submitted",properties:{inquiry_type:a.inquiry_type,has_company:!!a.company,has_phone:!!a.phone,form_location:"pre_meeting_form"}}),window.open("https://calendly.com/cpfcoaching/30min","_blank"),setTimeout(()=>{c(!1),s({full_name:"",email:"",company:"",phone:"",inquiry_type:"meeting_request",message:""}),n(!1)},1e3)}catch(o){console.error("Error creating lead:",o),alert("Failed to submit. Please try again."),n(!1)}};return e.jsx(b,{open:u,onOpenChange:c,children:e.jsxs(j,{className:"bg-slate-800 border-slate-700 text-white max-w-lg",children:[e.jsxs(y,{children:[e.jsxs(f,{className:"text-xl flex items-center gap-2",children:[e.jsx(C,{className:"w-5 h-5 text-emerald-400"}),"Book Your Meeting"]}),e.jsx("p",{className:"text-sm text-slate-400 mt-2",children:"Share a few details so we can prepare for our conversation"})]}),e.jsxs("form",{onSubmit:x,className:"space-y-4 py-4",children:[e.jsxs("div",{children:[e.jsx(r,{className:"text-slate-300 mb-2",children:"Full Name *"}),e.jsx(l,{required:!0,value:a.full_name,onChange:t=>s({...a,full_name:t.target.value}),placeholder:"John Smith",className:"bg-slate-900 border-slate-600 text-white"})]}),e.jsxs("div",{children:[e.jsx(r,{className:"text-slate-300 mb-2",children:"Email *"}),e.jsx(l,{required:!0,type:"email",value:a.email,onChange:t=>s({...a,email:t.target.value}),placeholder:"[email protected]",className:"bg-slate-900 border-slate-600 text-white"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(r,{className:"text-slate-300 mb-2",children:"Company"}),e.jsx(l,{value:a.company,onChange:t=>s({...a,company:t.target.value}),placeholder:"Acme Inc.",className:"bg-slate-900 border-slate-600 text-white"})]}),e.jsxs("div",{children:[e.jsx(r,{className:"text-slate-300 mb-2",children:"Phone"}),e.jsx(l,{value:a.phone,onChange:t=>s({...a,phone:t.target.value}),placeholder:"+1 (555) 123-4567",className:"bg-slate-900 border-slate-600 text-white"})]})]}),e.jsxs("div",{children:[e.jsx(r,{className:"text-slate-300 mb-2",children:"What are you interested in?"}),e.jsxs(N,{value:a.inquiry_type,onValueChange:t=>s({...a,inquiry_type:t}),children:[e.jsx(_,{className:"bg-slate-900 border-slate-600 text-white",children:e.jsx(w,{})}),e.jsxs(S,{children:[e.jsx(i,{value:"meeting_request",children:"General Discussion"}),e.jsx(i,{value:"advisory",children:"Advisory Services"}),e.jsx(i,{value:"risk_assessment",children:"Risk Assessment"}),e.jsx(i,{value:"retained_services",children:"Retained Services"})]})]})]}),e.jsxs("div",{children:[e.jsx(r,{className:"text-slate-300 mb-2",children:"Tell us about your needs (optional)"}),e.jsx(v,{value:a.message,onChange:t=>s({...a,message:t.target.value}),placeholder:"Share any details that would help us prepare for the meeting...",className:"bg-slate-900 border-slate-600 text-white min-h-24"})]}),e.jsx(g,{type:"submit",disabled:d,className:"w-full bg-emerald-600 hover:bg-emerald-700 text-white",children:d?e.jsxs(e.Fragment,{children:[e.jsx(q,{className:"w-4 h-4 mr-2 animate-spin"}),"Creating Lead..."]}):e.jsxs(e.Fragment,{children:["Continue to Calendar",e.jsx(D,{className:"w-4 h-4 ml-2"})]})}),e.jsx("p",{className:"text-xs text-slate-500 text-center",children:"After submitting, you'll be redirected to our calendar to choose a time"})]})]})})}export{G 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.