fansunited-frontend-components 0.0.70 → 0.0.71
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 +1 -1
- package/ChanceGame.js +529 -520
- package/ClassicQuizPlay.js +500 -491
- package/CollectLead.js +141 -141
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +876 -879
- package/EventCard.js +1692 -1683
- package/EventGamePlay.js +843 -840
- package/Leaderboard.js +367 -357
- package/MatchQuizPlay.js +1295 -1296
- package/PersonalityQuizPlay.js +430 -433
- package/PickThePair.js +481 -472
- package/PlayerOfTheMatch.js +235 -234
- package/PollVote.js +1053 -1039
- package/Predictor.js +4382 -4389
- package/README.md +1 -1
- package/Standings.js +652 -643
- package/TopX.js +2645 -2644
- package/chunks/{AccessTime-D9xoYL-P.js → AccessTime-BkHriW4j.js} +1 -1
- package/chunks/{AlertMessage-Cozhlf-H.js → AlertMessage-DwSmhmHt.js} +11 -11
- package/chunks/{Avatar-4MNT3BUa.js → Avatar-CEbT4X-o.js} +22 -22
- package/chunks/{Button-BR5lrG3T.js → Button-CO-k2gLb.js} +3 -3
- package/chunks/{Card-B9LbqmTy.js → Card-DZdPl8-h.js} +7 -7
- package/chunks/{CardActions-Bd7cvuaU.js → CardActions-DTThyeLX.js} +20 -20
- package/chunks/{CardContent-tsJbu6U_.js → CardContent-CzC1EwoD.js} +14 -14
- package/chunks/{ChanceGameEmbedVariant-ClF7ZROz.js → ChanceGameEmbedVariant-CteJ4tix.js} +64 -40
- package/chunks/{CheckCircle-DKTmOx_8.js → CheckCircle-BzM-2e1z.js} +1 -1
- package/chunks/{Chip-CQTEXT4E.js → Chip-BF1FXK0I.js} +15 -15
- package/chunks/{Close-Sf17sJo7.js → Close-BiMLcNyG.js} +1 -1
- package/chunks/{Close-EdfoUQng.js → Close-CggU6Ga3.js} +1 -1
- package/chunks/{CollectLeadForm-CfJIi5ym.js → CollectLeadForm-BZj-9IDt.js} +20 -20
- package/chunks/{ConsentsList-CRzVgBrT.js → ConsentsList-CtKgLYa8.js} +17 -17
- package/chunks/DirectionScope-BGDPaR6B.js +24 -0
- package/chunks/{Divider-CqwtjZ1e.js → Divider-Dueyhj7K.js} +8 -8
- package/chunks/{Edit-73e36eUG.js → Edit-Dqa7th_A.js} +3 -3
- package/chunks/{EditOutlined-B1yLoIzq.js → EditOutlined-B__rjTwX.js} +1 -1
- package/chunks/{EmojiEvents-B2iKaiur.js → EmojiEvents-CpsA2Qo0.js} +1 -1
- package/chunks/{FavoriteBorder-DPEq7teA.js → FavoriteBorder-DrC_eOCd.js} +1 -1
- package/chunks/{FormControl-Dnkb7OwF.js → FormControl-fKyT2Mql.js} +32 -32
- package/chunks/{FormControlContext-D73rmx-I.js → FormControlContext-CSrMcHcv.js} +11 -11
- package/chunks/{FormLabel-C42GjkHs.js → FormLabel-DlXT5RZd.js} +9 -9
- package/chunks/{InlineSpinner-BccBWdjH.js → InlineSpinner-CuisRY-E.js} +2 -2
- package/chunks/{Input-D5FpQqOG.js → Input-CkSIGH-d.js} +15 -15
- package/chunks/{KeyboardArrowDown-B6gYNeY1.js → KeyboardArrowDown-DL8VjkJT.js} +1 -1
- package/chunks/{KeyboardArrowRight-cZrifTDy.js → KeyboardArrowRight-Cm50UqHb.js} +1 -1
- package/chunks/{Link-BEkWj05u.js → Link-BljMbRuR.js} +13 -13
- package/chunks/{ListItemButton-BCWrYSO3.js → ListItemButton-BqEcbBU0.js} +50 -50
- package/chunks/{ModalDialog-Ca0fO5k9.js → ModalDialog-B0DLv5vW.js} +59 -59
- package/chunks/{NotFoundSkeleton-CU9abuei.js → NotFoundSkeleton-DKxLhOwI.js} +149 -125
- package/chunks/{Notification-F6dbxtr1.js → Notification-CEdU0opQ.js} +18 -18
- package/chunks/{OverlayScoreStateSkeleton-C_ZCv9J4.js → OverlayScoreStateSkeleton-BtCy650g.js} +18 -12
- package/chunks/{OverlayScoreStateWrapperSkeleton-Dd9vXOLR.js → OverlayScoreStateWrapperSkeleton-Ch_E6KQ6.js} +1 -1
- package/chunks/{OverlaySignInSkeleton-B6cvxVaO.js → OverlaySignInSkeleton-DEiH7fmp.js} +97 -73
- package/chunks/{Person-CsUll9Ap.js → Person-CLQl7Sxs.js} +1 -1
- package/chunks/{PersonOutline-DkSg2ggu.js → PersonOutline-D8yrpbw7.js} +1 -1
- package/chunks/{PickOneOfX-DW0xvqB_.js → PickOneOfX-CG0B5u7Y.js} +3 -3
- package/chunks/{Popper-BIgVYC9_.js → Popper-BSnc2Lit.js} +58 -58
- package/chunks/Portal-D8t1Jd5e.js +65 -0
- package/chunks/{Portal-YpgOsTt5.js → Portal-cK515D9M.js} +4 -4
- package/chunks/{PrizeCard-C1DbXnUz.js → PrizeCard-CyVJJLo1.js} +5831 -4172
- package/chunks/{Search-4IyZ7X3H.js → Search-BXhhax8M.js} +1 -1
- package/chunks/{Select-C-ZBGclx.js → Select-DyRdhrMr.js} +61 -61
- package/chunks/{Sheet-xAhd34Jw.js → Sheet-sYNAL7gX.js} +14 -14
- package/chunks/{Spinner-BL8WSLzS.js → Spinner-Bb4eb64F.js} +2 -2
- package/chunks/{SplitSignInSkeleton-DrOQZhEv.js → SplitSignInSkeleton-BZT0ngoW.js} +12 -6
- package/chunks/{Stack-BpYjl-G4.js → Stack-DX41loGb.js} +21 -21
- package/chunks/{StandardContentSkeleton-Dy2qCFCR.js → StandardContentSkeleton-DAh7l7cd.js} +12 -12
- package/chunks/{Table-BPxaqsgp.js → Table-C09wF6nK.js} +8 -8
- package/chunks/{Tabs-Cf6gFJmP.js → Tabs-Dhih1Lqb.js} +46 -46
- package/chunks/{Textarea-Bb8UgeBs.js → Textarea-DWyUKbVv.js} +24 -24
- package/chunks/{TimerOutlined-DHBV8b2I.js → TimerOutlined-DeWQFv5g.js} +1 -1
- package/chunks/{Tooltip-ziAUY7gh.js → Tooltip-Dnj_oxHb.js} +55 -55
- package/chunks/{Typography-3zKBmCod.js → Typography-B8CtvKkm.js} +1 -1
- package/chunks/{dividerClasses-wdRUDS30.js → dividerClasses-BoOrlu7X.js} +1 -1
- package/chunks/{elementAcceptingRef-DCjxSgGH.js → elementAcceptingRef-DROQPsxj.js} +1 -1
- package/chunks/formLabelClasses-Bh4Fh0fk.js +9 -0
- package/chunks/{helpers-DM31-5Cj.js → helpers-DgUDSfd1.js} +14 -12
- package/chunks/{index-B1d7nVt2.js → index-C_R74meU.js} +1 -1
- package/chunks/index-PC-q6Shn.js +4 -0
- package/chunks/{main-U_h0_Bx2.js → main-5c5yYsj9.js} +973 -964
- package/chunks/{main-B_5xPpMJ.js → main-BXu1mzLz.js} +157 -157
- package/chunks/{useButton-kmQoVw9C.js → useButton-CQ2o2nXk.js} +2 -2
- package/chunks/{useConsents-hUMCZ2dS.js → useConsents-CIhPZNel.js} +326 -301
- package/chunks/{useEventCallback-eHGKTxMe.js → useEventCallback-B1ahtq-a.js} +1 -1
- package/chunks/{useForwardedInput-Bv2oMJpl.js → useForwardedInput-DRXHXEOw.js} +22 -22
- package/chunks/{useImageVariant-mC1wwdcP.js → useImageVariant-D6aho5sy.js} +1 -1
- package/chunks/{useSwitch-RU2h0FPQ.js → useSwitch-CYz8kkTr.js} +12 -12
- package/index.js +3 -3
- package/package.json +2 -2
- package/chunks/Portal-hIkg6Jk0.js +0 -55
- package/chunks/formLabelClasses-DnveRdCj.js +0 -9
- package/chunks/index-BWMalJJe.js +0 -4
package/ChanceGame.js
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { h as Ce, g as
|
|
2
|
+
import { h as Ce, g as Ke, l as Je } from "./chunks/helpers-DgUDSfd1.js";
|
|
3
3
|
import Z, { useState as qe, useEffect as Qe } from "react";
|
|
4
|
-
import { i as
|
|
5
|
-
import { S as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { u as
|
|
8
|
-
import { N as
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as pe, d as He, a as
|
|
11
|
-
import { T as
|
|
12
|
-
import { B as he } from "./chunks/Button-
|
|
4
|
+
import { i as J, h as Ze, c as ve, b as le, e as Se, B as d, u as se, K as ue, d as we, f as xe, z as Te, W as fe, a as $e, p as et, n as tt, x as ne, A as ot, D as nt, E as rt, F as it, G as lt, H as at, I as st, J as ct } from "./chunks/PrizeCard-CyVJJLo1.js";
|
|
5
|
+
import { S as dt } from "./chunks/Spinner-Bb4eb64F.js";
|
|
6
|
+
import { createPortal as mt } from "react-dom";
|
|
7
|
+
import { u as ut } from "./chunks/useInfoPage-BHdgKdme.js";
|
|
8
|
+
import { N as ht, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-DKxLhOwI.js";
|
|
9
|
+
import { u as xt, S as ie, c as Ee, D as Ge, C as ft, W as pt, d as gt, e as yt, f as bt, O as vt, F as St, b as be, a as wt, P as kt } from "./chunks/PickOneOfX-CG0B5u7Y.js";
|
|
10
|
+
import { b as pe, d as He, a as Me } from "./chunks/useImageVariant-D6aho5sy.js";
|
|
11
|
+
import { T as B } from "./chunks/Typography-B8CtvKkm.js";
|
|
12
|
+
import { B as he } from "./chunks/Button-CO-k2gLb.js";
|
|
13
13
|
const ke = ({
|
|
14
14
|
children: e,
|
|
15
|
-
brandingBorderColor:
|
|
15
|
+
brandingBorderColor: c,
|
|
16
16
|
state: a
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
18
|
+
const n = J(), g = Ze(), o = a === "play" ? g : n, u = ve().md, i = c || le().secondaryContainer, s = Se().size + " solid " + i;
|
|
19
19
|
return /* @__PURE__ */ t(
|
|
20
|
-
|
|
20
|
+
d,
|
|
21
21
|
{
|
|
22
22
|
sx: {
|
|
23
23
|
display: "flex",
|
|
24
24
|
flexDirection: o ? "column" : "row",
|
|
25
25
|
width: "100%",
|
|
26
|
-
borderRadius:
|
|
26
|
+
borderRadius: u,
|
|
27
27
|
boxShadow: "md",
|
|
28
|
-
border:
|
|
28
|
+
border: s,
|
|
29
29
|
overflow: "hidden",
|
|
30
|
-
background:
|
|
30
|
+
background: le().surface,
|
|
31
31
|
minHeight: "250px"
|
|
32
32
|
},
|
|
33
33
|
children: e
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
},
|
|
36
|
+
}, Rt = ({
|
|
37
37
|
template: e
|
|
38
38
|
}) => {
|
|
39
|
-
const { t:
|
|
40
|
-
|
|
39
|
+
const { t: c } = se(), a = /* @__PURE__ */ t(
|
|
40
|
+
ht,
|
|
41
41
|
{
|
|
42
|
-
notFoundTitle:
|
|
43
|
-
notFoundMessage:
|
|
42
|
+
notFoundTitle: c("chanceGame.chanceGameNotFound"),
|
|
43
|
+
notFoundMessage: c("chanceGame.chanceGameNotFoundDescription")
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
return e === ue.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
|
|
47
|
-
},
|
|
47
|
+
}, Ne = ({
|
|
48
48
|
infoPage: e,
|
|
49
|
-
enableReset:
|
|
49
|
+
enableReset: c = !1,
|
|
50
50
|
contentColor: a,
|
|
51
|
-
primaryColor:
|
|
52
|
-
secondaryColor:
|
|
51
|
+
primaryColor: n,
|
|
52
|
+
secondaryColor: g,
|
|
53
53
|
onPrimaryColor: o,
|
|
54
|
-
backgroundColor:
|
|
55
|
-
dangerColor:
|
|
56
|
-
brandingLogo:
|
|
57
|
-
isDark:
|
|
58
|
-
showTitleBlock:
|
|
59
|
-
variant:
|
|
54
|
+
backgroundColor: u,
|
|
55
|
+
dangerColor: i,
|
|
56
|
+
brandingLogo: r,
|
|
57
|
+
isDark: s = !1,
|
|
58
|
+
showTitleBlock: k = !1,
|
|
59
|
+
variant: z
|
|
60
60
|
}) => {
|
|
61
|
-
var G, q,
|
|
62
|
-
const
|
|
61
|
+
var G, q, N;
|
|
62
|
+
const x = J(), b = le(), p = ve(), l = we(), m = xe(), O = Se(), v = z === "standard", h = z === "overlay", C = v || h, E = JSON.parse(e.body), V = E.segments || [], f = e.labels || {}, L = E.mode || ((G = E.config) == null ? void 0 : G.mode) || "fair", H = ((q = E.config) == null ? void 0 : q.pace) || "normal", _ = ((N = E.config) == null ? void 0 : N.decorations) ?? !1, D = Ee(n, s), {
|
|
63
63
|
isSpinning: T,
|
|
64
|
-
finalRotation:
|
|
65
|
-
selectedSegment:
|
|
64
|
+
finalRotation: M,
|
|
65
|
+
selectedSegment: y,
|
|
66
66
|
showShakeAnimation: X,
|
|
67
|
-
showResultScreen:
|
|
68
|
-
showInlineResult:
|
|
67
|
+
showResultScreen: F,
|
|
68
|
+
showInlineResult: R,
|
|
69
69
|
hasEntered: $,
|
|
70
|
-
confettiActive:
|
|
70
|
+
confettiActive: W,
|
|
71
71
|
spinDuration: P,
|
|
72
72
|
shakeAnimationDuration: U,
|
|
73
73
|
confettiVelocityMultiplier: j,
|
|
74
74
|
confettiGravity: A,
|
|
75
75
|
handleSpin: I,
|
|
76
|
-
handleReset:
|
|
76
|
+
handleReset: S,
|
|
77
77
|
onConfettiComplete: ee
|
|
78
|
-
} =
|
|
79
|
-
|
|
78
|
+
} = xt({ segments: V, mode: L, pace: H }), te = C ? x ? "260px" : "340px" : x ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
|
|
79
|
+
_ && /* @__PURE__ */ t(
|
|
80
80
|
Ge,
|
|
81
81
|
{
|
|
82
|
-
primaryColor:
|
|
83
|
-
isDark:
|
|
82
|
+
primaryColor: n,
|
|
83
|
+
isDark: s,
|
|
84
84
|
animationPrefix: "wheel"
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
87
|
/* @__PURE__ */ t(
|
|
88
|
-
|
|
88
|
+
ft,
|
|
89
89
|
{
|
|
90
|
-
active:
|
|
91
|
-
primaryColor:
|
|
90
|
+
active: W,
|
|
91
|
+
primaryColor: n,
|
|
92
92
|
velocityMultiplier: j,
|
|
93
93
|
gravity: A,
|
|
94
94
|
onComplete: ee
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
F && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
|
|
98
|
+
ie,
|
|
99
99
|
{
|
|
100
|
-
result:
|
|
101
|
-
variant:
|
|
100
|
+
result: y.results,
|
|
101
|
+
variant: z || "embed",
|
|
102
102
|
mode: "screen",
|
|
103
103
|
contentColor: a,
|
|
104
|
-
primaryColor:
|
|
104
|
+
primaryColor: n,
|
|
105
105
|
onPrimaryColor: o,
|
|
106
|
-
disclaimer:
|
|
107
|
-
enableReset:
|
|
108
|
-
onReset:
|
|
106
|
+
disclaimer: v ? void 0 : f.disclaimer,
|
|
107
|
+
enableReset: c,
|
|
108
|
+
onReset: S
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
|
-
!
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
!F && /* @__PURE__ */ w(re, { children: [
|
|
112
|
+
k && (e.title || e.subtitle) && /* @__PURE__ */ w(
|
|
113
|
+
d,
|
|
114
114
|
{
|
|
115
115
|
sx: {
|
|
116
116
|
display: "flex",
|
|
117
117
|
flexDirection: "column",
|
|
118
|
-
gap:
|
|
118
|
+
gap: m.xs,
|
|
119
119
|
alignItems: "center",
|
|
120
120
|
textAlign: "center",
|
|
121
121
|
width: "100%",
|
|
@@ -124,60 +124,60 @@ const ke = ({
|
|
|
124
124
|
children: [
|
|
125
125
|
e.title && /* @__PURE__ */ w(re, { children: [
|
|
126
126
|
/* @__PURE__ */ t(
|
|
127
|
-
|
|
127
|
+
B,
|
|
128
128
|
{
|
|
129
129
|
level: "h2",
|
|
130
130
|
sx: {
|
|
131
|
-
fontFamily:
|
|
131
|
+
fontFamily: l.primary,
|
|
132
132
|
fontWeight: 700,
|
|
133
|
-
fontSize:
|
|
133
|
+
fontSize: x ? "1.5rem" : "2rem",
|
|
134
134
|
color: a,
|
|
135
135
|
lineHeight: 1.2,
|
|
136
|
-
...
|
|
137
|
-
textShadow: `0 0 20px ${
|
|
136
|
+
..._ && {
|
|
137
|
+
textShadow: `0 0 20px ${D("20")}, 0 0 40px ${D("10")}`
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
children: e.title
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
_ && /* @__PURE__ */ w(
|
|
144
|
+
d,
|
|
145
145
|
{
|
|
146
146
|
sx: {
|
|
147
147
|
display: "flex",
|
|
148
148
|
alignItems: "center",
|
|
149
|
-
gap:
|
|
150
|
-
mt:
|
|
149
|
+
gap: m.xs,
|
|
150
|
+
mt: m["2xs"]
|
|
151
151
|
},
|
|
152
152
|
children: [
|
|
153
153
|
/* @__PURE__ */ t(
|
|
154
|
-
|
|
154
|
+
d,
|
|
155
155
|
{
|
|
156
156
|
sx: {
|
|
157
|
-
width:
|
|
157
|
+
width: x ? "40px" : "60px",
|
|
158
158
|
height: "1px",
|
|
159
|
-
background: `linear-gradient(90deg, transparent, ${
|
|
159
|
+
background: `linear-gradient(90deg, transparent, ${D("40")})`
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
),
|
|
163
163
|
/* @__PURE__ */ t(
|
|
164
|
-
|
|
164
|
+
d,
|
|
165
165
|
{
|
|
166
166
|
sx: {
|
|
167
167
|
width: "6px",
|
|
168
168
|
height: "6px",
|
|
169
169
|
transform: "rotate(45deg)",
|
|
170
|
-
background:
|
|
170
|
+
background: D("50")
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
174
|
/* @__PURE__ */ t(
|
|
175
|
-
|
|
175
|
+
d,
|
|
176
176
|
{
|
|
177
177
|
sx: {
|
|
178
|
-
width:
|
|
178
|
+
width: x ? "40px" : "60px",
|
|
179
179
|
height: "1px",
|
|
180
|
-
background: `linear-gradient(90deg, ${
|
|
180
|
+
background: `linear-gradient(90deg, ${D("40")}, transparent)`
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
)
|
|
@@ -186,13 +186,13 @@ const ke = ({
|
|
|
186
186
|
)
|
|
187
187
|
] }),
|
|
188
188
|
e.subtitle && /* @__PURE__ */ t(
|
|
189
|
-
|
|
189
|
+
B,
|
|
190
190
|
{
|
|
191
191
|
level: "body-md",
|
|
192
192
|
sx: {
|
|
193
|
-
fontFamily:
|
|
193
|
+
fontFamily: l.secondary,
|
|
194
194
|
fontWeight: 400,
|
|
195
|
-
fontSize:
|
|
195
|
+
fontSize: x ? "0.875rem" : "1rem",
|
|
196
196
|
color: a,
|
|
197
197
|
opacity: 0.8
|
|
198
198
|
},
|
|
@@ -202,35 +202,35 @@ const ke = ({
|
|
|
202
202
|
]
|
|
203
203
|
}
|
|
204
204
|
),
|
|
205
|
-
/* @__PURE__ */ w(
|
|
206
|
-
!
|
|
207
|
-
|
|
205
|
+
/* @__PURE__ */ w(d, { children: [
|
|
206
|
+
!v && f.welcome && /* @__PURE__ */ t(
|
|
207
|
+
B,
|
|
208
208
|
{
|
|
209
209
|
level: "body-md",
|
|
210
210
|
sx: {
|
|
211
|
-
fontFamily:
|
|
211
|
+
fontFamily: l.primary,
|
|
212
212
|
fontWeight: 400,
|
|
213
|
-
fontSize:
|
|
213
|
+
fontSize: x ? "0.875rem" : "1rem",
|
|
214
214
|
color: a,
|
|
215
215
|
textAlign: "center",
|
|
216
|
-
mb: h ? 0 :
|
|
216
|
+
mb: h ? 0 : m.md,
|
|
217
217
|
zIndex: 1
|
|
218
218
|
},
|
|
219
219
|
children: f.welcome
|
|
220
220
|
}
|
|
221
221
|
),
|
|
222
|
-
(
|
|
223
|
-
|
|
222
|
+
(v || h) && !R && f.instructions && /* @__PURE__ */ t(
|
|
223
|
+
B,
|
|
224
224
|
{
|
|
225
|
-
level:
|
|
225
|
+
level: v ? "body-sm" : "body-md",
|
|
226
226
|
sx: {
|
|
227
|
-
fontFamily:
|
|
227
|
+
fontFamily: l.secondary,
|
|
228
228
|
fontWeight: 400,
|
|
229
|
-
fontSize:
|
|
229
|
+
fontSize: x ? "0.875rem" : "1rem",
|
|
230
230
|
color: a,
|
|
231
231
|
opacity: 0.7,
|
|
232
232
|
textAlign: "center",
|
|
233
|
-
maxWidth:
|
|
233
|
+
maxWidth: v ? "400px" : "600px",
|
|
234
234
|
zIndex: 1
|
|
235
235
|
},
|
|
236
236
|
children: f.instructions
|
|
@@ -238,7 +238,7 @@ const ke = ({
|
|
|
238
238
|
)
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ w(
|
|
241
|
-
|
|
241
|
+
d,
|
|
242
242
|
{
|
|
243
243
|
onClick: I,
|
|
244
244
|
sx: {
|
|
@@ -246,11 +246,11 @@ const ke = ({
|
|
|
246
246
|
width: "100%",
|
|
247
247
|
maxWidth: te,
|
|
248
248
|
aspectRatio: "1",
|
|
249
|
-
mt: C ?
|
|
249
|
+
mt: C ? m.md : 0,
|
|
250
250
|
display: "flex",
|
|
251
251
|
alignItems: "center",
|
|
252
252
|
justifyContent: "center",
|
|
253
|
-
cursor: T ||
|
|
253
|
+
cursor: T || W || R || !F && !R && y !== null ? "default" : "pointer",
|
|
254
254
|
userSelect: "none",
|
|
255
255
|
zIndex: 1,
|
|
256
256
|
// Entrance animation
|
|
@@ -265,38 +265,38 @@ const ke = ({
|
|
|
265
265
|
"20%, 40%, 60%, 80%": { transform: "translateX(8px)" }
|
|
266
266
|
},
|
|
267
267
|
// Wheel glow effect (decorations only)
|
|
268
|
-
...
|
|
269
|
-
filter: `drop-shadow(0 0 ${
|
|
268
|
+
..._ && {
|
|
269
|
+
filter: `drop-shadow(0 0 ${x ? "15px" : "25px"} ${D("20")}) drop-shadow(0 0 ${x ? "40px" : "60px"} ${D("10")})`
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
272
|
children: [
|
|
273
273
|
/* @__PURE__ */ t(
|
|
274
|
-
|
|
274
|
+
pt,
|
|
275
275
|
{
|
|
276
|
-
segmentCount:
|
|
277
|
-
decorations:
|
|
278
|
-
primaryColor:
|
|
276
|
+
segmentCount: V.length,
|
|
277
|
+
decorations: _,
|
|
278
|
+
primaryColor: n
|
|
279
279
|
}
|
|
280
280
|
),
|
|
281
281
|
/* @__PURE__ */ t(
|
|
282
|
-
|
|
282
|
+
gt,
|
|
283
283
|
{
|
|
284
|
-
segments:
|
|
285
|
-
secondaryColor:
|
|
286
|
-
primaryColor:
|
|
284
|
+
segments: V,
|
|
285
|
+
secondaryColor: g,
|
|
286
|
+
primaryColor: n,
|
|
287
287
|
onPrimaryColor: o,
|
|
288
|
-
decorations:
|
|
289
|
-
isStandard:
|
|
290
|
-
rotation:
|
|
288
|
+
decorations: _,
|
|
289
|
+
isStandard: v,
|
|
290
|
+
rotation: M,
|
|
291
291
|
isSpinning: T,
|
|
292
292
|
spinDuration: P
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
|
-
!
|
|
296
|
-
|
|
295
|
+
!v && !h && r && /* @__PURE__ */ t(
|
|
296
|
+
d,
|
|
297
297
|
{
|
|
298
298
|
component: "img",
|
|
299
|
-
src:
|
|
299
|
+
src: r,
|
|
300
300
|
alt: "Logo",
|
|
301
301
|
sx: {
|
|
302
302
|
position: "absolute",
|
|
@@ -314,24 +314,24 @@ const ke = ({
|
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
316
|
/* @__PURE__ */ t(
|
|
317
|
-
|
|
317
|
+
yt,
|
|
318
318
|
{
|
|
319
|
-
primaryColor:
|
|
320
|
-
dangerColor:
|
|
321
|
-
decorations:
|
|
319
|
+
primaryColor: n,
|
|
320
|
+
dangerColor: i,
|
|
321
|
+
decorations: _
|
|
322
322
|
}
|
|
323
323
|
)
|
|
324
324
|
]
|
|
325
325
|
}
|
|
326
326
|
),
|
|
327
|
-
!
|
|
328
|
-
|
|
327
|
+
!v && !h && !R && f.instructions && /* @__PURE__ */ t(
|
|
328
|
+
B,
|
|
329
329
|
{
|
|
330
330
|
level: "body-sm",
|
|
331
331
|
sx: {
|
|
332
|
-
fontFamily:
|
|
332
|
+
fontFamily: l.secondary,
|
|
333
333
|
fontWeight: 400,
|
|
334
|
-
fontSize:
|
|
334
|
+
fontSize: x ? "0.875rem" : "1rem",
|
|
335
335
|
color: a,
|
|
336
336
|
opacity: 0.7,
|
|
337
337
|
textAlign: "center",
|
|
@@ -341,73 +341,73 @@ const ke = ({
|
|
|
341
341
|
children: f.instructions
|
|
342
342
|
}
|
|
343
343
|
),
|
|
344
|
-
!
|
|
345
|
-
|
|
344
|
+
!v && R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
|
|
345
|
+
ie,
|
|
346
346
|
{
|
|
347
|
-
result:
|
|
347
|
+
result: y.results,
|
|
348
348
|
variant: "embed",
|
|
349
349
|
mode: "inline",
|
|
350
350
|
contentColor: a,
|
|
351
|
-
primaryColor:
|
|
351
|
+
primaryColor: n,
|
|
352
352
|
onPrimaryColor: o,
|
|
353
|
-
enableReset:
|
|
354
|
-
onReset:
|
|
353
|
+
enableReset: c,
|
|
354
|
+
onReset: S,
|
|
355
355
|
showResetButton: !0,
|
|
356
356
|
sx: { zIndex: 1 }
|
|
357
357
|
}
|
|
358
358
|
),
|
|
359
|
-
f.buttonLabel && !(
|
|
359
|
+
f.buttonLabel && !(R && y && !y.isWinning) && /* @__PURE__ */ t(
|
|
360
360
|
he,
|
|
361
361
|
{
|
|
362
362
|
variant: "soft",
|
|
363
|
-
disabled: T ||
|
|
363
|
+
disabled: T || W || !F && !R && y !== null,
|
|
364
364
|
onClick: I,
|
|
365
365
|
sx: {
|
|
366
|
-
borderRadius:
|
|
367
|
-
py: C ?
|
|
368
|
-
px: C ?
|
|
369
|
-
"--variant-softBg":
|
|
366
|
+
borderRadius: p.xl,
|
|
367
|
+
py: C ? m.sm : m.md,
|
|
368
|
+
px: C ? m.lg : m.xl,
|
|
369
|
+
"--variant-softBg": n,
|
|
370
370
|
"--variant-softColor": o,
|
|
371
|
-
"--variant-softHoverBg":
|
|
372
|
-
bgcolor:
|
|
371
|
+
"--variant-softHoverBg": n,
|
|
372
|
+
bgcolor: n,
|
|
373
373
|
color: o,
|
|
374
|
-
fontSize: C ?
|
|
374
|
+
fontSize: C ? x ? "0.75rem" : "0.875rem" : x ? "1rem" : "1.125rem",
|
|
375
375
|
fontWeight: 700,
|
|
376
|
-
fontFamily:
|
|
376
|
+
fontFamily: l.primary,
|
|
377
377
|
textTransform: "uppercase",
|
|
378
378
|
letterSpacing: "0.5px",
|
|
379
|
-
minWidth: C ? void 0 :
|
|
379
|
+
minWidth: C ? void 0 : x ? "200px" : "250px",
|
|
380
380
|
zIndex: 1,
|
|
381
381
|
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
382
382
|
transform: "scale(1)",
|
|
383
|
-
...
|
|
384
|
-
boxShadow: `0 4px 14px 0 ${
|
|
385
|
-
animation: !T && !
|
|
383
|
+
..._ && {
|
|
384
|
+
boxShadow: `0 4px 14px 0 ${n}40, 0 0 20px ${n}15`,
|
|
385
|
+
animation: !T && !y ? "wheelBtnPulse 2.5s ease-in-out infinite" : "none",
|
|
386
386
|
"@keyframes wheelBtnPulse": {
|
|
387
387
|
"0%, 100%": {
|
|
388
|
-
boxShadow: `0 4px 14px 0 ${
|
|
388
|
+
boxShadow: `0 4px 14px 0 ${n}40, 0 0 20px ${n}15`
|
|
389
389
|
},
|
|
390
390
|
"50%": {
|
|
391
|
-
boxShadow: `0 6px 24px 0 ${
|
|
391
|
+
boxShadow: `0 6px 24px 0 ${n}60, 0 0 35px ${n}25`
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
|
-
...!
|
|
395
|
+
...!_ && {
|
|
396
396
|
boxShadow: "0 4px 14px 0 rgba(0,0,0,0.15)"
|
|
397
397
|
},
|
|
398
398
|
"&:hover": {
|
|
399
|
-
bgcolor:
|
|
399
|
+
bgcolor: n,
|
|
400
400
|
transform: "scale(1.05)",
|
|
401
|
-
boxShadow:
|
|
401
|
+
boxShadow: _ ? `0 6px 20px 0 ${n}50, 0 0 30px ${n}20` : "0 6px 20px 0 rgba(0,0,0,0.2)"
|
|
402
402
|
},
|
|
403
403
|
"&:active": {
|
|
404
404
|
transform: "scale(0.95)",
|
|
405
405
|
color: o
|
|
406
406
|
},
|
|
407
407
|
"&:disabled": {
|
|
408
|
-
"--variant-softDisabledBg":
|
|
408
|
+
"--variant-softDisabledBg": n,
|
|
409
409
|
"--variant-softDisabledColor": o,
|
|
410
|
-
bgcolor:
|
|
410
|
+
bgcolor: n,
|
|
411
411
|
color: o,
|
|
412
412
|
opacity: 0.5,
|
|
413
413
|
animation: "none"
|
|
@@ -425,26 +425,26 @@ const ke = ({
|
|
|
425
425
|
children: f.buttonLabel
|
|
426
426
|
}
|
|
427
427
|
),
|
|
428
|
-
|
|
428
|
+
v && R && y && !y.isWinning && /* @__PURE__ */ t(
|
|
429
429
|
he,
|
|
430
430
|
{
|
|
431
431
|
variant: "outlined",
|
|
432
|
-
onClick:
|
|
432
|
+
onClick: S,
|
|
433
433
|
sx: {
|
|
434
|
-
borderRadius:
|
|
435
|
-
py:
|
|
436
|
-
px:
|
|
437
|
-
borderColor:
|
|
434
|
+
borderRadius: p.xl,
|
|
435
|
+
py: m.sm,
|
|
436
|
+
px: m.lg,
|
|
437
|
+
borderColor: b.outlineEnabledBorder,
|
|
438
438
|
color: a,
|
|
439
|
-
fontSize:
|
|
439
|
+
fontSize: x ? "0.75rem" : "0.875rem",
|
|
440
440
|
fontWeight: 700,
|
|
441
|
-
fontFamily:
|
|
441
|
+
fontFamily: l.primary,
|
|
442
442
|
textTransform: "uppercase",
|
|
443
443
|
zIndex: 1,
|
|
444
444
|
"&:hover": {
|
|
445
|
-
borderColor:
|
|
445
|
+
borderColor: n,
|
|
446
446
|
bgcolor: "transparent",
|
|
447
|
-
color:
|
|
447
|
+
color: n
|
|
448
448
|
}
|
|
449
449
|
},
|
|
450
450
|
children: "Reset Game"
|
|
@@ -452,66 +452,66 @@ const ke = ({
|
|
|
452
452
|
)
|
|
453
453
|
] })
|
|
454
454
|
] });
|
|
455
|
-
if (
|
|
456
|
-
const Q = Ce(
|
|
455
|
+
if (v) {
|
|
456
|
+
const Q = Ce(u), oe = Q ? Q.replace(/[^\d,]/g, "") : "";
|
|
457
457
|
return /* @__PURE__ */ w(
|
|
458
|
-
|
|
458
|
+
d,
|
|
459
459
|
{
|
|
460
460
|
sx: {
|
|
461
461
|
display: "flex",
|
|
462
462
|
flexDirection: "column",
|
|
463
463
|
width: "100%",
|
|
464
464
|
height: "100%",
|
|
465
|
-
gap:
|
|
465
|
+
gap: m.lg,
|
|
466
466
|
alignItems: "center",
|
|
467
467
|
position: "relative",
|
|
468
468
|
overflow: "auto",
|
|
469
469
|
boxSizing: "border-box"
|
|
470
470
|
},
|
|
471
471
|
children: [
|
|
472
|
-
!
|
|
473
|
-
|
|
472
|
+
!F && f.welcome && /* @__PURE__ */ t(
|
|
473
|
+
B,
|
|
474
474
|
{
|
|
475
475
|
level: "body-md",
|
|
476
476
|
sx: {
|
|
477
|
-
fontFamily:
|
|
477
|
+
fontFamily: l.primary,
|
|
478
478
|
fontWeight: 400,
|
|
479
|
-
fontSize:
|
|
479
|
+
fontSize: x ? "0.875rem" : "1rem",
|
|
480
480
|
color: a,
|
|
481
481
|
textAlign: "center",
|
|
482
|
-
px:
|
|
482
|
+
px: m.md
|
|
483
483
|
},
|
|
484
484
|
children: f.welcome
|
|
485
485
|
}
|
|
486
486
|
),
|
|
487
487
|
/* @__PURE__ */ t(
|
|
488
|
-
|
|
488
|
+
d,
|
|
489
489
|
{
|
|
490
490
|
sx: {
|
|
491
491
|
display: "flex",
|
|
492
492
|
flexDirection: "column",
|
|
493
|
-
px:
|
|
493
|
+
px: m.md,
|
|
494
494
|
width: "100%",
|
|
495
495
|
boxSizing: "border-box"
|
|
496
496
|
},
|
|
497
497
|
children: /* @__PURE__ */ w(
|
|
498
|
-
|
|
498
|
+
d,
|
|
499
499
|
{
|
|
500
500
|
sx: {
|
|
501
501
|
display: "flex",
|
|
502
502
|
flexDirection: "column",
|
|
503
|
-
gap:
|
|
503
|
+
gap: x ? m.lg : m.md
|
|
504
504
|
},
|
|
505
505
|
children: [
|
|
506
506
|
/* @__PURE__ */ t(
|
|
507
|
-
|
|
507
|
+
d,
|
|
508
508
|
{
|
|
509
509
|
sx: {
|
|
510
|
-
borderRadius:
|
|
511
|
-
px:
|
|
512
|
-
pt:
|
|
513
|
-
pb:
|
|
514
|
-
gap:
|
|
510
|
+
borderRadius: p.md,
|
|
511
|
+
px: m.sm,
|
|
512
|
+
pt: m.sm,
|
|
513
|
+
pb: m.md,
|
|
514
|
+
gap: m.md,
|
|
515
515
|
bgcolor: `rgba(${oe}, 0.5)`,
|
|
516
516
|
display: "flex",
|
|
517
517
|
flexDirection: "column",
|
|
@@ -519,44 +519,44 @@ const ke = ({
|
|
|
519
519
|
backdropFilter: "blur(4px)",
|
|
520
520
|
position: "relative",
|
|
521
521
|
overflow: "hidden",
|
|
522
|
-
...
|
|
523
|
-
border: `${
|
|
522
|
+
..._ && {
|
|
523
|
+
border: `${O.size} solid ${D("15")}`
|
|
524
524
|
}
|
|
525
525
|
},
|
|
526
526
|
children: Y()
|
|
527
527
|
}
|
|
528
528
|
),
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
|
|
530
|
+
ie,
|
|
531
531
|
{
|
|
532
|
-
result:
|
|
532
|
+
result: y.results,
|
|
533
533
|
variant: "standard",
|
|
534
534
|
mode: "inline",
|
|
535
535
|
contentColor: a,
|
|
536
|
-
primaryColor:
|
|
536
|
+
primaryColor: n,
|
|
537
537
|
onPrimaryColor: o,
|
|
538
538
|
showResetButton: !1,
|
|
539
|
-
sx: { mb:
|
|
539
|
+
sx: { mb: m.md }
|
|
540
540
|
}
|
|
541
541
|
),
|
|
542
|
-
(
|
|
543
|
-
|
|
542
|
+
(r || f.disclaimer) && /* @__PURE__ */ w(
|
|
543
|
+
d,
|
|
544
544
|
{
|
|
545
545
|
sx: {
|
|
546
546
|
display: "flex",
|
|
547
547
|
flexDirection: "column",
|
|
548
548
|
alignItems: "center",
|
|
549
|
-
gap:
|
|
549
|
+
gap: m.md
|
|
550
550
|
},
|
|
551
551
|
children: [
|
|
552
552
|
f.disclaimer && /* @__PURE__ */ t(
|
|
553
|
-
|
|
553
|
+
B,
|
|
554
554
|
{
|
|
555
555
|
level: "body-sm",
|
|
556
556
|
sx: {
|
|
557
|
-
fontFamily:
|
|
557
|
+
fontFamily: l.secondary,
|
|
558
558
|
fontWeight: 400,
|
|
559
|
-
fontSize:
|
|
559
|
+
fontSize: x ? "0.625rem" : "0.75rem",
|
|
560
560
|
color: a,
|
|
561
561
|
opacity: 0.7,
|
|
562
562
|
textAlign: "center",
|
|
@@ -566,10 +566,10 @@ const ke = ({
|
|
|
566
566
|
children: f.disclaimer
|
|
567
567
|
}
|
|
568
568
|
),
|
|
569
|
-
|
|
569
|
+
r && /* @__PURE__ */ t(
|
|
570
570
|
"img",
|
|
571
571
|
{
|
|
572
|
-
src:
|
|
572
|
+
src: r,
|
|
573
573
|
alt: "Brand Logo",
|
|
574
574
|
style: {
|
|
575
575
|
height: "auto",
|
|
@@ -591,14 +591,14 @@ const ke = ({
|
|
|
591
591
|
);
|
|
592
592
|
}
|
|
593
593
|
return /* @__PURE__ */ w(
|
|
594
|
-
|
|
594
|
+
d,
|
|
595
595
|
{
|
|
596
596
|
sx: {
|
|
597
597
|
display: "flex",
|
|
598
598
|
flexDirection: "column",
|
|
599
599
|
width: "100%",
|
|
600
|
-
p:
|
|
601
|
-
gap:
|
|
600
|
+
p: x ? m.lg : m.xl,
|
|
601
|
+
gap: m.lg,
|
|
602
602
|
alignItems: "center",
|
|
603
603
|
position: "relative",
|
|
604
604
|
overflow: "hidden",
|
|
@@ -606,23 +606,23 @@ const ke = ({
|
|
|
606
606
|
},
|
|
607
607
|
children: [
|
|
608
608
|
Y(),
|
|
609
|
-
!
|
|
610
|
-
|
|
609
|
+
!F && f.disclaimer && /* @__PURE__ */ t(
|
|
610
|
+
d,
|
|
611
611
|
{
|
|
612
612
|
sx: {
|
|
613
613
|
display: "flex",
|
|
614
614
|
flexDirection: "column",
|
|
615
615
|
alignItems: "center",
|
|
616
|
-
gap:
|
|
616
|
+
gap: m.md
|
|
617
617
|
},
|
|
618
618
|
children: /* @__PURE__ */ t(
|
|
619
|
-
|
|
619
|
+
B,
|
|
620
620
|
{
|
|
621
621
|
level: "body-sm",
|
|
622
622
|
sx: {
|
|
623
|
-
fontFamily:
|
|
623
|
+
fontFamily: l.secondary,
|
|
624
624
|
fontWeight: 400,
|
|
625
|
-
fontSize:
|
|
625
|
+
fontSize: x ? "0.625rem" : "0.75rem",
|
|
626
626
|
color: a,
|
|
627
627
|
opacity: 0.7,
|
|
628
628
|
textAlign: "center",
|
|
@@ -637,21 +637,21 @@ const ke = ({
|
|
|
637
637
|
]
|
|
638
638
|
}
|
|
639
639
|
);
|
|
640
|
-
},
|
|
640
|
+
}, zt = ({
|
|
641
641
|
infoPage: e,
|
|
642
|
-
enableReset:
|
|
642
|
+
enableReset: c = !1,
|
|
643
643
|
imagePosition: a = "left",
|
|
644
|
-
defaultImagePlaceholderUrl:
|
|
644
|
+
defaultImagePlaceholderUrl: n
|
|
645
645
|
}) => {
|
|
646
|
-
var
|
|
647
|
-
const { t:
|
|
646
|
+
var m, O;
|
|
647
|
+
const { t: g } = se(), o = J(), u = le(), i = Te() === "dark", r = pe(
|
|
648
648
|
{
|
|
649
649
|
images: e.images,
|
|
650
|
-
imagePlaceholder:
|
|
650
|
+
imagePlaceholder: n || ""
|
|
651
651
|
},
|
|
652
652
|
fe.STANDARD
|
|
653
|
-
),
|
|
654
|
-
return /* @__PURE__ */ t(ke, { brandingBorderColor:
|
|
653
|
+
), s = (m = e.branding) == null ? void 0 : m.colors, k = (s == null ? void 0 : s.primary_color) || u.palette.primary.plainColor, z = (s == null ? void 0 : s.secondary_color) || u.palette.danger.plainColor, x = (s == null ? void 0 : s.border_color) || null, b = (s == null ? void 0 : s.background_color) || u.surfaceVariant || "", p = (O = e.branding) == null ? void 0 : O.images, l = o ? (p == null ? void 0 : p.mobile_logo) || (p == null ? void 0 : p.main_logo) || "" : (p == null ? void 0 : p.main_logo) || "";
|
|
654
|
+
return /* @__PURE__ */ t(ke, { brandingBorderColor: x, children: /* @__PURE__ */ t(
|
|
655
655
|
Ae,
|
|
656
656
|
{
|
|
657
657
|
entity: {
|
|
@@ -660,59 +660,59 @@ const ke = ({
|
|
|
660
660
|
description: e.subtitle || "",
|
|
661
661
|
rules: null
|
|
662
662
|
},
|
|
663
|
-
headline:
|
|
664
|
-
finalImage:
|
|
663
|
+
headline: g("chanceGame.headlinePrizeWheel"),
|
|
664
|
+
finalImage: r,
|
|
665
665
|
imagePosition: a,
|
|
666
666
|
children: /* @__PURE__ */ t(
|
|
667
|
-
|
|
667
|
+
Ne,
|
|
668
668
|
{
|
|
669
669
|
infoPage: e,
|
|
670
|
-
enableReset:
|
|
671
|
-
contentColor: (
|
|
672
|
-
primaryColor:
|
|
673
|
-
secondaryColor:
|
|
674
|
-
onPrimaryColor:
|
|
675
|
-
borderColor:
|
|
676
|
-
backgroundColor:
|
|
677
|
-
dangerColor:
|
|
678
|
-
shimmerColor:
|
|
679
|
-
brandingLogo:
|
|
680
|
-
isDark:
|
|
670
|
+
enableReset: c,
|
|
671
|
+
contentColor: (s == null ? void 0 : s.content_color) || u.textColor,
|
|
672
|
+
primaryColor: k,
|
|
673
|
+
secondaryColor: z,
|
|
674
|
+
onPrimaryColor: u.palette.primary.onPrimary,
|
|
675
|
+
borderColor: x || void 0,
|
|
676
|
+
backgroundColor: b,
|
|
677
|
+
dangerColor: u.palette.danger.plainColor,
|
|
678
|
+
shimmerColor: k,
|
|
679
|
+
brandingLogo: l,
|
|
680
|
+
isDark: i,
|
|
681
681
|
showTitleBlock: !1,
|
|
682
682
|
variant: "standard"
|
|
683
683
|
}
|
|
684
684
|
)
|
|
685
685
|
}
|
|
686
686
|
) });
|
|
687
|
-
},
|
|
687
|
+
}, Ve = ({
|
|
688
688
|
infoPage: e,
|
|
689
|
-
enableReset:
|
|
689
|
+
enableReset: c = !1,
|
|
690
690
|
contentColor: a,
|
|
691
|
-
primaryColor:
|
|
692
|
-
onPrimaryColor:
|
|
691
|
+
primaryColor: n,
|
|
692
|
+
onPrimaryColor: g,
|
|
693
693
|
borderColor: o,
|
|
694
|
-
backgroundColor:
|
|
695
|
-
dangerColor:
|
|
696
|
-
cardBaseColor:
|
|
697
|
-
shimmerColor:
|
|
698
|
-
brandingLogo:
|
|
699
|
-
isDark:
|
|
700
|
-
showTitleBlock:
|
|
701
|
-
variant:
|
|
702
|
-
compactCards:
|
|
694
|
+
backgroundColor: u,
|
|
695
|
+
dangerColor: i,
|
|
696
|
+
cardBaseColor: r,
|
|
697
|
+
shimmerColor: s,
|
|
698
|
+
brandingLogo: k = "",
|
|
699
|
+
isDark: z = !1,
|
|
700
|
+
showTitleBlock: x = !1,
|
|
701
|
+
variant: b,
|
|
702
|
+
compactCards: p = !1
|
|
703
703
|
}) => {
|
|
704
704
|
var Fe, We, _e, Oe;
|
|
705
|
-
const
|
|
706
|
-
var
|
|
707
|
-
return (
|
|
705
|
+
const l = J(), m = le(), O = ve(), v = we(), h = xe(), C = Se(), E = r || u, V = s || n, f = b === "standard", L = b === "overlay", H = f ? Ce(u) : "", _ = H ? H.replace(/[^\d,]/g, "") : "", D = p ? l ? 80 : 110 : l ? 100 : 140, T = p ? l ? 104 : 143 : l ? 130 : 180, M = p ? l ? 90 : 130 : l ? 120 : 180, y = p ? l ? "16px" : "32px" : l ? "24px" : "48px", X = p ? l ? "12px" : "32px" : l ? "16px" : "48px", F = Ee(n, z), R = JSON.parse(e.body), $ = R.segments || [], W = e.labels || {}, P = R.mode || ((Fe = R.config) == null ? void 0 : Fe.mode) || "fair", U = ((We = R.config) == null ? void 0 : We.pace) || "normal", j = ((_e = R.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = R.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
|
|
706
|
+
var K;
|
|
707
|
+
return (K = ae.images) == null ? void 0 : K.idle;
|
|
708
708
|
}), {
|
|
709
|
-
selectedSegment:
|
|
709
|
+
selectedSegment: S,
|
|
710
710
|
displaySegments: ee,
|
|
711
711
|
revealResult: te,
|
|
712
712
|
showResultScreen: Y,
|
|
713
713
|
showInlineResult: G,
|
|
714
714
|
showLoseAnimation: q,
|
|
715
|
-
hasEntered:
|
|
715
|
+
hasEntered: N,
|
|
716
716
|
flippedCards: Q,
|
|
717
717
|
crossfadedCards: oe,
|
|
718
718
|
revealedOtherCards: ce,
|
|
@@ -721,33 +721,33 @@ const ke = ({
|
|
|
721
721
|
loseAnimationDuration: Ue,
|
|
722
722
|
handlePick: Re,
|
|
723
723
|
handleReset: ge
|
|
724
|
-
} =
|
|
724
|
+
} = bt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
|
|
725
725
|
A && /* @__PURE__ */ t(
|
|
726
726
|
Ge,
|
|
727
727
|
{
|
|
728
|
-
primaryColor:
|
|
729
|
-
isDark:
|
|
728
|
+
primaryColor: n,
|
|
729
|
+
isDark: z,
|
|
730
730
|
animationPrefix: "casino"
|
|
731
731
|
}
|
|
732
732
|
),
|
|
733
|
-
Y && (
|
|
734
|
-
|
|
733
|
+
Y && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
|
|
734
|
+
ie,
|
|
735
735
|
{
|
|
736
|
-
result:
|
|
737
|
-
variant:
|
|
736
|
+
result: S.results,
|
|
737
|
+
variant: b || "embed",
|
|
738
738
|
mode: "screen",
|
|
739
739
|
contentColor: a,
|
|
740
|
-
primaryColor:
|
|
741
|
-
onPrimaryColor:
|
|
740
|
+
primaryColor: n,
|
|
741
|
+
onPrimaryColor: g,
|
|
742
742
|
borderColor: o,
|
|
743
|
-
disclaimer: f ? void 0 :
|
|
744
|
-
enableReset:
|
|
743
|
+
disclaimer: f ? void 0 : W.disclaimer,
|
|
744
|
+
enableReset: c,
|
|
745
745
|
onReset: ge
|
|
746
746
|
}
|
|
747
747
|
),
|
|
748
748
|
!Y && /* @__PURE__ */ w(re, { children: [
|
|
749
|
-
!f &&
|
|
750
|
-
|
|
749
|
+
!f && x && (e.title || e.subtitle) && /* @__PURE__ */ w(
|
|
750
|
+
d,
|
|
751
751
|
{
|
|
752
752
|
sx: {
|
|
753
753
|
display: "flex",
|
|
@@ -759,60 +759,60 @@ const ke = ({
|
|
|
759
759
|
},
|
|
760
760
|
children: [
|
|
761
761
|
e.title && /* @__PURE__ */ t(
|
|
762
|
-
|
|
762
|
+
B,
|
|
763
763
|
{
|
|
764
764
|
level: "h2",
|
|
765
765
|
sx: {
|
|
766
|
-
fontFamily:
|
|
766
|
+
fontFamily: v.primary,
|
|
767
767
|
fontWeight: 700,
|
|
768
|
-
fontSize:
|
|
768
|
+
fontSize: l ? "1.5rem" : "2rem",
|
|
769
769
|
color: a,
|
|
770
770
|
lineHeight: 1.2,
|
|
771
|
-
textShadow: A ? `0 0 20px ${
|
|
771
|
+
textShadow: A ? `0 0 20px ${n}20` : "none"
|
|
772
772
|
},
|
|
773
773
|
children: e.title
|
|
774
774
|
}
|
|
775
775
|
),
|
|
776
776
|
A && e.title && /* @__PURE__ */ w(
|
|
777
|
-
|
|
777
|
+
d,
|
|
778
778
|
{
|
|
779
779
|
sx: {
|
|
780
780
|
display: "flex",
|
|
781
781
|
alignItems: "center",
|
|
782
782
|
gap: h.sm,
|
|
783
783
|
mt: h.xs,
|
|
784
|
-
width:
|
|
784
|
+
width: l ? "60%" : "40%"
|
|
785
785
|
},
|
|
786
786
|
children: [
|
|
787
787
|
/* @__PURE__ */ t(
|
|
788
|
-
|
|
788
|
+
d,
|
|
789
789
|
{
|
|
790
790
|
sx: {
|
|
791
791
|
flex: 1,
|
|
792
792
|
height: "1px",
|
|
793
|
-
background: `linear-gradient(to right, transparent, ${
|
|
793
|
+
background: `linear-gradient(to right, transparent, ${F("40")})`
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
),
|
|
797
797
|
/* @__PURE__ */ t(
|
|
798
|
-
|
|
798
|
+
d,
|
|
799
799
|
{
|
|
800
800
|
sx: {
|
|
801
801
|
width: "8px",
|
|
802
802
|
height: "8px",
|
|
803
803
|
transform: "rotate(45deg)",
|
|
804
|
-
border: `${C.size} solid ${
|
|
805
|
-
background: `${
|
|
804
|
+
border: `${C.size} solid ${F("50")}`,
|
|
805
|
+
background: `${F("15")}`
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
),
|
|
809
809
|
/* @__PURE__ */ t(
|
|
810
|
-
|
|
810
|
+
d,
|
|
811
811
|
{
|
|
812
812
|
sx: {
|
|
813
813
|
flex: 1,
|
|
814
814
|
height: "1px",
|
|
815
|
-
background: `linear-gradient(to left, transparent, ${
|
|
815
|
+
background: `linear-gradient(to left, transparent, ${F("40")})`
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
818
|
)
|
|
@@ -820,13 +820,13 @@ const ke = ({
|
|
|
820
820
|
}
|
|
821
821
|
),
|
|
822
822
|
e.subtitle && /* @__PURE__ */ t(
|
|
823
|
-
|
|
823
|
+
B,
|
|
824
824
|
{
|
|
825
825
|
level: "body-md",
|
|
826
826
|
sx: {
|
|
827
|
-
fontFamily:
|
|
827
|
+
fontFamily: v.secondary,
|
|
828
828
|
fontWeight: 400,
|
|
829
|
-
fontSize:
|
|
829
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
830
830
|
color: a,
|
|
831
831
|
opacity: 0.8
|
|
832
832
|
},
|
|
@@ -836,78 +836,78 @@ const ke = ({
|
|
|
836
836
|
]
|
|
837
837
|
}
|
|
838
838
|
),
|
|
839
|
-
/* @__PURE__ */ w(
|
|
840
|
-
!f &&
|
|
841
|
-
|
|
839
|
+
/* @__PURE__ */ w(d, { children: [
|
|
840
|
+
!f && W.welcome && /* @__PURE__ */ t(
|
|
841
|
+
B,
|
|
842
842
|
{
|
|
843
843
|
level: "body-md",
|
|
844
844
|
sx: {
|
|
845
|
-
fontFamily:
|
|
845
|
+
fontFamily: v.primary,
|
|
846
846
|
fontWeight: 400,
|
|
847
|
-
fontSize:
|
|
847
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
848
848
|
color: a,
|
|
849
849
|
textAlign: "center",
|
|
850
850
|
mb: L ? 0 : h.md
|
|
851
851
|
},
|
|
852
|
-
children:
|
|
852
|
+
children: W.welcome
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
W.instructions && !G && /* @__PURE__ */ t(
|
|
856
|
+
B,
|
|
857
857
|
{
|
|
858
858
|
level: f ? "body-sm" : "body-md",
|
|
859
859
|
sx: {
|
|
860
|
-
fontFamily:
|
|
860
|
+
fontFamily: v.secondary,
|
|
861
861
|
fontWeight: 400,
|
|
862
|
-
fontSize:
|
|
862
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
863
863
|
color: a,
|
|
864
864
|
textAlign: "center",
|
|
865
865
|
opacity: 0.7,
|
|
866
866
|
maxWidth: f ? "400px" : "600px"
|
|
867
867
|
},
|
|
868
|
-
children:
|
|
868
|
+
children: W.instructions
|
|
869
869
|
}
|
|
870
870
|
)
|
|
871
871
|
] }),
|
|
872
872
|
A && /* @__PURE__ */ w(
|
|
873
|
-
|
|
873
|
+
d,
|
|
874
874
|
{
|
|
875
875
|
sx: {
|
|
876
876
|
display: "flex",
|
|
877
877
|
alignItems: "center",
|
|
878
878
|
gap: h.sm,
|
|
879
|
-
width:
|
|
879
|
+
width: l ? "40%" : "25%",
|
|
880
880
|
my: h.xs
|
|
881
881
|
},
|
|
882
882
|
children: [
|
|
883
883
|
/* @__PURE__ */ t(
|
|
884
|
-
|
|
884
|
+
d,
|
|
885
885
|
{
|
|
886
886
|
sx: {
|
|
887
887
|
flex: 1,
|
|
888
888
|
height: "1px",
|
|
889
|
-
background: `linear-gradient(to right, transparent, ${
|
|
889
|
+
background: `linear-gradient(to right, transparent, ${F("25")})`
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
),
|
|
893
893
|
/* @__PURE__ */ t(
|
|
894
|
-
|
|
894
|
+
d,
|
|
895
895
|
{
|
|
896
896
|
sx: {
|
|
897
897
|
width: "4px",
|
|
898
898
|
height: "4px",
|
|
899
899
|
borderRadius: "50%",
|
|
900
|
-
background: `${
|
|
900
|
+
background: `${F("35")}`
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
904
|
/* @__PURE__ */ t(
|
|
905
|
-
|
|
905
|
+
d,
|
|
906
906
|
{
|
|
907
907
|
sx: {
|
|
908
908
|
flex: 1,
|
|
909
909
|
height: "1px",
|
|
910
|
-
background: `linear-gradient(to left, transparent, ${
|
|
910
|
+
background: `linear-gradient(to left, transparent, ${F("25")})`
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
)
|
|
@@ -915,78 +915,78 @@ const ke = ({
|
|
|
915
915
|
}
|
|
916
916
|
),
|
|
917
917
|
/* @__PURE__ */ t(
|
|
918
|
-
|
|
918
|
+
d,
|
|
919
919
|
{
|
|
920
920
|
sx: {
|
|
921
921
|
mt: h.lg,
|
|
922
922
|
mx: "auto",
|
|
923
923
|
display: "grid",
|
|
924
|
-
gridTemplateColumns: I ? `repeat(3, ${
|
|
925
|
-
rowGap:
|
|
924
|
+
gridTemplateColumns: I ? `repeat(3, ${M}px)` : `repeat(3, ${D}px)`,
|
|
925
|
+
rowGap: y,
|
|
926
926
|
columnGap: X,
|
|
927
927
|
justifyContent: "center",
|
|
928
928
|
mb: h.lg,
|
|
929
929
|
position: "relative",
|
|
930
930
|
perspective: "1200px"
|
|
931
931
|
},
|
|
932
|
-
children: (ee ?? $).map((ae,
|
|
933
|
-
const
|
|
932
|
+
children: (ee ?? $).map((ae, K) => {
|
|
933
|
+
const ye = `card-${K}`, de = S !== null, De = Q.has(ye), me = ce.has(ye), je = de && !De && !me, Be = oe.has(ye), Ye = de && !Be && !me;
|
|
934
934
|
return /* @__PURE__ */ t(
|
|
935
|
-
|
|
935
|
+
d,
|
|
936
936
|
{
|
|
937
937
|
sx: {
|
|
938
938
|
display: "flex",
|
|
939
939
|
justifyContent: "center",
|
|
940
940
|
alignItems: "center",
|
|
941
941
|
// Staggered deal-in entrance
|
|
942
|
-
opacity:
|
|
943
|
-
transform:
|
|
944
|
-
transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${
|
|
942
|
+
opacity: N ? 1 : 0,
|
|
943
|
+
transform: N ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
|
|
944
|
+
transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${K * 100}ms`
|
|
945
945
|
},
|
|
946
946
|
children: I ? /* @__PURE__ */ t(
|
|
947
|
-
|
|
947
|
+
vt,
|
|
948
948
|
{
|
|
949
949
|
segment: ae,
|
|
950
|
-
index:
|
|
951
|
-
selectedSegment:
|
|
950
|
+
index: K,
|
|
951
|
+
selectedSegment: S,
|
|
952
952
|
revealResult: te,
|
|
953
|
-
isCrossfaded:
|
|
953
|
+
isCrossfaded: Be,
|
|
954
954
|
isOtherRevealed: me,
|
|
955
955
|
shouldDim: Ye,
|
|
956
956
|
isRevealed: de,
|
|
957
|
-
hasEntered:
|
|
958
|
-
objectSize:
|
|
957
|
+
hasEntered: N,
|
|
958
|
+
objectSize: M,
|
|
959
959
|
crossfadeDuration: Pe,
|
|
960
960
|
isStandard: f,
|
|
961
|
-
primaryColor:
|
|
962
|
-
dangerColor:
|
|
963
|
-
onPick: () => Re(
|
|
961
|
+
primaryColor: n,
|
|
962
|
+
dangerColor: i,
|
|
963
|
+
onPick: () => Re(K, !0)
|
|
964
964
|
}
|
|
965
965
|
) : /* @__PURE__ */ t(
|
|
966
|
-
|
|
966
|
+
St,
|
|
967
967
|
{
|
|
968
968
|
segment: ae,
|
|
969
|
-
index:
|
|
970
|
-
selectedSegment:
|
|
971
|
-
isFlipped:
|
|
969
|
+
index: K,
|
|
970
|
+
selectedSegment: S,
|
|
971
|
+
isFlipped: De,
|
|
972
972
|
isOtherRevealed: me,
|
|
973
973
|
shouldDim: je,
|
|
974
974
|
isRevealed: de,
|
|
975
975
|
showLoseAnimation: q,
|
|
976
|
-
hasEntered:
|
|
977
|
-
cardWidth:
|
|
976
|
+
hasEntered: N,
|
|
977
|
+
cardWidth: D,
|
|
978
978
|
cardHeight: T,
|
|
979
979
|
flipDuration: Xe,
|
|
980
980
|
loseAnimationDuration: Ue,
|
|
981
981
|
cardBaseColor: E,
|
|
982
|
-
shimmerColor:
|
|
983
|
-
primaryColor:
|
|
982
|
+
shimmerColor: V,
|
|
983
|
+
primaryColor: n,
|
|
984
984
|
contentColor: a,
|
|
985
|
-
dangerColor:
|
|
985
|
+
dangerColor: i,
|
|
986
986
|
borderColor: o,
|
|
987
|
-
brandingLogo:
|
|
988
|
-
compactCards:
|
|
989
|
-
onPick: () => Re(
|
|
987
|
+
brandingLogo: k,
|
|
988
|
+
compactCards: p,
|
|
989
|
+
onPick: () => Re(K, !1)
|
|
990
990
|
}
|
|
991
991
|
)
|
|
992
992
|
},
|
|
@@ -995,20 +995,20 @@ const ke = ({
|
|
|
995
995
|
})
|
|
996
996
|
}
|
|
997
997
|
),
|
|
998
|
-
!f && G && (
|
|
999
|
-
|
|
998
|
+
!f && G && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
|
|
999
|
+
ie,
|
|
1000
1000
|
{
|
|
1001
|
-
result:
|
|
1001
|
+
result: S.results,
|
|
1002
1002
|
variant: "embed",
|
|
1003
1003
|
mode: "inline",
|
|
1004
1004
|
contentColor: a,
|
|
1005
|
-
primaryColor:
|
|
1006
|
-
onPrimaryColor:
|
|
1005
|
+
primaryColor: n,
|
|
1006
|
+
onPrimaryColor: g,
|
|
1007
1007
|
borderColor: o,
|
|
1008
1008
|
showResetButton: !1
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
!f &&
|
|
1011
|
+
!f && c && G && /* @__PURE__ */ t(
|
|
1012
1012
|
he,
|
|
1013
1013
|
{
|
|
1014
1014
|
onClick: ge,
|
|
@@ -1017,42 +1017,42 @@ const ke = ({
|
|
|
1017
1017
|
mt: h.md,
|
|
1018
1018
|
px: h.lg,
|
|
1019
1019
|
py: h.sm,
|
|
1020
|
-
fontFamily:
|
|
1020
|
+
fontFamily: v.secondary,
|
|
1021
1021
|
fontWeight: 600,
|
|
1022
|
-
fontSize:
|
|
1022
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
1023
1023
|
textTransform: "uppercase",
|
|
1024
|
-
borderRadius:
|
|
1025
|
-
borderColor: o ||
|
|
1024
|
+
borderRadius: O.md,
|
|
1025
|
+
borderColor: o || m.outlineEnabledBorder,
|
|
1026
1026
|
color: a,
|
|
1027
|
-
minWidth:
|
|
1027
|
+
minWidth: l ? "150px" : "180px",
|
|
1028
1028
|
"&:hover": {
|
|
1029
|
-
borderColor:
|
|
1029
|
+
borderColor: n,
|
|
1030
1030
|
bgcolor: "transparent",
|
|
1031
|
-
color:
|
|
1031
|
+
color: n
|
|
1032
1032
|
}
|
|
1033
1033
|
},
|
|
1034
1034
|
children: "Reset Game"
|
|
1035
1035
|
}
|
|
1036
1036
|
),
|
|
1037
|
-
f &&
|
|
1037
|
+
f && c && G && /* @__PURE__ */ t(
|
|
1038
1038
|
he,
|
|
1039
1039
|
{
|
|
1040
1040
|
onClick: ge,
|
|
1041
1041
|
variant: "outlined",
|
|
1042
1042
|
sx: {
|
|
1043
|
-
borderRadius:
|
|
1043
|
+
borderRadius: O.xl,
|
|
1044
1044
|
py: h.sm,
|
|
1045
1045
|
px: h.lg,
|
|
1046
|
-
borderColor:
|
|
1046
|
+
borderColor: m.outlineEnabledBorder,
|
|
1047
1047
|
color: a,
|
|
1048
|
-
fontSize:
|
|
1048
|
+
fontSize: l ? "0.75rem" : "0.875rem",
|
|
1049
1049
|
fontWeight: 700,
|
|
1050
|
-
fontFamily:
|
|
1050
|
+
fontFamily: v.primary,
|
|
1051
1051
|
textTransform: "uppercase",
|
|
1052
1052
|
"&:hover": {
|
|
1053
|
-
borderColor:
|
|
1053
|
+
borderColor: n,
|
|
1054
1054
|
bgcolor: "transparent",
|
|
1055
|
-
color:
|
|
1055
|
+
color: n
|
|
1056
1056
|
}
|
|
1057
1057
|
},
|
|
1058
1058
|
children: "Reset Game"
|
|
@@ -1061,7 +1061,7 @@ const ke = ({
|
|
|
1061
1061
|
] })
|
|
1062
1062
|
] });
|
|
1063
1063
|
return f ? /* @__PURE__ */ w(
|
|
1064
|
-
|
|
1064
|
+
d,
|
|
1065
1065
|
{
|
|
1066
1066
|
sx: {
|
|
1067
1067
|
display: "flex",
|
|
@@ -1075,23 +1075,23 @@ const ke = ({
|
|
|
1075
1075
|
boxSizing: "border-box"
|
|
1076
1076
|
},
|
|
1077
1077
|
children: [
|
|
1078
|
-
!Y &&
|
|
1079
|
-
|
|
1078
|
+
!Y && W.welcome && /* @__PURE__ */ t(
|
|
1079
|
+
B,
|
|
1080
1080
|
{
|
|
1081
1081
|
level: "body-md",
|
|
1082
1082
|
sx: {
|
|
1083
|
-
fontFamily:
|
|
1083
|
+
fontFamily: v.primary,
|
|
1084
1084
|
fontWeight: 400,
|
|
1085
|
-
fontSize:
|
|
1085
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
1086
1086
|
color: a,
|
|
1087
1087
|
textAlign: "center",
|
|
1088
1088
|
px: h.md
|
|
1089
1089
|
},
|
|
1090
|
-
children:
|
|
1090
|
+
children: W.welcome
|
|
1091
1091
|
}
|
|
1092
1092
|
),
|
|
1093
1093
|
/* @__PURE__ */ t(
|
|
1094
|
-
|
|
1094
|
+
d,
|
|
1095
1095
|
{
|
|
1096
1096
|
sx: {
|
|
1097
1097
|
display: "flex",
|
|
@@ -1101,24 +1101,24 @@ const ke = ({
|
|
|
1101
1101
|
boxSizing: "border-box"
|
|
1102
1102
|
},
|
|
1103
1103
|
children: /* @__PURE__ */ w(
|
|
1104
|
-
|
|
1104
|
+
d,
|
|
1105
1105
|
{
|
|
1106
1106
|
sx: {
|
|
1107
1107
|
display: "flex",
|
|
1108
1108
|
flexDirection: "column",
|
|
1109
|
-
gap:
|
|
1109
|
+
gap: l ? h.lg : h.md
|
|
1110
1110
|
},
|
|
1111
1111
|
children: [
|
|
1112
1112
|
/* @__PURE__ */ t(
|
|
1113
|
-
|
|
1113
|
+
d,
|
|
1114
1114
|
{
|
|
1115
1115
|
sx: {
|
|
1116
|
-
borderRadius:
|
|
1116
|
+
borderRadius: O.md,
|
|
1117
1117
|
px: h.sm,
|
|
1118
1118
|
pt: h.sm,
|
|
1119
1119
|
pb: h.md,
|
|
1120
1120
|
gap: h.md,
|
|
1121
|
-
bgcolor: `rgba(${
|
|
1121
|
+
bgcolor: `rgba(${_}, 0.5)`,
|
|
1122
1122
|
display: "flex",
|
|
1123
1123
|
flexDirection: "column",
|
|
1124
1124
|
alignItems: "center",
|
|
@@ -1129,21 +1129,21 @@ const ke = ({
|
|
|
1129
1129
|
children: ze()
|
|
1130
1130
|
}
|
|
1131
1131
|
),
|
|
1132
|
-
G && (
|
|
1133
|
-
|
|
1132
|
+
G && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
|
|
1133
|
+
ie,
|
|
1134
1134
|
{
|
|
1135
|
-
result:
|
|
1135
|
+
result: S.results,
|
|
1136
1136
|
variant: "standard",
|
|
1137
1137
|
mode: "inline",
|
|
1138
1138
|
contentColor: a,
|
|
1139
|
-
primaryColor:
|
|
1140
|
-
onPrimaryColor:
|
|
1139
|
+
primaryColor: n,
|
|
1140
|
+
onPrimaryColor: g,
|
|
1141
1141
|
showResetButton: !1,
|
|
1142
1142
|
sx: { mb: h.md }
|
|
1143
1143
|
}
|
|
1144
1144
|
),
|
|
1145
|
-
(
|
|
1146
|
-
|
|
1145
|
+
(k || W.disclaimer) && /* @__PURE__ */ w(
|
|
1146
|
+
d,
|
|
1147
1147
|
{
|
|
1148
1148
|
sx: {
|
|
1149
1149
|
display: "flex",
|
|
@@ -1152,27 +1152,27 @@ const ke = ({
|
|
|
1152
1152
|
gap: h.md
|
|
1153
1153
|
},
|
|
1154
1154
|
children: [
|
|
1155
|
-
|
|
1156
|
-
|
|
1155
|
+
W.disclaimer && /* @__PURE__ */ t(
|
|
1156
|
+
B,
|
|
1157
1157
|
{
|
|
1158
1158
|
level: "body-sm",
|
|
1159
1159
|
sx: {
|
|
1160
|
-
fontFamily:
|
|
1160
|
+
fontFamily: v.secondary,
|
|
1161
1161
|
fontWeight: 400,
|
|
1162
|
-
fontSize:
|
|
1162
|
+
fontSize: l ? "0.625rem" : "0.75rem",
|
|
1163
1163
|
color: a,
|
|
1164
1164
|
opacity: 0.7,
|
|
1165
1165
|
textAlign: "center",
|
|
1166
1166
|
maxWidth: "900px",
|
|
1167
1167
|
lineHeight: 1.4
|
|
1168
1168
|
},
|
|
1169
|
-
children:
|
|
1169
|
+
children: W.disclaimer
|
|
1170
1170
|
}
|
|
1171
1171
|
),
|
|
1172
|
-
|
|
1172
|
+
k && I && /* @__PURE__ */ t(
|
|
1173
1173
|
"img",
|
|
1174
1174
|
{
|
|
1175
|
-
src:
|
|
1175
|
+
src: k,
|
|
1176
1176
|
alt: "Brand Logo",
|
|
1177
1177
|
style: {
|
|
1178
1178
|
height: "auto",
|
|
@@ -1192,7 +1192,7 @@ const ke = ({
|
|
|
1192
1192
|
]
|
|
1193
1193
|
}
|
|
1194
1194
|
) : /* @__PURE__ */ t(
|
|
1195
|
-
|
|
1195
|
+
d,
|
|
1196
1196
|
{
|
|
1197
1197
|
sx: {
|
|
1198
1198
|
display: "flex",
|
|
@@ -1209,21 +1209,21 @@ const ke = ({
|
|
|
1209
1209
|
children: ze()
|
|
1210
1210
|
}
|
|
1211
1211
|
);
|
|
1212
|
-
},
|
|
1212
|
+
}, Ft = ({
|
|
1213
1213
|
infoPage: e,
|
|
1214
|
-
enableReset:
|
|
1214
|
+
enableReset: c = !1,
|
|
1215
1215
|
imagePosition: a = "left",
|
|
1216
|
-
defaultImagePlaceholderUrl:
|
|
1216
|
+
defaultImagePlaceholderUrl: n
|
|
1217
1217
|
}) => {
|
|
1218
|
-
var
|
|
1219
|
-
const { t:
|
|
1218
|
+
var l, m, O;
|
|
1219
|
+
const { t: g } = se(), o = J(), u = le(), i = Te() === "dark", r = pe(
|
|
1220
1220
|
{
|
|
1221
1221
|
images: e.images,
|
|
1222
|
-
imagePlaceholder:
|
|
1222
|
+
imagePlaceholder: n || ""
|
|
1223
1223
|
},
|
|
1224
1224
|
fe.STANDARD
|
|
1225
|
-
),
|
|
1226
|
-
return /* @__PURE__ */ t(ke, { brandingBorderColor:
|
|
1225
|
+
), s = (l = e.branding) == null ? void 0 : l.colors, k = (s == null ? void 0 : s.primary_color) || u.palette.primary.plainColor, z = (s == null ? void 0 : s.border_color) || null, x = (s == null ? void 0 : s.background_color) || u.surfaceVariant || "", b = (m = e.branding) == null ? void 0 : m.images, p = o ? (b == null ? void 0 : b.mobile_logo) || (b == null ? void 0 : b.main_logo) || "" : (b == null ? void 0 : b.main_logo) || "";
|
|
1226
|
+
return /* @__PURE__ */ t(ke, { brandingBorderColor: z, children: /* @__PURE__ */ t(
|
|
1227
1227
|
Ae,
|
|
1228
1228
|
{
|
|
1229
1229
|
entity: {
|
|
@@ -1232,26 +1232,26 @@ const ke = ({
|
|
|
1232
1232
|
description: e.subtitle || "",
|
|
1233
1233
|
rules: null
|
|
1234
1234
|
},
|
|
1235
|
-
headline:
|
|
1236
|
-
count: ((
|
|
1235
|
+
headline: g("chanceGame.headlinePickOneOfX", {
|
|
1236
|
+
count: ((O = JSON.parse(e.body).segments) == null ? void 0 : O.length) || 0
|
|
1237
1237
|
}),
|
|
1238
|
-
finalImage:
|
|
1238
|
+
finalImage: r,
|
|
1239
1239
|
imagePosition: a,
|
|
1240
1240
|
children: /* @__PURE__ */ t(
|
|
1241
|
-
|
|
1241
|
+
Ve,
|
|
1242
1242
|
{
|
|
1243
1243
|
infoPage: e,
|
|
1244
|
-
enableReset:
|
|
1245
|
-
contentColor: (
|
|
1246
|
-
primaryColor:
|
|
1247
|
-
onPrimaryColor: (
|
|
1248
|
-
borderColor:
|
|
1249
|
-
backgroundColor:
|
|
1250
|
-
dangerColor:
|
|
1251
|
-
cardBaseColor:
|
|
1252
|
-
shimmerColor:
|
|
1253
|
-
brandingLogo:
|
|
1254
|
-
isDark:
|
|
1244
|
+
enableReset: c,
|
|
1245
|
+
contentColor: (s == null ? void 0 : s.content_color) || u.textPrimary,
|
|
1246
|
+
primaryColor: k,
|
|
1247
|
+
onPrimaryColor: (s == null ? void 0 : s.content_color) || u.palette.primary.onPrimary || u.surface,
|
|
1248
|
+
borderColor: z || void 0,
|
|
1249
|
+
backgroundColor: x,
|
|
1250
|
+
dangerColor: u.palette.danger.plainColor,
|
|
1251
|
+
cardBaseColor: x,
|
|
1252
|
+
shimmerColor: k,
|
|
1253
|
+
brandingLogo: p,
|
|
1254
|
+
isDark: i,
|
|
1255
1255
|
showTitleBlock: !1,
|
|
1256
1256
|
variant: "standard",
|
|
1257
1257
|
compactCards: !0
|
|
@@ -1302,29 +1302,29 @@ const ke = ({
|
|
|
1302
1302
|
margin: "0 auto",
|
|
1303
1303
|
opacity: 0.9
|
|
1304
1304
|
}
|
|
1305
|
-
}),
|
|
1305
|
+
}), Wt = ({
|
|
1306
1306
|
infoPage: e,
|
|
1307
|
-
enableReset:
|
|
1307
|
+
enableReset: c = !1,
|
|
1308
1308
|
defaultImagePlaceholderUrl: a
|
|
1309
1309
|
}) => {
|
|
1310
|
-
var f, L, H,
|
|
1311
|
-
const { t:
|
|
1310
|
+
var f, L, H, _, D, T, M, y, X, F, R, $, W, P, U, j, A, I, S;
|
|
1311
|
+
const { t: n } = se(), g = J(), o = $e(), u = xe(), i = ((f = e.branding) == null ? void 0 : f.colors) || null, r = (L = e.branding) == null ? void 0 : L.images, s = g ? (r == null ? void 0 : r.mobile_background_image) || (r == null ? void 0 : r.background_image) || "" : (r == null ? void 0 : r.background_image) || "", k = g ? (r == null ? void 0 : r.mobile_logo) || (r == null ? void 0 : r.main_logo) || "" : (r == null ? void 0 : r.main_logo) || "", z = a || (g ? He : Me), x = s || pe(
|
|
1312
1312
|
{
|
|
1313
1313
|
images: e.images,
|
|
1314
|
-
imagePlaceholder:
|
|
1314
|
+
imagePlaceholder: z
|
|
1315
1315
|
},
|
|
1316
1316
|
fe.OVERLAY
|
|
1317
|
-
),
|
|
1318
|
-
spacingScale:
|
|
1317
|
+
), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((T = (D = (_ = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : _.palette) == null ? void 0 : D.primary) == null ? void 0 : T.plainColor), m = (F = (X = (y = (M = o.colorSchemes) == null ? void 0 : M.light) == null ? void 0 : y.palette) == null ? void 0 : X.primary) == null ? void 0 : F.onPrimary, O = (i == null ? void 0 : i.background_color) || (($ = (R = o.colorSchemes) == null ? void 0 : R.dark) == null ? void 0 : $.surfaceVariant), v = (j = (U = (P = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : P.palette) == null ? void 0 : U.danger) == null ? void 0 : j.plainColor, h = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, E = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, V = Le({
|
|
1318
|
+
spacingScale: u,
|
|
1319
1319
|
mdBorderRadius: C,
|
|
1320
|
-
contentBgColor:
|
|
1320
|
+
contentBgColor: O,
|
|
1321
1321
|
buttonRadius: E,
|
|
1322
|
-
primaryColor:
|
|
1323
|
-
onPrimaryColor:
|
|
1322
|
+
primaryColor: l,
|
|
1323
|
+
onPrimaryColor: m,
|
|
1324
1324
|
fontFamilyPrimary: h,
|
|
1325
|
-
darkTextColor:
|
|
1326
|
-
isMobile:
|
|
1327
|
-
textColor:
|
|
1325
|
+
darkTextColor: b,
|
|
1326
|
+
isMobile: g,
|
|
1327
|
+
textColor: p
|
|
1328
1328
|
});
|
|
1329
1329
|
return /* @__PURE__ */ t(
|
|
1330
1330
|
Ie,
|
|
@@ -1335,23 +1335,23 @@ const ke = ({
|
|
|
1335
1335
|
description: e.subtitle || "",
|
|
1336
1336
|
rules: null
|
|
1337
1337
|
},
|
|
1338
|
-
headline:
|
|
1339
|
-
count: ((
|
|
1338
|
+
headline: n("chanceGame.headlinePickOneOfX", {
|
|
1339
|
+
count: ((S = JSON.parse(e.body).segments) == null ? void 0 : S.length) || 0
|
|
1340
1340
|
}),
|
|
1341
|
-
finalImage:
|
|
1342
|
-
children: /* @__PURE__ */ t(
|
|
1343
|
-
|
|
1341
|
+
finalImage: x,
|
|
1342
|
+
children: /* @__PURE__ */ t(d, { sx: V.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
|
|
1343
|
+
Ve,
|
|
1344
1344
|
{
|
|
1345
1345
|
infoPage: e,
|
|
1346
|
-
enableReset:
|
|
1347
|
-
contentColor:
|
|
1348
|
-
primaryColor:
|
|
1349
|
-
onPrimaryColor:
|
|
1350
|
-
backgroundColor:
|
|
1351
|
-
dangerColor:
|
|
1352
|
-
cardBaseColor:
|
|
1353
|
-
shimmerColor:
|
|
1354
|
-
brandingLogo:
|
|
1346
|
+
enableReset: c,
|
|
1347
|
+
contentColor: p,
|
|
1348
|
+
primaryColor: l,
|
|
1349
|
+
onPrimaryColor: m || "#FFFFFF",
|
|
1350
|
+
backgroundColor: O,
|
|
1351
|
+
dangerColor: v,
|
|
1352
|
+
cardBaseColor: O,
|
|
1353
|
+
shimmerColor: l,
|
|
1354
|
+
brandingLogo: k,
|
|
1355
1355
|
isDark: !0,
|
|
1356
1356
|
showTitleBlock: !1,
|
|
1357
1357
|
variant: "overlay",
|
|
@@ -1360,13 +1360,13 @@ const ke = ({
|
|
|
1360
1360
|
) })
|
|
1361
1361
|
}
|
|
1362
1362
|
);
|
|
1363
|
-
},
|
|
1364
|
-
const
|
|
1363
|
+
}, _t = (e) => {
|
|
1364
|
+
const c = we().secondary, a = et(), n = e.isSplitVariant && a, g = J(), o = Ke(e.primaryUrl, e.secondaryUrl, "logo");
|
|
1365
1365
|
if (!e.brandingLogo)
|
|
1366
1366
|
return null;
|
|
1367
|
-
const
|
|
1367
|
+
const u = () => {
|
|
1368
1368
|
o && window.open(o, "_blank", "noopener,noreferrer");
|
|
1369
|
-
},
|
|
1369
|
+
}, i = /* @__PURE__ */ t(
|
|
1370
1370
|
"img",
|
|
1371
1371
|
{
|
|
1372
1372
|
src: e.brandingLogo,
|
|
@@ -1376,8 +1376,8 @@ const ke = ({
|
|
|
1376
1376
|
maxWidth: "100px"
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
),
|
|
1380
|
-
|
|
1379
|
+
), r = o ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
1380
|
+
d,
|
|
1381
1381
|
{
|
|
1382
1382
|
component: "a",
|
|
1383
1383
|
href: o,
|
|
@@ -1388,21 +1388,21 @@ const ke = ({
|
|
|
1388
1388
|
textDecoration: "none",
|
|
1389
1389
|
display: "inline-flex"
|
|
1390
1390
|
},
|
|
1391
|
-
children:
|
|
1391
|
+
children: i
|
|
1392
1392
|
}
|
|
1393
1393
|
) : /* @__PURE__ */ t(
|
|
1394
|
-
|
|
1394
|
+
d,
|
|
1395
1395
|
{
|
|
1396
|
-
onClick:
|
|
1396
|
+
onClick: u,
|
|
1397
1397
|
sx: {
|
|
1398
1398
|
cursor: "pointer",
|
|
1399
1399
|
display: "inline-flex"
|
|
1400
1400
|
},
|
|
1401
|
-
children:
|
|
1401
|
+
children: i
|
|
1402
1402
|
}
|
|
1403
|
-
) :
|
|
1404
|
-
return e.isCentered ||
|
|
1405
|
-
|
|
1403
|
+
) : i;
|
|
1404
|
+
return e.isCentered || n || g ? /* @__PURE__ */ w(
|
|
1405
|
+
d,
|
|
1406
1406
|
{
|
|
1407
1407
|
sx: {
|
|
1408
1408
|
display: "flex",
|
|
@@ -1415,7 +1415,7 @@ const ke = ({
|
|
|
1415
1415
|
},
|
|
1416
1416
|
children: [
|
|
1417
1417
|
e.label && /* @__PURE__ */ t(
|
|
1418
|
-
|
|
1418
|
+
B,
|
|
1419
1419
|
{
|
|
1420
1420
|
level: "body-sm",
|
|
1421
1421
|
sx: {
|
|
@@ -1425,16 +1425,16 @@ const ke = ({
|
|
|
1425
1425
|
fontSize: "1em",
|
|
1426
1426
|
color: e.textColor,
|
|
1427
1427
|
textAlign: "right",
|
|
1428
|
-
fontFamily:
|
|
1428
|
+
fontFamily: c
|
|
1429
1429
|
},
|
|
1430
1430
|
children: e.label
|
|
1431
1431
|
}
|
|
1432
1432
|
),
|
|
1433
|
-
|
|
1433
|
+
r
|
|
1434
1434
|
]
|
|
1435
1435
|
}
|
|
1436
1436
|
) : /* @__PURE__ */ w(
|
|
1437
|
-
|
|
1437
|
+
d,
|
|
1438
1438
|
{
|
|
1439
1439
|
sx: {
|
|
1440
1440
|
minWidth: "180px",
|
|
@@ -1446,7 +1446,7 @@ const ke = ({
|
|
|
1446
1446
|
},
|
|
1447
1447
|
children: [
|
|
1448
1448
|
e.label && /* @__PURE__ */ t(
|
|
1449
|
-
|
|
1449
|
+
B,
|
|
1450
1450
|
{
|
|
1451
1451
|
level: "body-sm",
|
|
1452
1452
|
sx: {
|
|
@@ -1456,38 +1456,38 @@ const ke = ({
|
|
|
1456
1456
|
textAlign: "right",
|
|
1457
1457
|
fontSize: "1em",
|
|
1458
1458
|
color: e.textColor,
|
|
1459
|
-
fontFamily:
|
|
1459
|
+
fontFamily: c
|
|
1460
1460
|
},
|
|
1461
1461
|
children: e.label
|
|
1462
1462
|
}
|
|
1463
1463
|
),
|
|
1464
|
-
|
|
1464
|
+
r
|
|
1465
1465
|
]
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
|
-
},
|
|
1468
|
+
}, Ot = ({
|
|
1469
1469
|
infoPage: e,
|
|
1470
|
-
enableReset:
|
|
1470
|
+
enableReset: c = !1,
|
|
1471
1471
|
defaultImagePlaceholderUrl: a
|
|
1472
1472
|
}) => {
|
|
1473
|
-
var L, H,
|
|
1474
|
-
const { t:
|
|
1473
|
+
var L, H, _, D, T, M, y, X, F, R, $, W, P, U, j, A, I, S, ee, te, Y, G, q, N, Q, oe, ce;
|
|
1474
|
+
const { t: n } = se(), g = J(), o = $e(), u = xe(), i = ((L = e.branding) == null ? void 0 : L.colors) || null, r = (H = e.branding) == null ? void 0 : H.images, s = g ? (r == null ? void 0 : r.mobile_background_image) || (r == null ? void 0 : r.background_image) || "" : (r == null ? void 0 : r.background_image) || "", k = g ? (r == null ? void 0 : r.mobile_logo) || (r == null ? void 0 : r.main_logo) || "" : (r == null ? void 0 : r.main_logo) || "", z = a || (g ? He : Me), x = s || pe(
|
|
1475
1475
|
{
|
|
1476
1476
|
images: e.images,
|
|
1477
|
-
imagePlaceholder:
|
|
1477
|
+
imagePlaceholder: z
|
|
1478
1478
|
},
|
|
1479
1479
|
fe.OVERLAY
|
|
1480
|
-
),
|
|
1481
|
-
spacingScale:
|
|
1480
|
+
), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((M = (T = (D = (_ = o.colorSchemes) == null ? void 0 : _.light) == null ? void 0 : D.palette) == null ? void 0 : T.primary) == null ? void 0 : M.plainColor), m = (i == null ? void 0 : i.secondary_color) || ((R = (F = (X = (y = o.colorSchemes) == null ? void 0 : y.light) == null ? void 0 : X.palette) == null ? void 0 : F.danger) == null ? void 0 : R.plainColor), O = (U = (P = (W = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : W.palette) == null ? void 0 : P.primary) == null ? void 0 : U.onPrimary, v = (i == null ? void 0 : i.background_color) || ((A = (j = o.colorSchemes) == null ? void 0 : j.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (S = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : S.palette) == null ? void 0 : ee.danger) == null ? void 0 : te.plainColor, C = o.customFontFamily.dark.primary, E = o.customRadius.dark.md, V = (G = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : G.xl, f = Le({
|
|
1481
|
+
spacingScale: u,
|
|
1482
1482
|
mdBorderRadius: E,
|
|
1483
|
-
contentBgColor:
|
|
1484
|
-
buttonRadius:
|
|
1485
|
-
primaryColor:
|
|
1486
|
-
onPrimaryColor:
|
|
1483
|
+
contentBgColor: v,
|
|
1484
|
+
buttonRadius: V,
|
|
1485
|
+
primaryColor: l,
|
|
1486
|
+
onPrimaryColor: O,
|
|
1487
1487
|
fontFamilyPrimary: C,
|
|
1488
|
-
darkTextColor:
|
|
1489
|
-
isMobile:
|
|
1490
|
-
textColor:
|
|
1488
|
+
darkTextColor: b,
|
|
1489
|
+
isMobile: g,
|
|
1490
|
+
textColor: p
|
|
1491
1491
|
});
|
|
1492
1492
|
return /* @__PURE__ */ w(
|
|
1493
1493
|
Ie,
|
|
@@ -1498,138 +1498,147 @@ const ke = ({
|
|
|
1498
1498
|
description: e.subtitle || "",
|
|
1499
1499
|
rules: null
|
|
1500
1500
|
},
|
|
1501
|
-
headline:
|
|
1502
|
-
finalImage:
|
|
1501
|
+
headline: n("chanceGame.headlinePrizeWheel"),
|
|
1502
|
+
finalImage: x,
|
|
1503
1503
|
children: [
|
|
1504
|
-
/* @__PURE__ */ t(
|
|
1505
|
-
|
|
1504
|
+
/* @__PURE__ */ t(d, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
|
|
1505
|
+
Ne,
|
|
1506
1506
|
{
|
|
1507
1507
|
infoPage: e,
|
|
1508
|
-
enableReset:
|
|
1509
|
-
contentColor:
|
|
1510
|
-
primaryColor:
|
|
1511
|
-
secondaryColor:
|
|
1512
|
-
onPrimaryColor:
|
|
1513
|
-
backgroundColor:
|
|
1508
|
+
enableReset: c,
|
|
1509
|
+
contentColor: p,
|
|
1510
|
+
primaryColor: l,
|
|
1511
|
+
secondaryColor: m,
|
|
1512
|
+
onPrimaryColor: O || "#FFFFFF",
|
|
1513
|
+
backgroundColor: v,
|
|
1514
1514
|
dangerColor: h,
|
|
1515
|
-
shimmerColor:
|
|
1516
|
-
brandingLogo:
|
|
1515
|
+
shimmerColor: l,
|
|
1516
|
+
brandingLogo: k,
|
|
1517
1517
|
isDark: !0,
|
|
1518
1518
|
showTitleBlock: !1,
|
|
1519
1519
|
variant: "overlay"
|
|
1520
1520
|
}
|
|
1521
1521
|
) }),
|
|
1522
1522
|
/* @__PURE__ */ t(
|
|
1523
|
-
|
|
1523
|
+
_t,
|
|
1524
1524
|
{
|
|
1525
|
-
brandingLogo:
|
|
1526
|
-
textColor:
|
|
1525
|
+
brandingLogo: k,
|
|
1526
|
+
textColor: b,
|
|
1527
1527
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1528
|
-
primaryUrl: (Q = (
|
|
1528
|
+
primaryUrl: (Q = (N = e.branding) == null ? void 0 : N.urls) == null ? void 0 : Q.primary_url,
|
|
1529
1529
|
secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
|
|
1530
1530
|
}
|
|
1531
1531
|
)
|
|
1532
1532
|
]
|
|
1533
1533
|
}
|
|
1534
1534
|
);
|
|
1535
|
-
},
|
|
1536
|
-
const { infoPage:
|
|
1537
|
-
if (
|
|
1538
|
-
const o = Object.keys(
|
|
1539
|
-
if (
|
|
1540
|
-
return
|
|
1541
|
-
if (
|
|
1535
|
+
}, Dt = (e) => {
|
|
1536
|
+
const { infoPage: c } = ut(e.entityId, "chance-game", e.sdk), a = () => {
|
|
1537
|
+
if (c && c.id !== "not-found") {
|
|
1538
|
+
const o = Object.keys(Je);
|
|
1539
|
+
if (c.language && o.includes(c.language))
|
|
1540
|
+
return c.language;
|
|
1541
|
+
if (c.language)
|
|
1542
1542
|
return "en";
|
|
1543
1543
|
}
|
|
1544
1544
|
return e.language || "en";
|
|
1545
|
-
}, [
|
|
1545
|
+
}, [n, g] = qe(!1);
|
|
1546
1546
|
if (Qe(() => {
|
|
1547
1547
|
const o = a();
|
|
1548
|
-
tt(o).then(() =>
|
|
1549
|
-
}, [e.language,
|
|
1550
|
-
return /* @__PURE__ */ t(
|
|
1551
|
-
if (
|
|
1552
|
-
return /* @__PURE__ */ t(
|
|
1548
|
+
tt(o).then(() => g(!0));
|
|
1549
|
+
}, [e.language, c]), !c || !n)
|
|
1550
|
+
return /* @__PURE__ */ t(dt, { my: 20 });
|
|
1551
|
+
if (c.id === "not-found")
|
|
1552
|
+
return /* @__PURE__ */ t(Rt, { template: e.template });
|
|
1553
1553
|
if (e.template === ue.STANDARD) {
|
|
1554
|
-
const o = e.imagePosition,
|
|
1555
|
-
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(
|
|
1556
|
-
|
|
1554
|
+
const o = e.imagePosition, u = e.defaultImagePlaceholderUrl;
|
|
1555
|
+
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(
|
|
1556
|
+
Ft,
|
|
1557
1557
|
{
|
|
1558
|
-
infoPage:
|
|
1558
|
+
infoPage: c,
|
|
1559
1559
|
imagePosition: o,
|
|
1560
|
-
defaultImagePlaceholderUrl:
|
|
1560
|
+
defaultImagePlaceholderUrl: u
|
|
1561
1561
|
}
|
|
1562
1562
|
) : /* @__PURE__ */ t(
|
|
1563
|
-
|
|
1563
|
+
zt,
|
|
1564
1564
|
{
|
|
1565
|
-
infoPage:
|
|
1565
|
+
infoPage: c,
|
|
1566
1566
|
imagePosition: o,
|
|
1567
|
-
defaultImagePlaceholderUrl:
|
|
1567
|
+
defaultImagePlaceholderUrl: u
|
|
1568
1568
|
}
|
|
1569
1569
|
);
|
|
1570
1570
|
}
|
|
1571
1571
|
if (e.template === ue.OVERLAY) {
|
|
1572
1572
|
const o = e.defaultImagePlaceholderUrl;
|
|
1573
|
-
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(
|
|
1574
|
-
|
|
1573
|
+
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(
|
|
1574
|
+
Wt,
|
|
1575
1575
|
{
|
|
1576
|
-
infoPage:
|
|
1576
|
+
infoPage: c,
|
|
1577
1577
|
defaultImagePlaceholderUrl: o
|
|
1578
1578
|
}
|
|
1579
1579
|
) : /* @__PURE__ */ t(
|
|
1580
|
-
|
|
1580
|
+
Ot,
|
|
1581
1581
|
{
|
|
1582
|
-
infoPage:
|
|
1582
|
+
infoPage: c,
|
|
1583
1583
|
defaultImagePlaceholderUrl: o
|
|
1584
1584
|
}
|
|
1585
1585
|
);
|
|
1586
1586
|
}
|
|
1587
|
-
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(
|
|
1588
|
-
},
|
|
1589
|
-
const [
|
|
1587
|
+
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(wt, { infoPage: c }) : /* @__PURE__ */ t(kt, { infoPage: c });
|
|
1588
|
+
}, Bt = (e) => {
|
|
1589
|
+
const [c, a] = Z.useState(!1), n = ot(e.language), g = Z.useRef(
|
|
1590
1590
|
`chance-game-shadow-root-${Math.random().toString(36).substring(2, 11)}`
|
|
1591
|
-
),
|
|
1591
|
+
), o = Z.useRef(null), u = Z.useRef(null), i = Z.useRef(null), [r, s] = Z.useState(null);
|
|
1592
1592
|
Z.useEffect(() => {
|
|
1593
|
-
if (
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
},
|
|
1608
|
-
|
|
1609
|
-
|
|
1593
|
+
if (!o.current) return;
|
|
1594
|
+
o.current.shadowRoot ? (u.current = o.current.shadowRoot, i.current = u.current.getElementById(
|
|
1595
|
+
g.current
|
|
1596
|
+
), i.current || (i.current = document.createElement("div"), i.current.id = g.current, u.current.appendChild(i.current))) : (u.current = o.current.attachShadow({ mode: "open" }), i.current = document.createElement("div"), i.current.id = g.current, u.current.appendChild(i.current)), nt(i.current, n);
|
|
1597
|
+
const p = ct("chance-game", n);
|
|
1598
|
+
return s(
|
|
1599
|
+
(l) => (l == null ? void 0 : l.key) === p ? l : rt(
|
|
1600
|
+
"chance-game",
|
|
1601
|
+
u.current,
|
|
1602
|
+
n
|
|
1603
|
+
)
|
|
1604
|
+
), a(!0), () => {
|
|
1605
|
+
a(!1);
|
|
1606
|
+
};
|
|
1607
|
+
}, [n]);
|
|
1608
|
+
const k = e.themeOptions, z = {
|
|
1609
|
+
...k,
|
|
1610
|
+
mode: e.template === ue.OVERLAY ? "dark" : k == null ? void 0 : k.mode
|
|
1611
|
+
}, x = /* @__PURE__ */ t(d, { ref: o }), b = c && o.current && i.current && r ? mt(
|
|
1612
|
+
// Keyed on the cache, not on `direction`: it must change in the same
|
|
1613
|
+
// render that adopts the new cache, or CssVarsProvider writes its CSS
|
|
1614
|
+
// variables into the outgoing cache and never repeats.
|
|
1615
|
+
/* @__PURE__ */ t(it, { value: r, children: /* @__PURE__ */ t(lt, { containerRef: o, children: /* @__PURE__ */ t(
|
|
1616
|
+
at,
|
|
1610
1617
|
{
|
|
1611
|
-
customTheme:
|
|
1612
|
-
mode:
|
|
1613
|
-
shadowRootElement:
|
|
1618
|
+
customTheme: z,
|
|
1619
|
+
mode: z == null ? void 0 : z.mode,
|
|
1620
|
+
shadowRootElement: i.current,
|
|
1621
|
+
direction: n,
|
|
1614
1622
|
children: /* @__PURE__ */ t(
|
|
1615
|
-
|
|
1623
|
+
st,
|
|
1616
1624
|
{
|
|
1617
|
-
shadowRootElement:
|
|
1625
|
+
shadowRootElement: i.current,
|
|
1618
1626
|
leadPhoneCountryCode: null,
|
|
1619
1627
|
language: null,
|
|
1620
1628
|
optionsLayout: null,
|
|
1629
|
+
direction: n,
|
|
1621
1630
|
children: e.children
|
|
1622
1631
|
}
|
|
1623
1632
|
)
|
|
1624
1633
|
}
|
|
1625
|
-
) }) }),
|
|
1626
|
-
|
|
1634
|
+
) }) }, r.key),
|
|
1635
|
+
i.current
|
|
1627
1636
|
) : null;
|
|
1628
1637
|
return /* @__PURE__ */ w(re, { children: [
|
|
1629
|
-
|
|
1630
|
-
|
|
1638
|
+
x,
|
|
1639
|
+
b
|
|
1631
1640
|
] });
|
|
1632
|
-
},
|
|
1641
|
+
}, Ct = (e) => /* @__PURE__ */ t(Bt, { ...e, children: /* @__PURE__ */ t(Dt, { ...e }) }), Pt = Ct;
|
|
1633
1642
|
export {
|
|
1634
|
-
|
|
1643
|
+
Pt as ChanceGame
|
|
1635
1644
|
};
|