fansunited-frontend-components 0.0.68 → 0.0.70
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 +1733 -1475
- package/CollectLead.js +6 -6
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1446 -1250
- package/EventCard.js +5583 -0
- package/EventGamePlay.js +2064 -1784
- package/Leaderboard.js +95 -95
- package/MatchQuizPlay.js +2786 -2497
- package/PersonalityQuizPlay.js +1374 -1095
- package/PickThePair.js +9 -9
- package/PlayerOfTheMatch.js +20 -20
- package/PollVote.js +1375 -1107
- package/Predictor.js +8192 -6359
- package/README.md +221 -3
- package/Standings.js +231 -251
- package/TopX.js +71 -69
- package/chunks/{AccessTime-D7JlgCS_.js → AccessTime-D9xoYL-P.js} +3 -3
- package/chunks/{AlertMessage-D-cFYJtj.js → AlertMessage-Cozhlf-H.js} +14 -14
- package/chunks/{Avatar-BtqTJz-0.js → Avatar-4MNT3BUa.js} +20 -20
- package/chunks/{Button-BPtVuOyn.js → Button-BR5lrG3T.js} +59 -76
- package/chunks/Card-B9LbqmTy.js +195 -0
- package/chunks/{CardActions-jWCcpjQr.js → CardActions-Bd7cvuaU.js} +19 -19
- package/chunks/{CardContent-D776lu64.js → CardContent-tsJbu6U_.js} +7 -7
- package/chunks/{ChanceGameEmbedVariant-CJJnKkOG.js → ChanceGameEmbedVariant-ClF7ZROz.js} +291 -201
- package/chunks/CheckCircle-DKTmOx_8.js +8 -0
- package/chunks/{Chip-isuqGl2h.js → Chip-CQTEXT4E.js} +65 -64
- package/chunks/{Close-DGsfMhw8.js → Close-EdfoUQng.js} +1 -1
- package/chunks/{Close-BDwyGxjj.js → Close-Sf17sJo7.js} +1 -1
- package/chunks/{CollectLeadForm-B1FGVWj4.js → CollectLeadForm-CfJIi5ym.js} +1387 -1459
- package/chunks/ConsentsList-CRzVgBrT.js +339 -0
- package/chunks/{Divider-RJTJH6No.js → Divider-CqwtjZ1e.js} +7 -7
- package/chunks/{Edit-CqpNynUG.js → Edit-73e36eUG.js} +38 -44
- package/chunks/EditOutlined-B1yLoIzq.js +14 -0
- package/chunks/{EmojiEvents-CxftZVbi.js → EmojiEvents-B2iKaiur.js} +1 -1
- package/chunks/{FavoriteBorder-_0szWv8_.js → FavoriteBorder-DPEq7teA.js} +1 -1
- package/chunks/{FormControl-CvjmoRuK.js → FormControl-Dnkb7OwF.js} +25 -24
- package/chunks/{CheckCircle-DKzwnhnr.js → FormControlContext-D73rmx-I.js} +44 -48
- package/chunks/{FormLabel-B6QTd99o.js → FormLabel-C42GjkHs.js} +22 -25
- package/chunks/InlineSpinner-BccBWdjH.js +28 -0
- package/chunks/{Input-BD1363mh.js → Input-D5FpQqOG.js} +7 -7
- package/chunks/{KeyboardArrowDown-Bip53hQC.js → KeyboardArrowDown-B6gYNeY1.js} +3 -3
- package/chunks/KeyboardArrowRight-cZrifTDy.js +11 -0
- package/chunks/{Link-B5vthpLg.js → Link-BEkWj05u.js} +24 -24
- package/chunks/{ListItemButton-Dosv66vv.js → ListItemButton-BCWrYSO3.js} +33 -32
- package/chunks/{ModalDialog-Dn3_dWTo.js → ModalDialog-Ca0fO5k9.js} +57 -56
- package/chunks/NotFoundSkeleton-CU9abuei.js +1244 -0
- package/chunks/{Notification-D20IfSF7.js → Notification-F6dbxtr1.js} +55 -61
- package/chunks/{OverlayScoreStateSkeleton-ChdCokGv.js → OverlayScoreStateSkeleton-C_ZCv9J4.js} +10 -10
- package/chunks/{ArrowRightAlt-BWEyQ4rF.js → OverlayScoreStateWrapperSkeleton-Dd9vXOLR.js} +18 -21
- package/chunks/OverlaySignInSkeleton-B6cvxVaO.js +493 -0
- package/chunks/{Person-OeVVOCoA.js → Person-CsUll9Ap.js} +1 -1
- package/chunks/PersonOutline-DkSg2ggu.js +8 -0
- package/chunks/{PickOneOfX-wiZPfKD5.js → PickOneOfX-DW0xvqB_.js} +3 -3
- package/chunks/{Popper-DST5zEgT.js → Popper-BIgVYC9_.js} +20 -20
- package/chunks/{Portal-DJylIbob.js → Portal-YpgOsTt5.js} +4 -4
- package/chunks/{Portal-CVkKDGuY.js → Portal-hIkg6Jk0.js} +8 -8
- package/chunks/{PrizeCard-DlK8irk1.js → PrizeCard-C1DbXnUz.js} +1743 -1215
- package/chunks/{Search-B4FMXDHP.js → Search-4IyZ7X3H.js} +1 -1
- package/chunks/{Select-DOCvesLO.js → Select-C-ZBGclx.js} +100 -99
- package/chunks/{Sheet-Co4lPFez.js → Sheet-xAhd34Jw.js} +15 -15
- package/chunks/{Spinner-00hTC1QH.js → Spinner-BL8WSLzS.js} +2 -2
- package/chunks/SplitSignInSkeleton-DrOQZhEv.js +144 -0
- package/chunks/{Stack-CB_N08X-.js → Stack-BpYjl-G4.js} +18 -18
- package/chunks/{StandardContentSkeleton-0vB361fl.js → StandardContentSkeleton-Dy2qCFCR.js} +1 -1
- package/chunks/{Table-Damdp0vr.js → Table-BPxaqsgp.js} +5 -5
- package/chunks/{Tabs-CiKqMnto.js → Tabs-Cf6gFJmP.js} +23 -22
- package/chunks/{Textarea-BuSqmmKr.js → Textarea-Bb8UgeBs.js} +191 -251
- package/chunks/{TimerOutlined-DC5foG2M.js → TimerOutlined-DHBV8b2I.js} +3 -3
- package/chunks/Tooltip-ziAUY7gh.js +534 -0
- package/chunks/Typography-3zKBmCod.js +1429 -0
- package/chunks/dividerClasses-wdRUDS30.js +9 -0
- package/chunks/elementAcceptingRef-DCjxSgGH.js +25 -0
- package/chunks/formLabelClasses-DnveRdCj.js +9 -0
- package/chunks/getReactElementRef-B3MFPBbS.js +21 -0
- package/chunks/{helpers-DQsdRliV.js → helpers-DM31-5Cj.js} +1 -1
- package/chunks/{index-B2VYQmtm.js → index-B1d7nVt2.js} +209 -218
- package/chunks/index-BWMalJJe.js +4 -0
- package/chunks/{main-D7MsMIjF.js → main-B_5xPpMJ.js} +34 -34
- package/chunks/{main-DSGHgdtY.js → main-U_h0_Bx2.js} +161 -159
- package/chunks/{ownerWindow-DbqHERs5.js → ownerWindow-PI509BpA.js} +1 -1
- package/chunks/useButton-kmQoVw9C.js +105 -0
- package/chunks/useConsents-hUMCZ2dS.js +1140 -0
- package/chunks/{useEventCallback-BDs4A_JZ.js → useEventCallback-eHGKTxMe.js} +1 -1
- package/chunks/{useForwardedInput-WirbkSwI.js → useForwardedInput-Bv2oMJpl.js} +3 -3
- package/chunks/{useImageVariant-DMs19-UC.js → useImageVariant-mC1wwdcP.js} +1 -1
- package/chunks/useSwitch-RU2h0FPQ.js +65 -0
- 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/OverlayApiErrorSkeleton-BdzLPy8g.js +0 -731
- package/chunks/OverlayLeadAfterCollection-C-rM0D5V.js +0 -678
- package/chunks/SplitLeadAfterCollection-BUX0MjWC.js +0 -236
- 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-DM31-5Cj.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-C1DbXnUz.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-BL8WSLzS.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-CU9abuei.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-DW0xvqB_.js";
|
|
10
|
+
import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-mC1wwdcP.js";
|
|
11
|
+
import { T as D } from "./chunks/Typography-3zKBmCod.js";
|
|
12
|
+
import { B as he } from "./chunks/Button-BR5lrG3T.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;
|