fansunited-frontend-components 0.0.95 → 0.0.96
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.d.ts +1 -2
- package/Betslip.d.ts.map +1 -1
- package/Betslip.js +4 -3
- package/ChanceGame.js +165 -163
- package/ChanceGameComponent.d.ts +1 -1
- package/ChanceGameComponent.d.ts.map +1 -1
- package/ClassicQuizPlay.d.ts +1 -1
- package/ClassicQuizPlay.d.ts.map +1 -1
- package/ClassicQuizPlay.js +4 -3
- package/CollectLead.d.ts +1 -1
- package/CollectLead.d.ts.map +1 -1
- package/CollectLead.js +37 -36
- package/CompetitionStatistics.d.ts +1 -2
- package/CompetitionStatistics.d.ts.map +1 -1
- package/CompetitionStatistics.js +458 -451
- package/CompetitorCard.d.ts +1 -2
- package/CompetitorCard.d.ts.map +1 -1
- package/CompetitorCard.js +1235 -1226
- package/Discussion.d.ts +1 -1
- package/Discussion.d.ts.map +1 -1
- package/Discussion.js +4 -3
- package/EitherOrPlay.d.ts +1 -1
- package/EitherOrPlay.d.ts.map +1 -1
- package/EitherOrPlay.js +4 -3
- package/EventCard.d.ts +1 -2
- package/EventCard.d.ts.map +1 -1
- package/EventCard.js +1249 -1244
- package/EventGamePlay.d.ts +1 -1
- package/EventGamePlay.d.ts.map +1 -1
- package/EventGamePlay.js +4 -3
- package/Leaderboard.d.ts +1 -1
- package/Leaderboard.d.ts.map +1 -1
- package/Leaderboard.js +482 -449
- package/List.d.ts +1 -2
- package/List.d.ts.map +1 -1
- package/List.js +258 -254
- package/MatchQuizPlay.d.ts +1 -1
- package/MatchQuizPlay.d.ts.map +1 -1
- package/MatchQuizPlay.js +4 -3
- package/Odds.d.ts +1 -2
- package/Odds.d.ts.map +1 -1
- package/Odds.js +35 -34
- package/PersonalityQuizPlay.d.ts +1 -1
- package/PersonalityQuizPlay.d.ts.map +1 -1
- package/PersonalityQuizPlay.js +4 -3
- package/PickThePair.js +102 -100
- package/PickThePairComponent.d.ts +1 -1
- package/PickThePairComponent.d.ts.map +1 -1
- package/PlayerOfTheMatch.d.ts +1 -2
- package/PlayerOfTheMatch.d.ts.map +1 -1
- package/PlayerOfTheMatch.js +1096 -1085
- package/PollVote.d.ts +1 -1
- package/PollVote.d.ts.map +1 -1
- package/PollVote.js +4 -3
- package/Predictor.d.ts +1 -2
- package/Predictor.d.ts.map +1 -1
- package/Predictor.js +4553 -4525
- package/README.md +1 -1
- package/Standings.d.ts +1 -2
- package/Standings.d.ts.map +1 -1
- package/Standings.js +404 -394
- package/TopX.d.ts +1 -2
- package/TopX.d.ts.map +1 -1
- package/TopX.js +5296 -5286
- package/chunks/{ChanceGameEmbedVariant-C3NGwvTF.js → ChanceGameEmbedVariant-CVys-3Zh.js} +1 -1
- package/chunks/{OddsSkeleton-Bav8FHHN.js → OddsSkeleton-ClJE2xhR.js} +5 -5
- package/chunks/{OddsStrip-CviVfQI4.js → OddsStrip-BnSp5TXa.js} +3 -3
- package/chunks/{PickOneOfX-a6Dv0-rR.js → PickOneOfX-DaJtkbCw.js} +6 -6
- package/chunks/index-Aq5MbUB9.js +4 -0
- package/chunks/index-BBQm_8LD.js +4 -0
- package/chunks/index-BC_sWWgc.js +4 -0
- package/chunks/index-DXKDJ1Vp.js +4 -0
- package/chunks/index-DjT5NrbA.js +4 -0
- package/chunks/index-DvLRehH6.js +4 -0
- package/chunks/index-aIMaxR-p.js +4 -0
- package/chunks/{main-Dj4Manb5.js → main-52Wff7qC.js} +1763 -1757
- package/chunks/{main-dwV_55lz.js → main-65WcUqAl.js} +615 -615
- package/chunks/{main-gexg6lc-.js → main-B58mi9jx.js} +349 -334
- package/chunks/{main-Dys2_Jt2.js → main-BIdXUTZS.js} +842 -827
- package/chunks/{main-CFwRpvUi.js → main-DD-NEzC7.js} +818 -817
- package/chunks/{main-DjiQz1dv.js → main-DUnfJPzY.js} +311 -311
- package/chunks/{main-eAQMCxQ7.js → main-DpCBqqg_.js} +322 -321
- package/chunks/{main-D9tFZv2q.js → main-Drznt1ak.js} +283 -282
- package/chunks/withVersionStamp-B6nArAj4.js +16 -0
- package/index.d.ts.map +1 -1
- package/index.js +45 -50
- package/package.json +57 -49
- package/withVersionStamp.d.ts +4 -0
- package/withVersionStamp.d.ts.map +1 -0
- package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +0 -4
- package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +0 -4
- package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +0 -4
- package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +0 -4
- package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +0 -4
- package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +0 -4
- package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +0 -4
- package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +0 -4
- package/chunks/index-B1d9q8fX.js +0 -4
- package/chunks/index-BP0pvFJ4.js +0 -4
- package/chunks/index-CHZyL_g_.js +0 -4
- package/chunks/index-CeCUdRmF.js +0 -4
- package/chunks/index-Ckyyw-I8.js +0 -4
- package/chunks/index-DGvCP5G8.js +0 -4
- package/chunks/index-yjMVOgwO.js +0 -4
package/ChanceGame.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { isMobile as J, isLarge as Ke, useCornerRadius as ve, useColors as
|
|
2
|
+
import { isMobile as J, isLarge as Ke, useCornerRadius as ve, useColors as le, useBorderSize as Se, NotFoundSkeleton as Je, ChanceGameTemplate as he, useFontFamily as we, useSpacingScale as xe, hexToRgb as Ce, useCurrentThemeMode as Te, useImageVariant as fe, WidgetTemplate as pe, StandardSkeleton as $e, useInternalTheme as Ae, OverlaySkeleton as Ie, defaultBgVertical as Ge, defaultBg as Ee, isTablet as qe, getBrandingClickUrl as Qe, useInfoPage as Ze, initializeI18n as et, Spinner as tt, ChanceGameVariant as ne, languageToCountryCode as ot, getLanguageDirection as nt, applyDirectionToMount as rt, widgetCacheKey as it, createWidgetCache as lt, ContainerProvider as at, ThemeProvider as st, ConstantsProvider as ct } from "fansunited-frontend-core";
|
|
3
3
|
import Z, { useState as dt, useEffect as mt } from "react";
|
|
4
4
|
import { useTranslation as se } from "react-i18next";
|
|
5
|
-
import { Box as d, Typography as B, Button as
|
|
6
|
-
import { u as
|
|
5
|
+
import { Box as d, Typography as B, Button as ue } from "@mui/joy";
|
|
6
|
+
import { u as ht, S as ie, c as Ve, D as He, C as ut, W as xt, d as ft, e as pt, f as gt, O as yt, F as bt, b as be, a as vt, P as St } from "./chunks/PickOneOfX-DaJtkbCw.js";
|
|
7
7
|
import { CacheProvider as wt } from "@emotion/react";
|
|
8
8
|
import { createPortal as kt } from "react-dom";
|
|
9
|
+
import { w as Rt } from "./chunks/withVersionStamp-B6nArAj4.js";
|
|
9
10
|
const ke = ({
|
|
10
11
|
children: e,
|
|
11
12
|
brandingBorderColor: c,
|
|
12
13
|
state: a
|
|
13
14
|
}) => {
|
|
14
|
-
const n = J(), g = Ke(), o = a === "play" ? g : n,
|
|
15
|
+
const n = J(), g = Ke(), o = a === "play" ? g : n, h = ve().md, i = c || le().secondaryContainer, s = Se().size + " solid " + i;
|
|
15
16
|
return /* @__PURE__ */ t(
|
|
16
17
|
d,
|
|
17
18
|
{
|
|
@@ -19,17 +20,17 @@ const ke = ({
|
|
|
19
20
|
display: "flex",
|
|
20
21
|
flexDirection: o ? "column" : "row",
|
|
21
22
|
width: "100%",
|
|
22
|
-
borderRadius:
|
|
23
|
+
borderRadius: h,
|
|
23
24
|
boxShadow: "md",
|
|
24
25
|
border: s,
|
|
25
26
|
overflow: "hidden",
|
|
26
|
-
background:
|
|
27
|
+
background: le().surface,
|
|
27
28
|
minHeight: "250px"
|
|
28
29
|
},
|
|
29
30
|
children: e
|
|
30
31
|
}
|
|
31
32
|
);
|
|
32
|
-
},
|
|
33
|
+
}, zt = ({
|
|
33
34
|
template: e
|
|
34
35
|
}) => {
|
|
35
36
|
const { t: c } = se(), a = /* @__PURE__ */ t(
|
|
@@ -39,25 +40,25 @@ const ke = ({
|
|
|
39
40
|
notFoundMessage: c("chanceGame.chanceGameNotFoundDescription")
|
|
40
41
|
}
|
|
41
42
|
);
|
|
42
|
-
return e ===
|
|
43
|
-
},
|
|
43
|
+
return e === he.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
|
|
44
|
+
}, Me = ({
|
|
44
45
|
infoPage: e,
|
|
45
46
|
enableReset: c = !1,
|
|
46
47
|
contentColor: a,
|
|
47
48
|
primaryColor: n,
|
|
48
49
|
secondaryColor: g,
|
|
49
50
|
onPrimaryColor: o,
|
|
50
|
-
backgroundColor:
|
|
51
|
-
dangerColor:
|
|
51
|
+
backgroundColor: h,
|
|
52
|
+
dangerColor: i,
|
|
52
53
|
brandingLogo: r,
|
|
53
54
|
isDark: s = !1,
|
|
54
55
|
showTitleBlock: k = !1,
|
|
55
56
|
variant: z
|
|
56
57
|
}) => {
|
|
57
|
-
var E, q,
|
|
58
|
-
const x = J(), b =
|
|
58
|
+
var E, q, M;
|
|
59
|
+
const x = J(), b = le(), p = ve(), l = we(), m = xe(), O = Se(), v = z === "standard", u = z === "overlay", C = v || u, G = JSON.parse(e.body), L = G.segments || [], f = e.labels || {}, N = G.mode || ((E = G.config) == null ? void 0 : E.mode) || "fair", V = ((q = G.config) == null ? void 0 : q.pace) || "normal", _ = ((M = G.config) == null ? void 0 : M.decorations) ?? !1, D = Ve(n, s), {
|
|
59
60
|
isSpinning: T,
|
|
60
|
-
finalRotation:
|
|
61
|
+
finalRotation: H,
|
|
61
62
|
selectedSegment: y,
|
|
62
63
|
showShakeAnimation: X,
|
|
63
64
|
showResultScreen: F,
|
|
@@ -71,9 +72,9 @@ const ke = ({
|
|
|
71
72
|
handleSpin: I,
|
|
72
73
|
handleReset: S,
|
|
73
74
|
onConfettiComplete: ee
|
|
74
|
-
} =
|
|
75
|
+
} = ht({ segments: L, mode: N, pace: V }), te = C ? x ? "260px" : "340px" : x ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
|
|
75
76
|
_ && /* @__PURE__ */ t(
|
|
76
|
-
|
|
77
|
+
He,
|
|
77
78
|
{
|
|
78
79
|
primaryColor: n,
|
|
79
80
|
isDark: s,
|
|
@@ -81,7 +82,7 @@ const ke = ({
|
|
|
81
82
|
}
|
|
82
83
|
),
|
|
83
84
|
/* @__PURE__ */ t(
|
|
84
|
-
|
|
85
|
+
ut,
|
|
85
86
|
{
|
|
86
87
|
active: W,
|
|
87
88
|
primaryColor: n,
|
|
@@ -91,7 +92,7 @@ const ke = ({
|
|
|
91
92
|
}
|
|
92
93
|
),
|
|
93
94
|
F && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
|
|
94
|
-
|
|
95
|
+
ie,
|
|
95
96
|
{
|
|
96
97
|
result: y.results,
|
|
97
98
|
variant: z || "embed",
|
|
@@ -124,7 +125,7 @@ const ke = ({
|
|
|
124
125
|
{
|
|
125
126
|
level: "h2",
|
|
126
127
|
sx: {
|
|
127
|
-
fontFamily:
|
|
128
|
+
fontFamily: l.primary,
|
|
128
129
|
fontWeight: 700,
|
|
129
130
|
fontSize: x ? "1.5rem" : "2rem",
|
|
130
131
|
color: a,
|
|
@@ -186,7 +187,7 @@ const ke = ({
|
|
|
186
187
|
{
|
|
187
188
|
level: "body-md",
|
|
188
189
|
sx: {
|
|
189
|
-
fontFamily:
|
|
190
|
+
fontFamily: l.secondary,
|
|
190
191
|
fontWeight: 400,
|
|
191
192
|
fontSize: x ? "0.875rem" : "1rem",
|
|
192
193
|
color: a,
|
|
@@ -204,23 +205,23 @@ const ke = ({
|
|
|
204
205
|
{
|
|
205
206
|
level: "body-md",
|
|
206
207
|
sx: {
|
|
207
|
-
fontFamily:
|
|
208
|
+
fontFamily: l.primary,
|
|
208
209
|
fontWeight: 400,
|
|
209
210
|
fontSize: x ? "0.875rem" : "1rem",
|
|
210
211
|
color: a,
|
|
211
212
|
textAlign: "center",
|
|
212
|
-
mb:
|
|
213
|
+
mb: u ? 0 : m.md,
|
|
213
214
|
zIndex: 1
|
|
214
215
|
},
|
|
215
216
|
children: f.welcome
|
|
216
217
|
}
|
|
217
218
|
),
|
|
218
|
-
(v ||
|
|
219
|
+
(v || u) && !R && f.instructions && /* @__PURE__ */ t(
|
|
219
220
|
B,
|
|
220
221
|
{
|
|
221
222
|
level: v ? "body-sm" : "body-md",
|
|
222
223
|
sx: {
|
|
223
|
-
fontFamily:
|
|
224
|
+
fontFamily: l.secondary,
|
|
224
225
|
fontWeight: 400,
|
|
225
226
|
fontSize: x ? "0.875rem" : "1rem",
|
|
226
227
|
color: a,
|
|
@@ -283,12 +284,12 @@ const ke = ({
|
|
|
283
284
|
onPrimaryColor: o,
|
|
284
285
|
decorations: _,
|
|
285
286
|
isStandard: v,
|
|
286
|
-
rotation:
|
|
287
|
+
rotation: H,
|
|
287
288
|
isSpinning: T,
|
|
288
289
|
spinDuration: P
|
|
289
290
|
}
|
|
290
291
|
),
|
|
291
|
-
!v && !
|
|
292
|
+
!v && !u && r && /* @__PURE__ */ t(
|
|
292
293
|
d,
|
|
293
294
|
{
|
|
294
295
|
component: "img",
|
|
@@ -313,19 +314,19 @@ const ke = ({
|
|
|
313
314
|
pt,
|
|
314
315
|
{
|
|
315
316
|
primaryColor: n,
|
|
316
|
-
dangerColor:
|
|
317
|
+
dangerColor: i,
|
|
317
318
|
decorations: _
|
|
318
319
|
}
|
|
319
320
|
)
|
|
320
321
|
]
|
|
321
322
|
}
|
|
322
323
|
),
|
|
323
|
-
!v && !
|
|
324
|
+
!v && !u && !R && f.instructions && /* @__PURE__ */ t(
|
|
324
325
|
B,
|
|
325
326
|
{
|
|
326
327
|
level: "body-sm",
|
|
327
328
|
sx: {
|
|
328
|
-
fontFamily:
|
|
329
|
+
fontFamily: l.secondary,
|
|
329
330
|
fontWeight: 400,
|
|
330
331
|
fontSize: x ? "0.875rem" : "1rem",
|
|
331
332
|
color: a,
|
|
@@ -338,7 +339,7 @@ const ke = ({
|
|
|
338
339
|
}
|
|
339
340
|
),
|
|
340
341
|
!v && R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
|
|
341
|
-
|
|
342
|
+
ie,
|
|
342
343
|
{
|
|
343
344
|
result: y.results,
|
|
344
345
|
variant: "embed",
|
|
@@ -353,7 +354,7 @@ const ke = ({
|
|
|
353
354
|
}
|
|
354
355
|
),
|
|
355
356
|
f.buttonLabel && !(R && y && !y.isWinning) && /* @__PURE__ */ t(
|
|
356
|
-
|
|
357
|
+
ue,
|
|
357
358
|
{
|
|
358
359
|
variant: "soft",
|
|
359
360
|
disabled: T || W || !F && !R && y !== null,
|
|
@@ -369,7 +370,7 @@ const ke = ({
|
|
|
369
370
|
color: o,
|
|
370
371
|
fontSize: C ? x ? "0.75rem" : "0.875rem" : x ? "1rem" : "1.125rem",
|
|
371
372
|
fontWeight: 700,
|
|
372
|
-
fontFamily:
|
|
373
|
+
fontFamily: l.primary,
|
|
373
374
|
textTransform: "uppercase",
|
|
374
375
|
letterSpacing: "0.5px",
|
|
375
376
|
minWidth: C ? void 0 : x ? "200px" : "250px",
|
|
@@ -422,7 +423,7 @@ const ke = ({
|
|
|
422
423
|
}
|
|
423
424
|
),
|
|
424
425
|
v && R && y && !y.isWinning && /* @__PURE__ */ t(
|
|
425
|
-
|
|
426
|
+
ue,
|
|
426
427
|
{
|
|
427
428
|
variant: "outlined",
|
|
428
429
|
onClick: S,
|
|
@@ -434,7 +435,7 @@ const ke = ({
|
|
|
434
435
|
color: a,
|
|
435
436
|
fontSize: x ? "0.75rem" : "0.875rem",
|
|
436
437
|
fontWeight: 700,
|
|
437
|
-
fontFamily:
|
|
438
|
+
fontFamily: l.primary,
|
|
438
439
|
textTransform: "uppercase",
|
|
439
440
|
zIndex: 1,
|
|
440
441
|
"&:hover": {
|
|
@@ -449,7 +450,7 @@ const ke = ({
|
|
|
449
450
|
] })
|
|
450
451
|
] });
|
|
451
452
|
if (v) {
|
|
452
|
-
const Q = Ce(
|
|
453
|
+
const Q = Ce(h), oe = Q ? Q.replace(/[^\d,]/g, "") : "";
|
|
453
454
|
return /* @__PURE__ */ w(
|
|
454
455
|
d,
|
|
455
456
|
{
|
|
@@ -470,7 +471,7 @@ const ke = ({
|
|
|
470
471
|
{
|
|
471
472
|
level: "body-md",
|
|
472
473
|
sx: {
|
|
473
|
-
fontFamily:
|
|
474
|
+
fontFamily: l.primary,
|
|
474
475
|
fontWeight: 400,
|
|
475
476
|
fontSize: x ? "0.875rem" : "1rem",
|
|
476
477
|
color: a,
|
|
@@ -523,7 +524,7 @@ const ke = ({
|
|
|
523
524
|
}
|
|
524
525
|
),
|
|
525
526
|
R && (y == null ? void 0 : y.results) && /* @__PURE__ */ t(
|
|
526
|
-
|
|
527
|
+
ie,
|
|
527
528
|
{
|
|
528
529
|
result: y.results,
|
|
529
530
|
variant: "standard",
|
|
@@ -550,7 +551,7 @@ const ke = ({
|
|
|
550
551
|
{
|
|
551
552
|
level: "body-sm",
|
|
552
553
|
sx: {
|
|
553
|
-
fontFamily:
|
|
554
|
+
fontFamily: l.secondary,
|
|
554
555
|
fontWeight: 400,
|
|
555
556
|
fontSize: x ? "0.625rem" : "0.75rem",
|
|
556
557
|
color: a,
|
|
@@ -616,7 +617,7 @@ const ke = ({
|
|
|
616
617
|
{
|
|
617
618
|
level: "body-sm",
|
|
618
619
|
sx: {
|
|
619
|
-
fontFamily:
|
|
620
|
+
fontFamily: l.secondary,
|
|
620
621
|
fontWeight: 400,
|
|
621
622
|
fontSize: x ? "0.625rem" : "0.75rem",
|
|
622
623
|
color: a,
|
|
@@ -633,20 +634,20 @@ const ke = ({
|
|
|
633
634
|
]
|
|
634
635
|
}
|
|
635
636
|
);
|
|
636
|
-
},
|
|
637
|
+
}, Ft = ({
|
|
637
638
|
infoPage: e,
|
|
638
639
|
enableReset: c = !1,
|
|
639
640
|
imagePosition: a = "left",
|
|
640
641
|
defaultImagePlaceholderUrl: n
|
|
641
642
|
}) => {
|
|
642
643
|
var m, O;
|
|
643
|
-
const { t: g } = se(), o = J(),
|
|
644
|
+
const { t: g } = se(), o = J(), h = le(), i = Te() === "dark", r = fe(
|
|
644
645
|
{
|
|
645
646
|
images: e.images,
|
|
646
647
|
imagePlaceholder: n || ""
|
|
647
648
|
},
|
|
648
649
|
pe.STANDARD
|
|
649
|
-
), s = (m = e.branding) == null ? void 0 : m.colors, k = (s == null ? void 0 : s.primary_color) ||
|
|
650
|
+
), s = (m = e.branding) == null ? void 0 : m.colors, k = (s == null ? void 0 : s.primary_color) || h.palette.primary.plainColor, z = (s == null ? void 0 : s.secondary_color) || h.palette.danger.plainColor, x = (s == null ? void 0 : s.border_color) || null, b = (s == null ? void 0 : s.background_color) || h.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) || "";
|
|
650
651
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: x, children: /* @__PURE__ */ t(
|
|
651
652
|
$e,
|
|
652
653
|
{
|
|
@@ -660,20 +661,20 @@ const ke = ({
|
|
|
660
661
|
finalImage: r,
|
|
661
662
|
imagePosition: a,
|
|
662
663
|
children: /* @__PURE__ */ t(
|
|
663
|
-
|
|
664
|
+
Me,
|
|
664
665
|
{
|
|
665
666
|
infoPage: e,
|
|
666
667
|
enableReset: c,
|
|
667
|
-
contentColor: (s == null ? void 0 : s.content_color) ||
|
|
668
|
+
contentColor: (s == null ? void 0 : s.content_color) || h.textColor,
|
|
668
669
|
primaryColor: k,
|
|
669
670
|
secondaryColor: z,
|
|
670
|
-
onPrimaryColor:
|
|
671
|
+
onPrimaryColor: h.palette.primary.onPrimary,
|
|
671
672
|
borderColor: x || void 0,
|
|
672
673
|
backgroundColor: b,
|
|
673
|
-
dangerColor:
|
|
674
|
+
dangerColor: h.palette.danger.plainColor,
|
|
674
675
|
shimmerColor: k,
|
|
675
|
-
brandingLogo:
|
|
676
|
-
isDark:
|
|
676
|
+
brandingLogo: l,
|
|
677
|
+
isDark: i,
|
|
677
678
|
showTitleBlock: !1,
|
|
678
679
|
variant: "standard"
|
|
679
680
|
}
|
|
@@ -687,8 +688,8 @@ const ke = ({
|
|
|
687
688
|
primaryColor: n,
|
|
688
689
|
onPrimaryColor: g,
|
|
689
690
|
borderColor: o,
|
|
690
|
-
backgroundColor:
|
|
691
|
-
dangerColor:
|
|
691
|
+
backgroundColor: h,
|
|
692
|
+
dangerColor: i,
|
|
692
693
|
cardBaseColor: r,
|
|
693
694
|
shimmerColor: s,
|
|
694
695
|
brandingLogo: k = "",
|
|
@@ -698,7 +699,7 @@ const ke = ({
|
|
|
698
699
|
compactCards: p = !1
|
|
699
700
|
}) => {
|
|
700
701
|
var Fe, We, _e, Oe;
|
|
701
|
-
const
|
|
702
|
+
const l = J(), m = le(), O = ve(), v = we(), u = xe(), C = Se(), G = r || h, L = s || n, f = b === "standard", N = b === "overlay", V = f ? Ce(h) : "", _ = V ? V.replace(/[^\d,]/g, "") : "", D = p ? l ? 80 : 110 : l ? 100 : 140, T = p ? l ? 104 : 143 : l ? 130 : 180, H = p ? l ? 90 : 130 : l ? 120 : 180, y = p ? l ? "16px" : "32px" : l ? "24px" : "48px", X = p ? l ? "12px" : "32px" : l ? "16px" : "48px", F = Ve(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) => {
|
|
702
703
|
var K;
|
|
703
704
|
return (K = ae.images) == null ? void 0 : K.idle;
|
|
704
705
|
}), {
|
|
@@ -708,7 +709,7 @@ const ke = ({
|
|
|
708
709
|
showResultScreen: Y,
|
|
709
710
|
showInlineResult: E,
|
|
710
711
|
showLoseAnimation: q,
|
|
711
|
-
hasEntered:
|
|
712
|
+
hasEntered: M,
|
|
712
713
|
flippedCards: Q,
|
|
713
714
|
crossfadedCards: oe,
|
|
714
715
|
revealedOtherCards: ce,
|
|
@@ -719,7 +720,7 @@ const ke = ({
|
|
|
719
720
|
handleReset: ge
|
|
720
721
|
} = gt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
|
|
721
722
|
A && /* @__PURE__ */ t(
|
|
722
|
-
|
|
723
|
+
He,
|
|
723
724
|
{
|
|
724
725
|
primaryColor: n,
|
|
725
726
|
isDark: z,
|
|
@@ -727,7 +728,7 @@ const ke = ({
|
|
|
727
728
|
}
|
|
728
729
|
),
|
|
729
730
|
Y && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
|
|
730
|
-
|
|
731
|
+
ie,
|
|
731
732
|
{
|
|
732
733
|
result: S.results,
|
|
733
734
|
variant: b || "embed",
|
|
@@ -748,7 +749,7 @@ const ke = ({
|
|
|
748
749
|
sx: {
|
|
749
750
|
display: "flex",
|
|
750
751
|
flexDirection: "column",
|
|
751
|
-
gap:
|
|
752
|
+
gap: u.xs,
|
|
752
753
|
alignItems: "center",
|
|
753
754
|
textAlign: "center",
|
|
754
755
|
width: "100%"
|
|
@@ -761,7 +762,7 @@ const ke = ({
|
|
|
761
762
|
sx: {
|
|
762
763
|
fontFamily: v.primary,
|
|
763
764
|
fontWeight: 700,
|
|
764
|
-
fontSize:
|
|
765
|
+
fontSize: l ? "1.5rem" : "2rem",
|
|
765
766
|
color: a,
|
|
766
767
|
lineHeight: 1.2,
|
|
767
768
|
textShadow: A ? `0 0 20px ${n}20` : "none"
|
|
@@ -775,9 +776,9 @@ const ke = ({
|
|
|
775
776
|
sx: {
|
|
776
777
|
display: "flex",
|
|
777
778
|
alignItems: "center",
|
|
778
|
-
gap:
|
|
779
|
-
mt:
|
|
780
|
-
width:
|
|
779
|
+
gap: u.sm,
|
|
780
|
+
mt: u.xs,
|
|
781
|
+
width: l ? "60%" : "40%"
|
|
781
782
|
},
|
|
782
783
|
children: [
|
|
783
784
|
/* @__PURE__ */ t(
|
|
@@ -822,7 +823,7 @@ const ke = ({
|
|
|
822
823
|
sx: {
|
|
823
824
|
fontFamily: v.secondary,
|
|
824
825
|
fontWeight: 400,
|
|
825
|
-
fontSize:
|
|
826
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
826
827
|
color: a,
|
|
827
828
|
opacity: 0.8
|
|
828
829
|
},
|
|
@@ -840,10 +841,10 @@ const ke = ({
|
|
|
840
841
|
sx: {
|
|
841
842
|
fontFamily: v.primary,
|
|
842
843
|
fontWeight: 400,
|
|
843
|
-
fontSize:
|
|
844
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
844
845
|
color: a,
|
|
845
846
|
textAlign: "center",
|
|
846
|
-
mb: N ? 0 :
|
|
847
|
+
mb: N ? 0 : u.md
|
|
847
848
|
},
|
|
848
849
|
children: W.welcome
|
|
849
850
|
}
|
|
@@ -855,7 +856,7 @@ const ke = ({
|
|
|
855
856
|
sx: {
|
|
856
857
|
fontFamily: v.secondary,
|
|
857
858
|
fontWeight: 400,
|
|
858
|
-
fontSize:
|
|
859
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
859
860
|
color: a,
|
|
860
861
|
textAlign: "center",
|
|
861
862
|
opacity: 0.7,
|
|
@@ -871,9 +872,9 @@ const ke = ({
|
|
|
871
872
|
sx: {
|
|
872
873
|
display: "flex",
|
|
873
874
|
alignItems: "center",
|
|
874
|
-
gap:
|
|
875
|
-
width:
|
|
876
|
-
my:
|
|
875
|
+
gap: u.sm,
|
|
876
|
+
width: l ? "40%" : "25%",
|
|
877
|
+
my: u.xs
|
|
877
878
|
},
|
|
878
879
|
children: [
|
|
879
880
|
/* @__PURE__ */ t(
|
|
@@ -914,14 +915,14 @@ const ke = ({
|
|
|
914
915
|
d,
|
|
915
916
|
{
|
|
916
917
|
sx: {
|
|
917
|
-
mt:
|
|
918
|
+
mt: u.lg,
|
|
918
919
|
mx: "auto",
|
|
919
920
|
display: "grid",
|
|
920
|
-
gridTemplateColumns: I ? `repeat(3, ${
|
|
921
|
+
gridTemplateColumns: I ? `repeat(3, ${H}px)` : `repeat(3, ${D}px)`,
|
|
921
922
|
rowGap: y,
|
|
922
923
|
columnGap: X,
|
|
923
924
|
justifyContent: "center",
|
|
924
|
-
mb:
|
|
925
|
+
mb: u.lg,
|
|
925
926
|
position: "relative",
|
|
926
927
|
perspective: "1200px"
|
|
927
928
|
},
|
|
@@ -935,8 +936,8 @@ const ke = ({
|
|
|
935
936
|
justifyContent: "center",
|
|
936
937
|
alignItems: "center",
|
|
937
938
|
// Staggered deal-in entrance
|
|
938
|
-
opacity:
|
|
939
|
-
transform:
|
|
939
|
+
opacity: M ? 1 : 0,
|
|
940
|
+
transform: M ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
|
|
940
941
|
transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${K * 100}ms`
|
|
941
942
|
},
|
|
942
943
|
children: I ? /* @__PURE__ */ t(
|
|
@@ -950,12 +951,12 @@ const ke = ({
|
|
|
950
951
|
isOtherRevealed: me,
|
|
951
952
|
shouldDim: Ye,
|
|
952
953
|
isRevealed: de,
|
|
953
|
-
hasEntered:
|
|
954
|
-
objectSize:
|
|
954
|
+
hasEntered: M,
|
|
955
|
+
objectSize: H,
|
|
955
956
|
crossfadeDuration: Pe,
|
|
956
957
|
isStandard: f,
|
|
957
958
|
primaryColor: n,
|
|
958
|
-
dangerColor:
|
|
959
|
+
dangerColor: i,
|
|
959
960
|
onPick: () => Re(K, !0)
|
|
960
961
|
}
|
|
961
962
|
) : /* @__PURE__ */ t(
|
|
@@ -969,7 +970,7 @@ const ke = ({
|
|
|
969
970
|
shouldDim: je,
|
|
970
971
|
isRevealed: de,
|
|
971
972
|
showLoseAnimation: q,
|
|
972
|
-
hasEntered:
|
|
973
|
+
hasEntered: M,
|
|
973
974
|
cardWidth: D,
|
|
974
975
|
cardHeight: T,
|
|
975
976
|
flipDuration: Xe,
|
|
@@ -978,7 +979,7 @@ const ke = ({
|
|
|
978
979
|
shimmerColor: L,
|
|
979
980
|
primaryColor: n,
|
|
980
981
|
contentColor: a,
|
|
981
|
-
dangerColor:
|
|
982
|
+
dangerColor: i,
|
|
982
983
|
borderColor: o,
|
|
983
984
|
brandingLogo: k,
|
|
984
985
|
compactCards: p,
|
|
@@ -992,7 +993,7 @@ const ke = ({
|
|
|
992
993
|
}
|
|
993
994
|
),
|
|
994
995
|
!f && E && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
|
|
995
|
-
|
|
996
|
+
ie,
|
|
996
997
|
{
|
|
997
998
|
result: S.results,
|
|
998
999
|
variant: "embed",
|
|
@@ -1005,22 +1006,22 @@ const ke = ({
|
|
|
1005
1006
|
}
|
|
1006
1007
|
),
|
|
1007
1008
|
!f && c && E && /* @__PURE__ */ t(
|
|
1008
|
-
|
|
1009
|
+
ue,
|
|
1009
1010
|
{
|
|
1010
1011
|
onClick: ge,
|
|
1011
1012
|
variant: "outlined",
|
|
1012
1013
|
sx: {
|
|
1013
|
-
mt:
|
|
1014
|
-
px:
|
|
1015
|
-
py:
|
|
1014
|
+
mt: u.md,
|
|
1015
|
+
px: u.lg,
|
|
1016
|
+
py: u.sm,
|
|
1016
1017
|
fontFamily: v.secondary,
|
|
1017
1018
|
fontWeight: 600,
|
|
1018
|
-
fontSize:
|
|
1019
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
1019
1020
|
textTransform: "uppercase",
|
|
1020
1021
|
borderRadius: O.md,
|
|
1021
1022
|
borderColor: o || m.outlineEnabledBorder,
|
|
1022
1023
|
color: a,
|
|
1023
|
-
minWidth:
|
|
1024
|
+
minWidth: l ? "150px" : "180px",
|
|
1024
1025
|
"&:hover": {
|
|
1025
1026
|
borderColor: n,
|
|
1026
1027
|
bgcolor: "transparent",
|
|
@@ -1031,17 +1032,17 @@ const ke = ({
|
|
|
1031
1032
|
}
|
|
1032
1033
|
),
|
|
1033
1034
|
f && c && E && /* @__PURE__ */ t(
|
|
1034
|
-
|
|
1035
|
+
ue,
|
|
1035
1036
|
{
|
|
1036
1037
|
onClick: ge,
|
|
1037
1038
|
variant: "outlined",
|
|
1038
1039
|
sx: {
|
|
1039
1040
|
borderRadius: O.xl,
|
|
1040
|
-
py:
|
|
1041
|
-
px:
|
|
1041
|
+
py: u.sm,
|
|
1042
|
+
px: u.lg,
|
|
1042
1043
|
borderColor: m.outlineEnabledBorder,
|
|
1043
1044
|
color: a,
|
|
1044
|
-
fontSize:
|
|
1045
|
+
fontSize: l ? "0.75rem" : "0.875rem",
|
|
1045
1046
|
fontWeight: 700,
|
|
1046
1047
|
fontFamily: v.primary,
|
|
1047
1048
|
textTransform: "uppercase",
|
|
@@ -1064,7 +1065,7 @@ const ke = ({
|
|
|
1064
1065
|
flexDirection: "column",
|
|
1065
1066
|
width: "100%",
|
|
1066
1067
|
height: "100%",
|
|
1067
|
-
gap:
|
|
1068
|
+
gap: u.lg,
|
|
1068
1069
|
alignItems: "center",
|
|
1069
1070
|
position: "relative",
|
|
1070
1071
|
overflow: "auto",
|
|
@@ -1078,10 +1079,10 @@ const ke = ({
|
|
|
1078
1079
|
sx: {
|
|
1079
1080
|
fontFamily: v.primary,
|
|
1080
1081
|
fontWeight: 400,
|
|
1081
|
-
fontSize:
|
|
1082
|
+
fontSize: l ? "0.875rem" : "1rem",
|
|
1082
1083
|
color: a,
|
|
1083
1084
|
textAlign: "center",
|
|
1084
|
-
px:
|
|
1085
|
+
px: u.md
|
|
1085
1086
|
},
|
|
1086
1087
|
children: W.welcome
|
|
1087
1088
|
}
|
|
@@ -1092,7 +1093,7 @@ const ke = ({
|
|
|
1092
1093
|
sx: {
|
|
1093
1094
|
display: "flex",
|
|
1094
1095
|
flexDirection: "column",
|
|
1095
|
-
px:
|
|
1096
|
+
px: u.md,
|
|
1096
1097
|
width: "100%",
|
|
1097
1098
|
boxSizing: "border-box"
|
|
1098
1099
|
},
|
|
@@ -1102,7 +1103,7 @@ const ke = ({
|
|
|
1102
1103
|
sx: {
|
|
1103
1104
|
display: "flex",
|
|
1104
1105
|
flexDirection: "column",
|
|
1105
|
-
gap:
|
|
1106
|
+
gap: l ? u.lg : u.md
|
|
1106
1107
|
},
|
|
1107
1108
|
children: [
|
|
1108
1109
|
/* @__PURE__ */ t(
|
|
@@ -1110,10 +1111,10 @@ const ke = ({
|
|
|
1110
1111
|
{
|
|
1111
1112
|
sx: {
|
|
1112
1113
|
borderRadius: O.md,
|
|
1113
|
-
px:
|
|
1114
|
-
pt:
|
|
1115
|
-
pb:
|
|
1116
|
-
gap:
|
|
1114
|
+
px: u.sm,
|
|
1115
|
+
pt: u.sm,
|
|
1116
|
+
pb: u.md,
|
|
1117
|
+
gap: u.md,
|
|
1117
1118
|
bgcolor: `rgba(${_}, 0.5)`,
|
|
1118
1119
|
display: "flex",
|
|
1119
1120
|
flexDirection: "column",
|
|
@@ -1126,7 +1127,7 @@ const ke = ({
|
|
|
1126
1127
|
}
|
|
1127
1128
|
),
|
|
1128
1129
|
E && (S == null ? void 0 : S.results) && /* @__PURE__ */ t(
|
|
1129
|
-
|
|
1130
|
+
ie,
|
|
1130
1131
|
{
|
|
1131
1132
|
result: S.results,
|
|
1132
1133
|
variant: "standard",
|
|
@@ -1135,7 +1136,7 @@ const ke = ({
|
|
|
1135
1136
|
primaryColor: n,
|
|
1136
1137
|
onPrimaryColor: g,
|
|
1137
1138
|
showResetButton: !1,
|
|
1138
|
-
sx: { mb:
|
|
1139
|
+
sx: { mb: u.md }
|
|
1139
1140
|
}
|
|
1140
1141
|
),
|
|
1141
1142
|
(k || W.disclaimer) && /* @__PURE__ */ w(
|
|
@@ -1145,7 +1146,7 @@ const ke = ({
|
|
|
1145
1146
|
display: "flex",
|
|
1146
1147
|
flexDirection: "column",
|
|
1147
1148
|
alignItems: "center",
|
|
1148
|
-
gap:
|
|
1149
|
+
gap: u.md
|
|
1149
1150
|
},
|
|
1150
1151
|
children: [
|
|
1151
1152
|
W.disclaimer && /* @__PURE__ */ t(
|
|
@@ -1155,7 +1156,7 @@ const ke = ({
|
|
|
1155
1156
|
sx: {
|
|
1156
1157
|
fontFamily: v.secondary,
|
|
1157
1158
|
fontWeight: 400,
|
|
1158
|
-
fontSize:
|
|
1159
|
+
fontSize: l ? "0.625rem" : "0.75rem",
|
|
1159
1160
|
color: a,
|
|
1160
1161
|
opacity: 0.7,
|
|
1161
1162
|
textAlign: "center",
|
|
@@ -1195,8 +1196,8 @@ const ke = ({
|
|
|
1195
1196
|
flexDirection: "column",
|
|
1196
1197
|
width: "100%",
|
|
1197
1198
|
height: "100%",
|
|
1198
|
-
p:
|
|
1199
|
-
gap:
|
|
1199
|
+
p: u.lg,
|
|
1200
|
+
gap: u.lg,
|
|
1200
1201
|
alignItems: "center",
|
|
1201
1202
|
position: "relative",
|
|
1202
1203
|
overflow: "auto",
|
|
@@ -1205,20 +1206,20 @@ const ke = ({
|
|
|
1205
1206
|
children: ze()
|
|
1206
1207
|
}
|
|
1207
1208
|
);
|
|
1208
|
-
},
|
|
1209
|
+
}, Wt = ({
|
|
1209
1210
|
infoPage: e,
|
|
1210
1211
|
enableReset: c = !1,
|
|
1211
1212
|
imagePosition: a = "left",
|
|
1212
1213
|
defaultImagePlaceholderUrl: n
|
|
1213
1214
|
}) => {
|
|
1214
|
-
var
|
|
1215
|
-
const { t: g } = se(), o = J(),
|
|
1215
|
+
var l, m, O;
|
|
1216
|
+
const { t: g } = se(), o = J(), h = le(), i = Te() === "dark", r = fe(
|
|
1216
1217
|
{
|
|
1217
1218
|
images: e.images,
|
|
1218
1219
|
imagePlaceholder: n || ""
|
|
1219
1220
|
},
|
|
1220
1221
|
pe.STANDARD
|
|
1221
|
-
), s = (
|
|
1222
|
+
), s = (l = e.branding) == null ? void 0 : l.colors, k = (s == null ? void 0 : s.primary_color) || h.palette.primary.plainColor, z = (s == null ? void 0 : s.border_color) || null, x = (s == null ? void 0 : s.background_color) || h.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) || "";
|
|
1222
1223
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: z, children: /* @__PURE__ */ t(
|
|
1223
1224
|
$e,
|
|
1224
1225
|
{
|
|
@@ -1238,16 +1239,16 @@ const ke = ({
|
|
|
1238
1239
|
{
|
|
1239
1240
|
infoPage: e,
|
|
1240
1241
|
enableReset: c,
|
|
1241
|
-
contentColor: (s == null ? void 0 : s.content_color) ||
|
|
1242
|
+
contentColor: (s == null ? void 0 : s.content_color) || h.textPrimary,
|
|
1242
1243
|
primaryColor: k,
|
|
1243
|
-
onPrimaryColor: (s == null ? void 0 : s.content_color) ||
|
|
1244
|
+
onPrimaryColor: (s == null ? void 0 : s.content_color) || h.palette.primary.onPrimary || h.surface,
|
|
1244
1245
|
borderColor: z || void 0,
|
|
1245
1246
|
backgroundColor: x,
|
|
1246
|
-
dangerColor:
|
|
1247
|
+
dangerColor: h.palette.danger.plainColor,
|
|
1247
1248
|
cardBaseColor: x,
|
|
1248
1249
|
shimmerColor: k,
|
|
1249
1250
|
brandingLogo: p,
|
|
1250
|
-
isDark:
|
|
1251
|
+
isDark: i,
|
|
1251
1252
|
showTitleBlock: !1,
|
|
1252
1253
|
variant: "standard",
|
|
1253
1254
|
compactCards: !0
|
|
@@ -1298,26 +1299,26 @@ const ke = ({
|
|
|
1298
1299
|
margin: "0 auto",
|
|
1299
1300
|
opacity: 0.9
|
|
1300
1301
|
}
|
|
1301
|
-
}),
|
|
1302
|
+
}), _t = ({
|
|
1302
1303
|
infoPage: e,
|
|
1303
1304
|
enableReset: c = !1,
|
|
1304
1305
|
defaultImagePlaceholderUrl: a
|
|
1305
1306
|
}) => {
|
|
1306
|
-
var f, N,
|
|
1307
|
-
const { t: n } = se(), g = J(), o = Ae(),
|
|
1307
|
+
var f, N, V, _, D, T, H, y, X, F, R, $, W, P, U, j, A, I, S;
|
|
1308
|
+
const { t: n } = se(), g = J(), o = Ae(), h = xe(), i = ((f = e.branding) == null ? void 0 : f.colors) || null, r = (N = e.branding) == null ? void 0 : N.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 ? Ge : Ee), x = s || fe(
|
|
1308
1309
|
{
|
|
1309
1310
|
images: e.images,
|
|
1310
1311
|
imagePlaceholder: z
|
|
1311
1312
|
},
|
|
1312
1313
|
pe.OVERLAY
|
|
1313
|
-
), b = o.colorSchemes.dark.textColor, p = (
|
|
1314
|
-
spacingScale:
|
|
1314
|
+
), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((T = (D = (_ = (V = o.colorSchemes) == null ? void 0 : V.light) == null ? void 0 : _.palette) == null ? void 0 : D.primary) == null ? void 0 : T.plainColor), m = (F = (X = (y = (H = o.colorSchemes) == null ? void 0 : H.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, u = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, G = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, L = Ne({
|
|
1315
|
+
spacingScale: h,
|
|
1315
1316
|
mdBorderRadius: C,
|
|
1316
1317
|
contentBgColor: O,
|
|
1317
1318
|
buttonRadius: G,
|
|
1318
|
-
primaryColor:
|
|
1319
|
+
primaryColor: l,
|
|
1319
1320
|
onPrimaryColor: m,
|
|
1320
|
-
fontFamilyPrimary:
|
|
1321
|
+
fontFamilyPrimary: u,
|
|
1321
1322
|
darkTextColor: b,
|
|
1322
1323
|
isMobile: g,
|
|
1323
1324
|
textColor: p
|
|
@@ -1341,12 +1342,12 @@ const ke = ({
|
|
|
1341
1342
|
infoPage: e,
|
|
1342
1343
|
enableReset: c,
|
|
1343
1344
|
contentColor: p,
|
|
1344
|
-
primaryColor:
|
|
1345
|
+
primaryColor: l,
|
|
1345
1346
|
onPrimaryColor: m || "#FFFFFF",
|
|
1346
1347
|
backgroundColor: O,
|
|
1347
1348
|
dangerColor: v,
|
|
1348
1349
|
cardBaseColor: O,
|
|
1349
|
-
shimmerColor:
|
|
1350
|
+
shimmerColor: l,
|
|
1350
1351
|
brandingLogo: k,
|
|
1351
1352
|
isDark: !0,
|
|
1352
1353
|
showTitleBlock: !1,
|
|
@@ -1356,13 +1357,13 @@ const ke = ({
|
|
|
1356
1357
|
) })
|
|
1357
1358
|
}
|
|
1358
1359
|
);
|
|
1359
|
-
},
|
|
1360
|
+
}, Ot = (e) => {
|
|
1360
1361
|
const c = we().secondary, a = qe(), n = e.isSplitVariant && a, g = J(), o = Qe(e.primaryUrl, e.secondaryUrl, "logo");
|
|
1361
1362
|
if (!e.brandingLogo)
|
|
1362
1363
|
return null;
|
|
1363
|
-
const
|
|
1364
|
+
const h = () => {
|
|
1364
1365
|
o && window.open(o, "_blank", "noopener,noreferrer");
|
|
1365
|
-
},
|
|
1366
|
+
}, i = /* @__PURE__ */ t(
|
|
1366
1367
|
"img",
|
|
1367
1368
|
{
|
|
1368
1369
|
src: e.brandingLogo,
|
|
@@ -1384,19 +1385,19 @@ const ke = ({
|
|
|
1384
1385
|
textDecoration: "none",
|
|
1385
1386
|
display: "inline-flex"
|
|
1386
1387
|
},
|
|
1387
|
-
children:
|
|
1388
|
+
children: i
|
|
1388
1389
|
}
|
|
1389
1390
|
) : /* @__PURE__ */ t(
|
|
1390
1391
|
d,
|
|
1391
1392
|
{
|
|
1392
|
-
onClick:
|
|
1393
|
+
onClick: h,
|
|
1393
1394
|
sx: {
|
|
1394
1395
|
cursor: "pointer",
|
|
1395
1396
|
display: "inline-flex"
|
|
1396
1397
|
},
|
|
1397
|
-
children:
|
|
1398
|
+
children: i
|
|
1398
1399
|
}
|
|
1399
|
-
) :
|
|
1400
|
+
) : i;
|
|
1400
1401
|
return e.isCentered || n || g ? /* @__PURE__ */ w(
|
|
1401
1402
|
d,
|
|
1402
1403
|
{
|
|
@@ -1461,24 +1462,24 @@ const ke = ({
|
|
|
1461
1462
|
]
|
|
1462
1463
|
}
|
|
1463
1464
|
);
|
|
1464
|
-
},
|
|
1465
|
+
}, Dt = ({
|
|
1465
1466
|
infoPage: e,
|
|
1466
1467
|
enableReset: c = !1,
|
|
1467
1468
|
defaultImagePlaceholderUrl: a
|
|
1468
1469
|
}) => {
|
|
1469
|
-
var N,
|
|
1470
|
-
const { t: n } = se(), g = J(), o = Ae(),
|
|
1470
|
+
var N, V, _, D, T, H, y, X, F, R, $, W, P, U, j, A, I, S, ee, te, Y, E, q, M, Q, oe, ce;
|
|
1471
|
+
const { t: n } = se(), g = J(), o = Ae(), h = xe(), i = ((N = e.branding) == null ? void 0 : N.colors) || null, r = (V = e.branding) == null ? void 0 : V.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 ? Ge : Ee), x = s || fe(
|
|
1471
1472
|
{
|
|
1472
1473
|
images: e.images,
|
|
1473
1474
|
imagePlaceholder: z
|
|
1474
1475
|
},
|
|
1475
1476
|
pe.OVERLAY
|
|
1476
|
-
), b = o.colorSchemes.dark.textColor, p = (
|
|
1477
|
-
spacingScale:
|
|
1477
|
+
), b = o.colorSchemes.dark.textColor, p = (i == null ? void 0 : i.content_color) || b, l = (i == null ? void 0 : i.primary_color) || ((H = (T = (D = (_ = o.colorSchemes) == null ? void 0 : _.light) == null ? void 0 : D.palette) == null ? void 0 : T.primary) == null ? void 0 : H.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), u = (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, G = o.customRadius.dark.md, L = (E = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : E.xl, f = Ne({
|
|
1478
|
+
spacingScale: h,
|
|
1478
1479
|
mdBorderRadius: G,
|
|
1479
1480
|
contentBgColor: v,
|
|
1480
1481
|
buttonRadius: L,
|
|
1481
|
-
primaryColor:
|
|
1482
|
+
primaryColor: l,
|
|
1482
1483
|
onPrimaryColor: O,
|
|
1483
1484
|
fontFamilyPrimary: C,
|
|
1484
1485
|
darkTextColor: b,
|
|
@@ -1498,17 +1499,17 @@ const ke = ({
|
|
|
1498
1499
|
finalImage: x,
|
|
1499
1500
|
children: [
|
|
1500
1501
|
/* @__PURE__ */ t(d, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
|
|
1501
|
-
|
|
1502
|
+
Me,
|
|
1502
1503
|
{
|
|
1503
1504
|
infoPage: e,
|
|
1504
1505
|
enableReset: c,
|
|
1505
1506
|
contentColor: p,
|
|
1506
|
-
primaryColor:
|
|
1507
|
+
primaryColor: l,
|
|
1507
1508
|
secondaryColor: m,
|
|
1508
1509
|
onPrimaryColor: O || "#FFFFFF",
|
|
1509
1510
|
backgroundColor: v,
|
|
1510
|
-
dangerColor:
|
|
1511
|
-
shimmerColor:
|
|
1511
|
+
dangerColor: u,
|
|
1512
|
+
shimmerColor: l,
|
|
1512
1513
|
brandingLogo: k,
|
|
1513
1514
|
isDark: !0,
|
|
1514
1515
|
showTitleBlock: !1,
|
|
@@ -1516,19 +1517,19 @@ const ke = ({
|
|
|
1516
1517
|
}
|
|
1517
1518
|
) }),
|
|
1518
1519
|
/* @__PURE__ */ t(
|
|
1519
|
-
|
|
1520
|
+
Ot,
|
|
1520
1521
|
{
|
|
1521
1522
|
brandingLogo: k,
|
|
1522
1523
|
textColor: b,
|
|
1523
1524
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1524
|
-
primaryUrl: (Q = (
|
|
1525
|
+
primaryUrl: (Q = (M = e.branding) == null ? void 0 : M.urls) == null ? void 0 : Q.primary_url,
|
|
1525
1526
|
secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
|
|
1526
1527
|
}
|
|
1527
1528
|
)
|
|
1528
1529
|
]
|
|
1529
1530
|
}
|
|
1530
1531
|
);
|
|
1531
|
-
},
|
|
1532
|
+
}, Bt = (e) => {
|
|
1532
1533
|
const { infoPage: c } = Ze(e.entityId, "chance-game", e.sdk), a = () => {
|
|
1533
1534
|
if (c && c.id !== "not-found") {
|
|
1534
1535
|
const o = Object.keys(ot);
|
|
@@ -1545,35 +1546,35 @@ const ke = ({
|
|
|
1545
1546
|
}, [e.language, c]), !c || !n)
|
|
1546
1547
|
return /* @__PURE__ */ t(tt, { my: 20 });
|
|
1547
1548
|
if (c.id === "not-found")
|
|
1548
|
-
return /* @__PURE__ */ t(
|
|
1549
|
-
if (e.template ===
|
|
1550
|
-
const o = e.imagePosition,
|
|
1549
|
+
return /* @__PURE__ */ t(zt, { template: e.template });
|
|
1550
|
+
if (e.template === he.STANDARD) {
|
|
1551
|
+
const o = e.imagePosition, h = e.defaultImagePlaceholderUrl;
|
|
1551
1552
|
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(
|
|
1552
|
-
|
|
1553
|
+
Wt,
|
|
1553
1554
|
{
|
|
1554
1555
|
infoPage: c,
|
|
1555
1556
|
imagePosition: o,
|
|
1556
|
-
defaultImagePlaceholderUrl:
|
|
1557
|
+
defaultImagePlaceholderUrl: h
|
|
1557
1558
|
}
|
|
1558
1559
|
) : /* @__PURE__ */ t(
|
|
1559
|
-
|
|
1560
|
+
Ft,
|
|
1560
1561
|
{
|
|
1561
1562
|
infoPage: c,
|
|
1562
1563
|
imagePosition: o,
|
|
1563
|
-
defaultImagePlaceholderUrl:
|
|
1564
|
+
defaultImagePlaceholderUrl: h
|
|
1564
1565
|
}
|
|
1565
1566
|
);
|
|
1566
1567
|
}
|
|
1567
|
-
if (e.template ===
|
|
1568
|
+
if (e.template === he.OVERLAY) {
|
|
1568
1569
|
const o = e.defaultImagePlaceholderUrl;
|
|
1569
1570
|
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(
|
|
1570
|
-
|
|
1571
|
+
_t,
|
|
1571
1572
|
{
|
|
1572
1573
|
infoPage: c,
|
|
1573
1574
|
defaultImagePlaceholderUrl: o
|
|
1574
1575
|
}
|
|
1575
1576
|
) : /* @__PURE__ */ t(
|
|
1576
|
-
|
|
1577
|
+
Dt,
|
|
1577
1578
|
{
|
|
1578
1579
|
infoPage: c,
|
|
1579
1580
|
defaultImagePlaceholderUrl: o
|
|
@@ -1581,20 +1582,20 @@ const ke = ({
|
|
|
1581
1582
|
);
|
|
1582
1583
|
}
|
|
1583
1584
|
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(be, { infoPage: c }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(vt, { infoPage: c }) : /* @__PURE__ */ t(St, { infoPage: c });
|
|
1584
|
-
},
|
|
1585
|
+
}, Ct = (e) => {
|
|
1585
1586
|
const [c, a] = Z.useState(!1), n = nt(e.language), g = Z.useRef(
|
|
1586
1587
|
`chance-game-shadow-root-${Math.random().toString(36).substring(2, 11)}`
|
|
1587
|
-
), o = Z.useRef(null),
|
|
1588
|
+
), o = Z.useRef(null), h = Z.useRef(null), i = Z.useRef(null), [r, s] = Z.useState(null);
|
|
1588
1589
|
Z.useEffect(() => {
|
|
1589
1590
|
if (!o.current) return;
|
|
1590
|
-
o.current.shadowRoot ? (
|
|
1591
|
+
o.current.shadowRoot ? (h.current = o.current.shadowRoot, i.current = h.current.getElementById(
|
|
1591
1592
|
g.current
|
|
1592
|
-
),
|
|
1593
|
-
const p =
|
|
1593
|
+
), i.current || (i.current = document.createElement("div"), i.current.id = g.current, h.current.appendChild(i.current))) : (h.current = o.current.attachShadow({ mode: "open" }), i.current = document.createElement("div"), i.current.id = g.current, h.current.appendChild(i.current)), rt(i.current, n);
|
|
1594
|
+
const p = it("chance-game", n);
|
|
1594
1595
|
return s(
|
|
1595
|
-
(
|
|
1596
|
+
(l) => (l == null ? void 0 : l.key) === p ? l : lt(
|
|
1596
1597
|
"chance-game",
|
|
1597
|
-
|
|
1598
|
+
h.current,
|
|
1598
1599
|
n
|
|
1599
1600
|
)
|
|
1600
1601
|
), a(!0), () => {
|
|
@@ -1603,8 +1604,8 @@ const ke = ({
|
|
|
1603
1604
|
}, [n]);
|
|
1604
1605
|
const k = e.themeOptions, z = {
|
|
1605
1606
|
...k,
|
|
1606
|
-
mode: e.template ===
|
|
1607
|
-
}, x = /* @__PURE__ */ t(d, { ref: o, lang: e.language || "en" }), b = c && o.current &&
|
|
1607
|
+
mode: e.template === he.OVERLAY ? "dark" : k == null ? void 0 : k.mode
|
|
1608
|
+
}, x = /* @__PURE__ */ t(d, { ref: o, lang: e.language || "en" }), b = c && o.current && i.current && r ? kt(
|
|
1608
1609
|
// Keyed on the cache, not on `direction`: it must change in the same
|
|
1609
1610
|
// render that adopts the new cache, or CssVarsProvider writes its CSS
|
|
1610
1611
|
// variables into the outgoing cache and never repeats.
|
|
@@ -1613,28 +1614,29 @@ const ke = ({
|
|
|
1613
1614
|
{
|
|
1614
1615
|
customTheme: z,
|
|
1615
1616
|
mode: z == null ? void 0 : z.mode,
|
|
1616
|
-
shadowRootElement:
|
|
1617
|
+
shadowRootElement: i.current,
|
|
1617
1618
|
direction: n,
|
|
1618
1619
|
children: /* @__PURE__ */ t(
|
|
1619
1620
|
ct,
|
|
1620
1621
|
{
|
|
1621
|
-
shadowRootElement:
|
|
1622
|
+
shadowRootElement: i.current,
|
|
1622
1623
|
leadPhoneCountryCode: null,
|
|
1623
1624
|
language: null,
|
|
1624
1625
|
optionsLayout: null,
|
|
1625
1626
|
direction: n,
|
|
1627
|
+
disableCache: e.disableCache ?? !1,
|
|
1626
1628
|
children: e.children
|
|
1627
1629
|
}
|
|
1628
1630
|
)
|
|
1629
1631
|
}
|
|
1630
1632
|
) }) }, r.key),
|
|
1631
|
-
|
|
1633
|
+
i.current
|
|
1632
1634
|
) : null;
|
|
1633
1635
|
return /* @__PURE__ */ w(re, { children: [
|
|
1634
1636
|
x,
|
|
1635
1637
|
b
|
|
1636
1638
|
] });
|
|
1637
|
-
},
|
|
1639
|
+
}, Tt = (e) => /* @__PURE__ */ t(Ct, { ...e, children: /* @__PURE__ */ t(Bt, { ...e }) }), Nt = Rt(Tt);
|
|
1638
1640
|
export {
|
|
1639
|
-
|
|
1641
|
+
Nt as ChanceGame
|
|
1640
1642
|
};
|