@ammarkhalidfarooq/dashboard-package 0.6.69 → 0.6.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -2097,17 +2097,82 @@ var ProgressBar = function ProgressBar(_ref8) {
2097
2097
  })]
2098
2098
  });
2099
2099
  };
2100
- var DonationTypeBarSvg = function DonationTypeBarSvg(_ref9) {
2101
- var _ref9$categories = _ref9.categories,
2102
- categories = _ref9$categories === void 0 ? [] : _ref9$categories,
2103
- _ref9$recurring = _ref9.recurring,
2104
- recurring = _ref9$recurring === void 0 ? [] : _ref9$recurring,
2105
- _ref9$oneTime = _ref9.oneTime,
2106
- oneTime = _ref9$oneTime === void 0 ? [] : _ref9$oneTime,
2107
- _ref9$recurringColor = _ref9.recurringColor,
2108
- recurringColor = _ref9$recurringColor === void 0 ? "#6366F1" : _ref9$recurringColor,
2109
- _ref9$oneTimeColor = _ref9.oneTimeColor,
2110
- oneTimeColor = _ref9$oneTimeColor === void 0 ? "#10B981" : _ref9$oneTimeColor;
2100
+ var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
2101
+ var _ref9$geoList = _ref9.geoList,
2102
+ geoList = _ref9$geoList === void 0 ? [] : _ref9$geoList,
2103
+ _ref9$totalDonors = _ref9.totalDonors,
2104
+ totalDonors = _ref9$totalDonors === void 0 ? 0 : _ref9$totalDonors,
2105
+ _ref9$barColor = _ref9.barColor,
2106
+ barColor = _ref9$barColor === void 0 ? "#6366F1" : _ref9$barColor;
2107
+ return /*#__PURE__*/jsxRuntime.jsx(Panel, {
2108
+ title: "Donor geography",
2109
+ subtitle: "Top countries \xB7 ".concat(formatNumber(totalDonors), " total"),
2110
+ children: (geoList.length ? geoList.slice(0, 6) : []).map(function (g, i) {
2111
+ var _g$percentage;
2112
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2113
+ style: {
2114
+ padding: i < 5 ? "0 0 5px" : 0,
2115
+ marginBottom: i < 5 ? 5 : 0,
2116
+ borderBottom: i < 5 ? "1px solid #F3F4F6" : "none"
2117
+ },
2118
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
2119
+ style: {
2120
+ display: "flex",
2121
+ justifyContent: "space-between",
2122
+ alignItems: "center",
2123
+ gap: 6,
2124
+ marginBottom: 3
2125
+ },
2126
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
2127
+ style: {
2128
+ fontSize: 9,
2129
+ color: "#374151",
2130
+ overflow: "hidden",
2131
+ textOverflow: "ellipsis",
2132
+ whiteSpace: "nowrap",
2133
+ minWidth: 0
2134
+ },
2135
+ children: g.country
2136
+ }), /*#__PURE__*/jsxRuntime.jsxs("span", {
2137
+ style: {
2138
+ fontSize: 9,
2139
+ fontWeight: 700,
2140
+ color: "#111827",
2141
+ flexShrink: 0
2142
+ },
2143
+ children: [formatNumber(g.value), " \xB7 ", formatNumber(g.percentage), "%"]
2144
+ })]
2145
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
2146
+ style: {
2147
+ height: 5,
2148
+ background: "#F3F4F6",
2149
+ borderRadius: 3,
2150
+ overflow: "hidden"
2151
+ },
2152
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
2153
+ style: {
2154
+ width: "".concat(Math.min(100, Math.max(0, Number((_g$percentage = g.percentage) !== null && _g$percentage !== void 0 ? _g$percentage : 0))), "%"),
2155
+ height: "100%",
2156
+ background: barColor,
2157
+ borderRadius: 3
2158
+ }
2159
+ })
2160
+ })]
2161
+ }, i);
2162
+ })
2163
+ });
2164
+ };
2165
+ var DonationTypeBarSvg = function DonationTypeBarSvg(_ref0) {
2166
+ var _ref0$categories = _ref0.categories,
2167
+ categories = _ref0$categories === void 0 ? [] : _ref0$categories,
2168
+ _ref0$recurring = _ref0.recurring,
2169
+ recurring = _ref0$recurring === void 0 ? [] : _ref0$recurring,
2170
+ _ref0$oneTime = _ref0.oneTime,
2171
+ oneTime = _ref0$oneTime === void 0 ? [] : _ref0$oneTime,
2172
+ _ref0$recurringColor = _ref0.recurringColor,
2173
+ recurringColor = _ref0$recurringColor === void 0 ? "#6366F1" : _ref0$recurringColor,
2174
+ _ref0$oneTimeColor = _ref0.oneTimeColor,
2175
+ oneTimeColor = _ref0$oneTimeColor === void 0 ? "#10B981" : _ref0$oneTimeColor;
2111
2176
  var width = 158;
2112
2177
  var height = 96;
2113
2178
  var padL = 30;
@@ -2228,12 +2293,12 @@ var DonationTypeBarSvg = function DonationTypeBarSvg(_ref9) {
2228
2293
  })]
