@ammarkhalidfarooq/dashboard-package 0.6.88 → 0.6.90

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.es.js CHANGED
@@ -1014,7 +1014,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
1014
1014
  subtitle = _ref$subtitle === void 0 ? "Live fundraisers ranked by velocity" : _ref$subtitle,
1015
1015
  actionLabel = _ref.actionLabel,
1016
1016
  _ref$columns = _ref.columns,
1017
- columns = _ref$columns === void 0 ? ["Campaign", "Raised", "Progress", "Donors", "Avg gift"] : _ref$columns,
1017
+ columns = _ref$columns === void 0 ? ["Campaign", "Raised", "Progress", "Donors", "Avg Gift"] : _ref$columns,
1018
1018
  _ref$rows = _ref.rows,
1019
1019
  rows = _ref$rows === void 0 ? [] : _ref$rows,
1020
1020
  _ref$gridTemplateColu = _ref.gridTemplateColumns,
@@ -1505,7 +1505,7 @@ var parseAvgDonationDetail = function parseAvgDonationDetail() {
1505
1505
  return {
1506
1506
  median: median,
1507
1507
  topDecile: topDecile
1508
- // detail: `Median $${formatNumber(median)} · top decile $${formatNumber(topDecile)}`,
1508
+ // detail: `Median $${formatNumber(median)} - top decile $${formatNumber(topDecile)}`,
1509
1509
  };
1510
1510
  };
1511
1511
 
