1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,133641,e=>{"use strict";var t=e.i(645410),s=e.i(151306);let a=(0,e.i(294237).cva)(["inline-block","rounded-full","px-3","py-1","text-xs","uppercase","font-semibold","leading-tight"],{variants:{status:{success:["bg-emerald-500/10","text-emerald-500"],info:["bg-primary/10","text-primary"],warning:["bg-amber-500/10","text-amber-500"],error:["bg-rose-500/10","text-rose-500"]}},defaultVariants:{status:"info"}}),r=({children:e,className:r,status:i,...l})=>(0,t.jsx)("span",{className:(0,s.cn)(a({status:i}),r),...l,children:e});r.displayName="Badge",e.s(["Badge",0,r])},433552,e=>{"use strict";let t=(0,e.i(540796).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["default",()=>t])},545652,e=>{"use strict";var t=e.i(433552);e.s(["ImageIcon",()=>t.default])},483717,e=>{"use strict";let t=(0,e.i(540796).default)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);e.s(["VolumeX",()=>t],483717)},407084,e=>{"use strict";let t=(0,e.i(540796).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["default",()=>t])},187570,e=>{"use strict";var t=e.i(407084);e.s(["Play",()=>t.default])},833528,e=>{"use strict";let t=(0,e.i(540796).default)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);e.s(["Volume2",()=>t],833528)},44146,e=>{"use strict";let t=(0,e.i(540796).default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);e.s(["default",()=>t])},909141,e=>{"use strict";var t=e.i(44146);e.s(["Pause",()=>t.default])},503912,e=>{"use strict";var t=e.i(645410),s=e.i(151306),a=e.i(735408),r=e.i(909141),i=e.i(187570),l=e.i(833528),n=e.i(483717),o=e.i(247313);let c={sm:{button:"size-10 md:size-12",icon:"size-4 md:size-5"},md:{button:"size-12 md:size-16",icon:"size-5 md:size-7"},lg:{button:"size-12 md:size-16 lg:size-20",icon:"size-5 md:size-6 lg:size-8"},xl:{button:"size-12 md:size-14 lg:size-16",icon:"size-5 md:size-6 lg:size-7"}},d={sm:{button:"size-9 md:size-8",icon:"size-4"},md:{button:"size-9",icon:"size-[18px]"}},m={"bottom-right":"right-2 bottom-2","top-right":"right-2 top-2"},u={light:"bg-black/30 hover:bg-black/40",medium:"bg-black/40 hover:bg-black/50",heavy:"bg-black/50 hover:bg-black/60"};function p({src:e,poster:p,className:x,autoPlay:h=!0,loop:g=!0,muted:f=!0,playsInline:b=!0,width:y,height:v,controlSize:j="md",overlayOpacity:N="medium",hideOverlayOnPlay:w=!1,hideMuteControlOnPlay:k=!1,bottomContent:z,centerContent:C,ariaLabel:S,lazy:A=!1,lazyRootMargin:D="200px",onPlayStateChange:P,pauseOnMouseLeave:I=!1,playOnMouseEnter:E=!1,showMuteControl:L=!1,muteControlSize:q="sm",muteControlPosition:$="bottom-right",onMuteChange:M,showLoadingIndicator:T=!0,active:R}){let F=(0,o.useRef)(null),[O,V]=(0,o.useState)(h),[B,U]=(0,o.useState)(f),[H,Q]=(0,o.useState)(!1),[_,G]=(0,o.useState)(!1),[W,K]=(0,o.useState)(!A),[X,Y]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(!A)return;let e=F.current;if(!e)return;let t=new IntersectionObserver(e=>{for(let t of e)Y(t.isIntersecting),t.isIntersecting&&!W&&K(!0)},{rootMargin:D,threshold:.01});return t.observe(e),()=>{t.disconnect()}},[A,W,D]),(0,o.useEffect)(()=>{let e=F.current;if(!e||!W)return;let t=()=>{Q(!0)},s=()=>{Q(!1)},a=()=>{Q(!1)};return e.addEventListener("loadstart",t),e.addEventListener("canplay",s),e.addEventListener("error",a),e.readyState>=3&&Q(!1),()=>{e.removeEventListener("loadstart",t),e.removeEventListener("canplay",s),e.removeEventListener("error",a)}},[W,e.webm,e.mp4]),(0,o.useEffect)(()=>
1{if(!A||!h)return;let e=F.current;e&&W&&X&&e.play().catch(()=>{})},[A,h,X,W]),(0,o.useEffect)(()=>{let e=window.matchMedia?.("(hover: hover) and (pointer: fine)"),t=()=>G(!!e?.matches);return t(),e?.addEventListener?.("change",t),()=>e?.removeEventListener?.("change",t)},[]),(0,o.useEffect)(()=>{!1===R&&F.current&&!F.current.paused&&(F.current.pause(),V(!1))},[R]),(0,o.useEffect)(()=>{U(f)},[f]);let J=c[j].button,Z=c[j].icon,ee=u[N];return(0,t.jsxs)("div",{className:(0,s.cn)("relative overflow-hidden",x),onMouseEnter:E&&_?()=>{E&&F.current&&F.current.paused&&(F.current.play().catch(()=>{}),V(!0))}:void 0,onMouseLeave:I&&_?()=>{I&&F.current&&!F.current.paused&&(F.current.pause(),V(!1))}:void 0,children:[(0,t.jsxs)("video",{ref:F,poster:p,width:y,height:v,className:"size-full object-cover",autoPlay:!A&&h,loop:g,muted:B,playsInline:b,preload:W?h?"auto":"metadata":"none",onPlay:()=>{V(!0),P?.(!0)},onPause:()=>{V(!1),P?.(!1)},children:[W&&e.webm&&(0,t.jsx)("source",{src:e.webm,type:"video/webm"}),W&&e.mp4&&(0,t.jsx)("source",{src:e.mp4,type:"video/mp4"}),(0,t.jsx)("track",{kind:"captions"}),"Your browser does not support the video tag."]}),T&&H&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,t.jsx)(a.Loader2,{className:"size-8 animate-spin text-white"})}),(0,t.jsx)("button",{type:"button",onClick:()=>{F.current&&(F.current.paused?(F.current.play(),V(!0)):(F.current.pause(),V(!1)))},className:(0,s.cn)("absolute inset-0 flex items-center justify-center transition-opacity",w&&O?_?"pointer-events-none opacity-0":"opacity-0":ee),"aria-label":S||(O?"Pause video":"Play video"),children:(0,t.jsxs)("div",{className:C?"text-center":void 0,children:[(0,t.jsx)("div",{className:(0,s.cn)("flex items-center justify-center rounded-full bg-primary transition-transform hover:scale-110",J,C?"mx-auto mb-4":""),children:O?(0,t.jsx)(r.Pause,{className:(0,s.cn)(Z,"fill-white text-white")}):(0,t.jsx)(i.Play,{className:(0,s.cn)("ml-1",Z,"fill-white text-white")})},"play-button"),C&&(0,t.jsx)("div",{children:C},"center-content")]})}),z&&(0,t.jsx)("div",{className:"pointer-events-none absolute bottom-2 left-2",children:z}),L&&!(k&&O)&&(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation();let t=!B;U(t),F.current&&(F.current.muted=t),M?.(t)},className:(0,s.cn)("absolute z-10 flex items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 backdrop-blur-sm",m[$],d[q].button),"aria-label":B?"Unmute video":"Mute video",children:B?(0,t.jsx)(n.VolumeX,{className:d[q].icon}):(0,t.jsx)(l.Volume2,{className:d[q].icon})})]})}e.s(["VideoWithControls",()=>p])},774931,e=>{"use strict";var t=e.i(645410),s=e.i(247313),a=e.i(524605),r=e.i(470624),i=e.i(143720),l=e.i(291967),n=e.i(832593),o="AlertDialog",[c,d]=(0,a.createContextScope)(o,[i.createDialogScope]),m=(0,i.createDialogScope)(),u=e=>{let{__scopeAlertDialog:s,...a}=e,r=m(s);return(0,t.jsx)(i.Root,{...r,...a,modal:!0})};u.displayName=o,s.forwardRef((e,s)=>{let{__scopeAlertDialog:a,...r}=e,l=m(a);return(0,t.jsx)(i.Trigger,{...l,...r,ref:s})}).displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:s,...a}=e,r=m(s);return(0,t.jsx)(i.Portal,{...r,...a})};p.displayName="AlertDialogPortal";var x=s.forwardRef((e,s)=>{let{__scopeAlertDialog:a,...r}=e,l=m(a);return(0,t.jsx)(i.Overlay,{...l,...r,ref:s})});x.displayName="AlertDialogOverlay";var h="AlertDialogContent",[g,f]=c(h),b=(0,n.createSlottable)("AlertDialogContent"),y=s.forwardRef((e,a)=>{let{__scopeAlertDialog:n,children:o,...c}=e,d=m(n),u=s.useRef(null),p=(0,r.useComposedRefs)(a,u),x=s.useRef(null);return(0,t.jsx)(i.WarningProvider,{contentName:h,titleName:v,docsSlug:"alert-dialog",children:(0,t.jsx)(g,{scope:n,cancelRef:x,children:(0,t.jsxs)(i.Content,{role:"alertdialog",...d,...c,ref:p,onOpenAutoFocus:(0,l.composeEventHandlers)(c.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(b,{children:o}),(0,t.jsx)(S,{contentRef:u})]})})})});y.displayName=h;var v="AlertDialogTitle",j=s.forwardRef((e,s)=>{let{__scopeAlertDialog:a,...r}=e,l=m(a);return(0,t.jsx)(i.Title,{...l,...r,ref:s})});j.displayName=v;var N="AlertDialogDescription",w=s.forwardRef((e,s)=>{let{__scopeAlertDialog:a,...r}=e,l=m(a);return(0,t.jsx)(i.Description,{...l,...r,ref:s})});w.displayName=N;var k=s.forwardRef((e,s)=>{let{__scopeAlertDialog:a,...r}=e,l=m(a);return(0,t.jsx)(i.Close,{...l,...r,ref:s})});k.displayName="AlertDialogAction";var z="AlertDialogCancel",C=s.forwardRef((e,s)=>{let{__scopeAlertDialog:a,...l}=e,{cancelRef:n}=f(z,a),o=m(a),c=(0,r.useComposedRefs)(s,n);return(0,t.jsx)(i.Close,{...o,...l,ref:c})});C.displayName=z;var S=({contentRef:e})=>{let t=`\`${h}\` requires a description for the component to be accessible for screen reader users. 2
3You can add a description to the \`${h}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 4 5Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${h}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 6 7For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return s.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},A=e.i(198869),D=e.i(151306);let P=({className:e,...s})=>(0,t.jsx)(x,{className:(0,D.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...s}),I=({className:e,...s})=>(0,t.jsxs)(p,{children:[(0,t.jsx)(P,{}),(0,t.jsx)(y,{className:(0,D.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg",e),...s})]}),E=({className:e,...s})=>(0,t.jsx)("div",{className:(0,D.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...s}),L=({className:e,...s})=>(0,t.jsx)("div",{className:(0,D.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...s}),q=({className:e,...s})=>(0,t.jsx)(j,{className:(0,D.cn)("font-semibold text-lg",e),...s}),$=({className:e,...s})=>(0,t.jsx)(w,{className:(0,D.cn)("text-muted-foreground text-sm",e),...s}),M=({className:e,...s})=>(0,t.jsx)(k,{className:(0,D.cn)((0,A.buttonVariants)(),e),...s}),T=({className:e,...s})=>(0,t.jsx)(C,{className:(0,D.cn)((0,A.buttonVariants)({variant:"outline"}),"mt-2 sm:mt-0",e),...s});e.s(["AlertDialog",()=>u,"AlertDialogAction",()=>M,"AlertDialogCancel",()=>T,"AlertDialogContent",()=>I,"AlertDialogDescription",()=>$,"AlertDialogFooter",()=>L,"AlertDialogHeader",()=>E,"AlertDialogTitle",()=>q],774931)},337725,e=>{"use strict";function t(e){return e.toLocaleString("en-US")}e.s(["formatCredits",()=>t])},545117,e=>{"use strict";var t=e.i(645410),s=e.i(151306);let a=({className:e,...a})=>(0,t.jsx)("div",{className:(0,s.cn)("rounded-2xl border bg-card text-card-foreground",e),...a}),r=({className:e,...a})=>(0,t.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 p-6 pb-4",e),...a}),i=({className:e,...a})=>(0,t.jsx)("h3",{className:(0,s.cn)("font-semibold text-xl leading-none",e),...a}),l=({className:e,...a})=>(0,t.jsx)("p",{className:(0,s.cn)("text-muted-foreground text-sm",e),...a}),n=({className:e,...a})=>(0,t.jsx)("div",{className:(0,s.cn)("p-6 pt-0",e),...a});e.s(["Card",()=>a,"CardContent",()=>n,"CardDescription",()=>l,"CardHeader",()=>r,"CardTitle",()=>i])},59539,e=>{"use strict";var t=e.i(645410),s=e.i(151306);function a({className:e,...a}){return(0,t.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",e),...a})}e.s(["Skeleton",()=>a])},309479,e=>{"use strict";let t=(0,e.i(540796).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["default",()=>t])},614988,e=>{"use strict";var t=e.i(309479);e.s(["Video",()=>t.default])},120870,e=>{"use strict";let t=(0,e.i(540796).default)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);e.s(["CrownIcon",()=>t],120870)},17545,e=>{"use strict";var t=e.i(645410),s=e.i(198869),a=e.i(545652),r=e.i(735408),i=e.i(187570),l=e.i(367651),n=e.i(614988),o=e.i(833528),c=e.i(483717),d=e.i(685791),m=e.i(345088),u=e.i(247313);let p=["Product Shorts","AI UGC","Viral Ads"],x=[14,17,16];
7function h({showSoundButton:e=!0,defaultMuted:h=!0}){let g=(0,m.useTranslations)("home.hero"),f=(0,m.useTranslations)("home.hero.cta"),b=(0,m.useTranslations)("home.hero.workflow"),[y,v]=(0,u.useState)(0),[j,N]=(0,u.useState)(h),[w,k]=(0,u.useState)(!1),[z,C]=(0,u.useState)(!1),[S,A]=(0,u.useState)(!1),D=(0,u.useRef)(null),P=w||S;(0,u.useEffect)(()=>{let e=window.matchMedia?.("(hover: hover) and (pointer: fine)"),t=()=>k(!!e?.matches);return t(),e?.addEventListener?.("change",t),()=>e?.removeEventListener?.("change",t)},[]),(0,u.useEffect)(()=>{let e=D.current;if(!e||!P)return;C(!0);let t=()=>{C(!1),e.play().catch(()=>{})},s=()=>{C(!0)},a=()=>{C(!1)};return e.addEventListener("canplay",t),e.addEventListener("loadstart",s),e.addEventListener("error",a),e.load(),()=>{e.removeEventListener("canplay",t),e.removeEventListener("loadstart",s),e.removeEventListener("error",a)}},[y,P]),(0,u.useEffect)(()=>{let e=D.current;if(!e||!P)return;let t=()=>{let e=()=>{for(let e of x.slice(1)){let t=`prefetch-hero${e}`;if(document.getElementById(t))continue;let s=document.createElement("link");s.id=t,s.rel="prefetch",s.as="video",s.href=`https://assets.gqv.ai/home/ugc-hero/hero${e}.webm`,document.head.appendChild(s)}};"requestIdleCallback"in window?requestIdleCallback(e,{timeout:3e3}):setTimeout(e,1e3)};return e.addEventListener("playing",t,{once:!0}),()=>e.removeEventListener("playing",t)},[P]);let I=e=>{e!==y&&v(e)};return(0,t.jsxs)("section",{className:"relative overflow-hidden pb-20 pt-24 sm:pt-32",children:[(0,t.jsx)("div",{className:"absolute top-1/2 right-0 h-[300px] w-[300px] sm:h-[450px] sm:w-[450px] lg:h-[600px] lg:w-[600px] -translate-y-1/2 rounded-full bg-primary/20 blur-[150px]"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-medium text-primary",children:[(0,t.jsx)(l.Sparkles,{className:"size-4"}),g("badge")]}),(0,t.jsxs)("h1",{className:"text-balance font-bold text-4xl leading-tight md:text-5xl lg:text-6xl",children:[(0,t.jsx)("span",{className:"text-foreground",children:g("title.line1")}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"bg-linear-to-r from-emerald-400 to-emerald-600 bg-clip-text text-transparent",children:g("title.line2")})]}),(0,t.jsx)("p",{className:"max-w-xl text-foreground/70 text-lg",children:g("description")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsx)(s.Button,{variant:"primary",size:"lg",className:"bg-linear-to-r from-primary to-primary/80 px-8 hover:from-primary/90 hover:to-primary/70 shadow-sm shadow-primary/20 text-white",asChild:!0,children:(0,t.jsx)(d.default,{href:"/auth/signup",children:f("primary")})}),(0,t.jsx)(s.Button,{variant:"outline",size:"lg",className:"gap-2 border-border bg-transparent text-foreground hover:bg-muted",asChild:!0,children:(0,t.jsxs)("a",{href:"#how-it-works",children:[(0,t.jsx)(i.Play,{className:"size-4"}),f("demo")]})})]}),(0,t.jsx)("p",{className:"text-foreground/60 text-sm",children:g("subtitle")})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 rounded-3xl bg-linear-to-r from-primary/20 to-primary/20 blur-xl"}),(0,t.jsx)("div",{className:"relative mx-auto w-full max-w-[460px]",children:(0,t.jsx)("div",{className:"relative sm:aspect-[5/6] rounded-2xl border border-border bg-card/50 p-4 sm:p-5 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:h-full gap-3",children:[(0,t.jsxs)("div",{className:"relative aspect-[9/16] sm:h-full flex-none overflow-hidden rounded-lg bg-black/10",children:[(0,t.jsx)("video",{ref:D,poster:`https://assets.gqv.ai/home/ugc-hero/hero${x[y]}.webp`,className:"size-full object-cover",loop:!0,muted:j,playsInline:!0,preload:P?"auto":"none",children:P&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("source",{src:`https://assets.gqv.ai/home/ugc-hero/hero${x[y]}.webm`,type:"video/webm"}),(0,t.jsx)("source",{src:`https://assets.gqv.ai/home/ugc-hero/hero${x[y]}.mp4`,type:"video/mp4"})]})}),z&&P&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,t.jsx)(r.Loa
7der2,{className:"size-8 animate-spin text-white"})}),!w&&!S&&(0,t.jsx)("button",{type:"button",onClick:()=>A(!0),className:"absolute inset-0 flex items-center justify-center bg-black/20","aria-label":"Play video",children:(0,t.jsx)("div",{className:"flex size-14 items-center justify-center rounded-full bg-primary",children:(0,t.jsx)(i.Play,{className:"ml-1 size-6 fill-white text-white"})})}),(0,t.jsx)("div",{className:"pointer-events-none absolute top-2 left-2 rounded bg-black/60 px-2 py-1 font-medium text-white text-xs backdrop-blur-sm",children:p[y]}),e&&(0,t.jsx)("button",{type:"button",onClick:()=>{N(e=>!e)},"aria-label":j?"Unmute video":"Mute video",className:"absolute right-2 bottom-2 flex size-9 md:size-8 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 backdrop-blur-sm",children:j?(0,t.jsx)(c.VolumeX,{className:"size-4"}):(0,t.jsx)(o.Volume2,{className:"size-4"})})]}),(0,t.jsx)("div",{className:"grid h-28 sm:h-full flex-1 grid-cols-3 sm:grid-cols-1 grid-rows-1 sm:grid-rows-3 gap-2",children:Array.from({length:3},(e,t)=>t).map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>I(e),onMouseEnter:w?()=>I(e):void 0,"aria-label":`Switch main video to ${p[e]}`,className:`group relative flex h-full w-full items-center justify-center overflow-hidden rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-card ${y===e?"ring-2 ring-primary ring-offset-2 ring-offset-card":"opacity-80 hover:opacity-100"}`,children:(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-md bg-black/10",children:[(0,t.jsx)("img",{src:`https://assets.gqv.ai/home/ugc-hero/hero${x[e]}.webp`,alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-200 group-hover:scale-105"}),(0,t.jsx)("div",{className:"absolute top-1 left-1 rounded bg-black/70 px-1.5 py-0.5 font-medium text-white text-[10px] backdrop-blur-sm",children:p[e]}),y!==e&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 opacity-0 transition-opacity duration-150 group-hover:opacity-100",children:(0,t.jsx)(i.Play,{className:"size-6 text-white"})})]})},e))})]})})})]})]}),(0,t.jsx)("div",{className:"mt-16 grid grid-cols-1 gap-4 md:grid-cols-3",children:["step1","step2","step3"].map((e,s)=>{let r=[l.Sparkles,a.ImageIcon,n.Video][s];return(0,t.jsxs)("a",{href:`#${e}
7`,className:"flex items-center gap-4 rounded-xl border border-border bg-card/50 p-4 transition-colors hover:border-primary/50 hover:bg-card cursor-pointer",children:[(0,t.jsx)("div",{className:"flex size-12 items-center justify-center rounded-lg bg-primary/10 text-primary",children:(0,t.jsx)(r,{className:"size-6"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-foreground/60 text-sm",children:g("stepLabel",{number:b(`${e}.number`)})}),(0,t.jsx)("p",{className:"font-semibold text-foreground",children:b(`${e}.title`)})]})]},e)})})]})]})}e.s(["HeroSection",()=>h])},547209,e=>{"use strict";var t=e.i(645410),s=e.i(190683),a=e.i(608809),r=e.i(198869),i=e.i(151306),l=e.i(345088);function n({interval:e,onChange:s}){let a=(0,l.useTranslations)("subscriptions");return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsxs)("div",{className:"inline-flex items-center rounded-lg border bg-muted p-1",children:[(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",onClick:()=>s("month"),className:(0,i.cn)("rounded-md px-4 py-2 text-sm font-medium transition-all","month"===e?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"),children:a("billing.monthly")}),(0,t.jsxs)(r.Button,{variant:"ghost",size:"sm",onClick:()=>s("year"),className:(0,i.cn)("rounded-md px-4 py-2 text-sm font-medium transition-all","year"===e?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"),children:[a("billing.yearly"),(0,t.jsx)("span",{className:"ml-1.5 rounded-full bg-green-500/15 px-2 py-0.5 text-xs font-semibold text-green-500",children:a("billing.yearlySavingsTag",{discount:"up to 60%"})})]})]}),"year"===e&&(0,t.jsx)("p",{className:"text-sm text-green-500 font-medium",children:a("billing.yearlySavingsHint",{discount:"up to 60%"})})]})}var o=e.i(290164),c=e.i(950617),d=e.i(572188),m=e.i(532040),u=e.i(337725),p=e.i(399865),x=e.i(830616),h=e.i(774931),g=e.i(133641),f=e.i(545117),b=e.i(59539),y=e.i(959861),v=e.i(120870),j=e.i(599965),N=e.i(583979),w=e.i(247313),k=e.i(360112);function z(){return(0,t.jsxs)(f.Card,{className:"relative overflow-hidden",children:[(0,t.jsxs)(f.CardHeader,{className:"pb-4",children:[(0,t.jsx)(b.Skeleton,{className:"h-8 w-32"}),(0,t.jsx)(b.Skeleton,{className:"mt-2 h-4 w-full"}),(0,t.jsx)(b.Skeleton,{className:"mt-4 h-16 w-full"})]}),(0,t.jsx)(f.CardContent,{children:(0,t.jsx)(b.Skeleton,{className:"h-11 w-full rounded-lg"})})]})}function C({plan:e,interval:n,loading:b=!1,variant:C="app",redirectAfterLogin:S,redirectAfterPayment:A,isPopular:D,currentPlanId:P,currentInterval:I,subscriptionStatus:E}){let L=(0,l.useTranslations)("subscriptions"),q=(0,l.useFormatter)(),$=(0,N.useLocale)(),M=(0,j.useRouter)(),{user:T}=(0,d.useSession)(),{hasSubscription:R}=(0,m.useSubscription)(),{trackEvent:F}=(0,o.useAnalytics)(),O=(0,x.useQueryClient)(),[V,B]=(0,w.useState)(!1),[U,H]=(0,w.useState)(!1),Q=D??e.popular,_="month"===n?e.prices.monthly:e.prices.yearly,G="free"===e.id||0===_.amount,W="month"===n?e.prices.monthly.priceId:e.prices.yearly.priceId,K="year"===n?12*e.monthlyQuota:e.monthlyQuota,X=Math.floor(K/c.DURATION_PRICING.standard.baseCredits),Y=X>0?(Math.floor(_.amount/X*100)/100).toFixed(2):"0",J="trialing"===E,Z="active"===E,ee=J||Z,et=J&&P===e.id&&I===n,es=Z&&P===e.id&&I===n,ea=Z&&P&&I&&(0,a.canUpgradePlan)(P,I,e.id,n),er=ee&&!es&&!et&&!ea,ei=null==P&&R&&!G,el=async()=>{B(!0),F("subscribe_click",{plan_name:e.id,plan_type:n,value:_.amount,upgrade:!0});try{await p.orpcClient.payments.upgradeSubscription({productId:W}),k.toast.success(L("upgrade.success")),await O.invalidateQueries({queryKey:["subscription"]})}catch(e){console.error("Failed to upgrade subscription:",e),k.toast.error(L("upgrade.error"))}finally{B(!1),H(!1)}},en=async()=>{if(!T){k.toast.info(L("auth.loginRequired"));let e=$===s.config.i18n.defaultLocale?"":`/${$}`;M.push(`/auth/login?redirectTo=${e}${S||"/pricing"}`);return}if(!es&&!er){if(et||ea)return void H(!0);if(ei)return void M.push("/app/settings/general");if("free"===e.id||0===_.amount)return void M.push("/app");B(!0),F("subscribe_click",{plan_name:e.id,plan_type:n,value:_.amount});try{let t=$===s.config.i18n.defaultLocale?"":`/${$}`,a="year"===n?12*e.monthlyQuota:e.monthlyQuota,{checkoutLink:r}=await p.orpcClient.payments.createCheckoutLink({type:"subscription",productId:W,redirectUrl:`${window.location.origin}${t}
7${A||"/app/settings/billing"}?credits=${a}`});window.location.href=r}catch(e){console.error("Failed to create checkout link:",e),k.toast.error(L("errors.subscriptionFailed"))}finally{B(!1)}}},eo=et?L("upgrade.trialSkipTitle"):L("upgrade.confirmTitle",{plan:L(`plan.${e.id}`)}),ec=et?L("upgrade.trialSkipDescription",{price:_.amount,credits:(0,u.formatCredits)(K)}):L("upgrade.confirmDescription",{credits:(0,u.formatCredits)(K)});return b?(0,t.jsx)(z,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.Card,{className:(0,i.cn)("relative overflow-hidden transition-all duration-200 hover:border-primary/50 cursor-pointer flex flex-col",Q&&"border-2 border-primary shadow-xl ring-4 ring-primary/20 md:scale-105",es&&"border-2 border-primary/60 bg-primary/5"),children:[Q&&(0,t.jsx)("div",{className:"absolute right-3 top-3 z-10 rounded-full bg-primary px-3 py-1 text-primary-foreground text-xs font-semibold shadow-md",children:L("recommended")}),(0,t.jsxs)(f.CardHeader,{className:"pb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(v.CrownIcon,{className:"h-6 w-6 text-primary"}),(0,t.jsx)("h3",{className:"font-bold text-2xl",children:L(`plan.${e.id}`)})]}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:L(`plans.${e.id}.description`)}),(0,t.jsx)("div",{className:"mt-4",children:G?(0,t.jsx)("div",{className:"py-2",children:(0,t.jsx)("span",{className:"font-bold text-4xl text-primary",children:L("billing.free")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:["originalAmount"in _&&_.originalAmount&&"month"===n&&(0,t.jsx)("span",{className:"text-muted-foreground/60 line-through text-xl",children:q.number(_.originalAmount,{style:"currency",currency:_.currency,currencyDisplay:"narrowSymbol",maximumFractionDigits:0})}),"year"===n&&(0,t.jsx)("span",{className:"text-muted-foreground/40 line-through text-2xl",children:q.number(e.prices.monthly.amount,{style:"currency",currency:_.currency,currencyDisplay:"narrowSymbol",maximumFractionDigits:0})}),(0,t.jsx)("span",{className:"font-bold text-4xl",children:q.number("year"===n&&"monthlyEquivalent"in _&&_.monthlyEquivalent?_.monthlyEquivalent:_.amount,{style:"currency",currency:_.currency,currencyDisplay:"narrowSymbol",maximumFractionDigits:0})}),(0,t.jsxs)("span",{className:"text-muted-foreground text-sm",children:["/",L("billing.monthly")]})]}),"year"===n&&(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:L("billing.billedAnnually",{amount:q.number(_.amount,{style:"currency",currency:_.currency,currencyDisplay:"narrowSymbol",maximumFractionDigits:0})})}),"savings"in _&&_.savings&&(0,t.jsx)(g.Badge,{className:"bg-green-500/10 text-green-600 dark:text-green-400 border-green-500/20",children:"agency"===e.id?`${Math.floor(_.savings/(12*e.prices.monthly.amount)*100)}% off`:L("billing.savingsAmount",{amount:q.number(_.savings,{style:"currency",currency:_.currency,currencyDisplay:"narrowSymbol",maximumFractionDigits:0})})})]})]})})]}),(0,t.jsxs)(f.CardContent,{className:"flex flex-col flex-1",children:[(0,t.jsxs)("ul",{className:"mb-6 space-y-2 flex-1",children:[!G&&(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm font-medium text-primary",children:[(0,t.jsx)(y.CheckIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,t.jsx)("span",{children:"year"===n?L("quota.yearlyQuota",{amount:(0,u.formatCredits)(12*e.monthlyQuota)}):L("quota.monthlyQuota",{amount:(0,u.formatCredits)(e.monthlyQuota)})})]}),!G&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm font-medium text-primary",children:[(0,t.jsx)(y.CheckIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,t.jsx)("span",{children:L(`dynamicFeatures.videoCount.${"year"===n?"yearly":"monthly"}`,{count:X})})]}),(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm font-medium text-primary",children:[(0,t.jsx)(y.CheckIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,t.jsx)("span",{children:L("dynamicFeatures.videoPrice",{price:Y})})]})]}),e.features?.unlimitedStdImage&&(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm font-medium text-primary",children:[(0,t.jsx)(y.CheckIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,t.jsx)("span",{children:L(`plans.${e.id}.imageQuota`)})]}),L.raw(`plans.${e.id}.features`).map((e,s)=>(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm text-foreground
7/80",children:[(0,t.jsx)(y.CheckIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,t.jsx)("span",{children:e})]},s))]}),!G&&(0,t.jsx)("p",{className:"mb-4 text-xs text-muted-foreground",children:L("dynamicFeatures.footnote")}),(0,t.jsx)(r.Button,{className:"w-full font-semibold shadow-sm transition-all duration-300 hover:scale-[1.02] hover:shadow-xl active:scale-[0.98]",variant:es||er?"outline":Q?"primary":"secondary",onClick:en,disabled:b||V||es||er,loading:V,children:G?L("cta.startTrial"):es?L("cta.currentPlan"):et?L("cta.skipTrial"):ea?L("cta.upgrade"):er?L("cta.lowerPlan"):ei?L("billing.manageSubscription"):"marketing"===C?L("cta.subscribe"):L("cta.upgrade")})]})]}),(0,t.jsx)(h.AlertDialog,{open:U,onOpenChange:H,children:(0,t.jsxs)(h.AlertDialogContent,{children:[(0,t.jsxs)(h.AlertDialogHeader,{children:[(0,t.jsx)(h.AlertDialogTitle,{children:eo}),(0,t.jsx)(h.AlertDialogDescription,{children:ec})]}),(0,t.jsxs)(h.AlertDialogFooter,{children:[(0,t.jsx)(h.AlertDialogCancel,{disabled:V,children:L("confirmCancel.cancel")}),(0,t.jsx)(h.AlertDialogAction,{onClick:e=>{e.preventDefault(),el()},disabled:V,children:V?"...":L("upgrade.confirm")})]})]})})]})}function S({children:e,className:s=""}){return(0,t.jsx)("div",{className:`grid grid-cols-1 md:grid-cols-3 gap-6 max-w-6xl mx-auto ${s}`,children:e})}function A({asWrapper:e=!0}){let[s,r]=(0,w.useState)("year"),{data:i}=(0,m.useSubscription)(),l=a.SUBSCRIPTION_PLANS.filter(e=>"free"!==e.id),o=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-8 text-center",children:(0,t.jsx)(n,{interval:s,onChange:r})}),(0,t.jsx)(S,{children:l.map(e=>(0,t.jsx)(C,{plan:e,interval:s,variant:"marketing",redirectAfterLogin:"/pricing",redirectAfterPayment:"/payment-success",isPopular:e.id===("year"===s?"agency":"pro"),currentPlanId:i?.subscription?.planId??null,currentInterval:i?.subscription?.billingInterval??null,subscriptionStatus:i?.subscription?.status??null},e.id))})]});return e?(0,t.jsx)("section",{id:"subscription-plans",className:"py-10 sm:py-12 lg:py-20",children:(0,t.jsx)("div",{className:"container max-w-7xl",children:o})}):o}e.s(["PricingContent",()=>A],547209)},803022,e=>{"use strict";var t=e.i(645410),s=e.i(503912),a=e.i(953724),r=e.i(345088),i=e.i(247313);let l=["Viral Ads","Product Shorts","Product Shorts","AI UGC","AI UGC"],n=[15,16,13,6,5],o=["https://assets.gqv.ai/actors/qezpagsx9zcxipvdm13oih7h/image.webp","https://assets.gqv.ai/actors/ia0hgqdazurz0iil893y1t6h/image.webp","https://assets.gqv.ai/actors/jix2z7ssc9p3fp8eat9x9hp1/image.webp","https://assets.gqv.ai/actors/u7zkv6uomfrrndl0o0a5a5hq/image.webp","https://assets.gqv.ai/actors/cva1mpmp152gi76xxa4dlma0/image.webp","https://assets.gqv.ai/actors/qernzb1j2zyf9f7ytaongpt6/image.webp","https://assets.gqv.ai/actors/syej1us3n0xxzbxgaatws49w/image.webp","https://assets.gqv.ai/actors/z77m5654mcl69rzper1i9xr2/image.webp","https://assets.gqv.ai/actors/tkbgddzruosf9c9ai4ss3a5j/image.webp","https://assets.gqv.ai/actors/k7pm87dzx5iv1cjdemchpfzi/image.webp"];function c(){let e=(0,r.useTranslations)("home.visualProof"),c=(0,i.useRef)([]),[d,m]=(0,i.useState)(!1);function u(e){return`https://assets.gqv.ai/home/ugc-visual/${n[e]}.mp4`}return(0,i.useEffect)(()=>{let e=window.matchMedia?.("(hover: hover) and (pointer: fine)"),t=()=>m(!!e?.matches);return t(),e?.addEventListener?.("change",t),()=>e?.removeEventListener?.("change",t)},[]),(0,t.jsxs)("section",{className:"relative py-16 sm:py-20 lg:py-24",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-linear-to-b from-background via-primary/10 to-background"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"mb-8 text-center sm:mb-10 lg:mb-12",children:[(0,t.jsx)("h2",{className:"mb-3 font-bold text-2xl text-foreground sm:mb-4 sm:text-3xl md:text-4xl",children:e("title")}),(0,t.jsx)("p",{className:"mx-auto max-w-2xl text-sm text-foreground/70 sm:text-base",children:e("description")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:gap-5 md:grid-cols-4 lg:gap-6",children:[(0,t.jsx)("div",{className:"md:col-span-1",children:(0,t.jsxs)("div",{className:"lg:sticky lg:top-24 mx-auto max-w-xs md:max-w-none space-y-4 rounded-2xl border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"relative aspect-[9/16] overflow-hidden rounded-xl",children:[(0,t.jsx)(a.default,{src:"https://assets.gqv.ai/home/ugc-visual/product.webp",alt:e("productName"),width:270,height:480,className:"size-full object-cover"}),(0,t.jsx)("span",{className:"absolute top-2 left-2 rounded-full bg-primary/90 px-2.5 py-1 font-medium text-primary-foreground text-xs backdrop-blur-sm",children:e("sampleBadge")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"font-bold text-foreground text-base",children:e("productName")}
7),(0,t.jsx)("p",{className:"text-foreground/60 text-sm",children:e("productDescription")})]})]})}),(0,t.jsxs)("div",{className:"space-y-4 sm:space-y-5 md:col-span-3 lg:space-y-6",children:[(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-5 sm:gap-3",children:l.map((e,a)=>(0,t.jsx)("div",{ref:e=>{c.current[a]=e},className:"aspect-[9/16] overflow-hidden rounded-xl",onMouseEnter:d?()=>(e=>{let t=c.current[e];if(t){let e=t.querySelector("video");e?.play().catch(()=>{})}})(a):void 0,onMouseLeave:d?()=>(e=>{let t=c.current[e];if(t){let e=t.querySelector("video");e?.pause()}})(a):void 0,children:(0,t.jsx)(s.VideoWithControls,{src:{webm:u(a).replace(".mp4",".webm"),mp4:u(a)},poster:`https://assets.gqv.ai/home/ugc-visual/${n[a]}.webp`,autoPlay:!1,loop:!0,muted:!1,playsInline:!0,controlSize:"sm",overlayOpacity:"light",hideOverlayOnPlay:!0,hideMuteControlOnPlay:!1,showMuteControl:!0,lazy:!0,lazyRootMargin:"200px",bottomContent:(0,t.jsx)("div",{className:"inline-block rounded bg-black/70 px-2 py-1 backdrop-blur-sm",children:(0,t.jsx)("p",{className:"font-medium text-white text-xs",children:e})}),ariaLabel:`Play video for ${e}`})},a))}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-4xl",children:[(0,t.jsx)(s.VideoWithControls,{src:{webm:"https://assets.gqv.ai/home/ugc-visual/ad-creative-shorts.webm",mp4:"https://assets.gqv.ai/home/ugc-visual/ad-creative-shorts.mp4"},poster:"https://assets.gqv.ai/home/ugc-visual/ad-creative-shorts.webp",className:"aspect-video rounded-xl",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,controlSize:"md",overlayOpacity:"medium",hideOverlayOnPlay:!0,showMuteControl:!0,hideMuteControlOnPlay:!1,lazy:!0,lazyRootMargin:"200px",ariaLabel:"Viral Ads demo video"}),(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 rounded-b-xl bg-linear-to-t from-black/80 to-transparent p-3 pb-10 sm:p-4 sm:pb-12",children:[(0,t.jsx)("p",{className:"font-medium text-sm text-white sm:text-base",children:e("videoTitle")}),(0,t.jsx)("p",{className:"text-xs text-white/70 sm:text-sm",children:e("videoDescription")})]})]})]})]}),(0,t.jsxs)("div",{className:"mt-12 sm:mt-16",children:[(0,t.jsxs)("div",{className:"mb-6 text-center",children:[(0,t.jsx)("h3",{className:"mb-2 font-bold text-xl text-foreground sm:text-2xl",children:e("actorGrid.title")}),(0,t.jsx)("p",{className:"text-foreground/60 text-sm",children:e("actorGrid.subtitle")})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-5 sm:gap-4",children:o.map((e,s)=>(0,t.jsx)("div",{className:"group relative aspect-[9/16] overflow-hidden rounded-xl",children:(0,t.jsx)(a.default,{src:e,alt:`AI actor ${s+1}`,width:270,height:480,className:"size-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"})},e))})]})]})]})}e.s(["VisualProofSection",()=>c])}]);
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.