fansunited-frontend-components 0.0.49 → 0.0.52

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 (67) hide show
  1. package/Betslip.d.ts +5 -0
  2. package/Betslip.d.ts.map +1 -0
  3. package/Betslip.js +5 -0
  4. package/ChanceGame.js +87 -86
  5. package/ClassicQuizPlay.js +174 -173
  6. package/CollectLead.js +33 -32
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +171 -170
  9. package/EventGamePlay.js +25 -24
  10. package/Leaderboard.js +88 -87
  11. package/MatchQuizPlay.js +28 -27
  12. package/PersonalityQuizPlay.js +21 -20
  13. package/PickThePair.js +87 -86
  14. package/PollVote.js +19 -18
  15. package/Predictor.js +4756 -4693
  16. package/README.md +523 -1
  17. package/chunks/{AlertMessage-Ds45MBHB.js → AlertMessage-CQ9WJHSb.js} +25 -24
  18. package/chunks/{ArrowRightAlt-DKADQN2o.js → ArrowRightAlt-C1U8SNu-.js} +5 -5
  19. package/chunks/{Avatar-K1EWhhkA.js → Avatar-COVJnfGS.js} +79 -78
  20. package/chunks/Button-COvmPv4P.js +2270 -0
  21. package/chunks/{ChanceGameEmbedVariant-DqFg4YKU.js → ChanceGameEmbedVariant-lfZlSATv.js} +44 -43
  22. package/chunks/{CheckCircle-CV9iMpkZ.js → CheckCircle-h7-xLUq-.js} +27 -26
  23. package/chunks/{Close-C6Cw96SJ.js → Close-BTC6xyyj.js} +1 -1
  24. package/chunks/{Close-BHp4N1-6.js → Close-DBaorsP1.js} +1 -1
  25. package/chunks/{CollectLeadForm-DnLKA8qz.js → CollectLeadForm-O7Cpe0ix.js} +128 -127
  26. package/chunks/{Divider-BvUimRFw.js → Divider-DBCeQt9x.js} +15 -14
  27. package/chunks/{Edit-CZ3ni-Ur.js → Edit-BwwxJdNv.js} +35 -34
  28. package/chunks/{EmojiEvents-DpmLq98V.js → EmojiEvents-DVPGlTU_.js} +3 -3
  29. package/chunks/{FavoriteBorder-DUK_DrY4.js → FavoriteBorder-BnhfbKy1.js} +1 -1
  30. package/chunks/{FormControl-BUItlVIg.js → FormControl-COjw1gQd.js} +38 -37
  31. package/chunks/{FormLabel-CeTNPUn7.js → FormLabel-e5_v5cjP.js} +18 -17
  32. package/chunks/{Input-MJCQcYzo.js → Input-er-Yyqtt.js} +17 -16
  33. package/chunks/{KeyboardArrowDown-SZpn2GhJ.js → KeyboardArrowDown-BeaYH92n.js} +1 -1
  34. package/chunks/{ModalDialog-Cfgv9UAA.js → ModalDialog-XkhZtgYm.js} +58 -57
  35. package/chunks/{NotFoundSkeleton-Cs6DtD9u.js → NotFoundSkeleton-C71TRYl5.js} +95 -94
  36. package/chunks/{Notification-pcKtlRms.js → Notification-CkPupg9q.js} +57 -56
  37. package/chunks/{OverlayApiErrorSkeleton-Dl3s5Oaf.js → OverlayApiErrorSkeleton-CkuDu9uV.js} +20 -19
  38. package/chunks/{OverlayLeadAfterCollection-F2TAV9wK.js → OverlayLeadAfterCollection-Dkxl4cKn.js} +28 -27
  39. package/chunks/{OverlayScoreStateSkeleton-LQ0svzeX.js → OverlayScoreStateSkeleton-RauDjIg5.js} +16 -15
  40. package/chunks/{Person-BGdniS_p.js → Person-WCt2MN5j.js} +32 -31
  41. package/chunks/{PickOneOfX-Ci4ZJf7G.js → PickOneOfX-DabfTR2W.js} +8 -7
  42. package/chunks/{Popper-DOVSI4rJ.js → Popper-OPgbZzY7.js} +127 -126
  43. package/chunks/{Portal-Cs0dgwmH.js → Portal-BQilulgu.js} +5 -5
  44. package/chunks/{PrizeCard-DF3QxwQJ.js → PrizeCard-DgHyperX.js} +5238 -6653
  45. package/chunks/{Select-BHeTdOYr.js → Select-9gmhEo71.js} +133 -132
  46. package/chunks/{Spinner-DbUB64Gj.js → Spinner-BoysVPn7.js} +12 -11
  47. package/chunks/{SplitLeadAfterCollection-DSw6X5fx.js → SplitLeadAfterCollection-C5oCDYT1.js} +15 -14
  48. package/chunks/{Stack-BpHk5eb0.js → Stack-INH9bhkC.js} +30 -29
  49. package/chunks/{StandardContentSkeleton-Bae1LLQ_.js → StandardContentSkeleton-DsAhzMfU.js} +1 -1
  50. package/chunks/{Tabs-hwJ7jsUl.js → Tabs-DaVatjCJ.js} +60 -59
  51. package/chunks/{Textarea-zOtMdgc5.js → Textarea-DeMxp3Zn.js} +48 -47
  52. package/chunks/{TimerOutlined-DWE7f0YX.js → TimerOutlined-DJh2vL3s.js} +3 -3
  53. package/chunks/{helpers-NuC1SzL3.js → helpers-Bd9FT9hj.js} +1 -1
  54. package/chunks/{index-D1K1OB4p.js → index-5MPtbA_r.js} +255 -239
  55. package/chunks/index-BjfKDjAM.js +4 -0
  56. package/chunks/main-DDb9jezz.js +1758 -0
  57. package/chunks/{main-hB01WcoP.js → main-DWw1vqVY.js} +38 -37
  58. package/chunks/{useEventCallback-CizlfWBo.js → useEventCallback-vbTEFVPa.js} +8 -7
  59. package/chunks/{useForwardedInput-RWDntqBU.js → useForwardedInput-DumYVfgj.js} +26 -25
  60. package/chunks/{useImageVariant-Cex1eIqq.js → useImageVariant-B1ObJh_B.js} +1 -1
  61. package/components.d.ts +2 -1
  62. package/components.d.ts.map +1 -1
  63. package/index.d.ts +1 -0
  64. package/index.d.ts.map +1 -1
  65. package/index.js +5 -3
  66. package/package.json +5 -1
  67. package/chunks/index-BaypiKlO.js +0 -4
