PageSourceSearch

https://www.charitywater.org/vite/assets/Form-p98wm7IW.js

js charitywater.org collected 2026-09-24 06:55:18 UTC 4,534 bytes, 2 lines download raw bytes

1import{aP as e}from"./store-DUosIV5A.js";import p from"./AlpineIsland-Cxdwp1xn.js";import{o as x,u as h,a as r}from"./application-CegkUz9G.js";const u="data:image/svg+xml,%3csvg%20fill='none'%20height='18'%20width='18'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-rule='evenodd'%20fill='%239b9b94'%20fill-rule='evenodd'%3e%3cpath%20d='m9%201.163a7.838%207.838%200%201%200%200%2015.675%207.838%207.838%200%200%200%200-15.676zm-8.813%207.837a8.812%208.812%200%201%201%2017.625%200%208.812%208.812%200%200%201%20-17.625%200z'/%3e%3cpath%20d='m8.595%203.862c.27%200%20.487.219.487.488v5.167h3.548a.487.487%200%201%201%200%20.976h-4.035a.488.488%200%200%201%20-.488-.488v-5.655c0-.27.219-.488.488-.488z'/%3e%3c/g%3e%3c/svg%3e",b=x(({currency:i,currencies:s})=>{const a=h(()=>({selectedCoin:i})),c=r.useRef(null),n=r.useRef(`crypto-amount-error-${crypto.randomUUID()}`),o=r.useRef(`crypto-donation-time-error-${crypto.randomUUID()}`),l=t=>{a.selectedCoin=s.find(m=>m.name==t)},d=t=>t.toLowerCase().replace(" ","-");return e.jsxs("div",{className:"crypto-report-form-wrapper text-center theme-design-system-v1 text-cw-brand-grey-900",children:[e.jsx("div",{className:"heading-m",children:"Log a donation"}),e.jsx("div",{className:"body-m mt-3 mb-6",children:"We need a few details to locate your donation in our wallet"}),e.jsxs("form",{className:"text-left","data-parsley-validate":!0,ref:c,"hx-post":"/zendesk_tickets?type=crypto",children:[e.jsxs("div",{className:"md-flex",children:[e.jsxs("div",{className:`select-wrapper relative md-w-1/2 ${d(a.selectedCoin.name)}`,children:[e.jsx("label",{htmlFor:"crypto_currency",children:"Select cryptocurrency"}),e.jsx("select",{className:"pl-13",defaultValue:a.selectedCoin.name,id:"crypto_currency",name:"crypto[currency]",onChange:t=>l(t.target.value),children:s.map(t=>e.jsx("option",{value:t.name,children:t.name},t.abbreviation))})]}),e.jsxs("div",{className:"mt-5 md-mt-0 md-ml-5 md-w-1/2 crypto-amount-wrapper",children:[e.jsx("label",{htmlFor:"crypto_amount",children:"Amount"}),e.jsxs("div",{className:"input-field-container",children:[e.jsx("input",{className:"-ml-px pr-4","data-parsley-errors-container":`#${n.current}`,"data-parsley-type":"number",id:"crypto_amount",name:"crypto[amount]",required:!0,step:"any",type:"number"}),e.jsx("span",{className:"postinput text-cw-brand-grey-900 font-normal",children:a.selectedCoin.symbol})]}),e.jsx("div",{id:n.current})]})]}),e.jsxs("div",{className:"mt-5",children:[e.jsx("label",{htmlFor:"crypto_transaction_hash",children:"Transaction hash"}),e.jsx("input",{className:"font-mono",id:"crypto_transaction_hash",name:"crypto[transaction_hash]",required:!0,type:"text"})]}),e.jsxs("div",{className:"md-flex",children:[e.jsxs("div",{className:"mt-5 md-w-1/2",children:[e.jsx("label",{htmlFor:"crypto_donation_date",children:"Date of donation"}),e.jsx("input",{className:"crypto-date-field",id:"crypto_donation_date",name:"crypto[donation_date]",required:!0,type:"date"})]}),e.jsxs("div",{className:"mt-5 md-ml-5 md-w-1/2",children:[e.jsx("label",{htmlFor:"crypto_donation_time",children:"Approximate time"}),e.jsxs("div",{className:"input-field-container",children:[e.jsx("input",{className:"pr-3","data-parsley-errors-container":`#${o.current}`,id:"crypto_donation_time",name:"crypto[donation_time]",required:!0,type:"text"}),e.jsx("span",{className:"postinput",children:e.jsx("img",{height:"18",src:u,width:"18"})})]}),e.jsx("div",{id:o.current})]})]}),e.jsxs("div",{className:"mt-5",children:[e.jsx("label",{htmlFor:"crypto_name",children:"Enter your name"}),e.jsx("input",{id:"crypto_name",name:"crypto[name]",required:!0,type:"text"})]}),e.jsxs("div",{className:"mt-5",children:[e.jsx("label",{htmlFor:"crypto_email",children:"Enter an email for your tax receipt"}),e.jsx("input",{id:"crypto_email",name:"crypto[email]",required:!0,type:"email"})]}),e.jsxs("div",{className:"mt-5",children:[e.jsx("label",{htmlFor:"crypto_special_notes",children:"Additional Notes (optional)"}),e.jsx("textarea",{id:"crypto_special_notes",name:"crypto[special_notes]",type:"text"})]}),e.jsxs(p,{componentName:"RateLimitedRecaptchaForm",children:[e.jsx("div",{className:"text-cw-red-text-small mb-1 -text-left","x-text":"recaptchaError"}),e.jsxs("button",{className:"button cw-button w-full my-5",type:"submit","x-on:click.prevent":"submit",":disabled":"submitting",children:[e.jsx("i",{className:"cw-icon-loop cw-icon-spin mr-1","x-show":"submitting"}),"Log Donation"]})]})]})]})});export{b as default};
2//# sourceMappingURL=Form-p98wm7IW.js.map

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.