@@ -1571,7 +1571,7 @@ var buildReportData = function buildReportData() {
1571
1571
  var hero = {
1572
1572
  value: "$".concat(formatNumber(totalRaised)),
1573
1573
  trend: "".concat(formatTrend((_growth$totalRevenue = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue !== void 0 ? _growth$totalRevenue : 18), " vs pp"),
1574
- detail: "".concat(passThrough, " \xB7 ").concat(formatNumber(totalDonors), " donors \xB7 $").concat(formatNumber(Number(avgDonation).toFixed(2)), " avg \xB7 ").concat(formatNumber(totalVisits), " visits")
1574
+ detail: "".concat(passThrough, " - ").concat(formatNumber(totalDonors), " donors - $").concat(formatNumber(Number(avgDonation).toFixed(2)), " avg - ").concat(formatNumber(totalVisits), " visits")
1575
1575
  };
1576
1576
  var metrics = [{
1577
1577
  title: "Net Raised",
@@ -1582,7 +1582,7 @@ var buildReportData = function buildReportData() {
1582
1582
  title: "Total Donors",
1583
1583
  value: formatNumber(totalDonors),
1584
1584
  trend: formatTrend((_growth$totalDonation = growth === null || growth === void 0 ? void 0 : growth.totalDonations) !== null && _growth$totalDonation !== void 0 ? _growth$totalDonation : 16.8),
1585
- detail: "".concat(formatNumber(newDonors), " new \xB7 ").concat(formatNumber(returningDonors), " returning")
1585
+ detail: "".concat(formatNumber(newDonors), " new - ").concat(formatNumber(returningDonors), " returning")
1586
1586
  }, {
1587
1587
  title: "Avg Donation",
1588
1588
  value: "$".concat(formatNumber(avgDonation)),
@@ -1592,7 +1592,7 @@ var buildReportData = function buildReportData() {
1592
1592
  title: "ROAS",
1593
1593
  value: "".concat(formatNumber((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0), "x"),
1594
1594
  trend: formatTrend((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0, "x"),
1595
- detail: "$".concat(formatNumber((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend \xB7 $").concat(formatNumber((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib.")
1595
+ 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.")
1596
1596
  }, {
1597
1597
  title: "Conversion",
1598
1598
  value: "".concat(formatNumber(convRate), "%"),
@@ -1609,7 +1609,7 @@ var buildReportData = function buildReportData() {
1609
1609
  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);
1610
1610
  var mainChart = {
1611
1611
  label: "Total revenue trend",
1612
- subtitle: "Last 30 days · daily aggregation",
1612
+ subtitle: "Last 30 days - daily aggregation",
1613
1613
  value: "$".concat(formatNumber(totalRaised)),
1614
1614
  trend: "".concat(formatTrend((_growth$totalRevenue2 = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue2 !== void 0 ? _growth$totalRevenue2 : 18), " vs pp"),
1615
1615
  hideControls: true,
@@ -2166,7 +2166,7 @@ var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
2166
2166
  barColor = _ref9$barColor === void 0 ? "#6366F1" : _ref9$barColor;
2167
2167
  return /*#__PURE__*/jsx(Panel, {
2168
2168
  title: "Donor geography",
2169
- subtitle: "Top countries \xB7 ".concat(formatNumber(totalDonors), " total"),
2169
+ subtitle: "Top countries - ".concat(formatNumber(totalDonors), " total"),
2170
2170
  children: (geoList.length ? geoList.slice(0, 6) : []).map(function (g, i) {
2171
2171
  var _g$percentage;
2172
2172
  return /*#__PURE__*/jsxs("div", {
@@ -2200,7 +2200,7 @@ var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
2200
2200
  color: "#111827",
2201
2201
  flexShrink: 0
2202
2202
  },
2203
- children: [formatNumber(g.value), " \xB7 ", formatNumber(g.percentage), "%"]
2203
+ children: [formatNumber(g.value), " - ", formatNumber(g.percentage), "%"]
2204
2204
  })]
2205
2205
  }), /*#__PURE__*/jsx("div", {
2206
2206
  style: {
@@ -2396,7 +2396,7 @@ var DonationTypePanel = function DonationTypePanel(_ref1) {
2396
2396
  oneTimeTotal = _parseDonationTypeCha.oneTimeTotal;
2397
2397
  return /*#__PURE__*/jsxs(Panel, {
2398
2398
  title: "Recurring vs one-time",
2399
- subtitle: "Donation type \xB7 weekly",
2399
+ subtitle: "Donation type - weekly",
2400
2400
  children: [/*#__PURE__*/jsx("div", {
2401
2401
  style: {
2402
2402
  display: "flex",
@@ -2721,7 +2721,7 @@ var PageHeader = function PageHeader(_ref12) {
2721
2721
  color: THEME.muted,
2722
2722
  marginTop: 1
2723
2723
  },
2724
- children: [windowLabel, " \xB7 Generated ", generatedLabel]
2724
+ children: [windowLabel, " - Generated ", generatedLabel]
2725
2725
  })]
2726
2726
  }), /*#__PURE__*/jsxs("div", {
2727
2727
  style: {
@@ -2777,7 +2777,7 @@ var PageFooter = function PageFooter(_ref13) {
2777
2777
  fontSize: 8,
2778
2778
  color: THEME.muted
2779
2779
  },
2780
- children: ["Confidential \xB7 Generated by Dashboard \xB7 ", generatedLabel, " \xA0\xA0 Page ", page, " of 2 \xB7 madinah.com"]
2780
+ children: ["Confidential - Generated by Dashboard - ", generatedLabel, " \xA0\xA0 Page ", page, " of 2 - madinah.com"]
2781
2781
  })
2782
2782
  });
2783
2783
  };
@@ -2803,7 +2803,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
2803
2803
  month: "short",
2804
2804
  day: "numeric",
2805
2805
  year: "numeric"
2806
- }, estOptions)) + " · " + now.toLocaleTimeString("en-US", _objectSpread2({
2806
+ }, estOptions)) + " - " + now.toLocaleTimeString("en-US", _objectSpread2({
2807
2807
  hour: "2-digit",
2808
2808
  minute: "2-digit"
2809
2809
  }, estOptions)) + " EST";
@@ -3016,7 +3016,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3016
3016
  title: "Total Donors",
3017
3017
  value: ((_metricByTitle$Total = metricByTitle["Total Donors"]) === null || _metricByTitle$Total === void 0 ? void 0 : _metricByTitle$Total.value) || "".concat(formatNumber(totalDonors)),
3018
3018
  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),
3019
- detail: ((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new \xB7 ").concat(formatNumber(returningDonors), " returning")
3019
+ detail: ((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new - ").concat(formatNumber(returningDonors), " returning")
3020
3020
  }), /*#__PURE__*/jsx(KpiCard, {
3021
3021
  title: "Avg Donation",
3022
3022
  value: kpi$(avgDonation),
@@ -3033,7 +3033,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3033
3033
  title: "ROAS",
3034
3034
  value: kpiRoas((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0),
3035
3035
  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, "×"),
3036
- 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 \xB7 ").concat(d$((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib.")
3036
+ 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.")
3037
3037
  }), /*#__PURE__*/jsx(KpiCard, {
3038
3038
  title: "Conversion",
3039
3039
  value: kpiPct(convRate),
@@ -3077,7 +3077,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3077
3077
  marginTop: 2,
3078
3078
  lineHeight: 1.15
3079
3079
  },
3080
- children: ["Last ", daysLabel, " \xB7 daily aggregation"]
3080
+ children: ["Last ", daysLabel, " - daily aggregation"]
3081
3081
  }), /*#__PURE__*/jsxs("div", {
3082
3082
  style: {
3083
3083
  display: "flex",
@@ -3263,7 +3263,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3263
3263
  fontWeight: 700,
3264
3264
  color: "#111827"
3265
3265
  },
3266
- children: [formatNumber(newDonors), " \xB7 ", newPct, "%"]
3266
+ children: [formatNumber(newDonors), " - ", newPct, "%"]
3267
3267
  })]
3268
3268
  }), /*#__PURE__*/jsxs("div", {
3269
3269
  style: {
@@ -3299,7 +3299,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3299
3299
  fontWeight: 700,
3300
3300
  color: "#111827"
3301
3301
  },
3302
- children: [formatNumber(returningDonors), " \xB7 ", retPct, "%"]
3302
+ children: [formatNumber(returningDonors), " - ", retPct, "%"]
3303
3303
  })]
3304
3304
  }), /*#__PURE__*/jsx(Divider, {
3305
3305
  mb: 6
@@ -3350,7 +3350,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3350
3350
  barColor: C.indigo
3351
3351
  }), /*#__PURE__*/jsxs(Panel, {
3352
3352
  title: "Refunds & chargebacks",
3353
- subtitle: "Trust health \xB7 ".concat(numberOfDays, "-day window"),
3353
+ subtitle: "Trust health - ".concat(numberOfDays, "-day window"),
3354
3354
  children: [/*#__PURE__*/jsxs("div", {
3355
3355
  style: {
3356
3356
  display: "flex",
@@ -3426,11 +3426,11 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3426
3426
  color: "#6B7280",
3427
3427
  lineHeight: 1.45
3428
3428
  },
3429
- children: [d$(totalRefundedAmount), " refunded \xB7 ", formatNumber(totalChargebacks), " chargebacks \xB7 ", formatNumber(lostChargebacks), " cases lost"]
3429
+ children: [d$(totalRefundedAmount), " refunded - ", formatNumber(totalChargebacks), " chargebacks - ", formatNumber(lostChargebacks), " cases lost"]
3430
3430
  })]
3431
3431
  }), /*#__PURE__*/jsx(Panel, {
3432
3432
  title: "Traffic source",
3433
- subtitle: "Revenue by channel \xB7 ".concat(daysLabel),
3433
+ subtitle: "Revenue by channel - ".concat(daysLabel),
3434
3434
  children: /*#__PURE__*/jsx(MiniTable, {
3435
3435
  head: ["Source", "Revenue", "Share"],
3436
3436
  rows: [].concat(_toConsumableArray(trafficItems.map(function (t) {
@@ -3446,7 +3446,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3446
3446
  },
3447
3447
  children: [/*#__PURE__*/jsxs(Panel, {
3448
3448
  title: "Order Bump",
3449
- subtitle: "Revenue trend \xB7 last ".concat(daysLabel),
3449
+ subtitle: "Revenue trend - last ".concat(daysLabel),
3450
3450
  children: [/*#__PURE__*/jsx("div", {
3451
3451
  style: {
3452
3452
  fontSize: 17,
@@ -3522,7 +3522,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3522
3522
  primaryColor: C.cyan
3523
3523
  }), /*#__PURE__*/jsxs(Panel, {
3524
3524
  title: "Referrals",
3525
- subtitle: "Revenue trend \xB7 last ".concat(daysLabel),
3525
+ subtitle: "Revenue trend - last ".concat(daysLabel),
3526
3526
  children: [/*#__PURE__*/jsx("div", {
3527
3527
  style: {
3528
3528
  fontSize: 17,
@@ -4061,7 +4061,7 @@ var ReportHeader = function ReportHeader(_ref) {
4061
4061
  month: "short",
4062
4062
  day: "numeric",
4063
4063
  year: "numeric"
4064
- }) + " · " + now.toLocaleTimeString("en-US", {
4064
+ }) + " - " + now.toLocaleTimeString("en-US", {
4065
4065
  hour: "2-digit",
4066
4066
  minute: "2-digit"
4067
4067
  }) + " GMT";
@@ -4132,7 +4132,7 @@ var ReportHeader = function ReportHeader(_ref) {
4132
4132
  fontSize: exportMode ? 10 : 12,
4133
4133
  color: "#9CA3AF"
4134
4134
  },
4135
- children: ["30-day window \xB7 Generated ", generatedLabel]
4135
+ children: ["30-day window - Generated ", generatedLabel]
4136
4136
  })]
4137
4137
  })]
4138
4138
  }), /*#__PURE__*/jsxs(Box, {
@@ -4336,11 +4336,11 @@ var DonorMixCard = function DonorMixCard(_ref) {
4336
4336
  _ref$items = _ref.items,
4337
4337
  items = _ref$items === void 0 ? [{
4338
4338
  label: "New donors",
4339
- val: "146 · 68%",
4339
+ val: "146 - 68%",
4340
4340
  color: "rgb(99, 99, 230)"
4341
4341
  }, {
4342
4342
  label: "Returning",
4343
- val: "69 · 32%",
4343
+ val: "69 - 32%",
4344
4344
  color: "#10B981"
4345
4345
  }] : _ref$items,
4346
4346
  _ref$showBottomSummar = _ref.showBottomSummary,
@@ -4547,7 +4547,7 @@ var DonorMixCard = function DonorMixCard(_ref) {
4547
4547
 
4548
4548
  var TrafficSourceCard = function TrafficSourceCard(_ref) {
4549
4549
  var _ref$title = _ref.title,
4550
- title = _ref$title === void 0 ? "Traffic source" : _ref$title,
4550
+ title = _ref$title === void 0 ? "Traffic Source" : _ref$title,
4551
4551
  subtitle = _ref.subtitle,
4552
4552
  _ref$trafficSourceDat = _ref.trafficSourceData,
4553
4553
  trafficSourceData = _ref$trafficSourceDat === void 0 ? [] : _ref$trafficSourceDat,
@@ -4557,7 +4557,7 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
4557
4557
  _ref$numberOfDays = _ref.numberOfDays,
4558
4558
  numberOfDays = _ref$numberOfDays === void 0 ? 30 : _ref$numberOfDays;
4559
4559
  var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
4560
- var resolvedSubtitle = subtitle || "Revenue by channel \xB7 ".concat(daysLabel);
4560
+ var resolvedSubtitle = subtitle || "Revenue by channel - ".concat(daysLabel);
4561
4561
  var paidAdsColor = "rgb(99, 99, 230)";
4562
4562
  var organicColor = "#10B981";
4563
4563
  var emailColor = "#0EA5E9";
@@ -5278,7 +5278,7 @@ var DonationTypeBarChart = function DonationTypeBarChart(_ref) {
5278
5278
  total: (dataObj === null || dataObj === void 0 || (_dataObj$summary4 = dataObj.summary) === null || _dataObj$summary4 === void 0 || (_dataObj$summary4 = _dataObj$summary4.oneTime) === null || _dataObj$summary4 === void 0 ? void 0 : _dataObj$summary4.total) || 0,
5279
5279
  color: oneTimeColor
5280
5280
  }];
5281
- title = "Recurring vs one-time";
5281
+ title = "Recurring vs One-time";
5282
5282
  isDistributed = false;
5283
5283
  }
5284
5284
  var resolvedChartHeight = chartHeight !== null && chartHeight !== void 0 ? chartHeight : exportMode ? 110 : 170;
@@ -5556,7 +5556,7 @@ var LandingPagesCard = function LandingPagesCard(_ref2) {
5556
5556
  cvr: "2.2%"
5557
5557
  }];
5558
5558
  return /*#__PURE__*/jsxs(CardWrapper, {
5559
- title: "Top landing pages",
5559
+ title: "Top Landing Pages",
5560
5560
  subtitle: "Pages ranked by donations attributed",
5561
5561
  children: [/*#__PURE__*/jsxs(Box, {
5562
5562
  sx: {
@@ -5606,7 +5606,7 @@ var LandingPagesCard = function LandingPagesCard(_ref2) {
5606
5606
  textAlign: "left",
5607
5607
  whiteSpace: "nowrap"
5608
5608
  },
5609
- children: "Conv. rate"
5609
+ children: "Conv. Rate"
5610
5610
  })]
5611
5611
  }), data.length === 0 ? /*#__PURE__*/jsx(Typography, {
5612
5612
  sx: {
@@ -5714,8 +5714,8 @@ var KeywordsCard = function KeywordsCard(_ref3) {
5714
5714
  }];
5715
5715
  var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
5716
5716
  return /*#__PURE__*/jsx(CardWrapper, {
5717
- title: "Top organic keywords",
5718
- subtitle: "Search terms ranked by clicks \xB7 last ".concat(daysLabel),
5717
+ title: "Top Organic Keywords",
5718
+ subtitle: "Search terms ranked by clicks - last ".concat(daysLabel),
5719
5719
  children: !available || data.length === 0 ? /*#__PURE__*/jsx(Typography, {
5720
5720
  sx: {
5721
5721
  fontSize: "13px",
@@ -5857,35 +5857,35 @@ var KeywordsCard = function KeywordsCard(_ref3) {
5857
5857
  };
5858
5858
  var GeographyCard = function GeographyCard(_ref4) {
5859
5859
  var _ref4$subtitle = _ref4.subtitle,
5860
- subtitle = _ref4$subtitle === void 0 ? "Top countries by organic traffic" : _ref4$subtitle,
5860
+ subtitle = _ref4$subtitle === void 0 ? "Top Countries by Organic Traffic" : _ref4$subtitle,
5861
5861
  dataProp = _ref4.data;
5862
5862
  var data = dataProp !== null && dataProp !== void 0 ? dataProp : [{
5863
5863
  country: "United States",
5864
- stats: "3,120 · 37%",
5864
+ stats: "3,120 - 37%",
5865
5865
  percentage: 37
5866
5866
  }, {
5867
5867
  country: "United Kingdom",
5868
- stats: "1,840 · 22%",
5868
+ stats: "1,840 - 22%",
5869
5869
  percentage: 22
5870
5870
  }, {
5871
5871
  country: "Canada",
5872
- stats: "920 · 11%",
5872
+ stats: "920 - 11%",
5873
5873
  percentage: 11
5874
5874
  }, {
5875
5875
  country: "Australia",
5876
- stats: "650 · 8%",
5876
+ stats: "650 - 8%",
5877
5877
  percentage: 8
5878
5878
  }, {
5879
5879
  country: "UAE",
5880
- stats: "580 · 7%",
5880
+ stats: "580 - 7%",
5881
5881
  percentage: 7
5882
5882
  }, {
5883
5883
  country: "Other",
5884
- stats: "1,310 · 16%",
5884
+ stats: "1,310 - 16%",
5885
5885
  percentage: 16
5886
5886
  }];
5887
5887
  return /*#__PURE__*/jsx(CardWrapper, {
5888
- title: "Geography insights",
5888
+ title: "Geography Insights",
5889
5889
  subtitle: subtitle,
5890
5890
  children: data.length === 0 ? /*#__PURE__*/jsx(Typography, {
5891
5891
  sx: {
@@ -5967,7 +5967,7 @@ var TopCampaignsRaisedCard = function TopCampaignsRaisedCard(_ref5) {
5967
5967
  value: "$6,320"
5968
5968
  }];
5969
5969
  return /*#__PURE__*/jsxs(CardWrapper, {
5970
- title: "Top campaigns by total raised",
5970
+ title: "Top Campaigns by Total Raised",
5971
5971
  subtitle: "Email campaigns ranked by donations",
5972
5972
  children: [/*#__PURE__*/jsxs(Box, {
5973
5973
  sx: {
@@ -6073,7 +6073,7 @@ var TopCampaignsCTRCard = function TopCampaignsCTRCard(_ref6) {
6073
6073
  value: "7.6%"
6074
6074
  }];
6075
6075
  return /*#__PURE__*/jsxs(CardWrapper, {
6076
- title: "Top campaigns by CTR",
6076
+ title: "Top Campaigns by CTR",
6077
6077
  subtitle: "Click-through rate leaders",
6078
6078
  children: [/*#__PURE__*/jsxs(Box, {
6079
6079
  sx: {
@@ -6179,7 +6179,7 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard(_ref7) {
6179
6179
  value: "3.4%"
6180
6180
  }];
6181
6181
  return /*#__PURE__*/jsxs(CardWrapper, {
6182
- title: "Top campaigns by conversion",
6182
+ title: "Top Campaigns by Conversion",
6183
6183
  subtitle: "Click-to-donation conversion",
6184
6184
  children: [/*#__PURE__*/jsxs(Box, {
6185
6185
  sx: {
@@ -6201,7 +6201,7 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard(_ref7) {
6201
6201
  color: "rgba(0, 0, 0, 0.4)",
6202
6202
  fontWeight: 500
6203
6203
  },
6204
- children: "Conv. rate"
6204
+ children: "Conv. Rate"
6205
6205
  })]
6206
6206
  }), data.length === 0 ? /*#__PURE__*/jsx(Typography, {
6207
6207
  sx: {
@@ -6295,7 +6295,7 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard(_ref8) {
6295
6295
  }];
6296
6296
  var data = dataProp === null ? fallbackData : dataProp;
6297
6297
  return /*#__PURE__*/jsxs(CardWrapper, {
6298
- title: "Top performing campaigns",
6298
+ title: "Top Performing Campaigns",
6299
6299
  subtitle: "Paid campaigns ranked by ROAS",
6300
6300
  children: [/*#__PURE__*/jsxs(Box, {
6301
6301
  sx: {
@@ -6449,7 +6449,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
6449
6449
  color: "#000",
6450
6450
  lineHeight: 1.15
6451
6451
  },
6452
- children: "Paid donor geography"
6452
+ children: "Paid Donor Geography"
6453
6453
  }), /*#__PURE__*/jsx(Typography, {
6454
6454
  sx: {
6455
6455
  fontSize: "13px",
@@ -6500,7 +6500,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
6500
6500
  minWidth: "60px",
6501
6501
  textAlign: "right"
6502
6502
  },
6503
- children: [item.value, " \xB7 ", item.percentage, "%"]
6503
+ children: [item.value, " - ", item.percentage, "%"]
6504
6504
  })]
6505
6505
  }, index);
6506
6506
  })]
@@ -6728,7 +6728,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
6728
6728
  textAlign: "left",
6729
6729
  lineHeight: 1.15
6730
6730
  },
6731
- children: "Refunds & chargebacks"
6731
+ children: "Refunds & Chargebacks"
6732
6732
  }), /*#__PURE__*/jsxs(Typography, {
6733
6733
  sx: {
6734
6734
  fontSize: "13px",
@@ -6736,7 +6736,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
6736
6736
  textAlign: "left",
6737
6737
  lineHeight: 1.15
6738
6738
  },
6739
- children: ["Trust health \xB7 ", windowLabel]
6739
+ children: ["Trust health - ", windowLabel]
6740
6740
  })]
6741
6741
  }), /*#__PURE__*/jsxs(Box, {
6742
6742
  sx: {
@@ -6854,7 +6854,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
6854
6854
  fontWeight: 500,
6855
6855
  textAlign: "left"
6856
6856
  },
6857
- children: ["$", fmt(totalRefundedAmount), " refunded \xB7 ", totalChargebacks, " chargebacks \xB7 ", totalRefunds, " refunds"]
6857
+ children: ["$", fmt(totalRefundedAmount), " refunded - ", totalChargebacks, " chargebacks - ", totalRefunds, " refunds"]
6858
6858
  })
6859
6859
  }), /*#__PURE__*/jsxs(Box, {
6860
6860
  sx: {
@@ -6963,12 +6963,12 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
6963
6963
  alignItems: "stretch"
6964
6964
  },
6965
6965
  children: [/*#__PURE__*/jsx(ActiveCampaignsCard, {
6966
- title: "Active campaigns",
6966
+ title: "Active Campaigns",
6967
6967
  subtitle: "Live fundraisers ranked by velocity",
6968
6968
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
6969
6969
  rows: activeCampaignsRows
6970
6970
  }), /*#__PURE__*/jsx(DonorMixCard, {
6971
- title: "Donor mix",
6971
+ title: "Donor Mix",
6972
6972
  subtitle: "Acquisition vs retention",
6973
6973
  series: [newDonors, returningDonors],
6974
6974
  labels: ["New donors", "Returning"],
@@ -6977,11 +6977,11 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
6977
6977
  centerValue: String(totalMix),
6978
6978
  items: [{
6979
6979
  label: "New donors",
6980
- val: "".concat(newDonors, " \xB7 ").concat(newPct, "%"),
6980
+ val: "".concat(newDonors, " - ").concat(newPct, "%"),
6981
6981
  color: "rgb(99, 99, 230)"
6982
6982
  }, {
6983
6983
  label: "Returning",
6984
- val: "".concat(returningDonors, " \xB7 ").concat(retPct, "%"),
6984
+ val: "".concat(returningDonors, " - ").concat(retPct, "%"),
6985
6985
  color: "#10B981"
6986
6986
  }],
6987
6987
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
@@ -7004,7 +7004,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7004
7004
  paddingTop: "0px !important"
7005
7005
  },
7006
7006
  children: /*#__PURE__*/jsx(ActiveCampaignsCard, {
7007
- title: "Active campaigns",
7007
+ title: "Active Campaigns",
7008
7008
  subtitle: "Live fundraisers ranked by velocity",
7009
7009
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
7010
7010
  rows: activeCampaignsRows
@@ -7022,7 +7022,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7022
7022
  }
7023
7023
  },
7024
7024
  children: /*#__PURE__*/jsx(DonorMixCard, {
7025
- title: "Donor mix",
7025
+ title: "Donor Mix",
7026
7026
  subtitle: "Acquisition vs retention",
7027
7027
  series: [newDonors, returningDonors],
7028
7028
  labels: ["New donors", "Returning"],
@@ -7030,12 +7030,12 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7030
7030
  centerLabel: "donors",
7031
7031
  centerValue: String(totalMix),
7032
7032
  items: [{
7033
- label: "New donors",
7034
- val: "".concat(newDonors, " \xB7 ").concat(newPct, "%"),
7033
+ label: "New Donors",
7034
+ val: "".concat(newDonors, " - ").concat(newPct, "%"),
7035
7035
  color: "rgb(99, 99, 230)"
7036
7036
  }, {
7037
7037
  label: "Returning",
7038
- val: "".concat(returningDonors, " \xB7 ").concat(retPct, "%"),
7038
+ val: "".concat(returningDonors, " - ").concat(retPct, "%"),
7039
7039
  color: "#10B981"
7040
7040
  }],
7041
7041
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
@@ -7067,7 +7067,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7067
7067
  var bottomCards = /*#__PURE__*/jsxs(Fragment, {
7068
7068
  children: [/*#__PURE__*/jsx(MetricSparklineCard, {
7069
7069
  title: "Order Bump",
7070
- subtitle: "Revenue trend \xB7 last ".concat(daysLabel),
7070
+ subtitle: "Revenue trend - last ".concat(daysLabel),
7071
7071
  value: "$".concat(formatNumber((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.totalRevenue) || 0)),
7072
7072
  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"),
7073
7073
  chartData: (orderBumpData === null || orderBumpData === void 0 || (_orderBumpData$chart = orderBumpData.chart) === null || _orderBumpData$chart === void 0 ? void 0 : _orderBumpData$chart.map(function (item) {
@@ -7110,7 +7110,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7110
7110
  sx: CARD_SX
7111
7111
  }), /*#__PURE__*/jsx(MetricSparklineCard, {
7112
7112
  title: "Referrals",
7113
- subtitle: "Revenue trend \xB7 last ".concat(daysLabel),
7113
+ subtitle: "Revenue trend - last ".concat(daysLabel),
7114
7114
  value: "$".concat(formatNumber((referralData === null || referralData === void 0 ? void 0 : referralData.totalRevenue) || 0)),
7115
7115
  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"),
7116
7116
  chartData: (referralData === null || referralData === void 0 || (_referralData$chartDa = referralData.chartData) === null || _referralData$chartDa === void 0 ? void 0 : _referralData$chartDa.map(function (item) {
@@ -7612,7 +7612,7 @@ var RecurringDonationAmounts = function RecurringDonationAmounts() {
7612
7612
  minWidth: "60px",
7613
7613
  textAlign: "right"
7614
7614
  },
7615
- children: "".concat(item.plans, " \xB7 ").concat(item.share, "%")
7615
+ children: "".concat(item.plans, " - ").concat(item.share, "%")
7616
7616
  })]
7617
7617
  }, index);
7618
7618
  })
@@ -17593,7 +17593,7 @@ var OverallSection = function OverallSection(_ref) {
17593
17593
  error: false,
17594
17594
  warning: false
17595
17595
  },
17596
- "Avg donation": {
17596
+ "Avg Donation": {
17597
17597
  value: "$".concat(formatNumber(((_apiData$overviewStat10 = apiData === null || apiData === void 0 || (_apiData$overviewStat11 = apiData.overviewStats) === null || _apiData$overviewStat11 === void 0 || (_apiData$overviewStat11 = _apiData$overviewStat11.overview) === null || _apiData$overviewStat11 === void 0 ? void 0 : _apiData$overviewStat11.overallAVGDonations) !== null && _apiData$overviewStat10 !== void 0 ? _apiData$overviewStat10 : 0).toFixed(2))),
17598
17598
  subValue: "".concat(Number((_apiData$overviewStat12 = apiData === null || apiData === void 0 || (_apiData$overviewStat13 = apiData.overviewStats) === null || _apiData$overviewStat13 === void 0 || (_apiData$overviewStat13 = _apiData$overviewStat13.overview.growthPercentage) === null || _apiData$overviewStat13 === void 0 ? void 0 : _apiData$overviewStat13.overallAVGDonations) !== null && _apiData$overviewStat12 !== void 0 ? _apiData$overviewStat12 : 0).toFixed(2), "% vs pp\n "),
17599
17599
  label: "Average Donation Amount",
@@ -17745,7 +17745,7 @@ var OverallSection = function OverallSection(_ref) {
17745
17745
  categories = _buildStackedSeries.categories,
17746
17746
  series = _buildStackedSeries.series;
17747
17747
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17748
- label: "Total revenue trend",
17748
+ label: "Total Revenue Trend",
17749
17749
  data: undefined,
17750
17750
  // Clear single data property to force series usage
17751
17751
  series: series,
@@ -17769,7 +17769,7 @@ var OverallSection = function OverallSection(_ref) {
17769
17769
  _categories = _buildStackedSeries2.categories,
17770
17770
  _series = _buildStackedSeries2.series;
17771
17771
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17772
- label: "Net revenue trend",
17772
+ label: "Net Revenue Trend",
17773
17773
  data: undefined,
17774
17774
  series: _series,
17775
17775
  categories: _categories,
@@ -17779,7 +17779,7 @@ var OverallSection = function OverallSection(_ref) {
17779
17779
  });
17780
17780
  } else if (Array.isArray(netData) && netData.length > 0) {
17781
17781
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17782
- label: "Net revenue trend",
17782
+ label: "Net Revenue Trend",
17783
17783
  data: netData.map(function (item) {
17784
17784
  return item.value;
17785
17785
  }),
@@ -17801,7 +17801,7 @@ var OverallSection = function OverallSection(_ref) {
17801
17801
  _categories2 = _buildStackedSeries3.categories,
17802
17802
  _series2 = _buildStackedSeries3.series;
17803
17803
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17804
- label: "Donor trend",
17804
+ label: "Donor Trend",
17805
17805
  data: undefined,
17806
17806
  series: _series2,
17807
17807
  categories: _categories2,
@@ -17811,7 +17811,7 @@ var OverallSection = function OverallSection(_ref) {
17811
17811
  });
17812
17812
  } else if (Array.isArray(donorsData) && donorsData.length > 0) {
17813
17813
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17814
- label: "Donor trend",
17814
+ label: "Donor Trend",
17815
17815
  data: donorsData.map(function (item) {
17816
17816
  return item.value;
17817
17817
  }),
@@ -17887,7 +17887,7 @@ var OverallSection = function OverallSection(_ref) {
17887
17887
  });
17888
17888
  }
17889
17889
  }
17890
- if (activeMetric === "Avg donation") {
17890
+ if (activeMetric === "Avg Donation") {
17891
17891
  var _apiData$overviewStat26;
17892
17892
  var avgData = apiData === null || apiData === void 0 || (_apiData$overviewStat26 = apiData.overviewStats) === null || _apiData$overviewStat26 === void 0 ? void 0 : _apiData$overviewStat26.avgDonations;
17893
17893
  var _hasStackedData5 = (avgData === null || avgData === void 0 ? void 0 : avgData.paidAds) || (avgData === null || avgData === void 0 ? void 0 : avgData.email) || (avgData === null || avgData === void 0 ? void 0 : avgData.organic);
@@ -17896,7 +17896,7 @@ var OverallSection = function OverallSection(_ref) {
17896
17896
  _categories5 = _buildStackedSeries6.categories,
17897
17897
  _series5 = _buildStackedSeries6.series;
17898
17898
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17899
- label: "Average donation trend",
17899
+ label: "Average Donation Trend",
17900
17900
  data: undefined,
17901
17901
  series: _series5,
17902
17902
  categories: _categories5,
@@ -17906,7 +17906,7 @@ var OverallSection = function OverallSection(_ref) {
17906
17906
  });
17907
17907
  } else if (Array.isArray(avgData) && avgData.length > 0) {
17908
17908
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17909
- label: "Average donation trend",
17909
+ label: "Average Donation Trend",
17910
17910
  data: avgData.map(function (item) {
17911
17911
  return item.value;
17912
17912
  }),
@@ -18150,7 +18150,7 @@ var PaidSection = function PaidSection(_ref) {
18150
18150
  error: false,
18151
18151
  warning: false
18152
18152
  },
18153
- "Cost per donor": {
18153
+ "Cost Per Donor": {
18154
18154
  value: "$".concat(formatNumber(373)),
18155
18155
  subValue: "12% vs pp",
18156
18156
  data: [350, 380, 360, 410, 390, 370, 373],
@@ -18160,7 +18160,7 @@ var PaidSection = function PaidSection(_ref) {
18160
18160
  error: false,
18161
18161
  warning: false
18162
18162
  },
18163
- "Conversion rate": {
18163
+ "Conversion Rate": {
18164
18164
  value: "3.1%",
18165
18165
  subValue: "12% vs pp",
18166
18166
  data: [2.8, 3.0, 2.9, 3.4, 3.2, 3.1, 3.1],
@@ -18171,7 +18171,7 @@ var PaidSection = function PaidSection(_ref) {
18171
18171
  error: false,
18172
18172
  warning: false
18173
18173
  },
18174
- "Avg donation": {
18174
+ "Avg Donation": {
18175
18175
  value: "$".concat(formatNumber(130.58)),
18176
18176
  subValue: "12% vs pp",
18177
18177
  data: [120, 135, 125, 140, 130, 128, 130.58],
@@ -18215,7 +18215,7 @@ var PaidSection = function PaidSection(_ref) {
18215
18215
  error: false,
18216
18216
  warning: false
18217
18217
  },
18218
- "Cost per donor": {
18218
+ "Cost Per Donor": {
18219
18219
  value: "$".concat(formatNumber((_overview$costPerDono = overview.costPerDonor) !== null && _overview$costPerDono !== void 0 ? _overview$costPerDono : 0)),
18220
18220
  subValue: formatGrowth$2(growth.costPerDonor),
18221
18221
  data: flatSeries((_overview$costPerDono2 = overview.costPerDonor) !== null && _overview$costPerDono2 !== void 0 ? _overview$costPerDono2 : 0),
@@ -18225,7 +18225,7 @@ var PaidSection = function PaidSection(_ref) {
18225
18225
  error: false,
18226
18226
  warning: false
18227
18227
  },
18228
- "Conversion rate": {
18228
+ "Conversion Rate": {
18229
18229
  value: "".concat(Number((_overview$conversionR = overview.conversionRate) !== null && _overview$conversionR !== void 0 ? _overview$conversionR : 0).toFixed(2), "%"),
18230
18230
  subValue: formatGrowth$2(growth.conversionRate),
18231
18231
  data: flatSeries((_overview$conversionR2 = overview.conversionRate) !== null && _overview$conversionR2 !== void 0 ? _overview$conversionR2 : 0),
@@ -18236,7 +18236,7 @@ var PaidSection = function PaidSection(_ref) {
18236
18236
  error: false,
18237
18237
  warning: false
18238
18238
  },
18239
- "Avg donation": {
18239
+ "Avg Donation": {
18240
18240
  value: "$".concat(formatNumber((_overview$averageDona = overview.averageDonation) !== null && _overview$averageDona !== void 0 ? _overview$averageDona : 0)),
18241
18241
  subValue: formatGrowth$2(growth.averageDonation),
18242
18242
  data: flatSeries((_overview$averageDona2 = overview.averageDonation) !== null && _overview$averageDona2 !== void 0 ? _overview$averageDona2 : 0),
@@ -18388,7 +18388,7 @@ var PaidSection = function PaidSection(_ref) {
18388
18388
  isPrimary: true,
18389
18389
  isPremium: true,
18390
18390
  numberOfDays: numberOfDays,
18391
- metric: activeMetric === "Conversion rate" ? "Percent" : activeMetric === "ROAS" ? "ROAS" : selectedInfo.money ? "Revenue" : "Donors"
18391
+ metric: activeMetric === "Conversion Rate" ? "Percent" : activeMetric === "ROAS" ? "ROAS" : selectedInfo.money ? "Revenue" : "Donors"
18392
18392
  })
18393
18393
  }), /*#__PURE__*/jsxs(Grid, {
18394
18394
  container: true,
@@ -18405,9 +18405,9 @@ var PaidSection = function PaidSection(_ref) {
18405
18405
  minHeight: "430px"
18406
18406
  },
18407
18407
  children: /*#__PURE__*/jsx(ActiveCampaignsCard, {
18408
- title: "Channel performance",
18408
+ title: "Channel Performance",
18409
18409
  subtitle: "Ad platforms ranked by ROAS",
18410
- columns: ["channel", "spend", "revenue", "ROAS", "CPA", "trend"],
18410
+ columns: ["Channel", "Ppend", "Revenue", "ROAS", "CPA", "Trend"],
18411
18411
  gridTemplateColumns: "2.2fr 1fr 1fr 0.8fr 0.8fr 1.2fr",
18412
18412
  height: "100%",
18413
18413
  rows: channelRows !== null && channelRows !== void 0 ? channelRows : [{
@@ -18490,7 +18490,7 @@ var PaidSection = function PaidSection(_ref) {
18490
18490
  }
18491
18491
  },
18492
18492
  children: /*#__PURE__*/jsx(DonorMixCard, {
18493
- title: "Spend allocation",
18493
+ title: "Spend Allocation",
18494
18494
  subtitle: (_spendAllocation$subt = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.subtitle) !== null && _spendAllocation$subt !== void 0 ? _spendAllocation$subt : "Where $80.3K went this month",
18495
18495
  series: (_spendAllocation$seri = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.series) !== null && _spendAllocation$seri !== void 0 ? _spendAllocation$seri : [40.8, 35.1, 14.2, 6.6, 3.3],
18496
18496
  labels: (_spendAllocation$labe = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.labels) !== null && _spendAllocation$labe !== void 0 ? _spendAllocation$labe : ["Meta Ads", "Google Ads", "TikTok", "YouTube", "Snapchat"],
@@ -18656,7 +18656,7 @@ var OrganicSection = function OrganicSection(_ref) {
18656
18656
  warning: false,
18657
18657
  error: false
18658
18658
  },
18659
- "Revenue raised": {
18659
+ "Revenue Raised": {
18660
18660
  value: "$".concat(formatNumber(240398)),
18661
18661
  subValue: "0.4x vs pp",
18662
18662
  data: [2.5, 3.1, 2.8, 4.2, 3.8, 4.5, 5.2],
@@ -18666,7 +18666,7 @@ var OrganicSection = function OrganicSection(_ref) {
18666
18666
  warning: false,
18667
18667
  error: false
18668
18668
  },
18669
- "Avg donation": {
18669
+ "Avg Donation": {
18670
18670
  value: "$".concat(formatNumber(130.58)),
18671
18671
  subValue: "18% vs pp",
18672
18672
  data: [110, 125, 120, 135, 130, 128, 130.58],
@@ -18731,7 +18731,7 @@ var OrganicSection = function OrganicSection(_ref) {
18731
18731
  warning: false,
18732
18732
  error: false
18733
18733
  },
18734
- "Revenue raised": {
18734
+ "Revenue Raised": {
18735
18735
  value: "$".concat(formatNumber((_overview$totalRevenu3 = overview.totalRevenue) !== null && _overview$totalRevenu3 !== void 0 ? _overview$totalRevenu3 : 0)),
18736
18736
  subValue: growthCaption("totalRevenue"),
18737
18737
  data: revenueSeries.data,
@@ -18741,7 +18741,7 @@ var OrganicSection = function OrganicSection(_ref) {
18741
18741
  warning: false,
18742
18742
  error: false
18743
18743
  },
18744
- "Avg donation": {
18744
+ "Avg Donation": {
18745
18745
  value: "$".concat(formatNumber((_overview$overallAVGD3 = overview.overallAVGDonations) !== null && _overview$overallAVGD3 !== void 0 ? _overview$overallAVGD3 : 0)),
18746
18746
  subValue: growthCaption("overallAVGDonations"),
18747
18747
  data: avgDonationSeries.data,
@@ -18795,7 +18795,7 @@ var OrganicSection = function OrganicSection(_ref) {
18795
18795
  var _item$visitors2, _item$percentage, _item$percentage2;
18796
18796
  return {
18797
18797
  country: item.country || "Unknown",
18798
- stats: "".concat(formatNumber((_item$visitors2 = item.visitors) !== null && _item$visitors2 !== void 0 ? _item$visitors2 : 0), " \xB7 ").concat(Number((_item$percentage = item.percentage) !== null && _item$percentage !== void 0 ? _item$percentage : 0).toFixed(0), "%"),
18798
+ 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), "%"),
18799
18799
  percentage: Number((_item$percentage2 = item.percentage) !== null && _item$percentage2 !== void 0 ? _item$percentage2 : 0)
18800
18800
  };
18801
18801
  });
@@ -18915,7 +18915,7 @@ var OrganicSection = function OrganicSection(_ref) {
18915
18915
  }
18916
18916
  },
18917
18917
  children: /*#__PURE__*/jsx(DonorMixCard, {
18918
- title: "Source breakdown",
18918
+ title: "Source Breakdown",
18919
18919
  subtitle: "Where organic visitors come from",
18920
18920
  series: (_sourceBreakdown$seri = sourceBreakdown === null || sourceBreakdown === void 0 ? void 0 : sourceBreakdown.series) !== null && _sourceBreakdown$seri !== void 0 ? _sourceBreakdown$seri : [40.8, 35.1, 14.2, 3.3],
18921
18921
  labels: (_sourceBreakdown$labe = sourceBreakdown === null || sourceBreakdown === void 0 ? void 0 : sourceBreakdown.labels) !== null && _sourceBreakdown$labe !== void 0 ? _sourceBreakdown$labe : ["Meta Ads", "Google Ads", "TikTok", "Snapchat"],
@@ -18970,7 +18970,7 @@ var OrganicSection = function OrganicSection(_ref) {
18970
18970
  }
18971
18971
  },
18972
18972
  children: /*#__PURE__*/jsx(GeographyCard, {
18973
- subtitle: "Top countries by organic traffic",
18973
+ subtitle: "Top Countries by Organic Traffic",
18974
18974
  data: geographyData
18975
18975
  })
18976
18976
  })]
@@ -19500,7 +19500,7 @@ var EmailSection = function EmailSection(_ref) {
19500
19500
  apiLoading = _ref$apiLoading === void 0 ? false : _ref$apiLoading,
19501
19501
  _ref$numberOfDays = _ref.numberOfDays,
19502
19502
  numberOfDays = _ref$numberOfDays === void 0 ? 30 : _ref$numberOfDays;
19503
- var _useState = useState("Total raised"),
19503
+ var _useState = useState("Total Raised"),
19504
19504
  _useState2 = _slicedToArray(_useState, 2),
19505
19505
  activeMetric = _useState2[0],
19506
19506
  setActiveMetric = _useState2[1];
@@ -19522,7 +19522,7 @@ var EmailSection = function EmailSection(_ref) {
19522
19522
  var _overview$totalRevenu, _overview$totalDonati, _overview$conversionR, _overview$ctr, _overview$revenuePerE, _deliverability$openR, _deliverability$total, _deliverability$uniqu, _deliverability$bounc, _deliverability$reven;
19523
19523
  if (!hasEmailOverview) {
19524
19524
  return {
19525
- "Total raised": {
19525
+ "Total Raised": {
19526
19526
  value: "$".concat(formatNumber(48920)),
19527
19527
  subValue: "12% vs pp",
19528
19528
  icon: /*#__PURE__*/jsx(PaidOutlined, {}),
@@ -19538,7 +19538,7 @@ var EmailSection = function EmailSection(_ref) {
19538
19538
  error: false,
19539
19539
  warning: false
19540
19540
  },
19541
- "Conversion rate": {
19541
+ "Conversion Rate": {
19542
19542
  value: "3.2%",
19543
19543
  subValue: "12% vs pp",
19544
19544
  icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
@@ -19556,7 +19556,7 @@ var EmailSection = function EmailSection(_ref) {
19556
19556
  error: false,
19557
19557
  warning: false
19558
19558
  },
19559
- "Revenue per email": {
19559
+ "Revenue Per Email": {
19560
19560
  value: "$".concat(formatNumber(2.45)),
19561
19561
  subValue: "12% vs pp",
19562
19562
  icon: /*#__PURE__*/jsx(RevenuePerEmailIcon, {}),
@@ -19565,7 +19565,7 @@ var EmailSection = function EmailSection(_ref) {
19565
19565
  error: false,
19566
19566
  warning: false
19567
19567
  },
19568
- "Open rate": {
19568
+ "Open Rate": {
19569
19569
  value: "42.3%",
19570
19570
  subValue: "12% vs pp",
19571
19571
  icon: /*#__PURE__*/jsx(Email, {}),
@@ -19591,7 +19591,7 @@ var EmailSection = function EmailSection(_ref) {
19591
19591
  error: false,
19592
19592
  warning: false
19593
19593
  },
19594
- "Bounce rate": {
19594
+ "Bounce Rate": {
19595
19595
  value: "1.8%",
19596
19596
  subValue: "12% vs pp",
19597
19597
  icon: /*#__PURE__*/jsx(HighlightOff, {}),
@@ -19599,7 +19599,7 @@ var EmailSection = function EmailSection(_ref) {
19599
19599
  error: false,
19600
19600
  warning: false
19601
19601
  },
19602
- "Revenue per Click": {
19602
+ "Revenue Per Click": {
19603
19603
  value: "$".concat(formatNumber(30.35)),
19604
19604
  subValue: "12% vs pp",
19605
19605
  icon: /*#__PURE__*/jsx(RevenuePerClickIcon, {}),
@@ -19611,7 +19611,7 @@ var EmailSection = function EmailSection(_ref) {
19611
19611
  };
19612
19612
  }
19613
19613
  return {
19614
- "Total raised": {
19614
+ "Total Raised": {
19615
19615
  value: "$".concat(formatNumber((_overview$totalRevenu = overview.totalRevenue) !== null && _overview$totalRevenu !== void 0 ? _overview$totalRevenu : 0)),
19616
19616
  subValue: growthCaption("totalRevenue"),
19617
19617
  icon: /*#__PURE__*/jsx(PaidOutlined, {}),
@@ -19627,7 +19627,7 @@ var EmailSection = function EmailSection(_ref) {
19627
19627
  error: false,
19628
19628
  warning: false
19629
19629
  },
19630
- "Conversion rate": {
19630
+ "Conversion Rate": {
19631
19631
  value: "".concat(Number((_overview$conversionR = overview.conversionRate) !== null && _overview$conversionR !== void 0 ? _overview$conversionR : 0).toFixed(2), "%"),
19632
19632
  subValue: growthCaption("conversionRate"),
19633
19633
  icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
@@ -19645,7 +19645,7 @@ var EmailSection = function EmailSection(_ref) {
19645
19645
  error: false,
19646
19646
  warning: false
19647
19647
  },
19648
- "Revenue per email": {
19648
+ "Revenue Per Email": {
19649
19649
  value: "$".concat(formatNumber((_overview$revenuePerE = overview.revenuePerEmail) !== null && _overview$revenuePerE !== void 0 ? _overview$revenuePerE : 0)),
19650
19650
  subValue: growthCaption("revenuePerEmail"),
19651
19651
  icon: /*#__PURE__*/jsx(RevenuePerEmailIcon, {}),
@@ -19654,7 +19654,7 @@ var EmailSection = function EmailSection(_ref) {
19654
19654
  error: false,
19655
19655
  warning: false
19656
19656
  },
19657
- "Open rate": {
19657
+ "Open Rate": {
19658
19658
  value: "".concat(Number((_deliverability$openR = deliverability.openRate) !== null && _deliverability$openR !== void 0 ? _deliverability$openR : 0).toFixed(2), "%"),
19659
19659
  subValue: growthCaption("openRate", deliverabilityGrowth),
19660
19660
  icon: /*#__PURE__*/jsx(Email, {}),
@@ -19680,7 +19680,7 @@ var EmailSection = function EmailSection(_ref) {
19680
19680
  error: false,
19681
19681
  warning: false
19682
19682
  },
19683
- "Bounce rate": {
19683
+ "Bounce Rate": {
19684
19684
  value: "".concat(Number((_deliverability$bounc = deliverability.bounceRate) !== null && _deliverability$bounc !== void 0 ? _deliverability$bounc : 0).toFixed(2), "%"),
19685
19685
  subValue: growthCaption("bounceRate", deliverabilityGrowth),
19686
19686
  icon: /*#__PURE__*/jsx(HighlightOff, {}),
@@ -19688,7 +19688,7 @@ var EmailSection = function EmailSection(_ref) {
19688
19688
  error: false,
19689
19689
  warning: false
19690
19690
  },
19691
- "Revenue per Click": {
19691
+ "Revenue Per Click": {
19692
19692
  value: "$".concat(formatNumber((_deliverability$reven = deliverability.revenuePerClick) !== null && _deliverability$reven !== void 0 ? _deliverability$reven : 0)),
19693
19693
  subValue: growthCaption("revenuePerClick", deliverabilityGrowth),
19694
19694
  icon: /*#__PURE__*/jsx(RevenuePerClickIcon, {}),
@@ -19772,7 +19772,7 @@ var EmailSection = function EmailSection(_ref) {
19772
19772
  gap: "6px",
19773
19773
  mb: 0
19774
19774
  },
19775
- children: ["Total raised", "Donations", "Conversion rate", "CTR", "Revenue per email", "Open rate", "Clicks", "Unique Clicks", "Bounce rate", "Revenue per Click"].map(renderCard)
19775
+ children: ["Total Raised", "Donations", "Conversion Rate", "CTR", "Revenue Per Email", "Open Rate", "Clicks", "Unique Clicks", "Bounce Rate", "Revenue Per Click"].map(renderCard)
19776
19776
  }), /*#__PURE__*/jsxs(Grid, {
19777
19777
  container: true,
19778
19778
  spacing: 3,
@@ -19787,8 +19787,8 @@ var EmailSection = function EmailSection(_ref) {
19787
19787
  paddingTop: "0px !important"
19788
19788
  },
19789
19789
  children: /*#__PURE__*/jsx(EmailTrendCard, {
19790
- title: "Open rate trend",
19791
- subtitle: "Daily \xB7 ".concat(daysLabel),
19790
+ title: "Open Rate Trend",
19791
+ subtitle: "Daily - ".concat(daysLabel),
19792
19792
  value: hasEmailOverview ? "".concat(Number((_deliverability$openR2 = deliverability.openRate) !== null && _deliverability$openR2 !== void 0 ? _deliverability$openR2 : 0).toFixed(2), "%") : "42.3%",
19793
19793
  trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.openRate, true) : "2.1pp",
19794
19794
  trendData: hasEmailOverview ? apiData === null || apiData === void 0 ? void 0 : apiData.openRateTrend : undefined,
@@ -19817,23 +19817,23 @@ var EmailSection = function EmailSection(_ref) {
19817
19817
  }
19818
19818
  },
19819
19819
  children: /*#__PURE__*/jsx(EmailTrendCard, {
19820
- title: "Clicks trend",
19821
- subtitle: "Total + unique \xB7 ".concat(daysLabel),
19820
+ title: "Clicks Trend",
19821
+ subtitle: "Total + unique - ".concat(daysLabel),
19822
19822
  value: hasEmailOverview ? formatNumber((_deliverability$total2 = deliverability.totalClicks) !== null && _deliverability$total2 !== void 0 ? _deliverability$total2 : 0) : "1,612",
19823
19823
  trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.totalClicks) : "14%",
19824
19824
  trendSeries: hasEmailOverview ? [{
19825
- name: "Total clicks",
19825
+ name: "Total Clicks",
19826
19826
  data: apiData === null || apiData === void 0 ? void 0 : apiData.totalClicksTrend
19827
19827
  }, {
19828
- name: "Unique clicks",
19828
+ name: "Unique Clicks",
19829
19829
  data: apiData === null || apiData === void 0 ? void 0 : apiData.uniqueClicksTrend,
19830
19830
  dashed: true
19831
19831
  }] : undefined,
19832
19832
  series: [{
19833
- name: "Total clicks",
19833
+ name: "Total Clicks",
19834
19834
  data: [56, 112, 80, 150, 112]
19835
19835
  }, {
19836
- name: "Unique clicks",
19836
+ name: "Unique Clicks",
19837
19837
  data: [30, 70, 45, 100, 75],
19838
19838
  dashed: true
19839
19839
  }],
@@ -19861,8 +19861,8 @@ var EmailSection = function EmailSection(_ref) {
19861
19861
  }
19862
19862
  },
19863
19863
  children: /*#__PURE__*/jsx(EmailTrendCard, {
19864
- title: "Bounce rate trend",
19865
- subtitle: "Daily \xB7 lower is better",
19864
+ title: "Bounce Rate Trend",
19865
+ subtitle: "Daily - lower is better",
19866
19866
  value: hasEmailOverview ? "".concat(Number((_deliverability$bounc2 = deliverability.bounceRate) !== null && _deliverability$bounc2 !== void 0 ? _deliverability$bounc2 : 0).toFixed(2), "%") : "1.8%",
19867
19867
  trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.bounceRate, true) : "0.3pp",
19868
19868
  trendData: hasEmailOverview ? apiData === null || apiData === void 0 ? void 0 : apiData.bounceRateTrend : undefined,