fansunited-frontend-components 0.0.95 → 0.0.96

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 (104) hide show
  1. package/Betslip.d.ts +1 -2
  2. package/Betslip.d.ts.map +1 -1
  3. package/Betslip.js +4 -3
  4. package/ChanceGame.js +165 -163
  5. package/ChanceGameComponent.d.ts +1 -1
  6. package/ChanceGameComponent.d.ts.map +1 -1
  7. package/ClassicQuizPlay.d.ts +1 -1
  8. package/ClassicQuizPlay.d.ts.map +1 -1
  9. package/ClassicQuizPlay.js +4 -3
  10. package/CollectLead.d.ts +1 -1
  11. package/CollectLead.d.ts.map +1 -1
  12. package/CollectLead.js +37 -36
  13. package/CompetitionStatistics.d.ts +1 -2
  14. package/CompetitionStatistics.d.ts.map +1 -1
  15. package/CompetitionStatistics.js +458 -451
  16. package/CompetitorCard.d.ts +1 -2
  17. package/CompetitorCard.d.ts.map +1 -1
  18. package/CompetitorCard.js +1235 -1226
  19. package/Discussion.d.ts +1 -1
  20. package/Discussion.d.ts.map +1 -1
  21. package/Discussion.js +4 -3
  22. package/EitherOrPlay.d.ts +1 -1
  23. package/EitherOrPlay.d.ts.map +1 -1
  24. package/EitherOrPlay.js +4 -3
  25. package/EventCard.d.ts +1 -2
  26. package/EventCard.d.ts.map +1 -1
  27. package/EventCard.js +1249 -1244
  28. package/EventGamePlay.d.ts +1 -1
  29. package/EventGamePlay.d.ts.map +1 -1
  30. package/EventGamePlay.js +4 -3
  31. package/Leaderboard.d.ts +1 -1
  32. package/Leaderboard.d.ts.map +1 -1
  33. package/Leaderboard.js +482 -449
  34. package/List.d.ts +1 -2
  35. package/List.d.ts.map +1 -1
  36. package/List.js +258 -254
  37. package/MatchQuizPlay.d.ts +1 -1
  38. package/MatchQuizPlay.d.ts.map +1 -1
  39. package/MatchQuizPlay.js +4 -3
  40. package/Odds.d.ts +1 -2
  41. package/Odds.d.ts.map +1 -1
  42. package/Odds.js +35 -34
  43. package/PersonalityQuizPlay.d.ts +1 -1
  44. package/PersonalityQuizPlay.d.ts.map +1 -1
  45. package/PersonalityQuizPlay.js +4 -3
  46. package/PickThePair.js +102 -100
  47. package/PickThePairComponent.d.ts +1 -1
  48. package/PickThePairComponent.d.ts.map +1 -1
  49. package/PlayerOfTheMatch.d.ts +1 -2
  50. package/PlayerOfTheMatch.d.ts.map +1 -1
  51. package/PlayerOfTheMatch.js +1096 -1085
  52. package/PollVote.d.ts +1 -1
  53. package/PollVote.d.ts.map +1 -1
  54. package/PollVote.js +4 -3
  55. package/Predictor.d.ts +1 -2
  56. package/Predictor.d.ts.map +1 -1
  57. package/Predictor.js +4553 -4525
  58. package/README.md +1 -1
  59. package/Standings.d.ts +1 -2
  60. package/Standings.d.ts.map +1 -1
  61. package/Standings.js +404 -394
  62. package/TopX.d.ts +1 -2
  63. package/TopX.d.ts.map +1 -1
  64. package/TopX.js +5296 -5286
  65. package/chunks/{ChanceGameEmbedVariant-C3NGwvTF.js → ChanceGameEmbedVariant-CVys-3Zh.js} +1 -1
  66. package/chunks/{OddsSkeleton-Bav8FHHN.js → OddsSkeleton-ClJE2xhR.js} +5 -5
  67. package/chunks/{OddsStrip-CviVfQI4.js → OddsStrip-BnSp5TXa.js} +3 -3
  68. package/chunks/{PickOneOfX-a6Dv0-rR.js → PickOneOfX-DaJtkbCw.js} +6 -6
  69. package/chunks/index-Aq5MbUB9.js +4 -0
  70. package/chunks/index-BBQm_8LD.js +4 -0
  71. package/chunks/index-BC_sWWgc.js +4 -0
  72. package/chunks/index-DXKDJ1Vp.js +4 -0
  73. package/chunks/index-DjT5NrbA.js +4 -0
  74. package/chunks/index-DvLRehH6.js +4 -0
  75. package/chunks/index-aIMaxR-p.js +4 -0
  76. package/chunks/{main-Dj4Manb5.js → main-52Wff7qC.js} +1763 -1757
  77. package/chunks/{main-dwV_55lz.js → main-65WcUqAl.js} +615 -615
  78. package/chunks/{main-gexg6lc-.js → main-B58mi9jx.js} +349 -334
  79. package/chunks/{main-Dys2_Jt2.js → main-BIdXUTZS.js} +842 -827
  80. package/chunks/{main-CFwRpvUi.js → main-DD-NEzC7.js} +818 -817
  81. package/chunks/{main-DjiQz1dv.js → main-DUnfJPzY.js} +311 -311
  82. package/chunks/{main-eAQMCxQ7.js → main-DpCBqqg_.js} +322 -321
  83. package/chunks/{main-D9tFZv2q.js → main-Drznt1ak.js} +283 -282
  84. package/chunks/withVersionStamp-B6nArAj4.js +16 -0
  85. package/index.d.ts.map +1 -1
  86. package/index.js +45 -50
  87. package/package.json +57 -49
  88. package/withVersionStamp.d.ts +4 -0
  89. package/withVersionStamp.d.ts.map +1 -0
  90. package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +0 -4
  91. package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +0 -4
  92. package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +0 -4
  93. package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +0 -4
  94. package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +0 -4
  95. package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +0 -4
  96. package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +0 -4
  97. package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +0 -4
  98. package/chunks/index-B1d9q8fX.js +0 -4
  99. package/chunks/index-BP0pvFJ4.js +0 -4
  100. package/chunks/index-CHZyL_g_.js +0 -4
  101. package/chunks/index-CeCUdRmF.js +0 -4
  102. package/chunks/index-Ckyyw-I8.js +0 -4
  103. package/chunks/index-DGvCP5G8.js +0 -4
  104. package/chunks/index-yjMVOgwO.js +0 -4
