fansunited-frontend-components 0.0.92 → 0.0.93

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 (139) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +139 -146
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +14 -20
  5. package/CompetitionStatistics.js +27 -27
  6. package/CompetitorCard.js +895 -891
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +1 -1
  9. package/EventCard.js +1494 -1571
  10. package/EventGamePlay.js +1 -1
  11. package/Leaderboard.js +249 -257
  12. package/List.js +319 -436
  13. package/MatchQuizPlay.js +1 -1
  14. package/Odds.js +30 -30
  15. package/PersonalityQuizPlay.js +1 -1
  16. package/PickThePair.js +627 -693
  17. package/PlayerOfTheMatch.js +256 -279
  18. package/PollVote.js +1 -1
  19. package/Predictor.js +19443 -2
  20. package/README.md +2 -1
  21. package/Standings.js +94 -99
  22. package/TopX.js +5871 -6988
  23. package/chunks/ChanceGameEmbedVariant-C3NGwvTF.js +21 -0
  24. package/chunks/OddsSkeleton-Bav8FHHN.js +26 -0
  25. package/chunks/{OddsStrip-B159Nivm.js → OddsStrip-CviVfQI4.js} +51 -53
  26. package/chunks/{PickOneOfX-D9qlxKTD.js → PickOneOfX-a6Dv0-rR.js} +210 -212
  27. package/chunks/index-0ezhEUTz.js +4 -0
  28. package/chunks/index-B1d9q8fX.js +4 -0
  29. package/chunks/index-BP0pvFJ4.js +4 -0
  30. package/chunks/index-CSrBHonD.js +4 -0
  31. package/chunks/index-Ckyyw-I8.js +4 -0
  32. package/chunks/index-DAu5SkP8.js +4 -0
  33. package/chunks/index-yjMVOgwO.js +4 -0
  34. package/chunks/{main-CcPVuc5G.js → main-CFwRpvUi.js} +219 -238
  35. package/chunks/{main-By2Fg4Us.js → main-D9tFZv2q.js} +272 -309
  36. package/chunks/{main-CWfREbUv.js → main-DPWm9Ema.js} +419 -434
  37. package/chunks/{main-Db4YC1C9.js → main-Dj4Manb5.js} +386 -407
  38. package/chunks/{main-BhONg691.js → main-Dmc68oMQ.js} +730 -1093
  39. package/chunks/{main-BoLNJccN.js → main-DsAnwwP4.js} +1677 -2002
  40. package/chunks/{main-JAewg2VD.js → main-dwV_55lz.js} +409 -432
  41. package/chunks/main-eAQMCxQ7.js +1949 -0
  42. package/index.js +40 -44
  43. package/package.json +13 -5
  44. package/chunks/AccessTime-B7Q_InTi.js +0 -10
  45. package/chunks/AlertMessage-CTbc9daZ.js +0 -318
  46. package/chunks/Avatar-Ve0m4ut_.js +0 -353
  47. package/chunks/Button-x1sQVMH2.js +0 -665
  48. package/chunks/Card-DfxnA3Cz.js +0 -196
  49. package/chunks/CardActions-TMBAbk8a.js +0 -140
  50. package/chunks/CardContent-CLQHztIU.js +0 -106
  51. package/chunks/ChanceGameEmbedVariant-C3TKbPI4.js +0 -913
  52. package/chunks/CheckCircle-DW1VzjQO.js +0 -8
  53. package/chunks/Chip-BUoNpinI.js +0 -365
  54. package/chunks/CircularProgress-D88LgW2V.js +0 -317
  55. package/chunks/Close-BxLZcPtb.js +0 -9
  56. package/chunks/Close-DVx6f5-e.js +0 -8
  57. package/chunks/CollectLeadForm-DtUFKk99.js +0 -3419
  58. package/chunks/ConsentsList-BcIMKviP.js +0 -339
  59. package/chunks/DirectionScope-CK0duYt8.js +0 -36
  60. package/chunks/Divider-D_ALv2uC.js +0 -166
  61. package/chunks/Edit-CiKqhDom.js +0 -99
  62. package/chunks/EmojiEvents-BYoxruEl.js +0 -8
  63. package/chunks/FavoriteBorder-YhT6RHv5.js +0 -11
  64. package/chunks/FormControl-BNG04EhC.js +0 -656
  65. package/chunks/FormControlContext-Ct0huDDM.js +0 -6
  66. package/chunks/FormLabel-Bl7hTa8O.js +0 -130
  67. package/chunks/GlobalStyles-PokSS9bO.js +0 -12
  68. package/chunks/InlineSpinner-BhKW6lxZ.js +0 -28
  69. package/chunks/Input-B7kPqO0b.js +0 -391
  70. package/chunks/KeyboardArrowDown-OGGGLEnE.js +0 -8
  71. package/chunks/KeyboardArrowRight-DN7qrp17.js +0 -11
  72. package/chunks/KeyboardArrowUp-jvN5m_A0.js +0 -8
  73. package/chunks/Link-brb09X-6.js +0 -319
  74. package/chunks/ListItemButton-BFG5QJbo.js +0 -1151
  75. package/chunks/ModalClose-D3i-AyMB.js +0 -153
  76. package/chunks/ModalDialog-Be6w76fh.js +0 -880
  77. package/chunks/NotFoundSkeleton-BHRVG8yg.js +0 -83
  78. package/chunks/Notification-CC66HKXb.js +0 -614
  79. package/chunks/OddsSkeleton-BBOVhfsn.js +0 -137
  80. package/chunks/OverlayScoreStateSkeleton-D5rnBJ_w.js +0 -154
  81. package/chunks/OverlayScoreStateWrapperSkeleton-CTXzD0bm.js +0 -81
  82. package/chunks/OverlaySignInSkeleton-T8A_9Tco.js +0 -518
  83. package/chunks/OverlaySkeleton-y02LRXZy.js +0 -1193
  84. package/chunks/Person-BD-IO4aX.js +0 -8
  85. package/chunks/PersonOutline-Nxl_9g9S.js +0 -8
  86. package/chunks/Popper-CGfJHTbM.js +0 -1263
  87. package/chunks/Portal-DQQSLiON.js +0 -74
  88. package/chunks/Portal-X8O64KaQ.js +0 -66
  89. package/chunks/Predictor-BJBBwZ6R.js +0 -19513
  90. package/chunks/PrizeCard-B2tBhY45.js +0 -36400
  91. package/chunks/Search-jaDXe8g7.js +0 -14
  92. package/chunks/Select-CzBMHr7z.js +0 -1165
  93. package/chunks/Sheet-x-YGYOYz.js +0 -132
  94. package/chunks/SignInCta-3NFxIOuf.js +0 -79
  95. package/chunks/Spinner-_5U881sC.js +0 -39
  96. package/chunks/SportsSoccer-DLUgspA-.js +0 -20
  97. package/chunks/Stack-CDpKA1D-.js +0 -169
  98. package/chunks/StandardContentSkeleton-DaZftDxZ.js +0 -57
  99. package/chunks/Table-IJ9-D2DF.js +0 -394
  100. package/chunks/Tabs-iyOvjGfd.js +0 -1084
  101. package/chunks/Textarea-Dv_Z4l5j.js +0 -475
  102. package/chunks/TimerOutlined-jNsK__Zz.js +0 -8
  103. package/chunks/Tooltip-clSjN1oC.js +0 -535
  104. package/chunks/Typography-BsucZNXl.js +0 -775
  105. package/chunks/areArraysEqual-B3mXtHvh.js +0 -6
  106. package/chunks/colorInversionUtils-AoR_6ghW.js +0 -347
  107. package/chunks/createSvgIcon-BWoHeNkc.js +0 -2813
  108. package/chunks/createSvgIcon-DBkOhFdn.js +0 -206
  109. package/chunks/dividerClasses-BkQMLbsL.js +0 -9
  110. package/chunks/elementAcceptingRef-DjUfkpLB.js +0 -25
  111. package/chunks/enums-B1lTCQvC.js +0 -15
  112. package/chunks/formLabelClasses-N0g8NZ67.js +0 -9
  113. package/chunks/getReactElementRef-B3MFPBbS.js +0 -21
  114. package/chunks/helpers-CKFwVhwj.js +0 -558
  115. package/chunks/index-Bg5jypgn.js +0 -11
  116. package/chunks/index-Bnad45hB.js +0 -4
  117. package/chunks/index-C6rtfeRX.js +0 -4
  118. package/chunks/index-CFc0WTOi.js +0 -848
  119. package/chunks/index-C_kf8WZI.js +0 -4
  120. package/chunks/index-CaVpDbdC.js +0 -4
  121. package/chunks/index-DJJVbXn_.js +0 -4
  122. package/chunks/index-DQO7VDRC.js +0 -4
  123. package/chunks/index-Kgehqf8J.js +0 -4
  124. package/chunks/main-W_W6YBtr.js +0 -3280
  125. package/chunks/ownerWindow-PI509BpA.js +0 -7
  126. package/chunks/searchEntities-SJcoznz0.js +0 -38
  127. package/chunks/sportsEvents-CGX-WkNB.js +0 -27
  128. package/chunks/useButton-C9taTgFS.js +0 -106
  129. package/chunks/useConsents-BLhgfEDf.js +0 -1168
  130. package/chunks/useControlled-BYdyS7Pn.js +0 -31
  131. package/chunks/useEmbedCode-DCWnWGak.js +0 -31
  132. package/chunks/useEventCallback-C9W0M_8l.js +0 -14
  133. package/chunks/useForwardedInput-CkAnayh_.js +0 -180
  134. package/chunks/useImageVariant-B62O7iLC.js +0 -15
  135. package/chunks/useInfoPage-BHdgKdme.js +0 -50
  136. package/chunks/useParticipationDraft-Brnd_p3w.js +0 -307
  137. package/chunks/useSwitch-DLSSqtcZ.js +0 -66
  138. package/chunks/variantColorInheritance-DZr7CNx6.js +0 -30
  139. package/chunks/visuallyHidden-B8J7BVSJ.js +0 -14
