fansunited-frontend-components 0.0.39 → 0.0.40

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 (48) hide show
  1. package/ChanceGame.js +104 -102
  2. package/ClassicQuizPlay.js +45 -42
  3. package/CollectLead.js +25 -24
  4. package/Discussion.js +376 -378
  5. package/EitherOrPlay.d.ts +4 -0
  6. package/EitherOrPlay.d.ts.map +1 -0
  7. package/EitherOrPlay.js +2533 -0
  8. package/EventGamePlay.js +59 -54
  9. package/MatchQuizPlay.js +63 -57
  10. package/PersonalityQuizPlay.js +7935 -7201
  11. package/PickThePair.js +153 -151
  12. package/PollVote.js +108 -104
  13. package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
  14. package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
  15. package/chunks/Avatar-CQCrd1m-.js +352 -0
  16. package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
  17. package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
  18. package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
  19. package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
  20. package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
  21. package/chunks/Notification-BTtUhfZQ.js +615 -0
  22. package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
  23. package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
  24. package/chunks/Person-D0Im9_zE.js +522 -0
  25. package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
  26. package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
  27. package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
  28. package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
  29. package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
  30. package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
  31. package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
  32. package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
  33. package/chunks/chevron-right-DGEksBI7.js +330 -0
  34. package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
  35. package/chunks/index-2s5UkG1y.js +1607 -0
  36. package/chunks/useImageVariant-pnFelF9A.js +535 -0
  37. package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
  38. package/components.d.ts +2 -1
  39. package/components.d.ts.map +1 -1
  40. package/index.d.ts +1 -0
  41. package/index.d.ts.map +1 -1
  42. package/index.js +4 -2
  43. package/package.json +1 -1
  44. package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
  45. package/chunks/Notification-Bwcoljir.js +0 -961
  46. package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
  47. package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
  48. package/chunks/useImageVariant-Do8kOVs2.js +0 -537
@@ -1,4 +1,4 @@
1
- import { a9 as ae, P as t, j as se, V as _, X as me, o as j, U as Z, Z as be, _ as h, m as U, n as K, s as w, O as ve, Q as he, R as ye, p as q, k as J, q as H, K as ie, aa as le, r as A, t as Y, ab as Ce, ac as xe, ad as ee, x as Ee, B as Te, ae as Re } from "./ConstantsProvider-BPJJz9fq.js";
1
+ import { ai as ae, P as t, I as se, M as w, N as me, J as V, L as Z, Q as be, _ as h, m as U, l as K, s as _, r as ve, o as he, p as ye, q, t as J, v as B, w as ie, aj as le, x as A, y as Y, ak as Ce, al as xe, ad as ee, k as Ee, B as Te, am as Re } from "./PrizeCard-gMp7I66d.js";
2
2
  import * as l from "react";
3
3
  import { jsxs as de, jsx as k } from "react/jsx-runtime";
