1import{r as u,j as e}from"./framer-motion-CQxuJa5n.js";import{b as f,u as b,B as s,E as v,I as y,p as w,C as t,i as a,U as k,Z as S,M as g,P as A,s as p}from"./index-CSx7K-7R.js";import{B as l}from"./badge-Yar_qzGV.js";import{W as T}from"./wand-sparkles-D3ewtxXC.js";import{P as m}from"./phone-DfeYL_-y.js";import{G as I}from"./globe-B3q7zUSQ.js";import{S as C}from"./settings-ClDRCqQC.js";import{F as V}from"./file-text-CQNieni0.js";import{C as D}from"./circle-check-B_lwCfqV.js";import{M as G}from"./message-square-CQ8acRkB.js";import"./recharts-CFjfazL9.js";function H(){const[n,d]=u.useState(""),[c,x]=u.useState(!1),{toast:i}=f(),o=b(),j=async()=>{if(!n){i({title:"Mangler URL",description:"Indtast venligst en URL",variant:"destructive"});return}x(!0);try{const{data:{session:r}}=await p.auth.getSession();if(!r){i({title:"Log ind først",description:"Du skal være logget ind for at oprette en agent",variant:"destructive"});return}const{data:N,error:h}=await p.functions.invoke("create-voice-agent",{body:{url:n,name:n.replace(/^https?:\/\//,"").split("/")[0],rules:["Svar kun pÃ¥ dansk","Vær professionel og hjælpsom"],voice:"alloy"}});if(h)throw h;i({title:"⨠Agent genereret!",description:`Din AI Voice Agent "${N.agent.name}" er klar til brug`}),d(""),setTimeout(()=>{o("/voice-dashboard")},1500)}catch(r){console.error("Error creating agent:",r),i({title:"Fejl",description:r.message||"Kunne ikke oprette agent",variant:"destructive"})}finally{x(!1)}};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("header",{className:"border-b",children:e.jsxs("div",{className:"container mx-auto px-4 py-4 max-w-7xl flex justify-between items-center",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Voice Agent Platform"}),e.jsx(s,{onClick:()=>o("/voice-dashboard"),variant:"outline",children:"Se Mine Agents"})]})}),e.jsx("section",{className:"relative py-20 px-4 bg-gradient-to-br from-background via-background to-primary/5",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsxs(l,{className:"mb-4 bg-primary/10 text-primary border-primary/20",children:[e.jsx(v,{className:"w-3 h-3 mr-1"}),"AI Voice Agent"]}),e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:["Din AI Stemme Agent",e.jsx("span",{className:"block text-primary mt-2",children:"PÃ¥ 60 Sekunder"})]}),e.jsx("p",{className:"text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Indtast dit website, sÃ¥ bygger AI din kundeservice telefon-agent automatisk"}),e.jsxs("div",{className:"max-w-2xl mx-auto mb-8",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(y,{type:"url",placeholder:"https://dinvirksomhed.dk",value:n,onChange:r=>d(r.target.value),className:"flex-1 text-lg h-14",disabled:c}),e.jsx(s,{onClick:j,disabled:c||!n,size:"lg",className:"h-14 px-8 text-lg",children:c?e.jsxs(e.Fragment,{children:[e.jsx(w,{className:"w-5 h-5 mr-2 animate-spin"}),"Genererer..."]}):e.jsxs(e.Fragment,{children:[e.jsx(T,{className:"w-5 h-5 mr-2"}),"Generer Agent"]})})]}),e.jsx(t,{className:"mt-8 text-left",children:e.jsx(a,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(m,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Tilslut dit Twilio telefonnummer"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Efter du har oprettet din voice agent, skal du konfigurere dit Twilio nummer:"}),e.jsxs("ol",{className:"text-sm space-y-2 text-muted-foreground",children:[e.jsxs("li",{children:["1. GÃ¥ til din ",e.jsx("a",{href:"https://console.twilio.com/us1/develop/phone-numbers/manage/incoming",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Twilio Console"})]}),e.jsx("li",{children:"2. Vælg dit telefonnummer"}),e.jsx("li",{children:'3. Under "Voice Configuration" â "A CALL COMES IN":'}),e.jsx("li",{className:"ml-4",children:'⢠Vælg "Webhook"'}),e.jsxs("li",{className:"ml-4",children:["⢠URL: ",e.jsx("code",{className:"bg-muted px-2 py-1 rounded text-xs break-all",children:"https://xbitvqjemkuyujtixumm.supabase.co/functions/v1/twilio-voice?agentId=DIN_AGENT_ID"})]}),e.jsx("li",{className:"ml-4",children:"⢠Metode: HTTP POST"}),e.jsx("li",{children:"4. Gem ændringerne"})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-4 bg-primary/5 p-3 rounded",children:["ð¡ ",e.jsx("strong",{children:"Tip:"}),` Agent ID'et fÃ¥r du efter du har oprettet din agent. Byt "DIN_AGENT_ID" ud med det rigtige ID.`]})]})]})})})]})]})}),e.jsx("section",{className:"py-24 border-b",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[e.jsx("h2",{className:"text-5xl font-bold text-center mb-4",children:"SÃ¥dan virker det"}),e.jsx("p",{className:"text-center text-muted-foreground text-xl mb-16",children:"3 simple trin"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.jsx(t,{className:"border-2",children:e.jsxs(a,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(I,{className:"w-8 h-8"})}),e.jsx("h3",{className:"text-2xl font-bold mb-4",children:"1. Indsæt URL"}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Vi scraper hele websitet (priser, Ã¥bningstider, FAQ, alt)."})]})}),e.jsx(t,{className:"border-2",children:e.jsxs(a,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(C,{className:"w-8 h-8"})}),e.jsx("h3",{className:"text-2xl font-bold mb-4",children:"2. Tilføj regler"}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Svar kun pÃ¥ dansk. Snak professionelt. Styr stemme og tone."})]})}),e.jsx(t,{className:"border-2",children:e.jsxs(a,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(m,{className:"w-8 h-8"})}),e.jsx("h3",{className:"text-2xl font-bold mb-4",children:"3. Tilknyt nummer"}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Vi genererer et nummer til dig â eller du bruger dit eget. Agenten er live."})]})})]})]})}),e.jsx("section",{className:"py-24 border-b",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[e.jsx("h2",{className:"text-5xl font-bold mb-6",children:"Vi bygger automatisk din kundedatabase"}),e.jsxs("p",{className:"text-muted-foreground text-xl mb-12 max-w-2xl mx-auto leading-relaxed",children:["Hver samtale â gemt i dashboard",e.jsx("br",{}),"Kontaktinfo â auto-detected",e.jsx("br",{}),"Konklusioner â opsummeret",e.jsx("br",{}),"Regler â justér live"]}),e.jsxs("div",{className:"grid md:grid-cols-4 gap-6 mt-12",children:[e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx(k,{className:"w-12 h-12 text-primary"}),e.jsx("p",{className:"font-medium",children:"Auto-database"})]}),e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx(V,{className:"w-12 h-12 text-primary"}),e.jsx("p",{className:"font-medium",children:"Samtale-logs"})]}),e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx(S,{className:"w-12 h-12 text-primary"}),e.jsx("p",{className:"font-medium",children:"Live-justering"})]}),e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx(D,{className:"w-12 h-12 text-primary"}),e.jsx("p",{className:"font-medium",children:"Opsummering"})]})]})]})}),e.jsx("section",{className:"py-24 border-b",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[e.jsx("h2",{className:"text-5xl font-bold mb-6",children:"Sig til den, hvordan den skal være"}),e.jsx("p",{className:"text-muted-foreground text-xl mb-12",children:"â pÃ¥ dansk"}),e.jsxs("div",{className:"flex flex-wrap gap-4 justify-center",children:[e.jsx(l,{variant:"secondary",className:"text-base py-3 px-6",children:"ð©ð° Svar kun pÃ¥ dansk"}),e.jsx(l,{variant:"secondary",className:"text-base py-3 px-6",children:"ð Vær rolig og hjælpsom"}),e.jsx(l,{variant:"secondary",className:"text-base py-3 px-6",children:"ð Følg Ã¥bningstiden fra websitet"}),e.jsx(l,{variant:"secondary",className:"text-base py-3 px-6",children:"ð
Book kun tider via denne URL"}),e.jsx(l,{variant:"secondary",className:"text-base py-3 px-6",children:"ð¤ Spørg om navn og telefonnummer"})]})]})}),e.jsx("section",{className:"py-24 border-b",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[e.jsx("h2",{className:"text-5xl font-bold mb-12",children:"Test agenten nu"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs(s,{size:"lg",variant:"outline",className:"h-24 text-lg flex flex-col gap-2",children:[e.jsx(g,{className:"w-8 h-8"}),"Hør stemmen"]}),e.jsxs(s,{size:"lg",variant:"outline",className:"h-24 text-lg flex flex-col gap-2",children:[e.jsx(m,{className:"w-8 h-8"}),"Test opkald"]}),e.jsxs(s,{size:"lg",variant:"outline",className:"h-24 text-lg flex flex-col gap-2",children:[e.jsx(G,{className:"w-8 h-8"}),"Test chat"]})]})]})}),e.jsx("section",{className:"py-24 border-b",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[e.jsx("h2",{className:"text-5xl font-bold mb-12",children:"Vælg en stemme â eller lav din egen"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsx(t,{className:"cursor-pointer hover:border-primary transition-colors",children:e.jsxs(a,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:"ð©"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Clara"}),e.jsx("p",{className:"text-muted-foreground",children:"Dansk kvinde"})]})}),e.jsx(t,{className:"cursor-pointer hover:border-primary transition-colors",children:e.jsxs(a,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:"ð¨"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Mikkel"}),e.jsx("p",{className:"text-muted-foreground",children:"Dansk mand"})]})}),e.jsx(t,{className:"cursor-pointer hover:border-primary transition-colors",children:e.jsxs(a,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(g,{className:"w-8 h-8"})}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Din egen"}),e.jsx("p",{className:"text-muted-foreground",children:"Upload stemme"})]})})]})]})}),e.jsx("section",{className:"py-24 border-b",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[e.jsx("h2",{className:"text-5xl font-bold mb-12",children:"Ãt klik â dit nummer er live"}),e.jsxs("div",{className:"space-y-4 max-w-md mx-auto",children:[e.jsx(s,{size:"lg",variant:"outline",className:"w-full h-16 text-lg",children:"FÃ¥ et nyt nummer fra os"}),e.jsx(s,{size:"lg",variant:"outline",className:"w-full h-16 text-lg",children:"Portér dit nummer over"}),e.jsx(s,{size:"lg",variant:"outline",className:"w-full h-16 text-lg",children:"Forward eksisterende nummer"})]})]})}),e.jsx("section",{className:"py-24",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-2xl text-center",children:[e.jsx("h2",{className:"text-5xl font-bold mb-8",children:"Prøv det selv"}),e.jsx("p",{className:"text-muted-foreground text-xl mb-12",children:"Ring og oplev hvor smooth det er"}),e.jsxs(s,{size:"lg",className:"h-16 text-xl px-12",children:[e.jsx(A,{className:"w-6 h-6 mr-3"}),"Ring og prøv agenten"]})]})}),e.jsx("section",{className:"py-24 bg-muted/50",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[e.jsxs("h2",{className:"text-4xl font-bold mb-4",children:["Indsæt din URL. Vælg stemme.",e.jsx("br",{}),"Tilføj regler. Tilknyt nummer.",e.jsx("br",{}),"Færdig."]}),e.jsx("p",{className:"text-muted-foreground text-xl mb-8",children:"Det er den magi vi sælger."}),e.jsx(s,{size:"lg",className:"h-14 text-lg px-8",children:"Kom i gang gratis"})]})})]})}export{H 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.