PageSourceSearch

https://artcreate.ai/_next/static/chunks/28221-87cbcb50cc18adcd.js

js artcreate.ai collected 2026-10-05 13:10:20 UTC 169,502 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28221],{513:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ImageToVideoShowcase:()=>p});var a=s(47808),i=s(71500),r=s(24309),l=s(79861),n=s(78627),c=s(60192),o=s(16934),d=s(67202),m=s(5784),u=s(72100),x=s(57169);function h(e){let{item:t,index:s}=e,d=(0,i.useRef)(null),[u,h]=(0,i.useState)(!1),[p,g]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(u){let e=setTimeout(()=>{g(!0),d.current&&d.current.play().catch(()=>{})},100);return()=>clearTimeout(e)}d.current&&(d.current.pause(),d.current.currentTime=0),g(!1)},[u]),(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.05*s,ease:[.22,1,.36,1]},children:(0,a.jsx)(m.Zp,{className:"group h-full overflow-hidden border-0 transition-all duration-300 hover:shadow-xl hover:shadow-primary/20",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:(0,a.jsxs)(m.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden",children:[(0,a.jsx)(o.oD,{src:t.static_image,alt:t.title||"Static image",className:(0,x.cn)("h-full w-full object-cover transition-all duration-500",p?"opacity-0 scale-105":"opacity-100 scale-100")}),(0,a.jsx)("video",{ref:d,src:t.video_url,muted:!0,loop:!0,playsInline:!0,className:(0,x.cn)("absolute inset-0 h-full w-full object-cover transition-opacity duration-500",p?"opacity-100":"opacity-0")}),(0,a.jsx)("div",{className:"absolute bottom-3 left-3 flex items-center gap-2",children:(0,a.jsx)("div",{className:(0,x.cn)("flex items-center gap-1.5 rounded-full px-3 py-1.5 text-xs font-medium backdrop-blur-sm transition-all duration-300",p?"bg-primary text-primary-foreground":"bg-black/60 text-white"),children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{className:"h-3 w-3"}),"Playing"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{className:"h-3 w-3"}),"Static"]})})}),t.motion_type&&(0,a.jsx)("div",{className:"absolute right-3 top-3",children:(0,a.jsx)("span",{className:"rounded bg-black/60 px-2 py-1 text-xs font-medium text-white backdrop-blur-sm",children:t.motion_type})}),!u&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 transition-opacity duration-300 group-hover:opacity-0",children:(0,a.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-white/90 shadow-lg",children:(0,a.jsx)(c.A,{className:"h-6 w-6 translate-x-0.5 text-black"})})})]}),(t.title||t.description)&&(0,a.jsxs)("div",{className:"p-4",children:[t.title&&(0,a.jsx)("h4",{className:"text-foreground mb-1 font-semibold",children:t.title}),t.description&&(0,a.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:t.description})]})]})})})}function p(e){let{section:t,className:s}=e,l=t.groups||[],n=t.items||[],[c,o]=(0,i.useState)(l.length>0?l[0].name:"all"),m=(0,i.useMemo)(()=>c&&"all"!==c?n.filter(e=>e.category===c):n,[n,c]);return(0,a.jsx)("section",{id:t.id,className:(0,x.cn)("bg-muted/30 py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(u.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),l.length>0&&(0,a.jsx)(r.P.div,{className:"mb-8 flex flex-wrap justify-center gap-3",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:l.map(e=>{let t=c===e.name;return(0,a.jsx)(d.$,{variant:t?"default":"outline",size:"sm",onClick:()=>o(e.name),children:e.title},e.name)})}),(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:m.map((e,t)=>(0,a.jsx)(h,{item:e,index:t},t))}),0===m.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No examples found in this category."}),(0,a.jsx)(r.P.div,{className:"mt-8 text-center",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.3},children:(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Hover over images to see them come to life"})})]})})}},5784:(e,t,s)=>{"use strict";s.d(t,{BT:()=>c,Wu:()=>d,X9:()=>o,ZB:()=>n,Zp:()=>r,aR:()=>l,wL:()=>m});var a=s(47808);s(71500);var i=s(57169);function r(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,i.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...s})}function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,i.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...s})}function n(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,i.cn)("leading-none font-semibold",t),...s})}function c(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,i.cn)("text-muted-foreground text-sm",t),...s})}function o(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-action",className:(0,i.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...s})}function d(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,i.cn)("px-6",t),...s})}function m(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-footer",className:(0,i.cn)("flex items-center px-6 [.border-t]:pt-6",t),...s})}},6589:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Features:()=>o});var a=s(47808),i=s(95784),r=s.n(i),l=s(18512),n=s(72100),c=s(57169);function o(e){var t;let{section:s,className:i}=e;return(0,a.jsx)("section",{id:s.id,className:(0,c.cn)("py-16 md:py-24",s.className,i),children:(0,a.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:s.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:s.description})]})}),(0,a.jsx)(n.ScrollAnimation,{delay:.2,children:(0,a.jsx)("div",{className:"relative mx-auto grid divide-x divide-y border *:p-12 sm:grid-cols-2 lg:grid-cols-3",children:null==(t=s.items)?void 0:t.map((e,t)=>{let s=(0,a.jsxs)("div",{className:(0,c.cn)("space-y-3",e.url&&"group cursor-pointer"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.L,{name:e.icon,size:24,className:(0,c.cn)(e.url&&"group-hover:text-primary transition-colors")}),(0,a.jsx)("h3",{className:(0,c.cn)("text-sm font-medium",e.url&&"group-hover:text-primary transition-colors"),children:e.title})]}),(0,a.jsx)("p",{className:"text-sm",children:e.description&&e.description.split(/(\*\*.*?\*\*)/g).map((e,t)=>e.startsWith("**")&&e.endsWith("**")?(0,a.jsx)("strong",{className:"font-bold text-foreground",children:e.slice(2,-2)},t):e)}),e.url&&(0,a.jsxs)("div",{className:"text-primary text-sm font-medium opacity-0 group-hover:opacity-100 transition-opacity flex items-center gap-1",children:["Try it now",(0,a.jsx)(l.L,{name:"RiArrowRightLine",size:14})]})]});return e.url?(0,a.jsx)(r(),{href:e.url,className:"block hover:bg-muted/50 transition-colors",children:s},t):(0,a.jsx)("div",{children:s},t)})})})]})})}},6804:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Testimonials:()=>l});var a=s(47808),i=s(16934),r=s(72100);function l(e){var t;let{section:s,className:l}=e,n=e=>{var t,s,r,l;let{item:n}=e;return(0,a.jsxs)("div",{className:"bg-card/25 ring-foreground/[0.07] flex flex-col justify-end gap-6 rounded-(--radius) border border-transparent p-8 ring-1",children:[(0,a.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:n.quote||n.description}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"ring-foreground
1/10 aspect-square size-9 overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,a.jsx)(i.oD,{src:(null==(t=n.image)?void 0:t.src)||(null==(s=n.avatar)?void 0:s.src)||"",alt:(null==(r=n.image)?void 0:r.alt)||(null==(l=n.avatar)?void 0:l.alt)||n.name||"",className:"h-full w-full object-cover"})}),(0,a.jsxs)("h3",{className:"sr-only",children:[n.name,", ",n.role||n.title]}),(0,a.jsxs)("div",{className:"space-y-px",children:[(0,a.jsxs)("p",{className:"text-sm font-medium",children:[n.name," "]}),(0,a.jsx)("p",{className:"text-muted-foreground text-xs",children:n.role||n.title})]})]})]})};return(0,a.jsx)("section",{id:s.id,className:"py-16 md:py-24 ".concat(s.className," ").concat(l),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(r.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:s.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:s.description})]})}),(0,a.jsx)(r.ScrollAnimation,{delay:.2,children:(0,a.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,a.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-px lg:*:nth-1:rounded-t-none lg:*:nth-2:rounded-tl-none lg:*:nth-2:rounded-br-none lg:*:nth-3:rounded-l-none lg:*:nth-4:rounded-r-none lg:*:nth-5:rounded-tl-none lg:*:nth-5:rounded-br-none lg:*:nth-6:rounded-b-none",children:null==(t=s.items)?void 0:t.map((e,t)=>(0,a.jsx)(n,{item:e},t))})})})]})})}},15505:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FAQAccordion:()=>r});var a=s(47808),i=s(10780);function r(e){let{items:t}=e;return(0,a.jsx)(i.Accordion,{type:"single",collapsible:!0,className:"bg-muted dark:bg-muted/50 w-full rounded-2xl p-1",children:t.map((e,t)=>(0,a.jsxs)("div",{className:"group",children:[(0,a.jsxs)(i.AccordionItem,{value:e.question||e.title||"",className:"data-[state=open]:bg-card dark:data-[state=open]:bg-muted peer rounded-xl border-none px-7 py-1 data-[state=open]:border-none data-[state=open]:shadow-sm",children:[(0,a.jsx)(i.AccordionTrigger,{className:"cursor-pointer text-base hover:no-underline",children:e.question||e.title||""}),(0,a.jsx)(i.AccordionContent,{children:(0,a.jsx)("p",{className:"text-base",children:e.answer||e.description||""})})]}),(0,a.jsx)("hr",{className:"mx-7 border-dashed group-last:hidden peer-data-[state=open]:opacity-0"})]},t))})}},15846:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Pricing:()=>S});var a=s(47808),i=s(71500),r=s(21008),l=s(47706),n=s(97326),c=s(88480),o=s(31963),d=s(16934),m=s(67202),u=s(47974),x=s(83817),h=s(89602),p=s(26924),g=s(43040),f=s(96393),j=s(74748),v=s(57169);function b(e){let{configs:t,callbackUrl:s,loading:l,setLoading:d,pricingItem:u,onCheckout:x,className:p}=e;(0,c.c3)("common.payment"),(0,f.rd)();let{setIsShowPaymentModal:b}=(0,h.U)(),[N,y]=(0,i.useState)(null);if(s){let e=(0,n.Ym)();e!==j.q&&s.startsWith("/")&&!s.startsWith("/".concat(e))&&(s="/".concat(e).concat(s))}let w=async e=>{let{provider:t}=e;return t?u?void x(u,t):void o.oR.error("please select a pricing item"):void o.oR.error("please select payment method")},k=null==u?void 0:u.payment_providers,_=e=>!k||0===k.length||k.includes(e),A=[];return"true"===t.stripe_enabled&&_("stripe")&&A.push({name:"stripe",title:"Stripe",icon_url:"/imgs/icons/stripe.png",onClick:()=>w({provider:"stripe"})}),"true"===t.creem_enabled&&_("creem")&&A.push({name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:()=>w({provider:"creem"})}),"true"===t.paypal_enabled&&_("paypal")&&A.push({name:"paypal",title:"Paypal",icon_url:"/imgs/icons/paypal.svg",onClick:()=>w({provider:"paypal"})}),(0,a.jsx)("div",{className:(0,v.cn)("flex w-full items-center gap-2","flex-col justify-between",p),children:A.map(e=>(0,a.jsxs)(m.$,{variant:"outline",className:(0,v.cn)("w-full gap-2"),disabled:l,onClick:()=>{if(!e.onClick||!e.name)return void o.oR.error("invalid payment method");y(e.name),e.onClick()},children:[e.icon_url&&(0,a.jsx)(g.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,a.jsx)("h3",{children:e.title}),N===e.name&&l&&(0,a.jsx)(r.A,{className:"size-4 animate-spin"})]},e.name))})}function N(e){let{isLoading:t,pricingItem:s,onCheckout:i}=e,r=(0,c.c3)("common.payment"),{isShowPaymentModal:l,setIsShowPaymentModal:n}=(0,h.U)(),{configs:o}=(0,h.U)();return(0,p.U)("(min-width: 768px)")?(0,a.jsx)(u.lG,{open:l,onOpenChange:n,children:(0,a.jsxs)(u.Cf,{className:"sm:max-w-[425px]",children:[(0,a.jsxs)(u.c7,{children:[(0,a.jsx)(u.L3,{children:r("choose_payment_method")}),(0,a.jsx)(u.rr,{children:r("choose_payment_method_description")})]}),(0,a.jsx)(b,{callbackUrl:"/",configs:o,loading:t,setLoading:()=>{},pricingItem:s,onCheckout:i})]})}):(0,a.jsx)(x._s,{open:l,onOpenChange:n,children:(0,a.jsxs)(x.zj,{
1children:[(0,a.jsxs)(x.BE,{className:"text-left",children:[(0,a.jsx)(x.gk,{children:r("choose_payment_method")}),(0,a.jsx)(x.I6,{children:r("choose_payment_method_description")})]}),(0,a.jsx)(b,{callbackUrl:"/",configs:o,loading:t,setLoading:()=>{},pricingItem:s,onCheckout:i,className:"px-4"}),(0,a.jsx)(x.tb,{className:"pt-4",children:(0,a.jsx)(x.cp,{asChild:!0,children:(0,a.jsx)(m.$,{variant:"outline",children:r("cancel_title")})})})]})})}var y=s(85227),w=s(5784),k=s(51022),_=s(29650),A=s(92938);function z(e){if(!e)return[];let t={currency:e.currency,amount:e.amount,price:e.price||"",original_price:e.original_price||""};return e.currencies&&e.currencies.length>0?[t,...e.currencies]:[t]}function S(e){var t,s,u;let{section:x,className:p,currentSubscription:g}=e,f=(0,n.Ym)(),j=(0,c.c3)("pages.pricing.messages"),{user:b,isShowPaymentModal:S,setIsShowSignModal:C,setIsShowPaymentModal:P,configs:I}=(0,h.U)(),[L,V]=(0,i.useState)(()=>{var e,t,s,a;let i=null==(e=x.items)?void 0:e.find(e=>e.product_id===(null==g?void 0:g.productId)),r=null==(t=x.groups)?void 0:t.find(e=>e.is_featured);return(null==i?void 0:i.group)||(null==r?void 0:r.name)||(null==(a=x.groups)||null==(s=a[0])?void 0:s.name)}),[M,T]=(0,i.useState)(null),[E,R]=(0,i.useState)(!1),[F,W]=(0,i.useState)(null),[$,D]=(0,i.useState)({});(0,i.useEffect)(()=>{if(x.items&&x.items.length>0){let e={};x.items.forEach(t=>{let s=z(t),a=function(e,t,s){if(0===e.length)return s;if("zh"===t){let t=e.find(e=>"cny"===e.currency.toLowerCase());if(t)return t.currency}return s}(s,f,t.currency),i=s.find(e=>e.currency.toLowerCase()===a.toLowerCase()),r=i?{...t,currency:i.currency,amount:i.amount,price:i.price,original_price:i.original_price,payment_product_id:i.payment_product_id||t.payment_product_id,payment_providers:i.payment_providers||t.payment_providers}:t;e[t.product_id]={selectedCurrency:a,displayedItem:r}}),D(e)}},[x.items,f]);let q=async e=>{var t;if(!b)return void C(!0);let s=(null==(t=$[e.product_id])?void 0:t.displayedItem)||e;"true"===I.select_payment_enabled?(T(s),P(!0)):U(s,I.default_payment_provider)},U=async(e,t)=>{try{if(!b)return void C(!0);let s=(e=>{let{paymentProvider:t}=e,s={};return"true"===I.affonso_enabled&&["stripe","creem"].includes(t)&&(s.affonso_referral=(0,A.Ri)("affonso_referral")||""),"true"===I.promotekit_enabled&&["stripe"].includes(t)&&(s.promotekit_referral=window.promotekit_referral?window.promotekit_referral:(0,A.Ri)("promotekit_referral")||""),s})({paymentProvider:t||""}),a={product_id:e.product_id,currency:e.currency,locale:f||"en",payment_provider:t||"",metadata:s};R(!0),W(e.product_id);let i=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(401===i.status){R(!1),W(null),T(null),C(!0);return}if(!i.ok)throw Error("request failed with status ".concat(i.status));let{code:r,message:l,data:n}=await i.json();if(0!==r)throw Error(l);let{checkoutUrl:c}=n;if(!c)throw Error("checkout url not found");window.location.href=c}catch(e){console.log("checkout failed: ",e),o.oR.error("checkout failed: "+e.message),R(!1),W(null)}};return(0,i.useEffect)(()=>{if(x.items){var e;let t=x.items.find(e=>e.is_featured);W((null==t?void 0:t.product_id)||(null==(e=x.items[0])?void 0:e.product_id)),R(!1)}},[x.items]),(0,a.jsxs)("section",{id:x.id,className:(0,v.cn)("py-24 md:py-36",x.className,p),children:[(0,a.jsxs)("div",{className:"mx-auto mb-12 px-4 text-center md:px-8",children:[x.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:x.sr_only_title}),(0,a.jsx)("h2",{className:"mb-6 text-3xl font-bold text-pretty lg:text-4xl",children:x.title}),(0,a.jsx)("p",{className:"text-muted-foreground mx-auto mb-4 max-w-xl lg:max-w-none lg:text-lg",children:x.description})]}),(0,a.jsxs)("div",{className:"container",children:[x.groups&&x.groups.length>0&&(0,a.jsx)("div",{className:"mx-auto mt-8 mb-16 flex w-full justify-center md:max-w-lg",children:(0,a.jsx)(_.tU,{value:L,onValueChange:V,className:"",children:(0,a.jsx)(_.j7,{children:x.groups.map((e,t)=>(0,a.jsxs)(_.Xi,{value:e.name||"",children:[e.title,e.label&&(0,a.jsx)(y.E,{className:"ml-2",children:e.label})]},t))})})}),(0,a.jsx)("div",{className:"mx-auto mt-0 grid w-full gap-6 md:grid-cols-".concat(null==(s=x.items)||null==(t=s.filter(e=>!e.group||e.group===L))?void 0:t.length),children:null==(u=x.items)?void 0:u.map((e,t)=>{var s,i,n,c;if(e.group&&e.group!==L)return null;let o=!1;g&&g.productId===e.product_id&&(o=!0);let u=$[e.product_id],h=(null==u?void 0:u.displayedItem)||e,p=(null==u?void 0:u.selectedCurrency)||e.currency,f=z(e);return(0,a.jsxs)(w.Zp,{className:"relative",children:[e.label&&(0,a.jsx)("span",{className:"absolute inset-x-0 -top-3 mx-auto flex h-6 w-fit items-center rounded-full bg-linear-to-br/increasing from-purple-400 to-amber-300 px-3 py-1 text-xs font-medium text-amber-950 ring-1 ring-white/20 ring-offset-1 ring-offset-gray-950/5 ring-inset",children:e.label}),(0,a.jsxs)(w.aR,{children:[(0,a.jsx)(w.ZB,{className:"font-medium",children:(0,a.jsx)("h3",{className:"text-sm font-medium",children:e.title})}),(0,a.jsxs)("div",{className:"my-3 flex items-baseline gap-2",children:[h.original_price&&(0,a.jsx)("span",{className:"text-muted-foreground text-sm line-through",children:h.original_price}),(0,a.jsxs)("div",{className:"my-3 block text-2xl font-semibold",children:[(0,a.jsx)("span",{className:"text-primary",children:h.price})," ",h.unit?(0,a.jsx)("span",{className:"text-muted-foreground text-sm font-normal",children:h.unit}):""]}),f.length>1&&(0,a.jsxs)(k.l6,{value:p,onValueChange:t=>((e,t)=>{var s;let a=null==(s=x.items)?void 0:s.find(t=>t.product_id===e);if(!a)return;let i=z(a).find(e=>e.currency.toLowerCase()===t.toLowerCase());if(i){let s={...a,currency:i.currency,amount:i.amount,price:i.price,original_price:i.original_price,payment_product_id:i.payment_product_id||a.payment_product_id,payment_providers:i.payment_providers||a.payment_providers};D(a=>({...a,[e]:{selectedCurrency:t,displayedItem:s}}))}})(e.product_id,t),children:[(0,a.jsx)(k.bq,{size:"sm",className:"border-muted-foreground
1/30 bg-background/50 h-6 min-w-[60px] px-2 text-xs",children:(0,a.jsx)(k.yv,{placeholder:"Currency"})}),(0,a.jsx)(k.gC,{children:f.map(e=>(0,a.jsx)(k.eb,{value:e.currency,className:"text-xs",children:e.currency.toUpperCase()},e.currency))})]})]}),(0,a.jsx)(w.BT,{className:"text-sm",children:e.description}),e.tip&&(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:e.tip}),o?(0,a.jsx)(m.$,{variant:"outline",className:"mt-4 h-9 w-full px-4 py-2",disabled:!0,children:(0,a.jsx)("span",{className:"hidden text-sm md:block",children:j("current_plan")})}):(0,a.jsx)(m.$,{onClick:()=>q(e),disabled:E,className:(0,v.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","mt-4 h-9 w-full px-4 py-2","bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md shadow-black/20"),children:E&&e.product_id===F?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A,{className:"size-4 animate-spin"}),(0,a.jsx)("span",{className:"block",children:j("processing")})]}):(0,a.jsxs)(a.Fragment,{children:[(null==(s=e.button)?void 0:s.icon)&&(0,a.jsx)(d.LK,{name:null==(i=e.button)?void 0:i.icon,className:"size-4"}),(0,a.jsx)("span",{className:"block",children:null==(n=e.button)?void 0:n.title})]})})]}),(0,a.jsxs)(w.Wu,{className:"space-y-4",children:[(0,a.jsx)("hr",{className:"border-dashed"}),e.features_title&&(0,a.jsx)("p",{className:"text-sm font-medium",children:e.features_title}),(0,a.jsx)("ul",{className:"list-outside space-y-3 text-sm",children:null==(c=e.features)?void 0:c.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.A,{className:"size-3"}),e]},t))})]})]},t)})})]}),(0,a.jsx)(N,{isLoading:E,pricingItem:M,onCheckout:(e,t)=>U(e,t)})]})}},15889:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Stats:()=>r});var a=s(47808),i=s(72100);function r(e){var t;let{section:s,className:r}=e;return(0,a.jsx)("section",{id:s.id,className:"py-12 md:py-24 ".concat(s.className," ").concat(r),children:(0,a.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[(0,a.jsx)(i.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:s.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:s.description})]})}),(0,a.jsx)(i.ScrollAnimation,{delay:.2,children:(0,a.jsx)("div",{className:"grid gap-12 divide-y *:text-center md:grid-cols-3 md:gap-2 md:divide-x md:divide-y-0",children:null==(t=s.items)?void 0:t.map((e,t)=>(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,a.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,a.jsx)("p",{children:e.description})]},t))})})]})})}},16116:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SimpleHeader:()=>v});var a=s(47808),i=s(71500),r=s(96393),l=s(21696),n=s(73561),c=s(18512),o=s(36153),d=s(45e3),m=s(67202),u=s(87631),x=s(60179),h=s(53710),p=s(86678),g=s(57169);function f(e){let{item:t,pathname:s}=e,[n,o]=(0,i.useState)(!1);if(t.children&&t.children.length>0)return(0,a.jsxs)(u.rI,{open:n,onOpenChange:o,children:[(0,a.jsx)(u.ty,{asChild:!0,children:(0,a.jsxs)("button",{className:(0,g.cn)("inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-3 text-sm font-medium transition-colors","text-muted-foreground hover:bg-accent hover:text-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[t.icon&&(0,a.jsx)(c.L,{name:t.icon,size:16}),(0,a.jsx)("span",{children:t.title}),(0,a.jsx)(l.A,{className:(0,g.cn)("h-3.5 w-3.5 opacity-70 transition-transform duration-200",n&&"rotate-180")})]})}),(0,a.jsx)(u.SQ,{align:"center",className:"min-w-[640px] p-6",children:(0,a.jsx)("div",{className:"space-y-4",children:(()=>{let e=t.children.filter(e=>!e.children||0===e.children.length),i=t.children.filter(e=>e.children&&e.children.length>0);return(0,a.jsxs)(a.Fragment,{children:[e.length>0&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-muted-foreground",children:t.title}),(0,a.jsx)("div",{className:"grid grid-cols-4 gap-x-6 gap-y-2",children:e.map(e=>{let t=!!(e.url&&s.endsWith(e.url));return(0,a.jsxs)(r.N_,{href:e.url||"#",className:(0,g.cn)("flex items-center gap-3 px-2 py-2 rounded-lg text-base font-medium transition-all duration-200","hover:text-foreground hover:bg-accent/50",t?"text-foreground bg-accent":"text-foreground
1/80"),children:[e.icon&&(0,a.jsx)(c.L,{name:e.icon,size:20}),(0,a.jsx)("span",{children:e.title})]},e.url||e.title)})})]}),i.map((t,i)=>(0,a.jsxs)("div",{className:"space-y-3",children:[(e.length>0||i>0)&&(0,a.jsx)("div",{className:"h-px bg-border -mx-6"}),(0,a.jsx)("div",{className:"text-sm font-medium text-muted-foreground",children:t.title}),(0,a.jsx)("div",{className:"grid grid-cols-4 gap-3",children:t.children.map(e=>{let t=!!(e.url&&s.endsWith(e.url));return(0,a.jsx)(r.N_,{href:e.url||"#",className:(0,g.cn)("flex items-center justify-center rounded-xl border bg-card py-2 text-sm font-medium transition-all duration-200","hover:shadow-md hover:border-foreground/30 hover:bg-accent hover:-translate-y-0.5",t&&"shadow-sm border-foreground/20 bg-accent"),children:e.title},e.url||e.title)})})]},t.title))]})})()})})]});let d=!!(t.url&&s.endsWith(t.url));return(0,a.jsxs)(r.N_,{href:t.url||"#",className:(0,g.cn)("inline-flex h-9 items-center justify-center gap-2 rounded-md px-3 text-sm font-medium transition-colors",d?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[t.icon&&(0,a.jsx)(c.L,{name:t.icon,size:16}),(0,a.jsx)("span",{children:t.title})]})}function j(e){let{item:t,pathname:s,onClose:n}=e,[o,d]=(0,i.useState)(!1);if(t.children&&t.children.length>0)return(0,a.jsxs)(h.Nt,{open:o,onOpenChange:d,children:[(0,a.jsxs)(h.R6,{className:"flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium hover:bg-accent",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[t.icon&&(0,a.jsx)(c.L,{name:t.icon,size:16}),t.title]}),(0,a.jsx)(l.A,{className:(0,g.cn)("h-4 w-4 transition-transform",o&&"rotate-180")})]}),(0,a.jsx)(h.Ke,{className:"pl-4",children:(0,a.jsx)("div",{className:"flex flex-col gap-1 py-2",children:t.children.map((e,t)=>{if(e.children&&e.children.length>0)return(0,a.jsxs)("div",{className:"space-y-1",children:[t>0&&(0,a.jsx)("div",{className:"my-2 h-px bg-border"}),(0,a.jsx)("div",{className:"px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:e.title}),e.children.map(e=>{let t=e.url&&s.endsWith(e.url);return(0,a.jsxs)(r.N_,{href:e.url||"#",onClick:n,className:(0,g.cn)("flex items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",t?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[e.icon&&(0,a.jsx)(c.L,{name:e.icon,size:16}),(0,a.jsx)("span",{children:e.title})]},e.url||e.title)})]},e.title);let i=e.url&&s.endsWith(e.url);return(0,a.jsxs)(r.N_,{href:e.url||"#",onClick:n,className:(0,g.cn)("flex items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",i?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[e.icon&&(0,a.jsx)(c.L,{name:e.icon,size:16}),(0,a.jsx)("span",{children:e.title})]},e.url||e.title)})})})]});let m=t.url&&s.endsWith(t.url);return(0,a.jsxs)(r.N_,{href:t.url||"#",onClick:n,className:(0,g.cn)("flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors",m?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[t.icon&&(0,a.jsx)(c.L,{name:t.icon,size:16}),t.title]})}function v(e){var t,s;let{children:l,header:u,footer:h}=e,g=(0,r.a8)(),[v,b]=(0,i.useState)(!1),N=(null==(t=u.nav)?void 0:t.items)||[],y=(null==(s=u.rightMenu)?void 0:s.items)||[];return(0,a.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,a.jsx)("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:(0,a.jsxs)("div",{className:"h-14 px-4 flex items-center gap-4",children:[(0,a.jsxs)(r.N_,{href:u.brand.url,className:"flex items-center gap-2 hover:opacity-80 transition-opacity flex-shrink-0",children:[u.brand.logo?(0,a.jsx)("img",{src:u.brand.logo.src,alt:u.brand.logo.alt,className:"w-8 h-8 rounded-lg"}):(0,a.jsx)("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-primary font-bold text-lg",children:"A"})}),(0,a.jsx)("span",{className:"font-bold text-lg hidden sm:inline",children:u.brand.title})]}),(0,a.jsx)("nav",{className:"hidden md:flex items-center gap-1 flex-1 justify-center",children:N.map(e=>(0,a.jsx)(f,{item:e,pathname:g},e.url||e.title))}),(0,a.jsx)("div",{className:"flex md:hidden flex-1 justify-end",children:(0,a.jsxs)(x.cj,{open:v,onOpenChange:b,children:[(0,a.jsx)(x.CG,{asChild:!0,children:(0,a.jsxs)(m.$,{variant:"ghost",size:"icon",className:"h-9 w-9",children:[(0,a.jsx)(n.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"sr-only",children:"Open menu"})]})}),(0,a.jsxs)(x.h,{side:"top",className:"h-auto max-h-[80vh] overflow-y-auto",children:[(0,a.jsx)(x.Fm,{className:"pb-4 border-b",children:(0,a.jsxs)(x.qp,{className:"flex items-center gap-2",children:[u.brand.logo?(0,a.jsx)("img",{src:u.brand.logo.src,alt:u.brand.logo.alt,className:"w-6 h-6 rounded"}):null,u.brand.title]})}),(0,a.jsx)("nav",{className:"flex flex-col gap-1 py-4",children:N.map(e=>(0,a.jsx)(j,{item:e,pathname:g,onClose:()=>b(!1)},e.url||e.title))})]})]})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[u.show_theme&&(0,a.jsx)(o.ThemeToggler,{type:"icon"}),!1!==u.show_sign&&(0,a.jsx)(d.SignUser,{userNav:u.user_nav})]})]})}),(0,a.jsxs)(p.SidebarProvider,{style:{"--sidebar-width":"16rem"},className:"flex-1",children:[(0,a.jsx)(p.Sidebar,{collapsible:"icon",variant:"sidebar",className:"!top-14 !bottom-0 !h-auto",children:(0,a.jsx)(p.SidebarContent,{className:"pt-2",children:y.map((e,t)=>{if(e.children&&e.children.length>0)return(0,a.jsxs)(p.SidebarGroup,{children:[(0,a.jsxs)(p.SidebarGroupLabel,{className:"flex items-center gap-2",children:[e.icon&&(0,a.jsx)(c.L,{name:e.icon,size:16}),e.title]}),(0,a.jsx)(p.SidebarMenu,{children:e.children.map(e=>{if(!e.url||""===e.url.trim())return null;let t=!!(e.url&&g.endsWith(e.url));return(0,a.jsx)(p.SidebarMenuItem,{children:(0,a.jsx)(p.SidebarMenuButton,{asChild:!0,isActive:t,tooltip:e.title,children:(0,a.jsxs)(r.N_,{href:e.url,children:[e.icon&&(0,a.jsx)(c.L,{name:e.icon,size:18}),(0,a.jsx)("span",{children:e.title})]})})},e.url)})})]},e.title||t);if(!e.url||""===e.url.trim())return null;let s=!!(e.url&&g.endsWith(e.url));return(0,a.jsx)(p.SidebarGroup,{children:(0,a.jsx)(p.SidebarMenu,{children:(0,a.jsx)(p.SidebarMenuItem,{children:(0,a.jsx)(p.SidebarMenuButton,{asChild:!0,isActive:s,tooltip:e.title,children:(0,a.jsxs)(r.N_,{href:e.url,children:[e.icon&&(0,a.jsx)(c.L,{name:e.icon,size:20}),(0,a.jsx)("span",{children:e.title})]})})})})},e.url)})})}),(0,a.jsx)(p.SidebarInset,{className:"flex flex-col",children:(0,a.jsxs)("main",{className:"flex-1 overflow-auto relative",children:[(0,a.jsx)(p.SidebarTrigger,{className:"absolute left-2 top-2 h-7 w-7 z-10"}),l,h]})})]})]})}},16605:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HowItWorks:()=>n});var a=s(47808),i=s(18512),r=s(72100),l=s(57169);function n(e){let{section:t,className:s}=e,n=t.items||[];return(0,a.jsx)("section",{id:t.id,className:(0,l.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(r.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)(r.ScrollAnimation,{delay:.2,children:(0,a.jsx)("div",{className:"mx-auto max-w-6xl",children:(0,a.jsx)("div",{className:"grid gap-6 md:grid-cols-3",children:n.map((e,t)=>(0,a.jsxs)("div",{className:"group relative flex flex-col items-center text-center overflow-hidden rounded-xl border bg-card p-6 md:p-8 transition-all hover:shadow-lg dark:hover:border-primary/50",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-trans
1parent to-transparent opacity-0 transition-opacity group-hover:opacity-100"}),(0,a.jsx)("div",{className:"relative z-10 mb-6",children:(0,a.jsx)("div",{className:"bg-muted text-foreground flex h-14 w-14 items-center justify-center rounded-full border shadow-sm transition-all duration-300 group-hover:scale-110 group-hover:bg-primary group-hover:text-primary-foreground group-hover:shadow-md md:h-16 md:w-16",children:e.icon?(0,a.jsx)(i.L,{name:e.icon,size:24}):(0,a.jsx)("span",{className:"text-xl font-bold md:text-2xl",children:t+1})})}),(0,a.jsx)("h3",{className:"relative z-10 text-foreground mb-3 text-xl font-semibold",children:e.title}),(0,a.jsx)("p",{className:"relative z-10 text-muted-foreground text-sm leading-relaxed",children:e.description&&e.description.split(/(\*\*.*?\*\*)/g).map((e,t)=>e.startsWith("**")&&e.endsWith("**")?(0,a.jsx)("strong",{className:"font-bold text-foreground",children:e.slice(2,-2)},t):e)})]},t))})})})]})})}},24985:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Cta:()=>o});var a=s(47808),i=s(96393),r=s(18512),l=s(67202),n=s(72100),c=s(57169);function o(e){var t,s;let{section:o,className:d}=e;return(0,a.jsx)("section",{id:o.id,className:(0,c.cn)("py-16 md:py-24",o.className,d),children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:o.title})}),(0,a.jsx)(n.ScrollAnimation,{delay:.15,children:(0,a.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:null!=(s=o.description)?s:""}})}),(0,a.jsx)(n.ScrollAnimation,{delay:.3,children:(0,a.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:null==(t=o.buttons)?void 0:t.map((e,t)=>(0,a.jsx)(l.$,{asChild:!0,size:e.size||"default",variant:e.variant||"default",children:(0,a.jsxs)(i.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,a.jsx)(r.L,{name:e.icon}),(0,a.jsx)("span",{children:e.title})]})},t))})})]})})})}},26889:(e,t,s)=>{"use strict";s.r(t),s.d(t,{VideoShowcase:()=>g});var a=s(47808),i=s(71500),r=s(24309),l=s(12271),n=s(60192),c=s(85170),o=s(20017),d=s(68442),m=s(16934),u=s(67202),x=s(72100),h=s(57169);function p(e){let{item:t,index:s,onClick:l}=e,c=(0,i.useRef)(null),[o,d]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{c.current&&(o?c.current.play().catch(()=>{}):(c.current.pause(),c.current.currentTime=0))},[o]),(0,a.jsxs)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.05*s,ease:[.22,1,.36,1]},className:"group cursor-pointer",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:l,children:[(0,a.jsxs)("div",{className:"relative aspect-video overflow-hidden rounded-xl",children:[t.thumbnail&&!o&&(0,a.jsx)(m.oD,{src:t.thumbnail,alt:t.title||"Video thumbnail",className:"h-full w-full object-cover"}),(0,a.jsx)("video",{ref:c,src:t.video_url,muted:!0,loop:!0,playsInline:!0,className:(0,h.cn)("h-full w-full object-cover transition-opacity duration-300",o||!t.thumbnail?"opacity-100":"opacity-0")}),!o&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 transition-opacity duration-300 group-hover:opacity-0",children:(0,a.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-white/90 shadow-lg",children:(0,a.jsx)(n.A,{className:"h-6 w-6 translate-x-0.5 text-black"})})}),t.duration&&(0,a.jsx)("div",{className:"absolute bottom-3 right-3",children:(0,a.jsx)("span",{className:"rounded bg-black/70 px-2 py-1 text-xs font-medium text-white backdrop-blur-sm",children:t.duration})}),t.category&&(0,a.jsx)("div",{className:"absolute left-3 top-3",children:(0,a.jsx)("span",{className:"rounded-full bg-black/60 px-3 py-1 text-xs font-medium text-white backdrop-blur-sm",children:t.category})})]}),(t.title||t.description)&&(0,a.jsxs)("div",{className:"mt-3",children:[t.title&&(0,a.jsx)("h4",{className:"text-foreground line-clamp-1 font-semibold",children:t.title}),t.description&&(0,a.jsx)("p",{className:"mt-1 line-clamp-2 text-sm text-muted-foreground",children:t.description})]})]})}function g(e){let{section:t,className:s}=e,n=t.groups||[],m=t.items||[],[g,f]=(0,i.useState)(n.length>0?n[0].name:"all"),[j,v]=(0,i.useState)(null),b=(0,i.useMemo)(()=>g&&"all"!==g?m.filter(e=>e.category===g):m,[m,g]),N=(0,i.useCallback)(()=>{v(e=>null!==e?0===e?b.length-1:e-1:null)},[b.length]),y=(0,i.useCallback)(()=>{v(e=>null!==e?e===b.length-1?0:e+1:null)},[b.length]);return(0,i.useEffect)(()=>{let e=e=>{null!==j&&("Escape"===e.key&&v(null),"ArrowLeft"===e.key&&N(),"ArrowRight"===e.key&&y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[j,N,y]),(0,a.jsxs)("section",{id:t.id,className:(0,h.cn)("bg-muted/30 py-16 md:py-24",t.className,s),children:[(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(x.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),n.length>0&&(0,a.jsx)(r.P.div,{className:"mb-8 flex flex-wrap justify-center gap-3",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:n.map(e=>{let t=g===e.name;return(0,a.jsx)(u.$,{variant:t?"default":"outline",size:"sm",onClick:()=>f(e.name),children:e.title},e.name)})}),(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:b.map((e,t)=>(0,a.jsx)(p,{item:e,index:t,onClick:()=>v(t)},t))}),0===b.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No videos found in this category."})]}),(0,a.jsx)(l.N,{children:null!==j&&b.length>0&&(0,a.jsxs)(r.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/95 p-4 backdrop-blur-sm md:p-8",onClick:()=>v(null),children:[(0,a.jsx)("button",{className:"absolute right-4 top-4 z-50 text-white/70 transition-colors hover:text-white",onClick:()=>v(null),children:(0,a.jsx)(c.A,{className:"size-8"})}),(0,a.jsx)("button",{className:"absolute left-4 top-1/2 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),N()},children:(0,a.jsx)(o.A,{className:"size-8 md:size-12"})}),(0,a.jsx)("button",{className:"absolute right-4 top-1/2 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),y()},children:(0,a.jsx)(d.A,{className:"size-8 md:size-12"})}),(0,a.jsxs)(r.P.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"relative max-h-[90vh] max-w-[90vw]",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("video",{src:b[j].video_url,controls:!0,autoPlay:!0,className:"max-h-[90vh] rounded-lg"}),b[j].title&&(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-6",children:[(0,a.jsx)("h3",{className:"text-xl font-bold text-white",children:b[j].title}),b[j].description&&(0,a.jsx)("p",{className:"mt-2 text-sm text-white/80",children:b[j].description})]})]},j)]})})]})}},29650:(e,t,s)=>{"use strict";s.d(t,{Xi:()=>o,j7:()=>c,tU:()=>n});var a=s(47808),i=s(71500),r=s(59342),l=s(57169);let n=r.bL,c=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,a.jsx)(r.B8,{ref:t,className:(0,l.cn)("border inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",s),...i})});c.displayName=r.B8.displayName;let o=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,a.jsx)(r.l9,{ref:t,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",s),...i})});o.displayName=r.l9.displayName,i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,a.jsx)(r.UC,{ref:t,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...i})}).displayName=r.UC.displayName},31697:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GenreSelector:()=>g});var a=s(47808),i=s(71500),r=s(24309),l=s(65739),n=s(44560),c=s(60192),o=s(16934),d=s(18512),m=s(67202),u=s(5784),x=s(72100),h=s(57169);function p(e){var t;let{item:s,index:i,isPlaying:m,onPlay:x}=e;return(0,a.jsx)(r.P.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.05*i,ease:[.22,1,.36,1]},children:(0,a.jsx)(u.Zp,{className:(0,h.cn)("group h-full cursor-pointer overflow-hidden border-0 transition-all duration-300 hover:shadow-lg",m&&"ring-2 ring-primary shadow-lg shadow-primary/20"),onClick:x,children:(0,a.jsxs)(u.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden",children:[(null==(t=s.image)?void 0:t.src)?(0,a.jsx)(o.oD,{src:s.image.src,alt:s.image.alt||s.title,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center",style:{background:s.color?"linear-gradient(135deg, ".concat(s.color,"40, ").concat(s.color,"10)"):"linear-gradient(135deg, hsl(var(--primary) / 0.4), hsl(var(--primary) / 0.1))"},children:s.icon?(0,a.jsx)(d.L,{name:s.icon,size:48,className:"text-foreground
1/50"}):(0,a.jsx)(l.A,{className:"h-12 w-12 text-foreground/50"})}),s.audio_preview&&(0,a.jsx)("div",{className:(0,h.cn)("absolute inset-0 flex items-center justify-center bg-black/40 transition-opacity duration-300",m?"opacity-100":"opacity-0 group-hover:opacity-100"),children:(0,a.jsx)("div",{className:(0,h.cn)("flex h-14 w-14 items-center justify-center rounded-full bg-white shadow-lg transition-transform duration-300",m&&"animate-pulse"),children:m?(0,a.jsx)(n.A,{className:"h-6 w-6 text-black"}):(0,a.jsx)(c.A,{className:"h-6 w-6 translate-x-0.5 text-black"})})}),m&&(0,a.jsx)("div",{className:"absolute bottom-3 left-3 right-3",children:(0,a.jsx)("div",{className:"flex items-center gap-1",children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,a.jsx)(r.P.div,{className:"h-4 w-1 rounded-full bg-white",animate:{height:[16,8,24,12,16]},transition:{duration:.8,repeat:1/0,delay:.1*t}},t))})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-foreground mb-1 font-semibold",children:s.title}),s.description&&(0,a.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:s.description})]})]})})})}function g(e){let{section:t,className:s}=e,l=t.items||[],[n,c]=(0,i.useState)(null),o=(0,i.useRef)(null);return(0,a.jsx)("section",{id:t.id,className:(0,h.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(x.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6",children:l.map((e,t)=>(0,a.jsx)(p,{item:e,index:t,isPlaying:n===t,onPlay:()=>(e=>{let t=l[e];if(!t.audio_preview)return;if(n===e){o.current&&(o.current.pause(),o.current=null),c(null);return}o.current&&(o.current.pause(),o.current=null);let s=new Audio(t.audio_preview);s.addEventListener("ended",()=>{c(null),o.current=null}),s.addEventListener("error",()=>{c(null),o.current=null}),s.play().catch(()=>{c(null)}),o.current=s,c(e)})(t)},t))}),0===l.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No genres available."}),t.buttons&&t.buttons.length>0&&(0,a.jsx)(r.P.div,{className:"mt-12 flex justify-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.3},children:t.buttons.map((e,t)=>(0,a.jsx)(m.$,{variant:e.variant||"default",size:e.size||"lg",asChild:!0,children:(0,a.jsxs)("a",{href:e.url||"#",children:[e.icon&&(0,a.jsx)(d.L,{name:e.icon}),e.title]})},t))})]})})}},32442:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesList:()=>o});var a=s(47808),i=s(96393),r=s(16934),l=s(67202),n=s(72100),c=s(57169);function o(e){var t,s,o,d,m,u;let{section:x,className:h}=e;return(0,a.jsx)("section",{className:(0,c.cn)("overflow-x-hidden py-16 md:py-24",x.className,h),children:(0,a.jsxs)("div",{className:"container overflow-x-hidden",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[(0,a.jsx)(n.ScrollAnimation,{direction:"left",children:(0,a.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,a.jsx)(r.oD,{src:null!=(m=null==(t=x.image)?void 0:t.src)?m:"",alt:null!=(u=null==(s=x.image)?void 0:s.alt)?u:"",className:"h-auto w-full rounded-lg object-cover"})})}),(0,a.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[(0,a.jsx)(n.ScrollAnimation,{delay:.1,children:(0,a.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:x.title})}),(0,a.jsx)(n.ScrollAnimation,{delay:.2,children:(0,a.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:x.description})}),x.buttons&&x.buttons.length>0&&(0,a.jsx)(n.ScrollAnimation,{delay:.3,children:(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:null==(o=x.buttons)?void 0:o.map((e,t)=>{var s,n;return(0,a.jsx)(l.$,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,a.jsxs)(i.N_,{href:null!=(s=e.url)?s:"",target:null!=(n=e.target)?n:"_self",className:(0,c.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-9 px-4 py-2","bg-background ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200"),children:[e.icon&&(0,a.jsx)(r.LK,{name:e.icon,size:24}),e.title]})},t)})})})]})]}),(0,a.jsx)(n.ScrollAnimation,{delay:.1,children:(0,a.jsx)("div",{className:"relative grid min-w-0 grid-cols-1 gap-x-3 gap-y-6 border-t pt-12 break-words sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:null==(d=x.items)?void 0:d.map((e,t)=>{var s;return(0,a.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,a.jsx)(r.LK,{name:e.icon,size:16}),(0,a.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,a.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:null!=(s=e.description)?s:""})]},t)})})})]})})}},34791:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SimpleHero:()=>d});var a=s(47808),i=s(43040),r=s(96393),l=s(16934),n=s(67202),c=s(72100),o=s(57169);function d(e){var t;let{section:s,className:d}=e,m="left"===(s.image_position||"right");return(0,a.jsx)("section",{id:s.id,className:(0,o.cn)("py-16 md:py-24 lg:py-32",s.className,d),children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:(0,o.cn)("grid items-center gap-8 lg:grid-cols-2 lg:gap-12",m&&"lg:grid-flow-dense"),children:[(0,a.jsx)(c.ScrollAnimation,{className:(0,o.cn)(m&&"lg:col-start-2"),children:(0,a.jsxs)("div",{className:"max-w-xl",children:[s.label&&(0,a.jsx)("span",{className:"mb-4 inline-block rounded-full bg-primary/10 px-4 py-1.5 text-sm font-medium text-primary",children:s.label}),(0,a.jsx)("h1",{className:"text-foreground mb-6 text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl",children:s.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-8 text-lg leading-relaxed",children:s.description}),s.buttons&&s.buttons.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-4",children:s.buttons.map((e,t)=>{var s,i;return(0,a.jsx)(n.$,{asChild:!0,size:e.size||"lg",variant:e.variant||(0===t?"default":"outline"),children:(0,a.jsxs)(r.N_,{href:null!=(s=e.url)?s:"",target:null!=(i=e.target)?i:"_self",children:[e.icon&&(0,a.jsx)(l.LK,{name:e.icon,className:"mr-2 h-5 w-5"}
1),e.title]})},t)})}),s.features&&(0,a.jsx)("div",{className:"mt-8 grid gap-3 sm:grid-cols-2",children:s.features.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-primary/10",children:(0,a.jsx)(l.LK,{name:"Check",className:"h-3 w-3 text-primary"})}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:e})]},t))})]})}),(0,a.jsx)(c.ScrollAnimation,{delay:.2,className:(0,o.cn)(m&&"lg:col-start-1"),children:(0,a.jsxs)("div",{className:"relative",children:[(null==(t=s.image)?void 0:t.src)&&(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-2xl shadow-2xl",children:[(0,a.jsx)(i.default,{src:s.image.src,alt:s.image.alt||s.title||"",width:s.image.width||600,height:s.image.height||400,className:"h-auto w-full object-cover",priority:!0,unoptimized:s.image.src.startsWith("http")}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-tr from-primary/10 to-transparent opacity-60"})]}),(0,a.jsx)("div",{className:"absolute -bottom-4 -left-4 -z-10 h-72 w-72 rounded-full bg-primary/5 blur-3xl"}),(0,a.jsx)("div",{className:"absolute -right-4 -top-4 -z-10 h-72 w-72 rounded-full bg-primary/10 blur-3xl"})]})})]})})})}},35276:(e,t,s)=>{"use strict";s.r(t),s.d(t,{VideoStyles:()=>x});var a=s(47808),i=s(71500),r=s(24309),l=s(37012),n=s(16934),c=s(67202),o=s(5784),d=s(72100),m=s(57169);function u(e){let{item:t,index:s}=e,c=(0,i.useRef)(null),[d,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{c.current&&(d?c.current.play().catch(()=>{}):(c.current.pause(),c.current.currentTime=0))},[d]),(0,a.jsx)(r.P.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:.05*s,ease:[.22,1,.36,1]},children:(0,a.jsx)(o.Zp,{className:"group h-full overflow-hidden border-0 transition-all duration-300 hover:shadow-xl hover:shadow-primary/20",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:(0,a.jsxs)(o.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative aspect-video overflow-hidden",children:[t.thumbnail&&!d&&(0,a.jsx)(n.oD,{src:t.thumbnail,alt:t.title,className:"h-full w-full object-cover"}),(0,a.jsx)("video",{ref:c,src:t.video_url,muted:!0,loop:!0,playsInline:!0,className:(0,m.cn)("h-full w-full object-cover transition-opacity duration-300",d||!t.thumbnail?"opacity-100":"opacity-0")}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100"}),t.style_type&&(0,a.jsx)("div",{className:"absolute left-3 top-3",children:(0,a.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full bg-primary/90 px-3 py-1 text-xs font-medium text-primary-foreground backdrop-blur-sm",children:[(0,a.jsx)(l.A,{className:"h-3 w-3"}),t.style_type]})}),!d&&!t.thumbnail&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)("div",{className:"rounded-full bg-black/50 px-4 py-2 text-sm font-medium text-white backdrop-blur-sm",children:"Hover to preview"})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-foreground mb-1 font-semibold",children:t.title}),t.description&&(0,a.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:t.description})]})]})})})}function x(e){let{section:t,className:s}=e,l=t.groups||[],n=t.items||[],[o,x]=(0,i.useState)(l.length>0?l[0].name:"all"),h=(0,i.useMemo)(()=>o&&"all"!==o?n.filter(e=>e.category===o):n,[n,o]);return(0,a.jsx)("section",{id:t.id,className:(0,m.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(d.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),l.length>0&&(0,a.jsx)(r.P.div,{className:"mb-8 flex flex-wrap justify-center gap-3",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:l.map(e=>{let t=o===e.name;return(0,a.jsx)(c.$,{variant:t?"default":"outline",size:"sm",onClick:()=>x(e.name),children:e.title},e.name)})}),(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:h.map((e,t)=>(0,a.jsx)(u,{item:e,index:t},t))}),0===h.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No video styles found in this category."})]})})}},36504:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BeforeAfter:()=>u});var a=s(47808),i=s(24309),r=s(74453),l=s(36324),n=s(65739),c=s(16934),o=s(5784),d=s(72100),m=s(57169);function u(e){let{section:t,className:s}=e,u=t.items||[];return(0,a.jsx)("section",{id:t.id,className:(0,m.cn)("bg-muted/30 py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(d.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)("div",{className:"mx-auto max-w-4xl space-y-8",children:u.map((e,t)=>(0,a.jsx)(i.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.15*t,ease:[.22,1,.36,1]},children:(0,a.jsx)(o.Zp,{className:"overflow-hidden border-0 shadow-lg",children:(0,a.jsx)(o.Wu,{className:"p-0",children:(0,a.jsxs)("div",{className:"grid md:grid-cols-[1fr,auto,1fr]",children:[(0,a.jsxs)("div",{className:"bg-background p-6",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-muted",children:(0,a.jsx)(r.A,{className:"h-4 w-4 text-muted-foreground"})}),(0,a.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:e.before_label||"Before"})]}),(0,a.jsx)("h4",{className:"text-foreground mb-2 font-semibold",children:e.before_title||e.title}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:e.before_description}),e.before_image&&(0,a.jsx)("div",{className:"mt-4 overflow-hidden rounded-lg",children:(0,a.jsx)(c.oD,{src:e.before_image,alt:"Before",className:"w-full"})})]}),(0,a.jsx)("div",{className:"flex items-center justify-center bg-gradient-to-r from-background via-primary/10 to-background p-4 md:bg-gradient-to-b md:from-background md:via-primary/10 md:to-background",children:(0,a.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-primary shadow-lg",children:(0,a.jsx)(l.A,{className:"h-6 w-6 rotate-90 text-primary-foreground md:rotate-0"})})}),(0,a.jsxs)("div",{className:"bg-primary/5 p-6",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-primary/20",children:(0,a.jsx)(n.A,{className:"h-4 w-4 text-primary"})}),(0,a.jsx)("span",{className:"text-sm font-medium text-primary",children:e.after_label||"After"})]}),(0,a.jsx)("h4",{className:"text-foreground mb-2 font-semibold",children:e.after_title}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:e.after_description||e.description}),e.after_image&&(0,a.jsx)("div",{className:"mt-4 overflow-hidden rounded-lg",children:(0,a.jsx)(c.oD,{src:e.after_image,alt:"After",className:"w-full"})})]})]})})})},t))})]})})}},38538:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ImageToImageGuestShowcase:()=>m});var a=s(47808),i=s(71500),r=s(86349),l=s(28684),n=s(20017),c=s(68442),o=s(73489),d=s(67202);function m(e){let{items:t=[],features:s=[],translations:m}=e,[u,x]=(0,i.useState)(0);if(0===t.length)return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,a.jsx)("div",{className:"bg-muted mb-4 flex h-16 w-16 items-center justify-center rounded-full",children:(0,a.jsx)(r.A,{className:"text-muted-foreground h-8 w-8"})}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 text-sm",children:(null==m?void 0:m.sign_in_to_create)||"Sign in to start transforming images with AI"}),h()]});function h(){return 0===s.length?null:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-3",children:(null==m?void 0:m.features)||"Features"}),(0,a.jsx)("ul",{className:"space-y-2",children:s.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{children:e})]},t))})]})}let p=t[u];return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:(null==m?void 0:m.sample_results)||"Sample Results"})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"relative aspect-square overflow-hidden rounded-lg border",children:(0,a.jsx)(o.LazyImage,{src:p.url,alt:p.alt||"Sample ".concat(u+1),className:"h-full w-full object-cover"})}),p.prompt&&(0,a.jsx)("div",{className:"bg-muted rounded-lg p-3",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:[(0,a.jsx)("span",{className:"font-medium",children:"Prompt:"})," ",p.prompt]})})]}),t.length>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e-1+t.length)%t.length),children:(0,a.jsx)(n.A,{className:"h-4 w-4"})}),(0,a.jsxs)("span",{className:"text-muted-foreground text-sm",children:[u+1," / ",t.length]}),(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e+1)%t.length),children:(0,a.jsx)(c.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"pt-4 border-t",children:h()})]})}},38576:(e,t,s)=>{"use strict";s.r(t),s.d(t,{AudioShowcase:()=>h});var a=s(47808),i=s(71500),r=s(24309),l=s(44560),n=s(60192),c=s(16934),o=s(67202),d=s(5784),m=s(72100),u=s(57169);function x(e){var t;let{item:s,index:m}=e,[u,x]=(0,i.useState)(!1),h=(0,i.useRef)(null);return(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*m,ease:[.22,1,.36,1]},children:(0,a.jsx)(d.Zp,{className:"group h-full overflow-hidden border-0 transition-all duration-300 hover:shadow-lg hover:shadow-
1primary/10",children:(0,a.jsxs)(d.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden",children:[(null==(t=s.image)?void 0:t.src)?(0,a.jsx)(c.oD,{src:s.image.src,alt:s.image.alt||s.title||"",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/20 to-primary/5",children:(0,a.jsx)("div",{className:"text-6xl opacity-50",children:"\uD83C\uDFB5"})}),s.audio_url&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:(0,a.jsx)(o.$,{size:"icon",variant:"secondary",className:"h-14 w-14 rounded-full shadow-lg",onClick:()=>{h.current&&(u?h.current.pause():h.current.play(),x(!u))},children:u?(0,a.jsx)(l.A,{className:"h-6 w-6"}):(0,a.jsx)(n.A,{className:"h-6 w-6 translate-x-0.5"})})}),s.genre&&(0,a.jsx)("div",{className:"absolute left-3 top-3",children:(0,a.jsx)("span",{className:"rounded-full bg-black/60 px-3 py-1 text-xs font-medium text-white backdrop-blur-sm",children:s.genre})}),s.duration&&(0,a.jsx)("div",{className:"absolute bottom-3 right-3",children:(0,a.jsx)("span",{className:"rounded bg-black/60 px-2 py-1 text-xs text-white backdrop-blur-sm",children:s.duration})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-foreground mb-1 line-clamp-1 font-semibold",children:s.title}),s.description&&(0,a.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:s.description})]}),s.audio_url&&(0,a.jsx)("audio",{ref:h,src:s.audio_url,onEnded:()=>{x(!1)}})]})})})}function h(e){let{section:t,className:s}=e,i=t.items||[],r=t.columns||4;return(0,a.jsx)("section",{id:t.id,className:(0,u.cn)("bg-muted/30 py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(m.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)("div",{className:(0,u.cn)("grid gap-6",2===r?"sm:grid-cols-2":3===r?"sm:grid-cols-2 lg:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-4"),children:i.map((e,t)=>(0,a.jsx)(x,{item:e,index:t},t))})]})})}},40084:(e,t,s)=>{"use strict";s.r(t),s.d(t,{OutputFormats:()=>d});var a=s(47808),i=s(24309),r=s(18512),l=s(85227),n=s(5784),c=s(72100),o=s(57169);function d(e){let{section:t,className:s}=e,d=t.items||[];return(0,a.jsx)("section",{id:t.id,className:(0,o.cn)("bg-muted/30 py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(c.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)("div",{className:"mx-auto grid max-w-4xl gap-6 md:grid-cols-2 lg:grid-cols-3",children:d.map((e,t)=>(0,a.jsx)(i.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*t,ease:[.22,1,.36,1]},children:(0,a.jsxs)(n.Zp,{className:"group relative h-full overflow-hidden border-0 bg-background shadow-md transition-all duration-300 hover:shadow-xl",children:[e.badge&&(0,a.jsx)(l.E,{className:"absolute right-3 top-3 bg-primary/90",children:e.badge}),(0,a.jsxs)(n.Wu,{className:"p-6",children:[e.icon&&(0,a.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-gradient-to-br from-primary/20 to-primary/5 transition-transform duration-300 group-hover:scale-110",children:(0,a.jsx)(r.L,{name:e.icon,size:28,className:"text-primary"})}),(0,a.jsx)("h4",{className:"text-foreground mb-2 text-lg font-semibold",children:e.title}),(0,a.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:e.description}),e.formats&&e.formats.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:e.formats.map((e,t)=>(0,a.jsx)("span",{className:"rounded-md bg-muted px-2 py-1 text-xs font-medium text-muted-foreground",children:e},t))})]})]})},t))})]})})}},42391:(e,t,s)=>{"use strict";s.r(t),s.d(t,{PromptGallery:()=>h});var a=s(47808),i=s(71500),r=s(24309),l=s(47706),n=s(10827),c=s(31963),o=s(16934),d=s(67202),m=s(5784),u=s(72100),x=s(57169);function h(e){let{section:t,className:s}=e,h=t.groups||[],p=t.items||[],[g,f]=(0,i.useState)(h.length>0?h[0].name:"all"),[j,v]=(0,i.useState)(null),b=(0,i.useMemo)(()=>g&&"all"!==g?p.filter(e=>e.category===g):p,[p,g]),N=async(e,t)=>{try{await navigator.clipboard.writeText(e),v(t),c.oR.success("Prompt copied to clipboard!"),setTimeout(()=>v(null),2e3)}catch(e){c.oR.error("Failed to copy prompt")}};return(0,a.jsx)("section",{id:t.id,className:(0,x.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(u.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),h.length>0&&(0,a.jsx)(r.P.div,{className:"mb-8 flex flex-wrap justify-center gap-3",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:h.map((e,t)=>{let s=g===e.name;return(0,a.jsx)(d.$,{variant:s?"default":"outline",size:"sm",onClick:()=>f(e.name),className:"transition-all",children:e.title},e.name)})}),(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:b.map((e,t)=>{var s;return(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.05*t,ease:[.22,1,.36,1]},children:(0,a.jsx)(m.Zp,{className:"group h-full overflow-hidden border-0 transition-all duration-300 hover:shadow-lg hover:shadow-
1primary/10",children:(0,a.jsxs)(m.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden",children:[(null==(s=e.image)?void 0:s.src)?(0,a.jsx)(o.oD,{src:e.image.src,alt:e.image.alt||e.title||"Generated image",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/20 to-primary/5",children:(0,a.jsx)("span",{className:"text-6xl opacity-50",children:"\uD83C\uDFA8"})}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:(0,a.jsx)(d.$,{size:"sm",variant:"secondary",className:"gap-2",onClick:()=>N(e.prompt,t),children:j===t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{className:"h-4 w-4"}),"Copied!"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{className:"h-4 w-4"}),"Copy Prompt"]})})}),e.category&&(0,a.jsx)("div",{className:"absolute left-3 top-3",children:(0,a.jsx)("span",{className:"rounded-full bg-black/60 px-3 py-1 text-xs font-medium text-white backdrop-blur-sm",children:e.category})})]}),(0,a.jsxs)("div",{className:"p-4",children:[e.title&&(0,a.jsx)("h4",{className:"text-foreground mb-2 line-clamp-1 font-semibold",children:e.title}),(0,a.jsx)("p",{className:"line-clamp-3 text-sm text-muted-foreground",children:e.prompt}),e.tags&&e.tags.length>0&&(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-1",children:e.tags.slice(0,3).map((e,t)=>(0,a.jsx)("span",{className:"rounded bg-muted px-2 py-0.5 text-xs text-muted-foreground",children:e},t))})]})]})})},t)})}),0===b.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No prompts found in this category."})]})})}},48834:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Header:()=>w});var a=s(47808),i=s(71500),r=s(73561),l=s(85170),n=s(96393),c=s(16934),o=s(10780),d=s(92831),m=s(15921),u=s(21696),x=s(57169);let h=i.forwardRef((e,t)=>{let{className:s,children:i,viewport:r=!0,...l}=e;return(0,a.jsxs)(d.bL,{ref:t,"data-slot":"navigation-menu","data-viewport":r,role:"navigation",className:(0,x.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",s),...l,children:[i,r&&(0,a.jsx)(b,{})]})});function p(e){let{className:t,...s}=e;return(0,a.jsx)(d.B8,{"data-slot":"navigation-menu-list",className:(0,x.cn)("group flex flex-1 list-none items-center justify-center gap-1",t),...s})}function g(e){let{className:t,...s}=e;return(0,a.jsx)(d.q7,{"data-slot":"navigation-menu-item",className:(0,x.cn)("relative",t),...s})}h.displayName=d.bL.displayName;let f=(0,m.F)("group inline-flex h-8 w-max items-center justify-center rounded-md px-4 py-1 text-sm text-muted-foreground font-medium hover:bg-foreground
1/5 hover:text-foreground focus:bg-foreground/5 focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-foreground/5 data-[state=open]:text-foreground data-[state=open]:focus:bg-foreground/5 data-[state=open]:bg-foreground/5 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function j(e){let{className:t,children:s,...i}=e;return(0,a.jsxs)(d.l9,{"data-slot":"navigation-menu-trigger",className:(0,x.cn)(f(),"group",t),...i,children:[s," ",(0,a.jsx)(u.A,{className:"relative top-[1px] ml-1.5 size-3 opacity-75 transition duration-300 group-data-[state=open]:translate-y-px","aria-hidden":"true",strokeWidth:2.5})]})}function v(e){let{className:t,...s}=e;return(0,a.jsx)(d.UC,{"data-slot":"navigation-menu-content",className:(0,x.cn)("left-0 top-0 w-full p-2 pr-2.5 md:absolute md:w-auto","data-[motion=from-end]:animate-enter-from-right data-[motion=from-start]:animate-enter-from-left data-[motion=to-end]:animate-exit-to-right data-[motion=to-start]:animate-exit-to-left","group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:rounded-(--radius) group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:-translate-x-1/3 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:border-transparent group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-200",t),...s})}function b(e){let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,x.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),children:(0,a.jsx)(d.LM,{"data-slot":"navigation-menu-viewport",className:(0,x.cn)("bg-popover text-popover-foreground h-(--radix-navigation-menu-viewport-height) ring-foreground/10 rounded-(--radius) md:w-(--radix-navigation-menu-viewport-width) relative mt-1.5 w-full origin-top overflow-hidden border border-transparent p-0.5 shadow-xl shadow-black/10 ring-1 transition-[width,height] duration-200","data-[state=closed]:animate-scale-out data-[state=open]:animate-scale-in",t),...s})})}function N(e){let{className:t,...s}=e;return(0,a.jsx)(d.N_,{"data-slot":"navigation-menu-link",className:(0,x.cn)("data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-md p-2 text-sm outline-none transition-all focus-visible:outline-1 focus-visible:ring-[3px] [&_svg:not([class*='size-'])]:size-4",t),...s})}function y(e){let[t,s]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{s(!0)},[]),t)?(0,a.jsx)(j,{...e}):null}function w(e){let{header:t}=e,[s,d]=(0,i.useState)(!1),[m,u]=(0,i.useState)(!1),f=(0,i.useRef)(!1),j=(0,i.useRef)(null),b=function(e){let[t,s]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{let t=window.matchMedia(e);s(t.matches);let a=()=>s(t.matches);return t.addEventListener("change",a),()=>{t.removeEventListener("change",a)}},[e]),t}("(min-width: 64rem)"),w=(0,n.a8)();function k(e){let{title:t,description:s,children:i,href:r,target:l,...c}=e;return(0,a.jsx)("li",{...c,children:(0,a.jsx)(N,{asChild:!0,children:(0,a.jsxs)(n.N_,{href:r,target:l||"_self",className:"grid grid-cols-[auto_1fr] gap-3.5",children:[(0,a.jsx)("div",{className:"bg-background ring-foreground
1/10 relative flex size-9 items-center justify-center rounded border border-transparent shadow-sm ring-1",children:i}),(0,a.jsxs)("div",{className:"space-y-0.5",children:[(0,a.jsx)("div",{className:"text-foreground text-sm font-medium",children:t}),(0,a.jsx)("p",{className:"text-muted-foreground line-clamp-1 text-xs",children:s})]})]})})})}return(0,i.useEffect)(()=>{let e=()=>{null==j.current&&(j.current=window.requestAnimationFrame(()=>{j.current=null;let e=window.scrollY>50;e!==f.current&&(f.current=e,u(e))}))};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),null!=j.current&&(window.cancelAnimationFrame(j.current),j.current=null)}},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("header",{"data-state":s?"active":"inactive",...m&&{"data-scrolled":!0},className:"has-data-[state=open]:bg-background/50 fixed inset-x-0 top-0 z-50 has-data-[state=open]:h-screen has-data-[state=open]:backdrop-blur",children:(0,a.jsx)("div",{className:(0,x.cn)("absolute inset-x-0 top-0 z-50 h-18 border-transparent ring-1 ring-transparent transition-all duration-300","in-data-scrolled:border-foreground
1/5 in-data-scrolled:bg-background/75 in-data-scrolled:border-b in-data-scrolled:backdrop-blur","has-data-[state=open]:ring-foreground/5 has-data-[state=open]:bg-card/75 has-data-[state=open]:h-[calc(var(--navigation-menu-viewport-height)+3.4rem)] has-data-[state=open]:border-b has-data-[state=open]:shadow-lg has-data-[state=open]:shadow-black/10 has-data-[state=open]:backdrop-blur","max-lg:in-data-[state=active]:bg-background/75 max-lg:h-14 max-lg:overflow-hidden max-lg:border-b max-lg:in-data-[state=active]:h-screen max-lg:in-data-[state=active]:backdrop-blur"),children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between lg:py-5",children:[(0,a.jsxs)("div",{className:"flex justify-between gap-8 max-lg:h-14 max-lg:w-full max-lg:border-b",children:[t.brand&&(0,a.jsx)(c.FQ,{brand:t.brand}),b&&(0,a.jsx)(()=>{var e,s;return(0,a.jsx)(h,{viewport:!1,className:"**:data-[slot=navigation-menu-content]:top-10 max-lg:hidden",children:(0,a.jsx)(p,{className:"gap-2",children:null==(s=t.nav)||null==(e=s.items)?void 0:e.map((e,t)=>{var s;return e.children&&0!==e.children.length?(0,a.jsxs)(g,{children:[(0,a.jsxs)(y,{className:"flex flex-row items-center gap-2 text-sm",children:[e.icon&&(0,a.jsx)(c.LK,{name:e.icon,className:"h-4 w-4"}),e.title]}),(0,a.jsx)(v,{className:"min-w-2xs origin-top p-0.5",children:(0,a.jsx)("div",{className:"border-foreground
1/5 bg-card ring-foreground/5 rounded-[calc(var(--radius)-2px)] border border-transparent p-2 shadow ring-1",children:(0,a.jsx)("ul",{className:"mt-1 space-y-2",children:null==(s=e.children)?void 0:s.map((e,t)=>(0,a.jsx)(k,{href:e.url||"",target:e.target||"_self",title:e.title||"",description:e.description||"",children:e.icon&&(0,a.jsx)(c.LK,{name:e.icon})},t))})})})]},t):(0,a.jsx)(N,{asChild:!0,children:(0,a.jsxs)(n.N_,{href:e.url||"",target:e.target||"_self",className:"flex flex-row items-center gap-2 px-4 py-1.5 text-sm ".concat(e.is_active||w.endsWith(e.url)?"bg-muted/40 text-muted-foreground":""),children:[e.icon&&(0,a.jsx)(c.LK,{name:e.icon}),e.title]})},t)})})})},{}),(0,a.jsxs)("button",{onClick:()=>d(!s),"aria-label":!0==s?"Close Menu":"Open Menu",className:"relative z-20 -m-2.5 -mr-3 block cursor-pointer p-2.5 lg:hidden",children:[(0,a.jsx)(r.A,{className:"m-auto size-5 duration-200 in-data-[state=active]:scale-0 in-data-[state=active]:rotate-180 in-data-[state=active]:opacity-0"}),(0,a.jsx)(l.A,{className:"absolute inset-0 m-auto size-5 scale-0 -rotate-180 opacity-0 duration-200 in-data-[state=active]:scale-100 in-data-[state=active]:rotate-0 in-data-[state=active]:opacity-100"})]})]}),!b&&s&&(0,a.jsx)(e=>{var s,i;let{closeMenu:r}=e;return(0,a.jsx)("nav",{role:"navigation",className:"w-full [--color-border:--alpha(var(--color-foreground)/5%)] [--color-muted:--alpha(var(--color-foreground)/5%)]",children:(0,a.jsx)(o.Accordion,{type:"single",collapsible:!0,className:"-mx-4 mt-0.5 space-y-0.5 **:hover:no-underline",children:null==(i=t.nav)||null==(s=i.items)?void 0:s.map((e,t)=>{var s;return(0,a.jsx)(o.AccordionItem,{value:e.title||"",className:"group relative border-b-0 before:pointer-events-none before:absolute before:inset-x-4 before:bottom-0 before:border-b",children:e.children&&e.children.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.AccordionTrigger,{className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title}),(0,a.jsx)(o.AccordionContent,{className:"pb-5",children:(0,a.jsx)("ul",{children:null==(s=e.children)?void 0:s.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsxs)(n.N_,{href:e.url||"",onClick:r,className:"grid grid-cols-[auto_1fr] items-center gap-2.5 px-4 py-2",children:[(0,a.jsx)("div",{"aria-hidden":!0,className:"flex items-center justify-center *:size-4",children:e.icon&&(0,a.jsx)(c.LK,{name:e.icon})}),(0,a.jsx)("div",{className:"text-base",children:e.title})]})},t))})})]}):(0,a.jsx)(n.N_,{href:e.url||"",onClick:r,className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title})},t)})})})},{closeMenu:()=>d(!1)}),(0,a.jsx)("div",{className:"mb-6 hidden w-full flex-wrap items-center justify-end space-y-8 in-data-[state=active]:flex max-lg:in-data-[state=active]:mt-6 md:flex-nowrap lg:m-0 lg:flex lg:w-fit lg:gap-6 lg:space-y-0 lg:border-transparent lg:bg-transparent lg:p-0 lg:shadow-none dark:shadow-none dark:lg:bg-transparent",children:(0,a.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 sm:flex-row sm:gap-6 sm:space-y-0 md:w-fit",children:[t.buttons&&t.buttons.map((e,t)=>(0,a.jsxs)(n.N_,{href:e.url||"",target:e.target||"_self",className:(0,x.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-7 px-3 ring-0","outline"===e.variant?"bg-background border-primary ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200":"bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md ring-1 shadow-black/20 ring-(--ring-color) [--ring-color:color-mix(in_oklab,var(--color-foreground)15%,var(--color-primary))]"),children:[e.icon&&(0,a.jsx)(c.LK,{name:e.icon,className:"size-4"}),(0,a.jsx)("span",{children:e.title})]},t)),t.show_theme?(0,a.jsx)(c.GC,{}):null,t.show_locale?(0,a.jsx)(c.YC,{}):null,(0,a.jsx)("div",{className:"flex-1 md:hidden"}),t.show_sign?(0,a.jsx)(c.TS,{userNav:t.user_nav}):null]})})]})})})})})}},50736:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ImageToVideoGuestShowcase:()=>d});var a=s(47808),i=s(71500),r=s(86349),l=s(28684),n=s(20017),c=s(68442),o=s(67202);function d(e){let{title:t,items:s=[],features:d=[],translations:m}=e,[u,x]=(0,i.useState)(0);if(0===s.length)return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,a.jsx)("div",{className:"bg-muted mb-4 flex h-16 w-16 items-center justify-center rounded-full",children:(0,a.jsx)(r.A,{className:"text-muted-foreground h-8 w-8"})}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 text-sm",children:(null==m?void 0:m.sign_in_to_create)||"Sign in to create videos from images"}),h()]});function h(){return 0===d.length?null:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-3",children:(null==m?void 0:m.features)||"Features"}),(0,a.jsx)("ul",{className:"space-y-2",children:d.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{children:e})]},t))})]})}let p=s[u];return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:(null==m?void 0:m.sample_results)||"Sample Results"})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"relative overflow-hidden rounded-lg border",children:(0,a.jsx)("video",{src:p.url,controls:!0,className:"h-auto w-full",preload:"metadata"})}),p.prompt&&(0,a.jsx)("div",{className:"bg-muted rounded-lg p-3",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:[(0,a.jsx)("span",{className:"font-medium",children:"Prompt:"})," ",p.prompt]})})]}),s.length>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,a.jsx)(o.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e-1+s.length)%s.length),children:(0,a.jsx)(n.A,{className:"h-4 w-4"})}),(0,a.jsxs)("span",{className:"text-muted-foreground text-sm",children:[u+1," / ",s.length]}),(0,a.jsx)(o.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e+1)%s.length),children:(0,a.jsx)(c.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"pt-4 border-t",children:h()})]})}},51022:(e,t,s)=>{"use strict";s.d(t,{TR:()=>h,bq:()=>u,eb:()=>p,gC:()=>x,l6:()=>o,s3:()=>d,yv:()=>m});var a=s(47808);s(71500);var i=s(20330),r=s(21696),l=s(47706),n=s(70041),c=s(57169);function o(e){let{...t}=e;return(0,a.jsx)(i.bL,{"data-slot":"select",...t})}function d(e){let{...t}=e;return(0,a.jsx)(i.YJ,{"data-slot":"select-group",...t})}function m(e){let{...t}=e;return(0,a.jsx)(i.WT,{"data-slot":"select-value",...t})}function u(e){let{className:t,size:s="default",children:l,...n}=e;return(0,a.jsxs)(i.l9,{"data-slot":"select-trigger","data-size":s,className:(0,
1c.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n,children:[l,(0,a.jsx)(i.In,{asChild:!0,children:(0,a.jsx)(r.A,{className:"size-4 opacity-50"})})]})}function x(e){let{className:t,children:s,position:r="popper",...l}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsxs)(i.UC,{"data-slot":"select-content",className:(0,c.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...l,children:[(0,a.jsx)(g,{}),(0,a.jsx)(i.LM,{className:(0,c.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),(0,a.jsx)(f,{})]})})}function h(e){let{className:t,...s}=e;return(0,a.jsx)(i.JU,{"data-slot":"select-label",className:(0,c.cn)("text-muted-foreground px-2 py-1.5 text-xs",t),...s})}function p(e){let{className:t,children:s,...r}=e;return(0,a.jsxs)(i.q7,{"data-slot":"select-item",className:(0,c.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...r,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(i.VF,{children:(0,a.jsx)(l.A,{className:"size-4"})})}),(0,a.jsx)(i.p4,{children:s})]})}function g(e){let{className:t,...s}=e;return(0,a.jsx)(i.PP,{"data-slot":"select-scroll-up-button",className:(0,c.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(n.A,{className:"size-4"})})}function f(e){let{className:t,...s}=e;return(0,a.jsx)(i.wn,{"data-slot":"select-scroll-down-button",className:(0,c.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(r.A,{className:"size-4"})})}},51439:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Comparison:()=>o});var a=s(47808),i=s(47706),r=s(85170),l=s(5784),n=s(72100),c=s(57169);function o(e){let{section:t,className:s}=e,o=t.items||[],d=t.our_label||"Our Tool",m=t.others_label||"Others",u=e=>"boolean"==typeof e?e?(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-green-500/10",children:(0,a.jsx)(i.A,{className:"h-5 w-5 text-green-500"})}):(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-red-500/10",children:(0,a.jsx)(r.A,{className:"h-5 w-5 text-red-500"})}):(0,a.jsx)("span",{className:"text-sm font-medium",children:e});
1return(0,a.jsx)("section",{id:t.id,className:(0,c.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)(n.ScrollAnimation,{delay:.2,children:(0,a.jsx)(l.Zp,{className:"mx-auto max-w-3xl overflow-hidden border-0 shadow-xl",children:(0,a.jsxs)(l.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"grid grid-cols-[1fr_80px_80px] items-center gap-3 border-b bg-muted/50 p-4 sm:grid-cols-[1fr_100px_100px] md:grid-cols-[1fr_140px_140px] md:gap-4 md:p-6",children:[(0,a.jsx)("div",{className:"pr-2 text-sm font-semibold text-muted-foreground",children:"Feature"}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("span",{className:"inline-block rounded-full bg-primary px-3 py-1 text-xs font-semibold text-primary-foreground",children:d})}),(0,a.jsx)("div",{className:"flex justify-center text-sm font-medium text-muted-foreground",children:m})]}),(0,a.jsx)("div",{className:"divide-y",children:o.map((e,t)=>(0,a.jsxs)("div",{className:(0,c.cn)("grid grid-cols-[1fr_80px_80px] items-center gap-3 p-4 transition-colors hover:bg-muted/30 sm:grid-cols-[1fr_100px_100px] md:grid-cols-[1fr_140px_140px] md:gap-4 md:p-6",t%2==0&&"bg-muted/10"),children:[(0,a.jsx)("div",{className:"text-foreground pr-2 text-sm font-medium leading-relaxed",children:e.feature}),(0,a.jsx)("div",{className:"flex justify-center",children:u(e.us)}),(0,a.jsx)("div",{className:"flex justify-center",children:u(e.others)})]},t))})]})})})]})})}},53710:(e,t,s)=>{"use strict";s.d(t,{Ke:()=>n,Nt:()=>r,R6:()=>l});var a=s(47808),i=s(12696);function r(e){let{...t}=e;return(0,a.jsx)(i.bL,{"data-slot":"collapsible",...t})}function l(e){let{...t}=e;return(0,a.jsx)(i.R6,{"data-slot":"collapsible-trigger",...t})}function n(e){let{...t}=e;return(0,a.jsx)(i.Ke,{"data-slot":"collapsible-content",...t})}},55573:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BlogDetail:()=>u});var a=s(47808),i=s(7315),r=s(84612),l=s(95626),n=s(88480),c=s(16934),o=s(68442),d=s(96393);function m(e){let{items:t}=e;return(0,a.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:t.map((e,t)=>{let s=e.is_active;return(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)(d.N_,{href:e.url||"",className:"hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ".concat(s?"text-primary hover:text-primary font-medium":""),children:[e.icon&&(0,a.jsx)(c.LK,{name:e.icon,className:"size-4"}),e.title]}),!s&&(0,a.jsx)(o.A,{className:"text-muted-foreground/40 mx-2 h-4 w-4"})]},t)})})}function u(e){let{post:t}=e,s=(0,n.c3)("pages.blog.messages"),o=[{title:s("crumb"),url:"/blog",icon:"Newspaper",is_active:!1},{title:t.title||"",url:"/blog/".concat(t.slug),is_active:!0}],d=t.toc&&t.toc.length>0,u=t.author_name||t.author_image||t.author_role;return(0,a.jsx)(i.TOCProvider,{toc:t.toc||[],children:(0,a.jsx)("section",{id:t.id,children:(0,a.jsx)("div",{className:"py-24 md:py-32",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[(0,a.jsx)(m,{items:o}),(0,a.jsxs)("div",{className:"mt-16 text-center",children:[(0,a.jsx)("h1",{className:"text-foreground mx-auto mb-4 w-full text-3xl font-bold md:max-w-4xl md:text-4xl",children:t.title}),(0,a.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:t.created_at&&(0,a.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,a.jsx)(r.A,{className:"size-4"})," ",t.created_at]})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[d&&(0,a.jsx)("div",{className:"lg:col-span-3",children:(0,a.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,a.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,a.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,a.jsx)(l.A,{className:"size-4"})," ",s("toc")]}),(0,a.jsx)(i.TOCItems,{})]})})}),(0,a.jsx)("div",{className:d&&u?"lg:col-span-6":d||u?"lg:col-span-9":"lg:col-span-12",children:(0,a.jsx)("article",{className:"p-0",children:t.body?(0,a.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:t.body}):t.content&&(0,a.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,a.jsx)(c.G8,{content:t.content})})})}),u&&(0,a.jsx)("div",{className:"lg:col-span-3",children:(0,a.jsx)("div",{className:"sticky top-24",children:(0,a.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,a.jsxs)("div",{className:"text-center",children:[t.author_image&&(0,a.jsx)("div",{className:"ring-foreground
1/10 mx-auto mb-4 aspect-square size-20 overflow-hidden rounded-xl border border-transparent shadow-md ring-1 shadow-black/15",children:(0,a.jsx)("img",{src:t.author_image,alt:t.author_name,className:"h-full w-full object-cover"})}),t.author_name&&(0,a.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:t.author_name}),t.author_role&&(0,a.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:t.author_role})]})})})})]})]})})})})}s(79043)},57737:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HeroGridMedia:()=>f});var a=s(47808),i=s(24309),r=s(36324),l=s(96393),n=s(16934),c=s(67202),o=s(78975),d=s(57169),m=s(43040),u=s(43434),x=s(6165);let h=["/imgs/avatars/singer3.webp","/imgs/avatars/singer6.webp","/imgs/avatars/singer4.webp","/imgs/avatars/singer9.webp","/imgs/avatars/singer2.webp","/imgs/avatars/singer5.webp"];function p(e){let{tip:t}=e;return(0,a.jsxs)("div",{className:"mx-auto mt-8 flex w-fit flex-col items-center gap-2 sm:flex-row",children:[(0,a.jsx)("span",{className:"mx-4 inline-flex items-center -space-x-2",children:h.map((e,t)=>(0,a.jsx)(x.Avatar,{className:"size-10 border",children:(0,a.jsx)(m.default,{width:40,height:40,src:e,alt:"placeholder"})},t))}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1 md:items-start",children:[(0,a.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(u.A,{className:"size-4 fill-yellow-400 text-yellow-400"},t))}),(0,a.jsx)("p",{className:"text-muted-foreground text-left text-sm font-normal",children:t})]})]})}let g=e=>({initial:{opacity:0,y:20,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:e,ease:[.22,1,.36,1]}});function f(e){var t,s,m,u;let{section:x,className:h}=e,f=null!=(t=x.highlight_text)?t:"",j=null;f&&(j=null==(s=x.title)?void 0:s.split(f,2));let v=x.media_items||[{type:"video",src:"https://s3.us-west-1.amazonaws.com/cdn.followr.online/landing/9fcc4cee-b9f1-498b-a78e-bd2b4ba9d32c.mp4"},{type:"image",src:"/imgs/hero-grid/cute-1.jpg",alt:"cute 1"},{type:"video",src:"https://s3.us-west-1.amazonaws.com/cdn.followr.online/landing/9fcec441-c8e9-4f44-9c15-a8b5ee595069.mp4"},{type:"image",src:"/imgs/hero-grid/cute-2.jpg",alt:"cute 2"},{type:"video",src:"https://s3.us-west-1.amazonaws.com/cdn.followr.online/landing/5ae6f0f6-1766-461e-969d-11088fdd34a0.MP4"},{type:"image",src:"/imgs/hero-grid/cute-3.jpg",alt:"cute 3"},{type:"image",src:"/imgs/hero-grid/cute-4.jpg",alt:"cute 4"},{type:"image",src:"/imgs/hero-grid/cute-5.jpg",alt:"cute 5"},{type:"video",src:"https://s3.us-west-1.amazonaws.com/cdn.followr.online/landing/9fcecb15-e526-4c64-9001-0cbb41e43f1a.mp4"},{type:"image",src:"/imgs/hero-grid/cute-6.jpg",alt:"cute 6"},{type:"image",src:"/imgs/hero-grid/cute-7.jpg",alt:"cute 7"},{type:"image",src:"/imgs/hero-grid/realistic-1.jpg",alt:"realistic 1"},{type:"video",src:"https://s3.us-west-1.amazonaws.com/cdn.followr.online/landing/9fc8133b-efdc-4ced-ae36-26c95252ce4f%20%282%29.mp4"},{type:"image",src:"/imgs/hero-grid/realistic-2.jpg",alt:"realistic 2"},{type:"image",src:"/imgs/hero-grid/realistic-3.jpg",alt:"realistic 3"},{type:"video",src:"https://s3.us-west-1.amazonaws.com/cdn.followr.online/landing/9fcecaef-1cb2-4a10-9519-2b6835a9dc17.mp4"},{type:"image",src:"/imgs/hero-grid/character-1.jpg",alt:"character 1"},{type:"image",src:"/imgs/hero-grid/character-2.jpg",alt:"character 2"}];return(0,a.jsxs)("section",{id:x.id,className:(0,d.cn)("relative min-h-[100svh] pt-24 pb-8 md:pt-36 md:pb-8 overflow-hidden",x.className,h),children:[(0,a.jsxs)("div",{className:"absolute inset-0 -z-10 hidden w-full h-full overflow-hidden md:block",children:[(0,a.jsx)("div",{className:"from-background/85 via-background/80 to-background/85 absolute inset-0 z-10 bg-gradient-to-b"}),(0,a.jsx)(i.P.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:1,delay:.3},className:"absolute inset-0",children:(0,a.jsx)("div",{className:"absolute inset-0 w-[150%]",style:{transform:"rotateX(-10deg) rotateY(5deg) rotateZ(-3deg) translateX(-180px) translateY(-80px)",transformOrigin:"center center",transformStyle:"preserve-3d"},children:(0,a.jsx)("div",{className:"grid grid-cols-9 gap-4 p-8",children:v.map((e,t)=>(0,a.jsx)("div",{className:"overflow-hidden rounded-lg bg-muted shadow-lg",style:{aspectRatio:"9 / 16"},children:"video"===e.type?(0,a.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,poster:e.poster,className:"w-full h-full object-cover",children:(0,a.jsx)("source",{src:e.src,type:"video/mp4"})}):(0,a.jsx)("img",{src:e.src,alt:e.alt||"",className:"w-full h-full object-cover"})},t))})})})]}),x.announcement&&(0,a.jsx)(i.P.div,{...g(0),children:(0,a.jsxs)(l.N_,{href:x.announcement.url||"",target:x.announcement.target||"_self",className:"hover:bg-background dark:hover:border-t-border bg-muted group mx-auto mb-8 flex w-fit items-center gap-4 roun
1ded-full border p-1 pl-4 shadow-md shadow-zinc-950/5 transition-colors duration-300 dark:border-t-white/5 dark:shadow-zinc-950",children:[(0,a.jsx)("span",{className:"text-foreground text-sm",children:x.announcement.title}),(0,a.jsx)("span",{className:"dark:border-background block h-4 w-0.5 border-l bg-white dark:bg-zinc-700"}),(0,a.jsx)("div",{className:"bg-background group-hover:bg-muted size-6 overflow-hidden rounded-full duration-500",children:(0,a.jsxs)("div",{className:"flex w-12 -translate-x-1/2 duration-500 ease-in-out group-hover:translate-x-0",children:[(0,a.jsx)("span",{className:"flex size-6",children:(0,a.jsx)(r.A,{className:"m-auto size-3"})}),(0,a.jsx)("span",{className:"flex size-6",children:(0,a.jsx)(r.A,{className:"m-auto size-3"})})]})})]})}),(0,a.jsxs)("div",{className:"relative mx-auto max-w-5xl px-4 text-center",children:[(0,a.jsx)(i.P.div,{...g(.15),children:j&&j.length>0?(0,a.jsxs)("h1",{className:"text-foreground text-5xl font-semibold text-balance mt-12 sm:text-6xl",children:[j[0],(0,a.jsx)(o.Highlighter,{action:"underline",color:"#FF9800",children:f}),j[1]]}):(0,a.jsx)("h1",{className:"text-foreground text-5xl font-semibold text-balance sm:mt-12 sm:text-6xl",children:x.title})}),(0,a.jsx)(i.P.p,{...g(.3),className:"text-muted-foreground mt-8 mb-8 text-lg text-balance",dangerouslySetInnerHTML:{__html:null!=(m=x.description)?m:""}}),x.buttons&&(0,a.jsx)(i.P.div,{...g(.45),className:"flex flex-col items-center justify-center gap-4 md:flex-row",children:x.buttons.map((e,t)=>{var s,i;return(0,a.jsx)(c.$,{asChild:!0,size:e.size||"default",variant:e.variant||"default",className:"px-4 text-sm",children:(0,a.jsxs)(l.N_,{href:null!=(s=e.url)?s:"",target:null!=(i=e.target)?i:"_self",children:[e.icon&&(0,a.jsx)(n.LK,{name:e.icon}),(0,a.jsx)("span",{children:e.title})]})},t)})}),x.tip&&(0,a.jsx)(i.P.p,{...g(.6),className:"text-muted-foreground mt-6 block text-center text-sm",dangerouslySetInnerHTML:{__html:null!=(u=x.tip)?u:""}}),x.show_avatars&&(0,a.jsx)(i.P.div,{...g(.75),children:(0,a.jsx)(p,{tip:x.avatars_tip||""})})]})]})}},58321:(e,t,s)=>{"use strict";s.r(t),s.d(t,{MotionPresets:()=>k}
1);var a=s(47808),i=s(71500),r=s(24309),l=s(58963),n=s(11836),c=s(32091),o=s(36324),d=s(37775),m=s(95554),u=s(10818),x=s(45959),h=s(7291),p=s(98825),g=s(16934),f=s(18512),j=s(5784),v=s(72100),b=s(57169);let N={"zoom-in":(0,a.jsx)(l.A,{className:"h-8 w-8"}),"zoom-out":(0,a.jsx)(n.A,{className:"h-8 w-8"}),"pan-left":(0,a.jsx)(c.A,{className:"h-8 w-8"}),"pan-right":(0,a.jsx)(o.A,{className:"h-8 w-8"}),"pan-up":(0,a.jsx)(d.A,{className:"h-8 w-8"}),"pan-down":(0,a.jsx)(m.A,{className:"h-8 w-8"}),"rotate-cw":(0,a.jsx)(u.A,{className:"h-8 w-8"}),"rotate-ccw":(0,a.jsx)(x.A,{className:"h-8 w-8"}),expand:(0,a.jsx)(h.A,{className:"h-8 w-8"}),contract:(0,a.jsx)(p.A,{className:"h-8 w-8"})},y={"zoom-in":{initial:{scale:1},animate:{scale:1.15}},"zoom-out":{initial:{scale:1.15},animate:{scale:1}},"pan-left":{initial:{x:0},animate:{x:-15}},"pan-right":{initial:{x:0},animate:{x:15}},"pan-up":{initial:{y:0},animate:{y:-15}},"pan-down":{initial:{y:0},animate:{y:15}},"rotate-cw":{initial:{rotate:0},animate:{rotate:5}},"rotate-ccw":{initial:{rotate:0},animate:{rotate:-5}}};function w(e){let{item:t,index:s}=e,l=(0,i.useRef)(null),[n,c]=(0,i.useState)(!1),o=t.animation_type||"zoom-in",d=y[o]||y["zoom-in"];return(0,i.useEffect)(()=>{l.current&&t.preview_video&&(n?l.current.play().catch(()=>{}):(l.current.pause(),l.current.currentTime=0))},[n,t.preview_video]),(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.05*s,ease:[.22,1,.36,1]},children:(0,a.jsx)(j.Zp,{className:"group h-full cursor-pointer overflow-hidden border-0 transition-all duration-300 hover:shadow-lg hover:shadow-primary/10",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:(0,a.jsxs)(j.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-muted",children:[t.preview_video?(0,a.jsxs)(a.Fragment,{children:[t.thumbnail&&!n&&(0,a.jsx)(g.oD,{src:t.thumbnail,alt:t.title,className:"h-full w-full object-cover"}),(0,a.jsx)("video",{ref:l,src:t.preview_video,muted:!0,loop:!0,playsInline:!0,className:(0,b.cn)("h-full w-full object-cover transition-opacity duration-300",n||!t.thumbnail?"opacity-100":"opacity-0")})]}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/20 to-primary/5",children:(0,a.jsx)(r.P.div,{className:"flex h-24 w-24 items-center justify-center rounded-xl bg-background shadow-lg",initial:d.initial,animate:n?d.animate:d.initial,transition:{duration:1.5,ease:"easeInOut",repeat:n?1/0:0,repeatType:"reverse"},children:t.icon?(0,a.jsx)(f.L,{name:t.icon,size:32,className:"text-primary"}):(0,a.jsx)("div",{className:"text-primary",children:N[o]||N["zoom-in"]})})}),(0,a.jsx)("div",{className:"absolute right-3 top-3",children:(0,a.jsx)("span",{className:"rounded bg-black/60 px-2 py-1 text-xs font-medium capitalize text-white backdrop-blur-sm",children:o.replace("-"," ")})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-foreground mb-1 font-semibold",children:t.title}),t.description&&(0,a.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:t.description})]})]})})})}function k(e){let{section:t,className:s}=e,i=t.items||[],l=t.columns||4;return(0,a.jsx)("section",{id:t.id,className:(0,b.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(v.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)("div",{className:(0,b.cn)("grid gap-6",2===l?"sm:grid-cols-2":3===l?"sm:grid-cols-2 lg:grid-cols-3":5===l?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5":6===l?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6":"sm:grid-cols-2 lg:grid-cols-4"),children:i.map((e,t)=>(0,a.jsx)(w,{item:e,index:t},t))}),0===i.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No motion presets available."})]})})}},63326:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesMedia:()=>n});var a=s(47808),i=s(24309),r=s(16934),l=s(57169);function n(e){var t,s,n,c,o;let{section:d}=e,m="right"===(d.image_position||"left");return(0,a.jsx)("section",{id:d.id||d.name,className:(0,l.cn)("py-16 md:py-24",d.className),children:(0,a.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:(0,a.jsxs)(i.P.div,{className:(0,l.cn)("grid items-center gap-6 sm:grid-cols-2 md:gap-12 lg:gap-24",m&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1"),initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,ease:[.22,1,.36,1]},children:[(0,a.jsx)(i.P.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:.2,ease:[.22,1,.36,1]},children:(0,a.jsx)(r.oD,{src:null!=(c=null==(t=d.image)?void 0:t.src)?c:"",className:"rounded-2xl",alt:null!=(o=null==(s=d.image)?void 0:s.alt)?o:""})}),(0,a.jsxs)(i.P.div,{className:"relative space-y-4",initial:{opacity:0,x:m?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.3,ease:[.22,1,.36,1]},children:[(0,a.jsx)("h2",{className:"text-xl font-medium md:text-lg lg:text-lg",children:d.title}),(0,a.jsx)("p",{className:"text-muted-foreground text-md",children:d.description}),(0,a.jsx)("div",{className:"mt-8 flex flex-wrap gap-4",children:null==(n=d.items)?void 0:n.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"mb-2 flex items-center gap-2 text-sm",children:[(0,a.jsx)(r.LK,{name:e.icon,size:16}),e.title]}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]},e.title))})]})]})})})}},65287:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ShowcasesFlow:()=>p});var a=s(47808),i=s(71500),r=s(24309),l=s(12271),n=s(85170),c=s(20017),o=s(68442),d=s(96393),m=s(16934),u=s(18512),x=s(67202),h=s(57169);function p(e){var t,s,p,g;let{section:f,className:j}=e,v=f.groups||[],[b,N]=(0,i.useState)(v.length>0?v[0].name:""),[y,w]=(0,i.useState)(null),k=(0,i.useMemo)(()=>f.items?b&&v.length&&"all"!==b?f.items.filter(e=>e.group===b):f.items:[],[f.items,b,v.length]),_=(0,i.useCallback)(()=>{w(e=>{var t;return null!==e?0===e?(null!=(t=k.length)?t:1)-1:e-1:null})},[k.length]),A=(0,i.useCallback)(()=>{w(e=>{var t;return null!==e?e===(null!=(t=k.length)?t:1)-1?0:e+1:null})},[k.length]);return(0,i.useEffect)(()=>{let e=e=>{null!==y&&("Escape"===e.key&&w(null),"ArrowLeft"===e.key&&_(),"ArrowRight"===e.key&&A())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[y,_,A]),(0,a.jsxs)("section",{id:f.id||f.name,className:(0,h.cn)("py-24 md:py-36",f.className,j),children:[(0,a.jsxs)(r.P.div,{className:"container mb-12 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,ease:[.22,1,.36,1]},children:[f.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:f.sr_only_title}),(0,a.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:f.title}),(0,a.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 line-clamp-3 max-w-full md:max-w-5xl",children:f.description}),f.buttons&&f.buttons.length>0&&(0,a.jsx)("div",{className:"container mx-auto mt-8 mb-12 flex flex-wrap justify-center gap-4",children:f.buttons.map(e=>(0,a.jsx)(x.$,{variant:e.variant||"default",size:e.size||"sm",asChild:!0,children:(0,a.jsxs)(d.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,a.jsx)(u.L,{name:e.icon}),e.title]})},e.title))})]}),v.length>0&&(0,a.jsx)(r.P.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:v.map((e,t)=>{let s=b===e.name;return(0,a.jsx)(r.P.button,{onClick:()=>N(e.name),className:(0,h.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",s?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.2+.1*t,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,a.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,a.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,a.jsx)("span",{children:e.title})},e.name)})}),k.length>0?(0,a.jsx)("div",{className:"container mx-auto columns-1 gap-4 space-y-4 sm:columns-2 lg:columns-3 xl:columns-4",children:k.map((e,t)=>{var s,i,l,n;return(0,a.jsxs)(r.P.div,{className:"group relative cursor-zoom-in break-inside-avoid overflow-hidden rounded-xl",onClick:()=>w(t),initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*t,ease:[.22,1,.36,1]},whileHover:{scale:1.02},children:[(0,a.jsx)(m.oD,{src:null!=(l=null==(s=e.image)?void 0:s.src)?l:"",alt:null!=(n=null==(i=e.image)?void 0:i.alt)?n:"",className:"h-auto w-full transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end bg-black/60 p-6 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:[(0,a.jsx)("h3",{className:"mb-2 translate-y-4 text-sm font-medium text-white transition-transform duration-300 group-hover:translate-y-0",children:e.title}),e.button&&(0,a.jsx)("div",{className:"mt-3 translate-y-4 transition-transform delay-100 duration-300 group-hover:translate-y-0",onClick:e=>e.stopPropagation(),children:(0,a.jsx)(x.$,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground h-8 w-full border-0 px-1 py-1.5 text-sm font-medium",children:(0,a.jsxs)(d.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,a.jsx)(u.L,{name:e.button.icon}),e.button.title]})})})]})]},t)})}):(0,a.jsx)(r.P.div,{className:"text-muted-foreground container text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},children:"No items found in this category."}),(0,a.jsx)(l.N,{children:null!==y&&k&&k.length>0&&(0,a.jsxs)(r.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90 p-4 backdrop-blur-sm md:p-8",onClick:()=>w(null),children:[(0,a.jsx)("button",{className:"absolute top-4 right-4 z-50 text-white/70 transition-colors hover:text-white",onClick:()=>w(null),children:(0,a.jsx)(n.A,{className:"size-8"})}),(0,a.jsx)("button",{className:"absolute top-1/2 left-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),_()},children:(0,a.jsx)(c.A,{className:"size-8 md:size-12"})}),(0,a.jsx)("button",{className:"absolute top-1/2 right-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),A()},children:(0,a.jsx)(o.A,{className:"size-8 md:size-12"})}),(0,a.jsx)(r.P.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"relative flex h-full w-full items-center justify-center",onClick:e=>e.stopPropagation(),children:(0,a.jsxs)("div",{className:"relative max-h-full max-w-full overflow-hidden rounded-lg",children:[(0,a.jsx)(m.oD,{src:null!=(p=null==(t=k[y].image)?void 0:t.src)?p:"",alt:null!=(g=null==(s=k[y].image)?void 0:s.alt)?g:"",className:"h-auto max-h-[90vh] w-auto max-w-full object-contain"}),(0,a.jsxs)("div",{className:"absolute right-0 bottom-0 left-0 bg-gradient-to-t from-black/80 via-black/50 to-transparent p-6 text-white",children:[(0,a.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:k[y].title}),k[y].description&&(0,a.jsx)("p",{className:"line-clamp-3 text-base text-white/90",children:k[y].description}),k[y].button&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(x.$,{asChild:!0,variant:k[y].button.variant||"default",size:k[y].button.size||"default",className:"bg-primary hover:bg-primary/90 h-8 border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,a.jsxs)(d.N_,{href:k[y].button.url||"",target:k[y].button.target||"_self",children:[k[y].button.icon&&(0,a.jsx)(u.L,{name:k[y].button.icon,className:"text-white"}),k[y].button.title]})})})]})]})},y)]})})]})}},68540:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesStudio:()=>o});var a=s(47808),i=s(71500),r=s(24309),l=s(16934),n=s(72100),c=s(57169);function o(e){var t,s;let{section:i,className:l}=e,o=i.media_items||[];return(0,a.jsxs)("section",{id:i.id,className:(0,c.cn)("relative min-h-screen bg-background overflow-hidden",l),style:{perspective:"1000px"},children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-30 dark:opacity-20 transition-all duration-1000 ease-out",style:{background:"radial-gradient(circle at 49.1519% 57.9176%, var(--primary) 0%, var(--secondary) 25%, var(--accent) 50%, transparent 70%)"}}),(0,a.jsxs)("div",{className:"relative z-10 container mx-auto px-4 py-16 lg:py-24",children:[(0,a.jsxs)("div",{className:"text-center mb-20",children:[(0,a.jsxs)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},className:"inline-flex items-center gap-3 px-6 py-3 bg-secondary/10 backdrop-blur-xl rounded-full border border-border mb-8",children:[(0,a.jsxs)("div",{className:"relative flex h-3 w-3",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-primary"})]}),(0,a.jsx)("span",{className:"font-semibold text-primary text-xs uppercase tracking-wider",children:i.badge||"AI Creative Studio"})]}),(0,a.jsxs)(r.P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"text-3xl md:text-4xl font-bold mb-8 leading-tight text-foreground",children:[(0,a.jsx)("span",{className:"block mb-2",children:(null==(t=i.title)?void 0:t.split("\n")[0])||"Where AI Meets"}),(0,a.jsx)("span",{className:"relative inline-block text-transparent bg-clip-text bg-gradient-to-r from-primary to-primary",children:(null==(s=i.title)?void 0:s.split("\n")[1])||"Creative Brilliance"})]}),(0,a.jsx)(r.P.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"text-lg lg:text-xl font-normal text-muted-foreground max-w-4xl mx-auto leading-relaxed",dangerouslySetInnerHTML:{__html:i.description||"Experience the future of content creation with our AI-powered tools. From stunning visuals to captivating videos, watch your ideas come to life."}})]}),(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsx)("div",{className:"hidden lg:block mb-20",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-4 justify-start",children:o.map((e,t)=>(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.4,delay:.05*t},className:"group cursor-pointer transform transition-all duration-500 hover:scale-105 flex-shrink-0",style:{width:"220px",aspectRatio:"1"},children:(0,a.jsx)(d,{item:e})},t))})})}),(0,a.jsx)("div",{className:"lg:hidden mb-20",children:(0,a.jsx)("div",{className:"columns-2 gap-3 sm:gap-4 space-y-3 sm:space-y-4",children:o.map((e,t)=>(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.4,delay:.05*t},className:"group cursor-pointer transform transition-all duration-500 hover:scale-105 break-inside-avoid",style:{aspectRatio:"1"},children:(0,a.jsx)(d,{item:e})},t))})})]})]})}function d(e){let{item:t}=e,s=(0,i.useRef)(null);return"icon"===t.type?(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-2xl shadow-xl hover:shadow-2xl transition-all duration-500 group-hover:shadow-
1primary/25 h-full p-6 flex flex-col items-center justify-center text-center",style:{backgroundColor:t.backgroundColor||"var(--secondary)"},children:[(0,a.jsx)("div",{className:"w-20 h-20 mb-3 flex items-center justify-center rounded-2xl bg-background/50 dark:bg-foreground/5 shadow-lg",children:(0,a.jsx)(l.oD,{src:t.src,alt:t.name||"Integration",className:"w-12 h-12 object-contain"})}),t.name&&(0,a.jsx)("h3",{className:"font-semibold text-foreground dark:text-card-foreground text-sm",children:t.name}),t.description&&(0,a.jsx)("p",{className:"text-muted-foreground text-xs mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:t.description})]}):(0,a.jsx)("div",{className:"relative w-full overflow-hidden rounded-2xl bg-card shadow-xl hover:shadow-2xl transition-all duration-500 group-hover:shadow-primary/25 h-full",onMouseEnter:()=>{s.current&&"video"===t.type&&s.current.play()},onMouseLeave:()=>{s.current&&"video"===t.type&&(s.current.pause(),s.current.currentTime=0)},children:(0,a.jsxs)("div",{className:"relative w-full h-full",children:["video"===t.type?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("video",{ref:s,loop:!0,playsInline:!0,preload:"metadata",poster:t.poster,className:"w-full h-full object-cover",muted:!0,children:(0,a.jsx)("source",{src:t.src,type:"video/mp4"})})}):(0,a.jsx)(l.oD,{src:t.src,alt:t.alt||"Media",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"}),"video"!==t.type&&(0,a.jsx)("div",{className:"absolute inset-0 bg-background/80 dark:bg-black/70 backdrop-blur-[2px] opacity-0 group-hover:opacity-100 transition-all duration-300"}),(t.name||t.description)&&(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-4 opacity-0 group-hover:opacity-100 transition-all duration-300",children:[t.name&&(0,a.jsx)("h3",{className:"font-semibold text-foreground dark:text-white text-sm mb-1",children:t.name}),t.description&&(0,a.jsx)("p",{className:"text-foreground/80 dark:text-white/80 text-xs leading-relaxed",children:t.description})]})]})})}},69706:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Showcases:()=>u});var a=s(47808),i=s(71500),r=s(43040),l=s(24309),n=s(96393),c=s(18512),o=s(67202),d=s(5784),m=s(57169);function u(e){let{section:t,className:s}=e,u=t.groups||[],[x,h]=(0,i.useState)(u.length>0?u[0].name:""),p=(0,i.useMemo)(()=>t.items?x&&u.length&&"all"!==x?t.items.filter(e=>e.group===x):t.items:[],[t.items,x,u.length]);return(0,a.jsxs)("section",{id:t.id||t.name,className:(0,m.cn)("py-24 md:py-36",t.className,s),children:[(0,a.jsxs)(l.P.div,{className:"container mb-12 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,ease:[.22,1,.36,1]},children:[t.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:t.sr_only_title}),(0,a.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:t.description})]}),u.length>0&&(0,a.jsx)(l.P.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:u.map((e,t)=>{let s=x===e.name;return(0,a.jsx)(l.P.button,{onClick:()=>h(e.name),className:(0,m.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",s?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.2+.1*t,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,a.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,a.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,a.jsx)("span",{children:e.title})},e.name)})}),(0,a.jsx)("div",{className:"container grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:p.length>0?p.map((e,t)=>{var s,i,m,u,x;let h=!!e.button,p=(0,a.jsx)(l.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*t,ease:[.22,1,.36,1]}
1,children:(0,a.jsx)(d.Zp,{className:"dark:hover:shadow-primary/10 overflow-hidden p-0 transition-all hover:shadow-lg",children:(0,a.jsxs)(d.Wu,{className:"p-0",children:[(0,a.jsx)(l.P.div,{className:"relative aspect-16/10 w-full overflow-hidden",whileHover:{scale:1.05},transition:{duration:.3},children:(0,a.jsx)(r.default,{src:null!=(m=null==(s=e.image)?void 0:s.src)?m:"",alt:null!=(u=null==(i=e.image)?void 0:i.alt)?u:"",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",fill:!0,className:"rounded-t-lg object-cover transition-transform duration-300"})}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsx)("h3",{className:"mb-2 line-clamp-1 text-xl font-semibold text-balance",children:e.title}),(0,a.jsx)("p",{className:"text-muted-foreground line-clamp-3 text-sm",dangerouslySetInnerHTML:{__html:null!=(x=e.description)?x:""}}),h&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(o.$,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 h-8 w-full border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,a.jsxs)(n.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,a.jsx)(c.L,{name:e.button.icon,className:"text-white"}),e.button.title]})})})]})]})})});return h?(0,a.jsx)("div",{children:p},t):(0,a.jsx)(n.N_,{href:e.url||"",target:e.target,children:p},t)}):(0,a.jsx)(l.P.div,{className:"text-muted-foreground col-span-full text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},children:"No items found in this category."})})]})}},72100:(e,t,s)=>{"use strict";s.d(t,{ScrollAnimation:()=>c});var a=s(47808),i=s(71500),r=s(40116),l=s(22977),n=s(24309);function c(e){let{children:t,className:s="",delay:c=0,direction:o="up",stagger:d=!1}=e,m=(0,i.useRef)(null),u=(0,r.W)(m,{once:!0,margin:"-50px"});if((0,l.I)())return(0,a.jsx)("div",{ref:m,className:s,children:t});let x=()=>{switch(o){case"up":default:return{y:30,x:0};case"down":return{y:-30,x:0};case"left":return{x:30,y:0};case"right":return{x:-30,y:0}}},h={hidden:{opacity:0,...x(),filter:"blur(4px)"},visible:{opacity:1,x:0,y:0,filter:"blur(0px)",transition:{duration:.6,ease:[.22,1,.36,1]}}};return d?(0,a.jsx)(n.P.div,{ref:m,variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:c}}},initial:"hidden",animate:u?"visible":"hidden",className:s,children:i.Children.map(t,e=>(0,a.jsx)(n.P.div,{variants:h,children:e}))}):(0,a.jsx)(n.P.div,{ref:m,initial:{opacity:0,...x(),filter:"blur(4px)"},animate:u?{opacity:1,x:0,y:0,filter:"blur(0px)"}:{opacity:0,...x(),filter:"blur(4px)"},transition:{duration:.6,delay:c,ease:[.22,1,.36,1]},className:s,children:t})}},74826:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesFlow:()=>n});var a=s(47808),i=s(24309),r=s(16934),l=s(57169);function n(e){let{section:t}=e;return t.items&&0!==t.items.length?(0,a.jsxs)("section",{id:t.id||t.name,className:(0,l.cn)("py-16 md:py-24",t.className),children:[(0,a.jsxs)(i.P.div,{className:"container mb-12 text-center",...{initial:{opacity:0,y:20,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:0,ease:[.22,1,.36,1]}},children:[t.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:t.sr_only_title}),(0,a.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:t.description})]}),(0,a.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:t.items.map((e,t)=>{var s,n,c,o;let d="right"===e.image_position;return(0,a.jsxs)(i.P.div,{className:(0,l.cn)("grid items-center gap-6 py-16 sm:grid-cols-2 md:gap-12 lg:gap-24",d&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1"),initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.15*t,ease:[.22,1,.36,1]},children:[(0,a.jsx)(i.P.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:.15*t+.2,ease:[.22,1,.36,1]},children:(0,a.jsx)(r.oD,{src:null!=(c=null==(s=e.image)?void 0:s.src)?c:"",className:"rounded-2xl",alt:null!=(o=null==(n=e.image)?void 0:n.alt)?o:""})}),(0,a.jsxs)(i.P.div,{className:"relative space-y-4",initial:{opacity:0,x:d?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.15*t+.3,ease:[.22,1,.36,1]},children:[(0,a.jsx)("h3",{className:"text-xl font-medium md:text-2xl lg:text-2xl",children:e.title}),(0,a.jsx)("p",{className:"text-muted-foreground",children:e.description})]})]},t)})})]}):null}},77121:(e,t,s)=>{"use strict";s.r(t),s.d(t,{MotionStyles:()=>u});var a=s(47808),i=s(71500),r=s(24309),l=s(16934),n=s(67202),c=s(5784),o=s(72100),d=s(57169);function m(e){let{item:t,index:s}=e,n=(0,i.useRef)(null),[o,m]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{n.current&&(o?n.current.play().catch(()=>{}):(n.current.pause(),n.current.currentTime=0))},[o]),(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.05*s,ease:[.22,1,.36,1]},children:(0,a.jsx)(c.Zp,{className:"group h-full overflow-hidden border-0 transition-all duration-300 hover:shadow-lg hover:shadow-primary/10",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:(0,a.jsxs)(c.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative aspect-video overflow-hidden",children:[t.thumbnail&&!o&&(0,a.jsx)(l.oD,{src:t.thumbnail,alt:t.title,className:"h-full w-full object-cover"}),(0,a.jsx)("video",{ref:n,src:t.video_url,muted:!0,loop:!0,playsInl
1ine:!0,className:(0,d.cn)("h-full w-full object-cover transition-opacity duration-300",o||!t.thumbnail?"opacity-100":"opacity-0")}),!o&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 transition-opacity duration-300 group-hover:opacity-0",children:(0,a.jsx)("div",{className:"rounded-full bg-white/90 px-4 py-2 text-sm font-medium text-black shadow-lg",children:"Hover to preview"})}),t.category&&(0,a.jsx)("div",{className:"absolute left-3 top-3",children:(0,a.jsx)("span",{className:"rounded-full bg-black/60 px-3 py-1 text-xs font-medium text-white backdrop-blur-sm",children:t.category})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-foreground mb-1 font-semibold",children:t.title}),t.description&&(0,a.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:t.description})]})]})})})}function u(e){let{section:t,className:s}=e,l=t.groups||[],c=t.items||[],[u,x]=(0,i.useState)(l.length>0?l[0].name:"all"),h=(0,i.useMemo)(()=>u&&"all"!==u?c.filter(e=>e.category===u):c,[c,u]);return(0,a.jsx)("section",{id:t.id,className:(0,d.cn)("bg-muted/30 py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(o.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),l.length>0&&(0,a.jsx)(r.P.div,{className:"mb-8 flex flex-wrap justify-center gap-3",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:l.map(e=>{let t=u===e.name;return(0,a.jsx)(n.$,{variant:t?"default":"outline",size:"sm",onClick:()=>x(e.name),children:e.title},e.name)})}),(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:h.map((e,t)=>(0,a.jsx)(m,{item:e,index:t},t))}),0===h.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No motion styles found in this category."})]})})}},77452:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Subscribe:()=>u});var a=s(47808),i=s(71500),r=s(73801),l=s(21008),n=s(14715),c=s(31963),o=s(67202),d=s(72100),m=s(57169);function u(e){var t,s,u;let{section:x,className:h}=e,[p,g]=(0,i.useState)(""),[f,j]=(0,i.useState)(!1),v=async()=>{var e;if(p&&(null==(e=x.submit)?void 0:e.action))try{j(!0);let e=await fetch(x.submit.action,{method:"POST",body:JSON.stringify({email:p})});if(!e.ok)throw Error("request failed with status ".concat(e.status));let{code:t,message:s,data:a}=await e.json();if(0!==t)throw Error(s);j(!1),s&&c.oR.success(s)}catch(e){j(!1),c.oR.error(e.message||"subscribe failed")}};return(0,a.jsx)("section",{id:x.id,className:(0,m.cn)("py-16 md:py-24",x.className,h),children:(0,a.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(d.ScrollAnimation,{children:(0,a.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:x.title})}),(0,a.jsx)(d.ScrollAnimation,{delay:.15,children:(0,a.jsx)("p",{className:"mt-4",children:x.description})}),(0,a.jsx)(d.ScrollAnimation,{delay:.3,children:(0,a.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,a.jsxs)("div",{className:"bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-[calc(var(--radius)+0.75rem)] border pr-3 shadow shadow-zinc-950/5 has-[input:focus]:ring-2",children:[(0,a.jsx)(r.A,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,a.jsx)("input",{placeholder:(null==(s=x.submit)||null==(t=s.input)?void 0:t.placeholder)||"Enter your email",className:"h-14 w-full bg-transparent pl-12 focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-invalid":!p,"aria-describedby":"email-error",value:p,onChange:e=>g(e.target.value)}),(null==(u=x.submit)?void 0:u.button)&&(0,a.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,a.jsxs)(o.$,{"aria-label":"submit",className:"rounded-(--radius)",onClick:v,disabled:f,type:"submit",children:[f?(0,a.jsx)(l.A,{className:"animate-spin"}):(0,a.jsx)("span",{className:"hidden md:block",children:x.submit.button.title}),(0,a.jsx)(n.A,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}},77456:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Tabs:()=>m});var a=s(47808),i=s(71500),r=s(96393),l=s(19530),n=s(57169);let c=i.forwardRef((e,t)=>{let{className:s,children:i,...r}=e;return(0,a.jsxs)(l.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",s),...r,children:[(0,a.jsx)(l.LM,{className:"h-full w-full rounded-[inherit]",children:i}),(0,a.jsx)(o,{}),(0,a.jsx)(l.OK,{})]})});c.displayName=l.bL.displayName;let o=i.forwardRef((e,t)=>{let{className:s,orientation:i="vertical",...r}=e;return(0,a.jsx)(l.VM,{ref:t,orientation:i,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===i&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===i&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...r,children:(0,a.jsx)(l.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=l.VM.displayName;var d=s(29650);function m(e){var t;let{tabs:s,size:l}=e,m=(0,r.rd)(),[u,x]=(0,i.useState)((null==s||null==(t=s.find(e=>e.is_active))?void 0:t.name)||""),[h,p]=(0,i.useState)({});return(0,i.useEffect)(()=>{if(u){let e=(null==s?void 0:s.find(e=>e.name===u))||{};e.url&&m.push(e.url)}},[u]),(0,a.jsx)("div",{className:"relative mb-8",children:(0,a.jsxs)(c,{className:"w-full lg:max-w-none",children:[(0,a.jsx)("div",{className:"flex items-center space-x-2",children:(0,a.jsx)(d.tU,{value:u,onValueChange:x,children:(0,a.jsx)(d.j7,{className:(0,n.cn)("sm"===l&&"h-8"),children:s.map((e,t)=>(0,a.jsx)(d.Xi,{value:e.name||"",children:e.title},t))})})}),(0,a.jsx)(o,{orientation:"horizontal",className:"invisible"})]})})}},78975:(e,t,s)=>{"use strict";s.d(t,{Highlighter:()=>n});var a=s(47808),i=s(71500),r=s(40116),l=s(48276);function n(e){let{children:t,action:s="highlight",color:n="#ffd1dc",strokeWidth:c=1.5,animationDuration:o=600,iterations:d=2,padding:m=2,multiline:u=!0,isView:x=!1}=e,h=(0,i.useRef)(null),p=(0,i.useRef)(null),g=(0,r.W)(h,{once:!0,margin:"-10%"}),f=!x||g;return(0,i.useEffect)(()=>
1{if(!f)return;let e=h.current;if(!e)return;let t=(0,l.f)(e,{type:s,color:n,strokeWidth:c,animationDuration:o,iterations:d,padding:m,multiline:u});p.current=t,p.current.show();let a=new ResizeObserver(()=>{t.hide(),t.show()});return a.observe(e),a.observe(document.body),()=>{e&&((0,l.f)(e,{type:s}).remove(),a.disconnect())}},[f,s,n,c,o,d,m,u]),(0,a.jsx)("span",{ref:h,className:"relative inline-block bg-transparent",children:t})}},79043:()=>{},79063:(e,t,s)=>{"use strict";s.r(t),s.d(t,{TechSpecs:()=>o});var a=s(47808),i=s(24309),r=s(18512),l=s(5784),n=s(72100),c=s(57169);function o(e){let{section:t,className:s}=e,o=t.items||[];return"list"===(t.layout||"grid")?(0,a.jsx)("section",{id:t.id,className:(0,c.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)(n.ScrollAnimation,{delay:.2,children:(0,a.jsx)(l.Zp,{className:"mx-auto max-w-2xl border-0 shadow-lg",children:(0,a.jsx)(l.Wu,{className:"divide-y p-0",children:o.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 transition-colors hover:bg-muted/30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[e.icon&&(0,a.jsx)(r.L,{name:e.icon,size:20,className:"text-primary"}),(0,a.jsx)("span",{className:"text-foreground font-medium",children:e.title})]}),(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:e.value})]},t))})})})]})}):(0,a.jsx)("section",{id:t.id,className:(0,c.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:o.map((e,t)=>(0,a.jsx)(i.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.05*t,ease:[.22,1,.36,1]},children:(0,a.jsx)(l.Zp,{className:"h-full border-0 bg-gradient-to-br from-muted/50 to-muted/30 transition-all duration-300 hover:shadow-md",children:(0,a.jsxs)(l.Wu,{className:"flex flex-col items-center p-6 text-center",children:[e.icon&&(0,a.jsx)("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10",children:(0,a.jsx)(r.L,{name:e.icon,size:24,className:"text-primary"})}),(0,a.jsx)("div",{className:"text-primary mb-1 text-2xl font-bold",children:e.value}),(0,a.jsx)("h4",{className:"text-foreground mb-1 font-medium",children:e.title}),e.description&&(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]})})},t))})]})})}},79324:(e,t,s)=>{"use strict";s.r(t),s.d(t,{TextToImageGuestShowcase:()=>m});var a=s(47808),i=s(71500),r=s(86349),l=s(28684),n=s(20017),c=s(68442),o=s(73489),d=s(67202);function m(e){let{items:t=[],features:s=[],translations:m}=e,[u,x]=(0,i.useState)(0);if(0===t.length)return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,a.jsx)("div",{className:"bg-muted mb-4 flex h-16 w-16 items-center justify-center rounded-full",children:(0,a.jsx)(r.A,{className:"text-muted-foreground h-8 w-8"})}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 text-sm",children:(null==m?void 0:m.sign_in_to_create)||"Sign in to start creating amazing images"}),h()]});function h(){return 0===s.length?null:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-3",children:(null==m?void 0:m.features)||"Features"}),(0,a.jsx)("ul",{className:"space-y-2",children:s.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{children:e})]},t))})]})}let p=t[u];return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:(null==m?void 0:m.sample_results)||"Sample Results"})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"relative aspect-square overflow-hidden rounded-lg border",children:(0,a.jsx)(o.LazyImage,{src:p.url,alt:p.alt||"Sample ".concat(u+1),className:"h-full w-full object-cover"})}),p.prompt&&(0,a.jsx)("div",{className:"bg-muted rounded-lg p-3",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:[(0,a.jsx)("span",{className:"font-medium",children:"Prompt:"})," ",p.prompt]})})]}),t.length>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e-1+t.length)%t.length),children:(0,a.jsx)(n.A,{className:"h-4 w-4"})}),(0,a.jsxs)("span",{className:"text-muted-foreground text-sm",children:[u+1," / ",t.length]}),(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e+1)%t.length),children:(0,a.jsx)(c.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"pt-4 border-t",children:h()})]})}},80814:(e,t,s)=>{"use strict";s.r(t),s.d(t,{TransformationGallery:()=>p});var a=s(47808),i=s(71500),r=s(24309),l=s(23923),n=s(20017),c=s(68442),o=s(16934),d=s(67202),m=s(5784),u=s(72100),x=s(57169);function h(e){let{item:t,className:s}=e,r=(0,i.useRef)(null),[n,c]=(0,i.useState)(50),[d,m]=(0,i.useState)(!1),u=(0,i.useCallback)(e=>{if(!r.current)return;let t=r.current.getBoundingClientRect();c(Math.max(0,Math.min(100,(e-t.left)/t.width*100)))},[]),h=()=>m(!0),p=()=>m(!1),g=(0,i.useCallback)(e=>{d&&u(e.clientX)},[d,u]),f=(0,i.useCallback)(e=>{u(e.touches[0].clientX)},[u]);return(0,a.jsxs)("div",{ref:r,className:(0,x.cn)("relative aspect-square cursor-ew-resize select-none overflow-hidden rounded-xl",s),onMouseMove:g,onMouseUp:p,onMouseLeave:p,onTouchMove:f,onTouchEnd:p,children:[(0,a.jsxs)("div",{className:"absolute inset-0",children:[(0,a.jsx)(o.oD,{src:t.after_image,alt:t.after_label||"After",className:"h-full w-full object-cover"}),(0,a.jsx)("div",{className:"absolute bottom-3 right-3",children:(0,a.jsx)("span",{className:"rounded bg-primary px-2 py-1 text-xs font-medium text-primary-foreground",children:t.after_label||"After"})})]}),(0,a.jsxs)("div",{className:"absolute inset-0",style:{clipPath:"inset(0 ".concat(100-n,"% 0 0)")},children:[(0,a.jsx)(o.oD,{src:t.before_image,alt:t.before_label||"Before",className:"h-full w-full object-cover"}),(0,a.jsx)("div",{className:"absolute bottom-3 left-3",children:(0,a.jsx)("span",{className:"rounded bg-muted px-2 py-1 text-xs font-medium text-muted-foreground",children:t.before_label||"Before"})})]}),(0,a.jsx)("div",{className:"absolute bottom-0 top-0 z-10 w-1 bg-white shadow-lg",style:{left:"".concat(n,"%"),transform:"translateX(-50%)"},onMouseDown:h,onTouchStart:h,children:(0,a.jsx)("div",{className:"absolute left-1/2 top-1/2 flex h-10 w-10 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-white shadow-lg",children:(0,a.jsx)(l.A,{className:"h-5 w-5 text-muted-foreground"})})})]})}function p(e){let{section:t,className:s}=e,l=t.groups||[],o=t.items||[],p=t.layout||"carousel",[g,f]=(0,i.useState)(l.length>0?l[0].name:"all"),[j,v]=(0,i.useState)(0),b=(0,i.useMemo)(()=>g&&"all"!==g?o.filter(e=>e.category===g):o,[o,g]);return(0,a.jsx)("section",{id:t.id,className:(0,x.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(u.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),l.length>0&&(0,a.jsx)(r.P.div,{className:"mb-8 flex flex-wrap justify-center gap-3",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:l.map(e=>{let t=g===e.name;return(0,a.jsx)(d.$,{variant:t?"default":"outline",size:"sm",onClick:()=>{f(e.name),v(0)},children:e.title},e.name)})}),"carousel"===p&&b.length>0?(0,a.jsx)(u.ScrollAnimation,{delay:.2,children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl",children:[(0,a.jsx)(m.Zp,{className:"overflow-hidden border-0 shadow-xl",children:(0,a.jsxs)(m.Wu,{className:"p-0",children:[(0,a.jsx)(h,{item:b[j]}),(0,a.jsxs)("div",{className:"p-6",children:[b[j].title&&(0,a.jsx)("h3",{className:"text-foreground mb-2 text-xl font-semibold",children:b[j].title}),b[j].description&&(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:b[j].description})]})]})}),b.length>1&&(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-center gap-4",children:[(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>{v(e=>0===e?b.length-1:e-1)},children:(0,a.jsx)(n.A,{className:"h-5 w-5"})}),(0,a.jsxs)("span",{className:"text-muted-foreground text-sm",children:[j+1," / ",b.length]}),(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>{v(e=>e===b.length-1?0:e+1)},children:(0,a.jsx)(c.A,{className:"h-5 w-5"})})]})]})}):(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:b.map((e,t)=>(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.05*t,ease:[.22,1,.36,1]},children:(0,a.jsx)(m.Zp,{className:"overflow-hidden border-0 shadow-lg transition-all duration-300 hover:shadow-xl",children:(0,a.jsxs)(m.Wu,{className:"p-0",children:[(0,a.jsx)(h,{item:e}),(e.title||e.description)&&(0,a.jsxs)("div",{className:"p-4",children:[e.title&&(0,a.jsx)("h4",{className:"text-foreground mb-1 font-semibold",children:e.title}),e.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:e.description})]})]})})},t))}),0===b.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No transformations found in this category."})]})})}},80909:(e,t,s)=>{"use strict";s.r(t),s.d(t,{UseCases:()=>o});var a=s(47808),i=s(24309),r=s(18512),l=s(5784),n=s(72100),c=s(57169);function o(e){let{section:t,className:s}=e,o=t.items||[],d=t.columns||3;return(0,a.jsx)("section",{id:t.id,className:(0,c.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)("div",{className:(0,c.cn)("grid gap-6",2===d?"md:grid-cols-2":4===d?"md:grid-cols-2 lg:grid-cols-4":"md:grid-cols-2 lg:grid-cols-3"),children:o.map((e,t)=>(0,a.jsx)(i.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*t,ease:[.22,1,.36,1]},children:(0,a.jsx)(l.Zp,{className:"group h-full border-0 bg-gradient-to-br from-muted/50 to-muted/30 transition-all duration-300 hover:shadow-lg hover:shadow-primary/5",children:(0,a.jsxs)(l.Wu,{className:"flex h-full flex-col p-6",children:[(0,a.jsx)("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10 transition-colors group-hover:bg-primary/20",children:(0,a.jsx)(r.L,{name:e.icon||"Sparkles",size:24,className:"text-primary"})}),(0,a.jsx)("h3",{className:"text-foreground mb-2 text-lg font-semibold",children:e.title}),(0,a.jsx)("p",{className:"text-muted-foreground flex-1 text-sm leading-relaxed",children:e.description}),e.examples&&(0,a.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:e.examples.map((e,t)=>(0,a.jsx)("span",{className:"rounded-full bg-background px-3 py-1 text-xs text-muted-foreground",children:e},t))})]})})},t))})]})})}},83102:(e,t,s)=>{"use strict";s.r(t),s.d(t,{TextToVideoGuestShowcase:()=>d});var a=s(47808),i=s(71500),r=s(86349),l=s(28684),n=s(20017),c=s(68442),o=s(67202);function d(e){let{title:t,items:s=[],features:d=[],translations:m}=e,[u,x]=(0,i.useState)(0);if(0===s.length)return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,a.jsx)("div",{className:"bg-muted mb-4 flex h-16 w-16 items-center justify-center rounded-full",children:(0,a.jsx)(r.A,{className:"text-muted-foreground h-8 w-8"})}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 text-sm",children:(null==m?void 0:m.sign_in_to_create)||"Sign in to start creating amazing videos"}),h()]});function h(){return 0===d.length?null:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-3",children:(null==m?void 0:m.features)||"Features"}),(0,a.jsx)("ul",{className:"space-y-2",children:d.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{children:e})]},t))})]})}let p=s[u];return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:(null==m?void 0:m.sample_results)||"Sample Results"})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"relative overflow-hidden rounded-lg border",children:(0,a.jsx)("video",{src:p.url,controls:!0,className:"h-auto w-full",preload:"metadata"})}),p.prompt&&(0,a.jsx)("div",{className:"bg-muted rounded-lg p-3",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:[(0,a.jsx)("span",{className:"font-medium",children:"Prompt:"})," ",p.prompt]})})]}),s.length>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,a.jsx)(o.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e-1+s.length)%s.length),children:(0,a.jsx)(n.A,{className:"h-4 w-4"})}),(0,a.jsxs)("span",{className:"text-muted-foreground text-sm",children:[u+1," / ",s.length]}),(0,a.jsx)(o.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e+1)%s.length),children:(0,a.jsx)(c.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"pt-4 border-t",children:h()})]})}},85586:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ArtStyles:()=>o});var a=s(47808),i=s(71500),r=s(24309),l=s(16934),n=s(72100),c=s(57169);function o(e){let{section:t,className:s}=e,o=t.items||[],[d,m]=(0,i.useState)(null);
1return(0,a.jsx)("section",{id:t.id,className:(0,c.cn)("py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(n.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),(0,a.jsx)(n.ScrollAnimation,{delay:.2,children:(0,a.jsx)("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:o.map((e,t)=>{var s;return(0,a.jsx)(r.P.div,{className:"group relative cursor-pointer",initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.05*t,ease:[.22,1,.36,1]},onMouseEnter:()=>m(t),onMouseLeave:()=>m(null),children:(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden rounded-xl",children:[(null==(s=e.image)?void 0:s.src)?(0,a.jsx)(l.oD,{src:e.image.src,alt:e.image.alt||e.title||"",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-110"}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/30 to-primary/10",children:(0,a.jsx)("span",{className:"text-4xl",children:"\uD83C\uDFA8"})}),(0,a.jsxs)("div",{className:(0,c.cn)("absolute inset-0 flex flex-col items-center justify-center bg-gradient-to-t from-black/80 via-black/40 to-transparent p-4 transition-opacity duration-300",d===t?"opacity-100":"opacity-0"),children:[(0,a.jsx)("h4",{className:"mb-1 text-center text-sm font-semibold text-white",children:e.title}),e.description&&(0,a.jsx)("p",{className:"line-clamp-2 text-center text-xs text-white/80",children:e.description})]}),(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 to-transparent p-3 pt-8 transition-opacity duration-300 group-hover:opacity-0",children:(0,a.jsx)("h4",{className:"text-center text-sm font-medium text-white",children:e.title})})]})},t)})})})]})})}},87544:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Logos:()=>n});var a=s(47808),i=s(16934),r=s(72100),l=s(57169);function n(e){var t;let{section:s,className:n}=e;return(0,a.jsx)("section",{id:s.id,className:(0,l.cn)("py-16 md:py-24",s.className,n),children:(0,a.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[(0,a.jsx)(r.ScrollAnimation,{children:(0,a.jsx)("p",{className:"text-md text-center font-medium",children:s.title})}),(0,a.jsx)(r.ScrollAnimation,{delay:.2,children:(0,a.jsx)("div",{className:"mx-auto mt-12 flex max-w-4xl flex-wrap items-center justify-center gap-x-12 gap-y-8 sm:gap-x-16 sm:gap-y-12",children:null==(t=s.items)?void 0:t.map((e,t)=>{var s,r,l,n;return(0,a.jsx)(i.oD,{className:"h-8 w-fit dark:invert",src:null!=(l=null==(s=e.image)?void 0:s.src)?l:"",alt:null!=(n=null==(r=e.image)?void 0:r.alt)?n:""},t)})})})]})})}},88094:(e,t,s)=>{"use strict";s.r(t),s.d(t,{VideoToVideoGuestShowcase:()=>d});var a=s(47808),i=s(71500),r=s(86349),l=s(28684),n=s(20017),c=s(68442),o=s(67202);function d(e){let{title:t,items:s=[],features:d=[],translations:m}=e,[u,x]=(0,i.useState)(0);if(0===s.length)return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,a.jsx)("div",{className:"bg-muted mb-4 flex h-16 w-16 items-center justify-center rounded-full",children:(0,a.jsx)(r.A,{className:"text-muted-foreground h-8 w-8"})}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 text-sm",children:(null==m?void 0:m.sign_in_to_create)||"Sign in to transform videos with AI"}),h()]});function h(){return 0===d.length?null:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-3",children:(null==m?void 0:m.features)||"Features"}),(0,a.jsx)("ul",{className:"space-y-2",children:d.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{children:e})]},t))})]})}let p=s[u];return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:(null==m?void 0:m.sample_results)||"Sample Results"})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"relative overflow-hidden rounded-lg border",children:(0,a.jsx)("video",{src:p.url,controls:!0,className:"h-auto w-full",preload:"metadata"})}),p.prompt&&(0,a.jsx)("div",{className:"bg-muted rounded-lg p-3",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:[(0,a.jsx)("span",{className:"font-medium",children:"Prompt:"})," ",p.prompt]})})]}),s.length>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,a.jsx)(o.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e-1+s.length)%s.length),children:(0,a.jsx)(n.A,{className:"h-4 w-4"})}),(0,a.jsxs)("span",{className:"text-muted-foreground text-sm",children:[u+1," / ",s.length]}),(0,a.jsx)(o.$,{variant:"outline",size:"icon",onClick:()=>x(e=>(e+1)%s.length),children:(0,a.jsx)(c.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"pt-4 border-t",children:h()})]})}},88853:(e,t,s)=>{"use strict";s.r(t),s.d(t,{VideoComparison:()=>p});var a=s(47808),i=s(71500),r=s(24309),l=s(44560),n=s(60192),c=s(20017),o=s(68442),d=s(67202),m=s(5784),u=s(72100),x=s(57169);function h(e){let{item:t,index:s}=e,c=(0,i.useRef)(null),o=(0,i.useRef)(null),[u,h]=(0,i.useState)(!1),[p,g]=(0,i.useState)(!1);return(0,i.useEffect)(()=>
1{let e=c.current,t=o.current;e&&t&&(u?(e.play().catch(()=>{}),t.play().catch(()=>{}),g(!0)):(e.pause(),t.pause(),e.currentTime=0,t.currentTime=0,g(!1)))},[u]),(0,i.useEffect)(()=>{let e=c.current,t=o.current;if(!e||!t)return;let s=()=>{Math.abs(e.currentTime-t.currentTime)>.1&&(t.currentTime=e.currentTime)};return e.addEventListener("timeupdate",s),()=>e.removeEventListener("timeupdate",s)},[]),(0,a.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*s,ease:[.22,1,.36,1]},children:(0,a.jsx)(m.Zp,{className:"overflow-hidden border-0 shadow-lg transition-all duration-300 hover:shadow-xl",children:(0,a.jsxs)(m.Wu,{className:"p-0",children:[(0,a.jsxs)("div",{className:"relative",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[(0,a.jsxs)("div",{className:"grid grid-cols-2",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("video",{ref:c,src:t.before_video,muted:!0,loop:!0,playsInline:!0,className:"aspect-video w-full object-cover"}),(0,a.jsx)("div",{className:"absolute left-3 top-3",children:(0,a.jsx)("span",{className:"rounded bg-muted/90 px-2 py-1 text-xs font-medium text-muted-foreground backdrop-blur-sm",children:t.before_label||"Before"})})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("video",{ref:o,src:t.after_video,muted:!0,loop:!0,playsInline:!0,className:"aspect-video w-full object-cover"}),(0,a.jsx)("div",{className:"absolute right-3 top-3",children:(0,a.jsx)("span",{className:"rounded bg-primary px-2 py-1 text-xs font-medium text-primary-foreground backdrop-blur-sm",children:t.after_label||"After"})})]})]}),(0,a.jsx)("div",{className:"absolute bottom-0 left-1/2 top-0 w-px bg-white/50"}),(0,a.jsx)("div",{className:(0,x.cn)("absolute inset-0 flex items-center justify-center bg-black/30 transition-opacity duration-300",u?"opacity-100":"opacity-0"),children:(0,a.jsx)(d.$,{size:"icon",variant:"secondary",className:"h-14 w-14 rounded-full shadow-lg",onClick:()=>{let e=c.current,t=o.current;e&&t&&(p?(e.pause(),t.pause()):(e.play().catch(()=>{}),t.play().catch(()=>{})),g(!p))},children:p?(0,a.jsx)(l.A,{className:"h-6 w-6"}):(0,a.jsx)(n.A,{className:"h-6 w-6 translate-x-0.5"})})})]}),(t.title||t.description)&&(0,a.jsxs)("div",{className:"p-4",children:[t.title&&(0,a.jsx)("h4",{className:"text-foreground mb-1 font-semibold",children:t.title}),t.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t.description})]})]})})})}function p(e){let{section:t,className:s}=e,l=t.groups||[],n=t.items||[],m=t.layout||"grid",[p,g]=(0,i.useState)(l.length>0?l[0].name:"all"),[f,j]=(0,i.useState)(0),v=(0,i.useMemo)(()=>p&&"all"!==p?n.filter(e=>e.category===p):n,[n,p]);return(0,a.jsx)("section",{id:t.id,className:(0,x.cn)("bg-muted/30 py-16 md:py-24",t.className,s),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(u.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:t.description})]})}),l.length>0&&(0,a.jsx)(r.P.div,{className:"mb-8 flex flex-wrap justify-center gap-3",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:l.map(e=>{let t=p===e.name;return(0,a.jsx)(d.$,{variant:t?"default":"outline",size:"sm",onClick:()=>{g(e.name),j(0)},children:e.title},e.name)})}),"carousel"===m&&v.length>0?(0,a.jsx)(u.ScrollAnimation,{delay:.2,children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(0,a.jsx)(h,{item:v[f],index:0}),v.length>1&&(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-center gap-4",children:[(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>{j(e=>0===e?v.length-1:e-1)},children:(0,a.jsx)(c.A,{className:"h-5 w-5"})}),(0,a.jsxs)("span",{className:"text-muted-foreground text-sm",children:[f+1," / ",v.length]}),(0,a.jsx)(d.$,{variant:"outline",size:"icon",onClick:()=>{j(e=>e===v.length-1?0:e+1)},children:(0,a.jsx)(o.A,{className:"h-5 w-5"})})]})]})}):(0,a.jsx)("div",{className:"grid gap-6 lg:grid-cols-2",children:v.map((e,t)=>(0,a.jsx)(h,{item:e,index:t},t))}),0===v.length&&(0,a.jsx)(r.P.div,{className:"text-muted-foreground py-12 text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},children:"No comparisons found in this category."})]})})}},92938:(e,t,s)=>{"use strict";function a(e){if("undefined"==typeof document)return"";let t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length){var s;return(null==(s=t.pop())?void 0:s.split(";").shift())||""}return""}function i(e,t,s){if("undefined"==typeof document)return;let a="";if(s){let e=new Date;e.setTime(e.getTime()+24*s*36e5),a="; expires=".concat(e.toUTCString())}document.cookie="".concat(e,"=").concat(t).concat(a,"; path=/")}s.d(t,{Ri:()=>a,TV:()=>i})},93968:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesStep:()=>c});var a=s(47808),i=s(90811),r=s(16934),l=s(72100),n=s(57169);function c(e){var t;let{section:s,className:c}=e;return(0,a.jsx)("section",{id:s.id,className:(0,n.cn)("py-16 md:py-24",s.className,c),children:(0,a.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,a.jsxs)("div",{className:"@container relative container",children:[(0,a.jsx)(l.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[(0,a.jsx)("span",{className:"text-primary",children:s.label}),(0,a.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:s.title}),(0,a.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:s.description})]})}),(0,a.jsx)(l.ScrollAnimation,{delay:.2,children:(0,a.jsx)("div",{className:"mt-20 grid gap-12 @3xl:grid-cols-4",children:null==(t=s.items)?void 0:t.map((e,t)=>{var l,n;return(0,a.jsx)("div",{className:"space-y-6",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("span",{className:"mx-auto flex size-6 items-center justify-center rounded-full bg-zinc-500/15 text-sm font-medium",children:t+1}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"mx-auto my-6 w-fit",children:e.icon&&(0,a.jsx)(r.LK,{name:e.icon,size:24})}),t<(null!=(n=null==(l=s.items)?void 0:l.length)?n:0)-1&&(0,a.jsx)(i.A,{className:"fill-muted stroke-primary absolute inset-y-0 right-0 my-auto mt-1 hidden translate-x-[150%] drop-shadow @3xl:block"})]}),(0,a.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,a.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},t)})})})]})})})}},98302:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GuestShowcase:()=>v});var a=s(47808),i=s(71500),r=s(13697),l=s(74453),n=s(78627),c=s(65739),o=s(61496),d=s(86349),m=s(90901),u=s(39020),x=s(21008),h=s(44560),p=s(60192),g=s(28684),f=s(73489),j=s(67202);function v(e){let{type:t,audioItems:s=[],imageItems:v=[],lyricsItems:b=[],features:N=[],translations:y}=e,[w,k]=(0,i.useState)(null),[_,A]=(0,i.useState)(!1),[z,S]=(0,i.useState)(!1),[C,P]=(0,i.useState)(0),I=(0,i.useRef)(null),L=async e=>{if(null==e?void 0:e.audioUrl){S(!0);try{if(I.current&&!I.current.paused&&I.current.pause(),w===e.id&&_){A(!1),k(null),S(!1);return}I.current=new Audio(e.audioUrl),I.current.addEventListener("ended",()=>{A(!1),k(null)}),I.current.addEventListener("error",()=>{S(!1),A(!1),k(null)}),await I.current.play(),A(!0),k(e.id),S(!1)}catch(e){console.error("Failed to play audio:",e),S(!1),A(!1),k(null)}}},V=()=>0===N.length?null:(0,a.jsxs)("div",{className:"mt-4 pt-4 border-t",children:[(0,a.jsx)("p",{className:"text-sm font-medium mb-2",children:null==y?void 0:y.features}),(0,a.jsx)("ul",{className:"space-y-1",children:N.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[(0,a.jsx)(g.A,{className:"h-3 w-3 text-green-500 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{children:e})]},t))})]}),M=()=>(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[(0,a.jsx)("div",{className:"bg-muted mb-4 flex h-16 w-16 items-center justify-center rounded-full text-muted-foreground",children:(()=>{switch(t){case"vocal-remover":return(0,a.jsx)(r.A,{className:"h-8 w-8"});case"stem-splitter":case"music-generator":case"image-to-music":return(0,a.jsx)(l.A,{className:"h-8 w-8"});case"album-cover":return(0,a.jsx)(n.A,{className:"h-8 w-8"});case"sound-effect":return(0,a.jsx)(c.A,{className:"h-8 w-8"});case"lyrics-generator":return(0,a.jsx)(o.A,{className:"h-8 w-8"});default:return(0,a.jsx)(d.A,{className:"h-8 w-8"})}})()}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:null==y?void 0:y.sign_in_to_try}),V()]});switch(t){case"vocal-remover":case"stem-splitter":case"music-generator":case"image-to-music":case"sound-effect":return 0===s.length?M():(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-4",children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:null==y?void 0:y.sample_results})]}),s.map(e=>{var t;let s=w===e.id&&_,i=w===e.id&&z;return(0,a.jsxs)("div",{className:"flex gap-3 items-center p-3 border rounded-lg",children:[(0,a.jsx)("div",{className:"bg-muted relative h-12 w-12 overflow-hidden rounded-lg flex items-center justify-center flex-shrink-0",children:e.imageUrl?(0,a.jsx)(f.LazyImage,{src:e.imageUrl,alt:e.title,fill:!0,className:"object-cover"}):(null==(t=e.type)?void 0:t.toLowerCase())==="vocals"?(0,a.jsx)(m.A,{className:"h-5 w-5 text-primary"}):(0,a.jsx)(l.A,{className:"h-5 w-5 text-primary"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("h4",{className:"text-foreground font-medium text-sm truncate",children:e.title}),e.duration&&(0,a.jsxs)("div",{className:"text-muted-foreground flex items-center gap-1 text-xs",children:[(0,a.jsx)(u.A,{className:"h-3 w-3"}),(0,a.jsx)("span",{children:(e=>{let t=Math.floor(e/60),s=Math.floor(e%60);return"".concat(t,":").concat(s.toString().padStart(2,"0"))})(e.duration)})]})]}),(0,a.jsx)(j.$,{size:"sm",variant:"outline",onClick:()=>L(e),disabled:i,className:"h-8 w-8 p-0",children:i?(0,a.jsx)(x.A,{className:"h-3 w-3 animate-spin"}):s?(0,a.jsx)(h.A,{className:"h-3 w-3"}):(0,a.jsx)(p.A,{className:"h-3 w-3"})})]},e.id)}),V()]});case"album-cover":return 0===v.length?M():(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-4",children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:null==y?void 0:y.sample_results})]}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:v.map(e=>(0,a.jsxs)("div",{className:"border rounded-lg overflow-hidden",children:[(0,a.jsx)("div",{className:"relative aspect-square",children:(0,a.jsx)(f.LazyImage,{src:e.imageUrl,alt:e.title,fill:!0,className:"object-cover"})}),(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.title})})]},e.id))}),V()]});case"lyrics-generator":if(0===b.length)return M();let T=b[C];return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-4",children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:null==y?void 0:y.sample_results})]}),b.length>1&&(0,a.jsx)("div",{className:"flex gap-2 mb-3",children:b.map((e,t)=>(0,a.jsxs)(j.$,{size:"sm",variant:C===t?"default":"outline",onClick:()=>P(t),className:"h-7 px-3 text-xs",children:[null==y?void 0:y.sample," ",t+1]},t))}),(0,a.jsxs)("div",{className:"p-4 border rounded-lg",children:[(0,a.jsx)("h4",{className:"text-foreground font-medium mb-2",children:T.title}),T.genre&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:T.genre}),(0,a.jsx)("div",{className:"whitespace-pre-wrap text-sm text-muted-foreground bg-muted p-3 rounded-lg max-h-48 overflow-y-auto",children:T.content})]}),V()]});default:return M()}}},98909:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesAccordion:()=>u});var a=s(47808),i=s(71500),r=s(12271),l=s(24309),n=s(16934),c=s(57169);let o=e=>{let{className:t,size:s=50,delay:i=0,duration:r=6,colorFrom:n="#ffaa40",colorTo:o="#9c40ff",transition:d,style:m,reverse:u=!1,initialOffset:x=0,borderWidth:h=1}=e;return(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] border-(length:--border-beam-width)",style:{"--border-beam-width":"".concat(h,"px")}
1,children:(0,a.jsx)(l.P.div,{className:(0,c.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",t),style:{width:s,offsetPath:"rect(0 auto auto 0 round ".concat(s,"px)"),"--color-from":n,"--color-to":o,...m},initial:{offsetDistance:"".concat(x,"%")},animate:{offsetDistance:u?["".concat(100-x,"%"),"".concat(-x,"%")]:["".concat(x,"%"),"".concat(100+x,"%")]},transition:{repeat:1/0,ease:"linear",duration:r,delay:-i,...d}})})};var d=s(10780),m=s(72100);function u(e){var t,s;let{section:u,className:x}=e,[h,p]=(0,i.useState)("item-1"),g={};return null==(t=u.items)||t.forEach((e,t)=>{var s,a,i;g["item-".concat(t+1)]={image:null!=(i=null==(s=e.image)?void 0:s.src)?i:"",alt:(null==(a=e.image)?void 0:a.alt)||e.title||""}}),(0,a.jsx)("section",{className:(0,c.cn)("overflow-x-hidden py-16 md:py-24",u.className,x),children:(0,a.jsxs)("div",{className:"container space-y-8 overflow-x-hidden px-2 sm:px-6 md:space-y-16 lg:space-y-20 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]",children:[(0,a.jsx)(m.ScrollAnimation,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:u.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:u.description})]})}),(0,a.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[(0,a.jsx)(m.ScrollAnimation,{delay:.1,direction:"left",children:(0,a.jsx)(d.Accordion,{type:"single",value:h,onValueChange:e=>p(e),className:"w-full",children:null==(s=u.items)?void 0:s.map((e,t)=>(0,a.jsxs)(d.AccordionItem,{value:"item-".concat(t+1),children:[(0,a.jsx)(d.AccordionTrigger,{children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,a.jsx)(n.LK,{name:e.icon,size:24}),e.title]})}),(0,a.jsx)(d.AccordionContent,{children:e.description})]},t))})}),(0,a.jsx)(m.ScrollAnimation,{delay:.2,direction:"right",children:(0,a.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[(0,a.jsx)("div",{className:"absolute inset-0 right-0 ml-auto w-15 border-l w-fit bg-[repeating-linear-gradient(-45deg,var(--color-border),var(--color-border)_1px,transparent_1px,transparent_8px)]"}),(0,a.jsx)("div",{className:"bg-background relative aspect-[16/9] w-full min-w-0 rounded-2xl",children:(0,a.jsx)(r.N,{mode:"wait",children:(0,a.jsx)(l.P.div,{initial:{opacity:0,y:6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:6,scale:.98},transition:{duration:.2},className:"size-full overflow-hidden rounded-2xl border shadow-md",children:(0,a.jsx)(n.oD,{src:g[h].image,className:"size-full object-cover object-center dark:mix-blend-lighten",alt:g[h].alt})},"".concat(h,"-id"))})}),(0,a.jsx)(o,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"})]})})]})]})})}}}]);

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.