fansunited-frontend-components 0.0.97 → 0.0.99

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.
Files changed (69) hide show
  1. package/Betslip.js +2 -2
  2. package/ChanceGame.js +958 -1464
  3. package/ClassicQuizPlay.js +2 -2
  4. package/CollectLead.js +1 -1
  5. package/CompetitionStatistics.js +2042 -2215
  6. package/CompetitorCard.js +4281 -4919
  7. package/Discussion.js +2 -2
  8. package/EitherOrPlay.js +2 -2
  9. package/EventCard.js +6010 -7547
  10. package/EventGamePlay.js +2 -2
  11. package/Leaderboard.js +546 -849
  12. package/List.js +227 -218
  13. package/MatchQuizPlay.js +2 -2
  14. package/Odds.js +50 -42
  15. package/PersonalityQuizPlay.js +2 -2
  16. package/PickThePair.js +2 -2
  17. package/PlayerOfTheMatch.js +285 -269
  18. package/PollVote.js +2 -2
  19. package/Predictor.js +80 -127
  20. package/README.md +1 -1
  21. package/Standings.js +991 -1324
  22. package/TopX.js +1120 -1167
  23. package/chunks/{ChanceGameEmbedVariant-CVys-3Zh.js → ChanceGameEmbedVariant-DM9eLG5s.js} +2 -2
  24. package/chunks/CheckCircle-I1FktW5Y.js +13 -0
  25. package/chunks/OddsSkeleton-DP5Yfqpr.js +522 -0
  26. package/chunks/Person-CXRqyF4E.js +11 -0
  27. package/chunks/PickOneOfX-DET4ZhjV.js +3117 -0
  28. package/chunks/Search-CIXthh0D.js +17 -0
  29. package/chunks/TimerOutlined-D-WA_vpE.js +8 -0
  30. package/chunks/WorkspacePremiumOutlined-DUXVgJlF.js +136 -0
  31. package/chunks/{chevrons-right-CXSpQt9w.js → chevrons-right-HWKW2c4I.js} +24 -4
  32. package/chunks/index-BENM3N_w.js +4 -0
  33. package/chunks/index-BRxAV693.js +4 -0
  34. package/chunks/index-BXYTsvIX.js +4 -0
  35. package/chunks/index-C0ilols1.js +4 -0
  36. package/chunks/index-D7VhczXH.js +4 -0
  37. package/chunks/index-DKwvdw9t.js +4 -0
  38. package/chunks/index-DZN-AITW.js +4 -0
  39. package/chunks/main-B2sDRFF4.js +2184 -0
  40. package/chunks/main-CzfWaEQP.js +4869 -0
  41. package/chunks/main-DFNl3g_U.js +4910 -0
  42. package/chunks/{main-65WcUqAl.js → main-DLwnvntz.js} +600 -593
  43. package/chunks/main-DiBlJBNb.js +1956 -0
  44. package/chunks/main-DxvBjXsd.js +1775 -0
  45. package/chunks/main-S8_NDSiY.js +3209 -0
  46. package/chunks/main-lBgr8Liq.js +6571 -0
  47. package/chunks/{withVersionStamp-BkiEu_79.js → withVersionStamp-BsLyhvNA.js} +1 -1
  48. package/package.json +2 -2
  49. package/chunks/OddsSkeleton-ClJE2xhR.js +0 -26
  50. package/chunks/OddsStrip-BnSp5TXa.js +0 -383
  51. package/chunks/PickOneOfX-DaJtkbCw.js +0 -4206
  52. package/chunks/chevron-left-CxfCSZcr.js +0 -13
  53. package/chunks/chevron-right-BEQMacFn.js +0 -13
  54. package/chunks/index-Aq5MbUB9.js +0 -4
  55. package/chunks/index-BBQm_8LD.js +0 -4
  56. package/chunks/index-BC_sWWgc.js +0 -4
  57. package/chunks/index-DXKDJ1Vp.js +0 -4
  58. package/chunks/index-DjT5NrbA.js +0 -4
  59. package/chunks/index-DvLRehH6.js +0 -4
  60. package/chunks/index-aIMaxR-p.js +0 -4
  61. package/chunks/main-52Wff7qC.js +0 -11441
  62. package/chunks/main-B58mi9jx.js +0 -5622
  63. package/chunks/main-BIdXUTZS.js +0 -7308
  64. package/chunks/main-DD-NEzC7.js +0 -8241
  65. package/chunks/main-DUnfJPzY.js +0 -3608
  66. package/chunks/main-DpCBqqg_.js +0 -1950
  67. package/chunks/main-Drznt1ak.js +0 -1790
  68. package/chunks/users-wbJRbqW8.js +0 -16
  69. package/chunks/x-CK4GYo7T.js +0 -14