@@ -1,20 +1,21 @@
1
1
  import { jsx as r, jsxs as _, Fragment as Me } from "react/jsx-runtime";
2
2
  import * as I from "react";
3
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";
4
+ import { _ as T, I as ye, N as Ae, s as be, r as ge, t as xe, P as t, J as G, v as go, f as ae, a as te, b as ie, c as ze, e as re, B as F, l as Y, g as Ve, C as Ne, n as xo, z as Co, A as Ro, D as Po, E as So, F as Io } from "./PrizeCard-DgHyperX.js";
5
+ import { S as $e } from "./Spinner-BoysVPn7.js";
6
+ import { createPortal as Mo } from "react-dom";
7
+ import { d as je, f as Ke, e as We, s as Q, t as zo, v as Eo, u as Ce, c as Re, a as ee, S as To, l as $o, B as oe, T as W, I as Do } from "./Button-COvmPv4P.js";
8
+ import { u as Oo, T as Ge } from "./Textarea-DeMxp3Zn.js";
9
+ import { F as ko, a as wo } from "./FavoriteBorder-BnhfbKy1.js";
10
+ 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-9gmhEo71.js";
11
+ import { u as Qo, P as Zo, r as et } from "./Popper-OPgbZzY7.js";
12
+ import { C as ot, b as tt, d as rt, M as qe, a as Xe } from "./ModalDialog-XkhZtgYm.js";
13
+ import { C as nt } from "./Close-BTC6xyyj.js";
14
+ import { F as Oe } from "./CheckCircle-h7-xLUq-.js";
15
+ import { u as st } from "./useEventCallback-vbTEFVPa.js";
16
+ import { N as Ye } from "./Notification-CkPupg9q.js";
17
+ import { A as lt } from "./Avatar-COVJnfGS.js";
18
+ import { D as at } from "./Divider-DBCeQt9x.js";
18
19
  const Fe = /* @__PURE__ */ I.createContext(null);
19
20
  process.env.NODE_ENV !== "production" && (Fe.displayName = "DropdownContext");
