fansunited-widgets-cdn 0.0.86-RC8 → 0.0.86
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/chunks/{Alert-B6o66mYo.js → Alert-DyM0oQgv.js} +32 -32
- package/chunks/{CardContent-NCZhfGcZ.js → CardContent-JGV7AYRJ.js} +19 -18
- package/chunks/{ChevronRight-1pLZ7T0v.js → ChevronRight-BjivYvSo.js} +11 -11
- package/chunks/{ClassicQuizWrapper-n2epPO4k.js → ClassicQuizWrapper-ChR6VdmQ.js} +8 -9
- package/chunks/{CollectLeadForm-C_3plJtn-Dr8J3eDw.js → CollectLeadForm-iZpBeMTk-Be-1nl3u.js} +2 -2
- package/chunks/{CollectLeadWrapper-CCtTZAxL.js → CollectLeadWrapper-DWGnbQNs.js} +22 -23
- package/chunks/{EitherOrById-ClGwMK0b.js → EitherOrById-HLRwnSut.js} +65 -65
- package/chunks/{EitherOrPreviewWrapper-BYiKyYwi.js → EitherOrPreviewWrapper-Bhb40ehK.js} +10 -10
- package/chunks/{Error-BurPfBJw-DWYn31sK.js → Error-D0HPar1M-CvBCxjku.js} +3 -3
- package/chunks/{EventGameWrapper-BphusLTk.js → EventGameWrapper-FLrbgLNx.js} +95 -96
- package/chunks/{Grid-yjqNNhEx.js → Grid-BgTvl7U0.js} +37 -37
- package/chunks/{IconButton-D7onwgY0.js → IconButton-UDap3hOW.js} +21 -21
- package/chunks/{List-8Vy9IZiv.js → List-CaGDrvb1.js} +23 -23
- package/chunks/{MatchPredictionContainer-BGytBwLo.js → MatchPredictionContainer-CCryS3WW.js} +7 -7
- package/chunks/{MatchQuizWrapper-BGjldBpF.js → MatchQuizWrapper-CNPkFMYb.js} +149 -150
- package/chunks/{OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js → OverlayLeadAfterCollection-CwqTKIoQ-B249CJNS.js} +3 -3
- package/chunks/{OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js → OverlayScoreStateSkeleton-CR-b8BTk-CcF6Sgb_.js} +8 -8
- package/chunks/{PersonalityQuizWrapper-BgLFw5tM.js → PersonalityQuizWrapper-D0_OHdgC.js} +315 -314
- package/chunks/{PlayerOfTheMatch-CImBLG3T.js → PlayerOfTheMatch-KHUAoy28.js} +96 -96
- package/chunks/{PollWrapper-QpIKCCVF.js → PollWrapper-Dsi16RT3.js} +8 -9
- package/chunks/{Portal-DegkUXpU-ByGP9zS1.js → Portal-Cvhw2F3y-CfNE9zHV.js} +313 -314
- package/chunks/{PreviewQuizById-Ba6yhxKV.js → PreviewQuizById-DdmuvcAL.js} +1019 -996
- package/chunks/{Sheet-U5EnSrgg.js → Sheet-x5Z9YdFs.js} +35 -35
- package/chunks/{Stack-DbDi7kPO.js → Stack-DZB2vzbp.js} +36 -36
- package/chunks/{Tabs-leN3Fb8D--YMyy3EM.js → Tabs-DmfafFAr-bCryBf-H.js} +2 -2
- package/chunks/{TeamNextMatchPrediction-9VSQOCcC.js → TeamNextMatchPrediction-C-fToJvQ.js} +2 -2
- package/chunks/{Tutorial-CRJLOovs.js → Tutorial-BI9zKJw5.js} +72 -73
- package/chunks/{createLucideIcon-CMWOQsDL.js → createLucideIcon-89uTOJaq.js} +8 -8
- package/chunks/{createSvgIcon-D9D4a1R9.js → createSvgIcon-DsrdSWLs.js} +167 -167
- package/chunks/{default-quiz-bg-ADjjIfPj.js → default-quiz-bg-CbX4gLOf.js} +15 -14
- package/chunks/{index-UwW9niUj.js → index-BJtPwLU2.js} +1 -1
- package/chunks/{index-CPTAlr_t.js → index-BXdeff8G.js} +1 -1
- package/chunks/{index-Da0AXb_O.js → index-BwmaB0Jc.js} +1 -1
- package/chunks/{index-CviTG4Nv.js → index-CSM_gD0c.js} +1 -1
- package/chunks/{index-BycLbIYY.js → index-CfNoJqrf.js} +1 -1
- package/chunks/{index-C6KAc5B_.js → index-CowyrOBF.js} +1 -1
- package/chunks/{index-DUQ2LFod-Cw45tHim.js → index-CsLtqiB_-DH3NMQxW.js} +32 -29
- package/chunks/{index-DwR4J2nN.js → index-CtAJur0I.js} +1 -1
- package/chunks/{index-CILd3yUc.js → index-DBucbNfJ.js} +1 -1
- package/chunks/{index-CHV6tlpH.js → index-DRDXyva1.js} +9 -9
- package/chunks/{index-CvGJXa6l.js → index-DRsTGSlf.js} +1 -1
- package/chunks/{index-CK2RXrJm.js → index-DXh1obfA.js} +1 -1
- package/chunks/{index-B74jHeYm.js → index-Dbuicm10.js} +2 -2
- package/chunks/{index-BfVvJg5R.js → index-DoDwv4Hi.js} +1 -1
- package/chunks/{index-CiB_Gqim.js → index-SdhwlCm-.js} +1 -1
- package/chunks/{index-0ADq_9jd.js → index-TCdxAH9x.js} +1 -1
- package/chunks/{init-C-gCorsh.js → init-CxQCMVyG.js} +1 -1
- package/chunks/main-Cx-uBTln.js +51049 -0
- package/chunks/resolveProps-DfBmYyXU.js +1632 -0
- package/chunks/{users-CXdzg3DM.js → users-Bltqtuv-.js} +1 -1
- package/fu-widgets-loader.es.js +16 -17
- package/fu-widgets-loader.js +1 -1
- package/fu-widgets.es.js +2 -2
- package/fu-widgets.iife.js +290 -290
- package/manifest.json +52 -54
- package/package.json +1 -1
- package/chunks/index-CJqcqbHq.js +0 -5
- package/chunks/index.es-wHqA4PHm.js +0 -11480
- package/chunks/main-Bh6iw92_.js +0 -39827
- package/chunks/resolveProps-Bgg0H6c2.js +0 -1016
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { r as i,
|
|
2
|
-
import { d as
|
|
3
|
-
import { o as
|
|
4
|
-
import { S as
|
|
5
|
-
import { i as Re, S as Me,
|
|
6
|
-
import { C as
|
|
7
|
-
import {
|
|
8
|
-
import { G as de } from "./Grid-yjqNNhEx.js";
|
|
1
|
+
import { r as i, j as l, E as re, x as xe, _ as v, g as q, b as Q, d as X, F as ne, e as L, l as J, u as ve } from "./main-Cx-uBTln.js";
|
|
2
|
+
import { d as ye, A as Ce } from "./default-quiz-bg-CbX4gLOf.js";
|
|
3
|
+
import { o as F, g as ge, u as ae, c as K } from "./createSvgIcon-DsrdSWLs.js";
|
|
4
|
+
import { S as se } from "./Stack-DZB2vzbp.js";
|
|
5
|
+
import { i as Z, w as ie, l as Ee, u as ee, c as V, s as A, m as be, d as te, j as Re, S as Me, b as le, a as U, T as _, B as Te } from "./resolveProps-DfBmYyXU.js";
|
|
6
|
+
import { C as Se } from "./CardContent-JGV7AYRJ.js";
|
|
7
|
+
import { G as de } from "./Grid-BgTvl7U0.js";
|
|
9
8
|
function ce(...t) {
|
|
10
9
|
return t.reduce((e, r) => r == null ? e : function(...s) {
|
|
11
10
|
e.apply(this, s), r.apply(this, s);
|
|
@@ -13,7 +12,7 @@ function ce(...t) {
|
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
function oe(t) {
|
|
16
|
-
return
|
|
15
|
+
return F(t).defaultView || window;
|
|
17
16
|
}
|
|
18
17
|
function ke(t) {
|
|
19
18
|
const e = t.documentElement.clientWidth;
|
|
@@ -57,20 +56,20 @@ function ze(t) {
|
|
|
57
56
|
getTabbable: n = De,
|
|
58
57
|
isEnabled: a = Oe,
|
|
59
58
|
open: d
|
|
60
|
-
} = t, c = i.useRef(!1), m = i.useRef(null), f = i.useRef(null), h = i.useRef(null), C = i.useRef(null), y = i.useRef(!1), p = i.useRef(null), T =
|
|
59
|
+
} = t, c = i.useRef(!1), m = i.useRef(null), f = i.useRef(null), h = i.useRef(null), C = i.useRef(null), y = i.useRef(!1), p = i.useRef(null), T = Z(ge(e), p), I = i.useRef(null);
|
|
61
60
|
i.useEffect(() => {
|
|
62
61
|
!d || !p.current || (y.current = !r);
|
|
63
62
|
}, [r, d]), i.useEffect(() => {
|
|
64
63
|
if (!d || !p.current)
|
|
65
64
|
return;
|
|
66
|
-
const u =
|
|
65
|
+
const u = F(p.current);
|
|
67
66
|
return p.current.contains(u.activeElement) || (p.current.hasAttribute("tabIndex") || p.current.setAttribute("tabIndex", "-1"), y.current && p.current.focus()), () => {
|
|
68
67
|
s || (h.current && h.current.focus && (c.current = !0, h.current.focus()), h.current = null);
|
|
69
68
|
};
|
|
70
69
|
}, [d]), i.useEffect(() => {
|
|
71
70
|
if (!d || !p.current)
|
|
72
71
|
return;
|
|
73
|
-
const u =
|
|
72
|
+
const u = F(p.current), E = (M) => {
|
|
74
73
|
I.current = M, !(o || !a() || M.key !== "Tab") && u.activeElement === p.current && M.shiftKey && (c.current = !0, f.current && f.current.focus());
|
|
75
74
|
}, R = () => {
|
|
76
75
|
const M = p.current;
|
|
@@ -131,18 +130,18 @@ function ze(t) {
|
|
|
131
130
|
function Ne(t) {
|
|
132
131
|
return typeof t == "function" ? t() : t;
|
|
133
132
|
}
|
|
134
|
-
const
|
|
133
|
+
const Fe = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
135
134
|
const {
|
|
136
135
|
children: o,
|
|
137
136
|
container: s,
|
|
138
137
|
disablePortal: n = !1
|
|
139
|
-
} = e, [a, d] = i.useState(null), c =
|
|
138
|
+
} = e, [a, d] = i.useState(null), c = Z(/* @__PURE__ */ i.isValidElement(o) ? ge(o) : null, r);
|
|
140
139
|
if (re(() => {
|
|
141
140
|
n || d(Ne(s) || document.body);
|
|
142
141
|
}, [s, n]), re(() => {
|
|
143
142
|
if (a && !n)
|
|
144
|
-
return
|
|
145
|
-
|
|
143
|
+
return ie(r, a), () => {
|
|
144
|
+
ie(r, null);
|
|
146
145
|
};
|
|
147
146
|
}, [r, a, n]), n) {
|
|
148
147
|
if (/* @__PURE__ */ i.isValidElement(o)) {
|
|
@@ -156,11 +155,11 @@ const We = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
|
156
155
|
});
|
|
157
156
|
}
|
|
158
157
|
return /* @__PURE__ */ l.jsx(i.Fragment, {
|
|
159
|
-
children: a && /* @__PURE__ */
|
|
158
|
+
children: a && /* @__PURE__ */ xe.createPortal(o, a)
|
|
160
159
|
});
|
|
161
160
|
});
|
|
162
|
-
function
|
|
163
|
-
const e =
|
|
161
|
+
function We(t) {
|
|
162
|
+
const e = F(t);
|
|
164
163
|
return e.body === t ? oe(t).innerWidth > e.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
165
164
|
}
|
|
166
165
|
function H(t, e) {
|
|
@@ -187,14 +186,14 @@ function Y(t, e) {
|
|
|
187
186
|
function $e(t, e) {
|
|
188
187
|
const r = [], o = t.container;
|
|
189
188
|
if (!e.disableScrollLock) {
|
|
190
|
-
if (
|
|
191
|
-
const a = ke(
|
|
189
|
+
if (We(o)) {
|
|
190
|
+
const a = ke(F(o));
|
|
192
191
|
r.push({
|
|
193
192
|
value: o.style.paddingRight,
|
|
194
193
|
property: "padding-right",
|
|
195
194
|
el: o
|
|
196
195
|
}), o.style.paddingRight = `${ue(o) + a}px`;
|
|
197
|
-
const d =
|
|
196
|
+
const d = F(o).querySelectorAll(".mui-fixed");
|
|
198
197
|
[].forEach.call(d, (c) => {
|
|
199
198
|
r.push({
|
|
200
199
|
value: c.style.paddingRight,
|
|
@@ -205,7 +204,7 @@ function $e(t, e) {
|
|
|
205
204
|
}
|
|
206
205
|
let n;
|
|
207
206
|
if (o.parentNode instanceof DocumentFragment)
|
|
208
|
-
n =
|
|
207
|
+
n = F(o).body;
|
|
209
208
|
else {
|
|
210
209
|
const a = o.parentElement, d = oe(o);
|
|
211
210
|
n = (a == null ? void 0 : a.nodeName) === "HTML" && d.getComputedStyle(a).overflowY === "scroll" ? a : o;
|
|
@@ -301,17 +300,17 @@ function Ke(t) {
|
|
|
301
300
|
onClose: m,
|
|
302
301
|
open: f,
|
|
303
302
|
rootRef: h
|
|
304
|
-
} = t, C = i.useRef({}), y = i.useRef(null), p = i.useRef(null), T =
|
|
303
|
+
} = t, C = i.useRef({}), y = i.useRef(null), p = i.useRef(null), T = Z(p, h), [I, D] = i.useState(!f), w = Ue(c);
|
|
305
304
|
let u = !0;
|
|
306
305
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (u = !1);
|
|
307
|
-
const E = () =>
|
|
306
|
+
const E = () => F(y.current), R = () => (C.current.modalRef = p.current, C.current.mount = y.current, C.current), P = () => {
|
|
308
307
|
s.mount(R(), {
|
|
309
308
|
disableScrollLock: o
|
|
310
309
|
}), p.current && (p.current.scrollTop = 0);
|
|
311
|
-
}, M =
|
|
310
|
+
}, M = ae(() => {
|
|
312
311
|
const b = Le(e) || E().body;
|
|
313
312
|
s.add(R(), b), p.current && P();
|
|
314
|
-
}), S = i.useCallback(() => s.isTopModal(R()), [s]), O =
|
|
313
|
+
}), S = i.useCallback(() => s.isTopModal(R()), [s]), O = ae((b) => {
|
|
315
314
|
y.current = b, b && (f && S() ? P() : p.current && H(p.current, u));
|
|
316
315
|
}), x = i.useCallback(() => {
|
|
317
316
|
s.remove(R(), u);
|
|
@@ -331,7 +330,7 @@ function Ke(t) {
|
|
|
331
330
|
};
|
|
332
331
|
return {
|
|
333
332
|
getRootProps: (b = {}) => {
|
|
334
|
-
const g =
|
|
333
|
+
const g = Ee(t);
|
|
335
334
|
delete g.onTransitionEnter, delete g.onTransitionExited;
|
|
336
335
|
const N = v({}, g, b);
|
|
337
336
|
return v({
|
|
@@ -369,9 +368,9 @@ function Ke(t) {
|
|
|
369
368
|
};
|
|
370
369
|
}
|
|
371
370
|
function _e(t) {
|
|
372
|
-
return
|
|
371
|
+
return q("MuiCardCover", t);
|
|
373
372
|
}
|
|
374
|
-
|
|
373
|
+
Q("MuiCardCover", ["root"]);
|
|
375
374
|
const Ye = ["className", "component", "children", "slots", "slotProps"], Ge = () => te({
|
|
376
375
|
root: ["root"]
|
|
377
376
|
}, _e, {}), Je = A("div", {
|
|
@@ -407,7 +406,7 @@ const Ye = ["className", "component", "children", "slots", "slotProps"], Ge = ()
|
|
|
407
406
|
}
|
|
408
407
|
}
|
|
409
408
|
}), fe = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
410
|
-
const o =
|
|
409
|
+
const o = ee({
|
|
411
410
|
props: e,
|
|
412
411
|
name: "JoyCardCover"
|
|
413
412
|
}), {
|
|
@@ -416,7 +415,7 @@ const Ye = ["className", "component", "children", "slots", "slotProps"], Ge = ()
|
|
|
416
415
|
children: a,
|
|
417
416
|
slots: d = {},
|
|
418
417
|
slotProps: c = {}
|
|
419
|
-
} = o, m =
|
|
418
|
+
} = o, m = X(o, Ye), f = v({}, o, {
|
|
420
419
|
component: n
|
|
421
420
|
}), h = Ge(), C = v({}, m, {
|
|
422
421
|
component: n,
|
|
@@ -424,7 +423,7 @@ const Ye = ["className", "component", "children", "slots", "slotProps"], Ge = ()
|
|
|
424
423
|
slotProps: c
|
|
425
424
|
}), [y, p] = V("root", {
|
|
426
425
|
ref: r,
|
|
427
|
-
className:
|
|
426
|
+
className: be(h.root, s),
|
|
428
427
|
elementType: Je,
|
|
429
428
|
externalForwardedProps: C,
|
|
430
429
|
ownerState: f
|
|
@@ -436,13 +435,13 @@ const Ye = ["className", "component", "children", "slots", "slotProps"], Ge = ()
|
|
|
436
435
|
}));
|
|
437
436
|
});
|
|
438
437
|
function qe(t) {
|
|
439
|
-
return
|
|
438
|
+
return q("MuiModalDialog", t);
|
|
440
439
|
}
|
|
441
|
-
const
|
|
440
|
+
const Mt = Q("MuiModalDialog", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "layoutCenter", "layoutFullscreen"]), Qe = /* @__PURE__ */ i.createContext(void 0), Xe = /* @__PURE__ */ i.createContext(void 0);
|
|
442
441
|
function Ze(t) {
|
|
443
|
-
return
|
|
442
|
+
return q("MuiModal", t);
|
|
444
443
|
}
|
|
445
|
-
|
|
444
|
+
Q("MuiModal", ["root", "hidden", "backdrop"]);
|
|
446
445
|
const et = /* @__PURE__ */ i.createContext(void 0), tt = ["children", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onClose", "onKeyDown", "open", "component", "slots", "slotProps"], ot = (t) => {
|
|
447
446
|
const {
|
|
448
447
|
open: e
|
|
@@ -489,7 +488,7 @@ const et = /* @__PURE__ */ i.createContext(void 0), tt = ["children", "container
|
|
|
489
488
|
slot: "Backdrop",
|
|
490
489
|
overridesResolver: (t, e) => e.backdrop
|
|
491
490
|
})({}), it = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
492
|
-
const o =
|
|
491
|
+
const o = ee({
|
|
493
492
|
props: e,
|
|
494
493
|
name: "JoyModal"
|
|
495
494
|
}), {
|
|
@@ -508,7 +507,7 @@ const et = /* @__PURE__ */ i.createContext(void 0), tt = ["children", "container
|
|
|
508
507
|
component: I,
|
|
509
508
|
slots: D = {},
|
|
510
509
|
slotProps: w = {}
|
|
511
|
-
} = o, u =
|
|
510
|
+
} = o, u = X(o, tt), E = v({}, o, {
|
|
512
511
|
disableAutoFocus: a,
|
|
513
512
|
disableEnforceFocus: d,
|
|
514
513
|
disableEscapeKeyDown: c,
|
|
@@ -536,7 +535,7 @@ const et = /* @__PURE__ */ i.createContext(void 0), tt = ["children", "container
|
|
|
536
535
|
externalForwardedProps: j,
|
|
537
536
|
getSlotProps: R,
|
|
538
537
|
ownerState: E
|
|
539
|
-
}), [$,
|
|
538
|
+
}), [$, W] = V("backdrop", {
|
|
540
539
|
className: x.backdrop,
|
|
541
540
|
elementType: st,
|
|
542
541
|
externalForwardedProps: j,
|
|
@@ -545,12 +544,12 @@ const et = /* @__PURE__ */ i.createContext(void 0), tt = ["children", "container
|
|
|
545
544
|
});
|
|
546
545
|
return !y && !T ? null : /* @__PURE__ */ l.jsx(et.Provider, {
|
|
547
546
|
value: p,
|
|
548
|
-
children: /* @__PURE__ */ l.jsx(
|
|
547
|
+
children: /* @__PURE__ */ l.jsx(Fe, {
|
|
549
548
|
ref: S,
|
|
550
549
|
container: n,
|
|
551
550
|
disablePortal: m,
|
|
552
551
|
children: /* @__PURE__ */ l.jsxs(k, v({}, z, {
|
|
553
|
-
children: [C ? null : /* @__PURE__ */ l.jsx($, v({},
|
|
552
|
+
children: [C ? null : /* @__PURE__ */ l.jsx($, v({}, W)), /* @__PURE__ */ l.jsx(ze, {
|
|
554
553
|
disableEnforceFocus: d,
|
|
555
554
|
disableAutoFocus: a,
|
|
556
555
|
disableRestoreFocus: f,
|
|
@@ -642,7 +641,7 @@ const ct = A(Me, {
|
|
|
642
641
|
}
|
|
643
642
|
}
|
|
644
643
|
})), ut = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
645
|
-
const o =
|
|
644
|
+
const o = ee({
|
|
646
645
|
props: e,
|
|
647
646
|
name: "JoyModalDialog"
|
|
648
647
|
}), {
|
|
@@ -659,7 +658,7 @@ const ct = A(Me, {
|
|
|
659
658
|
minWidth: p,
|
|
660
659
|
slots: T = {},
|
|
661
660
|
slotProps: I = {}
|
|
662
|
-
} = o, D =
|
|
661
|
+
} = o, D = X(o, lt), w = v({}, o, {
|
|
663
662
|
color: c,
|
|
664
663
|
component: m,
|
|
665
664
|
maxWidth: y,
|
|
@@ -672,14 +671,14 @@ const ct = A(Me, {
|
|
|
672
671
|
component: m,
|
|
673
672
|
slots: T,
|
|
674
673
|
slotProps: I
|
|
675
|
-
}), R =
|
|
674
|
+
}), R = ne(), P = ne(), M = i.useMemo(() => ({
|
|
676
675
|
variant: f,
|
|
677
676
|
color: c,
|
|
678
677
|
labelledBy: R,
|
|
679
678
|
describedBy: P
|
|
680
679
|
}), [c, f, R, P]), [S, O] = V("root", {
|
|
681
680
|
ref: r,
|
|
682
|
-
className:
|
|
681
|
+
className: be(u.root, s),
|
|
683
682
|
elementType: ct,
|
|
684
683
|
externalForwardedProps: E,
|
|
685
684
|
ownerState: w,
|
|
@@ -702,10 +701,10 @@ const ct = A(Me, {
|
|
|
702
701
|
const k = {};
|
|
703
702
|
if (Re(x, ["Divider"])) {
|
|
704
703
|
var z, $;
|
|
705
|
-
const
|
|
706
|
-
k.inset = (z =
|
|
704
|
+
const W = x.props;
|
|
705
|
+
k.inset = (z = W == null ? void 0 : W.inset) != null ? z : "context";
|
|
707
706
|
const b = d === "vertical" ? "horizontal" : "vertical";
|
|
708
|
-
k.orientation = ($ =
|
|
707
|
+
k.orientation = ($ = W == null ? void 0 : W.orientation) != null ? $ : b;
|
|
709
708
|
}
|
|
710
709
|
return j === 0 && (k["data-first-child"] = ""), j === i.Children.count(n) - 1 && (k["data-last-child"] = ""), /* @__PURE__ */ i.cloneElement(x, k);
|
|
711
710
|
})
|
|
@@ -714,7 +713,7 @@ const ct = A(Me, {
|
|
|
714
713
|
});
|
|
715
714
|
}), pt = K(/* @__PURE__ */ l.jsx("path", {
|
|
716
715
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"
|
|
717
|
-
}), "Info"),
|
|
716
|
+
}), "Info"), Tt = {
|
|
718
717
|
LOADING: "loading",
|
|
719
718
|
TUTORIAL: "tutorial",
|
|
720
719
|
PLAYING: "playing",
|
|
@@ -730,7 +729,7 @@ const ct = A(Me, {
|
|
|
730
729
|
opacity: 0;
|
|
731
730
|
transform: translateY(-20px);
|
|
732
731
|
}
|
|
733
|
-
`,
|
|
732
|
+
`, St = {
|
|
734
733
|
pointsAdded: {
|
|
735
734
|
position: "absolute",
|
|
736
735
|
top: -20,
|
|
@@ -779,7 +778,7 @@ const ct = A(Me, {
|
|
|
779
778
|
borderRadius: "inherit",
|
|
780
779
|
transform: "translateZ(0)"
|
|
781
780
|
}
|
|
782
|
-
},
|
|
781
|
+
}, kt = (t, e) => ({
|
|
783
782
|
flex: 1,
|
|
784
783
|
mx: 0.5,
|
|
785
784
|
height: 4,
|
|
@@ -808,7 +807,7 @@ const ct = A(Me, {
|
|
|
808
807
|
transform: scale(1);
|
|
809
808
|
}
|
|
810
809
|
`
|
|
811
|
-
},
|
|
810
|
+
}, It = {
|
|
812
811
|
wrapper: {
|
|
813
812
|
animation: `${G.fadeInUp} 0.6s ease-out`
|
|
814
813
|
},
|
|
@@ -886,10 +885,10 @@ const ct = A(Me, {
|
|
|
886
885
|
bgcolor: (t) => `${t.vars.palette.primary[500]}10`
|
|
887
886
|
}
|
|
888
887
|
}
|
|
889
|
-
},
|
|
888
|
+
}, wt = (t) => ({
|
|
890
889
|
fontWeight: "bold",
|
|
891
890
|
color: (e) => t ? e.vars.palette.primary[500] : "inherit"
|
|
892
|
-
}),
|
|
891
|
+
}), Pt = (t) => (e) => t === 0 ? e.vars.palette.warning[400] : t === 1 ? e.vars.palette.neutral[400] : e.vars.palette.warning[700], he = {
|
|
893
892
|
shadow: {
|
|
894
893
|
background: {
|
|
895
894
|
xs: "linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0) 120px), linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0) 180px)",
|
|
@@ -955,7 +954,7 @@ const ct = A(Me, {
|
|
|
955
954
|
minWidth: 40,
|
|
956
955
|
p: 1
|
|
957
956
|
}
|
|
958
|
-
},
|
|
957
|
+
}, jt = {
|
|
959
958
|
wrapper: {
|
|
960
959
|
cursor: "pointer",
|
|
961
960
|
border: "none",
|
|
@@ -1009,7 +1008,7 @@ const ct = A(Me, {
|
|
|
1009
1008
|
d: "M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m14 0c0 1.3-.84 2.4-2 2.82V7h2z"
|
|
1010
1009
|
}), "EmojiEvents"), gt = K(/* @__PURE__ */ l.jsx("path", {
|
|
1011
1010
|
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"
|
|
1012
|
-
}), "Timer"),
|
|
1011
|
+
}), "Timer"), Dt = ({ onStart: t, game: e, signInCTA: r, showSignInCTA: o }) => {
|
|
1013
1012
|
var m;
|
|
1014
1013
|
const [s, n] = i.useState(!1), { t: a } = ve(), d = [
|
|
1015
1014
|
{
|
|
@@ -1029,20 +1028,20 @@ const ct = A(Me, {
|
|
|
1029
1028
|
}
|
|
1030
1029
|
];
|
|
1031
1030
|
if (!e) return null;
|
|
1032
|
-
const c = ((m = e == null ? void 0 : e.images) == null ? void 0 : m.main) ||
|
|
1033
|
-
return /* @__PURE__ */ l.jsxs(
|
|
1034
|
-
/* @__PURE__ */ l.jsx(
|
|
1031
|
+
const c = ((m = e == null ? void 0 : e.images) == null ? void 0 : m.main) || ye;
|
|
1032
|
+
return /* @__PURE__ */ l.jsxs(se, { spacing: 3, children: [
|
|
1033
|
+
/* @__PURE__ */ l.jsx(Ce, { ratio: 16 / 9, children: /* @__PURE__ */ l.jsxs(le, { sx: { borderColor: "divider", "&:hover": { borderColor: "divider" } }, children: [
|
|
1035
1034
|
/* @__PURE__ */ l.jsx(fe, { children: /* @__PURE__ */ l.jsx("img", { src: c, srcSet: `${c} 1x, ${c} 2x`, loading: "lazy", alt: e.title }) }),
|
|
1036
1035
|
/* @__PURE__ */ l.jsx(fe, { sx: he.shadow }),
|
|
1037
|
-
/* @__PURE__ */ l.jsxs(
|
|
1036
|
+
/* @__PURE__ */ l.jsxs(Se, { sx: he.contentWrapper, children: [
|
|
1038
1037
|
/* @__PURE__ */ l.jsx(U, { size: "sm", variant: "soft", color: "primary", onClick: () => n(!0), sx: B.infoButton, children: /* @__PURE__ */ l.jsx(pt, {}) }),
|
|
1039
|
-
/* @__PURE__ */ l.jsx(
|
|
1038
|
+
/* @__PURE__ */ l.jsx(se, { justifyContent: "center", alignItems: "center", spacing: 2, children: o && r ? /* @__PURE__ */ l.jsx(U, { size: "md", variant: "solid", color: "primary", onClick: r.onClick, sx: B.mainButton, children: r.defaultLabel }) : /* @__PURE__ */ l.jsx(U, { size: "md", variant: "solid", color: "primary", onClick: t, sx: B.mainButton, children: a("eitherOr.buttons.start") }) })
|
|
1040
1039
|
] })
|
|
1041
1040
|
] }) }),
|
|
1042
1041
|
/* @__PURE__ */ l.jsx(it, { open: s, onClose: () => n(!1), children: /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
1043
1042
|
/* @__PURE__ */ l.jsx(_, { level: "h4", sx: { mb: 3, textAlign: "center" }, children: a("eitherOr.tutorial.howToPlay") }),
|
|
1044
1043
|
/* @__PURE__ */ l.jsx(de, { container: !0, spacing: 2, sx: { overflow: "auto" }, children: d.map((f, h) => /* @__PURE__ */ l.jsx(de, { xs: 12, md: 4, children: /* @__PURE__ */ l.jsxs(le, { sx: B.ruleCard, variant: "outlined", children: [
|
|
1045
|
-
/* @__PURE__ */ l.jsx(
|
|
1044
|
+
/* @__PURE__ */ l.jsx(Te, { sx: B.iconWrapper, children: f.icon }),
|
|
1046
1045
|
/* @__PURE__ */ l.jsx(_, { level: "h4", sx: { mb: 1 }, children: f.title }),
|
|
1047
1046
|
/* @__PURE__ */ l.jsx(_, { level: "body-sm", children: f.description })
|
|
1048
1047
|
] }) }, h)) }),
|
|
@@ -1053,20 +1052,20 @@ const ct = A(Me, {
|
|
|
1053
1052
|
export {
|
|
1054
1053
|
fe as C,
|
|
1055
1054
|
ft as F,
|
|
1056
|
-
|
|
1055
|
+
Tt as G,
|
|
1057
1056
|
pt as I,
|
|
1058
1057
|
it as M,
|
|
1059
|
-
|
|
1060
|
-
|
|
1058
|
+
Fe as P,
|
|
1059
|
+
Dt as T,
|
|
1061
1060
|
ut as a,
|
|
1062
1061
|
Qe as b,
|
|
1063
1062
|
Xe as c,
|
|
1064
1063
|
et as d,
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1064
|
+
jt as e,
|
|
1065
|
+
St as f,
|
|
1066
|
+
kt as g,
|
|
1067
|
+
It as h,
|
|
1068
|
+
Pt as i,
|
|
1069
|
+
wt as j,
|
|
1070
|
+
Mt as m
|
|
1072
1071
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as d, r as l,
|
|
2
|
-
import {
|
|
1
|
+
import { j as d, r as l, b as G, g as K, d as Z, _ as s, F as q, e as f } from "./main-Cx-uBTln.js";
|
|
2
|
+
import { u as Q, v as X, c as m, s as g, m as Y, d as w, r as oo } from "./resolveProps-DfBmYyXU.js";
|
|
3
3
|
const k = /* @__PURE__ */ l.createContext(void 0);
|
|
4
4
|
function ro(r, o) {
|
|
5
5
|
let i = o, a = r;
|
|
@@ -44,7 +44,7 @@ const I = G("MuiChip", ["root", "clickable", "colorPrimary", "colorNeutral", "co
|
|
|
44
44
|
startDecorator: ["startDecorator"],
|
|
45
45
|
endDecorator: ["endDecorator"]
|
|
46
46
|
};
|
|
47
|
-
return
|
|
47
|
+
return w(p, ao, {});
|
|
48
48
|
}, so = g("div", {
|
|
49
49
|
name: "JoyChip",
|
|
50
50
|
slot: "Root",
|
|
@@ -208,7 +208,7 @@ const I = G("MuiChip", ["root", "clickable", "colorPrimary", "colorNeutral", "co
|
|
|
208
208
|
zIndex: 1,
|
|
209
209
|
pointerEvents: "none"
|
|
210
210
|
}), fo = /* @__PURE__ */ l.forwardRef(function(o, i) {
|
|
211
|
-
const a =
|
|
211
|
+
const a = Q({
|
|
212
212
|
props: o,
|
|
213
213
|
name: "JoyChip"
|
|
214
214
|
}), {
|
|
@@ -224,7 +224,7 @@ const I = G("MuiChip", ["root", "clickable", "colorPrimary", "colorNeutral", "co
|
|
|
224
224
|
component: P,
|
|
225
225
|
slots: j = {},
|
|
226
226
|
slotProps: h = {}
|
|
227
|
-
} = a, A =
|
|
227
|
+
} = a, A = Z(a, to), $ = !!p || !!h.action, c = s({}, a, {
|
|
228
228
|
disabled: v,
|
|
229
229
|
size: x,
|
|
230
230
|
color: n,
|
|
@@ -234,7 +234,7 @@ const I = G("MuiChip", ["root", "clickable", "colorPrimary", "colorNeutral", "co
|
|
|
234
234
|
}), y = typeof h.action == "function" ? h.action(c) : h.action, W = l.useRef(null), {
|
|
235
235
|
focusVisible: V,
|
|
236
236
|
getRootProps: E
|
|
237
|
-
} =
|
|
237
|
+
} = X(s({}, y, {
|
|
238
238
|
disabled: v,
|
|
239
239
|
rootRef: W
|
|
240
240
|
}));
|
|
@@ -245,7 +245,7 @@ const I = G("MuiChip", ["root", "clickable", "colorPrimary", "colorNeutral", "co
|
|
|
245
245
|
slotProps: h
|
|
246
246
|
}), [L, N] = m("root", {
|
|
247
247
|
ref: i,
|
|
248
|
-
className:
|
|
248
|
+
className: Y(C.root, e),
|
|
249
249
|
elementType: so,
|
|
250
250
|
externalForwardedProps: u,
|
|
251
251
|
ownerState: c
|
|
@@ -254,7 +254,7 @@ const I = G("MuiChip", ["root", "clickable", "colorPrimary", "colorNeutral", "co
|
|
|
254
254
|
elementType: lo,
|
|
255
255
|
externalForwardedProps: u,
|
|
256
256
|
ownerState: c
|
|
257
|
-
}), R =
|
|
257
|
+
}), R = q(z.id), [B, O] = m("action", {
|
|
258
258
|
className: C.action,
|
|
259
259
|
elementType: co,
|
|
260
260
|
externalForwardedProps: u,
|