@ammarkhalidfarooq/dashboard-package 0.6.69 → 0.6.71
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 +215 -142
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +215 -142
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -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 (
|
|
2696
|
+
var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
2632
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;
|
|
2633
|
-
var
|
|
2634
|
-
apiData =
|
|
2635
|
-
|
|
2636
|
-
dateName =
|
|
2637
|
-
|
|
2638
|
-
numberOfDays =
|
|
2639
|
-
|
|
2640
|
-
activeFilters =
|
|
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");
|
|
@@ -2779,6 +2844,23 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2779
2844
|
emerald: "#10B981",
|
|
2780
2845
|
cyan: "#06B6D4"
|
|
2781
2846
|
};
|
|
2847
|
+
var revenueLegend = [{
|
|
2848
|
+
label: "Paid Ads",
|
|
2849
|
+
color: C.indigo
|
|
2850
|
+
}, {
|
|
2851
|
+
label: "Organic",
|
|
2852
|
+
color: C.emerald
|
|
2853
|
+
}, {
|
|
2854
|
+
label: "Email",
|
|
2855
|
+
color: C.cyan
|
|
2856
|
+
}];
|
|
2857
|
+
var revenueTrendText = mainChart.trend || "";
|
|
2858
|
+
var revenueTrendColor = getTrendColor(revenueTrendText, {
|
|
2859
|
+
up: "#054835ff",
|
|
2860
|
+
down: "#EF4444"
|
|
2861
|
+
});
|
|
2862
|
+
var revenueTrendBadgeBg = revenueTrendColor === "#EF4444" ? "#fee2e2" : "#8df3be9a";
|
|
2863
|
+
var revenueTrendArrow = getTrendArrow(revenueTrendText);
|
|
2782
2864
|
var headerProps = {
|
|
2783
2865
|
dateLabel: dateLabel,
|
|
2784
2866
|
generatedLabel: generatedLabel,
|
|
@@ -2878,77 +2960,90 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2878
2960
|
display: "flex",
|
|
2879
2961
|
justifyContent: "space-between",
|
|
2880
2962
|
alignItems: "flex-start",
|
|
2881
|
-
marginBottom:
|
|
2963
|
+
marginBottom: 8
|
|
2882
2964
|
},
|
|
2883
2965
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2884
2966
|
children: [/*#__PURE__*/jsx("div", {
|
|
2885
2967
|
style: {
|
|
2886
2968
|
fontSize: 13,
|
|
2887
2969
|
fontWeight: 700,
|
|
2888
|
-
color: "#111827"
|
|
2970
|
+
color: "#111827",
|
|
2971
|
+
lineHeight: 1.15
|
|
2889
2972
|
},
|
|
2890
2973
|
children: "Total revenue trend"
|
|
2891
2974
|
}), /*#__PURE__*/jsxs("div", {
|
|
2892
2975
|
style: {
|
|
2893
2976
|
fontSize: 9.5,
|
|
2894
|
-
color: "
|
|
2895
|
-
marginTop:
|
|
2977
|
+
color: "rgba(0, 0, 0, 0.4)",
|
|
2978
|
+
marginTop: 2,
|
|
2979
|
+
lineHeight: 1.15
|
|
2896
2980
|
},
|
|
2897
2981
|
children: ["Last ", daysLabel, " \xB7 daily aggregation"]
|
|
2898
|
-
})
|
|
2899
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
2900
|
-
style: {
|
|
2901
|
-
textAlign: "right"
|
|
2902
|
-
},
|
|
2903
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
2904
|
-
style: {
|
|
2905
|
-
fontSize: 15,
|
|
2906
|
-
fontWeight: 800,
|
|
2907
|
-
color: "#111827"
|
|
2908
|
-
},
|
|
2909
|
-
children: kpi$(totalRaised)
|
|
2910
|
-
}), /*#__PURE__*/jsx("span", {
|
|
2911
|
-
style: {
|
|
2912
|
-
marginLeft: 8,
|
|
2913
|
-
fontSize: 10.5
|
|
2914
|
-
},
|
|
2915
|
-
children: /*#__PURE__*/jsx(TrendText, {
|
|
2916
|
-
children: mainChart.trend
|
|
2917
|
-
})
|
|
2918
|
-
})]
|
|
2919
|
-
})]
|
|
2920
|
-
}), /*#__PURE__*/jsx("div", {
|
|
2921
|
-
style: {
|
|
2922
|
-
display: "flex",
|
|
2923
|
-
gap: 14,
|
|
2924
|
-
marginBottom: 6
|
|
2925
|
-
},
|
|
2926
|
-
children: [["Email", C.cyan], ["Organic", C.emerald], ["Paid Ads", C.indigo]].map(function (_ref14) {
|
|
2927
|
-
var _ref15 = _slicedToArray(_ref14, 2),
|
|
2928
|
-
name = _ref15[0],
|
|
2929
|
-
color = _ref15[1];
|
|
2930
|
-
return /*#__PURE__*/jsxs("div", {
|
|
2982
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
2931
2983
|
style: {
|
|
2932
2984
|
display: "flex",
|
|
2933
2985
|
alignItems: "center",
|
|
2934
|
-
gap:
|
|
2986
|
+
gap: 6,
|
|
2987
|
+
marginTop: 8
|
|
2935
2988
|
},
|
|
2936
|
-
children: [/*#__PURE__*/jsx("
|
|
2989
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
2937
2990
|
style: {
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
}), /*#__PURE__*/
|
|
2991
|
+
fontSize: 22,
|
|
2992
|
+
fontWeight: 700,
|
|
2993
|
+
color: "#111827"
|
|
2994
|
+
},
|
|
2995
|
+
children: kpi$(totalRaised)
|
|
2996
|
+
}), revenueTrendText && /*#__PURE__*/jsxs("span", {
|
|
2944
2997
|
style: {
|
|
2998
|
+
display: "inline-flex",
|
|
2999
|
+
alignItems: "center",
|
|
3000
|
+
gap: 3,
|
|
3001
|
+
background: revenueTrendBadgeBg,
|
|
3002
|
+
color: revenueTrendColor,
|
|
3003
|
+
padding: "2px 8px",
|
|
3004
|
+
borderRadius: 100,
|
|
2945
3005
|
fontSize: 9.5,
|
|
2946
|
-
|
|
3006
|
+
fontWeight: 600
|
|
2947
3007
|
},
|
|
2948
|
-
children:
|
|
3008
|
+
children: [revenueTrendArrow && /*#__PURE__*/jsx("span", {
|
|
3009
|
+
children: revenueTrendArrow
|
|
3010
|
+
}), revenueTrendText]
|
|
2949
3011
|
})]
|
|
2950
|
-
}
|
|
2951
|
-
})
|
|
3012
|
+
})]
|
|
3013
|
+
}), revSeries.length > 0 && /*#__PURE__*/jsx("div", {
|
|
3014
|
+
style: {
|
|
3015
|
+
display: "flex",
|
|
3016
|
+
gap: 10,
|
|
3017
|
+
alignItems: "center",
|
|
3018
|
+
flexShrink: 0,
|
|
3019
|
+
paddingTop: 2
|
|
3020
|
+
},
|
|
3021
|
+
children: revenueLegend.map(function (leg) {
|
|
3022
|
+
return /*#__PURE__*/jsxs("div", {
|
|
3023
|
+
style: {
|
|
3024
|
+
display: "flex",
|
|
3025
|
+
alignItems: "center",
|
|
3026
|
+
gap: 4
|
|
3027
|
+
},
|
|
3028
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
3029
|
+
style: {
|
|
3030
|
+
width: 8,
|
|
3031
|
+
height: 8,
|
|
3032
|
+
borderRadius: "50%",
|
|
3033
|
+
background: leg.color,
|
|
3034
|
+
flexShrink: 0
|
|
3035
|
+
}
|
|
3036
|
+
}), /*#__PURE__*/jsx("span", {
|
|
3037
|
+
style: {
|
|
3038
|
+
fontSize: 9.5,
|
|
3039
|
+
color: "rgba(0, 0, 0, 0.6)",
|
|
3040
|
+
fontWeight: 500
|
|
3041
|
+
},
|
|
3042
|
+
children: leg.label
|
|
3043
|
+
})]
|
|
3044
|
+
}, leg.label);
|
|
3045
|
+
})
|
|
3046
|
+
})]
|
|
2952
3047
|
}), /*#__PURE__*/jsx("div", {
|
|
2953
3048
|
style: {
|
|
2954
3049
|
width: "100%",
|
|
@@ -3150,32 +3245,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
3150
3245
|
donationTypeData: report.donationTypeData,
|
|
3151
3246
|
recurringColor: C.indigo,
|
|
3152
3247
|
oneTimeColor: C.emerald
|
|
3153
|
-
}), /*#__PURE__*/jsx(
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
return /*#__PURE__*/jsxs("div", {
|
|
3158
|
-
style: {
|
|
3159
|
-
display: "flex",
|
|
3160
|
-
justifyContent: "space-between",
|
|
3161
|
-
padding: "3.5px 0",
|
|
3162
|
-
borderBottom: i < 5 ? "1px solid #F3F4F6" : "none"
|
|
3163
|
-
},
|
|
3164
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
3165
|
-
style: {
|
|
3166
|
-
fontSize: 9,
|
|
3167
|
-
color: "#374151"
|
|
3168
|
-
},
|
|
3169
|
-
children: g.country
|
|
3170
|
-
}), /*#__PURE__*/jsxs("span", {
|
|
3171
|
-
style: {
|
|
3172
|
-
fontSize: 9,
|
|
3173
|
-
color: "#6B7280"
|
|
3174
|
-
},
|
|
3175
|
-
children: [formatNumber(g.value), " \xB7 ", formatNumber(g.percentage), "%"]
|
|
3176
|
-
})]
|
|
3177
|
-
}, i);
|
|
3178
|
-
})
|
|
3248
|
+
}), /*#__PURE__*/jsx(DonorGeographyPanel, {
|
|
3249
|
+
geoList: geoList,
|
|
3250
|
+
totalDonors: totalDonors,
|
|
3251
|
+
barColor: C.indigo
|
|
3179
3252
|
}), /*#__PURE__*/jsxs(Panel, {
|
|
3180
3253
|
title: "Refunds & chargebacks",
|
|
3181
3254
|
subtitle: "Trust health \xB7 ".concat(numberOfDays, "-day window"),
|
|
@@ -3305,10 +3378,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
3305
3378
|
display: "flex",
|
|
3306
3379
|
gap: 12
|
|
3307
3380
|
},
|
|
3308
|
-
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 (
|
|
3309
|
-
var
|
|
3310
|
-
l =
|
|
3311
|
-
v =
|
|
3381
|
+
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 (_ref15) {
|
|
3382
|
+
var _ref16 = _slicedToArray(_ref15, 2),
|
|
3383
|
+
l = _ref16[0],
|
|
3384
|
+
v = _ref16[1];
|
|
3312
3385
|
return /*#__PURE__*/jsxs("div", {
|
|
3313
3386
|
children: [/*#__PURE__*/jsx("div", {
|
|
3314
3387
|
style: {
|
|
@@ -3381,10 +3454,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
3381
3454
|
display: "flex",
|
|
3382
3455
|
gap: 12
|
|
3383
3456
|
},
|
|
3384
|
-
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 (
|
|
3385
|
-
var
|
|
3386
|
-
l =
|
|
3387
|
-
v =
|
|
3457
|
+
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 (_ref17) {
|
|
3458
|
+
var _ref18 = _slicedToArray(_ref17, 2),
|
|
3459
|
+
l = _ref18[0],
|
|
3460
|
+
v = _ref18[1];
|
|
3388
3461
|
return /*#__PURE__*/jsxs("div", {
|
|
3389
3462
|
children: [/*#__PURE__*/jsx("div", {
|
|
3390
3463
|
style: {
|