PageSourceSearch

https://shop.charitybuzz.com/_next/static/chunks/267-e03fb620614d01eb.js

js charitybuzz.com collected 2026-10-02 03:33:01 UTC 28,355 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[267],{6924:function(e,t,l){"use strict";var a=l(5893),n=l(7294),r=l(1580),i=l(7784),s=l(5340);t.Z=e=>{let t=(0,r.Z)({...e,handleValidate:e=>/^[0-9]*(\.[0-9]{2})?$/.test(e)?null:"Value does not match pattern."}),l=(0,n.useMemo)(()=>!t.value||t.focused||t.error?t.value:(0,i.$1)(parseFloat(t.value)),[t.value,t.focused,t.error]);return(0,a.jsx)(s.Z,{...e,field:t,handleChange:e=>{/^[0-9]*(\.[0-9]{0,2})?$/.test(e.target.value)&&t.setValue(e.target.value)},customValue:l})}},9128:function(e,t,l){"use strict";var a=l(5893),n=l(1580),r=l(7784),i=l(1354),s=l.n(i),o=l(2479),d=l.n(o);t.Z=e=>{let t=(0,n.Z)({...e,validateOnChange:!0}),handleChange=e=>{t.handleFocus(),t.setValue(e===t.value?"":e),t.handleBlur()};return(0,a.jsxs)("div",{className:(0,r.Ch)(s().wrapper,t.error?s().error:void 0,e.disabled?d().disabled:void 0),children:[(0,a.jsx)("div",{className:d().field,children:["true","false"].map((l,n)=>(0,a.jsx)("button",{type:"button",className:(0,r.Ch)(d().button,t.value===l?d().selected:void 0),disabled:e.disabled,onClick:()=>handleChange(l),children:"true"===l?"Yes":"No"},n))}),(t.error||e.helper)&&(0,a.jsx)("small",{className:s().small,children:t.error||e.helper})]})}},729:function(e,t,l){"use strict";l.d(t,{Z:function(){return DateField_DateField}});var a=l(5893),n=l(7294),r=l(4071),i=l(1580),s=l(7784),o=l(5340),d=l(6530),u=l(4529),c=l(4759),h=l.n(c);let getDateParts=e=>({seconds:e.getSeconds(),minutes:e.getMinutes(),hours:e.getHours(),day:e.getDate(),monthIndex:e.getMonth(),year:e.getFullYear()}),getDaysInMonth=(e,t)=>new Date(e,11===t?0:t+1,0).getDate(),getDayOfWeek=(e,t,l)=>new Date(e,t,l).getDay(),getPrevMonth=e=>0===e?11:e-1,getNextMonth=e=>11===e?0:e+1,getPrevYear=(e,t)=>11===e?t-1:t,getNextYear=(e,t)=>0===e?t+1:t,getDatesArray=(e,t,l)=>[...Array(l)].map((l,a)=>new Date(e,t,a+1,0,0,0));var Calendar_Calendar=e=>{let[t,l]=(0,n.useState)(0),[r,i]=(0,n.useState)(0),[o,c]=(0,n.useState)([]),_=(0,n.useRef)([]);(0,n.useEffect)(()=>{let t=e.value.start||e.value.end||new Date,a=getDateParts(t);l(a.monthIndex),i(a.year)},[e.value]),(0,n.useEffect)(()=>{let e=getDaysInMonth(r,t),l=getDatesArray(r,t,e),a=getDayOfWeek(r,t,1),n=getPrevMonth(t),i=getPrevYear(n,r),s=getDaysInMonth(i,n),o=getDatesArray(i,n,s),d=getDayOfWeek(r,t,e),u=getNextMonth(t),h=getNextYear(u,r),_=getDaysInMonth(h,u),p=getDatesArray(h,u,_);c([...o.slice(s-a,s),...l,...p.slice(0,6-d)])},[t,r]);let p=(0,n.useCallback)(()=>{let e=getPrevMonth(t),a=getPrevYear(e,r);l(e),i(a)},[t,r]),f=(0,n.useCallback)(()=>{let e=getNextMonth(t),a=getNextYear(e,r);l(e),i(a)},[t,r]),m=(0,n.useCallback)(t=>{e.onChange(t)},[e.onChange]),v=(0,n.useCallback)(e=>e.getMonth()!==t,[t]),g=(0,n.useCallback)(t=>Object.values(e.value).some(e=>!!e&&e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()),[e.value]),x=(0,n.useCallback)((e,t,l)=>!!t&&!!l&&e>t&&e<l,[]),handleMouseOverDay=t=>{_.current.forEach(l=>{let a=new Date(l.dataset.iso);if(e.startField.focused){let n=x(a,t,e.value.end);l.classList[n?"add":"remove"](h().hovered)}if(e.endField.focused){let n=x(a,e.value.start,t);l.classList[n?"add":"remove"](h().hovered)}})};return(0,a.jsxs)("div",{className:h().root,onMouseDown:e=>e.preventDefault(),children:[(0,a.jsxs)("div",{className:h().nav,children:[(0,a.jsx)("button",{type:"button",className:h().navButton,onClick:p,children:(0,a.jsx)(d.Z,{size:16})}),(0,a.jsx)("div",{className:h().monthYear,children:(0,s.p6)(new Date(r,t,1),void 0,{year:"numeric",month:"long"})}),(0,a.jsx)("button",{type:"button",className:h().navButton,onClick:f,children:(0,a.jsx)(u.Z,{size:16})})]}),(0,a.jsx)("ul",{className:h().week,children:["Su","Mo","Tu","We","Th","Fr","Sa"].map((e,t)=>(0,a.jsx)("li",{children:e},t))}),(0,a.jsx)("ul",{className:h().days,onMouseLeave:()=>{_.current.forEach(e=>{e.classList.remove(h().hovered)})},children:o.map((t,l)=>(0,a.jsx)("li",{children:(0,a.jsx)("button",{ref:e=>e?_.current[l]=e:null,type:"button","data-iso":t.toISOString(),"data-year":t.getFullYear(),"data-month":t.getMonth(),"data-day":t.getDate(),className:(0,s.Ch)(h().day,v(t)?h().otherDay:void 0,g(t)?h().startOrEnd:void 0,x(t,e.value.start,e.value.end)?h().inRange:void 0),onMouseOver:()=>handleMouseOverDay(t),onClick:()=>m(t),children:t.getDate()})},l))})]})},_=l(1639),p=l.n(_),DateField_DateField=e=>
1{let[t,l]=(0,n.useState)(""),[d,u]=(0,n.useState)(""),[c,h]=(0,n.useState)(null),[_,f]=(0,n.useState)(null),m=(0,n.useRef)(null),v=(0,n.useRef)(null),g=(0,n.useMemo)(()=>"".concat(e.name,"_start"),[e.name]),x=(0,n.useMemo)(()=>"".concat(e.name,"_end"),[e.name]),handleValidate=e=>/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}T[0-9]{2}\:[0-9]{2}\:[0-9]{2}\.[0-9]{3}Z$/.test(e)?null:"Value does not match pattern.",validateDateInput=e=>{if(!/^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$/.test(e))return null;let[t,l,a]=e.split("/").map(e=>parseInt(e));if(t<1||t>12)return null;let n=getDaysInMonth(a,t-1);return l<1||l>n?null:new Date(a,t-1,l,0,0,0)},onChange=t=>{let l={},a=!1,n=null;t.name===g&&(l={start:handleValidate(t.value)?null:t.value,end:handleValidate(j.value)?null:j.value},a=t.valid&&j.valid,n=t.error||j.error),t.name===x&&(l={start:handleValidate(b.value)?null:b.value,end:handleValidate(t.value)?null:t.value},a=t.valid&&b.valid,n=t.error||b.error),e.onChange&&e.onChange({name:e.name,value:JSON.stringify(l),valid:a,error:n})},b=(0,i.Z)({...e,name:g,initialValue:"",onChange,handleValidate}),j=(0,i.Z)({...e,name:x,initialValue:"",onChange,handleValidate}),C=(0,r.Z)(b.focused||j.focused,0),handleChange=e=>{let{value:t}=e.target;if(/^[0-9\/]*$/.test(t)){if(b.focused){l(t);let e=validateDateInput(t);e?(h(e),b.setValue(e.toISOString()),_&&e>_&&(f(null),u(""),j.setValue(""))):(h(null),b.setValue(t))}if(j.focused){u(t);let e=validateDateInput(t);e?(f(e),j.setValue(e.toISOString()),c&&e<c&&(h(null),l(""),b.setValue(""))):(f(null),j.setValue(t))}}};return(0,n.useEffect)(()=>{if(e.initialValue){let{start:t,end:a}=e.initialValue,n=t&&!handleValidate(t),r=a&&!handleValidate(a);if(n&&r){let e=new Date(t),n=new Date(a);e<n&&(l((0,s.p6)(e,"date")),h(e),b.setValue(t),u((0,s.p6)(n,"date")),f(n),j.setValue(a))}}},[]),(0,a.jsxs)(n.Fragment,{children:[(0,a.jsxs)("div",{className:p().fields,children:[(0,a.jsx)(o.Z,{ref:m,field:b,name:g,label:"Start date",helper:e.helper,handleChange:handleChange,required:e.required,customValue:t,onChange:()=>{}}),(0,a.jsx)(o.Z,{ref:v,field:j,name:x,label:"End date",helper:e.helper,handleChange:handleChange,required:e.required,customValue:d,onChange:()=>{}})]}),C&&(0,a.jsx)("div",{style:{width:"100%",maxWidth:"400px"},children:(0,a.jsx)(Calendar_Calendar,{startField:b,endField:j,onChange:e=>{var t,a,n,r,i,o;b.focused&&(h(e),l((0,s.p6)(e,"date")),b.setValue(e.toISOString()),_?e>_?(f(null),u(""),j.setValue(""),null===(a=v.current)||void 0===a||a.focus()):null===(n=m.current)||void 0===n||n.blur():null===(t=v.current)||void 0===t||t.focus()),j.focused&&(f(e),u((0,s.p6)(e,"date")),j.setValue(e.toISOString()),c?e<c?(h(null),l(""),b.setValue(""),null===(i=m.current)||void 0===i||i.focus()):null===(o=v.current)||void 0===o||o.blur():null===(r=m.current)||void 0===r||r.focus())},value:{start:c,end:_}})})]})}},9590:function(e,t,l){"use strict";l.d(t,{Z:function(){return DropdownField_DropdownField}});var a=l(5893),n=l(7294),r=l(1580),icons_CheckIcon=e=>(0,a.jsx)("svg",{viewBox:"0 0 448 512",width:e.size,height:e.size,children:(0,a.jsx)("path",{d:"M437.7 106.3c3.1 3.1 3.1 8.2 0 11.3l-272 272c-3.1 3.1-8.2 3.1-11.3 0l-144-144c-3.1-3.1-3.1-8.2 0-11.3s8.2-3.1 11.3 0L160 372.7 426.3 106.3c3.1-3.1 8.2-3.1 11.3 0z"})}),i=l(6493),s=l(7784),o=l(5340),d=l(7424),u=l.n(d),DropdownField_DropdownField=e=>{let[t,l]=(0,n.useState)(e.options),[d,c]=(0,n.useState)(""),h=(0,n.useRef)(null),_=(0,r.Z)({...e,handleValidate:t=>e.options.some(e=>e.value===t)?null:"Value is not an available option."}),handleSelectOption=e=>{c(e.label),(0,s.gw)(1).then(()=>{var e;return null===(e=h.current)||void 0===e?void 0:e.blur()})};(0,n.useEffect)(()=>{e.onReset&&e.onReset(()=>{_.reset(),c("")})},[_.reset]),(0,n.useEffect)(()=>{if(!_.touched&&e.initialValue){let t=e.options.find(t=>t.value===e.initialValue);c(t?t.label:e.initialValue)}},[]),(0,n.useEffect)(()=>{let t=e.options.filter(e=>e.label.toLowerCase().includes(d.toLowerCase()));l(t);let a=e.options.find(e=>e.label===d);_.setValue(a?a.value:d?"-":"")},[e.options,d]);let p=(0,n.useMemo)(()=>e.options.find(e=>e.value===_.value),[e.options,_.value]);return(0,a.jsxs)(o.Z,{...e,ref:h,field:_,handleChange:e=>{c(e.target.value)}
1,customValue:p?p.label:d,wrapperClassName:_.focused?u().focused:void 0,fieldClassName:u().field,children:[(0,a.jsx)("button",{type:"button",className:u().button,onMouseDown:e=>e.preventDefault(),onClick:()=>{var e,t;return _.focused?null===(e=h.current)||void 0===e?void 0:e.blur():null===(t=h.current)||void 0===t?void 0:t.focus()},tabIndex:-1,children:(0,a.jsx)(i.Z,{size:16})}),_.focused&&!!t.length&&(0,a.jsx)("ul",{className:u().options,children:t.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsxs)("button",{type:"button",className:u().option,onMouseDown:e=>e.preventDefault(),onClick:()=>handleSelectOption(e),children:[(0,a.jsx)("span",{children:e.label}),e===p&&(0,a.jsx)(icons_CheckIcon,{size:16})]})},t))})]})}},9342:function(e,t,l){"use strict";l.d(t,{Z:function(){return FileField_FileField}});var a=l(5893),n=l(7294),r=l(1580),icons_CheckCircleIcon=e=>(0,a.jsx)("svg",{viewBox:"0 0 512 512",width:e.size,height:e.size,fill:e.color,children:(0,a.jsx)("path",{d:"M256 16a240 240 0 1 1 0 480 240 240 0 1 1 0-480zm0 496A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM357.7 197.7c3.1-3.1 3.1-8.2 0-11.3s-8.2-3.1-11.3 0L224 308.7l-58.3-58.3c-3.1-3.1-8.2-3.1-11.3 0s-3.1 8.2 0 11.3l64 64c3.1 3.1 8.2 3.1 11.3 0l128-128z"})}),icons_HazardIcon=e=>(0,a.jsx)("svg",{viewBox:"0 0 512 512",width:e.size,height:e.size,fill:e.color,children:(0,a.jsx)("path",{d:"M20.7 412.3c-3.1 5.3-4.7 11.2-4.7 17.3c0 19 15.4 34.4 34.4 34.4H461.6c19 0 34.4-15.4 34.4-34.4c0-6.1-1.6-12.1-4.7-17.3L290.3 67.7C283.2 55.5 270.1 48 256 48s-27.2 7.5-34.3 19.7L20.7 412.3zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4H50.4C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c4.4 0 8 3.6 8 8V328c0 4.4-3.6 8-8 8s-8-3.6-8-8V168c0-4.4 3.6-8 8-8zM240 384a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})}),icons_UploadIcon=e=>(0,a.jsx)("svg",{viewBox:"0 0 384 512",width:e.size,height:e.size,fill:e.color,children:(0,a.jsx)("path",{d:"M197.7 34.3c-3.1-3.1-8.2-3.1-11.3 0l-136 136c-3.1 3.1-3.1 8.2 0 11.3s8.2 3.1 11.3 0L184 59.3V376c0 4.4 3.6 8 8 8s8-3.6 8-8V59.3L322.3 181.7c3.1 3.1 8.2 3.1 11.3 0s3.1-8.2 0-11.3l-136-136zM8 464c-4.4 0-8 3.6-8 8s3.6 8 8 8H376c4.4 0 8-3.6 8-8s-3.6-8-8-8H8z"})}),i=l(4860),s=l(3789),o=l(5855),d=l(7784),u=l(1354),c=l.n(u),h=l(5176),_=l.n(h),FileField_FileField=e=>{let t=(0,r.Z)({...e,validateOnChange:!0}),[l,u]=(0,n.useState)(!1),[h,p]=(0,n.useState)(""),f=(0,n.useMemo)(()=>t.value.slice(t.value.lastIndexOf("/")+1),[t.value]);return(0,a.jsx)("div",{className:(0,d.Ch)(c().wrapper,h||t.error?c().error:void 0,e.disabled?c().disabled:void 0),children:(0,a.jsxs)("label",{htmlFor:"file_field",className:(0,d.Ch)(c().field,_().field),children:[h||t.error?(0,a.jsx)(icons_HazardIcon,{size:24,color:"#ec4949"}):f?(0,a.jsx)(icons_CheckCircleIcon,{size:24,color:"#29d97a"}):(0,a.jsx)(icons_UploadIcon,{size:24,color:e.disabled?"#abafb1":void 0}),(0,a.jsxs)("span",{className:_().text,children:[(0,a.jsx)("span",{className:(0,d.Ch)(c().label,_().label),children:l?"Uploading...":f||e.label}),(h||t.error||e.helper)&&(0,a.jsx)("small",{className:c().small,children:h||t.error||e.helper})]}),f&&(0,a.jsx)("button",{type:"button",className:_().button,onClick:()=>{(0,s.Z)(f).then(e=>{e?t.setValue(""):p("File could not be deleted.")})},children:(0,a.jsx)(i.Z,{size:24})}),(0,a.jsx)("input",{type:"file",accept:e.accept.join(","),className:_().input,id:e.name,name:e.name,value:"",disabled:e.disabled||l,onChange:l=>{var a;if(null===(a=l.target.files)||void 0===a?void 0:a.length){let a=l.target.files[0];if(a.size>1048576*(e.maxFileSizeMb||10)){p("File size is too large.");return}if(!e.accept.includes(a.type)){p("File type is not supported.");return}u(!0),p(""),t.handleFocus(),(0,o.Z)({file:a}).then(e=>{e?(f&&(0,s.Z)(f),t.setValue(e.url)):p("File could not be uploaded."),t.handleBlur(),u(!1)})}}})]})})}},606:function(e,t,l){"use strict";var a=l(5893),n=l(7294),r=l(1580),i=l(7784),s=l(2572),o=l(5686),d=l(1354),u=l.n(d),c=l(5692),h=l.n(c);t.Z=e=>{let t=(0,r.Z)({...e,validateOnChange:!0,initialValue:""}),[l,d]=(0,n.useState)([]),c=(0,n.useRef)({}),handleChange=(l,a)=>{t.handleFocus(),a?d(t=>e.selectMultiple?Array.from(new Set(t.concat(l))):[l]):d(e=>e.filter(e=>e!==l)),t.handleBlur(),e.selectMultiple||"checkboxlist"!==e.type||Object.entries(c.current).forEach(e
1=>{let[t,a]=e;t!==l&&a()})},handleInputChange=e=>{handleChange(e.target.id,e.target.checked)},handleFieldChange=e=>{handleChange(e.name,"true"===e.value)};(0,n.useEffect)(()=>{t.setValue(l.length?JSON.stringify(l):"")},[l]);let _=(0,n.useMemo)(()=>e.initialValue?e.initialValue.reduce((t,l,a)=>e.options.find(e=>e.value===l)?!e.selectMultiple&&a>0&&t.length?t:[...t,l]:t,[]):[],[e.initialValue,e.options,e.selectMultiple]);return(0,n.useEffect)(()=>{!t.touched&&_.length&&d(_)},[_]),(0,a.jsxs)("div",{className:(0,i.Ch)(u().wrapper,e.disabled?h().disabled:void 0,t.error?h().error:void 0),children:[(0,a.jsx)("fieldset",{children:e.options.map((t,n)=>"list"===e.type?(0,a.jsxs)("div",{className:(0,i.Ch)(u().field,h().field,l.some(e=>e===t.value)?h().checked:void 0),children:[(0,a.jsx)("input",{type:"checkbox",className:h().input,id:t.value,name:e.name,checked:l.some(e=>e===t.value),onChange:handleInputChange,disabled:e.disabled}),(0,a.jsxs)("label",{htmlFor:t.value,className:h().label,children:[t.image&&(0,a.jsx)(s.Z,{src:t.image,alt:t.label,width:100,height:100,className:h().image}),(0,a.jsxs)("span",{className:h().text,children:[(0,a.jsx)("span",{children:t.label}),t.description&&(0,a.jsx)("small",{children:t.description})]})]})]},n):(0,a.jsx)(o.Z,{name:t.value,label:t.label,onChange:handleFieldChange,onReset:e=>c.current[t.value]=e,disabled:e.disabled,initialValue:_.some(e=>e===t.value)?"true":void 0},n))}),(t.error||e.helper)&&(0,a.jsx)("small",{className:(0,i.Ch)(u().small,h().small),children:t.error||e.helper})]})}},6101:function(e,t,l){"use strict";l.d(t,{Z:function(){return MediaField_MediaField}});var a=l(5893),n=l(7294),r=l(1580),icons_CloudArrowUpRegularIcon=e=>(0,a.jsx)("svg",{viewBox:"0 0 640 512",width:e.size,height:e.size,children:(0,a.jsx)("path",{fill:e.color,d:"M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2H504 144c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2v0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480v-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144H464h40 8zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39V384c0 13.3 10.7 24 24 24s24-10.7 24-24V249.9l39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"})}),i=l(4860),s=l(3789),o=l(5855),d=l(7784),u=l(2572),c=l(1354),h=l.n(c),_=l(2297),p=l.n(_),MediaField_MediaField=e=>{let t=(0,r.Z)({...e,validateOnChange:!0,initialValue:""}),[l,c]=(0,n.useState)([]),[_,f]=(0,n.useState)(!1),[m,v]=(0,n.useState)(""),[g,x]=(0,n.useState)(!1),getFileName=e=>e.slice(e.lastIndexOf("/")+1),handleUpload=a=>
1{if(null==a?void 0:a.length){let n=Array.from(e.uploadMultiple?a:[a[0]]),r=n.some(t=>t.size>1048576*(e.maxFileSizeMb||10)),i=n.some(t=>!e.accept.includes(t.type));if(r){v("Some file size is too large.");return}if(i){v("Some file type is not supported.");return}f(!0),v(""),t.handleFocus();let d=n.map(e=>(0,o.Z)({file:e}));Promise.all(d).then(a=>{let n=a.filter(e=>null!==e),r=a.filter(e=>null===e);if(n.length){let t=n.map(e=>e.url);e.uploadMultiple?c(e=>e.concat(t)):(l.forEach(e=>{(0,s.Z)(getFileName(e))}),c(t))}r.length&&v("Some file could not be uploaded."),t.handleBlur(),f(!1)})}},handleRemove=e=>{(0,s.Z)(getFileName(e)).then(t=>{t?c(t=>t.filter(t=>t!==e)):v("File could not be deleted.")})},handleDrag=(e,t)=>{e.preventDefault(),e.stopPropagation(),x(t)};return(0,n.useEffect)(()=>{t.setValue(l.length?JSON.stringify(l):"")},[l]),(0,n.useEffect)(()=>{var l;!t.touched&&(null===(l=e.initialValue)||void 0===l?void 0:l.length)&&c(e.uploadMultiple?e.initialValue:[e.initialValue[0]])},[e.initialValue,e.uploadMultiple]),(0,a.jsxs)("div",{className:(0,d.Ch)(h().wrapper,e.disabled||_?p().disabled:void 0,t.error?p().error:void 0,g?p().dragging:void 0),children:[l.length&&!e.uploadMultiple?(0,a.jsx)(u.Z,{src:l[0],alt:"",width:400,height:300,shape:"4x3"}):(0,a.jsxs)("label",{htmlFor:e.name,className:p().label,onDragEnter:e=>handleDrag(e,!0),onDragOver:e=>handleDrag(e,!0),onDragLeave:e=>handleDrag(e,!1),onDrop:e=>{handleDrag(e,!1),handleUpload(e.dataTransfer.files)},children:[(0,a.jsx)("input",{type:"file",accept:e.accept.join(","),className:p().input,id:e.name,name:e.name,value:"",multiple:e.uploadMultiple,onChange:e=>{handleUpload(e.target.files)},disabled:e.disabled||_}),(0,a.jsx)(icons_CloudArrowUpRegularIcon,{size:64}),(0,a.jsx)("span",{className:p().button,children:_?"Uploading...":"Upload"}),(0,a.jsx)("small",{children:"or"}),(0,a.jsx)("small",{children:"Drag and drop from your computer"})]}),(m||t.error||e.helper)&&(0,a.jsx)("small",{className:(0,d.Ch)(h().small,p().small),children:m||t.error||e.helper}),(0,a.jsx)("ul",{children:l.map((e,t)=>(0,a.jsxs)("li",{className:p().item,children:[(0,a.jsx)("span",{className:p().filename,children:getFileName(e)}),(0,a.jsx)("button",{type:"button",className:p().remove,onClick:()=>handleRemove(e),children:(0,a.jsx)(i.Z,{size:20})})]},t))})]})}},7193:function(e,t,l){"use strict";l.d(t,{Z:function(){return NumberField_NumberField}});var a=l(5893),n=l(7294),r=l(1580),i=l(6493),icons_ChevronUpIcon=e=>(0,a.jsx)("svg",{viewBox:"0 0 512 512",width:e.size,height:e.size,children:(0,a.jsx)("path",{d:"M250.3 114.3c3.1-3.1 8.2-3.1 11.3 0l216 216c3.1 3.1 3.1 8.2 0 11.3s-8.2 3.1-11.3 0L256 131.3 45.7 341.7c-3.1 3.1-8.2 3.1-11.3 0s-3.1-8.2 0-11.3l216-216z"})}),s=l(5340),o=l(8149),d=l.n(o),NumberField_NumberField=e=>{let t=(0,n.useRef)(null),l=(0,r.Z)({...e,handleValidate:e=>/^[0-9]*$/.test(e)?null:"Value is not a number."}),handleIncrement=()=>{var e;let a=l.value?parseInt(l.value):0;l.setValue((a+1).toString()),null===(e=t.current)||void 0===e||e.focus()},handleDecrement=()=>{var e;let a=l.value?parseInt(l.value):0;l.setValue((a-1<0?0:a-1).toString()),null===(e=t.current)||void 0===e||e.focus()};return(0,a.jsxs)(s.Z,{...e,ref:t,field:l,handleChange:e=>{/^[0-9]*$/.test(e.target.value)&&l.setValue(e.target.value)},handleKeyDown:e=>{"ArrowUp"===e.key&&(e.preventDefault(),handleIncrement()),"ArrowDown"===e.key&&(e.preventDefault(),handleDecrement())},fieldClassName:d().field,inputClassName:d().input,children:[(0,a.jsx)("button",{type:"button",className:d().increment,onMouseDown:e=>e.preventDefault(),onClick:handleIncrement,tabIndex:-1,children:(0,a.jsx)(icons_ChevronUpIcon,{size:16})}),(0,a.jsx)("button",{type:"button",className:d().decrement,onMouseDown:e=>e.preventDefault(),onClick:handleDecrement,tabIndex:-1,children:(0,a.jsx)(i.Z,{size:16})})]})}},6700:function(e,t,l){"use strict";var a=l(5893),n=l(7294),r=l(1580),i=l(7784),s=l(5340);t.Z=e=>{let t=(0,r.Z)({...e,handleValidate:e=>/^[0-9]{10}$/.test(e)?null:"Value does not match pattern."}),l=(0,n.useMemo)(()=>!t.value||t.focused||t.error?t.value:(0,i.un)(t.value),[t.value,t.focused,t.error]);return(0,a.jsx)(s.Z,{...e,type:"tel",field:t,handleChange:e=>{/^[0-9]*$/.test(e.target.value)&&t.setValue(e.target.value)},customValue:l})}},6580:function(e,t,l){"use strict";var a=l(5893),n=l(1580),r=l(5340),i=l(2197),s=l.n(i);t.Z=e=>{let t=(0,n.Z)(e);return(0,a.jsx)(r.Z,{type:"textarea",...e,field:t,handleChange:e=>{t.setValue(e.target.value)},inputClassName:s().textarea})}},4393:function(e,t,l){"use strict";l.d(t,{Z:function(){return context_IntakeProvider},a:function(){return useIntake}});var a=l(5893),n=l(1163),r=l(7294),i=l(7784),s=l(5393);let GetUserSession=async e=>{try{return await (0,s.Z)({query:"\n        query ($id: ID!) {\n          UserSession (id: $id) {\n            id\n            completed\n          }\n        }\n      ",variables:{id:e}}).then(e=>{var t;return(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.UserSession)?e.data.UserSession:(null==e||e.errors,null)})}catch(e){return console.error(e),null}},o=(0,r.createContext)({sessionId:"",questionSetValid:!1,setQuestionSetValid:()=>{}}),useIntake=()=>(0,r.useContext)(o);var context_IntakeProvider=e=>{let t=(0,n.useRouter)(),[l,s]=(0,r.useState)(""),[d,u]=(0,r.useState)(!1),[c,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=(0,i.iz)(t.query.sessionId||"");e&&(u(!0),GetUserSession(e).then(t=>{t&&s(e),u(!1)}))},[t.query.sessionId]);let _=(0,r.useMemo)(()=>({sessionId:l,questionSetValid:c,setQuestionSetValid:h}),[l,c,h]);return(0,a.jsx)(o.Provider,{value:_,children:l||d?e.children:"Session not found."})}},6493:function(e,t,l){"use strict";var a=l(5893);t.Z=e=>(0,a.jsx)("svg",{viewBox:"0 0 512 512",width:e.size,height:e.size,fill:e.color,children:(0,a.jsx)("path",{d:"M250.3 397.7c3.1 3.1 8.2 3.1 11.3 0l216-216c3.1-3.1 3.1-8.2 0-11.3s-8.2-3.1-11.3 0L256 380.7 45.7 170.3c-3.1-3.1-8.2-3.1-11.3 0s-3.1 8.2 0 11.3l216 216z"})})},619:function(e,t,l){"use strict";l.d(t,{Z:function(){return intake_Layout}});var a=l(5893),n=l(247),r=l(4393),i=l(975),s=l(7059),o=l.n(s),Footer_Footer=()=>{let{isMobile:e}=(0,i.EV)(),{questionSetValid:t}=(0,r.a)();return(0,a.jsx)("footer",{className:o().footer,children:(0,a.jsxs)("div",{className:o().container,children:[(0,a.jsx)("button",{type:"button",className:o().back,children:"Back"}),(0,a.jsx)(n.Z,{type:"route",variant:"primary",size:e?"medium":"large",disabled:!t,children:"Next"})]})})},d=l(2572),u=l(7923),c=l.n(u),Header_Header=()=>{let{isMobile:e}=(0,i.EV)();return(0,a.jsx)("header",{className:c().header,children:(0,a.jsxs)("div",{className:c().container,children:[(0,a.jsx)(d.Z,{src:"/CharitybuzzLogo.svg",width:180,height:13,alt:"Charitybuzz logo",className:c().logo}),(0,a.jsx)(n.Z,{type:"button",variant:"secondary",size:e?"medium":"large",children:"Exit"})]})})},h=l(7294),_=l(6817),p=l.n(_);let f=["Initial","Details","Review"];var Progress_Progress=()=>{let handleClick=e=>{console.log("Clicked step:",e)};return(0,a.jsx)("div",{className:p().root,children:f.map((e,t)=>(0,a.jsxs)(h.Fragment,{children:[0!==t&&(0,a.jsx)("div",{className:p().separator}),(0,a.jsxs)("button",{type:"button",className:p().button,onClick:()=>handleClick(e),children:[(0,a.jsx)("span",{className:p().circle,children:t+1}),(0,a.jsx)("span",{className:p().label,children:e})]})]},t))})},m=l(5463),v=l.n(m),Main_Main=e=>(0,a.jsx)("main",{className:v().main,children:(0,a.jsxs)("div",{className:v().container,children:[(0,a.jsx)(Progress_Progress,{}),e.children]})}),g=l(4810),x=l.n(g),intake_Layout=e=>(0,a.jsx)("div",{className:x().layout,children:(0,a.jsxs)(r.Z,{children:[(0,a.jsx)(Header_Header,{}),(0,a.jsx)(Main_Main,{children:e.children}),(0,a.jsx)(Footer_Footer,{})]})})},3789:function(e,t,l){"use strict";var a=l(7019);let DeleteFile=async e=>{try{let t={url:"/api/aws/s3/delete-file",method:"POST",body:JSON.stringify({name:e})},{data:l}=await (0,a.Z)(t);if(!l)throw Error("Delete failed.");return!0}catch(e){return console.error(e),null}};t.Z=DeleteFile},5855:function(e,t,l){"use strict";var a=l(7632),n=l(7019),r=l(4155);let UploadFile=async e=>{try{let t="".concat((0,a.Z)(),"-").concat(e.file.name),l={url:"/api/aws/s3/get-presigned-url",method:"POST",body:JSON.stringify({name:t})},{url:i}=await (0,n.Z)(l);if(!i)throw Error("No presigned URL.");let s={method:"PUT",headers:new Headers({"Content-Type":e.file.type}),body:e.file};return await fetch(i,s).then(e=>{if(!e.ok||200!==e.status)throw Error("Upload failed.");return{name:t,url:"https://".concat(r.env.NEXT_PUBLIC_DEV_AWS_S3_BUCKET_NAME,".s3.").concat(r.env.NEXT_PUBLIC_DEV_AWS_REGION,".amazonaws.com/").concat(t)}})}catch(e){return console.error(e),null}};t.Z=UploadFile},7059:function(e){e.exports={footer:"Footer_footer__32tWK",container:"Footer_container__2naKy sitewidth",back:"Footer_back__pjHUO"}}
1,7923:function(e){e.exports={header:"Header_header__4s1ap",container:"Header_container__VT19l sitewidth",logo:"Header_logo__sfcKM"}},5463:function(e){e.exports={main:"Main_main__C29Qh",container:"Main_container__nkRwy sitewidth"}},6817:function(e){e.exports={root:"Progress_root__s6Kx4",button:"Progress_button__rta0Y",circle:"Progress_circle__UgU2H flex-center",label:"Progress_label___2dWM",separator:"Progress_separator__fjzEz",active:"Progress_active__8pEVa"}},2479:function(e){e.exports={field:"BooleanField_field__oueUL",button:"BooleanField_button__Nb3HT flex-center",selected:"BooleanField_selected__9tD2C",disabled:"BooleanField_disabled__efUQY"}},4759:function(e){e.exports={root:"Calendar_root__NZRcX",nav:"Calendar_nav___baTo",monthYear:"Calendar_monthYear__XjyRz flex-center",navButton:"Calendar_navButton__6ic8M flex-center",week:"Calendar_week__3AK_k",days:"Calendar_days__s6Zrv",day:"Calendar_day__TWWcW flex-center",otherDay:"Calendar_otherDay__QYAAk Calendar_day__TWWcW flex-center",startOrEnd:"Calendar_startOrEnd__WEoIF",inRange:"Calendar_inRange___WEgA",hovered:"Calendar_hovered___W7Rb"}},1639:function(e){e.exports={fields:"DateField_fields__edV7k"}},7424:function(e){e.exports={field:"DropdownField_field__wiTgW",button:"DropdownField_button__KtvA2 flex-center",options:"DropdownField_options__kARpf",option:"DropdownField_option__kYf3k",focused:"DropdownField_focused__AuHVS"}},5176:function(e){e.exports={input:"FileField_input__swfQt",field:"FileField_field__PcDav",text:"FileField_text__xY6Mr",label:"FileField_label__EKNwo",button:"FileField_button__iSgA0 flex-center"}},5692:function(e){e.exports={input:"ListField_input__8xDzS",field:"ListField_field__B7A0h",checked:"ListField_checked__Pfx6l",label:"ListField_label__ljP9F",image:"ListField_image__JpiJ3",text:"ListField_text__bMZSh",error:"ListField_error__1ReL9",small:"ListField_small__ONJ1Q",disabled:"ListField_disabled__knQcq"}},2297:function(e){e.exports={input:"MediaField_input__Fm53Q",label:"MediaField_label__C2vK7 flex-center",button:"MediaField_button__75gYA",dragging:"MediaField_dragging__U_FA1",item:"MediaField_item__fqBq4",filename:"MediaField_filename__X5TXR",remove:"MediaField_remove__WtZD9 flex-center",error:"MediaField_error__ojgom",small:"MediaField_small__Bnyk1",disabled:"MediaField_disabled__4FriZ"}},8149:function(e){e.exports={field:"NumberField_field__2kf7S",input:"NumberField_input__vgsm5",button:"NumberField_button__LM9p3 flex-center",increment:"NumberField_increment__sHePt NumberField_button__LM9p3 flex-center",decrement:"NumberField_decrement__yE5od NumberField_button__LM9p3 flex-center"}},2197:function(e){e.exports={textarea:"TextareaField_textarea__wgl_a"}},4810:function(e){e.exports={layout:"Layout_layout__uRiHH"}},7632:function(e,t,l){"use strict";let a;l.d(t,{Z:function(){return esm_browser_v4}});let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var r={randomUUID:n};let i=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));var esm_browser_v4=function(e,t,l){if(r.randomUUID&&!t&&!e)return r.randomUUID();e=e||{};let n=e.random||(e.rng||function(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(i)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){l=l||0;for(let e=0;e<16;++e)t[l+e]=n[e];return t}return function(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}(n)}}}]);

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.