1import{r as e,j as s}from"./react-vendor.B75MsAI9.js";import{u as o,g as a,w as t,M as n,cF as r,cG as i,L as l,O as c,a as d,a4 as p}from"./AuthModalContainer.CwDh3qj_.js";import"./RTLProvider.Dbr8G8Qw.js";const u=({viewport:p,onClose:u,user:m})=>{o();const h="pb-donate-modal";e.useEffect(()=>{_({event:d.nagDonate})},[]);const _=e=>{const{event:s}=e;window.dataLayer.push({category:t.newDonate,event:s,label:a.popup,item_type:null,item_value:null,item_id:null,user_profile:m.profile_type,user_id:m.id||"00000"})},v=m.readsCount,j=v>=i?s.jsxs("div",{children:[s.jsx("p",{className:`${h}__title`,children:`You found joy through ${v} stories on StoryWeaver!`}),s.jsx("p",{className:`${h}__text`,children:"If you love our work, consider helping us reach more children, with more stories, in more languages!"})]}):s.jsxs("div",{children:[s.jsx("p",{className:`${h}__title`,children:"Love StoryWeaver? Consider donating to us!"}),s.jsx("p",{className:`${h}__text`,children:"This year, our community collectively read 3M+ stories in hundreds of languages! For the cost of a coffee, you could keep this reading movement alive!"})]});return s.jsx(n,{onClose:()=>{_({event:d.closeDonate}),u()},parentClassName:`${h}`,noContentPadding:p.medium,fillViewport:!p.medium,isRtl:!1,children:s.jsxs("div",{className:`${h}__container`,children:[s.jsx("div",{className:`${h}__img-wrapper`,children:s.jsx("img",{className:`${h}__img`,src:v>=i?r.donatePopup1:r.donatePopup2,alt:"popup"})}),s.jsxs("div",{className:`${h}__content-wrapper`,children:[j,s.jsx(l,{href:c.donate(),onClick:()=>{_({event:d.clickDonate})},parentClassName:`${h}__link`,children:"Donate Now"})]})]})})};u.propTypes={viewport:p.object,onClose:p.func,user:p.object};export{u as default}; 2//# sourceMappingURL=DonateSeason.DMYwg96I.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.