fansunited-widgets-cdn 0.0.86-RC4 → 0.0.86-RC5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/chunks/{Alert-DuMXT9be.js → Alert-B6o66mYo.js} +39 -39
  2. package/chunks/{CardContent-COgjZl3_.js → CardContent-NCZhfGcZ.js} +16 -16
  3. package/chunks/{Snackbar-DJz-WddP.js → ChevronRight-1pLZ7T0v.js} +100 -94
  4. package/chunks/{ClassicQuizWrapper-C7svf4eh.js → ClassicQuizWrapper-n2epPO4k.js} +201 -205
  5. package/chunks/CollectLeadForm-C_3plJtn-Dr8J3eDw.js +3918 -0
  6. package/chunks/{CollectLeadWrapper-DACvBsa_.js → CollectLeadWrapper-CCtTZAxL.js} +55 -56
  7. package/chunks/EitherOrById-ClGwMK0b.js +6820 -0
  8. package/chunks/EitherOrPreviewWrapper-BYiKyYwi.js +46 -0
  9. package/chunks/Error-BurPfBJw-DWYn31sK.js +1119 -0
  10. package/chunks/{EventGameWrapper-DmjaKr3I.js → EventGameWrapper-BphusLTk.js} +208 -219
  11. package/chunks/{Grid-BbegUe2J.js → Grid-yjqNNhEx.js} +32 -32
  12. package/chunks/{IconButton-zh1RLwcE.js → IconButton-D7onwgY0.js} +22 -22
  13. package/chunks/{List-CA3L6bUS.js → List-8Vy9IZiv.js} +26 -29
  14. package/chunks/{MatchPredictionContainer-CmHKsJ_z.js → MatchPredictionContainer-BGytBwLo.js} +52 -54
  15. package/chunks/{MatchQuizWrapper-BxHHl4a5.js → MatchQuizWrapper-BGjldBpF.js} +73 -85
  16. package/chunks/{OverlayLeadAfterCollection-DnqztPJ5-CJnicIes.js → OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js} +104 -105
  17. package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd-CZ7cct30.js → OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js} +18 -19
  18. package/chunks/{PersonalityQuizWrapper-B-Rkzvc0.js → PersonalityQuizWrapper-BgLFw5tM.js} +3 -3
  19. package/chunks/{PlayerOfTheMatch-CzGMT1jr.js → PlayerOfTheMatch-CImBLG3T.js} +1008 -609
  20. package/chunks/{PollWrapper-Cdl3AbXE.js → PollWrapper-QpIKCCVF.js} +30 -34
  21. package/chunks/Portal-DegkUXpU-ByGP9zS1.js +19236 -0
  22. package/chunks/{PreviewQuizById-CPiwewW_.js → PreviewQuizById-Ba6yhxKV.js} +11 -14
  23. package/chunks/Sheet-U5EnSrgg.js +282 -0
  24. package/chunks/{Stack-BBjT-MoB.js → Stack-DbDi7kPO.js} +30 -30
  25. package/chunks/Tabs-leN3Fb8D--YMyy3EM.js +783 -0
  26. package/chunks/{TeamNextMatchPrediction-BOOGeVEv.js → TeamNextMatchPrediction-9VSQOCcC.js} +2 -2
  27. package/chunks/Tutorial-CRJLOovs.js +1072 -0
  28. package/chunks/createLucideIcon-CMWOQsDL.js +381 -0
  29. package/chunks/{createSvgIcon-cOpRx8M1.js → createSvgIcon-D9D4a1R9.js} +412 -390
  30. package/chunks/default-quiz-bg-ADjjIfPj.js +126 -0
  31. package/chunks/{index-CNAE4RYY.js → index-0ADq_9jd.js} +1 -1
  32. package/chunks/{index-D9kNvflO.js → index-B74jHeYm.js} +2 -2
  33. package/chunks/{index-Dr-yGqo_.js → index-BfVvJg5R.js} +1 -1
  34. package/chunks/{index-D3wDyWq_.js → index-BycLbIYY.js} +1 -1
  35. package/chunks/{index-BKyd0MUt.js → index-C6KAc5B_.js} +1 -1
  36. package/chunks/{index-BkU2GDR4.js → index-CHV6tlpH.js} +5 -5
  37. package/chunks/{index-Uv42o9aR.js → index-CILd3yUc.js} +1 -1
  38. package/chunks/index-CJqcqbHq.js +5 -0
  39. package/chunks/{index-DrlzgjUf.js → index-CK2RXrJm.js} +1 -1
  40. package/chunks/{index-DFXrZaoM.js → index-CPTAlr_t.js} +1 -1
  41. package/chunks/{index-D1SEUyHT.js → index-CiB_Gqim.js} +1 -1
  42. package/chunks/{index-CNukXTLi.js → index-CvGJXa6l.js} +1 -1
  43. package/chunks/{index-CpFMxpj1.js → index-CviTG4Nv.js} +1 -1
  44. package/chunks/index-DUQ2LFod-Cw45tHim.js +4510 -0
  45. package/chunks/{index-DbZ10tsY.js → index-Da0AXb_O.js} +1 -1
  46. package/chunks/{index-CiI_vSMR.js → index-DwR4J2nN.js} +1 -1
  47. package/chunks/{index-CMhbRdLz.js → index-UwW9niUj.js} +1 -1
  48. package/chunks/index.es-wHqA4PHm.js +11480 -0
  49. package/chunks/{init-DYY4CJtu.js → init-C-gCorsh.js} +1 -1
  50. package/chunks/{main-NO9IQFuY.js → main-Bh6iw92_.js} +94 -110
  51. package/chunks/{Button-DJj0KOh3.js → resolveProps-Bgg0H6c2.js} +471 -313
  52. package/chunks/{users-C-6eqEb6.js → users-CXdzg3DM.js} +1 -1
  53. package/fu-widgets.es.js +2 -2
  54. package/fu-widgets.iife.js +310 -257
  55. package/manifest.json +56 -72
  56. package/package.json +1 -1
  57. package/chunks/AspectRatio-CKWgGwn-.js +0 -125
  58. package/chunks/Avatar-Cv70g9HX.js +0 -186
  59. package/chunks/Card-BDn3dk3E.js +0 -129
  60. package/chunks/ChevronRight-BwGivLSL.js +0 -11
  61. package/chunks/Chip-BkY7Uww3.js +0 -281
  62. package/chunks/CollectLeadForm-DtmR2Vuf-DvAoHDnn.js +0 -1560
  63. package/chunks/DialogActions-CuXgjeCi.js +0 -45
  64. package/chunks/DialogContent-CyQJ8yz-.js +0 -60
  65. package/chunks/EitherOrById-B8v0nJmv.js +0 -1496
  66. package/chunks/EitherOrPreviewWrapper-C9O6TEVe.js +0 -47
  67. package/chunks/Error-DhQL89pn-DD0O1kEt.js +0 -418
  68. package/chunks/Link-Cw8ci6QQ.js +0 -228
  69. package/chunks/ListItemDecorator-DwvO_ty1.js +0 -1882
  70. package/chunks/ModalDialog-DLPhSR9-.js +0 -619
  71. package/chunks/NotFoundSkeleton-BYJTzYJR-JURKfNZv.js +0 -2764
  72. package/chunks/Portal-BWqqFvVm-pvatNKfM.js +0 -12717
  73. package/chunks/Portal-BsATdUrC.js +0 -41
  74. package/chunks/Select-Cewujqtd.js +0 -3418
  75. package/chunks/Sheet-B8wNvQTa.js +0 -167
  76. package/chunks/Tabs-BP1RMTCA.js +0 -784
  77. package/chunks/Tutorial-B1LWDD9l.js +0 -427
  78. package/chunks/createLucideIcon-nPUeaUEe.js +0 -79
  79. package/chunks/createSvgIcon-DhITitgm.js +0 -119
  80. package/chunks/default-quiz-bg-CTzaADn7.js +0 -4
  81. package/chunks/getReactElementRef-66jU_By9.js +0 -25
  82. package/chunks/index-BPH9IX2Q.js +0 -5
  83. package/chunks/index.es-BZbN3xaq.js +0 -6162
  84. package/chunks/resolveProps-BfYZubfk.js +0 -37
  85. package/chunks/variantColorInheritance-DVZ9CGcB.js +0 -28
