1import{j as e,aP as T,v as F,X as W,r as o,I as N,B as C,L as S,a as I,C as O,F as U,g as D,q,s as G}from"./index-BcYWq-II.js";import{N as _}from"./Navbar-ePewGDTt.js";import{F as H}from"./Footer-dV0EzYzl.js";import{Z as z}from"./zap-MYW3g37_.js";import{B as K}from"./building-2-B67w6Lub.js";import{P as Z}from"./package-Lan6aLxi.js";import{M as $}from"./megaphone-CvO59QlA.js";import{W as X}from"./wrench-s5cb9y0j.js";import{A as J}from"./award-DYpNX2tD.js";import{P as Y}from"./piggy-bank-o0_TMwOy.js";import{T as Q}from"./trending-up-CSodi6gt.js";import{C as B}from"./card-BBxo5d5_.js";import{T as ee}from"./textarea-BfQq9HF8.js";import{o as te,s as b}from"./types-4og3oiYD.js";import{C as L}from"./circle-check-CBfUXDVv.js";import"./LocalizedLink-BzxrfGPs.js";import"./index-C8aZcCer.js";import"./index-CLT9ciec.js";import"./chevron-right-_Oxso_hI.js";import"./chevron-down-C_QgTvHB.js";import"./voozaa-logo-BaO2ywtw.js";import"./log-out-sJwEtoMT.js";const se=()=>e.jsx("section",{className:"pt-32 pb-16 bg-background",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Business Analyse"}),e.jsxs("h1",{className:"text-5xl md:text-7xl font-bold mb-6 tracking-tight",children:["Deine ",e.jsx("span",{className:"text-primary",children:"Analyse."})]}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed max-w-2xl mx-auto",children:"Gemeinsam analysieren wir heute, warum mobile Energie einer der spannendsten Zukunftsmärkte ist und wie unser Franchise-System funktioniert."})]})})}),ae=()=>e.jsx("section",{className:"py-16 bg-background",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-10",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"So funktioniert's"}),e.jsxs("h2",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["voozaa ",e.jsx("span",{className:"text-primary",children:"Powerbank to go."})]})]}),e.jsx("div",{className:"w-full max-w-3xl mx-auto",children:e.jsx("div",{className:"rounded-2xl overflow-hidden",children:e.jsx("div",{className:"aspect-video",children:e.jsx("iframe",{src:"https://www.youtube.com/embed/5AoWxirBrA0?rel=0&modestbranding=1&cc_load_policy=1&cc_lang_pref=de&hl=de",title:"voozaa Powerbank to go â So funktioniert's",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full rounded-xl"})})})})]})}),E=[{id:"side-hustle",name:"Side Hustle",tagline:"Der ideale Einstieg in dein eigenes Franchise.",slots12:6,slots24:0,slots32:0,powerbanks:72,towers:0,marketingValue:300,totalValue:10774,investment:8900,savings:1874,savingsPercent:17},{id:"business",name:"Business",tagline:"Skalieren mit System â mehr Standorte, mehr Umsatz.",highlight:"Beliebteste Wahl",slots12:18,slots24:2,slots32:0,powerbanks:264,towers:1,marketingValue:1e3,totalValue:33340,investment:24700,savings:8640,savingsPercent:25},{id:"empire",name:"Empire",tagline:"Maximales Potenzial für ambitionierte Unternehmer.",slots12:29,slots24:5,slots32:1,powerbanks:500,towers:5,marketingValue:2e3,totalValue:60715,investment:39700,savings:21015,savingsPercent:34}],w=t=>`${t.toLocaleString("de-DE")} â¬`,re=({set:t,index:r})=>{const s=[{count:t.slots12,label:"12-Slot Stationen",icon:z},{count:t.slots24,label:"24-Slot Stationen",icon:z},{count:t.slots32,label:"32-Slot Stationen",icon:z},{count:t.towers,label:"Tower",icon:K}].filter(n=>n.count>0);return e.jsx("div",{className:"py-20 border-t border-border first:border-t-0",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-3",children:["Paket ",r+1," von 3"]}),e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4 flex-wrap",children:[e.jsx("h3",{className:"text-5xl md:text-7xl font-bold tracking-tight",children:t.name}),t.highlight&&e.jsx(T,{className:"text-sm px-3 py-1",children:t.highlight})]}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:t.tagline})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-stretch",children:[e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-8",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-muted-foreground font-semibold mb-6",children:"Enthalten im Paket"}),e.jsxs("div",{className:"space-y-4",children:[s.map((n,l)=>e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(n.icon,{className:"w-6 h-6 text-primary",strokeWidth:2})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"text-2xl font-bold",children:[n.count,"Ã"]}),e.jsx("div",{className:"text-sm text-muted-foreground",children:n.label})]})]},l)),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(Z,{className:"w-6 h-6 text-primary",strokeWidth:2})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"text-2xl font-bold",children:[t.powerbanks,"Ã"]}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Powerbanks"})]})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx($,{className:"w-6 h-6 text-primary",strokeWidth:2})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-2xl font-bold",children:w(t.marketingValue)}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Marketing & Merch Wert"})]})]})]}),e.jsxs("div",{className:"border-t border-border mt-6 pt-6 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsx(F,{className:"w-4 h-4 text-primary shrink-0"}),e.jsx("span",{children:"Installation Gebühr inklusive"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsx(X,{className:"w-4 h-4 text-primary shrink-0"}),e.jsx("span",{children:"Franchise Gebühr inklusive"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsx(J,{className:"w-4 h-4 text-primary shrink-0"}),e.jsx("span",{children:"Marketing & Merch Paket"})]})]})]}),e.jsxs("div",{className:"rounded-2xl border border-primary/40 bg-gradient-to-br from-card to-background p-8 flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-6",children:"Investment"}),e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Regulärer Wert"}),e.jsx("div",{className:"text-2xl font-bold text-muted-foreground line-through",children:w(t.totalValue)})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Dein Preis"}),e.jsx("div",{className:"text-5xl md:text-6xl font-bold text-primary tracking-tight",children:w(t.investment)})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"rounded-xl bg-primary/10 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary mb-1",children:[e.jsx(Y,{className:"w-4 h-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider font-semibold",children:"Ersparnis"})]}),e.jsx("div",{className:"text-2xl font-bold",children:w(t.savings)})]}),e.jsxs("div",{className:"rounded-xl bg-primary/10 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary mb-1",children:[e.jsx(Q,{className:"w-4 h-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider font-semibold",children:"Rabatt"})]}),e.jsxs("div",{className:"text-2xl font-bold",children:[t.savingsPercent,"%"]})]})]})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-8 pt-6 border-t border-border",children:"One-Time Offer im Rahmen der Business Analyse. Nur 72 Stunden gültig."})]})]})]})})})},ne=()=>{const t=[{label:"12-Slot Stationen",values:["6Ã","18Ã","29Ã"]},{label:"24-Slot Stationen",values:["â","2Ã","5Ã"]},{label:"32-Slot Stationen",values:["â","â","1Ã"]},{label:"Powerbanks",values:["72Ã","264Ã","500Ã"]},{label:"Tower",values:["â","1Ã","5Ã"]},{label:"Marketing & Merch",values:["300 â¬","1.000 â¬","2.000 â¬"]},{label:"Installation Gebühr",values:["â","â","â"],icon:!0},{label:"Franchise Gebühr",values:["â","â","â"],icon:!0},{label:"Starter Set Wert",values:["10.774 â¬","33.340 â¬","60.715 â¬"]}],r=(s,n)=>n&&s==="â"?e.jsx(F,{className:"w-5 h-5 text-primary mx-auto"}
1):s==="â"?e.jsx(W,{className:"w-5 h-5 text-muted-foreground/50 mx-auto"}):e.jsx("span",{children:s});return e.jsx("section",{className:"py-24 bg-card border-t border-border",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Direkter Vergleich"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Alle Pakete im ",e.jsx("span",{className:"text-primary",children:"Ãberblick."})]}),e.jsx("p",{className:"text-muted-foreground mt-4",children:"Vergleiche jetzt alle drei Starter Sets im direkten Nebeneinander."})]}),e.jsx("div",{className:"max-w-5xl mx-auto overflow-x-auto",children:e.jsxs("table",{className:"w-full border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left p-4 border-b border-border"}),E.map(s=>e.jsxs("th",{className:"p-4 border-b border-border",children:[e.jsx("div",{className:"text-2xl font-bold",children:s.name}),s.highlight&&e.jsx(T,{className:"mt-2 text-xs",children:s.highlight})]},s.id))]})}),e.jsxs("tbody",{children:[t.map((s,n)=>e.jsxs("tr",{className:"border-b border-border/50",children:[e.jsx("td",{className:"p-4 text-sm text-muted-foreground",children:s.label}),s.values.map((l,u)=>e.jsx("td",{className:"p-4 text-center font-medium",children:r(l,s.icon)},u))]},n)),e.jsxs("tr",{className:"bg-primary/5",children:[e.jsx("td",{className:"p-4 text-sm font-semibold",children:"Investment"}),E.map(s=>e.jsxs("td",{className:"p-4 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary",children:w(s.investment)}),e.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["spare ",w(s.savings)]})]},s.id))]}),e.jsxs("tr",{children:[e.jsx("td",{className:"p-4 text-sm font-semibold",children:"Ersparnis"}),E.map(s=>e.jsx("td",{className:"p-4 text-center",children:e.jsxs(T,{variant:"outline",className:"text-primary border-primary",children:[s.savingsPercent,"%"]})},s.id))]})]})]})}),e.jsx("p",{className:"text-center text-xs text-muted-foreground mt-8 max-w-2xl mx-auto",children:"Alle Preise inkl. Installation und Franchise Gebühr. One-Time Offer im Rahmen der Business Analyse â nur 72 Stunden gültig."})]})})},ie=()=>e.jsxs("section",{className:"bg-background",children:[e.jsx("div",{className:"container mx-auto px-6 pt-24 pb-8",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Starter Sets"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Wähle dein ",e.jsx("span",{className:"text-primary",children:"voozaa Paket."})]}),e.jsx("p",{className:"text-lg text-muted-foreground mt-6",children:"Drei durchdachte Starter Sets â für jeden Ambitionsgrad das passende Setup. Wir gehen jetzt jedes Paket einzeln durch."})]})}),E.map((t,r)=>e.jsx(re,{set:t,index:r},t.id)),e.jsx(ne,{})]}),le=()=>{const[t,r]=o.useState(1200);return o.useEffect(()=>{const s=document.createElement("script");s.src="https://app.calculatorstudio.co/static/embed/v1/script.js",s.type="text/javascript",s.async=!0,document.body.appendChild(s);const n=l=>{var u,c;((u=l.data)==null?void 0:u.type)==="resize"&&((c=l.data)!=null&&c.height)&&r(l.data.height)};return window.addEventListener("message",n),()=>{document.body.removeChild(s),window.removeEventListener("message",n)}},[]),e.jsx("section",{className:"py-32 bg-background",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Business Calculator"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Dein ",e.jsx("span",{className:"text-primary",children:"Business Case."})]})]}),e.jsx("div",{className:"w-full max-w-5xl mx-auto",children:e.jsx("iframe",{src:"https://app.calculatorstudio.co/embed/voozaa-investment-kalkulator-de-2wMR0:gXTPOMHF4f0ntt4g?width=full&scale_to_fit=true",title:"voozaa Investment Kalkulator","data-document-id":"db0311d3-e817-4cf3-8c1c-5e1fd27b6de2",width:"100%",height:t,style:{border:0}
1,referrerPolicy:"strict-origin-when-cross-origin",className:"w-full rounded-lg bg-card"})})]})})},R=[{id:"side-hustle",name:"Side Hustle",tagline:"Der ideale Einstieg."},{id:"business",name:"Business",tagline:"Skalieren mit System.",highlighted:!0},{id:"empire",name:"Empire",tagline:"Maximales Potenzial."},{id:"custom",name:"Individuelles Angebot",tagline:"MaÃgeschneidert auf dich."}],ce={firstName:"",lastName:"",company:"",email:"",phone:"",address:"",country:"",packageId:"",stationCount:"",comment:""},M={filename:"voozaa-franchisevertrag.pdf",version:"v1-mvp"};function de(t){return R.find(r=>r.id===t)??null}const oe=({selected:t,onSelect:r})=>e.jsx("section",{className:"py-32 bg-card",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Paketwahl"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Wähle dein ",e.jsx("span",{className:"text-primary",children:"Level."})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:R.map(s=>{const n=t===s.id;return e.jsx("button",{type:"button",onClick:()=>r(s.id),className:"text-left",children:e.jsxs(B,{className:`relative h-full p-8 transition-all duration-300 cursor-pointer ${n?"border-primary border-2 shadow-lg":"border-border hover:border-primary/40"}`,children:[n&&e.jsx("div",{className:"absolute top-4 right-4 w-7 h-7 rounded-full bg-primary flex items-center justify-center",children:e.jsx(F,{className:"w-4 h-4 text-primary-foreground",strokeWidth:3})}),e.jsx("h3",{className:"text-2xl font-bold mb-2",children:s.name}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.tagline})]})},s.id)})})]})}),me=te({firstName:b().trim().min(1,"Pflichtfeld").max(80),lastName:b().trim().min(1,"Pflichtfeld").max(80),company:b().trim().max(120).optional().default(""),email:b().trim().email("Ungültige E-Mail").max(255),phone:b().trim().min(4,"Pflichtfeld").max(40),address:b().trim().min(1,"Pflichtfeld").max(255),country:b().trim().min(1,"Pflichtfeld").max(80),packageId:b().min(1,"Bitte Paket wählen"),stationCount:b().trim().min(1,"Pflichtfeld").max(10),comment:b().trim().max(2e3).optional().default("")}),xe=({data:t,selectedPackage:r,onChange:s,onSubmit:n})=>{const[l,u]=o.useState(!1),c=(a,g)=>s({...t,[a]:g}),v=a=>{var y;a.preventDefault();const g={...t,packageId:r||t.packageId},h=me.safeParse(g);if(!h.success){const i=(y=Object.values(h.error.flatten().fieldErrors)[0])==null?void 0:y[0];I.error(i??"Bitte alle Pflichtfelder ausfüllen.");return}u(!0),s(g),n(),u(!1)};return e.jsx("section",{className:"py-32 bg-background",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Kundendaten"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Deine ",e.jsx("span",{className:"text-primary",children:"Daten."})]})]}),e.jsxs("form",{onSubmit:v,className:"max-w-3xl mx-auto space-y-6 p-10 rounded-2xl bg-card border border-border",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx(f,{label:"Vorname *",id:"firstName",children:e.jsx(N,{id:"firstName",value:t.firstName,onChange:a=>c("firstName",a.target.value),required:!0,maxLength:80})}),e.jsx(f,{label:"Nachname *",id:"lastName",children:e.jsx(N,{id:"lastName",value:t.lastName,onChange:a=>c("lastName",a.target.value),required:!0,maxLength:80})}),e.jsx(f,{label:"Firma",id:"company",children:e.jsx(N,{id:"company",value:t.company,onChange:a=>c("company",a.target.value),maxLength:120})}),e.jsx(f,{label:"E-Mail *",id:"email",children:e.jsx(N,{id:"email",type:"email",value:t.email,onChange:a=>c("email",a.target.value),required:!0,maxLength:255})}),e.jsx(f,{label:"Telefon *",id:"phone",children:e.jsx(N,{id:"phone",type:"tel",value:t.phone,onChange:a=>c("phone",a.target.value),required:!0,maxLength:40})}),e.jsx(f,{label:"Land *",id:"country",children:e.jsx(N,{id:"country",value:t.country,onChange:a=>c("country",a.target.value),required:!0,maxLength:80})}),e.jsx("div",{className:"md:col-span-2",children:e.jsx(f,{label:"Adresse *",id:"address",children:e.jsx(N,{id:"address",value:t.address,onChange:a=>c("address",a.target.value),required:!0,maxLength:255})})}),e.jsx(f,{label:"Gewähltes Paket *",id:"packageId",children:e.jsxs("select",{id:"packageId",value:r||t.packageId,onChange:a=>c("packageId",a.target.value),required:!0,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[e.jsx("option",{value:"",children:"Bitte wählen"}),R.map(a=>e.jsx("option",{value:a.id,children:a.name},a.id))]})}),e.jsx(f,{label:"Anzahl Stationen *",id:"stationCount",children:e.jsx(N,{id:"stationCount",type:"number",min:1,value:t.stationCount,onChange:a=>c("stationCount",a.target.value),required:!0})}),e.jsx("div",{className:"md:col-span-2",children:e.jsx(f,{label:"Kommentar / Sondervereinbarung",id:"comment",children:e.jsx(ee,{id:"comment",rows:4,value:t.comment,onChange:a=>c("comment",a.target.value),maxLength:2e3})})})]}),e.jsx("div",{className:"pt-4",children:e.jsx(C,{type:"submit",size:"lg",disabled:l,className:"w-full md:w-auto h-14 px-10 text-base",children:"Angebot zusammenstellen"})})]})]})})},f=({label:t,id:r,children:s})=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:r,className:"text-sm font-medium",children:t}),s]}),j=({label:t,value:r})=>e.jsxs("div",{className:"flex justify-between gap-6 py-3 border-b border-border/60 last:border-0",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:t}),e.jsx("span",{className:"text-sm font-medium text-foreground text-right",children:r||"â"})]}),ue=({customer:t,pkg:r,validityHours:s,onConfirm:n,confirmed:l})=>e.jsx("section",{className:"py-32 bg-card",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Angebotsübersicht"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Dein ",e.jsx("span",{className:"text-primary",children:"Angebot."})]})]}),e.jsx("div",{className:"max-w-3xl mx-auto",children:e.jsxs(B,{className:"p-8 md:p-10 bg-background border-border",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6 text-primary",children:[e.jsx(O,{className:"w-5 h-5"}),e.jsxs("span",{className:"text-sm font-semibold uppercase tracking-wider",children:[s,"h Gültigkeit · One-Time Offer"]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(j,{label:"Name",value:`${t.firstName} ${t.lastName}`.trim()}),e.jsx(j,{label:"Firma",value:t.company}),e.jsx(j,{label:"E-Mail",value:t.email}),e.jsx(j,{label:"Telefon",value:t.phone}),e.jsx(j,{label:"Adresse",value:t.address}),e.jsx(j,{label:"Land",value:t.country}),e.jsx(j,{label:"Paket",value:r==null?void 0:r.name}),e.jsx(j,{label:"Anzahl Stationen",value:t.stationCount}),t.comment&&e.jsx(j,{label:"Sondervereinbarung",value:t.comment})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-6",children:["Dieses Angebot ist ausschlieÃlich im Rahmen der Business Analyse verfügbar und maximal ",s," Stunden gültig."]}),e.jsx("div",{className:"mt-8",children:e.jsx(C,{size:"lg",onClick:n,disabled:l,className:"w-full h-14 text-base font-bold",children:l?e.jsxs(e.Fragment,{children:[e.jsx(L,{className:"w-5 h-5 mr-2"}),"Angebot bestätigt"]}):"Angebot bestätigen"})})]})})]})}),he=({pdfUrl:t})=>e.jsx("section",{className:"py-32 bg-card",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Vertrag"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:[e.jsx("span",{className:"text-primary",children:"Franchise"}),"vertrag."]})]}),e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"aspect-[4/5] md:aspect-[16/10] rounded-2xl overflow-hidden border border-border bg-background",children:t?e.jsx("iframe",{src:t,title:"Franchisevertrag",className:"w-full h-full"}):e.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center text-muted-foreground",children:[e.jsx(U,{className:"w-16 h-16 mb-4 text-primary",strokeWidth:1.5}),e.jsx("p",{className:"text-lg font-medium",children:"PDF Viewer"}),e.jsx("p",{className:"text-sm",children:"Vertrag wird hier eingebunden"})]})}),e.jsx("div",{className:"mt-10 text-center",children:e.jsx(C,{size:"lg",className:"px-10 h-14 text-base",children:"Vertrag prüfen"})})]})]})}
1),ge=({onChange:t,disabled:r})=>{const s=o.useRef(null),n=o.useRef(!1),l=o.useRef(!1),[u,c]=o.useState(!0);o.useEffect(()=>{const i=s.current;if(!i)return;const x=window.devicePixelRatio||1,d=i.getBoundingClientRect();i.width=d.width*x,i.height=d.height*x;const m=i.getContext("2d");m&&(m.scale(x,x),m.lineWidth=2.2,m.lineCap="round",m.lineJoin="round",m.strokeStyle="#000000")},[]);const v=i=>{const d=s.current.getBoundingClientRect();return{x:i.clientX-d.left,y:i.clientY-d.top}},a=i=>{var k,P;if(r)return;i.preventDefault(),n.current=!0;const{x,y:d}=v(i),m=s.current.getContext("2d");m.beginPath(),m.moveTo(x,d),(P=(k=i.target).setPointerCapture)==null||P.call(k,i.pointerId)},g=i=>{if(!n.current||r)return;i.preventDefault();const{x,y:d}=v(i),m=s.current.getContext("2d");m.lineTo(x,d),m.stroke(),l.current=!0,u&&c(!1)},h=()=>{n.current&&(n.current=!1,l.current&&s.current&&t(s.current.toDataURL("image/png")))},y=()=>{const i=s.current;if(!i)return;i.getContext("2d").clearRect(0,0,i.width,i.height),l.current=!1,c(!0),t(null)};return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"relative rounded-xl border-2 border-dashed border-border bg-background overflow-hidden",children:[e.jsx("canvas",{ref:s,onPointerDown:a,onPointerMove:g,onPointerUp:h,onPointerLeave:h,onPointerCancel:h,className:"block w-full h-48 touch-none cursor-crosshair","aria-label":"Signaturfeld"}),u&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center text-sm text-muted-foreground",children:"Hier unterschreiben"})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(C,{type:"button",variant:"ghost",size:"sm",onClick:y,disabled:r,children:"Zurücksetzen"})})]})},pe=({customer:t,pkg:r,enabled:s,onSigned:n})=>{const[l,u]=o.useState(""),[c,v]=o.useState(!1),[a,g]=o.useState(!1),[h,y]=o.useState(null),[i,x]=o.useState(!1),[d,m]=o.useState(null),k=s&&r&&c&&a&&l.trim().length>=2&&h,P=async()=>{if(!k||!r){I.error("Bitte alle Schritte vor der Signatur abschlieÃen.");return}x(!0);try{const{data:p,error:A}=await G.functions.invoke("submit-signed-contract",{body:{customer:{firstName:t.firstName,lastName:t.lastName,company:t.company,email:t.email,phone:t.phone,address:t.address,country:t.country},offer:{packageId:r.id,packageName:r.name,stationCount:Number(t.stationCount)||0,comment:t.comment,validityHours:72},signature:{typedName:l.trim(),imageDataUrl:h,readAcknowledged:c,esignConsent:a,contractVersion:M.version,contractFilename:M.filename}}});if(A)throw A;const V=p;m(V),n(V),I.success("Vertrag erfolgreich unterschrieben.")}catch(p){const A=p instanceof Error?p.message:"Signatur fehlgeschlagen.";I.error(A)}finally{x(!1)}};return e.jsx("section",{className:"py-32 bg-background",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[e.jsx("p",{className:"text-sm uppercase tracking-widest text-primary font-semibold mb-4",children:"Signatur"}),e.jsxs("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Jetzt digital ",e.jsx("span",{className:"text-primary",children:"unterschreiben."})]})]}),e.jsx(B,{className:"max-w-3xl mx-auto p-8 md:p-10 bg-card border-border",children:d?e.jsxs("div",{className:"text-center py-8",children:[e.jsx(L,{className:"w-16 h-16 text-primary mx-auto mb-4"}),e.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Vertrag rechtsverbindlich unterschrieben"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Signatur-ID: ",d.signatureUid]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Signiert am: ",new Date(d.signedAt).toLocaleString("de-DE")]})]}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("fieldset",{disabled:!s,className:"space-y-6 disabled:opacity-60",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(D,{id:"readAck",checked:c,onCheckedChange:p=>v(p===!0)}),e.jsx(S,{htmlFor:"readAck",className:"text-sm leading-relaxed cursor-pointer",children:"Ich habe den Vertrag gelesen und akzeptiere die Bedingungen."})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(D,{id:"esignAck",checked:a,onCheckedChange:p=>g(p===!0)}),e.jsx(S,{htmlFor:"esignAck",className:"text-sm leading-relaxed cursor-pointer",children:"Ich stimme der elektronischen Signatur zu."})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"typedName",children:"Vollständiger Name *"}
1),e.jsx(N,{id:"typedName",value:l,onChange:p=>u(p.target.value),placeholder:"Vor- und Nachname",maxLength:120})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{children:"Unterschrift *"}),e.jsx(ge,{onChange:y,disabled:!s})]})]}),e.jsx(C,{size:"lg",onClick:P,disabled:!k||i,className:"w-full h-14 text-base font-bold",children:i?e.jsxs(e.Fragment,{children:[e.jsx(q,{className:"w-5 h-5 mr-2 animate-spin"}),"Wird verarbeitetâ¦"]}):"Vertrag jetzt verbindlich unterschreiben"}),!s&&e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Bitte zuerst das Angebot bestätigen."})]})})]})})},Le=()=>{const[t,r]=o.useState(""),[s,n]=o.useState(ce),[l,u]=o.useState(!1),[c,v]=o.useState(null),a=o.useRef(null),g=o.useRef(null),h=o.useMemo(()=>de(s.packageId||t),[s.packageId,t]),y=s.firstName!==""&&s.lastName!==""&&s.email!=="";o.useEffect(()=>{document.title="Business Analyse | voozaa"},[]);const i=()=>{setTimeout(()=>{var d;return(d=a.current)==null?void 0:d.scrollIntoView({behavior:"smooth"})},50)},x=()=>{u(!0),setTimeout(()=>{var d;return(d=g.current)==null?void 0:d.scrollIntoView({behavior:"smooth"})},50)};return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx(_,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx(se,{}),e.jsx(ae,{}),e.jsx(le,{}),e.jsx(ie,{}),e.jsx(he,{}),e.jsx(oe,{selected:s.packageId||t,onSelect:d=>{r(d),n(m=>({...m,packageId:d}))}}
1),e.jsx(xe,{data:s,selectedPackage:s.packageId||t,onChange:n,onSubmit:i}),y&&e.jsx("div",{ref:a,children:e.jsx(ue,{customer:s,pkg:h,validityHours:72,onConfirm:x,confirmed:l})}),l&&e.jsx("div",{ref:g,children:e.jsx(pe,{customer:s,pkg:h,enabled:l&&!c,onSigned:v})})]}),e.jsx(H,{})]})};export{Le 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.