PageSourceSearch

https://aiclothes.ai/_next/static/chunks/7957-c2925265ccb0f16c.js

js aiclothes.ai collected 2026-10-05 11:53:48 UTC 184,632 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7957],{3720:(e,t,s)=>{"use strict";function a(e){if("undefined"==typeof document)return"";let t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop()?.split(";").shift()||""}function r(e,t,s){if("undefined"==typeof document)return;let a="";if(s){let e=new Date;e.setTime(e.getTime()+24*s*36e5),a=`; expires=${e.toUTCString()}`}document.cookie=`${e}=${t}${a}; path=/`}s.d(t,{Ri:()=>a,TV:()=>r})},13248:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HeroCtaButton:()=>b,HeroScrollBackground:()=>p,HeroScrollButton:()=>f,HeroScrollContent:()=>g});var a=s(48561),r=s(62435),l=s(56565),i=s(56293),n=s(41980),o=s(94648),c=s(37943);function d(e){let t,s,l,n,o,d,m,x=(0,r.c)(19),{items:u,direction:h,duration:p,className:g,label:f,columnIndex:b}=e,v=void 0===b?0:b;x[0]!==u?(t=[...u,...u,...u],x[0]=u,x[1]=t):t=x[1];let j=t;x[2]!==g?(s=(0,c.cn)("relative h-full overflow-hidden",g),x[2]=g,x[3]=s):s=x[3];let w="up"===(void 0===h?"up":h)?"animate-scroll-up":"animate-scroll-down";x[4]!==w?(l=(0,c.cn)("flex flex-col gap-6",w),x[4]=w,x[5]=l):l=x[5];let y=`${void 0===p?20:p}s`;x[6]!==y?(n={"--scroll-duration":y},x[6]=y,x[7]=n):n=x[7];let N=n;return x[8]!==v||x[9]!==j||x[10]!==f?(o=j.map((e,t)=>{let s=v<2&&t<2;return(0,a.jsxs)("div",{className:"relative aspect-[3/4] w-full overflow-hidden rounded-2xl bg-white shadow-xl shadow-slate-200/50 transition-all duration-500 hover:shadow-2xl hover:hover:shadow-slate-300/60 group border border-slate-100",children:[(0,a.jsx)(i.default,{src:e.main,alt:`Result ${t}`,fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-105",sizes:"(max-width: 768px) 50vw, 25vw",loading:s?"eager":"lazy",priority:s,quality:60}),f&&(0,a.jsx)("div",{className:"absolute top-4 left-4 z-20 rounded-full bg-transparent px-3 py-1 text-[10px] font-semibold tracking-wide text-white drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)] uppercase",children:f})]},t)}),x[8]=v,x[9]=j,x[10]=f,x[11]=o):o=x[11],x[12]!==N||x[13]!==o||x[14]!==l?(d=(0,a.jsx)("div",{className:l,style:N,children:o}),x[12]=N,x[13]=o,x[14]=l,x[15]=d):d=x[15],x[16]!==d||x[17]!==s?(m=(0,a.jsx)("div",{className:s,children:d}),x[16]=d,x[17]=s,x[18]=m):m=x[18],m}let m=[{main:"/imgs/hero-scroll/col1/bandana-top-jeans.webp",sub:"/imgs/hero-scroll/col4/sage-green-yoga-set-flat.webp"},{main:"/imgs/hero-scroll/col1/mens-white-tee-jeans.webp",sub:"/imgs/hero-scroll/col4/burgundy-silk-lace-dress-flat.webp"},{main:"/imgs/hero-scroll/col1/white-tank-skinny-jeans.webp",sub:"/imgs/hero-scroll/col4/cream-tube-skirt-set-flat.webp"},{main:"/imgs/hero-scroll/col1/white-tube-loose-jeans.webp",sub:"/imgs/hero-scroll/col4/black-suit-set-flat.webp"},{main:"/imgs/hero-scroll/col1/white-tank-slim-jeans.webp",sub:"/imgs/hero-scroll/col4/white-shirt-black-pinafore-set-flat.webp"}],x=[{main:"/imgs/hero-scroll/col2/mens-black-suit-white-shirt.webp",sub:"/imgs/hero-scroll/col4/black-suit-set-flat.webp"},{main:"/imgs/hero-scroll/col2/sage-green-sport-set.webp",sub:"/imgs/hero-scroll/col4/sage-green-yoga-set-flat.webp"},{main:"/imgs/hero-scroll/col2/burgundy-silk-slip-dress.webp",sub:"/imgs/hero-scroll/col4/burgundy-silk-lace-dress-flat.webp"},{main:"/imgs/hero-scroll/col2/cream-tube-top-skirt-set.webp",sub:"/imgs/hero-scroll/col4/cream-tube-skirt-set-flat.webp"},{main:"/imgs/hero-scroll/col2/champagne-embellished-gown.webp",sub:"/imgs/hero-scroll/col4/white-shirt-black-pinafore-set-flat.webp"}],u=[{main:"/imgs/hero-scroll/col3/gray-silk-slip-dress.webp",sub:"/imgs/hero-scroll/col4/white-shirt-black-pinafore-set-flat.webp"},{main:"/imgs/hero-scroll/col3/white-shirt-black-skirt-catears.webp",sub:"/imgs/hero-scroll/col4/cream-tube-skirt-set-flat.webp"},{main:"/imgs/hero-scroll/col3/tan-corset-laceup-skirt.webp",sub:"/imgs/hero-scroll/col4/sage-green-yoga-set-flat.webp"},{main:"/imgs/hero-scroll/col3/winter-coat-plaid-jeans.webp",sub:"/imgs/hero-scroll/col4/black-suit-set-flat.webp"},{main:"/imgs/hero-scroll/col3/lace-up-corset-cargo-pants.webp",sub:"/imgs/hero-scroll/col4/burgundy-silk-lace-dress-flat.webp"}
1],h=[{main:"/imgs/hero-scroll/col4/white-shirt-black-pinafore-set-flat.webp",sub:"/imgs/hero-scroll/col3/tan-corset-laceup-skirt.webp"},{main:"/imgs/hero-scroll/col4/sage-green-yoga-set-flat.webp",sub:"/imgs/hero-scroll/col2/sage-green-sport-set.webp"},{main:"/imgs/hero-scroll/col4/black-suit-set-flat.webp",sub:"/imgs/hero-scroll/col2/mens-black-suit-white-shirt.webp"},{main:"/imgs/hero-scroll/col4/cream-tube-skirt-set-flat.webp",sub:"/imgs/hero-scroll/col3/cream-tube-top-skirt-set.webp"},{main:"/imgs/hero-scroll/col4/burgundy-silk-lace-dress-flat.webp",sub:"/imgs/hero-scroll/col2/burgundy-silk-slip-dress.webp"}];function p(){let e,t,s,l,i=(0,r.c)(4);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("div",{className:"-mt-12 hidden h-full md:block opacity-60 grayscale-[0.1]",children:(0,a.jsx)(d,{items:m,direction:"up",duration:15,label:"Original",columnIndex:0})}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"-mt-24 h-full opacity-60 grayscale-[0.1]",children:(0,a.jsx)(d,{items:x,direction:"down",duration:19,label:"Generated",columnIndex:1})}),i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)("div",{className:"-mt-12 h-full opacity-60 grayscale-[0.1]",children:(0,a.jsx)(d,{items:u,direction:"up",duration:17,label:"Generated",columnIndex:2})}),i[2]=s):s=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)("div",{className:"absolute inset-0 grid grid-cols-2 gap-6 px-4 opacity-100 md:grid-cols-4 md:gap-6 md:px-12 pointer-events-none",children:[e,t,s,(0,a.jsx)("div",{className:"-mt-24 hidden h-full md:block opacity-60 grayscale-[0.1]",children:(0,a.jsx)(d,{items:h,direction:"down",duration:21,label:"Original",columnIndex:3})}),(0,a.jsx)("div",{className:"absolute inset-x-0 top-0 z-10 h-40 bg-gradient-to-b from-slate-50 via-slate-50/90 to-transparent"}),(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-10 h-40 bg-gradient-to-t from-slate-50 via-slate-50/90 to-transparent"}),(0,a.jsx)("div",{className:"absolute inset-0 z-0 bg-radial-gradient from-slate-50/80 via-transparent to-transparent"})]}),i[3]=l):l=i[3],l}function g(e){let t,s=(0,r.c)(2),{children:l}=e;return s[0]!==l?(t=(0,a.jsx)("div",{className:"text-center w-full animate-fade-in",children:l}),s[0]=l,s[1]=t):t=s[1],t}function f(e){let t,s,i,c,d,m,x=(0,r.c)(9),{sectionId:u}=e,[h,p]=(0,l.useState)("");return x[0]!==u?(t=()=>{let e=document.querySelectorAll("section");for(let t=0;t<e.length;t++)if(e[t].id===u){t+1<e.length&&p(e[t+1].id);break}},s=[u],x[0]=u,x[1]=t,x[2]=s):(t=x[1],s=x[2]),(0,l.useEffect)(t,s),x[3]!==h?(i=()=>(function(e){let t=document.getElementById(e);if(t){let e=t.getBoundingClientRect().top+window.scrollY-20;window.scrollTo({top:e,behavior:"smooth"})}})(h||"logos"),x[3]=h,x[4]=i):i=x[4],x[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(n.A,{className:"h-8 w-8"}),d=(0,a.jsx)("span",{className:"sr-only",children:"Scroll down"}),x[5]=c,x[6]=d):(c=x[5],d=x[6]),x[7]!==i?(m=(0,a.jsx)("div",{className:"mt-12 flex justify-center opacity-50 hover:opacity-100 transition-opacity",children:(0,a.jsxs)(o.$,{variant:"ghost",size:"icon",className:"animate-bounce rounded-full text-slate-400 hover:text-slate-900 hover:bg-transparent",onClick:i,children:[c,d]})}),x[7]=i,x[8]=m):m=x[8],m}function b(e){let t,s,l=(0,r.c)(5),{children:i,targetId:n}=e;return l[0]!==n?(t=()=>(function(e){let t=document.getElementById(e);if(t){let e=t.getBoundingClientRect().top+window.scrollY-20;window.scrollTo({top:e,behavior:"smooth"})}})(n),l[0]=n,l[1]=t):t=l[1],l[2]!==i||l[3]!==t?(s=(0,a.jsx)(o.$,{size:"lg",className:"h-12 min-w-[200px] rounded-full text-base bg-[rgba(255,251,235,0.8)] backdrop-blur-sm text-amber-600 shadow-lg shadow-amber-500/20 ring-1 ring-amber-500/20 hover:bg-[rgba(255,251,235,0.95)] hover:scale-105 transition-all duration-300 border border-transparent cursor-pointer",onClick:t,children:i}),l[2]=i,l[3]=t,l[4]=s):s=l[4],s}},13695:()=>{},16738:(e,t,s)=>{"use strict";s.r(t),s.d(t,{TryOnModes:()=>g});var a=s(48561),r=s(62435),l=s(92017),i=s(46068),n=s(97529),o=s(15299),c=s(67726),d=s(81139),m=s(18050),x=s(37943);let u=[{title:"Model + Garment Image",description:"Upload person and clothing photos. AI replaces the outfit automatically - perfect for e-commerce."},{title:"Model + Text Description",description:"Upload a person photo and describe your ideal outfit. AI creates from imagination - ideal for designers."},{title:"Model + Image + Text",description:"Combine garment image with text requirements. Fine-tune every detail - best for professionals."}];function h(e){let t,s,o=(0,r.c)(4),{modeIndex:c}=e;if(0===c){let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex -sp
1ace-x-3 items-end",children:[(0,a.jsx)(l.A,{className:"w-8 h-8 text-slate-600/80 group-hover:text-amber-700/80 transition-colors"}),(0,a.jsx)(i.A,{className:"w-9 h-9 text-amber-500 drop-shadow-md z-10"})]}),o[0]=e):e=o[0],e}if(1===c){let e;return o[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex -space-x-3 items-end",children:[(0,a.jsx)(l.A,{className:"w-8 h-8 text-slate-600/80 group-hover:text-amber-700/80 transition-colors"}),(0,a.jsx)(n.A,{className:"w-9 h-9 text-amber-500 drop-shadow-md z-10"})]}),o[1]=e):e=o[1],e}return o[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(l.A,{className:"w-7 h-7 text-slate-600/80 group-hover:text-amber-700/80 transition-colors"}),o[2]=t):t=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:"flex -space-x-3 items-end",children:[t,(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(i.A,{className:"w-9 h-9 text-amber-500 drop-shadow-md z-10"}),(0,a.jsx)(n.A,{className:"w-4 h-4 text-amber-700 absolute -bottom-1 -right-1 z-20 bg-amber-100 rounded-full p-0.5"})]})]}),o[3]=s):s=o[3],s}function p(e){let t,s,l,n,m,x=(0,r.c)(11),{modeIndex:u}=e;if(0===u){let e,t,s;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex items-center gap-1.5 opacity-60",children:[(0,a.jsx)(o.A,{className:"w-3.5 h-3.5"}),(0,a.jsx)("span",{className:"text-xs",children:"+"}),(0,a.jsx)(i.A,{className:"w-3.5 h-3.5"})]}),t=(0,a.jsx)(c.A,{className:"w-3 h-3 text-slate-300"}),x[0]=e,x[1]=t):(e=x[0],t=x[1]),x[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:"mt-auto inline-flex items-center justify-center gap-2.5 px-3 py-2 bg-slate-50/50 rounded-full border border-slate-200/60 group-hover:border-amber-200/60 group-hover:bg-amber-50/20 transition-all",children:[e,t,(0,a.jsx)("div",{className:"flex items-center gap-1 text-amber-600 font-medium",children:(0,a.jsx)(d.A,{className:"w-3.5 h-3.5"})})]}),x[2]=s):s=x[2],s}if(1===u){let e,t,s;return x[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex items-center gap-1.5 opacity-60",children:[(0,a.jsx)(o.A,{className:"w-3.5 h-3.5"}),(0,a.jsx)("span",{className:"text-xs",children:"+"}),(0,a.jsx)("span",{className:"text-[10px] font-serif bg-white px-1 rounded border border-slate-200",children:"Tx"})]}),t=(0,a.jsx)(c.A,{className:"w-3 h-3 text-slate-300"}),x[3]=e,x[4]=t):(e=x[3],t=x[4]),x[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:"mt-auto inline-flex items-center justify-center gap-2.5 px-3 py-2 bg-slate-50/50 rounded-full border border-slate-200/60 group-hover:border-amber-200/60 group-hover:bg-amber-50/20 transition-all",children:[e,t,(0,a.jsx)("div",{className:"flex items-center gap-1 text-amber-600 font-medium",children:(0,a.jsx)(d.A,{className:"w-3.5 h-3.5"})})]}),x[5]=s):s=x[5],s}return x[6]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(o.A,{className:"w-3.5 h-3.5"}),s=(0,a.jsx)("span",{className:"text-xs",children:"+"}),x[6]=t,x[7]=s):(t=x[6],s=x[7]),x[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)("div",{className:"flex items-center gap-1.5 opacity-60",children:[t,s,(0,a.jsxs)("div",{className:"flex gap-0.5",children:[(0,a.jsx)(i.A,{className:"w-3 h-3"}),(0,a.jsx)("span",{className:"text-[9px] font-serif bg-white px-0.5 rounded border border-slate-200",children:"Txt"})]})]}),n=(0,a.jsx)(c.A,{className:"w-3 h-3 text-slate-300"}),x[8]=l,x[9]=n):(l=x[8],n=x[9]),x[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsxs)("div",{className:"mt-auto inline-flex items-center justify-center gap-2.5 px-3 py-2 bg-slate-50/50 rounded-full border border-slate-200/60 group-hover:border-amber-200/60 group-hover:bg-amber-50/20 transition-all",children:[l,n,(0,a.jsx)("div",{className:"flex items-center gap-1 text-amber-600 font-medium",children:(0,a.jsx)(d.A,{className:"w-3.5 h-3.5"})})]}),x[10]=m):m=x[10],m}function g(e){let t,s,l,i,n,o,c,d,h,p,g,b,v,j,w=(0,r.c)(47),{section:y,className:N}=e,_=y.items?.length?y.items:u;if(w[0]!==N||w[1]!==y.className||w[2]!==y.description||w[3]!==y.id||w[4]!==y.title||w[5]!==_){let e,r,u,p,g,b,v=_.slice(0,3);d=y.id,w[15]!==N||w[16]!==y.className?(h=(0,x.cn)("py-16 md:py-24 border-t-2 border-b-2 border-[#FFD36A] -mt-[50px]",y.className,N),w[15]=N,w[16]=y.className,w[17]=h):h=w[17],c="m-4 rounded-[2rem]",n="@container relative max-w-[1440px] mx-auto px-4",w[18]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("span",{className:"absolute inset-0 rounded-full bg-gradient-to-r from-amber-400/20 to-yellow-400/20 blur-sm"}),w[18]=e):e=w[18],w[19]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)("svg",{className:"w-4 h-4 relative",fill:"
1currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M12 2L13.09 8.26L19 9.27L14.55 13.97L15.91 20.02L12 17.27L8.09 20.02L9.45 13.97L5 9.27L10.91 8.26L12 2Z"})}),u=(0,a.jsx)("span",{className:"relative",children:"Simple Step-by-Step Guide"}),w[19]=r,w[20]=u):(r=w[19],u=w[20]),w[21]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)("div",{className:"inline-flex items-center justify-center mb-4",children:(0,a.jsxs)("span",{className:"relative inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-amber-600 bg-gradient-to-r from-amber-50 to-amber-100 rounded-full border border-amber-200/60 shadow-[0_0_15px_rgba(251,191,36,0.3)] animate-pulse",children:[e,r,u,(0,a.jsx)("svg",{className:"w-4 h-4 relative",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M12 2L13.09 8.26L19 9.27L14.55 13.97L15.91 20.02L12 17.27L8.09 20.02L9.45 13.97L5 9.27L10.91 8.26L12 2Z"})})]})}),w[21]=p):p=w[21],w[22]!==y.title?(g=(0,a.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:y.title}),w[22]=y.title,w[23]=g):g=w[23];let j=y.description||"";w[24]!==j?(b=(0,a.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",dangerouslySetInnerHTML:{__html:j}}),w[24]=j,w[25]=b):b=w[25],w[26]!==g||w[27]!==b?(o=(0,a.jsx)(m.i,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-5xl text-center",children:[p,g,b]})}),w[26]=g,w[27]=b,w[28]=o):o=w[28],t=m.i,i=.2,s="mt-16 grid grid-cols-1 gap-12 md:grid-cols-3 md:gap-16",l=v.map(f),w[0]=N,w[1]=y.className,w[2]=y.description,w[3]=y.id,w[4]=y.title,w[5]=_,w[6]=t,w[7]=s,w[8]=l,w[9]=i,w[10]=n,w[11]=o,w[12]=c,w[13]=d,w[14]=h}else t=w[6],s=w[7],l=w[8],i=w[9],n=w[10],o=w[11],c=w[12],d=w[13],h=w[14];return w[29]!==s||w[30]!==l?(p=(0,a.jsx)("div",{className:s,children:l}),w[29]=s,w[30]=l,w[31]=p):p=w[31],w[32]!==t||w[33]!==p||w[34]!==i?(g=(0,a.jsx)(t,{delay:i,children:p}),w[32]=t,w[33]=p,w[34]=i,w[35]=g):g=w[35],w[36]!==g||w[37]!==n||w[38]!==o?(b=(0,a.jsxs)("div",{className:n,children:[o,g]}),w[36]=g,w[37]=n,w[38]=o,w[39]=b):b=w[39],w[40]!==b||w[41]!==c?(v=(0,a.jsx)("div",{className:c,children:b}),w[40]=b,w[41]=c,w[42]=v):v=w[42],w[43]!==v||w[44]!==d||w[45]!==h?(j=(0,a.jsx)("section",{id:d,className:h,children:v}),w[43]=v,w[44]=d,w[45]=h,w[46]=j):j=w[46],j}function f(e,t){return(0,a.jsxs)("div",{className:(0,x.cn)("group relative bg-white rounded-3xl p-8 pt-10 border transition-all duration-300 text-center flex flex-col items-center overflow-hidden min-h-[320px]","border-slate-100 hover:border-amber-300 hover:shadow-lg hover:-translate-y-1"),children:[(0,a.jsx)("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mb-6 transition-all duration-300 transform group-hover:scale-110 bg-slate-50 group-hover:bg-amber-50",children:(0,a.jsx)(h,{modeIndex:t})}),(0,a.jsx)("h3",{className:"text-xl font-bold text-slate-900 mb-4 group-hover:text-amber-600 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-sm text-slate-500 leading-relaxed mb-8 max-w-full mx-auto px-2",children:e.description}),(0,a.jsx)(p,{modeIndex:t})]},t)}},18050:(e,t,s)=>{"use strict";s.d(t,{i:()=>i});var a=s(48561),r=s(62435),l=s(56565);function i(e){let t,s,i,n,o,c=(0,r.c)(13),{children:d,className:m,delay:x,direction:u,stagger:h}=e,p=void 0===m?"":m,g=void 0===x?0:x,f=void 0===u?"up":u,b=(0,l.useRef)(null),[v,j]=(0,l.useState)(!1);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=b.current;if(!e)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void j(!0);let t=new IntersectionObserver(s=>{let[a]=s;a.isIntersecting&&(j(!0),t.unobserve(e))},{rootMargin:"-50px"});return t.observe(e),()=>t.disconnect()},s=[],c[0]=t,c[1]=s):(t=c[0],s=c[1]),(0,l.useEffect)(t,s),c[2]!==f?(i=()=>{switch(f){case"up":default:return"translateY(30px)";case"down":return"translateY(-30px)";case"left":return"translateX(30px)";case"right":return"translateX(-30px)"}},c[2]=f,c[3]=i):i=c[3];let w=i,y=+!!v,N=v?"none":w(),_=v?"none":"blur(4px)",k=`opacity 0.6s cubic-bezier(0.22,1,0.36,1) ${g}s, transform 0.6s cubic-bezier(0.22,1,0.36,1) ${g}s, filter 0.6s cubic-bezier(0.22,1,0.36,1) ${g}s`;return c[4]!==_||c[5]!==k||c[6]!==y||c[7]!==N?(n={opacity:y,transform:N,filter:_,transition:k},c[4]=_,c[5]=k,c[6]=y,c[7]=N,c[8]=n):n=c[8],c[9]!==d||c[10]!==p||c[11]!==n?(o=(0,a.jsx)("div",{ref:b,className:p,style:n,children:d}),c[9]=d,c[10]=p,c[11]=n,c[12]=o):o=c[12],o}},20704:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesList:()=>d});var a=s(48561),r=s(62435),l=s(83749),i=s(29237),n=s(94648),o=s(18050),c=s(37943);function d(e){let t,s,l,n,d,u,h,p,g,f,b,v=(0,r.c)(29),{section:j,className:w}=e;v[0]!==w||v[1]!==j.className?(t=(0,c.cn)("overflow-x-hidden py-16 md:py-24",j.className,w),v[0]=w,v[1]=j.className,v[2]=t):t=v[2];let y=j.image?.src??"",N=j.image?.alt??"";return v[3]!==y||v[4]!==N?(s=(0,a.jsx)(o.i,{direction:"left",children:(0,a.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,a.jsx)(i.oD,{src:y,alt:N,className:"h-auto w-full rounded-lg object-cover"})})}),v[3]=y,v[4]=N,v[5]=s):s=v[5],v[6]!==j.title?(l=(0,a.jsx)(o.i,{delay:.1,children:(0,a.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:j.title})}),v[6]=j.title,v[7]=l):l=v[7],v[8]!==j.description?(n=(0,a.jsx)(o.i,{delay:.2,children:(0,a.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:j.description})}),v[8]=j.description,v[9]=n):n=v[9],v[10]!==j.buttons?(d=j.buttons&&j.buttons.length>0&&(0,a.jsx)(o.i,{delay:.3,children:(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:j.buttons?.map(x)})}),v[10]=j.buttons,v[11]=d):d=v[11],v[12]!==l||v[13]!==n||v[14]!==d?(u=(0,a.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[l,n,d]}),v[12]=l,v[13]=n,v[14]=d,v[15]=u):u=v[15],v[16]!==s||v[17]!==u?(h=(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[s,u]}),v[16]=s,v[17]=u,v[18]=h):h=v[18],v[19]!==j.items?(p=j.items?.map(m),v[19]=j.items,v[20]=p):p=v[20],v[21]!==p?(g=(0,a.jsx)(o.i,{delay:.1,children:(0,a.jsx)("div",{className:"relative grid min-w-0 grid-cols-1 gap-x-3 gap-y-6 border-t pt-12 break-words sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:p})}),v[21]=p,v[22]=g):g=v[22],v[23]!==g||v[24]!==h?(f=(0,a.jsxs)("div",{className:"container overflow-x-hidden",children:[h,g]}),v[23]=g,v[24]=h,v[25]=f):f=v[25],v[26]!==t||v[27]!==f?(b=(0,a.jsx)("section",{className:t,children:f}),v[26]=t,v[27]=f,v[28]=b):b=v[28],b}function m(e,t){return(0,a.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,a.jsx)(i.LK,{name:e.icon,size:16}),(0,a.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,a.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:e.description??""})]},t)}function x(e,t){return(0,a.jsx)(n.$,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,a.jsxs)(l.N_,{href:e.url??"",target:e.target??"_self",className:(0,
1c.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-9 px-4 py-2","bg-background ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200"),children:[e.icon&&(0,a.jsx)(i.LK,{name:e.icon,size:24}),e.title]})},t)}},29237:(e,t,s)=>{"use strict";s.d(t,{FQ:()=>o,GA:()=>x.ImageUploader,oD:()=>m.LazyImage,YC:()=>c.LocaleSelector,TS:()=>u.SignUser,LK:()=>a.L,GC:()=>d.ThemeToggler});var a=s(41114);s(58728);var r=s(48561),l=s(62435),i=s(56293),n=s(83749);function o(e){let t,s,a,o=(0,l.c)(11),{brand:c}=e,d=c.url||"",m=c.target||"_self",x=`inline-flex items-center space-x-3 ${c.className}`;return o[0]!==c.logo||o[1]!==c.title?(t=c.logo&&(0,r.jsx)(i.default,{src:c.logo.src,alt:c.title?"":c.logo.alt||"",width:c.logo.width||80,height:c.logo.height||80,className:"h-8 w-auto rounded-lg",unoptimized:c.logo.src.startsWith("http")}),o[0]=c.logo,o[1]=c.title,o[2]=t):t=o[2],o[3]!==c.title?(s=c.title&&(0,r.jsx)("span",{className:"text-lg font-medium",children:c.title}),o[3]=c.title,o[4]=s):s=o[4],o[5]!==d||o[6]!==m||o[7]!==x||o[8]!==t||o[9]!==s?(a=(0,r.jsxs)(n.N_,{href:d,target:m,className:x,children:[t,s]}),o[5]=d,o[6]=m,o[7]=x,o[8]=t,o[9]=s,o[10]=a):a=o[10],a}s(92522);var c=s(90695);s(21757);var d=s(57402);s(12236),s(45061),s(94648);var m=s(37191),x=s(45879),u=s(47453);s(20625),s(95240),s(51778)},29310:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ShowcasesComparison:()=>m});var a=s(48561),r=s(62435),l=s(56565),i=s(56293),n=s(61802),o=s(18050),c=s(37943);function d(e){let t,s,d,m,x,u,h,p,g,f,b,v,j,w,y,N,_,k=(0,r.c)(44),{item:C,index:S}=e,[A,z]=(0,l.useState)(!1),I=.1*S;k[0]!==A?(t=()=>z(!A),k[0]=A,k[1]=t):t=k[1];let L=C.beforeImage,R=`${C.title} - Before`,F=A&&"opacity-0";k[2]!==F?(s=(0,c.cn)("object-cover transition-opacity duration-300","md:group-hover:opacity-0",F),k[2]=F,k[3]=s):s=k[3],k[4]!==C.beforeImage||k[5]!==R||k[6]!==s?(d=(0,a.jsx)(i.default,{src:L,alt:R,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:s}),k[4]=C.beforeImage,k[5]=R,k[6]=s,k[7]=d):d=k[7];let T=C.afterImage,P=`${C.title} - After`,$=A&&"opacity-100";k[8]!==$?(m=(0,c.cn)("object-cover opacity-0 transition-opacity duration-300","md:group-hover:opacity-100",$),k[8]=$,k[9]=m):m=k[9],k[10]!==C.afterImage||k[11]!==m||k[12]!==P?(x=(0,a.jsx)(i.default,{src:T,alt:P,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:m}),k[10]=C.afterImage,k[11]=m,k[12]=P,k[13]=x):x=k[13];let D=A&&"opacity-0";k[14]!==D?(u=(0,c.cn)("absolute left-3 top-3 rounded-full bg-red-500/80 px-2.5 py-1 text-xs font-medium text-white transition-opacity duration-300","md:group-hover:opacity-0",D),k[14]=D,k[15]=u):u=k[15],k[16]!==u?(h=(0,a.jsx)("div",{className:u,children:"Before"}),k[16]=u,k[17]=h):h=k[17];let M=A&&"opacity-100";return k[18]!==M?(p=(0,c.cn)("absolute right-3 top-3 rounded-full bg-green-500/80 px-2.5 py-1 text-xs font-medium text-white opacity-0 transition-opacity duration-300","md:group-hover:opacity-100",M),k[18]=M,k[19]=p):p=k[19],k[20]!==p?(g=(0,a.jsx)("div",{className:p,children:"After"}),k[20]=p,k[21]=g):g=k[21],k[22]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/60 to-transparent p-3 text-center text-xs text-white md:hidden",children:"Tap to toggle"}),k[22]=f):f=k[22],k[23]!==x||k[24]!==h||k[25]!==g||k[26]!==d?(b=(0,a.jsxs)("div",{className:"relative aspect-[3/4] overflow-hidden",children:[d,x,h,g,f]}),k[23]=x,k[24]=h,k[25]=g,k[26]=d,k[27]=b):b=k[27],k[28]!==C.title?(v=(0,a.jsx)("h3",{className:"mb-1 font-semibold",children:C.title}),k[28]=C.title,k[29]=v):v=k[29],k[30]!==C.description?(j=(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:C.description}),k[30]=C.description,k[31]=j):j=k[31],k[32]!==v||k[33]!==j?(w=(0,a.jsxs)("div",{className:"p-4",children:[v,j]}),k[32]=v,k[33]=j,k[34]=w):w=k[34],k[35]!==b||k[36]!==w?(y=(0,a.jsxs)(n.Wu,{className:"p-0",children:[b,w]}),k[35]=b,k[36]=w,k[37]=y):y=k[37],k[38]!==t||k[39]!==y?(N=(0,a.jsx)(n.Zp,{className:"group cursor-pointer overflow-hidden p-0 transition-all hover:shadow-lg dark:hover:shadow-
1primary/10",onClick:t,children:y}),k[38]=t,k[39]=y,k[40]=N):N=k[40],k[41]!==I||k[42]!==N?(_=(0,a.jsx)(o.i,{delay:I,children:N}),k[41]=I,k[42]=N,k[43]=_):_=k[43],_}function m(e){let t,s,l,i,n,d,m,u,h,p=(0,r.c)(24),{section:g,className:f}=e;p[0]!==g.items?(t=g.items||[],p[0]=g.items,p[1]=t):t=p[1];let b=t,v=g.id||g.name;return p[2]!==f||p[3]!==g.className?(s=(0,c.cn)("py-24 md:py-36",g.className,f),p[2]=f,p[3]=g.className,p[4]=s):s=p[4],p[5]!==g.sr_only_title?(l=g.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:g.sr_only_title}),p[5]=g.sr_only_title,p[6]=l):l=p[6],p[7]!==g.title?(i=(0,a.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:g.title}),p[7]=g.title,p[8]=i):i=p[8],p[9]!==g.description?(n=(0,a.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:g.description}),p[9]=g.description,p[10]=n):n=p[10],p[11]!==l||p[12]!==i||p[13]!==n?(d=(0,a.jsxs)(o.i,{className:"container mb-12 text-center",children:[l,i,n]}),p[11]=l,p[12]=i,p[13]=n,p[14]=d):d=p[14],p[15]!==b?(m=b.length>0?b.map(x):(0,a.jsx)("div",{className:"text-muted-foreground col-span-full text-center",children:"No comparison items found."}),p[15]=b,p[16]=m):m=p[16],p[17]!==m?(u=(0,a.jsx)("div",{className:"container grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4",children:m}),p[17]=m,p[18]=u):u=p[18],p[19]!==v||p[20]!==s||p[21]!==d||p[22]!==u?(h=(0,a.jsxs)("section",{id:v,className:s,children:[d,u]}),p[19]=v,p[20]=s,p[21]=d,p[22]=u,p[23]=h):h=p[23],h}function x(e,t){return(0,a.jsx)(d,{item:e,index:t},t)}},31106:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Subscribe:()=>x});var a=s(48561),r=s(56565),l=s(98567),i=s(7558),n=s(25681),o=s(95237),c=s(94648),d=s(18050),m=s(37943);function x({section:e,className:t}){let[s,x]=(0,r.useState)(""),[u,h]=(0,r.useState)(!1),p=async()=>{if(s&&e.submit?.action)try{h(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:s})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:a,message:r,data:l}=await t.json();if(0!==a)throw Error(r);h(!1),r&&o.oR.success(r)}catch(e){h(!1),o.oR.error(e.message||"subscribe failed")}};return(0,a.jsx)("section",{id:e.id,className:(0,m.cn)("py-16 md:py-24",e.className,t),children:(0,a.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(d.i,{children:(0,a.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:e.title})}),(0,a.jsx)(d.i,{delay:.15,children:(0,a.jsx)("p",{className:"mt-4",children:e.description})}),(0,a.jsx)(d.i,{delay:.3,children:(0,a.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,a.jsxs)("div",{className:"bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-[calc(var(--radius)+0.75rem)] border pr-3 shadow shadow-zinc-950/5 has-[input:focus]:ring-2",children:[(0,a.jsx)(l.A,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,a.jsx)("input",{placeholder:e.submit?.input?.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":!s,"aria-describedby":"email-error",value:s,onChange:e=>x(e.target.value)}),e.submit?.button&&(0,a.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,a.jsxs)(c.$,{"aria-label":"submit",className:"rounded-(--radius)",onClick:p,disabled:u,type:"submit",children:[u?(0,a.jsx)(i.A,{className:"animate-spin"}):(0,a.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}),(0,a.jsx)(n.A,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}},34601:(e,t,s)=>{"use strict";s.d(t,{E:()=>c});var a=s(48561),r=s(62435);s(56565);var l=s(5864),i=s(62255),n=s(37943);let o=(0,i.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function c(e){let t,s,i,c,d,m,x=(0,r.c)(12);x[0]!==e?({className:t,variant:c,asChild:i,...s}=e,x[0]=e,x[1]=t,x[2]=s,x[3]=i,x[4]=c):(t=x[1],s=x[2],i=x[3],c=x[4]);let u=void 0!==i&&i?l.DX:"span";
1return x[5]!==t||x[6]!==c?(d=(0,n.cn)(o({variant:c}),t),x[5]=t,x[6]=c,x[7]=d):d=x[7],x[8]!==u||x[9]!==s||x[10]!==d?(m=(0,a.jsx)(u,{"data-slot":"badge",className:d,...s}),x[8]=u,x[9]=s,x[10]=d,x[11]=m):m=x[11],m}},35660:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesMedia:()=>o});var a=s(48561),r=s(62435),l=s(19715),i=s(29237),n=s(37943);function o(e){let t,s,o,d,m,x,u,h,p,g,f,b,v,j,w,y,N,_,k,C,S,A,z,I,L,R=(0,r.c)(44),{section:F}=e,T="right"===(F.image_position||"left"),P=F.id||F.name;R[0]!==F.className?(t=(0,n.cn)("py-16 md:py-24",F.className),R[0]=F.className,R[1]=t):t=R[1];let $=T&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1";R[2]!==$?(s=(0,n.cn)("grid items-center gap-6 sm:grid-cols-2 md:gap-12 lg:gap-24",$),R[2]=$,R[3]=s):s=R[3],R[4]===Symbol.for("react.memo_cache_sentinel")?(o={opacity:0,y:30},d={opacity:1,y:0},m={once:!0,margin:"-100px"},R[4]=o,R[5]=d,R[6]=m):(o=R[4],d=R[5],m=R[6]),R[7]===Symbol.for("react.memo_cache_sentinel")?(x=[.22,1,.36,1],R[7]=x):x=R[7],R[8]===Symbol.for("react.memo_cache_sentinel")?(u={duration:.6,ease:x},R[8]=u):u=R[8],R[9]===Symbol.for("react.memo_cache_sentinel")?(h={opacity:0,scale:.95},p={opacity:1,scale:1},g={once:!0},R[9]=h,R[10]=p,R[11]=g):(h=R[9],p=R[10],g=R[11]),R[12]===Symbol.for("react.memo_cache_sentinel")?(f=[.22,1,.36,1],R[12]=f):f=R[12],R[13]===Symbol.for("react.memo_cache_sentinel")?(b={duration:.5,delay:.2,ease:f},R[13]=b):b=R[13];let D=F.image?.src??"",M=F.image?.alt??"";R[14]!==D||R[15]!==M?(v=(0,a.jsx)(l.P.div,{initial:h,whileInView:p,viewport:g,transition:b,children:(0,a.jsx)(i.oD,{src:D,className:"rounded-2xl",alt:M})}),R[14]=D,R[15]=M,R[16]=v):v=R[16];let E=T?-20:20;return R[17]!==E?(j={opacity:0,x:E},R[17]=E,R[18]=j):j=R[18],R[19]===Symbol.for("react.memo_cache_sentinel")?(w={opacity:1,x:0},y={once:!0},R[19]=w,R[20]=y):(w=R[19],y=R[20]),R[21]===Symbol.for("react.memo_cache_sentinel")?(N=[.22,1,.36,1],R[21]=N):N=R[21],R[22]===Symbol.for("react.memo_cache_sentinel")?(_={duration:.5,delay:.3,ease:N},R[22]=_):_=R[22],R[23]!==F.title?(k=(0,a.jsx)("h2",{className:"text-xl font-medium md:text-lg lg:text-lg",children:F.title}),R[23]=F.title,R[24]=k):k=R[24],R[25]!==F.description?(C=(0,a.jsx)("p",{className:"text-muted-foreground text-md",children:F.description}),R[25]=F.description,R[26]=C):C=R[26],R[27]!==F.items?(S=F.items?.map(c),R[27]=F.items,R[28]=S):S=R[28],R[29]!==S?(A=(0,a.jsx)("div",{className:"mt-8 flex flex-wrap gap-4",children:S}),R[29]=S,R[30]=A):A=R[30],R[31]!==j||R[32]!==k||R[33]!==C||R[34]!==A?(z=(0,a.jsxs)(l.P.div,{className:"relative space-y-4",initial:j,whileInView:w,viewport:y,transition:_,children:[k,C,A]}),R[31]=j,R[32]=k,R[33]=C,R[34]=A,R[35]=z):z=R[35],R[36]!==v||R[37]!==z||R[38]!==s?(I=(0,a.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:(0,a.jsxs)(l.P.div,{className:s,initial:o,whileInView:d,viewport:m,transition:u,children:[v,z]})}),R[36]=v,R[37]=z,R[38]=s,R[39]=I):I=R[39],R[40]!==P||R[41]!==t||R[42]!==I?(L=(0,a.jsx)("section",{id:P,className:t,children:I}),R[40]=P,R[41]=t,R[42]=I,R[43]=L):L=R[43],L}function c(e){return(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"mb-2 flex items-center gap-2 text-sm",children:[(0,a.jsx)(i.LK,{name:e.icon,size:16}),e.title]}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]},e.title)}},42074:(e,t,s)=>{"use strict";s.r(t),s.d(t,{AboutHero:()=>n});var a=s(48561),r=s(62435),l=s(18050),i=s(37943);function n(e){let t,s,n,o,c,d,m=(0,r.c)(17),{section:x,className:u}=e,h=x.id;return m[0]!==u||m[1]!==x.className?(t=(0,i.cn)("pt-24 pb-12 md:pt-32 md:pb-16",x.className,u),m[0]=u,m[1]=x.className,m[2]=t):t=m[2],m[3]!==x.title?(s=(0,a.jsx)("h1",{className:"text-4xl font-bold tracking-tight text-[rgb(220,180,80)] md:text-5xl lg:text-6xl",children:x.title}),m[3]=x.title,m[4]=s):s=m[4],m[5]!==x.subtitle?(n=x.subtitle&&(0,a.jsx)("p",{className:"text-xl md:text-2xl text-muted-foreground font-medium",children:x.subtitle}),m[5]=x.subtitle,m[6]=n):n=m[6],m[7]!==x.description?(o=x.description&&(0,a.jsx)("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed max-w-3xl mx-auto",children:x.description}),m[7]=x.description,m[8]=o):o=m[8],m[9]!==s||m[10]!==n||m[11]!==o?(c=(0,a.jsx)("div",{className:"container",children:(0,a.jsx)(l.i,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl text-center space-y-6 mt-[70px]",children:[s,n,o]})})}),m[9]=s,m[10]=n,m[11]=o,m[12]=c):c=m[12],m[13]!==x.id||m[14]!==t||m[15]!==c?(d=(0,a.jsx)("section",{id:h,className:t,children:c}),m[13]=x.id,m[14]=t,m[15]=c,m[16]=d):d=m[16],d}},42253:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Header:()=>_});var a=s(48561),r=s(62435),l=s(56565),i=s(94371),n=s(28684),o=s(83749),c=s(29237),d=s(55346),m=s(98483),x=s(62255),u=s(14518),h=s(37943);let p=l.forwardRef((e,t)=>
1{let s,l,i,n,o,c,d,x=(0,r.c)(16);x[0]!==e?({className:l,children:s,viewport:n,...i}=e,x[0]=e,x[1]=s,x[2]=l,x[3]=i,x[4]=n):(s=x[1],l=x[2],i=x[3],n=x[4]);let u=void 0===n||n;return x[5]!==l?(o=(0,h.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",l),x[5]=l,x[6]=o):o=x[6],x[7]!==u?(c=u&&(0,a.jsx)(w,{}),x[7]=u,x[8]=c):c=x[8],x[9]!==s||x[10]!==i||x[11]!==t||x[12]!==o||x[13]!==c||x[14]!==u?(d=(0,a.jsxs)(m.bL,{ref:t,"data-slot":"navigation-menu","data-viewport":u,role:"navigation",className:o,...i,children:[s,c]}),x[9]=s,x[10]=i,x[11]=t,x[12]=o,x[13]=c,x[14]=u,x[15]=d):d=x[15],d});function g(e){let t,s,l,i,n=(0,r.c)(8);return n[0]!==e?({className:t,...s}=e,n[0]=e,n[1]=t,n[2]=s):(t=n[1],s=n[2]),n[3]!==t?(l=(0,h.cn)("group flex flex-1 list-none items-center justify-center gap-1",t),n[3]=t,n[4]=l):l=n[4],n[5]!==s||n[6]!==l?(i=(0,a.jsx)(m.B8,{"data-slot":"navigation-menu-list",className:l,...s}),n[5]=s,n[6]=l,n[7]=i):i=n[7],i}function f(e){let t,s,l,i,n=(0,r.c)(8);return n[0]!==e?({className:t,...s}=e,n[0]=e,n[1]=t,n[2]=s):(t=n[1],s=n[2]),n[3]!==t?(l=(0,h.cn)("relative",t),n[3]=t,n[4]=l):l=n[4],n[5]!==s||n[6]!==l?(i=(0,a.jsx)(m.q7,{"data-slot":"navigation-menu-item",className:l,...s}),n[5]=s,n[6]=l,n[7]=i):i=n[7],i}p.displayName=m.bL.displayName;let b=(0,x.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 v(e){let t,s,l,i,n,o,c=(0,r.c)(11);return c[0]!==e?({className:s,children:t,...l}=e,c[0]=e,c[1]=t,c[2]=s,c[3]=l):(t=c[1],s=c[2],l=c[3]),c[4]!==s?(i=(0,h.cn)(b(),"group",s),c[4]=s,c[5]=i):i=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.A,{className:"relative top-[1px] ml-1.5 size-3 opacity-75 transition duration-300 group-data-[state=open]:translate-y-px","aria-hidden":"true",strokeWidth:2.5}),c[6]=n):n=c[6],c[7]!==t||c[8]!==l||c[9]!==i?(o=(0,a.jsxs)(m.l9,{"data-slot":"navigation-menu-trigger",className:i,...l,children:[t," ",n]}),c[7]=t,c[8]=l,c[9]=i,c[10]=o):o=c[10],o}function j(e){let t,s,l,i,n=(0,r.c)(8);return n[0]!==e?({className:t,...s}=e,n[0]=e,n[1]=t,n[2]=s):(t=n[1],s=n[2]),n[3]!==t?(l=(0,h.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),n[3]=t,n[4]=l):l=n[4],n[5]!==s||n[6]!==l?(i=(0,a.jsx)(m.UC,{"data-slot":"navigation-menu-content",className:l,...s}),n[5]=s,n[6]=l,n[7]=i):i=n[7],i}function w(e){let t,s,l,i,n,o=(0,r.c)(9);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,h.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),o[3]=l):l=o[3],o[4]!==t?(i=(0,h.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),o[4]=t,o[5]=i):i=o[5],o[6]!==s||o[7]!==i?(n=(0,a.jsx)("div",{className:l,children:(0,a.jsx)(m.LM,{"data-slot":"navigation-menu-viewport",className:i,...s})}),o[6]=s,o[7]=i,o[8]=n):n=o[8],n}function y(e){let t,s,l,i,n=(0,r.c)(8);return n[0]!==e?({className:t,...s}=e,n[0]=e,n[1]=t,n[2]=s):(t=n[1],s=n[2]),n[3]!==t?(l=(0,h.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),n[3]=t,n[4]=l):l=n[4],n[5]!==s||n[6]!==l?(i=(0,a.jsx)(m.N_,{"data-slot":"navigation-menu-link",className:l,...s}),n[5]=s,n[6]=l,n[7]=i):i=n[7],i}function N(e){let t,s,i,n=(0,r.c)(4),[o,c]=(0,l.useState)(!1);return(n[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{c(!0)},s=[],n[0]=t,n[1]=s):(t=n[0],s=n[1]),(0,l.useEffect)(t,s),o)?(n[2]!==e?(i=(0,a.jsx)(v,{...e}),n[2]=e,n[3]=i):i=n[3],i):null}function _({header:e}){let[t,s]=(0,l.useState)(!1),[m,x]=(0,l.useState)(!1),u=(0,l.useRef)(!1),b=(0,l.useRef)(null),v=function(e){let t,s,a=(0,r.c)(3),[i,n]=(0,l.useState)(!0);return a[0]!==e?(t=()=>{let t=window.matchMedia(e);n(t.matches);let s=()=>n(t.matches);
1return t.addEventListener("change",s),()=>{t.removeEventListener("change",s)}},s=[e],a[0]=e,a[1]=t,a[2]=s):(t=a[1],s=a[2]),(0,l.useEffect)(t,s),i}("(min-width: 80rem)"),w=(0,o.a8)();function _({title:e,description:t,href:s,target:r,...l}){return(0,a.jsx)("li",{...l,children:(0,a.jsx)(y,{asChild:!0,children:(0,a.jsx)(o.N_,{href:s,target:r||"_self",className:"block px-2 py-1.5",children:(0,a.jsxs)("div",{className:"space-y-0.5",children:[(0,a.jsx)("div",{className:"text-foreground text-sm font-medium",children:e}),(0,a.jsx)("p",{className:"text-muted-foreground line-clamp-1 text-xs",children:t})]})})})})}return(0,l.useEffect)(()=>{let e=()=>{null==b.current&&(b.current=window.requestAnimationFrame(()=>{b.current=null;let e=window.scrollY>50;e!==u.current&&(u.current=e,x(e))}))};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),null!=b.current&&(window.cancelAnimationFrame(b.current),b.current=null)}},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("header",{"data-state":t?"active":"inactive",...m&&{"data-scrolled":!0},className:"has-data-[state=open]:bg-background/50 fixed inset-x-0 top-0 z-50 has-data-[state=open]:h-screen has-data-[state=open]:backdrop-blur",children:(0,a.jsx)("div",{className:(0,h.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-xl:in-data-[state=active]:bg-background/75 max-xl:h-14 max-xl:overflow-hidden max-xl:border-b max-xl:in-data-[state=active]:h-screen max-xl:in-data-[state=active]:backdrop-blur"),children:(0,a.jsx)("div",{className:"mx-auto w-full max-w-[1600px] px-4 md:px-6",children:(0,a.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between gap-x-4 xl:flex-nowrap xl:py-5",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-4 max-xl:h-14 max-xl:w-full max-xl:border-b",children:[e.brand&&(0,a.jsx)(c.FQ,{brand:e.brand}),v&&(0,a.jsx)(()=>(0,a.jsx)(p,{viewport:!1,className:"**:data-[slot=navigation-menu-content]:top-10 max-xl:hidden",children:(0,a.jsx)(g,{className:"gap-1",children:e.nav?.items?.map((e,t)=>{let s=e.is_active||w.endsWith(e.url)||w===e.url;if(!e.children||0===e.children.length){let r=e.url?.includes("pricing")||e.title?.toLowerCase().includes("pricing");return(0,a.jsx)(y,{asChild:!0,children:(0,a.jsxs)(o.N_,{href:e.url||"",target:e.target||"_self",className:(0,h.cn)("relative flex flex-row items-center gap-2 whitespace-nowrap px-2 py-1.5 text-sm rounded-full transition-colors",s?"bg-amber-400/50 text-white font-medium":"hover:bg-[rgb(254,251,238)]"),children:[r&&(0,a.jsx)("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-[rgb(255,120,50)] text-white text-[10px] font-bold px-1.5 py-0.5 rounded whitespace-nowrap",children:"30% OFF"}),e.title]})},t)}return(0,a.jsxs)(f,{children:[(0,a.jsx)(N,{className:"flex flex-row items-center gap-2 text-sm rounded-full hover:!bg-[rgb(254,251,238)] data-[state=open]:!bg-[rgb(254,251,238)] transition-colors",children:e.title}),(0,a.jsx)(j,{className:"min-w-2xs origin-top p-0.5",children:(0,a.jsx)("div",{className:"border-foreground
1/5 bg-card ring-foreground/5 rounded-[calc(var(--radius)-2px)] border border-transparent p-2 shadow ring-1",children:(0,a.jsx)("ul",{className:"mt-1 space-y-2",children:e.children?.map((e,t)=>(0,a.jsx)(_,{href:e.url||"",target:e.target||"_self",title:e.title||"",description:e.description||""},t))})})})]},t)})})}),{}),(0,a.jsxs)("button",{onClick:()=>s(!t),"aria-label":!0==t?"Close Menu":"Open Menu",className:"relative z-20 -m-2.5 -mr-3 block cursor-pointer p-2.5 xl:hidden",children:[(0,a.jsx)(i.A,{className:"m-auto size-5 duration-200 in-data-[state=active]:scale-0 in-data-[state=active]:rotate-180 in-data-[state=active]:opacity-0"}),(0,a.jsx)(n.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"})]})]}),!v&&t&&(0,a.jsx)(({closeMenu:t})=>(0,a.jsx)("nav",{role:"navigation",className:"w-full [--color-border:--alpha(var(--color-foreground)/5%)] [--color-muted:--alpha(var(--color-foreground)/5%)]",children:(0,a.jsx)(d.Accordion,{type:"single",collapsible:!0,className:"-mx-4 mt-0.5 space-y-0.5 **:hover:no-underline",children:e.nav?.items?.map((e,s)=>(0,a.jsx)(d.AccordionItem,{value:e.title||"",className:"group relative border-b-0 before:pointer-events-none before:absolute before:inset-x-4 before:bottom-0 before:border-b",children:e.children&&e.children.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.AccordionTrigger,{className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title}),(0,a.jsx)(d.AccordionContent,{className:"pb-5",children:(0,a.jsx)("ul",{children:e.children?.map((e,s)=>(0,a.jsx)("li",{children:(0,a.jsx)(o.N_,{href:e.url||"",onClick:t,className:"grid grid-cols-[1fr] items-center gap-2.5 px-4 py-2",children:(0,a.jsx)("div",{className:"text-base",children:e.title})})},s))})})]}):(0,a.jsx)(o.N_,{href:e.url||"",onClick:t,className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title})},s))})}),{closeMenu:()=>s(!1)}),(0,a.jsx)("div",{className:"mb-6 hidden w-full flex-wrap items-center justify-end space-y-8 in-data-[state=active]:flex max-xl:in-data-[state=active]:mt-6 md:flex-nowrap xl:m-0 xl:ml-auto xl:flex xl:w-fit xl:shrink-0 xl:gap-4 xl:space-y-0 xl:border-transparent xl:bg-transparent xl:p-0 xl:shadow-none dark:shadow-none dark:xl:bg-transparent",children:(0,a.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 sm:flex-row sm:gap-4 sm:space-y-0 md:w-fit",children:[e.buttons&&e.buttons.map((e,t)=>(0,a.jsxs)(o.N_,{href:e.url||"",target:e.target||"_self",className:(0,h.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-7 px-3 ring-0","outline"===e.variant?"bg-background border-primary ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200":"bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md ring-1 shadow-black/20 ring-(--ring-color) [--ring-color:color-mix(in_oklab,var(--color-foreground)15%,var(--color-primary))]"),children:[e.icon&&(0,a.jsx)(c.LK,{name:e.icon,className:"size-4"}),(0,a.jsx)("span",{children:e.title})]},t)),e.show_theme?(0,a.jsx)(c.GC,{}):null,e.show_locale?(0,a.jsx)(c.YC,{}):null,(0,a.jsx)("div",{className:"flex-1 md:hidden"}),e.show_sign?(0,a.jsx)(c.TS,{userNav:e.user_nav}):null]})})]})})})})})}},42471:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Tabs:()=>x});var a=s(48561),r=s(62435),l=s(56565),i=s(83749),n=s(31091),o=s(37943);let c=l.forwardRef(({className:e,children:t,...s},r)=>(0,a.jsxs)(n.bL,{ref:r,className:(0,o.cn)("relative overflow-hidden",e),...s,children:[(0,a.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:t}),(0,a.jsx)(d,{}),(0,a.jsx)(n.OK,{})]}));c.displayName=n.bL.displayName;let d=l.forwardRef(({className:e,orientation:t="vertical",...s},r)=>(0,a.jsx)(n.VM,{ref:r,orientation:t,className:(0,o.cn)("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...s,children:(0,a.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})}));d.displayName=n.VM.displayName;var m=s(59516);function x(e){let t,s,n,x,p,g,f,b,v,j,w=(0,r.c)(22),{tabs:y,size:N}=e,_=(0,i.rd)();w[0]!==y?(t=y?.find(h)?.name||"",w[0]=y,w[1]=t):t=w[1];let[k,C]=(0,l.useState)(t);w[2]===Symbol.for("react.memo_cache_sentinel")?(s={},w[2]=s):s=w[2],(0,l.useState)(s),w[3]!==_||w[4]!==k||w[5]!==y?(n=()=>
1{if(k){let e=y?.find(e=>e.name===k)||{};e.url&&_.push(e.url)}},w[3]=_,w[4]=k,w[5]=y,w[6]=n):n=w[6],w[7]!==k?(x=[k],w[7]=k,w[8]=x):x=w[8],(0,l.useEffect)(n,x);let S="sm"===N&&"h-8";return w[9]!==S?(p=(0,o.cn)(S),w[9]=S,w[10]=p):p=w[10],w[11]!==y?(g=y.map(u),w[11]=y,w[12]=g):g=w[12],w[13]!==p||w[14]!==g?(f=(0,a.jsx)(m.j7,{className:p,children:g}),w[13]=p,w[14]=g,w[15]=f):f=w[15],w[16]!==f||w[17]!==k?(b=(0,a.jsx)("div",{className:"flex items-center space-x-2",children:(0,a.jsx)(m.tU,{value:k,onValueChange:C,children:f})}),w[16]=f,w[17]=k,w[18]=b):b=w[18],w[19]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(d,{orientation:"horizontal",className:"invisible"}),w[19]=v):v=w[19],w[20]!==b?(j=(0,a.jsx)("div",{className:"relative mb-8",children:(0,a.jsxs)(c,{className:"w-full lg:max-w-none",children:[b,v]})}),w[20]=b,w[21]=j):j=w[21],j}function u(e,t){return(0,a.jsx)(m.Xi,{value:e.name||"",children:e.title},t)}function h(e){return e.is_active}},42642:(e,t,s)=>{"use strict";s.r(t),s.d(t,{AboutUsers:()=>n});var a=s(48561),r=s(62435),l=s(18050),i=s(37943);function n(e){let t,s,n,o,c,d=(0,r.c)(14),{section:m,className:x}=e,u=m.id;return d[0]!==x||d[1]!==m.className?(t=(0,i.cn)("py-16 md:py-24 bg-muted",m.className,x),d[0]=x,d[1]=m.className,d[2]=t):t=d[2],d[3]!==m.title?(s=(0,a.jsx)("h2",{className:"text-3xl font-bold tracking-tight md:text-4xl",children:m.title}),d[3]=m.title,d[4]=s):s=d[4],d[5]!==m.description?(n=(0,a.jsx)("p",{className:"text-base leading-relaxed text-muted-foreground md:text-lg",children:m.description}),d[5]=m.description,d[6]=n):n=d[6],d[7]!==s||d[8]!==n?(o=(0,a.jsx)("div",{className:"container",children:(0,a.jsx)(l.i,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl text-center space-y-6",children:[s,n]})})}),d[7]=s,d[8]=n,d[9]=o):o=d[9],d[10]!==m.id||d[11]!==t||d[12]!==o?(c=(0,a.jsx)("section",{id:u,className:t,children:o}),d[10]=m.id,d[11]=t,d[12]=o,d[13]=c):c=d[13],c}},48808:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesAccordion:()=>u});var a=s(48561),r=s(62435),l=s(56565),i=s(86867),n=s(19715),o=s(29237),c=s(37943);let d=e=>{let t,s,l,i,o,d,m,x,u=(0,r.c)(28),{className:h,size:p,delay:g,duration:f,colorFrom:b,colorTo:v,transition:j,style:w,reverse:y,initialOffset:N,borderWidth:_}=e,k=void 0===p?50:p,C=void 0===f?6:f,S=void 0===b?"#ffaa40":b,A=void 0===v?"#9c40ff":v,z=void 0!==y&&y,I=void 0===N?0:N,L=`${void 0===_?1:_}px`;u[0]!==L?(t={"--border-beam-width":L},u[0]=L,u[1]=t):t=u[1];let R=t;u[2]!==h?(s=(0,c.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",h),u[2]=h,u[3]=s):s=u[3];let F=`rect(0 auto auto 0 round ${k}px)`;u[4]!==S||u[5]!==A||u[6]!==k||u[7]!==w||u[8]!==F?(l={width:k,offsetPath:F,"--color-from":S,"--color-to":A,...w},u[4]=S,u[5]=A,u[6]=k,u[7]=w,u[8]=F,u[9]=l):l=u[9];let T=l,P=`${I}%`;u[10]!==P?(i={offsetDistance:P},u[10]=P,u[11]=i):i=u[11],u[12]!==I||u[13]!==z?(o={offsetDistance:z?[`${100-I}%`,`${-I}%`]:[`${I}%`,`${100+I}%`]},u[12]=I,u[13]=z,u[14]=o):o=u[14];let $=-(void 0===g?0:g);return u[15]!==C||u[16]!==$||u[17]!==j?(d={repeat:1/0,ease:"linear",duration:C,delay:$,...j},u[15]=C,u[16]=$,u[17]=j,u[18]=d):d=u[18],u[19]!==s||u[20]!==T||u[21]!==i||u[22]!==o||u[23]!==d?(m=(0,a.jsx)(n.P.div,{className:s,style:T,initial:i,animate:o,transition:d}),u[19]=s,u[20]=T,u[21]=i,u[22]=o,u[23]=d,u[24]=m):m=u[24],u[25]!==R||u[26]!==m?(x=(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] border-(length:--border-beam-width)",style:R,children:m}),u[25]=R,u[26]=m,u[27]=x):x=u[27],x};var m=s(55346),x=s(18050);function u(e){let t,s,u,p,g,f,b,v,j,w,y,N,_,k,C,S,A,z,I,L,R=(0,r.c)(41),{section:F,className:T}=e,[P,$]=(0,l.useState)("item-1");R[0]!==F.items?(t={},F.items?.forEach((e,s)=>{t[`item-${s+1}`]={image:e.image?.src??"",alt:e.image?.alt||e.title||""}}),R[0]=F.items,R[1]=t):t=R[1],R[2]!==T||R[3]!==F.className?(s=(0,c.cn)("overflow-x-hidden py-16 md:py-24",F.className,T),R[2]=T,R[3]=F.className,R[4]=s):s=R[4],R[5]!==F.title?(u=(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:F.title}),R[5]=F.title,R[6]=u):u=R[6],R[7]!==F.description?(p=(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:F.description}
1),R[7]=F.description,R[8]=p):p=R[8],R[9]!==u||R[10]!==p?(g=(0,a.jsx)(x.i,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[u,p]})}),R[9]=u,R[10]=p,R[11]=g):g=R[11],R[12]===Symbol.for("react.memo_cache_sentinel")?(f=e=>$(e),R[12]=f):f=R[12],R[13]!==F.items?(b=F.items?.map(h),R[13]=F.items,R[14]=b):b=R[14],R[15]!==P||R[16]!==b?(v=(0,a.jsx)(x.i,{delay:.1,direction:"left",children:(0,a.jsx)(m.Accordion,{type:"single",value:P,onValueChange:f,className:"w-full",children:b})}),R[15]=P,R[16]=b,R[17]=v):v=R[17],R[18]===Symbol.for("react.memo_cache_sentinel")?(j=(0,a.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)]"}),R[18]=j):j=R[18];let D=`${P}-id`;R[19]===Symbol.for("react.memo_cache_sentinel")?(w={opacity:0,y:6,scale:.98},y={opacity:1,y:0,scale:1},N={opacity:0,y:6,scale:.98},_={duration:.2},R[19]=w,R[20]=y,R[21]=N,R[22]=_):(w=R[19],y=R[20],N=R[21],_=R[22]);let M=t[P],E=t[P];return R[23]!==M.image||R[24]!==E.alt?(k=(0,a.jsx)(o.oD,{src:M.image,className:"size-full object-cover object-left-top dark:mix-blend-lighten",alt:E.alt}),R[23]=M.image,R[24]=E.alt,R[25]=k):k=R[25],R[26]!==k||R[27]!==D?(C=(0,a.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,a.jsx)(i.N,{mode:"wait",children:(0,a.jsx)(n.P.div,{initial:w,animate:y,exit:N,transition:_,className:"size-full overflow-hidden rounded-2xl border shadow-md",children:k},D)})}),R[26]=k,R[27]=D,R[28]=C):C=R[28],R[29]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)(d,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"}),R[29]=S):S=R[29],R[30]!==C?(A=(0,a.jsx)(x.i,{delay:.2,direction:"right",children:(0,a.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[j,C,S]})}),R[30]=C,R[31]=A):A=R[31],R[32]!==A||R[33]!==v?(z=(0,a.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[v,A]}),R[32]=A,R[33]=v,R[34]=z):z=R[34],R[35]!==z||R[36]!==g?(I=(0,a.jsxs)("div",{className:"container space-y-8 overflow-x-hidden px-2 sm:px-6 md:space-y-16 lg:space-y-20 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]",children:[g,z]}),R[35]=z,R[36]=g,R[37]=I):I=R[37],R[38]!==s||R[39]!==I?(L=(0,a.jsx)("section",{className:s,children:I}),R[38]=s,R[39]=I,R[40]=L):L=R[40],L}function h(e,t){return(0,a.jsxs)(m.AccordionItem,{value:`item-${t+1}`,children:[(0,a.jsx)(m.AccordionTrigger,{children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,a.jsx)(o.LK,{name:e.icon,size:24}),e.title]})}),(0,a.jsx)(m.AccordionContent,{children:e.description})]},t)}},50894:(e,t,s)=>{"use strict";s.r(t),s.d(t,{PowerfulFeatures:()=>d});var a=s(48561),r=s(62435),l=s(18050),i=s(37943),n=s(14584),o=s(81139),c=s(1734);function d(e){let t,s,d,m,x,u,h,p,g,f,b,v=(0,r.c)(41),{section:j,className:w}=e;v[0]===Symbol.for("react.memo_cache_sentinel")?(t=[n.A,o.A,c.A],v[0]=t):t=v[0];let y=t;if(v[1]!==w||v[2]!==j.badge||v[3]!==j.className||v[4]!==j.description||v[5]!==j.features||v[6]!==j.id||v[7]!==j.title){let e,t,r,n=["bg-amber-500","bg-pink-500","bg-amber-400"];u=j.id,v[15]!==w||v[16]!==j.className?(h=(0,i.cn)("py-16 md:py-24 text-neutral-900 -mt-8 md:-mt-12 border-b border-amber-500/40",j.className,w),v[15]=w,v[16]=j.className,v[17]=h):h=v[17],v[18]===Symbol.for("react.memo_cache_sentinel")?(p={backgroundColor:"rgb(248, 250, 252)"},v[18]=p):p=v[18],m="mx-auto w-full max-w-[1340px] px-4 sm:px-6 lg:px-8",v[19]!==j.badge?(e=j.badge&&(0,a.jsx)("div",{className:"inline-flex items-center rounded-full border border-amber-500/30 bg-amber-500/10 px-4 py-1.5 text-sm font-medium text-amber-600 mb-6",children:j.badge}),v[19]=j.badge,v[20]=e):e=v[20],v[21]!==j.title?(t=(0,a.jsx)("h2",{className:"text-3xl font-bold leading-tight tracking-tight md:text-4xl lg:text-5xl text-neutral-900 mb-5",children:j.title}),v[21]=j.title,v[22]=t):t=v[22],v[23]!==j.description?(r=j.description&&(0,a.jsx)("p",{className:"text-neutral-600 max-w-3xl mx-auto text-base md:text-lg leading-relaxed",children:j.description}),v[23]=j.description,v[24]=r):r=v[24],v[25]!==t||v[26]!==r||v[27]!==e?
1(x=(0,a.jsxs)(l.i,{className:"text-center mb-14",children:[e,t,r]}),v[25]=t,v[26]=r,v[27]=e,v[28]=x):x=v[28],s="grid grid-cols-1 md:grid-cols-3 gap-6",d=j.features?.map((e,t)=>{let s=y[t%y.length];return(0,a.jsx)(l.i,{delay:.1*t,children:(0,a.jsxs)("div",{className:"bg-white border border-slate-200 rounded-2xl p-8 h-full shadow-lg shadow-slate-200/50 hover:shadow-xl hover:border-amber-200 transition-all duration-300 group",children:[(0,a.jsx)("div",{className:(0,i.cn)("w-12 h-12 rounded-xl flex items-center justify-center mb-6 transition-transform duration-300 group-hover:scale-110",n[t%n.length]),children:(0,a.jsx)(s,{className:"w-6 h-6 text-white"})}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-neutral-900 mb-4 group-hover:text-amber-600 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-neutral-600 text-sm leading-relaxed",children:e.description})]})},t)}),v[1]=w,v[2]=j.badge,v[3]=j.className,v[4]=j.description,v[5]=j.features,v[6]=j.id,v[7]=j.title,v[8]=s,v[9]=d,v[10]=m,v[11]=x,v[12]=u,v[13]=h,v[14]=p}else s=v[8],d=v[9],m=v[10],x=v[11],u=v[12],h=v[13],p=v[14];return v[29]!==s||v[30]!==d?(g=(0,a.jsx)("div",{className:s,children:d}),v[29]=s,v[30]=d,v[31]=g):g=v[31],v[32]!==m||v[33]!==x||v[34]!==g?(f=(0,a.jsxs)("div",{className:m,children:[x,g]}),v[32]=m,v[33]=x,v[34]=g,v[35]=f):f=v[35],v[36]!==f||v[37]!==u||v[38]!==h||v[39]!==p?(b=(0,a.jsx)("section",{id:u,className:h,style:p,children:f}),v[36]=f,v[37]=u,v[38]=h,v[39]=p,v[40]=b):b=v[40],b}},55346:(e,t,s)=>{"use strict";s.d(t,{Accordion:()=>o,AccordionContent:()=>m,AccordionItem:()=>c,AccordionTrigger:()=>d});var a=s(48561),r=s(62435);s(56565);var l=s(56763),i=s(14518),n=s(37943);function o(e){let t,s,i=(0,r.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(s=(0,a.jsx)(l.bL,{"data-slot":"accordion",...t}),i[2]=t,i[3]=s):s=i[3],s}function c(e){let t,s,i,o,c=(0,r.c)(8);return c[0]!==e?({className:t,...s}=e,c[0]=e,c[1]=t,c[2]=s):(t=c[1],s=c[2]),c[3]!==t?(i=(0,n.cn)("border-b last:border-b-0",t),c[3]=t,c[4]=i):i=c[4],c[5]!==s||c[6]!==i?(o=(0,a.jsx)(l.q7,{"data-slot":"accordion-item",className:i,...s}),c[5]=s,c[6]=i,c[7]=o):o=c[7],o}function d(e){let t,s,o,c,d,m,x=(0,r.c)(11);return x[0]!==e?({className:s,children:t,...o}=e,x[0]=e,x[1]=t,x[2]=s,x[3]=o):(t=x[1],s=x[2],o=x[3]),x[4]!==s?(c=(0,n.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",s),x[4]=s,x[5]=c):c=x[5],x[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(i.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}),x[6]=d):d=x[6],x[7]!==t||x[8]!==o||x[9]!==c?(m=(0,a.jsx)(l.Y9,{className:"flex",children:(0,a.jsxs)(l.l9,{"data-slot":"accordion-trigger",className:c,...o,children:[t,d]})}),x[7]=t,x[8]=o,x[9]=c,x[10]=m):m=x[10],m}function m(e){let t,s,i,o,c,d,m=(0,r.c)(12);return m[0]!==e?({className:s,children:t,...i}=e,m[0]=e,m[1]=t,m[2]=s,m[3]=i):(t=m[1],s=m[2],i=m[3]),m[4]!==s?(o=(0,n.cn)("pt-0 pb-4",s),m[4]=s,m[5]=o):o=m[5],m[6]!==t||m[7]!==o?(c=(0,a.jsx)("div",{className:o,children:t}),m[6]=t,m[7]=o,m[8]=c):c=m[8],m[9]!==i||m[10]!==c?(d=(0,a.jsx)(l.UC,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...i,children:c}),m[9]=i,m[10]=c,m[11]=d):d=m[11],d}},57207:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Pricing:()=>I});var a=s(48561),r=s(56565),l=s(7558),i=s(28684),n=s(36800),o=s(56690),c=s(646),d=s(95237),m=s(62435),x=s(94648),u=s(33688),h=s(67319),p=s(9328),g=s(77730),f=s(56293),b=s(83749),v=s(80430),j=s(37943);function w({configs:e,callbackUrl:t,loading:s,setLoading:i,pricingItem:n,onCheckout:m,className:u}){(0,c.c3)("common.payment"),(0,b.rd)();let{setIsShowPaymentModal:h}=(0,p.U)(),[g,w]=(0,r.useState)(null);if(t){let e=(0,o.Ym)();e!==v.q&&t.startsWith("/")&&!t.startsWith(`/${e}`)&&(t=`/${e}${t}`)}let y=async({provider:e})=>{e?n?m(n,e):d.oR.error("please select a pricing item"):d.oR.error("please select payment method")},N=n?.payment_providers,_=e=>!N||0===N.length||N.includes(e),k=[];return"true"===e.stripe_enabled&&_("stripe")&&k.push({name:"stripe",title:"Str
1ipe",icon_url:"/imgs/icons/stripe.png",onClick:()=>y({provider:"stripe"})}),"true"===e.creem_enabled&&_("creem")&&k.push({name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:()=>y({provider:"creem"})}),"true"===e.paypal_enabled&&_("paypal")&&k.push({name:"paypal",title:"Paypal",icon_url:"/imgs/icons/paypal.svg",onClick:()=>y({provider:"paypal"})}),(0,a.jsx)("div",{className:(0,j.cn)("flex w-full items-center gap-2","flex-col justify-between",u),children:k.map(e=>(0,a.jsxs)(x.$,{variant:"outline",className:(0,j.cn)("w-full gap-2"),disabled:s,onClick:()=>{e.onClick&&e.name?(w(e.name),e.onClick()):d.oR.error("invalid payment method")},children:[e.icon_url&&(0,a.jsx)(f.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,a.jsx)("h3",{children:e.title}),g===e.name&&s&&(0,a.jsx)(l.A,{className:"size-4 animate-spin"})]},e.name))})}function y(e){let t,s,r,l,i,n,o,d,f,b,v=(0,m.c)(51),{isLoading:j,pricingItem:y,onCheckout:k}=e,C=(0,c.c3)("common.payment"),{isShowPaymentModal:S,setIsShowPaymentModal:A}=(0,p.U)(),{configs:z}=(0,p.U)();if((0,g.U)("(min-width: 768px)")){let e,t,s,r,l,i,n,o;return v[0]!==C?(e=C("choose_payment_method"),v[0]=C,v[1]=e):e=v[1],v[2]!==e?(t=(0,a.jsx)(u.L3,{children:e}),v[2]=e,v[3]=t):t=v[3],v[4]!==C?(s=C("choose_payment_method_description"),v[4]=C,v[5]=s):s=v[5],v[6]!==s?(r=(0,a.jsx)(u.rr,{children:s}),v[6]=s,v[7]=r):r=v[7],v[8]!==t||v[9]!==r?(l=(0,a.jsxs)(u.c7,{children:[t,r]}),v[8]=t,v[9]=r,v[10]=l):l=v[10],v[11]!==z||v[12]!==j||v[13]!==k||v[14]!==y?(i=(0,a.jsx)(w,{callbackUrl:"/",configs:z,loading:j,setLoading:_,pricingItem:y,onCheckout:k}),v[11]=z,v[12]=j,v[13]=k,v[14]=y,v[15]=i):i=v[15],v[16]!==l||v[17]!==i?(n=(0,a.jsxs)(u.Cf,{className:"sm:max-w-[425px]",children:[l,i]}),v[16]=l,v[17]=i,v[18]=n):n=v[18],v[19]!==S||v[20]!==A||v[21]!==n?(o=(0,a.jsx)(u.lG,{open:S,onOpenChange:A,children:n}),v[19]=S,v[20]=A,v[21]=n,v[22]=o):o=v[22],o}return v[23]!==C?(t=C("choose_payment_method"),v[23]=C,v[24]=t):t=v[24],v[25]!==t?(s=(0,a.jsx)(h.gk,{children:t}),v[25]=t,v[26]=s):s=v[26],v[27]!==C?(r=C("choose_payment_method_description"),v[27]=C,v[28]=r):r=v[28],v[29]!==r?(l=(0,a.jsx)(h.I6,{children:r}),v[29]=r,v[30]=l):l=v[30],v[31]!==s||v[32]!==l?(i=(0,a.jsxs)(h.BE,{className:"text-left",children:[s,l]}),v[31]=s,v[32]=l,v[33]=i):i=v[33],v[34]!==z||v[35]!==j||v[36]!==k||v[37]!==y?(n=(0,a.jsx)(w,{callbackUrl:"/",configs:z,loading:j,setLoading:N,pricingItem:y,onCheckout:k,className:"px-4"}),v[34]=z,v[35]=j,v[36]=k,v[37]=y,v[38]=n):n=v[38],v[39]!==C?(o=C("cancel_title"),v[39]=C,v[40]=o):o=v[40],v[41]!==o?(d=(0,a.jsx)(h.tb,{className:"pt-4",children:(0,a.jsx)(h.cp,{asChild:!0,children:(0,a.jsx)(x.$,{variant:"outline",children:o})})}),v[41]=o,v[42]=d):d=v[42],v[43]!==i||v[44]!==n||v[45]!==d?(f=(0,a.jsxs)(h.zj,{children:[i,n,d]}),v[43]=i,v[44]=n,v[45]=d,v[46]=f):f=v[46],v[47]!==S||v[48]!==A||v[49]!==f?(b=(0,a.jsx)(h._s,{open:S,onOpenChange:A,children:f}),v[47]=S,v[48]=A,v[49]=f,v[50]=b):b=v[50],b}function N(){}function _(){}var k=s(34601),C=s(61802),S=s(59516),A=s(3720);function z(e){if(!e)return[];let t={currency:e.currency,amount:e.amount,price:e.price||"",original_price:e.original_price||""};return e.currencies&&e.currencies.length>0?[t,...e.currencies]:[t]}function I({section:e,className:t,currentSubscription:s}){let m=(0,o.Ym)(),u=(0,c.c3)("pages.pricing.messages"),{user:h,isShowPaymentModal:g,setIsShowSignModal:f,setIsShowPaymentModal:b,configs:v}=(0,p.U)(),[w,N]=(0,r.useState)(()=>{let t=e.items?.find(e=>e.product_id===s?.productId),a=e.groups?.find(e=>e.is_featured);return t?.group||a?.name||e.groups?.[0]?.name}),[_,I]=(0,r.useState)(null),[L,R]=(0,r.useState)(!1),[F,T]=(0,r.useState)(null),[P,$]=(0,r.useState)({});(0,r.useEffect)(()=>{if(e.items&&e.items.length>0){let t={};e.items.forEach(e=>{let s=z(e),a=function(e,t,s){if(0===e.length)return s;if("zh"===t){let t=e.find(e=>"cny"===e.currency.toLowerCase());if(t)return t.currency}return s}(s,m,e.currency),r=s.find(e=>e.currency.toLowerCase()===a.toLowerCase()),l=r?{...e,currency:r.currency,amount:r.amount,price:r.price,original_price:r.original_price,payment_product_id:r.payment_product_id||e.payment_product_id,payment_providers:r.payment_providers||e.payment_providers}:e;t[e.product_id]={selectedCurrency:a,displayedItem:l}}),$(t)}},[e.items,m]);let D=async e=>
1{if(!h)return void f(!0);if(0===e.amount&&e.button?.url){let t=e.button.url;if(t.startsWith("/#")){let e=t.substring(2);if(document.getElementById(e)){let t=document.getElementById(e);if(t){let e=t.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:e,behavior:"smooth"})}}else window.location.href=t}else window.location.href=t;return}let t=P[e.product_id]?.displayedItem||e;"true"===v.select_payment_enabled?(I(t),b(!0)):M(t,v.default_payment_provider)},M=async(e,t)=>{try{if(!h)return void f(!0);let s=(({paymentProvider:e})=>{let t={};return"true"===v.affonso_enabled&&["stripe","creem"].includes(e)&&(t.affonso_referral=(0,A.Ri)("affonso_referral")||""),"true"===v.promotekit_enabled&&["stripe"].includes(e)&&(t.promotekit_referral=window.promotekit_referral?window.promotekit_referral:(0,A.Ri)("promotekit_referral")||""),t})({paymentProvider:t||""}),a={product_id:e.product_id,currency:e.currency,locale:m||"en",payment_provider:t||"",metadata:s};R(!0),T(e.product_id);let r=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(401===r.status){R(!1),T(null),I(null),f(!0);return}if(!r.ok)throw Error(`request failed with status ${r.status}`);let{code:l,message:i,data:n}=await r.json();if(0!==l)throw Error(i);let{checkoutUrl:o}=n;if(!o)throw Error("checkout url not found");window.location.href=o}catch(e){console.log("checkout failed: ",e),d.oR.error("checkout failed: "+e.message),R(!1),T(null)}};(0,r.useEffect)(()=>{if(e.items){let t=e.items.find(e=>e.is_featured);T(t?.product_id||e.items[0]?.product_id),R(!1)}},[e.items]);let E=Math.min(3,Math.max(1,(e.items?.filter(e=>!e.group||e.group===w)||[]).length));return(0,a.jsxs)("section",{id:e.id,className:(0,j.cn)("py-24 md:py-36",e.className,t),children:[(0,a.jsxs)("div",{className:"mx-auto mb-12 px-4 text-center md:px-8",children:[e.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:e.sr_only_title}),(0,a.jsx)("h2",{className:"mb-6 text-3xl font-bold text-pretty lg:text-4xl text-slate-900",children:e.title}),(0,a.jsx)("p",{className:"text-slate-500 mx-auto mb-4 max-w-xl lg:max-w-none lg:text-lg",children:e.description})]}),(0,a.jsxs)("div",{className:"mx-auto max-w-[866px] px-4 md:max-w-[1166px] md:px-8",children:[e.groups&&e.groups.length>0&&(0,a.jsx)("div",{className:"mx-auto mt-8 mb-16 flex w-full justify-center md:max-w-lg",children:(0,a.jsx)(S.tU,{value:w,onValueChange:N,className:"",children:(0,a.jsx)(S.j7,{className:"bg-slate-100 p-1",children:e.groups.map((e,t)=>(0,a.jsxs)(S.Xi,{value:e.name||"",className:"data-[state=active]:bg-white data-[state=active]:text-slate-900 data-[state=active]:shadow-sm",children:[e.title,e.label&&(0,a.jsx)(k.E,{className:"ml-2 bg-orange-500 text-white hover:bg-orange-600 border-none",children:e.label})]},t))})})}),(0,a.jsx)("div",{className:(0,j.cn)("mx-auto mt-0 grid w-full gap-6 grid-cols-1","md:[grid-template-columns:repeat(var(--pricing-cols),minmax(0,1fr))]"),style:{"--pricing-cols":E},children:e.items?.map((e,t)=>{let r,o,c,d;if(e.group&&e.group!==w)return null;let m=!1;s&&s.productId===e.product_id&&(m=!0);let h=P[e.product_id],p=h?.displayedItem||e;return h?.selectedCurrency||e.currency,z(e),(0,a.jsxs)(C.Zp,{className:(0,j.cn)("relative flex w-full flex-col p-2 transition-all duration-300 bg-[#FFFBF3]",e.is_featured?"border-2 border-[#FFD028] shadow-2xl z-10":"border border-slate-200 shadow-sm hover:border-slate-300"),children:[e.top_label&&(0,a.jsx)("span",{className:"absolute inset-x-0 -top-3 z-20 mx-auto flex h-7 w-fit items-center rounded-md px-4 py-1 text-xs font-bold bg-[#FFD700] text-black shadow-sm",children:e.top_label}),e.label&&(0,a.jsx)("span",{className:"absolute top-3 right-3 flex h-6 w-fit items-center rounded-md px-3 py-1 text-xs font-bold bg-[#FFF4D6] text-[#B8860B] shadow-sm z-20",children:e.label}),(0,a.jsxs)(C.aR,{className:"space-y-4 pt-6",children:[(0,a.jsx)(C.ZB,{className:"font-medium",children:(0,a.jsx)("h3",{className:"text-slate-800 -ml-1 -mt-[7px] text-sm font-bold uppercase tracking-tight",children:e.title})}),(0,a.jsxs)("div",{className:"-mt-[15px]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center py-4",children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,a.jsx)("span",{className:"text-5xl font-black text-slate-900",children:p.price}),p.unit&&(0,a.jsx)("span",{className:"text-lg font-medium text-slate-400",children:p.unit})]}),p.original_price&&(0,a.jsx)("div",{className:"flex items-center gap-2 mt-1",children:(0,a.jsx)("span",{className:"text-sm line-through text-slate-400 decoration-slate-400/50",children:p.original_price})})]}),p.yearly_detail&&(0,a.jsxs)("div",{className:"relative top-[2px] flex flex-col items-center -mt-2 mb-2 space-y-1",children:[(0,a.jsx)("div",{className:"text-xs font-semibold px-3 py-1 rounded-full text-slate-900",children:p.yearly_detail}),p.yearly_save&&(c=(o=(r=p.yearly_save.trim().split(/\s+/)).length>=2&&"off"===r[r.length-1].toLowerCase())?r.slice(-2).join(" "):p.yearly_save,d=o?r.slice(0,-2).join(" "):"",(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[d&&(0,a.jsx)("span",{className:"text-xs font-medium text-slate-500",children:d}),(0,a.jsx)("span",{className:"inline-flex items-center rounded-full px-2 py-0.5 text-sm font-extrabold shadow-sm bg-[#FEE685] text-amber-950",children:c})]}))]})]}),(0,a.jsx)("div",{className:"text-center min-h-[40px] flex items-center justify-center",children:(0,a.jsx)(C.BT,{className:"text-sm text-slate-500",children:e.description})}),m?(0,a.jsx)(x.$,{variant:"outline",className:"h-11 w-full border-slate-200 text-slate-400 font-bold bg-slate-50",disabled:!0,children:u("current_plan")}):(0,a.jsx)(x.$,{onClick:()=>D(e),disabled:L,className:(0,j.cn)("h-[2.5rem] w-full rounded-lg text-sm font-bold shadow-sm transition-all uppercase tracking-wide text-black border border-transparent flex items-center justify-center","pro"===(e.plan_name||e.title||"").toLowerCase()?"bg-[#FCC364] hover:bg-[#FDB94D]":"bg-[#F9E3A7] hover:bg-[#F9D98C]"),children:L&&e.product_id===F?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{className:"size-4 animate-spin mr-2"}),u("processing")]}):(0,a.jsx)(a.Fragment,{children:e.button?.title||"Get Started"})})]}),(0,a.jsxs)(C.Wu,{className:"space-y-4 px-6 pb-8",children:[(0,a.jsx)("div",{className:"h-px w-full mb-6 bg-slate-100"}),e.features_title&&(0,a.jsx)("p",{className:"text-sm font-medium mb-4 text-slate-400",children:e.features_title}),(0,a.jsx)("ul",{className:"space-y-4 text-sm",children:e.features?.map((e,t)=>{let s=e.startsWith("NO ")||e.startsWith("无");return(0,a.jsxs)("li",{className:"flex items-start gap-3",children:[s?(0,a.jsx)("div",{className:"mt-1 rounded-full p-0.5 shrink-0 border border-slate-200",children:(0,a.jsx)(i.A,{className:"size-3 text-slate-300"})}):(0,a.jsx)("div",{className:"mt-1 rounded-full p-0.5 shrink-0 border bg-emerald-50 border-emerald-100",children:(0,a.jsx)(n.A,{className:"size-3 text-emerald-500"})}),(0,a.jsx)("span",{className:(0,j.cn)("leading-tight",s?"text-slate-300":"text-slate-600 font-medium"),children:e})]},t)})})]})]},t)})})]}),(0,a.jsx)(y,{isLoading:L,pricingItem:_,onCheckout:(e,t)=>M(e,t)})]})}},57614:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesStep:()=>c});var a=s(48561),r=s(62435),l=s(58237),i=s(29237),n=s(18050),o=s(37943);function c(e){let t,s,c,d,m,x,u,h,p,g=(0,r.c)(24),{section:f,className:b}=e,v=f.id;return g[0]!==b||g[1]!==f.className?(t=(0,o.cn)("py-16 md:py-24",f.className,b),g[0]=b,g[1]=f.className,g[2]=t):t=g[2],g[3]!==f.label?(s=(0,a.jsx)("span",{className:"text-primary",children:f.label}),g[3]=f.label,g[4]=s):s=g[4],g[5]!==f.title?(c=(0,a.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:f.title}),g[5]=f.title,g[6]=c):c=g[6],g[7]!==f.description?(d=(0,a.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:f.description}),g[7]=f.description,g[8]=d):d=g[8],g[9]!==s||g[10]!==c||g[11]!==d?(m=(0,a.jsx)(n.i,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[s,c,d]})}),g[9]=s,g[10]=c,g[11]=d,g[12]=m):m=g[12],g[13]!==f.items?(x=f.items?.map((e,t)=>(0,a.jsx)("div",{className:"space-y-6",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("span",{className:"mx-auto flex size-6 items-center justify-center rounded-full bg-zinc-500/15 text-sm font-medium",children:t+1}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"mx-auto my-6 w-fit",children:e.icon&&(0,a.jsx)(i.LK,{name:e.icon,size:24})}),t<(f.items?.length??0)-1&&(0,a.jsx)(l.A,{className:"fill-muted stroke-primary absolute inset-y-0 right-0 my-auto mt-1 hidden translate-x-[150%] drop-shadow @3xl:block"})]}),(0,a.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,a.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},t)),g[13]=f.items,g[14]=x):x=g[14],g[15]!==x?(u=(0,a.jsx)(n.i,{delay:.2,children:(0,a.jsx)("div",{className:"mt-20 grid gap-12 @3xl:grid-cols-4",children:x})}),g[15]=x,g[16]=u):u=g[16],g[17]!==m||g[18]!==u?(h=(0,a.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,a.jsxs)("div",{className:"@container relative container",children:[m,u]})}),g[17]=m,g[18]=u,g[19]=h):h=g[19],g[20]!==f.id||g[21]!==t||g[22]!==h?(p=(0,a.jsx)("section",{id:v,className:t,children:h}),g[20]=f.id,g[21]=t,g[22]=h,g[23]=p):p=g[23],p}},59516:(e,t,s)=>{"use strict";s.d(t,{Xi:()=>c,j7:()=>o,tU:()=>n});var a=s(48561),r=s(56565),l=s(361),i=s(37943);let n=l.bL,o=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(l.B8,{ref:s,className:(0,i.cn)("border inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));o.displayName=l.B8.displayName;let c=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(l.l9,{ref:s,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));c.displayName=l.l9.displayName,r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(l.UC,{ref:s,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})).displayName=l.UC.displayName},61802:(e,t,s)=>{"use strict";s.d(t,{BT:()=>c,Wu:()=>m,X9:()=>d,ZB:()=>o,Zp:()=>i,aR:()=>n,wL:()=>x});var a=s(48561),r=s(62435);s(56565);var l=s(37943);function i(e){let t,s,i,n,o=(0,r.c)(8);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]!==t?(i=(0,l.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),o[3]=t,o[4]=i):i=o[4],o[5]!==s||o[6]!==i?(n=(0,a.jsx)("div",{"data-slot":"card",className:i,...s}),o[5]=s,o[6]=i,o[7]=n):n=o[7],n}function n(e){let t,s,i,n,o=(0,r.c)(8);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]!==t?(i=(0,l.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),o[3]=t,o[4]=i):i=o[4],o[5]!==s||o[6]!==i?(n=(0,a.jsx)("div",{"data-slot":"card-header",className:i,...s}),o[5]=s,o[6]=i,o[7]=n):n=o[7],n}function o(e){let t,s,i,n,o=(0,r.c)(8);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]!==t?(i=(0,l.cn)("leading-none font-semibold",t),o[3]=t,o[4]=i):i=o[4],o[5]!==s||o[6]!==i?(n=(0,a.jsx)("div",{"data-slot":"card-title",className:i,...s}),o[5]=s,o[6]=i,o[7]=n):n=o[7],n}function c(e){let t,s,i,n,o=(0,r.c)(8);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]!==t?(i=(0,l.cn)("text-muted-foreground text-sm",t),o[3]=t,o[4]=i):i=o[4],o[5]!==s||o[6]!==i?(n=(0,a.jsx)("div",{"data-slot":"card-description",className:i,...s}),o[5]=s,o[6]=i,o[7]=n):n=o[7],n}function d(e){let t,s,i,n,o=(0,r.c)(8);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]!==t?(i=(0,l.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),o[3]=t,o[4]=i):i=o[4],o[5]!==s||o[6]!==i?(n=(0,a.jsx)("div",{"data-slot":"card-action",className:i,...s}),o[5]=s,o[6]=i,o[7]=n):n=o[7],n}function m(e){let t,s,i,n,o=(0,r.c)(8);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]!==t?(i=(0,l.cn)("px-6",t),o[3]=t,o[4]=i):i=o[4],o[5]!==s||o[6]!==i?(n=(0,a.jsx)("div",{"data-slot":"card-content",className:i,...s}),o[5]=s,o[6]=i,o[7]=n):n=o[7],n}function x(e){let t,s,i,n,o=(0,r.c)(8);return o[0]!==e?({className:t,...s}=e,o[0]=e,o[1]=t,o[2]=s):(t=o[1],s=o[2]),o[3]!==t?(i=(0,l.cn)("flex items-center px-6 [.border-t]:pt-6",t),o[3]=t,o[4]=i):i=o[4],o[5]!==s||o[6]!==i?(n=(0,a.jsx)("div",{"data-slot":"card-footer",className:i,...s}),o[5]=s,o[6]=i,o[7]=n):n=o[7],n}},62184:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Showcases:()=>u});var a=s(48561),r=s(62435),l=s(56565),i=s(56293),n=s(83749),o=s(41114),c=s(94648),d=s(61802),m=s(18050),x=s(37943);function u(e){let t,s,i,n,o,c,d,u,p,g,f,b=(0,r.c)(34),{section:v,className:j}=e;b[0]!==v?(t=v.groups||[],b[0]=v,b[1]=t):t=b[1];let w=t,[y,N]=(0,l.useState)(w.length>0?w[0].name:"");e:{let e;if(!v.items){let e;b[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],b[2]=e):e=b[2],s=e;break e}if(!y||!w.length||"all"===y){s=v.items;break e}if(b[3]!==v.items||b[4]!==y){let t;b[6]!==y?(t=e=>e.group===y,b[6]=y,b[7]=t):t=b[7],e=v.items.filter(t),b[3]=v.items,b[4]=y,b[5]=e}else e=b[5];s=e}let _=s,k=v.id||v.name;return b[8]!==j||b[9]!==v.className?(i=(0,x.cn)("py-24 md:py-36",v.className,j),b[8]=j,b[9]=v.className,b[10]=i):i=b[10],b[11]!==v.sr_only_title?(n=v.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:v.sr_only_title}),b[11]=v.sr_only_title,b[12]=n):n=b[12],b[13]!==v.title?(o=(0,a.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:v.title}),b[13]=v.title,b[14]=o):o=b[14],b[15]!==v.description?(c=(0,a.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:v.description}
1),b[15]=v.description,b[16]=c):c=b[16],b[17]!==n||b[18]!==o||b[19]!==c?(d=(0,a.jsxs)(m.i,{className:"container mb-12 text-center",children:[n,o,c]}),b[17]=n,b[18]=o,b[19]=c,b[20]=d):d=b[20],b[21]!==w||b[22]!==y?(u=w.length>0&&(0,a.jsx)(m.i,{className:"container mb-12 flex flex-wrap justify-center gap-4",delay:.15,children:w.map((e,t)=>{let s=y===e.name;return(0,a.jsx)("button",{onClick:()=>N(e.name),className:(0,x.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all hover:scale-105 active:scale-95",s?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,a.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,a.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,a.jsx)("span",{children:e.title})},e.name)})}),b[21]=w,b[22]=y,b[23]=u):u=b[23],b[24]!==_?(p=_.length>0?_.map(h):(0,a.jsx)("div",{className:"text-muted-foreground col-span-full text-center",children:"No items found in this category."}),b[24]=_,b[25]=p):p=b[25],b[26]!==p?(g=(0,a.jsx)("div",{className:"container grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:p}),b[26]=p,b[27]=g):g=b[27],b[28]!==g||b[29]!==k||b[30]!==i||b[31]!==d||b[32]!==u?(f=(0,a.jsxs)("section",{id:k,className:i,children:[d,u,g]}),b[28]=g,b[29]=k,b[30]=i,b[31]=d,b[32]=u,b[33]=f):f=b[33],f}function h(e,t){let s=!!e.button,r=(0,a.jsx)(m.i,{delay:.1*t,children:(0,a.jsx)(d.Zp,{className:"dark:hover:shadow-primary/10 overflow-hidden p-0 transition-all hover:shadow-lg",children:(0,a.jsxs)(d.Wu,{className:"p-0",children:[(0,a.jsx)("div",{className:"relative aspect-16/10 w-full overflow-hidden transition-transform duration-300 hover:scale-105",children:(0,a.jsx)(i.default,{src:e.image?.src??"",alt:e.image?.alt??"",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",fill:!0,className:"rounded-t-lg object-cover transition-transform duration-300"})}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsx)("h3",{className:"mb-2 line-clamp-1 text-xl font-semibold text-balance",children:e.title}),(0,a.jsx)("p",{className:"text-muted-foreground line-clamp-3 text-sm",dangerouslySetInnerHTML:{__html:e.description??""}}),s&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(c.$,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 h-8 w-full border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,a.jsxs)(n.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,a.jsx)(o.L,{name:e.button.icon,className:"text-white"}),e.button.title]})})})]})]})})});return s?(0,a.jsx)("div",{children:r},t):(0,a.jsx)(n.N_,{href:e.url||"",target:e.target,children:r},t)}},64848:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Cta:()=>d});var a=s(48561),r=s(62435),l=s(83749),i=s(41114),n=s(94648),o=s(18050),c=s(37943);function d(e){let t,s,l,i,n,d,x,u,h=(0,r.c)(20),{section:p,className:g}=e,f=p.id;h[0]!==g||h[1]!==p.className?(t=(0,c.cn)("py-16 md:py-24 border-b border-amber-500/40",p.className,g),h[0]=g,h[1]=p.className,h[2]=t):t=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(s={backgroundColor:"rgb(248, 250, 252)"},h[3]=s):s=h[3],h[4]!==p.title?(l=(0,a.jsx)(o.i,{children:(0,a.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:p.title})}),h[4]=p.title,h[5]=l):l=h[5];let b=p.description??"";return h[6]!==b?(i=(0,a.jsx)(o.i,{delay:.15,children:(0,a.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:b}})}),h[6]=b,h[7]=i):i=h[7],h[8]!==p.buttons?(n=p.buttons?.map(m),h[8]=p.buttons,h[9]=n):n=h[9],h[10]!==n?(d=(0,a.jsx)(o.i,{delay:.3,children:(0,a.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:n})}),h[10]=n,h[11]=d):d=h[11],h[12]!==l||h[13]!==i||h[14]!==d?(x=(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"text-center",children:[l,i,d]})}),h[12]=l,h[13]=i,h[14]=d,h[15]=x):x=h[15],h[16]!==p.id||h[17]!==t||h[18]!==x?(u=(0,a.jsx)("section",{id:f,className:t,style:s,children:x}),h[16]=p.id,h[17]=t,h[18]=x,h[19]=u):u=h[19],u}function m(e,t){return(0,a.jsx)(n.$,{asChild:!0,size:e.size||"default",variant:e.variant||"default",className:"Get Started"===e.title?"bg-[rgb(252,195,100)] hover:bg-[rgb(242,185,90)] text-white border-none":"",children:(0,a.jsxs)(l.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,a.jsx)(i.L,{name:e.icon}),(0,a.jsx)("span",{children:e.title})]})},t)}},66427:(e,t,s)=>{"use strict";s.r(t),s.d(t,{AiTryOn:()=>es});
1var a,r=s(48561),l=s(62435),i=s(56565),n=s(56293);function o(e){try{let t=localStorage.getItem(`workspace_history_${e}`);if(!t)return[];let s=JSON.parse(t),a=new Date,r=s.filter(e=>new Date(e.expiresAt)>a);return r.length!==s.length&&c(e,r),r}catch(e){return console.error("Failed to get workspace history:",e),[]}}function c(e,t){try{localStorage.setItem(`workspace_history_${e}`,JSON.stringify(t))}catch(e){console.error("Failed to save workspace history:",e)}}async function d(e,t){try{let s=`/api/storage/download?url=${encodeURIComponent(e)}&filename=${encodeURIComponent(t||`tryon-${Date.now()}.jpg`)}`,a=await fetch(s);if(!a.ok)throw Error("Failed to download image");let r=await a.blob(),l=window.URL.createObjectURL(r),i=document.createElement("a");i.href=l,i.download=t||`tryon-${Date.now()}.jpg`,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(l)}catch(e){throw console.error("Failed to download image:",e),Error("Failed to download image")}}async function m(e,t){try{navigator.share?await navigator.share({title:t||"AI Try-On Result",text:"Check out my AI Try-On result!",url:e}):(await navigator.clipboard.writeText(e),console.log("Image URL copied to clipboard"))}catch(e){throw console.error("Failed to share image:",e),Error("Failed to share image")}}let x="try-on",u="pose",h="text-to-image";function p(e){switch(e){case x:return"ai-tryon";case u:return"ai-pose";case h:return"ai-text-to-image";default:return`ai-${e}`}}let g={"nano-banana":{id:"nano-banana",displayName:"Nano Banana 2",description:"Google Gemini 3.1 Flash 图像编辑,1K输出",provider:"kie",providerModelId:"nano-banana-2",credits:3,mediaType:"image",supportedFeatures:[x,u],supportedAspectRatios:["1/1","2/3","3/2","9/16","16/9"],defaultParams:{resolution:"1K",output_format:"png"},enabled:!0,priority:100},"nano-banana-pro":{id:"nano-banana-pro",displayName:"Nano Banana Pro",description:"Google DeepMind 旗舰模型,2K高清生成",badge:"Ultimate",provider:"kie",providerModelId:"nano-banana-pro",credits:8,mediaType:"image",supportedFeatures:[x,u],supportedAspectRatios:["1/1","2/3","3/2","9/16","16/9"],defaultParams:{resolution:"2K",output_format:"png"},enabled:!0,priority:90},"gpt-image":{id:"gpt-image",displayName:"GPT Image 2.5 Flare",description:"GPT Image 2.5 Flare 图像编辑,1K输出",provider:"kie",providerModelId:"gpt-image-2-5-flare-image-to-image",credits:2,mediaType:"image",supportedFeatures:[x,u],supportedAspectRatios:["1/1","2/3","3/2","9/16","16/9"],defaultParams:{resolution:"1K"},enabled:!0,priority:80},"flux-2-pro":{id:"flux-2-pro",displayName:"Flux 2 Pro",description:"Black Forest Labs 高质量图像生成",provider:"kie",providerModelId:"flux-2/pro-image-to-image",credits:2,mediaType:"image",supportedFeatures:[x,u],supportedAspectRatios:["1/1","2/3","3/2","9/16","16/9"],defaultParams:{resolution:"1K"},enabled:!0,priority:70},"seedream-v4":{id:"seedream-v4",displayName:"Seedream 5.0 Pro",description:"ByteDance Seedream 5.0 Pro 图像编辑,2K输出",badge:"Pro",provider:"kie",providerModelId:"seedream/5-pro-image-to-image",credits:8,mediaType:"image",supportedFeatures:[x,u],supportedAspectRatios:["1/1","2/3","3/2","9/16","16/9"],defaultParams:{quality:"high",resolution:"2K",output_format:"png"},enabled:!0,priority:60},"flux-text-to-image":{id:"flux-text-to-image",displayName:"Flux Text to Image",description:"文本生成图像",provider:"fal",providerModelId:"fal-ai/flux/schnell",credits:2,mediaType:"image",supportedFeatures:[h],enabled:!0,priority:20}};var f=s(46068),b=s(48636),v=s(92017),j=s(19329),w=s(81529),y=s(28684),N=s(38920),_=s(29264),k=s(81139),C=s(78234),S=s(97529),A=s(7558),z=s(15299),I=s(38184),L=s(31535),R=s(61712),F=s(56690),T=s(95237),P=s(83749),$=((a={}).MUSIC="music",a.IMAGE="image",a.VIDEO="video",a.TEXT="text",a.SPEECH="speech",a),D=s(94648),M=s(77833),E=s(9328);function U(e,t={}){let s=window;
1try{s.gtag?.("event",e,{page_path:window.location.pathname,...t})}catch{}}var O=s(37943);let B=[{label:"1:1",value:"1/1",icon:"□"},{label:"2:3",value:"2/3",icon:"▯"},{label:"3:2",value:"3/2",icon:"▭"},{label:"9:16",value:"9/16",icon:"▯"},{label:"16:9",value:"16/9",icon:"▭"}],G=["/imgs/showcase/ai-try-on/original/white-tank-skinny-jeans.jpg","/imgs/showcase/ai-try-on/original/mens-white-tee-jeans.jpg","/imgs/showcase/ai-try-on/original/white-tube-loose-jeans.jpg","/imgs/showcase/ai-try-on/original/white-tank-skinny-jeans.jpg","/imgs/showcase/ai-try-on/original/mens-white-tee-jeans.jpg"];function q(e){let t,s,a,o,c,d,m,x,u,h,p,g,f,b,y,N,_,k,C,S,A,z,I,L,R=(0,l.c)(60),{label:F,required:T,image:P,onUpload:$,onClear:D,hint:M,showModelPresets:E,onSelectPreset:U}=e,B=(0,i.useRef)(null),q=(0,i.useRef)(0),[Y,X]=(0,i.useState)(!1);R[0]!==Y?(t=e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",Y||X(!0)},R[0]=Y,R[1]=t):t=R[1];let Z=t;R[2]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{e.preventDefault(),e.stopPropagation(),q.current=q.current+1,X(!0)},R[2]=s):s=R[2];let J=s;R[3]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{e.preventDefault(),e.stopPropagation(),q.current=q.current-1,q.current<=0&&(q.current=0,X(!1))},R[3]=a):a=R[3];let Q=a;R[4]!==$?(o=e=>{if(e.type.startsWith("image/")){let t=new DataTransfer;t.items.add(e),B.current&&(B.current.files=t.files,$({target:B.current}))}},R[4]=$,R[5]=o):o=R[5];let ee=o;R[6]!==ee?(c=e=>{e.preventDefault(),e.stopPropagation(),q.current=0,X(!1);let t=e.dataTransfer.files;if(t&&t.length>0)return void ee(t[0]);let s=e.dataTransfer.getData("text/uri-list");s&&(s.startsWith("http://")||s.startsWith("https://"))&&fetch(s).then(H).then(e=>{ee(new File([e],"dropped-image.jpg",{type:e.type||"image/jpeg"}))}).catch(V)},R[6]=ee,R[7]=c):c=R[7];let et=c;R[8]!==ee?(d=e=>{let t=Array.from(e.clipboardData?.items||[]).find(K);if(t){e.preventDefault();let s=t.getAsFile();s&&ee(s)}},R[8]=ee,R[9]=d):d=R[9];let es=d;R[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(v.A,{className:"h-4 w-4 text-amber-500"}),R[10]=m):m=R[10],R[11]!==F?(x=(0,r.jsx)("span",{className:"text-base font-bold text-slate-900",children:F}),R[11]=F,R[12]=x):x=R[12];let ea=T?"text-amber-500":"text-slate-400";R[13]!==ea?(u=(0,O.cn)("text-xs font-medium",ea),R[13]=ea,R[14]=u):u=R[14];let er=T?"required":"optional";R[15]!==u||R[16]!==er?(h=(0,r.jsxs)("span",{className:u,children:["(",er,")"]}),R[15]=u,R[16]=er,R[17]=h):h=R[17],R[18]!==h||R[19]!==x?(p=(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[m,x,h]}),R[18]=h,R[19]=x,R[20]=p):p=R[20],R[21]!==F?(g=F.toLowerCase(),R[21]=F,R[22]=g):g=R[22];let el=`Upload ${g}`;R[23]===Symbol.for("react.memo_cache_sentinel")?(f=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),B.current?.click())},b=()=>B.current?.click(),R[23]=f,R[24]=b):(f=R[23],b=R[24]);let ei=Y?"scale-[1.02] border-amber-500 bg-amber-50 shadow-lg":P?"border-amber-400 bg-white":"border-slate-300 bg-slate-50 hover:border-amber-400 hover:bg-slate-100";return R[25]!==ei?(y=(0,O.cn)("relative aspect-[4/3] cursor-pointer rounded-xl border-2 border-dashed transition-all",ei),R[25]=ei,R[26]=y):y=R[26],R[27]!==Y?(N=Y&&(0,r.jsx)("div",{className:"absolute inset-0 z-20 flex items-center justify-center rounded-xl bg-amber-500/10 backdrop-blur-[2px]",children:(0,r.jsx)("div",{className:"rounded-full border border-amber-200 bg-white/90 px-4 py-2 text-sm font-medium text-amber-600 shadow-sm",children:"Drop to upload"})}),R[27]=Y,R[28]=N):N=R[28],R[29]!==F||R[30]!==$?(_=(0,r.jsx)("input",{ref:B,type:"file",accept:"image/*","aria-label":F,className:"hidden",onChange:$}),R[29]=F,R[30]=$,R[31]=_):_=R[31],R[32]!==P||R[33]!==F?(k=P?(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center p-3",children:(0,r.jsx)("img",{src:P,alt:`${F} preview`,className:"max-h-full max-w-full rounded-xl object-contain"})}):(0,r.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-2 p-4",children:[(0,r.jsx)("div",{className:"mb-1 rounded-full bg-white p-3 shadow-sm",children:(0,r.jsx)(j.A,{className:"h-5 w-5 text-slate-400"})}),(0,r.jsxs)("p",{className:"text-xs font-medium text-slate-400",children:["Drop ",F.toLowerCase().replace(" image","")," photo here"]}),(0,r.jsx)("p",{className:"text-[10px] text-slate-300",children:"- or -"}),(0,r.jsx)("p",{className:"cursor-pointer text-xs font-semibold text-amber-400 hover:text-amber-500",children:"Click to Upload"})]}),R[32]=P,R[33]=F,R[34]=k):k=R[34],R[35]!==Z||R[36]!==et||R[37]!==el||R[38]!==y||R[39]!==N||R[40]!==_||R[41]!==k?(C=(0,r.jsxs)("div",{role:"button",tabIndex:0,"aria-label":el,onKeyDown:f,onClick:b,onDragOver:Z,onDragEnter:J,onDragLeave:Q,onDrop:et,className:y,children:[N,_,k]}),R[35]=Z,R[36]=et,R[37]=el,R[38]=y,R[39]=N,R[40]=_,R[41]=k,R[42]=C):C=R[42],R[43]!==P||R[44]!==D?(S=P&&(0,r.jsx)("button",{onClick:e=>{e.stopPropagation(),D()},className:"absolute -top-2 -right-2 z-10 rounded-full bg-red-500 p-2 text-white shadow-lg transition-all hover:bg-red-600 hover:shadow-xl",children:(0,r.jsx)(w.A,{className:"h-4 w-4"})}),R[43]=P,R[44]=D,R[45]=S):S=R[45],R[46]!==C||R[47]!==S?(A=(0,r.jsxs)("div",{className:"relative",children:[C,S]}),R[46]=C,R[47]=S,R[48]=A):A=R[48],R[49]!==U||R[50]!==E?(z=E&&(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("span",{className:"text-xs font-medium text-slate-500",children:"or Choose a model:"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:G.map((e,t)=>(0,r.jsx)("button",{onClick:()=>U?.(e),className:"relative h-12 w-12 flex-shrink-0 overflow-hidden rounded-lg border-2 border-slate-200 shadow-sm transition-all hover:scale-105 hover:border-amber-500",children:(0,r.jsx)(n.default,{src:e,alt:`Model ${t+1}`,fill:!0,className:"object-cover",sizes:"48px"})},t))})]}),R[49]=U,R[50]=E,R[51]=z):z=R[51],R[52]!==M?(I=M&&(0,r.jsx)("div",{className:"space-y-0.5 rounded-lg border border-slate-100 bg-slate-50/30 px-2 py-1.5",children:M.split("\n").map(W)}),R[52]=M,R[53]=I):I=R[53],R[54]!==es||R[55]!==p||R[56]!==A||R[57]!==z||R[58]!==I?(L=(0,r.jsxs)("div",{className:"flex flex-col gap-3",tabIndex:0,onPaste:es,children:[p,A,z,I]}),R[54]=es,R[55]=p,R[56]=A,R[57]=z,R[58]=I,R[59]=L):L=R[59],L}function W(e,t){return(0,r.jsx)("p",{className:0===t?"text-xs text-slate-500":"text-[10px] leading-relaxed text-slate-400 [word-spacing:-2px]",children:e},t)}function K(e){return"file"===e.kind&&e.type.startsWith("image/")}function V(e){return console.error("Failed to fetch dropped image:",e)}function H(e){return e.blob()}function Y(e){let t,s,a=(0,l.c)(7),{value:i,onChange:n,supportedRatios:o,modelName:c}=e;return a[0]!==c||a[1]!==n||a[2]!==o||a[3]!==i?(t=B.map((e,t)=>{let s=!!o&&!o.includes(e.value),a=i===e.value,l=(0,r.jsxs)("div",{className:(0,O.cn)("flex h-full w-full flex-col items-center justify-center",s?"cursor-not-allowed":"cursor-pointer"),children:[(0,r.jsx)(X,{ratio:e.value,selected:a,disabled:s}),(0,r.jsx)("span",{className:(0,O.cn)("mt-1 text-xs font-medium",s?"text-slate-300":a?"text-amber-500":"text-slate-500"),children:e.label})]});return s?(0,r.jsx)(M.Bc,{children:(0,r.jsxs)(M.m_,{delayDuration:0,
1children:[(0,r.jsx)(M.k$,{asChild:!0,children:(0,r.jsx)("div",{className:(0,O.cn)("relative flex flex-1 cursor-not-allowed flex-col items-center justify-center rounded-lg border-2 border-slate-200 py-1 opacity-40 transition-all hover:border-slate-400 hover:bg-slate-50"),children:l})}),(0,r.jsx)(M.ZI,{side:"bottom",showArrow:!1,className:"border-slate-200 bg-white text-slate-700",children:(0,r.jsxs)("p",{children:["This aspect ratio is not supported by"," ",c||"current model"]})})]})},e.value):(0,r.jsx)("button",{onClick:()=>n(e.value),className:(0,O.cn)("relative flex flex-1 flex-col items-center justify-center rounded-lg border-2 py-1 transition-all",a?"border-amber-500 bg-amber-50/50 shadow-[0_0_0_1px_rgba(245,158,11,0.2)]":"border-slate-200 hover:border-slate-400 hover:bg-slate-50"),children:l},e.value)}),a[0]=c,a[1]=n,a[2]=o,a[3]=i,a[4]=t):t=a[4],a[5]!==t?(s=(0,r.jsx)("div",{className:"flex w-full gap-1 sm:gap-2",children:t}),a[5]=t,a[6]=s):s=a[6],s}function X(e){let{ratio:t,selected:s,disabled:a}=e,l=`${a?"stroke-slate-300":s?"stroke-amber-500":"stroke-slate-400"} fill-none stroke-[1.5]`;switch(t){case"1/1":return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:l,children:(0,r.jsx)("rect",{x:"3",y:"3",width:"14",height:"14",rx:"2"})});case"2/3":return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:l,children:(0,r.jsx)("rect",{x:"5",y:"2",width:"10",height:"16",rx:"2"})});case"3/2":return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:l,children:(0,r.jsx)("rect",{x:"2",y:"5",width:"16",height:"10",rx:"2"})});case"9/16":return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:l,children:(0,r.jsx)("rect",{x:"6",y:"1",width:"8",height:"18",rx:"2"})});case"16/9":return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:l,children:(0,r.jsx)("rect",{x:"1",y:"6",width:"18",height:"8",rx:"2"})});default:return null}}function Z(e){let t,s,a,i,n,o,c,d,m,x,u,h,p,g,f,b=(0,l.c)(33),{isOpen:v,value:j,onChange:w,onClose:N,onConfirm:_,onReset:k}=e;return v?(b[0]!==N?(t=(0,r.jsx)("div",{className:"absolute inset-0 bg-slate-900/40 backdrop-blur-sm transition-opacity",onClick:N}),b[0]=N,b[1]=t):t=b[1],b[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)("h2",{className:"text-lg font-bold text-slate-900",children:"Edit Prompt"}),b[2]=s):s=b[2],b[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsx)(y.A,{className:"h-5 w-5"}),b[3]=a):a=b[3],b[4]!==N?(i=(0,r.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[s,(0,r.jsx)("button",{onClick:N,className:"rounded-full p-1.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",children:a})]}),b[4]=N,b[5]=i):i=b[5],b[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("p",{className:"text-xs text-slate-500",children:"Add optional details to guide the pose reference. Both input photos are still required."}),b[6]=n):n=b[6],b[7]!==i?(o=(0,r.jsxs)("div",{className:"flex-shrink-0 border-b border-slate-100 bg-slate-50/50 px-6 py-4",children:[i,n]}),b[7]=i,b[8]=o):o=b[8],b[9]!==w?(c=e=>w(e.target.value),b[9]=w,b[10]=c):c=b[10],b[11]!==c||b[12]!==j?(d=(0,r.jsx)("div",{className:"min-h-[200px] flex-1 p-6",children:(0,r.jsx)("textarea",{value:j,onChange:c,className:"h-full min-h-[200px] w-full resize-none rounded-xl border border-slate-200 bg-slate-50 p-4 text-sm leading-relaxed text-slate-900 transition-all placeholder:text-slate-300 focus:border-amber-500 focus:bg-white focus:ring-4 focus:ring-amber-500/10 focus:outline-none",placeholder:"Optional: identify the person and clothing to preserve, and clarify which parts of the reference pose to follow. A prompt cannot replace the pose reference photo.",autoFocus:!0})}),b[11]=c,b[12]=j,b[13]=d):d=b[13],b[14]!==k?(m=(0,r.jsx)("button",{onClick:k,className:"rounded-lg px-4 py-2 text-sm font-medium text-slate-500 transition-colors hover:bg-slate-200/50 hover:text-slate-700",children:"Reset to default"}),b[14]=k,b[15]=m):m=b[15],b[16]!==N?(x=(0,r.jsx)("button",{onClick:N,className:"rounded-lg border border-slate-200 bg-white px-4 py-2 text-sm font-medium text-slate-600 shadow-sm transition-all hover:border-slate-300 hover:bg-slate-50",children:"Cancel"}),b[16]=N,b[17]=x):x=b[17],b[18]!==_?(u=(0,r.jsx)("button",{onClick:_,className:"rounded-lg bg-gradient-to-r from-amber-500 to-amber-600 px-6 py-2 text-sm font-bold text-white shadow-md transition-all hover:-translate-y-0.5 hover:from-amber-600 hover:to-amber-700 hover:shadow-lg",children:"Confirm"}),b[18]=_,b[19]=u):u=b[19],b[20]!==x||b[21]!==u?(h=(0,r.jsxs)("div",{className:"flex gap-3",children:[x,u]}),b[20]=x,b[21]=u,b[22]=h):h=b[22],b[23]!==h||b[24]!==m?(p=(0,r.jsxs)("div",{className:"flex flex-shrink-0 items-center justify-between border-t border-slate-100 bg-slate-50 px-6 py-4",children:[m,h]}),b[23]=h,b[24]=m,b[25]=p):p=b[25],b[26]!==p||b[27]!==o||b[28]!==d?(g=(0,r.jsxs)("div",{className:"animate-in fade-in zoom-in-95 relative flex max-h-[85vh] w-full max-w-2xl flex-col overflow-hidden rounded-2xl border border-slate-100 bg-white shadow-2xl duration-200",children:[o,d,p]}),b[26]=p,b[27]=o,b[28]=d,b[29]=g):g=b[29],b[30]!==t||b[31]!==g?(f=(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[t,g]}),b[30]=t,b[31]=g,b[32]=f):f=b[32],f):null}function J(e){let t,s,a,i,n,o,c,d,m,x,u,h,p,g,f,b,v=(0,l.c)(20),{isOpen:j,onClose:w}=e;return j?(v[0]!==w?(t=(0,r.jsx)("div",{className:"absolute inset-0 bg-slate-900/60 backdrop-blur-sm transition-opacity",onClick:w}),v[0]=w,v[1]=t):t=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)("div",{className:"flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-amber-100 shadow-sm",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-amber-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),v[2]=s):s=v[2],v[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsx)("div",{className:"border-b border-amber-100/50 bg-gradient-to-br from-amber-50/80 to-orange-50/50 px-6 py-5",children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[s,(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h2",{className:"text-lg font-bold tracking-tight text-slate-900",children:"Content Safety Notice"}),(0,r.jsx)("p",{className:"mt-0.5 text-xs font-medium text-amber-700/80",children:"Generation Interrupted"})]})]})}),v[3]=a):a=v[3],v[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)("p",{className:"mb-6 text-sm leading-relaxed text-slate-600",children:"We ap
1ologize, but the AI model flagged your content as potentially conflicting with safety guidelines. To proceed, please consider:"}),v[4]=i):i=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("div",{className:"mt-0.5 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border border-slate-100 bg-slate-50 transition-colors group-hover:bg-slate-100",children:(0,r.jsx)("span",{className:"text-xs font-bold text-slate-600",children:"1"})}),v[5]=n):n=v[5],v[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsxs)("div",{className:"group flex items-start gap-3 text-sm",children:[n,(0,r.jsxs)("p",{className:"leading-relaxed text-slate-600",children:[(0,r.jsx)("span",{className:"font-semibold text-slate-900",children:"Retry or Modify Prompt"})," ","- AI safety filters can be sensitive; sometimes simply retrying or slightly rewording your prompt works."]})]}),v[6]=o):o=v[6],v[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{className:"mt-0.5 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border border-slate-100 bg-slate-50 transition-colors group-hover:bg-slate-100",children:(0,r.jsx)("span",{className:"text-xs font-bold text-slate-600",children:"2"})}),v[7]=c):c=v[7],v[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsxs)("div",{className:"group flex items-start gap-3 text-sm",children:[c,(0,r.jsxs)("p",{className:"leading-relaxed text-slate-600",children:[(0,r.jsx)("span",{className:"font-semibold text-slate-900",children:"Adjust the Photo"})," ","- Try using an image with more conservative clothing or coverage."]})]}),v[8]=d):d=v[8],v[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)("div",{className:"mt-0.5 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border border-slate-100 bg-slate-50 transition-colors group-hover:bg-slate-100",children:(0,r.jsx)("span",{className:"text-xs font-bold text-slate-600",children:"3"})}),v[9]=m):m=v[9],v[10]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsxs)("div",{className:"group flex items-start gap-3 text-sm",children:[m,(0,r.jsxs)("p",{className:"leading-relaxed text-slate-600",children:[(0,r.jsx)("span",{className:"font-semibold text-slate-900",children:"Use a Preset"})," ","- Choose one of our verified model presets."]})]}),v[10]=x):x=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsx)("div",{className:"mt-0.5 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border border-slate-100 bg-slate-50 transition-colors group-hover:bg-slate-100",children:(0,r.jsx)("span",{className:"text-xs font-bold text-slate-600",children:"4"})}),v[11]=u):u=v[11],v[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsxs)("div",{className:"mb-6 space-y-4",children:[o,d,x,(0,r.jsxs)("div",{className:"group flex items-start gap-3 text-sm",children:[u,(0,r.jsxs)("p",{className:"leading-relaxed text-slate-600",children:[(0,r.jsx)("span",{className:"font-semibold text-slate-900",children:"Switch Model"})," ","- Different AI models have varying safety thresholds."]})]})]}),v[12]=h):h=v[12],v[13]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full bg-emerald-100",children:(0,r.jsx)("svg",{className:"h-3 w-3 text-emerald-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),v[13]=p):p=v[13],v[14]===Symbol.for("react.memo_cache_sentinel")?(g=(0,r.jsxs)("div",{className:"px-6 py-6",children:[i,h,(0,r.jsx)("div",{className:"rounded-xl border border-emerald-100/50 bg-emerald-50/80 px-4 py-3.5 shadow-sm",children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[p,(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("p",{className:"mb-1 text-sm leading-none font-semibold text-emerald-900",children:"Credits Refunded"}),(0,r.jsx)("p",{className:"text-xs leading-relaxed text-emerald-700/90",children:"The generation was cancelled and your credits have been fully returned. No charge was applied."})]})]})})]}),v[14]=g):g=v[14],v[15]!==w?(f=(0,r.jsxs)("div",{className:"animate-in fade-in zoom-in-95 relative w-full max-w-md overflow-hidden rounded-2xl border border-slate-100 bg-white shadow-2xl duration-200",children:[a,g,(0,r.jsx)("div",{className:"flex justify-end border-t border-slate-100/80 bg-slate-50/50 px-6 py-4",children:(0,r.jsx)("button",{onClick:w,className:"rounded-lg bg-slate-900 px-6 py-2.5 text-sm font-semibold text-white shadow-sm transition-all hover:-translate-y-0.5 hover:bg-slate-800 hover:shadow active:translate-y-0",children:"Understood"})})]}),v[15]=w,v[16]=f):f=v[16],v[17]!==t||v[18]!==f?(b=(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[t,f]}),v[17]=t,v[18]=f,v[19]=b):b=v[19],b):null}function Q(e){let t,s,a,i,n,o,c,d,m,x,u,h,p,g=(0,l.c)(29),{image:f,onClose:b,onDownload:v,onShare:j}=e;return f?(g[0]!==b?(t=(0,r.jsx)("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm transition-opacity",onClick:b}),g[0]=b,g[1]=t):t=g[1],g[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)(y.A,{className:"h-6 w-6 text-white"}),g[2]=s):s=g[2],g[3]!==b?(a=(0,r.jsx)("button",{onClick:b,className:"absolute top-4 right-4 z-10 rounded-full bg-white/10 p-2 transition-colors hover:bg-white/20",children:s}),g[3]=b,g[4]=a):a=g[4],g[5]!==f.url?(i=(0,r.jsx)("img",{src:f.url,alt:"Generated Result",className:"max-h-[90vh] max-w-full rounded-lg object-contain shadow-2xl"}),g[5]=f.url,g[6]=i):i=g[6],g[7]!==f||g[8]!==v?(n=()=>v(f),g[7]=f,g[8]=v,g[9]=n):n=g[9],g[10]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(N.A,{className:"h-4 w-4"}
1),g[10]=o):o=g[10],g[11]!==n?(c=(0,r.jsxs)("button",{onClick:n,className:"flex items-center gap-2 rounded-lg bg-white/90 px-4 py-2 text-sm font-medium text-slate-700 shadow-lg transition-colors hover:bg-white",children:[o,"Download"]}),g[11]=n,g[12]=c):c=g[12],g[13]!==f||g[14]!==j?(d=()=>j(f),g[13]=f,g[14]=j,g[15]=d):d=g[15],g[16]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(_.A,{className:"h-4 w-4"}),g[16]=m):m=g[16],g[17]!==d?(x=(0,r.jsxs)("button",{onClick:d,className:"flex items-center gap-2 rounded-lg bg-white/90 px-4 py-2 text-sm font-medium text-slate-700 shadow-lg transition-colors hover:bg-white",children:[m,"Share"]}),g[17]=d,g[18]=x):x=g[18],g[19]!==x||g[20]!==c?(u=(0,r.jsxs)("div",{className:"absolute bottom-4 left-1/2 flex -translate-x-1/2 gap-3",children:[c,x]}),g[19]=x,g[20]=c,g[21]=u):u=g[21],g[22]!==u||g[23]!==i?(h=(0,r.jsxs)("div",{className:"relative z-10 flex max-h-[90vh] max-w-[90vw] items-center justify-center",children:[i,u]}),g[22]=u,g[23]=i,g[24]=h):h=g[24],g[25]!==t||g[26]!==h||g[27]!==a?(p=(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[t,a,h]}),g[25]=t,g[26]=h,g[27]=a,g[28]=p):p=g[28],p):null}function ee(e){let t,s,a,n,o,c=(0,l.c)(11),{generatedImage:d,onClear:m,isLoading:x,progress:u}=e,h=void 0!==x&&x,[p,g]=(0,i.useState)(0);c[0]!==d||c[1]!==h?(t=()=>{let e;return h?(g(0),e=setInterval(()=>{g(et)},50)):d?g(100):g(0),()=>{e&&clearInterval(e)}},s=[h,d],c[0]=d,c[1]=h,c[2]=t,c[3]=s):(t=c[2],s=c[3]),(0,i.useEffect)(t,s);e:{if(p<20){a="Processing your input images...";break e}if(p<50){a="Generating the edited image...";break e}if(p<80){a="Adjusting lighting and shadows...";break e}a="Polishing final details..."}let f=a;return c[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsxs)("div",{className:"mb-4 flex items-center gap-1",children:[(0,r.jsx)(k.A,{className:"h-4 w-4 text-amber-500"}),(0,r.jsx)("span",{className:"text-base font-bold text-slate-900",children:"Result"})]}),c[4]=n):n=c[4],c[5]!==d||c[6]!==h||c[7]!==p||c[8]!==m||c[9]!==f?(o=(0,r.jsxs)("div",{className:"flex h-full flex-col",children:[n,(0,r.jsx)("div",{className:"relative flex flex-1 flex-col justify-center overflow-hidden rounded-xl bg-slate-50",children:h?(0,r.jsxs)("div",{className:"relative flex h-full w-full items-center justify-center overflow-hidden bg-slate-50 p-8",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1/2 left-1/2 h-64 w-64 -translate-x-1/2 -translate-y-1/2 rounded-full bg-amber-200/40 mix-blend-multiply blur-[80px]"}),(0,r.jsx)("div",{className:"pointer-events-none absolute top-0 right-0 h-96 w-96 rounded-full bg-violet-200/40 mix-blend-multiply blur-[100px]"}),(0,r.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 h-96 w-96 rounded-full bg-blue-200/40 mix-blend-multiply blur-[100px]"}),(0,r.jsxs)("div",{className:"relative z-10 flex w-full max-w-md flex-col items-center gap-8",children:[(0,r.jsxs)("div",{className:"relative flex h-28 w-28 items-center justify-center",children:[(0,r.jsx)("div",{className:"absolute inset-0 rounded-full border-2 border-slate-200/60"}),(0,r.jsxs)("svg",{className:"absolute inset-0 h-full w-full animate-spin",style:{animationDuration:"3s"},viewBox:"0 0 100 100",children:[(0,r.jsx)("circle",{cx:"50",cy:"50",r:"48",fill:"none",stroke:"url(#spinner-gradient)",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"80 220"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"spinner-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"#f59e0b",stopOpacity:"0"}),(0,r.jsx)("stop",{offset:"50%",stopColor:"#f59e0b"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"#d946ef"})]})})]}),(0,r.jsx)("div",{className:"absolute inset-4 flex items-center justify-center rounded-full border border-slate-100 bg-white shadow-[0_0_20px_rgba(0,0,0,0.05)]",children:(0,r.jsx)("div",{className:"absolute inset-0 animate-pulse rounded-full bg-gradient-to-tr from-amber-500/5 to-violet-500/5"})}),(0,r.jsxs)("svg",{className:"relative z-10 h-10 w-10 text-slate-400 drop-shadow-sm",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)("path",{d:"M12 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"}),(0,r.jsx)("path",{d:"M12 7v5"}),(0,r.jsx)("path",{d:"M6 19h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2z"}),(0,r.jsx)("path",{d:"M6 15l6-3 6 3"})]})]}),(0,r.jsxs)("div",{className:"w-full space-y-6 text-center",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-center gap-2",children:[(0,r.jsx)("span",{className:"text-2xl font-light tracking-wide text-slate-700",children:"Generating"}),(0,r.jsxs)("span",{className:"bg-gradient-to-r from-amber-500 to-amber-600 bg-clip-text text-3xl font-bold text-transparent",children:[Math.round(p),"%"]})]}),(0,r.jsx)("p",{className:"animate-pulse text-sm font-light tracking-wide text-slate-500",children:f})]}),(0,r.jsx)("div",{className:"group relative h-1.5 w-full overflow-hidden rounded-full bg-slate-200 shadow-inner",children:(0,r.jsx)("div",{className:"relative h-full bg-gradient-to-r from-violet-500 via-fuchsia-400 to-amber-400",style:{width:`${Math.max(5,Math.min(100,p))}%`,transition:"width 0.2s linear"},children:(0,r.jsx)("div",{className:"absolute top-0 right-0 bottom-0 w-20 translate-x-full transform animate-[shimmer_2s_infinite] bg-gradient-to-r from-transparent to-white/80 blur-sm"})})}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[(0,r.jsxs)("div",{className:"rounded-lg border border-slate-200 bg-white/60 p-3 shadow-sm backdrop-blur-sm",children:[(0,r.jsx)("p",{className:"mb-1 text-xs text-slate-500",children:"Estimated Time"}),(0,r.jsx)("p",{className:"text-sm font-medium text-slate-800",children:"1–3 min"})]}),(0,r.jsxs)("div",{className:"rounded-lg border border-slate-200 bg-white/60 p-3 shadow-sm backdrop-blur-sm",children:[(0,r.jsx)("p",{className:"mb-1 text-xs text-slate-500",children:"Queue Status"}),(0,r.jsxs)("p",{className:"flex items-center justify-center gap-1 text-sm font-medium text-emerald-600",children:[(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-emerald-500"}),"Active"]})]})]}),(0,r.jsx)("p",{className:"mt-4 text-xs text-slate-400",children:"Do not close this tab while processing"})]})]})]}):d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-white",children:(0,r.jsx)("img",{src:d.url,alt:"Generated Result",className:"max-h-full max-w-full object-contain"})}),(0,r.jsxs)("div",{className:"absolute top-3 right-3 z-10 flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>(function(e){let t=document.createElement("a");t.href=e,t.download=`ai-tryon-${Date.now()}.jpg`,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)})(d.url),className:"rounded-lg bg-amber-500 px-3 py-1.5 text-xs font-medium text-white shadow-sm transition-colors hover:bg-amber-600",children:"Download"}),(0,r.jsx)("button",{onClick:m,className:"rounded-lg border border-slate-200 bg-white px-3 py-1.5 text-xs font-medium text-slate-700 shadow-sm transition-colors hover:bg-slate-100",children:"Clear"})]})]}):(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center p-8",children:(0,r.jsx)("p",{className:"text-center text-sm text-slate-500",children:"No result yet. Upload your images and click Generate to see the edited photo."})})})]}),c[5]=d,c[6]=h,c[7]=p,c[8]=m,c[9]=f,c[10]=o):o=c[10],o}f.A,b.A;function et(e){let t;return t=e<45?.375:e<70?.042:e<85?.09:.012*(e<99),Math.min(e+t,99)}function es({section:e,className:t}){let{user:s,isCheckSign:a,isReady:l,setIsShowSignModal:n,fetchUserCredits:h}=(0,E.U)(),f=(0,F.Ym)(),b=(0,P.rd)(),[v,j]=(0,i.useState)("reference"),y=(0,i.useRef)({reference:"",text:""}),M=(0,i.useRef)(!1),B=()=>{M.current||(M.current=!0,U("try_on_start",{mode:v}))};(0,i.useEffect)(()=>{U("try_on_view")},[]);let G=!a&&!!s,[W,K]=(0,i.useState)(!1);(0,i.useEffect)(()=>{K(!0)},[]);let V="pose"===e.feature?u:x,[H,X]=(0,i.useState)(null),[et,es]=(0,i.useState)([]),[ea,er]=(0,i.useState)(null),[el,ei]=(0,i.useState)(""),[en,eo]=(0,i.useState)(""),[ec,ed]=(0,i.useState)(!1),[em,ex]=(0,i.useState)(!1),[eu,eh]=(0,i.useState)(null),[ep,eg]=(0,i.useState)(null),[ef,eb]=(0,i.useState)([]),[ev,ej]=(0,i.useState)(0),[ew,ey]=(0,i.useState)("1/1"),[eN,e_]=(0,i.useState)("nano-banana");(0,i.useRef)(null);let ek=Math.ceil(ef.length/8),eC=ef.slice(8*ev,(ev+1)*8),eS=(0,i.useMemo)(()=>(function(e,t){let{enabledOnly:s=!0,mediaType:a}=t||{};return Object.values(g).filter(t=>!!t.supportedFeatures.includes(e)&&(!s||!!t.enabled)&&(!a||t.mediaType===a)).sort((e,t)=>
1(t.priority||0)-(e.priority||0))})(V,{enabledOnly:!0,mediaType:$.IMAGE}).map(e=>({id:e.id,name:e.displayName,credits:e.credits,badge:e.badge,description:e.description,supportedAspectRatios:e.supportedAspectRatios,defaultParams:e.defaultParams})),[V]),eA=s?.credits?.remainingCredits||0,ez=(0,i.useMemo)(()=>{let e=eS.find(e=>e.id===eN);return e?.credits||0},[eN,eS]),eI=eA>=ez,eL=(0,i.useMemo)(()=>{let e=eS.find(e=>e.id===eN);return e?.supportedAspectRatios},[eN,eS]);(0,i.useEffect)(()=>{eL?.length&&!eL.includes(ew)&&ey(eL[0])},[eL,ew]);let eR=(0,i.useMemo)(()=>{let e=eS.find(e=>e.id===eN);return e?.name},[eN,eS]),eF=(0,i.useMemo)(()=>{let e=eS.find(e=>e.id===eN);return e?.defaultParams?.resolution?.toLowerCase()||"2k"},[eN,eS]),{status:eT,progress:eP,isLoading:e$,generate:eD,reset:eM}=function(e={}){let{onSuccess:t,onError:s,pollInterval:a=3e3,maxPollAttempts:r=200}=e,[l,n]=(0,i.useState)("idle"),[d,m]=(0,i.useState)(0),[h,f]=(0,i.useState)(null),b=(0,i.useRef)(0),v=(0,i.useRef)(null),j=async e=>{let t=new FormData;t.append("files",e);let s=await fetch("/api/storage/upload-image",{method:"POST",body:t}),a=await s.json();if(0!==a.code||!a.data?.urls?.length)throw Error(a.message||"Failed to upload image");return a.data.urls[0]},w=async(e,t)=>{let s=await fetch(e),a=await s.blob();return new File([a],t,{type:a.type||"image/jpeg"})},y=async e=>new Promise((t,s)=>{let l=async()=>{try{if(b.current++,m(Math.min(90,30+b.current/r*60)),b.current>r)return void s(Error("Generation is still processing. Check My Creations before starting another generation."));let i=await fetch("/api/ai/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({taskId:e})}),n=await i.json();if(0!==n.code)return void s(Error(n.message||"Failed to query task"));let o=n.data,c=o?.status,d=o?.taskInfo;if("string"==typeof d)try{d=JSON.parse(d)}catch{}if("success"===c){let e=d?.images||[];e.length>0&&e[0].imageUrl?t({id:`tryon-${Date.now()}`,imageUrl:e[0].imageUrl,timestamp:new Date,aspectRatio:"3/4",resolution:"2k"}):s(Error("No image generated"));return}if("failed"===c)return void s(Error(d?.errorMessage||"Generation failed"));setTimeout(l,a)}catch(e){s(e)}};l()}),N=(0,i.useCallback)(async(e,a,r)=>{try{var l,i;let s,d,h,v,N;n("uploading"),m(10),f(null),b.current=0;let _=r?.feature||x,k=r?.modelId||"gpt-image",C=r?.customPrompt?.trim()||"";if(_===u&&!a)throw Error("Upload a pose reference photo.");let S=null!=a;if(!S&&!C){if(_===u)throw Error("请上传姿势参考图或输入描述");throw Error("请上传衣服图片或输入描述")}let A=g[k];if(!A)throw Error(`Invalid model: ${k}`);if(l=k,i=_,!((N=g[l])&&N.enabled&&N.supportedFeatures.includes(i)))throw Error(`Model ${k} does not support feature ${_}`);if(s="string"==typeof e?await w(e,"person.jpg"):e,m(15),S){let e;e="string"==typeof a?await w(a,"garment.jpg"):a;let[t,r]=await Promise.all([j(s),j(e)]);d=[t,r]}else d=[await j(s)];n("generating"),m(30);let z=r?.aspectRatio||"3/4",I=r?.resolution||"2k";if(S){let e=_===u?"Change the pose of the person in image 1 to match the body pose in image 2. Keep the identity, face, hair, clothing and background of image 1 as closely as possible. Use image 2 only as a pose reference, not as a clothing or face reference. Produce one realistic photo.":"将图1人物衣服替换为图2";h=C?`${e}。额外要求:${C}`:e}else h=C;let L={image_input:d,feature:_,aspect_ratio:z,resolution:I};console.log("\uD83D\uDCE4 Frontend sending to API:",{modelId:k,prompt:h,hasGarmentImage:S,imageCount:d.length,aspectRatio:z,resolution:I});let R=await fetch("/api/ai/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelId:k,mediaType:"image",scene:_===u?"pose":"image-to-image",prompt:h,options:L})}),F=await R.json();if(0!==F.code)throw Error(F.message||"Failed to generate image");let T=F.data?.taskInfo?JSON.parse(F.data.taskInfo):null,P=T?.images||[];if(P.length>0&&P[0].imageUrl)m(90),v={id:`tryon-${Date.now()}`,imageUrl:P[0].imageUrl,timestamp:new Date,aspectRatio:r?.aspectRatio||"3/4",resolution:r?.resolution||"2k",modelName:A.dis
1playName};else{if(!F.data?.id)throw Error("No task ID returned from server");n("polling"),m(30),v=await y(F.data.id)}r?.aspectRatio&&(v.aspectRatio=r.aspectRatio),r?.resolution&&(v.resolution=r.resolution),v.modelName=A.displayName,n("success"),m(100),t?.(v);let $=p(_);return!function(e,t,s={}){let{maxItems:a=8,expirationDays:r=14}=s;try{let s=o(e),l=new Date;l.setDate(l.getDate()+r);let i={...t,expiresAt:l};s.unshift(i);let n=s.slice(0,a);c(e,n)}catch(e){console.error("Failed to add to workspace history:",e)}}($,{id:v.id,imageUrl:v.imageUrl,timestamp:v.timestamp,aspectRatio:v.aspectRatio,resolution:v.resolution,modelName:v.modelName}),v}catch(e){throw n("error"),f(e.message),s?.(e.message),e}},[t,s,a,r]),_=(0,i.useCallback)(()=>{v.current?.abort(),n("idle"),m(0),f(null),b.current=0},[]),k=(0,i.useCallback)(()=>{n("idle"),m(0),f(null),b.current=0},[]);return{status:l,progress:d,error:h,isLoading:["uploading","generating","polling"].includes(l),generate:N,cancel:_,reset:k}}({onSuccess:e=>{let t={id:e.id,url:e.imageUrl,timestamp:e.timestamp,aspectRatio:e.aspectRatio,resolution:e.resolution,modelName:eR||"Unknown"};U("try_on_success",{mode:v,model:eN}),eg(t),eb(e=>[t,...e]),T.oR.success("Image generated successfully!")},onError:e=>{U("try_on_failure",{mode:v,model:eN});let t=(e||"").toLowerCase();t.includes("nsfw")||t.includes("not safe for work")||t.includes("content policy")?ex(!0):T.oR.error(e||"Failed to generate image")}});(0,i.useEffect)(()=>{let e=o(p(V));e&&e.length>0&&eb(e.map(e=>({id:e.id,url:e.imageUrl,timestamp:new Date(e.timestamp),aspectRatio:e.aspectRatio||"3/4",resolution:e.resolution||"2k",modelName:e.modelName||"Unknown"})))},[V]),(0,i.useEffect)(()=>{G&&s&&h()},[G,s?.id,h]);let eE=e=>t=>{let s=t.target.files?.[0];s&&(e(URL.createObjectURL(s)),B(),t.target.value="")},eU="reference"===v&&et.length>0,eO=el.trim().length>0,eB=V===x?"reference"===v:V===u&&!!ea,eG=(0,i.useMemo)(()=>V===x?!!H&&("reference"===v?eU:eO):V===u&&H&&ea,[V,H,eU,eO,ea,v]),eq=(0,i.useMemo)(()=>!W||!l||!!e$||!!G&&!eG,[W,l,G,e$,eG]),eW=(0,i.useMemo)(()=>{let e="px-8 py-3 rounded-lg font-bold text-lg transition-all flex items-center gap-2 shadow-lg hover:shadow-xl hover:-translate-y-0.5";return!W||!l||eq&&G?(0,O.cn)(e,"bg-slate-200 text-slate-400 cursor-not-allowed shadow-none"):(G,(0,O.cn)(e,"bg-[rgb(255,251,235)] text-amber-600 hover:bg-amber-100 shadow-amber-500/25 ring-1 ring-amber-500/20"))},[W,l,eq,G,eI,eG]),eK=async()=>{if(!G){U("try_on_login_required",{mode:v}),n(!0);return}if(!eI){U("try_on_pricing",{mode:v}),b.push("/pricing");return}if(V===x){if(!H||!eG)return;U("try_on_generate",{mode:v,model:eN,credits:ez});try{let e=function(e,t,s,a){if(!t)throw Error("Add a person photo.");if("reference"===e&&1!==s.length)throw Error("Add exactly one clothing reference.");if("text"===e&&!a.trim())throw Error("Describe the outfit you want.");return{person:t,reference:"reference"===e?s[0]:null,prompt:a.trim()}}(v,H,et,el);await eD(e.person,e.reference,{aspectRatio:ew,resolution:eF,feature:x,modelId:eN,customPrompt:e.prompt}),await h()}catch(e){}}else if(V===u){if(!H)return void T.oR.error("Please upload a person image");try{await eD(H,ea,{aspectRatio:ew,resolution:eF,feature:u,modelId:eN,customPrompt:el}),await h()}catch(e){}}},eV=()=>{eg(null),eM()},eH=e=>{eh(e)},eY=async e=>{try{await d(e.url,`tryon-${e.id}.jpg`),T.oR.success("Image downloaded successfully!")}catch(e){T.oR.error("Failed to download image")}},eX=async e=>{try{await m(e.url,"AI Try-On Result"),T.oR.success("Image shared successfully!")}catch(e){T.oR.error("Failed to share image")}},eZ=async(e,t)=>{t.stopPropagation();try{await d(e.url,`tryon-${e.id}.jpg`),T.oR.success("Image downloaded successfully!")}catch(e){T.oR.error("Failed to download image")}},eJ=async(e,t)=>{t.stopPropagation();try{var s=p(V),a=e.id;try{let e=o(s).filter(e=>e.id!==a);c(s,e)}catch(e){console.error("Failed to remove from workspace history:",e)}eb(t=>t.filter(t=>t.id!==e.id)),ep?.id===e.id&&eg(null),T.oR.success("Image deleted from history")}catch(e){T.oR.error("Failed to delete image")}},eQ=async(e,t)=>{t.stopPropagation();try{await m(e.url,"AI Try-On Result"),T.oR.success("Image shared successfully!")}catch(e){T.oR.error("Failed to share image")}},e0=e=>{"left"===e&&ev>0?ej(e=>e-1):"right"===e&&ev<ek-1&&ej(e=>e+1)};return(0,r.jsxs)("section",{id:e.id||"try-on-tool",className:(0,O.cn)("relative overflow-x-hidden bg-slate-50 py-8",e.className,t),children:[(0,r.jsxs)("div",{className:"mx-auto w-full max-w-[1332px] px-4",children:[(0,r.jsxs)("div",{className:"mb-6 pt-5",children:[(0,r.jsx)("h2",{className:"text-center text-2xl font-semibold text-slate-900",children:e.title||"Choose how to change your outfit"}),V===x&&(0,r.jsx)("div",{className:"mt-5 flex flex-wrap justify-center gap-2",role:"group","aria-label":"Outfit change mode",children:[["reference","Try on a clothing photo"],["text","Describe a new outfit"]].map(([e,t])=>(0,r.jsx)("button",{type:"button",disabled:e$,"aria-pressed":v===e,onClick:()=>{y.current[v]=el,ei(y.current[e]),j(e),U("try_on_mode",{mode:e})},className:(0,O.cn)("rounded-lg border px-5 py-3 text-sm font-medium transition-colors",v===e?"border-amber-500 bg-amber-50 text-amber-800":"border-slate-200 bg-white text-slate-600 hover:bg-slate-100"),children:t},e))}),(0,r.jsx)("p",{className:"mx-auto mt-3 max-w-xl text-center text-sm text-slate-600",children:V===u?"Upload one person photo and one pose reference. Both images are required. Identity, clothing and background details may change.":"reference"===v?"Upload one person photo and one clothing reference. Add optional instructions for details.":"Upload a person photo and describe the clothes you want. No clothing reference is used in this mode."}),(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-3",children:[(0,r.jsx)("button",{type:"button",disabled:e$,className:"text-sm font-medium text-amber-800 underline underline-offset-4",onClick:()=>
1{if(V===u){X("/imgs/showcase/ai-pose/champagne-gown-original.webp"),er("/imgs/showcase/ai-pose/office-look-original.webp"),ei("Use only the seated body pose from the reference; keep the original dress, face and plain background."),B();return}X("/imgs/showcase/ai-try-on/original/mens-white-tee-jeans.jpg"),"reference"===v&&es(["/imgs/hero-scroll/col4/black-suit-set-flat.webp"]),ei("text"===v?"Dress the person in a black business suit and a white shirt. Preserve the face, pose and background.":"Use the black suit and white shirt from the reference. Preserve the face, pose and background."),B(),U("try_on_example",{mode:v})},children:"Use sample photos and prompt"}),(0,r.jsx)("span",{className:"text-xs text-slate-500",children:"Loads inputs only. Generation uses credits."})]})]}),(0,r.jsx)("div",{className:"mb-5 text-center text-sm",children:(0,r.jsx)("a",{className:"underline underline-offset-4",href:V===u?"/virtual-clothes-try-on":"/ai-pose-changer",children:V===u?"Want to change clothes? Open Virtual Try-On":"Want to change the pose? Open AI Pose Changer"})}),(0,r.jsxs)("details",{className:"mb-6 rounded-lg border border-slate-200 bg-white p-4",children:[(0,r.jsxs)("summary",{className:"cursor-pointer text-sm font-medium text-slate-700",children:["Advanced settings: ",eR,", ",ez," ","credits, ",eF.toUpperCase()]}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("div",{className:"inline-flex max-w-full flex-wrap items-center justify-center gap-0.5 rounded-lg border border-slate-200 bg-white p-1 shadow-sm",children:0===eS.length?(0,r.jsx)("div",{className:"px-4 py-2 text-sm text-slate-500",children:"No models available for this feature"}):eS.map(e=>(0,r.jsxs)("div",{className:"relative",children:[e.badge&&(0,r.jsx)("div",{className:(0,O.cn)("absolute -top-3 left-1/2 z-10 -translate-x-1/2 rounded-full px-1.5 py-0.5 text-[10px] leading-none font-bold whitespace-nowrap text-white shadow-sm","Ultimate"===e.badge?"bg-gradient-to-r from-red-500 to-amber-500":"bg-gradient-to-r from-slate-400 to-slate-500"),children:e.badge}),(0,r.jsxs)("button",{disabled:e$,"aria-pressed":eN===e.id,onClick:()=>e_(e.id),className:(0,O.cn)("relative flex items-center gap-0.5 rounded-md px-2 py-1.5 text-[11px] font-medium tracking-tight whitespace-nowrap transition-all sm:text-sm",eN===e.id?"border border-amber-500 bg-amber-50 text-amber-600":"border border-transparent text-slate-600 hover:bg-slate-50"),children:[(0,r.jsx)("span",{children:e.name}),(0,r.jsxs)("span",{className:(0,O.cn)("flex items-center gap-0.5 text-[10px] sm:text-xs",eN===e.id?"text-amber-500":"text-slate-400"),children:[(0,r.jsx)(C.A,{className:"h-3 w-3"}),e.credits]})]})]},e.id))})})}),(0,r.jsxs)("div",{className:"mx-auto mt-4 max-w-md",children:[(0,r.jsx)("p",{className:"mb-2 text-sm text-slate-600",children:"Output aspect ratio"}),(0,r.jsx)(Y,{value:ew,onChange:ey,supportedRatios:eL,modelName:eR})]})]}),V===x?(0,r.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,r.jsx)("div",{className:"rounded-xl border border-slate-200 bg-white px-4 py-[26px] shadow-sm transition-all hover:shadow-md",children:(0,r.jsx)(q,{label:"Person Image",required:!0,image:H,onUpload:eE(X),onClear:()=>X(null),showModelPresets:!0,onSelectPreset:e=>{X(e),B()}})}),"reference"===v&&(0,r.jsx)("div",{className:"rounded-xl border border-slate-200 bg-white px-4 py-[26px] shadow-sm",children:(0,r.jsx)(q,{label:"Clothing reference",required:!0,image:et[0]||null,onUpload:eE(e=>es(e?[e]:[])),onClear:()=>es([]),hint:"One clothing photo per generation. A flat lay or clear model photo works best."})})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-white p-4 pb-7 shadow-sm transition-all hover:shadow-md",children:[(0,r.jsxs)("div",{className:"mb-2 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(S.A,{className:"h-4 w-4 text-amber-500"}),(0,r.jsx)("span",{className:"text-base font-bold text-slate-900",children:"Prompts"}),(0,r.jsxs)("span",{className:(0,O.cn)("text-xs font-medium",eB?"text-slate-400":"text-amber-500"),
1children:["(",eB?"optional":"required",")"]})]}),(0,r.jsx)("span",{className:"text-[10px] font-medium tracking-tight text-slate-400",children:V===x?"reference"===v?"Customize the outfit description, or leave empty for auto-replace.":"Describe the outfit you want to generate.":V===u?ea?"Optional: add extra constraints for pose transfer.":"Describe the pose you want to generate.":null})]}),(0,r.jsx)("label",{htmlFor:"outfit-prompt",className:"sr-only",children:"Outfit instructions"}),(0,r.jsx)("textarea",{id:"outfit-prompt",value:el,disabled:e$,rows:4,onChange:e=>{ei(e.target.value),B()},placeholder:"reference"===v?"Optional: preserve the face and background, keep the shirt untucked...":"Describe the outfit, colors and style you want to try.",className:"w-full resize-y rounded-xl border border-slate-200 bg-slate-50 p-3 text-sm text-slate-900 placeholder:text-slate-500 focus-visible:outline-2 focus-visible:outline-amber-600"})]})]}),(0,r.jsx)("div",{className:"min-h-[500px] rounded-2xl border border-slate-200 bg-white p-4 shadow-sm transition-all hover:shadow-md",children:(0,r.jsx)(ee,{generatedImage:ep,onClear:eV,isLoading:e$,progress:eP})})]}):(0,r.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,r.jsx)("div",{className:"rounded-xl border border-slate-200 bg-white px-4 py-[26px] shadow-sm transition-all hover:shadow-md",children:(0,r.jsx)(q,{label:"Person Image",required:!0,image:H,onUpload:eE(X),onClear:()=>X(null),showModelPresets:!0,onSelectPreset:e=>{X(e),B()}})}),(0,r.jsx)("div",{className:"rounded-xl border border-slate-200 bg-white px-4 py-[26px] shadow-sm transition-all hover:shadow-md",children:(0,r.jsx)(q,{label:"Pose Reference",required:!0,image:ea,onUpload:eE(er),onClear:()=>er(null),hint:"Upload a pose reference image:\nAI will apply this pose to the person in your photo."})})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-white p-4 pb-7 shadow-sm transition-all hover:shadow-md",children:[(0,r.jsxs)("div",{className:"mb-2 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(S.A,{className:"h-4 w-4 text-amber-500"}),(0,r.jsx)("span",{className:"text-base font-bold text-slate-900",children:"Prompts"}),(0,r.jsx)("span",{className:"text-xs font-medium text-slate-400",children:"(optional)"})]}),(0,r.jsx)("span",{className:"text-[10px] font-medium tracking-tight text-slate-400",children:"Add details to guide the reference-based edit."})]}),(0,r.jsx)("div",{onClick:()=>{eo(el),ed(!0)},className:"h-20 w-full cursor-pointer overflow-hidden rounded-xl border border-slate-200 bg-slate-50 p-3 transition-all hover:border-amber-400 hover:bg-slate-100",children:(0,r.jsx)("p",{className:(0,O.cn)("line-clamp-3 text-xs whitespace-pre-wrap",el?"text-slate-900":"text-slate-300"),children:el||"Optional: preserve the face, outfit and background; follow the reference body pose."})}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(Y,{value:ew,onChange:ey,supportedRatios:eL,modelName:eR})})]})]}),(0,r.jsx)("div",{className:"min-h-[500px] rounded-2xl border border-slate-200 bg-white p-4 shadow-sm transition-all hover:shadow-md",children:(0,r.jsx)(ee,{generatedImage:ep,onClear:eV,isLoading:e$,progress:eP})})]}),(0,r.jsx)("div",{className:"mt-6 flex justify-center",children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,r.jsxs)(D.$,{onClick:eK,disabled:eq,className:(0,O.cn)(eW,"min-w-[280px]"),children:[W&&l?e$?(0,r.jsx)(A.A,{className:"h-5 w-5 animate-spin"}):!eI&&G&&eG?(0,r.jsx)(C.A,{className:"h-5 w-5"}):G?(0,r.jsx)(k.A,{className:"h-5 w-5"}):(0,r.jsx)(z.A,{className:"h-5 w-5"}):(0,r.jsx)(A.A,{className:"h-5 w-5 animate-spin"}),(0,r.jsx)("span",{className:"inline-block min-w-[200px] text-center",children:W&&l?G?"uploading"===eT?"Uploading...":"generating"===eT||"polling"===eT?"Generating...":eI?`Generate (${ez} credits)`:"Get Credits to Generate":"Sign In to Generate":"Loading..."})]}),(0,r.jsxs)("p",{className:"max-w-xl text-center text-sm leading-relaxed text-slate-600","aria-live":"polite",children:["Sign-in required. This model uses"," ",(0,r.jsxs)("strong",{children:[ez," credits per image"]}),".",G&&(0,r.jsxs)(r.Fragment,{children:[" ","Your balance: ",(0,r.jsxs)("strong",{children:[eA," credits"]}),"."]})," ","Resolution depends on the model and aspect ratio."," ",(0,r.jsx)(P.N_,{href:"en"===f?V===u?"/ai-pose-changer#credit-policy":"/#free-policy":"/pricing",className:"underline underline-offset-4",children:"en"===f?"Credit and download details":"View credit plans"})]}),G&&!eI&&eG&&(0,r.jsxs)("p",{className:"text-sm text-slate-400",children:["Current Credits:"," ",(0,r.jsx)("span",{className:"font-semibold text-amber-500",children:eA})]})]})}),ef.length>0&&(0,r.jsxs)("div",{className:"mt-8",children:[(0,r.jsxs)("p",{className:"mb-3 text-xs text-slate-500",children:["Images stored for"," ",(0,r.jsx)("span",{className:"font-medium text-amber-600",children:"14 days"})," ","(browser & server), please download in time if you need to keep them"]}),(0,r.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(I.A,{className:"h-4 w-4 text-slate-500"}),(0,r.jsxs)("span",{className:"text-sm font-medium text-slate-700",children:["Recent Generations",ek>1&&(0,r.jsxs)("span",{className:"ml-2 text-slate-400",children:["(Page ",ev+1,"/",ek,")"]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[ek>1&&(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("button",{onClick:()=>e0("left"),disabled:0===ev,className:"rounded-lg p-1.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent",children:(0,r.jsx)(L.A,{className:"h-4 w-4"})}),(0,r.jsx)("button",{onClick:()=>e0("right"),disabled:ev===ek-1,className:"rounded-lg p-1.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent",children:(0,r.jsx)(R.A,{className:"h-4 w-4"})})]}),(0,r.jsxs)("button",{onClick:()=>{eb([]);var e=p(V);try{localStorage.removeItem(`workspace_history_${e}`)}catch(e){console.error("Failed to clear workspace history:",e)}T.oR.success("History cleared")},className:"flex items-center gap-1 rounded-lg px-3 py-1.5 text-xs font-medium text-slate-500 transition-colors hover:bg-red-50 hover:text-red-500",children:[(0,r.jsx)(w.A,{className:"h-3.5 w-3.5"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Clear History"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Clear"})]})]})]}),(0,r.jsx)("div",{className:"grid grid-cols-8 gap-1.5 sm:gap-2",children:eC.map((e,t)=>(0,r.jsxs)("div",{onClick:()=>eH(e),className:(0,O.cn)("group relative aspect-square w-full cursor-pointer overflow-hidden rounded-xl border-2 transition-all",ep?.id===e.id?"border-amber-500 ring-2 ring-amber-500/20":"border-slate-200 hover:border-amber-400"),role:"button",tabIndex:0,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),eH(e))},children:[(0,r.jsx)("img",{src:e.url,alt:`History ${t+1}`,className:"h-full w-full object-cover object-center"}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-14 bg-gradient-to-t from-black/80 via-black/50 to-transparent"}),(0,r.jsx)("div",{className:"absolute right-1 bottom-5 left-1 z-10 opacity-0 transition-opacity group-hover:opacity-100",children:(0,r.jsxs)("div",{className:"flex items-center justify-center gap-1.5",children:[(0,r.jsx)("button",{onClick:t=>eZ(e,t),className:"group/btn rounded border border-slate-600 bg-slate-200/80 p-1.5 transition-all hover:bg-slate-300/90",title:"Download",children:(0,r.jsx)(N.A,{className:"h-3 w-3 text-white transition-colors group-hover/btn:text-amber-500"})}),(0,r.jsx)("button",{onClick:t=>eJ(e,t),className:"group/btn rounded border border-slate-600 bg-slate-200/80 p-1.5 transition-all hover:bg-slate-300/90",title:"Delete",children:(0,r.jsx)(w.A,{className:"h-3 w-3 text-white transition-colors group-hover/btn:text-amber-500"})}),(0,r.jsx)("button",{onClick:t=>eQ(e,t),className:"group/btn rounded border border-slate-600 bg-slate-200/80 p-1.5 transition-all hover:bg-slate-300/90",title:"Share",children:(0,r.jsx)(_.A,{className:"h-3 w-3 text-white transition-colors group-hover/btn:text-amber-500"})})]})}),(0,r.jsx)("div",{className:"absolute right-1 bottom-1 left-1 z-10",children:(0,r.jsx)("span",{className:"block truncate text-[9px] font-medium text-white sm:text-[10px]",children:e.modelName||"Unknown"})}),ep?.id===e.id&&(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-amber-500/10"})]},e.id))})]})]}),(0,r.jsx)(Z,{isOpen:ec,value:en,onChange:eo,onClose:()=>{ed(!1)},onConfirm:()=>{ei(en),ed(!1)},onReset:()=>{eo("")}}),(0,r.jsx)(J,{isOpen:em,onClose:()=>ex(!1)}),(0,r.jsx)(Q,{image:eu,onClose:()=>eh(null),onDownload:eY,onShare:eX})]})}},70702:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Testimonials:()=>n});var a=s(48561),r=s(62435),l=s(29237),i=s(18050);function n(e){let t,s,l,n,c,d,m,x,u=(0,r.c)(19),{section:h,className:p}=e,g=`py-16 md:py-24 border-b border-amber-500/40 ${h.className} ${p}`;return u[0]===Symbol.for("react.memo_cache_sentinel")?(t={backgroundColor:"rgb(255, 255, 255)"},u[0]=t):t=u[0],u[1]!==h.title?(s=(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),u[1]=h.title,u[2]=s):s=u[2],u[3]!==h.description?(l=(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),u[3]=h.description,u[4]=l):l=u[4],u[5]!==s||u[6]!==l?(n=(0,a.jsx)(i.i,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[s,l]})}),u[5]=s,u[6]=l,u[7]=n):n=u[7],u[8]!==h.items?(c=h.items?.map((e,t)=>(0,a.jsx)(o,{item:e},t)),u[8]=h.items,u[9]=c):c=u[9],u[10]!==c?(d=(0,a.jsx)(i.i,{delay:.2,children:(0,a.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,a.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-px lg:*:nth-1:rounded-t-none lg:*:nth-2:rounded-tl-none lg:*:nth-2:rounded-br-none lg:*:nth-3:rounded-l-none lg:*:nth-4:rounded-r-none lg:*:nth-5:rounded-tl-none lg:*:nth-5:rounded-br-none lg:*:nth-6:rounded-b-none",children:c})})}),u[10]=c,u[11]=d):d=u[11],u[12]!==n||u[13]!==d?(m=(0,a.jsxs)("div",{className:"container",children:[n,d]}),u[12]=n,u[13]=d,u[14]=m):m=u[14],u[15]!==h.id||u[16]!==g||u[17]!==m?(x=(0,a.jsx)("section",{id:h.id,className:g,style:t,children:m}),u[15]=h.id,u[16]=g,u[17]=m,u[18]=x):x=u[18],x}function o(e){let{item:t}=e,s=t.image||t.avatar,r=s?.src||"",i=s?.alt||t.name||"",n=s?.width??64,o=s?.height??64;
1return(0,a.jsxs)("div",{className:"bg-card/25 ring-foreground/[0.07] flex flex-col justify-end gap-6 rounded-(--radius) border border-transparent p-8 ring-1",children:[(0,a.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:t.quote||t.description}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"ring-foreground/10 aspect-square size-[2.7rem] overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,a.jsx)(l.oD,{src:r,alt:i,width:n,height:o,className:"h-full w-full object-cover"})}),(0,a.jsxs)("h3",{className:"sr-only",children:[t.name,", ",t.role||t.title]}),(0,a.jsxs)("div",{className:"space-y-px",children:[(0,a.jsxs)("p",{className:"text-sm font-medium",children:[t.name," "]}),(0,a.jsx)("p",{className:"text-muted-foreground text-xs",children:t.role||t.title})]})]})]})}},71724:(e,t,s)=>{"use strict";s.r(t),s.d(t,{CasesGallery:()=>o});var a=s(48561),r=s(18050),l=s(37943),i=s(56293),n=s(67726);function o({section:e,className:t}){return(0,a.jsxs)("section",{id:e.id,className:(0,l.cn)("bg-white pt-8 pb-8 md:pt-12 md:pb-12 text-neutral-900 -mt-[100px]",e.className,t),children:[(0,a.jsxs)("div",{className:"mx-auto w-full max-w-[1340px] px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)(r.i,{className:"text-center mb-14",children:[e.badge&&(0,a.jsx)("div",{className:"inline-flex items-center rounded-full border border-amber-500/30 bg-amber-500/10 px-4 py-1.5 text-sm font-medium text-amber-600 mb-6",children:e.badge}),(0,a.jsx)("h2",{className:"text-3xl font-bold leading-tight tracking-tight md:text-4xl lg:text-5xl text-neutral-900 mb-5",children:e.title}),e.description&&(0,a.jsx)("p",{className:"text-neutral-600 max-w-4xl mx-auto text-base md:text-lg leading-relaxed",children:e.description})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:e.cases?.map((t,s)=>(0,a.jsx)(r.i,{delay:.1*s,children:(0,a.jsxs)("div",{className:"bg-white rounded-2xl overflow-hidden shadow-sm border border-neutral-200 hover:shadow-lg transition-shadow h-full flex flex-col",children:[(0,a.jsx)("div",{className:"relative aspect-[4/3.5] overflow-hidden",children:(0,a.jsx)(i.default,{src:t.image,alt:t.title,fill:!0,className:"object-cover object-top",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw"})}),(0,a.jsxs)("div",{className:"px-6 pt-[18px] pb-7 flex-1 flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"text-left",children:[(0,a.jsx)("h3",{className:"font-semibold text-neutral-900 text-base leading-snug",style:{fontFamily:'"Times New Roman", Times, serif'},children:t.title})," ",(0,a.jsx)("span",{className:"inline-flex items-center rounded-full bg-amber-100 px-3 py-1 text-xs font-semibold text-amber-700 whitespace-nowrap align-middle",children:t.tag})]}),(0,a.jsxs)("button",{onClick:()=>(e=>{if(e.startsWith("/#")){let t=e.slice(2),s=document.getElementById(t);if(s){let e=s.getBoundingClientRect().top+window.scrollY-20;window.scrollTo({top:e,behavior:"smooth"})}}else window.location.href=e})(t.buttonUrl||e.buttonUrl||"/pricing"),className:"flex items-center justify-center gap-2 w-full py-3 rounded-lg text-neutral-800 text-sm font-semibold transition-colors hover:opacity-80 cursor-pointer",style:{backgroundColor:"rgb(248, 234, 206)"},children:[t.buttonText||e.buttonText||"Start Free Trial",(0,a.jsx)(n.A,{className:"h-4 w-4"})]})]})]})},s))})]}),(0,a.jsx)("div",{className:"mx-auto h-px w-full bg-gradient-to-r from-transparent via-amber-300 to-transparent mt-[42px] md:mt-[58px]"})]})}},76190:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Logos:()=>o});var a=s(48561),r=s(62435),l=s(29237),i=s(18050),n=s(37943);function o(e){let t,s,l,o,d,m,x=(0,r.c)(16),{section:u,className:h}=e,p=u.id;return x[0]!==h||x[1]!==u.className?(t=(0,n.cn)("py-16 md:py-24",u.className,h),x[0]=h,x[1]=u.className,x[2]=t):t=x[2],x[3]!==u.title?(s=(0,a.jsx)(i.i,{children:(0,a.jsx)("p",{className:"text-md text-center font-medium",children:u.title})}),x[3]=u.title,x[4]=s):s=x[4],x[5]!==u.items?(l=u.items?.map(c),x[5]=u.items,x[6]=l):l=x[6],x[7]!==l?(o=(0,a.jsx)(i.i,{delay:.2,children:(0,a.jsx)("div",{className:"mx-auto mt-12 flex max-w-4xl flex-wrap items-center justify-center gap-x-12 gap-y-8 sm:gap-x-16 sm:gap-y-12",children:l})}),x[7]=l,x[8]=o):o=x[8],x[9]!==s||x[10]!==o?(d=(0,a.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[s,o]}),x[9]=s,x[10]=o,x[11]=d):d=x[11],x[12]!==u.id||x[13]!==t||x[14]!==d?(m=(0,a.jsx)("section",{id:p,className:t,children:d}),x[12]=u.id,x[13]=t,x[14]=d,x[15]=m):m=x[15],m}function c(e,t){return(0,a.jsx)(l.oD,{className:"h-8 w-fit dark:invert",src:e.image?.src??"",alt:e.image?.alt??""},t)}},77053:(e,t,s)=>{"use strict";s.d(t,{MarkdownPreview:()=>n});var a=s(48561),r=s(62435),l=s(54456);s(8204),s(13695);let i=new l.A({html:!0,linkify:!0,breaks:!0});function n(e){let t,s,l=(0,r.c)(4),{content:n}=e;l[0]!==n?(t=n?i.render(n):"",l[0]=n,l[1]=t):t=l[1];let o=t;return l[2]!==o?(s=(0,a.jsx)("div",{className:"markdown-body",dangerouslySetInnerHTML:{__html:o}}),l[2]=o,l[3]=s):s=l[3],s}i.renderer.rules.heading_open=function(e,t){let s=e[t].markup.length,a=e[t+1];if(a&&"inline"===a.type){let e=a.content.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g,"-").replace(/(^-|-$)/g,"");return`<h${s} id="${e}">`}return`<h${s}>`},i.renderer.rules.link_open=function(e,t,s,a,r){let l=e[t];if(l.attrIndex("href")>=0){let e=l.attrGet("href");l.attrSet("rel","nofollow"),e&&(e.startsWith("http://")||e.startsWith("https://"))&&l.attr
1Set("target","_blank")}return r.renderToken(e,t,s)}},77833:(e,t,s)=>{"use strict";s.d(t,{Bc:()=>n,ZI:()=>d,k$:()=>c,m_:()=>o});var a=s(48561),r=s(62435);s(56565);var l=s(48239),i=s(37943);function n(e){let t,s,i,n=(0,r.c)(6);n[0]!==e?({delayDuration:s,...t}=e,n[0]=e,n[1]=t,n[2]=s):(t=n[1],s=n[2]);let o=void 0===s?0:s;return n[3]!==o||n[4]!==t?(i=(0,a.jsx)(l.Kq,{"data-slot":"tooltip-provider",delayDuration:o,...t}),n[3]=o,n[4]=t,n[5]=i):i=n[5],i}function o(e){let t,s,i=(0,r.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(s=(0,a.jsx)(n,{children:(0,a.jsx)(l.bL,{"data-slot":"tooltip",...t})}),i[2]=t,i[3]=s):s=i[3],s}function c(e){let t,s,i=(0,r.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(s=(0,a.jsx)(l.l9,{"data-slot":"tooltip-trigger",...t}),i[2]=t,i[3]=s):s=i[3],s}function d(e){let t,s,n,o,c,d,m,x,u=(0,r.c)(16);u[0]!==e?({className:s,sideOffset:o,children:t,showArrow:c,...n}=e,u[0]=e,u[1]=t,u[2]=s,u[3]=n,u[4]=o,u[5]=c):(t=u[1],s=u[2],n=u[3],o=u[4],c=u[5]);let h=void 0===o?0:o,p=void 0===c||c;return u[6]!==s?(d=(0,i.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",s),u[6]=s,u[7]=d):d=u[7],u[8]!==p?(m=p&&(0,a.jsx)(l.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),u[8]=p,u[9]=m):m=u[9],u[10]!==t||u[11]!==n||u[12]!==h||u[13]!==d||u[14]!==m?(x=(0,a.jsx)(l.ZL,{children:(0,a.jsxs)(l.UC,{"data-slot":"tooltip-content",sideOffset:h,className:d,...n,children:[t,m]})}),u[10]=t,u[11]=n,u[12]=h,u[13]=d,u[14]=m,u[15]=x):x=u[15],x}},77990:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Introduction:()=>d});var a=s(48561),r=s(62435),l=s(56565),i=s(18050),n=s(37943),o=s(56293),c=s(81139);function d(e){let t,s,c,d,u,h,p,g,f,b,v,j,w,y,N,_,k,C,S,A,z,I,L,R,F,T,P,$,D,M,E,U,O,B,G,q,W,K,V=(0,r.c)(89),{section:H,className:Y}=e,[X,Z]=(0,l.useState)(50),[J,Q]=(0,l.useState)(!1),[ee,et]=(0,l.useState)(!1);V[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>{Z(Math.min(Math.max((e-t.left)/t.width*100,0),100))},V[0]=t):t=V[0];let es=t;V[1]!==X?(s=(e,t)=>16>=Math.abs(e-(t.left+t.width*X/100)),V[1]=X,V[2]=s):s=V[2];let ea=s;V[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>Q(!0),V[3]=c):c=V[3];let er=c;V[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>Q(!1),V[4]=d):d=V[4];let el=d;V[5]!==J||V[6]!==ea?(u=e=>{let t=e.currentTarget.getBoundingClientRect();et(ea(e.clientX,t)||J),J&&es(e.clientX,t)},V[5]=J,V[6]=ea,V[7]=u):u=V[7];let ei=u;V[8]!==J?(h=e=>{if(!J)return;let t=e.currentTarget.getBoundingClientRect();es(e.touches[0].clientX,t)},V[8]=J,V[9]=h):h=V[9];let en=h,eo=H.id;V[10]!==Y||V[11]!==H.className?(p=(0,n.cn)("bg-white pb-[74px] pt-[42px] text-neutral-900 md:pb-[106px] md:pt-[58px]",H.className,Y),V[10]=Y,V[11]=H.className,V[12]=p):p=V[12];let ec=H.reverse&&"lg:grid-cols-[minmax(0,0.85fr)_minmax(0,1.15fr)] -mt-[80px]",ed="introduction3"===H.id&&"-mt-[70px]";V[13]!==ed||V[14]!==ec?(g=(0,n.cn)("grid gap-8 items-center lg:grid-cols-[minmax(0,1.15fr)_minmax(0,0.85fr)] lg:gap-12",ec,ed),V[13]=ed,V[14]=ec,V[15]=g):g=V[15];let em=H.reverse&&"lg:order-2";V[16]!==em?(f=(0,n.cn)(em),V[16]=em,V[17]=f):f=V[17],V[18]!==H.badge?(b=H.badge&&(0,a.jsx)("div",{className:"inline-flex items-center rounded-full border border-amber-500/30 bg-amber-500/10 px-4 py-1.5 text-sm font-medium text-amber-500",children:H.badge}),V[18]=H.badge,V[19]=b):b=V[19],V[20]!==H.title?(v=(0,a.jsx)("h2",{className:"text-2xl font-bold leading-tight tracking-tight md:text-3xl lg:text-4xl text-neutral-900",children:H.title}),V[20]=H.title,V[21]=v):v=V[21],V[22]!==H.description?(j=H.description?.split("\n\n").map(x),V[22]=H.description,V[23]=j):j=V[23],V[24]!==j?(w=(0,a.jsx)("div",{className:"space-y-4 text-sm leading-relaxed text-neutral-600 md:text-base",children:j}),V[24]=j,V[25]=w):w=V[25],V[26]!==v||V[27]!==w?(y=(0,a.jsxs)("div",{className:"space-y-6",children:[v,w]}),V[26]=v,V[27]=w,V[28]=y):y=V[28],V[29]!==H.features?(N=H.features&&H.features.length>0&&(0,a.jsx)("ul",{className:"space-y-5",children:H.features.map(m)}),V[29]=H.features,V[30]=N):N=V[30],V[31]!==b||V[32]!==y||V[33]!==N?(_=(0,a.jsxs)("div",{className:"space-y-8 lg:-mx-5",children:[b,y,N]}
1),V[31]=b,V[32]=y,V[33]=N,V[34]=_):_=V[34],V[35]!==f||V[36]!==_?(k=(0,a.jsx)(i.i,{className:f,children:_}),V[35]=f,V[36]=_,V[37]=k):k=V[37];let ex=H.reverse&&"lg:order-1";V[38]!==ex?(C=(0,n.cn)(ex),V[38]=ex,V[39]=C):C=V[39],V[40]===Symbol.for("react.memo_cache_sentinel")?(S={width:"min(calc(100% - 40px), calc(100% - 100px))",height:"min(calc(100% - 40px), calc(100% - 100px))",transform:"scale(1.2)",transformOrigin:"center",marginTop:"30px"},V[40]=S):S=V[40],V[41]!==H.beforeImage?(A=H.beforeImage&&(0,a.jsx)(o.default,{src:H.beforeImage,alt:"Before",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 80vw, 400px"}),V[41]=H.beforeImage,V[42]=A):A=V[42],V[43]!==H.afterImage||V[44]!==X?(z=H.afterImage&&(0,a.jsx)("div",{className:"absolute inset-0",style:{clipPath:`inset(0 0 0 ${X}%)`},children:(0,a.jsx)(o.default,{src:H.afterImage,alt:"After",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 80vw, 400px"})}),V[43]=H.afterImage,V[44]=X,V[45]=z):z=V[45];let eu=Math.min(1,Math.max(0,(X-5)/13));V[46]!==eu?(I=(0,a.jsx)("div",{className:"absolute left-5 top-5 z-10 rounded-full bg-red-500/70 px-3 py-1 text-xs font-semibold text-white shadow-md backdrop-blur-sm",style:{opacity:eu},children:"Before"}),V[46]=eu,V[47]=I):I=V[47];let eh=Math.min(1,Math.max(0,(95-X)/13));V[48]!==eh?(L=(0,a.jsx)("div",{className:"absolute right-5 top-5 z-10 rounded-full bg-green-500/70 px-3 py-1 text-xs font-semibold text-white shadow-md backdrop-blur-sm",style:{opacity:eh},children:"After"}),V[48]=eh,V[49]=L):L=V[49];let ep=J||ee?"cursor-ew-resize":"cursor-default";V[50]!==ep?(R=(0,n.cn)("absolute inset-0 z-20",ep),V[50]=ep,V[51]=R):R=V[51],V[52]!==ea?(F=e=>{let t=e.currentTarget.getBoundingClientRect();ea(e.clientX,t)&&(et(!0),er())},V[52]=ea,V[53]=F):F=V[53],V[54]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{el(),et(!1)},V[54]=T):T=V[54],V[55]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{el(),et(!1)},V[55]=P):P=V[55],V[56]!==ea?($=e=>{let t=e.currentTarget.getBoundingClientRect();ea(e.touches[0].clientX,t)&&(et(!0),er())},V[56]=ea,V[57]=$):$=V[57],V[58]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{el(),et(!1)},V[58]=D):D=V[58];let eg=`${X}%`;return V[59]!==eg?(M={left:eg},V[59]=eg,V[60]=M):M=V[60],V[61]===Symbol.for("react.memo_cache_sentinel")?(E=(0,a.jsx)("div",{className:"absolute left-1/2 top-1/2 flex h-10 w-10 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-white shadow-lg",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-gray-900",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6l-6 6 6 6M14 6l6 6-6 6"})})}),V[61]=E):E=V[61],V[62]!==M?(U=(0,a.jsx)("div",{className:"absolute top-0 h-full w-0.5 bg-white shadow-[0_0_10px_rgba(0,0,0,0.5)]",style:M,children:E}),V[62]=M,V[63]=U):U=V[63],V[64]!==ei||V[65]!==en||V[66]!==R||V[67]!==F||V[68]!==$||V[69]!==U?(O=(0,a.jsx)("div",{className:R,onMouseDown:F,onMouseUp:T,onMouseMove:ei,onMouseLeave:P,onTouchStart:$,onTouchEnd:D,onTouchMove:en,children:U}),V[64]=ei,V[65]=en,V[66]=R,V[67]=F,V[68]=$,V[69]=U,V[70]=O):O=V[70],V[71]!==A||V[72]!==z||V[73]!==I||V[74]!==L||V[75]!==O?(B=(0,a.jsxs)("div",{className:"relative aspect-square overflow-hidden rounded-3xl bg-neutral-100 border border-neutral-200 shadow-2xl mx-auto",style:S,children:[A,z,I,L,O]}),V[71]=A,V[72]=z,V[73]=I,V[74]=L,V[75]=O,V[76]=B):B=V[76],V[77]!==C||V[78]!==B?(G=(0,a.jsx)(i.i,{delay:.2,className:C,children:B}),V[77]=C,V[78]=B,V[79]=G):G=V[79],V[80]!==g||V[81]!==k||V[82]!==G?(q=(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:g,children:[k,G]})}),V[80]=g,V[81]=k,V[82]=G,V[83]=q):q=V[83],V[84]===Symbol.for("react.memo_cache_sentinel")?(W=(0,a.jsx)("div",{className:"mx-auto h-px w-full bg-gradient-to-r from-transparent via-amber-300 to-transparent mt-16 md:mt-24"}),V[84]=W):W=V[84],V[85]!==H.id||V[86]!==q||V[87]!==p?(K=(0,a.jsxs)("section",{id:eo,className:p,children:[q,W]}),V[85]=H.id,V[86]=q,V[87]=p,V[88]=K):K=V[88],K}function m(e,t){return(0,a.jsxs)("li",{className:"flex gap-4 items-start",children:[(0,a.jsx)("div",{className:"flex-shrink-0 mt-1",children:(0,a.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-amber-500/20",children:(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 text-amber-500"})})}),(0,a.jsx)("span",{className:"text-sm text-neutral-700 md:text-base",children:e})]},t)}function x(e,t){return(0,a.jsx)("p",{children:e},t)}},78325:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ShowcasesFlow:()=>g});var a=s(48561),r=s(62435),l=s(56565),i=s(19715),n=s(86867),o=s(28684),c=s(31535),d=s(61712),m=s(83749),x=s(29237),u=s(41114),h=s(94648),p=s(37943);function g(e){let t,s,g,j,w,y,N,_,k,C,S,A,z,I,L,R,F,T,P,$,D,M,E=(0,r.c)(57),{section:U,className:O}=e;E[0]!==U?(t=U.groups||[],E[0]=U,E[1]=t):t=E[1];let B=t,[G,q]=(0,l.useState)(B.length>0?B[0].name:""),[W,K]=(0,l.useState)(null);e:{let e;if(!U.items){let e;E[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],E[2]=e):e=E[2],s=e;break e}if(!G||!B.length||"all"===G){s=U.items;break e}if(E[3]!==U.items||E[4]!==G){let t;E[6]!==G?(t=e=>e.group===G,E[6]=G,E[7]=t):t=E[7],e=U.items.filter(t),E[3]=U.items,E[4]=G,E[5]=e}else e=E[5];s=e}let V=s;E[8]!==V.length?(g=()=>{K(e=>null!==e?0===e?(V.length??1)-1:e-1:null)},E[8]=V.length,E[9]=g):g=E[9];let H=g;E[10]!==V.length?(j=()=>{K(e=>null!==e?e===(V.length??1)-1?0:e+1:null)},E[10]=V.length,E[11]=j):j=E[11];let Y=j;E[12]!==Y||E[13]!==H||E[14]!==W?(w=()=>{let e=e=>{null!==W&&("Escape"===e.key&&K(null),"ArrowLeft"===e.key&&H(),"ArrowRight"===e.key&&Y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},y=[W,H,Y],E[12]=Y,E[13]=H,E[14]=W,E[15]=w,E[16]=y):(w=E[15],y=E[16]),(0,l.useEffect)(w,y);let X=U.id||U.name;return E[17]!==O||E[18]!==U.className?(N=(0,p.cn)("py-24 md:py-36",U.className,O),E[17]=O,E[18]=U.className,E[19]=N):N=E[19],E[20]===Symbol.for("react.memo_cache_sentinel")?(C={opacity:0,y:20},_={opacity:1,y:0},k={once:!0},E[20]=_,E[21]=k,E[22]=C):(_=E[20],k=E[21],C=E[22]),E[23]===Symbol.for("react.memo_cache_sentinel")?(S=[.22,1,.36,1],E[23]=S):S=E[23],E[24]===Symbol.for("react.memo_cache_sentinel")?(A={duration:.6,ease:S},E[24]=A):A=E[24],E[25]!==U.sr_only_title?(z=U.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:U.sr_only_title}),E[25]=U.sr_only_title,E[26]=z):z=E[26],E[27]!==U.title?(I=(0,a.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:U.title}),E[27]=U.title,E[28]=I):I=E[28],E[29]!==U.description?(L=(0,a.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 line-clamp-3 max-w-full md:max-w-5xl",children:U.description}),E[29]=U.description,E[30]=L):L=E[30],E[31]!==U.buttons?(R=U.buttons&&U.buttons.length>0&&(0,a.jsx)("div",{className:"container mx-auto mt-8 mb-12 flex flex-wrap justify-center gap-4",children:U.buttons.map(v)}),E[31]=U.buttons,E[32]=R):R=E[32],E[33]!==z||E[34]!==I||E[35]!==L||E[36]!==R?(F=(0,a.jsxs)(i.P.div,{className:"container mb-12 text-center",initial:C,whileInView:_,viewport:k,transition:A,children:[z,I,L,R]}),E[33]=z,E[34]=I,E[35]=L,E[36]=R,E[37]=F):F=E[37],E[38]!==B||E[39]!==G?(T=B.length>0&&(0,a.jsx)(i.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:B.map((e,t)=>{let s=G===e.name;return(0,a.jsx)(i.P.button,{onClick:()=>q(e.name),className:(0,p.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",s?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.2+.1*t,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,a.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,a.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,a.jsx)("span",{children:e.title})},e.name)})}),E[38]=B,E[39]=G,E[40]=T):T=E[40],E[41]!==V?(P=V.length>0?(0,a.jsx)("div",{className:"container mx-auto columns-1 gap-4 space-y-4 sm:columns-2 lg:columns-3 xl:columns-4",children:V.map((e,t)=>(0,a.jsxs)(i.P.div,{className:"group relative cursor-zoom-in break-inside-avoid overflow-hidden rounded-xl",onClick:()=>K(t),initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*t,ease:[.22,1,.36,1]},whileHover:{scale:1.02},children:[(0,a.jsx)(x.oD,{src:e.image?.src??"",alt:e.image?.alt??"",className:"h-auto w-full transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end bg-black/60 p-6 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:[(0,a.jsx)("h3",{className:"mb-2 translate-y-4 text-sm font-medium text-white transition-transform duration-300 group-hover:translate-y-0",children:e.title}),e.button&&(0,a.jsx)("div",{className:"mt-3 translate-y-4 transition-transform delay-100 duration-300 group-hover:translate-y-0",onClick:b,children:(0,a.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,a.jsxs)(m.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,a.jsx)(u.L,{name:e.button.icon}),e.button.title]})})})]})]},t))}):(0,a.jsx)(i.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."}),E[41]=V,E[42]=P):P=E[42],E[43]!==V||E[44]!==Y||E[45]!==H||E[46]!==W?($=null!==W&&V&&V.length>0&&(0,a.jsxs)(i.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:()=>K(null),children:[(0,a.jsx)("button",{className:"absolute top-4 right-4 z-50 text-white/70 transition-colors hover:text-white",onClick:()=>K(null),children:(0,a.jsx)(o.A,{className:"size-8"})}),(0,a.jsx)("button",{className:"absolute top-1/2 left-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),H()},children:(0,a.jsx)(c.A,{className:"size-8 md:size-12"})}),(0,a.jsx)("button",{className:"absolute top-1/2 right-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),Y()},children:(0,a.jsx)(d.A,{className:"size-8 md:size-12"})}),(0,a.jsx)(i.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:f,children:(0,a.jsxs)("div",{className:"relative max-h-full max-w-full overflow-hidden rounded-lg",children:[(0,a.jsx)(x.oD,{src:V[W].image?.src??"",alt:V[W].image?.alt??"",className:"h-auto max-h-[90vh] w-auto max-w-full object-contain"}),(0,a.jsxs)("div",{className:"absolute right-0 bottom-0 left-0 bg-gradient-to-t from-black/80 via-black/50 to-transparent p-6 text-white",children:[(0,a.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:V[W].title}),V[W].description&&(0,a.jsx)("p",{className:"line-clamp-3 text-base text-white/90",children:V[W].description}),V[W].button&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(h.$,{asChild:!0,variant:V[W].button.variant||"default",size:V[W].button.size||"default",className:"bg-primary hover:bg-primary/90 h-8 border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,a.jsxs)(m.N_,{href:V[W].button.url||"",target:V[W].button.target||"_self",children:[V[W].button.icon&&(0,a.jsx)(u.L,{name:V[W].button.icon,className:"text-white"}),V[W].button.title]})})})]})]})},W)]}),E[43]=V,E[44]=Y,E[45]=H,E[46]=W,E[47]=$):$=E[47],E[48]!==$?(D=(0,a.jsx)(n.N,{children:$}),E[48]=$,E[49]=D):D=E[49],E[50]!==F||E[51]!==T||E[52]!==P||E[53]!==D||E[54]!==X||E[55]!==N?(M=(0,a.jsxs)("section",{id:X,className:N,children:[F,T,P,D]}),E[50]=F,E[51]=T,E[52]=P,E[53]=D,E[54]=X,E[55]=N,E[56]=M):M=E[56],M}function f(e){return e.stopPropagation()}function b(e){return e.stopPropagation()}function v(e){return(0,a.jsx)(h.$,{variant:e.variant||"default",size:e.size||"sm",asChild:!0,children:(0,a.jsxs)(m.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,a.jsx)(u.L,{name:e.icon}),e.title]})},e.title)}},79449:(e,t,s)=>{"use strict";s.d(t,{Highlighter:()=>o});var a=s(48561),r=s(62435),l=s(56565),i=s(57934),n=s(18662);function o(e){let t,s,o,c,d=(0,r.c)(13),{children:m,action:x,color:u,strokeWidth:h,animationDuration:p,iterations:g,padding:f,multiline:b,isView:v}=e,j=void 0===x?"highlight":x,w=void 0===u?"#ffd1dc":u,y=void 0===h?1.5:h,N=void 0===p?600:p,_=void 0===g?2:g,k=void 0===f?2:f,C=void 0===b||b,S=(0,l.useRef)(null),A=(0,l.useRef)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(t={once:!0,margin:"-10%"},d[0]=t):t=d[0];let z=(0,i.W)(S,t),I=!(void 0!==v&&v)||z;return d[1]!==j||d[2]!==N||d[3]!==w||d[4]!==_||d[5]!==C||d[6]!==k||d[7]!==I||d[8]!==y?(s=()=>{if(!I)return;let e=S.current;if(!e)return;let t=(0,n.f)(e,{type:j,color:w,strokeWidth:y,animationDuration:N,iterations:_,padding:k,multiline:C});A.current=t,A.current.show();let s=new ResizeObserver(()=>{t.hide(),t.show()});return s.observe(e),s.observe(document.body),()=>{e&&((0,n.f)(e,{type:j}).remove(),s.disconnect())}},o=[I,j,w,y,N,_,k,C],d[1]=j,d[2]=N,d[3]=w,d[4]=_,d[5]=C,d[6]=k,d[7]=I,d[8]=y,d[9]=s,d[10]=o):(s=d[9],o=d[10]),(0,l.useEffect)(s,o),d[11]!==m?(c=(0,a.jsx)("span",{ref:S,className:"relative inline-block bg-transparent",children:m}),d[11]=m,d[12]=c):c=d[12],c}},82742:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BlogDetail:()=>g});var a=s(48561),r=s(62435),l=s(76518),i=s(1220),n=s(646),o=s(77053),c=s(61712),d=s(83749),m=s(29237);function x(e){let t,s,l=(0,r.c)(4),{items:i}=e;return l[0]!==i?(t=i.map(u),l[0]=i,l[1]=t):t=l[1],l[2]!==t?(s=(0,a.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:t}),l[2]=t,l[3]=s):s=l[3],s}function u(e,t){let s=e.is_active;return(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)(d.N_,{href:e.url||"",className:`hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ${s?"text-primary hover:text-primary font-medium":""}`,children:[e.icon&&(0,a.jsx)(m.LK,{name:e.icon,className:"size-4"}),e.title]}
1),!s&&(0,a.jsx)(c.A,{className:"text-muted-foreground/40 mx-2 h-4 w-4"})]},t)}function h(e){let t,s,l=(0,r.c)(4),{items:i}=e;return i&&0!==i.length?(l[0]!==i?(t=i.map(p),l[0]=i,l[1]=t):t=l[1],l[2]!==t?(s=(0,a.jsx)("nav",{className:"space-y-1",children:t}),l[2]=t,l[3]=s):s=l[3],s):null}function p(e,t){return(0,a.jsx)("a",{href:e.url,className:"text-muted-foreground hover:text-foreground block py-1 text-sm transition-colors",style:{paddingLeft:`${(e.depth-1)*.75}rem`},children:e.title},t)}function g(e){let t,s,c,d,m,u,p,g,f,b,v,j,w,y,N,_,k,C,S=(0,r.c)(52),{post:A}=e,z=(0,n.c3)("pages.blog.messages");S[0]!==z?(t=z("crumb"),S[0]=z,S[1]=t):t=S[1],S[2]!==t?(s={title:t,url:"/blog",icon:"Newspaper",is_active:!1},S[2]=t,S[3]=s):s=S[3];let I=A.title||"",L=`/blog/${A.slug}`;S[4]!==I||S[5]!==L?(c={title:I,url:L,is_active:!0},S[4]=I,S[5]=L,S[6]=c):c=S[6],S[7]!==s||S[8]!==c?(d=[s,c],S[7]=s,S[8]=c,S[9]=d):d=S[9];let R=d,F=A.toc&&A.toc.length>0,T=A.author_name||A.author_image||A.author_role;S[10]!==T||S[11]!==F?(m=()=>F&&T?"lg:col-span-6":F||T?"lg:col-span-9":"lg:col-span-12",S[10]=T,S[11]=F,S[12]=m):m=S[12];let P=m,$=A.id;S[13]!==R?(u=(0,a.jsx)(x,{items:R}),S[13]=R,S[14]=u):u=S[14],S[15]!==A.title?(p=(0,a.jsx)("h1",{className:"text-foreground mx-auto mb-4 w-full text-3xl font-bold md:max-w-4xl md:text-4xl",children:A.title}),S[15]=A.title,S[16]=p):p=S[16],S[17]!==A.created_at?(g=A.created_at&&(0,a.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,a.jsx)(l.A,{className:"size-4"})," ",A.created_at]}),S[17]=A.created_at,S[18]=g):g=S[18],S[19]!==g?(f=(0,a.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:g}),S[19]=g,S[20]=f):f=S[20],S[21]!==p||S[22]!==f?(b=(0,a.jsxs)("div",{className:"mt-16 text-center",children:[p,f]}),S[21]=p,S[22]=f,S[23]=b):b=S[23],S[24]!==A.toc||S[25]!==F||S[26]!==z?(v=F&&(0,a.jsx)("div",{className:"lg:col-span-3",children:(0,a.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,a.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,a.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,a.jsx)(i.A,{className:"size-4"})," ",z("toc")]}),(0,a.jsx)(h,{items:A.toc||[]})]})})}),S[24]=A.toc,S[25]=F,S[26]=z,S[27]=v):v=S[27];let D=P();return S[28]!==A.body||S[29]!==A.content?(j=A.body?(0,a.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:A.body}):A.content&&(0,a.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,a.jsx)(o.MarkdownPreview,{content:A.content})}),S[28]=A.body,S[29]=A.content,S[30]=j):j=S[30],S[31]!==j?(w=(0,a.jsx)("article",{className:"p-0",children:j}),S[31]=j,S[32]=w):w=S[32],S[33]!==D||S[34]!==w?(y=(0,a.jsx)("div",{className:D,children:w}),S[33]=D,S[34]=w,S[35]=y):y=S[35],S[36]!==A.author_image||S[37]!==A.author_name||S[38]!==A.author_role||S[39]!==T?(N=T&&(0,a.jsx)("div",{className:"lg:col-span-3",children:(0,a.jsx)("div",{className:"sticky top-24",children:(0,a.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,a.jsxs)("div",{className:"text-center",children:[A.author_image&&(0,a.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,a.jsx)("img",{src:A.author_image,alt:A.author_name,className:"h-full w-full object-cover"})}),A.author_name&&(0,a.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:A.author_name}),A.author_role&&(0,a.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:A.author_role})]})})})}),S[36]=A.author_image,S[37]=A.author_name,S[38]=A.author_role,S[39]=T,S[40]=N):N=S[40],S[41]!==v||S[42]!==y||S[43]!==N?(_=(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[v,y,N]}),S[41]=v,S[42]=y,S[43]=N,S[44]=_):_=S[44],S[45]!==b||S[46]!==_||S[47]!==u?(k=(0,a.jsx)("div",{className:"py-24 md:py-32",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[u,b,_]})}),S[45]=b,S[46]=_,S[47]=u,S[48]=k):k=S[48],S[49]!==A.id||S[50]!==k?(C=(0,a.jsx)("section",{id:$,children:k}),S[49]=A.id,S[50]=k,S[51]=C):C=S[51],C}s(82773)},82773:()=>{},87459:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Features:()=>c});var a=s(48561),r=s(62435),l=s(41114),i=s(29237),n=s(18050),o=s(37943);function c(e){let t,s,l,i,c,u,h,p,g,f,b,v=(0,r.c)(36),{section:j,className:w}=e;if(v[0]!==w||v[1]!==j.className||v[2]!==j.description||v[3]!==j.id||v[4]!==j.items||v[5]!==j.title){let e,r,p=j.items?.filter(x)??[],g=p.length>0;u=j.id,v[13]!==w||v[14]!==j.className?(h=(0,o.cn)("pt-0 pb-0 md:pt-0 md:pb-0",j.className,w),v[13]=w,v[14]=j.className,v[15]=h):h=v[15],i="container space-y-8 md:space-y-16",v[16]!==j.title?(e=(0,a.jsx)("h2",{className:"text-foreground mt-5 mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:j.title}),v[16]=j.title,v[17]=e):e=v[17],v[18]!==j.description?(r=j.description?(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:j.description}):null,v[18]=j.description,v[19]=r):r=v[19],v[20]!==e||v[21]!==r?(c=(0,a.jsx)(n.i,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[e,r]})}),v[20]=e,v[21]=r,v[22]=c):c=v[22],t=n.i,s=.2,l=g?(0,a.jsx)("div",{className:"mx-auto w-full max-w-6xl",children:(0,a.jsx)("div",{className:"relative overflow-hidden py-4",style:{WebkitMaskImage:"linear-gradient(to right, transparent 0%, black 12%, black 100%)",maskImage:"linear-gradient(to right, transparent 0%, black 12%, black 100%)"},children:(0,a.jsx)("div",{className:"flex",children:[0,1].map(e=>(0,a.jsx)("div",{className:"animate-marquee flex shrink-0 items-center gap-16 pr-16",style:{"--duration":"22s","--gap":"4rem"},children:p.map(m)},e))})})}):(0,a.jsx)("div",{className:"relative mx-auto grid divide-x divide-y border *:p-12 sm:grid-cols-2 lg:grid-cols-3",children:j.items?.map(d)}),v[0]=w,v[1]=j.className,v[2]=j.description,v[3]=j.id,v[4]=j.items,v[5]=j.title,v[6]=t,v[7]=s,v[8]=l,v[9]=i,v[10]=c,v[11]=u,v[12]=h}else t=v[6],s=v[7],l=v[8],i=v[9],c=v[10],u=v[11],h=v[12];return v[23]!==t||v[24]!==s||v[25]!==l?(p=(0,a.jsx)(t,{delay:s,children:l}),v[23]=t,v[24]=s,v[25]=l,v[26]=p):p=v[26],v[27]!==i||v[28]!==c||v[29]!==p?(g=(0,a.jsxs)("div",{className:i,children:[c,p]}),v[27]=i,v[28]=c,v[29]=p,v[30]=g):g=v[30],v[31]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)("div",{className:"mx-auto mt-12 h-px w-full bg-gradient-to-r from-transparent via-yellow-500 to-transparent md:mt-16"}),v[31]=f):f=v[31],v[32]!==u||v[33]!==h||v[34]!==g?(b=(0,a.jsxs)("section",{id:u,className:h,children:[g,f]}),v[32]=u,v[33]=h,v[34]=g,v[35]=b):b=v[35],b}function d(e,t){return(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.L,{name:e.icon,size:24}),(0,a.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,a.jsx)("p",{className:"text-sm",children:e.description})]},t)}function m(e,t){return(0,a.jsx)("div",{className:"relative h-7 w-24 md:h-[2.1rem] md:w-28",children:(0,a.jsx)(i.oD,{className:"object-contain opacity-90 transition-opacity duration-200 hover:opacity-100",src:e.image?.src??"",alt:e.image?.alt??e.title??"Logo",fill:!0,sizes:"112px"})},`${e.title??"logo"}-${t}`)}function x(e){return!!e?.image?.src}},91648:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeaturesFlow:()=>o});var a=s(48561),r=s(62435),l=s(19715),i=s(29237),n=s(37943);function o(e){let t,s,i,o,d,m,x,u,h,p=(0,r.c)(22),{section:g}=e;if(!g.items||0===g.items.length)return null;let f=g.id||g.name;return p[0]!==g.className?(t=(0,n.cn)("py-16 md:py-24",g.className),p[0]=g.className,p[1]=t):t=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(s={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]}},p[2]=s):s=p[2],p[3]!==g.sr_only_title?(i=g.sr_only_title&&(0,a.jsx)("h1",{className:"sr-only",children:g.sr_only_title}),p[3]=g.sr_only_title,p[4]=i):i=p[4],p[5]!==g.title?(o=(0,a.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:g.title}),p[5]=g.title,p[6]=o):o=p[6],p[7]!==g.description?(d=(0,a.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:g.description}),p[7]=g.description,p[8]=d):d=p[8],p[9]!==i||p[10]!==o||p[11]!==d?(m=(0,a.jsxs)(l.P.div,{className:"container mb-12 text-center",...s,children:[i,o,d]}),p[9]=i,p[10]=o,p[11]=d,p[12]=m):m=p[12],p[13]!==g.items?(x=g.items.map(c),p[13]=g.items,p[14]=x):x=p[14],p[15]!==x?(u=(0,a.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:x}),p[15]=x,p[16]=u):u=p[16],p[17]!==f||p[18]!==t||p[19]!==m||p[20]!==u?(h=(0,a.jsxs)("section",{id:f,className:t,children:[m,u]}),p[17]=f,p[18]=t,p[19]=m,p[20]=u,p[21]=h):h=p[21],h}function c(e,t){let s="right"===e.image_position;return(0,a.jsxs)(l.P.div,{className:(0,n.cn)("grid items-center gap-6 py-16 sm:grid-cols-2 md:gap-12 lg:gap-24",s&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1"),initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.15*t,ease:[.22,1,.36,1]},children:[(0,a.jsx)(l.P.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:.15*t+.2,ease:[.22,1,.36,1]},children:(0,a.jsx)(i.oD,{src:e.image?.src??"",className:"rounded-2xl",alt:e.image?.alt??""})}),(0,a.jsxs)(l.P.div,{className:"relative space-y-4",initial:{opacity:0,x:s?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.15*t+.3,ease:[.22,1,.36,1]},children:[(0,a.jsx)("h3",{className:"text-xl font-medium md:text-2xl lg:text-2xl",children:e.title}),(0,a.jsx)("p",{className:"text-muted-foreground",children:e.description})]})]},t)}},92348:(e,t,s)=>{"use strict";s.r(t),s.d(t,{AboutMission:()=>o});var a=s(48561),r=s(62435),l=s(18050),i=s(37943),n=s(46068);function o(e){let t,s,o,d,m,x,u,h,p,g,f=(0,r.c)(23),{section:b,className:v}=e,j=b.id;return f[0]!==v||f[1]!==b.className?(t=(0,i.cn)("py-16 md:py-24",b.className,v),f[0]=v,f[1]=b.className,f[2]=t):t=f[2],f[3]!==b.badge?(s=b.badge&&(0,a.jsx)("div",{className:"inline-flex items-center rounded-full border border-primary/30 bg-primary/10 px-4 py-1.5 text-sm font-medium text-primary",children:b.badge}),f[3]=b.badge,f[4]=s):s=f[4],f[5]!==b.title?(o=(0,a.jsx)("h2",{className:"text-3xl font-bold tracking-tight md:text-4xl",children:b.title}),f[5]=b.title,f[6]=o):o=f[6],f[7]!==b.description?(d=b.description?.split("\n\n").map(c),f[7]=b.description,f[8]=d):d=f[8],f[9]!==d?(m=(0,a.jsx)("div",{className:"space-y-4 text-base leading-relaxed text-muted-foreground md:text-lg",children:d}),f[9]=d,f[10]=m):m=f[10],f[11]!==s||f[12]!==o||f[13]!==m?(x=(0,a.jsx)(l.i,{children:(0,a.jsxs)("div",{className:"space-y-8",children:[s,o,m]})}),f[11]=s,f[12]=o,f[13]=m,f[14]=x):x=f[14],f[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"bg-primary/10 p-6 rounded-full",children:(0,a.jsx)(n.A,{className:"w-16 h-16 text-primary"})})}),f[15]=u):u=f[15],f[16]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(l.i,{delay:.2,children:(0,a.jsxs)("div",{className:"bg-muted rounded-2xl p-8 space-y-6 border",children:[u,(0,a.jsxs)("div",{className:"text-center space-y-4",children:[(0,a.jsx)("h3",{className:"text-2xl font-bold",children:"AI Clothes Changer"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Try different looks with just one click. AI Clothes Changer helps you change clothes in photos quickly, with no editing skills required."})]})]})}),f[16]=h):h=f[16],f[17]!==x?(p=(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"grid gap-12 items-start lg:grid-cols-[1.2fr_0.8fr]",children:[x,h]})}),f[17]=x,f[18]=p):p=f[18],f[19]!==b.id||f[20]!==p||f[21]!==t?(g=(0,a.jsx)("section",{id:j,className:t,children:p}),f[19]=b.id,f[20]=p,f[21]=t,f[22]=g):g=f[22],g}function c(e,t){return(0,a.jsx)("p",{children:e},t)}},98183:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Stats:()=>o});var a=s(48561),r=s(62435),l=s(29237),i=s(18050),n=s(37943);function o(e){let t,s,l,o,x,u,h,p,g=(0,r.c)(35),{section:f,className:b}=e;if(f.items?.some(m)){let e,t,s,r,l,o,c=f.id;return g[0]!==b||g[1]!==f.className?(e=(0,n.cn)("border-y border-neutral-200 bg-white py-10 text-black md:py-14",f.className,b),g[0]=b,g[1]=f.className,g[2]=e):e=g[2],g[3]!==f.title?(t=(0,a.jsx)(i.i,{children:(0,a.jsx)("p",{className:"text-center text-sm font-medium tracking-wide text-neutral-600 md:text-base",children:f.title})}
1),g[3]=f.title,g[4]=t):t=g[4],g[5]!==f.items?(s=f.items?.map(d),g[5]=f.items,g[6]=s):s=g[6],g[7]!==s?(r=(0,a.jsx)(i.i,{delay:.2,children:(0,a.jsx)("div",{className:"mx-auto mt-8 flex max-w-6xl flex-wrap items-center justify-center gap-x-10 gap-y-8",children:s})}),g[7]=s,g[8]=r):r=g[8],g[9]!==t||g[10]!==r?(l=(0,a.jsxs)("div",{className:"container",children:[t,r]}),g[9]=t,g[10]=r,g[11]=l):l=g[11],g[12]!==f.id||g[13]!==e||g[14]!==l?(o=(0,a.jsx)("section",{id:c,className:e,children:l}),g[12]=f.id,g[13]=e,g[14]=l,g[15]=o):o=g[15],o}let v=`py-12 md:py-24 ${f.className} ${b}`;return g[16]!==f.title?(t=(0,a.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:f.title}),g[16]=f.title,g[17]=t):t=g[17],g[18]!==f.description?(s=(0,a.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:f.description}),g[18]=f.description,g[19]=s):s=g[19],g[20]!==t||g[21]!==s?(l=(0,a.jsx)(i.i,{children:(0,a.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[t,s]})}),g[20]=t,g[21]=s,g[22]=l):l=g[22],g[23]!==f.items?(o=f.items?.map(c),g[23]=f.items,g[24]=o):o=g[24],g[25]!==o?(x=(0,a.jsx)(i.i,{delay:.2,children:(0,a.jsx)("div",{className:"grid gap-12 divide-y *:text-center md:grid-cols-3 md:gap-2 md:divide-x md:divide-y-0",children:o})}),g[25]=o,g[26]=x):x=g[26],g[27]!==l||g[28]!==x?(u=(0,a.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[l,x]}),g[27]=l,g[28]=x,g[29]=u):u=g[29],g[30]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)("div",{className:"mx-auto mt-12 h-px w-full bg-gradient-to-r from-transparent via-yellow-500 to-transparent md:mt-16"}),g[30]=h):h=g[30],g[31]!==f.id||g[32]!==v||g[33]!==u?(p=(0,a.jsxs)("section",{id:f.id,className:v,children:[u,h]}),g[31]=f.id,g[32]=v,g[33]=u,g[34]=p):p=g[34],p}function c(e,t){return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,a.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,a.jsx)("p",{children:e.description})]},t)}function d(e,t){return(0,a.jsx)("div",{className:"flex h-10 w-28 items-center justify-center",children:(0,a.jsx)(l.oD,{src:e.image?.src??"",alt:e.image?.alt??e.title??"",className:"max-h-full max-w-full object-contain opacity-80 transition-opacity duration-300 hover:opacity-100"})},t)}function m(e){return e?.image?.src}}}]);

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.