@ammarkhalidfarooq/dashboard-package 0.6.113 → 0.6.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { Suspense, lazy, useState, useRef, useEffect, useMemo } from 'react';
2
- import { Box, Button, Menu, MenuItem, Grid, Card, CardContent, Typography, IconButton, ThemeProvider, CircularProgress, Avatar, LinearProgress, Stack, Dialog, DialogTitle, DialogContent, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Skeleton } from '@mui/material';
2
+ import { Box, Button, Menu, MenuItem, Grid, Card, CardContent, Typography, IconButton, ThemeProvider, CircularProgress, Avatar, LinearProgress, Stack, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Skeleton } from '@mui/material';
3
3
  import { MoreHoriz, TrendingDown, TrendingUp, MoreVert, Check, InfoOutlined, Settings, PeopleAltOutlined, PaidOutlined, PersonOutlined, IndeterminateCheckBoxOutlined, FavoriteOutlined, SearchOutlined, HighlightOff, Email } from '@mui/icons-material';
4
4
  import { createTheme, useTheme } from '@mui/material/styles';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -7,7 +7,6 @@ import Grid$1 from '@mui/material/Grid';
7
7
  import Box$1 from '@mui/material/Box';
8
8
  import Typography$1 from '@mui/material/Typography';
9
9
  import ReactApexChart from 'react-apexcharts';
10
- import CloseIcon from '@mui/icons-material/Close';
11
10
 
12
11
  var theme = createTheme({
13
12
  cssVariables: true,
@@ -6606,65 +6605,100 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
6606
6605
  value: item.donations !== undefined ? item.donations : item.value || 0
6607
6606
  };
6608
6607
  });
