fansunited-frontend-components 0.0.99 → 1.0.0

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 (62) hide show
  1. package/Betslip.js +2 -2
  2. package/ChanceGame.js +496 -505
  3. package/ClassicQuizPlay.js +2 -2
  4. package/CollectLead.js +405 -1163
  5. package/CompetitionStatistics.js +2 -2
  6. package/CompetitorCard.js +445 -425
  7. package/Discussion.js +2 -2
  8. package/EitherOrPlay.js +2 -2
  9. package/EventCard.js +648 -593
  10. package/EventGamePlay.js +2 -2
  11. package/Leaderboard.js +142 -132
  12. package/List.js +675 -713
  13. package/MatchQuizPlay.js +2 -2
  14. package/Odds.js +1 -1
  15. package/PersonalityQuizPlay.js +2 -2
  16. package/PickThePair.js +925 -1824
  17. package/PlayerOfTheMatch.js +2106 -2223
  18. package/PollVote.js +2 -2
  19. package/Predictor.js +4209 -18629
  20. package/Standings.js +497 -486
  21. package/TopX.js +3223 -16958
  22. package/chunks/{ChanceGameEmbedVariant-DM9eLG5s.js → ChanceGameEmbedVariant-z8XYzgDW.js} +1 -1
  23. package/chunks/PickOneOfX-IvE4OvyT.js +3146 -0
  24. package/chunks/index-BNl8scz6.js +4 -0
  25. package/chunks/index-CSa2JU4m.js +4 -0
  26. package/chunks/index-CVRI82Gb.js +4 -0
  27. package/chunks/index-Cd1dg0KI.js +4 -0
  28. package/chunks/index-Cei2fzi7.js +4 -0
  29. package/chunks/index-Cxb4wEJU.js +4 -0
  30. package/chunks/index-w1LGN5dz.js +4 -0
  31. package/chunks/main-07vzblS8.js +2091 -0
  32. package/chunks/main-C7X4dM_P.js +4827 -0
  33. package/chunks/main-D_QDfmAw.js +6417 -0
  34. package/chunks/{main-CzfWaEQP.js → main-DdL0UekL.js} +1931 -2025
  35. package/chunks/main-DmBfwyb4.js +2992 -0
  36. package/chunks/main-LEE8n2cG.js +3117 -0
  37. package/chunks/{main-DxvBjXsd.js → main-P2WNvBZE.js} +473 -444
  38. package/chunks/{main-DiBlJBNb.js → main-gV165E-A.js} +629 -657
  39. package/chunks/predictionsHelpers-fwXaMadu.js +10063 -0
  40. package/chunks/{withVersionStamp-BsLyhvNA.js → withVersionStamp-CPDfSE5H.js} +1 -1
  41. package/package.json +2 -6
  42. package/withVersionStamp.d.ts.map +1 -1
  43. package/chunks/CheckCircle-I1FktW5Y.js +0 -13
  44. package/chunks/Person-CXRqyF4E.js +0 -11
  45. package/chunks/PickOneOfX-DET4ZhjV.js +0 -3117
  46. package/chunks/Search-CIXthh0D.js +0 -17
  47. package/chunks/TimerOutlined-D-WA_vpE.js +0 -8
  48. package/chunks/WorkspacePremiumOutlined-DUXVgJlF.js +0 -136
  49. package/chunks/chevrons-right-HWKW2c4I.js +0 -45
  50. package/chunks/createLucideIcon-YBRjY5Kl.js +0 -79
  51. package/chunks/index-BENM3N_w.js +0 -4
  52. package/chunks/index-BRxAV693.js +0 -4
  53. package/chunks/index-BXYTsvIX.js +0 -4
  54. package/chunks/index-C0ilols1.js +0 -4
  55. package/chunks/index-D7VhczXH.js +0 -4
  56. package/chunks/index-DKwvdw9t.js +0 -4
  57. package/chunks/index-DZN-AITW.js +0 -4
  58. package/chunks/main-B2sDRFF4.js +0 -2184
  59. package/chunks/main-DFNl3g_U.js +0 -4910
  60. package/chunks/main-DLwnvntz.js +0 -4020
  61. package/chunks/main-S8_NDSiY.js +0 -3209
  62. package/chunks/main-lBgr8Liq.js +0 -6571
