PageSourceSearch

https://pioneervalleycampground.com/assets/event-signup-D8bVYbit.js

js pioneervalleycampground.com collected 2026-10-10 02:32:09 UTC 2,072 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(),t(`sending`);let n=e.currentTarget;try{if(!(await fetch(`/api/event-subscribers`,{method:`POST`,body:new FormData(n)})).ok)throw Error(`Signup failed`);n.reset(),t(`success`)}catch{t(`error`)}}return(0,i.jsxs)(`form`,{className:`event-signup-form`,onSubmit:n,children:[(0,i.jsxs)(`div`,{className:`event-signup-fields`,children:[(0,i.jsxs)(`label`,{children:[`Your name`,(0,i.jsx)(`input`,{name:`name`,autoComplete:`name`,required:!0})]}),(0,i.jsxs)(`label`,{children:[`Email address`,(0,i.jsx)(`input`,{name:`email`,type:`email`,autoComplete:`email`,required:!0})]})]}),(0,i.jsxs)(`fieldset`,{children:[(0,i.jsx)(`legend`,{children:`Are you a seasonal camper at Pioneer Valley?`}),(0,i.jsxs)(`label`,{children:[(0,i.jsx)(`input`,{type:`radio`,name:`camperType`,value:`seasonal`,required:!0}),` Yes, I’m a seasonal camper`]}),(0,i.jsxs)(`label`,{children:[(0,i.jsx)(`input`,{type:`radio`,name:`camperType`,value:`guest`,required:!0}),` No, I’m not seasonal`]})]}),(0,i.jsxs)(`label`,{className:`signup-consent`,children:[(0,i.jsx)(`input`,{type:`checkbox`,name:`consent`,value:`yes`,required:!0}),`I agree to receive weekly campground event emails. I can unsubscribe at any time.`]}),(0,i.jsxs)(`label`,{className:`signup-honey`,"aria-hidden":`true`,children:[`Website`,(0,i.jsx)(`input`,{name:`website`,tabIndex:-1,autoComplete:`off`})]}),(0,i.jsx)(`button`,{className:`reserve`,type:`submit`,disabled:e===`sending`,children:e===`sending`?`Signing up…`:`Join the Events Email List`}),(0,i.jsxs)(`div`,{className:`form-status`,role:`status`,"aria-live":`polite`,children:[e===`success`&&(0,i.jsx)(`p`,{className:`success`,children:`You’re on the list! Watch your inbox for campground events and weekly activities.`}),e===`error`&&(0,i.jsx)(`p`,{className:`error`,children:`We couldn’t complete your signup. Please try again.`})]})]})}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.