fansunited-frontend-components 0.0.48 → 0.0.49

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.
Files changed (57) hide show
  1. package/ChanceGame.js +45 -45
  2. package/ClassicQuizPlay.js +184 -183
  3. package/CollectLead.js +16 -15
  4. package/Discussion.js +1 -1
  5. package/EitherOrPlay.js +66 -65
  6. package/EventGamePlay.js +68 -67
  7. package/Leaderboard.js +22 -22
  8. package/MatchQuizPlay.js +82 -81
  9. package/PersonalityQuizPlay.js +77 -76
  10. package/PickThePair.js +42 -42
  11. package/PollVote.js +53 -52
  12. package/Predictor.js +75 -75
  13. package/README.md +272 -0
  14. package/chunks/{AlertMessage-D4Uc6n5U.js → AlertMessage-Ds45MBHB.js} +3 -3
  15. package/chunks/{ArrowRightAlt-wEs8SY1V.js → ArrowRightAlt-DKADQN2o.js} +1 -1
  16. package/chunks/{Avatar-BXHdXHLA.js → Avatar-K1EWhhkA.js} +2 -2
  17. package/chunks/{ChanceGameEmbedVariant-DfS5LPpp.js → ChanceGameEmbedVariant-DqFg4YKU.js} +31 -29
  18. package/chunks/{CheckCircle-CU2itira.js → CheckCircle-CV9iMpkZ.js} +1 -1
  19. package/chunks/{Close-DBt1nfGo.js → Close-BHp4N1-6.js} +1 -1
  20. package/chunks/{Close-C5SGTkPr.js → Close-C6Cw96SJ.js} +1 -1
  21. package/chunks/{CollectLeadForm-BqjgPYKX.js → CollectLeadForm-DnLKA8qz.js} +13 -13
  22. package/chunks/{Divider-Cbns9B3Y.js → Divider-BvUimRFw.js} +2 -2
  23. package/chunks/{Edit-BVP8fCB4.js → Edit-CZ3ni-Ur.js} +4 -4
  24. package/chunks/{EmojiEvents-D_ObJxNy.js → EmojiEvents-DpmLq98V.js} +1 -1
  25. package/chunks/{FavoriteBorder-_mUf1vas.js → FavoriteBorder-DUK_DrY4.js} +1 -1
  26. package/chunks/{FormControl-DLBvX-Sn.js → FormControl-BUItlVIg.js} +3 -3
  27. package/chunks/{FormLabel-jXtScWTI.js → FormLabel-CeTNPUn7.js} +2 -2
  28. package/chunks/{Input-Cha_dm3J.js → Input-MJCQcYzo.js} +2 -2
  29. package/chunks/{KeyboardArrowDown-C_8g8wLS.js → KeyboardArrowDown-SZpn2GhJ.js} +1 -1
  30. package/chunks/{ModalDialog-Co3jck0z.js → ModalDialog-Cfgv9UAA.js} +2 -2
  31. package/chunks/{NotFoundSkeleton-D5Jh3lnu.js → NotFoundSkeleton-Cs6DtD9u.js} +13 -12
  32. package/chunks/{Notification-r1Fm0If2.js → Notification-pcKtlRms.js} +4 -4
  33. package/chunks/{OverlayApiErrorSkeleton-BUuD0zL8.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +20 -19
  34. package/chunks/{OverlayLeadAfterCollection-B-N1OjPu.js → OverlayLeadAfterCollection-F2TAV9wK.js} +14 -12
  35. package/chunks/{OverlayScoreStateSkeleton-Bd3-ZNlU.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
  36. package/chunks/{Person-K8GGMiAW.js → Person-BGdniS_p.js} +1 -1
  37. package/chunks/{PickOneOfX-CvIn7QOd.js → PickOneOfX-Ci4ZJf7G.js} +8 -7
  38. package/chunks/{Popper-Bti_HOMS.js → Popper-DOVSI4rJ.js} +1 -1
  39. package/chunks/{Portal-B-nN3a_R.js → Portal-Cs0dgwmH.js} +1 -1
  40. package/chunks/{index-Btf_jw7-.js → PrizeCard-DF3QxwQJ.js} +0 -1
  41. package/chunks/{Select-C2QtqgA7.js → Select-BHeTdOYr.js} +3 -3
  42. package/chunks/{Spinner-D7-MZe2m.js → Spinner-DbUB64Gj.js} +1 -1
  43. package/chunks/{SplitLeadAfterCollection-CyXBWAIK.js → SplitLeadAfterCollection-DSw6X5fx.js} +36 -34
  44. package/chunks/{Stack-CU36SsgA.js → Stack-BpHk5eb0.js} +1 -1
  45. package/chunks/{StandardContentSkeleton-CYduGHsc.js → StandardContentSkeleton-Bae1LLQ_.js} +1 -1
  46. package/chunks/{Tabs-CA-FqQfT.js → Tabs-hwJ7jsUl.js} +3 -3
  47. package/chunks/{Textarea-Cn4VvCBl.js → Textarea-zOtMdgc5.js} +3 -3
  48. package/chunks/{TimerOutlined-DOpryr42.js → TimerOutlined-DWE7f0YX.js} +1 -1
  49. package/chunks/{helpers-1jFObSvc.js → helpers-NuC1SzL3.js} +1 -1
  50. package/chunks/index-BaypiKlO.js +4 -0
  51. package/chunks/{main-Chqd9Wwn.js → main-hB01WcoP.js} +88 -88
  52. package/chunks/{useEventCallback-CkO2rd5W.js → useEventCallback-CizlfWBo.js} +1 -1
  53. package/chunks/{useForwardedInput-C3SP2QmS.js → useForwardedInput-RWDntqBU.js} +2 -2
  54. package/chunks/{useImageVariant-BJ722AFw.js → useImageVariant-Cex1eIqq.js} +1 -1
  55. package/index.js +1 -1
  56. package/package.json +1 -1
  57. package/chunks/index-CyODGG_P.js +0 -4
@@ -1,20 +1,20 @@
1
1
  import { jsx as r, jsxs as _, Fragment as Me } from "react/jsx-runtime";
2
- import { _ as T, S as je, R as ve, af as _e, V as Ke, U as We, t as ye, s as be, v as Q, ab as go, ac as xo, y as ge, z as xe, P as t, X as G, E as Ce, A as ee, a1 as Co, a4 as Ro, D as Po, f as ae, a as te, b as ie, c as ze, e as re, B as F, j as oe, T as W, m as Y, g as Ve, C as Ne, I as So, o as Io, J as Mo, K as zo, L as Eo, M as To, N as $o } from "./index-Btf_jw7-.js";
3
2
  import * as I from "react";
4
- import J, { useState as H, useEffect as Re, useCallback as Ae, useRef as Ie } from "react";
5
- import { u as Do, T as Ge } from "./Textarea-Cn4VvCBl.js";
6
- import { F as Oo, a as ko } from "./FavoriteBorder-_mUf1vas.js";
7
- import { L as fe, l as wo, u as Vo, c as No, f as $e, C as Lo, d as Le, e as Fo, b as _o, i as Ao, s as Bo, V as Ho, G as Uo, j as jo, g as Ko, R as Wo, p as Go, h as Jo, v as Je, S as qo, a as Xo } from "./Select-C2QtqgA7.js";
8
- import { u as Yo, P as Qo, r as Zo } from "./Popper-Bti_HOMS.js";
9
- import { C as et, b as ot, d as tt, M as qe, a as Xe } from "./ModalDialog-Co3jck0z.js";
10
- import { C as rt } from "./Close-C5SGTkPr.js";
11
- import { F as De } from "./CheckCircle-CU2itira.js";
12
- import { u as nt } from "./useEventCallback-CkO2rd5W.js";
13
- import { A as st } from "./Avatar-BXHdXHLA.js";
14
- import { N as Ye } from "./Notification-r1Fm0If2.js";
15
- import { D as lt } from "./Divider-Cbns9B3Y.js";
16
- import { S as Oe } from "./Spinner-D7-MZe2m.js";
17
- import { createPortal as at } from "react-dom";
3
+ import J, { useState as H, useEffect as ve, useCallback as _e, useRef as Ie } from "react";
4
+ import { _ as T, S as je, R as ye, af as Ae, V as Ke, U as We, t as be, s as ge, v as Q, ab as go, ac as xo, y as xe, z as Ce, P as t, X as G, E as Re, A as ee, a1 as Co, a4 as Ro, D as Po, f as ae, a as te, b as ie, c as ze, e as re, B as F, j as oe, T as W, m as Y, g as Ve, C as Ne, I as So, o as Io, J as Mo, K as zo, L as Eo, M as To, N as $o } from "./PrizeCard-DF3QxwQJ.js";
5
+ import { S as $e } from "./Spinner-DbUB64Gj.js";
6
+ import { createPortal as Do } from "react-dom";
7
+ import { u as Oo, T as Ge } from "./Textarea-zOtMdgc5.js";
8
+ import { F as ko, a as wo } from "./FavoriteBorder-DUK_DrY4.js";
9
+ import { L as fe, l as Vo, u as No, c as Lo, f as De, C as Fo, d as Le, e as _o, b as Ao, i as Bo, s as Ho, V as Uo, G as jo, j as Ko, g as Wo, R as Go, p as Jo, h as qo, v as Je, S as Xo, a as Yo } from "./Select-BHeTdOYr.js";
10
+ import { u as Qo, P as Zo, r as et } from "./Popper-DOVSI4rJ.js";
11
+ import { C as ot, b as tt, d as rt, M as qe, a as Xe } from "./ModalDialog-Cfgv9UAA.js";
12
+ import { C as nt } from "./Close-C6Cw96SJ.js";
13
+ import { F as Oe } from "./CheckCircle-CV9iMpkZ.js";
14
+ import { u as st } from "./useEventCallback-CizlfWBo.js";
15
+ import { N as Ye } from "./Notification-pcKtlRms.js";
16
+ import { A as lt } from "./Avatar-K1EWhhkA.js";
17
+ import { D as at } from "./Divider-BvUimRFw.js";
18
18
  const Fe = /* @__PURE__ */ I.createContext(null);
19
19
  process.env.NODE_ENV !== "production" && (Fe.displayName = "DropdownContext");
20
20
  const ke = {
@@ -29,7 +29,7 @@ function it(e, o) {
29
29
  return T({}, e, {
30
30
  highlightedValue: o.item
31
31
  });
32
- const n = wo(e, o);
32
+ const n = Vo(e, o);
33
33
  if (n.highlightedValue === null && o.context.items.length > 0)
34
34
  return T({}, n, {
35
35
  highlightedValue: o.context.items[0]
@@ -75,7 +75,7 @@ function dt(e = {}) {
75
75
  disableListWrap: s = !1,
76
76
  autoFocus: u = !0,
77
77
  componentName: d = "useMenu"
78
- } = e, p = I.useRef(null), b = je(p, i), x = (o = ve(l)) != null ? o : "", {
78
+ } = e, p = I.useRef(null), b = je(p, i), x = (o = ye(l)) != null ? o : "", {
79
79
  state: {
80
80
  open: f,
81
81
  changeReason: g
@@ -86,7 +86,7 @@ function dt(e = {}) {
86
86
  } = (n = I.useContext(Fe)) != null ? n : ct, E = I.useRef(f), {
87
87
  subitems: y,
88
88
  contextValue: O
89
- } = Vo(), h = I.useMemo(() => Array.from(y.keys()), [y]), $ = I.useCallback((m) => {
89
+ } = No(), h = I.useMemo(() => Array.from(y.keys()), [y]), $ = I.useCallback((m) => {
90
90
  var M, z;
91
91
  return m == null ? null : (M = (z = y.get(m)) == null ? void 0 : z.ref.current) != null ? M : null;
92
92
  }, [y]), v = I.useCallback((m) => {
@@ -105,7 +105,7 @@ function dt(e = {}) {
105
105
  highlightedValue: B
106
106
  },
107
107
  rootRef: K
108
- } = No({
108
+ } = Lo({
109
109
  disabledItemsFocusable: c,
110
110
  disableListWrap: s,
111
111
  focusManagement: "DOM",
@@ -124,9 +124,9 @@ function dt(e = {}) {
124
124
  stateReducer: it,
125
125
  componentName: d
126
126
  });
127
- _e(() => {
127
+ Ae(() => {
128
128
  S(x);
129
- }, [x, S]), _e(() => {
129
+ }, [x, S]), Ae(() => {
130
130
  f && (g == null ? void 0 : g.type) === "keydown" && g.key === "ArrowUp" && A({
131
131
  type: fe.highlightLast,
132
132
  event: g
@@ -159,7 +159,7 @@ function dt(e = {}) {
159
159
  onBlur: k(m),
160
160
  onKeyDown: L(m)
161
161
  }), w = (m = {}) => {
162
- const M = $e(P, U), z = Ke(m);
162
+ const M = De(P, U), z = Ke(m);
163
163
  return T({}, m, z, M(z), {
164
164
  id: x,
165
165
  role: "menu"
@@ -198,7 +198,7 @@ function ut(e) {
198
198
  registerItem: c,
199
199
  totalSubitemCount: s
200
200
  }), [c, a, s]);
201
- return /* @__PURE__ */ r(Lo.Provider, {
201
+ return /* @__PURE__ */ r(Fo.Provider, {
202
202
  value: d,
203
203
  children: /* @__PURE__ */ r(Le.Provider, {
204
204
  value: u,
@@ -231,7 +231,7 @@ function ft(e) {
231
231
  rootRef: a,
232
232
  label: l,
233
233
  disableFocusOnHover: c = !1
234
- } = e, s = ve(i), u = I.useRef(null), d = I.useMemo(() => ({
234
+ } = e, s = ye(i), u = I.useRef(null), d = I.useMemo(() => ({
235
235
  disabled: n,
236
236
  id: s ?? "",
237
237
  label: l,
@@ -241,13 +241,13 @@ function ft(e) {
241
241
  } = (o = I.useContext(Fe)) != null ? o : mt, {
242
242
  getRootProps: b,
243
243
  highlighted: x
244
- } = Fo({
244
+ } = _o({
245
245
  item: s,
246
246
  handlePointerOverEvents: !c
247
247
  }), {
248
248
  index: f,
249
249
  totalItemCount: g
250
- } = _o(s ?? pt, d), {
250
+ } = Ao(s ?? pt, d), {
251
251
  getRootProps: C,
252
252
  focusVisible: R,
253
253
  rootRef: S
@@ -271,7 +271,7 @@ function ft(e) {
271
271
  onClick: y($)
272
272
  });
273
273
  function h($ = {}) {
274
- const v = Ke($), D = $e(O, $e(C, b));
274
+ const v = Ke($), D = De(O, De(C, b));
275
275
  return T({}, $, v, D(v), {
276
276
  id: s,
277
277
  ref: E,
@@ -300,7 +300,7 @@ function ht(e) {
300
300
  const o = I.useContext(Le);
301
301
  if (!o)
302
302
  throw new Error("MenuItem: ListContext was not found.");
303
- const n = ve(e), {
303
+ const n = ye(e), {
304
304
  getItemState: i,
305
305
  dispatch: a
306
306
  } = o;
@@ -332,9 +332,9 @@ function ht(e) {
332
332
  };
333
333
  }
334
334
  function vt(e) {
335
- return ye("MuiMenu", e);
335
+ return be("MuiMenu", e);
336
336
  }
337
- be("MuiMenu", ["root", "listbox", "expanded", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
337
+ ge("MuiMenu", ["root", "listbox", "expanded", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
338
338
  const yt = ["actions", "children", "color", "component", "disablePortal", "keepMounted", "id", "invertedColors", "onItemsChange", "modifiers", "variant", "size", "slots", "slotProps"], bt = (e) => {
339
339
  const {
340
340
  open: o,
@@ -345,8 +345,8 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
345
345
  root: ["root", o && "expanded", n && `variant${G(n)}`, i && `color${G(i)}`, a && `size${G(a)}`],
346
346
  listbox: ["listbox"]
347
347
  };
348
- return Ce(l, vt, {});
349
- }, Be = Q(Ao, {
348
+ return Re(l, vt, {});
349
+ }, Be = Q(Bo, {
350
350
  name: "JoyMenu",
351
351
  slot: "Root",
352
352
  overridesResolver: (e, o) => o.root
@@ -361,7 +361,7 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
361
361
  // to prevent the focus outline from being cut by overflow
362
362
  "--ListItem-stickyBackground": (a == null ? void 0 : a.backgroundColor) || (a == null ? void 0 : a.background) || e.vars.palette.background.popup,
363
363
  "--ListItem-stickyTop": "calc(var(--List-padding, var(--ListDivider-gap)) * -1)"
364
- }, Bo, {
364
+ }, Ho, {
365
365
  borderRadius: `var(--List-radius, ${e.vars.radius.sm})`,
366
366
  boxShadow: e.shadow.md,
367
367
  overflow: "auto",
@@ -372,7 +372,7 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
372
372
  }, o.variant === "solid" && o.color && o.invertedColors && go(o.color)(e), o.variant === "soft" && o.color && o.invertedColors && xo(o.color)(e), (i = e.variants[o.variant]) == null ? void 0 : i[o.color])];
373
373
  }), Qe = /* @__PURE__ */ I.forwardRef(function(o, n) {
374
374
  var i;
375
- const a = ge({
375
+ const a = xe({
376
376
  props: o,
377
377
  name: "JoyMenu"
378
378
  }), {
@@ -390,7 +390,7 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
390
390
  size: R = "md",
391
391
  slots: S = {},
392
392
  slotProps: E = {}
393
- } = a, y = xe(a, yt), {
393
+ } = a, y = Ce(a, yt), {
394
394
  contextValue: O,
395
395
  getListboxProps: h,
396
396
  dispatch: $,
@@ -426,7 +426,7 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
426
426
  options: {
427
427
  offset: [0, 4]
428
428
  }
429
- }, ...g || []], [g]), B = Yo({
429
+ }, ...g || []], [g]), B = Qo({
430
430
  elementType: Be,
431
431
  getSlotProps: h,
432
432
  externalForwardedProps: U,
@@ -442,19 +442,19 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
442
442
  className: A.root
443
443
  });
444
444
  return /* @__PURE__ */ r(Be, T({}, B, !((i = a.slots) != null && i.root) && {
445
- as: Qo,
445
+ as: Zo,
446
446
  slots: {
447
447
  root: u || "ul"
448
448
  }
449
449
  }, {
450
450
  children: /* @__PURE__ */ r(ut, {
451
451
  value: O,
452
- children: /* @__PURE__ */ r(Ho, {
452
+ children: /* @__PURE__ */ r(Uo, {
453
453
  variant: x ? void 0 : C,
454
454
  color: s,
455
- children: /* @__PURE__ */ r(Uo.Provider, {
455
+ children: /* @__PURE__ */ r(jo.Provider, {
456
456
  value: "menu",
457
- children: /* @__PURE__ */ r(jo, {
457
+ children: /* @__PURE__ */ r(Ko, {
458
458
  nested: !0,
459
459
  children: c
460
460
  })
@@ -472,7 +472,7 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
472
472
  * A ref with imperative actions.
473
473
  * It allows to select the first or last menu item.
474
474
  */
475
- actions: Zo,
475
+ actions: et,
476
476
  /**
477
477
  * @ignore
478
478
  */
@@ -571,9 +571,9 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
571
571
  variant: t.oneOfType([t.oneOf(["outlined", "plain", "soft", "solid"]), t.string])
572
572
  });
573
573
  function gt(e) {
574
- return ye("MuiMenuItem", e);
574
+ return be("MuiMenuItem", e);
575
575
  }
576
- be("MuiMenuItem", ["root", "focusVisible", "disabled", "selected", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
576
+ ge("MuiMenuItem", ["root", "focusVisible", "disabled", "selected", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
577
577
  const xt = ["children", "disabled", "component", "selected", "color", "orientation", "variant", "slots", "slotProps", "id"], Ct = (e) => {
578
578
  const {
579
579
  focusVisible: o,
@@ -584,16 +584,16 @@ const xt = ["children", "disabled", "component", "selected", "color", "orientati
584
584
  } = e, c = {
585
585
  root: ["root", o && "focusVisible", n && "disabled", i && "selected", a && `color${G(a)}`, l && `variant${G(l)}`]
586
586
  };
587
- return Ce(c, gt, {});
588
- }, Rt = Q(Ko, {
587
+ return Re(c, gt, {});
588
+ }, Rt = Q(Wo, {
589
589
  name: "JoyMenuItem",
590
590
  slot: "Root",
591
591
  overridesResolver: (e, o) => o.root
592
592
  })({}), Pt = /* @__PURE__ */ I.memo(/* @__PURE__ */ I.forwardRef(function(o, n) {
593
- const i = ge({
593
+ const i = xe({
594
594
  props: o,
595
595
  name: "JoyMenuItem"
596
- }), a = I.useContext(Wo), {
596
+ }), a = I.useContext(Go), {
597
597
  children: l,
598
598
  disabled: c = !1,
599
599
  component: s = "li",
@@ -604,10 +604,10 @@ const xt = ["children", "disabled", "component", "selected", "color", "orientati
604
604
  slots: x = {},
605
605
  slotProps: f = {},
606
606
  id: g
607
- } = i, C = xe(i, xt), {
607
+ } = i, C = Ce(i, xt), {
608
608
  variant: R = b,
609
609
  color: S = d
610
- } = Go(o.variant, o.color), {
610
+ } = Jo(o.variant, o.color), {
611
611
  getRootProps: E,
612
612
  disabled: y,
613
613
  focusVisible: O
@@ -636,7 +636,7 @@ const xt = ["children", "disabled", "component", "selected", "color", "orientati
636
636
  className: $.root,
637
637
  ownerState: h
638
638
  });
639
- return /* @__PURE__ */ r(Jo.Provider, {
639
+ return /* @__PURE__ */ r(qo.Provider, {
640
640
  value: p,
641
641
  children: /* @__PURE__ */ r(D, T({}, N, {
642
642
  children: l
@@ -667,9 +667,9 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
667
667
  id: t.string
668
668
  });
669
669
  function St(e) {
670
- return ye("MuiModalClose", e);
670
+ return be("MuiModalClose", e);
671
671
  }
672
- be("MuiModalClose", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
672
+ ge("MuiModalClose", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
673
673
  var He;
674
674
  const It = ["component", "color", "variant", "size", "onClick", "slots", "slotProps"], Mt = (e) => {
675
675
  const {
@@ -681,7 +681,7 @@ const It = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
681
681
  } = e, c = {
682
682
  root: ["root", i && "disabled", a && "focusVisible", o && `variant${G(o)}`, n && `color${G(n)}`, l && `size${G(l)}`]
683
683
  };
684
- return Ce(c, St, {});
684
+ return Re(c, St, {});
685
685
  }, zt = Q(Co, {
686
686
  name: "JoyModalClose",
687
687
  slot: "Root",
@@ -714,7 +714,7 @@ const It = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
714
714
  solid: "solid"
715
715
  }, Ze = /* @__PURE__ */ I.forwardRef(function(o, n) {
716
716
  var i, a, l, c, s, u;
717
- const d = ge({
717
+ const d = xe({
718
718
  props: o,
719
719
  name: "JoyModalClose"
720
720
  }), {
@@ -725,7 +725,7 @@ const It = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
725
725
  onClick: g,
726
726
  slots: C = {},
727
727
  slotProps: R = {}
728
- } = d, S = xe(d, It), E = I.useContext(et), y = I.useContext(ot), O = (i = (a = o.variant) != null ? a : Et[y == null ? void 0 : y.variant]) != null ? i : x, h = (l = (c = o.color) != null ? c : y == null ? void 0 : y.color) != null ? l : b, $ = I.useContext(tt), v = (s = (u = o.size) != null ? u : $) != null ? s : f, {
728
+ } = d, S = Ce(d, It), E = I.useContext(ot), y = I.useContext(tt), O = (i = (a = o.variant) != null ? a : Et[y == null ? void 0 : y.variant]) != null ? i : x, h = (l = (c = o.color) != null ? c : y == null ? void 0 : y.color) != null ? l : b, $ = I.useContext(rt), v = (s = (u = o.size) != null ? u : $) != null ? s : f, {
729
729
  focusVisible: D,
730
730
  getRootProps: N
731
731
  } = We(T({}, d, {
@@ -753,7 +753,7 @@ const It = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
753
753
  ownerState: A
754
754
  });
755
755
  return /* @__PURE__ */ r(j, T({}, B, {
756
- children: He || (He = /* @__PURE__ */ r(rt, {}))
756
+ children: He || (He = /* @__PURE__ */ r(nt, {}))
757
757
  }));
758
758
  });
759
759
  process.env.NODE_ENV !== "production" && (Ze.propTypes = {
@@ -809,9 +809,9 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
809
809
  variant: t.oneOfType([t.oneOf(["outlined", "plain", "soft", "solid"]), t.string])
810
810
  });
811
811
  function Tt(e) {
812
- return ye("MuiRadio", e);
812
+ return be("MuiRadio", e);
813
813
  }
814
- const he = be("MuiRadio", ["root", "radio", "icon", "action", "input", "label", "checked", "disabled", "focusVisible", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantOutlined", "variantSoft", "variantSolid"]), $t = ["checked", "checkedIcon", "defaultChecked", "disabled", "disableIcon", "overlay", "label", "id", "name", "onBlur", "onChange", "onFocus", "onFocusVisible", "readOnly", "required", "color", "variant", "size", "uncheckedIcon", "value", "component", "slots", "slotProps"], Dt = (e) => {
814
+ const he = ge("MuiRadio", ["root", "radio", "icon", "action", "input", "label", "checked", "disabled", "focusVisible", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantOutlined", "variantSoft", "variantSolid"]), $t = ["checked", "checkedIcon", "defaultChecked", "disabled", "disableIcon", "overlay", "label", "id", "name", "onBlur", "onChange", "onFocus", "onFocusVisible", "readOnly", "required", "color", "variant", "size", "uncheckedIcon", "value", "component", "slots", "slotProps"], Dt = (e) => {
815
815
  const {
816
816
  checked: o,
817
817
  disabled: n,
@@ -835,7 +835,7 @@ const he = be("MuiRadio", ["root", "radio", "icon", "action", "input", "label",
835
835
  input: ["input"],
836
836
  label: ["label"]
837
837
  };
838
- return Ce(u, Tt, {});
838
+ return Re(u, Tt, {});
839
839
  };
840
840
  function Ot(e, o) {
841
841
  return typeof o == "object" && o !== null ? e === o : String(e) === String(o);
@@ -1005,7 +1005,7 @@ const kt = Q("span", {
1005
1005
  transform: e.checked ? "scale(1)" : "scale(0)"
1006
1006
  })), eo = /* @__PURE__ */ I.forwardRef(function(o, n) {
1007
1007
  var i, a, l, c, s, u, d;
1008
- const p = ge({
1008
+ const p = xe({
1009
1009
  props: o,
1010
1010
  name: "JoyRadio"
1011
1011
  }), {
@@ -1032,7 +1032,7 @@ const kt = Q("span", {
1032
1032
  component: k,
1033
1033
  slots: L = {},
1034
1034
  slotProps: P = {}
1035
- } = p, w = xe(p, $t), m = I.useContext(De);
1035
+ } = p, w = Ce(p, $t), m = I.useContext(Oe);
1036
1036
  if (process.env.NODE_ENV !== "production") {
1037
1037
  const Te = m == null ? void 0 : m.registerEffect;
1038
1038
  I.useEffect(() => {
@@ -1040,7 +1040,7 @@ const kt = Q("span", {
1040
1040
  return Te();
1041
1041
  }, [Te]);
1042
1042
  }
1043
- const M = ve(E ?? (m == null ? void 0 : m.htmlFor)), z = I.useContext(Je), Z = m != null && m.error ? "danger" : (i = (a = (l = o.color) != null ? l : m == null ? void 0 : m.color) != null ? a : A) != null ? i : "primary", ue = m != null && m.error ? "danger" : (c = (s = (u = o.color) != null ? u : m == null ? void 0 : m.color) != null ? s : A) != null ? c : "neutral", pe = o.size || (m == null ? void 0 : m.size) || (z == null ? void 0 : z.size) || j, Pe = o.name || (z == null ? void 0 : z.name) || y, ne = o.disableIcon || (z == null ? void 0 : z.disableIcon) || C, Se = o.overlay || (z == null ? void 0 : z.overlay) || R, V = {
1043
+ const M = ye(E ?? (m == null ? void 0 : m.htmlFor)), z = I.useContext(Je), Z = m != null && m.error ? "danger" : (i = (a = (l = o.color) != null ? l : m == null ? void 0 : m.color) != null ? a : A) != null ? i : "primary", ue = m != null && m.error ? "danger" : (c = (s = (u = o.color) != null ? u : m == null ? void 0 : m.color) != null ? s : A) != null ? c : "neutral", pe = o.size || (m == null ? void 0 : m.size) || (z == null ? void 0 : z.size) || j, Pe = o.name || (z == null ? void 0 : z.name) || y, ne = o.disableIcon || (z == null ? void 0 : z.disableIcon) || C, Se = o.overlay || (z == null ? void 0 : z.overlay) || R, V = {
1044
1044
  checked: typeof b > "u" && K != null ? Ot(z == null ? void 0 : z.value, K) : b,
1045
1045
  defaultChecked: f,
1046
1046
  disabled: o.disabled || (m == null ? void 0 : m.disabled) || g,
@@ -1053,7 +1053,7 @@ const kt = Q("span", {
1053
1053
  checked: X,
1054
1054
  disabled: me,
1055
1055
  focusVisible: se
1056
- } = Do(V), so = (d = o.color) != null ? d : X ? Z : ue, le = T({}, p, {
1056
+ } = Oo(V), so = (d = o.color) != null ? d : X ? Z : ue, le = T({}, p, {
1057
1057
  checked: X,
1058
1058
  disabled: me,
1059
1059
  focusVisible: se,
@@ -1266,9 +1266,9 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
1266
1266
  variant: t.oneOfType([t.oneOf(["outlined", "plain", "soft", "solid"]), t.string])
1267
1267
  });
1268
1268
  function _t(e) {
1269
- return ye("MuiRadioGroup", e);
1269
+ return be("MuiRadioGroup", e);
1270
1270
  }
1271
- be("MuiRadioGroup", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]);
1271
+ ge("MuiRadioGroup", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]);
1272
1272
  const At = ["className", "component", "children", "name", "defaultValue", "disableIcon", "overlay", "value", "onChange", "color", "variant", "size", "orientation", "role", "slots", "slotProps"], Bt = (e) => {
1273
1273
  const {
1274
1274
  orientation: o,
@@ -1278,7 +1278,7 @@ const At = ["className", "component", "children", "name", "defaultValue", "disab
1278
1278
  } = e, l = {
1279
1279
  root: ["root", o, i && `variant${G(i)}`, a && `color${G(a)}`, n && `size${G(n)}`]
1280
1280
  };
1281
- return Ce(l, _t, {});
1281
+ return Re(l, _t, {});
1282
1282
  }, Ht = Q("div", {
1283
1283
  name: "JoyRadioGroup",
1284
1284
  slot: "Root",
@@ -1301,7 +1301,7 @@ const At = ["className", "component", "children", "name", "defaultValue", "disab
1301
1301
  borderRadius: o.vars.radius.sm
1302
1302
  }, (n = o.variants[e.variant]) == null ? void 0 : n[e.color]);
1303
1303
  }), oo = /* @__PURE__ */ I.forwardRef(function(o, n) {
1304
- const i = ge({
1304
+ const i = xe({
1305
1305
  props: o,
1306
1306
  name: "JoyRadioGroup"
1307
1307
  }), {
@@ -1321,17 +1321,17 @@ const At = ["className", "component", "children", "name", "defaultValue", "disab
1321
1321
  role: S = "radiogroup",
1322
1322
  slots: E = {},
1323
1323
  slotProps: y = {}
1324
- } = i, O = xe(i, At), [h, $] = nt({
1324
+ } = i, O = Ce(i, At), [h, $] = st({
1325
1325
  controlled: b,
1326
1326
  default: u,
1327
1327
  name: "RadioGroup"
1328
- }), v = I.useContext(De), D = o.size || (v == null ? void 0 : v.size) || C, N = T({
1328
+ }), v = I.useContext(Oe), D = o.size || (v == null ? void 0 : v.size) || C, N = T({
1329
1329
  orientation: R,
1330
1330
  size: D,
1331
1331
  variant: g,
1332
1332
  color: f,
1333
1333
  role: S
1334
- }, i), A = Bt(N), U = ve(s);
1334
+ }, i), A = Bt(N), U = ye(s);
1335
1335
  if (process.env.NODE_ENV !== "production") {
1336
1336
  const k = v == null ? void 0 : v.registerEffect;
1337
1337
  I.useEffect(() => {
@@ -1373,7 +1373,7 @@ const At = ["className", "component", "children", "name", "defaultValue", "disab
1373
1373
  return /* @__PURE__ */ r(Je.Provider, {
1374
1374
  value: j,
1375
1375
  children: /* @__PURE__ */ r(B, T({}, K, {
1376
- children: /* @__PURE__ */ r(De.Provider, {
1376
+ children: /* @__PURE__ */ r(Oe.Provider, {
1377
1377
  value: void 0,
1378
1378
  children: I.Children.map(c, (k, L) => /* @__PURE__ */ I.isValidElement(k) ? /* @__PURE__ */ I.cloneElement(k, T({}, L === 0 && {
1379
1379
  "data-first-child": ""
@@ -1479,7 +1479,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
1479
1479
  });
1480
1480
  const Ut = (e, o) => {
1481
1481
  const [n, i] = H(null), [a, l] = H(!0), [c, s] = H(null), [u, d] = H(!1);
1482
- return Re(() => {
1482
+ return ve(() => {
1483
1483
  o && (async () => {
1484
1484
  try {
1485
1485
  l(!0);
@@ -1495,7 +1495,7 @@ const Ut = (e, o) => {
1495
1495
  }, jt = (e, o, n = null, i = "", a = "LATEST", l = 20, c, s = !1) => {
1496
1496
  const [u, d] = H([]), [p, b] = H(!0), [x, f] = H(!1), [g, C] = H(null), [R, S] = H(a), [E, y] = H(
1497
1497
  null
1498
- ), [O, h] = H(!1), $ = Ae(
1498
+ ), [O, h] = H(!1), $ = _e(
1499
1499
  async (k, L, P = !1) => {
1500
1500
  var w, m;
1501
1501
  try {
@@ -1520,7 +1520,7 @@ const Ut = (e, o) => {
1520
1520
  },
1521
1521
  [e, o, l, s]
1522
1522
  );
1523
- Re(() => {
1523
+ ve(() => {
1524
1524
  o && $(R);
1525
1525
  }, [o, R, $]);
1526
1526
  const v = (k) => {
@@ -1529,7 +1529,7 @@ const Ut = (e, o) => {
1529
1529
  D.current = p;
1530
1530
  const N = Ie(E);
1531
1531
  N.current = E;
1532
- const A = Ae(() => {
1532
+ const A = _e(() => {
1533
1533
  N.current && !D.current && $(R, N.current, !0);
1534
1534
  }, [$, R]);
1535
1535
  return {
@@ -1761,9 +1761,9 @@ const Ut = (e, o) => {
1761
1761
  }), "ThumbUp"), tr = {
1762
1762
  LIKE: /* @__PURE__ */ r(or, { fontSize: "small" }),
1763
1763
  DISLIKE: /* @__PURE__ */ r(er, { fontSize: "small" }),
1764
- LOVE: /* @__PURE__ */ r(Oo, { fontSize: "small" }),
1764
+ LOVE: /* @__PURE__ */ r(ko, { fontSize: "small" }),
1765
1765
  LAUGH: /* @__PURE__ */ r(Qt, { fontSize: "small" }),
1766
- CARE: /* @__PURE__ */ r(ko, { fontSize: "small" }),
1766
+ CARE: /* @__PURE__ */ r(wo, { fontSize: "small" }),
1767
1767
  WOW: /* @__PURE__ */ r(Wt, { fontSize: "small" }),
1768
1768
  SAD: /* @__PURE__ */ r(Zt, { fontSize: "small" }),
1769
1769
  ANGRY: /* @__PURE__ */ r(Jt, { fontSize: "small" })
@@ -1837,7 +1837,7 @@ const Ut = (e, o) => {
1837
1837
  );
1838
1838
  }, ro = (e, o) => {
1839
1839
  const [n, i] = H(null);
1840
- return Re(() => {
1840
+ return ve(() => {
1841
1841
  (async () => {
1842
1842
  if (o)
1843
1843
  try {
@@ -2347,7 +2347,7 @@ const Ut = (e, o) => {
2347
2347
  console.error("Failed to load replies:", V);
2348
2348
  }
2349
2349
  };
2350
- Re(() => {
2350
+ ve(() => {
2351
2351
  U && N.length === 0 && z();
2352
2352
  }, [U]);
2353
2353
  const Z = async (V) => {
@@ -2363,7 +2363,7 @@ const Ut = (e, o) => {
2363
2363
  return /* @__PURE__ */ _(F, { sx: { mb: h.md, ml: f > 0 ? h.xl : 0 }, children: [
2364
2364
  /* @__PURE__ */ _(F, { sx: { display: "flex", gap: h.sm }, children: [
2365
2365
  /* @__PURE__ */ r(
2366
- st,
2366
+ lt,
2367
2367
  {
2368
2368
  src: (Pe = e.userModel) == null ? void 0 : Pe.avatar,
2369
2369
  alt: ((ne = e.userModel) == null ? void 0 : ne.name) || e.anonymousNickname || "User",
@@ -2558,7 +2558,7 @@ const Ut = (e, o) => {
2558
2558
  showModeratedPosts: y = !1
2559
2559
  }) => {
2560
2560
  const { t: O } = ae(), { shadowRootElement: h } = Ve(Ne), $ = ie(), v = te(), D = re(), N = Ie(null), A = Ie(null);
2561
- Re(() => {
2561
+ ve(() => {
2562
2562
  if (!E || !A.current) return;
2563
2563
  const P = new IntersectionObserver(
2564
2564
  (w) => {
@@ -2636,7 +2636,7 @@ const Ut = (e, o) => {
2636
2636
  isSubmitting: S
2637
2637
  }
2638
2638
  ),
2639
- /* @__PURE__ */ r(lt, { sx: { my: D.lg } }),
2639
+ /* @__PURE__ */ r(at, { sx: { my: D.lg } }),
2640
2640
  /* @__PURE__ */ _(
2641
2641
  F,
2642
2642
  {
@@ -2649,7 +2649,7 @@ const Ut = (e, o) => {
2649
2649
  children: [
2650
2650
  /* @__PURE__ */ r(W, { level: "title-md", children: O("discussion.comments", "Comments") }),
2651
2651
  /* @__PURE__ */ r(
2652
- qo,
2652
+ Xo,
2653
2653
  {
2654
2654
  value: u,
2655
2655
  onChange: (P, w) => w && d(w),
@@ -2667,13 +2667,13 @@ const Ut = (e, o) => {
2667
2667
  }
2668
2668
  },
2669
2669
  slotProps: k,
2670
- children: K.map((P) => /* @__PURE__ */ r(Xo, { value: P.value, sx: L, children: P.label }, P.value))
2670
+ children: K.map((P) => /* @__PURE__ */ r(Yo, { value: P.value, sx: L, children: P.label }, P.value))
2671
2671
  }
2672
2672
  )
2673
2673
  ]
2674
2674
  }
2675
2675
  ),
2676
- R && o.length === 0 ? /* @__PURE__ */ r(F, { sx: { py: D.xl }, children: /* @__PURE__ */ r(Oe, { my: 4 }) }) : o.length === 0 ? /* @__PURE__ */ r(F, { sx: { textAlign: "center", py: D.xl }, children: /* @__PURE__ */ r(W, { level: "body-md", sx: { color: v.textSecondary }, children: O(
2676
+ R && o.length === 0 ? /* @__PURE__ */ r(F, { sx: { py: D.xl }, children: /* @__PURE__ */ r($e, { my: 4 }) }) : o.length === 0 ? /* @__PURE__ */ r(F, { sx: { textAlign: "center", py: D.xl }, children: /* @__PURE__ */ r(W, { level: "body-md", sx: { color: v.textSecondary }, children: O(
2677
2677
  "discussion.noPosts",
2678
2678
  "No comments yet. Be the first to comment!"
2679
2679
  ) }) }) : /* @__PURE__ */ _(Me, { children: [
@@ -2699,7 +2699,7 @@ const Ut = (e, o) => {
2699
2699
  )) }),
2700
2700
  E && /* @__PURE__ */ r(F, { ref: A, sx: { height: 1 } })
2701
2701
  ] }),
2702
- E && R && o.length > 0 && /* @__PURE__ */ r(F, { sx: { py: D.md }, children: /* @__PURE__ */ r(Oe, { my: 2 }) }),
2702
+ E && R && o.length > 0 && /* @__PURE__ */ r(F, { sx: { py: D.md }, children: /* @__PURE__ */ r($e, { my: 2 }) }),
2703
2703
  !E && C && /* @__PURE__ */ r(F, { sx: { display: "flex", justifyContent: "center", mt: D.lg }, children: /* @__PURE__ */ r(
2704
2704
  oe,
2705
2705
  {
@@ -2782,7 +2782,7 @@ const Ut = (e, o) => {
2782
2782
  b
2783
2783
  );
2784
2784
  if (R || !g && !E && h)
2785
- return /* @__PURE__ */ r(Oe, { my: 20 });
2785
+ return /* @__PURE__ */ r($e, { my: 20 });
2786
2786
  if (S)
2787
2787
  return /* @__PURE__ */ r("div", { style: { padding: "20px", textAlign: "center" }, children: /* @__PURE__ */ r("p", { children: "Failed to load discussion. Please try again later." }) });
2788
2788
  const k = g || {
@@ -2836,7 +2836,7 @@ const Ut = (e, o) => {
2836
2836
  n(!1);
2837
2837
  };
2838
2838
  }, []);
2839
- const p = e.themeOptions, b = /* @__PURE__ */ r(F, { ref: c, sx: { height: "100%", display: "block" } }), x = o && i && u.current && d.current ? at(
2839
+ const p = e.themeOptions, b = /* @__PURE__ */ r(F, { ref: c, sx: { height: "100%", display: "block" } }), x = o && i && u.current && d.current ? Do(
2840
2840
  /* @__PURE__ */ r(zo, { value: d.current, children: /* @__PURE__ */ r(Eo, { containerRef: c, children: /* @__PURE__ */ r(
2841
2841
  To,
2842
2842
  {
@@ -1,4 +1,4 @@
1
- import { ad as a, af as d } from "./index-Btf_jw7-.js";
1
+ import { ad as a, af as d } from "./PrizeCard-DF3QxwQJ.js";
2
2
  import * as t from "react";
3
3
  function m(e) {
4
4
  return a(e).defaultView || window;
@@ -1,6 +1,6 @@
1
- import { S as L, V as O, _ as C, ag as T, z as j } from "./index-Btf_jw7-.js";
1
+ import { S as L, V as O, _ as C, ag as T, z as j } from "./PrizeCard-DF3QxwQJ.js";
2
2
  import * as u from "react";
3
- import { F as K } from "./CheckCircle-CU2itira.js";
3
+ import { F as K } from "./CheckCircle-CV9iMpkZ.js";
4
4
  const U = /* @__PURE__ */ u.createContext(void 0);
5
5
  process.env.NODE_ENV !== "production" && (U.displayName = "FormControlContext");
6
6
  function $() {