@ammarkhalidfarooq/dashboard-package 0.6.88 → 0.6.89
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 +47 -47
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +47 -47
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1507,7 +1507,7 @@ var parseAvgDonationDetail = function parseAvgDonationDetail() {
|
|
|
1507
1507
|
return {
|
|
1508
1508
|
median: median,
|
|
1509
1509
|
topDecile: topDecile
|
|
1510
|
-
// detail: `Median $${formatNumber(median)}
|
|
1510
|
+
// detail: `Median $${formatNumber(median)} - top decile $${formatNumber(topDecile)}`,
|
|
1511
1511
|
};
|
|
1512
1512
|
};
|
|
1513
1513
|
|
|
@@ -1573,7 +1573,7 @@ var buildReportData = function buildReportData() {
|
|
|
1573
1573
|
var hero = {
|
|
1574
1574
|
value: "$".concat(formatNumber(totalRaised)),
|
|
1575
1575
|
trend: "".concat(formatTrend((_growth$totalRevenue = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue !== void 0 ? _growth$totalRevenue : 18), " vs pp"),
|
|
1576
|
-
detail: "".concat(passThrough, "
|
|
1576
|
+
detail: "".concat(passThrough, " - ").concat(formatNumber(totalDonors), " donors - $").concat(formatNumber(Number(avgDonation).toFixed(2)), " avg - ").concat(formatNumber(totalVisits), " visits")
|
|
1577
1577
|
};
|
|
1578
1578
|
var metrics = [{
|
|
1579
1579
|
title: "Net Raised",
|
|
@@ -1584,7 +1584,7 @@ var buildReportData = function buildReportData() {
|
|
|
1584
1584
|
title: "Total Donors",
|
|
1585
1585
|
value: formatNumber(totalDonors),
|
|
1586
1586
|
trend: formatTrend((_growth$totalDonation = growth === null || growth === void 0 ? void 0 : growth.totalDonations) !== null && _growth$totalDonation !== void 0 ? _growth$totalDonation : 16.8),
|
|
1587
|
-
detail: "".concat(formatNumber(newDonors), " new
|
|
1587
|
+
detail: "".concat(formatNumber(newDonors), " new - ").concat(formatNumber(returningDonors), " returning")
|
|
1588
1588
|
}, {
|
|
1589
1589
|
title: "Avg Donation",
|
|
1590
1590
|
value: "$".concat(formatNumber(avgDonation)),
|
|
@@ -1594,7 +1594,7 @@ var buildReportData = function buildReportData() {
|
|
|
1594
1594
|
title: "ROAS",
|
|
1595
1595
|
value: "".concat(formatNumber((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0), "x"),
|
|
1596
1596
|
trend: formatTrend((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0, "x"),
|
|
1597
|
-
detail: "$".concat(formatNumber((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend
|
|
1597
|
+
detail: "$".concat(formatNumber((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend - $").concat(formatNumber((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib.")
|
|
1598
1598
|
}, {
|
|
1599
1599
|
title: "Conversion",
|
|
1600
1600
|
value: "".concat(formatNumber(convRate), "%"),
|
|
@@ -1611,7 +1611,7 @@ var buildReportData = function buildReportData() {
|
|
|
1611
1611
|
var hasStackedData = (stackedTR === null || stackedTR === void 0 ? void 0 : stackedTR.paidAds) || (stackedTR === null || stackedTR === void 0 ? void 0 : stackedTR.email) || (stackedTR === null || stackedTR === void 0 ? void 0 : stackedTR.organic);
|
|
1612
1612
|
var mainChart = {
|
|
1613
1613
|
label: "Total revenue trend",
|
|
1614
|
-
subtitle: "Last 30 days
|
|
1614
|
+
subtitle: "Last 30 days - daily aggregation",
|
|
1615
1615
|
value: "$".concat(formatNumber(totalRaised)),
|
|
1616
1616
|
trend: "".concat(formatTrend((_growth$totalRevenue2 = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue2 !== void 0 ? _growth$totalRevenue2 : 18), " vs pp"),
|
|
1617
1617
|
hideControls: true,
|
|
@@ -2168,7 +2168,7 @@ var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
|
|
|
2168
2168
|
barColor = _ref9$barColor === void 0 ? "#6366F1" : _ref9$barColor;
|
|
2169
2169
|
return /*#__PURE__*/jsxRuntime.jsx(Panel, {
|
|
2170
2170
|
title: "Donor geography",
|
|
2171
|
-
subtitle: "Top countries
|
|
2171
|
+
subtitle: "Top countries - ".concat(formatNumber(totalDonors), " total"),
|
|
2172
2172
|
children: (geoList.length ? geoList.slice(0, 6) : []).map(function (g, i) {
|
|
2173
2173
|
var _g$percentage;
|
|
2174
2174
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -2202,7 +2202,7 @@ var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
|
|
|
2202
2202
|
color: "#111827",
|
|
2203
2203
|
flexShrink: 0
|
|
2204
2204
|
},
|
|
2205
|
-
children: [formatNumber(g.value), "
|
|
2205
|
+
children: [formatNumber(g.value), " - ", formatNumber(g.percentage), "%"]
|
|
2206
2206
|
})]
|
|
2207
2207
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2208
2208
|
style: {
|
|
@@ -2398,7 +2398,7 @@ var DonationTypePanel = function DonationTypePanel(_ref1) {
|
|
|
2398
2398
|
oneTimeTotal = _parseDonationTypeCha.oneTimeTotal;
|
|
2399
2399
|
return /*#__PURE__*/jsxRuntime.jsxs(Panel, {
|
|
2400
2400
|
title: "Recurring vs one-time",
|
|
2401
|
-
subtitle: "Donation type
|
|
2401
|
+
subtitle: "Donation type - weekly",
|
|
2402
2402
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2403
2403
|
style: {
|
|
2404
2404
|
display: "flex",
|
|
@@ -2723,7 +2723,7 @@ var PageHeader = function PageHeader(_ref12) {
|
|
|
2723
2723
|
color: THEME.muted,
|
|
2724
2724
|
marginTop: 1
|
|
2725
2725
|
},
|
|
2726
|
-
children: [windowLabel, "
|
|
2726
|
+
children: [windowLabel, " - Generated ", generatedLabel]
|
|
2727
2727
|
})]
|
|
2728
2728
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2729
2729
|
style: {
|
|
@@ -2779,7 +2779,7 @@ var PageFooter = function PageFooter(_ref13) {
|
|
|
2779
2779
|
fontSize: 8,
|
|
2780
2780
|
color: THEME.muted
|
|
2781
2781
|
},
|
|
2782
|
-
children: ["Confidential
|
|
2782
|
+
children: ["Confidential - Generated by Dashboard - ", generatedLabel, " \xA0\xA0 Page ", page, " of 2 - madinah.com"]
|
|
2783
2783
|
})
|
|
2784
2784
|
});
|
|
2785
2785
|
};
|
|
@@ -2805,7 +2805,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
2805
2805
|
month: "short",
|
|
2806
2806
|
day: "numeric",
|
|
2807
2807
|
year: "numeric"
|
|
2808
|
-
}, estOptions)) + "
|
|
2808
|
+
}, estOptions)) + " - " + now.toLocaleTimeString("en-US", _objectSpread2({
|
|
2809
2809
|
hour: "2-digit",
|
|
2810
2810
|
minute: "2-digit"
|
|
2811
2811
|
}, estOptions)) + " EST";
|
|
@@ -3018,7 +3018,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3018
3018
|
title: "Total Donors",
|
|
3019
3019
|
value: ((_metricByTitle$Total = metricByTitle["Total Donors"]) === null || _metricByTitle$Total === void 0 ? void 0 : _metricByTitle$Total.value) || "".concat(formatNumber(totalDonors)),
|
|
3020
3020
|
trend: ((_metricByTitle$Total2 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total2 === void 0 ? void 0 : _metricByTitle$Total2.trend) || signed((growth === null || growth === void 0 ? void 0 : growth.totalDonations) || 16.8),
|
|
3021
|
-
detail: ((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new
|
|
3021
|
+
detail: ((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new - ").concat(formatNumber(returningDonors), " returning")
|
|
3022
3022
|
}), /*#__PURE__*/jsxRuntime.jsx(KpiCard, {
|
|
3023
3023
|
title: "Avg Donation",
|
|
3024
3024
|
value: kpi$(avgDonation),
|
|
@@ -3035,7 +3035,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3035
3035
|
title: "ROAS",
|
|
3036
3036
|
value: kpiRoas((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0),
|
|
3037
3037
|
trend: ((_metricByTitle$ROAS = metricByTitle.ROAS) === null || _metricByTitle$ROAS === void 0 ? void 0 : _metricByTitle$ROAS.trend) || signed((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0, "×"),
|
|
3038
|
-
detail: ((_metricByTitle$ROAS2 = metricByTitle.ROAS) === null || _metricByTitle$ROAS2 === void 0 ? void 0 : _metricByTitle$ROAS2.detail) || "".concat(d$((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend
|
|
3038
|
+
detail: ((_metricByTitle$ROAS2 = metricByTitle.ROAS) === null || _metricByTitle$ROAS2 === void 0 ? void 0 : _metricByTitle$ROAS2.detail) || "".concat(d$((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend - ").concat(d$((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib.")
|
|
3039
3039
|
}), /*#__PURE__*/jsxRuntime.jsx(KpiCard, {
|
|
3040
3040
|
title: "Conversion",
|
|
3041
3041
|
value: kpiPct(convRate),
|
|
@@ -3079,7 +3079,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3079
3079
|
marginTop: 2,
|
|
3080
3080
|
lineHeight: 1.15
|
|
3081
3081
|
},
|
|
3082
|
-
children: ["Last ", daysLabel, "
|
|
3082
|
+
children: ["Last ", daysLabel, " - daily aggregation"]
|
|
3083
3083
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3084
3084
|
style: {
|
|
3085
3085
|
display: "flex",
|
|
@@ -3265,7 +3265,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3265
3265
|
fontWeight: 700,
|
|
3266
3266
|
color: "#111827"
|
|
3267
3267
|
},
|
|
3268
|
-
children: [formatNumber(newDonors), "
|
|
3268
|
+
children: [formatNumber(newDonors), " - ", newPct, "%"]
|
|
3269
3269
|
})]
|
|
3270
3270
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3271
3271
|
style: {
|
|
@@ -3301,7 +3301,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3301
3301
|
fontWeight: 700,
|
|
3302
3302
|
color: "#111827"
|
|
3303
3303
|
},
|
|
3304
|
-
children: [formatNumber(returningDonors), "
|
|
3304
|
+
children: [formatNumber(returningDonors), " - ", retPct, "%"]
|
|
3305
3305
|
})]
|
|
3306
3306
|
}), /*#__PURE__*/jsxRuntime.jsx(Divider, {
|
|
3307
3307
|
mb: 6
|
|
@@ -3352,7 +3352,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3352
3352
|
barColor: C.indigo
|
|
3353
3353
|
}), /*#__PURE__*/jsxRuntime.jsxs(Panel, {
|
|
3354
3354
|
title: "Refunds & chargebacks",
|
|
3355
|
-
subtitle: "Trust health
|
|
3355
|
+
subtitle: "Trust health - ".concat(numberOfDays, "-day window"),
|
|
3356
3356
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3357
3357
|
style: {
|
|
3358
3358
|
display: "flex",
|
|
@@ -3428,11 +3428,11 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3428
3428
|
color: "#6B7280",
|
|
3429
3429
|
lineHeight: 1.45
|
|
3430
3430
|
},
|
|
3431
|
-
children: [d$(totalRefundedAmount), " refunded
|
|
3431
|
+
children: [d$(totalRefundedAmount), " refunded - ", formatNumber(totalChargebacks), " chargebacks - ", formatNumber(lostChargebacks), " cases lost"]
|
|
3432
3432
|
})]
|
|
3433
3433
|
}), /*#__PURE__*/jsxRuntime.jsx(Panel, {
|
|
3434
3434
|
title: "Traffic source",
|
|
3435
|
-
subtitle: "Revenue by channel
|
|
3435
|
+
subtitle: "Revenue by channel - ".concat(daysLabel),
|
|
3436
3436
|
children: /*#__PURE__*/jsxRuntime.jsx(MiniTable, {
|
|
3437
3437
|
head: ["Source", "Revenue", "Share"],
|
|
3438
3438
|
rows: [].concat(_toConsumableArray(trafficItems.map(function (t) {
|
|
@@ -3448,7 +3448,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3448
3448
|
},
|
|
3449
3449
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Panel, {
|
|
3450
3450
|
title: "Order Bump",
|
|
3451
|
-
subtitle: "Revenue trend
|
|
3451
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
3452
3452
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3453
3453
|
style: {
|
|
3454
3454
|
fontSize: 17,
|
|
@@ -3524,7 +3524,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3524
3524
|
primaryColor: C.cyan
|
|
3525
3525
|
}), /*#__PURE__*/jsxRuntime.jsxs(Panel, {
|
|
3526
3526
|
title: "Referrals",
|
|
3527
|
-
subtitle: "Revenue trend
|
|
3527
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
3528
3528
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3529
3529
|
style: {
|
|
3530
3530
|
fontSize: 17,
|
|
@@ -4063,7 +4063,7 @@ var ReportHeader = function ReportHeader(_ref) {
|
|
|
4063
4063
|
month: "short",
|
|
4064
4064
|
day: "numeric",
|
|
4065
4065
|
year: "numeric"
|
|
4066
|
-
}) + "
|
|
4066
|
+
}) + " - " + now.toLocaleTimeString("en-US", {
|
|
4067
4067
|
hour: "2-digit",
|
|
4068
4068
|
minute: "2-digit"
|
|
4069
4069
|
}) + " GMT";
|
|
@@ -4134,7 +4134,7 @@ var ReportHeader = function ReportHeader(_ref) {
|
|
|
4134
4134
|
fontSize: exportMode ? 10 : 12,
|
|
4135
4135
|
color: "#9CA3AF"
|
|
4136
4136
|
},
|
|
4137
|
-
children: ["30-day window
|
|
4137
|
+
children: ["30-day window - Generated ", generatedLabel]
|
|
4138
4138
|
})]
|
|
4139
4139
|
})]
|
|
4140
4140
|
}), /*#__PURE__*/jsxRuntime.jsxs(material.Box, {
|
|
@@ -4338,11 +4338,11 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
4338
4338
|
_ref$items = _ref.items,
|
|
4339
4339
|
items = _ref$items === void 0 ? [{
|
|
4340
4340
|
label: "New donors",
|
|
4341
|
-
val: "146
|
|
4341
|
+
val: "146 - 68%",
|
|
4342
4342
|
color: "rgb(99, 99, 230)"
|
|
4343
4343
|
}, {
|
|
4344
4344
|
label: "Returning",
|
|
4345
|
-
val: "69
|
|
4345
|
+
val: "69 - 32%",
|
|
4346
4346
|
color: "#10B981"
|
|
4347
4347
|
}] : _ref$items,
|
|
4348
4348
|
_ref$showBottomSummar = _ref.showBottomSummary,
|
|
@@ -4559,7 +4559,7 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
|
|
|
4559
4559
|
_ref$numberOfDays = _ref.numberOfDays,
|
|
4560
4560
|
numberOfDays = _ref$numberOfDays === void 0 ? 30 : _ref$numberOfDays;
|
|
4561
4561
|
var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
|
|
4562
|
-
var resolvedSubtitle = subtitle || "Revenue by channel
|
|
4562
|
+
var resolvedSubtitle = subtitle || "Revenue by channel - ".concat(daysLabel);
|
|
4563
4563
|
var paidAdsColor = "rgb(99, 99, 230)";
|
|
4564
4564
|
var organicColor = "#10B981";
|
|
4565
4565
|
var emailColor = "#0EA5E9";
|
|
@@ -5717,7 +5717,7 @@ var KeywordsCard = function KeywordsCard(_ref3) {
|
|
|
5717
5717
|
var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
|
|
5718
5718
|
return /*#__PURE__*/jsxRuntime.jsx(CardWrapper, {
|
|
5719
5719
|
title: "Top organic keywords",
|
|
5720
|
-
subtitle: "Search terms ranked by clicks
|
|
5720
|
+
subtitle: "Search terms ranked by clicks - last ".concat(daysLabel),
|
|
5721
5721
|
children: !available || data.length === 0 ? /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
5722
5722
|
sx: {
|
|
5723
5723
|
fontSize: "13px",
|
|
@@ -5863,27 +5863,27 @@ var GeographyCard = function GeographyCard(_ref4) {
|
|
|
5863
5863
|
dataProp = _ref4.data;
|
|
5864
5864
|
var data = dataProp !== null && dataProp !== void 0 ? dataProp : [{
|
|
5865
5865
|
country: "United States",
|
|
5866
|
-
stats: "3,120
|
|
5866
|
+
stats: "3,120 - 37%",
|
|
5867
5867
|
percentage: 37
|
|
5868
5868
|
}, {
|
|
5869
5869
|
country: "United Kingdom",
|
|
5870
|
-
stats: "1,840
|
|
5870
|
+
stats: "1,840 - 22%",
|
|
5871
5871
|
percentage: 22
|
|
5872
5872
|
}, {
|
|
5873
5873
|
country: "Canada",
|
|
5874
|
-
stats: "920
|
|
5874
|
+
stats: "920 - 11%",
|
|
5875
5875
|
percentage: 11
|
|
5876
5876
|
}, {
|
|
5877
5877
|
country: "Australia",
|
|
5878
|
-
stats: "650
|
|
5878
|
+
stats: "650 - 8%",
|
|
5879
5879
|
percentage: 8
|
|
5880
5880
|
}, {
|
|
5881
5881
|
country: "UAE",
|
|
5882
|
-
stats: "580
|
|
5882
|
+
stats: "580 - 7%",
|
|
5883
5883
|
percentage: 7
|
|
5884
5884
|
}, {
|
|
5885
5885
|
country: "Other",
|
|
5886
|
-
stats: "1,310
|
|
5886
|
+
stats: "1,310 - 16%",
|
|
5887
5887
|
percentage: 16
|
|
5888
5888
|
}];
|
|
5889
5889
|
return /*#__PURE__*/jsxRuntime.jsx(CardWrapper, {
|
|
@@ -6502,7 +6502,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
|
|
|
6502
6502
|
minWidth: "60px",
|
|
6503
6503
|
textAlign: "right"
|
|
6504
6504
|
},
|
|
6505
|
-
children: [item.value, "
|
|
6505
|
+
children: [item.value, " - ", item.percentage, "%"]
|
|
6506
6506
|
})]
|
|
6507
6507
|
}, index);
|
|
6508
6508
|
})]
|
|
@@ -6738,7 +6738,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
|
|
|
6738
6738
|
textAlign: "left",
|
|
6739
6739
|
lineHeight: 1.15
|
|
6740
6740
|
},
|
|
6741
|
-
children: ["Trust health
|
|
6741
|
+
children: ["Trust health - ", windowLabel]
|
|
6742
6742
|
})]
|
|
6743
6743
|
}), /*#__PURE__*/jsxRuntime.jsxs(material.Box, {
|
|
6744
6744
|
sx: {
|
|
@@ -6856,7 +6856,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
|
|
|
6856
6856
|
fontWeight: 500,
|
|
6857
6857
|
textAlign: "left"
|
|
6858
6858
|
},
|
|
6859
|
-
children: ["$", fmt(totalRefundedAmount), " refunded
|
|
6859
|
+
children: ["$", fmt(totalRefundedAmount), " refunded - ", totalChargebacks, " chargebacks - ", totalRefunds, " refunds"]
|
|
6860
6860
|
})
|
|
6861
6861
|
}), /*#__PURE__*/jsxRuntime.jsxs(material.Box, {
|
|
6862
6862
|
sx: {
|
|
@@ -6979,11 +6979,11 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
6979
6979
|
centerValue: String(totalMix),
|
|
6980
6980
|
items: [{
|
|
6981
6981
|
label: "New donors",
|
|
6982
|
-
val: "".concat(newDonors, "
|
|
6982
|
+
val: "".concat(newDonors, " - ").concat(newPct, "%"),
|
|
6983
6983
|
color: "rgb(99, 99, 230)"
|
|
6984
6984
|
}, {
|
|
6985
6985
|
label: "Returning",
|
|
6986
|
-
val: "".concat(returningDonors, "
|
|
6986
|
+
val: "".concat(returningDonors, " - ").concat(retPct, "%"),
|
|
6987
6987
|
color: "#10B981"
|
|
6988
6988
|
}],
|
|
6989
6989
|
bottomSummaryValue: "$".concat(formatNumber(avgGift)),
|
|
@@ -7033,11 +7033,11 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
7033
7033
|
centerValue: String(totalMix),
|
|
7034
7034
|
items: [{
|
|
7035
7035
|
label: "New donors",
|
|
7036
|
-
val: "".concat(newDonors, "
|
|
7036
|
+
val: "".concat(newDonors, " - ").concat(newPct, "%"),
|
|
7037
7037
|
color: "rgb(99, 99, 230)"
|
|
7038
7038
|
}, {
|
|
7039
7039
|
label: "Returning",
|
|
7040
|
-
val: "".concat(returningDonors, "
|
|
7040
|
+
val: "".concat(returningDonors, " - ").concat(retPct, "%"),
|
|
7041
7041
|
color: "#10B981"
|
|
7042
7042
|
}],
|
|
7043
7043
|
bottomSummaryValue: "$".concat(formatNumber(avgGift)),
|
|
@@ -7069,7 +7069,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
7069
7069
|
var bottomCards = /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7070
7070
|
children: [/*#__PURE__*/jsxRuntime.jsx(MetricSparklineCard, {
|
|
7071
7071
|
title: "Order Bump",
|
|
7072
|
-
subtitle: "Revenue trend
|
|
7072
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
7073
7073
|
value: "$".concat(formatNumber((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.totalRevenue) || 0)),
|
|
7074
7074
|
trend: "".concat((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) || 0).toFixed(1), "% vs pp"),
|
|
7075
7075
|
chartData: (orderBumpData === null || orderBumpData === void 0 || (_orderBumpData$chart = orderBumpData.chart) === null || _orderBumpData$chart === void 0 ? void 0 : _orderBumpData$chart.map(function (item) {
|
|
@@ -7112,7 +7112,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
7112
7112
|
sx: CARD_SX
|
|
7113
7113
|
}), /*#__PURE__*/jsxRuntime.jsx(MetricSparklineCard, {
|
|
7114
7114
|
title: "Referrals",
|
|
7115
|
-
subtitle: "Revenue trend
|
|
7115
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
7116
7116
|
value: "$".concat(formatNumber((referralData === null || referralData === void 0 ? void 0 : referralData.totalRevenue) || 0)),
|
|
7117
7117
|
trend: "".concat((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) || 0).toFixed(1), "% vs pp"),
|
|
7118
7118
|
chartData: (referralData === null || referralData === void 0 || (_referralData$chartDa = referralData.chartData) === null || _referralData$chartDa === void 0 ? void 0 : _referralData$chartDa.map(function (item) {
|
|
@@ -7614,7 +7614,7 @@ var RecurringDonationAmounts = function RecurringDonationAmounts() {
|
|
|
7614
7614
|
minWidth: "60px",
|
|
7615
7615
|
textAlign: "right"
|
|
7616
7616
|
},
|
|
7617
|
-
children: "".concat(item.plans, "
|
|
7617
|
+
children: "".concat(item.plans, " - ").concat(item.share, "%")
|
|
7618
7618
|
})]
|
|
7619
7619
|
}, index);
|
|
7620
7620
|
})
|
|
@@ -18797,7 +18797,7 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18797
18797
|
var _item$visitors2, _item$percentage, _item$percentage2;
|
|
18798
18798
|
return {
|
|
18799
18799
|
country: item.country || "Unknown",
|
|
18800
|
-
stats: "".concat(formatNumber((_item$visitors2 = item.visitors) !== null && _item$visitors2 !== void 0 ? _item$visitors2 : 0), "
|
|
18800
|
+
stats: "".concat(formatNumber((_item$visitors2 = item.visitors) !== null && _item$visitors2 !== void 0 ? _item$visitors2 : 0), " - ").concat(Number((_item$percentage = item.percentage) !== null && _item$percentage !== void 0 ? _item$percentage : 0).toFixed(0), "%"),
|
|
18801
18801
|
percentage: Number((_item$percentage2 = item.percentage) !== null && _item$percentage2 !== void 0 ? _item$percentage2 : 0)
|
|
18802
18802
|
};
|
|
18803
18803
|
});
|
|
@@ -19790,7 +19790,7 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19790
19790
|
},
|
|
19791
19791
|
children: /*#__PURE__*/jsxRuntime.jsx(EmailTrendCard, {
|
|
19792
19792
|
title: "Open rate trend",
|
|
19793
|
-
subtitle: "Daily
|
|
19793
|
+
subtitle: "Daily - ".concat(daysLabel),
|
|
19794
19794
|
value: hasEmailOverview ? "".concat(Number((_deliverability$openR2 = deliverability.openRate) !== null && _deliverability$openR2 !== void 0 ? _deliverability$openR2 : 0).toFixed(2), "%") : "42.3%",
|
|
19795
19795
|
trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.openRate, true) : "2.1pp",
|
|
19796
19796
|
trendData: hasEmailOverview ? apiData === null || apiData === void 0 ? void 0 : apiData.openRateTrend : undefined,
|
|
@@ -19820,7 +19820,7 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19820
19820
|
},
|
|
19821
19821
|
children: /*#__PURE__*/jsxRuntime.jsx(EmailTrendCard, {
|
|
19822
19822
|
title: "Clicks trend",
|
|
19823
|
-
subtitle: "Total + unique
|
|
19823
|
+
subtitle: "Total + unique - ".concat(daysLabel),
|
|
19824
19824
|
value: hasEmailOverview ? formatNumber((_deliverability$total2 = deliverability.totalClicks) !== null && _deliverability$total2 !== void 0 ? _deliverability$total2 : 0) : "1,612",
|
|
19825
19825
|
trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.totalClicks) : "14%",
|
|
19826
19826
|
trendSeries: hasEmailOverview ? [{
|
|
@@ -19864,7 +19864,7 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19864
19864
|
},
|
|
19865
19865
|
children: /*#__PURE__*/jsxRuntime.jsx(EmailTrendCard, {
|
|
19866
19866
|
title: "Bounce rate trend",
|
|
19867
|
-
subtitle: "Daily
|
|
19867
|
+
subtitle: "Daily - lower is better",
|
|
19868
19868
|
value: hasEmailOverview ? "".concat(Number((_deliverability$bounc2 = deliverability.bounceRate) !== null && _deliverability$bounc2 !== void 0 ? _deliverability$bounc2 : 0).toFixed(2), "%") : "1.8%",
|
|
19869
19869
|
trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.bounceRate, true) : "0.3pp",
|
|
19870
19870
|
trendData: hasEmailOverview ? apiData === null || apiData === void 0 ? void 0 : apiData.bounceRateTrend : undefined,
|