20
21
  const ke = {
@@ -369,10 +370,10 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
369
370
  zIndex: `var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`
370
371
  }, !(a != null && a.backgroundColor) && {
371
372
  backgroundColor: e.vars.palette.background.popup
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
+ }, o.variant === "solid" && o.color && o.invertedColors && zo(o.color)(e), o.variant === "soft" && o.color && o.invertedColors && Eo(o.color)(e), (i = e.variants[o.variant]) == null ? void 0 : i[o.color])];
373
374
  }), Qe = /* @__PURE__ */ I.forwardRef(function(o, n) {
374
375
  var i;
375
- const a = xe({
376
+ const a = Ce({
376
377
  props: o,
377
378
  name: "JoyMenu"
378
379
  }), {
@@ -390,7 +391,7 @@ const yt = ["actions", "children", "color", "component", "disablePortal", "keepM
390
391
  size: R = "md",
391
392
  slots: S = {},
392
393
  slotProps: E = {}
393
- } = a, y = Ce(a, yt), {
394
+ } = a, y = xe(a, yt), {
394
395
  contextValue: O,
395
396
  getListboxProps: h,
396
397
  dispatch: $,
@@ -590,7 +591,7 @@ const xt = ["children", "disabled", "component", "selected", "color", "orientati
590
591
  slot: "Root",
591
592
  overridesResolver: (e, o) => o.root
592
593
  })({}), Pt = /* @__PURE__ */ I.memo(/* @__PURE__ */ I.forwardRef(function(o, n) {
593
- const i = xe({
594
+ const i = Ce({
594
595
  props: o,
595
596
  name: "JoyMenuItem"
596
597
  }), a = I.useContext(Go), {
@@ -604,7 +605,7 @@ const xt = ["children", "disabled", "component", "selected", "color", "orientati
604
605
  slots: x = {},
605
606
  slotProps: f = {},
606
607
  id: g
607
- } = i, C = Ce(i, xt), {
608
+ } = i, C = xe(i, xt), {
608
609
  variant: R = b,
609
610
  color: S = d
610
611
  } = Jo(o.variant, o.color), {
@@ -682,7 +683,7 @@ const It = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
682
683
  root: ["root", i && "disabled", a && "focusVisible", o && `variant${G(o)}`, n && `color${G(n)}`, l && `size${G(l)}`]
683
684
  };
684
685
  return Re(c, St, {});
685
- }, zt = Q(Co, {
686
+ }, zt = Q(To, {
686
687
  name: "JoyModalClose",
687
688
  slot: "Root",
688
689
  overridesResolver: (e, o) => o.root
@@ -714,7 +715,7 @@ const It = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
714
715
  solid: "solid"
715
716
  }, Ze = /* @__PURE__ */ I.forwardRef(function(o, n) {
716
717
  var i, a, l, c, s, u;
717
- const d = xe({
718
+ const d = Ce({
718
719
  props: o,
719
720
  name: "JoyModalClose"
720
721
  }), {
@@ -725,7 +726,7 @@ const It = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
725
726
  onClick: g,
726
727
  slots: C = {},
727
728
  slotProps: R = {}
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
+ } = d, S = xe(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
730
  focusVisible: D,
730
731
  getRootProps: N
731
732
  } = We(T({}, d, {
@@ -1005,7 +1006,7 @@ const kt = Q("span", {
1005
1006
  transform: e.checked ? "scale(1)" : "scale(0)"
1006
1007
  })), eo = /* @__PURE__ */ I.forwardRef(function(o, n) {
1007
1008
  var i, a, l, c, s, u, d;
1008
- const p = xe({
1009
+ const p = Ce({
1009
1010
  props: o,
1010
1011
  name: "JoyRadio"
1011
1012
  }), {
@@ -1032,7 +1033,7 @@ const kt = Q("span", {
1032
1033
  component: k,
1033
1034
  slots: L = {},
1034
1035
  slotProps: P = {}
1035
- } = p, w = Ce(p, $t), m = I.useContext(Oe);
1036
+ } = p, w = xe(p, $t), m = I.useContext(Oe);
1036
1037
  if (process.env.NODE_ENV !== "production") {
1037
1038
  const Te = m == null ? void 0 : m.registerEffect;
1038
1039
  I.useEffect(() => {
@@ -1121,7 +1122,7 @@ const kt = Q("span", {
1121
1122
  children: /* @__PURE__ */ r(ho, T({}, vo))
1122
1123
  }))]
1123
1124
  })), S && /* @__PURE__ */ r(yo, T({}, bo, {
1124
- children: /* @__PURE__ */ r(Ro.Provider, {
1125
+ children: /* @__PURE__ */ r($o.Provider, {
1125
1126
  value: !0,
1126
1127
  children: S
1127
1128
  })
@@ -1301,7 +1302,7 @@ const At = ["className", "component", "children", "name", "defaultValue", "disab
1301
1302
  borderRadius: o.vars.radius.sm
1302
1303
  }, (n = o.variants[e.variant]) == null ? void 0 : n[e.color]);
1303
1304
  }), oo = /* @__PURE__ */ I.forwardRef(function(o, n) {
1304
- const i = xe({
1305
+ const i = Ce({
1305
1306
  props: o,
1306
1307
  name: "JoyRadioGroup"
1307
1308
  }), {
@@ -1321,7 +1322,7 @@ const At = ["className", "component", "children", "name", "defaultValue", "disab
1321
1322
  role: S = "radiogroup",
1322
1323
  slots: E = {},
1323
1324
  slotProps: y = {}
1324
- } = i, O = Ce(i, At), [h, $] = st({
1325
+ } = i, O = xe(i, At), [h, $] = st({
1325
1326
  controlled: b,
1326
1327
  default: u,
1327
1328
  name: "RadioGroup"
@@ -1351,7 +1352,7 @@ const At = ["className", "component", "children", "name", "defaultValue", "disab
1351
1352
  }
1352
1353
  }), [d, U, x, p, R, $, D, h]), [B, K] = ee("root", {
1353
1354
  ref: n,
1354
- className: Po(A.root, a),
1355
+ className: go(A.root, a),
1355
1356
  elementType: Ht,
1356
1357
  externalForwardedProps: T({}, O, {
1357
1358
  component: l,
@@ -1969,7 +1970,7 @@ const Ut = (e, o) => {
1969
1970
  };
1970
1971
  return /* @__PURE__ */ _(Me, { children: [
1971
1972
  /* @__PURE__ */ r(
1972
- So,
1973
+ Do,
1973
1974
  {
1974
1975
  size: "sm",
1975
1976
  variant: "plain",
@@ -2823,12 +2824,12 @@ const Ut = (e, o) => {
2823
2824
  `$discussion-shadow-root-${Math.random().toString(36).substring(2, 11)}`
2824
2825
  ), c = J.useRef(null), s = J.useRef(null), u = J.useRef(null), d = J.useRef(null);
2825
2826
  J.useEffect(() => {
2826
- Io(e.language || "en").finally(() => a(!0));
2827
+ xo(e.language || "en").finally(() => a(!0));
2827
2828
  }, [e.language]), J.useEffect(() => {
2828
2829
  if (c.current)
2829
2830
  return c.current.shadowRoot ? (s.current = c.current.shadowRoot, u.current = s.current.getElementById(
2830
2831
  l.current
2831
- ), u.current || (u.current = document.createElement("div"), u.current.id = l.current, u.current.style.height = "100%", s.current.appendChild(u.current))) : (s.current = c.current.attachShadow({ mode: "open" }), u.current = document.createElement("div"), u.current.id = l.current, u.current.style.height = "100%", s.current.appendChild(u.current)), d.current || (d.current = Mo({
2832
+ ), u.current || (u.current = document.createElement("div"), u.current.id = l.current, u.current.style.height = "100%", s.current.appendChild(u.current))) : (s.current = c.current.attachShadow({ mode: "open" }), u.current = document.createElement("div"), u.current.id = l.current, u.current.style.height = "100%", s.current.appendChild(u.current)), d.current || (d.current = Co({
2832
2833
  key: "discussion-css",
2833
2834
  prepend: !0,
2834
2835
  container: s.current
@@ -2836,15 +2837,15 @@ const Ut = (e, o) => {
2836
2837
  n(!1);
2837
2838
  };
2838
2839
  }, []);
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
- /* @__PURE__ */ r(zo, { value: d.current, children: /* @__PURE__ */ r(Eo, { containerRef: c, children: /* @__PURE__ */ r(
2841
- To,
2840
+ const p = e.themeOptions, b = /* @__PURE__ */ r(F, { ref: c, sx: { height: "100%", display: "block" } }), x = o && i && u.current && d.current ? Mo(
2841
+ /* @__PURE__ */ r(Ro, { value: d.current, children: /* @__PURE__ */ r(Po, { containerRef: c, children: /* @__PURE__ */ r(
2842
+ So,
2842
2843
  {
2843
2844
  customTheme: p,
2844
2845
  mode: p == null ? void 0 : p.mode,
2845
2846
  shadowRootElement: u.current,
2846
2847
  children: /* @__PURE__ */ r(
2847
- $o,
2848
+ Io,
2848
2849
  {
2849
2850
  shadowRootElement: u.current,
2850
2851
  leadPhoneCountryCode: null,
@@ -2861,7 +2862,7 @@ const Ut = (e, o) => {
2861
2862
  b,
2862
2863
  x
2863
2864
  ] });
2864
- }, Er = (e) => /* @__PURE__ */ r(ur, { ...e, children: /* @__PURE__ */ r(dr, { ...e }) });
2865
+ }, Tr = (e) => /* @__PURE__ */ r(ur, { ...e, children: /* @__PURE__ */ r(dr, { ...e }) });
2865
2866
  export {
2866
- Er as M
2867
+ Tr as M
2867
2868
  };
@@ -1,9 +1,10 @@
1
- import { ad as a, af as d } from "./PrizeCard-DF3QxwQJ.js";
1
+ import { w as d } from "./Button-COvmPv4P.js";
2
2
  import * as t from "react";
3
- function m(e) {
4
- return a(e).defaultView || window;
3
+ import { N as a } from "./PrizeCard-DgHyperX.js";
4
+ function p(e) {
5
+ return d(e).defaultView || window;
5
6
  }
6
- function p({
7
+ function w({
7
8
  controlled: e,
8
9
  default: n,
9
10
  name: o,
@@ -32,7 +33,7 @@ function p({
32
33
  }
33
34
  function g(e) {
34
35
  const n = t.useRef(e);
35
- return d(() => {
36
+ return a(() => {
36
37
  n.current = e;
37
38
  }), t.useRef((...o) => (
38
39
  // @ts-expect-error hide `this`
@@ -41,6 +42,6 @@ function g(e) {
41
42
  }
42
43
  export {
43
44
  g as a,
44
- m as o,
45
- p as u
45
+ p as o,
46
+ w as u
46
47
  };
@@ -1,10 +1,11 @@
1
- import { S as L, V as O, _ as C, ag as T, z as j } from "./PrizeCard-DF3QxwQJ.js";
1
+ import { _ as C, O as S, t as T } from "./PrizeCard-DgHyperX.js";
2
2
  import * as u from "react";
3
- import { F as K } from "./CheckCircle-CV9iMpkZ.js";
4
- const U = /* @__PURE__ */ u.createContext(void 0);
5
- process.env.NODE_ENV !== "production" && (U.displayName = "FormControlContext");
3
+ import { F as j } from "./CheckCircle-h7-xLUq-.js";
4
+ import { d as K, f as M } from "./Button-COvmPv4P.js";
5
+ const L = /* @__PURE__ */ u.createContext(void 0);
6
+ process.env.NODE_ENV !== "production" && (L.displayName = "FormControlContext");
6
7
  function $() {
7
- return u.useContext(U);
8
+ return u.useContext(L);
8
9
  }
9
10
  function W(i = {}) {
10
11
  const {
@@ -15,7 +16,7 @@ function W(i = {}) {
15
16
  onChange: N,
16
17
  onFocus: R,
17
18
  required: w = !1,
18
- value: V,
19
+ value: B,
19
20
  inputRef: F
20
21
  } = i, o = $();
21
22
  let m, t, p, f, d;
@@ -27,13 +28,13 @@ function W(i = {}) {
27
28
  `));
28
29
  }
29
30
  } else
30
- m = s, t = g, p = a, f = w, d = V;
31
+ m = s, t = g, p = a, f = w, d = B;
31
32
  const {
32
- current: B
33
+ current: V
33
34
  } = u.useRef(d != null), x = u.useCallback((e) => {
34
35
  process.env.NODE_ENV !== "production" && e && e.nodeName !== "INPUT" && !e.focus && console.error(["MUI: You have provided a `slots.input` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
35
36
  `));
36
- }, []), b = u.useRef(null), I = L(b, F, x), [v, h] = u.useState(!1);
37
+ }, []), b = u.useRef(null), I = K(b, F, x), [v, h] = u.useState(!1);
37
38
  u.useEffect(() => {
38
39
  !o && t && v && (h(!1), c == null || c());
39
40
  }, [o, t, v, c]);
@@ -52,10 +53,10 @@ function W(i = {}) {
52
53
  var n;
53
54
  (n = e.onBlur) == null || n.call(e, r), o && o.onBlur ? o.onBlur() : h(!1);
54
55
  }, k = (e) => (r, ...n) => {
55
- var l, M;
56
- if (!B && (r.target || b.current) == null)
57
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : T(17));
58
- o == null || (l = o.onChange) == null || l.call(o, r), (M = e.onChange) == null || M.call(e, r, ...n);
56
+ var l, O;
57
+ if (!V && (r.target || b.current) == null)
58
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : S(17));
59
+ o == null || (l = o.onChange) == null || l.call(o, r), (O = e.onChange) == null || O.call(e, r, ...n);
59
60
  }, D = (e) => (r) => {
60
61
  var n;
61
62
  b.current && r.currentTarget === r.target && b.current.focus(), (n = e.onClick) == null || n.call(e, r);
@@ -70,7 +71,7 @@ function W(i = {}) {
70
71
  onBlur: c,
71
72
  onChange: N,
72
73
  onFocus: R
73
- }, O(e)), l = C({}, n, {
74
+ }, M(e)), l = C({}, n, {
74
75
  onBlur: q(n),
75
76
  onChange: k(n),
76
77
  onFocus: _(n)
@@ -86,7 +87,7 @@ function W(i = {}) {
86
87
  }, l);
87
88
  },
88
89
  getRootProps: (e = {}) => {
89
- const r = O(i, ["onBlur", "onChange", "onFocus"]), n = C({}, r, O(e));
90
+ const r = M(i, ["onBlur", "onChange", "onFocus"]), n = C({}, r, M(e));
90
91
  return C({}, e, n, {
91
92
  onClick: D(n)
92
93
  });
@@ -97,14 +98,14 @@ function W(i = {}) {
97
98
  };
98
99
  }
99
100
  const Y = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete", "autoFocus", "className", "defaultValue", "disabled", "disabledInProp", "error", "id", "name", "onClick", "onChange", "onKeyDown", "onKeyUp", "onFocus", "onBlur", "placeholder", "readOnly", "required", "type", "value"];
100
- function J(i, s) {
101
+ function Q(i, s) {
101
102
  var g;
102
- const a = u.useContext(K), {
103
+ const a = u.useContext(j), {
103
104
  "aria-describedby": c,
104
105
  "aria-label": N,
105
106
  "aria-labelledby": R,
106
107
  autoComplete: w,
107
- autoFocus: V,
108
+ autoFocus: B,
108
109
  className: F,
109
110
  defaultValue: o,
110
111
  disabled: m,
@@ -115,7 +116,7 @@ function J(i, s) {
115
116
  onClick: y,
116
117
  onChange: E,
117
118
  onKeyDown: P,
118
- onKeyUp: B,
119
+ onKeyUp: V,
119
120
  onFocus: x,
120
121
  onBlur: b,
121
122
  placeholder: I,
@@ -123,9 +124,9 @@ function J(i, s) {
123
124
  required: h,
124
125
  type: _,
125
126
  value: q
126
- } = i, k = j(i, Y), {
127
+ } = i, k = T(i, Y), {
127
128
  getRootProps: D,
128
- getInputProps: S,
129
+ getInputProps: U,
129
130
  focused: H,
130
131
  error: e,
131
132
  disabled: r
@@ -155,11 +156,11 @@ function J(i, s) {
155
156
  "aria-label": N,
156
157
  "aria-labelledby": R,
157
158
  autoComplete: w,
158
- autoFocus: V,
159
+ autoFocus: B,
159
160
  disabled: r,
160
161
  id: f,
161
162
  onKeyDown: P,
162
- onKeyUp: B,
163
+ onKeyUp: V,
163
164
  name: d,
164
165
  placeholder: I,
165
166
  readOnly: v,
@@ -168,12 +169,12 @@ function J(i, s) {
168
169
  rootStateClasses: n,
169
170
  inputStateClasses: l,
170
171
  getRootProps: D,
171
- getInputProps: S,
172
+ getInputProps: U,
172
173
  focused: H,
173
174
  error: e,
174
175
  disabled: r
175
176
  }, k);
176
177
  }
177
178
  export {
178
- J as u
179
+ Q as u
179
180
  };