6609
- return /*#__PURE__*/jsx(CardWrapper, {
6610
- title: "Paid Donor Geography",
6611
- subtitle: "Where ad-acquired donors come from",
6608
+ return /*#__PURE__*/jsxs(Card, {
6612
6609
  sx: _objectSpread2({
6613
- width: "100%"
6610
+ bgcolor: "#fff",
6611
+ borderRadius: 4,
6612
+ border: "1px solid #f0f0f0",
6613
+ boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
6614
+ p: 3,
6615
+ width: "100%",
6616
+ display: "flex",
6617
+ flexDirection: "column",
6618
+ boxSizing: "border-box"
6614
6619
  }, sx),
6615
- children: data.length === 0 ? /*#__PURE__*/jsx(Typography, {
6620
+ children: [/*#__PURE__*/jsxs(Box, {
6621
+ sx: {
6622
+ marginBottom: "12px"
6623
+ },
6624
+ children: [/*#__PURE__*/jsx(Typography, {
6625
+ sx: {
6626
+ fontWeight: 700,
6627
+ fontSize: "18px",
6628
+ color: "#000",
6629
+ textAlign: "left",
6630
+ lineHeight: 1.15
6631
+ },
6632
+ children: "Paid Donor Geography"
6633
+ }), /*#__PURE__*/jsx(Typography, {
6634
+ sx: {
6635
+ fontSize: "13px",
6636
+ color: "rgba(0, 0, 0, 0.4)",
6637
+ textAlign: "left",
6638
+ lineHeight: 1.15
6639
+ },
6640
+ children: "Where ad-acquired donors come from"
6641
+ })]
6642
+ }), data.length === 0 ? /*#__PURE__*/jsx(Typography, {
6616
6643
  sx: {
6617
6644
  fontSize: "13px",
6618
6645
  color: "rgba(0, 0, 0, 0.4)",
6619
6646
  py: 2
6620
6647
  },
6621
6648
  children: "No geography data for this period"
6622
- }) : data.map(function (item, index) {
6623
- return /*#__PURE__*/jsxs(Box, {
6624
- sx: {
6625
- display: "flex",
6626
- alignItems: "center",
6627
- gap: 2,
6628
- py: 0.7
6629
- },
6630
- children: [/*#__PURE__*/jsx(Typography, {
6631
- sx: {
6632
- fontSize: "13px",
6633
- fontWeight: 500,
6634
- color: "rgba(0, 0, 0, 0.4)",
6635
- minWidth: "100px",
6636
- textAlign: "left"
6637
- },
6638
- children: item.country
6639
- }), /*#__PURE__*/jsx(Box, {
6649
+ }) : /*#__PURE__*/jsx(Box, {
6650
+ sx: {
6651
+ display: "flex",
6652
+ flexDirection: "column",
6653
+ gap: 1
6654
+ },
6655
+ children: data.map(function (item, index) {
6656
+ return /*#__PURE__*/jsxs(Box, {
6640
6657
  sx: {
6641
- flexGrow: 1
6658
+ display: "flex",
6659
+ alignItems: "center",
6660
+ gap: 2,
6661
+ py: 0.7
6642
6662
  },
6643
- children: /*#__PURE__*/jsx(LinearProgress, {
6644
- variant: "determinate",
6645
- value: item.percentage,
6663
+ children: [/*#__PURE__*/jsx(Typography, {
6646
6664
  sx: {
6647
- height: 8,
6648
- borderRadius: 4,
6649
- bgcolor: "#F3F4F6",
6650
- "& .MuiLinearProgress-bar": {
6665
+ fontSize: "13px",
6666
+ fontWeight: 500,
6667
+ color: "rgba(0, 0, 0, 0.4)",
6668
+ minWidth: "100px",
6669
+ textAlign: "left"
6670
+ },
6671
+ children: item.country
6672
+ }), /*#__PURE__*/jsx(Box, {
6673
+ sx: {
6674
+ flexGrow: 1
6675
+ },
6676
+ children: /*#__PURE__*/jsx(LinearProgress, {
6677
+ variant: "determinate",
6678
+ value: item.percentage,
6679
+ sx: {
6680
+ height: 8,
6651
6681
  borderRadius: 4,
6652
- bgcolor: "#6366F1"
6682
+ bgcolor: "#F3F4F6",
6683
+ "& .MuiLinearProgress-bar": {
6684
+ borderRadius: 4,
6685
+ bgcolor: "#6366F1"
6686
+ }
6653
6687
  }
6654
- }
6655
- })
6656
- }), /*#__PURE__*/jsxs(Typography, {
6657
- sx: {
6658
- fontSize: "13px",
6659
- fontWeight: 700,
6660
- color: "#111",
6661
- minWidth: "60px",
6662
- textAlign: "right"
6663
- },
6664
- children: [item.value, " - ", item.percentage, "%"]
6665
- })]
6666
- }, index);
6667
- })
6688
+ })
6689
+ }), /*#__PURE__*/jsxs(Typography, {
6690
+ sx: {
6691
+ fontSize: "13px",
6692
+ fontWeight: 700,
6693
+ color: "#111",
6694
+ minWidth: "60px",
6695
+ textAlign: "right"
6696
+ },
6697
+ children: [item.value, " - ", item.percentage, "%"]
6698
+ })]
6699
+ }, index);
6700
+ })
6701
+ })]
6668
6702
  });
6669
6703
  };
6670
6704
 
@@ -7054,316 +7088,6 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
7054
7088
  });
7055
7089
  };
7056
7090
 
