1import{j as e,r as w}from"./vendor-ui-Cp0o_ERz.js";import{L as u,d as le,N as G}from"./vendor-react-DblKtrgV.js";import{J as ce,C as P,a as R,k as A,E as ee,bG as de,O as me,m as p,bL as $,b_ as xe,c2 as he,bw as pe,bx as ue,by as ge,bz as fe,B as j,c3 as O,l as z,ax as D,u as F,h as H,A as C,y as je,bF as be,aJ as ye,v as S,c4 as Ne,c5 as ve,b0 as we,F as V,S as ke,bR as Ce,H as W,G as _e}from"./index-U2qI6hth.js";import{a as te,b as _,g as Te,B as Ae,i as Se}from"./BlogStickyCTA-DgSUZOKa.js";import{L as Le}from"./list-CIgYnwL5.js";import{K as Ie}from"./KeyTakeawaysBox-D5i0e8LB.js";import{L as B}from"./linkedin-DMSC3g_Z.js";import{R as Pe}from"./ReadingProgressBar-Dm4TTeTg.js";import{S as Re}from"./square-check-big-BKtbrZi_.js";import"./vendor-charts-BTyV52R2.js";import"./vendor-query-Bv5ntzP6.js";import"./vendor-motion-P7V77m0j.js";import"./vendor-supabase-B0Jha54I.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const $e=ce("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]),Q={"vidacious-team":{id:"vidacious-team",name:"Vidacious Team",role:"Content & Product",bio:"The Vidacious team shares insights on AI video creation, marketing best practices, and platform updates to help you create better video ads.",avatarUrl:"/logo.png",socialLinks:{twitter:"https://x.com/Vidacious_AI",linkedin:"https://linkedin.com/company/vidacious",website:"https://vidacious.ai"}},"marketing-team":{id:"marketing-team",name:"Marketing Team",role:"Growth & Strategy",bio:"Our marketing experts share proven strategies for maximizing ROI with AI-powered video ads across TikTok, Instagram, YouTube, and more.",avatarUrl:"/logo.png",socialLinks:{twitter:"https://x.com/Vidacious_AI",linkedin:"https://linkedin.com/company/vidacious"}},"product-team":{id:"product-team",name:"Product Team",role:"Product & Engineering",bio:"The product team dives deep into Vidacious features, advanced configurations, and technical best practices for power users.",avatarUrl:"/logo.png",socialLinks:{twitter:"https://x.com/Vidacious_AI"}}};function ze(s){return Q[s]||Q["vidacious-team"]}function Fe({currentPost:s,maxPosts:a=3}){const t=(()=>{const i=new Date().toISOString().split("T")[0],n=_.filter(d=>d.id!==s.id&&d.publishedAt<=i).map(d=>{let x=0;d.category===s.category&&(x+=10);const r=d.tags.filter(c=>s.tags.includes(c));return x+=r.length*3,{post:d,score:x}});return n.sort((d,x)=>x.score!==d.score?x.score-d.score:new Date(x.post.publishedAt).getTime()-new Date(d.post.publishedAt).getTime()),n.slice(0,a).map(d=>d.post)})();return t.length===0?null:e.jsxs("section",{className:"mt-16 pt-8 border-t border-border",children:[e.jsx("h2",{className:"text-2xl font-bold font-display mb-6",children:"Related Articles"}),e.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:t.map(i=>{const l=te.find(n=>n.id===i.category);return e.jsx(u,{to:`/blog/${i.id}`,children:e.jsxs(P,{className:"h-full group hover:border-primary/50 transition-all duration-300 overflow-hidden",children:[i.imageUrl&&e.jsx("div",{className:"aspect-video overflow-hidden",children:e.jsx("img",{src:i.imageUrl,alt:i.title,loading:"lazy",className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}),e.jsxs(R,{className:"p-4",children:[e.jsx(A,{variant:"outline",className:"mb-2 text-xs",children:l?.name||i.category}),e.jsx("h3",{className:"font-semibold line-clamp-2 mb-2 group-hover:text-primary transition-colors",children:i.title}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:i.excerpt}),e.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx(ee,{className:"w-3 h-3"}),e.jsxs("span",{children:[i.readTime," min read"]})]})]})]})},i.id)})})]})}function Ve({content:s,className:a}){const[o,t]=w.useState(!0),[i,l]=w.useState(""),[n,d]=w.useState([]);if(w.useEffect(()=>{const r=s.trim().split(` 7`),c=[];r.forEach(g=>{if(g.startsWith("## ")){const m=g.slice(3).trim(),v=m.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");c.push({id:v,text:m,level:2})}else if(g.startsWith("### ")){const m=g.slice(4).trim(),v=m.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");c.push({id:v,text:m,level:3})}}),d(c)},[s]),w.useEffect(()=>{const r=()=>{const c=n.map(m=>({id:m.id,element:document.getElementById(m.id)}
7)).filter(m=>m.element),g=window.scrollY+100;for(let m=c.length-1;m>=0;m--){const v=c[m];if(v.element&&v.element.offsetTop<=g){l(v.id);return}}c.length>0&&l(c[0].id)};return window.addEventListener("scroll",r,{passive:!0}),r(),()=>window.removeEventListener("scroll",r)},[n]),n.length<3)return null;const x=r=>{const c=document.getElementById(r);if(c){const m=c.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:m-80,behavior:"smooth"})}};return e.jsxs("div",{className:p("border border-border rounded-lg bg-card/50 overflow-hidden",a),children:[e.jsxs("button",{onClick:()=>t(!o),className:"w-full flex items-center justify-between p-4 text-left hover:bg-muted/50 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Le,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:"Table of Contents"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",n.length," sections)"]})]}),o?e.jsx(de,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(me,{className:"w-4 h-4 text-muted-foreground"})]}),o&&e.jsx("nav",{className:"px-4 pb-4",children:e.jsx("ul",{className:"space-y-1",children:n.map(r=>e.jsx("li",{children:e.jsx("button",{onClick:()=>x(r.id),className:p("w-full text-left text-sm py-1.5 px-2 rounded transition-colors hover:bg-muted/50",r.level===3&&"pl-6",i===r.id?"text-primary font-medium bg-primary/10":"text-muted-foreground"),children:r.text})},r.id))})})]})}function J({author:s,publishedAt:a,updatedAt:o,className:t,variant:i="inline"}){const l=o||a,n=new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return i==="card"?e.jsx("div",{className:p("border border-border rounded-xl p-6 bg-card/50",t),children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsx("img",{src:s.avatarUrl,alt:s.name,className:"w-16 h-16 rounded-xl object-cover flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 mb-2",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold font-display text-foreground",children:s.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.role})]}),s.socialLinks&&e.jsxs("div",{className:"flex items-center gap-2",children:[s.socialLinks.twitter&&e.jsx("a",{href:s.socialLinks.twitter,target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-lg bg-secondary/50 flex items-center justify-center text-muted-foreground hover:text-primary hover:bg-primary/10 transition-colors","aria-label":"Twitter",children:e.jsx($,{className:"w-4 h-4"})}),s.socialLinks.linkedin&&e.jsx("a",{href:s.socialLinks.linkedin,target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-lg bg-secondary/50 flex items-center justify-center text-muted-foreground hover:text-primary hover:bg-primary/10 transition-colors","aria-label":"LinkedIn",children:e.jsx(B,{className:"w-4 h-4"})}),s.socialLinks.website&&e.jsx("a",{href:s.socialLinks.website,target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-lg bg-secondary/50 flex items-center justify-center text-muted-foreground hover:text-primary hover:bg-primary/10 transition-colors","aria-label":"Website",children:e.jsx(xe,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s.bio})]})]})}):e.jsxs("div",{className:p("flex items-center gap-3",t),children:[e.jsx("img",{src:s.avatarUrl,alt:s.name,className:"w-10 h-10 rounded-full object-cover"}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium text-foreground text-sm",children:s.name}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{children:s.role}),e.jsx("span",{children:"â¢"}),e.jsx("span",{children:o?`Updated ${n}`:n})]})]})]})}function Be({items:s,className:a}){return!s||s.length===0?null:e.jsxs("section",{className:p("mt-12 pt-8 border-t border-border",a),children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center",children:e.jsx(he,{className:"w-4 h-4 text-accent"})}),e.jsx("h2",{className:"text-xl font-semibold font-display",children:"Frequently Asked Questions"})]}),e.jsx(pe,{type:"single",collapsible:!0,className:"space-y-2",children:s.map((o,t)=>e.jsxs(ue,{value:`faq-${t}`,className:"border border-border rounded-lg px-4 data-[state=open]:bg-secondary/30",children:[e.jsx(ge,{className:"text-left hover:no-underline py-4",children:e.jsx("span",{className:"font-medium text-foreground pr-4",children:o.question})}),e.jsx(fe,{className:"text-muted-foreground pb-4 leading-relaxed",children:o.answer})]},t))})]})}function Ue(s){return!s||s.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:s.map(a=>
7({"@type":"Question",name:a.question,acceptedAnswer:{"@type":"Answer",text:a.answer}}))}}function Y({url:s,title:a,className:o,variant:t="inline"}){const[i,l]=w.useState(!1),n=encodeURIComponent(s),d=encodeURIComponent(a),x={twitter:`https://twitter.com/intent/tweet?url=${n}&text=${d}`,linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${n}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${n}`},r=async()=>{try{await navigator.clipboard.writeText(s),l(!0),F.success("Link copied to clipboard!"),setTimeout(()=>l(!1),2e3)}catch{F.error("Failed to copy link")}},c=g=>{window.open(x[g],"_blank","noopener,noreferrer,width=600,height=400")};return t==="floating"?e.jsxs("div",{className:p("fixed left-4 top-1/2 -translate-y-1/2 z-40 hidden lg:flex flex-col gap-2 p-2 rounded-xl bg-background/80 backdrop-blur-sm border border-border shadow-lg",o),children:[e.jsx(j,{variant:"ghost",size:"icon",onClick:()=>c("twitter"),className:"h-10 w-10 hover:bg-primary/10 hover:text-primary","aria-label":"Share on X (Twitter)",children:e.jsx($,{className:"w-5 h-5"})}),e.jsx(j,{variant:"ghost",size:"icon",onClick:()=>c("linkedin"),className:"h-10 w-10 hover:bg-primary/10 hover:text-primary","aria-label":"Share on LinkedIn",children:e.jsx(B,{className:"w-5 h-5"})}),e.jsx(j,{variant:"ghost",size:"icon",onClick:()=>c("facebook"),className:"h-10 w-10 hover:bg-primary/10 hover:text-primary","aria-label":"Share on Facebook",children:e.jsx(O,{className:"w-5 h-5"})}),e.jsx("div",{className:"h-px bg-border my-1"}),e.jsx(j,{variant:"ghost",size:"icon",onClick:r,className:"h-10 w-10 hover:bg-primary/10 hover:text-primary","aria-label":"Copy link",children:i?e.jsx(z,{className:"w-5 h-5 text-green-500"}):e.jsx(D,{className:"w-5 h-5"})})]}):e.jsxs("div",{className:p("flex items-center gap-2",o),children:[e.jsx("span",{className:"text-sm text-muted-foreground mr-1",children:"Share:"}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>c("twitter"),className:"h-8 w-8 p-0 hover:bg-primary/10 hover:text-primary","aria-label":"Share on X (Twitter)",children:e.jsx($,{className:"w-4 h-4"})}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>c("linkedin"),className:"h-8 w-8 p-0 hover:bg-primary/10 hover:text-primary","aria-label":"Share on LinkedIn",children:e.jsx(B,{className:"w-4 h-4"})}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>c("facebook"),className:"h-8 w-8 p-0 hover:bg-primary/10 hover:text-primary","aria-label":"Share on Facebook",children:e.jsx(O,{className:"w-4 h-4"})}),e.jsx(j,{variant:"ghost",size:"sm",onClick:r,className:"h-8 w-8 p-0 hover:bg-primary/10 hover:text-primary","aria-label":"Copy link",children:i?e.jsx(z,{className:"w-4 h-4 text-green-500"}):e.jsx(D,{className:"w-4 h-4"})})]})}function se({headline:s="Ready to create your first AI video ad?",description:a="Join thousands of marketers creating scroll-stopping video content with Vidacious.",ctaText:o="Get Started Free",ctaLink:t="/auth?mode=signup",variant:i="default",className:l,onClick:n}){return i==="compact"?e.jsxs("div",{className:p("my-8 p-4 rounded-xl border border-primary/20 bg-gradient-to-r from-primary/5 to-accent/5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",l),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(H,{className:"w-5 h-5 text-primary flex-shrink-0"}),e.jsx("p",{className:"text-sm font-medium text-foreground",children:s})]}),e.jsx(j,{asChild:!0,size:"sm",className:"flex-shrink-0",onClick:n,children:e.jsxs(u,{to:t,children:[o,e.jsx(C,{className:"w-4 h-4 ml-1"})]})})]}):i==="feature"?e.jsx("div",{className:p("my-8 rounded-xl overflow-hidden border border-primary/20",l),children:e.jsxs("div",{className:"bg-gradient-to-br from-primary/10 via-accent/10 to-primary/5 p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/20 flex items-center justify-center flex-shrink-0",children:e.jsx(H,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold font-display text-lg text-foreground mb-1",children:s}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:a})]})]}),e.jsx(j,{asChild:!0,className:"w-full sm:w-auto",onClick:n,children:e.jsxs(u,{to:t,children:[o,e.jsx(C,{className:"w-4 h-4 ml-2"})]})})]})}):e.jsx("div",{className:p("my-10 rounded-2xl overflow-hidden",l),children:e.jsxs("div",{className:"bg-gradient-to-r from-primary via-primary/90 to-accent p-8 md:p-10 text-center",children:[e.jsx("h3",{className:"text-2xl md:text-3xl font-bold font-display text-primary-foreground mb-3",children:s}
7),e.jsx("p",{className:"text-primary-foreground/80 mb-6 max-w-xl mx-auto",children:a}),e.jsx(j,{asChild:!0,size:"lg",variant:"secondary",className:"font-semibold",onClick:n,children:e.jsxs(u,{to:t,children:[o,e.jsx(C,{className:"w-5 h-5 ml-2"})]})})]})})}function Ee({audience:s,className:a}){return e.jsxs(A,{variant:"outline",className:p("inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-accent/10 text-accent border-accent/20",a),children:[e.jsx(je,{className:"w-3.5 h-3.5"}),s]})}function Me({title:s="Quick Checklist",items:a,className:o}){const[t,i]=w.useState(!1),l=()=>{const n=a.map((d,x)=>`â ${d}`).join(` 8`);navigator.clipboard.writeText(n).then(()=>{i(!0),F.success("Checklist copied!"),setTimeout(()=>i(!1),2e3)})};return!a||a.length===0?null:e.jsxs("div",{className:p("rounded-xl border border-primary/20 bg-primary/5 p-5 md:p-6",o),children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Re,{className:"w-5 h-5 text-primary"}),e.jsx("h3",{className:"font-semibold font-display text-base",children:s})]}),e.jsx(j,{variant:"ghost",size:"sm",onClick:l,className:"text-xs gap-1.5",children:t?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-3.5 h-3.5"})," Copied"]}):e.jsxs(e.Fragment,{children:[e.jsx(be,{className:"w-3.5 h-3.5"})," Copy"]})})]}),e.jsx("ul",{className:"space-y-2.5",children:a.map((n,d)=>e.jsxs("li",{className:"flex items-start gap-2.5 text-sm text-muted-foreground",children:[e.jsx("div",{className:"w-4 h-4 mt-0.5 rounded border border-primary/30 flex-shrink-0"}),e.jsx("span",{children:n})]},d))})]})}function qe({specs:s,year:a,className:o}){return!s||s.length===0?null:e.jsxs("div",{className:p("my-6 rounded-xl border border-border overflow-hidden",o),children:[a&&e.jsx("div",{className:"px-4 py-2.5 bg-secondary/50 border-b border-border",children:e.jsxs("h4",{className:"text-sm font-semibold text-foreground",children:["Platform Video Ad Specs ",a]})}),e.jsx("div",{className:"hidden md:block overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-secondary/30",children:[e.jsx("th",{className:"text-left px-4 py-3 font-medium text-foreground",children:"Platform"}),e.jsx("th",{className:"text-left px-4 py-3 font-medium text-foreground",children:"Aspect Ratio"}),e.jsx("th",{className:"text-left px-4 py-3 font-medium text-foreground",children:"Resolution"}),e.jsx("th",{className:"text-left px-4 py-3 font-medium text-foreground",children:"Duration"}),e.jsx("th",{className:"text-left px-4 py-3 font-medium text-foreground",children:"Max Size"}),e.jsx("th",{className:"text-left px-4 py-3 font-medium text-foreground",children:"Format"})]})}),e.jsx("tbody",{children:s.map((t,i)=>e.jsxs("tr",{className:p("border-t border-border/50",i%2===0?"bg-background":"bg-secondary/10"),children:[e.jsx("td",{className:"px-4 py-2.5 font-medium text-foreground",children:t.platform}),e.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:t.aspectRatio}),e.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:t.resolution}),e.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:t.duration}),e.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:t.fileSize}),e.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:t.format})]},i))})]})}),e.jsx("div",{className:"md:hidden divide-y divide-border",children:s.map((t,i)=>e.jsxs("div",{className:"p-4 space-y-1.5",children:[e.jsx("p",{className:"font-medium text-foreground text-sm",children:t.platform}),e.jsxs("div",{className:"grid grid-cols-2 gap-1 text-xs text-muted-foreground",children:[e.jsxs("span",{children:["Aspect: ",t.aspectRatio]}),e.jsxs("span",{children:["Res: ",t.resolution]}),e.jsxs("span",{children:["Duration: ",t.duration]}),e.jsxs("span",{children:["Size: ",t.fileSize]}),e.jsxs("span",{className:"col-span-2",children:["Format: ",t.format]})]})]},i))})]})}function Ge({templateId:s,studioLink:a="/create",headline:o="Try this in Vidacious Studio",sourcePost:t,className:i}){const l=s?`${a}?templateId=${s}`:a,n=()=>
8{S("try_template_click",{template_id:s||null,cta_position:"inline",source_post:t||window.location.pathname,studio_link:l})};return e.jsxs("div",{className:p("my-8 rounded-xl border border-primary/30 bg-gradient-to-r from-primary/10 via-primary/5 to-transparent p-5 md:p-6 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",i),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/20 flex items-center justify-center flex-shrink-0",children:e.jsx(ye,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-foreground text-sm",children:o}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"No credit card required · Create in under 2 minutes"})]})]}),e.jsx(j,{asChild:!0,size:"sm",onClick:n,className:"flex-shrink-0",children:e.jsxs(u,{to:l,children:["Create Video",e.jsx(C,{className:"w-4 h-4 ml-1.5"})]})})]})}const Oe={"/use-cases/tiktok-ads":"TikTok Ads","/use-cases/instagram-reels":"Instagram Reels","/use-cases/youtube-shorts":"YouTube Shorts","/use-cases/facebook-ads":"Facebook Ads","/use-cases/ecommerce":"Ecommerce","/use-cases/agencies":"Agencies","/use-cases/creators":"Creators","/use-cases/saas":"SaaS","/use-cases/ugc-ads":"UGC Ads"},De={"/vs/heygen":"Vidacious vs HeyGen","/vs/synthesia":"Vidacious vs Synthesia"};function He({guides:s,useCases:a,vsPages:o,showPricing:t,sourcePost:i,className:l}){if(!(s&&s.length>0||a&&a.length>0||o&&o.length>0||t))return null;const d=(r,c)=>{S("related_link_click",{source_post:i||window.location.pathname,target_url:r,link_type:c})},x=(s||[]).map(r=>_.find(c=>c.id===r)).filter(Boolean);return e.jsxs("div",{className:p("border-t border-border pt-8 mt-8",l),children:[e.jsx("h3",{className:"text-lg font-semibold font-display mb-6",children:"Continue Reading"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[x.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(Ne,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Related Guides"})]}),e.jsx("ul",{className:"space-y-2",children:x.map(r=>e.jsx("li",{children:e.jsxs(u,{to:`/blog/${r.id}`,onClick:()=>d(`/blog/${r.id}`,"guide"),className:"text-sm text-foreground hover:text-primary transition-colors flex items-center gap-1.5 group",children:[e.jsx(C,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsx("span",{className:"line-clamp-2",children:r.title})]})},r.id))})]}),a&&a.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(ve,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Use Cases"})]}),e.jsx("ul",{className:"space-y-2",children:a.map(r=>e.jsx("li",{children:e.jsxs(u,{to:r,onClick:()=>d(r,"use-case"),className:"text-sm text-foreground hover:text-primary transition-colors flex items-center gap-1.5 group",children:[e.jsx(C,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity"}),Oe[r]||r.split("/").pop()]})},r))})]}),(o&&o.length>0||t)&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx($e,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Compare"})]}),e.jsxs("ul",{className:"space-y-2",children:[o?.map(r=>e.jsx("li",{children:e.jsxs(u,{to:r,onClick:()=>d(r,"vs"),className:"text-sm text-foreground hover:text-primary transition-colors flex items-center gap-1.5 group",children:[e.jsx(C,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity"}),De[r]||r.split("/").pop()]})},r)),t&&e.jsx("li",{children:e.jsxs(u,{to:"/pricing",onClick:()=>d("/pricing","pricing"),className:"text-sm text-foreground hover:text-primary transition-colors flex items-center gap-1.5 group",children:[e.jsx(we,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity"}),"View Pricing"]})})]})]})]})]})}const K={control:{headline:"Try these techniques in Vidacious",ctaText:"Try Template",ctaLink:"/create"},variant_a:{headline:"Get Started Free â No Credit Card",ctaText:"Get Started Free",ctaLink:"/auth?mode=signup"},variant_b:{headline:"Create HD Videos Without Watermarks",ctaText:"Remove Watermarks",ctaLink:"/pricing"}},X={control:{headline:"Create your first AI video ad",ctaText:"Create Video",ctaLink:"/create"},variant_a:{headline:"Create a TikTok ad in 60 seconds",ctaText:"Create TikTok Ad",ctaLink:"/create?templateType=tiktok"},variant_b:{headline:"Make a Reels ad now",ctaText:"Create Reels Ad",ctaLink:"/create?templateType=reels"}},We=new Set(["tiktok-ad-optimization"]);function Z({sourcePost:s,platformSlug:a}){const{variant:o}=V("content_cta_copy"),{variant:t}=V("content_platform_cta"),i=a&&We.has(a),l=i?X[t]||X.control:K[o]||K.control,n=()=>
8{S("try_template_click",{source_post:s,cta_position:"mid",experiment_key:i?"content_platform_cta":"content_cta_copy",variant:i?t:o,cta_link:l.ctaLink})};return e.jsx(se,{variant:"compact",headline:l.headline,ctaText:l.ctaText,ctaLink:l.ctaLink,onClick:n})}function nt(){const{slug:s}=le(),a=w.useRef(!1),{variant:o}=V("content_cta_placement"),t=s?Te(s):void 0,i=s?Se(s):!1;if(w.useEffect(()=>{!t||a.current||(a.current=!0,S("blog_post_view",{content_type:"blog_post",content_id:t.id,content_cluster:t.cluster||"",content_category:t.category,word_count:t.content.split(/\s+/).length,read_time:t.readTime,author_id:t.authorId||"vidacious-team",has_toc:!0,has_checklist:!!t.quickChecklist?.length,has_platform_specs:!!t.platformSpecs?.length}),sessionStorage.setItem("content_source",JSON.stringify({post_id:t.id,content_type:"blog_post",cluster:t.cluster,timestamp:Date.now()})))},[t]),i)return e.jsx(G,{to:"/blog",replace:!0});if(!t)return e.jsx(G,{to:"/blog",replace:!0});const l=o==="variant_a"||o==="variant_b",n=o==="control"||o==="variant_b",d=te.find(N=>N.id===t.category),x=_.findIndex(N=>N.id===t.id),r=x>0?_[x-1]:null,c=x<_.length-1?_[x+1]:null,g=ze(t.authorId||"vidacious-team"),m=N=>N.replace(/\*\*([^*]+)\*\*/g,'<strong class="text-foreground font-semibold">$1</strong>').replace(/\*([^*]+)\*/g,"<em>$1</em>").replace(/`([^`]+)`/g,'<code class="bg-secondary/50 px-1.5 py-0.5 rounded text-sm font-mono">$1</code>').replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="text-primary hover:underline font-medium">$1</a>'),v=N=>{const E=N.trim().split(` 9`),b=[];let T=!1,I="",M=0;return E.forEach((h,y)=>{if(h.startsWith("```")){T?(b.push(e.jsx("pre",{className:"bg-secondary/50 rounded-lg p-4 overflow-x-auto my-4",children:e.jsx("code",{className:"text-sm text-foreground",children:I.trim()})},y)),I="",T=!1):T=!0;return}if(T){I+=h+` 10`;return}if(h.startsWith("# ")){const f=h.slice(2),k=f.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");b.push(e.jsx("h1",{id:k,className:"text-3xl font-bold font-display mt-8 mb-4 scroll-mt-24",children:f},y))}else if(h.startsWith("## ")){M++;const f=h.slice(3),k=f.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");b.push(e.jsx("h2",{id:k,className:"text-2xl font-semibold font-display mt-8 mb-3 scroll-mt-24",children:f},y)),M===2&&n&&b.push(e.jsx(Z,{sourcePost:t.id,platformSlug:t.id},`cta-${y}`))}else if(h.startsWith("### ")){const f=h.slice(4),k=f.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");b.push(e.jsx("h3",{id:k,className:"text-xl font-medium mt-6 mb-2 scroll-mt-24",children:f},y))}else if(h.startsWith("> "))b.push(e.jsx("blockquote",{className:"border-l-4 border-primary pl-4 py-2 my-4 italic text-muted-foreground bg-muted/30 rounded-r-lg pr-4",dangerouslySetInnerHTML:{__html:m(h.slice(2))}},y));else if(h.startsWith("- "))b.push(e.jsx("li",{className:"ml-6 text-muted-foreground list-disc",dangerouslySetInnerHTML:{__html:m(h.slice(2))}},y));else if(/^\d+\.\s/.test(h)){const f=h.replace(/^\d+\.\s/,"");b.push(e.jsx("li",{className:"ml-6 text-muted-foreground list-decimal",dangerouslySetInnerHTML:{__html:m(f)}},y))}else if(h.startsWith("|")){if(!h.includes("---")){const f=h.split("|"),k=f.slice(1,f.length-1),q=E[y+1],ie=q&&/^\|[\s-|]+\|$/.test(q.trim());b.push(e.jsx("div",{className:p("flex gap-4 py-2 text-sm font-mono border-b",ie?"border-border font-semibold text-foreground bg-secondary/40 rounded-t-md":"border-border/50 text-muted-foreground"),children:k.map((oe,ne)=>e.jsx("span",{className:"flex-1 px-2",dangerouslySetInnerHTML:{__html:m(oe.trim())}},ne))},y))}}else h.trim()===""?b.push(e.jsx("div",{className:"h-4"},y)):h.trim()&&b.push(e.jsx("p",{className:"text-muted-foreground leading-relaxed my-2",dangerouslySetInnerHTML:{__html:m(h)}},y))}),b},re=t.imageUrl||void 0,ae=(t.updatedAt||t.publishedAt).replace(/-/g,""),L=`https://vidacious.ai/blog/${t.id}`,U=t.faqItems?Ue(t.faqItems):null;return e.jsxs(e.Fragment,{children:[e.jsx(ke,{title:t.seoMetadata?.meta_title||t.title,description:t.seoMetadata?.meta_description||t.excerpt,url:t.seoMetadata?.canonical_url||L,image:t.seoMetadata?.og_image_url||re,imageVersion:ae,type:"article",publishedTime:t.publishedAt,author:g.name,jsonLd:"article",n
10oIndex:t.seoMetadata?.is_indexed===!1,breadcrumbs:[{name:"Blog",path:"/blog"},{name:t.title,path:`/blog/${t.id}`}]}),U&&e.jsx(Ce,{children:e.jsx("script",{type:"application/ld+json",children:JSON.stringify(U)})}),e.jsx(Pe,{}),e.jsx(Y,{url:L,title:t.title,variant:"floating"}),e.jsxs("div",{className:"min-h-screen bg-background",style:{paddingTop:"calc(var(--campaign-banner-height, 0px) + var(--header-height))"},children:[e.jsxs("main",{className:"container px-4 py-12 max-w-4xl",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-6",children:[e.jsx(u,{to:"/blog",className:"hover:text-primary transition-colors",children:"Blog"}),e.jsx(W,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"text-foreground truncate",children:t.title})]}),t.imageUrl&&e.jsx("div",{className:"aspect-video rounded-xl overflow-hidden mb-8",children:e.jsx("img",{src:t.imageUrl,alt:t.title,className:"w-full h-full object-cover",loading:"eager",width:1200,height:675})}),t.targetAudience&&e.jsx(Ee,{audience:t.targetAudience,className:"mb-4"}),e.jsxs("div",{className:"mb-6",children:[e.jsx(A,{variant:"outline",className:"mb-4",children:d?.name||t.category}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold font-display mb-4",children:t.title}),e.jsx("p",{className:"text-xl text-muted-foreground mb-6",children:t.excerpt}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[e.jsx(J,{author:g,publishedAt:t.publishedAt,updatedAt:t.updatedAt}),e.jsx("div",{className:"lg:hidden",children:e.jsx(Y,{url:L,title:t.title,variant:"inline"})})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(ee,{className:"w-4 h-4"}),e.jsxs("span",{children:[t.readTime," min read"]})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:t.tags.map(N=>e.jsx(A,{variant:"secondary",className:"text-xs",children:N},N))}),t.keyTakeaways&&t.keyTakeaways.length>0&&e.jsx(Ie,{takeaways:t.keyTakeaways,className:"mb-8"}),l&&t.category!=="product-updates"&&e.jsx(Z,{sourcePost:t.id,platformSlug:t.id}),t.quickChecklist&&t.quickChecklist.length>0&&e.jsx(Me,{items:t.quickChecklist,className:"mb-8"}),e.jsx(Ve,{content:t.content,className:"mb-8"}),t.platformSpecs&&t.platformSpecs.length>0&&e.jsx(qe,{specs:t.platformSpecs,year:"2026",className:"mb-8"}),e.jsx("article",{className:"prose prose-invert max-w-none",children:v(t.content)}),(t.studioDeepLink||t.templateId)&&e.jsx(Ge,{studioLink:t.studioDeepLink,templateId:t.templateId,sourcePost:t.id}),t.faqItems&&t.faqItems.length>0&&e.jsx(Be,{items:t.faqItems}),e.jsx(He,{guides:t.relatedGuides,useCases:t.relatedUseCases,vsPages:t.relatedVsPages,showPricing:!0,sourcePost:t.id}),e.jsx(se,{headline:"Ready to create scroll-stopping video ads?",description:"Join thousands of marketers using Vidacious to generate UGC-style ads with AI actors.",ctaText:"Start Creating Free",ctaLink:"/create",variant:"default"}),e.jsx(Fe,{currentPost:t}),e.jsxs("div",{className:"mt-12 pt-8 border-t border-border",children:[e.jsx("h3",{className:"text-lg font-semibold font-display mb-4",children:"About the Author"}),e.jsx(J,{author:g,publishedAt:t.publishedAt,updatedAt:t.updatedAt,variant:"card"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 mt-12 pt-8 border-t border-border",children:[r?e.jsx(u,{to:`/blog/${r.id}`,children:e.jsx(P,{className:"h-full hover:border-primary/50 transition-colors",children:e.jsxs(R,{className:"p-4",children:[e.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground mb-2",children:[e.jsx(_e,{className:"w-3 h-3"}),"Previous"]}),e.jsx("p",{className:"font-medium line-clamp-2",children:r.title})]})})}):e.jsx("div",{}),c&&e.jsx(u,{to:`/blog/${c.id}`,children:e.jsx(P,{className:"h-full hover:border-primary/50 transition-colors text-right",children:e.jsxs(R,{className:"p-4",children:[e.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground mb-2 justify-end",children:["Next",e.jsx(W,{className:"w-3 h-3"})]}),e.jsx("p",{className:"font-medium line-clamp-2",children:c.title})]})})})]})]}),e.jsx("footer",{className:"border-t border-border py-8 mt-12 mb-16 md:mb-0",children:e.jsxs("div",{className:"container px-4 flex flex-col md:flex-row items-center justify-between gap-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2026 Vidacious. All rights reserved."}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(u,{to:"/blog",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Blog"}),e.jsx(u,{to:"/help",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Help Center"}),e.jsx(u,{to:"/privacy",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Privacy"})]})]})}),e.jsx(Ae,{})]})]})}export{nt 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.