fansunited-frontend-components 0.0.47 → 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 (67) hide show
  1. package/ChanceGame.js +81 -81
  2. package/ClassicQuizPlay.js +1437 -1477
  3. package/CollectLead.js +32 -32
  4. package/Discussion.js +1 -1
  5. package/EitherOrPlay.js +60 -60
  6. package/EventGamePlay.js +22 -22
  7. package/Leaderboard.js +41 -41
  8. package/MatchQuizPlay.js +25 -25
  9. package/PersonalityQuizPlay.js +1330 -45792
  10. package/PickThePair.js +92 -92
  11. package/PollVote.js +55 -55
  12. package/Predictor.js +10543 -10053
  13. package/README.md +272 -0
  14. package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +4 -0
  15. package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +4 -0
  16. package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +4 -0
  17. package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +4 -0
  18. package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +4 -0
  19. package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +4 -0
  20. package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +4 -0
  21. package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +4 -0
  22. package/chunks/{AlertMessage-DEQIOPix.js → AlertMessage-Ds45MBHB.js} +16 -16
  23. package/chunks/{ArrowRightAlt-B2nkus4s.js → ArrowRightAlt-DKADQN2o.js} +1 -1
  24. package/chunks/{Avatar-C9PZ4fZC.js → Avatar-K1EWhhkA.js} +24 -24
  25. package/chunks/{ChanceGameEmbedVariant-Bb_hUXEk.js → ChanceGameEmbedVariant-DqFg4YKU.js} +24 -24
  26. package/chunks/{CheckCircle-RcO0pr0f.js → CheckCircle-CV9iMpkZ.js} +30 -30
  27. package/chunks/{Close-QIefKug3.js → Close-BHp4N1-6.js} +3 -3
  28. package/chunks/{Close-CzCzTDc8.js → Close-C6Cw96SJ.js} +1 -1
  29. package/chunks/{CollectLeadForm-DFIhLeYH.js → CollectLeadForm-DnLKA8qz.js} +133 -133
  30. package/chunks/{Divider-DPp2a61F.js → Divider-BvUimRFw.js} +10 -10
  31. package/chunks/{Edit-Bb8BBw7A.js → Edit-CZ3ni-Ur.js} +20 -20
  32. package/chunks/{EmojiEvents-BhDSwudY.js → EmojiEvents-DpmLq98V.js} +4 -4
  33. package/chunks/{FavoriteBorder-B73FKZ3W.js → FavoriteBorder-DUK_DrY4.js} +1 -1
  34. package/chunks/{FormControl-DzsevPhU.js → FormControl-BUItlVIg.js} +47 -47
  35. package/chunks/{FormLabel-CYBeKW8B.js → FormLabel-CeTNPUn7.js} +13 -13
  36. package/chunks/{Input-eeZp8VCW.js → Input-MJCQcYzo.js} +13 -13
  37. package/chunks/{KeyboardArrowDown-BWtUKUIp.js → KeyboardArrowDown-SZpn2GhJ.js} +5 -5
  38. package/chunks/{ModalDialog-BF0aFU49.js → ModalDialog-Cfgv9UAA.js} +42 -42
  39. package/chunks/{NotFoundSkeleton-B_cooMQ9.js → NotFoundSkeleton-Cs6DtD9u.js} +83 -83
  40. package/chunks/{Notification-DAj7523J.js → Notification-pcKtlRms.js} +27 -27
  41. package/chunks/{OverlayApiErrorSkeleton-CiVtcOmG.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +19 -19
  42. package/chunks/{OverlayLeadAfterCollection-Df7xGLgO.js → OverlayLeadAfterCollection-F2TAV9wK.js} +7 -7
  43. package/chunks/{OverlayScoreStateSkeleton-CHzX1Gf7.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
  44. package/chunks/{Person-C0oARTCn.js → Person-BGdniS_p.js} +27 -27
  45. package/chunks/{PickOneOfX-CXiNBq-I.js → PickOneOfX-Ci4ZJf7G.js} +1 -1
  46. package/chunks/{Popper-D4TcZDq1.js → Popper-DOVSI4rJ.js} +28 -28
  47. package/chunks/{Portal-BNrzAjXr.js → Portal-Cs0dgwmH.js} +8 -8
  48. package/chunks/{PrizeCard-B0HczmXj.js → PrizeCard-DF3QxwQJ.js} +690 -634
  49. package/chunks/{Select-BpXJGPDL.js → Select-BHeTdOYr.js} +139 -139
  50. package/chunks/{Spinner-VF7pS8cz.js → Spinner-DbUB64Gj.js} +7 -7
  51. package/chunks/{SplitLeadAfterCollection-BVHQGprp.js → SplitLeadAfterCollection-DSw6X5fx.js} +12 -12
  52. package/chunks/{Stack-DchTYx6z.js → Stack-BpHk5eb0.js} +21 -21
  53. package/chunks/StandardContentSkeleton-Bae1LLQ_.js +57 -0
  54. package/chunks/{Tabs-CDt4yvnj.js → Tabs-hwJ7jsUl.js} +62 -62
  55. package/chunks/{Textarea-DCPE5K26.js → Textarea-zOtMdgc5.js} +42 -42
  56. package/chunks/{TimerOutlined-azUFE6Ed.js → TimerOutlined-DWE7f0YX.js} +3 -3
  57. package/chunks/{helpers-CV2Mo9Pu.js → helpers-NuC1SzL3.js} +8 -8
  58. package/chunks/index-BaypiKlO.js +4 -0
  59. package/chunks/{index-B2OgR4TV.js → index-D1K1OB4p.js} +144 -130
  60. package/chunks/{main-BSaQcsoh.js → main-hB01WcoP.js} +89 -89
  61. package/chunks/{useEventCallback-BlWyXJSF.js → useEventCallback-CizlfWBo.js} +5 -5
  62. package/chunks/{useForwardedInput-BFETxKKi.js → useForwardedInput-RWDntqBU.js} +16 -16
  63. package/chunks/{useImageVariant-DalagjyR.js → useImageVariant-Cex1eIqq.js} +3 -3
  64. package/index.d.ts.map +1 -1
  65. package/index.js +17 -12
  66. package/package.json +1 -1
  67. package/chunks/index-DEdShMam.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 { h as Ce, g as Je, l as Ke } from "./chunks/helpers-CV2Mo9Pu.js";
3
- import Q, { useState as qe, useEffect as Ze } from "react";
4
- import { m as K, ab as Qe, t as ve, k as ie, a0 as Se, B as m, Z as se, ag as ue, r as we, o as xe, T as D, $ as he, ah as Te, W as fe, n as $e, ai as et, i as tt, ac as ne, g as ot, C as nt, h as rt, E as lt, j as it } from "./chunks/PrizeCard-B0HczmXj.js";
5
- import { S as at } from "./chunks/Spinner-VF7pS8cz.js";
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
6
  import { createPortal as st } from "react-dom";
7
7
  import { u as ct } from "./chunks/useInfoPage-BHdgKdme.js";
8
- import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-B_cooMQ9.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-CXiNBq-I.js";
10
- import { u as pe, d as He, a as Ne } from "./chunks/useImageVariant-DalagjyR.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 = Qe(), 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
  {
@@ -42,7 +42,7 @@ const ke = ({
42
42
  }
43
43
  );
44
44
  return e === ue.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
45
- }, Ve = ({
45
+ }, Me = ({
46
46
  infoPage: e,
47
47
  enableReset: s = !1,
48
48
  contentColor: a,
@@ -53,11 +53,11 @@ const ke = ({
53
53
  dangerColor: d,
54
54
  brandingLogo: n,
55
55
  isDark: l = !1,
56
- showTitleBlock: F = !1,
56
+ showTitleBlock: z = !1,
57
57
  variant: O
58
58
  }) => {
59
- var G, q, V;
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), M = 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 = ((V = E.config) == null ? void 0 : V.decorations) ?? !1, B = Ee(r, l), {
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 = Ee(r, l), {
61
61
  isSpinning: T,
62
62
  finalRotation: N,
63
63
  selectedSegment: b,
@@ -65,7 +65,7 @@ const ke = ({
65
65
  showResultScreen: R,
66
66
  showInlineResult: k,
67
67
  hasEntered: $,
68
- confettiActive: z,
68
+ confettiActive: F,
69
69
  spinDuration: j,
70
70
  shakeAnimationDuration: P,
71
71
  confettiVelocityMultiplier: U,
@@ -73,7 +73,7 @@ const ke = ({
73
73
  handleSpin: I,
74
74
  handleReset: v,
75
75
  onConfettiComplete: ee
76
- } = mt({ segments: M, 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
78
  Ge,
79
79
  {
@@ -85,7 +85,7 @@ const ke = ({
85
85
  /* @__PURE__ */ t(
86
86
  ut,
87
87
  {
88
- active: z,
88
+ active: F,
89
89
  primaryColor: r,
90
90
  velocityMultiplier: U,
91
91
  gravity: A,
@@ -107,7 +107,7 @@ const ke = ({
107
107
  }
108
108
  ),
109
109
  !R && /* @__PURE__ */ w(re, { children: [
110
- F && (e.title || e.subtitle) && /* @__PURE__ */ w(
110
+ z && (e.title || e.subtitle) && /* @__PURE__ */ w(
111
111
  m,
112
112
  {
113
113
  sx: {
@@ -248,7 +248,7 @@ const ke = ({
248
248
  display: "flex",
249
249
  alignItems: "center",
250
250
  justifyContent: "center",
251
- cursor: T || z || k || !R && !k && b !== null ? "default" : "pointer",
251
+ cursor: T || F || k || !R && !k && b !== null ? "default" : "pointer",
252
252
  userSelect: "none",
253
253
  zIndex: 1,
254
254
  // Entrance animation
@@ -271,7 +271,7 @@ const ke = ({
271
271
  /* @__PURE__ */ t(
272
272
  ht,
273
273
  {
274
- segmentCount: M.length,
274
+ segmentCount: V.length,
275
275
  decorations: W,
276
276
  primaryColor: r
277
277
  }
@@ -279,7 +279,7 @@ const ke = ({
279
279
  /* @__PURE__ */ t(
280
280
  xt,
281
281
  {
282
- segments: M,
282
+ segments: V,
283
283
  secondaryColor: x,
284
284
  primaryColor: r,
285
285
  onPrimaryColor: o,
@@ -358,7 +358,7 @@ const ke = ({
358
358
  he,
359
359
  {
360
360
  variant: "soft",
361
- disabled: T || z || !R && !k && b !== null,
361
+ disabled: T || F || !R && !k && b !== null,
362
362
  onClick: I,
363
363
  sx: {
364
364
  borderRadius: g.xl,
@@ -451,7 +451,7 @@ const ke = ({
451
451
  ] })
452
452
  ] });
453
453
  if (y) {
454
- const Z = Ce(c), oe = Z ? Z.replace(/[^\d,]/g, "") : "";
454
+ const Q = Ce(c), oe = Q ? Q.replace(/[^\d,]/g, "") : "";
455
455
  return /* @__PURE__ */ w(
456
456
  m,
457
457
  {
@@ -648,7 +648,7 @@ const ke = ({
648
648
  imagePlaceholder: r || ""
649
649
  },
650
650
  fe.STANDARD
651
- ), l = (u = e.branding) == null ? void 0 : u.colors, F = (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) || "";
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
653
  Ae,
654
654
  {
@@ -662,18 +662,18 @@ const ke = ({
662
662
  finalImage: n,
663
663
  imagePosition: a,
664
664
  children: /* @__PURE__ */ t(
665
- Ve,
665
+ Me,
666
666
  {
667
667
  infoPage: e,
668
668
  enableReset: s,
669
669
  contentColor: (l == null ? void 0 : l.content_color) || c.textColor,
670
- primaryColor: F,
670
+ primaryColor: z,
671
671
  secondaryColor: O,
672
672
  onPrimaryColor: c.palette.primary.onPrimary,
673
673
  borderColor: p || void 0,
674
674
  backgroundColor: S,
675
675
  dangerColor: c.palette.danger.plainColor,
676
- shimmerColor: F,
676
+ shimmerColor: z,
677
677
  brandingLogo: i,
678
678
  isDark: d,
679
679
  showTitleBlock: !1,
@@ -682,7 +682,7 @@ const ke = ({
682
682
  )
683
683
  }
684
684
  ) });
685
- }, Me = ({
685
+ }, Ve = ({
686
686
  infoPage: e,
687
687
  enableReset: s = !1,
688
688
  contentColor: a,
@@ -693,14 +693,14 @@ const ke = ({
693
693
  dangerColor: d,
694
694
  cardBaseColor: n,
695
695
  shimmerColor: l,
696
- brandingLogo: F = "",
696
+ brandingLogo: z = "",
697
697
  isDark: O = !1,
698
698
  showTitleBlock: p = !1,
699
699
  variant: S,
700
700
  compactCards: g = !1
701
701
  }) => {
702
- var Fe, We, _e, Oe;
703
- const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), C = Se(), E = n || c, M = 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 || [], z = e.labels || {}, j = k.mode || ((Fe = k.config) == null ? void 0 : Fe.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) => {
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 ? 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
  }), {
@@ -710,8 +710,8 @@ const ke = ({
710
710
  showResultScreen: Y,
711
711
  showInlineResult: G,
712
712
  showLoseAnimation: q,
713
- hasEntered: V,
714
- flippedCards: Z,
713
+ hasEntered: M,
714
+ flippedCards: Q,
715
715
  crossfadedCards: oe,
716
716
  revealedOtherCards: ce,
717
717
  flipDuration: Xe,
@@ -719,7 +719,7 @@ const ke = ({
719
719
  loseAnimationDuration: Pe,
720
720
  handlePick: Re,
721
721
  handleReset: ge
722
- } = pt({ segments: $, mode: j, pace: P, revealAll: U }), ze = () => /* @__PURE__ */ w(re, { children: [
722
+ } = pt({ segments: $, mode: j, pace: P, revealAll: U }), Fe = () => /* @__PURE__ */ w(re, { children: [
723
723
  A && /* @__PURE__ */ t(
724
724
  Ge,
725
725
  {
@@ -738,7 +738,7 @@ const ke = ({
738
738
  primaryColor: r,
739
739
  onPrimaryColor: x,
740
740
  borderColor: o,
741
- disclaimer: f ? void 0 : z.disclaimer,
741
+ disclaimer: f ? void 0 : F.disclaimer,
742
742
  enableReset: s,
743
743
  onReset: ge
744
744
  }
@@ -835,7 +835,7 @@ const ke = ({
835
835
  }
836
836
  ),
837
837
  /* @__PURE__ */ w(m, { children: [
838
- !f && z.welcome && /* @__PURE__ */ t(
838
+ !f && F.welcome && /* @__PURE__ */ t(
839
839
  D,
840
840
  {
841
841
  level: "body-md",
@@ -847,10 +847,10 @@ const ke = ({
847
847
  textAlign: "center",
848
848
  mb: L ? 0 : h.md
849
849
  },
850
- children: z.welcome
850
+ children: F.welcome
851
851
  }
852
852
  ),
853
- z.instructions && !G && /* @__PURE__ */ t(
853
+ F.instructions && !G && /* @__PURE__ */ t(
854
854
  D,
855
855
  {
856
856
  level: f ? "body-sm" : "body-md",
@@ -863,7 +863,7 @@ const ke = ({
863
863
  opacity: 0.7,
864
864
  maxWidth: f ? "400px" : "600px"
865
865
  },
866
- children: z.instructions
866
+ children: F.instructions
867
867
  }
868
868
  )
869
869
  ] }),
@@ -928,7 +928,7 @@ const ke = ({
928
928
  perspective: "1200px"
929
929
  },
930
930
  children: (ee ?? $).map((ae, J) => {
931
- const be = `card-${J}`, de = v !== null, Be = Z.has(be), me = ce.has(be), Ue = de && !Be && !me, De = oe.has(be), Ye = de && !De && !me;
931
+ const be = `card-${J}`, de = v !== null, Be = Q.has(be), me = ce.has(be), Ue = de && !Be && !me, De = oe.has(be), Ye = de && !De && !me;
932
932
  return /* @__PURE__ */ t(
933
933
  m,
934
934
  {
@@ -937,8 +937,8 @@ const ke = ({
937
937
  justifyContent: "center",
938
938
  alignItems: "center",
939
939
  // Staggered deal-in entrance
940
- opacity: V ? 1 : 0,
941
- transform: V ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
940
+ opacity: M ? 1 : 0,
941
+ transform: M ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
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(
@@ -952,7 +952,7 @@ const ke = ({
952
952
  isOtherRevealed: me,
953
953
  shouldDim: Ye,
954
954
  isRevealed: de,
955
- hasEntered: V,
955
+ hasEntered: M,
956
956
  objectSize: N,
957
957
  crossfadeDuration: je,
958
958
  isStandard: f,
@@ -971,18 +971,18 @@ const ke = ({
971
971
  shouldDim: Ue,
972
972
  isRevealed: de,
973
973
  showLoseAnimation: q,
974
- hasEntered: V,
974
+ hasEntered: M,
975
975
  cardWidth: B,
976
976
  cardHeight: T,
977
977
  flipDuration: Xe,
978
978
  loseAnimationDuration: Pe,
979
979
  cardBaseColor: E,
980
- shimmerColor: M,
980
+ shimmerColor: V,
981
981
  primaryColor: r,
982
982
  contentColor: a,
983
983
  dangerColor: d,
984
984
  borderColor: o,
985
- brandingLogo: F,
985
+ brandingLogo: z,
986
986
  compactCards: g,
987
987
  onPick: () => Re(J, !1)
988
988
  }
@@ -1073,7 +1073,7 @@ const ke = ({
1073
1073
  boxSizing: "border-box"
1074
1074
  },
1075
1075
  children: [
1076
- !Y && z.welcome && /* @__PURE__ */ t(
1076
+ !Y && F.welcome && /* @__PURE__ */ t(
1077
1077
  D,
1078
1078
  {
1079
1079
  level: "body-md",
@@ -1085,7 +1085,7 @@ const ke = ({
1085
1085
  textAlign: "center",
1086
1086
  px: h.md
1087
1087
  },
1088
- children: z.welcome
1088
+ children: F.welcome
1089
1089
  }
1090
1090
  ),
1091
1091
  /* @__PURE__ */ t(
@@ -1124,7 +1124,7 @@ const ke = ({
1124
1124
  position: "relative",
1125
1125
  overflow: "hidden"
1126
1126
  },
1127
- children: ze()
1127
+ children: Fe()
1128
1128
  }
1129
1129
  ),
1130
1130
  G && (v == null ? void 0 : v.results) && /* @__PURE__ */ t(
@@ -1140,7 +1140,7 @@ const ke = ({
1140
1140
  sx: { mb: h.md }
1141
1141
  }
1142
1142
  ),
1143
- (F || z.disclaimer) && /* @__PURE__ */ w(
1143
+ (z || F.disclaimer) && /* @__PURE__ */ w(
1144
1144
  m,
1145
1145
  {
1146
1146
  sx: {
@@ -1150,7 +1150,7 @@ const ke = ({
1150
1150
  gap: h.md
1151
1151
  },
1152
1152
  children: [
1153
- z.disclaimer && /* @__PURE__ */ t(
1153
+ F.disclaimer && /* @__PURE__ */ t(
1154
1154
  D,
1155
1155
  {
1156
1156
  level: "body-sm",
@@ -1164,13 +1164,13 @@ const ke = ({
1164
1164
  maxWidth: "900px",
1165
1165
  lineHeight: 1.4
1166
1166
  },
1167
- children: z.disclaimer
1167
+ children: F.disclaimer
1168
1168
  }
1169
1169
  ),
1170
- F && I && /* @__PURE__ */ t(
1170
+ z && I && /* @__PURE__ */ t(
1171
1171
  "img",
1172
1172
  {
1173
- src: F,
1173
+ src: z,
1174
1174
  alt: "Brand Logo",
1175
1175
  style: {
1176
1176
  height: "auto",
@@ -1204,7 +1204,7 @@ const ke = ({
1204
1204
  overflow: "auto",
1205
1205
  boxSizing: "border-box"
1206
1206
  },
1207
- children: ze()
1207
+ children: Fe()
1208
1208
  }
1209
1209
  );
1210
1210
  }, kt = ({
@@ -1220,7 +1220,7 @@ const ke = ({
1220
1220
  imagePlaceholder: r || ""
1221
1221
  },
1222
1222
  fe.STANDARD
1223
- ), l = (i = e.branding) == null ? void 0 : i.colors, F = (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) || "";
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
1225
  Ae,
1226
1226
  {
@@ -1236,18 +1236,18 @@ const ke = ({
1236
1236
  finalImage: n,
1237
1237
  imagePosition: a,
1238
1238
  children: /* @__PURE__ */ t(
1239
- Me,
1239
+ Ve,
1240
1240
  {
1241
1241
  infoPage: e,
1242
1242
  enableReset: s,
1243
1243
  contentColor: (l == null ? void 0 : l.content_color) || c.textPrimary,
1244
- primaryColor: F,
1244
+ primaryColor: z,
1245
1245
  onPrimaryColor: (l == null ? void 0 : l.content_color) || c.palette.primary.onPrimary || c.surface,
1246
1246
  borderColor: O || void 0,
1247
1247
  backgroundColor: p,
1248
1248
  dangerColor: c.palette.danger.plainColor,
1249
1249
  cardBaseColor: p,
1250
- shimmerColor: F,
1250
+ shimmerColor: z,
1251
1251
  brandingLogo: g,
1252
1252
  isDark: d,
1253
1253
  showTitleBlock: !1,
@@ -1305,14 +1305,14 @@ const ke = ({
1305
1305
  enableReset: s = !1,
1306
1306
  defaultImagePlaceholderUrl: a
1307
1307
  }) => {
1308
- var f, L, H, W, B, T, N, b, X, R, k, $, z, j, P, U, A, I, v;
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) || "", F = 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(
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 = $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
1313
1313
  },
1314
1314
  fe.OVERLAY
1315
- ), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (B = (W = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : W.palette) == null ? void 0 : B.primary) == null ? void 0 : T.plainColor), u = (R = (X = (b = (N = o.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : b.palette) == null ? void 0 : X.primary) == null ? void 0 : R.onPrimary, _ = (d == null ? void 0 : d.background_color) || (($ = (k = o.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : $.surfaceVariant), y = (U = (P = (j = (z = o.colorSchemes) == null ? void 0 : z.light) == null ? void 0 : j.palette) == null ? void 0 : P.danger) == null ? void 0 : U.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, M = Le({
1315
+ ), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (B = (W = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : W.palette) == null ? void 0 : B.primary) == null ? void 0 : T.plainColor), u = (R = (X = (b = (N = o.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : b.palette) == null ? void 0 : X.primary) == null ? void 0 : R.onPrimary, _ = (d == null ? void 0 : d.background_color) || (($ = (k = o.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : $.surfaceVariant), y = (U = (P = (j = (F = o.colorSchemes) == null ? void 0 : F.light) == null ? void 0 : j.palette) == null ? void 0 : P.danger) == null ? void 0 : U.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({
1316
1316
  spacingScale: c,
1317
1317
  mdBorderRadius: C,
1318
1318
  contentBgColor: _,
@@ -1337,8 +1337,8 @@ const ke = ({
1337
1337
  count: ((v = JSON.parse(e.body).segments) == null ? void 0 : v.length) || 0
1338
1338
  }),
1339
1339
  finalImage: p,
1340
- children: /* @__PURE__ */ t(m, { sx: M.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1341
- Me,
1340
+ children: /* @__PURE__ */ t(m, { sx: V.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1341
+ Ve,
1342
1342
  {
1343
1343
  infoPage: e,
1344
1344
  enableReset: s,
@@ -1349,7 +1349,7 @@ const ke = ({
1349
1349
  dangerColor: y,
1350
1350
  cardBaseColor: _,
1351
1351
  shimmerColor: i,
1352
- brandingLogo: F,
1352
+ brandingLogo: z,
1353
1353
  isDark: !0,
1354
1354
  showTitleBlock: !1,
1355
1355
  variant: "overlay",
@@ -1358,7 +1358,7 @@ const ke = ({
1358
1358
  ) })
1359
1359
  }
1360
1360
  );
1361
- }, zt = (e) => {
1361
+ }, Ft = (e) => {
1362
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;
@@ -1463,23 +1463,23 @@ const ke = ({
1463
1463
  ]
1464
1464
  }
1465
1465
  );
1466
- }, Ft = ({
1466
+ }, zt = ({
1467
1467
  infoPage: e,
1468
1468
  enableReset: s = !1,
1469
1469
  defaultImagePlaceholderUrl: a
1470
1470
  }) => {
1471
- var L, H, W, B, T, N, b, X, R, k, $, z, j, P, U, A, I, v, ee, te, Y, G, q, V, Z, oe, ce;
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) || "", F = 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(
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 = $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
1476
1476
  },
1477
1477
  fe.OVERLAY
1478
- ), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (B = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : B.palette) == null ? void 0 : T.primary) == null ? void 0 : N.plainColor), u = (d == null ? void 0 : d.secondary_color) || ((k = (R = (X = (b = o.colorSchemes) == null ? void 0 : b.light) == null ? void 0 : X.palette) == null ? void 0 : R.danger) == null ? void 0 : k.plainColor), _ = (P = (j = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.palette) == null ? void 0 : j.primary) == null ? void 0 : P.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (U = o.colorSchemes) == null ? void 0 : U.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (v = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : v.palette) == null ? void 0 : ee.danger) == null ? void 0 : te.plainColor, C = o.customFontFamily.dark.primary, E = o.customRadius.dark.md, M = (G = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : G.xl, f = Le({
1478
+ ), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (B = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : B.palette) == null ? void 0 : T.primary) == null ? void 0 : N.plainColor), u = (d == null ? void 0 : d.secondary_color) || ((k = (R = (X = (b = o.colorSchemes) == null ? void 0 : b.light) == null ? void 0 : X.palette) == null ? void 0 : R.danger) == null ? void 0 : k.plainColor), _ = (P = (j = (F = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : F.palette) == null ? void 0 : j.primary) == null ? void 0 : P.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (U = o.colorSchemes) == null ? void 0 : U.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (v = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : v.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({
1479
1479
  spacingScale: c,
1480
1480
  mdBorderRadius: E,
1481
1481
  contentBgColor: y,
1482
- buttonRadius: M,
1482
+ buttonRadius: V,
1483
1483
  primaryColor: i,
1484
1484
  onPrimaryColor: _,
1485
1485
  fontFamilyPrimary: C,
@@ -1500,7 +1500,7 @@ const ke = ({
1500
1500
  finalImage: p,
1501
1501
  children: [
1502
1502
  /* @__PURE__ */ t(m, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1503
- Ve,
1503
+ Me,
1504
1504
  {
1505
1505
  infoPage: e,
1506
1506
  enableReset: s,
@@ -1511,19 +1511,19 @@ const ke = ({
1511
1511
  backgroundColor: y,
1512
1512
  dangerColor: h,
1513
1513
  shimmerColor: i,
1514
- brandingLogo: F,
1514
+ brandingLogo: z,
1515
1515
  isDark: !0,
1516
1516
  showTitleBlock: !1,
1517
1517
  variant: "overlay"
1518
1518
  }
1519
1519
  ) }),
1520
1520
  /* @__PURE__ */ t(
1521
- zt,
1521
+ Ft,
1522
1522
  {
1523
- brandingLogo: F,
1523
+ brandingLogo: z,
1524
1524
  textColor: S,
1525
1525
  label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
1526
- primaryUrl: (Z = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Z.primary_url,
1526
+ primaryUrl: (Q = (M = e.branding) == null ? void 0 : M.urls) == null ? void 0 : Q.primary_url,
1527
1527
  secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
1528
1528
  }
1529
1529
  )
@@ -1541,7 +1541,7 @@ const ke = ({
1541
1541
  }
1542
1542
  return e.language || "en";
1543
1543
  }, [r, x] = qe(!1);
1544
- if (Ze(() => {
1544
+ if (Qe(() => {
1545
1545
  const o = a();
1546
1546
  tt(o).then(() => x(!0));
1547
1547
  }, [e.language, s]), !s || !r)
@@ -1575,7 +1575,7 @@ const ke = ({
1575
1575
  defaultImagePlaceholderUrl: o
1576
1576
  }
1577
1577
  ) : /* @__PURE__ */ t(
1578
- Ft,
1578
+ zt,
1579
1579
  {
1580
1580
  infoPage: s,
1581
1581
  defaultImagePlaceholderUrl: o
@@ -1584,10 +1584,10 @@ const ke = ({
1584
1584
  }
1585
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
- const [s, a] = Q.useState(!1), r = Q.useRef(
1587
+ const [s, a] = Z.useState(!1), r = Z.useRef(
1588
1588
  `chance-game-shadow-root-${Math.random().toString(36).substring(2, 11)}`
1589
- ), x = Q.useRef(null), o = Q.useRef(null), c = Q.useRef(null), d = Q.useRef(null);
1590
- Q.useEffect(() => {
1589
+ ), x = Z.useRef(null), o = Z.useRef(null), c = Z.useRef(null), d = Z.useRef(null);
1590
+ Z.useEffect(() => {
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
@@ -1602,7 +1602,7 @@ 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
- }, F = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? st(
1605
+ }, z = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? st(
1606
1606
  /* @__PURE__ */ t(nt, { value: d.current, children: /* @__PURE__ */ t(rt, { containerRef: x, children: /* @__PURE__ */ t(
1607
1607
  lt,
1608
1608
  {
@@ -1624,7 +1624,7 @@ const ke = ({
1624
1624
  c.current
1625
1625
  ) : null;
1626
1626
  return /* @__PURE__ */ w(re, { children: [
1627
- F,
1627
+ z,
1628
1628
  O
1629
1629
  ] });
1630
1630
  }, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Nt = Ot;