7057
- var BORDER$1 = "1px solid #e0e0e0";
7058
- var ROWS_PER_PAGE = 10;
7059
- var headerCellSx$1 = {
7060
- fontWeight: 700,
7061
- fontSize: "0.78rem",
7062
- color: "#111",
7063
- bgcolor: "#f3f3f3",
7064
- borderBottom: BORDER$1,
7065
- borderRight: BORDER$1,
7066
- py: "12px",
7067
- px: "16px",
7068
- lineHeight: 1.4,
7069
- textAlign: "left",
7070
- "&:last-child": {
7071
- borderRight: 0
7072
- }
7073
- };
7074
- var cellSx$1 = {
7075
- fontSize: "0.85rem",
7076
- color: "#333",
7077
- borderBottom: BORDER$1,
7078
- borderRight: BORDER$1,
7079
- py: "12px",
7080
- px: "16px",
7081
- verticalAlign: "middle",
7082
- textAlign: "left",
7083
- "&:last-child": {
7084
- borderRight: 0
7085
- }
7086
- };
7087
- var MOCK_ROWS = [{
7088
- date: "Jun 1, 2026",
7089
- campaignName: "Ramadan 2024 - Global Feed",
7090
- donorType: "New Donor",
7091
- raised: "$4,520.00"
7092
- }, {
7093
- date: "Jun 2, 2026",
7094
- campaignName: "Water for Life - East Africa",
7095
- donorType: "Returning",
7096
- raised: "$1,280.00"
7097
- }, {
7098
- date: "Jun 3, 2026",
7099
- campaignName: "Orphan Care - Palestine",
7100
- donorType: "New Donor",
7101
- raised: "$2,850.00"
7102
- }, {
7103
- date: "Jun 4, 2026",
7104
- campaignName: "Emergency Relief - Yemen",
7105
- donorType: "Returning",
7106
- raised: "$1,540.00"
7107
- }, {
7108
- date: "Jun 5, 2026",
7109
- campaignName: "Education Fund - Syria",
7110
- donorType: "New Donor",
7111
- raised: "$980.00"
7112
- }, {
7113
- date: "Jun 6, 2026",
7114
- campaignName: "Medical Aid - Gaza",
7115
- donorType: "Returning",
7116
- raised: "$3,120.00"
7117
- }, {
7118
- date: "Jun 7, 2026",
7119
- campaignName: "Food Security - Sudan",
7120
- donorType: "New Donor",
7121
- raised: "$760.00"
7122
- }, {
7123
- date: "Jun 8, 2026",
7124
- campaignName: "Winter Relief - Afghanistan",
7125
- donorType: "Returning",
7126
- raised: "$2,140.00"
7127
- }, {
7128
- date: "Jun 9, 2026",
7129
- campaignName: "Clean Water - Bangladesh",
7130
- donorType: "New Donor",
7131
- raised: "$890.00"
7132
- }, {
7133
- date: "Jun 10, 2026",
7134
- campaignName: "Shelter Fund - Lebanon",
7135
- donorType: "Returning",
7136
- raised: "$1,675.00"
7137
- }, {
7138
- date: "Jun 11, 2026",
7139
- campaignName: "Qurbani 2026 - Global",
7140
- donorType: "New Donor",
7141
- raised: "$5,230.00"
7142
- }, {
7143
- date: "Jun 12, 2026",
7144
- campaignName: "Maternal Health - Somalia",
7145
- donorType: "Returning",
7146
- raised: "$1,120.00"
7147
- }, {
7148
- date: "Jun 13, 2026",
7149
- campaignName: "School Supplies - Pakistan",
7150
- donorType: "New Donor",
7151
- raised: "$640.00"
7152
- }, {
7153
- date: "Jun 14, 2026",
7154
- campaignName: "Disaster Response - Turkey",
7155
- donorType: "Returning",
7156
- raised: "$3,890.00"
7157
- }, {
7158
- date: "Jun 15, 2026",
7159
- campaignName: "Zakat Distribution - UK",
7160
- donorType: "New Donor",
7161
- raised: "$2,450.00"
7162
- }, {
7163
- date: "Jun 16, 2026",
7164
- campaignName: "Eye Care - Morocco",
7165
- donorType: "Returning",
7166
- raised: "$780.00"
7167
- }, {
7168
- date: "Jun 17, 2026",
7169
- campaignName: "Livelihood Support - Iraq",
7170
- donorType: "New Donor",
7171
- raised: "$1,960.00"
7172
- }, {
7173
- date: "Jun 18, 2026",
7174
- campaignName: "Ramadan Iftar - Jordan",
7175
- donorType: "Returning",
7176
- raised: "$2,310.00"
7177
- }, {
7178
- date: "Jun 19, 2026",
7179
- campaignName: "Children's Fund - Nigeria",
7180
- donorType: "New Donor",
7181
- raised: "$1,430.00"
7182
- }, {
7183
- date: "Jun 20, 2026",
7184
- campaignName: "Housing Rebuild - Libya",
7185
- donorType: "Returning",
7186
- raised: "$3,050.00"
7187
- }];
7188
- var OverallDetailModal = function OverallDetailModal(_ref) {
7189
- var open = _ref.open,
7190
- title = _ref.title,
7191
- onClose = _ref.onClose;
7192
- var _useState = useState(1),
7193
- _useState2 = _slicedToArray(_useState, 2),
7194
- page = _useState2[0],
7195
- setPage = _useState2[1];
7196
- var totalPages = Math.ceil(MOCK_ROWS.length / ROWS_PER_PAGE);
7197
- useEffect(function () {
7198
- if (open) {
7199
- setPage(1);
7200
- }
7201
- }, [open, title]);
7202
- var paginatedRows = MOCK_ROWS.slice((page - 1) * ROWS_PER_PAGE, page * ROWS_PER_PAGE);
7203
- return /*#__PURE__*/jsxs(Dialog, {
7204
- open: open,
7205
- onClose: onClose,
7206
- maxWidth: "md",
7207
- fullWidth: true,
7208
- children: [/*#__PURE__*/jsxs(DialogTitle, {
7209
- sx: {
7210
- display: "flex",
7211
- alignItems: "center",
7212
- justifyContent: "space-between",
7213
- pr: 1,
7214
- pb: 1
7215
- },
7216
- children: [/*#__PURE__*/jsxs(Box, {
7217
- children: [/*#__PURE__*/jsx(Typography, {
7218
- sx: {
7219
- fontWeight: 700,
7220
- fontSize: "18px",
7221
- color: "#000"
7222
- },
7223
- children: title
7224
- }), /*#__PURE__*/jsx(Typography, {
7225
- sx: {
7226
- fontSize: "13px",
7227
- color: "rgba(0, 0, 0, 0.45)",
7228
- mt: 0.25
7229
- },
7230
- children: "Campaign breakdown"
7231
- })]
7232
- }), /*#__PURE__*/jsx(IconButton, {
7233
- "aria-label": "Close",
7234
- onClick: onClose,
7235
- size: "small",
7236
- children: /*#__PURE__*/jsx(CloseIcon, {})
7237
- })]
7238
- }), /*#__PURE__*/jsx(DialogContent, {
7239
- sx: {
7240
- pt: 0
7241
- },
7242
- children: /*#__PURE__*/jsxs(Box, {
7243
- sx: {
7244
- border: BORDER$1,
7245
- borderRadius: "12px",
7246
- overflow: "hidden"
7247
- },
7248
- children: [/*#__PURE__*/jsx(TableContainer, {
7249
- children: /*#__PURE__*/jsxs(Table, {
7250
- children: [/*#__PURE__*/jsx(TableHead, {
7251
- children: /*#__PURE__*/jsxs(TableRow, {
7252
- children: [/*#__PURE__*/jsx(TableCell, {
7253
- sx: headerCellSx$1,
7254
- children: "Date"
7255
- }), /*#__PURE__*/jsx(TableCell, {
7256
- sx: headerCellSx$1,
7257
- children: "Campaign Name"
7258
- }), /*#__PURE__*/jsx(TableCell, {
7259
- sx: headerCellSx$1,
7260
- children: "Donor Type"
7261
- }), /*#__PURE__*/jsx(TableCell, {
7262
- sx: _objectSpread2(_objectSpread2({}, headerCellSx$1), {}, {
7263
- textAlign: "right"
7264
- }),
7265
- children: "Raised"
7266
- })]
7267
- })
7268
- }), /*#__PURE__*/jsx(TableBody, {
7269
- children: paginatedRows.map(function (row) {
7270
- return /*#__PURE__*/jsxs(TableRow, {
7271
- children: [/*#__PURE__*/jsx(TableCell, {
7272
- sx: cellSx$1,
7273
- children: row.date
7274
- }), /*#__PURE__*/jsx(TableCell, {
7275
- sx: cellSx$1,
7276
- children: row.campaignName
7277
- }), /*#__PURE__*/jsx(TableCell, {
7278
- sx: cellSx$1,
7279
- children: row.donorType
7280
- }), /*#__PURE__*/jsx(TableCell, {
7281
- sx: _objectSpread2(_objectSpread2({}, cellSx$1), {}, {
7282
- textAlign: "right",
7283
- fontWeight: 600
7284
- }),
7285
- children: row.raised
7286
- })]
7287
- }, "".concat(row.date, "-").concat(row.campaignName));
7288
- })
7289
- })]
7290
- })
7291
- }), /*#__PURE__*/jsxs(Box, {
7292
- sx: {
7293
- display: "flex",
7294
- alignItems: "center",
7295
- justifyContent: "space-between",
7296
- px: 2,
7297
- py: 1.5,
7298
- borderTop: BORDER$1
7299
- },
7300
- children: [/*#__PURE__*/jsxs(Box, {
7301
- sx: {
7302
- display: "flex",
7303
- gap: 0.5
7304
- },
7305
- children: [Array.from({
7306
- length: totalPages
7307
- }, function (_, index) {
7308
- return index + 1;
7309
- }).map(function (pageNumber) {
7310
- return /*#__PURE__*/jsx(Box, {
7311
- onClick: function onClick() {
7312
- return setPage(pageNumber);
7313
- },
7314
- sx: {
7315
- width: 32,
7316
- height: 32,
7317
- display: "flex",
7318
- alignItems: "center",
7319
- justifyContent: "center",
7320
- borderRadius: "6px",
7321
- cursor: "pointer",
7322
- fontSize: "13px",
7323
- fontWeight: page === pageNumber ? 700 : 400,
7324
- bgcolor: page === pageNumber ? "primary.main" : "transparent",
7325
- color: page === pageNumber ? "#fff" : "#333",
7326
- border: page === pageNumber ? "none" : "1px solid ".concat(BORDER$1),
7327
- "&:hover": {
7328
- bgcolor: page === pageNumber ? "primary.main" : "#f5f5f5"
7329
- }
7330
- },
7331
- children: pageNumber
7332
- }, pageNumber);
7333
- }), page < totalPages && /*#__PURE__*/jsx(Box, {
7334
- onClick: function onClick() {
7335
- return setPage(function (current) {
7336
- return Math.min(current + 1, totalPages);
7337
- });
7338
- },
7339
- sx: {
7340
- px: 1.5,
7341
- height: 32,
7342
- display: "flex",
7343
- alignItems: "center",
7344
- gap: 0.5,
7345
- borderRadius: "6px",
7346
- cursor: "pointer",
7347
- fontSize: "13px",
7348
- color: "#333",
7349
- border: "1px solid ".concat(BORDER$1),
7350
- "&:hover": {
7351
- bgcolor: "#f5f5f5"
7352
- }
7353
- },
7354
- children: "Next \u203A"
7355
- })]
7356
- }), /*#__PURE__*/jsxs(Typography, {
7357
- variant: "caption",
7358
- color: "text.secondary",
7359
- children: [MOCK_ROWS.length, " records"]
7360
- })]
7361
- })]
7362
- })
7363
- })]
7364
- });
7365
- };
7366
-
7367
7091
  var CARD_SX = {
7368
7092
  maxHeight: 280
7369
7093
  };
