1import{r as e}from"./rolldown-runtime-C60lm6uB.js";import{i as t,r as n}from"./framework-BaE7mD_r.js";import{attribution as r,trackConversion as i}from"./ConversionTracker-C6pxh3LW.js";import{useLaunchPreference as a}from"./LaunchPreference-D5pxsKz6.js";var o=e(n(),1),s=[{id:`digital-launch`,label:`Launching a digital product`},{id:`brand-direction`,label:`Building my brand`},{id:`business-numbers`,label:`Understanding my numbers`},{id:`next-opportunity`,label:`Finding my next opportunity`},{id:`future-services`,label:`Future business tools and services`}];function c(e){return s.some(t=>t.id===e)}var l=t();function u(){let e=(0,o.useRef)(!1),t=(0,o.useId)(),{interest:n,setInterest:u}=a(),[d,f]=(0,o.useState)(`idle`),[p,m]=(0,o.useState)(``);async function h(e){if(e.preventDefault(),d===`sending`)return;let t=new FormData(e.currentTarget);f(`sending`),m(``);try{let e=await fetch(`/api/partnership-interest`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:t.get(`email`),consent:t.get(`consent`)===`on`,website:t.get(`website`),launchInterest:n,...r()})}),a=await e.json();if(!e.ok||a.ok!==!0||a.subscribed!==!0)throw Error(a.error||`Please try again.`);f(`success`),i(`waitlist_joined`),m(`Youâre on the private launch list. Your signup is saved. Watch for software previews, Oct 1st 2026 release updates, and the opening announcement for our planned lifetime software access giveaway. This signup is not a giveaway entry.`)}catch(e){i(`signup_failed`),f(`error`),m(e instanceof Error?e.message:`Please try again or email [email protected].`)}}return(0,l.jsx)(`div`,{className:`private-signup`,children:d===`success`?(0,l.jsxs)(`div`,{className:`newsletter-success`,role:`status`,children:[(0,l.jsx)(`span`,{"aria-hidden":`true`,children:`â`}),(0,l.jsx)(`h3`,{children:`Youâre on the list.`}),(0,l.jsx)(`p`,{children:p}),(0,l.jsxs)(`a`,{className:`text-link`,href:`/the-next-move`,children:[`Explore the upcoming software `,(0,l.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]})]}):(0,l.jsxs)(`form`,{onSubmit:h,onFocus:()=>{e.current||(e.current=!0,i(`launch_form_started`))},"aria-label":`Jersey Publishers private launch list signup`,children:[(0,l.jsx)(`label`,{className:`private-email-label`,htmlFor:t,children:`Your email address`}),(0,l.jsx)(`input`,{id:t,name:`email`,type:`email`,autoComplete:`email`,inputMode:`email`,placeholder:`[email protected]`,maxLength:200,required:!0,disabled:d===`sending`,"aria-describedby":`${t}-privacy`}),(0,l.jsxs)(`label`,{className:`private-interest-label`,htmlFor:`${t}-interest`,children:[`Whatâs your next move? `,(0,l.jsx)(`span`,{children:`(optional)`})]}),(0,l.jsxs)(`select`,{id:`${t}-interest`,name:`launchInterest`,value:n,disabled:d===`sending`,onChange:e=>u(c(e.target.value)?e.target.value:``),"aria-describedby":`${t}-interest-help`,children:[(0,l.jsx)(`option`,{value:``,children:`Just curious for now`}),s.map(e=>(0,l.jsx)(`option`,{value:e.id,children:e.label},e.id))]}),(0,l.jsx)(`p`,{className:`private-interest-help`,id:`${t}-interest-help`,children:`Help shape what comes next. Weâll save this preference with your signup.`}),(0,l.jsx)(`div`,{className:`private-honeypot`,"aria-hidden":`true`,children:(0,l.jsxs)(`label`,{children:[`Leave this empty`,(0,l.jsx)(`input`,{name:`website`,tabIndex:-1,autoComplete:`off`})]})}),(0,l.jsxs)(`label`,{className:`private-consent`,children:[(0,l.jsx)(`input`,{name:`consent`,type:`checkbox`,required:!0,disabled:d===`sending`}),(0,l.jsx)(`span`,{children:`Yes, send me Jersey Publishers software previews, launch news, future tools and services, and lifetime-access giveaway updates. I can unsubscribe anytime.`})]}),(0,l.jsxs)(`button`,{className:`button newsletter-submit`,type:`submit`,disabled:d===`sending`,children:[d===`sending`?`Saving your signupâ¦`:`Put me on the list`,` `,(0,l.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]}),(0,l.jsxs)(`p`,{className:`private-note`,id:`${t}-privacy`,children:[`Free to join. Your information goes to Jersey Publishers. `,(0,l.jsx)(`a`,{href:`/privacy`,children:`Privacy notice`}),`.`]}),(0,l.jsx)(`p`,{className:`drawing-status-note`,children:`Newsletter signup only. Giveaway entry is not open yet. Eligibility, dates, and official rules will be published before entries open.`}),d===`error`&&(0,l.jsx)(`p`,{role:`alert`,className:`private-error`,children:p})]})})}export{u as default};
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.