1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="28f461b3-88c6-4465-a4ef-fe667080d3f0",e._sentryDebugIdIdentifier="sentry-dbid-28f461b3-88c6-4465-a4ef-fe667080d3f0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3289],{93033:function(e,t,n){n.d(t,{e:function(){return l},l:function(){return i}});var r=n(72579),a=n.n(r);let o=["message","error","err","body.error","body.message","body"];class i extends Error{constructor(e,t="Unknown error"){if(e instanceof Error)super(e.message||t),this.stack=e.stack,this.name=e.name;else{let n=t;if("object"==typeof e&&!Array.isArray(e)&&null!==e){let t;for(let r of o)if("string"==typeof(t=a()(e,r))){n=t;break}}n||(n=JSON.stringify(e)),super(n)}}}let l=(e,t)=>new i(e,t).message},31727:function(e,t,n){n.d(t,{$T:function(){return m},AB:function(){return d},CF:function(){return l},IF:function(){return f},WC:function(){return o},cz:function(){return s}});var r=n(2784),a=n(62724);let o="malaria-default-amounts",i={[o]:{valueA:"control",valueB:"higher-anchor"}},l=e=>Object.prototype.hasOwnProperty.call(i,e),c=e=>"".concat(a.c,".").concat(e),u=(e,t)=>{let{valueA:n,valueB:r}=i[e];return t===n||t===r},s=e=>{try{let t=window.sessionStorage.getItem(c(e));if(u(e,t))return t;let n=window.localStorage.getItem(c(e));if(u(e,n))return n;return null}catch(t){return i[e].valueA}},d=(e,t)=>({["$feature/".concat(e)]:t}),f=()=>{let e=s(o);return e?{[o]:e}:null},m=e=>{let[t,n]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let{valueA:t,valueB:r}=i[e];try{let a=new URLSearchParams(window.location.search).get(e);if(u(e,a)){window.sessionStorage.setItem(c(e),a),n(a);return}let o=s(e);if(null!==o){n(o);return}let i=.5>Math.random()?t:r;window.localStorage.setItem(c(e),i),n(i)}catch(e){n(t)}},[e]),t}},9755:function(e,t,n){n.d(t,{S:function(){return l},l:function(){return i}});var r=n(86635);let a=[{id:"US",countryCodes:["US","AS","GU","MP","PR","UM","VI"],taxDeductibleCountryCodes:["US"],recipients:[r.wf.GWWC_US],defaultCurrencyCode:"USD"},{id:"GB",countryCodes:["GB","AI","BM","IO","VG","KY","FK","GI","MS","PN","SH","GS","GG","JE","IM"],taxDeductibleCountryCodes:["GB"],recipients:[r.wf.GWWC_UK],defaultCurrencyCode:"GBP"},{id:"NL",countryCodes:["NL","AW","CW","SX","BQ"],taxDeductibleCountryCodes:["NL"],recipients:[r.wf.GWWC_UK],defaultCurrencyCode:"EUR"},{id:"EUROPE-OTHER",countryCodes:["AD","AL","AM","AT","AX","BA","BE","BG","BY","CH","CY","CZ","DE","DK","EE","ES","FI","FO","FR","GE","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MC","MD","ME","MK","MT","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA"],taxDeductibleCountryCodes:[],recipients:[r.wf.GWWC_UK],defaultCurrencyCode:"EUR"}],o=["US","GB","NL"];function i(e){return o.includes(e)}function l(e){let t=a.find(t=>t.countryCodes.includes(e))||a[0];return{recipients:t.recipients,defaultCurrencyCode:t.defaultCurrencyCode}}},20182:function(e,t,n){n.d(t,{r:function(){return d}});var r=n(52322),a=n(2784),o=n(15312),i=n(8186),l=n(22169),c=n(83091),u=n(77246);let s=[{value:"why-these-charities",question:"Why these two charities?",answer:"Against Malaria Foundation and Malaria Consortium are consistently ranked by GiveWell as among the most cost-effective ways to save a life anywhere in the world"},{value:"money-to-gwwc",question:"Does any of this money go to Justin or Giving What We Can?",answer:"No. 100% of your donation goes to the charities themselves. Our running costs are covered separately"},{value:"tax-deductible",question:"Is my donation tax-deductible?",answer:(0,r.jsxs)(r.Fragment,{children:["Yes. GWWC donations are tax-deductible in the US, UK, and the Netherlands. If you are in Germany, Canada, Australia, or elsewhere, we recommend you donate through one of our local partners. See the full list"," ",(0,r.jsx)("a",{href:"https://www.givingwhatwecan.org/get-involved/tax-deductibility",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",style:{color:u.E6.brand},children:"here"})]})},{value:"larger-gift",question:"I want to give a larger gift. Whatâs the best way?",answer:(0,r.jsxs)(r.Fragment,{children:["Get in touch with our"," ",(0,r.jsx)("a",{href:"/donate/major-gift",className:"underline underline-offset-2",style:{color:u.E6.brand},children:"major gifts team"})," ","for free, confidential guidance"]})}],d=e=>{let{className:t}=e,[n,l]=(0,a.useState)(["tax-deductible"]);return(0,r.jsx)(o.U.Root,{unstyled:!0,collapsible:!0,value:n,onValueChange:e=>l(e.value),className:(0,i.A)("flex flex-col gap-3",t),children:s.map(e=>(0,r.jsx)(f,{faq:e,isOpen:n.includes(e.value)},e.value))})},f=e=>{let{faq:t,isOpen:n}=e;return(0,r.jsxs)(o.U.Item,{value:t.value,className:(0,i.A)("flex flex-col",n&&"gap-3 rounded-[24px] p-2"),style:n?{backgroundColor:u.E6.muted}:void 0,children:[(0,r.jsxs)(o.U.ItemTrigger,{className:(0,i.A)("flex items-center justify-between text-left",n?"pl-3":"rounded-full py-2 pl-5 pr-2"),style:n?void 0:{backgroundColor:u.E6.muted},children:[(0,r.jsx)("span",{className:"text-balance text-[14px] leading-[1.5] lg:text-[16
1px]",style:{color:u.E6.primaryText},children:t.question}),(0,r.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full",style:{backgroundColor:n?u.E6.secondaryBrand:u.E6.subtle},children:n?(0,r.jsx)(l.Z,{size:20,color:u.E6.white,"aria-hidden":!0}):(0,r.jsx)(c.Z,{size:20,color:u.E6.primaryText,"aria-hidden":!0})})]}),(0,r.jsx)(o.U.ItemContent,{className:(0,i.A)("grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",n?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsx)("div",{className:"rounded-[16px] p-3",style:{backgroundColor:u.E6.white},children:(0,r.jsx)("p",{className:"text-[14px] leading-[1.5] lg:text-[16px]",style:{color:u.E6.primaryText},children:t.answer})})})})]})}},288:function(e,t,n){n.d(t,{Hs:function(){return m},R9:function(){return g},eh:function(){return h},wZ:function(){return f},y0:function(){return x}});var r=n(52322),a=n(2784),o=n(96299),i=n(17969),l=n(32256),c=n(77246),u=n(9755),s=n(36931);let d=o.ou.utc().toISODate(),f=e=>{var t,n;let r="USD"===e,{data:a}=(0,i.fL)({variables:{currencyCode:e,date:d},skip:r});return r?1:null!==(n=(0,l.dQ)(null==a?void 0:null===(t=a.ExchangeRate)||void 0===t?void 0:t.rate))&&void 0!==n?n:null},m=(e,t)=>(n,r)=>{if(null==t)return"".concat(e,"â¦");let a=Math.round(n*t);return"".concat(e).concat((0,c.dN)(r?r(a):a))},p=(0,a.createContext)(null),g=e=>{var t;let{children:n,convertAmounts:o=!0}=e,[i,l]=(0,a.useState)(null),{country:d}=(0,s.M)({skip:null!=i}),g=null!==(t=null!=i?i:d)&&void 0!==t?t:"US",h=o?(0,u.S)(g).defaultCurrencyCode:"USD",x=f(h),y=null!=x,w=(0,c.n$)(h,g),b=(0,c.n$)("USD",g),v=m(w,x);return(0,r.jsx)(p.Provider,{value:{countryCode:g,currencyCode:h,setPickedCountryCode:l,localPerUsd:x,rateReady:y,symbol:w,usdSymbol:b,toLocal:e=>null!=x?Math.round(e*x):e,formatMoney:v},children:n})},h=()=>{let e=(0,a.useContext)(p);if(null==e)throw Error("useMalariaCurrency must be used within a MalariaCurrencyProvider");return e},x=()=>(0,r.jsx)(r.Fragment,{children:h().usdSymbol})},86709:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(52322);n(2784);var a=n(97729),o=n.n(a);let i=e=>{let{title:t,description:n,url:a,imageUrl:i,imageAlt:l}=e;return(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("link",{rel:"canonical",href:a}),(0,r.jsx)("meta",{property:"og:site_name",content:"Giving What We Can"}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:n}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:url",content:a}),(0,r.jsx)("meta",{property:"og:image",content:i}),(0,r.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,r.jsx)("meta",{property:"og:image:height",content:"630"}),(0,r.jsx)("meta",{property:"og:image:alt",content:l}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:n}),(0,r.jsx)("meta",{name:"twitter:image",content:i}),(0,r.jsx)("meta",{name:"twitter:image:alt",content:l}),(0,r.jsx)("style",{children:"html:root { scroll-padding-top: 0; }"})]})}},18893:function(e,t,n){n.d(t,{NS:function(){return l},Wo:function(){return c},YA:function(){return o},lC:function(){return i}});var r=n(52322);n(2784);var a=n(77246);let o="/malaria/note-texture.webp",i="drop-shadow(-2px 4px 24px rgba(38,26,5,0.12))",l="-2px 4px 24px 0px rgba(38,26,5,0.12)",c=e=>{let{className:t,children:n,fold:l={width:58,height:68.67}}=e,c="polygon(0 0, 100% 0, 100% calc(100% - ".concat(l.height,"px), calc(100% - ").concat(l.width,"px) 100%, 0 100%)");return(0,r.jsx)("div",{className:t,style:{filter:i},children:(0,r.jsxs)("div",{className:"relative w-full",style:{clipPath:c,backgroundColor:a.E6.white},children:[(0,r.jsx)("img",{src:o,alt:"","aria-hidden":!0,className:"pointer-events-none absolute inset-0 size-full max-w-none object-cover"}),(0,r.jsx)("div",{className:"relative",children:n}
1),(0,r.jsx)("div",{"aria-hidden":!0,className:"absolute bottom-0 right-0",style:{width:l.width,height:l.height,clipPath:"polygon(0 0, 100% 0, 0 100%)",backgroundColor:a.E6.paperFold}})]})})}},17711:function(e,t,n){n.d(t,{En:function(){return l},dZ:function(){return i},g3:function(){return o}});var r=n(31727),a=n(39754);let o=e=>{let{donation_amount:t,currency:n,...r}=e;(0,a.L9)("malaria_page_donate_cta_clicked",{...r,...null!=t&&null!=n?{donation_amount:t,currency:n}:null,page_path:window.location.pathname})},i=e=>{(0,a.L9)("malaria_amounts_experiment_exposure",{...(0,r.AB)(r.WC,e),page_path:window.location.pathname})},l=e=>{var t;(0,a.L9)("homepage_malaria_hero_cta_clicked",{...e,page_path:null!==(t=e.page_path)&&void 0!==t?t:window.location.pathname})}},77246:function(e,t,n){n.d(t,{CT:function(){return f},E6:function(){return j},F7:function(){return c},L0:function(){return m},MF:function(){return l},O:function(){return h},_6:function(){return C},dN:function(){return v},jY:function(){return g},n$:function(){return b},nN:function(){return a.a},qo:function(){return p},vQ:function(){return s},wu:function(){return d},yk:function(){return u},zY:function(){return S}});var r=n(53397),a=n.n(r),o=n(60971),i=n(93001);let l=7,c=6,u=5e3,s=e=>({childrenProtected:.5*e/l,netsProvided:.5*e/c,livesSaved:e/u}),d=25e5,f="299babbf-6a13-4687-8e3e-2b48abca617e",m="https://www.youtube.com/watch?v=BJYfSfh7eWs",p="https://www.youtube.com/@GivingWhatWeCanCommunity",g="https://docs.google.com/document/d/1b509QrZ95yC48iXboaeFbJg6OSo-ioNozBWohkdht8I",h=e=>{let t=new URLSearchParams,n=(null==e?void 0:e.amount)!=null&&Number.isFinite(e.amount)&&e.amount>=5?e.amount:100;return t.set("allocation[".concat(i.a,"]"),"100"),t.set("amount",String(n)),(null==e?void 0:e.monthly)&&t.set("period",o.Q5.Month),(null==e?void 0:e.country)!=null&&t.set("country",e.country),"/donate/payment?".concat(t.toString())},x=new Map,y=e=>{let t;let n=x.get(e);if(void 0!==n)return n;try{var r,a;let n=new Intl.NumberFormat("en-US",{style:"currency",currency:e,currencyDisplay:"symbol"}).formatToParts(0);t=null!==(a=null===(r=n.find(e=>"currency"===e.type))||void 0===r?void 0:r.value)&&void 0!==a?a:e}catch(n){t=e}return x.set(e,t),t},w=new Set(["AU","CA","NZ","FJ","SG","HK","TW","GY","JM","LR","NA","SB","SR","TT","MX","AR","CL","CO","CU","DO","UY"]),b=(e,t)=>"USD"===e&&w.has(t)?"US$":y(e),v=e=>e.toLocaleString("en-US",{maximumFractionDigits:0}),C=(e,t,n)=>1===e?t:n,S=e=>e<=0?0:e<100?10*Math.ceil(e/10):e<1e3?50*Math.ceil(e/50):e<1e4?500*Math.ceil(e/500):e<1e5?1e3*Math.ceil(e/1e3):1e4*Math.ceil(e/1e4),j={primaryText:"#1f0d03",secondaryText:"rgba(31,13,3,0.65)",secondaryTextSolid:"#6a5b52",white:"#ffffff",subtle:"#f8f7f5",muted:"#efece7",borderLight:"#dfdfdf",highlight:"#bae2f0",brand:"#da353a",redLight:"#e43f44",redShadow:"#c62126",secondaryBrand:"#f78c50",paperFold:"#c2c2c2",green:"#5db95d",dar
1kGreen:"#49a549",darkBg:"#d5d0c7",darkDarkBg:"#56473e",border:"#d2cec6",brandTint:"rgba(218,53,58,0.12)",brandSecondary:"#eb651a"}},9532:function(e,t,n){n.d(t,{IS:function(){return f},OT:function(){return c},PU:function(){return d},Vq:function(){return u},x8:function(){return s},y1:function(){return l}});var r=n(52322);n(2784);var a=n(8186),o=n(45598),i=n(77246);let l=e=>{let{id:t,className:n,style:o,children:i}=e;return(0,r.jsx)("section",{id:t,className:(0,a.A)("mx-2 rounded-[26px]",n),style:o,children:i})},c=e=>{let{className:t,style:n,children:o}=e;return(0,r.jsx)("h2",{className:(0,a.A)("font-heading text-[36px] leading-[1.2] lg:text-[48px] text-pretty",t),style:{color:i.E6.primaryText,...n},children:o})},u=e=>{let{className:t,children:n}=e;return(0,r.jsx)("p",{className:(0,a.A)("text-[14px] leading-[1.5] lg:text-[16px]",t),style:{color:i.E6.secondaryText},children:n})},s=e=>{let{href:t,children:n,className:o,onClick:l}=e;return(0,r.jsx)("a",{href:t,onClick:l,className:(0,a.A)("flex items-center justify-center rounded-full px-6 py-3 text-center text-[16px] font-medium leading-[1.5] text-white",o),style:{backgroundColor:i.E6.brand},target:"_blank",rel:"noopener noreferrer",children:n})},d=e=>{let{className:t,style:n,children:o}=e;return(0,r.jsx)("p",{className:(0,a.A)(i.nN.className,"text-center text-[28px] leading-[0.8]",t),style:{color:i.E6.primaryText,...n},children:o})},f=e=>{let{href:t,children:n,className:l,onClick:c}=e;return(0,r.jsxs)("a",{href:t,onClick:c,className:(0,a.A)("flex items-center gap-1.5 text-[14px] leading-[1.5] lg:text-[16px]",l),style:{color:i.E6.secondaryText},target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)("span",{className:"underline underline-offset-2",children:n}),(0,r.jsx)(o.Z,{size:20,"aria-hidden":!0})]})}},36931:function(e,t,n){n.d(t,{M:function(){return o}});var r=n(93033),a=n(2784);let o=e=>{var t;let n=null!==(t=null==e?void 0:e.skip)&&void 0!==t&&t,[o,i]=(0,a.useState)(),[l,c]=(0,a.useState)(),[u,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=new AbortController,t=async()=>{try{s(!0),c(void 0);let{country:t}=await fetch("/api/country",{signal:e.signal}).then(e=>e.json());i(t)}catch(t){e.signal.aborted||c(new r.l(t))}finally{e.signal.aborted||s(!1)}};return n||t(),()=>{e.abort()}},[n]),{country:o,error:l,loading:u}}},93001:function(e,t,n){n.d(t,{a:function(){return r}});let r="gwwc-malaria-fund"},86635:function(e,t,n){var r,a,o,i,l,c;n.d(t,{Qo:function(){return o},_r:function(){return a},eQ:function(){return u},l:function(){return s},wf:function(){return r}}),(i=r||(r={})).GWWC_US="gwwc-us",i.GWWC_UK="gwwc-uk",(l=a||(a={})).CEA_US="cea-us",l.CEA_UK="cea-uk",l.EAA_AU="eaa-au",l.EAAE_AU="eaae-au";let u={"gwwc-us":"US","gwwc-uk":"GB"},s=["gwwc-us","gwwc-uk"];(c=o||(o={})).USD="USD",c.GBP="GBP",c.EUR="EUR"},17969:function(e,t,n){n.d(t,{fL:function(){return s},wD:function(){return d}});var r=n(67862),a=n(81548),o=n(2756),i=n(3842);function l(){let e=(0,r._)(["\n query closestExchangeRate($currencyCode: String!, $date: Date!
1) {\n ExchangeRate: closestExchangeRate(\n currencyCode: $currencyCode\n date: $date\n ) {\n currencyCode\n date\n rate\n }\n }\n"]);return l=function(){return e},e}let c={},u=(0,a.Ps)(l());function s(e){let t={...c,...e};return o.aM(u,t)}function d(e){let t={...c,...e};return i.t(u,t)}},15312:function(e,t,n){n.d(t,{U:function(){return f}});var r=n(52322),a=n(2784),o=n(65865),i=n(2934);let l=(0,n(48690).tv)({slots:{root:"flex flex-col w-full gap-4",item:"rounded-lg bg-subtle border border-primary data-[state=open]:border-emphasized/30 overflow-hidden",itemTrigger:"flex w-full items-center justify-between cursor-pointer text-left font-semibold text-primary outline-none focus-visible:border-focus focus-visible:ring focus-visible:ring-focus data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",itemIndicator:"shrink-0 text-red-primary transition-transform duration-200 [&>svg]:size-5 data-[state=open]:rotate-180",itemContent:"overflow-hidden text-primary data-[state=open]:animate-accordion-expand data-[state=closed]:animate-accordion-collapse motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none"},variants:{size:{sm:{itemTrigger:"px-4 py-3 gap-4 text-sm",itemContent:"px-4 pb-3 text-sm"},md:{itemTrigger:"p-4 md:px-6 md:py-4 gap-6 text-base",itemContent:"px-4 md:px-6 pb-4 text-base"},lg:{itemTrigger:"p-5 md:px-8 md:py-5 gap-6 text-lg",itemContent:"px-5 md:px-8 pb-5 text-base"}}},defaultVariants:{size:"md"}}),{SlotRecipeProvider:c,withContext:u}=(0,i.s)({name:"Accordion"}),s=a.forwardRef((e,t)=>{let{children:n,className:a,size:i="md",unstyled:u=!1,...s}=e,d=l({size:i}),f=u?a:d.root({class:a});return(0,r.jsx)(c,{slots:d,unstyled:u,children:(0,r.jsx)(o.h.Root,{ref:t,...s,className:f,children:n})})});s.displayName="AccordionRoot";let d=u(o.h.Item,"item",{displayName:"AccordionItem"}),f=Object.assign(s,{Root:s,Item:d,ItemTrigger:u(o.h.ItemTrigger,"itemTrigger",{displayName:"AccordionItemTrigger"}),ItemIndicator:u(o.h.ItemIndicator,"itemIndicator",{displayName:"AccordionItemIndicator"}),ItemContent:u(o.h.ItemContent,"itemContent",{displayName:"AccordionItemContent"})})},2934:function(e,t,n){n.d(t,{s:function(){return o}});var r=n(52322),a=n(2784);let o=e=>{let{name:t}=e,n=(0,a.createContext)(null),o=()=>{let e=(0,a.useContext)(n);if(!e)throw Error("".concat(t," sub-components must be used within ").concat(t,".Root"));return e};return{SlotRecipeProvider:e=>{let{children:t,slots:a,unstyled:o=!1}=e;return(0,r.jsx)(n.Provider,{value:{slots:a,unstyled:o},children:t})},useSlotRecipeContext:o,withContext:function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.forwardRef((n,i)=>{let{slots:l,unstyled:c}=o(),{children:u,className:s,...d}={...r.defaultProps,...n},f=!t||c?s:l[t]({class:s});return a.createElement(e,{...d,className:f,ref:i},null!=u?u:r.defaultChildren)});return i.displayName=null!==(n=r.displayName)&&void 0!==n?n:"string"==typeof e?e:e.displayName||e.name,i}}}}}]);
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.