fansunited-frontend-components 0.0.49 → 0.0.51
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.d.ts +5 -0
- package/Betslip.d.ts.map +1 -0
- package/Betslip.js +5 -0
- package/ChanceGame.js +87 -86
- package/ClassicQuizPlay.js +174 -173
- package/CollectLead.js +33 -32
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +171 -170
- package/EventGamePlay.js +25 -24
- package/Leaderboard.js +88 -87
- package/MatchQuizPlay.js +28 -27
- package/PersonalityQuizPlay.js +21 -20
- package/PickThePair.js +87 -86
- package/PollVote.js +19 -18
- package/Predictor.js +4756 -4693
- package/chunks/{AlertMessage-Ds45MBHB.js → AlertMessage-CQ9WJHSb.js} +25 -24
- package/chunks/{ArrowRightAlt-DKADQN2o.js → ArrowRightAlt-C1U8SNu-.js} +5 -5
- package/chunks/{Avatar-K1EWhhkA.js → Avatar-COVJnfGS.js} +79 -78
- package/chunks/Button-COvmPv4P.js +2270 -0
- package/chunks/{ChanceGameEmbedVariant-DqFg4YKU.js → ChanceGameEmbedVariant-lfZlSATv.js} +44 -43
- package/chunks/{CheckCircle-CV9iMpkZ.js → CheckCircle-h7-xLUq-.js} +27 -26
- package/chunks/{Close-C6Cw96SJ.js → Close-BTC6xyyj.js} +1 -1
- package/chunks/{Close-BHp4N1-6.js → Close-DBaorsP1.js} +1 -1
- package/chunks/{CollectLeadForm-DnLKA8qz.js → CollectLeadForm-O7Cpe0ix.js} +128 -127
- package/chunks/{Divider-BvUimRFw.js → Divider-DBCeQt9x.js} +15 -14
- package/chunks/{Edit-CZ3ni-Ur.js → Edit-BwwxJdNv.js} +35 -34
- package/chunks/{EmojiEvents-DpmLq98V.js → EmojiEvents-DVPGlTU_.js} +3 -3
- package/chunks/{FavoriteBorder-DUK_DrY4.js → FavoriteBorder-BnhfbKy1.js} +1 -1
- package/chunks/{FormControl-BUItlVIg.js → FormControl-COjw1gQd.js} +38 -37
- package/chunks/{FormLabel-CeTNPUn7.js → FormLabel-e5_v5cjP.js} +18 -17
- package/chunks/{Input-MJCQcYzo.js → Input-er-Yyqtt.js} +17 -16
- package/chunks/{KeyboardArrowDown-SZpn2GhJ.js → KeyboardArrowDown-BeaYH92n.js} +1 -1
- package/chunks/{ModalDialog-Cfgv9UAA.js → ModalDialog-XkhZtgYm.js} +58 -57
- package/chunks/{NotFoundSkeleton-Cs6DtD9u.js → NotFoundSkeleton-C71TRYl5.js} +95 -94
- package/chunks/{Notification-pcKtlRms.js → Notification-CkPupg9q.js} +57 -56
- package/chunks/{OverlayApiErrorSkeleton-Dl3s5Oaf.js → OverlayApiErrorSkeleton-CkuDu9uV.js} +20 -19
- package/chunks/{OverlayLeadAfterCollection-F2TAV9wK.js → OverlayLeadAfterCollection-Dkxl4cKn.js} +28 -27
- package/chunks/{OverlayScoreStateSkeleton-LQ0svzeX.js → OverlayScoreStateSkeleton-RauDjIg5.js} +16 -15
- package/chunks/{Person-BGdniS_p.js → Person-WCt2MN5j.js} +32 -31
- package/chunks/{PickOneOfX-Ci4ZJf7G.js → PickOneOfX-DabfTR2W.js} +8 -7
- package/chunks/{Popper-DOVSI4rJ.js → Popper-OPgbZzY7.js} +127 -126
- package/chunks/{Portal-Cs0dgwmH.js → Portal-BQilulgu.js} +5 -5
- package/chunks/{PrizeCard-DF3QxwQJ.js → PrizeCard-DgHyperX.js} +5238 -6653
- package/chunks/{Select-BHeTdOYr.js → Select-9gmhEo71.js} +133 -132
- package/chunks/{Spinner-DbUB64Gj.js → Spinner-BoysVPn7.js} +12 -11
- package/chunks/{SplitLeadAfterCollection-DSw6X5fx.js → SplitLeadAfterCollection-C5oCDYT1.js} +15 -14
- package/chunks/{Stack-BpHk5eb0.js → Stack-INH9bhkC.js} +30 -29
- package/chunks/{StandardContentSkeleton-Bae1LLQ_.js → StandardContentSkeleton-DsAhzMfU.js} +1 -1
- package/chunks/{Tabs-hwJ7jsUl.js → Tabs-DaVatjCJ.js} +60 -59
- package/chunks/{Textarea-zOtMdgc5.js → Textarea-DeMxp3Zn.js} +48 -47
- package/chunks/{TimerOutlined-DWE7f0YX.js → TimerOutlined-DJh2vL3s.js} +3 -3
- package/chunks/{helpers-NuC1SzL3.js → helpers-Bd9FT9hj.js} +1 -1
- package/chunks/{index-D1K1OB4p.js → index-5MPtbA_r.js} +255 -239
- package/chunks/index-BjfKDjAM.js +4 -0
- package/chunks/main-Bx5W2XyO.js +1773 -0
- package/chunks/{main-hB01WcoP.js → main-DWw1vqVY.js} +38 -37
- package/chunks/{useEventCallback-CizlfWBo.js → useEventCallback-vbTEFVPa.js} +8 -7
- package/chunks/{useForwardedInput-RWDntqBU.js → useForwardedInput-DumYVfgj.js} +26 -25
- package/chunks/{useImageVariant-Cex1eIqq.js → useImageVariant-B1ObJh_B.js} +1 -1
- 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 +5 -3
- package/package.json +5 -1
- package/chunks/index-BaypiKlO.js +0 -4
package/EitherOrPlay.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx as t, jsxs as g, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import { useState as D, useEffect as ge, useRef as qe, useCallback as Le } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { P as Vt } from "./chunks/Portal-
|
|
3
|
+
import { l as Ce, c as be, k as ze, B as r, f as se, i as xe, a as q, b as fe, e as pe, H as Ht, u as Me, d as jt, W as Se, m as St, n as Gt } from "./chunks/PrizeCard-DgHyperX.js";
|
|
4
|
+
import { P as Vt } from "./chunks/Portal-BQilulgu.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { S as He } from "./chunks/Spinner-
|
|
7
|
-
import { z as Nt } from "./chunks/index-
|
|
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 {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
6
|
+
import { S as He } from "./chunks/Spinner-BoysVPn7.js";
|
|
7
|
+
import { z as Nt } from "./chunks/index-5MPtbA_r.js";
|
|
8
|
+
import { g as Yt, h as re, e as je, a as Ct } from "./chunks/helpers-Bd9FT9hj.js";
|
|
9
|
+
import { S as _t, N as qt, O as Kt } from "./chunks/NotFoundSkeleton-C71TRYl5.js";
|
|
10
|
+
import { u as Xt, b as Ge, d as Ke, a as Xe } from "./chunks/useImageVariant-B1ObJh_B.js";
|
|
11
|
+
import { A as Ze, O as Zt } from "./chunks/ArrowRightAlt-C1U8SNu-.js";
|
|
12
|
+
import { T as x, B as me } from "./chunks/Button-COvmPv4P.js";
|
|
13
|
+
import { F as Fe, a as It } from "./chunks/FavoriteBorder-BnhfbKy1.js";
|
|
14
|
+
import { E as Pe } from "./chunks/EmojiEvents-DVPGlTU_.js";
|
|
15
|
+
import { C as Ne } from "./chunks/CheckCircle-h7-xLUq-.js";
|
|
16
|
+
import { T as Jt } from "./chunks/TimerOutlined-DJh2vL3s.js";
|
|
17
|
+
import { S as we } from "./chunks/Stack-INH9bhkC.js";
|
|
18
|
+
import { A as Qt, S as Tt, O as en } from "./chunks/OverlayApiErrorSkeleton-CkuDu9uV.js";
|
|
19
|
+
import { S as tn, T as nn, P as rn } from "./chunks/Person-WCt2MN5j.js";
|
|
20
|
+
import { A as on } from "./chunks/Avatar-COVJnfGS.js";
|
|
21
|
+
import { t as vt, T as Pt, a as kt, b as Ee, c as We } from "./chunks/Tabs-DaVatjCJ.js";
|
|
22
|
+
import { S as ln, a as an, O as sn, b as cn } from "./chunks/OverlayLeadAfterCollection-Dkxl4cKn.js";
|
|
23
|
+
import { C as dn } from "./chunks/CollectLeadForm-O7Cpe0ix.js";
|
|
23
24
|
const un = Ce([/* @__PURE__ */ t("path", {
|
|
24
25
|
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"
|
|
25
26
|
}, "0"), /* @__PURE__ */ t("path", {
|
|
@@ -36,18 +37,18 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
36
37
|
d: "M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"
|
|
37
38
|
}), "Timer"), gn = Ce(/* @__PURE__ */ t("path", {
|
|
38
39
|
d: "M9.68 13.69 12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28m-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6"
|
|
39
|
-
}), "WorkspacePremium"),
|
|
40
|
+
}), "WorkspacePremium"), fn = (e, n) => {
|
|
40
41
|
const [i, s] = D(null), d = async () => {
|
|
41
42
|
try {
|
|
42
|
-
const
|
|
43
|
-
s(
|
|
44
|
-
} catch (
|
|
45
|
-
console.error(
|
|
43
|
+
const f = await n.miniGames.getEitherOrById(e, !0);
|
|
44
|
+
s(f);
|
|
45
|
+
} catch (f) {
|
|
46
|
+
console.error(f), s(new Nt());
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
return ge(() => (d(), () => s(null)), [e, n]), i;
|
|
49
|
-
},
|
|
50
|
-
const [s, d] = D(null), [
|
|
50
|
+
}, hn = (e, n, i = !1) => {
|
|
51
|
+
const [s, d] = D(null), [f, l] = D(!1), [u, a] = D(!1), m = async () => {
|
|
51
52
|
try {
|
|
52
53
|
const y = await n.miniGames.getMyEitherOrStats(e);
|
|
53
54
|
d(y);
|
|
@@ -63,10 +64,10 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
63
64
|
a(!0);
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
67
|
+
const h = y;
|
|
68
|
+
if (h.data.error.code === 404)
|
|
68
69
|
return;
|
|
69
|
-
if (
|
|
70
|
+
if (h.data.error.code === 401 || h.data.error.code === 403) {
|
|
70
71
|
l(!0);
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
@@ -78,7 +79,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
78
79
|
}), [e, n, i]), {
|
|
79
80
|
myStats: s,
|
|
80
81
|
setMyStats: d,
|
|
81
|
-
isUnauthorized:
|
|
82
|
+
isUnauthorized: f,
|
|
82
83
|
isApiError: u,
|
|
83
84
|
setIsUnauthorized: l,
|
|
84
85
|
setIsApiError: a
|
|
@@ -98,7 +99,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
98
99
|
return null;
|
|
99
100
|
const d = () => {
|
|
100
101
|
s && window.open(s, "_blank", "noopener,noreferrer");
|
|
101
|
-
},
|
|
102
|
+
}, f = /* @__PURE__ */ t(
|
|
102
103
|
"img",
|
|
103
104
|
{
|
|
104
105
|
src: e.brandingLogo,
|
|
@@ -117,16 +118,16 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
117
118
|
textDecoration: "none",
|
|
118
119
|
display: "inline-flex"
|
|
119
120
|
},
|
|
120
|
-
children:
|
|
121
|
+
children: f
|
|
121
122
|
}
|
|
122
123
|
) : /* @__PURE__ */ t(
|
|
123
124
|
r,
|
|
124
125
|
{
|
|
125
126
|
onClick: d,
|
|
126
127
|
sx: { cursor: "pointer", display: "inline-flex" },
|
|
127
|
-
children:
|
|
128
|
+
children: f
|
|
128
129
|
}
|
|
129
|
-
) :
|
|
130
|
+
) : f;
|
|
130
131
|
return e.isCentered || i ? /* @__PURE__ */ g(
|
|
131
132
|
r,
|
|
132
133
|
{
|
|
@@ -198,7 +199,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
198
199
|
showSignInCTA: s
|
|
199
200
|
}) => {
|
|
200
201
|
var k, v, W, R, F, E, O, o, z;
|
|
201
|
-
const { t: d } = se(),
|
|
202
|
+
const { t: d } = se(), f = xe(), l = ze(), u = ((k = n == null ? void 0 : n.branding) == null ? void 0 : k.colors) || null, a = (u == null ? void 0 : u.primaryColor) || q().palette.primary.plainColor, m = q().palette.primary.onPrimary, y = (u == null ? void 0 : u.contentColor) || q().textColor, b = q().surfaceVariant, h = be().primary, I = fe().xl, L = fe().md, p = pe(), S = re(a || ""), C = re(b || ""), P = S ? `rgba(${S.replace(/[^\d,]/g, "")}, 0.12)` : `${a}20`, c = f ? ((W = (v = n == null ? void 0 : n.branding) == null ? void 0 : v.images) == null ? void 0 : W.mobileLogo) || ((F = (R = n == null ? void 0 : n.branding) == null ? void 0 : R.images) == null ? void 0 : F.mainLogo) || "" : ((O = (E = n == null ? void 0 : n.branding) == null ? void 0 : E.images) == null ? void 0 : O.mainLogo) || "", B = [
|
|
202
203
|
{
|
|
203
204
|
icon: /* @__PURE__ */ t(zt, { sx: { fontSize: "1.1em" } }),
|
|
204
205
|
title: d("eitherOr.tutorial.step1Title"),
|
|
@@ -225,7 +226,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
225
226
|
sx: {
|
|
226
227
|
display: "flex",
|
|
227
228
|
flexDirection: "column",
|
|
228
|
-
gap:
|
|
229
|
+
gap: f ? p.lg : p.md
|
|
229
230
|
},
|
|
230
231
|
children: [
|
|
231
232
|
/* @__PURE__ */ t(
|
|
@@ -275,7 +276,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
275
276
|
x,
|
|
276
277
|
{
|
|
277
278
|
sx: {
|
|
278
|
-
fontFamily:
|
|
279
|
+
fontFamily: h,
|
|
279
280
|
fontWeight: 700,
|
|
280
281
|
fontSize: "0.875em",
|
|
281
282
|
lineHeight: 1.3,
|
|
@@ -288,7 +289,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
288
289
|
x,
|
|
289
290
|
{
|
|
290
291
|
sx: {
|
|
291
|
-
fontFamily:
|
|
292
|
+
fontFamily: h,
|
|
292
293
|
fontWeight: 400,
|
|
293
294
|
fontSize: "0.75em",
|
|
294
295
|
lineHeight: 1.6,
|
|
@@ -372,7 +373,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
372
373
|
x,
|
|
373
374
|
{
|
|
374
375
|
sx: {
|
|
375
|
-
fontFamily:
|
|
376
|
+
fontFamily: h,
|
|
376
377
|
fontWeight: 500,
|
|
377
378
|
fontSize: "0.9375em",
|
|
378
379
|
lineHeight: "24px",
|
|
@@ -466,12 +467,12 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
466
467
|
feedback: i,
|
|
467
468
|
onSelect: s,
|
|
468
469
|
pairId: d,
|
|
469
|
-
brandingPrimaryColor:
|
|
470
|
+
brandingPrimaryColor: f,
|
|
470
471
|
optionIndex: l = 0
|
|
471
472
|
}) => {
|
|
472
|
-
const u = q(), a = pe(), m =
|
|
473
|
+
const u = q(), a = pe(), m = f || u.palette.primary.plainColor, y = u.palette.primary.onPrimary, b = u.palette.success.plainColor, h = u.palette.danger.plainColor, I = re(m || ""), L = I ? I.replace(/[^\d,]/g, "") : null, p = Xt(e.images ?? null), S = !!p, C = l === 0 ? "A" : "B", P = i.selectedOption === e.id, c = P && !!i.isCorrect || e.id === i.correctOptionId, B = P && !i.isCorrect || !!i.timedOut && e.id !== i.correctOptionId;
|
|
473
474
|
if (!S) {
|
|
474
|
-
const k = l === 0 ? "135deg" : "225deg", v = c ? `linear-gradient(${k}, ${b}20 0%, ${b}0D 100%)` : B ? `linear-gradient(${k}, ${
|
|
475
|
+
const k = l === 0 ? "135deg" : "225deg", v = c ? `linear-gradient(${k}, ${b}20 0%, ${b}0D 100%)` : B ? `linear-gradient(${k}, ${h}20 0%, ${h}0D 100%)` : L ? `linear-gradient(${k}, rgba(${L}, 0.22) 0%, rgba(${L}, 0.08) 60%, rgba(${L}, 0.14) 100%)` : `linear-gradient(${k}, ${m}38 0%, ${m}14 60%, ${m}24 100%)`, W = L ? `repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(${L}, 0.04) 10px, rgba(${L}, 0.04) 11px)` : "none", R = c ? b : B ? h : L ? `rgba(${L}, 0.3)` : `${m}4D`, F = c ? b : B ? h : m;
|
|
475
476
|
return /* @__PURE__ */ g(
|
|
476
477
|
r,
|
|
477
478
|
{
|
|
@@ -490,7 +491,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
490
491
|
gap: "14px",
|
|
491
492
|
px: a.md,
|
|
492
493
|
transition: "transform 0.2s, box-shadow 0.2s, border-color 0.25s",
|
|
493
|
-
boxShadow: c ? `0 0 0 3px ${b}30` : B ? `0 0 0 3px ${
|
|
494
|
+
boxShadow: c ? `0 0 0 3px ${b}30` : B ? `0 0 0 3px ${h}30` : "none",
|
|
494
495
|
"&:hover": n ? {} : {
|
|
495
496
|
transform: "scale(1.01)",
|
|
496
497
|
boxShadow: `0 4px 16px ${L ? `rgba(${L}, 0.2)` : `${m}33`}`
|
|
@@ -522,7 +523,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
522
523
|
flexShrink: 0,
|
|
523
524
|
zIndex: 2,
|
|
524
525
|
transition: "background-color 0.25s",
|
|
525
|
-
boxShadow: c ? `0 2px 8px ${b}59` : B ? `0 2px 8px ${
|
|
526
|
+
boxShadow: c ? `0 2px 8px ${b}59` : B ? `0 2px 8px ${h}59` : `0 2px 8px ${L ? `rgba(${L}, 0.35)` : `${m}59`}`
|
|
526
527
|
},
|
|
527
528
|
children: c ? /* @__PURE__ */ t(Ne, { sx: { fontSize: "1.3em", color: "#fff" } }) : B ? /* @__PURE__ */ t(Ye, { sx: { fontSize: "1.3em", color: "#fff" } }) : /* @__PURE__ */ t(
|
|
528
529
|
x,
|
|
@@ -546,7 +547,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
546
547
|
fontWeight: 700,
|
|
547
548
|
fontSize: "0.9375em",
|
|
548
549
|
lineHeight: 1.35,
|
|
549
|
-
color: c ? b : B ?
|
|
550
|
+
color: c ? b : B ? h : m,
|
|
550
551
|
zIndex: 2,
|
|
551
552
|
flex: 1,
|
|
552
553
|
transition: "color 0.25s"
|
|
@@ -574,9 +575,9 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
574
575
|
backgroundClip: "padding-box",
|
|
575
576
|
bgcolor: u.surfaceVariant,
|
|
576
577
|
border: "1.5px solid transparent",
|
|
577
|
-
borderColor: c ? b : B ?
|
|
578
|
+
borderColor: c ? b : B ? h : "transparent",
|
|
578
579
|
transition: "transform 0.2s, border-color 0.25s",
|
|
579
|
-
boxShadow: c ? `0 0 0 3px ${b}30` : B ? `0 0 0 3px ${
|
|
580
|
+
boxShadow: c ? `0 0 0 3px ${b}30` : B ? `0 0 0 3px ${h}30` : "none",
|
|
580
581
|
"&:hover": n ? {} : { transform: "scale(1.01)" }
|
|
581
582
|
},
|
|
582
583
|
children: [
|
|
@@ -596,7 +597,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
596
597
|
sx: {
|
|
597
598
|
position: "absolute",
|
|
598
599
|
inset: 0,
|
|
599
|
-
background: c ? `linear-gradient(to top, ${b}CC, ${b}55 50%, transparent 100%)` : `linear-gradient(to top, ${
|
|
600
|
+
background: c ? `linear-gradient(to top, ${b}CC, ${b}55 50%, transparent 100%)` : `linear-gradient(to top, ${h}CC, ${h}55 50%, transparent 100%)`,
|
|
600
601
|
transition: "background 0.25s",
|
|
601
602
|
zIndex: 1
|
|
602
603
|
}
|
|
@@ -667,7 +668,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
667
668
|
maxTime: n,
|
|
668
669
|
brandingPrimaryColor: i
|
|
669
670
|
}) => {
|
|
670
|
-
const s = q().palette.danger.softBg, d = q().palette.danger.plainColor,
|
|
671
|
+
const s = q().palette.danger.softBg, d = q().palette.danger.plainColor, f = q().palette.warning.softBg, l = q().palette.warning.plainColor, u = i || q().palette.primary.plainColor, a = q().palette.primary.onPrimary, m = fe().xl, y = be().secondary, b = pe(), h = {
|
|
671
672
|
"@keyframes pulse": {
|
|
672
673
|
"0%": { transform: "scale(1)" },
|
|
673
674
|
"50%": { transform: "scale(1.05)" },
|
|
@@ -678,7 +679,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
678
679
|
color: d,
|
|
679
680
|
animation: "pulse 1s infinite"
|
|
680
681
|
} : I <= 50 ? {
|
|
681
|
-
background:
|
|
682
|
+
background: f,
|
|
682
683
|
color: l,
|
|
683
684
|
animation: void 0
|
|
684
685
|
} : {
|
|
@@ -705,12 +706,12 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
705
706
|
maxHeight: "40px",
|
|
706
707
|
transition: "all 0.3s ease",
|
|
707
708
|
animation: p.animation,
|
|
708
|
-
...
|
|
709
|
+
...h,
|
|
709
710
|
zIndex: 10
|
|
710
711
|
},
|
|
711
712
|
children: [
|
|
712
713
|
/* @__PURE__ */ t(
|
|
713
|
-
|
|
714
|
+
Jt,
|
|
714
715
|
{
|
|
715
716
|
sx: {
|
|
716
717
|
width: "24px",
|
|
@@ -744,17 +745,17 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
744
745
|
selected: i,
|
|
745
746
|
maxTime: s,
|
|
746
747
|
feedback: d,
|
|
747
|
-
onSelect:
|
|
748
|
+
onSelect: f,
|
|
748
749
|
stepInfo: l,
|
|
749
750
|
brandingPrimaryColor: u,
|
|
750
751
|
game: a
|
|
751
752
|
}) => {
|
|
752
753
|
var X, oe, ee, te, ie, ce, _, j, w, $;
|
|
753
|
-
const [m, y] = D(0), [b,
|
|
754
|
+
const [m, y] = D(0), [b, h] = D(!1), [I, L] = D(0), [p, S] = D(0), [C, P] = D(!1), c = qe(0), { t: B } = se(), k = xe(), v = ze(), W = q(), R = W.surfaceVariant, F = u || W.palette.primary.plainColor, E = ((oe = (X = a == null ? void 0 : a.branding) == null ? void 0 : X.colors) == null ? void 0 : oe.contentColor) || W.textColor, O = fe().md, o = pe(), z = re(R || ""), H = re(F || ""), U = k ? ((te = (ee = a == null ? void 0 : a.branding) == null ? void 0 : ee.images) == null ? void 0 : te.mobileLogo) || ((ce = (ie = a == null ? void 0 : a.branding) == null ? void 0 : ie.images) == null ? void 0 : ce.mainLogo) || "" : ((j = (_ = a == null ? void 0 : a.branding) == null ? void 0 : _.images) == null ? void 0 : j.mainLogo) || "", N = B("common.labels.point", { count: m });
|
|
754
755
|
ge(() => {
|
|
755
756
|
if (l != null && l.currentPoints && l.currentPoints > m) {
|
|
756
|
-
L(l.currentPoints - m),
|
|
757
|
-
const A = setTimeout(() =>
|
|
757
|
+
L(l.currentPoints - m), h(!0), S((V) => V + 1);
|
|
758
|
+
const A = setTimeout(() => h(!1), 1e3);
|
|
758
759
|
return y(l.currentPoints), () => clearTimeout(A);
|
|
759
760
|
}
|
|
760
761
|
}, [l == null ? void 0 : l.currentPoints, m]);
|
|
@@ -796,18 +797,18 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
796
797
|
}, G = () => {
|
|
797
798
|
const A = (l == null ? void 0 : l.currentStreak) ?? 0, V = C ? T : A % T, le = Math.floor(A / T) + 1;
|
|
798
799
|
return /* @__PURE__ */ g(r, { sx: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
799
|
-
Array.from({ length: T }, (
|
|
800
|
+
Array.from({ length: T }, (he, Q) => /* @__PURE__ */ t(
|
|
800
801
|
r,
|
|
801
802
|
{
|
|
802
803
|
sx: {
|
|
803
804
|
flex: 1,
|
|
804
805
|
height: 4,
|
|
805
|
-
bgcolor:
|
|
806
|
+
bgcolor: Q < V ? F : H ? `rgba(${H.replace(/[^\d,]/g, "")}, 0.2)` : `${F}33`,
|
|
806
807
|
borderRadius: "2px",
|
|
807
808
|
transition: "background-color 0.3s ease"
|
|
808
809
|
}
|
|
809
810
|
},
|
|
810
|
-
`streak-${
|
|
811
|
+
`streak-${Q}`
|
|
811
812
|
)),
|
|
812
813
|
le > 1 && /* @__PURE__ */ g(
|
|
813
814
|
x,
|
|
@@ -827,7 +828,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
827
828
|
}
|
|
828
829
|
)
|
|
829
830
|
] });
|
|
830
|
-
},
|
|
831
|
+
}, J = () => /* @__PURE__ */ t(
|
|
831
832
|
r,
|
|
832
833
|
{
|
|
833
834
|
sx: {
|
|
@@ -908,20 +909,20 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
908
909
|
option: e.optionOne,
|
|
909
910
|
selected: i,
|
|
910
911
|
feedback: d,
|
|
911
|
-
onSelect:
|
|
912
|
+
onSelect: f,
|
|
912
913
|
pairId: e.pairId,
|
|
913
914
|
brandingPrimaryColor: u,
|
|
914
915
|
optionIndex: 0
|
|
915
916
|
}
|
|
916
917
|
) }),
|
|
917
|
-
|
|
918
|
+
J(),
|
|
918
919
|
/* @__PURE__ */ t(r, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
|
|
919
920
|
Ue,
|
|
920
921
|
{
|
|
921
922
|
option: e.optionTwo,
|
|
922
923
|
selected: i,
|
|
923
924
|
feedback: d,
|
|
924
|
-
onSelect:
|
|
925
|
+
onSelect: f,
|
|
925
926
|
pairId: e.pairId,
|
|
926
927
|
brandingPrimaryColor: u,
|
|
927
928
|
optionIndex: 1
|
|
@@ -1002,31 +1003,31 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1002
1003
|
message: s("eitherOr.results.practice", "Keep practicing!")
|
|
1003
1004
|
};
|
|
1004
1005
|
const d = e / n * 100;
|
|
1005
|
-
let
|
|
1006
|
-
if (d === 100 ?
|
|
1006
|
+
let f;
|
|
1007
|
+
if (d === 100 ? f = {
|
|
1007
1008
|
emoji: "🏆",
|
|
1008
1009
|
message: s("eitherOr.results.perfect", "Perfect! Flawless!")
|
|
1009
|
-
} : d >= 80 ?
|
|
1010
|
+
} : d >= 80 ? f = {
|
|
1010
1011
|
emoji: "🔥",
|
|
1011
1012
|
message: s("eitherOr.results.excellent", "Excellent!")
|
|
1012
|
-
} : d >= 60 ?
|
|
1013
|
+
} : d >= 60 ? f = { emoji: "✨", message: s("eitherOr.results.great", "Great job!") } : d >= 40 ? f = { emoji: "💪", message: s("eitherOr.results.good", "Good try!") } : f = {
|
|
1013
1014
|
emoji: "📚",
|
|
1014
1015
|
message: s("eitherOr.results.practice", "Keep practicing!")
|
|
1015
1016
|
}, i > 0) {
|
|
1016
1017
|
const l = s("eitherOr.results.livesBonus", { count: i }) || (i === 1 ? "And with 1 life to spare!" : `And with ${i} lives to spare!`);
|
|
1017
|
-
|
|
1018
|
+
f = { ...f, message: `${f.message} ${l}` };
|
|
1018
1019
|
}
|
|
1019
|
-
return
|
|
1020
|
+
return f;
|
|
1020
1021
|
}, _e = ({
|
|
1021
1022
|
stepInfo: e,
|
|
1022
1023
|
game: n,
|
|
1023
1024
|
sdk: i,
|
|
1024
1025
|
onPlayAgain: s,
|
|
1025
1026
|
brandingPrimaryColor: d,
|
|
1026
|
-
additionalCTA:
|
|
1027
|
+
additionalCTA: f
|
|
1027
1028
|
}) => {
|
|
1028
1029
|
var oe, ee, te, ie, ce, _, j, w, $;
|
|
1029
|
-
const { t: l } = se(), u = q(), a = d || u.palette.primary.plainColor, m = u.palette.primary.onPrimary, y = ((ee = (oe = n == null ? void 0 : n.branding) == null ? void 0 : oe.colors) == null ? void 0 : ee.contentColor) || u.textColor, b = u.palette.success.plainColor,
|
|
1030
|
+
const { t: l } = se(), u = q(), a = d || u.palette.primary.plainColor, m = u.palette.primary.onPrimary, y = ((ee = (oe = n == null ? void 0 : n.branding) == null ? void 0 : oe.colors) == null ? void 0 : ee.contentColor) || u.textColor, b = u.palette.success.plainColor, h = u.palette.danger.plainColor, I = u.palette.success.softBg, L = u.palette.danger.softBg, p = fe().md, S = fe().xl, C = pe(), P = be().primary, c = xe(), B = ze(), k = re(a || ""), v = k ? k.replace(/[^\d,]/g, "") : null, W = c ? ((ie = (te = n == null ? void 0 : n.branding) == null ? void 0 : te.images) == null ? void 0 : ie.mobileLogo) || ((_ = (ce = n == null ? void 0 : n.branding) == null ? void 0 : ce.images) == null ? void 0 : _.mainLogo) || "" : ((w = (j = n == null ? void 0 : n.branding) == null ? void 0 : j.images) == null ? void 0 : w.mainLogo) || "", [R, F] = D(0), [E, O] = D(null), o = (e == null ? void 0 : e.currentPoints) ?? 0, z = R > 0 && o >= R;
|
|
1030
1031
|
if (ge(() => {
|
|
1031
1032
|
n && (async () => {
|
|
1032
1033
|
try {
|
|
@@ -1045,7 +1046,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1045
1046
|
T,
|
|
1046
1047
|
e.currentLives,
|
|
1047
1048
|
l
|
|
1048
|
-
), G = T > 0 ? U / T * 100 : 0,
|
|
1049
|
+
), G = T > 0 ? U / T * 100 : 0, J = T > 0 ? N / T * 100 : 0, X = T > 0 ? Y / T * 100 : 0;
|
|
1049
1050
|
return /* @__PURE__ */ g(
|
|
1050
1051
|
r,
|
|
1051
1052
|
{
|
|
@@ -1326,12 +1327,12 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1326
1327
|
}
|
|
1327
1328
|
}
|
|
1328
1329
|
),
|
|
1329
|
-
|
|
1330
|
+
J > 0 && /* @__PURE__ */ t(
|
|
1330
1331
|
r,
|
|
1331
1332
|
{
|
|
1332
1333
|
sx: {
|
|
1333
|
-
width: `${
|
|
1334
|
-
bgcolor:
|
|
1334
|
+
width: `${J}%`,
|
|
1335
|
+
bgcolor: h,
|
|
1335
1336
|
transition: "width 0.7s ease 0.1s"
|
|
1336
1337
|
}
|
|
1337
1338
|
}
|
|
@@ -1364,12 +1365,12 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1364
1365
|
labelSx: { color: b }
|
|
1365
1366
|
},
|
|
1366
1367
|
{
|
|
1367
|
-
icon: /* @__PURE__ */ t(Ye, { sx: { fontSize: "1.25em", color:
|
|
1368
|
+
icon: /* @__PURE__ */ t(Ye, { sx: { fontSize: "1.25em", color: h } }),
|
|
1368
1369
|
value: N,
|
|
1369
1370
|
label: l("eitherOr.results.wrong", "Wrong"),
|
|
1370
1371
|
bg: L,
|
|
1371
|
-
valueSx: { color:
|
|
1372
|
-
labelSx: { color:
|
|
1372
|
+
valueSx: { color: h },
|
|
1373
|
+
labelSx: { color: h }
|
|
1373
1374
|
},
|
|
1374
1375
|
{
|
|
1375
1376
|
icon: /* @__PURE__ */ t(
|
|
@@ -1530,9 +1531,9 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1530
1531
|
}
|
|
1531
1532
|
),
|
|
1532
1533
|
/* @__PURE__ */ t(
|
|
1533
|
-
|
|
1534
|
+
Qt,
|
|
1534
1535
|
{
|
|
1535
|
-
additionalCTA:
|
|
1536
|
+
additionalCTA: f,
|
|
1536
1537
|
buttonStyle: {
|
|
1537
1538
|
borderRadius: S,
|
|
1538
1539
|
width: "100%",
|
|
@@ -1558,7 +1559,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1558
1559
|
primaryColor: i,
|
|
1559
1560
|
textColor: s
|
|
1560
1561
|
}) => {
|
|
1561
|
-
const { t: d } = se(),
|
|
1562
|
+
const { t: d } = se(), f = q(), l = fe(), u = pe(), a = be().primary, m = f.outlineEnabledBorder, y = re(i), [b, h] = D(null), [I, L] = D(!1);
|
|
1562
1563
|
if (ge(() => {
|
|
1563
1564
|
const O = requestAnimationFrame(() => {
|
|
1564
1565
|
setTimeout(() => L(!0), 80);
|
|
@@ -1609,7 +1610,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1609
1610
|
left: 0,
|
|
1610
1611
|
right: 0,
|
|
1611
1612
|
bottom: 0,
|
|
1612
|
-
backgroundColor:
|
|
1613
|
+
backgroundColor: f.surfaceVariant,
|
|
1613
1614
|
opacity: 0.5,
|
|
1614
1615
|
borderRadius: "inherit",
|
|
1615
1616
|
zIndex: 0
|
|
@@ -1741,12 +1742,12 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1741
1742
|
alignItems: "flex-end",
|
|
1742
1743
|
cursor: "pointer"
|
|
1743
1744
|
},
|
|
1744
|
-
onMouseEnter: () =>
|
|
1745
|
-
onMouseLeave: () =>
|
|
1745
|
+
onMouseEnter: () => h(o),
|
|
1746
|
+
onMouseLeave: () => h(null),
|
|
1746
1747
|
onTouchStart: (Y) => {
|
|
1747
|
-
Y.preventDefault(),
|
|
1748
|
+
Y.preventDefault(), h(o);
|
|
1748
1749
|
},
|
|
1749
|
-
onTouchEnd: () => setTimeout(() =>
|
|
1750
|
+
onTouchEnd: () => setTimeout(() => h(null), 2e3),
|
|
1750
1751
|
children: /* @__PURE__ */ t(
|
|
1751
1752
|
r,
|
|
1752
1753
|
{
|
|
@@ -1814,15 +1815,15 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1814
1815
|
brandingPrimaryColor: s
|
|
1815
1816
|
}) => {
|
|
1816
1817
|
var T;
|
|
1817
|
-
const { t: d } = se(),
|
|
1818
|
+
const { t: d } = se(), f = Me(), l = q(), u = ((T = e == null ? void 0 : e.branding) == null ? void 0 : T.colors) || null, a = s || (u == null ? void 0 : u.primaryColor) || l.palette.primary.plainColor, m = (u == null ? void 0 : u.contentColor) || l.textColor, y = be().primary, b = be().secondary, h = fe(), I = pe(), L = ze(), p = l.surfaceVariant, S = f.colorSchemes.light.palette.primary.onPrimary, C = l.outlineEnabledBorder, [P, c] = D(null), [B, k] = D(!0), [v, W] = D(0), [R, F] = D(null), [E, O] = D("leaderboard"), o = (i == null ? void 0 : i.currentPoints) ?? 0;
|
|
1818
1819
|
ge(() => {
|
|
1819
1820
|
(async () => {
|
|
1820
1821
|
try {
|
|
1821
1822
|
if (!e) return;
|
|
1822
|
-
const [G,
|
|
1823
|
+
const [G, J] = await Promise.all([
|
|
1823
1824
|
n.miniGames.getEitherOrResults(e.id),
|
|
1824
1825
|
n.profile.getOwn().getInfo().catch(() => null)
|
|
1825
|
-
]), X = (
|
|
1826
|
+
]), X = (J == null ? void 0 : J.id) ?? null;
|
|
1826
1827
|
if (F(X), X && G.standings.some(
|
|
1827
1828
|
(ee) => ee.userId === X
|
|
1828
1829
|
)) {
|
|
@@ -1864,7 +1865,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
1864
1865
|
const z = {
|
|
1865
1866
|
tableContainer: {
|
|
1866
1867
|
overflowX: "auto",
|
|
1867
|
-
borderRadius:
|
|
1868
|
+
borderRadius: h.md,
|
|
1868
1869
|
border: `1px solid ${C}`
|
|
1869
1870
|
},
|
|
1870
1871
|
table: {
|
|
@@ -2014,7 +2015,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2014
2015
|
{
|
|
2015
2016
|
sx: {
|
|
2016
2017
|
display: "flex",
|
|
2017
|
-
borderRadius:
|
|
2018
|
+
borderRadius: h["2xl"],
|
|
2018
2019
|
p: "3px",
|
|
2019
2020
|
gap: I.xs
|
|
2020
2021
|
},
|
|
@@ -2030,7 +2031,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2030
2031
|
alignItems: "center",
|
|
2031
2032
|
justifyContent: "center",
|
|
2032
2033
|
p: I.xs,
|
|
2033
|
-
borderRadius: `calc(${
|
|
2034
|
+
borderRadius: `calc(${h["2xl"]} - 3px)`,
|
|
2034
2035
|
backgroundColor: G ? a : p,
|
|
2035
2036
|
cursor: "pointer",
|
|
2036
2037
|
transition: "background-color 220ms ease",
|
|
@@ -2088,7 +2089,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2088
2089
|
] }) }),
|
|
2089
2090
|
/* @__PURE__ */ t("tbody", { children: N.map((M, G) => {
|
|
2090
2091
|
var te, ie, ce;
|
|
2091
|
-
const
|
|
2092
|
+
const J = v * Be + G, X = M.userId === "current" || R !== null && M.userId === R, oe = ((te = M.userModel) == null ? void 0 : te.avatar) || void 0, ee = ((ie = M.userModel) == null ? void 0 : ie.nickname) || ((ce = M.userModel) == null ? void 0 : ce.name) || d("common.labels.anonymous", "Anonymous");
|
|
2092
2093
|
return /* @__PURE__ */ g(
|
|
2093
2094
|
"tr",
|
|
2094
2095
|
{
|
|
@@ -2096,7 +2097,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2096
2097
|
children: [
|
|
2097
2098
|
/* @__PURE__ */ t("td", { style: z.tableCellPosition, children: /* @__PURE__ */ g(x, { sx: z.positionText, children: [
|
|
2098
2099
|
"#",
|
|
2099
|
-
|
|
2100
|
+
J + 1
|
|
2100
2101
|
] }) }),
|
|
2101
2102
|
/* @__PURE__ */ t("td", { style: z.tableCellName, children: /* @__PURE__ */ g(r, { sx: z.nameCell, children: [
|
|
2102
2103
|
/* @__PURE__ */ t(on, { src: oe, sx: z.leaderboardAvatar, children: !oe && /* @__PURE__ */ t(rn, { sx: z.avatarIcon }) }),
|
|
@@ -2115,7 +2116,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2115
2116
|
/* @__PURE__ */ t("td", { style: z.tableCellPoints, children: /* @__PURE__ */ t(x, { sx: z.pointsText, children: M.personalBest }) })
|
|
2116
2117
|
]
|
|
2117
2118
|
},
|
|
2118
|
-
`${M.userId}-${
|
|
2119
|
+
`${M.userId}-${J}`
|
|
2119
2120
|
);
|
|
2120
2121
|
}) })
|
|
2121
2122
|
]
|
|
@@ -2205,7 +2206,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2205
2206
|
children: e,
|
|
2206
2207
|
brandingBorderColor: n
|
|
2207
2208
|
}) => {
|
|
2208
|
-
const i =
|
|
2209
|
+
const i = fe().md, s = n || q().secondaryContainer, d = q().surface, f = jt().size, l = xe(), u = f + " solid " + s;
|
|
2209
2210
|
return /* @__PURE__ */ t(
|
|
2210
2211
|
r,
|
|
2211
2212
|
{
|
|
@@ -2230,19 +2231,19 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2230
2231
|
currentPair: i,
|
|
2231
2232
|
stepInfo: s,
|
|
2232
2233
|
gameState: d,
|
|
2233
|
-
timer:
|
|
2234
|
+
timer: f,
|
|
2234
2235
|
selected: l,
|
|
2235
2236
|
feedback: u,
|
|
2236
2237
|
sdk: a,
|
|
2237
2238
|
defaultImagePlaceholderUrl: m,
|
|
2238
2239
|
rulesDisplay: y,
|
|
2239
2240
|
showStandings: b,
|
|
2240
|
-
additionalCTA:
|
|
2241
|
+
additionalCTA: h,
|
|
2241
2242
|
onGameStart: I,
|
|
2242
2243
|
onSelection: L,
|
|
2243
2244
|
onPlayAgain: p,
|
|
2244
2245
|
imagePosition: S = "left"
|
|
2245
|
-
} = e, { t: C } = se(), P = q(), c = ((M = n == null ? void 0 : n.branding) == null ? void 0 : M.colors) || null, B = (c == null ? void 0 : c.primaryColor) || P.palette.primary.plainColor, k = P.secondaryContainer, v = P.surfaceTintDim, W = ((G = re(v || "")) == null ? void 0 : G.replace(/[^\d,]/g, "")) ?? null, R =
|
|
2246
|
+
} = e, { t: C } = se(), P = q(), c = ((M = n == null ? void 0 : n.branding) == null ? void 0 : M.colors) || null, B = (c == null ? void 0 : c.primaryColor) || P.palette.primary.plainColor, k = P.secondaryContainer, v = P.surfaceTintDim, W = ((G = re(v || "")) == null ? void 0 : G.replace(/[^\d,]/g, "")) ?? null, R = fe().md, F = be().primary, E = pe(), O = xe(), [o, z] = D(0), H = Ge(
|
|
2246
2247
|
{
|
|
2247
2248
|
images: n == null ? void 0 : n.images,
|
|
2248
2249
|
imagePlaceholder: m || ""
|
|
@@ -2266,7 +2267,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2266
2267
|
pn,
|
|
2267
2268
|
{
|
|
2268
2269
|
currentPair: i,
|
|
2269
|
-
timer:
|
|
2270
|
+
timer: f,
|
|
2270
2271
|
maxTime: (n == null ? void 0 : n.time) ?? 10,
|
|
2271
2272
|
selected: l,
|
|
2272
2273
|
feedback: u,
|
|
@@ -2285,7 +2286,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2285
2286
|
sdk: a,
|
|
2286
2287
|
onPlayAgain: p,
|
|
2287
2288
|
brandingPrimaryColor: (c == null ? void 0 : c.primaryColor) || null,
|
|
2288
|
-
additionalCTA:
|
|
2289
|
+
additionalCTA: h
|
|
2289
2290
|
}
|
|
2290
2291
|
);
|
|
2291
2292
|
default:
|
|
@@ -2322,7 +2323,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2322
2323
|
Pt,
|
|
2323
2324
|
{
|
|
2324
2325
|
value: o,
|
|
2325
|
-
onChange: (
|
|
2326
|
+
onChange: (J, X) => z(X),
|
|
2326
2327
|
sx: {
|
|
2327
2328
|
borderRadius: R,
|
|
2328
2329
|
width: "100%",
|
|
@@ -2483,8 +2484,8 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2483
2484
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
2484
2485
|
},
|
|
2485
2486
|
Se.STANDARD
|
|
2486
|
-
),
|
|
2487
|
-
fontFamilyPrimary:
|
|
2487
|
+
), f = be().primary, l = fe().xl, u = (n == null ? void 0 : n.primaryColor) || q().palette.primary.plainColor, a = q().palette.primary.onPrimary, m = (n == null ? void 0 : n.contentColor) || q().textColor, y = i ? ((S = e.eitherOr.branding) == null ? void 0 : S.images.mobileLogo) || ((C = e.eitherOr.branding) == null ? void 0 : C.images.mainLogo) || "" : ((P = e.eitherOr.branding) == null ? void 0 : P.images.mainLogo) || "", { t: b } = se(), h = e.imagePosition || "left", I = vn({
|
|
2488
|
+
fontFamilyPrimary: f,
|
|
2488
2489
|
buttonRadius: l,
|
|
2489
2490
|
primaryColor: u,
|
|
2490
2491
|
onPrimaryColor: a
|
|
@@ -2559,7 +2560,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2559
2560
|
entity: e.eitherOr,
|
|
2560
2561
|
headline: b("eitherOr.headline"),
|
|
2561
2562
|
finalImage: d,
|
|
2562
|
-
imagePosition:
|
|
2563
|
+
imagePosition: h,
|
|
2563
2564
|
signInContent: L(),
|
|
2564
2565
|
brandingContent: /* @__PURE__ */ t(
|
|
2565
2566
|
de,
|
|
@@ -2579,7 +2580,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2579
2580
|
rulesDisplay: s
|
|
2580
2581
|
}) => {
|
|
2581
2582
|
var m;
|
|
2582
|
-
const { t: d } = se(),
|
|
2583
|
+
const { t: d } = se(), f = ((m = e.branding) == null ? void 0 : m.colors) || null, { brandingLogo: l } = je(
|
|
2583
2584
|
e.branding || null
|
|
2584
2585
|
), u = (y) => {
|
|
2585
2586
|
var b;
|
|
@@ -2601,7 +2602,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2601
2602
|
customAlertMessage: d("eitherOr.gameNotAvailableDescription"),
|
|
2602
2603
|
renderPresentedBy: u
|
|
2603
2604
|
};
|
|
2604
|
-
return /* @__PURE__ */ t(ye, { brandingBorderColor: (
|
|
2605
|
+
return /* @__PURE__ */ t(ye, { brandingBorderColor: (f == null ? void 0 : f.borderColor) || null, children: /* @__PURE__ */ t(
|
|
2605
2606
|
Tt,
|
|
2606
2607
|
{
|
|
2607
2608
|
...a,
|
|
@@ -2611,8 +2612,8 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2611
2612
|
}
|
|
2612
2613
|
) });
|
|
2613
2614
|
}, An = (e) => {
|
|
2614
|
-
var
|
|
2615
|
-
const { t: n } = se(), i = ((
|
|
2615
|
+
var f, l, u, a, m, y, b;
|
|
2616
|
+
const { t: n } = se(), i = ((f = e.eitherOr.branding) == null ? void 0 : f.colors) || null, s = xe() ? ((u = (l = e.eitherOr.branding) == null ? void 0 : l.images) == null ? void 0 : u.mobileLogo) || ((m = (a = e.eitherOr.branding) == null ? void 0 : a.images) == null ? void 0 : m.mainLogo) || "" : ((b = (y = e.eitherOr.branding) == null ? void 0 : y.images) == null ? void 0 : b.mainLogo) || "", d = {
|
|
2616
2617
|
...e.eitherOr,
|
|
2617
2618
|
branding: e.eitherOr.branding ? {
|
|
2618
2619
|
...e.eitherOr.branding,
|
|
@@ -2630,13 +2631,13 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2630
2631
|
isApiError: e.isApiError,
|
|
2631
2632
|
toggleTryAgain: e.toggleTryAgain,
|
|
2632
2633
|
apiErrorMessage: e.apiErrorMessage,
|
|
2633
|
-
renderPresentedBy: (
|
|
2634
|
+
renderPresentedBy: (h) => {
|
|
2634
2635
|
var I;
|
|
2635
2636
|
return /* @__PURE__ */ t(
|
|
2636
2637
|
de,
|
|
2637
2638
|
{
|
|
2638
2639
|
brandingLogo: s,
|
|
2639
|
-
textColor:
|
|
2640
|
+
textColor: h,
|
|
2640
2641
|
label: ((I = e.eitherOr.labels) == null ? void 0 : I.sponsor) || null
|
|
2641
2642
|
}
|
|
2642
2643
|
);
|
|
@@ -2650,20 +2651,20 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2650
2651
|
contentName: i,
|
|
2651
2652
|
brandingColors: s,
|
|
2652
2653
|
brandingUrls: d,
|
|
2653
|
-
campaignId:
|
|
2654
|
+
campaignId: f,
|
|
2654
2655
|
campaignName: l,
|
|
2655
2656
|
startGame: u,
|
|
2656
2657
|
fields: a = ["fullName", "email"],
|
|
2657
2658
|
leadTitle: m,
|
|
2658
2659
|
leadDescription: y,
|
|
2659
2660
|
leadCta: b,
|
|
2660
|
-
leadSuccessTitle:
|
|
2661
|
+
leadSuccessTitle: h,
|
|
2661
2662
|
leadSuccessDescription: I,
|
|
2662
2663
|
syncWithProfile: L = !1,
|
|
2663
2664
|
isAfterPosition: p = !1,
|
|
2664
2665
|
isSubmittingParticipation: S = !1
|
|
2665
2666
|
}) => {
|
|
2666
|
-
const { t: C } = se(), P = m ?? C("leads.header.title"), c = y ?? C("leads.header.description"), B = b ?? C("leads.buttons.submit"), k =
|
|
2667
|
+
const { t: C } = se(), P = m ?? C("leads.header.title"), c = y ?? C("leads.header.description"), B = b ?? C("leads.buttons.submit"), k = h ?? C("leads.success.title"), v = I ?? C("leads.success.description"), W = {
|
|
2667
2668
|
defaultLabel: C(p ? "eitherOr.buttons.finish" : "eitherOr.buttons.start"),
|
|
2668
2669
|
onClick: u
|
|
2669
2670
|
};
|
|
@@ -2682,7 +2683,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2682
2683
|
urls: d
|
|
2683
2684
|
},
|
|
2684
2685
|
campaign: {
|
|
2685
|
-
id:
|
|
2686
|
+
id: f,
|
|
2686
2687
|
name: l
|
|
2687
2688
|
},
|
|
2688
2689
|
fields: a,
|
|
@@ -2829,20 +2830,20 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2829
2830
|
gap: e.spacingScale.md
|
|
2830
2831
|
}
|
|
2831
2832
|
}), Rn = (e) => {
|
|
2832
|
-
var et, tt, nt, rt, ot, it, lt, at, st, ct, dt, ut, mt, gt,
|
|
2833
|
+
var et, tt, nt, rt, ot, it, lt, at, st, ct, dt, ut, mt, gt, ft, ht, xt, bt, pt, yt;
|
|
2833
2834
|
const {
|
|
2834
2835
|
eitherOr: n,
|
|
2835
2836
|
currentPair: i,
|
|
2836
2837
|
stepInfo: s,
|
|
2837
2838
|
gameState: d,
|
|
2838
|
-
timer:
|
|
2839
|
+
timer: f,
|
|
2839
2840
|
selected: l,
|
|
2840
2841
|
feedback: u,
|
|
2841
2842
|
sdk: a,
|
|
2842
2843
|
defaultImagePlaceholderUrl: m,
|
|
2843
2844
|
rulesDisplay: y,
|
|
2844
2845
|
showStandings: b,
|
|
2845
|
-
additionalCTA:
|
|
2846
|
+
additionalCTA: h,
|
|
2846
2847
|
onGameStart: I,
|
|
2847
2848
|
onSelection: L,
|
|
2848
2849
|
onPlayAgain: p
|
|
@@ -2851,9 +2852,9 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2851
2852
|
), M = m || (P ? Ke : Xe), G = Ge(
|
|
2852
2853
|
{ images: n == null ? void 0 : n.images, imagePlaceholder: M },
|
|
2853
2854
|
Se.OVERLAY
|
|
2854
|
-
),
|
|
2855
|
+
), J = Y || G, X = Ct(J), oe = St(
|
|
2855
2856
|
Se.OVERLAY
|
|
2856
|
-
), ee = S.customRadius.dark.sm, te = S.customRadius.dark.md, ie = (T == null ? void 0 : T.backgroundColor) || ((tt = (et = S.colorSchemes) == null ? void 0 : et.dark) == null ? void 0 : tt.surfaceVariant), ce = (rt = (nt = S.customRadius) == null ? void 0 : nt.light) == null ? void 0 : rt.xl, _ = (T == null ? void 0 : T.primaryColor) || ((at = (lt = (it = (ot = S.colorSchemes) == null ? void 0 : ot.light) == null ? void 0 : it.palette) == null ? void 0 : lt.primary) == null ? void 0 : at.plainColor), j = (ut = (dt = (ct = (st = S.colorSchemes) == null ? void 0 : st.light) == null ? void 0 : ct.palette) == null ? void 0 : dt.primary) == null ? void 0 : ut.onPrimary, w = S.customFontFamily.dark.primary, $ = S.colorSchemes.dark.textColor, A = S.colorSchemes.dark.surface, V = S.colorSchemes.dark.secondaryContainer, Z = S.colorSchemes.dark.surfaceTintDim, le = ((mt = re(Z || "")) == null ? void 0 : mt.replace(/[^\d,]/g, "")) ?? null,
|
|
2857
|
+
), ee = S.customRadius.dark.sm, te = S.customRadius.dark.md, ie = (T == null ? void 0 : T.backgroundColor) || ((tt = (et = S.colorSchemes) == null ? void 0 : et.dark) == null ? void 0 : tt.surfaceVariant), ce = (rt = (nt = S.customRadius) == null ? void 0 : nt.light) == null ? void 0 : rt.xl, _ = (T == null ? void 0 : T.primaryColor) || ((at = (lt = (it = (ot = S.colorSchemes) == null ? void 0 : ot.light) == null ? void 0 : it.palette) == null ? void 0 : lt.primary) == null ? void 0 : at.plainColor), j = (ut = (dt = (ct = (st = S.colorSchemes) == null ? void 0 : st.light) == null ? void 0 : ct.palette) == null ? void 0 : dt.primary) == null ? void 0 : ut.onPrimary, w = S.customFontFamily.dark.primary, $ = S.colorSchemes.dark.textColor, A = S.colorSchemes.dark.surface, V = S.colorSchemes.dark.secondaryContainer, Z = S.colorSchemes.dark.surfaceTintDim, le = ((mt = re(Z || "")) == null ? void 0 : mt.replace(/[^\d,]/g, "")) ?? null, he = re(_ || ""), Q = zn({
|
|
2857
2858
|
spacingScale: C,
|
|
2858
2859
|
smBorderRadius: ee,
|
|
2859
2860
|
contentBgColor: ie,
|
|
@@ -2880,7 +2881,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2880
2881
|
return () => clearTimeout(ue);
|
|
2881
2882
|
}
|
|
2882
2883
|
}, [s == null ? void 0 : s.currentStreak, Te]);
|
|
2883
|
-
const Re = P ? ((
|
|
2884
|
+
const Re = P ? ((ht = (ft = n.branding) == null ? void 0 : ft.images) == null ? void 0 : ht.mobileLogo) || ((bt = (xt = n.branding) == null ? void 0 : xt.images) == null ? void 0 : bt.mainLogo) || "" : ((yt = (pt = n.branding) == null ? void 0 : pt.images) == null ? void 0 : yt.mainLogo) || "", $t = c("common.labels.point", { count: v }), Dt = () => {
|
|
2884
2885
|
const ne = [], ae = (s == null ? void 0 : s.currentLives) ?? 3;
|
|
2885
2886
|
for (let ue = 0; ue < ae; ue++)
|
|
2886
2887
|
ne.push(
|
|
@@ -2899,7 +2900,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2899
2900
|
{
|
|
2900
2901
|
sx: {
|
|
2901
2902
|
height: 20,
|
|
2902
|
-
color:
|
|
2903
|
+
color: he ? `rgba(${he.replace(/[^\d,]/g, "")}, 0.35)` : `${_}59`
|
|
2903
2904
|
}
|
|
2904
2905
|
},
|
|
2905
2906
|
`empty-${ue}`
|
|
@@ -2940,7 +2941,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2940
2941
|
}
|
|
2941
2942
|
)
|
|
2942
2943
|
] });
|
|
2943
|
-
}, Et = () => /* @__PURE__ */ t(r, { sx:
|
|
2944
|
+
}, Et = () => /* @__PURE__ */ t(r, { sx: Q.dividerContainer, children: /* @__PURE__ */ t(
|
|
2944
2945
|
r,
|
|
2945
2946
|
{
|
|
2946
2947
|
sx: {
|
|
@@ -2960,19 +2961,19 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2960
2961
|
}
|
|
2961
2962
|
) }), Wt = () => {
|
|
2962
2963
|
var ne;
|
|
2963
|
-
return i ? /* @__PURE__ */ g(r, { sx:
|
|
2964
|
-
/* @__PURE__ */ t(r, { sx:
|
|
2964
|
+
return i ? /* @__PURE__ */ g(r, { sx: Q.mainContentSection, children: [
|
|
2965
|
+
/* @__PURE__ */ t(r, { sx: Q.timerContainer, children: /* @__PURE__ */ t(
|
|
2965
2966
|
Ot,
|
|
2966
2967
|
{
|
|
2967
|
-
time:
|
|
2968
|
+
time: f,
|
|
2968
2969
|
maxTime: (n == null ? void 0 : n.time) ?? 10,
|
|
2969
2970
|
brandingPrimaryColor: (T == null ? void 0 : T.primaryColor) || null
|
|
2970
2971
|
},
|
|
2971
2972
|
`timer-${i.pairId}`
|
|
2972
2973
|
) }),
|
|
2973
|
-
/* @__PURE__ */ g(r, { sx:
|
|
2974
|
-
/* @__PURE__ */ g(r, { sx:
|
|
2975
|
-
/* @__PURE__ */ t(r, { sx:
|
|
2974
|
+
/* @__PURE__ */ g(r, { sx: Q.contentContainerWithBackdrop, children: [
|
|
2975
|
+
/* @__PURE__ */ g(r, { sx: Q.optionsContainer, children: [
|
|
2976
|
+
/* @__PURE__ */ t(r, { sx: Q.optionWrapper, children: /* @__PURE__ */ t(
|
|
2976
2977
|
Ue,
|
|
2977
2978
|
{
|
|
2978
2979
|
option: i.optionOne,
|
|
@@ -2985,7 +2986,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
2985
2986
|
}
|
|
2986
2987
|
) }),
|
|
2987
2988
|
Et(),
|
|
2988
|
-
/* @__PURE__ */ t(r, { sx:
|
|
2989
|
+
/* @__PURE__ */ t(r, { sx: Q.optionWrapper, children: /* @__PURE__ */ t(
|
|
2989
2990
|
Ue,
|
|
2990
2991
|
{
|
|
2991
2992
|
option: i.optionTwo,
|
|
@@ -3040,7 +3041,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3040
3041
|
)
|
|
3041
3042
|
] })
|
|
3042
3043
|
] }),
|
|
3043
|
-
Re && /* @__PURE__ */ t(r, { sx:
|
|
3044
|
+
Re && /* @__PURE__ */ t(r, { sx: Q.bottomFooterContainer, children: /* @__PURE__ */ t(
|
|
3044
3045
|
de,
|
|
3045
3046
|
{
|
|
3046
3047
|
brandingLogo: Re,
|
|
@@ -3050,7 +3051,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3050
3051
|
}
|
|
3051
3052
|
) })
|
|
3052
3053
|
] }) : null;
|
|
3053
|
-
},
|
|
3054
|
+
}, Je = {
|
|
3054
3055
|
display: "flex",
|
|
3055
3056
|
flexDirection: "row",
|
|
3056
3057
|
justifyContent: "center",
|
|
@@ -3071,7 +3072,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3071
3072
|
opacity: "100%",
|
|
3072
3073
|
mb: "-1px"
|
|
3073
3074
|
}
|
|
3074
|
-
},
|
|
3075
|
+
}, Qe = {
|
|
3075
3076
|
flex: 1,
|
|
3076
3077
|
display: "flex",
|
|
3077
3078
|
flexDirection: "column",
|
|
@@ -3096,7 +3097,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3096
3097
|
flexDirection: P ? "column" : "row"
|
|
3097
3098
|
},
|
|
3098
3099
|
children: [
|
|
3099
|
-
/* @__PURE__ */ t(Ee, { sx:
|
|
3100
|
+
/* @__PURE__ */ t(Ee, { sx: Je, disableIndicator: !0, children: /* @__PURE__ */ g(
|
|
3100
3101
|
r,
|
|
3101
3102
|
{
|
|
3102
3103
|
sx: {
|
|
@@ -3124,7 +3125,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3124
3125
|
]
|
|
3125
3126
|
}
|
|
3126
3127
|
) }),
|
|
3127
|
-
/* @__PURE__ */ t(Ee, { sx:
|
|
3128
|
+
/* @__PURE__ */ t(Ee, { sx: Je, disableIndicator: !0, children: /* @__PURE__ */ g(
|
|
3128
3129
|
r,
|
|
3129
3130
|
{
|
|
3130
3131
|
sx: {
|
|
@@ -3160,7 +3161,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3160
3161
|
{
|
|
3161
3162
|
value: 0,
|
|
3162
3163
|
sx: { p: 0, fontSize: "1em", display: "flex" },
|
|
3163
|
-
children: /* @__PURE__ */ t(r, { sx:
|
|
3164
|
+
children: /* @__PURE__ */ t(r, { sx: Qe, children: /* @__PURE__ */ t(
|
|
3164
3165
|
_e,
|
|
3165
3166
|
{
|
|
3166
3167
|
stepInfo: s,
|
|
@@ -3168,7 +3169,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3168
3169
|
sdk: a,
|
|
3169
3170
|
onPlayAgain: p,
|
|
3170
3171
|
brandingPrimaryColor: (T == null ? void 0 : T.primaryColor) || null,
|
|
3171
|
-
additionalCTA:
|
|
3172
|
+
additionalCTA: h
|
|
3172
3173
|
}
|
|
3173
3174
|
) })
|
|
3174
3175
|
}
|
|
@@ -3178,7 +3179,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3178
3179
|
{
|
|
3179
3180
|
value: 1,
|
|
3180
3181
|
sx: { p: 0, fontSize: "1em", display: "flex" },
|
|
3181
|
-
children: /* @__PURE__ */ t(r, { sx:
|
|
3182
|
+
children: /* @__PURE__ */ t(r, { sx: Qe, children: /* @__PURE__ */ t(
|
|
3182
3183
|
Lt,
|
|
3183
3184
|
{
|
|
3184
3185
|
game: n,
|
|
@@ -3199,7 +3200,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3199
3200
|
sdk: a,
|
|
3200
3201
|
onPlayAgain: p,
|
|
3201
3202
|
brandingPrimaryColor: (T == null ? void 0 : T.primaryColor) || null,
|
|
3202
|
-
additionalCTA:
|
|
3203
|
+
additionalCTA: h
|
|
3203
3204
|
}
|
|
3204
3205
|
), Mt = () => {
|
|
3205
3206
|
var ne;
|
|
@@ -3229,7 +3230,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3229
3230
|
title: c("eitherOr.tutorial.step3Title"),
|
|
3230
3231
|
description: c("eitherOr.tutorial.step3Description")
|
|
3231
3232
|
}
|
|
3232
|
-
], ue =
|
|
3233
|
+
], ue = he ? `rgba(${he.replace(/[^\d,]/g, "")}, 0.12)` : `${_}20`;
|
|
3233
3234
|
return /* @__PURE__ */ g(
|
|
3234
3235
|
r,
|
|
3235
3236
|
{
|
|
@@ -3333,7 +3334,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3333
3334
|
sx: {
|
|
3334
3335
|
height: "1px",
|
|
3335
3336
|
mx: C.md,
|
|
3336
|
-
bgcolor:
|
|
3337
|
+
bgcolor: he ? `rgba(${he.replace(/[^\d,]/g, "")}, 0.1)` : `${_}1A`
|
|
3337
3338
|
}
|
|
3338
3339
|
}
|
|
3339
3340
|
)
|
|
@@ -3345,7 +3346,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3345
3346
|
r,
|
|
3346
3347
|
{
|
|
3347
3348
|
sx: {
|
|
3348
|
-
...
|
|
3349
|
+
...Q.filterScreenContainer,
|
|
3349
3350
|
justifyContent: Re ? "space-between" : "flex-end"
|
|
3350
3351
|
},
|
|
3351
3352
|
children: [
|
|
@@ -3362,10 +3363,10 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3362
3363
|
me,
|
|
3363
3364
|
{
|
|
3364
3365
|
variant: "soft",
|
|
3365
|
-
sx: { ...
|
|
3366
|
+
sx: { ...Q.startButton, ...Q.pulseAnimation },
|
|
3366
3367
|
endDecorator: /* @__PURE__ */ t(Ze, {}),
|
|
3367
3368
|
onClick: I,
|
|
3368
|
-
children: /* @__PURE__ */ t(x, { sx:
|
|
3369
|
+
children: /* @__PURE__ */ t(x, { sx: Q.startButtonText, children: c("eitherOr.buttons.start") })
|
|
3369
3370
|
}
|
|
3370
3371
|
)
|
|
3371
3372
|
]
|
|
@@ -3395,7 +3396,7 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3395
3396
|
{
|
|
3396
3397
|
entity: n,
|
|
3397
3398
|
headline: c("eitherOr.headline"),
|
|
3398
|
-
finalImage:
|
|
3399
|
+
finalImage: J,
|
|
3399
3400
|
rulesDisplay: y,
|
|
3400
3401
|
children: Mt()
|
|
3401
3402
|
}
|
|
@@ -3442,11 +3443,11 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3442
3443
|
var P, c, B, k, v, W, R, F, E, O, o;
|
|
3443
3444
|
const n = Me(), { t: i } = se(), s = xe(), d = St(
|
|
3444
3445
|
Se.OVERLAY
|
|
3445
|
-
),
|
|
3446
|
-
{ images: e.eitherOr.images, imagePlaceholder:
|
|
3446
|
+
), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? Ke : Xe, l = Ge(
|
|
3447
|
+
{ images: e.eitherOr.images, imagePlaceholder: f },
|
|
3447
3448
|
Se.OVERLAY
|
|
3448
|
-
), { brandingImage: u, brandingColors: a, brandingLogo: m } = je(e.eitherOr.branding || null), b = Ct(u || l),
|
|
3449
|
-
buttonRadius:
|
|
3449
|
+
), { brandingImage: u, brandingColors: a, brandingLogo: m } = je(e.eitherOr.branding || null), b = Ct(u || l), h = (c = (P = n.customRadius) == null ? void 0 : P.light) == null ? void 0 : c.xl, I = (a == null ? void 0 : a.primaryColor) || ((W = (v = (k = (B = n.colorSchemes) == null ? void 0 : B.light) == null ? void 0 : k.palette) == null ? void 0 : v.primary) == null ? void 0 : W.plainColor), L = (O = (E = (F = (R = n.colorSchemes) == null ? void 0 : R.light) == null ? void 0 : F.palette) == null ? void 0 : E.primary) == null ? void 0 : O.onPrimary, p = n.customFontFamily.dark.primary, S = On({
|
|
3450
|
+
buttonRadius: h,
|
|
3450
3451
|
primaryColor: I,
|
|
3451
3452
|
onPrimaryColor: L,
|
|
3452
3453
|
fontFamilyPrimary: p
|
|
@@ -3522,13 +3523,13 @@ const un = Ce([/* @__PURE__ */ t("path", {
|
|
|
3522
3523
|
isApiError: e.isApiError,
|
|
3523
3524
|
apiErrorMessage: e.apiErrorMessage,
|
|
3524
3525
|
toggleTryAgain: e.toggleTryAgain,
|
|
3525
|
-
renderPresentedBy: (
|
|
3526
|
+
renderPresentedBy: (f) => {
|
|
3526
3527
|
var l;
|
|
3527
3528
|
return /* @__PURE__ */ t(
|
|
3528
3529
|
de,
|
|
3529
3530
|
{
|
|
3530
3531
|
brandingLogo: d,
|
|
3531
|
-
textColor:
|
|
3532
|
+
textColor: f,
|
|
3532
3533
|
label: ((l = e.eitherOr.labels) == null ? void 0 : l.sponsor) || null,
|
|
3533
3534
|
isCentered: i
|
|
3534
3535
|
}
|
|
@@ -3565,13 +3566,13 @@ const Dn = (e) => {
|
|
|
3565
3566
|
var ee, te, ie, ce, _;
|
|
3566
3567
|
const [n, i] = D(
|
|
3567
3568
|
K.LOADING
|
|
3568
|
-
), [s, d] = D(null), [
|
|
3569
|
+
), [s, d] = D(null), [f, l] = D(null), [u, a] = D(10), [m, y] = D(null), [b, h] = D({
|
|
3569
3570
|
isCorrect: null,
|
|
3570
3571
|
selectedOption: null
|
|
3571
|
-
}), [I, L] = D(!1), [p, S] = D(!1), [C, P] = D(!1), [c, B] = D(""), [k, v] = D(!1), [W, R] = D(!1), [F, E] = D(!1), O = qe(null), o =
|
|
3572
|
+
}), [I, L] = D(!1), [p, S] = D(!1), [C, P] = D(!1), [c, B] = D(""), [k, v] = D(!1), [W, R] = D(!1), [F, E] = D(!1), O = qe(null), o = fn(e.entityId, e.sdk), {
|
|
3572
3573
|
setIsUnauthorized: z,
|
|
3573
3574
|
setIsApiError: H
|
|
3574
|
-
} =
|
|
3575
|
+
} = hn(e.entityId, e.sdk, I);
|
|
3575
3576
|
ge(() => {
|
|
3576
3577
|
Gt(e.language || "en");
|
|
3577
3578
|
}, [e.language]), ge(() => {
|
|
@@ -3588,7 +3589,7 @@ const Dn = (e) => {
|
|
|
3588
3589
|
return A.pairId === ((V = O.current) == null ? void 0 : V.pairId);
|
|
3589
3590
|
}
|
|
3590
3591
|
), $ = ((w == null ? void 0 : w.optionOne.value) ?? 0) >= ((w == null ? void 0 : w.optionTwo.value) ?? 0) ? (w == null ? void 0 : w.optionOne.id) ?? null : (w == null ? void 0 : w.optionTwo.id) ?? null;
|
|
3591
|
-
|
|
3592
|
+
h({
|
|
3592
3593
|
isCorrect: !1,
|
|
3593
3594
|
selectedOption: null,
|
|
3594
3595
|
timedOut: !0,
|
|
@@ -3601,7 +3602,7 @@ const Dn = (e) => {
|
|
|
3601
3602
|
return;
|
|
3602
3603
|
}
|
|
3603
3604
|
const V = j.steps.find((le) => !le.played);
|
|
3604
|
-
V ? (d(V), y(null),
|
|
3605
|
+
V ? (d(V), y(null), h({ isCorrect: null, selectedOption: null })) : A ? R(!0) : i(K.RESULTS);
|
|
3605
3606
|
}, 1e3);
|
|
3606
3607
|
}
|
|
3607
3608
|
}), N = (j) => {
|
|
@@ -3651,15 +3652,15 @@ const Dn = (e) => {
|
|
|
3651
3652
|
), V = (A == null ? void 0 : A.correct) ?? !1, Z = V ? null : [A == null ? void 0 : A.optionOne.id, A == null ? void 0 : A.optionTwo.id].find(
|
|
3652
3653
|
(le) => le !== w
|
|
3653
3654
|
) ?? null;
|
|
3654
|
-
|
|
3655
|
-
var
|
|
3656
|
-
const le = ((
|
|
3655
|
+
h({ isCorrect: V, selectedOption: w, correctOptionId: Z }), l($), setTimeout(() => {
|
|
3656
|
+
var Q;
|
|
3657
|
+
const le = ((Q = e.leads) == null ? void 0 : Q.position) === "after" && (o == null ? void 0 : o.authRequirement) === "LEAD" && !k;
|
|
3657
3658
|
if ($.currentLives === 0) {
|
|
3658
3659
|
le ? R(!0) : i(K.RESULTS);
|
|
3659
3660
|
return;
|
|
3660
3661
|
}
|
|
3661
|
-
const
|
|
3662
|
-
|
|
3662
|
+
const he = $.steps.find((Ie) => !Ie.played);
|
|
3663
|
+
he ? (d(he), y(null), h({ isCorrect: null, selectedOption: null })) : le ? R(!0) : i(K.RESULTS);
|
|
3663
3664
|
}, 1e3);
|
|
3664
3665
|
} catch ($) {
|
|
3665
3666
|
console.error("Failed to submit answer:", $), y(null), N($);
|
|
@@ -3691,9 +3692,9 @@ const Dn = (e) => {
|
|
|
3691
3692
|
} else
|
|
3692
3693
|
R(!1), E(!1), i(K.RESULTS);
|
|
3693
3694
|
}, [(ie = e.leads) == null ? void 0 : ie.position, e.entityId, e.sdk, o == null ? void 0 : o.time]), G = Le(() => {
|
|
3694
|
-
i(K.TUTORIAL), d(null), l(null), a((o == null ? void 0 : o.time) ?? 10), y(null),
|
|
3695
|
-
}, [o == null ? void 0 : o.time]),
|
|
3696
|
-
P(!1), S(!1), B(""), H(!1), z(!1), L(!I), i(K.TUTORIAL), d(null), l(null), y(null),
|
|
3695
|
+
i(K.TUTORIAL), d(null), l(null), a((o == null ? void 0 : o.time) ?? 10), y(null), h({ isCorrect: null, selectedOption: null }), v(!1), R(!1);
|
|
3696
|
+
}, [o == null ? void 0 : o.time]), J = () => {
|
|
3697
|
+
P(!1), S(!1), B(""), H(!1), z(!1), L(!I), i(K.TUTORIAL), d(null), l(null), y(null), h({ isCorrect: null, selectedOption: null }), v(!1), R(!1);
|
|
3697
3698
|
};
|
|
3698
3699
|
if (!o)
|
|
3699
3700
|
return /* @__PURE__ */ t(He, { my: 20 });
|
|
@@ -3737,7 +3738,7 @@ const Dn = (e) => {
|
|
|
3737
3738
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
3738
3739
|
isApiError: C,
|
|
3739
3740
|
apiErrorMessage: c,
|
|
3740
|
-
toggleTryAgain:
|
|
3741
|
+
toggleTryAgain: J,
|
|
3741
3742
|
rulesDisplay: e.rulesDisplay
|
|
3742
3743
|
}
|
|
3743
3744
|
) : /* @__PURE__ */ t(
|
|
@@ -3748,7 +3749,7 @@ const Dn = (e) => {
|
|
|
3748
3749
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
3749
3750
|
isApiError: C,
|
|
3750
3751
|
apiErrorMessage: c,
|
|
3751
|
-
toggleTryAgain:
|
|
3752
|
+
toggleTryAgain: J,
|
|
3752
3753
|
rulesDisplay: e.rulesDisplay
|
|
3753
3754
|
}
|
|
3754
3755
|
);
|
|
@@ -3786,7 +3787,7 @@ const Dn = (e) => {
|
|
|
3786
3787
|
{
|
|
3787
3788
|
eitherOr: o,
|
|
3788
3789
|
currentPair: s,
|
|
3789
|
-
stepInfo:
|
|
3790
|
+
stepInfo: f,
|
|
3790
3791
|
gameState: n,
|
|
3791
3792
|
timer: u,
|
|
3792
3793
|
selected: m,
|
|
@@ -3807,7 +3808,7 @@ const Dn = (e) => {
|
|
|
3807
3808
|
{
|
|
3808
3809
|
eitherOr: o,
|
|
3809
3810
|
currentPair: s,
|
|
3810
|
-
stepInfo:
|
|
3811
|
+
stepInfo: f,
|
|
3811
3812
|
gameState: n,
|
|
3812
3813
|
timer: u,
|
|
3813
3814
|
selected: m,
|
|
@@ -3823,7 +3824,7 @@ const Dn = (e) => {
|
|
|
3823
3824
|
onPlayAgain: G
|
|
3824
3825
|
}
|
|
3825
3826
|
) : /* @__PURE__ */ t(De, {});
|
|
3826
|
-
}, Fn = (e) => /* @__PURE__ */ t(Vt, { packageName: "either-or-play", ...e, children: /* @__PURE__ */ t(Dn, { ...e }) }),
|
|
3827
|
+
}, Fn = (e) => /* @__PURE__ */ t(Vt, { packageName: "either-or-play", ...e, children: /* @__PURE__ */ t(Dn, { ...e }) }), lr = Fn;
|
|
3827
3828
|
export {
|
|
3828
|
-
|
|
3829
|
+
lr as EitherOrPlay
|
|
3829
3830
|
};
|