@ammarkhalidfarooq/dashboard-package 0.6.89 → 0.6.91

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 CHANGED
@@ -984,7 +984,9 @@ var Dashboard = function Dashboard(_ref) {
984
984
  _ref$activeFilters = _ref.activeFilters,
985
985
  activeFilters = _ref$activeFilters === void 0 ? [] : _ref$activeFilters;
986
986
  _ref.exportLoading;
987
- var setExportLoading = _ref.setExportLoading;
987
+ var setExportLoading = _ref.setExportLoading,
988
+ _ref$name = _ref.name,
989
+ name = _ref$name === void 0 ? "" : _ref$name;
988
990
  return /*#__PURE__*/jsxRuntime.jsx(material.ThemeProvider, {
989
991
  theme: theme,
990
992
  children: /*#__PURE__*/jsxRuntime.jsx(React.Suspense, {
@@ -996,6 +998,7 @@ var Dashboard = function Dashboard(_ref) {
996
998
  children: /*#__PURE__*/jsxRuntime.jsx(material.CircularProgress, {})
997
999
  }),
998
1000
  children: /*#__PURE__*/jsxRuntime.jsx(NewOverview$1, {
1001
+ name: name,
999
1002
  numberOfDays: numberOfDays,
1000
1003
  apiData: apiData,
1001
1004
  activeSection: overviewType,
@@ -1016,7 +1019,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
1016
1019
  subtitle = _ref$subtitle === void 0 ? "Live fundraisers ranked by velocity" : _ref$subtitle,
1017
1020
  actionLabel = _ref.actionLabel,
1018
1021
  _ref$columns = _ref.columns,
1019
- columns = _ref$columns === void 0 ? ["Campaign", "Raised", "Progress", "Donors", "Avg gift"] : _ref$columns,
1022
+ columns = _ref$columns === void 0 ? ["Campaign", "Raised", "Progress", "Donors", "Avg Gift"] : _ref$columns,
1020
1023
  _ref$rows = _ref.rows,
1021
1024
  rows = _ref$rows === void 0 ? [] : _ref$rows,
1022
1025
  _ref$gridTemplateColu = _ref.gridTemplateColumns,
@@ -2764,7 +2767,8 @@ var PageHeader = function PageHeader(_ref12) {
2764
2767
  });
2765
2768
  };
2766
2769
  var PageFooter = function PageFooter(_ref13) {
2767
- var generatedLabel = _ref13.generatedLabel,
2770
+ var generatedBy = _ref13.generatedBy,
2771
+ generatedLabel = _ref13.generatedLabel,
2768
2772
  page = _ref13.page;
2769
2773
  return /*#__PURE__*/jsxRuntime.jsx("div", {
2770
2774
  style: {
@@ -2779,7 +2783,7 @@ var PageFooter = function PageFooter(_ref13) {
2779
2783
  fontSize: 8,
2780
2784
  color: THEME.muted
2781
2785
  },
2782
- children: ["Confidential - Generated by Dashboard - ", generatedLabel, " \xA0\xA0 Page ", page, " of 2 - madinah.com"]
2786
+ children: ["Confidential - Generated by ", generatedBy, " - ", generatedLabel, " \xA0\xA0 Page ", page, " of 2 - madinah.com"]
2783
2787
  })
2784
2788
  });
2785
2789
  };
@@ -2787,7 +2791,9 @@ var PageFooter = function PageFooter(_ref13) {
2787
2791
  // ─── Main component ───────────────────────────────────────────────────────────
2788
2792
  var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
2789
2793
  var _apiData$overviewStat, _overview$totalRevenu, _overview$netRevenue, _overview$overallAVGD, _overview$conversionR, _apiData$totalVisits, _apiData$trafficSourc, _apiData$trafficSourc2, _apiData$trafficSourc3, _metricByTitle$NetRa, _metricByTitle$Total, _metricByTitle$Total2, _metricByTitle$Total3, _metricByTitle$AvgDo, _growth$overallAVGDon, _metricByTitle$AvgDo2, _apiData$roasCard, _metricByTitle$ROAS, _apiData$roasCardPrev, _metricByTitle$ROAS2, _apiData$adSpend, _apiData$attributedRe, _metricByTitle$Conver, _metricByTitle$Conver2, _metricByTitle$Refund, _metricByTitle$Refund2, _metricByTitle$Refund3, _mainChart$stacked, _ob$growthPercentage, _ob$peakDay, _up$acceptanceGrowth, _up$raisedGrowth, _dn$acceptanceGrowth, _dn$raisedGrowth, _refCard$growthPercen;
2790
- var _ref14$apiData = _ref14.apiData,
2794
+ var _ref14$name = _ref14.name,
2795
+ name = _ref14$name === void 0 ? "" : _ref14$name,
2796
+ _ref14$apiData = _ref14.apiData,
2791
2797
  apiData = _ref14$apiData === void 0 ? {} : _ref14$apiData,
2792
2798
  _ref14$dateName = _ref14.dateName,
2793
2799
  dateName = _ref14$dateName === void 0 ? "Last Period" : _ref14$dateName,
@@ -3164,6 +3170,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3164
3170
  })]
3165
3171
  })]