@@ -7411,30 +7135,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7411
7135
  _ref.dateName;
7412
7136
  var _ref$numberOfDays = _ref.numberOfDays,
7413
7137
  numberOfDays = _ref$numberOfDays === void 0 ? 30 : _ref$numberOfDays;
7414
- var _useState = useState(null),
7415
- _useState2 = _slicedToArray(_useState, 2),
7416
- modalTitle = _useState2[0],
7417
- setModalTitle = _useState2[1];
7418
7138
  var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
7419
- var openDetailModal = function openDetailModal(title) {
7420
- if (!exportMode) {
7421
- setModalTitle(title);
7422
- }
7423
- };
7424
- var closeDetailModal = function closeDetailModal() {
7425
- return setModalTitle(null);
7426
- };
7427
- var withCardClick = function withCardClick(title, card) {
7428
- return exportMode ? card : /*#__PURE__*/jsx(Box, {
7429
- onClick: function onClick() {
7430
- return openDetailModal(title);
7431
- },
7432
- sx: {
7433
- display: "contents"
7434
- },
7435
- children: card
7436
- });
7437
- };
7438
7139
  var _donorMix$newDonors = donorMix.newDonors,
7439
7140
  newDonors = _donorMix$newDonors === void 0 ? 0 : _donorMix$newDonors,
