fansunited-frontend-components 0.0.31-RC6 → 0.0.31-RC7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/MatchQuizPlay.js CHANGED
@@ -1,13 +1,12 @@
1
1
  import { jsx as t, jsxs as s, Fragment as X } from "react/jsx-runtime";
2
2
  import nt, { useState as ee, useEffect as ft, createContext as bn, memo as Pt, useCallback as Ye, useMemo as at } from "react";
3
- import { k as $, i as re, o as Un, t as At, r as Jt, h as H, j as ne, a as ue, z as We, b as Ie, f as te, G as Rn, C as Kn, u as we, q as bt, p as _e, W as xe, w as Ut, l as rt, n as fe, x as sn, I as Fn, B as Tn, D as dn, s as St, v as mn, P as zn } from "./chunks/Portal-BWqqFvVm.js";
4
- import { C as kn, O as Bn, S as gn, a as wn, A as Tt, c as Qn, g as Vt, R as Ct, N as In, d as Hn, e as pn, f as Mn } from "./chunks/NotFoundSkeleton-BYJTzYJR.js";
5
- import { Box as i, Typography as x, IconButton as Qe, Tooltip as an, useTheme as On, Tabs as fn, TabList as un, Tab as jt, TabPanel as vt, FormControl as on, Checkbox as ln, Modal as Dn, ModalDialog as Vn, DialogContent as jn, DialogActions as vn, Button as Ce, Sheet as xn, Table as yn, Alert as En, Stack as qn, tabClasses as rn, Avatar as cn, Snackbar as Wn } from "@mui/joy";
6
- import { GameByIdModel as Jn, MarketEnum as c, PredictionRequestModel as hn } from "fansunited-sdk-esm";
7
- import { C as Gn } from "./chunks/CollectLeadForm-DtmR2Vuf.js";
8
- import { K as Gt, a as Yt, H as Yn, E as Ln, P as An, d as Sn, C as Nn, b as Zn, c as Xn } from "./chunks/Error-DhQL89pn.js";
9
- import { O as _n } from "./chunks/OverlayScoreStateSkeleton-C9FUhcnd.js";
10
- import { S as $n, a as ei, O as ti, b as ni, c as ii, d as ai } from "./chunks/OverlayLeadAfterCollection-DnqztPJ5.js";
3
+ import { b as $, i as re, g as Un, B as i, T as x, t as At, ab as Jt, d as H, c as ne, a as ue, ah as We, k as Ie, b3 as Qe, ae as te, aV as Rn, b4 as Kn, ad as Fn, ag as Ce, u as we, j as bt, f as _e, W as xe, m as Ut, e as rt, h as fe, af as sn, ai as Tn, aj as zn, ak as kn, al as Bn, am as dn, s as St, l as mn, P as wn } from "./chunks/Portal-DegkUXpU.js";
4
+ import { q as Qn, T as an, M as In, n as Hn, C as pn, D as Mn, r as c, O as On, S as gn, a as Dn, d as Tt, g as Vn, l as Vt, R as Ct, N as jn, i as vn, j as En, k as qn, t as fn } from "./chunks/index-DUQ2LFod.js";
5
+ import { C as Wn, F as on, a as ln } from "./chunks/CollectLeadForm-C_3plJtn.js";
6
+ import { K as Gt, a as Yt, H as Jn, D as Gn, S as un, T as xn, E as Yn, A as rn, P as cn, e as yn, C as Ln, b as Nn, c as Zn, d as Xn } from "./chunks/Error-BurPfBJw.js";
7
+ import { T as hn, a as Sn, b as jt, c as vt, t as An } from "./chunks/Tabs-leN3Fb8D.js";
8
+ import { O as _n } from "./chunks/OverlayScoreStateSkeleton-Cha5KeNi.js";
9
+ import { S as $n, a as ei, O as ti, b as ni, c as ii, d as ai } from "./chunks/OverlayLeadAfterCollection-Bjh1xAB5.js";
11
10
  const oi = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CORRECT_SCORE_ADVANCED", gt = (e) => e === "PLAYER_SCORE" || e === "PLAYER_YELLOW_CARD" || e === "PLAYER_RED_CARD" || e === "PLAYER_SCORE_FIRST_GOAL" || e === "PLAYER_SCORE_HATTRICK" || e === "PLAYER_SCORE_TWICE", Lt = (e) => {
12
11
  const n = (/* @__PURE__ */ new Date()).getTime(), o = new Date(e).getTime();
13
12
  return n > o;
@@ -33,7 +32,7 @@ const oi = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
33
32
  }
34
33
  m(C);