package/ChanceGame.js CHANGED
@@ -1,24 +1,17 @@
1
1
  import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
2
- import { h as Ce, g as Ke, l as Je } from "./chunks/helpers-CKFwVhwj.js";
3
- import Z, { useState as qe, useEffect as Qe } from "react";
4
- import { i as J, k as Ze, f as ve, g as le, h as Se, B as d, a as se, u as we, d as xe, n as Te, c as $e, l as et, o as tt, p as ot, q as nt, r as rt, C as it, s as lt, E as at, t as st, w as ct } from "./chunks/PrizeCard-B2tBhY45.js";
5
- import { C as ue, W as fe, a as ne } from "./chunks/enums-B1lTCQvC.js";
6
- import { S as dt } from "./chunks/Spinner-_5U881sC.js";
7
- import { createPortal as mt } from "react-dom";
8
- import { u as ut } from "./chunks/useInfoPage-BHdgKdme.js";
9
- import { N as ht } from "./chunks/NotFoundSkeleton-BHRVG8yg.js";
10
- import { u as xt, S as ie, c as Ae, D as Ie, C as ft, W as pt, a as gt, b as yt, d as bt, O as vt, F as St, P as be, e as wt, f as kt } from "./chunks/PickOneOfX-D9qlxKTD.js";
11
- import { S as Ee, O as Ge } from "./chunks/OverlaySkeleton-y02LRXZy.js";
12
- import { u as pe } from "./chunks/useImageVariant-B62O7iLC.js";
13
- import { T as B } from "./chunks/Typography-BsucZNXl.js";
14
- import { B as he } from "./chunks/Button-x1sQVMH2.js";
15
- import { d as He, a as Me } from "./chunks/index-Bg5jypgn.js";
2
+ import { isMobile as J, isLarge as Ke, useCornerRadius as ve, useColors as ie, useBorderSize as Se, NotFoundSkeleton as Je, ChanceGameTemplate as ue, useFontFamily as we, useSpacingScale as xe, hexToRgb as Ce, useCurrentThemeMode as Te, useImageVariant as fe, WidgetTemplate as pe, StandardSkeleton as $e, useInternalTheme as Ae, OverlaySkeleton as Ie, defaultBgVertical as Ge, defaultBg as Ee, isTablet as qe, getBrandingClickUrl as Qe, useInfoPage as Ze, initializeI18n as et, Spinner as tt, ChanceGameVariant as ne, languageToCountryCode as ot, getLanguageDirection as nt, applyDirectionToMount as rt, widgetCacheKey as lt, createWidgetCache as it, ContainerProvider as at, ThemeProvider as st, ConstantsProvider as ct } from "fansunited-frontend-core";
3
+ import Z, { useState as dt, useEffect as mt } from "react";
4
+ import { useTranslation as se } from "react-i18next";
5
+ import { Box as d, Typography as B, Button as he } from "@mui/joy";
6
+ import { u as ut, S as le, c as He, D as Me, C as ht, W as xt, a as ft, b as pt, d as gt, O as yt, F as bt, P as be, e as vt, f as St } from "./chunks/PickOneOfX-a6Dv0-rR.js";
7
+ import { CacheProvider as wt } from "@emotion/react";
8
+ import { createPortal as kt } from "react-dom";
16
9
  const ke = ({
17
10
  children: e,
18
11
  brandingBorderColor: c,
19
12
  state: a
20
13
  }) => {
21
- const n = J(), g = Ze(), o = a === "play" ? g : n, u = ve().md, i = c || le().secondaryContainer, s = Se().size + " solid " + i;
14
+ const n = J(), g = Ke(), o = a === "play" ? g : n, u = ve().md, l = c || ie().secondaryContainer, s = Se().size + " solid " + l;
22
15
  return /* @__PURE__ */ t(
23
16
  d,
24
17
  {
@@ -30,7 +23,7 @@ const ke = ({
30
23
  boxShadow: "md",
31
24
  border: s,
32
25
  overflow: "hidden",
33
- background: le().surface,
26
+ background: ie().surface,
34
27
  minHeight: "250px"
35
28
  },
36
29
  children: e
@@ -40,14 +33,14 @@ const ke = ({
40
33
  template: e
41
34
  }) => {
42
35
  const { t: c } = se(), a = /* @__PURE__ */ t(
43
- ht,
36
+ Je,
44
37
  {
45
38
  notFoundTitle: c("chanceGame.chanceGameNotFound"),
46
39
  notFoundMessage: c("chanceGame.chanceGameNotFoundDescription")
47
40
  }
48
41
  );
49
42
  return e === ue.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
50
- }, Ne = ({
43
+ }, Ve = ({
51
44
  infoPage: e,
52
45
  enableReset: c = !1,
53
46
  contentColor: a,
@@ -55,14 +48,14 @@ const ke = ({
55
48
  secondaryColor: g,
56
49
  onPrimaryColor: o,
57
50
  backgroundColor: u,
58
- dangerColor: i,
51
+ dangerColor: l,
59
52
  brandingLogo: r,
60
53
  isDark: s = !1,
61
54
  showTitleBlock: k = !1,
62
55
  variant: z
63
56
  }) => {
64
- var G, q, N;
65
- const x = J(), b = le(), p = ve(), l = we(), m = xe(), O = Se(), v = z === "standard", h = z === "overlay", C = v || h, E = JSON.parse(e.body), V = E.segments || [], f = e.labels || {}, L = E.mode || ((G = E.config) == null ? void 0 : G.mode) || "fair", H = ((q = E.config) == null ? void 0 : q.pace) || "normal", _ = ((N = E.config) == null ? void 0 : N.decorations) ?? !1, D = Ae(n, s), {
57
+ var E, q, V;
58
+ const x = J(), b = ie(), p = ve(), i = we(), m = xe(), O = Se(), v = z === "standard", h = z === "overlay", C = v || h, G = JSON.parse(e.body), L = G.segments || [], f = e.labels || {}, N = G.mode || ((E = G.config) == null ? void 0 : E.mode) || "fair", H = ((q = G.config) == null ? void 0 : q.pace) || "normal", _ = ((V = G.config) == null ? void 0 : V.decorations) ?? !1, D = He(n, s), {
66
59
  isSpinning: T,
67
60
  finalRotation: M,
68
61
  selectedSegment: y,
@@ -78,9 +71,9 @@ const ke = ({
78
71
  handleSpin: I,
79
72
  handleReset: S,
80
73
  onConfettiComplete: ee
81
- } = xt({ segments: V, mode: L, pace: H }), te = C ? x ? "260px" : "340px" : x ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
74
+ } = ut({ segments: L, mode: N, pace: H }), te = C ? x ? "260px" : "340px" : x ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
82
75
  _ && /* @__PURE__ */ t(
83
- Ie,
76
+ Me,
84
77
  {
85
78
  primaryColor: n,
86
79
  isDark: s,
@@ -88,7 +81,7 @@ const ke = ({
88
81
  }
89
82
  ),
90
83
  /* @__PURE__ */ t(
91
- ft,
84
+ ht,
92
85
  {
93
86
  active: W,
94
87
  primaryColor: n,
@@ -98,7 +91,7 @@ const ke = ({
98
91
  }
99
92
  ),
100
93
  F && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
101
- ie,
94
+ le,
102
95
  {
103
96
  result: y.results,
104
97
  variant: z || "embed",
@@ -131,7 +124,7 @@ const ke = ({
131
124
  {
132
125
  level: "h2",
133
126
  sx: {
134
- fontFamily: l.primary,
127
+ fontFamily: i.primary,
135
128
  fontWeight: 700,
136
129
  fontSize: x ? "1.5rem" : "2rem",
137
130
  color: a,
@@ -193,7 +186,7 @@ const ke = ({
193
186
  {
194
187
  level: "body-md",
195
188
  sx: {
196
- fontFamily: l.secondary,
189
+ fontFamily: i.secondary,
197
190
  fontWeight: 400,
198
191
  fontSize: x ? "0.875rem" : "1rem",
199
192
  color: a,
@@ -211,7 +204,7 @@ const ke = ({
211
204
  {
212
205
  level: "body-md",
213
206
  sx: {
214
- fontFamily: l.primary,
207
+ fontFamily: i.primary,
215
208
  fontWeight: 400,
216
209
  fontSize: x ? "0.875rem" : "1rem",
217
210
  color: a,
@@ -227,7 +220,7 @@ const ke = ({
227
220
  {
228
221
  level: v ? "body-sm" : "body-md",
229
222
  sx: {
230
- fontFamily: l.secondary,
223
+ fontFamily: i.secondary,
231
224
  fontWeight: 400,
232
225
  fontSize: x ? "0.875rem" : "1rem",
233
226
  color: a,
@@ -274,17 +267,17 @@ const ke = ({
274
267
  },
275
268
  children: [
276
269
  /* @__PURE__ */ t(
277
- pt,
270
+ xt,
278
271
  {
279
- segmentCount: V.length,
272
+ segmentCount: L.length,
280
273
  decorations: _,
281
274
  primaryColor: n
282
275
  }
283
276
  ),
284
277
  /* @__PURE__ */ t(
285
- gt,
278
+ ft,
286
279
  {
287
- segments: V,
280
+ segments: L,
288
281
  secondaryColor: g,
289
282
  primaryColor: n,
290
283
  onPrimaryColor: o,
@@ -317,10 +310,10 @@ const ke = ({
317
310
  }
318
311
  ),
319
312
  /* @__PURE__ */ t(
320
- yt,
313
+ pt,
321
314
  {
322
315
  primaryColor: n,
323
- dangerColor: i,
316
+ dangerColor: l,
324
317
  decorations: _
325
318
  }
326
319
  )
@@ -332,7 +325,7 @@ const ke = ({
332
325
  {
333
326
  level: "body-sm",
334
327
  sx: {
335
- fontFamily: l.secondary,
328
+ fontFamily: i.secondary,
336
329
  fontWeight: 400,
337
330
  fontSize: x ? "0.875rem" : "1rem",
338
331
  color: a,
@@ -345,7 +338,7 @@ const ke = ({
345
338
  }
346
339
  ),
347
340
  !v && R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
348
- ie,
341
+ le,
349
342
  {
350
343
  result: y.results,
351
344
  variant: "embed",
@@ -376,7 +369,7 @@ const ke = ({
376
369
  color: o,
377
370
  fontSize: C ? x ? "0.75rem" : "0.875rem" : x ? "1rem" : "1.125rem",
378
371
  fontWeight: 700,
379
- fontFamily: l.primary,
372
+ fontFamily: i.primary,
380
373
  textTransform: "uppercase",
381
374
  letterSpacing: "0.5px",
382
375
  minWidth: C ? void 0 : x ? "200px" : "250px",
@@ -441,7 +434,7 @@ const ke = ({
441
434
  color: a,
442
435
  fontSize: x ? "0.75rem" : "0.875rem",
443
436
  fontWeight: 700,
444
- fontFamily: l.primary,
437
+ fontFamily: i.primary,
445
438
  textTransform: "uppercase",
446
439
  zIndex: 1,
447
440
  "&:hover": {
@@ -477,7 +470,7 @@ const ke = ({
477
470
  {
478
471
  level: "body-md",
479
472
  sx: {
480
- fontFamily: l.primary,
473
+ fontFamily: i.primary,
481
474
  fontWeight: 400,
482
475
  fontSize: x ? "0.875rem" : "1rem",
483
476
  color: a,
@@ -530,7 +523,7 @@ const ke = ({
530
523
  }
531
524
  ),
532
525
  R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
533
- ie,
526
+ le,
534
527
  {
535
528
  result: y.results,
536
529
  variant: "standard",
@@ -557,7 +550,7 @@ const ke = ({
557
550
  {
558
551
  level: "body-sm",
559
552
  sx: {
560
- fontFamily: l.secondary,
553
+ fontFamily: i.secondary,
561
554
  fontWeight: 400,
562
555
  fontSize: x ? "0.625rem" : "0.75rem",
563
556
  color: a,
@@ -623,7 +616,7 @@ const ke = ({
623
616
  {
624
617
  level: "body-sm",
625
618
  sx: {
626
- fontFamily: l.secondary,
619
+ fontFamily: i.secondary,
627
620
  fontWeight: 400,
628
621
  fontSize: x ? "0.625rem" : "0.75rem",
629
622
  color: a,
@@ -647,15 +640,15 @@ const ke = ({
647
640
  defaultImagePlaceholderUrl: n
648
641
  }) => {
649
642
  var m, O;
650
- const { t: g } = se(), o = J(), u = le(), i = Te() === "dark", r = pe(
643
+ const { t: g } = se(), o = J(), u = ie(), l = Te() === "dark", r = fe(
651
644
  {
652
645
  images: e.images,
653
646
  imagePlaceholder: n || ""
654
647
  },
655
- fe.STANDARD
656
- ), s = (m = e.branding) == null ? void 0 : m.colors, k = (s == null ? void 0 : s.primary_color) || u.palette.primary.plainColor, z = (s == null ? void 0 : s.secondary_color) || u.palette.danger.plainColor, x = (s == null ? void 0 : s.border_color) || null, b = (s == null ? void 0 : s.background_color) || u.surfaceVariant || "", p = (O = e.branding) == null ? void 0 : O.images, l = o ? (p == null ? void 0 : p.mobile_logo) || (p == null ? void 0 : p.main_logo) || "" : (p == null ? void 0 : p.main_logo) || "";
648
+ pe.STANDARD
649
+ ), s = (m = e.branding) == null ? void 0 : m.colors, k = (s == null ? void 0 : s.primary_color) || u.palette.primary.plainColor, z = (s == null ? void 0 : s.secondary_color) || u.palette.danger.plainColor, x = (s == null ? void 0 : s.border_color) || null, b = (s == null ? void 0 : s.background_color) || u.surfaceVariant || "", p = (O = e.branding) == null ? void 0 : O.images, i = o ? (p == null ? void 0 : p.mobile_logo) || (p == null ? void 0 : p.main_logo) || "" : (p == null ? void 0 : p.main_logo) || "";
657
650
  return /* @__PURE__ */ t(ke, { brandingBorderColor: x, children: /* @__PURE__ */ t(
658
- Ee,
651
+ $e,
659
652
  {
660
653
  entity: {
661
654
  ...e,
@@ -667,7 +660,7 @@ const ke = ({
667
660
  finalImage: r,
668
661
  imagePosition: a,
669
662
  children: /* @__PURE__ */ t(
670
- Ne,
663
+ Ve,
671
664
  {
672
665
  infoPage: e,
673
666
  enableReset: c,
@@ -679,15 +672,15 @@ const ke = ({
679
672
  backgroundColor: b,
680
673
  dangerColor: u.palette.danger.plainColor,
681
674
  shimmerColor: k,
682
- brandingLogo: l,
683
- isDark: i,
675
+ brandingLogo: i,
676
+ isDark: l,
684
677
  showTitleBlock: !1,
685
678
  variant: "standard"
686
679
  }
687
680
  )
688
681
  }
689
682
  ) });
690
- }, Ve = ({
683
+ }, Le = ({
691
684
  infoPage: e,
692
685
  enableReset: c = !1,
693
686
  contentColor: a,
@@ -695,7 +688,7 @@ const ke = ({
695
688
  onPrimaryColor: g,
696
689
  borderColor: o,
697
690
  backgroundColor: u,
698
- dangerColor: i,
691
+ dangerColor: l,
699
692
  cardBaseColor: r,
700
693
  shimmerColor: s,
701
694
  brandingLogo: k = "",
@@ -705,7 +698,7 @@ const ke = ({
705
698
  compactCards: p = !1
706
699
  }) => {
707
700
  var Fe, We, _e, Oe;
708
- const l = J(), m = le(), O = ve(), v = we(), h = xe(), C = Se(), E = r || u, V = s || n, f = b === "standard", L = b === "overlay", H = f ? Ce(u) : "", _ = H ? H.replace(/[^\d,]/g, "") : "", D = p ? l ? 80 : 110 : l ? 100 : 140, T = p ? l ? 104 : 143 : l ? 130 : 180, M = p ? l ? 90 : 130 : l ? 120 : 180, y = p ? l ? "16px" : "32px" : l ? "24px" : "48px", X = p ? l ? "12px" : "32px" : l ? "16px" : "48px", F = Ae(n, z), R = JSON.parse(e.body), $ = R.segments || [], W = e.labels || {}, P = R.mode || ((Fe = R.config) == null ? void 0 : Fe.mode) || "fair", U = ((We = R.config) == null ? void 0 : We.pace) || "normal", j = ((_e = R.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = R.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
701
+ const i = J(), m = ie(), O = ve(), v = we(), h = xe(), C = Se(), G = r || u, L = s || n, f = b === "standard", N = b === "overlay", H = f ? Ce(u) : "", _ = H ? H.replace(/[^\d,]/g, "") : "", D = p ? i ? 80 : 110 : i ? 100 : 140, T = p ? i ? 104 : 143 : i ? 130 : 180, M = p ? i ? 90 : 130 : i ? 120 : 180, y = p ? i ? "16px" : "32px" : i ? "24px" : "48px", X = p ? i ? "12px" : "32px" : i ? "16px" : "48px", F = He(n, z), R = JSON.parse(e.body), $ = R.segments || [], W = e.labels || {}, P = R.mode || ((Fe = R.config) == null ? void 0 : Fe.mode) || "fair", U = ((We = R.config) == null ? void 0 : We.pace) || "normal", j = ((_e = R.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = R.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
709
702
  var K;
710
703
  return (K = ae.images) == null ? void 0 : K.idle;
711
704
  }), {
@@ -713,9 +706,9 @@ const ke = ({
713
706
  displaySegments: ee,
714
707
  revealResult: te,
715
708
  showResultScreen: Y,
716
- showInlineResult: G,
709
+ showInlineResult: E,
717
710
  showLoseAnimation: q,
718
- hasEntered: N,
711
+ hasEntered: V,
719
712
  flippedCards: Q,
720
713
  crossfadedCards: oe,
721
714
  revealedOtherCards: ce,
@@ -724,9 +717,9 @@ const ke = ({
724
717
  loseAnimationDuration: Ue,
725
718
  handlePick: Re,
726
719
  handleReset: ge
727
- } = bt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
720
+ } = gt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
728
721
  A && /* @__PURE__ */ t(
729
- Ie,
722
+ Me,
730
723
  {
731
724
  primaryColor: n,
732
725
  isDark: z,
@@ -734,7 +727,7 @@ const ke = ({
734
727
  }
735
728
  ),
736
729
  Y && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
737
- ie,
730
+ le,
738
731
  {
739
732
  result: S.results,
740
733
  variant: b || "embed",
@@ -768,7 +761,7 @@ const ke = ({
768
761
  sx: {
769
762
  fontFamily: v.primary,
770
763
  fontWeight: 700,
771
- fontSize: l ? "1.5rem" : "2rem",
764
+ fontSize: i ? "1.5rem" : "2rem",
772
765
  color: a,
773
766
  lineHeight: 1.2,
774
767
  textShadow: A ? `0 0 20px ${n}20` : "none"
@@ -784,7 +777,7 @@ const ke = ({
784
777
  alignItems: "center",
785
778
  gap: h.sm,
786
779
  mt: h.xs,
787
- width: l ? "60%" : "40%"
780
+ width: i ? "60%" : "40%"
788
781
  },
789
782
  children: [
790
783
  /* @__PURE__ */ t(
@@ -829,7 +822,7 @@ const ke = ({
829
822
  sx: {
830
823
  fontFamily: v.secondary,
831
824
  fontWeight: 400,
832
- fontSize: l ? "0.875rem" : "1rem",
825
+ fontSize: i ? "0.875rem" : "1rem",
833
826
  color: a,
834
827
  opacity: 0.8
835
828
  },
@@ -847,22 +840,22 @@ const ke = ({
847
840
  sx: {
848
841
  fontFamily: v.primary,
849
842
  fontWeight: 400,
850
- fontSize: l ? "0.875rem" : "1rem",
843
+ fontSize: i ? "0.875rem" : "1rem",
851
844
  color: a,
852
845
  textAlign: "center",
853
- mb: L ? 0 : h.md
846
+ mb: N ? 0 : h.md
854
847
  },
855
848
  children: W.welcome
856
849
  }
857
850
  ),
858
- W.instructions && !G && /* @__PURE__ */ t(
851
+ W.instructions && !E && /* @__PURE__ */ t(
859
852
  B,
860
853
  {
861
854
  level: f ? "body-sm" : "body-md",
862
855
  sx: {
863
856
  fontFamily: v.secondary,
864
857
  fontWeight: 400,
865
- fontSize: l ? "0.875rem" : "1rem",
858
+ fontSize: i ? "0.875rem" : "1rem",
866
859
  color: a,
867
860
  textAlign: "center",
868
861
  opacity: 0.7,
@@ -879,7 +872,7 @@ const ke = ({
879
872
  display: "flex",
880
873
  alignItems: "center",
881
874
  gap: h.sm,
882
- width: l ? "40%" : "25%",
875
+ width: i ? "40%" : "25%",
883
876
  my: h.xs
884
877
  },
885
878
  children: [
@@ -942,12 +935,12 @@ const ke = ({
942
935
  justifyContent: "center",
943
936
  alignItems: "center",
944
937
  // Staggered deal-in entrance
945
- opacity: N ? 1 : 0,
946
- transform: N ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
938
+ opacity: V ? 1 : 0,
939
+ transform: V ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
947
940
  transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${K * 100}ms`
948
941
  },
949
942
  children: I ? /* @__PURE__ */ t(
950
- vt,
943
+ yt,
951
944
  {
952
945
  segment: ae,
953
946
  index: K,
@@ -957,16 +950,16 @@ const ke = ({
957
950
  isOtherRevealed: me,
958
951
  shouldDim: Ye,
959
952
  isRevealed: de,
960
- hasEntered: N,
953
+ hasEntered: V,
961
954
  objectSize: M,
962
955
  crossfadeDuration: Pe,
963
956
  isStandard: f,
964
957
  primaryColor: n,
965
- dangerColor: i,
958
+ dangerColor: l,
966
959
  onPick: () => Re(K, !0)
967
960
  }
968
961
  ) : /* @__PURE__ */ t(
969
- St,
962
+ bt,
970
963
  {
971
964
  segment: ae,
972
965
  index: K,
@@ -976,16 +969,16 @@ const ke = ({
976
969
  shouldDim: je,
977
970
  isRevealed: de,
978
971
  showLoseAnimation: q,
979
- hasEntered: N,
972
+ hasEntered: V,
980
973
  cardWidth: D,
981
974
  cardHeight: T,
982
975
  flipDuration: Xe,
983
976
  loseAnimationDuration: Ue,
984
- cardBaseColor: E,
985
- shimmerColor: V,
977
+ cardBaseColor: G,
978
+ shimmerColor: L,
986
979
  primaryColor: n,
987
980
  contentColor: a,
988
- dangerColor: i,
981
+ dangerColor: l,
989
982
  borderColor: o,
990
983
  brandingLogo: k,
991
984
  compactCards: p,
@@ -998,8 +991,8 @@ const ke = ({
998
991
  })
999
992
  }
1000
993
  ),
1001
- !f && G && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
1002
- ie,
994
+ !f && E && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
995
+ le,
1003
996
  {
1004
997
  result: S.results,
1005
998
  variant: "embed",
@@ -1011,7 +1004,7 @@ const ke = ({
1011
1004
  showResetButton: !1
1012
1005
  }
1013
1006
  ),
1014
- !f && c && G && /* @__PURE__ */ t(
1007
+ !f && c && E && /* @__PURE__ */ t(
1015
1008
  he,
1016
1009
  {
1017
1010
  onClick: ge,
@@ -1022,12 +1015,12 @@ const ke = ({
1022
1015
  py: h.sm,
1023
1016
  fontFamily: v.secondary,
1024
1017
  fontWeight: 600,
1025
- fontSize: l ? "0.875rem" : "1rem",
1018
+ fontSize: i ? "0.875rem" : "1rem",
1026
1019
  textTransform: "uppercase",
1027
1020
  borderRadius: O.md,
1028
1021
  borderColor: o || m.outlineEnabledBorder,
1029
1022
  color: a,
1030
- minWidth: l ? "150px" : "180px",
1023
+ minWidth: i ? "150px" : "180px",
1031
1024
  "&:hover": {
1032
1025
  borderColor: n,
1033
1026
  bgcolor: "transparent",
@@ -1037,7 +1030,7 @@ const ke = ({
1037
1030
  children: "Reset Game"
1038
1031
  }
1039
1032
  ),
1040
- f && c && G && /* @__PURE__ */ t(
1033
+ f && c && E && /* @__PURE__ */ t(
1041
1034
  he,
1042
1035
  {
1043
1036
  onClick: ge,
@@ -1048,7 +1041,7 @@ const ke = ({
1048
1041
  px: h.lg,
1049
1042
  borderColor: m.outlineEnabledBorder,
1050
1043
  color: a,
1051
- fontSize: l ? "0.75rem" : "0.875rem",
1044
+ fontSize: i ? "0.75rem" : "0.875rem",
1052
1045
  fontWeight: 700,
1053
1046
  fontFamily: v.primary,
1054
1047
  textTransform: "uppercase",
@@ -1085,7 +1078,7 @@ const ke = ({
1085
1078
  sx: {
1086
1079
  fontFamily: v.primary,
1087
1080
  fontWeight: 400,
1088
- fontSize: l ? "0.875rem" : "1rem",
1081
+ fontSize: i ? "0.875rem" : "1rem",
1089
1082
  color: a,
1090
1083
  textAlign: "center",
1091
1084
  px: h.md
@@ -1109,7 +1102,7 @@ const ke = ({
1109
1102
  sx: {
1110
1103
  display: "flex",
1111
1104
  flexDirection: "column",
1112
- gap: l ? h.lg : h.md
1105
+ gap: i ? h.lg : h.md
1113
1106
  },
1114
1107
  children: [
1115
1108
  /* @__PURE__ */ t(
@@ -1132,8 +1125,8 @@ const ke = ({
1132
1125
  children: ze()
1133
1126
  }
1134
1127
  ),
1135
- G && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
1136
- ie,
1128
+ E && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
1129
+ le,
1137
1130
  {
1138
1131
  result: S.results,
1139
1132
  variant: "standard",
@@ -1162,7 +1155,7 @@ const ke = ({
1162
1155
  sx: {
1163
1156
  fontFamily: v.secondary,
1164
1157
  fontWeight: 400,
1165
- fontSize: l ? "0.625rem" : "0.75rem",
1158
+ fontSize: i ? "0.625rem" : "0.75rem",
1166
1159
  color: a,
1167
1160
  opacity: 0.7,
1168
1161
  textAlign: "center",
@@ -1218,16 +1211,16 @@ const ke = ({
1218
1211
  imagePosition: a = "left",
1219
1212
  defaultImagePlaceholderUrl: n
1220
1213
  }) => {
1221
- var l, m, O;
1222
- const { t: g } = se(), o = J(), u = le(), i = Te() === "dark", r = pe(
1214
+ var i, m, O;
1215
+ const { t: g } = se(), o = J(), u = ie(), l = Te() === "dark", r = fe(
1223
1216
  {
1224
1217
  images: e.images,
1225
1218
  imagePlaceholder: n || ""
1226
1219
  },
1227
- fe.STANDARD
1228
- ), s = (l = e.branding) == null ? void 0 : l.colors, k = (s == null ? void 0 : s.primary_color) || u.palette.primary.plainColor, z = (s == null ? void 0 : s.border_color) || null, x = (s == null ? void 0 : s.background_color) || u.surfaceVariant || "", b = (m = e.branding) == null ? void 0 : m.images, p = o ? (b == null ? void 0 : b.mobile_logo) || (b == null ? void 0 : b.main_logo) || "" : (b == null ? void 0 : b.main_logo) || "";
1220
+ pe.STANDARD
1221
+ ), s = (i = e.branding) == null ? void 0 : i.colors, k = (s == null ? void 0 : s.primary_color) || u.palette.primary.plainColor, z = (s == null ? void 0 : s.border_color) || null, x = (s == null ? void 0 : s.background_color) || u.surfaceVariant || "", b = (m = e.branding) == null ? void 0 : m.images, p = o ? (b == null ? void 0 : b.mobile_logo) || (b == null ? void 0 : b.main_logo) || "" : (b == null ? void 0 : b.main_logo) || "";
1229
1222
  return /* @__PURE__ */ t(ke, { brandingBorderColor: z, children: /* @__PURE__ */ t(
1230
- Ee,
1223
+ $e,
1231
1224
  {
1232
1225
  entity: {
1233
1226
  ...e,
@@ -1241,7 +1234,7 @@ const ke = ({
1241
1234
  finalImage: r,
1242
1235
  imagePosition: a,
1243
1236
  children: /* @__PURE__ */ t(
1244
- Ve,
1237
+ Le,
1245
1238
  {
1246
1239
  infoPage: e,
1247
1240
  enableReset: c,
@@ -1254,7 +1247,7 @@ const ke = ({
1254
1247
  cardBaseColor: x,
1255
1248
  shimmerColor: k,
1256
1249
  brandingLogo: p,
1257
- isDark: i,
1250
+ isDark: l,
1258
1251
  showTitleBlock: !1,
1259
1252
  variant: "standard",
1260
1253
  compactCards: !0
@@ -1262,7 +1255,7 @@ const ke = ({
1262
1255
  )
1263
1256
  }
1264
1257
  ) });
1265
- }, Le = (e) => ({
1258
+ }, Ne = (e) => ({
1266
1259
  contentContainerWithBackdrop: {
1267
1260
  borderRadius: e.mdBorderRadius,
1268
1261
  display: "flex",
@@ -1310,19 +1303,19 @@ const ke = ({
1310
1303
  enableReset: c = !1,
1311
1304
  defaultImagePlaceholderUrl: a
1312
1305
  }) => {
1313
- var f, L, H, _, D, T, M, y, X, F, R, $, W, P, U, j, A, I, S;
1314
- const { t: n } = se(), g = J(), o = $e(), u = xe(), i = ((f = e.branding) == null ? void 0 : f.colors) || null, r = (L = e.branding) == null ? void 0 : L.images, s = g ? (r == null ? void 0 : r.mobile_background_image) || (r == null ? void 0 : r.background_image) || "" : (r == null ? void 0 : r.background_image) || "", k = g ? (r == null ? void 0 : r.mobile_logo) || (r == null ? void 0 : r.main_logo) || "" : (r == null ? void 0 : r.main_logo) || "", z = a || (g ? He : Me), x = s || pe(
1306
+ var f, N, H, _, D, T, M, y, X, F, R, $, W, P, U, j, A, I, S;
1307
+ const { t: n } = se(), g = J(), o = Ae(), u = xe(), l = ((f = e.branding) == null ? void 0 : f.colors) || null, r = (N = e.branding) == null ? void 0 : N.images, s = g ? (r == null ? void 0 : r.mobile_background_image) || (r == null ? void 0 : r.background_image) || "" : (r == null ? void 0 : r.background_image) || "", k = g ? (r == null ? void 0 : r.mobile_logo) || (r == null ? void 0 : r.main_logo) || "" : (r == null ? void 0 : r.main_logo) || "", z = a || (g ? Ge : Ee), x = s || fe(
1315
1308
  {
1316
1309
  images: e.images,
1317
1310
  imagePlaceholder: z
1318
1311
  },
1319
- fe.OVERLAY
1320
- ), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((T = (D = (_ = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : _.palette) == null ? void 0 : D.primary) == null ? void 0 : T.plainColor), m = (F = (X = (y = (M = o.colorSchemes) == null ? void 0 : M.light) == null ? void 0 : y.palette) == null ? void 0 : X.primary) == null ? void 0 : F.onPrimary, O = (i == null ? void 0 : i.background_color) || (($ = (R = o.colorSchemes) == null ? void 0 : R.dark) == null ? void 0 : $.surfaceVariant), v = (j = (U = (P = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : P.palette) == null ? void 0 : U.danger) == null ? void 0 : j.plainColor, h = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, E = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, V = Le({
1312
+ pe.OVERLAY
1313
+ ), b = o.colorSchemes.dark.textColor, p = (l == null ? void 0 : l.content_color) || b, i = (l == null ? void 0 : l.primary_color) || ((T = (D = (_ = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : _.palette) == null ? void 0 : D.primary) == null ? void 0 : T.plainColor), m = (F = (X = (y = (M = o.colorSchemes) == null ? void 0 : M.light) == null ? void 0 : y.palette) == null ? void 0 : X.primary) == null ? void 0 : F.onPrimary, O = (l == null ? void 0 : l.background_color) || (($ = (R = o.colorSchemes) == null ? void 0 : R.dark) == null ? void 0 : $.surfaceVariant), v = (j = (U = (P = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : P.palette) == null ? void 0 : U.danger) == null ? void 0 : j.plainColor, h = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, G = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, L = Ne({
1321
1314
  spacingScale: u,
1322
1315
  mdBorderRadius: C,
1323
1316
  contentBgColor: O,
1324
- buttonRadius: E,
1325
- primaryColor: l,
1317
+ buttonRadius: G,
1318
+ primaryColor: i,
1326
1319
  onPrimaryColor: m,
1327
1320
  fontFamilyPrimary: h,
1328
1321
  darkTextColor: b,
@@ -1330,7 +1323,7 @@ const ke = ({
1330
1323
  textColor: p
1331
1324
  });
1332
1325
  return /* @__PURE__ */ t(
1333
- Ge,
1326
+ Ie,
1334
1327
  {
1335
1328
  entity: {
1336
1329
  ...e,
@@ -1342,18 +1335,18 @@ const ke = ({
1342
1335
  count: ((S = JSON.parse(e.body).segments) == null ? void 0 : S.length) || 0
1343
1336
  }),
1344
1337
  finalImage: x,
1345
- children: /* @__PURE__ */ t(d, { sx: V.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1346
- Ve,
1338
+ children: /* @__PURE__ */ t(d, { sx: L.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1339
+ Le,
1347
1340
  {
1348
1341
  infoPage: e,
1349
1342
  enableReset: c,
1350
1343
  contentColor: p,
1351
- primaryColor: l,
1344
+ primaryColor: i,
1352
1345
  onPrimaryColor: m || "#FFFFFF",
1353
1346
  backgroundColor: O,
1354
1347
  dangerColor: v,
1355
1348
  cardBaseColor: O,
1356
- shimmerColor: l,
1349
+ shimmerColor: i,
1357
1350
  brandingLogo: k,
1358
1351
  isDark: !0,
1359
1352
  showTitleBlock: !1,
@@ -1364,12 +1357,12 @@ const ke = ({
1364
1357
  }
1365
1358
  );
1366
1359
  }, _t = (e) => {
1367
- const c = we().secondary, a = et(), n = e.isSplitVariant && a, g = J(), o = Ke(e.primaryUrl, e.secondaryUrl, "logo");
1360
+ const c = we().secondary, a = qe(), n = e.isSplitVariant && a, g = J(), o = Qe(e.primaryUrl, e.secondaryUrl, "logo");
1368
1361
  if (!e.brandingLogo)
1369
1362
  return null;
1370
1363
  const u = () => {
1371
1364
  o && window.open(o, "_blank", "noopener,noreferrer");
1372
- }, i = /* @__PURE__ */ t(
1365
+ }, l = /* @__PURE__ */ t(
1373
1366
  "img",
1374
1367
  {
1375
1368
  src: e.brandingLogo,
@@ -1391,7 +1384,7 @@ const ke = ({
1391
1384
  textDecoration: "none",
1392
1385
  display: "inline-flex"
1393
1386
  },
1394
- children: i
1387
+ children: l
1395
1388
  }
1396
1389
  ) : /* @__PURE__ */ t(
1397
1390
  d,
@@ -1401,9 +1394,9 @@ const ke = ({
1401
1394
  cursor: "pointer",
1402
1395
  display: "inline-flex"
1403
1396
  },
1404
- children: i
1397
+ children: l
1405
1398
  }
1406
- ) : i;
1399
+ ) : l;
1407
1400
  return e.isCentered || n || g ? /* @__PURE__ */ w(
1408
1401
  d,
1409
1402
  {
@@ -1473,19 +1466,19 @@ const ke = ({
1473
1466
  enableReset: c = !1,
1474
1467
  defaultImagePlaceholderUrl: a
1475
1468
  }) => {
1476
- var L, H, _, D, T, M, y, X, F, R, $, W, P, U, j, A, I, S, ee, te, Y, G, q, N, Q, oe, ce;
1477
- const { t: n } = se(), g = J(), o = $e(), u = xe(), i = ((L = e.branding) == null ? void 0 : L.colors) || null, r = (H = e.branding) == null ? void 0 : H.images, s = g ? (r == null ? void 0 : r.mobile_background_image) || (r == null ? void 0 : r.background_image) || "" : (r == null ? void 0 : r.background_image) || "", k = g ? (r == null ? void 0 : r.mobile_logo) || (r == null ? void 0 : r.main_logo) || "" : (r == null ? void 0 : r.main_logo) || "", z = a || (g ? He : Me), x = s || pe(
1469
+ var N, H, _, D, T, M, y, X, F, R, $, W, P, U, j, A, I, S, ee, te, Y, E, q, V, Q, oe, ce;
1470
+ const { t: n } = se(), g = J(), o = Ae(), u = xe(), l = ((N = e.branding) == null ? void 0 : N.colors) || null, r = (H = e.branding) == null ? void 0 : H.images, s = g ? (r == null ? void 0 : r.mobile_background_image) || (r == null ? void 0 : r.background_image) || "" : (r == null ? void 0 : r.background_image) || "", k = g ? (r == null ? void 0 : r.mobile_logo) || (r == null ? void 0 : r.main_logo) || "" : (r == null ? void 0 : r.main_logo) || "", z = a || (g ? Ge : Ee), x = s || fe(
1478
1471
  {
1479
1472
  images: e.images,
1480
1473
  imagePlaceholder: z
1481
1474
  },
1482
- fe.OVERLAY
1483
- ), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((M = (T = (D = (_ = o.colorSchemes) == null ? void 0 : _.light) == null ? void 0 : D.palette) == null ? void 0 : T.primary) == null ? void 0 : M.plainColor), m = (i == null ? void 0 : i.secondary_color) || ((R = (F = (X = (y = o.colorSchemes) == null ? void 0 : y.light) == null ? void 0 : X.palette) == null ? void 0 : F.danger) == null ? void 0 : R.plainColor), O = (U = (P = (W = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : W.palette) == null ? void 0 : P.primary) == null ? void 0 : U.onPrimary, v = (i == null ? void 0 : i.background_color) || ((A = (j = o.colorSchemes) == null ? void 0 : j.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (S = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : S.palette) == null ? void 0 : ee.danger) == null ? void 0 : te.plainColor, C = o.customFontFamily.dark.primary, E = o.customRadius.dark.md, V = (G = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : G.xl, f = Le({
1475
+ pe.OVERLAY
1476
+ ), b = o.colorSchemes.dark.textColor, p = (l == null ? void 0 : l.content_color) || b, i = (l == null ? void 0 : l.primary_color) || ((M = (T = (D = (_ = o.colorSchemes) == null ? void 0 : _.light) == null ? void 0 : D.palette) == null ? void 0 : T.primary) == null ? void 0 : M.plainColor), m = (l == null ? void 0 : l.secondary_color) || ((R = (F = (X = (y = o.colorSchemes) == null ? void 0 : y.light) == null ? void 0 : X.palette) == null ? void 0 : F.danger) == null ? void 0 : R.plainColor), O = (U = (P = (W = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : W.palette) == null ? void 0 : P.primary) == null ? void 0 : U.onPrimary, v = (l == null ? void 0 : l.background_color) || ((A = (j = o.colorSchemes) == null ? void 0 : j.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (S = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : S.palette) == null ? void 0 : ee.danger) == null ? void 0 : te.plainColor, C = o.customFontFamily.dark.primary, G = o.customRadius.dark.md, L = (E = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : E.xl, f = Ne({
1484
1477
  spacingScale: u,
1485
- mdBorderRadius: E,
1478
+ mdBorderRadius: G,
1486
1479
  contentBgColor: v,
1487
- buttonRadius: V,
1488
- primaryColor: l,
1480
+ buttonRadius: L,
1481
+ primaryColor: i,
1489
1482
  onPrimaryColor: O,
1490
1483
  fontFamilyPrimary: C,
1491
1484
  darkTextColor: b,
@@ -1493,7 +1486,7 @@ const ke = ({
1493
1486
  textColor: p
1494
1487
  });
1495
1488
  return /* @__PURE__ */ w(
1496
- Ge,
1489
+ Ie,
1497
1490
  {
1498
1491
  entity: {
1499
1492
  ...e,
@@ -1505,17 +1498,17 @@ const ke = ({
1505
1498
  finalImage: x,
1506
1499
  children: [
1507
1500
  /* @__PURE__ */ t(d, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1508
- Ne,
1501
+ Ve,
1509
1502
  {
1510
1503
  infoPage: e,
1511
1504
  enableReset: c,
1512
1505
  contentColor: p,
1513
- primaryColor: l,
1506
+ primaryColor: i,
1514
1507
  secondaryColor: m,
1515
1508
  onPrimaryColor: O || "#FFFFFF",
1516
1509
  backgroundColor: v,
1517
1510
  dangerColor: h,
1518
- shimmerColor: l,
1511
+ shimmerColor: i,
1519
1512
  brandingLogo: k,
1520
1513
  isDark: !0,
1521
1514
  showTitleBlock: !1,
@@ -1528,7 +1521,7 @@ const ke = ({
1528
1521
  brandingLogo: k,
1529
1522
  textColor: b,
1530
1523
  label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
1531
- primaryUrl: (Q = (N = e.branding) == null ? void 0 : N.urls) == null ? void 0 : Q.primary_url,
1524
+ primaryUrl: (Q = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Q.primary_url,
1532
1525
  secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
1533
1526
  }
1534
1527
  )
@@ -1536,21 +1529,21 @@ const ke = ({
1536
1529
  }
1537
1530
  );
1538
1531
  }, Dt = (e) => {
1539
- const { infoPage: c } = ut(e.entityId, "chance-game", e.sdk), a = () => {
1532
+ const { infoPage: c } = Ze(e.entityId, "chance-game", e.sdk), a = () => {
1540
1533
  if (c && c.id !== "not-found") {
1541
- const o = Object.keys(Je);
1534
+ const o = Object.keys(ot);
1542
1535
  if (c.language && o.includes(c.language))
1543
1536
  return c.language;
1544
1537
  if (c.language)
1545
1538
  return "en";
1546
1539
  }
1547
1540
  return e.language || "en";
1548
- }, [n, g] = qe(!1);
1549
- if (Qe(() => {
1541
+ }, [n, g] = dt(!1);
1542
+ if (mt(() => {
1550
1543
  const o = a();
1551
- tt(o).then(() => g(!0));
1544
+ et(o).then(() => g(!0));
1552
1545
  }, [e.language, c]), !c || !n)
1553
- return /* @__PURE__ */ t(dt, { my: 20 });
1546
+ return /* @__PURE__ */ t(tt, { my: 20 });
1554
1547
  if (c.id === "not-found")
1555
1548
  return /* @__PURE__ */ t(Rt, { template: e.template });
1556
1549
  if (e.template === ue.STANDARD) {
@@ -1587,19 +1580,19 @@ const ke = ({
1587
1580
  }
1588
1581
  );
1589
1582
  }
1590
- return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(wt, { infoPage: c }) : /* @__PURE__ */ t(kt, { infoPage: c });
1583
+ return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(vt, { infoPage: c }) : /* @__PURE__ */ t(St, { infoPage: c });
1591
1584
  }, Bt = (e) => {
1592
- const [c, a] = Z.useState(!1), n = ot(e.language), g = Z.useRef(
1585
+ const [c, a] = Z.useState(!1), n = nt(e.language), g = Z.useRef(
1593
1586
  `chance-game-shadow-root-${Math.random().toString(36).substring(2, 11)}`
1594
- ), o = Z.useRef(null), u = Z.useRef(null), i = Z.useRef(null), [r, s] = Z.useState(null);
1587
+ ), o = Z.useRef(null), u = Z.useRef(null), l = Z.useRef(null), [r, s] = Z.useState(null);
1595
1588
  Z.useEffect(() => {
1596
1589
  if (!o.current) return;
1597
- o.current.shadowRoot ? (u.current = o.current.shadowRoot, i.current = u.current.getElementById(
1590
+ o.current.shadowRoot ? (u.current = o.current.shadowRoot, l.current = u.current.getElementById(
1598
1591
  g.current
1599
- ), i.current || (i.current = document.createElement("div"), i.current.id = g.current, u.current.appendChild(i.current))) : (u.current = o.current.attachShadow({ mode: "open" }), i.current = document.createElement("div"), i.current.id = g.current, u.current.appendChild(i.current)), nt(i.current, n);
1600
- const p = ct("chance-game", n);
1592
+ ), l.current || (l.current = document.createElement("div"), l.current.id = g.current, u.current.appendChild(l.current))) : (u.current = o.current.attachShadow({ mode: "open" }), l.current = document.createElement("div"), l.current.id = g.current, u.current.appendChild(l.current)), rt(l.current, n);
1593
+ const p = lt("chance-game", n);
1601
1594
  return s(
1602
- (l) => (l == null ? void 0 : l.key) === p ? l : rt(
1595
+ (i) => (i == null ? void 0 : i.key) === p ? i : it(
1603
1596
  "chance-game",
1604
1597
  u.current,
1605
1598
  n
@@ -1611,21 +1604,21 @@ const ke = ({
1611
1604
  const k = e.themeOptions, z = {
1612
1605
  ...k,
1613
1606
  mode: e.template === ue.OVERLAY ? "dark" : k == null ? void 0 : k.mode
1614
- }, x = /* @__PURE__ */ t(d, { ref: o, lang: e.language || "en" }), b = c && o.current && i.current && r ? mt(
1607
+ }, x = /* @__PURE__ */ t(d, { ref: o, lang: e.language || "en" }), b = c && o.current && l.current && r ? kt(
1615
1608
  // Keyed on the cache, not on `direction`: it must change in the same
1616
1609
  // render that adopts the new cache, or CssVarsProvider writes its CSS
1617
1610
  // variables into the outgoing cache and never repeats.
1618
- /* @__PURE__ */ t(it, { value: r, children: /* @__PURE__ */ t(lt, { containerRef: o, children: /* @__PURE__ */ t(
1619
- at,
1611
+ /* @__PURE__ */ t(wt, { value: r, children: /* @__PURE__ */ t(at, { containerRef: o, children: /* @__PURE__ */ t(
1612
+ st,
1620
1613
  {
1621
1614
  customTheme: z,
1622
1615
  mode: z == null ? void 0 : z.mode,
1623
- shadowRootElement: i.current,
1616
+ shadowRootElement: l.current,
1624
1617
  direction: n,
1625
1618
  children: /* @__PURE__ */ t(
1626
- st,
1619
+ ct,
1627
1620
  {
1628
- shadowRootElement: i.current,
1621
+ shadowRootElement: l.current,
1629
1622
  leadPhoneCountryCode: null,
1630
1623
  language: null,
1631
1624
  optionsLayout: null,
@@ -1635,13 +1628,13 @@ const ke = ({
1635
1628
  )
1636
1629
  }
1637
1630
  ) }) }, r.key),
1638
- i.current
1631
+ l.current
1639
1632
  ) : null;
1640
1633
  return /* @__PURE__ */ w(re, { children: [
1641
1634
  x,
1642
1635
  b
1643
1636
  ] });
1644
- }, Ct = (e) => /* @__PURE__ */ t(Bt, { ...e, children: /* @__PURE__ */ t(Dt, { ...e }) }), Yt = Ct;
1637
+ }, Ct = (e) => /* @__PURE__ */ t(Bt, { ...e, children: /* @__PURE__ */ t(Dt, { ...e }) }), Vt = Ct;
1645
1638
  export {
1646
- Yt as ChanceGame
1639
+ Vt as ChanceGame
1647
1640
  };