package/ChanceGame.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsx as o, jsxs as w, Fragment as ue } from "@emotion/react/jsx-runtime";
2
- import { isMobile as q, ChanceGameTemplate as ye, useBorderSize as Je, hexToRgb as Ke, useColors as Re, useCurrentThemeMode as qe, useImageVariant as we, WidgetTemplate as ve, useInternalTheme as Qe, defaultBgVertical as Ze, defaultBg as et, isTablet as bt, getBrandingClickUrl as xt, useInfoPage as yt, initializeI18n as wt, ChanceGameVariant as ne, languageToCountryCode as vt } from "fansunited-frontend-core";
3
- import kt, { useState as St, useEffect as zt } from "react";
4
- import { NotFound as Ot, StandardSkeleton as tt, OverlaySkeleton as ot, Spinner as Mt, WidgetPortal as Rt } from "fansunited-frontend-core/ui/emotion";
5
- import { useTranslation as me } from "react-i18next";
6
- import { css as n, keyframes as nt } from "@emotion/react";
7
- import { c as re, V as e, h as Me, d as Se, o as de, u as it, e as _t, S as ce, f as ct, D as rt, C as Wt, W as $t, g as Bt, i as Ct, j as Ft, O as Dt, F as Tt, b as ze, a as It, P as At } from "./chunks/PickOneOfX-DET4ZhjV.js";
8
- import { w as Gt } from "./chunks/withVersionStamp-BsLyhvNA.js";
9
- const Le = {
1
+ import { jsx as o, jsxs as v, Fragment as de } from "@emotion/react/jsx-runtime";
2
+ import { useIsMobile as te, ChanceGameTemplate as xe, useBorderSize as Ue, hexToRgb as Ye, useColors as Be, useCurrentThemeMode as Je, useImageVariant as ye, WidgetTemplate as ve, useInternalTheme as Ke, defaultBgVertical as qe, defaultBg as Qe, useInfoPage as gt, initializeI18n as ft, ChanceGameVariant as ne, languageToCountryCode as bt } from "fansunited-frontend-core";
3
+ import xt, { useState as yt, useEffect as vt } from "react";
4
+ import { NotFound as wt, StandardSkeleton as Ze, OverlaySkeleton as et, PresentedBy as kt, Spinner as St, WidgetPortal as Ot } from "fansunited-frontend-core/ui/emotion";
5
+ import { useTranslation as ue } from "react-i18next";
6
+ import { css as n, keyframes as tt } from "@emotion/react";
7
+ import { c as re, V as e, h as ze, d as ke, o as se, u as ot, e as zt, S as ce, f as nt, D as it, C as Bt, W as Rt, g as Mt, i as _t, j as $t, O as Wt, F as Ft, b as Se, a as Ct, P as Dt } from "./chunks/PickOneOfX-IvE4OvyT.js";
8
+ import { w as Tt } from "./chunks/withVersionStamp-CPDfSE5H.js";
9
+ const Ge = {
10
10
  display: "flex",
11
11
  width: "100%",
12
12
  borderRadius: "var(--fu-ucrc-radius-md)",
@@ -14,72 +14,74 @@ const Le = {
14
14
  overflow: "hidden",
15
15
  background: "var(--fu-ucrc-surface)",
16
16
  minHeight: "250px"
17
- }, Xe = {
18
- row: n({ ...Le, flexDirection: "row" }),
19
- column: n({ ...Le, flexDirection: "column" })
20
- }, _e = ({ children: t, brandingBorderColor: l }) => /* @__PURE__ */ o(
17
+ }, Le = {
18
+ row: n({ ...Ge, flexDirection: "row" }),
19
+ column: n({ ...Ge, flexDirection: "column" })
20
+ }, Re = ({ children: t, brandingBorderColor: s }) => /* @__PURE__ */ o(
21
21
  "div",
22
22
  {
23
- css: q() ? Xe.column : Xe.row,
24
- style: l ? { "--fu-ucrc-cg-card-border": l } : void 0,
23
+ css: te() ? Le.column : Le.row,
24
+ style: s ? { "--fu-ucrc-cg-card-border": s } : void 0,
25
25
  children: t
26
26
  }
27
- ), Lt = ({ template: t }) => {
28
- const { t: l } = me(), b = /* @__PURE__ */ o(
29
- Ot,
27
+ ), It = ({ template: t }) => {
28
+ const { t: s } = ue(), b = /* @__PURE__ */ o(
29
+ wt,
30
30
  {
31
- title: l("chanceGame.chanceGameNotFound"),
32
- message: l("chanceGame.chanceGameNotFoundDescription")
31
+ title: s("chanceGame.chanceGameNotFound"),
32
+ message: s("chanceGame.chanceGameNotFoundDescription")
33
33
  }
34
34
  );
35
- return t === ye.EMBED ? b : /* @__PURE__ */ o(_e, { brandingBorderColor: null, children: b });
36
- }, d = (t) => `var(--fu-ucrc-cg-wheel-${t})`, Xt = nt({
35
+ return t === xe.EMBED ? b : /* @__PURE__ */ o(Re, { brandingBorderColor: null, children: b });
36
+ }, l = (t) => `var(--fu-ucrc-cg-wheel-${t})`, At = tt({
37
37
  "0%, 100%": { transform: "translateX(0)" },
38
38
  "10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
39
39
  "20%, 40%, 60%, 80%": { transform: "translateX(8px)" }
40
- }), Vt = nt({
41
- "0%, 100%": { boxShadow: `0 4px 14px 0 ${d("p40")}, 0 0 20px ${d("p15")}` },
42
- "50%": { boxShadow: `0 6px 24px 0 ${d("p60")}, 0 0 35px ${d("p25")}` }
43
- }), le = { ...re, fontWeight: 400, fontSize: d("text"), color: e.content }, Ve = {
40
+ }), Gt = tt({
41
+ "0%, 100%": { boxShadow: `0 4px 14px 0 ${l("p40")}, 0 0 20px ${l("p15")}` },
42
+ "50%": { boxShadow: `0 6px 24px 0 ${l("p60")}, 0 0 35px ${l("p25")}` }
43
+ }), le = { ...re, fontWeight: 400, fontSize: l("text"), color: e.content, unicodeBidi: "plaintext" }, Xe = {
44
44
  position: "relative",
45
45
  width: "100%",
46
- maxWidth: d("max"),
46
+ maxWidth: l("max"),
47
47
  aspectRatio: "1",
48
- marginTop: d("wheel-mt"),
48
+ marginTop: l("wheel-mt"),
49
49
  display: "flex",
50
50
  alignItems: "center",
51
51
  justifyContent: "center",
52
52
  userSelect: "none",
53
53
  zIndex: 1,
54
54
  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)",
55
- "&[data-shake]": { animation: `${Xt} ${d("shake")} ease-in-out 2` }
55
+ "&[data-shake]": { animation: `${At} ${l("shake")} ease-in-out 2` }
56
56
  }, Oe = {
57
57
  borderRadius: e.radiusXl,
58
- paddingBlock: d("btn-py"),
59
- paddingInline: d("btn-px"),
58
+ paddingBlock: l("btn-py"),
59
+ paddingInline: l("btn-px"),
60
60
  backgroundColor: e.primary,
61
61
  color: e.onPrimary,
62
- fontSize: d("btn-font"),
62
+ fontSize: l("btn-font"),
63
63
  fontWeight: 700,
64
64
  fontFamily: e.fontPrimary,
65
65
  textTransform: "uppercase",
66
66
  letterSpacing: "0.5px",
67
- minWidth: d("btn-min"),
67
+ minWidth: l("btn-min"),
68
68
  zIndex: 1,
69
69
  transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
70
70
  transform: "scale(1)",
71
71
  "&:active": { transform: "scale(0.95)" },
72
- "&:disabled": { opacity: 0.5, animation: "none" }
73
- }, Et = {
72
+ "&:disabled": { opacity: 0.5, animation: "none" },
73
+ unicodeBidi: "plaintext"
74
+ }, Lt = {
74
75
  ...re,
75
76
  fontFamily: e.fontSecondary,
76
77
  fontWeight: 400,
77
- fontSize: d("disclaimer"),
78
+ fontSize: l("disclaimer"),
78
79
  color: e.content,
79
80
  opacity: 0.7,
80
81
  textAlign: "center",
81
82
  maxWidth: "900px",
82
- lineHeight: 1.4
83
+ lineHeight: 1.4,
84
+ unicodeBidi: "plaintext"
83
85
  }, p = {
84
86
  titleBlock: n({
85
87
  display: "flex",
@@ -90,32 +92,34 @@ const Le = {
90
92
  width: "100%",
91
93
  zIndex: 1
92
94
  }),
93
- title: n(Me, {
95
+ title: n(ze, {
94
96
  fontFamily: e.fontPrimary,
95
97
  fontWeight: 700,
96
- fontSize: d("title"),
98
+ fontSize: l("title"),
97
99
  color: e.content,
98
- lineHeight: 1.2
100
+ lineHeight: 1.2,
101
+ unicodeBidi: "plaintext"
99
102
  }),
100
- titleGlow: n(Me, {
103
+ titleGlow: n(ze, {
101
104
  fontFamily: e.fontPrimary,
102
105
  fontWeight: 700,
103
- fontSize: d("title"),
106
+ fontSize: l("title"),
104
107
  color: e.content,
105
108
  lineHeight: 1.2,
106
- textShadow: `0 0 20px ${d("dc20")}, 0 0 40px ${d("dc10")}`
109
+ textShadow: `0 0 20px ${l("dc20")}, 0 0 40px ${l("dc10")}`,
110
+ unicodeBidi: "plaintext"
107
111
  }),
108
112
  underline: n({ display: "flex", alignItems: "center", gap: e.spaceXs, marginTop: e.space2xs }),
109
113
  underlineStart: n({
110
- width: d("line"),
114
+ width: l("line"),
111
115
  height: "1px",
112
- background: `linear-gradient(90deg, transparent, ${d("dc40")})`
116
+ background: `linear-gradient(90deg, transparent, ${l("dc40")})`
113
117
  }),
114
- underlineGem: n({ width: "6px", height: "6px", transform: "rotate(45deg)", background: d("dc50") }),
118
+ underlineGem: n({ width: "6px", height: "6px", transform: "rotate(45deg)", background: l("dc50") }),
115
119
  underlineEnd: n({
116
- width: d("line"),
120
+ width: l("line"),
117
121
  height: "1px",
118
- background: `linear-gradient(90deg, ${d("dc40")}, transparent)`
122
+ background: `linear-gradient(90deg, ${l("dc40")}, transparent)`
119
123
  }),
120
124
  subtitle: n(le, { fontFamily: e.fontSecondary, opacity: 0.8 }),
121
125
  welcome: n(le, { fontFamily: e.fontPrimary, textAlign: "center", marginBottom: e.spaceMd, zIndex: 1 }),
@@ -124,11 +128,11 @@ const Le = {
124
128
  fontFamily: e.fontSecondary,
125
129
  opacity: 0.7,
126
130
  textAlign: "center",
127
- maxWidth: d("instructions"),
131
+ maxWidth: l("instructions"),
128
132
  zIndex: 1
129
133
  }),
130
- wheel: n(Ve),
131
- wheelGlow: n(Ve, { filter: `drop-shadow(0 0 ${d("glow1")} ${d("dc20")}) drop-shadow(0 0 ${d("glow2")} ${d("dc10")})` }),
134
+ wheel: n(Xe),
135
+ wheelGlow: n(Xe, { filter: `drop-shadow(0 0 ${l("glow1")} ${l("dc20")}) drop-shadow(0 0 ${l("glow2")} ${l("dc10")})` }),
132
136
  logo: n({
133
137
  position: "absolute",
134
138
  top: "50%",
@@ -142,26 +146,26 @@ const Le = {
142
146
  pointerEvents: "none",
143
147
  filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.2))"
144
148
  }),
145
- spin: n(Se, Oe, {
149
+ spin: n(ke, Oe, {
146
150
  boxShadow: "0 4px 14px 0 rgba(0,0,0,0.15)",
147
151
  "&:hover": { transform: "scale(1.05)", boxShadow: "0 6px 20px 0 rgba(0,0,0,0.2)" }
148
152
  }),
149
- spinDecorated: n(Se, Oe, {
150
- boxShadow: `0 4px 14px 0 ${d("p40")}, 0 0 20px ${d("p15")}`,
151
- "&:hover": { transform: "scale(1.05)", boxShadow: `0 6px 20px 0 ${d("p50")}, 0 0 30px ${d("p20")}` }
153
+ spinDecorated: n(ke, Oe, {
154
+ boxShadow: `0 4px 14px 0 ${l("p40")}, 0 0 20px ${l("p15")}`,
155
+ "&:hover": { transform: "scale(1.05)", boxShadow: `0 6px 20px 0 ${l("p50")}, 0 0 30px ${l("p20")}` }
152
156
  }),
153
- spinPulsing: n(Se, Oe, {
154
- boxShadow: `0 4px 14px 0 ${d("p40")}, 0 0 20px ${d("p15")}`,
155
- animation: `${Vt} 2.5s ease-in-out infinite`,
156
- "&:hover": { transform: "scale(1.05)", boxShadow: `0 6px 20px 0 ${d("p50")}, 0 0 30px ${d("p20")}` }
157
+ spinPulsing: n(ke, Oe, {
158
+ boxShadow: `0 4px 14px 0 ${l("p40")}, 0 0 20px ${l("p15")}`,
159
+ animation: `${Gt} 2.5s ease-in-out infinite`,
160
+ "&:hover": { transform: "scale(1.05)", boxShadow: `0 6px 20px 0 ${l("p50")}, 0 0 30px ${l("p20")}` }
157
161
  }),
158
- reset: n(de, {
162
+ reset: n(se, {
159
163
  borderRadius: e.radiusXl,
160
164
  paddingBlock: e.spaceSm,
161
165
  paddingInline: e.spaceLg,
162
166
  borderColor: e.outline,
163
167
  color: e.content,
164
- fontSize: d("reset-font"),
168
+ fontSize: l("reset-font"),
165
169
  fontWeight: 700,
166
170
  fontFamily: e.fontPrimary,
167
171
  textTransform: "uppercase",
@@ -187,14 +191,14 @@ const Le = {
187
191
  width: "100%",
188
192
  boxSizing: "border-box"
189
193
  }),
190
- standardStack: n({ display: "flex", flexDirection: "column", gap: d("stack-gap") }),
194
+ standardStack: n({ display: "flex", flexDirection: "column", gap: l("stack-gap") }),
191
195
  box: n({
192
196
  borderRadius: e.radiusMd,
193
197
  paddingInline: e.spaceSm,
194
198
  paddingTop: e.spaceSm,
195
199
  paddingBottom: e.spaceMd,
196
200
  gap: e.spaceMd,
197
- backgroundColor: d("box-bg"),
201
+ backgroundColor: l("box-bg"),
198
202
  display: "flex",
199
203
  flexDirection: "column",
200
204
  alignItems: "center",
@@ -208,68 +212,68 @@ const Le = {
208
212
  paddingTop: e.spaceSm,
209
213
  paddingBottom: e.spaceMd,
210
214
  gap: e.spaceMd,
211
- backgroundColor: d("box-bg"),
215
+ backgroundColor: l("box-bg"),
212
216
  display: "flex",
213
217
  flexDirection: "column",
214
218
  alignItems: "center",
215
219
  backdropFilter: "blur(4px)",
216
220
  position: "relative",
217
221
  overflow: "hidden",
218
- border: d("box-border")
222
+ border: l("box-border")
219
223
  }),
220
224
  footer: n({ display: "flex", flexDirection: "column", alignItems: "center", gap: e.spaceMd }),
221
- disclaimer: n(Et),
225
+ disclaimer: n(Lt),
222
226
  embed: n({
223
227
  display: "flex",
224
228
  flexDirection: "column",
225
229
  width: "100%",
226
- padding: d("pad"),
230
+ padding: l("pad"),
227
231
  gap: e.spaceLg,
228
232
  alignItems: "center",
229
233
  position: "relative",
230
234
  overflow: "hidden",
231
235
  boxSizing: "border-box"
232
236
  })
233
- }, at = ({
237
+ }, ct = ({
234
238
  infoPage: t,
235
- enableReset: l = !1,
239
+ enableReset: s = !1,
236
240
  contentColor: b,
237
241
  primaryColor: m,
238
- secondaryColor: y,
239
- onPrimaryColor: a,
240
- backgroundColor: i,
241
- dangerColor: c,
242
+ secondaryColor: O,
243
+ onPrimaryColor: u,
244
+ backgroundColor: r,
245
+ dangerColor: i,
242
246
  brandingLogo: $,
243
- isDark: s = !1,
244
- showTitleBlock: W = !1,
245
- variant: B
247
+ isDark: a = !1,
248
+ showTitleBlock: _ = !1,
249
+ variant: W
246
250
  }) => {
247
- var ee, pe, he;
248
- const h = q(), v = it(), f = Je(), r = B === "standard", k = B === "overlay", O = r || k, A = JSON.parse(t.body), L = A.segments || [], x = t.labels || {}, _ = A.mode || ((ee = A.config) == null ? void 0 : ee.mode) || "fair", P = ((pe = A.config) == null ? void 0 : pe.pace) || "normal", M = ((he = A.config) == null ? void 0 : he.decorations) ?? !1, F = ct(m, s), {
249
- isSpinning: T,
250
- finalRotation: N,
251
- selectedSegment: g,
252
- showShakeAnimation: H,
251
+ var E, me, pe;
252
+ const g = te(), y = ot(), f = Ue(), c = W === "standard", z = W === "overlay", w = c || z, T = JSON.parse(t.body), V = T.segments || [], x = t.labels || {}, M = T.mode || ((E = T.config) == null ? void 0 : E.mode) || "fair", N = ((me = T.config) == null ? void 0 : me.pace) || "normal", B = ((pe = T.config) == null ? void 0 : pe.decorations) ?? !1, C = nt(m, a), {
253
+ isSpinning: I,
254
+ finalRotation: H,
255
+ selectedSegment: h,
256
+ showShakeAnimation: j,
253
257
  showResultScreen: D,
254
- showInlineResult: S,
255
- hasEntered: C,
256
- confettiActive: I,
258
+ showInlineResult: k,
259
+ hasEntered: F,
260
+ confettiActive: A,
257
261
  spinDuration: R,
258
262
  shakeAnimationDuration: U,
259
- confettiVelocityMultiplier: j,
260
- confettiGravity: te,
261
- handleSpin: X,
262
- handleReset: V,
263
- onConfettiComplete: z
264
- } = _t({ segments: L, mode: _, pace: P }), Q = Ke(i), oe = Q ? Q.replace(/[^\d,]/g, "") : "", Y = {
265
- ...v,
263
+ confettiVelocityMultiplier: Y,
264
+ confettiGravity: J,
265
+ handleSpin: L,
266
+ handleReset: X,
267
+ onConfettiComplete: S
268
+ } = zt({ segments: V, mode: M, pace: N }), Z = Ye(r), oe = Z ? Z.replace(/[^\d,]/g, "") : "", K = {
269
+ ...y,
266
270
  "--fu-ucrc-cg-content": b,
267
271
  "--fu-ucrc-cg-primary": m,
268
- "--fu-ucrc-cg-on-primary": a,
269
- "--fu-ucrc-cg-wheel-dc10": F("10"),
270
- "--fu-ucrc-cg-wheel-dc20": F("20"),
271
- "--fu-ucrc-cg-wheel-dc40": F("40"),
272
- "--fu-ucrc-cg-wheel-dc50": F("50"),
272
+ "--fu-ucrc-cg-on-primary": u,
273
+ "--fu-ucrc-cg-wheel-dc10": C("10"),
274
+ "--fu-ucrc-cg-wheel-dc20": C("20"),
275
+ "--fu-ucrc-cg-wheel-dc40": C("40"),
276
+ "--fu-ucrc-cg-wheel-dc50": C("50"),
273
277
  "--fu-ucrc-cg-wheel-p15": `${m}15`,
274
278
  "--fu-ucrc-cg-wheel-p20": `${m}20`,
275
279
  "--fu-ucrc-cg-wheel-p25": `${m}25`,
@@ -277,56 +281,56 @@ const Le = {
277
281
  "--fu-ucrc-cg-wheel-p50": `${m}50`,
278
282
  "--fu-ucrc-cg-wheel-p60": `${m}60`,
279
283
  // Wheel dimensions — compact for Standard and Overlay
280
- "--fu-ucrc-cg-wheel-max": O ? h ? "260px" : "340px" : h ? "320px" : "450px",
281
- "--fu-ucrc-cg-wheel-wheel-mt": O ? e.spaceMd : "0px",
284
+ "--fu-ucrc-cg-wheel-max": w ? g ? "260px" : "340px" : g ? "320px" : "450px",
285
+ "--fu-ucrc-cg-wheel-wheel-mt": w ? e.spaceMd : "0px",
282
286
  "--fu-ucrc-cg-wheel-shake": `${U / 2}ms`,
283
- "--fu-ucrc-cg-wheel-glow1": h ? "15px" : "25px",
284
- "--fu-ucrc-cg-wheel-glow2": h ? "40px" : "60px",
285
- "--fu-ucrc-cg-wheel-title": h ? "1.5rem" : "2rem",
286
- "--fu-ucrc-cg-wheel-text": h ? "0.875rem" : "1rem",
287
- "--fu-ucrc-cg-wheel-line": h ? "40px" : "60px",
288
- "--fu-ucrc-cg-wheel-instructions": r ? "400px" : "600px",
289
- "--fu-ucrc-cg-wheel-btn-py": O ? e.spaceSm : e.spaceMd,
290
- "--fu-ucrc-cg-wheel-btn-px": O ? e.spaceLg : e.spaceXl,
291
- "--fu-ucrc-cg-wheel-btn-font": O ? h ? "0.75rem" : "0.875rem" : h ? "1rem" : "1.125rem",
292
- "--fu-ucrc-cg-wheel-btn-min": O ? "auto" : h ? "200px" : "250px",
293
- "--fu-ucrc-cg-wheel-reset-font": h ? "0.75rem" : "0.875rem",
294
- "--fu-ucrc-cg-wheel-disclaimer": h ? "0.625rem" : "0.75rem",
295
- "--fu-ucrc-cg-wheel-stack-gap": h ? e.spaceLg : e.spaceMd,
287
+ "--fu-ucrc-cg-wheel-glow1": g ? "15px" : "25px",
288
+ "--fu-ucrc-cg-wheel-glow2": g ? "40px" : "60px",
289
+ "--fu-ucrc-cg-wheel-title": g ? "1.5rem" : "2rem",
290
+ "--fu-ucrc-cg-wheel-text": g ? "0.875rem" : "1rem",
291
+ "--fu-ucrc-cg-wheel-line": g ? "40px" : "60px",
292
+ "--fu-ucrc-cg-wheel-instructions": c ? "400px" : "600px",
293
+ "--fu-ucrc-cg-wheel-btn-py": w ? e.spaceSm : e.spaceMd,
294
+ "--fu-ucrc-cg-wheel-btn-px": w ? e.spaceLg : e.spaceXl,
295
+ "--fu-ucrc-cg-wheel-btn-font": w ? g ? "0.75rem" : "0.875rem" : g ? "1rem" : "1.125rem",
296
+ "--fu-ucrc-cg-wheel-btn-min": w ? "auto" : g ? "200px" : "250px",
297
+ "--fu-ucrc-cg-wheel-reset-font": g ? "0.75rem" : "0.875rem",
298
+ "--fu-ucrc-cg-wheel-disclaimer": g ? "0.625rem" : "0.75rem",
299
+ "--fu-ucrc-cg-wheel-stack-gap": g ? e.spaceLg : e.spaceMd,
296
300
  "--fu-ucrc-cg-wheel-box-bg": `rgba(${oe}, 0.5)`,
297
- "--fu-ucrc-cg-wheel-box-border": `${f.size} solid ${F("15")}`,
298
- "--fu-ucrc-cg-wheel-pad": h ? e.spaceLg : e.spaceXl
299
- }, E = T || I || !D && !S && g !== null, Z = () => /* @__PURE__ */ w(ue, { children: [
300
- M && /* @__PURE__ */ o(rt, { primaryColor: m, isDark: s, animationPrefix: "wheel" }),
301
+ "--fu-ucrc-cg-wheel-box-border": `${f.size} solid ${C("15")}`,
302
+ "--fu-ucrc-cg-wheel-pad": g ? e.spaceLg : e.spaceXl
303
+ }, P = I || A || !D && !k && h !== null, ee = () => /* @__PURE__ */ v(de, { children: [
304
+ B && /* @__PURE__ */ o(it, { primaryColor: m, isDark: a, animationPrefix: "wheel" }),
301
305
  /* @__PURE__ */ o(
302
- Wt,
306
+ Bt,
303
307
  {
304
- active: I,
308
+ active: A,
305
309
  primaryColor: m,
306
- velocityMultiplier: j,
307
- gravity: te,
308
- onComplete: z
310
+ velocityMultiplier: Y,
311
+ gravity: J,
312
+ onComplete: S
309
313
  }
310
314
  ),
311
- D && (g == null ? void 0 : g.results) && /* @__PURE__ */ o(
315
+ D && (h == null ? void 0 : h.results) && /* @__PURE__ */ o(
312
316
  ce,
313
317
  {
314
- result: g.results,
315
- variant: B || "embed",
318
+ result: h.results,
319
+ variant: W || "embed",
316
320
  mode: "screen",
317
321
  contentColor: b,
318
322
  primaryColor: m,
319
- onPrimaryColor: a,
320
- disclaimer: r ? void 0 : x.disclaimer,
321
- enableReset: l,
322
- onReset: V
323
+ onPrimaryColor: u,
324
+ disclaimer: c ? void 0 : x.disclaimer,
325
+ enableReset: s,
326
+ onReset: X
323
327
  }
324
328
  ),
325
- !D && /* @__PURE__ */ w(ue, { children: [
326
- W && (t.title || t.subtitle) && /* @__PURE__ */ w("div", { css: p.titleBlock, children: [
327
- t.title && /* @__PURE__ */ w(ue, { children: [
328
- /* @__PURE__ */ o("h2", { css: M ? p.titleGlow : p.title, children: t.title }),
329
- M && /* @__PURE__ */ w("div", { css: p.underline, children: [
329
+ !D && /* @__PURE__ */ v(de, { children: [
330
+ _ && (t.title || t.subtitle) && /* @__PURE__ */ v("div", { css: p.titleBlock, children: [
331
+ t.title && /* @__PURE__ */ v(de, { children: [
332
+ /* @__PURE__ */ o("h2", { css: B ? p.titleGlow : p.title, children: t.title }),
333
+ B && /* @__PURE__ */ v("div", { css: p.underline, children: [
330
334
  /* @__PURE__ */ o("div", { css: p.underlineStart }),
331
335
  /* @__PURE__ */ o("div", { css: p.underlineGem }),
332
336
  /* @__PURE__ */ o("div", { css: p.underlineEnd })
@@ -334,90 +338,90 @@ const Le = {
334
338
  ] }),
335
339
  t.subtitle && /* @__PURE__ */ o("p", { css: p.subtitle, children: t.subtitle })
336
340
  ] }),
337
- /* @__PURE__ */ w("div", { children: [
338
- !r && x.welcome && /* @__PURE__ */ o("p", { css: k ? p.welcomeOverlay : p.welcome, children: x.welcome }),
339
- (r || k) && !S && x.instructions && /* @__PURE__ */ o("p", { css: p.instructions, children: x.instructions })
341
+ /* @__PURE__ */ v("div", { children: [
342
+ !c && x.welcome && /* @__PURE__ */ o("p", { css: z ? p.welcomeOverlay : p.welcome, children: x.welcome }),
343
+ (c || z) && !k && x.instructions && /* @__PURE__ */ o("p", { css: p.instructions, children: x.instructions })
340
344
  ] }),
341
- /* @__PURE__ */ w(
345
+ /* @__PURE__ */ v(
342
346
  "div",
343
347
  {
344
- onClick: X,
345
- css: M ? p.wheelGlow : p.wheel,
346
- "data-shake": H || void 0,
348
+ onClick: L,
349
+ css: B ? p.wheelGlow : p.wheel,
350
+ "data-shake": j || void 0,
347
351
  style: {
348
- cursor: E || S ? "default" : "pointer",
352
+ cursor: P || k ? "default" : "pointer",
349
353
  // Entrance animation
350
- opacity: C ? 1 : 0,
351
- transform: C ? "scale(1)" : "scale(0.85)"
354
+ opacity: F ? 1 : 0,
355
+ transform: F ? "scale(1)" : "scale(0.85)"
352
356
  },
353
357
  children: [
354
- /* @__PURE__ */ o($t, { segmentCount: L.length, decorations: M, primaryColor: m }),
358
+ /* @__PURE__ */ o(Rt, { segmentCount: V.length, decorations: B, primaryColor: m }),
355
359
  /* @__PURE__ */ o(
356
- Bt,
360
+ Mt,
357
361
  {
358
- segments: L,
359
- secondaryColor: y,
362
+ segments: V,
363
+ secondaryColor: O,
360
364
  primaryColor: m,
361
- onPrimaryColor: a,
362
- decorations: M,
363
- isStandard: r,
364
- rotation: N,
365
- isSpinning: T,
365
+ onPrimaryColor: u,
366
+ decorations: B,
367
+ isStandard: c,
368
+ rotation: H,
369
+ isSpinning: I,
366
370
  spinDuration: R
367
371
  }
368
372
  ),
369
- !r && !k && $ && /* @__PURE__ */ o("img", { src: $, alt: "Logo", css: p.logo }),
370
- /* @__PURE__ */ o(Ct, { primaryColor: m, dangerColor: c, decorations: M })
373
+ !c && !z && $ && /* @__PURE__ */ o("img", { src: $, alt: "Logo", css: p.logo }),
374
+ /* @__PURE__ */ o(_t, { primaryColor: m, dangerColor: i, decorations: B })
371
375
  ]
372
376
  }
373
377
  ),
374
- !r && !k && !S && x.instructions && /* @__PURE__ */ o("p", { css: p.instructions, children: x.instructions }),
375
- !r && S && (g == null ? void 0 : g.results) && /* @__PURE__ */ o(
378
+ !c && !z && !k && x.instructions && /* @__PURE__ */ o("p", { css: p.instructions, children: x.instructions }),
379
+ !c && k && (h == null ? void 0 : h.results) && /* @__PURE__ */ o(
376
380
  ce,
377
381
  {
378
- result: g.results,
382
+ result: h.results,
379
383
  variant: "embed",
380
384
  mode: "inline",
381
385
  contentColor: b,
382
386
  primaryColor: m,
383
- onPrimaryColor: a,
384
- enableReset: l,
385
- onReset: V,
387
+ onPrimaryColor: u,
388
+ enableReset: s,
389
+ onReset: X,
386
390
  showResetButton: !0,
387
391
  raised: !0
388
392
  }
389
393
  ),
390
- x.buttonLabel && !(S && g && !g.isWinning) && /* @__PURE__ */ o(
394
+ x.buttonLabel && !(k && h && !h.isWinning) && /* @__PURE__ */ o(
391
395
  "button",
392
396
  {
393
397
  type: "button",
394
- disabled: E,
395
- onClick: X,
396
- css: M ? !T && !g ? p.spinPulsing : p.spinDecorated : p.spin,
398
+ disabled: P,
399
+ onClick: L,
400
+ css: B ? !I && !h ? p.spinPulsing : p.spinDecorated : p.spin,
397
401
  children: x.buttonLabel
398
402
  }
399
403
  ),
400
- r && S && g && !g.isWinning && /* @__PURE__ */ o("button", { type: "button", onClick: V, css: p.reset, children: "Reset Game" })
404
+ c && k && h && !h.isWinning && /* @__PURE__ */ o("button", { type: "button", onClick: X, css: p.reset, children: "Reset Game" })
401
405
  ] })
402
406
  ] });
403
- return r ? /* @__PURE__ */ w("div", { css: p.standard, style: Y, children: [
407
+ return c ? /* @__PURE__ */ v("div", { css: p.standard, style: K, children: [
404
408
  !D && x.welcome && /* @__PURE__ */ o("p", { css: p.standardWelcome, children: x.welcome }),
405
- /* @__PURE__ */ o("div", { css: p.standardArea, children: /* @__PURE__ */ w("div", { css: p.standardStack, children: [
406
- /* @__PURE__ */ o("div", { css: M ? p.boxDecorated : p.box, children: Z() }),
407
- S && (g == null ? void 0 : g.results) && /* @__PURE__ */ o(
409
+ /* @__PURE__ */ o("div", { css: p.standardArea, children: /* @__PURE__ */ v("div", { css: p.standardStack, children: [
410
+ /* @__PURE__ */ o("div", { css: B ? p.boxDecorated : p.box, children: ee() }),
411
+ k && (h == null ? void 0 : h.results) && /* @__PURE__ */ o(
408
412
  ce,
409
413
  {
410
- result: g.results,
414
+ result: h.results,
411
415
  variant: "standard",
412
416
  mode: "inline",
413
417
  contentColor: b,
414
418
  primaryColor: m,
415
- onPrimaryColor: a,
419
+ onPrimaryColor: u,
416
420
  showResetButton: !1,
417
421
  spaced: !0
418
422
  }
419
423
  ),
420
- ($ || x.disclaimer) && /* @__PURE__ */ w("div", { css: p.footer, children: [
424
+ ($ || x.disclaimer) && /* @__PURE__ */ v("div", { css: p.footer, children: [
421
425
  x.disclaimer && /* @__PURE__ */ o("p", { css: p.disclaimer, children: x.disclaimer }),
422
426
  $ && /* @__PURE__ */ o(
423
427
  "img",
@@ -429,26 +433,26 @@ const Le = {
429
433
  )
430
434
  ] })
431
435
  ] }) })
432
- ] }) : /* @__PURE__ */ w("div", { css: p.embed, style: Y, children: [
433
- Z(),
436
+ ] }) : /* @__PURE__ */ v("div", { css: p.embed, style: K, children: [
437
+ ee(),
434
438
  !D && x.disclaimer && /* @__PURE__ */ o("div", { css: p.footer, children: /* @__PURE__ */ o("p", { css: p.disclaimer, children: x.disclaimer }) })
435
439
  ] });
436
- }, Pt = ({
440
+ }, Xt = ({
437
441
  infoPage: t,
438
- enableReset: l = !1,
442
+ enableReset: s = !1,
439
443
  imagePosition: b = "left",
440
444
  defaultImagePlaceholderUrl: m
441
445
  }) => {
442
- var k, O;
443
- const { t: y } = me(), a = q(), i = Re(), c = qe() === "dark", $ = we(
446
+ var z, w;
447
+ const { t: O } = ue(), u = te(), r = Be(), i = Je() === "dark", $ = ye(
444
448
  {
445
449
  images: t.images,
446
450
  imagePlaceholder: m || ""
447
451
  },
448
452
  ve.STANDARD
449
- ), s = (k = t.branding) == null ? void 0 : k.colors, W = (s == null ? void 0 : s.primary_color) || i.palette.primary.plainColor, B = (s == null ? void 0 : s.secondary_color) || i.palette.danger.plainColor, h = (s == null ? void 0 : s.border_color) || null, v = (s == null ? void 0 : s.background_color) || i.surfaceVariant || "", f = (O = t.branding) == null ? void 0 : O.images, r = a ? (f == null ? void 0 : f.mobile_logo) || (f == null ? void 0 : f.main_logo) || "" : (f == null ? void 0 : f.main_logo) || "";
450
- return /* @__PURE__ */ o(_e, { brandingBorderColor: h, children: /* @__PURE__ */ o(
451
- tt,
453
+ ), a = (z = t.branding) == null ? void 0 : z.colors, _ = (a == null ? void 0 : a.primary_color) || r.palette.primary.plainColor, W = (a == null ? void 0 : a.secondary_color) || r.palette.danger.plainColor, g = (a == null ? void 0 : a.border_color) || null, y = (a == null ? void 0 : a.background_color) || r.surfaceVariant || "", f = (w = t.branding) == null ? void 0 : w.images, c = u ? (f == null ? void 0 : f.mobile_logo) || (f == null ? void 0 : f.main_logo) || "" : (f == null ? void 0 : f.main_logo) || "";
454
+ return /* @__PURE__ */ o(Re, { brandingBorderColor: g, children: /* @__PURE__ */ o(
455
+ Ze,
452
456
  {
453
457
  entity: {
454
458
  ...t,
@@ -456,45 +460,61 @@ const Le = {
456
460
  description: t.subtitle || "",
457
461
  rules: null
458
462
  },
459
- headline: y("chanceGame.headlinePrizeWheel"),
463
+ headline: O("chanceGame.headlinePrizeWheel"),
460
464
  finalImage: $,
461
465
  imagePosition: b,
462
466
  children: /* @__PURE__ */ o(
463
- at,
467
+ ct,
464
468
  {
465
469
  infoPage: t,
466
- enableReset: l,
467
- contentColor: (s == null ? void 0 : s.content_color) || i.textColor,
468
- primaryColor: W,
469
- secondaryColor: B,
470
- onPrimaryColor: i.palette.primary.onPrimary,
471
- borderColor: h || void 0,
472
- backgroundColor: v,
473
- dangerColor: i.palette.danger.plainColor,
474
- shimmerColor: W,
475
- brandingLogo: r,
476
- isDark: c,
470
+ enableReset: s,
471
+ contentColor: (a == null ? void 0 : a.content_color) || r.textColor,
472
+ primaryColor: _,
473
+ secondaryColor: W,
474
+ onPrimaryColor: r.palette.primary.onPrimary,
475
+ borderColor: g || void 0,
476
+ backgroundColor: y,
477
+ dangerColor: r.palette.danger.plainColor,
478
+ shimmerColor: _,
479
+ brandingLogo: c,
480
+ isDark: i,
477
481
  showTitleBlock: !1,
478
482
  variant: "standard"
479
483
  }
480
484
  )
481
485
  }
482
486
  ) });
483
- }, G = (t) => `var(--fu-ucrc-cg-pick-${t})`, K = { display: "flex", flexDirection: "column" }, be = { flex: 1, height: "1px" }, Ee = {
484
- ...Me,
487
+ }, G = (t) => `var(--fu-ucrc-cg-pick-${t})`, Q = { display: "flex", flexDirection: "column" }, fe = { flex: 1, height: "1px" }, Pe = {
488
+ ...ze,
485
489
  fontFamily: e.fontPrimary,
486
490
  fontWeight: 700,
487
491
  color: e.content,
488
492
  lineHeight: 1.2,
489
- textShadow: G("title-shadow")
490
- }, Pe = { ...re, fontFamily: e.fontSecondary, fontWeight: 400, color: e.content, opacity: 0.8 }, ie = { ...re, fontFamily: e.fontPrimary, fontWeight: 400, color: e.content, textAlign: "center" }, xe = {
493
+ textShadow: G("title-shadow"),
494
+ unicodeBidi: "plaintext"
495
+ }, Ee = {
491
496
  ...re,
492
497
  fontFamily: e.fontSecondary,
493
498
  fontWeight: 400,
494
499
  color: e.content,
500
+ opacity: 0.8,
501
+ unicodeBidi: "plaintext"
502
+ }, ie = {
503
+ ...re,
504
+ fontFamily: e.fontPrimary,
505
+ fontWeight: 400,
506
+ color: e.content,
495
507
  textAlign: "center",
496
- opacity: 0.7
497
- }, Ne = { display: "flex", alignItems: "center", gap: e.spaceSm, marginBlock: e.spaceXs }, He = {
508
+ unicodeBidi: "plaintext"
509
+ }, be = {
510
+ ...re,
511
+ fontFamily: e.fontSecondary,
512
+ fontWeight: 400,
513
+ color: e.content,
514
+ textAlign: "center",
515
+ opacity: 0.7,
516
+ unicodeBidi: "plaintext"
517
+ }, Ve = { display: "flex", alignItems: "center", gap: e.spaceSm, marginBlock: e.spaceXs }, Ne = {
498
518
  ...re,
499
519
  fontFamily: e.fontSecondary,
500
520
  fontWeight: 400,
@@ -502,8 +522,9 @@ const Le = {
502
522
  opacity: 0.7,
503
523
  textAlign: "center",
504
524
  maxWidth: "900px",
505
- lineHeight: 1.4
506
- }, lt = { "&:hover": { borderColor: e.primary, backgroundColor: "transparent", color: e.primary } }, Ue = {
525
+ lineHeight: 1.4,
526
+ unicodeBidi: "plaintext"
527
+ }, rt = { "&:hover": { borderColor: e.primary, backgroundColor: "transparent", color: e.primary } }, He = {
507
528
  marginTop: e.spaceMd,
508
529
  paddingInline: e.spaceLg,
509
530
  paddingBlock: e.spaceSm,
@@ -513,7 +534,7 @@ const Le = {
513
534
  borderRadius: e.radiusMd,
514
535
  borderColor: e.border,
515
536
  color: e.content,
516
- ...lt
537
+ ...rt
517
538
  }, je = {
518
539
  borderRadius: e.radiusXl,
519
540
  paddingBlock: e.spaceSm,
@@ -523,15 +544,15 @@ const Le = {
523
544
  fontWeight: 700,
524
545
  fontFamily: e.fontPrimary,
525
546
  textTransform: "uppercase",
526
- ...lt
527
- }, u = {
528
- titleBlock: n({ ...K, gap: e.spaceXs, alignItems: "center", textAlign: "center", width: "100%" }),
529
- title: n({ ...Ee, fontSize: "2rem" }),
530
- titleMobile: n({ ...Ee, fontSize: "1.5rem" }),
547
+ ...rt
548
+ }, d = {
549
+ titleBlock: n({ ...Q, gap: e.spaceXs, alignItems: "center", textAlign: "center", width: "100%" }),
550
+ title: n({ ...Pe, fontSize: "2rem" }),
551
+ titleMobile: n({ ...Pe, fontSize: "1.5rem" }),
531
552
  underline: n({ display: "flex", alignItems: "center", gap: e.spaceSm, marginTop: e.spaceXs, width: "40%" }),
532
553
  underlineMobile: n({ display: "flex", alignItems: "center", gap: e.spaceSm, marginTop: e.spaceXs, width: "60%" }),
533
- lineIn: n({ ...be, background: `linear-gradient(to right, transparent, ${G("dc-40")})` }),
534
- lineOut: n({ ...be, background: `linear-gradient(to left, transparent, ${G("dc-40")})` }),
554
+ lineIn: n({ ...fe, background: `linear-gradient(to right, transparent, ${G("dc-40")})` }),
555
+ lineOut: n({ ...fe, background: `linear-gradient(to left, transparent, ${G("dc-40")})` }),
535
556
  underlineDiamond: n({
536
557
  width: "8px",
537
558
  height: "8px",
@@ -539,20 +560,20 @@ const Le = {
539
560
  border: `${G("border-size")} solid ${G("dc-50")}`,
540
561
  background: G("dc-15")
541
562
  }),
542
- subtitle: n({ ...Pe, fontSize: "1rem" }),
543
- subtitleMobile: n({ ...Pe, fontSize: "0.875rem" }),
563
+ subtitle: n({ ...Ee, fontSize: "1rem" }),
564
+ subtitleMobile: n({ ...Ee, fontSize: "0.875rem" }),
544
565
  welcome: n({ ...ie, fontSize: "1rem", marginBottom: e.spaceMd }),
545
566
  welcomeMobile: n({ ...ie, fontSize: "0.875rem", marginBottom: e.spaceMd }),
546
567
  welcomeOverlay: n({ ...ie, fontSize: "1rem", marginBottom: 0 }),
547
568
  welcomeOverlayMobile: n({ ...ie, fontSize: "0.875rem", marginBottom: 0 }),
548
- instructions: n({ ...xe, fontSize: "1rem", maxWidth: "600px" }),
549
- instructionsMobile: n({ ...xe, fontSize: "0.875rem", maxWidth: "600px" }),
550
- instructionsStandard: n({ ...xe, fontSize: "1rem", maxWidth: "400px" }),
551
- instructionsStandardMobile: n({ ...xe, fontSize: "0.875rem", maxWidth: "400px" }),
552
- divider: n({ ...Ne, width: "25%" }),
553
- dividerMobile: n({ ...Ne, width: "40%" }),
554
- dividerIn: n({ ...be, background: `linear-gradient(to right, transparent, ${G("dc-25")})` }),
555
- dividerOut: n({ ...be, background: `linear-gradient(to left, transparent, ${G("dc-25")})` }),
569
+ instructions: n({ ...be, fontSize: "1rem", maxWidth: "600px" }),
570
+ instructionsMobile: n({ ...be, fontSize: "0.875rem", maxWidth: "600px" }),
571
+ instructionsStandard: n({ ...be, fontSize: "1rem", maxWidth: "400px" }),
572
+ instructionsStandardMobile: n({ ...be, fontSize: "0.875rem", maxWidth: "400px" }),
573
+ divider: n({ ...Ve, width: "25%" }),
574
+ dividerMobile: n({ ...Ve, width: "40%" }),
575
+ dividerIn: n({ ...fe, background: `linear-gradient(to right, transparent, ${G("dc-25")})` }),
576
+ dividerOut: n({ ...fe, background: `linear-gradient(to left, transparent, ${G("dc-25")})` }),
556
577
  dividerDot: n({ width: "4px", height: "4px", borderRadius: "50%", background: G("dc-35") }),
557
578
  grid: n({
558
579
  marginTop: e.spaceLg,
@@ -564,12 +585,12 @@ const Le = {
564
585
  perspective: "1200px"
565
586
  }),
566
587
  cell: n({ display: "flex", justifyContent: "center", alignItems: "center" }),
567
- embedReset: n(de, Ue, { fontSize: "1rem", minWidth: "180px" }),
568
- embedResetMobile: n(de, Ue, { fontSize: "0.875rem", minWidth: "150px" }),
569
- standardReset: n(de, je, { fontSize: "0.875rem" }),
570
- standardResetMobile: n(de, je, { fontSize: "0.75rem" }),
588
+ embedReset: n(se, He, { fontSize: "1rem", minWidth: "180px" }),
589
+ embedResetMobile: n(se, He, { fontSize: "0.875rem", minWidth: "150px" }),
590
+ standardReset: n(se, je, { fontSize: "0.875rem" }),
591
+ standardResetMobile: n(se, je, { fontSize: "0.75rem" }),
571
592
  standard: n({
572
- ...K,
593
+ ...Q,
573
594
  width: "100%",
574
595
  height: "100%",
575
596
  gap: e.spaceLg,
@@ -580,9 +601,9 @@ const Le = {
580
601
  }),
581
602
  standardWelcome: n({ ...ie, fontSize: "1rem", paddingInline: e.spaceMd }),
582
603
  standardWelcomeMobile: n({ ...ie, fontSize: "0.875rem", paddingInline: e.spaceMd }),
583
- standardArea: n({ ...K, paddingInline: e.spaceMd, width: "100%", boxSizing: "border-box" }),
584
- standardStack: n({ ...K, gap: e.spaceMd }),
585
- standardStackMobile: n({ ...K, gap: e.spaceLg }),
604
+ standardArea: n({ ...Q, paddingInline: e.spaceMd, width: "100%", boxSizing: "border-box" }),
605
+ standardStack: n({ ...Q, gap: e.spaceMd }),
606
+ standardStackMobile: n({ ...Q, gap: e.spaceLg }),
586
607
  gameBox: n({
587
608
  borderRadius: e.radiusMd,
588
609
  paddingInline: e.spaceSm,
@@ -590,17 +611,17 @@ const Le = {
590
611
  paddingBottom: e.spaceMd,
591
612
  gap: e.spaceMd,
592
613
  backgroundColor: G("box-bg"),
593
- ...K,
614
+ ...Q,
594
615
  alignItems: "center",
595
616
  backdropFilter: "blur(4px)",
596
617
  position: "relative",
597
618
  overflow: "hidden"
598
619
  }),
599
- footer: n({ ...K, alignItems: "center", gap: e.spaceMd }),
600
- disclaimer: n({ ...He, fontSize: "0.75rem" }),
601
- disclaimerMobile: n({ ...He, fontSize: "0.625rem" }),
620
+ footer: n({ ...Q, alignItems: "center", gap: e.spaceMd }),
621
+ disclaimer: n({ ...Ne, fontSize: "0.75rem" }),
622
+ disclaimerMobile: n({ ...Ne, fontSize: "0.625rem" }),
602
623
  embed: n({
603
- ...K,
624
+ ...Q,
604
625
  width: "100%",
605
626
  height: "100%",
606
627
  padding: e.spaceLg,
@@ -610,169 +631,169 @@ const Le = {
610
631
  overflow: "auto",
611
632
  boxSizing: "border-box"
612
633
  })
613
- }, st = ({
634
+ }, at = ({
614
635
  infoPage: t,
615
- enableReset: l = !1,
636
+ enableReset: s = !1,
616
637
  contentColor: b,
617
638
  primaryColor: m,
618
- onPrimaryColor: y,
619
- borderColor: a,
620
- backgroundColor: i,
621
- dangerColor: c,
639
+ onPrimaryColor: O,
640
+ borderColor: u,
641
+ backgroundColor: r,
642
+ dangerColor: i,
622
643
  cardBaseColor: $,
623
- shimmerColor: s,
624
- brandingLogo: W = "",
625
- isDark: B = !1,
626
- showTitleBlock: h = !1,
627
- variant: v,
644
+ shimmerColor: a,
645
+ brandingLogo: _ = "",
646
+ isDark: W = !1,
647
+ showTitleBlock: g = !1,
648
+ variant: y,
628
649
  compactCards: f = !1
629
650
  }) => {
630
- var Fe, De, Te, Ie;
631
- const r = q(), k = Re(), O = Je(), A = it(), L = $ || i, x = s || m, _ = v === "standard", P = v === "overlay", M = _ ? Ke(i) : "", F = M ? M.replace(/[^\d,]/g, "") : "", T = f ? r ? 80 : 110 : r ? 100 : 140, N = f ? r ? 104 : 143 : r ? 130 : 180, g = f ? r ? 90 : 130 : r ? 120 : 180, H = f ? r ? "16px" : "32px" : r ? "24px" : "48px", D = f ? r ? "12px" : "32px" : r ? "16px" : "48px", S = ct(m, B), C = JSON.parse(t.body), I = C.segments || [], R = t.labels || {}, U = C.mode || ((Fe = C.config) == null ? void 0 : Fe.mode) || "fair", j = ((De = C.config) == null ? void 0 : De.pace) || "normal", te = ((Te = C.config) == null ? void 0 : Te.revealAll) ?? !1, X = ((Ie = C.config) == null ? void 0 : Ie.decorations) ?? !1, V = I.some((ae) => {
632
- var J;
633
- return (J = ae.images) == null ? void 0 : J.idle;
651
+ var Fe, Ce, De, Te;
652
+ const c = te(), z = Be(), w = Ue(), T = ot(), V = $ || r, x = a || m, M = y === "standard", N = y === "overlay", B = M ? Ye(r) : "", C = B ? B.replace(/[^\d,]/g, "") : "", I = f ? c ? 80 : 110 : c ? 100 : 140, H = f ? c ? 104 : 143 : c ? 130 : 180, h = f ? c ? 90 : 130 : c ? 120 : 180, j = f ? c ? "16px" : "32px" : c ? "24px" : "48px", D = f ? c ? "12px" : "32px" : c ? "16px" : "48px", k = nt(m, W), F = JSON.parse(t.body), A = F.segments || [], R = t.labels || {}, U = F.mode || ((Fe = F.config) == null ? void 0 : Fe.mode) || "fair", Y = ((Ce = F.config) == null ? void 0 : Ce.pace) || "normal", J = ((De = F.config) == null ? void 0 : De.revealAll) ?? !1, L = ((Te = F.config) == null ? void 0 : Te.decorations) ?? !1, X = A.some((ae) => {
653
+ var q;
654
+ return (q = ae.images) == null ? void 0 : q.idle;
634
655
  }), {
635
- selectedSegment: z,
636
- displaySegments: Q,
656
+ selectedSegment: S,
657
+ displaySegments: Z,
637
658
  revealResult: oe,
638
- showResultScreen: Y,
639
- showInlineResult: E,
640
- showLoseAnimation: Z,
641
- hasEntered: ee,
642
- flippedCards: pe,
643
- crossfadedCards: he,
644
- revealedOtherCards: ut,
645
- flipDuration: mt,
646
- crossfadeDuration: pt,
647
- loseAnimationDuration: ht,
648
- handlePick: We,
649
- handleReset: $e
650
- } = Ft({ segments: I, mode: U, pace: j, revealAll: te }), Be = {
651
- ...A,
659
+ showResultScreen: K,
660
+ showInlineResult: P,
661
+ showLoseAnimation: ee,
662
+ hasEntered: E,
663
+ flippedCards: me,
664
+ crossfadedCards: pe,
665
+ revealedOtherCards: st,
666
+ flipDuration: dt,
667
+ crossfadeDuration: ut,
668
+ loseAnimationDuration: mt,
669
+ handlePick: Me,
670
+ handleReset: _e
671
+ } = $t({ segments: A, mode: U, pace: Y, revealAll: J }), $e = {
672
+ ...T,
652
673
  "--fu-ucrc-cg-content": b,
653
674
  "--fu-ucrc-cg-primary": m,
654
- "--fu-ucrc-cg-border": a || k.outlineEnabledBorder,
655
- "--fu-ucrc-cg-pick-outline": k.outlineEnabledBorder,
656
- "--fu-ucrc-cg-pick-border-size": O.size,
657
- "--fu-ucrc-cg-pick-title-shadow": X ? `0 0 20px ${m}20` : "none",
658
- "--fu-ucrc-cg-pick-dc-15": S("15"),
659
- "--fu-ucrc-cg-pick-dc-25": S("25"),
660
- "--fu-ucrc-cg-pick-dc-35": S("35"),
661
- "--fu-ucrc-cg-pick-dc-40": S("40"),
662
- "--fu-ucrc-cg-pick-dc-50": S("50"),
663
- "--fu-ucrc-cg-pick-box-bg": `rgba(${F}, 0.5)`
664
- }, Ce = () => /* @__PURE__ */ w(ue, { children: [
665
- X && /* @__PURE__ */ o(rt, { primaryColor: m, isDark: B, animationPrefix: "casino" }),
666
- Y && (z == null ? void 0 : z.results) && /* @__PURE__ */ o(
675
+ "--fu-ucrc-cg-border": u || z.outlineEnabledBorder,
676
+ "--fu-ucrc-cg-pick-outline": z.outlineEnabledBorder,
677
+ "--fu-ucrc-cg-pick-border-size": w.size,
678
+ "--fu-ucrc-cg-pick-title-shadow": L ? `0 0 20px ${m}20` : "none",
679
+ "--fu-ucrc-cg-pick-dc-15": k("15"),
680
+ "--fu-ucrc-cg-pick-dc-25": k("25"),
681
+ "--fu-ucrc-cg-pick-dc-35": k("35"),
682
+ "--fu-ucrc-cg-pick-dc-40": k("40"),
683
+ "--fu-ucrc-cg-pick-dc-50": k("50"),
684
+ "--fu-ucrc-cg-pick-box-bg": `rgba(${C}, 0.5)`
685
+ }, We = () => /* @__PURE__ */ v(de, { children: [
686
+ L && /* @__PURE__ */ o(it, { primaryColor: m, isDark: W, animationPrefix: "casino" }),
687
+ K && (S == null ? void 0 : S.results) && /* @__PURE__ */ o(
667
688
  ce,
668
689
  {
669
- result: z.results,
670
- variant: v || "embed",
690
+ result: S.results,
691
+ variant: y || "embed",
671
692
  mode: "screen",
672
693
  contentColor: b,
673
694
  primaryColor: m,
674
- onPrimaryColor: y,
675
- borderColor: a,
676
- disclaimer: _ ? void 0 : R.disclaimer,
677
- enableReset: l,
678
- onReset: $e
695
+ onPrimaryColor: O,
696
+ borderColor: u,
697
+ disclaimer: M ? void 0 : R.disclaimer,
698
+ enableReset: s,
699
+ onReset: _e
679
700
  }
680
701
  ),
681
- !Y && /* @__PURE__ */ w(ue, { children: [
682
- !_ && h && (t.title || t.subtitle) && /* @__PURE__ */ w("div", { css: u.titleBlock, children: [
683
- t.title && /* @__PURE__ */ o("h2", { css: r ? u.titleMobile : u.title, children: t.title }),
684
- X && t.title && /* @__PURE__ */ w("div", { css: r ? u.underlineMobile : u.underline, children: [
685
- /* @__PURE__ */ o("div", { css: u.lineIn }),
686
- /* @__PURE__ */ o("div", { css: u.underlineDiamond }),
687
- /* @__PURE__ */ o("div", { css: u.lineOut })
702
+ !K && /* @__PURE__ */ v(de, { children: [
703
+ !M && g && (t.title || t.subtitle) && /* @__PURE__ */ v("div", { css: d.titleBlock, children: [
704
+ t.title && /* @__PURE__ */ o("h2", { css: c ? d.titleMobile : d.title, children: t.title }),
705
+ L && t.title && /* @__PURE__ */ v("div", { css: c ? d.underlineMobile : d.underline, children: [
706
+ /* @__PURE__ */ o("div", { css: d.lineIn }),
707
+ /* @__PURE__ */ o("div", { css: d.underlineDiamond }),
708
+ /* @__PURE__ */ o("div", { css: d.lineOut })
688
709
  ] }),
689
- t.subtitle && /* @__PURE__ */ o("p", { css: r ? u.subtitleMobile : u.subtitle, children: t.subtitle })
710
+ t.subtitle && /* @__PURE__ */ o("p", { css: c ? d.subtitleMobile : d.subtitle, children: t.subtitle })
690
711
  ] }),
691
- /* @__PURE__ */ w("div", { children: [
692
- !_ && R.welcome && /* @__PURE__ */ o(
712
+ /* @__PURE__ */ v("div", { children: [
713
+ !M && R.welcome && /* @__PURE__ */ o(
693
714
  "p",
694
715
  {
695
- css: P ? r ? u.welcomeOverlayMobile : u.welcomeOverlay : r ? u.welcomeMobile : u.welcome,
716
+ css: N ? c ? d.welcomeOverlayMobile : d.welcomeOverlay : c ? d.welcomeMobile : d.welcome,
696
717
  children: R.welcome
697
718
  }
698
719
  ),
699
- R.instructions && !E && /* @__PURE__ */ o(
720
+ R.instructions && !P && /* @__PURE__ */ o(
700
721
  "p",
701
722
  {
702
- css: _ ? r ? u.instructionsStandardMobile : u.instructionsStandard : r ? u.instructionsMobile : u.instructions,
723
+ css: M ? c ? d.instructionsStandardMobile : d.instructionsStandard : c ? d.instructionsMobile : d.instructions,
703
724
  children: R.instructions
704
725
  }
705
726
  )
706
727
  ] }),
707
- X && /* @__PURE__ */ w("div", { css: r ? u.dividerMobile : u.divider, children: [
708
- /* @__PURE__ */ o("div", { css: u.dividerIn }),
709
- /* @__PURE__ */ o("div", { css: u.dividerDot }),
710
- /* @__PURE__ */ o("div", { css: u.dividerOut })
728
+ L && /* @__PURE__ */ v("div", { css: c ? d.dividerMobile : d.divider, children: [
729
+ /* @__PURE__ */ o("div", { css: d.dividerIn }),
730
+ /* @__PURE__ */ o("div", { css: d.dividerDot }),
731
+ /* @__PURE__ */ o("div", { css: d.dividerOut })
711
732
  ] }),
712
733
  /* @__PURE__ */ o(
713
734
  "div",
714
735
  {
715
- css: u.grid,
736
+ css: d.grid,
716
737
  style: {
717
- gridTemplateColumns: `repeat(3, ${V ? g : T}px)`,
718
- rowGap: H,
738
+ gridTemplateColumns: `repeat(3, ${X ? h : I}px)`,
739
+ rowGap: j,
719
740
  columnGap: D
720
741
  },
721
- children: (Q ?? I).map((ae, J) => {
722
- const ke = `card-${J}`, ge = z !== null, Ae = pe.has(ke), fe = ut.has(ke), gt = ge && !Ae && !fe, Ge = he.has(ke), ft = ge && !Ge && !fe;
742
+ children: (Z ?? A).map((ae, q) => {
743
+ const we = `card-${q}`, he = S !== null, Ie = me.has(we), ge = st.has(we), pt = he && !Ie && !ge, Ae = pe.has(we), ht = he && !Ae && !ge;
723
744
  return /* @__PURE__ */ o(
724
745
  "div",
725
746
  {
726
- css: u.cell,
747
+ css: d.cell,
727
748
  style: {
728
- opacity: ee ? 1 : 0,
729
- transform: ee ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
730
- transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${J * 100}ms`
749
+ opacity: E ? 1 : 0,
750
+ transform: E ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
751
+ transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${q * 100}ms`
731
752
  },
732
- children: V ? /* @__PURE__ */ o(
733
- Dt,
753
+ children: X ? /* @__PURE__ */ o(
754
+ Wt,
734
755
  {
735
756
  segment: ae,
736
- index: J,
737
- selectedSegment: z,
757
+ index: q,
758
+ selectedSegment: S,
738
759
  revealResult: oe,
739
- isCrossfaded: Ge,
740
- isOtherRevealed: fe,
741
- shouldDim: ft,
742
- isRevealed: ge,
743
- hasEntered: ee,
744
- objectSize: g,
745
- crossfadeDuration: pt,
746
- isStandard: _,
760
+ isCrossfaded: Ae,
761
+ isOtherRevealed: ge,
762
+ shouldDim: ht,
763
+ isRevealed: he,
764
+ hasEntered: E,
765
+ objectSize: h,
766
+ crossfadeDuration: ut,
767
+ isStandard: M,
747
768
  primaryColor: m,
748
- dangerColor: c,
749
- onPick: () => We(J, !0)
769
+ dangerColor: i,
770
+ onPick: () => Me(q, !0)
750
771
  }
751
772
  ) : /* @__PURE__ */ o(
752
- Tt,
773
+ Ft,
753
774
  {
754
775
  segment: ae,
755
- index: J,
756
- selectedSegment: z,
757
- isFlipped: Ae,
758
- isOtherRevealed: fe,
759
- shouldDim: gt,
760
- isRevealed: ge,
761
- showLoseAnimation: Z,
762
- hasEntered: ee,
763
- cardWidth: T,
764
- cardHeight: N,
765
- flipDuration: mt,
766
- loseAnimationDuration: ht,
767
- cardBaseColor: L,
776
+ index: q,
777
+ selectedSegment: S,
778
+ isFlipped: Ie,
779
+ isOtherRevealed: ge,
780
+ shouldDim: pt,
781
+ isRevealed: he,
782
+ showLoseAnimation: ee,
783
+ hasEntered: E,
784
+ cardWidth: I,
785
+ cardHeight: H,
786
+ flipDuration: dt,
787
+ loseAnimationDuration: mt,
788
+ cardBaseColor: V,
768
789
  shimmerColor: x,
769
790
  primaryColor: m,
770
791
  contentColor: b,
771
- dangerColor: c,
772
- borderColor: a,
773
- brandingLogo: W,
792
+ dangerColor: i,
793
+ borderColor: u,
794
+ brandingLogo: _,
774
795
  compactCards: f,
775
- onPick: () => We(J, !1)
796
+ onPick: () => Me(q, !1)
776
797
  }
777
798
  )
778
799
  },
@@ -781,76 +802,76 @@ const Le = {
781
802
  })
782
803
  }
783
804
  ),
784
- !_ && E && (z == null ? void 0 : z.results) && /* @__PURE__ */ o(
805
+ !M && P && (S == null ? void 0 : S.results) && /* @__PURE__ */ o(
785
806
  ce,
786
807
  {
787
- result: z.results,
808
+ result: S.results,
788
809
  variant: "embed",
789
810
  mode: "inline",
790
811
  contentColor: b,
791
812
  primaryColor: m,
792
- onPrimaryColor: y,
793
- borderColor: a,
813
+ onPrimaryColor: O,
814
+ borderColor: u,
794
815
  showResetButton: !1
795
816
  }
796
817
  ),
797
- l && E && /* @__PURE__ */ o(
818
+ s && P && /* @__PURE__ */ o(
798
819
  "button",
799
820
  {
800
821
  type: "button",
801
- css: _ ? r ? u.standardResetMobile : u.standardReset : r ? u.embedResetMobile : u.embedReset,
802
- onClick: $e,
822
+ css: M ? c ? d.standardResetMobile : d.standardReset : c ? d.embedResetMobile : d.embedReset,
823
+ onClick: _e,
803
824
  children: "Reset Game"
804
825
  }
805
826
  )
806
827
  ] })
807
828
  ] });
808
- return _ ? /* @__PURE__ */ w("div", { css: u.standard, style: Be, children: [
809
- !Y && R.welcome && /* @__PURE__ */ o("p", { css: r ? u.standardWelcomeMobile : u.standardWelcome, children: R.welcome }),
810
- /* @__PURE__ */ o("div", { css: u.standardArea, children: /* @__PURE__ */ w("div", { css: r ? u.standardStackMobile : u.standardStack, children: [
811
- /* @__PURE__ */ o("div", { css: u.gameBox, children: Ce() }),
812
- E && (z == null ? void 0 : z.results) && /* @__PURE__ */ o(
829
+ return M ? /* @__PURE__ */ v("div", { css: d.standard, style: $e, children: [
830
+ !K && R.welcome && /* @__PURE__ */ o("p", { css: c ? d.standardWelcomeMobile : d.standardWelcome, children: R.welcome }),
831
+ /* @__PURE__ */ o("div", { css: d.standardArea, children: /* @__PURE__ */ v("div", { css: c ? d.standardStackMobile : d.standardStack, children: [
832
+ /* @__PURE__ */ o("div", { css: d.gameBox, children: We() }),
833
+ P && (S == null ? void 0 : S.results) && /* @__PURE__ */ o(
813
834
  ce,
814
835
  {
815
- result: z.results,
836
+ result: S.results,
816
837
  variant: "standard",
817
838
  mode: "inline",
818
839
  contentColor: b,
819
840
  primaryColor: m,
820
- onPrimaryColor: y,
841
+ onPrimaryColor: O,
821
842
  showResetButton: !1,
822
843
  spaced: !0
823
844
  }
824
845
  ),
825
- (W || R.disclaimer) && /* @__PURE__ */ w("div", { css: u.footer, children: [
826
- R.disclaimer && /* @__PURE__ */ o("p", { css: r ? u.disclaimerMobile : u.disclaimer, children: R.disclaimer }),
827
- W && V && /* @__PURE__ */ o(
846
+ (_ || R.disclaimer) && /* @__PURE__ */ v("div", { css: d.footer, children: [
847
+ R.disclaimer && /* @__PURE__ */ o("p", { css: c ? d.disclaimerMobile : d.disclaimer, children: R.disclaimer }),
848
+ _ && X && /* @__PURE__ */ o(
828
849
  "img",
829
850
  {
830
- src: W,
851
+ src: _,
831
852
  alt: "Brand Logo",
832
853
  style: { height: "auto", maxHeight: "60px", maxWidth: "180px" }
833
854
  }
834
855
  )
835
856
  ] })
836
857
  ] }) })
837
- ] }) : /* @__PURE__ */ o("div", { css: u.embed, style: Be, children: Ce() });
838
- }, Nt = ({
858
+ ] }) : /* @__PURE__ */ o("div", { css: d.embed, style: $e, children: We() });
859
+ }, Pt = ({
839
860
  infoPage: t,
840
- enableReset: l = !1,
861
+ enableReset: s = !1,
841
862
  imagePosition: b = "left",
842
863
  defaultImagePlaceholderUrl: m
843
864
  }) => {
844
- var r, k, O;
845
- const { t: y } = me(), a = q(), i = Re(), c = qe() === "dark", $ = we(
865
+ var c, z, w;
866
+ const { t: O } = ue(), u = te(), r = Be(), i = Je() === "dark", $ = ye(
846
867
  {
847
868
  images: t.images,
848
869
  imagePlaceholder: m || ""
849
870
  },
850
871
  ve.STANDARD
851
- ), s = (r = t.branding) == null ? void 0 : r.colors, W = (s == null ? void 0 : s.primary_color) || i.palette.primary.plainColor, B = (s == null ? void 0 : s.border_color) || null, h = (s == null ? void 0 : s.background_color) || i.surfaceVariant || "", v = (k = t.branding) == null ? void 0 : k.images, f = a ? (v == null ? void 0 : v.mobile_logo) || (v == null ? void 0 : v.main_logo) || "" : (v == null ? void 0 : v.main_logo) || "";
852
- return /* @__PURE__ */ o(_e, { brandingBorderColor: B, children: /* @__PURE__ */ o(
853
- tt,
872
+ ), a = (c = t.branding) == null ? void 0 : c.colors, _ = (a == null ? void 0 : a.primary_color) || r.palette.primary.plainColor, W = (a == null ? void 0 : a.border_color) || null, g = (a == null ? void 0 : a.background_color) || r.surfaceVariant || "", y = (z = t.branding) == null ? void 0 : z.images, f = u ? (y == null ? void 0 : y.mobile_logo) || (y == null ? void 0 : y.main_logo) || "" : (y == null ? void 0 : y.main_logo) || "";
873
+ return /* @__PURE__ */ o(Re, { brandingBorderColor: W, children: /* @__PURE__ */ o(
874
+ Ze,
854
875
  {
855
876
  entity: {
856
877
  ...t,
@@ -858,26 +879,26 @@ const Le = {
858
879
  description: t.subtitle || "",
859
880
  rules: null
860
881
  },
861
- headline: y("chanceGame.headlinePickOneOfX", {
862
- count: ((O = JSON.parse(t.body).segments) == null ? void 0 : O.length) || 0
882
+ headline: O("chanceGame.headlinePickOneOfX", {
883
+ count: ((w = JSON.parse(t.body).segments) == null ? void 0 : w.length) || 0
863
884
  }),
864
885
  finalImage: $,
865
886
  imagePosition: b,
866
887
  children: /* @__PURE__ */ o(
867
- st,
888
+ at,
868
889
  {
869
890
  infoPage: t,
870
- enableReset: l,
871
- contentColor: (s == null ? void 0 : s.content_color) || i.textPrimary,
872
- primaryColor: W,
873
- onPrimaryColor: (s == null ? void 0 : s.content_color) || i.palette.primary.onPrimary || i.surface,
874
- borderColor: B || void 0,
875
- backgroundColor: h,
876
- dangerColor: i.palette.danger.plainColor,
877
- cardBaseColor: h,
878
- shimmerColor: W,
891
+ enableReset: s,
892
+ contentColor: (a == null ? void 0 : a.content_color) || r.textPrimary,
893
+ primaryColor: _,
894
+ onPrimaryColor: (a == null ? void 0 : a.content_color) || r.palette.primary.onPrimary || r.surface,
895
+ borderColor: W || void 0,
896
+ backgroundColor: g,
897
+ dangerColor: r.palette.danger.plainColor,
898
+ cardBaseColor: g,
899
+ shimmerColor: _,
879
900
  brandingLogo: f,
880
- isDark: c,
901
+ isDark: i,
881
902
  showTitleBlock: !1,
882
903
  variant: "standard",
883
904
  compactCards: !0
@@ -885,7 +906,7 @@ const Le = {
885
906
  )
886
907
  }
887
908
  ) });
888
- }, dt = n({
909
+ }, lt = n({
889
910
  borderRadius: "var(--fu-ucrc-cg-backdrop-radius)",
890
911
  display: "flex",
891
912
  flexDirection: "column",
@@ -909,21 +930,21 @@ const Le = {
909
930
  position: "relative",
910
931
  zIndex: 1
911
932
  }
912
- }), Ht = ({
933
+ }), Et = ({
913
934
  infoPage: t,
914
- enableReset: l = !1,
935
+ enableReset: s = !1,
915
936
  defaultImagePlaceholderUrl: b
916
937
  }) => {
917
- var L, x, _, P, M, F, T, N, g, H, D, S, C, I, R, U, j;
918
- const { t: m } = me(), y = q(), a = Qe(), i = ((L = t.branding) == null ? void 0 : L.colors) || null, c = (x = t.branding) == null ? void 0 : x.images, $ = y ? (c == null ? void 0 : c.mobile_background_image) || (c == null ? void 0 : c.background_image) || "" : (c == null ? void 0 : c.background_image) || "", s = y ? (c == null ? void 0 : c.mobile_logo) || (c == null ? void 0 : c.main_logo) || "" : (c == null ? void 0 : c.main_logo) || "", W = b || (y ? Ze : et), B = $ || we(
938
+ var x, M, N, B, C, I, H, h, j, D, k, F, A, R, U, Y, J;
939
+ const { t: m } = ue(), O = te(), u = Ke(), r = ((x = t.branding) == null ? void 0 : x.colors) || null, i = (M = t.branding) == null ? void 0 : M.images, $ = O ? (i == null ? void 0 : i.mobile_background_image) || (i == null ? void 0 : i.background_image) || "" : (i == null ? void 0 : i.background_image) || "", a = O ? (i == null ? void 0 : i.mobile_logo) || (i == null ? void 0 : i.main_logo) || "" : (i == null ? void 0 : i.main_logo) || "", _ = b || (O ? qe : Qe), W = ye(
919
940
  {
920
941
  images: t.images,
921
- imagePlaceholder: W
942
+ imagePlaceholder: _
922
943
  },
923
944
  ve.OVERLAY
924
- ), h = a.colorSchemes.dark.textColor, v = (i == null ? void 0 : i.content_color) || h, f = (i == null ? void 0 : i.primary_color) || ((F = (M = (P = (_ = a.colorSchemes) == null ? void 0 : _.light) == null ? void 0 : P.palette) == null ? void 0 : M.primary) == null ? void 0 : F.plainColor), r = (H = (g = (N = (T = a.colorSchemes) == null ? void 0 : T.light) == null ? void 0 : N.palette) == null ? void 0 : g.primary) == null ? void 0 : H.onPrimary, k = (i == null ? void 0 : i.background_color) || ((S = (D = a.colorSchemes) == null ? void 0 : D.dark) == null ? void 0 : S.surfaceVariant), O = (U = (R = (I = (C = a.colorSchemes) == null ? void 0 : C.light) == null ? void 0 : I.palette) == null ? void 0 : R.danger) == null ? void 0 : U.plainColor, A = a.customRadius.dark.md;
945
+ ), g = $ || W, y = u.colorSchemes.dark.textColor, f = (r == null ? void 0 : r.content_color) || y, c = (r == null ? void 0 : r.primary_color) || ((I = (C = (B = (N = u.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : B.palette) == null ? void 0 : C.primary) == null ? void 0 : I.plainColor), z = (D = (j = (h = (H = u.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : h.palette) == null ? void 0 : j.primary) == null ? void 0 : D.onPrimary, w = (r == null ? void 0 : r.background_color) || ((F = (k = u.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : F.surfaceVariant), T = (Y = (U = (R = (A = u.colorSchemes) == null ? void 0 : A.light) == null ? void 0 : R.palette) == null ? void 0 : U.danger) == null ? void 0 : Y.plainColor, V = u.customRadius.dark.md;
925
946
  return /* @__PURE__ */ o(
926
- ot,
947
+ et,
927
948
  {
928
949
  entity: {
929
950
  ...t,
@@ -932,30 +953,30 @@ const Le = {
932
953
  rules: null
933
954
  },
934
955
  headline: m("chanceGame.headlinePickOneOfX", {
935
- count: ((j = JSON.parse(t.body).segments) == null ? void 0 : j.length) || 0
956
+ count: ((J = JSON.parse(t.body).segments) == null ? void 0 : J.length) || 0
936
957
  }),
937
- finalImage: B,
958
+ finalImage: g,
938
959
  children: /* @__PURE__ */ o(
939
960
  "div",
940
961
  {
941
- css: dt,
962
+ css: lt,
942
963
  style: {
943
- "--fu-ucrc-cg-backdrop-radius": A,
944
- "--fu-ucrc-cg-backdrop-bg": k
964
+ "--fu-ucrc-cg-backdrop-radius": V,
965
+ "--fu-ucrc-cg-backdrop-bg": w
945
966
  },
946
967
  children: /* @__PURE__ */ o(
947
- st,
968
+ at,
948
969
  {
949
970
  infoPage: t,
950
- enableReset: l,
951
- contentColor: v,
952
- primaryColor: f,
953
- onPrimaryColor: r || "#FFFFFF",
954
- backgroundColor: k,
955
- dangerColor: O,
956
- cardBaseColor: k,
957
- shimmerColor: f,
958
- brandingLogo: s,
971
+ enableReset: s,
972
+ contentColor: f,
973
+ primaryColor: c,
974
+ onPrimaryColor: z || "#FFFFFF",
975
+ backgroundColor: w,
976
+ dangerColor: T,
977
+ cardBaseColor: w,
978
+ shimmerColor: c,
979
+ brandingLogo: a,
959
980
  isDark: !0,
960
981
  showTitleBlock: !1,
961
982
  variant: "overlay",
@@ -966,51 +987,21 @@ const Le = {
966
987
  )
967
988
  }
968
989
  );
969
- }, Ye = { minWidth: "180px", display: "flex", gap: "8px", alignItems: "center", fontSize: "1em" }, se = {
970
- centered: n({ ...Ye, flexDirection: "column", zIndex: 1 }),
971
- inline: n({ ...Ye, zIndex: 10 }),
972
- label: n({
973
- margin: 0,
974
- fontWeight: 400,
975
- lineHeight: "166%",
976
- letterSpacing: "0.4px",
977
- fontSize: "1em",
978
- color: "var(--fu-ucrc-cg-presented-by)",
979
- textAlign: "right",
980
- fontFamily: "var(--fu-ucrc-font-secondary)"
981
- }),
982
- link: n({ cursor: "pointer", textDecoration: "none", display: "inline-flex" }),
983
- clickable: n({ cursor: "pointer", display: "inline-flex" })
984
- }, Ut = (t) => {
985
- const l = bt(), b = q(), m = t.isSplitVariant && l, y = xt(t.primaryUrl, t.secondaryUrl, "logo");
986
- if (!t.brandingLogo) return null;
987
- const a = /* @__PURE__ */ o("img", { src: t.brandingLogo, alt: "branding-logo", style: { maxHeight: "50px", maxWidth: "100px" } }), i = y ? typeof window > "u" ? /* @__PURE__ */ o("a", { css: se.link, href: y, target: "_blank", rel: "noopener noreferrer", children: a }) : /* @__PURE__ */ o("div", { css: se.clickable, onClick: () => window.open(y, "_blank", "noopener,noreferrer"), children: a }) : a;
988
- return /* @__PURE__ */ w(
989
- "div",
990
- {
991
- css: t.isCentered || m || b ? se.centered : se.inline,
992
- style: { "--fu-ucrc-cg-presented-by": t.textColor },
993
- children: [
994
- t.label && /* @__PURE__ */ o("p", { css: se.label, children: t.label }),
995
- i
996
- ]
997
- }
998
- );
999
- }, jt = ({
990
+ }, Vt = (t) => /* @__PURE__ */ o(kt, { inheritColor: !0, ...t }), Nt = ({
1000
991
  infoPage: t,
1001
- enableReset: l = !1,
992
+ enableReset: s = !1,
1002
993
  defaultImagePlaceholderUrl: b
1003
994
  }) => {
1004
- var x, _, P, M, F, T, N, g, H, D, S, C, I, R, U, j, te, X, V, z, Q, oe, Y, E, Z;
1005
- const { t: m } = me(), y = q(), a = Qe(), i = ((x = t.branding) == null ? void 0 : x.colors) || null, c = (_ = t.branding) == null ? void 0 : _.images, $ = y ? (c == null ? void 0 : c.mobile_background_image) || (c == null ? void 0 : c.background_image) || "" : (c == null ? void 0 : c.background_image) || "", s = y ? (c == null ? void 0 : c.mobile_logo) || (c == null ? void 0 : c.main_logo) || "" : (c == null ? void 0 : c.main_logo) || "", W = b || (y ? Ze : et), B = $ || we(
995
+ var M, N, B, C, I, H, h, j, D, k, F, A, R, U, Y, J, L, X, S, Z, oe, K, P, ee, E;
996
+ const { t: m } = ue(), O = te(), u = Ke(), r = ((M = t.branding) == null ? void 0 : M.colors) || null, i = (N = t.branding) == null ? void 0 : N.images, $ = O ? (i == null ? void 0 : i.mobile_background_image) || (i == null ? void 0 : i.background_image) || "" : (i == null ? void 0 : i.background_image) || "", a = O ? (i == null ? void 0 : i.mobile_logo) || (i == null ? void 0 : i.main_logo) || "" : (i == null ? void 0 : i.main_logo) || "", _ = b || (O ? qe : Qe), W = ye(
1006
997
  {
1007
998
  images: t.images,
1008
- imagePlaceholder: W
999
+ imagePlaceholder: _
1009
1000
  },
1010
1001
  ve.OVERLAY
1011
- ), h = a.colorSchemes.dark.textColor, v = (i == null ? void 0 : i.content_color) || h, f = (i == null ? void 0 : i.primary_color) || ((T = (F = (M = (P = a.colorSchemes) == null ? void 0 : P.light) == null ? void 0 : M.palette) == null ? void 0 : F.primary) == null ? void 0 : T.plainColor), r = (i == null ? void 0 : i.secondary_color) || ((D = (H = (g = (N = a.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : g.palette) == null ? void 0 : H.danger) == null ? void 0 : D.plainColor), k = (R = (I = (C = (S = a.colorSchemes) == null ? void 0 : S.light) == null ? void 0 : C.palette) == null ? void 0 : I.primary) == null ? void 0 : R.onPrimary, O = (i == null ? void 0 : i.background_color) || ((j = (U = a.colorSchemes) == null ? void 0 : U.dark) == null ? void 0 : j.surfaceVariant), A = (z = (V = (X = (te = a.colorSchemes) == null ? void 0 : te.light) == null ? void 0 : X.palette) == null ? void 0 : V.danger) == null ? void 0 : z.plainColor, L = a.customRadius.dark.md;
1012
- return /* @__PURE__ */ w(
1013
- ot,
1002
+ ), g = $ || W, y = u.colorSchemes.dark.textColor, f = (r == null ? void 0 : r.content_color) || y, c = (r == null ? void 0 : r.primary_color) || ((H = (I = (C = (B = u.colorSchemes) == null ? void 0 : B.light) == null ? void 0 : C.palette) == null ? void 0 : I.primary) == null ? void 0 : H.plainColor), z = (r == null ? void 0 : r.secondary_color) || ((k = (D = (j = (h = u.colorSchemes) == null ? void 0 : h.light) == null ? void 0 : j.palette) == null ? void 0 : D.danger) == null ? void 0 : k.plainColor), w = (U = (R = (A = (F = u.colorSchemes) == null ? void 0 : F.light) == null ? void 0 : A.palette) == null ? void 0 : R.primary) == null ? void 0 : U.onPrimary, T = (r == null ? void 0 : r.background_color) || ((J = (Y = u.colorSchemes) == null ? void 0 : Y.dark) == null ? void 0 : J.surfaceVariant), V = (Z = (S = (X = (L = u.colorSchemes) == null ? void 0 : L.light) == null ? void 0 : X.palette) == null ? void 0 : S.danger) == null ? void 0 : Z.plainColor, x = u.customRadius.dark.md;
1003
+ return /* @__PURE__ */ v(
1004
+ et,
1014
1005
  {
1015
1006
  entity: {
1016
1007
  ...t,
@@ -1019,29 +1010,29 @@ const Le = {
1019
1010
  rules: null
1020
1011
  },
1021
1012
  headline: m("chanceGame.headlinePrizeWheel"),
1022
- finalImage: B,
1013
+ finalImage: g,
1023
1014
  children: [
1024
1015
  /* @__PURE__ */ o(
1025
1016
  "div",
1026
1017
  {
1027
- css: dt,
1018
+ css: lt,
1028
1019
  style: {
1029
- "--fu-ucrc-cg-backdrop-radius": L,
1030
- "--fu-ucrc-cg-backdrop-bg": O
1020
+ "--fu-ucrc-cg-backdrop-radius": x,
1021
+ "--fu-ucrc-cg-backdrop-bg": T
1031
1022
  },
1032
1023
  children: /* @__PURE__ */ o(
1033
- at,
1024
+ ct,
1034
1025
  {
1035
1026
  infoPage: t,
1036
- enableReset: l,
1037
- contentColor: v,
1038
- primaryColor: f,
1039
- secondaryColor: r,
1040
- onPrimaryColor: k || "#FFFFFF",
1041
- backgroundColor: O,
1042
- dangerColor: A,
1043
- shimmerColor: f,
1044
- brandingLogo: s,
1027
+ enableReset: s,
1028
+ contentColor: f,
1029
+ primaryColor: c,
1030
+ secondaryColor: z,
1031
+ onPrimaryColor: w || "#FFFFFF",
1032
+ backgroundColor: T,
1033
+ dangerColor: V,
1034
+ shimmerColor: c,
1035
+ brandingLogo: a,
1045
1036
  isDark: !0,
1046
1037
  showTitleBlock: !1,
1047
1038
  variant: "overlay"
@@ -1050,87 +1041,87 @@ const Le = {
1050
1041
  }
1051
1042
  ),
1052
1043
  /* @__PURE__ */ o(
1053
- Ut,
1044
+ Vt,
1054
1045
  {
1055
- brandingLogo: s,
1056
- textColor: h,
1057
- label: ((Q = t.labels) == null ? void 0 : Q.sponsor) || null,
1058
- primaryUrl: (Y = (oe = t.branding) == null ? void 0 : oe.urls) == null ? void 0 : Y.primary_url,
1059
- secondaryUrl: (Z = (E = t.branding) == null ? void 0 : E.urls) == null ? void 0 : Z.secondary_url
1046
+ brandingLogo: a,
1047
+ textColor: y,
1048
+ label: ((oe = t.labels) == null ? void 0 : oe.sponsor) || null,
1049
+ primaryUrl: (P = (K = t.branding) == null ? void 0 : K.urls) == null ? void 0 : P.primary_url,
1050
+ secondaryUrl: (E = (ee = t.branding) == null ? void 0 : ee.urls) == null ? void 0 : E.secondary_url
1060
1051
  }
1061
1052
  )
1062
1053
  ]
1063
1054
  }
1064
1055
  );
1065
- }, Yt = (t) => {
1066
- const { infoPage: l } = yt(t.entityId, "chance-game", t.sdk), b = () => {
1067
- if (l && l.id !== "not-found") {
1068
- const a = Object.keys(vt);
1069
- if (l.language && a.includes(l.language))
1070
- return l.language;
1071
- if (l.language)
1056
+ }, Ht = (t) => {
1057
+ const { infoPage: s } = gt(t.entityId, "chance-game", t.sdk), b = () => {
1058
+ if (s && s.id !== "not-found") {
1059
+ const u = Object.keys(bt);
1060
+ if (s.language && u.includes(s.language))
1061
+ return s.language;
1062
+ if (s.language)
1072
1063
  return "en";
1073
1064
  }
1074
1065
  return t.language || "en";
1075
- }, [m, y] = St(!1);
1076
- if (zt(() => {
1077
- const a = b();
1078
- wt(a).then(() => y(!0));
1079
- }, [t.language, l]), !l || !m)
1080
- return /* @__PURE__ */ o(Mt, { marginBlock: "160px" });
1081
- if (l.id === "not-found")
1082
- return /* @__PURE__ */ o(Lt, { template: t.template });
1083
- if (t.template === ye.STANDARD) {
1084
- const a = t.imagePosition, i = t.defaultImagePlaceholderUrl;
1085
- return t.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ o(ze, { infoPage: l }) : t.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ o(
1086
- Nt,
1066
+ }, [m, O] = yt(!1);
1067
+ if (vt(() => {
1068
+ const u = b();
1069
+ ft(u).then(() => O(!0));
1070
+ }, [t.language, s]), !s || !m)
1071
+ return /* @__PURE__ */ o(St, { marginBlock: "160px" });
1072
+ if (s.id === "not-found")
1073
+ return /* @__PURE__ */ o(It, { template: t.template });
1074
+ if (t.template === xe.STANDARD) {
1075
+ const u = t.imagePosition, r = t.defaultImagePlaceholderUrl;
1076
+ return t.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ o(Se, { infoPage: s }) : t.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ o(
1077
+ Pt,
1087
1078
  {
1088
- infoPage: l,
1089
- imagePosition: a,
1090
- defaultImagePlaceholderUrl: i
1079
+ infoPage: s,
1080
+ imagePosition: u,
1081
+ defaultImagePlaceholderUrl: r
1091
1082
  }
1092
1083
  ) : /* @__PURE__ */ o(
1093
- Pt,
1084
+ Xt,
1094
1085
  {
1095
- infoPage: l,
1096
- imagePosition: a,
1097
- defaultImagePlaceholderUrl: i
1086
+ infoPage: s,
1087
+ imagePosition: u,
1088
+ defaultImagePlaceholderUrl: r
1098
1089
  }
1099
1090
  );
1100
1091
  }
1101
- if (t.template === ye.OVERLAY) {
1102
- const a = t.defaultImagePlaceholderUrl;
1103
- return t.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ o(ze, { infoPage: l }) : t.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ o(
1104
- Ht,
1092
+ if (t.template === xe.OVERLAY) {
1093
+ const u = t.defaultImagePlaceholderUrl;
1094
+ return t.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ o(Se, { infoPage: s }) : t.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ o(
1095
+ Et,
1105
1096
  {
1106
- infoPage: l,
1107
- defaultImagePlaceholderUrl: a
1097
+ infoPage: s,
1098
+ defaultImagePlaceholderUrl: u
1108
1099
  }
1109
1100
  ) : /* @__PURE__ */ o(
1110
- jt,
1101
+ Nt,
1111
1102
  {
1112
- infoPage: l,
1113
- defaultImagePlaceholderUrl: a
1103
+ infoPage: s,
1104
+ defaultImagePlaceholderUrl: u
1114
1105
  }
1115
1106
  );
1116
1107
  }
1117
- return t.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ o(ze, { infoPage: l }) : t.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ o(It, { infoPage: l }) : /* @__PURE__ */ o(At, { infoPage: l });
1118
- }, Jt = (t) => {
1119
- const l = kt.useMemo(
1120
- () => t.template === ye.OVERLAY ? { ...t.themeOptions, mode: "dark" } : t.themeOptions,
1108
+ return t.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ o(Se, { infoPage: s }) : t.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ o(Ct, { infoPage: s }) : /* @__PURE__ */ o(Dt, { infoPage: s });
1109
+ }, jt = (t) => {
1110
+ const s = xt.useMemo(
1111
+ () => t.template === xe.OVERLAY ? { ...t.themeOptions, mode: "dark" } : t.themeOptions,
1121
1112
  [t.template, t.themeOptions]
1122
1113
  );
1123
1114
  return /* @__PURE__ */ o(
1124
- Rt,
1115
+ Ot,
1125
1116
  {
1126
1117
  packageName: "chance-game",
1127
1118
  language: t.language,
1128
- themeOptions: l,
1119
+ themeOptions: s,
1129
1120
  disableCache: t.disableCache,
1130
1121
  children: t.children
1131
1122
  }
1132
1123
  );
1133
- }, Kt = (t) => /* @__PURE__ */ o(Jt, { ...t, children: /* @__PURE__ */ o(Yt, { ...t }) }), co = Gt(Kt);
1124
+ }, Ut = (t) => /* @__PURE__ */ o(jt, { ...t, children: /* @__PURE__ */ o(Ht, { ...t }) }), oo = Tt(Ut);
1134
1125
  export {
1135
- co as ChanceGame
1126
+ oo as ChanceGame
1136
1127
  };