1import{n as p,r as h,j as e,D as y,f as N,g as f,h as j,i as w,U as v,X as S,k as i,I as o,B as k,L as q,a7 as D,b as C}from"./index-C-CM7IIV.js";import{T as F}from"./textarea-GVbMal7j.js";const E=({isOpen:g,onOpenChange:l})=>{const{toast:m}=p(),[s,d]=h.useState(!1),[a,c]=h.useState({email:"",firstName:"",lastName:"",phone:"",message:""}),r=n=>{const{id:t,value:u}=n.target;c(b=>({...b,[t]:u}))},x=async n=>{n.preventDefault(),d(!0);try{const{error:t}=await C.from("speaker_inquiries").insert([{email:a.email,first_name:a.firstName,last_name:a.lastName,phone:a.phone,message:a.message}]);if(t)throw t;m({title:"Speaker Inquiry Sent!",description:"Thank you for your interest. Our team will review your submission and get back to you shortly.",className:"bg-green-600 text-white border-none"}),l(!1),c({email:"",firstName:"",lastName:"",phone:"",message:""})}catch(t){console.error("Error submitting speaker inquiry:",t),m({title:"Error Sending Inquiry",description:"There was a problem sending your message. Please try again.",variant:"destructive"})}finally{d(!1)}};return e.jsx(y,{open:g,onOpenChange:l,children:e.jsxs(N,{className:"sm:max-w-md bg-[#161b22] border-gray-800 text-white shadow-2xl",children:[e.jsxs(f,{children:[e.jsx(j,{className:"text-2xl font-bold text-center text-white mb-2",children:"Speaker Inquiries"}),e.jsx(w,{className:"text-center text-orange-500 font-medium",children:"* indicates required"})]}
1),e.jsxs(v,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none text-gray-400 hover:text-white",children:[e.jsx(S,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]}),e.jsxs("form",{onSubmit:x,className:"space-y-4 px-2 mt-2",children:[e.jsxs("div",{children:[e.jsxs(i,{htmlFor:"email",className:"text-gray-200 font-medium mb-1.5 block",children:["Email Address ",e.jsx("span",{className:"text-orange-500",children:"*"})]}),e.jsx(o,{id:"email",type:"email",value:a.email,onChange:r,required:!0,disabled:s,className:"bg-[#0d1117] border-gray-700 focus:border-orange-500 text-white placeholder:text-gray-500",placeholder:"[email protected]"})]}),e.jsxs("div",{children:[e.jsxs(i,{htmlFor:"firstName",className:"text-gray-200 font-medium mb-1.5 block",children:["First Name ",e.jsx("span",{className:"text-orange-500",children:"*"})]}),e.jsx(o,{id:"firstName",value:a.firstName,onChange:r,required:!0,disabled:s,className:"bg-[#0d1117] border-gray-700 focus:border-orange-500 text-white placeholder:text-gray-500"})]}),e.jsxs("div",{children:[e.jsxs(i,{htmlFor:"lastName",className:"text-gray-200 font-medium mb-1.5 block",children:["Last Name ",e.jsx("span",{className:"text-orange-500",children:"*"})]}),e.jsx(o,{id:"lastName",value:a.lastName,onChange:r,required:!0,disabled:s,className:"bg-[#0d1117] border-gray-700 focus:border-orange-500 text-white placeholder:text-gray-500"})]}),e.jsxs("div",{children:[e.jsx(i,{htmlFor:"phone",className:"text-gray-200 font-medium mb-1.5 block",children:"Phone Number (Optional)"}),e.jsx(o,{id:"phone",type:"tel",value:a.phone,onChange:r,disabled:s,className:"bg-[#0d1117] border-gray-700 focus:border-orange-500 text-white placeholder:text-gray-500",placeholder:"+1 (555) 000-0000"})]}),e.jsxs("div",{children:[e.jsxs(i,{htmlFor:"message",className:"text-gray-200 font-medium mb-1.5 block",children:["Message ",e.jsx("span",{className:"text-orange-500",children:"*"})]}),e.jsx(F,{id:"message",value:a.message,onChange:r,required:!0,disabled:s,className:"bg-[#0d1117] border-gray-700 focus:border-orange-500 text-white placeholder:text-gray-500 min-h-[100px]",placeholder:"Tell us about your speaking topic..."})]}),e.jsx(k,{type:"submit",className:"w-full bg-orange-500 hover:bg-orange-600 text-white font-bold py-2 mt-2 transition-colors",disabled:s,children:s?e.jsxs(e.Fragment,{children:[e.jsx(q,{className:"mr-2 h-4 w-4 animate-spin"})," Sending..."]}):e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"mr-2 h-4 w-4"})," Send Message"]})})]})]})})};export{E as S};
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.