import{j as r}from"./router.chunk.YsRm4bSN.js";import{n as s,o,B as a,b8 as n,c0 as e,r as t,E as i}from"./main.chunk.N-eZ2ybB.js";import{_ as __}from"./wordpress.chunk.BVds2GcU.js";import{P as d}from"./pro-badge.chunk.PstHsVdU.js";import{aB as c}from"./icons.chunk.BwnSC3zE.js";import{M as u}from"./metrics-card.chunk.ao_0wOYX.js";import{u as m}from"./use-currency.chunk.QE--bLc6.js";import{U as g}from"./user-preview-card.chunk.Dtl6ZM0u.js";import"./react-jsx-runtime.chunk.ATkk6v2S.js";import"./react.js";import"./react-dom-client.chunk.BMQ1litG.js";import"./react-dom.js";import"./pdf-core.chunk.D33I_Wdh.js";import"./ui-radix.chunk.Xzokq_Gv.js";import"./utils.chunk.C1IATKsN.js";import"./date-utils.chunk.DWRtWTmT.js";import"./forms.chunk.Bz8aaTWe.js";import"./tooltip.chunk.DtTQ21GF.js";import"./dot-separator.chunk.CtyhSI2x.js";const l=()=>r.jsx(s,{className:"growfund-border-none",children:r.jsxs(o,{className:"growfund-p-5",children:[r.jsxs("div",{className:"growfund-flex growfund-items-center growfund-justify-between",children:[r.jsxs("h6",{className:"growfund-typo-h6 growfund-font-semibold growfund-text-fg-primary",children:[__("Activity Logs","growfund")," ",r.jsx(d,{})]}),r.jsxs(a,{variant:"ghost",size:"sm",children:[r.jsx(c,{}),__("See All Logs","growfund")]})]}),r.jsx("div",{className:"growfund-relative growfund-min-h-52 growfund-bg-no-repeat growfund-bg-contain growfund-mt-4",style:{backgroundImage:`url('${n("/images/activity-log-overlay.webp")}')`}})]})}),f=()=>{const{toCurrencyCompact:s}=m();return r.jsx("div",{className:"growfund-space-y-4 growfund-mt-4",children:r.jsx("div",{className:"growfund-grid growfund-gap-4",children:r.jsxs("div",{className:"growfund-flex growfund-items-center growfund-gap-4",children:[r.jsx(u,{data:{label:__("Total Donated","growfund"),amount:s(721e3)},isPro:!0}),r.jsx(u,{data:{label:__("Average Donation","growfund"),amount:s(3e5)},isPro:!0}),r.jsx(u,{data:{label:__("Donated Campaigns","growfund"),amount:"20"},isPro:!0}),r.jsx(u,{data:{label:__("Total Donation","growfund"),amount:"1156"},isPro:!0})]})})})},j=()=>{const{donor:s}=e(),o=t.get("DonorOverviewMetrics"),a=t.get("DonorActivityLogCard");return r.jsxs("div",{className:"growfund-space-y-4 growfund-mt-4",children:[r.jsx(i,{fallback:r.jsx(f,{}),children:o&&r.jsx(o,{})}),r.jsxs("div",{className:"growfund-grid growfund-grid-cols-[320px_auto] growfund-gap-4",children:[r.jsx(g,{user:s.profile,hideHeader:!0}),r.jsx(i,{fallback:r.jsx(l,{}),children:a&&r.jsx(a,{})})]})]})};export{j as default};
