fansunited-widgets-cdn 0.0.86-RC4 → 0.0.86-RC6

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,47 +1,47 @@
1
- import { ao as Bt, r as v, Z as lt, w as u, a5 as et, ap as it, F as st, G as ct, v as dt, _ as Q, Q as Dt, x as A, y as F, j as _, z as O, D as pt, C as xt } from "./main-NO9IQFuY.js";
2
- const ie = Bt();
3
- function kt(t, a) {
4
- var n, o;
5
- return /* @__PURE__ */ v.isValidElement(t) && a.indexOf(
1
+ import { aa as xt, r as u, m as ct, _ as v, v as nt, ab as pt, g as Q, d as w, e as tt, f as U, l as Dt, h as M, s as N, j as E, i as W, k as et, C as kt, w as St } from "./main-Bh6iw92_.js";
2
+ const $e = xt();
3
+ function ut(t, a) {
4
+ var o, n;
5
+ return /* @__PURE__ */ u.isValidElement(t) && a.indexOf(
6
6
  // For server components `muiName` is avaialble in element.type._payload.value.muiName
7
7
  // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
8
8
  // eslint-disable-next-line no-underscore-dangle
9
- (n = t.type.muiName) != null ? n : (o = t.type) == null || (o = o._payload) == null || (o = o.value) == null ? void 0 : o.muiName
9
+ (o = t.type.muiName) != null ? o : (n = t.type) == null || (n = n._payload) == null || (n = n.value) == null ? void 0 : n.muiName
10
10
  ) !== -1;
11
11
  }
12
- const at = {};
13
- function St(t, a) {
14
- const n = v.useRef(at);
15
- return n.current === at && (n.current = t(a)), n;
12
+ const lt = {};
13
+ function Rt(t, a) {
14
+ const o = u.useRef(lt);
15
+ return o.current === lt && (o.current = t(a)), o;
16
16
  }
17
- const Tt = [];
18
- function It(t) {
19
- v.useEffect(t, Tt);
17
+ const Pt = [];
18
+ function Tt(t) {
19
+ u.useEffect(t, Pt);
20
20
  }
21
- class K {
21
+ class J {
22
22
  constructor() {
23
23
  this.currentId = null, this.clear = () => {
24
24
  this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
25
25
  }, this.disposeEffect = () => this.clear;
26
26
  }
27
27
  static create() {
28
- return new K();
28
+ return new J();
29
29
  }
30
30
  /**
31
31
  * Executes `fn` after `delay`, clearing any previously scheduled call.
32
32
  */
33
- start(a, n) {
33
+ start(a, o) {
34
34
  this.clear(), this.currentId = setTimeout(() => {
35
- this.currentId = null, n();
35
+ this.currentId = null, o();
36
36
  }, a);
37
37
  }
38
38
  }
39
- function se() {
40
- const t = St(K.create).current;
41
- return It(t.disposeEffect), t;
39
+ function he() {
40
+ const t = Rt(J.create).current;
41
+ return Tt(t.disposeEffect), t;
42
42
  }
43
- let J = !0, Y = !1;
44
- const Rt = new K(), Ht = {
43
+ let G = !0, q = !1;
44
+ const It = new J(), _t = {
45
45
  text: !0,
46
46
  search: !0,
47
47
  url: !0,
@@ -56,24 +56,24 @@ const Rt = new K(), Ht = {
56
56
  datetime: !0,
57
57
  "datetime-local": !0
58
58
  };
59
- function _t(t) {
59
+ function Ht(t) {
60
60
  const {
61
61
  type: a,
62
- tagName: n
62
+ tagName: o
63
63
  } = t;
64
- return !!(n === "INPUT" && Ht[a] && !t.readOnly || n === "TEXTAREA" && !t.readOnly || t.isContentEditable);
64
+ return !!(o === "INPUT" && _t[a] && !t.readOnly || o === "TEXTAREA" && !t.readOnly || t.isContentEditable);
65
65
  }
66
- function Pt(t) {
67
- t.metaKey || t.altKey || t.ctrlKey || (J = !0);
66
+ function Et(t) {
67
+ t.metaKey || t.altKey || t.ctrlKey || (G = !0);
68
68
  }
69
69
  function Z() {
70
- J = !1;
70
+ G = !1;
71
71
  }
72
- function Et() {
73
- this.visibilityState === "hidden" && Y && (J = !0);
72
+ function zt() {
73
+ this.visibilityState === "hidden" && q && (G = !0);
74
74
  }
75
75
  function Vt(t) {
76
- t.addEventListener("keydown", Pt, !0), t.addEventListener("mousedown", Z, !0), t.addEventListener("pointerdown", Z, !0), t.addEventListener("touchstart", Z, !0), t.addEventListener("visibilitychange", Et, !0);
76
+ t.addEventListener("keydown", Et, !0), t.addEventListener("mousedown", Z, !0), t.addEventListener("pointerdown", Z, !0), t.addEventListener("touchstart", Z, !0), t.addEventListener("visibilitychange", zt, !0);
77
77
  }
78
78
  function Nt(t) {
79
79
  const {
@@ -83,149 +83,149 @@ function Nt(t) {
83
83
  return a.matches(":focus-visible");
84
84
  } catch {
85
85
  }
86
- return J || _t(a);
86
+ return G || Ht(a);
87
87
  }
88
- function zt() {
89
- const t = v.useCallback((r) => {
88
+ function At() {
89
+ const t = u.useCallback((r) => {
90
90
  r != null && Vt(r.ownerDocument);
91
- }, []), a = v.useRef(!1);
92
- function n() {
93
- return a.current ? (Y = !0, Rt.start(100, () => {
94
- Y = !1;
91
+ }, []), a = u.useRef(!1);
92
+ function o() {
93
+ return a.current ? (q = !0, It.start(100, () => {
94
+ q = !1;
95
95
  }), a.current = !1, !0) : !1;
96
96
  }
97
- function o(r) {
97
+ function n(r) {
98
98
  return Nt(r) ? (a.current = !0, !0) : !1;
99
99
  }
100
100
  return {
101
101
  isFocusVisibleRef: a,
102
- onFocus: o,
103
- onBlur: n,
102
+ onFocus: n,
103
+ onBlur: o,
104
104
  ref: t
105
105
  };
106
106
  }
107
- function At(t) {
107
+ function Mt(t) {
108
108
  const {
109
109
  rootElementName: a = ""
110
- } = t, [n, o] = v.useState(a.toUpperCase()), r = v.useCallback((e) => {
110
+ } = t, [o, n] = u.useState(a.toUpperCase()), r = u.useCallback((e) => {
111
111
  var i;
112
- o((i = e == null ? void 0 : e.tagName) != null ? i : "");
112
+ n((i = e == null ? void 0 : e.tagName) != null ? i : "");
113
113
  }, []);
114
- return [n, r];
114
+ return [o, r];
115
115
  }
116
- function Ft(t = {}) {
116
+ function Wt(t = {}) {
117
117
  const {
118
118
  disabled: a = !1,
119
- focusableWhenDisabled: n,
120
- href: o,
119
+ focusableWhenDisabled: o,
120
+ href: n,
121
121
  rootRef: r,
122
122
  tabIndex: e,
123
123
  to: i,
124
124
  type: p,
125
- rootElementName: y
126
- } = t, B = v.useRef(null), [D, k] = v.useState(!1), {
125
+ rootElementName: m
126
+ } = t, B = u.useRef(null), [b, x] = u.useState(!1), {
127
127
  isFocusVisibleRef: S,
128
- onFocus: b,
129
- onBlur: x,
130
- ref: R
131
- } = zt(), [f, T] = v.useState(!1);
132
- a && !n && f && T(!1), v.useEffect(() => {
133
- S.current = f;
134
- }, [f, S]);
135
- const [C, g] = At({
136
- rootElementName: y ?? (o || i ? "a" : void 0)
128
+ onFocus: C,
129
+ onBlur: D,
130
+ ref: I
131
+ } = At(), [$, R] = u.useState(!1);
132
+ a && !o && $ && R(!1), u.useEffect(() => {
133
+ S.current = $;
134
+ }, [$, S]);
135
+ const [y, f] = Mt({
136
+ rootElementName: m ?? (n || i ? "a" : void 0)
137
137
  }), P = (s) => (l) => {
138
138
  var c;
139
- f && l.preventDefault(), (c = s.onMouseLeave) == null || c.call(s, l);
140
- }, I = (s) => (l) => {
139
+ $ && l.preventDefault(), (c = s.onMouseLeave) == null || c.call(s, l);
140
+ }, T = (s) => (l) => {
141
141
  var c;
142
- x(l), S.current === !1 && T(!1), (c = s.onBlur) == null || c.call(s, l);
143
- }, $ = (s) => (l) => {
142
+ D(l), S.current === !1 && R(!1), (c = s.onBlur) == null || c.call(s, l);
143
+ }, g = (s) => (l) => {
144
144
  var c;
145
- if (B.current || (B.current = l.currentTarget), b(l), S.current === !0) {
146
- var h;
147
- T(!0), (h = s.onFocusVisible) == null || h.call(s, l);
145
+ if (B.current || (B.current = l.currentTarget), C(l), S.current === !0) {
146
+ var k;
147
+ R(!0), (k = s.onFocusVisible) == null || k.call(s, l);
148
148
  }
149
149
  (c = s.onFocus) == null || c.call(s, l);
150
150
  }, d = () => {
151
151
  const s = B.current;
152
- return C === "BUTTON" || C === "INPUT" && ["button", "submit", "reset"].includes(s == null ? void 0 : s.type) || C === "A" && (s == null ? void 0 : s.href);
153
- }, E = (s) => (l) => {
152
+ return y === "BUTTON" || y === "INPUT" && ["button", "submit", "reset"].includes(s == null ? void 0 : s.type) || y === "A" && (s == null ? void 0 : s.href);
153
+ }, H = (s) => (l) => {
154
154
  if (!a) {
155
155
  var c;
156
156
  (c = s.onClick) == null || c.call(s, l);
157
157
  }
158
- }, N = (s) => (l) => {
158
+ }, _ = (s) => (l) => {
159
159
  var c;
160
- a || (k(!0), document.addEventListener("mouseup", () => {
161
- k(!1);
160
+ a || (x(!0), document.addEventListener("mouseup", () => {
161
+ x(!1);
162
162
  }, {
163
163
  once: !0
164
164
  })), (c = s.onMouseDown) == null || c.call(s, l);
165
165
  }, z = (s) => (l) => {
166
166
  var c;
167
- if ((c = s.onKeyDown) == null || c.call(s, l), !l.defaultMuiPrevented && (l.target === l.currentTarget && !d() && l.key === " " && l.preventDefault(), l.target === l.currentTarget && l.key === " " && !a && k(!0), l.target === l.currentTarget && !d() && l.key === "Enter" && !a)) {
168
- var h;
169
- (h = s.onClick) == null || h.call(s, l), l.preventDefault();
167
+ if ((c = s.onKeyDown) == null || c.call(s, l), !l.defaultMuiPrevented && (l.target === l.currentTarget && !d() && l.key === " " && l.preventDefault(), l.target === l.currentTarget && l.key === " " && !a && x(!0), l.target === l.currentTarget && !d() && l.key === "Enter" && !a)) {
168
+ var k;
169
+ (k = s.onClick) == null || k.call(s, l), l.preventDefault();
170
170
  }
171
- }, H = (s) => (l) => {
171
+ }, V = (s) => (l) => {
172
172
  var c;
173
- if (l.target === l.currentTarget && k(!1), (c = s.onKeyUp) == null || c.call(s, l), l.target === l.currentTarget && !d() && !a && l.key === " " && !l.defaultMuiPrevented) {
174
- var h;
175
- (h = s.onClick) == null || h.call(s, l);
173
+ if (l.target === l.currentTarget && x(!1), (c = s.onKeyUp) == null || c.call(s, l), l.target === l.currentTarget && !d() && !a && l.key === " " && !l.defaultMuiPrevented) {
174
+ var k;
175
+ (k = s.onClick) == null || k.call(s, l);
176
176
  }
177
- }, V = lt(g, r, R, B), m = {};
178
- return e !== void 0 && (m.tabIndex = e), C === "BUTTON" ? (m.type = p ?? "button", n ? m["aria-disabled"] = a : m.disabled = a) : C === "INPUT" ? p && ["button", "submit", "reset"].includes(p) && (n ? m["aria-disabled"] = a : m.disabled = a) : C !== "" && (!o && !i && (m.role = "button", m.tabIndex = e ?? 0), a && (m["aria-disabled"] = a, m.tabIndex = n ? e ?? 0 : -1)), {
177
+ }, A = ct(f, r, I, B), h = {};
178
+ return e !== void 0 && (h.tabIndex = e), y === "BUTTON" ? (h.type = p ?? "button", o ? h["aria-disabled"] = a : h.disabled = a) : y === "INPUT" ? p && ["button", "submit", "reset"].includes(p) && (o ? h["aria-disabled"] = a : h.disabled = a) : y !== "" && (!n && !i && (h.role = "button", h.tabIndex = e ?? 0), a && (h["aria-disabled"] = a, h.tabIndex = o ? e ?? 0 : -1)), {
179
179
  getRootProps: (s = {}) => {
180
- const l = u({}, et(t), et(s)), c = u({
180
+ const l = v({}, nt(t), nt(s)), c = v({
181
181
  type: p
182
- }, l, m, s, {
183
- onBlur: I(l),
184
- onClick: E(l),
185
- onFocus: $(l),
182
+ }, l, h, s, {
183
+ onBlur: T(l),
184
+ onClick: H(l),
185
+ onFocus: g(l),
186
186
  onKeyDown: z(l),
187
- onKeyUp: H(l),
188
- onMouseDown: N(l),
187
+ onKeyUp: V(l),
188
+ onMouseDown: _(l),
189
189
  onMouseLeave: P(l),
190
- ref: V
190
+ ref: A
191
191
  });
192
192
  return delete c.onFocusVisible, c;
193
193
  },
194
- focusVisible: f,
195
- setFocusVisible: T,
196
- active: D,
197
- rootRef: V
194
+ focusVisible: $,
195
+ setFocusVisible: R,
196
+ active: b,
197
+ rootRef: A
198
198
  };
199
199
  }
200
- const ce = ({
200
+ const Ot = ({
201
201
  theme: t,
202
202
  ownerState: a
203
- }, n) => {
204
- let o = {};
203
+ }, o) => {
204
+ let n = {};
205
205
  function r(e) {
206
206
  if (typeof e == "function") {
207
207
  const i = e(t);
208
208
  r(i);
209
209
  } else Array.isArray(e) ? e.forEach((i) => {
210
210
  typeof i != "boolean" && r(i);
211
- }) : typeof e == "object" && (o = u({}, o, e));
211
+ }) : typeof e == "object" && (n = v({}, n, e));
212
212
  }
213
- return a.sx && (r(a.sx), n.forEach((e) => {
214
- const i = o[e];
213
+ return a.sx && (r(a.sx), o.forEach((e) => {
214
+ const i = n[e];
215
215
  if (typeof i == "string" || typeof i == "number")
216
216
  if (e === "borderRadius")
217
217
  if (typeof i == "number")
218
- o[e] = `${i}px`;
218
+ n[e] = `${i}px`;
219
219
  else {
220
220
  var p;
221
- o[e] = ((p = t.vars) == null ? void 0 : p.radius[i]) || i;
221
+ n[e] = ((p = t.vars) == null ? void 0 : p.radius[i]) || i;
222
222
  }
223
- else ["p", "padding", "m", "margin"].indexOf(e) !== -1 && typeof i == "number" ? o[e] = t.spacing(i) : o[e] = i;
224
- else typeof i == "function" ? o[e] = i(t) : o[e] = void 0;
225
- })), o;
226
- }, q = (t) => (a) => `--${t ? `${t}-` : ""}${a.replace(/^--/, "")}`, j = "data-skip-inverted-colors", ut = `& :not([${j}], [${j}] *)`, vt = (t) => {
227
- var a, n, o, r, e, i, p, y, B, D, k, S, b, x, R, f, T, C, g, P, I, $;
228
- const d = q(t.cssVarPrefix);
223
+ else ["p", "padding", "m", "margin"].indexOf(e) !== -1 && typeof i == "number" ? n[e] = t.spacing(i) : n[e] = i;
224
+ else typeof i == "function" ? n[e] = i(t) : n[e] = void 0;
225
+ })), n;
226
+ }, at = (t) => (a) => `--${t ? `${t}-` : ""}${a.replace(/^--/, "")}`, K = "data-skip-inverted-colors", vt = `& :not([${K}], [${K}] *)`, gt = (t) => {
227
+ var a, o, n, r, e, i, p, m, B, b, x, S, C, D, I, $, R, y, f, P, T, g;
228
+ const d = at(t.cssVarPrefix);
229
229
  return {
230
230
  "--variant-plainColor": "var(--variant-plainColor) !important",
231
231
  "--variant-plainHoverColor": "var(--variant-plainHoverColor) !important",
@@ -258,45 +258,45 @@ const ce = ({
258
258
  colorScheme: "unset",
259
259
  [t.getColorSchemeSelector("light")]: {
260
260
  [d("--palette-focusVisible")]: `${(a = t.colorSchemes.light) == null ? void 0 : a.palette.focusVisible} !important`,
261
- [d("--palette-background-body")]: `${(n = t.colorSchemes.light) == null ? void 0 : n.palette.background.body} !important`,
262
- [d("--palette-background-surface")]: `${(o = t.colorSchemes.light) == null ? void 0 : o.palette.background.surface} !important`,
261
+ [d("--palette-background-body")]: `${(o = t.colorSchemes.light) == null ? void 0 : o.palette.background.body} !important`,
262
+ [d("--palette-background-surface")]: `${(n = t.colorSchemes.light) == null ? void 0 : n.palette.background.surface} !important`,
263
263
  [d("--palette-background-popup")]: `${(r = t.colorSchemes.light) == null ? void 0 : r.palette.background.popup} !important`,
264
264
  [d("--palette-background-level1")]: `${(e = t.colorSchemes.light) == null ? void 0 : e.palette.background.level1} !important`,
265
265
  [d("--palette-background-level2")]: `${(i = t.colorSchemes.light) == null ? void 0 : i.palette.background.level2} !important`,
266
266
  [d("--palette-background-level3")]: `${(p = t.colorSchemes.light) == null ? void 0 : p.palette.background.level3} !important`,
267
- [d("--palette-text-primary")]: `${(y = t.colorSchemes.light) == null ? void 0 : y.palette.text.primary} !important`,
267
+ [d("--palette-text-primary")]: `${(m = t.colorSchemes.light) == null ? void 0 : m.palette.text.primary} !important`,
268
268
  [d("--palette-text-secondary")]: `${(B = t.colorSchemes.light) == null ? void 0 : B.palette.text.secondary} !important`,
269
- [d("--palette-text-tertiary")]: `${(D = t.colorSchemes.light) == null ? void 0 : D.palette.text.tertiary} !important`,
270
- [d("--palette-divider")]: `${(k = t.colorSchemes.light) == null ? void 0 : k.palette.divider} !important`
269
+ [d("--palette-text-tertiary")]: `${(b = t.colorSchemes.light) == null ? void 0 : b.palette.text.tertiary} !important`,
270
+ [d("--palette-divider")]: `${(x = t.colorSchemes.light) == null ? void 0 : x.palette.divider} !important`
271
271
  },
272
272
  [t.getColorSchemeSelector("dark")]: {
273
273
  [d("--palette-focusVisible")]: `${(S = t.colorSchemes.dark) == null ? void 0 : S.palette.focusVisible} !important`,
274
- [d("--palette-background-body")]: `${(b = t.colorSchemes.dark) == null ? void 0 : b.palette.background.body} !important`,
275
- [d("--palette-background-surface")]: `${(x = t.colorSchemes.dark) == null ? void 0 : x.palette.background.surface} !important`,
276
- [d("--palette-background-popup")]: `${(R = t.colorSchemes.dark) == null ? void 0 : R.palette.background.popup} !important`,
277
- [d("--palette-background-level1")]: `${(f = t.colorSchemes.dark) == null ? void 0 : f.palette.background.level1} !important`,
278
- [d("--palette-background-level2")]: `${(T = t.colorSchemes.dark) == null ? void 0 : T.palette.background.level2} !important`,
279
- [d("--palette-background-level3")]: `${(C = t.colorSchemes.dark) == null ? void 0 : C.palette.background.level3} !important`,
280
- [d("--palette-text-primary")]: `${(g = t.colorSchemes.dark) == null ? void 0 : g.palette.text.primary} !important`,
274
+ [d("--palette-background-body")]: `${(C = t.colorSchemes.dark) == null ? void 0 : C.palette.background.body} !important`,
275
+ [d("--palette-background-surface")]: `${(D = t.colorSchemes.dark) == null ? void 0 : D.palette.background.surface} !important`,
276
+ [d("--palette-background-popup")]: `${(I = t.colorSchemes.dark) == null ? void 0 : I.palette.background.popup} !important`,
277
+ [d("--palette-background-level1")]: `${($ = t.colorSchemes.dark) == null ? void 0 : $.palette.background.level1} !important`,
278
+ [d("--palette-background-level2")]: `${(R = t.colorSchemes.dark) == null ? void 0 : R.palette.background.level2} !important`,
279
+ [d("--palette-background-level3")]: `${(y = t.colorSchemes.dark) == null ? void 0 : y.palette.background.level3} !important`,
280
+ [d("--palette-text-primary")]: `${(f = t.colorSchemes.dark) == null ? void 0 : f.palette.text.primary} !important`,
281
281
  [d("--palette-text-secondary")]: `${(P = t.colorSchemes.dark) == null ? void 0 : P.palette.text.secondary} !important`,
282
- [d("--palette-text-tertiary")]: `${(I = t.colorSchemes.dark) == null ? void 0 : I.palette.text.tertiary} !important`,
283
- [d("--palette-divider")]: `${($ = t.colorSchemes.dark) == null ? void 0 : $.palette.divider} !important`
282
+ [d("--palette-text-tertiary")]: `${(T = t.colorSchemes.dark) == null ? void 0 : T.palette.text.tertiary} !important`,
283
+ [d("--palette-divider")]: `${(g = t.colorSchemes.dark) == null ? void 0 : g.palette.divider} !important`
284
284
  }
285
285
  };
286
286
  };
287
- function Mt(t) {
287
+ function Ft(t) {
288
288
  return t.theme !== void 0;
289
289
  }
290
- const de = (t) => (a) => {
291
- const n = Mt(a) ? a.theme : a, o = it(n.cssVarPrefix), r = q(n.cssVarPrefix), e = (i) => {
290
+ const Lt = (t) => (a) => {
291
+ const o = Ft(a) ? a.theme : a, n = pt(o.cssVarPrefix), r = at(o.cssVarPrefix), e = (i) => {
292
292
  const p = i.split("-");
293
- return o(i, n.palette[p[1]][p[2]]);
293
+ return n(i, o.palette[p[1]][p[2]]);
294
294
  };
295
295
  return {
296
- [ut]: {
296
+ [vt]: {
297
297
  "--Badge-ringColor": e(`palette-${t}-solidBg`),
298
298
  "--Icon-color": "currentColor",
299
- [`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]: {
299
+ [`${o.getColorSchemeSelector("light")}, ${o.getColorSchemeSelector("dark")}`]: {
300
300
  colorScheme: "dark",
301
301
  [r("--palette-focusVisible")]: e(`palette-${t}-200`),
302
302
  [r("--palette-background-body")]: "rgba(0 0 0 / 0.1)",
@@ -339,20 +339,20 @@ const de = (t) => (a) => {
339
339
  "--variant-solidDisabledBg": `rgba(${e(`palette-${t}-lightChannel`)} / 0.1)`
340
340
  }
341
341
  },
342
- [`&, & [${j}]`]: vt(n)
342
+ [`&, & [${K}]`]: gt(o)
343
343
  };
344
- }, pe = (t) => (a) => {
344
+ }, jt = (t) => (a) => {
345
345
  const {
346
- theme: n = a
347
- } = a, o = it(n.cssVarPrefix), r = q(n.cssVarPrefix), e = (i) => {
346
+ theme: o = a
347
+ } = a, n = pt(o.cssVarPrefix), r = at(o.cssVarPrefix), e = (i) => {
348
348
  const p = i.split("-");
349
- return o(i, n.palette[p[1]][p[2]]);
349
+ return n(i, o.palette[p[1]][p[2]]);
350
350
  };
351
351
  return {
352
- [ut]: {
352
+ [vt]: {
353
353
  "--Badge-ringColor": e(`palette-${t}-softBg`),
354
354
  "--Icon-color": "currentColor",
355
- [n.getColorSchemeSelector("dark")]: {
355
+ [o.getColorSchemeSelector("dark")]: {
356
356
  [r("--palette-focusVisible")]: e(`palette-${t}-300`),
357
357
  [r("--palette-background-body")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.1)`,
358
358
  [r("--palette-background-surface")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.08)`,
@@ -394,7 +394,7 @@ const de = (t) => (a) => {
394
394
  "--variant-solidDisabledBg": `rgba(${e(`palette-${t}-mainChannel`)} / 0.12)`
395
395
  },
396
396
  // `light` (default color scheme) should come last in case that `theme.getColorSchemeSelector()` return the same value
397
- [n.getColorSchemeSelector("light")]: {
397
+ [o.getColorSchemeSelector("light")]: {
398
398
  [r("--palette-focusVisible")]: e(`palette-${t}-500`),
399
399
  [r("--palette-background-body")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.1)`,
400
400
  [r("--palette-background-surface")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.08)`,
@@ -435,41 +435,41 @@ const de = (t) => (a) => {
435
435
  "--variant-solidDisabledBg": `rgba(${e(`palette-${t}-mainChannel`)} / 0.08)`
436
436
  }
437
437
  },
438
- [`&, & [${j}]`]: vt(n)
438
+ [`&, & [${K}]`]: gt(o)
439
439
  };
440
- }, Lt = /* @__PURE__ */ v.createContext({}), Wt = /* @__PURE__ */ v.createContext(void 0);
441
- function Ot(t) {
442
- return st("MuiTypography", t);
440
+ }, Ut = /* @__PURE__ */ u.createContext({}), Kt = /* @__PURE__ */ u.createContext(void 0);
441
+ function Jt(t) {
442
+ return Q("MuiTypography", t);
443
443
  }
444
- ct("MuiTypography", ["root", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "noWrap", "gutterBottom", "startDecorator", "endDecorator", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
445
- const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap", "level", "levelMapping", "children", "endDecorator", "startDecorator", "variant", "slots", "slotProps"], rt = /* @__PURE__ */ v.createContext(!1), Kt = /* @__PURE__ */ v.createContext(!1), Jt = (t) => {
444
+ w("MuiTypography", ["root", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "noWrap", "gutterBottom", "startDecorator", "endDecorator", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
445
+ const Gt = ["color", "textColor"], Xt = ["component", "gutterBottom", "noWrap", "level", "levelMapping", "children", "endDecorator", "startDecorator", "variant", "slots", "slotProps"], it = /* @__PURE__ */ u.createContext(!1), Yt = /* @__PURE__ */ u.createContext(!1), Zt = (t) => {
446
446
  const {
447
447
  gutterBottom: a,
448
- noWrap: n,
449
- level: o,
448
+ noWrap: o,
449
+ level: n,
450
450
  color: r,
451
451
  variant: e
452
452
  } = t, i = {
453
- root: ["root", o, a && "gutterBottom", n && "noWrap", r && `color${O(r)}`, e && `variant${O(e)}`],
453
+ root: ["root", n, a && "gutterBottom", o && "noWrap", r && `color${W(r)}`, e && `variant${W(e)}`],
454
454
  startDecorator: ["startDecorator"],
455
455
  endDecorator: ["endDecorator"]
456
456
  };
457
- return pt(i, Ot, {});
458
- }, Gt = F("span", {
457
+ return et(i, Jt, {});
458
+ }, qt = N("span", {
459
459
  name: "JoyTypography",
460
460
  slot: "StartDecorator",
461
461
  overridesResolver: (t, a) => a.startDecorator
462
462
  })({
463
463
  display: "inline-flex",
464
464
  marginInlineEnd: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
465
- }), Xt = F("span", {
465
+ }), Qt = N("span", {
466
466
  name: "JoyTypography",
467
467
  slot: "endDecorator",
468
468
  overridesResolver: (t, a) => a.endDecorator
469
469
  })({
470
470
  display: "inline-flex",
471
471
  marginInlineStart: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
472
- }), Zt = F("span", {
472
+ }), wt = N("span", {
473
473
  name: "JoyTypography",
474
474
  slot: "Root",
475
475
  overridesResolver: (t, a) => a.root
@@ -477,9 +477,9 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
477
477
  theme: t,
478
478
  ownerState: a
479
479
  }) => {
480
- var n, o, r, e, i;
481
- const p = a.level !== "inherit" ? (n = t.typography[a.level]) == null ? void 0 : n.lineHeight : "1";
482
- return u({
480
+ var o, n, r, e, i;
481
+ const p = a.level !== "inherit" ? (o = t.typography[a.level]) == null ? void 0 : o.lineHeight : "1";
482
+ return v({
483
483
  "--Icon-fontSize": `calc(1em * ${p})`
484
484
  }, a.color && {
485
485
  "--Icon-color": "currentColor"
@@ -488,20 +488,20 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
488
488
  }, a.nesting ? {
489
489
  display: "inline"
490
490
  // looks better than `inline-block` when using with `variant` prop.
491
- } : u({
491
+ } : v({
492
492
  display: "block"
493
493
  }, a.unstable_hasSkeleton && {
494
494
  position: "relative"
495
- }), (a.startDecorator || a.endDecorator) && u({
495
+ }), (a.startDecorator || a.endDecorator) && v({
496
496
  display: "flex",
497
497
  alignItems: "center"
498
- }, a.nesting && u({
498
+ }, a.nesting && v({
499
499
  display: "inline-flex"
500
500
  }, a.startDecorator && {
501
501
  verticalAlign: "bottom"
502
502
  // to make the text align with the parent's content
503
503
  })), a.level && a.level !== "inherit" && t.typography[a.level], {
504
- fontSize: `var(--Typography-fontSize, ${a.level && a.level !== "inherit" && (o = (r = t.typography[a.level]) == null ? void 0 : r.fontSize) != null ? o : "inherit"})`
504
+ fontSize: `var(--Typography-fontSize, ${a.level && a.level !== "inherit" && (n = (r = t.typography[a.level]) == null ? void 0 : r.fontSize) != null ? n : "inherit"})`
505
505
  }, a.noWrap && {
506
506
  overflow: "hidden",
507
507
  textOverflow: "ellipsis",
@@ -510,14 +510,14 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
510
510
  marginBottom: "0.35em"
511
511
  }, a.color && {
512
512
  color: `var(--variant-plainColor, rgba(${(e = t.vars.palette[a.color]) == null ? void 0 : e.mainChannel} / 1))`
513
- }, a.variant && u({
513
+ }, a.variant && v({
514
514
  borderRadius: t.vars.radius.xs,
515
515
  paddingBlock: "min(0.1em, 4px)",
516
516
  paddingInline: "0.25em"
517
517
  }, !a.nesting && {
518
518
  marginInline: "-0.25em"
519
519
  }, (i = t.variants[a.variant]) == null ? void 0 : i[a.color]));
520
- }), nt = {
520
+ }), st = {
521
521
  h1: "h1",
522
522
  h2: "h2",
523
523
  h3: "h3",
@@ -530,93 +530,93 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
530
530
  "body-sm": "p",
531
531
  "body-xs": "span",
532
532
  inherit: "p"
533
- }, Qt = /* @__PURE__ */ v.forwardRef(function(a, n) {
534
- var o;
535
- const r = dt({
533
+ }, te = /* @__PURE__ */ u.forwardRef(function(a, o) {
534
+ var n;
535
+ const r = tt({
536
536
  props: a,
537
537
  name: "JoyTypography"
538
538
  }), {
539
539
  color: e,
540
540
  textColor: i
541
- } = r, p = Q(r, Ut), y = v.useContext(rt), B = v.useContext(Kt), D = Dt(u({}, p, {
541
+ } = r, p = U(r, Gt), m = u.useContext(it), B = u.useContext(Yt), b = Dt(v({}, p, {
542
542
  color: i
543
543
  })), {
544
- component: k,
544
+ component: x,
545
545
  gutterBottom: S = !1,
546
- noWrap: b = !1,
547
- level: x = "body-md",
548
- levelMapping: R = nt,
549
- children: f,
550
- endDecorator: T,
551
- startDecorator: C,
552
- variant: g,
546
+ noWrap: C = !1,
547
+ level: D = "body-md",
548
+ levelMapping: I = st,
549
+ children: $,
550
+ endDecorator: R,
551
+ startDecorator: y,
552
+ variant: f,
553
553
  slots: P = {},
554
- slotProps: I = {}
555
- } = D, $ = Q(D, jt), d = (o = a.color) != null ? o : g ? e ?? "neutral" : e, E = y || B ? a.level || "inherit" : x, N = kt(f, ["Skeleton"]), z = k || (y ? "span" : R[E] || nt[E] || "span"), H = u({}, D, {
556
- level: E,
554
+ slotProps: T = {}
555
+ } = b, g = U(b, Xt), d = (n = a.color) != null ? n : f ? e ?? "neutral" : e, H = m || B ? a.level || "inherit" : D, _ = ut($, ["Skeleton"]), z = x || (m ? "span" : I[H] || st[H] || "span"), V = v({}, b, {
556
+ level: H,
557
557
  component: z,
558
558
  color: d,
559
559
  gutterBottom: S,
560
- noWrap: b,
561
- nesting: y,
562
- variant: g,
563
- unstable_hasSkeleton: N
564
- }), V = Jt(H), m = u({}, $, {
560
+ noWrap: C,
561
+ nesting: m,
562
+ variant: f,
563
+ unstable_hasSkeleton: _
564
+ }), A = Zt(V), h = v({}, g, {
565
565
  component: z,
566
566
  slots: P,
567
- slotProps: I
568
- }), [M, s] = A("root", {
569
- ref: n,
570
- className: V.root,
571
- elementType: Zt,
572
- externalForwardedProps: m,
573
- ownerState: H
574
- }), [l, c] = A("startDecorator", {
575
- className: V.startDecorator,
576
- elementType: Gt,
577
- externalForwardedProps: m,
578
- ownerState: H
579
- }), [h, G] = A("endDecorator", {
580
- className: V.endDecorator,
581
- elementType: Xt,
582
- externalForwardedProps: m,
583
- ownerState: H
567
+ slotProps: T
568
+ }), [O, s] = M("root", {
569
+ ref: o,
570
+ className: A.root,
571
+ elementType: wt,
572
+ externalForwardedProps: h,
573
+ ownerState: V
574
+ }), [l, c] = M("startDecorator", {
575
+ className: A.startDecorator,
576
+ elementType: qt,
577
+ externalForwardedProps: h,
578
+ ownerState: V
579
+ }), [k, X] = M("endDecorator", {
580
+ className: A.endDecorator,
581
+ elementType: Qt,
582
+ externalForwardedProps: h,
583
+ ownerState: V
584
584
  });
585
- return /* @__PURE__ */ _.jsx(rt.Provider, {
585
+ return /* @__PURE__ */ E.jsx(it.Provider, {
586
586
  value: !0,
587
- children: /* @__PURE__ */ _.jsxs(M, u({}, s, {
588
- children: [C && /* @__PURE__ */ _.jsx(l, u({}, c, {
589
- children: C
590
- })), N ? /* @__PURE__ */ v.cloneElement(f, {
591
- variant: f.props.variant || "inline"
592
- }) : f, T && /* @__PURE__ */ _.jsx(h, u({}, G, {
593
- children: T
587
+ children: /* @__PURE__ */ E.jsxs(O, v({}, s, {
588
+ children: [y && /* @__PURE__ */ E.jsx(l, v({}, c, {
589
+ children: y
590
+ })), _ ? /* @__PURE__ */ u.cloneElement($, {
591
+ variant: $.props.variant || "inline"
592
+ }) : $, R && /* @__PURE__ */ E.jsx(k, v({}, X, {
593
+ children: R
594
594
  }))]
595
595
  }))
596
596
  });
597
597
  });
598
- Qt.muiName = "Typography";
599
- function Yt(t) {
600
- return st("MuiButton", t);
598
+ te.muiName = "Typography";
599
+ function ee(t) {
600
+ return Q("MuiButton", t);
601
601
  }
602
- const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingIndicatorCenter"]), qt = ["children", "action", "color", "variant", "size", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingPosition", "loadingIndicator", "disabled", "component", "slots", "slotProps"], wt = (t) => {
602
+ const dt = w("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingIndicatorCenter"]), ae = ["children", "action", "color", "variant", "size", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingPosition", "loadingIndicator", "disabled", "component", "slots", "slotProps"], re = (t) => {
603
603
  const {
604
604
  color: a,
605
- disabled: n,
606
- focusVisible: o,
605
+ disabled: o,
606
+ focusVisible: n,
607
607
  focusVisibleClassName: r,
608
608
  fullWidth: e,
609
609
  size: i,
610
610
  variant: p,
611
- loading: y
611
+ loading: m
612
612
  } = t, B = {
613
- root: ["root", n && "disabled", o && "focusVisible", e && "fullWidth", p && `variant${O(p)}`, a && `color${O(a)}`, i && `size${O(i)}`, y && "loading"],
613
+ root: ["root", o && "disabled", n && "focusVisible", e && "fullWidth", p && `variant${W(p)}`, a && `color${W(a)}`, i && `size${W(i)}`, m && "loading"],
614
614
  startDecorator: ["startDecorator"],
615
615
  endDecorator: ["endDecorator"],
616
616
  loadingIndicatorCenter: ["loadingIndicatorCenter"]
617
- }, D = pt(B, Yt, {});
618
- return o && r && (D.root += ` ${r}`), D;
619
- }, te = F("span", {
617
+ }, b = et(B, ee, {});
618
+ return n && r && (b.root += ` ${r}`), b;
619
+ }, oe = N("span", {
620
620
  name: "JoyButton",
621
621
  slot: "StartDecorator",
622
622
  overridesResolver: (t, a) => a.startDecorator
@@ -625,7 +625,7 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
625
625
  "--CircularProgress-margin": "0 0 0 calc(var(--Button-gap) / -2)",
626
626
  display: "inherit",
627
627
  marginRight: "var(--Button-gap)"
628
- }), ee = F("span", {
628
+ }), ne = N("span", {
629
629
  name: "JoyButton",
630
630
  slot: "EndDecorator",
631
631
  overridesResolver: (t, a) => a.endDecorator
@@ -634,7 +634,7 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
634
634
  "--CircularProgress-margin": "0 calc(var(--Button-gap) / -2) 0 0",
635
635
  display: "inherit",
636
636
  marginLeft: "var(--Button-gap)"
637
- }), ae = F("span", {
637
+ }), le = N("span", {
638
638
  name: "JoyButton",
639
639
  slot: "LoadingCenter",
640
640
  overridesResolver: (t, a) => a.loadingIndicatorCenter
@@ -642,22 +642,22 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
642
642
  theme: t,
643
643
  ownerState: a
644
644
  }) => {
645
- var n, o;
646
- return u({
645
+ var o, n;
646
+ return v({
647
647
  display: "inherit",
648
648
  position: "absolute",
649
649
  left: "50%",
650
650
  transform: "translateX(-50%)",
651
- color: (n = t.variants[a.variant]) == null || (n = n[a.color]) == null ? void 0 : n.color
651
+ color: (o = t.variants[a.variant]) == null || (o = o[a.color]) == null ? void 0 : o.color
652
652
  }, a.disabled && {
653
- color: (o = t.variants[`${a.variant}Disabled`]) == null || (o = o[a.color]) == null ? void 0 : o.color
653
+ color: (n = t.variants[`${a.variant}Disabled`]) == null || (n = n[a.color]) == null ? void 0 : n.color
654
654
  });
655
- }), re = ({
655
+ }), ie = ({
656
656
  theme: t,
657
657
  ownerState: a
658
658
  }) => {
659
- var n, o, r, e;
660
- return [u({
659
+ var o, n, r, e;
660
+ return [v({
661
661
  "--Icon-margin": "initial",
662
662
  // reset the icon's margin.
663
663
  "--Icon-color": a.color !== "neutral" || a.variant === "solid" ? "currentColor" : t.vars.palette.text.icon
@@ -718,141 +718,299 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
718
718
  width: "100%"
719
719
  }, {
720
720
  [t.focus.selector]: t.focus.default
721
- }), u({}, (n = t.variants[a.variant]) == null ? void 0 : n[a.color], {
721
+ }), v({}, (o = t.variants[a.variant]) == null ? void 0 : o[a.color], {
722
722
  "&:hover": {
723
- "@media (hover: hover)": (o = t.variants[`${a.variant}Hover`]) == null ? void 0 : o[a.color]
723
+ "@media (hover: hover)": (n = t.variants[`${a.variant}Hover`]) == null ? void 0 : n[a.color]
724
724
  },
725
725
  '&:active, &[aria-pressed="true"]': (r = t.variants[`${a.variant}Active`]) == null ? void 0 : r[a.color],
726
- [`&.${ot.disabled}`]: (e = t.variants[`${a.variant}Disabled`]) == null ? void 0 : e[a.color]
726
+ [`&.${dt.disabled}`]: (e = t.variants[`${a.variant}Disabled`]) == null ? void 0 : e[a.color]
727
727
  }, a.loadingPosition === "center" && {
728
728
  // this has to come after the variant styles to take effect.
729
- [`&.${ot.loading}`]: {
729
+ [`&.${dt.loading}`]: {
730
730
  color: "transparent"
731
731
  }
732
732
  })];
733
- }, ne = F("button", {
733
+ }, se = N("button", {
734
734
  name: "JoyButton",
735
735
  slot: "Root",
736
736
  overridesResolver: (t, a) => a.root
737
- })(re), oe = /* @__PURE__ */ v.forwardRef(function(a, n) {
738
- var o;
739
- const r = dt({
737
+ })(ie), de = /* @__PURE__ */ u.forwardRef(function(a, o) {
738
+ var n;
739
+ const r = tt({
740
740
  props: a,
741
741
  name: "JoyButton"
742
742
  }), {
743
743
  children: e,
744
744
  action: i,
745
745
  color: p = "primary",
746
- variant: y = "solid",
746
+ variant: m = "solid",
747
747
  size: B = "md",
748
- fullWidth: D = !1,
749
- startDecorator: k,
748
+ fullWidth: b = !1,
749
+ startDecorator: x,
750
750
  endDecorator: S,
751
- loading: b = !1,
752
- loadingPosition: x = "center",
753
- loadingIndicator: R,
754
- disabled: f,
755
- component: T,
756
- slots: C = {},
757
- slotProps: g = {}
758
- } = r, P = Q(r, qt), I = v.useContext(Lt), $ = v.useContext(Wt), d = a.variant || I.variant || y, E = a.size || I.size || B, N = a.color || I.color || p, z = (o = a.loading || a.disabled) != null ? o : I.disabled || b || f, H = v.useRef(null), V = lt(H, n), {
759
- focusVisible: m,
760
- setFocusVisible: M,
751
+ loading: C = !1,
752
+ loadingPosition: D = "center",
753
+ loadingIndicator: I,
754
+ disabled: $,
755
+ component: R,
756
+ slots: y = {},
757
+ slotProps: f = {}
758
+ } = r, P = U(r, ae), T = u.useContext(Ut), g = u.useContext(Kt), d = a.variant || T.variant || m, H = a.size || T.size || B, _ = a.color || T.color || p, z = (n = a.loading || a.disabled) != null ? n : T.disabled || C || $, V = u.useRef(null), A = ct(V, o), {
759
+ focusVisible: h,
760
+ setFocusVisible: O,
761
761
  getRootProps: s
762
- } = Ft(u({}, r, {
762
+ } = Wt(v({}, r, {
763
763
  disabled: z,
764
- rootRef: V
765
- })), l = R ?? /* @__PURE__ */ _.jsx(xt, {
766
- color: N,
764
+ rootRef: A
765
+ })), l = I ?? /* @__PURE__ */ E.jsx(kt, {
766
+ color: _,
767
767
  thickness: {
768
768
  sm: 2,
769
769
  md: 3,
770
770
  lg: 4
771
- }[E] || 3
771
+ }[H] || 3
772
772
  });
773
- v.useImperativeHandle(i, () => ({
773
+ u.useImperativeHandle(i, () => ({
774
774
  focusVisible: () => {
775
- var W;
776
- M(!0), (W = H.current) == null || W.focus();
775
+ var L;
776
+ O(!0), (L = V.current) == null || L.focus();
777
777
  }
778
- }), [M]);
779
- const c = u({}, r, {
780
- color: N,
781
- fullWidth: D,
778
+ }), [O]);
779
+ const c = v({}, r, {
780
+ color: _,
781
+ fullWidth: b,
782
782
  variant: d,
783
- size: E,
784
- focusVisible: m,
785
- loading: b,
786
- loadingPosition: x,
783
+ size: H,
784
+ focusVisible: h,
785
+ loading: C,
786
+ loadingPosition: D,
787
787
  disabled: z
788
- }), h = wt(c), G = (W) => {
789
- var w;
790
- let X = r.onClick;
791
- if (typeof g.root == "function" ? X = g.root(c).onClick : g.root && (X = g.root.onClick), (w = X) == null || w(W), $) {
792
- var tt;
793
- (tt = $.onClick) == null || tt.call($, W, r.value);
788
+ }), k = re(c), X = (L) => {
789
+ var rt;
790
+ let Y = r.onClick;
791
+ if (typeof f.root == "function" ? Y = f.root(c).onClick : f.root && (Y = f.root.onClick), (rt = Y) == null || rt(L), g) {
792
+ var ot;
793
+ (ot = g.onClick) == null || ot.call(g, L, r.value);
794
794
  }
795
795
  };
796
- let L = r["aria-pressed"];
797
- typeof g.root == "function" ? L = g.root(c)["aria-pressed"] : g.root && (L = g.root["aria-pressed"]), $ != null && $.value && (Array.isArray($.value) ? L = $.value.indexOf(r.value) !== -1 : L = $.value === r.value);
798
- const U = u({}, P, {
799
- component: T,
800
- slots: C,
801
- slotProps: g
802
- }), [gt, mt] = A("root", {
803
- ref: n,
804
- className: h.root,
805
- elementType: ne,
806
- externalForwardedProps: U,
796
+ let F = r["aria-pressed"];
797
+ typeof f.root == "function" ? F = f.root(c)["aria-pressed"] : f.root && (F = f.root["aria-pressed"]), g != null && g.value && (Array.isArray(g.value) ? F = g.value.indexOf(r.value) !== -1 : F = g.value === r.value);
798
+ const j = v({}, P, {
799
+ component: R,
800
+ slots: y,
801
+ slotProps: f
802
+ }), [mt, ft] = M("root", {
803
+ ref: o,
804
+ className: k.root,
805
+ elementType: se,
806
+ externalForwardedProps: j,
807
807
  getSlotProps: s,
808
808
  ownerState: c,
809
809
  additionalProps: {
810
- onClick: G,
811
- "aria-pressed": L
810
+ onClick: X,
811
+ "aria-pressed": F
812
812
  }
813
- }), [ft, $t] = A("startDecorator", {
814
- className: h.startDecorator,
815
- elementType: te,
816
- externalForwardedProps: U,
813
+ }), [$t, ht] = M("startDecorator", {
814
+ className: k.startDecorator,
815
+ elementType: oe,
816
+ externalForwardedProps: j,
817
817
  ownerState: c
818
- }), [ht, bt] = A("endDecorator", {
819
- className: h.endDecorator,
820
- elementType: ee,
821
- externalForwardedProps: U,
818
+ }), [bt, Ct] = M("endDecorator", {
819
+ className: k.endDecorator,
820
+ elementType: ne,
821
+ externalForwardedProps: j,
822
822
  ownerState: c
823
- }), [Ct, yt] = A("loadingIndicatorCenter", {
824
- className: h.loadingIndicatorCenter,
825
- elementType: ae,
826
- externalForwardedProps: U,
823
+ }), [yt, Bt] = M("loadingIndicatorCenter", {
824
+ className: k.loadingIndicatorCenter,
825
+ elementType: le,
826
+ externalForwardedProps: j,
827
827
  ownerState: c
828
828
  });
829
- return /* @__PURE__ */ _.jsxs(gt, u({}, mt, {
830
- children: [(k || b && x === "start") && /* @__PURE__ */ _.jsx(ft, u({}, $t, {
831
- children: b && x === "start" ? l : k
832
- })), e, b && x === "center" && /* @__PURE__ */ _.jsx(Ct, u({}, yt, {
829
+ return /* @__PURE__ */ E.jsxs(mt, v({}, ft, {
830
+ children: [(x || C && D === "start") && /* @__PURE__ */ E.jsx($t, v({}, ht, {
831
+ children: C && D === "start" ? l : x
832
+ })), e, C && D === "center" && /* @__PURE__ */ E.jsx(yt, v({}, Bt, {
833
833
  children: l
834
- })), (S || b && x === "end") && /* @__PURE__ */ _.jsx(ht, u({}, bt, {
835
- children: b && x === "end" ? l : S
834
+ })), (S || C && D === "end") && /* @__PURE__ */ E.jsx(bt, v({}, Ct, {
835
+ children: C && D === "end" ? l : S
836
836
  }))]
837
837
  }));
838
838
  });
839
- oe.muiName = "Button";
839
+ de.muiName = "Button";
840
+ function ce(t) {
841
+ return Q("MuiCard", t);
842
+ }
843
+ const be = w("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]), pe = ["className", "color", "component", "invertedColors", "size", "variant", "children", "orientation", "slots", "slotProps"], ue = (t) => {
844
+ const {
845
+ size: a,
846
+ variant: o,
847
+ color: n,
848
+ orientation: r
849
+ } = t, e = {
850
+ root: ["root", r, o && `variant${W(o)}`, n && `color${W(n)}`, a && `size${W(a)}`]
851
+ };
852
+ return et(e, ce, {});
853
+ }, ve = N("div")(({
854
+ theme: t,
855
+ ownerState: a
856
+ }) => {
857
+ var o;
858
+ const {
859
+ p: n,
860
+ padding: r,
861
+ borderRadius: e
862
+ } = Ot({
863
+ theme: t,
864
+ ownerState: a
865
+ }, ["p", "padding", "borderRadius"]);
866
+ return [v({
867
+ "--Icon-color": a.color !== "neutral" || a.variant === "solid" ? "currentColor" : t.vars.palette.text.icon,
868
+ // a context variable for any child component
869
+ "--Card-childRadius": "max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))",
870
+ // AspectRatio integration
871
+ "--AspectRatio-radius": "var(--Card-childRadius)",
872
+ // Link integration
873
+ "--unstable_actionMargin": "calc(-1 * var(--variant-borderWidth, 0px))",
874
+ // Link, Radio, Checkbox integration
875
+ "--unstable_actionRadius": "var(--Card-radius)",
876
+ // CardCover integration
877
+ "--CardCover-radius": "calc(var(--Card-radius) - var(--variant-borderWidth, 0px))",
878
+ // CardOverflow integration
879
+ "--CardOverflow-offset": "calc(-1 * var(--Card-padding))",
880
+ "--CardOverflow-radius": "calc(var(--Card-radius) - var(--variant-borderWidth, 0px))",
881
+ // Divider integration
882
+ "--Divider-inset": "calc(-1 * var(--Card-padding))"
883
+ }, a.size === "sm" && {
884
+ "--Card-radius": t.vars.radius.sm,
885
+ "--Card-padding": "0.625rem",
886
+ gap: "0.5rem"
887
+ }, a.size === "md" && {
888
+ "--Card-radius": t.vars.radius.md,
889
+ "--Card-padding": "1rem",
890
+ gap: "0.75rem 1rem"
891
+ }, a.size === "lg" && {
892
+ "--Card-radius": t.vars.radius.lg,
893
+ "--Card-padding": "1.5rem",
894
+ gap: "1rem 1.5rem"
895
+ }, {
896
+ padding: "var(--Card-padding)",
897
+ borderRadius: "var(--Card-radius)",
898
+ backgroundColor: t.vars.palette.background.surface,
899
+ position: "relative",
900
+ display: "flex",
901
+ flexDirection: a.orientation === "horizontal" ? "row" : "column"
902
+ }, t.typography[`body-${a.size}`], a.variant === "solid" && a.color && a.invertedColors && Lt(a.color)(t), a.variant === "soft" && a.color && a.invertedColors && jt(a.color)(t), (o = t.variants[a.variant]) == null ? void 0 : o[a.color]), n !== void 0 && {
903
+ "--Card-padding": n
904
+ }, r !== void 0 && {
905
+ "--Card-padding": r
906
+ }, e !== void 0 && {
907
+ "--Card-radius": e
908
+ }];
909
+ }), ge = N(ve, {
910
+ name: "JoyCard",
911
+ slot: "Root",
912
+ overridesResolver: (t, a) => a.root
913
+ })({}), Ce = /* @__PURE__ */ u.forwardRef(function(a, o) {
914
+ const n = tt({
915
+ props: a,
916
+ name: "JoyCard"
917
+ }), {
918
+ className: r,
919
+ color: e = "neutral",
920
+ component: i = "div",
921
+ invertedColors: p = !1,
922
+ size: m = "md",
923
+ variant: B = "outlined",
924
+ children: b,
925
+ orientation: x = "vertical",
926
+ slots: S = {},
927
+ slotProps: C = {}
928
+ } = n, D = U(n, pe), I = v({}, n, {
929
+ color: e,
930
+ component: i,
931
+ orientation: x,
932
+ size: m,
933
+ variant: B,
934
+ invertedColors: p
935
+ }), $ = ue(I), R = v({}, D, {
936
+ component: i,
937
+ slots: S,
938
+ slotProps: C
939
+ }), [y, f] = M("root", {
940
+ ref: o,
941
+ className: St($.root, r),
942
+ elementType: ge,
943
+ externalForwardedProps: R,
944
+ ownerState: I
945
+ });
946
+ return /* @__PURE__ */ E.jsx(y, v({}, f, {
947
+ children: u.Children.map(b, (P, T) => {
948
+ if (!/* @__PURE__ */ u.isValidElement(P))
949
+ return P;
950
+ const g = {};
951
+ if (ut(P, ["Divider"])) {
952
+ var d, H;
953
+ const _ = P.props;
954
+ g.inset = (d = _ == null ? void 0 : _.inset) != null ? d : "context";
955
+ const z = x === "vertical" ? "horizontal" : "vertical";
956
+ g.orientation = (H = _ == null ? void 0 : _.orientation) != null ? H : z;
957
+ }
958
+ return T === 0 && (g["data-first-child"] = ""), T === u.Children.count(b) - 1 && (g["data-last-child"] = ""), /* @__PURE__ */ u.cloneElement(P, g);
959
+ })
960
+ }));
961
+ }), ye = "$$material";
962
+ function me(t, a) {
963
+ const o = {
964
+ ...a
965
+ };
966
+ for (const n in t)
967
+ if (Object.prototype.hasOwnProperty.call(t, n)) {
968
+ const r = n;
969
+ if (r === "components" || r === "slots")
970
+ o[r] = {
971
+ ...t[r],
972
+ ...o[r]
973
+ };
974
+ else if (r === "componentsProps" || r === "slotProps") {
975
+ const e = t[r], i = a[r];
976
+ if (!i)
977
+ o[r] = e || {};
978
+ else if (!e)
979
+ o[r] = i;
980
+ else {
981
+ o[r] = {
982
+ ...i
983
+ };
984
+ for (const p in e)
985
+ if (Object.prototype.hasOwnProperty.call(e, p)) {
986
+ const m = p;
987
+ o[r][m] = me(e[m], i[m]);
988
+ }
989
+ }
990
+ } else o[r] === void 0 && (o[r] = t[r]);
991
+ }
992
+ return o;
993
+ }
840
994
  export {
841
- oe as B,
842
- j as I,
843
- Qt as T,
844
- zt as a,
845
- rt as b,
846
- Kt as c,
847
- se as d,
848
- K as e,
849
- ot as f,
850
- de as g,
851
- pe as h,
852
- kt as i,
853
- Lt as j,
854
- Wt as k,
855
- ce as r,
856
- ie as s,
857
- Ft as u
995
+ de as B,
996
+ Ce as C,
997
+ K as I,
998
+ ve as S,
999
+ te as T,
1000
+ it as a,
1001
+ Yt as b,
1002
+ he as c,
1003
+ Lt as d,
1004
+ jt as e,
1005
+ Wt as f,
1006
+ me as g,
1007
+ ye as h,
1008
+ ut as i,
1009
+ be as j,
1010
+ dt as k,
1011
+ Ut as l,
1012
+ Kt as m,
1013
+ Ot as r,
1014
+ $e as s,
1015
+ At as u
858
1016
  };