2229
2294
  });
2230
2295
  };
2231
- var DonationTypePanel = function DonationTypePanel(_ref0) {
2232
- var donationTypeData = _ref0.donationTypeData,
2233
- _ref0$recurringColor = _ref0.recurringColor,
2234
- recurringColor = _ref0$recurringColor === void 0 ? "#6366F1" : _ref0$recurringColor,
2235
- _ref0$oneTimeColor = _ref0.oneTimeColor,
2236
- oneTimeColor = _ref0$oneTimeColor === void 0 ? "#10B981" : _ref0$oneTimeColor;
2296
+ var DonationTypePanel = function DonationTypePanel(_ref1) {
2297
+ var donationTypeData = _ref1.donationTypeData,
2298
+ _ref1$recurringColor = _ref1.recurringColor,
2299
+ recurringColor = _ref1$recurringColor === void 0 ? "#6366F1" : _ref1$recurringColor,
2300
+ _ref1$oneTimeColor = _ref1.oneTimeColor,
2301
+ oneTimeColor = _ref1$oneTimeColor === void 0 ? "#10B981" : _ref1$oneTimeColor;
2237
2302
  var _parseDonationTypeCha = parseDonationTypeChartData(donationTypeData),
2238
2303
  categories = _parseDonationTypeCha.categories,
2239
2304
  recurring = _parseDonationTypeCha.recurring,
@@ -2298,21 +2363,21 @@ var DonationTypePanel = function DonationTypePanel(_ref0) {
2298
2363
  })]
2299
2364
  });
2300
2365
  };
2301
- var AcceptanceRaisedPanel = function AcceptanceRaisedPanel(_ref1) {
2302
- var title = _ref1.title,
2303
- subtitle = _ref1.subtitle,
2304
- _ref1$acceptanceRate = _ref1.acceptanceRate,
2305
- acceptanceRate = _ref1$acceptanceRate === void 0 ? 0 : _ref1$acceptanceRate,
2306
- _ref1$acceptanceGrowt = _ref1.acceptanceGrowth,
2307
- acceptanceGrowth = _ref1$acceptanceGrowt === void 0 ? 0 : _ref1$acceptanceGrowt,
2308
- _ref1$raised = _ref1.raised,
2309
- raised = _ref1$raised === void 0 ? 0 : _ref1$raised,
2310
- _ref1$raisedGrowth = _ref1.raisedGrowth,
2311
- raisedGrowth = _ref1$raisedGrowth === void 0 ? 0 : _ref1$raisedGrowth,
2312
- _ref1$primaryColor = _ref1.primaryColor,
2313
- primaryColor = _ref1$primaryColor === void 0 ? "#6366F1" : _ref1$primaryColor,
2314
- _ref1$secondaryColor = _ref1.secondaryColor,
2315
- secondaryColor = _ref1$secondaryColor === void 0 ? "#88bfd290" : _ref1$secondaryColor;
2366
+ var AcceptanceRaisedPanel = function AcceptanceRaisedPanel(_ref10) {
2367
+ var title = _ref10.title,
2368
+ subtitle = _ref10.subtitle,
2369
+ _ref10$acceptanceRate = _ref10.acceptanceRate,
2370
+ acceptanceRate = _ref10$acceptanceRate === void 0 ? 0 : _ref10$acceptanceRate,
2371
+ _ref10$acceptanceGrow = _ref10.acceptanceGrowth,
2372
+ acceptanceGrowth = _ref10$acceptanceGrow === void 0 ? 0 : _ref10$acceptanceGrow,
2373
+ _ref10$raised = _ref10.raised,
2374
+ raised = _ref10$raised === void 0 ? 0 : _ref10$raised,
2375
+ _ref10$raisedGrowth = _ref10.raisedGrowth,
2376
+ raisedGrowth = _ref10$raisedGrowth === void 0 ? 0 : _ref10$raisedGrowth,
2377
+ _ref10$primaryColor = _ref10.primaryColor,
2378
+ primaryColor = _ref10$primaryColor === void 0 ? "#6366F1" : _ref10$primaryColor,
2379
+ _ref10$secondaryColor = _ref10.secondaryColor,
2380
+ secondaryColor = _ref10$secondaryColor === void 0 ? "#88bfd290" : _ref10$secondaryColor;
2316
2381
  return /*#__PURE__*/jsxRuntime.jsx(Panel, {
2317
2382
  title: title,
2318
2383
  subtitle: subtitle,
@@ -2438,15 +2503,15 @@ var AcceptanceRaisedPanel = function AcceptanceRaisedPanel(_ref1) {
2438
2503
  })
2439
2504
  });
2440
2505
  };