7440
7141
  _donorMix$returningDo = donorMix.returningDonors,
@@ -7497,12 +7198,12 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7497
7198
  sx: {
7498
7199
  paddingTop: "0px !important"
7499
7200
  },
7500
- children: withCardClick("Active Campaigns", /*#__PURE__*/jsx(ActiveCampaignsCard, {
7201
+ children: /*#__PURE__*/jsx(ActiveCampaignsCard, {
7501
7202
  title: "Active Campaigns",
7502
7203
  subtitle: "Live fundraisers ranked by velocity",
7503
7204
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
7504
7205
  rows: activeCampaignsRows
7505
- }))
7206
+ })
7506
7207
  }), /*#__PURE__*/jsx(Grid, {
7507
7208
  item: true,
7508
7209
  xs: 12,
@@ -7515,7 +7216,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7515
7216
  md: 0
7516
7217
  }
7517
7218
  },
7518
- children: withCardClick("Donor Mix", /*#__PURE__*/jsx(DonorMixCard, {
7219
+ children: /*#__PURE__*/jsx(DonorMixCard, {
7519
7220
  title: "Donor Mix",
7520
7221
  subtitle: "Acquisition vs retention",
7521
7222
  series: [newDonors, returningDonors],
@@ -7537,29 +7238,29 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7537
7238
  sx: {
7538
7239
  width: "100%"
7539
7240
  }
7540
- }))
7241
+ })
7541
7242
  })]
