PageSourceSearch

https://bravo9.ai/assets/QuoteGenerator-CE1poqbu.js

js bravo9.ai collected 2026-10-05 15:10:52 UTC 9,307 bytes, 1 lines download raw bytes

1import{j as e}from"./ui-ARmw5aO0.js";import{r as d}from"./vendor-CdpKByNg.js";import{B as m,s as E}from"./index-GFvVISO7.js";import{I as c}from"./input-CLCH3kiO.js";import{L as i}from"./label-BQ_Na5J5.js";import{C as I}from"./card-B9w6GZ9L.js";import{T as V}from"./textarea-B5KwKHQW.js";import{S as u,a as h,b as x,c as p,d as g}from"./select-DxttwAu0.js";import{C as B}from"./clock-9hMUmc0v.js";import{D}from"./dollar-sign-D-r9htNb.js";import{C as b}from"./circle-check-big-CZdigHmG.js";import{S as G}from"./send-BGmXfIjp.js";import"./utils-CYC2HZ_g.js";import"./index-BdQq_4o_.js";import"./chevron-down-CoQ6d5GO.js";import"./check-BG0HjnMc.js";const te=({initialData:n,onClose:y,onSubmit:f})=>{const[t,N]=d.useState({projectType:(n==null?void 0:n.service)||"",timeline:"",budget:"",description:(n==null?void 0:n.userInput)||"",deliverables:"",name:"",email:"",company:""}),[a,w]=d.useState(null),[j,v]=d.useState(!1),C=[{value:"product-demo",label:"Product Demo Video"},{value:"social-content",label:"Social Media Content"},{value:"real-estate",label:"Real Estate Content"},{value:"traditional",label:"Traditional Video Production"},{value:"custom",label:"Custom Project"}],S=[{value:"rush",label:"Rush (24-48 hours) +50%"},{value:"standard",label:"Standard (3-5 days)"},{value:"extended",label:"Extended (1-2 weeks) -10%"}],T=[{value:"startup",label:"$200 - $500"},{value:"small-business",label:"$500 - $1,500"},{value:"mid-market",label:"$1,500 - $5,000"},{value:"enterprise",label:"$5,000+"}],r=(s,l)=>{N(o=>({...o,[s]:l}))},k=async()=>{v(!0),setTimeout(()=>{const s=F(),l=P(),o=Math.round(s*l),Q={projectType:t.projectType,estimatedPrice:o,priceRange:{min:Math.round(o*.8),max:Math.round(o*1.2)},timeline:$(),deliverables:R(),nextSteps:["Strategy call to refine requirements","Creative brief and mood board","Production timeline confirmation","First draft delivery","Revisions and final delivery"],validUntil:new Date(Date.now()+7*24*60*60*1e3).toLocaleDateString()};w(Q),v(!1)},2e3)},F=()=>({"product-demo":500,"social-content":300,"real-estate":800,traditional:1200,custom:400})[t.projectType]||400,P=()=>({rush:1.5,standard:1,extended:.9})[t.timeline]||1,$=()=>({rush:"24-48 hours",standard:"3-5 business days",extended:"1-2 weeks"})[t.timeline]||"3-5 business days",R=()=>({"product-demo":["1 hero demo video (30-60s)","3 social media cuts","Behind-the-scenes content","Performance analytics setup"],"social-content":["10 feed posts","5 story templates","3 reel videos","Content calendar"],"real-estate":["Property tour video","Drone footage","5 highlight photos","Virtual staging"],traditional:["Full production video","Raw footage","Edited highlights","Color grading"],custom:["Custom deliverables based on requirements"]})[t.projectType]||["Custom deliverables based on requirements"],q=async()=>{try{const{data:l,error:o}=await E.from("customers").insert({email:t.email,name:t.name,company:t.company||null,source:"quote_generator",status:"lead",notes:`Quote request for ${t.projectType}. Budget: ${t.budget}. Description: ${t.description}`}).select().single();if(o)throw o;console.log("Customer created:",l)}catch(l){console.error("Error submitting quote:",l)}const s={...t,quote:a,submittedAt:new Date().toISOString()};f(s)};return e.jsx("div",{className:"fixed inset-0 bg-black/90 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white max-w-4xl w-full max-h-[90vh] overflow-y-auto rounded-2xl animate-scale-in",children:[e.jsx("div",{className:"bg-gradient-to-r from-black to-gray-900 text-white p-6",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold",children:"Let's Create Something Amazing"}),e.jsx("p",{className:"text-white/80",children:"Tell us about your project and we'll provide you with a custom quote tailored to your needs"})]}),e.jsx("button",{onClick:y,className:"text-white/70 hover:text-white text-2xl",children:"×"})]})}),e.jsx("div",{className:"p-6",children:a?e.jsxs("div",{className:"space-y-6",children:[e.jsxs(I,{className:"p-6 border-2 border-yellow-400",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx(b,{className:"h-16 w-16 text-green-500 mx-auto mb-4"}),e.jsx("h3",{className:"text-2xl font-bold",children:"Your Custom Quote is Ready!"}),e.jsxs("p",{className:"text-gray-600",children:["Valid until ",a.validUntil]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx("h4",{className:"font-semibold text-gray-600",children:"Estimated Investment"}),e.jsxs("div",{className:"text-3xl font-bold text-gray-900",children:["$",a.estimatedPrice]}),e.jsxs("p",{className:"text-sm text-gray-500",children:["Range: $",a.priceRange.min," - $",a.priceRange.max]})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx("h4",{className:"font-semibold text-gray-600",children:"Timeline"}),e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:a.timeline}),e.jsx("p",{className:"text-sm text-gray-500",children:"From project kickoff"})]})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"font-semibold mb-3",children:"What You'll Receive:"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:a.deliverables.map((s,l)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(b,{className:"h-4 w-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:s})]},l))})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"font-semibold mb-3",children:"Next Steps:"}),e.jsx("ol",{className:"space-y-2",children:a.nextSteps.map((s,l)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"bg-yellow-400 text-black font-bold rounded-full w-6 h-6 flex items-center justify-center text-sm flex-shrink-0",children:l+1}),e.jsx("span",{className:"text-sm",children:s})]},l))})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs(m,{onClick:q,className:"flex-1 bg-gradient-to-r from-yellow-400 to-yellow-600 hover:from-yellow-500 hover:to-yellow-700 text-black",children:[e.jsx(G,{className:"h-4 w-4 mr-2"}),"Accept Quote & Start Project"]}),e.jsx(m,{variant:"outline",className:"flex-1",children:"Schedule Strategy Call"})]})]}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx(i,{htmlFor:"projectType",children:"Project Type"}),e.jsxs(u,{value:t.projectType,onValueChange:s=>r("projectType",s),children:[e.jsx(h,{className:"bg-white border shadow-sm",children:e.jsx(x,{placeholder:"Select project type"})}),e.jsx(p,{className:"z-[60] bg-white border shadow-lg",children:C.map(s=>e.jsx(g,{value:s.value,className:"cursor-pointer",children:s.label},s.value))})]})]}),e.jsxs("div",{children:[e.jsx(i,{htmlFor:"timeline",children:"Timeline"}),e.jsxs(u,{value:t.timeline,onValueChange:s=>r("timeline",s),children:[e.jsx(h,{className:"bg-white border shadow-sm",children:e.jsx(x,{placeholder:"Select timeline"})}),e.jsx(p,{className:"z-[60] bg-white border shadow-lg",children:S.map(s=>e.jsx(g,{value:s.value,className:"cursor-pointer",children:s.label},s.value))})]})]}),e.jsxs("div",{children:[e.jsx(i,{htmlFor:"budget",children:"Budget Range"}),e.jsxs(u,{value:t.budget,onValueChange:s=>r("budget",s),children:[e.jsx(h,{className:"bg-white border shadow-sm",children:e.jsx(x,{placeholder:"Select budget range"})}),e.jsx(p,{className:"z-[60] bg-white border shadow-lg",children:T.map(s=>e.jsx(g,{value:s.value,className:"cursor-pointer",children:s.label},s.value))})]})]}),e.jsxs("div",{children:[e.jsx(i,{htmlFor:"deliverables",children:"Specific Deliverables"}),e.jsx(c,{id:"deliverables",placeholder:"e.g., 3 videos, 10 images, 1 week turnaround",value:t.deliverables,onChange:s=>r("deliverables",s.target.value)})]})]}),e.jsxs("div",{children:[e.jsx(i,{htmlFor:"description",children:"Project Description"}),e.jsx(V,{id:"description",placeholder:"Tell us about your project, goals, and any specific requirements...",value:t.description,onChange:s=>r("description",s.target.value),rows:4})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx(i,{htmlFor:"name",children:"Name"}),e.jsx(c,{id:"name",placeholder:"Your name",value:t.name,onChange:s=>r("name",s.target.value)})]}),e.jsxs("div",{children:[e.jsx(i,{htmlFor:"email",children:"Email"}),e.jsx(c,{id:"email",type:"email",placeholder:"[email protected]",value:t.email,onChange:s=>r("email",s.target.value)})]}),e.jsxs("div",{children:[e.jsx(i,{htmlFor:"company",children:"Company"}),e.jsx(c,{id:"company",placeholder:"Company name",value:t.company,onChange:s=>r("company",s.target.value)})]})]}),e.jsx(m,{onClick:k,disabled:j||!t.projectType||!t.email,className:"w-full bg-gradient-to-r from-yellow-400 to-yellow-600 hover:from-yellow-500 hover:to-yellow-700 text-black text-lg py-6",children:j?e.jsxs(e.Fragment,{children:[e.jsx(B,{className:"h-5 w-5 mr-2 animate-spin"}),"Generating Your Custom Quote..."]}):e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"h-5 w-5 mr-2"}),"Generate Instant Quote"]})})]})})]})})};export{te 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.