1import{X as p,j as e,S as f,C as b,T as j,b as l}from"./app-CGhF_fXx.js";import{N as v}from"./navigation-D_RHTGpe.js";import{F as N}from"./footer-BLXRXnhK.js";import{M as y}from"./MobileBottomNav-aqpxlj-L.js";import{M as w}from"./message-circle-CN4DcRhW.js";import{R as k}from"./refresh-cw-C5jvI6vl.js";import{A as D}from"./arrow-left-B6wp4bPJ.js";/* empty css */import"./DesktopHeader-BYGV0o6g.js";import"./search-BhZB8chO.js";import"./chevron-down-BZRdctaQ.js";import"./calendar-BtVDzESv.js";import"./car-DrXxLB8g.js";import"./globe-Dl9eGUPO.js";import"./menu-DYbUPCR7.js";import"./LoginModal-BdUqetIH.js";import"./RegisterModal-8DLm_B2Q.js";import"./VerificationFlowModal-De-mVJIA.js";import"./index-BhxTRPgN.js";import"./confetti.module-ONDKWxYZ.js";import"./mail-qu0pK6uc.js";import"./smartphone-90oZ1zrL.js";import"./x-DcqdrZ-k.js";import"./layout-dashboard-D_h8M4NN.js";import"./list-g8TAfj1U.js";import"./users-BakQzh9G.js";import"./heart-BC1yYsKk.js";const ee=()=>{var s,a,n,i,o;const{rental:r,error:d,errorType:m}=p().props,c=()=>{r!=null&&r.hash_id&&l.visit(`/mieten/${r.hash_id}`)},h=()=>{l.visit("/search")},g=()=>{window.location.href="mailto:[email protected]"},t=(()=>{switch(m){case"payment_declined":return{title:"Zahlung abgelehnt",description:"Deine Zahlung wurde von deiner Bank oder dem Zahlungsanbieter abgelehnt.",suggestions:["Ãberprüfe deine Kartendaten und das Ablaufdatum","Stelle sicher, dass ausreichend Deckung vorhanden ist","Versuche eine andere Zahlungsmethode","Kontaktiere deine Bank für weitere Informationen"]};case"session_expired":return{title:"Sitzung abgelaufen",description:"Deine Zahlungssitzung ist abgelaufen. Dies kann passieren, wenn du zu lange auf der Zahlungsseite warst.",suggestions:["Starte den Zahlungsprozess erneut","Die Buchung ist noch verfügbar","Deine Daten wurden gespeichert"]};case"rental_unavailable":return{title:"Buchung nicht verfügbar",description:"Das Fahrzeug ist für den gewählten Zeitraum nicht mehr verfügbar.",suggestions:["Wähle einen anderen Zeitraum","Suche nach ähnlichen Fahrzeugen","Kontaktiere den Vermieter für alternative Termine"]};default:return{title:"Zahlung fehlgeschlagen",description:d||"Bei der Verarbeitung deiner Zahlung ist ein Fehler aufgetreten.",suggestions:["Versuche es erneut","Wähle eine andere Zahlungsmethode","Kontaktiere unseren Support, wenn das Problem weiterhin besteht"]}}})();return e.jsxs(e.Fragment,{children:[e.jsx(f,{children:e.jsx("title",{children:"Zahlung fehlgeschlagen - Drivable"})}),e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-red-50 to-orange-50",children:[e.jsx(v,{}),e.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-12",children:[e.jsxs("div",{className:"text-center mb-8 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-24 h-24 bg-gradient-to-br from-red-400 to-red-600 rounded-full mb-6 shadow-2xl",children:e.jsx(b,{size:56,className:"text-white",strokeWidth:2.5})}),e.jsx("h1",{className:"text-4xl font-pbold text-gray-900 mb-3",children:t.title}),e.jsx("p",{className:"text-lg font-pregular text-gray-600",children:t.description})]}),e.jsxs("div",{className:"bg-white rounded-2xl shadow-xl p-8 mb-6 border border-red-100 animate-in fade-in slide-in-from-bottom-4 duration-700 delay-150",children:[e.jsxs("div",{className:"flex items-start space-x-4 mb-6",children:[e.jsx(j,{size:24,className:"text-orange-500 flex-shrink-0 mt-1"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-psemibold text-gray-900 mb-2",children:"Was kannst du tun?"}),e.jsx("ul",{className:"space-y-2",children:t.suggestions.map((x,u)=>e.jsxs("li",{className:"flex items-start space-x-2",children:[e.jsx("span",{className:"text-orange-500 mt-1",children:"â¢"}),e.jsx("span",{className:"text-base font-pregular text-gray-700",children:x})]},u))})]})]}),r&&e.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-200",children:[e.jsx("h3",{className:"text-lg font-psemibold text-gray-900 mb-3",children:"Deine Auswahl"}),r.car&&e.jsxs("div",{className:"flex items-center space-x-4",children:[((s=r.car.images)==null?void 0:s[0])&&e.jsx("img",{src:`/storage/${r.car.images[0].image_path}`,alt:`${(a=r.car.brand)==null?void 0:a.name} ${(n=r.car.model)==null?void 0:n.name}`,className:"w-20 h-20 object-cover rounded-lg"}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-lg font-psemibold text-gray-900",children:[(i=r.car.brand)==null?void 0:i.name," ",(o=r.car.model)==null?void 0:o.name]}),e.jsxs("p",{className:"text-sm font-pregular text-gray-600",children:[new Date(r.start_date).toLocaleDateString("de-DE")," - ",new Date(r.end_date).toLocaleDateString("de-DE")]})]})]})]})]}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-2xl p-6 mb-6 animate-in fade-in slide-in-from-bottom-4 duration-700 delay-300",children:e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(w,{size:24,className:"text-blue-600 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-psemibold text-gray-900 mb-2",children:"Brauchst du Hilfe?"}),e.jsx("p",{className:"text-sm font-pregular text-gray-700 mb-3",children:"Unser Support-Team hilft dir gerne weiter und findet eine Lösung für dein Problem."}),e.jsx("button",{onClick:g,className:"text-sm font-pmedium text-blue-600 hover:text-blue-700 underline",children:"Support kontaktieren â"})]})]})}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 animate-in fade-in slide-in-from-bottom-4 duration-700 delay-500",children:[r&&e.jsxs("button",{onClick:c,className:"flex-1 bg-gradient-to-r from-orange-500 to-orange-600 text-white px-8 py-4 rounded-xl font-psemibold text-lg hover:from-orange-600 hover:to-orange-700 transition-all shadow-lg hover:shadow-xl flex items-center justify-center group",children:[e.jsx(k,{size:20,className:"mr-2 group-hover:rotate-180 transition-transform duration-500"}),"Erneut versuchen"]}),e.jsxs("button",{onClick:h,className:"flex-1 bg-white text-gray-700 px-8 py-4 rounded-xl font-psemibold text-lg border-2 border-gray-200 hover:border-gray-300 hover:bg-gray-50 transition-all flex items-center justify-center",children:[e.jsx(D,{size:20,className:"mr-2"}),"Zurück zur Suche"]})]}),e.jsx("div",{className:"mt-8 p-4 bg-gray-100 border border-gray-200 rounded-lg",children:e.jsxs("p",{className:"text-sm font-pregular text-gray-700 text-center",children:[e.jsx("span",{className:"font-psemibold",children:"Wichtig:"})," Es wurde kein Betrag von deinem Konto abgebucht. Deine Buchung ist noch nicht bestätigt."]})})]}),e.jsx(N,{})]}),e.jsx(y,{})]})};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.