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
@@ -0,0 +1,783 @@
1
+ import { a4 as M, v as $, x as _, P as u, K as j, U as D, a7 as K, as as Q, a3 as E, aa as Z, af as q, aS as Y, ad as L, a1 as N, aw as ee, aP as U, aT as O, aU as te, ax as oe, ay as ae, aV as ie, y as X, aW as A, aX as ne, ai as re, aK as le, aY as se, aB as de, ap as W, aZ as ce, a_ as ue, a$ as ve } from "./Portal-DegkUXpU-ByGP9zS1.js";
2
+ import { r as l, j as P } from "./main-Bh6iw92_.js";
3
+ function be(e) {
4
+ const {
5
+ value: t,
6
+ defaultValue: o,
7
+ onChange: a,
8
+ orientation: i = "horizontal",
9
+ direction: n = "ltr",
10
+ selectionFollowsFocus: r = !1
11
+ } = e, [c, d] = q({
12
+ controlled: t,
13
+ default: o,
14
+ name: "Tabs",
15
+ state: "value"
16
+ }), s = l.useCallback((g, f) => {
17
+ d(f), a == null || a(g, f);
18
+ }, [a, d]), {
19
+ subitems: b,
20
+ contextValue: v
21
+ } = Y(), p = l.useRef(() => {
22
+ }), m = l.useCallback((g) => {
23
+ var f;
24
+ return (f = b.get(g)) == null ? void 0 : f.id;
25
+ }, [b]), h = l.useCallback((g) => p.current(g), []), x = l.useCallback((g) => {
26
+ p.current = g;
27
+ }, []);
28
+ return {
29
+ contextValue: u({
30
+ direction: n,
31
+ getTabId: h,
32
+ getTabPanelId: m,
33
+ onSelected: s,
34
+ orientation: i,
35
+ registerTabIdLookup: x,
36
+ selectionFollowsFocus: r,
37
+ value: c
38
+ }, v)
39
+ };
40
+ }
41
+ const G = /* @__PURE__ */ l.createContext(null);
42
+ function B() {
43
+ const e = l.useContext(G);
44
+ if (e == null)
45
+ throw new Error("No TabsContext provided");
46
+ return e;
47
+ }
48
+ function pe(e) {
49
+ const {
50
+ value: t,
51
+ children: o
52
+ } = e, {
53
+ direction: a,
54
+ getItemIndex: i,
55
+ onSelected: n,
56
+ orientation: r,
57
+ registerItem: c,
58
+ registerTabIdLookup: d,
59
+ selectionFollowsFocus: s,
60
+ totalSubitemCount: b,
61
+ value: v,
62
+ getTabId: p,
63
+ getTabPanelId: m
64
+ } = t, h = l.useMemo(() => ({
65
+ getItemIndex: i,
66
+ registerItem: c,
67
+ totalSubitemCount: b
68
+ }), [c, i, b]), x = l.useMemo(() => ({
69
+ direction: a,
70
+ getTabId: p,
71
+ getTabPanelId: m,
72
+ onSelected: n,
73
+ orientation: r,
74
+ registerTabIdLookup: d,
75
+ selectionFollowsFocus: s,
76
+ value: v
77
+ }), [a, p, m, n, r, d, s, v]);
78
+ return /* @__PURE__ */ P.jsx(O.Provider, {
79
+ value: h,
80
+ children: /* @__PURE__ */ P.jsx(G.Provider, {
81
+ value: x,
82
+ children: o
83
+ })
84
+ });
85
+ }
86
+ function ge(e) {
87
+ return e.size;
88
+ }
89
+ function fe(e) {
90
+ const {
91
+ value: t,
92
+ id: o,
93
+ rootRef: a
94
+ } = e, i = B();
95
+ if (i === null)
96
+ throw new Error("No TabContext provided");
97
+ const {
98
+ value: n,
99
+ getTabId: r
100
+ } = i, c = X(o), d = l.useRef(null), s = E(d, a), b = l.useMemo(() => ({
101
+ id: c,
102
+ ref: d
103
+ }), [c]), {
104
+ id: v
105
+ } = A(t ?? ge, b), p = v !== n, m = v !== void 0 ? r(v) : void 0;
106
+ return {
107
+ hidden: p,
108
+ getRootProps: (h = {}) => u({
109
+ "aria-labelledby": m ?? void 0,
110
+ hidden: p,
111
+ id: c ?? void 0
112
+ }, h, {
113
+ ref: s
114
+ }),
115
+ rootRef: s
116
+ };
117
+ }
118
+ const H = {
119
+ valueChange: "valueChange"
120
+ };
121
+ function me(e, t) {
122
+ if (t.type === H.valueChange)
123
+ return u({}, e, {
124
+ highlightedValue: t.value
125
+ });
126
+ const o = ce(e, t), {
127
+ context: {
128
+ selectionFollowsFocus: a
129
+ }
130
+ } = t;
131
+ if (t.type === ue.itemsChange) {
132
+ if (o.selectedValues.length > 0)
133
+ return u({}, o, {
134
+ highlightedValue: o.selectedValues[0]
135
+ });
136
+ ve(null, "reset", t.context);
137
+ }
138
+ return a && o.highlightedValue != null ? u({}, o, {
139
+ selectedValues: [o.highlightedValue]
140
+ }) : o;
141
+ }
142
+ function he(e) {
143
+ var t;
144
+ const {
145
+ rootRef: o
146
+ } = e, {
147
+ direction: a = "ltr",
148
+ onSelected: i,
149
+ orientation: n = "horizontal",
150
+ value: r,
151
+ registerTabIdLookup: c,
152
+ selectionFollowsFocus: d
153
+ } = B(), {
154
+ subitems: s,
155
+ contextValue: b
156
+ } = Y(), v = l.useCallback((I) => {
157
+ var R;
158
+ return (R = s.get(I)) == null ? void 0 : R.id;
159
+ }, [s]);
160
+ c(v);
161
+ const p = l.useMemo(() => Array.from(s.keys()), [s]), m = l.useCallback((I) => {
162
+ var R, C;
163
+ return I == null ? null : (R = (C = s.get(I)) == null ? void 0 : C.ref.current) != null ? R : null;
164
+ }, [s]), h = a === "rtl";
165
+ let x;
166
+ n === "vertical" ? x = "vertical" : x = h ? "horizontal-rtl" : "horizontal-ltr";
167
+ const g = l.useCallback((I, R) => {
168
+ var C;
169
+ i(I, (C = R[0]) != null ? C : null);
170
+ }, [i]), f = l.useMemo(() => r === void 0 ? {} : r != null ? {
171
+ selectedValues: [r]
172
+ } : {
173
+ selectedValues: []
174
+ }, [r]), z = l.useCallback((I) => {
175
+ var R, C;
176
+ return (R = (C = s.get(I)) == null ? void 0 : C.disabled) != null ? R : !1;
177
+ }, [s]), {
178
+ contextValue: y,
179
+ dispatch: T,
180
+ getRootProps: k,
181
+ state: {
182
+ highlightedValue: w,
183
+ selectedValues: V
184
+ },
185
+ rootRef: S
186
+ } = te({
187
+ controlledProps: f,
188
+ disabledItemsFocusable: !d,
189
+ focusManagement: "DOM",
190
+ getItemDomElement: m,
191
+ isItemDisabled: z,
192
+ items: p,
193
+ rootRef: o,
194
+ onChange: g,
195
+ orientation: x,
196
+ reducerActionContext: l.useMemo(() => ({
197
+ selectionFollowsFocus: d || !1
198
+ }), [d]),
199
+ selectionMode: "single",
200
+ stateReducer: me
201
+ });
202
+ l.useEffect(() => {
203
+ r !== void 0 && r != null && T({
204
+ type: H.valueChange,
205
+ value: r
206
+ });
207
+ }, [T, r]);
208
+ const F = (I = {}) => u({}, I, k(I), {
209
+ "aria-orientation": n === "vertical" ? "vertical" : void 0,
210
+ role: "tablist"
211
+ });
212
+ return {
213
+ contextValue: l.useMemo(() => u({}, b, y), [b, y]),
214
+ dispatch: T,
215
+ getRootProps: F,
216
+ highlightedValue: w,
217
+ isRtl: h,
218
+ orientation: n,
219
+ rootRef: S,
220
+ selectedValue: (t = V[0]) != null ? t : null
221
+ };
222
+ }
223
+ function xe(e) {
224
+ const {
225
+ value: t,
226
+ children: o
227
+ } = e, {
228
+ dispatch: a,
229
+ getItemIndex: i,
230
+ getItemState: n,
231
+ registerItem: r,
232
+ totalSubitemCount: c
233
+ } = t, d = l.useMemo(() => ({
234
+ dispatch: a,
235
+ getItemState: n,
236
+ getItemIndex: i
237
+ }), [a, i, n]), s = l.useMemo(() => ({
238
+ getItemIndex: i,
239
+ registerItem: r,
240
+ totalSubitemCount: c
241
+ }), [r, i, c]);
242
+ return /* @__PURE__ */ P.jsx(O.Provider, {
243
+ value: s,
244
+ children: /* @__PURE__ */ P.jsx(ie.Provider, {
245
+ value: d,
246
+ children: o
247
+ })
248
+ });
249
+ }
250
+ function Te(e) {
251
+ return e.size;
252
+ }
253
+ function Ie(e) {
254
+ const {
255
+ value: t,
256
+ rootRef: o,
257
+ disabled: a = !1,
258
+ id: i
259
+ } = e, n = l.useRef(null), r = X(i), {
260
+ value: c,
261
+ selectionFollowsFocus: d,
262
+ getTabPanelId: s
263
+ } = B(), b = l.useMemo(() => ({
264
+ disabled: a,
265
+ ref: n,
266
+ id: r
267
+ }), [a, n, r]), {
268
+ id: v,
269
+ index: p,
270
+ totalItemCount: m
271
+ } = A(t ?? Te, b), {
272
+ getRootProps: h,
273
+ highlighted: x,
274
+ selected: g
275
+ } = ne({
276
+ item: v
277
+ }), {
278
+ getRootProps: f,
279
+ rootRef: z,
280
+ active: y,
281
+ focusVisible: T,
282
+ setFocusVisible: k
283
+ } = re({
284
+ disabled: a,
285
+ focusableWhenDisabled: !d,
286
+ type: "button"
287
+ }), w = E(n, o, z), V = v !== void 0 ? s(v) : void 0;
288
+ return {
289
+ getRootProps: (S = {}) => {
290
+ const F = le(S), I = se(h, f);
291
+ return u({}, S, I(F), {
292
+ role: "tab",
293
+ "aria-controls": V,
294
+ "aria-selected": g,
295
+ id: r,
296
+ ref: w
297
+ });
298
+ },
299
+ active: y,
300
+ focusVisible: T,
301
+ highlighted: x,
302
+ index: p,
303
+ rootRef: w,
304
+ // the `selected` state isn't set on the server (it relies on effects to be calculated),
305
+ // so we fall back to checking the `value` prop with the selectedValue from the TabsContext
306
+ selected: g || v === c,
307
+ setFocusVisible: k,
308
+ totalTabsCount: m
309
+ };
310
+ }
311
+ function Pe(e) {
312
+ return W("MuiTab", e);
313
+ }
314
+ const ke = M("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]), ye = ["action", "children", "value", "disabled", "onChange", "onClick", "onFocus", "component", "orientation", "variant", "color", "disableIndicator", "indicatorPlacement", "indicatorInset", "slots", "slotProps"], Re = (e) => {
315
+ const {
316
+ selected: t,
317
+ disabled: o,
318
+ focusVisible: a,
319
+ variant: i,
320
+ color: n,
321
+ orientation: r
322
+ } = e, c = {
323
+ root: ["root", r, o && "disabled", a && "focusVisible", t && "selected", i && `variant${L(i)}`, n && `color${L(n)}`]
324
+ };
325
+ return N(c, Pe, {});
326
+ }, Le = D(de, {
327
+ name: "JoyTab",
328
+ slot: "Root",
329
+ overridesResolver: (e, t) => t.root
330
+ })(({
331
+ ownerState: e
332
+ }) => [
333
+ {
334
+ flex: "initial",
335
+ justifyContent: e.row ? "center" : "initial",
336
+ "--unstable_ListItemDecorator-alignItems": "center",
337
+ "--unstable_offset": "min(calc(-1 * var(--variant-borderWidth, 0px)), -1px)"
338
+ },
339
+ !e.disableIndicator && {
340
+ '&[aria-selected="true"]': {
341
+ "--Tab-indicatorColor": "currentColor",
342
+ zIndex: 1
343
+ // to stay above other tab elements
344
+ },
345
+ // using pseudo element for showing active indicator is best for controlling the size and customization.
346
+ // for example, developers can customize the radius, width or background.
347
+ // (border and box-shadow are not flexible when it comes to customization).
348
+ "&::after": {
349
+ content: '""',
350
+ display: "block",
351
+ position: "absolute",
352
+ margin: "auto",
353
+ background: "var(--Tab-indicatorColor)",
354
+ borderRadius: "var(--Tab-indicatorRadius)"
355
+ }
356
+ },
357
+ // the padding is to account for the indicator's thickness to make the text proportional.
358
+ !e.disableIndicator && e.indicatorPlacement === "bottom" && {
359
+ paddingBottom: "calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)",
360
+ "&::after": {
361
+ height: "var(--Tab-indicatorThickness)",
362
+ width: "var(--Tab-indicatorSize)",
363
+ left: e.indicatorInset ? "var(--ListItem-paddingLeft)" : "var(--unstable_offset)",
364
+ right: e.indicatorInset ? "var(--ListItem-paddingRight)" : "var(--unstable_offset)",
365
+ bottom: "calc(-1px - var(--unstable_TabList-underlineBottom, 0px))"
366
+ }
367
+ },
368
+ !e.disableIndicator && e.indicatorPlacement === "top" && {
369
+ paddingTop: "calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)",
370
+ "&::after": {
371
+ height: "var(--Tab-indicatorThickness)",
372
+ width: "var(--Tab-indicatorSize)",
373
+ left: e.indicatorInset ? "var(--ListItem-paddingLeft)" : "var(--unstable_offset)",
374
+ right: e.indicatorInset ? "var(--ListItem-paddingRight)" : "var(--unstable_offset)",
375
+ top: "calc(-1px - var(--unstable_TabList-underlineTop, 0px))"
376
+ }
377
+ },
378
+ !e.disableIndicator && e.indicatorPlacement === "right" && {
379
+ paddingRight: "calc(var(--ListItem-paddingRight) + var(--Tab-indicatorThickness) - 1px)",
380
+ "&::after": {
381
+ height: "var(--Tab-indicatorSize)",
382
+ width: "var(--Tab-indicatorThickness)",
383
+ top: e.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
384
+ bottom: e.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
385
+ right: "calc(-1px - var(--unstable_TabList-underlineRight, 0px))"
386
+ }
387
+ },
388
+ !e.disableIndicator && e.indicatorPlacement === "left" && {
389
+ paddingLeft: "calc(var(--ListItem-paddingLeft) + var(--Tab-indicatorThickness) - 1px)",
390
+ "&::after": {
391
+ height: "var(--Tab-indicatorSize)",
392
+ width: "var(--Tab-indicatorThickness)",
393
+ top: e.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
394
+ bottom: e.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
395
+ left: "calc(-1px - var(--unstable_TabList-underlineLeft, 0px))"
396
+ }
397
+ }
398
+ ]), Ee = /* @__PURE__ */ l.forwardRef(function(e, t) {
399
+ const o = $({
400
+ props: e,
401
+ name: "JoyTab"
402
+ }), a = l.useContext(Q), {
403
+ action: i,
404
+ children: n,
405
+ disabled: r = !1,
406
+ component: c = "button",
407
+ orientation: d = "horizontal",
408
+ variant: s = "plain",
409
+ color: b = "neutral",
410
+ disableIndicator: v = !1,
411
+ indicatorPlacement: p = a ? "bottom" : "right",
412
+ indicatorInset: m = !1,
413
+ slots: h = {},
414
+ slotProps: x = {}
415
+ } = o, g = _(o, ye), f = l.useRef(), z = E(f, t), {
416
+ active: y,
417
+ focusVisible: T,
418
+ setFocusVisible: k,
419
+ selected: w,
420
+ getRootProps: V
421
+ } = Ie(u({}, o, {
422
+ rootRef: z
423
+ }));
424
+ l.useImperativeHandle(i, () => ({
425
+ focusVisible: () => {
426
+ k(!0), f.current.focus();
427
+ }
428
+ }), [k]);
429
+ const S = u({}, o, {
430
+ disableIndicator: v,
431
+ indicatorPlacement: p,
432
+ indicatorInset: m,
433
+ orientation: d,
434
+ row: a,
435
+ active: y,
436
+ focusVisible: T,
437
+ disabled: r,
438
+ selected: w,
439
+ variant: s,
440
+ color: b
441
+ }), F = Re(S), I = u({}, g, {
442
+ component: c,
443
+ slots: h,
444
+ slotProps: x
445
+ }), [R, C] = j("root", {
446
+ ref: t,
447
+ elementType: Le,
448
+ getSlotProps: V,
449
+ externalForwardedProps: I,
450
+ ownerState: S,
451
+ className: F.root
452
+ });
453
+ return /* @__PURE__ */ P.jsx(Z.Provider, {
454
+ value: d,
455
+ children: /* @__PURE__ */ P.jsx(R, u({}, C, {
456
+ children: n
457
+ }))
458
+ });
459
+ }), J = /* @__PURE__ */ l.createContext("md");
460
+ function ze(e) {
461
+ return W("MuiTabList", e);
462
+ }
463
+ M("MuiTabList", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
464
+ const Ce = ["component", "children", "variant", "color", "size", "disableUnderline", "underlinePlacement", "tabFlex", "sticky", "slots", "slotProps"], Se = (e) => {
465
+ const {
466
+ orientation: t,
467
+ size: o,
468
+ variant: a,
469
+ color: i
470
+ } = e, n = {
471
+ root: ["root", t, a && `variant${L(a)}`, i && `color${L(i)}`, o && `size${L(o)}`]
472
+ };
473
+ return N(n, ze, {});
474
+ }, we = D(oe, {
475
+ name: "JoyTabList",
476
+ slot: "Root",
477
+ overridesResolver: (e, t) => t.root
478
+ })(({
479
+ theme: e,
480
+ ownerState: t
481
+ }) => {
482
+ var o;
483
+ const a = (o = e.variants[t.variant]) == null ? void 0 : o[t.color];
484
+ return u({
485
+ "--List-gap": "0px",
486
+ "--ListDivider-gap": "0px",
487
+ "--ListItem-paddingX": "var(--Tabs-spacing)",
488
+ "--ListItem-gap": "0.375rem",
489
+ // the `var(--unknown,)` is a workaround because emotion does not support space toggle.
490
+ "--unstable_TabList-hasUnderline": t.disableUnderline ? "var(--unknown,)" : "initial"
491
+ }, ae, {
492
+ flexGrow: "initial",
493
+ flexDirection: t.orientation === "vertical" ? "column" : "row",
494
+ borderRadius: "var(--List-radius, 0px)",
495
+ padding: "var(--List-padding, 0px)",
496
+ zIndex: 1
497
+ }, t.sticky && {
498
+ // sticky in list item can be found in grouped options
499
+ position: "sticky",
500
+ top: t.sticky === "top" ? "calc(-1 * var(--Tabs-padding, 0px))" : "initial",
501
+ bottom: t.sticky === "bottom" ? "calc(-1 * var(--Tabs-padding, 0px))" : "initial",
502
+ backgroundColor: (a == null ? void 0 : a.backgroundColor) || `var(--TabList-stickyBackground, ${e.vars.palette.background.body})`
503
+ }, !t.disableUnderline && u({}, t.underlinePlacement === "bottom" && {
504
+ "--unstable_TabList-underlineBottom": "1px",
505
+ paddingBottom: 1,
506
+ boxShadow: `inset 0 -1px ${e.vars.palette.divider}`
507
+ }, t.underlinePlacement === "top" && {
508
+ "--unstable_TabList-underlineTop": "1px",
509
+ paddingTop: 1,
510
+ boxShadow: `inset 0 1px ${e.vars.palette.divider}`
511
+ }, t.underlinePlacement === "right" && {
512
+ "--unstable_TabList-underlineRight": "1px",
513
+ paddingRight: 1,
514
+ boxShadow: `inset -1px 0 ${e.vars.palette.divider}`
515
+ }, t.underlinePlacement === "left" && {
516
+ "--unstable_TabList-underlineLeft": "1px",
517
+ paddingLeft: 1,
518
+ boxShadow: `inset 1px 0 ${e.vars.palette.divider}`
519
+ }), t.tabFlex && {
520
+ [`& .${ke.root}`]: {
521
+ flex: t.tabFlex
522
+ }
523
+ });
524
+ }), Je = /* @__PURE__ */ l.forwardRef(function(e, t) {
525
+ const o = $({
526
+ props: e,
527
+ name: "JoyTabList"
528
+ }), a = l.useContext(J), {
529
+ isRtl: i,
530
+ orientation: n,
531
+ getRootProps: r,
532
+ contextValue: c
533
+ } = he({
534
+ rootRef: t
535
+ }), {
536
+ component: d = "div",
537
+ children: s,
538
+ variant: b = "plain",
539
+ color: v = "neutral",
540
+ size: p,
541
+ disableUnderline: m = !1,
542
+ underlinePlacement: h = n === "horizontal" ? "bottom" : "right",
543
+ tabFlex: x,
544
+ sticky: g,
545
+ slots: f = {},
546
+ slotProps: z = {}
547
+ } = o, y = _(o, Ce), T = u({}, o, {
548
+ isRtl: i,
549
+ orientation: n,
550
+ variant: b,
551
+ color: v,
552
+ size: p ?? a,
553
+ sticky: g,
554
+ tabFlex: x,
555
+ nesting: !1,
556
+ disableUnderline: m,
557
+ underlinePlacement: h
558
+ }), k = Se(T), w = u({}, y, {
559
+ component: d,
560
+ slots: f,
561
+ slotProps: z
562
+ }), [V, S] = j("root", {
563
+ ref: t,
564
+ elementType: we,
565
+ getSlotProps: r,
566
+ externalForwardedProps: w,
567
+ ownerState: T,
568
+ className: k.root
569
+ });
570
+ return (
571
+ // @ts-ignore conflicted ref types
572
+ /* @__PURE__ */ P.jsx(V, u({}, S, {
573
+ children: /* @__PURE__ */ P.jsx(xe, {
574
+ value: c,
575
+ children: /* @__PURE__ */ P.jsx(K, {
576
+ row: n === "horizontal",
577
+ nested: !0,
578
+ children: s
579
+ })
580
+ })
581
+ }))
582
+ );
583
+ });
584
+ function Ve(e) {
585
+ return W("MuiTabPanel", e);
586
+ }
587
+ M("MuiTabPanel", ["root", "hidden", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
588
+ const Fe = ["children", "value", "component", "color", "variant", "size", "slots", "slotProps", "keepMounted"], Me = (e) => {
589
+ const {
590
+ hidden: t,
591
+ size: o,
592
+ variant: a,
593
+ color: i,
594
+ orientation: n
595
+ } = e, r = {
596
+ root: ["root", t && "hidden", o && `size${L(o)}`, n, a && `variant${L(a)}`, i && `color${L(i)}`, o && `size${L(o)}`]
597
+ };
598
+ return N(r, Ve, {});
599
+ }, $e = D("div", {
600
+ name: "JoyTabPanel",
601
+ slot: "Root",
602
+ overridesResolver: (e, t) => t.root
603
+ })(({
604
+ theme: e,
605
+ ownerState: t
606
+ }) => {
607
+ var o;
608
+ return u({
609
+ display: t.hidden ? "none" : "block",
610
+ padding: "var(--Tabs-spacing)",
611
+ flexGrow: 1,
612
+ fontFamily: e.vars.fontFamily.body
613
+ }, e.typography[`body-${t.size}`], (o = e.variants[t.variant]) == null ? void 0 : o[t.color]);
614
+ }), Ue = /* @__PURE__ */ l.forwardRef(function(e, t) {
615
+ const o = $({
616
+ props: e,
617
+ name: "JoyTabPanel"
618
+ }), {
619
+ orientation: a
620
+ } = B() || {
621
+ orientation: "horizontal"
622
+ }, i = l.useContext(J), {
623
+ children: n,
624
+ value: r = 0,
625
+ component: c,
626
+ color: d = "neutral",
627
+ variant: s = "plain",
628
+ size: b,
629
+ slots: v = {},
630
+ slotProps: p = {},
631
+ keepMounted: m = !1
632
+ } = o, h = _(o, Fe), {
633
+ hidden: x,
634
+ getRootProps: g
635
+ } = fe(u({}, o, {
636
+ value: r
637
+ })), f = u({}, o, {
638
+ orientation: a,
639
+ hidden: x,
640
+ size: b ?? i,
641
+ color: d,
642
+ variant: s
643
+ }), z = Me(f), y = u({}, h, {
644
+ component: c,
645
+ slots: v,
646
+ slotProps: p
647
+ }), [T, k] = j("root", {
648
+ ref: t,
649
+ elementType: $e,
650
+ getSlotProps: g,
651
+ externalForwardedProps: y,
652
+ additionalProps: {
653
+ role: "tabpanel",
654
+ ref: t,
655
+ as: c
656
+ },
657
+ ownerState: f,
658
+ className: z.root
659
+ });
660
+ return m ? /* @__PURE__ */ P.jsx(T, u({}, k, {
661
+ children: n
662
+ })) : /* @__PURE__ */ P.jsx(T, u({}, k, {
663
+ children: !x && n
664
+ }));
665
+ });
666
+ function _e(e) {
667
+ return W("MuiTabs", e);
668
+ }
669
+ M("MuiTabs", ["root", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
670
+ const je = ["children", "value", "defaultValue", "orientation", "direction", "component", "onChange", "selectionFollowsFocus", "variant", "color", "size", "slots", "slotProps"], De = (e) => {
671
+ const {
672
+ orientation: t,
673
+ variant: o,
674
+ color: a,
675
+ size: i
676
+ } = e, n = {
677
+ root: ["root", t, o && `variant${L(o)}`, a && `color${L(a)}`, i && `size${L(i)}`]
678
+ };
679
+ return N(n, _e, {});
680
+ }, Ne = D("div", {
681
+ name: "JoyTabs",
682
+ slot: "Root",
683
+ overridesResolver: (e, t) => t.root
684
+ })(({
685
+ ownerState: e,
686
+ theme: t
687
+ }) => {
688
+ var o, a;
689
+ const i = (o = t.variants[e.variant]) == null ? void 0 : o[e.color], {
690
+ bgcolor: n,
691
+ backgroundColor: r,
692
+ background: c,
693
+ p: d,
694
+ padding: s
695
+ } = ee({
696
+ theme: t,
697
+ ownerState: e
698
+ }, ["bgcolor", "backgroundColor", "background", "p", "padding"]), b = U(t, `palette.${n}`) || n || U(t, `palette.${r}`) || r || c || (i == null ? void 0 : i.backgroundColor) || (i == null ? void 0 : i.background) || t.vars.palette.background.surface;
699
+ return u({}, e.size === "sm" && {
700
+ "--Tabs-spacing": "0.75rem"
701
+ }, e.size === "md" && {
702
+ "--Tabs-spacing": "1rem"
703
+ }, e.size === "lg" && {
704
+ "--Tabs-spacing": "1.25rem"
705
+ }, {
706
+ "--Tab-indicatorThickness": "2px",
707
+ "--Icon-color": e.color !== "neutral" || e.variant === "solid" ? "currentColor" : t.vars.palette.text.icon,
708
+ "--TabList-stickyBackground": b === "transparent" ? "initial" : b,
709
+ // for sticky TabList
710
+ display: "flex",
711
+ flexDirection: "column"
712
+ }, e.orientation === "vertical" && {
713
+ flexDirection: "row"
714
+ }, {
715
+ backgroundColor: t.vars.palette.background.surface,
716
+ position: "relative"
717
+ }, t.typography[`body-${e.size}`], (a = t.variants[e.variant]) == null ? void 0 : a[e.color], d !== void 0 && {
718
+ "--Tabs-padding": d
719
+ }, s !== void 0 && {
720
+ "--Tabs-padding": s
721
+ });
722
+ }), Ye = /* @__PURE__ */ l.forwardRef(function(e, t) {
723
+ const o = $({
724
+ props: e,
725
+ name: "JoyTabs"
726
+ }), {
727
+ children: a,
728
+ value: i,
729
+ defaultValue: n,
730
+ orientation: r = "horizontal",
731
+ direction: c = "ltr",
732
+ component: d,
733
+ variant: s = "plain",
734
+ color: b = "neutral",
735
+ size: v = "md",
736
+ slots: p = {},
737
+ slotProps: m = {}
738
+ } = o, h = _(o, je), x = n || (i === void 0 ? 0 : void 0), {
739
+ contextValue: g
740
+ } = be(u({}, o, {
741
+ orientation: r,
742
+ defaultValue: x
743
+ })), f = u({}, o, {
744
+ orientation: r,
745
+ direction: c,
746
+ variant: s,
747
+ color: b,
748
+ size: v
749
+ }), z = De(f), y = u({}, h, {
750
+ component: d,
751
+ slots: p,
752
+ slotProps: m
753
+ }), [T, k] = j("root", {
754
+ ref: t,
755
+ elementType: Ne,
756
+ externalForwardedProps: y,
757
+ additionalProps: {
758
+ ref: t,
759
+ as: d
760
+ },
761
+ ownerState: f,
762
+ className: z.root
763
+ });
764
+ return (
765
+ // @ts-ignore `defaultValue` between HTMLDiv and TabsProps is conflicted.
766
+ /* @__PURE__ */ P.jsx(T, u({}, k, {
767
+ children: /* @__PURE__ */ P.jsx(pe, {
768
+ value: g,
769
+ children: /* @__PURE__ */ P.jsx(J.Provider, {
770
+ value: v,
771
+ children: a
772
+ })
773
+ })
774
+ }))
775
+ );
776
+ });
777
+ export {
778
+ Ye as H,
779
+ ke as L,
780
+ Je as M,
781
+ Ue as j,
782
+ Ee as k
783
+ };