@mx-cartographer/experiences 6.26.33-alpha.mm0 → 7.0.0-alpha.mega1
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/CHANGELOG.md +2 -3
- package/dist/Account-DY6nxO7y.mjs +30 -0
- package/dist/AccountDetailsContent-DvPs81kL.mjs +677 -0
- package/dist/AccountDetailsHeader-W2U7ZVm_.mjs +119 -0
- package/dist/AccountFields-DAVcbZy5.mjs +135 -0
- package/dist/AccountListItem-DFlbdcmT.mjs +90 -0
- package/dist/AccountStore-CU7qV3vg.mjs +230 -0
- package/dist/Accounts-BLlrQA5m.mjs +9 -0
- package/dist/BeatApi-DLu87ijw.mjs +21 -0
- package/dist/BeatStore-By4aGoRM.mjs +81 -0
- package/dist/BudgetUtil-Ci1TN0J5.mjs +101 -0
- package/dist/CashflowStore-D9Dpuz7X.mjs +91 -0
- package/dist/Category-5S6uwuXz.mjs +301 -0
- package/dist/CategorySelectorDrawer-rHyHHYuh.mjs +397 -0
- package/dist/CategoryStore-B5EW6I1d.mjs +183 -0
- package/dist/CategoryUtil-DRyruNgi.mjs +78 -0
- package/dist/ConnectDrawer-D9cR5phc.mjs +508 -0
- package/dist/ConnectionsDrawer-BzGqljSp.mjs +52 -0
- package/dist/CurrencyInput-D74cemI2.mjs +83 -0
- package/dist/CurrencyText-YUhH2caW.mjs +20 -0
- package/dist/DateUtil-BcuH7ErC.mjs +48 -0
- package/dist/DebtsStore-S0l9kr0r.mjs +60 -0
- package/dist/Dialog-CWW597AF.mjs +123 -0
- package/dist/Donut-1UMNcG67.mjs +57 -0
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/EmptyState-Dcb-o2tl.mjs +55 -0
- package/dist/Fetch-CkFKy79O.mjs +116 -0
- package/dist/FinstrongStore-mkALvztw.mjs +101 -0
- package/dist/GoalStore-DioeeL-s.mjs +263 -0
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/Help-DhcC-C05.mjs +320 -0
- package/dist/Help-DpYRO8oA.mjs +3181 -0
- package/dist/IconBacking-B9oC6uL2.mjs +39 -0
- package/dist/InvestmentUtil-jOyOgzIB.mjs +134 -0
- package/dist/LineChart-CcyX38kK.mjs +499 -0
- package/dist/ListItemAction-BabpYivr.mjs +69 -0
- package/dist/Loader-Dp1P2gNw.mjs +14 -0
- package/dist/Localization-2MODESHW.mjs +30 -0
- package/dist/ManageIncome-ndMuhJMG.mjs +535 -0
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/MicroWidgetContainer-CsvHLYKX.mjs +45 -0
- package/dist/MiniWidgetContainer-BoOp-A05.mjs +39 -0
- package/dist/NetWorthStore-PD-RUe09.mjs +150 -0
- package/dist/Notification-AMGWM1Al.mjs +78 -0
- package/dist/NotificationSettings-VhHuMAFU.mjs +667 -0
- package/dist/NotificationStore-DHtSGySy.mjs +67 -0
- package/dist/NumberFormatting-CtWHhyBX.mjs +40 -0
- package/dist/OriginalBalanceAction-D39mx6uE.mjs +115 -0
- package/dist/RecurringSettings-D_HnMYZP.mjs +57 -0
- package/dist/RecurringTransactionsStore-BKLD3OWo.mjs +263 -0
- package/dist/RepeatingTransaction-BPWfaB3f.mjs +282 -0
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/SettingsStore-CE7jDVFL.mjs +265 -0
- package/dist/SingleSegmentDonut-BgbLgwHi.mjs +69 -0
- package/dist/SpendingData-BkrxzHdr.mjs +55 -0
- package/dist/StatusBar-BK_uYHAB.mjs +30 -0
- package/dist/TabContentContainer-j01JYR_7.mjs +21 -0
- package/dist/Transaction-CA0FW2Ij.mjs +312 -0
- package/dist/TransactionApi-DbbcjI2L.mjs +86 -0
- package/dist/TransactionDetails-WBHFmbxL.mjs +1283 -0
- package/dist/TransactionStore-CeLdmVnC.mjs +669 -0
- package/dist/TrendsStore-BHJUapXF.mjs +487 -0
- package/dist/ViewMoreMicroCard-CAPFNz-J.mjs +1959 -0
- package/dist/WidgetContainer-DWCusxYI.mjs +556 -0
- package/dist/accounts/index.es.js +752 -0
- package/dist/analytics/index.es.js +171 -0
- package/dist/budgets/index.es.js +1075 -0
- package/dist/cashflow/index.es.js +1098 -0
- package/dist/categories/index.es.js +9 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +0 -1
- package/dist/common/constants/Analytics.d.ts +10 -20
- package/dist/common/context/hooks.d.ts +13 -13
- package/dist/common/index.es.js +1451 -0
- package/dist/dashboard/index.es.js +181 -0
- package/dist/debts/index.es.js +1460 -0
- package/dist/exportTransactionsToCSV-CmwsKl2D.mjs +47 -0
- package/dist/finstrong/index.es.js +1455 -0
- package/dist/goals/index.es.js +1209 -0
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/index.es.js +14 -0
- package/dist/hooks-30y_BLwc.mjs +71 -0
- package/dist/index.d.ts +0 -22
- package/dist/insights/index.d.ts +1 -0
- package/dist/insights/index.es.js +4 -0
- package/dist/investments/index.es.js +1638 -0
- package/dist/merchants/index.es.js +79 -0
- package/dist/microinsights/components/carouselheader/CarouselHeader.d.ts +0 -1
- package/dist/microinsights/components/microBeatCarousel/MicroBeatCarousel.d.ts +0 -1
- package/dist/microinsights/index.es.js +16 -0
- package/dist/networth/index.es.js +576 -0
- package/dist/notifications/index.es.js +192 -0
- package/dist/recurringtransactions/index.es.js +879 -0
- package/dist/settings/index.es.js +879 -0
- package/dist/spending/index.es.js +570 -0
- package/dist/transactions/index.es.js +587 -0
- package/dist/trends/index.es.js +1086 -0
- package/dist/useCombineEvents-DaDBSR_1.mjs +92 -0
- package/dist/useDimensions-27p2evRx.mjs +36 -0
- package/dist/useScreenSize-B6JyS_Lj.mjs +36 -0
- package/package.json +155 -3
- package/dist/index.es.js +0 -30564
- package/dist/index.es.js.map +0 -1
- package/dist/trends/constants/TrendsWidget.d.ts +0 -3
@@ -0,0 +1,1959 @@
|
|
1
|
+
import { jsx as e, jsxs as R } from "react/jsx-runtime";
|
2
|
+
import E, { useState as ae, useEffect as q } from "react";
|
3
|
+
import { observer as P } from "mobx-react-lite";
|
4
|
+
import Pe from "@mui/material/CssBaseline";
|
5
|
+
import { useTheme as ye, ThemeProvider as Ge } from "@mui/material/styles";
|
6
|
+
import be from "@mui/material/Link";
|
7
|
+
import U from "@mui/material/Stack";
|
8
|
+
import Ee from "@mui/material/Typography";
|
9
|
+
import { ChevronLeft as Ue, ChevronRight as ve } from "@mxenabled/mx-icons";
|
10
|
+
import { L as ze } from "./Loader-Dp1P2gNw.mjs";
|
11
|
+
import b from "@mui/material/Box";
|
12
|
+
import ue from "@mui/material/IconButton";
|
13
|
+
import { useInView as Se } from "react-intersection-observer";
|
14
|
+
import { P as Ke, CategoryIcon as $e, useTokens as Me, MerchantLogo as Ye, Icon as Q } from "@mxenabled/mxui";
|
15
|
+
import Ae from "@mui/material/styles/useTheme";
|
16
|
+
import { c as je } from "./Category-5S6uwuXz.mjs";
|
17
|
+
import { css as Xe } from "@mxenabled/cssinjs";
|
18
|
+
import { b as Qe } from "./Localization-2MODESHW.mjs";
|
19
|
+
import qe from "@mui/material/CircularProgress";
|
20
|
+
import { makeAutoObservable as ce, runInAction as Oe } from "mobx";
|
21
|
+
import { G as pe, a as Je, u as et, b as tt } from "./useCombineEvents-DaDBSR_1.mjs";
|
22
|
+
import { B as _e } from "./BeatApi-DLu87ijw.mjs";
|
23
|
+
import it from "@mui/material/Card";
|
24
|
+
import ot from "@mui/material/CardActions";
|
25
|
+
import rt from "@mui/material/CardContent";
|
26
|
+
import lt from "@mui/material/CardHeader";
|
27
|
+
class nt {
|
28
|
+
copyApi = new pe("/", "");
|
29
|
+
copyObject = {};
|
30
|
+
namespace = "experiences";
|
31
|
+
translationKey = "micro_insights";
|
32
|
+
constructor() {
|
33
|
+
ce(this);
|
34
|
+
}
|
35
|
+
initialize = async (o, t) => {
|
36
|
+
this.copyApi = new pe(o, t), await this.loadCopy();
|
37
|
+
};
|
38
|
+
loadCopy = async () => {
|
39
|
+
const o = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
40
|
+
Oe(() => {
|
41
|
+
this.copyObject = o[this.translationKey];
|
42
|
+
});
|
43
|
+
};
|
44
|
+
get cardsCopy() {
|
45
|
+
return this.copyObject.cards;
|
46
|
+
}
|
47
|
+
get carouselCopy() {
|
48
|
+
return this.copyObject.carousel;
|
49
|
+
}
|
50
|
+
get zeroStateCopy() {
|
51
|
+
return this.copyObject.zero_state;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
const de = {
|
55
|
+
BillAmountNotStandard: "BillAmountNotStandard",
|
56
|
+
CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
|
57
|
+
DuplicatePaymentV2: "DuplicatePaymentV2",
|
58
|
+
IntroducePulse: "IntroducePulse",
|
59
|
+
LargeTransaction: "LargeTransaction",
|
60
|
+
MonthlySpendToIncomeComparisonV2: "MonthlySpendToIncomeComparisonV2",
|
61
|
+
QuarterlySummary: "QuarterlySummary",
|
62
|
+
SpendingPlanCategorySpending: "SpendingPlanCategorySpending",
|
63
|
+
SubscriptionPriceIncrease: "SubscriptionPriceIncrease",
|
64
|
+
UncategorizedTransactionsV2: "UncategorizedTransactionsV2",
|
65
|
+
UpcomingBill: "UpcomingBill",
|
66
|
+
UnifiedDeposit: "UnifiedDeposit",
|
67
|
+
WeeklySpendingPlanSummary: "WeeklySpendingPlanSummary",
|
68
|
+
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
69
|
+
MonthlySpendComparison: "MonthlySpendComparison",
|
70
|
+
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
71
|
+
}, v = window?.app?.clientConfig?.microwidget_instance_id || "", Ce = {
|
72
|
+
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
73
|
+
}, Te = (i) => `on${i}Click`, We = (i) => `on${i}View`, we = (i) => `on${i}ViewFirstTime`, se = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), at = () => Object.values(de).reduce(
|
74
|
+
(i, o) => ({
|
75
|
+
...i,
|
76
|
+
[Te(o)]: {
|
77
|
+
action: N.MICRO_BEAT_CLICKED,
|
78
|
+
category: L.BEAT_INTERACTION,
|
79
|
+
label: se(o),
|
80
|
+
value: v
|
81
|
+
}
|
82
|
+
}),
|
83
|
+
{}
|
84
|
+
), ct = () => Object.values(de).reduce(
|
85
|
+
(i, o) => ({
|
86
|
+
...i,
|
87
|
+
[We(o)]: {
|
88
|
+
action: N.MICRO_BEAT_DISPLAYED,
|
89
|
+
category: L.BEAT_INTERACTION,
|
90
|
+
label: se(o),
|
91
|
+
value: v
|
92
|
+
}
|
93
|
+
}),
|
94
|
+
{}
|
95
|
+
), dt = () => Object.values(de).reduce(
|
96
|
+
(i, o) => ({
|
97
|
+
...i,
|
98
|
+
[we(o)]: {
|
99
|
+
action: N.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
100
|
+
category: L.BEAT_INTERACTION,
|
101
|
+
label: se(o),
|
102
|
+
value: v
|
103
|
+
}
|
104
|
+
}),
|
105
|
+
{}
|
106
|
+
), D = {
|
107
|
+
CARD: "Card",
|
108
|
+
CAROUSEL_CONTROL: "Carousel Control",
|
109
|
+
MICRO_WIDGET: "Micro Widget",
|
110
|
+
VIEW_MORE: "View More"
|
111
|
+
}, L = {
|
112
|
+
MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
|
113
|
+
BEAT_INTERACTION: "Beat Interaction"
|
114
|
+
}, S = {
|
115
|
+
ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
|
116
|
+
ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
|
117
|
+
ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
|
118
|
+
ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
|
119
|
+
ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
|
120
|
+
ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
|
121
|
+
}, xe = {
|
122
|
+
ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
|
123
|
+
}, N = {
|
124
|
+
CONTROL_BACKWARD: "Control Backward",
|
125
|
+
CONTROL_FORWARD: "Control Forward",
|
126
|
+
MICRO_BEAT_CLICKED: "Micro Beat Clicked",
|
127
|
+
MICRO_BEAT_DISPLAYED: "Micro Beat Displayed",
|
128
|
+
MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
|
129
|
+
SWIPE_BACKWARD: "Swipe Backward",
|
130
|
+
SWIPE_FORWARD: "Swipe Forward"
|
131
|
+
}, k = {
|
132
|
+
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
133
|
+
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
134
|
+
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
135
|
+
}, fe = {
|
136
|
+
[k.MICRO_WIDGET_CAROUSEL]: {
|
137
|
+
label: D.MICRO_WIDGET,
|
138
|
+
name: k.MICRO_WIDGET_CAROUSEL,
|
139
|
+
path: Ce.INSIGHTS_MICRO_WIDGET,
|
140
|
+
value: v
|
141
|
+
},
|
142
|
+
// zero state
|
143
|
+
[k.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
144
|
+
label: D.MICRO_WIDGET,
|
145
|
+
name: k.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
146
|
+
path: Ce.INSIGHTS_MICRO_WIDGET,
|
147
|
+
value: v
|
148
|
+
},
|
149
|
+
// no relevant cards
|
150
|
+
[k.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
|
151
|
+
label: D.MICRO_WIDGET,
|
152
|
+
name: k.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
|
153
|
+
path: "/micro-widget",
|
154
|
+
value: v
|
155
|
+
}
|
156
|
+
}, me = {
|
157
|
+
// carousel control interaction events - clicks and swipes
|
158
|
+
[S.ON_CAROUSEL_BACK_CLICK]: {
|
159
|
+
action: N.CONTROL_BACKWARD,
|
160
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
161
|
+
label: D.CAROUSEL_CONTROL,
|
162
|
+
value: v
|
163
|
+
},
|
164
|
+
[S.ON_CAROUSEL_FORWARD_CLICK]: {
|
165
|
+
action: N.CONTROL_FORWARD,
|
166
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
167
|
+
label: D.CAROUSEL_CONTROL,
|
168
|
+
value: v
|
169
|
+
},
|
170
|
+
[S.ON_CAROUSEL_BACK_SWIPE]: {
|
171
|
+
action: N.SWIPE_BACKWARD,
|
172
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
173
|
+
label: D.CAROUSEL_CONTROL,
|
174
|
+
value: v
|
175
|
+
},
|
176
|
+
[S.ON_CAROUSEL_FORWARD_SWIPE]: {
|
177
|
+
action: N.SWIPE_FORWARD,
|
178
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
179
|
+
label: D.CAROUSEL_CONTROL,
|
180
|
+
value: v
|
181
|
+
},
|
182
|
+
// read more card events
|
183
|
+
[S.ON_VIEW_MORE_CLICKED]: {
|
184
|
+
action: N.MICRO_BEAT_CLICKED,
|
185
|
+
category: L.BEAT_INTERACTION,
|
186
|
+
label: D.VIEW_MORE,
|
187
|
+
value: v
|
188
|
+
},
|
189
|
+
[xe.ON_VIEW_MORE_VIEWED]: {
|
190
|
+
action: N.MICRO_BEAT_DISPLAYED,
|
191
|
+
category: L.BEAT_INTERACTION,
|
192
|
+
label: D.VIEW_MORE,
|
193
|
+
value: v
|
194
|
+
},
|
195
|
+
...at(),
|
196
|
+
...ct(),
|
197
|
+
...dt()
|
198
|
+
}, Re = async (i, o) => !o || !me[i] ? null : o.sendAnalyticEvent(me[i]).then((t) => t).catch((t) => {
|
199
|
+
throw t;
|
200
|
+
}), ge = async (i, o) => !o || !fe[i] ? null : o.sendAnalyticsPageview(fe[i]).then((t) => t).catch((t) => {
|
201
|
+
throw t;
|
202
|
+
});
|
203
|
+
class st {
|
204
|
+
onAnalyticEvent = Re;
|
205
|
+
onAnalyticPageView = ge;
|
206
|
+
beatApi = new _e("/", "");
|
207
|
+
constructor() {
|
208
|
+
ce(this);
|
209
|
+
}
|
210
|
+
initialize = async (o, t, r) => {
|
211
|
+
this.onAnalyticEvent = (l, n) => {
|
212
|
+
Re(l, n).then((a) => a).catch((a) => {
|
213
|
+
throw a.status === 401 && r(), a;
|
214
|
+
});
|
215
|
+
}, this.onAnalyticPageView = (l, n) => {
|
216
|
+
ge(l, n).then((a) => a).catch((a) => {
|
217
|
+
throw a.status === 401 && r(), a;
|
218
|
+
});
|
219
|
+
}, this.beatApi = new _e(o, t);
|
220
|
+
};
|
221
|
+
updateBeat = async (o) => {
|
222
|
+
this.beatApi.updateBeat(o);
|
223
|
+
};
|
224
|
+
updateOffer = async (o) => {
|
225
|
+
this.beatApi.updateOffer(o);
|
226
|
+
};
|
227
|
+
}
|
228
|
+
class ht {
|
229
|
+
copyStore;
|
230
|
+
endpoint = "/";
|
231
|
+
insightsMicroWidgetStore;
|
232
|
+
session = null;
|
233
|
+
token = "";
|
234
|
+
isInitialized = !1;
|
235
|
+
constructor() {
|
236
|
+
this.copyStore = new nt(), this.insightsMicroWidgetStore = new st(), ce(this);
|
237
|
+
}
|
238
|
+
initialize = async (o, t, r) => {
|
239
|
+
await this.copyStore.initialize(o, t), await this.insightsMicroWidgetStore.initialize(o, t, r);
|
240
|
+
const l = await Je(o, t, "1.0.0", "Micro Insights Carousel");
|
241
|
+
Oe(() => {
|
242
|
+
this.session = l, this.isInitialized = !0;
|
243
|
+
});
|
244
|
+
};
|
245
|
+
}
|
246
|
+
const z = E.createContext(null), Et = ({
|
247
|
+
onEvent: i,
|
248
|
+
onPageview: o,
|
249
|
+
store: t,
|
250
|
+
children: r
|
251
|
+
}) => /* @__PURE__ */ e(z.Provider, { value: { onEvent: i, onPageview: o, store: t, children: r }, children: r }), J = E.forwardRef(
|
252
|
+
function({
|
253
|
+
actionText: o,
|
254
|
+
ariaLabel: t,
|
255
|
+
backgroundColor: r,
|
256
|
+
description: l,
|
257
|
+
heightOverrides: n,
|
258
|
+
icon: a,
|
259
|
+
isActiveCard: _,
|
260
|
+
isZeroState: u,
|
261
|
+
onCardClick: p = () => {
|
262
|
+
},
|
263
|
+
showIcon: C,
|
264
|
+
style: f = {},
|
265
|
+
fontColors: s = {},
|
266
|
+
title: d,
|
267
|
+
variant: c,
|
268
|
+
widthOverrides: y
|
269
|
+
}, m) {
|
270
|
+
const [M, A] = E.useState(!1), { cardStyle: T, linkTextStyle: g } = f, G = c ? T : { border: "none", boxShadow: "none", ...T }, I = /* @__PURE__ */ e(
|
271
|
+
Ke,
|
272
|
+
{
|
273
|
+
className: "mx-micro-card-description",
|
274
|
+
color: s.textColor ? "undefined" : "text.primary",
|
275
|
+
sx: {
|
276
|
+
display: "-webkit-box",
|
277
|
+
fontSize: 13,
|
278
|
+
letterSpacing: 0.48,
|
279
|
+
lineHeight: "20px",
|
280
|
+
overflow: "hidden",
|
281
|
+
pl: u ? 0 : 28,
|
282
|
+
pr: u ? 0 : 8,
|
283
|
+
WebkitBoxOrient: "vertical",
|
284
|
+
WebkitLineClamp: 2,
|
285
|
+
wordWrap: "break-word"
|
286
|
+
},
|
287
|
+
children: l && /* @__PURE__ */ e("span", { dangerouslySetInnerHTML: { __html: l } })
|
288
|
+
}
|
289
|
+
);
|
290
|
+
return /* @__PURE__ */ e(
|
291
|
+
b,
|
292
|
+
{
|
293
|
+
"aria-hidden": !_,
|
294
|
+
"aria-label": t,
|
295
|
+
"aria-labelledby": "divButton",
|
296
|
+
"aria-roledescription": "slide",
|
297
|
+
ref: m,
|
298
|
+
role: "group",
|
299
|
+
sx: {
|
300
|
+
height: "100%",
|
301
|
+
minWidth: y ? `${y}px` : "100%"
|
302
|
+
},
|
303
|
+
children: /* @__PURE__ */ e(
|
304
|
+
b,
|
305
|
+
{
|
306
|
+
"aria-hidden": !_,
|
307
|
+
"aria-label": t,
|
308
|
+
id: "divButton",
|
309
|
+
onClick: () => p(),
|
310
|
+
onKeyDown: () => A(!1),
|
311
|
+
onKeyUp: () => A(!0),
|
312
|
+
ref: m,
|
313
|
+
role: "button",
|
314
|
+
sx: {
|
315
|
+
border: M ? "1px solid rgba(82, 138, 224, 0.8)" : void 0,
|
316
|
+
borderRadius: "8px",
|
317
|
+
height: "100%"
|
318
|
+
},
|
319
|
+
tabIndex: _ ? 0 : -1,
|
320
|
+
children: /* @__PURE__ */ e(
|
321
|
+
it,
|
322
|
+
{
|
323
|
+
"aria-roledescription": "slide",
|
324
|
+
className: "mx-micro-card",
|
325
|
+
role: "group",
|
326
|
+
sx: {
|
327
|
+
backgroundColor: r,
|
328
|
+
cursor: "pointer",
|
329
|
+
height: n ? "100%" : 124,
|
330
|
+
p: 16,
|
331
|
+
...G,
|
332
|
+
"& .MuiCardHeader-avatar": {
|
333
|
+
color: s.iconColor,
|
334
|
+
mr: "8px"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
variant: c,
|
338
|
+
children: /* @__PURE__ */ R(
|
339
|
+
U,
|
340
|
+
{
|
341
|
+
sx: {
|
342
|
+
alignItems: "space-between",
|
343
|
+
height: "100%"
|
344
|
+
},
|
345
|
+
children: [
|
346
|
+
/* @__PURE__ */ e(
|
347
|
+
lt,
|
348
|
+
{
|
349
|
+
avatar: C && a,
|
350
|
+
subheader: u && I,
|
351
|
+
sx: { color: s.headerColor, p: 0 },
|
352
|
+
title: d,
|
353
|
+
titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
|
354
|
+
}
|
355
|
+
),
|
356
|
+
/* @__PURE__ */ e(rt, { sx: { p: 0 }, children: !u && I }),
|
357
|
+
!!o && /* @__PURE__ */ e(
|
358
|
+
ot,
|
359
|
+
{
|
360
|
+
sx: {
|
361
|
+
mt: "auto",
|
362
|
+
p: 0
|
363
|
+
},
|
364
|
+
children: /* @__PURE__ */ e(
|
365
|
+
b,
|
366
|
+
{
|
367
|
+
sx: (W) => ({
|
368
|
+
color: s.buttonColor ? s.buttonColor : W.palette.primary.main,
|
369
|
+
// TODO: Per Cameron the theme package in @mxenabled/mxui will be getting a big update and this will be theme.palette.primary_main
|
370
|
+
fontSize: 14,
|
371
|
+
fontWeight: "bold",
|
372
|
+
px: 28,
|
373
|
+
...g
|
374
|
+
}),
|
375
|
+
children: o
|
376
|
+
}
|
377
|
+
)
|
378
|
+
}
|
379
|
+
)
|
380
|
+
]
|
381
|
+
}
|
382
|
+
)
|
383
|
+
}
|
384
|
+
)
|
385
|
+
}
|
386
|
+
)
|
387
|
+
}
|
388
|
+
);
|
389
|
+
}
|
390
|
+
), ut = ({ beat: i }) => {
|
391
|
+
const [o, t] = ae(je.UNCATEGORIZED);
|
392
|
+
return q(() => {
|
393
|
+
i.primary_category_guid ? t(i.primary_category_guid) : i.category_guids?.length && t(i.category_guids[0]);
|
394
|
+
}, []), /* @__PURE__ */ e($e, { categoryGuid: o, size: 16, sx: { minWidth: 16 } });
|
395
|
+
}, pt = ({ beat: i }) => {
|
396
|
+
const o = Me(), t = _t(o);
|
397
|
+
return /* @__PURE__ */ e(
|
398
|
+
Ye,
|
399
|
+
{
|
400
|
+
categoryGuid: i.primary_category_guid || i.category_guids && i.category_guids[0] || "",
|
401
|
+
className: t,
|
402
|
+
merchantGuid: i.primary_merchant_guid || i.merchant_guids[0],
|
403
|
+
size: 16
|
404
|
+
}
|
405
|
+
);
|
406
|
+
}, _t = (i) => Xe({
|
407
|
+
marginTop: i.Spacing.XTiny,
|
408
|
+
"& .kyper-categoryicon": {
|
409
|
+
display: "flex"
|
410
|
+
}
|
411
|
+
}), Ct = P(pt), ft = ({
|
412
|
+
color: i = "currentColor",
|
413
|
+
height: o,
|
414
|
+
size: t = 16,
|
415
|
+
styles: r,
|
416
|
+
viewBox: l = "0 0 16 16",
|
417
|
+
width: n
|
418
|
+
}) => /* @__PURE__ */ e(
|
419
|
+
"svg",
|
420
|
+
{
|
421
|
+
"aria-hidden": !0,
|
422
|
+
className: "kyper-icon",
|
423
|
+
focusable: !1,
|
424
|
+
height: o || t,
|
425
|
+
style: r,
|
426
|
+
viewBox: l,
|
427
|
+
width: n || t,
|
428
|
+
xmlns: "http://www.w3.org/2000/svg",
|
429
|
+
children: /* @__PURE__ */ e(
|
430
|
+
"path",
|
431
|
+
{
|
432
|
+
d: "M16 1.5C16 0.671573 15.3284 0 14.5 0H1.5C0.671573 0 0 0.671573 0 1.5V14.5C0 15.3284 0.671573 16 1.5 16H14.5C15.3284 16 16 15.3284 16 14.5V1.5ZM12.8 5.1C13.0209 5.26568 13.0657 5.57909 12.9 5.8L9.90003 9.8C9.71746 10.0434 9.36163 10.0687 9.14648 9.85355L6.55413 7.2612L3.90003 10.8C3.73434 11.0209 3.42094 11.0657 3.20003 10.9C2.97912 10.7343 2.93434 10.4209 3.10003 10.2L6.10003 6.2C6.28259 5.95658 6.63843 5.93129 6.85358 6.14645L9.44593 8.7388L12.1 5.2C12.2657 4.97908 12.5791 4.93431 12.8 5.1Z",
|
433
|
+
fill: i
|
434
|
+
}
|
435
|
+
)
|
436
|
+
}
|
437
|
+
), mt = (i) => i ? i.data ? i.data.map((o) => {
|
438
|
+
const t = {};
|
439
|
+
return i.names?.map((r, l) => {
|
440
|
+
t[r] = o[l];
|
441
|
+
}), t;
|
442
|
+
}) : [] : [], Rt = (i, o) => {
|
443
|
+
const t = mt(i), r = t.length / 2, l = t.slice(0, r), n = t.slice(r);
|
444
|
+
return !l.length || !n.length ? o.Color.Primary300 : l[0].amount > n[0].amount ? o.Color.Error300 : l[0].amount < n[0].amount ? o.Color.Success300 : o.Color.Primary300;
|
445
|
+
}, gt = ({ beat: i }) => {
|
446
|
+
const o = Me(), t = Rt(i.data_series, o);
|
447
|
+
return /* @__PURE__ */ e(Q, { name: "bar_chart", sx: { color: t } });
|
448
|
+
}, De = () => /* @__PURE__ */ R("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
449
|
+
/* @__PURE__ */ e(
|
450
|
+
"path",
|
451
|
+
{
|
452
|
+
clipRule: "evenodd",
|
453
|
+
d: "M24.9618 32.6003H9.92084C9.60559 32.6003 9.34766 32.3424 9.34766 32.0271V18.3125C9.34766 17.9972 9.60559 17.7393 9.92084 17.7393H24.9618C25.2771 17.7393 25.535 17.9972 25.535 18.3125V32.0271C25.535 32.3424 25.2771 32.6003 24.9618 32.6003Z",
|
454
|
+
fill: "#CDD3DD",
|
455
|
+
fillRule: "evenodd"
|
456
|
+
}
|
457
|
+
),
|
458
|
+
/* @__PURE__ */ e(
|
459
|
+
"path",
|
460
|
+
{
|
461
|
+
clipRule: "evenodd",
|
462
|
+
d: "M25.535 18.3124V19.5952H9.34766V18.3124C9.34766 17.9974 9.6055 17.7393 9.92084 17.7393H24.9618C25.2771 17.7393 25.535 17.9974 25.535 18.3124Z",
|
463
|
+
fill: "#E8F6FF",
|
464
|
+
fillRule: "evenodd"
|
465
|
+
}
|
466
|
+
),
|
467
|
+
/* @__PURE__ */ e(
|
468
|
+
"path",
|
469
|
+
{
|
470
|
+
clipRule: "evenodd",
|
471
|
+
d: "M10.8689 18.7157C10.8689 18.96 10.6709 19.158 10.4266 19.158C10.1824 19.158 9.98438 18.96 9.98438 18.7157C9.98438 18.4714 10.1824 18.2734 10.4266 18.2734C10.6709 18.2734 10.8689 18.4714 10.8689 18.7157Z",
|
472
|
+
fill: "#C3E4FF",
|
473
|
+
fillRule: "evenodd"
|
474
|
+
}
|
475
|
+
),
|
476
|
+
/* @__PURE__ */ e(
|
477
|
+
"path",
|
478
|
+
{
|
479
|
+
clipRule: "evenodd",
|
480
|
+
d: "M12.2986 18.7157C12.2986 18.96 12.1006 19.158 11.8563 19.158C11.6121 19.158 11.4141 18.96 11.4141 18.7157C11.4141 18.4714 11.6121 18.2734 11.8563 18.2734C12.1006 18.2734 12.2986 18.4714 12.2986 18.7157Z",
|
481
|
+
fill: "#C3E4FF",
|
482
|
+
fillRule: "evenodd"
|
483
|
+
}
|
484
|
+
),
|
485
|
+
/* @__PURE__ */ e(
|
486
|
+
"path",
|
487
|
+
{
|
488
|
+
clipRule: "evenodd",
|
489
|
+
d: "M13.7263 18.7157C13.7263 18.96 13.5283 19.158 13.2841 19.158C13.0398 19.158 12.8418 18.96 12.8418 18.7157C12.8418 18.4714 13.0398 18.2734 13.2841 18.2734C13.5283 18.2734 13.7263 18.4714 13.7263 18.7157Z",
|
490
|
+
fill: "#C3E4FF",
|
491
|
+
fillRule: "evenodd"
|
492
|
+
}
|
493
|
+
),
|
494
|
+
/* @__PURE__ */ e(
|
495
|
+
"path",
|
496
|
+
{
|
497
|
+
clipRule: "evenodd",
|
498
|
+
d: "M26.7313 35.6692H11.6904C11.3751 35.6692 11.1172 35.4112 11.1172 35.096V21.3813C11.1172 21.0661 11.3751 20.8081 11.6904 20.8081H26.7313C27.0466 20.8081 27.3045 21.0661 27.3045 21.3813V35.096C27.3045 35.4112 27.0466 35.6692 26.7313 35.6692Z",
|
499
|
+
fill: "#E4E8EE",
|
500
|
+
fillRule: "evenodd"
|
501
|
+
}
|
502
|
+
),
|
503
|
+
/* @__PURE__ */ e(
|
504
|
+
"path",
|
505
|
+
{
|
506
|
+
clipRule: "evenodd",
|
507
|
+
d: "M27.3045 21.3813V22.6641H11.1172V21.3813C11.1172 21.0662 11.375 20.8081 11.6904 20.8081H26.7313C27.0467 20.8081 27.3045 21.0662 27.3045 21.3813Z",
|
508
|
+
fill: "#E8F6FF",
|
509
|
+
fillRule: "evenodd"
|
510
|
+
}
|
511
|
+
),
|
512
|
+
/* @__PURE__ */ e(
|
513
|
+
"path",
|
514
|
+
{
|
515
|
+
clipRule: "evenodd",
|
516
|
+
d: "M12.6404 21.7846C12.6404 22.0288 12.4424 22.2268 12.1981 22.2268C11.9539 22.2268 11.7559 22.0288 11.7559 21.7846C11.7559 21.5403 11.9539 21.3423 12.1981 21.3423C12.4424 21.3423 12.6404 21.5403 12.6404 21.7846Z",
|
517
|
+
fill: "#C3E4FF",
|
518
|
+
fillRule: "evenodd"
|
519
|
+
}
|
520
|
+
),
|
521
|
+
/* @__PURE__ */ e(
|
522
|
+
"path",
|
523
|
+
{
|
524
|
+
clipRule: "evenodd",
|
525
|
+
d: "M14.0701 21.7846C14.0701 22.0288 13.8721 22.2268 13.6278 22.2268C13.3836 22.2268 13.1855 22.0288 13.1855 21.7846C13.1855 21.5403 13.3836 21.3423 13.6278 21.3423C13.8721 21.3423 14.0701 21.5403 14.0701 21.7846Z",
|
526
|
+
fill: "#C3E4FF",
|
527
|
+
fillRule: "evenodd"
|
528
|
+
}
|
529
|
+
),
|
530
|
+
/* @__PURE__ */ e(
|
531
|
+
"path",
|
532
|
+
{
|
533
|
+
clipRule: "evenodd",
|
534
|
+
d: "M15.4959 21.7846C15.4959 22.0288 15.2979 22.2268 15.0536 22.2268C14.8094 22.2268 14.6113 22.0288 14.6113 21.7846C14.6113 21.5403 14.8094 21.3423 15.0536 21.3423C15.2979 21.3423 15.4959 21.5403 15.4959 21.7846Z",
|
535
|
+
fill: "#C3E4FF",
|
536
|
+
fillRule: "evenodd"
|
537
|
+
}
|
538
|
+
),
|
539
|
+
/* @__PURE__ */ e(
|
540
|
+
"path",
|
541
|
+
{
|
542
|
+
clipRule: "evenodd",
|
543
|
+
d: "M38.0145 25.175H22.9736C22.6584 25.175 22.4004 24.9171 22.4004 24.6018V10.8871C22.4004 10.5719 22.6584 10.314 22.9736 10.314H38.0145C38.3298 10.314 38.5878 10.5719 38.5878 10.8871V24.6018C38.5878 24.9171 38.3298 25.175 38.0145 25.175Z",
|
544
|
+
fill: "#EEF1F6",
|
545
|
+
fillRule: "evenodd"
|
546
|
+
}
|
547
|
+
),
|
548
|
+
/* @__PURE__ */ e("mask", { height: "3", id: "mask0_1565_98011", maskUnits: "userSpaceOnUse", width: "17", x: "22", y: "10", children: /* @__PURE__ */ e(
|
549
|
+
"path",
|
550
|
+
{
|
551
|
+
clipRule: "evenodd",
|
552
|
+
d: "M22.4004 10.3022H38.5878V12.1582H22.4004V10.3022Z",
|
553
|
+
fill: "white",
|
554
|
+
fillRule: "evenodd"
|
555
|
+
}
|
556
|
+
) }),
|
557
|
+
/* @__PURE__ */ e("g", { mask: "url(#mask0_1565_98011)", children: /* @__PURE__ */ e(
|
558
|
+
"path",
|
559
|
+
{
|
560
|
+
clipRule: "evenodd",
|
561
|
+
d: "M38.5878 10.8754V12.1582H22.4004V10.8754C22.4004 10.5604 22.6582 10.3022 22.9736 10.3022H38.0146C38.3299 10.3022 38.5878 10.5604 38.5878 10.8754Z",
|
562
|
+
fill: "#CDD3DD",
|
563
|
+
fillRule: "evenodd"
|
564
|
+
}
|
565
|
+
) }),
|
566
|
+
/* @__PURE__ */ e(
|
567
|
+
"path",
|
568
|
+
{
|
569
|
+
clipRule: "evenodd",
|
570
|
+
d: "M23.9099 11.2802C23.9099 11.5244 23.7119 11.7224 23.4677 11.7224C23.2234 11.7224 23.0254 11.5244 23.0254 11.2802C23.0254 11.0359 23.2234 10.8379 23.4677 10.8379C23.7119 10.8379 23.9099 11.0359 23.9099 11.2802Z",
|
571
|
+
fill: "#C3E4FF",
|
572
|
+
fillRule: "evenodd"
|
573
|
+
}
|
574
|
+
),
|
575
|
+
/* @__PURE__ */ e(
|
576
|
+
"path",
|
577
|
+
{
|
578
|
+
clipRule: "evenodd",
|
579
|
+
d: "M25.3377 11.2802C25.3377 11.5244 25.1397 11.7224 24.8954 11.7224C24.6511 11.7224 24.4531 11.5244 24.4531 11.2802C24.4531 11.0359 24.6511 10.8379 24.8954 10.8379C25.1397 10.8379 25.3377 11.0359 25.3377 11.2802Z",
|
580
|
+
fill: "#C3E4FF",
|
581
|
+
fillRule: "evenodd"
|
582
|
+
}
|
583
|
+
),
|
584
|
+
/* @__PURE__ */ e(
|
585
|
+
"path",
|
586
|
+
{
|
587
|
+
clipRule: "evenodd",
|
588
|
+
d: "M26.7654 11.2802C26.7654 11.5244 26.5674 11.7224 26.3231 11.7224C26.0789 11.7224 25.8809 11.5244 25.8809 11.2802C25.8809 11.0359 26.0789 10.8379 26.3231 10.8379C26.5674 10.8379 26.7654 11.0359 26.7654 11.2802Z",
|
589
|
+
fill: "#C3E4FF",
|
590
|
+
fillRule: "evenodd"
|
591
|
+
}
|
592
|
+
),
|
593
|
+
/* @__PURE__ */ e(
|
594
|
+
"path",
|
595
|
+
{
|
596
|
+
clipRule: "evenodd",
|
597
|
+
d: "M29.1719 27.6866H32.7022V27.0142H29.1719V27.6866Z",
|
598
|
+
fill: "#C3E4FF",
|
599
|
+
fillRule: "evenodd"
|
600
|
+
}
|
601
|
+
),
|
602
|
+
/* @__PURE__ */ e(
|
603
|
+
"path",
|
604
|
+
{
|
605
|
+
clipRule: "evenodd",
|
606
|
+
d: "M29.1719 28.6871H39.2264V28.3726H29.1719V28.6871Z",
|
607
|
+
fill: "#EEF1F6",
|
608
|
+
fillRule: "evenodd"
|
609
|
+
}
|
610
|
+
),
|
611
|
+
/* @__PURE__ */ e(
|
612
|
+
"path",
|
613
|
+
{
|
614
|
+
clipRule: "evenodd",
|
615
|
+
d: "M29.1719 30.5064H39.5626V30.1919H29.1719V30.5064Z",
|
616
|
+
fill: "#EEF1F6",
|
617
|
+
fillRule: "evenodd"
|
618
|
+
}
|
619
|
+
),
|
620
|
+
/* @__PURE__ */ e(
|
621
|
+
"path",
|
622
|
+
{
|
623
|
+
clipRule: "evenodd",
|
624
|
+
d: "M29.1719 31.4156H40.0029V31.1011H29.1719V31.4156Z",
|
625
|
+
fill: "#EEF1F6",
|
626
|
+
fillRule: "evenodd"
|
627
|
+
}
|
628
|
+
),
|
629
|
+
/* @__PURE__ */ e(
|
630
|
+
"path",
|
631
|
+
{
|
632
|
+
clipRule: "evenodd",
|
633
|
+
d: "M29.1719 32.3253H35.7521V32.0107H29.1719V32.3253Z",
|
634
|
+
fill: "#EEF1F6",
|
635
|
+
fillRule: "evenodd"
|
636
|
+
}
|
637
|
+
),
|
638
|
+
/* @__PURE__ */ e(
|
639
|
+
"path",
|
640
|
+
{
|
641
|
+
clipRule: "evenodd",
|
642
|
+
d: "M29.1719 29.5953H40.0029V29.2808H29.1719V29.5953Z",
|
643
|
+
fill: "#EEF1F6",
|
644
|
+
fillRule: "evenodd"
|
645
|
+
}
|
646
|
+
),
|
647
|
+
/* @__PURE__ */ e(
|
648
|
+
"path",
|
649
|
+
{
|
650
|
+
clipRule: "evenodd",
|
651
|
+
d: "M9.98438 11.9322H13.1338V11.2598H9.98438V11.9322Z",
|
652
|
+
fill: "#C3E4FF",
|
653
|
+
fillRule: "evenodd"
|
654
|
+
}
|
655
|
+
),
|
656
|
+
/* @__PURE__ */ e(
|
657
|
+
"path",
|
658
|
+
{
|
659
|
+
clipRule: "evenodd",
|
660
|
+
d: "M9.98438 12.9327H18.954V12.6182H9.98438V12.9327Z",
|
661
|
+
fill: "#D6EEFF",
|
662
|
+
fillRule: "evenodd"
|
663
|
+
}
|
664
|
+
),
|
665
|
+
/* @__PURE__ */ e(
|
666
|
+
"path",
|
667
|
+
{
|
668
|
+
clipRule: "evenodd",
|
669
|
+
d: "M9.98438 14.7506H19.254V14.436H9.98438V14.7506Z",
|
670
|
+
fill: "#D6EEFF",
|
671
|
+
fillRule: "evenodd"
|
672
|
+
}
|
673
|
+
),
|
674
|
+
/* @__PURE__ */ e(
|
675
|
+
"path",
|
676
|
+
{
|
677
|
+
clipRule: "evenodd",
|
678
|
+
d: "M9.98438 15.6602H16.8127V15.3457H9.98438V15.6602Z",
|
679
|
+
fill: "#D6EEFF",
|
680
|
+
fillRule: "evenodd"
|
681
|
+
}
|
682
|
+
),
|
683
|
+
/* @__PURE__ */ e(
|
684
|
+
"path",
|
685
|
+
{
|
686
|
+
clipRule: "evenodd",
|
687
|
+
d: "M9.98438 13.8409H19.6468V13.5264H9.98438V13.8409Z",
|
688
|
+
fill: "#D6EEFF",
|
689
|
+
fillRule: "evenodd"
|
690
|
+
}
|
691
|
+
),
|
692
|
+
/* @__PURE__ */ R("g", { filter: "url(#filter0_d_1565_98011)", children: [
|
693
|
+
/* @__PURE__ */ e("mask", { height: "22", id: "mask1_1565_98011", maskUnits: "userSpaceOnUse", width: "17", x: "16", y: "12", children: /* @__PURE__ */ e(
|
694
|
+
"path",
|
695
|
+
{
|
696
|
+
clipRule: "evenodd",
|
697
|
+
d: "M16.5098 12.2725H32.8412V33.707H16.5098V12.2725Z",
|
698
|
+
fill: "white",
|
699
|
+
fillRule: "evenodd"
|
700
|
+
}
|
701
|
+
) }),
|
702
|
+
/* @__PURE__ */ e("g", { mask: "url(#mask1_1565_98011)", children: /* @__PURE__ */ e(
|
703
|
+
"path",
|
704
|
+
{
|
705
|
+
clipRule: "evenodd",
|
706
|
+
d: "M32.3427 33.707H17.0083C16.7341 33.707 16.5098 33.4827 16.5098 33.2086V12.7709C16.5098 12.4968 16.7341 12.2725 17.0083 12.2725H32.3427C32.6169 12.2725 32.8412 12.4968 32.8412 12.7709V33.2086C32.8412 33.4827 32.6169 33.707 32.3427 33.707Z",
|
707
|
+
fill: "white",
|
708
|
+
fillRule: "evenodd"
|
709
|
+
}
|
710
|
+
) }),
|
711
|
+
/* @__PURE__ */ e(
|
712
|
+
"path",
|
713
|
+
{
|
714
|
+
clipRule: "evenodd",
|
715
|
+
d: "M20.875 21.5786H31.134V21.1816H20.875V21.5786Z",
|
716
|
+
fill: "#E4E8EE",
|
717
|
+
fillRule: "evenodd"
|
718
|
+
}
|
719
|
+
),
|
720
|
+
/* @__PURE__ */ e(
|
721
|
+
"path",
|
722
|
+
{
|
723
|
+
clipRule: "evenodd",
|
724
|
+
d: "M20.875 22.4077H28.1023V22.0107H20.875V22.4077Z",
|
725
|
+
fill: "#E4E8EE",
|
726
|
+
fillRule: "evenodd"
|
727
|
+
}
|
728
|
+
),
|
729
|
+
/* @__PURE__ */ e(
|
730
|
+
"path",
|
731
|
+
{
|
732
|
+
clipRule: "evenodd",
|
733
|
+
d: "M20.875 31.8461H27.8799V31.3003H20.875V31.8461Z",
|
734
|
+
fill: "#E4E8EE",
|
735
|
+
fillRule: "evenodd"
|
736
|
+
}
|
737
|
+
),
|
738
|
+
/* @__PURE__ */ e(
|
739
|
+
"path",
|
740
|
+
{
|
741
|
+
clipRule: "evenodd",
|
742
|
+
d: "M18.7308 22.7869C18.1849 22.7869 17.7383 22.3404 17.7383 21.7946C17.7383 21.2488 18.1849 20.8022 18.7308 20.8022C19.2767 20.8022 19.7233 21.2488 19.7233 21.7946C19.7233 22.3404 19.2767 22.7869 18.7308 22.7869Z",
|
743
|
+
fill: "#E4E8EE",
|
744
|
+
fillRule: "evenodd",
|
745
|
+
stroke: "#E4E8EE",
|
746
|
+
strokeWidth: "0.176004"
|
747
|
+
}
|
748
|
+
),
|
749
|
+
/* @__PURE__ */ e(
|
750
|
+
"path",
|
751
|
+
{
|
752
|
+
clipRule: "evenodd",
|
753
|
+
d: "M18.7308 29.3841C18.1849 29.3841 17.7383 28.9375 17.7383 28.3917C17.7383 27.8459 18.1849 27.3994 18.7308 27.3994C19.2767 27.3994 19.7233 27.8459 19.7233 28.3917C19.7233 28.9375 19.2767 29.3841 18.7308 29.3841Z",
|
754
|
+
fill: "#E4E8EE",
|
755
|
+
fillRule: "evenodd",
|
756
|
+
stroke: "#E4E8EE",
|
757
|
+
strokeWidth: "0.176004"
|
758
|
+
}
|
759
|
+
),
|
760
|
+
/* @__PURE__ */ e(
|
761
|
+
"path",
|
762
|
+
{
|
763
|
+
clipRule: "evenodd",
|
764
|
+
d: "M18.7308 26.0862C18.1849 26.0862 17.7383 25.6397 17.7383 25.0939C17.7383 24.5481 18.1849 24.1016 18.7308 24.1016C19.2767 24.1016 19.7233 24.5481 19.7233 25.0939C19.7233 25.6397 19.2767 26.0862 18.7308 26.0862Z",
|
765
|
+
fill: "#E4E8EE",
|
766
|
+
fillRule: "evenodd",
|
767
|
+
stroke: "#E4E8EE",
|
768
|
+
strokeWidth: "0.176004"
|
769
|
+
}
|
770
|
+
),
|
771
|
+
/* @__PURE__ */ e(
|
772
|
+
"path",
|
773
|
+
{
|
774
|
+
clipRule: "evenodd",
|
775
|
+
d: "M20.875 24.8764H31.134V24.4795H20.875V24.8764Z",
|
776
|
+
fill: "#E4E8EE",
|
777
|
+
fillRule: "evenodd"
|
778
|
+
}
|
779
|
+
),
|
780
|
+
/* @__PURE__ */ e(
|
781
|
+
"path",
|
782
|
+
{
|
783
|
+
clipRule: "evenodd",
|
784
|
+
d: "M20.875 25.707H28.1023V25.3101H20.875V25.707Z",
|
785
|
+
fill: "#E4E8EE",
|
786
|
+
fillRule: "evenodd"
|
787
|
+
}
|
788
|
+
),
|
789
|
+
/* @__PURE__ */ e(
|
790
|
+
"path",
|
791
|
+
{
|
792
|
+
clipRule: "evenodd",
|
793
|
+
d: "M20.875 28.1758H31.134V27.7788H20.875V28.1758Z",
|
794
|
+
fill: "#E4E8EE",
|
795
|
+
fillRule: "evenodd"
|
796
|
+
}
|
797
|
+
),
|
798
|
+
/* @__PURE__ */ e(
|
799
|
+
"path",
|
800
|
+
{
|
801
|
+
clipRule: "evenodd",
|
802
|
+
d: "M20.875 29.0049H28.1023V28.6079H20.875V29.0049Z",
|
803
|
+
fill: "#E4E8EE",
|
804
|
+
fillRule: "evenodd"
|
805
|
+
}
|
806
|
+
),
|
807
|
+
/* @__PURE__ */ e(
|
808
|
+
"path",
|
809
|
+
{
|
810
|
+
clipRule: "evenodd",
|
811
|
+
d: "M17.7383 18.0811L18.4668 18.657L19.758 17.1641",
|
812
|
+
fill: "#E4E8EE",
|
813
|
+
fillRule: "evenodd"
|
814
|
+
}
|
815
|
+
),
|
816
|
+
/* @__PURE__ */ e(
|
817
|
+
"path",
|
818
|
+
{
|
819
|
+
d: "M17.7383 18.0811L18.4668 18.657L19.758 17.1641",
|
820
|
+
stroke: "#E4E8EE",
|
821
|
+
strokeWidth: "0.264005"
|
822
|
+
}
|
823
|
+
),
|
824
|
+
/* @__PURE__ */ e(
|
825
|
+
"path",
|
826
|
+
{
|
827
|
+
clipRule: "evenodd",
|
828
|
+
d: "M17.7383 14.7823L18.4668 15.3582L19.758 13.8652",
|
829
|
+
fill: "#E4E8EE",
|
830
|
+
fillRule: "evenodd"
|
831
|
+
}
|
832
|
+
),
|
833
|
+
/* @__PURE__ */ e(
|
834
|
+
"path",
|
835
|
+
{
|
836
|
+
d: "M17.7383 14.7823L18.4668 15.3582L19.758 13.8652",
|
837
|
+
stroke: "#E4E8EE",
|
838
|
+
strokeWidth: "0.264005"
|
839
|
+
}
|
840
|
+
),
|
841
|
+
/* @__PURE__ */ e(
|
842
|
+
"path",
|
843
|
+
{
|
844
|
+
clipRule: "evenodd",
|
845
|
+
d: "M20.875 14.3389H31.134V13.8369H20.875V14.3389Z",
|
846
|
+
fill: "#E4E8EE",
|
847
|
+
fillRule: "evenodd"
|
848
|
+
}
|
849
|
+
),
|
850
|
+
/* @__PURE__ */ e(
|
851
|
+
"path",
|
852
|
+
{
|
853
|
+
clipRule: "evenodd",
|
854
|
+
d: "M20.875 15.3878H28.1023V14.8857H20.875V15.3878Z",
|
855
|
+
fill: "#E4E8EE",
|
856
|
+
fillRule: "evenodd"
|
857
|
+
}
|
858
|
+
),
|
859
|
+
/* @__PURE__ */ e(
|
860
|
+
"path",
|
861
|
+
{
|
862
|
+
clipRule: "evenodd",
|
863
|
+
d: "M20.4648 14.0869H31.545H20.4648Z",
|
864
|
+
fill: "#E4E8EE",
|
865
|
+
fillRule: "evenodd"
|
866
|
+
}
|
867
|
+
),
|
868
|
+
/* @__PURE__ */ e("path", { d: "M20.4648 14.0869H31.545", stroke: "#E4E8EE", strokeWidth: "0.0880018" }),
|
869
|
+
/* @__PURE__ */ e(
|
870
|
+
"path",
|
871
|
+
{
|
872
|
+
clipRule: "evenodd",
|
873
|
+
d: "M20.4648 15.1372H28.4939H20.4648Z",
|
874
|
+
fill: "#E4E8EE",
|
875
|
+
fillRule: "evenodd"
|
876
|
+
}
|
877
|
+
),
|
878
|
+
/* @__PURE__ */ e("path", { d: "M20.4648 15.1372H28.4939", stroke: "#E4E8EE", strokeWidth: "0.0880018" }),
|
879
|
+
/* @__PURE__ */ e(
|
880
|
+
"path",
|
881
|
+
{
|
882
|
+
clipRule: "evenodd",
|
883
|
+
d: "M20.875 17.6368H31.134V17.1348H20.875V17.6368Z",
|
884
|
+
fill: "#E4E8EE",
|
885
|
+
fillRule: "evenodd"
|
886
|
+
}
|
887
|
+
),
|
888
|
+
/* @__PURE__ */ e(
|
889
|
+
"path",
|
890
|
+
{
|
891
|
+
clipRule: "evenodd",
|
892
|
+
d: "M20.875 18.6861H28.1023V18.1841H20.875V18.6861Z",
|
893
|
+
fill: "#E4E8EE",
|
894
|
+
fillRule: "evenodd"
|
895
|
+
}
|
896
|
+
),
|
897
|
+
/* @__PURE__ */ e(
|
898
|
+
"path",
|
899
|
+
{
|
900
|
+
clipRule: "evenodd",
|
901
|
+
d: "M20.4648 17.3858H31.545H20.4648Z",
|
902
|
+
fill: "#E4E8EE",
|
903
|
+
fillRule: "evenodd"
|
904
|
+
}
|
905
|
+
),
|
906
|
+
/* @__PURE__ */ e("path", { d: "M20.4648 17.3858H31.545", stroke: "#E4E8EE", strokeWidth: "0.0880018" }),
|
907
|
+
/* @__PURE__ */ e(
|
908
|
+
"path",
|
909
|
+
{
|
910
|
+
clipRule: "evenodd",
|
911
|
+
d: "M20.4648 18.4356H28.4939H20.4648Z",
|
912
|
+
fill: "#E4E8EE",
|
913
|
+
fillRule: "evenodd"
|
914
|
+
}
|
915
|
+
),
|
916
|
+
/* @__PURE__ */ e("path", { d: "M20.4648 18.4356H28.4939", stroke: "#E4E8EE", strokeWidth: "0.0880018" }),
|
917
|
+
/* @__PURE__ */ e(
|
918
|
+
"path",
|
919
|
+
{
|
920
|
+
clipRule: "evenodd",
|
921
|
+
d: "M18.2832 19.8984H31.0117H18.2832Z",
|
922
|
+
fill: "#E4E8EE",
|
923
|
+
fillRule: "evenodd"
|
924
|
+
}
|
925
|
+
),
|
926
|
+
/* @__PURE__ */ e("path", { d: "M18.2832 19.8984H31.0117", stroke: "#E4E8EE", strokeWidth: "0.0880018" }),
|
927
|
+
/* @__PURE__ */ e(
|
928
|
+
"path",
|
929
|
+
{
|
930
|
+
clipRule: "evenodd",
|
931
|
+
d: "M18.7295 30.8101V32.3377V30.8101Z",
|
932
|
+
fill: "#E4E8EE",
|
933
|
+
fillRule: "evenodd"
|
934
|
+
}
|
935
|
+
),
|
936
|
+
/* @__PURE__ */ e("path", { d: "M18.7295 30.8101V32.3377", stroke: "#E4E8EE", strokeWidth: "0.264005" }),
|
937
|
+
/* @__PURE__ */ e(
|
938
|
+
"path",
|
939
|
+
{
|
940
|
+
clipRule: "evenodd",
|
941
|
+
d: "M17.9668 31.5737H19.4947H17.9668Z",
|
942
|
+
fill: "#E4E8EE",
|
943
|
+
fillRule: "evenodd"
|
944
|
+
}
|
945
|
+
),
|
946
|
+
/* @__PURE__ */ e("path", { d: "M17.9668 31.5737H19.4947", stroke: "#E4E8EE", strokeWidth: "0.264005" })
|
947
|
+
] }),
|
948
|
+
/* @__PURE__ */ R("g", { filter: "url(#filter1_d_1565_98011)", children: [
|
949
|
+
/* @__PURE__ */ e("circle", { cx: "15.0441", cy: "16.0441", fill: "#CDD3DD", r: "15.0441" }),
|
950
|
+
/* @__PURE__ */ e("mask", { height: "30", id: "mask2_1565_98011", maskUnits: "userSpaceOnUse", width: "30", x: "0", y: "1", children: /* @__PURE__ */ e("circle", { cx: "15.0435", cy: "16.0445", fill: "#F8F9FB", r: "14.3951" }) }),
|
951
|
+
/* @__PURE__ */ R("g", { mask: "url(#mask2_1565_98011)", children: [
|
952
|
+
/* @__PURE__ */ e("rect", { fill: "white", height: "31.1359", transform: "translate(0 0.162598)", width: "31.0101" }),
|
953
|
+
/* @__PURE__ */ e("rect", { fill: "#A8B1BD", height: "3.0172", rx: "0.167622", width: "3.0172", x: "3.26953", y: "4.52002" }),
|
954
|
+
/* @__PURE__ */ e("rect", { fill: "#A8B1BD", height: "3.0172", rx: "0.167622", width: "3.0172", x: "3.26953", y: "17.1758" }),
|
955
|
+
/* @__PURE__ */ e("rect", { fill: "#A8B1BD", height: "3.0172", rx: "0.167622", width: "3.0172", x: "3.26953", y: "26.0186" }),
|
956
|
+
/* @__PURE__ */ e("rect", { fill: "#A8B1BD", height: "3.0172", rx: "0.167622", width: "3.0172", x: "3.26953", y: "9.04541" }),
|
957
|
+
/* @__PURE__ */ e(
|
958
|
+
"rect",
|
959
|
+
{
|
960
|
+
fill: "#CDD3DD",
|
961
|
+
height: "1.17336",
|
962
|
+
rx: "0.167622",
|
963
|
+
width: "10.9793",
|
964
|
+
x: "6.87305",
|
965
|
+
y: "4.52002"
|
966
|
+
}
|
967
|
+
),
|
968
|
+
/* @__PURE__ */ e(
|
969
|
+
"rect",
|
970
|
+
{
|
971
|
+
fill: "#CDD3DD",
|
972
|
+
height: "1.17336",
|
973
|
+
rx: "0.167622",
|
974
|
+
width: "10.9793",
|
975
|
+
x: "6.87305",
|
976
|
+
y: "17.1758"
|
977
|
+
}
|
978
|
+
),
|
979
|
+
/* @__PURE__ */ e(
|
980
|
+
"rect",
|
981
|
+
{
|
982
|
+
fill: "#CDD3DD",
|
983
|
+
height: "1.17336",
|
984
|
+
rx: "0.167622",
|
985
|
+
width: "10.9793",
|
986
|
+
x: "6.87305",
|
987
|
+
y: "26.0186"
|
988
|
+
}
|
989
|
+
),
|
990
|
+
/* @__PURE__ */ e(
|
991
|
+
"rect",
|
992
|
+
{
|
993
|
+
fill: "#CDD3DD",
|
994
|
+
height: "1.17336",
|
995
|
+
rx: "0.167622",
|
996
|
+
width: "10.9793",
|
997
|
+
x: "6.87305",
|
998
|
+
y: "9.04541"
|
999
|
+
}
|
1000
|
+
),
|
1001
|
+
/* @__PURE__ */ e(
|
1002
|
+
"rect",
|
1003
|
+
{
|
1004
|
+
fill: "#EEF1F6",
|
1005
|
+
height: "0.880018",
|
1006
|
+
rx: "0.167622",
|
1007
|
+
width: "10.9793",
|
1008
|
+
x: "3.26953",
|
1009
|
+
y: "2.34131"
|
1010
|
+
}
|
1011
|
+
),
|
1012
|
+
/* @__PURE__ */ e(
|
1013
|
+
"rect",
|
1014
|
+
{
|
1015
|
+
fill: "#EEF1F6",
|
1016
|
+
height: "0.880018",
|
1017
|
+
rx: "0.167622",
|
1018
|
+
width: "10.9793",
|
1019
|
+
x: "3.26953",
|
1020
|
+
y: "14.9971"
|
1021
|
+
}
|
1022
|
+
),
|
1023
|
+
/* @__PURE__ */ e(
|
1024
|
+
"rect",
|
1025
|
+
{
|
1026
|
+
fill: "#EEF1F6",
|
1027
|
+
height: "0.880018",
|
1028
|
+
rx: "0.167622",
|
1029
|
+
width: "10.9793",
|
1030
|
+
x: "3.26953",
|
1031
|
+
y: "23.8389"
|
1032
|
+
}
|
1033
|
+
),
|
1034
|
+
/* @__PURE__ */ e(
|
1035
|
+
"rect",
|
1036
|
+
{
|
1037
|
+
fill: "#EEF1F6",
|
1038
|
+
height: "1.17336",
|
1039
|
+
rx: "0.167622",
|
1040
|
+
width: "8.50684",
|
1041
|
+
x: "6.87305",
|
1042
|
+
y: "6.36377"
|
1043
|
+
}
|
1044
|
+
),
|
1045
|
+
/* @__PURE__ */ e(
|
1046
|
+
"rect",
|
1047
|
+
{
|
1048
|
+
fill: "#EEF1F6",
|
1049
|
+
height: "1.17336",
|
1050
|
+
rx: "0.167622",
|
1051
|
+
width: "8.50684",
|
1052
|
+
x: "6.87305",
|
1053
|
+
y: "19.0195"
|
1054
|
+
}
|
1055
|
+
),
|
1056
|
+
/* @__PURE__ */ e(
|
1057
|
+
"rect",
|
1058
|
+
{
|
1059
|
+
fill: "#EEF1F6",
|
1060
|
+
height: "1.17336",
|
1061
|
+
rx: "0.167622",
|
1062
|
+
width: "8.50684",
|
1063
|
+
x: "6.87305",
|
1064
|
+
y: "27.8613"
|
1065
|
+
}
|
1066
|
+
),
|
1067
|
+
/* @__PURE__ */ e(
|
1068
|
+
"rect",
|
1069
|
+
{
|
1070
|
+
fill: "#EEF1F6",
|
1071
|
+
height: "1.17336",
|
1072
|
+
rx: "0.167622",
|
1073
|
+
width: "8.50684",
|
1074
|
+
x: "6.87305",
|
1075
|
+
y: "10.8892"
|
1076
|
+
}
|
1077
|
+
),
|
1078
|
+
/* @__PURE__ */ e(
|
1079
|
+
"rect",
|
1080
|
+
{
|
1081
|
+
fill: "#A8B1BD",
|
1082
|
+
height: "1.17336",
|
1083
|
+
rx: "0.167622",
|
1084
|
+
width: "5.15439",
|
1085
|
+
x: "21.666",
|
1086
|
+
y: "5.44238"
|
1087
|
+
}
|
1088
|
+
),
|
1089
|
+
/* @__PURE__ */ e(
|
1090
|
+
"rect",
|
1091
|
+
{
|
1092
|
+
fill: "#A8B1BD",
|
1093
|
+
height: "1.17336",
|
1094
|
+
rx: "0.167622",
|
1095
|
+
width: "5.15439",
|
1096
|
+
x: "21.666",
|
1097
|
+
y: "18.0972"
|
1098
|
+
}
|
1099
|
+
),
|
1100
|
+
/* @__PURE__ */ e(
|
1101
|
+
"rect",
|
1102
|
+
{
|
1103
|
+
fill: "#A8B1BD",
|
1104
|
+
height: "1.17336",
|
1105
|
+
rx: "0.167622",
|
1106
|
+
width: "5.15439",
|
1107
|
+
x: "21.666",
|
1108
|
+
y: "26.9399"
|
1109
|
+
}
|
1110
|
+
),
|
1111
|
+
/* @__PURE__ */ e(
|
1112
|
+
"rect",
|
1113
|
+
{
|
1114
|
+
fill: "#A8B1BD",
|
1115
|
+
height: "1.17336",
|
1116
|
+
rx: "0.167622",
|
1117
|
+
width: "5.15439",
|
1118
|
+
x: "21.666",
|
1119
|
+
y: "9.96826"
|
1120
|
+
}
|
1121
|
+
),
|
1122
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 8.25H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1123
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 20.9058H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1124
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 29.7476H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1125
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 12.7759H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1126
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 3.72412H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1127
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 16.3799H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1128
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 25.2217H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1129
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 8.25H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1130
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 20.9058H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" }),
|
1131
|
+
/* @__PURE__ */ e("path", { d: "M2.64062 29.7476H27.4487", stroke: "#E4E8EE", strokeWidth: "0.0838112" })
|
1132
|
+
] })
|
1133
|
+
] }),
|
1134
|
+
/* @__PURE__ */ e(
|
1135
|
+
"path",
|
1136
|
+
{
|
1137
|
+
d: "M24.1888 27.3166L24.4326 27.0728L25.6395 27.8404L32.2915 34.4924C32.4911 34.6919 32.4911 35.0154 32.2915 35.215C32.092 35.4145 31.7685 35.4145 31.569 35.215L24.9487 28.5947L24.1888 27.3166Z",
|
1138
|
+
fill: "#CDD3DD"
|
1139
|
+
}
|
1140
|
+
),
|
1141
|
+
/* @__PURE__ */ R("defs", { children: [
|
1142
|
+
/* @__PURE__ */ R(
|
1143
|
+
"filter",
|
1144
|
+
{
|
1145
|
+
colorInterpolationFilters: "sRGB",
|
1146
|
+
filterUnits: "userSpaceOnUse",
|
1147
|
+
height: "22.1051",
|
1148
|
+
id: "filter0_d_1565_98011",
|
1149
|
+
width: "17.0025",
|
1150
|
+
x: "16.1745",
|
1151
|
+
y: "12.0629",
|
1152
|
+
children: [
|
1153
|
+
/* @__PURE__ */ e("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
1154
|
+
/* @__PURE__ */ e(
|
1155
|
+
"feColorMatrix",
|
1156
|
+
{
|
1157
|
+
in: "SourceAlpha",
|
1158
|
+
result: "hardAlpha",
|
1159
|
+
type: "matrix",
|
1160
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
1161
|
+
}
|
1162
|
+
),
|
1163
|
+
/* @__PURE__ */ e("feOffset", { dy: "0.125717" }),
|
1164
|
+
/* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "0.167622" }),
|
1165
|
+
/* @__PURE__ */ e(
|
1166
|
+
"feColorMatrix",
|
1167
|
+
{
|
1168
|
+
type: "matrix",
|
1169
|
+
values: "0 0 0 0 0.341176 0 0 0 0 0.4 0 0 0 0 0.458824 0 0 0 0.15 0"
|
1170
|
+
}
|
1171
|
+
),
|
1172
|
+
/* @__PURE__ */ e("feBlend", { in2: "BackgroundImageFix", mode: "normal", result: "effect1_dropShadow_1565_98011" }),
|
1173
|
+
/* @__PURE__ */ e(
|
1174
|
+
"feBlend",
|
1175
|
+
{
|
1176
|
+
in: "SourceGraphic",
|
1177
|
+
in2: "effect1_dropShadow_1565_98011",
|
1178
|
+
mode: "normal",
|
1179
|
+
result: "shape"
|
1180
|
+
}
|
1181
|
+
)
|
1182
|
+
]
|
1183
|
+
}
|
1184
|
+
),
|
1185
|
+
/* @__PURE__ */ R(
|
1186
|
+
"filter",
|
1187
|
+
{
|
1188
|
+
colorInterpolationFilters: "sRGB",
|
1189
|
+
filterUnits: "userSpaceOnUse",
|
1190
|
+
height: "31.7646",
|
1191
|
+
id: "filter1_d_1565_98011",
|
1192
|
+
width: "31.7641",
|
1193
|
+
x: "-0.838112",
|
1194
|
+
y: "0.580944",
|
1195
|
+
children: [
|
1196
|
+
/* @__PURE__ */ e("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
1197
|
+
/* @__PURE__ */ e(
|
1198
|
+
"feColorMatrix",
|
1199
|
+
{
|
1200
|
+
in: "SourceAlpha",
|
1201
|
+
result: "hardAlpha",
|
1202
|
+
type: "matrix",
|
1203
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
1204
|
+
}
|
1205
|
+
),
|
1206
|
+
/* @__PURE__ */ e("feOffset", { dy: "0.419056" }),
|
1207
|
+
/* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "0.419056" }),
|
1208
|
+
/* @__PURE__ */ e(
|
1209
|
+
"feColorMatrix",
|
1210
|
+
{
|
1211
|
+
type: "matrix",
|
1212
|
+
values: "0 0 0 0 0.341176 0 0 0 0 0.4 0 0 0 0 0.458824 0 0 0 0.16 0"
|
1213
|
+
}
|
1214
|
+
),
|
1215
|
+
/* @__PURE__ */ e("feBlend", { in2: "BackgroundImageFix", mode: "normal", result: "effect1_dropShadow_1565_98011" }),
|
1216
|
+
/* @__PURE__ */ e(
|
1217
|
+
"feBlend",
|
1218
|
+
{
|
1219
|
+
in: "SourceGraphic",
|
1220
|
+
in2: "effect1_dropShadow_1565_98011",
|
1221
|
+
mode: "normal",
|
1222
|
+
result: "shape"
|
1223
|
+
}
|
1224
|
+
)
|
1225
|
+
]
|
1226
|
+
}
|
1227
|
+
)
|
1228
|
+
] })
|
1229
|
+
] }), Ie = ({ beat: i, clientColorScheme: o, color: t, type: r }) => {
|
1230
|
+
const l = Ae(), n = o?.primary_300 ? o.primary_300 : l.palette.primary.main;
|
1231
|
+
return r === 0 ? /* @__PURE__ */ e(Q, { fill: !0, name: "error", sx: { color: t || n } }) : r === 1 && i ? /* @__PURE__ */ e(ut, { beat: i }) : r === 2 && i ? /* @__PURE__ */ e(Ct, { beat: i }) : r === 3 && i ? /* @__PURE__ */ e(gt, { beat: i }) : r === 5 && i ? /* @__PURE__ */ e(Q, { name: "campaign" }) : /* @__PURE__ */ e(
|
1232
|
+
Q,
|
1233
|
+
{
|
1234
|
+
fill: !0,
|
1235
|
+
name: "info",
|
1236
|
+
sx: {
|
1237
|
+
color: n
|
1238
|
+
}
|
1239
|
+
}
|
1240
|
+
);
|
1241
|
+
}, F = () => {
|
1242
|
+
const i = E.useContext(z);
|
1243
|
+
if (!i)
|
1244
|
+
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
1245
|
+
return i.store.copyStore;
|
1246
|
+
}, It = () => {
|
1247
|
+
const i = E.useContext(z);
|
1248
|
+
if (!i?.store?.insightsMicroWidgetStore)
|
1249
|
+
throw new Error(
|
1250
|
+
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
1251
|
+
);
|
1252
|
+
return i.store.insightsMicroWidgetStore;
|
1253
|
+
}, K = () => {
|
1254
|
+
const i = E.useContext(z);
|
1255
|
+
if (!i)
|
1256
|
+
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
1257
|
+
return { onEvent: i.onEvent };
|
1258
|
+
}, Le = () => {
|
1259
|
+
const i = E.useContext(z);
|
1260
|
+
if (!i)
|
1261
|
+
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
1262
|
+
return { onPageview: i.onPageview };
|
1263
|
+
}, Ne = {
|
1264
|
+
LARGE: 180,
|
1265
|
+
STANDARD: 154,
|
1266
|
+
XLARGE: 200,
|
1267
|
+
XXLARGE: 248
|
1268
|
+
}, yt = 50, Ve = 1, vt = ({
|
1269
|
+
ariaLabel: i,
|
1270
|
+
backgroundColor: o,
|
1271
|
+
beat: t,
|
1272
|
+
clientColorScheme: r,
|
1273
|
+
showCTAColocatedWithText: l = !0,
|
1274
|
+
heightOverrides: n,
|
1275
|
+
index: a,
|
1276
|
+
isActiveCard: _,
|
1277
|
+
onCardClick: u,
|
1278
|
+
posthog: p,
|
1279
|
+
showIcon: C,
|
1280
|
+
variant: f,
|
1281
|
+
widthOverrides: s
|
1282
|
+
}) => {
|
1283
|
+
const { ref: d, inView: c } = Se({
|
1284
|
+
threshold: Ve
|
1285
|
+
}), { cardsCopy: y } = F(), { onEvent: m } = K(), { updateBeat: M, updateOffer: A } = It();
|
1286
|
+
q(() => {
|
1287
|
+
c && (t.has_been_displayed ? m(We(t.template)) : (t.guid.startsWith("OFR") ? A({
|
1288
|
+
...t,
|
1289
|
+
has_been_displayed: !0
|
1290
|
+
}) : M({
|
1291
|
+
...t,
|
1292
|
+
has_been_displayed: !0
|
1293
|
+
}), m(we(t.template))));
|
1294
|
+
}, [c]), q(() => {
|
1295
|
+
if (c && t)
|
1296
|
+
if (t.template === "MarketingOffer") {
|
1297
|
+
const g = t;
|
1298
|
+
p?.capture("viewed_messaging_insight", {
|
1299
|
+
template: t.template,
|
1300
|
+
campaign_guid: g.campaign_guid,
|
1301
|
+
campaign_name: g.pulse_campaign_name
|
1302
|
+
});
|
1303
|
+
} else
|
1304
|
+
p?.capture("viewed_insight", {
|
1305
|
+
beat_guid: t.guid,
|
1306
|
+
template: t.template,
|
1307
|
+
position: a
|
1308
|
+
});
|
1309
|
+
}, [t, a, c]);
|
1310
|
+
const T = () => {
|
1311
|
+
if (u && u(t), m(Te(t.template)), t.template === "MarketingOffer") {
|
1312
|
+
const g = t;
|
1313
|
+
p?.capture("clicked_messaging_insight", {
|
1314
|
+
template: t.template,
|
1315
|
+
campaign_guid: g.campaign_guid,
|
1316
|
+
campaign_name: g.pulse_campaign_name
|
1317
|
+
});
|
1318
|
+
} else
|
1319
|
+
p?.capture("clicked_insight", {
|
1320
|
+
beat_guid: t.guid,
|
1321
|
+
template: t.template,
|
1322
|
+
position: a
|
1323
|
+
});
|
1324
|
+
};
|
1325
|
+
return /* @__PURE__ */ e(
|
1326
|
+
J,
|
1327
|
+
{
|
1328
|
+
actionText: t.micro_call_to_action || y.micro_card_cta,
|
1329
|
+
ariaLabel: i,
|
1330
|
+
backgroundColor: o,
|
1331
|
+
description: t?.html_micro_description && t?.html_micro_description.length > 0 ? t.html_micro_description : t.html_description,
|
1332
|
+
fontColors: { buttonColor: r?.primary_300 },
|
1333
|
+
heightOverrides: n,
|
1334
|
+
icon: Ie && /* @__PURE__ */ e(
|
1335
|
+
Ie,
|
1336
|
+
{
|
1337
|
+
beat: t,
|
1338
|
+
clientColorScheme: r,
|
1339
|
+
color: t?.icon_color,
|
1340
|
+
type: t?.icon_type
|
1341
|
+
}
|
1342
|
+
),
|
1343
|
+
isActiveCard: _,
|
1344
|
+
onCardClick: T,
|
1345
|
+
posthog: p,
|
1346
|
+
ref: d,
|
1347
|
+
showCTAColocatedWithText: l,
|
1348
|
+
showIcon: C,
|
1349
|
+
title: t.micro_title && t.micro_title.length > 0 ? t.micro_title : t.title,
|
1350
|
+
variant: f,
|
1351
|
+
widthOverrides: s
|
1352
|
+
}
|
1353
|
+
);
|
1354
|
+
}, St = ({
|
1355
|
+
clientColorScheme: i,
|
1356
|
+
currentBeatIndex: o,
|
1357
|
+
numBeats: t,
|
1358
|
+
onNextClick: r,
|
1359
|
+
onPreviousClick: l,
|
1360
|
+
scrollRightBoundary: n,
|
1361
|
+
scrollX: a,
|
1362
|
+
shouldApplyNewAnimation: _ = !1,
|
1363
|
+
visibleCardsCount: u = 1
|
1364
|
+
}) => {
|
1365
|
+
const p = ye(), { carouselCopy: C } = F(), f = Math.floor(a) > n || o - u + 1 === 0, s = a < 0 || t - 1 === o, d = p.palette.grey[500], c = i?.primary_300 ?? p.palette.primary.main;
|
1366
|
+
return /* @__PURE__ */ R(
|
1367
|
+
U,
|
1368
|
+
{
|
1369
|
+
direction: "row",
|
1370
|
+
sx: {
|
1371
|
+
alignItems: "center",
|
1372
|
+
justifyContent: "center",
|
1373
|
+
pt: 4,
|
1374
|
+
width: "100%",
|
1375
|
+
// we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1
|
1376
|
+
"& button:first-child": {
|
1377
|
+
mr: 8
|
1378
|
+
}
|
1379
|
+
},
|
1380
|
+
children: [
|
1381
|
+
/* @__PURE__ */ e(
|
1382
|
+
ue,
|
1383
|
+
{
|
1384
|
+
"aria-disabled": f,
|
1385
|
+
"aria-label": C.previous_insight_cta_aria,
|
1386
|
+
disabled: f,
|
1387
|
+
onClick: l,
|
1388
|
+
children: /* @__PURE__ */ e(
|
1389
|
+
Ue,
|
1390
|
+
{
|
1391
|
+
style: {
|
1392
|
+
color: f ? d : c
|
1393
|
+
}
|
1394
|
+
}
|
1395
|
+
)
|
1396
|
+
}
|
1397
|
+
),
|
1398
|
+
Array.from({ length: t }).map((y, m) => {
|
1399
|
+
const M = m === o;
|
1400
|
+
return /* @__PURE__ */ e(
|
1401
|
+
b,
|
1402
|
+
{
|
1403
|
+
className: "mx-insights-micro-carousel-dots",
|
1404
|
+
sx: {
|
1405
|
+
bgcolor: M ? c : d,
|
1406
|
+
height: 8,
|
1407
|
+
mr: 8,
|
1408
|
+
// existing comment from meganthan "we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1"
|
1409
|
+
..._ ? {
|
1410
|
+
borderRadius: "4px",
|
1411
|
+
transformOrigin: "center",
|
1412
|
+
transition: "all 0.5s ease-out",
|
1413
|
+
willChange: "width, background-color"
|
1414
|
+
} : {
|
1415
|
+
borderRadius: "50%",
|
1416
|
+
p: 0
|
1417
|
+
},
|
1418
|
+
width: M && _ ? 24 : 8
|
1419
|
+
}
|
1420
|
+
},
|
1421
|
+
`carousel-button-${m}`
|
1422
|
+
);
|
1423
|
+
}),
|
1424
|
+
/* @__PURE__ */ e(
|
1425
|
+
ue,
|
1426
|
+
{
|
1427
|
+
"aria-disabled": s,
|
1428
|
+
"aria-label": C.next_insight_cta_aria,
|
1429
|
+
disabled: s,
|
1430
|
+
onClick: r,
|
1431
|
+
children: /* @__PURE__ */ e(
|
1432
|
+
ve,
|
1433
|
+
{
|
1434
|
+
style: {
|
1435
|
+
color: s ? d : c
|
1436
|
+
}
|
1437
|
+
}
|
1438
|
+
)
|
1439
|
+
}
|
1440
|
+
)
|
1441
|
+
]
|
1442
|
+
}
|
1443
|
+
);
|
1444
|
+
}, Mt = ({
|
1445
|
+
allowSingleCardPeeking: i = !1,
|
1446
|
+
beats: o = [],
|
1447
|
+
clientColorScheme: t,
|
1448
|
+
showCTAColocatedWithText: r,
|
1449
|
+
heightOverrides: l,
|
1450
|
+
onCardClick: n,
|
1451
|
+
posthog: a,
|
1452
|
+
shouldApplyNewAnimation: _ = !1,
|
1453
|
+
showCarouselControls: u,
|
1454
|
+
showIcon: p,
|
1455
|
+
showWithMargin: C = !0,
|
1456
|
+
variant: f,
|
1457
|
+
widthOverrides: s,
|
1458
|
+
visibleCardsCount: d = 1
|
1459
|
+
// Default to 1 card visible
|
1460
|
+
}) => {
|
1461
|
+
const c = E.useRef(null), y = E.useRef(null), [m, M] = E.useState(0), [A, T] = E.useState(null), [g, G] = E.useState(null), [I, W] = E.useState(null), [ee, te] = E.useState(_), { carouselCopy: B } = F(), { onEvent: w } = K();
|
1462
|
+
E.useEffect(() => {
|
1463
|
+
if (c.current && !i) {
|
1464
|
+
const h = c.current.offsetWidth, O = 8;
|
1465
|
+
let H;
|
1466
|
+
if (d > 1) {
|
1467
|
+
const j = (h - (d - 1) * O) / d / 3;
|
1468
|
+
H = (h - j - (d - 1) * O) / d;
|
1469
|
+
} else
|
1470
|
+
H = h;
|
1471
|
+
W(H);
|
1472
|
+
}
|
1473
|
+
}, [d, c.current?.offsetWidth]), E.useEffect(() => {
|
1474
|
+
const h = y.current?.offsetWidth;
|
1475
|
+
if (typeof h == "number" && i) {
|
1476
|
+
const O = (Z) => {
|
1477
|
+
te(!0);
|
1478
|
+
const X = [
|
1479
|
+
{ maxWidth: 375, cardWidth: 268 },
|
1480
|
+
{ maxWidth: 444, cardWidth: 300 },
|
1481
|
+
{ maxWidth: 599, cardWidth: 350 },
|
1482
|
+
{ maxWidth: 749, cardWidth: 450 },
|
1483
|
+
{ maxWidth: 900, cardWidth: 600 }
|
1484
|
+
].find((ne) => Z <= ne.maxWidth);
|
1485
|
+
return X ? X.cardWidth : 750;
|
1486
|
+
};
|
1487
|
+
W(O(h));
|
1488
|
+
const H = () => {
|
1489
|
+
const Z = y.current?.offsetWidth;
|
1490
|
+
typeof Z == "number" && W(O(Z));
|
1491
|
+
};
|
1492
|
+
return window.addEventListener("resize", H), () => {
|
1493
|
+
window.removeEventListener("resize", H);
|
1494
|
+
};
|
1495
|
+
}
|
1496
|
+
}, [i, y]);
|
1497
|
+
const ie = () => {
|
1498
|
+
w(S.ON_CAROUSEL_FORWARD_CLICK), c.current && I && c.current.scrollTo({
|
1499
|
+
left: m + I + 8,
|
1500
|
+
top: 0,
|
1501
|
+
behavior: "smooth"
|
1502
|
+
});
|
1503
|
+
}, oe = () => {
|
1504
|
+
w(S.ON_CAROUSEL_BACK_CLICK), c.current && I && c.current.scrollTo({
|
1505
|
+
left: Math.max(0, m - (I + 8)),
|
1506
|
+
top: 0,
|
1507
|
+
behavior: "smooth"
|
1508
|
+
});
|
1509
|
+
}, re = () => {
|
1510
|
+
c.current && M(c.current.scrollLeft);
|
1511
|
+
}, $ = () => {
|
1512
|
+
if (!g || !A) return;
|
1513
|
+
g - A > yt ? w(S.ON_CAROUSEL_FORWARD_SWIPE) : w(S.ON_CAROUSEL_BACK_SWIPE);
|
1514
|
+
}, Y = (h) => {
|
1515
|
+
T(h.targetTouches[0].clientX);
|
1516
|
+
}, V = (h) => {
|
1517
|
+
T(null), G(h.targetTouches[0].clientX);
|
1518
|
+
}, he = {
|
1519
|
+
clientColorScheme: t,
|
1520
|
+
showCTAColocatedWithText: r,
|
1521
|
+
heightOverrides: l,
|
1522
|
+
posthog: a,
|
1523
|
+
showIcon: p,
|
1524
|
+
variant: f
|
1525
|
+
}, le = I ? Math.round(m / (I + 8)) : 0, Fe = c.current ? c.current.scrollWidth - c.current.offsetWidth : 0;
|
1526
|
+
return /* @__PURE__ */ R(
|
1527
|
+
U,
|
1528
|
+
{
|
1529
|
+
"aria-label": B.carousel_title,
|
1530
|
+
"aria-roledescription": "carousel",
|
1531
|
+
ref: y,
|
1532
|
+
role: "group/region",
|
1533
|
+
sx: {
|
1534
|
+
alignItems: "center",
|
1535
|
+
boxSizing: "border-box",
|
1536
|
+
height: l,
|
1537
|
+
width: s || "100%"
|
1538
|
+
},
|
1539
|
+
children: [
|
1540
|
+
/* @__PURE__ */ R(
|
1541
|
+
U,
|
1542
|
+
{
|
1543
|
+
direction: "row",
|
1544
|
+
onScroll: re,
|
1545
|
+
onTouchEnd: $,
|
1546
|
+
onTouchMove: Y,
|
1547
|
+
onTouchStart: V,
|
1548
|
+
ref: c,
|
1549
|
+
sx: {
|
1550
|
+
alignItems: "center",
|
1551
|
+
height: l && "100%",
|
1552
|
+
gap: 8,
|
1553
|
+
listStyleType: "none",
|
1554
|
+
m: 0,
|
1555
|
+
maxWidth: C ? "calc(100% - 32px)" : "100%",
|
1556
|
+
overflowX: "auto",
|
1557
|
+
overflowY: "hidden",
|
1558
|
+
p: 0,
|
1559
|
+
scrollbarWidth: "none",
|
1560
|
+
"-ms-overflow-style": "none",
|
1561
|
+
"-webkit-overflow-scrolling": "touch",
|
1562
|
+
"&::-webkit-scrollbar": {
|
1563
|
+
display: "none"
|
1564
|
+
}
|
1565
|
+
},
|
1566
|
+
children: [
|
1567
|
+
o.map((h, O) => {
|
1568
|
+
const H = O + 1, Z = o.length + 1, j = Qe(
|
1569
|
+
B.card_position_in_carousel_aria,
|
1570
|
+
H.toString(),
|
1571
|
+
Z.toString()
|
1572
|
+
), X = h.micro_title && h.micro_title.length > 0, ne = h.micro_description && h.micro_description.length > 0, Be = X ? h.micro_title : h.title, Ze = ne ? h.micro_description : h.description;
|
1573
|
+
return /* @__PURE__ */ e(
|
1574
|
+
vt,
|
1575
|
+
{
|
1576
|
+
ariaLabel: `${j}: ${Be}, ${Ze}`,
|
1577
|
+
beat: h,
|
1578
|
+
index: O,
|
1579
|
+
isActiveCard: O === le,
|
1580
|
+
onCardClick: n,
|
1581
|
+
widthOverrides: I || void 0,
|
1582
|
+
...he
|
1583
|
+
},
|
1584
|
+
`${h.guid} ${O}`
|
1585
|
+
);
|
1586
|
+
}),
|
1587
|
+
/* @__PURE__ */ e(
|
1588
|
+
Lt,
|
1589
|
+
{
|
1590
|
+
isActiveCard: le === o.length,
|
1591
|
+
onCardClick: n,
|
1592
|
+
widthOverrides: I || void 0,
|
1593
|
+
...he
|
1594
|
+
}
|
1595
|
+
)
|
1596
|
+
]
|
1597
|
+
}
|
1598
|
+
),
|
1599
|
+
u && /* @__PURE__ */ e(
|
1600
|
+
St,
|
1601
|
+
{
|
1602
|
+
clientColorScheme: t,
|
1603
|
+
currentBeatIndex: le + d - 1,
|
1604
|
+
numBeats: o.length + 1,
|
1605
|
+
onNextClick: ie,
|
1606
|
+
onPreviousClick: oe,
|
1607
|
+
scrollRightBoundary: Fe,
|
1608
|
+
scrollX: m,
|
1609
|
+
shouldApplyNewAnimation: ee,
|
1610
|
+
visibleCardsCount: d
|
1611
|
+
}
|
1612
|
+
)
|
1613
|
+
]
|
1614
|
+
}
|
1615
|
+
);
|
1616
|
+
}, At = P(Mt), Ot = ({
|
1617
|
+
clientColorScheme: i,
|
1618
|
+
onCardClick: o,
|
1619
|
+
posthog: t,
|
1620
|
+
widthOverrides: r
|
1621
|
+
}) => {
|
1622
|
+
const { carouselCopy: l } = F(), { onEvent: n } = K(), a = () => {
|
1623
|
+
n && (n(S.ON_VIEW_MORE_CLICKED), o(), t?.capture("clicked_view_more"));
|
1624
|
+
};
|
1625
|
+
return l ? /* @__PURE__ */ R(
|
1626
|
+
U,
|
1627
|
+
{
|
1628
|
+
alignItems: "center",
|
1629
|
+
direction: "row",
|
1630
|
+
justifyContent: "space-between",
|
1631
|
+
spacing: 2,
|
1632
|
+
sx: {
|
1633
|
+
padding: r ? 0 : 16,
|
1634
|
+
width: r || void 0
|
1635
|
+
},
|
1636
|
+
children: [
|
1637
|
+
/* @__PURE__ */ e(
|
1638
|
+
Ee,
|
1639
|
+
{
|
1640
|
+
sx: {
|
1641
|
+
fontSize: 18,
|
1642
|
+
fontWeight: 700,
|
1643
|
+
lineHeight: "24px"
|
1644
|
+
},
|
1645
|
+
variant: "h3",
|
1646
|
+
children: l.carousel_title
|
1647
|
+
}
|
1648
|
+
),
|
1649
|
+
/* @__PURE__ */ R(
|
1650
|
+
be,
|
1651
|
+
{
|
1652
|
+
onClick: a,
|
1653
|
+
sx: {
|
1654
|
+
display: "flex",
|
1655
|
+
alignItems: "center",
|
1656
|
+
"&.MuiLink-underlineNone": {
|
1657
|
+
textDecoration: "none",
|
1658
|
+
":hover": {
|
1659
|
+
borderBottom: "none"
|
1660
|
+
}
|
1661
|
+
}
|
1662
|
+
},
|
1663
|
+
underline: "none",
|
1664
|
+
children: [
|
1665
|
+
/* @__PURE__ */ e(
|
1666
|
+
Ee,
|
1667
|
+
{
|
1668
|
+
sx: {
|
1669
|
+
color: i?.primary_300,
|
1670
|
+
fontSize: 15,
|
1671
|
+
fontWeight: 600,
|
1672
|
+
lineHeight: "20px"
|
1673
|
+
},
|
1674
|
+
variant: "body1",
|
1675
|
+
children: l.view_all_insights_in_full_feed_cta_aria
|
1676
|
+
}
|
1677
|
+
),
|
1678
|
+
/* @__PURE__ */ e(ve, { sx: { color: i?.primary_300, ml: "8px" } })
|
1679
|
+
]
|
1680
|
+
}
|
1681
|
+
)
|
1682
|
+
]
|
1683
|
+
}
|
1684
|
+
) : /* @__PURE__ */ e(ze, {});
|
1685
|
+
}, Tt = P(Ot), Wt = ({
|
1686
|
+
heightOverrides: i,
|
1687
|
+
widthOverrides: o,
|
1688
|
+
children: t
|
1689
|
+
}) => {
|
1690
|
+
const { carouselCopy: r } = F();
|
1691
|
+
return /* @__PURE__ */ e(
|
1692
|
+
b,
|
1693
|
+
{
|
1694
|
+
"aria-label": r?.carousel_title,
|
1695
|
+
"aria-roledescription": "carousel",
|
1696
|
+
role: "group",
|
1697
|
+
sx: {
|
1698
|
+
boxSizing: "border-box",
|
1699
|
+
height: i ? void 0 : "100%",
|
1700
|
+
m: "0 auto",
|
1701
|
+
width: o ? void 0 : "100%"
|
1702
|
+
},
|
1703
|
+
children: t
|
1704
|
+
}
|
1705
|
+
);
|
1706
|
+
}, He = ({
|
1707
|
+
ariaLabel: i,
|
1708
|
+
carouselSize: o,
|
1709
|
+
clientColorScheme: t,
|
1710
|
+
heightOverrides: r,
|
1711
|
+
onCardClick: l,
|
1712
|
+
posthog: n,
|
1713
|
+
showIcon: a,
|
1714
|
+
showWithMargin: _,
|
1715
|
+
variant: u,
|
1716
|
+
widthOverrides: p
|
1717
|
+
}) => {
|
1718
|
+
const { cardsCopy: C } = F(), { onEvent: f } = K(), { onPageview: s } = Le();
|
1719
|
+
E.useEffect(() => {
|
1720
|
+
s(k.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
1721
|
+
}, []);
|
1722
|
+
const d = () => {
|
1723
|
+
l && l(), f(S.ON_NO_RELEVANT_INSIGHTS_CLICKED), n?.capture("clicked_insight", {
|
1724
|
+
template: "no_relevant_insights"
|
1725
|
+
});
|
1726
|
+
};
|
1727
|
+
return /* @__PURE__ */ e(
|
1728
|
+
J,
|
1729
|
+
{
|
1730
|
+
actionText: C.micro_card_cta,
|
1731
|
+
ariaLabel: i,
|
1732
|
+
description: C.no_relevant_insights_card_description,
|
1733
|
+
fontColors: { buttonColor: t?.primary_300 },
|
1734
|
+
heightOverrides: r,
|
1735
|
+
icon: /* @__PURE__ */ e(De, {}),
|
1736
|
+
isZeroState: !0,
|
1737
|
+
onCardClick: d,
|
1738
|
+
posthog: n,
|
1739
|
+
showIcon: a,
|
1740
|
+
style: {
|
1741
|
+
cardStyle: {
|
1742
|
+
card: {
|
1743
|
+
height: `calc(${Ne[o]}px - 44px)`,
|
1744
|
+
m: "0 auto",
|
1745
|
+
width: _ ? "calc(100% - 32px)" : "100%"
|
1746
|
+
},
|
1747
|
+
description: {
|
1748
|
+
WebkitLineClamp: 4
|
1749
|
+
}
|
1750
|
+
},
|
1751
|
+
linkTextStyle: {
|
1752
|
+
ml: 48
|
1753
|
+
}
|
1754
|
+
},
|
1755
|
+
title: C.no_relevant_insights_card_title,
|
1756
|
+
variant: u,
|
1757
|
+
widthOverrides: p
|
1758
|
+
}
|
1759
|
+
);
|
1760
|
+
}, ni = P(He), ke = ({
|
1761
|
+
ariaLabel: i,
|
1762
|
+
carouselSize: o,
|
1763
|
+
heightOverrides: t,
|
1764
|
+
onCardClick: r,
|
1765
|
+
posthog: l,
|
1766
|
+
showIcon: n,
|
1767
|
+
showWithMargin: a,
|
1768
|
+
variant: _,
|
1769
|
+
widthOverrides: u
|
1770
|
+
}) => {
|
1771
|
+
const { onPageview: p } = Le(), { zeroStateCopy: C } = F();
|
1772
|
+
return E.useEffect(() => {
|
1773
|
+
p(k.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
1774
|
+
}, []), /* @__PURE__ */ e(
|
1775
|
+
J,
|
1776
|
+
{
|
1777
|
+
ariaLabel: i,
|
1778
|
+
description: C.carousel_zero_state_description,
|
1779
|
+
heightOverrides: t,
|
1780
|
+
icon: /* @__PURE__ */ e(De, {}),
|
1781
|
+
isZeroState: !0,
|
1782
|
+
onCardClick: r,
|
1783
|
+
posthog: l,
|
1784
|
+
showIcon: n,
|
1785
|
+
style: {
|
1786
|
+
cardStyle: {
|
1787
|
+
card: {
|
1788
|
+
height: `calc(${Ne[o]}px - 44px)`,
|
1789
|
+
m: "0 auto",
|
1790
|
+
width: a ? "calc(100% - 32px)" : "100%"
|
1791
|
+
},
|
1792
|
+
description: {
|
1793
|
+
WebkitLineClamp: 4
|
1794
|
+
}
|
1795
|
+
}
|
1796
|
+
},
|
1797
|
+
title: C.carousel_zero_state_title,
|
1798
|
+
variant: _,
|
1799
|
+
widthOverrides: u
|
1800
|
+
}
|
1801
|
+
);
|
1802
|
+
}, ai = P(ke), wt = () => /* @__PURE__ */ e(
|
1803
|
+
b,
|
1804
|
+
{
|
1805
|
+
sx: {
|
1806
|
+
alignItems: "center",
|
1807
|
+
display: "flex",
|
1808
|
+
height: "100%",
|
1809
|
+
justifyContent: "center",
|
1810
|
+
width: "100%"
|
1811
|
+
},
|
1812
|
+
children: /* @__PURE__ */ e(qe, {})
|
1813
|
+
}
|
1814
|
+
), x = new ht(), xt = ({
|
1815
|
+
allowSingleCardPeeking: i,
|
1816
|
+
areBeatsLoading: o,
|
1817
|
+
beats: t = [],
|
1818
|
+
// This also determines the length of the carousel controls (beat.length + 1)
|
1819
|
+
clientColorScheme: r,
|
1820
|
+
// Allows certain icons, view all and read more button to reflect the clients color scheme. Currently only supports primary_300
|
1821
|
+
showCTAColocatedWithText: l = !0,
|
1822
|
+
endpoint: n = "/",
|
1823
|
+
heightOverrides: a,
|
1824
|
+
logOutUser: _,
|
1825
|
+
onCardClick: u = () => {
|
1826
|
+
},
|
1827
|
+
onEvent: p = () => {
|
1828
|
+
},
|
1829
|
+
onPageview: C = () => {
|
1830
|
+
},
|
1831
|
+
posthog: f,
|
1832
|
+
shouldApplyNewAnimation: s = !1,
|
1833
|
+
showBorder: d = !0,
|
1834
|
+
showCarouselControls: c,
|
1835
|
+
showHeader: y,
|
1836
|
+
showIcon: m,
|
1837
|
+
showWithMargin: M = !0,
|
1838
|
+
token: A = "",
|
1839
|
+
useDarkMode: T,
|
1840
|
+
userHasFullInsightFeedBeats: g,
|
1841
|
+
variant: G,
|
1842
|
+
visibleCardsCount: I = 1,
|
1843
|
+
widthOverrides: W
|
1844
|
+
}) => {
|
1845
|
+
const ee = ye(), [te, B] = ae("STANDARD"), [w, ie] = ae(!1), oe = et([p], x), re = tt([C], x);
|
1846
|
+
E.useEffect(() => {
|
1847
|
+
x.isInitialized || x.initialize(n, A, _);
|
1848
|
+
}, [n, A, _, x.isInitialized]), E.useEffect(() => {
|
1849
|
+
const V = window.innerHeight;
|
1850
|
+
V < 180 ? B("STANDARD") : V >= 180 && V < 200 ? B("LARGE") : V >= 200 && V < 248 ? B("XLARGE") : V >= 248 && B("XXLARGE");
|
1851
|
+
}, [window.innerHeight]), E.useEffect(() => {
|
1852
|
+
ie(!o && x.isInitialized);
|
1853
|
+
}, [o, x.isInitialized]);
|
1854
|
+
const $ = {
|
1855
|
+
showCTAColocatedWithText: l,
|
1856
|
+
heightOverrides: a,
|
1857
|
+
onCardClick: u,
|
1858
|
+
posthog: f,
|
1859
|
+
showIcon: m,
|
1860
|
+
showWithMargin: M,
|
1861
|
+
useDarkMode: T,
|
1862
|
+
widthOverrides: W
|
1863
|
+
}, Y = {
|
1864
|
+
carouselSize: te,
|
1865
|
+
variant: G,
|
1866
|
+
...$
|
1867
|
+
};
|
1868
|
+
return (
|
1869
|
+
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
1870
|
+
/* @__PURE__ */ R(Ge, { theme: ee, children: [
|
1871
|
+
/* @__PURE__ */ e(Pe, {}),
|
1872
|
+
/* @__PURE__ */ e(Et, { onEvent: oe, onPageview: re, store: x, children: /* @__PURE__ */ R(Wt, { heightOverrides: a, widthOverrides: W, children: [
|
1873
|
+
(o || !x.isInitialized) && /* @__PURE__ */ e(wt, {}),
|
1874
|
+
w && y && /* @__PURE__ */ e(
|
1875
|
+
Tt,
|
1876
|
+
{
|
1877
|
+
clientColorScheme: r,
|
1878
|
+
onCardClick: u,
|
1879
|
+
posthog: f,
|
1880
|
+
widthOverrides: W
|
1881
|
+
}
|
1882
|
+
),
|
1883
|
+
w && !!t.length && /* @__PURE__ */ e(
|
1884
|
+
At,
|
1885
|
+
{
|
1886
|
+
allowSingleCardPeeking: i,
|
1887
|
+
beats: t,
|
1888
|
+
clientColorScheme: r,
|
1889
|
+
shouldApplyNewAnimation: s,
|
1890
|
+
showCarouselControls: c,
|
1891
|
+
variant: d ? G : void 0,
|
1892
|
+
visibleCardsCount: I,
|
1893
|
+
...$
|
1894
|
+
}
|
1895
|
+
),
|
1896
|
+
w && !t.length && g && /* @__PURE__ */ e(He, { clientColorScheme: r, ...Y }),
|
1897
|
+
w && !t.length && !g && /* @__PURE__ */ e(ke, { ...Y })
|
1898
|
+
] }) })
|
1899
|
+
] })
|
1900
|
+
);
|
1901
|
+
}, ci = P(xt), Dt = ({
|
1902
|
+
isActiveCard: i,
|
1903
|
+
ariaLabel: o,
|
1904
|
+
clientColorScheme: t,
|
1905
|
+
heightOverrides: r,
|
1906
|
+
onCardClick: l,
|
1907
|
+
posthog: n,
|
1908
|
+
showIcon: a,
|
1909
|
+
variant: _,
|
1910
|
+
widthOverrides: u
|
1911
|
+
}) => {
|
1912
|
+
const p = Ae(), { ref: C, inView: f } = Se({
|
1913
|
+
threshold: Ve
|
1914
|
+
}), { cardsCopy: s } = F(), { onEvent: d } = K();
|
1915
|
+
q(() => {
|
1916
|
+
f && (d(xe.ON_VIEW_MORE_VIEWED), n?.capture("viewed_insight", {
|
1917
|
+
template: "view_more_card"
|
1918
|
+
}));
|
1919
|
+
}, [f]);
|
1920
|
+
const c = () => {
|
1921
|
+
l && l(), d(S.ON_VIEW_MORE_CLICKED), n?.capture("clicked_insight", {
|
1922
|
+
template: "view_more_card"
|
1923
|
+
});
|
1924
|
+
};
|
1925
|
+
return /* @__PURE__ */ e(
|
1926
|
+
J,
|
1927
|
+
{
|
1928
|
+
actionText: s.micro_card_cta,
|
1929
|
+
ariaLabel: o,
|
1930
|
+
description: s.view_more_card_description,
|
1931
|
+
fontColors: { buttonColor: t?.primary_300 },
|
1932
|
+
heightOverrides: r,
|
1933
|
+
icon: /* @__PURE__ */ e(ft, { color: t?.primary_300 ?? p.palette.primary.main }),
|
1934
|
+
isActiveCard: i,
|
1935
|
+
onCardClick: c,
|
1936
|
+
posthog: n,
|
1937
|
+
ref: C,
|
1938
|
+
showIcon: a,
|
1939
|
+
title: s.view_more_card_title,
|
1940
|
+
variant: _,
|
1941
|
+
widthOverrides: u
|
1942
|
+
}
|
1943
|
+
);
|
1944
|
+
}, Lt = P(Dt);
|
1945
|
+
export {
|
1946
|
+
ht as A,
|
1947
|
+
vt as B,
|
1948
|
+
Tt as C,
|
1949
|
+
Et as I,
|
1950
|
+
At as M,
|
1951
|
+
ni as N,
|
1952
|
+
Lt as V,
|
1953
|
+
ai as Z,
|
1954
|
+
J as a,
|
1955
|
+
ci as b,
|
1956
|
+
ft as c,
|
1957
|
+
gt as d,
|
1958
|
+
De as e
|
1959
|
+
};
|