2441
- var KpiCard = function KpiCard(_ref10) {
2442
- var title = _ref10.title,
2443
- value = _ref10.value,
2444
- trend = _ref10.trend,
2445
- detail = _ref10.detail,
2446
- _ref10$variant = _ref10.variant,
2447
- variant = _ref10$variant === void 0 ? "secondary" : _ref10$variant,
2448
- _ref10$trendPositiveW = _ref10.trendPositiveWhenNegative,
2449
- trendPositiveWhenNegative = _ref10$trendPositiveW === void 0 ? false : _ref10$trendPositiveW;
2506
+ var KpiCard = function KpiCard(_ref11) {
2507
+ var title = _ref11.title,
2508
+ value = _ref11.value,
2509
+ trend = _ref11.trend,
2510
+ detail = _ref11.detail,
2511
+ _ref11$variant = _ref11.variant,
2512
+ variant = _ref11$variant === void 0 ? "secondary" : _ref11$variant,
2513
+ _ref11$trendPositiveW = _ref11.trendPositiveWhenNegative,
2514
+ trendPositiveWhenNegative = _ref11$trendPositiveW === void 0 ? false : _ref11$trendPositiveW;
2450
2515
  var displayTrend = withTrendArrow(trend);
2451
2516
  var isPrimary = variant === "primary";
2452
2517
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -2497,12 +2562,12 @@ var KpiCard = function KpiCard(_ref10) {
2497
2562
  })]
2498
2563
  });
2499
2564
  };
2500
- var PageHeader = function PageHeader(_ref11) {
2501
- var dateLabel = _ref11.dateLabel,
2502
- generatedLabel = _ref11.generatedLabel,
2503
- activeFilters = _ref11.activeFilters,
2504
- page = _ref11.page,
2505
- windowLabel = _ref11.windowLabel;
2565
+ var PageHeader = function PageHeader(_ref12) {
2566
+ var dateLabel = _ref12.dateLabel,
2567
+ generatedLabel = _ref12.generatedLabel,
2568
+ activeFilters = _ref12.activeFilters,
2569
+ page = _ref12.page,
2570
+ windowLabel = _ref12.windowLabel;
2506
2571
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
2507
2572
  style: {
2508
2573
  padding: "22px ".concat(MX, "px 12px"),
@@ -2608,9 +2673,9 @@ var PageHeader = function PageHeader(_ref11) {
2608
2673
  })]
2609
2674
  });
2610
2675
  };
