@ammarkhalidfarooq/dashboard-package 0.6.99 → 0.6.101
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 +132 -188
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +132 -188
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6427,7 +6427,7 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard(_ref7) {
|
|
|
6427
6427
|
})]
|
|
6428
6428
|
});
|
|
6429
6429
|
};
|
|
6430
|
-
var getCampaignInitials$
|
|
6430
|
+
var getCampaignInitials$2 = function getCampaignInitials() {
|
|
6431
6431
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
6432
6432
|
var words = name.trim().split(/\s+/).filter(Boolean);
|
|
6433
6433
|
if (words.length >= 2) {
|
|
@@ -6540,7 +6540,7 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard(_ref8) {
|
|
|
6540
6540
|
fontSize: "10px",
|
|
6541
6541
|
fontWeight: 700
|
|
6542
6542
|
},
|
|
6543
|
-
children: item.id || getCampaignInitials$
|
|
6543
|
+
children: item.id || getCampaignInitials$2(item.name)
|
|
6544
6544
|
}), /*#__PURE__*/jsx(Typography, {
|
|
6545
6545
|
sx: {
|
|
6546
6546
|
fontSize: "13px",
|
|
@@ -16895,19 +16895,14 @@ var AverageDonationIcon = function AverageDonationIcon(_ref) {
|
|
|
16895
16895
|
var _ref$size = _ref.size,
|
|
16896
16896
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
16897
16897
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
16898
|
-
return /*#__PURE__*/
|
|
16898
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
16899
16899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16900
16900
|
viewBox: "0 0 24 24",
|
|
16901
16901
|
width: size,
|
|
16902
16902
|
height: size,
|
|
16903
16903
|
"aria-hidden": "true"
|
|
16904
16904
|
}, props), {}, {
|
|
16905
|
-
children:
|
|
16906
|
-
cx: "12",
|
|
16907
|
-
cy: "12",
|
|
16908
|
-
r: "12",
|
|
16909
|
-
fill: "#f1f3ff"
|
|
16910
|
-
}), /*#__PURE__*/jsxs("g", {
|
|
16905
|
+
children: /*#__PURE__*/jsxs("g", {
|
|
16911
16906
|
fill: "#4e47e5",
|
|
16912
16907
|
children: [/*#__PURE__*/jsx("path", {
|
|
16913
16908
|
d: "M9.02,17.2c-.2.05-.27.39.02.47.3.09.57-.12.83-.11,1.39.05,2.62.58,3.91.72,1.65.17,3.28-1.43,4.8-1.99.47-.18,1.22-.48,1.7-.24.28.14.34.49.06.67-1.39.71-2.69,1.95-4.04,2.65-3.6,1.87-8.35-1.58-12.09-.22l-.73-2.8c2.25-.42,4.07-1.82,6.46-1.41.93.16,1.89.98,2.8,1.34.54.22,2.25.55,2.45.85.16.24-.13.54-.33.66-.75.43-2.86-.48-3.76-.6-.57.1-1.57-.13-2.07,0Z"
|
|
@@ -16926,33 +16921,23 @@ var AverageDonationIcon = function AverageDonationIcon(_ref) {
|
|
|
16926
16921
|
}), /*#__PURE__*/jsx("path", {
|
|
16927
16922
|
d: "M12,6.12c-.34.26-1.44-1.2-.91-1.34.36-.09,1.19,1.13.91,1.34Z"
|
|
16928
16923
|
})]
|
|
16929
|
-
})
|
|
16924
|
+
})
|
|
16930
16925
|
}));
|
|
16931
16926
|
};
|
|
16932
|
-
var avgDonationAvatarSx = {
|
|
16933
|
-
width: 30,
|
|
16934
|
-
height: 30,
|
|
16935
|
-
bgcolor: "transparent"
|
|
16936
|
-
};
|
|
16937
16927
|
|
|
16938
16928
|
var _excluded$6 = ["size"];
|
|
16939
16929
|
var ConversionRateIcon = function ConversionRateIcon(_ref) {
|
|
16940
16930
|
var _ref$size = _ref.size,
|
|
16941
16931
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
16942
16932
|
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
16943
|
-
return /*#__PURE__*/
|
|
16933
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
16944
16934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16945
16935
|
viewBox: "0 0 24 24",
|
|
16946
16936
|
width: size,
|
|
16947
16937
|
height: size,
|
|
16948
16938
|
"aria-hidden": "true"
|
|
16949
16939
|
}, props), {}, {
|
|
16950
|
-
children:
|
|
16951
|
-
cx: "12",
|
|
16952
|
-
cy: "12",
|
|
16953
|
-
r: "12",
|
|
16954
|
-
fill: "#f1f3ff"
|
|
16955
|
-
}), /*#__PURE__*/jsxs("g", {
|
|
16940
|
+
children: /*#__PURE__*/jsxs("g", {
|
|
16956
16941
|
fill: "#4e47e5",
|
|
16957
16942
|
children: [/*#__PURE__*/jsx("path", {
|
|
16958
16943
|
d: "M18.15,6.72c.09.75-.16,1.23-.93,1.34l-3.9,4.34-.04,1.32-2.58.89v-2.18l-3.93-4.37c-.77-.11-1.02-.6-.93-1.34h12.31Z"
|
|
@@ -16967,33 +16952,23 @@ var ConversionRateIcon = function ConversionRateIcon(_ref) {
|
|
|
16967
16952
|
}), /*#__PURE__*/jsx("path", {
|
|
16968
16953
|
d: "M11.46,5.84h-3.35c.41-1.76,2.96-1.77,3.35,0Z"
|
|
16969
16954
|
})]
|
|
16970
|
-
})
|
|
16955
|
+
})
|
|
16971
16956
|
}));
|
|
16972
16957
|
};
|
|
16973
|
-
var conversionRateAvatarSx = {
|
|
16974
|
-
width: 30,
|
|
16975
|
-
height: 30,
|
|
16976
|
-
bgcolor: "transparent"
|
|
16977
|
-
};
|
|
16978
16958
|
|
|
16979
16959
|
var _excluded$5 = ["size"];
|
|
16980
16960
|
var NetRaisedIcon = function NetRaisedIcon(_ref) {
|
|
16981
16961
|
var _ref$size = _ref.size,
|
|
16982
16962
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
16983
16963
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
16984
|
-
return /*#__PURE__*/
|
|
16964
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
16985
16965
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16986
16966
|
viewBox: "0 0 24 24",
|
|
16987
16967
|
width: size,
|
|
16988
16968
|
height: size,
|
|
16989
16969
|
"aria-hidden": "true"
|
|
16990
16970
|
}, props), {}, {
|
|
16991
|
-
children:
|
|
16992
|
-
cx: "12",
|
|
16993
|
-
cy: "12",
|
|
16994
|
-
r: "12",
|
|
16995
|
-
fill: "#f1f3ff"
|
|
16996
|
-
}), /*#__PURE__*/jsxs("g", {
|
|
16971
|
+
children: /*#__PURE__*/jsxs("g", {
|
|
16997
16972
|
fill: "#4e47e5",
|
|
16998
16973
|
children: [/*#__PURE__*/jsx("path", {
|
|
16999
16974
|
d: "M19.06,8.58s-.05.06-.05.09c-.08.3-.12.64-.19.94-.51,2.31-1.24,4.58-2.76,6.43-2.99,3.66-7.63,3.71-11.68,1.85-.4-.19-1.44-.67-1.73-.95-.51-.5-.15-1.34.53-1.34.3,0,1.3.63,1.65.8,1.88.89,4.06,1.43,6.14,1.02,4.28-.84,5.87-5.18,6.51-9.01l-1.92,2.29c-.63.55-1.57-.08-1.23-.88,1.23-1.46,2.4-3.02,3.67-4.45.26-.29.41-.51.85-.47.34.03.53.27.66.57l2.05,5.4c.28.93-.99,1.44-1.43.56l-1.06-2.85Z"
|
|
@@ -17010,14 +16985,9 @@ var NetRaisedIcon = function NetRaisedIcon(_ref) {
|
|
|
17010
16985
|
}), /*#__PURE__*/jsx("polygon", {
|
|
17011
16986
|
points: "6.1 15.16 6.1 16.74 4.81 16.19 4.81 15.16"
|
|
17012
16987
|
})]
|
|
17013
|
-
})
|
|
16988
|
+
})
|
|
17014
16989
|
}));
|
|
17015
16990
|
};
|
|
17016
|
-
var netRaisedAvatarSx = {
|
|
17017
|
-
width: 30,
|
|
17018
|
-
height: 30,
|
|
17019
|
-
bgcolor: "transparent"
|
|
17020
|
-
};
|
|
17021
16991
|
|
|
17022
16992
|
var CARD_BORDER = "1.5px solid #F1F1F5";
|
|
17023
16993
|
var PANEL_BORDER = "1px solid #f0f0f0";
|
|
@@ -17665,7 +17635,7 @@ var EmailSectionSkeleton = function EmailSectionSkeleton() {
|
|
|
17665
17635
|
};
|
|
17666
17636
|
|
|
17667
17637
|
var OverallSection = function OverallSection(_ref) {
|
|
17668
|
-
var _apiData$overviewStat, _apiData$overviewStat2, _apiData$overviewStat3, _apiData$overviewStat4, _apiData$overviewStat5, _apiData$overviewStat6, _apiData$overviewStat7, _apiData$overviewStat8, _apiData$overviewStat9, _apiData$overviewStat0, _apiData$overviewStat1, _apiData$overviewStat10, _apiData$overviewStat11, _apiData$overviewStat12, _apiData$overviewStat13, _apiData$
|
|
17638
|
+
var _apiData$overviewStat, _apiData$overviewStat2, _apiData$overviewStat3, _apiData$overviewStat4, _apiData$overviewStat5, _apiData$overviewStat6, _apiData$overviewStat7, _apiData$overviewStat8, _apiData$overviewStat9, _apiData$overviewStat0, _apiData$overviewStat1, _apiData$overviewStat10, _apiData$overviewStat11, _apiData$overviewStat12, _apiData$overviewStat13, _apiData$overviewStat14, _apiData$overviewStat15, _apiData$overviewStat16, _apiData$overviewStat17, _apiData$overviewStat18, _apiData$overviewStat19, _apiData$overviewStat20, _apiData$overviewStat21, _apiData$overviewStat22, _apiData$overviewStat23, _apiData$overviewStat24, _apiData$overviewStat25;
|
|
17669
17639
|
var _ref$apiData = _ref.apiData,
|
|
17670
17640
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
|
|
17671
17641
|
primaryCharts = _ref.primaryCharts,
|
|
@@ -17745,7 +17715,6 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17745
17715
|
subValue: "".concat(Number((_apiData$overviewStat7 = apiData === null || apiData === void 0 || (_apiData$overviewStat8 = apiData.overviewStats) === null || _apiData$overviewStat8 === void 0 || (_apiData$overviewStat8 = _apiData$overviewStat8.overview.growthPercentage) === null || _apiData$overviewStat8 === void 0 ? void 0 : _apiData$overviewStat8.netRevenue) !== null && _apiData$overviewStat7 !== void 0 ? _apiData$overviewStat7 : 0).toFixed(2), "% vs pp\n "),
|
|
17746
17716
|
label: "Net Raised",
|
|
17747
17717
|
icon: /*#__PURE__*/jsx(NetRaisedIcon, {}),
|
|
17748
|
-
avatarSx: netRaisedAvatarSx,
|
|
17749
17718
|
money: true,
|
|
17750
17719
|
error: false,
|
|
17751
17720
|
warning: false
|
|
@@ -17764,14 +17733,13 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17764
17733
|
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 "),
|
|
17765
17734
|
label: "Average Donation Amount",
|
|
17766
17735
|
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
17767
|
-
avatarSx: avgDonationAvatarSx,
|
|
17768
17736
|
money: true,
|
|
17769
17737
|
error: false,
|
|
17770
17738
|
warning: false
|
|
17771
17739
|
},
|
|
17772
17740
|
"ROAS": {
|
|
17773
|
-
value: "".concat(formatNumber(((_apiData$
|
|
17774
|
-
subValue: "".concat(Number((_apiData$
|
|
17741
|
+
value: "".concat(formatNumber(((_apiData$overviewStat14 = apiData === null || apiData === void 0 || (_apiData$overviewStat15 = apiData.overviewStats) === null || _apiData$overviewStat15 === void 0 || (_apiData$overviewStat15 = _apiData$overviewStat15.overview) === null || _apiData$overviewStat15 === void 0 ? void 0 : _apiData$overviewStat15.roas) !== null && _apiData$overviewStat14 !== void 0 ? _apiData$overviewStat14 : 0).toFixed(2)), "x"),
|
|
17742
|
+
subValue: "".concat(Number((_apiData$overviewStat16 = apiData === null || apiData === void 0 || (_apiData$overviewStat17 = apiData.overviewStats) === null || _apiData$overviewStat17 === void 0 || (_apiData$overviewStat17 = _apiData$overviewStat17.overview) === null || _apiData$overviewStat17 === void 0 || (_apiData$overviewStat17 = _apiData$overviewStat17.growthPercentage) === null || _apiData$overviewStat17 === void 0 ? void 0 : _apiData$overviewStat17.roas) !== null && _apiData$overviewStat16 !== void 0 ? _apiData$overviewStat16 : 0).toFixed(2), "x vs pp"),
|
|
17775
17743
|
label: "ROAS",
|
|
17776
17744
|
icon: /*#__PURE__*/jsx(TrendingUp, {}),
|
|
17777
17745
|
money: false,
|
|
@@ -17779,11 +17747,10 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17779
17747
|
warning: false
|
|
17780
17748
|
},
|
|
17781
17749
|
"Conversion": {
|
|
17782
|
-
value: "".concat(formatNumber(((_apiData$
|
|
17783
|
-
subValue: "".concat(((_apiData$
|
|
17750
|
+
value: "".concat(formatNumber(((_apiData$overviewStat18 = apiData === null || apiData === void 0 || (_apiData$overviewStat19 = apiData.overviewStats) === null || _apiData$overviewStat19 === void 0 || (_apiData$overviewStat19 = _apiData$overviewStat19.overview) === null || _apiData$overviewStat19 === void 0 ? void 0 : _apiData$overviewStat19.conversionRate) !== null && _apiData$overviewStat18 !== void 0 ? _apiData$overviewStat18 : 0).toFixed(2)), "%"),
|
|
17751
|
+
subValue: "".concat(((_apiData$overviewStat20 = apiData === null || apiData === void 0 || (_apiData$overviewStat21 = apiData.overviewStats) === null || _apiData$overviewStat21 === void 0 || (_apiData$overviewStat21 = _apiData$overviewStat21.overview) === null || _apiData$overviewStat21 === void 0 || (_apiData$overviewStat21 = _apiData$overviewStat21.growthPercentage) === null || _apiData$overviewStat21 === void 0 ? void 0 : _apiData$overviewStat21.conversionRate) !== null && _apiData$overviewStat20 !== void 0 ? _apiData$overviewStat20 : 0).toFixed(2), "%") || "0%",
|
|
17784
17752
|
label: "Conversion Rate",
|
|
17785
17753
|
icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
|
|
17786
|
-
avatarSx: conversionRateAvatarSx,
|
|
17787
17754
|
money: false,
|
|
17788
17755
|
error: false,
|
|
17789
17756
|
warning: false
|
|
@@ -17815,8 +17782,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17815
17782
|
newDonorsPerc = totalDonorsMix > 0 ? Math.round(newDonorsCount / totalDonorsMix * 100) : 0;
|
|
17816
17783
|
returningDonorsPerc = totalDonorsMix > 0 ? Math.round(returningDonorsCount / totalDonorsMix * 100) : 0;
|
|
17817
17784
|
}
|
|
17818
|
-
var avgGift = Number(((_apiData$
|
|
17819
|
-
var donorMixPrev = Number(((_apiData$
|
|
17785
|
+
var avgGift = Number(((_apiData$overviewStat22 = apiData === null || apiData === void 0 || (_apiData$overviewStat23 = apiData.overviewStats) === null || _apiData$overviewStat23 === void 0 || (_apiData$overviewStat23 = _apiData$overviewStat23.overview) === null || _apiData$overviewStat23 === void 0 ? void 0 : _apiData$overviewStat23.overallAVGDonations) !== null && _apiData$overviewStat22 !== void 0 ? _apiData$overviewStat22 : 0).toFixed(2));
|
|
17786
|
+
var donorMixPrev = Number(((_apiData$overviewStat24 = apiData === null || apiData === void 0 || (_apiData$overviewStat25 = apiData.overviewStats) === null || _apiData$overviewStat25 === void 0 || (_apiData$overviewStat25 = _apiData$overviewStat25.overview) === null || _apiData$overviewStat25 === void 0 || (_apiData$overviewStat25 = _apiData$overviewStat25.growthPercentage) === null || _apiData$overviewStat25 === void 0 ? void 0 : _apiData$overviewStat25.overallAVGDonations) !== null && _apiData$overviewStat24 !== void 0 ? _apiData$overviewStat24 : 0).toFixed(2));
|
|
17820
17787
|
var renderCard = function renderCard(title) {
|
|
17821
17788
|
return /*#__PURE__*/jsx(MetricCard$1
|
|
17822
17789
|
// key={title}
|
|
@@ -17825,7 +17792,6 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17825
17792
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
17826
17793
|
caption: metricInfo[title].subValue,
|
|
17827
17794
|
icon: metricInfo[title].icon,
|
|
17828
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
17829
17795
|
error: metricInfo[title].error,
|
|
17830
17796
|
active: activeMetric === title,
|
|
17831
17797
|
onClick: function onClick() {
|
|
@@ -17903,8 +17869,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17903
17869
|
};
|
|
17904
17870
|
};
|
|
17905
17871
|
if (activeMetric === "Total Raised") {
|
|
17906
|
-
var _apiData$
|
|
17907
|
-
var stackedData = apiData === null || apiData === void 0 || (_apiData$
|
|
17872
|
+
var _apiData$overviewStat26;
|
|
17873
|
+
var stackedData = apiData === null || apiData === void 0 || (_apiData$overviewStat26 = apiData.overviewStats) === null || _apiData$overviewStat26 === void 0 ? void 0 : _apiData$overviewStat26.totalRaised;
|
|
17908
17874
|
var hasStackedData = (stackedData === null || stackedData === void 0 ? void 0 : stackedData.paidAds) || (stackedData === null || stackedData === void 0 ? void 0 : stackedData.email) || (stackedData === null || stackedData === void 0 ? void 0 : stackedData.organic);
|
|
17909
17875
|
if (hasStackedData) {
|
|
17910
17876
|
var _buildStackedSeries = buildStackedSeries(stackedData),
|
|
@@ -17927,8 +17893,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17927
17893
|
}
|
|
17928
17894
|
}
|
|
17929
17895
|
if (activeMetric === "Net Raised") {
|
|
17930
|
-
var _apiData$
|
|
17931
|
-
var netData = apiData === null || apiData === void 0 || (_apiData$
|
|
17896
|
+
var _apiData$overviewStat27;
|
|
17897
|
+
var netData = apiData === null || apiData === void 0 || (_apiData$overviewStat27 = apiData.overviewStats) === null || _apiData$overviewStat27 === void 0 ? void 0 : _apiData$overviewStat27.netRaised;
|
|
17932
17898
|
var _hasStackedData = (netData === null || netData === void 0 ? void 0 : netData.paidAds) || (netData === null || netData === void 0 ? void 0 : netData.email) || (netData === null || netData === void 0 ? void 0 : netData.organic);
|
|
17933
17899
|
if (_hasStackedData) {
|
|
17934
17900
|
var _buildStackedSeries2 = buildStackedSeries(netData),
|
|
@@ -17959,8 +17925,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17959
17925
|
}
|
|
17960
17926
|
}
|
|
17961
17927
|
if (activeMetric === "Total Donors") {
|
|
17962
|
-
var _apiData$
|
|
17963
|
-
var donorsData = apiData === null || apiData === void 0 || (_apiData$
|
|
17928
|
+
var _apiData$overviewStat28;
|
|
17929
|
+
var donorsData = apiData === null || apiData === void 0 || (_apiData$overviewStat28 = apiData.overviewStats) === null || _apiData$overviewStat28 === void 0 ? void 0 : _apiData$overviewStat28.totalDonations;
|
|
17964
17930
|
var _hasStackedData2 = (donorsData === null || donorsData === void 0 ? void 0 : donorsData.paidAds) || (donorsData === null || donorsData === void 0 ? void 0 : donorsData.email) || (donorsData === null || donorsData === void 0 ? void 0 : donorsData.organic);
|
|
17965
17931
|
if (_hasStackedData2) {
|
|
17966
17932
|
var _buildStackedSeries3 = buildStackedSeries(donorsData),
|
|
@@ -17991,7 +17957,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17991
17957
|
}
|
|
17992
17958
|
}
|
|
17993
17959
|
if (activeMetric === "ROAS") {
|
|
17994
|
-
var
|
|
17960
|
+
var _apiData$overviewStat29;
|
|
17961
|
+
var roasData = apiData === null || apiData === void 0 || (_apiData$overviewStat29 = apiData.overviewStats) === null || _apiData$overviewStat29 === void 0 ? void 0 : _apiData$overviewStat29.roas;
|
|
17995
17962
|
var _hasStackedData3 = (roasData === null || roasData === void 0 ? void 0 : roasData.paidAds) || (roasData === null || roasData === void 0 ? void 0 : roasData.email) || (roasData === null || roasData === void 0 ? void 0 : roasData.organic);
|
|
17996
17963
|
if (_hasStackedData3) {
|
|
17997
17964
|
var _buildStackedSeries4 = buildStackedSeries(roasData),
|
|
@@ -18022,8 +17989,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
18022
17989
|
}
|
|
18023
17990
|
}
|
|
18024
17991
|
if (activeMetric === "Conversion") {
|
|
18025
|
-
var _apiData$
|
|
18026
|
-
var conversionData = apiData === null || apiData === void 0 || (_apiData$
|
|
17992
|
+
var _apiData$overviewStat30;
|
|
17993
|
+
var conversionData = apiData === null || apiData === void 0 || (_apiData$overviewStat30 = apiData.overviewStats) === null || _apiData$overviewStat30 === void 0 ? void 0 : _apiData$overviewStat30.conversionRate;
|
|
18027
17994
|
var _hasStackedData4 = (conversionData === null || conversionData === void 0 ? void 0 : conversionData.paidAds) || (conversionData === null || conversionData === void 0 ? void 0 : conversionData.email) || (conversionData === null || conversionData === void 0 ? void 0 : conversionData.organic);
|
|
18028
17995
|
if (_hasStackedData4) {
|
|
18029
17996
|
var _buildStackedSeries5 = buildStackedSeries(conversionData),
|
|
@@ -18054,8 +18021,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
18054
18021
|
}
|
|
18055
18022
|
}
|
|
18056
18023
|
if (activeMetric === "Avg Donation") {
|
|
18057
|
-
var _apiData$
|
|
18058
|
-
var avgData = apiData === null || apiData === void 0 || (_apiData$
|
|
18024
|
+
var _apiData$overviewStat31;
|
|
18025
|
+
var avgData = apiData === null || apiData === void 0 || (_apiData$overviewStat31 = apiData.overviewStats) === null || _apiData$overviewStat31 === void 0 ? void 0 : _apiData$overviewStat31.avgDonations;
|
|
18059
18026
|
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);
|
|
18060
18027
|
if (_hasStackedData5) {
|
|
18061
18028
|
var _buildStackedSeries6 = buildStackedSeries(avgData),
|
|
@@ -18244,8 +18211,38 @@ var mapChannelTrend = function mapChannelTrend(trend) {
|
|
|
18244
18211
|
var getRoasColor = function getRoasColor(roas) {
|
|
18245
18212
|
return Number(roas !== null && roas !== void 0 ? roas : 0) >= 2.5 ? "#22C55E" : "#EF4444";
|
|
18246
18213
|
};
|
|
18214
|
+
var getCampaignInitials$1 = function getCampaignInitials() {
|
|
18215
|
+
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
18216
|
+
var words = name.trim().split(/\s+/).filter(Boolean);
|
|
18217
|
+
if (words.length >= 2) {
|
|
18218
|
+
return (words[0][0] + words[1][0]).toUpperCase();
|
|
18219
|
+
}
|
|
18220
|
+
return name.slice(0, 2).toUpperCase() || "—";
|
|
18221
|
+
};
|
|
18222
|
+
var buildEmptySpendAllocation = function buildEmptySpendAllocation() {
|
|
18223
|
+
var channels = Object.keys(CHANNEL_STYLES);
|
|
18224
|
+
return {
|
|
18225
|
+
series: channels.map(function () {
|
|
18226
|
+
return 0;
|
|
18227
|
+
}),
|
|
18228
|
+
labels: channels,
|
|
18229
|
+
colors: channels.map(function (channel) {
|
|
18230
|
+
return CHANNEL_STYLES[channel].color;
|
|
18231
|
+
}),
|
|
18232
|
+
centerLabel: "total spend",
|
|
18233
|
+
centerValue: "$".concat(formatNumber(0)),
|
|
18234
|
+
subtitle: "Where $".concat(formatNumber(0), " went"),
|
|
18235
|
+
items: channels.map(function (channel) {
|
|
18236
|
+
return {
|
|
18237
|
+
label: channel,
|
|
18238
|
+
val: "0.0%",
|
|
18239
|
+
color: CHANNEL_STYLES[channel].color
|
|
18240
|
+
};
|
|
18241
|
+
})
|
|
18242
|
+
};
|
|
18243
|
+
};
|
|
18247
18244
|
var PaidSection = function PaidSection(_ref) {
|
|
18248
|
-
var _apiData$spendVsReven, _apiData$spendVsReven2, _selectedInfo$categor, _spendAllocation$subt, _spendAllocation$seri, _spendAllocation$labe, _spendAllocation$colo, _spendAllocation$cent, _spendAllocation$cent2, _spendAllocation$item;
|
|
18245
|
+
var _ref2, _rawOverview$totalSpe, _ref3, _rawOverview$totalRev, _ref4, _rawOverview$roas, _ref5, _rawOverview$costPerD, _rawOverview$conversi, _ref6, _rawOverview$averageD, _ref7, _rawOverview$totalDon, _ref8, _rawOverview$growthPe, _rawOverview$growthPe2, _ref9, _rawOverview$growthPe3, _rawOverview$growthPe4, _ref0, _rawOverview$growthPe5, _rawOverview$growthPe6, _rawOverview$growthPe7, _rawOverview$growthPe8, _rawOverview$growthPe9, _rawOverview$growthPe0, _rawOverview$growthPe1, _rawOverview$growthPe10, _apiData$spendVsReven, _apiData$spendVsReven2, _selectedInfo$categor, _spendAllocation$subt, _spendAllocation$seri, _spendAllocation$labe, _spendAllocation$colo, _spendAllocation$cent, _spendAllocation$cent2, _spendAllocation$item;
|
|
18249
18246
|
var _ref$apiData = _ref.apiData,
|
|
18250
18247
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData;
|
|
18251
18248
|
_ref.dateName;
|
|
@@ -18257,8 +18254,25 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18257
18254
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18258
18255
|
activeMetric = _useState2[0],
|
|
18259
18256
|
setActiveMetric = _useState2[1];
|
|
18260
|
-
var
|
|
18261
|
-
var
|
|
18257
|
+
var rawOverview = (apiData === null || apiData === void 0 ? void 0 : apiData.overview) || {};
|
|
18258
|
+
var metaSummary = (apiData === null || apiData === void 0 ? void 0 : apiData.metaSummary) || {};
|
|
18259
|
+
var overview = {
|
|
18260
|
+
totalSpent: (_ref2 = (_rawOverview$totalSpe = rawOverview.totalSpent) !== null && _rawOverview$totalSpe !== void 0 ? _rawOverview$totalSpe : metaSummary.metaSpend) !== null && _ref2 !== void 0 ? _ref2 : 0,
|
|
18261
|
+
totalRevenue: (_ref3 = (_rawOverview$totalRev = rawOverview.totalRevenue) !== null && _rawOverview$totalRev !== void 0 ? _rawOverview$totalRev : metaSummary.attributedAmount) !== null && _ref3 !== void 0 ? _ref3 : 0,
|
|
18262
|
+
roas: (_ref4 = (_rawOverview$roas = rawOverview.roas) !== null && _rawOverview$roas !== void 0 ? _rawOverview$roas : metaSummary.roas) !== null && _ref4 !== void 0 ? _ref4 : 0,
|
|
18263
|
+
costPerDonor: (_ref5 = (_rawOverview$costPerD = rawOverview.costPerDonor) !== null && _rawOverview$costPerD !== void 0 ? _rawOverview$costPerD : metaSummary.cpa) !== null && _ref5 !== void 0 ? _ref5 : 0,
|
|
18264
|
+
conversionRate: (_rawOverview$conversi = rawOverview.conversionRate) !== null && _rawOverview$conversi !== void 0 ? _rawOverview$conversi : 0,
|
|
18265
|
+
averageDonation: (_ref6 = (_rawOverview$averageD = rawOverview.averageDonation) !== null && _rawOverview$averageD !== void 0 ? _rawOverview$averageD : metaSummary.averageGift) !== null && _ref6 !== void 0 ? _ref6 : 0,
|
|
18266
|
+
totalDonations: (_ref7 = (_rawOverview$totalDon = rawOverview.totalDonations) !== null && _rawOverview$totalDon !== void 0 ? _rawOverview$totalDon : metaSummary.donationsCount) !== null && _ref7 !== void 0 ? _ref7 : 0
|
|
18267
|
+
};
|
|
18268
|
+
var growth = {
|
|
18269
|
+
totalSpent: (_ref8 = (_rawOverview$growthPe = (_rawOverview$growthPe2 = rawOverview.growthPercentage) === null || _rawOverview$growthPe2 === void 0 ? void 0 : _rawOverview$growthPe2.totalSpent) !== null && _rawOverview$growthPe !== void 0 ? _rawOverview$growthPe : metaSummary.metaSpendChangePercent) !== null && _ref8 !== void 0 ? _ref8 : 0,
|
|
18270
|
+
totalRevenue: (_ref9 = (_rawOverview$growthPe3 = (_rawOverview$growthPe4 = rawOverview.growthPercentage) === null || _rawOverview$growthPe4 === void 0 ? void 0 : _rawOverview$growthPe4.totalRevenue) !== null && _rawOverview$growthPe3 !== void 0 ? _rawOverview$growthPe3 : metaSummary.attributedChangePercent) !== null && _ref9 !== void 0 ? _ref9 : 0,
|
|
18271
|
+
roas: (_ref0 = (_rawOverview$growthPe5 = (_rawOverview$growthPe6 = rawOverview.growthPercentage) === null || _rawOverview$growthPe6 === void 0 ? void 0 : _rawOverview$growthPe6.roas) !== null && _rawOverview$growthPe5 !== void 0 ? _rawOverview$growthPe5 : metaSummary.roasChange) !== null && _ref0 !== void 0 ? _ref0 : 0,
|
|
18272
|
+
costPerDonor: (_rawOverview$growthPe7 = (_rawOverview$growthPe8 = rawOverview.growthPercentage) === null || _rawOverview$growthPe8 === void 0 ? void 0 : _rawOverview$growthPe8.costPerDonor) !== null && _rawOverview$growthPe7 !== void 0 ? _rawOverview$growthPe7 : 0,
|
|
18273
|
+
conversionRate: (_rawOverview$growthPe9 = (_rawOverview$growthPe0 = rawOverview.growthPercentage) === null || _rawOverview$growthPe0 === void 0 ? void 0 : _rawOverview$growthPe0.conversionRate) !== null && _rawOverview$growthPe9 !== void 0 ? _rawOverview$growthPe9 : 0,
|
|
18274
|
+
averageDonation: (_rawOverview$growthPe1 = (_rawOverview$growthPe10 = rawOverview.growthPercentage) === null || _rawOverview$growthPe10 === void 0 ? void 0 : _rawOverview$growthPe10.averageDonation) !== null && _rawOverview$growthPe1 !== void 0 ? _rawOverview$growthPe1 : 0
|
|
18275
|
+
};
|
|
18262
18276
|
var hasPaidOverview = Boolean(apiData === null || apiData === void 0 ? void 0 : apiData.overview);
|
|
18263
18277
|
var spendSeries = mapTimeSeries$2(apiData === null || apiData === void 0 || (_apiData$spendVsReven = apiData.spendVsRevenue) === null || _apiData$spendVsReven === void 0 ? void 0 : _apiData$spendVsReven.spend);
|
|
18264
18278
|
var revenueSeries = mapTimeSeries$2(apiData === null || apiData === void 0 || (_apiData$spendVsReven2 = apiData.spendVsRevenue) === null || _apiData$spendVsReven2 === void 0 ? void 0 : _apiData$spendVsReven2.revenue);
|
|
@@ -18283,7 +18297,6 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18283
18297
|
}) : [Number(value !== null && value !== void 0 ? value : 0)];
|
|
18284
18298
|
};
|
|
18285
18299
|
var metricInfo = useMemo(function () {
|
|
18286
|
-
var _overview$totalSpent, _overview$totalRevenu, _overview$roas, _overview$roas2, _overview$costPerDono, _overview$costPerDono2, _overview$conversionR, _overview$conversionR2, _overview$averageDona, _overview$averageDona2;
|
|
18287
18300
|
if (!hasPaidOverview) {
|
|
18288
18301
|
return {
|
|
18289
18302
|
"Total Spent": {
|
|
@@ -18332,7 +18345,6 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18332
18345
|
data: [2.8, 3.0, 2.9, 3.4, 3.2, 3.1, 3.1],
|
|
18333
18346
|
categories: fallbackCategories,
|
|
18334
18347
|
icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
|
|
18335
|
-
avatarSx: conversionRateAvatarSx,
|
|
18336
18348
|
money: false,
|
|
18337
18349
|
error: false,
|
|
18338
18350
|
warning: false
|
|
@@ -18343,72 +18355,70 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18343
18355
|
data: [120, 135, 125, 140, 130, 128, 130.58],
|
|
18344
18356
|
categories: fallbackCategories,
|
|
18345
18357
|
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
18346
|
-
avatarSx: avgDonationAvatarSx,
|
|
18347
18358
|
money: true,
|
|
18348
18359
|
error: false,
|
|
18349
18360
|
warning: false
|
|
18350
18361
|
}
|
|
18351
18362
|
};
|
|
18352
18363
|
}
|
|
18364
|
+
var chartCategories = spendSeries.categories.length > 0 ? spendSeries.categories : revenueSeries.categories.length > 0 ? revenueSeries.categories : fallbackCategories;
|
|
18353
18365
|
return {
|
|
18354
18366
|
"Total Spent": {
|
|
18355
|
-
value: "$".concat(formatNumber(
|
|
18367
|
+
value: "$".concat(formatNumber(overview.totalSpent)),
|
|
18356
18368
|
subValue: formatGrowth$2(growth.totalSpent),
|
|
18357
|
-
data: spendSeries.data,
|
|
18358
|
-
categories:
|
|
18369
|
+
data: spendSeries.data.length > 0 ? spendSeries.data : flatSeries(0),
|
|
18370
|
+
categories: chartCategories,
|
|
18359
18371
|
icon: /*#__PURE__*/jsx(IndeterminateCheckBoxOutlined, {}),
|
|
18360
18372
|
money: true,
|
|
18361
18373
|
error: false,
|
|
18362
18374
|
warning: false
|
|
18363
18375
|
},
|
|
18364
18376
|
"Revinue Raised": {
|
|
18365
|
-
value: "$".concat(formatNumber(
|
|
18377
|
+
value: "$".concat(formatNumber(overview.totalRevenue)),
|
|
18366
18378
|
subValue: formatGrowth$2(growth.totalRevenue),
|
|
18367
|
-
data: revenueSeries.data,
|
|
18368
|
-
categories:
|
|
18379
|
+
data: revenueSeries.data.length > 0 ? revenueSeries.data : flatSeries(0),
|
|
18380
|
+
categories: chartCategories,
|
|
18369
18381
|
icon: /*#__PURE__*/jsx(PaidOutlined, {}),
|
|
18370
18382
|
money: true,
|
|
18371
18383
|
error: false,
|
|
18372
18384
|
warning: false
|
|
18373
18385
|
},
|
|
18374
18386
|
ROAS: {
|
|
18375
|
-
value: "".concat(Number(
|
|
18387
|
+
value: "".concat(Number(overview.roas).toFixed(1), "x"),
|
|
18376
18388
|
subValue: formatGrowth$2(growth.roas),
|
|
18377
|
-
data: roasChartData.length > 0 ? roasChartData : flatSeries(
|
|
18378
|
-
categories:
|
|
18389
|
+
data: roasChartData.length > 0 ? roasChartData : flatSeries(0),
|
|
18390
|
+
categories: chartCategories,
|
|
18379
18391
|
icon: /*#__PURE__*/jsx(TrendingUp, {}),
|
|
18380
18392
|
money: false,
|
|
18381
18393
|
error: false,
|
|
18382
18394
|
warning: false
|
|
18383
18395
|
},
|
|
18384
18396
|
"Cost Per Donor": {
|
|
18385
|
-
value: "$".concat(formatNumber(
|
|
18397
|
+
value: "$".concat(formatNumber(overview.costPerDonor)),
|
|
18386
18398
|
subValue: formatGrowth$2(growth.costPerDonor),
|
|
18387
|
-
data: flatSeries(
|
|
18388
|
-
categories:
|
|
18399
|
+
data: flatSeries(overview.costPerDonor),
|
|
18400
|
+
categories: chartCategories,
|
|
18389
18401
|
icon: /*#__PURE__*/jsx(PersonOutlined, {}),
|
|
18390
18402
|
money: true,
|
|
18391
18403
|
error: false,
|
|
18392
18404
|
warning: false
|
|
18393
18405
|
},
|
|
18394
18406
|
"Conversion Rate": {
|
|
18395
|
-
value: "".concat(Number(
|
|
18407
|
+
value: "".concat(Number(overview.conversionRate).toFixed(2), "%"),
|
|
18396
18408
|
subValue: formatGrowth$2(growth.conversionRate),
|
|
18397
|
-
data: flatSeries(
|
|
18398
|
-
categories:
|
|
18409
|
+
data: flatSeries(overview.conversionRate),
|
|
18410
|
+
categories: chartCategories,
|
|
18399
18411
|
icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
|
|
18400
|
-
avatarSx: conversionRateAvatarSx,
|
|
18401
18412
|
money: false,
|
|
18402
18413
|
error: false,
|
|
18403
18414
|
warning: false
|
|
18404
18415
|
},
|
|
18405
18416
|
"Avg Donation": {
|
|
18406
|
-
value: "$".concat(formatNumber(
|
|
18417
|
+
value: "$".concat(formatNumber(overview.averageDonation)),
|
|
18407
18418
|
subValue: formatGrowth$2(growth.averageDonation),
|
|
18408
|
-
data: flatSeries(
|
|
18409
|
-
categories:
|
|
18419
|
+
data: flatSeries(overview.averageDonation),
|
|
18420
|
+
categories: chartCategories,
|
|
18410
18421
|
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
18411
|
-
avatarSx: avgDonationAvatarSx,
|
|
18412
18422
|
money: true,
|
|
18413
18423
|
error: false,
|
|
18414
18424
|
warning: false
|
|
@@ -18441,7 +18451,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18441
18451
|
var allocation = apiData === null || apiData === void 0 ? void 0 : apiData.spendAllocation;
|
|
18442
18452
|
if (!hasPaidOverview) return null;
|
|
18443
18453
|
if (!allocation || !Array.isArray(allocation.data) || allocation.data.length === 0) {
|
|
18444
|
-
return
|
|
18454
|
+
return buildEmptySpendAllocation();
|
|
18445
18455
|
}
|
|
18446
18456
|
var items = allocation.data.map(function (item) {
|
|
18447
18457
|
var _item$percentage, _item$spend2, _item$percentage2;
|
|
@@ -18467,10 +18477,10 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18467
18477
|
centerLabel: "total spend",
|
|
18468
18478
|
centerValue: "$".concat(formatNumber((_allocation$totalSpen = allocation.totalSpend) !== null && _allocation$totalSpen !== void 0 ? _allocation$totalSpen : 0)),
|
|
18469
18479
|
subtitle: "Where $".concat(formatNumber((_allocation$totalSpen2 = allocation.totalSpend) !== null && _allocation$totalSpen2 !== void 0 ? _allocation$totalSpen2 : 0), " went"),
|
|
18470
|
-
items: items.map(function (
|
|
18471
|
-
var label =
|
|
18472
|
-
val =
|
|
18473
|
-
color =
|
|
18480
|
+
items: items.map(function (_ref1) {
|
|
18481
|
+
var label = _ref1.label,
|
|
18482
|
+
val = _ref1.val,
|
|
18483
|
+
color = _ref1.color;
|
|
18474
18484
|
return {
|
|
18475
18485
|
label: label,
|
|
18476
18486
|
val: val,
|
|
@@ -18482,12 +18492,14 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18482
18492
|
var topCampaignsData = useMemo(function () {
|
|
18483
18493
|
var campaigns = apiData === null || apiData === void 0 ? void 0 : apiData.topCampaigns;
|
|
18484
18494
|
if (!hasPaidOverview) return null;
|
|
18485
|
-
if (!Array.isArray(campaigns)) return
|
|
18495
|
+
if (!Array.isArray(campaigns)) return [];
|
|
18486
18496
|
if (campaigns.length === 0) return [];
|
|
18487
18497
|
return campaigns.map(function (item) {
|
|
18488
18498
|
var _item$spend3, _item$revenue2, _item$roas2;
|
|
18499
|
+
var name = item.campaignName || item.campaign || item.name || "Unknown";
|
|
18489
18500
|
return {
|
|
18490
|
-
|
|
18501
|
+
id: getCampaignInitials$1(name),
|
|
18502
|
+
name: name,
|
|
18491
18503
|
spend: "$".concat(formatNumber((_item$spend3 = item.spend) !== null && _item$spend3 !== void 0 ? _item$spend3 : 0)),
|
|
18492
18504
|
revenue: "$".concat(formatNumber((_item$revenue2 = item.revenue) !== null && _item$revenue2 !== void 0 ? _item$revenue2 : 0)),
|
|
18493
18505
|
roas: "".concat(Number((_item$roas2 = item.roas) !== null && _item$roas2 !== void 0 ? _item$roas2 : 0).toFixed(1), "x")
|
|
@@ -18500,7 +18512,6 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18500
18512
|
value: metricInfo[title].value,
|
|
18501
18513
|
caption: metricInfo[title].subValue,
|
|
18502
18514
|
icon: metricInfo[title].icon,
|
|
18503
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
18504
18515
|
error: metricInfo[title].error,
|
|
18505
18516
|
active: activeMetric === title,
|
|
18506
18517
|
onClick: function onClick() {
|
|
@@ -18513,6 +18524,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18513
18524
|
});
|
|
18514
18525
|
};
|
|
18515
18526
|
var selectedInfo = metricInfo[activeMetric] || metricInfo["Total Spent"];
|
|
18527
|
+
var emptySpendAllocation = buildEmptySpendAllocation();
|
|
18516
18528
|
var chartCategories = ((_selectedInfo$categor = selectedInfo.categories) === null || _selectedInfo$categor === void 0 ? void 0 : _selectedInfo$categor.length) > 0 ? selectedInfo.categories : fallbackCategories;
|
|
18517
18529
|
var mainChart = {
|
|
18518
18530
|
label: activeMetric,
|
|
@@ -18576,7 +18588,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18576
18588
|
columns: ["Channel", "Ppend", "Revenue", "ROAS", "CPA", "Trend"],
|
|
18577
18589
|
gridTemplateColumns: "2.2fr 1fr 1fr 0.8fr 0.8fr 1.2fr",
|
|
18578
18590
|
height: "100%",
|
|
18579
|
-
rows: channelRows !== null && channelRows !== void 0 ? channelRows : [{
|
|
18591
|
+
rows: channelRows !== null && channelRows !== void 0 ? channelRows : hasPaidOverview ? [] : [{
|
|
18580
18592
|
id: "M",
|
|
18581
18593
|
avatarBg: "#4267B2",
|
|
18582
18594
|
name: "Meta Ads",
|
|
@@ -18657,13 +18669,13 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18657
18669
|
},
|
|
18658
18670
|
children: /*#__PURE__*/jsx(DonorMixCard, {
|
|
18659
18671
|
title: "Spend Allocation",
|
|
18660
|
-
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",
|
|
18661
|
-
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],
|
|
18662
|
-
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"],
|
|
18663
|
-
colors: (_spendAllocation$colo = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.colors) !== null && _spendAllocation$colo !== void 0 ? _spendAllocation$colo : ["#4267B2", "#4285F4", "#cd249dff", "#FF0000", "#FFFC00"],
|
|
18672
|
+
subtitle: (_spendAllocation$subt = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.subtitle) !== null && _spendAllocation$subt !== void 0 ? _spendAllocation$subt : hasPaidOverview ? emptySpendAllocation.subtitle : "Where $80.3K went this month",
|
|
18673
|
+
series: (_spendAllocation$seri = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.series) !== null && _spendAllocation$seri !== void 0 ? _spendAllocation$seri : hasPaidOverview ? emptySpendAllocation.series : [40.8, 35.1, 14.2, 6.6, 3.3],
|
|
18674
|
+
labels: (_spendAllocation$labe = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.labels) !== null && _spendAllocation$labe !== void 0 ? _spendAllocation$labe : hasPaidOverview ? emptySpendAllocation.labels : ["Meta Ads", "Google Ads", "TikTok", "YouTube", "Snapchat"],
|
|
18675
|
+
colors: (_spendAllocation$colo = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.colors) !== null && _spendAllocation$colo !== void 0 ? _spendAllocation$colo : hasPaidOverview ? emptySpendAllocation.colors : ["#4267B2", "#4285F4", "#cd249dff", "#FF0000", "#FFFC00"],
|
|
18664
18676
|
centerLabel: (_spendAllocation$cent = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.centerLabel) !== null && _spendAllocation$cent !== void 0 ? _spendAllocation$cent : "total spend",
|
|
18665
|
-
centerValue: (_spendAllocation$cent2 = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.centerValue) !== null && _spendAllocation$cent2 !== void 0 ? _spendAllocation$cent2 : "$80.3K",
|
|
18666
|
-
items: (_spendAllocation$item = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.items) !== null && _spendAllocation$item !== void 0 ? _spendAllocation$item : [{
|
|
18677
|
+
centerValue: (_spendAllocation$cent2 = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.centerValue) !== null && _spendAllocation$cent2 !== void 0 ? _spendAllocation$cent2 : hasPaidOverview ? emptySpendAllocation.centerValue : "$80.3K",
|
|
18678
|
+
items: (_spendAllocation$item = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.items) !== null && _spendAllocation$item !== void 0 ? _spendAllocation$item : hasPaidOverview ? emptySpendAllocation.items : [{
|
|
18667
18679
|
label: "Meta Ads",
|
|
18668
18680
|
val: "40.8%",
|
|
18669
18681
|
color: "#4267B2"
|
|
@@ -18705,7 +18717,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18705
18717
|
paddingTop: "0px !important"
|
|
18706
18718
|
},
|
|
18707
18719
|
children: /*#__PURE__*/jsx(TopPerformingCampaignsCard, {
|
|
18708
|
-
data: topCampaignsData
|
|
18720
|
+
data: topCampaignsData !== null && topCampaignsData !== void 0 ? topCampaignsData : hasPaidOverview ? [] : null
|
|
18709
18721
|
})
|
|
18710
18722
|
}), /*#__PURE__*/jsx(Grid, {
|
|
18711
18723
|
item: true,
|
|
@@ -18817,7 +18829,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18817
18829
|
data: [2.5, 2.7, 2.6, 3.1, 3.0, 2.9, 3.1],
|
|
18818
18830
|
categories: fallbackCategories,
|
|
18819
18831
|
icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
|
|
18820
|
-
avatarSx: conversionRateAvatarSx,
|
|
18821
18832
|
money: false,
|
|
18822
18833
|
warning: false,
|
|
18823
18834
|
error: false
|
|
@@ -18838,7 +18849,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18838
18849
|
data: [110, 125, 120, 135, 130, 128, 130.58],
|
|
18839
18850
|
categories: fallbackCategories,
|
|
18840
18851
|
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
18841
|
-
avatarSx: avgDonationAvatarSx,
|
|
18842
18852
|
money: true,
|
|
18843
18853
|
warning: false,
|
|
18844
18854
|
error: false
|
|
@@ -18892,7 +18902,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18892
18902
|
data: conversionSeries.data,
|
|
18893
18903
|
categories: conversionSeries.categories,
|
|
18894
18904
|
icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
|
|
18895
|
-
avatarSx: conversionRateAvatarSx,
|
|
18896
18905
|
money: false,
|
|
18897
18906
|
warning: false,
|
|
18898
18907
|
error: false
|
|
@@ -18913,7 +18922,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18913
18922
|
data: avgDonationSeries.data,
|
|
18914
18923
|
categories: avgDonationSeries.categories,
|
|
18915
18924
|
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
18916
|
-
avatarSx: avgDonationAvatarSx,
|
|
18917
18925
|
money: true,
|
|
18918
18926
|
warning: false,
|
|
18919
18927
|
error: false
|
|
@@ -19002,7 +19010,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
19002
19010
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
19003
19011
|
caption: metricInfo[title].subValue,
|
|
19004
19012
|
icon: metricInfo[title].icon,
|
|
19005
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
19006
19013
|
error: metricInfo[title].error,
|
|
19007
19014
|
active: activeMetric === title,
|
|
19008
19015
|
onClick: function onClick() {
|
|
@@ -19441,48 +19448,33 @@ var ClicksIcon = function ClicksIcon(_ref) {
|
|
|
19441
19448
|
var _ref$size = _ref.size,
|
|
19442
19449
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19443
19450
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
19444
|
-
return /*#__PURE__*/
|
|
19451
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
19445
19452
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19446
19453
|
viewBox: "0 0 24 24",
|
|
19447
19454
|
width: size,
|
|
19448
19455
|
height: size,
|
|
19449
19456
|
"aria-hidden": "true"
|
|
19450
19457
|
}, props), {}, {
|
|
19451
|
-
children:
|
|
19452
|
-
cx: "12",
|
|
19453
|
-
cy: "12",
|
|
19454
|
-
r: "12",
|
|
19455
|
-
fill: "#f1f3ff"
|
|
19456
|
-
}), /*#__PURE__*/jsx("path", {
|
|
19458
|
+
children: /*#__PURE__*/jsx("path", {
|
|
19457
19459
|
fill: "#4e47e5",
|
|
19458
19460
|
d: "M8.67,3.89c1.47.96,5.13,4.83,6.65,6.32,2.68,2.62,2.05,3.43-1.42,4.38.14,1.83,3.51,5.26.32,5.86-2.26.42-2.08-3.82-3.14-4.46-.37-.22-3.44,2.15-4.06-.03l.2-11.77c.17-.93.83-.7,1.45-.29Z"
|
|
19459
|
-
})
|
|
19461
|
+
})
|
|
19460
19462
|
}));
|
|
19461
19463
|
};
|
|
19462
|
-
var clicksAvatarSx = {
|
|
19463
|
-
width: 30,
|
|
19464
|
-
height: 30,
|
|
19465
|
-
bgcolor: "transparent"
|
|
19466
|
-
};
|
|
19467
19464
|
|
|
19468
19465
|
var _excluded$3 = ["size"];
|
|
19469
19466
|
var CtrIcon = function CtrIcon(_ref) {
|
|
19470
19467
|
var _ref$size = _ref.size,
|
|
19471
19468
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19472
19469
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
19473
|
-
return /*#__PURE__*/
|
|
19470
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
19474
19471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19475
19472
|
viewBox: "0 0 24 24",
|
|
19476
19473
|
width: size,
|
|
19477
19474
|
height: size,
|
|
19478
19475
|
"aria-hidden": "true"
|
|
19479
19476
|
}, props), {}, {
|
|
19480
|
-
children:
|
|
19481
|
-
cx: "12",
|
|
19482
|
-
cy: "12",
|
|
19483
|
-
r: "12",
|
|
19484
|
-
fill: "#f1f3ff"
|
|
19485
|
-
}), /*#__PURE__*/jsxs("g", {
|
|
19477
|
+
children: /*#__PURE__*/jsxs("g", {
|
|
19486
19478
|
fill: "#4e47e5",
|
|
19487
19479
|
children: [/*#__PURE__*/jsx("path", {
|
|
19488
19480
|
d: "M11.91,6.57c.47,1.76-1.75,2.91-2.89,1.49-.78-.97-.19-2.54,1.05-2.69.83-.1,1.62.39,1.84,1.2Z"
|
|
@@ -19495,33 +19487,23 @@ var CtrIcon = function CtrIcon(_ref) {
|
|
|
19495
19487
|
}), /*#__PURE__*/jsx("path", {
|
|
19496
19488
|
d: "M21.81,15.47c-.15.41-.32.81-.52,1.2l-1.53-1.53c-.15-.12-.35-.13-.51-.03l-1.05,1.04-1.39-4.01-.43-1.25,1.19.4,4.07,1.39s-.01.05-.03.07c-.23.33-.77.67-1,.99-.12.17-.12.37.01.53l1.19,1.19Z"
|
|
19497
19489
|
})]
|
|
19498
|
-
})
|
|
19490
|
+
})
|
|
19499
19491
|
}));
|
|
19500
19492
|
};
|
|
19501
|
-
var ctrAvatarSx = {
|
|
19502
|
-
width: 30,
|
|
19503
|
-
height: 30,
|
|
19504
|
-
bgcolor: "transparent"
|
|
19505
|
-
};
|
|
19506
19493
|
|
|
19507
19494
|
var _excluded$2 = ["size"];
|
|
19508
19495
|
var RevenuePerClickIcon = function RevenuePerClickIcon(_ref) {
|
|
19509
19496
|
var _ref$size = _ref.size,
|
|
19510
19497
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19511
19498
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
19512
|
-
return /*#__PURE__*/
|
|
19499
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
19513
19500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19514
19501
|
viewBox: "0 0 24 24",
|
|
19515
19502
|
width: size,
|
|
19516
19503
|
height: size,
|
|
19517
19504
|
"aria-hidden": "true"
|
|
19518
19505
|
}, props), {}, {
|
|
19519
|
-
children:
|
|
19520
|
-
cx: "12",
|
|
19521
|
-
cy: "12",
|
|
19522
|
-
r: "12",
|
|
19523
|
-
fill: "#f1f3ff"
|
|
19524
|
-
}), /*#__PURE__*/jsxs("g", {
|
|
19506
|
+
children: /*#__PURE__*/jsxs("g", {
|
|
19525
19507
|
fill: "#4e47e5",
|
|
19526
19508
|
children: [/*#__PURE__*/jsx("path", {
|
|
19527
19509
|
d: "M21.48,13.53l-.86-.82s.02-.02.04-.03c.26-.24.42-.39.5-.51.13-.12.15-.25.15-.34,0-.21-.16-.33-.22-.38l-.07-.05-1.82-.48c0-.42.03-.33-.21-1.09-1.71-5.45-8.56-7.09-12.51-2.93-1.82,1.92-2.47,4.91-1.61,7.41,2,5.78,9.55,6.82,13.1,1.91l1.53,1.55c.06.06.02.12,0,.18-.12.24-.81.92-1.04,1.13C10.09,26.66-2.15,16.26,3.64,6.91,8.65-1.2,21.22,2.08,21.56,11.51c0,.18.04,1.93-.09,2.02Z"
|
|
@@ -19530,33 +19512,23 @@ var RevenuePerClickIcon = function RevenuePerClickIcon(_ref) {
|
|
|
19530
19512
|
}), /*#__PURE__*/jsx("path", {
|
|
19531
19513
|
d: "M21.86,15.21l-1.89,1.89-2.14-2.12c-.13-.02-1.03,1.02-1.23,1.16l-.06-.23-1.55-5.67,2.94.78,1.29.34,1.61.43c.11.09.05.07,0,.14-.06.09-.28.3-.51.51-.29.27-.59.56-.58.64l2.12,2.14Z"
|
|
19532
19514
|
})]
|
|
19533
|
-
})
|
|
19515
|
+
})
|
|
19534
19516
|
}));
|
|
19535
19517
|
};
|
|
19536
|
-
var revenuePerClickAvatarSx = {
|
|
19537
|
-
width: 30,
|
|
19538
|
-
height: 30,
|
|
19539
|
-
bgcolor: "transparent"
|
|
19540
|
-
};
|
|
19541
19518
|
|
|
19542
19519
|
var _excluded$1 = ["size"];
|
|
19543
19520
|
var RevenuePerEmailIcon = function RevenuePerEmailIcon(_ref) {
|
|
19544
19521
|
var _ref$size = _ref.size,
|
|
19545
19522
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19546
19523
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
19547
|
-
return /*#__PURE__*/
|
|
19524
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
19548
19525
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19549
19526
|
viewBox: "0 0 24 24",
|
|
19550
19527
|
width: size,
|
|
19551
19528
|
height: size,
|
|
19552
19529
|
"aria-hidden": "true"
|
|
19553
19530
|
}, props), {}, {
|
|
19554
|
-
children:
|
|
19555
|
-
cx: "12",
|
|
19556
|
-
cy: "12",
|
|
19557
|
-
r: "12",
|
|
19558
|
-
fill: "#f1f3ff"
|
|
19559
|
-
}), /*#__PURE__*/jsxs("g", {
|
|
19531
|
+
children: /*#__PURE__*/jsxs("g", {
|
|
19560
19532
|
fill: "#4e47e5",
|
|
19561
19533
|
children: [/*#__PURE__*/jsx("path", {
|
|
19562
19534
|
d: "M19.63,6.12l-.02.11c-.17.15-.33.3-.5.45h-1.93v.94c-.74.14-1.38.52-1.79,1.08-.4.53-.56,1.18-.46,1.86-.93.87-1.86,1.74-2.81,2.6-.16.14-.46.45-.62.55-.19.12-.39.09-.55-.05L3.47,6.23l-.05-.11h16.21Z"
|
|
@@ -19571,33 +19543,23 @@ var RevenuePerEmailIcon = function RevenuePerEmailIcon(_ref) {
|
|
|
19571
19543
|
}), /*#__PURE__*/jsx("path", {
|
|
19572
19544
|
d: "M21.14,12.94c-.16-.48-.45-.78-.8-1.01-.48-.3-1.07-.45-1.62-.67v-2.14c.71.1,1.13.64,1.15,1.34h1.22c0-.74-.28-1.36-.75-1.79-.36-.33-.82-.56-1.35-.66-.09-.02-.18-.03-.27-.04v-.9h-1.15v.9c-1.27.1-2.31,1-2.28,2.25,0,.15.02.3.05.45.04.19.11.36.21.51.41.66,1.27.97,2.02,1.14v2.5c-.78-.15-1.35-.79-1.34-1.6h-1.12c-.14,0-.03.65,0,.77.27,1.21,1.31,1.85,2.47,2.05v.9h1.15v-.9c.16,0,.32-.02.48-.06.42-.09.82-.27,1.15-.52.74-.57,1.14-1.49.8-2.51ZM17.56,11.04c-.61-.08-.96-.4-1.05-.75-.13-.49.23-1.06,1.05-1.17v1.92ZM18.72,14.88v-2.3c1.76.3,1.79,2.09,0,2.3Z"
|
|
19573
19545
|
})]
|
|
19574
|
-
})
|
|
19546
|
+
})
|
|
19575
19547
|
}));
|
|
19576
19548
|
};
|
|
19577
|
-
var revenuePerEmailAvatarSx = {
|
|
19578
|
-
width: 30,
|
|
19579
|
-
height: 30,
|
|
19580
|
-
bgcolor: "transparent"
|
|
19581
|
-
};
|
|
19582
19549
|
|
|
19583
19550
|
var _excluded = ["size"];
|
|
19584
19551
|
var UniqueClicksIcon = function UniqueClicksIcon(_ref) {
|
|
19585
19552
|
var _ref$size = _ref.size,
|
|
19586
19553
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19587
19554
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19588
|
-
return /*#__PURE__*/
|
|
19555
|
+
return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
|
|
19589
19556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19590
19557
|
viewBox: "0 0 24 24",
|
|
19591
19558
|
width: size,
|
|
19592
19559
|
height: size,
|
|
19593
19560
|
"aria-hidden": "true"
|
|
19594
19561
|
}, props), {}, {
|
|
19595
|
-
children:
|
|
19596
|
-
cx: "12",
|
|
19597
|
-
cy: "12",
|
|
19598
|
-
r: "12",
|
|
19599
|
-
fill: "#f1f3ff"
|
|
19600
|
-
}), /*#__PURE__*/jsxs("g", {
|
|
19562
|
+
children: /*#__PURE__*/jsxs("g", {
|
|
19601
19563
|
fill: "#4e47e5",
|
|
19602
19564
|
children: [/*#__PURE__*/jsx("path", {
|
|
19603
19565
|
d: "M16.11,16.86c.11.39.24.81.41,1.19-.1.02-.22.03-.35.04-3.82.27-7.97-.21-11.82,0-1.71.02-1.24-1.41-.85-2.5.54-1.56,1.73-3.12,3.14-3.98.17-.1.96-.53,1.1-.55.28-.05.52.19.78.28,1.07.36,1.9.45,3.01.15.11-.03.3-.11.49-.19l-.07,3.92.02.08c.22.76.76,1.19,1.53,1.19.67,0,1.4-.33,1.93-.57.09-.04.2-.09.29-.13.03.05.06.12.1.21.1.24.19.54.29.86Z"
|
|
@@ -19606,14 +19568,9 @@ var UniqueClicksIcon = function UniqueClicksIcon(_ref) {
|
|
|
19606
19568
|
}), /*#__PURE__*/jsx("path", {
|
|
19607
19569
|
d: "M18.28,14.01c.12,1.54,2.94,4.41.27,4.91-.77.14-1.2-.36-1.5-1.04-.44-1-.6-2.39-1.13-2.71-.31-.19-2.88,1.8-3.41-.03l.07-4.07.02-1.23.08-4.56c.1-.52.37-.61.7-.51.16.05.34.15.52.26,1.23.81,4.3,4.05,5.58,5.3,2.25,2.2,1.72,2.87-1.19,3.67Z"
|
|
19608
19570
|
})]
|
|
19609
|
-
})
|
|
19571
|
+
})
|
|
19610
19572
|
}));
|
|
19611
19573
|
};
|
|
19612
|
-
var uniqueClicksAvatarSx = {
|
|
19613
|
-
width: 30,
|
|
19614
|
-
height: 30,
|
|
19615
|
-
bgcolor: "transparent"
|
|
19616
|
-
};
|
|
19617
19574
|
|
|
19618
19575
|
var formatGrowth = function formatGrowth(value, dateName) {
|
|
19619
19576
|
return "".concat(Number(value !== null && value !== void 0 ? value : 0).toFixed(2), "% vs pp");
|
|
@@ -19708,7 +19665,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19708
19665
|
value: "3.2%",
|
|
19709
19666
|
subValue: "12% vs pp",
|
|
19710
19667
|
icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
|
|
19711
|
-
avatarSx: conversionRateAvatarSx,
|
|
19712
19668
|
money: false,
|
|
19713
19669
|
error: false,
|
|
19714
19670
|
warning: false
|
|
@@ -19717,7 +19673,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19717
19673
|
value: "8.1%",
|
|
19718
19674
|
subValue: "12% vs pp",
|
|
19719
19675
|
icon: /*#__PURE__*/jsx(CtrIcon, {}),
|
|
19720
|
-
avatarSx: ctrAvatarSx,
|
|
19721
19676
|
money: false,
|
|
19722
19677
|
error: false,
|
|
19723
19678
|
warning: false
|
|
@@ -19726,7 +19681,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19726
19681
|
value: "$".concat(formatNumber(2.45)),
|
|
19727
19682
|
subValue: "12% vs pp",
|
|
19728
19683
|
icon: /*#__PURE__*/jsx(RevenuePerEmailIcon, {}),
|
|
19729
|
-
avatarSx: revenuePerEmailAvatarSx,
|
|
19730
19684
|
money: true,
|
|
19731
19685
|
error: false,
|
|
19732
19686
|
warning: false
|
|
@@ -19743,7 +19697,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19743
19697
|
value: "1,612",
|
|
19744
19698
|
subValue: "12% vs pp",
|
|
19745
19699
|
icon: /*#__PURE__*/jsx(ClicksIcon, {}),
|
|
19746
|
-
avatarSx: clicksAvatarSx,
|
|
19747
19700
|
money: false,
|
|
19748
19701
|
error: false,
|
|
19749
19702
|
warning: false
|
|
@@ -19752,7 +19705,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19752
19705
|
value: formatNumber(1148),
|
|
19753
19706
|
subValue: "12% vs pp",
|
|
19754
19707
|
icon: /*#__PURE__*/jsx(UniqueClicksIcon, {}),
|
|
19755
|
-
avatarSx: uniqueClicksAvatarSx,
|
|
19756
19708
|
money: false,
|
|
19757
19709
|
error: false,
|
|
19758
19710
|
warning: false
|
|
@@ -19769,7 +19721,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19769
19721
|
value: "$".concat(formatNumber(30.35)),
|
|
19770
19722
|
subValue: "12% vs pp",
|
|
19771
19723
|
icon: /*#__PURE__*/jsx(RevenuePerClickIcon, {}),
|
|
19772
|
-
avatarSx: revenuePerClickAvatarSx,
|
|
19773
19724
|
money: true,
|
|
19774
19725
|
error: false,
|
|
19775
19726
|
warning: false
|
|
@@ -19797,7 +19748,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19797
19748
|
value: "".concat(Number((_overview$conversionR = overview.conversionRate) !== null && _overview$conversionR !== void 0 ? _overview$conversionR : 0).toFixed(2), "%"),
|
|
19798
19749
|
subValue: growthCaption("conversionRate"),
|
|
19799
19750
|
icon: /*#__PURE__*/jsx(ConversionRateIcon, {}),
|
|
19800
|
-
avatarSx: conversionRateAvatarSx,
|
|
19801
19751
|
money: false,
|
|
19802
19752
|
error: false,
|
|
19803
19753
|
warning: false
|
|
@@ -19806,7 +19756,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19806
19756
|
value: "".concat(Number((_overview$ctr = overview.ctr) !== null && _overview$ctr !== void 0 ? _overview$ctr : 0).toFixed(2), "%"),
|
|
19807
19757
|
subValue: growthCaption("ctr"),
|
|
19808
19758
|
icon: /*#__PURE__*/jsx(CtrIcon, {}),
|
|
19809
|
-
avatarSx: ctrAvatarSx,
|
|
19810
19759
|
money: false,
|
|
19811
19760
|
error: false,
|
|
19812
19761
|
warning: false
|
|
@@ -19815,7 +19764,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19815
19764
|
value: "$".concat(formatNumber((_overview$revenuePerE = overview.revenuePerEmail) !== null && _overview$revenuePerE !== void 0 ? _overview$revenuePerE : 0)),
|
|
19816
19765
|
subValue: growthCaption("revenuePerEmail"),
|
|
19817
19766
|
icon: /*#__PURE__*/jsx(RevenuePerEmailIcon, {}),
|
|
19818
|
-
avatarSx: revenuePerEmailAvatarSx,
|
|
19819
19767
|
money: true,
|
|
19820
19768
|
error: false,
|
|
19821
19769
|
warning: false
|
|
@@ -19832,7 +19780,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19832
19780
|
value: formatNumber((_deliverability$total = deliverability.totalClicks) !== null && _deliverability$total !== void 0 ? _deliverability$total : 0),
|
|
19833
19781
|
subValue: growthCaption("totalClicks", deliverabilityGrowth),
|
|
19834
19782
|
icon: /*#__PURE__*/jsx(ClicksIcon, {}),
|
|
19835
|
-
avatarSx: clicksAvatarSx,
|
|
19836
19783
|
money: false,
|
|
19837
19784
|
error: false,
|
|
19838
19785
|
warning: false
|
|
@@ -19841,7 +19788,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19841
19788
|
value: formatNumber((_deliverability$uniqu = deliverability.uniqueClicks) !== null && _deliverability$uniqu !== void 0 ? _deliverability$uniqu : 0),
|
|
19842
19789
|
subValue: growthCaption("uniqueClicks", deliverabilityGrowth),
|
|
19843
19790
|
icon: /*#__PURE__*/jsx(UniqueClicksIcon, {}),
|
|
19844
|
-
avatarSx: uniqueClicksAvatarSx,
|
|
19845
19791
|
money: false,
|
|
19846
19792
|
error: false,
|
|
19847
19793
|
warning: false
|
|
@@ -19858,7 +19804,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19858
19804
|
value: "$".concat(formatNumber((_deliverability$reven = deliverability.revenuePerClick) !== null && _deliverability$reven !== void 0 ? _deliverability$reven : 0)),
|
|
19859
19805
|
subValue: growthCaption("revenuePerClick", deliverabilityGrowth),
|
|
19860
19806
|
icon: /*#__PURE__*/jsx(RevenuePerClickIcon, {}),
|
|
19861
|
-
avatarSx: revenuePerClickAvatarSx,
|
|
19862
19807
|
money: true,
|
|
19863
19808
|
error: false,
|
|
19864
19809
|
warning: false
|
|
@@ -19910,7 +19855,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19910
19855
|
value: metricInfo[title].value,
|
|
19911
19856
|
caption: metricInfo[title].subValue,
|
|
19912
19857
|
icon: metricInfo[title].icon,
|
|
19913
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
19914
19858
|
error: metricInfo[title].error,
|
|
19915
19859
|
active: activeMetric === title,
|
|
19916
19860
|
onClick: function onClick() {
|