fansunited-frontend-components 0.0.40 → 0.0.42
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 +90 -91
- package/ClassicQuizPlay.js +381 -458
- package/CollectLead.js +10 -11
- package/Discussion.js +142 -142
- package/EitherOrPlay.js +2393 -1098
- package/EventGamePlay.js +139 -141
- package/MatchQuizPlay.js +48 -50
- package/PersonalityQuizPlay.js +1428 -1288
- package/PickThePair.js +54 -55
- package/PollVote.js +53 -55
- package/README.md +221 -0
- package/chunks/{AlertMessage-cjTHrMUK.js → AlertMessage-BBIRgWGu.js} +2 -2
- package/chunks/ArrowRightAlt-BuGlVWmA.js +84 -0
- package/chunks/{Avatar-CQCrd1m-.js → Avatar-D5Ca-p3i.js} +2 -2
- package/chunks/{ChanceGameEmbedVariant-DWqOTf4o.js → ChanceGameEmbedVariant-Bp3ii_VS.js} +199 -456
- package/chunks/{CheckCircle-ClY-iOQ5.js → CheckCircle-BN-6n2s4.js} +117 -117
- package/chunks/{CollectLeadForm-0vVnu4DL.js → CollectLeadForm-DbuD6K36.js} +5 -5
- package/chunks/{FavoriteBorder-BHnvGBrn.js → FavoriteBorder-BRZGDJoN.js} +1 -1
- package/chunks/{NotFoundSkeleton-B3RNa8KJ.js → NotFoundSkeleton-BWhIYfwK.js} +480 -331
- package/chunks/{Notification-BTtUhfZQ.js → Notification-BByoWylW.js} +14 -14
- package/chunks/OverlayLeadAfterCollection-BZzelHmI.js +676 -0
- package/chunks/{OverlayScoreStateSkeleton-DJn0Rim3.js → OverlayScoreStateSkeleton-DLuFPA2v.js} +3 -3
- package/chunks/{Person-D0Im9_zE.js → Person-CWp0SazC.js} +1 -1
- package/chunks/{PickOneOfX-DYQ4c1o2.js → PickOneOfX-ClXzFCpd.js} +27 -27
- package/chunks/{Portal-B9wkUnY2.js → Portal-BgtHMXTp.js} +7 -7
- package/chunks/{PrizeCard-gMp7I66d.js → PrizeCard-Daz27Vrl.js} +604 -464
- package/chunks/{Spinner-BBA89t5s.js → Spinner-CsUckp7U.js} +48 -48
- package/chunks/SplitLeadAfterCollection-BGHkV2Q2.js +234 -0
- package/chunks/{Tabs-D_n8rNw3.js → Tabs-ChEhfzcs.js} +49 -49
- package/chunks/{Textarea-BdN2xj4j.js → Textarea-DfHLYaSy.js} +40 -40
- package/chunks/{TimerOutlined-DmKZDDI-.js → TimerOutlined-4HfKsPd2.js} +1 -1
- package/chunks/{chevron-right-DGEksBI7.js → chevron-right-DvgkvJY1.js} +6 -6
- package/chunks/index-B0XVLSad.js +1863 -0
- package/chunks/useImageVariant-PuJUajGW.js +537 -0
- package/chunks/useInfoPage-BHdgKdme.js +50 -0
- package/package.json +1 -1
- package/chunks/ArrowRightAlt-88jKjh6A.js +0 -8
- package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +0 -480
- package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +0 -432
- package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +0 -5
- package/chunks/index-2s5UkG1y.js +0 -1607
- package/chunks/useImageVariant-pnFelF9A.js +0 -535
- package/chunks/useInfoPage-DPkzE5Gn.js +0 -204
package/ChanceGame.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { h as Ce, u as xe, g as Je, l as Ke } from "./chunks/useImageVariant-
|
|
2
|
+
import { h as Ce, u as xe, d as Te, a as $e, g as Je, l as Ke } from "./chunks/useImageVariant-PuJUajGW.js";
|
|
3
3
|
import Z, { useState as qe, useEffect as Qe } from "react";
|
|
4
|
-
import { e as K, S as Ze,
|
|
5
|
-
import { S as at } from "./chunks/Spinner-
|
|
4
|
+
import { e as K, S as Ze, h as ve, j as ie, R as Se, B as m, O as se, aa as ue, g as we, f as fe, T as D, Q as he, ab as Ae, W as pe, u as Ie, ac as et, i as tt, U as ne, c as ot, C as nt, a as rt, E as lt, b as it } from "./chunks/PrizeCard-Daz27Vrl.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-CsUckp7U.js";
|
|
6
6
|
import { createPortal as st } from "react-dom";
|
|
7
|
-
import {
|
|
8
|
-
import { N as dt, S as
|
|
9
|
-
import { u as mt, S as le, c as
|
|
10
|
-
import { d as He, a as Ne } from "./chunks/default-quiz-bg-vertical-CT7rrg9o.js";
|
|
7
|
+
import { u as ct } from "./chunks/useInfoPage-BHdgKdme.js";
|
|
8
|
+
import { N as dt, S as Ee, O as Ge } from "./chunks/NotFoundSkeleton-BWhIYfwK.js";
|
|
9
|
+
import { u as mt, S as le, c as He, D as Ne, 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-ClXzFCpd.js";
|
|
11
10
|
const ke = ({
|
|
12
11
|
children: e,
|
|
13
12
|
brandingBorderColor: s,
|
|
@@ -53,11 +52,11 @@ const ke = ({
|
|
|
53
52
|
dangerColor: d,
|
|
54
53
|
brandingLogo: n,
|
|
55
54
|
isDark: l = !1,
|
|
56
|
-
showTitleBlock:
|
|
55
|
+
showTitleBlock: F = !1,
|
|
57
56
|
variant: O
|
|
58
57
|
}) => {
|
|
59
58
|
var G, q, V;
|
|
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,
|
|
59
|
+
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, B = He(r, l), {
|
|
61
60
|
isSpinning: T,
|
|
62
61
|
finalRotation: N,
|
|
63
62
|
selectedSegment: b,
|
|
@@ -65,7 +64,7 @@ const ke = ({
|
|
|
65
64
|
showResultScreen: R,
|
|
66
65
|
showInlineResult: k,
|
|
67
66
|
hasEntered: $,
|
|
68
|
-
confettiActive:
|
|
67
|
+
confettiActive: z,
|
|
69
68
|
spinDuration: U,
|
|
70
69
|
shakeAnimationDuration: j,
|
|
71
70
|
confettiVelocityMultiplier: P,
|
|
@@ -75,7 +74,7 @@ const ke = ({
|
|
|
75
74
|
onConfettiComplete: ee
|
|
76
75
|
} = mt({ segments: M, mode: L, pace: H }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
|
|
77
76
|
W && /* @__PURE__ */ t(
|
|
78
|
-
|
|
77
|
+
Ne,
|
|
79
78
|
{
|
|
80
79
|
primaryColor: r,
|
|
81
80
|
isDark: l,
|
|
@@ -85,7 +84,7 @@ const ke = ({
|
|
|
85
84
|
/* @__PURE__ */ t(
|
|
86
85
|
ut,
|
|
87
86
|
{
|
|
88
|
-
active:
|
|
87
|
+
active: z,
|
|
89
88
|
primaryColor: r,
|
|
90
89
|
velocityMultiplier: P,
|
|
91
90
|
gravity: A,
|
|
@@ -107,7 +106,7 @@ const ke = ({
|
|
|
107
106
|
}
|
|
108
107
|
),
|
|
109
108
|
!R && /* @__PURE__ */ w(re, { children: [
|
|
110
|
-
|
|
109
|
+
F && (e.title || e.subtitle) && /* @__PURE__ */ w(
|
|
111
110
|
m,
|
|
112
111
|
{
|
|
113
112
|
sx: {
|
|
@@ -122,7 +121,7 @@ const ke = ({
|
|
|
122
121
|
children: [
|
|
123
122
|
e.title && /* @__PURE__ */ w(re, { children: [
|
|
124
123
|
/* @__PURE__ */ t(
|
|
125
|
-
|
|
124
|
+
D,
|
|
126
125
|
{
|
|
127
126
|
level: "h2",
|
|
128
127
|
sx: {
|
|
@@ -132,7 +131,7 @@ const ke = ({
|
|
|
132
131
|
color: a,
|
|
133
132
|
lineHeight: 1.2,
|
|
134
133
|
...W && {
|
|
135
|
-
textShadow: `0 0 20px ${
|
|
134
|
+
textShadow: `0 0 20px ${B("20")}, 0 0 40px ${B("10")}`
|
|
136
135
|
}
|
|
137
136
|
},
|
|
138
137
|
children: e.title
|
|
@@ -154,7 +153,7 @@ const ke = ({
|
|
|
154
153
|
sx: {
|
|
155
154
|
width: p ? "40px" : "60px",
|
|
156
155
|
height: "1px",
|
|
157
|
-
background: `linear-gradient(90deg, transparent, ${
|
|
156
|
+
background: `linear-gradient(90deg, transparent, ${B("40")})`
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
159
|
),
|
|
@@ -165,7 +164,7 @@ const ke = ({
|
|
|
165
164
|
width: "6px",
|
|
166
165
|
height: "6px",
|
|
167
166
|
transform: "rotate(45deg)",
|
|
168
|
-
background:
|
|
167
|
+
background: B("50")
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
),
|
|
@@ -175,7 +174,7 @@ const ke = ({
|
|
|
175
174
|
sx: {
|
|
176
175
|
width: p ? "40px" : "60px",
|
|
177
176
|
height: "1px",
|
|
178
|
-
background: `linear-gradient(90deg, ${
|
|
177
|
+
background: `linear-gradient(90deg, ${B("40")}, transparent)`
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
180
|
)
|
|
@@ -184,7 +183,7 @@ const ke = ({
|
|
|
184
183
|
)
|
|
185
184
|
] }),
|
|
186
185
|
e.subtitle && /* @__PURE__ */ t(
|
|
187
|
-
|
|
186
|
+
D,
|
|
188
187
|
{
|
|
189
188
|
level: "body-md",
|
|
190
189
|
sx: {
|
|
@@ -202,7 +201,7 @@ const ke = ({
|
|
|
202
201
|
),
|
|
203
202
|
/* @__PURE__ */ w(m, { children: [
|
|
204
203
|
!y && f.welcome && /* @__PURE__ */ t(
|
|
205
|
-
|
|
204
|
+
D,
|
|
206
205
|
{
|
|
207
206
|
level: "body-md",
|
|
208
207
|
sx: {
|
|
@@ -218,7 +217,7 @@ const ke = ({
|
|
|
218
217
|
}
|
|
219
218
|
),
|
|
220
219
|
(y || h) && !k && f.instructions && /* @__PURE__ */ t(
|
|
221
|
-
|
|
220
|
+
D,
|
|
222
221
|
{
|
|
223
222
|
level: y ? "body-sm" : "body-md",
|
|
224
223
|
sx: {
|
|
@@ -248,7 +247,7 @@ const ke = ({
|
|
|
248
247
|
display: "flex",
|
|
249
248
|
alignItems: "center",
|
|
250
249
|
justifyContent: "center",
|
|
251
|
-
cursor: T ||
|
|
250
|
+
cursor: T || z || k || !R && !k && b !== null ? "default" : "pointer",
|
|
252
251
|
userSelect: "none",
|
|
253
252
|
zIndex: 1,
|
|
254
253
|
// Entrance animation
|
|
@@ -264,7 +263,7 @@ const ke = ({
|
|
|
264
263
|
},
|
|
265
264
|
// Wheel glow effect (decorations only)
|
|
266
265
|
...W && {
|
|
267
|
-
filter: `drop-shadow(0 0 ${p ? "15px" : "25px"} ${
|
|
266
|
+
filter: `drop-shadow(0 0 ${p ? "15px" : "25px"} ${B("20")}) drop-shadow(0 0 ${p ? "40px" : "60px"} ${B("10")})`
|
|
268
267
|
}
|
|
269
268
|
},
|
|
270
269
|
children: [
|
|
@@ -323,7 +322,7 @@ const ke = ({
|
|
|
323
322
|
}
|
|
324
323
|
),
|
|
325
324
|
!y && !h && !k && f.instructions && /* @__PURE__ */ t(
|
|
326
|
-
|
|
325
|
+
D,
|
|
327
326
|
{
|
|
328
327
|
level: "body-sm",
|
|
329
328
|
sx: {
|
|
@@ -358,7 +357,7 @@ const ke = ({
|
|
|
358
357
|
he,
|
|
359
358
|
{
|
|
360
359
|
variant: "soft",
|
|
361
|
-
disabled: T ||
|
|
360
|
+
disabled: T || z || !R && !k && b !== null,
|
|
362
361
|
onClick: I,
|
|
363
362
|
sx: {
|
|
364
363
|
borderRadius: g.xl,
|
|
@@ -468,7 +467,7 @@ const ke = ({
|
|
|
468
467
|
},
|
|
469
468
|
children: [
|
|
470
469
|
!R && f.welcome && /* @__PURE__ */ t(
|
|
471
|
-
|
|
470
|
+
D,
|
|
472
471
|
{
|
|
473
472
|
level: "body-md",
|
|
474
473
|
sx: {
|
|
@@ -518,7 +517,7 @@ const ke = ({
|
|
|
518
517
|
position: "relative",
|
|
519
518
|
overflow: "hidden",
|
|
520
519
|
...W && {
|
|
521
|
-
border: `${_.size} solid ${
|
|
520
|
+
border: `${_.size} solid ${B("15")}`
|
|
522
521
|
}
|
|
523
522
|
},
|
|
524
523
|
children: Y()
|
|
@@ -548,7 +547,7 @@ const ke = ({
|
|
|
548
547
|
},
|
|
549
548
|
children: [
|
|
550
549
|
f.disclaimer && /* @__PURE__ */ t(
|
|
551
|
-
|
|
550
|
+
D,
|
|
552
551
|
{
|
|
553
552
|
level: "body-sm",
|
|
554
553
|
sx: {
|
|
@@ -614,7 +613,7 @@ const ke = ({
|
|
|
614
613
|
gap: u.md
|
|
615
614
|
},
|
|
616
615
|
children: /* @__PURE__ */ t(
|
|
617
|
-
|
|
616
|
+
D,
|
|
618
617
|
{
|
|
619
618
|
level: "body-sm",
|
|
620
619
|
sx: {
|
|
@@ -642,15 +641,15 @@ const ke = ({
|
|
|
642
641
|
defaultImagePlaceholderUrl: r
|
|
643
642
|
}) => {
|
|
644
643
|
var u, _;
|
|
645
|
-
const { t: x } = se(), o = K(), c = ie(), d =
|
|
644
|
+
const { t: x } = se(), o = K(), c = ie(), d = Ae() === "dark", n = xe(
|
|
646
645
|
{
|
|
647
646
|
images: e.images,
|
|
648
647
|
imagePlaceholder: r || ""
|
|
649
648
|
},
|
|
650
649
|
pe.STANDARD
|
|
651
|
-
), l = (u = e.branding) == null ? void 0 : u.colors,
|
|
650
|
+
), l = (u = e.branding) == null ? void 0 : u.colors, F = (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) || "";
|
|
652
651
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: p, children: /* @__PURE__ */ t(
|
|
653
|
-
|
|
652
|
+
Ee,
|
|
654
653
|
{
|
|
655
654
|
entity: {
|
|
656
655
|
...e,
|
|
@@ -667,13 +666,13 @@ const ke = ({
|
|
|
667
666
|
infoPage: e,
|
|
668
667
|
enableReset: s,
|
|
669
668
|
contentColor: (l == null ? void 0 : l.content_color) || c.textColor,
|
|
670
|
-
primaryColor:
|
|
669
|
+
primaryColor: F,
|
|
671
670
|
secondaryColor: O,
|
|
672
671
|
onPrimaryColor: c.palette.primary.onPrimary,
|
|
673
672
|
borderColor: p || void 0,
|
|
674
673
|
backgroundColor: S,
|
|
675
674
|
dangerColor: c.palette.danger.plainColor,
|
|
676
|
-
shimmerColor:
|
|
675
|
+
shimmerColor: F,
|
|
677
676
|
brandingLogo: i,
|
|
678
677
|
isDark: d,
|
|
679
678
|
showTitleBlock: !1,
|
|
@@ -693,14 +692,14 @@ const ke = ({
|
|
|
693
692
|
dangerColor: d,
|
|
694
693
|
cardBaseColor: n,
|
|
695
694
|
shimmerColor: l,
|
|
696
|
-
brandingLogo:
|
|
695
|
+
brandingLogo: F = "",
|
|
697
696
|
isDark: O = !1,
|
|
698
697
|
showTitleBlock: p = !1,
|
|
699
698
|
variant: S,
|
|
700
699
|
compactCards: g = !1
|
|
701
700
|
}) => {
|
|
702
|
-
var
|
|
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, "") : "",
|
|
701
|
+
var Fe, We, _e, Oe;
|
|
702
|
+
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, "") : "", B = 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 = He(r, O), k = JSON.parse(e.body), $ = k.segments || [], z = e.labels || {}, U = k.mode || ((Fe = k.config) == null ? void 0 : Fe.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) => {
|
|
704
703
|
var J;
|
|
705
704
|
return (J = ae.images) == null ? void 0 : J.idle;
|
|
706
705
|
}), {
|
|
@@ -719,9 +718,9 @@ const ke = ({
|
|
|
719
718
|
loseAnimationDuration: je,
|
|
720
719
|
handlePick: Re,
|
|
721
720
|
handleReset: ge
|
|
722
|
-
} = pt({ segments: $, mode: U, pace: j, revealAll: P }),
|
|
721
|
+
} = pt({ segments: $, mode: U, pace: j, revealAll: P }), ze = () => /* @__PURE__ */ w(re, { children: [
|
|
723
722
|
A && /* @__PURE__ */ t(
|
|
724
|
-
|
|
723
|
+
Ne,
|
|
725
724
|
{
|
|
726
725
|
primaryColor: r,
|
|
727
726
|
isDark: O,
|
|
@@ -738,7 +737,7 @@ const ke = ({
|
|
|
738
737
|
primaryColor: r,
|
|
739
738
|
onPrimaryColor: x,
|
|
740
739
|
borderColor: o,
|
|
741
|
-
disclaimer: f ? void 0 :
|
|
740
|
+
disclaimer: f ? void 0 : z.disclaimer,
|
|
742
741
|
enableReset: s,
|
|
743
742
|
onReset: ge
|
|
744
743
|
}
|
|
@@ -757,7 +756,7 @@ const ke = ({
|
|
|
757
756
|
},
|
|
758
757
|
children: [
|
|
759
758
|
e.title && /* @__PURE__ */ t(
|
|
760
|
-
|
|
759
|
+
D,
|
|
761
760
|
{
|
|
762
761
|
level: "h2",
|
|
763
762
|
sx: {
|
|
@@ -818,7 +817,7 @@ const ke = ({
|
|
|
818
817
|
}
|
|
819
818
|
),
|
|
820
819
|
e.subtitle && /* @__PURE__ */ t(
|
|
821
|
-
|
|
820
|
+
D,
|
|
822
821
|
{
|
|
823
822
|
level: "body-md",
|
|
824
823
|
sx: {
|
|
@@ -835,8 +834,8 @@ const ke = ({
|
|
|
835
834
|
}
|
|
836
835
|
),
|
|
837
836
|
/* @__PURE__ */ w(m, { children: [
|
|
838
|
-
!f &&
|
|
839
|
-
|
|
837
|
+
!f && z.welcome && /* @__PURE__ */ t(
|
|
838
|
+
D,
|
|
840
839
|
{
|
|
841
840
|
level: "body-md",
|
|
842
841
|
sx: {
|
|
@@ -847,11 +846,11 @@ const ke = ({
|
|
|
847
846
|
textAlign: "center",
|
|
848
847
|
mb: L ? 0 : h.md
|
|
849
848
|
},
|
|
850
|
-
children:
|
|
849
|
+
children: z.welcome
|
|
851
850
|
}
|
|
852
851
|
),
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
z.instructions && !G && /* @__PURE__ */ t(
|
|
853
|
+
D,
|
|
855
854
|
{
|
|
856
855
|
level: f ? "body-sm" : "body-md",
|
|
857
856
|
sx: {
|
|
@@ -863,7 +862,7 @@ const ke = ({
|
|
|
863
862
|
opacity: 0.7,
|
|
864
863
|
maxWidth: f ? "400px" : "600px"
|
|
865
864
|
},
|
|
866
|
-
children:
|
|
865
|
+
children: z.instructions
|
|
867
866
|
}
|
|
868
867
|
)
|
|
869
868
|
] }),
|
|
@@ -919,7 +918,7 @@ const ke = ({
|
|
|
919
918
|
mt: h.lg,
|
|
920
919
|
mx: "auto",
|
|
921
920
|
display: "grid",
|
|
922
|
-
gridTemplateColumns: I ? `repeat(3, ${N}px)` : `repeat(3, ${
|
|
921
|
+
gridTemplateColumns: I ? `repeat(3, ${N}px)` : `repeat(3, ${B}px)`,
|
|
923
922
|
rowGap: b,
|
|
924
923
|
columnGap: X,
|
|
925
924
|
justifyContent: "center",
|
|
@@ -928,7 +927,7 @@ const ke = ({
|
|
|
928
927
|
perspective: "1200px"
|
|
929
928
|
},
|
|
930
929
|
children: (ee ?? $).map((ae, J) => {
|
|
931
|
-
const be = `card-${J}`, de = v !== null,
|
|
930
|
+
const be = `card-${J}`, de = v !== null, Be = Q.has(be), me = ce.has(be), Pe = de && !Be && !me, De = oe.has(be), Ye = de && !De && !me;
|
|
932
931
|
return /* @__PURE__ */ t(
|
|
933
932
|
m,
|
|
934
933
|
{
|
|
@@ -948,7 +947,7 @@ const ke = ({
|
|
|
948
947
|
index: J,
|
|
949
948
|
selectedSegment: v,
|
|
950
949
|
revealResult: te,
|
|
951
|
-
isCrossfaded:
|
|
950
|
+
isCrossfaded: De,
|
|
952
951
|
isOtherRevealed: me,
|
|
953
952
|
shouldDim: Ye,
|
|
954
953
|
isRevealed: de,
|
|
@@ -966,13 +965,13 @@ const ke = ({
|
|
|
966
965
|
segment: ae,
|
|
967
966
|
index: J,
|
|
968
967
|
selectedSegment: v,
|
|
969
|
-
isFlipped:
|
|
968
|
+
isFlipped: Be,
|
|
970
969
|
isOtherRevealed: me,
|
|
971
970
|
shouldDim: Pe,
|
|
972
971
|
isRevealed: de,
|
|
973
972
|
showLoseAnimation: q,
|
|
974
973
|
hasEntered: V,
|
|
975
|
-
cardWidth:
|
|
974
|
+
cardWidth: B,
|
|
976
975
|
cardHeight: T,
|
|
977
976
|
flipDuration: Xe,
|
|
978
977
|
loseAnimationDuration: je,
|
|
@@ -982,7 +981,7 @@ const ke = ({
|
|
|
982
981
|
contentColor: a,
|
|
983
982
|
dangerColor: d,
|
|
984
983
|
borderColor: o,
|
|
985
|
-
brandingLogo:
|
|
984
|
+
brandingLogo: F,
|
|
986
985
|
compactCards: g,
|
|
987
986
|
onPick: () => Re(J, !1)
|
|
988
987
|
}
|
|
@@ -1073,8 +1072,8 @@ const ke = ({
|
|
|
1073
1072
|
boxSizing: "border-box"
|
|
1074
1073
|
},
|
|
1075
1074
|
children: [
|
|
1076
|
-
!Y &&
|
|
1077
|
-
|
|
1075
|
+
!Y && z.welcome && /* @__PURE__ */ t(
|
|
1076
|
+
D,
|
|
1078
1077
|
{
|
|
1079
1078
|
level: "body-md",
|
|
1080
1079
|
sx: {
|
|
@@ -1085,7 +1084,7 @@ const ke = ({
|
|
|
1085
1084
|
textAlign: "center",
|
|
1086
1085
|
px: h.md
|
|
1087
1086
|
},
|
|
1088
|
-
children:
|
|
1087
|
+
children: z.welcome
|
|
1089
1088
|
}
|
|
1090
1089
|
),
|
|
1091
1090
|
/* @__PURE__ */ t(
|
|
@@ -1124,7 +1123,7 @@ const ke = ({
|
|
|
1124
1123
|
position: "relative",
|
|
1125
1124
|
overflow: "hidden"
|
|
1126
1125
|
},
|
|
1127
|
-
children:
|
|
1126
|
+
children: ze()
|
|
1128
1127
|
}
|
|
1129
1128
|
),
|
|
1130
1129
|
G && (v == null ? void 0 : v.results) && /* @__PURE__ */ t(
|
|
@@ -1140,7 +1139,7 @@ const ke = ({
|
|
|
1140
1139
|
sx: { mb: h.md }
|
|
1141
1140
|
}
|
|
1142
1141
|
),
|
|
1143
|
-
(
|
|
1142
|
+
(F || z.disclaimer) && /* @__PURE__ */ w(
|
|
1144
1143
|
m,
|
|
1145
1144
|
{
|
|
1146
1145
|
sx: {
|
|
@@ -1150,8 +1149,8 @@ const ke = ({
|
|
|
1150
1149
|
gap: h.md
|
|
1151
1150
|
},
|
|
1152
1151
|
children: [
|
|
1153
|
-
|
|
1154
|
-
|
|
1152
|
+
z.disclaimer && /* @__PURE__ */ t(
|
|
1153
|
+
D,
|
|
1155
1154
|
{
|
|
1156
1155
|
level: "body-sm",
|
|
1157
1156
|
sx: {
|
|
@@ -1164,13 +1163,13 @@ const ke = ({
|
|
|
1164
1163
|
maxWidth: "900px",
|
|
1165
1164
|
lineHeight: 1.4
|
|
1166
1165
|
},
|
|
1167
|
-
children:
|
|
1166
|
+
children: z.disclaimer
|
|
1168
1167
|
}
|
|
1169
1168
|
),
|
|
1170
|
-
|
|
1169
|
+
F && I && /* @__PURE__ */ t(
|
|
1171
1170
|
"img",
|
|
1172
1171
|
{
|
|
1173
|
-
src:
|
|
1172
|
+
src: F,
|
|
1174
1173
|
alt: "Brand Logo",
|
|
1175
1174
|
style: {
|
|
1176
1175
|
height: "auto",
|
|
@@ -1204,7 +1203,7 @@ const ke = ({
|
|
|
1204
1203
|
overflow: "auto",
|
|
1205
1204
|
boxSizing: "border-box"
|
|
1206
1205
|
},
|
|
1207
|
-
children:
|
|
1206
|
+
children: ze()
|
|
1208
1207
|
}
|
|
1209
1208
|
);
|
|
1210
1209
|
}, kt = ({
|
|
@@ -1214,15 +1213,15 @@ const ke = ({
|
|
|
1214
1213
|
defaultImagePlaceholderUrl: r
|
|
1215
1214
|
}) => {
|
|
1216
1215
|
var i, u, _;
|
|
1217
|
-
const { t: x } = se(), o = K(), c = ie(), d =
|
|
1216
|
+
const { t: x } = se(), o = K(), c = ie(), d = Ae() === "dark", n = xe(
|
|
1218
1217
|
{
|
|
1219
1218
|
images: e.images,
|
|
1220
1219
|
imagePlaceholder: r || ""
|
|
1221
1220
|
},
|
|
1222
1221
|
pe.STANDARD
|
|
1223
|
-
), l = (i = e.branding) == null ? void 0 : i.colors,
|
|
1222
|
+
), l = (i = e.branding) == null ? void 0 : i.colors, F = (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) || "";
|
|
1224
1223
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: O, children: /* @__PURE__ */ t(
|
|
1225
|
-
|
|
1224
|
+
Ee,
|
|
1226
1225
|
{
|
|
1227
1226
|
entity: {
|
|
1228
1227
|
...e,
|
|
@@ -1241,13 +1240,13 @@ const ke = ({
|
|
|
1241
1240
|
infoPage: e,
|
|
1242
1241
|
enableReset: s,
|
|
1243
1242
|
contentColor: (l == null ? void 0 : l.content_color) || c.textPrimary,
|
|
1244
|
-
primaryColor:
|
|
1243
|
+
primaryColor: F,
|
|
1245
1244
|
onPrimaryColor: (l == null ? void 0 : l.content_color) || c.palette.primary.onPrimary || c.surface,
|
|
1246
1245
|
borderColor: O || void 0,
|
|
1247
1246
|
backgroundColor: p,
|
|
1248
1247
|
dangerColor: c.palette.danger.plainColor,
|
|
1249
1248
|
cardBaseColor: p,
|
|
1250
|
-
shimmerColor:
|
|
1249
|
+
shimmerColor: F,
|
|
1251
1250
|
brandingLogo: g,
|
|
1252
1251
|
isDark: d,
|
|
1253
1252
|
showTitleBlock: !1,
|
|
@@ -1305,14 +1304,14 @@ const ke = ({
|
|
|
1305
1304
|
enableReset: s = !1,
|
|
1306
1305
|
defaultImagePlaceholderUrl: a
|
|
1307
1306
|
}) => {
|
|
1308
|
-
var f, L, H, W,
|
|
1309
|
-
const { t: r } = se(), x = K(), o =
|
|
1307
|
+
var f, L, H, W, B, T, N, b, X, R, k, $, z, U, j, P, A, I, v;
|
|
1308
|
+
const { t: r } = se(), x = K(), o = Ie(), 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) || "", F = 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 ? Te : $e), p = l || xe(
|
|
1310
1309
|
{
|
|
1311
1310
|
images: e.images,
|
|
1312
1311
|
imagePlaceholder: O
|
|
1313
1312
|
},
|
|
1314
1313
|
pe.OVERLAY
|
|
1315
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (
|
|
1314
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (B = (W = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : W.palette) == null ? void 0 : B.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 = (z = o.colorSchemes) == null ? void 0 : z.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({
|
|
1316
1315
|
spacingScale: c,
|
|
1317
1316
|
mdBorderRadius: C,
|
|
1318
1317
|
contentBgColor: _,
|
|
@@ -1325,7 +1324,7 @@ const ke = ({
|
|
|
1325
1324
|
textColor: g
|
|
1326
1325
|
});
|
|
1327
1326
|
return /* @__PURE__ */ t(
|
|
1328
|
-
|
|
1327
|
+
Ge,
|
|
1329
1328
|
{
|
|
1330
1329
|
entity: {
|
|
1331
1330
|
...e,
|
|
@@ -1349,7 +1348,7 @@ const ke = ({
|
|
|
1349
1348
|
dangerColor: y,
|
|
1350
1349
|
cardBaseColor: _,
|
|
1351
1350
|
shimmerColor: i,
|
|
1352
|
-
brandingLogo:
|
|
1351
|
+
brandingLogo: F,
|
|
1353
1352
|
isDark: !0,
|
|
1354
1353
|
showTitleBlock: !1,
|
|
1355
1354
|
variant: "overlay",
|
|
@@ -1358,7 +1357,7 @@ const ke = ({
|
|
|
1358
1357
|
) })
|
|
1359
1358
|
}
|
|
1360
1359
|
);
|
|
1361
|
-
},
|
|
1360
|
+
}, zt = (e) => {
|
|
1362
1361
|
const s = we().secondary, a = et(), r = e.isSplitVariant && a, x = K(), o = Je(e.primaryUrl, e.secondaryUrl, "logo");
|
|
1363
1362
|
if (!e.brandingLogo)
|
|
1364
1363
|
return null;
|
|
@@ -1413,7 +1412,7 @@ const ke = ({
|
|
|
1413
1412
|
},
|
|
1414
1413
|
children: [
|
|
1415
1414
|
e.label && /* @__PURE__ */ t(
|
|
1416
|
-
|
|
1415
|
+
D,
|
|
1417
1416
|
{
|
|
1418
1417
|
level: "body-sm",
|
|
1419
1418
|
sx: {
|
|
@@ -1444,7 +1443,7 @@ const ke = ({
|
|
|
1444
1443
|
},
|
|
1445
1444
|
children: [
|
|
1446
1445
|
e.label && /* @__PURE__ */ t(
|
|
1447
|
-
|
|
1446
|
+
D,
|
|
1448
1447
|
{
|
|
1449
1448
|
level: "body-sm",
|
|
1450
1449
|
sx: {
|
|
@@ -1463,19 +1462,19 @@ const ke = ({
|
|
|
1463
1462
|
]
|
|
1464
1463
|
}
|
|
1465
1464
|
);
|
|
1466
|
-
},
|
|
1465
|
+
}, Ft = ({
|
|
1467
1466
|
infoPage: e,
|
|
1468
1467
|
enableReset: s = !1,
|
|
1469
1468
|
defaultImagePlaceholderUrl: a
|
|
1470
1469
|
}) => {
|
|
1471
|
-
var L, H, W,
|
|
1472
|
-
const { t: r } = se(), x = K(), o =
|
|
1470
|
+
var L, H, W, B, T, N, b, X, R, k, $, z, U, j, P, A, I, v, ee, te, Y, G, q, V, Q, oe, ce;
|
|
1471
|
+
const { t: r } = se(), x = K(), o = Ie(), 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) || "", F = 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 ? Te : $e), p = l || xe(
|
|
1473
1472
|
{
|
|
1474
1473
|
images: e.images,
|
|
1475
1474
|
imagePlaceholder: O
|
|
1476
1475
|
},
|
|
1477
1476
|
pe.OVERLAY
|
|
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 = (
|
|
1477
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (B = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : B.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 = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.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({
|
|
1479
1478
|
spacingScale: c,
|
|
1480
1479
|
mdBorderRadius: E,
|
|
1481
1480
|
contentBgColor: y,
|
|
@@ -1488,7 +1487,7 @@ const ke = ({
|
|
|
1488
1487
|
textColor: g
|
|
1489
1488
|
});
|
|
1490
1489
|
return /* @__PURE__ */ w(
|
|
1491
|
-
|
|
1490
|
+
Ge,
|
|
1492
1491
|
{
|
|
1493
1492
|
entity: {
|
|
1494
1493
|
...e,
|
|
@@ -1511,16 +1510,16 @@ const ke = ({
|
|
|
1511
1510
|
backgroundColor: y,
|
|
1512
1511
|
dangerColor: h,
|
|
1513
1512
|
shimmerColor: i,
|
|
1514
|
-
brandingLogo:
|
|
1513
|
+
brandingLogo: F,
|
|
1515
1514
|
isDark: !0,
|
|
1516
1515
|
showTitleBlock: !1,
|
|
1517
1516
|
variant: "overlay"
|
|
1518
1517
|
}
|
|
1519
1518
|
) }),
|
|
1520
1519
|
/* @__PURE__ */ t(
|
|
1521
|
-
|
|
1520
|
+
zt,
|
|
1522
1521
|
{
|
|
1523
|
-
brandingLogo:
|
|
1522
|
+
brandingLogo: F,
|
|
1524
1523
|
textColor: S,
|
|
1525
1524
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1526
1525
|
primaryUrl: (Q = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Q.primary_url,
|
|
@@ -1575,7 +1574,7 @@ const ke = ({
|
|
|
1575
1574
|
defaultImagePlaceholderUrl: o
|
|
1576
1575
|
}
|
|
1577
1576
|
) : /* @__PURE__ */ t(
|
|
1578
|
-
|
|
1577
|
+
Ft,
|
|
1579
1578
|
{
|
|
1580
1579
|
infoPage: s,
|
|
1581
1580
|
defaultImagePlaceholderUrl: o
|
|
@@ -1602,7 +1601,7 @@ const ke = ({
|
|
|
1602
1601
|
const n = e.themeOptions, l = {
|
|
1603
1602
|
...n,
|
|
1604
1603
|
mode: e.template === ue.OVERLAY ? "dark" : n == null ? void 0 : n.mode
|
|
1605
|
-
},
|
|
1604
|
+
}, F = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? st(
|
|
1606
1605
|
/* @__PURE__ */ t(nt, { value: d.current, children: /* @__PURE__ */ t(rt, { containerRef: x, children: /* @__PURE__ */ t(
|
|
1607
1606
|
lt,
|
|
1608
1607
|
{
|
|
@@ -1624,10 +1623,10 @@ const ke = ({
|
|
|
1624
1623
|
c.current
|
|
1625
1624
|
) : null;
|
|
1626
1625
|
return /* @__PURE__ */ w(re, { children: [
|
|
1627
|
-
|
|
1626
|
+
F,
|
|
1628
1627
|
O
|
|
1629
1628
|
] });
|
|
1630
|
-
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }),
|
|
1629
|
+
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Ht = Ot;
|
|
1631
1630
|
export {
|
|
1632
|
-
|
|
1631
|
+
Ht as ChanceGame
|
|
1633
1632
|
};
|