fansunited-frontend-components 0.0.68 → 0.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Betslip.js +1 -1
- package/ChanceGame.js +66 -66
- package/ClassicQuizPlay.js +20 -20
- package/CollectLead.js +6 -6
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +77 -77
- package/EventCard.js +4439 -0
- package/EventGamePlay.js +29 -27
- package/Leaderboard.js +95 -95
- package/MatchQuizPlay.js +208 -207
- package/PersonalityQuizPlay.js +19 -19
- package/PickThePair.js +9 -9
- package/PlayerOfTheMatch.js +20 -20
- package/PollVote.js +17 -17
- package/Predictor.js +8192 -6359
- package/README.md +113 -1
- package/Standings.js +231 -251
- package/TopX.js +70 -68
- package/chunks/{AccessTime-D7JlgCS_.js → AccessTime-7cim24ED.js} +3 -3
- package/chunks/{AlertMessage-D-cFYJtj.js → AlertMessage-X4MQ4qsN.js} +14 -14
- package/chunks/{ArrowRightAlt-BWEyQ4rF.js → ArrowRightAlt-DrBMgptf.js} +10 -10
- package/chunks/{Avatar-BtqTJz-0.js → Avatar-RBMU1Gkk.js} +20 -20
- package/chunks/{Button-BPtVuOyn.js → Button-GawVOPKi.js} +59 -76
- package/chunks/Card--xcz3SKi.js +195 -0
- package/chunks/{CardActions-jWCcpjQr.js → CardActions-CPwvcLGp.js} +19 -19
- package/chunks/{CardContent-D776lu64.js → CardContent-Ew6fr-KR.js} +7 -7
- package/chunks/{ChanceGameEmbedVariant-CJJnKkOG.js → ChanceGameEmbedVariant-Dio4ihOd.js} +9 -9
- package/chunks/CheckCircle-DgKcR_no.js +8 -0
- package/chunks/{Chip-isuqGl2h.js → Chip-CYpaygnD.js} +65 -64
- package/chunks/{Close-BDwyGxjj.js → Close-CdJNGcLx.js} +1 -1
- package/chunks/{Close-DGsfMhw8.js → Close-D2mtuGDo.js} +1 -1
- package/chunks/{CollectLeadForm-B1FGVWj4.js → CollectLeadForm-D0P_JHmT.js} +46 -44
- package/chunks/{Divider-RJTJH6No.js → Divider-DcW0V71y.js} +7 -7
- package/chunks/{Edit-CqpNynUG.js → Edit-Bcj6J4rt.js} +38 -44
- package/chunks/EditOutlined-PCc4gafz.js +11 -0
- package/chunks/{EmojiEvents-CxftZVbi.js → EmojiEvents-g001ss_z.js} +1 -1
- package/chunks/{FavoriteBorder-_0szWv8_.js → FavoriteBorder-Lr6swB6-.js} +1 -1
- package/chunks/{FormControl-CvjmoRuK.js → FormControl-BKlK7WPd.js} +24 -24
- package/chunks/{CheckCircle-DKzwnhnr.js → FormControlContext-B2HqeXgq.js} +44 -48
- package/chunks/{FormLabel-B6QTd99o.js → FormLabel-C47pX5hN.js} +8 -8
- package/chunks/InlineSpinner-Imz27zb2.js +28 -0
- package/chunks/{Input-BD1363mh.js → Input-nS_KO1Bu.js} +7 -7
- package/chunks/{KeyboardArrowDown-Bip53hQC.js → KeyboardArrowDown-CyZAOE-W.js} +3 -3
- package/chunks/KeyboardArrowRight-FI0kqwO1.js +11 -0
- package/chunks/{Link-B5vthpLg.js → Link-DKU7kDL8.js} +24 -24
- package/chunks/{ListItemButton-Dosv66vv.js → ListItemButton-CPVIEVpf.js} +33 -32
- package/chunks/{ModalDialog-Dn3_dWTo.js → ModalDialog-DDx8wQa3.js} +57 -56
- package/chunks/NotFoundSkeleton-CJZIRj5-.js +1244 -0
- package/chunks/{Notification-D20IfSF7.js → Notification-BvVfrrB3.js} +55 -61
- package/chunks/{OverlayApiErrorSkeleton-BdzLPy8g.js → OverlayApiErrorSkeleton-JMWA0FV8.js} +16 -16
- package/chunks/{OverlayLeadAfterCollection-C-rM0D5V.js → OverlayLeadAfterCollection-BwF9MvIB.js} +10 -10
- package/chunks/{OverlayScoreStateSkeleton-ChdCokGv.js → OverlayScoreStateSkeleton-CAhCAjkS.js} +10 -10
- package/chunks/{Person-OeVVOCoA.js → Person-DB_bEPcg.js} +1 -1
- package/chunks/PersonOutline-BAOtfb1t.js +8 -0
- package/chunks/{PickOneOfX-wiZPfKD5.js → PickOneOfX-Dp6fzXJn.js} +3 -3
- package/chunks/{Popper-DST5zEgT.js → Popper-Bpy7eYt-.js} +20 -20
- package/chunks/{Portal-DJylIbob.js → Portal-Dvh4m8kk.js} +4 -4
- package/chunks/{Portal-CVkKDGuY.js → Portal-bNE7Trh9.js} +8 -8
- package/chunks/{PrizeCard-DlK8irk1.js → PrizeCard-CXjFADAN.js} +279 -41
- package/chunks/{Search-B4FMXDHP.js → Search-uVJw-NhK.js} +1 -1
- package/chunks/{Select-DOCvesLO.js → Select-BeixD4Vw.js} +100 -99
- package/chunks/{Sheet-Co4lPFez.js → Sheet-vOgATocO.js} +15 -15
- package/chunks/{Spinner-00hTC1QH.js → Spinner-C219bcnm.js} +2 -2
- package/chunks/{SplitLeadAfterCollection-BUX0MjWC.js → SplitLeadAfterCollection-BijLacCk.js} +6 -6
- package/chunks/{Stack-CB_N08X-.js → Stack-JIDLCVx0.js} +18 -18
- package/chunks/{StandardContentSkeleton-0vB361fl.js → StandardContentSkeleton-DsGBNMHN.js} +1 -1
- package/chunks/{Table-Damdp0vr.js → Table-Cx7htUDp.js} +5 -5
- package/chunks/{Tabs-CiKqMnto.js → Tabs-CIJK8YZY.js} +23 -22
- package/chunks/{Textarea-BuSqmmKr.js → Textarea-KSwIUuq8.js} +37 -37
- package/chunks/{TimerOutlined-DC5foG2M.js → TimerOutlined-BUL4BZFp.js} +3 -3
- package/chunks/Tooltip-DrP2vx9i.js +534 -0
- package/chunks/Typography-DFdgIDQS.js +1429 -0
- package/chunks/dividerClasses-BtSFa36Z.js +9 -0
- package/chunks/elementAcceptingRef-CZFKGdxR.js +25 -0
- package/chunks/getReactElementRef-B3MFPBbS.js +21 -0
- package/chunks/{helpers-DQsdRliV.js → helpers-D8cWUfGf.js} +1 -1
- package/chunks/{index-B2VYQmtm.js → index-DZqXLvFO.js} +198 -204
- package/chunks/index-JDeYpSi1.js +4 -0
- package/chunks/{main-DSGHgdtY.js → main-C05CZWMa.js} +142 -141
- package/chunks/{main-D7MsMIjF.js → main-CHr45Z4W.js} +34 -34
- package/chunks/{ownerWindow-DbqHERs5.js → ownerWindow-PI509BpA.js} +1 -1
- package/chunks/useButton-tjUHKc-B.js +105 -0
- package/chunks/{useEventCallback-BDs4A_JZ.js → useEventCallback-BFPi8YtI.js} +1 -1
- package/chunks/{useForwardedInput-WirbkSwI.js → useForwardedInput-VvmRv9KU.js} +3 -3
- package/chunks/{useImageVariant-DMs19-UC.js → useImageVariant-Cs6lWUs2.js} +1 -1
- package/index.js +43 -1858
- package/package.json +2 -2
- package/chunks/Card-24cIw_HU.js +0 -217
- package/chunks/NotFoundSkeleton-T4NKrhfx.js +0 -1770
- package/chunks/Typography-BFCXsYfo.js +0 -1529
- package/chunks/index-CFw8sMh-.js +0 -4
package/Betslip.js
CHANGED
package/ChanceGame.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-
|
|
2
|
+
import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-D8cWUfGf.js";
|
|
3
3
|
import Z, { useState as qe, useEffect as Qe } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { S as at } from "./chunks/Spinner-
|
|
4
|
+
import { i as K, h as Ze, c as ve, b as ie, e as Se, B as m, u as se, F as ue, d as we, f as xe, x as Te, W as fe, a as $e, o as et, n as tt, v as ne, y as ot, z as nt, A as rt, E as lt, D as it } from "./chunks/PrizeCard-CXjFADAN.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-C219bcnm.js";
|
|
6
6
|
import { createPortal as st } from "react-dom";
|
|
7
7
|
import { u as ct } from "./chunks/useInfoPage-BHdgKdme.js";
|
|
8
|
-
import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-
|
|
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-
|
|
10
|
-
import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-
|
|
11
|
-
import { T as D } from "./chunks/Typography-
|
|
12
|
-
import { B as he } from "./chunks/Button-
|
|
8
|
+
import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-CJZIRj5-.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-Dp6fzXJn.js";
|
|
10
|
+
import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-Cs6lWUs2.js";
|
|
11
|
+
import { T as D } from "./chunks/Typography-DFdgIDQS.js";
|
|
12
|
+
import { B as he } from "./chunks/Button-GawVOPKi.js";
|
|
13
13
|
const ke = ({
|
|
14
14
|
children: e,
|
|
15
15
|
brandingBorderColor: s,
|
|
@@ -55,7 +55,7 @@ const ke = ({
|
|
|
55
55
|
dangerColor: d,
|
|
56
56
|
brandingLogo: n,
|
|
57
57
|
isDark: l = !1,
|
|
58
|
-
showTitleBlock:
|
|
58
|
+
showTitleBlock: F = !1,
|
|
59
59
|
variant: O
|
|
60
60
|
}) => {
|
|
61
61
|
var G, q, V;
|
|
@@ -67,10 +67,10 @@ const ke = ({
|
|
|
67
67
|
showResultScreen: R,
|
|
68
68
|
showInlineResult: k,
|
|
69
69
|
hasEntered: $,
|
|
70
|
-
confettiActive:
|
|
71
|
-
spinDuration:
|
|
72
|
-
shakeAnimationDuration:
|
|
73
|
-
confettiVelocityMultiplier:
|
|
70
|
+
confettiActive: z,
|
|
71
|
+
spinDuration: P,
|
|
72
|
+
shakeAnimationDuration: U,
|
|
73
|
+
confettiVelocityMultiplier: j,
|
|
74
74
|
confettiGravity: A,
|
|
75
75
|
handleSpin: I,
|
|
76
76
|
handleReset: v,
|
|
@@ -87,9 +87,9 @@ const ke = ({
|
|
|
87
87
|
/* @__PURE__ */ t(
|
|
88
88
|
ut,
|
|
89
89
|
{
|
|
90
|
-
active:
|
|
90
|
+
active: z,
|
|
91
91
|
primaryColor: r,
|
|
92
|
-
velocityMultiplier:
|
|
92
|
+
velocityMultiplier: j,
|
|
93
93
|
gravity: A,
|
|
94
94
|
onComplete: ee
|
|
95
95
|
}
|
|
@@ -109,7 +109,7 @@ const ke = ({
|
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
111
|
!R && /* @__PURE__ */ w(re, { children: [
|
|
112
|
-
|
|
112
|
+
F && (e.title || e.subtitle) && /* @__PURE__ */ w(
|
|
113
113
|
m,
|
|
114
114
|
{
|
|
115
115
|
sx: {
|
|
@@ -250,7 +250,7 @@ const ke = ({
|
|
|
250
250
|
display: "flex",
|
|
251
251
|
alignItems: "center",
|
|
252
252
|
justifyContent: "center",
|
|
253
|
-
cursor: T ||
|
|
253
|
+
cursor: T || z || k || !R && !k && b !== null ? "default" : "pointer",
|
|
254
254
|
userSelect: "none",
|
|
255
255
|
zIndex: 1,
|
|
256
256
|
// Entrance animation
|
|
@@ -258,7 +258,7 @@ const ke = ({
|
|
|
258
258
|
transform: $ ? "scale(1)" : "scale(0.85)",
|
|
259
259
|
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)",
|
|
260
260
|
// Shake animation
|
|
261
|
-
animation: X ? `wheelShake ${
|
|
261
|
+
animation: X ? `wheelShake ${U / 2}ms ease-in-out 2` : "none",
|
|
262
262
|
"@keyframes wheelShake": {
|
|
263
263
|
"0%, 100%": { transform: "translateX(0)" },
|
|
264
264
|
"10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
|
|
@@ -289,7 +289,7 @@ const ke = ({
|
|
|
289
289
|
isStandard: y,
|
|
290
290
|
rotation: N,
|
|
291
291
|
isSpinning: T,
|
|
292
|
-
spinDuration:
|
|
292
|
+
spinDuration: P
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
295
|
!y && !h && n && /* @__PURE__ */ t(
|
|
@@ -360,7 +360,7 @@ const ke = ({
|
|
|
360
360
|
he,
|
|
361
361
|
{
|
|
362
362
|
variant: "soft",
|
|
363
|
-
disabled: T ||
|
|
363
|
+
disabled: T || z || !R && !k && b !== null,
|
|
364
364
|
onClick: I,
|
|
365
365
|
sx: {
|
|
366
366
|
borderRadius: g.xl,
|
|
@@ -650,7 +650,7 @@ const ke = ({
|
|
|
650
650
|
imagePlaceholder: r || ""
|
|
651
651
|
},
|
|
652
652
|
fe.STANDARD
|
|
653
|
-
), l = (u = e.branding) == null ? void 0 : u.colors,
|
|
653
|
+
), 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) || "";
|
|
654
654
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: p, children: /* @__PURE__ */ t(
|
|
655
655
|
Ae,
|
|
656
656
|
{
|
|
@@ -669,13 +669,13 @@ const ke = ({
|
|
|
669
669
|
infoPage: e,
|
|
670
670
|
enableReset: s,
|
|
671
671
|
contentColor: (l == null ? void 0 : l.content_color) || c.textColor,
|
|
672
|
-
primaryColor:
|
|
672
|
+
primaryColor: F,
|
|
673
673
|
secondaryColor: O,
|
|
674
674
|
onPrimaryColor: c.palette.primary.onPrimary,
|
|
675
675
|
borderColor: p || void 0,
|
|
676
676
|
backgroundColor: S,
|
|
677
677
|
dangerColor: c.palette.danger.plainColor,
|
|
678
|
-
shimmerColor:
|
|
678
|
+
shimmerColor: F,
|
|
679
679
|
brandingLogo: i,
|
|
680
680
|
isDark: d,
|
|
681
681
|
showTitleBlock: !1,
|
|
@@ -695,14 +695,14 @@ const ke = ({
|
|
|
695
695
|
dangerColor: d,
|
|
696
696
|
cardBaseColor: n,
|
|
697
697
|
shimmerColor: l,
|
|
698
|
-
brandingLogo:
|
|
698
|
+
brandingLogo: F = "",
|
|
699
699
|
isDark: O = !1,
|
|
700
700
|
showTitleBlock: p = !1,
|
|
701
701
|
variant: S,
|
|
702
702
|
compactCards: g = !1
|
|
703
703
|
}) => {
|
|
704
|
-
var
|
|
705
|
-
const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), 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 = Ee(r, O), k = JSON.parse(e.body), $ = k.segments || [],
|
|
704
|
+
var Fe, We, _e, Oe;
|
|
705
|
+
const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), 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 = Ee(r, O), k = JSON.parse(e.body), $ = k.segments || [], z = e.labels || {}, P = k.mode || ((Fe = k.config) == null ? void 0 : Fe.mode) || "fair", U = ((We = k.config) == null ? void 0 : We.pace) || "normal", j = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
|
|
706
706
|
var J;
|
|
707
707
|
return (J = ae.images) == null ? void 0 : J.idle;
|
|
708
708
|
}), {
|
|
@@ -717,11 +717,11 @@ const ke = ({
|
|
|
717
717
|
crossfadedCards: oe,
|
|
718
718
|
revealedOtherCards: ce,
|
|
719
719
|
flipDuration: Xe,
|
|
720
|
-
crossfadeDuration:
|
|
721
|
-
loseAnimationDuration:
|
|
720
|
+
crossfadeDuration: Pe,
|
|
721
|
+
loseAnimationDuration: Ue,
|
|
722
722
|
handlePick: Re,
|
|
723
723
|
handleReset: ge
|
|
724
|
-
} = pt({ segments: $, mode:
|
|
724
|
+
} = pt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
|
|
725
725
|
A && /* @__PURE__ */ t(
|
|
726
726
|
Ge,
|
|
727
727
|
{
|
|
@@ -740,7 +740,7 @@ const ke = ({
|
|
|
740
740
|
primaryColor: r,
|
|
741
741
|
onPrimaryColor: x,
|
|
742
742
|
borderColor: o,
|
|
743
|
-
disclaimer: f ? void 0 :
|
|
743
|
+
disclaimer: f ? void 0 : z.disclaimer,
|
|
744
744
|
enableReset: s,
|
|
745
745
|
onReset: ge
|
|
746
746
|
}
|
|
@@ -837,7 +837,7 @@ const ke = ({
|
|
|
837
837
|
}
|
|
838
838
|
),
|
|
839
839
|
/* @__PURE__ */ w(m, { children: [
|
|
840
|
-
!f &&
|
|
840
|
+
!f && z.welcome && /* @__PURE__ */ t(
|
|
841
841
|
D,
|
|
842
842
|
{
|
|
843
843
|
level: "body-md",
|
|
@@ -849,10 +849,10 @@ const ke = ({
|
|
|
849
849
|
textAlign: "center",
|
|
850
850
|
mb: L ? 0 : h.md
|
|
851
851
|
},
|
|
852
|
-
children:
|
|
852
|
+
children: z.welcome
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
|
-
|
|
855
|
+
z.instructions && !G && /* @__PURE__ */ t(
|
|
856
856
|
D,
|
|
857
857
|
{
|
|
858
858
|
level: f ? "body-sm" : "body-md",
|
|
@@ -865,7 +865,7 @@ const ke = ({
|
|
|
865
865
|
opacity: 0.7,
|
|
866
866
|
maxWidth: f ? "400px" : "600px"
|
|
867
867
|
},
|
|
868
|
-
children:
|
|
868
|
+
children: z.instructions
|
|
869
869
|
}
|
|
870
870
|
)
|
|
871
871
|
] }),
|
|
@@ -930,7 +930,7 @@ const ke = ({
|
|
|
930
930
|
perspective: "1200px"
|
|
931
931
|
},
|
|
932
932
|
children: (ee ?? $).map((ae, J) => {
|
|
933
|
-
const be = `card-${J}`, de = v !== null, Be = Q.has(be), me = ce.has(be),
|
|
933
|
+
const be = `card-${J}`, de = v !== null, Be = Q.has(be), me = ce.has(be), je = de && !Be && !me, De = oe.has(be), Ye = de && !De && !me;
|
|
934
934
|
return /* @__PURE__ */ t(
|
|
935
935
|
m,
|
|
936
936
|
{
|
|
@@ -956,7 +956,7 @@ const ke = ({
|
|
|
956
956
|
isRevealed: de,
|
|
957
957
|
hasEntered: V,
|
|
958
958
|
objectSize: N,
|
|
959
|
-
crossfadeDuration:
|
|
959
|
+
crossfadeDuration: Pe,
|
|
960
960
|
isStandard: f,
|
|
961
961
|
primaryColor: r,
|
|
962
962
|
dangerColor: d,
|
|
@@ -970,21 +970,21 @@ const ke = ({
|
|
|
970
970
|
selectedSegment: v,
|
|
971
971
|
isFlipped: Be,
|
|
972
972
|
isOtherRevealed: me,
|
|
973
|
-
shouldDim:
|
|
973
|
+
shouldDim: je,
|
|
974
974
|
isRevealed: de,
|
|
975
975
|
showLoseAnimation: q,
|
|
976
976
|
hasEntered: V,
|
|
977
977
|
cardWidth: B,
|
|
978
978
|
cardHeight: T,
|
|
979
979
|
flipDuration: Xe,
|
|
980
|
-
loseAnimationDuration:
|
|
980
|
+
loseAnimationDuration: Ue,
|
|
981
981
|
cardBaseColor: E,
|
|
982
982
|
shimmerColor: M,
|
|
983
983
|
primaryColor: r,
|
|
984
984
|
contentColor: a,
|
|
985
985
|
dangerColor: d,
|
|
986
986
|
borderColor: o,
|
|
987
|
-
brandingLogo:
|
|
987
|
+
brandingLogo: F,
|
|
988
988
|
compactCards: g,
|
|
989
989
|
onPick: () => Re(J, !1)
|
|
990
990
|
}
|
|
@@ -1075,7 +1075,7 @@ const ke = ({
|
|
|
1075
1075
|
boxSizing: "border-box"
|
|
1076
1076
|
},
|
|
1077
1077
|
children: [
|
|
1078
|
-
!Y &&
|
|
1078
|
+
!Y && z.welcome && /* @__PURE__ */ t(
|
|
1079
1079
|
D,
|
|
1080
1080
|
{
|
|
1081
1081
|
level: "body-md",
|
|
@@ -1087,7 +1087,7 @@ const ke = ({
|
|
|
1087
1087
|
textAlign: "center",
|
|
1088
1088
|
px: h.md
|
|
1089
1089
|
},
|
|
1090
|
-
children:
|
|
1090
|
+
children: z.welcome
|
|
1091
1091
|
}
|
|
1092
1092
|
),
|
|
1093
1093
|
/* @__PURE__ */ t(
|
|
@@ -1126,7 +1126,7 @@ const ke = ({
|
|
|
1126
1126
|
position: "relative",
|
|
1127
1127
|
overflow: "hidden"
|
|
1128
1128
|
},
|
|
1129
|
-
children:
|
|
1129
|
+
children: ze()
|
|
1130
1130
|
}
|
|
1131
1131
|
),
|
|
1132
1132
|
G && (v == null ? void 0 : v.results) && /* @__PURE__ */ t(
|
|
@@ -1142,7 +1142,7 @@ const ke = ({
|
|
|
1142
1142
|
sx: { mb: h.md }
|
|
1143
1143
|
}
|
|
1144
1144
|
),
|
|
1145
|
-
(
|
|
1145
|
+
(F || z.disclaimer) && /* @__PURE__ */ w(
|
|
1146
1146
|
m,
|
|
1147
1147
|
{
|
|
1148
1148
|
sx: {
|
|
@@ -1152,7 +1152,7 @@ const ke = ({
|
|
|
1152
1152
|
gap: h.md
|
|
1153
1153
|
},
|
|
1154
1154
|
children: [
|
|
1155
|
-
|
|
1155
|
+
z.disclaimer && /* @__PURE__ */ t(
|
|
1156
1156
|
D,
|
|
1157
1157
|
{
|
|
1158
1158
|
level: "body-sm",
|
|
@@ -1166,13 +1166,13 @@ const ke = ({
|
|
|
1166
1166
|
maxWidth: "900px",
|
|
1167
1167
|
lineHeight: 1.4
|
|
1168
1168
|
},
|
|
1169
|
-
children:
|
|
1169
|
+
children: z.disclaimer
|
|
1170
1170
|
}
|
|
1171
1171
|
),
|
|
1172
|
-
|
|
1172
|
+
F && I && /* @__PURE__ */ t(
|
|
1173
1173
|
"img",
|
|
1174
1174
|
{
|
|
1175
|
-
src:
|
|
1175
|
+
src: F,
|
|
1176
1176
|
alt: "Brand Logo",
|
|
1177
1177
|
style: {
|
|
1178
1178
|
height: "auto",
|
|
@@ -1206,7 +1206,7 @@ const ke = ({
|
|
|
1206
1206
|
overflow: "auto",
|
|
1207
1207
|
boxSizing: "border-box"
|
|
1208
1208
|
},
|
|
1209
|
-
children:
|
|
1209
|
+
children: ze()
|
|
1210
1210
|
}
|
|
1211
1211
|
);
|
|
1212
1212
|
}, kt = ({
|
|
@@ -1222,7 +1222,7 @@ const ke = ({
|
|
|
1222
1222
|
imagePlaceholder: r || ""
|
|
1223
1223
|
},
|
|
1224
1224
|
fe.STANDARD
|
|
1225
|
-
), l = (i = e.branding) == null ? void 0 : i.colors,
|
|
1225
|
+
), 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) || "";
|
|
1226
1226
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: O, children: /* @__PURE__ */ t(
|
|
1227
1227
|
Ae,
|
|
1228
1228
|
{
|
|
@@ -1243,13 +1243,13 @@ const ke = ({
|
|
|
1243
1243
|
infoPage: e,
|
|
1244
1244
|
enableReset: s,
|
|
1245
1245
|
contentColor: (l == null ? void 0 : l.content_color) || c.textPrimary,
|
|
1246
|
-
primaryColor:
|
|
1246
|
+
primaryColor: F,
|
|
1247
1247
|
onPrimaryColor: (l == null ? void 0 : l.content_color) || c.palette.primary.onPrimary || c.surface,
|
|
1248
1248
|
borderColor: O || void 0,
|
|
1249
1249
|
backgroundColor: p,
|
|
1250
1250
|
dangerColor: c.palette.danger.plainColor,
|
|
1251
1251
|
cardBaseColor: p,
|
|
1252
|
-
shimmerColor:
|
|
1252
|
+
shimmerColor: F,
|
|
1253
1253
|
brandingLogo: g,
|
|
1254
1254
|
isDark: d,
|
|
1255
1255
|
showTitleBlock: !1,
|
|
@@ -1307,14 +1307,14 @@ const ke = ({
|
|
|
1307
1307
|
enableReset: s = !1,
|
|
1308
1308
|
defaultImagePlaceholderUrl: a
|
|
1309
1309
|
}) => {
|
|
1310
|
-
var f, L, H, W, B, T, N, b, X, R, k, $,
|
|
1311
|
-
const { t: r } = se(), x = K(), o = $e(), c = xe(), 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) || "",
|
|
1310
|
+
var f, L, H, W, B, T, N, b, X, R, k, $, z, P, U, j, A, I, v;
|
|
1311
|
+
const { t: r } = se(), x = K(), o = $e(), c = xe(), 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 ? He : Ne), p = l || pe(
|
|
1312
1312
|
{
|
|
1313
1313
|
images: e.images,
|
|
1314
1314
|
imagePlaceholder: O
|
|
1315
1315
|
},
|
|
1316
1316
|
fe.OVERLAY
|
|
1317
|
-
), 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 = (
|
|
1317
|
+
), 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 = (j = (U = (P = (z = o.colorSchemes) == null ? void 0 : z.light) == null ? void 0 : P.palette) == null ? void 0 : U.danger) == null ? void 0 : j.plainColor, h = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, E = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, M = Le({
|
|
1318
1318
|
spacingScale: c,
|
|
1319
1319
|
mdBorderRadius: C,
|
|
1320
1320
|
contentBgColor: _,
|
|
@@ -1351,7 +1351,7 @@ const ke = ({
|
|
|
1351
1351
|
dangerColor: y,
|
|
1352
1352
|
cardBaseColor: _,
|
|
1353
1353
|
shimmerColor: i,
|
|
1354
|
-
brandingLogo:
|
|
1354
|
+
brandingLogo: F,
|
|
1355
1355
|
isDark: !0,
|
|
1356
1356
|
showTitleBlock: !1,
|
|
1357
1357
|
variant: "overlay",
|
|
@@ -1360,7 +1360,7 @@ const ke = ({
|
|
|
1360
1360
|
) })
|
|
1361
1361
|
}
|
|
1362
1362
|
);
|
|
1363
|
-
},
|
|
1363
|
+
}, zt = (e) => {
|
|
1364
1364
|
const s = we().secondary, a = et(), r = e.isSplitVariant && a, x = K(), o = Je(e.primaryUrl, e.secondaryUrl, "logo");
|
|
1365
1365
|
if (!e.brandingLogo)
|
|
1366
1366
|
return null;
|
|
@@ -1465,19 +1465,19 @@ const ke = ({
|
|
|
1465
1465
|
]
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
|
-
},
|
|
1468
|
+
}, Ft = ({
|
|
1469
1469
|
infoPage: e,
|
|
1470
1470
|
enableReset: s = !1,
|
|
1471
1471
|
defaultImagePlaceholderUrl: a
|
|
1472
1472
|
}) => {
|
|
1473
|
-
var L, H, W, B, T, N, b, X, R, k, $,
|
|
1474
|
-
const { t: r } = se(), x = K(), o = $e(), c = xe(), 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) || "",
|
|
1473
|
+
var L, H, W, B, T, N, b, X, R, k, $, z, P, U, j, A, I, v, ee, te, Y, G, q, V, Q, oe, ce;
|
|
1474
|
+
const { t: r } = se(), x = K(), o = $e(), c = xe(), 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 ? He : Ne), p = l || pe(
|
|
1475
1475
|
{
|
|
1476
1476
|
images: e.images,
|
|
1477
1477
|
imagePlaceholder: O
|
|
1478
1478
|
},
|
|
1479
1479
|
fe.OVERLAY
|
|
1480
|
-
), 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), _ = (
|
|
1480
|
+
), 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), _ = (U = (P = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.palette) == null ? void 0 : P.primary) == null ? void 0 : U.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (j = o.colorSchemes) == null ? void 0 : j.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({
|
|
1481
1481
|
spacingScale: c,
|
|
1482
1482
|
mdBorderRadius: E,
|
|
1483
1483
|
contentBgColor: y,
|
|
@@ -1513,16 +1513,16 @@ const ke = ({
|
|
|
1513
1513
|
backgroundColor: y,
|
|
1514
1514
|
dangerColor: h,
|
|
1515
1515
|
shimmerColor: i,
|
|
1516
|
-
brandingLogo:
|
|
1516
|
+
brandingLogo: F,
|
|
1517
1517
|
isDark: !0,
|
|
1518
1518
|
showTitleBlock: !1,
|
|
1519
1519
|
variant: "overlay"
|
|
1520
1520
|
}
|
|
1521
1521
|
) }),
|
|
1522
1522
|
/* @__PURE__ */ t(
|
|
1523
|
-
|
|
1523
|
+
zt,
|
|
1524
1524
|
{
|
|
1525
|
-
brandingLogo:
|
|
1525
|
+
brandingLogo: F,
|
|
1526
1526
|
textColor: S,
|
|
1527
1527
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1528
1528
|
primaryUrl: (Q = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Q.primary_url,
|
|
@@ -1577,7 +1577,7 @@ const ke = ({
|
|
|
1577
1577
|
defaultImagePlaceholderUrl: o
|
|
1578
1578
|
}
|
|
1579
1579
|
) : /* @__PURE__ */ t(
|
|
1580
|
-
|
|
1580
|
+
Ft,
|
|
1581
1581
|
{
|
|
1582
1582
|
infoPage: s,
|
|
1583
1583
|
defaultImagePlaceholderUrl: o
|
|
@@ -1604,7 +1604,7 @@ const ke = ({
|
|
|
1604
1604
|
const n = e.themeOptions, l = {
|
|
1605
1605
|
...n,
|
|
1606
1606
|
mode: e.template === ue.OVERLAY ? "dark" : n == null ? void 0 : n.mode
|
|
1607
|
-
},
|
|
1607
|
+
}, F = /* @__PURE__ */ t(m, { ref: x }), O = s && x.current && c.current && d.current ? st(
|
|
1608
1608
|
/* @__PURE__ */ t(nt, { value: d.current, children: /* @__PURE__ */ t(rt, { containerRef: x, children: /* @__PURE__ */ t(
|
|
1609
1609
|
lt,
|
|
1610
1610
|
{
|
|
@@ -1626,7 +1626,7 @@ const ke = ({
|
|
|
1626
1626
|
c.current
|
|
1627
1627
|
) : null;
|
|
1628
1628
|
return /* @__PURE__ */ w(re, { children: [
|
|
1629
|
-
|
|
1629
|
+
F,
|
|
1630
1630
|
O
|
|
1631
1631
|
] });
|
|
1632
1632
|
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Mt = Ot;
|
package/ClassicQuizPlay.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as t, jsxs as g, Fragment as r2 } from "react/jsx-runtime";
|
|
2
2
|
import k2, { useState as $, useEffect as I2, useCallback as u0, useMemo as H2 } from "react";
|
|
3
|
-
import { u as O, B as l,
|
|
4
|
-
import { P as h0 } from "./chunks/Portal-
|
|
3
|
+
import { u as O, B as l, a as m2, b as z, c as X, d as c2, e as p2, f as S2, i as K, g as _2, C as q2, h as E2, W as U, j as m0, k as C0, l as g0, m as l0, n as f0 } from "./chunks/PrizeCard-CXjFADAN.js";
|
|
4
|
+
import { P as h0 } from "./chunks/Portal-bNE7Trh9.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as x0, e as Q2, h as T2, s as y0, i as S0, a as o0, b as b0 } from "./chunks/helpers-
|
|
7
|
-
import { S as L0 } from "./chunks/Spinner-
|
|
8
|
-
import { S as I0, a as w0, b as r0, C as X2, c as e0 } from "./chunks/ChanceGameEmbedVariant-
|
|
6
|
+
import { g as x0, e as Q2, h as T2, s as y0, i as S0, a as o0, b as b0 } from "./chunks/helpers-D8cWUfGf.js";
|
|
7
|
+
import { S as L0 } from "./chunks/Spinner-C219bcnm.js";
|
|
8
|
+
import { S as I0, a as w0, b as r0, C as X2, c as e0 } from "./chunks/ChanceGameEmbedVariant-Dio4ihOd.js";
|
|
9
9
|
import { H as z0, A as Z2 } from "./chunks/index-BBrO1Htm.js";
|
|
10
|
-
import { A as A2, O as A0 } from "./chunks/ArrowRightAlt-
|
|
11
|
-
import { A as w2, O as F0, S as B0, N as P0 } from "./chunks/NotFoundSkeleton-
|
|
12
|
-
import { u as M2, d as b2, a as L2, b as f2 } from "./chunks/useImageVariant-
|
|
10
|
+
import { A as A2, O as A0 } from "./chunks/ArrowRightAlt-DrBMgptf.js";
|
|
11
|
+
import { A as w2, O as F0, S as B0, N as P0 } from "./chunks/NotFoundSkeleton-CJZIRj5-.js";
|
|
12
|
+
import { u as M2, d as b2, a as L2, b as f2 } from "./chunks/useImageVariant-Cs6lWUs2.js";
|
|
13
13
|
import { u as W2 } from "./chunks/useEmbedCode-DCWnWGak.js";
|
|
14
|
-
import { T as x } from "./chunks/Typography-
|
|
15
|
-
import { T as T0 } from "./chunks/TimerOutlined-
|
|
16
|
-
import { C as Q0 } from "./chunks/CollectLeadForm-
|
|
17
|
-
import { B as E } from "./chunks/Button-
|
|
18
|
-
import { R as U2, A as V2, O as c0, S as s0 } from "./chunks/OverlayApiErrorSkeleton-
|
|
19
|
-
import { S as t0 } from "./chunks/StandardContentSkeleton-
|
|
20
|
-
import { T as k0, a as M0, b as n0, t as i0, c as a0 } from "./chunks/Tabs-
|
|
21
|
-
import { C as v0 } from "./chunks/CheckCircle-
|
|
22
|
-
import { A as D0, I as R0, W as H0 } from "./chunks/AlertMessage-
|
|
23
|
-
import { S as Z0 } from "./chunks/Stack-
|
|
24
|
-
import { S as p0, O as _0, a as q0, b as E0 } from "./chunks/OverlayLeadAfterCollection-
|
|
25
|
-
import { S as W0, a as U0 } from "./chunks/SplitLeadAfterCollection-
|
|
14
|
+
import { T as x } from "./chunks/Typography-DFdgIDQS.js";
|
|
15
|
+
import { T as T0 } from "./chunks/TimerOutlined-BUL4BZFp.js";
|
|
16
|
+
import { C as Q0 } from "./chunks/CollectLeadForm-D0P_JHmT.js";
|
|
17
|
+
import { B as E } from "./chunks/Button-GawVOPKi.js";
|
|
18
|
+
import { R as U2, A as V2, O as c0, S as s0 } from "./chunks/OverlayApiErrorSkeleton-JMWA0FV8.js";
|
|
19
|
+
import { S as t0 } from "./chunks/StandardContentSkeleton-DsGBNMHN.js";
|
|
20
|
+
import { T as k0, a as M0, b as n0, t as i0, c as a0 } from "./chunks/Tabs-CIJK8YZY.js";
|
|
21
|
+
import { C as v0 } from "./chunks/CheckCircle-DgKcR_no.js";
|
|
22
|
+
import { A as D0, I as R0, W as H0 } from "./chunks/AlertMessage-X4MQ4qsN.js";
|
|
23
|
+
import { S as Z0 } from "./chunks/Stack-JIDLCVx0.js";
|
|
24
|
+
import { S as p0, O as _0, a as q0, b as E0 } from "./chunks/OverlayLeadAfterCollection-BwF9MvIB.js";
|
|
25
|
+
import { S as W0, a as U0 } from "./chunks/SplitLeadAfterCollection-BijLacCk.js";
|
|
26
26
|
const j2 = ({
|
|
27
27
|
shareCTA: e,
|
|
28
28
|
defaultShare: i,
|
package/CollectLead.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g, Fragment as r } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as ce } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { P as se } from "./chunks/Portal-
|
|
3
|
+
import { d as Y, i as Q, B as o, u as de, g as J, a as K, f as X, m as Z, W as w, c as U, b as h, e as me } from "./chunks/PrizeCard-CXjFADAN.js";
|
|
4
|
+
import { P as se } from "./chunks/Portal-bNE7Trh9.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as ge, a as xe, h as oe } from "./chunks/helpers-
|
|
7
|
-
import { d as le, a as ae, b as ee } from "./chunks/useImageVariant-
|
|
8
|
-
import { T as u } from "./chunks/Typography-
|
|
9
|
-
import { C as fe } from "./chunks/CollectLeadForm-
|
|
6
|
+
import { g as ge, a as xe, h as oe } from "./chunks/helpers-D8cWUfGf.js";
|
|
7
|
+
import { d as le, a as ae, b as ee } from "./chunks/useImageVariant-Cs6lWUs2.js";
|
|
8
|
+
import { T as u } from "./chunks/Typography-DFdgIDQS.js";
|
|
9
|
+
import { C as fe } from "./chunks/CollectLeadForm-D0P_JHmT.js";
|
|
10
10
|
const te = (e) => {
|
|
11
11
|
const i = Y().secondary, m = Q(), a = ge(e.primaryUrl, e.secondaryUrl, "logo");
|
|
12
12
|
if (!e.brandingLogo)
|
package/Discussion.js
CHANGED