2611
- var PageFooter = function PageFooter(_ref12) {
2612
- var generatedLabel = _ref12.generatedLabel,
2613
- page = _ref12.page;
2676
+ var PageFooter = function PageFooter(_ref13) {
2677
+ var generatedLabel = _ref13.generatedLabel,
2678
+ page = _ref13.page;
2614
2679
  return /*#__PURE__*/jsxRuntime.jsx("div", {
2615
2680
  style: {
2616
2681
  padding: "7px ".concat(MX, "px"),
@@ -2630,16 +2695,16 @@ var PageFooter = function PageFooter(_ref12) {
2630
2695
  };
2631
2696
 
2632
2697
  // ─── Main component ───────────────────────────────────────────────────────────
2633
- var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
2698
+ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
2634
2699
  var _apiData$overviewStat, _overview$totalRevenu, _overview$netRevenue, _overview$overallAVGD, _overview$conversionR, _apiData$totalVisits, _refundsRaw$refundRat, _refundsRaw$chargebac, _apiData$trafficSourc, _apiData$trafficSourc2, _apiData$trafficSourc3, _metricByTitle$NetRa, _metricByTitle$Total, _metricByTitle$Total2, _metricByTitle$Total3, _metricByTitle$AvgDo, _metricByTitle$AvgDo2, _apiData$medianGift, _apiData$topDecileGif, _apiData$roasCard, _metricByTitle$ROAS, _apiData$roasCardPrev, _metricByTitle$ROAS2, _apiData$adSpend, _apiData$attributedRe, _metricByTitle$Conver, _metricByTitle$Conver2, _metricByTitle$Refund, _metricByTitle$Refund2, _refundsRaw$refundCou, _metricByTitle$Refund3, _mainChart$stacked, _refundsRaw$refundRat2, _ob$growthPercentage, _ob$peakDay, _up$acceptanceGrowth, _up$raisedGrowth, _dn$acceptanceGrowth, _dn$raisedGrowth, _refCard$growthPercen;
2635
- var _ref13$apiData = _ref13.apiData,
2636
- apiData = _ref13$apiData === void 0 ? {} : _ref13$apiData,
2637
- _ref13$dateName = _ref13.dateName,
2638
- dateName = _ref13$dateName === void 0 ? "Last Period" : _ref13$dateName,
2639
- _ref13$numberOfDays = _ref13.numberOfDays,
2640
- numberOfDays = _ref13$numberOfDays === void 0 ? 30 : _ref13$numberOfDays,
2641
- _ref13$activeFilters = _ref13.activeFilters,
2642
- activeFilters = _ref13$activeFilters === void 0 ? [] : _ref13$activeFilters;
2700
+ var _ref14$apiData = _ref14.apiData,
2701
+ apiData = _ref14$apiData === void 0 ? {} : _ref14$apiData,
2702
+ _ref14$dateName = _ref14.dateName,
2703
+ dateName = _ref14$dateName === void 0 ? "Last Period" : _ref14$dateName,
2704
+ _ref14$numberOfDays = _ref14.numberOfDays,
2705
+ numberOfDays = _ref14$numberOfDays === void 0 ? 30 : _ref14$numberOfDays,
2706
+ _ref14$activeFilters = _ref14.activeFilters,
2707
+ activeFilters = _ref14$activeFilters === void 0 ? [] : _ref14$activeFilters;
2643
2708
  var now = new Date();
2644
2709
  var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
2645
2710
  var windowLabel = "".concat(numberOfDays, "-day window");
@@ -2781,6 +2846,23 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
2781
2846
  emerald: "#10B981",
2782
2847
  cyan: "#06B6D4"
2783
2848
  };
2849
+ var revenueLegend = [{
2850
+ label: "Paid Ads",
2851
+ color: C.indigo
2852
+ }, {
2853
+ label: "Organic",
2854
+ color: C.emerald
2855
+ }, {
2856
+ label: "Email",
2857
+ color: C.cyan
2858
+ }];
2859
+ var revenueTrendText = mainChart.trend || "";
2860
+ var revenueTrendColor = getTrendColor(revenueTrendText, {
2861
+ up: "#054835ff",
2862
+ down: "#EF4444"
2863
+ });
2864
+ var revenueTrendBadgeBg = revenueTrendColor === "#EF4444" ? "#fee2e2" : "#8df3be9a";
2865
+ var revenueTrendArrow = getTrendArrow(revenueTrendText);
2784
2866
  var headerProps = {
2785
2867
  dateLabel: dateLabel,
2786
2868
  generatedLabel: generatedLabel,
@@ -2880,77 +2962,90 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
2880
2962
  display: "flex",
2881
2963
  justifyContent: "space-between",
2882
2964
  alignItems: "flex-start",
2883
- marginBottom: 6
2965
+ marginBottom: 8
2884
2966
  },
2885
2967
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
2886
2968
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
2887
2969
  style: {
2888
2970
  fontSize: 13,
2889
2971
  fontWeight: 700,
2890
- color: "#111827"
2972
+ color: "#111827",
2973
+ lineHeight: 1.15
2891
2974
  },
2892
2975
  children: "Total revenue trend"
2893
2976
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2894
2977
  style: {
2895
2978
  fontSize: 9.5,
2896
- color: "#9CA3AF",
2897
- marginTop: 1
2979
+ color: "rgba(0, 0, 0, 0.4)",
2980
+ marginTop: 2,
2981
+ lineHeight: 1.15
2898
2982
  },
2899
2983
  children: ["Last ", daysLabel, " \xB7 daily aggregation"]
2900
- })]
2901
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2902
- style: {
2903
- textAlign: "right"
2904
- },
2905
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
2906
- style: {
2907
- fontSize: 15,
2908
- fontWeight: 800,
2909
- color: "#111827"
2910
- },
2911
- children: kpi$(totalRaised)
2912
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
2913
- style: {
2914
- marginLeft: 8,
2915
- fontSize: 10.5
2916
- },
2917
- children: /*#__PURE__*/jsxRuntime.jsx(TrendText, {
2918
- children: mainChart.trend
2919
- })
2920
- })]
2921
- })]
2922
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
2923
- style: {
2924
- display: "flex",
2925
- gap: 14,
2926
- marginBottom: 6
2927
- },
2928
- children: [["Email", C.cyan], ["Organic", C.emerald], ["Paid Ads", C.indigo]].map(function (_ref14) {
2929
- var _ref15 = _slicedToArray(_ref14, 2),
2930
- name = _ref15[0],
2931
- color = _ref15[1];
2932
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
2984
+ }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2933
2985
  style: {
2934
2986
  display: "flex",
2935
2987
  alignItems: "center",
2936
- gap: 5
2988
+ gap: 6,
2989
+ marginTop: 8
2937
2990
  },
2938
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
2991
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
2939
2992
  style: {
2940
- width: 20,
2941
- height: 2.5,
2942
- background: color,
2943
- borderRadius: 2
2944
- }
2945
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
2993
+ fontSize: 22,
2994
+ fontWeight: 700,
2995
+ color: "#111827"
2996
+ },
2997
+ children: kpi$(totalRaised)
2998
+ }), revenueTrendText && /*#__PURE__*/jsxRuntime.jsxs("span", {
2946
2999
  style: {
3000
+ display: "inline-flex",
3001
+ alignItems: "center",
3002
+ gap: 3,
3003
+ background: revenueTrendBadgeBg,
3004
+ color: revenueTrendColor,
3005
+ padding: "2px 8px",
3006
+ borderRadius: 100,
2947
3007
  fontSize: 9.5,
2948
- color: "#6B7280"
3008
+ fontWeight: 600
2949
3009
  },
2950
- children: name
3010
+ children: [revenueTrendArrow && /*#__PURE__*/jsxRuntime.jsx("span", {
3011
+ children: revenueTrendArrow
3012
+ }), revenueTrendText]
2951
3013
  })]
