1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24222],{3658:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesFlow:()=>o});var s=r(62219),a=r(78253),l=r(72260),i=r(72194),n=r(10993);function o(e){let t,r,i,o,c,m,x,u,h,p=(0,a.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)("overflow-x-clip 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")?(r={initial:{opacity:0,y:20,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:0,ease:[.22,1,.36,1]}},p[2]=r):r=p[2],p[3]!==g.sr_only_title?(i=g.sr_only_title&&(0,s.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,s.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?(c=(0,s.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]=c):c=p[8],p[9]!==i||p[10]!==o||p[11]!==c?(m=(0,s.jsxs)(l.P.div,{className:"container mb-12 text-center",...r,children:[i,o,c]}),p[9]=i,p[10]=o,p[11]=c,p[12]=m):m=p[12],p[13]!==g.items?(x=g.items.map(d),p[13]=g.items,p[14]=x):x=p[14],p[15]!==x?(u=(0,s.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,s.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 d(e,t){let r="right"===e.image_position;return(0,s.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",r&&"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,s.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,s.jsx)(i.oD,{src:e.image?.src??"",className:"rounded-xl",alt:e.image?.alt??""})}),(0,s.jsxs)(l.P.div,{className:"relative space-y-4",initial:{opacity:0,x:r?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.15*t+.3,ease:[.22,1,.36,1]},children:[(0,s.jsx)("h3",{className:"text-xl font-medium md:text-2xl lg:text-2xl",children:e.title}),(0,s.jsx)("p",{className:"text-muted-foreground",children:e.description})]})]},t)}},6943:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UsageMockStep:()=>f});var s=r(62219),a=r(78253),l=r(72260),i=r(93566),n=r(71789),o=r(27572),d=r(89728),c=r(90176),m=r(51179),x=r(10993);function u(e){let t,r,l,o,d,c,m,u,h=(0,a.c)(17),{withCreateButton:p}=e,g=void 0!==p&&p;h[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsxs)("div",{className:"text-muted-foreground flex items-center gap-2 text-[10px] font-bold tracking-wider uppercase",children:["Description ",(0,s.jsx)(i.A,{size:10})]}),h[0]=t):t=h[0];
1let f=g?"bg-foreground/5 border-foreground/10":"bg-foreground/5 border-primary/40";h[1]!==f?(r=(0,x.cn)("rounded-xl border p-3",f),h[1]=f,h[2]=r):r=h[2];let b=g?"With every layer, a new truth we find, in the labyrinth of love, weâre never confined.":"In the depths of our hearts, thereâs a story to tell, like the rings of a tree where the secrets dwell. Every layer we peel, every shell we b|";h[3]!==b?(l=(0,s.jsx)("p",{className:"text-foreground/80 text-[11px] leading-relaxed",children:b}),h[3]=b,h[4]=l):l=h[4],h[5]!==r||h[6]!==l?(o=(0,s.jsx)("div",{className:r,children:l}),h[5]=r,h[6]=l,h[7]=o):o=h[7],h[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsxs)("div",{className:"bg-foreground/5 text-muted-foreground flex items-center gap-1.5 rounded-md px-2 py-1 text-[9px] font-bold",children:[(0,s.jsx)(n.A,{size:10,className:"text-primary"}),"AI generated"]}),h[8]=d):d=h[8];let j=g?"210/1000":"120/1000";return h[9]!==j?(c=(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[d,(0,s.jsx)("span",{className:"text-muted-foreground text-[9px]",children:j})]}),h[9]=j,h[10]=c):c=h[10],h[11]!==g?(m=g&&(0,s.jsxs)("button",{type:"button",className:"bg-primary text-primary-foreground flex w-full items-center justify-center gap-2 rounded-xl py-2.5 text-[11px] font-black shadow-lg",children:[(0,s.jsx)(n.A,{size:12,fill:"currentColor"}),"Create"]}),h[11]=g,h[12]=m):m=h[12],h[13]!==c||h[14]!==m||h[15]!==o?(u=(0,s.jsxs)("div",{className:"bg-background/60 border-foreground
1/5 space-y-3 rounded-xl border p-4 shadow-2xl",children:[t,o,c,m]}),h[13]=c,h[14]=m,h[15]=o,h[16]=u):u=h[16],u}function h(){let e,t,r,l,i,x,u,h=(0,a.c)(7);return h[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"from-primary/40 to-primary/10 h-10 w-10 flex-shrink-0 rounded-lg bg-gradient-to-br"}),h[0]=e):e=h[0],h[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("p",{className:"text-foreground truncate text-[11px] font-bold",children:"Layers of Love"}),(0,s.jsx)("span",{className:"text-primary text-[8px] font-black uppercase",children:"New"})]}),(0,s.jsx)("p",{className:"text-muted-foreground text-[9px]",children:"Pop, Rock"})]}),h[1]=t):t=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsxs)("div",{className:"bg-foreground/5 border-foreground/10 flex items-center gap-3 rounded-xl border p-3",children:[e,t,(0,s.jsxs)("div",{className:"text-muted-foreground flex items-center gap-2",children:[(0,s.jsx)(n.A,{size:12}),(0,s.jsx)(o.A,{size:12})]})]}),h[2]=r):r=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"from-primary/30 to-primary/5 h-10 w-10 flex-shrink-0 rounded-lg bg-gradient-to-br"}),h[3]=l):l=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsxs)("div",{className:"bg-foreground
1/5 border-foreground/10 flex items-center gap-3 rounded-xl border p-3 opacity-60",children:[l,(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("p",{className:"text-foreground truncate text-[11px] font-bold",children:"Side Hustle"}),(0,s.jsx)("span",{className:"text-primary text-[8px] font-black uppercase",children:"New"})]})}),(0,s.jsx)(d.A,{size:12,className:"text-muted-foreground"})]}),h[4]=i):i=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)("div",{className:"bg-primary text-primary-foreground flex h-8 w-8 items-center justify-center rounded-full",children:(0,s.jsx)(c.A,{size:12,fill:"currentColor",className:"ms-0.5"})}),h[5]=x):x=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)("div",{className:"bg-background/60 border-foreground/5 space-y-3 rounded-xl border p-4 shadow-2xl",children:[r,i,(0,s.jsxs)("div",{className:"flex items-center gap-3 pt-2",children:[x,(0,s.jsx)("div",{className:"bg-foreground/10 h-1 flex-1 overflow-hidden rounded-full",children:(0,s.jsx)("div",{className:"bg-primary h-full w-1/3"})}),(0,s.jsx)(m.A,{size:12,className:"text-muted-foreground"})]})]}),h[6]=u):u=h[6],u}function p(e){let t=(0,a.c)(3),{type:r}=e;switch(r){case"description":{let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(u,{}),t[0]=e):e=t[0],e}case"create":{let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(u,{withCreateButton:!0}),t[1]=e):e=t[1],e}case"songs":{let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(h,{}),t[2]=e):e=t[2],e}default:return null}}function g(e){let t,r,i,n,o,d,c,m,x,u=(0,a.c)(18),{item:h,index:g}=e,f=h.mock??"description",b=String(g+1);u[0]!==b?(t=b.padStart(2,"0"),u[0]=b,u[1]=t):t=u[1];let j=t;u[2]===Symbol.for("react.memo_cache_sentinel")?(r={opacity:0,y:20},i={opacity:1,y:0},n={once:!0},u[2]=r,u[3]=i,u[4]=n):(r=u[2],i=u[3],n=u[4]);let v=.1*g;return u[5]!==v?(o={delay:v},u[5]=v,u[6]=o):o=u[6],u[7]!==j?(d=(0,s.jsx)("div",{className:"text-primary/25 group-hover:text-primary/45 mb-6 text-6xl font-bold transition-colors",children:j}),u[7]=j,u[8]=d):d=u[8],u[9]!==h.title?(c=(0,s.jsx)("h3",{className:"text-foreground mb-8 text-xl leading-relaxed font-bold tracking-tight",children:h.title}),u[9]=h.title,u[10]=c):c=u[10],u[11]!==f?(m=(0,s.jsx)("div",{className:"mt-auto",children:(0,s.jsx)(p,{type:f})}),u[11]=f,u[12]=m):m=u[12],u[13]!==m||u[14]!==o||u[15]!==d||u[16]!==c?(x=(0,s.jsxs)(l.P.div,{initial:r,whileInView:i,viewport:n,transition:o,className:"bg-card border-foreground
1/[0.06] hover:border-foreground/15 group flex flex-col rounded-[2rem] border p-10 transition-colors",children:[d,c,m]}),u[13]=m,u[14]=o,u[15]=d,u[16]=c,u[17]=x):x=u[17],x}function f(e){let t,r,i,n,o,d,c,m,u,h,p,g,f=(0,a.c)(26),{section:j,className:v}=e;f[0]!==j.items?(t=j.items??[],f[0]=j.items,f[1]=t):t=f[1];let N=t,y=j.id;return f[2]!==v||f[3]!==j.className?(r=(0,x.cn)("py-16 md:py-24",j.className,v),f[2]=v,f[3]=j.className,f[4]=r):r=f[4],f[5]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:0,y:20},n={opacity:1,y:0},o={once:!0},f[5]=i,f[6]=n,f[7]=o):(i=f[5],n=f[6],o=f[7]),f[8]!==j.title?(d=(0,s.jsx)("h2",{className:"text-foreground text-4xl font-bold tracking-tight md:text-6xl md:leading-[1.05]",children:j.title}),f[8]=j.title,f[9]=d):d=f[9],f[10]!==j.description?(c=j.description&&(0,s.jsx)("p",{className:"text-muted-foreground mx-auto mt-6 max-w-2xl text-base md:text-lg",children:j.description}),f[10]=j.description,f[11]=c):c=f[11],f[12]!==d||f[13]!==c?(m=(0,s.jsxs)(l.P.div,{initial:i,whileInView:n,viewport:o,className:"mx-auto mb-20 max-w-3xl text-center",children:[d,c]}),f[12]=d,f[13]=c,f[14]=m):m=f[14],f[15]!==N?(u=N.map(b),f[15]=N,f[16]=u):u=f[16],f[17]!==u?(h=(0,s.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:u}),f[17]=u,f[18]=h):h=f[18],f[19]!==h||f[20]!==m?(p=(0,s.jsxs)("div",{className:"container",children:[m,h]}),f[19]=h,f[20]=m,f[21]=p):p=f[21],f[22]!==j.id||f[23]!==p||f[24]!==r?(g=(0,s.jsx)("section",{id:y,className:r,children:p}),f[22]=j.id,f[23]=p,f[24]=r,f[25]=g):g=f[25],g}function b(e,t){return(0,s.jsx)(g,{item:e,index:t},t)}},12261:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CreditsCard:()=>c});var s=r(62219),a=r(78253),l=r(30363),i=r(87992),n=r(44679),o=r(7138),d=r(23490);function c(){let e,t,r,c,m,x,u,h=(0,a.c)(17),p=(0,i.c3)("tool.credits_card"),g=(0,i.kc)(),{user:f,fetchUserCredits:b}=(0,o.U)();if(h[0]!==b||h[1]!==f?(e=()=>{f&&null==f.credits&&b()},t=[f,b],h[0]=b,h[1]=f,h[2]=e,h[3]=t):(e=h[2],t=h[3]),(0,l.useEffect)(e,t),!f)return null;let j=f.credits?.remainingCredits??0;return h[4]!==g||h[5]!==j||h[6]!==p?(r=p("remaining",{remaining:g.number(j)}),h[4]=g,h[5]=j,h[6]=p,h[7]=r):r=h[7],h[8]!==r?(c=(0,s.jsx)("p",{className:"text-foreground mt-1 text-sm font-semibold",children:r}),h[8]=r,h[9]=c):c=h[9],h[10]!==p?(m=p("upgrade"),h[10]=p,h[11]=m):m=h[11],h[12]!==m?(x=(0,s.jsx)(d.$,{asChild:!0,className:"mt-3 w-full font-bold",children:(0,s.jsx)(n.N_,{href:"/pricing",children:m})}),h[12]=m,h[13]=x):x=h[13],h[14]!==c||h[15]!==x?(u=(0,s.jsxs)("div",{className:"bg-primary/5 border-primary/10 mt-3 shrink-0 rounded-xl border p-4",children:[c,x]}),h[14]=c,h[15]=x,h[16]=u):u=h[16],u}},12708:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lp4PromptHero:()=>d});var s=r(62219),a=r(78253),l=r(83391),i=r(44679),n=r(7138),o=r(10993);function d(e){let t,r,d,m,x,u,h,p,g,f,b,j,v,N,y,w=(0,a.c)(41),{section:_}=e,k=(0,i.rd)(),{user:S}=(0,n.U)();w[0]!==_.painpoints?(t=_.painpoints??[],w[0]=_.painpoints,w[1]=t):t=w[1];let C=t;w[2]!==_.library_anchor?(r=()=>{let e=document.getElementById(_.library_anchor||"prompt-library");e?e.scrollIntoView({behavior:"smooth",block:"start"}):l.oR.info("Prompt library is loading")},w[2]=_.library_anchor,w[3]=r):r=w[3];let z=r;w[4]!==k||w[5]!==S?(d=()=>{S?k.push("/dashboard/create?mode=text"):k.push(`/sign-in?callbackUrl=${encodeURIComponent("/dashboard/create?mode=text")}`)},w[4]=k,w[5]=S,w[6]=d):d=w[6];let L=d;w[7]!==_.bg?(m=(0,o.cn)("relative overflow-hidden bg-gradient-to-b from-primary/5 to-white",_.bg),w[7]=_.bg,w[8]=m):m=w[8],w[9]!==_.badge?(x=_.badge&&(0,s.jsx)("span",{className:"mb-4 inline-block rounded-full bg-primary/10 px-4 py-1 text-xs font-medium uppercase tracking-[0.14em] text-primary",children:_.badge}),w[9]=_.badge,w[10]=x):x=w[10],w[11]!==_.title?(u=(0,s.jsx)("h1",{className:"mb-4 text-4xl font-extrabold leading-tight text-foreground md:text-5xl",children:_.title}),w[11]=_.title,w[12]=u):u=w[12],w[13]!==_.description?(h=_.description&&(0,s.jsx)("p",{className:"mx-auto max-w-3xl text-lg font-light text-muted-foreground md:text-xl",children:_.description}),w[13]=_.description,w[14]=h):h=w[14];let A=_.primary_cta||"Browse the prompt library";w[15]!==z||w[16]!==A?(p=(0,s.jsx)("button",{type:"button",onClick:z,className:"w-full rounded-lg bg-primary px-8 py-3 text-base font-semibold text-primary-foreground transition hover:opacity-90 sm:w-auto",children:A}),w[15]=z,w[16]=A,w[17]=p):p=w[17];let $=_.secondary_cta||"Generate a page now";return w[18]!==L||w[19]!==$?(g=(0,s.jsx)("button",{type:"button",onClick:L,className:"w-full rounded-lg border border-border bg-card px-8 py-3 text-base font-semibold text-foreground transition hover:bg-muted sm:w-auto",children:$}),w[18]=L,w[19]=$,w[20]=g):g=w[20],w[21]!==g||w[22]!==p?(f=(0,s.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[p,g]}),w[21]=g,w[22]=p,w[23]=f):f=w[23],w[24]!==_.footnote?(b=_.footnote&&(0,s.jsx)("p",{className:"mt-4 text-sm text-muted-foreground",children:_.footnote}),w[24]=_.footnote,w[25]=b):b=w[25],w[26]!==f||w[27]!==b||w[28]!==x||w[29]!==u||w[30]!==h?(j=(0,s.jsxs)("div",{className:"text-center",children:[x,u,h,f,b]}),w[26]=f,w[27]=b,w[28]=x,w[29]=u,w[30]=h,w[31]=j):j=w[31],w[32]!==_.painpoints_title||w[33]!==C?(v=C.length>0&&(0,s.jsxs)("div",{className:"mt-12",children:[_.painpoints_title&&(0,s.jsx)("h2",{className:"mb-6 text-center text-sm font-medium uppercase tracking-[0.14em] text-muted-foreground",children:_.painpoints_title}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:C.map(c)})]}),w[32]=_.painpoints_title,w[33]=C,w[34]=v):v=w[34],w[35]!==j||w[36]!==v?(N=(0,s.jsxs)("div",{className:"container mx-auto max-w-6xl px-4 py-14 md:py-20",children:[j,v]}),w[35]=j,w[36]=v,w[37]=N):N=w[37],w[38]!==N||w[39]!==m?(y=(0,s.jsx)("section",{id:"top",className:m,children:N}),w[38]=N,w[39]=m,w[40]=y):y=w[40],y}function c(e,t){return(0,s.jsxs)("div",{className:"rounded-2xl bg-card p-5 text-left shadow-sm ring-1 ring-gray-900/5",children:[(0,s.jsx)("p",{className:"mb-3 text-sm font-semibold leading-snug text-foreground",children:e.pain}),(0,s.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:e.fix})]},t)}},13417:()=>{},18949:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CaHero:()=>m});var s=r(62219),a=r(78253),l=r(44679),i=r(7138);let n="https://cdn.colorart.ai/shuffle/uploads/files/20/20a3bd8241ff4aab68b5c3758e2b6f68097b79b8",o=[{src:`${n}/maxresdefault-1-jpg-1745506898033.webp`,width:819,height:720},{src:`${n}/5c1bf727-47f5-4498-8bfc-aba608284022-png-1745506848268-webp-1745563824652.webp`,width:957,height:825},{src:`${n}/dog-coloring-page-jpg-1745553036538.webp`,width:2096,height:1904},{src:`${n}
1/1727346116463-jpeg-1745507429424.webp`,width:450,height:800}];function d(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M7.707 1.21267C8.02812 0.224357 9.42632 0.224357 9.74744 1.21267L10.8948 4.74387C11.0384 5.18586 11.4503 5.48511 11.915 5.48511H15.6279C16.6671 5.48511 17.0992 6.81488 16.2585 7.42569L13.2547 9.60809C12.8787 9.88126 12.7214 10.3654 12.865 10.8074L14.0123 14.3386C14.3335 15.327 13.2023 16.1488 12.3616 15.538L9.35775 13.3556C8.98178 13.0824 8.47266 13.0824 8.09669 13.3556L5.09287 15.538C4.25216 16.1488 3.12099 15.327 3.44211 14.3386L4.58947 10.8074C4.73308 10.3654 4.57575 9.88126 4.19978 9.60809L1.19596 7.42569C0.355248 6.81488 0.787317 5.48511 1.82649 5.48511H5.53942C6.00415 5.48511 6.41603 5.18586 6.55964 4.74387L7.707 1.21267Z",fill:"#6366F1"})}),t[0]=e):e=t[0],e}let c="transform rounded-3xl object-cover transition duration-1000 ease-in-out hover:-translate-y-16";function m(e){let t,r,n,d,m,u,h,p,g,f,b,j,v,N,y,w,_,k=(0,a.c)(52),{section:S}=e,{user:C}=(0,i.U)(),z=S.home_header_title??"Coloring Page AI Generator",L=S.home_header_desc??"The #1 AI Coloring Page Creator - Turn Any Idea or Photo Into Beautiful Coloring Adventures, Completely Free!",A=S.home_header_btn??"Try 7 Pages Free Trial",$=S.home_header_btn_signed??"Continue Creating",P=S.home_header_trusted??"Trusted by 1M+ customers",M=S.Reviews??"Reviews",I=S.rating??"4.2/5",q=S.review_count??"45k",R=S.ctaUrl??"/sign-in",T=S.ctaSignedUrl??"/dashboard/create",[F,E,U,D]=S.images??o;k[0]!==z?(t=(0,s.jsx)("h1",{className:"mb-9 text-5xl font-black leading-none md:max-w-2xl md:text-7xl",children:z}),k[0]=z,k[1]=t):t=k[1],k[2]!==L?(r=(0,s.jsx)("p",{className:"mb-9 text-xl font-normal text-gray-900 md:max-w-sm",children:L}),k[2]=L,k[3]=r):r=k[3];let H=C?T:R,K=C?$:A;return k[4]!==H||k[5]!==K?(n=(0,s.jsx)("div",{className:"mb-12 md:inline-block",children:(0,s.jsx)(l.N_,{className:"block w-full rounded-xl border border-indigo-700 bg-indigo-600 px-6 py-4 text-center font-semibold text-white transition duration-200 ease-in-out hover:bg-indigo-700 focus:ring focus:ring-indigo-300",href:H,children:K})}),k[4]=H,k[5]=K,k[6]=n):n=k[6],k[7]!==P?(d=(0,s.jsx)("h3",{className:"mb-3 font-semibold text-gray-900",children:P}),k[7]=P,k[8]=d):d=k[8],k[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)("div",{className:"w-auto p-1",children:(0,s.jsx)("div",{className:"-m-0.5 flex flex-wrap",children:[0,1,2].map(x)})}),k[9]=m):m=k[9],k[10]!==I?(u=(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsx)("p",{className:"font-bold text-gray-900",children:I})}),k[10]=I,k[11]=u):u=k[11],k[12]!==q||k[13]!==M?(h=(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsxs)("p",{className:"font-medium text-gray-600",children:["(",q," ",M,")"]})}),k[12]=q,k[13]=M,k[14]=h):h=k[14],k[15]!==u||k[16]!==h?(p=(0,s.jsxs)("div",{className:"-m-1 flex flex-wrap items-center",children:[m,(0,s.jsx)("div",{className:"w-auto p-1",children:(0,s.jsxs)("div",{className:"-m-0.5 flex flex-wrap",children:[u,h]})})]}),k[15]=u,k[16]=h,k[17]=p):p=k[17],k[18]!==p||k[19]!==r||k[20]!==n||k[21]!==d?(g=(0,s.jsxs)("div",{children:[r,n,d,p]}),k[18]=p,k[19]=r,k[20]=n,k[21]=d,k[22]=g):g=k[22],k[23]!==t||k[24]!==g?(f=(0,s.jsxs)("div",{className:"w-full p-8 md:w-1/2 lg:w-4/12 xl:w-6/12",children:[t,g]}),k[23]=t,k[24]=g,k[25]=f):f=k[25],k[26]!==F.height||k[27]!==F.src||k[28]!==F.width?(b=(0,s.jsx)("div",{className:"w-auto p-3 lg:w-1/3 xl:pt-28",children:(0,s.jsx)("div",{className:"flex flex-wrap justify-end",children:(0,s.jsx)("div",{className:"w-auto",children:(0,s.jsx)("img",{className:`mx-auto h-52 w-64 ${c}`,src:F.src,alt:"",width:F.width,height:F.height,fetchPriority:"high",decoding:"async"})})})}),k[26]=F.height,k[27]=F.src,k[28]=F.width,k[29]=b):b=k[29],k[30]!==E.height||k[31]!==E.src||k[32]!==E.width?(j=(0,s.jsx)("div",{className:"w-auto p-3",children:(0,s.jsx)("img",{className:`mx-auto h-64 w-72 ${c}`,src:E.src,alt:"",width:E.width,height:E.height,loading:"lazy",decoding:"async"})}),k[30]=E.height,k[31]=E.src,k[32]=E.width,k[33]=j):j=k[33],k[34]!==U.height||k[35]!==U.src||k[36]!==U.width?(v=(0,s.jsx)("div",{className:"w-auto p-3",children:(0,s.jsx)("img",{className:`mx-auto h-60 w-72 ${c}`,src:U.src,alt:"",width:U.width,height:U.height,loading:"lazy",decoding:"async"})}),k[34]=U.height,k[35]=U.src,k[36]=U.width,k[37]=v):v=k[37],k[38]!==j||k[39]!==v?(N=(0,s.jsx)("div",{className:"w-auto p-3 lg:w-1/3",children:(0,s.jsxs)("div",{className:"-m-3 flex flex-wrap justify-center",children:[j,v]})}),k[38]=j,k[39]=v,k[40]=N):N=k[40],k[41]!==D.height||k[42]!==D.src||k[43]!==D.width?(y=(0,s.jsx)("div",{className:"w-auto p-3 lg:w-1/3",children:(0,s.jsx)("div",{className:"flex flex-wrap",children:(0,s.jsx)("div",{className:"w-auto",children:(0,s.jsx)("img",{className:`mx-auto w-72 ${c}`,src:D.src,alt:"",width:D.width,height:D.height,loading:"lazy",decoding:"async"})})})}),k[41]=D.height,k[42]=D.src,k[43]=D.width,k[44]=y):y=k[44],k[45]!==b||k[46]!==N||k[47]!==y?(w=(0,s.jsx)("div",{className:"w-full p-8 md:w-1/2 lg:w-8/12 xl:absolute xl:-bottom-20 xl:right-0 xl:w-8/12",children:(0,s.jsxs)("div",{className:"-m-3 flex flex-wrap items-center justify-center lg:justify-end",children:[b,N,y]})}),k[45]=b,k[46]=N,k[47]=y,k[48]=w):w=k[48],k[49]!==f||k[50]!==w?(_=(0,s.jsx)("section",{children:(0,s.jsx)("div",{className:"relative container mx-auto overflow-hidden px-4 pb-48 pt-20",children:(0,s.jsxs)("div",{className:"-m-8 flex flex-wrap",children:[f,w]})})}),k[49]=f,k[50]=w,k[51]=_):_=k[51],_}function x(e){return(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsx)(d,{})},e)}},19424:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Faq:()=>c});var s=r(62219),a=r(78253),l=r(40338),i=r(63388),n=r(39524),o=r(10993),d=r(21737);function c(e){let t,r,l,d,c,x,u,h,p,g,f=(0,a.c)(25),{section:b,className:j}=e,v=b.id;
1return f[0]!==j?(t=(0,o.cn)("py-16 md:py-24",j),f[0]=j,f[1]=t):t=f[1],f[2]!==b.title?(r=(0,s.jsx)("h2",{className:"text-4xl font-bold tracking-tight md:text-6xl md:leading-[1.05]",children:(0,s.jsx)("span",{className:"from-foreground to-foreground/40 bg-gradient-to-b bg-clip-text text-transparent dark:from-white dark:to-white/40",children:b.title})}),f[2]=b.title,f[3]=r):r=f[3],f[4]!==b.description?(l=(0,s.jsx)("p",{className:"text-muted-foreground mx-auto mt-6 max-w-xl text-base md:text-lg",children:b.description}),f[4]=b.description,f[5]=l):l=f[5],f[6]!==r||f[7]!==l?(d=(0,s.jsx)(n.i,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[r,l]})}),f[6]=r,f[7]=l,f[8]=d):d=f[8],f[9]!==b.items?(c=b.items?.map(m),f[9]=b.items,f[10]=c):c=f[10],f[11]!==c?(x=(0,s.jsx)(i.Accordion,{type:"single",collapsible:!0,className:"mx-auto mt-12 w-full space-y-3",children:c}),f[11]=c,f[12]=x):x=f[12],f[13]!==b.tip?(u=b.tip&&(0,s.jsx)("p",{className:"text-muted-foreground mt-8 text-center text-sm",dangerouslySetInnerHTML:{__html:b.tip}}),f[13]=b.tip,f[14]=u):u=f[14],f[15]!==x||f[16]!==u?(h=(0,s.jsxs)(n.i,{delay:.2,children:[x,u]}),f[15]=x,f[16]=u,f[17]=h):h=f[17],f[18]!==d||f[19]!==h?(p=(0,s.jsxs)("div",{className:"mx-auto max-w-3xl px-4 md:px-8",children:[d,h]}),f[18]=d,f[19]=h,f[20]=p):p=f[20],f[21]!==b.id||f[22]!==p||f[23]!==t?(g=(0,s.jsx)("section",{id:v,className:t,children:p}),f[21]=b.id,f[22]=p,f[23]=t,f[24]=g):g=f[24],g}function m(e,t){return(0,s.jsxs)(i.AccordionItem,{value:e.question||e.title||"",className:(0,o.cn)("border-foreground
1/[0.06] bg-card overflow-hidden rounded-xl border px-6 transition-colors last:border-b","data-[state=open]:border-foreground/15 data-[state=open]:shadow-sm"),children:[(0,s.jsx)(d.Y9,{className:"flex",children:(0,s.jsxs)(d.l9,{className:(0,o.cn)("group/trigger flex flex-1 items-center justify-between gap-4 py-5 text-start text-base font-medium transition-all outline-none","focus-visible:ring-ring/40 focus-visible:rounded-md focus-visible:ring-2"),children:[(0,s.jsx)("span",{className:"text-foreground",children:e.question||e.title||""}),(0,s.jsx)("span",{className:"bg-foreground/5 text-muted-foreground border-foreground/10 flex size-7 shrink-0 items-center justify-center rounded-full border transition-all group-data-[state=open]/trigger:rotate-45 group-data-[state=open]/trigger:bg-primary group-data-[state=open]/trigger:text-primary-foreground group-data-[state=open]/trigger:border-transparent",children:(0,s.jsx)(l.A,{className:"size-4",strokeWidth:2.5})})]})}),(0,s.jsx)(i.AccordionContent,{className:"pt-0 pb-5",children:(0,s.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed md:text-base",children:e.answer||e.description||""})})]},t)}},19630:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TwAccordion:()=>d});var s=r(62219),a=r(78253),l=r(30363),i=r(15530),n=r(40338),o=r(10993);function d(e){let t,r,d,c,m,x,u=(0,a.c)(16),{section:h}=e,[p,g]=(0,l.useState)(null),f=h.id||h.name;return u[0]!==h.className?(t=(0,o.cn)("py-16 md:py-24",h.className),u[0]=h.className,u[1]=t):t=u[1],u[2]!==h.title?(r=(0,s.jsx)("h2",{className:"text-3xl font-semibold tracking-tight text-foreground sm:text-4xl",children:h.title}),u[2]=h.title,u[3]=r):r=u[3],u[4]!==p||u[5]!==h.items?(d=h.items?.map((e,t)=>{let r=p===t;return(0,s.jsxs)("div",{className:"py-6 first:pt-0 last:pb-0",children:[(0,s.jsx)("dt",{children:(0,s.jsxs)("button",{type:"button",onClick:()=>g(r?null:t),"aria-expanded":r,className:"flex w-full items-start justify-between text-start text-foreground",children:[(0,s.jsx)("span",{className:"text-base/7 font-semibold",children:e.title}),(0,s.jsx)("span",{className:"ms-6 flex h-7 items-center text-muted-foreground",children:r?(0,s.jsx)(i.A,{"aria-hidden":"true",className:"size-6"}):(0,s.jsx)(n.A,{"aria-hidden":"true",className:"size-6"})})]})}),r&&(0,s.jsx)("dd",{className:"mt-2 pe-12",children:(0,s.jsx)("p",{className:"text-base/7 text-muted-foreground",children:e.description})})]},e.title)}),u[4]=p,u[5]=h.items,u[6]=d):d=u[6],u[7]!==d?(c=(0,s.jsx)("dl",{className:"mt-16 divide-y divide-border",children:d}),u[7]=d,u[8]=c):c=u[8],u[9]!==r||u[10]!==c?(m=(0,s.jsx)("div",{className:"container px-6",children:(0,s.jsxs)("div",{className:"mx-auto max-w-4xl",children:[r,c]})}),u[9]=r,u[10]=c,u[11]=m):m=u[11],u[12]!==f||u[13]!==t||u[14]!==m?(x=(0,s.jsx)("section",{id:f,className:t,children:m}),u[12]=f,u[13]=t,u[14]=m,u[15]=x):x=u[15],x}},22800:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesStep:()=>d});var s=r(62219),a=r(78253),l=r(80731),i=r(72194),n=r(39524),o=r(10993);function d(e){let t,r,d,c,m,x,u,h,p,g=(0,a.c)(25),{section:f,className:b}=e,j="tile"===f.icon_variant,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?(r=(0,s.jsx)("span",{className:"text-primary",children:f.label}),g[3]=f.label,g[4]=r):r=g[4],g[5]!==f.title?(d=(0,s.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:f.title}),g[5]=f.title,g[6]=d):d=g[6],g[7]!==f.description?(c=(0,s.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:f.description}),g[7]=f.description,g[8]=c):c=g[8],g[9]!==r||g[10]!==d||g[11]!==c?(m=(0,s.jsx)(n.i,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[r,d,c]})}),g[9]=r,g[10]=d,g[11]=c,g[12]=m):m=g[12],g[13]!==f.items||g[14]!==j?(x=f.items?.map((e,t)=>(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.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,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"mx-auto my-6 w-fit",children:e.icon&&(j?(0,s.jsx)("div",{className:"bg-primary/10 text-primary border-primary/15 flex size-14 items-center justify-center rounded-xl border",children:(0,s.jsx)(i.LK,{name:e.icon,size:24})}):(0,s.jsx)(i.LK,{name:e.icon,size:24}))}),t<(f.items?.length??0)-1&&(0,s.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,s.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},t)),g[13]=f.items,g[14]=j,g[15]=x):x=g[15],g[16]!==x?(u=(0,s.jsx)(n.i,{delay:.2,children:(0,s.jsx)("div",{className:"mt-20 grid gap-12 @3xl:grid-cols-4",children:x})}),g[16]=x,g[17]=u):u=g[17],g[18]!==m||g[19]!==u?(h=(0,s.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,s.jsxs)("div",{className:"@container relative container",children:[m,u]})}),g[18]=m,g[19]=u,g[20]=h):h=g[20],g[21]!==f.id||g[22]!==t||g[23]!==h?(p=(0,s.jsx)("section",{id:v,className:t,children:h}),g[21]=f.id,g[22]=t,g[23]=h,g[24]=p):p=g[24],p}},24678:(e,t,r)=>{"use strict";r.r(t),r.d(t,{MarketingHeader:()=>h});var s=r(62219),a=r(78253),l=r(87992),i=r(30363),n=r(55829),o=r(44679),d=r(2102),c=r(1421),m=r(4488),x=r(80852);function u(e){let t,r,l=(0,a.c)(3),{className:i}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}),l[0]=t):t=l[0],l[1]!==i?(r=(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",className:i,children:t}),l[1]=i,l[2]=r):r=l[2],r}function h(e){let t,r,h,j,v,N,y,w,_,k,S,C,z,L,A=(0,a.c)(98),{header:$}=e,[P,M]=(0,i.useState)(!1),[I,q]=(0,i.useState)(!1),{data:R,isPending:T}=(0,d.wV)(),F=!!$.dashboardNav||!!R&&!T,E=(0,x.J)();A[0]!==E?(t=()=>E?E.openUpsell():window.location.href="/pricing",A[0]=E,A[1]=t):t=A[1];let U=t,D=(0,l.c3)("colorart");A[2]!==$?(r=$.featureItems??[],A[2]=$,A[3]=r):r=A[3];let H=r,K=!!$.coreLandings,V=!!$.freeColoring,O=!!$.namedTools;if(A[4]!==K||A[5]!==F||A[6]!==H||A[7]!==V||A[8]!==$||A[9]!==I||A[10]!==P||A[11]!==O||A[12]!==U||A[13]!==D){let e,t,r,a,l,i,d,x,_,k,S,C,z,L,R,T,E,W,B=O?($.nav?.items??[]).filter(f):[];A[20]!==D?(e=D("Home"),A[20]=D,A[21]=e):e=A[21],A[22]!==D?(t=D("Free Coloring Pages"),A[22]=D,A[23]=t):t=A[23],A[24]!==D?(r=D("Features"),A[24]=D,A[25]=r):r=A[25],A[26]!==D?(a=D("Coloring Pages"),A[26]=D,A[27]=a):a=A[27],A[28]!==D?(l=D("Pricing"),A[28]=D,A[29]=l):l=A[29],A[30]!==D?(i=D("Upgrade"),A[30]=D,A[31]=i):i=A[31],A[32]!==D?(d=D("Feedback"),A[32]=D,A[33]=d):d=A[33],A[34]!==D?(x=D("Dashboard"),A[34]=D,A[35]=x):x=A[35],A[36]!==$?(_=$.labels??{},A[36]=$,A[37]=_):_=A[37];let Z=_;A[38]!==t||A[39]!==r||A[40]!==a||A[41]!==l||A[42]!==i||A[43]!==d||A[44]!==x||A[45]!==Z||A[46]!==e?(k={home:e,free_coloring:t,features:r,coloring_pages:a,pricing:l,upgrade:i,feedback:d,dashboard:x,...Z},A[38]=t,A[39]=r,A[40]=a,A[41]=l,A[42]=i,A[43]=d,A[44]=x,A[45]=Z,A[46]=e,A[47]=k):k=A[47];let J=k;A[48]===Symbol.for("react.memo_cache_sentinel")?(S=()=>M(!1),A[48]=S):S=A[48];let G=S;y="marketing-header bg-white shadow-md";let Y=$.brand?.target||"_self",Q=`flex items-center space-x-3 ${$.brand?.className}`,X=$.brand?.url||"/";A[49]!==$.brand?(C=$.brand?.logo?.src?(0,s.jsx)(n.default,{alt:$.brand?.title||"",width:$.brand.logo.width||222,height:$.brand.logo.height||80,className:"h-8 w-auto rounded-lg",src:$.brand.logo.src,unoptimized:!0}):null,A[49]=$.brand,A[50]=C):C=A[50],A[51]!==Y||A[52]!==Q||A[53]!==X||A[54]!==C?(z=(0,s.jsx)("div",{className:"flex flex-1",children:(0,s.jsx)(o.N_,{target:Y,className:Q,href:X,children:C})}),A[51]=Y,A[52]=Q,A[53]=X,A[54]=C,A[55]=z):z=A[55];let ee=F?(0,s.jsxs)("nav",{className:"hidden items-center gap-6 md:flex",children:[(0,s.jsx)("button",{type:"button",onClick:U,className:"flex items-center gap-2 font-medium text-gray-700 hover:text-indigo-600",children:(0,s.jsx)("span",{className:"hidden md:inline",children:J.upgrade})}),(0,s.jsx)("button",{type:"button",onClick:b,className:"flex items-center gap-2 font-medium text-gray-700 hover:text-indigo-600",children:(0,s.jsx)("span",{className:"hidden md:inline",children:J.feedback})}),(0,s.jsx)(o.N_,{className:"flex items-center gap-2 font-medium text-gray-700 hover:text-indigo-600",href:"/dashboard/create",children:(0,s.jsx)("span",{className:"hidden md:inline",children:J.dashboard})})]}):(0,s.jsxs)("nav",{className:"hidden items-center gap-6 md:flex",children:[(0,s.jsx)(o.N_,{className:"text-gray-700 hover:text-indigo-600",title:"homepage",href:"/",children:J.home}),V?(0,s.jsx)(o.N_,{className:"text-gray-700 hover:text-indigo-600",href:"/free-coloring-pages",children:J.free_coloring}):null,H.length>0?(0,s.jsxs)("div",{className:"group relative",children:[(0,s.jsxs)("button",{type:"button",className:"flex items-center gap-1 text-gray-700 hover:text-indigo-600",children:[J.features,(0,s.jsx)(u,{className:"h-4 w-4 transition-transform group-hover:rotate-180"})]}),(0,s.jsx)("div",{className:"invisible absolute top-full left-1/2 z-30 w-64 -translate-x-1/2 pt-3 opacity-0 transition-opacity group-hover:visible group-hover:opacity-100",children:(0,s.jsx)("div",{className:"overflow-hidden rounded-2xl border border-gray-100 bg-white py-2 shadow-xl",children:H.map(g)})})]}):null,B.map(p),K?(0,s.jsx)(o.N_,{className:"text-gray-700 hover:text-indigo-600",href:"/coloring-page",children:J.coloring_pages}):null,(0,s.jsx)(o.N_,{className:"text-gray-700 hover:text-indigo-600",href:"/pricing",children:J.pricing})]});A[56]!==J.dashboard||A[57]!==F||A[58]!==$.show_locale||A[59]!==$.show_sign||A[60]!==$.user_nav||A[61]!==P?(L=F?(0,s.jsxs)("div",{className:"flex items-center gap-3 md:hidden",children:[(0,s.jsx)(o.N_,{title:J.dashboard,"aria-label":J.dashboard,className:"text-gray-700 hover:text-indigo-600",href:"/dashboard/create",children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-layout-dashboard h-6 w-6","aria-hidden":"true",children:[(0,s.jsx)("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]})}),$.show_locale?(0,s.jsx)(c.LocaleSelector,{}):null,$.show_sign?(0,s.jsx)(m.SignUser,{userNav:$.user_nav}):null]}):(0,s.jsx)("div",{className:"flex items-center md:hidden",children:(0,s.jsx)("button",{type:"button",onClick:()=>M(!P),className:"text-gray-600 hover:text-gray-900 focus:outline-none",children:(0,s.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})})}),A[56]=J.dashboard,A[57]=F,A[58]=$.show_locale,A[59]=$.show_sign,A[60]=$.user_nav,A[61]=P,A[62]=L):L=A[62],A[63]!==$.show_locale?(R=$.show_locale?(0,s.jsx)(c.LocaleSelector,{}):null,A[63]=$.show_locale,A[64]=R):R=A[64],A[65]!==$.show_sign||A[66]!==$.user_nav?(T=$.show_sign?(0,s.jsx)(m.SignUser,{userNav:$.user_nav}):null,A[65]=$.show_sign,A[66]=$.user_nav,A[67]=T):T=A[67],A[68]!==R||A[69]!==T?(E=(0,s.jsxs)("div",{className:"ml-6 hidden items-center gap-4 md:flex",children:[R,T]}),A[68]=R,A[69]=T,A[70]=E):E=A[70],A[71]!==L||A[72]!==E?(W=(0,s.jsxs)("div",{children:[L,E]}),A[71]=L,A[72]=E,A[73]=W):W=A[73],A[74]!==z||A[75]!==ee||A[76]!==W?(w=(0,s.jsxs)("div",{className:"mx-auto flex w-full items-center justify-between gap-4 px-4 py-4 sm:px-6 lg:px-8",children:[z,ee,W]}),A[74]=z,A[75]=ee,A[76]=W,A[77]=w):w=A[77],v=P?"":"hidden",N="mobile-menu",h="p-4",j=F?null:(0,s.jsxs)("nav",{children:[(0,s.jsx)(o.N_,{className:"block px-4 py-2 text-base font-medium text-gray-700 hover:bg-gray-50 hover:text-indigo-600",href:"/",onClick:G,children:J.home}),V?(0,s.jsx)(o.N_,{className:"block px-4 py-2 text-base font-medium text-gray-700 hover:bg-gray-50 hover:text-indigo-600",href:"/free-coloring-pages",onClick:G,children:J.free_coloring}):null,B.map(e=>(0,s.jsx)(o.N_,{className:"block px-4 py-2 text-base font-medium text-gray-700 hover:bg-gray-50 hover:text-indigo-600",href:e.url,onClick:G,children:e.title},e.url)),K?(0,s.jsx)(o.N_,{className:"block px-4 py-2 text-base font-medium text-gray-700 hover:bg-gray-50 hover:text-indigo-600",href:"/coloring-page",onClick:G,children:J.coloring_pages}):null,(0,s.jsx)(o.N_,{className:"block px-4 py-2 text-base font-medium text-gray-700 hover:bg-gray-50 hover:text-indigo-600",href:"/pricing",onClick:G,children:J.pricing}),H.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button","aria-expanded":I,onClick:()=>q(!I),className:"flex w-full items-center justify-between px-4 pt-3 pb-1 text-xs font-semibold tracking-wide text-gray-400 uppercase hover:text-indigo-600",children:[(0,s.jsx)("span",{children:J.features}),(0,s.jsx)(u,{className:`h-4 w-4 transition-transform ${I?"rotate-180":""}`})]}),I?H.map(e=>(0,s.jsx)(o.N_,{className:"block px-4 py-2.5 text-sm font-medium text-gray-700 hover:bg-indigo-50 hover:text-indigo-600",href:`/${e.slug}`,onClick:G,children:e.label},e.slug)):null]}):null]}),A[4]=K,A[5]=F,A[6]=H,A[7]=V,A[8]=$,A[9]=I,A[10]=P,A[11]=O,A[12]=U,A[13]=D,A[14]=h,A[15]=j,A[16]=v,A[17]=N,A[18]=y,A[19]=w}else h=A[14],j=A[15],v=A[16],N=A[17],y=A[18],w=A[19];return A[78]!==$.show_locale?(_=$.show_locale?(0,s.jsx)(c.LocaleSelector,{}):null,A[78]=$.show_locale,A[79]=_):_=A[79],A[80]!==$.show_sign||A[81]!==$.user_nav?(k=$.show_sign?(0,s.jsx)(m.SignUser,{userNav:$.user_nav}):null,A[80]=$.show_sign,A[81]=$.user_nav,A[82]=k):k=A[82],A[83]!==k||A[84]!==_?(S=(0,s.jsxs)("div",{className:"mt-3 flex items-center gap-4",children:[_,k]}),A[83]=k,A[84]=_,A[85]=S):S=A[85],A[86]!==S||A[87]!==h||A[88]!==j?(C=(0,s.jsxs)("div",{className:h,children:[j,S]}),A[86]=S,A[87]=h,A[88]=j,A[89]=C):C=A[89],A[90]!==C||A[91]!==v||A[92]!==N?(z=(0,s.jsx)("div",{className:v,id:N,children:C}),A[90]=C,A[91]=v,A[92]=N,A[93]=z):z=A[93],A[94]!==z||A[95]!==y||A[96]!==w?(L=(0,s.jsxs)("header",{className:y,children:[w,z]}),A[94]=z,A[95]=y,A[96]=w,A[97]=L):L=A[97],L}function p(e){return(0,s.jsx)(o.N_,{className:"text-gray-700 hover:text-indigo-600",href:e.url,children:e.title},e.url)}function g(e){return(0,s.jsx)(o.N_,{className:"block px-4 py-2.5 text-sm font-medium text-gray-700 hover:bg-indigo-50 hover:text-indigo-600",href:`/${e.slug}`,children:e.label},e.slug)}function f(e){return e.url&&"/pricing"!==e.url}function b(){return window.dispatchEvent(new Event("open-feedback"))}},24803:(e,t,r)=>{"use strict";r.d(t,{M:()=>a,OY:()=>l});let s="query";function a(e){try{localStorage.setItem(s,JSON.stringify({...e,_ts:Date.now()}))}catch{}}function l(){return function(e){try{let t=localStorage.getItem(s);if(!t)return null;e&&localStorage.removeItem(s);let r=JSON.parse(t);if("number"!=typeof r._ts||Date.now()-r._ts>18e5)return null;let{_ts:a,...l}=r;return l}catch{return null}}(!0)}},30342:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UsecasesTabPanels:()=>d});var s=r(62219),a=r(78253),l=r(30363),i=r(14938),n=r(72194),o=r(10993);function d(e){let t,r,i,d,m,x,u,h,p,g,f=(0,a.c)(29),{section:b}=e;f[0]!==b.items?(t=b.items??[],f[0]=b.items,f[1]=t):t=f[1];let j=t,[v,N]=(0,l.useState)(0),y=j[v];f[2]!==y?(r=y?.points??[],f[2]=y,f[3]=r):r=f[3];let w=r,_=b.id||b.name;return f[4]!==b.className?(i=(0,o.cn)("py-16 md:py-24",b.className),f[4]=b.className,f[5]=i):i=f[5],f[6]!==b.label?(d=b.label&&(0,s.jsx)("span",{className:"text-primary text-sm font-semibold tracking-wide uppercase",children:b.label}),f[6]=b.label,f[7]=d):d=f[7],f[8]!==b.title?(m=b.title&&(0,s.jsx)("h2",{className:"text-foreground mt-3 text-3xl font-extrabold tracking-tight text-balance sm:text-4xl md:text-5xl",children:b.title}),f[8]=b.title,f[9]=m):m=f[9],f[10]!==b.description?(x=b.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-5 tex
1t-lg text-pretty",children:b.description}),f[10]=b.description,f[11]=x):x=f[11],f[12]!==d||f[13]!==m||f[14]!==x?(u=(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[d,m,x]})}),f[12]=d,f[13]=m,f[14]=x,f[15]=u):u=f[15],f[16]!==v||f[17]!==y||f[18]!==j||f[19]!==w||f[20]!==b.title?(h=j.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{role:"tablist","aria-label":b.title||"Audiences",className:"mx-auto mt-12 flex max-w-3xl flex-wrap justify-center gap-2",children:j.map((e,t)=>{let r=t===v;return(0,s.jsxs)("button",{type:"button",role:"tab",id:`usecase-tab-${t}`,"aria-selected":r,"aria-controls":`usecase-panel-${t}`,onClick:()=>N(t),className:(0,o.cn)("flex items-center gap-2 rounded-full border px-4 py-2 text-sm font-medium transition-colors duration-200 outline-none","focus-visible:ring-ring/50 focus-visible:ring-[3px]",r?"border-primary bg-primary text-primary-foreground":"border-border bg-card text-muted-foreground hover:border-primary/40 hover:text-foreground"),children:[e.icon&&(0,s.jsx)(n.LK,{name:e.icon,size:16}),e.title]},t)})}),y&&(0,s.jsxs)("div",{role:"tabpanel",id:`usecase-panel-${v}`,"aria-labelledby":`usecase-tab-${v}
1`,className:"border-foreground/[0.08] bg-card mx-auto mt-8 grid max-w-4xl gap-8 rounded-2xl border p-8 md:grid-cols-2 md:gap-12 md:p-10",children:[(0,s.jsxs)("div",{children:[y.tip&&(0,s.jsx)("span",{className:"text-primary text-xs font-semibold tracking-wide uppercase",children:y.tip}),(0,s.jsxs)("h3",{className:"text-foreground mt-2 flex items-center gap-2.5 text-xl font-bold",children:[y.icon&&(0,s.jsx)("span",{className:"bg-primary/12 text-primary flex size-9 shrink-0 items-center justify-center rounded-xl",children:(0,s.jsx)(n.LK,{name:y.icon,size:18})}),y.title]}),y.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-4 text-base/7 text-pretty",children:y.description})]}),w.length>0&&(0,s.jsx)("ul",{className:"space-y-4 md:border-l md:border-border md:pl-12",children:w.map(c)})]})]}),f[16]=v,f[17]=y,f[18]=j,f[19]=w,f[20]=b.title,f[21]=h):h=f[21],f[22]!==u||f[23]!==h?(p=(0,s.jsxs)("div",{className:"container px-6",children:[u,h]}),f[22]=u,f[23]=h,f[24]=p):p=f[24],f[25]!==p||f[26]!==_||f[27]!==i?(g=(0,s.jsx)("section",{id:_,className:i,children:p}),f[25]=p,f[26]=_,f[27]=i,f[28]=g):g=f[28],g}function c(e,t){let r="string"==typeof e?e:e.title,a="string"==typeof e?void 0:e.description;return(0,s.jsxs)("li",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"bg-primary text-primary-foreground mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",children:(0,s.jsx)(i.A,{className:"size-3.5",strokeWidth:3})}),(0,s.jsxs)("div",{children:[r&&(0,s.jsx)("span",{className:"text-foreground text-base/7 font-medium",children:r}),a&&(0,s.jsx)("span",{className:"text-muted-foreground mt-1 block text-sm/6",children:a})]})]},t)}},31614:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Header:()=>j});var s=r(62219),a=r(78253),l=r(30363),i=r(87193),n=r(87954),o=r(44679),d=r(76502),c=r(1421),m=r(59030),x=r(34819),u=r(4488),h=r(63388),p=r(76036),g=r(10993),f=r(44572);function b(e){let t,r,i,n=(0,a.c)(4),[o,d]=(0,l.useState)(!1);return(n[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{d(!0)},r=[],n[0]=t,n[1]=r):(t=n[0],r=n[1]),(0,l.useEffect)(t,r),o)?(n[2]!==e?(i=(0,s.jsx)(p.wd,{...e}),n[2]=e,n[3]=i):i=n[3],i):null}function j(e){let t,r,j,N,y,w,_,k,S,C,z,L,A,$,P,M,I,q,R,T,F,E,U=(0,a.c)(53),{header:D}=e,[H,K]=(0,l.useState)(!1),[V,O]=(0,l.useState)(!1),W=(0,l.useRef)(!1),B=(0,l.useRef)(null),Z=function(e){let t,r,s=(0,a.c)(3),[i,n]=(0,l.useState)(!0);return s[0]!==e?(t=()=>{let t=window.matchMedia(e);n(t.matches);let r=()=>n(t.matches);return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},r=[e],s[0]=e,s[1]=t,s[2]=r):(t=s[1],r=s[2]),(0,l.useEffect)(t,r),i}("(min-width: 64rem)"),J=(0,o.a8)();U[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=()=>{null==B.current&&(B.current=window.requestAnimationFrame(()=>{B.current=null;let e=window.scrollY>50;e!==W.current&&(W.current=e,O(e))}))};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),null!=B.current&&(window.cancelAnimationFrame(B.current),B.current=null)}},r=[],U[0]=t,U[1]=r):(t=U[0],r=U[1]),(0,l.useEffect)(t,r),U[2]!==D.nav?.items||U[3]!==J?(j=()=>(0,s.jsx)(p.KS,{viewport:!1,className:"**:data-[slot=navigation-menu-content]:top-10 max-lg:hidden",children:(0,s.jsx)(p.SK,{className:"gap-2",children:D.nav?.items?.map((e,t)=>e.children&&0!==e.children.length?(0,s.jsxs)(p.JD,{children:[(0,s.jsxs)(b,{className:"flex flex-row items-center gap-2 text-sm",children:[e.icon&&(0,s.jsx)(m.L,{name:e.icon,className:"h-4 w-4"}),e.title]}),(0,s.jsx)(p.hA,{className:"origin-top p-0.5 md:w-max md:!translate-x-0",children:(0,s.jsx)("div",{className:"border-foreground
1/5 bg-card ring-foreground/5 rounded-[calc(var(--radius)-2px)] border border-transparent p-4 shadow ring-1",children:(0,s.jsx)(f.ToolsMegaMenu,{})})})]},t):(0,s.jsx)(p.Ws,{asChild:!0,children:(0,s.jsxs)(o.N_,{href:e.url||"",target:e.target||"_self",className:`flex flex-row items-center gap-2 px-4 py-1.5 text-sm ${e.is_active||J.endsWith(e.url)?"bg-muted/40 text-muted-foreground":""}`,children:[e.icon&&(0,s.jsx)(m.L,{name:e.icon}),e.title]})},t))})}),U[2]=D.nav?.items,U[3]=J,U[4]=j):j=U[4];let G=j;U[5]!==D.nav?.items?(N=e=>{let{closeMenu:t}=e;return(0,s.jsx)("nav",{role:"navigation",className:"w-full [--color-border:--alpha(var(--color-foreground)/5%)] [--color-muted:--alpha(var(--color-foreground)/5%)]",children:(0,s.jsx)(h.Accordion,{type:"single",collapsible:!0,className:"-mx-4 mt-0.5 space-y-0.5 **:hover:no-underline",children:D.nav?.items?.map((e,r)=>(0,s.jsx)(h.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.AccordionTrigger,{className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title}),(0,s.jsx)(h.AccordionContent,{className:"pb-5",children:(0,s.jsx)(f.ToolsMenuMobileGroups,{closeMenu:t})})]}):(0,s.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})},r))})})},U[5]=D.nav?.items,U[6]=N):N=U[6];let Y=N,Q=H?"active":"inactive";U[7]!==V?(y=V&&{"data-scrolled":!0},U[7]=V,U[8]=y):y=U[8],U[9]===Symbol.for("react.memo_cache_sentinel")?(w=(0,g.cn)("absolute inset-x-0 top-0 z-50 h-18 border-transparent ring-1 ring-transparent transition-all duration-300","in-data-scrolled:border-foreground
1/5 in-data-scrolled:bg-background/75 in-data-scrolled:border-b in-data-scrolled:backdrop-blur","has-data-[state=open]:ring-foreground/5 has-data-[state=open]:bg-card/75 has-data-[state=open]:h-[calc(var(--navigation-menu-viewport-height)+3.4rem)] has-data-[state=open]:border-b has-data-[state=open]:shadow-lg has-data-[state=open]:shadow-black/10 has-data-[state=open]:backdrop-blur","max-lg:in-data-[state=active]:bg-background/75 max-lg:h-14 max-lg:overflow-hidden max-lg:border-b max-lg:in-data-[state=active]:h-screen max-lg:in-data-[state=active]:backdrop-blur"),U[9]=w):w=U[9],U[10]!==D.brand?(_=D.brand&&(0,s.jsx)(d.F,{brand:D.brand}),U[10]=D.brand,U[11]=_):_=U[11],U[12]!==G||U[13]!==Z?(k=Z&&(0,s.jsx)(G,{}),U[12]=G,U[13]=Z,U[14]=k):k=U[14],U[15]!==H?(S=()=>K(!H),U[15]=H,U[16]=S):S=U[16];let X=!0==H?"Close Menu":"Open Menu";return U[17]===Symbol.for("react.memo_cache_sentinel")?(C=(0,s.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"}),z=(0,s.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"}),U[17]=C,U[18]=z):(C=U[17],z=U[18]),U[19]!==S||U[20]!==X?(L=(0,s.jsxs)("button",{onClick:S,"aria-label":X,className:"relative z-20 -m-2.5 -me-3 block cursor-pointer p-2.5 lg:hidden",children:[C,z]}),U[19]=S,U[20]=X,U[21]=L):L=U[21],U[22]!==L||U[23]!==_||U[24]!==k?(A=(0,s.jsxs)("div",{className:"flex justify-between gap-8 max-lg:h-14 max-lg:w-full max-lg:border-b",children:[_,k,L]}),U[22]=L,U[23]=_,U[24]=k,U[25]=A):A=U[25],U[26]!==Y||U[27]!==Z||U[28]!==H?($=!Z&&H&&(0,s.jsx)(Y,{closeMenu:()=>K(!1)}),U[26]=Y,U[27]=Z,U[28]=H,U[29]=$):$=U[29],U[30]!==D.buttons?(P=D.buttons&&D.buttons.map(v),U[30]=D.buttons,U[31]=P):P=U[31],U[32]!==D.show_theme?(M=D.show_theme?(0,s.jsx)(x.ThemeToggler,{}):null,U[32]=D.show_theme,U[33]=M):M=U[33],U[34]!==D.show_locale?(I=D.show_locale?(0,s.jsx)(c.LocaleSelector,{}):null,U[34]=D.show_locale,U[35]=I):I=U[35],U[36]===Symbol.for("react.memo_cache_sentinel")?(q=(0,s.jsx)("div",{className:"flex-1 md:hidden"}),U[36]=q):q=U[36],U[37]!==D.show_sign||U[38]!==D.user_nav?(R=D.show_sign?(0,s.jsx)(u.SignUser,{userNav:D.user_nav}):null,U[37]=D.show_sign,U[38]=D.user_nav,U[39]=R):R=U[39],U[40]!==P||U[41]!==M||U[42]!==I||U[43]!==R?(T=(0,s.jsx)("div",{className:"mb-6 hidden w-full flex-wrap items-center justify-end space-y-8 in-data-[state=active]:flex max-lg:in-data-[state=active]:mt-6 md:flex-nowrap lg:m-0 lg:flex lg:w-fit lg:gap-6 lg:space-y-0 lg:border-transparent lg:bg-transparent lg:p-0 lg:shadow-none dark:shadow-none dark:lg:bg-transparent",children:(0,s.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 sm:flex-row sm:gap-6 sm:space-y-0 md:w-fit",children:[P,M,I,q,R]})}),U[40]=P,U[41]=M,U[42]=I,U[43]=R,U[44]=T):T=U[44],U[45]!==A||U[46]!==$||U[47]!==T?(F=(0,s.jsx)("div",{className:w,children:(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between lg:py-5",children:[A,$,T]})})}),U[45]=A,U[46]=$,U[47]=T,U[48]=F):F=U[48],U[49]!==F||U[50]!==Q||U[51]!==y?(E=(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("header",{"data-state":Q,...y,className:"marketing-header 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:F})}),U[49]=F,U[50]=Q,U[51]=y,U[52]=E):E=U[52],E}function v(e,t){return(0,s.jsxs)(o.N_,{href:e.url||"",target:e.target||"_self",className:(0,g.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,s.jsx)(m.L,{name:e.icon,className:"size-4"}),(0,s.jsx)("span",{children:e.title})]},t)}},36288:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BlogDetail:()=>p});var s=r(62219),a=r(78253),l=r(86404),i=r(9258),n=r(87992),o=r(72194),d=r(62682),c=r(44679);function m(e){let t,r,l=(0,a.c)(4),{items:i}=e;return l[0]!==i?(t=i.map(x),l[0]=i,l[1]=t):t=l[1],l[2]!==t?(r=(0,s.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:t}),l[2]=t,l[3]=r):r=l[3],r}function x(e,t){let r=e.is_active;return(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsxs)(c.N_,{href:e.url||"",className:`hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ${r?"text-primary hover:text-primary font-medium":""}`,children:[e.icon&&(0,s.jsx)(o.LK,{name:e.icon,className:"size-4"}),e.title]}
1),!r&&(0,s.jsx)(d.A,{className:"text-muted-foreground/40 mx-2 h-4 w-4"})]},t)}function u(e){let t,r,l=(0,a.c)(4),{toc:i}=e;return l[0]!==i?(t=i.map(h),l[0]=i,l[1]=t):t=l[1],l[2]!==t?(r=(0,s.jsx)("nav",{className:"flex flex-col gap-1 text-sm",children:t}),l[2]=t,l[3]=r):r=l[3],r}function h(e,t){return(0,s.jsx)("a",{href:e.url,className:"text-muted-foreground hover:text-foreground transition-colors",style:{paddingLeft:`${Math.max(0,(e.depth-2)*12)}px`},children:e.title},t)}function p(e){let t,r,d,c,x,h,p,g,f,b,j,v,N,y,w,_,k,S,C=(0,a.c)(52),{post:z}=e,L=(0,n.c3)("pages.blog.messages");C[0]!==L?(t=L("crumb"),C[0]=L,C[1]=t):t=C[1],C[2]!==t?(r={title:t,url:"/blog",icon:"Newspaper",is_active:!1},C[2]=t,C[3]=r):r=C[3];let A=z.title||"",$=`/blog/${z.slug}`;C[4]!==A||C[5]!==$?(d={title:A,url:$,is_active:!0},C[4]=A,C[5]=$,C[6]=d):d=C[6],C[7]!==r||C[8]!==d?(c=[r,d],C[7]=r,C[8]=d,C[9]=c):c=C[9];let P=c,M=z.toc&&z.toc.length>0,I=z.author_name||z.author_image||z.author_role;C[10]!==I||C[11]!==M?(x=()=>M&&I?"lg:col-span-6":M||I?"lg:col-span-9":"lg:col-span-12",C[10]=I,C[11]=M,C[12]=x):x=C[12];let q=x,R=z.id;C[13]!==P?(h=(0,s.jsx)(m,{items:P}),C[13]=P,C[14]=h):h=C[14],C[15]!==z.title?(p=(0,s.jsx)("h1",{className:"text-foreground mx-auto mb-4 w-full text-3xl font-bold md:max-w-4xl md:text-4xl",children:z.title}),C[15]=z.title,C[16]=p):p=C[16],C[17]!==z.created_at?(g=z.created_at&&(0,s.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,s.jsx)(l.A,{className:"size-4"})," ",z.created_at]}),C[17]=z.created_at,C[18]=g):g=C[18],C[19]!==g?(f=(0,s.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:g}),C[19]=g,C[20]=f):f=C[20],C[21]!==p||C[22]!==f?(b=(0,s.jsxs)("div",{className:"mt-16 text-center",children:[p,f]}),C[21]=p,C[22]=f,C[23]=b):b=C[23],C[24]!==z.toc||C[25]!==M||C[26]!==L?(j=M&&(0,s.jsx)("div",{className:"lg:col-span-3",children:(0,s.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,s.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,s.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,s.jsx)(i.A,{className:"size-4"})," ",L("toc")]}),(0,s.jsx)(u,{toc:z.toc||[]})]})})}),C[24]=z.toc,C[25]=M,C[26]=L,C[27]=j):j=C[27];let T=q();return C[28]!==z.body||C[29]!==z.content?(v=z.body?(0,s.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:z.body}):z.content&&(0,s.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,s.jsx)(o.G8,{content:z.content})}),C[28]=z.body,C[29]=z.content,C[30]=v):v=C[30],C[31]!==v?(N=(0,s.jsx)("article",{className:"p-0",children:v}),C[31]=v,C[32]=N):N=C[32],C[33]!==T||C[34]!==N?(y=(0,s.jsx)("div",{className:T,children:N}),C[33]=T,C[34]=N,C[35]=y):y=C[35],C[36]!==z.author_image||C[37]!==z.author_name||C[38]!==z.author_role||C[39]!==I?(w=I&&(0,s.jsx)("div",{className:"lg:col-span-3",children:(0,s.jsx)("div",{className:"sticky top-24",children:(0,s.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,s.jsxs)("div",{className:"text-center",children:[z.author_image&&(0,s.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,s.jsx)("img",{src:z.author_image,alt:z.author_name,className:"h-full w-full object-cover"})}),z.author_name&&(0,s.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:z.author_name}),z.author_role&&(0,s.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:z.author_role})]})})})}),C[36]=z.author_image,C[37]=z.author_name,C[38]=z.author_role,C[39]=I,C[40]=w):w=C[40],C[41]!==j||C[42]!==y||C[43]!==w?(_=(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[j,y,w]}),C[41]=j,C[42]=y,C[43]=w,C[44]=_):_=C[44],C[45]!==b||C[46]!==_||C[47]!==h?(k=(0,s.jsx)("div",{className:"py-24 md:py-32",children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[h,b,_]})}),C[45]=b,C[46]=_,C[47]=h,C[48]=k):k=C[48],C[49]!==z.id||C[50]!==k?(S=(0,s.jsx)("section",{id:R,children:k}
1),C[49]=z.id,C[50]=k,C[51]=S):S=C[51],S}r(13417)},39078:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LpHeroPhoto:()=>d});var s=r(62219),a=r(78253),l=r(44679),i=r(95044),n=r(7138),o=r(24803);function d(e){let t,r,d,c,m,x,u,h,p,g,f,b,j,v,N,y,w,_,k,S,C=(0,a.c)(52),{section:z}=e,L=(0,l.rd)(),A=(0,l.a8)(),{user:$}=(0,n.U)();C[0]!==A||C[1]!==L||C[2]!==$?(t=()=>{(0,o.M)({...(0,i.LL)(A)}),$?L.push("/dashboard/create?mode=photo"):L.push(`/sign-in?callbackUrl=${encodeURIComponent("/dashboard/create?mode=photo")}`)},C[0]=A,C[1]=L,C[2]=$,C[3]=t):t=C[3];let P=t;C[4]!==z.image?(r=z.image??{},C[4]=z.image,C[5]=r):r=C[5];let M=r;C[6]!==z.tool?(d=z.tool??{},C[6]=z.tool,C[7]=d):d=C[7];let I=d;C[8]!==z.title?(c=(0,s.jsx)("h1",{className:"mb-4 text-4xl font-extrabold leading-tight text-foreground md:text-5xl",children:z.title}),C[8]=z.title,C[9]=c):c=C[9],C[10]!==z.description?(m=(0,s.jsx)("p",{className:"mx-auto max-w-3xl text-lg font-light text-muted-foreground md:text-xl",children:z.description}),C[10]=z.description,C[11]=m):m=C[11],C[12]!==c||C[13]!==m?(x=(0,s.jsxs)("div",{className:"mb-10 text-center",children:[c,m]}),C[12]=c,C[13]=m,C[14]=x):x=C[14];let q="right"===z.image_position?"flex flex-col items-center gap-8 md:items-center md:flex-row-reverse":"flex flex-col items-center gap-8 md:items-center md:flex-row";return C[15]!==M.alt||C[16]!==M.src?(u=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsx)("div",{className:"aspect-[3/2] w-full overflow-hidden rounded-3xl border border-border bg-card shadow-lg",children:(0,s.jsx)("img",{src:M.src,alt:M.alt,width:"2016",height:"1344",className:"h-full w-full object-contain",loading:"eager",fetchPriority:"high"})})}),C[15]=M.alt,C[16]=M.src,C[17]=u):u=C[17],C[18]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",className:"h-5 w-5",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})})}),C[18]=h):h=C[18],C[19]!==I.title?(p=(0,s.jsx)("h2",{className:"text-lg font-bold leading-tight text-foreground",children:I.title}),C[19]=I.title,C[20]=p):p=C[20],C[21]!==I.description?(g=(0,s.jsx)("p",{className:"text-xs font-light text-muted-foreground",children:I.description}),C[21]=I.description,C[22]=g):g=C[22],C[23]!==p||C[24]!==g?(f=(0,s.jsxs)("div",{className:"mb-5 flex items-center gap-2",children:[h,(0,s.jsxs)("div",{children:[p,g]})]}),C[23]=p,C[24]=g,C[25]=f):f=C[25],C[26]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)("span",{className:"mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-card shadow-sm transition-transform group-hover:-translate-y-0.5 text-primary",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",className:"h-6 w-6",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})})}),C[26]=b):b=C[26],C[27]!==I.dropzone_title?(j=(0,s.jsx)("span",{className:"text-sm font-semibold text-foreground",children:I.dropzone_title}),C[27]=I.dropzone_title,C[28]=j):j=C[28],C[29]!==I.dropzone_note?(v=(0,s.jsx)("span",{className:"mt-1 text-xs text-muted-foreground",children:I.dropzone_note}),C[29]=I.dropzone_note,C[30]=v):v=C[30],C[31]!==P||C[32]!==j||C[33]!==v?(N=(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsxs)("button",{type:"button",onClick:P,className:"group flex w-full cursor-pointer flex-col items-center justify-center rounded-2xl border-2 border-dashed border-border bg-muted/60 py-12 text-center transition-colors hover:border-primary/60",children:[b,j,v]})}),C[31]=P,C[32]=j,C[33]=v,C[34]=N):N=C[34],C[35]!==P||C[36]!==I.button_text?(y=(0,s.jsx)("button",{type:"button",onClick:P,className:"w-full rounded-2xl px-6 py-4 text-center font-semibold text-white shadow-lg transition duration-200 ease-in-out hover:shadow-xl hover:brightness-110 focus:ring-4 active:scale-[0.99] bg-primary focus:ring-primary/30",children:I.button_text}),C[35]=P,C[36]=I.button_text,C[37]=y):y=C[37],C[38]!==I.footnote?(w=(0,s.jsx)("p",{className:"mt-3 text-center text-xs font-light text-muted-foreground",children:I.footnote}),C[38]=I.footnote,C[39]=w):w=C[39],C[40]!==f||C[41]!==N||C[42]!==y||C[43]!==w?(_=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsxs)("div",{className:"rounded-3xl border border-border bg-card p-6 shadow-xl ring-1 ring-gray-900/5 sm:p-8",children:[f,N,y,w]})}),C[40]=f,C[41]=N,C[42]=y,C[43]=w,C[44]=_):_=C[44],C[45]!==_||C[46]!==q||C[47]!==u?(k=(0,s.jsxs)("div",{className:q,children:[u,_]}),C[45]=_,C[46]=q,C[47]=u,C[48]=k):k=C[48],C[49]!==k||C[50]!==x?(S=(0,s.jsx)("section",{id:"top",className:"relative overflow-hidden bg-gradient-to-b from-primary/5 to-white",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-6xl px-4 py-14 md:py-20",children:[x,k]})}),C[49]=k,C[50]=x,C[51]=S):S=C[51],S}},39524:(e,t,r)=>{"use strict";r.d(t,{i:()=>d});var s=r(62219),a=r(78253),l=r(30363),i=r(81169),n=r(28117),o=r(72260);function d(e){let t,r,d,c,m,x,u,h,p,g,f,b,j,v=(0,a.c)(39),{children:N,className:y,delay:w,direction:_,stagger:k}
1=e,S=void 0===y?"":y,C=void 0===w?0:w,z=void 0===_?"up":_,L=(0,l.useRef)(null);v[0]===Symbol.for("react.memo_cache_sentinel")?(t={once:!0,margin:"-50px"},v[0]=t):t=v[0];let A=(0,i.W)(L,t);if((0,n.I)()){let e;return v[1]!==N||v[2]!==S?(e=(0,s.jsx)("div",{ref:L,className:S,children:N}),v[1]=N,v[2]=S,v[3]=e):e=v[3],e}v[4]!==z?(r=()=>{switch(z){case"up":default:return{y:30,x:0};case"down":return{y:-30,x:0};case"left":return{x:30,y:0};case"right":return{x:-30,y:0}}},v[4]=z,v[5]=r):r=v[5];let $=r;v[6]===Symbol.for("react.memo_cache_sentinel")?(d={opacity:0},v[6]=d):d=v[6],v[7]!==C?(c={hidden:d,visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:C}}},v[7]=C,v[8]=c):c=v[8];let P=c;v[9]!==$?(m={opacity:0,...$(),filter:"blur(4px)"},v[9]=$,v[10]=m):m=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(x=[.22,1,.36,1],v[11]=x):x=v[11],v[12]===Symbol.for("react.memo_cache_sentinel")?(u={opacity:1,x:0,y:0,filter:"blur(0px)",transition:{duration:.6,ease:x}},v[12]=u):u=v[12],v[13]!==m?(h={hidden:m,visible:u},v[13]=m,v[14]=h):h=v[14];let M=h;if(void 0!==k&&k){let e,t,r=A?"visible":"hidden";if(v[15]!==N||v[16]!==M){let t;v[18]!==M?(t=e=>(0,s.jsx)(o.P.div,{variants:M,children:e}),v[18]=M,v[19]=t):t=v[19],e=l.Children.map(N,t),v[15]=N,v[16]=M,v[17]=e}else e=v[17];return v[20]!==S||v[21]!==P||v[22]!==r||v[23]!==e?(t=(0,s.jsx)(o.P.div,{ref:L,variants:P,initial:"hidden",animate:r,className:S,children:e}),v[20]=S,v[21]=P,v[22]=r,v[23]=e,v[24]=t):t=v[24],t}return v[25]!==$?(p={opacity:0,...$(),filter:"blur(4px)"},v[25]=$,v[26]=p):p=v[26],v[27]!==$||v[28]!==A?(g=A?{opacity:1,x:0,y:0,filter:"blur(0px)"}:{opacity:0,...$(),filter:"blur(4px)"},v[27]=$,v[28]=A,v[29]=g):g=v[29],v[30]===Symbol.for("react.memo_cache_sentinel")?(f=[.22,1,.36,1],v[30]=f):f=v[30],v[31]!==C?(b={duration:.6,delay:C,ease:f},v[31]=C,v[32]=b):b=v[32],v[33]!==N||v[34]!==S||v[35]!==p||v[36]!==g||v[37]!==b?(j=(0,s.jsx)(o.P.div,{ref:L,initial:p,animate:g,transition:b,className:S,children:N}),v[33]=N,v[34]=S,v[35]=p,v[36]=g,v[37]=b,v[38]=j):j=v[38],j}},41086:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesMedia:()=>o});var s=r(62219),a=r(78253),l=r(72260),i=r(72194),n=r(10993);function o(e){let t,r,o,c,m,x,u,h,p,g,f,b,j,v,N,y,w,_,k,S,C,z,L,A,$,P=(0,a.c)(44),{section:M}=e,I="right"===(M.image_position||"left"),q=M.id||M.name;P[0]!==M.className?(t=(0,n.cn)("overflow-x-clip py-16 md:py-24",M.className),P[0]=M.className,P[1]=t):t=P[1];let R=I&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1";P[2]!==R?(r=(0,n.cn)("grid items-center gap-6 sm:grid-cols-2 md:gap-12 lg:gap-24",R),P[2]=R,P[3]=r):r=P[3],P[4]===Symbol.for("react.memo_cache_sentinel")?(o={opacity:0,y:30},c={opacity:1,y:0},m={once:!0,margin:"-100px"},P[4]=o,P[5]=c,P[6]=m):(o=P[4],c=P[5],m=P[6]),P[7]===Symbol.for("react.memo_cache_sentinel")?(x=[.22,1,.36,1],P[7]=x):x=P[7],P[8]===Symbol.for("react.memo_cache_sentinel")?(u={duration:.6,ease:x},P[8]=u):u=P[8],P[9]===Symbol.for("react.memo_cache_sentinel")?(h={opacity:0,scale:.95},p={opacity:1,scale:1},g={once:!0},P[9]=h,P[10]=p,P[11]=g):(h=P[9],p=P[10],g=P[11]),P[12]===Symbol.for("react.memo_cache_sentinel")?(f=[.22,1,.36,1],P[12]=f):f=P[12],P[13]===Symbol.for("react.memo_cache_sentinel")?(b={duration:.5,delay:.2,ease:f},P[13]=b):b=P[13];let T=M.image?.src??"",F=M.image?.alt??"";P[14]!==T||P[15]!==F?(j=(0,s.jsx)(l.P.div,{initial:h,whileInView:p,viewport:g,transition:b,children:(0,s.jsx)(i.oD,{src:T,className:"rounded-xl",alt:F})}),P[14]=T,P[15]=F,P[16]=j):j=P[16];let E=I?-20:20;return P[17]!==E?(v={opacity:0,x:E},P[17]=E,P[18]=v):v=P[18],P[19]===Symbol.for("react.memo_cache_sentinel")?(N={opacity:1,x:0},y={once:!0},P[19]=N,P[20]=y):(N=P[19],y=P[20]),P[21]===Symbol.for("react.memo_cache_sentinel")?(w=[.22,1,.36,1],P[21]=w):w=P[21],P[22]===Symbol.for("react.memo_cache_sentinel")?(_={duration:.5,delay:.3,ease:w},P[22]=_):_=P[22],P[23]!==M.title?(k=(0,s.jsx)("h2",{className:"text-xl font-medium md:text-lg lg:text-lg",children:M.title}),P[23]=M.title,P[24]=k):k=P[24],P[25]!==M.description?(S=(0,s.jsx)("p",{className:"text-muted-foreground text-md",children:M.description}),P[25]=M.description,P[26]=S):S=P[26],P[27]!==M.items?(C=M.items?.map(d),P[27]=M.items,P[28]=C):C=P[28],P[29]!==C?(z=(0,s.jsx)("div",{className:"mt-8 flex flex-wrap gap-4",children:C}),P[29]=C,P[30]=z):z=P[30],P[31]!==v||P[32]!==k||P[33]!==S||P[34]!==z?(L=(0,s.jsxs)(l.P.div,{className:"relative space-y-4",initial:v,whileInView:N,viewport:y,transition:_,children:[k,S,z]}),P[31]=v,P[32]=k,P[33]=S,P[34]=z,P[35]=L):L=P[35],P[36]!==j||P[37]!==L||P[38]!==r?(A=(0,s.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:(0,s.jsxs)(l.P.div,{className:r,initial:o,whileInView:c,viewport:m,transition:u,children:[j,L]})}),P[36]=j,P[37]=L,P[38]=r,P[39]=A):A=P[39],P[40]!==q||P[41]!==t||P[42]!==A?($=(0,s.jsx)("section",{id:q,className:t,children:A}),P[40]=q,P[41]=t,P[42]=A,P[43]=$):$=P[43],$}function d(e){return(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"mb-2 flex items-center gap-2 text-sm",children:[(0,s.jsx)(i.LK,{name:e.icon,size:16}),e.title]}),(0,s.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]},e.title)}},41823:(e,t,r)=>{"use strict";r.d(t,{Highlighter:()=>o});var s=r(62219),a=r(78253),l=r(30363),i=r(81169),n=r(91732);function o(e){let t,r,o,d,c=(0,a.c)(13),{children:m,action:x,color:u,strokeWidth:h,animationDuration:p,iterations:g,padding:f,multiline:b,isView:j}
1=e,v=void 0===x?"highlight":x,N=void 0===u?"#ffd1dc":u,y=void 0===h?1.5:h,w=void 0===p?600:p,_=void 0===g?2:g,k=void 0===f?2:f,S=void 0===b||b,C=(0,l.useRef)(null),z=(0,l.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(t={once:!0,margin:"-10%"},c[0]=t):t=c[0];let L=(0,i.W)(C,t),A=!(void 0!==j&&j)||L;return c[1]!==v||c[2]!==w||c[3]!==N||c[4]!==_||c[5]!==S||c[6]!==k||c[7]!==A||c[8]!==y?(r=()=>{if(!A)return;let e=C.current;if(!e)return;let t=(0,n.f)(e,{type:v,color:N,strokeWidth:y,animationDuration:w,iterations:_,padding:k,multiline:S});z.current=t,z.current.show();let r=new ResizeObserver(()=>{t.hide(),t.show()});return r.observe(e),r.observe(document.body),()=>{e&&((0,n.f)(e,{type:v}).remove(),r.disconnect())}},o=[A,v,N,y,w,_,k,S],c[1]=v,c[2]=w,c[3]=N,c[4]=_,c[5]=S,c[6]=k,c[7]=A,c[8]=y,c[9]=r,c[10]=o):(r=c[9],o=c[10]),(0,l.useEffect)(r,o),c[11]!==m?(d=(0,s.jsx)("span",{ref:C,className:"relative inline-block bg-transparent",children:m}),c[11]=m,c[12]=d):d=c[12],d}},43047:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShowcasesFlow:()=>g});var s=r(62219),a=r(78253),l=r(30363),i=r(72260),n=r(71685),o=r(87954),d=r(88049),c=r(62682),m=r(44679),x=r(72194),u=r(59030),h=r(23490),p=r(10993);function g(e){let t,r,g,v,N,y,w,_,k,S,C,z,L,A,$,P,M,I,q,R,T,F,E=(0,a.c)(57),{section:U,className:D}=e;E[0]!==U?(t=U.groups||[],E[0]=U,E[1]=t):t=E[1];let H=t,[K,V]=(0,l.useState)(H.length>0?H[0].name:""),[O,W]=(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],r=e;break e}if(!K||!H.length||"all"===K){r=U.items;break e}if(E[3]!==U.items||E[4]!==K){let t;E[6]!==K?(t=e=>e.group===K,E[6]=K,E[7]=t):t=E[7],e=U.items.filter(t),E[3]=U.items,E[4]=K,E[5]=e}else e=E[5];r=e}let B=r;E[8]!==B.length?(g=()=>{W(e=>null!==e?0===e?(B.length??1)-1:e-1:null)},E[8]=B.length,E[9]=g):g=E[9];let Z=g;E[10]!==B.length?(v=()=>{W(e=>null!==e?e===(B.length??1)-1?0:e+1:null)},E[10]=B.length,E[11]=v):v=E[11];let J=v;E[12]!==J||E[13]!==Z||E[14]!==O?(N=()=>{let e=e=>{null!==O&&("Escape"===e.key&&W(null),"ArrowLeft"===e.key&&Z(),"ArrowRight"===e.key&&J())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},y=[O,Z,J],E[12]=J,E[13]=Z,E[14]=O,E[15]=N,E[16]=y):(N=E[15],y=E[16]),(0,l.useEffect)(N,y);let G=U.id||U.name;return E[17]!==D||E[18]!==U.className?(w=(0,p.cn)("py-24 md:py-36",U.className,D),E[17]=D,E[18]=U.className,E[19]=w):w=E[19],E[20]===Symbol.for("react.memo_cache_sentinel")?(S={opacity:0,y:20},_={opacity:1,y:0},k={once:!0},E[20]=_,E[21]=k,E[22]=S):(_=E[20],k=E[21],S=E[22]),E[23]===Symbol.for("react.memo_cache_sentinel")?(C=[.22,1,.36,1],E[23]=C):C=E[23],E[24]===Symbol.for("react.memo_cache_sentinel")?(z={duration:.6,ease:C},E[24]=z):z=E[24],E[25]!==U.sr_only_title?(L=U.sr_only_title&&(0,s.jsx)("h1",{className:"sr-only",children:U.sr_only_title}),E[25]=U.sr_only_title,E[26]=L):L=E[26],E[27]!==U.title?(A=(0,s.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]=A):A=E[28],E[29]!==U.description?($=(0,s.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]=$):$=E[30],E[31]!==U.buttons?(P=U.buttons&&U.buttons.length>0&&(0,s.jsx)("div",{className:"container mx-auto mt-8 mb-12 flex flex-wrap justify-center gap-4",children:U.buttons.map(j)}),E[31]=U.buttons,E[32]=P):P=E[32],E[33]!==L||E[34]!==A||E[35]!==$||E[36]!==P?(M=(0,s.jsxs)(i.P.div,{className:"container mb-12 text-center",initial:S,whileInView:_,viewport:k,transition:z,children:[L,A,$,P]}),E[33]=L,E[34]=A,E[35]=$,E[36]=P,E[37]=M):M=E[37],E[38]!==H||E[39]!==K?(I=H.length>0&&(0,s.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:H.map((e,t)=>{let r=K===e.name;return(0,s.jsx)(i.P.button,{onClick:()=>V(e.name),className:(0,p.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",r?"":"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:r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,s.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,s.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,s.jsx)("span",{children:e.title})},e.name)})}),E[38]=H,E[39]=K,E[40]=I):I=E[40],E[41]!==B?(q=B.length>0?(0,s.jsx)("div",{className:"container mx-auto columns-1 gap-4 space-y-4 sm:columns-2 lg:columns-3 xl:columns-4",children:B.map((e,t)=>(0,s.jsxs)(i.P.div,{className:"group relative cursor-zoom-in break-inside-avoid overflow-hidden rounded-xl",onClick:()=>W(t),initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*t,ease:[.22,1,.36,1]},whileHover:{scale:1.02},children:[(0,s.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,s.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,s.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,s.jsx)("div",{className:"mt-3 translate-y-4 transition-transform delay-100 duration-300 group-hover:translate-y-0",onClick:b,children:(0,s.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,s.jsxs)(m.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,s.jsx)(u.L,{name:e.button.icon}),e.button.title]})})})]})]},t))}):(0,s.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]=B,E[42]=q):q=E[42],E[43]!==B||E[44]!==J||E[45]!==Z||E[46]!==O?(R=null!==O&&B&&B.length>0&&(0,s.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:()=>W(null),children:[(0,s.jsx)("button",{className:"absolute top-4 right-4 z-50 text-white/70 transition-colors hover:text-white",onClick:()=>W(null),children:(0,s.jsx)(o.A,{className:"size-8"})}),(0,s.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(),Z()},children:(0,s.jsx)(d.A,{className:"size-8 md:size-12"})}),(0,s.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(),J()},children:(0,s.jsx)(c.A,{className:"size-8 md:size-12"})}),(0,s.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,s.jsxs)("div",{className:"relative max-h-full max-w-full overflow-hidden rounded-lg",children:[(0,s.jsx)(x.oD,{src:B[O].image?.src??"",alt:B[O].image?.alt??"",className:"h-auto max-h-[90vh] w-auto max-w-full object-contain"}),(0,s.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,s.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:B[O].title}),B[O].description&&(0,s.jsx)("p",{className:"line-clamp-3 text-base text-white/90",children:B[O].description}),B[O].button&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(h.$,{asChild:!0,variant:B[O].button.variant||"default",size:B[O].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,s.jsxs)(m.N_,{href:B[O].button.url||"",target:B[O].button.target||"_self",children:[B[O].button.icon&&(0,s.jsx)(u.L,{name:B[O].button.icon,className:"text-white"}),B[O].button.title]})})})]})]})},O)]}),E[43]=B,E[44]=J,E[45]=Z,E[46]=O,E[47]=R):R=E[47],E[48]!==R?(T=(0,s.jsx)(n.N,{children:R}),E[48]=R,E[49]=T):T=E[49],E[50]!==M||E[51]!==I||E[52]!==q||E[53]!==T||E[54]!==G||E[55]!==w?(F=(0,s.jsxs)("section",{id:G,className:w,children:[M,I,q,T]}),E[50]=M,E[51]=I,E[52]=q,E[53]=T,E[54]=G,E[55]=w,E[56]=F):F=E[56],F}function f(e){return e.stopPropagation()}function b(e){return e.stopPropagation()}function j(e){return(0,s.jsx)(h.$,{variant:e.variant||"default",size:e.size||"sm",asChild:!0,children:(0,s.jsxs)(m.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,s.jsx)(u.L,{name:e.icon}),e.title]})},e.title)}},44572:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ToolsMegaMenu:()=>x,ToolsMenuMobileGroups:()=>u});var s=r(62219),a=r(78253),l=r(87992),i=r(74874),n=r(44679),o=r(72194),d=r(76036);function c(e){let t,r=(0,a.c)(2),{children:l}=e;return r[0]!==l?(t=(0,s.jsx)("p",{className:"text-muted-foreground/70 mb-1 px-2 text-[10px] font-bold tracking-widest uppercase",children:l}),r[0]=l,r[1]=t):t=r[1],t}function m(e){let t,r,l,i=(0,a.c)(9),{item:d,label:c,onNavigate:m}=e;return i[0]!==d.icon?(t=(0,s.jsx)(o.LK,{name:d.icon,className:"size-4 shrink-0"}),i[0]=d.icon,i[1]=t):t=i[1],i[2]!==c?(r=(0,s.jsx)("span",{children:c}),i[2]=c,i[3]=r):r=i[3],i[4]!==d.path||i[5]!==m||i[6]!==t||i[7]!==r?(l=(0,s.jsxs)(n.N_,{href:d.path,onClick:m,prefetch:!1,className:"text-muted-foreground hover:bg-foreground
1/5 hover:text-foreground flex items-center gap-2.5 rounded-md px-2 py-1.5 text-sm transition-colors",children:[t,r]}),i[4]=d.path,i[5]=m,i[6]=t,i[7]=r,i[8]=l):l=i[8],l}function x(){let e,t,r,n=(0,a.c)(7),o=(0,l.c3)("tool.nav");n[0]!==o?(e=e=>e.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(d.Ws,{asChild:!0,children:(0,s.jsx)(m,{item:e,label:o(`items.${e.navKey}`)})})},e.path)),n[0]=o,n[1]=e):e=n[1];let x=e;return n[2]!==x||n[3]!==o?(t=i.y$.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)(c,{children:o(e.labelKey)}),(0,s.jsx)("ul",{className:e.items.length>9?"grid grid-flow-col grid-cols-2 grid-rows-9 gap-x-8 gap-y-0.5":"space-y-0.5",children:x(e.items)})]},e.labelKey)),n[2]=x,n[3]=o,n[4]=t):t=n[4],n[5]!==t?(r=(0,s.jsx)("div",{className:"flex w-max max-w-[calc(100vw-3rem)] flex-wrap gap-x-8 gap-y-6",children:t}),n[5]=t,n[6]=r):r=n[6],r}function u(e){let t,r,d=(0,a.c)(5),{closeMenu:c}=e,m=(0,l.c3)("tool.nav");return d[0]!==c||d[1]!==m?(t=i.y$.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-muted-foreground/70 mb-1 px-4 text-[10px] font-bold tracking-widest uppercase",children:m(e.labelKey)}),(0,s.jsx)("ul",{children:e.items.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)(n.N_,{href:e.path,onClick:c,prefetch:!1,className:"grid grid-cols-[auto_1fr] items-center gap-2.5 px-4 py-2",children:[(0,s.jsx)("div",{"aria-hidden":!0,className:"flex items-center justify-center *:size-4",children:(0,s.jsx)(o.LK,{name:e.icon})}),(0,s.jsx)("div",{className:"text-base",children:m(`items.${e.navKey}`)})]})},e.path))})]},e.labelKey)),d[0]=c,d[1]=m,d[2]=t):t=d[2],d[3]!==t?(r=(0,s.jsx)("div",{className:"space-y-4",children:t}),d[3]=t,d[4]=r):r=d[4],r}},44667:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CaFaq:()=>c});var s=r(62219),a=r(78253),l=r(30363);let i={home_faq_title1:"How can I create with your coloring page tools?",home_faq_answer1:"You can create coloring pages from text prompts, photos, sketches, or personalized designs with letters, words, names, and numbers.",home_faq_title2:"Are there any limits on how many coloring pages I can create?",home_faq_answer2:"Our plans offer different limits, with higher tiers providing increased access for creators and businesses needing more flexibility.",home_faq_title3:"How long does it usually take for the AI to generate a page?",home_faq_answer3:"The time it takes for the AI to generate a coloring page can vary depending on several factors such as the complexity of your prompt and the current server load. On average, it usually takes between 10 seconds to 5 minutes.",home_faq_title4:"Can I turn my sketches into detailed coloring pages?",home_faq_answer4:"Yes! Start with a simple sketch, and our AI will fill in the details to create a polished coloring page."};function n(e){let t=[];for(let r=1;;r++){let s=e[`home_faq_title${r}`];if(!s)break;t.push({question:s,answer:e[`home_faq_answer${r}`]??""})}return t}function o(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("svg",{className:"relative top-1",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M5.14229 5.625C5.48549 4.89675 6.41152 4.375 7.50003 4.375C8.88075 4.375 10 5.21447 10 6.25C10 7.12465 9.20152 7.85942 8.12142 8.06662C7.78242 8.13166 7.50003 8.40482 7.50003 8.75M7.5 10.625H7.50625M13.125 7.5C13.125 10.6066 10.6066 13.125 7.5 13.125C4.3934 13.125 1.875 10.6066 1.875 7.5C1.875 4.3934 4.3934 1.875 7.5 1.875C10.6066 1.875 13.125 4.3934 13.125 7.5Z",stroke:"#4F46E5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t[0]=e):e=t[0],e}function d(e){let t,r=(0,a.c)(2),{open:l}=e;return r[0]!==l?(t=(0,s.jsx)("svg",{className:"relative top-1",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l?(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 7.5C2.25 7.08579 2.58579 6.75 3 6.75H12C12.4142 6.75 12.75 7.08579 12.75 7.5C12.75 7.91421 12.4142 8.25 12 8.25H3C2.58579 8.25 2.25 7.91421 2.25 7.5Z",fill:"black"}):(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 2.25C7.91421 2.25 8.25 2.58579 8.25 3V6.75H12C12.4142 6.75 12.75 7.08579 12.75 7.5C12.75 7.91421 12.4142 8.25 12 8.25H8.25V12C8.25 12.4142 7.91421 12.75 7.5 12.75C7.08579 12.75 6.75 12.4142 6.75 12V8.25H3C2.58579 8.25 2.25 7.91421 2.25 7.5C2.25 7.08579 2.58579 6.75 3 6.75L6.75 6.75V3C6.75 2.58579 7.08579 2.25 7.5 2.25Z",fill:"black"})}),r[0]=l,r[1]=t):t=r[1],t}function c(e){let t,r,c,m,x,u,h,p,g,f,b,j,v,N,y=(0,a.c)(40),{section:w}=e,[_,k]=(0,l.useState)(null),S=w["Frequently Asked Questions"]??w.title??"Frequently Asked Questions",C=w.home_faq_desc??"Quick answers to help you start your coloring journey!";if(y[0]!==w||y[1]!==C||y[2]!==_||y[3]!==S){let e,a,l,g=w.home_faq_title1?n(w):n(i);p="overflow-hidden bg-white py-32",h="container mx-auto px-4",x="-m-8 flex flex-wrap",y[12]!==S?(e=(0,s.jsx)("h2",{className:"mb-7 text-4xl font-black leading-tight md:text-5xl",children:S}),y[12]=S,y[13]=e):e=y[13],y[14]!==C?(a=(0,s.jsx)("p",{className:"mb-11 font-normal leading-relaxed text-gray-600",children:C}),y[14]=C,y[15]=a):a=y[15],y[16]!==a||y[17]!==e?(u=(0,s.jsx)("div",{className:"w-full p-8 md:w-1/2",children:(0,s.jsxs)("div",{className:"md:max-w-md",children:[e,a]})}),y[16]=a,y[17]=e,y[18]=u):u=y[18],m="w-full p-8 md:w-1/2",c="ml-auto md:max-w-2xl",t="flex flex-wrap",y[19]!==_?(l=(e,t)=>{let r=_===t;return(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"block cursor-pointer border-b border-gray-300",onClick:()=>k(r?null:t),children:(0,s.jsxs)("div",{className:"-m-1.5 flex flex-wrap justify-between py-7",children:[(0,s.jsx)("div",{className:"flex-1 p-1.5",children:(0,s.jsxs)("div",{className:"-m-1.5 flex flex-wrap",children:[(0,s.jsx)("div",{className:"w-auto p-1.5",children:(0,s.jsx)(o,{})}),(0,s.jsxs)("div",{className:"flex-1 p-1.5",children:[(0,s.jsx)("h3",{className:"font-semibold leading-normal",children:e.question}),(0,s.jsx)("div",{className:`${r?"h-auto":"h-0"} overflow-hidden duration-500`,children:(0,s.jsx)("p",{className:"mb-5 mt-4 font-normal leading-relaxed text-gray-600",children:e.answer})})]})]})}),(0,s.jsx)("div",{className:"w-auto p-1.5",children:(0,s.jsx)(d,{open:r})})]})})},t)},y[19]=_,y[20]=l):l=y[20],r=g.map(l),y[0]=w,y[1]=C,y[2]=_,y[3]=S,y[4]=t,y[5]=r,y[6]=c,y[7]=m,y[8]=x,y[9]=u,y[10]=h,y[11]=p}else t=y[4],r=y[5],c=y[6],m=y[7],x=y[8],u=y[9],h=y[10],p=y[11];return y[21]!==t||y[22]!==r?(g=(0,s.jsx)("div",{className:t,children:r}),y[21]=t,y[22]=r,y[23]=g):g=y[23],y[24]!==c||y[25]!==g?(f=(0,s.jsx)("div",{className:c,children:g}),y[24]=c,y[25]=g,y[26]=f):f=y[26],y[27]!==f||y[28]!==m?(b=(0,s.jsx)("div",{className:m,children:f}),y[27]=f,y[28]=m,y[29]=b):b=y[29],y[30]!==b||y[31]!==x||y[32]!==u?(j=(0,s.jsxs)("div",{className:x,children:[u,b]}),y[30]=b,y[31]=x,y[32]=u,y[33]=j):j=y[33],y[34]!==j||y[35]!==h?(v=(0,s.jsx)("div",{className:h,children:j}),y[34]=j,y[35]=h,y[36]=v):v=y[36],y[37]!==v||y[38]!==p?(N=(0,s.jsx)("section",{className:p,children:v}
1),y[37]=v,y[38]=p,y[39]=N):N=y[39],N}},45535:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l}),r(62219),r(78253);var s=r(30363);let a=(0,s.createContext)(null);function l(){let e=(0,s.useContext)(a);if(!e)throw Error("useToolNav must be used within a ToolNavProvider");return e}},45678:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FaqColumns:()=>d});var s=r(62219),a=r(78253),l=r(30363),i=r(40338),n=r(23490),o=r(10993);function d(e){let t,r,d,c,m,x,u,h,p,g,f,b,j=(0,a.c)(30),{section:v,className:N}=e;j[0]!==v.items?(t=v.items??[],j[0]=v.items,j[1]=t):t=j[1];let y=t,w=v.contact;j[2]===Symbol.for("react.memo_cache_sentinel")?(r=new Set([0]),j[2]=r):r=j[2];let[_,k]=(0,l.useState)(r);if(!y.length)return null;j[3]===Symbol.for("react.memo_cache_sentinel")?(d=e=>k(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}),j[3]=d):d=j[3];let S=d,C=v.id;if(j[4]!==N?(c=(0,o.cn)("py-20 md:py-28",N),j[4]=N,j[5]=c):c=j[5],j[6]!==v.title?(m=v.title&&(0,s.jsx)("h2",{className:"text-foreground max-w-[16ch] text-3xl font-normal tracking-tight text-balance md:text-4xl",children:v.title}),j[6]=v.title,j[7]=m):m=j[7],j[8]!==v.description?(x=v.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-4 max-w-[40ch] leading-relaxed",children:v.description}),j[8]=v.description,j[9]=x):x=j[9],j[10]!==w?(u=w?.title&&(0,s.jsx)(n.$,{asChild:!0,variant:"outline",className:"mt-8",children:(0,s.jsx)("a",{href:w.url??"mailto:[email protected]",children:w.title})}),j[10]=w,j[11]=u):u=j[11],j[12]!==m||j[13]!==x||j[14]!==u?(h=(0,s.jsxs)("div",{children:[m,x,u]}),j[12]=m,j[13]=x,j[14]=u,j[15]=h):h=j[15],j[16]!==y||j[17]!==_){let e;j[19]!==_?(e=(e,t)=>{let r=_.has(t);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("button",{type:"button","aria-expanded":r,onClick:()=>S(t),className:"flex w-full cursor-pointer items-center justify-between gap-6 py-5 text-start",children:[(0,s.jsx)("span",{className:"text-foreground text-base font-medium",children:e.question}),(0,s.jsx)(i.A,{size:18,className:(0,o.cn)("text-muted-foreground shrink-0 transition-transform duration-300",r&&"text-foreground rotate-45")})]}),(0,s.jsx)("div",{className:(0,o.cn)("grid transition-[grid-template-rows] duration-300 ease-out",r?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsx)("p",{className:"text-muted-foreground max-w-[70ch] pb-5 leading-relaxed",children:e.answer})})})]},t)},j[19]=_,j[20]=e):e=j[20],p=y.map(e),j[16]=y,j[17]=_,j[18]=p}else p=j[18];return j[21]!==p?(g=(0,s.jsx)("div",{className:"divide-border border-border divide-y border-y",children:p}),j[21]=p,j[22]=g):g=j[22],j[23]!==g||j[24]!==h?(f=(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-7xl grid-cols-1 gap-x-20 gap-y-12 px-6 md:px-8 lg:grid-cols-[2fr_3fr]",children:[h,g]}),j[23]=g,j[24]=h,j[25]=f):f=j[25],j[26]!==v.id||j[27]!==f||j[28]!==c?(b=(0,s.jsx)("section",{id:C,className:c,children:f}),j[26]=v.id,j[27]=f,j[28]=c,j[29]=b):b=j[29],b}},47189:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ComparisonDimensionTabs:()=>m});var s=r(62219),a=r(78253),l=r(30363),i=r(15530),n=r(14938),o=r(72194),d=r(10993);function c(e){let t="number"==typeof e?e:Number(e);return Number.isFinite(t)?Math.max(0,Math.min(100,t)):0}function m(e){let t,r,m,u,h,p,g,f,b,j,v,N,y,w,_,k,S,C,z,L,A,$,P,M,I,q,R,T,F,E,U=(0,a.c)(80),{section:D}=e,H=D.items??[],K=D.them_label,V=D.us_label,O=D.verdict_label,[W,B]=(0,l.useState)(0);U[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],U[0]=t):t=U[0];let Z=(0,l.useRef)(t);if(0===H.length)return null;U[1]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{B(e),Z.current[e]?.focus()},U[1]=r):r=U[1];let J=r,G=e=>{let t=H.length-1;"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),J(W===t?0:W+1)):"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),J(0===W?t:W-1)):"Home"===e.key?(e.preventDefault(),J(0)):"End"===e.key&&(e.preventDefault(),J(t))},Y=H[W]??{},Q=Y.them??{},X=Y.us??{},ee=c(Y.themScore),et=c(Y.usScore),er=Y.winner,es=Y.label||Y.title||"",ea=D.id||D.name;U[2]!==D.className?(m=(0,d.cn)("py-16 md:py-24",D.className),U[2]=D.className,U[3]=m):m=U[3],U[4]!==D.label?(u=D.label&&(0,s.jsx)("span",{className:"text-primary text-sm font-semibold tracking-wide uppercase",children:D.label}),U[4]=D.label,U[5]=u):u=U[5],U[6]!==D.title?(h=D.title&&(0,s.jsx)("h2",{className:"text-foreground mt-3 text-3xl font-extrabold tracking-tight text-balance sm:text-4xl",children:D.title}),U[6]=D.title,U[7]=h):h=U[7],U[8]!==D.description?(p=D.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-pretty",children:D.description}),U[8]=D.description,U[9]=p):p=U[9],U[10]!==u||U[11]!==h||U[12]!==p?(g=(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[u,h,p]}),U[10]=u,U[11]=h,U[12]=p,U[13]=g):g=U[13];let el=D.title||"Comparison dimensions",ei=H.map((e,t)=>{let r=t===W,a=e.label||e.title||"";return(0,s.jsxs)("button",{ref:e=>{Z.current[t]=e},type:"button",role:"tab",id:`cdt-tab-${t}`,"aria-selected":r,"aria-controls":`cdt-panel-${t}`,tabIndex:r?0:-1,onClick:()=>B(t),className:(0,d.cn)("relative flex shrink-0 items-center gap-2 whitespace-nowrap rounded-t-lg px-4 py-2.5 text-sm font-medium outline-none transition-colors","focus-visible:ring-ring/50 focus-visible:ring-[3px]",r?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[e.icon&&(0,s.jsx)(o.LK,{name:e.icon,size:16}),a,(0,s.jsx)("span",{className:(0,d.cn)("absolute inset-x-2 -bottom-px h-0.5 rounded-full transition-opacity",r?"bg-primary opacity-100":"opacity-0")})]},t)});U[14]!==G||U[15]!==el||U[16]!==ei?(f=(0,s.jsx)("div",{role:"tablist","aria-label":el,onKeyDown:G,className:"mx-auto mt-12 flex max-w-3xl gap-2 overflow-x-auto pb-1 sm:flex-wrap sm:justify-center sm:overflow-visible [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:ei}),U[14]=G,U[15]=el,U[16]=ei,U[17]=f):f=U[17];let en=`cdt-panel-${W}`,eo=`cdt-tab-${W}`;U[18]!==Y||U[19]!==es?(b=es&&(0,s.jsxs)("h3",{className:"text-foreground flex items-center justify-center gap-2 text-center text-xl font-bold",children:[Y.icon&&(0,s.jsx)(o.LK,{name:Y.icon,size:20}),es]}),U[18]=Y,U[19]=es,U[20]=b):b=U[20],U[21]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsx)("span",{className:"bg-foreground
1/10 text-muted-foreground flex size-6 shrink-0 items-center justify-center rounded-full",children:(0,s.jsx)(i.A,{className:"size-3.5",strokeWidth:2.5})}),U[21]=j):j=U[21],U[22]!==K?(v=K&&(0,s.jsx)("span",{className:"text-muted-foreground text-xs font-semibold tracking-wide uppercase",children:K}),U[22]=K,U[23]=v):v=U[23],U[24]!==v?(N=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[j,v]}),U[24]=v,U[25]=N):N=U[25],U[26]!==Q.claim?(y=Q.claim&&(0,s.jsx)("p",{className:"text-foreground mt-4 text-base font-semibold text-pretty",children:Q.claim}),U[26]=Q.claim,U[27]=y):y=U[27],U[28]!==Q.detail?(w=Q.detail&&(0,s.jsx)("p",{className:"text-muted-foreground mt-2 text-sm/6",children:Q.detail}),U[28]=Q.detail,U[29]=w):w=U[29],U[30]!==N||U[31]!==y||U[32]!==w?(_=(0,s.jsxs)("div",{className:"border-border/70 bg-background/40 rounded-lg border p-6",children:[N,y,w]}),U[30]=N,U[31]=y,U[32]=w,U[33]=_):_=U[33],U[34]===Symbol.for("react.memo_cache_sentinel")?(k=(0,s.jsx)("span",{className:"bg-primary text-primary-foreground flex size-6 shrink-0 items-center justify-center rounded-full",children:(0,s.jsx)(n.A,{className:"size-3.5",strokeWidth:3})}),U[34]=k):k=U[34],U[35]!==V?(S=V&&(0,s.jsx)("span",{className:"text-foreground text-xs font-semibold tracking-wide uppercase",children:V}),U[35]=V,U[36]=S):S=U[36],U[37]!==S?(C=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[k,S]}),U[37]=S,U[38]=C):C=U[38],U[39]!==X.claim?(z=X.claim&&(0,s.jsx)("p",{className:"text-foreground mt-4 text-base font-semibold text-pretty",children:X.claim}),U[39]=X.claim,U[40]=z):z=U[40],U[41]!==X.detail?(L=X.detail&&(0,s.jsx)("p",{className:"text-muted-foreground mt-2 text-sm/6",children:X.detail}),U[41]=X.detail,U[42]=L):L=U[42],U[43]!==C||U[44]!==z||U[45]!==L?(A=(0,s.jsxs)("div",{className:"border-primary/30 from-primary/15 to-secondary/10 rounded-lg border bg-gradient-to-br p-6",children:[C,z,L]}),U[43]=C,U[44]=z,U[45]=L,U[46]=A):A=U[46],U[47]!==_||U[48]!==A?($=(0,s.jsxs)("div",{className:"mt-6 grid gap-5 md:grid-cols-2",children:[_,A]}),U[47]=_,U[48]=A,U[49]=$):$=U[49],U[50]!==O?(P=O&&(0,s.jsx)("p",{className:"text-muted-foreground text-center text-xs font-medium tracking-[0.14em] uppercase",children:O}),U[50]=O,U[51]=P):P=U[51];let ed="them"===er;U[52]!==ed||U[53]!==K||U[54]!==ee?(M=(0,s.jsx)(x,{label:K,score:ee,highlight:ed}),U[52]=ed,U[53]=K,U[54]=ee,U[55]=M):M=U[55];let ec="us"===er;return U[56]!==ec||U[57]!==V||U[58]!==et?(I=(0,s.jsx)(x,{label:V,score:et,highlight:ec,primary:!0}),U[56]=ec,U[57]=V,U[58]=et,U[59]=I):I=U[59],U[60]!==M||U[61]!==I?(q=(0,s.jsxs)("div",{className:"mt-4 space-y-3",children:[M,I]}),U[60]=M,U[61]=I,U[62]=q):q=U[62],U[63]!==P||U[64]!==q?(R=(0,s.jsxs)("div",{className:"border-border/70 mt-6 border-t border-dashed pt-6",children:[P,q]}),U[63]=P,U[64]=q,U[65]=R):R=U[65],U[66]!==en||U[67]!==eo||U[68]!==b||U[69]!==$||U[70]!==R?(T=(0,s.jsxs)("div",{role:"tabpanel",id:en,"aria-labelledby":eo,className:"border-border bg-card mx-auto -mt-px max-w-4xl rounded-xl border p-6 sm:p-8",children:[b,$,R]}),U[66]=en,U[67]=eo,U[68]=b,U[69]=$,U[70]=R,U[71]=T):T=U[71],U[72]!==f||U[73]!==T||U[74]!==g?(F=(0,s.jsxs)("div",{className:"container px-6",children:[g,f,T]}
1),U[72]=f,U[73]=T,U[74]=g,U[75]=F):F=U[75],U[76]!==ea||U[77]!==F||U[78]!==m?(E=(0,s.jsx)("section",{id:ea,className:m,children:F}),U[76]=ea,U[77]=F,U[78]=m,U[79]=E):E=U[79],E}function x(e){let t,r,l,i,n,o,c=(0,a.c)(17),{label:m,score:x,highlight:u,primary:h}=e;c[0]!==u||c[1]!==m?(t=m&&(0,s.jsx)("span",{className:(0,d.cn)("w-32 shrink-0 truncate text-right text-xs font-medium",u?"text-foreground":"text-muted-foreground"),children:m}),c[0]=u,c[1]=m,c[2]=t):t=c[2];let p=h?"bg-primary":"bg-foreground/25",g=u&&!h&&"bg-foreground/40";c[3]!==p||c[4]!==g?(r=(0,d.cn)("h-full rounded-full transition-[width] duration-500 ease-out",p,g),c[3]=p,c[4]=g,c[5]=r):r=c[5];let f=`${x}%`;return c[6]!==f?(l={width:f},c[6]=f,c[7]=l):l=c[7],c[8]!==r||c[9]!==l?(i=(0,s.jsx)("div",{className:"bg-muted h-2.5 flex-1 overflow-hidden rounded-full",children:(0,s.jsx)("div",{className:r,style:l})}),c[8]=r,c[9]=l,c[10]=i):i=c[10],c[11]!==x?(n=(0,s.jsx)("span",{className:"text-muted-foreground w-9 shrink-0 text-right text-xs tabular-nums",children:x}),c[11]=x,c[12]=n):n=c[12],c[13]!==t||c[14]!==i||c[15]!==n?(o=(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[t,i,n]}),c[13]=t,c[14]=i,c[15]=n,c[16]=o):o=c[16],o}},47874:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ToolFooter:()=>d});var s=r(62219),a=r(78253),l=r(87992),i=r(61714),n=r(1421),o=r(54539);function d(){let e,t,r,o,d,m,x,u,h=(0,a.c)(18),p=(0,l.c3)("landing.footer");h[0]!==p?(e=p.raw("brand"),h[0]=p,h[1]=e):e=h[1];let g=e;if(h[2]!==g||h[3]!==p){let e=p.raw("agreement.items")??[];o="border-border bg-background flex h-12 shrink-0 items-center justify-between gap-4 border-t px-6",h[8]!==g?(d=(0,s.jsx)(i.Copyright,{brand:g}),h[8]=g,h[9]=d):d=h[9],t="flex items-center gap-4",r=e.map(c),h[2]=g,h[3]=p,h[4]=t,h[5]=r,h[6]=o,h[7]=d}else t=h[4],r=h[5],o=h[6],d=h[7];return h[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(n.LocaleSelector,{}),h[10]=m):m=h[10],h[11]!==t||h[12]!==r?(x=(0,s.jsxs)("div",{className:t,children:[r,m]}),h[11]=t,h[12]=r,h[13]=x):x=h[13],h[14]!==o||h[15]!==d||h[16]!==x?(u=(0,s.jsxs)("footer",{className:o,children:[d,x]}),h[14]=o,h[15]=d,h[16]=x,h[17]=u):u=h[17],u}function c(e,t){return(0,s.jsx)(o.k,{href:e.url??"#",target:e.target??"_self",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:e.title},t)}},49514:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeroImmersive:()=>x});var s=r(62219),a=r(78253),l=r(30363),i=r(71415),n=r(51300),o=r(90176),d=r(44679),c=r(7138),m=r(10993);function x(e){let t,r,x,h,p,g,f,b,j,v,N,y,w,_,k,S,C,z,L,A,$,P,M,I=(0,a.c)(65),{section:q,className:R}=e,T=(0,d.rd)(),{user:F,setIsShowSignModal:E}=(0,c.U)(),U=q.highlight_text??"",D=q.dynamic_words,H=!!D&&D.length>0,K=q.random_prompts,V=q.input_placeholder_simple??"Describe the song you want to create...",O=q.create_button??"Create Song";I[0]!==q?(t=(q.cover_items??[]).filter(u).slice(0,3),I[0]=q,I[1]=t):t=I[1];let W=t,B=null;if(U){let e;I[2]!==U||I[3]!==q.title?(e=q.title?.split(U,2)??null,I[2]=U,I[3]=q.title,I[4]=e):e=I[4],B=e}let[Z,J]=(0,l.useState)(0),[G,Y]=(0,l.useState)(""),[Q,X]=(0,l.useState)(-1);I[5]!==D||I[6]!==H?(r=()=>{if(!H||D.length<=1)return;let e=setInterval(()=>{J(e=>(e+1)%D.length)},2600);return()=>clearInterval(e)},x=[H,D],I[5]=D,I[6]=H,I[7]=r,I[8]=x):(r=I[7],x=I[8]),(0,l.useEffect)(r,x);let ee=H?D[Z]:U;I[9]!==Q||I[10]!==K?(h=()=>
1{if(!K?.length)return;let e=Math.floor(Math.random()*K.length);K.length>1&&e===Q&&(e=(e+1)%K.length),X(e),Y(K[e])},I[9]=Q,I[10]=K,I[11]=h):h=I[11];let et=h;I[12]!==G||I[13]!==T||I[14]!==q||I[15]!==E||I[16]!==F?(p=()=>{if(!F)return void E(!0);let e=new URLSearchParams;G.trim()&&e.set("prompt",G.trim());let t=e.toString(),r=q.cta_url??"/dashboard/create";T.push(`${r}${t?`?${t}`:""}`)},I[12]=G,I[13]=T,I[14]=q,I[15]=E,I[16]=F,I[17]=p):p=I[17];let er=p,es=q.id;return I[18]!==R?(g=(0,m.cn)("relative overflow-hidden",R),I[18]=R,I[19]=g):g=I[19],I[20]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -top-40 left-[8%] h-[34rem] w-[34rem] rounded-full opacity-60 blur-3xl motion-safe:animate-[heroGlowA_16s_ease-in-out_infinite_alternate]",style:{background:"radial-gradient(circle, oklch(0.65 0.17 152 / 0.3), transparent 65%)"}}),I[20]=f):f=I[20],I[21]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute top-24 right-[-6rem] h-[28rem] w-[28rem] rounded-full opacity-50 blur-3xl motion-safe:animate-[heroGlowB_20s_ease-in-out_infinite_alternate]",style:{background:"radial-gradient(circle, oklch(0.5 0.19 340 / 0.22), transparent 60%)"}}),I[21]=b):b=I[21],I[22]!==ee||I[23]!==q.title||I[24]!==B?(j=B&&B.length>1?(0,s.jsxs)(s.Fragment,{children:[B[0],(0,s.jsx)("span",{className:"inline-block bg-gradient-to-r from-[oklch(0.84_0.19_145)] to-[oklch(0.66_0.19_156)] bg-clip-text text-transparent motion-safe:animate-[wordIn_0.5s_cubic-bezier(0.16,1,0.3,1)]",children:ee},ee),B[1]]}):q.title,I[22]=ee,I[23]=q.title,I[24]=B,I[25]=j):j=I[25],I[26]!==j?(v=(0,s.jsx)("h1",{className:"text-foreground text-5xl leading-[1.04] font-extrabold tracking-tighter text-balance md:text-6xl xl:text-7xl",children:j}),I[26]=j,I[27]=v):v=I[27],I[28]!==q.description?(N=q.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-6 max-w-[46ch] text-lg leading-relaxed",children:q.description}),I[28]=q.description,I[29]=N):N=I[29],I[30]===Symbol.for("react.memo_cache_sentinel")?(y=e=>Y(e.target.value),I[30]=y):y=I[30],I[31]!==er?(w=e=>"Enter"===e.key&&er(),I[31]=er,I[32]=w):w=I[32],I[33]!==V||I[34]!==G||I[35]!==w?(_=(0,s.jsx)("input",{value:G,onChange:y,onKeyDown:w,placeholder:V,className:"text-foreground placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-base outline-none"}),I[33]=V,I[34]=G,I[35]=w,I[36]=_):_=I[36],I[37]!==et||I[38]!==K?.length?(k=!!K?.length&&(0,s.jsx)("button",{type:"button",onClick:et,"aria-label":"Random prompt",className:"text-muted-foreground hover:text-foreground hover:bg-secondary flex h-11 w-11 shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors",children:(0,s.jsx)(i.A,{size:17})}),I[37]=et,I[38]=K?.length,I[39]=k):k=I[39],I[40]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)(n.A,{size:16}),I[40]=S):S=I[40],I[41]!==O||I[42]!==er?(C=(0,s.jsxs)("button",{type:"button",onClick:er,className:"bg-primary text-primary-foreground hover:bg-primary/90 flex h-11 shrink-0 cursor-pointer items-center gap-2 rounded-full px-6 text-sm font-bold transition-[background-color,transform] active:scale-[0.98]",children:[O,S]}),I[41]=O,I[42]=er,I[43]=C):C=I[43],I[44]!==_||I[45]!==k||I[46]!==C?(z=(0,s.jsxs)("div",{className:"border-border/70 bg-card/80 focus-within:border-primary/60 focus-within:shadow-[0_0_0_1px_oklch(0.78_0.2_150_/_0.4),0_8px_40px_-12px_oklch(0.78_0.2_150_/_0.3)] mt-9 flex items-center gap-2 rounded-full border p-2 ps-6 backdrop-blur transition-shadow",children:[_,k,C]}),I[44]=_,I[45]=k,I[46]=C,I[47]=z):z=I[47],I[48]!==v||I[49]!==N||I[50]!==z?(L=(0,s.jsxs)("div",{className:"lg:col-span-7",children:[v,N,z]}),I[48]=v,I[49]=N,I[50]=z,I[51]=L):L=I[51],I[52]!==W[0]||I[53]!==W[1]||I[54]!==W[2]||I[55]!==W.length?(A=W.length>0&&(0,s.jsxs)("div",{className:"relative mx-auto hidden h-[420px] w-full max-w-[400px] lg:col-span-5 lg:block",children:[W[2]?.image?.src&&(0,s.jsx)("img",{src:W[2].image.src,alt:W[2].image.alt??"",loading:"lazy",className:"border-border/40 absolute top-10 left-0 h-56 w-56 rotate-[-8deg] rounded-xl border object-cover opacity-60 shadow-2xl"}),W[1]?.image?.src&&(0,s.jsx)("img",{src:W[1].image.src,alt:W[1].image.alt??"",loading:"lazy",className:"border-border/40 absolute top-2 right-2 h-60 w-60 rotate-[7deg] rounded-xl border object-cover opacity-80 shadow-2xl motion-safe:animate-[coverFloatB_9s_ease-in-out_infinite_alternate]"}),W[0]?.image?.src&&(0,s.jsxs)("div",{className:"border-border/60 bg-card absolute bottom-0 left-1/2 w-72 -translate-x-1/2 overflow-hidden rounded-xl border shadow-[0_24px_80px_-20px_oklch(0.7_0.18_150_/_0.4)] motion-safe:animate-[coverFloatA_7s_ease-in-out_infinite_alternate]",children:[(0,s.jsx)("img",{src:W[0].image.src,alt:W[0].image.alt??"",className:"aspect-square w-full object-cover"}),(0,s.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,s.jsx)("span",{className:"bg-primary text-primary-foreground flex h-10 w-10 shrink-0 items-center justify-center rounded-full",children:(0,s.jsx)(o.A,{size:16,className:"ms-0.5"})}),(0,s.jsxs)("span",{className:"min-w-0",children:[(0,s.jsx)("span",{className:"text-foreground block truncate text-sm font-bold",children:W[0].title}),(0,s.jsx)("span",{className:"text-muted-foreground block truncate text-xs",children:W[0].artist})]})]})]})]}),I[52]=W[0],I[53]=W[1],I[54]=W[2],I[55]=W.length,I[56]=A):A=I[56],I[57]!==L||I[58]!==A?($=(0,s.jsxs)("div",{className:"relative mx-auto grid w-full max-w-7xl grid-cols-1 items-center gap-14 px-6 pt-16 pb-10 md:px-8 md:pt-24 lg:grid-cols-12 lg:gap-8",children:[L,A]}),I[57]=L,I[58]=A,I[59]=$):$=I[59],I[60]===Symbol.for("react.memo_cache_sentinel")?(P=(0,s.jsx)("div",{"aria-hidden":!0,
1className:"via-foreground/10 relative mx-auto h-px w-full max-w-7xl bg-gradient-to-r from-transparent to-transparent"}),I[60]=P):P=I[60],I[61]!==q.id||I[62]!==$||I[63]!==g?(M=(0,s.jsxs)("section",{id:es,className:g,children:[f,b,$,P]}),I[61]=q.id,I[62]=$,I[63]=g,I[64]=M):M=I[64],M}function u(e){return e.image?.src}},51366:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeedbackDialog:()=>v});var s=r(62219),a=r(46776),l=r(30363),i=r(47054),n=r(83391),o=r(87992),d=r(39537),c=r(23490),m=r(20614),x=r(79394),u=r(91848),h=r(23662),p=r(72108),g=r(7138),f=r(57399);let b=["1","2","3","4","5","6"],j=d.Ik({questionStyle:d.Yj().trim().min(1).max(200),fullName:d.Yj().trim().min(1).max(100),description:d.Yj().trim().min(1).max(5e3)});function v({open:e,onOpenChange:t}){let r=(0,o.c3)("feedback"),{user:d}=(0,g.U)(),[v,N]=(0,l.useState)(""),{register:y,handleSubmit:w,reset:_,setValue:k,watch:S,formState:{errors:C,isSubmitting:z}}=(0,i.mN)({resolver:(0,a.u)(j),defaultValues:{questionStyle:"",fullName:"",description:""}}),L=S("questionStyle");(0,l.useEffect)(()=>{if(!e)return;k("fullName",d?.name||"");let t=!0;return(0,f.uy)().then(e=>{t&&N(e?.name||"Free")}),()=>{t=!1}},[e,d?.name,k]);let A=()=>{_(),t(!1)},$=async e=>{try{let t=await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({questionStyle:e.questionStyle,fullName:e.fullName,email:d?.email||"",description:e.description})}),{code:s,message:a}=await t.json();if(0!==s)throw Error(a);n.oR.success(r("success")),A()}catch(e){n.oR.error(`${r("errors.submitFailed")}: ${e.message}`)}};return(0,s.jsx)(m.lG,{open:e,onOpenChange:e=>e?t(e):A(),children:(0,s.jsxs)(m.Cf,{children:[(0,s.jsxs)(m.c7,{children:[(0,s.jsx)(m.L3,{children:r("title")}),(0,s.jsx)(m.rr,{children:r("description")})]}),(0,s.jsxs)("form",{onSubmit:w($),className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(u.J,{htmlFor:"feedback-question-style",children:r("fields.questionStyle")}),(0,s.jsxs)(h.l6,{value:L,onValueChange:e=>k("questionStyle",e,{shouldValidate:!0}),children:[(0,s.jsx)(h.bq,{id:"feedback-question-style",className:"w-full",children:(0,s.jsx)(h.yv,{placeholder:r("fields.questionStylePlaceholder")})}),(0,s.jsx)(h.gC,{children:b.map(e=>(0,s.jsx)(h.eb,{value:r(`options.${e}`),children:r(`options.${e}`)},e))})]}),(0,s.jsx)("input",{type:"hidden",...y("questionStyle")}),C.questionStyle&&(0,s.jsx)("p",{className:"text-destructive text-xs",children:r("errors.required")})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(u.J,{htmlFor:"feedback-full-name",children:r("fields.fullName")}),(0,s.jsx)(x.p,{id:"feedback-full-name",placeholder:r("fields.fullNamePlaceholder"),...y("fullName")}),C.fullName&&(0,s.jsx)("p",{className:"text-destructive text-xs",children:r("errors.required")})]}),(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(u.J,{htmlFor:"feedback-email",children:r("fields.email")}),(0,s.jsx)(x.p,{id:"feedback-email",value:d?.email||"",readOnly:!0,disabled:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(u.J,{htmlFor:"feedback-plan",children:r("fields.plan")}),(0,s.jsx)(x.p,{id:"feedback-plan",value:v,placeholder:r("fields.planPlaceholder"),readOnly:!0,disabled:!0})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(u.J,{htmlFor:"feedback-description",children:r("fields.description")}),(0,s.jsx)(p.T,{id:"feedback-description",rows:5,placeholder:r("fields.descriptionPlaceholder"),...y("description")}),C.description&&(0,s.jsx)("p",{className:"text-destructive text-xs",children:r("errors.required")})]}),(0,s.jsx)("p",{className:"text-muted-foreground text-xs",children:r("tip")}),(0,s.jsxs)(m.Es,{children:[(0,s.jsx)(c.$,{type:"button",variant:"outline",onClick:A,disabled:z,children:r("cancel")}),(0,s.jsx)(c.$,{type:"submit",disabled:z,children:z?r("submitting"):r("submit")})]})]})]})})}},55860:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lp4FlaroHeroUpload:()=>d});var s=r(62219),a=r(78253),l=r(44679),i=r(7138),n=r(95044),o=r(24803);function d(e){let t,r,d,c,m,x,u,h,p,g,f,b,j,v,N,y,w,_,k,S,C,z,L=(0,a.c)(57),{section:A}=e,$=(0,l.rd)(),P=(0,l.a8)(),{user:M}=(0,i.U)();L[0]!==A.image?(t=A.image??{},L[0]=A.image,L[1]=t):t=L[1];let I=t;L[2]!==A.tool?(r=A.tool??{},L[2]=A.tool,L[3]=r):r=L[3];let q=r;L[4]!==P||L[5]!==$||L[6]!==M?(d=()=>{(0,o.M)({...(0,n.LL)(P)}),M?$.push("/dashboard/create?mode=photo"):$.push(`/sign-in?callbackUrl=${encodeURIComponent("/dashboard/create?mode=photo")}`)},L[4]=P,L[5]=$,L[6]=M,L[7]=d):d=L[7];let R=d;return L[8]!==A.title?(c=(0,s.jsx)("h1",{className:"mb-4 text-4xl font-extrabold text-gray-900",children:A.title}),L[8]=A.title,L[9]=c):c=L[9],L[10]!==A.description?(m=(0,s.jsx)("p",{className:"mx-auto max-w-3xl text-xl font-light text-gray-600",children:A.description}),L[10]=A.description,L[11]=m):m=L[11],L[12]!==c||L[13]!==m?(x=(0,s.jsxs)("div",{className:"mb-12 text-center",children:[c,m]}),L[12]=c,L[13]=m,L[14]=x):x=L[14],L[15]!==I.src?(u=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsx)("div",{className:"overflow-hidden rounded-xl shadow-lg",children:(0,s.jsx)("img",{src:I.src,alt:"",className:"h-auto w-full"})})}),L[15]=I.src,L[16]=u):u=L[16],L[17]!==q.title?(h=(0,s.jsx)("h3",{className:"mb-4 text-2xl font-bold",children:q.title}),L[17]=q.title,L[18]=h):h=L[18],L[19]!==q.description?(p=(0,s.jsx)("p",{className:"mb-6 font-light text-gray-600",children:q.description}),L[19]=q.description,L[20]=p):p=L[20],L[21]!==R?(g=e=>{("Enter"===e.key||" "===e.key)&&R()},L[21]=R,L[22]=g):g=L[22],L[23]!==R?(f=(0,s.jsx)("input",{type:"file",accept:"image/*",hidden:!0,onChange:R}),L[23]=R,L[24]=f):f=L[24],L[25]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",className:"text-muted-foreground mx-auto
1size-10",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})}),L[25]=b):b=L[25],L[26]!==q.dropzone_title?(j=(0,s.jsx)("p",{className:"text-muted-foreground mt-2 px-4 text-sm",children:q.dropzone_title}),L[26]=q.dropzone_title,L[27]=j):j=L[27],L[28]!==q.dropzone_action?(v=(0,s.jsx)("p",{className:"text-primary mt-3 text-sm font-medium",children:q.dropzone_action}),L[28]=q.dropzone_action,L[29]=v):v=L[29],L[30]!==j||L[31]!==v?(N=(0,s.jsxs)("div",{className:"py-10",children:[b,j,v]}),L[30]=j,L[31]=v,L[32]=N):N=L[32],L[33]!==R||L[34]!==g||L[35]!==f||L[36]!==N?(y=(0,s.jsxs)("div",{role:"button",tabIndex:0,onClick:R,onKeyDown:g,className:"border-border hover:border-primary hover:bg-primary/5 flex w-full cursor-pointer flex-col items-center justify-center overflow-hidden rounded-2xl border-2 border-dashed text-center transition-colors",children:[f,N]}),L[33]=R,L[34]=g,L[35]=f,L[36]=N,L[37]=y):y=L[37],L[38]!==q.note?(w=(0,s.jsx)("p",{className:"mt-2 text-xs font-light text-gray-500",children:q.note}),L[38]=q.note,L[39]=w):w=L[39],L[40]!==y||L[41]!==w?(_=(0,s.jsxs)("div",{className:"mb-6",children:[y,w]}),L[40]=y,L[41]=w,L[42]=_):_=L[42],L[43]!==R||L[44]!==q.button_text?(k=(0,s.jsx)("button",{type:"button",onClick:R,className:"w-full rounded-xl border border-indigo-700 bg-indigo-600 px-6 py-4 font-semibold text-white shadow-lg transition duration-200 ease-in-out hover:bg-indigo-700 focus:ring focus:ring-indigo-300",children:q.button_text}),L[43]=R,L[44]=q.button_text,L[45]=k):k=L[45],L[46]!==_||L[47]!==k||L[48]!==h||L[49]!==p?(S=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsxs)("div",{className:"rounded-xl bg-white p-8 shadow-lg",children:[h,p,_,k]})}),L[46]=_,L[47]=k,L[48]=h,L[49]=p,L[50]=S):S=L[50],L[51]!==S||L[52]!==u?(C=(0,s.jsxs)("div",{className:"flex flex-col items-center gap-8 md:flex-row",children:[u,S]}),L[51]=S,L[52]=u,L[53]=C):C=L[53],L[54]!==C||L[55]!==x?(z=(0,s.jsx)("section",{children:(0,s.jsxs)("div",{className:"container mx-auto max-w-6xl px-4 py-12",children:[x,C]})}),L[54]=C,L[55]=x,L[56]=z):z=L[56],z}},56352:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SubscribePanelProof:()=>m});var s=r(62219),a=r(30363),l=r(3785),i=r(31600),n=r(20987),o=r(83391),d=r(23490),c=r(10993);function m({section:e}){let[t,r]=(0,a.useState)(""),[m,x]=(0,a.useState)(!1),u=(e.items??[]).filter(e=>e.image?.src).slice(0,5),h=e.count,p=e.count_label,g=e.proof,f=async()=>{if(t&&e.submit?.action)try{x(!0);let r=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:t})});if(!r.ok)throw Error(`request failed with status ${r.status}`);let{code:s,message:a}=await r.json();if(0!==s)throw Error(a);x(!1),a&&o.oR.success(a)}catch(e){x(!1),o.oR.error(e.message||"subscribe failed")}};return(0,s.jsx)("section",{id:e.id||e.name,className:(0,c.cn)("py-16 md:py-24",e.className),children:(0,s.jsx)("div",{className:"container px-6",children:(0,s.jsx)("div",{className:"overflow-hidden rounded-3xl border border-border bg-gradient-to-br from-primary/10 via-accent to-card p-8 shadow-sm md:p-12 lg:p-16",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 items-center gap-x-16 gap-y-12 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"text-center lg:text-left",children:[e.title&&(0,s.jsx)("h2",{className:"text-3xl font-semibold tracking-tight text-balance text-foreground sm:text-4xl",children:e.title}),e.description&&(0,s.jsx)("p",{className:"mt-4 text-base/7 text-muted-foreground",children:e.description}),e.submit&&(0,s.jsxs)("div",{className:"mx-auto mt-8 max-w-xl lg:mx-0",children:[(0,s.jsxs)("div",{className:"relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-2xl border border-border bg-background pe-2 shadow-sm has-[input:focus]:ring-2 has-[input:focus]:ring-border",children:[(0,s.jsx)(l.A,{className:"pointer-events-none absolute inset-y-0 left-5 my-auto size-5 text-muted-foreground"}),(0,s.jsx)("input",{placeholder:e.submit.input?.placeholder||"Enter your email",className:"h-14 w-full bg-transparent ps-12 text-foreground focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-label":"email",value:t,onChange:e=>r(e.target.value)}),e.submit.button&&(0,s.jsxs)(d.$,{"aria-label":"submit",onClick:f,disabled:m,type:"submit",children:[m?(0,s.jsx)(i.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}
1),(0,s.jsx)(n.A,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})]}),e.tip&&(0,s.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:e.tip})]})]}),(u.length>0||h||g)&&(0,s.jsxs)("div",{className:"flex flex-col items-center gap-5 lg:items-start",children:[u.length>0&&(0,s.jsx)("div",{className:"flex -space-x-3",children:u.map((e,t)=>(0,s.jsx)("img",{src:e.image.src,alt:e.image?.alt??"",loading:"lazy",className:"size-12 rounded-full object-cover ring-2 ring-background"},t))}),(h||p)&&(0,s.jsxs)("div",{className:"text-center lg:text-left",children:[h&&(0,s.jsx)("div",{className:"text-4xl font-bold tracking-tight text-foreground tabular-nums",children:h}),p&&(0,s.jsx)("div",{className:"mt-1 text-sm font-medium text-muted-foreground",children:p})]}),g&&(0,s.jsx)("p",{className:"max-w-sm text-center text-sm/6 text-muted-foreground lg:text-left",children:g})]})]})})})})}},56377:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lp4FlaroHeroPrompt:()=>x});var s=r(62219),a=r(78253),l=r(30363),i=r(83391),n=r(44679),o=r(7138),d=r(95044),c=r(24803);function m(e){let t,r,l=(0,a.c)(3),{color:i}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[0,1,2,3,4],l[0]=t):t=l[0],l[1]!==i?(r=(0,s.jsx)(s.Fragment,{children:t.map(e=>(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:(0,s.jsx)("path",{d:"M7.707 1.21266C8.02812 0.224341 9.42632 0.224342 9.74744 1.21266L10.8948 4.74386C11.0384 5.18585 11.4503 5.48509 11.915 5.48509H15.6279C16.6671 5.48509 17.0992 6.81486 16.2585 7.42568L13.2547 9.60808C12.8787 9.88124 12.7214 10.3654 12.865 10.8074L14.0123 14.3386C14.3335 15.3269 13.2023 16.1488 12.3616 15.538L9.35775 13.3556C8.98178 13.0824 8.47266 13.0824 8.09669 13.3556L5.09287 15.538C4.25216 16.1488 3.12099 15.3269 3.44211 14.3386L4.58947 10.8074C4.73308 10.3654 4.57575 9.88124 4.19978 9.60808L1.19596 7.42567C0.355248 6.81486 0.787317 5.48509 1.82649 5.48509H5.53942C6.00415 5.48509 6.41603 5.18585 6.55964 4.74386L7.707 1.21266Z",fill:i})})},e))}),l[1]=i,l[2]=r):r=l[2],r}function x(e){let t,r,x,u,h,p,g,f,b,j,v,N,y,w,_,k,S,C,z,L,A,$,P,M,I,q,R,T,F,E,U,D,H=(0,a.c)(80),{section:K}=e,V=(0,n.rd)(),O=(0,n.a8)(),{user:W}=(0,o.U)(),B=(0,l.useRef)(null);H[0]!==K.image?(t=K.image??{},H[0]=K.image,H[1]=t):t=H[1];let Z=t;H[2]!==K.tool?(r=K.tool??{},H[2]=K.tool,H[3]=r):r=H[3];let J=r;H[4]!==K.ratings?(x=K.ratings??[],H[4]=K.ratings,H[5]=x):x=H[5];let G=x;H[6]!==G[0]?(u=G[0]??{},H[6]=G[0],H[7]=u):u=H[7];let Y=u;H[8]!==G[1]?(h=G[1]??{},H[8]=G[1],H[9]=h):h=H[9];let Q=h;H[10]!==O||H[11]!==V||H[12]!==W?(p=()=>{let e=(B.current?.value??"").trim();e?((0,c.M)({promptText:e,...(0,d.LL)(O)}),W?V.push("/dashboard/create?mode=text"):V.push(`/sign-in?callbackUrl=${encodeURIComponent("/dashboard/create?mode=text")}`)):i.oR.info("Please describe what you want to color")},H[10]=O,H[11]=V,H[12]=W,H[13]=p):p=H[13];let X=p;H[14]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)("div",{className:"absolute left-0 top-0 z-10 hidden h-full w-full max-w-xs bg-indigo-100 lg:block"}),H[14]=g):g=H[14],H[15]!==Z.src?(f=(0,s.jsx)("div",{className:"w-full p-8 md:w-1/2 xl:w-2/5 xl:p-12",children:(0,s.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,s.jsx)("img",{className:"w-full transform rounded-lg object-cover transition duration-1000 ease-in-out hover:scale-105 md:w-auto",src:Z.src,alt:""})})}),H[15]=Z.src,H[16]=f):f=H[16],H[17]!==K.title?(b=(0,s.jsx)("h1",{className:"mb-7 text-4xl font-extrabold leading-none md:text-6xl",children:K.title}),H[17]=K.title,H[18]=b):b=H[18],H[19]!==K.description?(j=(0,s.jsx)("p",{className:"mb-9 text-lg text-gray-900 md:max-w-md",children:K.description}),H[19]=K.description,H[20]=j):j=H[20],H[21]!==X?(v=e=>{"Enter"===e.key&&X()},H[21]=X,H[22]=v):v=H[22],H[23]!==v||H[24]!==J.placeholder?(N=(0,s.jsx)("div",{className:"w-full xl:flex-1",children:(0,s.jsx)("input",{type:"text",className:"w-full p-3 font-light text-gray-600 placeholder-gray-600 outline-none xl:p-0 xl:pr-7",placeholder:J.placeholder,ref:B,onKeyDown:v})}),H[23]=v,H[24]=J.placeholder,H[25]=N):N=H[25],H[26]!==X||H[27]!==J.button_text?(y=(0,s.jsx)("div",{className:"hidden w-full lg:block xl:w-auto",children:(0,s.jsx)("button",{type:"button",onClick:X,className:"w-full rounded-xl bg-indigo-600 px-7 py-4 font-semibold text-white transition duration-200 ease-in-out hover:bg-indigo-700 focus:ring focus:ring-indigo-300",children:J.button_text})}),H[26]=X,H[27]=J.button_text,H[28]=y):y=H[28],H[29]!==N||H[30]!==y?(w=(0,s.jsx)("div",{className:"mb-3 w-full rounded-3xl border-2 border-black px-1.5 py-4 focus-within:ring focus-within:ring-indigo-300 xl:py-1.5 xl:pl-7",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-center",children:[N,y]})}),H[29]=N,H[30]=y,H[31]=w):w=H[31],H[32]!==X||H[33]!==J.button_text?(_=(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)("button",{type:"button",onClick:X,className:"w-full rounded-xl bg-indigo-600 px-7 py-4 font-semibold text-white transition duration-200 ease-in-out hover:bg-indigo-700 focus:ring focus:ring-indigo-300",children:J.button_text})}
1),H[32]=X,H[33]=J.button_text,H[34]=_):_=H[34],H[35]!==w||H[36]!==_?(k=(0,s.jsxs)("div",{className:"mb-16",children:[w,_]}),H[35]=w,H[36]=_,H[37]=k):k=H[37];let ee=Y.color??"#00B67A";H[38]!==ee?(S=(0,s.jsx)("div",{className:"-m-0.5 mb-3 flex flex-wrap",children:(0,s.jsx)(m,{color:ee})}),H[38]=ee,H[39]=S):S=H[39],H[40]!==Y.score?(C=(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsx)("p",{className:"font-bold text-gray-900",children:Y.score})}),H[40]=Y.score,H[41]=C):C=H[41],H[42]!==Y.reviews?(z=(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsx)("p",{className:"text-gray-600",children:Y.reviews})}),H[42]=Y.reviews,H[43]=z):z=H[43],H[44]!==C||H[45]!==z?(L=(0,s.jsxs)("div",{className:"-m-0.5 mb-2.5 flex flex-wrap",children:[C,z]}),H[44]=C,H[45]=z,H[46]=L):L=H[46],H[47]!==Y.logo?(A=(0,s.jsx)("img",{className:"h-8",src:Y.logo,alt:""}),H[47]=Y.logo,H[48]=A):A=H[48],H[49]!==S||H[50]!==L||H[51]!==A?($=(0,s.jsxs)("div",{className:"w-auto pr-6 md:pr-16",children:[S,L,A]}),H[49]=S,H[50]=L,H[51]=A,H[52]=$):$=H[52],H[53]===Symbol.for("react.memo_cache_sentinel")?(P=(0,s.jsx)("div",{className:"w-auto",children:(0,s.jsx)("div",{className:"h-16 w-px bg-gray-200"})}),H[53]=P):P=H[53];let et=Q.color??"#FF9D28";return H[54]!==et?(M=(0,s.jsx)("div",{className:"-m-0.5 mb-3 flex flex-wrap",children:(0,s.jsx)(m,{color:et})}),H[54]=et,H[55]=M):M=H[55],H[56]!==Q.score?(I=(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsx)("p",{className:"font-bold text-gray-900",children:Q.score})}),H[56]=Q.score,H[57]=I):I=H[57],H[58]!==Q.reviews?(q=(0,s.jsx)("div",{className:"w-auto p-0.5",children:(0,s.jsx)("p",{className:"text-gray-600",children:Q.reviews})}),H[58]=Q.reviews,H[59]=q):q=H[59],H[60]!==I||H[61]!==q?(R=(0,s.jsxs)("div",{className:"-m-0.5 mb-4 flex flex-wrap",children:[I,q]}),H[60]=I,H[61]=q,H[62]=R):R=H[62],H[63]!==Q.logo?(T=(0,s.jsx)("img",{className:"h-8",src:Q.logo,alt:""}),H[63]=Q.logo,H[64]=T):T=H[64],H[65]!==M||H[66]!==R||H[67]!==T?(F=(0,s.jsxs)("div",{className:"w-auto pl-6 md:pl-16",children:[M,R,T]}),H[65]=M,H[66]=R,H[67]=T,H[68]=F):F=H[68],H[69]!==$||H[70]!==F?(E=(0,s.jsxs)("div",{className:"flex items-center",children:[$,P,F]}),H[69]=$,H[70]=F,H[71]=E):E=H[71],H[72]!==j||H[73]!==k||H[74]!==E||H[75]!==b?(U=(0,s.jsxs)("div",{className:"w-full p-8 md:w-1/2 xl:w-3/5 xl:p-12",children:[b,j,k,E]}),H[72]=j,H[73]=k,H[74]=E,H[75]=b,H[76]=U):U=H[76],H[77]!==U||H[78]!==f?(D=(0,s.jsxs)("section",{className:"relative",children:[g,(0,s.jsx)("div",{className:"relative z-20 overflow-hidden pb-28 pt-12",children:(0,s.jsx)("div",{className:"container mx-auto px-4",children:(0,s.jsxs)("div",{className:"-m-8 flex flex-wrap xl:items-center",children:[f,U]})})})]}),H[77]=U,H[78]=f,H[79]=D):D=H[79],D}},58534:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Cta:()=>m});var s=r(62219),a=r(78253),l=r(58037),i=r(44679),n=r(59030),o=r(23490),d=r(39524),c=r(10993);function m(e){let t,r,i,n,o,m,u,h,p=(0,a.c)(22),{section:g,className:f}=e,b=!0===g.decorative,j=g.id;p[0]!==f||p[1]!==g.className?(t=(0,c.cn)("relative overflow-hidden py-24 md:py-32",g.className,f),p[0]=f,p[1]=g.className,p[2]=t):t=p[2],p[3]!==b?(r=b&&(0,s.jsxs)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[(0,s.jsx)("div",{className:"bg-primary/20 absolute bottom-0 left-1/2 aspect-[21/9] w-full max-w-6xl -translate-x-1/2 translate-y-1/3 rounded-full blur-[100px]"}
1),(0,s.jsx)("div",{className:"border-foreground/10 absolute bottom-0 left-[6%] h-72 w-72 rotate-45 rounded-full border-t border-s"}),(0,s.jsx)("div",{className:"border-foreground/10 absolute right-[6%] bottom-0 h-72 w-72 -rotate-45 rounded-full border-t border-e"}),(0,s.jsxs)("div",{className:"text-foreground/[0.06] absolute bottom-4 flex w-full justify-center gap-20",children:[(0,s.jsx)(l.A,{size:120,className:"rotate-12"}),(0,s.jsx)(l.A,{size:80,className:"mt-10 -rotate-12"}),(0,s.jsx)(l.A,{size:100,className:"rotate-6"})]})]}),p[3]=b,p[4]=r):r=p[4],p[5]!==g.title?(i=(0,s.jsx)(d.i,{children:(0,s.jsx)("h2",{className:"text-4xl font-bold tracking-tight text-balance md:text-6xl md:leading-[1.05]",children:(0,s.jsx)("span",{className:"from-foreground to-foreground/40 bg-gradient-to-b bg-clip-text text-transparent dark:from-white dark:to-white/40",children:g.title})})}),p[5]=g.title,p[6]=i):i=p[6];let v=g.description??"";return p[7]!==v?(n=(0,s.jsx)(d.i,{delay:.15,children:(0,s.jsx)("p",{className:"text-muted-foreground mx-auto mt-6 max-w-2xl text-base text-balance md:text-lg",dangerouslySetInnerHTML:{__html:v}})}),p[7]=v,p[8]=n):n=p[8],p[9]!==g.buttons?(o=g.buttons?.map(x),p[9]=g.buttons,p[10]=o):o=p[10],p[11]!==o?(m=(0,s.jsx)(d.i,{delay:.3,children:(0,s.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:o})}),p[11]=o,p[12]=m):m=p[12],p[13]!==i||p[14]!==n||p[15]!==m?(u=(0,s.jsx)("div",{className:"relative container",children:(0,s.jsxs)("div",{className:"mx-auto max-w-4xl text-center",children:[i,n,m]})}),p[13]=i,p[14]=n,p[15]=m,p[16]=u):u=p[16],p[17]!==g.id||p[18]!==t||p[19]!==r||p[20]!==u?(h=(0,s.jsxs)("section",{id:j,className:t,children:[r,u]}),p[17]=g.id,p[18]=t,p[19]=r,p[20]=u,p[21]=h):h=p[21],h}function x(e,t){return(0,s.jsx)(o.$,{asChild:!0,size:e.size||"default",variant:e.variant||"default",children:(0,s.jsxs)(i.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,s.jsx)(n.L,{name:e.icon}),(0,s.jsx)("span",{children:e.title})]})},t)}},59197:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Features:()=>o});var s=r(62219),a=r(78253),l=r(59030),i=r(39524),n=r(10993);function o(e){let t,r,l,o,c,m,x,u,h=(0,a.c)(21),{section:p,className:g}=e,f=p.id;return h[0]!==g||h[1]!==p.className?(t=(0,n.cn)("py-16 md:py-24",p.className,g),h[0]=g,h[1]=p.className,h[2]=t):t=h[2],h[3]!==p.title?(r=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:p.title}),h[3]=p.title,h[4]=r):r=h[4],h[5]!==p.description?(l=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:p.description}),h[5]=p.description,h[6]=l):l=h[6],h[7]!==r||h[8]!==l?(o=(0,s.jsx)(i.i,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[r,l]})}),h[7]=r,h[8]=l,h[9]=o):o=h[9],h[10]!==p.items?(c=p.items?.map(d),h[10]=p.items,h[11]=c):c=h[11],h[12]!==c?(m=(0,s.jsx)(i.i,{delay:.2,children:(0,s.jsx)("div",{className:"relative mx-auto grid divide-x divide-y border *:p-12 sm:grid-cols-2 lg:grid-cols-3",children:c})}),h[12]=c,h[13]=m):m=h[13],h[14]!==o||h[15]!==m?(x=(0,s.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[o,m]}),h[14]=o,h[15]=m,h[16]=x):x=h[16],h[17]!==p.id||h[18]!==t||h[19]!==x?(u=(0,s.jsx)("section",{id:f,className:t,children:x}),h[17]=p.id,h[18]=t,h[19]=x,h[20]=u):u=h[20],u}function d(e,t){return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(l.L,{name:e.icon,size:24}),(0,s.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,s.jsx)("p",{className:"text-sm",children:e.description})]},t)}},60184:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Logos:()=>o});var s=r(62219),a=r(78253),l=r(72194),i=r(39524),n=r(10993);function o(e){let t,r,l,o,m,x,u,h,p,g,f,b,j,v=(0,a.c)(38),{section:N,className:y}=e;if(v[0]!==y||v[1]!==N.className||v[2]!==N.id||v[3]!==N.items||v[4]!==N.title){let e,a=(r=N.items??[]).length>0&&r.every(c);u=N.id,v[13]!==y||v[14]!==N.className?(h=(0,n.cn)("py-12 md:py-20",N.className,y),v[13]=y,v[14]=N.className,v[15]=h):h=v[15],m="mx-auto max-w-5xl px-6";
1let d=a?"text-muted-foreground/70 text-center text-[10px] font-bold tracking-[0.3em] uppercase":"text-md text-center font-medium";v[16]!==d?(e=(0,n.cn)(d),v[16]=d,v[17]=e):e=v[17],v[18]!==N.title||v[19]!==e?(x=(0,s.jsx)(i.i,{children:(0,s.jsx)("p",{className:e,children:N.title})}),v[18]=N.title,v[19]=e,v[20]=x):x=v[20],t=i.i,o=.2,l=(0,n.cn)("mx-auto mt-10 flex max-w-4xl flex-wrap items-center justify-center gap-x-12 gap-y-8 sm:gap-x-16 sm:gap-y-10",a&&"text-foreground/35 grayscale"),v[0]=y,v[1]=N.className,v[2]=N.id,v[3]=N.items,v[4]=N.title,v[5]=t,v[6]=r,v[7]=l,v[8]=o,v[9]=m,v[10]=x,v[11]=u,v[12]=h}else t=v[5],r=v[6],l=v[7],o=v[8],m=v[9],x=v[10],u=v[11],h=v[12];return v[21]!==r?(p=r.map(d),v[21]=r,v[22]=p):p=v[22],v[23]!==l||v[24]!==p?(g=(0,s.jsx)("div",{className:l,children:p}),v[23]=l,v[24]=p,v[25]=g):g=v[25],v[26]!==t||v[27]!==o||v[28]!==g?(f=(0,s.jsx)(t,{delay:o,children:g}),v[26]=t,v[27]=o,v[28]=g,v[29]=f):f=v[29],v[30]!==m||v[31]!==x||v[32]!==f?(b=(0,s.jsxs)("div",{className:m,children:[x,f]}),v[30]=m,v[31]=x,v[32]=f,v[33]=b):b=v[33],v[34]!==b||v[35]!==u||v[36]!==h?(j=(0,s.jsx)("section",{id:u,className:h,children:b}),v[34]=b,v[35]=u,v[36]=h,v[37]=j):j=v[37],j}function d(e,t){return e.image?.src?(0,s.jsx)(l.oD,{className:"h-8 w-fit dark:invert",src:e.image.src,alt:e.image.alt??""},t):(0,s.jsx)("span",{className:"font-serif text-xl font-bold tracking-tight italic select-none md:text-2xl",children:e.title},t)}function c(e){return!e.image?.src}},60915:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PricingTiersAccordion:()=>d});var s=r(62219),a=r(78253),l=r(30363),i=r(89728),n=r(14938),o=r(10993);function d(e){let t,r,n,d,x,u,h,p,g,f=(0,a.c)(24),{section:b}=e;f[0]!==b.items?(t=b.items??[],f[0]=b.items,f[1]=t):t=f[1];let j=t;f[2]!==j?(r=()=>{let e={};return j.forEach((t,r)=>{t.recommended&&(e[r]=!0)}),e},f[2]=j,f[3]=r):r=f[3];let[v,N]=(0,l.useState)(r);f[4]===Symbol.for("react.memo_cache_sentinel")?(n=e=>N(t=>({...t,[e]:!t[e]})),f[4]=n):n=f[4];let y=n,w=b.id||b.name;if(f[5]!==b.className?(d=(0,o.cn)("py-16 md:py-24",b.className),f[5]=b.className,f[6]=d):d=f[6],f[7]!==b.description||f[8]!==b.title?(x=(b.title||b.description)&&(0,s.jsxs)("div",{className:"mx-auto mb-12 max-w-2xl text-center",children:[b.title&&(0,s.jsx)("h2",{className:"text-3xl font-semibold tracking-tight text-balance text-foreground sm:text-4xl",children:b.title}),b.description&&(0,s.jsx)("p",{className:"mt-4 text-base/7 text-muted-foreground",children:b.description})]}),f[7]=b.description,f[8]=b.title,f[9]=x):x=f[9],f[10]!==j||f[11]!==v){let e;f[13]!==v?(e=(e,t)=>{let r=e.name||e.title||"",a=e.price??e.description??"",l=e.period||"",n=e.credits||"",d=Array.isArray(e.features)?e.features.map(m):[],x=e.overageNote||"",u=!!e.recommended,h=e.ctaLabel||"",p=e.url||"#",g=!!v[t],f=`tier-panel-${t}`;return(0,s.jsxs)("div",{className:(0,o.cn)("relative",t>0&&"border-t border-border",u&&"before:absolute before:inset-y-0 before:left-0 before:w-1 before:bg-primary"),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>y(t),"aria-expanded":g,"aria-controls":f,className:"flex w-full items-center gap-4 px-5 py-5 text-left transition-colors hover:bg-accent/50 sm:px-6",children:[(0,s.jsx)(i.A,{size:18,"aria-hidden":"true",className:(0,o.cn)("flex-none text-muted-foreground transition-transform duration-200",g&&"rotate-180")}),(0,s.jsxs)("span",{className:"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[(0,s.jsx)("span",{className:"text-base font-medium text-foreground",children:r}),""!==a&&(0,s.jsxs)("span",{className:"text-sm text-muted-foreground tabular-nums",children:[a,l&&(0,s.jsx)("span",{children:l})]})]}),n&&(0,s.jsx)("span",{className:"flex-none text-right text-sm font-medium text-foreground tabular-nums",children:n})]}),(0,s.jsx)("div",{id:f,className:(0,o.cn)("grid transition-[grid-template-rows] duration-300 ease-out",g?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsxs)("div",{className:"px-5 pb-6 pl-14 sm:px-6 sm:pl-14",children:[d.length>0&&(0,s.jsx)("ul",{className:"space-y-2.5",children:d.map(c)}),n&&(0,s.jsx)("p",{className:"mt-4 text-sm font-medium text-foreground",children:n}),x&&(0,s.jsx)("p",{className:"mt-1 text-sm/6 text-muted-foreground",children:x}),h&&(0,s.jsx)("a",{href:p,className:"mt-5 inline-flex items-center justify-center rounded-lg bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground transition-opacity hover:opacity-90",children:h})]})})})]},t)},f[13]=v,f[14]=e):e=f[14],u=j.map(e),f[10]=j,f[11]=v,f[12]=u}else u=f[12];return f[15]!==u?(h=(0,s.jsx)("div",{className:"mx-auto max-w-2xl overflow-hidden rounded-2xl border border-border bg-card",children:u}),f[15]=u,f[16]=h):h=f[16],f[17]!==x||f[18]!==h?(p=(0,s.jsxs)("div",{className:"container px-6",children:[x,h]}),f[17]=x,f[18]=h,f[19]=p):p=f[19],f[20]!==w||f[21]!==d||f[22]!==p?(g=(0,s.jsx)("section",{id:w,className:d,children:p}),f[20]=w,f[21]=d,f[22]=p,f[23]=g):g=f[23],g}function c(e,t){return(0,s.jsxs)("li",{className:"flex items-start gap-2.5 text-sm/6 text-muted-foreground",children:[(0,s.jsx)(n.A,{size:16,"aria-hidden":"true",className:"mt-0.5 flex-none text-primary"}),(0,s.jsx)("span",{children:e})]},t)}function m(e){return"string"==typeof e?e:e?.title||""}},61274:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesList:()=>c});var s=r(62219),a=r(78253),l=r(44679),i=r(72194),n=r(23490),o=r(39524),d=r(10993);function c(e){let t,r,l,n,c,x,u,h,p,g,f,b=(0,a.c)(30),{section:j,className:v}
1=e,N="tile"===j.icon_variant;b[0]!==v||b[1]!==j.className?(t=(0,d.cn)("overflow-x-hidden py-16 md:py-24",j.className,v),b[0]=v,b[1]=j.className,b[2]=t):t=b[2];let y=j.image?.src??"",w=j.image?.alt??"";return b[3]!==y||b[4]!==w?(r=(0,s.jsx)(o.i,{direction:"left",children:(0,s.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,s.jsx)(i.oD,{src:y,alt:w,className:"h-auto w-full rounded-lg object-cover"})})}),b[3]=y,b[4]=w,b[5]=r):r=b[5],b[6]!==j.title?(l=(0,s.jsx)(o.i,{delay:.1,children:(0,s.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:j.title})}),b[6]=j.title,b[7]=l):l=b[7],b[8]!==j.description?(n=(0,s.jsx)(o.i,{delay:.2,children:(0,s.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:j.description})}),b[8]=j.description,b[9]=n):n=b[9],b[10]!==j.buttons?(c=j.buttons&&j.buttons.length>0&&(0,s.jsx)(o.i,{delay:.3,children:(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:j.buttons?.map(m)})}),b[10]=j.buttons,b[11]=c):c=b[11],b[12]!==l||b[13]!==n||b[14]!==c?(x=(0,s.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[l,n,c]}),b[12]=l,b[13]=n,b[14]=c,b[15]=x):x=b[15],b[16]!==r||b[17]!==x?(u=(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[r,x]}),b[16]=r,b[17]=x,b[18]=u):u=b[18],b[19]!==j.items||b[20]!==N?(h=j.items?.map((e,t)=>(0,s.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(N?(0,s.jsx)("div",{className:"bg-primary/10 text-primary flex size-7 flex-shrink-0 items-center justify-center rounded-lg",children:(0,s.jsx)(i.LK,{name:e.icon,size:16})}):(0,s.jsx)(i.LK,{name:e.icon,size:16})),(0,s.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,s.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:e.description??""})]},t)),b[19]=j.items,b[20]=N,b[21]=h):h=b[21],b[22]!==h?(p=(0,s.jsx)(o.i,{delay:.1,children:(0,s.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:h})}),b[22]=h,b[23]=p):p=b[23],b[24]!==p||b[25]!==u?(g=(0,s.jsxs)("div",{className:"container overflow-x-hidden",children:[u,p]}),b[24]=p,b[25]=u,b[26]=g):g=b[26],b[27]!==t||b[28]!==g?(f=(0,s.jsx)("section",{className:t,children:g}),b[27]=t,b[28]=g,b[29]=f):f=b[29],f}function m(e,t){return(0,s.jsx)(n.$,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,s.jsxs)(l.N_,{href:e.url??"",target:e.target??"_self",children:[e.icon&&(0,s.jsx)(i.LK,{name:e.icon,size:24}),e.title]})},t)}},61356:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LpHeroPrompt:()=>m});var s=r(62219),a=r(78253),l=r(30363),i=r(95044),n=r(83391),o=r(44679),d=r(7138),c=r(24803);function m(e){let t,r,m,x,u,h,p,g,f,b,j,v,N,y,w,_,k,S,C=(0,a.c)(48),{section:z}=e,L=(0,o.rd)(),A=(0,o.a8)(),{user:$}=(0,d.U)(),[P,M]=(0,l.useState)("");C[0]!==z.image?(t=z.image??{},C[0]=z.image,C[1]=t):t=C[1];let I=t;C[2]!==z.tool?(r=z.tool??{},C[2]=z.tool,C[3]=r):r=C[3];let q=r;C[4]!==A||C[5]!==P||C[6]!==L||C[7]!==$?(m=()=>{P.trim()?((0,c.M)({promptText:P.trim(),...(0,i.LL)(A)}),$?L.push("/dashboard/create?mode=text"):L.push(`/sign-in?callbackUrl=${encodeURIComponent("/dashboard/create?mode=text")}`)):n.oR.info("Please describe what you want to color")},C[4]=A,C[5]=P,C[6]=L,C[7]=$,C[8]=m):m=C[8];let R=m;C[9]!==z.title?(x=(0,s.jsx)("h1",{className:"mb-4 text-4xl font-extrabold leading-tight text-foreground md:text-5xl",children:z.title}),C[9]=z.title,C[10]=x):x=C[10],C[11]!==z.description?(u=(0,s.jsx)("p",{className:"mx-auto max-w-3xl text-lg font-light text-muted-foreground md:text-xl",children:z.description}),C[11]=z.description,C[12]=u):u=C[12],C[13]!==x||C[14]!==u?(h=(0,s.jsxs)("div",{className:"mb-10 text-center",children:[x,u]}),C[13]=x,C[14]=u,C[15]=h):h=C[15];let T="right"===z.image_position?"flex flex-col items-center gap-8 md:items-center md:flex-row-reverse":"flex flex-col items-center gap-8 md:items-center md:flex-row";return C[16]!==I.alt||C[17]!==I.src?(p=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsx)("div",{className:"aspect-[3/2] w-full overflow-hidden rounded-3xl border border-border bg-card shadow-lg",children:(0,s.jsx)("img",{src:I.src,alt:I.alt,width:"2016",height:"1344",className:"h-full w-full object-contain",loading:"eager",fetchPriority:"high"})})}),C[16]=I.alt,C[17]=I.src,C[18]=p):p=C[18],C[19]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",className:"h-5 w-5",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09
1L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"})})}),C[19]=g):g=C[19],C[20]!==q.title?(f=(0,s.jsx)("h2",{className:"text-lg font-bold leading-tight text-foreground",children:q.title}),C[20]=q.title,C[21]=f):f=C[21],C[22]!==q.description?(b=(0,s.jsx)("p",{className:"text-xs font-light text-muted-foreground",children:q.description}),C[22]=q.description,C[23]=b):b=C[23],C[24]!==f||C[25]!==b?(j=(0,s.jsxs)("div",{className:"mb-5 flex items-center gap-2",children:[g,(0,s.jsxs)("div",{children:[f,b]})]}),C[24]=f,C[25]=b,C[26]=j):j=C[26],C[27]===Symbol.for("react.memo_cache_sentinel")?(v=e=>M(e.target.value),C[27]=v):v=C[27],C[28]!==P||C[29]!==q.placeholder?(N=(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsx)("textarea",{rows:3,placeholder:q.placeholder,value:P,onChange:v,className:"w-full rounded-2xl border-2 border-border p-4 font-light text-foreground placeholder-gray-400 outline-none transition-colors focus:ring focus:border-primary focus:ring-primary/20"})}),C[28]=P,C[29]=q.placeholder,C[30]=N):N=C[30],C[31]!==R||C[32]!==q.button_text?(y=(0,s.jsx)("button",{type:"button",onClick:R,className:"w-full rounded-2xl px-6 py-4 text-center font-semibold text-white shadow-lg transition duration-200 ease-in-out hover:shadow-xl hover:brightness-110 focus:ring-4 active:scale-[0.99] bg-primary focus:ring-primary/30",children:q.button_text}),C[31]=R,C[32]=q.button_text,C[33]=y):y=C[33],C[34]!==q.footnote?(w=(0,s.jsx)("p",{className:"mt-3 text-center text-xs font-light text-muted-foreground",children:q.footnote}),C[34]=q.footnote,C[35]=w):w=C[35],C[36]!==j||C[37]!==N||C[38]!==y||C[39]!==w?(_=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsxs)("div",{className:"rounded-3xl border border-border bg-card p-6 shadow-xl ring-1 ring-gray-900/5 sm:p-8",children:[j,N,y,w]})}),C[36]=j,C[37]=N,C[38]=y,C[39]=w,C[40]=_):_=C[40],C[41]!==_||C[42]!==T||C[43]!==p?(k=(0,s.jsxs)("div",{className:T,children:[p,_]}),C[41]=_,C[42]=T,C[43]=p,C[44]=k):k=C[44],C[45]!==k||C[46]!==h?(S=(0,s.jsx)("section",{id:"top",className:"relative overflow-hidden bg-gradient-to-b from-primary/5 to-white",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-6xl px-4 py-14 md:py-20",children:[h,k]})}),C[45]=k,C[46]=h,C[47]=S):S=C[47],S}},64294:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lp4FlaroFaq:()=>o});var s=r(62219),a=r(78253),l=r(30363);function i(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("svg",{className:"relative top-1",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M5.14229 5.625C5.48549 4.89675 6.41152 4.375 7.50003 4.375C8.88075 4.375 10 5.21447 10 6.25C10 7.12465 9.20152 7.85942 8.12142 8.06662C7.78242 8.13166 7.50003 8.40482 7.50003 8.75M7.5 10.625H7.50625M13.125 7.5C13.125 10.6066 10.6066 13.125 7.5 13.125C4.3934 13.125 1.875 10.6066 1.875 7.5C1.875 4.3934 4.3934 1.875 7.5 1.875C10.6066 1.875 13.125 4.3934 13.125 7.5Z",stroke:"#4F46E5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t[0]=e):e=t[0],e}function n(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("svg",{className:"relative top-1",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 2.25C7.91421 2.25 8.25 2.58579 8.25 3V6.75H12C12.4142 6.75 12.75 7.08579 12.75 7.5C12.75 7.91421 12.4142 8.25 12 8.25H8.25V12C8.25 12.4142 7.91421 12.75 7.5 12.75C7.08579 12.75 6.75 12.4142 6.75 12V8.25H3C2.58579 8.25 2.25 7.91421 2.25 7.5C2.25 7.08579 2.58579 6.75 3 6.75L6.75 6.75V3C6.75 2.58579 7.08579 2.25 7.5 2.25Z",fill:"black"})}),t[0]=e):e=t[0],e}function o(e){let t,r,o,d,c,m,x,u=(0,a.c)(19),{section:h}=e;u[0]!==h.items?(t=h.items??[],u[0]=h.items,u[1]=t):t=u[1];let p=t,[g,f]=(0,l.useState)(null);if(u[2]!==h.title?(r=(0,s.jsx)("h2",{className:"mb-7 text-4xl font-black leading-tight md:text-5xl",children:h.title}),u[2]=h.title,u[3]=r):r=u[3],u[4]!==h.description?(o=(0,s.jsx)("p",{className:"mb-11 font-normal leading-relaxed text-gray-600",children:h.description}),u[4]=h.description,u[5]=o):o=u[5],u[6]!==r||u[7]!==o?(d=(0,s.jsx)("div",{className:"w-full p-8 md:w-1/2",children:(0,s.jsxs)("div",{className:"md:max-w-md",children:[r,o]})}),u[6]=r,u[7]=o,u[8]=d):d=u[8],u[9]!==p||u[10]!==g){let e;u[12]!==g?(e=(e,t)=>(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"block cursor-pointer border-b border-gray-300",onClick:()=>f(g===t?null:t),children:(0,s.jsxs)("div",{className:"-m-1.5 flex flex-wrap justify-between py-7",children:[(0,s.jsx)("div",{className:"flex-1 p-1.5",children:(0,s.jsxs)("div",{className:"-m-1.5 flex flex-wrap",children:[(0,s.jsx)("div",{className:"w-auto p-1.5",children:(0,s.jsx)(i,{})}),(0,s.jsxs)("div",{className:"flex-1 p-1.5",children:[(0,s.jsx)("h3",{className:"font-semibold leading-normal",children:e.q}),(0,s.jsx)("div",{className:g===t?"h-auto overflow-hidden duration-500":"h-0 overflow-hidden duration-500",children:(0,s.jsx)("p",{className:"mb-5 mt-4 font-normal leading-relaxed text-gray-600",children:e.a})})]})]})}),(0,s.jsx)("div",{className:"w-auto p-1.5",children:(0,s.jsx)(n,{})})]})})}
1,t),u[12]=g,u[13]=e):e=u[13],c=p.map(e),u[9]=p,u[10]=g,u[11]=c}else c=u[11];return u[14]!==c?(m=(0,s.jsx)("div",{className:"w-full p-8 md:w-1/2",children:(0,s.jsx)("div",{className:"ml-auto md:max-w-2xl",children:(0,s.jsx)("div",{className:"flex flex-wrap",children:c})})}),u[14]=c,u[15]=m):m=u[15],u[16]!==d||u[17]!==m?(x=(0,s.jsx)("section",{className:"overflow-hidden bg-white py-32",children:(0,s.jsx)("div",{className:"container mx-auto px-4",children:(0,s.jsxs)("div",{className:"-m-8 flex flex-wrap",children:[d,m]})})}),u[16]=d,u[17]=m,u[18]=x):x=u[18],x}},64824:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ToolShell:()=>w});var s=r(62219),a=r(78253),l=r(87992),i=r(45535),n=r(74874),o=r(10993),d=r(12261),c=r(44679),m=r(76502),x=r(61714),u=r(1421),h=r(54539),p=r(59030),g=r(34819);function f(e){let t,r,l,i,n,o,d,c,h,p,f,N,y,w,_,k,S,C=(0,a.c)(43),{footer:z}=e,L=`marketing-footer border-foreground/[0.06] overflow-x-hidden border-t pt-16 pb-10 ${z.className||""}`;return C[0]!==z.brand?(t=z.brand?(0,s.jsx)(m.F,{brand:z.brand}):null,C[0]=z.brand,C[1]=t):t=C[1],C[2]!==z.brand?(r=z.brand?.description?(0,s.jsx)("p",{className:"text-muted-foreground max-w-sm text-sm leading-relaxed text-balance break-words",dangerouslySetInnerHTML:{__html:z.brand.description}}):null,C[2]=z.brand,C[3]=r):r=C[3],C[4]!==t||C[5]!==r?(l=(0,s.jsxs)("div",{className:"min-w-0 space-y-4 break-words md:col-span-2 md:space-y-6",children:[t,r]}),C[4]=t,C[5]=r,C[6]=l):l=C[6],C[7]!==z.nav?.items?(i=z.nav?.items.map(v),C[7]=z.nav?.items,C[8]=i):i=C[8],C[9]!==i?(n=(0,s.jsx)("div",{className:"md:col-span-4 grid min-w-0 gap-6 sm:grid-cols-2 lg:grid-cols-4",children:i}),C[9]=i,C[10]=n):n=C[10],C[11]!==l||C[12]!==n?(o=(0,s.jsxs)("div",{className:"grid min-w-0 gap-12 md:grid-cols-6",children:[l,n]}),C[11]=l,C[12]=n,C[13]=o):o=C[13],C[14]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsx)("div",{className:"border-foreground
1/[0.06] border-t"}),C[14]=d):d=C[14],C[15]!==z.brand||C[16]!==z.copyright?(c=z.copyright?(0,s.jsx)("p",{className:"text-muted-foreground text-sm break-words",dangerouslySetInnerHTML:{__html:z.copyright}}):z.brand?(0,s.jsx)(x.Copyright,{brand:z.brand}):null,C[15]=z.brand,C[16]=z.copyright,C[17]=c):c=C[17],C[18]!==z.agreement?(h=z.agreement?(0,s.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-5 gap-y-2",children:z.agreement?.items.map(j)}):null,C[18]=z.agreement,C[19]=h):h=C[19],C[20]!==h||C[21]!==c?(p=(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-6 gap-y-3",children:[c,h]}),C[20]=h,C[21]=c,C[22]=p):p=C[22],C[23]!==z.social?(f=z.social?(0,s.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:z.social?.items.map(b)}):null,C[23]=z.social,C[24]=f):f=C[24],C[25]!==z.show_theme?(N=!1!==z.show_theme?(0,s.jsx)(g.ThemeToggler,{type:"toggle"}):null,C[25]=z.show_theme,C[26]=N):N=C[26],C[27]!==z.show_locale?(y=!1!==z.show_locale?(0,s.jsx)(u.LocaleSelector,{type:"button"}):null,C[27]=z.show_locale,C[28]=y):y=C[28],C[29]!==f||C[30]!==N||C[31]!==y?(w=(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-3",children:[f,N,y]}),C[29]=f,C[30]=N,C[31]=y,C[32]=w):w=C[32],C[33]!==p||C[34]!==w?(_=(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-6",children:[p,w]}),C[33]=p,C[34]=w,C[35]=_):_=C[35],C[36]!==_||C[37]!==o?(k=(0,s.jsxs)("div",{className:"container space-y-12 overflow-x-hidden",children:[o,d,_]}),C[36]=_,C[37]=o,C[38]=k):k=C[38],C[39]!==z.id||C[40]!==L||C[41]!==k?(S=(0,s.jsx)("footer",{id:z.id,className:L,children:k}),C[39]=z.id,C[40]=L,C[41]=k,C[42]=S):S=C[42],S}function b(e,t){return(0,s.jsx)(c.N_,{href:e.url||"",target:e.target||"",className:"bg-foreground
1/5 text-muted-foreground hover:bg-foreground/10 hover:text-foreground border-foreground/10 flex size-9 items-center justify-center rounded-full border transition-colors duration-150","aria-label":e.title||"Social media link",children:e.icon&&(0,s.jsx)(p.L,{name:e.icon,size:16})},t)}function j(e,t){return(0,s.jsx)(h.k,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-foreground text-xs break-words transition-colors duration-150",children:e.title||""},t)}function v(e,t){return(0,s.jsxs)("div",{className:"min-w-0 space-y-4 break-words",children:[(0,s.jsx)("span",{className:"text-muted-foreground block text-xs font-bold tracking-wider break-words uppercase",children:e.title}),(0,s.jsx)("div",{className:"flex min-w-0 flex-wrap gap-3 sm:flex-col",children:e.children?.map(N)})]},t)}function N(e,t){return(0,s.jsx)(h.k,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-foreground block text-sm break-words transition-colors duration-150",children:(0,s.jsx)("span",{className:"break-words",children:e.title||""})},t)}var y=r(44572);function w(e){let t,r,c,m,x,u,h,p,g,b,j,v,N,w=(0,a.c)(34),{centerForm:_,rightSidebar:k,className:S,belowContent:C}=e,z=(0,l.c3)("landing"),L=(0,l.c3)("tool.nav");w[0]!==z||w[1]!==L?(t=function(e,t){let r=e.nav?.items;if(!r?.length)return e;let s=(0,n.BI)().map(e=>({title:t(`items.${e.navKey}`),url:e.path,target:"_self"})),a=e=>(e??[]).filter(e=>!(0,n.D7)(e.url??""));return{...e,nav:{...e.nav,items:r.map(e=>"tools"===e.key||"new_release"===e.key?{...e,children:a(s)}:{...e,children:a(e.children)}).filter(e=>(e.children?.length??0)>0)}}}(z.raw("footer"),L),w[0]=z,w[1]=L,w[2]=t):t=w[2];let A=t,{navOpen:$,setNavOpen:P}=(0,i.Z)();w[3]!==$||w[4]!==P?(r=$&&(0,s.jsx)("button",{type:"button","aria-hidden":!0,tabIndex:-1,onClick:()=>P(!1),className:"fixed inset-x-0 top-16 bottom-0 z-20 bg-black/50 md:hidden"}),w[3]=$,w[4]=P,w[5]=r):r=w[5];let M=$?"translate-x-0":"-translate-x-full";return w[6]!==M?(c=(0,o.cn)("bg-sidebar border-border fixed top-16 bottom-0 left-0 z-30 w-[290px] overflow-y-auto border-e py-4 transition-transform duration-200 md:hidden",M),w[6]=M,w[7]=c):c=w[7],w[8]!==P?(m=(0,s.jsx)(y.ToolsMenuMobileGroups,{closeMenu:()=>P(!1)}),w[8]=P,w[9]=m):m=w[9],w[10]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)("div",{className:"px-4",children:(0,s.jsx)(d.CreditsCard,{})}),w[10]=x):x=w[10],w[11]!==c||w[12]!==m?(u=(0,s.jsxs)("aside",{className:c,children:[m,x]}),w[11]=c,w[12]=m,w[13]=u):u=w[13],w[14]!==S?(h=(0,o.cn)("mx-auto w-full max-w-screen-2xl flex-1 px-6 py-6 md:px-8 md:py-8",S),w[14]=S,w[15]=h):h=w[15],w[16]!==_||w[17]!==k?(p=k?(0,s.jsxs)("div",{className:"flex flex-col gap-8 xl:flex-row xl:items-start",children:[(0,s.jsx)("main",{className:"mx-auto w-full max-w-[920px] min-w-0 xl:mx-0 xl:max-w-[690px] xl:min-w-[460px] xl:flex-1",children:_}),(0,s.jsx)("aside",{className:"w-full min-w-0 xl:flex-[2_1_0%]",children:k})]}):(0,s.jsx)("main",{children:_}),w[16]=_,w[17]=k,w[18]=p):p=w[18],w[19]!==h||w[20]!==p?(g=(0,s.jsx)("div",{className:h,children:p}),w[19]=h,w[20]=p,w[21]=g):g=w[21],w[22]!==C?(b=C&&(0,s.jsx)("div",{className:"border-border mt-8 border-t md:mt-12",children:(0,s.jsx)("div",{className:"mx-auto w-full max-w-6xl",children:C})}),w[22]=C,w[23]=b):b=w[23],w[24]!==A?(j=(0,s.jsx)(f,{footer:A}),w[24]=A,w[25]=j):j=w[25],w[26]!==g||w[27]!==b||w[28]!==j?(v=(0,s.jsxs)("div",{className:"flex min-h-[calc(100vh-4rem)] w-full min-w-0 flex-col",children:[g,b,j]}),w[26]=g,w[27]=b,w[28]=j,w[29]=v):v=w[29],w[30]!==v||w[31]!==r||w[32]!==u?(N=(0,s.jsxs)(s.Fragment,{children:[r,u,v]}),w[30]=v,w[31]=r,w[32]=u,w[33]=N):N=w[33],N}},66346:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Showcases:()=>u});var s=r(62219),a=r(78253),l=r(30363),i=r(55829),n=r(72260),o=r(44679),d=r(59030),c=r(23490),m=r(33304),x=r(10993);function u(e){let t,r,i,o,d,c,m,u,p,g,f,b,j,v,N,y,w=(0,a.c)(39),{section:_,className:k}=e;w[0]!==_?(t=_.groups||[],w[0]=_,w[1]=t):t=w[1];let S=t,[C,z]=(0,l.useState)(S.length>0?S[0].name:"");e:{let e;if(!_.items){let e;w[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],w[2]=e):e=w[2],r=e;break e}if(!C||!S.length||"all"===C){r=_.items;break e}if(w[3]!==_.items||w[4]!==C){let t;w[6]!==C?(t=e=>e.group===C,w[6]=C,w[7]=t):t=w[7],e=_.items.filter(t),w[3]=_.items,w[4]=C,w[5]=e}else e=w[5];r=e}let L=r,A=_.id||_.name;return w[8]!==k||w[9]!==_.className?(i=(0,x.cn)("py-24 md:py-36",_.className,k),w[8]=k,w[9]=_.className,w[10]=i):i=w[10],w[11]===Symbol.for("react.memo_cache_sentinel")?(o={opacity:0,y:20},d={opacity:1,y:0},c={once:!0},w[11]=o,w[12]=d,w[13]=c):(o=w[11],d=w[12],c=w[13]),w[14]===Symbol.for("react.memo_cache_sentinel")?(m=[.22,1,.36,1],w[14]=m):m=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(u={duration:.6,ease:m},w[15]=u):u=w[15],w[16]!==_.sr_only_title?(p=_.sr_only_title&&(0,s.jsx)("h1",{className:"sr-only",children:_.sr_only_title}),w[16]=_.sr_only_title,w[17]=p):p=w[17],w[18]!==_.title?(g=(0,s.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:_.title}),w[18]=_.title,w[19]=g):g=w[19],w[20]!==_.description?(f=(0,s.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:_.description}),w[20]=_.description,w[21]=f):f=w[21],w[22]!==p||w[23]!==g||w[24]!==f?(b=(0,s.jsxs)(n.P.div,{className:"container mb-12 text-center",initial:o,whileInView:d,viewport:c,transition:u,children:[p,g,f]}),w[22]=p,w[23]=g,w[24]=f,w[25]=b):b=w[25],w[26]!==S||w[27]!==C?(j=S.length>0&&(0,s.jsx)(n.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:S.map((e,t)=>{let r=C===e.name;return(0,s.jsx)(n.P.button,{onClick:()=>z(e.name),className:(0,x.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",r?"":"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:r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,s.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,s.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,s.jsx)("span",{children:e.title})},e.name)})}),w[26]=S,w[27]=C,w[28]=j):j=w[28],w[29]!==L?(v=L.length>0?L.map(h):(0,s.jsx)(n.P.div,{className:"text-muted-foreground col-span-full text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},children:"No items found in this category."}),w[29]=L,w[30]=v):v=w[30],w[31]!==v?(N=(0,s.jsx)("div",{className:"container grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:v}),w[31]=v,w[32]=N):N=w[32],w[33]!==b||w[34]!==j||w[35]!==N||w[36]!==A||w[37]!==i?(y=(0,s.jsxs)("section",{id:A,className:i,children:[b,j,N]}),w[33]=b,w[34]=j,w[35]=N,w[36]=A,w[37]=i,w[38]=y):y=w[38],y}function h(e,t){let r=!!e.button,a=(0,s.jsx)(n.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*t,ease:[.22,1,.36,1]},children:(0,s.jsx)(m.Zp,{className:"dark:hover:shadow-primary/10 overflow-hidden p-0 transition-all hover:shadow-lg",children:(0,s.jsxs)(m.Wu,{className:"p-0",children:[(0,s.jsx)(n.P.div,{className:"relative aspect-16/10 w-full overflow-hidden",whileHover:{scale:1.05},transition:{duration:.3},children:(0,s.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,s.jsxs)("div",{className:"p-6",children:[(0,s.jsx)("h3",{className:"mb-2 line-clamp-1 text-xl font-semibold text-balance",children:e.title}),(0,s.jsx)("p",{className:"text-muted-foreground line-clamp-3 text-sm",dangerouslySetInnerHTML:{__html:e.description??""}}),r&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.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,s.jsxs)(o.N_,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,s.jsx)(d.L,{name:e.button.icon,className:"text-white"}),e.button.title]})})})]})]})})});return r?(0,s.jsx)("div",{children:a},t):(0,s.jsx)(o.N_,{href:e.url||"",target:e.target,children:a},t)}},72108:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var s=r(62219),a=r(30363),l=r(10993);let i=a.forwardRef(({className:e,...t},r)=>(0,s.jsx)("textarea",{className:(0,l.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));i.displayName="Textarea"},74092:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Subscribe:()=>x});var s=r(62219),a=r(30363),l=r(3785),i=r(31600),n=r(20987),o=r(83391),d=r(23490),c=r(39524),m=r(10993);function x({section:e,className:t}){let[r,x]=(0,a.useState)(""),[u,h]=(0,a.useState)(!1),p=async()=>{if(r&&e.submit?.action)try{h(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:r})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:s,message:a,data:l}=await t.json();if(0!==s)throw Error(a);h(!1),a&&o.oR.success(a)}catch(e){h(!1),o.oR.error(e.message||"subscribe failed")}};return(0,s.jsx)("section",{id:e.id,className:(0,m.cn)("py-16 md:py-24",e.className,t),children:(0,s.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(c.i,{children:(0,s.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:e.title})}),(0,s.jsx)(c.i,{delay:.15,children:(0,s.jsx)("p",{className:"mt-4",children:e.description})}),(0,s.jsx)(c.i,{delay:.3,children:(0,s.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,s.jsxs)("div",{className:"bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-[calc(var(--radius)+0.75rem)] border pe-3 shadow shadow-zinc-950/5 has-[input:focus]:ring-2",children:[(0,s.jsx)(l.A,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,s.jsx)("input",{placeholder:e.submit?.input?.placeholder||"Enter your email",className:"h-14 w-full bg-transparent ps-12 focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-invalid":!r,"aria-describedby":"email-error",value:r,onChange:e=>x(e.target.value)}),e.submit?.button&&(0,s.jsx)("div",{className:"md:pe-1.5 lg:pe-0",children:(0,s.jsxs)(d.$,{"aria-label":"submit",className:"rounded-(--radius)",onClick:p,disabled:u,type:"submit",children:[u?(0,s.jsx)(i.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}
1),(0,s.jsx)(n.A,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}},74234:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UpdatesVersionTabs:()=>d});var s=r(62219),a=r(78253),l=r(30363),i=r(10993);let n={new:"bg-primary text-primary-foreground",improved:"bg-secondary text-secondary-foreground",fixed:"bg-muted text-muted-foreground"};function o(e){let t=e.badge||e.tag||"";return t?t.charAt(0).toUpperCase()+t.slice(1):""}function d(e){let t,r,n,o,d,m,x,u,h,p,g,f,b=(0,a.c)(36),{section:j}=e;b[0]!==j.items?(t=j.items??[],b[0]=j.items,b[1]=t):t=b[1];let v=t,[N,y]=(0,l.useState)(0);if(0===v.length)return null;let w=v[Math.min(N,v.length-1)];b[2]!==w?.changes?(r=w?.changes??[],b[2]=w?.changes,b[3]=r):r=b[3];let _=r,k=j.id||j.name;b[4]!==j.className?(n=(0,i.cn)("py-16 md:py-24",j.className),b[4]=j.className,b[5]=n):n=b[5],b[6]!==j.description||b[7]!==j.title?(o=(j.title||j.description)&&(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[j.title&&(0,s.jsx)("h2",{className:"text-3xl font-semibold tracking-tight text-balance text-foreground sm:text-4xl",children:j.title}),j.description&&(0,s.jsx)("p",{className:"mt-4 text-base/7 text-muted-foreground",children:j.description})]}),b[6]=j.description,b[7]=j.title,b[8]=o):o=b[8];let S=j.title||"Versions";if(b[9]!==N||b[10]!==v){let e;b[12]!==N?(e=(e,t)=>{let r=t===N;return(0,s.jsxs)("button",{type:"button",role:"tab","aria-selected":r,onClick:()=>y(t),className:(0,i.cn)("flex-none rounded-lg border px-4 py-3 text-left transition-colors outline-none","focus-visible:ring-[3px] focus-visible:ring-ring/50 lg:w-full",r?"border-primary bg-primary/10":"border-border bg-card hover:bg-accent hover:text-accent-foreground"),children:[(0,s.jsx)("div",{className:(0,i.cn)("text-sm font-semibold tabular-nums",r?"text-primary":"text-foreground"),children:e.version}),e.date&&(0,s.jsx)("div",{className:"mt-0.5 text-xs text-muted-foreground",children:e.date})]},e.version??t)},b[12]=N,b[13]=e):e=b[13],d=v.map(e),b[9]=N,b[10]=v,b[11]=d}else d=b[11];return b[14]!==S||b[15]!==d?(m=(0,s.jsx)("div",{role:"tablist","aria-orientation":"vertical","aria-label":S,className:"flex gap-2 overflow-x-auto pb-2 lg:flex-col lg:overflow-visible lg:pb-0",children:d}),b[14]=S,b[15]=d,b[16]=m):m=b[16],b[17]!==w?(x=(w?.version||w?.label)&&(0,s.jsxs)("div",{className:"mb-6 flex flex-wrap items-baseline gap-x-3 gap-y-1 border-b border-border pb-4",children:[w?.version&&(0,s.jsx)("h3",{className:"text-xl font-semibold text-foreground",children:w.version}),w?.label&&(0,s.jsx)("span",{className:"text-sm text-muted-foreground",children:w.label}),w?.date&&(0,s.jsx)("span",{className:"ml-auto text-xs text-muted-foreground tabular-nums",children:w.date})]}),b[17]=w,b[18]=x):x=b[18],b[19]!==_||b[20]!==j.tip?(u=_.length>0?(0,s.jsx)("ul",{className:"space-y-4",children:_.map(c)}):(0,s.jsx)("div",{className:"rounded-lg border border-dashed border-border p-8 text-center text-sm text-muted-foreground",children:j.tip}),b[19]=_,b[20]=j.tip,b[21]=u):u=b[21],b[22]!==N||b[23]!==u||b[24]!==x?(h=(0,s.jsxs)("div",{role:"tabpanel",className:"animate-in fade-in duration-300",children:[x,u]},N),b[22]=N,b[23]=u,b[24]=x,b[25]=h):h=b[25],b[26]!==h||b[27]!==m?(p=(0,s.jsxs)("div",{className:"mt-12 grid grid-cols-1 gap-6 lg:grid-cols-[220px_1fr] lg:gap-10",children:[m,h]}),b[26]=h,b[27]=m,b[28]=p):p=b[28],b[29]!==p||b[30]!==o?(g=(0,s.jsxs)("div",{className:"container px-6",children:[o,p]}),b[29]=p,b[30]=o,b[31]=g):g=b[31],b[32]!==g||b[33]!==k||b[34]!==n?(f=(0,s.jsx)("section",{id:k,className:n,children:g}),b[32]=g,b[33]=k,b[34]=n,b[35]=f):f=b[35],f}function c(e,t){return(0,s.jsxs)("li",{className:"flex flex-col gap-2 rounded-lg border border-border bg-card p-4 sm:flex-row sm:items-start sm:gap-4",children:[o(e)&&(0,s.jsx)("span",{className:(0,i.cn)("inline-flex w-fit flex-none items-center rounded-full px-2.5 py-0.5 text-xs font-medium",n[(e.tag||"").toLowerCase()]||"bg-muted text-muted-foreground"),children:o(e)}),(0,s.jsxs)("div",{className:"min-w-0",children:[e.title&&(0,s.jsx)("p",{className:"text-sm font-medium text-foreground",children:e.title}),e.detail&&(0,s.jsx)("p",{className:"mt-1 text-sm/6 text-muted-foreground",children:e.detail})]})]},t)}},74711:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SubscribeSplitPerks:()=>x});var s=r(62219),a=r(30363),l=r(3785),i=r(31600),n=r(20987),o=r(83391),d=r(72194),c=r(23490),m=r(10993);function x({section:e}){let[t,r]=(0,a.useState)(""),[x,u]=(0,a.useState)(!1),h=e.items??[],p=async()=>
1{if(t&&e.submit?.action)try{u(!0);let r=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:t})});if(!r.ok)throw Error(`request failed with status ${r.status}`);let{code:s,message:a}=await r.json();if(0!==s)throw Error(a);u(!1),a&&o.oR.success(a)}catch(e){u(!1),o.oR.error(e.message||"subscribe failed")}};return(0,s.jsx)("section",{id:e.id||e.name,className:(0,m.cn)("py-16 md:py-24",e.className),children:(0,s.jsx)("div",{className:"container px-6",children:(0,s.jsx)("div",{className:"mx-auto max-w-5xl overflow-hidden rounded-2xl border border-border bg-card",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 md:divide-x md:divide-border",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-center p-8 md:p-10 lg:p-12",children:[e.title&&(0,s.jsx)("h2",{className:"text-2xl font-semibold tracking-tight text-balance text-foreground sm:text-3xl",children:e.title}),e.description&&(0,s.jsx)("p",{className:"mt-4 text-base/7 text-muted-foreground",children:e.description}),(0,s.jsxs)("div",{className:"mt-8",children:[(0,s.jsxs)("div",{className:"relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-(--radius) border border-border bg-background pe-2 has-[input:focus]:ring-2 has-[input:focus]:ring-border",children:[(0,s.jsx)(l.A,{className:"pointer-events-none absolute inset-y-0 left-4 my-auto size-5 text-muted-foreground"}),(0,s.jsx)("input",{placeholder:e.submit?.input?.placeholder||"Enter your email",className:"h-12 w-full bg-transparent ps-11 text-foreground focus:outline-none",type:"email",required:!0,"aria-required":"true",value:t,onChange:e=>r(e.target.value)}),e.submit?.button&&(0,s.jsxs)(c.$,{"aria-label":e.submit.button.title||"submit",className:"rounded-(--radius)",onClick:p,disabled:x,type:"submit",children:[x?(0,s.jsx)(i.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"hidden sm:block",children:e.submit.button.title}),(0,s.jsx)(n.A,{className:"relative mx-auto size-5 sm:hidden",strokeWidth:2})]})]}),e.tip&&(0,s.jsx)("p",{className:"mt-3 text-xs/5 text-muted-foreground",children:e.tip})]})]}),h.length>0&&(0,s.jsxs)("div",{className:"border-t border-border bg-muted/40 p-8 md:border-t-0 md:p-10 lg:p-12",children:[e.perks_title&&(0,s.jsx)("h3",{className:"text-sm font-semibold tracking-wide text-muted-foreground uppercase",children:e.perks_title}),(0,s.jsx)("ul",{className:(0,m.cn)("space-y-6",e.perks_title&&"mt-6"),children:h.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-4",children:[e.icon&&(0,s.jsx)("span",{className:"flex size-10 flex-none items-center justify-center rounded-(--radius) bg-primary/10 text-primary",children:(0,s.jsx)(d.LK,{name:e.icon,size:20})}),(0,s.jsxs)("div",{className:"min-w-0",children:[e.title&&(0,s.jsx)("p",{className:"text-base font-semibold text-foreground",children:e.title}),e.description&&(0,s.jsx)("p",{className:"mt-1 text-sm/6 text-muted-foreground",children:e.description})]})]},e.title||t))})]})]})})})})}},74874:(e,t,r)=>{"use strict";r.d(t,{BI:()=>d,D7:()=>n,y$:()=>o});let s=[{path:"/text-to-coloring-pages",navKey:"text_to_coloring",releaseDate:"2026-06-16"},{path:"/photo-to-coloring-pages",navKey:"photo_to_coloring",releaseDate:"2026-06-16"},{path:"/free-coloring-pages",navKey:"free_coloring_pages",releaseDate:"2026-06-16"},{path:"/coloring-page",navKey:"coloring_collections",releaseDate:"2026-06-16"}],a=[{labelKey:"items.coloring_tools",items:[{path:"/text-to-coloring-pages",navKey:"text_to_coloring",icon:"Type"},{path:"/photo-to-coloring-pages",navKey:"photo_to_coloring",icon:"Image"}]},{labelKey:"items.free_library",items:[{path:"/free-coloring-pages",navKey:"free_coloring_pages",icon:"BookOpen"},{path:"/coloring-page",navKey:"coloring_collections",icon:"Palette"}]}],l=new Set(["/text-to-coloring-pages","/photo-to-coloring-pages","/free-coloring-pages","/coloring-page"]),i=new Set([...s.map(e=>e.path),...a.flatMap(e=>e.items.map(e=>e.path))]);function n(e){return i.has(e)&&!l.has(e)}let o=a.map(e=>({...e,items:e.items.filter(e=>l.has(e.path))})).filter(e=>e.items.length>0);function d(e=4){return s.filter(e=>l.has(e.path)).sort((e,t)=>
1t.releaseDate.localeCompare(e.releaseDate)).slice(0,e)}},76036:(e,t,r)=>{"use strict";r.d(t,{JD:()=>x,KS:()=>c,SK:()=>m,Ws:()=>f,hA:()=>p,wd:()=>h});var s=r(62219),a=r(78253),l=r(30363),i=r(28449),n=r(65189),o=r(89728),d=r(10993);let c=l.forwardRef((e,t)=>{let r,l,n,o,c,m,x,u=(0,a.c)(16);u[0]!==e?({className:l,children:r,viewport:o,...n}=e,u[0]=e,u[1]=r,u[2]=l,u[3]=n,u[4]=o):(r=u[1],l=u[2],n=u[3],o=u[4]);let h=void 0===o||o;return u[5]!==l?(c=(0,d.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",l),u[5]=l,u[6]=c):c=u[6],u[7]!==h?(m=h&&(0,s.jsx)(g,{}),u[7]=h,u[8]=m):m=u[8],u[9]!==r||u[10]!==n||u[11]!==t||u[12]!==c||u[13]!==m||u[14]!==h?(x=(0,s.jsxs)(i.bL,{ref:t,"data-slot":"navigation-menu","data-viewport":h,role:"navigation",className:c,...n,children:[r,m]}),u[9]=r,u[10]=n,u[11]=t,u[12]=c,u[13]=m,u[14]=h,u[15]=x):x=u[15],x});function m(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,d.cn)("group flex flex-1 list-none items-center justify-center gap-1",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)(i.B8,{"data-slot":"navigation-menu-list",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}function x(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,d.cn)("relative",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)(i.q7,{"data-slot":"navigation-menu-item",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}c.displayName=i.bL.displayName;let u=(0,n.F)("group inline-flex h-8 w-max items-center justify-center rounded-md px-4 py-1 text-sm text-muted-foreground font-medium hover:bg-foreground
1/5 hover:text-foreground focus:bg-foreground/5 focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-foreground/5 data-[state=open]:text-foreground data-[state=open]:focus:bg-foreground/5 data-[state=open]:bg-foreground/5 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function h(e){let t,r,l,n,c,m,x=(0,a.c)(11);return x[0]!==e?({className:r,children:t,...l}=e,x[0]=e,x[1]=t,x[2]=r,x[3]=l):(t=x[1],r=x[2],l=x[3]),x[4]!==r?(n=(0,d.cn)(u(),"group",r),x[4]=r,x[5]=n):n=x[5],x[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(o.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}),x[6]=c):c=x[6],x[7]!==t||x[8]!==l||x[9]!==n?(m=(0,s.jsxs)(i.l9,{"data-slot":"navigation-menu-trigger",className:n,...l,children:[t," ",c]}),x[7]=t,x[8]=l,x[9]=n,x[10]=m):m=x[10],m}function p(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,d.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),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)(i.UC,{"data-slot":"navigation-menu-content",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}function g(e){let t,r,l,n,o,c=(0,a.c)(9);return c[0]!==e?({className:t,...r}=e,c[0]=e,c[1]=t,c[2]=r):(t=c[1],r=c[2]),c[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,d.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),c[3]=l):l=c[3],c[4]!==t?(n=(0,d.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),c[4]=t,c[5]=n):n=c[5],c[6]!==r||c[7]!==n?(o=(0,s.jsx)("div",{className:l,children:(0,s.jsx)(i.LM,{"data-slot":"navigation-menu-viewport",className:n,...r})}),c[6]=r,c[7]=n,c[8]=o):o=c[8],o}function f(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,d.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),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)(i.N_,{"data-slot":"navigation-menu-link",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}},76201:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lp4PromptLibrary:()=>m});var s=r(62219),a=r(30363),l=r(83391),i=r(44679),n=r(7138),o=r(24803),d=r
1(10993);let c="__all__";function m({section:e}){let t=(0,i.rd)(),{user:r}=(0,n.U)(),m=e.groups??[],x=e.levels??[],u=e.items??[],[h,p]=(0,a.useState)(c),[g,f]=(0,a.useState)(c),[b,j]=(0,a.useState)(""),v=(0,a.useMemo)(()=>u.filter(e=>(h===c||e.group===h)&&(g===c||e.level===g)),[u,h,g]),N=(e,t)=>e.id||`${e.group}-${t}`,y=async(t,r)=>{try{await navigator.clipboard.writeText(t.prompt),j(N(t,r)),setTimeout(()=>j(""),1600),l.oR.success(e.copied_toast||"Prompt copied")}catch{l.oR.error(e.copy_failed_toast||"Could not copy, please select the text")}},w=h===c?e.description:m.find(e=>e.key===h)?.note,_=e=>(0,d.cn)("rounded-full border px-4 py-1.5 text-sm font-medium transition",e?"border-primary bg-primary text-primary-foreground":"border-border bg-card text-muted-foreground hover:text-foreground");return(0,s.jsx)("section",{id:e.anchor||"prompt-library",className:(0,d.cn)("py-20",e.bg),children:(0,s.jsxs)("div",{className:"container mx-auto max-w-6xl px-4",children:[(0,s.jsxs)("div",{className:"mb-8 text-center",children:[(0,s.jsx)("h2",{className:"mb-4 text-3xl font-extrabold md:text-4xl",children:e.title}),w&&(0,s.jsx)("p",{className:"mx-auto max-w-3xl leading-relaxed text-muted-foreground",children:w})]}),m.length>0&&(0,s.jsxs)("div",{className:"mb-3 flex flex-wrap justify-center gap-2",children:[(0,s.jsx)("button",{type:"button",className:_(h===c),onClick:()=>p(c),children:e.all_label||"All styles"}),m.map(e=>(0,s.jsx)("button",{type:"button",className:_(h===e.key),onClick:()=>p(e.key),children:e.label},e.key))]}),x.length>0&&(0,s.jsxs)("div",{className:"mb-8 flex flex-wrap justify-center gap-2",children:[(0,s.jsx)("button",{type:"button",className:_(g===c),onClick:()=>f(c),children:e.all_levels_label||"Every level"}),x.map(e=>(0,s.jsx)("button",{type:"button",className:_(g===e.key),onClick:()=>f(e.key),children:e.label},e.key))]}),(0,s.jsx)("p",{className:"mb-6 text-center text-sm text-muted-foreground",children:(e.count_label||"{n} prompts").replace("{n}",String(v.length))}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-5 md:grid-cols-2",children:v.map((a,l)=>{let i,n,d=N(a,l);return(0,s.jsxs)("div",{className:"flex flex-col rounded-2xl bg-card p-6 shadow-sm ring-1 ring-gray-900/5",children:[(0,s.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"rounded-full bg-primary/10 px-3 py-0.5 text-xs font-medium text-primary",children:(i=a.group,m.find(e=>e.key===i)?.label||i)}),(0,s.jsx)("span",{className:"rounded-full bg-muted px-3 py-0.5 text-xs font-medium text-muted-foreground",children:(n=a.level,x.find(e=>e.key===n)?.label||n)})]}),(0,s.jsx)("h3",{className:"mb-3 text-lg font-bold text-foreground",children:a.title}),(0,s.jsx)("p",{className:"mb-5 flex-1 whitespace-pre-line text-sm leading-relaxed text-muted-foreground",children:a.prompt}),(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>y(a,l),className:"flex-1 rounded-lg border border-border bg-background px-4 py-2 text-sm font-semibold text-foreground transition hover:bg-muted",children:b===d?e.copied_label||"Copied":e.copy_label||"Copy prompt"}),(0,s.jsx)("button",{type:"button",onClick:()=>{let e;return(0,o.M)({promptText:a.prompt}),e="/dashboard/create?mode=text",void(r?t.push(e):t.push(`/sign-in?callbackUrl=${encodeURIComponent(e)}`))},className:"flex-1 rounded-lg bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground transition hover:opacity-90",children:e.generate_label||"Generate this"})]})]},d)})}),0===v.length&&(0,s.jsx)("p",{className:"py-10 text-center text-muted-foreground",children:e.empty_label||"No prompts match this filter yet."}),e.footnote&&(0,s.jsx)("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:e.footnote})]})})}},77634:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeroMinimal:()=>f});var s=r(62219),a=r(78253),l=r(30363),i=r(51300),n=r(90176),o=r(88049),d=r(11792),c=r(62682),m=r(44679),x=r(23490),u=r(20614),h=r(7138),p=r(10993);let g=["Pop","Lo-fi","Country","EDM","R&B","Hip-hop","Rock","Jazz","Ambient","Synthwave"];function f(e){let t,r,f,N,y,w,_,k,S,C,z,L,A,$,P,M,I,q,R,T=(0,a.c)(43),{section:F,className:E}=e,U=(0,m.rd)(),{user:D,setIsShowSignModal:H}=(0,h.U)(),K=F.cta_primary??"Start for Free",V=F.why_button??"How it works",[O,W]=(0,l.useState)(!1),B=(F.quick_plays??[]).filter(v).slice(0,10),Z=(0,l.useRef)(null),[J,G]=(0,l.useState)(null),[Y,Q]=(0,l.useState)(0);T[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>()=>{Z.current?.pause(),Z.current=null},r=[],T[0]=t,T[1]=r):(t=T[0],r=T[1]),(0,l.useEffect)(t,r),T[2]!==U||T[3]!==F||T[4]!==H||T[5]!==D?(f=()=>{D?U.push(F.cta_url??"/dashboard/create"):H(!0)},T[2]=U,T[3]=F,T[4]=H,T[5]=D,T[6]=f):f=T[6];
1let X=f,[ee,et]=(0,l.useState)(0),er=Math.max(0,B.length-5),es=F.id;T[7]!==E?(N=(0,p.cn)("relative",E),T[7]=E,T[8]=N):N=T[8],T[9]!==F.title?(y=(0,s.jsx)("h1",{className:"text-foreground max-w-[18ch] text-4xl leading-[1.04] font-normal tracking-[-0.02em] text-balance md:text-6xl",children:F.title}),T[9]=F.title,T[10]=y):y=T[10],T[11]!==F.description?(w=F.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-5 max-w-[52ch] text-base leading-relaxed md:text-lg",children:F.description}),T[11]=F.description,T[12]=w):w=T[12],T[13]===Symbol.for("react.memo_cache_sentinel")?(_=(0,s.jsx)(i.A,{size:16}),T[13]=_):_=T[13],T[14]!==K||T[15]!==X?(k=(0,s.jsxs)(x.$,{type:"button",onClick:X,size:"lg",children:[K,_]}),T[14]=K,T[15]=X,T[16]=k):k=T[16],T[17]===Symbol.for("react.memo_cache_sentinel")?(S=()=>W(!0),C=(0,s.jsx)(n.A,{size:14,className:"fill-current"}),T[17]=S,T[18]=C):(S=T[17],C=T[18]),T[19]!==V?(z=(0,s.jsxs)(x.$,{type:"button",variant:"outline",size:"lg",onClick:S,children:[C,V]}),T[19]=V,T[20]=z):z=T[20],T[21]!==k||T[22]!==z?(L=(0,s.jsxs)("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[k,z]}),T[21]=k,T[22]=z,T[23]=L):L=T[23],T[24]!==V?(A=(0,s.jsx)(u.L3,{className:"sr-only",children:V}),T[24]=V,T[25]=A):A=T[25],T[26]===Symbol.for("react.memo_cache_sentinel")?($=(0,s.jsx)("img",{src:"/logo.png",alt:"",width:72,height:72,className:"size-16 opacity-90"}),T[26]=$):$=T[26],T[27]===Symbol.for("react.memo_cache_sentinel")?(P=(0,s.jsxs)("div",{className:"bg-primary flex aspect-video w-full flex-col items-center justify-center gap-8",children:[$,(0,s.jsx)("div",{"aria-hidden":!0,className:"flex h-10 items-end gap-1.5",children:[40,70,55,90,65,80,45,75,60].map(j)})]}),T[27]=P):P=T[27],T[28]!==A?(M=(0,s.jsxs)(u.Cf,{className:"max-w-3xl overflow-hidden p-0",children:[A,P]}),T[28]=A,T[29]=M):M=T[29],T[30]!==M||T[31]!==O?(I=(0,s.jsx)(u.lG,{open:O,onOpenChange:W,children:M}),T[30]=M,T[31]=O,T[32]=I):I=T[32];let ea=!!B.length&&(0,s.jsxs)("div",{className:"mt-12 flex w-full items-center gap-2 md:mt-16 md:gap-4",children:[(0,s.jsx)("button",{type:"button","aria-label":"Previous songs",disabled:0===ee,onClick:()=>et(b),className:"border-border bg-card text-foreground hover:bg-secondary hidden md:flex size-10 shrink-0 cursor-pointer items-center justify-center rounded-full border transition-colors disabled:cursor-default disabled:opacity-30",children:(0,s.jsx)(o.A,{size:18})}),(0,s.jsx)("div",{className:"scrollbar-hide -mx-6 flex w-[calc(100%+3rem)] min-w-0 flex-1 items-center gap-4 overflow-x-auto px-6 py-4 md:mx-0 md:w-auto md:justify-center md:gap-0 md:overflow-visible md:px-0 md:[perspective:56.25rem]",children:B.map((e,t)=>{let r=J===t,a=t>=ee&&t<ee+5,l=t-ee-2;return(0,s.jsxs)("div",{className:(0,p.cn)("group relative aspect-square w-44 shrink-0 overflow-hidden rounded-3xl transition-[transform,box-shadow] duration-500 md:w-56 lg:w-60","shadow-[0_12px_40px_-12px_rgba(0,0,0,0.35)]",!a&&"md:hidden",r&&"z-30",!r&&"hover:z-20"),style:{transform:`translateX(${-8*l}%) rotateY(${r?0:-7*l}deg) scale(${r?1.04:1-.04*Math.abs(l)})`,zIndex:r?30:10-Math.abs(Math.round(2*l)),transformStyle:"preserve-3d"},children:[(0,s.jsx)("img",{src:e.image.src,alt:e.title??"",width:512,height:512,className:"absolute inset-0 h-full w-full object-cover"}),(0,s.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0 h-1/2 bg-gradient-to-t from-black/55 to-transparent"}),(0,s.jsxs)("div",{className:"absolute bottom-3 left-3 flex items-end",children:[(0,s.jsx)("button",{type:"button","aria-label":r?`Pause ${e.title??""}`:`Play ${e.title??""}`,onClick:()=>(e=>{if(J===e){Z.current?.pause(),G(null);return}Z.current?.pause();let t=new Audio(B[e].audio);t.ontimeupdate=()=>{t.duration&&Q(t.currentTime/t.duration)},t.onended=()=>{G(null),Q(0)},Z.current=t,Q(0),t.play().catch(()=>G(null)),G(e)})(t),className:"flex size-12 shrink-0 cursor-pointer items-center justify-center rounded-full bg-white text-black shadow-[0_0_1px_rgba(0,0,0,0.4),0_1px_1px_rgba(0,0,0,0.04),0_2px_4px_rgba(0,0,0,0.04)] transition-transform hover:bg-neutral-100 active:scale-[0.98]",children:r?(0,s.jsx)(d.A,{size:18,className:"fill-current"}):(0,s.jsx)(n.A,{size:18,className:"ms-0.5 fill-current"})}),(0,s.jsx)("div",{className:"mb-[13px] ms-3 overflow-hidden transition-[width] duration-500 ease-out",style:{width:r?"9rem":"0px"},children:(0,s.jsxs)("div",{className:"w-36",children:[(0,s.jsx)("p",{className:"truncate pb-1 text-start text-[10px] font-medium tracking-[0.08em] text-white uppercase",children:g[t]??""}),(0,s.jsx)("div",{className:"h-1 w-full rounded-full bg-white/40",children:(0,s.jsx)("div",{className:"h-1 rounded-full bg-white",style:{width:`${r?Math.round(100*Y):0}%`}})})]})})]})]},t)})}),(0,s.jsx)("button",{type:"button","aria-label":"Next songs",disabled:ee>=er,onClick:()=>et(e=>Math.min(er,e+1)),className:"border-border bg-card text-foreground hover:bg-secondary hidden md:flex size-10 shrink-0 cursor-pointer items-center justify-center rounded-full border transition-colors disabled:cursor-default disabled:opacity-30",children:(0,s.jsx)(c.A,{size:18})})]});return T[33]!==L||T[34]!==I||T[35]!==ea||T[36]!==y||T[37]!==w?(q=(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl flex-col items-center px-6 pt-24 pb-16 text-center md:px-8 md:pt-44 md:pb-28",children:[y,w,L,I,ea]}),T[33]=L,T[34]=I,T[35]=ea,T[36]=y,T[37]=w,T[38]=q):q=T[38],T[39]!==F.id||T[40]!==q||T[41]!==N?(R=(0,s.jsx)("section",{id:es,className:N,children:q}),T[39]=F.id,T[40]=q,T[41]=N,T[42]=R):R=T[42],R}function b(e){return Math.max(0,e-1)}function j(e,t){return(0,s.jsx)("span",{className:"bg-primary-foreground
1/70 w-1.5 origin-bottom rounded-full motion-safe:animate-pulse",style:{height:`${e}%`,animationDuration:`${1.1+t%4*.25}s`}},t)}function v(e){return e.audio&&e.image?.src}},77945:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PlatformTabsPreview:()=>o});var s=r(62219),a=r(78253),l=r(30363),i=r(72194),n=r(10993);function o(e){let t,r,o,d,c,m,x,u,h,p,g,f,b,j=(0,a.c)(28),{section:v}=e,N=v.items??[],[y,w]=(0,l.useState)(0);j[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],j[0]=t):t=j[0];let _=(0,l.useRef)(t);if(0===N.length)return null;let k=N[Math.min(y,N.length-1)],S=function(e){switch((e||"").trim()){case"9:16":return{aspect:"aspect-[9/16]",maxW:"max-w-[240px]"};case"4:3":return{aspect:"aspect-[4/3]",maxW:"max-w-2xl"};default:return{aspect:"aspect-video",maxW:"max-w-3xl"}}}(k.ratio);j[1]!==v.className?(r=(0,n.cn)("py-16 md:py-24",v.className),j[1]=v.className,j[2]=r):r=j[2],j[3]!==v.description||j[4]!==v.title?(o=(v.title||v.description)&&(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[v.title&&(0,s.jsx)("h2",{className:"text-3xl font-semibold tracking-tight text-balance text-foreground sm:text-4xl",children:v.title}),v.description&&(0,s.jsx)("p",{className:"mt-4 text-base/7 text-muted-foreground",children:v.description})]}),j[3]=v.description,j[4]=v.title,j[5]=o):o=j[5];let C=`platform-panel-${y}`,z=`platform-tab-${y}`,L=(0,n.cn)("w-full rounded-xl border border-border bg-muted p-2 transition-all duration-300 sm:p-3",S.maxW),A=(0,n.cn)("flex w-full flex-col overflow-hidden rounded-lg border border-border bg-background",S.aspect);return j[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsxs)("div",{className:"flex flex-none items-center gap-1.5 border-b border-border bg-muted/60 px-3 py-2",children:[(0,s.jsx)("span",{className:"size-2 rounded-full bg-foreground
1/20"}),(0,s.jsx)("span",{className:"size-2 rounded-full bg-foreground/20"}),(0,s.jsx)("span",{className:"size-2 rounded-full bg-foreground/20"}),(0,s.jsx)("span",{className:"ml-3 h-2 w-1/3 rounded-full bg-foreground/10"})]}),j[6]=d):d=j[6],j[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("div",{className:"h-2.5 w-2/3 rounded-full bg-foreground/15"}),m=(0,s.jsx)("div",{className:"h-2 w-full rounded-full bg-secondary"}),x=(0,s.jsx)("div",{className:"h-2 w-5/6 rounded-full bg-secondary"}),j[7]=c,j[8]=m,j[9]=x):(c=j[7],m=j[8],x=j[9]),j[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)("div",{className:"flex-1 space-y-3 p-4",children:[c,m,x,(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-2 pt-2",children:[(0,s.jsx)("div",{className:"aspect-square rounded-md bg-secondary"}),(0,s.jsx)("div",{className:"aspect-square rounded-md bg-secondary"}),(0,s.jsx)("div",{className:"aspect-square rounded-md bg-secondary"})]}),(0,s.jsx)("div",{className:"h-2 w-3/4 rounded-full bg-secondary"})]}),j[10]=u):u=j[10],j[11]!==A?(h=(0,s.jsxs)("div",{className:A,children:[d,u]}),j[11]=A,j[12]=h):h=j[12],j[13]!==y||j[14]!==L||j[15]!==h?(p=(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("div",{className:L,children:h},y)}),j[13]=y,j[14]=L,j[15]=h,j[16]=p):p=j[16],j[17]!==k.description||j[18]!==k.icon||j[19]!==k.title?(g=(k.title||k.description)&&(0,s.jsxs)("div",{className:"mx-auto mt-8 max-w-md text-center",children:[k.title&&(0,s.jsxs)("h3",{className:"flex items-center justify-center gap-2 text-base font-medium text-foreground",children:[k.icon&&(0,s.jsx)(i.LK,{name:k.icon,size:18}),k.title]}),k.description&&(0,s.jsx)("p",{className:"mt-2 text-sm/6 text-muted-foreground",children:k.description})]}),j[17]=k.description,j[18]=k.icon,j[19]=k.title,j[20]=g):g=j[20],j[21]!==p||j[22]!==g?(f=(0,s.jsxs)("div",{className:"mx-auto max-w-4xl rounded-2xl border border-border bg-card p-6 shadow-sm sm:p-10",children:[p,g]}),j[21]=p,j[22]=g,j[23]=f):f=j[23],j[24]!==f||j[25]!==C||j[26]!==z?(b=(0,s.jsx)("div",{role:"tabpanel",id:C,"aria-labelledby":z,className:"mt-10 md:mt-14",children:f}),j[24]=f,j[25]=C,j[26]=z,j[27]=b):b=j[27],(0,s.jsx)("section",{id:v.id||v.name,className:r,children:(0,s.jsxs)("div",{className:"container px-6",children:[o,(0,s.jsx)("div",{className:"mt-10 flex justify-center md:mt-14",children:(0,s.jsx)("div",{role:"tablist","aria-label":v.title||"Device previews",className:"flex max-w-full gap-1 overflow-x-auto rounded-full border border-border bg-muted p-1",children:N.map((e,t)=>{let r=t===y;return(0,s.jsxs)("button",{ref:e=>{_.current[t]=e},role:"tab",type:"button",id:`platform-tab-${t}`,"aria-selected":r,"aria-controls":`platform-panel-${t}`,tabIndex:r?0:-1,onClick:()=>w(t),onKeyDown:e=>((e,t)=>{let r;if("ArrowRight"===e.key||"ArrowDown"===e.key)r=(t+1)%N.length;else if("ArrowLeft"===e.key||"ArrowUp"===e.key)r=(t-1+N.length)%N.length;else if("Home"===e.key)r=0;else{if("End"!==e.key)return;r=N.length-1}e.preventDefault(),w(r),_.current[r]?.focus()})(e,t),className:(0,n.cn)("flex flex-none items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition-colors outline-none","focus-visible:ring-[3px] focus-visible:ring-ring/50",r?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[e.icon&&(0,s.jsx)(i.LK,{name:e.icon,size:16}),e.title]},e.title||t)})})}),b]})})}},78504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ToolHeader:()=>y});var s=r(62219),a=r(78253),l=r(87954),i=r(87193),n=r(47514),o=r(6090),d=r(87992),c=r(30363),m=r(44679),x=r(72194),u=r(4488),h=r(23490),p=r(76036),g=r(7138),f=r(45535),b=r(93503),j=r(51366),v=r(44572);function N(e){let t,r,l,i=(0,a.c)(4),[n,o]=(0,c.useState)(!1);return(i[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{o(!0)},r=[],i[0]=t,i[1]=r):(t=i[0],r=i[1]),(0,c.useEffect)(t,r),n)?(i[2]!==e?(l=(0,s.jsx)(p.wd,{...e}),i[2]=e,i[3]=l):l=i[3],l):null}function y(e){let t,r,y,w,_,k,S,C,z,L,A,$,P,M,I,q,R,T,F,E,U,D,H,K=(0,a.c)(58),{userNav:V}=e,O=(0,d.c3)("landing.header.brand");K[0]!==O?(t=O.raw("logo")??{},K[0]=O,K[1]=t):t=K[1];let W=t,B=(0,d.c3)("tool.header"),Z=(0,d.c3)("tool.nav"),{user:J,setIsShowSignModal:G}=(0,g.U)(),{navOpen:Y,toggleNav:Q}=(0,f.Z)(),[X,ee]=(0,c.useState)(!1);K[2]!==G||K[3]!==J?(r=()=>{J?ee(!0):G(!0)},K[2]=G,K[3]=J,K[4]=r):r=K[4];let et=r;K[5]!==Z?(y=Z("group_label"),K[5]=Z,K[6]=y):y=K[6],K[7]!==Y?(w=Y?(0,s.jsx)(l.A,{size:18}):(0,s.jsx)(i.A,{size:18}),K[7]=Y,K[8]=w):w=K[8],K[9]!==Y||K[10]!==y||K[11]!==w||K[12]!==Q?(_=(0,s.jsx)(h.$,{variant:"ghost","aria-label":y,"aria-expanded":Y,onClick:Q,className:"h-9 w-9 p-0 md:hidden",children:w}),K[9]=Y,K[10]=y,K[11]=w,K[12]=Q,K[13]=_):_=K[13];let er=W.src||"/logo.png",es=W.alt||"";
1return K[14]!==W.srcDark||K[15]!==er||K[16]!==es?(k=(0,s.jsx)(x.FX,{src:er,srcDark:W.srcDark,alt:es,width:32,height:32,className:"h-8 w-8 rounded"}),K[14]=W.srcDark,K[15]=er,K[16]=es,K[17]=k):k=K[17],K[18]!==O?(S=O("title"),K[18]=O,K[19]=S):S=K[19],K[20]!==S?(C=(0,s.jsx)("span",{className:"text-foreground text-xl font-bold tracking-tight",children:S}),K[20]=S,K[21]=C):C=K[21],K[22]!==C||K[23]!==k?(z=(0,s.jsxs)(m.N_,{href:"/",className:"flex items-center gap-2",children:[k,C]}),K[22]=C,K[23]=k,K[24]=z):z=K[24],K[25]!==Z?(L=Z("group_label"),K[25]=Z,K[26]=L):L=K[26],K[27]!==L?(A=(0,s.jsx)(N,{className:"text-sm",children:L}),K[27]=L,K[28]=A):A=K[28],K[29]===Symbol.for("react.memo_cache_sentinel")?($=(0,s.jsx)(p.hA,{className:"origin-top p-0.5 md:w-max md:!translate-x-0",children:(0,s.jsx)("div",{className:"border-foreground/5 bg-card ring-foreground/5 rounded-[calc(var(--radius)-2px)] border border-transparent p-4 shadow ring-1",children:(0,s.jsx)(v.ToolsMegaMenu,{})})}),K[29]=$):$=K[29],K[30]!==A?(P=(0,s.jsx)(p.KS,{viewport:!1,className:"ms-2 max-md:hidden",children:(0,s.jsx)(p.SK,{children:(0,s.jsxs)(p.JD,{className:"static",children:[A,$]})})}),K[30]=A,K[31]=P):P=K[31],K[32]!==z||K[33]!==P||K[34]!==_?(M=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[_,z,P]}),K[32]=z,K[33]=P,K[34]=_,K[35]=M):M=K[35],K[36]===Symbol.for("react.memo_cache_sentinel")?(I=(0,s.jsx)(b.CreditsPill,{}),K[36]=I):I=K[36],K[37]===Symbol.for("react.memo_cache_sentinel")?(q=(0,s.jsx)(n.A,{size:14}),K[37]=q):q=K[37],K[38]!==B?(R=B("feedback"),K[38]=B,K[39]=R):R=K[39],K[40]!==et||K[41]!==R?(T=(0,s.jsxs)("button",{type:"button",onClick:et,className:"text-foreground hover:text-foreground/70 hidden items-center gap-2 text-xs font-bold transition-colors sm:flex",children:[q,R]}),K[40]=et,K[41]=R,K[42]=T):T=K[42],K[43]!==B||K[44]!==J?(F=J&&(0,s.jsxs)(m.N_,{"aria-label":B("upgrade"),href:"/pricing",className:"bg-primary text-primary-foreground hover:bg-primary/90 flex items-center gap-2 rounded-lg p-2 text-xs font-bold transition-colors sm:bg-transparent sm:p-0 sm:text-foreground sm:hover:bg-transparent sm:hover:text-foreground/70",children:[(0,s.jsx)(o.A,{size:14}),(0,s.jsx)("span",{className:"hidden sm:inline",children:B("upgrade")})]}),K[43]=B,K[44]=J,K[45]=F):F=K[45],K[46]!==V?(E=(0,s.jsx)(u.SignUser,{userNav:V}),K[46]=V,K[47]=E):E=K[47],K[48]!==X?(U=(0,s.jsx)(j.FeedbackDialog,{open:X,onOpenChange:ee}),K[48]=X,K[49]=U):U=K[49],K[50]!==T||K[51]!==F||K[52]!==E||K[53]!==U?(D=(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[I,T,F,E,U]}),K[50]=T,K[51]=F,K[52]=E,K[53]=U,K[54]=D):D=K[54],K[55]!==M||K[56]!==D?(H=(0,s.jsxs)("header",{className:"border-border bg-card sticky top-0 z-40 flex h-16 shrink-0 items-center justify-between border-b px-6",children:[M,D]}),K[55]=M,K[56]=D,K[57]=H):H=K[57],H}},78859:(e,t,r)=>{"use strict";r.r(t),r.d(t,{OcHero:()=>c});var s=r(62219),a=r(78253),l=r(44679),i=r(7138);let n="inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-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",o=["-rotate-3 transition-transform duration-500 ease-out hover:rotate-0 hover:-translate-y-2","rotate-2 transition-transform duration-500 ease-out hover:rotate-0 hover:-translate-y-2","-rotate-2 transition-transform duration-500 ease-out hover:rotate-0 hover:-translate-y-2","rotate-3 transition-transform duration-500 ease-out hover:rotate-0 hover:-translate-y-2"],d=[{src:"https://images.opencolor.ai/home/hero-unicorn.webp",alt:"Cute unicorn coloring page made with OpenColor"},{src:"https://images.opencolor.ai/home/hero-dino.webp",alt:"Happy baby dinosaur coloring page made with OpenColor"},{src:"https://images.opencolor.ai/home/hero-cat.webp",alt:"Round sleeping cat coloring page made with OpenColor"},{src:"https://images.opencolor.ai/home/hero-rocket.webp",alt:"Smiling rocket coloring page made with OpenColor"}];function c(e){let t,r,o,c,x,u,h,p,g,f,b=(0,a.c)(26),{section:j}=e,{user:v}=(0,i.U)(),N=j.eyebrow??"Free AI Coloring Page Generator",y=j.title??"Text & Photo to Coloring Pages Generator, for Free",w=j.subtitle??"Turn your words and photos into clean, printable coloring pages in seconds â free and online with OpenColor.AI. No design skills, nothing to install.",_=j.ctaPrimary??"Generate",k=j.ctaPrimarySigned??"Continue Creating",S=j.ctaSecondary??"Browse free coloring pages",C=j.ctaPrimaryUrl??"/sign-in",z=j.ctaPrimarySignedUrl??"/dashboard/create",L=j.ctaSecondaryUrl??"/free-coloring-pages",A=j.images??d;b[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsxs)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",children:[(0,s.jsx)("div",{className:"absolute -left-24 -top-24 h-96 w-96 rounded-full bg-primary/15 blur-3xl"}),(0,s.jsx)("div",{className:"absolute -right-24 top-24 h-80 w-80 rounded-full bg-accent/50 blur-3xl"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-1/3 h-72 w-72 rounded-full bg-primary/10 blur-3xl"})]}),b[0]=t):t=b[0],b[1]!==N?(r=(0,s.jsx)("span",{className:"inline-flex items-center gap-2 rounded-full border-2 border-primary/20 bg-card px-4 py-1.5 text-sm font-semibold text-primary shadow-sm",children:N}),b[1]=N,b[2]=r):r=b[2],b[3]!==y?(o=(0,s.jsx)("h1",{className:"mx-auto mt-6 max-w-4xl font-display text-5xl font-bold leading-[1.05] tracking-tight text-foreground md:text-7xl",children:y}),b[3]=y,b[4]=o):o=b[4],b[5]!==w?(c=(0,s.jsx)("p",{className:"mx-auto mt-6 max-w-xl text-lg text-muted-foreground md:text-xl",children:w}),b[5]=w,b[6]=c):c=b[6];let $=v?z:C,P=v?k:_;return b[7]!==$||b[8]!==P?(x=(0,s.jsx)(l.N_,{"data-slot":"button",className:`${n} bg-primary text-primary-foreground hover:bg-primary/90 rounded-md has-[>svg]:px-4 h-14 px-8 text-base shadow-md`,href:$,children:P}),b[7]=$,b[8]=P,b[9]=x):x=b[9],b[10]!==S||b[11]!==L?(u=(0,s.jsx)(l.N_,{"data-slot":"button",className:`${n} bg-secondary text-secondary-foreground hover:bg-secondary/80 rounded-md has-[>svg]:px-4 h-14 px-8 text-base`,href:L,children:S}),b[10]=S,b[11]=L,b[12]=u):u=b[12],b[13]!==x||b[14]!==u?(h=(0,s.jsxs)("div",{className:"mt-9 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[x,u]}),b[13]=x,b[14]=u,b[15]=h):h=b[15],b[16]!==A?(p=A.map(m),b[16]=A,b[17]=p):p=b[17],b[18]!==p?(g=(0,s.jsx)("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-5",children:p}),b[18]=p,b[19]=g):g=b[19],b[20]!==g||b[21]!==r||b[22]!==o||b[23]!==c||b[24]!==h?(f=(0,s.jsxs)("section",{className:"relative overflow-hidden bg-background",children:[t,(0,s.jsxs)("div",{className:"relative container mx-auto px-4 pb-20 pt-16 text-center md:pt-20",children:[r,o,c,h,g]})]}),b[20]=g,b[21]=r,b[22]=o,b[23]=c,b[24]=h,b[25]=f):f=b[25],f}function m(e,t){return(0,s.jsx)("div",{className:o[t%o.length],children:(0,s.jsx)("img",{src:e.src,alt:e.alt,className:"h-44 w-44 rounded-[1.75rem] border-4 border-card bg-card object-cover shadow-xl md:h-52 md:w-52"})},t)}},80126:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SubscribeCoverCollage:()=>x});var s=r(62219),a=r(30363),l=r(3785),i=r(31600),n=r(20987),o=r(83391),d=r(23490),c=r(10993);let m=["top-6 left-[4%] size-24 -rotate-6","top-10 left-[19%] size-16 rotate-3","to
1p-8 right-[5%] size-28 rotate-6","bottom-8 left-[6%] size-28 rotate-3","bottom-12 right-[18%] size-16 -rotate-3","bottom-6 right-[4%] size-24 -rotate-6"];function x({section:e}){let[t,r]=(0,a.useState)(""),[x,u]=(0,a.useState)(!1),h=e.items??[],p=m.map((t,r)=>h[r]?.image?.src||e.image?.src).filter(Boolean),g=async()=>{if(t&&e.submit?.action)try{u(!0);let r=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:t})});if(!r.ok)throw Error(`request failed with status ${r.status}`);let{code:s,message:a}=await r.json();if(0!==s)throw Error(a);u(!1),a&&o.oR.success(a)}catch(e){u(!1),o.oR.error(e.message||"subscribe failed")}};return(0,s.jsx)("section",{id:e.id||e.name,className:(0,c.cn)("py-16 md:py-24",e.className),children:(0,s.jsx)("div",{className:"container px-6",children:(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-3xl border border-border bg-muted/30 px-6 py-14 md:px-12 md:py-24",children:[(0,s.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 hidden md:block",children:p.map((e,t)=>(0,s.jsx)("img",{src:e,alt:"",loading:"lazy",className:(0,c.cn)("absolute aspect-square rounded-xl border border-border object-cover shadow-lg",m[t])},t))}),(0,s.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 left-1/2 hidden size-[460px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-background opacity-80 blur-3xl md:block"}),p.length>0&&(0,s.jsx)("div",{"aria-hidden":!0,className:"mb-8 flex gap-3 overflow-x-auto pb-1 md:hidden",children:p.map((e,t)=>(0,s.jsx)("img",{src:e,alt:"",loading:"lazy",className:"size-16 shrink-0 rounded-lg border border-border object-cover"},t))}),(0,s.jsx)("div",{className:"relative z-10 mx-auto max-w-xl",children:(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-8 text-center shadow-xl md:p-10",children:[e.label&&(0,s.jsx)("p",{className:"mb-4 text-xs font-medium tracking-[0.14em] text-muted-foreground uppercase",children:e.label}),e.title&&(0,s.jsx)("h2",{className:"text-2xl font-semibold tracking-tight text-balance text-foreground sm:text-3xl",children:e.title}),e.description&&(0,s.jsx)("p",{className:"mt-3 text-base/7 text-muted-foreground",children:e.description}),(0,s.jsxs)("div",{className:"mt-8",children:[(0,s.jsxs)("div",{className:"relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-(--radius) border border-border bg-background pe-2 text-left has-[input:focus]:ring-2 has-[input:focus]:ring-border",children:[(0,s.jsx)(l.A,{className:"pointer-events-none absolute inset-y-0 left-4 my-auto size-5 text-muted-foreground"}),(0,s.jsx)("input",{placeholder:e.submit?.input?.placeholder||"Enter your email",className:"h-12 w-full bg-transparent ps-11 text-foreground focus:outline-none",type:"email",required:!0,"aria-required":"true",value:t,onChange:e=>r(e.target.value)}),e.submit?.button&&(0,s.jsxs)(d.$,{"aria-label":e.submit.button.title||"submit",className:"rounded-(--radius)",onClick:g,disabled:x,type:"submit",children:[x?(0,s.jsx)(i.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"hidden sm:block",children:e.submit.button.title}),(0,s.jsx)(n.A,{className:"relative mx-auto size-5 sm:hidden",strokeWidth:2})]})]}),e.tip&&(0,s.jsx)("p",{className:"mt-3 text-xs/5 text-muted-foreground",children:e.tip})]})]})})]})})})}},81684:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Testimonials:()=>n});var s=r(62219),a=r(78253),l=r(72194),i=r(39524);function n(e){let t,r,l,n,d,c,m,x=(0,a.c)(18),{section:u,className:h}=e,p=`py-16 md:py-24 ${u.className} ${h}`;return x[0]!==u.title?(t=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-normal tracking-tight md:text-4xl",children:u.title}),x[0]=u.title,x[1]=t):t=x[1],x[2]!==u.description?(r=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:u.description}),x[2]=u.description,x[3]=r):r=x[3],x[4]!==t||x[5]!==r?(l=(0,s.jsx)(i.i,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[t,r]})}),x[4]=t,x[5]=r,x[6]=l):l=x[6],x[7]!==u.items?(n=u.items?.map((e,t)=>(0,s.jsx)(o,{item:e},t)),x[7]=u.items,x[8]=n):n=x[8],x[9]!==n?(d=(0,s.jsx)(i.i,{delay:.2,children:(0,s.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,s.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-ss-none lg:*:nth-2:rounded-ee-none lg:*:nth-3:rounded-s-none lg:*:nth-4:rounded-e-none lg:*:nth-5:rounded-ss-none lg:*:nth-5:rounded-ee-none lg:*:nth-6:rounded-b-none",children:n})})}),x[9]=n,x[10]=d):d=x[10],x[11]!==l||x[12]!==d?(c=(0,s.jsxs)("div",{className:"container",children:[l,d]}),x[11]=l,x[12]=d,x[13]=c):c=x[13],x[14]!==u.id||x[15]!==p||x[16]!==c?(m=(0,s.jsx)("section",{id:u.id,className:p,children:c}),x[14]=u.id,x[15]=p,x[16]=c,x[17]=m):m=x[17],m}function o(e){let{item:t}=e;
1return(0,s.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,s.jsx)("p",{className:'text-foreground self-end text-balance before:me-1 before:content-["\\201C"] after:ms-1 after:content-["\\201D"]',children:t.quote||t.description}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"ring-foreground/10 aspect-square size-9 overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,s.jsx)(l.oD,{src:t.image?.src||t.avatar?.src||"",alt:t.image?.alt||t.avatar?.alt||t.name||"",className:"h-full w-full object-cover"})}),(0,s.jsxs)("h3",{className:"sr-only",children:[t.name,", ",t.role||t.title]}),(0,s.jsxs)("div",{className:"space-y-px",children:[(0,s.jsxs)("p",{className:"text-sm font-medium",children:[t.name," "]}),(0,s.jsx)("p",{className:"text-muted-foreground text-xs",children:t.role||t.title})]})]})]})}},83571:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lp3HeroPrompt:()=>m});var s=r(62219),a=r(78253),l=r(30363),i=r(95044),n=r(83391),o=r(44679),d=r(7138),c=r(24803);function m(e){let t,r,m,x,u,h,p,g,f,b,j,v,N,y,w,_,k,S,C,z,L,A=(0,a.c)(55),{section:$}=e,P=(0,o.rd)(),M=(0,o.a8)(),{user:I}=(0,d.U)(),[q,R]=(0,l.useState)("");A[0]!==$.image?(t=$.image??{},A[0]=$.image,A[1]=t):t=A[1];let T=t;A[2]!==$.tool?(r=$.tool??{},A[2]=$.tool,A[3]=r):r=A[3];let F=r;A[4]!==F.chips?(m=F.chips??[],A[4]=F.chips,A[5]=m):m=A[5];let E=m;A[6]!==M||A[7]!==q||A[8]!==P||A[9]!==I?(x=()=>{q.trim()?((0,c.M)({promptText:q.trim(),...(0,i.LL)(M)}),I?P.push("/dashboard/create?mode=text"):P.push(`/sign-in?callbackUrl=${encodeURIComponent("/dashboard/create?mode=text")}`)):n.oR.info("Please describe what you want to color")},A[6]=M,A[7]=q,A[8]=P,A[9]=I,A[10]=x):x=A[10];let U=x;A[11]!==$.title?(u=(0,s.jsx)("h1",{className:"mb-4 text-4xl font-extrabold leading-tight text-foreground md:text-5xl",children:$.title}),A[11]=$.title,A[12]=u):u=A[12],A[13]!==$.description?(h=(0,s.jsx)("p",{className:"mx-auto max-w-3xl text-lg font-light text-muted-foreground md:text-xl",children:$.description}),A[13]=$.description,A[14]=h):h=A[14],A[15]!==u||A[16]!==h?(p=(0,s.jsxs)("div",{className:"mb-10 text-center",children:[u,h]}),A[15]=u,A[16]=h,A[17]=p):p=A[17];let D="right"===$.image_position?"flex flex-col items-center gap-8 md:items-center md:flex-row-reverse":"flex flex-col items-center gap-8 md:items-center md:flex-row";return A[18]!==T.alt||A[19]!==T.src?(g=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsx)("div",{className:"aspect-[3/2] w-full overflow-hidden rounded-3xl border border-border bg-card shadow-lg",children:(0,s.jsx)("img",{src:T.src,alt:T.alt,width:"2016",height:"1344",className:"h-full w-full object-contain",loading:"eager",fetchPriority:"high"})})}),A[18]=T.alt,A[19]=T.src,A[20]=g):g=A[20],A[21]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",className:"h-5 w-5",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"})})}),A[21]=f):f=A[21],A[22]!==F.title?(b=(0,s.jsx)("h2",{className:"text-lg font-bold leading-tight text-foreground",children:F.title}),A[22]=F.title,A[23]=b):b=A[23],A[24]!==F.description?(j=(0,s.jsx)("p",{className:"text-xs font-light text-muted-foreground",children:F.description}),A[24]=F.description,A[25]=j):j=A[25],A[26]!==b||A[27]!==j?(v=(0,s.jsxs)("div",{className:"mb-5 flex items-center gap-2",children:[f,(0,s.jsxs)("div",{children:[b,j]})]}),A[26]=b,A[27]=j,A[28]=v):v=A[28],A[29]===Symbol.for("react.memo_cache_sentinel")?(N=e=>R(e.target.value),A[29]=N):N=A[29],A[30]!==q||A[31]!==F.placeholder?(y=(0,s.jsx)("textarea",{rows:3,placeholder:F.placeholder,value:q,onChange:N,className:"w-full rounded-2xl border-2 border-border p-4 font-light text-foreground placeholder-gray-400 outline-none transition-colors focus:ring focus:border-primary focus:ring-primary/20"}),A[30]=q,A[31]=F.placeholder,A[32]=y):y=A[32],A[33]!==E?(w=E.length>0&&(0,s.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:E.map((e,t)=>(0,s.jsx)("button",{type:"button",onClick:()=>R(e),className:"rounded-full border border-border bg-card px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:border-primary/60 hover:bg-primary/10 hover:text-primary",children:e},t))}),A[33]=E,A[34]=w):w=A[34],A[35]!==y||A[36]!==w?(_=(0,s.jsxs)("div",{className:"mb-5",children:[y,w]}),A[35]=y,A[36]=w,A[37]=_):_=A[37],A[38]!==U||A[39]!==F.button_text?(k=(0,s.jsx)("button",{type:"button",onClick:U,className:"w-full rounded-2xl px-6 py-4 text-center font-semibold text-white shadow-lg transition duration-200 ease-in-out hover:shadow-xl hover:brightness-110 focus:ring-4 active:scale-[0.99] bg-primary focus:ring-primary/30",children:F.button_text}),A[38]=U,A[39]=F.button_text,A[40]=k):k=A[40],A[41]!==F.footnote?(S=(0,s.jsx)("p",{className:"mt-3 text-center text-xs font-light text-muted-foreground",children:F.footnote}),A[41]=F.footnote,A[42]=S):S=A[42],A[43]!==v||A[44]!==_||A[45]!==k||A[46]!==S?(C=(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsxs)("div",{className:"rounded-3xl border border-border bg-card p-6 shadow-xl ring-1 ring-gray-900/5 sm:p-8",children:[v,_,k,S]})}),A[43]=v,A[44]=_,A[45]=k,A[46]=S,A[47]=C):C=A[47],A[48]!==C||A[49]!==D||A[50]!==g?(z=(0,s.jsxs)("div",{className:D,children:[g,C]}),A[48]=C,A[49]=D,A[50]=g,A[51]=z):z=A[51],A[52]!==z||A[53]!==p?(L=(0,s.jsx)("section",{id:"top",className:"relative overflow-hidden bg-gradient-to-b from-primary/5 to-white",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-6xl px-4 py-14 md:py-20",children:[p,z]})}),A[52]=z,A[53]=p,A[54]=L):L=A[54],L}},83921:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lp4PromptBuilder:()=>c});var s=r(62219),a=r(30363),l=r(83391),i=r(44679),n=r(7138),o=r(24803),d=r
1(10993);function c({section:e}){let t=(0,i.rd)(),{user:r}=(0,n.U)(),c=(e.fields??[]).filter(e=>e&&Array.isArray(e.options)&&e.options.length>0),m=e.subject_presets??[],[x,u]=(0,a.useState)(m[0]?.text??""),[h,p]=(0,a.useState)(()=>Object.fromEntries(c.map(e=>[e.key,e.options[0].value]))),[g,f]=(0,a.useState)(!1),b=(0,a.useMemo)(()=>{let t={subject:x.trim()};c.forEach(e=>{t[e.key]=e.options.find(t=>t.value===h[e.key])?.text||""});let r=e.template||"";return r?r.replace(/\{(\w+)\}/g,(e,r)=>t[r]??""):[t.subject,...c.map(e=>t[e.key])].filter(Boolean).join(" ")},[c,h,x,e.template]),j=async()=>{try{await navigator.clipboard.writeText(b),f(!0),setTimeout(()=>f(!1),1600),l.oR.success(e.copied_toast||"Prompt copied")}catch{l.oR.error(e.copy_failed_toast||"Could not copy, please select the text")}};return(0,s.jsx)("section",{id:e.anchor||"prompt-builder",className:(0,d.cn)("py-20",e.bg),children:(0,s.jsxs)("div",{className:"container mx-auto max-w-5xl px-4",children:[(0,s.jsxs)("div",{className:"mb-8 text-center",children:[(0,s.jsx)("h2",{className:"mb-4 text-3xl font-extrabold md:text-4xl",children:e.title}),e.description&&(0,s.jsx)("p",{className:"text-muted-foreground mx-auto max-w-3xl leading-relaxed",children:e.description})]}),(0,s.jsxs)("div",{className:"ring-gray-900/5 bg-card rounded-2xl p-6 shadow-sm ring-1 md:p-8",children:[(0,s.jsxs)("label",{className:"block",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:e.subject_label}),(0,s.jsx)("input",{value:x,onChange:e=>u(e.target.value),placeholder:e.subject_placeholder,className:"border-border focus:ring-primary/30 mt-2 w-full rounded-xl border bg-transparent px-4 py-2.5 text-sm outline-none focus:ring"})]}),m.length>0&&(0,s.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:m.map(e=>{let t;return(0,s.jsx)("button",{type:"button",onClick:()=>u(e.text),className:(t=x===e.text,(0,d.cn)("rounded-full border px-3 py-1 text-sm font-medium transition",t?"border-primary bg-primary text-primary-foreground":"border-border bg-card text-muted-foreground hover:text-foreground")),children:e.label},e.text)})}),(0,s.jsx)("div",{className:"mt-6 grid gap-5 sm:grid-cols-2",children:c.map(e=>(0,s.jsxs)("label",{className:"block",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:e.label}),(0,s.jsx)("select",{value:h[e.key],onChange:t=>p(r=>({...r,[e.key]:t.target.value})),className:"border-border bg-muted mt-2 w-full rounded-xl border px-3 py-2.5 text-sm",children:e.options.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))})]},e.key))}),(0,s.jsxs)("div",{className:"mt-7",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:e.output_label}),(0,s.jsx)("pre",{className:"border-border bg-muted/50 mt-2 max-h-56 overflow-auto rounded-xl border p-4 text-sm leading-relaxed whitespace-pre-wrap",children:b})]}),(0,s.jsxs)("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[(0,s.jsx)("button",{type:"button",onClick:j,disabled:!b,className:"border-border bg-background hover:bg-muted flex-1 rounded-lg border px-4 py-2.5 text-sm font-semibold transition disabled:opacity-50",children:g?e.copied_label||"Copied":e.copy_label||"Copy"}),(0,s.jsx)("button",{type:"button",onClick:()=>{(0,o.M)({promptText:b});let e="/dashboard/create?mode=text";r?t.push(e):t.push(`/sign-in?callbackUrl=${encodeURIComponent(e)}`)},disabled:!b,className:"bg-primary text-primary-foreground flex-1 rounded-lg px-4 py-2.5 text-sm font-semibold transition hover:opacity-90 disabled:opacity-50",children:e.generate_label||"Generate this"})]}),e.note&&(0,s.jsx)("p",{className:"text-muted-foreground mt-4 text-xs leading-relaxed",children:e.note})]}),e.footnote&&(0,s.jsx)("p",{className:"text-muted-foreground mt-6 text-center text-sm",children:e.footnote})]})})}},88032:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesGrid9:()=>j});var s=r(62219),a=r(78253),l=r(72260),i=r(58037),n=r(71789),o=r(96926),d=r(90176),c=r(22072),m=r(72194),x=r(10993);function u(e){let t=(0,a.c)(28),{type:r,iconName:l}=e;switch(r){case"icon":{let e,r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"bg-primary/5 absolute inset-0 animate-pulse rounded-full"}),t[0]=e):e=t[0],t[1]!==l?(r=(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsxs)("div",{className:"bg-primary/10 border-primary/20 relative flex h-32 w-32 items-center justify-center rounded-full border",children:[e,l?(0,s.jsx)("span",{className:"text-primary relative",children:(0,s.jsx)(m.LK,{name:l,size:48})}):(0,s.jsx)(i.A,{className:"text-primary relative",size:48})]})}),t[1]=l,t[2]=r):r=t[2],r}case"collage":{let e;return t[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"absolute inset-0 grid grid-cols-3 gap-2 p-4",children:Array.from({length:6}).map(f)}),t[3]=e):e=t[3],e}case"social":{let e,r,a;return t[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("div",{className:"bg-primary/15 text-primary border-primary/30 flex h-16 w-16 -rotate-6 flex-col items-center justify-center gap-1 rounded-xl border shadow-lg",children:[(0,s.jsx)(n.A,{size:20}),(0,s.jsx)("span",{className:"text-[10px] font-bold",children:"5k"})]}),t[4]=e):e=t[4],t[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsxs)("div",{className:"bg-foreground
1/10 text-foreground border-foreground/15 flex h-14 w-14 rotate-6 flex-col items-center justify-center gap-1 rounded-xl border shadow-lg",children:[(0,s.jsx)(o.A,{size:18}),(0,s.jsx)("span",{className:"text-[10px] font-bold",children:"1k"})]}),t[5]=r):r=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center gap-3",children:[e,r,(0,s.jsxs)("div",{className:"bg-primary/10 text-primary border-primary/20 flex h-14 w-14 flex-col items-center justify-center gap-1 rounded-xl border shadow-lg",children:[(0,s.jsx)(d.A,{size:18}),(0,s.jsx)("span",{className:"text-[10px] font-bold",children:"13k"})]})]}),t[6]=a):a=t[6],a}case"controls":{let e,r,a;return t[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"bg-foreground/10 h-1 w-full overflow-hidden rounded-full",children:(0,s.jsx)("div",{className:"bg-primary h-full w-2/3"})}),t[7]=e):e=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("div",{className:"bg-foreground
1/10 h-1 w-full overflow-hidden rounded-full",children:(0,s.jsx)("div",{className:"bg-primary/60 h-full w-1/2"})}),t[8]=r):r=t[8],t[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)("div",{className:"absolute inset-0 flex flex-col justify-center p-6",children:(0,s.jsxs)("div",{className:"bg-background/40 border-foreground/10 space-y-3 rounded-xl border p-4 backdrop-blur-md",children:[e,r,(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("div",{className:"bg-foreground/10 h-4 w-12 rounded-md"}),(0,s.jsx)("div",{className:"bg-primary/30 h-4 w-16 rounded-md"})]})]})}),t[9]=a):a=t[9],a}case"rights":{let e,r;return t[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"from-primary/30 to-primary/10 border-foreground/10 h-full w-full rounded-xl border bg-gradient-to-br"}),t[10]=e):e=t[10],t[11]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsxs)("div",{className:"relative h-24 w-24",children:[e,(0,s.jsx)("div",{className:"bg-primary text-primary-foreground absolute -right-3 -bottom-3 flex h-12 w-12 items-center justify-center rounded-full shadow-xl",children:(0,s.jsx)(n.A,{size:20})})]})}),t[11]=r):r=t[11],r}case"workspace":{let e,r;return t[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("div",{className:"bg-foreground
1/5 flex h-4 items-center gap-1 px-2",children:[(0,s.jsx)("div",{className:"bg-foreground/30 h-1.5 w-1.5 rounded-full"}),(0,s.jsx)("div",{className:"bg-foreground/30 h-1.5 w-1.5 rounded-full"}),(0,s.jsx)("div",{className:"bg-foreground/30 h-1.5 w-1.5 rounded-full"})]}),t[12]=e):e=t[12],t[13]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("div",{className:"absolute inset-0 p-4",children:(0,s.jsxs)("div",{className:"bg-background/50 border-foreground/10 relative h-full w-full overflow-hidden rounded-xl border",children:[e,(0,s.jsxs)("div",{className:"space-y-2 p-3",children:[(0,s.jsx)("div",{className:"bg-primary/30 h-2 w-full rounded"}),(0,s.jsx)("div",{className:"bg-primary/20 h-2 w-3/4 rounded"}),(0,s.jsx)("div",{className:"bg-foreground/15 h-2 w-1/2 rounded"}),(0,s.jsx)("div",{className:"bg-primary/25 h-2 w-2/3 rounded"})]})]})}),t[13]=r):r=t[13],r}case"maker":{let e;return t[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center gap-2 p-4",children:[(0,s.jsx)("div",{className:"bg-primary/20 text-primary border-primary/30 flex h-12 w-20 items-center justify-center rounded-lg border text-[10px] font-bold shadow-lg",children:"CHORUS"}),(0,s.jsx)("div",{className:"bg-primary text-primary-foreground flex h-16 w-20 -translate-y-3 items-center justify-center rounded-lg text-[10px] font-bold shadow-lg",children:"VERSE"}),(0,s.jsx)("div",{className:"bg-primary/30 text-primary border-primary/40 flex h-12 w-20 items-center justify-center rounded-lg border text-[10px] font-bold shadow-lg",children:"BRIDGE"})]}),t[14]=e):e=t[14],e}case"cards":{let e,r,a;return t[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"bg-foreground
1/10 border-foreground/15 absolute inset-0 -rotate-12 rounded-xl border"}),r=(0,s.jsx)("div",{className:"bg-foreground/15 border-foreground/20 absolute inset-0 rotate-6 rounded-xl border"}),t[15]=e,t[16]=r):(e=t[15],r=t[16]),t[17]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsxs)("div",{className:"relative h-40 w-32",children:[e,r,(0,s.jsx)("div",{className:"from-primary/40 to-primary/20 border-primary/30 absolute inset-0 flex items-center justify-center rounded-xl border bg-gradient-to-br shadow-xl",children:(0,s.jsx)(c.A,{className:"text-primary",size:32})})]})}),t[17]=a):a=t[17],a}case"stems":{let e,r,a,l,i,n,o;return t[18]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("span",{className:"text-primary-foreground text-[8px] font-bold",children:"VOCALS"}),t[18]=e):e=t[18],t[19]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsxs)("div",{className:"bg-primary flex h-6 w-full items-center justify-between rounded-md px-3",children:[e,(0,s.jsx)("div",{className:"flex gap-0.5",children:Array.from({length:4}).map(g)})]}),t[19]=r):r=t[19],t[20]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)("span",{className:"text-primary-foreground text-[8px] font-bold",children:"BASS"}),t[20]=a):a=t[20],t[21]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsxs)("div",{className:"bg-primary/60 flex h-6 w-4/5 items-center justify-between rounded-md px-3",children:[a,(0,s.jsx)("div",{className:"flex gap-0.5",children:Array.from({length:3}).map(p)})]}),t[21]=l):l=t[21],t[22]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("span",{className:"text-primary-foreground text-[8px] font-bold",children:"DRUMS"}),t[22]=i):i=t[22],t[23]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsxs)("div",{className:"bg-primary/40 flex h-6 w-3/4 items-center justify-between rounded-md px-3",children:[i,(0,s.jsx)("div",{className:"flex gap-0.5",children:Array.from({length:5}).map(h)})]}),t[23]=n):n=t[23],t[24]!==r||t[25]!==l||t[26]!==n?(o=(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-center gap-3 p-8",children:[r,l,n]}),t[24]=r,t[25]=l,t[26]=n,t[27]=o):o=t[27],o}default:return null}}function h(e,t){return(0,s.jsx)("div",{className:"bg-primary-foreground/40 h-2 w-1 rounded-full"},t)}function p(e,t){return(0,s.jsx)("div",{className:"bg-primary-foreground/40 h-2 w-1 rounded-full"},t)}function g(e,t){return(0,s.jsx)("div",{className:"bg-primary-foreground/40 h-2 w-1 rounded-full"},t)}
1function f(e,t){return(0,s.jsx)("div",{className:"bg-foreground/10 border-foreground/5 rounded-lg border",style:{opacity:.4+13*t%50/100}},t)}function b(e){let t,r,i,n,o,d,c,m,h,p,g=(0,a.c)(20),{item:f,index:b,tile:j}=e,v=f.type??"icon";g[0]===Symbol.for("react.memo_cache_sentinel")?(t={opacity:0,y:20},r={opacity:1,y:0},i={once:!0},g[0]=t,g[1]=r,g[2]=i):(t=g[0],r=g[1],i=g[2]);let N=Math.min(.1*b,.5);g[3]!==N?(n={delay:N},g[3]=N,g[4]=n):n=g[4],g[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,x.cn)("bg-card border-foreground/[0.06] hover:border-foreground/15 group flex flex-col rounded-[2rem] border p-8 transition-colors"),g[5]=o):o=g[5],g[6]!==f.title?(d=(0,s.jsx)("h3",{className:"text-foreground text-xl font-bold tracking-tight",children:f.title}),g[6]=f.title,g[7]=d):d=g[7],g[8]!==f.description?(c=(0,s.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:f.description}),g[8]=f.description,g[9]=c):c=g[9],g[10]!==d||g[11]!==c?(m=(0,s.jsxs)("div",{className:"mb-12 space-y-4",children:[d,c]}),g[10]=d,g[11]=c,g[12]=m):m=g[12];let y=j?f.icon:void 0;return g[13]!==y||g[14]!==v?(h=(0,s.jsx)("div",{className:"bg-background/60 border-foreground
1/[0.04] relative mt-auto aspect-[4/3] w-full overflow-hidden rounded-xl border",children:(0,s.jsx)(u,{type:v,iconName:y})}),g[13]=y,g[14]=v,g[15]=h):h=g[15],g[16]!==h||g[17]!==n||g[18]!==m?(p=(0,s.jsxs)(l.P.div,{initial:t,whileInView:r,viewport:i,transition:n,className:o,children:[m,h]}),g[16]=h,g[17]=n,g[18]=m,g[19]=p):p=g[19],p}function j(e){let t,r,i,n,o,d,c,m,u,h,p,g,f=(0,a.c)(29),{section:j,className:v}=e;f[0]!==j.items?(t=j.items??[],f[0]=j.items,f[1]=t):t=f[1];let N=t,y="tile"===j.icon_variant,w=j.id;if(f[2]!==v||f[3]!==j.className?(r=(0,x.cn)("py-16 md:py-24",j.className,v),f[2]=v,f[3]=j.className,f[4]=r):r=f[4],f[5]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:0,y:20},n={opacity:1,y:0},o={once:!0},f[5]=i,f[6]=n,f[7]=o):(i=f[5],n=f[6],o=f[7]),f[8]!==j.title?(d=(0,s.jsx)("h2",{className:"text-foreground text-4xl font-bold tracking-tight md:text-6xl md:leading-[1.05]",children:j.title}),f[8]=j.title,f[9]=d):d=f[9],f[10]!==j.description?(c=j.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-6 max-w-2xl text-base md:text-lg",children:j.description}),f[10]=j.description,f[11]=c):c=f[11],f[12]!==d||f[13]!==c?(m=(0,s.jsxs)(l.P.div,{initial:i,whileInView:n,viewport:o,className:"mb-16 max-w-4xl",children:[d,c]}),f[12]=d,f[13]=c,f[14]=m):m=f[14],f[15]!==N||f[16]!==y){let e;f[18]!==y?(e=(e,t)=>(0,s.jsx)(b,{item:e,index:t,tile:y},t),f[18]=y,f[19]=e):e=f[19],u=N.map(e),f[15]=N,f[16]=y,f[17]=u}else u=f[17];return f[20]!==u?(h=(0,s.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:u}),f[20]=u,f[21]=h):h=f[21],f[22]!==h||f[23]!==m?(p=(0,s.jsxs)("div",{className:"container",children:[m,h]}),f[22]=h,f[23]=m,f[24]=p):p=f[24],f[25]!==j.id||f[26]!==p||f[27]!==r?(g=(0,s.jsx)("section",{id:w,className:r,children:p}),f[25]=j.id,f[26]=p,f[27]=r,f[28]=g):g=f[28],g}},88529:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Stats:()=>i});var s=r(62219),a=r(78253),l=r(39524);function i(e){let t,r,i,o,d,c,m,x=(0,a.c)(18),{section:u,className:h}=e,p=`py-12 md:py-24 ${u.className} ${h}`;return x[0]!==u.title?(t=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:u.title}),x[0]=u.title,x[1]=t):t=x[1],x[2]!==u.description?(r=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:u.description}),x[2]=u.description,x[3]=r):r=x[3],x[4]!==t||x[5]!==r?(i=(0,s.jsx)(l.i,{children:(0,s.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[t,r]})}),x[4]=t,x[5]=r,x[6]=i):i=x[6],x[7]!==u.items?(o=u.items?.map(n),x[7]=u.items,x[8]=o):o=x[8],x[9]!==o?(d=(0,s.jsx)(l.i,{delay:.2,children:(0,s.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})}),x[9]=o,x[10]=d):d=x[10],x[11]!==i||x[12]!==d?(c=(0,s.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[i,d]}),x[11]=i,x[12]=d,x[13]=c):c=x[13],x[14]!==u.id||x[15]!==p||x[16]!==c?(m=(0,s.jsx)("section",{id:u.id,className:p,children:c}),x[14]=u.id,x[15]=p,x[16]=c,x[17]=m):m=x[17],m}function n(e,t){return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,s.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,s.jsx)("p",{children:e.description})]},t)}},89832:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesAccordionFlat:()=>c});var s=r(62219),a=r(78253),l=r(30363),i=r(15530),n=r(40338),o=r(72194),d=r(10993);function c(e){let t,r,c,m,x,u,h,p=(0,a.c)(25),{section:g}=e,[f,b]=(0,l.useState)(0);p[0]!==g.items?(t=g.items??[],p[0]=g.items,p[1]=t):t=p[1];let j=t,v=g.image?.src||"",N=g.image?.alt||g.title||"",y=g.id||g.name;if(p[2]!==g.className?(r=(0,d.cn)("py-16 md:py-24",g.className),p[2]=g.className,p[3]=r):r=p[3],p[4]!==g.description||p[5]!==g.title?(c=(g.title||g.description)&&(0,s.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[g.title&&(0,s.jsx)("h2",{className:"text-3xl font-semibold tracking-tight text-balance text-foreground sm:text-4xl",children:g.title}),g.description&&(0,s.jsx)("p",{className:"mt-4 text-base/7 text-muted-foreground",children:g.description})]}),p[4]=g.description,p[5]=g.title,p[6]=c):c=p[6],p[7]!==N||p[8]!==v||p[9]!==j||p[10]!==f){let e;p[12]!==N||p[13]!==v||p[14]!==f?(e=(e,t)=>{let r=f===t,a=e.image?.src||v,l=e.image?.alt||e.title||N;return(0,s.jsxs)("div",{className:"py-2",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>b(r?null:t),"aria-expanded":r,className:"flex w-full items-center justify-between gap-4 py-5 text-start transition-colors hover:text-primary",children:[(0,s.jsxs)("span",{className:"flex items-center gap-3 text-xl font-semibold text-foreground sm:text-2xl",children:[e.icon&&(0,s.jsx)(o.LK,{name:e.icon,size:24,className:"flex-none text-primary"}
1),e.title]}),(0,s.jsx)("span",{className:"flex size-8 flex-none items-center justify-center rounded-full border border-border text-muted-foreground",children:r?(0,s.jsx)(i.A,{"aria-hidden":"true",className:"size-4"}):(0,s.jsx)(n.A,{"aria-hidden":"true",className:"size-4"})})]}),(0,s.jsx)("div",{className:(0,d.cn)("grid transition-all duration-300 ease-out",r?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsxs)("div",{className:"pb-8",children:[e.description&&(0,s.jsx)("p",{className:"max-w-2xl text-base/7 text-muted-foreground",children:e.description}),a&&(0,s.jsx)("div",{className:"mt-6 aspect-[3/2] w-full overflow-hidden rounded-xl border border-border bg-muted",children:(0,s.jsx)("img",{src:a,alt:l,loading:"lazy",decoding:"async",className:"size-full object-cover"})})]})})})]},e.title||t)},p[12]=N,p[13]=v,p[14]=f,p[15]=e):e=p[15],m=j.map(e),p[7]=N,p[8]=v,p[9]=j,p[10]=f,p[11]=m}else m=p[11];return p[16]!==m?(x=(0,s.jsx)("div",{className:"mx-auto mt-12 max-w-4xl divide-y divide-border md:mt-16",children:m}),p[16]=m,p[17]=x):x=p[17],p[18]!==c||p[19]!==x?(u=(0,s.jsxs)("div",{className:"container px-6",children:[c,x]}),p[18]=c,p[19]=x,p[20]=u):u=p[20],p[21]!==y||p[22]!==r||p[23]!==u?(h=(0,s.jsx)("section",{id:y,className:r,children:u}),p[21]=y,p[22]=r,p[23]=u,p[24]=h):h=p[24],h}},93503:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CreditsPill:()=>p});var s=r(62219),a=r(78253),l=r(30363),i=r(84488),n=r(87992),o=r(60401),d=r(10993);function c(e){let t,r,l=(0,a.c)(4);return l[0]!==e?({...t}=e,l[0]=e,l[1]=t):t=l[1],l[2]!==t?(r=(0,s.jsx)(o.bL,{"data-slot":"popover",...t}),l[2]=t,l[3]=r):r=l[3],r}function m(e){let t,r,l=(0,a.c)(4);return l[0]!==e?({...t}=e,l[0]=e,l[1]=t):t=l[1],l[2]!==t?(r=(0,s.jsx)(o.l9,{"data-slot":"popover-trigger",...t}),l[2]=t,l[3]=r):r=l[3],r}function x(e){let t,r,l,i,n,c,m,x=(0,a.c)(14);x[0]!==e?({className:t,align:l,sideOffset:i,collisionPadding:n,...r}=e,x[0]=e,x[1]=t,x[2]=r,x[3]=l,x[4]=i,x[5]=n):(t=x[1],r=x[2],l=x[3],i=x[4],n=x[5]);let u=void 0===l?"start":l,h=void 0===i?8:i,p=void 0===n?16:n;return x[6]!==t?(c=(0,d.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-popover-content-available-height) w-72 origin-(--radix-popover-content-transform-origin) overflow-y-auto rounded-md border p-4 shadow-md outline-none",t),x[6]=t,x[7]=c):c=x[7],x[8]!==u||x[9]!==p||x[10]!==r||x[11]!==h||x[12]!==c?(m=(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{"data-slot":"popover-content",align:u,sideOffset:h,collisionPadding:p,className:c,...r})}),x[8]=u,x[9]=p,x[10]=r,x[11]=h,x[12]=c,x[13]=m):m=x[13],m}var u=r(7138),h=r(12261);function p(){let e,t,r,o,d,p,g,f,b,j=(0,a.c)(20),v=(0,n.c3)("tool.credits_card"),N=(0,n.kc)(),{user:y,fetchUserCredits:w}=(0,u.U)();if(j[0]!==w||j[1]!==y?(e=()=>{y&&null==y.credits&&w()},t=[y,w],j[0]=w,j[1]=y,j[2]=e,j[3]=t):(e=j[2],t=j[3]),(0,l.useEffect)(e,t),!y)return null;let _=y.credits?.remainingCredits??0;return j[4]!==N||j[5]!==_||j[6]!==v?(r=v("remaining",{remaining:N.number(_)}),j[4]=N,j[5]=_,j[6]=v,j[7]=r):r=j[7],j[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(i.A,{size:14,className:"text-primary"}),j[8]=o):o=j[8],j[9]!==N||j[10]!==_?(d=N.number(_),j[9]=N,j[10]=_,j[11]=d):d=j[11],j[12]!==d?(p=(0,s.jsx)("span",{className:"tabular-nums",children:d}),j[12]=d,j[13]=p):p=j[13],j[14]!==r||j[15]!==p?(g=(0,s.jsx)(m,{asChild:!0,children:(0,s.jsxs)("button",{type:"button","aria-label":r,className:"border-border bg-secondary text-foreground hover:bg-accent hidden cursor-pointer items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs font-bold transition-colors md:flex",children:[o,p]})}),j[14]=r,j[15]=p,j[16]=g):g=j[16],j[17]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(x,{align:"end",sideOffset:8,className:"w-72 p-0",children:(0,s.jsx)("div",{className:"[&>div]:mt-0 [&>div]:border-0",children:(0,s.jsx)(h.CreditsCard,{})})}),j[17]=f):f=j[17],j[18]!==g?(b=(0,s.jsxs)(c,{children:[g,f]}),j[18]=g,j[19]=b):b=j[19],b}},95044:(e,t,r)=>{"use strict";function s(e){let t,r,s,{style:a}
1=(r=((e||"").split("/").filter(Boolean).pop()||"").toLowerCase(),s=/^(photo|image|picture)-to-|^turn-my-picture/.test(r)?"photo":"text",/sketch/.test(r)?t="sketch":/line-art|line-drawing/.test(r)&&(t="line-art"),{mode:s,style:t});return a?{style:a}:{}}r.d(t,{LL:()=>s})},95677:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SubscribeIssuePreview:()=>m});var s=r(62219),a=r(30363),l=r(3785),i=r(31600),n=r(20987),o=r(83391),d=r(23490),c=r(10993);function m({section:e}){let t=e.items??[],[r,m]=(0,a.useState)(""),[x,u]=(0,a.useState)(!1),h=async()=>{if(r&&e.submit?.action)try{u(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:r})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:s,message:a}=await t.json();if(0!==s)throw Error(a);u(!1),a&&o.oR.success(a)}catch(e){u(!1),o.oR.error(e.message||"subscribe failed")}};return(0,s.jsx)("section",{id:e.id||e.name,className:(0,c.cn)("py-16 md:py-24",e.className),children:(0,s.jsxs)("div",{className:"container px-6",children:[(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[e.label&&(0,s.jsx)("p",{className:"text-xs font-medium tracking-[0.16em] uppercase text-muted-foreground",children:e.label}),e.title&&(0,s.jsx)("h2",{className:"mt-3 text-3xl font-semibold tracking-tight text-balance text-foreground sm:text-4xl",children:e.title}),e.description&&(0,s.jsx)("p",{className:"mt-4 text-base/7 text-muted-foreground",children:e.description})]}),t.length>0&&(0,s.jsx)("div",{className:"mx-auto mt-14 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3",children:t.map((e,t)=>(0,s.jsxs)("article",{className:"group flex flex-col rounded-2xl border border-border bg-card p-6 text-left transition-all duration-200 hover:-translate-y-1 hover:shadow-md",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[e.tag&&(0,s.jsx)("span",{className:"inline-flex items-center rounded-full border border-border px-2.5 py-0.5 text-xs font-medium text-muted-foreground",children:e.tag}),e.date&&(0,s.jsx)("time",{className:"text-xs text-muted-foreground tabular-nums",children:e.date})]}),e.title&&(0,s.jsx)("h3",{className:"mt-4 text-base font-semibold text-foreground",children:e.title}),(0,s.jsxs)("div",{className:"mt-5 space-y-2.5",children:[(0,s.jsx)("div",{className:"h-2 w-full rounded-full bg-secondary"}),(0,s.jsx)("div",{className:"h-2 w-11/12 rounded-full bg-secondary"}),(0,s.jsx)("div",{className:"h-2 w-3/5 rounded-full bg-secondary"})]})]},e.title||t))}),e.submit&&(0,s.jsxs)("div",{className:"mx-auto mt-14 max-w-xl",children:[(0,s.jsxs)("div",{className:"relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-2xl border border-border bg-background pe-3 shadow-sm has-[input:focus]:ring-2 has-[input:focus]:ring-ring",children:[(0,s.jsx)(l.A,{className:"pointer-events-none absolute inset-y-0 left-5 my-auto size-5 text-muted-foreground"}),(0,s.jsx)("input",{placeholder:e.submit.input?.placeholder||"",className:"h-14 w-full bg-transparent ps-12 text-foreground focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-invalid":!r,value:r,onChange:e=>m(e.target.value)}),e.submit.button&&(0,s.jsxs)(d.$,{"aria-label":"submit",onClick:h,disabled:x,type:"submit",children:[x?(0,s.jsx)(i.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}),(0,s.jsx)(n.A,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})]}),e.tip&&(0,s.jsx)("p",{className:"mt-3 text-center text-xs text-muted-foreground",children:e.tip})]})]})})}},96213:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tabs:()=>x});var s=r(62219),a=r(78253),l=r(30363),i=r(44679),n=r(70711),o=r(10993);let d=l.forwardRef(({className:e,children:t,...r},a)=>(0,s.jsxs)(n.bL,{ref:a,className:(0,o.cn)("relative overflow-hidden",e),...r,children:[(0,s.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:t}),(0,s.jsx)(c,{}),(0,s.jsx)(n.OK,{})]}));d.displayName=n.bL.displayName;let c=l.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,s.jsx)(n.VM,{ref:a,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),...r,children:(0,s.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})}));c.displayName=n.VM.displayName;var m=r(57170);function x(e){let t,r,n,x,p,g,f,b,j,v,N=(0,a.c)(22),{tabs:y,size:w}=e,_=(0,i.rd)();
1N[0]!==y?(t=y?.find(h)?.name||"",N[0]=y,N[1]=t):t=N[1];let[k,S]=(0,l.useState)(t);N[2]===Symbol.for("react.memo_cache_sentinel")?(r={},N[2]=r):r=N[2],(0,l.useState)(r),N[3]!==_||N[4]!==k||N[5]!==y?(n=()=>{if(k){let e=y?.find(e=>e.name===k)||{};e.url&&_.push(e.url)}},N[3]=_,N[4]=k,N[5]=y,N[6]=n):n=N[6],N[7]!==k?(x=[k],N[7]=k,N[8]=x):x=N[8],(0,l.useEffect)(n,x);let C="sm"===w&&"h-8";return N[9]!==C?(p=(0,o.cn)(C),N[9]=C,N[10]=p):p=N[10],N[11]!==y?(g=y.map(u),N[11]=y,N[12]=g):g=N[12],N[13]!==p||N[14]!==g?(f=(0,s.jsx)(m.j7,{className:p,children:g}),N[13]=p,N[14]=g,N[15]=f):f=N[15],N[16]!==f||N[17]!==k?(b=(0,s.jsx)("div",{className:"flex items-center space-x-2",children:(0,s.jsx)(m.tU,{value:k,onValueChange:S,children:f})}),N[16]=f,N[17]=k,N[18]=b):b=N[18],N[19]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsx)(c,{orientation:"horizontal",className:"invisible"}),N[19]=j):j=N[19],N[20]!==b?(v=(0,s.jsx)("div",{className:"relative mb-8",children:(0,s.jsxs)(d,{className:"w-full lg:max-w-none",children:[b,j]})}),N[20]=b,N[21]=v):v=N[21],v}function u(e,t){return(0,s.jsx)(m.Xi,{value:e.name||"",children:e.title},t)}function h(e){return e.is_active}},99341:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesAccordion:()=>u});var s=r(62219),a=r(78253),l=r(30363),i=r(71685),n=r(72260),o=r(72194),d=r(10993);let c=e=>{let t,r,l,i,o,c,m,x,u=(0,a.c)(28),{className:h,size:p,delay:g,duration:f,colorFrom:b,colorTo:j,transition:v,style:N,reverse:y,initialOffset:w,borderWidth:_}=e,k=void 0===p?50:p,S=void 0===f?6:f,C=void 0===b?"#ffaa40":b,z=void 0===j?"#9c40ff":j,L=void 0!==y&&y,A=void 0===w?0:w,$=`${void 0===_?1:_}px`;u[0]!==$?(t={"--border-beam-width":$},u[0]=$,u[1]=t):t=u[1];let P=t;u[2]!==h?(r=(0,d.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",h),u[2]=h,u[3]=r):r=u[3];let M=`rect(0 auto auto 0 round ${k}px)`;u[4]!==C||u[5]!==z||u[6]!==k||u[7]!==N||u[8]!==M?(l={width:k,offsetPath:M,"--color-from":C,"--color-to":z,...N},u[4]=C,u[5]=z,u[6]=k,u[7]=N,u[8]=M,u[9]=l):l=u[9];let I=l,q=`${A}%`;u[10]!==q?(i={offsetDistance:q},u[10]=q,u[11]=i):i=u[11],u[12]!==A||u[13]!==L?(o={offsetDistance:L?[`${100-A}%`,`${-A}%`]:[`${A}%`,`${100+A}%`]},u[12]=A,u[13]=L,u[14]=o):o=u[14];let R=-(void 0===g?0:g);return u[15]!==S||u[16]!==R||u[17]!==v?(c={repeat:1/0,ease:"linear",duration:S,delay:R,...v},u[15]=S,u[16]=R,u[17]=v,u[18]=c):c=u[18],u[19]!==r||u[20]!==I||u[21]!==i||u[22]!==o||u[23]!==c?(m=(0,s.jsx)(n.P.div,{className:r,style:I,initial:i,animate:o,transition:c}),u[19]=r,u[20]=I,u[21]=i,u[22]=o,u[23]=c,u[24]=m):m=u[24],u[25]!==P||u[26]!==m?(x=(0,s.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:P,children:m}),u[25]=P,u[26]=m,u[27]=x):x=u[27],x};var m=r(63388),x=r(39524);function u(e){let t,r,o,u,p,g,f,b,j,v,N,y,w,_,k,S,C,z,L,A,$=(0,a.c)(43),{section:P,className:M}=e,[I,q]=(0,l.useState)("item-1"),R=P.image?.src||"",T=P.image?.alt||P.title||"";$[0]!==P.items||$[1]!==R||$[2]!==T?(t={},P.items?.forEach((e,r)=>{let s=e.icon;t[`item-${r+1}`]={image:e.image?.src||(function(e){return!!e&&(e.startsWith("http")||e.startsWith("/")||e.startsWith("data:"))}(s)?s:"")||R||"",alt:e.image?.alt||e.title||T||""}}),$[0]=P.items,$[1]=R,$[2]=T,$[3]=t):t=$[3],$[4]!==M||$[5]!==P.className?(r=(0,d.cn)("overflow-x-hidden py-16 md:py-24",P.className,M),$[4]=M,$[5]=P.className,$[6]=r):r=$[6],$[7]!==P.title?(o=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:P.title}),$[7]=P.title,$[8]=o):o=$[8],$[9]!==P.description?(u=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:P.description}),$[9]=P.description,$[10]=u):u=$[10],$[11]!==o||$[12]!==u?(p=(0,s.jsx)(x.i,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[o,u]})}),$[11]=o,$[12]=u,$[13]=p):p=$[13],$[14]===Symbol.for("react.memo_cache_sentinel")?(g=e=>q(e),$[14]=g):g=$[14],$[15]!==P.items?(f=P.items?.map(h),$[15]=P.
1items,$[16]=f):f=$[16],$[17]!==I||$[18]!==f?(b=(0,s.jsx)(x.i,{delay:.1,direction:"left",children:(0,s.jsx)(m.Accordion,{type:"single",value:I,onValueChange:g,className:"w-full",children:f})}),$[17]=I,$[18]=f,$[19]=b):b=$[19],$[20]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsx)("div",{className:"absolute inset-0 right-0 ms-auto w-15 border-s bg-[repeating-linear-gradient(-45deg,var(--color-border),var(--color-border)_1px,transparent_1px,transparent_8px)]"}),$[20]=j):j=$[20];let F=`${I}-id`;return $[21]===Symbol.for("react.memo_cache_sentinel")?(v={opacity:0,y:6,scale:.98},N={opacity:1,y:0,scale:1},y={opacity:0,y:6,scale:.98},w={duration:.2},$[21]=v,$[22]=N,$[23]=y,$[24]=w):(v=$[21],N=$[22],y=$[23],w=$[24]),$[25]!==I||$[26]!==t?(_=t[I]?.image?(0,s.jsx)("img",{src:t[I].image,alt:t[I]?.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-left-top dark:mix-blend-lighten"}):(0,s.jsx)("div",{className:"bg-muted size-full"}),$[25]=I,$[26]=t,$[27]=_):_=$[27],$[28]!==_||$[29]!==F?(k=(0,s.jsx)("div",{className:"bg-background relative aspect-76/59 w-full min-w-0 rounded-xl sm:w-[calc(3/4*100%+3rem)]",children:(0,s.jsx)(i.N,{mode:"wait",children:(0,s.jsx)(n.P.div,{initial:v,animate:N,exit:y,transition:w,className:"size-full overflow-hidden rounded-xl border shadow-md",children:_},F)})}),$[28]=_,$[29]=F,$[30]=k):k=$[30],$[31]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)(c,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"}),$[31]=S):S=$[31],$[32]!==k?(C=(0,s.jsx)(x.i,{delay:.2,direction:"right",children:(0,s.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-xl border p-2",children:[j,k,S]})}),$[32]=k,$[33]=C):C=$[33],$[34]!==C||$[35]!==b?(z=(0,s.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[b,C]}),$[34]=C,$[35]=b,$[36]=z):z=$[36],$[37]!==z||$[38]!==p?(L=(0,s.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:[p,z]}),$[37]=z,$[38]=p,$[39]=L):L=$[39],$[40]!==r||$[41]!==L?(A=(0,s.jsx)("section",{className:r,children:L}),$[40]=r,$[41]=L,$[42]=A):A=$[42],A}function h(e,t){return(0,s.jsxs)(m.AccordionItem,{value:`item-${t+1}`,children:[(0,s.jsx)(m.AccordionTrigger,{children:(0,s.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,s.jsx)(o.LK,{name:e.icon,size:24}),e.title]})}),(0,s.jsx)(m.AccordionContent,{children:e.description})]},t)}}}]);
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.