fansunited-frontend-components 0.0.62 → 0.0.63
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 +26 -26
- package/ClassicQuizPlay.js +20 -20
- package/CollectLead.js +6 -6
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +21 -21
- package/EventCard.d.ts +5 -0
- package/EventCard.d.ts.map +1 -0
- package/EventGamePlay.js +24 -24
- package/Leaderboard.js +38 -38
- package/MatchQuizPlay.js +27 -27
- package/PersonalityQuizPlay.js +19 -19
- package/PickThePair.js +9 -9
- package/PollVote.js +17 -17
- package/Predictor.js +23 -23
- package/README.md +95 -3
- package/Standings.js +549 -483
- package/TopX.js +23 -23
- package/chunks/{AlertMessage-BllE5qFD.js → AlertMessage-AyMEW3JL.js} +8 -8
- package/chunks/{ArrowRightAlt-BiTgdRu8.js → ArrowRightAlt-DVXOeIJN.js} +10 -10
- package/chunks/{Avatar-Cu1ble0O.js → Avatar-CBP4sabd.js} +8 -8
- package/chunks/{Button-B6AgvrNy.js → Button-DOVRR2Sy.js} +2 -2
- package/chunks/{ChanceGameEmbedVariant-Bl7wNaFK.js → ChanceGameEmbedVariant-kBcjiKzu.js} +9 -9
- package/chunks/{CheckCircle-C_5yqc7h.js → CheckCircle-ByRrHC2p.js} +1 -1
- package/chunks/{Chip-CSzCsuuk.js → Chip-DeEjQ2-F.js} +61 -61
- package/chunks/{Close-C2dB2pGH.js → Close-CS-wfAnO.js} +1 -1
- package/chunks/{Close-CWE043CX.js → Close-CdWk2nDh.js} +1 -1
- package/chunks/{CollectLeadForm-CKtdH3qh.js → CollectLeadForm-DevgGzsO.js} +18 -18
- package/chunks/{Divider-c45ALRiJ.js → Divider-D6QU-XQ5.js} +6 -6
- package/chunks/{Edit-Xp8u6TcF.js → Edit-B2N_Ry9g.js} +29 -29
- package/chunks/{EmojiEvents-BNCAK98B.js → EmojiEvents-E7Oqv7rk.js} +1 -1
- package/chunks/{FavoriteBorder-CdZKkWGo.js → FavoriteBorder-CguT2h2c.js} +1 -1
- package/chunks/{FormControl-BlUjprF0.js → FormControl-D32DP14w.js} +21 -21
- package/chunks/{FormLabel-D1zquznp.js → FormLabel-BYtvETHS.js} +8 -8
- package/chunks/{Input-DDamXXdk.js → Input-D81KBU9B.js} +7 -7
- package/chunks/{KeyboardArrowDown-DShK5Qi8.js → KeyboardArrowDown-CvGmYfHu.js} +3 -3
- package/chunks/{ModalDialog-peOKIZXc.js → ModalDialog-D63x8ebf.js} +21 -21
- package/chunks/{NotFoundSkeleton-DkcP3ObG.js → NotFoundSkeleton-B4r94g0a.js} +69 -69
- package/chunks/{Notification-CBgecz1y.js → Notification-wXJmjBSg.js} +55 -55
- package/chunks/{OverlayApiErrorSkeleton-C3AiLheZ.js → OverlayApiErrorSkeleton-DwV9wIov.js} +16 -16
- package/chunks/{OverlayLeadAfterCollection-CcBH_vMY.js → OverlayLeadAfterCollection-CI5NIwUv.js} +10 -10
- package/chunks/{OverlayScoreStateSkeleton-BpRskXm2.js → OverlayScoreStateSkeleton-wpxvfC5x.js} +10 -10
- package/chunks/{Person-BXIPCBsZ.js → Person-DvjCrwnY.js} +1 -1
- package/chunks/{PickOneOfX-Bj-i9Iwy.js → PickOneOfX-DunXqSn1.js} +3 -3
- package/chunks/{Popper-CnXuZAJ1.js → Popper-0XuEHl9i.js} +40 -40
- package/chunks/{Portal-B-rP_973.js → Portal-4mtEzZlO.js} +6 -6
- package/chunks/{PrizeCard-Cvag91fI.js → PrizeCard-CjZXXFx3.js} +1402 -1037
- package/chunks/{Select-yCMYq4lA.js → Select-B_VR6iKu.js} +91 -91
- package/chunks/{Spinner-BEesqHOM.js → Spinner-htM_pA9-.js} +2 -2
- package/chunks/{SplitLeadAfterCollection-Dk9vmxDP.js → SplitLeadAfterCollection-CowadlL1.js} +6 -6
- package/chunks/{Stack-BPy5JIhW.js → Stack-BrwF24Ji.js} +21 -21
- package/chunks/{StandardContentSkeleton-Bp1LkrOb.js → StandardContentSkeleton-Bk0sSsby.js} +1 -1
- package/chunks/{Table-Cyvn0_n2.js → Table-OBls_6ml.js} +2 -2
- package/chunks/{Tabs-DZ5ua9ky.js → Tabs-DW1eIofJ.js} +22 -22
- package/chunks/{Textarea-Cq4YoC7-.js → Textarea-DDJ2mdR3.js} +27 -27
- package/chunks/{TimerOutlined-BSRZxa7B.js → TimerOutlined-BmAAC-Vi.js} +3 -3
- package/chunks/{Typography-BiwPcU3G.js → Typography-DjxaMiey.js} +1 -1
- package/chunks/{createSvgIcon-Cj99hGqV.js → createSvgIcon-C-cmTwJ_.js} +13 -13
- package/chunks/{helpers-CK3paymG.js → helpers-B7-TtMzO.js} +1 -1
- package/chunks/index-8rxXfewU.js +4 -0
- package/chunks/{index-Bl_qkb0h.js → index-BqoOC2KB.js} +1 -1
- package/chunks/{main-D5HUCuDx.js → main-Bgyyz19Z.js} +29 -29
- package/chunks/{main-B7547bxt.js → main-C8ApxGVj.js} +134 -134
- package/chunks/{useEventCallback-C4eLmDAp.js → useEventCallback-BpsnMnDw.js} +2 -2
- package/chunks/{useForwardedInput-K05ojiXo.js → useForwardedInput-D2NH4BlT.js} +5 -5
- package/chunks/{useImageVariant-BdSPF6s1.js → useImageVariant-qiW-rMPJ.js} +1 -1
- package/chunks/{variantColorInheritance-ByHn3-Og.js → variantColorInheritance-Bgtz8MKI.js} +37 -37
- 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 +1539 -39
- package/package.json +6 -2
- package/chunks/index-CLwe4rnO.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-B7-TtMzO.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 { l as K, o as Ze, c as ve, a as ie, k as Se, B as m, u as se, I as ue, b as we, e as xe, H as Te, W as fe, j as $e, t as et, i as tt, D as ne, f as ot, C as nt, g as rt, E as lt, h as it } from "./chunks/PrizeCard-CjZXXFx3.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-htM_pA9-.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-B4r94g0a.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-DunXqSn1.js";
|
|
10
|
+
import { b as pe, d as He, a as Ne } from "./chunks/useImageVariant-qiW-rMPJ.js";
|
|
11
|
+
import { T as D } from "./chunks/Typography-DjxaMiey.js";
|
|
12
|
+
import { B as he } from "./chunks/Button-DOVRR2Sy.js";
|
|
13
13
|
const ke = ({
|
|
14
14
|
children: e,
|
|
15
15
|
brandingBorderColor: s,
|
|
@@ -68,9 +68,9 @@ const ke = ({
|
|
|
68
68
|
showInlineResult: k,
|
|
69
69
|
hasEntered: $,
|
|
70
70
|
confettiActive: z,
|
|
71
|
-
spinDuration:
|
|
72
|
-
shakeAnimationDuration:
|
|
73
|
-
confettiVelocityMultiplier:
|
|
71
|
+
spinDuration: j,
|
|
72
|
+
shakeAnimationDuration: P,
|
|
73
|
+
confettiVelocityMultiplier: U,
|
|
74
74
|
confettiGravity: A,
|
|
75
75
|
handleSpin: I,
|
|
76
76
|
handleReset: v,
|
|
@@ -89,7 +89,7 @@ const ke = ({
|
|
|
89
89
|
{
|
|
90
90
|
active: z,
|
|
91
91
|
primaryColor: r,
|
|
92
|
-
velocityMultiplier:
|
|
92
|
+
velocityMultiplier: U,
|
|
93
93
|
gravity: A,
|
|
94
94
|
onComplete: ee
|
|
95
95
|
}
|
|
@@ -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 ${P / 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: j
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
295
|
!y && !h && n && /* @__PURE__ */ t(
|
|
@@ -702,7 +702,7 @@ const ke = ({
|
|
|
702
702
|
compactCards: g = !1
|
|
703
703
|
}) => {
|
|
704
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 || {},
|
|
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 || {}, j = k.mode || ((Fe = k.config) == null ? void 0 : Fe.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
|
}), {
|
|
@@ -717,11 +717,11 @@ const ke = ({
|
|
|
717
717
|
crossfadedCards: oe,
|
|
718
718
|
revealedOtherCards: ce,
|
|
719
719
|
flipDuration: Xe,
|
|
720
|
-
crossfadeDuration:
|
|
721
|
-
loseAnimationDuration:
|
|
720
|
+
crossfadeDuration: je,
|
|
721
|
+
loseAnimationDuration: Pe,
|
|
722
722
|
handlePick: Re,
|
|
723
723
|
handleReset: ge
|
|
724
|
-
} = pt({ segments: $, mode:
|
|
724
|
+
} = pt({ segments: $, mode: j, pace: P, revealAll: U }), ze = () => /* @__PURE__ */ w(re, { children: [
|
|
725
725
|
A && /* @__PURE__ */ t(
|
|
726
726
|
Ge,
|
|
727
727
|
{
|
|
@@ -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), Ue = 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: je,
|
|
960
960
|
isStandard: f,
|
|
961
961
|
primaryColor: r,
|
|
962
962
|
dangerColor: d,
|
|
@@ -970,14 +970,14 @@ const ke = ({
|
|
|
970
970
|
selectedSegment: v,
|
|
971
971
|
isFlipped: Be,
|
|
972
972
|
isOtherRevealed: me,
|
|
973
|
-
shouldDim:
|
|
973
|
+
shouldDim: Ue,
|
|
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: Pe,
|
|
981
981
|
cardBaseColor: E,
|
|
982
982
|
shimmerColor: M,
|
|
983
983
|
primaryColor: r,
|
|
@@ -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, $, z, P, U,
|
|
1310
|
+
var f, L, H, W, B, T, N, b, X, R, k, $, z, j, P, U, A, I, v;
|
|
1311
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 = (U = (P = (j = (z = o.colorSchemes) == null ? void 0 : z.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: _,
|
|
@@ -1470,14 +1470,14 @@ const ke = ({
|
|
|
1470
1470
|
enableReset: s = !1,
|
|
1471
1471
|
defaultImagePlaceholderUrl: a
|
|
1472
1472
|
}) => {
|
|
1473
|
-
var L, H, W, B, T, N, b, X, R, k, $, z, P, U,
|
|
1473
|
+
var L, H, W, B, T, N, b, X, R, k, $, z, j, P, U, A, I, v, ee, te, Y, G, q, V, Q, oe, ce;
|
|
1474
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), _ = (P = (j = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.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,
|
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, 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-CjZXXFx3.js";
|
|
4
|
+
import { P as h0 } from "./chunks/Portal-4mtEzZlO.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-B7-TtMzO.js";
|
|
7
|
+
import { S as L0 } from "./chunks/Spinner-htM_pA9-.js";
|
|
8
|
+
import { S as I0, a as w0, b as r0, C as X2, c as e0 } from "./chunks/ChanceGameEmbedVariant-kBcjiKzu.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-DVXOeIJN.js";
|
|
11
|
+
import { A as w2, O as F0, S as B0, N as P0 } from "./chunks/NotFoundSkeleton-B4r94g0a.js";
|
|
12
|
+
import { u as M2, d as b2, a as L2, b as f2 } from "./chunks/useImageVariant-qiW-rMPJ.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-DjxaMiey.js";
|
|
15
|
+
import { T as T0 } from "./chunks/TimerOutlined-BmAAC-Vi.js";
|
|
16
|
+
import { C as Q0 } from "./chunks/CollectLeadForm-DevgGzsO.js";
|
|
17
|
+
import { B as E } from "./chunks/Button-DOVRR2Sy.js";
|
|
18
|
+
import { R as U2, A as V2, O as c0, S as s0 } from "./chunks/OverlayApiErrorSkeleton-DwV9wIov.js";
|
|
19
|
+
import { S as t0 } from "./chunks/StandardContentSkeleton-Bk0sSsby.js";
|
|
20
|
+
import { T as k0, a as M0, b as n0, t as i0, c as a0 } from "./chunks/Tabs-DW1eIofJ.js";
|
|
21
|
+
import { C as v0 } from "./chunks/CheckCircle-ByRrHC2p.js";
|
|
22
|
+
import { A as D0, I as R0, W as H0 } from "./chunks/AlertMessage-AyMEW3JL.js";
|
|
23
|
+
import { S as Z0 } from "./chunks/Stack-BrwF24Ji.js";
|
|
24
|
+
import { S as p0, O as _0, a as q0, b as E0 } from "./chunks/OverlayLeadAfterCollection-CI5NIwUv.js";
|
|
25
|
+
import { S as W0, a as U0 } from "./chunks/SplitLeadAfterCollection-CowadlL1.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 { 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-CjZXXFx3.js";
|
|
4
|
+
import { P as se } from "./chunks/Portal-4mtEzZlO.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-B7-TtMzO.js";
|
|
7
|
+
import { d as le, a as ae, b as ee } from "./chunks/useImageVariant-qiW-rMPJ.js";
|
|
8
|
+
import { T as u } from "./chunks/Typography-DjxaMiey.js";
|
|
9
|
+
import { C as fe } from "./chunks/CollectLeadForm-DevgGzsO.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
package/EitherOrPlay.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as t, jsxs as g, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import { useState as D, useEffect as me, useRef as qe, useCallback as Oe } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { P as Vt } from "./chunks/Portal-
|
|
3
|
+
import { r as Ce, b as be, q as ze, B as r, u as se, l as xe, a as K, c as fe, e as pe, J as Ht, j as Me, k as jt, W as Se, s as St, i as Gt } from "./chunks/PrizeCard-CjZXXFx3.js";
|
|
4
|
+
import { P as Vt } from "./chunks/Portal-4mtEzZlO.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { S as He } from "./chunks/Spinner-
|
|
6
|
+
import { S as He } from "./chunks/Spinner-htM_pA9-.js";
|
|
7
7
|
import { Z as Nt } from "./chunks/index-BBrO1Htm.js";
|
|
8
|
-
import { g as Yt, h as re, e as je, a as Ct } from "./chunks/helpers-
|
|
9
|
-
import { S as _t, N as qt, O as Kt } from "./chunks/NotFoundSkeleton-
|
|
10
|
-
import { u as Xt, b as Ge, d as Ke, a as Xe } from "./chunks/useImageVariant-
|
|
11
|
-
import { A as Ze, O as Zt } from "./chunks/ArrowRightAlt-
|
|
12
|
-
import { T as x } from "./chunks/Typography-
|
|
13
|
-
import { F as Fe, a as It } from "./chunks/FavoriteBorder-
|
|
14
|
-
import { E as Pe } from "./chunks/EmojiEvents-
|
|
15
|
-
import { B as ge } from "./chunks/Button-
|
|
16
|
-
import { C as Ne } from "./chunks/CheckCircle-
|
|
17
|
-
import { T as Jt } from "./chunks/TimerOutlined-
|
|
18
|
-
import { S as we } from "./chunks/Stack-
|
|
19
|
-
import { A as Qt, S as Tt, O as en } from "./chunks/OverlayApiErrorSkeleton-
|
|
20
|
-
import { P as tn } from "./chunks/Person-
|
|
21
|
-
import { S as nn, T as rn } from "./chunks/Table-
|
|
22
|
-
import { A as on } from "./chunks/Avatar-
|
|
23
|
-
import { t as vt, T as Pt, a as kt, b as Ee, c as We } from "./chunks/Tabs-
|
|
24
|
-
import { S as ln, a as an, O as sn, b as cn } from "./chunks/OverlayLeadAfterCollection-
|
|
25
|
-
import { C as dn } from "./chunks/CollectLeadForm-
|
|
8
|
+
import { g as Yt, h as re, e as je, a as Ct } from "./chunks/helpers-B7-TtMzO.js";
|
|
9
|
+
import { S as _t, N as qt, O as Kt } from "./chunks/NotFoundSkeleton-B4r94g0a.js";
|
|
10
|
+
import { u as Xt, b as Ge, d as Ke, a as Xe } from "./chunks/useImageVariant-qiW-rMPJ.js";
|
|
11
|
+
import { A as Ze, O as Zt } from "./chunks/ArrowRightAlt-DVXOeIJN.js";
|
|
12
|
+
import { T as x } from "./chunks/Typography-DjxaMiey.js";
|
|
13
|
+
import { F as Fe, a as It } from "./chunks/FavoriteBorder-CguT2h2c.js";
|
|
14
|
+
import { E as Pe } from "./chunks/EmojiEvents-E7Oqv7rk.js";
|
|
15
|
+
import { B as ge } from "./chunks/Button-DOVRR2Sy.js";
|
|
16
|
+
import { C as Ne } from "./chunks/CheckCircle-ByRrHC2p.js";
|
|
17
|
+
import { T as Jt } from "./chunks/TimerOutlined-BmAAC-Vi.js";
|
|
18
|
+
import { S as we } from "./chunks/Stack-BrwF24Ji.js";
|
|
19
|
+
import { A as Qt, S as Tt, O as en } from "./chunks/OverlayApiErrorSkeleton-DwV9wIov.js";
|
|
20
|
+
import { P as tn } from "./chunks/Person-DvjCrwnY.js";
|
|
21
|
+
import { S as nn, T as rn } from "./chunks/Table-OBls_6ml.js";
|
|
22
|
+
import { A as on } from "./chunks/Avatar-CBP4sabd.js";
|
|
23
|
+
import { t as vt, T as Pt, a as kt, b as Ee, c as We } from "./chunks/Tabs-DW1eIofJ.js";
|
|
24
|
+
import { S as ln, a as an, O as sn, b as cn } from "./chunks/OverlayLeadAfterCollection-CI5NIwUv.js";
|
|
25
|
+
import { C as dn } from "./chunks/CollectLeadForm-DevgGzsO.js";
|
|
26
26
|
const un = Ce([/* @__PURE__ */ t("path", {
|
|
27
27
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
|
|
28
28
|
}, "0"), /* @__PURE__ */ t("path", {
|
package/EventCard.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../src/EventCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAsB,CAAC"}
|
package/EventGamePlay.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import Je, { useState as Q, useEffect as je, useRef as At, createContext as zt, useCallback as et, useMemo as Ve } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { P as Bt } from "./chunks/Portal-
|
|
3
|
+
import { l as Y, c as J, a as p, k as He, B as i, b as q, e as ae, j as ue, u as ne, m as We, q as Se, n as It, w as Dt, p as Mt, W as le, s as Ee, o as kt } from "./chunks/PrizeCard-CjZXXFx3.js";
|
|
4
|
+
import { P as Bt } from "./chunks/Portal-4mtEzZlO.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as Ht, h as N, e as tt, s as Le, a as Wt, b as Et } from "./chunks/helpers-
|
|
7
|
-
import { S as Ft } from "./chunks/Spinner-
|
|
8
|
-
import { a as $t, b as Lt, S as Ut, C as xt, c as yt } from "./chunks/ChanceGameEmbedVariant-
|
|
9
|
-
import { N as Xe } from "./chunks/Notification-
|
|
6
|
+
import { g as Ht, h as N, e as tt, s as Le, a as Wt, b as Et } from "./chunks/helpers-B7-TtMzO.js";
|
|
7
|
+
import { S as Ft } from "./chunks/Spinner-htM_pA9-.js";
|
|
8
|
+
import { a as $t, b as Lt, S as Ut, C as xt, c as yt } from "./chunks/ChanceGameEmbedVariant-kBcjiKzu.js";
|
|
9
|
+
import { N as Xe } from "./chunks/Notification-wXJmjBSg.js";
|
|
10
10
|
import { L as Vt, G as W, q as jt } from "./chunks/index-BBrO1Htm.js";
|
|
11
|
-
import { T as ht, D as Nt, S as Tt, R as Ue, N as Ot, O as qt } from "./chunks/NotFoundSkeleton-
|
|
12
|
-
import { b as Ce, d as Me, a as Be } from "./chunks/useImageVariant-
|
|
13
|
-
import { T as x } from "./chunks/Typography-
|
|
14
|
-
import { K as Yt, a as _t, H as Zt, D as Xt, E as Kt } from "./chunks/Edit-
|
|
15
|
-
import { I as De, B as Re } from "./chunks/Button-
|
|
16
|
-
import { I as wt } from "./chunks/Input-
|
|
17
|
-
import { S as Qt, a as Jt } from "./chunks/Select-
|
|
18
|
-
import { C as en } from "./chunks/Close-
|
|
19
|
-
import { M as tn, a as nn } from "./chunks/ModalDialog-
|
|
20
|
-
import { S as Rt, T as pt } from "./chunks/Table-
|
|
21
|
-
import { A as Qe, S as an, O as on } from "./chunks/OverlayApiErrorSkeleton-
|
|
22
|
-
import { C as ln } from "./chunks/CheckCircle-
|
|
23
|
-
import { A as rn, I as cn, W as dn } from "./chunks/AlertMessage-
|
|
24
|
-
import { S as sn } from "./chunks/Stack-
|
|
25
|
-
import { T as mn, a as gn, b as bt, t as St, c as Ct } from "./chunks/Tabs-
|
|
26
|
-
import { P as vt } from "./chunks/Person-
|
|
27
|
-
import { A as Pt } from "./chunks/Avatar-
|
|
11
|
+
import { T as ht, D as Nt, S as Tt, R as Ue, N as Ot, O as qt } from "./chunks/NotFoundSkeleton-B4r94g0a.js";
|
|
12
|
+
import { b as Ce, d as Me, a as Be } from "./chunks/useImageVariant-qiW-rMPJ.js";
|
|
13
|
+
import { T as x } from "./chunks/Typography-DjxaMiey.js";
|
|
14
|
+
import { K as Yt, a as _t, H as Zt, D as Xt, E as Kt } from "./chunks/Edit-B2N_Ry9g.js";
|
|
15
|
+
import { I as De, B as Re } from "./chunks/Button-DOVRR2Sy.js";
|
|
16
|
+
import { I as wt } from "./chunks/Input-D81KBU9B.js";
|
|
17
|
+
import { S as Qt, a as Jt } from "./chunks/Select-B_VR6iKu.js";
|
|
18
|
+
import { C as en } from "./chunks/Close-CdWk2nDh.js";
|
|
19
|
+
import { M as tn, a as nn } from "./chunks/ModalDialog-D63x8ebf.js";
|
|
20
|
+
import { S as Rt, T as pt } from "./chunks/Table-OBls_6ml.js";
|
|
21
|
+
import { A as Qe, S as an, O as on } from "./chunks/OverlayApiErrorSkeleton-DwV9wIov.js";
|
|
22
|
+
import { C as ln } from "./chunks/CheckCircle-ByRrHC2p.js";
|
|
23
|
+
import { A as rn, I as cn, W as dn } from "./chunks/AlertMessage-AyMEW3JL.js";
|
|
24
|
+
import { S as sn } from "./chunks/Stack-BrwF24Ji.js";
|
|
25
|
+
import { T as mn, a as gn, b as bt, t as St, c as Ct } from "./chunks/Tabs-DW1eIofJ.js";
|
|
26
|
+
import { P as vt } from "./chunks/Person-DvjCrwnY.js";
|
|
27
|
+
import { A as Pt } from "./chunks/Avatar-CBP4sabd.js";
|
|
28
28
|
import { C as un, a as fn } from "./chunks/chevron-right-B3IZtaMT.js";
|
|
29
|
-
import { O as xn } from "./chunks/OverlayScoreStateSkeleton-
|
|
29
|
+
import { O as xn } from "./chunks/OverlayScoreStateSkeleton-wpxvfC5x.js";
|
|
30
30
|
const yn = (e, n, a) => {
|
|
31
31
|
const [r, c] = Q(null), [d, f] = Q(null), o = async () => {
|
|
32
32
|
try {
|
package/Leaderboard.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsxs as R, jsx as i, Fragment as se } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { u as D,
|
|
4
|
-
import { a as J } from "./chunks/AlertMessage-
|
|
2
|
+
import z, { useState as B, useEffect as Q, useCallback as pe, useMemo as _ } from "react";
|
|
3
|
+
import { u as D, m as fe, n as me, w as he, a as X, c as ce, b as O, e as j, B as L, j as de, q as ge, i as be, f as ye, C as xe, g as Ce, E as ve, h as Te } from "./chunks/PrizeCard-CjZXXFx3.js";
|
|
4
|
+
import { a as J } from "./chunks/AlertMessage-AyMEW3JL.js";
|
|
5
5
|
import { createPortal as Pe } from "react-dom";
|
|
6
|
-
import { F as Se } from "./chunks/FormLabel-
|
|
7
|
-
import { T as I } from "./chunks/Typography-
|
|
8
|
-
import { S as we, a as Re } from "./chunks/Select-
|
|
9
|
-
import { P as K } from "./chunks/Person-
|
|
10
|
-
import { h as U, s as Ee } from "./chunks/helpers-
|
|
11
|
-
import { S as Ae } from "./chunks/Spinner-
|
|
12
|
-
import { S as Ie, T as Le } from "./chunks/Table-
|
|
13
|
-
import { A as ee } from "./chunks/Avatar-
|
|
14
|
-
import { I as H, B as te } from "./chunks/Button-
|
|
15
|
-
import { C as
|
|
6
|
+
import { F as Se } from "./chunks/FormLabel-BYtvETHS.js";
|
|
7
|
+
import { T as I } from "./chunks/Typography-DjxaMiey.js";
|
|
8
|
+
import { S as we, a as Re } from "./chunks/Select-B_VR6iKu.js";
|
|
9
|
+
import { P as K } from "./chunks/Person-DvjCrwnY.js";
|
|
10
|
+
import { h as U, s as Ee } from "./chunks/helpers-B7-TtMzO.js";
|
|
11
|
+
import { S as Ae } from "./chunks/Spinner-htM_pA9-.js";
|
|
12
|
+
import { S as Ie, T as Le } from "./chunks/Table-OBls_6ml.js";
|
|
13
|
+
import { A as ee } from "./chunks/Avatar-CBP4sabd.js";
|
|
14
|
+
import { I as H, B as te } from "./chunks/Button-DOVRR2Sy.js";
|
|
15
|
+
import { C as Me, a as ze } from "./chunks/chevrons-right-CRIN5sOe.js";
|
|
16
16
|
import { C as Be, a as Fe } from "./chunks/chevron-right-B3IZtaMT.js";
|
|
17
17
|
const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()).join(" "), $e = ({
|
|
18
18
|
options: e,
|
|
19
19
|
selectedId: t,
|
|
20
20
|
onChange: a
|
|
21
21
|
}) => {
|
|
22
|
-
const { t: r } = D(), { shadowRootElement: o } = fe(me), b = he(), y = X(), d = ce(), c = O().primary, h =
|
|
22
|
+
const { t: r } = D(), { shadowRootElement: o } = fe(me), b = he(), y = X(), d = ce(), c = O().primary, h = j(), v = y.textColor, u = {
|
|
23
23
|
background: {
|
|
24
24
|
surface: b.colorSchemes.light.palette.background.surface,
|
|
25
25
|
popup: b.colorSchemes.light.palette.background.popup
|
|
@@ -146,7 +146,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
146
146
|
brandingColors: y,
|
|
147
147
|
rankStyles: d
|
|
148
148
|
}) => {
|
|
149
|
-
const { t: c } = D(), h = de(), v = X(), u = (y == null ? void 0 : y.primaryColor) || v.palette.primary.plainColor, x = (y == null ? void 0 : y.contentColor) || v.textColor, E = v.textColor, w = O().primary, p = O().secondary, C = ce(), P =
|
|
149
|
+
const { t: c } = D(), h = de(), v = X(), u = (y == null ? void 0 : y.primaryColor) || v.palette.primary.plainColor, x = (y == null ? void 0 : y.contentColor) || v.textColor, E = v.textColor, w = O().primary, p = O().secondary, C = ce(), P = j(), f = ge(), l = v.surfaceVariant, n = h.colorSchemes.light.palette.primary.onPrimary, m = v.outlineEnabledBorder, s = {
|
|
150
150
|
leaderboardContainer: {
|
|
151
151
|
display: "flex",
|
|
152
152
|
flexDirection: "column",
|
|
@@ -369,7 +369,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
369
369
|
] }),
|
|
370
370
|
e.map((g, A) => {
|
|
371
371
|
var N, V, Y, q;
|
|
372
|
-
const
|
|
372
|
+
const M = S === g.profileId, ue = M ? s.userRow : d == null ? void 0 : d[A + 1];
|
|
373
373
|
return /* @__PURE__ */ R("tr", { style: ue, children: [
|
|
374
374
|
/* @__PURE__ */ i("td", { style: s.tableCellPosition, children: /* @__PURE__ */ R(I, { sx: s.positionText, children: [
|
|
375
375
|
"#",
|
|
@@ -384,7 +384,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
384
384
|
children: (V = g.profileModel) != null && V.avatar ? /* @__PURE__ */ i(se, {}) : /* @__PURE__ */ i(K, { sx: s.avatarIcon })
|
|
385
385
|
}
|
|
386
386
|
),
|
|
387
|
-
/* @__PURE__ */ i(I, { sx: s.nameText, children:
|
|
387
|
+
/* @__PURE__ */ i(I, { sx: s.nameText, children: M ? c("leaderboard.you") : ((Y = g.profileModel) == null ? void 0 : Y.nickname) || ((q = g.profileModel) == null ? void 0 : q.name) || c("leaderboard.anonymous") })
|
|
388
388
|
] }) }),
|
|
389
389
|
/* @__PURE__ */ i("td", { style: s.tableCellPoints, children: /* @__PURE__ */ i(I, { sx: s.pointsText, children: g.points }) })
|
|
390
390
|
] }, g.profileId);
|
|
@@ -503,7 +503,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
503
503
|
onClick: () => u(1),
|
|
504
504
|
disabled: c || t === 1,
|
|
505
505
|
sx: f(),
|
|
506
|
-
children: /* @__PURE__ */ i(
|
|
506
|
+
children: /* @__PURE__ */ i(Me, { size: C })
|
|
507
507
|
}
|
|
508
508
|
),
|
|
509
509
|
/* @__PURE__ */ i(
|
|
@@ -579,13 +579,13 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
579
579
|
onClick: () => u(e),
|
|
580
580
|
disabled: c || t === e,
|
|
581
581
|
sx: f(),
|
|
582
|
-
children: /* @__PURE__ */ i(
|
|
582
|
+
children: /* @__PURE__ */ i(ze, { size: C })
|
|
583
583
|
}
|
|
584
584
|
)
|
|
585
585
|
]
|
|
586
586
|
}
|
|
587
587
|
);
|
|
588
|
-
}, $ = "ALL",
|
|
588
|
+
}, $ = "ALL", G = (e) => ({
|
|
589
589
|
currentPage: e.currentPage,
|
|
590
590
|
totalPages: e.numberOfPages,
|
|
591
591
|
totalItems: e.totalItems,
|
|
@@ -640,7 +640,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
640
640
|
const o = await t.loyalty.getLeaderboardForGame(e, { page: a, limit: r });
|
|
641
641
|
return {
|
|
642
642
|
leaderboard: Z(o.data),
|
|
643
|
-
pagination:
|
|
643
|
+
pagination: G(o.meta.pagination)
|
|
644
644
|
};
|
|
645
645
|
}, Oe = async (e, t, a, r) => {
|
|
646
646
|
const o = await t.loyalty.getLeaderboard(
|
|
@@ -649,7 +649,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
649
649
|
);
|
|
650
650
|
return {
|
|
651
651
|
leaderboard: Z(o.data),
|
|
652
|
-
pagination:
|
|
652
|
+
pagination: G(o.meta.pagination)
|
|
653
653
|
};
|
|
654
654
|
}, W = async (e, t, a, r) => {
|
|
655
655
|
const o = await t.miniGames.getLeaderboardForClassicQuizzes({
|
|
@@ -659,7 +659,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
659
659
|
});
|
|
660
660
|
return {
|
|
661
661
|
leaderboard: Z(o.data),
|
|
662
|
-
pagination:
|
|
662
|
+
pagination: G(o.meta.pagination)
|
|
663
663
|
};
|
|
664
664
|
}, le = (e, t, a, r) => {
|
|
665
665
|
const o = e.type.toUpperCase();
|
|
@@ -687,7 +687,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
687
687
|
}, Xe = (e, t, a) => {
|
|
688
688
|
const r = e.type.toUpperCase();
|
|
689
689
|
return r === "TOP_X" || r === "MATCH_QUIZ" || r === "TEMPLATE" ? We(e.id, t, e.type) : De(e.id, t, a);
|
|
690
|
-
},
|
|
690
|
+
}, je = (e, t, a, r = 10) => {
|
|
691
691
|
const [o, b] = B({}), [y, d] = B(null), [c, h] = B(!1), [v, u] = B(!1), [x, E] = B(
|
|
692
692
|
null
|
|
693
693
|
), [w, p] = B(null);
|
|
@@ -747,7 +747,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
747
747
|
try {
|
|
748
748
|
const n = e.length > 1 && e.every((g) => g.type.toUpperCase() === "CLASSIC_QUIZ");
|
|
749
749
|
if (a === $ && n) {
|
|
750
|
-
const g = e.map((
|
|
750
|
+
const g = e.map((M) => M.id), A = await W(
|
|
751
751
|
g,
|
|
752
752
|
t,
|
|
753
753
|
1,
|
|
@@ -814,7 +814,7 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
814
814
|
Object.entries(o).map(([f, l]) => [f, l.title])
|
|
815
815
|
);
|
|
816
816
|
return { data: y, entityTitles: P, loading: c, error: v, setPage: C, userRank: w };
|
|
817
|
-
}, k = "ALL", ie = ["TOP_X", "MATCH_QUIZ", "TEMPLATE", "CLASSIC_QUIZ"],
|
|
817
|
+
}, k = "ALL", ie = ["TOP_X", "MATCH_QUIZ", "TEMPLATE", "CLASSIC_QUIZ"], Ge = (e, t) => {
|
|
818
818
|
if (!Array.isArray(e) || e.length === 0)
|
|
819
819
|
return "The 'entities' setting is required and must be a non-empty array.";
|
|
820
820
|
const a = /* @__PURE__ */ new Set();
|
|
@@ -841,17 +841,17 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
841
841
|
showHeading: b = !0
|
|
842
842
|
}) => {
|
|
843
843
|
var g;
|
|
844
|
-
const { t: y } = D(), d =
|
|
845
|
-
() =>
|
|
844
|
+
const { t: y } = D(), d = j(), c = X().surface, h = _(
|
|
845
|
+
() => Ge(e, a),
|
|
846
846
|
[e, a]
|
|
847
847
|
), v = _(
|
|
848
848
|
() => !h && e.length > 1 && e.every((A) => A.type.toUpperCase() === "CLASSIC_QUIZ"),
|
|
849
849
|
[e, h]
|
|
850
850
|
), u = o && v, x = v ? k : ((g = e[0]) == null ? void 0 : g.id) || "", [E, w] = B(x);
|
|
851
851
|
Q(() => {
|
|
852
|
-
E === k || e.some((
|
|
852
|
+
E === k || e.some((M) => M.id === E) || w(x);
|
|
853
853
|
}, [e]);
|
|
854
|
-
const { data: p, entityTitles: C, loading: P, error: f, setPage: l, userRank: n } =
|
|
854
|
+
const { data: p, entityTitles: C, loading: P, error: f, setPage: l, userRank: n } = je(
|
|
855
855
|
h ? [] : e,
|
|
856
856
|
t,
|
|
857
857
|
h ? "" : E,
|
|
@@ -859,11 +859,11 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
859
859
|
), m = _(() => {
|
|
860
860
|
if (h) return [];
|
|
861
861
|
const A = [];
|
|
862
|
-
return v && A.push({ id: k, label: y("leaderboard.overall") }), e.forEach((
|
|
862
|
+
return v && A.push({ id: k, label: y("leaderboard.overall") }), e.forEach((M) => {
|
|
863
863
|
A.push({
|
|
864
|
-
id:
|
|
865
|
-
label: C[
|
|
866
|
-
type:
|
|
864
|
+
id: M.id,
|
|
865
|
+
label: C[M.id] ?? "",
|
|
866
|
+
type: M.type.toUpperCase()
|
|
867
867
|
});
|
|
868
868
|
}), A;
|
|
869
869
|
}, [e, v, y, C, h]), s = e.every((A) => C[A.id] !== void 0), T = !h && !u && (e.length > 1 || v) && s, S = (p == null ? void 0 : p.pagination) || null, F = E === k ? y("leaderboard.overall") : (p == null ? void 0 : p.title) || null;
|
|
@@ -925,12 +925,12 @@ const Ue = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
925
925
|
);
|
|
926
926
|
}, Ne = (e) => {
|
|
927
927
|
var x;
|
|
928
|
-
const [t, a] =
|
|
928
|
+
const [t, a] = z.useState(!1), [r, o] = z.useState(!1), b = z.useRef(
|
|
929
929
|
`leaderboard-shadow-root-${Math.random().toString(36).substring(2, 11)}`
|
|
930
|
-
), y =
|
|
931
|
-
|
|
930
|
+
), y = z.useRef(null), d = z.useRef(null), c = z.useRef(null), h = z.useRef(null);
|
|
931
|
+
z.useEffect(() => {
|
|
932
932
|
be(e.language || "en").finally(() => o(!0));
|
|
933
|
-
}, [e.language]),
|
|
933
|
+
}, [e.language]), z.useEffect(() => {
|
|
934
934
|
if (y.current)
|
|
935
935
|
return y.current.shadowRoot ? (d.current = y.current.shadowRoot, c.current = d.current.getElementById(
|
|
936
936
|
b.current
|