3166
3172
  }), /*#__PURE__*/jsxRuntime.jsx(PageFooter, {
3173
+ generatedBy: name,
3167
3174
  generatedLabel: generatedLabel,
3168
3175
  page: 1
3169
3176
  })]
@@ -3585,6 +3592,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3585
3592
  })]
3586
3593
  })]
3587
3594
  }), /*#__PURE__*/jsxRuntime.jsx(PageFooter, {
3595
+ generatedBy: name,
3588
3596
  generatedLabel: generatedLabel,
3589
3597
  page: 2
3590
3598
  })]
@@ -3693,7 +3701,9 @@ var EmailSection$2 = /*#__PURE__*/React.lazy(function () {
3693
3701
  return Promise.resolve().then(function () { return EmailSection$1; });
3694
3702
  });
3695
3703
  var NewOverview = function NewOverview(_ref) {
3696
- var _ref$numberOfDays = _ref.numberOfDays,
3704
+ var _ref$name = _ref.name,
3705
+ name = _ref$name === void 0 ? "" : _ref$name,
3706
+ _ref$numberOfDays = _ref.numberOfDays,
3697
3707
  numberOfDays = _ref$numberOfDays === void 0 ? 1 : _ref$numberOfDays,
3698
3708
  _ref$apiData = _ref.apiData,
3699
3709
  apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
@@ -4038,6 +4048,7 @@ var NewOverview = function NewOverview(_ref) {
4038
4048
  },
4039
4049
  children: /*#__PURE__*/jsxRuntime.jsx(ExportPdfLayout, {
4040
4050
  ref: exportLayoutRef,
4051
+ name: name,
4041
4052
  apiData: apiData,
4042
4053
  dateName: dateName,
4043
4054
  numberOfDays: numberOfDays,
@@ -4549,7 +4560,7 @@ var DonorMixCard = function DonorMixCard(_ref) {
4549
4560
 
4550
4561
  var TrafficSourceCard = function TrafficSourceCard(_ref) {
4551
4562
  var _ref$title = _ref.title,
4552
- title = _ref$title === void 0 ? "Traffic source" : _ref$title,
4563
+ title = _ref$title === void 0 ? "Traffic Source" : _ref$title,
4553
4564
  subtitle = _ref.subtitle,
4554
4565
  _ref$trafficSourceDat = _ref.trafficSourceData,
4555
4566
  trafficSourceData = _ref$trafficSourceDat === void 0 ? [] : _ref$trafficSourceDat,
@@ -5280,7 +5291,7 @@ var DonationTypeBarChart = function DonationTypeBarChart(_ref) {
5280
5291
  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,
5281
5292
  color: oneTimeColor
5282
5293
  }];
5283
- title = "Recurring vs one-time";
5294
+ title = "Recurring vs One-time";
5284
5295
  isDistributed = false;
5285
5296
  }
5286
5297
  var resolvedChartHeight = chartHeight !== null && chartHeight !== void 0 ? chartHeight : exportMode ? 110 : 170;
@@ -5558,7 +5569,7 @@ var LandingPagesCard = function LandingPagesCard(_ref2) {
5558
5569
  cvr: "2.2%"
5559
5570
  }];
5560
5571
  return /*#__PURE__*/jsxRuntime.jsxs(CardWrapper, {
5561
- title: "Top landing pages",
5572
+ title: "Top Landing Pages",
5562
5573
  subtitle: "Pages ranked by donations attributed",
5563
5574
  children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
5564
5575
  sx: {
@@ -5608,7 +5619,7 @@ var LandingPagesCard = function LandingPagesCard(_ref2) {
5608
5619
  textAlign: "left",
5609
5620
  whiteSpace: "nowrap"
5610
5621
  },
5611
- children: "Conv. rate"
5622
+ children: "Conv. Rate"
5612
5623
  })]
5613
5624
  }), data.length === 0 ? /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
5614
5625
  sx: {
@@ -5716,7 +5727,7 @@ var KeywordsCard = function KeywordsCard(_ref3) {
5716
5727
  }];
5717
5728
  var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
