fansunited-frontend-components 0.0.39 → 0.0.40
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/ChanceGame.js +104 -102
- package/ClassicQuizPlay.js +45 -42
- package/CollectLead.js +25 -24
- package/Discussion.js +376 -378
- package/EitherOrPlay.d.ts +4 -0
- package/EitherOrPlay.d.ts.map +1 -0
- package/EitherOrPlay.js +2533 -0
- package/EventGamePlay.js +59 -54
- package/MatchQuizPlay.js +63 -57
- package/PersonalityQuizPlay.js +7935 -7201
- package/PickThePair.js +153 -151
- package/PollVote.js +108 -104
- package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
- package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
- package/chunks/Avatar-CQCrd1m-.js +352 -0
- package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
- package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
- package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
- package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
- package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
- package/chunks/Notification-BTtUhfZQ.js +615 -0
- package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
- package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
- package/chunks/Person-D0Im9_zE.js +522 -0
- package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
- package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
- package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
- package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
- package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
- package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
- package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
- package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
- package/chunks/chevron-right-DGEksBI7.js +330 -0
- package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
- package/chunks/index-2s5UkG1y.js +1607 -0
- package/chunks/useImageVariant-pnFelF9A.js +535 -0
- package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/package.json +1 -1
- package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
- package/chunks/Notification-Bwcoljir.js +0 -961
- package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
- package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
- package/chunks/useImageVariant-Do8kOVs2.js +0 -537
package/ChanceGame.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { h as Ce, u as xe,
|
|
2
|
+
import { h as Ce, u as xe, g as Je, l as Ke } from "./chunks/useImageVariant-pnFelF9A.js";
|
|
3
3
|
import Z, { useState as qe, useEffect as Qe } from "react";
|
|
4
|
-
import { e as K,
|
|
5
|
-
import { S as at } from "./chunks/Spinner-
|
|
4
|
+
import { e as K, S as Ze, j as ve, k as ie, F as Se, B as m, A as se, aa as ue, h as we, f as fe, T as B, D as he, ab as Te, W as pe, u as $e, ac as et, i as tt, U as ne, a as ot, C as nt, b as rt, E as lt, d as it } from "./chunks/PrizeCard-gMp7I66d.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-BBA89t5s.js";
|
|
6
6
|
import { createPortal as st } from "react-dom";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { O as Ae, u as ct } from "./chunks/useInfoPage-DPkzE5Gn.js";
|
|
8
|
+
import { N as dt, S as Ie } from "./chunks/NotFoundSkeleton-B3RNa8KJ.js";
|
|
9
|
+
import { u as mt, S as le, c as Ee, D as Ge, C as ut, W as ht, d as xt, e as ft, f as pt, O as gt, F as bt, b as ye, a as yt, P as vt } from "./chunks/PickOneOfX-DYQ4c1o2.js";
|
|
10
|
+
import { d as He, a as Ne } from "./chunks/default-quiz-bg-vertical-CT7rrg9o.js";
|
|
9
11
|
const ke = ({
|
|
10
12
|
children: e,
|
|
11
13
|
brandingBorderColor: s,
|
|
@@ -33,7 +35,7 @@ const ke = ({
|
|
|
33
35
|
template: e
|
|
34
36
|
}) => {
|
|
35
37
|
const { t: s } = se(), a = /* @__PURE__ */ t(
|
|
36
|
-
|
|
38
|
+
dt,
|
|
37
39
|
{
|
|
38
40
|
notFoundTitle: s("chanceGame.chanceGameNotFound"),
|
|
39
41
|
notFoundMessage: s("chanceGame.chanceGameNotFoundDescription")
|
|
@@ -51,11 +53,11 @@ const ke = ({
|
|
|
51
53
|
dangerColor: d,
|
|
52
54
|
brandingLogo: n,
|
|
53
55
|
isDark: l = !1,
|
|
54
|
-
showTitleBlock:
|
|
56
|
+
showTitleBlock: z = !1,
|
|
55
57
|
variant: O
|
|
56
58
|
}) => {
|
|
57
59
|
var G, q, V;
|
|
58
|
-
const p = K(), S = ie(), g = ve(), i = we(), u = fe(), _ = Se(), y = O === "standard", h = O === "overlay", C = y || h, E = JSON.parse(e.body), M = 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", W = ((V = E.config) == null ? void 0 : V.decorations) ?? !1,
|
|
60
|
+
const p = K(), S = ie(), g = ve(), i = we(), u = fe(), _ = Se(), y = O === "standard", h = O === "overlay", C = y || h, E = JSON.parse(e.body), M = 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", W = ((V = E.config) == null ? void 0 : V.decorations) ?? !1, D = Ee(r, l), {
|
|
59
61
|
isSpinning: T,
|
|
60
62
|
finalRotation: N,
|
|
61
63
|
selectedSegment: b,
|
|
@@ -63,17 +65,17 @@ const ke = ({
|
|
|
63
65
|
showResultScreen: R,
|
|
64
66
|
showInlineResult: k,
|
|
65
67
|
hasEntered: $,
|
|
66
|
-
confettiActive:
|
|
67
|
-
spinDuration:
|
|
68
|
-
shakeAnimationDuration:
|
|
69
|
-
confettiVelocityMultiplier:
|
|
68
|
+
confettiActive: F,
|
|
69
|
+
spinDuration: U,
|
|
70
|
+
shakeAnimationDuration: j,
|
|
71
|
+
confettiVelocityMultiplier: P,
|
|
70
72
|
confettiGravity: A,
|
|
71
73
|
handleSpin: I,
|
|
72
74
|
handleReset: v,
|
|
73
75
|
onConfettiComplete: ee
|
|
74
76
|
} = mt({ segments: M, mode: L, pace: H }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
|
|
75
77
|
W && /* @__PURE__ */ t(
|
|
76
|
-
|
|
78
|
+
Ge,
|
|
77
79
|
{
|
|
78
80
|
primaryColor: r,
|
|
79
81
|
isDark: l,
|
|
@@ -83,9 +85,9 @@ const ke = ({
|
|
|
83
85
|
/* @__PURE__ */ t(
|
|
84
86
|
ut,
|
|
85
87
|
{
|
|
86
|
-
active:
|
|
88
|
+
active: F,
|
|
87
89
|
primaryColor: r,
|
|
88
|
-
velocityMultiplier:
|
|
90
|
+
velocityMultiplier: P,
|
|
89
91
|
gravity: A,
|
|
90
92
|
onComplete: ee
|
|
91
93
|
}
|
|
@@ -105,7 +107,7 @@ const ke = ({
|
|
|
105
107
|
}
|
|
106
108
|
),
|
|
107
109
|
!R && /* @__PURE__ */ w(re, { children: [
|
|
108
|
-
|
|
110
|
+
z && (e.title || e.subtitle) && /* @__PURE__ */ w(
|
|
109
111
|
m,
|
|
110
112
|
{
|
|
111
113
|
sx: {
|
|
@@ -120,7 +122,7 @@ const ke = ({
|
|
|
120
122
|
children: [
|
|
121
123
|
e.title && /* @__PURE__ */ w(re, { children: [
|
|
122
124
|
/* @__PURE__ */ t(
|
|
123
|
-
|
|
125
|
+
B,
|
|
124
126
|
{
|
|
125
127
|
level: "h2",
|
|
126
128
|
sx: {
|
|
@@ -130,7 +132,7 @@ const ke = ({
|
|
|
130
132
|
color: a,
|
|
131
133
|
lineHeight: 1.2,
|
|
132
134
|
...W && {
|
|
133
|
-
textShadow: `0 0 20px ${
|
|
135
|
+
textShadow: `0 0 20px ${D("20")}, 0 0 40px ${D("10")}`
|
|
134
136
|
}
|
|
135
137
|
},
|
|
136
138
|
children: e.title
|
|
@@ -152,7 +154,7 @@ const ke = ({
|
|
|
152
154
|
sx: {
|
|
153
155
|
width: p ? "40px" : "60px",
|
|
154
156
|
height: "1px",
|
|
155
|
-
background: `linear-gradient(90deg, transparent, ${
|
|
157
|
+
background: `linear-gradient(90deg, transparent, ${D("40")})`
|
|
156
158
|
}
|
|
157
159
|
}
|
|
158
160
|
),
|
|
@@ -163,7 +165,7 @@ const ke = ({
|
|
|
163
165
|
width: "6px",
|
|
164
166
|
height: "6px",
|
|
165
167
|
transform: "rotate(45deg)",
|
|
166
|
-
background:
|
|
168
|
+
background: D("50")
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
),
|
|
@@ -173,7 +175,7 @@ const ke = ({
|
|
|
173
175
|
sx: {
|
|
174
176
|
width: p ? "40px" : "60px",
|
|
175
177
|
height: "1px",
|
|
176
|
-
background: `linear-gradient(90deg, ${
|
|
178
|
+
background: `linear-gradient(90deg, ${D("40")}, transparent)`
|
|
177
179
|
}
|
|
178
180
|
}
|
|
179
181
|
)
|
|
@@ -182,7 +184,7 @@ const ke = ({
|
|
|
182
184
|
)
|
|
183
185
|
] }),
|
|
184
186
|
e.subtitle && /* @__PURE__ */ t(
|
|
185
|
-
|
|
187
|
+
B,
|
|
186
188
|
{
|
|
187
189
|
level: "body-md",
|
|
188
190
|
sx: {
|
|
@@ -200,7 +202,7 @@ const ke = ({
|
|
|
200
202
|
),
|
|
201
203
|
/* @__PURE__ */ w(m, { children: [
|
|
202
204
|
!y && f.welcome && /* @__PURE__ */ t(
|
|
203
|
-
|
|
205
|
+
B,
|
|
204
206
|
{
|
|
205
207
|
level: "body-md",
|
|
206
208
|
sx: {
|
|
@@ -216,7 +218,7 @@ const ke = ({
|
|
|
216
218
|
}
|
|
217
219
|
),
|
|
218
220
|
(y || h) && !k && f.instructions && /* @__PURE__ */ t(
|
|
219
|
-
|
|
221
|
+
B,
|
|
220
222
|
{
|
|
221
223
|
level: y ? "body-sm" : "body-md",
|
|
222
224
|
sx: {
|
|
@@ -246,7 +248,7 @@ const ke = ({
|
|
|
246
248
|
display: "flex",
|
|
247
249
|
alignItems: "center",
|
|
248
250
|
justifyContent: "center",
|
|
249
|
-
cursor: T ||
|
|
251
|
+
cursor: T || F || k || !R && !k && b !== null ? "default" : "pointer",
|
|
250
252
|
userSelect: "none",
|
|
251
253
|
zIndex: 1,
|
|
252
254
|
// Entrance animation
|
|
@@ -254,7 +256,7 @@ const ke = ({
|
|
|
254
256
|
transform: $ ? "scale(1)" : "scale(0.85)",
|
|
255
257
|
transition: "opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
256
258
|
// Shake animation
|
|
257
|
-
animation: X ? `wheelShake ${
|
|
259
|
+
animation: X ? `wheelShake ${j / 2}ms ease-in-out 2` : "none",
|
|
258
260
|
"@keyframes wheelShake": {
|
|
259
261
|
"0%, 100%": { transform: "translateX(0)" },
|
|
260
262
|
"10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
|
|
@@ -262,7 +264,7 @@ const ke = ({
|
|
|
262
264
|
},
|
|
263
265
|
// Wheel glow effect (decorations only)
|
|
264
266
|
...W && {
|
|
265
|
-
filter: `drop-shadow(0 0 ${p ? "15px" : "25px"} ${
|
|
267
|
+
filter: `drop-shadow(0 0 ${p ? "15px" : "25px"} ${D("20")}) drop-shadow(0 0 ${p ? "40px" : "60px"} ${D("10")})`
|
|
266
268
|
}
|
|
267
269
|
},
|
|
268
270
|
children: [
|
|
@@ -285,7 +287,7 @@ const ke = ({
|
|
|
285
287
|
isStandard: y,
|
|
286
288
|
rotation: N,
|
|
287
289
|
isSpinning: T,
|
|
288
|
-
spinDuration:
|
|
290
|
+
spinDuration: U
|
|
289
291
|
}
|
|
290
292
|
),
|
|
291
293
|
!y && !h && n && /* @__PURE__ */ t(
|
|
@@ -321,7 +323,7 @@ const ke = ({
|
|
|
321
323
|
}
|
|
322
324
|
),
|
|
323
325
|
!y && !h && !k && f.instructions && /* @__PURE__ */ t(
|
|
324
|
-
|
|
326
|
+
B,
|
|
325
327
|
{
|
|
326
328
|
level: "body-sm",
|
|
327
329
|
sx: {
|
|
@@ -356,7 +358,7 @@ const ke = ({
|
|
|
356
358
|
he,
|
|
357
359
|
{
|
|
358
360
|
variant: "soft",
|
|
359
|
-
disabled: T ||
|
|
361
|
+
disabled: T || F || !R && !k && b !== null,
|
|
360
362
|
onClick: I,
|
|
361
363
|
sx: {
|
|
362
364
|
borderRadius: g.xl,
|
|
@@ -466,7 +468,7 @@ const ke = ({
|
|
|
466
468
|
},
|
|
467
469
|
children: [
|
|
468
470
|
!R && f.welcome && /* @__PURE__ */ t(
|
|
469
|
-
|
|
471
|
+
B,
|
|
470
472
|
{
|
|
471
473
|
level: "body-md",
|
|
472
474
|
sx: {
|
|
@@ -516,7 +518,7 @@ const ke = ({
|
|
|
516
518
|
position: "relative",
|
|
517
519
|
overflow: "hidden",
|
|
518
520
|
...W && {
|
|
519
|
-
border: `${_.size} solid ${
|
|
521
|
+
border: `${_.size} solid ${D("15")}`
|
|
520
522
|
}
|
|
521
523
|
},
|
|
522
524
|
children: Y()
|
|
@@ -546,7 +548,7 @@ const ke = ({
|
|
|
546
548
|
},
|
|
547
549
|
children: [
|
|
548
550
|
f.disclaimer && /* @__PURE__ */ t(
|
|
549
|
-
|
|
551
|
+
B,
|
|
550
552
|
{
|
|
551
553
|
level: "body-sm",
|
|
552
554
|
sx: {
|
|
@@ -612,7 +614,7 @@ const ke = ({
|
|
|
612
614
|
gap: u.md
|
|
613
615
|
},
|
|
614
616
|
children: /* @__PURE__ */ t(
|
|
615
|
-
|
|
617
|
+
B,
|
|
616
618
|
{
|
|
617
619
|
level: "body-sm",
|
|
618
620
|
sx: {
|
|
@@ -640,15 +642,15 @@ const ke = ({
|
|
|
640
642
|
defaultImagePlaceholderUrl: r
|
|
641
643
|
}) => {
|
|
642
644
|
var u, _;
|
|
643
|
-
const { t: x } = se(), o = K(), c = ie(), d =
|
|
645
|
+
const { t: x } = se(), o = K(), c = ie(), d = Te() === "dark", n = xe(
|
|
644
646
|
{
|
|
645
647
|
images: e.images,
|
|
646
648
|
imagePlaceholder: r || ""
|
|
647
649
|
},
|
|
648
650
|
pe.STANDARD
|
|
649
|
-
), l = (u = e.branding) == null ? void 0 : u.colors,
|
|
651
|
+
), l = (u = e.branding) == null ? void 0 : u.colors, z = (l == null ? void 0 : l.primary_color) || c.palette.primary.plainColor, O = (l == null ? void 0 : l.secondary_color) || c.palette.danger.plainColor, p = (l == null ? void 0 : l.border_color) || null, S = (l == null ? void 0 : l.background_color) || c.surfaceVariant || "", g = (_ = e.branding) == null ? void 0 : _.images, i = o ? (g == null ? void 0 : g.mobile_logo) || (g == null ? void 0 : g.main_logo) || "" : (g == null ? void 0 : g.main_logo) || "";
|
|
650
652
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: p, children: /* @__PURE__ */ t(
|
|
651
|
-
|
|
653
|
+
Ie,
|
|
652
654
|
{
|
|
653
655
|
entity: {
|
|
654
656
|
...e,
|
|
@@ -665,13 +667,13 @@ const ke = ({
|
|
|
665
667
|
infoPage: e,
|
|
666
668
|
enableReset: s,
|
|
667
669
|
contentColor: (l == null ? void 0 : l.content_color) || c.textColor,
|
|
668
|
-
primaryColor:
|
|
670
|
+
primaryColor: z,
|
|
669
671
|
secondaryColor: O,
|
|
670
672
|
onPrimaryColor: c.palette.primary.onPrimary,
|
|
671
673
|
borderColor: p || void 0,
|
|
672
674
|
backgroundColor: S,
|
|
673
675
|
dangerColor: c.palette.danger.plainColor,
|
|
674
|
-
shimmerColor:
|
|
676
|
+
shimmerColor: z,
|
|
675
677
|
brandingLogo: i,
|
|
676
678
|
isDark: d,
|
|
677
679
|
showTitleBlock: !1,
|
|
@@ -691,14 +693,14 @@ const ke = ({
|
|
|
691
693
|
dangerColor: d,
|
|
692
694
|
cardBaseColor: n,
|
|
693
695
|
shimmerColor: l,
|
|
694
|
-
brandingLogo:
|
|
696
|
+
brandingLogo: z = "",
|
|
695
697
|
isDark: O = !1,
|
|
696
698
|
showTitleBlock: p = !1,
|
|
697
699
|
variant: S,
|
|
698
700
|
compactCards: g = !1
|
|
699
701
|
}) => {
|
|
700
|
-
var
|
|
701
|
-
const i = K(), u = ie(), _ = ve(), y = we(), h = fe(), C = Se(), E = n || c, M = l || r, f = S === "standard", L = S === "overlay", H = f ? Ce(c) : "", W = H ? H.replace(/[^\d,]/g, "") : "",
|
|
702
|
+
var ze, We, _e, Oe;
|
|
703
|
+
const i = K(), u = ie(), _ = ve(), y = we(), h = fe(), C = Se(), E = n || c, M = l || r, f = S === "standard", L = S === "overlay", H = f ? Ce(c) : "", W = H ? H.replace(/[^\d,]/g, "") : "", D = g ? i ? 80 : 110 : i ? 100 : 140, T = g ? i ? 104 : 143 : i ? 130 : 180, N = g ? i ? 90 : 130 : i ? 120 : 180, b = g ? i ? "16px" : "32px" : i ? "24px" : "48px", X = g ? i ? "12px" : "32px" : i ? "16px" : "48px", R = Ee(r, O), k = JSON.parse(e.body), $ = k.segments || [], F = e.labels || {}, U = k.mode || ((ze = k.config) == null ? void 0 : ze.mode) || "fair", j = ((We = k.config) == null ? void 0 : We.pace) || "normal", P = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
|
|
702
704
|
var J;
|
|
703
705
|
return (J = ae.images) == null ? void 0 : J.idle;
|
|
704
706
|
}), {
|
|
@@ -713,13 +715,13 @@ const ke = ({
|
|
|
713
715
|
crossfadedCards: oe,
|
|
714
716
|
revealedOtherCards: ce,
|
|
715
717
|
flipDuration: Xe,
|
|
716
|
-
crossfadeDuration:
|
|
717
|
-
loseAnimationDuration:
|
|
718
|
+
crossfadeDuration: Ue,
|
|
719
|
+
loseAnimationDuration: je,
|
|
718
720
|
handlePick: Re,
|
|
719
721
|
handleReset: ge
|
|
720
|
-
} = pt({ segments: $, mode:
|
|
722
|
+
} = pt({ segments: $, mode: U, pace: j, revealAll: P }), Fe = () => /* @__PURE__ */ w(re, { children: [
|
|
721
723
|
A && /* @__PURE__ */ t(
|
|
722
|
-
|
|
724
|
+
Ge,
|
|
723
725
|
{
|
|
724
726
|
primaryColor: r,
|
|
725
727
|
isDark: O,
|
|
@@ -736,7 +738,7 @@ const ke = ({
|
|
|
736
738
|
primaryColor: r,
|
|
737
739
|
onPrimaryColor: x,
|
|
738
740
|
borderColor: o,
|
|
739
|
-
disclaimer: f ? void 0 :
|
|
741
|
+
disclaimer: f ? void 0 : F.disclaimer,
|
|
740
742
|
enableReset: s,
|
|
741
743
|
onReset: ge
|
|
742
744
|
}
|
|
@@ -755,7 +757,7 @@ const ke = ({
|
|
|
755
757
|
},
|
|
756
758
|
children: [
|
|
757
759
|
e.title && /* @__PURE__ */ t(
|
|
758
|
-
|
|
760
|
+
B,
|
|
759
761
|
{
|
|
760
762
|
level: "h2",
|
|
761
763
|
sx: {
|
|
@@ -816,7 +818,7 @@ const ke = ({
|
|
|
816
818
|
}
|
|
817
819
|
),
|
|
818
820
|
e.subtitle && /* @__PURE__ */ t(
|
|
819
|
-
|
|
821
|
+
B,
|
|
820
822
|
{
|
|
821
823
|
level: "body-md",
|
|
822
824
|
sx: {
|
|
@@ -833,8 +835,8 @@ const ke = ({
|
|
|
833
835
|
}
|
|
834
836
|
),
|
|
835
837
|
/* @__PURE__ */ w(m, { children: [
|
|
836
|
-
!f &&
|
|
837
|
-
|
|
838
|
+
!f && F.welcome && /* @__PURE__ */ t(
|
|
839
|
+
B,
|
|
838
840
|
{
|
|
839
841
|
level: "body-md",
|
|
840
842
|
sx: {
|
|
@@ -845,11 +847,11 @@ const ke = ({
|
|
|
845
847
|
textAlign: "center",
|
|
846
848
|
mb: L ? 0 : h.md
|
|
847
849
|
},
|
|
848
|
-
children:
|
|
850
|
+
children: F.welcome
|
|
849
851
|
}
|
|
850
852
|
),
|
|
851
|
-
|
|
852
|
-
|
|
853
|
+
F.instructions && !G && /* @__PURE__ */ t(
|
|
854
|
+
B,
|
|
853
855
|
{
|
|
854
856
|
level: f ? "body-sm" : "body-md",
|
|
855
857
|
sx: {
|
|
@@ -861,7 +863,7 @@ const ke = ({
|
|
|
861
863
|
opacity: 0.7,
|
|
862
864
|
maxWidth: f ? "400px" : "600px"
|
|
863
865
|
},
|
|
864
|
-
children:
|
|
866
|
+
children: F.instructions
|
|
865
867
|
}
|
|
866
868
|
)
|
|
867
869
|
] }),
|
|
@@ -917,7 +919,7 @@ const ke = ({
|
|
|
917
919
|
mt: h.lg,
|
|
918
920
|
mx: "auto",
|
|
919
921
|
display: "grid",
|
|
920
|
-
gridTemplateColumns: I ? `repeat(3, ${N}px)` : `repeat(3, ${
|
|
922
|
+
gridTemplateColumns: I ? `repeat(3, ${N}px)` : `repeat(3, ${D}px)`,
|
|
921
923
|
rowGap: b,
|
|
922
924
|
columnGap: X,
|
|
923
925
|
justifyContent: "center",
|
|
@@ -926,7 +928,7 @@ const ke = ({
|
|
|
926
928
|
perspective: "1200px"
|
|
927
929
|
},
|
|
928
930
|
children: (ee ?? $).map((ae, J) => {
|
|
929
|
-
const be = `card-${J}`, de = v !== null,
|
|
931
|
+
const be = `card-${J}`, de = v !== null, De = Q.has(be), me = ce.has(be), Pe = de && !De && !me, Be = oe.has(be), Ye = de && !Be && !me;
|
|
930
932
|
return /* @__PURE__ */ t(
|
|
931
933
|
m,
|
|
932
934
|
{
|
|
@@ -946,13 +948,13 @@ const ke = ({
|
|
|
946
948
|
index: J,
|
|
947
949
|
selectedSegment: v,
|
|
948
950
|
revealResult: te,
|
|
949
|
-
isCrossfaded:
|
|
951
|
+
isCrossfaded: Be,
|
|
950
952
|
isOtherRevealed: me,
|
|
951
953
|
shouldDim: Ye,
|
|
952
954
|
isRevealed: de,
|
|
953
955
|
hasEntered: V,
|
|
954
956
|
objectSize: N,
|
|
955
|
-
crossfadeDuration:
|
|
957
|
+
crossfadeDuration: Ue,
|
|
956
958
|
isStandard: f,
|
|
957
959
|
primaryColor: r,
|
|
958
960
|
dangerColor: d,
|
|
@@ -964,23 +966,23 @@ const ke = ({
|
|
|
964
966
|
segment: ae,
|
|
965
967
|
index: J,
|
|
966
968
|
selectedSegment: v,
|
|
967
|
-
isFlipped:
|
|
969
|
+
isFlipped: De,
|
|
968
970
|
isOtherRevealed: me,
|
|
969
|
-
shouldDim:
|
|
971
|
+
shouldDim: Pe,
|
|
970
972
|
isRevealed: de,
|
|
971
973
|
showLoseAnimation: q,
|
|
972
974
|
hasEntered: V,
|
|
973
|
-
cardWidth:
|
|
975
|
+
cardWidth: D,
|
|
974
976
|
cardHeight: T,
|
|
975
977
|
flipDuration: Xe,
|
|
976
|
-
loseAnimationDuration:
|
|
978
|
+
loseAnimationDuration: je,
|
|
977
979
|
cardBaseColor: E,
|
|
978
980
|
shimmerColor: M,
|
|
979
981
|
primaryColor: r,
|
|
980
982
|
contentColor: a,
|
|
981
983
|
dangerColor: d,
|
|
982
984
|
borderColor: o,
|
|
983
|
-
brandingLogo:
|
|
985
|
+
brandingLogo: z,
|
|
984
986
|
compactCards: g,
|
|
985
987
|
onPick: () => Re(J, !1)
|
|
986
988
|
}
|
|
@@ -1071,8 +1073,8 @@ const ke = ({
|
|
|
1071
1073
|
boxSizing: "border-box"
|
|
1072
1074
|
},
|
|
1073
1075
|
children: [
|
|
1074
|
-
!Y &&
|
|
1075
|
-
|
|
1076
|
+
!Y && F.welcome && /* @__PURE__ */ t(
|
|
1077
|
+
B,
|
|
1076
1078
|
{
|
|
1077
1079
|
level: "body-md",
|
|
1078
1080
|
sx: {
|
|
@@ -1083,7 +1085,7 @@ const ke = ({
|
|
|
1083
1085
|
textAlign: "center",
|
|
1084
1086
|
px: h.md
|
|
1085
1087
|
},
|
|
1086
|
-
children:
|
|
1088
|
+
children: F.welcome
|
|
1087
1089
|
}
|
|
1088
1090
|
),
|
|
1089
1091
|
/* @__PURE__ */ t(
|
|
@@ -1122,7 +1124,7 @@ const ke = ({
|
|
|
1122
1124
|
position: "relative",
|
|
1123
1125
|
overflow: "hidden"
|
|
1124
1126
|
},
|
|
1125
|
-
children:
|
|
1127
|
+
children: Fe()
|
|
1126
1128
|
}
|
|
1127
1129
|
),
|
|
1128
1130
|
G && (v == null ? void 0 : v.results) && /* @__PURE__ */ t(
|
|
@@ -1138,7 +1140,7 @@ const ke = ({
|
|
|
1138
1140
|
sx: { mb: h.md }
|
|
1139
1141
|
}
|
|
1140
1142
|
),
|
|
1141
|
-
(
|
|
1143
|
+
(z || F.disclaimer) && /* @__PURE__ */ w(
|
|
1142
1144
|
m,
|
|
1143
1145
|
{
|
|
1144
1146
|
sx: {
|
|
@@ -1148,8 +1150,8 @@ const ke = ({
|
|
|
1148
1150
|
gap: h.md
|
|
1149
1151
|
},
|
|
1150
1152
|
children: [
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
+
F.disclaimer && /* @__PURE__ */ t(
|
|
1154
|
+
B,
|
|
1153
1155
|
{
|
|
1154
1156
|
level: "body-sm",
|
|
1155
1157
|
sx: {
|
|
@@ -1162,13 +1164,13 @@ const ke = ({
|
|
|
1162
1164
|
maxWidth: "900px",
|
|
1163
1165
|
lineHeight: 1.4
|
|
1164
1166
|
},
|
|
1165
|
-
children:
|
|
1167
|
+
children: F.disclaimer
|
|
1166
1168
|
}
|
|
1167
1169
|
),
|
|
1168
|
-
|
|
1170
|
+
z && I && /* @__PURE__ */ t(
|
|
1169
1171
|
"img",
|
|
1170
1172
|
{
|
|
1171
|
-
src:
|
|
1173
|
+
src: z,
|
|
1172
1174
|
alt: "Brand Logo",
|
|
1173
1175
|
style: {
|
|
1174
1176
|
height: "auto",
|
|
@@ -1202,7 +1204,7 @@ const ke = ({
|
|
|
1202
1204
|
overflow: "auto",
|
|
1203
1205
|
boxSizing: "border-box"
|
|
1204
1206
|
},
|
|
1205
|
-
children:
|
|
1207
|
+
children: Fe()
|
|
1206
1208
|
}
|
|
1207
1209
|
);
|
|
1208
1210
|
}, kt = ({
|
|
@@ -1212,15 +1214,15 @@ const ke = ({
|
|
|
1212
1214
|
defaultImagePlaceholderUrl: r
|
|
1213
1215
|
}) => {
|
|
1214
1216
|
var i, u, _;
|
|
1215
|
-
const { t: x } = se(), o = K(), c = ie(), d =
|
|
1217
|
+
const { t: x } = se(), o = K(), c = ie(), d = Te() === "dark", n = xe(
|
|
1216
1218
|
{
|
|
1217
1219
|
images: e.images,
|
|
1218
1220
|
imagePlaceholder: r || ""
|
|
1219
1221
|
},
|
|
1220
1222
|
pe.STANDARD
|
|
1221
|
-
), l = (i = e.branding) == null ? void 0 : i.colors,
|
|
1223
|
+
), l = (i = e.branding) == null ? void 0 : i.colors, z = (l == null ? void 0 : l.primary_color) || c.palette.primary.plainColor, O = (l == null ? void 0 : l.border_color) || null, p = (l == null ? void 0 : l.background_color) || c.surfaceVariant || "", S = (u = e.branding) == null ? void 0 : u.images, g = o ? (S == null ? void 0 : S.mobile_logo) || (S == null ? void 0 : S.main_logo) || "" : (S == null ? void 0 : S.main_logo) || "";
|
|
1222
1224
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: O, children: /* @__PURE__ */ t(
|
|
1223
|
-
|
|
1225
|
+
Ie,
|
|
1224
1226
|
{
|
|
1225
1227
|
entity: {
|
|
1226
1228
|
...e,
|
|
@@ -1239,13 +1241,13 @@ const ke = ({
|
|
|
1239
1241
|
infoPage: e,
|
|
1240
1242
|
enableReset: s,
|
|
1241
1243
|
contentColor: (l == null ? void 0 : l.content_color) || c.textPrimary,
|
|
1242
|
-
primaryColor:
|
|
1244
|
+
primaryColor: z,
|
|
1243
1245
|
onPrimaryColor: (l == null ? void 0 : l.content_color) || c.palette.primary.onPrimary || c.surface,
|
|
1244
1246
|
borderColor: O || void 0,
|
|
1245
1247
|
backgroundColor: p,
|
|
1246
1248
|
dangerColor: c.palette.danger.plainColor,
|
|
1247
1249
|
cardBaseColor: p,
|
|
1248
|
-
shimmerColor:
|
|
1250
|
+
shimmerColor: z,
|
|
1249
1251
|
brandingLogo: g,
|
|
1250
1252
|
isDark: d,
|
|
1251
1253
|
showTitleBlock: !1,
|
|
@@ -1303,14 +1305,14 @@ const ke = ({
|
|
|
1303
1305
|
enableReset: s = !1,
|
|
1304
1306
|
defaultImagePlaceholderUrl: a
|
|
1305
1307
|
}) => {
|
|
1306
|
-
var f, L, H, W,
|
|
1307
|
-
const { t: r } = se(), x = K(), o =
|
|
1308
|
+
var f, L, H, W, D, T, N, b, X, R, k, $, F, U, j, P, A, I, v;
|
|
1309
|
+
const { t: r } = se(), x = K(), o = $e(), c = fe(), d = ((f = e.branding) == null ? void 0 : f.colors) || null, n = (L = e.branding) == null ? void 0 : L.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", z = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || xe(
|
|
1308
1310
|
{
|
|
1309
1311
|
images: e.images,
|
|
1310
1312
|
imagePlaceholder: O
|
|
1311
1313
|
},
|
|
1312
1314
|
pe.OVERLAY
|
|
1313
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (
|
|
1315
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (D = (W = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : W.palette) == null ? void 0 : D.primary) == null ? void 0 : T.plainColor), u = (R = (X = (b = (N = o.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : b.palette) == null ? void 0 : X.primary) == null ? void 0 : R.onPrimary, _ = (d == null ? void 0 : d.background_color) || (($ = (k = o.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : $.surfaceVariant), y = (P = (j = (U = (F = o.colorSchemes) == null ? void 0 : F.light) == null ? void 0 : U.palette) == null ? void 0 : j.danger) == null ? void 0 : P.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, M = Le({
|
|
1314
1316
|
spacingScale: c,
|
|
1315
1317
|
mdBorderRadius: C,
|
|
1316
1318
|
contentBgColor: _,
|
|
@@ -1323,7 +1325,7 @@ const ke = ({
|
|
|
1323
1325
|
textColor: g
|
|
1324
1326
|
});
|
|
1325
1327
|
return /* @__PURE__ */ t(
|
|
1326
|
-
|
|
1328
|
+
Ae,
|
|
1327
1329
|
{
|
|
1328
1330
|
entity: {
|
|
1329
1331
|
...e,
|
|
@@ -1347,7 +1349,7 @@ const ke = ({
|
|
|
1347
1349
|
dangerColor: y,
|
|
1348
1350
|
cardBaseColor: _,
|
|
1349
1351
|
shimmerColor: i,
|
|
1350
|
-
brandingLogo:
|
|
1352
|
+
brandingLogo: z,
|
|
1351
1353
|
isDark: !0,
|
|
1352
1354
|
showTitleBlock: !1,
|
|
1353
1355
|
variant: "overlay",
|
|
@@ -1356,7 +1358,7 @@ const ke = ({
|
|
|
1356
1358
|
) })
|
|
1357
1359
|
}
|
|
1358
1360
|
);
|
|
1359
|
-
},
|
|
1361
|
+
}, Ft = (e) => {
|
|
1360
1362
|
const s = we().secondary, a = et(), r = e.isSplitVariant && a, x = K(), o = Je(e.primaryUrl, e.secondaryUrl, "logo");
|
|
1361
1363
|
if (!e.brandingLogo)
|
|
1362
1364
|
return null;
|
|
@@ -1411,7 +1413,7 @@ const ke = ({
|
|
|
1411
1413
|
},
|
|
1412
1414
|
children: [
|
|
1413
1415
|
e.label && /* @__PURE__ */ t(
|
|
1414
|
-
|
|
1416
|
+
B,
|
|
1415
1417
|
{
|
|
1416
1418
|
level: "body-sm",
|
|
1417
1419
|
sx: {
|
|
@@ -1442,7 +1444,7 @@ const ke = ({
|
|
|
1442
1444
|
},
|
|
1443
1445
|
children: [
|
|
1444
1446
|
e.label && /* @__PURE__ */ t(
|
|
1445
|
-
|
|
1447
|
+
B,
|
|
1446
1448
|
{
|
|
1447
1449
|
level: "body-sm",
|
|
1448
1450
|
sx: {
|
|
@@ -1461,19 +1463,19 @@ const ke = ({
|
|
|
1461
1463
|
]
|
|
1462
1464
|
}
|
|
1463
1465
|
);
|
|
1464
|
-
},
|
|
1466
|
+
}, zt = ({
|
|
1465
1467
|
infoPage: e,
|
|
1466
1468
|
enableReset: s = !1,
|
|
1467
1469
|
defaultImagePlaceholderUrl: a
|
|
1468
1470
|
}) => {
|
|
1469
|
-
var L, H, W,
|
|
1470
|
-
const { t: r } = se(), x = K(), o =
|
|
1471
|
+
var L, H, W, D, T, N, b, X, R, k, $, F, U, j, P, A, I, v, ee, te, Y, G, q, V, Q, oe, ce;
|
|
1472
|
+
const { t: r } = se(), x = K(), o = $e(), c = fe(), d = ((L = e.branding) == null ? void 0 : L.colors) || null, n = (H = e.branding) == null ? void 0 : H.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", z = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || xe(
|
|
1471
1473
|
{
|
|
1472
1474
|
images: e.images,
|
|
1473
1475
|
imagePlaceholder: O
|
|
1474
1476
|
},
|
|
1475
1477
|
pe.OVERLAY
|
|
1476
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (
|
|
1478
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (D = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : D.palette) == null ? void 0 : T.primary) == null ? void 0 : N.plainColor), u = (d == null ? void 0 : d.secondary_color) || ((k = (R = (X = (b = o.colorSchemes) == null ? void 0 : b.light) == null ? void 0 : X.palette) == null ? void 0 : R.danger) == null ? void 0 : k.plainColor), _ = (j = (U = (F = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : F.palette) == null ? void 0 : U.primary) == null ? void 0 : j.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (P = o.colorSchemes) == null ? void 0 : P.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (v = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : v.palette) == null ? void 0 : ee.danger) == null ? void 0 : te.plainColor, C = o.customFontFamily.dark.primary, E = o.customRadius.dark.md, M = (G = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : G.xl, f = Le({
|
|
1477
1479
|
spacingScale: c,
|
|
1478
1480
|
mdBorderRadius: E,
|
|
1479
1481
|
contentBgColor: y,
|
|
@@ -1486,7 +1488,7 @@ const ke = ({
|
|
|
1486
1488
|
textColor: g
|
|
1487
1489
|
});
|
|
1488
1490
|
return /* @__PURE__ */ w(
|
|
1489
|
-
|
|
1491
|
+
Ae,
|
|
1490
1492
|
{
|
|
1491
1493
|
entity: {
|
|
1492
1494
|
...e,
|
|
@@ -1509,16 +1511,16 @@ const ke = ({
|
|
|
1509
1511
|
backgroundColor: y,
|
|
1510
1512
|
dangerColor: h,
|
|
1511
1513
|
shimmerColor: i,
|
|
1512
|
-
brandingLogo:
|
|
1514
|
+
brandingLogo: z,
|
|
1513
1515
|
isDark: !0,
|
|
1514
1516
|
showTitleBlock: !1,
|
|
1515
1517
|
variant: "overlay"
|
|
1516
1518
|
}
|
|
1517
1519
|
) }),
|
|
1518
1520
|
/* @__PURE__ */ t(
|
|
1519
|
-
|
|
1521
|
+
Ft,
|
|
1520
1522
|
{
|
|
1521
|
-
brandingLogo:
|
|
1523
|
+
brandingLogo: z,
|
|
1522
1524
|
textColor: S,
|
|
1523
1525
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1524
1526
|
primaryUrl: (Q = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Q.primary_url,
|
|
@@ -1529,7 +1531,7 @@ const ke = ({
|
|
|
1529
1531
|
}
|
|
1530
1532
|
);
|
|
1531
1533
|
}, Wt = (e) => {
|
|
1532
|
-
const { infoPage: s } =
|
|
1534
|
+
const { infoPage: s } = ct(e.entityId, "chance-game", e.sdk), a = () => {
|
|
1533
1535
|
if (s && s.id !== "not-found") {
|
|
1534
1536
|
const o = Object.keys(Ke);
|
|
1535
1537
|
if (s.language && o.includes(s.language))
|
|
@@ -1573,7 +1575,7 @@ const ke = ({
|
|
|
1573
1575
|
defaultImagePlaceholderUrl: o
|
|
1574
1576
|
}
|
|
1575
1577
|
) : /* @__PURE__ */ t(
|
|
1576
|
-
|
|
1578
|
+
zt,
|
|
1577
1579
|
{
|
|
1578
1580
|
infoPage: s,
|
|
1579
1581
|
defaultImagePlaceholderUrl: o
|
|
@@ -1600,7 +1602,7 @@ const ke = ({
|
|
|
1600
1602
|
const n = e.themeOptions, l = {
|
|
1601
1603
|
...n,
|
|
1602
1604
|
mode: e.template === ue.OVERLAY ? "dark" : n == null ? void 0 : n.mode
|
|
1603
|
-
},
|
|
1605
|
+
}, z = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? st(
|
|
1604
1606
|
/* @__PURE__ */ t(nt, { value: d.current, children: /* @__PURE__ */ t(rt, { containerRef: x, children: /* @__PURE__ */ t(
|
|
1605
1607
|
lt,
|
|
1606
1608
|
{
|
|
@@ -1622,10 +1624,10 @@ const ke = ({
|
|
|
1622
1624
|
c.current
|
|
1623
1625
|
) : null;
|
|
1624
1626
|
return /* @__PURE__ */ w(re, { children: [
|
|
1625
|
-
|
|
1627
|
+
z,
|
|
1626
1628
|
O
|
|
1627
1629
|
] });
|
|
1628
|
-
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }),
|
|
1630
|
+
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Nt = Ot;
|
|
1629
1631
|
export {
|
|
1630
|
-
|
|
1632
|
+
Nt as ChanceGame
|
|
1631
1633
|
};
|