1"use strict";(self.webpackChunk_pray_www=self.webpackChunk_pray_www||[]).push([[8109],{15433:function(e,t,n){n.d(t,{A:function(){return D},S:function(){return d}});var a=n(40107),o=n(14041),i=n(45155),c=n(39242),s=n(10544),u=n(49208),r=n(50592),M=n(52131),l=n(98785),N={empty:"DonationsHistory-module--empty--5363e",viewport:"DonationsHistory-module--viewport--40c77",container:"DonationsHistory-module--container--ec2be",headline:"DonationsHistory-module--headline--bf9a4",loading:"DonationsHistory-module--loading--52ce6",footer:"DonationsHistory-module--footer--2f670",options:"DonationsHistory-module--options--c7d8e"};function D(){const e=(0,o.useRef)(null),t=(0,o.useRef)(),{0:n,1:D}=(0,o.useState)([]),{0:m,1:y}=(0,o.useState)(!1),g=o.createElement("div",{className:N.loading},o.createElement(u.A,{variant:c.Il.body,color:c.Tj.text_secondary},"Loading your donations..."));async function A(){const t=await M.A.fetchDonationHistory({oldest:e.current});e.current=t.last_item_identifier;const n=t.data.map(d);D((e=>[].concat((0,a.A)(e),(0,a.A)(n)))),y(!1)}return(0,o.useEffect)((()=>{y(!0),A()}),[]),o.createElement(o.Fragment,null,o.createElement(i.A,{title:"Donation History"}),o.createElement("div",{className:N.viewport,ref:t,onScroll:function(){if(t.current){const{scrollTop:n,scrollHeight:a,clientHeight:o}=t.current;n+o+10>a&&e.current&&A()}}},o.createElement("div",{className:N.container},o.createElement(u.A,{className:N.headline},"Donation History"),m&&g,!m&&o.createElement("div",{className:N.options},n.length>0?n.map((e=>o.createElement(l.A,{key:e.id,id:e.id,fundName:e.fundName,organizationName:e.organizatioName,date:e.date,amount:e.amount,status:e.status}))):o.createElement(u.A,{className:N.empty},"Looks like you don't have any donation history.")),o.createElement("div",{className:N.footer},o.createElement(u.A,null,"Need Help?"),o.createElement("a",{href:r.XS.HELP},"Visit our Help Center")))),o.createElement(s.A,null))}const d=e=>({id:e.id,fundName:e.fund_name,organizationName:e.organization_name,date:e.date,amount:e.amount,status:e.status})},52131:function(e,t,n){var a=n(93203),o=n(52154);t.A={fetchDonationHistory:async function(e){let{oldest:t,subscriptionID:n}=e;const i=o.A.getUser(),c={oldest:t};n&&(c.giving_subscription_id=n);const s="/0.13/users/"+i.id+"/giving-payments";return(await a.A.executeGetRequest(s,c)).data},fetchRecurringDonations:async function(e){let{oldest:t}=void 0===e?{}:e;const n={oldest:t},i="/0.13/users/"+o.A.getUser().id+"/giving-subscriptions";return(await a.A.executeGetRequest(i,n)).data},fetchDonationDetails:async function(e){let{id:t}=e;const n="/0.13/users/"+o.A.getUser().id+"/giving-subscriptions/"+t;return(await a.A.executeGetRequest(n)).data},deleteRecurringDonation:async function(e){let{id:t}=e;const n="/0.13/users/"+o.A.getUser().id+"/giving-subscriptions/"+t;return(await a.A.executeDeleteRequest(n)).data}}},86549:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=n(14041),o=n(88165),i=n(93609),c=n(15433),s=n(18105);function u(){const e="/settings/donations/history/";return a.createElement("div",{"data-viewname":s.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.PAGES.DONATION_HISTORY},a.createElement(i.A,{canonicalPath:e}),a.createElement(o.A,{canonicalPath:e}),a.createElement(c.A,null))}},98785:function(e,t,n){n.d(t,{A:function(){return u}});var a=n(14041),o=n(39242),i=n(49208),c={container:"DonationHistoryItem-module--container--a47f0",icon:"DonationHistoryItem-module--icon--ad966",headline:"DonationHistoryItem-module--headline--6ac41",title:"DonationHistoryItem-module--title--ab3d0",subtitle:"DonationHistoryItem-module--subtitle--ec117",date:"DonationHistoryItem-module--date--4006a",donation:"DonationHistoryItem-module--donation--992f2",amount:"DonationHistoryItem-module--amount--382ae",statusMessage:"DonationHistoryItem-module--statusMessage--51837"},s=(n(38032),"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuN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MjVDMy42NDU0MyAyMS4yNSAyLjc1IDIwLjM1NDYgMi43NSAxOS4yNVYxNC43NUMyLjc1IDEzLjY0NTQgMy42NDU0MyAxMi43NSA0Ljc1IDEyLjc1QzUuODU0NTcgMTIuNzUgNi43NSAxMy42NDU0IDYuNzUgMTQuNzVWMTkuMjVDNi43NSAyMC4zNTQ2IDUuODU0NTcgMjEuMjUgNC43NSAyMS4yNVoiIHN0cm9rZT0iI0UzQUY0QSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K");function u(e){let{fundName:t,organizationName:n,date:u,amount:r,status:M}=e;return a.createElement("div",{className:c.container},a.createElement("div",{className:c.icon},a.createElement("img",{src:s,alt:"donation-history-icon"})),a.createElement("div",{className:c.headline},a.createElement(i.A,{className:c.title,color:o.Tj.text_primary},t),a.createElement(i.A,{className:c.subtitle,color:o.Tj.text_secondary},n),a.createElement(i.A,{className:c.date,color:o.Tj.text_secondary},u)),a.createElement("div",{className:c.donation},a.createElement(i.A,{className:c.amount,color:o.Tj.text_secondary},r),M&&a.createElement(i.A,{className:c.statusMessage,color:"attention"===M.c
1olor?o.Tj.attention:o.Tj.text_secondary},M.text)))}}}]);
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.