fansunited-frontend-components 0.0.49 → 0.0.51

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 (66) hide show
  1. package/Betslip.d.ts +5 -0
  2. package/Betslip.d.ts.map +1 -0
  3. package/Betslip.js +5 -0
  4. package/ChanceGame.js +87 -86
  5. package/ClassicQuizPlay.js +174 -173
  6. package/CollectLead.js +33 -32
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +171 -170
  9. package/EventGamePlay.js +25 -24
  10. package/Leaderboard.js +88 -87
  11. package/MatchQuizPlay.js +28 -27
  12. package/PersonalityQuizPlay.js +21 -20
  13. package/PickThePair.js +87 -86
  14. package/PollVote.js +19 -18
  15. package/Predictor.js +4756 -4693
  16. package/chunks/{AlertMessage-Ds45MBHB.js → AlertMessage-CQ9WJHSb.js} +25 -24
  17. package/chunks/{ArrowRightAlt-DKADQN2o.js → ArrowRightAlt-C1U8SNu-.js} +5 -5
  18. package/chunks/{Avatar-K1EWhhkA.js → Avatar-COVJnfGS.js} +79 -78
  19. package/chunks/Button-COvmPv4P.js +2270 -0
  20. package/chunks/{ChanceGameEmbedVariant-DqFg4YKU.js → ChanceGameEmbedVariant-lfZlSATv.js} +44 -43
  21. package/chunks/{CheckCircle-CV9iMpkZ.js → CheckCircle-h7-xLUq-.js} +27 -26
  22. package/chunks/{Close-C6Cw96SJ.js → Close-BTC6xyyj.js} +1 -1
  23. package/chunks/{Close-BHp4N1-6.js → Close-DBaorsP1.js} +1 -1
  24. package/chunks/{CollectLeadForm-DnLKA8qz.js → CollectLeadForm-O7Cpe0ix.js} +128 -127
  25. package/chunks/{Divider-BvUimRFw.js → Divider-DBCeQt9x.js} +15 -14
  26. package/chunks/{Edit-CZ3ni-Ur.js → Edit-BwwxJdNv.js} +35 -34
  27. package/chunks/{EmojiEvents-DpmLq98V.js → EmojiEvents-DVPGlTU_.js} +3 -3
  28. package/chunks/{FavoriteBorder-DUK_DrY4.js → FavoriteBorder-BnhfbKy1.js} +1 -1
  29. package/chunks/{FormControl-BUItlVIg.js → FormControl-COjw1gQd.js} +38 -37
  30. package/chunks/{FormLabel-CeTNPUn7.js → FormLabel-e5_v5cjP.js} +18 -17
  31. package/chunks/{Input-MJCQcYzo.js → Input-er-Yyqtt.js} +17 -16
  32. package/chunks/{KeyboardArrowDown-SZpn2GhJ.js → KeyboardArrowDown-BeaYH92n.js} +1 -1
  33. package/chunks/{ModalDialog-Cfgv9UAA.js → ModalDialog-XkhZtgYm.js} +58 -57
  34. package/chunks/{NotFoundSkeleton-Cs6DtD9u.js → NotFoundSkeleton-C71TRYl5.js} +95 -94
  35. package/chunks/{Notification-pcKtlRms.js → Notification-CkPupg9q.js} +57 -56
  36. package/chunks/{OverlayApiErrorSkeleton-Dl3s5Oaf.js → OverlayApiErrorSkeleton-CkuDu9uV.js} +20 -19
  37. package/chunks/{OverlayLeadAfterCollection-F2TAV9wK.js → OverlayLeadAfterCollection-Dkxl4cKn.js} +28 -27
  38. package/chunks/{OverlayScoreStateSkeleton-LQ0svzeX.js → OverlayScoreStateSkeleton-RauDjIg5.js} +16 -15
  39. package/chunks/{Person-BGdniS_p.js → Person-WCt2MN5j.js} +32 -31
  40. package/chunks/{PickOneOfX-Ci4ZJf7G.js → PickOneOfX-DabfTR2W.js} +8 -7
  41. package/chunks/{Popper-DOVSI4rJ.js → Popper-OPgbZzY7.js} +127 -126
  42. package/chunks/{Portal-Cs0dgwmH.js → Portal-BQilulgu.js} +5 -5
  43. package/chunks/{PrizeCard-DF3QxwQJ.js → PrizeCard-DgHyperX.js} +5238 -6653
  44. package/chunks/{Select-BHeTdOYr.js → Select-9gmhEo71.js} +133 -132
  45. package/chunks/{Spinner-DbUB64Gj.js → Spinner-BoysVPn7.js} +12 -11
  46. package/chunks/{SplitLeadAfterCollection-DSw6X5fx.js → SplitLeadAfterCollection-C5oCDYT1.js} +15 -14
  47. package/chunks/{Stack-BpHk5eb0.js → Stack-INH9bhkC.js} +30 -29
  48. package/chunks/{StandardContentSkeleton-Bae1LLQ_.js → StandardContentSkeleton-DsAhzMfU.js} +1 -1
  49. package/chunks/{Tabs-hwJ7jsUl.js → Tabs-DaVatjCJ.js} +60 -59
  50. package/chunks/{Textarea-zOtMdgc5.js → Textarea-DeMxp3Zn.js} +48 -47
  51. package/chunks/{TimerOutlined-DWE7f0YX.js → TimerOutlined-DJh2vL3s.js} +3 -3
  52. package/chunks/{helpers-NuC1SzL3.js → helpers-Bd9FT9hj.js} +1 -1
  53. package/chunks/{index-D1K1OB4p.js → index-5MPtbA_r.js} +255 -239
  54. package/chunks/index-BjfKDjAM.js +4 -0
  55. package/chunks/main-Bx5W2XyO.js +1773 -0
  56. package/chunks/{main-hB01WcoP.js → main-DWw1vqVY.js} +38 -37
  57. package/chunks/{useEventCallback-CizlfWBo.js → useEventCallback-vbTEFVPa.js} +8 -7
  58. package/chunks/{useForwardedInput-RWDntqBU.js → useForwardedInput-DumYVfgj.js} +26 -25
  59. package/chunks/{useImageVariant-Cex1eIqq.js → useImageVariant-B1ObJh_B.js} +1 -1
  60. package/components.d.ts +2 -1
  61. package/components.d.ts.map +1 -1
  62. package/index.d.ts +1 -0
  63. package/index.d.ts.map +1 -1
  64. package/index.js +5 -3
  65. package/package.json +5 -1
  66. package/chunks/index-BaypiKlO.js +0 -4
