fansunited-frontend-components 0.0.31-RC6 → 0.0.31-RC7
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/ClassicQuizPlay.js +27 -28
- package/CollectLead.js +56 -57
- package/EventGamePlay.js +200 -201
- package/MatchQuizPlay.js +52 -53
- package/PollVote.js +26 -28
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/{OverlayLeadAfterCollection-DnqztPJ5.js → OverlayLeadAfterCollection-Bjh1xAB5.js} +37 -38
- package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd.js → OverlayScoreStateSkeleton-Cha5KeNi.js} +4 -5
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/chunks/CollectLeadForm-DtmR2Vuf.js +0 -844
- package/chunks/Error-DhQL89pn.js +0 -120
- package/chunks/NotFoundSkeleton-BYJTzYJR.js +0 -2425
- package/chunks/Portal-BWqqFvVm.js +0 -13823
package/ClassicQuizPlay.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsxs as B, Fragment as X, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import m2, { useState as T, useEffect as R2, useCallback as C0, useRef as a0, useMemo as n0 } from "react";
|
|
3
|
-
import { i as v, u as C2, a as s2,
|
|
4
|
-
import { O as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { S as p0, a as J0, O as Y0, b as M0, c as q0, d as L0 } from "./chunks/OverlayLeadAfterCollection-DnqztPJ5.js";
|
|
3
|
+
import { i as v, B as t, u as C2, a as s2, ab as q2, d as F, c as b, b as o2, m as L2, b5 as H2, T as E, g as c0, t as S2, k as z2, ad as W2, af as G2, ae as j, j as x2, f as Q2, W as O, ag as q, b4 as I0, ah as r0, h as V2, s as s0, ai as Q0, aj as B0, ak as K0, al as E0, am as h0, b6 as U0, e as t0, l as l0, ao as d0, P as f0 } from "./chunks/Portal-DegkUXpU.js";
|
|
4
|
+
import { U as S0, p as M2, A as F2, O as F0, S as R0, a as w0, f as O2, d as j2, g as y0, N as u0, i as k0, j as D0, k as V0, l as m0 } from "./chunks/index-DUQ2LFod.js";
|
|
5
|
+
import { C as H0 } from "./chunks/CollectLeadForm-C_3plJtn.js";
|
|
6
|
+
import { T as x0, a as P0, b as A0, t as e0, c as i0 } from "./chunks/Tabs-leN3Fb8D.js";
|
|
7
|
+
import { S as p0, a as J0, O as Y0, b as M0, c as q0, d as L0 } from "./chunks/OverlayLeadAfterCollection-Bjh1xAB5.js";
|
|
9
8
|
const z0 = (A) => ({
|
|
10
9
|
// Image container (left position)
|
|
11
10
|
imageContainerLeft: {
|
|
@@ -140,7 +139,7 @@ const z0 = (A) => ({
|
|
|
140
139
|
const g = await o.miniGames.getClassicQuizById(A, !0, !0);
|
|
141
140
|
n(g);
|
|
142
141
|
} catch (g) {
|
|
143
|
-
console.error(g), n(new
|
|
142
|
+
console.error(g), n(new S0());
|
|
144
143
|
}
|
|
145
144
|
};
|
|
146
145
|
return R2(() => (a(), () => n(null)), [A, o]), l;
|
|
@@ -595,7 +594,7 @@ const z0 = (A) => ({
|
|
|
595
594
|
onClick: K
|
|
596
595
|
};
|
|
597
596
|
return /* @__PURE__ */ e(
|
|
598
|
-
|
|
597
|
+
H0,
|
|
599
598
|
{
|
|
600
599
|
sdk: A,
|
|
601
600
|
content: {
|
|
@@ -876,7 +875,7 @@ const z0 = (A) => ({
|
|
|
876
875
|
);
|
|
877
876
|
};
|
|
878
877
|
return /* @__PURE__ */ e(
|
|
879
|
-
|
|
878
|
+
F0,
|
|
880
879
|
{
|
|
881
880
|
entity: A.classicQuiz,
|
|
882
881
|
headline: h("classicQuiz.headline"),
|
|
@@ -1337,7 +1336,7 @@ const z0 = (A) => ({
|
|
|
1337
1336
|
D(l2 || R, !0)
|
|
1338
1337
|
] });
|
|
1339
1338
|
return /* @__PURE__ */ e(I2, { brandingBorderColor: (c == null ? void 0 : c.borderColor) || null, children: /* @__PURE__ */ e(
|
|
1340
|
-
|
|
1339
|
+
R0,
|
|
1341
1340
|
{
|
|
1342
1341
|
entity: A.classicQuiz,
|
|
1343
1342
|
headline: K("classicQuiz.headline"),
|
|
@@ -1652,7 +1651,7 @@ const z0 = (A) => ({
|
|
|
1652
1651
|
) });
|
|
1653
1652
|
return /* @__PURE__ */ B(I2, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: [
|
|
1654
1653
|
/* @__PURE__ */ e(
|
|
1655
|
-
|
|
1654
|
+
w0,
|
|
1656
1655
|
{
|
|
1657
1656
|
entity: A.classicQuiz,
|
|
1658
1657
|
headline: c("classicQuiz.headline"),
|
|
@@ -1979,7 +1978,7 @@ const z0 = (A) => ({
|
|
|
1979
1978
|
);
|
|
1980
1979
|
};
|
|
1981
1980
|
return /* @__PURE__ */ e(t, { sx: { width: "100%" }, children: /* @__PURE__ */ B(
|
|
1982
|
-
|
|
1981
|
+
x0,
|
|
1983
1982
|
{
|
|
1984
1983
|
value: I,
|
|
1985
1984
|
onChange: (k, p) => K(p),
|
|
@@ -1991,7 +1990,7 @@ const z0 = (A) => ({
|
|
|
1991
1990
|
},
|
|
1992
1991
|
children: [
|
|
1993
1992
|
/* @__PURE__ */ B(
|
|
1994
|
-
|
|
1993
|
+
P0,
|
|
1995
1994
|
{
|
|
1996
1995
|
sx: {
|
|
1997
1996
|
fontSize: "1em",
|
|
@@ -2524,11 +2523,11 @@ const z0 = (A) => ({
|
|
|
2524
2523
|
}), nA = (A, o) => {
|
|
2525
2524
|
switch (A) {
|
|
2526
2525
|
case "success":
|
|
2527
|
-
return /* @__PURE__ */ e(
|
|
2526
|
+
return /* @__PURE__ */ e(h0, {});
|
|
2528
2527
|
case "error":
|
|
2529
|
-
return /* @__PURE__ */ e(
|
|
2528
|
+
return /* @__PURE__ */ e(E0, { sx: { color: o } });
|
|
2530
2529
|
case "info":
|
|
2531
|
-
return /* @__PURE__ */ e(
|
|
2530
|
+
return /* @__PURE__ */ e(K0, {});
|
|
2532
2531
|
}
|
|
2533
2532
|
}, tA = (A) => {
|
|
2534
2533
|
switch (A) {
|
|
@@ -2547,7 +2546,7 @@ const z0 = (A) => ({
|
|
|
2547
2546
|
}) => {
|
|
2548
2547
|
const a = C2(), g = b(), I = o2().secondary, K = tA(A);
|
|
2549
2548
|
return /* @__PURE__ */ e(
|
|
2550
|
-
|
|
2549
|
+
Q0,
|
|
2551
2550
|
{
|
|
2552
2551
|
variant: "soft",
|
|
2553
2552
|
color: K,
|
|
@@ -2562,7 +2561,7 @@ const z0 = (A) => ({
|
|
|
2562
2561
|
"--Icon-fontSize": "1.25em"
|
|
2563
2562
|
},
|
|
2564
2563
|
children: /* @__PURE__ */ B(
|
|
2565
|
-
|
|
2564
|
+
B0,
|
|
2566
2565
|
{
|
|
2567
2566
|
sx: {
|
|
2568
2567
|
fontSize: "1.5em"
|
|
@@ -2670,7 +2669,7 @@ const z0 = (A) => ({
|
|
|
2670
2669
|
text: C,
|
|
2671
2670
|
url: c
|
|
2672
2671
|
}).then(() => console.log("Successfully shared")).catch((f) => console.error("Error sharing:", f));
|
|
2673
|
-
else if (
|
|
2672
|
+
else if (U0())
|
|
2674
2673
|
try {
|
|
2675
2674
|
Android.shareData(r, C, c);
|
|
2676
2675
|
} catch (f) {
|
|
@@ -3275,7 +3274,7 @@ const z0 = (A) => ({
|
|
|
3275
3274
|
}
|
|
3276
3275
|
) : null;
|
|
3277
3276
|
return /* @__PURE__ */ e(
|
|
3278
|
-
|
|
3277
|
+
y0,
|
|
3279
3278
|
{
|
|
3280
3279
|
entity: A.classicQuiz,
|
|
3281
3280
|
headline: l("classicQuiz.headline"),
|
|
@@ -3951,7 +3950,7 @@ const z0 = (A) => ({
|
|
|
3951
3950
|
}, mA = () => {
|
|
3952
3951
|
const { t: A } = j();
|
|
3953
3952
|
return /* @__PURE__ */ e(I2, { brandingBorderColor: null, children: /* @__PURE__ */ e(
|
|
3954
|
-
|
|
3953
|
+
u0,
|
|
3955
3954
|
{
|
|
3956
3955
|
notFoundTitle: A("classicQuiz.quizNotFound"),
|
|
3957
3956
|
notFoundMessage: A("classicQuiz.quizNotFoundDescription")
|
|
@@ -3961,7 +3960,7 @@ const z0 = (A) => ({
|
|
|
3961
3960
|
var a, g, I, K;
|
|
3962
3961
|
const o = ((a = A.classicQuiz.branding) == null ? void 0 : a.colors) || null, l = v() ? ((g = A.classicQuiz.branding) == null ? void 0 : g.images.mobileLogo) || ((I = A.classicQuiz.branding) == null ? void 0 : I.images.mainLogo) || "" : ((K = A.classicQuiz.branding) == null ? void 0 : K.images.mainLogo) || "", { t: n } = j();
|
|
3963
3962
|
return /* @__PURE__ */ e(I2, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ e(
|
|
3964
|
-
|
|
3963
|
+
k0,
|
|
3965
3964
|
{
|
|
3966
3965
|
entity: A.classicQuiz,
|
|
3967
3966
|
headline: n("classicQuiz.headline"),
|
|
@@ -3988,7 +3987,7 @@ const z0 = (A) => ({
|
|
|
3988
3987
|
var g, I, K, Q;
|
|
3989
3988
|
const o = v(), { t: l } = j(), n = ((g = A.classicQuiz.branding) == null ? void 0 : g.colors) || null, a = o ? ((I = A.classicQuiz.branding) == null ? void 0 : I.images.mobileLogo) || ((K = A.classicQuiz.branding) == null ? void 0 : K.images.mainLogo) || "" : ((Q = A.classicQuiz.branding) == null ? void 0 : Q.images.mainLogo) || "";
|
|
3990
3989
|
return /* @__PURE__ */ e(I2, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ e(
|
|
3991
|
-
|
|
3990
|
+
D0,
|
|
3992
3991
|
{
|
|
3993
3992
|
entity: A.classicQuiz,
|
|
3994
3993
|
headline: l("classicQuiz.headline"),
|
|
@@ -4015,7 +4014,7 @@ const z0 = (A) => ({
|
|
|
4015
4014
|
A.classicQuiz.branding || null
|
|
4016
4015
|
);
|
|
4017
4016
|
return /* @__PURE__ */ e(
|
|
4018
|
-
|
|
4017
|
+
V0,
|
|
4019
4018
|
{
|
|
4020
4019
|
entity: A.classicQuiz,
|
|
4021
4020
|
headline: o("classicQuiz.headline"),
|
|
@@ -4543,12 +4542,12 @@ const OA = (A) => {
|
|
|
4543
4542
|
return (i == null ? void 0 : i.maxAttempts) <= (H == null ? void 0 : H.attempts);
|
|
4544
4543
|
}, [i, s]);
|
|
4545
4544
|
if (R2(() => {
|
|
4546
|
-
|
|
4545
|
+
d0(A.language || "en");
|
|
4547
4546
|
}, [A.language]), R2(() => {
|
|
4548
4547
|
var H;
|
|
4549
4548
|
i && i.type && (!(i.authRequirement === "LEAD" && ((H = A.leads) == null ? void 0 : H.position) === "before") && P2.includes(i.type.toLocaleLowerCase()) && x(!0), i.type.toLowerCase() === "countdown" && u(i.time || 10));
|
|
4550
4549
|
}, [i]), !i || !s)
|
|
4551
|
-
return /* @__PURE__ */ e(
|
|
4550
|
+
return /* @__PURE__ */ e(m0, { my: 20 });
|
|
4552
4551
|
if (!i.id)
|
|
4553
4552
|
return /* @__PURE__ */ e(mA, {});
|
|
4554
4553
|
if (i.authRequirement === "REGISTERED" && !A.userIsLoggedIn)
|
|
@@ -4843,7 +4842,7 @@ const OA = (A) => {
|
|
|
4843
4842
|
);
|
|
4844
4843
|
}
|
|
4845
4844
|
return t2();
|
|
4846
|
-
}, jA = (A) => /* @__PURE__ */ e(
|
|
4845
|
+
}, jA = (A) => /* @__PURE__ */ e(f0, { packageName: "classic-quiz-play", ...A, children: /* @__PURE__ */ e(OA, { ...A }) }), $A = jA;
|
|
4847
4846
|
export {
|
|
4848
|
-
|
|
4847
|
+
$A as ClassicQuizPlay
|
|
4849
4848
|
};
|