1import{$ as e,J as t,j as n,r}from"./chunk-QUQL4437-Dcban7v2.js";import{n as i,t as a}from"./jsx-runtime-By4ae3qB.js";import{t as o}from"./use-app-translation-C9I5xz6X.js";import{t as s}from"./icon-BBLYzrJo.js";import{t as c}from"./honeypot-CxXhVNi-.js";import{t as l}from"./image-BBFqRPGS.js";import{n as u,r as d}from"./tilted-grid-DdGkjpVy.js";var f=i(),p=e(t(),1),m=a();function h(){let e=(0,f.c)(47),{t}=o(`marketing`),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={key:`subscribe-form`},e[0]=i):i=e[0];let a=n(i),[h,g]=(0,p.useState)(!1),_;e[1]!==a.data?.email||e[2]!==a.data?.isSpam?(_=()=>{!a.data?.isSpam&&a?.data?.email&&g(!0)},e[1]=a.data?.email,e[2]=a.data?.isSpam,e[3]=_):_=e[3];let v;e[4]===a.data?v=e[5]:(v=[a.data],e[4]=a.data,e[5]=v),(0,p.useEffect)(_,v);let y;e[6]===t?y=e[7]:(y=t(`components.newsletter.headingLead`),e[6]=t,e[7]=y);let b;e[8]===t?b=e[9]:(b=t(`components.newsletter.headingHighlight`),e[8]=t,e[9]=b);let x;e[10]===b?x=e[11]:(x=(0,m.jsx)(`span`,{className:`text-transparent bg-clip-text bg-linear-to-r from-slate-700 to-slate-500`,children:b}),e[10]=b,e[11]=x);let S;e[12]!==y||e[13]!==x?(S=(0,m.jsxs)(`h2`,{className:`text-4xl md:text-6xl font-bold text-slate-900 mb-6 leading-[1.1] tracking-tight`,children:[y,` `,x]}),e[12]=y,e[13]=x,e[14]=S):S=e[14];let C;e[15]===t?C=e[16]:(C=t(`components.newsletter.description`),e[15]=t,e[16]=C);let w;e[17]===C?w=e[18]:(w=(0,m.jsx)(`p`,{className:`text-lg lg:text-xl text-slate-700 mb-8`,children:C}),e[17]=C,e[18]=w);let T;e[19]!==S||e[20]!==w?(T=(0,m.jsxs)(d,{children:[S,w]}),e[19]=S,e[20]=w,e[21]=T):T=e[21];let E;e[22]!==a.state||e[23]!==h||e[24]!==t?(E=(0,m.jsx)(`div`,{className:`pt-4`,children:h?(0,m.jsxs)(`div`,{className:`h-15 w-fit flex items-center gap-3 px-6 py-4 rounded-md bg-green-50 border border-green-200 text-green-800`,children:[(0,m.jsx)(s,{name:`check-circle`,size:20,className:`text-green-600`}),(0,m.jsx)(`span`,{className:`font-medium`,children:t(`components.newsletter.successMessage`)})]}):(0,m.jsxs)(r,{action:`/api/public/subscribe`,className:`flex flex-col sm:flex-row gap-4`,fetcherKey:`subscribe-form`,method:`POST`,navigate:!1,preventScrollReset:!0,children:[(0,m.jsx)(c,{label:`No spam here!`}),(0,m.jsx)(`div`,{className:`w-96 max-w-full relative`,children:(0,m.jsx)(`input`,{autoComplete:`email`,className:`w-full px-6 py-4 rounded-md border-2 border-slate-200 bg-white text-slate-900 placeholder:text-slate-500 focus:border-slate-900 focus:outline-none transition-colors text-base`,maxLength:100,name:`email`,placeholder:t(`components.newsletter.emailPlaceholder`),required:!0,type:`email`})}),(0,m.jsx)(`button`,{type:`submit`,disabled:a.state===`submitting`,className:`bg-slate-900 text-white px-8 py-4 rounded-md font-semibold border border-transparent lg:border-none lg:text-lg hover:bg-slate-800 transition-all shadow-lg shadow-slate-200 flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed whitespace-nowrap`,children:a.state===`submitting`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s,{name:`loader-2`,size:18,className:`animate-spin`}),t(`components.newsletter.submitting`)]}):(0,m.jsxs)(m.Fragment,{children:[t(`components.newsletter.subscribe`),(0,m.jsx)(s,{name:`arrow-right`,size:18})]})})]})}),e[22]=a.state,e[23]=h,e[24]=t,e[25]=E):E=e[25];let D;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,m.jsx)(s,{name:`slack`,size:16}),e[26]=D):D=e[26];let O;e[27]===t?O=e[28]:(O=t(`components.newsletter.joinCommunity`),e[27]=t,e[28]=O);let k;e[29]===O?k=e[30]:(k=(0,m.jsxs)(`a`,{href:`https://wvse.cc/weaverse-slack`,target:`_blank`,rel:`noopener noreferrer`,className:`text-slate-600 text-sm hover:text-slate-900 transition-colors flex items-center gap-2 mt-6`,children:[D,O]}),e[29]=O,e[30]=k);let A;e[31]!==E||e[32]!==k?(A=(0,m.jsxs)(d,{delay:200,children:[E,k]}),e[31]=E,e[32]=k,e[33]=A):A=e[33];let j;e[34]!==A||e[35]!==T?(j=(0,m.jsxs)(`div`,{className:`max-w-2xl w-full`,children:[T,A]}),e[34]=A,e[35]=T,e[36]=j):j=e[36];let M;e[37]===t?M=e[38]:(M=t(`components.newsletter.imageAlt`),e[37]=t,e[38]=M);let N;e[39]===M?N=e[40]:(N=(0,m.jsx)(l,{src:`https://cdn.shopify.com/s/files/1/0838/0052/3057/files/Envelope-cuate.svg?v=1765842012`,alt:M,className:`max-w-xl h-auto drop-shadow-xs`,layout:`fullWidth`}),e[39]=M,e[40]=N);let P;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,m.jsx)(u,{className:`bottom-4 right-3`}),e[41]=P):P=e[41];let F;e[42]===N?F=e[43]:(F=(0,m.jsxs)(d,{delay:300,className:`w-full lg:w-1/2 hidden md:flex justify-end`,children:[N,P]}),e[42]=N,e[43]=F);let I;return e[44]!==j||e[45]!==F?(I=(0,m.jsx)(`section`,{className:`border-t border-slate-200 relative overflow-hidden py-12 lg:py-24`,children:(0,m.jsx)(`div`,{className:`container mx-auto relative z-10`,children:(0,m.jsxs)(`div`,{className:`flex flex-col lg:flex-row items-center justify-between gap-16`,children:[j,F]})})}),e[44]=j,e[45]=F,e[46]=I):I=e[46],I}export{h as 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.