1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3834],{2838:(e,t,a)=>{"use strict";a.d(t,{i:()=>d});var r=a(67867),n=a(11470),i=a(95155),s=a(12115),l=a(74570),o=a(41407),c=a(57297);function d(e){var t=e.children,a=e.className,d=void 0===a?"":a,u=e.delay,m=void 0===u?0:u,x=e.direction,h=void 0===x?"up":x,p=e.stagger,g=(0,s.useRef)(null),f=(0,l.W)(g,{once:!0,margin:"-50px"});if((0,o.I)())return(0,i.jsx)("div",{ref:g,className:d,children:t});var v=function(){switch(h){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}}},b={hidden:(0,n._)((0,r._)({opacity:0},v()),{filter:"blur(4px)"}),visible:{opacity:1,x:0,y:0,filter:"blur(0px)",transition:{duration:.6,ease:[.22,1,.36,1]}}};return void 0!==p&&p?(0,i.jsx)(c.P.div,{ref:g,variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:m}}},initial:"hidden",animate:f?"visible":"hidden",className:d,children:s.Children.map(t,function(e){return(0,i.jsx)(c.P.div,{variants:b,children:e})})}):(0,i.jsx)(c.P.div,{ref:g,initial:(0,n._)((0,r._)({opacity:0},v()),{filter:"blur(4px)"}),animate:f?{opacity:1,x:0,y:0,filter:"blur(0px)"}:(0,n._)((0,r._)({opacity:0},v()),{filter:"blur(4px)"}),transition:{duration:.6,delay:m,ease:[.22,1,.36,1]},className:d,children:t})}},6634:(e,t,a)=>{"use strict";a.r(t),a.d(t,{FeaturesStep:()=>o});var r=a(95155),n=a(26692),i=a(85098),s=a(2838),l=a(98731);function o(e){var t,a=e.section,o=e.className;return(0,r.jsx)("section",{id:a.id,className:(0,l.cn)("py-16 md:py-24",a.className,o),children:(0,r.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,r.jsxs)("div",{className:"@container relative container",children:[(0,r.jsx)(s.i,{children:(0,r.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[(0,r.jsx)("span",{className:"text-primary",children:a.label}),(0,r.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:a.title}),(0,r.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:a.description})]})}),(0,r.jsx)(s.i,{delay:.2,children:(0,r.jsx)("div",{className:"mt-20 grid gap-12 @3xl:grid-cols-4",children:null==(t=a.items)?void 0:t.map(function(e,t){var s,l;return(0,r.jsx)("div",{className:"space-y-6",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.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,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"mx-auto my-6 w-fit",children:e.icon&&(0,r.jsx)(i.SmartIcon,{name:e.icon,size:24})}),t<(null!=(l=null==(s=a.items)?void 0:s.length)?l:0)-1&&(0,r.jsx)(n.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,r.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,r.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},t)})})})]})})})}},11300:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Footer:()=>v});var r=a(80542),n=a(95155),i=a(5379),s=a(12115),l=a(90040),o=a(85098),c=a(7254),d=a(18325),u=a(67867),m=a(11470),x=a(12844),h=a(98731);function p(e){var t=e.className,a=e.reverse,r=void 0!==a&&a,i=e.pauseOnHover,s=void 0!==i&&i,l=e.children,o=e.vertical,c=void 0!==o&&o,d=e.repeat,p=(0,x._)(e,["className","reverse","pauseOnHover","children","vertical","repeat"]);return(0,n.jsx)("div",(0,m._)((0,u._)({},p),{className:(0,h.cn)("group flex [gap:var(--gap)] overflow-hidden p-2 [--duration:40s] [--gap:1rem]",{"flex-row":!c,"flex-col":c},t),children:Array(void 0===d?4:d).fill(0).map(function(e,t){return(0,n.jsx)("div",{className:(0,h.cn)("flex shrink-0 justify-around [gap:var(--gap)]",{"animate-marquee flex-row":!c,"animate-marquee-vertical flex-col":c,"group-hover:[animation-play-state:paused]":s,"[animation-direction:reverse]":r}),children:l},t)})}))}var g=[{id:"submitaitools",name:"Submit AI Tools",url:"https://submitaitools.org",logoLight:"https://submitaitools.org/static_submitaitools/images/submitaitools.png"},{id:"mossai-tools",name:"MossAI Tools",label:"MossAI Tools",url:"https://mossai.org",kind:"text",logoLight:""},{id:"aibesttop",name:"Listed on AIBestTop",label:"Listed on AIBestTop",url:"https://aibesttop.com",kind:"text",logoLight:""},{id:"launchclash",name:"LaunchClash",url:"https://launchclash.com/product/wan-2-7",logoLight:"https://launchclash.com/static/images/badge.png",logoDark:"https://launchclash.com/static/images/badge-dark.png",imageAlt:"Featured on Submit Your Product - LaunchClash"},{id:"aiextension",name:"AIExtension.ai",url:"https://aiextension.ai/wan-27",logoLight:"https://aiextension.ai/badges/aiextension-light.svg",logoDark:"https://aiextension.ai/badges/aiextension-dark.svg",imageAlt:"Featured on AIExtension.ai",rel:"noopener"},{id:"flaex",name:"Flaex",url:"https://www.flaex.ai",logoLight:"https://www.flaex.ai/flaex-list-on.svg",imageAlt:"Listed on Flaex",rel:"dofollow"},{id:"wired-business",name:"Wired Business",url:"https://wired.business",logoLight:"https://wired.business/badge0-l
1ight.svg",logoDark:"https://wired.business/badge0-dark.svg",imageAlt:"Featured on Wired Business"},{id:"twelve-tools",name:"Twelve Tools",url:"https://twelve.tools",logoLight:"https://twelve.tools/badge0-light.svg",logoDark:"https://twelve.tools/badge0-dark.svg",imageAlt:"Featured on Twelve Tools"},{id:"showmebestai",name:"ShowMeBestAI",url:"https://showmebest.ai",logoLight:"https://showmebest.ai/badge/feature-badge-white.webp",logoDark:"https://showmebest.ai/badge/feature-badge-dark.webp"},{id:"findlytools",name:"Findly.tools",url:"https://findly.tools/wan-2-7-1?utm_source=wan-2-7-1",logoLight:"https://findly.tools/badges/findly-tools-badge-light.svg",logoDark:"https://findly.tools/badges/findly-tools-badge-dark.svg"},{id:"aihuntlist",name:"aihuntlist.com",url:"https://aihuntlist.com/tool/wan-2-7",logoLight:"https://aihuntlist.com/badge-light.svg",logoDark:"https://aihuntlist.com/badge-dark.svg"},{id:"showmysites",name:"ShowMySites",url:"https://www.showmysites.com",logoLight:"https://www.showmysites.com/static/backlink/name_logo.webp"},{id:"turbo0",name:"Turbo0",url:"https://turbo0.com/item/wan-27",logoLight:"https://img.turbo0.com/badge-listed-light.svg",logoDark:"https://img.turbo0.com/badge-listed-dark.svg"},{id:"navfolders",name:"NavFolders",url:"https://navfolders.com",logoLight:"https://navfolders.com/badge/nav_light.svg",logoDark:"https://navfolders.com/badge/nav_dark.svg"},{id:"amzdir",name:"AMZdir",url:"https://amzdir.com",logoLight:"https://amzdir.com/logo.png"},{id:"navifyai",name:"NavifyAI",url:"https://navifyai.com/",logoLight:"https://navifyai.com/static/img/badge-light.svg",logoDark:"https://navifyai.com/static/img/badge-dark.svg"},{id:"newtoolsite",name:"NewTool.site",url:"https://newtool.site/item/wan-27-wan2-7aicom",logoLight:"https://newtool.site/badges/newtool-light.svg",logoDark:"https://newtool.site/badges/newtool-dark.svg"},{id:"milliondothomepage",name:"Million Dot Homepage",url:"https://milliondothomepage.com",logoLight:"/badges/million-light.png",logoDark:"/badges/million-dark.png"}];function f(){return(0,n.jsxs)("div",{className:"relative flex w-full flex-col items-center justify-center overflow-hidden py-4",children:[(0,n.jsx)(p,{pauseOnHover:!0,className:"[--duration:40s]",children:g.map(function(e){var t,a,r,i,s,l,o,c;return"text"===e.kind?(0,n.jsx)(d.E,{asChild:!0,variant:"outline",className:"mx-4 rounded-full border-border/60 bg-background/70 px-3 py-1.5 text-[11px] font-medium text-muted-foreground opacity-75 shadow-sm backdrop-blur-sm transition-[color,background-color,box-shadow,opacity,transform] duration-200 hover:-translate-y-0.5 hover:bg-accent hover:text-accent-foreground hover:opacity-100",children:(0,n.jsx)("a",{href:e.url,target:null!=(t=e.target)?t:"_blank",rel:null!=(a=e.rel)?a:"noopener noreferrer",title:e.name,"aria-label":e.name,translate:"no",className:"whitespace-nowrap",children:null!=(r=e.label)?r:e.name})},e.id):(0,n.jsx)("a",{href:e.url,target:null!=(i=e.target)?i:"_blank",rel:null!=(s=e.rel)?s:"noopener noreferrer",title:e.name,"aria-label":e.name,className:"mx-6 flex items-center justify-center opacity-70 transition-opacity hover:opacity-100",children:e.logoDark?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{src:e.logoLight,alt:null!=(l=e.imageAlt)?l:"Featured on ".concat(e.name),width:120,height:54,loading:"lazy",decoding:"async",className:"h-[54px] w-auto object-contain dark:hidden"}),(0,n.jsx)("img",{src:e.logoDark,alt:null!=(o=e.imageAlt)?o:"Featured on ".concat(e.name),width:120,height:54,loading:"lazy",decoding:"async",className:"hidden h-[54px] w-auto object-contain dark:block"})]}):(0,n.jsx)("img",{src:e.logoLight,alt:null!=(c=e.imageAlt)?c:"Featured on ".concat(e.name),width:120,height:54,loading:"lazy",decoding:"async",className:"h-[54px] w-auto object-contain"})},e.id)})}),(0,n.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-background to-transparent"}),(0,n.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-background to-transparent"})]})}function v(e){var t,a,d,u,m=e.footer,x=(0,i.D)().resolvedTheme,h=(0,r._)((0,s.use
1State)(!1),2),p=h[0],g=h[1];(0,s.useEffect)(function(){g(!0)},[]);var v=p&&"light"===x;return(0,n.jsx)("footer",{id:m.id,className:"py-8 sm:py-8 ".concat(m.className||""," overflow-x-hidden"),children:(0,n.jsxs)("div",{className:"container space-y-8 overflow-x-hidden",children:[(0,n.jsxs)("div",{className:"grid min-w-0 gap-12 md:grid-cols-5",children:[(0,n.jsxs)("div",{className:"min-w-0 space-y-4 break-words md:col-span-2 md:space-y-6",children:[m.brand?(0,n.jsx)(o.BrandLogo,{brand:m.brand}):null,(null==(t=m.brand)?void 0:t.description)?(0,n.jsx)("p",{className:"text-muted-foreground text-sm text-balance break-words",dangerouslySetInnerHTML:{__html:m.brand.description}}):null]}),(0,n.jsxs)("div",{className:"col-span-3 grid min-w-0 gap-6 sm:grid-cols-3",children:[null==(a=m.nav)?void 0:a.items.map(function(e,t){var a;return(0,n.jsxs)("div",{className:"min-w-0 space-y-4 text-sm break-words",children:[(0,n.jsx)("span",{className:"block font-medium break-words",children:e.title}),(0,n.jsx)("div",{className:"flex min-w-0 flex-wrap gap-4 sm:flex-col",children:null==(a=e.children)?void 0:a.map(function(e,t){return(0,n.jsx)(l.N_,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:(0,n.jsx)("span",{className:"break-words",children:e.title||""})},t)})})]},t)}),(0,n.jsxs)("div",{className:"min-w-0 space-y-4 text-sm break-words",children:[(0,n.jsx)("span",{className:"block font-medium break-words",children:"Our Projects"}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap gap-4 sm:flex-col",children:[(0,n.jsx)("a",{href:"https://kling2-6.com",target:"_blank",rel:"noopener",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"Kling 2.6 AI Video"}),(0,n.jsx)("a",{href:"https://wan2-6ai.com",target:"_blank",rel:"noopener",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"Wan 2.6 AI Video"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 space-y-4 text-sm break-words",children:[(0,n.jsx)("span",{className:"block font-medium break-words",children:"Wan 2.7 AI Tools"}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap gap-4 sm:flex-col",children:[(0,n.jsx)(l.N_,{href:"/image-to-video/wan-2-7",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"Image to Video"}),(0,n.jsx)(l.N_,{href:"/text-to-video/wan-2-7",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"Text to Video"}),(0,n.jsx)(l.N_,{href:"/text-to-image/wan-2-7",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"Text to Image"}),(0,n.jsx)(l.N_,{href:"/image-to-image/wan-2-7",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"Image to Image"}),(0,n.jsx)(l.N_,{href:"/text-to-image/gpt-image-2-5",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"GPT Image 2.5 (Text to Image)"}),(0,n.jsx)(l.N_,{href:"/image-to-image/gpt-image-2-5",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"GPT Image 2.5 (Image to Image)"}),(0,n.jsx)(l.N_,{href:"/reference-to-video/wan-2-7",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:"Reference to Video"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 space-y-4 text-sm break-words",children:[(0,n.jsx)("span",{className:"block font-medium break-words",children:"Wan 2.6 AI Tools"}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap gap-4 sm:flex-col",children:[(0,n.jsxs)("span",{className:"text-muted-foreground block break-words opacity-70",children:["Image to Video ",(0,n.jsx)("span",{className:"ml-2 text-[10px] px-1.5 py-0.5 rounded-full border border-purple-500/20 bg-purple-500/10 text-purple-200",children:"COMING SOON"})]}),(0,n.jsxs)("span",{className:"text-muted-foreground block break-words opacity-70",children:["Text to Video ",(0,n.jsx)("span",{className:"ml-2 text-[10px] px-1.5 py-0.5 rounded-full border border-purple-500/20 bg-purple-500/10 text-purple-200",children:"COMING SOON"})]})]})]})]})]}),(0,n.jsx)(f,{}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-4 sm:gap-8",children:[!1!==m.show_built_with?(0,n.jsx)(o.BuiltWith,{}):null,(0,n.jsx)("div",{className:"min-w-0 flex-1"}),!1!==m.show_theme?(0,n.jsx)(o.ThemeToggler,{type:"toggle",isLightMode:v}):null,!1!==m.show_locale?(0,n.jsx)(o.LocaleSelector,{type:"button",isLightMode:v}):null]}),m.disclaimer?(0,n.jsx)("p",{className:"text-muted-foreground text-xs text-balance break-words opacity-70",children:m.disclaimer}
1):null,(0,n.jsx)("div",{"aria-hidden":!0,className:"h-px min-w-0 [background-image:linear-gradient(90deg,var(--color-foreground)_1px,transparent_1px)] bg-[length:6px_1px] bg-repeat-x opacity-25"}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap justify-between gap-8",children:[m.copyright?(0,n.jsx)("p",{className:"text-muted-foreground text-sm text-balance break-words",dangerouslySetInnerHTML:{__html:m.copyright}}):m.brand?(0,n.jsx)(o.Copyright,{brand:m.brand}):null,(0,n.jsx)("div",{className:"min-w-0 flex-1"}),m.agreement?(0,n.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-4",children:null==(d=m.agreement)?void 0:d.items.map(function(e,t){return(0,n.jsx)(l.N_,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary block text-xs break-words underline duration-150",children:e.title||""},t)})}):null,m.social?(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[null==(u=m.social)?void 0:u.items.map(function(e,t){return(0,n.jsx)(l.N_,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary bg-background block cursor-pointer rounded-full p-2 duration-150","aria-label":e.title||"Social media link",children:e.icon&&(0,n.jsx)(c.L,{name:e.icon,size:20})},t)}),(0,n.jsx)(l.N_,{href:"https://discord.gg/qXTkxnhEfG",target:"_blank",className:"text-muted-foreground hover:text-primary bg-background block cursor-pointer rounded-full p-2 duration-150","aria-label":"Discord",children:(0,n.jsx)(c.L,{name:"RiDiscordFill",size:20})}),(0,n.jsx)("a",{href:"https://github.com/Jhon-e-co/Wan-2.7-ai",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary bg-background block cursor-pointer rounded-full p-2 duration-150","aria-label":"GitHub",children:(0,n.jsx)(c.L,{name:"RiGithubFill",size:20})})]}):null]})]})})}},23164:(e,t,a)=>{"use strict";a.r(t),a.d(t,{FeaturesList:()=>c});var r=a(95155),n=a(90040),i=a(85098),s=a(99772),l=a(2838),o=a(98731);function c(e){var t,a,c=e.section,d=e.className;return(0,r.jsx)("section",{className:(0,o.cn)("overflow-x-hidden py-16 md:py-24",c.className,d),children:(0,r.jsxs)("div",{className:"container overflow-x-hidden",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[(0,r.jsx)(l.i,{direction:"left",children:(0,r.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,r.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-auto w-full rounded-lg object-cover",children:(0,r.jsx)("source",{src:"/videos/1.webm",type:"video/webm"})})})}),(0,r.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[(0,r.jsx)(l.i,{delay:.1,children:(0,r.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:c.title})}),(0,r.jsx)(l.i,{delay:.2,children:(0,r.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:c.description})}),c.buttons&&c.buttons.length>0&&(0,r.jsx)(l.i,{delay:.3,children:(0,r.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:null==(t=c.buttons)?void 0:t.map(function(e,t){var a,l;return(0,r.jsx)(s.$,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,r.jsxs)(n.N_,{href:null!=(a=e.url)?a:"",target:null!=(l=e.target)?l:"_self",className:(0,o.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,r.jsx)(i.SmartIcon,{name:e.icon,size:24}),e.title]})},t)})})})]})]}),(0,r.jsx)(l.i,{delay:.1,children:(0,r.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==(a=c.items)?void 0:a.map(function(e,t){var a;return(0,r.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,r.jsx)(i.SmartIcon,{name:e.icon,size:16}),(0,r.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,r.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:null!=(a=e.description)?a:""})]},t)})})})]})})}},25786:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Testimonials:()=>s});var r=a(95155),n=a(85098),i=a(2838);function s(e){var t,a=e.section,s=e.className,l=function(e){var t,a,i,s,l=e.item;
1return(0,r.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,r.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:l.quote||l.description}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"ring-foreground/10 aspect-square size-9 overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,r.jsx)(n.LazyImage,{src:(null==(t=l.image)?void 0:t.src)||(null==(a=l.avatar)?void 0:a.src)||"",alt:(null==(i=l.image)?void 0:i.alt)||(null==(s=l.avatar)?void 0:s.alt)||l.name||"",className:"h-full w-full object-cover"})}),(0,r.jsxs)("h3",{className:"sr-only",children:[l.name,", ",l.role||l.title]}),(0,r.jsxs)("div",{className:"space-y-px",children:[(0,r.jsxs)("p",{className:"text-sm font-medium",children:[l.name," "]}),(0,r.jsx)("p",{className:"text-muted-foreground text-xs",children:l.role||l.title})]})]})]})};return(0,r.jsx)("section",{id:a.id,className:"py-16 md:py-24 ".concat(a.className," ").concat(s),children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)(i.i,{children:(0,r.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,r.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:a.title}),(0,r.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:a.description})]})}),(0,r.jsx)(i.i,{delay:.2,children:(0,r.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,r.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=a.items)?void 0:t.map(function(e,t){return(0,r.jsx)(l,{item:e},t)})})})})]})})}},27182:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Faq:()=>s});var r=a(95155),n=a(84118),i=a(2838);function s(e){var t,a=e.section,s=e.className;return(0,r.jsx)("section",{id:a.id,className:"py-16 md:py-24 ".concat(s),children:(0,r.jsxs)("div",{className:"mx-auto max-w-full px-4 md:max-w-3xl md:px-8",children:[(0,r.jsx)(i.i,{children:(0,r.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[(0,r.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:a.title}),(0,r.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:a.description})]})}),(0,r.jsx)(i.i,{delay:.2,children:(0,r.jsxs)("div",{className:"mx-auto mt-12 max-w-full",children:[(0,r.jsx)(n.Accordion,{type:"single",collapsible:!0,className:"bg-muted dark:bg-muted/50 w-full rounded-2xl p-1",children:null==(t=a.items)?void 0:t.map(function(e,t){return(0,r.jsxs)("div",{className:"group",children:[(0,r.jsxs)(n.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,r.jsx)(n.AccordionTrigger,{className:"cursor-pointer text-base hover:no-underline",children:e.question||e.title||""}),(0,r.jsx)(n.AccordionContent,{children:(0,r.jsx)("p",{className:"text-base",children:e.answer||e.description||""})})]}),(0,r.jsx)("hr",{className:"mx-7 border-dashed group-last:hidden peer-data-[state=open]:opacity-0"})]},t)})}),(0,r.jsx)("p",{className:"text-muted-foreground mt-6 px-8",dangerouslySetInnerHTML:{__html:a.tip||""}})]})})]})})}},28356:(e,t,a)=>{"use strict";function r(e){if("undefined"==typeof document)return"";var t,a="; ".concat(document.cookie).split("; ".concat(e,"="));return 2===a.length&&(null==(t=a.pop())?void 0:t.split(";").shift())||""}function n(e,t,a){if("undefined"!=typeof document){var r="";if(a){var n=new Date;n.setTime(n.getTime()+24*a*36e5),r="; expires=".concat(n.toUTCString())}document.cookie="".concat(e,"=").concat(t).concat(r,"; path=/")}
1}a.d(t,{Ri:()=>r,TV:()=>n})},30965:(e,t,a)=>{"use strict";a.d(t,{Highlighter:()=>l});var r=a(95155),n=a(12115),i=a(74570),s=a(25752);function l(e){var t=e.children,a=e.action,l=void 0===a?"highlight":a,o=e.color,c=void 0===o?"#ffd1dc":o,d=e.strokeWidth,u=void 0===d?1.5:d,m=e.animationDuration,x=void 0===m?600:m,h=e.iterations,p=void 0===h?2:h,g=e.padding,f=void 0===g?2:g,v=e.multiline,b=void 0===v||v,j=e.isView,w=(0,n.useRef)(null),y=(0,n.useRef)(null),N=(0,i.W)(w,{once:!0,margin:"-10%"}),_=!(void 0!==j&&j)||N;return(0,n.useEffect)(function(){if(_){var e=w.current;if(e){var t=(0,s.f)(e,{type:l,color:c,strokeWidth:u,animationDuration:x,iterations:p,padding:f,multiline:b});y.current=t,y.current.show();var a=new ResizeObserver(function(){t.hide(),t.show()});return a.observe(e),a.observe(document.body),function(){e&&((0,s.f)(e,{type:l}).remove(),a.disconnect())}}}},[_,l,c,u,x,p,f,b]),(0,r.jsx)("span",{ref:w,className:"relative inline-block bg-transparent",children:t})}},35856:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Header:()=>V});var r=a(81494),n=a(67867),i=a(11470),s=a(12844),l=a(80542),o=a(71450),c=a(95155),d=a(12115),u=a(48055),m=a(9540),x=a(65229),h=a(60709),p=a(5379),g=a(18955),f=a(36809),v=a(20063),b=a(90040),j=a(85098),w=a(84118),y=a(7649),N=a(83101),_=a(24033),k=a(98731),C=d.forwardRef(function(e,t){var a=e.className,r=e.children,l=e.viewport,o=void 0===l||l,d=(0,s._)(e,["className","children","viewport"]);return(0,c.jsxs)(y.bL,(0,i._)((0,n._)({ref:t,"data-slot":"navigation-menu","data-viewport":o,role:"navigation",className:(0,k.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",a)},d),{children:[r,o&&(0,c.jsx)(P,{})]}))});function I(e){var t=e.className,a=(0,s._)(e,["className"]);return(0,c.jsx)(y.B8,(0,n._)({"data-slot":"navigation-menu-list",className:(0,k.cn)("group flex flex-1 list-none items-center justify-center gap-1",t)},a))}function z(e){var t=e.className,a=(0,s._)(e,["className"]);return(0,c.jsx)(y.q7,(0,n._)({"data-slot":"navigation-menu-item",className:(0,k.cn)("relative",t)},a))}C.displayName=y.bL.displayName;var L=(0,N.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 S(e){var t=e.className,a=e.children,r=(0,s._)(e,["className","children"]);return(0,c.jsxs)(y.l9,(0,i._)((0,n._)({"data-slot":"navigation-menu-trigger",className:(0,k.cn)(L(),"group",t)},r),{children:[a," ",(0,c.jsx)(_.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 A(e){var t=e.className,a=(0,s._)(e,["className"]);return(0,c.jsx)(y.UC,(0,n._)({"data-slot":"navigation-menu-content",className:(0,k.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)},a))}function P(e){var t=e.className,a=(0,s._)(e,["className"]);return(0,c.jsx)("div",{className:(0,k.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),children:(0,c.jsx)(y.LM,(0,n._)({"data-slot":"navigation-menu-viewport",className:(0,k.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)},a))})}function T(e){var t=e.className,a=(0,s._)(e,["className"]);return(0,c.jsx)(y.N_,(0,n._)({"data-slot":"navigation-menu-link",className:(0,k.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)},a))}var M=a(90380);function F(e){var t=(0,l._)((0,d.useState)(!1),2),a=t[0],r=t[1];return((0,d.useEffect)(function(){r(!0)},[]),a)?(0,c.jsx)(S,(0,n._)({},e)):null}function E(e){var t=e.isLightMode,a=(0,l._)((0,d.useState)(null),2),n=a[0],i=a[1];return((0,d.useEffect)(function(){var e=function(){return(0,r._)(function(){var e;return(0,o.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,fetch("/api/user/get-user-credits",{method:"POST",headers:{"Content-Type":"application/json"}})];case 1:return[4,t.sent().json()];case 2:return 0===(e=t.sent()).code&&i(e.data.remainingCredits),[3,4];case 3:return console.error("Failed to fetch credits:",t.sent()),[3,4];case 4:return[2]}})})()};e();var t=setInterval(e,3e4);return function(){return clearInterval(t)}},[]),null===n)?null:(0,c.jsxs)(b.N_,{href:"/settings/credits",className:(0,k.cn)("inline-flex items-center gap-1 rounded-full px-2 py-1 text-sm font-medium transition-colors duration-200",t?"bg-gray-100 text-gray-800 hover:bg-gray-200":"bg-white/10 text-white hover:bg-white/20"),children:[(0,c.jsx)(u.A,{className:"h-3.5 w-3.5"}),(0,c.jsx)("span",{children:n})]})}function V(e){var t,a,r,o,u,y=e.header,N=(0,l._)((0,d.useState)(!1),2),_=N[0],L=N[1],S=(0,l._)((0,d.useState)(!1),2),P=S[0],V=S[1],R=(0,d.useRef)(!1),D=(0,d.useRef)(null),O=(t="(min-width: 64rem)",r=(a=(0,l._)((0,d.useState)(!0),2))[0],o=a[1],(0,d.useEffect)(function(){var e=window.matchMedia(t);o(e.matches);var a=function(){return o(e.matches)};return e.addEventListener("change",a),function(){e.removeEventListener("change",a)}},[t]),r),W=(0,b.a8)(),H=(0,p.D)().resolvedTheme,q=(0,l._)((0,d.useState)(!1),2),U=q[0],B=q[1];(0,M.U)().setIsShowSignModal;var $=(0,g.c)("common"),Y=(0,f.Ym)(),G=(0,v.useSearchParams)(),Z=!["zh-Hant","ru","ja","ko"].includes(Y),X=W.includes("/image-prompts"),J="".concat(W).concat((null==G?void 0:G.toString())?"?".concat(G.toString()):""),K="/sign-in?callbackUrl=".concat(encodeURIComponent(J));(0,d.useEffect)(function(){B(!0)},[]);
1var Q="/"===W||"/en"===W||"/zh"===W,ee=U&&"light"===H&&(!Q||P),et=function e(t){return t&&0!==t.length?t.flatMap(function(t){if(!(!1!==(a=t).enabled&&(!new Set(["LTX-2.3","Motion Control"]).has((null!=(r=a.title)?r:"").trim())||a.children&&0!==a.children.length)))return[];if(!t.children||0===t.children.length)return[t];var a,r,s=e(t.children);return[(0,i._)((0,n._)({},t),{children:s})]}):[]}(null==(u=y.nav)?void 0:u.items);function ea(e){var t=e.title,a=e.description,r=e.children,l=e.href,o=e.target,d=e.isLightMode,u=(0,s._)(e,["title","description","children","href","target","isLightMode"]);return(0,c.jsx)("li",(0,i._)((0,n._)({},u),{children:(0,c.jsx)(T,{asChild:!0,children:(0,c.jsxs)(b.N_,{href:l,target:o||"_self",className:"grid grid-cols-[auto_1fr] gap-3.5",children:[(0,c.jsx)("div",{className:"relative flex size-9 items-center justify-center rounded border shadow-sm ring-1 ".concat(d?"bg-gray-100 border-gray-200 ring-gray-200":"bg-white/10 border-white/20 ring-white/10"),children:r}),(0,c.jsxs)("div",{className:"space-y-0.5",children:[(0,c.jsx)("div",{className:"text-sm font-medium ".concat(d?"text-gray-900":"text-white"),children:t}),(0,c.jsx)("p",{className:"line-clamp-1 text-xs ".concat(d?"text-gray-500":"text-white/70"),children:a})]})]})})}))}return(0,d.useEffect)(function(){var e=function(){null==D.current&&(D.current=window.requestAnimationFrame(function(){D.current=null;var e=window.scrollY>50;e!==R.current&&(R.current=e,V(e))}))};return e(),window.addEventListener("scroll",e,{passive:!0}),function(){window.removeEventListener("scroll",e),null!=D.current&&(window.cancelAnimationFrame(D.current),D.current=null)}},[]),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("header",(0,i._)((0,n._)({"data-state":_?"active":"inactive"},P&&{"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,c.jsx)("div",{className:(0,k.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,c.jsx)("div",{className:"container",children:(0,c.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between lg:py-2",children:[(0,c.jsxs)("div",{className:"flex justify-between gap-8 max-lg:h-12 max-lg:w-full max-lg:border-b",children:[y.brand&&(0,c.jsx)(j.BrandLogo,{brand:y.brand,isLightMode:ee}),O&&(0,c.jsx)(function(){return(0,c.jsx)(C,{viewport:!1,className:"**:data-[slot=navigation-menu-content]:top-10 max-lg:hidden",children:(0,c.jsx)(I,{className:"gap-2",children:et.map(function(e,t){var a;return e.children&&0!==e.children.length?(0,c.jsxs)(z,{children:[(0,c.jsxs)(F,{className:"flex flex-row items-center gap-1 text-sm transition-colors ".concat(ee?"text-gray-800 hover:bg-gray-200":"text-white hover:bg-white/10"),children:[e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:"h-4 w-4 ".concat(ee?"text-gray-700":"text-white/90")}),(0,c.jsx)("span",{children:e.title})]}),(0,c.jsx)(A,{className:"min-w-2xs origin-top p-0.5",children:(0,c.jsx)("div",{className:"rounded-[calc(var(--radius)-2px)] border p-2 shadow ring-1 ".concat(ee?"bg-white/95 border-gray-200 ring-gray-200":"bg-black/80 border-white/10 ring-white/10"),children:(0,c.jsx)("ul",{className:"mt-1 space-y-2",children:null==(a=e.children)?void 0:a.map(function(e,t){if(e.is_group){var a;return(0,c.jsxs)("li",{className:"px-2",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 border-b py-2 text-xs font-semibold uppercase ".concat(ee?"border-gray-200 text-gray-500":"border-white/10 text-white/60"),children:[e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:"h-3.5 w-3.5"}),e.title]}),(0,c.jsx)("ul",{className:"mt-1 space-y-1",children:null==(a=e.children)?void 0:a.map(function(e,a){return(0,c.jsx)(ea,{href:e.url||"",target:e.target||"_self",title:e.title||"",description:e.description||"",isLightMode:ee,children:e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:ee?"text-gray-700":"text-white/90"})},"".concat(t,"-").concat(a))})})]},t)}return(0,c.jsx)(ea,{href:e.url||"",target:e.target||"_self",title:e.title||"",description:e.description||"",isLightMode:ee,children:e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:ee?"text-gray-700":"text-white/90"})},t)})})})})]},t):(0,c.jsx)(T,{asChild:!0,children:(0,c.jsxs)(b.N_,{href:e.url||"",target:e.target||"_self",className:"flex flex-row items-center gap-2 px-4 py-1.5 text-sm transition-colors rounded-md ".concat(ee?"text-gray-800 hover:bg-gray-200":"text-white hover:bg-white/10"," ").concat(e.is_active||W.endsWith(e.url)?ee?"bg-gray-200 text-gray-800":"bg-white/10 text-white":""),children:[e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:ee?"text-gray-700":"text-white/90"}),(0,c.jsxs)("span",{className:"relative",children:[e.title,e.badge&&(0,c.jsx)("span",{className:"absolute -top-2 -right-1 translate-x-full text-[8px] font-bold text-white bg-gradient-to-r from-purple-500 to-pink-500 px-1 py-0.5 rounded-full whitespace-nowrap",children:e.badge})]})]})},t)})})})},{}),(0,c.jsxs)("button",{onClick:function(){return L(!_)},"aria-label":!0==_?"Close Menu":"Open Menu",className:"relative z-20 -m-2.5 -mr-3 block cursor-pointer p-2.5 lg:hidden",children:[(0,c.jsx)(m.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 ".concat(ee?"text-gray-800":"text-white")}),(0,c.jsx)(x.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 ".concat(ee?"text-gray-800":"text-white")})]})]}),!O&&_&&(0,c.jsx)(function(e){var t=e.closeMenu;return(0,c.jsx)("nav",{role:"navigation",className:"w-full ".concat(ee?"bg-white/95":"bg-black/90"),children:(0,c.jsx)(w.Accordion,{type:"single",collapsible:!0,className:"-mx-4 mt-0.5 space-y-0.5 **:hover:no-underline",children:et.map(function(e,a){var r;return(0,c.jsx)(w.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 ".concat(ee?"before:border-gray-200":"before:border-white/10"),children:e.children&&e.children.length>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(w.AccordionTrigger,{className:"flex items-center justify-between px-4 py-3 text-lg **:!font-normal transition-colors ".concat(ee?"text-gray-700 hover:text-black data-[state=open]:bg-black/5":"text-white/90 hover:text-white data-[state=open]:bg-white/10"),children:e.title}),(0,c.jsx)(w.AccordionContent,{className:"pb-5",children:(0,c.jsx)("ul",{children:null==(r=e.children)?void 0:r.map(function(e,a){if(e.is_group){var r;return(0,c.jsxs)("li",{className:"px-4 py-2",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 border-b pb-1 text-xs font-semibold uppercase ".concat(ee?"border-gray-200 text-gray-500":"border-white/10 text-white/60"),children:[e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:"h-3.5 w-3.5"}),e.title]}),(0,c.jsx)("ul",{className:"mt-2 space-y-1",children:null==(r=e.children)?void 0:r.map(function(e,r){return(0,c.jsx)("li",{children:(0,c.jsxs)(b.N_,{href:e.url||"",onClick:t,className:"grid grid-cols-[auto_1fr] items-center gap-2.5 px-4 py-2 transition-colors ".concat(ee?"text-gray-600 hover:text-black":"text-white/80 hover:text-white"),children:[(0,c.jsx)("div",{"aria-hidden":!0,
1className:"flex items-center justify-center *:size-4",children:e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:ee?"text-gray-600":"text-white/80"})}),(0,c.jsx)("div",{className:"text-base",children:e.title})]})},"".concat(a,"-").concat(r))})})]},a)}return(0,c.jsx)("li",{children:(0,c.jsxs)(b.N_,{href:e.url||"",onClick:t,className:"grid grid-cols-[auto_1fr] items-center gap-2.5 px-4 py-2 transition-colors ".concat(ee?"text-gray-600 hover:text-black":"text-white/80 hover:text-white"),children:[(0,c.jsx)("div",{"aria-hidden":!0,className:"flex items-center justify-center *:size-4",children:e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:ee?"text-gray-600":"text-white/80"})}),(0,c.jsx)("div",{className:"text-base",children:e.title})]})},a)})})})]}):(0,c.jsx)(b.N_,{href:e.url||"",onClick:t,className:"flex items-center justify-between px-4 py-3 text-lg **:!font-normal transition-colors ".concat(ee?"text-gray-700 hover:text-black data-[state=open]:bg-black/5":"text-white/90 hover:text-white data-[state=open]:bg-white/10"),children:e.title})},a)})})})},{closeMenu:function(){return L(!1)}}),(0,c.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,c.jsxs)("div",{className:"flex w-full flex-row items-center gap-3 sm:flex-row sm:gap-4 sm:space-y-0 md:w-fit",children:[y.buttons&&y.buttons.map(function(e,t){return(0,c.jsxs)(b.N_,{href:e.url||"",target:e.target||"_self",className:(0,k.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?ee?"bg-gray-100 border-gray-300 text-gray-800 hover:bg-gray-200 border shadow-sm ring-1 ring-gray-200 duration-200":"bg-white/20 border-white/30 text-white hover:bg-white/40 hover:border-white/60 border shadow-sm ring-1 ring-white/20 duration-200":ee?"bg-gray-900 text-white hover:bg-gray-800 border-[0.5px] border-gray-700 shadow-md ring-1":"bg-white/20 text-white hover:bg-white/40 border-[0.5px] border-white/30 shadow-md ring-1 shadow-black/20"),children:[e.icon&&(0,c.jsx)(j.SmartIcon,{name:e.icon,className:"size-4"}),(0,c.jsx)("span",{children:e.title})]},t)}),y.show_locale?(0,c.jsx)(j.LocaleSelector,{isLightMode:ee}):null,Z&&(0,c.jsxs)(b.N_,{href:"/home",className:(0,k.cn)("inline-flex items-center gap-1 rounded-full px-2 py-1 text-xs font-semibold text-white transition-all duration-200 hover:scale-105 hover:opacity-90","bg-gradient-to-r from-green-400 to-blue-500 shadow-md shadow-green-500/20"),"data-credits":"15",children:[(0,c.jsx)(h.A,{className:"h-3 w-3"}),(0,c.jsx)("span",{children:$("header.free_credits")})]}),(0,c.jsx)("div",{className:"flex-1 md:hidden"}),y.show_sign?(0,c.jsx)(c.Fragment,{children:X?(0,c.jsx)(b.N_,{href:K,className:(0,k.cn)("focus-visible:ring-ring inline-flex h-9 items-center justify-center rounded-full px-4 text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none",ee?"bg-gray-900 text-white hover:bg-gray-800":"bg-white/15 text-white hover:bg-white/25 border border-white/20"),children:"Sign in"}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(E,{isLightMode:ee}),(0,c.jsx)(j.SignUser,{userNav:y.user_nav,isLightMode:ee})]})}):null]})})]})})})}))})}},38180:(e,t,a)=>{"use strict";a.r(t),a.d(t,{BlogDetail:()=>u});var r=a(95155),n=a(85765),i=a(16485),s=a(80003),l=a(18955),o=a(26953),c=a(85098),d=a(75586);function u(e){var t=e.post,a=(0,l.c)("pages.blog.messages"),u=[{title:a("crumb"),url:"/blog",icon:"Newspaper",is_active:!1},{title:t.title||"",url:"/blog/".concat(t.slug),is_active:!0}],m=t.toc&&t.toc.length>0;return(0,r.jsx)(n.TOCProvider,{toc:t.toc||[],children:(0,r.jsx)("section",{id:t.id,children:(0,r.jsx)("div",{className:"py-24 md:py-32",children:(0,r.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[(0,r.jsx)(d.m,{items:u}),(0,r.jsxs)("div",{className:"mt-16 text-center",children:[(0,r.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,r.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:t.created_at&&(0,r.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,r.jsx)(i.A,{className:"size-4"})," ",t.created_at]})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[m&&(0,r.jsx)("div",{className:"lg:col-span-3",children:(0,r.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,r.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,r.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,r.jsx)(s.A,{className:"size-4"})," ",a("toc")]}),(0,r.jsx)(n.TOCItems,{})]})})}),(0,r.jsx)("div",{className:m&&1?"lg:col-span-6":"lg:col-span-9",children:(0,r.jsx)("article",{className:"p-0",children:t.body?(0,r.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:t.body}):t.content&&(0,r.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,r.jsx)(c.MarkdownPreview,{content:t.content})})})}),(0,r.jsx)("div",{className:"lg:col-span-3",children:(0,r.jsx)("div",{className:"sticky top-24",children:(0,r.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,r.jsxs)("div",{className:"text-center",children:[t.author_image?(0,r.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,r.jsx)("img",{src:t.author_image,alt:t.author_name||"Wan 2.7 Studio",className:"h-full w-full object-cover"})}):(0,r.jsx)("div",{className:"ring-foreground/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,r.jsx)(o.g,{className:"h-full w-full p-2 text-primary"})}),(0,r.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:t.author_name||"Wan 2.7 Studio"}),(0,r.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:t.author_role||"Official Team"})]})})})})]})]})})})})}a(65899)},44991:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ShowcasesVideoWall:()=>u});var r=a(67867),n=a(80542),i=a(95155),s=a(12115),l=a(15239),o=a(85921),c=a(98731);function d(e){var t,a,d,u,m,x,h,p,g=e.item,f=e.index,v=(a=(t=(0,n._)((0,s.useState)(!1),2))[0],d=t[1],(0,s.useEffect)(function(){if(void 0!==window.matchMedia){var e,t=window.matchMedia("(prefers-reduced-motion: reduce)"),a=function(){return d(t.matches)};return a(),null==(e=t.addEventListener)||e.call(t,"change",a),function(){var e;null==(e=t.removeEventListener)||e.call(t,"change",a)}}},[]),a),b=(m=(0,s.useRef)(null),h=(x=(0,n._)((0,s.useState)(!1),2))[0],p=x[1],(0,s.useEffect)(function(){var e=m.current;if(e){if("undefined"==typeof IntersectionObserver)return void p(!0);var t=new IntersectionObserver(function(e){p((0,n._)(e,1)[0].isIntersecting)},(0,r._)({rootMargin:"220px 0px",threshold:.25},void 0));return t.observe(e),function(){return t.disconnect()}}},[u]),{ref:m,isInView:h}),j=b.ref,w=b.isInView,y=(0,s.useRef)(null),N=w&&!v,_=(0,n._)((0,s.useState)(!1),2),k=_[0],C=_[1];(0,s.useEffect)(function(){var e=y.current;if(e){if(N){var t=e.play();t&&"function"==typeof t.catch&&t.catch(function(){});return}e.pause()}},[N]),(0,s.useEffect)(function(){N||C(!1)},[N]);var I=g.aspectRatio||"4 / 5",z="/logo.png",L=g.title||"Showcase ".concat(f+1);return(0,i.jsx)("article",{ref:j,className:(0,c.cn)("group relative mb-4 break-inside-avoid overflow-hidden rounded-[1.5rem] bg-card text-card-foreground ring-1 ring-border transition-transform duration-300 hover:-translate-y-0.5",g.isFeatured&&"shadow-[0_24px_80px_rgba(0,0,0,0.12)]"),"aria-label":L,children:(0,i.jsxs)("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:I},children:[(0,i.jsx)(l.default,{src:z,alt:L,fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw",priority:f<1,className:(0,c.cn)("object-contain bg-background transition-transform duration-500 will-change-transform group-hover:scale-[1.03]",N&&k&&"opacity-0")}),N?(0,i.jsx)("video",{ref:y,src:g.videoUrl,poster:z,muted:!0,loop:!0,playsInline:!0,preload:"metadata",autoPlay:!0,onCanPlay:function(){return C(!0)},onLoadedData:function(){return C(!0)},className:(0,c.cn)("absolute inset-0 h-full w-full object-cover transition-opacity duration-500",k?"opacity-100":"opacity-0")}):null,(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-background/70 via-background/15 to-transparent"}),(0,i.jsxs)("div",{className:"absolute top-4 right-4 rounded-full border border-border bg-background/85 px-2.5 py-1 text-[11px] font-medium tracking-wide text-foreground shadow-sm backdrop-blur-md",children:[(0,i.jsx)(o.A,{className:"mr-1 inline size-3"}),"Video"]})]})})}function u(e){var t=e.section,a=e.className,r=t.items||[];return(0,i.jsxs)("section",{id:t.id||t.name,className:(0,c.cn)("relative overflow-hidden bg-background py-20 text-foreground md:py-28",t.className,a),children:[(0,i.jsxs)("div",{className:"pointer-events-none absolute inset-0",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-muted/35 via-background to-background"}),(0,i.jsx)("div",{className:"absolute inset-0 opacity-60 [background-image:radial-gradient(circle_at_top,_rgba(0,0,0,0.05),_transparent_38%),radial-gradient(circle_at_bottom_right,_rgba(0,0,0,0.04),_transparent_30%)]"})]}),(0,i.jsxs)("div",{className:"relative mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,i.jsxs)("div",{className:"mx-auto mb-12 max-w-3xl text-center md:mb-16",children:[t.sr_only_title?(0,i.jsx)("h1",{className:"sr-only",children:t.sr_only_title}):null,(0,i.jsx)("p",{className:"mb-4 text-xs font-semibold uppercase tracking-[0.28em] text-muted-foreground",children:"Showcase Wall"}),(0,i.jsx)("h2",{className:"text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-4xl md:text-5xl",children:t.title}),(0,i.jsx)("p",{className:"mx-auto mt-5 max-w-2xl text-pretty text-sm leading-7 text-muted-foreground sm:text-base",children:t.description}),t.buttons&&t.buttons.length>0?(0,i.jsx)("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:t.buttons.map(function(e){return(0,i.jsx)("a",{href:e.url||"#",target:e.target||"_self",className:(0,
1c.cn)("inline-flex items-center justify-center rounded-full px-4 py-2 text-sm font-medium transition-colors","outline"===e.variant?"border border-border bg-background text-foreground hover:bg-muted":"bg-foreground text-background hover:opacity-90"),children:e.title},e.title)})}):null]}),r.length>0?(0,i.jsx)("div",{className:"columns-1 gap-4 sm:columns-2 lg:columns-3 xl:columns-4",children:r.map(function(e,t){return(0,i.jsx)(d,{item:e,index:t},"".concat(e.title,"-").concat(t))})}):(0,i.jsx)("div",{className:"rounded-[2rem] border border-border bg-card p-10 text-center text-sm text-muted-foreground",children:"No showcase videos found."})]})]})}},50323:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Stats:()=>i});var r=a(95155),n=a(2838);function i(e){var t,a=e.section,i=e.className;return(0,r.jsx)("section",{id:a.id,className:"py-12 md:py-24 ".concat(a.className," ").concat(i),children:(0,r.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[(0,r.jsx)(n.i,{children:(0,r.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[(0,r.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:a.title}),(0,r.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:a.description})]})}),(0,r.jsx)(n.i,{delay:.2,children:(0,r.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=a.items)?void 0:t.map(function(e,t){return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,r.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,r.jsx)("p",{children:e.description})]},t)})})})]})})}},57064:(e,t,a)=>{"use strict";a.r(t),a.d(t,{FeaturesMedia:()=>l});var r=a(95155),n=a(57297),i=a(85098),s=a(98731);function l(e){var t,a,l,o,c,d=e.section,u="right"===(d.image_position||"left");return(0,r.jsx)("section",{id:d.id||d.name,className:(0,s.cn)("py-16 md:py-24",d.className),children:(0,r.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:(0,r.jsxs)(n.P.div,{className:(0,s.cn)("grid items-center gap-6 sm:grid-cols-2 md:gap-12 lg:gap-24",u&&"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,r.jsx)(n.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,r.jsx)(i.LazyImage,{src:null!=(o=null==(t=d.image)?void 0:t.src)?o:"",className:"rounded-2xl",alt:null!=(c=null==(a=d.image)?void 0:a.alt)?c:""})}),(0,r.jsxs)(n.P.div,{className:"relative space-y-4",initial:{opacity:0,x:u?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.3,ease:[.22,1,.36,1]},children:[(0,r.jsx)("h2",{className:"text-xl font-medium md:text-lg lg:text-lg",children:d.title}),(0,r.jsx)("p",{className:"text-muted-foreground text-md",children:d.description}),(0,r.jsx)("div",{className:"mt-8 flex flex-wrap gap-4",children:null==(l=d.items)?void 0:l.map(function(e){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("h3",{className:"mb-2 flex items-center gap-2 text-sm",children:[(0,r.jsx)(i.SmartIcon,{name:e.icon,size:16}),e.title]}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]},e.title)})})]})]})})})}},61179:(e,t,a)=>{"use strict";a.r(t),a.d(t,{FeaturesAccordion:()=>p});var r=a(80542),n=a(95155),i=a(12115),s=a(26497),l=a(57297),o=a(85098),c=a(67867),d=a(98731),u=function(e){var t=e.className,a=e.size,r=void 0===a?50:a,i=e.delay,s=e.duration,o=e.colorFrom,u=e.colorTo,m=e.transition,x=e.style,h=e.reverse,p=e.initialOffset,g=void 0===p?0:p,f=e.borderWidth;return(0,n.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(void 0===f?1:f,"px")},children:(0,n.jsx)(l.P.div,{className:(0,d.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",t),style:(0,c._)({width:r,offsetPath:"rect(0 auto auto 0 round ".concat(r,"px)"),"--color-from":void 0===o?"#ffaa40":o,"--color-to":void 0===u?"#9c40ff":u},x),initial:{offsetDistance:"".concat(g,"%")},animate:{offsetDistance:void 0!==h&&h?["".concat(100-g,"%"),"".concat(-g,"%")]:["".concat(g,"%"),"".concat(100+g,"%")]},transition:(0,c._)({repeat:1/0,ease:"linear",duration:void 0===s?6:s,delay:-(void 0===i?0:i)},m)})})},m=a(84118),x=a(2838),h={"item-1":"/videos/2.webm","item-2":"/videos/3.mp4","item-3":"/videos/4.mp4"};function p(e){var t,a=e.section,c=e.className,p=(0,r._)((0,i.useState)("item-1"),2),g=p[0],f=p[1],v=function(e){return h[e]||"/videos/2.webm"};return(0,n.jsx)("section",{className:(0,d.cn)("overflow-x-hidden py-16 md:py-24",a.className,c),children:(0,n.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,n.jsx)(x.i,{children:(0,n.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[(0,n.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:a.title}),(0,n.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:a.description})]})}),(0,n.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[(0,n.jsx)(x.i,{delay:.1,direction:"left",children:(0,n.jsx)(m.Accordion,{type:"single",value:g,onValueChange:function(e){return f(e)},className:"w-full",children:null==(t=a.items)?void 0:t.map(function(e,t){return(0,n.jsxs)(m.AccordionItem,{value:"item-".concat(t+1),children:[(0,n.jsx)(m.AccordionTrigger,{children:(0,n.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,n.jsx)(o.SmartIcon,{name:e.icon,size:24}),e.title]})}),(0,n.jsx)(m.AccordionContent,{children:e.description})]},t)})})}),(0,n.jsx)(x.i,{delay:.2,direction:"right",children:(0,n.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[(0,n.jsx)("div",{className:"absolute inset-0 right-0 ml-auto w-15 border-l bg-[repeating-linear-gradient(-45deg,var(--color-border),var(--color-border)_1px,transparent_1px,transparent_8px)]"}),(0,n.jsx)("div",{className:"bg-background relative aspect-76/59 w-full min-w-0 rounded-2xl sm:w-[calc(3/4*100%+3rem)]",children:(0,n.jsx)(s.N,{mode:"wait",children:(0,n.jsx)(l.P.div,{initial:{opacity:0,y:6,scale:.98}
1,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,n.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"size-full object-cover object-left-top dark:mix-blend-lighten",children:(0,n.jsx)("source",{src:v(g),type:v(g).endsWith(".webm")?"video/webm":"video/mp4"})})},"".concat(g,"-video"))})}),(0,n.jsx)(u,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"})]})})]})]})})}},65899:()=>{},70046:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Subscribe:()=>p});var r=a(81494),n=a(80542),i=a(71450),s=a(95155),l=a(12115),o=a(23664),c=a(35299),d=a(17188),u=a(18720),m=a(99772),x=a(2838),h=a(98731);function p(e){var t,a,p,g=e.section,f=e.className,v=(0,n._)((0,l.useState)(""),2),b=v[0],j=v[1],w=(0,n._)((0,l.useState)(!1),2),y=w[0],N=w[1];return(0,s.jsx)("section",{id:g.id,className:(0,h.cn)("py-16 md:py-24",g.className,f),children:(0,s.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(x.i,{children:(0,s.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:g.title})}),(0,s.jsx)(x.i,{delay:.15,children:(0,s.jsx)("p",{className:"mt-4",children:g.description})}),(0,s.jsx)(x.i,{delay:.3,children:(0,s.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,s.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,s.jsx)(o.A,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,s.jsx)("input",{placeholder:(null==(a=g.submit)||null==(t=a.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":!b,"aria-describedby":"email-error",value:b,onChange:function(e){return j(e.target.value)}}),(null==(p=g.submit)?void 0:p.button)&&(0,s.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,s.jsxs)(m.$,{"aria-label":"submit",className:"rounded-(--radius)",onClick:function(){return(0,r._)(function(){var e,t,a,r,n,s;return(0,i.YH)(this,function(i){switch(i.label){case 0:if(!b||!(null==(e=g.submit)?void 0:e.action))return[2];i.label=1;case 1:return i.trys.push([1,4,,5]),N(!0),[4,fetch(g.submit.action,{method:"POST",body:JSON.stringify({email:b})})];case 2:if(!(t=i.sent()).ok)throw Error("request failed with status ".concat(t.status));return[4,t.json()];case 3:if(r=(a=i.sent()).code,n=a.message,a.data,0!==r)throw Error(n);return N(!1),n&&u.oR.success(n),[3,5];case 4:return s=i.sent(),N(!1),u.oR.error(s.message||"subscribe failed"),[3,5];case 5:return[2]}})})()},disabled:y,type:"submit",children:[y?(0,s.jsx)(c.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"hidden md:block",children:g.submit.button.title}),(0,s.jsx)(d.A,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}},74509:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Pricing:()=>q});var r=a(81494),n=a(33649),i=a(67867),s=a(11470),l=a(80542),o=a(39487),c=a(71450),d=a(95155),u=a(12115),m=a(52619),x=a.n(m),h=a(5917),p=a(95740),g=a(35299),f=a(36809),v=a(18955),b=a(18720),j=a(85098),w=a(99772),y=a(48468),N=a(41755),_=a(90380),k=a(18078),C=a(15239),I=a(90040),z=a(28066),L=a(98731);function S(e){var t=e.configs,a=e.callbackUrl,n=e.loading,i=(e.setLoading,e.pricingItem),s=e.onCheckout,o=e.className;(0,v.c)("common.payment"),(0,I.rd)(),(0,_.U)().setIsShowPaymentModal;var m=(0,l._)((0,u.useState)(null),2),x=m[0],h=m[1];if(a){var p=(0,f.Ym)();p!==z.q&&a.startsWith("/")&&!a.startsWith("/".concat(p))&&(a="/".concat(p).concat(a))}var j=function(e){var t=e.provider;return(0,r._)(function(){return(0,c.YH)(this,function(e){return t?i?s(i,t):b.oR.error("please select a pricing item"):b.oR.error("please select payment method"),[2]})})()},y=null==i?void 0:i.payment_providers,N=function(e){return!y||0===y.length||y.includes(e)},k=[];return"true"===t.stripe_enabled&&N("stripe")&&k.push({name:"stripe",title:"Str
1ipe",icon_url:"/imgs/icons/stripe.png",onClick:function(){return j({provider:"stripe"})}}),"true"===t.creem_enabled&&N("creem")&&k.push({name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:function(){return j({provider:"creem"})}}),"true"===t.paypal_enabled&&N("paypal")&&k.push({name:"paypal",title:"Paypal",icon_url:"/imgs/icons/paypal.svg",onClick:function(){return j({provider:"paypal"})}}),(0,d.jsx)("div",{className:(0,L.cn)("flex w-full items-center gap-2","flex-col justify-between",o),children:k.map(function(e){return(0,d.jsxs)(w.$,{variant:"outline",className:(0,L.cn)("w-full gap-2"),disabled:n,onClick:function(){if(!e.onClick||!e.name)return void b.oR.error("invalid payment method");h(e.name),e.onClick()},children:[e.icon_url&&(0,d.jsx)(C.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,d.jsx)("h3",{children:e.title}),x===e.name&&n&&(0,d.jsx)(g.A,{className:"size-4 animate-spin"})]},e.name)})})}function A(e){var t=e.isLoading,a=e.pricingItem,r=e.onCheckout,n=(0,v.c)("common.payment"),i=(0,_.U)(),s=i.isShowPaymentModal,l=i.setIsShowPaymentModal,o=(0,_.U)().configs;return(0,k.U)("(min-width: 768px)")?(0,d.jsx)(y.lG,{open:s,onOpenChange:l,children:(0,d.jsxs)(y.Cf,{className:"sm:max-w-[425px]",children:[(0,d.jsxs)(y.c7,{children:[(0,d.jsx)(y.L3,{children:n("choose_payment_method")}),(0,d.jsx)(y.rr,{children:n("choose_payment_method_description")})]}),(0,d.jsx)(S,{callbackUrl:"/",configs:o,loading:t,setLoading:function(){},pricingItem:a,onCheckout:r})]})}):(0,d.jsx)(N._s,{open:s,onOpenChange:l,children:(0,d.jsxs)(N.zj,{children:[(0,d.jsxs)(N.BE,{className:"text-left",children:[(0,d.jsx)(N.gk,{children:n("choose_payment_method")}),(0,d.jsx)(N.I6,{children:n("choose_payment_method_description")})]}),(0,d.jsx)(S,{callbackUrl:"/",configs:o,loading:t,setLoading:function(){},pricingItem:a,onCheckout:r,className:"px-4"}),(0,d.jsx)(N.tb,{className:"pt-4",children:(0,d.jsx)(N.cp,{asChild:!0,children:(0,d.jsx)(w.$,{variant:"outline",children:n("cancel_title")})})})]})})}var P=a(18325),T=a(60750),M=a(70684),F=a(44599),E=a(23328),V=a(28356);function R(e){if(!e)return[];var t={currency:e.currency,amount:e.amount,price:e.price||"",original_price:e.original_price||""};return e.currencies&&e.currencies.length>0?[t].concat((0,o._)(e.currencies)):[t]}function D(e){return e.label?e.label:e.credits?"".concat(e.credits.toLocaleString()," credits"):e.price}function O(e){var t,a,r,n,i=e.item,s=e.isCurrentPlan,l=e.t;return(0,d.jsxs)(T.Zp,{className:"relative flex h-full flex-col",children:[(0,d.jsxs)(T.aR,{className:"pb-2",children:[(0,d.jsx)(T.ZB,{className:"font-medium",children:(0,d.jsx)("h3",{className:"text-sm font-medium",children:i.title})}),(0,d.jsx)("div",{className:"my-2 flex flex-col gap-1",children:(0,d.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,d.jsx)("span",{className:"text-primary text-xl font-semibold",children:i.price}),i.unit&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs font-normal",children:i.unit})]})}),(0,d.jsx)(T.BT,{className:"text-xs",children:i.description}),i.tip&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs",children:i.tip}),s?(0,d.jsx)(w.$,{variant:"outline",className:"mt-3 h-8 w-full px-3 py-1.5 text-xs",disabled:!0,children:(0,d.jsx)("span",{className:"hidden text-xs md:block",children:l("current_plan")})}):(0,d.jsx)(x(),{href:"/",passHref:!0,className:"w-full",children:(0,d.jsxs)(w.$,{variant:"outline",className:"mt-3 h-8 w-full px-3 py-1.5 text-xs",children:[(null==(t=i.button)?void 0:t.icon)&&(0,d.jsx)(j.SmartIcon,{name:null==(a=i.button)?void 0:a.icon,className:"mr-1 size-3"}),(0,d.jsx)("span",{className:"block",children:null==(r=i.button)?void 0:r.title})]})})]}),(0,d.jsxs)(T.Wu,{className:"flex-1 space-y-3 pt-0",children:[(0,d.jsx)("hr",{className:"border-dashed"}),i.features_title&&(0,d.jsx)("p",{className:"text-xs font-medium",children:i.features_title}),(0,d.jsx)("ul",{className:"list-outside space-y-2 text-xs",children:null==(n=i.features)?void 0:n.map(function(e,t){return(0,d.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(h.A,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"leading-tight",children:e})]},t)})})]})]})}function W(e){var t,a,r,n,i,s=e.item,l=e.isCurrentPlan,o=e.currentTierIndex,c=e.onTierChange,u=e.onSubscribe,m=e.isLoading,x=e.productId,f=e.t,v=e.currencies,b=e.selectedCurrency,y=e.onCurrencyChange,N=null!=(n=s.slider_tiers)?n:[],_=null!=(i=N[o])?i:N[0],k=(null==_?void 0:_.features)||s.features,C=(null==_?void 0:_.price)||s.price,I=(null==_?void 0:_.unit)||s.unit,z=(null==_?void 0:_.original_price)||s.original_price;return(0,d.jsxs)(T.Zp,{className:(0,L.cn)("relative flex h-full flex-col","border-primary shadow-primary/20 border-2 shadow-xl"),children:[(0,d.jsx)("div",{className:"absolute -top-4 left-1/2 z-10 -translate-x-1/2",children:(0,d.jsxs)("span",{className:"bg-primary text-primary-foreground inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-medium shadow-lg",children:[(0,d.jsx)(p.A,{className:"size-3"}),f("best_value")]})}),s.label&&(0,d.jsx)("span",{className:"absolute top-3 right-3 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:s.label}),(0,d.jsxs)(T.aR,{className:"pt-6 pb-2",children:[(0,d.jsx)(T.ZB,{className:"font-medium",children:(0,d.jsx)("h3",{className:"text-sm font-medium",children:s.title})}),(0,d.jsxs)("div",{className:"my-2 flex flex-col gap-1",children:[z&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs line-through",children:z}),(0,d.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,d.jsx)("span",{className:"text-primary text-xl font-semibold",children:C}),I&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs font-normal",children:I})]}),(0,d.jsxs)("div",{className:"border-border/70 mt-3 space-y-3 border-t pt-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs",children:[(0,d.jsx)("span",{className:"text-foreground font-medium",children:f("usage_level")}),(0,d.jsx)("span",{className:"text-muted-foreground font-medium",children:_&&D(_)})]}),(0,d.jsx)(F.A,{"aria-label":"".concat(s.title," ").concat(f("usage_level")),max:Math.max(N.length-1,0),min:0,step:1,value:[o],onValueChange:function(e){return c(e[0])},className:"w-full"}),(0,d.jsx)("div",{className:"text-muted-foreground grid gap-1 text-center text-[11px]",style:{gridTemplateColumns:"repeat(".concat(Math.max(N.length,1),", minmax(0, 1fr))")},children:N.map(function(e,t){return(0,d.jsx)("span",{className:(0,L.cn)("truncate",o===t&&"text-primary font-medium"),children:D(e)},"".concat(e.price,"-").concat(t))})})]}),(null==_?void 0:_.credits)&&(0,d.jsx)("p",{className:"text-muted-foreground text-sm leading-5 tabular-nums",children:f("selected_credits",{credits:_.credits.toLocaleStr
1ing()})}),v.length>1&&(0,d.jsxs)(M.l6,{value:b,onValueChange:y,children:[(0,d.jsx)(M.bq,{size:"sm",className:"border-muted-foreground/30 bg-background/50 mt-2 h-6 min-w-[60px] px-2 text-xs",children:(0,d.jsx)(M.yv,{placeholder:"Currency"})}),(0,d.jsx)(M.gC,{children:v.map(function(e){return(0,d.jsx)(M.eb,{value:e.currency,className:"text-xs",children:e.currency.toUpperCase()},e.currency)})})]})]}),(0,d.jsx)(T.BT,{className:"text-xs",children:s.description}),s.tip&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs",children:s.tip}),l?(0,d.jsx)(w.$,{variant:"outline",className:"mt-3 h-8 w-full px-3 py-1.5 text-xs",disabled:!0,children:(0,d.jsx)("span",{className:"hidden text-xs md:block",children:f("current_plan")})}):(0,d.jsx)(w.$,{onClick:u,disabled:m,className:(0,L.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-xs font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","mt-3 h-8 w-full px-3 py-1.5","bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md shadow-black/20"),children:m&&x===s.product_id?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.A,{className:"size-3 animate-spin"}),(0,d.jsx)("span",{className:"block",children:f("processing")})]}):(0,d.jsxs)(d.Fragment,{children:[(null==(t=s.button)?void 0:t.icon)&&(0,d.jsx)(j.SmartIcon,{name:null==(a=s.button)?void 0:a.icon,className:"size-3"}),(0,d.jsx)("span",{className:"block",children:null==(r=s.button)?void 0:r.title})]})})]}),(0,d.jsxs)(T.Wu,{className:"flex-1 space-y-3 pt-0",children:[(0,d.jsx)("hr",{className:"border-dashed"}),s.features_title&&(0,d.jsx)("p",{className:"text-xs font-medium",children:s.features_title}),(0,d.jsx)("ul",{className:"list-outside space-y-2 text-xs",children:null==k?void 0:k.map(function(e,t){return(0,d.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(h.A,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"leading-tight",children:e})]},t)})})]})]})}function H(e){var t,a,r,n,i=e.item,s=e.isCurrentPlan,l=e.onSubscribe,o=e.isLoading,c=e.productId,u=e.t,m=e.currencies,x=e.selectedCurrency,p=e.onCurrencyChange;return(0,d.jsxs)(T.Zp,{className:"relative flex h-full flex-col",children:[i.label&&(0,d.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:i.label}),(0,d.jsxs)(T.aR,{className:"pb-2",children:[(0,d.jsx)(T.ZB,{className:"font-medium",children:(0,d.jsx)("h3",{className:"text-sm font-medium",children:i.title})}),(0,d.jsxs)("div",{className:"my-2 flex flex-col gap-1",children:[i.original_price&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs line-through",children:i.original_price}),(0,d.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,d.jsx)("span",{className:"text-primary text-xl font-semibold",children:i.price}),i.unit&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs font-normal",children:i.unit})]}),m.length>1&&(0,d.jsxs)(M.l6,{value:x,onValueChange:p,children:[(0,d.jsx)(M.bq,{size:"sm",className:"border-muted-foreground/30 bg-background/50 mt-2 h-6 min-w-[60px] px-2 text-xs",children:(0,d.jsx)(M.yv,{placeholder:"Currency"})}),(0,d.jsx)(M.gC,{children:m.map(function(e){return(0,d.jsx)(M.eb,{value:e.currency,className:"text-xs",children:e.currency.toUpperCase()},e.currency)})})]})]}),(0,d.jsx)(T.BT,{className:"text-xs",children:i.description}),i.tip&&(0,d.jsx)("span",{className:"text-muted-foreground text-xs",children:i.tip}),s?(0,d.jsx)(w.$,{variant:"outline",className:"mt-3 h-8 w-full px-3 py-1.5 text-xs",disabled:!0,children:(0,d.jsx)("span",{className:"hidden text-xs md:block",children:u("current_plan")})}):(0,d.jsx)(w.$,{onClick:l,disabled:o,className:(0,L.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-xs font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","mt-3 h-8 w-full px-3 py-1.5","bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md shadow-black/20"),children:o&&c===i.product_id?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.A,{className:"size-3 animate-spin"}),(0,d.jsx)("span",{className:"block",children:u("processing")})]}):(0,d.jsxs)(d.Fragment,{children:[(null==(t=i.button)?void 0:t.icon)&&(0,d.jsx)(j.SmartIcon,{name:null==(a=i.button)?void 0:a.icon,className:"size-3"}),(0,d.jsx)("span",{className:"block",children:null==(r=i.button)?void 0:r.title})]})})]}),(0,d.jsxs)(T.Wu,{className:"flex-1 space-y-3 pt-0",children:[(0,d.jsx)("hr",{className:"border-dashed"}),i.features_title&&(0,d.jsx)("p",{className:"text-xs font-medium",children:i.features_title}),(0,d.jsx)("ul",{className:"list-outside space-y-2 text-xs",children:null==(n=i.features)?void 0:n.map(function(e,t){return(0,d.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(h.A,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"leading-tight",children:e})]},t)})})]})]})}function q(e){var t,a,m,x=e.section,h=e.className,p=e.currentSubscription,g=(0,f.Ym)(),j=(0,v.c)("pages.pricing.messages"),w=(0,_.U)(),y=w.user,N=(w.isShowPaymentModal,w.setIsShowSignModal),k=w.setIsShowPaymentModal,C=w.
1configs,I=(0,l._)((0,u.useState)(function(){var e,t,a,r,n=null==(e=x.groups)?void 0:e.find(function(e){return"yearly"===e.name}),i=null==(t=x.groups)?void 0:t.find(function(e){return e.is_featured});return(null==n?void 0:n.name)||(null==i?void 0:i.name)||(null==(r=x.groups)||null==(a=r[0])?void 0:a.name)}),2),z=I[0],S=I[1],T=(0,l._)((0,u.useState)(null),2),M=T[0],F=T[1],D=(0,l._)((0,u.useState)(!1),2),q=D[0],U=D[1],B=(0,l._)((0,u.useState)(null),2),$=B[0],Y=B[1],G=(0,l._)((0,u.useState)({}),2),Z=G[0],X=G[1],J=(0,l._)((0,u.useState)({}),2),K=J[0],Q=J[1];(0,u.useEffect)(function(){if(x.items&&x.items.length>0){var e={};x.items.forEach(function(t){var a=R(t),r=function(e,t,a){if(0===e.length)return a;if("zh"===t){var r=e.find(function(e){return"cny"===e.currency.toLowerCase()});if(r)return r.currency}return a}(a,g,t.currency),n=a.find(function(e){return e.currency.toLowerCase()===r.toLowerCase()}),l=n?(0,s._)((0,i._)({},t),{currency:n.currency,amount:n.amount,price:n.price,original_price:n.original_price,payment_product_id:n.payment_product_id||t.payment_product_id,payment_providers:n.payment_providers||t.payment_providers}):t;e[t.product_id]={selectedCurrency:r,displayedItem:l}}),Q(e)}},[x.items,g]);var ee=function(e,t){var a,r=null==(a=x.items)?void 0:a.find(function(t){return t.product_id===e});if(r){var l=R(r).find(function(e){return e.currency.toLowerCase()===t.toLowerCase()});if(l){var o=(0,s._)((0,i._)({},r),{currency:l.currency,amount:l.amount,price:l.price,original_price:l.original_price,payment_product_id:l.payment_product_id||r.payment_product_id,payment_providers:l.payment_providers||r.payment_providers});Q(function(a){return(0,s._)((0,i._)({},a),(0,n._)({},e,{selectedCurrency:t,displayedItem:o}))})}}},et=function(e){return(0,r._)(function(){var t,a;return(0,c.YH)(this,function(r){return 0===e.amount||e.is_free?window.location.href="/":y?(a=(null==(t=K[e.product_id])?void 0:t.displayedItem)||e,"true"===C.select_payment_enabled?(F(a),k(!0)):er(a,C.default_payment_provider)):N(!0),[2]})})()},ea=function(e){var t=e.paymentProvider,a={};return"true"===C.affonso_enabled&&["stripe","creem"].includes(t)&&(a.affonso_referral=(0,V.Ri)("affonso_referral")||""),"true"===C.promotekit_enabled&&["stripe"].includes(t)&&(a.promotekit_referral=window.promotekit_referral?window.promotekit_referral:(0,V.Ri)("promotekit_referral")||""),a},er=function(e,t){return(0,r._)(function(){var a,r,n,i,s,l,o,d,u,m,x;return(0,c.YH)(this,function(c){switch(c.label){case 0:if(c.trys.push([0,3,,4]),!y)return N(!0),[2];return r=(a=e.slider_enabled&&e.slider_tiers&&e.slider_tiers.length>0)&&Z[e.product_id]||0,n=ea({paymentProvider:t||""}),i={product_id:e.product_id,currency:e.currency,locale:g||"en",payment_provider:t||"",metadata:n,tier_index:a?r:void 0},U(!0),Y(e.product_id),[4,fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})];case 1:if(401===(s=c.sent()).status)return U(!1),Y(null),F(null),N(!0),[2];if(!s.ok)throw Error("request failed with status ".concat(s.status));return[4,s.json()];case 2:if(o=(l=c.sent()).code,d=l.message,u=l.data,0!==o)throw Error(d);if(!(m=u.checkoutUrl))throw Error("checkout url not found");return window.location.href=m,[3,4];case 3:return console.log("checkout failed: ",x=c.sent()),b.oR.error("checkout failed: "+x.message),U(!1),Y(null),[3,4];case 4:return[2]}})})()};(0,u.useEffect)(function(){if(x.items){var e,t=x.items.find(function(e){return e.is_featured});Y((null==t?void 0:t.product_id)||(null==(e=x.items[0])?void 0:e.product_id)),U(!1)}},[x.items]);var en=(null==(t=x.items)?void 0:t.filter(function(e){return!e.group||e.group===z}))||[],ei=(0,o._)(en).sort(function(e,t){return e.is_free||0===e.amount?-1:t.is_free||0===t.amount?1:e.slider_enabled?-1:+!!t.slider_enabled}),es=ei.find(function(e){return e.is_free||0===e.amount}),el=ei.find(function(e){return e.slider_enabled}),eo=ei.find(function(e){return!e.is_free&&0!==e.amount&&!e.slider_enabled}),ec=ei.some(function(e){return e.slider_enabled}),ed=ei.filter(function(e){return!e.is_free&&!e.slider_enabled});return(0,d.jsxs)("section",{id:x.id,className:(0,L.cn)("py-24 md:py-36",x.className,h),children:[(0,d.jsxs)("div",{className:"mx-auto mb-12 px-4 text-center md:px-8",children:[x.sr_only_title&&(0,d.jsx)("h1",{className:"sr-only",children:x.sr_only_title}),(0,d.jsx)("h2",{className:"mb-6 text-3xl font-bold text-pretty lg:text-4xl",children:x.title}),(0,d.jsx)("p",{className:"text-muted-foreground mx-auto mb-4 max-w-xl lg:max-w-none lg:text-lg",children:x.description})]}),(0,d.jsxs)("div",{className:"container",children:[x.groups&&x.groups.length>0&&(0,d.jsx)("div",{className:"mx-auto mt-8 mb-16 flex w-full justify-center md:max-w-lg",children:(0,d.jsx)(E.tU,{value:z,onValueChange:function(e){
1S(e),X({})},className:"",children:(0,d.jsx)(E.j7,{children:x.groups.map(function(e,t){return(0,d.jsxs)(E.Xi,{value:e.name||"",children:[e.title,e.label&&(0,d.jsx)(P.E,{className:"ml-2",children:e.label})]},t)})})})}),(0,d.jsx)("div",{className:(0,L.cn)("mx-auto grid w-full max-w-6xl grid-cols-1 items-stretch gap-6",ec?"md:grid-cols-3":"justify-center md:grid-cols-3"),children:ec?(0,d.jsxs)(d.Fragment,{children:[es&&(0,d.jsx)(O,{item:es,isCurrentPlan:(null==p?void 0:p.productId)===es.product_id,t:j}),el&&(0,d.jsx)(W,{item:el,isCurrentPlan:(null==p?void 0:p.productId)===el.product_id,currentTierIndex:Z[el.product_id]||0,onTierChange:function(e){return X(function(t){return(0,s._)((0,i._)({},t),(0,n._)({},el.product_id,e))})},onSubscribe:function(){return et(el)},isLoading:q,productId:$,t:j,currencies:R(el),selectedCurrency:(null==(a=K[el.product_id])?void 0:a.selectedCurrency)||el.currency,onCurrencyChange:function(e){return ee(el.product_id,e)}}),eo&&(0,d.jsx)(H,{item:eo,isCurrentPlan:(null==p?void 0:p.productId)===eo.product_id,onSubscribe:function(){return et(eo)},isLoading:q,productId:$,t:j,currencies:R(eo),selectedCurrency:(null==(m=K[eo.product_id])?void 0:m.selectedCurrency)||eo.currency,onCurrencyChange:function(e){return ee(eo.product_id,e)}})]}):ed.map(function(e){var t;return(0,d.jsx)(H,{item:e,isCurrentPlan:(null==p?void 0:p.productId)===e.product_id,onSubscribe:function(){return et(e)},isLoading:q,productId:$,t:j,currencies:R(e),selectedCurrency:(null==(t=K[e.product_id])?void 0:t.selectedCurrency)||e.currency,onCurrencyChange:function(t){return ee(e.product_id,t)}},e.product_id)})})]}),(0,d.jsx)(A,{isLoading:q,pricingItem:M,onCheckout:function(e,t){return er(e,t)}})]})}},75667:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tabs:()=>p});var r=a(80542),n=a(95155),i=a(12115),s=a(90040),l=a(67867),o=a(11470),c=a(12844),d=a(59034),u=a(98731),m=i.forwardRef(function(e,t){var a=e.className,r=e.children,i=(0,c._)(e,["className","children"]);return(0,n.jsxs)(d.bL,(0,o._)((0,l._)({ref:t,className:(0,u.cn)("relative overflow-hidden",a)},i),{children:[(0,n.jsx)(d.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,n.jsx)(x,{}),(0,n.jsx)(d.OK,{})]}))});m.displayName=d.bL.displayName;var x=i.forwardRef(function(e,t){var a=e.className,r=e.orientation,i=void 0===r?"vertical":r,s=(0,c._)(e,["className","orientation"]);return(0,n.jsx)(d.VM,(0,o._)((0,l._)({ref:t,orientation:i,className:(0,u.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]",a)},s),{children:(0,n.jsx)(d.lr,{className:"relative flex-1 rounded-full bg-border"})}))});x.displayName=d.VM.displayName;var h=a(23328);function p(e){var t,a=e.tabs,l=e.size,o=(0,s.rd)(),c=(0,r._)((0,i.useState)((null==a||null==(t=a.find(function(e){return e.is_active}))?void 0:t.name)||""),2),d=c[0],p=c[1],g=(0,r._)((0,i.useState)({}),2);return g[0],g[1],(0,i.useEffect)(function(){if(d){var e=(null==a?void 0:a.find(function(e){return e.name===d}))||{};e.url&&o.push(e.url)}},[d]),(0,n.jsx)("div",{className:"relative mb-8",children:(0,n.jsxs)(m,{className:"w-full lg:max-w-none",children:[(0,n.jsx)("div",{className:"flex items-center space-x-2",children:(0,n.jsx)(h.tU,{value:d,onValueChange:p,children:(0,n.jsx)(h.j7,{className:(0,u.cn)("sm"===l&&"h-8"),children:a.map(function(e,t){return(0,n.jsx)(h.Xi,{value:e.name||"",children:e.title},t)})})})}),(0,n.jsx)(x,{orientation:"horizontal",className:"invisible"})]})})}},77149:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Logos:()=>l});var r=a(95155),n=a(85098),i=a(2838),s=a(98731);function l(e){var t,a=e.section,l=e.className;return(0,r.jsx)("section",{id:a.id,className:(0,s.cn)("py-16 md:py-24",a.className,l),children:(0,r.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[(0,r.jsx)(i.i,{children:(0,r.jsx)("p",{className:"text-md text-center font-medium",children:a.title})}),(0,r.jsx)(i.i,{delay:.2,children:(0,r.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=a.items)?void 0:t.map(function(e,t){var a,i,s,l;return(0,r.jsx)(n.LazyImage,{className:"h-8 w-fit dark:invert",src:null!=(s=null==(a=e.image)?void 0:a.src)?s:"",alt:null!=(l=null==(i=e.image)?void 0:i.alt)?l:""},t)})})})]})})}},79604:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Cta:()=>c});var r=a(95155),n=a(90040),i=a(7254),s=a(99772),l=a(2838),o=a(98731);function c(e){var t,a,c=e.section,d=e.className;return(0,r.jsx)("section",{id:c.id,className:(0,o.cn)("py-16 md:py-24",c.className,d),children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(l.i,{children:(0,r.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:c.title})}),(0,r.jsx)(l.i,{delay:.15,children:(0,r.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:null!=(a=c.description)?a:""}})}),(0,r.jsx)(l.i,{delay:.3,children:(0,r.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:null==(t=c.buttons)?void 0:t.map(function(e,t){return(0,r.jsx)(s.$,{asChild:!0,size:e.size||"default",variant:e.variant||"default",children:(0,r.jsxs)(n.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,r.jsx)(i.L,{name:e.icon}),(0,r.jsx)("span",{children:e.title})]})},t)})})})]})})})}},89276:(e,t,a)=>{"use strict";a.r(t),a.d(t,{FeaturesFlow:()=>c});var r=a(67867),n=a(11470),i=a(95155),s=a(57297),l=a(85098),o=a(98731);function c(e){var t=e.section;return t.items&&0!==t.items.length?(0,i.jsxs)("section",{id:t.id||t.name,className:(0,o.cn)("py-16 md:py-24",t.className),children:[(0,i.jsxs)(s.P.div,(0,n._)((0,r._)({className:"container mb-12 text-center"},{initial:{opacity:0,y:20,filter:"blur(6px)"}
1,animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:0,ease:[.22,1,.36,1]}}),{children:[t.sr_only_title&&(0,i.jsx)("h1",{className:"sr-only",children:t.sr_only_title}),(0,i.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,i.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:t.description})]})),(0,i.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:t.items.map(function(e,t){var a,r,n,c,d="right"===e.image_position;return(0,i.jsxs)(s.P.div,{className:(0,o.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,i.jsx)(s.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,i.jsx)(l.LazyImage,{src:null!=(n=null==(a=e.image)?void 0:a.src)?n:"",className:"rounded-2xl",alt:null!=(c=null==(r=e.image)?void 0:r.alt)?c:""})}),(0,i.jsxs)(s.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,i.jsx)("h3",{className:"text-xl font-medium md:text-2xl lg:text-2xl",children:e.title}),(0,i.jsx)("p",{className:"text-muted-foreground",children:e.description})]})]},t)})})]}):null}},89612:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Showcases:()=>x});var r=a(80542),n=a(95155),i=a(12115),s=a(15239),l=a(57297),o=a(90040),c=a(7254),d=a(99772),u=a(60750),m=a(98731);function x(e){var t=e.section,a=e.className,x=t.groups||[],h=(0,r._)((0,i.useState)(x.length>0?x[0].name:""),2),p=h[0],g=h[1],f=(0,i.useMemo)(function(){return t.items?p&&x.length&&"all"!==p?t.items.filter(function(e){return e.group===p}):t.items:[]},[t.items,p,x.length]);return(0,n.jsxs)("section",{id:t.id||t.name,className:(0,m.cn)("py-24 md:py-36",t.className,a),children:[(0,n.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,n.jsx)("h1",{className:"sr-only",children:t.sr_only_title}),(0,n.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,n.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:t.description})]}),x.length>0&&(0,n.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:x.map(function(e,t){var a=p===e.name;return(0,n.jsx)(l.P.button,{onClick:function(){return g(e.name)}
1,className:(0,m.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",a?"":"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:a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,n.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,n.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,n.jsx)("span",{children:e.title})},e.name)})}),(0,n.jsx)("div",{className:"container grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:f.length>0?f.map(function(e,t){var a,r,i,m,x,h=!!e.button,p=(0,n.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]},children:(0,n.jsx)(u.Zp,{className:"dark:hover:shadow-primary/10 overflow-hidden p-0 transition-all hover:shadow-lg",children:(0,n.jsxs)(u.Wu,{className:"p-0",children:[(0,n.jsx)(l.P.div,{className:"relative aspect-16/10 w-full overflow-hidden",whileHover:{scale:1.05},transition:{duration:.3},children:(0,n.jsx)(s.default,{src:null!=(i=null==(a=e.image)?void 0:a.src)?i:"",alt:null!=(m=null==(r=e.image)?void 0:r.alt)?m:"",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",fill:!0,className:"rounded-t-lg object-cover transition-transform duration-300"})}),(0,n.jsxs)("div",{className:"p-6",children:[(0,n.jsx)("h3",{className:"mb-2 line-clamp-1 text-xl font-semibold text-balance",children:e.title}),(0,n.jsx)("p",{className:"text-muted-foreground line-clamp-3 text-sm",dangerouslySetInnerHTML:{__html:null!=(x=e.description)?x:""}}),h&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(d.$,{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,n.jsxs)(o.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,n.jsx)(c.L,{name:e.button.icon,className:"text-white"}),e.button.title]})})})]})]})})});return h?(0,n.jsx)("div",{children:p},t):(0,n.jsx)(o.N_,{href:e.url||"",target:e.target,children:p},t)}):(0,n.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."})})]})}},90255:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Features:()=>l});var r=a(95155),n=a(7254),i=a(2838),s=a(98731);function l(e){var t,a=e.section,l=e.className;return(0,r.jsx)("section",{id:a.id,className:(0,s.cn)("py-16 md:py-24",a.className,l),children:(0,r.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[(0,r.jsx)(i.i,{children:(0,r.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[(0,r.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:a.title}),(0,r.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:a.description})]})}),(0,r.jsx)(i.i,{delay:.2,children:(0,r.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=a.items)?void 0:t.map(function(e,t){return(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(n.L,{name:e.icon,size:24}),(0,r.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,r.jsx)("p",{className:"text-sm",children:e.description})]},t)})})})]})})}},94809:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ShowcasesFlow:()=>g});var r=a(80542),n=a(95155),i=a(12115),s=a(57297),l=a(26497),o=a(65229),c=a(90368),d=a(27937),u=a(90040),m=a(85098),x=a(7254),h=a(99772),p=a(98731);function g(e){var t,a,g,f,v=e.section,b=e.className,j=v.groups||[],w=(0,r._)((0,i.useState)(j.length>0?j[0].name:""),2),y=w[0],N=w[1],_=(0,r._)((0,i.useState)(null),2),k=_[0],C=_[1],I=(0,i.useMemo)(function(){return v.items?y&&j.length&&"all"!==y?v.items.filter(function(e){return e.group===y}):v.items:[]},[v.items,y,j.length]),z=(0,i.useCallback)(function(){C(function(e){var t;return null!==e?0===e?(null!=(t=I.length)?t:1)-1:e-1:null})},[I.length]),L=(0,i.useCallback)(function(){C(function(e){var t;return null!==e?e===(null!=(t=I.length)?t:1)-1?0:e+1:null})},[I.length]);return(0,i.useEffect)(function(){var e=function(e){null!==k&&("Escape"===e.key&&C(null),"ArrowLeft"===e.key&&z(),"ArrowRight"===e.key&&L())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[k,z,L]),(0,n.jsxs)("section",{id:v.id||v.name,className:(0,p.cn)("py-24 md:py-36",v.className,b),children:[(0,n.jsxs)(s.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:[v.sr_only_title&&(0,n.jsx)("h1",{className:"sr-only",children:v.sr_only_title}),(0,n.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:v.title}),(0,n.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 line-clamp-3 max-w-full md:max-w-5xl",children:v.description}),v.buttons&&v.buttons.length>0&&(0,n.jsx)("div",{className:"container mx-auto mt-8 mb-12 flex flex-wrap justify-center gap-4",children:v.buttons.map(function(e){return(0,n.jsx)(h.$,{variant:e.variant||"default",size:e.size||"sm",asChild:!0,children:(0,n.jsxs)(u.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,n.jsx)(x.L,{name:e.icon}),e.title]})},e.title)})})]}),j.length>0&&(0,n.jsx)(s.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:j.map(function(e,t){var a=y===e.name;return(0,n.jsx)(s.P.button,{onClick:function(){return N(e.name)},className:(0,p.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",a?"":"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:a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,n.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,n.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,n.jsx)("span",{children:e.title})},e.name)})}),I.length>0?(0,n.jsx)("div",{className:"container mx-auto columns-1 gap-4 space-y-4 sm:columns-2 lg:columns-3 xl:columns-4",children:I.map(function(e,t){var a,r,i,l;return(0,n.jsxs)(s.P.div,{className:"group relative cursor-zoom-in break-inside-avoid overflow-hidden rounded-xl",onClick:function(){return C(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,n.jsx)(m.LazyImage,{src:null!=(i=null==(a=e.image)?void 0:a.src)?i:"",alt:null!=(l=null==(r=e.image)?void 0:r.alt)?l:"",className:"h-auto w-full transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,n.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,n.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,n.jsx)("div",{className:"mt-3 translate-y-4 transition-transform delay-100 duration-300 group-hover:translate-y-0",onClick:function(e){return e.stopPropagation()},children:(0,n.jsx)(h.$,{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,n.jsxs)(u.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,n.jsx)(x.L,{name:e.button.icon}),e.button.title]})})})]})]},t)})}):(0,n.jsx)(s.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,n.jsx)(l.N,{children:null!==k&&I&&I.length>0&&(0,n.jsxs)(s.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:function(){return C(null)},children:[(0,n.jsx)("button",{className:"absolute top-4 right-4 z-50 text-white/70 transition-colors hover:text-white",onClick:function(){return C(null)},children:(0,n.jsx)(o.A,{className:"size-8"})}),(0,n.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:function(e){e.stopPropagation(),z()},children:(0,n.jsx)(c.A,{className:"size-8 md:size-12"})}),(0,n.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:function(e){e.stopPropagation(),L()},children:(0,n.jsx)(d.A,{className:"size-8 md:size-12"})}),(0,n.jsx)(s.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:function(e){return e.stopPropagation()},children:(0,n.jsxs)("div",{className:"relative max-h-full max-w-full overflow-hidden rounded-lg",children:[(0,n.jsx)(m.LazyImage,{src:null!=(g=null==(t=I[k].image)?void 0:t.src)?g:"",alt:null!=(f=null==(a=I[k].image)?void 0:a.alt)?f:"",className:"h-auto max-h-[90vh] w-auto max-w-full object-contain"}),(0,n.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,n.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:I[k].title}),I[k].description&&(0,n.jsx)("p",{className:"line-clamp-3 text-base text-white/90",children:I[k].description}),I[k].button&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(h.$,{asChild:!0,variant:I[k].button.variant||"default",size:I[k].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,n.jsxs)(u.N_,{href:I[k].button.url||"",target:I[k].button.target||"_self",children:[I[k].button.icon&&(0,n.jsx)(x.L,{name:I[k].button.icon,className:"text-white"}),I[k].button.title]})})})]})]})},k)]})})]})}}}]);
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.