1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40208,273,t=>{"use strict";var e=t.i(43476),a=t.i(71645),r=t.i(74080),n=t.i(57688),i=t.i(81580),s=t.i(15358),o=t.i(91950),l=t.i(36863);let c=({show:t,onDonate:a,onCancel:n})=>t?(0,r.createPortal)((0,e.jsx)(i.ModalContainer,{width:"tw-w-[400px]",height:"tw-max-h-[440px]",children:(0,e.jsx)(l.AbandonCartComponent,{onDonate:a,onCancel:n})}),document.querySelector("#donate-modal")):null;var d=t.i(64540),u=t.i(11624),m=t.i(90409);function w(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)t[r]=a[r]}return t}var h=function t(e,a){function r(t,r,n){if("u">typeof document){"number"==typeof(n=w({},a,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in n)n[s]&&(i+="; "+s,!0!==n[s]&&(i+="="+n[s].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+i}}return Object.create({set:r,get:function(t){if("u">typeof document&&(!arguments.length||t)){for(var a=document.cookie?document.cookie.split("; "):[],r={},n=0;n<a.length;n++){var i=a[n].split("="),s=i.slice(1).join("=");try{var o=decodeURIComponent(i[0]);if(r[o]=e.read(s,o),t===o)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){r(t,"",w({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,w({},this.attributes,e))},withConverter:function(e){return t(w({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});async function f(){let t=await fetch("/api/lists");if(!t.ok)return console.error("Failed to fetch lists",t.statusText),[];let e=await t.json();return e.success?e.data:(console.error("GraphQL error from /api/lists",e),[])}async function p(t){if(!t)return;let e=h.get("list_attribution");if(e)try{let a=JSON.parse(e),r=Object.entries(a).sort((t,e)=>new Date(e[1].timestamp).getTime()-new Date(t[1].timestamp).getTime()).map(([t])=>Number(t)),n=(await f()).filter(e=>e.groups?.some(e=>e.items?.some(e=>e.ein===t))).map(t=>t.id);if(0===n.length)return;return r.find(t=>n.includes(t))}catch(t){console.warn("Invalid list_attribution cookie",t);return}}var C=t.i(98956),x=t.i(52848);function g({cartId:t,ein:l,name:w,show:h,onClose:f,onSubmit:g,donationAmount:y,onAmountChange:v}){let N=()=>({type:d.CartItemType.SINGLE,amount:y,amountMinimum:(0,u.getMinimumDonationCents)(l),frequency:d.CartItemFrequency.ONE_TIME,sharing:d.CartItemSharingDefaults,dedication:d.CartItemDedicationDefaults,ein:l}),[j,E]=(0,a.useState)(o.Status.DONATE),[I,S]=(0,a.useState)(!1),[b,T]=(0,a.useState)(""),[D,_]=(0,a.useState)(!1),[O,k]=(0,a.useState)(N),{addItem:M,updateItem:L}=(0,C.useBasketContext)();async function R(e){if(e.type===d.CartItemType.SINGLE){let a=e.ein;return a?await M(t,a,w,e.frequency,e.amount,e.sharing,e.dedication,e.listId,e.currentUrl):void console.error("Missing EIN in addCartItem:",JSON.stringify(e,null,2))}}async function A(t){let e=await R(t);return e?(v?.(t.amount),S(!0),t.amount>=1e4&&(0,m.shouldShowDonationUpsell)()&&t.frequency===d.CartItemFrequency.ONE_TIME?E(o.Status.FIRSTCARTITEM):E(o.Status.SUCCESS)):(E(o.Status.ERROR),T("An error occurred while adding your donation to the Giving Basket.")),e}async function F(e){return e.id?await L(t,e.id,e.amount,e.frequency,e.sharing,e.dedication):void console.error("Missing cart item id for update")}(0,a.useEffect)(()=>{k(t=>({...t,amount:y}))},[y]),(0,a.useEffect)(()=>{k(t=>({...t,ein:l,amountMinimum:(0,u.getMinimumDonationCents)(l)}))},[l]);let B=async t=>{let e;if(E(o.Status.LOADING),T("Adding your donation"),t.type===d.CartItemType.SINGLE){let e=await p(t.ein);e&&(t.listId=String(e))}if(!(e=t.type===d.CartItemType.SINGLE&&t.id&&t.frequency===d.CartItemFrequency.MONTHLY?await F(t):await A(t))){E(o.Status.ERROR),T("An error occurred while adding your donation to the Giving Basket.");return}t.type===d.CartItemType.SINGLE&&k(t=>({...t,...e})),E(t.amount>=1e4&&(0,m.shouldShowDonationUpsell)()&&t.frequency===d.CartItemFrequency.ONE_TIME?o.Status.FIRSTCARTITEM:o.Status.SUCCESS)},G=()=>{H(),f&&f(I)},U=()=>{I?G():_(!0)},H=()=>{E(o.Status.DONATE),S(!1),k(N())};if(!h)return null;let P=(0,e.jsx)(x.BasketModalHeader,{nonprofitName:w,onClose:G}),q=(0,e.jsx)(s.ModalHeader,{onClose:G,children:(0,e.jsx)("div",{className:"tw-flex tw-flex-col tw-px-2 tw-pt-2",children:(0,e.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-2 tw-items-center",children:(0,e.jsx)(n.default,{width:"225",height:"29",alt:"giving basket",src:"/images/logos/giving-basket-logo-horizontal_300ppi.png"})})})}),Y=(()=>{switch(j){case o.Status.DONATE:return"tw-max-h-[750px]";case o.Status.SUCCESS:return"tw-max-h-[550px]";case o.Status.FIRSTCARTITEM:return"tw-max-h-[600px]";default:return"tw-max-h-[550px]"}})();return(0,e.jsx)(e.Fragment,{children:D?(0,e.jsx)(c,{show:D,onCancel:()=>{_(!1),H(),G()},onDonate:()=>{_(!1),E(o.Status.DONATE)}}):(0,e.jsx)(e.Fragment,{children:(0,r.createPortal)((0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.ModalContainer,{header:j===o.Status.DONATE?P:q,height:Y,onClose:U,children:(0,e.jsx)(o.DonateComponent,{status:j,name:w,details:O,message:b,onAddToCart:B,onCheckout:()=>{g&&g(),H()},onClose:U,onRetry:()=>{E(o.Status.DONATE),S(!1)},onAmountChange:v})})}),document.querySelector("#donate-modal"))})})}t.s(["DonateModal",0,({cartId:t,ein:a,name:r,show:n,onClose:i,onSubmit:s,donationAmount:o,onAmountChange:l})=>
1(0,e.jsx)(g,{cartId:t,ein:a,name:r,show:n,onClose:i,onSubmit:s,donationAmount:o,onAmountChange:l})],40208);var y=t.i(91400),v=t.i(90813),N=t.i(43794);function j({enabled:t,loading:a,size:r="lg",className:n,onClick:i}){let s="lg"===r?"tw-text-lg":"tw-text-xl",o=(0,e.jsxs)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-items-center tw-w-full tw-p-2",children:[(0,e.jsx)("div",{className:(0,N.default)("tw-pr-2",s),children:" Donate"}),(0,e.jsx)(y.GivingBasket,{className:"tw-w-7 tw-h-[27px] tw-shrink-0"})]}),l=(0,e.jsxs)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-items-center tw-w-full tw-p-2",children:[(0,e.jsx)("div",{className:(0,N.default)("tw-pr-2",s),children:" Donate"}),(0,e.jsx)(v.Loader,{})]});return(0,e.jsx)("div",{className:n,children:t?(0,e.jsx)("button",{className:"cn-button-donate tw-h-full",onClick:t=>{console.log("DonateButton: opening donate modal"),i?.(),t.stopPropagation()},children:a?l:o}):(0,e.jsx)("button",{className:"cn-button-donate-disabled tw-h-full",disabled:!0,children:a?l:o})})}t.s(["DonateButton",()=>j],273)},17230,t=>{"use strict";var e=t.i(43476),a=t.i(43794),r=t.i(71645),n=t.i(74080);function i(t,e,a){switch(a){case"right":return{left:t.right+8,top:t.top+t.height/2-e.height/2};case"left":return{left:t.left-e.width-8,top:t.top+t.height/2-e.height/2};case"top":return{left:t.left+t.width/2-e.width/2,top:t.top-e.height-8};default:return{left:t.left+t.width/2-e.width/2,top:t.bottom+8}}}function s({message:t,placement:s="right",theme:o="dark",maxWidth:l,children:c}){let d=(0,r.useRef)(null),u=(0,r.useRef)(null),[m,w]=(0,r.useState)(!1),[h,f]=(0,r.useState)(null);(0,r.useLayoutEffect)(()=>{if(!m||"u"<typeof document)return;let t=d.current,e=u.current;if(!t||!e)return;let a=!1,r=()=>{var r,n;let o,l,c;if(a)return;let d=t.getBoundingClientRect(),u=e.getBoundingClientRect(),m=(o=[s,..."left"===s||"right"===s?["top","bottom"]:["left","right"],..."left"===s?["right"]:"right"===s?["left"]:"top"===s?["bottom"]:["top"]],l=s,c=1/0,o.forEach(t=>{let e=i(d,u,t),a=Math.max(0,8-e.left)+Math.max(0,e.left+u.width-(window.innerWidth-8))+Math.max(0,8-e.top)+Math.max(0,e.top+u.height-(window.innerHeight-8));a<c&&(l=t,c=a)}),l),{left:w,top:h}=i(d,u,m);f((r=u.width,n=u.height,{left:Math.max(8,Math.min(w,window.innerWidth-r-8)),top:Math.max(8,Math.min(h,window.innerHeight-n-8))}))};r();let n=requestAnimationFrame(r),o=()=>requestAnimationFrame(r);return window.addEventListener("scroll",o,!0),window.addEventListener("resize",o),()=>{a=!0,cancelAnimationFrame(n),window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",o)}},[m,s,t]),(0,r.useEffect)(()=>{if(!m||"u"<typeof document)return;let t=t=>{let e=t.target;if(!e)return;let a=d.current,r=u.current,n=!!a&&a.contains(e),i=!!r&&r.contains(e);n||i||w(!1)},e=t=>{"Escape"===t.key&&w(!1)};return document.addEventListener("pointerdown",t),document.addEventListener("keydown",e),()=>{document.removeEventListener("pointerdown",t),document.removeEventListener("keydown",e)}},[m]);let p=(0,e.jsx)("div",{ref:u,className:(0,a.default)("dark"===o?"tw-bg-cn-dark-blue tw-text-white tw-border tw-border-gray-300":"tw-bg-white tw-text-cn-dark-blue tw-border tw-border-gray-300","tw-w-max","tw-max-w-[min(90vw,400px)] tw-break-words tw-whitespace-normal","tw-z-[9999] tw-fixed tw-rounded tw-text-xs tw-p-2 tw-shadow-lg","tw-transition-[opacity,transform] tw-duration-150",m?"tw-opacity-100 tw-scale-100":"tw-opacity-0 tw-scale-95 tw-pointer-events-none"),style:{maxWidth:l??void 0,left:h?.left??-9999,top:h?.top??-9999},children:t});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{ref:d,className:"tw-inline-flex tw-items-center tw-justify-center",onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),onFocus:()=>w(!0),onBlur:()=>w(!1),onClick:()=>w(!0),children:c}),m&&"u">typeof document?(0,n.createPortal)(p,document.body):null]})}t.s(["default",()=>s])},91950,36863,t=>{"use strict";var e,a=t.i(43476),r=t.i(49421),n=t.i(27134),i=t.i(83708),s=t.i(31775),o=t.i(53566),l=t.i(93012),c=t.i(18072),d=t.i(58297),u=t.i(64540),m=t.i(28942),w=t.i(90409);function h({name:t,amount:e,onClose:r,onSubmit:n}){let i=(0,o.dollarFormatFromCents)(e),s=e>12e3?(0,o.dollarFormatFromCents)(100*Math.ceil(e/12/100)):"$10";return(0,a.jsx)(d.DonateResult,{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-pb-3",children:(0,a.jsxs)("div",{className:"tw-p-4 tw-text-xl tw-text-center tw-w-[436px]",children:[(0,a.jsxs)("strong",{children:["Would you like to turn your generous one-time gift of ",i," into a smaller monthly donation?"]}),(0,a.jsxs)("p",{children:["For ",s," a month, you can provide ongoing support to ",t," and help them continue their important work year-round. It's a simple way to make a lasting impact!"]})]})}),(0,a.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-text-center tw-pb-10",children:(0,a.jsxs)("div",{className:"tw-w-[436px] tw-flex tw-flex-col tw-px-3 md:tw-px-0 md:tw-flex-row tw-justify-between tw-gap-4",children:[(0,a.jsx)(l.Button,{className:c.default.CartCancelButton,onClick:function(){r&&((0,w.setDonationUpsellDismissed)(),r())},children:(0,a.jsx)("div",{className:"tw-w-full md:tw-w-[200px]",children:"Keep one-time"})}),(0,a.jsx)(l.Button,{onClick:function(){if(n){let t=(0,m.calculateMonthlyDonation)(e);(0,w.setDonationUpsellDismissed)(),n({amount:t,frequency:u.CartItemFrequency.MONTHLY})}},children:(0,a.jsx)("div",{className:"tw-w-full md:tw-w-[200px]",children:"Yes!"})})]})})]})})}var f=((e={}).DONATE="donate",e.FIRSTCARTITEM="firstCartItem",e.SUCCESS="success",e.ERROR="error",e.LOADING="loading",e);t.s(["DonateComponent",0,({status:t,name:e,details:o,message:l,onAddToCart:c,onCheckout:d,onClose:u,onRetry:m,onAmountChange:w})=>(0,a.jsx)(a.Fragment,{children:(t=>{switch(t){case"donate":return(0,a.jsx)(r.DonateDisplay,{details:o,onSubmit:c,onAmountChange:w});case"firstCartItem":return(0,a.jsx)(h,{name:e,amount:o.amount,onClose:u,onSubmit:t=>c?.({...o,...t})});case"success":return(0,a.jsx)(s.DonateSuccess,{name:e,amount:o.amount,frequency:o.frequency,onClose:u,onSubmit:d});
1case"loading":return(0,a.jsx)(i.DonateLoading,{msg:l||""});case"error":return(0,a.jsx)(n.DonateError,{msg:l||"",onRetry:m});default:return null}})(t)}),"Status",()=>f],91950);var p=t.i(1812);t.s(["AbandonCartComponent",0,({onDonate:t,onCancel:e})=>(0,a.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-justify-center tw-items-center tw-px-8 tw-py-8",children:[(0,a.jsx)("div",{className:"tw-pb-2 tw-flex tw-justify-center",children:(0,a.jsx)(p.HeartIcon,{className:"tw-w-14 tw-h-14 tw-text-[#FF0043]"})}),(0,a.jsx)("div",{className:"tw-p-2 tw-text-3xl tw-font-bold tw-text-center",children:"Before you go"}),(0,a.jsx)("div",{className:"tw-p-2 tw-text-center",children:"Would you consider a donation?"}),(0,a.jsxs)("div",{className:"tw-p-2 tw-text-center",children:["Your support will help ",(0,a.jsx)("strong",{children:"create change and inspire hope"})," throughout our community."]}),(0,a.jsxs)("div",{className:"tw-flex tw-flex-col tw-justify-center tw-gap-4 tw-p-4",children:[(0,a.jsx)(l.Button,{onClick:t,children:(0,a.jsx)("div",{className:"tw-w-full tw-flex tw-flex-row tw-justify-center",children:"Return to donate"})}),(0,a.jsx)(l.Button,{className:c.default.CartCancelButton,onClick:e,children:(0,a.jsx)("div",{className:"tw-w-full tw-flex tw-flex-row tw-justify-center",children:"Close"})})]})]})],36863)},31775,t=>{"use strict";var e=t.i(43476),a=t.i(53566),r=t.i(93012),n=t.i(18072),i=t.i(58297),s=t.i(14334);function o({name:t,amount:o,frequency:l,onClose:c,onSubmit:d}){let u=(0,s.getFrequencyText)(l).toLowerCase(),m=(0,a.dollarFormatFromCents)(o);return(0,e.jsx)(i.DonateResult,{children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-pb-3",children:(0,e.jsxs)("div",{className:"tw-p-4 tw-text-xl tw-text-center tw-w-[436px]",children:["Your ",(0,e.jsx)("strong",{children:u})," donation of ",(0,e.jsx)("strong",{children:m})," ",t&&"to ",(0,e.jsx)("strong",{children:t})," has been added to your Giving Basket."]})}),(0,e.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-text-center tw-pb-10",children:(0,e.jsxs)("div",{className:"tw-w-[436px] tw-flex tw-flex-col tw-px-3 md:tw-px-0 md:tw-flex-row tw-justify-between tw-gap-4",children:[(0,e.jsx)(r.Button,{className:n.default.CartCancelButton,onClick:c,children:(0,e.jsx)("div",{className:"tw-w-full md:tw-w-[200px]",children:"Continue browsing"})}),(0,e.jsx)(r.Button,{onClick:d,children:(0,e.jsx)("div",{className:"tw-w-full md:tw-w-[200px]",children:"Check out now"})})]})})]})})}t.s(["DonateSuccess",()=>o])},49421,52848,t=>{"use strict";var e=t.i(43476),a=t.i(71645),r=t.i(91400),n=t.i(43794);function i({id:t,disabled:a=!1,onClick:r,className:i,children:s}){return(0,e.jsx)("button",{id:t,className:(0,n.default)("tw-cursor-pointer cn-button-donate tw-font-bold",a?"cn-button-donate-disabled":"cn-button-donate",i),onClick:t=>{r&&r(t)},children:s})}var s=t.i(24184),o=t.i(55771),l=t.i(41293),c=t.i(28942),d=t.i(11624);function u({amountCents:t,amountsCents:a=[25,50,100,250].map(t=>(0,c.dollarsToCents)(t)),amountMinimumCents:r,amountError:n,setAmountError:i,onChange:u}){return(0,e.jsxs)("div",{children:[(0,e.jsx)(o.AmountButtons,{selectedAmountCents:t,amountsCents:a,onChange:t=>{u&&u(t??0)}}),(0,e.jsx)(s.CurrencyInputField,{maximumCents:(0,c.dollarsToCents)(d.GIVING_BASKET.MAXIMUM),minimumCents:r,amountCents:t,selected:void 0!==t&&a.includes(t),size:s.CurrencyInputFieldSize.EXTRA_LARGE,onChange:t=>{console.log("onChange",t),u&&u(t||0)},onErrorChange:i}),(0,e.jsx)("div",{className:"tw-px-2 tw-pb-2",children:n&&(0,e.jsx)(l.ErrorMessage,{children:n})})]})}function m({label:t,subinputText:a,onChange:r,value:n,errorMessageArray:i,name:s,inputId:o,ariaLabel:l,type:c}){return(0,e.jsxs)("div",{children:[(0,e.jsx)("input",{className:"tw-px-6 tw-py-3 tw-rounded-lg tw-border tw-border-[#9BA3C0] tw-w-full",type:c,onChange:r,"aria-label":l,name:s,placeholder:t,id:o,value:n,"data-error":i.length>0?"true":"false"}),a?(0,e.jsx)("div",{className:"tw-text-sm tw-text-[#677093]",children:a}):null,i?i.map((t,a)=>(0,e.jsx)("div",{className:"tw-text-sm tw-text-red-600",children:t},a)):null]})}var w=t.i(36159),h=t.i(64540),f=t.i(26962);
1function p({dedicationDetails:t,onChange:r}){let[n,i]=(0,a.useState)({name:[],email:[]}),s=[h.CartItemDedicationType.IN_HONOR_OF,h.CartItemDedicationType.IN_MEMORY_OF],o=s.indexOf(t.type);return(0,a.useEffect)(()=>{i(e=>({...e,email:(0,f.emailValidationErrorMessage)(t.email)})),i(e=>({...e,name:(0,f.nameValidationErrorMessage)(t.name)}))},[t]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"tw-mb-4",children:(0,e.jsx)(w.ButtonGroup,{buttons:["In honor of","In memory of"],className:"tw-pt-3",selected:o>0?o:0,onClick:e=>{r({...t,type:s[e]??h.CartItemDedicationType.NONE})}})}),(0,e.jsxs)("div",{children:[(0,e.jsx)(m,{label:"Name of someone special to you",onChange:e=>{r({...t,name:e.target.value})},value:t.name??"",errorMessageArray:n.name,name:"cart_item[dedication_name]",inputId:"dedication_name",ariaLabel:"Full name",type:"search"}),(0,e.jsx)("div",{className:"tw-pt-4 tw-pb-2",children:"Have a message sent to the dedicatee (optional)"}),(0,e.jsx)(m,{label:"Dedicatee email address",onChange:e=>{r({...t,email:e.target.value})},value:t.email??"",errorMessageArray:n.email,name:"cart_item[dedication_email]",inputId:"dedication_email",ariaLabel:"Recipient email",type:"search"})]})]})}var C=t.i(19100),x=t.i(1372);function g({id:t,checked:a,label:r,onChange:n}){return(0,e.jsxs)("label",{htmlFor:t,role:"switch","aria-checked":a,className:"tw-flex tw-items-center tw-cursor-pointer tw-gap-2",children:[" ",(0,e.jsx)("input",{type:"checkbox",id:t,checked:a,onChange:n,className:"tw-sr-only"}),a?(0,e.jsx)(x.CheckCircleChecked,{className:"tw-w-6 tw-h-6"}):(0,e.jsx)(C.CheckCircle,{className:"tw-w-6 tw-h-6 tw-text-night-800"}),(0,e.jsx)("span",{children:r})]})}function y({dedicationInfo:t,collapsed:r=!0,onChange:n}){let i={name:t?.name??"",email:t?.email??"",type:t?.type??h.CartItemDedicationType.NONE},[s,o]=(0,a.useState)(i),[l,c]=(0,a.useState)(!r);return(0,a.useEffect)(()=>{c(!r)},[r]),(0,a.useEffect)(()=>{n&&n(s)},[s]),(0,e.jsxs)("div",{children:[(0,e.jsx)(g,{id:"dedication",label:"Dedicate this donation",checked:l,onChange:()=>{var t;t=l?h.CartItemDedicationType.NONE:h.CartItemDedicationType.IN_HONOR_OF,o(e=>({...e,type:t})),c(!l)}}),l?(0,e.jsxs)("div",{className:"tw-m-4",children:[(0,e.jsx)("div",{children:(0,e.jsx)("div",{className:"tw-px-8 tw-flex",children:(0,e.jsx)("div",{className:"tw-text-sm",children:"The amount of your gift will not be disclosed. Dedication email will be sent immediately after donation."})})}),(0,e.jsx)(p,{dedicationDetails:s,onChange:t=>o({...t})})]}):null]})}var v=t.i(93093);function N({name:t,active:a,privacyOption:r,className:i,onClick:s}){return(0,e.jsx)(v.ToggleButton,{className:(0,n.default)(i,"tw-p-3 tw-rounded-xl",a?"tw-bg-[#F2F3F7] tw-border tw-border-[#F2F3F7] tw-text-[#001936]":"tw-border tw-border-[#E6E8EF] tw-bg-white tw-text-[#001936] tw-font-normal"),unstyled:!0,aria:r,selected:a,onClick:s,children:(0,e.jsxs)("span",{className:"tw-flex tw-flex-row tw-justify-center tw-items-center",children:[a?(0,e.jsx)(x.CheckCircleChecked,{className:"tw-w-6 tw-h-6 tw-mx-2"}):(0,e.jsx)(C.CheckCircle,{className:"tw-w-6 tw-h-6 tw-mx-2 tw-text-gray-500"}),t]})})}var j=t.i(14334);function E({shareName:t,shareEmail:a,shareAddress:r,onChange:n,onShareLevelChange:i}){let s=t||a||r?h.CartItemSharingConsent.SHARE:h.CartItemSharingConsent.ANONYMOUSLY,o=(t,e,a)=>{let r={name:t,email:e,address:a};n(r),r.name||r.email||r.address||s===h.CartItemSharingConsent.ANONYMOUSLY||i(h.CartItemSharingConsent.ANONYMOUSLY)},[l,c]=(0,j.getSharingConsentOptions)();return(0,e.jsxs)("div",{role:"radiogroup",children:[(0,e.jsx)(g,{id:"share",checked:s===h.CartItemSharingConsent.SHARE,label:l,onChange:()=>{i(h.CartItemSharingConsent.SHARE),o(!0,!0,!1)}}),s===h.CartItemSharingConsent.SHARE&&(0,e.jsx)("div",{className:"tw-flex tw-justify-center tw-w-full tw-pl-8 tw-pt-3 tw-pb-1",children:(0,e.jsxs)("div",{className:"tw-flex tw-flex-row tw-justify-between tw-w-full tw-gap-2 md:tw-gap-4",children:[(0,e.jsx)(N,{name:"Name",active:t,privacyOption:"include_name",className:"tw-w-full",onClick:()=>o(!t,a,r)}),(0,e.jsx)(N,{name:"Email",active:a,privacyOption:"include_email",className:"tw-w-full",onClick:()=>o(t,!a,r)}),(0,e.jsx)(N,{name:"Address",active:r,privacyOption:"include_address",className:"tw-w-full",onClick:()=>o(t,a,!r)})]})}),(0,e.jsxs)("label",{htmlFor:"anonymous",className:"tw-flex tw-items-center tw-cursor-pointer tw-pt-6",children:[(0,e.jsx)("input",{type:"radio",id:"anonymous",name:"sharingPreference",value:c,checked:s===h.CartItemSharingConsent.ANONYMOUSLY,onChange:()=>
1{i(h.CartItemSharingConsent.ANONYMOUSLY),o(!1,!1,!1)},className:"tw-sr-only"}),s===h.CartItemSharingConsent.ANONYMOUSLY?(0,e.jsx)(x.CheckCircleChecked,{className:"tw-w-6 tw-h-6"}):(0,e.jsx)(C.CheckCircle,{className:"tw-w-6 tw-h-6 tw-text-night-800"}),(0,e.jsx)("span",{className:"tw-ml-2",children:c})]})]})}var I=t.i(45884);let S=()=>(0,e.jsxs)(e.Fragment,{children:["Use of Giving Basket is subject to both"," ",(0,e.jsx)("a",{className:"cn-link",href:"https://www.charitynavigator.org/about-us/financials-and-policies/privacy-policy/",rel:"noopener noreferrer",target:"_blank",children:"Charity Navigator's Privacy Policy"}),", ",(0,e.jsx)("a",{className:"cn-link",href:"https://www.charitynavigator.org/about-us/financials-and-policies/california-disclosures/",rel:"noopener noreferrer",target:"_blank",children:"California Disclosures"}),", and ",(0,e.jsx)("a",{className:"cn-link",href:"https://www.givelively.org/privacy",rel:"noopener noreferrer",target:"_blank",children:"Give Lively's Privacy Policy"}),". ","Charity Navigator and Give Lively will retain your information in order to run this service, even if you choose not to share this information with the nonprofit(s) you have selected."]});var b=t.i(71596),T=t.i(91618);let D=({className:t})=>(0,e.jsx)("div",{className:t,children:(0,e.jsxs)("ul",{className:"tw-ml-4 tw-list-disc",children:[(0,e.jsx)("li",{children:(0,e.jsx)(b.DisclaimerDonations,{})}),(0,e.jsx)("li",{children:(0,e.jsx)(T.DisclaimerFunds,{})}),(0,e.jsx)("li",{children:(0,e.jsx)(S,{})})]})});var _=t.i(98956),O=t.i(83708);function k({details:t,mode:n="create",onSubmit:s,onAmountChange:o}){let l,m={name:!0,email:!0,address:!1},w=(0,_.useBasketContext)(),[p,C]=(0,a.useState)(void 0),[x,g]=(0,a.useState)(t.amount),[v,N]=(0,a.useState)(t.frequency),[S,b]=(0,a.useState)();(0,a.useEffect)(()=>{t?(w.loaded&&"create"===n&&0===t.amount?g((0,d.calculateStartingGiftAmount)(w?.cart?.totalAmount??0,w?.cart?.items.length??0,v)):g(t.amount),t.type===h.CartItemType.SINGLE?C({type:t.type,amountMinimum:t.amountMinimum,frequency:v,sharing:{...t.sharing},dedication:{...t.dedication},dedication_error:!1}):C({type:t.type,amountMinimum:t.amountMinimum,frequency:v,items:[...t.items]})):C({type:h.CartItemType.SINGLE,amountMinimum:(0,c.dollarsToCents)(d.GIVING_BASKET.MINIMUM),frequency:h.CartItemFrequency.ONE_TIME,sharing:{...m},dedication:{name:"",email:"",type:h.CartItemDedicationType.NONE},dedication_error:!1})},[t,w]);let T=()=>!(!p||x>(0,c.dollarsToCents)(d.GIVING_BASKET.MAXIMUM)||x<p.amountMinimum||!x)&&(p.type!==h.CartItemType.SINGLE||p.dedication.type===h.CartItemDedicationType.NONE||(0,f.isValidDedication)(p.dedication)),k=h.CartItemFrequency.MONTHLY===v?"Monthly":"One Time";return p&&(w.loaded||w.error)?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"tw-px-4",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(I.SelectableToggle,{selectedIndex:+(v===h.CartItemFrequency.MONTHLY),onClick:t=>{let e=1===t?h.CartItemFrequency.MONTHLY:h.CartItemFrequency.ONE_TIME;N(e),C(t=>t?{...t,frequency:e}:t)},getOptions:j.getFrequencyOptions,impactBubble:!0}),(0,e.jsx)(u,{amountCents:x,amountsCents:(l=(0,d.adjustGiftAmountByFrequency)(t.amount,v),"create"===n?(0,d.calculateAverageGiftAmountArray)(w?.cart?.totalAmount??0,w?.cart?.items?.length??0,v):(0,d.calculateGiftAmountArray)(l,v)),amountMinimumCents:p.amountMinimum,amountError:S,setAmountError:b,onChange:t=>{x!==t&&(g(t),o?.(t))}}),(0,e.jsx)("div",{className:"tw-mx-2",children:p?p.type===h.CartItemType.SINGLE?"Your unrestricted gift funds the organization's priorities.":"Your unrestricted gift funds the organizations' priorities.":""})]})}),p.type===h.CartItemType.SINGLE&&(0,e.jsx)("div",{className:"tw-px-6 tw-mt-4",children:(0,e.jsx)(y,{dedicationInfo:{type:p.dedication.type,name:p.dedication.name,email:p.dedication.email},collapsed:!p.dedication.type||p.dedication.type===h.CartItemDedicationType.NONE,onChange:t=>C(e=>e?{...e,dedication:{...t}}:e)})}),p.type===h.CartItemType.SINGLE&&(0,e.jsx)("div",{className:"tw-px-6 tw-pt-6",children:(0,e.jsx)(E,{shareName:p.sharing.name,shareEmail:p.sharing.email,shareAddress:p.sharing.address,onChange:t=>C(e=>e?{...e,sharing:{...t}}:e),onShareLevelChange:t=>C(e=>e&&e.type===h.CartItemType.SINGLE?{...e,sharing:t===h.CartItemSharingConsent.ANONYMOUSLY?{name:!1,email:!1,address:!1}:e.sharing}:e)})}),(0,e.jsxs)("div",{className:"tw-flex tw-flex-col tw-w-full tw-items-center tw-p-6",children:[(0,e.jsx)(i,{className:"tw-flex tw-flex-row tw-items-center",disabled:!T(),onClick:e=>
1{!p||!T()?e.preventDefault():s&&p.type===h.CartItemType.SINGLE?s({currentUrl:window.location.href,type:p.type,amount:x,amountMinimum:p.amountMinimum,frequency:v,sharing:{...p.sharing},dedication:{email:p.dedication.email,name:p.dedication.name,type:p.dedication.type},ein:t.ein??""}):s&&p.type===h.CartItemType.FUND&&s({currentUrl:window.location.href,type:p.type,amount:x,amountMinimum:p.amountMinimum,frequency:p.frequency,items:p.items})},children:"edit"===n?(0,e.jsx)("div",{className:"tw-p-2",children:"Update"}):(0,e.jsxs)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-items-center tw-w-full",children:["Add ",k," Donation to Giving Basket",(0,e.jsx)(r.GivingBasket,{className:"tw-w-12 tw-h-[41px] tw-shrink-0"})]})}),(0,e.jsx)(D,{className:"tw-text-[#49516F] tw-py-4 tw-text-sm"})]})]}):(0,e.jsx)(O.DonateLoading,{msg:"Loading Giving Basket"})}t.s(["DonateDisplay",()=>k],49421);var M=t.i(41136),L=t.i(15358);t.s(["BasketModalHeader",0,({nonprofitName:t,fullWidth:a,onClose:r})=>(0,e.jsx)(L.ModalHeader,{onClose:r,children:(0,e.jsxs)("div",{className:"tw-flex tw-flex-col",children:[(0,e.jsxs)("div",{className:(0,n.default)("tw-flex tw-flex-row",{"tw-w-full":a}),children:[(0,e.jsx)(M.SecureBadge,{className:"tw-w-6 tw-h-6 tw-mr-1"}),(0,e.jsx)("div",{children:"SECURELY DONATE TO SUPPORT"})]}),t&&(0,e.jsx)("div",{className:"tw-py-2 tw-font-bold tw-text-2xl",children:t})]})})],52848)},81580,t=>{"use strict";var e=t.i(43476),a=t.i(71645),r=t.i(43794);function n({header:t,height:n,width:i,children:s,onClose:o}){return(0,a.useEffect)(()=>{let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[]),(0,e.jsx)("div",{className:"tw-bg-black tw-bg-opacity-50 tw-fixed tw-inset-0 tw-z-[1000] tw-flex tw-justify-center tw-items-center tw-overflow-x-hidden tw-overflow-y-hidden tw-outline-none focus:tw-outline-none",id:"modal-wrapper",onClick:t=>{t?.target?.id==="modal-wrapper"&&o&&o(),t.stopPropagation()},children:(0,e.jsx)("div",{className:(0,r.default)("tw-max-h-[720px] tw-relative tw-my-6 t
1w-mx-auto tw-max-w-3xl tw-overflow-hidden tw-rounded-lg",i||"tw-w-[550px]"),children:(0,e.jsxs)("div",{className:(0,r.default)("tw-h-screen tw-border-0 tw-rounded-lg tw-shadow-lg tw-relative tw-flex tw-flex-col tw-w-full tw-bg-white tw-outline-none focus:tw-outline-none",n||"tw-max-h-[600px]"),children:[t,(0,e.jsx)("div",{className:(0,r.default)("tw-overflow-y-auto tw-overflow-x-hidden"),children:s})]})})})}t.s(["ModalContainer",()=>n])},15358,t=>{"use strict";var e=t.i(43476),a=t.i(4301);function r({children:t,onClose:r}){return(0,e.jsxs)("div",{className:"tw-flex tw-justify-between tw-px-6 tw-pt-6 tw-pb-1 tw-items-start tw-rounded",children:[t,r&&(0,e.jsx)("button",{className:"tw-bg-transparent tw-border-0 tw-rounded-lg tw-p-1 tw-text-black tw-float-right hover:tw-text-gray-400",onClick:t=>{r&&r(),t.stopPropagation()},children:(0,e.jsx)(a.Close,{className:"tw-w-4 tw-h-4"})})]})}t.s(["ModalHeader",()=>r])},3990,t=>{"use strict";var e=t.i(43476);function a({className:t}){return(0,e.jsxs)("svg",{viewBox:"0 0 28 24",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("g",{clipPath:"url(#clip0_1015_14979)",children:(0,e.jsx)("path",{d:"M25.1909 3.50316C23.3275 1.21108 20.7075 0 17.6166 0C15.9511 0 14.5385 0.304145 13.2944 0.928924L13.0636 1.04618L13.9558 2.81975L14.1867 2.70249C15.1468 2.21879 16.2681 1.98427 17.6166 1.98427C22.6936 1.98427 25.9751 6.10122 25.9751 12.4754C25.9751 15.2677 25.3649 17.8145 24.2565 19.6485C23.3642 21.1234 22.2227 22.0029 21.2022 22.0029C20.8303 22.0029 20.3374 21.9021 20.3374 21.0226V11.3138C20.3374 8.90631 18.9028 7.35261 16.6822 7.35261C14.4615 7.35261 12.9866 9.04373 12.9866 11.3761V12.6165C12.9866 14.1207 12.065 14.6539 11.2772 14.6539C9.89753 14.6539 9.60804 13.5784 9.60804 12.677V2.96633C9.60804 1.19276 8.46292 0 6.75714 0C5.05137 0 3.2778 1.20742 2.00626 3.31261C0.712725 5.45079 0 8.36398 0 11.5135C0 15.1541 0.958239 18.2578 2.77028 20.4858C4.63363 22.7779 7.25367 23.989 10.3464 23.989C12.0119 23.989 13.4245 23.6848 14.6686 23.06L14.8994 22.9428L14.0071 21.1692L13.7763 21.2865C12.8162 21.7702 11.6949 22.0047 10.3483 22.0047C5.27123 22.0047 1.98977 17.8877 1.98977 11.5135C1.98977 8.72126 2.59989 6.17451 3.70837 4.34048C4.60065 2.86556 5.74211 1.9861 6.76264 1.9861C7.13458 1.9861 7.62744 2.08687 7.62744 2.96633V12.6751C7.62744 15.0826 9.06205 16.6364 11.2827 16.6364C13.5033 16.6364 14.9782 14.9452 14.9782 12.6128V11.3724C14.9782 9.86822 15.8998 9.33505 16.6877 9.33505C18.0673 9.33505 18.3568 10.4105 18.3568 11.312V21.0208C18.3568 22.7944 19.5019 23.9871 21.2077 23.9871C22.9135 23.9871 24.687 22.7797 25.9604 20.6745C27.2539 18.5363 27.9667 15.6231 27.9667 12.4736C27.9667 8.83302 27.0084 5.72928 25.1964 3.50133L25.1909 3.50316Z",fill:"#c18ae2"})}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:"clip0_1015_14979",children:(0,e.jsx)("rect",{width:"27.9612",height:"23.989",fill:"white"})})})]})}t.s(["Causeway",()=>a])},75572,t=>{"use strict";var e=t.i(43476);function a({className:t}){return(0,e.jsxs)("svg",{viewBox:"0 0 18 18",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M2.64848 1.85225C2.42881 1.63258 2.07265 1.63258 1.85298 1.85225C1.63331 2.07192 1.63331 2.42808 1.85298 2.64775L15.353 16.1477C15.5727 16.3674 15.9288 16.3674 16.1485 16.1477C16.3681 15.9281 16.3681 15.5719 16.1485 15.3523L2.64848 1.85225Z",fill:"#001936"}),(0,e.jsx)("path",{d:"M17.0076 9.41498C16.5996 10.6415 15.9177 11.7431 15.0343 12.6471L12.7104 10.3232C12.8579 9.90964 12.9382 9.4642 12.9382 9C12.9382 6.82538 11.1754 5.0625 9.00073 5.0625C8.53653 5.0625 8.09109 5.14283 7.67756 5.29034L5.81996 3.43275C6.80161 3.03286 7.87556 2.8125 9.00112 2.8125C12.7288 2.8125 15.8906 5.22954 17.0074 8.58034C17.0976 8.85114 17.0977 9.14413 17.0076 9.41498Z",fill:"#001936"}),(0,e.jsx)("path",{d:"M11.8132 9C11.8132 9.13512 11.8037 9.26802 11.7853 9.39806L8.60267 6.21545C8.73271 6.19703 8.86561 6.1875 9.00073 6.1875C10.554 6.1875 11.8132 7.4467 11.8132 9Z",fill:"#001936"}),(0,e.jsx)("path",{d:"M9.3988 11.7845L6.21618 8.60194C6.19776 8.73198 6.18823 8.86488 6.18823 9C6.18823 10.5533 7.44743 11.8125 9.00073 11.8125C9.13586 11.8125 9.26876 11.803 9.3988 11.7845Z",fill:"#001936"}),(0,e.jsx)("path",{d:"M5.06323 9C5.06323 8.5358 5.14356 8.09036 5.29107 7.67683L2.96693 5.35268C2.08338 6.25667 1.40134 7.35835 0.993291 8.58502C0.903194 8.85587 0.90328 9.14887 0.993536 9.41966C2.11036 12.7705 5.27209 15.1875 8.99981 15.1875C10.1255 15.1875 11.1996 14.9671 12.1813 14.5671L10.3239 12.7097C9.91037 12.8572 9.46493 12.9375 9.00073 12.9375C6.82611 12.9375 5.06323 11.1746 5.06323 9Z",fill:"#001936"})]})}t.s(["CartItemHideNameIcon",()=>a])},89875,t=>{"use strict";var e=t.i(43476);function a({className:t}
1){return(0,e.jsxs)("svg",{viewBox:"0 0 18 18",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M9.00073 11.25C10.2434 11.25 11.2507 10.2426 11.2507 9C11.2507 7.75736 10.2434 6.75 9.00073 6.75C7.75809 6.75 6.75073 7.75736 6.75073 9C6.75073 10.2426 7.75809 11.25 9.00073 11.25Z",fill:"#001936"}),(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.993291 8.58502C2.10873 5.23178 5.27167 2.8125 9.00112 2.8125C12.7288 2.8125 15.8906 5.22954 17.0074 8.58034C17.0976 8.85114 17.0977 9.14413 17.0076 9.41498C15.8922 12.7682 12.7293 15.1875 8.99981 15.1875C5.27209 15.1875 2.11036 12.7705 0.993536 9.41966C0.90328 9.14887 0.903194 8.85587 0.993291 8.58502ZM12.9382 9C12.9382 11.1746 11.1754 12.9375 9.00073 12.9375C6.82611 12.9375 5.06323 11.1746 5.06323 9C5.06323 6.82538 6.82611 5.0625 9.00073 5.0625C11.1754 5.0625 12.9382 6.82538 12.9382 9Z",fill:"#001936"})]})}t.s(["CartItemShowNameIcon",()=>a])},4301,t=>{"use strict";var e=t.i(43476);function a({className:t}){return(0,e.jsx)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg ",children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.14973 6.58585C7.12556 6.56317 7.11186 6.53151 7.11186 6.49837C7.11186 6.46523 7.12556 6.43357 7.14973 6.41089L11.7786 1.77699C11.9203 1.63706 12 1.44623 12 1.24712C12 1.048 11.9203 0.857178 11.7786 0.717245C11.4848 0.427585 11.0127 0.427585 10.7189 0.717245L6.08998 5.34614C6.06642 5.37058 6.03394 5.38439 6 5.38439C5.96606 5.38439 5.93358 5.37058 5.91002 5.34614L1.28113 0.717245C0.987255 0.427585 0.515248 0.427585 0.221378 0.717245C0.0797255 0.857178 0 1.048 0 1.24712C0 1.44623 0.0797255 1.63706 0.221378 1.77699L4.85027 6.41089C4.87444 6.43357 4.88814 6.46523 4.88814 6.49837C4.88814 6.53151 4.87444 6.56317 4.85027 6.58585L0.221378 11.2147C0.0797255 11.3547 0 11.5455 0 11.7446C0 11.9437 0.0797255 12.1346 0.221378 12.2745C0.515248 12.5641 0.987255 12.5641 1.28113 12.2745L5.91002 7.64559C5.93358 7.62116 5.96606 7.60735 6 7.60735C6.03394 7.60735 6.06642 7.62116 6.08998 7.64559L10.7189 12.2745C11.0127 12.5641 11.4848 12.5641 11.7786 12.2745C11.9203 12.1346 12 11.9437 12 11.7446C12 11.5455 11.9203 11.3547 11.7786 11.2147L7.14973 6.58585Z",fill:"currentColor"})})}t.s(["Close",()=>a])},82077,71834,t=>{"use strict";var e=t.i(43476);function a({className:t}){return(0,e.jsx)("svg",{viewBox:"0 0 24 2",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("rect",{y:"0.5",width:"24",height:"1",fill:"#B4BAD0"})})}function r({className:t}){return(0,e.jsxs)("svg",{viewBox:"0 0 28 28",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M13.989 2.33301C7.54898 2.33301 2.33398 7.55967 2.33398 13.9997C2.33398 20.4397 7.54898 25.6663 13.989 25.6663C20.4406 25.6663 25.6673 20.4397 25.6673 13.9997C25.66
173 7.55967 20.4406 2.33301 13.989 2.33301ZM14.0006 23.333C8.84398 23.333 4.66732 19.1563 4.66732 13.9997C4.66732 8.84301 8.84398 4.66634 14.0006 4.66634C19.1573 4.66634 23.334 8.84301 23.334 13.9997C23.334 19.1563 19.1573 23.333 14.0006 23.333Z",fill:"#49516F"}),(0,e.jsx)("circle",{cx:"14.0007",cy:"13.9997",r:"4.66667",fill:"#49516F"})]})}t.s(["Spacer",()=>a],82077),t.s(["StatusButtonActive",()=>r],71834)},56612,t=>{"use strict";var e=t.i(43476);function a({className:t}){return(0,e.jsxs)("svg",{viewBox:"0 0 28 28",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M13.9987 2.33301C16.1047 2.33301 18.0804 2.89102 19.7859 3.86725L18.3479 5.73947C17.0491 5.05424 15.5692 4.66634 13.9987 4.66634C8.84404 4.66634 4.66536 8.84502 4.66536 13.9997C4.66536 19.1543 8.84404 23.333 13.9987 23.333C19.1534 23.333 23.332 19.1543 23.332 13.9997C23.332 13.05 23.1902 12.1334 22.9265 11.2699L24.591 9.10286C25.2806 10.5919 25.6654 12.2508 25.6654 13.9997C25.6654 20.443 20.442 25.6663 13.9987 25.6663C7.55538 25.6663 2.33203 20.443 2.33203 13.9997C2.33203 7.55635 7.55538 2.33301 13.9987 2.33301Z",fill:"#49516F"}),(0,e.jsx)("path",{d:"M24.7758 5.39522C25.1783 4.89208 25.0967 4.15791 24.5936 3.7554C24.0905 3.35289 23.3563 3.43446 22.9538 3.9376L14.0722 15.0678L10.1204 11.5209C9.64541 11.0855 8.90742 11.1176 8.47202 11.5926C8.03663 12.0676 8.06872 12.8056 8.54369 13.241L14.3352 18.5209L24.7758 5.39522Z",fill:"#49516F"})]})}t.s(["StatusButtonComplete",()=>a])},36081,t=>{"use strict";var e=t.i(43476);function a({className:t}){return(0,e.jsx)("svg",{viewBox:"0 0 28 28",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("path",{d:"M13.989 2.33301C7.54898 2.33301 2.33398 7.55967 2.33398 13.9997C2.33398 20.4397 7.54898 25.6663 13.989 25.6663C20.4406 25.6663 25.6673 20.4397 25.6673 13.9997C25.66
173 7.55967 20.4406 2.33301 13.989 2.33301ZM14.0006 23.333C8.84398 23.333 4.66732 19.1563 4.66732 13.9997C4.66732 8.84301 8.84398 4.66634 14.0006 4.66634C19.1573 4.66634 23.334 8.84301 23.334 13.9997C23.334 19.1563 19.1573 23.333 14.0006 23.333Z",fill:"#CDD1E0"})})}t.s(["StatusButtonIncomplete",()=>a])},83708,t=>{"use strict";var e=t.i(43476),a=t.i(90813),r=t.i(58297);function n({msg:t}){return(0,e.jsx)(r.DonateResult,{children:(0,e.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-p-10",children:(0,e.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-align-middle",children:[t,(0,e.jsx)(a.Loader,{className:"tw-text-gray-500 tw-w-4 tw-h-4 tw-m-2"})]})})})}t.s(["DonateLoading",()=>n])},27134,t=>{"use strict";var e=t.i(43476),a=t.i(52452),r=t.i(93012),n=t.i(58297);function i({msg:t,onRetry:i}){return(0,e.jsx)(n.DonateResult,{children:(0,e.jsxs)("div",{className:"tw-flex tw-flex-col tw-justify-center tw-items-center",children:[(0,e.jsxs)("div",{className:"tw-w-[436px] tw-flex tw-flex-row tw-justify-center tw-py-2 tw-gap-4 tw-items-center tw-px-4",children:[(0,e.jsx)(a.Error,{className:"tw-w-10 tw-h-10"}),(0,e.jsx)("div",{className:"tw-py-4 tw-text-xl",children:t})]}),(0,e.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center",children:(0,e.jsx)("div",{className:"tw-w-[436px] tw-flex tw-flex-row tw-justify-between tw-gap-4",children:(0,e.jsx)(r.Button,{className:"tw-grow tw-px-6 tw-py-2 tw-rounded-xl tw-text-lg tw-font-semibold tw-text-white tw-bg-[#355FFE]",onClick:i,children:"Try again"})})})]})})}t.s(["DonateError",()=>i])},98956,t=>{"use strict";var e,a=t.i(43476),r=t.i(71645),n=t.i(18566),i=t.i(67731),s=t.i(41006),o=t.i(14334),l=((e=l||{}).SET_CART="SET_CART",e.SET_LOADED="SET_LOADED",e.SET_ERROR="SET_ERROR",e.SET_REMOVED_BY_VALIDATION="SET_REMOVED_BY_VALIDATION",e);let c=(0,r.createContext)({loaded:!1,error:!1,cart:void 0,removedByValidation:[],clearRemovedByValidation:()=>void 0,getFund:async()=>void 0,addItem:async()=>void 0,addFund:async()=>void 0,addMultiple:async()=>void 0,deleteItem:async()=>void 0,deleteFund:async()=>void 0,updateItem:async()=>void 0,updateFund:async()=>void 0,complete:async()=>void 0,addTransactionFees:async()=>void 0}),d=(0,r.createContext)(null);function u(t,e){switch(e.type){case"SET_CART":return{...t,cart:e.payload};case"SET_ERROR":return{...t,error:e.payload};case"SET_LOADED":return{...t,loaded:e.payload};case"SET_REMOVED_BY_VALIDATION":return{...t,removedByValidation:e.payload};default:throw Error("Unknown action: ",e.type)}}t.s(["BasketProvider",0,({children:t})=>{let e=(0,n.usePathname)(),l=e?.startsWith("/basket/checkout")??!1,m=async t=>s.CartClientApi.getFund(t),w=async(t,e,a,r,n,i,o,l,c)=>await s.CartClientApi.add(t,e,a,r,n,i,o,l,c),h=async(t,e,a,r,n,i)=>await s.CartClientApi.addFund(t,e,a,r,n,i),f=async(t,e)=>await s.CartClientApi.addMultiple(t,e),p=async(t,e)=>await s.CartClientApi.delete(t,e),C=async(t,e)=>await s.CartClientApi.deleteFund(t,e),x=async(t,e,a,r,n,i)=>await s.CartClientApi.update(t,e,a,r,n,i),g=async(t,e,a,r)=>await s.CartClientApi.updateFund(t,e,a,r),y=async t=>await s.CartClientApi.complete(t),v=async t=>await s.CartClientApi.addTransactionFees(t),[N,j]=(0,r.useReducer)(u,{loaded:!1,error:!1,cart:void 0,removedByValidation:[],clearRemovedByValidation:function(){j({type:"SET_REMOVED_BY_VALIDATION",payload:[]})},getFund:m,addItem:w,addFund:h,addMultiple:f,deleteItem:p,deleteFund:C,updateItem:x,updateFund:g,complete:y,addTransactionFees:v}),{loaded:E}=N,I=async()=>{var t;let e=await (0,i.fetchStoredCart)(window.localStorage,l);if("error"in e)return void j({type:"SET_ERROR",payload:!0});let a=e.cart;j({type:"SET_CART",payload:a}),j({type:"SET_REMOVED_BY_VALIDATION",payload:e.removed??[]}),j({type:"SET_ERROR",payload:!1}),t=a?(0,o.hasCheckedOut)(a)?0:a?.items?.length??0:0,[".nav-basket-count",".basket-count",".gb-cart-btn__count"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{let a;a=t.toString(),e&&(e.style.display=0===t||null===t?"none":"inline",e.innerText=a)})})},S=async()=>{j({type:"SET_LOADED",payload:!1}),await I(),j({type:"SET_LOADED",payload:!0})},b=()=>{E&&I()};return(0,r.useEffect)(()=>{S()},[l]),(0,r.useEffect)(()=>(s.CartClientApi.addListener(b),()=>{s.CartClientApi.removeListener(b)}),[E]),(0,a.jsx)(c.Provider,{value:N,children:(0,a.jsx)(d.Provider,{value:j,children:t})})},"useBasketContext",0,()=>{let t=(0,r.useContext)(c);if(!t)throw Error("useBasketContext must be used within a BasketContextProvider");return t},"useBasketDispatchContext",0,()=>{let t=(0,r.useContext)(d);if(!t)throw Error("useBasketDispatchContext must be used within a BasketContextProvider");return t}])},58297,t=>{"use strict";var e=t.i(43476),a=t.i(57688);function r({children:t}){return(0,e.jsxs)("div",{className:"tw-flex tw-flex-col tw-justify-center tw-py-6",children:[(0,e.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center tw-border-t tw-border-[#CDD1E0]",children:(0,e.jsx)(a.default,{width:"436",height:"207",alt:"Giving Hands",src:"/images/logos/giving101.svg"})}),t]})}t.s(["DonateResult",()=>r])},26962,t=>{"use strict";function e(t){return!!t.match(/^\d{2}-?\d{7}$/)}function a(t){return!!t&&!!t.match(/^[\w-+\.]+@([\w-]+\.)+[\w-]{2,4}$/)}function r(t){return t?t.length>255?["Dedicatee name is too long."]:[]:["Dedicatee name is required."]}function n(t){return t?t.length>255?["Email is too long."]:a(t)?[]:["Email must follow standard format (e.g., [email protected])."]:(console.log("CartDedicationForm: email is empty"),[])}function i(t){let e=n(t.email),a=r(t.name);return 0===e.length&&0===a.length}function s(t){let e=(t??"").trim();if(!e)return!1;let a=e.match(/^(.+?)\s*(?:x|ext\.?|extension)\s*(\d+)\s*$/i),r=(a?a[1].trim():e).replace(/\D/g,""),n=11===r.length&&r.startsWith("1")?r.slice(1):r;if(10!==n.length||/^(\d)\1{9}$/.test(n)||"1234567890"===n||"0123456789"===n)return!1;let i=n.slice(0,3),s=n.slice(3,6);return!!/[2-9]/.test(i[0]??"")&&!!/[2-9]/.test(s[0]??"")}function o(t){let e=(t?.toLowerCase()??"").trim();if(!e||new Set(["n/a","na","none","null","undefined","-"]).has(e)||e.includes("n/a")||/\s/.test(e))return!1;let a=e.startsWith("http://")||e.startsWith("https://")?e:`https://${e}`;try{let t=new URL(a);if(!["http:","https:"].includes(t.protocol)||!t.hostname||!t.hostname.includes(".")||t.hostname.startsWith(".")||t.hostname.endsWith("."))return!1;return!0}catch{return!1}}t.s(["emailValidationErrorMessage",()=>n,"isLikelyValidPhone",()=>s,"isLikelyValidWebsiteUrl",()=>o,"isValidDedication",()=>i,"isValidEin",()=>e,"isValidEmail",()=>a,"nameValidationErrorMessage",()=>r])},49838,28942,t=>{"use strict";function e(t){let e=encodeURIComponent(t);return e?.indexOf("-")>-1?e.replace(/-/,""):e}function a(t){return!t||t.trim().toLowerCase().startsWith("http:")||t.trim().toLowerCase().startsWith("https:")?t&&t.trim().toLowerCase().startsWith("http:")?t.trim().replace(/^http:/i,"https:"):t.trim():`https://${t.trim()}`}function r(t){let e=(t??"").trim();if(!e)return e;let a=e.match(/^(.+?)\s*(?:x|ext\.?|extension)\s*(\d+)\s*$/i),r=a?a[1].trim():e,n=a?a[2]:null,i=r.replace(/\D/g,"");if(10===i.length){let t=`${i.slice(0,3)}-${i.slice(3,6)}-${i.slice(6)}`;return n?`${t} ext. ${n}`:t}if(11===i.length&&i.startsWith("1")){let t=`1-${i.slice(1,4)}-${i.slice(4,7)}-${i.slice(7)}`;return n?`${t} ext. ${n}`:t}return n?`${r} ext. ${n}`:e}function n(t){return 100*t}function i(t){return t/100}function s(t){return t>12e3?100*Math.ceil(t/12/100):1e3}t.s(["calculateMonthlyDonation",()=>s,"centsToDollars",()=>i,"dollarsToCents",()=>n,"formatEIN",()=>e,"formatEINwithDash",0,t=>t?t?.indexOf("-")>-1?t:t.replace(/^(\d{2})(\d{7})$/,"$1-$2"):"Unknown EIN","formatPhone",()=>r,"formatSubsectionString",0,t=>`501(c)(${t?.startsWith("0")?t.substring(t.length-1):t})`,"formatUrlLink",()=>a],28942);var o=t.i(26962);function l(){return"134148824"}function c(){return"Charity Navigator"}function d(t){return!!t&&!!(0,o.isValidEin)(t)&&e(t)===l()}t.s(["getCharityNavigatorEin",()=>l,"getCharityNavigatorName",()=>c,"isCharityNavigatorEin",()=>d],49838)},64540,t=>{"use strict";var e,a,r,n,i=((e={}).SHARE="SHARE",e.ANONYMOUSLY="ANONYMOUSLY",e),s=((a={}).NONE="NONE",a.IN_HONOR_OF="IN_HONOR_OF",a.IN_MEMORY_OF="IN_MEMORY_OF",a),o=((r={}).SINGLE="SINGLE",r.FUND="FUND",r),l=((n={}).ONE_TIME="ONE_TIME",n.MONTHLY="MONTHLY",n);t.s(["CartItemDedicationDefaults",0,{type:"NONE",name:"",email:""},"CartItemDedicationType",()=>s,"CartItemFrequency",()=>l,"CartItemSharingConsent",()=>i,"CartItemSharingDefaults",0,{name:!0,email:!0,address:!1},"CartItemType",()=>o])},88377,t=>{"use strict";var e,a,r=((e={}).NOT_501C3="NOT_501C3",e.FOUNDATION="FOUNDATION",e.NOT_BMF="NOT_BMF",e.OPT_OUT="OPT_OUT",e.GIVING_NOT_RECOMMENDED="GIVING_NOT_RECOMMENDED",e.DELINQUENT="DELINQUENT",e.OPT_IN_REQUIRED="OPT_IN_REQUIRED",e),n=((a={}).NONE="NONE",a.NONE_REP="NONE_REP",a.GRANTED="GRANTED",a.REVOKED="REVOKED",a.OMIT="OMIT",a);t.s(["BasketConsentStatus",()=>n,"DonationNotEligibleReason",()=>r])},14334,t=>{"use strict";var e=t.i(64540),a=t.i(88377),r=t.i(49838),n=t.i(28942);let i=t=>t?.find(t=>t.type===e.CartItemType.SINGLE&&(0,n.formatEIN)(t?.nonprofit?.ein)===(0,r.getCharityNavigatorEin)());t.s(["findCNGiftItem",0,i,"getBasketDisabledText",0,t=>t?"Giving Basket is unavailable":"Giving Basket is Disabled","getCartTotal",0,t=>t?t?.reduce((t,e)=>t+e.amount,0):0,"getDonationIneligibleReasonText",0,t=>{switch(t){case a.DonationNotEligibleReason.NOT_501C3:return"Giving Basket donations can only be made to 501(c)(3) organizations. You may be able to donate via this organization's website.";case a.DonationNotEligibleReason.FOUNDATION:return"Donations to private foundations, like this one, cannot be made using our Giving Basket.";case a.DonationNotEligibleReason.NOT_BMF:return"Donations cannot be made to organizations that are not currently listed on the IRS Business Master File. You may be able to donate via this organization's website.";case a.DonationNotEligibleReason.OPT_OUT:return"This organization has opted out of 3rd party donations. You may be able to donate via this organization's website.";case a.DonationNotEligibleReason.OPT_IN_REQUIRED:return"Not enabled for donations via Charity Navigator. Consider donating via this organizationâs website.";default:return"This organization is not eligible for donations via Charity Navigator. You may be able to donate via this organization's website."}},"getFrequencyOptions",0,()=>["One Time","Monthly"],"getFrequencyText",0,t=>{switch(t){case e.CartItemFrequency.ONE_TIME:return"One Time";case e.CartItemFrequency.MONTHLY:return"Monthly";default:return"Unknown Frequency"}},"getSharingConsentOptions",0,()=>["Share my contact information","Donate anonymously"],"hasCNGift",0,t=>void 0!==i(t),"hasCheckedOut",0,t=>!!t?.orderData?.id,"hasDedication",0,t=>t&&t!==e.CartItemDedicationType.NONE,"hasMonthlyGift",0,t=>void 0!==t?.find(t=>t.frequency===e.CartItemFrequency.MONTHLY),"isDonationEnabled",0,t=>!!t?.isEligible,"isValidBasket",0,t=>t.loaded&&!t.error])},43794,(t,e,a)=>{!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=n(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)a.call(t,i)&&t[i]&&(e=n(e,i));return e}(i)))}return t}function n(t,e){return e?t?t+" "+e:t+e:t}if(e.exports)r.default=r,e.exports=r;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==r&&t.v(r);else window.classNames=r}()},18072,t=>{t.v({"AISearchResult-xffEng2324":"base-module__TXNv1G__AISearchResult-xffEng2324",CartCancelButton:"base-module__TXNv1G__CartCancelButton",CartReviewButton:"base-module__TXNv1G__CartReviewButton",Donation:"base-module__TXNv1G__Donation",DonationLinkButton:"base-module__TXNv1G__DonationLinkButton",Dropdown:"base-module__TXNv1G__Dropdown",FilterSearch:"base-module__TXNv1G__FilterSearch",FilterSearchTag:"base-module__TXNv1G__FilterSearchTag",SearchResult:"base-module__TXNv1G__SearchResult",SearchResultTag:"base-module__TXNv1G__SearchResultTag",SearchResultTagBold:"base-module__TXNv1G__SearchResultTagBold","SearchResultTagDisabled-xffEng2324":"base-module__TXNv1G__SearchResultTagDisabled-xffEng2324",SearchResults:"base-module__TXNv1G__SearchResults",Star:"base-module__TXNv1G__Star",
1StarRating:"base-module__TXNv1G__StarRating",SubtleGrayButton:"base-module__TXNv1G__SubtleGrayButton",TipPage:"base-module__TXNv1G__TipPage"})},90813,t=>{"use strict";var e=t.i(43476),a=t.i(43794);function r({className:t}){return(0,e.jsx)("svg",{className:(0,a.default)("tw-inline",t),fill:"currentColor",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("path",{d:"M12,23a9.63,9.63,0,0,1-8-9.5,9.51,9.51,0,0,1,6.79-9.1A1.66,1.66,0,0,0,12,2.81h0a1.67,1.67,0,0,0-1.94-1.64A11,11,0,0,0,12,23Z",children:(0,e.jsx)("animateTransform",{attributeName:"transform",type:"rotate",dur:"0.75s",values:"0 12 12;360 12 12",repeatCount:"indefinite"})})})}t.s(["Loader",()=>r])},90409,52153,t=>{"use strict";function e(t){try{if(!window?.heap?.push)return;t()}catch(t){console.error("Heap failed",t)}}class a{static track(t,a){e(()=>window?.heap?.track(t,a))}static identify(t){e(()=>window?.heap?.identify(t))}static resetIdentity(){e(()=>window?.heap?.resetIdentity())}static addUserProperties(t){e(()=>window?.heap?.addUserProperties(t))}static addEventProperties(t){e(()=>window?.heap?.addEventProperties(t))}static removeEventProperty(t){e(()=>window?.heap?.removeEventProperty(t))}static clearEventProperties(){e(()=>window?.heap?.clearEventProperties())}}t.s(["Heap",()=>a],52153);let r="glCart",n="glCartLastCheckout",i="glCount",s="glLastDonateReminder",o="basketHasDonation",l="upsellDismissedAt";function c(){localStorage.setItem(l,Date.now().toString())}function d(){localStorage.removeItem(l)}function u(){let t=localStorage.getItem(l);if(!t)return!0;let e=Number(t);return!!isNaN(e)||Date.now()-e>2592e5}t.s(["clearAll",0,t=>{for(let e=t.length-1;e>=0;e--){let a=t.key(e);(a?.indexOf("gl")===0||"test.gl"===a)&&(t.removeItem(a),console.log("removed",a))}},"clearBasketCount",0,t=>{t.removeItem(i)},"clearCart",0,t=>{t.removeItem(r)},"clearDonationUpsell",()=>d,"clearHasDonationInBasket",0,()=>{localStorage.removeItem(o)},"getCart",0,t=>{let e=t?.getItem(r);if(!e||"undefined"===e)return;let n=JSON.parse(e);if(a.addEventProperties({cartId:n?.id}),n?.cart_item_embed_url){let t=n.cart_item_embed_url;n.cart_item_embed_url_fixed=t=t.replace("https://members","https://secure")}return n},"getLastCheckoutCart",0,t=>{let e=t?.getItem(n);if(!e||"undefined"===e)return;let r=JSON.parse(e);return a.addEventProperties({cartId:r?.id}),r},"getLastDonateReminder",0,t=>{let e=t.getItem(s);return e?new Date(e):void 0},"hasDonationInBasket",0,()=>"true"===localStorage.getItem(o),"setBasketCount",0,(t,e)=>{t.setItem(i,e.toString())},"setCart",0,(t,e)=>{console.log("setCart",e?.id),t.setItem(r,JSON.stringify(e)),a.track("setCart - Created",{cartId:e?.id})},"setDonationUpsellDismissed",()=>c,"setLastCheckoutCart",0,(t,e)=>{console.log("setLastCheckoutCart",e?.id),t.setItem(n,JSON.stringify(e)),a.track("setLastCheckoutCart - Created",{cartId:e?.id})},"setLastDonateReminder",0,(t,e)=>{t.setItem(s,e.toISOString())},"shouldShowDonationUpsell",()=>u],90409)},67731,41006,t=>{"use strict";var e=t.i(90409),a=t.i(52153);let r="/api/basket/cart",n=async t=>{let e=await fetch(t,{cache:"no-store"});if(e?.status!==200)throw Error(`fetch failed with status code ${e?.status}`);return await e.json()},i=async(t,e,a)=>{if(!a)return await n(t);let r=await fetch(t,{method:a,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await r.json()};class s{static listeners=[];static addListener=t=>{t&&-1===s.listeners.indexOf(t)&&s.listeners.push(t)};static removeListener=t=>{if(!t)return;let e=s.listeners.indexOf(t);-1!==e&&s.listeners.splice(e,1)};static notifyListeners=t=>{s.listeners.forEach(e=>{e(t)})};static create=async()=>{let t=r+"/create",e=await i(t).catch(function(e){return console.log(`Cart.create error for ${t} `,e),a.Heap.track("Cart.create - Error",{errMsg:e?e.toString().substring(0,400):"Not supplied"}),{error:!0,msg:"cart create failed",cart:void 0}});return e.cart?.id&&a.Heap.track("Cart.create",{cartId:e.cart.id,count:e.cart?.items?.length,token:e.token}),e};static validate=async(t,e=!1)=>{let n=`cartId=${t}&validateItems=${e}`,s=r+`/validate?${n}`,o=await i(s).catch(function(e){return console.log(`Cart.validation error for ${s} `,e),a.Heap.track("Cart.validate - Error",{cartId:t,errMsg:e?e.toString().substring(0,400):"Not supplied"}),{error:!0,msg:"cart validation failed",cart:void 0}});return o.cart?.id&&a.Heap.track("Cart.validate",{cartId:o.cart.id,count:o.cart?.items?.length,token:o.providerData?.token}),o};static getFund=async t=>{let e=`fundId=${t}`,n=r+`/fund?${e}`,s=await i(n).catch(function(e){console.log(`Cart.getFund error for ${n} `,e),a.Heap.track("Cart.getFund - Error",{fundId:t,errMsg:e?e.toString().substring(0,400):"Not supplied"}),console.log("getFund failed")});return s?.id&&a.Heap.track("Cart.getFund",{fundId:s.id}),s};static add=async(t,e,n,o,l,c,d,u,m)=>{let w=await i(r+"/add",{cartId:t,ein:e,name:n,frequency:o,amount:l,sharing:c,dedication:d,listId:u,currentUrl:m},"POST").catch(r=>{a.Heap.track("Cart.add - Error",{cartId:t,ein:e,listId:u,errMsg:r?r.toString().substring(0,400):"Not supplied"})});if(w&&!w.error)return w&&(a.Heap.track("Cart.add ",{cartId:w.cart_id,cartItemId:w.id,ein:e,listId:u}),s.notifyListeners(t)),w};static addFund=async(t,e,n,o,l,c)=>{let d=await i(r+"/fund/add",{cartId:t,fundId:e,name:n,frequency:o,amount:l,currentUrl:c},"POST").catch(e=>{a.Heap.track("Cart.addFund - Error",{cartId:t,type:"fund",errMsg:e?e.toString().substring(0,400):"Not supplied"})});if(d&&!d.error)return a.Heap.track("Cart.addFund ",{cartId:d.cart_id,cartItemId:d.id}),s.notifyListeners(t),d};static addMultiple=async(t,e)=>{let n=await i(r+"/multi/add",{cartId:t,donations:e},"POST").catch(e=>{a.Heap.track("Cart.addMultiple - Error",{cartId:t,errMsg:e?e.toString().substring(0,400):"Not supplied"})});return n&&(a.Heap.track("Cart.addMultiple ",{cartId:t,results:n}),s.notifyListeners(t)),n};static items=async t=>{let e=await i(r+`/items?cartid=${t}`).catch(e=>(console.error("fetchJson: ",e),a.Heap.track("Cart.items - Error",{cartId:t,errMsg:e?e.toString().substring(0,400):"Not supplied"}),{error:!0,msg:e.toString()}));return e.error||a.Heap.track("Cart.items ",{cartId:t,count:e?.items?.length}),e};static delete=async(t,e)=>{let n=await i(r+"/delete"+`?cartItemID=${e}&cartID=${t}`,{},"DELETE").catch(r=>{console.error(r),a.Heap.track("Cart.delete - Error",{cartId:t,cartItemId:e,errMsg:r?r.toString().substring(0,400):"Not supplied"})});if(n&&!n.error)return a.Heap.track("Cart.delete ",{cartId:t,cartItemId:e}),s.notifyListeners(t),n};
1static deleteFund=async(t,e)=>{let n=await i(r+"/fund/delete"+`?cartItemID=${e}&cartID=${t}`,{},"DELETE").catch(r=>{console.error(r),a.Heap.track("Cart.delete - Error",{cartId:t,cartItemId:e,errMsg:r?r.toString().substring(0,400):"Not supplied"})});if(n)return a.Heap.track("Cart.delete ",{cartId:t,cartItemId:e}),s.notifyListeners(t),n};static update=async(t,e,n,o,l,c)=>{let d=await i(r+"/update"+`?cartItemID=${e}&cartID=${t}`,{amount:n,frequency:o,sharing:l,dedication:c},"PATCH").catch(r=>{console.error(r),a.Heap.track("Cart.update - Error",{cartId:t,cartItemId:e,errMsg:r?r.toString().substring(0,400):"Not supplied"})});if(d&&!d.error)return a.Heap.track("Cart.update ",{cartId:t,cartItemId:e}),s.notifyListeners(t),d};static updateFund=async(t,e,n,o)=>{let l=await i(r+"/fund/update"+`?cartItemID=${e}&cartID=${t}`,{amount:n,frequency:o},"PATCH").catch(r=>{console.error(r),a.Heap.track("Cart.update - Error",{cartId:t,cartItemId:e,errMsg:r?r.toString().substring(0,400):"Not supplied"})});if(l)return a.Heap.track("Cart.update ",{cartId:t,cartItemId:e}),s.notifyListeners(t),l};static complete=async t=>{let e=await i(r+`/complete?cartID=${t}`,{},"POST").catch(e=>{console.error(e),a.Heap.track("Cart.complete - Error",{cartId:t,errMsg:e?e.toString().substring(0,400):"Not supplied"})});if(e)return a.Heap.track("Cart.complete ",{cartId:t}),s.notifyListeners(t),e};static addTransactionFees=async t=>{let e=await i(r+"/addTransactionFees",{cart:t},"POST").catch(e=>{a.Heap.track("Cart.addTransactionFees - Error",{cartId:t.id,errMsg:e?e.toString().substring(0,400):"Not supplied"})});if(e&&!e.error)return e&&a.Heap.track("Cart.addTransactionFees ",{cartId:e}),e}}t.s(["CartClientApi",()=>s],41006);let o=async(t,e=!1)=>{if(!t||"undefined"===t)return;let a=await s.validate(t,e);if(!("error"in a))return a},l=async(t,e=!1)=>{let a=await o(t,e);if(a)return a;console.log(`cart validation for cartId ${t} failed. creating new cart`);let r=await s.create();return"error"in r?{error:!0,message:"cart creation failed",cart:void 0}:r},c=async(t,a,r=!1)=>{let n=await l(a,r);return"error"in n||((0,e.setBasketCount)(t,n.count??0),(0,e.setCart)(t,n.cart)),n},d=async(t,a=!1)=>{let r=(0,e.getCart)(t);return c(t,r?.id??"",a)};t.s(["assignCart",0,c,"fetchCart",0,l,"fetchStoredCart",0,d,"validateCart",0,o],67731)},52452,t=>{"use strict";var e=t.i(43476);function a({className:t}){return(0,e.jsxs)("svg",{viewBox:"0 0 33 34",fill:"currentColor",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsxs)("g",{clipPath:"url(#clip0_849_9407)",children:[(0,e.jsx)("rect",{y:"0.5",width:"33",height:"33",rx:"16.5",fill:"#DC2626"}),(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7455 17.093C17.7194 17.0684 17.7045 17.0341 17.7045 16.9982C17.7045 16.9623 17.7194 16.928 17.7455 16.9035L22.7602 11.8834C22.9136 11.7318 23 11.5251 23 11.3094C23 11.0937 22.9136 10.8869 22.7602 10.7353C22.4418 10.4216 21.9305 10.4216 21.6121 10.7353L16.5975 15.75C16.572 15.7765 16.5368 15.7914 16.5 15.7914C16.4632 15.7914 16.428 15.7765 16.4025 15.75L11.3879 10.7353C11.0695 10.4216 10.5582 10.4216 10.2398 10.7353C10.0864 10.8869 10 11.0937 10 11.3094C10 11.5251 10.0864 11.7318 10.2398 11.8834L15.2545 16.9035C15.2806 16.928 15.2955 16.9623 15.2955 16.9982C15.2955 17.0341 15.2806 17.0684 15.2545 17.093L10.2398 22.1076C10.0864 22.2592 10 22.466 10 22.6817C10 22.8974 10.0864 23.1041 10.2398 23.2557C10.5582 23.5695 11.0695 23.5695 11.3879 23.2557L16.4025 18.2411C16.428 18.2146 16.4632 18.1996 16.5 18.1996C16.5368 18.1996 16.572 18.2146 16.5975 18.2411L21.6121 23.2557C21.9305 23.5695 22.4418 23.5695 22.7602 23.2557C22.9136 23.1041 23 22.8974 23 22.6817C23 22.466 22.9136 22.2592 22.7602 22.1076L17.7455 17.093Z",fill:"white"})]}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:"clip0_849_9407",children:(0,e.jsx)("rect",{width:"33",height:"33",fill:"white",transform:"translate(0 0.5)"})})})]})}t.s(["Error",()=>a])}]);
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.