package/Betslip.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { BetslipProps } from 'fansunited-frontend-core';
3
+
4
+ export declare const Betslip: React.FC<BetslipProps>;
5
+ //# sourceMappingURL=Betslip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Betslip.d.ts","sourceRoot":"","sources":["../../src/Betslip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAoB,CAAC"}
package/Betslip.js ADDED
@@ -0,0 +1,5 @@
1
+ import { M as o } from "./chunks/main-Bx5W2XyO.js";
2
+ const i = o;
3
+ export {
4
+ i as Betslip
5
+ };
package/ChanceGame.js CHANGED
@@ -1,13 +1,14 @@
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-NuC1SzL3.js";
2
+ import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-Bd9FT9hj.js";
3
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";
4
+ import { i as K, h as Ze, b as ve, a as ie, d as Se, B as m, f as se, G as ue, c as we, e as xe, y as Te, W as fe, u as $e, o as et, n as tt, w as ne, z as ot, A as nt, D as rt, E as lt, F as it } from "./chunks/PrizeCard-DgHyperX.js";
5
+ import { S as at } from "./chunks/Spinner-BoysVPn7.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-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";
8
+ import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-C71TRYl5.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-DabfTR2W.js";
10
+ import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-B1ObJh_B.js";
11
+ import { T as D, B as he } from "./chunks/Button-COvmPv4P.js";
11
12
  const ke = ({
12
13
  children: e,
13
14
  brandingBorderColor: s,
@@ -42,7 +43,7 @@ const ke = ({
42
43
  }
43
44
  );
44
45
  return e === ue.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
45
- }, Me = ({
46
+ }, Ve = ({
46
47
  infoPage: e,
47
48
  enableReset: s = !1,
48
49
  contentColor: a,
@@ -53,11 +54,11 @@ const ke = ({
53
54
  dangerColor: d,
54
55
  brandingLogo: n,
55
56
  isDark: l = !1,
56
- showTitleBlock: z = !1,
57
+ showTitleBlock: F = !1,
57
58
  variant: O
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 = Ee(r, l), {
60
+ var G, q, V;
61
+ 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), {
61
62
  isSpinning: T,
62
63
  finalRotation: N,
63
64
  selectedSegment: b,
@@ -65,15 +66,15 @@ const ke = ({
65
66
  showResultScreen: R,
66
67
  showInlineResult: k,
67
68
  hasEntered: $,
68
- confettiActive: F,
69
- spinDuration: j,
70
- shakeAnimationDuration: P,
71
- confettiVelocityMultiplier: U,
69
+ confettiActive: z,
70
+ spinDuration: P,
71
+ shakeAnimationDuration: U,
72
+ confettiVelocityMultiplier: j,
72
73
  confettiGravity: A,
73
74
  handleSpin: I,
74
75
  handleReset: v,
75
76
  onConfettiComplete: ee
76
- } = mt({ segments: V, mode: L, pace: H }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
77
+ } = mt({ segments: M, mode: L, pace: H }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
77
78
  W && /* @__PURE__ */ t(
78
79
  Ge,
79
80
  {
@@ -85,9 +86,9 @@ const ke = ({
85
86
  /* @__PURE__ */ t(
86
87
  ut,
87
88
  {
88
- active: F,
89
+ active: z,
89
90
  primaryColor: r,
90
- velocityMultiplier: U,
91
+ velocityMultiplier: j,
91
92
  gravity: A,
92
93
  onComplete: ee
93
94
  }
@@ -107,7 +108,7 @@ const ke = ({
107
108
  }
108
109
  ),
109
110
  !R && /* @__PURE__ */ w(re, { children: [
110
- z && (e.title || e.subtitle) && /* @__PURE__ */ w(
111
+ F && (e.title || e.subtitle) && /* @__PURE__ */ w(
111
112
  m,
112
113
  {
113
114
  sx: {
@@ -248,7 +249,7 @@ const ke = ({
248
249
  display: "flex",
249
250
  alignItems: "center",
250
251
  justifyContent: "center",
251
- cursor: T || F || k || !R && !k && b !== null ? "default" : "pointer",
252
+ cursor: T || z || k || !R && !k && b !== null ? "default" : "pointer",
252
253
  userSelect: "none",
253
254
  zIndex: 1,
254
255
  // Entrance animation
@@ -256,7 +257,7 @@ const ke = ({
256
257
  transform: $ ? "scale(1)" : "scale(0.85)",
257
258
  transition: "opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
258
259
  // Shake animation
259
- animation: X ? `wheelShake ${P / 2}ms ease-in-out 2` : "none",
260
+ animation: X ? `wheelShake ${U / 2}ms ease-in-out 2` : "none",
260
261
  "@keyframes wheelShake": {
261
262
  "0%, 100%": { transform: "translateX(0)" },
262
263
  "10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
@@ -271,7 +272,7 @@ const ke = ({
271
272
  /* @__PURE__ */ t(
272
273
  ht,
273
274
  {
274
- segmentCount: V.length,
275
+ segmentCount: M.length,
275
276
  decorations: W,
276
277
  primaryColor: r
277
278
  }
@@ -279,7 +280,7 @@ const ke = ({
279
280
  /* @__PURE__ */ t(
280
281
  xt,
281
282
  {
282
- segments: V,
283
+ segments: M,
283
284
  secondaryColor: x,
284
285
  primaryColor: r,
285
286
  onPrimaryColor: o,
@@ -287,7 +288,7 @@ const ke = ({
287
288
  isStandard: y,
288
289
  rotation: N,
289
290
  isSpinning: T,
290
- spinDuration: j
291
+ spinDuration: P
291
292
  }
292
293
  ),
293
294
  !y && !h && n && /* @__PURE__ */ t(
@@ -358,7 +359,7 @@ const ke = ({
358
359
  he,
359
360
  {
360
361
  variant: "soft",
361
- disabled: T || F || !R && !k && b !== null,
362
+ disabled: T || z || !R && !k && b !== null,
362
363
  onClick: I,
363
364
  sx: {
364
365
  borderRadius: g.xl,
@@ -648,7 +649,7 @@ const ke = ({
648
649
  imagePlaceholder: r || ""
649
650
  },
650
651
  fe.STANDARD
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
+ ), 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) || "";
652
653
  return /* @__PURE__ */ t(ke, { brandingBorderColor: p, children: /* @__PURE__ */ t(
653
654
  Ae,
654
655
  {
@@ -662,18 +663,18 @@ const ke = ({
662
663
  finalImage: n,
663
664
  imagePosition: a,
664
665
  children: /* @__PURE__ */ t(
665
- Me,
666
+ Ve,
666
667
  {
667
668
  infoPage: e,
668
669
  enableReset: s,
669
670
  contentColor: (l == null ? void 0 : l.content_color) || c.textColor,
670
- primaryColor: z,
671
+ primaryColor: F,
671
672
  secondaryColor: O,
672
673
  onPrimaryColor: c.palette.primary.onPrimary,
673
674
  borderColor: p || void 0,
674
675
  backgroundColor: S,
675
676
  dangerColor: c.palette.danger.plainColor,
676
- shimmerColor: z,
677
+ shimmerColor: F,
677
678
  brandingLogo: i,
678
679
  isDark: d,
679
680
  showTitleBlock: !1,
@@ -682,7 +683,7 @@ const ke = ({
682
683
  )
683
684
  }
684
685
  ) });
685
- }, Ve = ({
686
+ }, Me = ({
686
687
  infoPage: e,
687
688
  enableReset: s = !1,
688
689
  contentColor: a,
@@ -693,14 +694,14 @@ const ke = ({
693
694
  dangerColor: d,
694
695
  cardBaseColor: n,
695
696
  shimmerColor: l,
696
- brandingLogo: z = "",
697
+ brandingLogo: F = "",
697
698
  isDark: O = !1,
698
699
  showTitleBlock: p = !1,
699
700
  variant: S,
700
701
  compactCards: g = !1
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 ? 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) => {
703
+ var Fe, We, _e, Oe;
704
+ 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 || {}, P = k.mode || ((Fe = k.config) == null ? void 0 : Fe.mode) || "fair", U = ((We = k.config) == null ? void 0 : We.pace) || "normal", j = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
704
705
  var J;
705
706
  return (J = ae.images) == null ? void 0 : J.idle;
706
707
  }), {
@@ -710,16 +711,16 @@ const ke = ({
710
711
  showResultScreen: Y,
711
712
  showInlineResult: G,
712
713
  showLoseAnimation: q,
713
- hasEntered: M,
714
+ hasEntered: V,
714
715
  flippedCards: Q,
715
716
  crossfadedCards: oe,
716
717
  revealedOtherCards: ce,
717
718
  flipDuration: Xe,
718
- crossfadeDuration: je,
719
- loseAnimationDuration: Pe,
719
+ crossfadeDuration: Pe,
720
+ loseAnimationDuration: Ue,
720
721
  handlePick: Re,
721
722
  handleReset: ge
722
- } = pt({ segments: $, mode: j, pace: P, revealAll: U }), Fe = () => /* @__PURE__ */ w(re, { children: [
723
+ } = pt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
723
724
  A && /* @__PURE__ */ t(
724
725
  Ge,
725
726
  {
@@ -738,7 +739,7 @@ const ke = ({
738
739
  primaryColor: r,
739
740
  onPrimaryColor: x,
740
741
  borderColor: o,
741
- disclaimer: f ? void 0 : F.disclaimer,
742
+ disclaimer: f ? void 0 : z.disclaimer,
742
743
  enableReset: s,
743
744
  onReset: ge
744
745
  }
@@ -835,7 +836,7 @@ const ke = ({
835
836
  }
836
837
  ),
837
838
  /* @__PURE__ */ w(m, { children: [
838
- !f && F.welcome && /* @__PURE__ */ t(
839
+ !f && z.welcome && /* @__PURE__ */ t(
839
840
  D,
840
841
  {
841
842
  level: "body-md",
@@ -847,10 +848,10 @@ const ke = ({
847
848
  textAlign: "center",
848
849
  mb: L ? 0 : h.md
849
850
  },
850
- children: F.welcome
851
+ children: z.welcome
851
852
  }
852
853
  ),
853
- F.instructions && !G && /* @__PURE__ */ t(
854
+ z.instructions && !G && /* @__PURE__ */ t(
854
855
  D,
855
856
  {
856
857
  level: f ? "body-sm" : "body-md",
@@ -863,7 +864,7 @@ const ke = ({
863
864
  opacity: 0.7,
864
865
  maxWidth: f ? "400px" : "600px"
865
866
  },
866
- children: F.instructions
867
+ children: z.instructions
867
868
  }
868
869
  )
869
870
  ] }),
@@ -928,7 +929,7 @@ const ke = ({
928
929
  perspective: "1200px"
929
930
  },
930
931
  children: (ee ?? $).map((ae, J) => {
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
+ const be = `card-${J}`, de = v !== null, Be = Q.has(be), me = ce.has(be), je = de && !Be && !me, De = oe.has(be), Ye = de && !De && !me;
932
933
  return /* @__PURE__ */ t(
933
934
  m,
934
935
  {
@@ -937,8 +938,8 @@ const ke = ({
937
938
  justifyContent: "center",
938
939
  alignItems: "center",
939
940
  // Staggered deal-in entrance
940
- opacity: M ? 1 : 0,
941
- transform: M ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
941
+ opacity: V ? 1 : 0,
942
+ transform: V ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
942
943
  transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${J * 100}ms`
943
944
  },
944
945
  children: I ? /* @__PURE__ */ t(
@@ -952,9 +953,9 @@ const ke = ({
952
953
  isOtherRevealed: me,
953
954
  shouldDim: Ye,
954
955
  isRevealed: de,
955
- hasEntered: M,
956
+ hasEntered: V,
956
957
  objectSize: N,
957
- crossfadeDuration: je,
958
+ crossfadeDuration: Pe,
958
959
  isStandard: f,
959
960
  primaryColor: r,
960
961
  dangerColor: d,
@@ -968,21 +969,21 @@ const ke = ({
968
969
  selectedSegment: v,
969
970
  isFlipped: Be,
970
971
  isOtherRevealed: me,
971
- shouldDim: Ue,
972
+ shouldDim: je,
972
973
  isRevealed: de,
973
974
  showLoseAnimation: q,
974
- hasEntered: M,
975
+ hasEntered: V,
975
976
  cardWidth: B,
976
977
  cardHeight: T,
977
978
  flipDuration: Xe,
978
- loseAnimationDuration: Pe,
979
+ loseAnimationDuration: Ue,
979
980
  cardBaseColor: E,
980
- shimmerColor: V,
981
+ shimmerColor: M,
981
982
  primaryColor: r,
982
983
  contentColor: a,
983
984
  dangerColor: d,
984
985
  borderColor: o,
985
- brandingLogo: z,
986
+ brandingLogo: F,
986
987
  compactCards: g,
987
988
  onPick: () => Re(J, !1)
988
989
  }
@@ -1073,7 +1074,7 @@ const ke = ({
1073
1074
  boxSizing: "border-box"
1074
1075
  },
1075
1076
  children: [
1076
- !Y && F.welcome && /* @__PURE__ */ t(
1077
+ !Y && z.welcome && /* @__PURE__ */ t(
1077
1078
  D,
1078
1079
  {
1079
1080
  level: "body-md",
@@ -1085,7 +1086,7 @@ const ke = ({
1085
1086
  textAlign: "center",
1086
1087
  px: h.md
1087
1088
  },
1088
- children: F.welcome
1089
+ children: z.welcome
1089
1090
  }
1090
1091
  ),
1091
1092
  /* @__PURE__ */ t(
@@ -1124,7 +1125,7 @@ const ke = ({
1124
1125
  position: "relative",
1125
1126
  overflow: "hidden"
1126
1127
  },
1127
- children: Fe()
1128
+ children: ze()
1128
1129
  }
1129
1130
  ),
1130
1131
  G && (v == null ? void 0 : v.results) && /* @__PURE__ */ t(
@@ -1140,7 +1141,7 @@ const ke = ({
1140
1141
  sx: { mb: h.md }
1141
1142
  }
1142
1143
  ),
1143
- (z || F.disclaimer) && /* @__PURE__ */ w(
1144
+ (F || z.disclaimer) && /* @__PURE__ */ w(
1144
1145
  m,
1145
1146
  {
1146
1147
  sx: {
@@ -1150,7 +1151,7 @@ const ke = ({
1150
1151
  gap: h.md
1151
1152
  },
1152
1153
  children: [
1153
- F.disclaimer && /* @__PURE__ */ t(
1154
+ z.disclaimer && /* @__PURE__ */ t(
1154
1155
  D,
1155
1156
  {
1156
1157
  level: "body-sm",
@@ -1164,13 +1165,13 @@ const ke = ({
1164
1165
  maxWidth: "900px",
1165
1166
  lineHeight: 1.4
1166
1167
  },
1167
- children: F.disclaimer
1168
+ children: z.disclaimer
1168
1169
  }
1169
1170
  ),
1170
- z && I && /* @__PURE__ */ t(
1171
+ F && I && /* @__PURE__ */ t(
1171
1172
  "img",
1172
1173
  {
1173
- src: z,
1174
+ src: F,
1174
1175
  alt: "Brand Logo",
1175
1176
  style: {
1176
1177
  height: "auto",
@@ -1204,7 +1205,7 @@ const ke = ({
1204
1205
  overflow: "auto",
1205
1206
  boxSizing: "border-box"
1206
1207
  },
1207
- children: Fe()
1208
+ children: ze()
1208
1209
  }
1209
1210
  );
1210
1211
  }, kt = ({
@@ -1220,7 +1221,7 @@ const ke = ({
1220
1221
  imagePlaceholder: r || ""
1221
1222
  },
1222
1223
  fe.STANDARD
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
+ ), 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) || "";
1224
1225
  return /* @__PURE__ */ t(ke, { brandingBorderColor: O, children: /* @__PURE__ */ t(
1225
1226
  Ae,
1226
1227
  {
@@ -1236,18 +1237,18 @@ const ke = ({
1236
1237
  finalImage: n,
1237
1238
  imagePosition: a,
1238
1239
  children: /* @__PURE__ */ t(
1239
- Ve,
1240
+ Me,
1240
1241
  {
1241
1242
  infoPage: e,
1242
1243
  enableReset: s,
1243
1244
  contentColor: (l == null ? void 0 : l.content_color) || c.textPrimary,
1244
- primaryColor: z,
1245
+ primaryColor: F,
1245
1246
  onPrimaryColor: (l == null ? void 0 : l.content_color) || c.palette.primary.onPrimary || c.surface,
1246
1247
  borderColor: O || void 0,
1247
1248
  backgroundColor: p,
1248
1249
  dangerColor: c.palette.danger.plainColor,
1249
1250
  cardBaseColor: p,
1250
- shimmerColor: z,
1251
+ shimmerColor: F,
1251
1252
  brandingLogo: g,
1252
1253
  isDark: d,
1253
1254
  showTitleBlock: !1,
@@ -1305,14 +1306,14 @@ const ke = ({
1305
1306
  enableReset: s = !1,
1306
1307
  defaultImagePlaceholderUrl: a
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 = $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(
1309
+ var f, L, H, W, B, T, N, b, X, R, k, $, z, P, U, j, A, I, v;
1310
+ 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(
1310
1311
  {
1311
1312
  images: e.images,
1312
1313
  imagePlaceholder: O
1313
1314
  },
1314
1315
  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 = (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
+ ), 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 = (j = (U = (P = (z = o.colorSchemes) == null ? void 0 : z.light) == null ? void 0 : P.palette) == null ? void 0 : U.danger) == null ? void 0 : j.plainColor, h = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, E = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, M = Le({
1316
1317
  spacingScale: c,
1317
1318
  mdBorderRadius: C,
1318
1319
  contentBgColor: _,
@@ -1337,8 +1338,8 @@ const ke = ({
1337
1338
  count: ((v = JSON.parse(e.body).segments) == null ? void 0 : v.length) || 0
1338
1339
  }),
1339
1340
  finalImage: p,
1340
- children: /* @__PURE__ */ t(m, { sx: V.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1341
- Ve,
1341
+ children: /* @__PURE__ */ t(m, { sx: M.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1342
+ Me,
1342
1343
  {
1343
1344
  infoPage: e,
1344
1345
  enableReset: s,
@@ -1349,7 +1350,7 @@ const ke = ({
1349
1350
  dangerColor: y,
1350
1351
  cardBaseColor: _,
1351
1352
  shimmerColor: i,
1352
- brandingLogo: z,
1353
+ brandingLogo: F,
1353
1354
  isDark: !0,
1354
1355
  showTitleBlock: !1,
1355
1356
  variant: "overlay",
@@ -1358,7 +1359,7 @@ const ke = ({
1358
1359
  ) })
1359
1360
  }
1360
1361
  );
1361
- }, Ft = (e) => {
1362
+ }, zt = (e) => {
1362
1363
  const s = we().secondary, a = et(), r = e.isSplitVariant && a, x = K(), o = Je(e.primaryUrl, e.secondaryUrl, "logo");
1363
1364
  if (!e.brandingLogo)
1364
1365
  return null;
@@ -1463,23 +1464,23 @@ const ke = ({
1463
1464
  ]
1464
1465
  }
1465
1466
  );
1466
- }, zt = ({
1467
+ }, Ft = ({
1467
1468
  infoPage: e,
1468
1469
  enableReset: s = !1,
1469
1470
  defaultImagePlaceholderUrl: a
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 = $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(
1472
+ var L, H, W, B, T, N, b, X, R, k, $, z, P, U, j, A, I, v, ee, te, Y, G, q, V, Q, oe, ce;
1473
+ 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(
1473
1474
  {
1474
1475
  images: e.images,
1475
1476
  imagePlaceholder: O
1476
1477
  },
1477
1478
  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 = (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
+ ), 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), _ = (U = (P = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.palette) == null ? void 0 : P.primary) == null ? void 0 : U.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (j = o.colorSchemes) == null ? void 0 : j.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({
1479
1480
  spacingScale: c,
1480
1481
  mdBorderRadius: E,
1481
1482
  contentBgColor: y,
1482
- buttonRadius: V,
1483
+ buttonRadius: M,
1483
1484
  primaryColor: i,
1484
1485
  onPrimaryColor: _,
1485
1486
  fontFamilyPrimary: C,
@@ -1500,7 +1501,7 @@ const ke = ({
1500
1501
  finalImage: p,
1501
1502
  children: [
1502
1503
  /* @__PURE__ */ t(m, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1503
- Me,
1504
+ Ve,
1504
1505
  {
1505
1506
  infoPage: e,
1506
1507
  enableReset: s,
@@ -1511,19 +1512,19 @@ const ke = ({
1511
1512
  backgroundColor: y,
1512
1513
  dangerColor: h,
1513
1514
  shimmerColor: i,
1514
- brandingLogo: z,
1515
+ brandingLogo: F,
1515
1516
  isDark: !0,
1516
1517
  showTitleBlock: !1,
1517
1518
  variant: "overlay"
1518
1519
  }
1519
1520
  ) }),
1520
1521
  /* @__PURE__ */ t(
1521
- Ft,
1522
+ zt,
1522
1523
  {
1523
- brandingLogo: z,
1524
+ brandingLogo: F,
1524
1525
  textColor: S,
1525
1526
  label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
1526
- primaryUrl: (Q = (M = e.branding) == null ? void 0 : M.urls) == null ? void 0 : Q.primary_url,
1527
+ primaryUrl: (Q = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Q.primary_url,
1527
1528
  secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
1528
1529
  }
1529
1530
  )
@@ -1575,7 +1576,7 @@ const ke = ({
1575
1576
  defaultImagePlaceholderUrl: o
1576
1577
  }
1577
1578
  ) : /* @__PURE__ */ t(
1578
- zt,
1579
+ Ft,
1579
1580
  {
1580
1581
  infoPage: s,
1581
1582
  defaultImagePlaceholderUrl: o
@@ -1602,7 +1603,7 @@ const ke = ({
1602
1603
  const n = e.themeOptions, l = {
1603
1604
  ...n,
1604
1605
  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 ? st(
1606
+ }, F = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? st(
1606
1607
  /* @__PURE__ */ t(nt, { value: d.current, children: /* @__PURE__ */ t(rt, { containerRef: x, children: /* @__PURE__ */ t(
1607
1608
  lt,
1608
1609
  {
@@ -1624,10 +1625,10 @@ const ke = ({
1624
1625
  c.current
1625
1626
  ) : null;
1626
1627
  return /* @__PURE__ */ w(re, { children: [
1627
- z,
1628
+ F,
1628
1629
  O
1629
1630
  ] });
1630
- }, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Nt = Ot;
1631
+ }, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Vt = Ot;
1631
1632
  export {
1632
- Nt as ChanceGame
1633
+ Vt as ChanceGame
1633
1634
  };