1import{r as n,j as e}from"./vendor-ui-Cp0o_ERz.js";import{b as F,L as f}from"./vendor-react-DblKtrgV.js";import{n as G,u as c,S as A,E,B as m,b2 as k,k as u,$,I as B,h as L,C as _,a as I,az as Y,A as U,ax as O,V as W,b_ as D,y as J,O as H,s as M}from"./index-U2qI6hth.js";import{u as Z}from"./usePostHog-ZejLMEim.js";import{b as K}from"./featureFlags-DhS8K_vw.js";import Q from"./UseCaseVideoPlayer-CsTvAoJJ.js";import{m as l}from"./vendor-motion-P7V77m0j.js";import{S as X}from"./shopping-bag-jgvWJ9_M.js";import{M as ee}from"./message-square-DuUPZRrh.js";import"./vendor-charts-BTyV52R2.js";import"./vendor-query-Bv5ntzP6.js";import"./vendor-supabase-B0Jha54I.js";const b=[{icon:O,step:"01",title:"Paste Your URL",description:"Paste any product page link. AI reads and extracts key details in ~5 seconds."},{icon:L,step:"02",title:"AI Writes Your Ad",description:"Get 5 unique ad angles with hooks, scripts, and CTAs. Choose the best one or customize."},{icon:W,step:"03",title:"Generate & Export",description:"Pick an AI actor, hit generate, and export for TikTok, Reels, or Shorts in under 2 minutes."}],R=[{q:"What is URL-to-Ad?",a:"URL-to-Ad is an AI tool that analyzes any product page and automatically generates UGC-style video ad scripts. You paste a URL, and Vidacious extracts product details, writes multiple ad angles, and lets you generate professional video ads with AI actors â all in minutes."},{q:"What types of URLs are supported?",a:"Any publicly accessible product page works: Shopify stores, Amazon listings, SaaS landing pages, app store links, and more. The AI reads the page's title, description, images, and pricing to create targeted ad scripts."},{q:"How long does it take?",a:"URL analysis takes about 5â10 seconds. You'll see a product brief and 5 ad angle suggestions instantly. Generating the video with an AI actor takes 1â2 minutes."},{q:"Is URL analysis free?",a:"Yes! You can analyze any URL and preview ad angles for free â no account required. Creating the video ad with an AI actor requires a Vidacious account."},{q:"Can I edit the scripts?",a:"Absolutely. The AI generates a starting point â you can edit the product brief, modify scripts, change hooks, and customize CTAs before generating your video."},{q:"How does URL-to-Ad handle pricing info?",a:"If the product page includes pricing, URL-to-Ad extracts it and can reference it in ad scripts (e.g., 'starting at $29'). You can always edit or remove price mentions before generating."},{q:"Can I use URL-to-Ad with Amazon?",a:"Yes! Amazon product pages are fully supported. The AI reads the title, bullet points, description, and pricing to create targeted ad scripts for your Amazon products."},{q:"What about multilingual ads?",a:"After generating your ad script from a URL, you can choose from 175+ languages and regional accents when selecting your AI actor. The script can be translated or you can generate a new brief in your target language."}],C={"@context":"https://schema.org","@graph":[{"@type":"SoftwareApplication",name:"Vidacious URL-to-Ad",applicationCategory:"MultimediaApplication",operatingSystem:"Web",description:"Turn any product URL into a UGC-style video ad. AI analyzes your product page and generates scroll-stopping video ads with AI actors in minutes.",url:"https://vidacious.ai/products/url-to-ad",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",description:"Free URL analysis. Video generation requires a Vidacious plan."}},{"@type":"FAQPage",mainEntity:R.map(r=>({"@type":"Question",name:r.q,acceptedAnswer:{"@type":"Answer",text:r.a}}))},{"@type":"HowTo",name:"How to turn a product URL into a UGC video ad",description:"Create UGC-style video ads from any product page in 3 steps.",step:b.map((r,x)=>({"@type":"HowToStep",position:x+1,name:r.title,text:r.description}))}]};function pe(){const[r,x]=n.useState(""),[h,j]=n.useState(!1),[s,N]=n.useState(null),[g,z]=n.useState(null),[v,S]=n.useState(null),[T,V]=n.useState(null),{user:p}=G(),y=F(),{capture:i}=Z(),P=K();n.useEffect(()=>{i("url_to_ad_landing_viewed")},[i]),n.useEffect(()=>{(async()=>{const{data:a}
1=await M.from("become_creator_settings").select("key, value").in("key",["url_to_ad_video_url","url_to_ad_thumbnail_url"]);if(a){const o=Object.fromEntries(a.map(d=>[d.key,d.value]));S(o.url_to_ad_video_url||null),V(o.url_to_ad_thumbnail_url||null)}})()},[]);const w=n.useCallback(async()=>{if(!r.trim()){c.error("Please enter a product URL");return}try{new URL(r.trim().startsWith("http")?r.trim():`https://${r.trim()}`)}catch{c.error("Please enter a valid URL");return}const t=r.trim().startsWith("http")?r.trim():`https://${r.trim()}`;i("url_to_ad_preauth_url_submitted",{url:t}),j(!0),N(null);try{const a=await fetch("https://cnocqjydxkzeytrirrsn.supabase.co/functions/v1/url-to-ad-ingest",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNub2NxanlkeGt6ZXl0cmlycnNuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjgwMzE3ODcsImV4cCI6MjA4MzYwNzc4N30.ncqGehJ5dzMckPVIFu3TJtfHzUrKVT1CnzbtqDLDVKI"},body:JSON.stringify({url:t,fingerprint:`${navigator.userAgent}|${screen.width}x${screen.height}|${screen.colorDepth}`})});if(a.status===429){c.error("Too many requests. Please wait a few minutes and try again."),i("url_to_ad_preauth_ingest_failed",{reason:"rate_limit"});return}if(!a.ok){const d=await a.json().catch(()=>({error:"Analysis failed"}));c.error(d.error||"Could not analyze URL"),i("url_to_ad_preauth_ingest_failed",{reason:d.error});return}const o=await a.json();N(o),i("url_to_ad_preauth_ingest_succeeded",{confidence:o.confidence,cached:o.cached,anglesCount:o.angles?.length??0}),i("url_to_ad_preview_shown",{confidence:o.confidence,domain:new URL(t).hostname})}catch{c.error("Network error. Please try again."),i("url_to_ad_preauth_ingest_failed",{reason:"network"})}finally{j(!1)}},[r,i]),q=n.useCallback(()=>{if(i("url_to_ad_continue_clicked"),!!s?.draftToken)if(p)y(`/dashboard/url-to-ad?draft=${s.draftToken}`);else{i("url_to_ad_signup_redirected");const t=encodeURIComponent(`/dashboard/url-to-ad?draft=${s.draftToken}`);y(`/auth?mode=signup&redirect=${t}`)}},[s,p,y,i]);return P?e.jsxs(e.Fragment,{children:[e.jsx(A,{title:"URL-to-Ad | Turn Any Product Link Into a UGC Video Ad | Vidacious",description:"Paste any product URL. AI analyzes your page, writes scroll-stopping ad scripts, and generates UGC video ads with AI actors in minutes. Free to try.",url:"/products/url-to-ad",structuredData:C,breadcrumbs:[{name:"Products",path:"/products/studio"},{name:"URL-to-Ad",path:"/products/url-to-ad"}],answerBlock:"URL-to-Ad is a free AI tool that lets you paste any product page link â Shopify, Amazon, Etsy, SaaS, or app store â and instantly get AI-generated UGC video ad scripts. Free URL analysis requires no account. The tool extracts product details, writes 5 unique ad angles with hooks and CTAs, and lets you pick an AI actor to generate a professional video ad in under 2 minutes."}),e.jsxs("section",{className:"relative pb-16 overflow-hidden",style:{paddingTop:"calc(var(--header-height) + var(--campaign-banner-height, 0px) + var(--promo-banner-height, 0px) + 1rem)"},children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/5 via-transparent to-transparent"}),e.jsxs("div",{className:"container px-4 relative",children:[e.jsxs(l.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsxs(u,{variant:"secondary",className:"mb-4 px-4 py-1.5 text-sm font-medium",children:[e.jsx($,{className:"w-3.5 h-3.5 mr-1.5"})," Free to Try â No Account Needed"]}),e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold font-display mb-4 leading-tight",children:["Turn Any Product URL Into a"," ",e.jsx("span",{className:"gradient-text",children:"UGC Video Ad"})]}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Paste any product link. AI writes the ad script and generates a video with a realistic AI actor â in under 2 minutes."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-xl mx-auto mb-4",children:[e.jsx(B,{type:"url",placeholder:"https://yourstore.com/product",value:r,onChange:t=>x(t.target.value),onKeyDown:t=>t.key==="Enter"&&w(),className:"h-12 text-base flex-1",disabled:h}),e.jsx(m,{variant:"hero",size:"lg",onClick:w,disabled:h||!r.trim(),className:"min-w-[160px]",children:h?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"animate-spin w-4 h-4 border-2 border-white border-t-transparent roun
1ded-full"}),"Analyzingâ¦"]}):e.jsxs(e.Fragment,{children:[e.jsx(L,{className:"w-4 h-4"}),"Analyze URL"]})})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Free instant analysis. Works with Shopify, Amazon, Etsy, SaaS, and app store links."})]}),s&&e.jsx(l.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-3xl mx-auto mt-10",children:e.jsx(_,{className:"border-primary/20 bg-card/80 backdrop-blur-sm",children:e.jsxs(I,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{className:"text-xl font-semibold font-display flex items-center gap-2",children:[e.jsx(Y,{className:"w-5 h-5 text-success"}),"Product Brief"]}),e.jsxs(u,{variant:"outline",className:"text-xs",children:[Math.round(s.confidence*100),"% confidence"]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Product"}),e.jsx("p",{className:"font-medium",children:s.brief.productName})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Category"}),e.jsx("p",{className:"font-medium capitalize",children:s.brief.category})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Target Audience"}),e.jsx("p",{className:"font-medium",children:s.brief.targetAudience})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Tone"}),e.jsx("p",{className:"font-medium capitalize",children:s.brief.tone})]})]}),s.brief.keyBenefits?.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Key Benefits"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.brief.keyBenefits.map((t,a)=>e.jsx(u,{variant:"secondary",className:"text-xs",children:t},a))})]}),s.angles&&s.angles.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsxs("h3",{className:"text-lg font-semibold mb-3",children:["AI-Generated Ad Angles (",s.angles.length,")"]}),e.jsxs("div",{className:"grid gap-3",children:[s.angles.slice(0,3).map(t=>e.jsxs("div",{className:"p-4 rounded-xl border border-border bg-background/50",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"font-medium text-sm",children:t.name}),e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx(u,{variant:"outline",className:"text-xs capitalize",children:t.platform}),e.jsx(u,{variant:"outline",className:"text-xs capitalize",children:t.style})]})]}),e.jsxs("p",{className:"text-sm text-primary font-medium mb-1",children:['ð£ "',t.hook,'"']}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.script})]},t.id)),s.angles.length>3&&e.jsxs("p",{className:"text-sm text-muted-foreground text-center",children:["+",s.angles.length-3," more angles available after signup"]})]})]}),e.jsxs("div",{className:"text-center pt-4 border-t border-border",children:[e.jsxs(m,{variant:"hero",size:"lg",onClick:q,children:[p?"Continue â Pick Actor & Generate":"Sign Up Free â Pick Actor & Generate",e.jsx(U,{className:"w-4 h-4 ml-1"})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:p?"Choose an AI actor and create your video":"Create a free account to generate your video ad"})]})]})})})]})]}),v&&e.jsx("section",{className:"py-8",children:e.jsx("div",{className:"container px-4 max-w-4xl mx-auto",children:e.jsx(Q,{videoUrl:v,thumbnailUrl:T})})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"container px-4",children:[e.jsxs(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-display mb-3",children:"How It Works"}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-xl mx-auto",children:"From product link to video ad in 3 simple steps"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:b.map((t,a)=>e.jsxs(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:a*.1},className:"relative text-center",children:[e.jsx("div",{className:"w-14 h-14 roun
1ded-2xl bg-gradient-to-br from-primary to-accent flex items-center justify-center mx-auto mb-4",children:e.jsx(t.icon,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{className:"text-xs font-bold text-primary mb-1",children:["STEP ",t.step]}),e.jsx("h3",{className:"text-xl font-semibold font-display mb-2",children:t.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:t.description}),a<b.length-1&&e.jsx("div",{className:"hidden md:block absolute top-7 left-[calc(50%+40px)] w-[calc(100%-80px)] h-0.5 bg-gradient-to-r from-primary/30 to-transparent"})]},t.step))})]})}),e.jsx("section",{className:"py-20 bg-secondary/30",children:e.jsxs("div",{className:"container px-4",children:[e.jsx(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:e.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-display mb-3",children:"Works for Any Product"})}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4 max-w-4xl mx-auto",children:[{icon:X,label:"E-commerce",desc:"Shopify, Amazon, DTC stores"},{icon:D,label:"SaaS & Apps",desc:"Landing pages & app stores"},{icon:ee,label:"Services",desc:"Agency & consulting pages"},{icon:J,label:"Personal Brands",desc:"Courses, coaching, digital products"}].map((t,a)=>e.jsx(l.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:a*.05},children:e.jsx(_,{className:"h-full hover:border-primary/30 transition-colors",children:e.jsxs(I,{className:"p-5 text-center",children:[e.jsx(t.icon,{className:"w-8 h-8 text-primary mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-1",children:t.label}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]})})},t.label))})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"container px-4 max-w-2xl mx-auto",children:[e.jsx(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:e.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-display mb-3",children:"Frequently Asked Questions"})}),e.jsx("div",{className:"space-y-3",children:R.map((t,a)=>e.jsxs("div",{className:"border border-border rounded-xl overflow-hidden",children:[e.jsxs("button",{onClick:()=>z(g===a?null:a),className:"w-full flex items-center justify-between p-4 text-left hover:bg-secondary/30 transition-colors",children:[e.jsx("span",{className:"font-medium pr-4",children:t.q}),e.jsx(H,{className:`w-5 h-5 text-muted-foreground shrink-0 transition-transform ${g===a?"rotate-180":""}`})]}),g===a&&e.jsx(l.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"px-4 pb-4",children:e.jsx("p",{className:"text-muted-foreground text-sm",children:t.a})})]},a))})]})}),e.jsx("section",{className:"py-20 bg-gradient-to-b from-transparent to-primary/5",children:e.jsxs("div",{className:"container px-4 text-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-display mb-4",children:"Your First Ad Is 60 Seconds Away"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-lg mx-auto",children:"Scroll up, paste a URL, and see your ad scripts instantly. Or explore plans for unlimited generation."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsxs(m,{variant:"hero",size:"lg",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:["Try URL-to-Ad Free",e.jsx(U,{className:"w-4 h-4"})]}),e.jsx(m,{variant:"outline",size:"lg",asChild:!0,children:e.jsx(f,{to:"/pricing",children:"View Plans"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-6",children:e.jsx(f,{to:"/blog/url-to-ad-how-to-turn-product-link-into-video-ad",className:"text-primary hover:underline",children:"Read the full guide: How URL-to-Ad Works â"})})]})}),e.jsx(k,{})]}):e.jsxs(e.Fragment,{children:[e.jsx(A,{title:"URL-to-Ad | Turn Any Product Link Into a UGC Video Ad | Vidacious",description:"Paste any product URL. AI analyzes your page, writes scroll-stopping ad scripts, and generates UGC video ads with AI actors in minutes. Coming soon.",url:"/products/url-to-ad",structuredData:C}),e.jsx("section",{className:"min-h-[60vh] flex items-center justify-center",children:e.jsxs("div",{className:"text-center max-w-lg px-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-primary to-accent flex items-center justify-center mx-auto mb-6",children:e.jsx(E,{className:"w-8 h-8 text-white"})}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold font-display mb-3",children:"URL-to-Ad"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Turn any product URL into a UGC video ad. This feature is coming soon â stay tuned!"}),e.jsx(m,{variant:"hero",asChild:!0,children:e.jsx(f,{to:"/products/studio",children:"Explore Video Studio"})})]})}),e.jsx(k,{})]})}
1export{pe 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.