35
34
  } catch (A) {
36
- console.warn(A), l(new Jn()), m(/* @__PURE__ */ new Map());
35
+ console.warn(A), l(new Qn()), m(/* @__PURE__ */ new Map());
37
36
  }
38
37
  }, y = async () => {
39
38
  try {
@@ -208,7 +207,7 @@ const oi = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
208
207
  onClick: d
209
208
  };
210
209
  return /* @__PURE__ */ t(
211
- Gn,
210
+ Wn,
212
211
  {
213
212
  sdk: e,
214
213
  content: {
@@ -1206,7 +1205,7 @@ const ui = (e) => {
1206
1205
  {
1207
1206
  onClick: () => u(!d),
1208
1207
  sx: y.mobileIconButton,
1209
- children: /* @__PURE__ */ t(Yn, { sx: y.mobileIcon })
1208
+ children: /* @__PURE__ */ t(Jn, { sx: y.mobileIcon })
1210
1209
  }
1211
1210
  )
1212
1211
  }
@@ -2390,7 +2389,7 @@ const Pi = (e) => {
2390
2389
  });
2391
2390
  Pn.displayName = "PlayerAvatar";
2392
2391
  const Bi = (e) => {
2393
- const n = H(), o = ne(), r = $(), l = ue(), f = re(), m = We(), d = On(), { t: u } = te(), { squads: a } = Ie(He), y = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : m, [A, h] = ee(e.prediction), [P, S] = ee(e.prediction === "OWN_GOAL"), [C, K] = ee(e.prediction === null), [T, w] = ee("home"), [g, k] = ee(0), U = ki({
2392
+ const n = H(), o = ne(), r = $(), l = ue(), f = re(), m = We(), d = Rn(), { t: u } = te(), { squads: a } = Ie(He), y = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : m, [A, h] = ee(e.prediction), [P, S] = ee(e.prediction === "OWN_GOAL"), [C, K] = ee(e.prediction === null), [T, w] = ee("home"), [g, k] = ee(0), U = ki({
2394
2393
  spacingScale: l,
2395
2394
  borderRadius: o,
2396
2395
  fontFamilyPrimary: r.primary,
@@ -2464,13 +2463,13 @@ const Bi = (e) => {
2464
2463
  )
2465
2464
  ] }) }),
2466
2465
  /* @__PURE__ */ t(i, { sx: U.tabsContainer, children: /* @__PURE__ */ s(
2467
- fn,
2466
+ hn,
2468
2467
  {
2469
2468
  value: g,
2470
2469
  onChange: (b, j) => k(j),
2471
2470
  sx: U.tabs,
2472
2471
  children: [
2473
- /* @__PURE__ */ t(un, { sx: U.tabList, children: E.map((b, j) => /* @__PURE__ */ t(jt, { value: j, sx: U.tab, children: u(`matchQuiz.fixtures.${b}`) }, b)) }),
2472
+ /* @__PURE__ */ t(Sn, { sx: U.tabList, children: E.map((b, j) => /* @__PURE__ */ t(jt, { value: j, sx: U.tab, children: u(`matchQuiz.fixtures.${b}`) }, b)) }),
2474
2473
  E.map((b, j) => /* @__PURE__ */ t(vt, { value: j, sx: U.tabPanel, children: /* @__PURE__ */ t(i, { sx: U.playersGrid, children: B().map((D) => /* @__PURE__ */ s(i, { sx: U.playerContainer, children: [
2475
2474
  /* @__PURE__ */ t(
2476
2475
  Pn,
@@ -2760,7 +2759,7 @@ const Bi = (e) => {
2760
2759
  display: "flex",
2761
2760
  alignItems: "center",
2762
2761
  justifyContent: "center",
2763
- py: Rn("xs"),
2762
+ py: Kn("xs"),
2764
2763
  width: "100%",
2765
2764
  zIndex: 1
2766
2765
  },
@@ -3192,7 +3191,7 @@ const Bi = (e) => {
3192
3191
  }
3193
3192
  };
3194
3193
  }, Hi = (e) => {
3195
- const { t: n } = te(), { shadowRootElement: o } = Ie(Kn), r = H(), l = ne(), f = $(), m = ue(), [d, u] = ee(!1), a = Ii({
3194
+ const { t: n } = te(), { shadowRootElement: o } = Ie(Fn), r = H(), l = ne(), f = $(), m = ue(), [d, u] = ee(!1), a = Ii({
3196
3195
  spacingScale: m,
3197
3196
  borderRadius: l,
3198
3197
  fontFamilyPrimary: f.primary,
@@ -3288,15 +3287,15 @@ const Bi = (e) => {
3288
3287
  ) : null;
3289
3288
  };
3290
3289
  return /* @__PURE__ */ t(
3291
- Dn,
3290
+ In,
3292
3291
  {
3293
3292
  open: e.isOpen,
3294
3293
  onClose: e.onClose,
3295
3294
  container: o,
3296
- children: /* @__PURE__ */ s(Vn, { sx: a.modalDialog, children: [
3297
- /* @__PURE__ */ t(Qe, { onClick: e.onClose, sx: a.closeButton, children: /* @__PURE__ */ t(kn, {}) }),
3298
- /* @__PURE__ */ t(jn, { children: P() }),
3299
- e.view === "score" && /* @__PURE__ */ s(vn, { children: [
3295
+ children: /* @__PURE__ */ s(Hn, { sx: a.modalDialog, children: [
3296
+ /* @__PURE__ */ t(Qe, { onClick: e.onClose, sx: a.closeButton, children: /* @__PURE__ */ t(pn, {}) }),
3297
+ /* @__PURE__ */ t(Mn, { children: P() }),
3298
+ e.view === "score" && /* @__PURE__ */ s(Gn, { children: [
3300
3299
  /* @__PURE__ */ t(
3301
3300
  Ce,
3302
3301
  {
@@ -3508,8 +3507,8 @@ const Bi = (e) => {
3508
3507
  };
3509
3508
  return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ s(i, { sx: h.container, children: [
3510
3509
  /* @__PURE__ */ t(x, { sx: h.title, children: n("matchQuiz.summary.title") }),
3511
- /* @__PURE__ */ t(xn, { sx: h.tableContainer, children: /* @__PURE__ */ s(
3512
- yn,
3510
+ /* @__PURE__ */ t(un, { sx: h.tableContainer, children: /* @__PURE__ */ s(
3511
+ xn,
3513
3512
  {
3514
3513
  variant: "outlined",
3515
3514
  hoverRow: !1,
@@ -3533,7 +3532,7 @@ const Bi = (e) => {
3533
3532
  size: "sm",
3534
3533
  sx: h.editIconButton,
3535
3534
  onClick: () => P(k),
3536
- children: /* @__PURE__ */ t(Ln, {})
3535
+ children: /* @__PURE__ */ t(Yn, {})
3537
3536
  }
3538
3537
  ) })
3539
3538
  ] }, `${g.market}-${k}`)) })
@@ -4013,7 +4012,7 @@ const Bi = (e) => {
4013
4012
  ] }) });
4014
4013
  };
4015
4014
  return /* @__PURE__ */ t(
4016
- Bn,
4015
+ On,
4017
4016
  {
4018
4017
  entity: e.matchQuiz,
4019
4018
  headline: d("matchQuiz.headline"),
@@ -5506,7 +5505,7 @@ const Bi = (e) => {
5506
5505
  };
5507
5506
  return /* @__PURE__ */ s(Le, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: [
5508
5507
  /* @__PURE__ */ t(
5509
- wn,
5508
+ Dn,
5510
5509
  {
5511
5510
  entity: e.matchQuiz,
5512
5511
  headline: m("matchQuiz.headline"),
@@ -5781,9 +5780,9 @@ const Bi = (e) => {
5781
5780
  case "success":
5782
5781
  return /* @__PURE__ */ t(dn, {});
5783
5782
  case "error":
5784
- return /* @__PURE__ */ t(Tn, { sx: { color: n } });
5783
+ return /* @__PURE__ */ t(Bn, { sx: { color: n } });
5785
5784
  case "info":
5786
- return /* @__PURE__ */ t(Fn, {});
5785
+ return /* @__PURE__ */ t(kn, {});
5787
5786
  }
5788
5787
  }, Ei = (e) => {
5789
5788
  switch (e) {
@@ -5802,7 +5801,7 @@ const Bi = (e) => {
5802
5801
  }) => {
5803
5802
  const l = we(), f = ne(), m = $().secondary, d = re(), u = Ei(e);
5804
5803
  return /* @__PURE__ */ t(
5805
- En,
5804
+ Tn,
5806
5805
  {
5807
5806
  variant: "soft",
5808
5807
  color: u,
@@ -5817,7 +5816,7 @@ const Bi = (e) => {
5817
5816
  "--Icon-fontSize": d ? "1em" : "1.25em"
5818
5817
  },
5819
5818
  children: /* @__PURE__ */ s(
5820
- qn,
5819
+ zn,
5821
5820
  {
5822
5821
  sx: {
5823
5822
  fontSize: "1.5em"
@@ -6046,7 +6045,7 @@ const Bi = (e) => {
6046
6045
  }, O = () => {
6047
6046
  var se, Pe, ze, Ue, Te;
6048
6047
  return /* @__PURE__ */ t(
6049
- Qn,
6048
+ Vn,
6050
6049
  {
6051
6050
  entity: e.matchQuiz,
6052
6051
  headline: o("matchQuiz.headline"),
@@ -6951,7 +6950,7 @@ const Bi = (e) => {
6951
6950
  );
6952
6951
  };
6953
6952
  return /* @__PURE__ */ t(i, { sx: { width: "100%" }, children: /* @__PURE__ */ s(
6954
- fn,
6953
+ hn,
6955
6954
  {
6956
6955
  value: m,
6957
6956
  onChange: (R, p) => d(p),
@@ -6963,7 +6962,7 @@ const Bi = (e) => {
6963
6962
  },
6964
6963
  children: [
6965
6964
  /* @__PURE__ */ s(
6966
- un,
6965
+ Sn,
6967
6966
  {
6968
6967
  sx: {
6969
6968
  fontSize: h ? "0.75em" : "1em",
@@ -6986,7 +6985,7 @@ const Bi = (e) => {
6986
6985
  bgcolor: r ? "#FAFAFA14" : "#2121210A"
6987
6986
  // Highlight selected tab
6988
6987
  },
6989
- [`&.${rn.selected}`]: {
6988
+ [`&.${An.selected}`]: {
6990
6989
  bgcolor: r ? "#FAFAFA14" : "#2121210A",
6991
6990
  // Highlight selected tab
6992
6991
  borderBottom: "3px solid " + E,
@@ -7061,7 +7060,7 @@ const Bi = (e) => {
7061
7060
  bgcolor: r ? "#FAFAFA14" : "#2121210A"
7062
7061
  // Highlight selected tab
7063
7062
  },
7064
- [`&.${rn.selected}`]: {
7063
+ [`&.${An.selected}`]: {
7065
7064
  bgcolor: r ? "#FAFAFA14" : "#2121210A",
7066
7065
  // Highlight selected tab
7067
7066
  borderBottom: "3px solid " + E,
@@ -7441,8 +7440,8 @@ const Bi = (e) => {
7441
7440
  const k = n && n.length > 0 ? n[0] : null, U = k == null ? void 0 : k.position, M = U && e.some((O) => O.position === U);
7442
7441
  return /* @__PURE__ */ s(i, { sx: g.leaderboardContainer, children: [
7443
7442
  r && /* @__PURE__ */ t(x, { level: "h4", sx: g.leaderboardTitle, children: f("matchQuiz.leaderboard.title") }),
7444
- /* @__PURE__ */ t(xn, { sx: g.tableContainer, children: /* @__PURE__ */ s(
7445
- yn,
7443
+ /* @__PURE__ */ t(un, { sx: g.tableContainer, children: /* @__PURE__ */ s(
7444
+ xn,
7446
7445
  {
7447
7446
  variant: "outlined",
7448
7447
  hoverRow: !1,
@@ -7462,7 +7461,7 @@ const Bi = (e) => {
7462
7461
  k.position
7463
7462
  ] }) }),
7464
7463
  /* @__PURE__ */ t("td", { style: g.tableCellName, children: /* @__PURE__ */ s(i, { sx: g.nameCell, children: [
7465
- /* @__PURE__ */ t(cn, { sx: g.leaderboardAvatar, children: /* @__PURE__ */ t(An, { sx: g.avatarIcon }) }),
7464
+ /* @__PURE__ */ t(rn, { sx: g.leaderboardAvatar, children: /* @__PURE__ */ t(cn, { sx: g.avatarIcon }) }),
7466
7465
  /* @__PURE__ */ t(x, { sx: g.nameText, children: f("matchQuiz.leaderboard.you") })
7467
7466
  ] }) }),
7468
7467
  /* @__PURE__ */ t("td", { style: g.tableCellPoints, children: /* @__PURE__ */ t(x, { sx: g.pointsText, children: k.points }) })
@@ -7480,11 +7479,11 @@ const Bi = (e) => {
7480
7479
  ] }) }),
7481
7480
  /* @__PURE__ */ t("td", { style: g.tableCellName, children: /* @__PURE__ */ s(i, { sx: g.nameCell, children: [
7482
7481
  /* @__PURE__ */ t(
7483
- cn,
7482
+ rn,
7484
7483
  {
7485
7484
  src: O.profileModel.avatar || void 0,
7486
7485
  sx: g.leaderboardAvatar,
7487
- children: O.profileModel.avatar ? /* @__PURE__ */ t(X, {}) : /* @__PURE__ */ t(An, { sx: g.avatarIcon })
7486
+ children: O.profileModel.avatar ? /* @__PURE__ */ t(X, {}) : /* @__PURE__ */ t(cn, { sx: g.avatarIcon })
7488
7487
  }
7489
7488
  ),
7490
7489
  /* @__PURE__ */ t(x, { sx: g.nameText, children: B ? f("matchQuiz.leaderboard.you") : O.profileModel.nickname || O.profileModel.name })
@@ -7507,7 +7506,7 @@ const Bi = (e) => {
7507
7506
  * This source code is licensed under the ISC license.
7508
7507
  * See the LICENSE file in the root directory of this source tree.
7509
7508
  */
7510
- const Zi = Sn("ChevronsLeft", [
7509
+ const Zi = yn("ChevronsLeft", [
7511
7510
  ["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
7512
7511
  ["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
7513
7512
  ]);
@@ -7517,7 +7516,7 @@ const Zi = Sn("ChevronsLeft", [
7517
7516
  * This source code is licensed under the ISC license.
7518
7517
  * See the LICENSE file in the root directory of this source tree.
7519
7518
  */
7520
- const Xi = Sn("ChevronsRight", [
7519
+ const Xi = yn("ChevronsRight", [
7521
7520
  ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
7522
7521
  ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
7523
7522
  ]), nn = ({
@@ -7641,7 +7640,7 @@ const Xi = Sn("ChevronsRight", [
7641
7640
  onClick: () => A(n - 1),
7642
7641
  disabled: u || n === 1,
7643
7642
  sx: w(),
7644
- children: /* @__PURE__ */ t(Nn, { size: K })
7643
+ children: /* @__PURE__ */ t(Ln, { size: K })
7645
7644
  }
7646
7645
  ),
7647
7646
  S.map((g, k) => {
@@ -7693,7 +7692,7 @@ const Xi = Sn("ChevronsRight", [
7693
7692
  onClick: () => A(n + 1),
7694
7693
  disabled: u || n === e,
7695
7694
  sx: w(),
7696
- children: /* @__PURE__ */ t(Zn, { size: K })
7695
+ children: /* @__PURE__ */ t(Nn, { size: K })
7697
7696
  }
7698
7697
  ),
7699
7698
  m && /* @__PURE__ */ t(
@@ -8979,7 +8978,7 @@ const Xi = Sn("ChevronsRight", [
8979
8978
  }, ia = () => {
8980
8979
  const { t: e } = te();
8981
8980
  return /* @__PURE__ */ t(Le, { brandingBorderColor: null, children: /* @__PURE__ */ t(
8982
- In,
8981
+ jn,
8983
8982
  {
8984
8983
  notFoundTitle: e("matchQuiz.matchQuizNotFound"),
8985
8984
  notFoundMessage: e("matchQuiz.matchQuizNotFoundDescription")
@@ -8989,7 +8988,7 @@ const Xi = Sn("ChevronsRight", [
8989
8988
  var l, f, m, d;
8990
8989
  const n = ((l = e.matchQuiz.branding) == null ? void 0 : l.colors) || null, o = re() ? ((f = e.matchQuiz.branding) == null ? void 0 : f.images.mobileLogo) || ((m = e.matchQuiz.branding) == null ? void 0 : m.images.mainLogo) || "" : ((d = e.matchQuiz.branding) == null ? void 0 : d.images.mainLogo) || "", { t: r } = te();
8991
8990
  return /* @__PURE__ */ t(Le, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
8992
- Hn,
8991
+ vn,
8993
8992
  {
8994
8993
  entity: e.matchQuiz,
8995
8994
  headline: r("matchQuiz.headline"),
@@ -9016,7 +9015,7 @@ const Xi = Sn("ChevronsRight", [
9016
9015
  var f, m, d, u;
9017
9016
  const n = re(), { t: o } = te(), r = ((f = e.matchQuiz.branding) == null ? void 0 : f.colors) || null, l = n ? ((m = e.matchQuiz.branding) == null ? void 0 : m.images.mobileLogo) || ((d = e.matchQuiz.branding) == null ? void 0 : d.images.mainLogo) || "" : ((u = e.matchQuiz.branding) == null ? void 0 : u.images.mainLogo) || "";
9018
9017
  return /* @__PURE__ */ t(Le, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
9019
- pn,
9018
+ En,
9020
9019
  {
9021
9020
  entity: e.matchQuiz,
9022
9021
  headline: o("matchQuiz.headline"),
@@ -9043,7 +9042,7 @@ const Xi = Sn("ChevronsRight", [
9043
9042
  e.matchQuiz.branding || null
9044
9043
  );
9045
9044
  return /* @__PURE__ */ t(
9046
- Mn,
9045
+ qn,
9047
9046
  {
9048
9047
  entity: e.matchQuiz,
9049
9048
  headline: n("matchQuiz.headline"),
@@ -10499,7 +10498,7 @@ const Xi = Sn("ChevronsRight", [
10499
10498
  }) => {
10500
10499
  const o = ne(), r = $();
10501
10500
  return e.open ? /* @__PURE__ */ t(
10502
- Wn,
10501
+ Zn,
10503
10502
  {
10504
10503
  open: e.open,
10505
10504
  onClose: n,
@@ -10551,7 +10550,7 @@ function mt(e) {
10551
10550
  return e.template === xe.STANDARD;
10552
10551
  }
10553
10552
  const ha = (e, n) => {
10554
- const o = (l) => oi(l) ? "0:0" : gt(l) ? !0 : l === c.CORNERS_MATCH ? 6 : null, r = new hn();
10553
+ const o = (l) => oi(l) ? "0:0" : gt(l) ? !0 : l === c.CORNERS_MATCH ? 6 : null, r = new fn();
10555
10554
  return r.gameInstanceId = e, r.fixtures = n.map((l) => {
10556
10555
  const f = o(l.market);
10557
10556
  return {
@@ -10577,7 +10576,7 @@ const ha = (e, n) => {
10577
10576
  setIsApiError: a,
10578
10577
  setIsUnauthorized: y
10579
10578
  } = ri(e.entityId, e.sdk), [A, h] = ee(!1), [P, S] = ee(
10580
- new hn()
10579
+ new fn()
10581
10580
  ), [C, K] = ee(!1), [T, w] = ee(!1), [g, k] = ee(!1), [U, M] = ee({
10582
10581
  open: !1,
10583
10582
  variant: "success",
@@ -10998,7 +10997,7 @@ const ha = (e, n) => {
10998
10997
  ),
10999
10998
  /* @__PURE__ */ t(Ft, { notification: U, onClose: O })
11000
10999
  ] });
11001
- }, Ca = (e) => /* @__PURE__ */ t(zn, { packageName: "match-quiz-play", ...e, children: /* @__PURE__ */ t(Sa, { ...e }) }), wa = Ca;
11000
+ }, Ca = (e) => /* @__PURE__ */ t(wn, { packageName: "match-quiz-play", ...e, children: /* @__PURE__ */ t(Sa, { ...e }) }), Ba = Ca;
11002
11001
  export {
11003
- wa as MatchQuizPlay
11002
+ Ba as MatchQuizPlay
11004
11003
  };
package/PollVote.js CHANGED
@@ -1,12 +1,10 @@
1
1
  import { jsxs as m, Fragment as H, jsx as n } from "react/jsx-runtime";
2
2
  import Ce, { useState as Y, useEffect as qe, useRef as en, useMemo as nn } from "react";
3
- import { i as v, u as N, a as X, k as Z, j as E, h as R, l as be, W as O, n as Fe, s as je, y as An, o as on, t as xe, w as Oe, b as pe, C as ue, f as G, x as Ie, q as Me, p as ne, z as tn, I as ln, B as an, D as rn, r as cn, E as gn, v as _e, F as fn, P as sn } from "./chunks/Portal-BWqqFvVm.js";
4
- import { R as Je, O as dn, S as Un, a as mn, A as Ze, b as Ee, c as Kn, N as Pn, d as yn, e as xn, f as Fn, g as Cn } from "./chunks/NotFoundSkeleton-BYJTzYJR.js";
5
- import { Box as o, Typography as P, AspectRatio as De, Button as W, Alert as pn, Stack as un } from "@mui/joy";
6
- import { PollFullModel as Sn, SinglePollVoteModel as Bn } from "fansunited-sdk-esm";
7
- import { C as Tn } from "./chunks/CollectLeadForm-DtmR2Vuf.js";
8
- import { O as Rn } from "./chunks/OverlayScoreStateSkeleton-C9FUhcnd.js";
9
- import { S as hn, a as kn, O as zn, b as Hn, c as Vn, d as qn } from "./chunks/OverlayLeadAfterCollection-DnqztPJ5.js";
3
+ import { i as v, u as N, a as X, b as Z, c as E, d as R, e as be, W as O, h as Fe, B as o, T as P, s as je, ac as An, g as on, t as xe, m as Oe, k as pe, ad as ue, ae as G, af as Ie, j as Me, f as ne, ag as W, ah as tn, ai as ln, aj as an, ak as rn, al as cn, am as gn, ab as fn, an as sn, l as _e, ao as dn, P as Un } from "./chunks/Portal-DegkUXpU.js";
4
+ import { R as Je, h as mn, y as Kn, A as De, O as Pn, S as yn, a as xn, d as Ze, f as Ee, g as Fn, N as Cn, i as pn, j as un, k as Sn, l as Bn } from "./chunks/index-DUQ2LFod.js";
5
+ import { C as Tn } from "./chunks/CollectLeadForm-C_3plJtn.js";
6
+ import { O as Rn } from "./chunks/OverlayScoreStateSkeleton-Cha5KeNi.js";
7
+ import { S as hn, a as kn, O as zn, b as Hn, c as Vn, d as qn } from "./chunks/OverlayLeadAfterCollection-Bjh1xAB5.js";
10
8
  const bn = (e) => {
11
9
  var A, l, t;
12
10
  return {
@@ -343,7 +341,7 @@ const bn = (e) => {
343
341
  const a = await A.voting.getPollById(e, !0);
344
342
  t(a);
345
343
  } catch (a) {
346
- console.error(a), t(new Sn());
344
+ console.error(a), t(new mn());
347
345
  }
348
346
  };
349
347
  return qe(() => (c(), () => t(null)), [e, A]), { poll: l, setPoll: t };
@@ -353,7 +351,7 @@ const bn = (e) => {
353
351
  const s = await A.voting.getMyPollVote(e);
354
352
  c(s);
355
353
  } catch (g) {
356
- if (c(new Bn()), A.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
354
+ if (c(new Kn()), A.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
357
355
  const T = g;
358
356
  if (T.error.code === 404)
359
357
  return;
@@ -912,7 +910,7 @@ const bn = (e) => {
912
910
  );
913
911
  };
914
912
  return /* @__PURE__ */ n(
915
- dn,
913
+ Pn,
916
914
  {
917
915
  entity: e.poll,
918
916
  headline: d("poll.headline"),
@@ -1196,7 +1194,7 @@ const bn = (e) => {
1196
1194
  );
1197
1195
  };
1198
1196
  return /* @__PURE__ */ n(L, { brandingBorderColor: (g == null ? void 0 : g.borderColor) || null, children: /* @__PURE__ */ n(
1199
- Un,
1197
+ yn,
1200
1198
  {
1201
1199
  entity: e.poll,
1202
1200
  headline: d("poll.headline"),
@@ -1655,7 +1653,7 @@ const bn = (e) => {
1655
1653
  state: "play",
1656
1654
  children: [
1657
1655
  /* @__PURE__ */ n(
1658
- mn,
1656
+ xn,
1659
1657
  {
1660
1658
  entity: { ...e.poll, type: "poll" },
1661
1659
  headline: g("poll.headline"),
@@ -1953,11 +1951,11 @@ const bn = (e) => {
1953
1951
  }, Gn = (e, A) => {
1954
1952
  switch (e) {
1955
1953
  case "success":
1956
- return /* @__PURE__ */ n(rn, {});
1954
+ return /* @__PURE__ */ n(gn, {});
1957
1955
  case "error":
1958
- return /* @__PURE__ */ n(an, { sx: { color: A } });
1956
+ return /* @__PURE__ */ n(cn, { sx: { color: A } });
1959
1957
  case "info":
1960
- return /* @__PURE__ */ n(ln, {});
1958
+ return /* @__PURE__ */ n(rn, {});
1961
1959
  }
1962
1960
  }, Zn = (e) => {
1963
1961
  switch (e) {
@@ -1976,7 +1974,7 @@ const bn = (e) => {
1976
1974
  }) => {
1977
1975
  const c = N(), a = E(), i = Z().secondary, d = Zn(e);
1978
1976
  return /* @__PURE__ */ n(
1979
- pn,
1977
+ ln,
1980
1978
  {
1981
1979
  variant: "soft",
1982
1980
  color: d,
@@ -1991,7 +1989,7 @@ const bn = (e) => {
1991
1989
  "--Icon-fontSize": "1.25em"
1992
1990
  },
1993
1991
  children: /* @__PURE__ */ m(
1994
- un,
1992
+ an,
1995
1993
  {
1996
1994
  sx: {
1997
1995
  fontSize: "1.5em"
@@ -2028,7 +2026,7 @@ const bn = (e) => {
2028
2026
  )
2029
2027
  }
2030
2028
  );
2031
- }, Ve = cn(/* @__PURE__ */ n("path", {
2029
+ }, Ve = fn(/* @__PURE__ */ n("path", {
2032
2030
  d: "M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"
2033
2031
  }), "People"), We = (e) => {
2034
2032
  var F;
@@ -2766,7 +2764,7 @@ const bn = (e) => {
2766
2764
  }
2767
2765
  }), Nn = (e) => {
2768
2766
  var k, B, Q, M;
2769
- const A = N(), l = v(), t = gn(), c = Ie(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? oe : Ae, i = ne(
2767
+ const A = N(), l = v(), t = sn(), c = Ie(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? oe : Ae, i = ne(
2770
2768
  {
2771
2769
  images: e.poll.images,
2772
2770
  imagePlaceholder: a
@@ -2796,7 +2794,7 @@ const bn = (e) => {
2796
2794
  }
2797
2795
  ) : null;
2798
2796
  return /* @__PURE__ */ n(
2799
- Kn,
2797
+ Fn,
2800
2798
  {
2801
2799
  entity: e.poll,
2802
2800
  headline: f("poll.headline"),
@@ -3148,7 +3146,7 @@ const bn = (e) => {
3148
3146
  }, $n = () => {
3149
3147
  const { t: e } = G();
3150
3148
  return /* @__PURE__ */ n(L, { brandingBorderColor: null, children: /* @__PURE__ */ n(
3151
- Pn,
3149
+ Cn,
3152
3150
  {
3153
3151
  notFoundTitle: e("poll.pollNotFound"),
3154
3152
  notFoundMessage: e("poll.pollNotFoundDescription")
@@ -3158,7 +3156,7 @@ const bn = (e) => {
3158
3156
  var c, a, i, d;
3159
3157
  const A = ((c = e.poll.branding) == null ? void 0 : c.colors) || null, l = v() ? ((a = e.poll.branding) == null ? void 0 : a.images.mobileLogo) || ((i = e.poll.branding) == null ? void 0 : i.images.mainLogo) || "" : ((d = e.poll.branding) == null ? void 0 : d.images.mainLogo) || "", { t } = G();
3160
3158
  return /* @__PURE__ */ n(L, { brandingBorderColor: (A == null ? void 0 : A.borderColor) || null, children: /* @__PURE__ */ n(
3161
- yn,
3159
+ pn,
3162
3160
  {
3163
3161
  entity: e.poll,
3164
3162
  headline: t("poll.headline"),
@@ -3185,7 +3183,7 @@ const bn = (e) => {
3185
3183
  var a, i, d, f;
3186
3184
  const A = v(), { t: l } = G(), t = ((a = e.poll.branding) == null ? void 0 : a.colors) || null, c = A ? ((i = e.poll.branding) == null ? void 0 : i.images.mobileLogo) || ((d = e.poll.branding) == null ? void 0 : d.images.mainLogo) || "" : ((f = e.poll.branding) == null ? void 0 : f.images.mainLogo) || "";
3187
3185
  return /* @__PURE__ */ n(L, { brandingBorderColor: (t == null ? void 0 : t.borderColor) || null, children: /* @__PURE__ */ n(
3188
- xn,
3186
+ un,
3189
3187
  {
3190
3188
  entity: e.poll,
3191
3189
  headline: l("poll.headline"),
@@ -3212,7 +3210,7 @@ const bn = (e) => {
3212
3210
  e.poll.branding || null
3213
3211
  );
3214
3212
  return /* @__PURE__ */ n(
3215
- Fn,
3213
+ Sn,
3216
3214
  {
3217
3215
  entity: e.poll,
3218
3216
  headline: A("poll.headline"),
@@ -3936,9 +3934,9 @@ const fA = (e) => {
3936
3934
  setIsUnauthorized: x
3937
3935
  } = jn(e.entityId, e.sdk, d), b = nn(() => !r || !F || !(F != null && F.id) || r.maxAttempts === -1 || r.maxAttempts === null || F.attempts === null ? !1 : (r == null ? void 0 : r.maxAttempts) <= (F == null ? void 0 : F.attempts), [r, F]);
3938
3936
  if (qe(() => {
3939
- fn(e.language || "en");
3937
+ dn(e.language || "en");
3940
3938
  }, [e.language]), !r || !F)
3941
- return /* @__PURE__ */ n(Cn, { my: 20 });
3939
+ return /* @__PURE__ */ n(Bn, { my: 20 });
3942
3940
  if (!r.id)
3943
3941
  return /* @__PURE__ */ n($n, {});
3944
3942
  if (r.authRequirement === "REGISTERED" && !e.userIsLoggedIn)
@@ -4163,7 +4161,7 @@ const fA = (e) => {
4163
4161
  rulesDisplay: e.rulesDisplay
4164
4162
  }
4165
4163
  ) : I();
4166
- }, sA = (e) => /* @__PURE__ */ n(sn, { packageName: "poll-vote", ...e, children: /* @__PURE__ */ n(fA, { ...e }) }), pA = sA;
4164
+ }, sA = (e) => /* @__PURE__ */ n(Un, { packageName: "poll-vote", ...e, children: /* @__PURE__ */ n(fA, { ...e }) }), FA = sA;
4167
4165
  export {
4168
- pA as PollVote
4166
+ FA as PollVote
4169
4167
  };