PageSourceSearch

https://woolloongabbarealestate.com.au/assets/NewsletterForm-CENMQj0v.js

js woolloongabbarealestate.com.au collected 2026-10-09 22:56:20 UTC 1,078 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`);async function n(e){e.preventDefault();let n=e.currentTarget;t(`submitting`),(await fetch(`/api/newsletter`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(Object.fromEntries(new FormData(n)))})).ok?(t(`success`),n.reset()):t(`error`)}return e===`success`?(0,i.jsx)(`p`,{className:`newsletter-status`,role:`status`,children:`You’re on the list. We’ll keep it useful.`}):(0,i.jsxs)(`form`,{onSubmit:n,children:[(0,i.jsx)(`label`,{className:`sr-only`,htmlFor:`newsletter-email`,children:`Email address`}),(0,i.jsx)(`input`,{id:`newsletter-email`,name:`email`,type:`email`,placeholder:`Enter your email`,required:!0}),(0,i.jsx)(`button`,{type:`submit`,"aria-label":`Subscribe`,disabled:e===`submitting`,children:e===`submitting`?`…`:`→`}),e===`error`&&(0,i.jsx)(`span`,{className:`newsletter-error`,role:`alert`,children:`Please try again.`})]})}export{a as NewsletterForm};

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.