@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.cjs.js
CHANGED
|
@@ -6429,7 +6429,7 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard(_ref7) {
|
|
|
6429
6429
|
})]
|
|
6430
6430
|
});
|
|
6431
6431
|
};
|
|
6432
|
-
var getCampaignInitials$
|
|
6432
|
+
var getCampaignInitials$2 = function getCampaignInitials() {
|
|
6433
6433
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
6434
6434
|
var words = name.trim().split(/\s+/).filter(Boolean);
|
|
6435
6435
|
if (words.length >= 2) {
|
|
@@ -6542,7 +6542,7 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard(_ref8) {
|
|
|
6542
6542
|
fontSize: "10px",
|
|
6543
6543
|
fontWeight: 700
|
|
6544
6544
|
},
|
|
6545
|
-
children: item.id || getCampaignInitials$
|
|
6545
|
+
children: item.id || getCampaignInitials$2(item.name)
|
|
6546
6546
|
}), /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
|
|
6547
6547
|
sx: {
|
|
6548
6548
|
fontSize: "13px",
|
|
@@ -16897,19 +16897,14 @@ var AverageDonationIcon = function AverageDonationIcon(_ref) {
|
|
|
16897
16897
|
var _ref$size = _ref.size,
|
|
16898
16898
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
16899
16899
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
16900
|
-
return /*#__PURE__*/jsxRuntime.
|
|
16900
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
16901
16901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16902
16902
|
viewBox: "0 0 24 24",
|
|
16903
16903
|
width: size,
|
|
16904
16904
|
height: size,
|
|
16905
16905
|
"aria-hidden": "true"
|
|
16906
16906
|
}, props), {}, {
|
|
16907
|
-
children:
|
|
16908
|
-
cx: "12",
|
|
16909
|
-
cy: "12",
|
|
16910
|
-
r: "12",
|
|
16911
|
-
fill: "#f1f3ff"
|
|
16912
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
16907
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
16913
16908
|
fill: "#4e47e5",
|
|
16914
16909
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16915
16910
|
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"
|
|
@@ -16928,33 +16923,23 @@ var AverageDonationIcon = function AverageDonationIcon(_ref) {
|
|
|
16928
16923
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16929
16924
|
d: "M12,6.12c-.34.26-1.44-1.2-.91-1.34.36-.09,1.19,1.13.91,1.34Z"
|
|
16930
16925
|
})]
|
|
16931
|
-
})
|
|
16926
|
+
})
|
|
16932
16927
|
}));
|
|
16933
16928
|
};
|
|
16934
|
-
var avgDonationAvatarSx = {
|
|
16935
|
-
width: 30,
|
|
16936
|
-
height: 30,
|
|
16937
|
-
bgcolor: "transparent"
|
|
16938
|
-
};
|
|
16939
16929
|
|
|
16940
16930
|
var _excluded$6 = ["size"];
|
|
16941
16931
|
var ConversionRateIcon = function ConversionRateIcon(_ref) {
|
|
16942
16932
|
var _ref$size = _ref.size,
|
|
16943
16933
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
16944
16934
|
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
16945
|
-
return /*#__PURE__*/jsxRuntime.
|
|
16935
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
16946
16936
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16947
16937
|
viewBox: "0 0 24 24",
|
|
16948
16938
|
width: size,
|
|
16949
16939
|
height: size,
|
|
16950
16940
|
"aria-hidden": "true"
|
|
16951
16941
|
}, props), {}, {
|
|
16952
|
-
children:
|
|
16953
|
-
cx: "12",
|
|
16954
|
-
cy: "12",
|
|
16955
|
-
r: "12",
|
|
16956
|
-
fill: "#f1f3ff"
|
|
16957
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
16942
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
16958
16943
|
fill: "#4e47e5",
|
|
16959
16944
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16960
16945
|
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"
|
|
@@ -16969,33 +16954,23 @@ var ConversionRateIcon = function ConversionRateIcon(_ref) {
|
|
|
16969
16954
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16970
16955
|
d: "M11.46,5.84h-3.35c.41-1.76,2.96-1.77,3.35,0Z"
|
|
16971
16956
|
})]
|
|
16972
|
-
})
|
|
16957
|
+
})
|
|
16973
16958
|
}));
|
|
16974
16959
|
};
|
|
16975
|
-
var conversionRateAvatarSx = {
|
|
16976
|
-
width: 30,
|
|
16977
|
-
height: 30,
|
|
16978
|
-
bgcolor: "transparent"
|
|
16979
|
-
};
|
|
16980
16960
|
|
|
16981
16961
|
var _excluded$5 = ["size"];
|
|
16982
16962
|
var NetRaisedIcon = function NetRaisedIcon(_ref) {
|
|
16983
16963
|
var _ref$size = _ref.size,
|
|
16984
16964
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
16985
16965
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
16986
|
-
return /*#__PURE__*/jsxRuntime.
|
|
16966
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
16987
16967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16988
16968
|
viewBox: "0 0 24 24",
|
|
16989
16969
|
width: size,
|
|
16990
16970
|
height: size,
|
|
16991
16971
|
"aria-hidden": "true"
|
|
16992
16972
|
}, props), {}, {
|
|
16993
|
-
children:
|
|
16994
|
-
cx: "12",
|
|
16995
|
-
cy: "12",
|
|
16996
|
-
r: "12",
|
|
16997
|
-
fill: "#f1f3ff"
|
|
16998
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
16973
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
16999
16974
|
fill: "#4e47e5",
|
|
17000
16975
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
17001
16976
|
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"
|
|
@@ -17012,14 +16987,9 @@ var NetRaisedIcon = function NetRaisedIcon(_ref) {
|
|
|
17012
16987
|
}), /*#__PURE__*/jsxRuntime.jsx("polygon", {
|
|
17013
16988
|
points: "6.1 15.16 6.1 16.74 4.81 16.19 4.81 15.16"
|
|
17014
16989
|
})]
|
|
17015
|
-
})
|
|
16990
|
+
})
|
|
17016
16991
|
}));
|
|
17017
16992
|
};
|
|
17018
|
-
var netRaisedAvatarSx = {
|
|
17019
|
-
width: 30,
|
|
17020
|
-
height: 30,
|
|
17021
|
-
bgcolor: "transparent"
|
|
17022
|
-
};
|
|
17023
16993
|
|
|
17024
16994
|
var CARD_BORDER = "1.5px solid #F1F1F5";
|
|
17025
16995
|
var PANEL_BORDER = "1px solid #f0f0f0";
|
|
@@ -17667,7 +17637,7 @@ var EmailSectionSkeleton = function EmailSectionSkeleton() {
|
|
|
17667
17637
|
};
|
|
17668
17638
|
|
|
17669
17639
|
var OverallSection = function OverallSection(_ref) {
|
|
17670
|
-
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$
|
|
17640
|
+
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;
|
|
17671
17641
|
var _ref$apiData = _ref.apiData,
|
|
17672
17642
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
|
|
17673
17643
|
primaryCharts = _ref.primaryCharts,
|
|
@@ -17747,7 +17717,6 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17747
17717
|
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 "),
|
|
17748
17718
|
label: "Net Raised",
|
|
17749
17719
|
icon: /*#__PURE__*/jsxRuntime.jsx(NetRaisedIcon, {}),
|
|
17750
|
-
avatarSx: netRaisedAvatarSx,
|
|
17751
17720
|
money: true,
|
|
17752
17721
|
error: false,
|
|
17753
17722
|
warning: false
|
|
@@ -17766,14 +17735,13 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17766
17735
|
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 "),
|
|
17767
17736
|
label: "Average Donation Amount",
|
|
17768
17737
|
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
17769
|
-
avatarSx: avgDonationAvatarSx,
|
|
17770
17738
|
money: true,
|
|
17771
17739
|
error: false,
|
|
17772
17740
|
warning: false
|
|
17773
17741
|
},
|
|
17774
17742
|
"ROAS": {
|
|
17775
|
-
value: "".concat(formatNumber(((_apiData$
|
|
17776
|
-
subValue: "".concat(Number((_apiData$
|
|
17743
|
+
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"),
|
|
17744
|
+
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"),
|
|
17777
17745
|
label: "ROAS",
|
|
17778
17746
|
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.TrendingUp, {}),
|
|
17779
17747
|
money: false,
|
|
@@ -17781,11 +17749,10 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17781
17749
|
warning: false
|
|
17782
17750
|
},
|
|
17783
17751
|
"Conversion": {
|
|
17784
|
-
value: "".concat(formatNumber(((_apiData$
|
|
17785
|
-
subValue: "".concat(((_apiData$
|
|
17752
|
+
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)), "%"),
|
|
17753
|
+
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%",
|
|
17786
17754
|
label: "Conversion Rate",
|
|
17787
17755
|
icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
|
|
17788
|
-
avatarSx: conversionRateAvatarSx,
|
|
17789
17756
|
money: false,
|
|
17790
17757
|
error: false,
|
|
17791
17758
|
warning: false
|
|
@@ -17817,8 +17784,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17817
17784
|
newDonorsPerc = totalDonorsMix > 0 ? Math.round(newDonorsCount / totalDonorsMix * 100) : 0;
|
|
17818
17785
|
returningDonorsPerc = totalDonorsMix > 0 ? Math.round(returningDonorsCount / totalDonorsMix * 100) : 0;
|
|
17819
17786
|
}
|
|
17820
|
-
var avgGift = Number(((_apiData$
|
|
17821
|
-
var donorMixPrev = Number(((_apiData$
|
|
17787
|
+
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));
|
|
17788
|
+
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));
|
|
17822
17789
|
var renderCard = function renderCard(title) {
|
|
17823
17790
|
return /*#__PURE__*/jsxRuntime.jsx(MetricCard$1
|
|
17824
17791
|
// key={title}
|
|
@@ -17827,7 +17794,6 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17827
17794
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
17828
17795
|
caption: metricInfo[title].subValue,
|
|
17829
17796
|
icon: metricInfo[title].icon,
|
|
17830
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
17831
17797
|
error: metricInfo[title].error,
|
|
17832
17798
|
active: activeMetric === title,
|
|
17833
17799
|
onClick: function onClick() {
|
|
@@ -17905,8 +17871,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17905
17871
|
};
|
|
17906
17872
|
};
|
|
17907
17873
|
if (activeMetric === "Total Raised") {
|
|
17908
|
-
var _apiData$
|
|
17909
|
-
var stackedData = apiData === null || apiData === void 0 || (_apiData$
|
|
17874
|
+
var _apiData$overviewStat26;
|
|
17875
|
+
var stackedData = apiData === null || apiData === void 0 || (_apiData$overviewStat26 = apiData.overviewStats) === null || _apiData$overviewStat26 === void 0 ? void 0 : _apiData$overviewStat26.totalRaised;
|
|
17910
17876
|
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);
|
|
17911
17877
|
if (hasStackedData) {
|
|
17912
17878
|
var _buildStackedSeries = buildStackedSeries(stackedData),
|
|
@@ -17929,8 +17895,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17929
17895
|
}
|
|
17930
17896
|
}
|
|
17931
17897
|
if (activeMetric === "Net Raised") {
|
|
17932
|
-
var _apiData$
|
|
17933
|
-
var netData = apiData === null || apiData === void 0 || (_apiData$
|
|
17898
|
+
var _apiData$overviewStat27;
|
|
17899
|
+
var netData = apiData === null || apiData === void 0 || (_apiData$overviewStat27 = apiData.overviewStats) === null || _apiData$overviewStat27 === void 0 ? void 0 : _apiData$overviewStat27.netRaised;
|
|
17934
17900
|
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);
|
|
17935
17901
|
if (_hasStackedData) {
|
|
17936
17902
|
var _buildStackedSeries2 = buildStackedSeries(netData),
|
|
@@ -17961,8 +17927,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17961
17927
|
}
|
|
17962
17928
|
}
|
|
17963
17929
|
if (activeMetric === "Total Donors") {
|
|
17964
|
-
var _apiData$
|
|
17965
|
-
var donorsData = apiData === null || apiData === void 0 || (_apiData$
|
|
17930
|
+
var _apiData$overviewStat28;
|
|
17931
|
+
var donorsData = apiData === null || apiData === void 0 || (_apiData$overviewStat28 = apiData.overviewStats) === null || _apiData$overviewStat28 === void 0 ? void 0 : _apiData$overviewStat28.totalDonations;
|
|
17966
17932
|
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);
|
|
17967
17933
|
if (_hasStackedData2) {
|
|
17968
17934
|
var _buildStackedSeries3 = buildStackedSeries(donorsData),
|
|
@@ -17993,7 +17959,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
17993
17959
|
}
|
|
17994
17960
|
}
|
|
17995
17961
|
if (activeMetric === "ROAS") {
|
|
17996
|
-
var
|
|
17962
|
+
var _apiData$overviewStat29;
|
|
17963
|
+
var roasData = apiData === null || apiData === void 0 || (_apiData$overviewStat29 = apiData.overviewStats) === null || _apiData$overviewStat29 === void 0 ? void 0 : _apiData$overviewStat29.roas;
|
|
17997
17964
|
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);
|
|
17998
17965
|
if (_hasStackedData3) {
|
|
17999
17966
|
var _buildStackedSeries4 = buildStackedSeries(roasData),
|
|
@@ -18024,8 +17991,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
18024
17991
|
}
|
|
18025
17992
|
}
|
|
18026
17993
|
if (activeMetric === "Conversion") {
|
|
18027
|
-
var _apiData$
|
|
18028
|
-
var conversionData = apiData === null || apiData === void 0 || (_apiData$
|
|
17994
|
+
var _apiData$overviewStat30;
|
|
17995
|
+
var conversionData = apiData === null || apiData === void 0 || (_apiData$overviewStat30 = apiData.overviewStats) === null || _apiData$overviewStat30 === void 0 ? void 0 : _apiData$overviewStat30.conversionRate;
|
|
18029
17996
|
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);
|
|
18030
17997
|
if (_hasStackedData4) {
|
|
18031
17998
|
var _buildStackedSeries5 = buildStackedSeries(conversionData),
|
|
@@ -18056,8 +18023,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
18056
18023
|
}
|
|
18057
18024
|
}
|
|
18058
18025
|
if (activeMetric === "Avg Donation") {
|
|
18059
|
-
var _apiData$
|
|
18060
|
-
var avgData = apiData === null || apiData === void 0 || (_apiData$
|
|
18026
|
+
var _apiData$overviewStat31;
|
|
18027
|
+
var avgData = apiData === null || apiData === void 0 || (_apiData$overviewStat31 = apiData.overviewStats) === null || _apiData$overviewStat31 === void 0 ? void 0 : _apiData$overviewStat31.avgDonations;
|
|
18061
18028
|
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);
|
|
18062
18029
|
if (_hasStackedData5) {
|
|
18063
18030
|
var _buildStackedSeries6 = buildStackedSeries(avgData),
|
|
@@ -18246,8 +18213,38 @@ var mapChannelTrend = function mapChannelTrend(trend) {
|
|
|
18246
18213
|
var getRoasColor = function getRoasColor(roas) {
|
|
18247
18214
|
return Number(roas !== null && roas !== void 0 ? roas : 0) >= 2.5 ? "#22C55E" : "#EF4444";
|
|
18248
18215
|
};
|
|
18216
|
+
var getCampaignInitials$1 = function getCampaignInitials() {
|
|
18217
|
+
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
18218
|
+
var words = name.trim().split(/\s+/).filter(Boolean);
|
|
18219
|
+
if (words.length >= 2) {
|
|
18220
|
+
return (words[0][0] + words[1][0]).toUpperCase();
|
|
18221
|
+
}
|
|
18222
|
+
return name.slice(0, 2).toUpperCase() || "—";
|
|
18223
|
+
};
|
|
18224
|
+
var buildEmptySpendAllocation = function buildEmptySpendAllocation() {
|
|
18225
|
+
var channels = Object.keys(CHANNEL_STYLES);
|
|
18226
|
+
return {
|
|
18227
|
+
series: channels.map(function () {
|
|
18228
|
+
return 0;
|
|
18229
|
+
}),
|
|
18230
|
+
labels: channels,
|
|
18231
|
+
colors: channels.map(function (channel) {
|
|
18232
|
+
return CHANNEL_STYLES[channel].color;
|
|
18233
|
+
}),
|
|
18234
|
+
centerLabel: "total spend",
|
|
18235
|
+
centerValue: "$".concat(formatNumber(0)),
|
|
18236
|
+
subtitle: "Where $".concat(formatNumber(0), " went"),
|
|
18237
|
+
items: channels.map(function (channel) {
|
|
18238
|
+
return {
|
|
18239
|
+
label: channel,
|
|
18240
|
+
val: "0.0%",
|
|
18241
|
+
color: CHANNEL_STYLES[channel].color
|
|
18242
|
+
};
|
|
18243
|
+
})
|
|
18244
|
+
};
|
|
18245
|
+
};
|
|
18249
18246
|
var PaidSection = function PaidSection(_ref) {
|
|
18250
|
-
var _apiData$spendVsReven, _apiData$spendVsReven2, _selectedInfo$categor, _spendAllocation$subt, _spendAllocation$seri, _spendAllocation$labe, _spendAllocation$colo, _spendAllocation$cent, _spendAllocation$cent2, _spendAllocation$item;
|
|
18247
|
+
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;
|
|
18251
18248
|
var _ref$apiData = _ref.apiData,
|
|
18252
18249
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData;
|
|
18253
18250
|
_ref.dateName;
|
|
@@ -18259,8 +18256,25 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18259
18256
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18260
18257
|
activeMetric = _useState2[0],
|
|
18261
18258
|
setActiveMetric = _useState2[1];
|
|
18262
|
-
var
|
|
18263
|
-
var
|
|
18259
|
+
var rawOverview = (apiData === null || apiData === void 0 ? void 0 : apiData.overview) || {};
|
|
18260
|
+
var metaSummary = (apiData === null || apiData === void 0 ? void 0 : apiData.metaSummary) || {};
|
|
18261
|
+
var overview = {
|
|
18262
|
+
totalSpent: (_ref2 = (_rawOverview$totalSpe = rawOverview.totalSpent) !== null && _rawOverview$totalSpe !== void 0 ? _rawOverview$totalSpe : metaSummary.metaSpend) !== null && _ref2 !== void 0 ? _ref2 : 0,
|
|
18263
|
+
totalRevenue: (_ref3 = (_rawOverview$totalRev = rawOverview.totalRevenue) !== null && _rawOverview$totalRev !== void 0 ? _rawOverview$totalRev : metaSummary.attributedAmount) !== null && _ref3 !== void 0 ? _ref3 : 0,
|
|
18264
|
+
roas: (_ref4 = (_rawOverview$roas = rawOverview.roas) !== null && _rawOverview$roas !== void 0 ? _rawOverview$roas : metaSummary.roas) !== null && _ref4 !== void 0 ? _ref4 : 0,
|
|
18265
|
+
costPerDonor: (_ref5 = (_rawOverview$costPerD = rawOverview.costPerDonor) !== null && _rawOverview$costPerD !== void 0 ? _rawOverview$costPerD : metaSummary.cpa) !== null && _ref5 !== void 0 ? _ref5 : 0,
|
|
18266
|
+
conversionRate: (_rawOverview$conversi = rawOverview.conversionRate) !== null && _rawOverview$conversi !== void 0 ? _rawOverview$conversi : 0,
|
|
18267
|
+
averageDonation: (_ref6 = (_rawOverview$averageD = rawOverview.averageDonation) !== null && _rawOverview$averageD !== void 0 ? _rawOverview$averageD : metaSummary.averageGift) !== null && _ref6 !== void 0 ? _ref6 : 0,
|
|
18268
|
+
totalDonations: (_ref7 = (_rawOverview$totalDon = rawOverview.totalDonations) !== null && _rawOverview$totalDon !== void 0 ? _rawOverview$totalDon : metaSummary.donationsCount) !== null && _ref7 !== void 0 ? _ref7 : 0
|
|
18269
|
+
};
|
|
18270
|
+
var growth = {
|
|
18271
|
+
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,
|
|
18272
|
+
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,
|
|
18273
|
+
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,
|
|
18274
|
+
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,
|
|
18275
|
+
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,
|
|
18276
|
+
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
|
|
18277
|
+
};
|
|
18264
18278
|
var hasPaidOverview = Boolean(apiData === null || apiData === void 0 ? void 0 : apiData.overview);
|
|
18265
18279
|
var spendSeries = mapTimeSeries$2(apiData === null || apiData === void 0 || (_apiData$spendVsReven = apiData.spendVsRevenue) === null || _apiData$spendVsReven === void 0 ? void 0 : _apiData$spendVsReven.spend);
|
|
18266
18280
|
var revenueSeries = mapTimeSeries$2(apiData === null || apiData === void 0 || (_apiData$spendVsReven2 = apiData.spendVsRevenue) === null || _apiData$spendVsReven2 === void 0 ? void 0 : _apiData$spendVsReven2.revenue);
|
|
@@ -18285,7 +18299,6 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18285
18299
|
}) : [Number(value !== null && value !== void 0 ? value : 0)];
|
|
18286
18300
|
};
|
|
18287
18301
|
var metricInfo = React.useMemo(function () {
|
|
18288
|
-
var _overview$totalSpent, _overview$totalRevenu, _overview$roas, _overview$roas2, _overview$costPerDono, _overview$costPerDono2, _overview$conversionR, _overview$conversionR2, _overview$averageDona, _overview$averageDona2;
|
|
18289
18302
|
if (!hasPaidOverview) {
|
|
18290
18303
|
return {
|
|
18291
18304
|
"Total Spent": {
|
|
@@ -18334,7 +18347,6 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18334
18347
|
data: [2.8, 3.0, 2.9, 3.4, 3.2, 3.1, 3.1],
|
|
18335
18348
|
categories: fallbackCategories,
|
|
18336
18349
|
icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
|
|
18337
|
-
avatarSx: conversionRateAvatarSx,
|
|
18338
18350
|
money: false,
|
|
18339
18351
|
error: false,
|
|
18340
18352
|
warning: false
|
|
@@ -18345,72 +18357,70 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18345
18357
|
data: [120, 135, 125, 140, 130, 128, 130.58],
|
|
18346
18358
|
categories: fallbackCategories,
|
|
18347
18359
|
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
18348
|
-
avatarSx: avgDonationAvatarSx,
|
|
18349
18360
|
money: true,
|
|
18350
18361
|
error: false,
|
|
18351
18362
|
warning: false
|
|
18352
18363
|
}
|
|
18353
18364
|
};
|
|
18354
18365
|
}
|
|
18366
|
+
var chartCategories = spendSeries.categories.length > 0 ? spendSeries.categories : revenueSeries.categories.length > 0 ? revenueSeries.categories : fallbackCategories;
|
|
18355
18367
|
return {
|
|
18356
18368
|
"Total Spent": {
|
|
18357
|
-
value: "$".concat(formatNumber(
|
|
18369
|
+
value: "$".concat(formatNumber(overview.totalSpent)),
|
|
18358
18370
|
subValue: formatGrowth$2(growth.totalSpent),
|
|
18359
|
-
data: spendSeries.data,
|
|
18360
|
-
categories:
|
|
18371
|
+
data: spendSeries.data.length > 0 ? spendSeries.data : flatSeries(0),
|
|
18372
|
+
categories: chartCategories,
|
|
18361
18373
|
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.IndeterminateCheckBoxOutlined, {}),
|
|
18362
18374
|
money: true,
|
|
18363
18375
|
error: false,
|
|
18364
18376
|
warning: false
|
|
18365
18377
|
},
|
|
18366
18378
|
"Revinue Raised": {
|
|
18367
|
-
value: "$".concat(formatNumber(
|
|
18379
|
+
value: "$".concat(formatNumber(overview.totalRevenue)),
|
|
18368
18380
|
subValue: formatGrowth$2(growth.totalRevenue),
|
|
18369
|
-
data: revenueSeries.data,
|
|
18370
|
-
categories:
|
|
18381
|
+
data: revenueSeries.data.length > 0 ? revenueSeries.data : flatSeries(0),
|
|
18382
|
+
categories: chartCategories,
|
|
18371
18383
|
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
|
|
18372
18384
|
money: true,
|
|
18373
18385
|
error: false,
|
|
18374
18386
|
warning: false
|
|
18375
18387
|
},
|
|
18376
18388
|
ROAS: {
|
|
18377
|
-
value: "".concat(Number(
|
|
18389
|
+
value: "".concat(Number(overview.roas).toFixed(1), "x"),
|
|
18378
18390
|
subValue: formatGrowth$2(growth.roas),
|
|
18379
|
-
data: roasChartData.length > 0 ? roasChartData : flatSeries(
|
|
18380
|
-
categories:
|
|
18391
|
+
data: roasChartData.length > 0 ? roasChartData : flatSeries(0),
|
|
18392
|
+
categories: chartCategories,
|
|
18381
18393
|
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.TrendingUp, {}),
|
|
18382
18394
|
money: false,
|
|
18383
18395
|
error: false,
|
|
18384
18396
|
warning: false
|
|
18385
18397
|
},
|
|
18386
18398
|
"Cost Per Donor": {
|
|
18387
|
-
value: "$".concat(formatNumber(
|
|
18399
|
+
value: "$".concat(formatNumber(overview.costPerDonor)),
|
|
18388
18400
|
subValue: formatGrowth$2(growth.costPerDonor),
|
|
18389
|
-
data: flatSeries(
|
|
18390
|
-
categories:
|
|
18401
|
+
data: flatSeries(overview.costPerDonor),
|
|
18402
|
+
categories: chartCategories,
|
|
18391
18403
|
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PersonOutlined, {}),
|
|
18392
18404
|
money: true,
|
|
18393
18405
|
error: false,
|
|
18394
18406
|
warning: false
|
|
18395
18407
|
},
|
|
18396
18408
|
"Conversion Rate": {
|
|
18397
|
-
value: "".concat(Number(
|
|
18409
|
+
value: "".concat(Number(overview.conversionRate).toFixed(2), "%"),
|
|
18398
18410
|
subValue: formatGrowth$2(growth.conversionRate),
|
|
18399
|
-
data: flatSeries(
|
|
18400
|
-
categories:
|
|
18411
|
+
data: flatSeries(overview.conversionRate),
|
|
18412
|
+
categories: chartCategories,
|
|
18401
18413
|
icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
|
|
18402
|
-
avatarSx: conversionRateAvatarSx,
|
|
18403
18414
|
money: false,
|
|
18404
18415
|
error: false,
|
|
18405
18416
|
warning: false
|
|
18406
18417
|
},
|
|
18407
18418
|
"Avg Donation": {
|
|
18408
|
-
value: "$".concat(formatNumber(
|
|
18419
|
+
value: "$".concat(formatNumber(overview.averageDonation)),
|
|
18409
18420
|
subValue: formatGrowth$2(growth.averageDonation),
|
|
18410
|
-
data: flatSeries(
|
|
18411
|
-
categories:
|
|
18421
|
+
data: flatSeries(overview.averageDonation),
|
|
18422
|
+
categories: chartCategories,
|
|
18412
18423
|
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
18413
|
-
avatarSx: avgDonationAvatarSx,
|
|
18414
18424
|
money: true,
|
|
18415
18425
|
error: false,
|
|
18416
18426
|
warning: false
|
|
@@ -18443,7 +18453,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18443
18453
|
var allocation = apiData === null || apiData === void 0 ? void 0 : apiData.spendAllocation;
|
|
18444
18454
|
if (!hasPaidOverview) return null;
|
|
18445
18455
|
if (!allocation || !Array.isArray(allocation.data) || allocation.data.length === 0) {
|
|
18446
|
-
return
|
|
18456
|
+
return buildEmptySpendAllocation();
|
|
18447
18457
|
}
|
|
18448
18458
|
var items = allocation.data.map(function (item) {
|
|
18449
18459
|
var _item$percentage, _item$spend2, _item$percentage2;
|
|
@@ -18469,10 +18479,10 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18469
18479
|
centerLabel: "total spend",
|
|
18470
18480
|
centerValue: "$".concat(formatNumber((_allocation$totalSpen = allocation.totalSpend) !== null && _allocation$totalSpen !== void 0 ? _allocation$totalSpen : 0)),
|
|
18471
18481
|
subtitle: "Where $".concat(formatNumber((_allocation$totalSpen2 = allocation.totalSpend) !== null && _allocation$totalSpen2 !== void 0 ? _allocation$totalSpen2 : 0), " went"),
|
|
18472
|
-
items: items.map(function (
|
|
18473
|
-
var label =
|
|
18474
|
-
val =
|
|
18475
|
-
color =
|
|
18482
|
+
items: items.map(function (_ref1) {
|
|
18483
|
+
var label = _ref1.label,
|
|
18484
|
+
val = _ref1.val,
|
|
18485
|
+
color = _ref1.color;
|
|
18476
18486
|
return {
|
|
18477
18487
|
label: label,
|
|
18478
18488
|
val: val,
|
|
@@ -18484,12 +18494,14 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18484
18494
|
var topCampaignsData = React.useMemo(function () {
|
|
18485
18495
|
var campaigns = apiData === null || apiData === void 0 ? void 0 : apiData.topCampaigns;
|
|
18486
18496
|
if (!hasPaidOverview) return null;
|
|
18487
|
-
if (!Array.isArray(campaigns)) return
|
|
18497
|
+
if (!Array.isArray(campaigns)) return [];
|
|
18488
18498
|
if (campaigns.length === 0) return [];
|
|
18489
18499
|
return campaigns.map(function (item) {
|
|
18490
18500
|
var _item$spend3, _item$revenue2, _item$roas2;
|
|
18501
|
+
var name = item.campaignName || item.campaign || item.name || "Unknown";
|
|
18491
18502
|
return {
|
|
18492
|
-
|
|
18503
|
+
id: getCampaignInitials$1(name),
|
|
18504
|
+
name: name,
|
|
18493
18505
|
spend: "$".concat(formatNumber((_item$spend3 = item.spend) !== null && _item$spend3 !== void 0 ? _item$spend3 : 0)),
|
|
18494
18506
|
revenue: "$".concat(formatNumber((_item$revenue2 = item.revenue) !== null && _item$revenue2 !== void 0 ? _item$revenue2 : 0)),
|
|
18495
18507
|
roas: "".concat(Number((_item$roas2 = item.roas) !== null && _item$roas2 !== void 0 ? _item$roas2 : 0).toFixed(1), "x")
|
|
@@ -18502,7 +18514,6 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18502
18514
|
value: metricInfo[title].value,
|
|
18503
18515
|
caption: metricInfo[title].subValue,
|
|
18504
18516
|
icon: metricInfo[title].icon,
|
|
18505
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
18506
18517
|
error: metricInfo[title].error,
|
|
18507
18518
|
active: activeMetric === title,
|
|
18508
18519
|
onClick: function onClick() {
|
|
@@ -18515,6 +18526,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18515
18526
|
});
|
|
18516
18527
|
};
|
|
18517
18528
|
var selectedInfo = metricInfo[activeMetric] || metricInfo["Total Spent"];
|
|
18529
|
+
var emptySpendAllocation = buildEmptySpendAllocation();
|
|
18518
18530
|
var chartCategories = ((_selectedInfo$categor = selectedInfo.categories) === null || _selectedInfo$categor === void 0 ? void 0 : _selectedInfo$categor.length) > 0 ? selectedInfo.categories : fallbackCategories;
|
|
18519
18531
|
var mainChart = {
|
|
18520
18532
|
label: activeMetric,
|
|
@@ -18578,7 +18590,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18578
18590
|
columns: ["Channel", "Ppend", "Revenue", "ROAS", "CPA", "Trend"],
|
|
18579
18591
|
gridTemplateColumns: "2.2fr 1fr 1fr 0.8fr 0.8fr 1.2fr",
|
|
18580
18592
|
height: "100%",
|
|
18581
|
-
rows: channelRows !== null && channelRows !== void 0 ? channelRows : [{
|
|
18593
|
+
rows: channelRows !== null && channelRows !== void 0 ? channelRows : hasPaidOverview ? [] : [{
|
|
18582
18594
|
id: "M",
|
|
18583
18595
|
avatarBg: "#4267B2",
|
|
18584
18596
|
name: "Meta Ads",
|
|
@@ -18659,13 +18671,13 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18659
18671
|
},
|
|
18660
18672
|
children: /*#__PURE__*/jsxRuntime.jsx(DonorMixCard, {
|
|
18661
18673
|
title: "Spend Allocation",
|
|
18662
|
-
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",
|
|
18663
|
-
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],
|
|
18664
|
-
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"],
|
|
18665
|
-
colors: (_spendAllocation$colo = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.colors) !== null && _spendAllocation$colo !== void 0 ? _spendAllocation$colo : ["#4267B2", "#4285F4", "#cd249dff", "#FF0000", "#FFFC00"],
|
|
18674
|
+
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",
|
|
18675
|
+
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],
|
|
18676
|
+
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"],
|
|
18677
|
+
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"],
|
|
18666
18678
|
centerLabel: (_spendAllocation$cent = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.centerLabel) !== null && _spendAllocation$cent !== void 0 ? _spendAllocation$cent : "total spend",
|
|
18667
|
-
centerValue: (_spendAllocation$cent2 = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.centerValue) !== null && _spendAllocation$cent2 !== void 0 ? _spendAllocation$cent2 : "$80.3K",
|
|
18668
|
-
items: (_spendAllocation$item = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.items) !== null && _spendAllocation$item !== void 0 ? _spendAllocation$item : [{
|
|
18679
|
+
centerValue: (_spendAllocation$cent2 = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.centerValue) !== null && _spendAllocation$cent2 !== void 0 ? _spendAllocation$cent2 : hasPaidOverview ? emptySpendAllocation.centerValue : "$80.3K",
|
|
18680
|
+
items: (_spendAllocation$item = spendAllocation === null || spendAllocation === void 0 ? void 0 : spendAllocation.items) !== null && _spendAllocation$item !== void 0 ? _spendAllocation$item : hasPaidOverview ? emptySpendAllocation.items : [{
|
|
18669
18681
|
label: "Meta Ads",
|
|
18670
18682
|
val: "40.8%",
|
|
18671
18683
|
color: "#4267B2"
|
|
@@ -18707,7 +18719,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18707
18719
|
paddingTop: "0px !important"
|
|
18708
18720
|
},
|
|
18709
18721
|
children: /*#__PURE__*/jsxRuntime.jsx(TopPerformingCampaignsCard, {
|
|
18710
|
-
data: topCampaignsData
|
|
18722
|
+
data: topCampaignsData !== null && topCampaignsData !== void 0 ? topCampaignsData : hasPaidOverview ? [] : null
|
|
18711
18723
|
})
|
|
18712
18724
|
}), /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
|
|
18713
18725
|
item: true,
|
|
@@ -18819,7 +18831,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18819
18831
|
data: [2.5, 2.7, 2.6, 3.1, 3.0, 2.9, 3.1],
|
|
18820
18832
|
categories: fallbackCategories,
|
|
18821
18833
|
icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
|
|
18822
|
-
avatarSx: conversionRateAvatarSx,
|
|
18823
18834
|
money: false,
|
|
18824
18835
|
warning: false,
|
|
18825
18836
|
error: false
|
|
@@ -18840,7 +18851,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18840
18851
|
data: [110, 125, 120, 135, 130, 128, 130.58],
|
|
18841
18852
|
categories: fallbackCategories,
|
|
18842
18853
|
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
18843
|
-
avatarSx: avgDonationAvatarSx,
|
|
18844
18854
|
money: true,
|
|
18845
18855
|
warning: false,
|
|
18846
18856
|
error: false
|
|
@@ -18894,7 +18904,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18894
18904
|
data: conversionSeries.data,
|
|
18895
18905
|
categories: conversionSeries.categories,
|
|
18896
18906
|
icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
|
|
18897
|
-
avatarSx: conversionRateAvatarSx,
|
|
18898
18907
|
money: false,
|
|
18899
18908
|
warning: false,
|
|
18900
18909
|
error: false
|
|
@@ -18915,7 +18924,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18915
18924
|
data: avgDonationSeries.data,
|
|
18916
18925
|
categories: avgDonationSeries.categories,
|
|
18917
18926
|
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
18918
|
-
avatarSx: avgDonationAvatarSx,
|
|
18919
18927
|
money: true,
|
|
18920
18928
|
warning: false,
|
|
18921
18929
|
error: false
|
|
@@ -19004,7 +19012,6 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
19004
19012
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
19005
19013
|
caption: metricInfo[title].subValue,
|
|
19006
19014
|
icon: metricInfo[title].icon,
|
|
19007
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
19008
19015
|
error: metricInfo[title].error,
|
|
19009
19016
|
active: activeMetric === title,
|
|
19010
19017
|
onClick: function onClick() {
|
|
@@ -19443,48 +19450,33 @@ var ClicksIcon = function ClicksIcon(_ref) {
|
|
|
19443
19450
|
var _ref$size = _ref.size,
|
|
19444
19451
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19445
19452
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
19446
|
-
return /*#__PURE__*/jsxRuntime.
|
|
19453
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
19447
19454
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19448
19455
|
viewBox: "0 0 24 24",
|
|
19449
19456
|
width: size,
|
|
19450
19457
|
height: size,
|
|
19451
19458
|
"aria-hidden": "true"
|
|
19452
19459
|
}, props), {}, {
|
|
19453
|
-
children:
|
|
19454
|
-
cx: "12",
|
|
19455
|
-
cy: "12",
|
|
19456
|
-
r: "12",
|
|
19457
|
-
fill: "#f1f3ff"
|
|
19458
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19460
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19459
19461
|
fill: "#4e47e5",
|
|
19460
19462
|
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"
|
|
19461
|
-
})
|
|
19463
|
+
})
|
|
19462
19464
|
}));
|
|
19463
19465
|
};
|
|
19464
|
-
var clicksAvatarSx = {
|
|
19465
|
-
width: 30,
|
|
19466
|
-
height: 30,
|
|
19467
|
-
bgcolor: "transparent"
|
|
19468
|
-
};
|
|
19469
19466
|
|
|
19470
19467
|
var _excluded$3 = ["size"];
|
|
19471
19468
|
var CtrIcon = function CtrIcon(_ref) {
|
|
19472
19469
|
var _ref$size = _ref.size,
|
|
19473
19470
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19474
19471
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
19475
|
-
return /*#__PURE__*/jsxRuntime.
|
|
19472
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
19476
19473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19477
19474
|
viewBox: "0 0 24 24",
|
|
19478
19475
|
width: size,
|
|
19479
19476
|
height: size,
|
|
19480
19477
|
"aria-hidden": "true"
|
|
19481
19478
|
}, props), {}, {
|
|
19482
|
-
children:
|
|
19483
|
-
cx: "12",
|
|
19484
|
-
cy: "12",
|
|
19485
|
-
r: "12",
|
|
19486
|
-
fill: "#f1f3ff"
|
|
19487
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19479
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19488
19480
|
fill: "#4e47e5",
|
|
19489
19481
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19490
19482
|
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"
|
|
@@ -19497,33 +19489,23 @@ var CtrIcon = function CtrIcon(_ref) {
|
|
|
19497
19489
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19498
19490
|
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"
|
|
19499
19491
|
})]
|
|
19500
|
-
})
|
|
19492
|
+
})
|
|
19501
19493
|
}));
|
|
19502
19494
|
};
|
|
19503
|
-
var ctrAvatarSx = {
|
|
19504
|
-
width: 30,
|
|
19505
|
-
height: 30,
|
|
19506
|
-
bgcolor: "transparent"
|
|
19507
|
-
};
|
|
19508
19495
|
|
|
19509
19496
|
var _excluded$2 = ["size"];
|
|
19510
19497
|
var RevenuePerClickIcon = function RevenuePerClickIcon(_ref) {
|
|
19511
19498
|
var _ref$size = _ref.size,
|
|
19512
19499
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19513
19500
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
19514
|
-
return /*#__PURE__*/jsxRuntime.
|
|
19501
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
19515
19502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19516
19503
|
viewBox: "0 0 24 24",
|
|
19517
19504
|
width: size,
|
|
19518
19505
|
height: size,
|
|
19519
19506
|
"aria-hidden": "true"
|
|
19520
19507
|
}, props), {}, {
|
|
19521
|
-
children:
|
|
19522
|
-
cx: "12",
|
|
19523
|
-
cy: "12",
|
|
19524
|
-
r: "12",
|
|
19525
|
-
fill: "#f1f3ff"
|
|
19526
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19508
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19527
19509
|
fill: "#4e47e5",
|
|
19528
19510
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19529
19511
|
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"
|
|
@@ -19532,33 +19514,23 @@ var RevenuePerClickIcon = function RevenuePerClickIcon(_ref) {
|
|
|
19532
19514
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19533
19515
|
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"
|
|
19534
19516
|
})]
|
|
19535
|
-
})
|
|
19517
|
+
})
|
|
19536
19518
|
}));
|
|
19537
19519
|
};
|
|
19538
|
-
var revenuePerClickAvatarSx = {
|
|
19539
|
-
width: 30,
|
|
19540
|
-
height: 30,
|
|
19541
|
-
bgcolor: "transparent"
|
|
19542
|
-
};
|
|
19543
19520
|
|
|
19544
19521
|
var _excluded$1 = ["size"];
|
|
19545
19522
|
var RevenuePerEmailIcon = function RevenuePerEmailIcon(_ref) {
|
|
19546
19523
|
var _ref$size = _ref.size,
|
|
19547
19524
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19548
19525
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
19549
|
-
return /*#__PURE__*/jsxRuntime.
|
|
19526
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
19550
19527
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19551
19528
|
viewBox: "0 0 24 24",
|
|
19552
19529
|
width: size,
|
|
19553
19530
|
height: size,
|
|
19554
19531
|
"aria-hidden": "true"
|
|
19555
19532
|
}, props), {}, {
|
|
19556
|
-
children:
|
|
19557
|
-
cx: "12",
|
|
19558
|
-
cy: "12",
|
|
19559
|
-
r: "12",
|
|
19560
|
-
fill: "#f1f3ff"
|
|
19561
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19533
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19562
19534
|
fill: "#4e47e5",
|
|
19563
19535
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19564
19536
|
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"
|
|
@@ -19573,33 +19545,23 @@ var RevenuePerEmailIcon = function RevenuePerEmailIcon(_ref) {
|
|
|
19573
19545
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19574
19546
|
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"
|
|
19575
19547
|
})]
|
|
19576
|
-
})
|
|
19548
|
+
})
|
|
19577
19549
|
}));
|
|
19578
19550
|
};
|
|
19579
|
-
var revenuePerEmailAvatarSx = {
|
|
19580
|
-
width: 30,
|
|
19581
|
-
height: 30,
|
|
19582
|
-
bgcolor: "transparent"
|
|
19583
|
-
};
|
|
19584
19551
|
|
|
19585
19552
|
var _excluded = ["size"];
|
|
19586
19553
|
var UniqueClicksIcon = function UniqueClicksIcon(_ref) {
|
|
19587
19554
|
var _ref$size = _ref.size,
|
|
19588
19555
|
size = _ref$size === void 0 ? 30 : _ref$size,
|
|
19589
19556
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19590
|
-
return /*#__PURE__*/jsxRuntime.
|
|
19557
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({
|
|
19591
19558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19592
19559
|
viewBox: "0 0 24 24",
|
|
19593
19560
|
width: size,
|
|
19594
19561
|
height: size,
|
|
19595
19562
|
"aria-hidden": "true"
|
|
19596
19563
|
}, props), {}, {
|
|
19597
|
-
children:
|
|
19598
|
-
cx: "12",
|
|
19599
|
-
cy: "12",
|
|
19600
|
-
r: "12",
|
|
19601
|
-
fill: "#f1f3ff"
|
|
19602
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19564
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
19603
19565
|
fill: "#4e47e5",
|
|
19604
19566
|
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19605
19567
|
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"
|
|
@@ -19608,14 +19570,9 @@ var UniqueClicksIcon = function UniqueClicksIcon(_ref) {
|
|
|
19608
19570
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
19609
19571
|
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"
|
|
19610
19572
|
})]
|
|
19611
|
-
})
|
|
19573
|
+
})
|
|
19612
19574
|
}));
|
|
19613
19575
|
};
|
|
19614
|
-
var uniqueClicksAvatarSx = {
|
|
19615
|
-
width: 30,
|
|
19616
|
-
height: 30,
|
|
19617
|
-
bgcolor: "transparent"
|
|
19618
|
-
};
|
|
19619
19576
|
|
|
19620
19577
|
var formatGrowth = function formatGrowth(value, dateName) {
|
|
19621
19578
|
return "".concat(Number(value !== null && value !== void 0 ? value : 0).toFixed(2), "% vs pp");
|
|
@@ -19710,7 +19667,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19710
19667
|
value: "3.2%",
|
|
19711
19668
|
subValue: "12% vs pp",
|
|
19712
19669
|
icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
|
|
19713
|
-
avatarSx: conversionRateAvatarSx,
|
|
19714
19670
|
money: false,
|
|
19715
19671
|
error: false,
|
|
19716
19672
|
warning: false
|
|
@@ -19719,7 +19675,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19719
19675
|
value: "8.1%",
|
|
19720
19676
|
subValue: "12% vs pp",
|
|
19721
19677
|
icon: /*#__PURE__*/jsxRuntime.jsx(CtrIcon, {}),
|
|
19722
|
-
avatarSx: ctrAvatarSx,
|
|
19723
19678
|
money: false,
|
|
19724
19679
|
error: false,
|
|
19725
19680
|
warning: false
|
|
@@ -19728,7 +19683,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19728
19683
|
value: "$".concat(formatNumber(2.45)),
|
|
19729
19684
|
subValue: "12% vs pp",
|
|
19730
19685
|
icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerEmailIcon, {}),
|
|
19731
|
-
avatarSx: revenuePerEmailAvatarSx,
|
|
19732
19686
|
money: true,
|
|
19733
19687
|
error: false,
|
|
19734
19688
|
warning: false
|
|
@@ -19745,7 +19699,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19745
19699
|
value: "1,612",
|
|
19746
19700
|
subValue: "12% vs pp",
|
|
19747
19701
|
icon: /*#__PURE__*/jsxRuntime.jsx(ClicksIcon, {}),
|
|
19748
|
-
avatarSx: clicksAvatarSx,
|
|
19749
19702
|
money: false,
|
|
19750
19703
|
error: false,
|
|
19751
19704
|
warning: false
|
|
@@ -19754,7 +19707,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19754
19707
|
value: formatNumber(1148),
|
|
19755
19708
|
subValue: "12% vs pp",
|
|
19756
19709
|
icon: /*#__PURE__*/jsxRuntime.jsx(UniqueClicksIcon, {}),
|
|
19757
|
-
avatarSx: uniqueClicksAvatarSx,
|
|
19758
19710
|
money: false,
|
|
19759
19711
|
error: false,
|
|
19760
19712
|
warning: false
|
|
@@ -19771,7 +19723,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19771
19723
|
value: "$".concat(formatNumber(30.35)),
|
|
19772
19724
|
subValue: "12% vs pp",
|
|
19773
19725
|
icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerClickIcon, {}),
|
|
19774
|
-
avatarSx: revenuePerClickAvatarSx,
|
|
19775
19726
|
money: true,
|
|
19776
19727
|
error: false,
|
|
19777
19728
|
warning: false
|
|
@@ -19799,7 +19750,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19799
19750
|
value: "".concat(Number((_overview$conversionR = overview.conversionRate) !== null && _overview$conversionR !== void 0 ? _overview$conversionR : 0).toFixed(2), "%"),
|
|
19800
19751
|
subValue: growthCaption("conversionRate"),
|
|
19801
19752
|
icon: /*#__PURE__*/jsxRuntime.jsx(ConversionRateIcon, {}),
|
|
19802
|
-
avatarSx: conversionRateAvatarSx,
|
|
19803
19753
|
money: false,
|
|
19804
19754
|
error: false,
|
|
19805
19755
|
warning: false
|
|
@@ -19808,7 +19758,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19808
19758
|
value: "".concat(Number((_overview$ctr = overview.ctr) !== null && _overview$ctr !== void 0 ? _overview$ctr : 0).toFixed(2), "%"),
|
|
19809
19759
|
subValue: growthCaption("ctr"),
|
|
19810
19760
|
icon: /*#__PURE__*/jsxRuntime.jsx(CtrIcon, {}),
|
|
19811
|
-
avatarSx: ctrAvatarSx,
|
|
19812
19761
|
money: false,
|
|
19813
19762
|
error: false,
|
|
19814
19763
|
warning: false
|
|
@@ -19817,7 +19766,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19817
19766
|
value: "$".concat(formatNumber((_overview$revenuePerE = overview.revenuePerEmail) !== null && _overview$revenuePerE !== void 0 ? _overview$revenuePerE : 0)),
|
|
19818
19767
|
subValue: growthCaption("revenuePerEmail"),
|
|
19819
19768
|
icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerEmailIcon, {}),
|
|
19820
|
-
avatarSx: revenuePerEmailAvatarSx,
|
|
19821
19769
|
money: true,
|
|
19822
19770
|
error: false,
|
|
19823
19771
|
warning: false
|
|
@@ -19834,7 +19782,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19834
19782
|
value: formatNumber((_deliverability$total = deliverability.totalClicks) !== null && _deliverability$total !== void 0 ? _deliverability$total : 0),
|
|
19835
19783
|
subValue: growthCaption("totalClicks", deliverabilityGrowth),
|
|
19836
19784
|
icon: /*#__PURE__*/jsxRuntime.jsx(ClicksIcon, {}),
|
|
19837
|
-
avatarSx: clicksAvatarSx,
|
|
19838
19785
|
money: false,
|
|
19839
19786
|
error: false,
|
|
19840
19787
|
warning: false
|
|
@@ -19843,7 +19790,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19843
19790
|
value: formatNumber((_deliverability$uniqu = deliverability.uniqueClicks) !== null && _deliverability$uniqu !== void 0 ? _deliverability$uniqu : 0),
|
|
19844
19791
|
subValue: growthCaption("uniqueClicks", deliverabilityGrowth),
|
|
19845
19792
|
icon: /*#__PURE__*/jsxRuntime.jsx(UniqueClicksIcon, {}),
|
|
19846
|
-
avatarSx: uniqueClicksAvatarSx,
|
|
19847
19793
|
money: false,
|
|
19848
19794
|
error: false,
|
|
19849
19795
|
warning: false
|
|
@@ -19860,7 +19806,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19860
19806
|
value: "$".concat(formatNumber((_deliverability$reven = deliverability.revenuePerClick) !== null && _deliverability$reven !== void 0 ? _deliverability$reven : 0)),
|
|
19861
19807
|
subValue: growthCaption("revenuePerClick", deliverabilityGrowth),
|
|
19862
19808
|
icon: /*#__PURE__*/jsxRuntime.jsx(RevenuePerClickIcon, {}),
|
|
19863
|
-
avatarSx: revenuePerClickAvatarSx,
|
|
19864
19809
|
money: true,
|
|
19865
19810
|
error: false,
|
|
19866
19811
|
warning: false
|
|
@@ -19912,7 +19857,6 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19912
19857
|
value: metricInfo[title].value,
|
|
19913
19858
|
caption: metricInfo[title].subValue,
|
|
19914
19859
|
icon: metricInfo[title].icon,
|
|
19915
|
-
avatarSx: metricInfo[title].avatarSx,
|
|
19916
19860
|
error: metricInfo[title].error,
|
|
19917
19861
|
active: activeMetric === title,
|
|
19918
19862
|
onClick: function onClick() {
|