1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5797],{39820:(e,r,a)=>{"use strict";a.r(r),a.d(r,{__N_SSP:()=>D,default:()=>b});var t=a(874429),i=a(586437),n=a(671884),o=a(132779),d=a(56119),s=a.n(d),c=a(46001),l=a.n(c),u=a(340570),y=a(869891),_=a(9575),h=a(981422),g=a(798081),m=a(484715),p=a.n(m);function v({children:e,charityName:r}){let a=r?(0,g.t)("Dashboard - {{charityName}}",{charityName:r}):"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s(),{children:(0,t.jsx)("title",{children:a})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{id:"portal"}),(0,t.jsx)(_.Dy,{}),(0,t.jsx)(h.t,{children:(0,t.jsx)("main",{className:p().mainContent,"data-tracking-surface":"npo",children:(0,t.jsx)(u.m,{className:p().container,children:(0,t.jsxs)("div",{className:l()(p().main,"hrt-mb-8"),children:[(0,t.jsx)("div",{className:p().leftMargin}),(0,t.jsx)("div",{className:p().content,children:e})]})})})}),(0,t.jsx)(y.V,{onLocaleChange:function(){window.scrollTo({top:0})}})]})]})}var f=a(410982),j=a(454482),C=a(242096),x=a(198379),I=a(251534),w=a(612464),N=a(785970),P=a(941566),T=a(450466),A=a(542596);function b({charity:e,isAdminUser:r}){let{countryCodeFromIP:a}=(0,C.SF)(),{data:d,showLoading:s}=(0,N.r)(),{data:c,error:l,loading:u}=(0,A.ph)({skip:!d}),y=c?.getCharityForLoggedInUser?.charity,_=c?.getCharityForLoggedInUser?.isLegacyClaim!=null,h=e?.country!=="US";(0,w.c)(!!d);let{data:g,loading:m}=(0,I.uy)({variables:{charityId:y?.id||""},skip:!y?.id||!d?.person_id}),p=g?.getNpoClaimsByCharityId?.find(e=>e.status===x.GVt.APPROVED),v=p?.charityCommunity,T=v?(0,n.o)(v,y?.defaultFundId):void 0,D=y?.country?.toUpperCase()||a,L=y?.id!==void 0?parseInt(y?.id,10):void 0,{data:k,isLoading:F}=(0,o.E)(!!L,L),E=p?.agreedToPrivacyPolicy??!1,O=y?.verifiedAt!=null;if(h&&e&&r){if(s||u||m)return(0,t.jsx)(f.R,{});let r={total_donations:e.charityAggregates?.totalDonations||0,total_fundraisers:e.charityAggregates?.totalFundraisers||0,total_fundraisers_direct:0,total_raised:e.charityAggregates?.totalDonated?.[0]?.amount||0,total_raised_supporter:"0",social_counts:{shares:0,likes:0}};return(0,t.jsx)(i.T,{aggregateData:r,agreedToPrivacyPolicy:E,charity:e,charityCommunity:{id:parseInt(e.id||"0",10),ein:e.ein||"",charities_id:parseInt(e.id||"0",10),slug:e.slug||"",default_fund_id:parseInt(e.defaultFundId||"0",10),name:e.name||"",address:e.addressLine1||"",city:e.city||"",government_id:e.ein||"",region:e.state||"",postal_code:e.zipCode||"",country_code:e.country||"",currency_code:(0,P.T9)(e.country),description:e.description||"",logo_url:e.logo?.url||""},countryCode:e.country,currencyCode:(0,P.T9)(e.country),email:d?.email||"",isVerified:!!e.verifiedAt,showBlurredActivityOverview:!1})}let U=_&&!l&&c&&T&&k&&L;return s||u||m||F?(0,t.jsx)(f.R,{}):U?(0,t.jsx)(i.T,{aggregateData:k.references.charity[L],agreedToPrivacyPolicy:E,charityCommunity:T,countryCode:D,currencyCode:T.currency_code.toUpperCase(),email:p?.user?.email??d?.email??"",isVerified:O,showBlurredActivityOverview:!O&&(D===j.dw.UNITED_KINGDOM||D===j.dw.AUSTRALIA)}):null}b.getLayout=(0,T.Y)(e=>{let r=e.props.charity?.name;return(0,t.jsx)(v,{charityName:r,children:e})});var D=!0},163403:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/charity/[charitySlug]/dashboard",function(){return a(39820)}])},340570:(e,r,a)=>{"use strict";a.d(r,{m:()=>t.m});var t=a(54931)},484715:e=>{e.exports={mainContent:"dashboard_mainContent__PyIkw",container:"dashboard_container__u3p5R",main:"dashboard_main__VdZIm",content:"dashboard_content__2IuPq",leftMargin:"dashboard_leftMargin__30rfd"}},941566:(e,r,a)=>{"use strict";a.d(r,{Ap:()=>i.Ap,HY:()=>t.HY,Iy:()=>i.Iy,KY:()=>t.KY,Lg:()=>i.Lg,Of:()=>i.Of,PX:()=>i.PX,T9:()=>i.T9,Wr:()=>t.Wr,Yo:()=>i.Yo,Z8:()=>i.Z8,j:()=>i.j,jo:()=>i.jo,pF:()=>t.pF,uz:()=>t.uz,vv:()=>i.vv,wD:()=>i.wD,yz:()=>i.yz});var t=a(205801),i=a(300913)}},e=>{e.O(0,[6704,19937,57600,17272,98288,65459,31279,46706,30367,74456,44874,17858,38974,9575,69891,24306,51534,52548,43778,25686,34676,90636,46593,38792],()=>e(e.s=163403)),_N_E=e.O()}]); 2//# sourceMappingURL=dashboard-80dedd4ee00d18b4.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.