PageSourceSearch

https://www.reelpal.ai/_next/static/chunks/app/page-0786e6fc8410c457.js?dpl=dpl_5n6zbr9UBXbMfwRzKN4v53bB4WZ8

js reelpal.ai collected 2026-10-05 13:48:42 UTC 25,624 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{88350:function(e,t,i){Promise.resolve().then(i.bind(i,23716))},76858:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});let a=(0,i(79205).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},92735:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});let a=(0,i(79205).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},33276:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});let a=(0,i(79205).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},68919:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});let a=(0,i(79205).Z)("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},82023:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});let a=(0,i(79205).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},30166:function(e,t,i){"use strict";i.d(t,{default:function(){return l.a}});var a=i(55775),l=i.n(a)},55775:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let a=i(47043);i(57437),i(2265);let l=a._(i(15602));function s(e,t){var i;let a={loading:e=>{let{error:t,isLoading:i,pastDelay:a}=e;return null}};"function"==typeof e&&(a.loader=e);let s={...a,...t};return(0,l.default)({...s,modules:null==(i=s.loadableGenerated)?void 0:i.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81523:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let a=i(18993);function l(e){let{reason:t,children:i}=e;if("undefined"==typeof window)throw new a.BailoutToCSRError(t);return i}},15602:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let a=i(57437),l=i(2265),s=i(81523),r=i(70049);function n(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(n(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},i=(0,l.lazy)(()=>t.loader().then(n)),c=t.loading;function d(e){let n=c?(0,a.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=t.ssr?(0,a.jsxs)(a.Fragment,{children:["undefined"==typeof window?(0,a.jsx)(r.PreloadCss,{moduleIds:t.modules}):null,(0,a.jsx)(i,{...e})]}):(0,a.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(i,{...e})});return(0,a.jsx)(l.Suspense,{fallback:n,children:o})}return d.displayName="LoadableComponent",d}},70049:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return s}});let a=i(57437),l=i(20544);function s(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let i=(0,l.getExpectedRequestStore)("next/dynamic css"),s=[];if(i.reactLoadableManifest&&t){let e=i.reactLoadableManifest;for(let i of t){if(!e[i])continue;let t=e[i].files.filter(e=>e.endsWith(".css"));s.push(...t)}}return 0===s.length?null:(0,a.jsx)(a.Fragment,{children:s.map(e=>(0,a.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:i.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},23716:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return U}});var a=i(57437),l=i(2265),s=i(48176),r=i(81798),n=i(12381),o=i(76858),c=i(82023);let d=(0,i(79205).Z)("Clapperboard",[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]]);var u=i(33276),p=i(27648),x=i(82394),m=i(93448),h=i(33145);let f={"from-bottom":{initial:{y:"100%",opacity:0}
1,animate:{y:0,opacity:1},exit:{y:"100%",opacity:0}},"from-center":{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.5,opacity:0}},"from-top":{initial:{y:"-100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-100%",opacity:0}},"from-left":{initial:{x:"-100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"-100%",opacity:0}},"from-right":{initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}},fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},"top-in-bottom-out":{initial:{y:"-100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"100%",opacity:0}},"left-in-right-out":{initial:{x:"-100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}}};function y(e){let{animationStyle:t="from-center",videoSrc:i,thumbnailSrc:s,thumbnailAlt:r="Video thumbnail",className:n}=e,[o,c]=(0,l.useState)(!1);return f[t],(0,a.jsx)("div",{className:(0,m.cn)("relative",n),children:(0,a.jsx)("div",{className:"relative rounded-md p-2 ring-1 ring-slate-200/50 dark:bg-gray-900/70 dark:ring-white/10 backdrop-blur-md",children:(0,a.jsx)(h.default,{src:s,alt:r,width:1920,height:1080,className:"rounded-md border"})})})}var g=i(97324);function b(e){let{src:t,children:i,className:l,useGradient:s=!1}=e,r="video-text-".concat(Math.random().toString(36).substr(2,9));return(0,a.jsxs)("div",{className:(0,m.cn)("relative inline-block",l),children:[(0,a.jsxs)("svg",{className:"absolute inset-0 w-full h-full",children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("mask",{id:r,children:[(0,a.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,a.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle",fill:"white",className:"font-bold text-6xl",children:i})]})}),(0,a.jsx)("foreignObject",{width:"100%",height:"100%",mask:"url(#".concat(r,")"),children:s?(0,a.jsx)("div",{className:"w-full h-full animate-pulse",style:{background:"linear-gradient(45deg, #a855f7, #ec4899, #ef4444, #f59e0b)",backgroundSize:"400% 400%",animation:"gradient-shift 3s ease infinite",width:"100%",height:"100%"}}):(0,a.jsxs)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-cover",style:{width:"100%",height:"100%"},children:[(0,a.jsx)("source",{src:t,type:"video/webm"}),(0,a.jsx)("source",{src:t,type:"video/mp4"})]})})]}),(0,a.jsx)("div",{className:"invisible font-bold text-6xl","aria-hidden":"true",children:i})]})}let v=(0,i(30166).default)(()=>Promise.all([i.e(6279),i.e(8182)]).then(i.bind(i,68182)),{loadableGenerated:{webpack:()=>[68182]},ssr:!1}),w=[.16,1,.3,1];function j(){return(0,a.jsx)(p.default,{href:"/app",children:(0,a.jsxs)(r.E.div,{className:"flex w-auto items-center space-x-2 rounded-full bg-white/10 px-3 py-1 ring-1 ring-white/20 backdrop-blur-sm cursor-pointer hover:bg-white/15 transition-colors",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.8,ease:w},children:[(0,a.jsx)("div",{className:"w-fit rounded-full bg-white/20 px-2 py-0.5 text-center text-xs font-medium text-white sm:text-sm",children:"✨ New"}),(0,a.jsx)("p",{className:"text-xs font-medium text-white/90 sm:text-sm",children:"Veo 3 is now supported"}),(0,a.jsx)(o.Z,{className:"h-3 w-3 text-white/70"})]})})}function N(){return(0,a.jsxs)("div",{className:"flex w-full max-w-4xl flex-col space-y-6 overflow-hidden pt-8",children:[(0,a.jsxs)(r.E.h1,{className:"text-center text-3xl font-bold leading-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",initial:{filter:"blur(10px)",opacity:0,y:50},animate:{filter:"blur(0px)",opacity:1,y:0},transition:{duration:1,ease:w,staggerChildren:.2},children:[(0,a.jsxs)(r.E.span,{className:"inline-block px-1 md:px-2 bg-gradient-to-r from-white via-white to-gray-300 bg-clip-text text-transparent",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:0,ease:w},children:["Viral"," "]}),(0,a.jsxs)(r.E.span,{className:"inline-block px-1 md:px-2",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1,ease:w},children:[(0,a.jsx)(b,{useGradient:!0,className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold",children:"AI Videos"})," "]}),(0,a.jsx)(r.E.span,{className:"inline-block px-1 md:px-2 bg-gradient-to-r from-white via-white to-gray-300 bg-clip-text text-transparent",initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{duration:.8,delay:.4,ease:w},children:"In Minutes"})]}),(0,a.jsx)(r.E.p,{className:"mx-auto max-w-2xl text-center text-lg leading-7 text-gray-300 sm:text-xl sm:leading-9",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.8,ease:w},children:"Create AI videos with music and voiceovers, edit and stitch them together, then export for TikTok, Reels, and YouTube Shorts."})]})}function k(){let e=(0,x.a)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(r.E.div,{className:"mx-auto mt-8 flex w-full max-w-2xl flex-col items-center justify-center space-y-4 sm:flex-row sm:space-x-4 sm:space-y-0",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8,duration:.8,ease:w},children:[(0,a.jsx)(p.default,{href:"/app",className:"w-full sm:w-auto",children:(0,a.jsxs)(n.z,{size:"lg",className:"w-full bg-white text-black hover:bg-gray-100 font-semibold text-base px-8 py-3 h-12 transition-all duration-200 hover:scale-105",children:[(0,a.jsx)(c.Z,{className:"mr-2 h-5 w-5"}),e?"Create Video":"Sign in with Google"]})}),(0,a.jsx)(p.default,{href:"/motion-design",className:"w-full sm:w-auto",children:(0,a.jsxs)(n.z,{size:"lg",variant:"outline",className:"w-full sm:w-auto border-violet-400/50 text-white bg-violet-500/10 hover:bg-violet-500/20 font-semibold text-base px-8 py-3 h-12 transition-all duration-200 hover:scale-105",children:[(0,a.jsx)(d,{className:"mr-2 h-5 w-5"}),"Motion Design"]})}),(0,a.jsxs)(n.z,{size:"lg",variant:"outline",disabled:!0,className:"w-full sm:w-auto border-white/20 text-white/50 bg-white/5 cursor-not-allowed font-semibold text-base px-8 py-3 h-12",children:[(0,a.jsx)(u.Z,{className:"mr-2 h-5 w-5"}),"Watch Demo"]})]})})}function S(){return(0,a.jsxs)(r.E.div,{className:"relative mx-auto flex w-full items-center justify-center",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{delay:1.2,duration:1,ease:w},children:[(0,a.jsx)(y,{animationStyle:"from-center",videoSrc:"https://www.youtube.com/",thumbnailSrc:"/showcase.webp",thumbnailAlt:"ReelPal AI video creation interface",className:"border rounded-lg shadow-2xl max-w-5xl mt-8 ring-1 ring-white/10"}),(0,a.jsx)("div",{className:"absolute -top-16 -right-16 w-32 h-32 bg-purple-500/20 rounded-full blur-3xl op
1acity-60"}),(0,a.jsx)("div",{className:"absolute -bottom-16 -left-16 w-32 h-32 bg-blue-500/20 rounded-full blur-3xl opacity-60"}),(0,a.jsx)("div",{className:"absolute top-1/2 -left-32 w-24 h-24 bg-pink-500/20 rounded-full blur-2xl opacity-40"}),(0,a.jsx)("div",{className:"absolute top-1/4 -right-32 w-24 h-24 bg-cyan-500/20 rounded-full blur-2xl opacity-40"})]})}function Z(){let[e,t]=(0,l.useState)([]),[i,s]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{let e=!0;return(async()=>{try{console.log("Fetching videos...");let i=await fetch("/api/showcase-videos");if(!i.ok){let e=await i.text();throw console.error("API Error:",e),Error("HTTP error! status: ".concat(i.status,", ").concat(e))}let a=await i.json();console.log("API Response:",a);let l=Array.isArray(a)?a:[];console.log("Processed videos:",{count:l.length,firstVideo:l[0],allVideoUrls:l.map(e=>null==e?void 0:e.videoUrl)}),e&&t(l)}catch(i){console.error("Error fetching videos:",i),e&&t([])}finally{e&&s(!1)}})(),()=>{e=!1}},[]),console.log("Rendering ImprovedHero with:",{videoCount:e.length,isLoading:i,firstVideo:e[0]}),(0,a.jsxs)("section",{id:"hero",className:"relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-black via-gray-900 to-black"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,_var(--tw-gradient-stops))] from-purple-900/20 via-transparent to-transparent"}),(0,a.jsxs)("div",{className:"relative flex w-full flex-col items-center justify-start pt-12 sm:pt-20 md:pt-32 pb-16",children:[(0,a.jsx)(g.Z,{delay:.2,children:(0,a.jsx)(j,{})}),(0,a.jsx)(g.Z,{delay:.4,children:(0,a.jsx)(N,{})}),(0,a.jsx)(g.Z,{delay:.6,children:(0,a.jsx)(k,{})}),(0,a.jsx)("div",{className:"w-screen mt-4 md:mt-8",children:(0,a.jsxs)("div",{className:"w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mt-8",children:[(0,a.jsx)(g.Z,{delay:.7,children:(0,a.jsx)(v,{videos:e,isLoading:i})}),(0,a.jsx)(r.E.div,{className:"mt-16 text-center font-bold",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.8},children:(0,a.jsx)("p",{className:"text-xl md:text-2xl text-gray-300 font-bold",children:"Generate and edit videos in a dedicated studio"})})]})}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(g.Z,{delay:.8,children:(0,a.jsx)(S,{})})}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-x-0 -bottom-12 h-1/3 bg-gradient-to-t from-black via-black to-transparent lg:h-1/4"})]})]})}var P=i(29374),E=i(53113),M=i(48662),A=i(22106),C=i(92735),I=i(68919);let _=[{icon:(0,a.jsx)(P.Z,{className:"h-6 w-6"}),title:"Best Video Models",description:"ReelPal is powered by the latest video models like Veo 3, Kling 2.1, Hunyuan, and more."},{icon:(0,a.jsx)(E.Z,{className:"h-6 w-6"}),title:"Best Image Models",description:"Choose from the most powerful image models like Imagen, Flux, GPT-Image-1, and more."},{icon:(0,a.jsx)(M.Z,{className:"h-6 w-6"}),title:"Add Voiceovers",description:"Want an AI-powered narration? Just feed a script and get high-quality voiceovers in seconds."},{icon:(0,a.jsx)(A.Z,{className:"h-6 w-6"}),title:"Add Music and Sound Effects",description:"Generate AI music and sound effects to make music videos, short films, or ASMR clips."},{icon:(0,a.jsx)(C.Z,{className:"h-6 w-6"}),title:"Edit and Export Videos",description:"Edit captions, overlays, transitions and audio, then export WebM in your browser at 720p or 1080p, up to 60 seconds."},{icon:(0,a.jsx)(I.Z,{className:"h-6 w-6"}),title:"Download and keep your video",description:"Download locally, or choose to save the finished video to your library. Keep this page open while rendering."}];function T(){return(0,a.jsxs)("section",{id:"features",className:"relative pb-12 bg-gradient-to-b from-black to-gray-900",children:[(0,a.jsxs)("div",{className:"container mx-auto px-4",children:[(0,a.jsx)(g.Z,{delay:.2,children:(0,a.jsxs)("div",{className:"text-center mb-16",children:[(0,a.jsxs)("div",{className:"inline-flex items-center rounded-full border border-white/10 bg-white/5 px-3 py-1 text-sm mb-6",children:[(0,a.jsx)(c.Z,{className:"mr-2 h-4 w-4 text-purple-400"}),(0,a.jsx)("span",{className:"text-gray-300",children:"Powerful Features"})]}),(0,a.jsxs)("h2",{className:"text-3xl md:text-5xl font-bold text-white mb-6",children:["Everything you need to create",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"bg-gradient-to-r from-purple-400 to-pink-400 bg-clip-text text-transparent",children:"viral content"})]}),(0,a.jsx)("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"ReelPal provides all the tools you need to create, edit, and share cool AI videos that drive traffic to your website."})]})}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:_.map((e,t)=>(0,a.jsx)(g.Z,{delay:.4+.1*t,children:(0,a.jsxs)(r.E.div,{className:"relative group p-6 rounded-2xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 backdrop-blur-sm hover:border-white/20 transition-all duration-300",whileHover:{y:-5},transition:{type:"spring",stiffness:300,damping:30},children:[(0,a.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-purple-500/10 to-pink-500/10 o
1pacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,a.jsxs)("div",{className:"relative z-10",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-gradient-to-br from-purple-500/20 to-pink-500/20 text-purple-400 mb-4 group-hover:scale-110 transition-transform duration-300",children:e.icon}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-white mb-3 group-hover:text-purple-300 transition-colors duration-300",children:e.title}),(0,a.jsx)("p",{className:"text-gray-400 leading-relaxed group-hover:text-gray-300 transition-colors duration-300",children:e.description})]}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-r from-purple-500/20 to-pink-500/20 blur-xl opacity-0 group-hover:opacity-30 transition-opacity duration-500 -z-10"})]})},t))})]}),(0,a.jsx)("div",{className:"absolute top-1/4 left-10 w-20 h-20 bg-purple-500/10 rounded-full blur-2xl"}),(0,a.jsx)("div",{className:"absolute bottom-1/4 right-10 w-32 h-32 bg-pink-500/10 rounded-full blur-3xl"})]})}async function z(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"paypal",a="reelpal:checkout:v1:".concat(e,":").concat(i,":").concat(t),l=sessionStorage.getItem(a);l||(l=crypto.randomUUID(),sessionStorage.setItem(a,l));let s=await fetch("paypal"===i?"/api/checkout":"/api/checkout/stripe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscriptionType:t,idempotencyKey:l})}),r=await s.json();if(!s.ok||"string"!=typeof r.url)throw Error(r.error||"Checkout is pending. Open billing before trying another payment.");let n=new URL(r.url);if("https:"!==n.protocol||!["www.paypal.com","www.sandbox.paypal.com","checkout.stripe.com"].includes(n.hostname))throw Error("Invalid checkout destination");window.location.assign(n.toString())}var O=i(98617),R=i(86595),V=i(30401),H=i(11239),L=i(99376),D=i(23340);let G=[{name:"Starter",price:"$19.99",period:"per month",subscriptionType:"starter",description:"Perfect for getting started",features:[{text:"200 credits"},{text:"Support for premium AI models"},{text:"Export HD videos"}],cta:"Get Started",popular:!1,gradient:"from-gray-500/20 to-gray-600/20"},{name:"Growth",price:"$49.99",period:"per month",subscriptionType:"growth",description:"For content creators",features:[{text:"500 credits"},{text:"Support for premium AI models"},{text:"Export HD videos"}],cta:"Choose Growth",popular:!0,gradient:"from-purple-500/20 to-pink-500/20"},{name:"Pro",price:"$99.99",period:"per month",subscriptionType:"pro",description:"For teams and agencies",features:[{text:"1,500 credits"},{text:"Support for premium AI models"},{text:"Export HD videos"},{text:"Captions, overlays and transitions"}],cta:"Choose Pro",popular:!1,gradient:"from-blue-500/20 to-cyan-500/20"}];function F(){let[e,t]=(0,l.useState)("paypal"),[i,s]=(0,l.useState)(null),[o,c]=(0,l.useState)(null),[d,u]=(0,l.useState)(!0),m=(0,x.a)(),h=null==m?void 0:m.id,f=(0,L.useRouter)(),{toast:y}=(0,D.pm)();(0,l.useEffect)(()=>{let e=new AbortController;return c(null),u(!!h),h&&fetch("/api/subscription/status",{signal:e.signal,cache:"no-store"}).then(async t=>{if(t.ok){let i=await t.json();e.signal.aborted||c(i)}}).catch(()=>{}).finally(()=>{e.signal.aborted||u(!1)}),()=>e.abort()},[h]);let b=async t=>{if(!m){f.push("/app");return}if(null==o?void 0:o.hasActiveSubscription){f.push("/billing");return}s(t);try{await z(m.id,t,e)}catch(e){y({title:"Checkout pending or unavailable",description:e instanceof Error?e.message:"Open billing to check your payment.",variant:"destructive"})}finally{s(null)}},v=e=>d?"Loading...":(null==o?void 0:o.hasActiveSubscription)?"Manage Subscription":e.cta,w=e=>(null==o?void 0:o.hasActiveSubscription)&&o.subscriptionType===e.subscriptionType?"w-full font-semibold transition-all duration-200 hover:scale-105 bg-green-600 hover:bg-green-700 text-white":"w-full font-semibold transition-all duration-200 hover:scale-105 ".concat(e.popular?"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white":"bg-white text-black hover:bg-gray-100");return(0,a.jsxs)("section",{className:"relative py-24 bg-gradient-to-b from-gray-900 to-black",children:[(0,a.jsxs)("div",{className:"container mx-auto px-4",children:[(0,a.jsxs)("div",{className:"mb-8 flex flex-wrap items-center justify-center gap-4 text-white",children:[(0,a.jsxs)("label",{children:["Payment method ",(0,a.jsxs)("select",{className:"ml-2 roun
1ded border border-gray-600 bg-gray-900 p-2",value:e,disabled:!!i,onChange:e=>t(e.target.value),children:[(0,a.jsx)("option",{value:"paypal",children:"PayPal (default)"}),(0,a.jsx)("option",{value:"stripe",children:"Card via Stripe"})]})]}),(0,a.jsx)(p.default,{href:"/billing",className:"underline",children:"Manage billing / pending payments"})]}),(0,a.jsx)(g.Z,{delay:.2,children:(0,a.jsxs)("div",{className:"text-center mb-16",children:[(0,a.jsxs)("div",{className:"inline-flex items-center rounded-full border border-white/10 bg-white/5 px-3 py-1 text-sm mb-6",children:[(0,a.jsx)(O.Z,{className:"mr-2 h-4 w-4 text-yellow-400"}),(0,a.jsx)("span",{className:"text-gray-300",children:"Simple Pricing"})]}),(0,a.jsxs)("h2",{className:"text-2xl md:text-4xl font-bold text-white mb-6",children:["Choose your"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-yellow-400 to-orange-400 bg-clip-text text-transparent",children:"creative plan"})]}),(0,a.jsx)("p",{className:"text-gray-400 text-sm",children:"Start creating today • Cancel anytime"})]})}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:G.map((e,t)=>(0,a.jsx)(g.Z,{delay:.4+.1*t,children:(0,a.jsxs)(r.E.div,{className:"relative group p-8 rounded-3xl border backdrop-blur-sm transition-all duration-300 h-full flex flex-col ".concat(e.popular?"border-purple-500/50 bg-gradient-to-br from-purple-500/10 to-pink-500/10 scale-105":"border-white/10 bg-gradient-to-br from-white/5 to-white/[0.02] hover:border-white/20"),whileHover:{y:-5},transition:{type:"spring",stiffness:300,damping:30},children:[e.popular&&(0,a.jsx)("div",{className:"absolute -top-4 left-1/2 transform -translate-x-1/2",children:(0,a.jsxs)("div",{className:"inline-flex items-center space-x-1 bg-gradient-to-r from-purple-500 to-pink-500 text-white text-sm font-medium px-3 py-1 rounded-full",children:[(0,a.jsx)(R.Z,{className:"h-3 w-3"}),(0,a.jsx)("span",{children:"Most Popular"})]})}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-3xl bg-gradient-to-br ".concat(e.gradient," opacity-0 group-hover:opacity-100 transition-opacity duration-300")}),(0,a.jsxs)("div",{className:"relative z-10 flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:e.name}),(0,a.jsx)("p",{className:"text-gray-400 text-sm mb-4",children:e.description}),(0,a.jsxs)("div",{className:"flex items-baseline justify-center",children:[(0,a.jsx)("span",{className:"text-4xl font-bold text-white",children:e.price}),(0,a.jsxs)("span",{className:"text-gray-400 ml-2",children:["/",e.period]})]})]}),(0,a.jsx)("ul",{className:"space-y-4 mb-8 flex-grow",children:e.features.map((t,i)=>(0,a.jsxs)("li",{className:"flex items-center space-x-3",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center ".concat(e.popular?"bg-purple-500/20":"bg-white/10"),children:(0,a.jsx)(V.Z,{className:"h-3 w-3 ".concat(e.popular?"text-purple-400":"text-green-400")})}),(0,a.jsx)("div",{className:"flex items-center space-x-2 flex-grow",children:(0,a.jsx)("span",{className:"text-gray-300 text-sm",children:t.text})})]},i))}),(0,a.jsx)("div",{className:"mt-auto",children:(0,a.jsx)(n.z,{onClick:()=>b(e.subscriptionType),disabled:!!i||d,className:w(e),size:"lg",children:i===e.subscriptionType?"Loading...":(0,a.jsxs)(a.Fragment,{children:[e.popular&&(0,a.jsx)(H.Z,{className:"mr-2 h-4 w-4"}),v(e)]})})})]}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-3xl bg-gradient-to-r ".concat(e.gradient," blur-xl opacity-0 group-hover:opacity-30 transition-opacity duration-500 -z-10")})]})},t))})]}),(0,a.jsx)("div",{className:"absolute top-1/3 left-20 w-24 h-24 bg-purple-500/10 rounded-full blur-3xl"}),(0,a.jsx)("div",{className:"absolute bottom-1/3 right-20 w-32 h-32 bg-pink-500/10 rounded-full blur-3xl"})]})}var q=i(85223),B=i(62432);function U(){return(0,l.useEffect)(()=>{let e=window.location.hash;if(e){let t=e.replace("#",""),i=document.getElementById(t);if(i){let e=setTimeout(()=>{i.scrollIntoView({behavior:"smooth"})},500);return()=>clearTimeout(e)}}},[]),(0,a.jsxs)("div",{className:"min-h-screen bg-black text-white relative overflow-hidden",children:[(0,a.jsx)(s.default,{}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(Z,{}),(0,a.jsxs)("div",{className:"relative z-0",children:[(0,a.jsx)(T,{}),(0,a.jsx)(F,{}),(0,a.jsx)(q.Z,{})]})]}),(0,a.jsx)(B.Z,{})]})}}},function(e){e.O(0,[5014,2249,3145,8108,8176,4361,2971,2117,1744],function(){return e(e.s=88350)}),_N_E=e.O()}]);

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.