1import{j as e,L as b}from"./chunk-4WY6JWTD-DoFnijRJ.js";import{B as o}from"./Button-YErYcH1Q.js";import{u as f,C as m,L as d,a as y,b as j}from"./index.esm-lY66E3nC.js";import{I as g}from"./Input-DWsPyFT8.js";import{T as t}from"./Typography-CTmNgK65.js";import{R as u}from"./Reveal-BXLbXze6.js";function P(){const{register:x,control:p,handleSubmit:l,reset:h,formState:{errors:n,isSubmitting:s,isSubmitSuccessful:a}}=f(),c=async i=>{await new Promise(r=>{grecaptcha.ready(async function(){await grecaptcha.execute("6Ld0GicsAAAAAA1R8R_34dRJORQAncZALWNFLSai",{action:"submit"}),await fetch("https://ares-api.culturepulse.ai/api/v1/website/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),setTimeout(()=>{h({},{keepValues:!0})},3e3),r()})})};return e.jsxs("div",{className:"flex flex-col items-center gap-y-6 md:gap-y-8 pb-24 md:pb-[400px]",children:[e.jsx(u,{children:e.jsxs(t,{variant:"titleHero",mobileVariant:"heading",className:"text-center",children:["Donât follow trends.",e.jsx("br",{}),"Understand them."]})}),e.jsxs(u,{className:"flex flex-col items-center gap-y-6 md:gap-y-8",children:[e.jsx(t,{variant:"subtitle",mobileVariant:"bodyBase",className:"text-center",children:"Subscribe for curated insights that help you see beyond the noise."}),e.jsxs("div",{className:"flex flex-col gap-y-8",children:[e.jsxs("div",{className:"flex items-start gap-x-4",children:[e.jsx("div",{className:"w-full md:min-w-[435px]",children:e.jsx(g,{label:"Your work email*",error:n.email?.message,...x("email",{required:"This field is required",pattern:{value:/\S+@\S+\.\S+/,message:"Invalid email format"}})})}),e.jsx("div",{className:"hidden md:block mt-[30px]",children:e.jsx(o,{prefixIcon:a?e.jsx(m,{}):s?e.jsx(d,{className:"animate-spin"}):null,onClick:()=>l(c)(),children:a?"Subscribed":s?"Submitting":"Subscribe"})})]}),e.jsxs("div",{className:"flex flex-col gap-y-8",children:[e.jsx(y,{name:"privacyPolicy",control:p,rules:{required:"This field is required"},render:({field:i})=>e.jsx(j,{checked:!!i.value,error:n.privacyPolicy?.message,onChange:r=>i.onChange(r),label:e.jsxs(t,{variant:"bodySmall",className:"md:w-[425px]",children:["I consent to receiving email communications from CulturePulse and understand my data will be processed according to the *"," ",e.jsx(b,{to:"/CulturePulse_Privacy_Policy.pdf",target:"_blank",className:"underline",children:"Privacy Policy."}),"*"]})})}),e.jsx("div",{className:"block md:hidden",children:e.jsx(o,{prefixIcon:a?e.jsx(m,{}):s?e.jsx(d,{className:"animate-spin"}):null,onClick:()=>l(c)(),children:a?"Submitted":s?"Submitting":"Subscribe"})})]})]})]})]})}export{P as N};
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.