4
4
  function Me(o) {
@@ -60,7 +60,7 @@ function Ie(o) {
60
60
  function ze() {
61
61
  return !0;
62
62
  }
63
- function L(o) {
63
+ function H(o) {
64
64
  const {
65
65
  children: e,
66
66
  disableAutoFocus: r = !1,
@@ -75,7 +75,7 @@ function L(o) {
75
75
  }, [r, c]), l.useEffect(() => {
76
76
  if (!c || !p.current)
77
77
  return;
78
- const d = _(p.current);
78
+ const d = w(p.current);
79
79
  return p.current.contains(d.activeElement) || (p.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
80
80
  `)), p.current.setAttribute("tabIndex", "-1")), x.current && p.current.focus()), () => {
81
81
  s || (v.current && v.current.focus && (u.current = !0, v.current.focus()), v.current = null);
@@ -83,7 +83,7 @@ function L(o) {
83
83
  }, [c]), l.useEffect(() => {
84
84
  if (!c || !p.current)
85
85
  return;
86
- const d = _(p.current), f = (T) => {
86
+ const d = w(p.current), f = (T) => {
87
87
  I.current = T, !(n || !i() || T.key !== "Tab") && d.activeElement === p.current && T.shiftKey && (u.current = !0, g.current && g.current.focus());
88
88
  }, C = () => {
89
89
  const T = p.current;
@@ -141,7 +141,7 @@ function L(o) {
141
141
  })]
142
142
  });
143
143
  }
144
- process.env.NODE_ENV !== "production" && (L.propTypes = {
144
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
145
145
  // ┌────────────────────────────── Warning ──────────────────────────────┐
146
146
  // │ These PropTypes are generated from the TypeScript type definitions. │
147
147
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -195,16 +195,16 @@ process.env.NODE_ENV !== "production" && (L.propTypes = {
195
195
  */
196
196
  open: t.bool.isRequired
197
197
  });
198
- process.env.NODE_ENV !== "production" && (L.propTypes = me(L.propTypes));
198
+ process.env.NODE_ENV !== "production" && (H.propTypes = me(H.propTypes));
199
199
  function Fe(o) {
200
- const e = _(o);
201
- return e.body === o ? j(o).innerWidth > e.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
200
+ const e = w(o);
201
+ return e.body === o ? V(o).innerWidth > e.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
202
202
  }
203
- function B(o, e) {
203
+ function L(o, e) {
204
204
  e ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
205
205
  }
206
206
  function te(o) {
207
- return parseInt(j(o).getComputedStyle(o).paddingRight, 10) || 0;
207
+ return parseInt(V(o).getComputedStyle(o).paddingRight, 10) || 0;
208
208
  }
209
209
  function We(o) {
210
210
  const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, n = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
@@ -214,10 +214,10 @@ function ne(o, e, r, n, s) {
214
214
  const a = [e, r, ...n];
215
215
  [].forEach.call(o.children, (i) => {
216
216
  const c = a.indexOf(i) === -1, u = !We(i);
217
- c && u && B(i, s);
217
+ c && u && L(i, s);
218
218
  });
219
219
  }
220
- function V(o, e) {
220
+ function j(o, e) {
221
221
  let r = -1;
222
222
  return o.some((n, s) => e(n) ? (r = s, !0) : !1), r;
223
223
  }
@@ -225,13 +225,13 @@ function Se(o, e) {
225
225
  const r = [], n = o.container;
226
226
  if (!e.disableScrollLock) {
227
227
  if (Fe(n)) {
228
- const i = Oe(_(n));
228
+ const i = Oe(w(n));
229
229
  r.push({
230
230
  value: n.style.paddingRight,
231
231
  property: "padding-right",
232
232
  el: n
233
233
  }), n.style.paddingRight = `${te(n) + i}px`;
234
- const c = _(n).querySelectorAll(".mui-fixed");
234
+ const c = w(n).querySelectorAll(".mui-fixed");
235
235
  [].forEach.call(c, (u) => {
236
236
  r.push({
237
237
  value: u.style.paddingRight,
@@ -242,9 +242,9 @@ function Se(o, e) {
242
242
  }
243
243
  let a;
244
244
  if (n.parentNode instanceof DocumentFragment)
245
- a = _(n).body;
245
+ a = w(n).body;
246
246
  else {
247
- const i = n.parentElement, c = j(n);
247
+ const i = n.parentElement, c = V(n);
248
248
  a = (i == null ? void 0 : i.nodeName) === "HTML" && c.getComputedStyle(i).overflowY === "scroll" ? i : n;
249
249
  }
250
250
  r.push({
@@ -285,10 +285,10 @@ class Ae {
285
285
  let n = this.modals.indexOf(e);
286
286
  if (n !== -1)
287
287
  return n;
288
- n = this.modals.length, this.modals.push(e), e.modalRef && B(e.modalRef, !1);
288
+ n = this.modals.length, this.modals.push(e), e.modalRef && L(e.modalRef, !1);
289
289
  const s = $e(r);
290
290
  ne(r, e.mount, e.modalRef, s, !0);
291
- const a = V(this.containers, (i) => i.container === r);
291
+ const a = j(this.containers, (i) => i.container === r);
292
292
  return a !== -1 ? (this.containers[a].modals.push(e), n) : (this.containers.push({
293
293
  modals: [e],
294
294
  container: r,
@@ -297,19 +297,19 @@ class Ae {
297
297
  }), n);
298
298
  }
299
299
  mount(e, r) {
300
- const n = V(this.containers, (a) => a.modals.indexOf(e) !== -1), s = this.containers[n];
300
+ const n = j(this.containers, (a) => a.modals.indexOf(e) !== -1), s = this.containers[n];
301
301
  s.restore || (s.restore = Se(s, r));
302
302
  }
303
303
  remove(e, r = !0) {
304
304
  const n = this.modals.indexOf(e);
305
305
  if (n === -1)
306
306
  return n;
307
- const s = V(this.containers, (i) => i.modals.indexOf(e) !== -1), a = this.containers[s];
307
+ const s = j(this.containers, (i) => i.modals.indexOf(e) !== -1), a = this.containers[s];
308
308
  if (a.modals.splice(a.modals.indexOf(e), 1), this.modals.splice(n, 1), a.modals.length === 0)
309
- a.restore && a.restore(), e.modalRef && B(e.modalRef, r), ne(a.container, e.mount, e.modalRef, a.hiddenSiblings, !1), this.containers.splice(s, 1);
309
+ a.restore && a.restore(), e.modalRef && L(e.modalRef, r), ne(a.container, e.mount, e.modalRef, a.hiddenSiblings, !1), this.containers.splice(s, 1);
310
310
  else {
311
311
  const i = a.modals[a.modals.length - 1];
312
- i.modalRef && B(i.modalRef, !1);
312
+ i.modalRef && L(i.modalRef, !1);
313
313
  }
314
314
  return n;
315
315
  }
@@ -317,20 +317,20 @@ class Ae {
317
317
  return this.modals.length > 0 && this.modals[this.modals.length - 1] === e;
318
318
  }
319
319
  }
320
- function _e(o) {
320
+ function we(o) {
321
321
  return typeof o == "function" ? o() : o;
322
322
  }
323
- function we(o) {
323
+ function _e(o) {
324
324
  return o ? o.props.hasOwnProperty("in") : !1;
325
325
  }
326
- const Be = new Ae();
327
- function He(o) {
326
+ const Le = new Ae();
327
+ function Be(o) {
328
328
  const {
329
329
  container: e,
330
330
  disableEscapeKeyDown: r = !1,
331
331
  disableScrollLock: n = !1,
332
332
  // @ts-ignore internal logic - Base UI supports the manager as a prop too
333
- manager: s = Be,
333
+ manager: s = Le,
334
334
  closeAfterTransition: a = !1,
335
335
  onTransitionEnter: i,
336
336
  onTransitionExited: c,
@@ -338,18 +338,18 @@ function He(o) {
338
338
  onClose: y,
339
339
  open: g,
340
340
  rootRef: v
341
- } = o, M = l.useRef({}), x = l.useRef(null), p = l.useRef(null), D = se(p, v), [I, z] = l.useState(!g), O = we(u);
341
+ } = o, M = l.useRef({}), x = l.useRef(null), p = l.useRef(null), D = se(p, v), [I, z] = l.useState(!g), O = _e(u);
342
342
  let d = !0;
343
343
  (o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (d = !1);
344
- const f = () => _(x.current), C = () => (M.current.modalRef = p.current, M.current.mount = x.current, M.current), E = () => {
344
+ const f = () => w(x.current), C = () => (M.current.modalRef = p.current, M.current.mount = x.current, M.current), E = () => {
345
345
  s.mount(C(), {
346
346
  disableScrollLock: n
347
347
  }), p.current && (p.current.scrollTop = 0);
348
348
  }, T = Z(() => {
349
- const R = _e(e) || f().body;
349
+ const R = we(e) || f().body;
350
350
  s.add(C(), R), p.current && E();
351
351
  }), P = l.useCallback(() => s.isTopModal(C()), [s]), W = Z((R) => {
352
- x.current = R, R && (g && P() ? E() : p.current && B(p.current, d));
352
+ x.current = R, R && (g && P() ? E() : p.current && L(p.current, d));
353
353
  }), m = l.useCallback(() => {
354
354
  s.remove(C(), d);
355
355
  }, [d, s]);
@@ -405,10 +405,10 @@ function He(o) {
405
405
  hasTransition: O
406
406
  };
407
407
  }
408
- function Le(o) {
408
+ function He(o) {
409
409
  return K("MuiCard", o);
410
410
  }
411
- const lo = U("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]), Ve = ["className", "color", "component", "invertedColors", "size", "variant", "children", "orientation", "slots", "slotProps"], je = (o) => {
411
+ const lo = U("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]), je = ["className", "color", "component", "invertedColors", "size", "variant", "children", "orientation", "slots", "slotProps"], Ve = (o) => {
412
412
  const {
413
413
  size: e,
414
414
  variant: r,
@@ -417,8 +417,8 @@ const lo = U("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger",
417
417
  } = o, a = {
418
418
  root: ["root", s, r && `variant${A(r)}`, n && `color${A(n)}`, e && `size${A(e)}`]
419
419
  };
420
- return Y(a, Le, {});
421
- }, ue = w("div")(({
420
+ return Y(a, He, {});
421
+ }, ue = _("div")(({
422
422
  theme: o,
423
423
  ownerState: e
424
424
  }) => {
@@ -474,7 +474,7 @@ const lo = U("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger",
474
474
  }, a !== void 0 && {
475
475
  "--Card-radius": a
476
476
  }];
477
- }), Ue = w(ue, {
477
+ }), Ue = _(ue, {
478
478
  name: "JoyCard",
479
479
  slot: "Root",
480
480
  overridesResolver: (o, e) => e.root
@@ -493,18 +493,18 @@ const lo = U("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger",
493
493
  orientation: v = "vertical",
494
494
  slots: M = {},
495
495
  slotProps: x = {}
496
- } = n, p = J(n, Ve), D = h({}, n, {
496
+ } = n, p = J(n, je), D = h({}, n, {
497
497
  color: a,
498
498
  component: i,
499
499
  orientation: v,
500
500
  size: u,
501
501
  variant: y,
502
502
  invertedColors: c
503
- }), I = je(D), z = h({}, p, {
503
+ }), I = Ve(D), z = h({}, p, {
504
504
  component: i,
505
505
  slots: M,
506
506
  slotProps: x
507
- }), [O, d] = H("root", {
507
+ }), [O, d] = B("root", {
508
508
  ref: r,
509
509
  className: ie(I.root, s),
510
510
  elementType: Ue,
@@ -610,7 +610,7 @@ const Ye = ["children", "container", "disableAutoFocus", "disableEnforceFocus",
610
610
  root: ["root", !e && "hidden"],
611
611
  backdrop: ["backdrop"]
612
612
  }, Je, {});
613
- }, Xe = w("div")(({
613
+ }, Qe = _("div")(({
614
614
  ownerState: o,
615
615
  theme: e
616
616
  }) => h({
@@ -627,11 +627,11 @@ const Ye = ["children", "container", "disableAutoFocus", "disableEnforceFocus",
627
627
  left: 0
628
628
  }, !o.open && {
629
629
  visibility: "hidden"
630
- })), Qe = w(Xe, {
630
+ })), Xe = _(Qe, {
631
631
  name: "JoyModal",
632
632
  slot: "Root",
633
633
  overridesResolver: (o, e) => e.root
634
- })({}), Ze = w("div")(({
634
+ })({}), Ze = _("div")(({
635
635
  theme: o
636
636
  }) => ({
637
637
  zIndex: -1,
@@ -643,7 +643,7 @@ const Ye = ["children", "container", "disableAutoFocus", "disableEnforceFocus",
643
643
  backgroundColor: o.vars.palette.background.backdrop,
644
644
  WebkitTapHighlightColor: "transparent",
645
645
  backdropFilter: "blur(8px)"
646
- })), eo = w(Ze, {
646
+ })), eo = _(Ze, {
647
647
  name: "JoyModal",
648
648
  slot: "Backdrop",
649
649
  overridesResolver: (o, e) => e.backdrop
@@ -682,20 +682,20 @@ const Ye = ["children", "container", "disableAutoFocus", "disableEnforceFocus",
682
682
  rootRef: T,
683
683
  portalRef: P,
684
684
  isTopModal: W
685
- } = He(h({}, f, {
685
+ } = Be(h({}, f, {
686
686
  rootRef: r
687
687
  })), m = Ge(f), F = h({}, d, {
688
688
  component: I,
689
689
  slots: z,
690
690
  slotProps: O
691
- }), [N, $] = H("root", {
691
+ }), [N, $] = B("root", {
692
692
  ref: T,
693
693
  className: m.root,
694
- elementType: Qe,
694
+ elementType: Xe,
695
695
  externalForwardedProps: F,
696
696
  getSlotProps: C,
697
697
  ownerState: f
698
- }), [X, Q] = H("backdrop", {
698
+ }), [Q, X] = B("backdrop", {
699
699
  className: m.backdrop,
700
700
  elementType: eo,
701
701
  externalForwardedProps: F,
@@ -709,7 +709,7 @@ const Ye = ["children", "container", "disableAutoFocus", "disableEnforceFocus",
709
709
  container: a,
710
710
  disablePortal: y,
711
711
  children: /* @__PURE__ */ de(N, h({}, $, {
712
- children: [M ? null : /* @__PURE__ */ k(X, h({}, Q)), /* @__PURE__ */ k(L, {
712
+ children: [M ? null : /* @__PURE__ */ k(Q, h({}, X)), /* @__PURE__ */ k(H, {
713
713
  disableEnforceFocus: c,
714
714
  disableAutoFocus: i,
715
715
  disableRestoreFocus: g,
@@ -851,7 +851,7 @@ function re(o, e) {
851
851
  var r, n;
852
852
  return e && (r = o.breakpoints) != null && r.values[e] ? `${(n = o.breakpoints) == null ? void 0 : n.values[e]}px` : e;
853
853
  }
854
- const ro = w(ue, {
854
+ const ro = _(ue, {
855
855
  name: "JoyModalDialog",
856
856
  slot: "Root",
857
857
  overridesResolver: (o, e) => e.root
@@ -950,7 +950,7 @@ const ro = w(ue, {
950
950
  color: u,
951
951
  labelledBy: C,
952
952
  describedBy: E
953
- }), [u, g, C, E]), [P, W] = H("root", {
953
+ }), [u, g, C, E]), [P, W] = B("root", {
954
954
  ref: r,
955
955
  className: ie(d.root, s),
956
956
  elementType: ro,