fansunited-frontend-components 0.0.48 → 0.0.49

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 (57) hide show
  1. package/ChanceGame.js +45 -45
  2. package/ClassicQuizPlay.js +184 -183
  3. package/CollectLead.js +16 -15
  4. package/Discussion.js +1 -1
  5. package/EitherOrPlay.js +66 -65
  6. package/EventGamePlay.js +68 -67
  7. package/Leaderboard.js +22 -22
  8. package/MatchQuizPlay.js +82 -81
  9. package/PersonalityQuizPlay.js +77 -76
  10. package/PickThePair.js +42 -42
  11. package/PollVote.js +53 -52
  12. package/Predictor.js +75 -75
  13. package/README.md +272 -0
  14. package/chunks/{AlertMessage-D4Uc6n5U.js → AlertMessage-Ds45MBHB.js} +3 -3
  15. package/chunks/{ArrowRightAlt-wEs8SY1V.js → ArrowRightAlt-DKADQN2o.js} +1 -1
  16. package/chunks/{Avatar-BXHdXHLA.js → Avatar-K1EWhhkA.js} +2 -2
  17. package/chunks/{ChanceGameEmbedVariant-DfS5LPpp.js → ChanceGameEmbedVariant-DqFg4YKU.js} +31 -29
  18. package/chunks/{CheckCircle-CU2itira.js → CheckCircle-CV9iMpkZ.js} +1 -1
  19. package/chunks/{Close-DBt1nfGo.js → Close-BHp4N1-6.js} +1 -1
  20. package/chunks/{Close-C5SGTkPr.js → Close-C6Cw96SJ.js} +1 -1
  21. package/chunks/{CollectLeadForm-BqjgPYKX.js → CollectLeadForm-DnLKA8qz.js} +13 -13
  22. package/chunks/{Divider-Cbns9B3Y.js → Divider-BvUimRFw.js} +2 -2
  23. package/chunks/{Edit-BVP8fCB4.js → Edit-CZ3ni-Ur.js} +4 -4
  24. package/chunks/{EmojiEvents-D_ObJxNy.js → EmojiEvents-DpmLq98V.js} +1 -1
  25. package/chunks/{FavoriteBorder-_mUf1vas.js → FavoriteBorder-DUK_DrY4.js} +1 -1
  26. package/chunks/{FormControl-DLBvX-Sn.js → FormControl-BUItlVIg.js} +3 -3
  27. package/chunks/{FormLabel-jXtScWTI.js → FormLabel-CeTNPUn7.js} +2 -2
  28. package/chunks/{Input-Cha_dm3J.js → Input-MJCQcYzo.js} +2 -2
  29. package/chunks/{KeyboardArrowDown-C_8g8wLS.js → KeyboardArrowDown-SZpn2GhJ.js} +1 -1
  30. package/chunks/{ModalDialog-Co3jck0z.js → ModalDialog-Cfgv9UAA.js} +2 -2
  31. package/chunks/{NotFoundSkeleton-D5Jh3lnu.js → NotFoundSkeleton-Cs6DtD9u.js} +13 -12
  32. package/chunks/{Notification-r1Fm0If2.js → Notification-pcKtlRms.js} +4 -4
  33. package/chunks/{OverlayApiErrorSkeleton-BUuD0zL8.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +20 -19
  34. package/chunks/{OverlayLeadAfterCollection-B-N1OjPu.js → OverlayLeadAfterCollection-F2TAV9wK.js} +14 -12
  35. package/chunks/{OverlayScoreStateSkeleton-Bd3-ZNlU.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
  36. package/chunks/{Person-K8GGMiAW.js → Person-BGdniS_p.js} +1 -1
  37. package/chunks/{PickOneOfX-CvIn7QOd.js → PickOneOfX-Ci4ZJf7G.js} +8 -7
  38. package/chunks/{Popper-Bti_HOMS.js → Popper-DOVSI4rJ.js} +1 -1
  39. package/chunks/{Portal-B-nN3a_R.js → Portal-Cs0dgwmH.js} +1 -1
  40. package/chunks/{index-Btf_jw7-.js → PrizeCard-DF3QxwQJ.js} +0 -1
  41. package/chunks/{Select-C2QtqgA7.js → Select-BHeTdOYr.js} +3 -3
  42. package/chunks/{Spinner-D7-MZe2m.js → Spinner-DbUB64Gj.js} +1 -1
  43. package/chunks/{SplitLeadAfterCollection-CyXBWAIK.js → SplitLeadAfterCollection-DSw6X5fx.js} +36 -34
  44. package/chunks/{Stack-CU36SsgA.js → Stack-BpHk5eb0.js} +1 -1
  45. package/chunks/{StandardContentSkeleton-CYduGHsc.js → StandardContentSkeleton-Bae1LLQ_.js} +1 -1
  46. package/chunks/{Tabs-CA-FqQfT.js → Tabs-hwJ7jsUl.js} +3 -3
  47. package/chunks/{Textarea-Cn4VvCBl.js → Textarea-zOtMdgc5.js} +3 -3
  48. package/chunks/{TimerOutlined-DOpryr42.js → TimerOutlined-DWE7f0YX.js} +1 -1
  49. package/chunks/{helpers-1jFObSvc.js → helpers-NuC1SzL3.js} +1 -1
  50. package/chunks/index-BaypiKlO.js +4 -0
  51. package/chunks/{main-Chqd9Wwn.js → main-hB01WcoP.js} +88 -88
  52. package/chunks/{useEventCallback-CkO2rd5W.js → useEventCallback-CizlfWBo.js} +1 -1
  53. package/chunks/{useForwardedInput-C3SP2QmS.js → useForwardedInput-RWDntqBU.js} +2 -2
  54. package/chunks/{useImageVariant-BJ722AFw.js → useImageVariant-Cex1eIqq.js} +1 -1
  55. package/index.js +1 -1
  56. package/package.json +1 -1
  57. package/chunks/index-CyODGG_P.js +0 -4
package/ChanceGame.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
2
- import { i as K, h as Je, b as ve, a as ie, d as Se, B as m, f as se, O as ue, c as we, e as xe, T as D, j as he, H as Ce, W as fe, u as Te, p as Ke, o as qe, F as ne, J as Qe, K as Ze, L as et, M as tt, N as ot } from "./chunks/index-Btf_jw7-.js";
3
- import Z, { useState as nt, useEffect as rt } from "react";
4
- import { S as lt } from "./chunks/Spinner-D7-MZe2m.js";
5
- import { N as it, S as $e, O as Ae } from "./chunks/NotFoundSkeleton-D5Jh3lnu.js";
6
- import { u as at, S as le, c as Ie, D as Ee, C as st, W as ct, d as dt, e as mt, f as ut, O as ht, F as xt, b as ye, a as ft, P as pt } from "./chunks/PickOneOfX-CvIn7QOd.js";
7
- import { h as Ge, g as gt, l as bt } from "./chunks/helpers-1jFObSvc.js";
8
- import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-BJ722AFw.js";
9
- import { u as yt } from "./chunks/useInfoPage-BHdgKdme.js";
10
- import { createPortal as vt } from "react-dom";
2
+ import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-NuC1SzL3.js";
3
+ import Z, { useState as qe, useEffect as Qe } from "react";
4
+ import { i as K, h as Ze, b as ve, a as ie, d as Se, B as m, f as se, O as ue, c as we, e as xe, T as D, j as he, H as Te, W as fe, u as $e, p as et, o as tt, F as ne, J as ot, K as nt, L as rt, M as lt, N as it } from "./chunks/PrizeCard-DF3QxwQJ.js";
5
+ import { S as at } from "./chunks/Spinner-DbUB64Gj.js";
6
+ import { createPortal as st } from "react-dom";
7
+ import { u as ct } from "./chunks/useInfoPage-BHdgKdme.js";
8
+ import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-Cs6DtD9u.js";
9
+ import { u as mt, S as le, c as Ee, D as Ge, C as ut, W as ht, d as xt, e as ft, f as pt, O as gt, F as bt, b as ye, a as yt, P as vt } from "./chunks/PickOneOfX-Ci4ZJf7G.js";
10
+ import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-Cex1eIqq.js";
11
11
  const ke = ({
12
12
  children: e,
13
13
  brandingBorderColor: s,
14
14
  state: a
15
15
  }) => {
16
- const r = K(), x = Je(), o = a === "play" ? x : r, c = ve().md, d = s || ie().secondaryContainer, l = Se().size + " solid " + d;
16
+ const r = K(), x = Ze(), o = a === "play" ? x : r, c = ve().md, d = s || ie().secondaryContainer, l = Se().size + " solid " + d;
17
17
  return /* @__PURE__ */ t(
18
18
  m,
19
19
  {
@@ -35,7 +35,7 @@ const ke = ({
35
35
  template: e
36
36
  }) => {
37
37
  const { t: s } = se(), a = /* @__PURE__ */ t(
38
- it,
38
+ dt,
39
39
  {
40
40
  notFoundTitle: s("chanceGame.chanceGameNotFound"),
41
41
  notFoundMessage: s("chanceGame.chanceGameNotFoundDescription")
@@ -57,7 +57,7 @@ const ke = ({
57
57
  variant: O
58
58
  }) => {
59
59
  var G, q, M;
60
- const p = K(), S = ie(), g = ve(), i = we(), u = xe(), _ = Se(), y = O === "standard", h = O === "overlay", C = y || 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", W = ((M = E.config) == null ? void 0 : M.decorations) ?? !1, B = Ie(r, l), {
60
+ const p = K(), S = ie(), g = ve(), i = we(), u = xe(), _ = Se(), y = O === "standard", h = O === "overlay", C = y || 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", W = ((M = E.config) == null ? void 0 : M.decorations) ?? !1, B = Ee(r, l), {
61
61
  isSpinning: T,
62
62
  finalRotation: N,
63
63
  selectedSegment: b,
@@ -73,9 +73,9 @@ const ke = ({
73
73
  handleSpin: I,
74
74
  handleReset: v,
75
75
  onConfettiComplete: ee
76
- } = at({ segments: V, mode: L, pace: H }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
76
+ } = mt({ segments: V, mode: L, pace: H }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
77
77
  W && /* @__PURE__ */ t(
78
- Ee,
78
+ Ge,
79
79
  {
80
80
  primaryColor: r,
81
81
  isDark: l,
@@ -83,7 +83,7 @@ const ke = ({
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ t(
86
- st,
86
+ ut,
87
87
  {
88
88
  active: F,
89
89
  primaryColor: r,
@@ -269,7 +269,7 @@ const ke = ({
269
269
  },
270
270
  children: [
271
271
  /* @__PURE__ */ t(
272
- ct,
272
+ ht,
273
273
  {
274
274
  segmentCount: V.length,
275
275
  decorations: W,
@@ -277,7 +277,7 @@ const ke = ({
277
277
  }
278
278
  ),
279
279
  /* @__PURE__ */ t(
280
- dt,
280
+ xt,
281
281
  {
282
282
  segments: V,
283
283
  secondaryColor: x,
@@ -312,7 +312,7 @@ const ke = ({
312
312
  }
313
313
  ),
314
314
  /* @__PURE__ */ t(
315
- mt,
315
+ ft,
316
316
  {
317
317
  primaryColor: r,
318
318
  dangerColor: d,
@@ -451,7 +451,7 @@ const ke = ({
451
451
  ] })
452
452
  ] });
453
453
  if (y) {
454
- const Q = Ge(c), oe = Q ? Q.replace(/[^\d,]/g, "") : "";
454
+ const Q = Ce(c), oe = Q ? Q.replace(/[^\d,]/g, "") : "";
455
455
  return /* @__PURE__ */ w(
456
456
  m,
457
457
  {
@@ -642,7 +642,7 @@ const ke = ({
642
642
  defaultImagePlaceholderUrl: r
643
643
  }) => {
644
644
  var u, _;
645
- const { t: x } = se(), o = K(), c = ie(), d = Ce() === "dark", n = pe(
645
+ const { t: x } = se(), o = K(), c = ie(), d = Te() === "dark", n = pe(
646
646
  {
647
647
  images: e.images,
648
648
  imagePlaceholder: r || ""
@@ -650,7 +650,7 @@ const ke = ({
650
650
  fe.STANDARD
651
651
  ), l = (u = e.branding) == null ? void 0 : u.colors, z = (l == null ? void 0 : l.primary_color) || c.palette.primary.plainColor, O = (l == null ? void 0 : l.secondary_color) || c.palette.danger.plainColor, p = (l == null ? void 0 : l.border_color) || null, S = (l == null ? void 0 : l.background_color) || c.surfaceVariant || "", g = (_ = e.branding) == null ? void 0 : _.images, i = o ? (g == null ? void 0 : g.mobile_logo) || (g == null ? void 0 : g.main_logo) || "" : (g == null ? void 0 : g.main_logo) || "";
652
652
  return /* @__PURE__ */ t(ke, { brandingBorderColor: p, children: /* @__PURE__ */ t(
653
- $e,
653
+ Ae,
654
654
  {
655
655
  entity: {
656
656
  ...e,
@@ -700,7 +700,7 @@ const ke = ({
700
700
  compactCards: g = !1
701
701
  }) => {
702
702
  var ze, We, _e, Oe;
703
- const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), C = Se(), E = n || c, V = l || r, f = S === "standard", L = S === "overlay", H = f ? Ge(c) : "", W = H ? H.replace(/[^\d,]/g, "") : "", B = g ? i ? 80 : 110 : i ? 100 : 140, T = g ? i ? 104 : 143 : i ? 130 : 180, N = g ? i ? 90 : 130 : i ? 120 : 180, b = g ? i ? "16px" : "32px" : i ? "24px" : "48px", X = g ? i ? "12px" : "32px" : i ? "16px" : "48px", R = Ie(r, O), k = JSON.parse(e.body), $ = k.segments || [], F = e.labels || {}, j = k.mode || ((ze = k.config) == null ? void 0 : ze.mode) || "fair", P = ((We = k.config) == null ? void 0 : We.pace) || "normal", U = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
703
+ const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), C = Se(), E = n || c, V = l || r, f = S === "standard", L = S === "overlay", H = f ? Ce(c) : "", W = H ? H.replace(/[^\d,]/g, "") : "", B = g ? i ? 80 : 110 : i ? 100 : 140, T = g ? i ? 104 : 143 : i ? 130 : 180, N = g ? i ? 90 : 130 : i ? 120 : 180, b = g ? i ? "16px" : "32px" : i ? "24px" : "48px", X = g ? i ? "12px" : "32px" : i ? "16px" : "48px", R = Ee(r, O), k = JSON.parse(e.body), $ = k.segments || [], F = e.labels || {}, j = k.mode || ((ze = k.config) == null ? void 0 : ze.mode) || "fair", P = ((We = k.config) == null ? void 0 : We.pace) || "normal", U = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
704
704
  var J;
705
705
  return (J = ae.images) == null ? void 0 : J.idle;
706
706
  }), {
@@ -719,9 +719,9 @@ const ke = ({
719
719
  loseAnimationDuration: Pe,
720
720
  handlePick: Re,
721
721
  handleReset: ge
722
- } = ut({ segments: $, mode: j, pace: P, revealAll: U }), Fe = () => /* @__PURE__ */ w(re, { children: [
722
+ } = pt({ segments: $, mode: j, pace: P, revealAll: U }), Fe = () => /* @__PURE__ */ w(re, { children: [
723
723
  A && /* @__PURE__ */ t(
724
- Ee,
724
+ Ge,
725
725
  {
726
726
  primaryColor: r,
727
727
  isDark: O,
@@ -942,7 +942,7 @@ const ke = ({
942
942
  transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${J * 100}ms`
943
943
  },
944
944
  children: I ? /* @__PURE__ */ t(
945
- ht,
945
+ gt,
946
946
  {
947
947
  segment: ae,
948
948
  index: J,
@@ -961,7 +961,7 @@ const ke = ({
961
961
  onPick: () => Re(J, !0)
962
962
  }
963
963
  ) : /* @__PURE__ */ t(
964
- xt,
964
+ bt,
965
965
  {
966
966
  segment: ae,
967
967
  index: J,
@@ -1214,7 +1214,7 @@ const ke = ({
1214
1214
  defaultImagePlaceholderUrl: r
1215
1215
  }) => {
1216
1216
  var i, u, _;
1217
- const { t: x } = se(), o = K(), c = ie(), d = Ce() === "dark", n = pe(
1217
+ const { t: x } = se(), o = K(), c = ie(), d = Te() === "dark", n = pe(
1218
1218
  {
1219
1219
  images: e.images,
1220
1220
  imagePlaceholder: r || ""
@@ -1222,7 +1222,7 @@ const ke = ({
1222
1222
  fe.STANDARD
1223
1223
  ), l = (i = e.branding) == null ? void 0 : i.colors, z = (l == null ? void 0 : l.primary_color) || c.palette.primary.plainColor, O = (l == null ? void 0 : l.border_color) || null, p = (l == null ? void 0 : l.background_color) || c.surfaceVariant || "", S = (u = e.branding) == null ? void 0 : u.images, g = o ? (S == null ? void 0 : S.mobile_logo) || (S == null ? void 0 : S.main_logo) || "" : (S == null ? void 0 : S.main_logo) || "";
1224
1224
  return /* @__PURE__ */ t(ke, { brandingBorderColor: O, children: /* @__PURE__ */ t(
1225
- $e,
1225
+ Ae,
1226
1226
  {
1227
1227
  entity: {
1228
1228
  ...e,
@@ -1306,7 +1306,7 @@ const ke = ({
1306
1306
  defaultImagePlaceholderUrl: a
1307
1307
  }) => {
1308
1308
  var f, L, H, W, B, T, N, b, X, R, k, $, F, j, P, U, A, I, v;
1309
- const { t: r } = se(), x = K(), o = Te(), c = xe(), d = ((f = e.branding) == null ? void 0 : f.colors) || null, n = (L = e.branding) == null ? void 0 : L.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", z = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
1309
+ const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((f = e.branding) == null ? void 0 : f.colors) || null, n = (L = e.branding) == null ? void 0 : L.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", z = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
1310
1310
  {
1311
1311
  images: e.images,
1312
1312
  imagePlaceholder: O
@@ -1325,7 +1325,7 @@ const ke = ({
1325
1325
  textColor: g
1326
1326
  });
1327
1327
  return /* @__PURE__ */ t(
1328
- Ae,
1328
+ Ie,
1329
1329
  {
1330
1330
  entity: {
1331
1331
  ...e,
@@ -1359,7 +1359,7 @@ const ke = ({
1359
1359
  }
1360
1360
  );
1361
1361
  }, Ft = (e) => {
1362
- const s = we().secondary, a = Ke(), r = e.isSplitVariant && a, x = K(), o = gt(e.primaryUrl, e.secondaryUrl, "logo");
1362
+ const s = we().secondary, a = et(), r = e.isSplitVariant && a, x = K(), o = Je(e.primaryUrl, e.secondaryUrl, "logo");
1363
1363
  if (!e.brandingLogo)
1364
1364
  return null;
1365
1365
  const c = () => {
@@ -1469,7 +1469,7 @@ const ke = ({
1469
1469
  defaultImagePlaceholderUrl: a
1470
1470
  }) => {
1471
1471
  var L, H, W, B, T, N, b, X, R, k, $, F, j, P, U, A, I, v, ee, te, Y, G, q, M, Q, oe, ce;
1472
- const { t: r } = se(), x = K(), o = Te(), c = xe(), d = ((L = e.branding) == null ? void 0 : L.colors) || null, n = (H = e.branding) == null ? void 0 : H.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", z = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
1472
+ const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((L = e.branding) == null ? void 0 : L.colors) || null, n = (H = e.branding) == null ? void 0 : H.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", z = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
1473
1473
  {
1474
1474
  images: e.images,
1475
1475
  imagePlaceholder: O
@@ -1488,7 +1488,7 @@ const ke = ({
1488
1488
  textColor: g
1489
1489
  });
1490
1490
  return /* @__PURE__ */ w(
1491
- Ae,
1491
+ Ie,
1492
1492
  {
1493
1493
  entity: {
1494
1494
  ...e,
@@ -1531,21 +1531,21 @@ const ke = ({
1531
1531
  }
1532
1532
  );
1533
1533
  }, Wt = (e) => {
1534
- const { infoPage: s } = yt(e.entityId, "chance-game", e.sdk), a = () => {
1534
+ const { infoPage: s } = ct(e.entityId, "chance-game", e.sdk), a = () => {
1535
1535
  if (s && s.id !== "not-found") {
1536
- const o = Object.keys(bt);
1536
+ const o = Object.keys(Ke);
1537
1537
  if (s.language && o.includes(s.language))
1538
1538
  return s.language;
1539
1539
  if (s.language)
1540
1540
  return "en";
1541
1541
  }
1542
1542
  return e.language || "en";
1543
- }, [r, x] = nt(!1);
1544
- if (rt(() => {
1543
+ }, [r, x] = qe(!1);
1544
+ if (Qe(() => {
1545
1545
  const o = a();
1546
- qe(o).then(() => x(!0));
1546
+ tt(o).then(() => x(!0));
1547
1547
  }, [e.language, s]), !s || !r)
1548
- return /* @__PURE__ */ t(lt, { my: 20 });
1548
+ return /* @__PURE__ */ t(at, { my: 20 });
1549
1549
  if (s.id === "not-found")
1550
1550
  return /* @__PURE__ */ t(St, { template: e.template });
1551
1551
  if (e.template === ue.STANDARD) {
@@ -1582,7 +1582,7 @@ const ke = ({
1582
1582
  }
1583
1583
  );
1584
1584
  }
1585
- return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(ye, { infoPage: s }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(ft, { infoPage: s }) : /* @__PURE__ */ t(pt, { infoPage: s });
1585
+ return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(ye, { infoPage: s }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(yt, { infoPage: s }) : /* @__PURE__ */ t(vt, { infoPage: s });
1586
1586
  }, _t = (e) => {
1587
1587
  const [s, a] = Z.useState(!1), r = Z.useRef(
1588
1588
  `chance-game-shadow-root-${Math.random().toString(36).substring(2, 11)}`
@@ -1591,7 +1591,7 @@ const ke = ({
1591
1591
  if (x.current)
1592
1592
  return x.current.shadowRoot ? (o.current = x.current.shadowRoot, c.current = o.current.getElementById(
1593
1593
  r.current
1594
- ), c.current || (c.current = document.createElement("div"), c.current.id = r.current, o.current.appendChild(c.current))) : (o.current = x.current.attachShadow({ mode: "open" }), c.current = document.createElement("div"), c.current.id = r.current, o.current.appendChild(c.current)), d.current || (d.current = Qe({
1594
+ ), c.current || (c.current = document.createElement("div"), c.current.id = r.current, o.current.appendChild(c.current))) : (o.current = x.current.attachShadow({ mode: "open" }), c.current = document.createElement("div"), c.current.id = r.current, o.current.appendChild(c.current)), d.current || (d.current = ot({
1595
1595
  key: "chance-game-css",
1596
1596
  prepend: !0,
1597
1597
  container: o.current
@@ -1602,15 +1602,15 @@ const ke = ({
1602
1602
  const n = e.themeOptions, l = {
1603
1603
  ...n,
1604
1604
  mode: e.template === ue.OVERLAY ? "dark" : n == null ? void 0 : n.mode
1605
- }, z = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? vt(
1606
- /* @__PURE__ */ t(Ze, { value: d.current, children: /* @__PURE__ */ t(et, { containerRef: x, children: /* @__PURE__ */ t(
1607
- tt,
1605
+ }, z = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? st(
1606
+ /* @__PURE__ */ t(nt, { value: d.current, children: /* @__PURE__ */ t(rt, { containerRef: x, children: /* @__PURE__ */ t(
1607
+ lt,
1608
1608
  {
1609
1609
  customTheme: l,
1610
1610
  mode: l == null ? void 0 : l.mode,
1611
1611
  shadowRootElement: c.current,
1612
1612
  children: /* @__PURE__ */ t(
1613
- ot,
1613
+ it,
1614
1614
  {
1615
1615
  shadowRootElement: c.current,
1616
1616
  leadPhoneCountryCode: null,