PageSourceSearch

https://cleopatra-organic-health-wealth-store.com/assets/ConsultancyBooking-BIG-KI46.js

js cleopatra-organic-health-wealth-store.com collected 2026-10-07 03:57:29 UTC 7,259 bytes, 1 lines download raw bytes

1import{a as k,b as S,q as E,k as T,r as l,j as e,H as q,C as x,e as v,p as B,B as j,m as P,n as _,h as y}from"./index-BMyAg9hy.js";import{C as A}from"./mockData-BAHDiG5G.js";import{I as d}from"./input-CRYSpBFb.js";import{L as r}from"./label-5yW72X3K.js";import{T as $}from"./textarea-B5utAeN1.js";import{C as D}from"./calendar-CLVvb_Mv.js";const W=()=>{const i=A[0],{toast:m}=k(),b=S(),u=E(),{user:o}=T(),[c,f]=l.useState(""),[h,p]=l.useState(!1),[a,s]=l.useState({name:"",email:"",phone:"",topic:"General Cybersecurity Audit",projectSummary:"",contactMethod:"email",consent:!1});l.useEffect(()=>{const t=u.state?.service;t&&s(n=>({...n,topic:t})),o&&s(n=>({...n,name:n.name||o.user_metadata?.full_name||"",email:n.email||o.email||""}))},[u.state,o]);const N=async t=>{if(t.preventDefault(),!a.consent){m({variant:"destructive",title:"Toestemming vereist",description:"Geef toestemming voor contact om door te gaan."});return}p(!0);const n=`Onderwerp: ${a.topic} | Gewenste datum: ${c||"niet opgegeven"} | Contactvoorkeur: ${a.contactMethod}${a.projectSummary?` | Project: ${a.projectSummary}`:""}`;try{await y.functions.invoke("crm-leads",{body:{action:"create",source:"quote_request",name:a.name,email:a.email,phone:a.phone,service_interest:a.topic,lead_type:"cybersecurity",notes:n,consent:!0,metadata:{contact_method:a.contactMethod,project_summary:a.projectSummary,preferred_date:c||null,domain:u.state?.domain||"cybersecurity"}}})}catch(C){console.warn("[ConsultancyBooking] lead creation skipped:",C)}const{data:g,error:w}=await y.from("company_inquiries").insert({name:a.name,email:a.email,service:a.topic,message:`Consultancy aanvraag — onderwerp: ${a.topic}, gewenste datum: ${c||"niet opgegeven"}`,status:"pending"}).select("id").single();if(p(!1),w||!g?.id){m({variant:"destructive",title:"Error",description:"Uw aanvraag kon niet worden verzonden. Probeer het opnieuw."});return}m({title:"Aanvraag opgeslagen",description:"U wordt nu doorgestuurd naar de beveiligde checkout om de consultancy te betalen."}),b(`/consultancy-checkout/${g.id}`)};return e.jsxs("div",{className:"container mx-auto px-4 py-8",children:[e.jsxs(q,{children:[e.jsx("title",{children:"Consultancy Aanvraag | HWO Sovereign"}),e.jsx("meta",{name:"description",content:"Boek een consultancy-sessie bij HWO Sovereign — cybersecurity, technical engineering en tech support. Betaling via de bestaande beveiligde checkout."})]}),e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs(x,{className:"mb-8 overflow-hidden",children:[e.jsxs("div",{className:"h-48 bg-gray-900 relative",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1573164713988-8665fc963095?w=800&auto=format&fit=crop&q=80",alt:"Consulting Banner",className:"w-full h-full object-cover opacity-50"}),e.jsxs("div",{className:"absolute bottom-4 left-6 text-white",children:[e.jsx("h1",{className:"text-3xl font-bold",children:i.name}),e.jsx("p",{className:"opacity-90",children:i.role})]})]}),e.jsx(v,{className:"p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Services Offered"}),e.jsx("ul",{className:"space-y-2",children:i.specialties.map((t,n)=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-blue-500 rounded-full"}),t]},n))}),e.jsx("p",{className:"mt-4 text-gray-600",children:"Expert guidance on fortifying your digital infrastructure. We provide comprehensive audits, implementation of secure communication channels, and bespoke engineering solutions for high-net-worth individuals and sovereignty-focused organizations."})]}),e.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg border",children:[e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[e.jsx("span",{className:"text-gray-600",children:"Hourly Rate"}),e.jsxs("span",{className:"font-bold text-xl",children:[B(i.rate),"/hr"]})]}),e.jsx("div",{className:"text-xs text-gray-500 mb-6",children:"Minimum booking: 2 hours"}),e.jsx(j,{className:"w-full bg-emerald-600 text-white",disabled:!0,children:"Currently Available"})]})]})})]}),e.jsxs(x,{children:[e.jsx(P,{children:e.jsx(_,{children:"Book a Session"})}),e.jsx(v,{children:e.jsxs("form",{onSubmit:N,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"Full Name"}),e.jsx(d,{required:!0,placeholder:"Enter your name",value:a.name,onChange:t=>s({...a,name:t.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"Email"}),e.jsx(d,{required:!0,type:"email",placeholder:"Enter your email",value:a.email,onChange:t=>s({...a,email:t.target.value})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"Phone (optional)"}
1),e.jsx(d,{type:"tel",placeholder:"Enter your phone",value:a.phone,onChange:t=>s({...a,phone:t.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"Preferred Contact Method"}),e.jsxs("select",{className:"w-full border rounded-md p-2 text-sm bg-white",value:a.contactMethod,onChange:t=>s({...a,contactMethod:t.target.value}),children:[e.jsx("option",{value:"email",children:"Email"}),e.jsx("option",{value:"phone",children:"Phone"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"Topic of Consultation"}),e.jsxs("select",{className:"w-full border rounded-md p-2 text-sm bg-white",value:a.topic,onChange:t=>s({...a,topic:t.target.value}),children:[e.jsx("option",{children:"General Cybersecurity Audit"}),e.jsx("option",{children:"Technical Engineering Project"}),e.jsx("option",{children:"Tech Support & Troubleshooting"}),e.jsx("option",{children:"Other"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"Project Summary (optional)"}),e.jsx($,{placeholder:"Korte beschrijving van uw vraag of project",value:a.projectSummary,onChange:t=>s({...a,projectSummary:t.target.value}),rows:3})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"Preferred Date"}),e.jsxs("div",{className:"relative",children:[e.jsx(d,{type:"date",required:!0,value:c,onChange:t=>f(t.target.value)}),e.jsx(D,{className:"absolute right-3 top-2.5 h-4 w-4 text-gray-400 pointer-events-none"})]})]}),e.jsxs("label",{className:"flex items-start gap-3 text-sm text-gray-300 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:a.consent,onChange:t=>s({...a,consent:t.target.checked}),required:!0,className:"mt-1 h-4 w-4 rounded border-cyan-500/40 bg-black/30 text-cyan-500 focus:ring-cyan-500"}),e.jsx("span",{children:"Ik geef toestemming dat HWO Sovereign contact met mij opneemt over deze aanvraag en mijn gegevens hiervoor verwerkt."})]}),e.jsx(j,{type:"submit",disabled:h,className:"w-full bg-blue-600 hover:bg-blue-700 text-white",children:h?"Aanvraag opslaan…":"Naar checkout"}),e.jsx("p",{className:"text-xs text-center text-gray-500",children:"Uw aanvraag wordt opgeslagen en u betaalt via de bestaande beveiligde checkout. De aanvraag is pas uitvoerbaar na server-side betaalbevestiging."})]})})]})]})]})};export{W 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.