PageSourceSearch

https://www.zagreb-transfers.hr/assets/GetQuote-BmMFPayu.js

js zagreb-transfers.hr collected 2026-10-09 17:21:01 UTC 8,673 bytes, 20 lines download raw bytes

1import{G as w,ak as C,a as P,u as T,r as h,j as e,H as k,C as o,e as d,f as D,aq as x,c as F,d as q,_ as t,J as l,ar as p,an as S,ao as g,a9 as I,B as R,as as $,F as E,$ as L,a0 as A}from"./index-DFNkOuAL.js";import{C as Q}from"./circle-check-big-CgOSLc-e.js";import{S as G}from"./send-DFGSju4b.js";const z=()=>{const{toast:u}=w(),[n]=C(),f=P(),{getLink:j}=T(),[a,r]=h.useState({name:"",email:"",phone:"",pickup:"",dropoff:"",date:"",returnDate:"",passengers:"1",luggage:"",transferType:"one-way",vehiclePreference:"any",additionalInfo:""});h.useEffect(()=>{const s=n.get("pickup"),c=n.get("dropoff"),m=n.get("vehicle"),N=n.get("date"),y=n.get("people"),b=n.get("transferType");r(i=>({...i,pickup:s||i.pickup,dropoff:c||i.dropoff,vehiclePreference:m?m.toLowerCase():i.vehiclePreference,date:N||i.date,passengers:y||i.passengers,transferType:b||i.transferType}))},[n]);const v=async s=>{if(s.preventDefault(),!a.name||!a.email||!a.phone||!a.pickup||!a.dropoff||!a.date){u({title:"Missing Information",description:"Please fill in all required fields",variant:"destructive"});return}const c={to_email:"[email protected], [email protected]",from_name:a.name,from_email:a.email,phone:a.phone,message:`
2        QUOTE REQUEST
3        
4        Route:
5        From: ${a.pickup}
6        To: ${a.dropoff}
7        
8        Dates:
9        Departure: ${a.date}
10        ${a.transferType==="return"?`Return: ${a.returnDate}`:""}
11        
12        Details:
13        Passengers: ${a.passengers}
14        Luggage: ${a.luggage||"Not specified"}
15        Transfer Type: ${a.transferType}
16        Vehicle Preference: ${a.vehiclePreference}
17        
18        Additional Info:
19        ${a.additionalInfo||"None"}
20      `,reply_to:a.email};(await L(c)).success?A(f,j,"quote",{pickup:a.pickup,dropoff:a.dropoff,date:a.date,passengers:a.passengers,vehicle:a.vehiclePreference}):u({title:"Error",description:"Failed to send quote request. Please try again.",variant:"destructive"})};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(k,{}),e.jsx("main",{className:"flex-1 pt-20 pb-16",children:e.jsx("section",{className:"py-12 bg-gradient-to-br from-primary/10 via-background to-background",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-8",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Get a Free Quote"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Fill out the form below and we'll send you a personalized quote within 24 hours"})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 max-w-5xl mx-auto mb-12",children:[e.jsx(o,{children:e.jsxs(d,{className:"pt-6 text-center",children:[e.jsx(D,{className:"w-12 h-12 text-primary mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Quick Response"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get your quote within 24 hours"})]})}),e.jsx(o,{children:e.jsxs(d,{className:"pt-6 text-center",children:[e.jsx(Q,{className:"w-12 h-12 text-primary mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Best Prices"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Competitive rates, no hidden fees"})]})}),e.jsx(o,{children:e.jsxs(d,{className:"pt-6 text-center",children:[e.jsx(x,{className:"w-12 h-12 text-primary mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"24/7 Support"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"We're always here to help"})]})})]}),e.jsxs(o,{className:"max-w-3xl mx-auto",children:[e.jsx(F,{children:e.jsx(q,{children:"Request Your Quote"})}),e.jsx(d,{children:e.jsxs("form",{onSubmit:v,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Contact Information"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx(t,{htmlFor:"name",children:"Full Name *"}),e.jsx(l,{id:"name",value:a.name,onChange:s=>r({...a,name:s.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(t,{htmlFor:"email",children:"Email *"}),e.jsx(l,{id:"email",type:"email",value:a.email,onChange:s=>r({...a,email:s.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(t,{htmlFor:"phone",children:"Phone Number *"}
20),e.jsx(l,{id:"phone",type:"tel",value:a.phone,onChange:s=>r({...a,phone:s.target.value}),required:!0})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Trip Details"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsx(p,{id:"pickup",label:"Pickup Location *",value:a.pickup,onChange:s=>r({...a,pickup:s}),placeholder:"e.g., Zagreb Airport"}),e.jsx(p,{id:"dropoff",label:"Drop-off Location *",value:a.dropoff,onChange:s=>r({...a,dropoff:s}),placeholder:"e.g., Split City Center"})]}),e.jsxs("div",{children:[e.jsx(t,{className:"mb-3 block",children:"Transfer Type *"}),e.jsxs(S,{value:a.transferType,onValueChange:s=>r({...a,transferType:s}),children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(g,{value:"one-way",id:"oneway"}),e.jsx(t,{htmlFor:"oneway",className:"font-normal cursor-pointer",children:"One way"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(g,{value:"return",id:"return-trip"}),e.jsx(t,{htmlFor:"return-trip",className:"font-normal cursor-pointer",children:"Round trip (with return)"})]})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(t,{htmlFor:"date",children:"Departure Date *"}),e.jsx(l,{id:"date",type:"date",value:a.date,onChange:s=>r({...a,date:s.target.value}),min:new Date().toISOString().split("T")[0],required:!0})]}),a.transferType==="return"&&e.jsxs("div",{children:[e.jsx(t,{htmlFor:"returnDate",children:"Return Date"}),e.jsx(l,{id:"returnDate",type:"date",value:a.returnDate,onChange:s=>r({...a,returnDate:s.target.value}),min:a.date||new Date().toISOString().split("T")[0]})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx(t,{htmlFor:"passengers",children:"Passengers *"}),e.jsx(l,{id:"passengers",type:"number",min:"1",max:"50",value:a.passengers,onChange:s=>r({...a,passengers:s.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(t,{htmlFor:"luggage",children:"Luggage Pieces"}),e.jsx(l,{id:"luggage",type:"number",min:"0",value:a.luggage,onChange:s=>r({...a,luggage:s.target.value}),placeholder:"Optional"})]}),e.jsxs("div",{children:[e.jsx(t,{htmlFor:"vehicle",children:"Vehicle Preference"}),e.jsxs("select",{id:"vehicle",value:a.vehiclePreference,onChange:s=>r({...a,vehiclePreference:s.target.value}),className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground",children:[e.jsx("option",{value:"any",children:"Any"}),e.jsx("option",{value:"sedan",children:"Sedan"}),e.jsx("option",{value:"minivan",children:"Minivan"}),e.jsx("option",{value:"minibus",children:"Minibus"}),e.jsx("option",{value:"bus",children:"Bus"})]})]})]})]}),e.jsxs("div",{children:[e.jsx(t,{htmlFor:"additionalInfo",children:"Additional Information"}),e.jsx(I,{id:"additionalInfo",value:a.additionalInfo,onChange:s=>r({...a,additionalInfo:s.target.value}),placeholder:"Any special requirements? Child seats, wheelchair access, stops along the way, etc.",className:"min-h-24"})]}),e.jsxs(R,{type:"submit",size:"lg",className:"w-full",children:[e.jsx(G,{className:"w-5 h-5 mr-2"}),"Send Quote Request"]}),e.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"We'll respond within 24 hours with a detailed quote for your transfer"})]})})]}),e.jsx("div",{className:"max-w-3xl mx-auto mt-12",children:e.jsx(o,{children:e.jsxs(d,{className:"pt-6",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4 text-center",children:"Prefer to Contact Us Directly?"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3 justify-center",children:[e.jsx(x,{className:"w-5 h-5 text-primary"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Call or WhatsApp"}),e.jsx("p",{className:"font-semibold",children:"+385 97 601 9558"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 justify-center",children:[e.jsx($,{className:"w-5 h-5 text-primary"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Email"}),e.jsx("p",{className:"font-semibold",children:"[email protected]"})]})]})]})]})})})]})})}),e.jsx(E,{})]})};export{z 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.