fansunited-widgets-cdn 0.0.84 → 0.0.86-RC1

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 (75) hide show
  1. package/chunks/Alert-CuOsmojH.js +149 -0
  2. package/chunks/AspectRatio-D3Sgxj7p.js +125 -0
  3. package/chunks/Avatar-BTsEKfhc.js +186 -0
  4. package/chunks/Button-BV7YIFkS.js +858 -0
  5. package/chunks/Card-DRIT0wtY.js +129 -0
  6. package/chunks/CardContent-CD-WZh1l.js +60 -0
  7. package/chunks/ChevronRight-BrCKlr3T.js +11 -0
  8. package/chunks/Chip-6HLNTHMI.js +281 -0
  9. package/chunks/ClassicQuizWrapper-t04e9_6c.js +4883 -0
  10. package/chunks/CollectLeadForm-DtmR2Vuf-B_3JkHJC.js +1560 -0
  11. package/chunks/CollectLeadWrapper-CVAVswua.js +1294 -0
  12. package/chunks/DialogActions-C5kAgHal.js +45 -0
  13. package/chunks/DialogContent-MIXff4nd.js +60 -0
  14. package/chunks/EitherOrById-CAo8gPjm.js +1496 -0
  15. package/chunks/EitherOrPreviewWrapper-DFi2bviS.js +47 -0
  16. package/chunks/Error-DhQL89pn-BwTV1meb.js +418 -0
  17. package/chunks/EventGameWrapper-BxyLL3eA.js +7633 -0
  18. package/chunks/Grid-Dpv_ZL23.js +279 -0
  19. package/chunks/IconButton-Lt9Xks7c.js +207 -0
  20. package/chunks/Link-DLuj1USf.js +228 -0
  21. package/chunks/List-DLPlZGTP.js +397 -0
  22. package/chunks/ListItemDecorator-CE2eQLip.js +1882 -0
  23. package/chunks/MatchPredictionContainer-Ct6gXvLw.js +751 -0
  24. package/chunks/MatchQuizWrapper-Fu6RfWVn.js +11046 -0
  25. package/chunks/ModalDialog-Ci3hulZA.js +619 -0
  26. package/chunks/NotFoundSkeleton-BYJTzYJR-Be3R34nS.js +2764 -0
  27. package/chunks/OverlayLeadAfterCollection-DnqztPJ5-CpELr0AC.js +896 -0
  28. package/chunks/OverlayScoreStateSkeleton-C9FUhcnd-DMFELrvA.js +146 -0
  29. package/chunks/PersonalityQuizWrapper-MpUK4n3Y.js +34374 -0
  30. package/chunks/PlayerOfTheMatch-D4vuR7pz.js +1406 -0
  31. package/chunks/PollWrapper-CzKj8xxE.js +4198 -0
  32. package/chunks/Portal-BWqqFvVm-TuHZWjxn.js +12717 -0
  33. package/chunks/Portal-DA1mxzSo.js +41 -0
  34. package/chunks/PreviewQuizById-WWS_LyJR.js +4864 -0
  35. package/chunks/Select-p_cHpLhi.js +3418 -0
  36. package/chunks/Sheet-BaCzogZK.js +167 -0
  37. package/chunks/Snackbar-DHxnbCA3.js +358 -0
  38. package/chunks/Stack-Dgf2LXN0.js +117 -0
  39. package/chunks/Tabs-CSu_cWNi.js +784 -0
  40. package/chunks/TeamNextMatchPrediction-C7HilNqW.js +6 -0
  41. package/chunks/Tutorial-DFNZxmAx.js +427 -0
  42. package/chunks/createLucideIcon-B6NxpYkb.js +79 -0
  43. package/chunks/createSvgIcon-7h7XC877.js +119 -0
  44. package/chunks/createSvgIcon-DVA0KIUd.js +2490 -0
  45. package/chunks/dataAttributeParser-CF9vxaVN.js +28 -0
  46. package/chunks/default-quiz-bg-CTzaADn7.js +4 -0
  47. package/chunks/getReactElementRef-BD-S8A24.js +25 -0
  48. package/chunks/index-24AwmTVJ.js +85 -0
  49. package/chunks/index-3vJS8JzK.js +63 -0
  50. package/chunks/index-BSD7mvEU.js +57 -0
  51. package/chunks/index-BU6iona7.js +57 -0
  52. package/chunks/index-BqCHiyI6.js +59 -0
  53. package/chunks/index-C5qRf4TV.js +20 -0
  54. package/chunks/index-C9MpfjqV.js +35 -0
  55. package/chunks/index-CMmQs5A5.js +56 -0
  56. package/chunks/index-CicEY2Jv.js +5 -0
  57. package/chunks/index-DNeawo0R.js +17 -0
  58. package/chunks/index-DePIySlY.js +29 -0
  59. package/chunks/index-DoRYU_1L.js +41 -0
  60. package/chunks/index-DvgG9XJj.js +20 -0
  61. package/chunks/index-QpZE-92Y.js +33 -0
  62. package/chunks/index-rgFj976B.js +17 -0
  63. package/chunks/index-tzsdMoo-.js +16 -0
  64. package/chunks/index.es-CHqz6mjo.js +6162 -0
  65. package/chunks/init-BEkECL0v.js +32 -0
  66. package/chunks/main-XP7dqk6g.js +39843 -0
  67. package/chunks/resolveProps-BfYZubfk.js +37 -0
  68. package/chunks/users-D_xgC4iQ.js +16 -0
  69. package/chunks/variantColorInheritance-DI3wUohX.js +28 -0
  70. package/fu-widgets-loader.es.js +76 -0
  71. package/fu-widgets-loader.js +1 -0
  72. package/fu-widgets.es.js +4 -0
  73. package/fu-widgets.iife.js +621 -682
  74. package/manifest.json +84 -0
  75. package/package.json +9 -2
