fansunited-widgets-cdn 0.0.86-RC3 → 0.0.86-RC5
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-CuOsmojH.js → Alert-B6o66mYo.js} +39 -39
- package/chunks/{CardContent-CD-WZh1l.js → CardContent-NCZhfGcZ.js} +16 -16
- package/chunks/{Snackbar-DHxnbCA3.js → ChevronRight-1pLZ7T0v.js} +100 -94
- package/chunks/{ClassicQuizWrapper-t04e9_6c.js → ClassicQuizWrapper-n2epPO4k.js} +201 -205
- package/chunks/CollectLeadForm-C_3plJtn-Dr8J3eDw.js +3918 -0
- package/chunks/{CollectLeadWrapper-CVAVswua.js → CollectLeadWrapper-CCtTZAxL.js} +55 -56
- package/chunks/EitherOrById-ClGwMK0b.js +6820 -0
- package/chunks/EitherOrPreviewWrapper-BYiKyYwi.js +46 -0
- package/chunks/Error-BurPfBJw-DWYn31sK.js +1119 -0
- package/chunks/{EventGameWrapper-BxyLL3eA.js → EventGameWrapper-BphusLTk.js} +208 -219
- package/chunks/{Grid-Dpv_ZL23.js → Grid-yjqNNhEx.js} +32 -32
- package/chunks/{IconButton-Lt9Xks7c.js → IconButton-D7onwgY0.js} +22 -22
- package/chunks/{List-DLPlZGTP.js → List-8Vy9IZiv.js} +26 -29
- package/chunks/{MatchPredictionContainer-Ct6gXvLw.js → MatchPredictionContainer-BGytBwLo.js} +52 -54
- package/chunks/{MatchQuizWrapper-Fu6RfWVn.js → MatchQuizWrapper-BGjldBpF.js} +73 -85
- package/chunks/{OverlayLeadAfterCollection-DnqztPJ5-CpELr0AC.js → OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js} +104 -105
- package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd-DMFELrvA.js → OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js} +18 -19
- package/chunks/{PersonalityQuizWrapper-MpUK4n3Y.js → PersonalityQuizWrapper-BgLFw5tM.js} +3 -3
- package/chunks/{PlayerOfTheMatch-D4vuR7pz.js → PlayerOfTheMatch-CImBLG3T.js} +1008 -609
- package/chunks/{PollWrapper-CzKj8xxE.js → PollWrapper-QpIKCCVF.js} +30 -34
- package/chunks/Portal-DegkUXpU-ByGP9zS1.js +19236 -0
- package/chunks/{PreviewQuizById-WWS_LyJR.js → PreviewQuizById-Ba6yhxKV.js} +11 -14
- package/chunks/Sheet-U5EnSrgg.js +282 -0
- package/chunks/{Stack-Dgf2LXN0.js → Stack-DbDi7kPO.js} +30 -30
- package/chunks/Tabs-leN3Fb8D--YMyy3EM.js +783 -0
- package/chunks/{TeamNextMatchPrediction-C7HilNqW.js → TeamNextMatchPrediction-9VSQOCcC.js} +2 -2
- package/chunks/Tutorial-CRJLOovs.js +1072 -0
- package/chunks/createLucideIcon-CMWOQsDL.js +381 -0
- package/chunks/{createSvgIcon-DVA0KIUd.js → createSvgIcon-D9D4a1R9.js} +412 -390
- package/chunks/default-quiz-bg-ADjjIfPj.js +126 -0
- package/chunks/{index-C9MpfjqV.js → index-0ADq_9jd.js} +1 -1
- package/chunks/{index-DePIySlY.js → index-B74jHeYm.js} +2 -2
- package/chunks/{index-tzsdMoo-.js → index-BfVvJg5R.js} +1 -1
- package/chunks/{index-BqCHiyI6.js → index-BycLbIYY.js} +1 -1
- package/chunks/{index-DvgG9XJj.js → index-C6KAc5B_.js} +1 -1
- package/chunks/{index-24AwmTVJ.js → index-CHV6tlpH.js} +5 -5
- package/chunks/{index-C5qRf4TV.js → index-CILd3yUc.js} +1 -1
- package/chunks/index-CJqcqbHq.js +5 -0
- package/chunks/{index-CMmQs5A5.js → index-CK2RXrJm.js} +1 -1
- package/chunks/{index-BU6iona7.js → index-CPTAlr_t.js} +1 -1
- package/chunks/{index-DNeawo0R.js → index-CiB_Gqim.js} +1 -1
- package/chunks/{index-QpZE-92Y.js → index-CvGJXa6l.js} +1 -1
- package/chunks/{index-BSD7mvEU.js → index-CviTG4Nv.js} +1 -1
- package/chunks/index-DUQ2LFod-Cw45tHim.js +4510 -0
- package/chunks/{index-rgFj976B.js → index-Da0AXb_O.js} +1 -1
- package/chunks/{index-DoRYU_1L.js → index-DwR4J2nN.js} +1 -1
- package/chunks/{index-3vJS8JzK.js → index-UwW9niUj.js} +1 -1
- package/chunks/index.es-wHqA4PHm.js +11480 -0
- package/chunks/{init-BEkECL0v.js → init-C-gCorsh.js} +1 -1
- package/chunks/{main-XP7dqk6g.js → main-Bh6iw92_.js} +548 -564
- package/chunks/{Button-BV7YIFkS.js → resolveProps-Bgg0H6c2.js} +471 -313
- package/chunks/{users-D_xgC4iQ.js → users-CXdzg3DM.js} +1 -1
- package/fu-widgets.es.js +2 -2
- package/fu-widgets.iife.js +310 -257
- package/manifest.json +56 -72
- package/package.json +1 -1
- package/chunks/AspectRatio-D3Sgxj7p.js +0 -125
- package/chunks/Avatar-BTsEKfhc.js +0 -186
- package/chunks/Card-DRIT0wtY.js +0 -129
- package/chunks/ChevronRight-BrCKlr3T.js +0 -11
- package/chunks/Chip-6HLNTHMI.js +0 -281
- package/chunks/CollectLeadForm-DtmR2Vuf-B_3JkHJC.js +0 -1560
- package/chunks/DialogActions-C5kAgHal.js +0 -45
- package/chunks/DialogContent-MIXff4nd.js +0 -60
- package/chunks/EitherOrById-CAo8gPjm.js +0 -1496
- package/chunks/EitherOrPreviewWrapper-DFi2bviS.js +0 -47
- package/chunks/Error-DhQL89pn-BwTV1meb.js +0 -418
- package/chunks/Link-DLuj1USf.js +0 -228
- package/chunks/ListItemDecorator-CE2eQLip.js +0 -1882
- package/chunks/ModalDialog-Ci3hulZA.js +0 -619
- package/chunks/NotFoundSkeleton-BYJTzYJR-Be3R34nS.js +0 -2764
- package/chunks/Portal-BWqqFvVm-TuHZWjxn.js +0 -12717
- package/chunks/Portal-DA1mxzSo.js +0 -41
- package/chunks/Select-p_cHpLhi.js +0 -3418
- package/chunks/Sheet-BaCzogZK.js +0 -167
- package/chunks/Tabs-CSu_cWNi.js +0 -784
- package/chunks/Tutorial-DFNZxmAx.js +0 -427
- package/chunks/createLucideIcon-B6NxpYkb.js +0 -79
- package/chunks/createSvgIcon-7h7XC877.js +0 -119
- package/chunks/default-quiz-bg-CTzaADn7.js +0 -4
- package/chunks/getReactElementRef-BD-S8A24.js +0 -25
- package/chunks/index-CicEY2Jv.js +0 -5
- package/chunks/index.es-CHqz6mjo.js +0 -6162
- package/chunks/resolveProps-BfYZubfk.js +0 -37
- package/chunks/variantColorInheritance-DI3wUohX.js +0 -28
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as me, i as be } from "./
|
|
1
|
+
import { _ as y, r as d, O as ie, l as le, f as oe, j as A, w as ce, $ as ae, k as ue, a5 as fe, a6 as pe, s as de, e as ge } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { s as me, i as be } from "./resolveProps-Bgg0H6c2.js";
|
|
3
3
|
const $e = (e, n) => e.filter((r) => n.includes(r)), g = (e, n, r) => {
|
|
4
4
|
const t = e.keys[0];
|
|
5
5
|
Array.isArray(n) ? n.forEach((i, s) => {
|
|
@@ -105,7 +105,7 @@ const ye = ({
|
|
|
105
105
|
[`--Grid-rowSpacing${a(n.unstable_level)}`]: typeof s == "string" ? s : (l = e.spacing) == null ? void 0 : l.call(e, s)
|
|
106
106
|
});
|
|
107
107
|
}), t;
|
|
108
|
-
},
|
|
108
|
+
}, Oe = ({
|
|
109
109
|
theme: e,
|
|
110
110
|
ownerState: n
|
|
111
111
|
}) => {
|
|
@@ -134,7 +134,7 @@ const ye = ({
|
|
|
134
134
|
flexDirection: i
|
|
135
135
|
});
|
|
136
136
|
}), r;
|
|
137
|
-
},
|
|
137
|
+
}, Se = ({
|
|
138
138
|
ownerState: e
|
|
139
139
|
}) => {
|
|
140
140
|
const n = M(e), r = N(e);
|
|
@@ -195,57 +195,57 @@ function ke(e = {}) {
|
|
|
195
195
|
const {
|
|
196
196
|
container: x,
|
|
197
197
|
direction: v,
|
|
198
|
-
spacing:
|
|
198
|
+
spacing: O,
|
|
199
199
|
wrap: b,
|
|
200
200
|
gridSize: h
|
|
201
|
-
} = m,
|
|
202
|
-
root: ["root", x && "container", b !== "wrap" && `wrap-xs-${String(b)}`, ...Ce(v), ..._e(h), ...x ? Ee(
|
|
201
|
+
} = m, S = {
|
|
202
|
+
root: ["root", x && "container", b !== "wrap" && `wrap-xs-${String(b)}`, ...Ce(v), ..._e(h), ...x ? Ee(O, c.breakpoints.keys[0]) : []]
|
|
203
203
|
};
|
|
204
|
-
return ue(
|
|
205
|
-
}, l = n(xe,
|
|
206
|
-
var v,
|
|
204
|
+
return ue(S, (_) => fe(t, _), {});
|
|
205
|
+
}, l = n(xe, Oe, ve, ye, he, Se, Ge), u = /* @__PURE__ */ d.forwardRef(function(c, x) {
|
|
206
|
+
var v, O, b, h, S, _, q, R;
|
|
207
207
|
const C = ie(), V = r(c), j = le(V), E = d.useContext(i), {
|
|
208
208
|
className: J,
|
|
209
209
|
children: U,
|
|
210
210
|
columns: K = 12,
|
|
211
|
-
container:
|
|
212
|
-
component:
|
|
213
|
-
direction:
|
|
214
|
-
wrap:
|
|
211
|
+
container: F = !1,
|
|
212
|
+
component: H = "div",
|
|
213
|
+
direction: I = "row",
|
|
214
|
+
wrap: Q = "wrap",
|
|
215
215
|
spacing: P = 0,
|
|
216
216
|
rowSpacing: X = P,
|
|
217
217
|
columnSpacing: Y = P,
|
|
218
|
-
disableEqualOverflow:
|
|
218
|
+
disableEqualOverflow: T,
|
|
219
219
|
unstable_level: f = 0
|
|
220
220
|
} = j, Z = oe(j, je);
|
|
221
|
-
let $ =
|
|
222
|
-
f &&
|
|
223
|
-
const
|
|
221
|
+
let $ = T;
|
|
222
|
+
f && T !== void 0 && ($ = c.disableEqualOverflow);
|
|
223
|
+
const D = {}, z = {}, B = {};
|
|
224
224
|
Object.entries(Z).forEach(([o, p]) => {
|
|
225
|
-
C.breakpoints.values[o] !== void 0 ?
|
|
225
|
+
C.breakpoints.values[o] !== void 0 ? D[o] = p : C.breakpoints.values[o.replace("Offset", "")] !== void 0 ? z[o.replace("Offset", "")] = p : B[o] = p;
|
|
226
226
|
});
|
|
227
|
-
const ee = (v = c.columns) != null ? v : f ? void 0 : K, ne = (
|
|
227
|
+
const ee = (v = c.columns) != null ? v : f ? void 0 : K, ne = (O = c.spacing) != null ? O : f ? void 0 : P, re = (b = (h = c.rowSpacing) != null ? h : c.spacing) != null ? b : f ? void 0 : X, se = (S = (_ = c.columnSpacing) != null ? _ : c.spacing) != null ? S : f ? void 0 : Y, W = y({}, j, {
|
|
228
228
|
level: f,
|
|
229
229
|
columns: ee,
|
|
230
|
-
container:
|
|
231
|
-
direction:
|
|
232
|
-
wrap:
|
|
230
|
+
container: F,
|
|
231
|
+
direction: I,
|
|
232
|
+
wrap: Q,
|
|
233
233
|
spacing: ne,
|
|
234
234
|
rowSpacing: re,
|
|
235
235
|
columnSpacing: se,
|
|
236
|
-
gridSize:
|
|
237
|
-
gridOffset:
|
|
238
|
-
disableEqualOverflow: (q = (
|
|
236
|
+
gridSize: D,
|
|
237
|
+
gridOffset: z,
|
|
238
|
+
disableEqualOverflow: (q = (R = $) != null ? R : E) != null ? q : !1,
|
|
239
239
|
// use context value if exists.
|
|
240
240
|
parentDisableEqualOverflow: E
|
|
241
241
|
// for nested grid
|
|
242
|
-
}), te = s(
|
|
242
|
+
}), te = s(W, C);
|
|
243
243
|
let w = /* @__PURE__ */ A.jsx(l, y({
|
|
244
244
|
ref: x,
|
|
245
|
-
as:
|
|
246
|
-
ownerState:
|
|
245
|
+
as: H,
|
|
246
|
+
ownerState: W,
|
|
247
247
|
className: ce(te.root, J)
|
|
248
|
-
},
|
|
248
|
+
}, B, {
|
|
249
249
|
children: d.Children.map(U, (o) => {
|
|
250
250
|
if (/* @__PURE__ */ d.isValidElement(o) && be(o, ["Grid"])) {
|
|
251
251
|
var p, L;
|
|
@@ -263,7 +263,7 @@ function ke(e = {}) {
|
|
|
263
263
|
});
|
|
264
264
|
return u.muiName = "Grid", u;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const Te = ke({
|
|
267
267
|
createStyledComponent: de("div", {
|
|
268
268
|
name: "JoyGrid",
|
|
269
269
|
slot: "Root",
|
|
@@ -275,5 +275,5 @@ const Re = ke({
|
|
|
275
275
|
})
|
|
276
276
|
});
|
|
277
277
|
export {
|
|
278
|
-
|
|
278
|
+
Te as G
|
|
279
279
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { g as q, d as K, r as v, s as x, e as Q, f as Y, m as Z, _ as t, h as H, j as b, i as B, k as w, C as oo } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { l as no, m as ro, f as io } from "./resolveProps-Bgg0H6c2.js";
|
|
3
3
|
function so(n) {
|
|
4
|
-
return
|
|
4
|
+
return q("MuiIconButton", n);
|
|
5
5
|
}
|
|
6
|
-
const go =
|
|
6
|
+
const go = K("MuiIconButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "loading", "loadingIndicator"]), to = ["children", "action", "component", "color", "disabled", "variant", "loading", "loadingIndicator", "size", "slots", "slotProps"], ao = (n) => {
|
|
7
7
|
const {
|
|
8
8
|
color: o,
|
|
9
9
|
disabled: s,
|
|
@@ -117,7 +117,7 @@ const go = q("MuiIconButton", ["root", "colorPrimary", "colorNeutral", "colorDan
|
|
|
117
117
|
});
|
|
118
118
|
}), uo = /* @__PURE__ */ v.forwardRef(function(o, s) {
|
|
119
119
|
var i;
|
|
120
|
-
const r =
|
|
120
|
+
const r = Q({
|
|
121
121
|
props: o,
|
|
122
122
|
name: "JoyIconButton"
|
|
123
123
|
}), {
|
|
@@ -126,20 +126,20 @@ const go = q("MuiIconButton", ["root", "colorPrimary", "colorNeutral", "colorDan
|
|
|
126
126
|
component: g = "button",
|
|
127
127
|
color: I = "neutral",
|
|
128
128
|
disabled: m,
|
|
129
|
-
variant:
|
|
129
|
+
variant: S = "plain",
|
|
130
130
|
loading: z = !1,
|
|
131
131
|
loadingIndicator: y,
|
|
132
|
-
size:
|
|
132
|
+
size: F = "md",
|
|
133
133
|
slots: L = {},
|
|
134
134
|
slotProps: a = {}
|
|
135
|
-
} = r, N =
|
|
136
|
-
focusVisible:
|
|
135
|
+
} = r, N = Y(r, to), f = v.useContext(no), e = v.useContext(ro), T = o.variant || f.variant || S, h = o.size || f.size || F, P = o.color || f.color || I, k = (i = o.loading || o.disabled) != null ? i : f.disabled || z || m, R = v.useRef(null), U = Z(R, s), {
|
|
136
|
+
focusVisible: A,
|
|
137
137
|
setFocusVisible: $,
|
|
138
|
-
getRootProps:
|
|
138
|
+
getRootProps: D
|
|
139
139
|
} = io(t({}, r, {
|
|
140
140
|
disabled: k,
|
|
141
|
-
rootRef:
|
|
142
|
-
})),
|
|
141
|
+
rootRef: U
|
|
142
|
+
})), G = y ?? /* @__PURE__ */ b.jsx(oo, {
|
|
143
143
|
color: P,
|
|
144
144
|
thickness: {
|
|
145
145
|
sm: 2,
|
|
@@ -160,42 +160,42 @@ const go = q("MuiIconButton", ["root", "colorPrimary", "colorNeutral", "colorDan
|
|
|
160
160
|
variant: T,
|
|
161
161
|
loading: z,
|
|
162
162
|
size: h,
|
|
163
|
-
focusVisible:
|
|
163
|
+
focusVisible: A,
|
|
164
164
|
instanceSize: o.size
|
|
165
165
|
}), _ = ao(c), J = (u) => {
|
|
166
|
-
var
|
|
166
|
+
var j;
|
|
167
167
|
let C = r.onClick;
|
|
168
|
-
if (typeof a.root == "function" ? C = a.root(c).onClick : a.root && (C = a.root.onClick), (
|
|
168
|
+
if (typeof a.root == "function" ? C = a.root(c).onClick : a.root && (C = a.root.onClick), (j = C) == null || j(u), e) {
|
|
169
169
|
var V;
|
|
170
170
|
(V = e.onClick) == null || V.call(e, u, r.value);
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
let d = r["aria-pressed"];
|
|
174
174
|
typeof a.root == "function" ? d = a.root(c)["aria-pressed"] : a.root && (d = a.root["aria-pressed"]), e != null && e.value && (Array.isArray(e.value) ? d = e.value.indexOf(r.value) !== -1 : d = e.value === r.value);
|
|
175
|
-
const
|
|
175
|
+
const W = t({}, N, {
|
|
176
176
|
component: g,
|
|
177
177
|
slots: L,
|
|
178
178
|
slotProps: a
|
|
179
|
-
}), [M, E] =
|
|
179
|
+
}), [M, E] = H("root", {
|
|
180
180
|
ref: s,
|
|
181
181
|
className: _.root,
|
|
182
182
|
elementType: lo,
|
|
183
|
-
getSlotProps:
|
|
184
|
-
externalForwardedProps:
|
|
183
|
+
getSlotProps: D,
|
|
184
|
+
externalForwardedProps: W,
|
|
185
185
|
ownerState: c,
|
|
186
186
|
additionalProps: {
|
|
187
187
|
onClick: J,
|
|
188
188
|
"aria-pressed": d
|
|
189
189
|
}
|
|
190
|
-
}), [O, X] =
|
|
190
|
+
}), [O, X] = H("loadingIndicator", {
|
|
191
191
|
className: _.loadingIndicator,
|
|
192
192
|
elementType: co,
|
|
193
|
-
externalForwardedProps:
|
|
193
|
+
externalForwardedProps: W,
|
|
194
194
|
ownerState: c
|
|
195
195
|
});
|
|
196
196
|
return /* @__PURE__ */ b.jsx(M, t({}, E, {
|
|
197
197
|
children: z ? /* @__PURE__ */ b.jsx(O, t({}, X, {
|
|
198
|
-
children:
|
|
198
|
+
children: G
|
|
199
199
|
})) : l
|
|
200
200
|
}));
|
|
201
201
|
});
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { u as W, j as e, B as o, r as d, a as J,
|
|
2
|
-
import { M as et, E as st } from "./EitherOrById-
|
|
3
|
-
import nt from "./PollWrapper-
|
|
4
|
-
import it from "./ClassicQuizWrapper-
|
|
5
|
-
import rt from "./PersonalityQuizWrapper-
|
|
6
|
-
import { d as at } from "./default-quiz-bg-
|
|
7
|
-
import { u as
|
|
8
|
-
import { C as ot } from "./
|
|
9
|
-
import { C as F } from "./Tutorial-
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import mt from "./MatchQuizWrapper-Fu6RfWVn.js";
|
|
17
|
-
import { G as V } from "./Grid-Dpv_ZL23.js";
|
|
18
|
-
import { M as gt, a as xt } from "./ModalDialog-Ci3hulZA.js";
|
|
1
|
+
import { u as W, j as e, B as o, r as d, a as J, E as K, L as H, C as tt, t as N } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { u as Y, M as et, E as st } from "./EitherOrById-ClGwMK0b.js";
|
|
3
|
+
import nt from "./PollWrapper-QpIKCCVF.js";
|
|
4
|
+
import it from "./ClassicQuizWrapper-n2epPO4k.js";
|
|
5
|
+
import rt from "./PersonalityQuizWrapper-BgLFw5tM.js";
|
|
6
|
+
import { d as at } from "./default-quiz-bg-ADjjIfPj.js";
|
|
7
|
+
import { u as G } from "./index-CHV6tlpH.js";
|
|
8
|
+
import { C as ot, T as C, B as lt } from "./resolveProps-Bgg0H6c2.js";
|
|
9
|
+
import { C as F, M as ct, a as ut } from "./Tutorial-CRJLOovs.js";
|
|
10
|
+
import { C as dt } from "./CardContent-NCZhfGcZ.js";
|
|
11
|
+
import { C as pt } from "./createLucideIcon-CMWOQsDL.js";
|
|
12
|
+
import { S as mt } from "./Stack-DbDi7kPO.js";
|
|
13
|
+
import { U as gt } from "./users-CXdzg3DM.js";
|
|
14
|
+
import xt from "./MatchQuizWrapper-BGjldBpF.js";
|
|
15
|
+
import { G as V } from "./Grid-yjqNNhEx.js";
|
|
19
16
|
const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s && "questionsCount" in s, ht = (s) => typeof s == "object" && s !== null && "winningCondition" in s && "lives" in s, bt = (s) => typeof s == "object" && s !== null && "time" in s && "preferencesEnabled" in s && "maxAttempts" in s, yt = (s) => typeof s == "object" && s !== null && "options" in s && "totalVotes" in s, Ct = (s) => typeof s == "object" && s !== null && "fixtures" in s && "predictionsCutoff" in s, It = (s) => typeof s == "object" && s !== null && "templateId" in s, k = (s) => {
|
|
20
17
|
const t = s.entityModel;
|
|
21
18
|
if (!t) return null;
|
|
@@ -85,7 +82,7 @@ const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s
|
|
|
85
82
|
status: t.status
|
|
86
83
|
} : i;
|
|
87
84
|
}, jt = ({ branding: s }) => {
|
|
88
|
-
const { t } = W(), i =
|
|
85
|
+
const { t } = W(), i = Y(), x = G(i.breakpoints.down("md"));
|
|
89
86
|
if (!(s != null && s.images)) return null;
|
|
90
87
|
const r = x ? s.images.mobileLogo || s.images.mainLogo : s.images.mainLogo || s.images.mobileLogo;
|
|
91
88
|
return r ? /* @__PURE__ */ e.jsxs(
|
|
@@ -121,7 +118,7 @@ const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s
|
|
|
121
118
|
) : null;
|
|
122
119
|
}, St = ({ item: s, classicQuizUrl: t, personalityQuizUrl: i, eitherOrUrl: x, pollUrl: r, matchQuizUrl: T, onItemClick: w }) => {
|
|
123
120
|
var c, M, Q, j, U, S;
|
|
124
|
-
const { t: p } = W(), E =
|
|
121
|
+
const { t: p } = W(), E = Y(), f = G(E.breakpoints.down("md")), n = k(s), I = (m) => {
|
|
125
122
|
let l;
|
|
126
123
|
switch (m.entityType) {
|
|
127
124
|
case "CLASSIC_QUIZ":
|
|
@@ -207,12 +204,12 @@ const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s
|
|
|
207
204
|
}
|
|
208
205
|
}
|
|
209
206
|
),
|
|
210
|
-
/* @__PURE__ */ e.jsxs(
|
|
207
|
+
/* @__PURE__ */ e.jsxs(dt, { sx: { justifyContent: "flex-end", gap: 0 }, children: [
|
|
211
208
|
/* @__PURE__ */ e.jsxs(o, { sx: { display: "flex", alignItems: "flex-end", justifyContent: "space-between", gap: 2 }, children: [
|
|
212
209
|
/* @__PURE__ */ e.jsxs(o, { children: [
|
|
213
210
|
/* @__PURE__ */ e.jsxs(o, { sx: { display: "flex", gap: 1, alignItems: "center", mb: 1 }, children: [
|
|
214
|
-
/* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(
|
|
215
|
-
/* @__PURE__ */ e.jsx(
|
|
211
|
+
/* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(pt, { size: "sm", color: "neutral", variant: "soft", children: /* @__PURE__ */ e.jsx(C, { level: "body-xs", children: _(s) }) }) }),
|
|
212
|
+
/* @__PURE__ */ e.jsx(mt, { direction: "row", spacing: 1, sx: { color: "neutral.300" }, children: n.participationCount > 0 && /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(C, { level: "body-sm", textColor: "white", startDecorator: /* @__PURE__ */ e.jsx(gt, { size: 16, color: "white" }), children: n.participationCount }) }) })
|
|
216
213
|
] }),
|
|
217
214
|
/* @__PURE__ */ e.jsx(
|
|
218
215
|
C,
|
|
@@ -279,7 +276,7 @@ const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s
|
|
|
279
276
|
]
|
|
280
277
|
}
|
|
281
278
|
) : null;
|
|
282
|
-
}, Lt = /* @__PURE__ */ new Set(["ACTIVE", "OPEN"]),
|
|
279
|
+
}, Lt = /* @__PURE__ */ new Set(["ACTIVE", "OPEN"]), Bt = ({ contentId: s, itemsCount: t = 10, itemsPerRow: i = 2, widgetMode: x = H.LOAD_MORE }) => {
|
|
283
280
|
const [r, T] = d.useState([]), [w, p] = d.useState(1), [E, f] = d.useState(!0), [n, I] = d.useState(!1), [_, P] = d.useState(!1), [c, M] = d.useState(null), [Q, j] = d.useState(!1), U = J(), { classicQuizUrl: S, personalityQuizUrl: m, eitherOrUrl: l, pollUrl: v, matchQuizUrl: z } = K(), A = !!(S || m || l || v || z), L = x === H.LIMITED, q = d.useCallback((u) => {
|
|
284
281
|
var h;
|
|
285
282
|
const a = (h = k(u)) == null ? void 0 : h.status;
|
|
@@ -338,7 +335,7 @@ const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s
|
|
|
338
335
|
return /* @__PURE__ */ e.jsx(st, { initialGameId: c.entityId });
|
|
339
336
|
case "MATCH_QUIZ":
|
|
340
337
|
return /* @__PURE__ */ e.jsx(
|
|
341
|
-
|
|
338
|
+
xt,
|
|
342
339
|
{
|
|
343
340
|
matchQuizId: c.entityId,
|
|
344
341
|
matchQuizConfig: { showPredictionDetails: !0, showCountdown: !0, showTeamLabels: !0, showPoints: !0 }
|
|
@@ -372,10 +369,10 @@ const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s
|
|
|
372
369
|
) }, u.entityId) : null) }),
|
|
373
370
|
n && /* @__PURE__ */ e.jsx(o, { sx: { display: "flex", justifyContent: "center", p: 4 }, children: /* @__PURE__ */ e.jsx(tt, {}) }),
|
|
374
371
|
E && !n && // Show load more button based on widget mode
|
|
375
|
-
(L ? r.length < t : !0) && /* @__PURE__ */ e.jsx(o, { sx: { display: "flex", justifyContent: "center", mt: 2 }, children: /* @__PURE__ */ e.jsx(
|
|
372
|
+
(L ? r.length < t : !0) && /* @__PURE__ */ e.jsx(o, { sx: { display: "flex", justifyContent: "center", mt: 2 }, children: /* @__PURE__ */ e.jsx(lt, { onClick: R, variant: "soft", children: N("content.buttons.loadMore") }) })
|
|
376
373
|
] }),
|
|
377
|
-
/* @__PURE__ */ e.jsx(
|
|
378
|
-
|
|
374
|
+
/* @__PURE__ */ e.jsx(ct, { open: Q, onClose: () => j(!1), children: /* @__PURE__ */ e.jsxs(
|
|
375
|
+
ut,
|
|
379
376
|
{
|
|
380
377
|
sx: {
|
|
381
378
|
maxWidth: "95vw",
|
|
@@ -393,5 +390,5 @@ const ft = (s) => typeof s == "object" && s !== null && "alternativeTitle" in s
|
|
|
393
390
|
] });
|
|
394
391
|
};
|
|
395
392
|
export {
|
|
396
|
-
|
|
393
|
+
Bt as default
|
|
397
394
|
};
|