@ammarkhalidfarooq/dashboard-package 0.6.68 → 0.6.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +148 -125
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +148 -125
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1486,8 +1486,8 @@ var buildReportData = function buildReportData() {
|
|
|
1486
1486
|
var totalVisits = Number((_apiData$totalVisits = apiData === null || apiData === void 0 ? void 0 : apiData.totalVisits) !== null && _apiData$totalVisits !== void 0 ? _apiData$totalVisits : 12438);
|
|
1487
1487
|
var passThrough = totalRaised > 0 ? "".concat((netRaised / totalRaised * 100).toFixed(1), "% pass-through") : "92.3% pass-through";
|
|
1488
1488
|
var donorMixRaw = apiData === null || apiData === void 0 ? void 0 : apiData.donorPieChartData;
|
|
1489
|
-
var newDonors =
|
|
1490
|
-
var returningDonors =
|
|
1489
|
+
var newDonors = 0;
|
|
1490
|
+
var returningDonors = 0;
|
|
1491
1491
|
if (Array.isArray(donorMixRaw)) {
|
|
1492
1492
|
var nd = donorMixRaw.find(function (d) {
|
|
1493
1493
|
return /new/i.test(d.type);
|
|
@@ -1503,9 +1503,9 @@ var buildReportData = function buildReportData() {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
var avgGift = Number(((_overview$overallAVGD2 = overview === null || overview === void 0 ? void 0 : overview.overallAVGDonations) !== null && _overview$overallAVGD2 !== void 0 ? _overview$overallAVGD2 : 0).toFixed(2));
|
|
1505
1505
|
var donorMixPrev = Number(((_growth$overallAVGDon = growth === null || growth === void 0 ? void 0 : growth.overallAVGDonations) !== null && _growth$overallAVGDon !== void 0 ? _growth$overallAVGDon : 0).toFixed(2));
|
|
1506
|
-
var totalMix = newDonors + returningDonors
|
|
1507
|
-
var newPct = Math.round(newDonors / totalMix * 100);
|
|
1508
|
-
var retPct = 100 - newPct;
|
|
1506
|
+
var totalMix = newDonors + returningDonors;
|
|
1507
|
+
var newPct = totalMix > 0 ? Math.round(newDonors / totalMix * 100) : 0;
|
|
1508
|
+
var retPct = totalMix > 0 ? 100 - newPct : 0;
|
|
1509
1509
|
var hero = {
|
|
1510
1510
|
value: "$".concat(formatNumber(totalRaised)),
|
|
1511
1511
|
trend: "".concat(formatTrend((_growth$totalRevenue = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue !== void 0 ? _growth$totalRevenue : 18), " vs ").concat(dateName || "last month"),
|
|
@@ -2095,17 +2095,82 @@ var ProgressBar = function ProgressBar(_ref8) {
|
|
|
2095
2095
|
})]
|
|
2096
2096
|
});
|
|
2097
2097
|
};
|
|
2098
|
-
var
|
|
2099
|
-
var _ref9$
|
|
2100
|
-
|
|
2101
|
-
_ref9$
|
|
2102
|
-
|
|
2103
|
-
_ref9$
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2098
|
+
var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
|
|
2099
|
+
var _ref9$geoList = _ref9.geoList,
|
|
2100
|
+
geoList = _ref9$geoList === void 0 ? [] : _ref9$geoList,
|
|
2101
|
+
_ref9$totalDonors = _ref9.totalDonors,
|
|
2102
|
+
totalDonors = _ref9$totalDonors === void 0 ? 0 : _ref9$totalDonors,
|
|
2103
|
+
_ref9$barColor = _ref9.barColor,
|
|
2104
|
+
barColor = _ref9$barColor === void 0 ? "#6366F1" : _ref9$barColor;
|
|
2105
|
+
return /*#__PURE__*/jsx(Panel, {
|
|
2106
|
+
title: "Donor geography",
|
|
2107
|
+
subtitle: "Top countries \xB7 ".concat(formatNumber(totalDonors), " total"),
|
|
2108
|
+
children: (geoList.length ? geoList.slice(0, 6) : []).map(function (g, i) {
|
|
2109
|
+
var _g$percentage;
|
|
2110
|
+
return /*#__PURE__*/jsxs("div", {
|
|
2111
|
+
style: {
|
|
2112
|
+
padding: i < 5 ? "0 0 5px" : 0,
|
|
2113
|
+
marginBottom: i < 5 ? 5 : 0,
|
|
2114
|
+
borderBottom: i < 5 ? "1px solid #F3F4F6" : "none"
|
|
2115
|
+
},
|
|
2116
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
2117
|
+
style: {
|
|
2118
|
+
display: "flex",
|
|
2119
|
+
justifyContent: "space-between",
|
|
2120
|
+
alignItems: "center",
|
|
2121
|
+
gap: 6,
|
|
2122
|
+
marginBottom: 3
|
|
2123
|
+
},
|
|
2124
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
2125
|
+
style: {
|
|
2126
|
+
fontSize: 9,
|
|
2127
|
+
color: "#374151",
|
|
2128
|
+
overflow: "hidden",
|
|
2129
|
+
textOverflow: "ellipsis",
|
|
2130
|
+
whiteSpace: "nowrap",
|
|
2131
|
+
minWidth: 0
|
|
2132
|
+
},
|
|
2133
|
+
children: g.country
|
|
2134
|
+
}), /*#__PURE__*/jsxs("span", {
|
|
2135
|
+
style: {
|
|
2136
|
+
fontSize: 9,
|
|
2137
|
+
fontWeight: 700,
|
|
2138
|
+
color: "#111827",
|
|
2139
|
+
flexShrink: 0
|
|
2140
|
+
},
|
|
2141
|
+
children: [formatNumber(g.value), " \xB7 ", formatNumber(g.percentage), "%"]
|
|
2142
|
+
})]
|
|
2143
|
+
}), /*#__PURE__*/jsx("div", {
|
|
2144
|
+
style: {
|
|
2145
|
+
height: 5,
|
|
2146
|
+
background: "#F3F4F6",
|
|
2147
|
+
borderRadius: 3,
|
|
2148
|
+
overflow: "hidden"
|
|
2149
|
+
},
|
|
2150
|
+
children: /*#__PURE__*/jsx("div", {
|
|
2151
|
+
style: {
|
|
2152
|
+
width: "".concat(Math.min(100, Math.max(0, Number((_g$percentage = g.percentage) !== null && _g$percentage !== void 0 ? _g$percentage : 0))), "%"),
|
|
2153
|
+
height: "100%",
|
|
2154
|
+
background: barColor,
|
|
2155
|
+
borderRadius: 3
|
|
2156
|
+
}
|
|
2157
|
+
})
|
|
2158
|
+
})]
|
|
2159
|
+
}, i);
|
|
2160
|
+
})
|
|
2161
|
+
});
|
|
2162
|
+
};
|
|
2163
|
+
var DonationTypeBarSvg = function DonationTypeBarSvg(_ref0) {
|
|
2164
|
+
var _ref0$categories = _ref0.categories,
|
|
2165
|
+
categories = _ref0$categories === void 0 ? [] : _ref0$categories,
|
|
2166
|
+
_ref0$recurring = _ref0.recurring,
|
|
2167
|
+
recurring = _ref0$recurring === void 0 ? [] : _ref0$recurring,
|
|
2168
|
+
_ref0$oneTime = _ref0.oneTime,
|
|
2169
|
+
oneTime = _ref0$oneTime === void 0 ? [] : _ref0$oneTime,
|
|
2170
|
+
_ref0$recurringColor = _ref0.recurringColor,
|
|
2171
|
+
recurringColor = _ref0$recurringColor === void 0 ? "#6366F1" : _ref0$recurringColor,
|
|
2172
|
+
_ref0$oneTimeColor = _ref0.oneTimeColor,
|
|
2173
|
+
oneTimeColor = _ref0$oneTimeColor === void 0 ? "#10B981" : _ref0$oneTimeColor;
|
|
2109
2174
|
var width = 158;
|
|
2110
2175
|
var height = 96;
|
|
2111
2176
|
var padL = 30;
|
|
@@ -2226,12 +2291,12 @@ var DonationTypeBarSvg = function DonationTypeBarSvg(_ref9) {
|
|
|
2226
2291
|
})]
|
|
2227
2292
|
});
|
|
2228
2293
|
};
|
|
2229
|
-
var DonationTypePanel = function DonationTypePanel(
|
|
2230
|
-
var donationTypeData =
|
|
2231
|
-
|
|
2232
|
-
recurringColor =
|
|
2233
|
-
|
|
2234
|
-
oneTimeColor =
|
|
2294
|
+
var DonationTypePanel = function DonationTypePanel(_ref1) {
|
|
2295
|
+
var donationTypeData = _ref1.donationTypeData,
|
|
2296
|
+
_ref1$recurringColor = _ref1.recurringColor,
|
|
2297
|
+
recurringColor = _ref1$recurringColor === void 0 ? "#6366F1" : _ref1$recurringColor,
|
|
2298
|
+
_ref1$oneTimeColor = _ref1.oneTimeColor,
|
|
2299
|
+
oneTimeColor = _ref1$oneTimeColor === void 0 ? "#10B981" : _ref1$oneTimeColor;
|
|
2235
2300
|
var _parseDonationTypeCha = parseDonationTypeChartData(donationTypeData),
|
|
2236
2301
|
categories = _parseDonationTypeCha.categories,
|
|
2237
2302
|
recurring = _parseDonationTypeCha.recurring,
|
|
@@ -2296,21 +2361,21 @@ var DonationTypePanel = function DonationTypePanel(_ref0) {
|
|
|
2296
2361
|
})]
|
|
2297
2362
|
});
|
|
2298
2363
|
};
|
|
2299
|
-
var AcceptanceRaisedPanel = function AcceptanceRaisedPanel(
|
|
2300
|
-
var title =
|
|
2301
|
-
subtitle =
|
|
2302
|
-
|
|
2303
|
-
acceptanceRate =
|
|
2304
|
-
|
|
2305
|
-
acceptanceGrowth =
|
|
2306
|
-
|
|
2307
|
-
raised =
|
|
2308
|
-
|
|
2309
|
-
raisedGrowth =
|
|
2310
|
-
|
|
2311
|
-
primaryColor =
|
|
2312
|
-
|
|
2313
|
-
secondaryColor =
|
|
2364
|
+
var AcceptanceRaisedPanel = function AcceptanceRaisedPanel(_ref10) {
|
|
2365
|
+
var title = _ref10.title,
|
|
2366
|
+
subtitle = _ref10.subtitle,
|
|
2367
|
+
_ref10$acceptanceRate = _ref10.acceptanceRate,
|
|
2368
|
+
acceptanceRate = _ref10$acceptanceRate === void 0 ? 0 : _ref10$acceptanceRate,
|
|
2369
|
+
_ref10$acceptanceGrow = _ref10.acceptanceGrowth,
|
|
2370
|
+
acceptanceGrowth = _ref10$acceptanceGrow === void 0 ? 0 : _ref10$acceptanceGrow,
|
|
2371
|
+
_ref10$raised = _ref10.raised,
|
|
2372
|
+
raised = _ref10$raised === void 0 ? 0 : _ref10$raised,
|
|
2373
|
+
_ref10$raisedGrowth = _ref10.raisedGrowth,
|
|
2374
|
+
raisedGrowth = _ref10$raisedGrowth === void 0 ? 0 : _ref10$raisedGrowth,
|
|
2375
|
+
_ref10$primaryColor = _ref10.primaryColor,
|
|
2376
|
+
primaryColor = _ref10$primaryColor === void 0 ? "#6366F1" : _ref10$primaryColor,
|
|
2377
|
+
_ref10$secondaryColor = _ref10.secondaryColor,
|
|
2378
|
+
secondaryColor = _ref10$secondaryColor === void 0 ? "#88bfd290" : _ref10$secondaryColor;
|
|
2314
2379
|
return /*#__PURE__*/jsx(Panel, {
|
|
2315
2380
|
title: title,
|
|
2316
2381
|
subtitle: subtitle,
|
|
@@ -2436,15 +2501,15 @@ var AcceptanceRaisedPanel = function AcceptanceRaisedPanel(_ref1) {
|
|
|
2436
2501
|
})
|
|
2437
2502
|
});
|
|
2438
2503
|
};
|
|
2439
|
-
var KpiCard = function KpiCard(
|
|
2440
|
-
var title =
|
|
2441
|
-
value =
|
|
2442
|
-
trend =
|
|
2443
|
-
detail =
|
|
2444
|
-
|
|
2445
|
-
variant =
|
|
2446
|
-
|
|
2447
|
-
trendPositiveWhenNegative =
|
|
2504
|
+
var KpiCard = function KpiCard(_ref11) {
|
|
2505
|
+
var title = _ref11.title,
|
|
2506
|
+
value = _ref11.value,
|
|
2507
|
+
trend = _ref11.trend,
|
|
2508
|
+
detail = _ref11.detail,
|
|
2509
|
+
_ref11$variant = _ref11.variant,
|
|
2510
|
+
variant = _ref11$variant === void 0 ? "secondary" : _ref11$variant,
|
|
2511
|
+
_ref11$trendPositiveW = _ref11.trendPositiveWhenNegative,
|
|
2512
|
+
trendPositiveWhenNegative = _ref11$trendPositiveW === void 0 ? false : _ref11$trendPositiveW;
|
|
2448
2513
|
var displayTrend = withTrendArrow(trend);
|
|
2449
2514
|
var isPrimary = variant === "primary";
|
|
2450
2515
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -2495,12 +2560,12 @@ var KpiCard = function KpiCard(_ref10) {
|
|
|
2495
2560
|
})]
|
|
2496
2561
|
});
|
|
2497
2562
|
};
|
|
2498
|
-
var PageHeader = function PageHeader(
|
|
2499
|
-
var dateLabel =
|
|
2500
|
-
generatedLabel =
|
|
2501
|
-
activeFilters =
|
|
2502
|
-
page =
|
|
2503
|
-
windowLabel =
|
|
2563
|
+
var PageHeader = function PageHeader(_ref12) {
|
|
2564
|
+
var dateLabel = _ref12.dateLabel,
|
|
2565
|
+
generatedLabel = _ref12.generatedLabel,
|
|
2566
|
+
activeFilters = _ref12.activeFilters,
|
|
2567
|
+
page = _ref12.page,
|
|
2568
|
+
windowLabel = _ref12.windowLabel;
|
|
2504
2569
|
return /*#__PURE__*/jsxs("div", {
|
|
2505
2570
|
style: {
|
|
2506
2571
|
padding: "22px ".concat(MX, "px 12px"),
|
|
@@ -2606,9 +2671,9 @@ var PageHeader = function PageHeader(_ref11) {
|
|
|
2606
2671
|
})]
|
|
2607
2672
|
});
|
|
2608
2673
|
};
|
|
2609
|
-
var PageFooter = function PageFooter(
|
|
2610
|
-
var generatedLabel =
|
|
2611
|
-
page =
|
|
2674
|
+
var PageFooter = function PageFooter(_ref13) {
|
|
2675
|
+
var generatedLabel = _ref13.generatedLabel,
|
|
2676
|
+
page = _ref13.page;
|
|
2612
2677
|
return /*#__PURE__*/jsx("div", {
|
|
2613
2678
|
style: {
|
|
2614
2679
|
padding: "7px ".concat(MX, "px"),
|
|
@@ -2628,16 +2693,16 @@ var PageFooter = function PageFooter(_ref12) {
|
|
|
2628
2693
|
};
|
|
2629
2694
|
|
|
2630
2695
|
// ─── Main component ───────────────────────────────────────────────────────────
|
|
2631
|
-
var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (
|
|
2632
|
-
var _apiData$overviewStat, _overview$totalRevenu, _overview$netRevenue, _overview$overallAVGD, _overview$conversionR, _apiData$totalVisits, _refundsRaw$refundRat, _refundsRaw$chargebac, _apiData$trafficSourc2, _metricByTitle$NetRa, _metricByTitle$Total, _metricByTitle$Total2, _metricByTitle$Total3, _metricByTitle$AvgDo, _metricByTitle$AvgDo2, _apiData$medianGift, _apiData$topDecileGif, _apiData$roasCard, _metricByTitle$ROAS, _apiData$roasCardPrev, _metricByTitle$ROAS2, _apiData$adSpend, _apiData$attributedRe, _metricByTitle$Conver, _metricByTitle$Conver2, _metricByTitle$Refund, _metricByTitle$Refund2, _refundsRaw$refundCou, _metricByTitle$Refund3, _mainChart$stacked, _refundsRaw$refundRat2, _ob$growthPercentage, _ob$peakDay, _up$acceptanceGrowth, _up$raisedGrowth, _dn$acceptanceGrowth, _dn$raisedGrowth, _refCard$growthPercen;
|
|
2633
|
-
var
|
|
2634
|
-
apiData =
|
|
2635
|
-
|
|
2636
|
-
dateName =
|
|
2637
|
-
|
|
2638
|
-
numberOfDays =
|
|
2639
|
-
|
|
2640
|
-
activeFilters =
|
|
2696
|
+
var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
2697
|
+
var _apiData$overviewStat, _overview$totalRevenu, _overview$netRevenue, _overview$overallAVGD, _overview$conversionR, _apiData$totalVisits, _refundsRaw$refundRat, _refundsRaw$chargebac, _apiData$trafficSourc, _apiData$trafficSourc2, _apiData$trafficSourc3, _metricByTitle$NetRa, _metricByTitle$Total, _metricByTitle$Total2, _metricByTitle$Total3, _metricByTitle$AvgDo, _metricByTitle$AvgDo2, _apiData$medianGift, _apiData$topDecileGif, _apiData$roasCard, _metricByTitle$ROAS, _apiData$roasCardPrev, _metricByTitle$ROAS2, _apiData$adSpend, _apiData$attributedRe, _metricByTitle$Conver, _metricByTitle$Conver2, _metricByTitle$Refund, _metricByTitle$Refund2, _refundsRaw$refundCou, _metricByTitle$Refund3, _mainChart$stacked, _refundsRaw$refundRat2, _ob$growthPercentage, _ob$peakDay, _up$acceptanceGrowth, _up$raisedGrowth, _dn$acceptanceGrowth, _dn$raisedGrowth, _refCard$growthPercen;
|
|
2698
|
+
var _ref14$apiData = _ref14.apiData,
|
|
2699
|
+
apiData = _ref14$apiData === void 0 ? {} : _ref14$apiData,
|
|
2700
|
+
_ref14$dateName = _ref14.dateName,
|
|
2701
|
+
dateName = _ref14$dateName === void 0 ? "Last Period" : _ref14$dateName,
|
|
2702
|
+
_ref14$numberOfDays = _ref14.numberOfDays,
|
|
2703
|
+
numberOfDays = _ref14$numberOfDays === void 0 ? 30 : _ref14$numberOfDays,
|
|
2704
|
+
_ref14$activeFilters = _ref14.activeFilters,
|
|
2705
|
+
activeFilters = _ref14$activeFilters === void 0 ? [] : _ref14$activeFilters;
|
|
2641
2706
|
var now = new Date();
|
|
2642
2707
|
var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
|
|
2643
2708
|
var windowLabel = "".concat(numberOfDays, "-day window");
|
|
@@ -2712,28 +2777,8 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2712
2777
|
mixAvgGift = donorMix.avgGift,
|
|
2713
2778
|
donorMixPrev = donorMix.donorMixPrev;
|
|
2714
2779
|
var geoList = report.donorGeographyList;
|
|
2715
|
-
var trafficItems =
|
|
2716
|
-
|
|
2717
|
-
if (items.length) return items;
|
|
2718
|
-
return [{
|
|
2719
|
-
source: "Paid Ads",
|
|
2720
|
-
revenue: 98400,
|
|
2721
|
-
share: 41
|
|
2722
|
-
}, {
|
|
2723
|
-
source: "Organic",
|
|
2724
|
-
revenue: 62100,
|
|
2725
|
-
share: 26
|
|
2726
|
-
}, {
|
|
2727
|
-
source: "Email",
|
|
2728
|
-
revenue: 38600,
|
|
2729
|
-
share: 16
|
|
2730
|
-
}, {
|
|
2731
|
-
source: "Direct",
|
|
2732
|
-
revenue: 15500,
|
|
2733
|
-
share: 6
|
|
2734
|
-
}];
|
|
2735
|
-
}();
|
|
2736
|
-
var trafficTotal = Number((apiData === null || apiData === void 0 || (_apiData$trafficSourc2 = apiData.trafficSourceData) === null || _apiData$trafficSourc2 === void 0 ? void 0 : _apiData$trafficSourc2.totalRevenue) || 240900);
|
|
2780
|
+
var trafficItems = Array.isArray(apiData === null || apiData === void 0 || (_apiData$trafficSourc = apiData.trafficSourceData) === null || _apiData$trafficSourc === void 0 ? void 0 : _apiData$trafficSourc.data) ? apiData.trafficSourceData.data : [];
|
|
2781
|
+
var trafficTotal = Number((_apiData$trafficSourc2 = apiData === null || apiData === void 0 || (_apiData$trafficSourc3 = apiData.trafficSourceData) === null || _apiData$trafficSourc3 === void 0 ? void 0 : _apiData$trafficSourc3.totalRevenue) !== null && _apiData$trafficSourc2 !== void 0 ? _apiData$trafficSourc2 : 0);
|
|
2737
2782
|
var revSeries = (mainChart.series || []).length ? mainChart.series : [{
|
|
2738
2783
|
name: "Paid Ads",
|
|
2739
2784
|
data: []
|
|
@@ -2943,10 +2988,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2943
2988
|
gap: 14,
|
|
2944
2989
|
marginBottom: 6
|
|
2945
2990
|
},
|
|
2946
|
-
children: [["Email", C.cyan], ["Organic", C.emerald], ["Paid Ads", C.indigo]].map(function (
|
|
2947
|
-
var
|
|
2948
|
-
name =
|
|
2949
|
-
color =
|
|
2991
|
+
children: [["Email", C.cyan], ["Organic", C.emerald], ["Paid Ads", C.indigo]].map(function (_ref15) {
|
|
2992
|
+
var _ref16 = _slicedToArray(_ref15, 2),
|
|
2993
|
+
name = _ref16[0],
|
|
2994
|
+
color = _ref16[1];
|
|
2950
2995
|
return /*#__PURE__*/jsxs("div", {
|
|
2951
2996
|
style: {
|
|
2952
2997
|
display: "flex",
|
|
@@ -3170,32 +3215,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
3170
3215
|
donationTypeData: report.donationTypeData,
|
|
3171
3216
|
recurringColor: C.indigo,
|
|
3172
3217
|
oneTimeColor: C.emerald
|
|
3173
|
-
}), /*#__PURE__*/jsx(
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
return /*#__PURE__*/jsxs("div", {
|
|
3178
|
-
style: {
|
|
3179
|
-
display: "flex",
|
|
3180
|
-
justifyContent: "space-between",
|
|
3181
|
-
padding: "3.5px 0",
|
|
3182
|
-
borderBottom: i < 5 ? "1px solid #F3F4F6" : "none"
|
|
3183
|
-
},
|
|
3184
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
3185
|
-
style: {
|
|
3186
|
-
fontSize: 9,
|
|
3187
|
-
color: "#374151"
|
|
3188
|
-
},
|
|
3189
|
-
children: g.country
|
|
3190
|
-
}), /*#__PURE__*/jsxs("span", {
|
|
3191
|
-
style: {
|
|
3192
|
-
fontSize: 9,
|
|
3193
|
-
color: "#6B7280"
|
|
3194
|
-
},
|
|
3195
|
-
children: [formatNumber(g.value), " \xB7 ", formatNumber(g.percentage), "%"]
|
|
3196
|
-
})]
|
|
3197
|
-
}, i);
|
|
3198
|
-
})
|
|
3218
|
+
}), /*#__PURE__*/jsx(DonorGeographyPanel, {
|
|
3219
|
+
geoList: geoList,
|
|
3220
|
+
totalDonors: totalDonors,
|
|
3221
|
+
barColor: C.indigo
|
|
3199
3222
|
}), /*#__PURE__*/jsxs(Panel, {
|
|
3200
3223
|
title: "Refunds & chargebacks",
|
|
3201
3224
|
subtitle: "Trust health \xB7 ".concat(numberOfDays, "-day window"),
|
|
@@ -3325,10 +3348,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
3325
3348
|
display: "flex",
|
|
3326
3349
|
gap: 12
|
|
3327
3350
|
},
|
|
3328
|
-
children: [["Avg/day", d$((ob === null || ob === void 0 ? void 0 : ob.averagePerDay) || 0)], ["Peak day", d$((ob === null || ob === void 0 || (_ob$peakDay = ob.peakDay) === null || _ob$peakDay === void 0 ? void 0 : _ob$peakDay.amount) || 0)], ["Orders", formatNumber((ob === null || ob === void 0 ? void 0 : ob.totalOrders) || 0)]].map(function (
|
|
3329
|
-
var
|
|
3330
|
-
l =
|
|
3331
|
-
v =
|
|
3351
|
+
children: [["Avg/day", d$((ob === null || ob === void 0 ? void 0 : ob.averagePerDay) || 0)], ["Peak day", d$((ob === null || ob === void 0 || (_ob$peakDay = ob.peakDay) === null || _ob$peakDay === void 0 ? void 0 : _ob$peakDay.amount) || 0)], ["Orders", formatNumber((ob === null || ob === void 0 ? void 0 : ob.totalOrders) || 0)]].map(function (_ref17) {
|
|
3352
|
+
var _ref18 = _slicedToArray(_ref17, 2),
|
|
3353
|
+
l = _ref18[0],
|
|
3354
|
+
v = _ref18[1];
|
|
3332
3355
|
return /*#__PURE__*/jsxs("div", {
|
|
3333
3356
|
children: [/*#__PURE__*/jsx("div", {
|
|
3334
3357
|
style: {
|
|
@@ -3401,10 +3424,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
3401
3424
|
display: "flex",
|
|
3402
3425
|
gap: 12
|
|
3403
3426
|
},
|
|
3404
|
-
children: [["Referrers", formatNumber((refCard === null || refCard === void 0 ? void 0 : refCard.totalReferrers) || 0)], ["Avg gift", d$((refCard === null || refCard === void 0 ? void 0 : refCard.averageGift) || 0)], ["Conv. rate", pct((refCard === null || refCard === void 0 ? void 0 : refCard.conversionRate) || 0, 1)]].map(function (
|
|
3405
|
-
var
|
|
3406
|
-
l =
|
|
3407
|
-
v =
|
|
3427
|
+
children: [["Referrers", formatNumber((refCard === null || refCard === void 0 ? void 0 : refCard.totalReferrers) || 0)], ["Avg gift", d$((refCard === null || refCard === void 0 ? void 0 : refCard.averageGift) || 0)], ["Conv. rate", pct((refCard === null || refCard === void 0 ? void 0 : refCard.conversionRate) || 0, 1)]].map(function (_ref19) {
|
|
3428
|
+
var _ref20 = _slicedToArray(_ref19, 2),
|
|
3429
|
+
l = _ref20[0],
|
|
3430
|
+
v = _ref20[1];
|
|
3408
3431
|
return /*#__PURE__*/jsxs("div", {
|
|
3409
3432
|
children: [/*#__PURE__*/jsx("div", {
|
|
3410
3433
|
style: {
|