1import{h as C,u as k,af as B,t as F,j as e,C as n,al as T,f as d,B as p,b as S,q as I,N as P,e as E,aB as $,p as X,l as D}from"./index-U8D282DB.js";import{d as M,c as j}from"./dateUtils-xDUjtiFQ.js";import{P as L}from"./PartnerShowcase-TLvsw7tZ.js";import{C as Y}from"./chevron-left-Bq9CJL-3.js";import{A as R}from"./award-Dz02xMOL.js";import{C as y}from"./circle-check-BhfzMN_T.js";import{C as G}from"./calendar-Ctb75UO1.js";import{T as O}from"./trending-up-CHKjT34O.js";import"./handshake-CxiU6pmk.js";const V=C("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]),x={member:{label:"Member",color:"#64748B",bg:"rgba(100,116,139,0.1)",icon:"M"},gold:{label:"Gold",color:"#C8A951",bg:"rgba(200,169,81,0.12)",icon:"G"},signature:{label:"Signature",color:"#E8A0BF",bg:"rgba(232,160,191,0.12)",icon:"S"},black_sapphire:{label:"Black Sapphire",color:"#A78BFA",bg:"rgba(167,139,250,0.12)",icon:"BS"}};function ee(){k("Receipt");const[,m]=B("/receipt/:bookingId"),g=m?.bookingId?parseInt(m.bookingId):0,{data:h,isLoading:f}=F.bookings.receiptData.useQuery({bookingId:g},{enabled:g>0});if(f)return e.jsx(n,{"data-loc":"client/src/pages/Receipt.tsx:36",children:e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:37",className:"min-h-screen flex items-center justify-center",style:{backgroundColor:"#F8F7F4"},children:e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:38",className:"animate-pulse flex flex-col items-center gap-3",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:39",className:"w-14 h-14 rounded-full",style:{backgroundColor:"rgba(27,42,74,0.08)"}}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:40",className:"text-sm font-medium",style:{color:"#64748B"},children:"Loading your receipt..."})]})})});if(!h)return e.jsx(n,{"data-loc":"client/src/pages/Receipt.tsx:49",children:e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:50",className:"min-h-screen flex flex-col items-center justify-center gap-4",style:{backgroundColor:"#F8F7F4"},children:[e.jsx(T,{"data-loc":"client/src/pages/Receipt.tsx:51",className:"h-14 w-14",style:{color:"#94A3B8"}}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:52",className:"text-lg font-medium",style:{color:"#64748B"},children:"Receipt not found"}),e.jsx(d,{"data-loc":"client/src/pages/Receipt.tsx:53",href:"/my-bookings",children:e.jsx(p,{"data-loc":"client/src/pages/Receipt.tsx:54",variant:"outline",style:{borderColor:"#1B2A4A",color:"#1B2A4A"},children:"Back to My Bookings"})})]})});const{booking:N,driver:i,vehicle:r,loyalty:a}=h,s=N,o=parseFloat(s.price||"0"),b=parseFloat(s.distanceKm||"0"),u=parseFloat(s.durationMin||"0"),l=x[a.tierAtTime]||x.member;s.scheduledAt&&new Date(s.scheduledAt);const A=s.completedAt?new Date(s.completedAt):null,v=(s.stops?JSON.parse(s.stops):[]).map(t=>typeof t=="string"?t:t?.address||""),w=()=>window.print();return e.jsx(n,{"data-loc":"client/src/pages/Receipt.tsx:75",children:e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:76",className:"min-h-screen py-6 px-4 print:py-0 print:px-0",style:{backgroundColor:"#F8F7F4"},children:e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:77",className:"max-w-lg mx-auto",children:[e.jsx(d,{"data-loc":"client/src/pages/Receipt.tsx:79",href:"/my-bookings",children:e.jsxs("button",{"data-loc":"client/src/pages/Receipt.tsx:80",className:"flex items-center gap-1.5 text-sm mb-5 hover:opacity-80 transition print:hidden",style:{color:"#1B2A4A"},children:[e.jsx(Y,{"data-loc":"client/src/pages/Receipt.tsx:81",className:"h-4 w-4"}),"Back to My Bookings"]})}),e.jsxs(S,{"data-loc":"client/src/pages/Receipt.tsx:87",className:"overflow-hidden border-0 print:shadow-none",style:{boxShadow:"0 4px 24px rgba(27,42,74,0.12)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:90",className:"relative overflow-hidden",style:{backgroundColor:"#1B2A4A"},children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:92",className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(200,169,81,1) 20px, rgba(200,169,81,1) 21px)"}}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:96",className:"relative px-6 pt-6 pb-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:98",className:"flex items-center justify-between mb-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:99",className:"flex items-center gap-2.5",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:100",className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{backgroundColor:"rgba(200,169,81,0.15)",border:"1px solid rgba(200,169,81,0.3)"},children:e.jsx(I,{"data-loc":"client/src/pages/Receipt.tsx:101",className:"h-5 w-5",style:{color:"#C8A951"}})}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:103",children:[e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:104",className:"text-lg font-bold tracking-wide",style:{color:"#C8A951"},children:"DRIVE4U"}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:105",className:"text-[10px] tracking-[0.2em] uppercase",style:{color:"rgba(255,255,255,0.4)"},children:"Ride Services"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:108",className:"text-right",children:[e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:109",className:"text-[10px] tracking-widest uppercase",style:{color:"rgba(255,255,255,0.4)"},children:"Receipt"}),e.jsxs("p",{"data-loc":"client/src/pages/Receipt.tsx:110",className:"text-xs font-mono font-medium",style:{color:"rgba(255,255,255,0.6)"},children:["#",s.id]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:115",className:"h-px mb-5",style:{background:"linear-gradient(to right, transparent, rgba(200,169,81,0.4), transparent)"}}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:118",className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:119",children:[e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:120",className:"text-xs",style:{color:"rgba(255,255,255,0.5)"},children:"Prepared for"}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:121",className:"text-base font-semibold text-white",children:s.customerName||"Valued Customer"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:123",className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full",style:{backgroundColor:l.bg,border:`1px solid ${l.color}40`},children:[e.jsx(R,{"data-loc":"client/src/pages/Receipt.tsx:124",className:"h-3.5 w-3.5",
1style:{color:l.color}}),e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:125",className:"text-xs font-bold",style:{color:l.color},children:l.label})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:130",className:"text-center py-4 rounded-xl",style:{backgroundColor:"rgba(255,255,255,0.05)"},children:[e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:131",className:"text-xs uppercase tracking-widest mb-1",style:{color:"rgba(200,169,81,0.7)"},children:"Total Fare"}),e.jsxs("p",{"data-loc":"client/src/pages/Receipt.tsx:132",className:"text-4xl font-bold text-white tracking-tight",children:["$",o.toFixed(2)]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:133",className:"flex items-center justify-center gap-1.5 mt-2",children:[e.jsx(y,{"data-loc":"client/src/pages/Receipt.tsx:134",className:"h-3.5 w-3.5",style:{color:s.paymentStatus==="paid"?"#10B981":"#F59E0B"}}),e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:135",className:"text-xs font-medium",style:{color:s.paymentStatus==="paid"?"#10B981":"#F59E0B"},children:s.paymentStatus==="paid"?"Payment Confirmed":s.paymentStatus==="refunded"?"Refunded":"Payment Pending"})]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:144",className:"px-6 py-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:146",className:"flex items-center gap-3 mb-5 p-3 rounded-lg",style:{backgroundColor:"rgba(27,42,74,0.03)"},children:[e.jsx(G,{"data-loc":"client/src/pages/Receipt.tsx:147",className:"h-5 w-5 flex-shrink-0",style:{color:"#C8A951"}}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:148",children:[e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:149",className:"text-sm font-semibold",style:{color:"#1B2A4A"},children:s.scheduledAt?M(s.scheduledAt):""}),e.jsxs("p",{"data-loc":"client/src/pages/Receipt.tsx:152",className:"text-xs",style:{color:"#64748B"},children:[s.scheduledAt?j(s.scheduledAt):"",s.completedAt&&e.jsxs(e.Fragment,{children:[" â Completed ",j(new Date(s.completedAt).getTime())]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:162",className:"relative pl-8 mb-6",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:163",className:"absolute left-[13px] top-3 bottom-3 w-0.5",style:{background:"linear-gradient(to bottom, #10B981, #C8A951, #EF4444)"}}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:166",className:"relative mb-4",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:167",className:"absolute -left-8 top-0.5 w-6 h-6 rounded-full flex items-center justify-center shadow-sm",style:{backgroundColor:"#10B981"},children:e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:168",className:"w-2.5 h-2.5 rounded-full bg-white"})}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:170",className:"text-[10px] font-bold uppercase tracking-wider",style:{color:"#10B981"},children:"Pickup"}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:171",className:"text-sm font-semibold leading-snug",style:{color:"#1B2A4A"},children:s.pickupAddress})]}),v.filter(t=>t).map((t,c)=>e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:176",className:"relative mb-4",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:177",className:"absolute -left-8 top-0.5 w-6 h-6 rounded-full flex items-center justify-center shadow-sm",style:{backgroundColor:"#C8A951"},children:e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:178",className:"text-[10px] font-bold text-white",children:c+1})}),e.jsxs("p",{"data-loc":"client/src/pages/Receipt.tsx:180",className:"text-[10px] font-bold uppercase tracking-wider",style:{color:"#C8A951"},children:["Stop ",c+1]}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:181",className:"text-sm font-semibold leading-snug",style:{color:"#1B2A4A"},children:t})]},c)),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:186",className:"relative",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:187",className:"absolute -left-8 top-0.5 w-6 h-6 rounded-full flex items-center justify-center shadow-sm",style:{backgroundColor:"#EF4444"},children:e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:188",className:"w-2.5 h-2.5 rounded-full bg-white"})}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:190",className:"text-[10px] font-bold uppercase tracking-wider",style:{color:"#EF4444"},children:"Drop-off"}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:191",className:"text-sm font-semibold leading-snug",style:{color:"#1B2A4A"},children:s.dropoffAddress})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:196",className:"flex gap-2 mb-6 flex-wrap",children:[b>0&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:198",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg text-xs font-semibold",style:{backgroundColor:"rgba(27,42,74,0.05)",color:"#1B2A4A"},children:[e.jsx(P,{"data-loc":"client/src/pages/Receipt.tsx:199",className:"h-3.5 w-3.5",
1style:{color:"#C8A951"}}),b.toFixed(1)," km"]}),u>0&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:204",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg text-xs font-semibold",style:{backgroundColor:"rgba(27,42,74,0.05)",color:"#1B2A4A"},children:[e.jsx(E,{"data-loc":"client/src/pages/Receipt.tsx:205",className:"h-3.5 w-3.5",style:{color:"#C8A951"}}),Math.round(u)," min"]}),A&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:210",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg text-xs font-semibold",style:{backgroundColor:"rgba(16,185,129,0.08)",color:"#10B981"},children:[e.jsx(y,{"data-loc":"client/src/pages/Receipt.tsx:211",className:"h-3.5 w-3.5"}),"Completed"]})]}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:218",className:"h-px mb-6",style:{background:"linear-gradient(to right, transparent, rgba(200,169,81,0.3), transparent)"}}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:221",className:"mb-6",children:[e.jsxs("h3",{"data-loc":"client/src/pages/Receipt.tsx:222",className:"text-sm font-bold mb-4 flex items-center gap-2",style:{color:"#1B2A4A"},children:[e.jsx($,{"data-loc":"client/src/pages/Receipt.tsx:223",className:"h-4 w-4",style:{color:"#C8A951"}}),"Fare Breakdown"]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:226",className:"space-y-3 p-4 rounded-xl",style:{backgroundColor:"rgba(27,42,74,0.02)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:227",className:"flex justify-between text-sm",children:[e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:228",style:{color:"#64748B"},children:"Trip fare"}),e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:229",className:"font-semibold",style:{color:"#1B2A4A"},children:["$",(()=>{const t=parseFloat(s.waitTimeCharge||"0"),c=parseFloat(s.tollAmount||"0");return(o-t-c).toFixed(2)})()]})]}),parseFloat(s.waitTimeCharge||"0")>0&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:236",className:"flex justify-between text-sm",children:[e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:237",style:{color:"#64748B"},children:["Wait time (",s.waitTimeMinutes," min @ $1.25/min)"]}),e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:238",className:"font-medium",style:{color:"#F59E0B"},children:["+$",parseFloat(s.waitTimeCharge).toFixed(2)]})]}),parseFloat(s.tollAmount||"0")>0&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:242",className:"flex justify-between text-sm",children:[e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:243",style:{color:"#64748B"},children:"Tolls"}),e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:244",className:"font-medium",style:{color:"#3B82F6"},children:["+$",parseFloat(s.tollAmount).toFixed(2)]})]}),s.tollsIncluded&&!parseFloat(s.tollAmount||"0")&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:248",className:"flex justify-between text-sm",children:[e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:249",style:{color:"#64748B"},children:"Tolls"}),e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:250",className:"font-medium",style:{color:"#10B981"},children:"Included"})]}),s.parkingIncluded&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:254",className:"flex justify-between text-sm",children:[e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:255",style:{color:"#64748B"},children:"Parking"}),e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:256",className:"font-medium",style:{color:"#10B981"},children:"Included"})]}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:259",className:"h-px",style:{backgroundColor:"rgba(27,42,74,0.08)"}}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:260",className:"flex justify-between",children:[e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:261",className:"text-base font-bold",style:{color:"#1B2A4A"},children:"Total Charged"}),e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:262",className:"text-base font-bold",style:{color:"#1B2A4A"},children:["$",o.toFixed(2)]})]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:268",className:"h-px mb-6",style:{background:"linear-gradient(to right, transparent, rgba(200,169,81,0.3), transparent)"}}),a.creditEarned>0&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:272",className:"rounded-xl p-4 mb-6 relative overflow-hidden",style:{backgroundColor:"rgba(200,169,81,0.06)",border:"1px solid rgba(200,169,81,0.2)"},children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:273",className:"absolute top-0 right-0 w-20 h-20 opacity-5",style:{background:"radial-gradient(circle, #C8A951 0%, transparent 70%)"}}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:276",className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:277",className:"flex items-center gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:278",className:"w-8 h-8 rounded-full flex items-center justify-center",style:{backgroundColor:"rgba(200,169,81,0.15)"},children:e.jsx(R,{"data-loc":"client/src/pages/Receipt.tsx:279",className:"h-4 w-4",style:{color:"#C8A951"}})}),e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:281",className:"text-sm font-bold",style:{color:"#C8A951"},children:"Loyalty Credits Earned"})]}),e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:283",className:"text-xl font-bold",style:{color:"#C8A951"},children:["+$",a.creditEarned.toFixed(2)]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:285",className:"flex items-center justify-between text-xs",children:[e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:286",style:{color:"#64748B"},children:[l.label," rate: ",a.creditPercent,"% of fare"]}),e.jsxs("span",{"data-loc":"client/src/pages/Receipt.tsx:289",className:"font-semibold",style:{color:"#1B2A4A"},children:["Balance: $",a.currentBalance.toFixed(2)]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:297",className:"rounded-xl p-4 mb-6",style:{backgroundColor:"rgba(27,42,74,0.03)",border:"1px solid rgba(27,42,74,0.06)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:298",className:"flex items-center gap-2 mb-4",children:[e.jsx(O,{"data-loc":"client/src/pages/Receipt.tsx:299",className:"h-4 w-4",style:{color:"#C8A951"}}),e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:300",className:"text-sm font-bold",style:{color:"#1B2A4A"},children:"Your Membership Tier"})]}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:302",className:"flex items-center justify-between",children:Object.entries(x).map(([t,c])=>e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:304",className:"flex flex-col items-center gap-1.5",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:305",className:"w-10 h-10 rounded-full flex items-center justify-center text-xs font-bold transition-all",style:{backgroundColor:t===a.tierAtTime?c.color:"transparent",color:t===a.tierAtTime?"#fff":c.color,border:`2px solid ${t===a.tierAtTime?c.color:c.color+"40"}`,boxShadow:t===a.tierAtTime?`0 2px 8px ${c.color}40`:"none"},children:c.icon}),e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:316",className:"text-[10px] font-semibold",style:{color:t===a.tierAtTime?c.color:"#94A3B8"},children:c.label})]},t))})]}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:325",className:"h-px mb-6",style:{background:"linear-gradient(to right, transparent, rgba(200,169,81,0.3), transparent)"}}),(i||r)&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:329",className:"mb-6",children:[e.jsxs("h3",{"data-loc":"client/src/pages/Receipt.tsx:330",className:"text-sm font-bold mb-4 flex items-center gap-2",style:{color:"#1B2A4A"},children:[e.jsx(X,{"data-loc":"client/src/pages/Receipt.tsx:331",className:"h-4 w-4",style:{color:"#C8A951"}}),"Your Ride"]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:334",className:"flex items-center gap-4 p-4 rounded-xl",style:{backgroundColor:"rgba(27,42,74,0.03)"},children:[i&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:336",className:"flex items-center gap-3",children:[e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:337",className:"w-12 h-12 rounded-full flex items-center justify-center",style:{backgroundColor:"#1B2A4A",boxShadow:"0 2px 8px rgba(27,42,74,0.3)"},children:e.jsx("span",{"data-loc":"client/src/pages/Receipt.tsx:338",className:"text-sm font-bold",style:{color:"#C8A951"},children:i.name?.split(" ").map(t=>t[0]).join("").slice(0,2)})}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:342",children:[e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:343",className:"text-sm font-semibold",style:{color:"#1B2A4A"},children:i.name}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:344",className:"flex items-center gap-0.5 mt-0.5",children:[1,2,3,4,5].map(t=>e.jsx(D,{"data-loc":"client/src/pages/Receipt.tsx:346",className:"h-3 w-3 fill-current",style:{color:"#C8A951"}},t))})]})]}),r&&e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:353",className:"ml-auto text-right",children:[e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:354",className:"text-sm font-semibold",style:{color:"#1B2A4A"},children:r.name}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:355",className:"text-xs",style:{color:"#64748B"},children:r.type})]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:364",className:"px-6 py-5 print:hidden",style:{backgroundColor:"rgba(27,42,74,0.03)",borderTop:"1px solid rgba(27,42,74,0.06)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:365",className:"flex gap-3",children:[e.jsx(d,{"data-loc":"client/src/pages/Receipt.tsx:366",href:"/get-quote",className:"flex-1",children:e.jsx(p,{"data-loc":"client/src/pages/Receipt.tsx:367",className:"w-full font-bold text-sm h-11",style:{backgroundColor:"#C8A951",color:"#1B2A4A"},children:"Book Another Ride"})}),e.jsx(p,{"data-loc":"client/src/pages/Receipt.tsx:371",variant:"outline",onClick:w,className:"h-11 px-4",style:{borderColor:"#1B2A4A",color:"#1B2A4A"},children:e.jsx(V,{"data-loc":"client/src/pages/Receipt.tsx:372",className:"h-4 w-4"})})]}),a.currentBalance>0&&e.jsxs("p",{"data-loc":"client/src/pages/Receipt.tsx:376",className:"text-center text-xs mt-3 font-medium",style:{color:"#C8A951"},children:["You have $",a.currentBalance.toFixed(2)," in loyalty credits â apply them on your next ride!"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Receipt.tsx:383",className:"hidden print:block px-6 py-4 text-center",style:{borderTop:"1px solid rgba(27,42,74,0.1)"},children:[e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:384",className:"text-xs",style:{color:"#64748B"},children:"Drive4u â Your local ride service, Hawkesbury & Sydney"}),e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:387",className:"text-[10px] mt-1",style:{color:"#94A3B8"},children:"ABN: XX XXX XXX XXX | [email protected] | www.drive4u.com.au"})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Receipt.tsx:394",className:"text-center mt-5 mb-8",children:e.jsx("p",{"data-loc":"client/src/pages/Receipt.tsx:395",className:"text-xs",style:{color:"#94A3B8"}
1,children:"Thank you for choosing Drive4u. We look forward to your next journey."})}),e.jsx(L,{"data-loc":"client/src/pages/Receipt.tsx:399"})]})})})}export{ee 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.