fansunited-frontend-components 0.0.97 → 0.0.99
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.
- package/Betslip.js +2 -2
- package/ChanceGame.js +958 -1464
- package/ClassicQuizPlay.js +2 -2
- package/CollectLead.js +1 -1
- package/CompetitionStatistics.js +2042 -2215
- package/CompetitorCard.js +4281 -4919
- package/Discussion.js +2 -2
- package/EitherOrPlay.js +2 -2
- package/EventCard.js +6010 -7547
- package/EventGamePlay.js +2 -2
- package/Leaderboard.js +546 -849
- package/List.js +227 -218
- package/MatchQuizPlay.js +2 -2
- package/Odds.js +50 -42
- package/PersonalityQuizPlay.js +2 -2
- package/PickThePair.js +2 -2
- package/PlayerOfTheMatch.js +285 -269
- package/PollVote.js +2 -2
- package/Predictor.js +80 -127
- package/README.md +1 -1
- package/Standings.js +991 -1324
- package/TopX.js +1120 -1167
- package/chunks/{ChanceGameEmbedVariant-CVys-3Zh.js → ChanceGameEmbedVariant-DM9eLG5s.js} +2 -2
- package/chunks/CheckCircle-I1FktW5Y.js +13 -0
- package/chunks/OddsSkeleton-DP5Yfqpr.js +522 -0
- package/chunks/Person-CXRqyF4E.js +11 -0
- package/chunks/PickOneOfX-DET4ZhjV.js +3117 -0
- package/chunks/Search-CIXthh0D.js +17 -0
- package/chunks/TimerOutlined-D-WA_vpE.js +8 -0
- package/chunks/WorkspacePremiumOutlined-DUXVgJlF.js +136 -0
- package/chunks/{chevrons-right-CXSpQt9w.js → chevrons-right-HWKW2c4I.js} +24 -4
- package/chunks/index-BENM3N_w.js +4 -0
- package/chunks/index-BRxAV693.js +4 -0
- package/chunks/index-BXYTsvIX.js +4 -0
- package/chunks/index-C0ilols1.js +4 -0
- package/chunks/index-D7VhczXH.js +4 -0
- package/chunks/index-DKwvdw9t.js +4 -0
- package/chunks/index-DZN-AITW.js +4 -0
- package/chunks/main-B2sDRFF4.js +2184 -0
- package/chunks/main-CzfWaEQP.js +4869 -0
- package/chunks/main-DFNl3g_U.js +4910 -0
- package/chunks/{main-65WcUqAl.js → main-DLwnvntz.js} +600 -593
- package/chunks/main-DiBlJBNb.js +1956 -0
- package/chunks/main-DxvBjXsd.js +1775 -0
- package/chunks/main-S8_NDSiY.js +3209 -0
- package/chunks/main-lBgr8Liq.js +6571 -0
- package/chunks/{withVersionStamp-BkiEu_79.js → withVersionStamp-BsLyhvNA.js} +1 -1
- package/package.json +2 -2
- package/chunks/OddsSkeleton-ClJE2xhR.js +0 -26
- package/chunks/OddsStrip-BnSp5TXa.js +0 -383
- package/chunks/PickOneOfX-DaJtkbCw.js +0 -4206
- package/chunks/chevron-left-CxfCSZcr.js +0 -13
- package/chunks/chevron-right-BEQMacFn.js +0 -13
- package/chunks/index-Aq5MbUB9.js +0 -4
- package/chunks/index-BBQm_8LD.js +0 -4
- package/chunks/index-BC_sWWgc.js +0 -4
- package/chunks/index-DXKDJ1Vp.js +0 -4
- package/chunks/index-DjT5NrbA.js +0 -4
- package/chunks/index-DvLRehH6.js +0 -4
- package/chunks/index-aIMaxR-p.js +0 -4
- package/chunks/main-52Wff7qC.js +0 -11441
- package/chunks/main-B58mi9jx.js +0 -5622
- package/chunks/main-BIdXUTZS.js +0 -7308
- package/chunks/main-DD-NEzC7.js +0 -8241
- package/chunks/main-DUnfJPzY.js +0 -3608
- package/chunks/main-DpCBqqg_.js +0 -1950
- package/chunks/main-Drznt1ak.js +0 -1790
- package/chunks/users-wbJRbqW8.js +0 -16
- package/chunks/x-CK4GYo7T.js +0 -14
|
@@ -1,4206 +0,0 @@
|
|
|
1
|
-
import { jsxs as w, jsx as t, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import { Box as d, Typography as D, Button as ct } from "@mui/joy";
|
|
3
|
-
import { isMobile as Q, useColors as tt, useCornerRadius as ot, useFontFamily as rt, useSpacingScale as dt, isDesktop as gt, useCurrentThemeMode as mt } from "fansunited-frontend-core";
|
|
4
|
-
import { useState as Y, useEffect as ft, useRef as At } from "react";
|
|
5
|
-
const it = (e, y) => (o) => {
|
|
6
|
-
if (!y) return `${e}${o}`;
|
|
7
|
-
const n = parseInt(o, 16);
|
|
8
|
-
return `${e}${Math.min(Math.round(n * 2.5), 255).toString(16).padStart(2, "0")}`;
|
|
9
|
-
}, Mt = (e) => e ? "0.15" : "0.06", Yt = (e) => {
|
|
10
|
-
const y = e.filter((o) => o.isWinning);
|
|
11
|
-
return y.length === 0 ? e[Math.floor(Math.random() * e.length)] : y[Math.floor(Math.random() * y.length)];
|
|
12
|
-
}, Ct = (e) => e[Math.floor(Math.random() * e.length)], Xt = (e) => {
|
|
13
|
-
const y = e.reduce((r, f) => r + f.weight, 0), o = Math.random() * y;
|
|
14
|
-
let n = 0;
|
|
15
|
-
for (const r of e)
|
|
16
|
-
if (n += r.weight, o <= n) return r;
|
|
17
|
-
return e[0];
|
|
18
|
-
}, ut = (e, y) => {
|
|
19
|
-
switch (y.toLowerCase()) {
|
|
20
|
-
case "win":
|
|
21
|
-
return Yt(e);
|
|
22
|
-
case "fair":
|
|
23
|
-
return Ct(e);
|
|
24
|
-
case "weighted":
|
|
25
|
-
default:
|
|
26
|
-
return Xt(e);
|
|
27
|
-
}
|
|
28
|
-
}, Gt = {
|
|
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 _t({ segments: e, mode: y, pace: o }) {
|
|
34
|
-
const [n, r] = Y(!1), [f, i] = Y(0), [s, a] = Y(null), [l, p] = Y(!1), [x, h] = Y(!1), [c, m] = Y(!1), [v, k] = Y(!1), [g, S] = Y(!1), { duration: L, minSpins: z, maxSpins: R } = Gt[o], u = Math.round(L * 0.23), I = 3e3 / L * 1.25, T = 0.45 * I;
|
|
35
|
-
return ft(() => {
|
|
36
|
-
setTimeout(() => k(!0), 100);
|
|
37
|
-
}, []), {
|
|
38
|
-
isSpinning: n,
|
|
39
|
-
finalRotation: f,
|
|
40
|
-
selectedSegment: s,
|
|
41
|
-
showShakeAnimation: l,
|
|
42
|
-
showResultScreen: x,
|
|
43
|
-
showInlineResult: c,
|
|
44
|
-
hasEntered: v,
|
|
45
|
-
confettiActive: g,
|
|
46
|
-
spinDuration: L,
|
|
47
|
-
shakeAnimationDuration: u,
|
|
48
|
-
confettiVelocityMultiplier: I,
|
|
49
|
-
confettiGravity: T,
|
|
50
|
-
handleSpin: () => {
|
|
51
|
-
if (n || g || c) return;
|
|
52
|
-
h(!1), m(!1), a(null), r(!0);
|
|
53
|
-
const $ = ut(e, y);
|
|
54
|
-
a($);
|
|
55
|
-
const F = e.findIndex(
|
|
56
|
-
(E) => E.id === $.id
|
|
57
|
-
), B = 360 / e.length, _ = F * B + B / 2, j = z + Math.floor(Math.random() * (R - z + 1)), N = 360 - _, X = f % 360;
|
|
58
|
-
let M = N - X;
|
|
59
|
-
M < 0 && (M += 360);
|
|
60
|
-
const G = f + j * 360 + M;
|
|
61
|
-
i(G), setTimeout(() => {
|
|
62
|
-
r(!1), $.isWinning ? S(!0) : (p(!0), setTimeout(() => {
|
|
63
|
-
p(!1), setTimeout(() => {
|
|
64
|
-
var O, H;
|
|
65
|
-
((O = $.results) == null ? void 0 : O.primaryCTA) || ((H = $.results) == null ? void 0 : H.secondaryCTA) ? h(!0) : m(!0);
|
|
66
|
-
}, 300);
|
|
67
|
-
}, u));
|
|
68
|
-
}, L);
|
|
69
|
-
},
|
|
70
|
-
handleReset: () => {
|
|
71
|
-
r(!1), i(0), a(null), S(!1), p(!1), h(!1), m(!1);
|
|
72
|
-
},
|
|
73
|
-
onConfettiComplete: () => {
|
|
74
|
-
var F, B;
|
|
75
|
-
S(!1), ((F = s == null ? void 0 : s.results) == null ? void 0 : F.primaryCTA) || ((B = s == null ? void 0 : s.results) == null ? void 0 : B.secondaryCTA) ? h(!0) : m(!0);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
const Lt = ({
|
|
80
|
-
cta: e,
|
|
81
|
-
mobile: y,
|
|
82
|
-
contentColor: o,
|
|
83
|
-
primaryColor: n,
|
|
84
|
-
onPrimaryColor: r,
|
|
85
|
-
effectiveBorderColor: f,
|
|
86
|
-
borderRadius: i,
|
|
87
|
-
fontFamily: s,
|
|
88
|
-
spacingScale: a
|
|
89
|
-
}) => /* @__PURE__ */ w(
|
|
90
|
-
d,
|
|
91
|
-
{
|
|
92
|
-
sx: {
|
|
93
|
-
flex: y ? "0 1 auto" : 1,
|
|
94
|
-
width: y ? "100%" : "auto",
|
|
95
|
-
display: "flex",
|
|
96
|
-
flexDirection: "column",
|
|
97
|
-
gap: a.xs,
|
|
98
|
-
alignItems: "center",
|
|
99
|
-
textAlign: "center",
|
|
100
|
-
p: a.md,
|
|
101
|
-
border: `2px solid ${f}`,
|
|
102
|
-
borderRadius: i.lg,
|
|
103
|
-
boxSizing: "border-box"
|
|
104
|
-
},
|
|
105
|
-
children: [
|
|
106
|
-
e.title && /* @__PURE__ */ t(
|
|
107
|
-
D,
|
|
108
|
-
{
|
|
109
|
-
level: "h3",
|
|
110
|
-
sx: {
|
|
111
|
-
fontFamily: s.primary,
|
|
112
|
-
fontWeight: 700,
|
|
113
|
-
fontSize: "0.875rem",
|
|
114
|
-
color: o,
|
|
115
|
-
textTransform: "uppercase"
|
|
116
|
-
},
|
|
117
|
-
children: e.title
|
|
118
|
-
}
|
|
119
|
-
),
|
|
120
|
-
e.description && /* @__PURE__ */ t(
|
|
121
|
-
D,
|
|
122
|
-
{
|
|
123
|
-
level: "body-md",
|
|
124
|
-
sx: {
|
|
125
|
-
fontFamily: s.secondary,
|
|
126
|
-
fontWeight: 400,
|
|
127
|
-
fontSize: "0.875rem",
|
|
128
|
-
color: o,
|
|
129
|
-
opacity: 0.7,
|
|
130
|
-
whiteSpace: "pre-line"
|
|
131
|
-
},
|
|
132
|
-
children: e.description
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */ t(
|
|
136
|
-
ct,
|
|
137
|
-
{
|
|
138
|
-
component: "a",
|
|
139
|
-
href: e.link,
|
|
140
|
-
target: "_blank",
|
|
141
|
-
rel: "noopener noreferrer",
|
|
142
|
-
sx: {
|
|
143
|
-
mt: a.sm,
|
|
144
|
-
px: a.lg,
|
|
145
|
-
py: a.sm,
|
|
146
|
-
fontFamily: s.primary,
|
|
147
|
-
fontWeight: 700,
|
|
148
|
-
fontSize: y ? "0.75rem" : "0.875rem",
|
|
149
|
-
textTransform: "uppercase",
|
|
150
|
-
letterSpacing: "0.5px",
|
|
151
|
-
borderRadius: i.xl,
|
|
152
|
-
"--variant-softBg": n,
|
|
153
|
-
"--variant-softColor": r,
|
|
154
|
-
"--variant-softHoverBg": n,
|
|
155
|
-
bgcolor: n,
|
|
156
|
-
color: r,
|
|
157
|
-
boxShadow: "0 4px 14px 0 rgba(0,0,0,0.15)",
|
|
158
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
159
|
-
transform: "scale(1)",
|
|
160
|
-
"&:hover": {
|
|
161
|
-
bgcolor: n,
|
|
162
|
-
transform: "scale(1.05)",
|
|
163
|
-
boxShadow: "0 6px 20px 0 rgba(0,0,0,0.2)"
|
|
164
|
-
},
|
|
165
|
-
"&:active": { transform: "scale(0.95)", color: r }
|
|
166
|
-
},
|
|
167
|
-
children: e.label
|
|
168
|
-
}
|
|
169
|
-
)
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
), nt = ({
|
|
173
|
-
result: e,
|
|
174
|
-
variant: y,
|
|
175
|
-
mode: o,
|
|
176
|
-
contentColor: n,
|
|
177
|
-
primaryColor: r,
|
|
178
|
-
onPrimaryColor: f,
|
|
179
|
-
borderColor: i,
|
|
180
|
-
disclaimer: s,
|
|
181
|
-
enableReset: a = !1,
|
|
182
|
-
onReset: l,
|
|
183
|
-
showResetButton: p = !0,
|
|
184
|
-
sx: x
|
|
185
|
-
}) => {
|
|
186
|
-
const h = Q(), c = tt(), m = ot(), v = rt(), k = dt(), g = y === "standard", S = i || c.outlineEnabledBorder, L = {
|
|
187
|
-
mobile: h,
|
|
188
|
-
contentColor: n,
|
|
189
|
-
primaryColor: r,
|
|
190
|
-
onPrimaryColor: f,
|
|
191
|
-
effectiveBorderColor: S,
|
|
192
|
-
borderRadius: m,
|
|
193
|
-
fontFamily: v,
|
|
194
|
-
spacingScale: k
|
|
195
|
-
};
|
|
196
|
-
return o === "screen" ? /* @__PURE__ */ w(
|
|
197
|
-
d,
|
|
198
|
-
{
|
|
199
|
-
sx: {
|
|
200
|
-
display: "flex",
|
|
201
|
-
flexDirection: "column",
|
|
202
|
-
width: "100%",
|
|
203
|
-
gap: k.md,
|
|
204
|
-
alignItems: "center",
|
|
205
|
-
zIndex: 10,
|
|
206
|
-
...x || {}
|
|
207
|
-
},
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ w(
|
|
210
|
-
d,
|
|
211
|
-
{
|
|
212
|
-
sx: {
|
|
213
|
-
display: "flex",
|
|
214
|
-
flexDirection: "column",
|
|
215
|
-
gap: k.xs,
|
|
216
|
-
alignItems: "center"
|
|
217
|
-
},
|
|
218
|
-
children: [
|
|
219
|
-
/* @__PURE__ */ t(
|
|
220
|
-
D,
|
|
221
|
-
{
|
|
222
|
-
level: "h2",
|
|
223
|
-
sx: {
|
|
224
|
-
fontFamily: v.primary,
|
|
225
|
-
fontWeight: 700,
|
|
226
|
-
fontSize: "1.25rem",
|
|
227
|
-
color: n,
|
|
228
|
-
textAlign: "center",
|
|
229
|
-
textTransform: "uppercase"
|
|
230
|
-
},
|
|
231
|
-
children: e.title
|
|
232
|
-
}
|
|
233
|
-
),
|
|
234
|
-
e.description && /* @__PURE__ */ t(
|
|
235
|
-
D,
|
|
236
|
-
{
|
|
237
|
-
level: "body-md",
|
|
238
|
-
sx: {
|
|
239
|
-
fontFamily: v.secondary,
|
|
240
|
-
fontWeight: 400,
|
|
241
|
-
fontSize: "0.875rem",
|
|
242
|
-
color: n,
|
|
243
|
-
textAlign: "center",
|
|
244
|
-
opacity: 0.8
|
|
245
|
-
},
|
|
246
|
-
children: e.description
|
|
247
|
-
}
|
|
248
|
-
)
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
),
|
|
252
|
-
(e.primaryCTA || e.secondaryCTA) && /* @__PURE__ */ w(
|
|
253
|
-
d,
|
|
254
|
-
{
|
|
255
|
-
sx: {
|
|
256
|
-
display: "flex",
|
|
257
|
-
flexDirection: h ? "column" : "row",
|
|
258
|
-
gap: g ? k.md : k.xl,
|
|
259
|
-
width: "100%",
|
|
260
|
-
maxWidth: "900px",
|
|
261
|
-
justifyContent: "center"
|
|
262
|
-
},
|
|
263
|
-
children: [
|
|
264
|
-
e.primaryCTA && /* @__PURE__ */ t(Lt, { cta: e.primaryCTA, ...L }),
|
|
265
|
-
e.secondaryCTA && /* @__PURE__ */ t(Lt, { cta: e.secondaryCTA, ...L })
|
|
266
|
-
]
|
|
267
|
-
}
|
|
268
|
-
),
|
|
269
|
-
!g && s && /* @__PURE__ */ t(
|
|
270
|
-
D,
|
|
271
|
-
{
|
|
272
|
-
level: "body-sm",
|
|
273
|
-
sx: {
|
|
274
|
-
fontFamily: v.secondary,
|
|
275
|
-
fontWeight: 400,
|
|
276
|
-
fontSize: h ? "0.625rem" : "0.75rem",
|
|
277
|
-
color: n,
|
|
278
|
-
opacity: 0.7,
|
|
279
|
-
textAlign: "center",
|
|
280
|
-
maxWidth: "900px",
|
|
281
|
-
lineHeight: 1.4
|
|
282
|
-
},
|
|
283
|
-
children: s
|
|
284
|
-
}
|
|
285
|
-
),
|
|
286
|
-
a && p && l && /* @__PURE__ */ t(
|
|
287
|
-
ct,
|
|
288
|
-
{
|
|
289
|
-
onClick: l,
|
|
290
|
-
variant: "outlined",
|
|
291
|
-
sx: {
|
|
292
|
-
mt: k.sm,
|
|
293
|
-
px: k.lg,
|
|
294
|
-
py: k.sm,
|
|
295
|
-
fontFamily: v.primary,
|
|
296
|
-
fontWeight: 700,
|
|
297
|
-
fontSize: h ? "0.75rem" : "0.875rem",
|
|
298
|
-
textTransform: "uppercase",
|
|
299
|
-
letterSpacing: "0.5px",
|
|
300
|
-
borderRadius: m.xl,
|
|
301
|
-
borderColor: S,
|
|
302
|
-
color: n,
|
|
303
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
304
|
-
"&:hover": {
|
|
305
|
-
borderColor: r,
|
|
306
|
-
bgcolor: "transparent",
|
|
307
|
-
color: r
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
children: "Reset Game"
|
|
311
|
-
}
|
|
312
|
-
)
|
|
313
|
-
]
|
|
314
|
-
}
|
|
315
|
-
) : /* @__PURE__ */ w(
|
|
316
|
-
d,
|
|
317
|
-
{
|
|
318
|
-
sx: {
|
|
319
|
-
display: "flex",
|
|
320
|
-
flexDirection: "column",
|
|
321
|
-
gap: k.xs,
|
|
322
|
-
alignItems: "center",
|
|
323
|
-
textAlign: "center",
|
|
324
|
-
width: "100%",
|
|
325
|
-
maxWidth: "600px",
|
|
326
|
-
...x || {}
|
|
327
|
-
},
|
|
328
|
-
children: [
|
|
329
|
-
e.title && /* @__PURE__ */ t(
|
|
330
|
-
D,
|
|
331
|
-
{
|
|
332
|
-
level: "h2",
|
|
333
|
-
sx: {
|
|
334
|
-
fontFamily: v.primary,
|
|
335
|
-
fontWeight: 700,
|
|
336
|
-
fontSize: h ? "1.5rem" : "2rem",
|
|
337
|
-
color: n,
|
|
338
|
-
lineHeight: 1.2
|
|
339
|
-
},
|
|
340
|
-
children: e.title
|
|
341
|
-
}
|
|
342
|
-
),
|
|
343
|
-
e.description && /* @__PURE__ */ t(
|
|
344
|
-
D,
|
|
345
|
-
{
|
|
346
|
-
level: "body-md",
|
|
347
|
-
sx: {
|
|
348
|
-
fontFamily: v.secondary,
|
|
349
|
-
fontWeight: 400,
|
|
350
|
-
fontSize: h ? "0.875rem" : "1rem",
|
|
351
|
-
color: n,
|
|
352
|
-
opacity: 0.8
|
|
353
|
-
},
|
|
354
|
-
children: e.description
|
|
355
|
-
}
|
|
356
|
-
),
|
|
357
|
-
a && p && l && /* @__PURE__ */ t(
|
|
358
|
-
ct,
|
|
359
|
-
{
|
|
360
|
-
variant: "outlined",
|
|
361
|
-
onClick: l,
|
|
362
|
-
sx: {
|
|
363
|
-
mt: k.md,
|
|
364
|
-
px: k.lg,
|
|
365
|
-
py: k.sm,
|
|
366
|
-
fontFamily: v.secondary,
|
|
367
|
-
fontWeight: 600,
|
|
368
|
-
fontSize: h ? "0.875rem" : "1rem",
|
|
369
|
-
textTransform: "uppercase",
|
|
370
|
-
borderRadius: m.md,
|
|
371
|
-
borderColor: S,
|
|
372
|
-
color: n,
|
|
373
|
-
minWidth: h ? "150px" : "180px",
|
|
374
|
-
"&:hover": {
|
|
375
|
-
borderColor: r,
|
|
376
|
-
bgcolor: "transparent",
|
|
377
|
-
color: r
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
children: "Reset Game"
|
|
381
|
-
}
|
|
382
|
-
)
|
|
383
|
-
]
|
|
384
|
-
}
|
|
385
|
-
);
|
|
386
|
-
}, Ft = ({
|
|
387
|
-
primaryColor: e,
|
|
388
|
-
isDark: y,
|
|
389
|
-
animationPrefix: o = "casino"
|
|
390
|
-
}) => {
|
|
391
|
-
const n = Q(), r = it(e, y), f = Mt(y), i = (a) => `${o}${a}`, s = `${o}-bg-pattern`;
|
|
392
|
-
return /* @__PURE__ */ w(
|
|
393
|
-
d,
|
|
394
|
-
{
|
|
395
|
-
sx: {
|
|
396
|
-
position: "absolute",
|
|
397
|
-
inset: 0,
|
|
398
|
-
overflow: "hidden",
|
|
399
|
-
pointerEvents: "none",
|
|
400
|
-
zIndex: 0
|
|
401
|
-
},
|
|
402
|
-
children: [
|
|
403
|
-
/* @__PURE__ */ w(
|
|
404
|
-
"svg",
|
|
405
|
-
{
|
|
406
|
-
width: "100%",
|
|
407
|
-
height: "100%",
|
|
408
|
-
opacity: f,
|
|
409
|
-
style: { position: "absolute", inset: 0 },
|
|
410
|
-
children: [
|
|
411
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ w(
|
|
412
|
-
"pattern",
|
|
413
|
-
{
|
|
414
|
-
id: s,
|
|
415
|
-
x: "0",
|
|
416
|
-
y: "0",
|
|
417
|
-
width: "60",
|
|
418
|
-
height: "60",
|
|
419
|
-
patternUnits: "userSpaceOnUse",
|
|
420
|
-
children: [
|
|
421
|
-
/* @__PURE__ */ t(
|
|
422
|
-
"path",
|
|
423
|
-
{
|
|
424
|
-
d: "M 30 10 L 38 30 L 30 50 L 22 30 Z",
|
|
425
|
-
fill: "none",
|
|
426
|
-
stroke: e,
|
|
427
|
-
strokeWidth: "0.5",
|
|
428
|
-
opacity: "0.6"
|
|
429
|
-
}
|
|
430
|
-
),
|
|
431
|
-
/* @__PURE__ */ t(
|
|
432
|
-
"circle",
|
|
433
|
-
{
|
|
434
|
-
cx: "5",
|
|
435
|
-
cy: "5",
|
|
436
|
-
r: "1.5",
|
|
437
|
-
fill: e,
|
|
438
|
-
opacity: "0.4"
|
|
439
|
-
}
|
|
440
|
-
),
|
|
441
|
-
/* @__PURE__ */ t(
|
|
442
|
-
"circle",
|
|
443
|
-
{
|
|
444
|
-
cx: "55",
|
|
445
|
-
cy: "5",
|
|
446
|
-
r: "1.5",
|
|
447
|
-
fill: e,
|
|
448
|
-
opacity: "0.4"
|
|
449
|
-
}
|
|
450
|
-
),
|
|
451
|
-
/* @__PURE__ */ t(
|
|
452
|
-
"circle",
|
|
453
|
-
{
|
|
454
|
-
cx: "5",
|
|
455
|
-
cy: "55",
|
|
456
|
-
r: "1.5",
|
|
457
|
-
fill: e,
|
|
458
|
-
opacity: "0.4"
|
|
459
|
-
}
|
|
460
|
-
),
|
|
461
|
-
/* @__PURE__ */ t(
|
|
462
|
-
"circle",
|
|
463
|
-
{
|
|
464
|
-
cx: "55",
|
|
465
|
-
cy: "55",
|
|
466
|
-
r: "1.5",
|
|
467
|
-
fill: e,
|
|
468
|
-
opacity: "0.4"
|
|
469
|
-
}
|
|
470
|
-
)
|
|
471
|
-
]
|
|
472
|
-
}
|
|
473
|
-
) }),
|
|
474
|
-
/* @__PURE__ */ t("rect", { width: "100%", height: "100%", fill: `url(#${s})` })
|
|
475
|
-
]
|
|
476
|
-
}
|
|
477
|
-
),
|
|
478
|
-
/* @__PURE__ */ t(
|
|
479
|
-
d,
|
|
480
|
-
{
|
|
481
|
-
sx: {
|
|
482
|
-
position: "absolute",
|
|
483
|
-
top: "50%",
|
|
484
|
-
left: "50%",
|
|
485
|
-
width: n ? "300px" : "500px",
|
|
486
|
-
height: n ? "300px" : "500px",
|
|
487
|
-
transform: "translate(-50%, -50%)",
|
|
488
|
-
background: `conic-gradient(
|
|
489
|
-
from 0deg,
|
|
490
|
-
transparent 0deg,
|
|
491
|
-
${r("06")} 10deg,
|
|
492
|
-
transparent 20deg,
|
|
493
|
-
transparent 60deg,
|
|
494
|
-
${r("04")} 70deg,
|
|
495
|
-
transparent 80deg,
|
|
496
|
-
transparent 120deg,
|
|
497
|
-
${r("06")} 130deg,
|
|
498
|
-
transparent 140deg,
|
|
499
|
-
transparent 180deg,
|
|
500
|
-
${r("04")} 190deg,
|
|
501
|
-
transparent 200deg,
|
|
502
|
-
transparent 240deg,
|
|
503
|
-
${r("06")} 250deg,
|
|
504
|
-
transparent 260deg,
|
|
505
|
-
transparent 300deg,
|
|
506
|
-
${r("04")} 310deg,
|
|
507
|
-
transparent 320deg,
|
|
508
|
-
transparent 360deg
|
|
509
|
-
)`,
|
|
510
|
-
borderRadius: "50%",
|
|
511
|
-
animation: `${i("Spotlight")} 20s linear infinite`,
|
|
512
|
-
[`@keyframes ${i("Spotlight")}`]: {
|
|
513
|
-
"0%": { transform: "translate(-50%, -50%) rotate(0deg)" },
|
|
514
|
-
"100%": {
|
|
515
|
-
transform: "translate(-50%, -50%) rotate(360deg)"
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
),
|
|
521
|
-
Array.from({ length: n ? 8 : 14 }).map((a, l) => {
|
|
522
|
-
const p = 10 + (l * 13 + 7) % 30, x = (l * 17 + 23) % 90 + 5, h = 8 + l * 3 % 7, c = l * 1.3 % 8;
|
|
523
|
-
return /* @__PURE__ */ t(
|
|
524
|
-
d,
|
|
525
|
-
{
|
|
526
|
-
sx: {
|
|
527
|
-
position: "absolute",
|
|
528
|
-
width: `${p}px`,
|
|
529
|
-
height: `${p}px`,
|
|
530
|
-
borderRadius: "50%",
|
|
531
|
-
background: `radial-gradient(circle at 30% 30%, ${r("18")}, ${r("08")})`,
|
|
532
|
-
border: `1px solid ${r("12")}`,
|
|
533
|
-
bottom: "-40px",
|
|
534
|
-
left: `${x}%`,
|
|
535
|
-
animation: `${i("BubbleRise")} ${h}s ease-in infinite`,
|
|
536
|
-
animationDelay: `${c}s`,
|
|
537
|
-
[`@keyframes ${i("BubbleRise")}`]: {
|
|
538
|
-
"0%": {
|
|
539
|
-
transform: "translateY(0) scale(1)",
|
|
540
|
-
opacity: 0
|
|
541
|
-
},
|
|
542
|
-
"10%": { opacity: 0.6 },
|
|
543
|
-
"90%": { opacity: 0.3 },
|
|
544
|
-
"100%": {
|
|
545
|
-
transform: `translateY(-110vh) scale(${0.6 + l % 3 * 0.2})`,
|
|
546
|
-
opacity: 0
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
},
|
|
551
|
-
`bubble-${l}`
|
|
552
|
-
);
|
|
553
|
-
}),
|
|
554
|
-
Array.from({ length: n ? 3 : 5 }).map((a, l) => {
|
|
555
|
-
const p = n ? 12 + l % 3 * 4 : 16 + l % 3 * 6, x = 8 + (l * 19 + 11) % 84, h = 10 + (l * 23 + 7) % 75, c = 6 + l % 4 * 2;
|
|
556
|
-
return /* @__PURE__ */ t(
|
|
557
|
-
d,
|
|
558
|
-
{
|
|
559
|
-
sx: {
|
|
560
|
-
position: "absolute",
|
|
561
|
-
width: `${p}px`,
|
|
562
|
-
height: `${p}px`,
|
|
563
|
-
top: `${h}%`,
|
|
564
|
-
left: `${x}%`,
|
|
565
|
-
perspective: "100px",
|
|
566
|
-
animation: `${i("DiamondFloat")} ${c + 2}s ease-in-out infinite`,
|
|
567
|
-
animationDelay: `${l * 1.5}s`,
|
|
568
|
-
[`@keyframes ${i("DiamondFloat")}`]: {
|
|
569
|
-
"0%, 100%": { transform: "translateY(0px)" },
|
|
570
|
-
"50%": {
|
|
571
|
-
transform: `translateY(${-6 - l % 3 * 4}px)`
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
children: /* @__PURE__ */ t(
|
|
576
|
-
d,
|
|
577
|
-
{
|
|
578
|
-
sx: {
|
|
579
|
-
width: "100%",
|
|
580
|
-
height: "100%",
|
|
581
|
-
transform: "rotate(45deg)",
|
|
582
|
-
background: `linear-gradient(135deg, ${r("20")}, ${r("08")})`,
|
|
583
|
-
border: `1px solid ${r("25")}`,
|
|
584
|
-
boxShadow: `0 0 ${p / 2}px ${r("15")}`,
|
|
585
|
-
animation: `${i("DiamondSpin")} ${c}s linear infinite`,
|
|
586
|
-
transformStyle: "preserve-3d",
|
|
587
|
-
[`@keyframes ${i("DiamondSpin")}`]: {
|
|
588
|
-
"0%": { transform: "rotate(45deg) rotateY(0deg)" },
|
|
589
|
-
"100%": {
|
|
590
|
-
transform: "rotate(45deg) rotateY(360deg)"
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
)
|
|
596
|
-
},
|
|
597
|
-
`diamond-${l}`
|
|
598
|
-
);
|
|
599
|
-
}),
|
|
600
|
-
Array.from({ length: n ? 2 : 4 }).map((a, l) => {
|
|
601
|
-
const p = n ? 18 + l % 2 * 6 : 24 + l % 2 * 8, x = 5 + (l * 23 + 31) % 85, h = 15 + (l * 29 + 13) % 65, c = 5 + l % 3 * 2;
|
|
602
|
-
return /* @__PURE__ */ t(
|
|
603
|
-
d,
|
|
604
|
-
{
|
|
605
|
-
sx: {
|
|
606
|
-
position: "absolute",
|
|
607
|
-
top: `${h}%`,
|
|
608
|
-
left: `${x}%`,
|
|
609
|
-
width: `${p}px`,
|
|
610
|
-
height: `${p}px`,
|
|
611
|
-
perspective: "200px",
|
|
612
|
-
animation: `${i("CoinBob")} ${c + 3}s ease-in-out infinite`,
|
|
613
|
-
animationDelay: `${l * 2.2}s`,
|
|
614
|
-
[`@keyframes ${i("CoinBob")}`]: {
|
|
615
|
-
"0%, 100%": { transform: "translateY(0px)" },
|
|
616
|
-
"50%": {
|
|
617
|
-
transform: `translateY(${-8 - l % 2 * 6}px)`
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
},
|
|
621
|
-
children: /* @__PURE__ */ t(
|
|
622
|
-
d,
|
|
623
|
-
{
|
|
624
|
-
sx: {
|
|
625
|
-
width: "100%",
|
|
626
|
-
height: "100%",
|
|
627
|
-
borderRadius: "50%",
|
|
628
|
-
background: `linear-gradient(135deg, ${r("25")} 0%, ${r("10")} 50%, ${r("30")} 100%)`,
|
|
629
|
-
border: `2px solid ${r("20")}`,
|
|
630
|
-
boxShadow: `
|
|
631
|
-
inset 0 2px 4px ${r("15")},
|
|
632
|
-
inset 0 -2px 4px rgba(0,0,0,0.1),
|
|
633
|
-
0 0 ${p / 2}px ${r("10")}
|
|
634
|
-
`,
|
|
635
|
-
animation: `${i("CoinFlip")} ${c}s ease-in-out infinite`,
|
|
636
|
-
transformStyle: "preserve-3d",
|
|
637
|
-
[`@keyframes ${i("CoinFlip")}`]: {
|
|
638
|
-
"0%": { transform: "rotateY(0deg) rotateX(15deg)" },
|
|
639
|
-
"25%": { transform: "rotateY(90deg) rotateX(15deg)" },
|
|
640
|
-
"50%": { transform: "rotateY(180deg) rotateX(15deg)" },
|
|
641
|
-
"75%": { transform: "rotateY(270deg) rotateX(15deg)" },
|
|
642
|
-
"100%": {
|
|
643
|
-
transform: "rotateY(360deg) rotateX(15deg)"
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
children: /* @__PURE__ */ t(
|
|
648
|
-
d,
|
|
649
|
-
{
|
|
650
|
-
sx: {
|
|
651
|
-
position: "absolute",
|
|
652
|
-
top: "50%",
|
|
653
|
-
left: "50%",
|
|
654
|
-
transform: "translate(-50%, -50%)",
|
|
655
|
-
width: "60%",
|
|
656
|
-
height: "60%",
|
|
657
|
-
borderRadius: "50%",
|
|
658
|
-
border: `1px solid ${r("20")}`
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
)
|
|
662
|
-
}
|
|
663
|
-
)
|
|
664
|
-
},
|
|
665
|
-
`coin-${l}`
|
|
666
|
-
);
|
|
667
|
-
}),
|
|
668
|
-
["♠", "♥", "♦", "♣"].map((a, l) => {
|
|
669
|
-
const p = 10 + l * 22, x = 20 + l * 17 % 55, h = 7 + l % 3 * 2, c = a === "♥" || a === "♦";
|
|
670
|
-
return /* @__PURE__ */ t(
|
|
671
|
-
D,
|
|
672
|
-
{
|
|
673
|
-
sx: {
|
|
674
|
-
position: "absolute",
|
|
675
|
-
top: `${x}%`,
|
|
676
|
-
left: `${p}%`,
|
|
677
|
-
fontSize: n ? "16px" : "22px",
|
|
678
|
-
color: r(c ? "15" : "12"),
|
|
679
|
-
animation: `${i("SuitFloat")} ${h}s ease-in-out infinite, ${i("SuitSpin")} ${h * 2}s linear infinite`,
|
|
680
|
-
animationDelay: `${l * 1.8}s`,
|
|
681
|
-
textShadow: `0 0 10px ${r("10")}`,
|
|
682
|
-
[`@keyframes ${i("SuitFloat")}`]: {
|
|
683
|
-
"0%, 100%": {
|
|
684
|
-
transform: "translateY(0px) scale(1)",
|
|
685
|
-
opacity: 0.4
|
|
686
|
-
},
|
|
687
|
-
"50%": {
|
|
688
|
-
transform: `translateY(${-10 - l * 3}px) scale(1.15)`,
|
|
689
|
-
opacity: 0.7
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
[`@keyframes ${i("SuitSpin")}`]: {
|
|
693
|
-
"0%": { transform: "rotateY(0deg)" },
|
|
694
|
-
"100%": { transform: "rotateY(360deg)" }
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
children: a
|
|
698
|
-
},
|
|
699
|
-
`suit-${l}`
|
|
700
|
-
);
|
|
701
|
-
}),
|
|
702
|
-
Array.from({ length: n ? 10 : 18 }).map((a, l) => {
|
|
703
|
-
const p = 2 + l % 3, x = (l * 13 + 5) % 95 + 2, h = (l * 11 + 7) % 90 + 5, c = 2 + l % 4 * 0.8;
|
|
704
|
-
return /* @__PURE__ */ t(
|
|
705
|
-
d,
|
|
706
|
-
{
|
|
707
|
-
sx: {
|
|
708
|
-
position: "absolute",
|
|
709
|
-
width: `${p}px`,
|
|
710
|
-
height: `${p}px`,
|
|
711
|
-
top: `${h}%`,
|
|
712
|
-
left: `${x}%`,
|
|
713
|
-
borderRadius: "50%",
|
|
714
|
-
background: e,
|
|
715
|
-
animation: `${i("Twinkle")} ${c}s ease-in-out infinite`,
|
|
716
|
-
animationDelay: `${l * 0.7 % 5}s`,
|
|
717
|
-
[`@keyframes ${i("Twinkle")}`]: {
|
|
718
|
-
"0%, 100%": {
|
|
719
|
-
opacity: 0,
|
|
720
|
-
transform: "scale(0.5)",
|
|
721
|
-
boxShadow: `0 0 0px ${e}00`
|
|
722
|
-
},
|
|
723
|
-
"50%": {
|
|
724
|
-
opacity: 0.6,
|
|
725
|
-
transform: "scale(1.2)",
|
|
726
|
-
boxShadow: `0 0 ${p * 3}px ${e}40`
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
`star-${l}`
|
|
732
|
-
);
|
|
733
|
-
}),
|
|
734
|
-
[0, 1, 2].map((a) => /* @__PURE__ */ t(
|
|
735
|
-
d,
|
|
736
|
-
{
|
|
737
|
-
sx: {
|
|
738
|
-
position: "absolute",
|
|
739
|
-
top: "50%",
|
|
740
|
-
left: "50%",
|
|
741
|
-
width: n ? `${200 + a * 80}px` : `${300 + a * 120}px`,
|
|
742
|
-
height: n ? `${200 + a * 80}px` : `${300 + a * 120}px`,
|
|
743
|
-
borderRadius: "50%",
|
|
744
|
-
border: `1px solid ${r((8 - a * 2).toString(16).padStart(2, "0"))}`,
|
|
745
|
-
transform: "translate(-50%, -50%)",
|
|
746
|
-
animation: `${i("GlowPulse")} ${4 + a}s ease-in-out infinite`,
|
|
747
|
-
animationDelay: `${a * 1.3}s`,
|
|
748
|
-
[`@keyframes ${i("GlowPulse")}`]: {
|
|
749
|
-
"0%, 100%": {
|
|
750
|
-
opacity: 0.3,
|
|
751
|
-
transform: "translate(-50%, -50%) scale(1)"
|
|
752
|
-
},
|
|
753
|
-
"50%": {
|
|
754
|
-
opacity: 0.7,
|
|
755
|
-
transform: "translate(-50%, -50%) scale(1.05)"
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
},
|
|
760
|
-
`glow-ring-${a}`
|
|
761
|
-
)),
|
|
762
|
-
/* @__PURE__ */ t(
|
|
763
|
-
d,
|
|
764
|
-
{
|
|
765
|
-
sx: {
|
|
766
|
-
position: "absolute",
|
|
767
|
-
inset: 0,
|
|
768
|
-
borderRadius: "inherit",
|
|
769
|
-
padding: "1px",
|
|
770
|
-
background: `linear-gradient(
|
|
771
|
-
var(--border-angle, 0deg),
|
|
772
|
-
transparent 40%,
|
|
773
|
-
${r("20")} 50%,
|
|
774
|
-
transparent 60%
|
|
775
|
-
)`,
|
|
776
|
-
mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
|
|
777
|
-
maskComposite: "exclude",
|
|
778
|
-
WebkitMaskComposite: "xor",
|
|
779
|
-
animation: `${i("BorderSweep")} 6s linear infinite`,
|
|
780
|
-
[`@keyframes ${i("BorderSweep")}`]: {
|
|
781
|
-
"0%": { "--border-angle": "0deg" },
|
|
782
|
-
"100%": { "--border-angle": "360deg" }
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
)
|
|
787
|
-
]
|
|
788
|
-
}
|
|
789
|
-
);
|
|
790
|
-
}, Et = ({
|
|
791
|
-
active: e,
|
|
792
|
-
primaryColor: y,
|
|
793
|
-
velocityMultiplier: o,
|
|
794
|
-
gravity: n,
|
|
795
|
-
onComplete: r
|
|
796
|
-
}) => {
|
|
797
|
-
const [f, i] = Y([]), s = At(null), a = At(!1), l = Q(), p = tt();
|
|
798
|
-
return ft(() => {
|
|
799
|
-
if (e && !a.current) {
|
|
800
|
-
a.current = !0;
|
|
801
|
-
const x = l ? 50 : 100, h = [
|
|
802
|
-
y,
|
|
803
|
-
p.palette.warning.plainColor,
|
|
804
|
-
p.palette.success.plainColor,
|
|
805
|
-
"#FFD700",
|
|
806
|
-
"#FF69B4",
|
|
807
|
-
"#00CED1"
|
|
808
|
-
], c = [];
|
|
809
|
-
for (let m = 0; m < x; m++)
|
|
810
|
-
c.push({
|
|
811
|
-
id: m,
|
|
812
|
-
x: 50,
|
|
813
|
-
y: 50,
|
|
814
|
-
vx: (Math.random() - 0.5) * 10,
|
|
815
|
-
vy: (Math.random() - 0.5) * 10 - 5,
|
|
816
|
-
color: h[Math.floor(Math.random() * h.length)],
|
|
817
|
-
size: Math.random() * 8 + 4,
|
|
818
|
-
rotation: Math.random() * 360,
|
|
819
|
-
rotationSpeed: (Math.random() - 0.5) * 12
|
|
820
|
-
});
|
|
821
|
-
i(c);
|
|
822
|
-
}
|
|
823
|
-
e || (a.current = !1);
|
|
824
|
-
}, [e]), ft(() => {
|
|
825
|
-
if (f.length === 0) return;
|
|
826
|
-
const x = () => {
|
|
827
|
-
i((h) => {
|
|
828
|
-
const c = h.map((m) => ({
|
|
829
|
-
...m,
|
|
830
|
-
x: m.x + m.vx * 0.6 * o,
|
|
831
|
-
y: m.y + m.vy * 0.6 * o,
|
|
832
|
-
vy: m.vy + n,
|
|
833
|
-
rotation: m.rotation + m.rotationSpeed
|
|
834
|
-
})).filter((m) => m.y < 150);
|
|
835
|
-
return c.length === 0 ? (r(), []) : c;
|
|
836
|
-
}), s.current = requestAnimationFrame(x);
|
|
837
|
-
};
|
|
838
|
-
return s.current = requestAnimationFrame(x), () => {
|
|
839
|
-
s.current && cancelAnimationFrame(s.current);
|
|
840
|
-
};
|
|
841
|
-
}, [f.length]), f.length === 0 ? null : /* @__PURE__ */ t(
|
|
842
|
-
d,
|
|
843
|
-
{
|
|
844
|
-
sx: {
|
|
845
|
-
position: "absolute",
|
|
846
|
-
top: 0,
|
|
847
|
-
left: 0,
|
|
848
|
-
width: "100%",
|
|
849
|
-
height: "100%",
|
|
850
|
-
pointerEvents: "none",
|
|
851
|
-
zIndex: 1e3
|
|
852
|
-
},
|
|
853
|
-
children: f.map((x) => /* @__PURE__ */ t(
|
|
854
|
-
d,
|
|
855
|
-
{
|
|
856
|
-
sx: {
|
|
857
|
-
position: "absolute",
|
|
858
|
-
left: `${x.x}%`,
|
|
859
|
-
top: `${x.y}%`,
|
|
860
|
-
width: `${x.size}px`,
|
|
861
|
-
height: `${x.size}px`,
|
|
862
|
-
backgroundColor: x.color,
|
|
863
|
-
transform: `rotate(${x.rotation}deg)`,
|
|
864
|
-
borderRadius: Math.random() > 0.5 ? "50%" : "0%",
|
|
865
|
-
opacity: 0.9
|
|
866
|
-
}
|
|
867
|
-
},
|
|
868
|
-
x.id
|
|
869
|
-
))
|
|
870
|
-
}
|
|
871
|
-
);
|
|
872
|
-
}, Ot = ({
|
|
873
|
-
segmentCount: e,
|
|
874
|
-
decorations: y,
|
|
875
|
-
primaryColor: o
|
|
876
|
-
}) => {
|
|
877
|
-
const n = tt(), r = e * 3;
|
|
878
|
-
return /* @__PURE__ */ w(
|
|
879
|
-
d,
|
|
880
|
-
{
|
|
881
|
-
component: "svg",
|
|
882
|
-
viewBox: "0 0 400 400",
|
|
883
|
-
sx: {
|
|
884
|
-
position: "absolute",
|
|
885
|
-
width: "100%",
|
|
886
|
-
height: "100%",
|
|
887
|
-
pointerEvents: "none",
|
|
888
|
-
zIndex: 2
|
|
889
|
-
},
|
|
890
|
-
children: [
|
|
891
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ w(
|
|
892
|
-
"linearGradient",
|
|
893
|
-
{
|
|
894
|
-
id: "wheelRingGradient",
|
|
895
|
-
x1: "0%",
|
|
896
|
-
y1: "0%",
|
|
897
|
-
x2: "100%",
|
|
898
|
-
y2: "100%",
|
|
899
|
-
children: [
|
|
900
|
-
/* @__PURE__ */ t(
|
|
901
|
-
"stop",
|
|
902
|
-
{
|
|
903
|
-
offset: "0%",
|
|
904
|
-
stopColor: y ? o : n.palette.warning.softBg
|
|
905
|
-
}
|
|
906
|
-
),
|
|
907
|
-
/* @__PURE__ */ t(
|
|
908
|
-
"stop",
|
|
909
|
-
{
|
|
910
|
-
offset: "50%",
|
|
911
|
-
stopColor: y ? o : n.palette.warning.plainColor
|
|
912
|
-
}
|
|
913
|
-
),
|
|
914
|
-
/* @__PURE__ */ t(
|
|
915
|
-
"stop",
|
|
916
|
-
{
|
|
917
|
-
offset: "100%",
|
|
918
|
-
stopColor: y ? o : n.palette.warning.softBg
|
|
919
|
-
}
|
|
920
|
-
)
|
|
921
|
-
]
|
|
922
|
-
}
|
|
923
|
-
) }),
|
|
924
|
-
/* @__PURE__ */ t(
|
|
925
|
-
"circle",
|
|
926
|
-
{
|
|
927
|
-
cx: "200",
|
|
928
|
-
cy: "200",
|
|
929
|
-
r: "195",
|
|
930
|
-
fill: "none",
|
|
931
|
-
stroke: "url(#wheelRingGradient)",
|
|
932
|
-
strokeWidth: "10"
|
|
933
|
-
}
|
|
934
|
-
),
|
|
935
|
-
Array.from({ length: r }).map((f, i) => {
|
|
936
|
-
const a = i * 360 / r * Math.PI / 180, l = 200 + 190 * Math.cos(a - Math.PI / 2), p = 200 + 190 * Math.sin(a - Math.PI / 2);
|
|
937
|
-
return /* @__PURE__ */ t(
|
|
938
|
-
"circle",
|
|
939
|
-
{
|
|
940
|
-
cx: l,
|
|
941
|
-
cy: p,
|
|
942
|
-
r: y ? "4" : "3",
|
|
943
|
-
fill: y ? i % 2 === 0 ? o : "#FFD700" : n.surface,
|
|
944
|
-
opacity: "0.9",
|
|
945
|
-
children: y && /* @__PURE__ */ t(
|
|
946
|
-
"animate",
|
|
947
|
-
{
|
|
948
|
-
attributeName: "opacity",
|
|
949
|
-
values: i % 2 === 0 ? "0.4;1;0.4" : "1;0.4;1",
|
|
950
|
-
dur: "1.5s",
|
|
951
|
-
repeatCount: "indefinite"
|
|
952
|
-
}
|
|
953
|
-
)
|
|
954
|
-
},
|
|
955
|
-
`dot-${i}`
|
|
956
|
-
);
|
|
957
|
-
})
|
|
958
|
-
]
|
|
959
|
-
}
|
|
960
|
-
);
|
|
961
|
-
}, Dt = ({
|
|
962
|
-
ref: e,
|
|
963
|
-
segments: y,
|
|
964
|
-
secondaryColor: o,
|
|
965
|
-
primaryColor: n,
|
|
966
|
-
onPrimaryColor: r,
|
|
967
|
-
decorations: f,
|
|
968
|
-
isStandard: i,
|
|
969
|
-
rotation: s,
|
|
970
|
-
isSpinning: a,
|
|
971
|
-
spinDuration: l
|
|
972
|
-
}) => {
|
|
973
|
-
const p = tt(), x = rt(), h = Q();
|
|
974
|
-
return /* @__PURE__ */ w(
|
|
975
|
-
d,
|
|
976
|
-
{
|
|
977
|
-
ref: e,
|
|
978
|
-
component: "svg",
|
|
979
|
-
viewBox: "0 0 400 400",
|
|
980
|
-
sx: {
|
|
981
|
-
width: "100%",
|
|
982
|
-
height: "100%",
|
|
983
|
-
transform: `rotate(${s}deg)`,
|
|
984
|
-
transition: a ? `transform ${l}ms cubic-bezier(0.17, 0.67, 0.12, 0.99)` : "none",
|
|
985
|
-
filter: f ? "drop-shadow(0 6px 20px rgba(0,0,0,0.25))" : "drop-shadow(0 4px 12px rgba(0,0,0,0.15))",
|
|
986
|
-
pointerEvents: "none",
|
|
987
|
-
zIndex: 1
|
|
988
|
-
},
|
|
989
|
-
children: [
|
|
990
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ w("radialGradient", { id: "wheelCenterGradient", children: [
|
|
991
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: p.surface }),
|
|
992
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: p.surfaceVariant })
|
|
993
|
-
] }) }),
|
|
994
|
-
y.map((c, m) => {
|
|
995
|
-
const v = 360 / y.length, k = m * v - 90, g = k + v, S = k * Math.PI / 180, L = g * Math.PI / 180, z = 200 + 190 * Math.cos(S), R = 200 + 190 * Math.sin(S), u = 200 + 190 * Math.cos(L), I = 200 + 190 * Math.sin(L), T = v > 180 ? 1 : 0, W = `
|
|
996
|
-
M 200 200
|
|
997
|
-
L ${z} ${R}
|
|
998
|
-
A 190 190 0 ${T} 1 ${u} ${I}
|
|
999
|
-
Z
|
|
1000
|
-
`, A = c.color || (c.isWinning ? n : o), b = k + v / 2, $ = b * Math.PI / 180, F = 200 + 120 * Math.cos($), B = 200 + 120 * Math.sin($), _ = `wheel-segment-gradient-${m}`;
|
|
1001
|
-
return /* @__PURE__ */ w("g", { children: [
|
|
1002
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ w(
|
|
1003
|
-
"linearGradient",
|
|
1004
|
-
{
|
|
1005
|
-
id: _,
|
|
1006
|
-
x1: "0%",
|
|
1007
|
-
y1: "0%",
|
|
1008
|
-
x2: "100%",
|
|
1009
|
-
y2: "100%",
|
|
1010
|
-
children: [
|
|
1011
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: A, stopOpacity: "1" }),
|
|
1012
|
-
/* @__PURE__ */ t(
|
|
1013
|
-
"stop",
|
|
1014
|
-
{
|
|
1015
|
-
offset: "50%",
|
|
1016
|
-
stopColor: A,
|
|
1017
|
-
stopOpacity: f ? "0.92" : "0.95"
|
|
1018
|
-
}
|
|
1019
|
-
),
|
|
1020
|
-
/* @__PURE__ */ t(
|
|
1021
|
-
"stop",
|
|
1022
|
-
{
|
|
1023
|
-
offset: "100%",
|
|
1024
|
-
stopColor: A,
|
|
1025
|
-
stopOpacity: f ? "0.8" : "0.85"
|
|
1026
|
-
}
|
|
1027
|
-
)
|
|
1028
|
-
]
|
|
1029
|
-
}
|
|
1030
|
-
) }),
|
|
1031
|
-
/* @__PURE__ */ t(
|
|
1032
|
-
"path",
|
|
1033
|
-
{
|
|
1034
|
-
d: W,
|
|
1035
|
-
fill: `url(#${_})`,
|
|
1036
|
-
stroke: p.surface,
|
|
1037
|
-
strokeWidth: f ? "2" : "3"
|
|
1038
|
-
}
|
|
1039
|
-
),
|
|
1040
|
-
f && /* @__PURE__ */ t(
|
|
1041
|
-
"path",
|
|
1042
|
-
{
|
|
1043
|
-
d: W,
|
|
1044
|
-
fill: "none",
|
|
1045
|
-
stroke: "rgba(255,255,255,0.08)",
|
|
1046
|
-
strokeWidth: "1"
|
|
1047
|
-
}
|
|
1048
|
-
),
|
|
1049
|
-
/* @__PURE__ */ t("g", { transform: `rotate(${b + 90}, ${F}, ${B})`, children: (() => {
|
|
1050
|
-
const j = c.label.split(" "), N = h ? 14 : 16, X = (j.length - 1) * N, M = B - X / 2;
|
|
1051
|
-
return /* @__PURE__ */ t(q, { children: j.map((G, E) => {
|
|
1052
|
-
const O = M + E * N;
|
|
1053
|
-
return /* @__PURE__ */ w("g", { children: [
|
|
1054
|
-
/* @__PURE__ */ t(
|
|
1055
|
-
"text",
|
|
1056
|
-
{
|
|
1057
|
-
x: F,
|
|
1058
|
-
y: O,
|
|
1059
|
-
fill: "none",
|
|
1060
|
-
stroke: p.surface,
|
|
1061
|
-
strokeWidth: h ? "4" : "5",
|
|
1062
|
-
strokeLinejoin: "round",
|
|
1063
|
-
strokeLinecap: "round",
|
|
1064
|
-
fontSize: "13",
|
|
1065
|
-
fontWeight: "800",
|
|
1066
|
-
fontFamily: x.primary,
|
|
1067
|
-
textAnchor: "middle",
|
|
1068
|
-
dominantBaseline: "middle",
|
|
1069
|
-
children: G
|
|
1070
|
-
}
|
|
1071
|
-
),
|
|
1072
|
-
/* @__PURE__ */ t(
|
|
1073
|
-
"text",
|
|
1074
|
-
{
|
|
1075
|
-
x: F,
|
|
1076
|
-
y: O,
|
|
1077
|
-
fill: p.textPrimary,
|
|
1078
|
-
fontSize: "13",
|
|
1079
|
-
fontWeight: "800",
|
|
1080
|
-
fontFamily: x.primary,
|
|
1081
|
-
textAnchor: "middle",
|
|
1082
|
-
dominantBaseline: "middle",
|
|
1083
|
-
style: {
|
|
1084
|
-
filter: "drop-shadow(0 1px 2px rgba(0,0,0,0.3))"
|
|
1085
|
-
},
|
|
1086
|
-
children: G
|
|
1087
|
-
}
|
|
1088
|
-
)
|
|
1089
|
-
] }, `word-${E}`);
|
|
1090
|
-
}) });
|
|
1091
|
-
})() })
|
|
1092
|
-
] }, c.id);
|
|
1093
|
-
}),
|
|
1094
|
-
/* @__PURE__ */ t(
|
|
1095
|
-
"circle",
|
|
1096
|
-
{
|
|
1097
|
-
cx: "200",
|
|
1098
|
-
cy: "200",
|
|
1099
|
-
r: "45",
|
|
1100
|
-
fill: p.textPrimary,
|
|
1101
|
-
opacity: "0.2"
|
|
1102
|
-
}
|
|
1103
|
-
),
|
|
1104
|
-
/* @__PURE__ */ t("circle", { cx: "200", cy: "200", r: "42", fill: "url(#wheelCenterGradient)" }),
|
|
1105
|
-
/* @__PURE__ */ t(
|
|
1106
|
-
"circle",
|
|
1107
|
-
{
|
|
1108
|
-
cx: "200",
|
|
1109
|
-
cy: "200",
|
|
1110
|
-
r: "36",
|
|
1111
|
-
fill: i ? n : r
|
|
1112
|
-
}
|
|
1113
|
-
)
|
|
1114
|
-
]
|
|
1115
|
-
}
|
|
1116
|
-
);
|
|
1117
|
-
};
|
|
1118
|
-
Dt.displayName = "WheelSvg";
|
|
1119
|
-
const jt = ({
|
|
1120
|
-
primaryColor: e,
|
|
1121
|
-
dangerColor: y,
|
|
1122
|
-
decorations: o
|
|
1123
|
-
}) => /* @__PURE__ */ w(
|
|
1124
|
-
d,
|
|
1125
|
-
{
|
|
1126
|
-
sx: {
|
|
1127
|
-
position: "absolute",
|
|
1128
|
-
top: "-15px",
|
|
1129
|
-
left: "50%",
|
|
1130
|
-
transform: "translateX(-50%)",
|
|
1131
|
-
zIndex: 10,
|
|
1132
|
-
...o && {
|
|
1133
|
-
animation: "wheelPointerPulse 2s ease-in-out infinite",
|
|
1134
|
-
"@keyframes wheelPointerPulse": {
|
|
1135
|
-
"0%, 100%": {
|
|
1136
|
-
filter: `drop-shadow(0 0 4px ${e}60)`
|
|
1137
|
-
},
|
|
1138
|
-
"50%": {
|
|
1139
|
-
filter: `drop-shadow(0 0 12px ${e}A0) drop-shadow(0 0 20px ${e}40)`
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
},
|
|
1144
|
-
children: [
|
|
1145
|
-
/* @__PURE__ */ t(
|
|
1146
|
-
d,
|
|
1147
|
-
{
|
|
1148
|
-
sx: {
|
|
1149
|
-
position: "absolute",
|
|
1150
|
-
top: "3px",
|
|
1151
|
-
left: "50%",
|
|
1152
|
-
transform: "translateX(-50%)",
|
|
1153
|
-
width: "0",
|
|
1154
|
-
height: "0",
|
|
1155
|
-
borderLeft: "22px solid transparent",
|
|
1156
|
-
borderRight: "22px solid transparent",
|
|
1157
|
-
borderTop: "35px solid rgba(0,0,0,0.2)"
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
),
|
|
1161
|
-
/* @__PURE__ */ t(
|
|
1162
|
-
d,
|
|
1163
|
-
{
|
|
1164
|
-
sx: {
|
|
1165
|
-
position: "relative",
|
|
1166
|
-
width: "0",
|
|
1167
|
-
height: "0",
|
|
1168
|
-
borderLeft: "20px solid transparent",
|
|
1169
|
-
borderRight: "20px solid transparent",
|
|
1170
|
-
borderTop: `35px solid ${o ? e : y}`
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
),
|
|
1174
|
-
/* @__PURE__ */ t(
|
|
1175
|
-
d,
|
|
1176
|
-
{
|
|
1177
|
-
sx: {
|
|
1178
|
-
position: "absolute",
|
|
1179
|
-
top: "5px",
|
|
1180
|
-
left: "50%",
|
|
1181
|
-
transform: "translateX(-50%)",
|
|
1182
|
-
width: "0",
|
|
1183
|
-
height: "0",
|
|
1184
|
-
borderLeft: "8px solid transparent",
|
|
1185
|
-
borderRight: "8px solid transparent",
|
|
1186
|
-
borderTop: "12px solid rgba(255,255,255,0.4)"
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
)
|
|
1190
|
-
]
|
|
1191
|
-
}
|
|
1192
|
-
), Ht = ({
|
|
1193
|
-
infoPage: e,
|
|
1194
|
-
enableReset: y = !1,
|
|
1195
|
-
contentColor: o,
|
|
1196
|
-
primaryColor: n,
|
|
1197
|
-
secondaryColor: r,
|
|
1198
|
-
onPrimaryColor: f,
|
|
1199
|
-
dangerColor: i,
|
|
1200
|
-
brandingLogo: s,
|
|
1201
|
-
isDark: a = !1,
|
|
1202
|
-
forceMobile: l = !1
|
|
1203
|
-
}) => {
|
|
1204
|
-
var Z, P, V;
|
|
1205
|
-
const p = Q(), x = l ? !1 : gt(), h = ot(), c = rt(), m = dt(), v = JSON.parse(e.body), k = v.segments || [], g = e.labels || {}, S = v.mode || ((Z = v.config) == null ? void 0 : Z.mode) || "fair", L = ((P = v.config) == null ? void 0 : P.pace) || "normal", z = ((V = v.config) == null ? void 0 : V.decorations) ?? !1, R = it(n, a), u = !!(g.welcome || g.instructions || g.buttonLabel || g.disclaimer), {
|
|
1206
|
-
isSpinning: I,
|
|
1207
|
-
finalRotation: T,
|
|
1208
|
-
selectedSegment: W,
|
|
1209
|
-
showShakeAnimation: A,
|
|
1210
|
-
showResultScreen: b,
|
|
1211
|
-
showInlineResult: $,
|
|
1212
|
-
hasEntered: F,
|
|
1213
|
-
confettiActive: B,
|
|
1214
|
-
spinDuration: _,
|
|
1215
|
-
shakeAnimationDuration: j,
|
|
1216
|
-
confettiVelocityMultiplier: N,
|
|
1217
|
-
confettiGravity: X,
|
|
1218
|
-
handleSpin: M,
|
|
1219
|
-
handleReset: G,
|
|
1220
|
-
onConfettiComplete: E
|
|
1221
|
-
} = _t({ segments: k, mode: S, pace: L }), O = x ? "300px" : "260px", H = () => /* @__PURE__ */ w(
|
|
1222
|
-
d,
|
|
1223
|
-
{
|
|
1224
|
-
sx: {
|
|
1225
|
-
display: "flex",
|
|
1226
|
-
flexDirection: "column",
|
|
1227
|
-
gap: 0,
|
|
1228
|
-
alignItems: "center",
|
|
1229
|
-
textAlign: "center",
|
|
1230
|
-
width: "100%",
|
|
1231
|
-
zIndex: 1
|
|
1232
|
-
},
|
|
1233
|
-
children: [
|
|
1234
|
-
/* @__PURE__ */ w(q, { children: [
|
|
1235
|
-
/* @__PURE__ */ t(
|
|
1236
|
-
D,
|
|
1237
|
-
{
|
|
1238
|
-
level: "h2",
|
|
1239
|
-
sx: {
|
|
1240
|
-
fontFamily: c.primary,
|
|
1241
|
-
fontWeight: 700,
|
|
1242
|
-
fontSize: "1.25rem",
|
|
1243
|
-
color: o,
|
|
1244
|
-
lineHeight: 1.2,
|
|
1245
|
-
...z && {
|
|
1246
|
-
textShadow: `0 0 20px ${R("20")}, 0 0 40px ${R("10")}`
|
|
1247
|
-
}
|
|
1248
|
-
},
|
|
1249
|
-
children: e.title
|
|
1250
|
-
}
|
|
1251
|
-
),
|
|
1252
|
-
z && /* @__PURE__ */ w(
|
|
1253
|
-
d,
|
|
1254
|
-
{
|
|
1255
|
-
sx: {
|
|
1256
|
-
display: "flex",
|
|
1257
|
-
alignItems: "center",
|
|
1258
|
-
gap: "8px",
|
|
1259
|
-
mt: "4px"
|
|
1260
|
-
},
|
|
1261
|
-
children: [
|
|
1262
|
-
/* @__PURE__ */ t(
|
|
1263
|
-
d,
|
|
1264
|
-
{
|
|
1265
|
-
sx: {
|
|
1266
|
-
width: "40px",
|
|
1267
|
-
height: "1px",
|
|
1268
|
-
background: `linear-gradient(90deg, transparent, ${R("40")})`
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
),
|
|
1272
|
-
/* @__PURE__ */ t(
|
|
1273
|
-
d,
|
|
1274
|
-
{
|
|
1275
|
-
sx: {
|
|
1276
|
-
width: "6px",
|
|
1277
|
-
height: "6px",
|
|
1278
|
-
transform: "rotate(45deg)",
|
|
1279
|
-
background: R("50")
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
),
|
|
1283
|
-
/* @__PURE__ */ t(
|
|
1284
|
-
d,
|
|
1285
|
-
{
|
|
1286
|
-
sx: {
|
|
1287
|
-
width: "40px",
|
|
1288
|
-
height: "1px",
|
|
1289
|
-
background: `linear-gradient(90deg, ${R("40")}, transparent)`
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
)
|
|
1293
|
-
]
|
|
1294
|
-
}
|
|
1295
|
-
)
|
|
1296
|
-
] }),
|
|
1297
|
-
e.subtitle && /* @__PURE__ */ t(
|
|
1298
|
-
D,
|
|
1299
|
-
{
|
|
1300
|
-
level: "body-md",
|
|
1301
|
-
sx: {
|
|
1302
|
-
fontFamily: c.secondary,
|
|
1303
|
-
fontWeight: 400,
|
|
1304
|
-
fontSize: "0.875rem",
|
|
1305
|
-
color: o,
|
|
1306
|
-
opacity: 0.8
|
|
1307
|
-
},
|
|
1308
|
-
children: e.subtitle
|
|
1309
|
-
}
|
|
1310
|
-
)
|
|
1311
|
-
]
|
|
1312
|
-
}
|
|
1313
|
-
), K = () => /* @__PURE__ */ w(
|
|
1314
|
-
d,
|
|
1315
|
-
{
|
|
1316
|
-
onClick: M,
|
|
1317
|
-
sx: {
|
|
1318
|
-
position: "relative",
|
|
1319
|
-
width: "100%",
|
|
1320
|
-
maxWidth: O,
|
|
1321
|
-
aspectRatio: "1",
|
|
1322
|
-
display: "flex",
|
|
1323
|
-
alignItems: "center",
|
|
1324
|
-
justifyContent: "center",
|
|
1325
|
-
cursor: I || B || $ || !b && !$ && W !== null ? "default" : "pointer",
|
|
1326
|
-
userSelect: "none",
|
|
1327
|
-
zIndex: 1,
|
|
1328
|
-
opacity: F ? 1 : 0,
|
|
1329
|
-
transform: F ? "scale(1)" : "scale(0.85)",
|
|
1330
|
-
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)",
|
|
1331
|
-
animation: A ? `wheelShake ${j / 2}ms ease-in-out 2` : "none",
|
|
1332
|
-
"@keyframes wheelShake": {
|
|
1333
|
-
"0%, 100%": { transform: "translateX(0)" },
|
|
1334
|
-
"10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
|
|
1335
|
-
"20%, 40%, 60%, 80%": { transform: "translateX(8px)" }
|
|
1336
|
-
},
|
|
1337
|
-
...z && {
|
|
1338
|
-
filter: `drop-shadow(0 0 15px ${R("20")}) drop-shadow(0 0 40px ${R("10")})`
|
|
1339
|
-
},
|
|
1340
|
-
mt: m.md
|
|
1341
|
-
},
|
|
1342
|
-
children: [
|
|
1343
|
-
/* @__PURE__ */ t(
|
|
1344
|
-
Ot,
|
|
1345
|
-
{
|
|
1346
|
-
segmentCount: k.length,
|
|
1347
|
-
decorations: z,
|
|
1348
|
-
primaryColor: n
|
|
1349
|
-
}
|
|
1350
|
-
),
|
|
1351
|
-
/* @__PURE__ */ t(
|
|
1352
|
-
Dt,
|
|
1353
|
-
{
|
|
1354
|
-
segments: k,
|
|
1355
|
-
secondaryColor: r,
|
|
1356
|
-
primaryColor: n,
|
|
1357
|
-
onPrimaryColor: f,
|
|
1358
|
-
decorations: z,
|
|
1359
|
-
isStandard: !1,
|
|
1360
|
-
rotation: T,
|
|
1361
|
-
isSpinning: I,
|
|
1362
|
-
spinDuration: _
|
|
1363
|
-
}
|
|
1364
|
-
),
|
|
1365
|
-
s && /* @__PURE__ */ t(
|
|
1366
|
-
d,
|
|
1367
|
-
{
|
|
1368
|
-
component: "img",
|
|
1369
|
-
src: s,
|
|
1370
|
-
alt: "Logo",
|
|
1371
|
-
sx: {
|
|
1372
|
-
position: "absolute",
|
|
1373
|
-
top: "50%",
|
|
1374
|
-
left: "50%",
|
|
1375
|
-
transform: "translate(-50%, -50%)",
|
|
1376
|
-
width: "15%",
|
|
1377
|
-
height: "15%",
|
|
1378
|
-
objectFit: "contain",
|
|
1379
|
-
borderRadius: "50%",
|
|
1380
|
-
zIndex: 3,
|
|
1381
|
-
pointerEvents: "none",
|
|
1382
|
-
filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.2))"
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
),
|
|
1386
|
-
/* @__PURE__ */ t(
|
|
1387
|
-
jt,
|
|
1388
|
-
{
|
|
1389
|
-
primaryColor: n,
|
|
1390
|
-
dangerColor: i,
|
|
1391
|
-
decorations: z
|
|
1392
|
-
}
|
|
1393
|
-
)
|
|
1394
|
-
]
|
|
1395
|
-
}
|
|
1396
|
-
), C = () => !g.buttonLabel || $ && W && !W.isWinning ? null : /* @__PURE__ */ t(
|
|
1397
|
-
ct,
|
|
1398
|
-
{
|
|
1399
|
-
variant: "soft",
|
|
1400
|
-
disabled: I || B || !b && !$ && W !== null,
|
|
1401
|
-
onClick: M,
|
|
1402
|
-
sx: {
|
|
1403
|
-
borderRadius: h.xl,
|
|
1404
|
-
py: m.sm,
|
|
1405
|
-
px: m.lg,
|
|
1406
|
-
"--variant-softBg": n,
|
|
1407
|
-
"--variant-softColor": f,
|
|
1408
|
-
"--variant-softHoverBg": n,
|
|
1409
|
-
bgcolor: n,
|
|
1410
|
-
color: f,
|
|
1411
|
-
fontSize: p ? "0.75rem" : "0.875rem",
|
|
1412
|
-
fontWeight: 700,
|
|
1413
|
-
fontFamily: c.primary,
|
|
1414
|
-
textTransform: "uppercase",
|
|
1415
|
-
letterSpacing: "0.5px",
|
|
1416
|
-
alignSelf: "center",
|
|
1417
|
-
zIndex: 1,
|
|
1418
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
1419
|
-
transform: "scale(1)",
|
|
1420
|
-
...z && {
|
|
1421
|
-
boxShadow: `0 4px 14px 0 ${n}40, 0 0 20px ${n}15`,
|
|
1422
|
-
animation: !I && !W ? "wheelBtnPulse 2.5s ease-in-out infinite" : "none",
|
|
1423
|
-
"@keyframes wheelBtnPulse": {
|
|
1424
|
-
"0%, 100%": {
|
|
1425
|
-
boxShadow: `0 4px 14px 0 ${n}40, 0 0 20px ${n}15`
|
|
1426
|
-
},
|
|
1427
|
-
"50%": {
|
|
1428
|
-
boxShadow: `0 6px 24px 0 ${n}60, 0 0 35px ${n}25`
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
},
|
|
1432
|
-
...!z && {
|
|
1433
|
-
boxShadow: "0 4px 14px 0 rgba(0,0,0,0.15)"
|
|
1434
|
-
},
|
|
1435
|
-
"&:hover": {
|
|
1436
|
-
bgcolor: n,
|
|
1437
|
-
transform: "scale(1.05)",
|
|
1438
|
-
boxShadow: z ? `0 6px 20px 0 ${n}50, 0 0 30px ${n}20` : "0 6px 20px 0 rgba(0,0,0,0.2)"
|
|
1439
|
-
},
|
|
1440
|
-
"&:active": {
|
|
1441
|
-
transform: "scale(0.95)",
|
|
1442
|
-
color: f
|
|
1443
|
-
},
|
|
1444
|
-
"&:disabled": {
|
|
1445
|
-
"--variant-softDisabledBg": n,
|
|
1446
|
-
"--variant-softDisabledColor": f,
|
|
1447
|
-
bgcolor: n,
|
|
1448
|
-
color: f,
|
|
1449
|
-
opacity: 0.5,
|
|
1450
|
-
animation: "none"
|
|
1451
|
-
}
|
|
1452
|
-
},
|
|
1453
|
-
children: g.buttonLabel
|
|
1454
|
-
}
|
|
1455
|
-
), U = () => g.disclaimer ? /* @__PURE__ */ t(
|
|
1456
|
-
D,
|
|
1457
|
-
{
|
|
1458
|
-
level: "body-sm",
|
|
1459
|
-
sx: {
|
|
1460
|
-
fontFamily: c.secondary,
|
|
1461
|
-
fontWeight: 400,
|
|
1462
|
-
fontSize: "0.625rem",
|
|
1463
|
-
color: o,
|
|
1464
|
-
opacity: 0.7,
|
|
1465
|
-
textAlign: "center",
|
|
1466
|
-
maxWidth: "900px",
|
|
1467
|
-
lineHeight: 1.4,
|
|
1468
|
-
zIndex: 1
|
|
1469
|
-
},
|
|
1470
|
-
children: g.disclaimer
|
|
1471
|
-
}
|
|
1472
|
-
) : null, J = () => /* @__PURE__ */ w(q, { children: [
|
|
1473
|
-
H(),
|
|
1474
|
-
g.welcome && /* @__PURE__ */ t(
|
|
1475
|
-
D,
|
|
1476
|
-
{
|
|
1477
|
-
level: "body-md",
|
|
1478
|
-
sx: {
|
|
1479
|
-
fontFamily: c.primary,
|
|
1480
|
-
fontWeight: 400,
|
|
1481
|
-
fontSize: "0.875rem",
|
|
1482
|
-
color: o,
|
|
1483
|
-
textAlign: "center",
|
|
1484
|
-
zIndex: 1
|
|
1485
|
-
},
|
|
1486
|
-
children: g.welcome
|
|
1487
|
-
}
|
|
1488
|
-
),
|
|
1489
|
-
!$ && g.instructions && /* @__PURE__ */ t(
|
|
1490
|
-
D,
|
|
1491
|
-
{
|
|
1492
|
-
level: "body-sm",
|
|
1493
|
-
sx: {
|
|
1494
|
-
fontFamily: c.secondary,
|
|
1495
|
-
fontWeight: 400,
|
|
1496
|
-
fontSize: "0.875rem",
|
|
1497
|
-
color: o,
|
|
1498
|
-
opacity: 0.7,
|
|
1499
|
-
textAlign: "center",
|
|
1500
|
-
zIndex: 1
|
|
1501
|
-
},
|
|
1502
|
-
children: g.instructions
|
|
1503
|
-
}
|
|
1504
|
-
),
|
|
1505
|
-
$ && (W == null ? void 0 : W.results) && /* @__PURE__ */ t(
|
|
1506
|
-
nt,
|
|
1507
|
-
{
|
|
1508
|
-
result: W.results,
|
|
1509
|
-
variant: "embed",
|
|
1510
|
-
mode: "inline",
|
|
1511
|
-
contentColor: o,
|
|
1512
|
-
primaryColor: n,
|
|
1513
|
-
onPrimaryColor: f,
|
|
1514
|
-
enableReset: y,
|
|
1515
|
-
onReset: G,
|
|
1516
|
-
showResetButton: !0,
|
|
1517
|
-
sx: { zIndex: 1 }
|
|
1518
|
-
}
|
|
1519
|
-
),
|
|
1520
|
-
(g.buttonLabel || g.disclaimer) && /* @__PURE__ */ w(
|
|
1521
|
-
d,
|
|
1522
|
-
{
|
|
1523
|
-
sx: {
|
|
1524
|
-
mt: "auto",
|
|
1525
|
-
display: "flex",
|
|
1526
|
-
flexDirection: "column",
|
|
1527
|
-
alignItems: "center",
|
|
1528
|
-
gap: m.sm,
|
|
1529
|
-
width: "100%"
|
|
1530
|
-
},
|
|
1531
|
-
children: [
|
|
1532
|
-
C(),
|
|
1533
|
-
U()
|
|
1534
|
-
]
|
|
1535
|
-
}
|
|
1536
|
-
)
|
|
1537
|
-
] });
|
|
1538
|
-
return /* @__PURE__ */ w(
|
|
1539
|
-
d,
|
|
1540
|
-
{
|
|
1541
|
-
sx: {
|
|
1542
|
-
display: "flex",
|
|
1543
|
-
flexDirection: "column",
|
|
1544
|
-
width: "100%",
|
|
1545
|
-
p: m.md,
|
|
1546
|
-
gap: m.md,
|
|
1547
|
-
alignItems: "center",
|
|
1548
|
-
position: "relative",
|
|
1549
|
-
overflow: "hidden",
|
|
1550
|
-
boxSizing: "border-box"
|
|
1551
|
-
},
|
|
1552
|
-
children: [
|
|
1553
|
-
z && /* @__PURE__ */ t(
|
|
1554
|
-
Ft,
|
|
1555
|
-
{
|
|
1556
|
-
primaryColor: n,
|
|
1557
|
-
isDark: a,
|
|
1558
|
-
animationPrefix: "wheel"
|
|
1559
|
-
}
|
|
1560
|
-
),
|
|
1561
|
-
/* @__PURE__ */ t(
|
|
1562
|
-
Et,
|
|
1563
|
-
{
|
|
1564
|
-
active: B,
|
|
1565
|
-
primaryColor: n,
|
|
1566
|
-
velocityMultiplier: N,
|
|
1567
|
-
gravity: X,
|
|
1568
|
-
onComplete: E
|
|
1569
|
-
}
|
|
1570
|
-
),
|
|
1571
|
-
b && (W == null ? void 0 : W.results) && /* @__PURE__ */ t(
|
|
1572
|
-
nt,
|
|
1573
|
-
{
|
|
1574
|
-
result: W.results,
|
|
1575
|
-
variant: "embed",
|
|
1576
|
-
mode: "screen",
|
|
1577
|
-
contentColor: o,
|
|
1578
|
-
primaryColor: n,
|
|
1579
|
-
onPrimaryColor: f,
|
|
1580
|
-
disclaimer: g.disclaimer,
|
|
1581
|
-
enableReset: y,
|
|
1582
|
-
onReset: G
|
|
1583
|
-
}
|
|
1584
|
-
),
|
|
1585
|
-
!b && (x ? (
|
|
1586
|
-
/* Desktop: horizontal 2-column layout */
|
|
1587
|
-
/* @__PURE__ */ w(
|
|
1588
|
-
d,
|
|
1589
|
-
{
|
|
1590
|
-
sx: {
|
|
1591
|
-
display: "flex",
|
|
1592
|
-
flexDirection: "row",
|
|
1593
|
-
width: "100%",
|
|
1594
|
-
gap: m.xl,
|
|
1595
|
-
alignItems: "center",
|
|
1596
|
-
zIndex: 1
|
|
1597
|
-
},
|
|
1598
|
-
children: [
|
|
1599
|
-
/* @__PURE__ */ t(
|
|
1600
|
-
d,
|
|
1601
|
-
{
|
|
1602
|
-
sx: {
|
|
1603
|
-
flex: "0 0 42%",
|
|
1604
|
-
display: "flex",
|
|
1605
|
-
flexDirection: "column",
|
|
1606
|
-
gap: m.md,
|
|
1607
|
-
alignItems: "center",
|
|
1608
|
-
alignSelf: "stretch",
|
|
1609
|
-
justifyContent: u ? "flex-start" : "center"
|
|
1610
|
-
},
|
|
1611
|
-
children: J()
|
|
1612
|
-
}
|
|
1613
|
-
),
|
|
1614
|
-
/* @__PURE__ */ t(
|
|
1615
|
-
d,
|
|
1616
|
-
{
|
|
1617
|
-
sx: {
|
|
1618
|
-
flex: "0 0 58%",
|
|
1619
|
-
display: "flex",
|
|
1620
|
-
alignItems: "center",
|
|
1621
|
-
justifyContent: "center",
|
|
1622
|
-
pt: "15px"
|
|
1623
|
-
},
|
|
1624
|
-
children: K()
|
|
1625
|
-
}
|
|
1626
|
-
)
|
|
1627
|
-
]
|
|
1628
|
-
}
|
|
1629
|
-
)
|
|
1630
|
-
) : (
|
|
1631
|
-
/* Mobile: compact vertical — title first, then wheel, then text */
|
|
1632
|
-
/* @__PURE__ */ w(
|
|
1633
|
-
d,
|
|
1634
|
-
{
|
|
1635
|
-
sx: {
|
|
1636
|
-
display: "flex",
|
|
1637
|
-
flexDirection: "column",
|
|
1638
|
-
width: "100%",
|
|
1639
|
-
gap: m.sm,
|
|
1640
|
-
alignItems: "center",
|
|
1641
|
-
zIndex: 1
|
|
1642
|
-
},
|
|
1643
|
-
children: [
|
|
1644
|
-
H(),
|
|
1645
|
-
g.welcome && /* @__PURE__ */ t(
|
|
1646
|
-
D,
|
|
1647
|
-
{
|
|
1648
|
-
level: "body-md",
|
|
1649
|
-
sx: {
|
|
1650
|
-
fontFamily: c.primary,
|
|
1651
|
-
fontWeight: 400,
|
|
1652
|
-
fontSize: "0.875rem",
|
|
1653
|
-
color: o,
|
|
1654
|
-
textAlign: "center",
|
|
1655
|
-
zIndex: 1
|
|
1656
|
-
},
|
|
1657
|
-
children: g.welcome
|
|
1658
|
-
}
|
|
1659
|
-
),
|
|
1660
|
-
!$ && g.instructions && /* @__PURE__ */ t(
|
|
1661
|
-
D,
|
|
1662
|
-
{
|
|
1663
|
-
level: "body-sm",
|
|
1664
|
-
sx: {
|
|
1665
|
-
fontFamily: c.secondary,
|
|
1666
|
-
fontWeight: 400,
|
|
1667
|
-
fontSize: "0.875rem",
|
|
1668
|
-
color: o,
|
|
1669
|
-
opacity: 0.7,
|
|
1670
|
-
textAlign: "center",
|
|
1671
|
-
zIndex: 1
|
|
1672
|
-
},
|
|
1673
|
-
children: g.instructions
|
|
1674
|
-
}
|
|
1675
|
-
),
|
|
1676
|
-
K(),
|
|
1677
|
-
$ && (W == null ? void 0 : W.results) && /* @__PURE__ */ t(
|
|
1678
|
-
nt,
|
|
1679
|
-
{
|
|
1680
|
-
result: W.results,
|
|
1681
|
-
variant: "embed",
|
|
1682
|
-
mode: "inline",
|
|
1683
|
-
contentColor: o,
|
|
1684
|
-
primaryColor: n,
|
|
1685
|
-
onPrimaryColor: f,
|
|
1686
|
-
enableReset: y,
|
|
1687
|
-
onReset: G,
|
|
1688
|
-
showResetButton: !0,
|
|
1689
|
-
sx: { zIndex: 1 }
|
|
1690
|
-
}
|
|
1691
|
-
),
|
|
1692
|
-
C(),
|
|
1693
|
-
U()
|
|
1694
|
-
]
|
|
1695
|
-
}
|
|
1696
|
-
)
|
|
1697
|
-
))
|
|
1698
|
-
]
|
|
1699
|
-
}
|
|
1700
|
-
);
|
|
1701
|
-
}, ae = ({
|
|
1702
|
-
infoPage: e,
|
|
1703
|
-
enableReset: y = !1,
|
|
1704
|
-
forceMobile: o = !1
|
|
1705
|
-
}) => {
|
|
1706
|
-
var L, z, R, u, I, T, W, A, b, $, F, B, _, j, N, X;
|
|
1707
|
-
const n = o || Q(), r = tt(), f = ot(), i = mt() === "dark", s = (L = e.branding) == null ? void 0 : L.colors, a = (s == null ? void 0 : s.primary_color) || r.palette.primary.plainColor, l = (s == null ? void 0 : s.secondary_color) || r.palette.danger.plainColor, p = (s == null ? void 0 : s.content_color) || r.textPrimary, x = s == null ? void 0 : s.border_color, h = (s == null ? void 0 : s.background_color) || r.surface, c = r.palette.danger.plainColor, v = ((z = JSON.parse(e.body).config) == null ? void 0 : z.decorations) ?? !1, k = n ? ((u = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : u.mobile_background_image) || ((T = (I = e.branding) == null ? void 0 : I.images) == null ? void 0 : T.background_image) || ((W = e.images) == null ? void 0 : W.cover) : ((b = (A = e.branding) == null ? void 0 : A.images) == null ? void 0 : b.background_image) || (($ = e.images) == null ? void 0 : $.cover), g = n ? ((B = (F = e.branding) == null ? void 0 : F.images) == null ? void 0 : B.mobile_logo) || ((j = (_ = e.branding) == null ? void 0 : _.images) == null ? void 0 : j.main_logo) || "" : ((X = (N = e.branding) == null ? void 0 : N.images) == null ? void 0 : X.main_logo) || "", S = it(a, i);
|
|
1708
|
-
return /* @__PURE__ */ t(
|
|
1709
|
-
d,
|
|
1710
|
-
{
|
|
1711
|
-
sx: {
|
|
1712
|
-
display: "flex",
|
|
1713
|
-
flexDirection: "column",
|
|
1714
|
-
width: "100%",
|
|
1715
|
-
height: "100%",
|
|
1716
|
-
position: "relative",
|
|
1717
|
-
overflow: "auto",
|
|
1718
|
-
boxSizing: "border-box",
|
|
1719
|
-
background: k ? `url(${k}) center/cover no-repeat` : `
|
|
1720
|
-
radial-gradient(ellipse at 50% 40%, ${a}12 0%, transparent 60%),
|
|
1721
|
-
radial-gradient(ellipse at 50% 100%, ${a}08 0%, transparent 50%),
|
|
1722
|
-
${h}
|
|
1723
|
-
`,
|
|
1724
|
-
boxShadow: "inset 0 0 100px rgba(0, 0, 0, 0.04), inset 0 0 30px rgba(0, 0, 0, 0.02)",
|
|
1725
|
-
...v && {
|
|
1726
|
-
border: `1px solid ${S("15")}`,
|
|
1727
|
-
borderRadius: f.lg
|
|
1728
|
-
}
|
|
1729
|
-
},
|
|
1730
|
-
children: /* @__PURE__ */ t(
|
|
1731
|
-
Ht,
|
|
1732
|
-
{
|
|
1733
|
-
infoPage: e,
|
|
1734
|
-
enableReset: y,
|
|
1735
|
-
contentColor: p,
|
|
1736
|
-
primaryColor: a,
|
|
1737
|
-
secondaryColor: l,
|
|
1738
|
-
onPrimaryColor: r.palette.primary.onPrimary,
|
|
1739
|
-
borderColor: x || void 0,
|
|
1740
|
-
backgroundColor: h,
|
|
1741
|
-
dangerColor: c,
|
|
1742
|
-
shimmerColor: a,
|
|
1743
|
-
backgroundImage: k || void 0,
|
|
1744
|
-
brandingLogo: g,
|
|
1745
|
-
isDark: i,
|
|
1746
|
-
forceMobile: o
|
|
1747
|
-
}
|
|
1748
|
-
)
|
|
1749
|
-
}
|
|
1750
|
-
);
|
|
1751
|
-
}, Nt = {
|
|
1752
|
-
fast: { kickDuration: 600, totalAnimationTime: 800 },
|
|
1753
|
-
normal: { kickDuration: 900, totalAnimationTime: 1200 },
|
|
1754
|
-
slow: { kickDuration: 1500, totalAnimationTime: 2e3 }
|
|
1755
|
-
}, Zt = 1e3;
|
|
1756
|
-
function qt({
|
|
1757
|
-
segments: e,
|
|
1758
|
-
mode: y,
|
|
1759
|
-
pace: o
|
|
1760
|
-
}) {
|
|
1761
|
-
const [n, r] = Y(!1), [f, i] = Y(null), [s, a] = Y(null), [l, p] = Y(!1), [x, h] = Y(!1), [c, m] = Y(!1), [v, k] = Y({ x: 50, y: 100 }), [g, S] = Y(0), [L, z] = Y(null), [R, u] = Y(!1), { kickDuration: I } = Nt[o];
|
|
1762
|
-
return {
|
|
1763
|
-
// State
|
|
1764
|
-
isKicking: n,
|
|
1765
|
-
selectedSegment: f,
|
|
1766
|
-
clickedPosition: s,
|
|
1767
|
-
showResultScreen: l,
|
|
1768
|
-
showInlineResult: x,
|
|
1769
|
-
showLabel: c,
|
|
1770
|
-
ballPosition: v,
|
|
1771
|
-
ballRotation: g,
|
|
1772
|
-
flippedTarget: L,
|
|
1773
|
-
showNetRipple: R,
|
|
1774
|
-
// Timing
|
|
1775
|
-
kickDuration: I,
|
|
1776
|
-
// Actions
|
|
1777
|
-
handleTargetClick: (A) => {
|
|
1778
|
-
if (n || l || x || c) return;
|
|
1779
|
-
r(!0), a(A);
|
|
1780
|
-
const b = ut(
|
|
1781
|
-
e,
|
|
1782
|
-
y
|
|
1783
|
-
);
|
|
1784
|
-
i(b);
|
|
1785
|
-
const $ = Math.random() > 0.5 ? "left" : "right", F = 8, B = $ === "left" ? A.x - F : A.x + F, j = A.y + 5;
|
|
1786
|
-
k({ x: B, y: j });
|
|
1787
|
-
const N = Math.sqrt(
|
|
1788
|
-
Math.pow(B - 50, 2) + Math.pow(j - 100, 2)
|
|
1789
|
-
), X = Math.floor(N / 10), M = $ === "left" ? -180 : 180;
|
|
1790
|
-
S(X * 360 + M), setTimeout(() => {
|
|
1791
|
-
var E, O;
|
|
1792
|
-
r(!1), z({ ...A, direction: $ }), m(!0), b.isWinning && (u(!0), setTimeout(() => u(!1), 600));
|
|
1793
|
-
const G = ((E = b.results) == null ? void 0 : E.primaryCTA) || ((O = b.results) == null ? void 0 : O.secondaryCTA);
|
|
1794
|
-
setTimeout(() => {
|
|
1795
|
-
G ? p(!0) : h(!0);
|
|
1796
|
-
}, Zt);
|
|
1797
|
-
}, I);
|
|
1798
|
-
},
|
|
1799
|
-
handleReset: () => {
|
|
1800
|
-
r(!1), i(null), a(null), p(!1), h(!1), m(!1), k({ x: 50, y: 100 }), S(0), z(null), u(!1);
|
|
1801
|
-
}
|
|
1802
|
-
};
|
|
1803
|
-
}
|
|
1804
|
-
const Ut = ({ isDark: e }) => /* @__PURE__ */ w("g", { children: [
|
|
1805
|
-
/* @__PURE__ */ w("defs", { children: [
|
|
1806
|
-
/* @__PURE__ */ t(
|
|
1807
|
-
"linearGradient",
|
|
1808
|
-
{
|
|
1809
|
-
id: "skyGradient",
|
|
1810
|
-
x1: "0%",
|
|
1811
|
-
y1: "0%",
|
|
1812
|
-
x2: "0%",
|
|
1813
|
-
y2: "100%",
|
|
1814
|
-
children: e ? /* @__PURE__ */ w(q, { children: [
|
|
1815
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#0a1628" }),
|
|
1816
|
-
/* @__PURE__ */ t("stop", { offset: "40%", stopColor: "#142d4a" }),
|
|
1817
|
-
/* @__PURE__ */ t("stop", { offset: "70%", stopColor: "#1a3a5c" }),
|
|
1818
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#1e4068" })
|
|
1819
|
-
] }) : /* @__PURE__ */ w(q, { children: [
|
|
1820
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#4A90D9" }),
|
|
1821
|
-
/* @__PURE__ */ t("stop", { offset: "50%", stopColor: "#6BB3E8" }),
|
|
1822
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#87CEEB" })
|
|
1823
|
-
] })
|
|
1824
|
-
}
|
|
1825
|
-
),
|
|
1826
|
-
/* @__PURE__ */ w(
|
|
1827
|
-
"linearGradient",
|
|
1828
|
-
{
|
|
1829
|
-
id: "pitchGradient",
|
|
1830
|
-
x1: "0%",
|
|
1831
|
-
y1: "0%",
|
|
1832
|
-
x2: "0%",
|
|
1833
|
-
y2: "100%",
|
|
1834
|
-
children: [
|
|
1835
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#2d8a4e" }),
|
|
1836
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#1a6b35" })
|
|
1837
|
-
]
|
|
1838
|
-
}
|
|
1839
|
-
),
|
|
1840
|
-
/* @__PURE__ */ t(
|
|
1841
|
-
"radialGradient",
|
|
1842
|
-
{
|
|
1843
|
-
id: "floodlightGlow",
|
|
1844
|
-
cx: e ? "50%" : "80%",
|
|
1845
|
-
cy: e ? "0%" : "10%",
|
|
1846
|
-
r: "80%",
|
|
1847
|
-
children: e ? /* @__PURE__ */ w(q, { children: [
|
|
1848
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "rgba(255,255,255,0.15)" }),
|
|
1849
|
-
/* @__PURE__ */ t("stop", { offset: "60%", stopColor: "rgba(255,255,255,0.03)" }),
|
|
1850
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "transparent" })
|
|
1851
|
-
] }) : /* @__PURE__ */ w(q, { children: [
|
|
1852
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "rgba(255,255,200,0.3)" }),
|
|
1853
|
-
/* @__PURE__ */ t("stop", { offset: "40%", stopColor: "rgba(255,255,200,0.08)" }),
|
|
1854
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "transparent" })
|
|
1855
|
-
] })
|
|
1856
|
-
}
|
|
1857
|
-
),
|
|
1858
|
-
/* @__PURE__ */ w(
|
|
1859
|
-
"pattern",
|
|
1860
|
-
{
|
|
1861
|
-
id: "pitchStripes",
|
|
1862
|
-
x: "0",
|
|
1863
|
-
y: "0",
|
|
1864
|
-
width: "60",
|
|
1865
|
-
height: "375",
|
|
1866
|
-
patternUnits: "userSpaceOnUse",
|
|
1867
|
-
children: [
|
|
1868
|
-
/* @__PURE__ */ t(
|
|
1869
|
-
"rect",
|
|
1870
|
-
{
|
|
1871
|
-
x: "0",
|
|
1872
|
-
y: "0",
|
|
1873
|
-
width: "30",
|
|
1874
|
-
height: "375",
|
|
1875
|
-
fill: "rgba(255,255,255,0.02)"
|
|
1876
|
-
}
|
|
1877
|
-
),
|
|
1878
|
-
/* @__PURE__ */ t(
|
|
1879
|
-
"rect",
|
|
1880
|
-
{
|
|
1881
|
-
x: "30",
|
|
1882
|
-
y: "0",
|
|
1883
|
-
width: "30",
|
|
1884
|
-
height: "375",
|
|
1885
|
-
fill: "rgba(0,0,0,0.02)"
|
|
1886
|
-
}
|
|
1887
|
-
)
|
|
1888
|
-
]
|
|
1889
|
-
}
|
|
1890
|
-
),
|
|
1891
|
-
/* @__PURE__ */ t(
|
|
1892
|
-
"pattern",
|
|
1893
|
-
{
|
|
1894
|
-
id: "netPattern",
|
|
1895
|
-
x: "0",
|
|
1896
|
-
y: "0",
|
|
1897
|
-
width: "20",
|
|
1898
|
-
height: "20",
|
|
1899
|
-
patternUnits: "userSpaceOnUse",
|
|
1900
|
-
children: /* @__PURE__ */ t(
|
|
1901
|
-
"path",
|
|
1902
|
-
{
|
|
1903
|
-
d: "M 0,10 L 10,0 L 20,10 L 10,20 Z",
|
|
1904
|
-
fill: "none",
|
|
1905
|
-
stroke: "rgba(255,255,255,0.15)",
|
|
1906
|
-
strokeWidth: "0.5"
|
|
1907
|
-
}
|
|
1908
|
-
)
|
|
1909
|
-
}
|
|
1910
|
-
),
|
|
1911
|
-
/* @__PURE__ */ w(
|
|
1912
|
-
"linearGradient",
|
|
1913
|
-
{
|
|
1914
|
-
id: "postGradientLeft",
|
|
1915
|
-
x1: "0%",
|
|
1916
|
-
y1: "0%",
|
|
1917
|
-
x2: "100%",
|
|
1918
|
-
y2: "0%",
|
|
1919
|
-
children: [
|
|
1920
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#e8e8e8" }),
|
|
1921
|
-
/* @__PURE__ */ t("stop", { offset: "30%", stopColor: "#ffffff" }),
|
|
1922
|
-
/* @__PURE__ */ t("stop", { offset: "70%", stopColor: "#d0d0d0" }),
|
|
1923
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#b0b0b0" })
|
|
1924
|
-
]
|
|
1925
|
-
}
|
|
1926
|
-
),
|
|
1927
|
-
/* @__PURE__ */ w(
|
|
1928
|
-
"linearGradient",
|
|
1929
|
-
{
|
|
1930
|
-
id: "postGradientRight",
|
|
1931
|
-
x1: "0%",
|
|
1932
|
-
y1: "0%",
|
|
1933
|
-
x2: "100%",
|
|
1934
|
-
y2: "0%",
|
|
1935
|
-
children: [
|
|
1936
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#b0b0b0" }),
|
|
1937
|
-
/* @__PURE__ */ t("stop", { offset: "30%", stopColor: "#d0d0d0" }),
|
|
1938
|
-
/* @__PURE__ */ t("stop", { offset: "70%", stopColor: "#ffffff" }),
|
|
1939
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#e8e8e8" })
|
|
1940
|
-
]
|
|
1941
|
-
}
|
|
1942
|
-
),
|
|
1943
|
-
/* @__PURE__ */ w(
|
|
1944
|
-
"linearGradient",
|
|
1945
|
-
{
|
|
1946
|
-
id: "crossbarGradient",
|
|
1947
|
-
x1: "0%",
|
|
1948
|
-
y1: "0%",
|
|
1949
|
-
x2: "0%",
|
|
1950
|
-
y2: "100%",
|
|
1951
|
-
children: [
|
|
1952
|
-
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#ffffff" }),
|
|
1953
|
-
/* @__PURE__ */ t("stop", { offset: "40%", stopColor: "#e0e0e0" }),
|
|
1954
|
-
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#c0c0c0" })
|
|
1955
|
-
]
|
|
1956
|
-
}
|
|
1957
|
-
),
|
|
1958
|
-
/* @__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" }) }),
|
|
1959
|
-
/* @__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" }) }),
|
|
1960
|
-
/* @__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" }) })
|
|
1961
|
-
] }),
|
|
1962
|
-
/* @__PURE__ */ t("rect", { x: "0", y: "0", width: "600", height: "180", fill: "url(#skyGradient)" }),
|
|
1963
|
-
e && /* @__PURE__ */ w(q, { children: [
|
|
1964
|
-
/* @__PURE__ */ t("rect", { x: "48", y: "20", width: "4", height: "120", fill: "rgba(160,160,170,0.4)" }),
|
|
1965
|
-
/* @__PURE__ */ t("rect", { x: "548", y: "20", width: "4", height: "120", fill: "rgba(160,160,170,0.4)" })
|
|
1966
|
-
] }),
|
|
1967
|
-
e ? /* @__PURE__ */ w(q, { children: [
|
|
1968
|
-
/* @__PURE__ */ t(
|
|
1969
|
-
"path",
|
|
1970
|
-
{
|
|
1971
|
-
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",
|
|
1972
|
-
fill: "rgba(10,15,25,0.7)"
|
|
1973
|
-
}
|
|
1974
|
-
),
|
|
1975
|
-
/* @__PURE__ */ t("line", { x1: "30", y1: "145", x2: "570", y2: "145", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" }),
|
|
1976
|
-
/* @__PURE__ */ t("line", { x1: "80", y1: "135", x2: "520", y2: "135", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" }),
|
|
1977
|
-
/* @__PURE__ */ t("line", { x1: "150", y1: "125", x2: "450", y2: "125", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" }),
|
|
1978
|
-
/* @__PURE__ */ t("line", { x1: "200", y1: "120", x2: "400", y2: "120", stroke: "rgba(255,255,255,0.06)", strokeWidth: "0.5" })
|
|
1979
|
-
] }) : /* @__PURE__ */ w(q, { children: [
|
|
1980
|
-
/* @__PURE__ */ t(
|
|
1981
|
-
"path",
|
|
1982
|
-
{
|
|
1983
|
-
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",
|
|
1984
|
-
fill: "#9BA8B8"
|
|
1985
|
-
}
|
|
1986
|
-
),
|
|
1987
|
-
/* @__PURE__ */ t("rect", { x: "200", y: "118", width: "200", height: "4", fill: "#7A8899" }),
|
|
1988
|
-
/* @__PURE__ */ t(
|
|
1989
|
-
"path",
|
|
1990
|
-
{
|
|
1991
|
-
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",
|
|
1992
|
-
fill: "#8494A6"
|
|
1993
|
-
}
|
|
1994
|
-
),
|
|
1995
|
-
/* @__PURE__ */ t("rect", { x: "150", y: "125", width: "300", height: "4", fill: "#8A9AAD" }),
|
|
1996
|
-
/* @__PURE__ */ t(
|
|
1997
|
-
"path",
|
|
1998
|
-
{
|
|
1999
|
-
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",
|
|
2000
|
-
fill: "#94A3B4"
|
|
2001
|
-
}
|
|
2002
|
-
),
|
|
2003
|
-
/* @__PURE__ */ t("rect", { x: "80", y: "135", width: "440", height: "4", fill: "#9AAABB" }),
|
|
2004
|
-
/* @__PURE__ */ t(
|
|
2005
|
-
"path",
|
|
2006
|
-
{
|
|
2007
|
-
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",
|
|
2008
|
-
fill: "#A3B1C0"
|
|
2009
|
-
}
|
|
2010
|
-
),
|
|
2011
|
-
/* @__PURE__ */ t("rect", { x: "30", y: "145", width: "540", height: "4", fill: "#A8B6C5" }),
|
|
2012
|
-
/* @__PURE__ */ t(
|
|
2013
|
-
"path",
|
|
2014
|
-
{
|
|
2015
|
-
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",
|
|
2016
|
-
fill: "#B0BCC9"
|
|
2017
|
-
}
|
|
2018
|
-
),
|
|
2019
|
-
/* @__PURE__ */ t("rect", { x: "0", y: "155", width: "600", height: "25", fill: "#B8C4D0" }),
|
|
2020
|
-
/* @__PURE__ */ t("line", { x1: "200", y1: "118", x2: "400", y2: "118", stroke: "#6B7A8C", strokeWidth: "1.5" }),
|
|
2021
|
-
/* @__PURE__ */ t("line", { x1: "150", y1: "125", x2: "450", y2: "125", stroke: "#758596", strokeWidth: "1.5" }),
|
|
2022
|
-
/* @__PURE__ */ t("line", { x1: "80", y1: "135", x2: "520", y2: "135", stroke: "#7F8FA0", strokeWidth: "1.5" }),
|
|
2023
|
-
/* @__PURE__ */ t("line", { x1: "30", y1: "145", x2: "570", y2: "145", stroke: "#8999AA", strokeWidth: "1.5" }),
|
|
2024
|
-
/* @__PURE__ */ t("line", { x1: "0", y1: "155", x2: "600", y2: "155", stroke: "#93A2B2", strokeWidth: "1" }),
|
|
2025
|
-
/* @__PURE__ */ t("line", { x1: "200", y1: "119", x2: "400", y2: "119", stroke: "rgba(255,255,255,0.4)", strokeWidth: "0.8" }),
|
|
2026
|
-
/* @__PURE__ */ t("line", { x1: "150", y1: "126", x2: "450", y2: "126", stroke: "rgba(255,255,255,0.35)", strokeWidth: "0.8" }),
|
|
2027
|
-
/* @__PURE__ */ t("line", { x1: "80", y1: "136", x2: "520", y2: "136", stroke: "rgba(255,255,255,0.3)", strokeWidth: "0.8" }),
|
|
2028
|
-
/* @__PURE__ */ t("line", { x1: "30", y1: "146", x2: "570", y2: "146", stroke: "rgba(255,255,255,0.25)", strokeWidth: "0.8" }),
|
|
2029
|
-
/* @__PURE__ */ t("line", { x1: "0", y1: "156", x2: "600", y2: "156", stroke: "rgba(255,255,255,0.2)", strokeWidth: "0.8" }),
|
|
2030
|
-
/* @__PURE__ */ t("line", { x1: "200", y1: "118", x2: "200", y2: "180", stroke: "rgba(60,70,90,0.12)", strokeWidth: "0.5" }),
|
|
2031
|
-
/* @__PURE__ */ t("line", { x1: "300", y1: "118", x2: "300", y2: "180", stroke: "rgba(60,70,90,0.08)", strokeWidth: "0.5" }),
|
|
2032
|
-
/* @__PURE__ */ t("line", { x1: "400", y1: "118", x2: "400", y2: "180", stroke: "rgba(60,70,90,0.12)", strokeWidth: "0.5" })
|
|
2033
|
-
] }),
|
|
2034
|
-
e && Array.from({ length: 150 }).map((y, o) => {
|
|
2035
|
-
const n = Math.floor(o / 30), r = o % 30, f = [148, 142, 137, 128, 122][n] || 148, i = [10, 35, 85, 155, 205][n] || 10, s = [590, 565, 515, 445, 395][n] || 590, a = i + r / 29 * (s - i), l = f + (r * 7 + n * 3) % 4 - 1, p = (o * 17 + n * 31) % 100, x = p < 20 ? 220 : p < 40 ? 180 : p < 60 ? 140 : p < 80 ? 200 : 160, h = p < 20 ? 180 : p < 40 ? 200 : p < 60 ? 160 : p < 80 ? 140 : 180, c = p < 20 ? 140 : p < 40 ? 160 : p < 60 ? 200 : p < 80 ? 180 : 220, m = 0.12 + r % 4 * 0.04;
|
|
2036
|
-
return /* @__PURE__ */ t(
|
|
2037
|
-
"circle",
|
|
2038
|
-
{
|
|
2039
|
-
cx: a,
|
|
2040
|
-
cy: l,
|
|
2041
|
-
r: 1.2 + o % 3 * 0.3,
|
|
2042
|
-
fill: `rgba(${x},${h},${c},${m})`
|
|
2043
|
-
},
|
|
2044
|
-
`crowd-${o}`
|
|
2045
|
-
);
|
|
2046
|
-
}),
|
|
2047
|
-
!e && Array.from({ length: 180 }).map((y, o) => {
|
|
2048
|
-
const n = Math.floor(o / 36), r = o % 36, f = [157, 148, 142, 137, 128, 122][n] || 157, i = [5, 15, 45, 95, 160, 210][n] || 5, a = ([595, 585, 555, 505, 440, 390][n] || 595) - i, l = i + r / 35 * a + o * 7 % 5 - 2, p = f + (r * 5 + n * 7) % 5 - 2, x = (o * 23 + n * 17) % 120, h = x < 20 ? 200 : x < 40 ? 50 : x < 60 ? 220 : x < 80 ? 30 : x < 100 ? 180 : 100, c = x < 20 ? 50 : x < 40 ? 100 : x < 60 ? 180 : x < 80 || x < 100 ? 60 : 150, m = x < 20 ? 50 : x < 40 ? 180 : x < 60 ? 40 : x < 80 ? 160 : x < 100 ? 120 : 50, v = 0.3 + r % 4 * 0.08;
|
|
2049
|
-
return /* @__PURE__ */ t(
|
|
2050
|
-
"circle",
|
|
2051
|
-
{
|
|
2052
|
-
cx: l,
|
|
2053
|
-
cy: p,
|
|
2054
|
-
r: 1.3 + o % 3 * 0.3,
|
|
2055
|
-
fill: `rgba(${h},${c},${m},${v})`
|
|
2056
|
-
},
|
|
2057
|
-
`crowd-${o}`
|
|
2058
|
-
);
|
|
2059
|
-
}),
|
|
2060
|
-
/* @__PURE__ */ t("rect", { x: "0", y: "180", width: "600", height: "195", fill: "url(#pitchGradient)" }),
|
|
2061
|
-
/* @__PURE__ */ t("rect", { x: "0", y: "180", width: "600", height: "195", fill: "url(#pitchStripes)" }),
|
|
2062
|
-
/* @__PURE__ */ t("rect", { x: "0", y: "0", width: "600", height: "375", fill: "url(#floodlightGlow)" }),
|
|
2063
|
-
e && /* @__PURE__ */ w(q, { children: [
|
|
2064
|
-
/* @__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" }),
|
|
2065
|
-
/* @__PURE__ */ t("rect", { x: "38", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
|
|
2066
|
-
/* @__PURE__ */ t("rect", { x: "47", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,230,0.85)" }),
|
|
2067
|
-
/* @__PURE__ */ t("rect", { x: "56", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
|
|
2068
|
-
/* @__PURE__ */ t("ellipse", { cx: "50", cy: "12", rx: "22", ry: "10", fill: "rgba(255,255,200,0.12)" }),
|
|
2069
|
-
/* @__PURE__ */ t("polygon", { points: "35,20 65,20 420,180 180,180", fill: "rgba(255,255,220,0.04)" }),
|
|
2070
|
-
/* @__PURE__ */ t("polygon", { points: "40,20 60,20 380,180 220,180", fill: "rgba(255,255,220,0.03)" }),
|
|
2071
|
-
/* @__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" }),
|
|
2072
|
-
/* @__PURE__ */ t("rect", { x: "538", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
|
|
2073
|
-
/* @__PURE__ */ t("rect", { x: "547", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,230,0.85)" }),
|
|
2074
|
-
/* @__PURE__ */ t("rect", { x: "556", y: "10", width: "6", height: "4", rx: "1", fill: "rgba(255,255,220,0.9)" }),
|
|
2075
|
-
/* @__PURE__ */ t("ellipse", { cx: "550", cy: "12", rx: "22", ry: "10", fill: "rgba(255,255,200,0.12)" }),
|
|
2076
|
-
/* @__PURE__ */ t("polygon", { points: "535,20 565,20 420,180 180,180", fill: "rgba(255,255,220,0.04)" }),
|
|
2077
|
-
/* @__PURE__ */ t("polygon", { points: "540,20 560,20 380,180 220,180", fill: "rgba(255,255,220,0.03)" }),
|
|
2078
|
-
[[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(([y, o], n) => /* @__PURE__ */ t("circle", { cx: y, cy: o, r: 0.5 + n % 3 * 0.3, fill: `rgba(255,255,255,${0.3 + n % 4 * 0.15})` }, `star-${n}`))
|
|
2079
|
-
] }),
|
|
2080
|
-
!e && /* @__PURE__ */ w(q, { children: [
|
|
2081
|
-
/* @__PURE__ */ t("circle", { cx: "520", cy: "35", r: "22", fill: "rgba(255,230,80,0.9)" }),
|
|
2082
|
-
/* @__PURE__ */ t("circle", { cx: "520", cy: "35", r: "28", fill: "rgba(255,240,120,0.25)" }),
|
|
2083
|
-
/* @__PURE__ */ t("circle", { cx: "520", cy: "35", r: "40", fill: "rgba(255,245,160,0.1)" }),
|
|
2084
|
-
/* @__PURE__ */ t("ellipse", { cx: "60", cy: "42", rx: "28", ry: "9", fill: "rgba(255,255,255,0.45)" }),
|
|
2085
|
-
/* @__PURE__ */ t("ellipse", { cx: "80", cy: "38", rx: "22", ry: "8", fill: "rgba(255,255,255,0.35)" }),
|
|
2086
|
-
/* @__PURE__ */ t("ellipse", { cx: "45", cy: "40", rx: "16", ry: "7", fill: "rgba(255,255,255,0.3)" }),
|
|
2087
|
-
/* @__PURE__ */ t("ellipse", { cx: "195", cy: "28", rx: "38", ry: "12", fill: "rgba(255,255,255,0.4)" }),
|
|
2088
|
-
/* @__PURE__ */ t("ellipse", { cx: "215", cy: "24", rx: "28", ry: "10", fill: "rgba(255,255,255,0.35)" }),
|
|
2089
|
-
/* @__PURE__ */ t("ellipse", { cx: "178", cy: "30", rx: "20", ry: "8", fill: "rgba(255,255,255,0.3)" }),
|
|
2090
|
-
/* @__PURE__ */ t("ellipse", { cx: "230", cy: "30", rx: "18", ry: "7", fill: "rgba(255,255,255,0.25)" }),
|
|
2091
|
-
/* @__PURE__ */ t("ellipse", { cx: "330", cy: "55", rx: "22", ry: "8", fill: "rgba(255,255,255,0.3)" }),
|
|
2092
|
-
/* @__PURE__ */ t("ellipse", { cx: "345", cy: "52", rx: "16", ry: "6", fill: "rgba(255,255,255,0.25)" }),
|
|
2093
|
-
/* @__PURE__ */ t("ellipse", { cx: "430", cy: "68", rx: "30", ry: "9", fill: "rgba(255,255,255,0.35)" }),
|
|
2094
|
-
/* @__PURE__ */ t("ellipse", { cx: "448", cy: "64", rx: "20", ry: "7", fill: "rgba(255,255,255,0.28)" }),
|
|
2095
|
-
/* @__PURE__ */ t("ellipse", { cx: "415", cy: "66", rx: "14", ry: "6", fill: "rgba(255,255,255,0.22)" }),
|
|
2096
|
-
/* @__PURE__ */ t("ellipse", { cx: "565", cy: "58", rx: "18", ry: "7", fill: "rgba(255,255,255,0.3)" }),
|
|
2097
|
-
/* @__PURE__ */ t("ellipse", { cx: "578", cy: "55", rx: "14", ry: "6", fill: "rgba(255,255,255,0.22)" }),
|
|
2098
|
-
/* @__PURE__ */ t("ellipse", { cx: "120", cy: "80", rx: "24", ry: "7", fill: "rgba(255,255,255,0.2)" }),
|
|
2099
|
-
/* @__PURE__ */ t("ellipse", { cx: "138", cy: "78", rx: "16", ry: "5", fill: "rgba(255,255,255,0.15)" })
|
|
2100
|
-
] }),
|
|
2101
|
-
/* @__PURE__ */ t(
|
|
2102
|
-
"line",
|
|
2103
|
-
{
|
|
2104
|
-
x1: "0",
|
|
2105
|
-
y1: "250",
|
|
2106
|
-
x2: "600",
|
|
2107
|
-
y2: "250",
|
|
2108
|
-
stroke: "rgba(255,255,255,0.12)",
|
|
2109
|
-
strokeWidth: "2"
|
|
2110
|
-
}
|
|
2111
|
-
),
|
|
2112
|
-
/* @__PURE__ */ t(
|
|
2113
|
-
"rect",
|
|
2114
|
-
{
|
|
2115
|
-
x: "80",
|
|
2116
|
-
y: "250",
|
|
2117
|
-
width: "440",
|
|
2118
|
-
height: "112",
|
|
2119
|
-
fill: "none",
|
|
2120
|
-
stroke: "rgba(255,255,255,0.08)",
|
|
2121
|
-
strokeWidth: "1.5"
|
|
2122
|
-
}
|
|
2123
|
-
),
|
|
2124
|
-
/* @__PURE__ */ t(
|
|
2125
|
-
"rect",
|
|
2126
|
-
{
|
|
2127
|
-
x: "160",
|
|
2128
|
-
y: "250",
|
|
2129
|
-
width: "280",
|
|
2130
|
-
height: "37",
|
|
2131
|
-
fill: "none",
|
|
2132
|
-
stroke: "rgba(255,255,255,0.08)",
|
|
2133
|
-
strokeWidth: "1.5"
|
|
2134
|
-
}
|
|
2135
|
-
),
|
|
2136
|
-
/* @__PURE__ */ t("circle", { cx: "300", cy: "325", r: "2.5", fill: "rgba(255,255,255,0.18)" }),
|
|
2137
|
-
/* @__PURE__ */ t(
|
|
2138
|
-
"path",
|
|
2139
|
-
{
|
|
2140
|
-
d: "M 225,362 Q 300,382 375,362",
|
|
2141
|
-
fill: "none",
|
|
2142
|
-
stroke: "rgba(255,255,255,0.06)",
|
|
2143
|
-
strokeWidth: "1.5"
|
|
2144
|
-
}
|
|
2145
|
-
),
|
|
2146
|
-
/* @__PURE__ */ t(
|
|
2147
|
-
"rect",
|
|
2148
|
-
{
|
|
2149
|
-
x: "100",
|
|
2150
|
-
y: "50",
|
|
2151
|
-
width: "400",
|
|
2152
|
-
height: "200",
|
|
2153
|
-
fill: "rgba(0,0,0,0.1)"
|
|
2154
|
-
}
|
|
2155
|
-
),
|
|
2156
|
-
/* @__PURE__ */ t(
|
|
2157
|
-
"rect",
|
|
2158
|
-
{
|
|
2159
|
-
x: "100",
|
|
2160
|
-
y: "50",
|
|
2161
|
-
width: "400",
|
|
2162
|
-
height: "200",
|
|
2163
|
-
fill: "url(#netPattern)"
|
|
2164
|
-
}
|
|
2165
|
-
),
|
|
2166
|
-
/* @__PURE__ */ t(
|
|
2167
|
-
"rect",
|
|
2168
|
-
{
|
|
2169
|
-
x: "95",
|
|
2170
|
-
y: "48",
|
|
2171
|
-
width: "10",
|
|
2172
|
-
height: "205",
|
|
2173
|
-
rx: "5",
|
|
2174
|
-
ry: "5",
|
|
2175
|
-
fill: "url(#postGradientLeft)",
|
|
2176
|
-
filter: "url(#postShadow)"
|
|
2177
|
-
}
|
|
2178
|
-
),
|
|
2179
|
-
/* @__PURE__ */ t(
|
|
2180
|
-
"line",
|
|
2181
|
-
{
|
|
2182
|
-
x1: "98",
|
|
2183
|
-
y1: "53",
|
|
2184
|
-
x2: "98",
|
|
2185
|
-
y2: "248",
|
|
2186
|
-
stroke: "rgba(255,255,255,0.5)",
|
|
2187
|
-
strokeWidth: "1"
|
|
2188
|
-
}
|
|
2189
|
-
),
|
|
2190
|
-
/* @__PURE__ */ t(
|
|
2191
|
-
"rect",
|
|
2192
|
-
{
|
|
2193
|
-
x: "495",
|
|
2194
|
-
y: "48",
|
|
2195
|
-
width: "10",
|
|
2196
|
-
height: "205",
|
|
2197
|
-
rx: "5",
|
|
2198
|
-
ry: "5",
|
|
2199
|
-
fill: "url(#postGradientRight)",
|
|
2200
|
-
filter: "url(#postShadowRight)"
|
|
2201
|
-
}
|
|
2202
|
-
),
|
|
2203
|
-
/* @__PURE__ */ t(
|
|
2204
|
-
"line",
|
|
2205
|
-
{
|
|
2206
|
-
x1: "502",
|
|
2207
|
-
y1: "53",
|
|
2208
|
-
x2: "502",
|
|
2209
|
-
y2: "248",
|
|
2210
|
-
stroke: "rgba(255,255,255,0.5)",
|
|
2211
|
-
strokeWidth: "1"
|
|
2212
|
-
}
|
|
2213
|
-
),
|
|
2214
|
-
/* @__PURE__ */ t(
|
|
2215
|
-
"rect",
|
|
2216
|
-
{
|
|
2217
|
-
x: "93",
|
|
2218
|
-
y: "43",
|
|
2219
|
-
width: "414",
|
|
2220
|
-
height: "10",
|
|
2221
|
-
rx: "5",
|
|
2222
|
-
ry: "5",
|
|
2223
|
-
fill: "url(#crossbarGradient)",
|
|
2224
|
-
filter: "url(#crossbarShadow)"
|
|
2225
|
-
}
|
|
2226
|
-
),
|
|
2227
|
-
/* @__PURE__ */ t(
|
|
2228
|
-
"line",
|
|
2229
|
-
{
|
|
2230
|
-
x1: "98",
|
|
2231
|
-
y1: "46",
|
|
2232
|
-
x2: "502",
|
|
2233
|
-
y2: "46",
|
|
2234
|
-
stroke: "rgba(255,255,255,0.5)",
|
|
2235
|
-
strokeWidth: "1"
|
|
2236
|
-
}
|
|
2237
|
-
)
|
|
2238
|
-
] }), Jt = ({
|
|
2239
|
-
segment: e,
|
|
2240
|
-
selectedSegment: y,
|
|
2241
|
-
clickedPosition: o,
|
|
2242
|
-
flippedTarget: n,
|
|
2243
|
-
isKicking: r,
|
|
2244
|
-
showResultScreen: f,
|
|
2245
|
-
showInlineResult: i,
|
|
2246
|
-
showLabel: s,
|
|
2247
|
-
primaryColor: a,
|
|
2248
|
-
successColor: l,
|
|
2249
|
-
dangerColor: p,
|
|
2250
|
-
onTargetClick: x
|
|
2251
|
-
}) => {
|
|
2252
|
-
const h = e.position.x / 100 * 400 + 100, c = e.position.y / 100 * 200 + 50, m = 28, v = {
|
|
2253
|
-
x: e.position.x,
|
|
2254
|
-
y: e.position.y
|
|
2255
|
-
}, k = o && o.x === v.x && o.y === v.y, g = n && n.x === v.x && n.y === v.y;
|
|
2256
|
-
let S = e.color || a;
|
|
2257
|
-
g && y && (S = y.isWinning ? l : p);
|
|
2258
|
-
let L = "none";
|
|
2259
|
-
g && n && (L = `rotateY(${n.direction === "left" ? -180 : 180}deg)`);
|
|
2260
|
-
let z = 1;
|
|
2261
|
-
return (r || s) && (z = k ? 1 : 0.3), /* @__PURE__ */ w(
|
|
2262
|
-
"g",
|
|
2263
|
-
{
|
|
2264
|
-
style: {
|
|
2265
|
-
cursor: r || f || i || s ? "default" : "pointer",
|
|
2266
|
-
transition: "all 0.4s ease",
|
|
2267
|
-
transform: L,
|
|
2268
|
-
transformOrigin: `${h}px ${c}px`
|
|
2269
|
-
},
|
|
2270
|
-
onClick: () => x(v),
|
|
2271
|
-
opacity: z,
|
|
2272
|
-
children: [
|
|
2273
|
-
/* @__PURE__ */ t(
|
|
2274
|
-
"circle",
|
|
2275
|
-
{
|
|
2276
|
-
cx: h,
|
|
2277
|
-
cy: c,
|
|
2278
|
-
r: m,
|
|
2279
|
-
fill: "white",
|
|
2280
|
-
stroke: S,
|
|
2281
|
-
strokeWidth: k ? "3.5" : "2.5",
|
|
2282
|
-
opacity: "0.9",
|
|
2283
|
-
className: "target-outer",
|
|
2284
|
-
style: { transition: "all 0.4s ease" }
|
|
2285
|
-
}
|
|
2286
|
-
),
|
|
2287
|
-
/* @__PURE__ */ t(
|
|
2288
|
-
"circle",
|
|
2289
|
-
{
|
|
2290
|
-
cx: h,
|
|
2291
|
-
cy: c,
|
|
2292
|
-
r: m * 0.65,
|
|
2293
|
-
fill: "white",
|
|
2294
|
-
stroke: S,
|
|
2295
|
-
strokeWidth: k ? "3" : "2",
|
|
2296
|
-
opacity: "0.9",
|
|
2297
|
-
className: "target-middle",
|
|
2298
|
-
style: { transition: "all 0.4s ease" }
|
|
2299
|
-
}
|
|
2300
|
-
),
|
|
2301
|
-
/* @__PURE__ */ t(
|
|
2302
|
-
"circle",
|
|
2303
|
-
{
|
|
2304
|
-
cx: h,
|
|
2305
|
-
cy: c,
|
|
2306
|
-
r: m * 0.35,
|
|
2307
|
-
fill: S,
|
|
2308
|
-
opacity: k ? "1" : "0.8",
|
|
2309
|
-
className: "target-inner",
|
|
2310
|
-
style: { transition: "all 0.4s ease" }
|
|
2311
|
-
}
|
|
2312
|
-
),
|
|
2313
|
-
/* @__PURE__ */ t(
|
|
2314
|
-
"circle",
|
|
2315
|
-
{
|
|
2316
|
-
cx: h,
|
|
2317
|
-
cy: c,
|
|
2318
|
-
r: m * 0.15,
|
|
2319
|
-
fill: "white",
|
|
2320
|
-
opacity: "0.9",
|
|
2321
|
-
className: "target-center",
|
|
2322
|
-
style: { transition: "all 0.4s ease" }
|
|
2323
|
-
}
|
|
2324
|
-
),
|
|
2325
|
-
/* @__PURE__ */ t(
|
|
2326
|
-
"circle",
|
|
2327
|
-
{
|
|
2328
|
-
cx: h,
|
|
2329
|
-
cy: c,
|
|
2330
|
-
r: m + 5,
|
|
2331
|
-
fill: "transparent",
|
|
2332
|
-
stroke: "transparent",
|
|
2333
|
-
strokeWidth: "0",
|
|
2334
|
-
onMouseEnter: (R) => {
|
|
2335
|
-
var u;
|
|
2336
|
-
if (!r && !f && !i) {
|
|
2337
|
-
const I = R.currentTarget.parentElement;
|
|
2338
|
-
I && (I.querySelectorAll(".target-outer, .target-middle").forEach((T) => {
|
|
2339
|
-
T.setAttribute("stroke-width", "3");
|
|
2340
|
-
}), (u = I.querySelector(".target-inner")) == null || u.setAttribute("opacity", "1"));
|
|
2341
|
-
}
|
|
2342
|
-
},
|
|
2343
|
-
onMouseLeave: (R) => {
|
|
2344
|
-
var u, I, T;
|
|
2345
|
-
if (!r && !f && !i) {
|
|
2346
|
-
const W = R.currentTarget.parentElement;
|
|
2347
|
-
W && ((u = W.querySelector(".target-outer")) == null || u.setAttribute("stroke-width", "2"), (I = W.querySelector(".target-middle")) == null || I.setAttribute("stroke-width", "1.5"), (T = W.querySelector(".target-inner")) == null || T.setAttribute("opacity", "0.8"));
|
|
2348
|
-
}
|
|
2349
|
-
}
|
|
2350
|
-
}
|
|
2351
|
-
)
|
|
2352
|
-
]
|
|
2353
|
-
},
|
|
2354
|
-
e.id
|
|
2355
|
-
);
|
|
2356
|
-
}, Vt = ({
|
|
2357
|
-
infoPage: e,
|
|
2358
|
-
enableReset: y = !1,
|
|
2359
|
-
contentColor: o,
|
|
2360
|
-
primaryColor: n,
|
|
2361
|
-
onPrimaryColor: r,
|
|
2362
|
-
dangerColor: f,
|
|
2363
|
-
isDark: i,
|
|
2364
|
-
forceMobile: s = !1
|
|
2365
|
-
}) => {
|
|
2366
|
-
var K;
|
|
2367
|
-
const a = Q(), l = s ? !1 : gt(), p = tt(), x = ot(), h = rt(), c = dt(), m = p.palette.success.plainColor, v = JSON.parse(e.body), k = [
|
|
2368
|
-
{ x: 15, y: 25 },
|
|
2369
|
-
{ x: 50, y: 20 },
|
|
2370
|
-
{ x: 85, y: 25 },
|
|
2371
|
-
{ x: 20, y: 70 },
|
|
2372
|
-
{ x: 50, y: 75 },
|
|
2373
|
-
{ x: 80, y: 70 }
|
|
2374
|
-
], g = (v.segments || []).map(
|
|
2375
|
-
(C, U) => ({
|
|
2376
|
-
...C,
|
|
2377
|
-
position: C.position || k[U % k.length]
|
|
2378
|
-
})
|
|
2379
|
-
), S = e.labels || {}, L = v.config || { mode: "fair", pace: "normal" }, z = L.mode || "fair", R = L.pace || "normal", u = ((K = v.config) == null ? void 0 : K.decorations) ?? !1, I = it(n, i), T = !!(S.welcome || S.instructions || S.disclaimer), {
|
|
2380
|
-
isKicking: W,
|
|
2381
|
-
selectedSegment: A,
|
|
2382
|
-
clickedPosition: b,
|
|
2383
|
-
showResultScreen: $,
|
|
2384
|
-
showInlineResult: F,
|
|
2385
|
-
showLabel: B,
|
|
2386
|
-
ballPosition: _,
|
|
2387
|
-
ballRotation: j,
|
|
2388
|
-
flippedTarget: N,
|
|
2389
|
-
showNetRipple: X,
|
|
2390
|
-
kickDuration: M,
|
|
2391
|
-
handleTargetClick: G,
|
|
2392
|
-
handleReset: E
|
|
2393
|
-
} = qt({ segments: g, mode: z, pace: R }), O = () => !e.title && !e.subtitle ? null : /* @__PURE__ */ w(
|
|
2394
|
-
d,
|
|
2395
|
-
{
|
|
2396
|
-
sx: {
|
|
2397
|
-
display: "flex",
|
|
2398
|
-
flexDirection: "column",
|
|
2399
|
-
gap: 0,
|
|
2400
|
-
alignItems: "center",
|
|
2401
|
-
textAlign: "center",
|
|
2402
|
-
width: "100%",
|
|
2403
|
-
zIndex: 1
|
|
2404
|
-
},
|
|
2405
|
-
children: [
|
|
2406
|
-
e.title && /* @__PURE__ */ w(q, { children: [
|
|
2407
|
-
/* @__PURE__ */ t(
|
|
2408
|
-
D,
|
|
2409
|
-
{
|
|
2410
|
-
level: "h2",
|
|
2411
|
-
sx: {
|
|
2412
|
-
fontFamily: h.primary,
|
|
2413
|
-
fontWeight: 700,
|
|
2414
|
-
fontSize: "1.25rem",
|
|
2415
|
-
color: i ? "#fff" : o,
|
|
2416
|
-
lineHeight: 1.2,
|
|
2417
|
-
textShadow: u ? `0 0 20px ${n}20` : "none"
|
|
2418
|
-
},
|
|
2419
|
-
children: e.title
|
|
2420
|
-
}
|
|
2421
|
-
),
|
|
2422
|
-
u && /* @__PURE__ */ w(
|
|
2423
|
-
d,
|
|
2424
|
-
{
|
|
2425
|
-
sx: {
|
|
2426
|
-
display: "flex",
|
|
2427
|
-
alignItems: "center",
|
|
2428
|
-
gap: c.sm,
|
|
2429
|
-
mt: c.xs,
|
|
2430
|
-
width: a ? "60%" : "40%"
|
|
2431
|
-
},
|
|
2432
|
-
children: [
|
|
2433
|
-
/* @__PURE__ */ t(
|
|
2434
|
-
d,
|
|
2435
|
-
{
|
|
2436
|
-
sx: {
|
|
2437
|
-
flex: 1,
|
|
2438
|
-
height: "1px",
|
|
2439
|
-
background: `linear-gradient(to right, transparent, ${I("40")})`
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
),
|
|
2443
|
-
/* @__PURE__ */ t(
|
|
2444
|
-
d,
|
|
2445
|
-
{
|
|
2446
|
-
sx: {
|
|
2447
|
-
width: "8px",
|
|
2448
|
-
height: "8px",
|
|
2449
|
-
transform: "rotate(45deg)",
|
|
2450
|
-
border: `1px solid ${I("50")}`,
|
|
2451
|
-
background: `${I("15")}`
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
),
|
|
2455
|
-
/* @__PURE__ */ t(
|
|
2456
|
-
d,
|
|
2457
|
-
{
|
|
2458
|
-
sx: {
|
|
2459
|
-
flex: 1,
|
|
2460
|
-
height: "1px",
|
|
2461
|
-
background: `linear-gradient(to left, transparent, ${I("40")})`
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
)
|
|
2465
|
-
]
|
|
2466
|
-
}
|
|
2467
|
-
)
|
|
2468
|
-
] }),
|
|
2469
|
-
e.subtitle && /* @__PURE__ */ t(
|
|
2470
|
-
D,
|
|
2471
|
-
{
|
|
2472
|
-
level: "body-md",
|
|
2473
|
-
sx: {
|
|
2474
|
-
fontFamily: h.secondary,
|
|
2475
|
-
fontWeight: 400,
|
|
2476
|
-
fontSize: "0.875rem",
|
|
2477
|
-
color: i ? "rgba(255,255,255,0.7)" : o,
|
|
2478
|
-
opacity: i ? 1 : 0.8
|
|
2479
|
-
},
|
|
2480
|
-
children: e.subtitle
|
|
2481
|
-
}
|
|
2482
|
-
)
|
|
2483
|
-
]
|
|
2484
|
-
}
|
|
2485
|
-
), H = () => /* @__PURE__ */ t(
|
|
2486
|
-
d,
|
|
2487
|
-
{
|
|
2488
|
-
sx: {
|
|
2489
|
-
position: "relative",
|
|
2490
|
-
width: "100%",
|
|
2491
|
-
aspectRatio: "16/10",
|
|
2492
|
-
zIndex: 1
|
|
2493
|
-
},
|
|
2494
|
-
children: /* @__PURE__ */ w(
|
|
2495
|
-
d,
|
|
2496
|
-
{
|
|
2497
|
-
component: "svg",
|
|
2498
|
-
viewBox: "0 0 600 375",
|
|
2499
|
-
sx: {
|
|
2500
|
-
width: "100%",
|
|
2501
|
-
height: "100%",
|
|
2502
|
-
filter: "drop-shadow(0 4px 16px rgba(0,0,0,0.25))",
|
|
2503
|
-
borderRadius: x.md,
|
|
2504
|
-
overflow: "hidden"
|
|
2505
|
-
},
|
|
2506
|
-
children: [
|
|
2507
|
-
/* @__PURE__ */ t(Ut, { isDark: i }),
|
|
2508
|
-
X && b && /* @__PURE__ */ w(q, { children: [
|
|
2509
|
-
/* @__PURE__ */ t(
|
|
2510
|
-
"circle",
|
|
2511
|
-
{
|
|
2512
|
-
cx: b.x / 100 * 400 + 100,
|
|
2513
|
-
cy: b.y / 100 * 200 + 50,
|
|
2514
|
-
r: "5",
|
|
2515
|
-
fill: "none",
|
|
2516
|
-
stroke: "rgba(255,255,255,0.4)",
|
|
2517
|
-
strokeWidth: "2",
|
|
2518
|
-
style: { animation: "netRipple1 0.6s ease-out forwards" }
|
|
2519
|
-
}
|
|
2520
|
-
),
|
|
2521
|
-
/* @__PURE__ */ t(
|
|
2522
|
-
"circle",
|
|
2523
|
-
{
|
|
2524
|
-
cx: b.x / 100 * 400 + 100,
|
|
2525
|
-
cy: b.y / 100 * 200 + 50,
|
|
2526
|
-
r: "5",
|
|
2527
|
-
fill: "none",
|
|
2528
|
-
stroke: "rgba(255,255,255,0.25)",
|
|
2529
|
-
strokeWidth: "1.5",
|
|
2530
|
-
style: { animation: "netRipple2 0.6s ease-out 0.1s forwards" }
|
|
2531
|
-
}
|
|
2532
|
-
),
|
|
2533
|
-
/* @__PURE__ */ t("style", { children: `
|
|
2534
|
-
@keyframes netRipple1 {
|
|
2535
|
-
0% { r: 5; opacity: 1; stroke-width: 2.5; }
|
|
2536
|
-
100% { r: 45; opacity: 0; stroke-width: 0.3; }
|
|
2537
|
-
}
|
|
2538
|
-
@keyframes netRipple2 {
|
|
2539
|
-
0% { r: 5; opacity: 0.8; stroke-width: 2; }
|
|
2540
|
-
100% { r: 35; opacity: 0; stroke-width: 0.3; }
|
|
2541
|
-
}
|
|
2542
|
-
` })
|
|
2543
|
-
] }),
|
|
2544
|
-
g.map((C) => /* @__PURE__ */ t(
|
|
2545
|
-
Jt,
|
|
2546
|
-
{
|
|
2547
|
-
segment: C,
|
|
2548
|
-
selectedSegment: A,
|
|
2549
|
-
clickedPosition: b,
|
|
2550
|
-
flippedTarget: N,
|
|
2551
|
-
isKicking: W,
|
|
2552
|
-
showResultScreen: $,
|
|
2553
|
-
showInlineResult: F,
|
|
2554
|
-
showLabel: B,
|
|
2555
|
-
primaryColor: n,
|
|
2556
|
-
successColor: m,
|
|
2557
|
-
dangerColor: f,
|
|
2558
|
-
onTargetClick: G
|
|
2559
|
-
},
|
|
2560
|
-
C.id
|
|
2561
|
-
)),
|
|
2562
|
-
/* @__PURE__ */ t(
|
|
2563
|
-
"g",
|
|
2564
|
-
{
|
|
2565
|
-
style: {
|
|
2566
|
-
transform: W && b ? `translate(${_.x / 100 * 400 - 200}px, ${_.y / 100 * 200 - 300}px) rotate(${j}deg) scale(0.7)` : B && b ? `translate(${b.x / 100 * 400 - 200}px, ${b.y / 100 * 200 - 300}px) scale(0.7)` : "translate(0, 0) scale(1)",
|
|
2567
|
-
transformOrigin: "300px 325px",
|
|
2568
|
-
transition: W ? `transform ${M}ms cubic-bezier(0.25, 0.1, 0.25, 1.0)` : "none",
|
|
2569
|
-
opacity: B ? 0 : 1
|
|
2570
|
-
},
|
|
2571
|
-
children: /* @__PURE__ */ t(
|
|
2572
|
-
"text",
|
|
2573
|
-
{
|
|
2574
|
-
x: "300",
|
|
2575
|
-
y: "325",
|
|
2576
|
-
fontSize: "36",
|
|
2577
|
-
textAnchor: "middle",
|
|
2578
|
-
dominantBaseline: "central",
|
|
2579
|
-
style: { userSelect: "none" },
|
|
2580
|
-
children: "⚽"
|
|
2581
|
-
}
|
|
2582
|
-
)
|
|
2583
|
-
}
|
|
2584
|
-
),
|
|
2585
|
-
B && A && b && (() => {
|
|
2586
|
-
const C = b.x / 100 * 400 + 100, U = b.y / 100 * 200 + 50, J = 110, Z = 28, P = C - J / 2, V = U - Z - 35, st = 6, at = A.isWinning ? m : f;
|
|
2587
|
-
return /* @__PURE__ */ w(
|
|
2588
|
-
"g",
|
|
2589
|
-
{
|
|
2590
|
-
style: {
|
|
2591
|
-
opacity: $ || F ? 0 : 1,
|
|
2592
|
-
transition: "opacity 0.3s ease"
|
|
2593
|
-
},
|
|
2594
|
-
children: [
|
|
2595
|
-
/* @__PURE__ */ t(
|
|
2596
|
-
"rect",
|
|
2597
|
-
{
|
|
2598
|
-
x: P,
|
|
2599
|
-
y: V,
|
|
2600
|
-
width: J,
|
|
2601
|
-
height: Z,
|
|
2602
|
-
fill: at,
|
|
2603
|
-
rx: "6",
|
|
2604
|
-
opacity: "0.96",
|
|
2605
|
-
style: { filter: "drop-shadow(0 2px 8px rgba(0,0,0,0.2))" }
|
|
2606
|
-
}
|
|
2607
|
-
),
|
|
2608
|
-
/* @__PURE__ */ t(
|
|
2609
|
-
"path",
|
|
2610
|
-
{
|
|
2611
|
-
d: `M ${C - st} ${V + Z}
|
|
2612
|
-
L ${C} ${V + Z + st}
|
|
2613
|
-
L ${C + st} ${V + Z} Z`,
|
|
2614
|
-
fill: at,
|
|
2615
|
-
opacity: "0.96"
|
|
2616
|
-
}
|
|
2617
|
-
),
|
|
2618
|
-
/* @__PURE__ */ t(
|
|
2619
|
-
"text",
|
|
2620
|
-
{
|
|
2621
|
-
x: C,
|
|
2622
|
-
y: V + Z / 2,
|
|
2623
|
-
fontSize: "13",
|
|
2624
|
-
fontWeight: "600",
|
|
2625
|
-
fill: "white",
|
|
2626
|
-
textAnchor: "middle",
|
|
2627
|
-
dominantBaseline: "central",
|
|
2628
|
-
style: {
|
|
2629
|
-
userSelect: "none",
|
|
2630
|
-
fontFamily: h.primary,
|
|
2631
|
-
letterSpacing: "0.2px"
|
|
2632
|
-
},
|
|
2633
|
-
children: A.label
|
|
2634
|
-
}
|
|
2635
|
-
)
|
|
2636
|
-
]
|
|
2637
|
-
}
|
|
2638
|
-
);
|
|
2639
|
-
})()
|
|
2640
|
-
]
|
|
2641
|
-
}
|
|
2642
|
-
)
|
|
2643
|
-
}
|
|
2644
|
-
);
|
|
2645
|
-
return /* @__PURE__ */ w(
|
|
2646
|
-
d,
|
|
2647
|
-
{
|
|
2648
|
-
sx: {
|
|
2649
|
-
display: "flex",
|
|
2650
|
-
flexDirection: "column",
|
|
2651
|
-
width: "100%",
|
|
2652
|
-
p: c.md,
|
|
2653
|
-
gap: c.md,
|
|
2654
|
-
alignItems: "center",
|
|
2655
|
-
position: "relative",
|
|
2656
|
-
overflow: "hidden",
|
|
2657
|
-
boxSizing: "border-box"
|
|
2658
|
-
},
|
|
2659
|
-
children: [
|
|
2660
|
-
$ && (A == null ? void 0 : A.results) && /* @__PURE__ */ t(
|
|
2661
|
-
nt,
|
|
2662
|
-
{
|
|
2663
|
-
result: A.results,
|
|
2664
|
-
variant: "embed",
|
|
2665
|
-
mode: "screen",
|
|
2666
|
-
contentColor: o,
|
|
2667
|
-
primaryColor: n,
|
|
2668
|
-
onPrimaryColor: r,
|
|
2669
|
-
disclaimer: S.disclaimer,
|
|
2670
|
-
enableReset: y,
|
|
2671
|
-
onReset: E
|
|
2672
|
-
}
|
|
2673
|
-
),
|
|
2674
|
-
!$ && (l ? (
|
|
2675
|
-
/* Desktop: horizontal 2-column */
|
|
2676
|
-
/* @__PURE__ */ w(
|
|
2677
|
-
d,
|
|
2678
|
-
{
|
|
2679
|
-
sx: {
|
|
2680
|
-
display: "flex",
|
|
2681
|
-
flexDirection: "row",
|
|
2682
|
-
width: "100%",
|
|
2683
|
-
gap: c.xl,
|
|
2684
|
-
alignItems: "center",
|
|
2685
|
-
zIndex: 1
|
|
2686
|
-
},
|
|
2687
|
-
children: [
|
|
2688
|
-
/* @__PURE__ */ w(
|
|
2689
|
-
d,
|
|
2690
|
-
{
|
|
2691
|
-
sx: {
|
|
2692
|
-
flex: "0 0 42%",
|
|
2693
|
-
display: "flex",
|
|
2694
|
-
flexDirection: "column",
|
|
2695
|
-
gap: c.md,
|
|
2696
|
-
alignItems: "center",
|
|
2697
|
-
alignSelf: "stretch",
|
|
2698
|
-
justifyContent: T ? "flex-start" : "center"
|
|
2699
|
-
},
|
|
2700
|
-
children: [
|
|
2701
|
-
O(),
|
|
2702
|
-
S.welcome && /* @__PURE__ */ t(
|
|
2703
|
-
D,
|
|
2704
|
-
{
|
|
2705
|
-
level: "body-md",
|
|
2706
|
-
sx: {
|
|
2707
|
-
fontFamily: h.primary,
|
|
2708
|
-
fontWeight: 400,
|
|
2709
|
-
fontSize: "0.875rem",
|
|
2710
|
-
color: i ? "#fff" : o,
|
|
2711
|
-
textAlign: "center",
|
|
2712
|
-
zIndex: 1
|
|
2713
|
-
},
|
|
2714
|
-
children: S.welcome
|
|
2715
|
-
}
|
|
2716
|
-
),
|
|
2717
|
-
!F && S.instructions && /* @__PURE__ */ t(
|
|
2718
|
-
D,
|
|
2719
|
-
{
|
|
2720
|
-
level: "body-sm",
|
|
2721
|
-
sx: {
|
|
2722
|
-
fontFamily: h.secondary,
|
|
2723
|
-
fontWeight: 400,
|
|
2724
|
-
fontSize: "0.875rem",
|
|
2725
|
-
color: i ? "rgba(255,255,255,0.7)" : o,
|
|
2726
|
-
opacity: i ? 1 : 0.7,
|
|
2727
|
-
textAlign: "center",
|
|
2728
|
-
zIndex: 1
|
|
2729
|
-
},
|
|
2730
|
-
children: S.instructions
|
|
2731
|
-
}
|
|
2732
|
-
),
|
|
2733
|
-
F && (A == null ? void 0 : A.results) && /* @__PURE__ */ t(
|
|
2734
|
-
nt,
|
|
2735
|
-
{
|
|
2736
|
-
result: A.results,
|
|
2737
|
-
variant: "embed",
|
|
2738
|
-
mode: "inline",
|
|
2739
|
-
contentColor: o,
|
|
2740
|
-
primaryColor: n,
|
|
2741
|
-
onPrimaryColor: r,
|
|
2742
|
-
disclaimer: S.disclaimer,
|
|
2743
|
-
enableReset: y,
|
|
2744
|
-
onReset: E,
|
|
2745
|
-
sx: { zIndex: 1 }
|
|
2746
|
-
}
|
|
2747
|
-
),
|
|
2748
|
-
/* @__PURE__ */ t(
|
|
2749
|
-
d,
|
|
2750
|
-
{
|
|
2751
|
-
sx: {
|
|
2752
|
-
mt: "auto",
|
|
2753
|
-
display: "flex",
|
|
2754
|
-
flexDirection: "column",
|
|
2755
|
-
alignItems: "center",
|
|
2756
|
-
width: "100%"
|
|
2757
|
-
},
|
|
2758
|
-
children: S.disclaimer && !F && /* @__PURE__ */ t(
|
|
2759
|
-
D,
|
|
2760
|
-
{
|
|
2761
|
-
level: "body-sm",
|
|
2762
|
-
sx: {
|
|
2763
|
-
fontFamily: h.secondary,
|
|
2764
|
-
fontWeight: 400,
|
|
2765
|
-
fontSize: "0.625rem",
|
|
2766
|
-
color: i ? "rgba(255,255,255,0.7)" : o,
|
|
2767
|
-
opacity: i ? 1 : 0.7,
|
|
2768
|
-
textAlign: "center",
|
|
2769
|
-
maxWidth: "900px",
|
|
2770
|
-
lineHeight: 1.4,
|
|
2771
|
-
zIndex: 1
|
|
2772
|
-
},
|
|
2773
|
-
children: S.disclaimer
|
|
2774
|
-
}
|
|
2775
|
-
)
|
|
2776
|
-
}
|
|
2777
|
-
)
|
|
2778
|
-
]
|
|
2779
|
-
}
|
|
2780
|
-
),
|
|
2781
|
-
/* @__PURE__ */ t(
|
|
2782
|
-
d,
|
|
2783
|
-
{
|
|
2784
|
-
sx: {
|
|
2785
|
-
flex: "0 0 58%",
|
|
2786
|
-
display: "flex",
|
|
2787
|
-
alignItems: "center",
|
|
2788
|
-
justifyContent: "center"
|
|
2789
|
-
},
|
|
2790
|
-
children: H()
|
|
2791
|
-
}
|
|
2792
|
-
)
|
|
2793
|
-
]
|
|
2794
|
-
}
|
|
2795
|
-
)
|
|
2796
|
-
) : (
|
|
2797
|
-
/* Mobile: compact vertical */
|
|
2798
|
-
/* @__PURE__ */ w(
|
|
2799
|
-
d,
|
|
2800
|
-
{
|
|
2801
|
-
sx: {
|
|
2802
|
-
display: "flex",
|
|
2803
|
-
flexDirection: "column",
|
|
2804
|
-
width: "100%",
|
|
2805
|
-
gap: c.sm,
|
|
2806
|
-
alignItems: "center",
|
|
2807
|
-
zIndex: 1
|
|
2808
|
-
},
|
|
2809
|
-
children: [
|
|
2810
|
-
O(),
|
|
2811
|
-
S.welcome && /* @__PURE__ */ t(
|
|
2812
|
-
D,
|
|
2813
|
-
{
|
|
2814
|
-
level: "body-md",
|
|
2815
|
-
sx: {
|
|
2816
|
-
fontFamily: h.primary,
|
|
2817
|
-
fontWeight: 400,
|
|
2818
|
-
fontSize: "0.875rem",
|
|
2819
|
-
color: i ? "#fff" : o,
|
|
2820
|
-
textAlign: "center",
|
|
2821
|
-
zIndex: 1
|
|
2822
|
-
},
|
|
2823
|
-
children: S.welcome
|
|
2824
|
-
}
|
|
2825
|
-
),
|
|
2826
|
-
!F && S.instructions && /* @__PURE__ */ t(
|
|
2827
|
-
D,
|
|
2828
|
-
{
|
|
2829
|
-
level: "body-sm",
|
|
2830
|
-
sx: {
|
|
2831
|
-
fontFamily: h.secondary,
|
|
2832
|
-
fontWeight: 400,
|
|
2833
|
-
fontSize: "0.875rem",
|
|
2834
|
-
color: i ? "rgba(255,255,255,0.7)" : o,
|
|
2835
|
-
opacity: i ? 1 : 0.7,
|
|
2836
|
-
textAlign: "center",
|
|
2837
|
-
zIndex: 1
|
|
2838
|
-
},
|
|
2839
|
-
children: S.instructions
|
|
2840
|
-
}
|
|
2841
|
-
),
|
|
2842
|
-
H(),
|
|
2843
|
-
F && (A == null ? void 0 : A.results) && /* @__PURE__ */ t(
|
|
2844
|
-
nt,
|
|
2845
|
-
{
|
|
2846
|
-
result: A.results,
|
|
2847
|
-
variant: "embed",
|
|
2848
|
-
mode: "inline",
|
|
2849
|
-
contentColor: o,
|
|
2850
|
-
primaryColor: n,
|
|
2851
|
-
onPrimaryColor: r,
|
|
2852
|
-
disclaimer: S.disclaimer,
|
|
2853
|
-
enableReset: y,
|
|
2854
|
-
onReset: E,
|
|
2855
|
-
sx: { zIndex: 1 }
|
|
2856
|
-
}
|
|
2857
|
-
),
|
|
2858
|
-
!F && S.disclaimer && /* @__PURE__ */ t(
|
|
2859
|
-
D,
|
|
2860
|
-
{
|
|
2861
|
-
level: "body-sm",
|
|
2862
|
-
sx: {
|
|
2863
|
-
fontFamily: h.secondary,
|
|
2864
|
-
fontWeight: 400,
|
|
2865
|
-
fontSize: "0.625rem",
|
|
2866
|
-
color: i ? "rgba(255,255,255,0.7)" : o,
|
|
2867
|
-
opacity: i ? 1 : 0.7,
|
|
2868
|
-
textAlign: "center",
|
|
2869
|
-
maxWidth: "900px",
|
|
2870
|
-
lineHeight: 1.4,
|
|
2871
|
-
zIndex: 1
|
|
2872
|
-
},
|
|
2873
|
-
children: S.disclaimer
|
|
2874
|
-
}
|
|
2875
|
-
)
|
|
2876
|
-
]
|
|
2877
|
-
}
|
|
2878
|
-
)
|
|
2879
|
-
))
|
|
2880
|
-
]
|
|
2881
|
-
}
|
|
2882
|
-
);
|
|
2883
|
-
}, le = ({
|
|
2884
|
-
infoPage: e,
|
|
2885
|
-
enableReset: y = !1,
|
|
2886
|
-
forceMobile: o = !1
|
|
2887
|
-
}) => {
|
|
2888
|
-
var k, g, S, L, z, R, u, I, T, W;
|
|
2889
|
-
const n = o || Q(), r = tt(), f = ot(), i = mt() === "dark", s = (k = e.branding) == null ? void 0 : k.colors, a = (s == null ? void 0 : s.primary_color) || r.palette.primary.plainColor, l = (s == null ? void 0 : s.content_color) || r.textPrimary, p = r.palette.primary.onPrimary, x = (s == null ? void 0 : s.background_color) || r.surface, h = r.palette.danger.plainColor, c = n ? ((S = (g = e.branding) == null ? void 0 : g.images) == null ? void 0 : S.mobile_background_image) || ((z = (L = e.branding) == null ? void 0 : L.images) == null ? void 0 : z.background_image) || ((R = e.images) == null ? void 0 : R.cover) : ((I = (u = e.branding) == null ? void 0 : u.images) == null ? void 0 : I.background_image) || ((T = e.images) == null ? void 0 : T.cover), m = it(a, i), v = ((W = JSON.parse(e.body).config) == null ? void 0 : W.decorations) ?? !1;
|
|
2890
|
-
return /* @__PURE__ */ t(
|
|
2891
|
-
d,
|
|
2892
|
-
{
|
|
2893
|
-
sx: {
|
|
2894
|
-
display: "flex",
|
|
2895
|
-
flexDirection: "column",
|
|
2896
|
-
width: "100%",
|
|
2897
|
-
height: "100%",
|
|
2898
|
-
position: "relative",
|
|
2899
|
-
overflow: "auto",
|
|
2900
|
-
boxSizing: "border-box",
|
|
2901
|
-
background: c ? `url(${c}) center/cover no-repeat` : `
|
|
2902
|
-
radial-gradient(ellipse at 50% 40%, ${a}12 0%, transparent 60%),
|
|
2903
|
-
radial-gradient(ellipse at 50% 100%, ${a}08 0%, transparent 50%),
|
|
2904
|
-
${x}
|
|
2905
|
-
`,
|
|
2906
|
-
boxShadow: "inset 0 0 100px rgba(0, 0, 0, 0.04), inset 0 0 30px rgba(0, 0, 0, 0.02)",
|
|
2907
|
-
...v && {
|
|
2908
|
-
border: `1px solid ${m("15")}`,
|
|
2909
|
-
borderRadius: f.lg
|
|
2910
|
-
}
|
|
2911
|
-
},
|
|
2912
|
-
children: /* @__PURE__ */ t(
|
|
2913
|
-
Vt,
|
|
2914
|
-
{
|
|
2915
|
-
infoPage: e,
|
|
2916
|
-
enableReset: y,
|
|
2917
|
-
contentColor: l,
|
|
2918
|
-
primaryColor: a,
|
|
2919
|
-
onPrimaryColor: p,
|
|
2920
|
-
dangerColor: h,
|
|
2921
|
-
isDark: i,
|
|
2922
|
-
forceMobile: o
|
|
2923
|
-
}
|
|
2924
|
-
)
|
|
2925
|
-
}
|
|
2926
|
-
);
|
|
2927
|
-
}, Qt = {
|
|
2928
|
-
fast: { flipDuration: 600, labelRevealDelay: 800 },
|
|
2929
|
-
normal: { flipDuration: 900, labelRevealDelay: 1200 },
|
|
2930
|
-
slow: { flipDuration: 1500, labelRevealDelay: 2e3 }
|
|
2931
|
-
}, Kt = {
|
|
2932
|
-
fast: { crossfadeDuration: 250, revealPause: 100 },
|
|
2933
|
-
normal: { crossfadeDuration: 500, revealPause: 300 },
|
|
2934
|
-
slow: { crossfadeDuration: 800, revealPause: 600 }
|
|
2935
|
-
}, Rt = 1200;
|
|
2936
|
-
function Pt({
|
|
2937
|
-
segments: e,
|
|
2938
|
-
mode: y,
|
|
2939
|
-
pace: o,
|
|
2940
|
-
revealAll: n
|
|
2941
|
-
}) {
|
|
2942
|
-
const [r, f] = Y(null), [i, s] = Y(null), [a, l] = Y(
|
|
2943
|
-
null
|
|
2944
|
-
), [p, x] = Y(!1), [h, c] = Y(!1), [m, v] = Y(!1), [k, g] = Y(!1), [S, L] = Y(!1), [z, R] = Y(/* @__PURE__ */ new Set()), [u, I] = Y(
|
|
2945
|
-
/* @__PURE__ */ new Set()
|
|
2946
|
-
), [T, W] = Y(
|
|
2947
|
-
/* @__PURE__ */ new Set()
|
|
2948
|
-
), { flipDuration: A, labelRevealDelay: b } = Qt[o], { crossfadeDuration: $, revealPause: F } = Kt[o], _ = 1e3 + (n ? e.length * 200 : 0);
|
|
2949
|
-
return ft(() => {
|
|
2950
|
-
const X = setTimeout(() => L(!0), 100);
|
|
2951
|
-
return () => clearTimeout(X);
|
|
2952
|
-
}, []), {
|
|
2953
|
-
// State
|
|
2954
|
-
selectedSegment: r,
|
|
2955
|
-
displaySegments: i,
|
|
2956
|
-
revealResult: a,
|
|
2957
|
-
showResultScreen: p,
|
|
2958
|
-
showInlineResult: h,
|
|
2959
|
-
isRevealing: m,
|
|
2960
|
-
showLoseAnimation: k,
|
|
2961
|
-
hasEntered: S,
|
|
2962
|
-
flippedCards: z,
|
|
2963
|
-
crossfadedCards: u,
|
|
2964
|
-
revealedOtherCards: T,
|
|
2965
|
-
// Timing
|
|
2966
|
-
flipDuration: A,
|
|
2967
|
-
crossfadeDuration: $,
|
|
2968
|
-
loseAnimationDuration: Rt,
|
|
2969
|
-
// Actions
|
|
2970
|
-
handlePick: (X, M) => {
|
|
2971
|
-
var K, C;
|
|
2972
|
-
if (m || r) return;
|
|
2973
|
-
v(!0);
|
|
2974
|
-
const G = ut(e, y), E = `card-${X}`;
|
|
2975
|
-
if (n) {
|
|
2976
|
-
const U = e.findIndex(
|
|
2977
|
-
(J) => J.id === G.id
|
|
2978
|
-
);
|
|
2979
|
-
if (U !== X) {
|
|
2980
|
-
const J = [...e];
|
|
2981
|
-
J[X] = e[U], J[U] = e[X], s(J);
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
2984
|
-
const O = ((K = G.results) == null ? void 0 : K.primaryCTA) || ((C = G.results) == null ? void 0 : C.secondaryCTA), H = () => {
|
|
2985
|
-
if (f(G), n) {
|
|
2986
|
-
const U = e.map((Z, P) => `card-${P}`).filter((Z) => Z !== E), J = 200;
|
|
2987
|
-
U.forEach((Z, P) => {
|
|
2988
|
-
setTimeout(
|
|
2989
|
-
() => {
|
|
2990
|
-
W((V) => /* @__PURE__ */ new Set([...V, Z]));
|
|
2991
|
-
},
|
|
2992
|
-
(P + 1) * J
|
|
2993
|
-
);
|
|
2994
|
-
});
|
|
2995
|
-
}
|
|
2996
|
-
G.isWinning ? setTimeout(() => {
|
|
2997
|
-
O ? x(!0) : c(!0);
|
|
2998
|
-
}, _) : (g(!0), setTimeout(() => {
|
|
2999
|
-
g(!1), setTimeout(() => {
|
|
3000
|
-
O ? x(!0) : c(!0);
|
|
3001
|
-
}, _);
|
|
3002
|
-
}, Rt)), v(!1);
|
|
3003
|
-
};
|
|
3004
|
-
M ? (l(G), I(/* @__PURE__ */ new Set([E])), setTimeout(() => {
|
|
3005
|
-
H();
|
|
3006
|
-
}, $ + F)) : (R(/* @__PURE__ */ new Set([E])), setTimeout(() => {
|
|
3007
|
-
H();
|
|
3008
|
-
}, b));
|
|
3009
|
-
},
|
|
3010
|
-
handleReset: () => {
|
|
3011
|
-
f(null), x(!1), c(!1), v(!1), R(/* @__PURE__ */ new Set()), I(/* @__PURE__ */ new Set()), l(null), W(/* @__PURE__ */ new Set()), s(null), g(!1), L(!1), setTimeout(() => L(!0), 100);
|
|
3012
|
-
}
|
|
3013
|
-
};
|
|
3014
|
-
}
|
|
3015
|
-
const te = ({
|
|
3016
|
-
segment: e,
|
|
3017
|
-
index: y,
|
|
3018
|
-
selectedSegment: o,
|
|
3019
|
-
revealResult: n,
|
|
3020
|
-
isCrossfaded: r,
|
|
3021
|
-
isOtherRevealed: f,
|
|
3022
|
-
shouldDim: i,
|
|
3023
|
-
isRevealed: s,
|
|
3024
|
-
hasEntered: a,
|
|
3025
|
-
objectSize: l,
|
|
3026
|
-
crossfadeDuration: p,
|
|
3027
|
-
isStandard: x,
|
|
3028
|
-
primaryColor: h,
|
|
3029
|
-
dangerColor: c,
|
|
3030
|
-
onPick: m
|
|
3031
|
-
}) => {
|
|
3032
|
-
var R, u, I;
|
|
3033
|
-
const v = Q(), k = rt(), g = !!((R = e.images) != null && R.idle), S = r && ((u = n == null ? void 0 : n.images) != null && u.revealed) ? n.images.revealed : (I = e.images) == null ? void 0 : I.revealed, L = !!S, z = r && s;
|
|
3034
|
-
return /* @__PURE__ */ w(
|
|
3035
|
-
d,
|
|
3036
|
-
{
|
|
3037
|
-
onClick: () => !s && m(),
|
|
3038
|
-
sx: {
|
|
3039
|
-
width: `${l}px`,
|
|
3040
|
-
height: `${l}px`,
|
|
3041
|
-
cursor: s ? "default" : "pointer",
|
|
3042
|
-
position: "relative",
|
|
3043
|
-
flexShrink: 0,
|
|
3044
|
-
opacity: i ? 0.4 : f ? 0.65 : 1,
|
|
3045
|
-
transform: i ? "scale(0.95) translateY(4px)" : f ? "scale(0.95)" : "none",
|
|
3046
|
-
filter: i ? "grayscale(0.5)" : f ? "grayscale(0.3)" : "none",
|
|
3047
|
-
transition: "opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease",
|
|
3048
|
-
overflow: "visible",
|
|
3049
|
-
boxShadow: "none",
|
|
3050
|
-
border: "none",
|
|
3051
|
-
outline: "none",
|
|
3052
|
-
background: "transparent",
|
|
3053
|
-
animation: !s && a ? "cardFloat 3s ease-in-out infinite" : "none",
|
|
3054
|
-
animationDelay: `${y * 0.15}s`,
|
|
3055
|
-
"@keyframes cardFloat": {
|
|
3056
|
-
"0%, 100%": {
|
|
3057
|
-
transform: "translateY(0px) scale(1)"
|
|
3058
|
-
},
|
|
3059
|
-
"50%": {
|
|
3060
|
-
transform: `translateY(${v ? "-1px" : "-3px"}) scale(${v ? 1.003 : 1.008})`
|
|
3061
|
-
}
|
|
3062
|
-
},
|
|
3063
|
-
"&:hover": s ? {} : {
|
|
3064
|
-
transform: "translateY(-4px) scale(1.08)"
|
|
3065
|
-
}
|
|
3066
|
-
},
|
|
3067
|
-
children: [
|
|
3068
|
-
g && /* @__PURE__ */ t(
|
|
3069
|
-
d,
|
|
3070
|
-
{
|
|
3071
|
-
component: "img",
|
|
3072
|
-
src: e.images.idle,
|
|
3073
|
-
alt: e.label,
|
|
3074
|
-
sx: {
|
|
3075
|
-
width: "100%",
|
|
3076
|
-
height: "100%",
|
|
3077
|
-
objectFit: "contain",
|
|
3078
|
-
borderRadius: "inherit",
|
|
3079
|
-
position: "absolute",
|
|
3080
|
-
top: 0,
|
|
3081
|
-
left: 0,
|
|
3082
|
-
zIndex: 1,
|
|
3083
|
-
opacity: (r || f) && L ? 0 : 1,
|
|
3084
|
-
transform: (r || f) && L ? "scale(0.95)" : "scale(1)",
|
|
3085
|
-
transition: `opacity ${p}ms ease, transform ${p}ms ease`
|
|
3086
|
-
}
|
|
3087
|
-
}
|
|
3088
|
-
),
|
|
3089
|
-
L && /* @__PURE__ */ t(
|
|
3090
|
-
d,
|
|
3091
|
-
{
|
|
3092
|
-
component: "img",
|
|
3093
|
-
src: S,
|
|
3094
|
-
alt: `${e.label} revealed`,
|
|
3095
|
-
sx: {
|
|
3096
|
-
width: "100%",
|
|
3097
|
-
height: "100%",
|
|
3098
|
-
objectFit: "contain",
|
|
3099
|
-
borderRadius: "inherit",
|
|
3100
|
-
position: "absolute",
|
|
3101
|
-
top: 0,
|
|
3102
|
-
left: 0,
|
|
3103
|
-
zIndex: 2,
|
|
3104
|
-
opacity: r || f ? 1 : 0,
|
|
3105
|
-
transform: r || f ? "scale(1)" : "scale(1.05)",
|
|
3106
|
-
transition: `opacity ${p}ms ease, transform ${p}ms ease`
|
|
3107
|
-
}
|
|
3108
|
-
}
|
|
3109
|
-
),
|
|
3110
|
-
(z || f) && o && /* @__PURE__ */ t(
|
|
3111
|
-
d,
|
|
3112
|
-
{
|
|
3113
|
-
sx: {
|
|
3114
|
-
position: "absolute",
|
|
3115
|
-
...x ? { top: "100%" } : { bottom: 0 },
|
|
3116
|
-
left: 0,
|
|
3117
|
-
width: "100%",
|
|
3118
|
-
background: "transparent",
|
|
3119
|
-
zIndex: 5,
|
|
3120
|
-
boxSizing: "border-box",
|
|
3121
|
-
animation: "labelFadeIn 0.4s ease-out",
|
|
3122
|
-
"@keyframes labelFadeIn": {
|
|
3123
|
-
"0%": {
|
|
3124
|
-
opacity: 0,
|
|
3125
|
-
transform: "translateY(4px)"
|
|
3126
|
-
},
|
|
3127
|
-
"100%": {
|
|
3128
|
-
opacity: 1,
|
|
3129
|
-
transform: "translateY(0)"
|
|
3130
|
-
}
|
|
3131
|
-
}
|
|
3132
|
-
},
|
|
3133
|
-
children: /* @__PURE__ */ t(
|
|
3134
|
-
D,
|
|
3135
|
-
{
|
|
3136
|
-
level: "body-sm",
|
|
3137
|
-
sx: {
|
|
3138
|
-
fontFamily: k.primary,
|
|
3139
|
-
fontWeight: 600,
|
|
3140
|
-
fontSize: v ? "0.7rem" : "0.875rem",
|
|
3141
|
-
color: e.color ? e.color : z ? o.isWinning ? h : c : e.isWinning ? h : c,
|
|
3142
|
-
textAlign: "center",
|
|
3143
|
-
wordBreak: "break-word",
|
|
3144
|
-
textTransform: "uppercase",
|
|
3145
|
-
letterSpacing: "0.05em",
|
|
3146
|
-
lineHeight: 1.2
|
|
3147
|
-
},
|
|
3148
|
-
children: z ? o.label : e.label
|
|
3149
|
-
}
|
|
3150
|
-
)
|
|
3151
|
-
}
|
|
3152
|
-
)
|
|
3153
|
-
]
|
|
3154
|
-
}
|
|
3155
|
-
);
|
|
3156
|
-
}, ee = ({
|
|
3157
|
-
segment: e,
|
|
3158
|
-
index: y,
|
|
3159
|
-
selectedSegment: o,
|
|
3160
|
-
isFlipped: n,
|
|
3161
|
-
isOtherRevealed: r,
|
|
3162
|
-
shouldDim: f,
|
|
3163
|
-
isRevealed: i,
|
|
3164
|
-
showLoseAnimation: s,
|
|
3165
|
-
hasEntered: a,
|
|
3166
|
-
cardWidth: l,
|
|
3167
|
-
cardHeight: p,
|
|
3168
|
-
flipDuration: x,
|
|
3169
|
-
loseAnimationDuration: h,
|
|
3170
|
-
cardBaseColor: c,
|
|
3171
|
-
shimmerColor: m,
|
|
3172
|
-
primaryColor: v,
|
|
3173
|
-
contentColor: k,
|
|
3174
|
-
dangerColor: g,
|
|
3175
|
-
borderColor: S,
|
|
3176
|
-
brandingLogo: L,
|
|
3177
|
-
compactCards: z,
|
|
3178
|
-
onPick: R
|
|
3179
|
-
}) => {
|
|
3180
|
-
const u = Q(), I = tt(), T = ot(), W = rt(), A = dt(), b = e.color || v, $ = I.palette.success.plainColor, F = n && i;
|
|
3181
|
-
return /* @__PURE__ */ w(
|
|
3182
|
-
d,
|
|
3183
|
-
{
|
|
3184
|
-
onClick: () => !i && R(),
|
|
3185
|
-
sx: {
|
|
3186
|
-
width: `${l}px`,
|
|
3187
|
-
height: `${p}px`,
|
|
3188
|
-
cursor: i ? "default" : "pointer",
|
|
3189
|
-
perspective: "1000px",
|
|
3190
|
-
opacity: f ? 0.4 : r ? 0.65 : 1,
|
|
3191
|
-
transform: f ? "scale(0.95) translateY(4px)" : r ? "scale(0.95)" : "none",
|
|
3192
|
-
filter: f ? "grayscale(0.5)" : r ? "grayscale(0.3)" : "none",
|
|
3193
|
-
transition: "opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease",
|
|
3194
|
-
position: "relative",
|
|
3195
|
-
flexShrink: 0
|
|
3196
|
-
},
|
|
3197
|
-
children: [
|
|
3198
|
-
/* @__PURE__ */ w(
|
|
3199
|
-
d,
|
|
3200
|
-
{
|
|
3201
|
-
sx: {
|
|
3202
|
-
position: "relative",
|
|
3203
|
-
width: "100%",
|
|
3204
|
-
height: "100%",
|
|
3205
|
-
transformStyle: "preserve-3d",
|
|
3206
|
-
transition: `transform ${x}ms cubic-bezier(0.4, 0.0, 0.2, 1.1)`,
|
|
3207
|
-
transform: n || r ? "rotateY(180deg)" : "rotateY(0deg)",
|
|
3208
|
-
transformOrigin: "center center"
|
|
3209
|
-
},
|
|
3210
|
-
children: [
|
|
3211
|
-
/* @__PURE__ */ w(
|
|
3212
|
-
d,
|
|
3213
|
-
{
|
|
3214
|
-
sx: {
|
|
3215
|
-
position: "absolute",
|
|
3216
|
-
top: 0,
|
|
3217
|
-
left: 0,
|
|
3218
|
-
width: "100%",
|
|
3219
|
-
height: "100%",
|
|
3220
|
-
backfaceVisibility: "hidden",
|
|
3221
|
-
borderRadius: T.lg,
|
|
3222
|
-
background: `linear-gradient(145deg, ${b}10 0%, ${b}18 30%, ${c} 50%, ${b}12 70%, ${b}22 100%)`,
|
|
3223
|
-
border: `2px solid ${S || b}`,
|
|
3224
|
-
outline: `1px solid ${S || b}30`,
|
|
3225
|
-
outlineOffset: "2px",
|
|
3226
|
-
boxShadow: i ? "0 2px 8px rgba(0,0,0,0.15)" : `0 1px 2px rgba(0,0,0,0.08),
|
|
3227
|
-
0 4px 8px rgba(0,0,0,0.12),
|
|
3228
|
-
0 12px 24px rgba(0,0,0,0.18),
|
|
3229
|
-
0 0 0 1px ${b}15,
|
|
3230
|
-
inset 0 1px 0 ${m}4D,
|
|
3231
|
-
inset 0 -1px 0 rgba(0,0,0,0.05)`,
|
|
3232
|
-
display: "flex",
|
|
3233
|
-
flexDirection: "column",
|
|
3234
|
-
alignItems: "center",
|
|
3235
|
-
justifyContent: "center",
|
|
3236
|
-
padding: u ? A.xs : A.sm,
|
|
3237
|
-
transition: "all 0.3s ease",
|
|
3238
|
-
overflow: "hidden",
|
|
3239
|
-
pointerEvents: i ? "none" : "auto",
|
|
3240
|
-
boxSizing: "border-box",
|
|
3241
|
-
animation: !i && a ? "cardFloat 3s ease-in-out infinite" : "none",
|
|
3242
|
-
animationDelay: `${y * 0.15}s`,
|
|
3243
|
-
"@keyframes cardFloat": {
|
|
3244
|
-
"0%, 100%": {
|
|
3245
|
-
transform: "translateY(0px) scale(1)"
|
|
3246
|
-
},
|
|
3247
|
-
"50%": {
|
|
3248
|
-
transform: `translateY(${u ? "-1px" : "-3px"}) scale(${u ? 1.003 : 1.008})`
|
|
3249
|
-
}
|
|
3250
|
-
},
|
|
3251
|
-
"&::after": {
|
|
3252
|
-
content: '""',
|
|
3253
|
-
position: "absolute",
|
|
3254
|
-
top: 0,
|
|
3255
|
-
left: 0,
|
|
3256
|
-
width: "100%",
|
|
3257
|
-
height: "100%",
|
|
3258
|
-
background: `linear-gradient(125deg, transparent 0%, transparent 40%, ${m}59 45%, ${m}1A 50%, transparent 55%, transparent 100%)`,
|
|
3259
|
-
borderRadius: "inherit",
|
|
3260
|
-
pointerEvents: "none",
|
|
3261
|
-
zIndex: 4
|
|
3262
|
-
},
|
|
3263
|
-
"&::before": u ? {} : {
|
|
3264
|
-
content: '""',
|
|
3265
|
-
position: "absolute",
|
|
3266
|
-
top: "-50%",
|
|
3267
|
-
left: "-50%",
|
|
3268
|
-
width: "200%",
|
|
3269
|
-
height: "200%",
|
|
3270
|
-
background: `linear-gradient(90deg, transparent 0%, ${m}08 25%, ${m}1F 50%, ${m}08 75%, transparent 100%)`,
|
|
3271
|
-
transform: "rotate(25deg) translateX(-100%)",
|
|
3272
|
-
animation: "shimmer 4s ease-in-out infinite",
|
|
3273
|
-
animationDelay: `${y * 0.5}s`,
|
|
3274
|
-
pointerEvents: "none",
|
|
3275
|
-
zIndex: 5
|
|
3276
|
-
},
|
|
3277
|
-
"@keyframes shimmer": {
|
|
3278
|
-
"0%": {
|
|
3279
|
-
transform: "rotate(25deg) translateX(-100%)"
|
|
3280
|
-
},
|
|
3281
|
-
"100%": {
|
|
3282
|
-
transform: "rotate(25deg) translateX(100%)"
|
|
3283
|
-
}
|
|
3284
|
-
},
|
|
3285
|
-
"&:hover": i ? {} : {
|
|
3286
|
-
transform: "translateY(-8px) scale(1.04) rotateX(2deg)",
|
|
3287
|
-
boxShadow: `0 2px 4px rgba(0,0,0,0.1),
|
|
3288
|
-
0 8px 16px rgba(0,0,0,0.15),
|
|
3289
|
-
0 20px 40px ${b}35,
|
|
3290
|
-
0 0 20px ${b}20`
|
|
3291
|
-
}
|
|
3292
|
-
},
|
|
3293
|
-
children: [
|
|
3294
|
-
/* @__PURE__ */ w(
|
|
3295
|
-
"svg",
|
|
3296
|
-
{
|
|
3297
|
-
style: {
|
|
3298
|
-
position: "absolute",
|
|
3299
|
-
top: 0,
|
|
3300
|
-
left: 0,
|
|
3301
|
-
width: "100%",
|
|
3302
|
-
height: "100%",
|
|
3303
|
-
opacity: 0.1
|
|
3304
|
-
},
|
|
3305
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3306
|
-
children: [
|
|
3307
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ w(
|
|
3308
|
-
"pattern",
|
|
3309
|
-
{
|
|
3310
|
-
id: `card-pattern-${y}`,
|
|
3311
|
-
x: "0",
|
|
3312
|
-
y: "0",
|
|
3313
|
-
width: "50",
|
|
3314
|
-
height: "50",
|
|
3315
|
-
patternUnits: "userSpaceOnUse",
|
|
3316
|
-
children: [
|
|
3317
|
-
/* @__PURE__ */ t(
|
|
3318
|
-
"path",
|
|
3319
|
-
{
|
|
3320
|
-
d: "M 25 8 L 33 25 L 25 42 L 17 25 Z",
|
|
3321
|
-
fill: b,
|
|
3322
|
-
opacity: "0.8"
|
|
3323
|
-
}
|
|
3324
|
-
),
|
|
3325
|
-
/* @__PURE__ */ t(
|
|
3326
|
-
"path",
|
|
3327
|
-
{
|
|
3328
|
-
d: "M 5 5 Q 14 5 14 14",
|
|
3329
|
-
stroke: b,
|
|
3330
|
-
fill: "none",
|
|
3331
|
-
strokeWidth: "1",
|
|
3332
|
-
opacity: "0.5"
|
|
3333
|
-
}
|
|
3334
|
-
),
|
|
3335
|
-
/* @__PURE__ */ t(
|
|
3336
|
-
"path",
|
|
3337
|
-
{
|
|
3338
|
-
d: "M 45 5 Q 36 5 36 14",
|
|
3339
|
-
stroke: b,
|
|
3340
|
-
fill: "none",
|
|
3341
|
-
strokeWidth: "1",
|
|
3342
|
-
opacity: "0.5"
|
|
3343
|
-
}
|
|
3344
|
-
),
|
|
3345
|
-
/* @__PURE__ */ t(
|
|
3346
|
-
"path",
|
|
3347
|
-
{
|
|
3348
|
-
d: "M 5 45 Q 14 45 14 36",
|
|
3349
|
-
stroke: b,
|
|
3350
|
-
fill: "none",
|
|
3351
|
-
strokeWidth: "1",
|
|
3352
|
-
opacity: "0.5"
|
|
3353
|
-
}
|
|
3354
|
-
),
|
|
3355
|
-
/* @__PURE__ */ t(
|
|
3356
|
-
"path",
|
|
3357
|
-
{
|
|
3358
|
-
d: "M 45 45 Q 36 45 36 36",
|
|
3359
|
-
stroke: b,
|
|
3360
|
-
fill: "none",
|
|
3361
|
-
strokeWidth: "1",
|
|
3362
|
-
opacity: "0.5"
|
|
3363
|
-
}
|
|
3364
|
-
),
|
|
3365
|
-
/* @__PURE__ */ t(
|
|
3366
|
-
"circle",
|
|
3367
|
-
{
|
|
3368
|
-
cx: "5",
|
|
3369
|
-
cy: "5",
|
|
3370
|
-
r: "1.5",
|
|
3371
|
-
fill: b,
|
|
3372
|
-
opacity: "0.4"
|
|
3373
|
-
}
|
|
3374
|
-
),
|
|
3375
|
-
/* @__PURE__ */ t(
|
|
3376
|
-
"circle",
|
|
3377
|
-
{
|
|
3378
|
-
cx: "45",
|
|
3379
|
-
cy: "5",
|
|
3380
|
-
r: "1.5",
|
|
3381
|
-
fill: b,
|
|
3382
|
-
opacity: "0.4"
|
|
3383
|
-
}
|
|
3384
|
-
),
|
|
3385
|
-
/* @__PURE__ */ t(
|
|
3386
|
-
"circle",
|
|
3387
|
-
{
|
|
3388
|
-
cx: "5",
|
|
3389
|
-
cy: "45",
|
|
3390
|
-
r: "1.5",
|
|
3391
|
-
fill: b,
|
|
3392
|
-
opacity: "0.4"
|
|
3393
|
-
}
|
|
3394
|
-
),
|
|
3395
|
-
/* @__PURE__ */ t(
|
|
3396
|
-
"circle",
|
|
3397
|
-
{
|
|
3398
|
-
cx: "45",
|
|
3399
|
-
cy: "45",
|
|
3400
|
-
r: "1.5",
|
|
3401
|
-
fill: b,
|
|
3402
|
-
opacity: "0.4"
|
|
3403
|
-
}
|
|
3404
|
-
)
|
|
3405
|
-
]
|
|
3406
|
-
}
|
|
3407
|
-
) }),
|
|
3408
|
-
/* @__PURE__ */ t(
|
|
3409
|
-
"rect",
|
|
3410
|
-
{
|
|
3411
|
-
width: "100%",
|
|
3412
|
-
height: "100%",
|
|
3413
|
-
fill: `url(#card-pattern-${y})`
|
|
3414
|
-
}
|
|
3415
|
-
)
|
|
3416
|
-
]
|
|
3417
|
-
}
|
|
3418
|
-
),
|
|
3419
|
-
/* @__PURE__ */ t(
|
|
3420
|
-
d,
|
|
3421
|
-
{
|
|
3422
|
-
sx: {
|
|
3423
|
-
position: "absolute",
|
|
3424
|
-
top: "6px",
|
|
3425
|
-
left: "6px",
|
|
3426
|
-
width: u ? "12px" : "16px",
|
|
3427
|
-
height: u ? "12px" : "16px",
|
|
3428
|
-
borderTop: `2px solid ${b}60`,
|
|
3429
|
-
borderLeft: `2px solid ${b}60`,
|
|
3430
|
-
borderRadius: `${T.sm} 0 0 0`,
|
|
3431
|
-
zIndex: 2
|
|
3432
|
-
}
|
|
3433
|
-
}
|
|
3434
|
-
),
|
|
3435
|
-
/* @__PURE__ */ t(
|
|
3436
|
-
d,
|
|
3437
|
-
{
|
|
3438
|
-
sx: {
|
|
3439
|
-
position: "absolute",
|
|
3440
|
-
top: "6px",
|
|
3441
|
-
right: "6px",
|
|
3442
|
-
width: u ? "12px" : "16px",
|
|
3443
|
-
height: u ? "12px" : "16px",
|
|
3444
|
-
borderTop: `2px solid ${b}60`,
|
|
3445
|
-
borderRight: `2px solid ${b}60`,
|
|
3446
|
-
borderRadius: `0 ${T.sm} 0 0`,
|
|
3447
|
-
zIndex: 2
|
|
3448
|
-
}
|
|
3449
|
-
}
|
|
3450
|
-
),
|
|
3451
|
-
/* @__PURE__ */ t(
|
|
3452
|
-
d,
|
|
3453
|
-
{
|
|
3454
|
-
sx: {
|
|
3455
|
-
position: "absolute",
|
|
3456
|
-
bottom: "6px",
|
|
3457
|
-
left: "6px",
|
|
3458
|
-
width: u ? "12px" : "16px",
|
|
3459
|
-
height: u ? "12px" : "16px",
|
|
3460
|
-
borderBottom: `2px solid ${b}60`,
|
|
3461
|
-
borderLeft: `2px solid ${b}60`,
|
|
3462
|
-
borderRadius: `0 0 0 ${T.sm}`,
|
|
3463
|
-
zIndex: 2
|
|
3464
|
-
}
|
|
3465
|
-
}
|
|
3466
|
-
),
|
|
3467
|
-
/* @__PURE__ */ t(
|
|
3468
|
-
d,
|
|
3469
|
-
{
|
|
3470
|
-
sx: {
|
|
3471
|
-
position: "absolute",
|
|
3472
|
-
bottom: "6px",
|
|
3473
|
-
right: "6px",
|
|
3474
|
-
width: u ? "12px" : "16px",
|
|
3475
|
-
height: u ? "12px" : "16px",
|
|
3476
|
-
borderBottom: `2px solid ${b}60`,
|
|
3477
|
-
borderRight: `2px solid ${b}60`,
|
|
3478
|
-
borderRadius: `0 0 ${T.sm} 0`,
|
|
3479
|
-
zIndex: 2
|
|
3480
|
-
}
|
|
3481
|
-
}
|
|
3482
|
-
),
|
|
3483
|
-
L ? /* @__PURE__ */ t(
|
|
3484
|
-
d,
|
|
3485
|
-
{
|
|
3486
|
-
component: "img",
|
|
3487
|
-
src: L,
|
|
3488
|
-
alt: "Logo",
|
|
3489
|
-
sx: {
|
|
3490
|
-
maxWidth: z ? u ? "55px" : "80px" : u ? "70px" : "100px",
|
|
3491
|
-
maxHeight: z ? u ? "30px" : "42px" : u ? "40px" : "55px",
|
|
3492
|
-
width: "auto",
|
|
3493
|
-
height: "auto",
|
|
3494
|
-
objectFit: "contain",
|
|
3495
|
-
zIndex: 3,
|
|
3496
|
-
filter: "drop-shadow(0 2px 8px rgba(0,0,0,0.15))",
|
|
3497
|
-
opacity: 0.85
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
) : /* @__PURE__ */ t(
|
|
3501
|
-
D,
|
|
3502
|
-
{
|
|
3503
|
-
level: "h1",
|
|
3504
|
-
sx: {
|
|
3505
|
-
fontFamily: W.primary,
|
|
3506
|
-
fontWeight: 900,
|
|
3507
|
-
fontSize: z ? u ? "1.75rem" : "2.5rem" : u ? "2.5rem" : "3.5rem",
|
|
3508
|
-
backgroundImage: `linear-gradient(180deg, ${b} 0%, ${b}BB 40%, ${b}DD 60%, ${b} 100%)`,
|
|
3509
|
-
backgroundClip: "text",
|
|
3510
|
-
WebkitBackgroundClip: "text",
|
|
3511
|
-
WebkitTextFillColor: "transparent",
|
|
3512
|
-
filter: "drop-shadow(0 2px 3px rgba(0,0,0,0.2))",
|
|
3513
|
-
zIndex: 3,
|
|
3514
|
-
userSelect: "none"
|
|
3515
|
-
},
|
|
3516
|
-
children: "?"
|
|
3517
|
-
}
|
|
3518
|
-
)
|
|
3519
|
-
]
|
|
3520
|
-
}
|
|
3521
|
-
),
|
|
3522
|
-
/* @__PURE__ */ t(
|
|
3523
|
-
d,
|
|
3524
|
-
{
|
|
3525
|
-
sx: {
|
|
3526
|
-
position: "absolute",
|
|
3527
|
-
top: 0,
|
|
3528
|
-
left: 0,
|
|
3529
|
-
width: "100%",
|
|
3530
|
-
height: "100%",
|
|
3531
|
-
backfaceVisibility: "hidden",
|
|
3532
|
-
transform: "rotateY(180deg)",
|
|
3533
|
-
borderRadius: T.lg,
|
|
3534
|
-
background: `linear-gradient(135deg, ${I.surface} 0%, ${I.surfaceVariant} 40%, ${I.surface} 100%)`,
|
|
3535
|
-
border: `3px solid ${F && o ? o.isWinning ? $ : g : r ? e.isWinning ? $ : g : I.outlineEnabledBorder}`,
|
|
3536
|
-
boxShadow: F && o ? o.isWinning ? `0 0 10px ${$}60, 0 0 30px ${$}30, 0 8px 24px ${$}40, inset 0 0 20px ${$}10` : `0 8px 24px ${g}60` : "0 4px 12px rgba(0,0,0,0.15)",
|
|
3537
|
-
display: "flex",
|
|
3538
|
-
flexDirection: "column",
|
|
3539
|
-
alignItems: "center",
|
|
3540
|
-
justifyContent: "center",
|
|
3541
|
-
padding: u ? A.xs : A.sm,
|
|
3542
|
-
overflow: "hidden",
|
|
3543
|
-
boxSizing: "border-box",
|
|
3544
|
-
animation: F && o ? o.isWinning ? "winGlow 1.5s ease-in-out infinite" : s ? `loseShake ${h}ms ease-in-out` : "none" : "none",
|
|
3545
|
-
"@keyframes winGlow": {
|
|
3546
|
-
"0%, 100%": {
|
|
3547
|
-
boxShadow: `0 0 10px ${$}60, 0 0 30px ${$}30, 0 8px 24px ${$}40`
|
|
3548
|
-
},
|
|
3549
|
-
"50%": {
|
|
3550
|
-
boxShadow: `0 0 20px ${$}80, 0 0 50px ${$}50, 0 8px 24px ${$}60`
|
|
3551
|
-
}
|
|
3552
|
-
},
|
|
3553
|
-
"@keyframes loseShake": {
|
|
3554
|
-
"0%": {
|
|
3555
|
-
transform: "rotateY(180deg) translateX(0)",
|
|
3556
|
-
boxShadow: `0 0 0 ${g}00`
|
|
3557
|
-
},
|
|
3558
|
-
"10%": {
|
|
3559
|
-
transform: "rotateY(180deg) translateX(-4px)",
|
|
3560
|
-
boxShadow: `0 0 20px ${g}50`
|
|
3561
|
-
},
|
|
3562
|
-
"20%": {
|
|
3563
|
-
transform: "rotateY(180deg) translateX(4px)"
|
|
3564
|
-
},
|
|
3565
|
-
"30%": {
|
|
3566
|
-
transform: "rotateY(180deg) translateX(-3px)"
|
|
3567
|
-
},
|
|
3568
|
-
"40%": {
|
|
3569
|
-
transform: "rotateY(180deg) translateX(3px)",
|
|
3570
|
-
boxShadow: `0 0 30px ${g}60`
|
|
3571
|
-
},
|
|
3572
|
-
"50%": {
|
|
3573
|
-
transform: "rotateY(180deg) translateX(-2px)"
|
|
3574
|
-
},
|
|
3575
|
-
"60%": {
|
|
3576
|
-
transform: "rotateY(180deg) translateX(2px)"
|
|
3577
|
-
},
|
|
3578
|
-
"70%": {
|
|
3579
|
-
transform: "rotateY(180deg) translateX(-1px)",
|
|
3580
|
-
boxShadow: `0 0 10px ${g}30`
|
|
3581
|
-
},
|
|
3582
|
-
"80%": {
|
|
3583
|
-
transform: "rotateY(180deg) translateX(1px)"
|
|
3584
|
-
},
|
|
3585
|
-
"100%": {
|
|
3586
|
-
transform: "rotateY(180deg) translateX(0)",
|
|
3587
|
-
boxShadow: `0 8px 24px ${g}60`
|
|
3588
|
-
}
|
|
3589
|
-
}
|
|
3590
|
-
},
|
|
3591
|
-
children: (o || r) && /* @__PURE__ */ t(
|
|
3592
|
-
D,
|
|
3593
|
-
{
|
|
3594
|
-
level: "h3",
|
|
3595
|
-
sx: {
|
|
3596
|
-
fontFamily: W.primary,
|
|
3597
|
-
fontWeight: 800,
|
|
3598
|
-
fontSize: u ? "0.875rem" : "1.125rem",
|
|
3599
|
-
color: F && (o != null && o.isWinning) || r && e.isWinning ? $ : k,
|
|
3600
|
-
textAlign: "center",
|
|
3601
|
-
wordBreak: "break-word",
|
|
3602
|
-
textTransform: "uppercase",
|
|
3603
|
-
letterSpacing: "0.05em",
|
|
3604
|
-
textShadow: F && (o != null && o.isWinning) || r && e.isWinning ? `0 0 10px ${$}40` : "none",
|
|
3605
|
-
animation: "labelFadeIn 0.4s ease-out",
|
|
3606
|
-
"@keyframes labelFadeIn": {
|
|
3607
|
-
"0%": {
|
|
3608
|
-
opacity: 0,
|
|
3609
|
-
transform: "scale(0.8)"
|
|
3610
|
-
},
|
|
3611
|
-
"100%": {
|
|
3612
|
-
opacity: 1,
|
|
3613
|
-
transform: "scale(1)"
|
|
3614
|
-
}
|
|
3615
|
-
}
|
|
3616
|
-
},
|
|
3617
|
-
children: r ? e.label : o == null ? void 0 : o.label
|
|
3618
|
-
}
|
|
3619
|
-
)
|
|
3620
|
-
}
|
|
3621
|
-
)
|
|
3622
|
-
]
|
|
3623
|
-
}
|
|
3624
|
-
),
|
|
3625
|
-
F && (o == null ? void 0 : o.isWinning) && /* @__PURE__ */ t(
|
|
3626
|
-
d,
|
|
3627
|
-
{
|
|
3628
|
-
sx: {
|
|
3629
|
-
position: "absolute",
|
|
3630
|
-
top: "50%",
|
|
3631
|
-
left: "50%",
|
|
3632
|
-
width: 0,
|
|
3633
|
-
height: 0,
|
|
3634
|
-
borderRadius: "50%",
|
|
3635
|
-
background: `radial-gradient(circle, ${$}40 0%, transparent 70%)`,
|
|
3636
|
-
animation: "glowBurst 0.8s ease-out forwards",
|
|
3637
|
-
pointerEvents: "none",
|
|
3638
|
-
zIndex: 999,
|
|
3639
|
-
"@keyframes glowBurst": {
|
|
3640
|
-
"0%": {
|
|
3641
|
-
width: 0,
|
|
3642
|
-
height: 0,
|
|
3643
|
-
opacity: 1,
|
|
3644
|
-
transform: "translate(-50%, -50%)"
|
|
3645
|
-
},
|
|
3646
|
-
"100%": {
|
|
3647
|
-
width: "300px",
|
|
3648
|
-
height: "300px",
|
|
3649
|
-
opacity: 0,
|
|
3650
|
-
transform: "translate(-50%, -50%)"
|
|
3651
|
-
}
|
|
3652
|
-
}
|
|
3653
|
-
}
|
|
3654
|
-
}
|
|
3655
|
-
)
|
|
3656
|
-
]
|
|
3657
|
-
}
|
|
3658
|
-
);
|
|
3659
|
-
}, ne = ({
|
|
3660
|
-
infoPage: e,
|
|
3661
|
-
enableReset: y = !1,
|
|
3662
|
-
contentColor: o,
|
|
3663
|
-
primaryColor: n,
|
|
3664
|
-
onPrimaryColor: r,
|
|
3665
|
-
borderColor: f,
|
|
3666
|
-
dangerColor: i,
|
|
3667
|
-
cardBaseColor: s,
|
|
3668
|
-
shimmerColor: a,
|
|
3669
|
-
brandingLogo: l = "",
|
|
3670
|
-
isDark: p = !1,
|
|
3671
|
-
forceMobile: x = !1
|
|
3672
|
-
}) => {
|
|
3673
|
-
var kt, St, vt, zt;
|
|
3674
|
-
const h = Q(), c = x ? !1 : gt(), m = tt(), v = ot(), k = rt(), g = dt(), S = s || m.surface, L = a || n, z = JSON.parse(e.body), R = z.segments || [], u = e.labels || {}, I = z.mode || ((kt = z.config) == null ? void 0 : kt.mode) || "fair", T = ((St = z.config) == null ? void 0 : St.pace) || "normal", W = ((vt = z.config) == null ? void 0 : vt.revealAll) ?? !1, A = ((zt = z.config) == null ? void 0 : zt.decorations) ?? !1, b = R.some((lt) => {
|
|
3675
|
-
var et;
|
|
3676
|
-
return (et = lt.images) == null ? void 0 : et.idle;
|
|
3677
|
-
}), $ = it(n, p), F = !!(u.welcome || u.instructions || u.disclaimer), B = c ? 110 : 80, _ = c ? 143 : 104, j = c ? 130 : 90, N = c ? "32px" : "16px", X = c ? "32px" : "12px", {
|
|
3678
|
-
selectedSegment: M,
|
|
3679
|
-
displaySegments: G,
|
|
3680
|
-
revealResult: E,
|
|
3681
|
-
showResultScreen: O,
|
|
3682
|
-
showInlineResult: H,
|
|
3683
|
-
showLoseAnimation: K,
|
|
3684
|
-
hasEntered: C,
|
|
3685
|
-
flippedCards: U,
|
|
3686
|
-
crossfadedCards: J,
|
|
3687
|
-
revealedOtherCards: Z,
|
|
3688
|
-
flipDuration: P,
|
|
3689
|
-
crossfadeDuration: V,
|
|
3690
|
-
loseAnimationDuration: st,
|
|
3691
|
-
handlePick: at,
|
|
3692
|
-
handleReset: yt
|
|
3693
|
-
} = Pt({ segments: R, mode: I, pace: T, revealAll: W }), bt = () => !e.title && !e.subtitle ? null : /* @__PURE__ */ w(
|
|
3694
|
-
d,
|
|
3695
|
-
{
|
|
3696
|
-
sx: {
|
|
3697
|
-
display: "flex",
|
|
3698
|
-
flexDirection: "column",
|
|
3699
|
-
gap: 0,
|
|
3700
|
-
alignItems: "center",
|
|
3701
|
-
textAlign: "center",
|
|
3702
|
-
width: "100%",
|
|
3703
|
-
zIndex: 1
|
|
3704
|
-
},
|
|
3705
|
-
children: [
|
|
3706
|
-
e.title && /* @__PURE__ */ w(q, { children: [
|
|
3707
|
-
/* @__PURE__ */ t(
|
|
3708
|
-
D,
|
|
3709
|
-
{
|
|
3710
|
-
level: "h2",
|
|
3711
|
-
sx: {
|
|
3712
|
-
fontFamily: k.primary,
|
|
3713
|
-
fontWeight: 700,
|
|
3714
|
-
fontSize: "1.25rem",
|
|
3715
|
-
color: o,
|
|
3716
|
-
lineHeight: 1.2,
|
|
3717
|
-
...A && {
|
|
3718
|
-
textShadow: `0 0 20px ${$("20")}, 0 0 40px ${$("10")}`
|
|
3719
|
-
}
|
|
3720
|
-
},
|
|
3721
|
-
children: e.title
|
|
3722
|
-
}
|
|
3723
|
-
),
|
|
3724
|
-
A && /* @__PURE__ */ w(
|
|
3725
|
-
d,
|
|
3726
|
-
{
|
|
3727
|
-
sx: {
|
|
3728
|
-
display: "flex",
|
|
3729
|
-
alignItems: "center",
|
|
3730
|
-
gap: "8px",
|
|
3731
|
-
mt: "4px"
|
|
3732
|
-
},
|
|
3733
|
-
children: [
|
|
3734
|
-
/* @__PURE__ */ t(
|
|
3735
|
-
d,
|
|
3736
|
-
{
|
|
3737
|
-
sx: {
|
|
3738
|
-
width: "40px",
|
|
3739
|
-
height: "1px",
|
|
3740
|
-
background: `linear-gradient(90deg, transparent, ${$("40")})`
|
|
3741
|
-
}
|
|
3742
|
-
}
|
|
3743
|
-
),
|
|
3744
|
-
/* @__PURE__ */ t(
|
|
3745
|
-
d,
|
|
3746
|
-
{
|
|
3747
|
-
sx: {
|
|
3748
|
-
width: "6px",
|
|
3749
|
-
height: "6px",
|
|
3750
|
-
transform: "rotate(45deg)",
|
|
3751
|
-
background: $("50")
|
|
3752
|
-
}
|
|
3753
|
-
}
|
|
3754
|
-
),
|
|
3755
|
-
/* @__PURE__ */ t(
|
|
3756
|
-
d,
|
|
3757
|
-
{
|
|
3758
|
-
sx: {
|
|
3759
|
-
width: "40px",
|
|
3760
|
-
height: "1px",
|
|
3761
|
-
background: `linear-gradient(90deg, ${$("40")}, transparent)`
|
|
3762
|
-
}
|
|
3763
|
-
}
|
|
3764
|
-
)
|
|
3765
|
-
]
|
|
3766
|
-
}
|
|
3767
|
-
)
|
|
3768
|
-
] }),
|
|
3769
|
-
e.subtitle && /* @__PURE__ */ t(
|
|
3770
|
-
D,
|
|
3771
|
-
{
|
|
3772
|
-
level: "body-md",
|
|
3773
|
-
sx: {
|
|
3774
|
-
fontFamily: k.secondary,
|
|
3775
|
-
fontWeight: 400,
|
|
3776
|
-
fontSize: "0.875rem",
|
|
3777
|
-
color: o,
|
|
3778
|
-
opacity: 0.8
|
|
3779
|
-
},
|
|
3780
|
-
children: e.subtitle
|
|
3781
|
-
}
|
|
3782
|
-
)
|
|
3783
|
-
]
|
|
3784
|
-
}
|
|
3785
|
-
), wt = () => /* @__PURE__ */ t(
|
|
3786
|
-
d,
|
|
3787
|
-
{
|
|
3788
|
-
sx: {
|
|
3789
|
-
mx: "auto",
|
|
3790
|
-
display: "grid",
|
|
3791
|
-
gridTemplateColumns: b ? `repeat(3, ${j}px)` : `repeat(3, ${B}px)`,
|
|
3792
|
-
rowGap: N,
|
|
3793
|
-
columnGap: X,
|
|
3794
|
-
justifyContent: "center",
|
|
3795
|
-
position: "relative",
|
|
3796
|
-
perspective: "1200px",
|
|
3797
|
-
zIndex: 1
|
|
3798
|
-
},
|
|
3799
|
-
children: (G ?? R).map((lt, et) => {
|
|
3800
|
-
const ht = `card-${et}`, pt = M !== null, Wt = U.has(ht), xt = Z.has(ht), Tt = pt && !Wt && !xt, It = J.has(ht), Bt = pt && !It && !xt;
|
|
3801
|
-
return /* @__PURE__ */ t(
|
|
3802
|
-
d,
|
|
3803
|
-
{
|
|
3804
|
-
sx: {
|
|
3805
|
-
display: "flex",
|
|
3806
|
-
justifyContent: "center",
|
|
3807
|
-
alignItems: "center",
|
|
3808
|
-
opacity: C ? 1 : 0,
|
|
3809
|
-
transform: C ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
|
|
3810
|
-
transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${et * 100}ms`
|
|
3811
|
-
},
|
|
3812
|
-
children: b ? /* @__PURE__ */ t(
|
|
3813
|
-
te,
|
|
3814
|
-
{
|
|
3815
|
-
segment: lt,
|
|
3816
|
-
index: et,
|
|
3817
|
-
selectedSegment: M,
|
|
3818
|
-
revealResult: E,
|
|
3819
|
-
isCrossfaded: It,
|
|
3820
|
-
isOtherRevealed: xt,
|
|
3821
|
-
shouldDim: Bt,
|
|
3822
|
-
isRevealed: pt,
|
|
3823
|
-
hasEntered: C,
|
|
3824
|
-
objectSize: j,
|
|
3825
|
-
crossfadeDuration: V,
|
|
3826
|
-
isStandard: !1,
|
|
3827
|
-
primaryColor: n,
|
|
3828
|
-
dangerColor: i,
|
|
3829
|
-
onPick: () => at(et, !0)
|
|
3830
|
-
}
|
|
3831
|
-
) : /* @__PURE__ */ t(
|
|
3832
|
-
ee,
|
|
3833
|
-
{
|
|
3834
|
-
segment: lt,
|
|
3835
|
-
index: et,
|
|
3836
|
-
selectedSegment: M,
|
|
3837
|
-
isFlipped: Wt,
|
|
3838
|
-
isOtherRevealed: xt,
|
|
3839
|
-
shouldDim: Tt,
|
|
3840
|
-
isRevealed: pt,
|
|
3841
|
-
showLoseAnimation: K,
|
|
3842
|
-
hasEntered: C,
|
|
3843
|
-
cardWidth: B,
|
|
3844
|
-
cardHeight: _,
|
|
3845
|
-
flipDuration: P,
|
|
3846
|
-
loseAnimationDuration: st,
|
|
3847
|
-
cardBaseColor: S,
|
|
3848
|
-
shimmerColor: L,
|
|
3849
|
-
primaryColor: n,
|
|
3850
|
-
contentColor: o,
|
|
3851
|
-
dangerColor: i,
|
|
3852
|
-
borderColor: f,
|
|
3853
|
-
brandingLogo: l,
|
|
3854
|
-
compactCards: !0,
|
|
3855
|
-
onPick: () => at(et, !1)
|
|
3856
|
-
}
|
|
3857
|
-
)
|
|
3858
|
-
},
|
|
3859
|
-
lt.id
|
|
3860
|
-
);
|
|
3861
|
-
})
|
|
3862
|
-
}
|
|
3863
|
-
), $t = () => /* @__PURE__ */ t(
|
|
3864
|
-
ct,
|
|
3865
|
-
{
|
|
3866
|
-
onClick: yt,
|
|
3867
|
-
variant: "outlined",
|
|
3868
|
-
sx: {
|
|
3869
|
-
px: g.lg,
|
|
3870
|
-
py: g.sm,
|
|
3871
|
-
fontFamily: k.primary,
|
|
3872
|
-
fontWeight: 700,
|
|
3873
|
-
fontSize: h ? "0.75rem" : "0.875rem",
|
|
3874
|
-
textTransform: "uppercase",
|
|
3875
|
-
letterSpacing: "0.5px",
|
|
3876
|
-
borderRadius: v.xl,
|
|
3877
|
-
borderColor: f || m.outlineEnabledBorder,
|
|
3878
|
-
color: o,
|
|
3879
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
3880
|
-
"&:hover": {
|
|
3881
|
-
borderColor: n,
|
|
3882
|
-
bgcolor: "transparent",
|
|
3883
|
-
color: n
|
|
3884
|
-
}
|
|
3885
|
-
},
|
|
3886
|
-
children: "Reset Game"
|
|
3887
|
-
}
|
|
3888
|
-
);
|
|
3889
|
-
return /* @__PURE__ */ w(
|
|
3890
|
-
d,
|
|
3891
|
-
{
|
|
3892
|
-
sx: {
|
|
3893
|
-
display: "flex",
|
|
3894
|
-
flexDirection: "column",
|
|
3895
|
-
width: "100%",
|
|
3896
|
-
p: g.md,
|
|
3897
|
-
gap: g.md,
|
|
3898
|
-
alignItems: "center",
|
|
3899
|
-
position: "relative",
|
|
3900
|
-
overflow: "hidden",
|
|
3901
|
-
boxSizing: "border-box"
|
|
3902
|
-
},
|
|
3903
|
-
children: [
|
|
3904
|
-
A && /* @__PURE__ */ t(
|
|
3905
|
-
Ft,
|
|
3906
|
-
{
|
|
3907
|
-
primaryColor: n,
|
|
3908
|
-
isDark: p,
|
|
3909
|
-
animationPrefix: "casino"
|
|
3910
|
-
}
|
|
3911
|
-
),
|
|
3912
|
-
O && (M == null ? void 0 : M.results) && /* @__PURE__ */ t(
|
|
3913
|
-
nt,
|
|
3914
|
-
{
|
|
3915
|
-
result: M.results,
|
|
3916
|
-
variant: "embed",
|
|
3917
|
-
mode: "screen",
|
|
3918
|
-
contentColor: o,
|
|
3919
|
-
primaryColor: n,
|
|
3920
|
-
onPrimaryColor: r,
|
|
3921
|
-
borderColor: f,
|
|
3922
|
-
disclaimer: u.disclaimer,
|
|
3923
|
-
enableReset: y,
|
|
3924
|
-
onReset: yt
|
|
3925
|
-
}
|
|
3926
|
-
),
|
|
3927
|
-
!O && (c ? (
|
|
3928
|
-
/* Desktop: horizontal 2-column layout */
|
|
3929
|
-
/* @__PURE__ */ w(
|
|
3930
|
-
d,
|
|
3931
|
-
{
|
|
3932
|
-
sx: {
|
|
3933
|
-
display: "flex",
|
|
3934
|
-
flexDirection: "row",
|
|
3935
|
-
width: "100%",
|
|
3936
|
-
gap: g.xl,
|
|
3937
|
-
alignItems: "center",
|
|
3938
|
-
zIndex: 1
|
|
3939
|
-
},
|
|
3940
|
-
children: [
|
|
3941
|
-
/* @__PURE__ */ w(
|
|
3942
|
-
d,
|
|
3943
|
-
{
|
|
3944
|
-
sx: {
|
|
3945
|
-
flex: "0 0 42%",
|
|
3946
|
-
display: "flex",
|
|
3947
|
-
flexDirection: "column",
|
|
3948
|
-
gap: g.md,
|
|
3949
|
-
alignItems: "center",
|
|
3950
|
-
alignSelf: "stretch",
|
|
3951
|
-
justifyContent: F ? "flex-start" : "center"
|
|
3952
|
-
},
|
|
3953
|
-
children: [
|
|
3954
|
-
bt(),
|
|
3955
|
-
u.welcome && /* @__PURE__ */ t(
|
|
3956
|
-
D,
|
|
3957
|
-
{
|
|
3958
|
-
level: "body-md",
|
|
3959
|
-
sx: {
|
|
3960
|
-
fontFamily: k.primary,
|
|
3961
|
-
fontWeight: 400,
|
|
3962
|
-
fontSize: "0.875rem",
|
|
3963
|
-
color: o,
|
|
3964
|
-
textAlign: "center",
|
|
3965
|
-
zIndex: 1
|
|
3966
|
-
},
|
|
3967
|
-
children: u.welcome
|
|
3968
|
-
}
|
|
3969
|
-
),
|
|
3970
|
-
!H && u.instructions && /* @__PURE__ */ t(
|
|
3971
|
-
D,
|
|
3972
|
-
{
|
|
3973
|
-
level: "body-sm",
|
|
3974
|
-
sx: {
|
|
3975
|
-
fontFamily: k.secondary,
|
|
3976
|
-
fontWeight: 400,
|
|
3977
|
-
fontSize: "0.875rem",
|
|
3978
|
-
color: o,
|
|
3979
|
-
opacity: 0.7,
|
|
3980
|
-
textAlign: "center",
|
|
3981
|
-
zIndex: 1
|
|
3982
|
-
},
|
|
3983
|
-
children: u.instructions
|
|
3984
|
-
}
|
|
3985
|
-
),
|
|
3986
|
-
H && (M == null ? void 0 : M.results) && /* @__PURE__ */ t(
|
|
3987
|
-
nt,
|
|
3988
|
-
{
|
|
3989
|
-
result: M.results,
|
|
3990
|
-
variant: "embed",
|
|
3991
|
-
mode: "inline",
|
|
3992
|
-
contentColor: o,
|
|
3993
|
-
primaryColor: n,
|
|
3994
|
-
onPrimaryColor: r,
|
|
3995
|
-
borderColor: f,
|
|
3996
|
-
showResetButton: !1,
|
|
3997
|
-
sx: { zIndex: 1 }
|
|
3998
|
-
}
|
|
3999
|
-
),
|
|
4000
|
-
y && H && $t(),
|
|
4001
|
-
/* @__PURE__ */ t(
|
|
4002
|
-
d,
|
|
4003
|
-
{
|
|
4004
|
-
sx: {
|
|
4005
|
-
mt: "auto",
|
|
4006
|
-
display: "flex",
|
|
4007
|
-
flexDirection: "column",
|
|
4008
|
-
alignItems: "center",
|
|
4009
|
-
width: "100%"
|
|
4010
|
-
},
|
|
4011
|
-
children: u.disclaimer && /* @__PURE__ */ t(
|
|
4012
|
-
D,
|
|
4013
|
-
{
|
|
4014
|
-
level: "body-sm",
|
|
4015
|
-
sx: {
|
|
4016
|
-
fontFamily: k.secondary,
|
|
4017
|
-
fontWeight: 400,
|
|
4018
|
-
fontSize: "0.625rem",
|
|
4019
|
-
color: o,
|
|
4020
|
-
opacity: 0.7,
|
|
4021
|
-
textAlign: "center",
|
|
4022
|
-
maxWidth: "900px",
|
|
4023
|
-
lineHeight: 1.4,
|
|
4024
|
-
zIndex: 1
|
|
4025
|
-
},
|
|
4026
|
-
children: u.disclaimer
|
|
4027
|
-
}
|
|
4028
|
-
)
|
|
4029
|
-
}
|
|
4030
|
-
)
|
|
4031
|
-
]
|
|
4032
|
-
}
|
|
4033
|
-
),
|
|
4034
|
-
/* @__PURE__ */ t(
|
|
4035
|
-
d,
|
|
4036
|
-
{
|
|
4037
|
-
sx: {
|
|
4038
|
-
flex: "0 0 58%",
|
|
4039
|
-
display: "flex",
|
|
4040
|
-
alignItems: "center",
|
|
4041
|
-
justifyContent: "center"
|
|
4042
|
-
},
|
|
4043
|
-
children: wt()
|
|
4044
|
-
}
|
|
4045
|
-
)
|
|
4046
|
-
]
|
|
4047
|
-
}
|
|
4048
|
-
)
|
|
4049
|
-
) : (
|
|
4050
|
-
/* Mobile: compact vertical */
|
|
4051
|
-
/* @__PURE__ */ w(
|
|
4052
|
-
d,
|
|
4053
|
-
{
|
|
4054
|
-
sx: {
|
|
4055
|
-
display: "flex",
|
|
4056
|
-
flexDirection: "column",
|
|
4057
|
-
width: "100%",
|
|
4058
|
-
gap: g.sm,
|
|
4059
|
-
alignItems: "center",
|
|
4060
|
-
zIndex: 1
|
|
4061
|
-
},
|
|
4062
|
-
children: [
|
|
4063
|
-
bt(),
|
|
4064
|
-
u.welcome && /* @__PURE__ */ t(
|
|
4065
|
-
D,
|
|
4066
|
-
{
|
|
4067
|
-
level: "body-md",
|
|
4068
|
-
sx: {
|
|
4069
|
-
fontFamily: k.primary,
|
|
4070
|
-
fontWeight: 400,
|
|
4071
|
-
fontSize: "0.875rem",
|
|
4072
|
-
color: o,
|
|
4073
|
-
textAlign: "center",
|
|
4074
|
-
zIndex: 1
|
|
4075
|
-
},
|
|
4076
|
-
children: u.welcome
|
|
4077
|
-
}
|
|
4078
|
-
),
|
|
4079
|
-
!H && u.instructions && /* @__PURE__ */ t(
|
|
4080
|
-
D,
|
|
4081
|
-
{
|
|
4082
|
-
level: "body-sm",
|
|
4083
|
-
sx: {
|
|
4084
|
-
fontFamily: k.secondary,
|
|
4085
|
-
fontWeight: 400,
|
|
4086
|
-
fontSize: "0.875rem",
|
|
4087
|
-
color: o,
|
|
4088
|
-
opacity: 0.7,
|
|
4089
|
-
textAlign: "center",
|
|
4090
|
-
zIndex: 1
|
|
4091
|
-
},
|
|
4092
|
-
children: u.instructions
|
|
4093
|
-
}
|
|
4094
|
-
),
|
|
4095
|
-
wt(),
|
|
4096
|
-
H && (M == null ? void 0 : M.results) && /* @__PURE__ */ t(
|
|
4097
|
-
nt,
|
|
4098
|
-
{
|
|
4099
|
-
result: M.results,
|
|
4100
|
-
variant: "embed",
|
|
4101
|
-
mode: "inline",
|
|
4102
|
-
contentColor: o,
|
|
4103
|
-
primaryColor: n,
|
|
4104
|
-
onPrimaryColor: r,
|
|
4105
|
-
borderColor: f,
|
|
4106
|
-
showResetButton: !1,
|
|
4107
|
-
sx: { zIndex: 1 }
|
|
4108
|
-
}
|
|
4109
|
-
),
|
|
4110
|
-
y && H && $t(),
|
|
4111
|
-
u.disclaimer && /* @__PURE__ */ t(
|
|
4112
|
-
D,
|
|
4113
|
-
{
|
|
4114
|
-
level: "body-sm",
|
|
4115
|
-
sx: {
|
|
4116
|
-
fontFamily: k.secondary,
|
|
4117
|
-
fontWeight: 400,
|
|
4118
|
-
fontSize: "0.625rem",
|
|
4119
|
-
color: o,
|
|
4120
|
-
opacity: 0.7,
|
|
4121
|
-
textAlign: "center",
|
|
4122
|
-
maxWidth: "900px",
|
|
4123
|
-
lineHeight: 1.4,
|
|
4124
|
-
zIndex: 1
|
|
4125
|
-
},
|
|
4126
|
-
children: u.disclaimer
|
|
4127
|
-
}
|
|
4128
|
-
)
|
|
4129
|
-
]
|
|
4130
|
-
}
|
|
4131
|
-
)
|
|
4132
|
-
))
|
|
4133
|
-
]
|
|
4134
|
-
}
|
|
4135
|
-
);
|
|
4136
|
-
}, ce = ({
|
|
4137
|
-
infoPage: e,
|
|
4138
|
-
enableReset: y = !1,
|
|
4139
|
-
forceMobile: o = !1
|
|
4140
|
-
}) => {
|
|
4141
|
-
var L, z, R, u, I, T, W, A, b, $, F;
|
|
4142
|
-
const n = o || Q(), r = tt(), f = ot(), i = mt() === "dark", s = (L = e.branding) == null ? void 0 : L.colors, a = (s == null ? void 0 : s.primary_color) || r.palette.primary.plainColor, l = (s == null ? void 0 : s.content_color) || r.textPrimary, p = s == null ? void 0 : s.border_color, x = (s == null ? void 0 : s.background_color) || r.surface, h = r.palette.danger.plainColor, m = ((z = JSON.parse(e.body).config) == null ? void 0 : z.decorations) ?? !1, v = n ? ((u = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : u.mobile_background_image) || ((T = (I = e.branding) == null ? void 0 : I.images) == null ? void 0 : T.background_image) || ((W = e.images) == null ? void 0 : W.cover) : ((b = (A = e.branding) == null ? void 0 : A.images) == null ? void 0 : b.background_image) || (($ = e.images) == null ? void 0 : $.cover), k = (B) => {
|
|
4143
|
-
if (!i) return `${a}${B}`;
|
|
4144
|
-
const _ = parseInt(B, 16);
|
|
4145
|
-
return `${a}${Math.min(Math.round(_ * 2.5), 255).toString(16).padStart(2, "0")}`;
|
|
4146
|
-
}, g = (F = e.branding) == null ? void 0 : F.images, S = n ? (g == null ? void 0 : g.mobile_logo) || (g == null ? void 0 : g.main_logo) || "" : (g == null ? void 0 : g.main_logo) || "";
|
|
4147
|
-
return /* @__PURE__ */ t(
|
|
4148
|
-
d,
|
|
4149
|
-
{
|
|
4150
|
-
sx: {
|
|
4151
|
-
display: "flex",
|
|
4152
|
-
flexDirection: "column",
|
|
4153
|
-
width: "100%",
|
|
4154
|
-
height: "100%",
|
|
4155
|
-
position: "relative",
|
|
4156
|
-
overflow: "auto",
|
|
4157
|
-
boxSizing: "border-box",
|
|
4158
|
-
background: v ? `url(${v}) center/cover no-repeat` : `
|
|
4159
|
-
radial-gradient(ellipse at 50% 40%, ${a}12 0%, transparent 60%),
|
|
4160
|
-
radial-gradient(ellipse at 50% 100%, ${a}08 0%, transparent 50%),
|
|
4161
|
-
${x}
|
|
4162
|
-
`,
|
|
4163
|
-
boxShadow: "inset 0 0 100px rgba(0, 0, 0, 0.04), inset 0 0 30px rgba(0, 0, 0, 0.02)",
|
|
4164
|
-
...m && {
|
|
4165
|
-
border: `1px solid ${k("15")}`,
|
|
4166
|
-
borderRadius: f.lg
|
|
4167
|
-
}
|
|
4168
|
-
},
|
|
4169
|
-
children: /* @__PURE__ */ t(
|
|
4170
|
-
ne,
|
|
4171
|
-
{
|
|
4172
|
-
infoPage: e,
|
|
4173
|
-
enableReset: y,
|
|
4174
|
-
contentColor: l,
|
|
4175
|
-
primaryColor: a,
|
|
4176
|
-
onPrimaryColor: r.palette.primary.onPrimary,
|
|
4177
|
-
borderColor: p || void 0,
|
|
4178
|
-
backgroundColor: x,
|
|
4179
|
-
dangerColor: h,
|
|
4180
|
-
cardBaseColor: x,
|
|
4181
|
-
shimmerColor: a,
|
|
4182
|
-
brandingLogo: S,
|
|
4183
|
-
backgroundImage: v || void 0,
|
|
4184
|
-
isDark: i,
|
|
4185
|
-
forceMobile: o
|
|
4186
|
-
}
|
|
4187
|
-
)
|
|
4188
|
-
}
|
|
4189
|
-
);
|
|
4190
|
-
};
|
|
4191
|
-
export {
|
|
4192
|
-
Et as C,
|
|
4193
|
-
Ft as D,
|
|
4194
|
-
ee as F,
|
|
4195
|
-
te as O,
|
|
4196
|
-
ae as P,
|
|
4197
|
-
nt as S,
|
|
4198
|
-
Ot as W,
|
|
4199
|
-
ce as a,
|
|
4200
|
-
le as b,
|
|
4201
|
-
it as c,
|
|
4202
|
-
Dt as d,
|
|
4203
|
-
jt as e,
|
|
4204
|
-
Pt as f,
|
|
4205
|
-
_t as u
|
|
4206
|
-
};
|