@@ -0,0 +1,279 @@
1
+ import { w as y, r as d, P as ie, Q as le, _ as oe, j as A, E as ce, S as ae, D as ue, V as fe, W as pe, y as de, v as ge } from "./main-XP7dqk6g.js";
2
+ import { s as me, i as be } from "./Button-BV7YIFkS.js";
3
+ const $e = (e, n) => e.filter((r) => n.includes(r)), g = (e, n, r) => {
4
+ const t = e.keys[0];
5
+ Array.isArray(n) ? n.forEach((i, s) => {
6
+ r((l, u) => {
7
+ s <= e.keys.length - 1 && (s === 0 ? Object.assign(l, u) : l[e.up(e.keys[s])] = u);
8
+ }, i);
9
+ }) : n && typeof n == "object" ? (Object.keys(n).length > e.keys.length ? e.keys : $e(e.keys, Object.keys(n))).forEach((s) => {
10
+ if (e.keys.indexOf(s) !== -1) {
11
+ const l = n[s];
12
+ l !== void 0 && r((u, m) => {
13
+ t === s ? Object.assign(u, m) : u[e.up(s)] = m;
14
+ }, l);
15
+ }
16
+ }) : (typeof n == "number" || typeof n == "string") && r((i, s) => {
17
+ Object.assign(i, s);
18
+ }, n);
19
+ };
20
+ function a(e) {
21
+ return e ? `Level${e}` : "";
22
+ }
23
+ function G(e) {
24
+ return e.unstable_level > 0 && e.container;
25
+ }
26
+ function M(e) {
27
+ return function(r) {
28
+ return `var(--Grid-${r}Spacing${a(e.unstable_level)})`;
29
+ };
30
+ }
31
+ function N(e) {
32
+ return function(r) {
33
+ return e.unstable_level === 0 ? `var(--Grid-${r}Spacing)` : `var(--Grid-${r}Spacing${a(e.unstable_level - 1)})`;
34
+ };
35
+ }
36
+ function k(e) {
37
+ return e.unstable_level === 0 ? "var(--Grid-columns)" : `var(--Grid-columns${a(e.unstable_level - 1)})`;
38
+ }
39
+ const ye = ({
40
+ theme: e,
41
+ ownerState: n
42
+ }) => {
43
+ const r = M(n), t = {};
44
+ return g(e.breakpoints, n.gridSize, (i, s) => {
45
+ let l = {};
46
+ s === !0 && (l = {
47
+ flexBasis: 0,
48
+ flexGrow: 1,
49
+ maxWidth: "100%"
50
+ }), s === "auto" && (l = {
51
+ flexBasis: "auto",
52
+ flexGrow: 0,
53
+ flexShrink: 0,
54
+ maxWidth: "none",
55
+ width: "auto"
56
+ }), typeof s == "number" && (l = {
57
+ flexGrow: 0,
58
+ flexBasis: "auto",
59
+ width: `calc(100% * ${s} / ${k(n)}${G(n) ? ` + ${r("column")}` : ""})`
60
+ }), i(t, l);
61
+ }), t;
62
+ }, Ge = ({
63
+ theme: e,
64
+ ownerState: n
65
+ }) => {
66
+ const r = {};
67
+ return g(e.breakpoints, n.gridOffset, (t, i) => {
68
+ let s = {};
69
+ i === "auto" && (s = {
70
+ marginLeft: "auto"
71
+ }), typeof i == "number" && (s = {
72
+ marginLeft: i === 0 ? "0px" : `calc(100% * ${i} / ${k(n)})`
73
+ }), t(r, s);
74
+ }), r;
75
+ }, xe = ({
76
+ theme: e,
77
+ ownerState: n
78
+ }) => {
79
+ if (!n.container)
80
+ return {};
81
+ const r = G(n) ? {
82
+ [`--Grid-columns${a(n.unstable_level)}`]: k(n)
83
+ } : {
84
+ "--Grid-columns": 12
85
+ };
86
+ return g(e.breakpoints, n.columns, (t, i) => {
87
+ t(r, {
88
+ [`--Grid-columns${a(n.unstable_level)}`]: i
89
+ });
90
+ }), r;
91
+ }, ve = ({
92
+ theme: e,
93
+ ownerState: n
94
+ }) => {
95
+ if (!n.container)
96
+ return {};
97
+ const r = N(n), t = G(n) ? {
98
+ // Set the default spacing as its parent spacing.
99
+ // It will be overridden if spacing props are provided
100
+ [`--Grid-rowSpacing${a(n.unstable_level)}`]: r("row")
101
+ } : {};
102
+ return g(e.breakpoints, n.rowSpacing, (i, s) => {
103
+ var l;
104
+ i(t, {
105
+ [`--Grid-rowSpacing${a(n.unstable_level)}`]: typeof s == "string" ? s : (l = e.spacing) == null ? void 0 : l.call(e, s)
106
+ });
107
+ }), t;
108
+ }, Se = ({
109
+ theme: e,
110
+ ownerState: n
111
+ }) => {
112
+ if (!n.container)
113
+ return {};
114
+ const r = N(n), t = G(n) ? {
115
+ // Set the default spacing as its parent spacing.
116
+ // It will be overridden if spacing props are provided
117
+ [`--Grid-columnSpacing${a(n.unstable_level)}`]: r("column")
118
+ } : {};
119
+ return g(e.breakpoints, n.columnSpacing, (i, s) => {
120
+ var l;
121
+ i(t, {
122
+ [`--Grid-columnSpacing${a(n.unstable_level)}`]: typeof s == "string" ? s : (l = e.spacing) == null ? void 0 : l.call(e, s)
123
+ });
124
+ }), t;
125
+ }, he = ({
126
+ theme: e,
127
+ ownerState: n
128
+ }) => {
129
+ if (!n.container)
130
+ return {};
131
+ const r = {};
132
+ return g(e.breakpoints, n.direction, (t, i) => {
133
+ t(r, {
134
+ flexDirection: i
135
+ });
136
+ }), r;
137
+ }, Oe = ({
138
+ ownerState: e
139
+ }) => {
140
+ const n = M(e), r = N(e);
141
+ return y({
142
+ minWidth: 0,
143
+ boxSizing: "border-box"
144
+ }, e.container && y({
145
+ display: "flex",
146
+ flexWrap: "wrap"
147
+ }, e.wrap && e.wrap !== "wrap" && {
148
+ flexWrap: e.wrap
149
+ }, {
150
+ margin: `calc(${n("row")} / -2) calc(${n("column")} / -2)`
151
+ }, e.disableEqualOverflow && {
152
+ margin: `calc(${n("row")} * -1) 0px 0px calc(${n("column")} * -1)`
153
+ }), (!e.container || G(e)) && y({
154
+ padding: `calc(${r("row")} / 2) calc(${r("column")} / 2)`
155
+ }, (e.disableEqualOverflow || e.parentDisableEqualOverflow) && {
156
+ padding: `${r("row")} 0px 0px ${r("column")}`
157
+ }));
158
+ }, _e = (e) => {
159
+ const n = [];
160
+ return Object.entries(e).forEach(([r, t]) => {
161
+ t !== !1 && t !== void 0 && n.push(`grid-${r}-${String(t)}`);
162
+ }), n;
163
+ }, Ee = (e, n = "xs") => {
164
+ function r(t) {
165
+ return t === void 0 ? !1 : typeof t == "string" && !Number.isNaN(Number(t)) || typeof t == "number" && t > 0;
166
+ }
167
+ if (r(e))
168
+ return [`spacing-${n}-${String(e)}`];
169
+ if (typeof e == "object" && !Array.isArray(e)) {
170
+ const t = [];
171
+ return Object.entries(e).forEach(([i, s]) => {
172
+ r(s) && t.push(`spacing-${i}-${String(s)}`);
173
+ }), t;
174
+ }
175
+ return [];
176
+ }, Ce = (e) => e === void 0 ? [] : typeof e == "object" ? Object.entries(e).map(([n, r]) => `direction-${n}-${r}`) : [`direction-xs-${String(e)}`], je = ["className", "children", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow", "unstable_level"], Pe = pe(), we = me("div", {
177
+ name: "MuiGrid",
178
+ slot: "Root",
179
+ overridesResolver: (e, n) => n.root
180
+ });
181
+ function Ne(e) {
182
+ return ae({
183
+ props: e,
184
+ name: "MuiGrid",
185
+ defaultTheme: Pe
186
+ });
187
+ }
188
+ function ke(e = {}) {
189
+ const {
190
+ // This will allow adding custom styled fn (for example for custom sx style function)
191
+ createStyledComponent: n = we,
192
+ useThemeProps: r = Ne,
193
+ componentName: t = "MuiGrid"
194
+ } = e, i = /* @__PURE__ */ d.createContext(void 0), s = (m, c) => {
195
+ const {
196
+ container: x,
197
+ direction: v,
198
+ spacing: S,
199
+ wrap: b,
200
+ gridSize: h
201
+ } = m, O = {
202
+ root: ["root", x && "container", b !== "wrap" && `wrap-xs-${String(b)}`, ...Ce(v), ..._e(h), ...x ? Ee(S, c.breakpoints.keys[0]) : []]
203
+ };
204
+ return ue(O, (_) => fe(t, _), {});
205
+ }, l = n(xe, Se, ve, ye, he, Oe, Ge), u = /* @__PURE__ */ d.forwardRef(function(c, x) {
206
+ var v, S, b, h, O, _, q, D;
207
+ const C = ie(), V = r(c), j = le(V), E = d.useContext(i), {
208
+ className: J,
209
+ children: U,
210
+ columns: K = 12,
211
+ container: Q = !1,
212
+ component: F = "div",
213
+ direction: H = "row",
214
+ wrap: I = "wrap",
215
+ spacing: P = 0,
216
+ rowSpacing: X = P,
217
+ columnSpacing: Y = P,
218
+ disableEqualOverflow: R,
219
+ unstable_level: f = 0
220
+ } = j, Z = oe(j, je);
221
+ let $ = R;
222
+ f && R !== void 0 && ($ = c.disableEqualOverflow);
223
+ const T = {}, W = {}, z = {};
224
+ Object.entries(Z).forEach(([o, p]) => {
225
+ C.breakpoints.values[o] !== void 0 ? T[o] = p : C.breakpoints.values[o.replace("Offset", "")] !== void 0 ? W[o.replace("Offset", "")] = p : z[o] = p;
226
+ });
227
+ const ee = (v = c.columns) != null ? v : f ? void 0 : K, ne = (S = c.spacing) != null ? S : f ? void 0 : P, re = (b = (h = c.rowSpacing) != null ? h : c.spacing) != null ? b : f ? void 0 : X, se = (O = (_ = c.columnSpacing) != null ? _ : c.spacing) != null ? O : f ? void 0 : Y, B = y({}, j, {
228
+ level: f,
229
+ columns: ee,
230
+ container: Q,
231
+ direction: H,
232
+ wrap: I,
233
+ spacing: ne,
234
+ rowSpacing: re,
235
+ columnSpacing: se,
236
+ gridSize: T,
237
+ gridOffset: W,
238
+ disableEqualOverflow: (q = (D = $) != null ? D : E) != null ? q : !1,
239
+ // use context value if exists.
240
+ parentDisableEqualOverflow: E
241
+ // for nested grid
242
+ }), te = s(B, C);
243
+ let w = /* @__PURE__ */ A.jsx(l, y({
244
+ ref: x,
245
+ as: F,
246
+ ownerState: B,
247
+ className: ce(te.root, J)
248
+ }, z, {
249
+ children: d.Children.map(U, (o) => {
250
+ if (/* @__PURE__ */ d.isValidElement(o) && be(o, ["Grid"])) {
251
+ var p, L;
252
+ return /* @__PURE__ */ d.cloneElement(o, {
253
+ unstable_level: (p = (L = o.props) == null ? void 0 : L.unstable_level) != null ? p : f + 1
254
+ });
255
+ }
256
+ return o;
257
+ })
258
+ }));
259
+ return $ !== void 0 && $ !== (E ?? !1) && (w = /* @__PURE__ */ A.jsx(i.Provider, {
260
+ value: $,
261
+ children: w
262
+ })), w;
263
+ });
264
+ return u.muiName = "Grid", u;
265
+ }
266
+ const Re = ke({
267
+ createStyledComponent: de("div", {
268
+ name: "JoyGrid",
269
+ slot: "Root",
270
+ overridesResolver: (e, n) => n.root
271
+ }),
272
+ useThemeProps: (e) => ge({
273
+ props: e,
274
+ name: "JoyGrid"
275
+ })
276
+ });
277
+ export {
278
+ Re as G
279
+ };
@@ -0,0 +1,207 @@
1
+ import { F as Z, G as q, r as v, y as x, v as K, _ as Q, Z as Y, w as t, x as F, j as b, z as B, D as w, C as oo } from "./main-XP7dqk6g.js";
2
+ import { j as no, k as ro, u as io } from "./Button-BV7YIFkS.js";
3
+ function so(n) {
4
+ return Z("MuiIconButton", n);
5
+ }
6
+ const go = q("MuiIconButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "loading", "loadingIndicator"]), to = ["children", "action", "component", "color", "disabled", "variant", "loading", "loadingIndicator", "size", "slots", "slotProps"], ao = (n) => {
7
+ const {
8
+ color: o,
9
+ disabled: s,
10
+ focusVisible: i,
11
+ focusVisibleClassName: r,
12
+ size: l,
13
+ variant: p,
14
+ loading: g
15
+ } = n, I = {
16
+ root: ["root", s && "disabled", i && "focusVisible", p && `variant${B(p)}`, o && `color${B(o)}`, l && `size${B(l)}`, g && "loading"],
17
+ loadingIndicator: ["loadingIndicator"]
18
+ }, m = w(I, so, {});
19
+ return i && r && (m.root += ` ${r}`), m;
20
+ }, eo = x("button")(({
21
+ theme: n,
22
+ ownerState: o
23
+ }) => {
24
+ var s, i, r, l;
25
+ return [t({
26
+ "--Icon-margin": "initial",
27
+ // reset the icon's margin.
28
+ "--Icon-color": o.color !== "neutral" || o.variant === "solid" ? "currentColor" : n.vars.palette.text.icon
29
+ }, o.instanceSize && {
30
+ "--IconButton-size": {
31
+ sm: "2rem",
32
+ md: "2.25rem",
33
+ lg: "2.75rem"
34
+ }[o.instanceSize]
35
+ }, o.size === "sm" && {
36
+ "--Icon-fontSize": "calc(var(--IconButton-size, 2rem) / 1.6)",
37
+ // 1.25rem by default
38
+ "--CircularProgress-size": "20px",
39
+ "--CircularProgress-thickness": "2px",
40
+ minWidth: "var(--IconButton-size, 2rem)",
41
+ // use min-width instead of height to make the button resilient to its content
42
+ minHeight: "var(--IconButton-size, 2rem)",
43
+ // use min-height instead of height to make the button resilient to its content
44
+ fontSize: n.vars.fontSize.sm,
45
+ paddingInline: "2px"
46
+ // add a gap, in case the content is long, for example multiple icons
47
+ }, o.size === "md" && {
48
+ "--Icon-fontSize": "calc(var(--IconButton-size, 2.25rem) / 1.5)",
49
+ // 1.5rem by default
50
+ "--CircularProgress-size": "20px",
51
+ "--CircularProgress-thickness": "2px",
52
+ minWidth: "var(--IconButton-size, 2.25rem)",
53
+ minHeight: "var(--IconButton-size, 2.25rem)",
54
+ fontSize: n.vars.fontSize.md,
55
+ paddingInline: "0.25rem"
56
+ }, o.size === "lg" && {
57
+ "--Icon-fontSize": "calc(var(--IconButton-size, 2.75rem) / 1.571)",
58
+ // 1.75rem by default
59
+ "--CircularProgress-size": "28px",
60
+ "--CircularProgress-thickness": "4px",
61
+ minWidth: "var(--IconButton-size, 2.75rem)",
62
+ minHeight: "var(--IconButton-size, 2.75rem)",
63
+ fontSize: n.vars.fontSize.lg,
64
+ paddingInline: "0.375rem"
65
+ }, {
66
+ WebkitTapHighlightColor: "transparent",
67
+ paddingBlock: 0,
68
+ fontFamily: n.vars.fontFamily.body,
69
+ fontWeight: n.vars.fontWeight.md,
70
+ margin: "var(--IconButton-margin)",
71
+ // to be controlled by other components, for example Input
72
+ borderRadius: `var(--IconButton-radius, ${n.vars.radius.sm})`,
73
+ // to be controlled by other components, for example Input
74
+ border: "none",
75
+ boxSizing: "border-box",
76
+ backgroundColor: "transparent",
77
+ cursor: "pointer",
78
+ display: "inline-flex",
79
+ alignItems: "center",
80
+ justifyContent: "center",
81
+ position: "relative",
82
+ [n.focus.selector]: t({
83
+ "--Icon-color": "currentColor"
84
+ }, n.focus.default)
85
+ }), t({}, (s = n.variants[o.variant]) == null ? void 0 : s[o.color], {
86
+ "&:hover": {
87
+ "@media (hover: hover)": t({
88
+ "--Icon-color": "currentColor"
89
+ }, (i = n.variants[`${o.variant}Hover`]) == null ? void 0 : i[o.color])
90
+ },
91
+ '&:active, &[aria-pressed="true"]': t({
92
+ "--Icon-color": "currentColor"
93
+ }, (r = n.variants[`${o.variant}Active`]) == null ? void 0 : r[o.color]),
94
+ "&:disabled": (l = n.variants[`${o.variant}Disabled`]) == null ? void 0 : l[o.color]
95
+ })];
96
+ }), lo = x(eo, {
97
+ name: "JoyIconButton",
98
+ slot: "Root",
99
+ overridesResolver: (n, o) => o.root
100
+ })({}), co = x("span", {
101
+ name: "JoyIconButton",
102
+ slot: "LoadingIndicator",
103
+ overridesResolver: (n, o) => o.loadingIndicator
104
+ })(({
105
+ theme: n,
106
+ ownerState: o
107
+ }) => {
108
+ var s, i;
109
+ return t({
110
+ display: "inherit",
111
+ position: "absolute",
112
+ left: "50%",
113
+ transform: "translateX(-50%)",
114
+ color: (s = n.variants[o.variant]) == null || (s = s[o.color]) == null ? void 0 : s.color
115
+ }, o.disabled && {
116
+ color: (i = n.variants[`${o.variant}Disabled`]) == null || (i = i[o.color]) == null ? void 0 : i.color
117
+ });
118
+ }), uo = /* @__PURE__ */ v.forwardRef(function(o, s) {
119
+ var i;
120
+ const r = K({
121
+ props: o,
122
+ name: "JoyIconButton"
123
+ }), {
124
+ children: l,
125
+ action: p,
126
+ component: g = "button",
127
+ color: I = "neutral",
128
+ disabled: m,
129
+ variant: H = "plain",
130
+ loading: z = !1,
131
+ loadingIndicator: y,
132
+ size: S = "md",
133
+ slots: L = {},
134
+ slotProps: a = {}
135
+ } = r, N = Q(r, to), f = v.useContext(no), e = v.useContext(ro), T = o.variant || f.variant || H, h = o.size || f.size || S, P = o.color || f.color || I, k = (i = o.loading || o.disabled) != null ? i : f.disabled || z || m, R = v.useRef(null), D = Y(R, s), {
136
+ focusVisible: G,
137
+ setFocusVisible: $,
138
+ getRootProps: U
139
+ } = io(t({}, r, {
140
+ disabled: k,
141
+ rootRef: D
142
+ })), A = y ?? /* @__PURE__ */ b.jsx(oo, {
143
+ color: P,
144
+ thickness: {
145
+ sm: 2,
146
+ md: 3,
147
+ lg: 4
148
+ }[h] || 3
149
+ });
150
+ v.useImperativeHandle(p, () => ({
151
+ focusVisible: () => {
152
+ var u;
153
+ $(!0), (u = R.current) == null || u.focus();
154
+ }
155
+ }), [$]);
156
+ const c = t({}, r, {
157
+ component: g,
158
+ color: P,
159
+ disabled: k,
160
+ variant: T,
161
+ loading: z,
162
+ size: h,
163
+ focusVisible: G,
164
+ instanceSize: o.size
165
+ }), _ = ao(c), J = (u) => {
166
+ var W;
167
+ let C = r.onClick;
168
+ if (typeof a.root == "function" ? C = a.root(c).onClick : a.root && (C = a.root.onClick), (W = C) == null || W(u), e) {
169
+ var V;
170
+ (V = e.onClick) == null || V.call(e, u, r.value);
171
+ }
172
+ };
173
+ let d = r["aria-pressed"];
174
+ typeof a.root == "function" ? d = a.root(c)["aria-pressed"] : a.root && (d = a.root["aria-pressed"]), e != null && e.value && (Array.isArray(e.value) ? d = e.value.indexOf(r.value) !== -1 : d = e.value === r.value);
175
+ const j = t({}, N, {
176
+ component: g,
177
+ slots: L,
178
+ slotProps: a
179
+ }), [M, E] = F("root", {
180
+ ref: s,
181
+ className: _.root,
182
+ elementType: lo,
183
+ getSlotProps: U,
184
+ externalForwardedProps: j,
185
+ ownerState: c,
186
+ additionalProps: {
187
+ onClick: J,
188
+ "aria-pressed": d
189
+ }
190
+ }), [O, X] = F("loadingIndicator", {
191
+ className: _.loadingIndicator,
192
+ elementType: co,
193
+ externalForwardedProps: j,
194
+ ownerState: c
195
+ });
196
+ return /* @__PURE__ */ b.jsx(M, t({}, E, {
197
+ children: z ? /* @__PURE__ */ b.jsx(O, t({}, X, {
198
+ children: A
199
+ })) : l
200
+ }));
201
+ });
202
+ uo.muiName = "IconButton";
203
+ export {
204
+ uo as I,
205
+ eo as S,
206
+ go as i
207
+ };