1import{r as u,j as e}from"./vendor-react-R5BkkrFZ.js";import{L as h}from"./vendor-router-CgSJtm-X.js";import{supabase as i}from"./client-CecpOyqn.js";import{L as S}from"./Layout-CEjWkSUf.js";import{S as C}from"./SeoHead-DGCzztau.js";import{B as g}from"./Logo-DYNgcaqb.js";import{C as x,a as p}from"./card-O7Mqg9Eh.js";import{B as n}from"./badge-CYvZnSCO.js";import{G as P}from"./GeneratedAudioPlayer-D_CBqahI.js";import{G as L}from"./GeneratedVideoPlayer-zmWCcFZE.js";import{E as V,R as G}from"./ResellerMath-D95U9DYc.js";import{f,I as q,q as B,al as E,V as R,_ as $,j as D}from"./vendor-ui-Cx5fBjSp.js";import"./vendor-supabase-CQ9eTX7v.js";import"./index-CFswJBa3.js";import"./vendor-query-Cdexl548.js";import"./refresh-signed-url-D9HPsDX8.js";import"./index-BdQq_4o_.js";import"./index-C7WTXdhD.js";import"./index-BZiFFHQO.js";import"./index-Ba6srWwX.js";const z=[{label:"Try free",price:"$0",desc:"1 free demo song per email â no card needed."},{label:"1 Song",price:"$10",desc:"Single song â perfect for a one-off."},{label:"5 Songs",price:"$40",desc:"$8.00/song · 20% off single price.",best:!1},{label:"15 Songs",price:"$100",desc:"$6.67/song · best value pack.",best:!0},{label:"Songs Pro",price:"$50/mo",desc:"10 songs/month · unused credits roll over."}];function oe(){const[y,j]=u.useState([]),[b,w]=u.useState([]),[N,_]=u.useState(!0);u.useEffect(()=>{(async()=>{const[s,a]=await Promise.all([i.from("ai_generations").select("id, output_url, prompt, public_demo_label, input_meta, created_at, play_count").eq("is_public_demo",!0).eq("modality","audio").not("output_url","is",null).order("created_at",{ascending:!1}),i.from("ai_generations").select("id, output_url, prompt, public_demo_label, input_meta, play_count").eq("featured_on_songs",!0).eq("modality","video").eq("status","completed").not("output_url","is",null).order("created_at",{ascending:!1})]),t=(s.data??[]).filter(r=>typeof r.output_url=="string"&&r.output_url.trim().length>0),l=(a.data??[]).filter(r=>typeof r.output_url=="string"&&r.output_url.trim().length>0),o=async r=>{try{const{data:d}=await i.functions.invoke("public-demo-url",{body:{id:r.id}});if(d!=null&&d.url)return{...r,output_url:d.url}}catch{}return r},[c,m]=await Promise.all([Promise.all(t.map(o)),Promise.all(l.map(o))]);j(c),w(m),_(!1)})()},[]);const v=async s=>{j(a=>a.map(t=>t.id===s?{...t,play_count:(t.play_count??0)+1}:t));try{await i.rpc("increment_demo_play",{_generation_id:s})}catch{}},k=async s=>{w(a=>a.map(t=>t.id===s?{...t,play_count:(t.play_count??0)+1}:t));try{await i.rpc("increment_demo_play",{_generation_id:s})}catch{}};return e.jsxs(S,{children:[e.jsx(C,{title:"Custom Song Generator â Your Story as a Real Song | Vaughn Labs",description:"Generate full custom songs in minutes. Lyrics + vocals + production in one click. Country, hip-hop, folk, rock â your story, your sound. Try one free.",canonical:"https://www.vaughnlabs.io/songs"}),e.jsx("section",{className:"pt-24 pb-12 md:pt-32 md:pb-20",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-8 max-w-5xl text-center space-y-6",children:[e.jsxs(n,{variant:"outline",className:"gap-1.5 text-xs",children:[e.jsx(f,{className:"h-3 w-3"})," Studio-quality custom songs"]}),e.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-6xl font-bold tracking-tight break-words",children:["Your story, written into a ",e.jsx("span",{className:"text-primary",children:"real song"}),"."]}),e.jsx("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto break-words",children:"Describe what you want â country ballad, hype rap, folk anthem â and we'll write the lyrics, arrange the song, and produce a full vocal track. No instruments, no studio, no waiting."}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:flex-wrap items-stretch sm:items-center justify-center gap-3 pt-2",children:[e.jsx(g,{variant:"hero",size:"lg",className:"w-full sm:w-auto",asChild:!0,children:e.jsxs(h,{to:"/dashboard",children:[e.jsx(f,{className:"mr-1.5 h-4 w-4"})," Generate your song"]})}),e.jsx(g,{variant:"outline",size:"lg",className:"w-full sm:w-auto",asChild:!0,children:e.jsx(h,{to:"/signup",children:"Start free"})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"1 free demo song per email · No credit card to try"})]})}),e.jsx("section",{className:"pb-16",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-8 max-w-5xl",children:[e.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-2",children:[e.jsx(q,{className:"h-6 w-6 text-primary"})," Listen to real demos"]}),N?e.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[e.jsx(B,{className:"animate-spin h-4 w-4"})," Loading demosâ¦"]}):y.length===0?e.jsx(x,{children:e.jsx(p,{className:"p-6 text-sm text-muted-foreground",children:"Demos coming soon â generate your first one to hear how it sounds."})}):e.jsx("div",{className:"grid gap-4 md:grid-cols-2 min-w-0",children:y.map(s=>{var c,m,r;const a=s.input_meta,t=a==null?void 0:a.advancedState,l=s.public_demo_label||((m=(c=t==null?void 0:t.lyricsBrief)==null?void 0:c.topic)==null?void 0:m.slice(0,60))||((r=a==null?void 0:a.simpleDescription)==null?void 0:r.slice(0,60))||"Untitled",o=(t==null?void 0:t.primaryGenre)||"Custom";return e.jsx(x,{className:"min-w-0 overflow-hidden",children:e.jsxs(p,{className:"p-4 space-y-2 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 min-w-0",children:[e.jsx("h3",{className:"font-semibold truncate min-w-0",children:l}),e.jsx(n,{variant:"secondary",className:"shrink-0",children:o})]}),s.output_url&&e.jsx(P,{src:s.output_url,onPlay:()=>v(s.id)}),e.jsxs("p",{className:"flex items-center gap-1 text-xs text-muted-foreground pt-0.5",children:[e.jsx(E,{className:"h-3 w-3"}
1),(s.play_count??0).toLocaleString()," ",(s.play_count??0)===1?"play":"plays"]})]})},s.id)})})]})}),b.length>0&&e.jsx("section",{className:"pb-16",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-8 max-w-5xl",children:[e.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-2 flex items-center gap-2",children:[e.jsx(R,{className:"h-6 w-6 text-primary"})," See these songs in real ads"]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-6 max-w-2xl",children:"Real video ads we produced featuring custom songs from this generator â proof you can take your finished track straight into a paid campaign."}),e.jsx("div",{className:"grid min-w-0 grid-cols-1 gap-4 md:grid-cols-2",children:b.map(s=>{var o;const a=s.public_demo_label||((o=s.prompt)==null?void 0:o.slice(0,60))||"Featured ad",t=s.input_meta,l=(t==null?void 0:t.aspect_ratio)||"â";return e.jsx(x,{className:"min-w-0 overflow-hidden",children:e.jsxs(p,{className:"min-w-0 space-y-3 p-3 sm:p-4",children:[e.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("h3",{className:"min-w-0 text-base font-semibold leading-tight break-words sm:truncate",children:a}),e.jsx(n,{variant:"secondary",className:"shrink-0",children:l})]}),s.output_url&&e.jsx(L,{src:s.output_url,onPlay:()=>k(s.id)}),e.jsxs("p",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx($,{className:"h-3 w-3"}),(s.play_count??0).toLocaleString()," ",(s.play_count??0)===1?"view":"views"]})]})},s.id)})})]})}),e.jsx("section",{className:"pb-20 bg-muted/30 py-16",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-8 max-w-5xl",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsxs(n,{className:"mb-3 gap-1.5",children:[e.jsx(f,{className:"h-3 w-3"})," Early-bird pricing â lock it in"]}),e.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-2",children:"Simple pricing"}),e.jsx("p",{className:"text-muted-foreground",children:"These are introductory rates. Prices go up soon â anything you buy now (and any subscription you start) stays at this rate for as long as you keep it."})]}),e.jsx("div",{className:"max-w-2xl mx-auto mb-8",children:e.jsx(V,{})}),e.jsx("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-5",children:z.map(s=>e.jsx(x,{className:s.best?"border-primary shadow-[0_0_30px_hsl(var(--primary)/0.15)]":"",children:e.jsxs(p,{className:"p-5 space-y-2",children:[s.best&&e.jsx(n,{className:"mb-1",children:"Best value"}),e.jsx("h3",{className:"font-semibold",children:s.label}),e.jsx("p",{className:"text-2xl font-bold",children:s.price}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.desc})]})},s.label))}),e.jsx("div",{className:"max-w-3xl mx-auto mt-8",children:e.jsx(G,{})}),e.jsx("div",{className:"text-center mt-8",children:e.jsx(g,{variant:"hero",size:"lg",className:"w-full sm:w-auto",asChild:!0,children:e.jsx(h,{to:"/dashboard",children:"Lock in early-bird pricing â"})})})]})}),e.jsx("section",{className:"pb-20",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-8 max-w-3xl space-y-6",children:[e.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-center",children:"How it works"}),e.jsx("ol",{className:"space-y-4",children:["Describe what you want â genre, vibe, who's singing, what it's about.","We write the lyrics, pick the arrangement, and tune the production.","Your finished song lands in your dashboard as a full vocal track. Download or share it."].map((s,a)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 h-7 w-7 rounded-full bg-primary text-primary-foreground font-semibold flex items-center justify-center text-sm",children:a+1}),e.jsx("p",{className:"pt-0.5 text-base",children:s})]},a))}),e.jsxs("div",{className:"rounded-lg border border-border bg-muted/20 p-4 text-sm text-muted-foreground",children:[e.jsx(D,{className:"inline h-4 w-4 text-primary mr-1.5"}),"Failed generations are auto-refunded â you only pay for songs that finish."]})]})})]})}export{oe 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.