7542
7243
  });
7543
7244
  var middleCards = /*#__PURE__*/jsxs(Fragment, {
7544
- children: [withCardClick("Donation Type", /*#__PURE__*/jsx(DonationTypeBarChart, {
7245
+ children: [/*#__PURE__*/jsx(DonationTypeBarChart, {
7545
7246
  sx: CARD_SX,
7546
7247
  donationTypeData: donationTypeData
7547
- })), withCardClick("Paid Donor Geography", /*#__PURE__*/jsx(PaidDonorGeographyCard, {
7248
+ }), /*#__PURE__*/jsx(PaidDonorGeographyCard, {
7548
7249
  sx: CARD_SX,
7549
7250
  donorGeographyData: donorGeographyData
7550
- })), withCardClick("Refunds & Chargebacks", /*#__PURE__*/jsx(RefundsChargebacksCard, {
7251
+ }), /*#__PURE__*/jsx(RefundsChargebacksCard, {
7551
7252
  sx: CARD_SX,
7552
7253
  refundsChargebacksData: refundsChargebacksData,
7553
7254
  numberOfDays: numberOfDays
7554
- })), withCardClick("Traffic Source", /*#__PURE__*/jsx(TrafficSourceCard, {
7255
+ }), /*#__PURE__*/jsx(TrafficSourceCard, {
7555
7256
  sx: CARD_SX,
7556
7257
  trafficSourceData: (trafficSourceData === null || trafficSourceData === void 0 ? void 0 : trafficSourceData.data) || [],
7557
7258
  total: "$".concat(formatNumber((trafficSourceData === null || trafficSourceData === void 0 ? void 0 : trafficSourceData.totalRevenue) || 0)),
7558
7259
  numberOfDays: numberOfDays
7559
- }))]
7260
+ })]
7560
7261
  });
