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
@@ -0,0 +1,3146 @@
1
+ import { jsxs as u, jsx as t, Fragment as st } from "@emotion/react/jsx-runtime";
2
+ import { css as r, keyframes as V } from "@emotion/react";
3
+ import { useColors as ft, useCornerRadius as Zt, useFontFamily as qt, useSpacingScale as tr, useIsMobile as lt, useIsDesktop as Jt, useCurrentThemeMode as Qt } from "fansunited-frontend-core";
4
+ import er, { useState as X, useEffect as jt, useRef as le } from "react";
5
+ const wt = (e, s) => (a) => {
6
+ if (!s) return `${e}${a}`;
7
+ const i = parseInt(a, 16);
8
+ return `${e}${Math.min(Math.round(i * 2.5), 255).toString(16).padStart(2, "0")}`;
9
+ }, rr = (e) => e ? "0.15" : "0.06", or = (e) => {
10
+ const s = e.filter((a) => a.isWinning);
11
+ return s.length === 0 ? e[Math.floor(Math.random() * e.length)] : s[Math.floor(Math.random() * s.length)];
12
+ }, nr = (e) => e[Math.floor(Math.random() * e.length)], ir = (e) => {
13
+ const s = e.reduce((c, d) => c + d.weight, 0), a = Math.random() * s;
14
+ let i = 0;
15
+ for (const c of e)
16
+ if (i += c.weight, a <= i) return c;
17
+ return e[0];
18
+ }, Kt = (e, s) => {
19
+ switch (s.toLowerCase()) {
20
+ case "win":
21
+ return or(e);
22
+ case "fair":
23
+ return nr(e);
24
+ case "weighted":
25
+ default:
26
+ return ir(e);
27
+ }
28
+ }, ar = {
29
+ fast: { duration: 3e3, minSpins: 2, maxSpins: 3 },
30
+ normal: { duration: 3e3, minSpins: 3, maxSpins: 5 },
31
+ slow: { duration: 3500, minSpins: 4, maxSpins: 5 }
32
+ };
33
+ function sr({ segments: e, mode: s, pace: a }) {
34
+ const [i, c] = X(!1), [d, b] = X(0), [p, n] = X(null), [f, x] = X(!1), [g, v] = X(!1), [y, l] = X(!1), [L, w] = X(!1), [W, k] = X(!1), { duration: S, minSpins: A, maxSpins: M } = ar[a], $ = Math.round(S * 0.23), z = 3e3 / S * 1.25, R = 0.45 * z;
35
+ return jt(() => {
36
+ setTimeout(() => w(!0), 100);
37
+ }, []), {
38
+ isSpinning: i,
39
+ finalRotation: d,
40
+ selectedSegment: p,
41
+ showShakeAnimation: f,
42
+ showResultScreen: g,
43
+ showInlineResult: y,
44
+ hasEntered: L,
45
+ confettiActive: W,
46
+ spinDuration: S,
47
+ shakeAnimationDuration: $,
48
+ confettiVelocityMultiplier: z,
49
+ confettiGravity: R,
50
+ handleSpin: () => {
51
+ if (i || W || y) return;
52
+ v(!1), l(!1), n(null), c(!0);
53
+ const B = Kt(e, s);
54
+ n(B);
55
+ const F = e.findIndex(
56
+ (K) => K.id === B.id
57
+ ), Y = 360 / e.length, H = F * Y + Y / 2, Z = A + Math.floor(Math.random() * (M - A + 1)), J = 360 - H, D = d % 360;
58
+ let N = J - D;
59
+ N < 0 && (N += 360);
60
+ const q = d + Z * 360 + N;
61
+ b(q), setTimeout(() => {
62
+ c(!1), B.isWinning ? k(!0) : (x(!0), setTimeout(() => {
63
+ x(!1), setTimeout(() => {
64
+ var tt, ot;
65
+ ((tt = B.results) == null ? void 0 : tt.primaryCTA) || ((ot = B.results) == null ? void 0 : ot.secondaryCTA) ? v(!0) : l(!0);
66
+ }, 300);
67
+ }, $));
68
+ }, S);
69
+ },
70
+ handleReset: () => {
71
+ c(!1), b(0), n(null), k(!1), x(!1), v(!1), l(!1);
72
+ },
73
+ onConfettiComplete: () => {
74
+ var F, Y;
75
+ k(!1), ((F = p == null ? void 0 : p.results) == null ? void 0 : F.primaryCTA) || ((Y = p == null ? void 0 : p.results) == null ? void 0 : Y.secondaryCTA) ? v(!0) : l(!0);
76
+ }
77
+ };
78
+ }
79
+ const o = {
80
+ space2xs: "var(--fu-ucrc-cg-space-2xs)",
81
+ spaceXs: "var(--fu-ucrc-cg-space-xs)",
82
+ spaceSm: "var(--fu-ucrc-cg-space-sm)",
83
+ spaceMd: "var(--fu-ucrc-cg-space-md)",
84
+ spaceLg: "var(--fu-ucrc-cg-space-lg)",
85
+ spaceXl: "var(--fu-ucrc-cg-space-xl)",
86
+ radiusSm: "var(--fu-ucrc-cg-radius-sm)",
87
+ radiusMd: "var(--fu-ucrc-cg-radius-md)",
88
+ radiusLg: "var(--fu-ucrc-cg-radius-lg)",
89
+ radiusXl: "var(--fu-ucrc-cg-radius-xl)",
90
+ fontPrimary: "var(--fu-ucrc-cg-font-primary)",
91
+ fontSecondary: "var(--fu-ucrc-cg-font-secondary)",
92
+ surface: "var(--fu-ucrc-cg-surface)",
93
+ textPrimary: "var(--fu-ucrc-cg-text-primary)",
94
+ outline: "var(--fu-ucrc-cg-outline)",
95
+ success: "var(--fu-ucrc-cg-success)",
96
+ warningSoftBg: "var(--fu-ucrc-cg-warning-soft-bg)",
97
+ warning: "var(--fu-ucrc-cg-warning)",
98
+ // Per instance, set by each game's root from its (branding-resolved) colour props.
99
+ content: "var(--fu-ucrc-cg-content)",
100
+ primary: "var(--fu-ucrc-cg-primary)",
101
+ secondary: "var(--fu-ucrc-cg-secondary)",
102
+ onPrimary: "var(--fu-ucrc-cg-on-primary)",
103
+ danger: "var(--fu-ucrc-cg-danger)",
104
+ border: "var(--fu-ucrc-cg-border)",
105
+ background: "var(--fu-ucrc-cg-background)"
106
+ }, $t = () => {
107
+ const e = ft(), s = Zt(), a = qt(), i = tr();
108
+ return er.useMemo(
109
+ () => ({
110
+ "--fu-ucrc-cg-space-2xs": i["2xs"],
111
+ "--fu-ucrc-cg-space-xs": i.xs,
112
+ "--fu-ucrc-cg-space-sm": i.sm,
113
+ "--fu-ucrc-cg-space-md": i.md,
114
+ "--fu-ucrc-cg-space-lg": i.lg,
115
+ "--fu-ucrc-cg-space-xl": i.xl,
116
+ "--fu-ucrc-cg-radius-sm": s.sm,
117
+ "--fu-ucrc-cg-radius-md": s.md,
118
+ "--fu-ucrc-cg-radius-lg": s.lg,
119
+ "--fu-ucrc-cg-radius-xl": s.xl,
120
+ "--fu-ucrc-cg-font-primary": a.primary,
121
+ "--fu-ucrc-cg-font-secondary": a.secondary,
122
+ "--fu-ucrc-cg-surface": e.surface,
123
+ "--fu-ucrc-cg-text-primary": e.textPrimary,
124
+ "--fu-ucrc-cg-outline": e.outlineEnabledBorder,
125
+ "--fu-ucrc-cg-success": e.palette.success.plainColor,
126
+ "--fu-ucrc-cg-warning-soft-bg": e.palette.warning.softBg,
127
+ "--fu-ucrc-cg-warning": e.palette.warning.plainColor
128
+ }),
129
+ [e, s, a, i]
130
+ );
131
+ }, cr = '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', et = { margin: 0, lineHeight: 1.5 }, xt = { margin: 0, lineHeight: 1.33334, letterSpacing: "-0.025em" }, Mt = {
132
+ boxSizing: "border-box",
133
+ display: "inline-flex",
134
+ alignItems: "center",
135
+ justifyContent: "center",
136
+ position: "relative",
137
+ minHeight: "36px",
138
+ margin: 0,
139
+ border: "none",
140
+ lineHeight: "inherit",
141
+ cursor: "pointer",
142
+ userSelect: "none",
143
+ textDecoration: "none",
144
+ WebkitTapHighlightColor: "transparent",
145
+ "&:focus-visible": { outline: "2px solid var(--fu-ucrc-focus-visible, #0B6BCB)", outlineOffset: "2px" },
146
+ "&:disabled": { pointerEvents: "none", cursor: "default" }
147
+ }, Lt = { ...Mt, border: "1px solid", backgroundColor: "transparent" }, _t = { display: "flex", flexDirection: "column", alignItems: "center" }, Et = {
148
+ paddingInline: o.spaceLg,
149
+ paddingBlock: o.spaceSm,
150
+ fontWeight: 700,
151
+ textTransform: "uppercase",
152
+ borderColor: o.border,
153
+ color: o.content,
154
+ transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
155
+ "&:hover": { borderColor: o.primary, backgroundColor: "transparent", color: o.primary }
156
+ }, de = {
157
+ flex: 1,
158
+ width: "auto",
159
+ ..._t,
160
+ gap: o.spaceXs,
161
+ textAlign: "center",
162
+ padding: o.spaceMd,
163
+ border: `2px solid ${o.border}`,
164
+ borderRadius: o.radiusLg,
165
+ boxSizing: "border-box"
166
+ }, pe = {
167
+ marginTop: o.spaceSm,
168
+ paddingInline: o.spaceLg,
169
+ paddingBlock: o.spaceSm,
170
+ fontFamily: o.fontPrimary,
171
+ fontWeight: 700,
172
+ fontSize: "0.875rem",
173
+ textTransform: "uppercase",
174
+ letterSpacing: "0.5px",
175
+ borderRadius: o.radiusXl,
176
+ backgroundColor: o.primary,
177
+ color: o.onPrimary,
178
+ boxShadow: "0 4px 14px 0 rgba(0,0,0,0.15)",
179
+ transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
180
+ transform: "scale(1)",
181
+ "&:hover": { transform: "scale(1.05)", boxShadow: "0 6px 20px 0 rgba(0,0,0,0.2)" },
182
+ "&:active": { transform: "scale(0.95)" },
183
+ unicodeBidi: "plaintext"
184
+ }, fe = {
185
+ ...et,
186
+ fontFamily: o.fontSecondary,
187
+ fontWeight: 400,
188
+ fontSize: "0.75rem",
189
+ color: o.content,
190
+ opacity: 0.7,
191
+ textAlign: "center",
192
+ maxWidth: "900px",
193
+ lineHeight: 1.4,
194
+ unicodeBidi: "plaintext"
195
+ }, ue = {
196
+ ...xt,
197
+ fontFamily: o.fontPrimary,
198
+ fontWeight: 700,
199
+ fontSize: "2rem",
200
+ color: o.content,
201
+ lineHeight: 1.2,
202
+ unicodeBidi: "plaintext"
203
+ }, ge = {
204
+ ...et,
205
+ fontFamily: o.fontSecondary,
206
+ fontWeight: 400,
207
+ fontSize: "1rem",
208
+ color: o.content,
209
+ opacity: 0.8,
210
+ unicodeBidi: "plaintext"
211
+ }, he = {
212
+ marginTop: o.spaceMd,
213
+ fontFamily: o.fontSecondary,
214
+ fontWeight: 600,
215
+ fontSize: "1rem",
216
+ borderRadius: o.radiusMd,
217
+ minWidth: "180px"
218
+ }, Ht = {
219
+ ..._t,
220
+ gap: o.spaceXs,
221
+ textAlign: "center",
222
+ width: "100%",
223
+ maxWidth: "600px"
224
+ }, G = {
225
+ screen: r({ ..._t, width: "100%", gap: o.spaceMd, zIndex: 10 }),
226
+ heading: r({ ..._t, gap: o.spaceXs }),
227
+ screenTitle: r({
228
+ ...xt,
229
+ fontFamily: o.fontPrimary,
230
+ fontWeight: 700,
231
+ fontSize: "1.25rem",
232
+ color: o.content,
233
+ textAlign: "center",
234
+ textTransform: "uppercase",
235
+ unicodeBidi: "plaintext"
236
+ }),
237
+ screenDescription: r({
238
+ ...et,
239
+ fontFamily: o.fontSecondary,
240
+ fontWeight: 400,
241
+ fontSize: "0.875rem",
242
+ color: o.content,
243
+ textAlign: "center",
244
+ opacity: 0.8,
245
+ unicodeBidi: "plaintext"
246
+ }),
247
+ ctas: r({ display: "flex", flexDirection: "row", gap: o.spaceXl, width: "100%", maxWidth: "900px", justifyContent: "center" }),
248
+ ctasStandard: r({ display: "flex", flexDirection: "row", gap: o.spaceMd, width: "100%", maxWidth: "900px", justifyContent: "center" }),
249
+ ctasMobile: r({ display: "flex", flexDirection: "column", gap: o.spaceXl, width: "100%", maxWidth: "900px", justifyContent: "center" }),
250
+ ctasStandardMobile: r({ display: "flex", flexDirection: "column", gap: o.spaceMd, width: "100%", maxWidth: "900px", justifyContent: "center" }),
251
+ cta: r(de),
252
+ ctaMobile: r({ ...de, flex: "0 1 auto", width: "100%" }),
253
+ ctaTitle: r({
254
+ ...xt,
255
+ fontFamily: o.fontPrimary,
256
+ fontWeight: 700,
257
+ fontSize: "0.875rem",
258
+ color: o.content,
259
+ textTransform: "uppercase",
260
+ unicodeBidi: "plaintext"
261
+ }),
262
+ ctaDescription: r({
263
+ ...et,
264
+ fontFamily: o.fontSecondary,
265
+ fontWeight: 400,
266
+ fontSize: "0.875rem",
267
+ color: o.content,
268
+ opacity: 0.7,
269
+ whiteSpace: "pre-line",
270
+ unicodeBidi: "plaintext"
271
+ }),
272
+ ctaButton: r(Mt, pe),
273
+ ctaButtonMobile: r(Mt, pe, { fontSize: "0.75rem" }),
274
+ screenDisclaimer: r(fe),
275
+ screenDisclaimerMobile: r({ ...fe, fontSize: "0.625rem" }),
276
+ screenReset: r(Lt, Et, {
277
+ marginTop: o.spaceSm,
278
+ fontFamily: o.fontPrimary,
279
+ fontSize: "0.875rem",
280
+ letterSpacing: "0.5px",
281
+ borderRadius: o.radiusXl
282
+ }),
283
+ screenResetMobile: r(Lt, Et, {
284
+ marginTop: o.spaceSm,
285
+ fontFamily: o.fontPrimary,
286
+ fontSize: "0.75rem",
287
+ letterSpacing: "0.5px",
288
+ borderRadius: o.radiusXl
289
+ }),
290
+ inline: r(Ht),
291
+ inlineRaised: r({ ...Ht, zIndex: 1 }),
292
+ inlineSpaced: r({ ...Ht, marginBottom: o.spaceMd }),
293
+ inlineTitle: r(ue),
294
+ inlineTitleMobile: r({ ...ue, fontSize: "1.5rem" }),
295
+ inlineDescription: r(ge),
296
+ inlineDescriptionMobile: r({ ...ge, fontSize: "0.875rem" }),
297
+ inlineReset: r(Lt, Et, he),
298
+ inlineResetMobile: r(Lt, Et, he, { fontSize: "0.875rem", minWidth: "150px" })
299
+ }, xe = ({ cta: e, mobile: s }) => /* @__PURE__ */ u("div", { css: s ? G.ctaMobile : G.cta, children: [
300
+ e.title && /* @__PURE__ */ t("h3", { css: G.ctaTitle, children: e.title }),
301
+ e.description && /* @__PURE__ */ t("p", { css: G.ctaDescription, children: e.description }),
302
+ /* @__PURE__ */ t(
303
+ "a",
304
+ {
305
+ css: s ? G.ctaButtonMobile : G.ctaButton,
306
+ href: e.link,
307
+ target: "_blank",
308
+ rel: "noopener noreferrer",
309
+ children: e.label
310
+ }
311
+ )
312
+ ] }), Wt = ({
313
+ result: e,
314
+ variant: s,
315
+ mode: a,
316
+ contentColor: i,
317
+ primaryColor: c,
318
+ onPrimaryColor: d,
319
+ borderColor: b,
320
+ disclaimer: p,
321
+ enableReset: n = !1,
322
+ onReset: f,
323
+ showResetButton: x = !0,
324
+ raised: g,
325
+ spaced: v
326
+ }) => {
327
+ const y = lt(), l = ft(), L = $t(), w = s === "standard", W = {
328
+ ...L,
329
+ "--fu-ucrc-cg-content": i,
330
+ "--fu-ucrc-cg-primary": c,
331
+ "--fu-ucrc-cg-on-primary": d,
332
+ "--fu-ucrc-cg-border": b || l.outlineEnabledBorder
333
+ }, k = n && x && f;
334
+ return a === "screen" ? /* @__PURE__ */ u("div", { css: G.screen, style: W, children: [
335
+ /* @__PURE__ */ u("div", { css: G.heading, children: [
336
+ /* @__PURE__ */ t("h2", { css: G.screenTitle, children: e.title }),
337
+ e.description && /* @__PURE__ */ t("p", { css: G.screenDescription, children: e.description })
338
+ ] }),
339
+ (e.primaryCTA || e.secondaryCTA) && /* @__PURE__ */ u(
340
+ "div",
341
+ {
342
+ css: w ? y ? G.ctasStandardMobile : G.ctasStandard : y ? G.ctasMobile : G.ctas,
343
+ children: [
344
+ e.primaryCTA && /* @__PURE__ */ t(xe, { cta: e.primaryCTA, mobile: y }),
345
+ e.secondaryCTA && /* @__PURE__ */ t(xe, { cta: e.secondaryCTA, mobile: y })
346
+ ]
347
+ }
348
+ ),
349
+ !w && p && /* @__PURE__ */ t("p", { css: y ? G.screenDisclaimerMobile : G.screenDisclaimer, children: p }),
350
+ k && /* @__PURE__ */ t(
351
+ "button",
352
+ {
353
+ type: "button",
354
+ css: y ? G.screenResetMobile : G.screenReset,
355
+ onClick: f,
356
+ children: "Reset Game"
357
+ }
358
+ )
359
+ ] }) : /* @__PURE__ */ u("div", { css: g ? G.inlineRaised : v ? G.inlineSpaced : G.inline, style: W, children: [
360
+ e.title && /* @__PURE__ */ t("h2", { css: y ? G.inlineTitleMobile : G.inlineTitle, children: e.title }),
361
+ e.description && /* @__PURE__ */ t("p", { css: y ? G.inlineDescriptionMobile : G.inlineDescription, children: e.description }),
362
+ k && /* @__PURE__ */ t("button", { type: "button", css: y ? G.inlineResetMobile : G.inlineReset, onClick: f, children: "Reset Game" })
363
+ ] });
364
+ }, lr = ["04", "06", "08", "10", "12", "15", "18", "20", "25", "30"], j = (e) => `var(--fu-ucrc-cg-dc-${e})`, T = (e) => `var(--fu-ucrc-cg-deco-${e})`, dr = V({
365
+ "0%": { transform: "translate(-50%, -50%) rotate(0deg)" },
366
+ "100%": { transform: "translate(-50%, -50%) rotate(360deg)" }
367
+ }), pr = V({
368
+ "0%": { transform: "translateY(0) scale(1)", opacity: 0 },
369
+ "10%": { opacity: 0.6 },
370
+ "90%": { opacity: 0.3 },
371
+ "100%": { transform: `translateY(-110vh) scale(${T("scale")})`, opacity: 0 }
372
+ }), me = V({
373
+ "0%, 100%": { transform: "translateY(0px)" },
374
+ "50%": { transform: `translateY(${T("rise")})` }
375
+ }), fr = V({
376
+ "0%": { transform: "rotate(45deg) rotateY(0deg)" },
377
+ "100%": { transform: "rotate(45deg) rotateY(360deg)" }
378
+ }), ur = V({
379
+ "0%": { transform: "rotateY(0deg) rotateX(15deg)" },
380
+ "25%": { transform: "rotateY(90deg) rotateX(15deg)" },
381
+ "50%": { transform: "rotateY(180deg) rotateX(15deg)" },
382
+ "75%": { transform: "rotateY(270deg) rotateX(15deg)" },
383
+ "100%": { transform: "rotateY(360deg) rotateX(15deg)" }
384
+ }), gr = V({
385
+ "0%, 100%": { transform: "translateY(0px) scale(1)", opacity: 0.4 },
386
+ "50%": { transform: `translateY(${T("rise")}) scale(1.15)`, opacity: 0.7 }
387
+ }), hr = V({
388
+ "0%": { transform: "rotateY(0deg)" },
389
+ "100%": { transform: "rotateY(360deg)" }
390
+ }), xr = V({
391
+ "0%, 100%": { opacity: 0, transform: "scale(0.5)", boxShadow: "0 0 0px var(--fu-ucrc-cg-dc-primary-00)" },
392
+ "50%": { opacity: 0.6, transform: "scale(1.2)", boxShadow: `0 0 ${T("glow")} var(--fu-ucrc-cg-dc-primary-40)` }
393
+ }), mr = V({
394
+ "0%, 100%": { opacity: 0.3, transform: "translate(-50%, -50%) scale(1)" },
395
+ "50%": { opacity: 0.7, transform: "translate(-50%, -50%) scale(1.05)" }
396
+ }), br = V({
397
+ "0%": { "--border-angle": "0deg" },
398
+ "100%": { "--border-angle": "360deg" }
399
+ }), Vt = {
400
+ position: "absolute",
401
+ top: T("y"),
402
+ left: T("x"),
403
+ width: T("size"),
404
+ height: T("size")
405
+ }, at = {
406
+ root: r({ position: "absolute", inset: 0, overflow: "hidden", pointerEvents: "none", zIndex: 0 }),
407
+ pattern: r({ position: "absolute", inset: 0 }),
408
+ spotlight: r({
409
+ position: "absolute",
410
+ top: "50%",
411
+ left: "50%",
412
+ width: T("size"),
413
+ height: T("size"),
414
+ transform: "translate(-50%, -50%)",
415
+ background: `conic-gradient(
416
+ from 0deg,
417
+ transparent 0deg, ${j("06")} 10deg, transparent 20deg,
418
+ transparent 60deg, ${j("04")} 70deg, transparent 80deg,
419
+ transparent 120deg, ${j("06")} 130deg, transparent 140deg,
420
+ transparent 180deg, ${j("04")} 190deg, transparent 200deg,
421
+ transparent 240deg, ${j("06")} 250deg, transparent 260deg,
422
+ transparent 300deg, ${j("04")} 310deg, transparent 320deg,
423
+ transparent 360deg
424
+ )`,
425
+ borderRadius: "50%",
426
+ animation: `${dr} 20s linear infinite`
427
+ }),
428
+ bubble: r({
429
+ position: "absolute",
430
+ width: T("size"),
431
+ height: T("size"),
432
+ borderRadius: "50%",
433
+ background: `radial-gradient(circle at 30% 30%, ${j("18")}, ${j("08")})`,
434
+ border: `1px solid ${j("12")}`,
435
+ bottom: "-40px",
436
+ left: T("x"),
437
+ animation: `${pr} ${T("duration")} ease-in infinite`,
438
+ animationDelay: T("delay")
439
+ }),
440
+ diamond: r({
441
+ ...Vt,
442
+ perspective: "100px",
443
+ animation: `${me} ${T("duration")} ease-in-out infinite`,
444
+ animationDelay: T("delay")
445
+ }),
446
+ diamondFace: r({
447
+ width: "100%",
448
+ height: "100%",
449
+ transform: "rotate(45deg)",
450
+ background: `linear-gradient(135deg, ${j("20")}, ${j("08")})`,
451
+ border: `1px solid ${j("25")}`,
452
+ boxShadow: `0 0 ${T("glow")} ${j("15")}`,
453
+ animation: `${fr} ${T("spin")} linear infinite`,
454
+ transformStyle: "preserve-3d"
455
+ }),
456
+ coin: r({
457
+ ...Vt,
458
+ perspective: "200px",
459
+ animation: `${me} ${T("duration")} ease-in-out infinite`,
460
+ animationDelay: T("delay")
461
+ }),
462
+ coinFace: r({
463
+ width: "100%",
464
+ height: "100%",
465
+ borderRadius: "50%",
466
+ background: `linear-gradient(135deg, ${j("25")} 0%, ${j("10")} 50%, ${j("30")} 100%)`,
467
+ border: `2px solid ${j("20")}`,
468
+ boxShadow: `inset 0 2px 4px ${j("15")}, inset 0 -2px 4px rgba(0,0,0,0.1), 0 0 ${T("glow")} ${j("10")}`,
469
+ animation: `${ur} ${T("spin")} ease-in-out infinite`,
470
+ transformStyle: "preserve-3d"
471
+ }),
472
+ coinRim: r({
473
+ position: "absolute",
474
+ top: "50%",
475
+ left: "50%",
476
+ transform: "translate(-50%, -50%)",
477
+ width: "60%",
478
+ height: "60%",
479
+ borderRadius: "50%",
480
+ border: `1px solid ${j("20")}`
481
+ }),
482
+ suit: r({
483
+ ...et,
484
+ fontFamily: cr,
485
+ position: "absolute",
486
+ top: T("y"),
487
+ left: T("x"),
488
+ fontSize: T("font"),
489
+ color: T("color"),
490
+ animation: `${gr} ${T("duration")} ease-in-out infinite, ${hr} ${T("spin")} linear infinite`,
491
+ animationDelay: T("delay"),
492
+ textShadow: `0 0 10px ${j("10")}`
493
+ }),
494
+ star: r({
495
+ ...Vt,
496
+ borderRadius: "50%",
497
+ background: "var(--fu-ucrc-cg-dc-primary)",
498
+ animation: `${xr} ${T("duration")} ease-in-out infinite`,
499
+ animationDelay: T("delay")
500
+ }),
501
+ ring: r({
502
+ position: "absolute",
503
+ top: "50%",
504
+ left: "50%",
505
+ width: T("size"),
506
+ height: T("size"),
507
+ borderRadius: "50%",
508
+ border: `1px solid ${T("color")}`,
509
+ transform: "translate(-50%, -50%)",
510
+ animation: `${mr} ${T("duration")} ease-in-out infinite`,
511
+ animationDelay: T("delay")
512
+ }),
513
+ sweep: r({
514
+ position: "absolute",
515
+ inset: 0,
516
+ borderRadius: "inherit",
517
+ padding: "1px",
518
+ background: `linear-gradient(var(--border-angle, 0deg), transparent 40%, ${j("20")} 50%, transparent 60%)`,
519
+ mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
520
+ maskComposite: "exclude",
521
+ WebkitMaskComposite: "xor",
522
+ animation: `${br} 6s linear infinite`
523
+ })
524
+ }, yt = (e) => Object.fromEntries(Object.entries(e).map(([s, a]) => [`--fu-ucrc-cg-deco-${s}`, a])), Ue = ({ primaryColor: e, isDark: s, animationPrefix: a = "casino" }) => {
525
+ const i = lt(), c = wt(e, s), d = `${a}-bg-pattern`, b = {
526
+ ...Object.fromEntries(lr.map((p) => [`--fu-ucrc-cg-dc-${p}`, c(p)])),
527
+ "--fu-ucrc-cg-dc-primary": e,
528
+ "--fu-ucrc-cg-dc-primary-00": `${e}00`,
529
+ "--fu-ucrc-cg-dc-primary-40": `${e}40`
530
+ };
531
+ return /* @__PURE__ */ u("div", { css: at.root, style: b, children: [
532
+ /* @__PURE__ */ u("svg", { width: "100%", height: "100%", opacity: rr(s), css: at.pattern, children: [
533
+ /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ u("pattern", { id: d, x: "0", y: "0", width: "60", height: "60", patternUnits: "userSpaceOnUse", children: [
534
+ /* @__PURE__ */ t("path", { d: "M 30 10 L 38 30 L 30 50 L 22 30 Z", fill: "none", stroke: e, strokeWidth: "0.5", opacity: "0.6" }),
535
+ /* @__PURE__ */ t("circle", { cx: "5", cy: "5", r: "1.5", fill: e, opacity: "0.4" }),
536
+ /* @__PURE__ */ t("circle", { cx: "55", cy: "5", r: "1.5", fill: e, opacity: "0.4" }),
537
+ /* @__PURE__ */ t("circle", { cx: "5", cy: "55", r: "1.5", fill: e, opacity: "0.4" }),
538
+ /* @__PURE__ */ t("circle", { cx: "55", cy: "55", r: "1.5", fill: e, opacity: "0.4" })
539
+ ] }) }),
540
+ /* @__PURE__ */ t("rect", { width: "100%", height: "100%", fill: `url(#${d})` })
541
+ ] }),
542
+ /* @__PURE__ */ t("div", { css: at.spotlight, style: yt({ size: i ? "300px" : "500px" }) }),
543
+ Array.from({ length: i ? 8 : 14 }).map((p, n) => /* @__PURE__ */ t(
544
+ "div",
545
+ {
546
+ css: at.bubble,
547
+ style: yt({
548
+ size: `${10 + (n * 13 + 7) % 30}px`,
549
+ x: `${(n * 17 + 23) % 90 + 5}%`,
550
+ duration: `${8 + n * 3 % 7}s`,
551
+ delay: `${n * 1.3 % 8}s`,
552
+ scale: 0.6 + n % 3 * 0.2
553
+ })
554
+ },
555
+ `bubble-${n}`
556
+ )),
557
+ Array.from({ length: i ? 3 : 5 }).map((p, n) => {
558
+ const f = i ? 12 + n % 3 * 4 : 16 + n % 3 * 6, x = 6 + n % 4 * 2;
559
+ return /* @__PURE__ */ t(
560
+ "div",
561
+ {
562
+ css: at.diamond,
563
+ style: yt({
564
+ size: `${f}px`,
565
+ x: `${8 + (n * 19 + 11) % 84}%`,
566
+ y: `${10 + (n * 23 + 7) % 75}%`,
567
+ duration: `${x + 2}s`,
568
+ delay: `${n * 1.5}s`,
569
+ rise: `${-6 - n % 3 * 4}px`,
570
+ spin: `${x}s`,
571
+ glow: `${f / 2}px`
572
+ }),
573
+ children: /* @__PURE__ */ t("div", { css: at.diamondFace })
574
+ },
575
+ `diamond-${n}`
576
+ );
577
+ }),
578
+ Array.from({ length: i ? 2 : 4 }).map((p, n) => {
579
+ const f = i ? 18 + n % 2 * 6 : 24 + n % 2 * 8, x = 5 + n % 3 * 2;
580
+ return /* @__PURE__ */ t(
581
+ "div",
582
+ {
583
+ css: at.coin,
584
+ style: yt({
585
+ size: `${f}px`,
586
+ x: `${5 + (n * 23 + 31) % 85}%`,
587
+ y: `${15 + (n * 29 + 13) % 65}%`,
588
+ duration: `${x + 3}s`,
589
+ delay: `${n * 2.2}s`,
590
+ rise: `${-8 - n % 2 * 6}px`,
591
+ spin: `${x}s`,
592
+ glow: `${f / 2}px`
593
+ }),
594
+ children: /* @__PURE__ */ t("div", { css: at.coinFace, children: /* @__PURE__ */ t("div", { css: at.coinRim }) })
595
+ },
596
+ `coin-${n}`
597
+ );
598
+ }),
599
+ ["♠", "♥", "♦", "♣"].map((p, n) => {
600
+ const f = 7 + n % 3 * 2, x = p === "♥" || p === "♦";
601
+ return /* @__PURE__ */ t(
602
+ "p",
603
+ {
604
+ css: at.suit,
605
+ style: yt({
606
+ x: `${10 + n * 22}%`,
607
+ y: `${20 + n * 17 % 55}%`,
608
+ font: i ? "16px" : "22px",
609
+ color: c(x ? "15" : "12"),
610
+ duration: `${f}s`,
611
+ spin: `${f * 2}s`,
612
+ delay: `${n * 1.8}s`,
613
+ rise: `${-10 - n * 3}px`
614
+ }),
615
+ children: p
616
+ },
617
+ `suit-${n}`
618
+ );
619
+ }),
620
+ Array.from({ length: i ? 10 : 18 }).map((p, n) => {
621
+ const f = 2 + n % 3;
622
+ return /* @__PURE__ */ t(
623
+ "div",
624
+ {
625
+ css: at.star,
626
+ style: yt({
627
+ size: `${f}px`,
628
+ x: `${(n * 13 + 5) % 95 + 2}%`,
629
+ y: `${(n * 11 + 7) % 90 + 5}%`,
630
+ duration: `${2 + n % 4 * 0.8}s`,
631
+ delay: `${n * 0.7 % 5}s`,
632
+ glow: `${f * 3}px`
633
+ })
634
+ },
635
+ `star-${n}`
636
+ );
637
+ }),
638
+ [0, 1, 2].map((p) => /* @__PURE__ */ t(
639
+ "div",
640
+ {
641
+ css: at.ring,
642
+ style: yt({
643
+ size: i ? `${200 + p * 80}px` : `${300 + p * 120}px`,
644
+ color: c((8 - p * 2).toString(16).padStart(2, "0")),
645
+ duration: `${4 + p}s`,
646
+ delay: `${p * 1.3}s`
647
+ })
648
+ },
649
+ `glow-ring-${p}`
650
+ )),
651
+ /* @__PURE__ */ t("div", { css: at.sweep })
652
+ ] });
653
+ }, be = {
654
+ root: r({
655
+ position: "absolute",
656
+ top: 0,
657
+ left: 0,
658
+ width: "100%",
659
+ height: "100%",
660
+ pointerEvents: "none",
661
+ zIndex: 1e3
662
+ }),
663
+ // `left` stays in css (via a var) so the RTL plugin mirrors it.
664
+ particle: r({ position: "absolute", left: "var(--fu-ucrc-cg-confetti-x)", opacity: 0.9 })
665
+ }, yr = ({
666
+ active: e,
667
+ primaryColor: s,
668
+ velocityMultiplier: a,
669
+ gravity: i,
670
+ onComplete: c
671
+ }) => {
672
+ const [d, b] = X([]), p = le(null), n = le(!1), f = lt(), x = ft();
673
+ return jt(() => {
674
+ if (e && !n.current) {
675
+ n.current = !0;
676
+ const g = f ? 50 : 100, v = [
677
+ s,
678
+ x.palette.warning.plainColor,
679
+ x.palette.success.plainColor,
680
+ "#FFD700",
681
+ "#FF69B4",
682
+ "#00CED1"
683
+ ], y = [];
684
+ for (let l = 0; l < g; l++)
685
+ y.push({
686
+ id: l,
687
+ x: 50,
688
+ y: 50,
689
+ vx: (Math.random() - 0.5) * 10,
690
+ vy: (Math.random() - 0.5) * 10 - 5,
691
+ color: v[Math.floor(Math.random() * v.length)],
692
+ size: Math.random() * 8 + 4,
693
+ rotation: Math.random() * 360,
694
+ rotationSpeed: (Math.random() - 0.5) * 12
695
+ });
696
+ b(y);
697
+ }
698
+ e || (n.current = !1);
699
+ }, [e]), jt(() => {
700
+ if (d.length === 0) return;
701
+ const g = () => {
702
+ b((v) => {
703
+ const y = v.map((l) => ({
704
+ ...l,
705
+ x: l.x + l.vx * 0.6 * a,
706
+ y: l.y + l.vy * 0.6 * a,
707
+ vy: l.vy + i,
708
+ rotation: l.rotation + l.rotationSpeed
709
+ })).filter((l) => l.y < 150);
710
+ return y.length === 0 ? (c(), []) : y;
711
+ }), p.current = requestAnimationFrame(g);
712
+ };
713
+ return p.current = requestAnimationFrame(g), () => {
714
+ p.current && cancelAnimationFrame(p.current);
715
+ };
716
+ }, [d.length]), d.length === 0 ? null : /* @__PURE__ */ t("div", { css: be.root, children: d.map((g) => /* @__PURE__ */ t(
717
+ "div",
718
+ {
719
+ css: be.particle,
720
+ style: {
721
+ "--fu-ucrc-cg-confetti-x": `${g.x}%`,
722
+ top: `${g.y}%`,
723
+ width: `${g.size}px`,
724
+ height: `${g.size}px`,
725
+ backgroundColor: g.color,
726
+ transform: `rotate(${g.rotation}deg)`,
727
+ borderRadius: Math.random() > 0.5 ? "50%" : "0%"
728
+ }
729
+ },
730
+ g.id
731
+ )) });
732
+ }, wr = {
733
+ root: r({ position: "absolute", width: "100%", height: "100%", pointerEvents: "none", zIndex: 2 })
734
+ }, $r = ({ segmentCount: e, decorations: s, primaryColor: a }) => {
735
+ const i = ft(), c = e * 3;
736
+ return /* @__PURE__ */ u("svg", { viewBox: "0 0 400 400", css: wr.root, children: [
737
+ /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ u("linearGradient", { id: "wheelRingGradient", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
738
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: s ? a : i.palette.warning.softBg }),
739
+ /* @__PURE__ */ t("stop", { offset: "50%", stopColor: s ? a : i.palette.warning.plainColor }),
740
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: s ? a : i.palette.warning.softBg })
741
+ ] }) }),
742
+ /* @__PURE__ */ t("circle", { cx: "200", cy: "200", r: "195", fill: "none", stroke: "url(#wheelRingGradient)", strokeWidth: "10" }),
743
+ Array.from({ length: c }).map((d, b) => {
744
+ const p = b * 360 / c * Math.PI / 180;
745
+ return /* @__PURE__ */ t(
746
+ "circle",
747
+ {
748
+ cx: 200 + 190 * Math.cos(p - Math.PI / 2),
749
+ cy: 200 + 190 * Math.sin(p - Math.PI / 2),
750
+ r: s ? "4" : "3",
751
+ fill: s ? b % 2 === 0 ? a : "#FFD700" : i.surface,
752
+ opacity: "0.9",
753
+ children: s && /* @__PURE__ */ t(
754
+ "animate",
755
+ {
756
+ attributeName: "opacity",
757
+ values: b % 2 === 0 ? "0.4;1;0.4" : "1;0.4;1",
758
+ dur: "1.5s",
759
+ repeatCount: "indefinite"
760
+ }
761
+ )
762
+ },
763
+ `dot-${b}`
764
+ );
765
+ })
766
+ ] });
767
+ }, ye = { width: "100%", height: "100%", pointerEvents: "none", zIndex: 1 }, we = {
768
+ plain: r(ye, { filter: "drop-shadow(0 4px 12px rgba(0,0,0,0.15))" }),
769
+ decorated: r(ye, { filter: "drop-shadow(0 6px 20px rgba(0,0,0,0.25))" })
770
+ }, vr = ({
771
+ segments: e,
772
+ secondaryColor: s,
773
+ primaryColor: a,
774
+ onPrimaryColor: i,
775
+ decorations: c,
776
+ isStandard: d,
777
+ rotation: b,
778
+ isSpinning: p,
779
+ spinDuration: n
780
+ }) => {
781
+ const f = ft(), x = qt(), g = lt();
782
+ return /* @__PURE__ */ u(
783
+ "svg",
784
+ {
785
+ viewBox: "0 0 400 400",
786
+ css: c ? we.decorated : we.plain,
787
+ style: {
788
+ transform: `rotate(${b}deg)`,
789
+ transition: p ? `transform ${n}ms cubic-bezier(0.17, 0.67, 0.12, 0.99)` : "none"
790
+ },
791
+ children: [
792
+ /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ u("radialGradient", { id: "wheelCenterGradient", children: [
793
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: f.surface }),
794
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: f.surfaceVariant })
795
+ ] }) }),
796
+ e.map((v, y) => {
797
+ const l = 360 / e.length, L = y * l - 90, w = L + l, W = L * Math.PI / 180, k = w * Math.PI / 180, S = 200 + 190 * Math.cos(W), A = 200 + 190 * Math.sin(W), M = 200 + 190 * Math.cos(k), $ = 200 + 190 * Math.sin(k), z = l > 180 ? 1 : 0, R = `
798
+ M 200 200
799
+ L ${S} ${A}
800
+ A 190 190 0 ${z} 1 ${M} ${$}
801
+ Z
802
+ `, m = v.color || (v.isWinning ? a : s), C = L + l / 2, h = C * Math.PI / 180, B = 200 + 120 * Math.cos(h), F = 200 + 120 * Math.sin(h), Y = `wheel-segment-gradient-${y}`, H = v.label.split(" "), Z = g ? 14 : 16, J = F - (H.length - 1) * Z / 2;
803
+ return /* @__PURE__ */ u("g", { children: [
804
+ /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ u("linearGradient", { id: Y, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
805
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: m, stopOpacity: "1" }),
806
+ /* @__PURE__ */ t("stop", { offset: "50%", stopColor: m, stopOpacity: c ? "0.92" : "0.95" }),
807
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: m, stopOpacity: c ? "0.8" : "0.85" })
808
+ ] }) }),
809
+ /* @__PURE__ */ t("path", { d: R, fill: `url(#${Y})`, stroke: f.surface, strokeWidth: c ? "2" : "3" }),
810
+ c && /* @__PURE__ */ t("path", { d: R, fill: "none", stroke: "rgba(255,255,255,0.08)", strokeWidth: "1" }),
811
+ /* @__PURE__ */ t("g", { transform: `rotate(${C + 90}, ${B}, ${F})`, children: H.map((D, N) => {
812
+ const q = J + N * Z;
813
+ return /* @__PURE__ */ u("g", { children: [
814
+ /* @__PURE__ */ t(
815
+ "text",
816
+ {
817
+ x: B,
818
+ y: q,
819
+ fill: "none",
820
+ stroke: f.surface,
821
+ strokeWidth: g ? "4" : "5",
822
+ strokeLinejoin: "round",
823
+ strokeLinecap: "round",
824
+ fontSize: "13",
825
+ fontWeight: "800",
826
+ fontFamily: x.primary,
827
+ textAnchor: "middle",
828
+ dominantBaseline: "middle",
829
+ unicodeBidi: "plaintext",
830
+ children: D
831
+ }
832
+ ),
833
+ /* @__PURE__ */ t(
834
+ "text",
835
+ {
836
+ x: B,
837
+ y: q,
838
+ fill: f.textPrimary,
839
+ fontSize: "13",
840
+ fontWeight: "800",
841
+ fontFamily: x.primary,
842
+ textAnchor: "middle",
843
+ dominantBaseline: "middle",
844
+ unicodeBidi: "plaintext",
845
+ style: { filter: "drop-shadow(0 1px 2px rgba(0,0,0,0.3))" },
846
+ children: D
847
+ }
848
+ )
849
+ ] }, `word-${N}`);
850
+ }) })
851
+ ] }, v.id);
852
+ }),
853
+ /* @__PURE__ */ t("circle", { cx: "200", cy: "200", r: "45", fill: f.textPrimary, opacity: "0.2" }),
854
+ /* @__PURE__ */ t("circle", { cx: "200", cy: "200", r: "42", fill: "url(#wheelCenterGradient)" }),
855
+ /* @__PURE__ */ t("circle", { cx: "200", cy: "200", r: "36", fill: d ? a : i })
856
+ ]
857
+ }
858
+ );
859
+ }, Sr = V({
860
+ "0%, 100%": { filter: "drop-shadow(0 0 4px var(--fu-ucrc-cg-pointer-60))" },
861
+ "50%": {
862
+ filter: "drop-shadow(0 0 12px var(--fu-ucrc-cg-pointer-a0)) drop-shadow(0 0 20px var(--fu-ucrc-cg-pointer-40))"
863
+ }
864
+ }), $e = { position: "absolute", left: "50%", transform: "translateX(-50%)", width: "0", height: "0" }, ve = { position: "absolute", top: "-15px", left: "50%", transform: "translateX(-50%)", zIndex: 10 }, Bt = {
865
+ root: r(ve),
866
+ rootPulsing: r(ve, { animation: `${Sr} 2s ease-in-out infinite` }),
867
+ shadow: r($e, {
868
+ top: "3px",
869
+ borderLeft: "22px solid transparent",
870
+ borderRight: "22px solid transparent",
871
+ borderTop: "35px solid rgba(0,0,0,0.2)"
872
+ }),
873
+ arrow: r({
874
+ position: "relative",
875
+ width: "0",
876
+ height: "0",
877
+ borderLeft: "20px solid transparent",
878
+ borderRight: "20px solid transparent",
879
+ borderTop: "35px solid var(--fu-ucrc-cg-pointer)"
880
+ }),
881
+ highlight: r($e, {
882
+ top: "5px",
883
+ borderLeft: "8px solid transparent",
884
+ borderRight: "8px solid transparent",
885
+ borderTop: "12px solid rgba(255,255,255,0.4)"
886
+ })
887
+ }, kr = ({ primaryColor: e, dangerColor: s, decorations: a }) => /* @__PURE__ */ u(
888
+ "div",
889
+ {
890
+ css: a ? Bt.rootPulsing : Bt.root,
891
+ style: {
892
+ "--fu-ucrc-cg-pointer": a ? e : s,
893
+ "--fu-ucrc-cg-pointer-60": `${e}60`,
894
+ "--fu-ucrc-cg-pointer-a0": `${e}A0`,
895
+ "--fu-ucrc-cg-pointer-40": `${e}40`
896
+ },
897
+ children: [
898
+ /* @__PURE__ */ t("div", { css: Bt.shadow }),
899
+ /* @__PURE__ */ t("div", { css: Bt.arrow }),
900
+ /* @__PURE__ */ t("div", { css: Bt.highlight })
901
+ ]
902
+ }
903
+ ), P = (e) => `var(--fu-ucrc-cg-ew-${e})`, Cr = V({
904
+ "0%, 100%": { transform: "translateX(0)" },
905
+ "10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
906
+ "20%, 40%, 60%, 80%": { transform: "translateX(8px)" }
907
+ }), Lr = V({
908
+ "0%, 100%": { boxShadow: `0 4px 14px 0 ${P("p40")}, 0 0 20px ${P("p15")}` },
909
+ "50%": { boxShadow: `0 6px 24px 0 ${P("p60")}, 0 0 35px ${P("p25")}` }
910
+ }), Se = {
911
+ ...xt,
912
+ fontFamily: o.fontPrimary,
913
+ fontWeight: 700,
914
+ fontSize: "1.25rem",
915
+ color: o.content,
916
+ lineHeight: 1.2,
917
+ unicodeBidi: "plaintext"
918
+ }, ke = {
919
+ position: "relative",
920
+ width: "100%",
921
+ maxWidth: P("max"),
922
+ aspectRatio: "1",
923
+ display: "flex",
924
+ alignItems: "center",
925
+ justifyContent: "center",
926
+ userSelect: "none",
927
+ zIndex: 1,
928
+ 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)",
929
+ marginTop: o.spaceMd,
930
+ "&[data-shake]": { animation: `${Cr} ${P("shake")} ease-in-out 2` }
931
+ }, Nt = {
932
+ borderRadius: o.radiusXl,
933
+ paddingBlock: o.spaceSm,
934
+ paddingInline: o.spaceLg,
935
+ backgroundColor: o.primary,
936
+ color: o.onPrimary,
937
+ fontSize: P("btn-font"),
938
+ fontWeight: 700,
939
+ fontFamily: o.fontPrimary,
940
+ textTransform: "uppercase",
941
+ letterSpacing: "0.5px",
942
+ alignSelf: "center",
943
+ zIndex: 1,
944
+ transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
945
+ transform: "scale(1)",
946
+ "&:active": { transform: "scale(0.95)" },
947
+ "&:disabled": { opacity: 0.5, animation: "none" },
948
+ unicodeBidi: "plaintext"
949
+ }, St = { display: "flex", flexDirection: "column", alignItems: "center" }, O = {
950
+ titleBlock: r({ ...St, gap: 0, textAlign: "center", width: "100%", zIndex: 1 }),
951
+ title: r(Se),
952
+ titleGlow: r(Se, { textShadow: `0 0 20px ${P("dc20")}, 0 0 40px ${P("dc10")}` }),
953
+ underline: r({ display: "flex", alignItems: "center", gap: "8px", marginTop: "4px" }),
954
+ underlineStart: r({ width: "40px", height: "1px", background: `linear-gradient(90deg, transparent, ${P("dc40")})` }),
955
+ underlineGem: r({ width: "6px", height: "6px", transform: "rotate(45deg)", background: P("dc50") }),
956
+ underlineEnd: r({ width: "40px", height: "1px", background: `linear-gradient(90deg, ${P("dc40")}, transparent)` }),
957
+ subtitle: r(et, {
958
+ fontFamily: o.fontSecondary,
959
+ fontWeight: 400,
960
+ fontSize: "0.875rem",
961
+ color: o.content,
962
+ opacity: 0.8,
963
+ unicodeBidi: "plaintext"
964
+ }),
965
+ welcome: r(et, {
966
+ fontFamily: o.fontPrimary,
967
+ fontWeight: 400,
968
+ fontSize: "0.875rem",
969
+ color: o.content,
970
+ textAlign: "center",
971
+ zIndex: 1,
972
+ unicodeBidi: "plaintext"
973
+ }),
974
+ instructions: r(et, {
975
+ fontFamily: o.fontSecondary,
976
+ fontWeight: 400,
977
+ fontSize: "0.875rem",
978
+ color: o.content,
979
+ opacity: 0.7,
980
+ textAlign: "center",
981
+ zIndex: 1,
982
+ unicodeBidi: "plaintext"
983
+ }),
984
+ wheel: r(ke),
985
+ wheelGlow: r(ke, { filter: `drop-shadow(0 0 15px ${P("dc20")}) drop-shadow(0 0 40px ${P("dc10")})` }),
986
+ logo: r({
987
+ position: "absolute",
988
+ top: "50%",
989
+ left: "50%",
990
+ transform: "translate(-50%, -50%)",
991
+ width: "15%",
992
+ height: "15%",
993
+ objectFit: "contain",
994
+ borderRadius: "50%",
995
+ zIndex: 3,
996
+ pointerEvents: "none",
997
+ filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.2))"
998
+ }),
999
+ spin: r(Mt, Nt, {
1000
+ boxShadow: "0 4px 14px 0 rgba(0,0,0,0.15)",
1001
+ "&:hover": { transform: "scale(1.05)", boxShadow: "0 6px 20px 0 rgba(0,0,0,0.2)" }
1002
+ }),
1003
+ spinDecorated: r(Mt, Nt, {
1004
+ boxShadow: `0 4px 14px 0 ${P("p40")}, 0 0 20px ${P("p15")}`,
1005
+ "&:hover": { transform: "scale(1.05)", boxShadow: `0 6px 20px 0 ${P("p50")}, 0 0 30px ${P("p20")}` }
1006
+ }),
1007
+ spinPulsing: r(Mt, Nt, {
1008
+ boxShadow: `0 4px 14px 0 ${P("p40")}, 0 0 20px ${P("p15")}`,
1009
+ animation: `${Lr} 2.5s ease-in-out infinite`,
1010
+ "&:hover": { transform: "scale(1.05)", boxShadow: `0 6px 20px 0 ${P("p50")}, 0 0 30px ${P("p20")}` }
1011
+ }),
1012
+ disclaimer: r(et, {
1013
+ fontFamily: o.fontSecondary,
1014
+ fontWeight: 400,
1015
+ fontSize: "0.625rem",
1016
+ color: o.content,
1017
+ opacity: 0.7,
1018
+ textAlign: "center",
1019
+ maxWidth: "900px",
1020
+ lineHeight: 1.4,
1021
+ zIndex: 1,
1022
+ unicodeBidi: "plaintext"
1023
+ }),
1024
+ footer: r({ ...St, marginTop: "auto", gap: o.spaceSm, width: "100%" }),
1025
+ root: r({
1026
+ ...St,
1027
+ width: "100%",
1028
+ padding: o.spaceMd,
1029
+ gap: o.spaceMd,
1030
+ position: "relative",
1031
+ overflow: "hidden",
1032
+ boxSizing: "border-box"
1033
+ }),
1034
+ desktop: r({ display: "flex", flexDirection: "row", width: "100%", gap: o.spaceXl, alignItems: "center", zIndex: 1 }),
1035
+ textColumn: r({
1036
+ flex: "0 0 42%",
1037
+ ...St,
1038
+ gap: o.spaceMd,
1039
+ alignSelf: "stretch",
1040
+ justifyContent: "flex-start"
1041
+ }),
1042
+ textColumnCentred: r({
1043
+ flex: "0 0 42%",
1044
+ ...St,
1045
+ gap: o.spaceMd,
1046
+ alignSelf: "stretch",
1047
+ justifyContent: "center"
1048
+ }),
1049
+ wheelColumn: r({ flex: "0 0 58%", display: "flex", alignItems: "center", justifyContent: "center", paddingTop: "15px" }),
1050
+ mobile: r({ ...St, width: "100%", gap: o.spaceSm, zIndex: 1 })
1051
+ }, Mr = ({
1052
+ infoPage: e,
1053
+ enableReset: s = !1,
1054
+ contentColor: a,
1055
+ primaryColor: i,
1056
+ secondaryColor: c,
1057
+ onPrimaryColor: d,
1058
+ dangerColor: b,
1059
+ brandingLogo: p,
1060
+ isDark: n = !1,
1061
+ forceMobile: f = !1
1062
+ }) => {
1063
+ var dt, Q, gt;
1064
+ const x = lt(), g = Jt(), v = f ? !1 : g, y = $t(), l = JSON.parse(e.body), L = l.segments || [], w = e.labels || {}, W = l.mode || ((dt = l.config) == null ? void 0 : dt.mode) || "fair", k = ((Q = l.config) == null ? void 0 : Q.pace) || "normal", S = ((gt = l.config) == null ? void 0 : gt.decorations) ?? !1, A = wt(i, n), M = !!(w.welcome || w.instructions || w.buttonLabel || w.disclaimer), {
1065
+ isSpinning: $,
1066
+ finalRotation: z,
1067
+ selectedSegment: R,
1068
+ showShakeAnimation: m,
1069
+ showResultScreen: C,
1070
+ showInlineResult: h,
1071
+ hasEntered: B,
1072
+ confettiActive: F,
1073
+ spinDuration: Y,
1074
+ shakeAnimationDuration: H,
1075
+ confettiVelocityMultiplier: Z,
1076
+ confettiGravity: J,
1077
+ handleSpin: D,
1078
+ handleReset: N,
1079
+ onConfettiComplete: q
1080
+ } = sr({ segments: L, mode: W, pace: k }), K = {
1081
+ ...y,
1082
+ "--fu-ucrc-cg-content": a,
1083
+ "--fu-ucrc-cg-primary": i,
1084
+ "--fu-ucrc-cg-on-primary": d,
1085
+ "--fu-ucrc-cg-ew-dc10": A("10"),
1086
+ "--fu-ucrc-cg-ew-dc20": A("20"),
1087
+ "--fu-ucrc-cg-ew-dc40": A("40"),
1088
+ "--fu-ucrc-cg-ew-dc50": A("50"),
1089
+ "--fu-ucrc-cg-ew-p15": `${i}15`,
1090
+ "--fu-ucrc-cg-ew-p20": `${i}20`,
1091
+ "--fu-ucrc-cg-ew-p25": `${i}25`,
1092
+ "--fu-ucrc-cg-ew-p40": `${i}40`,
1093
+ "--fu-ucrc-cg-ew-p50": `${i}50`,
1094
+ "--fu-ucrc-cg-ew-p60": `${i}60`,
1095
+ "--fu-ucrc-cg-ew-max": v ? "300px" : "260px",
1096
+ "--fu-ucrc-cg-ew-shake": `${H / 2}ms`,
1097
+ "--fu-ucrc-cg-ew-btn-font": x ? "0.75rem" : "0.875rem"
1098
+ }, tt = $ || F || !C && !h && R !== null, ot = () => /* @__PURE__ */ u("div", { css: O.titleBlock, children: [
1099
+ /* @__PURE__ */ t("h2", { css: S ? O.titleGlow : O.title, children: e.title }),
1100
+ S && /* @__PURE__ */ u("div", { css: O.underline, children: [
1101
+ /* @__PURE__ */ t("div", { css: O.underlineStart }),
1102
+ /* @__PURE__ */ t("div", { css: O.underlineGem }),
1103
+ /* @__PURE__ */ t("div", { css: O.underlineEnd })
1104
+ ] }),
1105
+ e.subtitle && /* @__PURE__ */ t("p", { css: O.subtitle, children: e.subtitle })
1106
+ ] }), nt = () => /* @__PURE__ */ u(
1107
+ "div",
1108
+ {
1109
+ onClick: D,
1110
+ css: S ? O.wheelGlow : O.wheel,
1111
+ "data-shake": m || void 0,
1112
+ style: {
1113
+ cursor: tt || h ? "default" : "pointer",
1114
+ opacity: B ? 1 : 0,
1115
+ transform: B ? "scale(1)" : "scale(0.85)"
1116
+ },
1117
+ children: [
1118
+ /* @__PURE__ */ t($r, { segmentCount: L.length, decorations: S, primaryColor: i }),
1119
+ /* @__PURE__ */ t(
1120
+ vr,
1121
+ {
1122
+ segments: L,
1123
+ secondaryColor: c,
1124
+ primaryColor: i,
1125
+ onPrimaryColor: d,
1126
+ decorations: S,
1127
+ isStandard: !1,
1128
+ rotation: z,
1129
+ isSpinning: $,
1130
+ spinDuration: Y
1131
+ }
1132
+ ),
1133
+ p && /* @__PURE__ */ t("img", { src: p, alt: "Logo", css: O.logo }),
1134
+ /* @__PURE__ */ t(kr, { primaryColor: i, dangerColor: b, decorations: S })
1135
+ ]
1136
+ }
1137
+ ), ut = () => !w.buttonLabel || h && R && !R.isWinning ? null : /* @__PURE__ */ t(
1138
+ "button",
1139
+ {
1140
+ type: "button",
1141
+ disabled: tt,
1142
+ onClick: D,
1143
+ css: S ? !$ && !R ? O.spinPulsing : O.spinDecorated : O.spin,
1144
+ children: w.buttonLabel
1145
+ }
1146
+ ), it = () => w.disclaimer ? /* @__PURE__ */ t("p", { css: O.disclaimer, children: w.disclaimer }) : null, rt = () => h && (R == null ? void 0 : R.results) && /* @__PURE__ */ t(
1147
+ Wt,
1148
+ {
1149
+ result: R.results,
1150
+ variant: "embed",
1151
+ mode: "inline",
1152
+ contentColor: a,
1153
+ primaryColor: i,
1154
+ onPrimaryColor: d,
1155
+ enableReset: s,
1156
+ onReset: N,
1157
+ showResetButton: !0,
1158
+ raised: !0
1159
+ }
1160
+ ), ct = () => /* @__PURE__ */ u(st, { children: [
1161
+ w.welcome && /* @__PURE__ */ t("p", { css: O.welcome, children: w.welcome }),
1162
+ !h && w.instructions && /* @__PURE__ */ t("p", { css: O.instructions, children: w.instructions })
1163
+ ] });
1164
+ return /* @__PURE__ */ u("div", { css: O.root, style: K, children: [
1165
+ S && /* @__PURE__ */ t(Ue, { primaryColor: i, isDark: n, animationPrefix: "wheel" }),
1166
+ /* @__PURE__ */ t(
1167
+ yr,
1168
+ {
1169
+ active: F,
1170
+ primaryColor: i,
1171
+ velocityMultiplier: Z,
1172
+ gravity: J,
1173
+ onComplete: q
1174
+ }
1175
+ ),
1176
+ C && (R == null ? void 0 : R.results) && /* @__PURE__ */ t(
1177
+ Wt,
1178
+ {
1179
+ result: R.results,
1180
+ variant: "embed",
1181
+ mode: "screen",
1182
+ contentColor: a,
1183
+ primaryColor: i,
1184
+ onPrimaryColor: d,
1185
+ disclaimer: w.disclaimer,
1186
+ enableReset: s,
1187
+ onReset: N
1188
+ }
1189
+ ),
1190
+ !C && (v ? (
1191
+ /* Desktop: horizontal 2-column layout */
1192
+ /* @__PURE__ */ u("div", { css: O.desktop, children: [
1193
+ /* @__PURE__ */ u("div", { css: M ? O.textColumn : O.textColumnCentred, children: [
1194
+ ot(),
1195
+ ct(),
1196
+ rt(),
1197
+ (w.buttonLabel || w.disclaimer) && /* @__PURE__ */ u("div", { css: O.footer, children: [
1198
+ ut(),
1199
+ it()
1200
+ ] })
1201
+ ] }),
1202
+ /* @__PURE__ */ t("div", { css: O.wheelColumn, children: nt() })
1203
+ ] })
1204
+ ) : (
1205
+ /* Mobile: compact vertical — title first, then wheel, then text */
1206
+ /* @__PURE__ */ u("div", { css: O.mobile, children: [
1207
+ ot(),
1208
+ ct(),
1209
+ nt(),
1210
+ rt(),
1211
+ ut(),
1212
+ it()
1213
+ ] })
1214
+ ))
1215
+ ] });
1216
+ }, Ce = {
1217
+ display: "flex",
1218
+ flexDirection: "column",
1219
+ width: "100%",
1220
+ height: "100%",
1221
+ position: "relative",
1222
+ overflow: "auto",
1223
+ boxSizing: "border-box",
1224
+ background: "var(--fu-ucrc-cg-embed-bg)",
1225
+ boxShadow: "inset 0 0 100px rgba(0, 0, 0, 0.04), inset 0 0 30px rgba(0, 0, 0, 0.02)"
1226
+ }, Le = {
1227
+ root: r(Ce),
1228
+ framed: r(Ce, {
1229
+ border: "1px solid var(--fu-ucrc-cg-embed-frame)",
1230
+ borderRadius: "var(--fu-ucrc-cg-embed-radius)"
1231
+ })
1232
+ }, Kr = ({ infoPage: e, enableReset: s = !1, forceMobile: a = !1 }) => {
1233
+ var A, M, $, z, R, m, C, h, B, F, Y, H, Z, J, D, N;
1234
+ const i = lt(), c = a || i, d = ft(), b = Zt(), p = Qt() === "dark", n = (A = e.branding) == null ? void 0 : A.colors, f = (n == null ? void 0 : n.primary_color) || d.palette.primary.plainColor, x = (n == null ? void 0 : n.secondary_color) || d.palette.danger.plainColor, g = (n == null ? void 0 : n.content_color) || d.textPrimary, v = n == null ? void 0 : n.border_color, y = (n == null ? void 0 : n.background_color) || d.surface, l = d.palette.danger.plainColor, w = ((M = JSON.parse(e.body).config) == null ? void 0 : M.decorations) ?? !1, W = c ? ((z = ($ = e.branding) == null ? void 0 : $.images) == null ? void 0 : z.mobile_background_image) || ((m = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : m.background_image) || ((C = e.images) == null ? void 0 : C.cover) : ((B = (h = e.branding) == null ? void 0 : h.images) == null ? void 0 : B.background_image) || ((F = e.images) == null ? void 0 : F.cover), k = c ? ((H = (Y = e.branding) == null ? void 0 : Y.images) == null ? void 0 : H.mobile_logo) || ((J = (Z = e.branding) == null ? void 0 : Z.images) == null ? void 0 : J.main_logo) || "" : ((N = (D = e.branding) == null ? void 0 : D.images) == null ? void 0 : N.main_logo) || "", S = wt(f, p);
1235
+ return /* @__PURE__ */ t(
1236
+ "div",
1237
+ {
1238
+ css: w ? Le.framed : Le.root,
1239
+ style: {
1240
+ "--fu-ucrc-cg-embed-bg": W ? `url(${W}) center/cover no-repeat` : `
1241
+ radial-gradient(ellipse at 50% 40%, ${f}12 0%, transparent 60%),
1242
+ radial-gradient(ellipse at 50% 100%, ${f}08 0%, transparent 50%),
1243
+ ${y}
1244
+ `,
1245
+ "--fu-ucrc-cg-embed-frame": S("15"),
1246
+ "--fu-ucrc-cg-embed-radius": b.lg
1247
+ },
1248
+ children: /* @__PURE__ */ t(
1249
+ Mr,
1250
+ {
1251
+ infoPage: e,
1252
+ enableReset: s,
1253
+ contentColor: g,
1254
+ primaryColor: f,
1255
+ secondaryColor: x,
1256
+ onPrimaryColor: d.palette.primary.onPrimary,
1257
+ borderColor: v || void 0,
1258
+ backgroundColor: y,
1259
+ dangerColor: l,
1260
+ shimmerColor: f,
1261
+ backgroundImage: W || void 0,
1262
+ brandingLogo: k,
1263
+ isDark: p,
1264
+ forceMobile: a
1265
+ }
1266
+ )
1267
+ }
1268
+ );
1269
+ }, Wr = {
1270
+ fast: { kickDuration: 600, totalAnimationTime: 800 },
1271
+ normal: { kickDuration: 900, totalAnimationTime: 1200 },
1272
+ slow: { kickDuration: 1500, totalAnimationTime: 2e3 }
1273
+ }, Rr = 1e3;
1274
+ function zr({
1275
+ segments: e,
1276
+ mode: s,
1277
+ pace: a
1278
+ }) {
1279
+ const [i, c] = X(!1), [d, b] = X(null), [p, n] = X(null), [f, x] = X(!1), [g, v] = X(!1), [y, l] = X(!1), [L, w] = X({ x: 50, y: 100 }), [W, k] = X(0), [S, A] = X(null), [M, $] = X(!1), { kickDuration: z } = Wr[a];
1280
+ return {
1281
+ // State
1282
+ isKicking: i,
1283
+ selectedSegment: d,
1284
+ clickedPosition: p,
1285
+ showResultScreen: f,
1286
+ showInlineResult: g,
1287
+ showLabel: y,
1288
+ ballPosition: L,
1289
+ ballRotation: W,
1290
+ flippedTarget: S,
1291
+ showNetRipple: M,
1292
+ // Timing
1293
+ kickDuration: z,
1294
+ // Actions
1295
+ handleTargetClick: (C) => {
1296
+ if (i || f || g || y) return;
1297
+ c(!0), n(C);
1298
+ const h = Kt(
1299
+ e,
1300
+ s
1301
+ );
1302
+ b(h);
1303
+ const B = Math.random() > 0.5 ? "left" : "right", F = 8, Y = B === "left" ? C.x - F : C.x + F, Z = C.y + 5;
1304
+ w({ x: Y, y: Z });
1305
+ const J = Math.sqrt(
1306
+ Math.pow(Y - 50, 2) + Math.pow(Z - 100, 2)
1307
+ ), D = Math.floor(J / 10), N = B === "left" ? -180 : 180;
1308
+ k(D * 360 + N), setTimeout(() => {
1309
+ var K, tt;
1310
+ c(!1), A({ ...C, direction: B }), l(!0), h.isWinning && ($(!0), setTimeout(() => $(!1), 600));
1311
+ const q = ((K = h.results) == null ? void 0 : K.primaryCTA) || ((tt = h.results) == null ? void 0 : tt.secondaryCTA);
1312
+ setTimeout(() => {
1313
+ q ? x(!0) : v(!0);
1314
+ }, Rr);
1315
+ }, z);
1316
+ },
1317
+ handleReset: () => {
1318
+ c(!1), b(null), n(null), x(!1), v(!1), l(!1), w({ x: 50, y: 100 }), k(0), A(null), $(!1);
1319
+ }
1320
+ };
1321
+ }
1322
+ const Ar = ({ isDark: e }) => /* @__PURE__ */ u("g", { children: [
1323
+ /* @__PURE__ */ u("defs", { children: [
1324
+ /* @__PURE__ */ t(
1325
+ "linearGradient",
1326
+ {
1327
+ id: "skyGradient",
1328
+ x1: "0%",
1329
+ y1: "0%",
1330
+ x2: "0%",
1331
+ y2: "100%",
1332
+ children: e ? /* @__PURE__ */ u(st, { children: [
1333
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#0a1628" }),
1334
+ /* @__PURE__ */ t("stop", { offset: "40%", stopColor: "#142d4a" }),
1335
+ /* @__PURE__ */ t("stop", { offset: "70%", stopColor: "#1a3a5c" }),
1336
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#1e4068" })
1337
+ ] }) : /* @__PURE__ */ u(st, { children: [
1338
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#4A90D9" }),
1339
+ /* @__PURE__ */ t("stop", { offset: "50%", stopColor: "#6BB3E8" }),
1340
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#87CEEB" })
1341
+ ] })
1342
+ }
1343
+ ),
1344
+ /* @__PURE__ */ u(
1345
+ "linearGradient",
1346
+ {
1347
+ id: "pitchGradient",
1348
+ x1: "0%",
1349
+ y1: "0%",
1350
+ x2: "0%",
1351
+ y2: "100%",
1352
+ children: [
1353
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#2d8a4e" }),
1354
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#1a6b35" })
1355
+ ]
1356
+ }
1357
+ ),
1358
+ /* @__PURE__ */ t(
1359
+ "radialGradient",
1360
+ {
1361
+ id: "floodlightGlow",
1362
+ cx: e ? "50%" : "80%",
1363
+ cy: e ? "0%" : "10%",
1364
+ r: "80%",
1365
+ children: e ? /* @__PURE__ */ u(st, { children: [
1366
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "rgba(255,255,255,0.15)" }),
1367
+ /* @__PURE__ */ t("stop", { offset: "60%", stopColor: "rgba(255,255,255,0.03)" }),
1368
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "transparent" })
1369
+ ] }) : /* @__PURE__ */ u(st, { children: [
1370
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "rgba(255,255,200,0.3)" }),
1371
+ /* @__PURE__ */ t("stop", { offset: "40%", stopColor: "rgba(255,255,200,0.08)" }),
1372
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "transparent" })
1373
+ ] })
1374
+ }
1375
+ ),
1376
+ /* @__PURE__ */ u(
1377
+ "pattern",
1378
+ {
1379
+ id: "pitchStripes",
1380
+ x: "0",
1381
+ y: "0",
1382
+ width: "60",
1383
+ height: "375",
1384
+ patternUnits: "userSpaceOnUse",
1385
+ children: [
1386
+ /* @__PURE__ */ t(
1387
+ "rect",
1388
+ {
1389
+ x: "0",
1390
+ y: "0",
1391
+ width: "30",
1392
+ height: "375",
1393
+ fill: "rgba(255,255,255,0.02)"
1394
+ }
1395
+ ),
1396
+ /* @__PURE__ */ t(
1397
+ "rect",
1398
+ {
1399
+ x: "30",
1400
+ y: "0",
1401
+ width: "30",
1402
+ height: "375",
1403
+ fill: "rgba(0,0,0,0.02)"
1404
+ }
1405
+ )
1406
+ ]
1407
+ }
1408
+ ),
1409
+ /* @__PURE__ */ t(
1410
+ "pattern",
1411
+ {
1412
+ id: "netPattern",
1413
+ x: "0",
1414
+ y: "0",
1415
+ width: "20",
1416
+ height: "20",
1417
+ patternUnits: "userSpaceOnUse",
1418
+ children: /* @__PURE__ */ t(
1419
+ "path",
1420
+ {
1421
+ d: "M 0,10 L 10,0 L 20,10 L 10,20 Z",
1422
+ fill: "none",
1423
+ stroke: "rgba(255,255,255,0.15)",
1424
+ strokeWidth: "0.5"
1425
+ }
1426
+ )
1427
+ }
1428
+ ),
1429
+ /* @__PURE__ */ u(
1430
+ "linearGradient",
1431
+ {
1432
+ id: "postGradientLeft",
1433
+ x1: "0%",
1434
+ y1: "0%",
1435
+ x2: "100%",
1436
+ y2: "0%",
1437
+ children: [
1438
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#e8e8e8" }),
1439
+ /* @__PURE__ */ t("stop", { offset: "30%", stopColor: "#ffffff" }),
1440
+ /* @__PURE__ */ t("stop", { offset: "70%", stopColor: "#d0d0d0" }),
1441
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#b0b0b0" })
1442
+ ]
1443
+ }
1444
+ ),
1445
+ /* @__PURE__ */ u(
1446
+ "linearGradient",
1447
+ {
1448
+ id: "postGradientRight",
1449
+ x1: "0%",
1450
+ y1: "0%",
1451
+ x2: "100%",
1452
+ y2: "0%",
1453
+ children: [
1454
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#b0b0b0" }),
1455
+ /* @__PURE__ */ t("stop", { offset: "30%", stopColor: "#d0d0d0" }),
1456
+ /* @__PURE__ */ t("stop", { offset: "70%", stopColor: "#ffffff" }),
1457
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#e8e8e8" })
1458
+ ]
1459
+ }
1460
+ ),
1461
+ /* @__PURE__ */ u(
1462
+ "linearGradient",
1463
+ {
1464
+ id: "crossbarGradient",
1465
+ x1: "0%",
1466
+ y1: "0%",
1467
+ x2: "0%",
1468
+ y2: "100%",
1469
+ children: [
1470
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#ffffff" }),
1471
+ /* @__PURE__ */ t("stop", { offset: "40%", stopColor: "#e0e0e0" }),
1472
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#c0c0c0" })
1473
+ ]
1474
+ }
1475
+ ),
1476
+ /* @__PURE__ */ t("filter", { id: "postShadow", x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ t("feDropShadow", { dx: "2", dy: "2", stdDeviation: "2", floodOpacity: "0.3" }) }),
1477
+ /* @__PURE__ */ t("filter", { id: "postShadowRight", x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ t("feDropShadow", { dx: "-2", dy: "2", stdDeviation: "2", floodOpacity: "0.3" }) }),
1478
+ /* @__PURE__ */ t("filter", { id: "crossbarShadow", x: "-10%", y: "-20%", width: "120%", height: "140%", children: /* @__PURE__ */ t("feDropShadow", { dx: "0", dy: "3", stdDeviation: "3", floodOpacity: "0.3" }) })
1479
+ ] }),
1480
+ /* @__PURE__ */ t("rect", { x: "0", y: "0", width: "600", height: "180", fill: "url(#skyGradient)" }),
1481
+ e && /* @__PURE__ */ u(st, { children: [
1482
+ /* @__PURE__ */ t("rect", { x: "48", y: "20", width: "4", height: "120", fill: "rgba(160,160,170,0.4)" }),
1483
+ /* @__PURE__ */ t("rect", { x: "548", y: "20", width: "4", height: "120", fill: "rgba(160,160,170,0.4)" })
1484
+ ] }),
1485
+ e ? /* @__PURE__ */ u(st, { children: [
1486
+ /* @__PURE__ */ t(
1487
+ "path",
1488
+ {
1489
+ d: "M 0,180 L 0,145 L 30,145 L 30,135 L 80,135 L 80,125 L 150,125 L 150,120 L 200,120 L 200,118 L 400,118 L 400,120 L 450,120 L 450,125 L 520,125 L 520,135 L 570,135 L 570,145 L 600,145 L 600,180 Z",
1490
+ fill: "rgba(10,15,25,0.7)"
1491
+ }
1492
+ ),
1493
+ /* @__PURE__ */ t("line", { x1: "30", y1: "145", x2: "570", y2: "145", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" }),
1494
+ /* @__PURE__ */ t("line", { x1: "80", y1: "135", x2: "520", y2: "135", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" }),
1495
+ /* @__PURE__ */ t("line", { x1: "150", y1: "125", x2: "450", y2: "125", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" }),
1496
+ /* @__PURE__ */ t("line", { x1: "200", y1: "120", x2: "400", y2: "120", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" })
1497
+ ] }) : /* @__PURE__ */ u(st, { children: [
1498
+ /* @__PURE__ */ t(
1499
+ "path",
1500
+ {
1501
+ d: "M 0,180 L 0,145 L 30,145 L 30,135 L 80,135 L 80,125 L 150,125 L 150,120 L 200,120 L 200,118 L 400,118 L 400,120 L 450,120 L 450,125 L 520,125 L 520,135 L 570,135 L 570,145 L 600,145 L 600,180 Z",
1502
+ fill: "#9BA8B8"
1503
+ }
1504
+ ),
1505
+ /* @__PURE__ */ t("rect", { x: "200", y: "118", width: "200", height: "4", fill: "#7A8899" }),
1506
+ /* @__PURE__ */ t(
1507
+ "path",
1508
+ {
1509
+ d: "M 150,125 L 150,122 L 200,122 L 200,118 L 400,118 L 400,122 L 450,122 L 450,125 Z",
1510
+ fill: "#8494A6"
1511
+ }
1512
+ ),
1513
+ /* @__PURE__ */ t("rect", { x: "150", y: "125", width: "300", height: "4", fill: "#8A9AAD" }),
1514
+ /* @__PURE__ */ t(
1515
+ "path",
1516
+ {
1517
+ d: "M 80,135 L 80,131 L 150,131 L 150,125 L 450,125 L 450,131 L 520,131 L 520,135 Z",
1518
+ fill: "#94A3B4"
1519
+ }
1520
+ ),
1521
+ /* @__PURE__ */ t("rect", { x: "80", y: "135", width: "440", height: "4", fill: "#9AAABB" }),
1522
+ /* @__PURE__ */ t(
1523
+ "path",
1524
+ {
1525
+ d: "M 30,145 L 30,141 L 80,141 L 80,135 L 520,135 L 520,141 L 570,141 L 570,145 Z",
1526
+ fill: "#A3B1C0"
1527
+ }
1528
+ ),
1529
+ /* @__PURE__ */ t("rect", { x: "30", y: "145", width: "540", height: "4", fill: "#A8B6C5" }),
1530
+ /* @__PURE__ */ t(
1531
+ "path",
1532
+ {
1533
+ d: "M 0,155 L 0,151 L 30,151 L 30,145 L 570,145 L 570,151 L 600,151 L 600,155 Z",
1534
+ fill: "#B0BCC9"
1535
+ }
1536
+ ),
1537
+ /* @__PURE__ */ t("rect", { x: "0", y: "155", width: "600", height: "25", fill: "#B8C4D0" }),
1538
+ /* @__PURE__ */ t("line", { x1: "200", y1: "118", x2: "400", y2: "118", stroke: "#6B7A8C", strokeWidth: "1.5" }),
1539
+ /* @__PURE__ */ t("line", { x1: "150", y1: "125", x2: "450", y2: "125", stroke: "#758596", strokeWidth: "1.5" }),
1540
+ /* @__PURE__ */ t("line", { x1: "80", y1: "135", x2: "520", y2: "135", stroke: "#7F8FA0", strokeWidth: "1.5" }),
1541
+ /* @__PURE__ */ t("line", { x1: "30", y1: "145", x2: "570", y2: "145", stroke: "#8999AA", strokeWidth: "1.5" }),
1542
+ /* @__PURE__ */ t("line", { x1: "0", y1: "155", x2: "600", y2: "155", stroke: "#93A2B2", strokeWidth: "1" }),
1543
+ /* @__PURE__ */ t("line", { x1: "200", y1: "119", x2: "400", y2: "119", stroke: "rgba(255,255,255,0.4)", strokeWidth: "0.8" }),
1544
+ /* @__PURE__ */ t("line", { x1: "150", y1: "126", x2: "450", y2: "126", stroke: "rgba(255,255,255,0.35)", strokeWidth: "0.8" }),
1545
+ /* @__PURE__ */ t("line", { x1: "80", y1: "136", x2: "520", y2: "136", stroke: "rgba(255,255,255,0.3)", strokeWidth: "0.8" }),
1546
+ /* @__PURE__ */ t("line", { x1: "30", y1: "146", x2: "570", y2: "146", stroke: "rgba(255,255,255,0.25)", strokeWidth: "0.8" }),
1547
+ /* @__PURE__ */ t("line", { x1: "0", y1: "156", x2: "600", y2: "156", stroke: "rgba(255,255,255,0.2)", strokeWidth: "0.8" }),
1548
+ /* @__PURE__ */ t("line", { x1: "200", y1: "118", x2: "200", y2: "180", stroke: "rgba(60,70,90,0.12)", strokeWidth: "0.5" }),
1549
+ /* @__PURE__ */ t("line", { x1: "300", y1: "118", x2: "300", y2: "180", stroke: "rgba(60,70,90,0.08)", strokeWidth: "0.5" }),
1550
+ /* @__PURE__ */ t("line", { x1: "400", y1: "118", x2: "400", y2: "180", stroke: "rgba(60,70,90,0.12)", strokeWidth: "0.5" })
1551
+ ] }),
1552
+ e && Array.from({ length: 150 }).map((s, a) => {
1553
+ const i = Math.floor(a / 30), c = a % 30, d = [148, 142, 137, 128, 122][i] || 148, b = [10, 35, 85, 155, 205][i] || 10, p = [590, 565, 515, 445, 395][i] || 590, n = b + c / 29 * (p - b), f = d + (c * 7 + i * 3) % 4 - 1, x = (a * 17 + i * 31) % 100, g = x < 20 ? 220 : x < 40 ? 180 : x < 60 ? 140 : x < 80 ? 200 : 160, v = x < 20 ? 180 : x < 40 ? 200 : x < 60 ? 160 : x < 80 ? 140 : 180, y = x < 20 ? 140 : x < 40 ? 160 : x < 60 ? 200 : x < 80 ? 180 : 220, l = 0.12 + c % 4 * 0.04;
1554
+ return /* @__PURE__ */ t(
1555
+ "circle",
1556
+ {
1557
+ cx: n,
1558
+ cy: f,
1559
+ r: 1.2 + a % 3 * 0.3,
1560
+ fill: `rgba(${g},${v},${y},${l})`
1561
+ },
1562
+ `crowd-${a}`
1563
+ );
1564
+ }),
1565
+ !e && Array.from({ length: 180 }).map((s, a) => {
1566
+ const i = Math.floor(a / 36), c = a % 36, d = [157, 148, 142, 137, 128, 122][i] || 157, b = [5, 15, 45, 95, 160, 210][i] || 5, n = ([595, 585, 555, 505, 440, 390][i] || 595) - b, f = b + c / 35 * n + a * 7 % 5 - 2, x = d + (c * 5 + i * 7) % 5 - 2, g = (a * 23 + i * 17) % 120, v = g < 20 ? 200 : g < 40 ? 50 : g < 60 ? 220 : g < 80 ? 30 : g < 100 ? 180 : 100, y = g < 20 ? 50 : g < 40 ? 100 : g < 60 ? 180 : g < 80 || g < 100 ? 60 : 150, l = g < 20 ? 50 : g < 40 ? 180 : g < 60 ? 40 : g < 80 ? 160 : g < 100 ? 120 : 50, L = 0.3 + c % 4 * 0.08;
1567
+ return /* @__PURE__ */ t(
1568
+ "circle",
1569
+ {
1570
+ cx: f,
1571
+ cy: x,
1572
+ r: 1.3 + a % 3 * 0.3,
1573
+ fill: `rgba(${v},${y},${l},${L})`
1574
+ },
1575
+ `crowd-${a}`
1576
+ );
1577
+ }),
1578
+ /* @__PURE__ */ t("rect", { x: "0", y: "180", width: "600", height: "195", fill: "url(#pitchGradient)" }),
1579
+ /* @__PURE__ */ t("rect", { x: "0", y: "180", width: "600", height: "195", fill: "url(#pitchStripes)" }),
1580
+ /* @__PURE__ */ t("rect", { x: "0", y: "0", width: "600", height: "375", fill: "url(#floodlightGlow)" }),
1581
+ e && /* @__PURE__ */ u(st, { children: [
1582
+ /* @__PURE__ */ t("rect", { x: "35", y: "8", width: "30", height: "12", rx: "2", fill: "rgba(50,55,65,0.8)", stroke: "rgba(120,120,130,0.4)", strokeWidth: "0.5" }),
1583
+ /* @__PURE__ */ t("rect", { x: "38", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
1584
+ /* @__PURE__ */ t("rect", { x: "47", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,230,0.85)" }),
1585
+ /* @__PURE__ */ t("rect", { x: "56", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
1586
+ /* @__PURE__ */ t("ellipse", { cx: "50", cy: "12", rx: "22", ry: "10", fill: "rgba(255,255,200,0.12)" }),
1587
+ /* @__PURE__ */ t("polygon", { points: "35,20 65,20 420,180 180,180", fill: "rgba(255,255,220,0.04)" }),
1588
+ /* @__PURE__ */ t("polygon", { points: "40,20 60,20 380,180 220,180", fill: "rgba(255,255,220,0.03)" }),
1589
+ /* @__PURE__ */ t("rect", { x: "535", y: "8", width: "30", height: "12", rx: "2", fill: "rgba(50,55,65,0.8)", stroke: "rgba(120,120,130,0.4)", strokeWidth: "0.5" }),
1590
+ /* @__PURE__ */ t("rect", { x: "538", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
1591
+ /* @__PURE__ */ t("rect", { x: "547", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,230,0.85)" }),
1592
+ /* @__PURE__ */ t("rect", { x: "556", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
1593
+ /* @__PURE__ */ t("ellipse", { cx: "550", cy: "12", rx: "22", ry: "10", fill: "rgba(255,255,200,0.12)" }),
1594
+ /* @__PURE__ */ t("polygon", { points: "535,20 565,20 420,180 180,180", fill: "rgba(255,255,220,0.04)" }),
1595
+ /* @__PURE__ */ t("polygon", { points: "540,20 560,20 380,180 220,180", fill: "rgba(255,255,220,0.03)" }),
1596
+ [[50, 40], [120, 25], [180, 55], [250, 30], [320, 15], [380, 45], [430, 20], [500, 50], [560, 35], [150, 70], [350, 60], [480, 65], [90, 60], [270, 50], [530, 25]].map(([s, a], i) => /* @__PURE__ */ t("circle", { cx: s, cy: a, r: 0.5 + i % 3 * 0.3, fill: `rgba(255,255,255,${0.3 + i % 4 * 0.15})` }, `star-${i}`))
1597
+ ] }),
1598
+ !e && /* @__PURE__ */ u(st, { children: [
1599
+ /* @__PURE__ */ t("circle", { cx: "520", cy: "35", r: "22", fill: "rgba(255,230,80,0.9)" }),
1600
+ /* @__PURE__ */ t("circle", { cx: "520", cy: "35", r: "28", fill: "rgba(255,240,120,0.25)" }),
1601
+ /* @__PURE__ */ t("circle", { cx: "520", cy: "35", r: "40", fill: "rgba(255,245,160,0.1)" }),
1602
+ /* @__PURE__ */ t("ellipse", { cx: "60", cy: "42", rx: "28", ry: "9", fill: "rgba(255,255,255,0.45)" }),
1603
+ /* @__PURE__ */ t("ellipse", { cx: "80", cy: "38", rx: "22", ry: "8", fill: "rgba(255,255,255,0.35)" }),
1604
+ /* @__PURE__ */ t("ellipse", { cx: "45", cy: "40", rx: "16", ry: "7", fill: "rgba(255,255,255,0.3)" }),
1605
+ /* @__PURE__ */ t("ellipse", { cx: "195", cy: "28", rx: "38", ry: "12", fill: "rgba(255,255,255,0.4)" }),
1606
+ /* @__PURE__ */ t("ellipse", { cx: "215", cy: "24", rx: "28", ry: "10", fill: "rgba(255,255,255,0.35)" }),
1607
+ /* @__PURE__ */ t("ellipse", { cx: "178", cy: "30", rx: "20", ry: "8", fill: "rgba(255,255,255,0.3)" }),
1608
+ /* @__PURE__ */ t("ellipse", { cx: "230", cy: "30", rx: "18", ry: "7", fill: "rgba(255,255,255,0.25)" }),
1609
+ /* @__PURE__ */ t("ellipse", { cx: "330", cy: "55", rx: "22", ry: "8", fill: "rgba(255,255,255,0.3)" }),
1610
+ /* @__PURE__ */ t("ellipse", { cx: "345", cy: "52", rx: "16", ry: "6", fill: "rgba(255,255,255,0.25)" }),
1611
+ /* @__PURE__ */ t("ellipse", { cx: "430", cy: "68", rx: "30", ry: "9", fill: "rgba(255,255,255,0.35)" }),
1612
+ /* @__PURE__ */ t("ellipse", { cx: "448", cy: "64", rx: "20", ry: "7", fill: "rgba(255,255,255,0.28)" }),
1613
+ /* @__PURE__ */ t("ellipse", { cx: "415", cy: "66", rx: "14", ry: "6", fill: "rgba(255,255,255,0.22)" }),
1614
+ /* @__PURE__ */ t("ellipse", { cx: "565", cy: "58", rx: "18", ry: "7", fill: "rgba(255,255,255,0.3)" }),
1615
+ /* @__PURE__ */ t("ellipse", { cx: "578", cy: "55", rx: "14", ry: "6", fill: "rgba(255,255,255,0.22)" }),
1616
+ /* @__PURE__ */ t("ellipse", { cx: "120", cy: "80", rx: "24", ry: "7", fill: "rgba(255,255,255,0.2)" }),
1617
+ /* @__PURE__ */ t("ellipse", { cx: "138", cy: "78", rx: "16", ry: "5", fill: "rgba(255,255,255,0.15)" })
1618
+ ] }),
1619
+ /* @__PURE__ */ t(
1620
+ "line",
1621
+ {
1622
+ x1: "0",
1623
+ y1: "250",
1624
+ x2: "600",
1625
+ y2: "250",
1626
+ stroke: "rgba(255,255,255,0.12)",
1627
+ strokeWidth: "2"
1628
+ }
1629
+ ),
1630
+ /* @__PURE__ */ t(
1631
+ "rect",
1632
+ {
1633
+ x: "80",
1634
+ y: "250",
1635
+ width: "440",
1636
+ height: "112",
1637
+ fill: "none",
1638
+ stroke: "rgba(255,255,255,0.08)",
1639
+ strokeWidth: "1.5"
1640
+ }
1641
+ ),
1642
+ /* @__PURE__ */ t(
1643
+ "rect",
1644
+ {
1645
+ x: "160",
1646
+ y: "250",
1647
+ width: "280",
1648
+ height: "37",
1649
+ fill: "none",
1650
+ stroke: "rgba(255,255,255,0.08)",
1651
+ strokeWidth: "1.5"
1652
+ }
1653
+ ),
1654
+ /* @__PURE__ */ t("circle", { cx: "300", cy: "325", r: "2.5", fill: "rgba(255,255,255,0.18)" }),
1655
+ /* @__PURE__ */ t(
1656
+ "path",
1657
+ {
1658
+ d: "M 225,362 Q 300,382 375,362",
1659
+ fill: "none",
1660
+ stroke: "rgba(255,255,255,0.06)",
1661
+ strokeWidth: "1.5"
1662
+ }
1663
+ ),
1664
+ /* @__PURE__ */ t(
1665
+ "rect",
1666
+ {
1667
+ x: "100",
1668
+ y: "50",
1669
+ width: "400",
1670
+ height: "200",
1671
+ fill: "rgba(0,0,0,0.1)"
1672
+ }
1673
+ ),
1674
+ /* @__PURE__ */ t(
1675
+ "rect",
1676
+ {
1677
+ x: "100",
1678
+ y: "50",
1679
+ width: "400",
1680
+ height: "200",
1681
+ fill: "url(#netPattern)"
1682
+ }
1683
+ ),
1684
+ /* @__PURE__ */ t(
1685
+ "rect",
1686
+ {
1687
+ x: "95",
1688
+ y: "48",
1689
+ width: "10",
1690
+ height: "205",
1691
+ rx: "5",
1692
+ ry: "5",
1693
+ fill: "url(#postGradientLeft)",
1694
+ filter: "url(#postShadow)"
1695
+ }
1696
+ ),
1697
+ /* @__PURE__ */ t(
1698
+ "line",
1699
+ {
1700
+ x1: "98",
1701
+ y1: "53",
1702
+ x2: "98",
1703
+ y2: "248",
1704
+ stroke: "rgba(255,255,255,0.5)",
1705
+ strokeWidth: "1"
1706
+ }
1707
+ ),
1708
+ /* @__PURE__ */ t(
1709
+ "rect",
1710
+ {
1711
+ x: "495",
1712
+ y: "48",
1713
+ width: "10",
1714
+ height: "205",
1715
+ rx: "5",
1716
+ ry: "5",
1717
+ fill: "url(#postGradientRight)",
1718
+ filter: "url(#postShadowRight)"
1719
+ }
1720
+ ),
1721
+ /* @__PURE__ */ t(
1722
+ "line",
1723
+ {
1724
+ x1: "502",
1725
+ y1: "53",
1726
+ x2: "502",
1727
+ y2: "248",
1728
+ stroke: "rgba(255,255,255,0.5)",
1729
+ strokeWidth: "1"
1730
+ }
1731
+ ),
1732
+ /* @__PURE__ */ t(
1733
+ "rect",
1734
+ {
1735
+ x: "93",
1736
+ y: "43",
1737
+ width: "414",
1738
+ height: "10",
1739
+ rx: "5",
1740
+ ry: "5",
1741
+ fill: "url(#crossbarGradient)",
1742
+ filter: "url(#crossbarShadow)"
1743
+ }
1744
+ ),
1745
+ /* @__PURE__ */ t(
1746
+ "line",
1747
+ {
1748
+ x1: "98",
1749
+ y1: "46",
1750
+ x2: "502",
1751
+ y2: "46",
1752
+ stroke: "rgba(255,255,255,0.5)",
1753
+ strokeWidth: "1"
1754
+ }
1755
+ )
1756
+ ] }), Br = ({
1757
+ segment: e,
1758
+ selectedSegment: s,
1759
+ clickedPosition: a,
1760
+ flippedTarget: i,
1761
+ isKicking: c,
1762
+ showResultScreen: d,
1763
+ showInlineResult: b,
1764
+ showLabel: p,
1765
+ primaryColor: n,
1766
+ successColor: f,
1767
+ dangerColor: x,
1768
+ onTargetClick: g
1769
+ }) => {
1770
+ const v = e.position.x / 100 * 400 + 100, y = e.position.y / 100 * 200 + 50, l = 28, L = {
1771
+ x: e.position.x,
1772
+ y: e.position.y
1773
+ }, w = a && a.x === L.x && a.y === L.y, W = i && i.x === L.x && i.y === L.y;
1774
+ let k = e.color || n;
1775
+ W && s && (k = s.isWinning ? f : x);
1776
+ let S = "none";
1777
+ W && i && (S = `rotateY(${i.direction === "left" ? -180 : 180}deg)`);
1778
+ let A = 1;
1779
+ return (c || p) && (A = w ? 1 : 0.3), /* @__PURE__ */ u(
1780
+ "g",
1781
+ {
1782
+ style: {
1783
+ cursor: c || d || b || p ? "default" : "pointer",
1784
+ transition: "all 0.4s ease",
1785
+ transform: S,
1786
+ transformOrigin: `${v}px ${y}px`
1787
+ },
1788
+ onClick: () => g(L),
1789
+ opacity: A,
1790
+ children: [
1791
+ /* @__PURE__ */ t(
1792
+ "circle",
1793
+ {
1794
+ cx: v,
1795
+ cy: y,
1796
+ r: l,
1797
+ fill: "white",
1798
+ stroke: k,
1799
+ strokeWidth: w ? "3.5" : "2.5",
1800
+ opacity: "0.9",
1801
+ className: "target-outer",
1802
+ style: { transition: "all 0.4s ease" }
1803
+ }
1804
+ ),
1805
+ /* @__PURE__ */ t(
1806
+ "circle",
1807
+ {
1808
+ cx: v,
1809
+ cy: y,
1810
+ r: l * 0.65,
1811
+ fill: "white",
1812
+ stroke: k,
1813
+ strokeWidth: w ? "3" : "2",
1814
+ opacity: "0.9",
1815
+ className: "target-middle",
1816
+ style: { transition: "all 0.4s ease" }
1817
+ }
1818
+ ),
1819
+ /* @__PURE__ */ t(
1820
+ "circle",
1821
+ {
1822
+ cx: v,
1823
+ cy: y,
1824
+ r: l * 0.35,
1825
+ fill: k,
1826
+ opacity: w ? "1" : "0.8",
1827
+ className: "target-inner",
1828
+ style: { transition: "all 0.4s ease" }
1829
+ }
1830
+ ),
1831
+ /* @__PURE__ */ t(
1832
+ "circle",
1833
+ {
1834
+ cx: v,
1835
+ cy: y,
1836
+ r: l * 0.15,
1837
+ fill: "white",
1838
+ opacity: "0.9",
1839
+ className: "target-center",
1840
+ style: { transition: "all 0.4s ease" }
1841
+ }
1842
+ ),
1843
+ /* @__PURE__ */ t(
1844
+ "circle",
1845
+ {
1846
+ cx: v,
1847
+ cy: y,
1848
+ r: l + 5,
1849
+ fill: "transparent",
1850
+ stroke: "transparent",
1851
+ strokeWidth: "0",
1852
+ onMouseEnter: (M) => {
1853
+ var $;
1854
+ if (!c && !d && !b) {
1855
+ const z = M.currentTarget.parentElement;
1856
+ z && (z.querySelectorAll(".target-outer, .target-middle").forEach((R) => {
1857
+ R.setAttribute("stroke-width", "3");
1858
+ }), ($ = z.querySelector(".target-inner")) == null || $.setAttribute("opacity", "1"));
1859
+ }
1860
+ },
1861
+ onMouseLeave: (M) => {
1862
+ var $, z, R;
1863
+ if (!c && !d && !b) {
1864
+ const m = M.currentTarget.parentElement;
1865
+ m && (($ = m.querySelector(".target-outer")) == null || $.setAttribute("stroke-width", "2"), (z = m.querySelector(".target-middle")) == null || z.setAttribute("stroke-width", "1.5"), (R = m.querySelector(".target-inner")) == null || R.setAttribute("opacity", "0.8"));
1866
+ }
1867
+ }
1868
+ }
1869
+ )
1870
+ ]
1871
+ },
1872
+ e.id
1873
+ );
1874
+ }, Me = "var(--fu-ucrc-cg-pen-text)", Ze = "var(--fu-ucrc-cg-pen-muted)", Gt = (e) => `var(--fu-ucrc-cg-pen-dc-${e})`, kt = { display: "flex", flexDirection: "column", alignItems: "center" }, We = {
1875
+ ...et,
1876
+ fontFamily: o.fontSecondary,
1877
+ fontWeight: 400,
1878
+ color: Ze,
1879
+ opacity: "var(--fu-ucrc-cg-pen-muted-opacity)",
1880
+ textAlign: "center",
1881
+ zIndex: 1,
1882
+ unicodeBidi: "plaintext"
1883
+ }, Re = { display: "flex", alignItems: "center", gap: o.spaceSm, marginTop: o.spaceXs }, U = {
1884
+ root: r({
1885
+ ...kt,
1886
+ width: "100%",
1887
+ padding: o.spaceMd,
1888
+ gap: o.spaceMd,
1889
+ position: "relative",
1890
+ overflow: "hidden",
1891
+ boxSizing: "border-box"
1892
+ }),
1893
+ titleBlock: r({ ...kt, gap: 0, textAlign: "center", width: "100%", zIndex: 1 }),
1894
+ title: r({
1895
+ ...xt,
1896
+ fontFamily: o.fontPrimary,
1897
+ fontWeight: 700,
1898
+ fontSize: "1.25rem",
1899
+ color: Me,
1900
+ lineHeight: 1.2,
1901
+ textShadow: "var(--fu-ucrc-cg-pen-title-shadow)",
1902
+ unicodeBidi: "plaintext"
1903
+ }),
1904
+ divider: r({ ...Re, width: "40%" }),
1905
+ dividerMobile: r({ ...Re, width: "60%" }),
1906
+ dividerStart: r({ flex: 1, height: "1px", background: `linear-gradient(to right, transparent, ${Gt("40")})` }),
1907
+ dividerEnd: r({ flex: 1, height: "1px", background: `linear-gradient(to left, transparent, ${Gt("40")})` }),
1908
+ diamond: r({
1909
+ width: "8px",
1910
+ height: "8px",
1911
+ transform: "rotate(45deg)",
1912
+ border: `1px solid ${Gt("50")}`,
1913
+ background: Gt("15")
1914
+ }),
1915
+ subtitle: r({
1916
+ ...et,
1917
+ fontFamily: o.fontSecondary,
1918
+ fontWeight: 400,
1919
+ fontSize: "0.875rem",
1920
+ color: Ze,
1921
+ opacity: "var(--fu-ucrc-cg-pen-subtitle-opacity)",
1922
+ unicodeBidi: "plaintext"
1923
+ }),
1924
+ welcome: r({
1925
+ ...et,
1926
+ fontFamily: o.fontPrimary,
1927
+ fontWeight: 400,
1928
+ fontSize: "0.875rem",
1929
+ color: Me,
1930
+ textAlign: "center",
1931
+ zIndex: 1,
1932
+ unicodeBidi: "plaintext"
1933
+ }),
1934
+ instructions: r({ ...We, fontSize: "0.875rem" }),
1935
+ disclaimer: r({ ...We, fontSize: "0.625rem", maxWidth: "900px", lineHeight: 1.4 }),
1936
+ goal: r({ position: "relative", width: "100%", aspectRatio: "16/10", zIndex: 1 }),
1937
+ goalSvg: r({
1938
+ width: "100%",
1939
+ height: "100%",
1940
+ filter: "drop-shadow(0 4px 16px rgba(0,0,0,0.25))",
1941
+ borderRadius: o.radiusMd,
1942
+ overflow: "hidden"
1943
+ }),
1944
+ row: r({ display: "flex", flexDirection: "row", width: "100%", gap: o.spaceXl, alignItems: "center", zIndex: 1 }),
1945
+ textColumn: r({ flex: "0 0 42%", ...kt, gap: o.spaceMd, alignSelf: "stretch", justifyContent: "flex-start" }),
1946
+ textColumnCentered: r({ flex: "0 0 42%", ...kt, gap: o.spaceMd, alignSelf: "stretch", justifyContent: "center" }),
1947
+ footer: r({ marginTop: "auto", ...kt, width: "100%" }),
1948
+ goalColumn: r({ flex: "0 0 58%", display: "flex", alignItems: "center", justifyContent: "center" }),
1949
+ stack: r({ ...kt, width: "100%", gap: o.spaceSm, zIndex: 1 })
1950
+ }, Ir = ({
1951
+ infoPage: e,
1952
+ enableReset: s = !1,
1953
+ contentColor: a,
1954
+ primaryColor: i,
1955
+ onPrimaryColor: c,
1956
+ dangerColor: d,
1957
+ isDark: b,
1958
+ forceMobile: p = !1
1959
+ }) => {
1960
+ var dt;
1961
+ const n = lt(), f = Jt(), x = p ? !1 : f, g = ft(), v = qt(), y = $t(), l = g.palette.success.plainColor, L = JSON.parse(e.body), w = [
1962
+ { x: 15, y: 25 },
1963
+ { x: 50, y: 20 },
1964
+ { x: 85, y: 25 },
1965
+ { x: 20, y: 70 },
1966
+ { x: 50, y: 75 },
1967
+ { x: 80, y: 70 }
1968
+ ], W = (L.segments || []).map(
1969
+ (Q, gt) => ({
1970
+ ...Q,
1971
+ position: Q.position || w[gt % w.length]
1972
+ })
1973
+ ), k = e.labels || {}, S = L.config || { mode: "fair", pace: "normal" }, A = S.mode || "fair", M = S.pace || "normal", $ = ((dt = L.config) == null ? void 0 : dt.decorations) ?? !1, z = wt(i, b), R = !!(k.welcome || k.instructions || k.disclaimer), {
1974
+ isKicking: m,
1975
+ selectedSegment: C,
1976
+ clickedPosition: h,
1977
+ showResultScreen: B,
1978
+ showInlineResult: F,
1979
+ showLabel: Y,
1980
+ ballPosition: H,
1981
+ ballRotation: Z,
1982
+ flippedTarget: J,
1983
+ showNetRipple: D,
1984
+ kickDuration: N,
1985
+ handleTargetClick: q,
1986
+ handleReset: K
1987
+ } = zr({ segments: W, mode: A, pace: M }), tt = {
1988
+ ...y,
1989
+ "--fu-ucrc-cg-pen-text": b ? "#fff" : a,
1990
+ "--fu-ucrc-cg-pen-muted": b ? "rgba(255,255,255,0.7)" : a,
1991
+ "--fu-ucrc-cg-pen-muted-opacity": b ? 1 : 0.7,
1992
+ "--fu-ucrc-cg-pen-subtitle-opacity": b ? 1 : 0.8,
1993
+ "--fu-ucrc-cg-pen-title-shadow": $ ? `0 0 20px ${i}20` : "none",
1994
+ "--fu-ucrc-cg-pen-dc-15": z("15"),
1995
+ "--fu-ucrc-cg-pen-dc-40": z("40"),
1996
+ "--fu-ucrc-cg-pen-dc-50": z("50")
1997
+ }, ot = () => !e.title && !e.subtitle ? null : /* @__PURE__ */ u("div", { css: U.titleBlock, children: [
1998
+ e.title && /* @__PURE__ */ u(st, { children: [
1999
+ /* @__PURE__ */ t("h2", { css: U.title, children: e.title }),
2000
+ $ && /* @__PURE__ */ u("div", { css: n ? U.dividerMobile : U.divider, children: [
2001
+ /* @__PURE__ */ t("div", { css: U.dividerStart }),
2002
+ /* @__PURE__ */ t("div", { css: U.diamond }),
2003
+ /* @__PURE__ */ t("div", { css: U.dividerEnd })
2004
+ ] })
2005
+ ] }),
2006
+ e.subtitle && /* @__PURE__ */ t("p", { css: U.subtitle, children: e.subtitle })
2007
+ ] }), nt = k.welcome && /* @__PURE__ */ t("p", { css: U.welcome, children: k.welcome }), ut = !F && k.instructions && /* @__PURE__ */ t("p", { css: U.instructions, children: k.instructions }), it = F && (C == null ? void 0 : C.results) && /* @__PURE__ */ t(
2008
+ Wt,
2009
+ {
2010
+ result: C.results,
2011
+ variant: "embed",
2012
+ mode: "inline",
2013
+ contentColor: a,
2014
+ primaryColor: i,
2015
+ onPrimaryColor: c,
2016
+ disclaimer: k.disclaimer,
2017
+ enableReset: s,
2018
+ onReset: K,
2019
+ raised: !0
2020
+ }
2021
+ ), rt = !F && k.disclaimer && /* @__PURE__ */ t("p", { css: U.disclaimer, children: k.disclaimer }), ct = () => /* @__PURE__ */ t("div", { css: U.goal, children: /* @__PURE__ */ u("svg", { viewBox: "0 0 600 375", css: U.goalSvg, children: [
2022
+ /* @__PURE__ */ t(Ar, { isDark: b }),
2023
+ D && h && /* @__PURE__ */ u(st, { children: [
2024
+ /* @__PURE__ */ t(
2025
+ "circle",
2026
+ {
2027
+ cx: h.x / 100 * 400 + 100,
2028
+ cy: h.y / 100 * 200 + 50,
2029
+ r: "5",
2030
+ fill: "none",
2031
+ stroke: "rgba(255,255,255,0.4)",
2032
+ strokeWidth: "2",
2033
+ style: { animation: "netRipple1 0.6s ease-out forwards" }
2034
+ }
2035
+ ),
2036
+ /* @__PURE__ */ t(
2037
+ "circle",
2038
+ {
2039
+ cx: h.x / 100 * 400 + 100,
2040
+ cy: h.y / 100 * 200 + 50,
2041
+ r: "5",
2042
+ fill: "none",
2043
+ stroke: "rgba(255,255,255,0.25)",
2044
+ strokeWidth: "1.5",
2045
+ style: { animation: "netRipple2 0.6s ease-out 0.1s forwards" }
2046
+ }
2047
+ ),
2048
+ /* @__PURE__ */ t("style", { children: `
2049
+ @keyframes netRipple1 {
2050
+ 0% { r: 5; opacity: 1; stroke-width: 2.5; }
2051
+ 100% { r: 45; opacity: 0; stroke-width: 0.3; }
2052
+ }
2053
+ @keyframes netRipple2 {
2054
+ 0% { r: 5; opacity: 0.8; stroke-width: 2; }
2055
+ 100% { r: 35; opacity: 0; stroke-width: 0.3; }
2056
+ }
2057
+ ` })
2058
+ ] }),
2059
+ W.map((Q) => /* @__PURE__ */ t(
2060
+ Br,
2061
+ {
2062
+ segment: Q,
2063
+ selectedSegment: C,
2064
+ clickedPosition: h,
2065
+ flippedTarget: J,
2066
+ isKicking: m,
2067
+ showResultScreen: B,
2068
+ showInlineResult: F,
2069
+ showLabel: Y,
2070
+ primaryColor: i,
2071
+ successColor: l,
2072
+ dangerColor: d,
2073
+ onTargetClick: q
2074
+ },
2075
+ Q.id
2076
+ )),
2077
+ /* @__PURE__ */ t(
2078
+ "g",
2079
+ {
2080
+ style: {
2081
+ transform: m && h ? `translate(${H.x / 100 * 400 - 200}px, ${H.y / 100 * 200 - 300}px) rotate(${Z}deg) scale(0.7)` : Y && h ? `translate(${h.x / 100 * 400 - 200}px, ${h.y / 100 * 200 - 300}px) scale(0.7)` : "translate(0, 0) scale(1)",
2082
+ transformOrigin: "300px 325px",
2083
+ transition: m ? `transform ${N}ms cubic-bezier(0.25, 0.1, 0.25, 1.0)` : "none",
2084
+ opacity: Y ? 0 : 1
2085
+ },
2086
+ children: /* @__PURE__ */ t(
2087
+ "text",
2088
+ {
2089
+ x: "300",
2090
+ y: "325",
2091
+ fontSize: "36",
2092
+ textAnchor: "middle",
2093
+ dominantBaseline: "central",
2094
+ style: { userSelect: "none" },
2095
+ children: "⚽"
2096
+ }
2097
+ )
2098
+ }
2099
+ ),
2100
+ Y && C && h && (() => {
2101
+ const Q = h.x / 100 * 400 + 100, gt = h.y / 100 * 200 + 50, Rt = 110, mt = 28, Ft = Q - Rt / 2, bt = gt - mt - 35, vt = 6, zt = C.isWinning ? l : d;
2102
+ return /* @__PURE__ */ u(
2103
+ "g",
2104
+ {
2105
+ style: {
2106
+ opacity: B || F ? 0 : 1,
2107
+ transition: "opacity 0.3s ease"
2108
+ },
2109
+ children: [
2110
+ /* @__PURE__ */ t(
2111
+ "rect",
2112
+ {
2113
+ x: Ft,
2114
+ y: bt,
2115
+ width: Rt,
2116
+ height: mt,
2117
+ fill: zt,
2118
+ rx: "6",
2119
+ opacity: "0.96",
2120
+ style: { filter: "drop-shadow(0 2px 8px rgba(0,0,0,0.2))" }
2121
+ }
2122
+ ),
2123
+ /* @__PURE__ */ t(
2124
+ "path",
2125
+ {
2126
+ d: `M ${Q - vt} ${bt + mt}
2127
+ L ${Q} ${bt + mt + vt}
2128
+ L ${Q + vt} ${bt + mt} Z`,
2129
+ fill: zt,
2130
+ opacity: "0.96"
2131
+ }
2132
+ ),
2133
+ /* @__PURE__ */ t(
2134
+ "text",
2135
+ {
2136
+ x: Q,
2137
+ y: bt + mt / 2,
2138
+ fontSize: "13",
2139
+ fontWeight: "600",
2140
+ fill: "white",
2141
+ textAnchor: "middle",
2142
+ dominantBaseline: "central",
2143
+ unicodeBidi: "plaintext",
2144
+ style: {
2145
+ userSelect: "none",
2146
+ fontFamily: v.primary,
2147
+ letterSpacing: "0.2px"
2148
+ },
2149
+ children: C.label
2150
+ }
2151
+ )
2152
+ ]
2153
+ }
2154
+ );
2155
+ })()
2156
+ ] }) });
2157
+ return /* @__PURE__ */ u("div", { css: U.root, style: tt, children: [
2158
+ B && (C == null ? void 0 : C.results) && /* @__PURE__ */ t(
2159
+ Wt,
2160
+ {
2161
+ result: C.results,
2162
+ variant: "embed",
2163
+ mode: "screen",
2164
+ contentColor: a,
2165
+ primaryColor: i,
2166
+ onPrimaryColor: c,
2167
+ disclaimer: k.disclaimer,
2168
+ enableReset: s,
2169
+ onReset: K
2170
+ }
2171
+ ),
2172
+ !B && (x ? (
2173
+ /* Desktop: horizontal 2-column */
2174
+ /* @__PURE__ */ u("div", { css: U.row, children: [
2175
+ /* @__PURE__ */ u("div", { css: R ? U.textColumn : U.textColumnCentered, children: [
2176
+ ot(),
2177
+ nt,
2178
+ ut,
2179
+ it,
2180
+ /* @__PURE__ */ t("div", { css: U.footer, children: rt })
2181
+ ] }),
2182
+ /* @__PURE__ */ t("div", { css: U.goalColumn, children: ct() })
2183
+ ] })
2184
+ ) : (
2185
+ /* Mobile: compact vertical */
2186
+ /* @__PURE__ */ u("div", { css: U.stack, children: [
2187
+ ot(),
2188
+ nt,
2189
+ ut,
2190
+ ct(),
2191
+ it,
2192
+ rt
2193
+ ] })
2194
+ ))
2195
+ ] });
2196
+ }, ze = {
2197
+ display: "flex",
2198
+ flexDirection: "column",
2199
+ width: "100%",
2200
+ height: "100%",
2201
+ position: "relative",
2202
+ overflow: "auto",
2203
+ boxSizing: "border-box",
2204
+ background: "var(--fu-ucrc-cg-frame-bg)",
2205
+ boxShadow: "inset 0 0 100px rgba(0, 0, 0, 0.04), inset 0 0 30px rgba(0, 0, 0, 0.02)"
2206
+ }, Ae = {
2207
+ frame: r(ze),
2208
+ // Decorations add a hairline border in the primary tint.
2209
+ framed: r({
2210
+ ...ze,
2211
+ border: "1px solid var(--fu-ucrc-cg-frame-border)",
2212
+ borderRadius: "var(--fu-ucrc-cg-frame-radius)"
2213
+ })
2214
+ }, to = ({
2215
+ infoPage: e,
2216
+ enableReset: s = !1,
2217
+ forceMobile: a = !1
2218
+ }) => {
2219
+ var k, S, A, M, $, z, R, m, C, h;
2220
+ const i = lt(), c = a || i, d = ft(), b = Zt(), p = Qt() === "dark", n = (k = e.branding) == null ? void 0 : k.colors, f = (n == null ? void 0 : n.primary_color) || d.palette.primary.plainColor, x = (n == null ? void 0 : n.content_color) || d.textPrimary, g = d.palette.primary.onPrimary, v = (n == null ? void 0 : n.background_color) || d.surface, y = d.palette.danger.plainColor, l = c ? ((A = (S = e.branding) == null ? void 0 : S.images) == null ? void 0 : A.mobile_background_image) || (($ = (M = e.branding) == null ? void 0 : M.images) == null ? void 0 : $.background_image) || ((z = e.images) == null ? void 0 : z.cover) : ((m = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : m.background_image) || ((C = e.images) == null ? void 0 : C.cover), L = wt(f, p), w = ((h = JSON.parse(e.body).config) == null ? void 0 : h.decorations) ?? !1, W = {
2221
+ "--fu-ucrc-cg-frame-bg": l ? `url(${l}) center/cover no-repeat` : `radial-gradient(ellipse at 50% 40%, ${f}12 0%, transparent 60%), radial-gradient(ellipse at 50% 100%, ${f}08 0%, transparent 50%), ${v}`,
2222
+ "--fu-ucrc-cg-frame-border": L("15"),
2223
+ "--fu-ucrc-cg-frame-radius": b.lg
2224
+ };
2225
+ return /* @__PURE__ */ t("div", { css: w ? Ae.framed : Ae.frame, style: W, children: /* @__PURE__ */ t(
2226
+ Ir,
2227
+ {
2228
+ infoPage: e,
2229
+ enableReset: s,
2230
+ contentColor: x,
2231
+ primaryColor: f,
2232
+ onPrimaryColor: g,
2233
+ dangerColor: y,
2234
+ isDark: p,
2235
+ forceMobile: a
2236
+ }
2237
+ ) });
2238
+ }, Tr = {
2239
+ fast: { flipDuration: 600, labelRevealDelay: 800 },
2240
+ normal: { flipDuration: 900, labelRevealDelay: 1200 },
2241
+ slow: { flipDuration: 1500, labelRevealDelay: 2e3 }
2242
+ }, Dr = {
2243
+ fast: { crossfadeDuration: 250, revealPause: 100 },
2244
+ normal: { crossfadeDuration: 500, revealPause: 300 },
2245
+ slow: { crossfadeDuration: 800, revealPause: 600 }
2246
+ }, Be = 1200;
2247
+ function Fr({
2248
+ segments: e,
2249
+ mode: s,
2250
+ pace: a,
2251
+ revealAll: i
2252
+ }) {
2253
+ const [c, d] = X(null), [b, p] = X(null), [n, f] = X(
2254
+ null
2255
+ ), [x, g] = X(!1), [v, y] = X(!1), [l, L] = X(!1), [w, W] = X(!1), [k, S] = X(!1), [A, M] = X(/* @__PURE__ */ new Set()), [$, z] = X(
2256
+ /* @__PURE__ */ new Set()
2257
+ ), [R, m] = X(
2258
+ /* @__PURE__ */ new Set()
2259
+ ), { flipDuration: C, labelRevealDelay: h } = Tr[a], { crossfadeDuration: B, revealPause: F } = Dr[a], H = 1e3 + (i ? e.length * 200 : 0);
2260
+ return jt(() => {
2261
+ const D = setTimeout(() => S(!0), 100);
2262
+ return () => clearTimeout(D);
2263
+ }, []), {
2264
+ // State
2265
+ selectedSegment: c,
2266
+ displaySegments: b,
2267
+ revealResult: n,
2268
+ showResultScreen: x,
2269
+ showInlineResult: v,
2270
+ isRevealing: l,
2271
+ showLoseAnimation: w,
2272
+ hasEntered: k,
2273
+ flippedCards: A,
2274
+ crossfadedCards: $,
2275
+ revealedOtherCards: R,
2276
+ // Timing
2277
+ flipDuration: C,
2278
+ crossfadeDuration: B,
2279
+ loseAnimationDuration: Be,
2280
+ // Actions
2281
+ handlePick: (D, N) => {
2282
+ var nt, ut;
2283
+ if (l || c) return;
2284
+ L(!0);
2285
+ const q = Kt(e, s), K = `card-${D}`;
2286
+ if (i) {
2287
+ const it = e.findIndex(
2288
+ (rt) => rt.id === q.id
2289
+ );
2290
+ if (it !== D) {
2291
+ const rt = [...e];
2292
+ rt[D] = e[it], rt[it] = e[D], p(rt);
2293
+ }
2294
+ }
2295
+ const tt = ((nt = q.results) == null ? void 0 : nt.primaryCTA) || ((ut = q.results) == null ? void 0 : ut.secondaryCTA), ot = () => {
2296
+ if (d(q), i) {
2297
+ const it = e.map((ct, dt) => `card-${dt}`).filter((ct) => ct !== K), rt = 200;
2298
+ it.forEach((ct, dt) => {
2299
+ setTimeout(
2300
+ () => {
2301
+ m((Q) => /* @__PURE__ */ new Set([...Q, ct]));
2302
+ },
2303
+ (dt + 1) * rt
2304
+ );
2305
+ });
2306
+ }
2307
+ q.isWinning ? setTimeout(() => {
2308
+ tt ? g(!0) : y(!0);
2309
+ }, H) : (W(!0), setTimeout(() => {
2310
+ W(!1), setTimeout(() => {
2311
+ tt ? g(!0) : y(!0);
2312
+ }, H);
2313
+ }, Be)), L(!1);
2314
+ };
2315
+ N ? (f(q), z(/* @__PURE__ */ new Set([K])), setTimeout(() => {
2316
+ ot();
2317
+ }, B + F)) : (M(/* @__PURE__ */ new Set([K])), setTimeout(() => {
2318
+ ot();
2319
+ }, h));
2320
+ },
2321
+ handleReset: () => {
2322
+ d(null), g(!1), y(!1), L(!1), M(/* @__PURE__ */ new Set()), z(/* @__PURE__ */ new Set()), f(null), m(/* @__PURE__ */ new Set()), p(null), W(!1), S(!1), setTimeout(() => S(!0), 100);
2323
+ }
2324
+ };
2325
+ }
2326
+ const Dt = (e) => `var(--fu-ucrc-cg-object-${e})`, Xr = V({
2327
+ "0%, 100%": { transform: "translateY(0px) scale(1)" },
2328
+ "50%": { transform: `translateY(${Dt("float-y")}) scale(${Dt("float-scale")})` }
2329
+ }), Yr = V({
2330
+ "0%": { opacity: 0, transform: "translateY(4px)" },
2331
+ "100%": { opacity: 1, transform: "translateY(0)" }
2332
+ }), qe = {
2333
+ position: "relative",
2334
+ flexShrink: 0,
2335
+ transition: "opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease",
2336
+ overflow: "visible",
2337
+ boxShadow: "none",
2338
+ border: "none",
2339
+ outline: "none",
2340
+ background: "transparent"
2341
+ }, Ie = {
2342
+ ...qe,
2343
+ cursor: "pointer",
2344
+ opacity: 1,
2345
+ transform: "none",
2346
+ filter: "none",
2347
+ "&:hover": { transform: "translateY(-4px) scale(1.08)" }
2348
+ }, Ut = { ...qe, cursor: "default", animation: "none" }, Te = {
2349
+ width: "100%",
2350
+ height: "100%",
2351
+ objectFit: "contain",
2352
+ borderRadius: "inherit",
2353
+ position: "absolute",
2354
+ top: 0,
2355
+ left: 0,
2356
+ transition: Dt("image-transition")
2357
+ }, De = {
2358
+ position: "absolute",
2359
+ left: 0,
2360
+ width: "100%",
2361
+ background: "transparent",
2362
+ zIndex: 5,
2363
+ boxSizing: "border-box",
2364
+ animation: `${Yr} 0.4s ease-out`
2365
+ }, Fe = {
2366
+ ...et,
2367
+ fontFamily: o.fontPrimary,
2368
+ fontWeight: 600,
2369
+ color: Dt("label"),
2370
+ textAlign: "center",
2371
+ wordBreak: "break-word",
2372
+ textTransform: "uppercase",
2373
+ letterSpacing: "0.05em",
2374
+ lineHeight: 1.2,
2375
+ unicodeBidi: "plaintext"
2376
+ }, pt = {
2377
+ idle: r(Ie, { animation: "none" }),
2378
+ floating: r(Ie, { animation: `${Xr} 3s ease-in-out infinite`, animationDelay: Dt("float-delay") }),
2379
+ revealed: r(Ut, { opacity: 1, transform: "none", filter: "none" }),
2380
+ revealedOther: r(Ut, { opacity: 0.65, transform: "scale(0.95)", filter: "grayscale(0.3)" }),
2381
+ revealedDim: r(Ut, { opacity: 0.4, transform: "scale(0.95) translateY(4px)", filter: "grayscale(0.5)" }),
2382
+ idleImage: r({ ...Te, zIndex: 1 }),
2383
+ revealedImage: r({ ...Te, zIndex: 2 }),
2384
+ labelBelow: r({ ...De, top: "100%" }),
2385
+ labelInside: r({ ...De, bottom: 0 }),
2386
+ label: r({ ...Fe, fontSize: "0.875rem" }),
2387
+ labelMobile: r({ ...Fe, fontSize: "0.7rem" })
2388
+ }, Er = ({
2389
+ segment: e,
2390
+ index: s,
2391
+ selectedSegment: a,
2392
+ revealResult: i,
2393
+ isCrossfaded: c,
2394
+ isOtherRevealed: d,
2395
+ shouldDim: b,
2396
+ isRevealed: p,
2397
+ hasEntered: n,
2398
+ objectSize: f,
2399
+ crossfadeDuration: x,
2400
+ isStandard: g,
2401
+ primaryColor: v,
2402
+ dangerColor: y,
2403
+ onPick: l
2404
+ }) => {
2405
+ var R, m, C;
2406
+ const L = lt(), w = $t(), W = !!((R = e.images) != null && R.idle), k = c && ((m = i == null ? void 0 : i.images) != null && m.revealed) ? i.images.revealed : (C = e.images) == null ? void 0 : C.revealed, S = !!k, A = c && p, M = c || d, $ = A ? a == null ? void 0 : a.isWinning : e.isWinning, z = {
2407
+ ...w,
2408
+ "--fu-ucrc-cg-object-float-y": L ? "-1px" : "-3px",
2409
+ "--fu-ucrc-cg-object-float-scale": L ? 1.003 : 1.008,
2410
+ "--fu-ucrc-cg-object-float-delay": `${s * 0.15}s`,
2411
+ "--fu-ucrc-cg-object-image-transition": `opacity ${x}ms ease, transform ${x}ms ease`,
2412
+ "--fu-ucrc-cg-object-label": e.color || ($ ? v : y),
2413
+ width: `${f}px`,
2414
+ height: `${f}px`
2415
+ };
2416
+ return /* @__PURE__ */ u(
2417
+ "div",
2418
+ {
2419
+ css: p ? b ? pt.revealedDim : d ? pt.revealedOther : pt.revealed : n ? pt.floating : pt.idle,
2420
+ style: z,
2421
+ onClick: () => !p && l(),
2422
+ children: [
2423
+ W && /* @__PURE__ */ t(
2424
+ "img",
2425
+ {
2426
+ src: e.images.idle,
2427
+ alt: e.label,
2428
+ css: pt.idleImage,
2429
+ style: {
2430
+ opacity: M && S ? 0 : 1,
2431
+ transform: M && S ? "scale(0.95)" : "scale(1)"
2432
+ }
2433
+ }
2434
+ ),
2435
+ S && /* @__PURE__ */ t(
2436
+ "img",
2437
+ {
2438
+ src: k,
2439
+ alt: `${e.label} revealed`,
2440
+ css: pt.revealedImage,
2441
+ style: { opacity: M ? 1 : 0, transform: M ? "scale(1)" : "scale(1.05)" }
2442
+ }
2443
+ ),
2444
+ (A || d) && a && /* @__PURE__ */ t("div", { css: g ? pt.labelBelow : pt.labelInside, children: /* @__PURE__ */ t("p", { css: L ? pt.labelMobile : pt.label, children: A ? a.label : e.label }) })
2445
+ ]
2446
+ }
2447
+ );
2448
+ }, I = (e) => `var(--fu-ucrc-cg-card-${e})`, Gr = V({
2449
+ "0%, 100%": { transform: "translateY(0px) scale(1)" },
2450
+ "50%": { transform: `translateY(${I("float-y")}) scale(${I("float-scale")})` }
2451
+ }), Or = V({
2452
+ "0%": { transform: "rotate(25deg) translateX(-100%)" },
2453
+ "100%": { transform: "rotate(25deg) translateX(100%)" }
2454
+ }), Xe = V({
2455
+ "0%, 100%": { boxShadow: I("win-glow-1") },
2456
+ "50%": { boxShadow: I("win-glow-2") }
2457
+ }), Ye = V({
2458
+ "0%": { transform: "rotateY(180deg) translateX(0)", boxShadow: I("lose-0") },
2459
+ "10%": { transform: "rotateY(180deg) translateX(-4px)", boxShadow: I("lose-10") },
2460
+ "20%": { transform: "rotateY(180deg) translateX(4px)" },
2461
+ "30%": { transform: "rotateY(180deg) translateX(-3px)" },
2462
+ "40%": { transform: "rotateY(180deg) translateX(3px)", boxShadow: I("lose-40") },
2463
+ "50%": { transform: "rotateY(180deg) translateX(-2px)" },
2464
+ "60%": { transform: "rotateY(180deg) translateX(2px)" },
2465
+ "70%": { transform: "rotateY(180deg) translateX(-1px)", boxShadow: I("lose-70") },
2466
+ "80%": { transform: "rotateY(180deg) translateX(1px)" },
2467
+ "100%": { transform: "rotateY(180deg) translateX(0)", boxShadow: I("lose-100") }
2468
+ }), Ee = V({
2469
+ "0%": { opacity: 0, transform: "scale(0.8)" },
2470
+ "100%": { opacity: 1, transform: "scale(1)" }
2471
+ }), jr = V({
2472
+ "0%": { width: 0, height: 0, opacity: 1, transform: "translate(-50%, -50%)" },
2473
+ "100%": { width: "300px", height: "300px", opacity: 0, transform: "translate(-50%, -50%)" }
2474
+ }), Je = {
2475
+ position: "absolute",
2476
+ top: 0,
2477
+ left: 0,
2478
+ width: "100%",
2479
+ height: "100%",
2480
+ backfaceVisibility: "hidden",
2481
+ borderRadius: o.radiusLg,
2482
+ display: "flex",
2483
+ flexDirection: "column",
2484
+ alignItems: "center",
2485
+ justifyContent: "center",
2486
+ overflow: "hidden",
2487
+ boxSizing: "border-box"
2488
+ }, _r = {
2489
+ ...Je,
2490
+ background: I("front-bg"),
2491
+ border: I("front-border"),
2492
+ outline: I("front-outline"),
2493
+ outlineOffset: "2px",
2494
+ transition: "all 0.3s ease",
2495
+ "&::after": {
2496
+ content: '""',
2497
+ position: "absolute",
2498
+ top: 0,
2499
+ left: 0,
2500
+ width: "100%",
2501
+ height: "100%",
2502
+ background: I("after-bg"),
2503
+ borderRadius: "inherit",
2504
+ pointerEvents: "none",
2505
+ zIndex: 4
2506
+ }
2507
+ }, Pr = {
2508
+ "&::before": {
2509
+ content: '""',
2510
+ position: "absolute",
2511
+ top: "-50%",
2512
+ left: "-50%",
2513
+ width: "200%",
2514
+ height: "200%",
2515
+ background: I("before-bg"),
2516
+ transform: "rotate(25deg) translateX(-100%)",
2517
+ animation: `${Or} 4s ease-in-out infinite`,
2518
+ animationDelay: I("shimmer-delay"),
2519
+ pointerEvents: "none",
2520
+ zIndex: 5
2521
+ }
2522
+ }, Ge = {
2523
+ boxShadow: I("front-shadow"),
2524
+ pointerEvents: "auto",
2525
+ "&:hover": {
2526
+ transform: "translateY(-8px) scale(1.04) rotateX(2deg)",
2527
+ boxShadow: I("front-hover-shadow")
2528
+ }
2529
+ }, Hr = { boxShadow: "0 2px 8px rgba(0,0,0,0.15)", pointerEvents: "none", animation: "none" }, Vr = { animation: `${Gr} 3s ease-in-out infinite`, animationDelay: I("float-delay") }, Oe = (e) => {
2530
+ const s = { ..._r, ...e ? {} : Pr, padding: e ? o.spaceXs : o.spaceSm };
2531
+ return {
2532
+ idle: r(s, Ge, { animation: "none" }),
2533
+ floating: r(s, Ge, Vr),
2534
+ revealed: r(s, Hr)
2535
+ };
2536
+ }, Ot = { position: "absolute", zIndex: 2 }, je = (e) => ({
2537
+ topLeft: r({
2538
+ ...Ot,
2539
+ top: "6px",
2540
+ left: "6px",
2541
+ width: e,
2542
+ height: e,
2543
+ borderTop: `2px solid ${I("corner")}`,
2544
+ borderLeft: `2px solid ${I("corner")}`,
2545
+ borderTopLeftRadius: o.radiusSm
2546
+ }),
2547
+ topRight: r({
2548
+ ...Ot,
2549
+ top: "6px",
2550
+ right: "6px",
2551
+ width: e,
2552
+ height: e,
2553
+ borderTop: `2px solid ${I("corner")}`,
2554
+ borderRight: `2px solid ${I("corner")}`,
2555
+ borderTopRightRadius: o.radiusSm
2556
+ }),
2557
+ bottomLeft: r({
2558
+ ...Ot,
2559
+ bottom: "6px",
2560
+ left: "6px",
2561
+ width: e,
2562
+ height: e,
2563
+ borderBottom: `2px solid ${I("corner")}`,
2564
+ borderLeft: `2px solid ${I("corner")}`,
2565
+ borderBottomLeftRadius: o.radiusSm
2566
+ }),
2567
+ bottomRight: r({
2568
+ ...Ot,
2569
+ bottom: "6px",
2570
+ right: "6px",
2571
+ width: e,
2572
+ height: e,
2573
+ borderBottom: `2px solid ${I("corner")}`,
2574
+ borderRight: `2px solid ${I("corner")}`,
2575
+ borderBottomRightRadius: o.radiusSm
2576
+ })
2577
+ }), Ct = {
2578
+ ...Je,
2579
+ transform: "rotateY(180deg)",
2580
+ background: `linear-gradient(135deg, ${o.surface} 0%, ${I("surface-variant")} 40%, ${o.surface} 100%)`,
2581
+ border: I("back-border"),
2582
+ boxShadow: I("back-shadow")
2583
+ }, E = {
2584
+ root: r({
2585
+ perspective: "1000px",
2586
+ transition: "opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease",
2587
+ position: "relative",
2588
+ flexShrink: 0
2589
+ }),
2590
+ inner: r({
2591
+ position: "relative",
2592
+ width: "100%",
2593
+ height: "100%",
2594
+ transformStyle: "preserve-3d",
2595
+ transformOrigin: "center center"
2596
+ }),
2597
+ front: Oe(!1),
2598
+ frontMobile: Oe(!0),
2599
+ corners: je("16px"),
2600
+ cornersMobile: je("12px"),
2601
+ logo: r({
2602
+ width: "auto",
2603
+ height: "auto",
2604
+ objectFit: "contain",
2605
+ zIndex: 3,
2606
+ filter: "drop-shadow(0 2px 8px rgba(0,0,0,0.15))",
2607
+ opacity: 0.85
2608
+ }),
2609
+ mystery: r({
2610
+ ...xt,
2611
+ fontFamily: o.fontPrimary,
2612
+ fontWeight: 900,
2613
+ color: I("mystery"),
2614
+ backgroundImage: I("mystery-bg"),
2615
+ backgroundClip: "text",
2616
+ WebkitBackgroundClip: "text",
2617
+ WebkitTextFillColor: "transparent",
2618
+ filter: "drop-shadow(0 2px 3px rgba(0,0,0,0.2))",
2619
+ zIndex: 3,
2620
+ userSelect: "none"
2621
+ }),
2622
+ back: r({ ...Ct, padding: o.spaceSm, animation: "none" }),
2623
+ backMobile: r({ ...Ct, padding: o.spaceXs, animation: "none" }),
2624
+ backWin: r({ ...Ct, padding: o.spaceSm, animation: `${Xe} 1.5s ease-in-out infinite` }),
2625
+ backWinMobile: r({ ...Ct, padding: o.spaceXs, animation: `${Xe} 1.5s ease-in-out infinite` }),
2626
+ backLose: r({ ...Ct, padding: o.spaceSm, animation: `${Ye} ${I("lose-duration")} ease-in-out` }),
2627
+ backLoseMobile: r({ ...Ct, padding: o.spaceXs, animation: `${Ye} ${I("lose-duration")} ease-in-out` }),
2628
+ label: r({
2629
+ ...xt,
2630
+ fontFamily: o.fontPrimary,
2631
+ fontWeight: 800,
2632
+ fontSize: "1.125rem",
2633
+ color: I("label"),
2634
+ textAlign: "center",
2635
+ wordBreak: "break-word",
2636
+ textTransform: "uppercase",
2637
+ letterSpacing: "0.05em",
2638
+ textShadow: I("label-shadow"),
2639
+ animation: `${Ee} 0.4s ease-out`,
2640
+ unicodeBidi: "plaintext"
2641
+ }),
2642
+ labelMobile: r({
2643
+ ...xt,
2644
+ fontFamily: o.fontPrimary,
2645
+ fontWeight: 800,
2646
+ fontSize: "0.875rem",
2647
+ color: I("label"),
2648
+ textAlign: "center",
2649
+ wordBreak: "break-word",
2650
+ textTransform: "uppercase",
2651
+ letterSpacing: "0.05em",
2652
+ textShadow: I("label-shadow"),
2653
+ animation: `${Ee} 0.4s ease-out`,
2654
+ unicodeBidi: "plaintext"
2655
+ }),
2656
+ burst: r({
2657
+ position: "absolute",
2658
+ top: "50%",
2659
+ left: "50%",
2660
+ width: 0,
2661
+ height: 0,
2662
+ borderRadius: "50%",
2663
+ background: I("burst"),
2664
+ animation: `${jr} 0.8s ease-out forwards`,
2665
+ pointerEvents: "none",
2666
+ zIndex: 999
2667
+ })
2668
+ }, Nr = ({
2669
+ segment: e,
2670
+ index: s,
2671
+ selectedSegment: a,
2672
+ isFlipped: i,
2673
+ isOtherRevealed: c,
2674
+ shouldDim: d,
2675
+ isRevealed: b,
2676
+ showLoseAnimation: p,
2677
+ hasEntered: n,
2678
+ cardWidth: f,
2679
+ cardHeight: x,
2680
+ flipDuration: g,
2681
+ loseAnimationDuration: v,
2682
+ cardBaseColor: y,
2683
+ shimmerColor: l,
2684
+ primaryColor: L,
2685
+ contentColor: w,
2686
+ dangerColor: W,
2687
+ borderColor: k,
2688
+ brandingLogo: S,
2689
+ compactCards: A,
2690
+ onPick: M
2691
+ }) => {
2692
+ var D;
2693
+ const $ = lt(), z = ft(), R = $t(), m = e.color || L, C = k || m, h = z.palette.success.plainColor, B = i && b, F = B && !!(a != null && a.isWinning), Y = F || c && e.isWinning, H = B && a ? a.isWinning ? h : W : c ? e.isWinning ? h : W : z.outlineEnabledBorder, Z = {
2694
+ ...R,
2695
+ "--fu-ucrc-cg-card-surface-variant": z.surfaceVariant,
2696
+ "--fu-ucrc-cg-card-float-y": $ ? "-1px" : "-3px",
2697
+ "--fu-ucrc-cg-card-float-scale": $ ? 1.003 : 1.008,
2698
+ "--fu-ucrc-cg-card-float-delay": `${s * 0.15}s`,
2699
+ "--fu-ucrc-cg-card-shimmer-delay": `${s * 0.5}s`,
2700
+ "--fu-ucrc-cg-card-front-bg": `linear-gradient(145deg, ${m}10 0%, ${m}18 30%, ${y} 50%, ${m}12 70%, ${m}22 100%)`,
2701
+ "--fu-ucrc-cg-card-front-border": `2px solid ${C}`,
2702
+ "--fu-ucrc-cg-card-front-outline": `1px solid ${C}30`,
2703
+ "--fu-ucrc-cg-card-front-shadow": `0 1px 2px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.12), 0 12px 24px rgba(0,0,0,0.18), 0 0 0 1px ${m}15, inset 0 1px 0 ${l}4D, inset 0 -1px 0 rgba(0,0,0,0.05)`,
2704
+ "--fu-ucrc-cg-card-front-hover-shadow": `0 2px 4px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.15), 0 20px 40px ${m}35, 0 0 20px ${m}20`,
2705
+ "--fu-ucrc-cg-card-after-bg": `linear-gradient(125deg, transparent 0%, transparent 40%, ${l}59 45%, ${l}1A 50%, transparent 55%, transparent 100%)`,
2706
+ "--fu-ucrc-cg-card-before-bg": `linear-gradient(90deg, transparent 0%, ${l}08 25%, ${l}1F 50%, ${l}08 75%, transparent 100%)`,
2707
+ "--fu-ucrc-cg-card-corner": `${m}60`,
2708
+ // The "?" is gradient-filled; its own colour is Joy's text.primary, as it was.
2709
+ "--fu-ucrc-cg-card-mystery": (D = z.palette.text) == null ? void 0 : D.primary,
2710
+ "--fu-ucrc-cg-card-mystery-bg": `linear-gradient(180deg, ${m} 0%, ${m}BB 40%, ${m}DD 60%, ${m} 100%)`,
2711
+ "--fu-ucrc-cg-card-back-border": `3px solid ${H}`,
2712
+ "--fu-ucrc-cg-card-back-shadow": B && a ? a.isWinning ? `0 0 10px ${h}60, 0 0 30px ${h}30, 0 8px 24px ${h}40, inset 0 0 20px ${h}10` : `0 8px 24px ${W}60` : "0 4px 12px rgba(0,0,0,0.15)",
2713
+ "--fu-ucrc-cg-card-win-glow-1": `0 0 10px ${h}60, 0 0 30px ${h}30, 0 8px 24px ${h}40`,
2714
+ "--fu-ucrc-cg-card-win-glow-2": `0 0 20px ${h}80, 0 0 50px ${h}50, 0 8px 24px ${h}60`,
2715
+ "--fu-ucrc-cg-card-lose-0": `0 0 0 ${W}00`,
2716
+ "--fu-ucrc-cg-card-lose-10": `0 0 20px ${W}50`,
2717
+ "--fu-ucrc-cg-card-lose-40": `0 0 30px ${W}60`,
2718
+ "--fu-ucrc-cg-card-lose-70": `0 0 10px ${W}30`,
2719
+ "--fu-ucrc-cg-card-lose-100": `0 8px 24px ${W}60`,
2720
+ "--fu-ucrc-cg-card-lose-duration": `${v}ms`,
2721
+ "--fu-ucrc-cg-card-label": Y ? h : w,
2722
+ "--fu-ucrc-cg-card-label-shadow": Y ? `0 0 10px ${h}40` : "none",
2723
+ "--fu-ucrc-cg-card-burst": `radial-gradient(circle, ${h}40 0%, transparent 70%)`,
2724
+ width: `${f}px`,
2725
+ height: `${x}px`,
2726
+ cursor: b ? "default" : "pointer",
2727
+ opacity: d ? 0.4 : c ? 0.65 : 1,
2728
+ transform: d ? "scale(0.95) translateY(4px)" : c ? "scale(0.95)" : "none",
2729
+ filter: d ? "grayscale(0.5)" : c ? "grayscale(0.3)" : "none"
2730
+ }, J = B && !!a;
2731
+ return /* @__PURE__ */ u("div", { css: E.root, style: Z, onClick: () => !b && M(), children: [
2732
+ /* @__PURE__ */ u(
2733
+ "div",
2734
+ {
2735
+ css: E.inner,
2736
+ style: {
2737
+ transition: `transform ${g}ms cubic-bezier(0.4, 0.0, 0.2, 1.1)`,
2738
+ transform: i || c ? "rotateY(180deg)" : "rotateY(0deg)"
2739
+ },
2740
+ children: [
2741
+ /* @__PURE__ */ u(
2742
+ "div",
2743
+ {
2744
+ css: $ ? b ? E.frontMobile.revealed : n ? E.frontMobile.floating : E.frontMobile.idle : b ? E.front.revealed : n ? E.front.floating : E.front.idle,
2745
+ children: [
2746
+ /* @__PURE__ */ u(
2747
+ "svg",
2748
+ {
2749
+ style: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%", opacity: 0.1 },
2750
+ xmlns: "http://www.w3.org/2000/svg",
2751
+ children: [
2752
+ /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ u("pattern", { id: `card-pattern-${s}`, x: "0", y: "0", width: "50", height: "50", patternUnits: "userSpaceOnUse", children: [
2753
+ /* @__PURE__ */ t("path", { d: "M 25 8 L 33 25 L 25 42 L 17 25 Z", fill: m, opacity: "0.8" }),
2754
+ /* @__PURE__ */ t("path", { d: "M 5 5 Q 14 5 14 14", stroke: m, fill: "none", strokeWidth: "1", opacity: "0.5" }),
2755
+ /* @__PURE__ */ t("path", { d: "M 45 5 Q 36 5 36 14", stroke: m, fill: "none", strokeWidth: "1", opacity: "0.5" }),
2756
+ /* @__PURE__ */ t("path", { d: "M 5 45 Q 14 45 14 36", stroke: m, fill: "none", strokeWidth: "1", opacity: "0.5" }),
2757
+ /* @__PURE__ */ t("path", { d: "M 45 45 Q 36 45 36 36", stroke: m, fill: "none", strokeWidth: "1", opacity: "0.5" }),
2758
+ /* @__PURE__ */ t("circle", { cx: "5", cy: "5", r: "1.5", fill: m, opacity: "0.4" }),
2759
+ /* @__PURE__ */ t("circle", { cx: "45", cy: "5", r: "1.5", fill: m, opacity: "0.4" }),
2760
+ /* @__PURE__ */ t("circle", { cx: "5", cy: "45", r: "1.5", fill: m, opacity: "0.4" }),
2761
+ /* @__PURE__ */ t("circle", { cx: "45", cy: "45", r: "1.5", fill: m, opacity: "0.4" })
2762
+ ] }) }),
2763
+ /* @__PURE__ */ t("rect", { width: "100%", height: "100%", fill: `url(#card-pattern-${s})` })
2764
+ ]
2765
+ }
2766
+ ),
2767
+ /* @__PURE__ */ t("div", { css: $ ? E.cornersMobile.topLeft : E.corners.topLeft }),
2768
+ /* @__PURE__ */ t("div", { css: $ ? E.cornersMobile.topRight : E.corners.topRight }),
2769
+ /* @__PURE__ */ t("div", { css: $ ? E.cornersMobile.bottomLeft : E.corners.bottomLeft }),
2770
+ /* @__PURE__ */ t("div", { css: $ ? E.cornersMobile.bottomRight : E.corners.bottomRight }),
2771
+ S ? /* @__PURE__ */ t(
2772
+ "img",
2773
+ {
2774
+ src: S,
2775
+ alt: "Logo",
2776
+ css: E.logo,
2777
+ style: {
2778
+ maxWidth: A ? $ ? "55px" : "80px" : $ ? "70px" : "100px",
2779
+ maxHeight: A ? $ ? "30px" : "42px" : $ ? "40px" : "55px"
2780
+ }
2781
+ }
2782
+ ) : /* @__PURE__ */ t(
2783
+ "h1",
2784
+ {
2785
+ css: E.mystery,
2786
+ style: {
2787
+ fontSize: A ? $ ? "1.75rem" : "2.5rem" : $ ? "2.5rem" : "3.5rem"
2788
+ },
2789
+ children: "?"
2790
+ }
2791
+ )
2792
+ ]
2793
+ }
2794
+ ),
2795
+ /* @__PURE__ */ t(
2796
+ "div",
2797
+ {
2798
+ css: J && (a != null && a.isWinning) ? $ ? E.backWinMobile : E.backWin : J && p ? $ ? E.backLoseMobile : E.backLose : $ ? E.backMobile : E.back,
2799
+ children: (a || c) && /* @__PURE__ */ t("h3", { css: $ ? E.labelMobile : E.label, children: c ? e.label : a == null ? void 0 : a.label })
2800
+ }
2801
+ )
2802
+ ]
2803
+ }
2804
+ ),
2805
+ F && /* @__PURE__ */ t("div", { css: E.burst })
2806
+ ] });
2807
+ }, It = (e) => `var(--fu-ucrc-cg-pick-${e})`, Tt = { display: "flex", flexDirection: "column" }, _e = {
2808
+ ...xt,
2809
+ fontFamily: o.fontPrimary,
2810
+ fontWeight: 700,
2811
+ fontSize: "1.25rem",
2812
+ color: o.content,
2813
+ lineHeight: 1.2,
2814
+ unicodeBidi: "plaintext"
2815
+ }, Pe = { flex: "0 0 42%", ...Tt, gap: o.spaceMd, alignItems: "center", alignSelf: "stretch" }, He = {
2816
+ paddingInline: o.spaceLg,
2817
+ paddingBlock: o.spaceSm,
2818
+ fontFamily: o.fontPrimary,
2819
+ fontWeight: 700,
2820
+ textTransform: "uppercase",
2821
+ letterSpacing: "0.5px",
2822
+ borderRadius: o.radiusXl,
2823
+ borderColor: o.border,
2824
+ color: o.content,
2825
+ transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
2826
+ "&:hover": { borderColor: o.primary, backgroundColor: "transparent", color: o.primary }
2827
+ }, _ = {
2828
+ root: r({
2829
+ ...Tt,
2830
+ width: "100%",
2831
+ padding: o.spaceMd,
2832
+ gap: o.spaceMd,
2833
+ alignItems: "center",
2834
+ position: "relative",
2835
+ overflow: "hidden",
2836
+ boxSizing: "border-box"
2837
+ }),
2838
+ titleBlock: r({ ...Tt, gap: 0, alignItems: "center", textAlign: "center", width: "100%", zIndex: 1 }),
2839
+ title: r(_e),
2840
+ titleDecorated: r({ ..._e, textShadow: `0 0 20px ${It("dc-20")}, 0 0 40px ${It("dc-10")}` }),
2841
+ ornament: r({ display: "flex", alignItems: "center", gap: "8px", marginTop: "4px" }),
2842
+ ornamentLineIn: r({ width: "40px", height: "1px", background: `linear-gradient(90deg, transparent, ${It("dc-40")})` }),
2843
+ ornamentLineOut: r({ width: "40px", height: "1px", background: `linear-gradient(90deg, ${It("dc-40")}, transparent)` }),
2844
+ ornamentDiamond: r({ width: "6px", height: "6px", transform: "rotate(45deg)", background: It("dc-50") }),
2845
+ subtitle: r({
2846
+ ...et,
2847
+ fontFamily: o.fontSecondary,
2848
+ fontWeight: 400,
2849
+ fontSize: "0.875rem",
2850
+ color: o.content,
2851
+ opacity: 0.8,
2852
+ unicodeBidi: "plaintext"
2853
+ }),
2854
+ grid: r({
2855
+ marginInline: "auto",
2856
+ display: "grid",
2857
+ justifyContent: "center",
2858
+ position: "relative",
2859
+ perspective: "1200px",
2860
+ zIndex: 1
2861
+ }),
2862
+ cell: r({ display: "flex", justifyContent: "center", alignItems: "center" }),
2863
+ reset: r(Lt, He, { fontSize: "0.875rem" }),
2864
+ resetMobile: r(Lt, He, { fontSize: "0.75rem" }),
2865
+ row: r({ display: "flex", flexDirection: "row", width: "100%", gap: o.spaceXl, alignItems: "center", zIndex: 1 }),
2866
+ textColumn: r({ ...Pe, justifyContent: "flex-start" }),
2867
+ textColumnCentered: r({ ...Pe, justifyContent: "center" }),
2868
+ welcome: r({
2869
+ ...et,
2870
+ fontFamily: o.fontPrimary,
2871
+ fontWeight: 400,
2872
+ fontSize: "0.875rem",
2873
+ color: o.content,
2874
+ textAlign: "center",
2875
+ zIndex: 1,
2876
+ unicodeBidi: "plaintext"
2877
+ }),
2878
+ instructions: r({
2879
+ ...et,
2880
+ fontFamily: o.fontSecondary,
2881
+ fontWeight: 400,
2882
+ fontSize: "0.875rem",
2883
+ color: o.content,
2884
+ opacity: 0.7,
2885
+ textAlign: "center",
2886
+ zIndex: 1,
2887
+ unicodeBidi: "plaintext"
2888
+ }),
2889
+ footer: r({ marginTop: "auto", ...Tt, alignItems: "center", width: "100%" }),
2890
+ disclaimer: r({
2891
+ ...et,
2892
+ fontFamily: o.fontSecondary,
2893
+ fontWeight: 400,
2894
+ fontSize: "0.625rem",
2895
+ color: o.content,
2896
+ opacity: 0.7,
2897
+ textAlign: "center",
2898
+ maxWidth: "900px",
2899
+ lineHeight: 1.4,
2900
+ zIndex: 1,
2901
+ unicodeBidi: "plaintext"
2902
+ }),
2903
+ gridColumn: r({ flex: "0 0 58%", display: "flex", alignItems: "center", justifyContent: "center" }),
2904
+ stack: r({ ...Tt, width: "100%", gap: o.spaceSm, alignItems: "center", zIndex: 1 })
2905
+ }, Ur = ({
2906
+ infoPage: e,
2907
+ enableReset: s = !1,
2908
+ contentColor: a,
2909
+ primaryColor: i,
2910
+ onPrimaryColor: c,
2911
+ borderColor: d,
2912
+ dangerColor: b,
2913
+ cardBaseColor: p,
2914
+ shimmerColor: n,
2915
+ brandingLogo: f = "",
2916
+ isDark: x = !1,
2917
+ forceMobile: g = !1
2918
+ }) => {
2919
+ var oe, ne, ie, ae;
2920
+ const v = lt(), y = Jt(), l = g ? !1 : y, L = ft(), w = $t(), W = p || L.surface, k = n || i, S = JSON.parse(e.body), A = S.segments || [], M = e.labels || {}, $ = S.mode || ((oe = S.config) == null ? void 0 : oe.mode) || "fair", z = ((ne = S.config) == null ? void 0 : ne.pace) || "normal", R = ((ie = S.config) == null ? void 0 : ie.revealAll) ?? !1, m = ((ae = S.config) == null ? void 0 : ae.decorations) ?? !1, C = A.some((At) => {
2921
+ var ht;
2922
+ return (ht = At.images) == null ? void 0 : ht.idle;
2923
+ }), h = wt(i, x), B = !!(M.welcome || M.instructions || M.disclaimer), F = l ? 110 : 80, Y = l ? 143 : 104, H = l ? 130 : 90, Z = l ? "32px" : "16px", J = l ? "32px" : "12px", {
2924
+ selectedSegment: D,
2925
+ displaySegments: N,
2926
+ revealResult: q,
2927
+ showResultScreen: K,
2928
+ showInlineResult: tt,
2929
+ showLoseAnimation: ot,
2930
+ hasEntered: nt,
2931
+ flippedCards: ut,
2932
+ crossfadedCards: it,
2933
+ revealedOtherCards: rt,
2934
+ flipDuration: ct,
2935
+ crossfadeDuration: dt,
2936
+ loseAnimationDuration: Q,
2937
+ handlePick: gt,
2938
+ handleReset: Rt
2939
+ } = Fr({ segments: A, mode: $, pace: z, revealAll: R }), mt = {
2940
+ ...w,
2941
+ "--fu-ucrc-cg-content": a,
2942
+ "--fu-ucrc-cg-primary": i,
2943
+ "--fu-ucrc-cg-border": d || L.outlineEnabledBorder,
2944
+ "--fu-ucrc-cg-pick-dc-10": h("10"),
2945
+ "--fu-ucrc-cg-pick-dc-20": h("20"),
2946
+ "--fu-ucrc-cg-pick-dc-40": h("40"),
2947
+ "--fu-ucrc-cg-pick-dc-50": h("50")
2948
+ }, Ft = () => !e.title && !e.subtitle ? null : /* @__PURE__ */ u("div", { css: _.titleBlock, children: [
2949
+ e.title && /* @__PURE__ */ u(st, { children: [
2950
+ /* @__PURE__ */ t("h2", { css: m ? _.titleDecorated : _.title, children: e.title }),
2951
+ m && /* @__PURE__ */ u("div", { css: _.ornament, children: [
2952
+ /* @__PURE__ */ t("div", { css: _.ornamentLineIn }),
2953
+ /* @__PURE__ */ t("div", { css: _.ornamentDiamond }),
2954
+ /* @__PURE__ */ t("div", { css: _.ornamentLineOut })
2955
+ ] })
2956
+ ] }),
2957
+ e.subtitle && /* @__PURE__ */ t("p", { css: _.subtitle, children: e.subtitle })
2958
+ ] }), bt = () => /* @__PURE__ */ t(
2959
+ "div",
2960
+ {
2961
+ css: _.grid,
2962
+ style: {
2963
+ gridTemplateColumns: `repeat(3, ${C ? H : F}px)`,
2964
+ rowGap: Z,
2965
+ columnGap: J
2966
+ },
2967
+ children: (N ?? A).map((At, ht) => {
2968
+ const Pt = `card-${ht}`, Xt = D !== null, se = ut.has(Pt), Yt = rt.has(Pt), Qe = Xt && !se && !Yt, ce = it.has(Pt), Ke = Xt && !ce && !Yt;
2969
+ return /* @__PURE__ */ t(
2970
+ "div",
2971
+ {
2972
+ css: _.cell,
2973
+ style: {
2974
+ opacity: nt ? 1 : 0,
2975
+ transform: nt ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
2976
+ transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${ht * 100}ms`
2977
+ },
2978
+ children: C ? /* @__PURE__ */ t(
2979
+ Er,
2980
+ {
2981
+ segment: At,
2982
+ index: ht,
2983
+ selectedSegment: D,
2984
+ revealResult: q,
2985
+ isCrossfaded: ce,
2986
+ isOtherRevealed: Yt,
2987
+ shouldDim: Ke,
2988
+ isRevealed: Xt,
2989
+ hasEntered: nt,
2990
+ objectSize: H,
2991
+ crossfadeDuration: dt,
2992
+ isStandard: !1,
2993
+ primaryColor: i,
2994
+ dangerColor: b,
2995
+ onPick: () => gt(ht, !0)
2996
+ }
2997
+ ) : /* @__PURE__ */ t(
2998
+ Nr,
2999
+ {
3000
+ segment: At,
3001
+ index: ht,
3002
+ selectedSegment: D,
3003
+ isFlipped: se,
3004
+ isOtherRevealed: Yt,
3005
+ shouldDim: Qe,
3006
+ isRevealed: Xt,
3007
+ showLoseAnimation: ot,
3008
+ hasEntered: nt,
3009
+ cardWidth: F,
3010
+ cardHeight: Y,
3011
+ flipDuration: ct,
3012
+ loseAnimationDuration: Q,
3013
+ cardBaseColor: W,
3014
+ shimmerColor: k,
3015
+ primaryColor: i,
3016
+ contentColor: a,
3017
+ dangerColor: b,
3018
+ borderColor: d,
3019
+ brandingLogo: f,
3020
+ compactCards: !0,
3021
+ onPick: () => gt(ht, !1)
3022
+ }
3023
+ )
3024
+ },
3025
+ At.id
3026
+ );
3027
+ })
3028
+ }
3029
+ ), vt = s && tt && /* @__PURE__ */ t("button", { type: "button", css: v ? _.resetMobile : _.reset, onClick: Rt, children: "Reset Game" }), zt = tt && (D == null ? void 0 : D.results) && /* @__PURE__ */ t(
3030
+ Wt,
3031
+ {
3032
+ result: D.results,
3033
+ variant: "embed",
3034
+ mode: "inline",
3035
+ contentColor: a,
3036
+ primaryColor: i,
3037
+ onPrimaryColor: c,
3038
+ borderColor: d,
3039
+ showResetButton: !1,
3040
+ raised: !0
3041
+ }
3042
+ ), te = M.welcome && /* @__PURE__ */ t("p", { css: _.welcome, children: M.welcome }), ee = !tt && M.instructions && /* @__PURE__ */ t("p", { css: _.instructions, children: M.instructions }), re = M.disclaimer && /* @__PURE__ */ t("p", { css: _.disclaimer, children: M.disclaimer });
3043
+ return /* @__PURE__ */ u("div", { css: _.root, style: mt, children: [
3044
+ m && /* @__PURE__ */ t(Ue, { primaryColor: i, isDark: x, animationPrefix: "casino" }),
3045
+ K && (D == null ? void 0 : D.results) && /* @__PURE__ */ t(
3046
+ Wt,
3047
+ {
3048
+ result: D.results,
3049
+ variant: "embed",
3050
+ mode: "screen",
3051
+ contentColor: a,
3052
+ primaryColor: i,
3053
+ onPrimaryColor: c,
3054
+ borderColor: d,
3055
+ disclaimer: M.disclaimer,
3056
+ enableReset: s,
3057
+ onReset: Rt
3058
+ }
3059
+ ),
3060
+ !K && (l ? (
3061
+ // Desktop: text column beside the cards
3062
+ /* @__PURE__ */ u("div", { css: _.row, children: [
3063
+ /* @__PURE__ */ u("div", { css: B ? _.textColumn : _.textColumnCentered, children: [
3064
+ Ft(),
3065
+ te,
3066
+ ee,
3067
+ zt,
3068
+ vt,
3069
+ /* @__PURE__ */ t("div", { css: _.footer, children: re })
3070
+ ] }),
3071
+ /* @__PURE__ */ t("div", { css: _.gridColumn, children: bt() })
3072
+ ] })
3073
+ ) : (
3074
+ // Mobile: one compact column
3075
+ /* @__PURE__ */ u("div", { css: _.stack, children: [
3076
+ Ft(),
3077
+ te,
3078
+ ee,
3079
+ bt(),
3080
+ zt,
3081
+ vt,
3082
+ re
3083
+ ] })
3084
+ ))
3085
+ ] });
3086
+ }, Ve = {
3087
+ display: "flex",
3088
+ flexDirection: "column",
3089
+ width: "100%",
3090
+ height: "100%",
3091
+ position: "relative",
3092
+ overflow: "auto",
3093
+ boxSizing: "border-box",
3094
+ boxShadow: "inset 0 0 100px rgba(0, 0, 0, 0.04), inset 0 0 30px rgba(0, 0, 0, 0.02)"
3095
+ }, Ne = {
3096
+ root: r(Ve),
3097
+ decorated: r({ ...Ve, border: "1px solid var(--fu-ucrc-cg-pick-frame)", borderRadius: o.radiusLg })
3098
+ }, eo = ({ infoPage: e, enableReset: s = !1, forceMobile: a = !1 }) => {
3099
+ var S, A, M, $, z, R, m, C, h, B, F;
3100
+ const i = lt(), c = a || i, d = ft(), b = $t(), p = Qt() === "dark", n = (S = e.branding) == null ? void 0 : S.colors, f = (n == null ? void 0 : n.primary_color) || d.palette.primary.plainColor, x = (n == null ? void 0 : n.content_color) || d.textPrimary, g = n == null ? void 0 : n.border_color, v = (n == null ? void 0 : n.background_color) || d.surface, y = d.palette.danger.plainColor, l = ((A = JSON.parse(e.body).config) == null ? void 0 : A.decorations) ?? !1, L = c ? (($ = (M = e.branding) == null ? void 0 : M.images) == null ? void 0 : $.mobile_background_image) || ((R = (z = e.branding) == null ? void 0 : z.images) == null ? void 0 : R.background_image) || ((m = e.images) == null ? void 0 : m.cover) : ((h = (C = e.branding) == null ? void 0 : C.images) == null ? void 0 : h.background_image) || ((B = e.images) == null ? void 0 : B.cover), w = (F = e.branding) == null ? void 0 : F.images, W = c ? (w == null ? void 0 : w.mobile_logo) || (w == null ? void 0 : w.main_logo) || "" : (w == null ? void 0 : w.main_logo) || "", k = {
3101
+ ...b,
3102
+ "--fu-ucrc-cg-pick-frame": wt(f, p)("15"),
3103
+ background: L ? `url(${L}) center/cover no-repeat` : `radial-gradient(ellipse at 50% 40%, ${f}12 0%, transparent 60%), radial-gradient(ellipse at 50% 100%, ${f}08 0%, transparent 50%), ${v}`
3104
+ };
3105
+ return /* @__PURE__ */ t("div", { css: l ? Ne.decorated : Ne.root, style: k, children: /* @__PURE__ */ t(
3106
+ Ur,
3107
+ {
3108
+ infoPage: e,
3109
+ enableReset: s,
3110
+ contentColor: x,
3111
+ primaryColor: f,
3112
+ onPrimaryColor: d.palette.primary.onPrimary,
3113
+ borderColor: g || void 0,
3114
+ backgroundColor: v,
3115
+ dangerColor: y,
3116
+ cardBaseColor: v,
3117
+ shimmerColor: f,
3118
+ brandingLogo: W,
3119
+ backgroundImage: L || void 0,
3120
+ isDark: p,
3121
+ forceMobile: a
3122
+ }
3123
+ ) });
3124
+ };
3125
+ export {
3126
+ yr as C,
3127
+ Ue as D,
3128
+ Nr as F,
3129
+ Er as O,
3130
+ Kr as P,
3131
+ Wt as S,
3132
+ o as V,
3133
+ $r as W,
3134
+ eo as a,
3135
+ to as b,
3136
+ et as c,
3137
+ Mt as d,
3138
+ sr as e,
3139
+ wt as f,
3140
+ vr as g,
3141
+ xt as h,
3142
+ kr as i,
3143
+ Fr as j,
3144
+ Lt as o,
3145
+ $t as u
3146
+ };