@@ -1,1790 +0,0 @@
1
- import { jsx as a, jsxs as g, Fragment as M } from "react/jsx-runtime";
2
- import { isMobile as ht, useColors as bt, useFontFamily as yt, useCurrentThemeMode as xt, useSpacingScale as $, useCornerRadius as T, useBorderSize as A, toIntlLocale as J, useDisableCache as St, betslipApi as j, Portal as wt } from "fansunited-frontend-core";
3
- import V, { useState as R, useRef as at, useEffect as _, createContext as vt, useMemo as q, useCallback as Y, useContext as Ct } from "react";
4
- import z from "@emotion/styled";
5
- import { keyframes as B, Global as st, css as lt } from "@emotion/react";
6
- import { useTranslation as k } from "react-i18next";
7
- import { MatchOddsFilters as kt } from "fansunited-sdk-esm/models";
8
- import Rt from "@mui/icons-material/KeyboardArrowUp";
9
- import It from "@mui/icons-material/KeyboardArrowDown";
10
- function _t(t) {
11
- const e = {}, n = /* @__PURE__ */ new Set();
12
- return t.forEach((o) => {
13
- const s = `${o.eventId}::${o.marketId}`;
14
- e[s] ? (n.add(e[s]), n.add(o.id)) : e[s] = o.id;
15
- }), n;
16
- }
17
- function ct(t) {
18
- return t.filter((e) => e.status === "active" || !e.status).reduce((e, n) => e * n.odds, 1);
19
- }
20
- function $t(t, e, n, o, s, i) {
21
- const l = o ?? "Away", r = e.toLowerCase(), u = (i == null ? void 0 : i.draw) || s("betslip.outcomes.draw"), y = (i == null ? void 0 : i.yes) || s("betslip.outcomes.yes"), p = (i == null ? void 0 : i.no) || s("betslip.outcomes.no"), d = (i == null ? void 0 : i.over) || s("betslip.outcomes.over"), c = (i == null ? void 0 : i.under) || s("betslip.outcomes.under"), h = (i == null ? void 0 : i.noGoal) || s("betslip.outcomes.noGoal"), b = (i == null ? void 0 : i.nobody) || s("betslip.outcomes.nobody"), m = (i == null ? void 0 : i.or) || s("betslip.outcomes.or");
22
- switch (t) {
23
- case "FT_1X2":
24
- case "HT_1X2":
25
- if (e === "1") return n;
26
- if (r === "x") return u;
27
- if (e === "2") return l;
28
- break;
29
- case "DOUBLE_CHANCE": {
30
- const f = e.toUpperCase();
31
- if (f === "1X") return `${n} ${m} ${u}`;
32
- if (f === "12") return `${n} ${m} ${l}`;
33
- if (f === "X2") return `${u} ${m} ${l}`;
34
- break;
35
- }
36
- case "BOTH_TEAMS_SCORE":
37
- case "RED_CARD_MATCH":
38
- case "PENALTY_MATCH":
39
- if (r === "yes") return y;
40
- if (r === "no") return p;
41
- break;
42
- case "CORRECT_SCORE":
43
- case "CORRECT_SCORE_ADVANCED":
44
- case "CORRECT_SCORE_HT": {
45
- const f = e.split(/[-:]/).map(Number);
46
- return f.length === 2 && !isNaN(f[0]) && !isNaN(f[1]) ? f[0] > f[1] ? n : f[1] > f[0] ? l : u : e;
47
- }
48
- case "HT_FT": {
49
- const f = e.toUpperCase();
50
- return (f.includes("/") ? f.split("/") : f.split("")).map((v) => v === "1" ? n : v === "2" ? l : u).join(" / ");
51
- }
52
- case "DRAW_NO_BET":
53
- if (e === "1") return n;
54
- if (e === "2") return l;
55
- break;
56
- case "FIRST_TEAM_TO_SCORE":
57
- case "LAST_TEAM_TO_SCORE":
58
- if (e === "1") return n;
59
- if (e === "2") return l;
60
- if (r === "none" || r === "no goal") return h;
61
- break;
62
- case "PLAYER_SCORE_FIRST_GOAL":
63
- case "PLAYER_SCORE":
64
- case "PLAYER_SCORE_TWICE":
65
- case "PLAYER_SCORE_HATTRICK":
66
- case "PLAYER_RED_CARD":
67
- case "PLAYER_YELLOW_CARD":
68
- return r === "none" || r === "no goal" || r === "nobody" ? b : e;
69
- }
70
- const x = t.match(/^(OVER|UNDER)_(GOALS|CORNERS)_(\d+)_(\d+)$/i);
71
- if (x) {
72
- const v = x[1].toUpperCase() === "OVER" !== (r === "no" || r === "under") ? d : c, w = `${x[3]}.${x[4]}`;
73
- return `${v} ${w}`;
74
- }
75
- return e;
76
- }
77
- function Lt(t) {
78
- return `${t.eventId}:${t.market}:${t.outcome}`;
79
- }
80
- function Tt(t) {
81
- var n;
82
- const e = (n = t.participantTwo) == null ? void 0 : n.name;
83
- return e ? `${t.participantOne.name} vs ${e}` : t.participantOne.name;
84
- }
85
- function Et(t, e, n) {
86
- return t.map((o) => {
87
- var s, i, l;
88
- return {
89
- id: Lt(o),
90
- eventId: o.eventId,
91
- marketId: o.market,
92
- event: Tt(o),
93
- market: o.market,
94
- name: $t(
95
- o.market,
96
- o.outcome,
97
- o.participantOne.name,
98
- (s = o.participantTwo) == null ? void 0 : s.name,
99
- e,
100
- n
101
- ),
102
- odds: 0,
103
- outcome: o.outcome,
104
- startAt: o.startAt,
105
- matchStatus: o.matchStatus,
106
- participantOne: o.participantOne.name,
107
- participantTwo: (i = o.participantTwo) == null ? void 0 : i.name,
108
- participantOneLogo: o.participantOne.logo,
109
- participantTwoLogo: (l = o.participantTwo) == null ? void 0 : l.logo,
110
- source: o.source,
111
- competition: o.competition,
112
- athlete: o.athlete
113
- };
114
- });
115
- }
116
- const zt = {
117
- HT_FT: ["first_half_and_final_result", "htft", "ht_ft"],
118
- BOTH_TEAMS_SCORE: ["both_to_score", "btts", "gg"],
119
- DOUBLE_CHANCE: ["double_chance", "dc"],
120
- CORRECT_SCORE: ["correct_score", "cs"],
121
- PLAYER_SCORE_FIRST_GOAL: ["first_goalscorer", "player_score_first_goal"],
122
- PLAYER_SCORE: ["anytime_goalscorer", "player_score", "anytime_scorer"],
123
- PLAYER_RED_CARD: ["player_red_card", "red_card"],
124
- PLAYER_YELLOW_CARD: ["player_yellow_card", "yellow_card"]
125
- };
126
- function Ot(t) {
127
- return t.replace(/^FT_/i, "").toLowerCase();
128
- }
129
- const dt = /^(OVER|UNDER)_(GOALS|CORNERS)_(\d+)_(\d+)$/i;
130
- function At(t, e) {
131
- const n = t.toLowerCase();
132
- if (n === e.toLowerCase() || n === Ot(e)) return !0;
133
- const o = zt[e];
134
- return !!(o !== void 0 && o.includes(n) || dt.test(e) && n === "over_under");
135
- }
136
- function Bt(t) {
137
- const e = t.split(":");
138
- return e[e.length - 1];
139
- }
140
- function pt(t, e, n) {
141
- var u, y, p, d, c, h;
142
- if (!t) return null;
143
- const o = Bt(n), s = e.match(dt), i = s !== null, l = i ? o.toLowerCase() === "no" ? "under" : o.toLowerCase() === "yes" ? "over" : o.toLowerCase() : null, r = i ? `${s[3]}.${s[4]}` : null;
144
- for (const b of t.markets ?? []) {
145
- const m = ((u = b == null ? void 0 : b.type) == null ? void 0 : u.code) ?? "";
146
- if (!At(m, e)) continue;
147
- const x = m.toLowerCase() !== "over_under";
148
- for (const f of b.selections ?? [])
149
- if (i) {
150
- const S = ((y = f.code) == null ? void 0 : y.toLowerCase()) === l || ((p = f.name) == null ? void 0 : p.toLowerCase()) === l, v = x || r === null || ((d = f.value) == null ? void 0 : d.toString()) === r;
151
- if (S && v) return f;
152
- } else if (((c = f.code) == null ? void 0 : c.toLowerCase()) === o.toLowerCase() || ((h = f.name) == null ? void 0 : h.toLowerCase()) === o.toLowerCase())
153
- return f;
154
- }
155
- return null;
156
- }
157
- function Dt(t, e, n, o, s) {
158
- if (!t || !e.includes(o) || !t.has(n)) return !1;
159
- const i = (t.get(n) ?? [])[0];
160
- return pt(i, o, s) === null;
161
- }
162
- function Wt(t, e) {
163
- return t.map((n) => {
164
- var i, l, r;
165
- const o = (e.get(n.eventId) ?? [])[0], s = pt(o, n.marketId, n.id);
166
- return s ? {
167
- ...n,
168
- odds: parseFloat(s.odds ?? "0") || 0,
169
- movement: s.movement === "UP" || s.movement === "DOWN" ? s.movement : void 0,
170
- // providerInfo.selectionId is the operator's own id, which is what the CTA
171
- // deep link needs. selection.id is only the outcome code ("1") now.
172
- selectionId: ((i = s.providerInfo) == null ? void 0 : i.selectionId) ?? s.id ?? void 0,
173
- selectionUrl: ((r = (l = s.urls) == null ? void 0 : l[0]) == null ? void 0 : r.url) ?? void 0
174
- } : n;
175
- });
176
- }
177
- function Ut(t, e, n, o = {}) {
178
- const { operatorId: s, affiliateId: i } = o, [l, r] = R(null), [u, y] = R([]), [p, d] = R(!1), c = at(null), h = async (b) => {
179
- if (!t || b.length === 0) return;
180
- const m = [...new Set(b.map((S) => S.eventId))], x = [
181
- ...new Set(b.map((S) => S.market))
182
- ], f = new kt({
183
- marketTypes: x,
184
- ...s ? { operators: [s] } : {},
185
- ...i ? { affiliateId: i } : {}
186
- });
187
- d(!0);
188
- try {
189
- const S = await t.odds.getByMatchIds(m, f);
190
- r(S), y(x);
191
- } catch {
192
- } finally {
193
- d(!1);
194
- }
195
- };
196
- return _(() => (h(e), c.current && clearInterval(c.current), t && n > 0 && e.length > 0 && (c.current = setInterval(() => h(e), n)), () => {
197
- c.current && clearInterval(c.current);
198
- }), [JSON.stringify(e), n, s, i]), { oddsMap: l, oddsLoading: p, oddsMarkets: u };
199
- }
200
- function Ft(t) {
201
- var e, n, o;
202
- for (const s of t.values()) {
203
- const i = s[0];
204
- if (!i) continue;
205
- const l = (o = (n = (e = i.bookmaker) == null ? void 0 : e.assets) == null ? void 0 : n[0]) == null ? void 0 : o.transparentBackgroundUrl;
206
- if (l) return l;
207
- }
208
- }
209
- function Ht(t, e) {
210
- var o;
211
- const n = e ? "mobile" : "desktop";
212
- for (const s of t.values()) {
213
- const i = s[0];
214
- if (!i) continue;
215
- const l = ((o = i.bookmaker) == null ? void 0 : o.links) ?? [], r = l.find((u) => u.appType === n) ?? l[0];
216
- if (r != null && r.homepageUrl) return r.homepageUrl;
217
- }
218
- }
219
- function Pt(t, e) {
220
- var o, s;
221
- const n = e ? "mobile" : "desktop";
222
- for (const i of t.values()) {
223
- const l = ((s = (o = i[0]) == null ? void 0 : o.bookmaker) == null ? void 0 : s.betslipUrlTemplate) ?? [], r = l.find((u) => u.appType === n) ?? l[0];
224
- if (r != null && r.url) return r.url;
225
- }
226
- }
227
- function Nt(t) {
228
- var e, n;
229
- for (const o of t.values()) {
230
- const s = (n = (e = o[0]) == null ? void 0 : e.bookmaker) == null ? void 0 : n.betslipIdSeparator;
231
- if (s) return s;
232
- }
233
- }
234
- function jt(t) {
235
- var e, n, o, s, i;
236
- for (const l of t.values()) {
237
- const r = l[0];
238
- if (!r) continue;
239
- const u = ((n = (e = r.bookmaker) == null ? void 0 : e.branding) == null ? void 0 : n.backgroundColor) ?? ((i = (s = (o = r.bookmaker) == null ? void 0 : o.assets) == null ? void 0 : s[0]) == null ? void 0 : i.backgroundColor);
240
- if (u) return u;
241
- }
242
- }
243
- const mt = vt(null), Mt = ({
244
- labels: t = {},
245
- initialSelections: e = [],
246
- maxSelections: n,
247
- currency: o = "€",
248
- stakePresets: s = [5, 10, 20],
249
- ctaUrlTemplate: i,
250
- onExternalRemove: l,
251
- sharedOddsMap: r,
252
- children: u
253
- }) => {
254
- const { t: y } = k(), [p, d] = R(e), [c, h] = R(""), [b, m] = R(!0), x = ht();
255
- _(() => {
256
- d(e);
257
- }, [JSON.stringify(e)]);
258
- const f = q(() => {
259
- if (!r) return !1;
260
- const C = r.values().next().value;
261
- return Array.isArray(C) && C[0] !== void 0;
262
- }, [r]), S = q(() => {
263
- const C = Et(p, y, t.outcomeLabels);
264
- return r ? Wt(C, r) : C;
265
- }, [p, r, y, t.outcomeLabels]), v = _t(S), w = r ? Ft(r) : void 0, D = r ? Ht(r, x) : void 0, W = r ? jt(r) : void 0, U = r ? Pt(r, x) : void 0, F = r ? Nt(r) : void 0, H = Y(
266
- (C) => {
267
- d(
268
- (P) => P.filter((E) => `${E.eventId}:${E.market}:${E.outcome}` !== C)
269
- ), l == null || l(C);
270
- },
271
- [l]
272
- );
273
- return /* @__PURE__ */ a(
274
- mt.Provider,
275
- {
276
- value: {
277
- labels: t,
278
- selectionInputs: p,
279
- selections: S,
280
- combStake: c,
281
- open: b,
282
- oddsLoading: !1,
283
- oddsReady: f,
284
- conflictIds: v,
285
- currency: o,
286
- stakePresets: s,
287
- ctaUrlTemplate: i,
288
- maxSelections: n,
289
- bookmakerLogoUrl: w,
290
- bookmakerHomepageUrl: D,
291
- bookmakerBackgroundColor: W,
292
- bookmakerBetslipTemplate: U,
293
- bookmakerIdSeparator: F,
294
- onRemove: H,
295
- setCombStake: h,
296
- setOpen: m
297
- },
298
- children: u
299
- }
300
- );
301
- }, I = () => {
302
- const t = Ct(mt);
303
- if (!t) throw new Error("useBetslip must be used within BetslipProvider");
304
- return t;
305
- };
306
- function Yt(t) {
307
- const e = bt(), n = yt(), s = xt() === "light";
308
- return {
309
- primary: t || e.palette.primary.plainColor,
310
- primaryHover: e.palette.primary.primaryContainer || t || e.palette.primary.plainColor,
311
- s1: e.surface,
312
- s2: e.onSurface,
313
- s3: s ? e.surfaceVariant : e.onSurface,
314
- bdr: e.outlineEnabledBorder,
315
- t1: e.textPrimary,
316
- t2: e.textSecondary,
317
- t3: e.textDisabled,
318
- ok: e.palette.success.plainColor,
319
- bad: e.palette.danger.plainColor,
320
- badSoftBg: e.palette.danger.softBg,
321
- warn: e.palette.warning.plainColor,
322
- warnSoftBg: e.palette.warning.softBg,
323
- font: n.primary
324
- };
325
- }
326
- const Q = ({
327
- tokens: t,
328
- isSide: e,
329
- position: n,
330
- brandingLogoUrl: o
331
- }) => {
332
- const { labels: s, selections: i, open: l, setOpen: r, maxSelections: u, bookmakerLogoUrl: y } = I(), { t: p } = k(), d = $(), c = T(), m = e ? "0" : n === "bottom-right" || n === "bottom-left" ? `${c.md} ${c.md} 0 0` : n === "top-right" || n === "top-left" ? `0 0 ${c.md} ${c.md}` : "0", x = o || y, f = {
333
- background: "none",
334
- border: "none",
335
- cursor: "pointer",
336
- color: "#fff",
337
- padding: "5px 7px",
338
- fontSize: "1em",
339
- lineHeight: 1,
340
- borderRadius: c.xs,
341
- display: "flex",
342
- alignItems: "center",
343
- justifyContent: "center",
344
- transition: "background .15s"
345
- };
346
- return /* @__PURE__ */ g(
347
- "div",
348
- {
349
- style: {
350
- paddingTop: d.sm,
351
- paddingBottom: d.sm,
352
- paddingInlineEnd: d.xs,
353
- paddingInlineStart: x ? d["2xs"] : d.xs,
354
- background: t.primary,
355
- display: "flex",
356
- alignItems: "center",
357
- justifyContent: "space-between",
358
- flexShrink: 0,
359
- color: "#fff",
360
- borderRadius: m,
361
- fontFamily: t.font
362
- },
363
- children: [
364
- /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center" }, children: [
365
- x ? /* @__PURE__ */ a(
366
- "img",
367
- {
368
- src: x,
369
- alt: "brand",
370
- style: {
371
- height: "24px",
372
- maxWidth: "88px",
373
- width: "auto",
374
- objectFit: "contain",
375
- display: "block",
376
- flexShrink: 0
377
- }
378
- }
379
- ) : /* @__PURE__ */ a(
380
- "span",
381
- {
382
- style: {
383
- fontSize: "1.0625em",
384
- fontWeight: 800,
385
- fontStyle: "italic",
386
- fontFamily: "'Ubuntu', sans-serif",
387
- letterSpacing: "-0.5px",
388
- color: "#fff"
389
- },
390
- children: s.title || p("betslip.title")
391
- }
392
- ),
393
- i.length > 0 && u != null && /* @__PURE__ */ g(
394
- "span",
395
- {
396
- style: {
397
- fontSize: "0.875em",
398
- fontWeight: 600,
399
- color: "#fff",
400
- marginInlineStart: x ? 0 : d.sm
401
- },
402
- children: [
403
- i.length,
404
- "/",
405
- u
406
- ]
407
- }
408
- )
409
- ] }),
410
- !e && /* @__PURE__ */ a(
411
- "button",
412
- {
413
- style: f,
414
- onClick: () => r(!l),
415
- title: l ? "Collapse" : "Expand",
416
- onMouseEnter: (S) => S.currentTarget.style.background = "rgba(255,255,255,.18)",
417
- onMouseLeave: (S) => S.currentTarget.style.background = "none",
418
- children: l ? /* @__PURE__ */ a(It, { sx: { fontSize: "1.125em", color: "inherit" } }) : /* @__PURE__ */ a(Rt, { sx: { fontSize: "1.125em", color: "inherit" } })
419
- }
420
- )
421
- ]
422
- }
423
- );
424
- }, Z = ({ tokens: t }) => {
425
- const { t: e } = k(), n = $(), o = A();
426
- return /* @__PURE__ */ g(
427
- "div",
428
- {
429
- style: {
430
- display: "flex",
431
- alignItems: "center",
432
- gap: n.xs,
433
- padding: "9px 14px",
434
- background: t.badSoftBg,
435
- borderBottom: `${o.size} solid ${t.bad}`,
436
- flexShrink: 0
437
- },
438
- children: [
439
- /* @__PURE__ */ a(
440
- "div",
441
- {
442
- style: {
443
- width: 18,
444
- height: 18,
445
- borderRadius: "50%",
446
- border: `1.5px solid ${t.bad}`,
447
- flexShrink: 0,
448
- display: "flex",
449
- alignItems: "center",
450
- justifyContent: "center",
451
- fontSize: "0.6875em",
452
- fontWeight: 700,
453
- color: t.bad,
454
- lineHeight: 1
455
- },
456
- children: "i"
457
- }
458
- ),
459
- /* @__PURE__ */ a("span", { style: { fontSize: "0.75em", color: t.t1, lineHeight: 1.4 }, children: e("betslip.conflictMessage") })
460
- ]
461
- }
462
- );
463
- };
464
- function Vt(t, e, n, o = ",") {
465
- const s = e.map((p) => p.selectionId).filter((p) => !!p), i = s.join(","), l = s.map(encodeURIComponent).join(o), r = e[0], u = encodeURIComponent(
466
- typeof window < "u" ? window.location.href : ""
467
- ), y = String(n);
468
- return t.replace(/\{betslip_ids\}/g, l).replace(/\{selectionIds\}/g, encodeURIComponent(i)).replace(/\{currentUrl\}/g, u).replace(/\{stake\}/g, y).replace(/\{eventId\}/g, (r == null ? void 0 : r.eventId) ?? "").replace(/\{oddsDecimal\}/g, r ? String(r.odds) : "").replace(/\{market\}/g, (r == null ? void 0 : r.marketId) ?? "").replace(/\{outcome\}/g, (r == null ? void 0 : r.name) ?? "");
469
- }
470
- const Gt = z.a`
471
- display: flex;
472
- align-items: center;
473
- justify-content: center;
474
- width: 100%;
475
- background: ${({ primary: t }) => t};
476
- color: #fff;
477
- border: none;
478
- font-weight: 600;
479
- text-decoration: none;
480
- box-sizing: border-box;
481
- cursor: ${({ disabled: t }) => t ? "not-allowed" : "pointer"};
482
- pointer-events: ${({ disabled: t }) => t ? "none" : "auto"};
483
- opacity: ${({ disabled: t }) => t ? 0.4 : 1};
484
- &:hover {
485
- background: ${({ primaryHover: t }) => t};
486
- }
487
- `, ft = ({
488
- tokens: t,
489
- brandingLogoUrl: e,
490
- hasConflicts: n
491
- }) => {
492
- const {
493
- labels: o,
494
- ctaUrlTemplate: s,
495
- selections: i,
496
- combStake: l,
497
- bookmakerLogoUrl: r,
498
- bookmakerHomepageUrl: u,
499
- bookmakerBetslipTemplate: y,
500
- bookmakerIdSeparator: p
501
- } = I(), { t: d } = k(), c = e || r, h = $(), b = T(), m = o.continueLabel || d("betslip.continueLabel"), x = (() => {
502
- const S = parseFloat(l) || 0, v = s || y;
503
- if (v)
504
- return Vt(v, i, S, p);
505
- if (u) return u;
506
- })(), f = n || !x;
507
- return /* @__PURE__ */ a("div", { children: /* @__PURE__ */ g(
508
- Gt,
509
- {
510
- href: f ? void 0 : x,
511
- target: x ? "_blank" : void 0,
512
- rel: x ? "noopener noreferrer" : void 0,
513
- primary: t.primary,
514
- primaryHover: t.primaryHover,
515
- disabled: f,
516
- style: {
517
- padding: `${h.xs} ${h.md}`,
518
- borderRadius: b.full,
519
- fontSize: "0.875em",
520
- fontFamily: t.font
521
- },
522
- children: [
523
- /* @__PURE__ */ a("span", { children: m }),
524
- c && /* @__PURE__ */ a(
525
- "img",
526
- {
527
- src: c,
528
- alt: "",
529
- style: {
530
- height: "20px",
531
- maxWidth: "72px",
532
- width: "auto",
533
- objectFit: "contain",
534
- verticalAlign: "middle",
535
- marginInlineStart: h.sm,
536
- flexShrink: 0
537
- }
538
- }
539
- )
540
- ]
541
- }
542
- ) });
543
- }, tt = ({ color: t }) => {
544
- const e = A();
545
- return /* @__PURE__ */ a("div", { style: { borderBottom: `${e.size} solid ${t}` } });
546
- }, Xt = ({
547
- tokens: t,
548
- brandingLogoUrl: e
549
- }) => {
550
- const { labels: n, selections: o, combStake: s, conflictIds: i, currency: l } = I(), { t: r } = k(), u = $(), y = o.filter(
551
- (m) => m.status === "active" || !m.status
552
- ), p = ct(y), d = parseFloat(s) || 0, c = d * p, h = i.size > 0, b = {
553
- display: "flex",
554
- justifyContent: "space-between",
555
- alignItems: "center",
556
- padding: "6px 0"
557
- };
558
- return /* @__PURE__ */ g(
559
- "div",
560
- {
561
- style: {
562
- background: t.s1,
563
- padding: `10px 14px ${u.sm}`,
564
- fontFamily: t.font
565
- },
566
- children: [
567
- /* @__PURE__ */ g("div", { style: b, children: [
568
- /* @__PURE__ */ a("span", { style: { fontSize: "0.6875em", color: t.t3 }, children: n.combinedOddsLabel || r("betslip.combinedOddsLabel") }),
569
- /* @__PURE__ */ g(
570
- "span",
571
- {
572
- style: {
573
- fontSize: "0.6875em",
574
- color: t.t1,
575
- fontWeight: 600,
576
- display: "flex",
577
- alignItems: "center",
578
- gap: 3
579
- },
580
- children: [
581
- /* @__PURE__ */ a("span", { style: { fontSize: "0.5em", color: t.ok }, children: "▲" }),
582
- p.toFixed(2)
583
- ]
584
- }
585
- )
586
- ] }),
587
- /* @__PURE__ */ a(tt, { color: t.bdr }),
588
- /* @__PURE__ */ g("div", { style: b, children: [
589
- /* @__PURE__ */ a("span", { style: { fontSize: "0.8125em", fontWeight: 700, color: t.t1 }, children: n.totalStakeLabel || r("betslip.totalStakeLabel") }),
590
- /* @__PURE__ */ a("span", { style: { fontSize: "0.8125em", fontWeight: 700, color: t.t1 }, children: d > 0 ? `${d.toFixed(2)}${l}` : "—" })
591
- ] }),
592
- /* @__PURE__ */ a(tt, { color: t.bdr }),
593
- /* @__PURE__ */ g("div", { style: { ...b, borderBottom: "none", marginBottom: 10 }, children: [
594
- /* @__PURE__ */ a("span", { style: { fontSize: "0.8125em", fontWeight: 700, color: t.t1 }, children: n.potentialWinLabel || r("betslip.potentialWinLabel") }),
595
- /* @__PURE__ */ a(
596
- "span",
597
- {
598
- style: {
599
- fontSize: "0.8125em",
600
- fontWeight: 700,
601
- color: c > 0 ? t.primary : t.t1
602
- },
603
- children: c > 0 ? c.toFixed(2) : "—"
604
- }
605
- )
606
- ] }),
607
- /* @__PURE__ */ a(
608
- ft,
609
- {
610
- tokens: t,
611
- brandingLogoUrl: e,
612
- hasConflicts: h
613
- }
614
- )
615
- ]
616
- }
617
- );
618
- };
619
- function Kt(t, e, n) {
620
- if (n != null && n[t]) return n[t];
621
- const o = `betslip.markets.${t}`, s = e(o);
622
- if (s !== o) return s;
623
- const i = t.match(/^(OVER|UNDER)_(GOALS|CORNERS)_(\d+)_(\d+)$/i);
624
- if (i) {
625
- const l = i[2].charAt(0) + i[2].slice(1).toLowerCase(), r = `betslip.markets.${i[1].toUpperCase() === "OVER" ? "over" : "under"}${l}`, u = `${i[3]}.${i[4]}`, y = e(r, { line: u });
626
- if (y !== r) return y;
627
- }
628
- return t.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (l) => l.toUpperCase());
629
- }
630
- const Jt = B`
631
- from { opacity: 0; transform: translateX(8px); }
632
- to { opacity: 1; transform: translateX(0); }
633
- `, qt = B`
634
- from { transform: rotate(0deg); }
635
- to { transform: rotate(360deg); }
636
- `, Qt = z.div`
637
- width: 12px;
638
- height: 12px;
639
- border-radius: 50%;
640
- border: 2px solid transparent;
641
- border-top-color: ${({ color: t }) => t};
642
- animation: ${qt} 0.7s linear infinite;
643
- flex-shrink: 0;
644
- `, Zt = () => /* @__PURE__ */ a("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M7 4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1h3a1 1 0 1 1 0 2h-1l-1.4 13.2A2 2 0 0 1 16.6 22H7.4a2 2 0 0 1-2-1.8L4 7H3a1 1 0 1 1 0-2h3V4zm2 0v1h6V4H9zm-3 3 1.4 12h9.2L18 7H6zm4 2a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0v-7a1 1 0 0 1 1-1zm4 0a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0v-7a1 1 0 0 1 1-1z" }) }), te = z.div`
645
- animation: ${Jt} 0.18s ease;
646
- `, ee = B`
647
- 0%, 100% { opacity: 1; }
648
- 50% { opacity: 0.2; }
649
- `, ne = z.span`
650
- width: 5px;
651
- height: 5px;
652
- border-radius: 50%;
653
- background: #fff;
654
- flex-shrink: 0;
655
- animation: ${ee} 1s ease-in-out infinite;
656
- `;
657
- function oe(t, e, n) {
658
- if (!t) return "";
659
- const o = new Date(t);
660
- if (isNaN(o.getTime())) return "";
661
- const s = /* @__PURE__ */ new Date(), i = s.toDateString(), l = new Date(s.getTime() + 864e5).toDateString(), r = o.toLocaleTimeString(J(e), {
662
- hour: "2-digit",
663
- minute: "2-digit"
664
- });
665
- return o.toDateString() === i ? `${n("betslip.today")} ${r}` : o.toDateString() === l ? `${n("betslip.tomorrow")} ${r}` : `${o.toLocaleDateString(J(e), { month: "short", day: "numeric" })} ${r}`;
666
- }
667
- const et = ({
668
- logo: t,
669
- name: e,
670
- tokens: n,
671
- size: o = 18
672
- }) => /* @__PURE__ */ a(
673
- "div",
674
- {
675
- style: {
676
- width: o,
677
- height: o,
678
- borderRadius: "50%",
679
- background: n.s2,
680
- flexShrink: 0,
681
- display: "flex",
682
- alignItems: "center",
683
- justifyContent: "center",
684
- fontSize: o * 0.55,
685
- overflow: "hidden"
686
- },
687
- children: t ? /* @__PURE__ */ a(
688
- "img",
689
- {
690
- src: t,
691
- alt: e,
692
- style: { width: "100%", height: "100%", objectFit: "contain" }
693
- }
694
- ) : /* @__PURE__ */ a("span", { style: { color: n.t2, fontWeight: 700 }, children: e.charAt(0) })
695
- }
696
- ), re = ({ avatar: t, name: e, tokens: n }) => /* @__PURE__ */ a(
697
- "div",
698
- {
699
- style: {
700
- width: 22,
701
- height: 22,
702
- borderRadius: "50%",
703
- flexShrink: 0,
704
- background: n.s2,
705
- overflow: "hidden",
706
- display: "flex",
707
- alignItems: "center",
708
- justifyContent: "center",
709
- fontSize: "0.6875em",
710
- fontWeight: 700
711
- },
712
- children: t ? /* @__PURE__ */ a(
713
- "img",
714
- {
715
- src: t,
716
- alt: e,
717
- style: { width: "100%", height: "100%", objectFit: "cover" }
718
- }
719
- ) : /* @__PURE__ */ a("span", { style: { color: n.t2 }, children: e.charAt(0) })
720
- }
721
- ), ie = ({ name: t, logo: e, tokens: n }) => {
722
- const o = $(), s = T(), [i, l] = V.useState(!1);
723
- return e ? /* @__PURE__ */ g(
724
- "div",
725
- {
726
- style: { position: "relative", display: "inline-flex" },
727
- onMouseEnter: () => l(!0),
728
- onMouseLeave: () => l(!1),
729
- children: [
730
- /* @__PURE__ */ a(
731
- "div",
732
- {
733
- style: {
734
- width: 20,
735
- height: 20,
736
- borderRadius: "50%",
737
- overflow: "hidden",
738
- background: n.s2,
739
- flexShrink: 0
740
- },
741
- children: /* @__PURE__ */ a(
742
- "img",
743
- {
744
- src: e,
745
- alt: t,
746
- style: { width: "100%", height: "100%", objectFit: "contain" }
747
- }
748
- )
749
- }
750
- ),
751
- i && /* @__PURE__ */ a(
752
- "div",
753
- {
754
- style: {
755
- position: "absolute",
756
- top: "calc(100% + 5px)",
757
- insetInlineEnd: 0,
758
- background: "#1e293b",
759
- color: "#fff",
760
- fontSize: "0.6875em",
761
- fontWeight: 500,
762
- padding: `${o["2xs"]} ${o.xs}`,
763
- borderRadius: s.xs,
764
- whiteSpace: "nowrap",
765
- zIndex: 10,
766
- pointerEvents: "none",
767
- boxShadow: "0 2px 8px rgba(0,0,0,.25)"
768
- },
769
- children: t
770
- }
771
- )
772
- ]
773
- }
774
- ) : /* @__PURE__ */ a(
775
- "span",
776
- {
777
- style: { fontSize: "0.625em", color: n.t3, whiteSpace: "nowrap" },
778
- children: t
779
- }
780
- );
781
- }, nt = ({
782
- score: t,
783
- tokens: e
784
- }) => {
785
- const n = $(), o = T();
786
- return /* @__PURE__ */ a(
787
- "span",
788
- {
789
- style: {
790
- background: e.s1,
791
- color: e.t1,
792
- fontWeight: 700,
793
- fontSize: "0.75em",
794
- borderRadius: o.xs,
795
- minWidth: 20,
796
- height: 20,
797
- display: "inline-flex",
798
- alignItems: "center",
799
- justifyContent: "center",
800
- flexShrink: 0,
801
- padding: `0 ${n["2xs"]}`
802
- },
803
- children: t
804
- }
805
- );
806
- }, ae = ({
807
- sel: t,
808
- tokens: e
809
- }) => {
810
- const { labels: n, oddsLoading: o } = I(), { t: s } = k(), { status: i, odds: l, movement: r } = t;
811
- return i === "settled_won" ? /* @__PURE__ */ g("span", { style: { color: e.ok, fontSize: "0.8125em", fontWeight: 700 }, children: [
812
- "✓ ",
813
- s("betslip.settledWon")
814
- ] }) : i === "settled_lost" ? /* @__PURE__ */ g(
815
- "span",
816
- {
817
- style: { color: e.bad, fontSize: "0.8125em", fontWeight: 700 },
818
- children: [
819
- "✗ ",
820
- s("betslip.settledLost")
821
- ]
822
- }
823
- ) : i === "settled_void" ? /* @__PURE__ */ a("span", { style: { fontSize: "0.8125em", fontWeight: 700, color: e.t3 }, children: s("betslip.settledVoid") }) : i === "suspended" ? /* @__PURE__ */ a("span", { style: { fontSize: "0.75em", fontWeight: 600, color: e.warn }, children: n.suspendedLabel || s("betslip.suspendedLabel") }) : o ? /* @__PURE__ */ a(Qt, { color: e.t3 }) : l === 0 ? /* @__PURE__ */ a("span", { style: { fontSize: "0.8125em", fontWeight: 600, color: e.t3 }, children: n.oddsUnavailableLabel || s("betslip.oddsUnavailableLabel") }) : /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 3 }, children: [
824
- r && /* @__PURE__ */ a(
825
- "span",
826
- {
827
- style: {
828
- fontSize: "0.5625em",
829
- color: r === "UP" ? e.ok : e.bad,
830
- lineHeight: 1
831
- },
832
- children: r === "UP" ? "▲" : "▼"
833
- }
834
- ),
835
- /* @__PURE__ */ a("span", { style: { fontSize: "0.875em", fontWeight: 700, color: e.t1 }, children: l.toFixed(2) })
836
- ] });
837
- }, se = ({ sel: t, tokens: e, isConflict: n }) => {
838
- const { onRemove: o, labels: s } = I(), { t: i, i18n: l } = k(), r = $(), u = T(), y = A(), [p, d] = V.useState(!1), c = oe(t.startAt, l.language, i), h = t.marketId === "CORRECT_SCORE" || t.marketId === "CORRECT_SCORE_ADVANCED" || t.marketId === "CORRECT_SCORE_HT", b = h && t.outcome ? t.outcome.split(/[-:]/) : null, m = b == null ? void 0 : b[0], x = b == null ? void 0 : b[1];
839
- return /* @__PURE__ */ g(
840
- te,
841
- {
842
- style: {
843
- fontFamily: e.font,
844
- ...n ? {
845
- padding: "14px 0 0",
846
- overflow: "hidden",
847
- background: e.warnSoftBg,
848
- border: `${y.size} solid ${e.bad}`,
849
- borderRadius: u.sm,
850
- margin: "6px 8px"
851
- } : {
852
- padding: "14px 12px"
853
- }
854
- },
855
- children: [
856
- /* @__PURE__ */ g(
857
- "div",
858
- {
859
- style: {
860
- display: "flex",
861
- justifyContent: "space-between",
862
- alignItems: "flex-start",
863
- gap: r.xs,
864
- marginBottom: r["3xs"],
865
- ...n && { paddingInlineStart: r.xs }
866
- },
867
- children: [
868
- /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
869
- t.athlete && /* @__PURE__ */ a(
870
- re,
871
- {
872
- avatar: t.athlete.avatar,
873
- name: t.athlete.name,
874
- tokens: e
875
- }
876
- ),
877
- /* @__PURE__ */ a(
878
- "span",
879
- {
880
- style: {
881
- fontSize: "0.8125em",
882
- fontWeight: 700,
883
- color: n ? e.bad : e.t1
884
- },
885
- children: t.name
886
- }
887
- )
888
- ] }),
889
- /* @__PURE__ */ g(
890
- "div",
891
- {
892
- style: {
893
- display: "flex",
894
- alignItems: "center",
895
- gap: 6,
896
- flexShrink: 0
897
- },
898
- children: [
899
- /* @__PURE__ */ a(ae, { sel: t, tokens: e }),
900
- /* @__PURE__ */ a(
901
- "button",
902
- {
903
- onClick: () => o(t.id),
904
- onMouseEnter: () => d(!0),
905
- onMouseLeave: () => d(!1),
906
- title: "Remove",
907
- style: {
908
- background: p ? "rgba(239,68,68,.08)" : "none",
909
- border: "none",
910
- cursor: "pointer",
911
- color: p ? e.bad : e.t2,
912
- fontSize: "0.8125em",
913
- padding: "3px 5px",
914
- borderRadius: u.xs,
915
- transition: "color .15s, background .15s",
916
- lineHeight: 1,
917
- display: "flex",
918
- alignItems: "center"
919
- },
920
- children: /* @__PURE__ */ a(Zt, {})
921
- }
922
- )
923
- ]
924
- }
925
- )
926
- ]
927
- }
928
- ),
929
- /* @__PURE__ */ a(
930
- "div",
931
- {
932
- style: {
933
- fontSize: "0.6875em",
934
- color: e.t3,
935
- marginBottom: 6,
936
- ...n && { paddingInlineStart: 8 }
937
- },
938
- children: Kt(t.marketId, i, s.marketLabels)
939
- }
940
- ),
941
- /* @__PURE__ */ a(
942
- "div",
943
- {
944
- style: n ? { background: e.s3, paddingTop: 7, paddingBottom: 7 } : {
945
- background: e.s3,
946
- borderRadius: u.sm,
947
- padding: "7px 10px",
948
- marginTop: 6
949
- },
950
- children: /* @__PURE__ */ g(
951
- "div",
952
- {
953
- style: {
954
- display: "flex",
955
- alignItems: "stretch",
956
- gap: 10,
957
- padding: n ? `0 ${r.sm}` : 0
958
- },
959
- children: [
960
- /* @__PURE__ */ a(
961
- "div",
962
- {
963
- style: {
964
- flex: "0 1 auto",
965
- minWidth: 0,
966
- display: "flex",
967
- alignItems: "center"
968
- },
969
- children: /* @__PURE__ */ g(
970
- "div",
971
- {
972
- style: {
973
- display: "grid",
974
- gridTemplateColumns: h ? "auto minmax(0, auto) auto" : "auto minmax(0, auto)",
975
- columnGap: 6,
976
- rowGap: r["2xs"],
977
- alignItems: "center"
978
- },
979
- children: [
980
- /* @__PURE__ */ a(
981
- et,
982
- {
983
- logo: t.participantOneLogo,
984
- name: t.participantOne ?? "",
985
- tokens: e
986
- }
987
- ),
988
- /* @__PURE__ */ a(
989
- "span",
990
- {
991
- style: {
992
- fontSize: "0.75em",
993
- color: e.t1,
994
- overflow: "hidden",
995
- textOverflow: "ellipsis",
996
- whiteSpace: "nowrap"
997
- },
998
- children: t.participantOne
999
- }
1000
- ),
1001
- h && (m !== void 0 ? /* @__PURE__ */ a(nt, { score: m, tokens: e }) : /* @__PURE__ */ a("span", {})),
1002
- t.participantTwo && /* @__PURE__ */ a(
1003
- et,
1004
- {
1005
- logo: t.participantTwoLogo,
1006
- name: t.participantTwo,
1007
- tokens: e
1008
- }
1009
- ),
1010
- t.participantTwo && /* @__PURE__ */ a(
1011
- "span",
1012
- {
1013
- style: {
1014
- fontSize: "0.75em",
1015
- color: e.t1,
1016
- overflow: "hidden",
1017
- textOverflow: "ellipsis",
1018
- whiteSpace: "nowrap"
1019
- },
1020
- children: t.participantTwo
1021
- }
1022
- ),
1023
- t.participantTwo && h && (x !== void 0 ? /* @__PURE__ */ a(nt, { score: x, tokens: e }) : /* @__PURE__ */ a("span", {}))
1024
- ]
1025
- }
1026
- )
1027
- }
1028
- ),
1029
- (t.matchStatus === "inprogress" || c || t.competition) && /* @__PURE__ */ g(
1030
- "div",
1031
- {
1032
- style: {
1033
- marginLeft: "auto",
1034
- flexShrink: 0,
1035
- display: "flex",
1036
- flexDirection: "column",
1037
- justifyContent: "space-between",
1038
- alignItems: "flex-end"
1039
- },
1040
- children: [
1041
- t.matchStatus === "inprogress" ? /* @__PURE__ */ g(
1042
- "span",
1043
- {
1044
- style: {
1045
- display: "inline-flex",
1046
- alignItems: "center",
1047
- gap: 3,
1048
- backgroundColor: e.bad,
1049
- color: "#fff",
1050
- fontSize: "0.6em",
1051
- fontWeight: 700,
1052
- letterSpacing: "0.07em",
1053
- padding: "2px 5px",
1054
- borderRadius: 3,
1055
- textTransform: "uppercase",
1056
- whiteSpace: "nowrap",
1057
- fontFamily: e.font
1058
- },
1059
- children: [
1060
- /* @__PURE__ */ a(ne, {}),
1061
- i("betslip.live")
1062
- ]
1063
- }
1064
- ) : c ? /* @__PURE__ */ a(
1065
- "span",
1066
- {
1067
- style: {
1068
- fontSize: "0.625em",
1069
- color: e.t3,
1070
- whiteSpace: "nowrap"
1071
- },
1072
- children: c
1073
- }
1074
- ) : null,
1075
- t.competition && /* @__PURE__ */ a(
1076
- ie,
1077
- {
1078
- name: t.competition.name,
1079
- logo: t.competition.logo,
1080
- tokens: e
1081
- }
1082
- )
1083
- ]
1084
- }
1085
- )
1086
- ]
1087
- }
1088
- )
1089
- }
1090
- )
1091
- ]
1092
- }
1093
- );
1094
- }, ot = ({
1095
- tokens: t,
1096
- isSide: e
1097
- }) => {
1098
- const { labels: n, selections: o, conflictIds: s } = I(), { t: i } = k();
1099
- return /* @__PURE__ */ g(M, { children: [
1100
- /* @__PURE__ */ a(
1101
- st,
1102
- {
1103
- styles: lt`
1104
- .bs-scrollbody::-webkit-scrollbar {
1105
- width: 8px;
1106
- }
1107
- .bs-scrollbody::-webkit-scrollbar-track {
1108
- background: transparent;
1109
- margin: 6px 0;
1110
- }
1111
- .bs-scrollbody::-webkit-scrollbar-thumb {
1112
- background: ${t.s3};
1113
- border-radius: 6px;
1114
- border-right: 4px solid transparent;
1115
- background-clip: padding-box;
1116
- }
1117
- `
1118
- }
1119
- ),
1120
- /* @__PURE__ */ a(
1121
- "div",
1122
- {
1123
- className: "bs-scrollbody",
1124
- style: {
1125
- overflowY: "auto",
1126
- flex: 1,
1127
- minHeight: 0,
1128
- maxHeight: e ? "none" : 300,
1129
- background: t.s1
1130
- },
1131
- children: o.length === 0 ? /* @__PURE__ */ g(
1132
- "div",
1133
- {
1134
- style: {
1135
- padding: "36px 20px",
1136
- textAlign: "center",
1137
- fontFamily: t.font
1138
- },
1139
- children: [
1140
- /* @__PURE__ */ a("div", { style: { fontSize: "2.5em", opacity: 0.25, marginBottom: 14 }, children: "🎯" }),
1141
- /* @__PURE__ */ a(
1142
- "div",
1143
- {
1144
- style: {
1145
- fontSize: "0.875em",
1146
- fontWeight: 600,
1147
- color: t.t1,
1148
- marginBottom: 6
1149
- },
1150
- children: n.emptyTitle || i("betslip.emptyTitle")
1151
- }
1152
- ),
1153
- /* @__PURE__ */ a("div", { style: { fontSize: "0.75em", color: t.t2, lineHeight: 1.5 }, children: n.emptyDescription || i("betslip.emptyDescription") })
1154
- ]
1155
- }
1156
- ) : o.map((l) => /* @__PURE__ */ a(
1157
- se,
1158
- {
1159
- sel: l,
1160
- tokens: t,
1161
- isConflict: s.has(l.id)
1162
- },
1163
- l.id
1164
- ))
1165
- }
1166
- )
1167
- ] });
1168
- }, le = z.button`
1169
- background: ${({ primary: t }) => t};
1170
- color: #fff;
1171
- border: none;
1172
- width: 44px;
1173
- cursor: pointer;
1174
- flex-shrink: 0;
1175
- &:hover {
1176
- background: ${({ primary: t }) => t};
1177
- opacity: 0.88;
1178
- }
1179
- `, rt = ({ tokens: t, brandingLogoUrl: e }) => {
1180
- const {
1181
- labels: n,
1182
- selections: o,
1183
- combStake: s,
1184
- setCombStake: i,
1185
- conflictIds: l,
1186
- currency: r,
1187
- stakePresets: u
1188
- } = I(), { t: y } = k(), p = $(), d = T(), c = A(), h = o.filter(
1189
- (w) => w.status === "active" || !w.status
1190
- ), b = ct(h), m = parseFloat(s) || 0, x = m * b, f = l.size > 0, S = (w) => {
1191
- i(String(w));
1192
- }, v = V.useRef(null);
1193
- return /* @__PURE__ */ g(M, { children: [
1194
- /* @__PURE__ */ a(
1195
- st,
1196
- {
1197
- styles: lt`
1198
- .bs-stake-input::-webkit-outer-spin-button,
1199
- .bs-stake-input::-webkit-inner-spin-button {
1200
- -webkit-appearance: none;
1201
- margin: 0;
1202
- }
1203
- .bs-stake-input {
1204
- -moz-appearance: textfield;
1205
- }
1206
- `
1207
- }
1208
- ),
1209
- /* @__PURE__ */ a(
1210
- "div",
1211
- {
1212
- style: {
1213
- padding: `${p.sm} 14px`,
1214
- flexShrink: 0,
1215
- borderTop: `${c.size} solid ${t.bdr}`,
1216
- background: t.s3,
1217
- fontFamily: t.font
1218
- },
1219
- children: /* @__PURE__ */ g(M, { children: [
1220
- h.length > 0 && /* @__PURE__ */ g(
1221
- "div",
1222
- {
1223
- style: {
1224
- display: "flex",
1225
- justifyContent: "space-between",
1226
- fontSize: "0.75em",
1227
- color: t.t2,
1228
- padding: "3px 0",
1229
- paddingBottom: p.xs
1230
- },
1231
- children: [
1232
- /* @__PURE__ */ a("span", { children: n.combinedOddsLabel || y("betslip.combinedOddsLabel") }),
1233
- /* @__PURE__ */ g(
1234
- "span",
1235
- {
1236
- style: {
1237
- display: "flex",
1238
- alignItems: "center",
1239
- gap: p["2xs"],
1240
- fontSize: "0.8125em",
1241
- fontWeight: 600,
1242
- color: t.t1
1243
- },
1244
- children: [
1245
- /* @__PURE__ */ a("span", { style: { fontSize: "0.5625em", color: t.ok }, children: "▲" }),
1246
- b.toFixed(2)
1247
- ]
1248
- }
1249
- )
1250
- ]
1251
- }
1252
- ),
1253
- /* @__PURE__ */ g(
1254
- "div",
1255
- {
1256
- style: {
1257
- display: "flex",
1258
- alignItems: "center",
1259
- gap: 6,
1260
- marginBottom: 10
1261
- },
1262
- children: [
1263
- /* @__PURE__ */ a(
1264
- "span",
1265
- {
1266
- style: { fontSize: "0.75em", color: t.t2, flexShrink: 0 },
1267
- children: n.stakeLabel || y("betslip.stakeLabel")
1268
- }
1269
- ),
1270
- /* @__PURE__ */ a("div", { style: { flex: 1, position: "relative", marginBottom: 0 }, children: /* @__PURE__ */ a(
1271
- "input",
1272
- {
1273
- ref: v,
1274
- className: "bs-stake-input",
1275
- type: "number",
1276
- min: "0",
1277
- step: "1",
1278
- value: s,
1279
- onChange: (w) => i(w.target.value),
1280
- placeholder: "0",
1281
- onFocus: (w) => w.currentTarget.style.borderColor = t.primary,
1282
- onBlur: (w) => w.currentTarget.style.borderColor = t.bdr,
1283
- style: {
1284
- width: "100%",
1285
- background: t.s1,
1286
- border: `${c.size} solid ${t.bdr}`,
1287
- color: t.t1,
1288
- padding: "10px",
1289
- borderRadius: d.sm,
1290
- fontSize: "0.875em",
1291
- fontFamily: t.font,
1292
- outline: "none",
1293
- transition: "border-color .15s",
1294
- boxSizing: "border-box"
1295
- }
1296
- }
1297
- ) }),
1298
- u.map((w) => /* @__PURE__ */ a(
1299
- le,
1300
- {
1301
- primary: t.primary,
1302
- onClick: () => S(w),
1303
- style: {
1304
- padding: "10px 0",
1305
- borderRadius: d.sm,
1306
- fontSize: "0.8125em",
1307
- fontWeight: 700,
1308
- fontFamily: t.font,
1309
- textAlign: "center"
1310
- },
1311
- children: w
1312
- },
1313
- w
1314
- ))
1315
- ]
1316
- }
1317
- ),
1318
- /* @__PURE__ */ g("div", { style: { marginBottom: 10 }, children: [
1319
- /* @__PURE__ */ g(
1320
- "div",
1321
- {
1322
- style: {
1323
- display: "flex",
1324
- justifyContent: "space-between",
1325
- fontSize: "0.8125em",
1326
- color: t.t1,
1327
- fontWeight: 600,
1328
- padding: "3px 0"
1329
- },
1330
- children: [
1331
- /* @__PURE__ */ a("span", { children: n.totalStakeLabel || y("betslip.totalStakeLabel") }),
1332
- /* @__PURE__ */ a("span", { children: m > 0 ? `${m.toFixed(2)}${r}` : "—" })
1333
- ]
1334
- }
1335
- ),
1336
- /* @__PURE__ */ g(
1337
- "div",
1338
- {
1339
- style: {
1340
- display: "flex",
1341
- justifyContent: "space-between",
1342
- fontSize: "0.8125em",
1343
- color: t.t1,
1344
- fontWeight: 600,
1345
- padding: "3px 0",
1346
- borderTop: `${c.size} solid ${t.bdr}`
1347
- },
1348
- children: [
1349
- /* @__PURE__ */ a("span", { children: n.potentialWinLabel || y("betslip.potentialWinLabel") }),
1350
- /* @__PURE__ */ a(
1351
- "span",
1352
- {
1353
- style: {
1354
- color: x > 0 ? t.primary : void 0
1355
- },
1356
- children: x > 0 ? x.toFixed(2) : "—"
1357
- }
1358
- )
1359
- ]
1360
- }
1361
- )
1362
- ] }),
1363
- /* @__PURE__ */ a(
1364
- ft,
1365
- {
1366
- tokens: t,
1367
- brandingLogoUrl: e,
1368
- hasConflicts: f
1369
- }
1370
- ),
1371
- n.disclaimer && /* @__PURE__ */ a(
1372
- "div",
1373
- {
1374
- style: {
1375
- fontSize: "0.625em",
1376
- color: t.t3,
1377
- textAlign: "center",
1378
- marginTop: p.xs,
1379
- lineHeight: 1.5,
1380
- padding: `0 ${p["3xs"]}`
1381
- },
1382
- children: n.disclaimer
1383
- }
1384
- )
1385
- ] })
1386
- }
1387
- )
1388
- ] });
1389
- };
1390
- function ce(t, e) {
1391
- const [n, o] = R([]), [s, i] = R((e == null ? void 0 : e.length) > 0), l = St();
1392
- return _(() => {
1393
- if (!(e != null && e.length)) {
1394
- o([]), i(!1);
1395
- return;
1396
- }
1397
- const r = e.map((y) => {
1398
- const p = y.split(":"), d = p[p.length - 1], c = p[p.length - 2];
1399
- return { eventId: p.slice(0, p.length - 2).join(":"), market: c, outcome: d };
1400
- }), u = [...new Set(r.map((y) => y.eventId))];
1401
- i(!0), t.football.getMatches({ matchIds: u }, l).then((y) => {
1402
- const p = new Map(
1403
- y.data.map((c) => [c.id, c])
1404
- ), d = r.flatMap(
1405
- ({ eventId: c, market: h, outcome: b }) => {
1406
- var x, f, S, v, w;
1407
- const m = p.get(c);
1408
- return m ? [
1409
- {
1410
- eventId: c,
1411
- market: h,
1412
- outcome: b,
1413
- participantOne: {
1414
- name: m.homeTeam.name,
1415
- logo: (x = m.homeTeam.assets) == null ? void 0 : x.logo
1416
- },
1417
- participantTwo: {
1418
- name: m.awayTeam.name,
1419
- logo: (f = m.awayTeam.assets) == null ? void 0 : f.logo
1420
- },
1421
- startAt: m.kickoffAt,
1422
- matchStatus: (S = m.status) == null ? void 0 : S.type,
1423
- competition: (v = m.context) != null && v.competition ? {
1424
- name: m.context.competition.name,
1425
- logo: (w = m.context.competition.assets) == null ? void 0 : w.logo
1426
- } : void 0
1427
- }
1428
- ] : [];
1429
- }
1430
- );
1431
- o(d);
1432
- }).catch(() => o([])).finally(() => i(!1));
1433
- }, [JSON.stringify(e), l]), { selectionInputs: n, loading: s };
1434
- }
1435
- const de = B`
1436
- from { transform: translateY(100%); opacity: 0; }
1437
- to { transform: translateY(0); opacity: 1; }
1438
- `, pe = B`
1439
- from { transform: translateY(-100%); opacity: 0; }
1440
- to { transform: translateY(0); opacity: 1; }
1441
- `;
1442
- function me(t) {
1443
- return t.startsWith("top") ? pe : de;
1444
- }
1445
- const fe = z.div`
1446
- position: fixed;
1447
- z-index: 999;
1448
- animation: ${({ pos: t }) => me(t)} 0.22s ease;
1449
- `, O = 320, it = 340;
1450
- function ue(t) {
1451
- return t === "bottom-right" ? { bottom: 16, right: 16, width: O } : t === "bottom-left" ? { bottom: 16, left: 16, width: O } : t === "top-right" ? { top: 16, right: 16, width: O } : t === "top-left" ? { top: 16, left: 16, width: O } : { bottom: 16, right: 16, width: O };
1452
- }
1453
- const ge = () => {
1454
- const { selectionInputs: t, combStake: e, selections: n } = I(), o = parseFloat(e) || 0, s = n.length ? n.reduce((i, l) => i * l.odds, 1) : 0;
1455
- return _(() => {
1456
- j._notify({ selections: t, stake: o, totalOdds: s });
1457
- }, [t, o, s]), _(() => () => j._notify({ selections: [], stake: 0, totalOdds: 0 }), []), null;
1458
- }, he = ({ props: t }) => {
1459
- var D, W, U, F, H, C, P, E, G, X;
1460
- const { position: e = "bottom-right", brandingLogoUrl: n } = t, {
1461
- open: o,
1462
- setOpen: s,
1463
- conflictIds: i,
1464
- selections: l,
1465
- maxSelections: r,
1466
- bookmakerLogoUrl: u,
1467
- bookmakerBackgroundColor: y,
1468
- oddsReady: p
1469
- } = I(), d = ((H = (F = (U = (W = (D = t.themeOptions) == null ? void 0 : D.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : U.palette) == null ? void 0 : F.primary) == null ? void 0 : H.plainColor) != null || ((X = (G = (E = (P = (C = t.themeOptions) == null ? void 0 : C.colorSchemes) == null ? void 0 : P.dark) == null ? void 0 : E.palette) == null ? void 0 : G.primary) == null ? void 0 : X.plainColor) != null, c = Yt(
1470
- d ? void 0 : y
1471
- ), h = T(), b = A(), m = e.startsWith("side"), x = e === "top-right" || e === "top-left", f = i.size > 0, { t: S } = k();
1472
- if (!p) return null;
1473
- if (m) {
1474
- const L = e === "side-right", N = L ? "right" : "left", K = n || u, ut = o ? it : 0, gt = o ? "translateX(0)" : `translateX(${L ? "100%" : "-100%"})`;
1475
- return /* @__PURE__ */ g(
1476
- "div",
1477
- {
1478
- style: {
1479
- position: "fixed",
1480
- top: 0,
1481
- [N]: 0,
1482
- zIndex: 999,
1483
- height: "100vh",
1484
- width: 0,
1485
- pointerEvents: "none",
1486
- overflow: "visible"
1487
- },
1488
- children: [
1489
- /* @__PURE__ */ g(
1490
- "div",
1491
- {
1492
- style: {
1493
- position: "absolute",
1494
- [N]: ut,
1495
- top: "33%",
1496
- transform: "translateY(-50%)",
1497
- pointerEvents: "all",
1498
- transition: `${N} 0.3s ease`,
1499
- display: "flex",
1500
- flexDirection: "column",
1501
- alignItems: "center",
1502
- gap: 6
1503
- },
1504
- children: [
1505
- /* @__PURE__ */ a(
1506
- "button",
1507
- {
1508
- onClick: () => s(!o),
1509
- title: S(o ? "betslip.hide" : "betslip.show"),
1510
- style: {
1511
- position: "relative",
1512
- display: "flex",
1513
- alignItems: "center",
1514
- justifyContent: "center",
1515
- width: 32,
1516
- height: 64,
1517
- background: c.primary,
1518
- border: "none",
1519
- cursor: "pointer",
1520
- borderRadius: L ? "8px 0 0 8px" : "0 8px 8px 0",
1521
- boxShadow: L ? "-4px 0 12px rgba(0,0,0,.22)" : "4px 0 12px rgba(0,0,0,.22)",
1522
- overflow: "hidden",
1523
- padding: 0
1524
- },
1525
- children: K ? /* @__PURE__ */ a(
1526
- "img",
1527
- {
1528
- src: K,
1529
- alt: "brand",
1530
- style: {
1531
- position: "absolute",
1532
- top: "50%",
1533
- left: "50%",
1534
- width: 52,
1535
- height: 22,
1536
- objectFit: "contain",
1537
- transform: `translate(-50%, -50%) rotate(${L ? "-90" : "90"}deg)`
1538
- }
1539
- }
1540
- ) : /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
1541
- /* @__PURE__ */ a(
1542
- "div",
1543
- {
1544
- style: {
1545
- width: 12,
1546
- height: 2,
1547
- background: "rgba(255,255,255,.7)",
1548
- borderRadius: 1
1549
- }
1550
- }
1551
- ),
1552
- /* @__PURE__ */ a(
1553
- "div",
1554
- {
1555
- style: {
1556
- width: 12,
1557
- height: 2,
1558
- background: "rgba(255,255,255,.7)",
1559
- borderRadius: 1
1560
- }
1561
- }
1562
- ),
1563
- /* @__PURE__ */ a(
1564
- "div",
1565
- {
1566
- style: {
1567
- width: 12,
1568
- height: 2,
1569
- background: "rgba(255,255,255,.7)",
1570
- borderRadius: 1
1571
- }
1572
- }
1573
- )
1574
- ] })
1575
- }
1576
- ),
1577
- !o && r != null && /* @__PURE__ */ g(
1578
- "div",
1579
- {
1580
- style: {
1581
- fontSize: "0.625rem",
1582
- fontWeight: 700,
1583
- color: "#fff",
1584
- fontFamily: c.font,
1585
- background: c.primary,
1586
- borderRadius: 4,
1587
- padding: "2px 5px",
1588
- whiteSpace: "nowrap",
1589
- boxShadow: L ? "-2px 2px 6px rgba(0,0,0,.2)" : "2px 2px 6px rgba(0,0,0,.2)"
1590
- },
1591
- children: [
1592
- l.length,
1593
- "/",
1594
- r
1595
- ]
1596
- }
1597
- )
1598
- ]
1599
- }
1600
- ),
1601
- /* @__PURE__ */ g(
1602
- "div",
1603
- {
1604
- style: {
1605
- position: "absolute",
1606
- top: 0,
1607
- [N]: 0,
1608
- width: it,
1609
- height: "100%",
1610
- transform: gt,
1611
- transition: "transform 0.3s ease",
1612
- pointerEvents: o ? "all" : "none",
1613
- display: "flex",
1614
- flexDirection: "column",
1615
- background: c.s1,
1616
- boxShadow: L ? "-6px 0 24px rgba(0,0,0,.18)" : "6px 0 24px rgba(0,0,0,.18)",
1617
- outline: `${b.size} solid ${c.bdr}`
1618
- },
1619
- children: [
1620
- /* @__PURE__ */ a(
1621
- Q,
1622
- {
1623
- tokens: c,
1624
- isSide: m,
1625
- position: e,
1626
- brandingLogoUrl: n
1627
- }
1628
- ),
1629
- f && /* @__PURE__ */ a(Z, { tokens: c }),
1630
- /* @__PURE__ */ g(
1631
- "div",
1632
- {
1633
- style: {
1634
- display: "flex",
1635
- flexDirection: "column",
1636
- flex: 1,
1637
- minHeight: 0,
1638
- overflow: "hidden"
1639
- },
1640
- children: [
1641
- /* @__PURE__ */ a(ot, { tokens: c, isSide: m }),
1642
- /* @__PURE__ */ a(rt, { tokens: c, brandingLogoUrl: n })
1643
- ]
1644
- }
1645
- )
1646
- ]
1647
- }
1648
- )
1649
- ]
1650
- }
1651
- );
1652
- }
1653
- const v = x ? `0 0 ${h.md} ${h.md}` : `${h.md} ${h.md} 0 0`, w = ue(e);
1654
- return /* @__PURE__ */ a(
1655
- fe,
1656
- {
1657
- pos: e,
1658
- style: {
1659
- fontFamily: c.font,
1660
- borderRadius: v,
1661
- overflow: "hidden",
1662
- boxShadow: x ? "0 4px 16px rgba(0,0,0,.2)" : "0 -4px 16px rgba(0,0,0,.2)",
1663
- outline: `${b.size} solid ${c.primary}`,
1664
- ...w
1665
- },
1666
- children: /* @__PURE__ */ g(
1667
- "div",
1668
- {
1669
- style: {
1670
- display: "flex",
1671
- flexDirection: "column",
1672
- maxHeight: "calc(100vh - 64px)",
1673
- background: c.s1
1674
- },
1675
- children: [
1676
- /* @__PURE__ */ a(
1677
- Q,
1678
- {
1679
- tokens: c,
1680
- isSide: m,
1681
- position: e,
1682
- brandingLogoUrl: n
1683
- }
1684
- ),
1685
- f && /* @__PURE__ */ a(Z, { tokens: c }),
1686
- !o && l.length > 0 && /* @__PURE__ */ a(
1687
- Xt,
1688
- {
1689
- tokens: c,
1690
- brandingLogoUrl: n
1691
- }
1692
- ),
1693
- o && /* @__PURE__ */ g(
1694
- "div",
1695
- {
1696
- style: {
1697
- display: "flex",
1698
- flexDirection: "column",
1699
- flex: 1,
1700
- minHeight: 0,
1701
- overflow: "hidden"
1702
- },
1703
- children: [
1704
- /* @__PURE__ */ a(ot, { tokens: c, isSide: m }),
1705
- /* @__PURE__ */ a(rt, { tokens: c, brandingLogoUrl: n })
1706
- ]
1707
- }
1708
- )
1709
- ]
1710
- }
1711
- )
1712
- }
1713
- );
1714
- }, be = (t) => {
1715
- const [e, n] = R([]), o = at(/* @__PURE__ */ new Set()), { selectionInputs: s, loading: i } = ce(
1716
- t.sdk,
1717
- e
1718
- ), l = s.filter(
1719
- (d) => d.matchStatus !== "finished"
1720
- ), { oddsMap: r, oddsMarkets: u } = Ut(
1721
- t.sdk,
1722
- l,
1723
- t.oddsPollingInterval || 3e4,
1724
- { operatorId: t.operatorId, affiliateId: t.affiliateId }
1725
- ), y = Y((d) => {
1726
- o.current.delete(d);
1727
- const c = d.split(":"), h = c[c.length - 2], b = c.slice(0, c.length - 2).join(":");
1728
- n((m) => {
1729
- const x = m.findIndex((f) => {
1730
- const S = f.split(":");
1731
- return S.slice(0, S.length - 2).join(":") === b && S[S.length - 2] === h;
1732
- });
1733
- if (x !== -1) {
1734
- const f = [...m];
1735
- return f[x] = d, f;
1736
- }
1737
- return [...m, d];
1738
- });
1739
- }, []), p = Y((d) => {
1740
- n((c) => c.filter((h) => h !== d));
1741
- }, []);
1742
- return _(() => {
1743
- s.filter((d) => d.matchStatus === "finished").forEach((d) => p(`${d.eventId}:${d.market}:${d.outcome}`));
1744
- }, [s, p]), _(() => {
1745
- l.forEach((d) => {
1746
- var h, b;
1747
- const c = `${d.eventId}:${d.market}:${d.outcome}`;
1748
- if (Dt(r, u, d.eventId, d.market, c)) {
1749
- if (!o.current.has(c)) {
1750
- o.current.add(c);
1751
- const m = ((b = (h = ((r == null ? void 0 : r.get(d.eventId)) ?? [])[0]) == null ? void 0 : h.bookmaker) == null ? void 0 : b.name) ?? "the bookmaker";
1752
- console.warn(
1753
- `[betslip] Removing "${c}": ${m} returned no ${d.market} odds for this event.`
1754
- );
1755
- }
1756
- p(c);
1757
- }
1758
- });
1759
- }, [r, u, l, p]), _(() => (j._mount({ setSelection: y, removeSelection: p }), () => j._unmount()), [y, p]), !e.length || !l.length && i ? null : /* @__PURE__ */ g(
1760
- Mt,
1761
- {
1762
- labels: t.labels,
1763
- initialSelections: l,
1764
- maxSelections: t.maxSelections,
1765
- currency: t.currency,
1766
- stakePresets: t.stakePresets,
1767
- ctaUrlTemplate: t.ctaUrlTemplate,
1768
- onExternalRemove: p,
1769
- sharedOddsMap: r,
1770
- children: [
1771
- /* @__PURE__ */ a(ge, {}),
1772
- /* @__PURE__ */ a(he, { props: t })
1773
- ]
1774
- }
1775
- );
1776
- }, _e = (t) => /* @__PURE__ */ a(
1777
- wt,
1778
- {
1779
- packageName: "betslip",
1780
- language: t.language,
1781
- themeOptions: t.themeOptions,
1782
- sdk: t.sdk,
1783
- entityId: "",
1784
- disableCache: t.disableCache,
1785
- children: /* @__PURE__ */ a(be, { ...t })
1786
- }
1787
- );
1788
- export {
1789
- _e as M
1790
- };