fansunited-frontend-components 0.0.64 → 0.0.66
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 +54 -54
- package/ClassicQuizPlay.js +20 -20
- package/CollectLead.js +6 -6
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +60 -62
- package/EventGamePlay.js +141 -140
- package/Leaderboard.js +73 -72
- package/MatchQuizPlay.js +32 -31
- package/PersonalityQuizPlay.js +19 -19
- package/PickThePair.js +9 -9
- package/PlayerOfTheMatch.d.ts +5 -0
- package/PlayerOfTheMatch.d.ts.map +1 -0
- package/PlayerOfTheMatch.js +2522 -0
- package/PollVote.js +17 -17
- package/Predictor.js +337 -335
- package/README.md +97 -0
- package/Standings.js +11 -10
- package/TopX.js +392 -390
- package/chunks/AccessTime-D7JlgCS_.js +10 -0
- package/chunks/{AlertMessage-D11oEBM7.js → AlertMessage-D-cFYJtj.js} +22 -22
- package/chunks/{ArrowRightAlt-DVXOeIJN.js → ArrowRightAlt-BWEyQ4rF.js} +1 -1
- package/chunks/{Avatar-DovSR8Yq.js → Avatar-BtqTJz-0.js} +9 -9
- package/chunks/{Button-DOVRR2Sy.js → Button-BPtVuOyn.js} +195 -262
- package/chunks/Card-24cIw_HU.js +217 -0
- package/chunks/CardActions-jWCcpjQr.js +140 -0
- package/chunks/CardContent-D776lu64.js +106 -0
- package/chunks/{ChanceGameEmbedVariant-B5vuzENl.js → ChanceGameEmbedVariant-CJJnKkOG.js} +9 -9
- package/chunks/{CheckCircle-CL08EagS.js → CheckCircle-DKzwnhnr.js} +10 -10
- package/chunks/{Chip-DeEjQ2-F.js → Chip-isuqGl2h.js} +10 -10
- package/chunks/{Close-CdWk2nDh.js → Close-BDwyGxjj.js} +1 -1
- package/chunks/{Close-DEpdBZ1j.js → Close-DGsfMhw8.js} +1 -1
- package/chunks/{CollectLeadForm-Bk9FHufQ.js → CollectLeadForm-B1FGVWj4.js} +1274 -1583
- package/chunks/{Divider-Chf8z_B5.js → Divider-RJTJH6No.js} +3 -3
- package/chunks/Edit-CqpNynUG.js +104 -0
- package/chunks/{EmojiEvents-E7Oqv7rk.js → EmojiEvents-CxftZVbi.js} +1 -1
- package/chunks/{FavoriteBorder-CguT2h2c.js → FavoriteBorder-_0szWv8_.js} +1 -1
- package/chunks/{FormControl-bP5fF1j7.js → FormControl-CvjmoRuK.js} +13 -13
- package/chunks/{FormLabel-DpEd-_f0.js → FormLabel-B6QTd99o.js} +3 -3
- package/chunks/{Input-ChSZLHkV.js → Input-BD1363mh.js} +3 -3
- package/chunks/{KeyboardArrowDown-CvGmYfHu.js → KeyboardArrowDown-Bip53hQC.js} +1 -1
- package/chunks/Link-B5vthpLg.js +318 -0
- package/chunks/{variantColorInheritance-Bgtz8MKI.js → ListItemButton-Dosv66vv.js} +412 -438
- package/chunks/ModalDialog-Dn3_dWTo.js +879 -0
- package/chunks/{NotFoundSkeleton-B4r94g0a.js → NotFoundSkeleton-T4NKrhfx.js} +444 -541
- package/chunks/{Notification-6XYzwwD_.js → Notification-D20IfSF7.js} +24 -24
- package/chunks/{OverlayApiErrorSkeleton-Dzn-4QeZ.js → OverlayApiErrorSkeleton-BdzLPy8g.js} +7 -7
- package/chunks/{OverlayLeadAfterCollection-CI5NIwUv.js → OverlayLeadAfterCollection-C-rM0D5V.js} +5 -5
- package/chunks/{OverlayScoreStateSkeleton-wpxvfC5x.js → OverlayScoreStateSkeleton-ChdCokGv.js} +4 -4
- package/chunks/{Person-DvjCrwnY.js → Person-OeVVOCoA.js} +1 -1
- package/chunks/{PickOneOfX-DunXqSn1.js → PickOneOfX-wiZPfKD5.js} +3 -3
- package/chunks/{Popper-0XuEHl9i.js → Popper-DST5zEgT.js} +43 -42
- package/chunks/{Portal-4mtEzZlO.js → Portal-CVkKDGuY.js} +1 -1
- package/chunks/Portal-DJylIbob.js +74 -0
- package/chunks/{PrizeCard-CjZXXFx3.js → PrizeCard-DlK8irk1.js} +5800 -3938
- package/chunks/Search-B4FMXDHP.js +14 -0
- package/chunks/{Select-B3KaBu0K.js → Select-DOCvesLO.js} +58 -57
- package/chunks/Sheet-Co4lPFez.js +131 -0
- package/chunks/{Spinner-htM_pA9-.js → Spinner-00hTC1QH.js} +2 -2
- package/chunks/{SplitLeadAfterCollection-B37WSS2g.js → SplitLeadAfterCollection-BUX0MjWC.js} +6 -6
- package/chunks/{Stack-BrwF24Ji.js → Stack-CB_N08X-.js} +16 -16
- package/chunks/{StandardContentSkeleton-Bk0sSsby.js → StandardContentSkeleton-0vB361fl.js} +1 -1
- package/chunks/Table-Damdp0vr.js +394 -0
- package/chunks/{Tabs-DW1eIofJ.js → Tabs-CiKqMnto.js} +21 -21
- package/chunks/{Textarea-G02jGLI9.js → Textarea-BuSqmmKr.js} +7 -7
- package/chunks/{TimerOutlined-BmAAC-Vi.js → TimerOutlined-DC5foG2M.js} +1 -1
- package/chunks/{Typography-DjxaMiey.js → Typography-BFCXsYfo.js} +20 -20
- package/chunks/chevron-right-eZEqQ93O.js +23 -0
- package/chunks/{chevrons-right-CRIN5sOe.js → chevrons-right-CXSpQt9w.js} +1 -1
- package/chunks/{chevron-right-B3IZtaMT.js → createLucideIcon-YBRjY5Kl.js} +16 -36
- package/chunks/{helpers-B7-TtMzO.js → helpers-DQsdRliV.js} +1 -1
- package/chunks/{index-BqoOC2KB.js → index-B2VYQmtm.js} +287 -293
- package/chunks/index-CFw8sMh-.js +4 -0
- package/chunks/{main-Bgyyz19Z.js → main-D7MsMIjF.js} +15 -15
- package/chunks/{main-F7VbtZQQ.js → main-DSGHgdtY.js} +141 -140
- package/chunks/ownerWindow-DbqHERs5.js +7 -0
- package/chunks/useEventCallback-BDs4A_JZ.js +14 -0
- package/chunks/{useForwardedInput-Umu4U7f1.js → useForwardedInput-WirbkSwI.js} +13 -13
- package/chunks/{useImageVariant-qiW-rMPJ.js → useImageVariant-DMs19-UC.js} +1 -1
- package/chunks/variantColorInheritance-DZr7CNx6.js +30 -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 +987 -669
- package/package.json +6 -2
- package/chunks/Edit-BgKFqtbe.js +0 -235
- package/chunks/ModalDialog-D63x8ebf.js +0 -1084
- package/chunks/Table-OBls_6ml.js +0 -519
- package/chunks/index-6_qOtrSn.js +0 -4
- package/chunks/useEventCallback-BpsnMnDw.js +0 -19
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-DQsdRliV.js";
|
|
3
3
|
import Z, { useState as qe, useEffect as Qe } from "react";
|
|
4
|
-
import { l as K, o as Ze, c as ve, a as ie, k as Se, B as m, u as se,
|
|
5
|
-
import { S as at } from "./chunks/Spinner-
|
|
4
|
+
import { l as K, o as Ze, c as ve, a as ie, k as Se, B as m, u as se, H as ue, b as we, e as xe, F as Te, W as fe, j as $e, t as et, i as tt, A as ne, f as ot, C as nt, g as rt, E as lt, h as it } from "./chunks/PrizeCard-DlK8irk1.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-00hTC1QH.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-T4NKrhfx.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-wiZPfKD5.js";
|
|
10
|
+
import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-DMs19-UC.js";
|
|
11
|
+
import { T as D } from "./chunks/Typography-BFCXsYfo.js";
|
|
12
|
+
import { B as he } from "./chunks/Button-BPtVuOyn.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: z = !1,
|
|
59
59
|
variant: O
|
|
60
60
|
}) => {
|
|
61
61
|
var G, q, V;
|
|
@@ -67,7 +67,7 @@ const ke = ({
|
|
|
67
67
|
showResultScreen: R,
|
|
68
68
|
showInlineResult: k,
|
|
69
69
|
hasEntered: $,
|
|
70
|
-
confettiActive:
|
|
70
|
+
confettiActive: F,
|
|
71
71
|
spinDuration: j,
|
|
72
72
|
shakeAnimationDuration: P,
|
|
73
73
|
confettiVelocityMultiplier: U,
|
|
@@ -87,7 +87,7 @@ const ke = ({
|
|
|
87
87
|
/* @__PURE__ */ t(
|
|
88
88
|
ut,
|
|
89
89
|
{
|
|
90
|
-
active:
|
|
90
|
+
active: F,
|
|
91
91
|
primaryColor: r,
|
|
92
92
|
velocityMultiplier: U,
|
|
93
93
|
gravity: A,
|
|
@@ -109,7 +109,7 @@ const ke = ({
|
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
111
|
!R && /* @__PURE__ */ w(re, { children: [
|
|
112
|
-
|
|
112
|
+
z && (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 || F || k || !R && !k && b !== null ? "default" : "pointer",
|
|
254
254
|
userSelect: "none",
|
|
255
255
|
zIndex: 1,
|
|
256
256
|
// Entrance animation
|
|
@@ -360,7 +360,7 @@ const ke = ({
|
|
|
360
360
|
he,
|
|
361
361
|
{
|
|
362
362
|
variant: "soft",
|
|
363
|
-
disabled: T ||
|
|
363
|
+
disabled: T || F || !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, 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) || "";
|
|
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: z,
|
|
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: z,
|
|
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: z = "",
|
|
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 ze, 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 || [], F = e.labels || {}, j = k.mode || ((ze = k.config) == null ? void 0 : ze.mode) || "fair", P = ((We = k.config) == null ? void 0 : We.pace) || "normal", U = ((_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
|
}), {
|
|
@@ -721,7 +721,7 @@ const ke = ({
|
|
|
721
721
|
loseAnimationDuration: Pe,
|
|
722
722
|
handlePick: Re,
|
|
723
723
|
handleReset: ge
|
|
724
|
-
} = pt({ segments: $, mode: j, pace: P, revealAll: U }),
|
|
724
|
+
} = pt({ segments: $, mode: j, pace: P, revealAll: U }), Fe = () => /* @__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 : F.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 && F.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: F.welcome
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
|
-
|
|
855
|
+
F.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: F.instructions
|
|
869
869
|
}
|
|
870
870
|
)
|
|
871
871
|
] }),
|
|
@@ -984,7 +984,7 @@ const ke = ({
|
|
|
984
984
|
contentColor: a,
|
|
985
985
|
dangerColor: d,
|
|
986
986
|
borderColor: o,
|
|
987
|
-
brandingLogo:
|
|
987
|
+
brandingLogo: z,
|
|
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 && F.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: F.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: Fe()
|
|
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
|
+
(z || F.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
|
+
F.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: F.disclaimer
|
|
1170
1170
|
}
|
|
1171
1171
|
),
|
|
1172
|
-
|
|
1172
|
+
z && I && /* @__PURE__ */ t(
|
|
1173
1173
|
"img",
|
|
1174
1174
|
{
|
|
1175
|
-
src:
|
|
1175
|
+
src: z,
|
|
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: Fe()
|
|
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, 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) || "";
|
|
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: z,
|
|
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: z,
|
|
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, $, F, j, P, U, 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) || "", 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 || 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 = (U = (P = (j = (
|
|
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 = (U = (P = (j = (F = o.colorSchemes) == null ? void 0 : F.light) == null ? void 0 : j.palette) == null ? void 0 : P.danger) == null ? void 0 : U.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: z,
|
|
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
|
+
}, Ft = (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
|
+
}, zt = ({
|
|
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, $, F, j, P, U, 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) || "", 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 || 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), _ = (P = (j = (
|
|
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), _ = (P = (j = (F = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : F.palette) == null ? void 0 : j.primary) == null ? void 0 : P.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (U = o.colorSchemes) == null ? void 0 : U.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: z,
|
|
1517
1517
|
isDark: !0,
|
|
1518
1518
|
showTitleBlock: !1,
|
|
1519
1519
|
variant: "overlay"
|
|
1520
1520
|
}
|
|
1521
1521
|
) }),
|
|
1522
1522
|
/* @__PURE__ */ t(
|
|
1523
|
-
|
|
1523
|
+
Ft,
|
|
1524
1524
|
{
|
|
1525
|
-
brandingLogo:
|
|
1525
|
+
brandingLogo: z,
|
|
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
|
+
zt,
|
|
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
|
+
}, z = /* @__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
|
+
z,
|
|
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, j as m2, a as z, c as X, b as c2, k as p2, e as S2, l as K, m as _2, n as q2, o as E2, W as U, p as m0, q as C0, r as g0, s as l0, i as f0 } from "./chunks/PrizeCard-
|
|
4
|
-
import { P as h0 } from "./chunks/Portal-
|
|
3
|
+
import { u as O, B as l, j as m2, a as z, c as X, b as c2, k as p2, e as S2, l as K, m as _2, n as q2, o as E2, W as U, p as m0, q as C0, r as g0, s as l0, i as f0 } from "./chunks/PrizeCard-DlK8irk1.js";
|
|
4
|
+
import { P as h0 } from "./chunks/Portal-CVkKDGuY.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-DQsdRliV.js";
|
|
7
|
+
import { S as L0 } from "./chunks/Spinner-00hTC1QH.js";
|
|
8
|
+
import { S as I0, a as w0, b as r0, C as X2, c as e0 } from "./chunks/ChanceGameEmbedVariant-CJJnKkOG.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-BWEyQ4rF.js";
|
|
11
|
+
import { A as w2, O as F0, S as B0, N as P0 } from "./chunks/NotFoundSkeleton-T4NKrhfx.js";
|
|
12
|
+
import { u as M2, d as b2, a as L2, b as f2 } from "./chunks/useImageVariant-DMs19-UC.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-BFCXsYfo.js";
|
|
15
|
+
import { T as T0 } from "./chunks/TimerOutlined-DC5foG2M.js";
|
|
16
|
+
import { C as Q0 } from "./chunks/CollectLeadForm-B1FGVWj4.js";
|
|
17
|
+
import { B as E } from "./chunks/Button-BPtVuOyn.js";
|
|
18
|
+
import { R as U2, A as V2, O as c0, S as s0 } from "./chunks/OverlayApiErrorSkeleton-BdzLPy8g.js";
|
|
19
|
+
import { S as t0 } from "./chunks/StandardContentSkeleton-0vB361fl.js";
|
|
20
|
+
import { T as k0, a as M0, b as n0, t as i0, c as a0 } from "./chunks/Tabs-CiKqMnto.js";
|
|
21
|
+
import { C as v0 } from "./chunks/CheckCircle-DKzwnhnr.js";
|
|
22
|
+
import { A as D0, I as R0, W as H0 } from "./chunks/AlertMessage-D-cFYJtj.js";
|
|
23
|
+
import { S as Z0 } from "./chunks/Stack-CB_N08X-.js";
|
|
24
|
+
import { S as p0, O as _0, a as q0, b as E0 } from "./chunks/OverlayLeadAfterCollection-C-rM0D5V.js";
|
|
25
|
+
import { S as W0, a as U0 } from "./chunks/SplitLeadAfterCollection-BUX0MjWC.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 { b as Y, l as Q, B as o, u as de, m as J, j as K, e as X, s as Z, W as w, c as U, a as h, k as me } from "./chunks/PrizeCard-
|
|
4
|
-
import { P as se } from "./chunks/Portal-
|
|
3
|
+
import { b as Y, l as Q, B as o, u as de, m as J, j as K, e as X, s as Z, W as w, c as U, a as h, k as me } from "./chunks/PrizeCard-DlK8irk1.js";
|
|
4
|
+
import { P as se } from "./chunks/Portal-CVkKDGuY.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-DQsdRliV.js";
|
|
7
|
+
import { d as le, a as ae, b as ee } from "./chunks/useImageVariant-DMs19-UC.js";
|
|
8
|
+
import { T as u } from "./chunks/Typography-BFCXsYfo.js";
|
|
9
|
+
import { C as fe } from "./chunks/CollectLeadForm-B1FGVWj4.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