PageSourceSearch

https://tbxunfiltered.com/assets/NewsletterSignup-BaMHlPgK.js

js tbxunfiltered.com collected 2026-10-09 22:40:40 UTC 3,355 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";var r=e(t(),1),i=n();function a(){let[e,t]=(0,r.useState)(`idle`),[n,a]=(0,r.useState)(``),[o,s]=(0,r.useState)(!1);async function c(e){e.preventDefault(),t(`sending`),a(``);let n=e.currentTarget;try{let e=await fetch(`/api/newsletter`,{method:`POST`,body:new FormData(n)}),r=await e.json().catch(()=>({}));if(!e.ok)throw Error(r.error||`Please try again.`);s(r.welcomeIssueSent===!0),t(`success`),n.reset()}catch(e){a(e instanceof Error?e.message:`Please try again.`),t(`error`)}}return(0,i.jsxs)(`section`,{className:`newsletter-section`,id:`stay-connected`,"aria-labelledby":`newsletter-title`,children:[(0,i.jsx)(`div`,{className:`newsletter-orbit newsletter-orbit-one`,"aria-hidden":`true`}),(0,i.jsx)(`div`,{className:`newsletter-orbit newsletter-orbit-two`,"aria-hidden":`true`}),(0,i.jsxs)(`div`,{className:`newsletter-copy`,children:[(0,i.jsx)(`span`,{className:`section-kicker`,children:`TBX // STAY CONNECTED`}),(0,i.jsxs)(`h2`,{id:`newsletter-title`,children:[`Get the story`,(0,i.jsx)(`br`,{}),(0,i.jsx)(`em`,{children:`before the next show.`})]}),(0,i.jsx)(`p`,{children:`Join the TBX Unfiltered list and receive our free monthly newsletter—new investigations, behind-the-scenes notes, and the questions we’re chasing next.`})]}),e===`success`?(0,i.jsxs)(`div`,{className:`newsletter-success`,role:`status`,children:[(0,i.jsx)(`span`,{children:`✓`}),(0,i.jsx)(`strong`,{children:`You’re on the list.`}),o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`p`,{children:`Your welcome issue is on its way. Watch your inbox for the first TBX Unfiltered dispatch.`}),(0,i.jsxs)(`p`,{className:`newsletter-delivery-note`,children:[(0,i.jsx)(`strong`,{children:`Don’t see it?`}),` Check your Junk or Spam folder, then mark the message “Not spam” or add `,(0,i.jsx)(`b`,{children:`[email protected]`}),` to your contacts.`]})]}):(0,i.jsx)(`p`,{children:`You’re already on the TBX list. We’ll keep your address on file for future issues and updates.`})]}):(0,i.jsxs)(`form`,{className:`newsletter-form`,onSubmit:c,children:[(0,i.jsxs)(`label`,{children:[(0,i.jsxs)(`span`,{children:[`Name `,(0,i.jsx)(`i`,{children:`optional`})]}),(0,i.jsx)(`input`,{name:`name`,autoComplete:`name`,placeholder:`Your name`})]}),(0,i.jsxs)(`label`,{children:[(0,i.jsx)(`span`,{children:`Email address`}),(0,i.jsx)(`input`,{name:`email`,type:`email`,autoComplete:`email`,placeholder:`[email protected]`,required:!0})]}),(0,i.jsx)(`input`,{type:`hidden`,name:`source`,value:`stay-connected`}),(0,i.jsxs)(`label`,{className:`newsletter-check`,children:[(0,i.jsx)(`input`,{type:`checkbox`,name:`consent`,value:`yes`,required:!0}),(0,i.jsx)(`span`,{children:`Yes—send me occasional TBX updates and the free monthly newsletter. I can unsubscribe at any time.`})]}),e===`error`&&(0,i.jsx)(`p`,{className:`newsletter-error`,role:`alert`,children:n}),(0,i.jsxs)(`button`,{type:`submit`,disabled:e===`sending`,children:[(0,i.jsx)(`span`,{children:e===`sending`?`SAVING YOUR SIGNUP...`:`STAY CONNECTED`}),(0,i.jsx)(`b`,{children:`→`})]}),(0,i.jsxs)(`small`,{children:[`We use your email only for TBX communications. No list selling. See our `,(0,i.jsx)(`a`,{href:`/privacy`,children:`Privacy Notice`}),`.`]})]})]})}export{a 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.