fansunited-widgets-cdn 0.0.86-RC3 → 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-CuOsmojH.js → Alert-B6o66mYo.js} +39 -39
  2. package/chunks/{CardContent-CD-WZh1l.js → CardContent-NCZhfGcZ.js} +16 -16
  3. package/chunks/{Snackbar-DHxnbCA3.js → ChevronRight-1pLZ7T0v.js} +100 -94
  4. package/chunks/{ClassicQuizWrapper-t04e9_6c.js → ClassicQuizWrapper-n2epPO4k.js} +201 -205
  5. package/chunks/CollectLeadForm-C_3plJtn-Dr8J3eDw.js +3918 -0
  6. package/chunks/{CollectLeadWrapper-CVAVswua.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-BxyLL3eA.js → EventGameWrapper-BphusLTk.js} +208 -219
  11. package/chunks/{Grid-Dpv_ZL23.js → Grid-yjqNNhEx.js} +32 -32
  12. package/chunks/{IconButton-Lt9Xks7c.js → IconButton-D7onwgY0.js} +22 -22
  13. package/chunks/{List-DLPlZGTP.js → List-8Vy9IZiv.js} +26 -29
  14. package/chunks/{MatchPredictionContainer-Ct6gXvLw.js → MatchPredictionContainer-BGytBwLo.js} +52 -54
  15. package/chunks/{MatchQuizWrapper-Fu6RfWVn.js → MatchQuizWrapper-BGjldBpF.js} +73 -85
  16. package/chunks/{OverlayLeadAfterCollection-DnqztPJ5-CpELr0AC.js → OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js} +104 -105
  17. package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd-DMFELrvA.js → OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js} +18 -19
  18. package/chunks/{PersonalityQuizWrapper-MpUK4n3Y.js → PersonalityQuizWrapper-BgLFw5tM.js} +3 -3
  19. package/chunks/{PlayerOfTheMatch-D4vuR7pz.js → PlayerOfTheMatch-CImBLG3T.js} +1008 -609
  20. package/chunks/{PollWrapper-CzKj8xxE.js → PollWrapper-QpIKCCVF.js} +30 -34
  21. package/chunks/Portal-DegkUXpU-ByGP9zS1.js +19236 -0
  22. package/chunks/{PreviewQuizById-WWS_LyJR.js → PreviewQuizById-Ba6yhxKV.js} +11 -14
  23. package/chunks/Sheet-U5EnSrgg.js +282 -0
  24. package/chunks/{Stack-Dgf2LXN0.js → Stack-DbDi7kPO.js} +30 -30
  25. package/chunks/Tabs-leN3Fb8D--YMyy3EM.js +783 -0
  26. package/chunks/{TeamNextMatchPrediction-C7HilNqW.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-DVA0KIUd.js → createSvgIcon-D9D4a1R9.js} +412 -390
  30. package/chunks/default-quiz-bg-ADjjIfPj.js +126 -0
  31. package/chunks/{index-C9MpfjqV.js → index-0ADq_9jd.js} +1 -1
  32. package/chunks/{index-DePIySlY.js → index-B74jHeYm.js} +2 -2
  33. package/chunks/{index-tzsdMoo-.js → index-BfVvJg5R.js} +1 -1
  34. package/chunks/{index-BqCHiyI6.js → index-BycLbIYY.js} +1 -1
  35. package/chunks/{index-DvgG9XJj.js → index-C6KAc5B_.js} +1 -1
  36. package/chunks/{index-24AwmTVJ.js → index-CHV6tlpH.js} +5 -5
  37. package/chunks/{index-C5qRf4TV.js → index-CILd3yUc.js} +1 -1
  38. package/chunks/index-CJqcqbHq.js +5 -0
  39. package/chunks/{index-CMmQs5A5.js → index-CK2RXrJm.js} +1 -1
  40. package/chunks/{index-BU6iona7.js → index-CPTAlr_t.js} +1 -1
  41. package/chunks/{index-DNeawo0R.js → index-CiB_Gqim.js} +1 -1
  42. package/chunks/{index-QpZE-92Y.js → index-CvGJXa6l.js} +1 -1
  43. package/chunks/{index-BSD7mvEU.js → index-CviTG4Nv.js} +1 -1
  44. package/chunks/index-DUQ2LFod-Cw45tHim.js +4510 -0
  45. package/chunks/{index-rgFj976B.js → index-Da0AXb_O.js} +1 -1
  46. package/chunks/{index-DoRYU_1L.js → index-DwR4J2nN.js} +1 -1
  47. package/chunks/{index-3vJS8JzK.js → index-UwW9niUj.js} +1 -1
  48. package/chunks/index.es-wHqA4PHm.js +11480 -0
  49. package/chunks/{init-BEkECL0v.js → init-C-gCorsh.js} +1 -1
  50. package/chunks/{main-XP7dqk6g.js → main-Bh6iw92_.js} +548 -564
  51. package/chunks/{Button-BV7YIFkS.js → resolveProps-Bgg0H6c2.js} +471 -313
  52. package/chunks/{users-D_xgC4iQ.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-D3Sgxj7p.js +0 -125
  58. package/chunks/Avatar-BTsEKfhc.js +0 -186
  59. package/chunks/Card-DRIT0wtY.js +0 -129
  60. package/chunks/ChevronRight-BrCKlr3T.js +0 -11
  61. package/chunks/Chip-6HLNTHMI.js +0 -281
  62. package/chunks/CollectLeadForm-DtmR2Vuf-B_3JkHJC.js +0 -1560
  63. package/chunks/DialogActions-C5kAgHal.js +0 -45
  64. package/chunks/DialogContent-MIXff4nd.js +0 -60
  65. package/chunks/EitherOrById-CAo8gPjm.js +0 -1496
  66. package/chunks/EitherOrPreviewWrapper-DFi2bviS.js +0 -47
  67. package/chunks/Error-DhQL89pn-BwTV1meb.js +0 -418
  68. package/chunks/Link-DLuj1USf.js +0 -228
  69. package/chunks/ListItemDecorator-CE2eQLip.js +0 -1882
  70. package/chunks/ModalDialog-Ci3hulZA.js +0 -619
  71. package/chunks/NotFoundSkeleton-BYJTzYJR-Be3R34nS.js +0 -2764
  72. package/chunks/Portal-BWqqFvVm-TuHZWjxn.js +0 -12717
  73. package/chunks/Portal-DA1mxzSo.js +0 -41
  74. package/chunks/Select-p_cHpLhi.js +0 -3418
  75. package/chunks/Sheet-BaCzogZK.js +0 -167
  76. package/chunks/Tabs-CSu_cWNi.js +0 -784
  77. package/chunks/Tutorial-DFNZxmAx.js +0 -427
  78. package/chunks/createLucideIcon-B6NxpYkb.js +0 -79
  79. package/chunks/createSvgIcon-7h7XC877.js +0 -119
  80. package/chunks/default-quiz-bg-CTzaADn7.js +0 -4
  81. package/chunks/getReactElementRef-BD-S8A24.js +0 -25
  82. package/chunks/index-CicEY2Jv.js +0 -5
  83. package/chunks/index.es-CHqz6mjo.js +0 -6162
  84. package/chunks/resolveProps-BfYZubfk.js +0 -37
  85. package/chunks/variantColorInheritance-DI3wUohX.js +0 -28
@@ -0,0 +1,1119 @@
1
+ import { f as P, v as F, x as H, P as p, K as z, Z as Y, ad as S, a1 as N, aJ as ge, ag as J, aK as U, a3 as fe, aL as _, U as w, aE as ye, aw as ee, aM as re, aN as te, aO as oe, aP as K, a2 as Ce, ap as M, a4 as T, aQ as V, aR as xe } from "./Portal-DegkUXpU-ByGP9zS1.js";
2
+ import { r as v, j as y } from "./main-Bh6iw92_.js";
3
+ import { B as ke, k as Se } from "./index-DUQ2LFod-Cw45tHim.js";
4
+ function Q(r) {
5
+ return r.substring(2).toLowerCase();
6
+ }
7
+ function we(r, e) {
8
+ return e.documentElement.clientWidth < r.clientX || e.documentElement.clientHeight < r.clientY;
9
+ }
10
+ function Re(r) {
11
+ const {
12
+ children: e,
13
+ disableReactTree: o = !1,
14
+ mouseEvent: t = "onClick",
15
+ onClickAway: a,
16
+ touchEvent: n = "onTouchEnd"
17
+ } = r, i = v.useRef(!1), l = v.useRef(null), c = v.useRef(!1), u = v.useRef(!1);
18
+ v.useEffect(() => (setTimeout(() => {
19
+ c.current = !0;
20
+ }, 0), () => {
21
+ c.current = !1;
22
+ }), []);
23
+ const b = fe(
24
+ // @ts-expect-error TODO upstream fix
25
+ e.ref,
26
+ l
27
+ ), m = J((h) => {
28
+ const f = u.current;
29
+ u.current = !1;
30
+ const s = _(l.current);
31
+ if (!c.current || !l.current || "clientX" in h && we(h, s))
32
+ return;
33
+ if (i.current) {
34
+ i.current = !1;
35
+ return;
36
+ }
37
+ let d;
38
+ h.composedPath ? d = h.composedPath().indexOf(l.current) > -1 : d = !s.documentElement.contains(
39
+ // @ts-expect-error returns `false` as intended when not dispatched from a Node
40
+ h.target
41
+ ) || l.current.contains(
42
+ // @ts-expect-error returns `false` as intended when not dispatched from a Node
43
+ h.target
44
+ ), !d && (o || !f) && a(h);
45
+ }), k = (h) => (f) => {
46
+ u.current = !0;
47
+ const s = e.props[h];
48
+ s && s(f);
49
+ }, x = {
50
+ ref: b
51
+ };
52
+ return n !== !1 && (x[n] = k(n)), v.useEffect(() => {
53
+ if (n !== !1) {
54
+ const h = Q(n), f = _(l.current), s = () => {
55
+ i.current = !0;
56
+ };
57
+ return f.addEventListener(h, m), f.addEventListener("touchmove", s), () => {
58
+ f.removeEventListener(h, m), f.removeEventListener("touchmove", s);
59
+ };
60
+ }
61
+ }, [m, n]), t !== !1 && (x[t] = k(t)), v.useEffect(() => {
62
+ if (t !== !1) {
63
+ const h = Q(t), f = _(l.current);
64
+ return f.addEventListener(h, m), () => {
65
+ f.removeEventListener(h, m);
66
+ };
67
+ }
68
+ }, [m, t]), /* @__PURE__ */ y.jsx(v.Fragment, {
69
+ children: /* @__PURE__ */ v.cloneElement(e, x)
70
+ });
71
+ }
72
+ function ze(r = {}) {
73
+ const {
74
+ autoHideDuration: e = null,
75
+ disableWindowBlurListener: o = !1,
76
+ onClose: t,
77
+ open: a,
78
+ resumeHideDuration: n
79
+ } = r, i = ge();
80
+ v.useEffect(() => {
81
+ if (!a)
82
+ return;
83
+ function s(d) {
84
+ d.defaultPrevented || (d.key === "Escape" || d.key === "Esc") && (t == null || t(d, "escapeKeyDown"));
85
+ }
86
+ return document.addEventListener("keydown", s), () => {
87
+ document.removeEventListener("keydown", s);
88
+ };
89
+ }, [a, t]);
90
+ const l = J((s, d) => {
91
+ t == null || t(s, d);
92
+ }), c = J((s) => {
93
+ !t || s == null || i.start(s, () => {
94
+ l(null, "timeout");
95
+ });
96
+ });
97
+ v.useEffect(() => (a && c(e), i.clear), [a, e, c, i]);
98
+ const u = (s) => {
99
+ t == null || t(s, "clickaway");
100
+ }, b = i.clear, m = v.useCallback(() => {
101
+ e != null && c(n ?? e * 0.5);
102
+ }, [e, n, c]), k = (s) => (d) => {
103
+ const g = s.onBlur;
104
+ g == null || g(d), m();
105
+ }, x = (s) => (d) => {
106
+ const g = s.onFocus;
107
+ g == null || g(d), b();
108
+ }, h = (s) => (d) => {
109
+ const g = s.onMouseEnter;
110
+ g == null || g(d), b();
111
+ }, f = (s) => (d) => {
112
+ const g = s.onMouseLeave;
113
+ g == null || g(d), m();
114
+ };
115
+ return v.useEffect(() => {
116
+ if (!o && a)
117
+ return window.addEventListener("focus", m), window.addEventListener("blur", b), () => {
118
+ window.removeEventListener("focus", m), window.removeEventListener("blur", b);
119
+ };
120
+ }, [o, a, m, b]), {
121
+ getRootProps: (s = {}) => {
122
+ const d = p({}, U(r), U(s));
123
+ return p({
124
+ // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
125
+ // See https://github.com/mui/material-ui/issues/29080
126
+ role: "presentation"
127
+ }, s, d, {
128
+ onBlur: k(d),
129
+ onFocus: x(d),
130
+ onMouseEnter: h(d),
131
+ onMouseLeave: f(d)
132
+ });
133
+ },
134
+ onClickAway: u
135
+ };
136
+ }
137
+ const Ae = Ce(/* @__PURE__ */ y.jsx("path", {
138
+ d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
139
+ }), "Person");
140
+ function Te(r) {
141
+ return M("MuiAvatar", r);
142
+ }
143
+ T("MuiAvatar", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "fallback", "sizeSm", "sizeMd", "sizeLg", "img", "variantOutlined", "variantSoft", "variantSolid"]);
144
+ T("MuiAvatarGroup", ["root"]);
145
+ const Be = /* @__PURE__ */ v.createContext(void 0);
146
+ w("div", {
147
+ name: "JoyAvatarGroup",
148
+ slot: "Root",
149
+ overridesResolver: (r, e) => e.root
150
+ })(({
151
+ ownerState: r,
152
+ theme: e
153
+ }) => p({}, r.size === "sm" && {
154
+ "--AvatarGroup-gap": "-0.375rem",
155
+ "--Avatar-ringSize": "2px"
156
+ }, r.size === "md" && {
157
+ "--AvatarGroup-gap": "-0.5rem",
158
+ "--Avatar-ringSize": "2px"
159
+ }, r.size === "lg" && {
160
+ "--AvatarGroup-gap": "-0.625rem",
161
+ "--Avatar-ringSize": "4px"
162
+ }, {
163
+ "--Avatar-ring": `0 0 0 var(--Avatar-ringSize) var(--Avatar-ringColor, ${e.vars.palette.background.surface})`,
164
+ "--Avatar-marginInlineStart": "var(--AvatarGroup-gap)",
165
+ display: "flex",
166
+ marginInlineStart: "calc(-1 * var(--AvatarGroup-gap))"
167
+ }));
168
+ const Le = ["alt", "color", "size", "variant", "src", "srcSet", "children", "component", "slots", "slotProps"], $e = (r) => {
169
+ const {
170
+ size: e,
171
+ variant: o,
172
+ color: t,
173
+ src: a,
174
+ srcSet: n
175
+ } = r, i = {
176
+ root: ["root", o && `variant${S(o)}`, t && `color${S(t)}`, e && `size${S(e)}`],
177
+ img: [(a || n) && "img"],
178
+ fallback: ["fallback"]
179
+ };
180
+ return N(i, Te, {});
181
+ }, Ee = w("div", {
182
+ name: "JoyAvatar",
183
+ slot: "Root",
184
+ overridesResolver: (r, e) => e.root
185
+ })(({
186
+ theme: r,
187
+ ownerState: e
188
+ }) => {
189
+ var o;
190
+ return p({
191
+ "--Icon-color": e.color !== "neutral" || e.variant === "solid" ? "currentColor" : r.vars.palette.text.icon
192
+ }, r.typography[`title-${e.size}`], e.size === "sm" && {
193
+ width: "var(--Avatar-size, 2rem)",
194
+ height: "var(--Avatar-size, 2rem)",
195
+ fontSize: "calc(var(--Avatar-size, 2rem) * 0.4375)"
196
+ // default as 14px
197
+ }, e.size === "md" && {
198
+ width: "var(--Avatar-size, 2.5rem)",
199
+ height: "var(--Avatar-size, 2.5rem)",
200
+ fontSize: "calc(var(--Avatar-size, 2.5rem) * 0.4)"
201
+ // default as 16px
202
+ }, e.size === "lg" && {
203
+ width: "var(--Avatar-size, 3rem)",
204
+ height: "var(--Avatar-size, 3rem)",
205
+ fontSize: "calc(var(--Avatar-size, 3rem) * 0.375)"
206
+ // default as 18px
207
+ }, {
208
+ marginInlineStart: "var(--Avatar-marginInlineStart)",
209
+ boxShadow: "var(--Avatar-ring)",
210
+ position: "relative",
211
+ display: "flex",
212
+ alignItems: "center",
213
+ justifyContent: "center",
214
+ flexShrink: 0,
215
+ lineHeight: 1,
216
+ overflow: "hidden",
217
+ borderRadius: "var(--Avatar-radius, 50%)",
218
+ userSelect: "none"
219
+ }, (o = r.variants[e.variant]) == null ? void 0 : o[e.color]);
220
+ }), Pe = w("img", {
221
+ name: "JoyAvatar",
222
+ slot: "Img",
223
+ overridesResolver: (r, e) => e.img
224
+ })({
225
+ width: "100%",
226
+ height: "100%",
227
+ textAlign: "center",
228
+ // Handle non-square image. The property isn't supported by IE11.
229
+ objectFit: "cover",
230
+ // Hide alt text.
231
+ color: "transparent",
232
+ // Hide the image broken icon, only works on Chrome.
233
+ textIndent: 1e4
234
+ }), De = w(Ae, {
235
+ name: "JoyAvatar",
236
+ slot: "Fallback",
237
+ overridesResolver: (r, e) => e.fallback
238
+ })({
239
+ width: "64%",
240
+ height: "64%"
241
+ });
242
+ function We({
243
+ crossOrigin: r,
244
+ referrerPolicy: e,
245
+ src: o,
246
+ srcSet: t
247
+ }) {
248
+ const [a, n] = v.useState(!1);
249
+ return v.useEffect(() => {
250
+ if (!o && !t)
251
+ return;
252
+ n(!1);
253
+ let i = !0;
254
+ const l = new Image();
255
+ return l.onload = () => {
256
+ i && n("loaded");
257
+ }, l.onerror = () => {
258
+ i && n("error");
259
+ }, l.crossOrigin = r, l.referrerPolicy = e, o && (l.src = o), t && (l.srcset = t), () => {
260
+ i = !1;
261
+ };
262
+ }, [r, e, o, t]), a;
263
+ }
264
+ const cr = /* @__PURE__ */ v.forwardRef(function(r, e) {
265
+ const o = F({
266
+ props: r,
267
+ name: "JoyAvatar"
268
+ }), t = v.useContext(Be), {
269
+ alt: a,
270
+ color: n = "neutral",
271
+ size: i = "md",
272
+ variant: l = "soft",
273
+ src: c,
274
+ srcSet: u,
275
+ children: b,
276
+ component: m,
277
+ slots: k = {},
278
+ slotProps: x = {}
279
+ } = o, h = H(o, Le), f = r.variant || (t == null ? void 0 : t.variant) || l, s = r.color || (t == null ? void 0 : t.color) || n, d = r.size || (t == null ? void 0 : t.size) || i;
280
+ let g = null;
281
+ const A = p({}, o, {
282
+ color: s,
283
+ size: d,
284
+ variant: f,
285
+ grouped: !!t
286
+ }), B = $e(A), L = p({}, h, {
287
+ component: m,
288
+ slots: k,
289
+ slotProps: x
290
+ }), [$, O] = z("root", {
291
+ ref: e,
292
+ className: B.root,
293
+ elementType: Ee,
294
+ externalForwardedProps: L,
295
+ ownerState: A
296
+ }), [D, E] = z("img", {
297
+ additionalProps: {
298
+ alt: a,
299
+ src: c,
300
+ srcSet: u
301
+ },
302
+ className: B.img,
303
+ elementType: Pe,
304
+ externalForwardedProps: L,
305
+ ownerState: A
306
+ }), [R, W] = z("fallback", {
307
+ className: B.fallback,
308
+ elementType: De,
309
+ externalForwardedProps: L,
310
+ ownerState: A
311
+ }), I = We(p({}, E, {
312
+ src: c,
313
+ srcSet: u
314
+ }));
315
+ return (c || u) && I !== "error" ? g = /* @__PURE__ */ y.jsx(D, p({}, E)) : b != null ? g = b : a ? g = a[0] : g = /* @__PURE__ */ y.jsx(R, p({}, W)), /* @__PURE__ */ y.jsx($, p({}, O, {
316
+ children: g
317
+ }));
318
+ });
319
+ T("MuiCardActions", ["root"]);
320
+ const Fe = T("MuiDivider", ["root", "horizontal", "vertical", "insetContext", "insetNone"]), ae = w("div")(({
321
+ ownerState: r
322
+ }) => {
323
+ var e;
324
+ return p({
325
+ "--Button-radius": "var(--Card-childRadius)",
326
+ "--IconButton-radius": "var(--Card-childRadius)",
327
+ display: "flex"
328
+ }, ((e = r.orientation) == null ? void 0 : e.startsWith("horizontal")) && {
329
+ alignItems: "center"
330
+ // it is common to have children aligned center in horizontal orientation, but not vertically.
331
+ }, {
332
+ flexDirection: r.orientation === "horizontal" ? "row" : "column"
333
+ }, r.orientation === "horizontal-reverse" && {
334
+ flexDirection: "row-reverse"
335
+ }, {
336
+ zIndex: 1,
337
+ // render above Link's overlay
338
+ gap: "calc(0.625 * var(--Card-padding))",
339
+ padding: "var(--unstable_padding)",
340
+ "--unstable_padding": "calc(0.75 * var(--Card-padding)) 0 0 0",
341
+ [`.${Se.root} > &`]: {
342
+ "--unstable_padding": "calc(0.75 * var(--Card-padding)) 0 var(--Card-padding)"
343
+ },
344
+ [`.${ke.root} > .${Fe.root} + &`]: {
345
+ "--unstable_padding": "0"
346
+ }
347
+ }, r.buttonFlex ? {
348
+ [`& > :not(.${xe.root})`]: {
349
+ flex: r.buttonFlex
350
+ },
351
+ [`& > :not(button) > .${V.root}`]: {
352
+ width: "100%"
353
+ // for button to fill its wrapper.
354
+ }
355
+ } : {
356
+ [`& > .${V.root}:only-child`]: {
357
+ flex: "auto"
358
+ }
359
+ });
360
+ });
361
+ w(ae, {
362
+ name: "JoyCardActions",
363
+ slot: "Root",
364
+ overridesResolver: (r, e) => e.root
365
+ })({});
366
+ function He(r) {
367
+ return M("MuiDialogActions", r);
368
+ }
369
+ T("MuiDialogActions", ["root"]);
370
+ const Ne = ["component", "children", "buttonFlex", "orientation", "slots", "slotProps"], Me = () => N({
371
+ root: ["root"]
372
+ }, He, {}), Oe = w(ae, {
373
+ name: "JoyDialogActions",
374
+ slot: "Root",
375
+ overridesResolver: (r, e) => e.root
376
+ })({}), ur = /* @__PURE__ */ v.forwardRef(function(r, e) {
377
+ const o = F({
378
+ props: r,
379
+ name: "JoyDialogActions"
380
+ }), {
381
+ component: t = "div",
382
+ children: a,
383
+ buttonFlex: n,
384
+ orientation: i = "horizontal-reverse",
385
+ slots: l = {},
386
+ slotProps: c = {}
387
+ } = o, u = H(o, Ne), b = p({}, u, {
388
+ component: t,
389
+ slots: l,
390
+ slotProps: c
391
+ }), m = p({}, o, {
392
+ component: t,
393
+ buttonFlex: n,
394
+ orientation: i
395
+ }), k = Me(), [x, h] = z("root", {
396
+ ref: e,
397
+ className: k.root,
398
+ elementType: Oe,
399
+ externalForwardedProps: b,
400
+ ownerState: m
401
+ });
402
+ return /* @__PURE__ */ y.jsx(x, p({}, h, {
403
+ children: a
404
+ }));
405
+ });
406
+ function Ie(r) {
407
+ return M("MuiSheet", r);
408
+ }
409
+ T("MuiSheet", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
410
+ const je = ["className", "color", "component", "variant", "invertedColors", "slots", "slotProps"], Xe = (r) => {
411
+ const {
412
+ variant: e,
413
+ color: o
414
+ } = r, t = {
415
+ root: ["root", e && `variant${S(e)}`, o && `color${S(o)}`]
416
+ };
417
+ return N(t, Ie, {});
418
+ }, _e = w("div", {
419
+ name: "JoySheet",
420
+ slot: "Root",
421
+ overridesResolver: (r, e) => e.root
422
+ })(({
423
+ theme: r,
424
+ ownerState: e
425
+ }) => {
426
+ var o, t;
427
+ const a = (o = r.variants[e.variant]) == null ? void 0 : o[e.color], {
428
+ borderRadius: n,
429
+ bgcolor: i,
430
+ backgroundColor: l,
431
+ background: c
432
+ } = ee({
433
+ theme: r,
434
+ ownerState: e
435
+ }, ["borderRadius", "bgcolor", "backgroundColor", "background"]), u = K(r, `palette.${i}`) || i || K(r, `palette.${l}`) || l || c || (a == null ? void 0 : a.backgroundColor) || (a == null ? void 0 : a.background) || r.vars.palette.background.surface;
436
+ return [p({
437
+ "--Icon-color": e.color !== "neutral" || e.variant === "solid" ? "currentColor" : r.vars.palette.text.icon,
438
+ "--ListItem-stickyBackground": u === "transparent" ? "initial" : u,
439
+ // for sticky List
440
+ "--Sheet-background": u === "transparent" ? "initial" : u
441
+ }, n !== void 0 && {
442
+ "--List-radius": `calc(${n} - var(--variant-borderWidth, 0px))`,
443
+ "--unstable_actionRadius": `calc(${n} - var(--variant-borderWidth, 0px))`
444
+ }, {
445
+ backgroundColor: r.vars.palette.background.surface,
446
+ position: "relative"
447
+ }), p({}, r.typography["body-md"], e.variant === "solid" && e.color && e.invertedColors && te(e.color)(r), e.variant === "soft" && e.color && e.invertedColors && oe(e.color)(r), (t = r.variants[e.variant]) == null ? void 0 : t[e.color], a)];
448
+ }), vr = /* @__PURE__ */ v.forwardRef(function(r, e) {
449
+ const o = F({
450
+ props: r,
451
+ name: "JoySheet"
452
+ }), {
453
+ className: t,
454
+ color: a = "neutral",
455
+ component: n = "div",
456
+ variant: i = "plain",
457
+ invertedColors: l = !1,
458
+ slots: c = {},
459
+ slotProps: u = {}
460
+ } = o, b = H(o, je), m = p({}, o, {
461
+ color: a,
462
+ component: n,
463
+ invertedColors: l,
464
+ variant: i
465
+ }), k = Xe(m), x = p({}, b, {
466
+ component: n,
467
+ slots: c,
468
+ slotProps: u
469
+ }), [h, f] = z("root", {
470
+ ref: e,
471
+ className: Y(k.root, t),
472
+ elementType: _e,
473
+ externalForwardedProps: x,
474
+ ownerState: m
475
+ });
476
+ return /* @__PURE__ */ y.jsx(h, p({}, f));
477
+ });
478
+ function Je(r) {
479
+ return M("MuiSnackbar", r);
480
+ }
481
+ T("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "endDecorator", "sizeSm", "sizeMd", "sizeLg", "startDecorator", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
482
+ const Ye = ["anchorOrigin", "animationDuration", "autoHideDuration", "color", "children", "className", "component", "disableWindowBlurListener", "endDecorator", "invertedColors", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "onUnmount", "open", "resumeHideDuration", "size", "slots", "slotProps", "startDecorator", "variant"];
483
+ let ne = (r) => r, Z, q;
484
+ const Ge = (r) => {
485
+ const {
486
+ variant: e,
487
+ color: o,
488
+ size: t,
489
+ anchorOrigin: a
490
+ } = r, n = {
491
+ root: ["root", t && `size${S(t)}`, o && `color${S(o)}`, e && `variant${S(e)}`, `anchorOrigin${S(a.vertical)}${S(a.horizontal)}`],
492
+ startDecorator: ["startDecorator"],
493
+ endDecorator: ["endDecorator"]
494
+ };
495
+ return N(n, Je, {});
496
+ }, Ue = re(Z || (Z = ne`
497
+ 0% {
498
+ transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%));
499
+ opacity: 0;
500
+ }
501
+ 50% {
502
+ opacity: 1;
503
+ }
504
+ 100% {
505
+ transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0);
506
+ }
507
+ `)), Ke = re(q || (q = ne`
508
+ 0% {
509
+ transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0);
510
+ opacity: 1;
511
+ }
512
+ 100% {
513
+ transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%));
514
+ opacity: 0;
515
+ }
516
+ `)), Ve = w("div", {
517
+ name: "JoySnackbar",
518
+ slot: "Root",
519
+ overridesResolver: (r, e) => e.root
520
+ })(({
521
+ theme: r,
522
+ ownerState: e
523
+ }) => {
524
+ var o, t, a, n, i, l, c;
525
+ const {
526
+ p: u,
527
+ padding: b,
528
+ borderRadius: m
529
+ } = ee({
530
+ theme: r,
531
+ ownerState: e
532
+ }, ["p", "padding", "borderRadius"]);
533
+ return [p({
534
+ "--Snackbar-radius": r.vars.radius.sm,
535
+ "--Snackbar-decoratorChildRadius": "max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))",
536
+ "--Button-minHeight": "var(--Snackbar-decoratorChildHeight)",
537
+ "--IconButton-size": "var(--Snackbar-decoratorChildHeight)",
538
+ "--Button-radius": "var(--Snackbar-decoratorChildRadius)",
539
+ "--IconButton-radius": "var(--Snackbar-decoratorChildRadius)",
540
+ "--Icon-color": "currentColor"
541
+ }, e.size === "sm" && {
542
+ "--Snackbar-padding": "0.75rem",
543
+ "--Snackbar-inset": "0.5rem",
544
+ "--Snackbar-decoratorChildHeight": "1.5rem",
545
+ "--Icon-fontSize": r.vars.fontSize.xl,
546
+ gap: "0.5rem"
547
+ }, e.size === "md" && {
548
+ "--Snackbar-padding": "1rem",
549
+ "--Snackbar-inset": "0.75rem",
550
+ // the spacing between Snackbar and the viewport
551
+ "--Snackbar-decoratorChildHeight": "2rem",
552
+ "--Icon-fontSize": r.vars.fontSize.xl,
553
+ gap: "0.625rem"
554
+ }, e.size === "lg" && {
555
+ "--Snackbar-padding": "1.25rem",
556
+ "--Snackbar-inset": "1rem",
557
+ "--Snackbar-decoratorChildHeight": "2.375rem",
558
+ "--Icon-fontSize": r.vars.fontSize.xl2,
559
+ gap: "0.875rem"
560
+ }, {
561
+ zIndex: r.vars.zIndex.snackbar,
562
+ position: "fixed",
563
+ display: "flex",
564
+ alignItems: "center",
565
+ minWidth: 300,
566
+ top: ((o = e.anchorOrigin) == null ? void 0 : o.vertical) === "top" ? "var(--Snackbar-inset)" : void 0,
567
+ left: ((t = e.anchorOrigin) == null ? void 0 : t.horizontal) === "left" ? "var(--Snackbar-inset)" : void 0,
568
+ bottom: ((a = e.anchorOrigin) == null ? void 0 : a.vertical) === "bottom" ? "var(--Snackbar-inset)" : void 0,
569
+ right: ((n = e.anchorOrigin) == null ? void 0 : n.horizontal) === "right" ? "var(--Snackbar-inset)" : void 0
570
+ }, ((i = e.anchorOrigin) == null ? void 0 : i.horizontal) === "center" && {
571
+ "--Snackbar-translateX": "-50%",
572
+ left: "50%",
573
+ transform: "translateX(var(--Snackbar-translateX))"
574
+ }, ((l = e.anchorOrigin) == null ? void 0 : l.vertical) === "top" && {
575
+ "--_Snackbar-anchorBottom": "-1"
576
+ }, {
577
+ animation: `${Ue} ${e.animationDuration}ms forwards`
578
+ }, !e.open && {
579
+ animationName: Ke
580
+ }, {
581
+ boxShadow: r.vars.shadow.lg,
582
+ backgroundColor: r.vars.palette.background.surface,
583
+ padding: "var(--Snackbar-padding)",
584
+ borderRadius: "var(--Snackbar-radius)"
585
+ }, r.typography[`body-${{
586
+ sm: "xs",
587
+ md: "sm",
588
+ lg: "md"
589
+ }[e.size]}`], e.variant === "solid" && e.color && e.invertedColors && te(e.color)(r), e.variant === "soft" && e.color && e.invertedColors && oe(e.color)(r), (c = r.variants[e.variant]) == null ? void 0 : c[e.color]), u !== void 0 && {
590
+ "--Snackbar-padding": u
591
+ }, b !== void 0 && {
592
+ "--Snackbar-padding": b
593
+ }, m !== void 0 && {
594
+ "--Snackbar-radius": m
595
+ }];
596
+ }), Qe = w("span", {
597
+ name: "JoySnackbar",
598
+ slot: "StartDecorator",
599
+ overridesResolver: (r, e) => e.startDecorator
600
+ })({
601
+ display: "inherit",
602
+ flex: "none"
603
+ }), Ze = w("span", {
604
+ name: "JoySnackbar",
605
+ slot: "EndDecorator",
606
+ overridesResolver: (r, e) => e.endDecorator
607
+ })({
608
+ display: "inherit",
609
+ flex: "none",
610
+ marginLeft: "auto"
611
+ }), qe = {
612
+ vertical: "bottom",
613
+ horizontal: "right"
614
+ }, pr = /* @__PURE__ */ v.forwardRef(function(r, e) {
615
+ const o = F({
616
+ props: r,
617
+ name: "JoySnackbar"
618
+ }), {
619
+ anchorOrigin: t = qe,
620
+ animationDuration: a = 300,
621
+ autoHideDuration: n = null,
622
+ color: i = "neutral",
623
+ children: l,
624
+ className: c,
625
+ component: u,
626
+ disableWindowBlurListener: b = !1,
627
+ endDecorator: m,
628
+ invertedColors: k = !1,
629
+ onUnmount: x,
630
+ open: h,
631
+ size: f = "md",
632
+ slots: s = {},
633
+ slotProps: d,
634
+ startDecorator: g,
635
+ variant: A = "outlined"
636
+ } = o, B = H(o, Ye), [L, $] = v.useState(!0), [O, D] = v.useState(!1), E = v.useRef(x);
637
+ E.current = x, v.useEffect(() => {
638
+ if (h)
639
+ D(!1), $(!1);
640
+ else {
641
+ D(!0);
642
+ const X = setTimeout(() => {
643
+ var G;
644
+ $(!0), D(!1), (G = E.current) == null || G.call(E);
645
+ }, a);
646
+ return () => {
647
+ clearTimeout(X);
648
+ };
649
+ }
650
+ }, [h, a]);
651
+ const R = p({}, o, {
652
+ anchorOrigin: t,
653
+ autoHideDuration: n,
654
+ color: i,
655
+ animationDuration: a,
656
+ disableWindowBlurListener: b,
657
+ invertedColors: k,
658
+ size: f,
659
+ variant: A
660
+ });
661
+ delete R.onUnmount;
662
+ const W = Ge(R), {
663
+ getRootProps: I,
664
+ onClickAway: se
665
+ } = ze(R), de = (X) => {
666
+ O || se(X);
667
+ }, j = p({}, B, {
668
+ component: u,
669
+ slots: s,
670
+ slotProps: d
671
+ }), [ce, ue] = z("root", {
672
+ ref: e,
673
+ className: Y(W.root, c),
674
+ elementType: Ve,
675
+ externalForwardedProps: j,
676
+ getSlotProps: I,
677
+ ownerState: R
678
+ }), [ve, pe] = z("startDecorator", {
679
+ className: W.startDecorator,
680
+ elementType: Qe,
681
+ externalForwardedProps: j,
682
+ ownerState: R
683
+ }), [he, me] = z("endDecorator", {
684
+ className: W.endDecorator,
685
+ elementType: Ze,
686
+ externalForwardedProps: j,
687
+ ownerState: R
688
+ }), be = s.clickAway || Re;
689
+ return !h && L ? null : /* @__PURE__ */ y.jsx(be, p({
690
+ onClickAway: de
691
+ }, typeof (d == null ? void 0 : d.clickAway) == "function" ? d.clickAway(R) : d == null ? void 0 : d.clickAway, {
692
+ children: /* @__PURE__ */ y.jsxs(ce, p({}, ue, {
693
+ children: [g && /* @__PURE__ */ y.jsx(ve, p({}, pe, {
694
+ children: g
695
+ })), l, m && /* @__PURE__ */ y.jsx(he, p({}, me, {
696
+ children: m
697
+ }))]
698
+ }))
699
+ }));
700
+ });
701
+ function er(r) {
702
+ return M("MuiTable", r);
703
+ }
704
+ T("MuiTable", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "stickyHeader", "stickyFooter", "noWrap", "hoverRow", "borderAxisNone", "borderAxisX", "borderAxisXBetween", "borderAxisY", "borderAxisYBetween", "borderAxisBoth", "borderAxisBothBetween"]);
705
+ const rr = ["className", "component", "children", "borderAxis", "hoverRow", "noWrap", "size", "variant", "color", "stripe", "stickyHeader", "stickyFooter", "slots", "slotProps"], tr = (r) => {
706
+ const {
707
+ size: e,
708
+ variant: o,
709
+ color: t,
710
+ borderAxis: a,
711
+ stickyHeader: n,
712
+ stickyFooter: i,
713
+ noWrap: l,
714
+ hoverRow: c
715
+ } = r, u = {
716
+ root: ["root", n && "stickyHeader", i && "stickyFooter", l && "noWrap", c && "hoverRow", a && `borderAxis${S(a)}`, o && `variant${S(o)}`, t && `color${S(t)}`, e && `size${S(e)}`]
717
+ };
718
+ return N(u, er, {});
719
+ }, C = {
720
+ /**
721
+ * According to https://www.w3.org/TR/2014/REC-html5-20141028/tabular-data.html#the-tr-element,
722
+ * `tr` can only have `td | th` as children, so using :first-of-type is better than :first-child to prevent emotion SSR warning
723
+ */
724
+ getColumnExceptFirst() {
725
+ return "& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th";
726
+ },
727
+ /**
728
+ * Every cell in the table
729
+ */
730
+ getCell() {
731
+ return "& th, & td";
732
+ },
733
+ /**
734
+ * `th` cell of the table (could exist in the body)
735
+ */
736
+ getHeadCell() {
737
+ return "& th";
738
+ },
739
+ /**
740
+ * Only the cell of `thead`
741
+ */
742
+ getHeaderCell() {
743
+ return "& thead th";
744
+ },
745
+ getHeaderCellOfRow(r) {
746
+ return `& thead tr:nth-of-type(${r}) th`;
747
+ },
748
+ getBottomHeaderCell() {
749
+ return "& thead th:not([colspan])";
750
+ },
751
+ getHeaderNestedFirstColumn() {
752
+ return "& thead tr:not(:first-of-type) th:not([colspan]):first-of-type";
753
+ },
754
+ /**
755
+ * The body cell that contains data
756
+ */
757
+ getDataCell() {
758
+ return "& td";
759
+ },
760
+ getDataCellExceptLastRow() {
761
+ return "& tr:not(:last-of-type) > td";
762
+ },
763
+ /**
764
+ * The body cell either `td` or `th`
765
+ */
766
+ getBodyCellExceptLastRow() {
767
+ return `${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`;
768
+ },
769
+ getBodyCellOfRow(r) {
770
+ return typeof r == "number" && r < 0 ? `& tbody tr:nth-last-of-type(${Math.abs(r)}) td, & tbody tr:nth-last-of-type(${Math.abs(r)}) th[scope="row"]` : `& tbody tr:nth-of-type(${r}) td, & tbody tr:nth-of-type(${r}) th[scope="row"]`;
771
+ },
772
+ getBodyRow(r) {
773
+ return r === void 0 ? "& tbody tr" : `& tbody tr:nth-of-type(${r})`;
774
+ },
775
+ getFooterCell() {
776
+ return "& tfoot th, & tfoot td";
777
+ },
778
+ getFooterFirstRowCell() {
779
+ return "& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td";
780
+ }
781
+ }, or = w("table", {
782
+ name: "JoyTable",
783
+ slot: "Root",
784
+ overridesResolver: (r, e) => e.root
785
+ })(({
786
+ theme: r,
787
+ ownerState: e
788
+ }) => {
789
+ var o, t, a, n, i, l, c;
790
+ const u = (o = r.variants[e.variant]) == null ? void 0 : o[e.color];
791
+ return [p({
792
+ "--Table-headerUnderlineThickness": "2px",
793
+ "--TableCell-borderColor": (t = u == null ? void 0 : u.borderColor) != null ? t : r.vars.palette.divider,
794
+ "--TableCell-headBackground": `var(--Sheet-background, ${r.vars.palette.background.surface})`
795
+ }, e.size === "sm" && {
796
+ "--unstable_TableCell-height": "var(--TableCell-height, 32px)",
797
+ "--TableCell-paddingX": "0.25rem",
798
+ "--TableCell-paddingY": "0.25rem"
799
+ }, e.size === "md" && {
800
+ "--unstable_TableCell-height": "var(--TableCell-height, 40px)",
801
+ "--TableCell-paddingX": "0.5rem",
802
+ "--TableCell-paddingY": "0.375rem"
803
+ }, e.size === "lg" && {
804
+ "--unstable_TableCell-height": "var(--TableCell-height, 48px)",
805
+ "--TableCell-paddingX": "0.75rem",
806
+ "--TableCell-paddingY": "0.5rem"
807
+ }, {
808
+ tableLayout: "fixed",
809
+ width: "100%",
810
+ borderSpacing: "0px",
811
+ borderCollapse: "separate",
812
+ borderRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
813
+ }, r.typography[`body-${{
814
+ sm: "xs",
815
+ md: "sm",
816
+ lg: "md"
817
+ }[e.size]}`], (a = r.variants[e.variant]) == null ? void 0 : a[e.color], {
818
+ "& caption": {
819
+ color: r.vars.palette.text.tertiary,
820
+ padding: "calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"
821
+ },
822
+ [C.getDataCell()]: p({
823
+ padding: "var(--TableCell-paddingY) var(--TableCell-paddingX)",
824
+ height: "var(--unstable_TableCell-height)",
825
+ borderColor: "var(--TableCell-borderColor)",
826
+ // must come after border bottom
827
+ backgroundColor: "var(--TableCell-dataBackground)"
828
+ }, e.noWrap && {
829
+ textOverflow: "ellipsis",
830
+ whiteSpace: "nowrap",
831
+ overflow: "hidden"
832
+ }),
833
+ [C.getHeadCell()]: {
834
+ textAlign: "left",
835
+ padding: "var(--TableCell-paddingY) var(--TableCell-paddingX)",
836
+ backgroundColor: "var(--TableCell-headBackground)",
837
+ // use `background-color` in case the Sheet has gradient background
838
+ height: "var(--unstable_TableCell-height)",
839
+ fontWeight: r.vars.fontWeight.lg,
840
+ borderColor: "var(--TableCell-borderColor)",
841
+ color: r.vars.palette.text.secondary,
842
+ textOverflow: "ellipsis",
843
+ whiteSpace: "nowrap",
844
+ overflow: "hidden"
845
+ },
846
+ [C.getHeaderCell()]: {
847
+ verticalAlign: "bottom",
848
+ // Automatic radius adjustment with Sheet
849
+ "&:first-of-type": {
850
+ borderTopLeftRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
851
+ },
852
+ "&:last-of-type": {
853
+ borderTopRightRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
854
+ }
855
+ },
856
+ "& tfoot tr > *": {
857
+ backgroundColor: `var(--TableCell-footBackground, ${r.vars.palette.background.level1})`,
858
+ // Automatic radius adjustment with Sheet
859
+ "&:first-of-type": {
860
+ borderBottomLeftRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
861
+ },
862
+ "&:last-of-type": {
863
+ borderBottomRightRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
864
+ }
865
+ }
866
+ }), (((n = e.borderAxis) == null ? void 0 : n.startsWith("x")) || ((i = e.borderAxis) == null ? void 0 : i.startsWith("both"))) && {
867
+ // insert border between rows
868
+ [C.getHeaderCell()]: {
869
+ borderBottomWidth: 1,
870
+ borderBottomStyle: "solid"
871
+ },
872
+ [C.getBottomHeaderCell()]: {
873
+ borderBottomWidth: "var(--Table-headerUnderlineThickness)",
874
+ borderBottomStyle: "solid"
875
+ },
876
+ [C.getBodyCellExceptLastRow()]: {
877
+ borderBottomWidth: 1,
878
+ borderBottomStyle: "solid"
879
+ },
880
+ [C.getFooterCell()]: {
881
+ borderTopWidth: 1,
882
+ borderTopStyle: "solid"
883
+ }
884
+ }, (((l = e.borderAxis) == null ? void 0 : l.startsWith("y")) || ((c = e.borderAxis) == null ? void 0 : c.startsWith("both"))) && {
885
+ // insert border between columns
886
+ [`${C.getColumnExceptFirst()}, ${C.getHeaderNestedFirstColumn()}`]: {
887
+ borderLeftWidth: 1,
888
+ borderLeftStyle: "solid"
889
+ }
890
+ }, (e.borderAxis === "x" || e.borderAxis === "both") && {
891
+ // insert border at the top of header and bottom of body
892
+ [C.getHeaderCellOfRow(1)]: {
893
+ borderTopWidth: 1,
894
+ borderTopStyle: "solid"
895
+ },
896
+ [C.getBodyCellOfRow(-1)]: {
897
+ borderBottomWidth: 1,
898
+ borderBottomStyle: "solid"
899
+ },
900
+ [C.getFooterCell()]: {
901
+ borderBottomWidth: 1,
902
+ borderBottomStyle: "solid"
903
+ }
904
+ }, (e.borderAxis === "y" || e.borderAxis === "both") && {
905
+ // insert border on the left of first column and right of the last column
906
+ "& tr > *:first-of-type": {
907
+ borderLeftWidth: 1,
908
+ borderLeftStyle: "solid"
909
+ },
910
+ "& tr > *:last-of-type:not(:first-of-type)": {
911
+ borderRightWidth: 1,
912
+ borderRightStyle: "solid"
913
+ }
914
+ }, e.stripe && {
915
+ [C.getBodyRow(e.stripe)]: {
916
+ // For customization, a table cell can look for this variable with a fallback value.
917
+ background: `var(--TableRow-stripeBackground, ${r.vars.palette.background.level2})`,
918
+ color: r.vars.palette.text.primary
919
+ }
920
+ }, e.hoverRow && {
921
+ [C.getBodyRow()]: {
922
+ "&:hover": {
923
+ background: `var(--TableRow-hoverBackground, ${r.vars.palette.background.level3})`
924
+ }
925
+ }
926
+ }, e.stickyHeader && {
927
+ // The column header
928
+ [C.getHeaderCell()]: {
929
+ position: "sticky",
930
+ top: 0,
931
+ zIndex: r.vars.zIndex.table
932
+ },
933
+ [C.getHeaderCellOfRow(2)]: {
934
+ // support upto 2 rows for the sticky header
935
+ top: "var(--unstable_TableCell-height)"
936
+ }
937
+ }, e.stickyFooter && {
938
+ // The column header
939
+ [C.getFooterCell()]: {
940
+ position: "sticky",
941
+ bottom: 0,
942
+ zIndex: r.vars.zIndex.table,
943
+ color: r.vars.palette.text.secondary,
944
+ fontWeight: r.vars.fontWeight.lg
945
+ },
946
+ [C.getFooterFirstRowCell()]: {
947
+ // support upto 2 rows for the sticky footer
948
+ bottom: "var(--unstable_TableCell-height)"
949
+ }
950
+ }];
951
+ }), hr = /* @__PURE__ */ v.forwardRef(function(r, e) {
952
+ const o = F({
953
+ props: r,
954
+ name: "JoyTable"
955
+ }), {
956
+ className: t,
957
+ component: a,
958
+ children: n,
959
+ borderAxis: i = "xBetween",
960
+ hoverRow: l = !1,
961
+ noWrap: c = !1,
962
+ size: u = "md",
963
+ variant: b = "plain",
964
+ color: m = "neutral",
965
+ stripe: k,
966
+ stickyHeader: x = !1,
967
+ stickyFooter: h = !1,
968
+ slots: f = {},
969
+ slotProps: s = {}
970
+ } = o, d = H(o, rr), g = p({}, o, {
971
+ borderAxis: i,
972
+ hoverRow: l,
973
+ noWrap: c,
974
+ component: a,
975
+ size: u,
976
+ color: m,
977
+ variant: b,
978
+ stripe: k,
979
+ stickyHeader: x,
980
+ stickyFooter: h
981
+ }), A = tr(g), B = p({}, d, {
982
+ component: a,
983
+ slots: f,
984
+ slotProps: s
985
+ }), [L, $] = z("root", {
986
+ ref: e,
987
+ className: Y(A.root, t),
988
+ elementType: or,
989
+ externalForwardedProps: B,
990
+ ownerState: g
991
+ });
992
+ return /* @__PURE__ */ y.jsx(ye.Provider, {
993
+ value: !0,
994
+ children: /* @__PURE__ */ y.jsx(L, p({}, $, {
995
+ children: n
996
+ }))
997
+ });
998
+ }), mr = P(/* @__PURE__ */ y.jsx("path", {
999
+ d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"
1000
+ }), "KeyboardArrowLeft"), br = P(/* @__PURE__ */ y.jsx("path", {
1001
+ d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
1002
+ }), "KeyboardArrowRight"), gr = P(/* @__PURE__ */ y.jsx("path", {
1003
+ d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
1004
+ }), "HelpOutline"), fr = P(/* @__PURE__ */ y.jsx("path", {
1005
+ d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
1006
+ }), "Edit"), yr = P(/* @__PURE__ */ y.jsx("path", {
1007
+ d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
1008
+ }), "Person");
1009
+ /**
1010
+ * @license lucide-react v0.454.0 - ISC
1011
+ *
1012
+ * This source code is licensed under the ISC license.
1013
+ * See the LICENSE file in the root directory of this source tree.
1014
+ */
1015
+ const ar = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), le = (...r) => r.filter((e, o, t) => !!e && e.trim() !== "" && t.indexOf(e) === o).join(" ").trim();
1016
+ /**
1017
+ * @license lucide-react v0.454.0 - ISC
1018
+ *
1019
+ * This source code is licensed under the ISC license.
1020
+ * See the LICENSE file in the root directory of this source tree.
1021
+ */
1022
+ var nr = {
1023
+ xmlns: "http://www.w3.org/2000/svg",
1024
+ width: 24,
1025
+ height: 24,
1026
+ viewBox: "0 0 24 24",
1027
+ fill: "none",
1028
+ stroke: "currentColor",
1029
+ strokeWidth: 2,
1030
+ strokeLinecap: "round",
1031
+ strokeLinejoin: "round"
1032
+ };
1033
+ /**
1034
+ * @license lucide-react v0.454.0 - ISC
1035
+ *
1036
+ * This source code is licensed under the ISC license.
1037
+ * See the LICENSE file in the root directory of this source tree.
1038
+ */
1039
+ const lr = v.forwardRef(
1040
+ ({
1041
+ color: r = "currentColor",
1042
+ size: e = 24,
1043
+ strokeWidth: o = 2,
1044
+ absoluteStrokeWidth: t,
1045
+ className: a = "",
1046
+ children: n,
1047
+ iconNode: i,
1048
+ ...l
1049
+ }, c) => v.createElement(
1050
+ "svg",
1051
+ {
1052
+ ref: c,
1053
+ ...nr,
1054
+ width: e,
1055
+ height: e,
1056
+ stroke: r,
1057
+ strokeWidth: t ? Number(o) * 24 / Number(e) : o,
1058
+ className: le("lucide", a),
1059
+ ...l
1060
+ },
1061
+ [
1062
+ ...i.map(([u, b]) => v.createElement(u, b)),
1063
+ ...Array.isArray(n) ? n : [n]
1064
+ ]
1065
+ )
1066
+ );
1067
+ /**
1068
+ * @license lucide-react v0.454.0 - ISC
1069
+ *
1070
+ * This source code is licensed under the ISC license.
1071
+ * See the LICENSE file in the root directory of this source tree.
1072
+ */
1073
+ const ie = (r, e) => {
1074
+ const o = v.forwardRef(
1075
+ ({ className: t, ...a }, n) => v.createElement(lr, {
1076
+ ref: n,
1077
+ iconNode: e,
1078
+ className: le(`lucide-${ar(r)}`, t),
1079
+ ...a
1080
+ })
1081
+ );
1082
+ return o.displayName = `${r}`, o;
1083
+ };
1084
+ /**
1085
+ * @license lucide-react v0.454.0 - ISC
1086
+ *
1087
+ * This source code is licensed under the ISC license.
1088
+ * See the LICENSE file in the root directory of this source tree.
1089
+ */
1090
+ const Cr = ie("ChevronLeft", [
1091
+ ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
1092
+ ]);
1093
+ /**
1094
+ * @license lucide-react v0.454.0 - ISC
1095
+ *
1096
+ * This source code is licensed under the ISC license.
1097
+ * See the LICENSE file in the root directory of this source tree.
1098
+ */
1099
+ const xr = ie("ChevronRight", [
1100
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
1101
+ ]), kr = P(/* @__PURE__ */ y.jsx("path", {
1102
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"
1103
+ }), "Error");
1104
+ export {
1105
+ hr as A,
1106
+ mr as B,
1107
+ yr as F,
1108
+ kr as H,
1109
+ xr as I,
1110
+ fr as L,
1111
+ Cr as M,
1112
+ gr as N,
1113
+ pr as T,
1114
+ cr as V,
1115
+ br as _,
1116
+ ie as g,
1117
+ ur as s,
1118
+ vr as u
1119
+ };