7561
7262
  var bottomCards = /*#__PURE__*/jsxs(Fragment, {
7562
- children: [withCardClick("Order Bump", /*#__PURE__*/jsx(MetricSparklineCard, {
7263
+ children: [/*#__PURE__*/jsx(MetricSparklineCard, {
7563
7264
  title: "Order Bump",
7564
7265
  subtitle: "Revenue trend - last ".concat(daysLabel),
7565
7266
  value: "$".concat(formatNumber((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.totalRevenue) || 0)),
@@ -7584,7 +7285,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7584
7285
  }],
7585
7286
  sx: CARD_SX,
7586
7287
  bottomSection: true
7587
- })), withCardClick("Upsell", /*#__PURE__*/jsx(MetricDonutCard, {
7288
+ }), /*#__PURE__*/jsx(MetricDonutCard, {
7588
7289
  title: "Upsell",
7589
7290
  subtitle: "Acceptance & raised",
7590
7291
  acceptanceRate: (upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceRate) || 0,
@@ -7593,7 +7294,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7593
7294
  raisedVal: "$".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raised) || 0)),
7594
7295
  raisedTrend: "".concat((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedGrowth) >= 0 ? "▲" : "▼", " ").concat(Math.abs((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedGrowth) || 0).toFixed(1), "%"),
7595
7296
  sx: CARD_SX
7596
- })), withCardClick("Downsell", /*#__PURE__*/jsx(MetricDonutCard, {
7297
+ }), /*#__PURE__*/jsx(MetricDonutCard, {
7597
7298
  title: "Downsell",
7598
7299
  subtitle: "Acceptance & raised",
7599
7300
  acceptanceRate: (downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceRate) || 0,
@@ -7602,7 +7303,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7602
7303
  raisedVal: "$".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raised) || 0)),
7603
7304
  raisedTrend: "".concat((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedGrowth) >= 0 ? "▲" : "▼", " ").concat(Math.abs((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedGrowth) || 0).toFixed(1), "%"),
7604
7305
  sx: CARD_SX
7605
- })), withCardClick("Referrals", /*#__PURE__*/jsx(MetricSparklineCard, {
7306
+ }), /*#__PURE__*/jsx(MetricSparklineCard, {
7606
7307
  title: "Referrals",
7607
7308
  subtitle: "Revenue trend - last ".concat(daysLabel),
7608
7309
  value: "$".concat(formatNumber((referralData === null || referralData === void 0 ? void 0 : referralData.totalRevenue) || 0)),
@@ -7626,32 +7327,27 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7626
7327
  }],
7627
7328
  sx: CARD_SX,
7628
7329
  bottomSection: true
7629
- }))]
7630
- });
7631
- var detailModal = /*#__PURE__*/jsx(OverallDetailModal, {
7632
- open: Boolean(modalTitle),
7633
- title: modalTitle || "",
7634
- onClose: closeDetailModal
7330
+ })]
7635
7331
  });
7636
7332
  if (section === "campaigns") {
7637
- return /*#__PURE__*/jsxs(Box, {
7638
- children: [campaignsRow, detailModal]
7333
+ return /*#__PURE__*/jsx(Box, {
7334
+ children: campaignsRow
7639
7335
  });
7640
7336
  }
7641
7337
  if (section === "middle") {
7642
- return /*#__PURE__*/jsxs(Box, {
7643
- children: [/*#__PURE__*/jsx(Box, {
7338
+ return /*#__PURE__*/jsx(Box, {
7339
+ children: /*#__PURE__*/jsx(Box, {
7644
7340
  sx: fourColGridSx$1(exportMode),
7645
7341
  children: middleCards
7646
- }), detailModal]
7342
+ })
7647
7343
  });
7648
7344
  }
7649
7345
  if (section === "bottom") {
7650
- return /*#__PURE__*/jsxs(Box, {
7651
- children: [/*#__PURE__*/jsx(Box, {
7346
+ return /*#__PURE__*/jsx(Box, {
7347
+ children: /*#__PURE__*/jsx(Box, {
7652
7348
  sx: fourColGridSx$1(exportMode),
7653
7349
  children: bottomCards
7654
- }), detailModal]
7350
+ })
7655
7351
  });
7656
7352
  }
7657
7353
  return /*#__PURE__*/jsxs(Box, {
@@ -7661,7 +7357,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7661
7357
  }), /*#__PURE__*/jsx(Box, {
7662
7358
  sx: fourColGridSx$1(exportMode),
7663
7359
  children: bottomCards
7664
- }), detailModal]
7360
+ })]
7665
7361
  });
7666
7362
  };
7667
7363