PageSourceSearch

https://laprensatexas.com/assets/donate-sdP6ARLp.js

js laprensatexas.com collected 2026-10-02 12:41:04 UTC 10,730 bytes, 1 lines download raw bytes

1import{K as e,U as t,s as n,t as r}from"./link-DWghAheB.js";import{t as i}from"./useServerFn-pr_eiGP2.js";import{x as a}from"./index-Bbp8Tcfr.js";import{t as o}from"./utils-B6KiDbIe.js";import{t as s}from"./AdSlot-8b73zFEI.js";import{t as c}from"./NewsletterSignup-oHS77B-n.js";import{n as l,t as u}from"./SiteHeader-Cd_6PTWj.js";import{t as d}from"./WeTheWomenMark-CV0RizLo.js";import{s as f}from"./signups.functions-D46oHmg8.js";import{n as p,r as m}from"./payments-CtfWvGMC.js";var h=e(t(),1),g=n(),_=[25,50,100,250,500,1e3],v=[{value:`one-time`,label:`One-time gift`},{value:`monthly`,label:`Monthly sustainer`}],y=[{value:`we-the-women`,label:`We The Women campaign`},{value:`gala-2026`,label:`Gala 2026`},{value:`la-prensa`,label:`La Prensa Texas journalism`}],b={name:``,email:``,phone:``,amount:100,customAmount:``,frequency:`one-time`,designation:`we-the-women`,message:``};function x({className:e}){let t=i(f),[n,r]=(0,h.useState)(b),[s,c]=(0,h.useState)(`idle`),[l,u]=(0,h.useState)(``),d=(e,t)=>r(n=>({...n,[e]:t})),x=n.customAmount.trim()?Number(n.customAmount):n.amount;async function S(e){if(e.preventDefault(),s===`sending`)return;let i=n.name.trim(),o=n.email.trim();if(i.length===0||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)){c(`error`),u(`Please enter your name and a valid email address.`);return}if(!Number.isFinite(x)||x<=0){c(`error`),u(`Please choose or enter a donation amount.`);return}c(`sending`),u(``);try{await t({data:{name:i,email:o,phone:n.phone.trim()||null,amount:x,frequency:n.frequency,designation:n.designation,message:n.message.trim()||null}}),a(`donation_pledge`,{amount:x,frequency:n.frequency,designation:n.designation}),c(`done`),u(`Thank you, ${i.split(` `)[0]}, your ${n.frequency===`monthly`?`monthly`:`one-time`} gift of $${x} is recorded. Redirecting you to our secure Square checkout to complete payment…`),r(b),window.setTimeout(()=>window.location.assign(p),m)}catch{c(`error`),u(`Something went wrong sending your donation. Please try again or call (210) 628-9611.`)}}let C=`mt-1.5 w-full rounded-sm border border-input bg-background px-3 py-2.5 text-base text-foreground outline-none focus:border-prensa-red focus:ring-2 focus:ring-ring/40`,w=`block text-sm font-semibold text-foreground`;return(0,g.jsxs)(`section`,{id:`donate-form`,className:o(`scroll-mt-28 rounded-sm bg-card p-6 outline outline-border md:p-8`,e),children:[(0,g.jsx)(`h3`,{className:`text-2xl text-sienna-deep`,children:`Make a gift`}),(0,g.jsx)(`p`,{className:`mt-2 max-w-prose text-sm leading-relaxed text-muted-foreground`,children:`Choose an amount and where you'd like it to go. After submitting, you'll continue to our secure Square checkout to complete payment, every dollar funds We The Women and free bilingual journalism.`}),(0,g.jsxs)(`form`,{onSubmit:S,className:`mt-6 grid gap-5`,noValidate:!0,children:[(0,g.jsxs)(`fieldset`,{children:[(0,g.jsxs)(`legend`,{className:w,children:[`Amount `,(0,g.jsx)(`span`,{className:`text-prensa-red`,children:`*`})]}),(0,g.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[_.map(e=>(0,g.jsxs)(`button`,{type:`button`,"aria-pressed":n.amount===e&&!n.customAmount,onClick:()=>{d(`amount`,e),d(`customAmount`,``)},className:o(`rounded-sm px-4 py-2 text-sm font-semibold transition-colors`,n.amount===e&&!n.customAmount?`bg-primary text-primary-foreground`:`border border-border text-muted-foreground hover:border-sienna-clay hover:text-sienna-clay`),children:[`$`,e]},e)),(0,g.jsx)(`input`,{"aria-label":`Custom amount in dollars`,inputMode:`decimal`,placeholder:`Other $`,value:n.customAmount,onChange:e=>d(`customAmount`,e.target.value.replace(/[^0-9.]/g,``).slice(0,8)),className:`w-28 rounded-sm border border-input bg-background px-3 py-2 text-sm outline-none focus:border-prensa-red focus:ring-2 focus:ring-ring/40`})]})]}),(0,g.jsxs)(`div`,{className:`grid gap-5 sm:grid-cols-2`,children:[(0,g.jsxs)(`div`,{children:[(0,g.jsxs)(`label`,{className:w,htmlFor:`donate-frequency`,children:[`Frequency `,(0,g.jsx)(`span`,{className:`text-prensa-red`,children:`*`})]}),(0,g.jsx)(`select`,{id:`donate-frequency`,name:`frequency`,value:n.frequency,onChange:e=>d(`frequency`,e.target.value),className:C,children:v.map(e=>(0,g.jsx)(`option`,{value:e.value,children:e.label},e.value))})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsxs)(`label`,{className:w,htmlFor:`donate-designation`,children:[`Direct my gift to `,(0,g.jsx)(`span`,{className:`text-prensa-red`,children:`*`})]}),(0,g.jsx)(`select`,{id:`donate-designation`,name:`designation`,value:n.designation,onChange:e=>d(`designation`,e.target.value),className:C,children:y.map(e=>(0,g.jsx)(`option`,{value:e.value,children:e.label},e.value))})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsxs)(`label`,{className:w,htmlFor:`donate-name`,children:[`Name `,(0,g.jsx)(`span`,{className:`text-prensa-red`,children:`*`})]}),(0,g.jsx)(`input`,{id:`donate-name`,name:`name`,required:!0,autoComplete:`name`,maxLength:120,value:n.name,onChange:e=>d(`name`,e.target.value),className:C})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsxs)(`label`,{className:w,htmlFor:`donate-email`,children:[`Email `,(0,g.jsx)(`span`,{className:`text-prensa-red`,children:`*`})]}),(0,g.jsx)(`input`,{id:`donate-email`,name:`email`,type:`email`,required:!0,autoComplete:`email`,maxLength:254,value:n.email,onChange:e=>d(`email`,e.target.value),className:C})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`label`,{className:w,htmlFor:`donate-phone`,children:`Phone number`}),(0,g.jsx)(`input`,{id:`donate-phone`,name:`phone`,type:`tel`,autoComplete:`tel`,maxLength:40,value:n.phone,onChange:e=>d(`phone`,e.target.value),className:C})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`label`,{className:w,htmlFor:`donate-message`,children:`Message (optional)`}),(0,g.jsx)(`input`,{id:`donate-message`,name:`message`,maxLength:1e3,value:n.message,onChange:e=>d(`message`,e.target.value),className:C,placeholder:`In honor of, dedication, etc.`})]})]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4`,children:[(0,g.jsx)(`button`,{type:`submit`,disabled:s===`sending`,className:`rounded-sm bg-primary px-8 py-3 text-xs font-semibold tracking-widest text-primary-foreground uppercase transition-colors hover:bg-primary/90 disabled:opacity-60`,children:s===`sending`?`Submitting…`:`Donate $${Number.isFinite(x)&&x>0?x:0}`}),(0,g.jsx)(`button`,{type:`button`,onClick:()=>{r(b),c(`idle`),u(``)},className:`rounded-sm px-5 py-3 text-xs font-semibold tracking-widest text-muted-foreground uppercase outline outline-border transition-colors hover:text-foreground`,children:`Clear form`})]})]}),l?(0,g.jsxs)(`div`,{className:`mt-5`,children:[(0,g.jsx)(`p`,{role:`status`,className:o(`text-sm`,s===`error`?`text-destructive`:`text-sienna-deep`),children:l}),s===`done`?(0,g.jsx)(`a`,{href:p,className:`mt-4 inline-block rounded-sm bg-primary px-8 py-3 text-xs font-semibold tracking-widest text-primary-foreground uppercase transition-colors hover:bg-primary/90`,children:`Continue to secure Square checkout`}):null]}):null]})}var S=[{amount:`$25`,detail:`Prints and distributes a stack of the weekly bilingual edition.`},{amount:`$100`,detail:`Sponsors one We The Women mentorship pairing for a season.`},{amount:`$500`,detail:`Underwrites a We The Women community gathering in San Antonio.`}];function C(){return(0,g.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,g.jsx)(u,{}),(0,g.jsx)(`div`,{className:`border-b border-border bg-muted/40 py-5`,children:(0,g.jsx)(`div`,{className:`mx-auto max-w-7xl px-6`,children:(0,g.jsx)(s,{id:`leaderboard-top`,className:`mx-auto`})})}),(0,g.jsx)(`section`,{className:`border-b border-border bg-band py-14 text-band-foreground`,children:(0,g.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col items-center gap-8 px-6 text-center sm:flex-row sm:text-left`,children:[(0,g.jsx)(d,{className:`h-32 w-auto shrink-0 sm:h-40`,linked:!1}),(0,g.jsxs)(`div`,{className:`min-w-0`,children:[(0,g.jsx)(`p`,{className:`eyebrow text-band-foreground
1/80`,children:`Support the movement`}),(0,g.jsx)(`h1`,{className:`mt-3 font-serif text-4xl leading-tight text-band-foreground md:text-5xl`,children:`Donate to We The Women`}),(0,g.jsx)(`p`,{className:`mt-4 max-w-2xl leading-relaxed text-band-foreground/85`,children:`Every gift funds We The Women mentorship, ambassador programming and the free bilingual journalism La Prensa Texas has published since 1913.`}),(0,g.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-3 sm:justify-start`,children:[(0,g.jsx)(`a`,{href:`#give`,className:`bg-band-muted px-6 py-3 text-xs font-semibold tracking-widest text-band uppercase transition-opacity hover:opacity-90`,children:`Give now`}),(0,g.jsx)(r,{to:`/we-the-women`,className:`px-6 py-3 text-xs font-semibold tracking-widest text-band-foreground uppercase outline outline-band-foreground/50 transition-colors hover:bg-band-foreground/10`,children:`About the campaign`})]})]})]})}),(0,g.jsx)(`main`,{className:`mx-auto max-w-7xl px-6 py-14`,children:(0,g.jsxs)(`div`,{className:`grid grid-cols-1 gap-12 lg:grid-cols-12`,children:[(0,g.jsxs)(`div`,{className:`lg:col-span-8`,children:[(0,g.jsx)(`h2`,{className:`text-3xl text-sienna-deep`,children:`What your gift does`}),(0,g.jsx)(`dl`,{className:`mt-6 grid gap-4 sm:grid-cols-3`,children:S.map(e=>(0,g.jsxs)(`div`,{className:`border border-border bg-card p-5`,children:[(0,g.jsx)(`dt`,{className:`font-serif text-2xl text-prensa-red-deep`,children:e.amount}),(0,g.jsx)(`dd`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:e.detail})]},e.amount))}),(0,g.jsx)(`div`,{id:`give`,className:`mt-12 scroll-mt-28`,children:(0,g.jsx)(x,{})}),(0,g.jsxs)(`p`,{className:`mt-6 text-sm leading-relaxed text-muted-foreground`,children:[`Prefer to give by check or discuss a sponsorship? Email`,` `,(0,g.jsx)(`a`,{href:`mailto:[email protected]`,className:`underline decoration-prensa-red underline-offset-2`,children:`[email protected]`}),` `,`or call (210) 628-9611. Gala sponsorship levels are listed on the`,` `,(0,g.jsx)(r,{to:`/gala`,className:`underline decoration-prensa-red underline-offset-2`,children:`Gala page`}),`.`]})]}),(0,g.jsx)(`div`,{className:`lg:col-span-4`,children:(0,g.jsxs)(`div`,{className:`space-y-8 lg:sticky lg:top-24`,children:[(0,g.jsx)(s,{id:`sidebar-rectangle`}),(0,g.jsx)(s,{id:`sidebar-tower`})]})})]})}),(0,g.jsx)(c,{source:`donate`,interests:[`we-the-women`],eyebrow:`Stay close to the movement`,heading:`Follow We The Women`,tone:`ink`}),(0,g.jsx)(`div`,{className:`border-y border-border bg-muted/40 py-6`,children:(0,g.jsx)(`div`,{className:`mx-auto max-w-7xl px-6`,children:(0,g.jsx)(s,{id:`leaderboard-bottom`,className:`mx-auto`})})}),(0,g.jsx)(l,{})]})}export{C as component};

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.