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