2952
- }, name);
2953
- })
3014
+ })]
3015
+ }), revSeries.length > 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
3016
+ style: {
3017
+ display: "flex",
3018
+ gap: 10,
3019
+ alignItems: "center",
3020
+ flexShrink: 0,
3021
+ paddingTop: 2
3022
+ },
3023
+ children: revenueLegend.map(function (leg) {
3024
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
3025
+ style: {
3026
+ display: "flex",
3027
+ alignItems: "center",
3028
+ gap: 4
3029
+ },
3030
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
3031
+ style: {
3032
+ width: 8,
3033
+ height: 8,
3034
+ borderRadius: "50%",
3035
+ background: leg.color,
3036
+ flexShrink: 0
3037
+ }
3038
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
3039
+ style: {
3040
+ fontSize: 9.5,
3041
+ color: "rgba(0, 0, 0, 0.6)",
3042
+ fontWeight: 500
3043
+ },
3044
+ children: leg.label
3045
+ })]
3046
+ }, leg.label);
3047
+ })
3048
+ })]
2954
3049
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
2955
3050
  style: {
2956
3051
  width: "100%",
@@ -3152,32 +3247,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
3152
3247
  donationTypeData: report.donationTypeData,
3153
3248
  recurringColor: C.indigo,
3154
3249
  oneTimeColor: C.emerald
3155
- }), /*#__PURE__*/jsxRuntime.jsx(Panel, {
3156
- title: "Donor geography",
3157
- subtitle: "Top countries \xB7 ".concat(formatNumber(totalDonors), " total"),
3158
- children: (geoList.length ? geoList.slice(0, 6) : []).map(function (g, i) {
3159
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
3160
- style: {
3161
- display: "flex",
3162
- justifyContent: "space-between",
3163
- padding: "3.5px 0",
3164
- borderBottom: i < 5 ? "1px solid #F3F4F6" : "none"
3165
- },
3166
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
3167
- style: {
3168
- fontSize: 9,
3169
- color: "#374151"
3170
- },
3171
- children: g.country
3172
- }), /*#__PURE__*/jsxRuntime.jsxs("span", {
3173
- style: {
3174
- fontSize: 9,
3175
- color: "#6B7280"
3176
- },
3177
- children: [formatNumber(g.value), " \xB7 ", formatNumber(g.percentage), "%"]
3178
- })]
3179
- }, i);
3180
- })
3250
+ }), /*#__PURE__*/jsxRuntime.jsx(DonorGeographyPanel, {
3251
+ geoList: geoList,
3252
+ totalDonors: totalDonors,
3253
+ barColor: C.indigo
3181
3254
  }), /*#__PURE__*/jsxRuntime.jsxs(Panel, {
3182
3255
  title: "Refunds & chargebacks",
3183
3256
  subtitle: "Trust health \xB7 ".concat(numberOfDays, "-day window"),
@@ -3307,10 +3380,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
3307
3380
  display: "flex",
3308
3381
  gap: 12
3309
3382
  },
3310
- children: [["Avg/day", d$((ob === null || ob === void 0 ? void 0 : ob.averagePerDay) || 0)], ["Peak day", d$((ob === null || ob === void 0 || (_ob$peakDay = ob.peakDay) === null || _ob$peakDay === void 0 ? void 0 : _ob$peakDay.amount) || 0)], ["Orders", formatNumber((ob === null || ob === void 0 ? void 0 : ob.totalOrders) || 0)]].map(function (_ref16) {
3311
- var _ref17 = _slicedToArray(_ref16, 2),
3312
- l = _ref17[0],
3313
- v = _ref17[1];
3383
+ children: [["Avg/day", d$((ob === null || ob === void 0 ? void 0 : ob.averagePerDay) || 0)], ["Peak day", d$((ob === null || ob === void 0 || (_ob$peakDay = ob.peakDay) === null || _ob$peakDay === void 0 ? void 0 : _ob$peakDay.amount) || 0)], ["Orders", formatNumber((ob === null || ob === void 0 ? void 0 : ob.totalOrders) || 0)]].map(function (_ref15) {
3384
+ var _ref16 = _slicedToArray(_ref15, 2),
3385
+ l = _ref16[0],
3386
+ v = _ref16[1];
3314
3387
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
3315
3388
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
3316
3389
  style: {
@@ -3383,10 +3456,10 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
3383
3456
  display: "flex",
3384
3457
  gap: 12
3385
3458
  },
3386
- children: [["Referrers", formatNumber((refCard === null || refCard === void 0 ? void 0 : refCard.totalReferrers) || 0)], ["Avg gift", d$((refCard === null || refCard === void 0 ? void 0 : refCard.averageGift) || 0)], ["Conv. rate", pct((refCard === null || refCard === void 0 ? void 0 : refCard.conversionRate) || 0, 1)]].map(function (_ref18) {
3387
- var _ref19 = _slicedToArray(_ref18, 2),
3388
- l = _ref19[0],
3389
- v = _ref19[1];
3459
+ children: [["Referrers", formatNumber((refCard === null || refCard === void 0 ? void 0 : refCard.totalReferrers) || 0)], ["Avg gift", d$((refCard === null || refCard === void 0 ? void 0 : refCard.averageGift) || 0)], ["Conv. rate", pct((refCard === null || refCard === void 0 ? void 0 : refCard.conversionRate) || 0, 1)]].map(function (_ref17) {
3460
+ var _ref18 = _slicedToArray(_ref17, 2),
3461
+ l = _ref18[0],
3462
+ v = _ref18[1];
3390
3463
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
3391
3464
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
3392
3465
  style: {