@@ -1,10 +1,10 @@
1
- import { F as H, G as N, r as W, v as _, _ as $, w as s, x as c, y as u, E as B, j as p, z as v, D as J } from "./main-NO9IQFuY.js";
2
- import { r as T, g as U, h as L } from "./Button-DJj0KOh3.js";
3
- function M(o) {
4
- return H("MuiAlert", o);
1
+ import { g as N, d as W, r as E, e as _, f as $, _ as s, h as c, s as u, w as B, j as p, i as v, k as J } from "./main-Bh6iw92_.js";
2
+ import { r as T, d as U, e as k } from "./resolveProps-Bgg0H6c2.js";
3
+ function L(o) {
4
+ return N("MuiAlert", o);
5
5
  }
6
- N("MuiAlert", ["root", "startDecorator", "endDecorator", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
7
- const k = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"], F = (o) => {
6
+ W("MuiAlert", ["root", "startDecorator", "endDecorator", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
7
+ const M = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"], F = (o) => {
8
8
  const {
9
9
  variant: r,
10
10
  color: e,
@@ -14,8 +14,8 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
14
14
  startDecorator: ["startDecorator"],
15
15
  endDecorator: ["endDecorator"]
16
16
  };
17
- return J(a, M, {});
18
- }, G = u("div", {
17
+ return J(a, L, {});
18
+ }, O = u("div", {
19
19
  name: "JoyAlert",
20
20
  slot: "Root",
21
21
  overridesResolver: (o, r) => r.root
@@ -27,7 +27,7 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
27
27
  const {
28
28
  p: t,
29
29
  padding: a,
30
- borderRadius: l
30
+ borderRadius: i
31
31
  } = T({
32
32
  theme: o,
33
33
  ownerState: r
@@ -68,21 +68,21 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
68
68
  lg: "md"
69
69
  }[r.size]}`], {
70
70
  fontWeight: o.vars.fontWeight.md
71
- }, r.variant === "solid" && r.color && r.invertedColors && U(r.color)(o), r.variant === "soft" && r.color && r.invertedColors && L(r.color)(o), (e = o.variants[r.variant]) == null ? void 0 : e[r.color]), t !== void 0 && {
71
+ }, r.variant === "solid" && r.color && r.invertedColors && U(r.color)(o), r.variant === "soft" && r.color && r.invertedColors && k(r.color)(o), (e = o.variants[r.variant]) == null ? void 0 : e[r.color]), t !== void 0 && {
72
72
  "--Alert-padding": t
73
73
  }, a !== void 0 && {
74
74
  "--Alert-padding": a
75
- }, l !== void 0 && {
76
- "--Alert-radius": l
75
+ }, i !== void 0 && {
76
+ "--Alert-radius": i
77
77
  }];
78
- }), O = u("span", {
78
+ }), V = u("span", {
79
79
  name: "JoyAlert",
80
80
  slot: "StartDecorator",
81
81
  overridesResolver: (o, r) => r.startDecorator
82
82
  })({
83
83
  display: "inherit",
84
84
  flex: "none"
85
- }), V = u("span", {
85
+ }), q = u("span", {
86
86
  name: "JoyAlert",
87
87
  slot: "EndDecorator",
88
88
  overridesResolver: (o, r) => r.endDecorator
@@ -90,56 +90,56 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
90
90
  display: "inherit",
91
91
  flex: "none",
92
92
  marginLeft: "auto"
93
- }), Q = /* @__PURE__ */ W.forwardRef(function(r, e) {
93
+ }), Q = /* @__PURE__ */ E.forwardRef(function(r, e) {
94
94
  const t = _({
95
95
  props: r,
96
96
  name: "JoyAlert"
97
97
  }), {
98
98
  children: a,
99
- className: l,
99
+ className: i,
100
100
  color: A = "neutral",
101
- invertedColors: D = !1,
102
- role: f = "alert",
101
+ invertedColors: f = !1,
102
+ role: D = "alert",
103
103
  variant: x = "soft",
104
- size: y = "md",
104
+ size: h = "md",
105
105
  startDecorator: m,
106
106
  endDecorator: g,
107
- component: h,
108
- slots: z = {},
109
- slotProps: C = {}
110
- } = t, R = $(t, k), i = s({}, t, {
107
+ component: y,
108
+ slots: C = {},
109
+ slotProps: z = {}
110
+ } = t, R = $(t, M), l = s({}, t, {
111
111
  color: A,
112
- invertedColors: D,
112
+ invertedColors: f,
113
113
  variant: x,
114
- size: y
115
- }), n = F(i), d = s({}, R, {
116
- component: h,
117
- slots: z,
118
- slotProps: C
114
+ size: h
115
+ }), n = F(l), d = s({}, R, {
116
+ component: y,
117
+ slots: C,
118
+ slotProps: z
119
119
  }), [P, b] = c("root", {
120
120
  ref: e,
121
- className: B(n.root, l),
122
- elementType: G,
121
+ className: B(n.root, i),
122
+ elementType: O,
123
123
  externalForwardedProps: d,
124
- ownerState: i,
124
+ ownerState: l,
125
125
  additionalProps: {
126
- role: f
126
+ role: D
127
127
  }
128
128
  }), [I, S] = c("startDecorator", {
129
129
  className: n.startDecorator,
130
- elementType: O,
130
+ elementType: V,
131
131
  externalForwardedProps: d,
132
- ownerState: i
133
- }), [j, E] = c("endDecorator", {
132
+ ownerState: l
133
+ }), [j, H] = c("endDecorator", {
134
134
  className: n.endDecorator,
135
- elementType: V,
135
+ elementType: q,
136
136
  externalForwardedProps: d,
137
- ownerState: i
137
+ ownerState: l
138
138
  });
139
139
  return /* @__PURE__ */ p.jsxs(P, s({}, b, {
140
140
  children: [m && /* @__PURE__ */ p.jsx(I, s({}, S, {
141
141
  children: m
142
- })), a, g && /* @__PURE__ */ p.jsx(j, s({}, E, {
142
+ })), a, g && /* @__PURE__ */ p.jsx(j, s({}, H, {
143
143
  children: g
144
144
  }))]
145
145
  }));
@@ -1,12 +1,12 @@
1
- import { G as e, F as f, r as P, v as R, _ as S, w as a, x as w, y as n, E as h, j as _, D as j } from "./main-NO9IQFuY.js";
1
+ import { d as e, g as y, r as P, e as R, f as S, _ as a, h, s as n, w, j as _, k as j } from "./main-Bh6iw92_.js";
2
2
  const N = e("MuiCardOverflow", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
3
3
  function U(o) {
4
- return f("MuiCardContent", o);
4
+ return y("MuiCardContent", o);
5
5
  }
6
6
  e("MuiCardContent", ["root"]);
7
- const b = ["className", "component", "children", "orientation", "slots", "slotProps"], D = () => j({
7
+ const b = ["className", "component", "children", "orientation", "slots", "slotProps"], M = () => j({
8
8
  root: ["root"]
9
- }, U, {}), E = n("div")(({
9
+ }, U, {}), z = n("div")(({
10
10
  ownerState: o
11
11
  }) => ({
12
12
  display: "flex",
@@ -20,11 +20,11 @@ const b = ["className", "component", "children", "orientation", "slots", "slotPr
20
20
  [`.${N.root} > &`]: {
21
21
  "--unstable_padding": "calc(var(--Card-padding) * 0.75) 0px"
22
22
  }
23
- })), G = n(E, {
23
+ })), D = n(z, {
24
24
  name: "JoyCardContent",
25
25
  slot: "Root",
26
26
  overridesResolver: (o, t) => t.root
27
- })({}), z = /* @__PURE__ */ P.forwardRef(function(t, l) {
27
+ })({}), G = /* @__PURE__ */ P.forwardRef(function(t, l) {
28
28
  const s = R({
29
29
  props: t,
30
30
  name: "JoyCardContent"
@@ -35,26 +35,26 @@ const b = ["className", "component", "children", "orientation", "slots", "slotPr
35
35
  orientation: d = "vertical",
36
36
  slots: p = {},
37
37
  slotProps: C = {}
38
- } = s, u = S(s, b), x = a({}, u, {
38
+ } = s, u = S(s, b), m = a({}, u, {
39
39
  component: r,
40
40
  slots: p,
41
41
  slotProps: C
42
- }), m = a({}, s, {
42
+ }), x = a({}, s, {
43
43
  component: r,
44
44
  orientation: d
45
- }), v = D(), [y, g] = w("root", {
45
+ }), v = M(), [g, f] = h("root", {
46
46
  ref: l,
47
- className: h(v.root, i),
48
- elementType: G,
49
- externalForwardedProps: x,
50
- ownerState: m
47
+ className: w(v.root, i),
48
+ elementType: D,
49
+ externalForwardedProps: m,
50
+ ownerState: x
51
51
  });
52
- return /* @__PURE__ */ _.jsx(y, a({}, g, {
52
+ return /* @__PURE__ */ _.jsx(g, a({}, f, {
53
53
  children: c
54
54
  }));
55
55
  });
56
56
  export {
57
- z as C,
58
- E as S,
57
+ G as C,
58
+ z as S,
59
59
  N as a
60
60
  };
@@ -1,30 +1,30 @@
1
- import { r as i, Z as er, j as x, w as g, a5 as _, F as or, G as ar, v as tr, _ as sr, x as w, y as A, E as ir, z as C, D as cr, I } from "./main-NO9IQFuY.js";
2
- import { d as lr, r as dr, g as ur, h as fr } from "./Button-DJj0KOh3.js";
3
- import { g as vr, u as P, o as H } from "./getReactElementRef-66jU_By9.js";
4
- function M(n) {
1
+ import { r as c, m as or, j as E, _ as g, v as T, g as ar, d as tr, e as sr, f as cr, h as w, s as A, w as ir, i as x, k as lr, x as X } from "./main-Bh6iw92_.js";
2
+ import { c as dr, r as ur, d as fr, e as vr } from "./resolveProps-Bgg0H6c2.js";
3
+ import { g as mr, u as P, o as H, c as j } from "./createSvgIcon-D9D4a1R9.js";
4
+ function _(n) {
5
5
  return n.substring(2).toLowerCase();
6
6
  }
7
- function mr(n, r) {
7
+ function pr(n, r) {
8
8
  return r.documentElement.clientWidth < n.clientX || r.documentElement.clientHeight < n.clientY;
9
9
  }
10
- function pr(n) {
10
+ function hr(n) {
11
11
  const {
12
12
  children: r,
13
13
  disableReactTree: p = !1,
14
14
  mouseEvent: a = "onClick",
15
15
  onClickAway: d,
16
16
  touchEvent: s = "onTouchEnd"
17
- } = n, v = i.useRef(!1), u = i.useRef(null), m = i.useRef(!1), b = i.useRef(!1);
18
- i.useEffect(() => (setTimeout(() => {
17
+ } = n, v = c.useRef(!1), u = c.useRef(null), m = c.useRef(!1), b = c.useRef(!1);
18
+ c.useEffect(() => (setTimeout(() => {
19
19
  m.current = !0;
20
20
  }, 0), () => {
21
21
  m.current = !1;
22
22
  }), []);
23
- const h = er(vr(r), u), c = P((t) => {
23
+ const h = or(mr(r), u), i = P((t) => {
24
24
  const l = b.current;
25
25
  b.current = !1;
26
26
  const k = H(u.current);
27
- if (!m.current || !u.current || "clientX" in t && mr(t, k))
27
+ if (!m.current || !u.current || "clientX" in t && pr(t, k))
28
28
  return;
29
29
  if (v.current) {
30
30
  v.current = !1;
@@ -45,35 +45,35 @@ function pr(n) {
45
45
  }, y = {
46
46
  ref: h
47
47
  };
48
- return s !== !1 && (y[s] = S(s)), i.useEffect(() => {
48
+ return s !== !1 && (y[s] = S(s)), c.useEffect(() => {
49
49
  if (s !== !1) {
50
- const t = M(s), l = H(u.current), k = () => {
50
+ const t = _(s), l = H(u.current), k = () => {
51
51
  v.current = !0;
52
52
  };
53
- return l.addEventListener(t, c), l.addEventListener("touchmove", k), () => {
54
- l.removeEventListener(t, c), l.removeEventListener("touchmove", k);
53
+ return l.addEventListener(t, i), l.addEventListener("touchmove", k), () => {
54
+ l.removeEventListener(t, i), l.removeEventListener("touchmove", k);
55
55
  };
56
56
  }
57
- }, [c, s]), a !== !1 && (y[a] = S(a)), i.useEffect(() => {
57
+ }, [i, s]), a !== !1 && (y[a] = S(a)), c.useEffect(() => {
58
58
  if (a !== !1) {
59
- const t = M(a), l = H(u.current);
60
- return l.addEventListener(t, c), () => {
61
- l.removeEventListener(t, c);
59
+ const t = _(a), l = H(u.current);
60
+ return l.addEventListener(t, i), () => {
61
+ l.removeEventListener(t, i);
62
62
  };
63
63
  }
64
- }, [c, a]), /* @__PURE__ */ x.jsx(i.Fragment, {
65
- children: /* @__PURE__ */ i.cloneElement(r, y)
64
+ }, [i, a]), /* @__PURE__ */ E.jsx(c.Fragment, {
65
+ children: /* @__PURE__ */ c.cloneElement(r, y)
66
66
  });
67
67
  }
68
- function hr(n = {}) {
68
+ function kr(n = {}) {
69
69
  const {
70
70
  autoHideDuration: r = null,
71
71
  disableWindowBlurListener: p = !1,
72
72
  onClose: a,
73
73
  open: d,
74
74
  resumeHideDuration: s
75
- } = n, v = lr();
76
- i.useEffect(() => {
75
+ } = n, v = dr();
76
+ c.useEffect(() => {
77
77
  if (!d)
78
78
  return;
79
79
  function e(o) {
@@ -90,14 +90,14 @@ function hr(n = {}) {
90
90
  u(null, "timeout");
91
91
  });
92
92
  });
93
- i.useEffect(() => (d && m(r), v.clear), [d, r, m, v]);
93
+ c.useEffect(() => (d && m(r), v.clear), [d, r, m, v]);
94
94
  const b = (e) => {
95
95
  a == null || a(e, "clickaway");
96
- }, h = v.clear, c = i.useCallback(() => {
96
+ }, h = v.clear, i = c.useCallback(() => {
97
97
  r != null && m(s ?? r * 0.5);
98
98
  }, [r, s, m]), S = (e) => (o) => {
99
99
  const f = e.onBlur;
100
- f == null || f(o), c();
100
+ f == null || f(o), i();
101
101
  }, y = (e) => (o) => {
102
102
  const f = e.onFocus;
103
103
  f == null || f(o), h();
@@ -106,16 +106,16 @@ function hr(n = {}) {
106
106
  f == null || f(o), h();
107
107
  }, l = (e) => (o) => {
108
108
  const f = e.onMouseLeave;
109
- f == null || f(o), c();
109
+ f == null || f(o), i();
110
110
  };
111
- return i.useEffect(() => {
111
+ return c.useEffect(() => {
112
112
  if (!p && d)
113
- return window.addEventListener("focus", c), window.addEventListener("blur", h), () => {
114
- window.removeEventListener("focus", c), window.removeEventListener("blur", h);
113
+ return window.addEventListener("focus", i), window.addEventListener("blur", h), () => {
114
+ window.removeEventListener("focus", i), window.removeEventListener("blur", h);
115
115
  };
116
- }, [p, d, c, h]), {
116
+ }, [p, d, i, h]), {
117
117
  getRootProps: (e = {}) => {
118
- const o = g({}, _(n), _(e));
118
+ const o = g({}, T(n), T(e));
119
119
  return g({
120
120
  // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
121
121
  // See https://github.com/mui/material-ui/issues/29080
@@ -130,25 +130,25 @@ function hr(n = {}) {
130
130
  onClickAway: b
131
131
  };
132
132
  }
133
- function kr(n) {
134
- return or("MuiSnackbar", n);
133
+ function br(n) {
134
+ return ar("MuiSnackbar", n);
135
135
  }
136
- ar("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "endDecorator", "sizeSm", "sizeMd", "sizeLg", "startDecorator", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
137
- const br = ["anchorOrigin", "animationDuration", "autoHideDuration", "color", "children", "className", "component", "disableWindowBlurListener", "endDecorator", "invertedColors", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "onUnmount", "open", "resumeHideDuration", "size", "slots", "slotProps", "startDecorator", "variant"];
138
- let F = (n) => n, $, X;
139
- const gr = (n) => {
136
+ tr("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "endDecorator", "sizeSm", "sizeMd", "sizeLg", "startDecorator", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
137
+ const gr = ["anchorOrigin", "animationDuration", "autoHideDuration", "color", "children", "className", "component", "disableWindowBlurListener", "endDecorator", "invertedColors", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "onUnmount", "open", "resumeHideDuration", "size", "slots", "slotProps", "startDecorator", "variant"];
138
+ let W = (n) => n, $, I;
139
+ const Sr = (n) => {
140
140
  const {
141
141
  variant: r,
142
142
  color: p,
143
143
  size: a,
144
144
  anchorOrigin: d
145
145
  } = n, s = {
146
- root: ["root", a && `size${C(a)}`, p && `color${C(p)}`, r && `variant${C(r)}`, `anchorOrigin${C(d.vertical)}${C(d.horizontal)}`],
146
+ root: ["root", a && `size${x(a)}`, p && `color${x(p)}`, r && `variant${x(r)}`, `anchorOrigin${x(d.vertical)}${x(d.horizontal)}`],
147
147
  startDecorator: ["startDecorator"],
148
148
  endDecorator: ["endDecorator"]
149
149
  };
150
- return cr(s, kr, {});
151
- }, Sr = I($ || ($ = F`
150
+ return lr(s, br, {});
151
+ }, yr = X($ || ($ = W`
152
152
  0% {
153
153
  transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%));
154
154
  opacity: 0;
@@ -159,7 +159,7 @@ const gr = (n) => {
159
159
  100% {
160
160
  transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0);
161
161
  }
162
- `)), yr = I(X || (X = F`
162
+ `)), Cr = X(I || (I = W`
163
163
  0% {
164
164
  transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0);
165
165
  opacity: 1;
@@ -180,8 +180,8 @@ const gr = (n) => {
180
180
  const {
181
181
  p: b,
182
182
  padding: h,
183
- borderRadius: c
184
- } = dr({
183
+ borderRadius: i
184
+ } = ur({
185
185
  theme: n,
186
186
  ownerState: r
187
187
  }, ["p", "padding", "borderRadius"]);
@@ -229,9 +229,9 @@ const gr = (n) => {
229
229
  }, ((u = r.anchorOrigin) == null ? void 0 : u.vertical) === "top" && {
230
230
  "--_Snackbar-anchorBottom": "-1"
231
231
  }, {
232
- animation: `${Sr} ${r.animationDuration}ms forwards`
232
+ animation: `${yr} ${r.animationDuration}ms forwards`
233
233
  }, !r.open && {
234
- animationName: yr
234
+ animationName: Cr
235
235
  }, {
236
236
  boxShadow: n.vars.shadow.lg,
237
237
  backgroundColor: n.vars.palette.background.surface,
@@ -241,21 +241,21 @@ const gr = (n) => {
241
241
  sm: "xs",
242
242
  md: "sm",
243
243
  lg: "md"
244
- }[r.size]}`], r.variant === "solid" && r.color && r.invertedColors && ur(r.color)(n), r.variant === "soft" && r.color && r.invertedColors && fr(r.color)(n), (m = n.variants[r.variant]) == null ? void 0 : m[r.color]), b !== void 0 && {
244
+ }[r.size]}`], r.variant === "solid" && r.color && r.invertedColors && fr(r.color)(n), r.variant === "soft" && r.color && r.invertedColors && vr(r.color)(n), (m = n.variants[r.variant]) == null ? void 0 : m[r.color]), b !== void 0 && {
245
245
  "--Snackbar-padding": b
246
246
  }, h !== void 0 && {
247
247
  "--Snackbar-padding": h
248
- }, c !== void 0 && {
249
- "--Snackbar-radius": c
248
+ }, i !== void 0 && {
249
+ "--Snackbar-radius": i
250
250
  }];
251
- }), Cr = A("span", {
251
+ }), xr = A("span", {
252
252
  name: "JoySnackbar",
253
253
  slot: "StartDecorator",
254
254
  overridesResolver: (n, r) => r.startDecorator
255
255
  })({
256
256
  display: "inherit",
257
257
  flex: "none"
258
- }), xr = A("span", {
258
+ }), Rr = A("span", {
259
259
  name: "JoySnackbar",
260
260
  slot: "EndDecorator",
261
261
  overridesResolver: (n, r) => r.endDecorator
@@ -263,22 +263,22 @@ const gr = (n) => {
263
263
  display: "inherit",
264
264
  flex: "none",
265
265
  marginLeft: "auto"
266
- }), Rr = {
266
+ }), Dr = {
267
267
  vertical: "bottom",
268
268
  horizontal: "right"
269
- }, Or = /* @__PURE__ */ i.forwardRef(function(r, p) {
270
- const a = tr({
269
+ }, wr = /* @__PURE__ */ c.forwardRef(function(r, p) {
270
+ const a = sr({
271
271
  props: r,
272
272
  name: "JoySnackbar"
273
273
  }), {
274
- anchorOrigin: d = Rr,
274
+ anchorOrigin: d = Dr,
275
275
  animationDuration: s = 300,
276
276
  autoHideDuration: v = null,
277
277
  color: u = "neutral",
278
278
  children: m,
279
279
  className: b,
280
280
  component: h,
281
- disableWindowBlurListener: c = !1,
281
+ disableWindowBlurListener: i = !1,
282
282
  endDecorator: S,
283
283
  invertedColors: y = !1,
284
284
  onUnmount: t,
@@ -287,72 +287,78 @@ const gr = (n) => {
287
287
  slots: e = {},
288
288
  slotProps: o,
289
289
  startDecorator: f,
290
- variant: W = "outlined"
291
- } = a, j = sr(a, br), [N, B] = i.useState(!0), [U, R] = i.useState(!1), D = i.useRef(t);
292
- D.current = t, i.useEffect(() => {
290
+ variant: F = "outlined"
291
+ } = a, N = cr(a, gr), [U, B] = c.useState(!0), [Y, R] = c.useState(!1), D = c.useRef(t);
292
+ D.current = t, c.useEffect(() => {
293
293
  if (l)
294
294
  R(!1), B(!1);
295
295
  else {
296
296
  R(!0);
297
297
  const O = setTimeout(() => {
298
- var T;
299
- B(!0), R(!1), (T = D.current) == null || T.call(D);
298
+ var M;
299
+ B(!0), R(!1), (M = D.current) == null || M.call(D);
300
300
  }, s);
301
301
  return () => {
302
302
  clearTimeout(O);
303
303
  };
304
304
  }
305
305
  }, [l, s]);
306
- const E = g({}, a, {
306
+ const C = g({}, a, {
307
307
  anchorOrigin: d,
308
308
  autoHideDuration: v,
309
309
  color: u,
310
310
  animationDuration: s,
311
- disableWindowBlurListener: c,
311
+ disableWindowBlurListener: i,
312
312
  invertedColors: y,
313
313
  size: k,
314
- variant: W
314
+ variant: F
315
315
  });
316
- delete E.onUnmount;
317
- const z = gr(E), {
318
- getRootProps: Y,
319
- onClickAway: J
320
- } = hr(E), K = (O) => {
321
- U || J(O);
322
- }, L = g({}, j, {
316
+ delete C.onUnmount;
317
+ const L = Sr(C), {
318
+ getRootProps: J,
319
+ onClickAway: K
320
+ } = kr(C), V = (O) => {
321
+ Y || K(O);
322
+ }, z = g({}, N, {
323
323
  component: h,
324
324
  slots: e,
325
325
  slotProps: o
326
- }), [G, V] = w("root", {
326
+ }), [q, G] = w("root", {
327
327
  ref: p,
328
- className: ir(z.root, b),
328
+ className: ir(L.root, b),
329
329
  elementType: Er,
330
- externalForwardedProps: L,
331
- getSlotProps: Y,
332
- ownerState: E
333
- }), [Z, q] = w("startDecorator", {
334
- className: z.startDecorator,
335
- elementType: Cr,
336
- externalForwardedProps: L,
337
- ownerState: E
338
- }), [Q, rr] = w("endDecorator", {
339
- className: z.endDecorator,
330
+ externalForwardedProps: z,
331
+ getSlotProps: J,
332
+ ownerState: C
333
+ }), [Q, Z] = w("startDecorator", {
334
+ className: L.startDecorator,
340
335
  elementType: xr,
341
- externalForwardedProps: L,
342
- ownerState: E
343
- }), nr = e.clickAway || pr;
344
- return !l && N ? null : /* @__PURE__ */ x.jsx(nr, g({
345
- onClickAway: K
346
- }, typeof (o == null ? void 0 : o.clickAway) == "function" ? o.clickAway(E) : o == null ? void 0 : o.clickAway, {
347
- children: /* @__PURE__ */ x.jsxs(G, g({}, V, {
348
- children: [f && /* @__PURE__ */ x.jsx(Z, g({}, q, {
336
+ externalForwardedProps: z,
337
+ ownerState: C
338
+ }), [rr, nr] = w("endDecorator", {
339
+ className: L.endDecorator,
340
+ elementType: Rr,
341
+ externalForwardedProps: z,
342
+ ownerState: C
343
+ }), er = e.clickAway || hr;
344
+ return !l && U ? null : /* @__PURE__ */ E.jsx(er, g({
345
+ onClickAway: V
346
+ }, typeof (o == null ? void 0 : o.clickAway) == "function" ? o.clickAway(C) : o == null ? void 0 : o.clickAway, {
347
+ children: /* @__PURE__ */ E.jsxs(q, g({}, G, {
348
+ children: [f && /* @__PURE__ */ E.jsx(Q, g({}, Z, {
349
349
  children: f
350
- })), m, S && /* @__PURE__ */ x.jsx(Q, g({}, rr, {
350
+ })), m, S && /* @__PURE__ */ E.jsx(rr, g({}, nr, {
351
351
  children: S
352
352
  }))]
353
353
  }))
354
354
  }));
355
- });
355
+ }), Hr = j(/* @__PURE__ */ E.jsx("path", {
356
+ d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
357
+ }), "ChevronLeft"), Pr = j(/* @__PURE__ */ E.jsx("path", {
358
+ d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
359
+ }), "ChevronRight");
356
360
  export {
357
- Or as S
361
+ Hr as C,
362
+ wr as S,
363
+ Pr as a
358
364
  };