5718
5729
  return /*#__PURE__*/jsxRuntime.jsx(CardWrapper, {
5719
- title: "Top organic keywords",
5730
+ title: "Top Organic Keywords",
5720
5731
  subtitle: "Search terms ranked by clicks - last ".concat(daysLabel),
5721
5732
  children: !available || data.length === 0 ? /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
5722
5733
  sx: {
@@ -5859,7 +5870,7 @@ var KeywordsCard = function KeywordsCard(_ref3) {
5859
5870
  };
5860
5871
  var GeographyCard = function GeographyCard(_ref4) {
5861
5872
  var _ref4$subtitle = _ref4.subtitle,
5862
- subtitle = _ref4$subtitle === void 0 ? "Top countries by organic traffic" : _ref4$subtitle,
5873
+ subtitle = _ref4$subtitle === void 0 ? "Top Countries by Organic Traffic" : _ref4$subtitle,
5863
5874
  dataProp = _ref4.data;
5864
5875
  var data = dataProp !== null && dataProp !== void 0 ? dataProp : [{
5865
5876
  country: "United States",
@@ -5887,7 +5898,7 @@ var GeographyCard = function GeographyCard(_ref4) {
5887
5898
  percentage: 16
5888
5899
  }];
5889
5900
  return /*#__PURE__*/jsxRuntime.jsx(CardWrapper, {
5890
- title: "Geography insights",
5901
+ title: "Geography Insights",
5891
5902
  subtitle: subtitle,
5892
5903
  children: data.length === 0 ? /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
5893
5904
  sx: {
@@ -5969,7 +5980,7 @@ var TopCampaignsRaisedCard = function TopCampaignsRaisedCard(_ref5) {
5969
5980
  value: "$6,320"
5970
5981
  }];
5971
5982
  return /*#__PURE__*/jsxRuntime.jsxs(CardWrapper, {
5972
- title: "Top campaigns by total raised",
5983
+ title: "Top Campaigns by Total Raised",
5973
5984
  subtitle: "Email campaigns ranked by donations",
5974
5985
  children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
5975
5986
  sx: {
@@ -6075,7 +6086,7 @@ var TopCampaignsCTRCard = function TopCampaignsCTRCard(_ref6) {
6075
6086
  value: "7.6%"
6076
6087
  }];
6077
6088
  return /*#__PURE__*/jsxRuntime.jsxs(CardWrapper, {
6078
- title: "Top campaigns by CTR",
6089
+ title: "Top Campaigns by CTR",
6079
6090
  subtitle: "Click-through rate leaders",
6080
6091
  children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
6081
6092
  sx: {
@@ -6181,7 +6192,7 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard(_ref7) {
6181
6192
  value: "3.4%"
6182
6193
  }];
6183
6194
  return /*#__PURE__*/jsxRuntime.jsxs(CardWrapper, {
6184
- title: "Top campaigns by conversion",
6195
+ title: "Top Campaigns by Conversion",
6185
6196
  subtitle: "Click-to-donation conversion",
6186
6197
  children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
6187
6198
  sx: {
@@ -6203,7 +6214,7 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard(_ref7) {
6203
6214
  color: "rgba(0, 0, 0, 0.4)",
6204
6215
  fontWeight: 500
6205
6216
  },
6206
- children: "Conv. rate"
6217
+ children: "Conv. Rate"
6207
6218
  })]
6208
6219
  }), data.length === 0 ? /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
6209
6220
  sx: {
@@ -6297,7 +6308,7 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard(_ref8) {
6297
6308
  }];
6298
6309
  var data = dataProp === null ? fallbackData : dataProp;
6299
6310
  return /*#__PURE__*/jsxRuntime.jsxs(CardWrapper, {
6300
- title: "Top performing campaigns",
6311
+ title: "Top Performing Campaigns",
6301
6312
  subtitle: "Paid campaigns ranked by ROAS",
6302
6313
  children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
6303
6314
  sx: {
@@ -6451,7 +6462,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
6451
6462
  color: "#000",
6452
6463
  lineHeight: 1.15
6453
6464
  },
6454
- children: "Paid donor geography"
6465
+ children: "Paid Donor Geography"
6455
6466
  }), /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
6456
6467
  sx: {
6457
6468
  fontSize: "13px",
@@ -6730,7 +6741,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
6730
6741
  textAlign: "left",
6731
6742
  lineHeight: 1.15
6732
6743
  },
6733
- children: "Refunds & chargebacks"
6744
+ children: "Refunds & Chargebacks"
6734
6745
  }), /*#__PURE__*/jsxRuntime.jsxs(material.Typography, {
6735
6746
  sx: {
6736
6747
  fontSize: "13px",
@@ -6965,12 +6976,12 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
6965
6976
  alignItems: "stretch"
6966
6977
  },
6967
6978
  children: [/*#__PURE__*/jsxRuntime.jsx(ActiveCampaignsCard, {
6968
- title: "Active campaigns",
6979
+ title: "Active Campaigns",
6969
6980
  subtitle: "Live fundraisers ranked by velocity",
6970
6981
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
6971
6982
  rows: activeCampaignsRows
6972
6983
  }), /*#__PURE__*/jsxRuntime.jsx(DonorMixCard, {
6973
- title: "Donor mix",
6984
+ title: "Donor Mix",
6974
6985
  subtitle: "Acquisition vs retention",
6975
6986
  series: [newDonors, returningDonors],
6976
6987
  labels: ["New donors", "Returning"],
@@ -7006,7 +7017,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7006
7017
  paddingTop: "0px !important"
7007
7018
  },
7008
7019
  children: /*#__PURE__*/jsxRuntime.jsx(ActiveCampaignsCard, {
7009
- title: "Active campaigns",
7020
+ title: "Active Campaigns",
7010
7021
  subtitle: "Live fundraisers ranked by velocity",
7011
7022
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
7012
7023
  rows: activeCampaignsRows
@@ -7024,7 +7035,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7024
7035
  }
7025
7036
  },
7026
7037
  children: /*#__PURE__*/jsxRuntime.jsx(DonorMixCard, {
7027
- title: "Donor mix",
7038
+ title: "Donor Mix",
7028
7039
  subtitle: "Acquisition vs retention",
7029
7040
  series: [newDonors, returningDonors],
7030
7041
  labels: ["New donors", "Returning"],
@@ -7032,7 +7043,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7032
7043
  centerLabel: "donors",
7033
7044
  centerValue: String(totalMix),
7034
7045
  items: [{
7035
- label: "New donors",
7046
+ label: "New Donors",
7036
7047
  val: "".concat(newDonors, " - ").concat(newPct, "%"),
7037
7048
  color: "rgb(99, 99, 230)"
7038
7049
  }, {
@@ -17595,7 +17606,7 @@ var OverallSection = function OverallSection(_ref) {
17595
17606
  error: false,
17596
17607
  warning: false
17597
17608
  },
17598
- "Avg donation": {
17609
+ "Avg Donation": {
17599
17610
  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))),
17600
17611
  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 "),
17601
17612
  label: "Average Donation Amount",
@@ -17747,7 +17758,7 @@ var OverallSection = function OverallSection(_ref) {
17747
17758
  categories = _buildStackedSeries.categories,
17748
17759
  series = _buildStackedSeries.series;
17749
17760
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17750
- label: "Total revenue trend",
17761
+ label: "Total Revenue Trend",
17751
17762
  data: undefined,
17752
17763
  // Clear single data property to force series usage
17753
17764
  series: series,
@@ -17771,7 +17782,7 @@ var OverallSection = function OverallSection(_ref) {
17771
17782
  _categories = _buildStackedSeries2.categories,
17772
17783
  _series = _buildStackedSeries2.series;
17773
17784
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17774
- label: "Net revenue trend",
17785
+ label: "Net Revenue Trend",
17775
17786
  data: undefined,
17776
17787
  series: _series,
17777
17788
  categories: _categories,
@@ -17781,7 +17792,7 @@ var OverallSection = function OverallSection(_ref) {
17781
17792
  });
17782
17793
  } else if (Array.isArray(netData) && netData.length > 0) {
17783
17794
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17784
- label: "Net revenue trend",
17795
+ label: "Net Revenue Trend",
17785
17796
  data: netData.map(function (item) {
17786
17797
  return item.value;
17787
17798
  }),
@@ -17803,7 +17814,7 @@ var OverallSection = function OverallSection(_ref) {
17803
17814
  _categories2 = _buildStackedSeries3.categories,
17804
17815
  _series2 = _buildStackedSeries3.series;
17805
17816
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17806
- label: "Donor trend",
17817
+ label: "Donor Trend",
17807
17818
  data: undefined,
17808
17819
  series: _series2,
17809
17820
  categories: _categories2,
@@ -17813,7 +17824,7 @@ var OverallSection = function OverallSection(_ref) {
17813
17824
  });
17814
17825
  } else if (Array.isArray(donorsData) && donorsData.length > 0) {
17815
17826
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17816
- label: "Donor trend",
17827
+ label: "Donor Trend",
17817
17828
  data: donorsData.map(function (item) {
17818
17829
  return item.value;
17819
17830
  }),
@@ -17889,7 +17900,7 @@ var OverallSection = function OverallSection(_ref) {
17889
17900
  });
17890
17901
  }
17891
17902
  }
17892
- if (activeMetric === "Avg donation") {
17903
+ if (activeMetric === "Avg Donation") {
17893
17904
  var _apiData$overviewStat26;
17894
17905
  var avgData = apiData === null || apiData === void 0 || (_apiData$overviewStat26 = apiData.overviewStats) === null || _apiData$overviewStat26 === void 0 ? void 0 : _apiData$overviewStat26.avgDonations;
17895
17906
  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);
@@ -17898,7 +17909,7 @@ var OverallSection = function OverallSection(_ref) {
17898
17909
  _categories5 = _buildStackedSeries6.categories,
17899
17910
  _series5 = _buildStackedSeries6.series;
17900
17911
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17901
- label: "Average donation trend",
17912
+ label: "Average Donation Trend",
17902
17913
  data: undefined,
17903
17914
  series: _series5,
17904
17915
  categories: _categories5,
@@ -17908,7 +17919,7 @@ var OverallSection = function OverallSection(_ref) {
17908
17919
  });
17909
17920
  } else if (Array.isArray(avgData) && avgData.length > 0) {
17910
17921
  mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
17911
- label: "Average donation trend",
17922
+ label: "Average Donation Trend",
17912
17923
  data: avgData.map(function (item) {
17913
17924
  return item.value;
17914
17925
  }),
@@ -18152,7 +18163,7 @@ var PaidSection = function PaidSection(_ref) {
18152
18163
  error: false,
18153
18164
  warning: false
18154
18165
  },
18155
- "Cost per donor": {
18166
+ "Cost Per Donor": {
18156
18167
  value: "$".concat(formatNumber(373)),
18157
18168
  subValue: "12% vs pp",
18158
18169
  data: [350, 380, 360, 410, 390, 370, 373],
@@ -18162,7 +18173,7 @@ var PaidSection = function PaidSection(_ref) {
18162
18173
  error: false,
18163
18174
  warning: false
18164
18175
  },
18165
- "Conversion rate": {
18176
+ "Conversion Rate": {
18166
18177
  value: "3.1%",
18167
18178
  subValue: "12% vs pp",
18168
18179
  data: [2.8, 3.0, 2.9, 3.4, 3.2, 3.1, 3.1],
@@ -18173,7 +18184,7 @@ var PaidSection = function PaidSection(_ref) {
18173
18184
  error: false,
18174
18185
  warning: false
18175
18186
  },
18176
- "Avg donation": {
18187
+ "Avg Donation": {
18177
18188
  value: "$".concat(formatNumber(130.58)),
18178
18189
  subValue: "12% vs pp",
18179
18190
  data: [120, 135, 125, 140, 130, 128, 130.58],
@@ -18217,7 +18228,7 @@ var PaidSection = function PaidSection(_ref) {
18217
18228
  error: false,
18218
18229
  warning: false
18219
18230
  },
18220
- "Cost per donor": {
18231
+ "Cost Per Donor": {
18221
18232
  value: "$".concat(formatNumber((_overview$costPerDono = overview.costPerDonor) !== null && _overview$costPerDono !== void 0 ? _overview$costPerDono : 0)),
18222
18233
  subValue: formatGrowth$2(growth.costPerDonor),
18223
18234
  data: flatSeries((_overview$costPerDono2 = overview.costPerDonor) !== null && _overview$costPerDono2 !== void 0 ? _overview$costPerDono2 : 0),
@@ -18227,7 +18238,7 @@ var PaidSection = function PaidSection(_ref) {
18227
18238
  error: false,
18228
18239
  warning: false
18229
18240
  },
18230
- "Conversion rate": {
18241
+ "Conversion Rate": {
18231
18242
  value: "".concat(Number((_overview$conversionR = overview.conversionRate) !== null && _overview$conversionR !== void 0 ? _overview$conversionR : 0).toFixed(2), "%"),
18232
18243
  subValue: formatGrowth$2(growth.conversionRate),
18233
18244
  data: flatSeries((_overview$conversionR2 = overview.conversionRate) !== null && _overview$conversionR2 !== void 0 ? _overview$conversionR2 : 0),
@@ -18238,7 +18249,7 @@ var PaidSection = function PaidSection(_ref) {
18238
18249
  error: false,
18239
18250
  warning: false
18240
18251
  },
18241
- "Avg donation": {
18252
+ "Avg Donation": {
18242
18253
  value: "$".concat(formatNumber((_overview$averageDona = overview.averageDonation) !== null && _overview$averageDona !== void 0 ? _overview$averageDona : 0)),
18243
18254
  subValue: formatGrowth$2(growth.averageDonation),
18244
18255
  data: flatSeries((_overview$averageDona2 = overview.averageDonation) !== null && _overview$averageDona2 !== void 0 ? _overview$averageDona2 : 0),
@@ -18390,7 +18401,7 @@ var PaidSection = function PaidSection(_ref) {
18390
18401
  isPrimary: true,
18391
18402
  isPremium: true,
18392
18403
  numberOfDays: numberOfDays,
18393
- metric: activeMetric === "Conversion rate" ? "Percent" : activeMetric === "ROAS" ? "ROAS" : selectedInfo.money ? "Revenue" : "Donors"
18404
+ metric: activeMetric === "Conversion Rate" ? "Percent" : activeMetric === "ROAS" ? "ROAS" : selectedInfo.money ? "Revenue" : "Donors"
18394
18405
  })
18395
18406
  }), /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
18396
18407
  container: true,
@@ -18407,9 +18418,9 @@ var PaidSection = function PaidSection(_ref) {
18407
18418
  minHeight: "430px"
18408
18419
  },
18409
18420
  children: /*#__PURE__*/jsxRuntime.jsx(ActiveCampaignsCard, {
18410
- title: "Channel performance",
18421
+ title: "Channel Performance",
18411
18422
  subtitle: "Ad platforms ranked by ROAS",
18412
- columns: ["channel", "spend", "revenue", "ROAS", "CPA", "trend"],
18423
+ columns: ["Channel", "Ppend", "Revenue", "ROAS", "CPA", "Trend"],
18413
18424
  gridTemplateColumns: "2.2fr 1fr 1fr 0.8fr 0.8fr 1.2fr",
18414
18425
  height: "100%",
18415
18426
  rows: channelRows !== null && channelRows !== void 0 ? channelRows : [{
@@ -18492,7 +18503,7 @@ var PaidSection = function PaidSection(_ref) {
18492
18503
  }
18493
18504
  },
18494
18505
  children: /*#__PURE__*/jsxRuntime.jsx(DonorMixCard, {
18495
- title: "Spend allocation",
18506
+ title: "Spend Allocation",
18496
18507
  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",
18497
18508
  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],
18498
18509
  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"],
@@ -18658,7 +18669,7 @@ var OrganicSection = function OrganicSection(_ref) {
18658
18669
  warning: false,
18659
18670
  error: false
18660
18671
  },
18661
- "Revenue raised": {
18672
+ "Revenue Raised": {
18662
18673
  value: "$".concat(formatNumber(240398)),
18663
18674
  subValue: "0.4x vs pp",
18664
18675
  data: [2.5, 3.1, 2.8, 4.2, 3.8, 4.5, 5.2],
@@ -18668,7 +18679,7 @@ var OrganicSection = function OrganicSection(_ref) {
18668
18679
  warning: false,
18669
18680
  error: false
18670
18681
  },
18671
- "Avg donation": {
18682
+ "Avg Donation": {
18672
18683
  value: "$".concat(formatNumber(130.58)),
18673
18684
  subValue: "18% vs pp",
18674
18685
  data: [110, 125, 120, 135, 130, 128, 130.58],
@@ -18733,7 +18744,7 @@ var OrganicSection = function OrganicSection(_ref) {
18733
18744
  warning: false,
18734
18745
  error: false
18735
18746
  },
18736
- "Revenue raised": {
18747
+ "Revenue Raised": {
18737
18748
  value: "$".concat(formatNumber((_overview$totalRevenu3 = overview.totalRevenue) !== null && _overview$totalRevenu3 !== void 0 ? _overview$totalRevenu3 : 0)),
18738
18749
  subValue: growthCaption("totalRevenue"),
18739
18750
  data: revenueSeries.data,
@@ -18743,7 +18754,7 @@ var OrganicSection = function OrganicSection(_ref) {
18743
18754
  warning: false,
18744
18755
  error: false
18745
18756
  },
18746
- "Avg donation": {
18757
+ "Avg Donation": {
18747
18758
  value: "$".concat(formatNumber((_overview$overallAVGD3 = overview.overallAVGDonations) !== null && _overview$overallAVGD3 !== void 0 ? _overview$overallAVGD3 : 0)),
18748
18759
  subValue: growthCaption("overallAVGDonations"),
18749
18760
  data: avgDonationSeries.data,
@@ -18917,7 +18928,7 @@ var OrganicSection = function OrganicSection(_ref) {
18917
18928
  }
18918
18929
  },
18919
18930
  children: /*#__PURE__*/jsxRuntime.jsx(DonorMixCard, {
18920
- title: "Source breakdown",
18931
+ title: "Source Breakdown",
18921
18932
  subtitle: "Where organic visitors come from",
18922
18933
  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],
18923
18934
  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"],
@@ -18972,7 +18983,7 @@ var OrganicSection = function OrganicSection(_ref) {
18972
18983
  }
18973
18984
  },
18974
18985
  children: /*#__PURE__*/jsxRuntime.jsx(GeographyCard, {
18975
- subtitle: "Top countries by organic traffic",
18986
+ subtitle: "Top Countries by Organic Traffic",
18976
18987
  data: geographyData
18977
18988
  })
18978
18989
  })]
@@ -19502,7 +19513,7 @@ var EmailSection = function EmailSection(_ref) {
19502
19513
  apiLoading = _ref$apiLoading === void 0 ? false : _ref$apiLoading,
19503
19514
  _ref$numberOfDays = _ref.numberOfDays,
19504
19515
  numberOfDays = _ref$numberOfDays === void 0 ? 30 : _ref$numberOfDays;
19505
- var _useState = React.useState("Total raised"),
19516
+ var _useState = React.useState("Total Raised"),
19506
19517
  _useState2 = _slicedToArray(_useState, 2),
19507
19518
  activeMetric = _useState2[0],
19508
19519
  setActiveMetric = _useState2[1];
@@ -19524,7 +19535,7 @@ var EmailSection = function EmailSection(_ref) {
19524
19535
  var _overview$totalRevenu, _overview$totalDonati, _overview$conversionR, _overview$ctr, _overview$revenuePerE, _deliverability$openR, _deliverability$total, _deliverability$uniqu, _deliverability$bounc, _deliverability$reven;
19525
19536
  if (!hasEmailOverview) {
19526
19537
  return {
19527
- "Total raised": {
19538
+ "Total Raised": {
19528
19539
  value: "$".concat(formatNumber(48920)),
19529
19540
  subValue: "12% vs pp",
19530
19541
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
@@ -19540,7 +19551,7 @@ var EmailSection = function EmailSection(_ref) {
19540
19551
  error: false,
19541
19552
  warning: false
19542
19553
  },
19543
- "Conversion rate": {
19554
+ "Conversion Rate": {
19544
19555
  value: "3.2%",
19545
19556
  subValue: "12% vs pp",
19546
19557
  icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
@@ -19558,7 +19569,7 @@ var EmailSection = function EmailSection(_ref) {
19558
19569
  error: false,
19559
19570
  warning: false
19560
19571
  },
19561
- "Revenue per email": {
19572
+ "Revenue Per Email": {
19562
19573
  value: "$".concat(formatNumber(2.45)),
19563
19574
  subValue: "12% vs pp",
19564
19575
  icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerEmailIcon, {}),
@@ -19567,7 +19578,7 @@ var EmailSection = function EmailSection(_ref) {
19567
19578
  error: false,
19568
19579
  warning: false
19569
19580
  },
19570
- "Open rate": {
19581
+ "Open Rate": {
19571
19582
  value: "42.3%",
19572
19583
  subValue: "12% vs pp",
19573
19584
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Email, {}),
@@ -19593,7 +19604,7 @@ var EmailSection = function EmailSection(_ref) {
19593
19604
  error: false,
19594
19605
  warning: false
19595
19606
  },
19596
- "Bounce rate": {
19607
+ "Bounce Rate": {
19597
19608
  value: "1.8%",
19598
19609
  subValue: "12% vs pp",
19599
19610
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.HighlightOff, {}),
@@ -19601,7 +19612,7 @@ var EmailSection = function EmailSection(_ref) {
19601
19612
  error: false,
19602
19613
  warning: false
19603
19614
  },
19604
- "Revenue per Click": {
19615
+ "Revenue Per Click": {
19605
19616
  value: "$".concat(formatNumber(30.35)),
19606
19617
  subValue: "12% vs pp",
19607
19618
  icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerClickIcon, {}),
@@ -19613,7 +19624,7 @@ var EmailSection = function EmailSection(_ref) {
19613
19624
  };
19614
19625
  }
19615
19626
  return {
19616
- "Total raised": {
19627
+ "Total Raised": {
19617
19628
  value: "$".concat(formatNumber((_overview$totalRevenu = overview.totalRevenue) !== null && _overview$totalRevenu !== void 0 ? _overview$totalRevenu : 0)),
19618
19629
  subValue: growthCaption("totalRevenue"),
19619
19630
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
@@ -19629,7 +19640,7 @@ var EmailSection = function EmailSection(_ref) {
19629
19640
  error: false,
19630
19641
  warning: false
19631
19642
  },
19632
- "Conversion rate": {
19643
+ "Conversion Rate": {
19633
19644
  value: "".concat(Number((_overview$conversionR = overview.conversionRate) !== null && _overview$conversionR !== void 0 ? _overview$conversionR : 0).toFixed(2), "%"),
19634
19645
  subValue: growthCaption("conversionRate"),
19635
19646
  icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
@@ -19647,7 +19658,7 @@ var EmailSection = function EmailSection(_ref) {
19647
19658
  error: false,
19648
19659
  warning: false
19649
19660
  },
19650
- "Revenue per email": {
19661
+ "Revenue Per Email": {
19651
19662
  value: "$".concat(formatNumber((_overview$revenuePerE = overview.revenuePerEmail) !== null && _overview$revenuePerE !== void 0 ? _overview$revenuePerE : 0)),
19652
19663
  subValue: growthCaption("revenuePerEmail"),
19653
19664
  icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerEmailIcon, {}),
@@ -19656,7 +19667,7 @@ var EmailSection = function EmailSection(_ref) {
19656
19667
  error: false,
19657
19668
  warning: false
19658
19669
  },
19659
- "Open rate": {
19670
+ "Open Rate": {
19660
19671
  value: "".concat(Number((_deliverability$openR = deliverability.openRate) !== null && _deliverability$openR !== void 0 ? _deliverability$openR : 0).toFixed(2), "%"),
19661
19672
  subValue: growthCaption("openRate", deliverabilityGrowth),
19662
19673
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Email, {}),
@@ -19682,7 +19693,7 @@ var EmailSection = function EmailSection(_ref) {
19682
19693
  error: false,
19683
19694
  warning: false
19684
19695
  },
19685
- "Bounce rate": {
19696
+ "Bounce Rate": {
19686
19697
  value: "".concat(Number((_deliverability$bounc = deliverability.bounceRate) !== null && _deliverability$bounc !== void 0 ? _deliverability$bounc : 0).toFixed(2), "%"),
19687
19698
  subValue: growthCaption("bounceRate", deliverabilityGrowth),
19688
19699
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.HighlightOff, {}),
@@ -19690,7 +19701,7 @@ var EmailSection = function EmailSection(_ref) {
19690
19701
  error: false,
19691
19702
  warning: false
19692
19703
  },
19693
- "Revenue per Click": {
19704
+ "Revenue Per Click": {
19694
19705
  value: "$".concat(formatNumber((_deliverability$reven = deliverability.revenuePerClick) !== null && _deliverability$reven !== void 0 ? _deliverability$reven : 0)),
19695
19706
  subValue: growthCaption("revenuePerClick", deliverabilityGrowth),
19696
19707
  icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerClickIcon, {}),
@@ -19774,7 +19785,7 @@ var EmailSection = function EmailSection(_ref) {
19774
19785
  gap: "6px",
19775
19786
  mb: 0
19776
19787
  },
19777
- children: ["Total raised", "Donations", "Conversion rate", "CTR", "Revenue per email", "Open rate", "Clicks", "Unique Clicks", "Bounce rate", "Revenue per Click"].map(renderCard)
19788
+ children: ["Total Raised", "Donations", "Conversion Rate", "CTR", "Revenue Per Email", "Open Rate", "Clicks", "Unique Clicks", "Bounce Rate", "Revenue Per Click"].map(renderCard)
19778
19789
  }), /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
19779
19790
  container: true,
19780
19791
  spacing: 3,
@@ -19789,7 +19800,7 @@ var EmailSection = function EmailSection(_ref) {
19789
19800
  paddingTop: "0px !important"
19790
19801
  },
19791
19802
  children: /*#__PURE__*/jsxRuntime.jsx(EmailTrendCard, {
19792
- title: "Open rate trend",
19803
+ title: "Open Rate Trend",
19793
19804
  subtitle: "Daily - ".concat(daysLabel),
19794
19805
  value: hasEmailOverview ? "".concat(Number((_deliverability$openR2 = deliverability.openRate) !== null && _deliverability$openR2 !== void 0 ? _deliverability$openR2 : 0).toFixed(2), "%") : "42.3%",
19795
19806
  trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.openRate, true) : "2.1pp",
@@ -19819,23 +19830,23 @@ var EmailSection = function EmailSection(_ref) {
19819
19830
  }
19820
19831
  },
19821
19832
  children: /*#__PURE__*/jsxRuntime.jsx(EmailTrendCard, {
19822
- title: "Clicks trend",
19833
+ title: "Clicks Trend",
19823
19834
  subtitle: "Total + unique - ".concat(daysLabel),
19824
19835
  value: hasEmailOverview ? formatNumber((_deliverability$total2 = deliverability.totalClicks) !== null && _deliverability$total2 !== void 0 ? _deliverability$total2 : 0) : "1,612",
19825
19836
  trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.totalClicks) : "14%",
19826
19837
  trendSeries: hasEmailOverview ? [{
19827
- name: "Total clicks",
19838
+ name: "Total Clicks",
19828
19839
  data: apiData === null || apiData === void 0 ? void 0 : apiData.totalClicksTrend
19829
19840
  }, {
19830
- name: "Unique clicks",
19841
+ name: "Unique Clicks",
19831
19842
  data: apiData === null || apiData === void 0 ? void 0 : apiData.uniqueClicksTrend,
19832
19843
  dashed: true
19833
19844
  }] : undefined,
19834
19845
  series: [{
19835
- name: "Total clicks",
19846
+ name: "Total Clicks",
19836
19847
  data: [56, 112, 80, 150, 112]
19837
19848
  }, {
19838
- name: "Unique clicks",
19849
+ name: "Unique Clicks",
19839
19850
  data: [30, 70, 45, 100, 75],
19840
19851
  dashed: true
19841
19852
  }],
@@ -19863,7 +19874,7 @@ var EmailSection = function EmailSection(_ref) {
19863
19874
  }
19864
19875
  },
19865
19876
  children: /*#__PURE__*/jsxRuntime.jsx(EmailTrendCard, {
19866
- title: "Bounce rate trend",
19877
+ title: "Bounce Rate Trend",
19867
19878
  subtitle: "Daily - lower is better",
19868
19879
  value: hasEmailOverview ? "".concat(Number((_deliverability$bounc2 = deliverability.bounceRate) !== null && _deliverability$bounc2 !== void 0 ? _deliverability$bounc2 : 0).toFixed(2), "%") : "1.8%",
19869
19880
  trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.bounceRate, true) : "0.3pp",