@ammarkhalidfarooq/dashboard-package 0.3.30 → 0.3.32
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 +1005 -273
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1005 -273
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -830,7 +830,7 @@ var CardWrapper = function CardWrapper(_ref) {
|
|
|
830
830
|
sx: {
|
|
831
831
|
display: "flex",
|
|
832
832
|
flexDirection: "column",
|
|
833
|
-
gap:
|
|
833
|
+
gap: 1
|
|
834
834
|
},
|
|
835
835
|
children: children
|
|
836
836
|
})]
|
|
@@ -899,7 +899,7 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
899
899
|
fontSize: "12px",
|
|
900
900
|
color: "rgba(0, 0, 0, 0.4)",
|
|
901
901
|
fontWeight: 500,
|
|
902
|
-
textAlign: "
|
|
902
|
+
textAlign: "left"
|
|
903
903
|
},
|
|
904
904
|
children: "Visitors"
|
|
905
905
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -907,7 +907,7 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
907
907
|
fontSize: "12px",
|
|
908
908
|
color: "rgba(0, 0, 0, 0.4)",
|
|
909
909
|
fontWeight: 500,
|
|
910
|
-
textAlign: "
|
|
910
|
+
textAlign: "left"
|
|
911
911
|
},
|
|
912
912
|
children: "Donations"
|
|
913
913
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -915,7 +915,7 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
915
915
|
fontSize: "12px",
|
|
916
916
|
color: "rgba(0, 0, 0, 0.4)",
|
|
917
917
|
fontWeight: 500,
|
|
918
|
-
textAlign: "
|
|
918
|
+
textAlign: "left"
|
|
919
919
|
},
|
|
920
920
|
children: "Revenue"
|
|
921
921
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -923,7 +923,8 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
923
923
|
fontSize: "12px",
|
|
924
924
|
color: "rgba(0, 0, 0, 0.4)",
|
|
925
925
|
fontWeight: 500,
|
|
926
|
-
textAlign: "
|
|
926
|
+
textAlign: "left",
|
|
927
|
+
whiteSpace: "nowrap"
|
|
927
928
|
},
|
|
928
929
|
children: "Conv. rate"
|
|
929
930
|
})]
|
|
@@ -950,7 +951,7 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
950
951
|
fontSize: "13px",
|
|
951
952
|
color: "rgba(0, 0, 0, 0.6)",
|
|
952
953
|
fontWeight: 500,
|
|
953
|
-
textAlign: "
|
|
954
|
+
textAlign: "left"
|
|
954
955
|
},
|
|
955
956
|
children: item.visitors
|
|
956
957
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -958,7 +959,7 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
958
959
|
fontSize: "13px",
|
|
959
960
|
color: "rgba(0, 0, 0, 0.6)",
|
|
960
961
|
fontWeight: 500,
|
|
961
|
-
textAlign: "
|
|
962
|
+
textAlign: "left"
|
|
962
963
|
},
|
|
963
964
|
children: item.donations
|
|
964
965
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -966,7 +967,7 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
966
967
|
fontSize: "13px",
|
|
967
968
|
color: "rgba(0, 0, 0, 0.6)",
|
|
968
969
|
fontWeight: 500,
|
|
969
|
-
textAlign: "
|
|
970
|
+
textAlign: "left"
|
|
970
971
|
},
|
|
971
972
|
children: item.revenue
|
|
972
973
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -974,7 +975,7 @@ var LandingPagesCard = function LandingPagesCard() {
|
|
|
974
975
|
fontSize: "13px",
|
|
975
976
|
color: "#22C55E",
|
|
976
977
|
fontWeight: 700,
|
|
977
|
-
textAlign: "
|
|
978
|
+
textAlign: "left"
|
|
978
979
|
},
|
|
979
980
|
children: item.cvr
|
|
980
981
|
})]
|
|
@@ -1029,7 +1030,8 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1029
1030
|
sx: {
|
|
1030
1031
|
fontSize: "12px",
|
|
1031
1032
|
color: "rgba(0, 0, 0, 0.4)",
|
|
1032
|
-
fontWeight: 500
|
|
1033
|
+
fontWeight: 500,
|
|
1034
|
+
textAlign: "left"
|
|
1033
1035
|
},
|
|
1034
1036
|
children: "Keyword"
|
|
1035
1037
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -1037,7 +1039,7 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1037
1039
|
fontSize: "12px",
|
|
1038
1040
|
color: "rgba(0, 0, 0, 0.4)",
|
|
1039
1041
|
fontWeight: 500,
|
|
1040
|
-
textAlign: "
|
|
1042
|
+
textAlign: "left"
|
|
1041
1043
|
},
|
|
1042
1044
|
children: "Clicks"
|
|
1043
1045
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -1045,7 +1047,7 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1045
1047
|
fontSize: "12px",
|
|
1046
1048
|
color: "rgba(0, 0, 0, 0.4)",
|
|
1047
1049
|
fontWeight: 500,
|
|
1048
|
-
textAlign: "
|
|
1050
|
+
textAlign: "left"
|
|
1049
1051
|
},
|
|
1050
1052
|
children: "Position"
|
|
1051
1053
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -1053,7 +1055,7 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1053
1055
|
fontSize: "12px",
|
|
1054
1056
|
color: "rgba(0, 0, 0, 0.4)",
|
|
1055
1057
|
fontWeight: 500,
|
|
1056
|
-
textAlign: "
|
|
1058
|
+
textAlign: "left"
|
|
1057
1059
|
},
|
|
1058
1060
|
children: "Trend"
|
|
1059
1061
|
})]
|
|
@@ -1063,7 +1065,7 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1063
1065
|
display: "grid",
|
|
1064
1066
|
gridTemplateColumns: "2.5fr 1fr 1fr 1fr",
|
|
1065
1067
|
gap: 2,
|
|
1066
|
-
py:
|
|
1068
|
+
// py: 0.5,
|
|
1067
1069
|
alignItems: "center",
|
|
1068
1070
|
borderBottom: index === data.length - 1 ? "none" : "1px solid #f5f5f5"
|
|
1069
1071
|
},
|
|
@@ -1080,20 +1082,21 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1080
1082
|
fontSize: "13px",
|
|
1081
1083
|
color: "rgba(0, 0, 0, 0.6)",
|
|
1082
1084
|
fontWeight: 500,
|
|
1083
|
-
textAlign: "
|
|
1085
|
+
textAlign: "left"
|
|
1084
1086
|
},
|
|
1085
1087
|
children: item.clicks
|
|
1086
1088
|
}), /*#__PURE__*/jsx(Box, {
|
|
1087
1089
|
sx: {
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
+
width: "40px",
|
|
1091
|
+
height: "30px",
|
|
1092
|
+
textAlign: "left"
|
|
1090
1093
|
},
|
|
1091
1094
|
children: /*#__PURE__*/jsx(Box, {
|
|
1092
1095
|
sx: {
|
|
1093
|
-
bgcolor: "#
|
|
1096
|
+
bgcolor: "#ebf2ffb1",
|
|
1094
1097
|
color: "#3431e4",
|
|
1095
|
-
px:
|
|
1096
|
-
py: 0.5,
|
|
1098
|
+
// px: 0.5,
|
|
1099
|
+
// py: 0.5,
|
|
1097
1100
|
borderRadius: "100px",
|
|
1098
1101
|
fontSize: "11px",
|
|
1099
1102
|
fontWeight: 700,
|
|
@@ -1106,13 +1109,13 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1106
1109
|
sx: {
|
|
1107
1110
|
display: "flex",
|
|
1108
1111
|
alignItems: "center",
|
|
1109
|
-
justifyContent: "flex-
|
|
1112
|
+
justifyContent: "flex-start",
|
|
1110
1113
|
gap: 0.5
|
|
1111
1114
|
},
|
|
1112
1115
|
children: item.trendType === "up" ? /*#__PURE__*/jsxs(Fragment, {
|
|
1113
1116
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1114
1117
|
sx: {
|
|
1115
|
-
fontSize: "
|
|
1118
|
+
fontSize: "14px",
|
|
1116
1119
|
color: "#22C55E"
|
|
1117
1120
|
},
|
|
1118
1121
|
children: "\u25B2"
|
|
@@ -1127,7 +1130,7 @@ var KeywordsCard = function KeywordsCard() {
|
|
|
1127
1130
|
}) : /*#__PURE__*/jsxs(Fragment, {
|
|
1128
1131
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1129
1132
|
sx: {
|
|
1130
|
-
fontSize: "
|
|
1133
|
+
fontSize: "14px",
|
|
1131
1134
|
color: "#EF4444"
|
|
1132
1135
|
},
|
|
1133
1136
|
children: "\u25BC"
|
|
@@ -1276,7 +1279,7 @@ var TopCampaignsRaisedCard = function TopCampaignsRaisedCard() {
|
|
|
1276
1279
|
sx: {
|
|
1277
1280
|
display: "flex",
|
|
1278
1281
|
justifyContent: "space-between",
|
|
1279
|
-
py: 1.5,
|
|
1282
|
+
// py: 1.5,
|
|
1280
1283
|
alignItems: "center",
|
|
1281
1284
|
borderBottom: index === data.length - 1 ? "none" : "1px solid #f5f5f5"
|
|
1282
1285
|
},
|
|
@@ -1284,7 +1287,8 @@ var TopCampaignsRaisedCard = function TopCampaignsRaisedCard() {
|
|
|
1284
1287
|
sx: {
|
|
1285
1288
|
display: "flex",
|
|
1286
1289
|
alignItems: "center",
|
|
1287
|
-
gap: 1.5
|
|
1290
|
+
gap: 1.5,
|
|
1291
|
+
marginBottom: "10px"
|
|
1288
1292
|
},
|
|
1289
1293
|
children: [/*#__PURE__*/jsx(Box, {
|
|
1290
1294
|
sx: {
|
|
@@ -1372,7 +1376,7 @@ var TopCampaignsCTRCard = function TopCampaignsCTRCard() {
|
|
|
1372
1376
|
sx: {
|
|
1373
1377
|
display: "flex",
|
|
1374
1378
|
justifyContent: "space-between",
|
|
1375
|
-
py: 1.5,
|
|
1379
|
+
// py: 1.5,
|
|
1376
1380
|
alignItems: "center",
|
|
1377
1381
|
borderBottom: index === data.length - 1 ? "none" : "1px solid #f5f5f5"
|
|
1378
1382
|
},
|
|
@@ -1380,7 +1384,8 @@ var TopCampaignsCTRCard = function TopCampaignsCTRCard() {
|
|
|
1380
1384
|
sx: {
|
|
1381
1385
|
display: "flex",
|
|
1382
1386
|
alignItems: "center",
|
|
1383
|
-
gap: 1.5
|
|
1387
|
+
gap: 1.5,
|
|
1388
|
+
marginBottom: "10px"
|
|
1384
1389
|
},
|
|
1385
1390
|
children: [/*#__PURE__*/jsx(Box, {
|
|
1386
1391
|
sx: {
|
|
@@ -1468,7 +1473,7 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard() {
|
|
|
1468
1473
|
sx: {
|
|
1469
1474
|
display: "flex",
|
|
1470
1475
|
justifyContent: "space-between",
|
|
1471
|
-
py: 1.5,
|
|
1476
|
+
// py: 1.5,
|
|
1472
1477
|
alignItems: "center",
|
|
1473
1478
|
borderBottom: index === data.length - 1 ? "none" : "1px solid #f5f5f5"
|
|
1474
1479
|
},
|
|
@@ -1476,7 +1481,8 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard() {
|
|
|
1476
1481
|
sx: {
|
|
1477
1482
|
display: "flex",
|
|
1478
1483
|
alignItems: "center",
|
|
1479
|
-
gap: 1.5
|
|
1484
|
+
gap: 1.5,
|
|
1485
|
+
marginBottom: "10px"
|
|
1480
1486
|
},
|
|
1481
1487
|
children: [/*#__PURE__*/jsx(Box, {
|
|
1482
1488
|
sx: {
|
|
@@ -1515,28 +1521,28 @@ var TopCampaignsConvRateCard = function TopCampaignsConvRateCard() {
|
|
|
1515
1521
|
var TopPerformingCampaignsCard = function TopPerformingCampaignsCard() {
|
|
1516
1522
|
var data = [{
|
|
1517
1523
|
id: "YO",
|
|
1518
|
-
avatarBg: "#
|
|
1524
|
+
// avatarBg: "#c1cfde70",
|
|
1519
1525
|
name: "Yemen Orphans - Meta",
|
|
1520
1526
|
spend: "$8,200",
|
|
1521
1527
|
revenue: "$31,400",
|
|
1522
1528
|
roas: "3.8x"
|
|
1523
1529
|
}, {
|
|
1524
1530
|
id: "GF",
|
|
1525
|
-
avatarBg: "#c1cfdedb",
|
|
1531
|
+
// avatarBg: "#c1cfdedb",
|
|
1526
1532
|
name: "Gaza Food - Google",
|
|
1527
1533
|
spend: "$7,400",
|
|
1528
1534
|
revenue: "$25,200",
|
|
1529
1535
|
roas: "3.4x"
|
|
1530
1536
|
}, {
|
|
1531
1537
|
id: "PW",
|
|
1532
|
-
avatarBg: "#c1cfdedb",
|
|
1538
|
+
// avatarBg: "#c1cfdedb",
|
|
1533
1539
|
name: "Pakistan Wells - Meta",
|
|
1534
1540
|
spend: "$5,800",
|
|
1535
1541
|
revenue: "$18,600",
|
|
1536
1542
|
roas: "3.2x"
|
|
1537
1543
|
}, {
|
|
1538
1544
|
id: "R",
|
|
1539
|
-
avatarBg: "#c1cfdedb",
|
|
1545
|
+
// avatarBg: "#c1cfdedb",
|
|
1540
1546
|
name: "Ramadan - TikTok",
|
|
1541
1547
|
spend: "$3,200",
|
|
1542
1548
|
revenue: "$8,900",
|
|
@@ -1592,7 +1598,7 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard() {
|
|
|
1592
1598
|
display: "grid",
|
|
1593
1599
|
gridTemplateColumns: "2.5fr 1fr 1fr 0.8fr",
|
|
1594
1600
|
gap: 1,
|
|
1595
|
-
py: 1
|
|
1601
|
+
py: 1,
|
|
1596
1602
|
alignItems: "center",
|
|
1597
1603
|
borderBottom: index === data.length - 1 ? "none" : "1px solid #f5f5f5"
|
|
1598
1604
|
},
|
|
@@ -1607,7 +1613,7 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard() {
|
|
|
1607
1613
|
width: 24,
|
|
1608
1614
|
height: 24,
|
|
1609
1615
|
borderRadius: "50%",
|
|
1610
|
-
bgcolor:
|
|
1616
|
+
bgcolor: "#c1cfde71",
|
|
1611
1617
|
color: "#3431e4ff",
|
|
1612
1618
|
display: "flex",
|
|
1613
1619
|
alignItems: "center",
|
|
@@ -1642,10 +1648,12 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard() {
|
|
|
1642
1648
|
children: item.revenue
|
|
1643
1649
|
}), /*#__PURE__*/jsx(Box, {
|
|
1644
1650
|
sx: {
|
|
1645
|
-
bgcolor: "#
|
|
1646
|
-
color: "#
|
|
1647
|
-
px: 1,
|
|
1648
|
-
py: 0.5,
|
|
1651
|
+
bgcolor: "#48d8d620",
|
|
1652
|
+
color: "#157c3bff",
|
|
1653
|
+
// px: 1,
|
|
1654
|
+
// py: 0.5,
|
|
1655
|
+
width: "40px",
|
|
1656
|
+
height: "25px",
|
|
1649
1657
|
borderRadius: "100px",
|
|
1650
1658
|
fontSize: "11px",
|
|
1651
1659
|
fontWeight: 700,
|
|
@@ -1692,7 +1700,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard() {
|
|
|
1692
1700
|
display: "flex",
|
|
1693
1701
|
alignItems: "center",
|
|
1694
1702
|
gap: 2,
|
|
1695
|
-
py: 0.
|
|
1703
|
+
py: 0.7
|
|
1696
1704
|
},
|
|
1697
1705
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1698
1706
|
sx: {
|
|
@@ -1711,7 +1719,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard() {
|
|
|
1711
1719
|
variant: "determinate",
|
|
1712
1720
|
value: item.percentage,
|
|
1713
1721
|
sx: {
|
|
1714
|
-
height:
|
|
1722
|
+
height: 8,
|
|
1715
1723
|
borderRadius: 4,
|
|
1716
1724
|
bgcolor: "#F3F4F6",
|
|
1717
1725
|
"& .MuiLinearProgress-bar": {
|
|
@@ -1831,7 +1839,7 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
1831
1839
|
return /*#__PURE__*/jsxs(Box, {
|
|
1832
1840
|
sx: _objectSpread2({
|
|
1833
1841
|
bgcolor: "#fff",
|
|
1834
|
-
borderRadius:
|
|
1842
|
+
borderRadius: 4,
|
|
1835
1843
|
border: "1px solid #f0f0f0",
|
|
1836
1844
|
boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
|
|
1837
1845
|
p: 3,
|
|
@@ -1841,9 +1849,7 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
1841
1849
|
flexDirection: "column"
|
|
1842
1850
|
}, sx),
|
|
1843
1851
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
1844
|
-
sx: {
|
|
1845
|
-
mb: 2
|
|
1846
|
-
},
|
|
1852
|
+
sx: {},
|
|
1847
1853
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1848
1854
|
sx: {
|
|
1849
1855
|
fontWeight: 700,
|
|
@@ -1856,7 +1862,7 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
1856
1862
|
sx: {
|
|
1857
1863
|
fontSize: "13px",
|
|
1858
1864
|
color: "rgba(0, 0, 0, 0.4)",
|
|
1859
|
-
mt: 0.2,
|
|
1865
|
+
// mt: 0.2,
|
|
1860
1866
|
textAlign: "left"
|
|
1861
1867
|
},
|
|
1862
1868
|
children: subtitle
|
|
@@ -1865,7 +1871,7 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
1865
1871
|
sx: {
|
|
1866
1872
|
position: "relative",
|
|
1867
1873
|
height: "180px",
|
|
1868
|
-
mb:
|
|
1874
|
+
// mb: 1,
|
|
1869
1875
|
display: "flex",
|
|
1870
1876
|
justifyContent: "center"
|
|
1871
1877
|
},
|
|
@@ -1873,18 +1879,16 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
1873
1879
|
options: chartOptions,
|
|
1874
1880
|
series: series,
|
|
1875
1881
|
type: "donut",
|
|
1876
|
-
width: "
|
|
1882
|
+
width: "210"
|
|
1877
1883
|
})
|
|
1878
1884
|
}), /*#__PURE__*/jsxs(Box, {
|
|
1879
|
-
sx: {
|
|
1880
|
-
mt: "auto"
|
|
1881
|
-
},
|
|
1885
|
+
sx: {},
|
|
1882
1886
|
children: [items.map(function (item, idx) {
|
|
1883
1887
|
return /*#__PURE__*/jsxs(Box, {
|
|
1884
1888
|
sx: {
|
|
1885
1889
|
display: "flex",
|
|
1886
1890
|
justifyContent: "space-between",
|
|
1887
|
-
mb: idx === items.length - 1 ? showBottomSummary ?
|
|
1891
|
+
mb: idx === items.length - 1 ? showBottomSummary ? 1 : 0 : 1
|
|
1888
1892
|
},
|
|
1889
1893
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
1890
1894
|
sx: {
|
|
@@ -1918,15 +1922,23 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
1918
1922
|
}, idx);
|
|
1919
1923
|
}), showBottomSummary && /*#__PURE__*/jsxs(Box, {
|
|
1920
1924
|
sx: {
|
|
1921
|
-
display: "flex",
|
|
1922
|
-
justifyContent: "space-between",
|
|
1923
|
-
alignItems: "center",
|
|
1925
|
+
// display: "flex",
|
|
1926
|
+
// justifyContent: "space-between",
|
|
1927
|
+
// alignItems: "center",
|
|
1924
1928
|
pt: 2,
|
|
1925
|
-
borderTop: "1px solid #f0f0f0"
|
|
1929
|
+
borderTop: "1px solid #f0f0f0",
|
|
1930
|
+
textAlign: "left"
|
|
1926
1931
|
},
|
|
1927
1932
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1928
1933
|
sx: {
|
|
1929
|
-
fontSize: "
|
|
1934
|
+
fontSize: "13px",
|
|
1935
|
+
fontWeight: 500,
|
|
1936
|
+
color: "rgba(0, 0, 0, 0.4)"
|
|
1937
|
+
},
|
|
1938
|
+
children: "Avg gift"
|
|
1939
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
1940
|
+
sx: {
|
|
1941
|
+
fontSize: "13px",
|
|
1930
1942
|
fontWeight: 700,
|
|
1931
1943
|
color: "#000"
|
|
1932
1944
|
},
|
|
@@ -2077,8 +2089,10 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
2077
2089
|
val: "3.3%",
|
|
2078
2090
|
color: "#FFFC00"
|
|
2079
2091
|
}],
|
|
2080
|
-
showBottomSummary: false
|
|
2081
|
-
|
|
2092
|
+
showBottomSummary: false,
|
|
2093
|
+
sx: {
|
|
2094
|
+
pb: 2
|
|
2095
|
+
}
|
|
2082
2096
|
})
|
|
2083
2097
|
}), /*#__PURE__*/jsx(Grid, {
|
|
2084
2098
|
item: true,
|
|
@@ -4057,15 +4071,15 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4057
4071
|
_ref$subtitle = _ref.subtitle,
|
|
4058
4072
|
subtitle = _ref$subtitle === void 0 ? "Live fundraisers ranked by velocity" : _ref$subtitle,
|
|
4059
4073
|
_ref$columns = _ref.columns,
|
|
4060
|
-
columns = _ref$columns === void 0 ? ["Campaign", "Raised", "Progress", "Donors", "Avg gift"
|
|
4074
|
+
columns = _ref$columns === void 0 ? ["Campaign", "Raised", "Progress", "Donors", "Avg gift"] : _ref$columns,
|
|
4061
4075
|
_ref$rows = _ref.rows,
|
|
4062
4076
|
rows = _ref$rows === void 0 ? [] : _ref$rows,
|
|
4063
4077
|
_ref$gridTemplateColu = _ref.gridTemplateColumns,
|
|
4064
|
-
gridTemplateColumns = _ref$gridTemplateColu === void 0 ? "
|
|
4078
|
+
gridTemplateColumns = _ref$gridTemplateColu === void 0 ? "3fr 1fr 1.5fr 0.8fr 1fr " : _ref$gridTemplateColu;
|
|
4065
4079
|
return /*#__PURE__*/jsxs(Box, {
|
|
4066
4080
|
sx: {
|
|
4067
4081
|
bgcolor: "#fff",
|
|
4068
|
-
borderRadius:
|
|
4082
|
+
borderRadius: 4,
|
|
4069
4083
|
border: "1px solid #f0f0f0",
|
|
4070
4084
|
boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
|
|
4071
4085
|
p: 3
|
|
@@ -4109,7 +4123,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4109
4123
|
display: "grid",
|
|
4110
4124
|
gridTemplateColumns: gridTemplateColumns,
|
|
4111
4125
|
gap: 2,
|
|
4112
|
-
pb:
|
|
4126
|
+
pb: 2.5,
|
|
4113
4127
|
borderBottom: "1px solid #f0f0f0"
|
|
4114
4128
|
},
|
|
4115
4129
|
children: columns.map(function (header) {
|
|
@@ -4133,7 +4147,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4133
4147
|
display: "grid",
|
|
4134
4148
|
gridTemplateColumns: gridTemplateColumns,
|
|
4135
4149
|
gap: 2,
|
|
4136
|
-
py: 1.
|
|
4150
|
+
py: 1.2,
|
|
4137
4151
|
alignItems: "center",
|
|
4138
4152
|
borderBottom: idx === rows.length - 1 ? "none" : "1px solid #f5f5f5"
|
|
4139
4153
|
},
|
|
@@ -4166,7 +4180,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4166
4180
|
})
|
|
4167
4181
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4168
4182
|
sx: {
|
|
4169
|
-
fontSize: "
|
|
4183
|
+
fontSize: "12px",
|
|
4170
4184
|
fontWeight: 700,
|
|
4171
4185
|
color: "#000"
|
|
4172
4186
|
},
|
|
@@ -4235,7 +4249,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4235
4249
|
textAlign: "left"
|
|
4236
4250
|
},
|
|
4237
4251
|
children: row.val4
|
|
4238
|
-
}), /*#__PURE__*/jsx(Box, {
|
|
4252
|
+
}), columns.length > 5 && /*#__PURE__*/jsx(Box, {
|
|
4239
4253
|
children: row.type === "trend" ? /*#__PURE__*/jsxs(Box, {
|
|
4240
4254
|
sx: {
|
|
4241
4255
|
display: "flex",
|
|
@@ -4277,221 +4291,804 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4277
4291
|
});
|
|
4278
4292
|
};
|
|
4279
4293
|
|
|
4280
|
-
var
|
|
4281
|
-
var
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
},
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
},
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
fontSize: "10px",
|
|
4310
|
-
fontWeight: 700,
|
|
4311
|
-
colors: ["#000"]
|
|
4312
|
-
}
|
|
4313
|
-
},
|
|
4314
|
-
stroke: {
|
|
4315
|
-
show: true,
|
|
4316
|
-
width: 2,
|
|
4317
|
-
colors: ["transparent"]
|
|
4318
|
-
},
|
|
4319
|
-
xaxis: {
|
|
4320
|
-
categories: ["Wk 1", "Wk 2", "Wk 3", "Wk 4"],
|
|
4321
|
-
axisBorder: {
|
|
4322
|
-
show: false
|
|
4323
|
-
},
|
|
4324
|
-
axisTicks: {
|
|
4325
|
-
show: false
|
|
4326
|
-
},
|
|
4327
|
-
labels: {
|
|
4328
|
-
style: {
|
|
4329
|
-
colors: "rgba(0, 0, 0, 0.4)",
|
|
4330
|
-
fontSize: "12px"
|
|
4331
|
-
}
|
|
4332
|
-
}
|
|
4333
|
-
},
|
|
4334
|
-
yaxis: {
|
|
4335
|
-
min: 0,
|
|
4336
|
-
max: 60,
|
|
4337
|
-
tickAmount: 3,
|
|
4338
|
-
labels: {
|
|
4339
|
-
formatter: function formatter(val) {
|
|
4340
|
-
return "$".concat(val, "K");
|
|
4341
|
-
},
|
|
4342
|
-
style: {
|
|
4343
|
-
colors: "rgba(0, 0, 0, 0.4)",
|
|
4344
|
-
fontSize: "12px"
|
|
4345
|
-
}
|
|
4346
|
-
}
|
|
4347
|
-
},
|
|
4348
|
-
fill: {
|
|
4349
|
-
opacity: 1
|
|
4350
|
-
},
|
|
4351
|
-
colors: ["rgb(99, 99, 230)", "#10B981"],
|
|
4352
|
-
grid: {
|
|
4353
|
-
borderColor: "#f1f1f1",
|
|
4354
|
-
strokeDashArray: 4,
|
|
4355
|
-
yaxis: {
|
|
4356
|
-
lines: {
|
|
4357
|
-
show: true
|
|
4358
|
-
}
|
|
4359
|
-
}
|
|
4360
|
-
},
|
|
4361
|
-
legend: {
|
|
4362
|
-
show: false
|
|
4363
|
-
},
|
|
4364
|
-
tooltip: {
|
|
4365
|
-
y: {
|
|
4366
|
-
formatter: function formatter(val) {
|
|
4367
|
-
return "$".concat(val, "K");
|
|
4368
|
-
}
|
|
4369
|
-
}
|
|
4370
|
-
}
|
|
4371
|
-
};
|
|
4372
|
-
var series = [{
|
|
4373
|
-
name: "Recurring",
|
|
4374
|
-
data: [9.2, 11.8, 13.4, 15.6]
|
|
4375
|
-
}, {
|
|
4376
|
-
name: "One-time",
|
|
4377
|
-
data: [32.4, 41.2, 46.8, 51.3]
|
|
4378
|
-
}];
|
|
4294
|
+
var TrafficSourceCard = function TrafficSourceCard(_ref) {
|
|
4295
|
+
var _ref$title = _ref.title,
|
|
4296
|
+
title = _ref$title === void 0 ? "Traffic source" : _ref$title,
|
|
4297
|
+
_ref$subtitle = _ref.subtitle,
|
|
4298
|
+
subtitle = _ref$subtitle === void 0 ? "Revenue by channel · 30 days" : _ref$subtitle,
|
|
4299
|
+
_ref$data = _ref.data,
|
|
4300
|
+
data = _ref$data === void 0 ? [{
|
|
4301
|
+
label: "Paid Ads",
|
|
4302
|
+
revenue: "$98.4K",
|
|
4303
|
+
share: 41,
|
|
4304
|
+
color: "rgb(99, 99, 230)"
|
|
4305
|
+
}, {
|
|
4306
|
+
label: "Organic",
|
|
4307
|
+
revenue: "$62.1K",
|
|
4308
|
+
share: 26,
|
|
4309
|
+
color: "#10B981"
|
|
4310
|
+
}, {
|
|
4311
|
+
label: "Email",
|
|
4312
|
+
revenue: "$38.6K",
|
|
4313
|
+
share: 16,
|
|
4314
|
+
color: "#0EA5E9"
|
|
4315
|
+
}, {
|
|
4316
|
+
label: "Direct",
|
|
4317
|
+
revenue: "$15.5K",
|
|
4318
|
+
share: 6,
|
|
4319
|
+
color: "#94A3B8"
|
|
4320
|
+
}] : _ref$data,
|
|
4321
|
+
_ref$total = _ref.total,
|
|
4322
|
+
total = _ref$total === void 0 ? "$240.9K" : _ref$total;
|
|
4379
4323
|
return /*#__PURE__*/jsxs(Card, {
|
|
4380
4324
|
sx: {
|
|
4381
|
-
|
|
4382
|
-
borderRadius:
|
|
4325
|
+
p: 3,
|
|
4326
|
+
borderRadius: 4,
|
|
4383
4327
|
border: "1px solid #f0f0f0",
|
|
4384
4328
|
boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
|
|
4385
|
-
|
|
4386
|
-
// width: "100%",
|
|
4329
|
+
bgcolor: "#fff",
|
|
4387
4330
|
// height: "100%",
|
|
4331
|
+
display: "flex",
|
|
4332
|
+
flexDirection: "column"
|
|
4388
4333
|
},
|
|
4389
4334
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
4335
|
+
sx: {},
|
|
4336
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4337
|
+
sx: {
|
|
4338
|
+
fontWeight: 700,
|
|
4339
|
+
fontSize: "18px",
|
|
4340
|
+
color: "#000",
|
|
4341
|
+
textAlign: "left"
|
|
4342
|
+
},
|
|
4343
|
+
children: title
|
|
4344
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4345
|
+
sx: {
|
|
4346
|
+
fontSize: "13px",
|
|
4347
|
+
color: "rgba(0, 0, 0, 0.4)",
|
|
4348
|
+
mt: 0.5,
|
|
4349
|
+
mb: 0.5,
|
|
4350
|
+
textAlign: "left"
|
|
4351
|
+
},
|
|
4352
|
+
children: subtitle
|
|
4353
|
+
})]
|
|
4354
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4390
4355
|
sx: {
|
|
4391
|
-
display: "
|
|
4392
|
-
|
|
4393
|
-
|
|
4356
|
+
display: "grid",
|
|
4357
|
+
gridTemplateColumns: "2.5fr 1.5fr 2fr",
|
|
4358
|
+
gap: 2,
|
|
4359
|
+
mb: 1.5
|
|
4394
4360
|
},
|
|
4395
|
-
children: [/*#__PURE__*/
|
|
4361
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4396
4362
|
sx: {
|
|
4363
|
+
fontSize: "12px",
|
|
4364
|
+
fontWeight: 700,
|
|
4365
|
+
color: "rgba(0, 0, 0, 0.3)",
|
|
4366
|
+
letterSpacing: "0.05em",
|
|
4397
4367
|
textAlign: "left"
|
|
4398
4368
|
},
|
|
4399
|
-
children:
|
|
4400
|
-
|
|
4401
|
-
fontWeight: 700,
|
|
4402
|
-
fontSize: "18px",
|
|
4403
|
-
color: "#000"
|
|
4404
|
-
},
|
|
4405
|
-
children: "Recurring vs one-time"
|
|
4406
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
4407
|
-
sx: {
|
|
4408
|
-
fontSize: "13px",
|
|
4409
|
-
color: "rgba(0, 0, 0, 0.4)",
|
|
4410
|
-
mt: 0.2
|
|
4411
|
-
},
|
|
4412
|
-
children: "Donation type \xB7 weekly"
|
|
4413
|
-
})]
|
|
4414
|
-
}), /*#__PURE__*/jsxs(Box, {
|
|
4369
|
+
children: "SOURCE"
|
|
4370
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4415
4371
|
sx: {
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4372
|
+
fontSize: "12px",
|
|
4373
|
+
fontWeight: 700,
|
|
4374
|
+
color: "rgba(0, 0, 0, 0.3)",
|
|
4375
|
+
letterSpacing: "0.05em",
|
|
4376
|
+
textAlign: "left"
|
|
4420
4377
|
},
|
|
4421
|
-
children:
|
|
4378
|
+
children: "REVENUE"
|
|
4379
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4380
|
+
sx: {
|
|
4381
|
+
fontSize: "12px",
|
|
4382
|
+
fontWeight: 700,
|
|
4383
|
+
color: "rgba(0, 0, 0, 0.3)",
|
|
4384
|
+
letterSpacing: "0.05em",
|
|
4385
|
+
textAlign: "right"
|
|
4386
|
+
},
|
|
4387
|
+
children: "SHARE"
|
|
4388
|
+
})]
|
|
4389
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
4390
|
+
sx: {
|
|
4391
|
+
flexGrow: 1
|
|
4392
|
+
},
|
|
4393
|
+
children: data.map(function (item, index) {
|
|
4394
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
4422
4395
|
sx: {
|
|
4423
|
-
|
|
4396
|
+
display: "grid",
|
|
4397
|
+
gridTemplateColumns: "2.5fr 1.5fr 2fr",
|
|
4398
|
+
gap: 2,
|
|
4399
|
+
py: 1.5,
|
|
4400
|
+
alignItems: "center",
|
|
4401
|
+
borderBottom: index === data.length - 1 ? "none" : "1px solid #f5f5f5"
|
|
4424
4402
|
},
|
|
4425
4403
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
4426
4404
|
sx: {
|
|
4427
4405
|
display: "flex",
|
|
4428
4406
|
alignItems: "center",
|
|
4429
|
-
gap: 1
|
|
4430
|
-
mb: 0.5
|
|
4407
|
+
gap: 1
|
|
4431
4408
|
},
|
|
4432
4409
|
children: [/*#__PURE__*/jsx(Box, {
|
|
4433
4410
|
sx: {
|
|
4434
|
-
width:
|
|
4435
|
-
height:
|
|
4436
|
-
bgcolor:
|
|
4437
|
-
borderRadius: "
|
|
4411
|
+
width: 10,
|
|
4412
|
+
height: 10,
|
|
4413
|
+
bgcolor: item.color,
|
|
4414
|
+
borderRadius: "2px"
|
|
4438
4415
|
}
|
|
4439
4416
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4440
4417
|
sx: {
|
|
4441
|
-
fontSize: "
|
|
4442
|
-
|
|
4443
|
-
|
|
4418
|
+
fontSize: "14px",
|
|
4419
|
+
fontWeight: 600,
|
|
4420
|
+
color: "rgba(0, 0, 0, 0.7)"
|
|
4444
4421
|
},
|
|
4445
|
-
children:
|
|
4422
|
+
children: item.label
|
|
4446
4423
|
})]
|
|
4447
4424
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4448
4425
|
sx: {
|
|
4449
|
-
fontSize: "
|
|
4426
|
+
fontSize: "14px",
|
|
4450
4427
|
fontWeight: 700,
|
|
4451
4428
|
color: "#000"
|
|
4452
4429
|
},
|
|
4453
|
-
children:
|
|
4454
|
-
})
|
|
4455
|
-
}), /*#__PURE__*/jsxs(Box, {
|
|
4456
|
-
sx: {
|
|
4457
|
-
textAlign: "left"
|
|
4458
|
-
},
|
|
4459
|
-
children: [/*#__PURE__*/jsxs(Box, {
|
|
4430
|
+
children: item.revenue
|
|
4431
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4460
4432
|
sx: {
|
|
4461
4433
|
display: "flex",
|
|
4462
4434
|
alignItems: "center",
|
|
4463
|
-
gap: 1,
|
|
4464
|
-
|
|
4435
|
+
gap: 1.5,
|
|
4436
|
+
justifyContent: "flex-end"
|
|
4437
|
+
},
|
|
4438
|
+
children: [/*#__PURE__*/jsx(Box, {
|
|
4439
|
+
sx: {
|
|
4440
|
+
width: "60px",
|
|
4441
|
+
flexShrink: 0
|
|
4442
|
+
},
|
|
4443
|
+
children: /*#__PURE__*/jsx(LinearProgress, {
|
|
4444
|
+
variant: "determinate",
|
|
4445
|
+
value: item.share,
|
|
4446
|
+
sx: {
|
|
4447
|
+
height: 6,
|
|
4448
|
+
borderRadius: 3,
|
|
4449
|
+
bgcolor: "#F3F4F6",
|
|
4450
|
+
"& .MuiLinearProgress-bar": {
|
|
4451
|
+
borderRadius: 3,
|
|
4452
|
+
bgcolor: item.color
|
|
4453
|
+
}
|
|
4454
|
+
}
|
|
4455
|
+
})
|
|
4456
|
+
}), /*#__PURE__*/jsxs(Typography, {
|
|
4457
|
+
sx: {
|
|
4458
|
+
fontSize: "14px",
|
|
4459
|
+
fontWeight: 700,
|
|
4460
|
+
color: "#000",
|
|
4461
|
+
minWidth: "30px",
|
|
4462
|
+
textAlign: "right"
|
|
4463
|
+
},
|
|
4464
|
+
children: [item.share, "%"]
|
|
4465
|
+
})]
|
|
4466
|
+
})]
|
|
4467
|
+
}, index);
|
|
4468
|
+
})
|
|
4469
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4470
|
+
sx: {
|
|
4471
|
+
mt: 2,
|
|
4472
|
+
pt: 2,
|
|
4473
|
+
// borderTop: "1px solid #f0f0f0",
|
|
4474
|
+
display: "flex",
|
|
4475
|
+
justifyContent: "space-between",
|
|
4476
|
+
alignItems: "center"
|
|
4477
|
+
},
|
|
4478
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4479
|
+
sx: {
|
|
4480
|
+
fontSize: "14px",
|
|
4481
|
+
fontWeight: 500,
|
|
4482
|
+
color: "rgba(0, 0, 0, 0.4)"
|
|
4483
|
+
},
|
|
4484
|
+
children: "Total"
|
|
4485
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4486
|
+
sx: {
|
|
4487
|
+
fontSize: "16px",
|
|
4488
|
+
fontWeight: 700,
|
|
4489
|
+
color: "#000"
|
|
4490
|
+
},
|
|
4491
|
+
children: total
|
|
4492
|
+
})]
|
|
4493
|
+
})]
|
|
4494
|
+
});
|
|
4495
|
+
};
|
|
4496
|
+
|
|
4497
|
+
var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
4498
|
+
var title = _ref.title,
|
|
4499
|
+
subtitle = _ref.subtitle,
|
|
4500
|
+
value = _ref.value,
|
|
4501
|
+
trend = _ref.trend,
|
|
4502
|
+
_ref$trendColor = _ref.trendColor,
|
|
4503
|
+
trendColor = _ref$trendColor === void 0 ? "#22C55E" : _ref$trendColor,
|
|
4504
|
+
_ref$chartData = _ref.chartData,
|
|
4505
|
+
chartData = _ref$chartData === void 0 ? [] : _ref$chartData,
|
|
4506
|
+
_ref$chartColor = _ref.chartColor,
|
|
4507
|
+
chartColor = _ref$chartColor === void 0 ? "rgb(99, 99, 230)" : _ref$chartColor,
|
|
4508
|
+
_ref$footerMetrics = _ref.footerMetrics,
|
|
4509
|
+
footerMetrics = _ref$footerMetrics === void 0 ? [] : _ref$footerMetrics;
|
|
4510
|
+
var chartOptions = {
|
|
4511
|
+
chart: {
|
|
4512
|
+
type: "area",
|
|
4513
|
+
sparkline: {
|
|
4514
|
+
enabled: true
|
|
4515
|
+
},
|
|
4516
|
+
animations: {
|
|
4517
|
+
enabled: true
|
|
4518
|
+
}
|
|
4519
|
+
},
|
|
4520
|
+
stroke: {
|
|
4521
|
+
curve: "smooth",
|
|
4522
|
+
width: 2
|
|
4523
|
+
},
|
|
4524
|
+
fill: {
|
|
4525
|
+
type: "gradient",
|
|
4526
|
+
gradient: {
|
|
4527
|
+
shadeIntensity: 1,
|
|
4528
|
+
opacityFrom: 0.45,
|
|
4529
|
+
opacityTo: 0.05,
|
|
4530
|
+
stops: [20, 100, 100]
|
|
4531
|
+
}
|
|
4532
|
+
},
|
|
4533
|
+
colors: [chartColor],
|
|
4534
|
+
tooltip: {
|
|
4535
|
+
enabled: false
|
|
4536
|
+
}
|
|
4537
|
+
};
|
|
4538
|
+
var series = [{
|
|
4539
|
+
name: title,
|
|
4540
|
+
data: chartData
|
|
4541
|
+
}];
|
|
4542
|
+
return /*#__PURE__*/jsxs(Card, {
|
|
4543
|
+
sx: {
|
|
4544
|
+
p: 3,
|
|
4545
|
+
borderRadius: 4,
|
|
4546
|
+
border: "1px solid #f0f0f0",
|
|
4547
|
+
boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
|
|
4548
|
+
bgcolor: "#fff",
|
|
4549
|
+
// height: "100%",
|
|
4550
|
+
display: "flex",
|
|
4551
|
+
flexDirection: "column"
|
|
4552
|
+
},
|
|
4553
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
4554
|
+
sx: {
|
|
4555
|
+
mb: 1
|
|
4556
|
+
},
|
|
4557
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4558
|
+
sx: {
|
|
4559
|
+
fontWeight: 700,
|
|
4560
|
+
fontSize: "16px",
|
|
4561
|
+
color: "#000",
|
|
4562
|
+
textAlign: "left"
|
|
4563
|
+
},
|
|
4564
|
+
children: title
|
|
4565
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4566
|
+
sx: {
|
|
4567
|
+
fontSize: "12px",
|
|
4568
|
+
color: "rgba(0, 0, 0, 0.4)",
|
|
4569
|
+
mt: 0.2,
|
|
4570
|
+
textAlign: "left"
|
|
4571
|
+
},
|
|
4572
|
+
children: subtitle
|
|
4573
|
+
})]
|
|
4574
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4575
|
+
sx: {
|
|
4576
|
+
mt: 1,
|
|
4577
|
+
display: "flex",
|
|
4578
|
+
flexDirection: "column",
|
|
4579
|
+
alignItems: "flex-start"
|
|
4580
|
+
},
|
|
4581
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4582
|
+
sx: {
|
|
4583
|
+
fontSize: "24px",
|
|
4584
|
+
fontWeight: 700,
|
|
4585
|
+
color: "#000"
|
|
4586
|
+
},
|
|
4587
|
+
children: value
|
|
4588
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4589
|
+
sx: {
|
|
4590
|
+
fontSize: "11px",
|
|
4591
|
+
fontWeight: 700,
|
|
4592
|
+
color: trendColor,
|
|
4593
|
+
mt: 0.2
|
|
4594
|
+
},
|
|
4595
|
+
children: trend
|
|
4596
|
+
})]
|
|
4597
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4598
|
+
sx: {
|
|
4599
|
+
height: 60,
|
|
4600
|
+
mb: 2
|
|
4601
|
+
},
|
|
4602
|
+
children: [/*#__PURE__*/jsx(ReactApexChart, {
|
|
4603
|
+
options: chartOptions,
|
|
4604
|
+
series: series,
|
|
4605
|
+
type: "area",
|
|
4606
|
+
height: "100%"
|
|
4607
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4608
|
+
sx: {
|
|
4609
|
+
display: "flex",
|
|
4610
|
+
justifyContent: "space-between",
|
|
4611
|
+
mt: 0.5
|
|
4612
|
+
},
|
|
4613
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4614
|
+
sx: {
|
|
4615
|
+
fontSize: "10px",
|
|
4616
|
+
color: "rgba(0, 0, 0, 0.3)"
|
|
4617
|
+
},
|
|
4618
|
+
children: "Apr 5"
|
|
4619
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4620
|
+
sx: {
|
|
4621
|
+
fontSize: "10px",
|
|
4622
|
+
color: "rgba(0, 0, 0, 0.3)"
|
|
4623
|
+
},
|
|
4624
|
+
children: "Apr 17"
|
|
4625
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4626
|
+
sx: {
|
|
4627
|
+
fontSize: "10px",
|
|
4628
|
+
color: "rgba(0, 0, 0, 0.3)"
|
|
4629
|
+
},
|
|
4630
|
+
children: "May 4"
|
|
4631
|
+
})]
|
|
4632
|
+
})]
|
|
4633
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
4634
|
+
sx: {
|
|
4635
|
+
mt: "auto",
|
|
4636
|
+
pt: 3,
|
|
4637
|
+
// borderTop: "1px solid #f0f0f0",
|
|
4638
|
+
display: "flex",
|
|
4639
|
+
justifyContent: "space-between"
|
|
4640
|
+
},
|
|
4641
|
+
children: footerMetrics.map(function (m, idx) {
|
|
4642
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
4643
|
+
sx: {
|
|
4644
|
+
textAlign: "center"
|
|
4645
|
+
},
|
|
4646
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4647
|
+
sx: {
|
|
4648
|
+
fontSize: "10px",
|
|
4649
|
+
color: "rgba(0, 0, 0, 0.4)",
|
|
4650
|
+
fontWeight: 500
|
|
4651
|
+
},
|
|
4652
|
+
children: m.label
|
|
4653
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4654
|
+
sx: {
|
|
4655
|
+
fontSize: "14px",
|
|
4656
|
+
fontWeight: 700,
|
|
4657
|
+
color: "#000"
|
|
4658
|
+
},
|
|
4659
|
+
children: m.value
|
|
4660
|
+
})]
|
|
4661
|
+
}, idx);
|
|
4662
|
+
})
|
|
4663
|
+
})]
|
|
4664
|
+
});
|
|
4665
|
+
};
|
|
4666
|
+
|
|
4667
|
+
var MetricDonutCard = function MetricDonutCard(_ref) {
|
|
4668
|
+
var title = _ref.title,
|
|
4669
|
+
subtitle = _ref.subtitle,
|
|
4670
|
+
acceptanceRate = _ref.acceptanceRate,
|
|
4671
|
+
acceptanceVal = _ref.acceptanceVal,
|
|
4672
|
+
acceptanceTrend = _ref.acceptanceTrend,
|
|
4673
|
+
raisedVal = _ref.raisedVal,
|
|
4674
|
+
raisedTrend = _ref.raisedTrend,
|
|
4675
|
+
_ref$chartColors = _ref.chartColors,
|
|
4676
|
+
chartColors = _ref$chartColors === void 0 ? ["rgb(99, 99, 230)", "#88bfd290"] : _ref$chartColors;
|
|
4677
|
+
var chartOptions = {
|
|
4678
|
+
chart: {
|
|
4679
|
+
type: "radialBar",
|
|
4680
|
+
sparkline: {
|
|
4681
|
+
enabled: true
|
|
4682
|
+
}
|
|
4683
|
+
},
|
|
4684
|
+
plotOptions: {
|
|
4685
|
+
radialBar: {
|
|
4686
|
+
hollow: {
|
|
4687
|
+
size: "45%"
|
|
4688
|
+
},
|
|
4689
|
+
track: {
|
|
4690
|
+
background: chartColors[1] || "#f0f0f0",
|
|
4691
|
+
strokeWidth: "100%"
|
|
4692
|
+
},
|
|
4693
|
+
dataLabels: {
|
|
4694
|
+
name: {
|
|
4695
|
+
show: true,
|
|
4696
|
+
fontSize: "11px",
|
|
4697
|
+
fontWeight: 500,
|
|
4698
|
+
color: "rgba(0, 0, 0, 0.4)",
|
|
4699
|
+
offsetY: 15
|
|
4700
|
+
},
|
|
4701
|
+
value: {
|
|
4702
|
+
show: true,
|
|
4703
|
+
fontSize: "18px",
|
|
4704
|
+
fontWeight: 700,
|
|
4705
|
+
color: "#000",
|
|
4706
|
+
offsetY: -15,
|
|
4707
|
+
formatter: function formatter() {
|
|
4708
|
+
return acceptanceRate + "%";
|
|
4709
|
+
}
|
|
4710
|
+
}
|
|
4711
|
+
}
|
|
4712
|
+
}
|
|
4713
|
+
},
|
|
4714
|
+
stroke: {
|
|
4715
|
+
lineCap: "butt"
|
|
4716
|
+
},
|
|
4717
|
+
colors: [chartColors[0]],
|
|
4718
|
+
labels: ["accepted"]
|
|
4719
|
+
};
|
|
4720
|
+
var series = [acceptanceRate];
|
|
4721
|
+
return /*#__PURE__*/jsxs(Card, {
|
|
4722
|
+
sx: {
|
|
4723
|
+
p: 3,
|
|
4724
|
+
borderRadius: 4,
|
|
4725
|
+
border: "1px solid #f0f0f0",
|
|
4726
|
+
boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
|
|
4727
|
+
bgcolor: "#fff",
|
|
4728
|
+
// height: "100%",
|
|
4729
|
+
display: "flex",
|
|
4730
|
+
flexDirection: "column"
|
|
4731
|
+
},
|
|
4732
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
4733
|
+
sx: {},
|
|
4734
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4735
|
+
sx: {
|
|
4736
|
+
fontWeight: 700,
|
|
4737
|
+
fontSize: "16px",
|
|
4738
|
+
color: "#000",
|
|
4739
|
+
textAlign: "left"
|
|
4740
|
+
},
|
|
4741
|
+
children: title
|
|
4742
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4743
|
+
sx: {
|
|
4744
|
+
fontSize: "12px",
|
|
4745
|
+
color: "rgba(0, 0, 0, 0.4)",
|
|
4746
|
+
mt: 0.2,
|
|
4747
|
+
textAlign: "left"
|
|
4748
|
+
},
|
|
4749
|
+
children: subtitle
|
|
4750
|
+
})]
|
|
4751
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
4752
|
+
sx: {
|
|
4753
|
+
height: 160,
|
|
4754
|
+
position: "relative",
|
|
4755
|
+
mt: 1,
|
|
4756
|
+
display: "flex",
|
|
4757
|
+
justifyContent: "center"
|
|
4758
|
+
},
|
|
4759
|
+
children: /*#__PURE__*/jsx(ReactApexChart, {
|
|
4760
|
+
options: chartOptions,
|
|
4761
|
+
series: series,
|
|
4762
|
+
type: "radialBar",
|
|
4763
|
+
width: "100%",
|
|
4764
|
+
height: "100%"
|
|
4765
|
+
})
|
|
4766
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4767
|
+
sx: {},
|
|
4768
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
4769
|
+
sx: {
|
|
4770
|
+
display: "flex",
|
|
4771
|
+
justifyContent: "space-between",
|
|
4772
|
+
alignItems: "center"
|
|
4773
|
+
},
|
|
4774
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
4775
|
+
sx: {
|
|
4776
|
+
display: "flex",
|
|
4777
|
+
alignItems: "center",
|
|
4778
|
+
gap: 1
|
|
4779
|
+
},
|
|
4780
|
+
children: [/*#__PURE__*/jsx(Box, {
|
|
4781
|
+
sx: {
|
|
4782
|
+
width: 10,
|
|
4783
|
+
height: 10,
|
|
4784
|
+
bgcolor: chartColors[0],
|
|
4785
|
+
borderRadius: "2px"
|
|
4786
|
+
}
|
|
4787
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4788
|
+
sx: {
|
|
4789
|
+
fontSize: "13px",
|
|
4790
|
+
color: "rgba(0, 0, 0, 0.5)",
|
|
4791
|
+
fontWeight: 500
|
|
4792
|
+
},
|
|
4793
|
+
children: "Acceptance"
|
|
4794
|
+
})]
|
|
4795
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4796
|
+
sx: {
|
|
4797
|
+
display: "flex",
|
|
4798
|
+
alignItems: "center",
|
|
4799
|
+
gap: 0.5
|
|
4800
|
+
},
|
|
4801
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4802
|
+
sx: {
|
|
4803
|
+
fontSize: "13px",
|
|
4804
|
+
fontWeight: 700,
|
|
4805
|
+
color: "#000"
|
|
4806
|
+
},
|
|
4807
|
+
children: acceptanceVal
|
|
4808
|
+
}), /*#__PURE__*/jsxs(Typography, {
|
|
4809
|
+
sx: {
|
|
4810
|
+
fontSize: "10px",
|
|
4811
|
+
fontWeight: 700,
|
|
4812
|
+
color: "#22C55E",
|
|
4813
|
+
display: "flex",
|
|
4814
|
+
alignItems: "center"
|
|
4815
|
+
},
|
|
4816
|
+
children: [/*#__PURE__*/jsx(TrendingUp, {
|
|
4817
|
+
sx: {
|
|
4818
|
+
fontSize: "12px"
|
|
4819
|
+
}
|
|
4820
|
+
}), " ", acceptanceTrend]
|
|
4821
|
+
})]
|
|
4822
|
+
})]
|
|
4823
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4824
|
+
sx: {
|
|
4825
|
+
display: "flex",
|
|
4826
|
+
justifyContent: "space-between",
|
|
4827
|
+
alignItems: "center"
|
|
4828
|
+
},
|
|
4829
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
4830
|
+
sx: {
|
|
4831
|
+
display: "flex",
|
|
4832
|
+
alignItems: "center",
|
|
4833
|
+
gap: 1
|
|
4834
|
+
},
|
|
4835
|
+
children: [/*#__PURE__*/jsx(Box, {
|
|
4836
|
+
sx: {
|
|
4837
|
+
width: 10,
|
|
4838
|
+
height: 10,
|
|
4839
|
+
bgcolor: chartColors[1],
|
|
4840
|
+
borderRadius: "2px"
|
|
4841
|
+
}
|
|
4842
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
4843
|
+
sx: {
|
|
4844
|
+
fontSize: "13px",
|
|
4845
|
+
color: "rgba(0, 0, 0, 0.5)",
|
|
4846
|
+
fontWeight: 500
|
|
4847
|
+
},
|
|
4848
|
+
children: "Raised"
|
|
4849
|
+
})]
|
|
4850
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
4851
|
+
sx: {
|
|
4852
|
+
display: "flex",
|
|
4853
|
+
alignItems: "center",
|
|
4854
|
+
gap: 0.5
|
|
4855
|
+
},
|
|
4856
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
4857
|
+
sx: {
|
|
4858
|
+
fontSize: "13px",
|
|
4859
|
+
fontWeight: 700,
|
|
4860
|
+
color: "#000"
|
|
4861
|
+
},
|
|
4862
|
+
children: raisedVal
|
|
4863
|
+
}), /*#__PURE__*/jsxs(Typography, {
|
|
4864
|
+
sx: {
|
|
4865
|
+
fontSize: "10px",
|
|
4866
|
+
fontWeight: 700,
|
|
4867
|
+
color: "#22C55E",
|
|
4868
|
+
display: "flex",
|
|
4869
|
+
alignItems: "center"
|
|
4870
|
+
},
|
|
4871
|
+
children: [/*#__PURE__*/jsx(TrendingUp, {
|
|
4872
|
+
sx: {
|
|
4873
|
+
fontSize: "12px"
|
|
4874
|
+
}
|
|
4875
|
+
}), " ", raisedTrend]
|
|
4876
|
+
})]
|
|
4877
|
+
})]
|
|
4878
|
+
})]
|
|
4879
|
+
})]
|
|
4880
|
+
});
|
|
4881
|
+
};
|
|
4882
|
+
|
|
4883
|
+
var DonationTypeBarChart = function DonationTypeBarChart() {
|
|
4884
|
+
var chartOptions = {
|
|
4885
|
+
chart: {
|
|
4886
|
+
type: "bar",
|
|
4887
|
+
toolbar: {
|
|
4888
|
+
show: false
|
|
4889
|
+
},
|
|
4890
|
+
zoom: {
|
|
4891
|
+
enabled: false
|
|
4892
|
+
},
|
|
4893
|
+
fontFamily: "Inter, sans-serif"
|
|
4894
|
+
},
|
|
4895
|
+
plotOptions: {
|
|
4896
|
+
bar: {
|
|
4897
|
+
horizontal: false,
|
|
4898
|
+
columnWidth: "70%",
|
|
4899
|
+
borderRadius: 4,
|
|
4900
|
+
dataLabels: {
|
|
4901
|
+
position: "top"
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
},
|
|
4905
|
+
dataLabels: {
|
|
4906
|
+
enabled: true,
|
|
4907
|
+
formatter: function formatter(val) {
|
|
4908
|
+
return "$".concat(val, "K");
|
|
4909
|
+
},
|
|
4910
|
+
offsetY: -22,
|
|
4911
|
+
style: {
|
|
4912
|
+
fontSize: "10px",
|
|
4913
|
+
fontWeight: 700,
|
|
4914
|
+
colors: ["#000"]
|
|
4915
|
+
}
|
|
4916
|
+
},
|
|
4917
|
+
stroke: {
|
|
4918
|
+
show: true,
|
|
4919
|
+
width: 2,
|
|
4920
|
+
colors: ["transparent"]
|
|
4921
|
+
},
|
|
4922
|
+
xaxis: {
|
|
4923
|
+
categories: ["Wk 1", "Wk 2", "Wk 3", "May 3-4"],
|
|
4924
|
+
axisBorder: {
|
|
4925
|
+
show: false
|
|
4926
|
+
},
|
|
4927
|
+
axisTicks: {
|
|
4928
|
+
show: false
|
|
4929
|
+
},
|
|
4930
|
+
labels: {
|
|
4931
|
+
style: {
|
|
4932
|
+
colors: "rgba(0, 0, 0, 0.4)",
|
|
4933
|
+
fontSize: "11px"
|
|
4934
|
+
}
|
|
4935
|
+
}
|
|
4936
|
+
},
|
|
4937
|
+
yaxis: {
|
|
4938
|
+
min: 0,
|
|
4939
|
+
max: 60,
|
|
4940
|
+
tickAmount: 3,
|
|
4941
|
+
labels: {
|
|
4942
|
+
formatter: function formatter(val) {
|
|
4943
|
+
return val === 40 ? "" : "$".concat(val, "K");
|
|
4944
|
+
},
|
|
4945
|
+
style: {
|
|
4946
|
+
colors: "rgba(0, 0, 0, 0.4)",
|
|
4947
|
+
fontSize: "10px"
|
|
4948
|
+
}
|
|
4949
|
+
}
|
|
4950
|
+
},
|
|
4951
|
+
fill: {
|
|
4952
|
+
opacity: 1
|
|
4953
|
+
},
|
|
4954
|
+
colors: ["rgb(99, 99, 230)", "#10B981"],
|
|
4955
|
+
grid: {
|
|
4956
|
+
borderColor: "#f1f1f1",
|
|
4957
|
+
strokeDashArray: 4,
|
|
4958
|
+
padding: {
|
|
4959
|
+
left: 0,
|
|
4960
|
+
right: 0
|
|
4961
|
+
},
|
|
4962
|
+
yaxis: {
|
|
4963
|
+
lines: {
|
|
4964
|
+
show: true
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
},
|
|
4968
|
+
legend: {
|
|
4969
|
+
show: false
|
|
4970
|
+
},
|
|
4971
|
+
tooltip: {
|
|
4972
|
+
y: {
|
|
4973
|
+
formatter: function formatter(val) {
|
|
4974
|
+
return "$".concat(val, "K");
|
|
4975
|
+
}
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
};
|
|
4979
|
+
var series = [{
|
|
4980
|
+
name: "Recurring",
|
|
4981
|
+
data: [9.2, 11.8, 13.4, 4.9]
|
|
4982
|
+
}, {
|
|
4983
|
+
name: "One-time",
|
|
4984
|
+
data: [32.4, 41.2, 46.8, 14.3]
|
|
4985
|
+
}];
|
|
4986
|
+
return /*#__PURE__*/jsxs(Card, {
|
|
4987
|
+
sx: {
|
|
4988
|
+
bgcolor: "#fff",
|
|
4989
|
+
borderRadius: 4,
|
|
4990
|
+
border: "1px solid #f0f0f0",
|
|
4991
|
+
boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
|
|
4992
|
+
p: 3
|
|
4993
|
+
// height: "100%",
|
|
4994
|
+
},
|
|
4995
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
4996
|
+
sx: {
|
|
4997
|
+
display: "flex",
|
|
4998
|
+
flexDirection: "column",
|
|
4999
|
+
mb: 1
|
|
5000
|
+
},
|
|
5001
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
5002
|
+
sx: {
|
|
5003
|
+
textAlign: "left"
|
|
5004
|
+
},
|
|
5005
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
5006
|
+
sx: {
|
|
5007
|
+
fontWeight: 700,
|
|
5008
|
+
fontSize: "18px",
|
|
5009
|
+
color: "#000"
|
|
5010
|
+
},
|
|
5011
|
+
children: "Recurring vs one-time"
|
|
5012
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
5013
|
+
sx: {
|
|
5014
|
+
fontSize: "13px",
|
|
5015
|
+
color: "rgba(0, 0, 0, 0.4)",
|
|
5016
|
+
mt: 0
|
|
5017
|
+
},
|
|
5018
|
+
children: "Donation type \xB7 weekly"
|
|
5019
|
+
})]
|
|
5020
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
5021
|
+
sx: {
|
|
5022
|
+
display: "flex",
|
|
5023
|
+
gap: 1.5,
|
|
5024
|
+
mt: 0.5,
|
|
5025
|
+
mb: 2
|
|
5026
|
+
},
|
|
5027
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
5028
|
+
sx: {
|
|
5029
|
+
display: "flex",
|
|
5030
|
+
alignItems: "center",
|
|
5031
|
+
gap: 0.5
|
|
5032
|
+
},
|
|
5033
|
+
children: [/*#__PURE__*/jsx(Box, {
|
|
5034
|
+
sx: {
|
|
5035
|
+
width: 8,
|
|
5036
|
+
height: 8,
|
|
5037
|
+
bgcolor: "rgb(99, 99, 230)",
|
|
5038
|
+
borderRadius: "50%"
|
|
5039
|
+
}
|
|
5040
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
5041
|
+
sx: {
|
|
5042
|
+
fontSize: "13px",
|
|
5043
|
+
color: "rgba(0, 0, 0, 0.5)",
|
|
5044
|
+
fontWeight: 500
|
|
4465
5045
|
},
|
|
4466
|
-
children:
|
|
4467
|
-
sx: {
|
|
4468
|
-
width: 8,
|
|
4469
|
-
height: 8,
|
|
4470
|
-
bgcolor: "#10B981",
|
|
4471
|
-
borderRadius: "50%"
|
|
4472
|
-
}
|
|
4473
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
4474
|
-
sx: {
|
|
4475
|
-
fontSize: "12px",
|
|
4476
|
-
color: "rgba(0, 0, 0, 0.4)",
|
|
4477
|
-
fontWeight: 500
|
|
4478
|
-
},
|
|
4479
|
-
children: "One-time"
|
|
4480
|
-
})]
|
|
5046
|
+
children: "Recurring"
|
|
4481
5047
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4482
5048
|
sx: {
|
|
4483
|
-
fontSize: "
|
|
4484
|
-
fontWeight:
|
|
5049
|
+
fontSize: "13px",
|
|
5050
|
+
fontWeight: 600,
|
|
5051
|
+
color: "#000"
|
|
5052
|
+
},
|
|
5053
|
+
children: "$54,937"
|
|
5054
|
+
})]
|
|
5055
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
5056
|
+
sx: {
|
|
5057
|
+
display: "flex",
|
|
5058
|
+
alignItems: "center",
|
|
5059
|
+
gap: 0.5
|
|
5060
|
+
},
|
|
5061
|
+
children: [/*#__PURE__*/jsx(Box, {
|
|
5062
|
+
sx: {
|
|
5063
|
+
width: 8,
|
|
5064
|
+
height: 8,
|
|
5065
|
+
bgcolor: "#10B981",
|
|
5066
|
+
borderRadius: "50%"
|
|
5067
|
+
}
|
|
5068
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
5069
|
+
sx: {
|
|
5070
|
+
fontSize: "13px",
|
|
5071
|
+
color: "rgba(0, 0, 0, 0.5)",
|
|
5072
|
+
fontWeight: 500
|
|
5073
|
+
},
|
|
5074
|
+
children: "One-time"
|
|
5075
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
5076
|
+
sx: {
|
|
5077
|
+
fontSize: "13px",
|
|
5078
|
+
fontWeight: 600,
|
|
4485
5079
|
color: "#000"
|
|
4486
5080
|
},
|
|
4487
|
-
children: "$
|
|
5081
|
+
children: "$188,001"
|
|
4488
5082
|
})]
|
|
4489
5083
|
})]
|
|
4490
5084
|
})]
|
|
4491
5085
|
}), /*#__PURE__*/jsx(Box, {
|
|
4492
5086
|
sx: {
|
|
4493
|
-
height:
|
|
4494
|
-
width: "100%"
|
|
5087
|
+
height: 170,
|
|
5088
|
+
width: "calc(100% + 48px)",
|
|
5089
|
+
ml: -3,
|
|
5090
|
+
mr: -3,
|
|
5091
|
+
mb: 7.5
|
|
4495
5092
|
},
|
|
4496
5093
|
children: /*#__PURE__*/jsx(ReactApexChart, {
|
|
4497
5094
|
options: chartOptions,
|
|
@@ -4552,7 +5149,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard() {
|
|
|
4552
5149
|
yaxis: {
|
|
4553
5150
|
min: 0,
|
|
4554
5151
|
max: 2,
|
|
4555
|
-
tickAmount:
|
|
5152
|
+
tickAmount: 2,
|
|
4556
5153
|
labels: {
|
|
4557
5154
|
formatter: function formatter(val) {
|
|
4558
5155
|
return "".concat(val, "%");
|
|
@@ -4624,7 +5221,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard() {
|
|
|
4624
5221
|
},
|
|
4625
5222
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
4626
5223
|
sx: {
|
|
4627
|
-
mb:
|
|
5224
|
+
mb: 0
|
|
4628
5225
|
},
|
|
4629
5226
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
4630
5227
|
sx: {
|
|
@@ -4647,14 +5244,14 @@ var RefundsChargebacksCard = function RefundsChargebacksCard() {
|
|
|
4647
5244
|
sx: {
|
|
4648
5245
|
display: "flex",
|
|
4649
5246
|
gap: 10,
|
|
4650
|
-
mb:
|
|
5247
|
+
mb: 1.5
|
|
4651
5248
|
},
|
|
4652
5249
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
4653
5250
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
4654
5251
|
sx: {
|
|
4655
5252
|
fontSize: "10px",
|
|
4656
5253
|
fontWeight: 700,
|
|
4657
|
-
color: "#
|
|
5254
|
+
color: "#22C55E",
|
|
4658
5255
|
textTransform: "uppercase"
|
|
4659
5256
|
},
|
|
4660
5257
|
children: "Refunds"
|
|
@@ -4710,7 +5307,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard() {
|
|
|
4710
5307
|
})]
|
|
4711
5308
|
}), /*#__PURE__*/jsx(Box, {
|
|
4712
5309
|
sx: {
|
|
4713
|
-
mb:
|
|
5310
|
+
mb: 0
|
|
4714
5311
|
},
|
|
4715
5312
|
children: /*#__PURE__*/jsx(Typography, {
|
|
4716
5313
|
sx: {
|
|
@@ -4719,13 +5316,13 @@ var RefundsChargebacksCard = function RefundsChargebacksCard() {
|
|
|
4719
5316
|
fontWeight: 500,
|
|
4720
5317
|
textAlign: "left"
|
|
4721
5318
|
},
|
|
4722
|
-
children: "$1,927 refunded \xB7 $215 disputed \xB7
|
|
5319
|
+
children: "$1,927 refunded \xB7 $215 disputed \xB7 0 cases total"
|
|
4723
5320
|
})
|
|
4724
5321
|
}), /*#__PURE__*/jsxs(Box, {
|
|
4725
5322
|
sx: {
|
|
4726
5323
|
display: "flex",
|
|
4727
5324
|
gap: 2,
|
|
4728
|
-
mb:
|
|
5325
|
+
mb: 0
|
|
4729
5326
|
},
|
|
4730
5327
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
4731
5328
|
sx: {
|
|
@@ -4772,7 +5369,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard() {
|
|
|
4772
5369
|
})]
|
|
4773
5370
|
}), /*#__PURE__*/jsx(Box, {
|
|
4774
5371
|
sx: {
|
|
4775
|
-
height:
|
|
5372
|
+
height: 160,
|
|
4776
5373
|
width: "100%"
|
|
4777
5374
|
},
|
|
4778
5375
|
children: /*#__PURE__*/jsx(ReactApexChart, {
|
|
@@ -5041,6 +5638,53 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5041
5638
|
});
|
|
5042
5639
|
}
|
|
5043
5640
|
}
|
|
5641
|
+
if (activeMetric === "Avg donation") {
|
|
5642
|
+
var avgData = apiData === null || apiData === void 0 ? void 0 : apiData.averageDonations;
|
|
5643
|
+
var _hasStackedData3 = (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);
|
|
5644
|
+
if (_hasStackedData3) {
|
|
5645
|
+
var _categories3 = ((avgData === null || avgData === void 0 ? void 0 : avgData.organic) || (avgData === null || avgData === void 0 ? void 0 : avgData.paidAds) || (avgData === null || avgData === void 0 ? void 0 : avgData.email) || []).map(function (item) {
|
|
5646
|
+
return item.date;
|
|
5647
|
+
});
|
|
5648
|
+
var _series3 = [{
|
|
5649
|
+
name: "Paid Ads",
|
|
5650
|
+
data: ((avgData === null || avgData === void 0 ? void 0 : avgData.paidAds) || []).map(function (item) {
|
|
5651
|
+
return item.value;
|
|
5652
|
+
})
|
|
5653
|
+
}, {
|
|
5654
|
+
name: "Organic",
|
|
5655
|
+
data: ((avgData === null || avgData === void 0 ? void 0 : avgData.organic) || []).map(function (item) {
|
|
5656
|
+
return item.value;
|
|
5657
|
+
})
|
|
5658
|
+
}, {
|
|
5659
|
+
name: "Email",
|
|
5660
|
+
data: ((avgData === null || avgData === void 0 ? void 0 : avgData.email) || []).map(function (item) {
|
|
5661
|
+
return item.value;
|
|
5662
|
+
})
|
|
5663
|
+
}];
|
|
5664
|
+
mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
|
|
5665
|
+
label: "Average donation trend",
|
|
5666
|
+
data: undefined,
|
|
5667
|
+
series: _series3,
|
|
5668
|
+
categories: _categories3,
|
|
5669
|
+
stacked: true,
|
|
5670
|
+
colors: ["#6366F1", "#10B981", "#06B6D4"],
|
|
5671
|
+
hideControls: true
|
|
5672
|
+
});
|
|
5673
|
+
} else if (Array.isArray(avgData) && avgData.length > 0) {
|
|
5674
|
+
mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
|
|
5675
|
+
label: "Average donation trend",
|
|
5676
|
+
data: avgData.map(function (item) {
|
|
5677
|
+
return item.value;
|
|
5678
|
+
}),
|
|
5679
|
+
categories: avgData.map(function (item) {
|
|
5680
|
+
return item.date;
|
|
5681
|
+
}),
|
|
5682
|
+
series: undefined,
|
|
5683
|
+
stacked: false,
|
|
5684
|
+
hideControls: true
|
|
5685
|
+
});
|
|
5686
|
+
}
|
|
5687
|
+
}
|
|
5044
5688
|
mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
|
|
5045
5689
|
label: mainChart.label || activeMetric,
|
|
5046
5690
|
value: selectedInfo.value,
|
|
@@ -5078,11 +5722,13 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5078
5722
|
children: [/*#__PURE__*/jsx(Grid, {
|
|
5079
5723
|
item: true,
|
|
5080
5724
|
xs: 12,
|
|
5081
|
-
md:
|
|
5725
|
+
md: 9,
|
|
5082
5726
|
children: /*#__PURE__*/jsx(ActiveCampaignsCard, {
|
|
5083
5727
|
title: "Active campaigns",
|
|
5084
5728
|
subtitle: "Live fundraisers ranked by velocity",
|
|
5085
|
-
columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"
|
|
5729
|
+
columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"
|
|
5730
|
+
// "Status",
|
|
5731
|
+
],
|
|
5086
5732
|
rows: [{
|
|
5087
5733
|
id: "OS",
|
|
5088
5734
|
name: "Orphan sponsorship — Yemen",
|
|
@@ -5090,10 +5736,10 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5090
5736
|
type: "progress",
|
|
5091
5737
|
progress: 78,
|
|
5092
5738
|
val3: "82",
|
|
5093
|
-
val4: "$956"
|
|
5094
|
-
status: "Active",
|
|
5095
|
-
statusColor: "#22C55E",
|
|
5096
|
-
statusBg: "#DCFCE7"
|
|
5739
|
+
val4: "$956"
|
|
5740
|
+
// status: "Active",
|
|
5741
|
+
// statusColor: "#22C55E",
|
|
5742
|
+
// statusBg: "#DCFCE7",
|
|
5097
5743
|
}, {
|
|
5098
5744
|
id: "EF",
|
|
5099
5745
|
name: "Emergency food — Gaza",
|
|
@@ -5101,10 +5747,10 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5101
5747
|
type: "progress",
|
|
5102
5748
|
progress: 83,
|
|
5103
5749
|
val3: "61",
|
|
5104
|
-
val4: "$1,018"
|
|
5105
|
-
status: "Active",
|
|
5106
|
-
statusColor: "#22C55E",
|
|
5107
|
-
statusBg: "#DCFCE7"
|
|
5750
|
+
val4: "$1,018"
|
|
5751
|
+
// status: "Active",
|
|
5752
|
+
// statusColor: "#22C55E",
|
|
5753
|
+
// statusBg: "#DCFCE7",
|
|
5108
5754
|
}, {
|
|
5109
5755
|
id: "MB",
|
|
5110
5756
|
name: "Masjid build — Somalia",
|
|
@@ -5112,11 +5758,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5112
5758
|
type: "progress",
|
|
5113
5759
|
progress: 48,
|
|
5114
5760
|
val3: "34",
|
|
5115
|
-
val4: "$1,124"
|
|
5116
|
-
status: "Slow",
|
|
5117
|
-
statusColor: "#B45309",
|
|
5118
|
-
statusBg: "#FEF3C7",
|
|
5119
|
-
progressColor: "#F59E0B"
|
|
5761
|
+
val4: "$1,124"
|
|
5762
|
+
// status: "Slow",
|
|
5763
|
+
// statusColor: "#B45309",
|
|
5764
|
+
// statusBg: "#FEF3C7",
|
|
5765
|
+
// progressColor: "#F59E0B",
|
|
5120
5766
|
}, {
|
|
5121
5767
|
id: "WW",
|
|
5122
5768
|
name: "Water wells — Pakistan",
|
|
@@ -5124,11 +5770,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5124
5770
|
type: "progress",
|
|
5125
5771
|
progress: 99,
|
|
5126
5772
|
val3: "28",
|
|
5127
|
-
val4: "$1,064"
|
|
5128
|
-
status: "Closing",
|
|
5129
|
-
statusColor: "#6366F1",
|
|
5130
|
-
statusBg: "#EEF2FF",
|
|
5131
|
-
progressColor: "#10B981"
|
|
5773
|
+
val4: "$1,064"
|
|
5774
|
+
// status: "Closing",
|
|
5775
|
+
// statusColor: "#6366F1",
|
|
5776
|
+
// statusBg: "#EEF2FF",
|
|
5777
|
+
// progressColor: "#10B981",
|
|
5132
5778
|
}, {
|
|
5133
5779
|
id: "RP",
|
|
5134
5780
|
name: "Ramadan packs — Egypt",
|
|
@@ -5136,16 +5782,16 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5136
5782
|
type: "progress",
|
|
5137
5783
|
progress: 78,
|
|
5138
5784
|
val3: "10",
|
|
5139
|
-
val4: "$1,940"
|
|
5140
|
-
status: "Active",
|
|
5141
|
-
statusColor: "#22C55E",
|
|
5142
|
-
statusBg: "#DCFCE7"
|
|
5785
|
+
val4: "$1,940"
|
|
5786
|
+
// status: "Active",
|
|
5787
|
+
// statusColor: "#22C55E",
|
|
5788
|
+
// statusBg: "#DCFCE7",
|
|
5143
5789
|
}]
|
|
5144
5790
|
})
|
|
5145
5791
|
}), /*#__PURE__*/jsx(Grid, {
|
|
5146
5792
|
item: true,
|
|
5147
5793
|
xs: 12,
|
|
5148
|
-
md:
|
|
5794
|
+
md: 3,
|
|
5149
5795
|
sx: {
|
|
5150
5796
|
display: "flex"
|
|
5151
5797
|
},
|
|
@@ -5181,16 +5827,100 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5181
5827
|
},
|
|
5182
5828
|
children: [/*#__PURE__*/jsx(Grid, {
|
|
5183
5829
|
item: true,
|
|
5184
|
-
|
|
5830
|
+
xs: 12,
|
|
5831
|
+
md: 3,
|
|
5185
5832
|
children: /*#__PURE__*/jsx(DonationTypeBarChart, {})
|
|
5186
5833
|
}), /*#__PURE__*/jsx(Grid, {
|
|
5187
5834
|
item: true,
|
|
5188
|
-
|
|
5835
|
+
xs: 12,
|
|
5836
|
+
md: 3,
|
|
5189
5837
|
children: /*#__PURE__*/jsx(PaidDonorGeographyCard, {})
|
|
5190
5838
|
}), /*#__PURE__*/jsx(Grid, {
|
|
5191
5839
|
item: true,
|
|
5192
|
-
|
|
5840
|
+
xs: 12,
|
|
5841
|
+
md: 3,
|
|
5193
5842
|
children: /*#__PURE__*/jsx(RefundsChargebacksCard, {})
|
|
5843
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
5844
|
+
item: true,
|
|
5845
|
+
xs: 12,
|
|
5846
|
+
md: 3,
|
|
5847
|
+
children: /*#__PURE__*/jsx(TrafficSourceCard, {})
|
|
5848
|
+
})]
|
|
5849
|
+
}), /*#__PURE__*/jsxs(Grid, {
|
|
5850
|
+
container: true,
|
|
5851
|
+
spacing: 3,
|
|
5852
|
+
sx: {
|
|
5853
|
+
mt: 1,
|
|
5854
|
+
mb: 2
|
|
5855
|
+
},
|
|
5856
|
+
children: [/*#__PURE__*/jsx(Grid, {
|
|
5857
|
+
item: true,
|
|
5858
|
+
xs: 12,
|
|
5859
|
+
md: 3,
|
|
5860
|
+
children: /*#__PURE__*/jsx(MetricSparklineCard, {
|
|
5861
|
+
title: "Order Bump",
|
|
5862
|
+
subtitle: "Revenue trend \xB7 last 30 days",
|
|
5863
|
+
value: "$19.2K",
|
|
5864
|
+
trend: "\u25B2 8.7% vs last month",
|
|
5865
|
+
chartData: [1200, 1500, 1300, 1800, 1600, 2100, 1920],
|
|
5866
|
+
footerMetrics: [{
|
|
5867
|
+
label: "Avg/day",
|
|
5868
|
+
value: "$640"
|
|
5869
|
+
}, {
|
|
5870
|
+
label: "Peak day",
|
|
5871
|
+
value: "$1.4K"
|
|
5872
|
+
}, {
|
|
5873
|
+
label: "Orders",
|
|
5874
|
+
value: "84"
|
|
5875
|
+
}]
|
|
5876
|
+
})
|
|
5877
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
5878
|
+
item: true,
|
|
5879
|
+
xs: 12,
|
|
5880
|
+
md: 3,
|
|
5881
|
+
children: /*#__PURE__*/jsx(MetricDonutCard, {
|
|
5882
|
+
title: "Upsell",
|
|
5883
|
+
subtitle: "Acceptance & raised",
|
|
5884
|
+
acceptanceRate: 34,
|
|
5885
|
+
acceptanceVal: "34.2%",
|
|
5886
|
+
acceptanceTrend: "4.1%",
|
|
5887
|
+
raisedVal: "$28.4K",
|
|
5888
|
+
raisedTrend: "11.3%"
|
|
5889
|
+
})
|
|
5890
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
5891
|
+
item: true,
|
|
5892
|
+
xs: 12,
|
|
5893
|
+
md: 3,
|
|
5894
|
+
children: /*#__PURE__*/jsx(MetricDonutCard, {
|
|
5895
|
+
title: "Downsell",
|
|
5896
|
+
subtitle: "Acceptance & raised",
|
|
5897
|
+
acceptanceRate: 19,
|
|
5898
|
+
acceptanceVal: "18.7%",
|
|
5899
|
+
acceptanceTrend: "2.3%",
|
|
5900
|
+
raisedVal: "$11.9K",
|
|
5901
|
+
raisedTrend: "6.8%"
|
|
5902
|
+
})
|
|
5903
|
+
}), /*#__PURE__*/jsx(Grid, {
|
|
5904
|
+
item: true,
|
|
5905
|
+
xs: 12,
|
|
5906
|
+
md: 3,
|
|
5907
|
+
children: /*#__PURE__*/jsx(MetricSparklineCard, {
|
|
5908
|
+
title: "Referrals",
|
|
5909
|
+
subtitle: "Revenue trend \xB7 last 30 days",
|
|
5910
|
+
value: "$22.7K",
|
|
5911
|
+
trend: "\u25B2 9.1% vs last month",
|
|
5912
|
+
chartData: [1500, 1700, 1600, 2200, 1900, 2400, 2270],
|
|
5913
|
+
footerMetrics: [{
|
|
5914
|
+
label: "Referrers",
|
|
5915
|
+
value: "38"
|
|
5916
|
+
}, {
|
|
5917
|
+
label: "Avg gift",
|
|
5918
|
+
value: "$598"
|
|
5919
|
+
}, {
|
|
5920
|
+
label: "Conv. rate",
|
|
5921
|
+
value: "27.5%"
|
|
5922
|
+
}]
|
|
5923
|
+
})
|
|
5194
5924
|
})]
|
|
5195
5925
|
})]
|
|
5196
5926
|
});
|
|
@@ -5416,8 +6146,10 @@ var PaidSection = function PaidSection() {
|
|
|
5416
6146
|
val: "3.3%",
|
|
5417
6147
|
color: "#FFFC00"
|
|
5418
6148
|
}],
|
|
5419
|
-
showBottomSummary: false
|
|
5420
|
-
|
|
6149
|
+
showBottomSummary: false,
|
|
6150
|
+
sx: {
|
|
6151
|
+
pb: 3.5
|
|
6152
|
+
}
|
|
5421
6153
|
})
|
|
5422
6154
|
})]
|
|
5423
6155
|
}), /*#__PURE__*/jsxs(Grid, {
|