package/ChanceGame.js CHANGED
@@ -1,17 +1,18 @@
1
1
  import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
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";
2
+ import { isMobile as J, isLarge as Ke, useCornerRadius as ve, useColors as le, useBorderSize as Se, NotFoundSkeleton as Je, ChanceGameTemplate as he, 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 it, createWidgetCache as lt, ContainerProvider as at, ThemeProvider as st, ConstantsProvider as ct } from "fansunited-frontend-core";
3
3
  import Z, { useState as dt, useEffect as mt } from "react";
4
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";
5
+ import { Box as d, Typography as B, Button as ue } from "@mui/joy";
6
+ import { u as ht, S as ie, c as Ve, D as He, C as ut, W as xt, d as ft, e as pt, f as gt, O as yt, F as bt, b as be, a as vt, P as St } from "./chunks/PickOneOfX-DaJtkbCw.js";
7
7
  import { CacheProvider as wt } from "@emotion/react";
8
8
  import { createPortal as kt } from "react-dom";
9
+ import { w as Rt } from "./chunks/withVersionStamp-B6nArAj4.js";
9
10
  const ke = ({
10
11
  children: e,
11
12
  brandingBorderColor: c,
12
13
  state: a
13
14
  }) => {
14
- const n = J(), g = Ke(), o = a === "play" ? g : n, u = ve().md, l = c || ie().secondaryContainer, s = Se().size + " solid " + l;
15
+ const n = J(), g = Ke(), o = a === "play" ? g : n, h = ve().md, i = c || le().secondaryContainer, s = Se().size + " solid " + i;
15
16
  return /* @__PURE__ */ t(
16
17
  d,
17
18
  {
@@ -19,17 +20,17 @@ const ke = ({
19
20
  display: "flex",
20
21
  flexDirection: o ? "column" : "row",
21
22
  width: "100%",
22
- borderRadius: u,
23
+ borderRadius: h,
23
24
  boxShadow: "md",
24
25
  border: s,
25
26
  overflow: "hidden",
26
- background: ie().surface,
27
+ background: le().surface,
27
28
  minHeight: "250px"
28
29
  },
29
30
  children: e
30
31
  }
31
32
  );
32
- }, Rt = ({
33
+ }, zt = ({
33
34
  template: e
34
35
  }) => {
35
36
  const { t: c } = se(), a = /* @__PURE__ */ t(
@@ -39,25 +40,25 @@ const ke = ({
39
40
  notFoundMessage: c("chanceGame.chanceGameNotFoundDescription")
40
41
  }
41
42
  );
42
- return e === ue.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
43
- }, Ve = ({
43
+ return e === he.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
44
+ }, Me = ({
44
45
  infoPage: e,
45
46
  enableReset: c = !1,
46
47
  contentColor: a,
47
48
  primaryColor: n,
48
49
  secondaryColor: g,
49
50
  onPrimaryColor: o,
50
- backgroundColor: u,
51
- dangerColor: l,
51
+ backgroundColor: h,
52
+ dangerColor: i,
52
53
  brandingLogo: r,
53
54
  isDark: s = !1,
54
55
  showTitleBlock: k = !1,
55
56
  variant: z
56
57
  }) => {
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), {
58
+ var E, q, M;
59
+ const x = J(), b = le(), p = ve(), l = we(), m = xe(), O = Se(), v = z === "standard", u = z === "overlay", C = v || u, G = JSON.parse(e.body), L = G.segments || [], f = e.labels || {}, N = G.mode || ((E = G.config) == null ? void 0 : E.mode) || "fair", V = ((q = G.config) == null ? void 0 : q.pace) || "normal", _ = ((M = G.config) == null ? void 0 : M.decorations) ?? !1, D = Ve(n, s), {
59
60
  isSpinning: T,
60
- finalRotation: M,
61
+ finalRotation: H,
61
62
  selectedSegment: y,
62
63
  showShakeAnimation: X,
63
64
  showResultScreen: F,
@@ -71,9 +72,9 @@ const ke = ({
71
72
  handleSpin: I,
72
73
  handleReset: S,
73
74
  onConfettiComplete: ee
74
- } = ut({ segments: L, mode: N, pace: H }), te = C ? x ? "260px" : "340px" : x ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
75
+ } = ht({ segments: L, mode: N, pace: V }), te = C ? x ? "260px" : "340px" : x ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
75
76
  _ && /* @__PURE__ */ t(
76
- Me,
77
+ He,
77
78
  {
78
79
  primaryColor: n,
79
80
  isDark: s,
@@ -81,7 +82,7 @@ const ke = ({
81
82
  }
82
83
  ),
83
84
  /* @__PURE__ */ t(
84
- ht,
85
+ ut,
85
86
  {
86
87
  active: W,
87
88
  primaryColor: n,
@@ -91,7 +92,7 @@ const ke = ({
91
92
  }
92
93
  ),
93
94
  F && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
94
- le,
95
+ ie,
95
96
  {
96
97
  result: y.results,
97
98
  variant: z || "embed",
@@ -124,7 +125,7 @@ const ke = ({
124
125
  {
125
126
  level: "h2",
126
127
  sx: {
127
- fontFamily: i.primary,
128
+ fontFamily: l.primary,
128
129
  fontWeight: 700,
129
130
  fontSize: x ? "1.5rem" : "2rem",
130
131
  color: a,
@@ -186,7 +187,7 @@ const ke = ({
186
187
  {
187
188
  level: "body-md",
188
189
  sx: {
189
- fontFamily: i.secondary,
190
+ fontFamily: l.secondary,
190
191
  fontWeight: 400,
191
192
  fontSize: x ? "0.875rem" : "1rem",
192
193
  color: a,
@@ -204,23 +205,23 @@ const ke = ({
204
205
  {
205
206
  level: "body-md",
206
207
  sx: {
207
- fontFamily: i.primary,
208
+ fontFamily: l.primary,
208
209
  fontWeight: 400,
209
210
  fontSize: x ? "0.875rem" : "1rem",
210
211
  color: a,
211
212
  textAlign: "center",
212
- mb: h ? 0 : m.md,
213
+ mb: u ? 0 : m.md,
213
214
  zIndex: 1
214
215
  },
215
216
  children: f.welcome
216
217
  }
217
218
  ),
218
- (v || h) && !R && f.instructions && /* @__PURE__ */ t(
219
+ (v || u) && !R && f.instructions && /* @__PURE__ */ t(
219
220
  B,
220
221
  {
221
222
  level: v ? "body-sm" : "body-md",
222
223
  sx: {
223
- fontFamily: i.secondary,
224
+ fontFamily: l.secondary,
224
225
  fontWeight: 400,
225
226
  fontSize: x ? "0.875rem" : "1rem",
226
227
  color: a,
@@ -283,12 +284,12 @@ const ke = ({
283
284
  onPrimaryColor: o,
284
285
  decorations: _,
285
286
  isStandard: v,
286
- rotation: M,
287
+ rotation: H,
287
288
  isSpinning: T,
288
289
  spinDuration: P
289
290
  }
290
291
  ),
291
- !v && !h && r && /* @__PURE__ */ t(
292
+ !v && !u && r && /* @__PURE__ */ t(
292
293
  d,
293
294
  {
294
295
  component: "img",
@@ -313,19 +314,19 @@ const ke = ({
313
314
  pt,
314
315
  {
315
316
  primaryColor: n,
316
- dangerColor: l,
317
+ dangerColor: i,
317
318
  decorations: _
318
319
  }
319
320
  )
320
321
  ]
321
322
  }
322
323
  ),
323
- !v && !h && !R && f.instructions && /* @__PURE__ */ t(
324
+ !v && !u && !R && f.instructions && /* @__PURE__ */ t(
324
325
  B,
325
326
  {
326
327
  level: "body-sm",
327
328
  sx: {
328
- fontFamily: i.secondary,
329
+ fontFamily: l.secondary,
329
330
  fontWeight: 400,
330
331
  fontSize: x ? "0.875rem" : "1rem",
331
332
  color: a,
@@ -338,7 +339,7 @@ const ke = ({
338
339
  }
339
340
  ),
340
341
  !v && R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
341
- le,
342
+ ie,
342
343
  {
343
344
  result: y.results,
344
345
  variant: "embed",
@@ -353,7 +354,7 @@ const ke = ({
353
354
  }
354
355
  ),
355
356
  f.buttonLabel && !(R && y && !y.isWinning) && /* @__PURE__ */ t(
356
- he,
357
+ ue,
357
358
  {
358
359
  variant: "soft",
359
360
  disabled: T || W || !F && !R && y !== null,
@@ -369,7 +370,7 @@ const ke = ({
369
370
  color: o,
370
371
  fontSize: C ? x ? "0.75rem" : "0.875rem" : x ? "1rem" : "1.125rem",
371
372
  fontWeight: 700,
372
- fontFamily: i.primary,
373
+ fontFamily: l.primary,
373
374
  textTransform: "uppercase",
374
375
  letterSpacing: "0.5px",
375
376
  minWidth: C ? void 0 : x ? "200px" : "250px",
@@ -422,7 +423,7 @@ const ke = ({
422
423
  }
423
424
  ),
424
425
  v && R && y && !y.isWinning && /* @__PURE__ */ t(
425
- he,
426
+ ue,
426
427
  {
427
428
  variant: "outlined",
428
429
  onClick: S,
@@ -434,7 +435,7 @@ const ke = ({
434
435
  color: a,
435
436
  fontSize: x ? "0.75rem" : "0.875rem",
436
437
  fontWeight: 700,
437
- fontFamily: i.primary,
438
+ fontFamily: l.primary,
438
439
  textTransform: "uppercase",
439
440
  zIndex: 1,
440
441
  "&:hover": {
@@ -449,7 +450,7 @@ const ke = ({
449
450
  ] })
450
451
  ] });
451
452
  if (v) {
452
- const Q = Ce(u), oe = Q ? Q.replace(/[^\d,]/g, "") : "";
453
+ const Q = Ce(h), oe = Q ? Q.replace(/[^\d,]/g, "") : "";
453
454
  return /* @__PURE__ */ w(
454
455
  d,
455
456
  {
@@ -470,7 +471,7 @@ const ke = ({
470
471
  {
471
472
  level: "body-md",
472
473
  sx: {
473
- fontFamily: i.primary,
474
+ fontFamily: l.primary,
474
475
  fontWeight: 400,
475
476
  fontSize: x ? "0.875rem" : "1rem",
476
477
  color: a,
@@ -523,7 +524,7 @@ const ke = ({
523
524
  }
524
525
  ),
525
526
  R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
526
- le,
527
+ ie,
527
528
  {
528
529
  result: y.results,
529
530
  variant: "standard",
@@ -550,7 +551,7 @@ const ke = ({
550
551
  {
551
552
  level: "body-sm",
552
553
  sx: {
553
- fontFamily: i.secondary,
554
+ fontFamily: l.secondary,
554
555
  fontWeight: 400,
555
556
  fontSize: x ? "0.625rem" : "0.75rem",
556
557
  color: a,
@@ -616,7 +617,7 @@ const ke = ({
616
617
  {
617
618
  level: "body-sm",
618
619
  sx: {
619
- fontFamily: i.secondary,
620
+ fontFamily: l.secondary,
620
621
  fontWeight: 400,
621
622
  fontSize: x ? "0.625rem" : "0.75rem",
622
623
  color: a,
@@ -633,20 +634,20 @@ const ke = ({
633
634
  ]
634
635
  }
635
636
  );
636
- }, zt = ({
637
+ }, Ft = ({
637
638
  infoPage: e,
638
639
  enableReset: c = !1,
639
640
  imagePosition: a = "left",
640
641
  defaultImagePlaceholderUrl: n
641
642
  }) => {
642
643
  var m, O;
643
- const { t: g } = se(), o = J(), u = ie(), l = Te() === "dark", r = fe(
644
+ const { t: g } = se(), o = J(), h = le(), i = Te() === "dark", r = fe(
644
645
  {
645
646
  images: e.images,
646
647
  imagePlaceholder: n || ""
647
648
  },
648
649
  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) || "";
650
+ ), s = (m = e.branding) == null ? void 0 : m.colors, k = (s == null ? void 0 : s.primary_color) || h.palette.primary.plainColor, z = (s == null ? void 0 : s.secondary_color) || h.palette.danger.plainColor, x = (s == null ? void 0 : s.border_color) || null, b = (s == null ? void 0 : s.background_color) || h.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) || "";
650
651
  return /* @__PURE__ */ t(ke, { brandingBorderColor: x, children: /* @__PURE__ */ t(
651
652
  $e,
652
653
  {
@@ -660,20 +661,20 @@ const ke = ({
660
661
  finalImage: r,
661
662
  imagePosition: a,
662
663
  children: /* @__PURE__ */ t(
663
- Ve,
664
+ Me,
664
665
  {
665
666
  infoPage: e,
666
667
  enableReset: c,
667
- contentColor: (s == null ? void 0 : s.content_color) || u.textColor,
668
+ contentColor: (s == null ? void 0 : s.content_color) || h.textColor,
668
669
  primaryColor: k,
669
670
  secondaryColor: z,
670
- onPrimaryColor: u.palette.primary.onPrimary,
671
+ onPrimaryColor: h.palette.primary.onPrimary,
671
672
  borderColor: x || void 0,
672
673
  backgroundColor: b,
673
- dangerColor: u.palette.danger.plainColor,
674
+ dangerColor: h.palette.danger.plainColor,
674
675
  shimmerColor: k,
675
- brandingLogo: i,
676
- isDark: l,
676
+ brandingLogo: l,
677
+ isDark: i,
677
678
  showTitleBlock: !1,
678
679
  variant: "standard"
679
680
  }
@@ -687,8 +688,8 @@ const ke = ({
687
688
  primaryColor: n,
688
689
  onPrimaryColor: g,
689
690
  borderColor: o,
690
- backgroundColor: u,
691
- dangerColor: l,
691
+ backgroundColor: h,
692
+ dangerColor: i,
692
693
  cardBaseColor: r,
693
694
  shimmerColor: s,
694
695
  brandingLogo: k = "",
@@ -698,7 +699,7 @@ const ke = ({
698
699
  compactCards: p = !1
699
700
  }) => {
700
701
  var Fe, We, _e, Oe;
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) => {
702
+ const l = J(), m = le(), O = ve(), v = we(), u = xe(), C = Se(), G = r || h, L = s || n, f = b === "standard", N = b === "overlay", V = f ? Ce(h) : "", _ = V ? V.replace(/[^\d,]/g, "") : "", D = p ? l ? 80 : 110 : l ? 100 : 140, T = p ? l ? 104 : 143 : l ? 130 : 180, H = p ? l ? 90 : 130 : l ? 120 : 180, y = p ? l ? "16px" : "32px" : l ? "24px" : "48px", X = p ? l ? "12px" : "32px" : l ? "16px" : "48px", F = Ve(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) => {
702
703
  var K;
703
704
  return (K = ae.images) == null ? void 0 : K.idle;
704
705
  }), {
@@ -708,7 +709,7 @@ const ke = ({
708
709
  showResultScreen: Y,
709
710
  showInlineResult: E,
710
711
  showLoseAnimation: q,
711
- hasEntered: V,
712
+ hasEntered: M,
712
713
  flippedCards: Q,
713
714
  crossfadedCards: oe,
714
715
  revealedOtherCards: ce,
@@ -719,7 +720,7 @@ const ke = ({
719
720
  handleReset: ge
720
721
  } = gt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
721
722
  A && /* @__PURE__ */ t(
722
- Me,
723
+ He,
723
724
  {
724
725
  primaryColor: n,
725
726
  isDark: z,
@@ -727,7 +728,7 @@ const ke = ({
727
728
  }
728
729
  ),
729
730
  Y && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
730
- le,
731
+ ie,
731
732
  {
732
733
  result: S.results,
733
734
  variant: b || "embed",
@@ -748,7 +749,7 @@ const ke = ({
748
749
  sx: {
749
750
  display: "flex",
750
751
  flexDirection: "column",
751
- gap: h.xs,
752
+ gap: u.xs,
752
753
  alignItems: "center",
753
754
  textAlign: "center",
754
755
  width: "100%"
@@ -761,7 +762,7 @@ const ke = ({
761
762
  sx: {
762
763
  fontFamily: v.primary,
763
764
  fontWeight: 700,
764
- fontSize: i ? "1.5rem" : "2rem",
765
+ fontSize: l ? "1.5rem" : "2rem",
765
766
  color: a,
766
767
  lineHeight: 1.2,
767
768
  textShadow: A ? `0 0 20px ${n}20` : "none"
@@ -775,9 +776,9 @@ const ke = ({
775
776
  sx: {
776
777
  display: "flex",
777
778
  alignItems: "center",
778
- gap: h.sm,
779
- mt: h.xs,
780
- width: i ? "60%" : "40%"
779
+ gap: u.sm,
780
+ mt: u.xs,
781
+ width: l ? "60%" : "40%"
781
782
  },
782
783
  children: [
783
784
  /* @__PURE__ */ t(
@@ -822,7 +823,7 @@ const ke = ({
822
823
  sx: {
823
824
  fontFamily: v.secondary,
824
825
  fontWeight: 400,
825
- fontSize: i ? "0.875rem" : "1rem",
826
+ fontSize: l ? "0.875rem" : "1rem",
826
827
  color: a,
827
828
  opacity: 0.8
828
829
  },
@@ -840,10 +841,10 @@ const ke = ({
840
841
  sx: {
841
842
  fontFamily: v.primary,
842
843
  fontWeight: 400,
843
- fontSize: i ? "0.875rem" : "1rem",
844
+ fontSize: l ? "0.875rem" : "1rem",
844
845
  color: a,
845
846
  textAlign: "center",
846
- mb: N ? 0 : h.md
847
+ mb: N ? 0 : u.md
847
848
  },
848
849
  children: W.welcome
849
850
  }
@@ -855,7 +856,7 @@ const ke = ({
855
856
  sx: {
856
857
  fontFamily: v.secondary,
857
858
  fontWeight: 400,
858
- fontSize: i ? "0.875rem" : "1rem",
859
+ fontSize: l ? "0.875rem" : "1rem",
859
860
  color: a,
860
861
  textAlign: "center",
861
862
  opacity: 0.7,
@@ -871,9 +872,9 @@ const ke = ({
871
872
  sx: {
872
873
  display: "flex",
873
874
  alignItems: "center",
874
- gap: h.sm,
875
- width: i ? "40%" : "25%",
876
- my: h.xs
875
+ gap: u.sm,
876
+ width: l ? "40%" : "25%",
877
+ my: u.xs
877
878
  },
878
879
  children: [
879
880
  /* @__PURE__ */ t(
@@ -914,14 +915,14 @@ const ke = ({
914
915
  d,
915
916
  {
916
917
  sx: {
917
- mt: h.lg,
918
+ mt: u.lg,
918
919
  mx: "auto",
919
920
  display: "grid",
920
- gridTemplateColumns: I ? `repeat(3, ${M}px)` : `repeat(3, ${D}px)`,
921
+ gridTemplateColumns: I ? `repeat(3, ${H}px)` : `repeat(3, ${D}px)`,
921
922
  rowGap: y,
922
923
  columnGap: X,
923
924
  justifyContent: "center",
924
- mb: h.lg,
925
+ mb: u.lg,
925
926
  position: "relative",
926
927
  perspective: "1200px"
927
928
  },
@@ -935,8 +936,8 @@ const ke = ({
935
936
  justifyContent: "center",
936
937
  alignItems: "center",
937
938
  // Staggered deal-in entrance
938
- opacity: V ? 1 : 0,
939
- transform: V ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
939
+ opacity: M ? 1 : 0,
940
+ transform: M ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
940
941
  transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${K * 100}ms`
941
942
  },
942
943
  children: I ? /* @__PURE__ */ t(
@@ -950,12 +951,12 @@ const ke = ({
950
951
  isOtherRevealed: me,
951
952
  shouldDim: Ye,
952
953
  isRevealed: de,
953
- hasEntered: V,
954
- objectSize: M,
954
+ hasEntered: M,
955
+ objectSize: H,
955
956
  crossfadeDuration: Pe,
956
957
  isStandard: f,
957
958
  primaryColor: n,
958
- dangerColor: l,
959
+ dangerColor: i,
959
960
  onPick: () => Re(K, !0)
960
961
  }
961
962
  ) : /* @__PURE__ */ t(
@@ -969,7 +970,7 @@ const ke = ({
969
970
  shouldDim: je,
970
971
  isRevealed: de,
971
972
  showLoseAnimation: q,
972
- hasEntered: V,
973
+ hasEntered: M,
973
974
  cardWidth: D,
974
975
  cardHeight: T,
975
976
  flipDuration: Xe,
@@ -978,7 +979,7 @@ const ke = ({
978
979
  shimmerColor: L,
979
980
  primaryColor: n,
980
981
  contentColor: a,
981
- dangerColor: l,
982
+ dangerColor: i,
982
983
  borderColor: o,
983
984
  brandingLogo: k,
984
985
  compactCards: p,
@@ -992,7 +993,7 @@ const ke = ({
992
993
  }
993
994
  ),
994
995
  !f && E && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
995
- le,
996
+ ie,
996
997
  {
997
998
  result: S.results,
998
999
  variant: "embed",
@@ -1005,22 +1006,22 @@ const ke = ({
1005
1006
  }
1006
1007
  ),
1007
1008
  !f && c && E && /* @__PURE__ */ t(
1008
- he,
1009
+ ue,
1009
1010
  {
1010
1011
  onClick: ge,
1011
1012
  variant: "outlined",
1012
1013
  sx: {
1013
- mt: h.md,
1014
- px: h.lg,
1015
- py: h.sm,
1014
+ mt: u.md,
1015
+ px: u.lg,
1016
+ py: u.sm,
1016
1017
  fontFamily: v.secondary,
1017
1018
  fontWeight: 600,
1018
- fontSize: i ? "0.875rem" : "1rem",
1019
+ fontSize: l ? "0.875rem" : "1rem",
1019
1020
  textTransform: "uppercase",
1020
1021
  borderRadius: O.md,
1021
1022
  borderColor: o || m.outlineEnabledBorder,
1022
1023
  color: a,
1023
- minWidth: i ? "150px" : "180px",
1024
+ minWidth: l ? "150px" : "180px",
1024
1025
  "&:hover": {
1025
1026
  borderColor: n,
1026
1027
  bgcolor: "transparent",
@@ -1031,17 +1032,17 @@ const ke = ({
1031
1032
  }
1032
1033
  ),
1033
1034
  f && c && E && /* @__PURE__ */ t(
1034
- he,
1035
+ ue,
1035
1036
  {
1036
1037
  onClick: ge,
1037
1038
  variant: "outlined",
1038
1039
  sx: {
1039
1040
  borderRadius: O.xl,
1040
- py: h.sm,
1041
- px: h.lg,
1041
+ py: u.sm,
1042
+ px: u.lg,
1042
1043
  borderColor: m.outlineEnabledBorder,
1043
1044
  color: a,
1044
- fontSize: i ? "0.75rem" : "0.875rem",
1045
+ fontSize: l ? "0.75rem" : "0.875rem",
1045
1046
  fontWeight: 700,
1046
1047
  fontFamily: v.primary,
1047
1048
  textTransform: "uppercase",
@@ -1064,7 +1065,7 @@ const ke = ({
1064
1065
  flexDirection: "column",
1065
1066
  width: "100%",
1066
1067
  height: "100%",
1067
- gap: h.lg,
1068
+ gap: u.lg,
1068
1069
  alignItems: "center",
1069
1070
  position: "relative",
1070
1071
  overflow: "auto",
@@ -1078,10 +1079,10 @@ const ke = ({
1078
1079
  sx: {
1079
1080
  fontFamily: v.primary,
1080
1081
  fontWeight: 400,
1081
- fontSize: i ? "0.875rem" : "1rem",
1082
+ fontSize: l ? "0.875rem" : "1rem",
1082
1083
  color: a,
1083
1084
  textAlign: "center",
1084
- px: h.md
1085
+ px: u.md
1085
1086
  },
1086
1087
  children: W.welcome
1087
1088
  }
@@ -1092,7 +1093,7 @@ const ke = ({
1092
1093
  sx: {
1093
1094
  display: "flex",
1094
1095
  flexDirection: "column",
1095
- px: h.md,
1096
+ px: u.md,
1096
1097
  width: "100%",
1097
1098
  boxSizing: "border-box"
1098
1099
  },
@@ -1102,7 +1103,7 @@ const ke = ({
1102
1103
  sx: {
1103
1104
  display: "flex",
1104
1105
  flexDirection: "column",
1105
- gap: i ? h.lg : h.md
1106
+ gap: l ? u.lg : u.md
1106
1107
  },
1107
1108
  children: [
1108
1109
  /* @__PURE__ */ t(
@@ -1110,10 +1111,10 @@ const ke = ({
1110
1111
  {
1111
1112
  sx: {
1112
1113
  borderRadius: O.md,
1113
- px: h.sm,
1114
- pt: h.sm,
1115
- pb: h.md,
1116
- gap: h.md,
1114
+ px: u.sm,
1115
+ pt: u.sm,
1116
+ pb: u.md,
1117
+ gap: u.md,
1117
1118
  bgcolor: `rgba(${_}, 0.5)`,
1118
1119
  display: "flex",
1119
1120
  flexDirection: "column",
@@ -1126,7 +1127,7 @@ const ke = ({
1126
1127
  }
1127
1128
  ),
1128
1129
  E && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
1129
- le,
1130
+ ie,
1130
1131
  {
1131
1132
  result: S.results,
1132
1133
  variant: "standard",
@@ -1135,7 +1136,7 @@ const ke = ({
1135
1136
  primaryColor: n,
1136
1137
  onPrimaryColor: g,
1137
1138
  showResetButton: !1,
1138
- sx: { mb: h.md }
1139
+ sx: { mb: u.md }
1139
1140
  }
1140
1141
  ),
1141
1142
  (k || W.disclaimer) && /* @__PURE__ */ w(
@@ -1145,7 +1146,7 @@ const ke = ({
1145
1146
  display: "flex",
1146
1147
  flexDirection: "column",
1147
1148
  alignItems: "center",
1148
- gap: h.md
1149
+ gap: u.md
1149
1150
  },
1150
1151
  children: [
1151
1152
  W.disclaimer && /* @__PURE__ */ t(
@@ -1155,7 +1156,7 @@ const ke = ({
1155
1156
  sx: {
1156
1157
  fontFamily: v.secondary,
1157
1158
  fontWeight: 400,
1158
- fontSize: i ? "0.625rem" : "0.75rem",
1159
+ fontSize: l ? "0.625rem" : "0.75rem",
1159
1160
  color: a,
1160
1161
  opacity: 0.7,
1161
1162
  textAlign: "center",
@@ -1195,8 +1196,8 @@ const ke = ({
1195
1196
  flexDirection: "column",
1196
1197
  width: "100%",
1197
1198
  height: "100%",
1198
- p: h.lg,
1199
- gap: h.lg,
1199
+ p: u.lg,
1200
+ gap: u.lg,
1200
1201
  alignItems: "center",
1201
1202
  position: "relative",
1202
1203
  overflow: "auto",
@@ -1205,20 +1206,20 @@ const ke = ({
1205
1206
  children: ze()
1206
1207
  }
1207
1208
  );
1208
- }, Ft = ({
1209
+ }, Wt = ({
1209
1210
  infoPage: e,
1210
1211
  enableReset: c = !1,
1211
1212
  imagePosition: a = "left",
1212
1213
  defaultImagePlaceholderUrl: n
1213
1214
  }) => {
1214
- var i, m, O;
1215
- const { t: g } = se(), o = J(), u = ie(), l = Te() === "dark", r = fe(
1215
+ var l, m, O;
1216
+ const { t: g } = se(), o = J(), h = le(), i = Te() === "dark", r = fe(
1216
1217
  {
1217
1218
  images: e.images,
1218
1219
  imagePlaceholder: n || ""
1219
1220
  },
1220
1221
  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) || "";
1222
+ ), s = (l = e.branding) == null ? void 0 : l.colors, k = (s == null ? void 0 : s.primary_color) || h.palette.primary.plainColor, z = (s == null ? void 0 : s.border_color) || null, x = (s == null ? void 0 : s.background_color) || h.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) || "";
1222
1223
  return /* @__PURE__ */ t(ke, { brandingBorderColor: z, children: /* @__PURE__ */ t(
1223
1224
  $e,
1224
1225
  {
@@ -1238,16 +1239,16 @@ const ke = ({
1238
1239
  {
1239
1240
  infoPage: e,
1240
1241
  enableReset: c,
1241
- contentColor: (s == null ? void 0 : s.content_color) || u.textPrimary,
1242
+ contentColor: (s == null ? void 0 : s.content_color) || h.textPrimary,
1242
1243
  primaryColor: k,
1243
- onPrimaryColor: (s == null ? void 0 : s.content_color) || u.palette.primary.onPrimary || u.surface,
1244
+ onPrimaryColor: (s == null ? void 0 : s.content_color) || h.palette.primary.onPrimary || h.surface,
1244
1245
  borderColor: z || void 0,
1245
1246
  backgroundColor: x,
1246
- dangerColor: u.palette.danger.plainColor,
1247
+ dangerColor: h.palette.danger.plainColor,
1247
1248
  cardBaseColor: x,
1248
1249
  shimmerColor: k,
1249
1250
  brandingLogo: p,
1250
- isDark: l,
1251
+ isDark: i,
1251
1252
  showTitleBlock: !1,
1252
1253
  variant: "standard",
1253
1254
  compactCards: !0
@@ -1298,26 +1299,26 @@ const ke = ({
1298
1299
  margin: "0 auto",
1299
1300
  opacity: 0.9
1300
1301
  }
1301
- }), Wt = ({
1302
+ }), _t = ({
1302
1303
  infoPage: e,
1303
1304
  enableReset: c = !1,
1304
1305
  defaultImagePlaceholderUrl: a
1305
1306
  }) => {
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(
1307
+ var f, N, V, _, D, T, H, y, X, F, R, $, W, P, U, j, A, I, S;
1308
+ const { t: n } = se(), g = J(), o = Ae(), h = xe(), i = ((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(
1308
1309
  {
1309
1310
  images: e.images,
1310
1311
  imagePlaceholder: z
1311
1312
  },
1312
1313
  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({
1314
- spacingScale: u,
1314
+ ), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((T = (D = (_ = (V = o.colorSchemes) == null ? void 0 : V.light) == null ? void 0 : _.palette) == null ? void 0 : D.primary) == null ? void 0 : T.plainColor), m = (F = (X = (y = (H = o.colorSchemes) == null ? void 0 : H.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, u = 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({
1315
+ spacingScale: h,
1315
1316
  mdBorderRadius: C,
1316
1317
  contentBgColor: O,
1317
1318
  buttonRadius: G,
1318
- primaryColor: i,
1319
+ primaryColor: l,
1319
1320
  onPrimaryColor: m,
1320
- fontFamilyPrimary: h,
1321
+ fontFamilyPrimary: u,
1321
1322
  darkTextColor: b,
1322
1323
  isMobile: g,
1323
1324
  textColor: p
@@ -1341,12 +1342,12 @@ const ke = ({
1341
1342
  infoPage: e,
1342
1343
  enableReset: c,
1343
1344
  contentColor: p,
1344
- primaryColor: i,
1345
+ primaryColor: l,
1345
1346
  onPrimaryColor: m || "#FFFFFF",
1346
1347
  backgroundColor: O,
1347
1348
  dangerColor: v,
1348
1349
  cardBaseColor: O,
1349
- shimmerColor: i,
1350
+ shimmerColor: l,
1350
1351
  brandingLogo: k,
1351
1352
  isDark: !0,
1352
1353
  showTitleBlock: !1,
@@ -1356,13 +1357,13 @@ const ke = ({
1356
1357
  ) })
1357
1358
  }
1358
1359
  );
1359
- }, _t = (e) => {
1360
+ }, Ot = (e) => {
1360
1361
  const c = we().secondary, a = qe(), n = e.isSplitVariant && a, g = J(), o = Qe(e.primaryUrl, e.secondaryUrl, "logo");
1361
1362
  if (!e.brandingLogo)
1362
1363
  return null;
1363
- const u = () => {
1364
+ const h = () => {
1364
1365
  o && window.open(o, "_blank", "noopener,noreferrer");
1365
- }, l = /* @__PURE__ */ t(
1366
+ }, i = /* @__PURE__ */ t(
1366
1367
  "img",
1367
1368
  {
1368
1369
  src: e.brandingLogo,
@@ -1384,19 +1385,19 @@ const ke = ({
1384
1385
  textDecoration: "none",
1385
1386
  display: "inline-flex"
1386
1387
  },
1387
- children: l
1388
+ children: i
1388
1389
  }
1389
1390
  ) : /* @__PURE__ */ t(
1390
1391
  d,
1391
1392
  {
1392
- onClick: u,
1393
+ onClick: h,
1393
1394
  sx: {
1394
1395
  cursor: "pointer",
1395
1396
  display: "inline-flex"
1396
1397
  },
1397
- children: l
1398
+ children: i
1398
1399
  }
1399
- ) : l;
1400
+ ) : i;
1400
1401
  return e.isCentered || n || g ? /* @__PURE__ */ w(
1401
1402
  d,
1402
1403
  {
@@ -1461,24 +1462,24 @@ const ke = ({
1461
1462
  ]
1462
1463
  }
1463
1464
  );
1464
- }, Ot = ({
1465
+ }, Dt = ({
1465
1466
  infoPage: e,
1466
1467
  enableReset: c = !1,
1467
1468
  defaultImagePlaceholderUrl: a
1468
1469
  }) => {
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(
1470
+ var N, V, _, D, T, H, y, X, F, R, $, W, P, U, j, A, I, S, ee, te, Y, E, q, M, Q, oe, ce;
1471
+ const { t: n } = se(), g = J(), o = Ae(), h = xe(), i = ((N = e.branding) == null ? void 0 : N.colors) || null, r = (V = e.branding) == null ? void 0 : V.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(
1471
1472
  {
1472
1473
  images: e.images,
1473
1474
  imagePlaceholder: z
1474
1475
  },
1475
1476
  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({
1477
- spacingScale: u,
1477
+ ), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((H = (T = (D = (_ = o.colorSchemes) == null ? void 0 : _.light) == null ? void 0 : D.palette) == null ? void 0 : T.primary) == null ? void 0 : H.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), u = (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({
1478
+ spacingScale: h,
1478
1479
  mdBorderRadius: G,
1479
1480
  contentBgColor: v,
1480
1481
  buttonRadius: L,
1481
- primaryColor: i,
1482
+ primaryColor: l,
1482
1483
  onPrimaryColor: O,
1483
1484
  fontFamilyPrimary: C,
1484
1485
  darkTextColor: b,
@@ -1498,17 +1499,17 @@ const ke = ({
1498
1499
  finalImage: x,
1499
1500
  children: [
1500
1501
  /* @__PURE__ */ t(d, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1501
- Ve,
1502
+ Me,
1502
1503
  {
1503
1504
  infoPage: e,
1504
1505
  enableReset: c,
1505
1506
  contentColor: p,
1506
- primaryColor: i,
1507
+ primaryColor: l,
1507
1508
  secondaryColor: m,
1508
1509
  onPrimaryColor: O || "#FFFFFF",
1509
1510
  backgroundColor: v,
1510
- dangerColor: h,
1511
- shimmerColor: i,
1511
+ dangerColor: u,
1512
+ shimmerColor: l,
1512
1513
  brandingLogo: k,
1513
1514
  isDark: !0,
1514
1515
  showTitleBlock: !1,
@@ -1516,19 +1517,19 @@ const ke = ({
1516
1517
  }
1517
1518
  ) }),
1518
1519
  /* @__PURE__ */ t(
1519
- _t,
1520
+ Ot,
1520
1521
  {
1521
1522
  brandingLogo: k,
1522
1523
  textColor: b,
1523
1524
  label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
1524
- primaryUrl: (Q = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Q.primary_url,
1525
+ primaryUrl: (Q = (M = e.branding) == null ? void 0 : M.urls) == null ? void 0 : Q.primary_url,
1525
1526
  secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
1526
1527
  }
1527
1528
  )
1528
1529
  ]
1529
1530
  }
1530
1531
  );
1531
- }, Dt = (e) => {
1532
+ }, Bt = (e) => {
1532
1533
  const { infoPage: c } = Ze(e.entityId, "chance-game", e.sdk), a = () => {
1533
1534
  if (c && c.id !== "not-found") {
1534
1535
  const o = Object.keys(ot);
@@ -1545,35 +1546,35 @@ const ke = ({
1545
1546
  }, [e.language, c]), !c || !n)
1546
1547
  return /* @__PURE__ */ t(tt, { my: 20 });
1547
1548
  if (c.id === "not-found")
1548
- return /* @__PURE__ */ t(Rt, { template: e.template });
1549
- if (e.template === ue.STANDARD) {
1550
- const o = e.imagePosition, u = e.defaultImagePlaceholderUrl;
1549
+ return /* @__PURE__ */ t(zt, { template: e.template });
1550
+ if (e.template === he.STANDARD) {
1551
+ const o = e.imagePosition, h = e.defaultImagePlaceholderUrl;
1551
1552
  return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(
1552
- Ft,
1553
+ Wt,
1553
1554
  {
1554
1555
  infoPage: c,
1555
1556
  imagePosition: o,
1556
- defaultImagePlaceholderUrl: u
1557
+ defaultImagePlaceholderUrl: h
1557
1558
  }
1558
1559
  ) : /* @__PURE__ */ t(
1559
- zt,
1560
+ Ft,
1560
1561
  {
1561
1562
  infoPage: c,
1562
1563
  imagePosition: o,
1563
- defaultImagePlaceholderUrl: u
1564
+ defaultImagePlaceholderUrl: h
1564
1565
  }
1565
1566
  );
1566
1567
  }
1567
- if (e.template === ue.OVERLAY) {
1568
+ if (e.template === he.OVERLAY) {
1568
1569
  const o = e.defaultImagePlaceholderUrl;
1569
1570
  return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(
1570
- Wt,
1571
+ _t,
1571
1572
  {
1572
1573
  infoPage: c,
1573
1574
  defaultImagePlaceholderUrl: o
1574
1575
  }
1575
1576
  ) : /* @__PURE__ */ t(
1576
- Ot,
1577
+ Dt,
1577
1578
  {
1578
1579
  infoPage: c,
1579
1580
  defaultImagePlaceholderUrl: o
@@ -1581,20 +1582,20 @@ const ke = ({
1581
1582
  );
1582
1583
  }
1583
1584
  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 });
1584
- }, Bt = (e) => {
1585
+ }, Ct = (e) => {
1585
1586
  const [c, a] = Z.useState(!1), n = nt(e.language), g = Z.useRef(
1586
1587
  `chance-game-shadow-root-${Math.random().toString(36).substring(2, 11)}`
1587
- ), o = Z.useRef(null), u = Z.useRef(null), l = Z.useRef(null), [r, s] = Z.useState(null);
1588
+ ), o = Z.useRef(null), h = Z.useRef(null), i = Z.useRef(null), [r, s] = Z.useState(null);
1588
1589
  Z.useEffect(() => {
1589
1590
  if (!o.current) return;
1590
- o.current.shadowRoot ? (u.current = o.current.shadowRoot, l.current = u.current.getElementById(
1591
+ o.current.shadowRoot ? (h.current = o.current.shadowRoot, i.current = h.current.getElementById(
1591
1592
  g.current
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);
1593
+ ), i.current || (i.current = document.createElement("div"), i.current.id = g.current, h.current.appendChild(i.current))) : (h.current = o.current.attachShadow({ mode: "open" }), i.current = document.createElement("div"), i.current.id = g.current, h.current.appendChild(i.current)), rt(i.current, n);
1594
+ const p = it("chance-game", n);
1594
1595
  return s(
1595
- (i) => (i == null ? void 0 : i.key) === p ? i : it(
1596
+ (l) => (l == null ? void 0 : l.key) === p ? l : lt(
1596
1597
  "chance-game",
1597
- u.current,
1598
+ h.current,
1598
1599
  n
1599
1600
  )
1600
1601
  ), a(!0), () => {
@@ -1603,8 +1604,8 @@ const ke = ({
1603
1604
  }, [n]);
1604
1605
  const k = e.themeOptions, z = {
1605
1606
  ...k,
1606
- mode: e.template === ue.OVERLAY ? "dark" : k == null ? void 0 : k.mode
1607
- }, x = /* @__PURE__ */ t(d, { ref: o, lang: e.language || "en" }), b = c && o.current && l.current && r ? kt(
1607
+ mode: e.template === he.OVERLAY ? "dark" : k == null ? void 0 : k.mode
1608
+ }, x = /* @__PURE__ */ t(d, { ref: o, lang: e.language || "en" }), b = c && o.current && i.current && r ? kt(
1608
1609
  // Keyed on the cache, not on `direction`: it must change in the same
1609
1610
  // render that adopts the new cache, or CssVarsProvider writes its CSS
1610
1611
  // variables into the outgoing cache and never repeats.
@@ -1613,28 +1614,29 @@ const ke = ({
1613
1614
  {
1614
1615
  customTheme: z,
1615
1616
  mode: z == null ? void 0 : z.mode,
1616
- shadowRootElement: l.current,
1617
+ shadowRootElement: i.current,
1617
1618
  direction: n,
1618
1619
  children: /* @__PURE__ */ t(
1619
1620
  ct,
1620
1621
  {
1621
- shadowRootElement: l.current,
1622
+ shadowRootElement: i.current,
1622
1623
  leadPhoneCountryCode: null,
1623
1624
  language: null,
1624
1625
  optionsLayout: null,
1625
1626
  direction: n,
1627
+ disableCache: e.disableCache ?? !1,
1626
1628
  children: e.children
1627
1629
  }
1628
1630
  )
1629
1631
  }
1630
1632
  ) }) }, r.key),
1631
- l.current
1633
+ i.current
1632
1634
  ) : null;
1633
1635
  return /* @__PURE__ */ w(re, { children: [
1634
1636
  x,
1635
1637
  b
1636
1638
  ] });
1637
- }, Ct = (e) => /* @__PURE__ */ t(Bt, { ...e, children: /* @__PURE__ */ t(Dt, { ...e }) }), Vt = Ct;
1639
+ }, Tt = (e) => /* @__PURE__ */ t(Ct, { ...e, children: /* @__PURE__ */ t(Bt, { ...e }) }), Nt = Rt(Tt);
1638
1640
  export {
1639
- Vt as ChanceGame
1641
+ Nt as ChanceGame
1640
1642
  };