@amateescu/portal-ui-components 0.0.6 → 0.0.7-beta1

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.
@@ -0,0 +1,1315 @@
1
+ import { a as m, _ as ne } from "./index-kNWC7pFF.js";
2
+ import * as c from "react";
3
+ import G, { Children as it, isValidElement as ee, cloneElement as te } from "react";
4
+ import { P as n, k as rt, c as M, g as fe, u as he, j as A, f as Ne, i as $e, r as st, h as B, l as at, m as Z } from "./generateUtilityClasses-yRWzVVZS.js";
5
+ import { jsx as _, jsxs as Ve } from "react/jsx-runtime";
6
+ import { _ as lt, a as ct } from "./assertThisInitialized-BUtkG-md.js";
7
+ import { keyframes as be } from "@emotion/react";
8
+ const ut = n.oneOfType([n.func, n.object]);
9
+ function pt(e) {
10
+ const {
11
+ prototype: t = {}
12
+ } = e;
13
+ return !!t.isReactComponent;
14
+ }
15
+ function dt(e, t, o, a, i) {
16
+ const r = e[t], s = i || t;
17
+ if (r == null || // When server-side rendering React doesn't warn either.
18
+ // This is not an accurate check for SSR.
19
+ // This is only in place for emotion compat.
20
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
21
+ typeof window > "u")
22
+ return null;
23
+ let u;
24
+ return typeof r == "function" && !pt(r) && (u = "Did you accidentally provide a plain function component instead?"), u !== void 0 ? new Error(`Invalid ${a} \`${s}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
25
+ }
26
+ const ft = rt(n.elementType, dt);
27
+ function ht(e, t) {
28
+ typeof e == "function" ? e(t) : e && (e.current = t);
29
+ }
30
+ function Ce(...e) {
31
+ return c.useMemo(() => e.every((t) => t == null) ? null : (t) => {
32
+ e.forEach((o) => {
33
+ ht(o, t);
34
+ });
35
+ }, e);
36
+ }
37
+ const bt = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
38
+ function J(e) {
39
+ const t = c.useRef(e);
40
+ return bt(() => {
41
+ t.current = e;
42
+ }), c.useRef((...o) => (
43
+ // @ts-expect-error hide `this`
44
+ (0, t.current)(...o)
45
+ )).current;
46
+ }
47
+ const Ee = {};
48
+ function mt(e, t) {
49
+ const o = c.useRef(Ee);
50
+ return o.current === Ee && (o.current = e(t)), o;
51
+ }
52
+ const gt = [];
53
+ function vt(e) {
54
+ c.useEffect(e, gt);
55
+ }
56
+ class oe {
57
+ constructor() {
58
+ this.currentId = null, this.clear = () => {
59
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
60
+ }, this.disposeEffect = () => this.clear;
61
+ }
62
+ static create() {
63
+ return new oe();
64
+ }
65
+ /**
66
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
67
+ */
68
+ start(t, o) {
69
+ this.clear(), this.currentId = setTimeout(() => {
70
+ this.currentId = null, o();
71
+ }, t);
72
+ }
73
+ }
74
+ function yt() {
75
+ const e = mt(oe.create).current;
76
+ return vt(e.disposeEffect), e;
77
+ }
78
+ let ie = !0, pe = !1;
79
+ const xt = new oe(), Rt = {
80
+ text: !0,
81
+ search: !0,
82
+ url: !0,
83
+ tel: !0,
84
+ email: !0,
85
+ password: !0,
86
+ number: !0,
87
+ date: !0,
88
+ month: !0,
89
+ week: !0,
90
+ time: !0,
91
+ datetime: !0,
92
+ "datetime-local": !0
93
+ };
94
+ function Ct(e) {
95
+ const {
96
+ type: t,
97
+ tagName: o
98
+ } = e;
99
+ return !!(o === "INPUT" && Rt[t] && !e.readOnly || o === "TEXTAREA" && !e.readOnly || e.isContentEditable);
100
+ }
101
+ function Et(e) {
102
+ e.metaKey || e.altKey || e.ctrlKey || (ie = !0);
103
+ }
104
+ function ue() {
105
+ ie = !1;
106
+ }
107
+ function Tt() {
108
+ this.visibilityState === "hidden" && pe && (ie = !0);
109
+ }
110
+ function Mt(e) {
111
+ e.addEventListener("keydown", Et, !0), e.addEventListener("mousedown", ue, !0), e.addEventListener("pointerdown", ue, !0), e.addEventListener("touchstart", ue, !0), e.addEventListener("visibilitychange", Tt, !0);
112
+ }
113
+ function zt(e) {
114
+ const {
115
+ target: t
116
+ } = e;
117
+ try {
118
+ return t.matches(":focus-visible");
119
+ } catch {
120
+ }
121
+ return ie || Ct(t);
122
+ }
123
+ function It() {
124
+ const e = c.useCallback((i) => {
125
+ i != null && Mt(i.ownerDocument);
126
+ }, []), t = c.useRef(!1);
127
+ function o() {
128
+ return t.current ? (pe = !0, xt.start(100, () => {
129
+ pe = !1;
130
+ }), t.current = !1, !0) : !1;
131
+ }
132
+ function a(i) {
133
+ return zt(i) ? (t.current = !0, !0) : !1;
134
+ }
135
+ return {
136
+ isFocusVisibleRef: t,
137
+ onFocus: a,
138
+ onBlur: o,
139
+ ref: e
140
+ };
141
+ }
142
+ function Bt(e, t) {
143
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, lt(e, t);
144
+ }
145
+ const Te = G.createContext(null);
146
+ function me(e, t) {
147
+ var o = function(r) {
148
+ return t && ee(r) ? t(r) : r;
149
+ }, a = /* @__PURE__ */ Object.create(null);
150
+ return e && it.map(e, function(i) {
151
+ return i;
152
+ }).forEach(function(i) {
153
+ a[i.key] = o(i);
154
+ }), a;
155
+ }
156
+ function Nt(e, t) {
157
+ e = e || {}, t = t || {};
158
+ function o(h) {
159
+ return h in t ? t[h] : e[h];
160
+ }
161
+ var a = /* @__PURE__ */ Object.create(null), i = [];
162
+ for (var r in e)
163
+ r in t ? i.length && (a[r] = i, i = []) : i.push(r);
164
+ var s, u = {};
165
+ for (var p in t) {
166
+ if (a[p])
167
+ for (s = 0; s < a[p].length; s++) {
168
+ var d = a[p][s];
169
+ u[a[p][s]] = o(d);
170
+ }
171
+ u[p] = o(p);
172
+ }
173
+ for (s = 0; s < i.length; s++)
174
+ u[i[s]] = o(i[s]);
175
+ return u;
176
+ }
177
+ function K(e, t, o) {
178
+ return o[t] != null ? o[t] : e.props[t];
179
+ }
180
+ function $t(e, t) {
181
+ return me(e.children, function(o) {
182
+ return te(o, {
183
+ onExited: t.bind(null, o),
184
+ in: !0,
185
+ appear: K(o, "appear", e),
186
+ enter: K(o, "enter", e),
187
+ exit: K(o, "exit", e)
188
+ });
189
+ });
190
+ }
191
+ function Vt(e, t, o) {
192
+ var a = me(e.children), i = Nt(t, a);
193
+ return Object.keys(i).forEach(function(r) {
194
+ var s = i[r];
195
+ if (ee(s)) {
196
+ var u = r in t, p = r in a, d = t[r], h = ee(d) && !d.props.in;
197
+ p && (!u || h) ? i[r] = te(s, {
198
+ onExited: o.bind(null, s),
199
+ in: !0,
200
+ exit: K(s, "exit", e),
201
+ enter: K(s, "enter", e)
202
+ }) : !p && u && !h ? i[r] = te(s, {
203
+ in: !1
204
+ }) : p && u && ee(d) && (i[r] = te(s, {
205
+ onExited: o.bind(null, s),
206
+ in: d.props.in,
207
+ exit: K(s, "exit", e),
208
+ enter: K(s, "enter", e)
209
+ }));
210
+ }
211
+ }), i;
212
+ }
213
+ var Pt = Object.values || function(e) {
214
+ return Object.keys(e).map(function(t) {
215
+ return e[t];
216
+ });
217
+ }, kt = {
218
+ component: "div",
219
+ childFactory: function(t) {
220
+ return t;
221
+ }
222
+ }, ge = /* @__PURE__ */ function(e) {
223
+ Bt(t, e);
224
+ function t(a, i) {
225
+ var r;
226
+ r = e.call(this, a, i) || this;
227
+ var s = r.handleExited.bind(ct(r));
228
+ return r.state = {
229
+ contextValue: {
230
+ isMounting: !0
231
+ },
232
+ handleExited: s,
233
+ firstRender: !0
234
+ }, r;
235
+ }
236
+ var o = t.prototype;
237
+ return o.componentDidMount = function() {
238
+ this.mounted = !0, this.setState({
239
+ contextValue: {
240
+ isMounting: !1
241
+ }
242
+ });
243
+ }, o.componentWillUnmount = function() {
244
+ this.mounted = !1;
245
+ }, t.getDerivedStateFromProps = function(i, r) {
246
+ var s = r.children, u = r.handleExited, p = r.firstRender;
247
+ return {
248
+ children: p ? $t(i, u) : Vt(i, s, u),
249
+ firstRender: !1
250
+ };
251
+ }, o.handleExited = function(i, r) {
252
+ var s = me(this.props.children);
253
+ i.key in s || (i.props.onExited && i.props.onExited(r), this.mounted && this.setState(function(u) {
254
+ var p = m({}, u.children);
255
+ return delete p[i.key], {
256
+ children: p
257
+ };
258
+ }));
259
+ }, o.render = function() {
260
+ var i = this.props, r = i.component, s = i.childFactory, u = ne(i, ["component", "childFactory"]), p = this.state.contextValue, d = Pt(this.state.children).map(s);
261
+ return delete u.appear, delete u.enter, delete u.exit, r === null ? /* @__PURE__ */ G.createElement(Te.Provider, {
262
+ value: p
263
+ }, d) : /* @__PURE__ */ G.createElement(Te.Provider, {
264
+ value: p
265
+ }, /* @__PURE__ */ G.createElement(r, u, d));
266
+ }, t;
267
+ }(G.Component);
268
+ ge.propTypes = process.env.NODE_ENV !== "production" ? {
269
+ /**
270
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
271
+ * behavior by providing a `component` prop.
272
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
273
+ * you can pass in `component={null}`. This is useful if the wrapping div
274
+ * borks your css styles.
275
+ */
276
+ component: n.any,
277
+ /**
278
+ * A set of `<Transition>` components, that are toggled `in` and out as they
279
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
280
+ * remember to spread them through if you are wrapping the `<Transition>` as
281
+ * with our `<Fade>` example.
282
+ *
283
+ * While this component is meant for multiple `Transition` or `CSSTransition`
284
+ * children, sometimes you may want to have a single transition child with
285
+ * content that you want to be transitioned out and in when you change it
286
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
287
+ * the transition child as you change its content, this will cause
288
+ * `TransitionGroup` to transition the child out and back in.
289
+ */
290
+ children: n.node,
291
+ /**
292
+ * A convenience prop that enables or disables appear animations
293
+ * for all children. Note that specifying this will override any defaults set
294
+ * on individual children Transitions.
295
+ */
296
+ appear: n.bool,
297
+ /**
298
+ * A convenience prop that enables or disables enter animations
299
+ * for all children. Note that specifying this will override any defaults set
300
+ * on individual children Transitions.
301
+ */
302
+ enter: n.bool,
303
+ /**
304
+ * A convenience prop that enables or disables exit animations
305
+ * for all children. Note that specifying this will override any defaults set
306
+ * on individual children Transitions.
307
+ */
308
+ exit: n.bool,
309
+ /**
310
+ * You may need to apply reactive updates to a child as it is exiting.
311
+ * This is generally done by using `cloneElement` however in the case of an exiting
312
+ * child the element has already been removed and not accessible to the consumer.
313
+ *
314
+ * If you do need to update a child as it leaves you can provide a `childFactory`
315
+ * to wrap every child, even the ones that are leaving.
316
+ *
317
+ * @type Function(child: ReactElement) -> ReactElement
318
+ */
319
+ childFactory: n.func
320
+ } : {};
321
+ ge.defaultProps = kt;
322
+ function Pe(e) {
323
+ const {
324
+ className: t,
325
+ classes: o,
326
+ pulsate: a = !1,
327
+ rippleX: i,
328
+ rippleY: r,
329
+ rippleSize: s,
330
+ in: u,
331
+ onExited: p,
332
+ timeout: d
333
+ } = e, [h, v] = c.useState(!1), y = M(t, o.ripple, o.rippleVisible, a && o.ripplePulsate), R = {
334
+ width: s,
335
+ height: s,
336
+ top: -(s / 2) + r,
337
+ left: -(s / 2) + i
338
+ }, b = M(o.child, h && o.childLeaving, a && o.childPulsate);
339
+ return !u && !h && v(!0), c.useEffect(() => {
340
+ if (!u && p != null) {
341
+ const C = setTimeout(p, d);
342
+ return () => {
343
+ clearTimeout(C);
344
+ };
345
+ }
346
+ }, [p, u, d]), /* @__PURE__ */ _("span", {
347
+ className: y,
348
+ style: R,
349
+ children: /* @__PURE__ */ _("span", {
350
+ className: b
351
+ })
352
+ });
353
+ }
354
+ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
355
+ /**
356
+ * Override or extend the styles applied to the component.
357
+ */
358
+ classes: n.object.isRequired,
359
+ className: n.string,
360
+ /**
361
+ * @ignore - injected from TransitionGroup
362
+ */
363
+ in: n.bool,
364
+ /**
365
+ * @ignore - injected from TransitionGroup
366
+ */
367
+ onExited: n.func,
368
+ /**
369
+ * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
370
+ */
371
+ pulsate: n.bool,
372
+ /**
373
+ * Diameter of the ripple.
374
+ */
375
+ rippleSize: n.number,
376
+ /**
377
+ * Horizontal position of the ripple center.
378
+ */
379
+ rippleX: n.number,
380
+ /**
381
+ * Vertical position of the ripple center.
382
+ */
383
+ rippleY: n.number,
384
+ /**
385
+ * exit delay
386
+ */
387
+ timeout: n.number.isRequired
388
+ });
389
+ const z = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ot = ["center", "classes", "className"];
390
+ let re = (e) => e, Me, ze, Ie, Be;
391
+ const de = 550, Dt = 80, Lt = be(Me || (Me = re`
392
+ 0% {
393
+ transform: scale(0);
394
+ opacity: 0.1;
395
+ }
396
+
397
+ 100% {
398
+ transform: scale(1);
399
+ opacity: 0.3;
400
+ }
401
+ `)), St = be(ze || (ze = re`
402
+ 0% {
403
+ opacity: 1;
404
+ }
405
+
406
+ 100% {
407
+ opacity: 0;
408
+ }
409
+ `)), Ft = be(Ie || (Ie = re`
410
+ 0% {
411
+ transform: scale(1);
412
+ }
413
+
414
+ 50% {
415
+ transform: scale(0.92);
416
+ }
417
+
418
+ 100% {
419
+ transform: scale(1);
420
+ }
421
+ `)), _t = A("span", {
422
+ name: "MuiTouchRipple",
423
+ slot: "Root"
424
+ })({
425
+ overflow: "hidden",
426
+ pointerEvents: "none",
427
+ position: "absolute",
428
+ zIndex: 0,
429
+ top: 0,
430
+ right: 0,
431
+ bottom: 0,
432
+ left: 0,
433
+ borderRadius: "inherit"
434
+ }), jt = A(Pe, {
435
+ name: "MuiTouchRipple",
436
+ slot: "Ripple"
437
+ })(Be || (Be = re`
438
+ opacity: 0;
439
+ position: absolute;
440
+
441
+ &.${0} {
442
+ opacity: 0.3;
443
+ transform: scale(1);
444
+ animation-name: ${0};
445
+ animation-duration: ${0}ms;
446
+ animation-timing-function: ${0};
447
+ }
448
+
449
+ &.${0} {
450
+ animation-duration: ${0}ms;
451
+ }
452
+
453
+ & .${0} {
454
+ opacity: 1;
455
+ display: block;
456
+ width: 100%;
457
+ height: 100%;
458
+ border-radius: 50%;
459
+ background-color: currentColor;
460
+ }
461
+
462
+ & .${0} {
463
+ opacity: 0;
464
+ animation-name: ${0};
465
+ animation-duration: ${0}ms;
466
+ animation-timing-function: ${0};
467
+ }
468
+
469
+ & .${0} {
470
+ position: absolute;
471
+ /* @noflip */
472
+ left: 0px;
473
+ top: 0;
474
+ animation-name: ${0};
475
+ animation-duration: 2500ms;
476
+ animation-timing-function: ${0};
477
+ animation-iteration-count: infinite;
478
+ animation-delay: 200ms;
479
+ }
480
+ `), z.rippleVisible, Lt, de, ({
481
+ theme: e
482
+ }) => e.transitions.easing.easeInOut, z.ripplePulsate, ({
483
+ theme: e
484
+ }) => e.transitions.duration.shorter, z.child, z.childLeaving, St, de, ({
485
+ theme: e
486
+ }) => e.transitions.easing.easeInOut, z.childPulsate, Ft, ({
487
+ theme: e
488
+ }) => e.transitions.easing.easeInOut), ke = /* @__PURE__ */ c.forwardRef(function(t, o) {
489
+ const a = he({
490
+ props: t,
491
+ name: "MuiTouchRipple"
492
+ }), {
493
+ center: i = !1,
494
+ classes: r = {},
495
+ className: s
496
+ } = a, u = ne(a, Ot), [p, d] = c.useState([]), h = c.useRef(0), v = c.useRef(null);
497
+ c.useEffect(() => {
498
+ v.current && (v.current(), v.current = null);
499
+ }, [p]);
500
+ const y = c.useRef(!1), R = yt(), b = c.useRef(null), C = c.useRef(null), j = c.useCallback((f) => {
501
+ const {
502
+ pulsate: E,
503
+ rippleX: g,
504
+ rippleY: x,
505
+ rippleSize: D,
506
+ cb: U
507
+ } = f;
508
+ d((T) => [...T, /* @__PURE__ */ _(jt, {
509
+ classes: {
510
+ ripple: M(r.ripple, z.ripple),
511
+ rippleVisible: M(r.rippleVisible, z.rippleVisible),
512
+ ripplePulsate: M(r.ripplePulsate, z.ripplePulsate),
513
+ child: M(r.child, z.child),
514
+ childLeaving: M(r.childLeaving, z.childLeaving),
515
+ childPulsate: M(r.childPulsate, z.childPulsate)
516
+ },
517
+ timeout: de,
518
+ pulsate: E,
519
+ rippleX: g,
520
+ rippleY: x,
521
+ rippleSize: D
522
+ }, h.current)]), h.current += 1, v.current = U;
523
+ }, [r]), k = c.useCallback((f = {}, E = {}, g = () => {
524
+ }) => {
525
+ const {
526
+ pulsate: x = !1,
527
+ center: D = i || E.pulsate,
528
+ fakeElement: U = !1
529
+ // For test purposes
530
+ } = E;
531
+ if ((f == null ? void 0 : f.type) === "mousedown" && y.current) {
532
+ y.current = !1;
533
+ return;
534
+ }
535
+ (f == null ? void 0 : f.type) === "touchstart" && (y.current = !0);
536
+ const T = U ? null : C.current, L = T ? T.getBoundingClientRect() : {
537
+ width: 0,
538
+ height: 0,
539
+ left: 0,
540
+ top: 0
541
+ };
542
+ let $, S, F;
543
+ if (D || f === void 0 || f.clientX === 0 && f.clientY === 0 || !f.clientX && !f.touches)
544
+ $ = Math.round(L.width / 2), S = Math.round(L.height / 2);
545
+ else {
546
+ const {
547
+ clientX: W,
548
+ clientY: V
549
+ } = f.touches && f.touches.length > 0 ? f.touches[0] : f;
550
+ $ = Math.round(W - L.left), S = Math.round(V - L.top);
551
+ }
552
+ if (D)
553
+ F = Math.sqrt((2 * L.width ** 2 + L.height ** 2) / 3), F % 2 === 0 && (F += 1);
554
+ else {
555
+ const W = Math.max(Math.abs((T ? T.clientWidth : 0) - $), $) * 2 + 2, V = Math.max(Math.abs((T ? T.clientHeight : 0) - S), S) * 2 + 2;
556
+ F = Math.sqrt(W ** 2 + V ** 2);
557
+ }
558
+ f != null && f.touches ? b.current === null && (b.current = () => {
559
+ j({
560
+ pulsate: x,
561
+ rippleX: $,
562
+ rippleY: S,
563
+ rippleSize: F,
564
+ cb: g
565
+ });
566
+ }, R.start(Dt, () => {
567
+ b.current && (b.current(), b.current = null);
568
+ })) : j({
569
+ pulsate: x,
570
+ rippleX: $,
571
+ rippleY: S,
572
+ rippleSize: F,
573
+ cb: g
574
+ });
575
+ }, [i, j, R]), O = c.useCallback(() => {
576
+ k({}, {
577
+ pulsate: !0
578
+ });
579
+ }, [k]), N = c.useCallback((f, E) => {
580
+ if (R.clear(), (f == null ? void 0 : f.type) === "touchend" && b.current) {
581
+ b.current(), b.current = null, R.start(0, () => {
582
+ N(f, E);
583
+ });
584
+ return;
585
+ }
586
+ b.current = null, d((g) => g.length > 0 ? g.slice(1) : g), v.current = E;
587
+ }, [R]);
588
+ return c.useImperativeHandle(o, () => ({
589
+ pulsate: O,
590
+ start: k,
591
+ stop: N
592
+ }), [O, k, N]), /* @__PURE__ */ _(_t, m({
593
+ className: M(z.root, r.root, s),
594
+ ref: C
595
+ }, u, {
596
+ children: /* @__PURE__ */ _(ge, {
597
+ component: null,
598
+ exit: !0,
599
+ children: p
600
+ })
601
+ }));
602
+ });
603
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
604
+ /**
605
+ * If `true`, the ripple starts at the center of the component
606
+ * rather than at the point of interaction.
607
+ */
608
+ center: n.bool,
609
+ /**
610
+ * Override or extend the styles applied to the component.
611
+ */
612
+ classes: n.object,
613
+ /**
614
+ * @ignore
615
+ */
616
+ className: n.string
617
+ });
618
+ function Ut(e) {
619
+ return Ne("MuiButtonBase", e);
620
+ }
621
+ const Wt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), wt = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], Kt = (e) => {
622
+ const {
623
+ disabled: t,
624
+ focusVisible: o,
625
+ focusVisibleClassName: a,
626
+ classes: i
627
+ } = e, s = $e({
628
+ root: ["root", t && "disabled", o && "focusVisible"]
629
+ }, Ut, i);
630
+ return o && a && (s.root += ` ${a}`), s;
631
+ }, At = A("button", {
632
+ name: "MuiButtonBase",
633
+ slot: "Root",
634
+ overridesResolver: (e, t) => t.root
635
+ })({
636
+ display: "inline-flex",
637
+ alignItems: "center",
638
+ justifyContent: "center",
639
+ position: "relative",
640
+ boxSizing: "border-box",
641
+ WebkitTapHighlightColor: "transparent",
642
+ backgroundColor: "transparent",
643
+ // Reset default value
644
+ // We disable the focus ring for mouse, touch and keyboard users.
645
+ outline: 0,
646
+ border: 0,
647
+ margin: 0,
648
+ // Remove the margin in Safari
649
+ borderRadius: 0,
650
+ padding: 0,
651
+ // Remove the padding in Firefox
652
+ cursor: "pointer",
653
+ userSelect: "none",
654
+ verticalAlign: "middle",
655
+ MozAppearance: "none",
656
+ // Reset
657
+ WebkitAppearance: "none",
658
+ // Reset
659
+ textDecoration: "none",
660
+ // So we take precedent over the style of a native <a /> element.
661
+ color: "inherit",
662
+ "&::-moz-focus-inner": {
663
+ borderStyle: "none"
664
+ // Remove Firefox dotted outline.
665
+ },
666
+ [`&.${Wt.disabled}`]: {
667
+ pointerEvents: "none",
668
+ // Disable link interactions
669
+ cursor: "default"
670
+ },
671
+ "@media print": {
672
+ colorAdjust: "exact"
673
+ }
674
+ }), Oe = /* @__PURE__ */ c.forwardRef(function(t, o) {
675
+ const a = he({
676
+ props: t,
677
+ name: "MuiButtonBase"
678
+ }), {
679
+ action: i,
680
+ centerRipple: r = !1,
681
+ children: s,
682
+ className: u,
683
+ component: p = "button",
684
+ disabled: d = !1,
685
+ disableRipple: h = !1,
686
+ disableTouchRipple: v = !1,
687
+ focusRipple: y = !1,
688
+ LinkComponent: R = "a",
689
+ onBlur: b,
690
+ onClick: C,
691
+ onContextMenu: j,
692
+ onDragLeave: k,
693
+ onFocus: O,
694
+ onFocusVisible: N,
695
+ onKeyDown: f,
696
+ onKeyUp: E,
697
+ onMouseDown: g,
698
+ onMouseLeave: x,
699
+ onMouseUp: D,
700
+ onTouchEnd: U,
701
+ onTouchMove: T,
702
+ onTouchStart: L,
703
+ tabIndex: $ = 0,
704
+ TouchRippleProps: S,
705
+ touchRippleRef: F,
706
+ type: W
707
+ } = a, V = ne(a, wt), X = c.useRef(null), I = c.useRef(null), Fe = Ce(I, F), {
708
+ isFocusVisibleRef: ve,
709
+ onFocus: _e,
710
+ onBlur: je,
711
+ ref: Ue
712
+ } = It(), [w, H] = c.useState(!1);
713
+ d && w && H(!1), c.useImperativeHandle(i, () => ({
714
+ focusVisible: () => {
715
+ H(!0), X.current.focus();
716
+ }
717
+ }), []);
718
+ const [se, We] = c.useState(!1);
719
+ c.useEffect(() => {
720
+ We(!0);
721
+ }, []);
722
+ const ae = se && !h && !d;
723
+ c.useEffect(() => {
724
+ w && y && !h && se && I.current.pulsate();
725
+ }, [h, y, w, se]);
726
+ function P(l, xe, ot = v) {
727
+ return J((Re) => (xe && xe(Re), !ot && I.current && I.current[l](Re), !0));
728
+ }
729
+ const we = P("start", g), Ke = P("stop", j), Ae = P("stop", k), Xe = P("stop", D), Ye = P("stop", (l) => {
730
+ w && l.preventDefault(), x && x(l);
731
+ }), Ge = P("start", L), He = P("stop", U), qe = P("stop", T), Ze = P("stop", (l) => {
732
+ je(l), ve.current === !1 && H(!1), b && b(l);
733
+ }, !1), Je = J((l) => {
734
+ X.current || (X.current = l.currentTarget), _e(l), ve.current === !0 && (H(!0), N && N(l)), O && O(l);
735
+ }), le = () => {
736
+ const l = X.current;
737
+ return p && p !== "button" && !(l.tagName === "A" && l.href);
738
+ }, ce = c.useRef(!1), Qe = J((l) => {
739
+ y && !ce.current && w && I.current && l.key === " " && (ce.current = !0, I.current.stop(l, () => {
740
+ I.current.start(l);
741
+ })), l.target === l.currentTarget && le() && l.key === " " && l.preventDefault(), f && f(l), l.target === l.currentTarget && le() && l.key === "Enter" && !d && (l.preventDefault(), C && C(l));
742
+ }), et = J((l) => {
743
+ y && l.key === " " && I.current && w && !l.defaultPrevented && (ce.current = !1, I.current.stop(l, () => {
744
+ I.current.pulsate(l);
745
+ })), E && E(l), C && l.target === l.currentTarget && le() && l.key === " " && !l.defaultPrevented && C(l);
746
+ });
747
+ let q = p;
748
+ q === "button" && (V.href || V.to) && (q = R);
749
+ const Y = {};
750
+ q === "button" ? (Y.type = W === void 0 ? "button" : W, Y.disabled = d) : (!V.href && !V.to && (Y.role = "button"), d && (Y["aria-disabled"] = d));
751
+ const tt = Ce(o, Ue, X);
752
+ process.env.NODE_ENV !== "production" && c.useEffect(() => {
753
+ ae && !I.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
754
+ `));
755
+ }, [ae]);
756
+ const ye = m({}, a, {
757
+ centerRipple: r,
758
+ component: p,
759
+ disabled: d,
760
+ disableRipple: h,
761
+ disableTouchRipple: v,
762
+ focusRipple: y,
763
+ tabIndex: $,
764
+ focusVisible: w
765
+ }), nt = Kt(ye);
766
+ return /* @__PURE__ */ Ve(At, m({
767
+ as: q,
768
+ className: M(nt.root, u),
769
+ ownerState: ye,
770
+ onBlur: Ze,
771
+ onClick: C,
772
+ onContextMenu: Ke,
773
+ onFocus: Je,
774
+ onKeyDown: Qe,
775
+ onKeyUp: et,
776
+ onMouseDown: we,
777
+ onMouseLeave: Ye,
778
+ onMouseUp: Xe,
779
+ onDragLeave: Ae,
780
+ onTouchEnd: He,
781
+ onTouchMove: qe,
782
+ onTouchStart: Ge,
783
+ ref: tt,
784
+ tabIndex: d ? -1 : $,
785
+ type: W
786
+ }, Y, V, {
787
+ children: [s, ae ? (
788
+ /* TouchRipple is only needed client-side, x2 boost on the server. */
789
+ /* @__PURE__ */ _(ke, m({
790
+ ref: Fe,
791
+ center: r
792
+ }, S))
793
+ ) : null]
794
+ }));
795
+ });
796
+ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
797
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
798
+ // │ These PropTypes are generated from the TypeScript type definitions. │
799
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
800
+ // └─────────────────────────────────────────────────────────────────────┘
801
+ /**
802
+ * A ref for imperative actions.
803
+ * It currently only supports `focusVisible()` action.
804
+ */
805
+ action: ut,
806
+ /**
807
+ * If `true`, the ripples are centered.
808
+ * They won't start at the cursor interaction position.
809
+ * @default false
810
+ */
811
+ centerRipple: n.bool,
812
+ /**
813
+ * The content of the component.
814
+ */
815
+ children: n.node,
816
+ /**
817
+ * Override or extend the styles applied to the component.
818
+ */
819
+ classes: n.object,
820
+ /**
821
+ * @ignore
822
+ */
823
+ className: n.string,
824
+ /**
825
+ * The component used for the root node.
826
+ * Either a string to use a HTML element or a component.
827
+ */
828
+ component: ft,
829
+ /**
830
+ * If `true`, the component is disabled.
831
+ * @default false
832
+ */
833
+ disabled: n.bool,
834
+ /**
835
+ * If `true`, the ripple effect is disabled.
836
+ *
837
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
838
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
839
+ * @default false
840
+ */
841
+ disableRipple: n.bool,
842
+ /**
843
+ * If `true`, the touch ripple effect is disabled.
844
+ * @default false
845
+ */
846
+ disableTouchRipple: n.bool,
847
+ /**
848
+ * If `true`, the base button will have a keyboard focus ripple.
849
+ * @default false
850
+ */
851
+ focusRipple: n.bool,
852
+ /**
853
+ * This prop can help identify which element has keyboard focus.
854
+ * The class name will be applied when the element gains the focus through keyboard interaction.
855
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
856
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
857
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
858
+ * if needed.
859
+ */
860
+ focusVisibleClassName: n.string,
861
+ /**
862
+ * @ignore
863
+ */
864
+ href: n.any,
865
+ /**
866
+ * The component used to render a link when the `href` prop is provided.
867
+ * @default 'a'
868
+ */
869
+ LinkComponent: n.elementType,
870
+ /**
871
+ * @ignore
872
+ */
873
+ onBlur: n.func,
874
+ /**
875
+ * @ignore
876
+ */
877
+ onClick: n.func,
878
+ /**
879
+ * @ignore
880
+ */
881
+ onContextMenu: n.func,
882
+ /**
883
+ * @ignore
884
+ */
885
+ onDragLeave: n.func,
886
+ /**
887
+ * @ignore
888
+ */
889
+ onFocus: n.func,
890
+ /**
891
+ * Callback fired when the component is focused with a keyboard.
892
+ * We trigger a `onFocus` callback too.
893
+ */
894
+ onFocusVisible: n.func,
895
+ /**
896
+ * @ignore
897
+ */
898
+ onKeyDown: n.func,
899
+ /**
900
+ * @ignore
901
+ */
902
+ onKeyUp: n.func,
903
+ /**
904
+ * @ignore
905
+ */
906
+ onMouseDown: n.func,
907
+ /**
908
+ * @ignore
909
+ */
910
+ onMouseLeave: n.func,
911
+ /**
912
+ * @ignore
913
+ */
914
+ onMouseUp: n.func,
915
+ /**
916
+ * @ignore
917
+ */
918
+ onTouchEnd: n.func,
919
+ /**
920
+ * @ignore
921
+ */
922
+ onTouchMove: n.func,
923
+ /**
924
+ * @ignore
925
+ */
926
+ onTouchStart: n.func,
927
+ /**
928
+ * The system prop that allows defining system overrides as well as additional CSS styles.
929
+ */
930
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
931
+ /**
932
+ * @default 0
933
+ */
934
+ tabIndex: n.number,
935
+ /**
936
+ * Props applied to the `TouchRipple` element.
937
+ */
938
+ TouchRippleProps: n.object,
939
+ /**
940
+ * A ref that points to the `TouchRipple` element.
941
+ */
942
+ touchRippleRef: n.oneOfType([n.func, n.shape({
943
+ current: n.shape({
944
+ pulsate: n.func.isRequired,
945
+ start: n.func.isRequired,
946
+ stop: n.func.isRequired
947
+ })
948
+ })]),
949
+ /**
950
+ * @ignore
951
+ */
952
+ type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string])
953
+ });
954
+ function Xt(e) {
955
+ return Ne("MuiButton", e);
956
+ }
957
+ const Q = fe("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), De = /* @__PURE__ */ c.createContext({});
958
+ process.env.NODE_ENV !== "production" && (De.displayName = "ButtonGroupContext");
959
+ const Le = /* @__PURE__ */ c.createContext(void 0);
960
+ process.env.NODE_ENV !== "production" && (Le.displayName = "ButtonGroupButtonContext");
961
+ const Yt = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], Gt = (e) => {
962
+ const {
963
+ color: t,
964
+ disableElevation: o,
965
+ fullWidth: a,
966
+ size: i,
967
+ variant: r,
968
+ classes: s
969
+ } = e, u = {
970
+ root: ["root", r, `${r}${B(t)}`, `size${B(i)}`, `${r}Size${B(i)}`, `color${B(t)}`, o && "disableElevation", a && "fullWidth"],
971
+ label: ["label"],
972
+ startIcon: ["icon", "startIcon", `iconSize${B(i)}`],
973
+ endIcon: ["icon", "endIcon", `iconSize${B(i)}`]
974
+ }, p = $e(u, Xt, s);
975
+ return m({}, s, p);
976
+ }, Se = (e) => m({}, e.size === "small" && {
977
+ "& > *:nth-of-type(1)": {
978
+ fontSize: 18
979
+ }
980
+ }, e.size === "medium" && {
981
+ "& > *:nth-of-type(1)": {
982
+ fontSize: 20
983
+ }
984
+ }, e.size === "large" && {
985
+ "& > *:nth-of-type(1)": {
986
+ fontSize: 22
987
+ }
988
+ }), Ht = A(Oe, {
989
+ shouldForwardProp: (e) => at(e) || e === "classes",
990
+ name: "MuiButton",
991
+ slot: "Root",
992
+ overridesResolver: (e, t) => {
993
+ const {
994
+ ownerState: o
995
+ } = e;
996
+ return [t.root, t[o.variant], t[`${o.variant}${B(o.color)}`], t[`size${B(o.size)}`], t[`${o.variant}Size${B(o.size)}`], o.color === "inherit" && t.colorInherit, o.disableElevation && t.disableElevation, o.fullWidth && t.fullWidth];
997
+ }
998
+ })(({
999
+ theme: e,
1000
+ ownerState: t
1001
+ }) => {
1002
+ var o, a;
1003
+ const i = e.palette.mode === "light" ? e.palette.grey[300] : e.palette.grey[800], r = e.palette.mode === "light" ? e.palette.grey.A100 : e.palette.grey[700];
1004
+ return m({}, e.typography.button, {
1005
+ minWidth: 64,
1006
+ padding: "6px 16px",
1007
+ borderRadius: (e.vars || e).shape.borderRadius,
1008
+ transition: e.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
1009
+ duration: e.transitions.duration.short
1010
+ }),
1011
+ "&:hover": m({
1012
+ textDecoration: "none",
1013
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : Z(e.palette.text.primary, e.palette.action.hoverOpacity),
1014
+ // Reset on touch devices, it doesn't add specificity
1015
+ "@media (hover: none)": {
1016
+ backgroundColor: "transparent"
1017
+ }
1018
+ }, t.variant === "text" && t.color !== "inherit" && {
1019
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : Z(e.palette[t.color].main, e.palette.action.hoverOpacity),
1020
+ // Reset on touch devices, it doesn't add specificity
1021
+ "@media (hover: none)": {
1022
+ backgroundColor: "transparent"
1023
+ }
1024
+ }, t.variant === "outlined" && t.color !== "inherit" && {
1025
+ border: `1px solid ${(e.vars || e).palette[t.color].main}`,
1026
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : Z(e.palette[t.color].main, e.palette.action.hoverOpacity),
1027
+ // Reset on touch devices, it doesn't add specificity
1028
+ "@media (hover: none)": {
1029
+ backgroundColor: "transparent"
1030
+ }
1031
+ }, t.variant === "contained" && {
1032
+ backgroundColor: e.vars ? e.vars.palette.Button.inheritContainedHoverBg : r,
1033
+ boxShadow: (e.vars || e).shadows[4],
1034
+ // Reset on touch devices, it doesn't add specificity
1035
+ "@media (hover: none)": {
1036
+ boxShadow: (e.vars || e).shadows[2],
1037
+ backgroundColor: (e.vars || e).palette.grey[300]
1038
+ }
1039
+ }, t.variant === "contained" && t.color !== "inherit" && {
1040
+ backgroundColor: (e.vars || e).palette[t.color].dark,
1041
+ // Reset on touch devices, it doesn't add specificity
1042
+ "@media (hover: none)": {
1043
+ backgroundColor: (e.vars || e).palette[t.color].main
1044
+ }
1045
+ }),
1046
+ "&:active": m({}, t.variant === "contained" && {
1047
+ boxShadow: (e.vars || e).shadows[8]
1048
+ }),
1049
+ [`&.${Q.focusVisible}`]: m({}, t.variant === "contained" && {
1050
+ boxShadow: (e.vars || e).shadows[6]
1051
+ }),
1052
+ [`&.${Q.disabled}`]: m({
1053
+ color: (e.vars || e).palette.action.disabled
1054
+ }, t.variant === "outlined" && {
1055
+ border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
1056
+ }, t.variant === "contained" && {
1057
+ color: (e.vars || e).palette.action.disabled,
1058
+ boxShadow: (e.vars || e).shadows[0],
1059
+ backgroundColor: (e.vars || e).palette.action.disabledBackground
1060
+ })
1061
+ }, t.variant === "text" && {
1062
+ padding: "6px 8px"
1063
+ }, t.variant === "text" && t.color !== "inherit" && {
1064
+ color: (e.vars || e).palette[t.color].main
1065
+ }, t.variant === "outlined" && {
1066
+ padding: "5px 15px",
1067
+ border: "1px solid currentColor"
1068
+ }, t.variant === "outlined" && t.color !== "inherit" && {
1069
+ color: (e.vars || e).palette[t.color].main,
1070
+ border: e.vars ? `1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)` : `1px solid ${Z(e.palette[t.color].main, 0.5)}`
1071
+ }, t.variant === "contained" && {
1072
+ color: e.vars ? (
1073
+ // this is safe because grey does not change between default light/dark mode
1074
+ e.vars.palette.text.primary
1075
+ ) : (o = (a = e.palette).getContrastText) == null ? void 0 : o.call(a, e.palette.grey[300]),
1076
+ backgroundColor: e.vars ? e.vars.palette.Button.inheritContainedBg : i,
1077
+ boxShadow: (e.vars || e).shadows[2]
1078
+ }, t.variant === "contained" && t.color !== "inherit" && {
1079
+ color: (e.vars || e).palette[t.color].contrastText,
1080
+ backgroundColor: (e.vars || e).palette[t.color].main
1081
+ }, t.color === "inherit" && {
1082
+ color: "inherit",
1083
+ borderColor: "currentColor"
1084
+ }, t.size === "small" && t.variant === "text" && {
1085
+ padding: "4px 5px",
1086
+ fontSize: e.typography.pxToRem(13)
1087
+ }, t.size === "large" && t.variant === "text" && {
1088
+ padding: "8px 11px",
1089
+ fontSize: e.typography.pxToRem(15)
1090
+ }, t.size === "small" && t.variant === "outlined" && {
1091
+ padding: "3px 9px",
1092
+ fontSize: e.typography.pxToRem(13)
1093
+ }, t.size === "large" && t.variant === "outlined" && {
1094
+ padding: "7px 21px",
1095
+ fontSize: e.typography.pxToRem(15)
1096
+ }, t.size === "small" && t.variant === "contained" && {
1097
+ padding: "4px 10px",
1098
+ fontSize: e.typography.pxToRem(13)
1099
+ }, t.size === "large" && t.variant === "contained" && {
1100
+ padding: "8px 22px",
1101
+ fontSize: e.typography.pxToRem(15)
1102
+ }, t.fullWidth && {
1103
+ width: "100%"
1104
+ });
1105
+ }, ({
1106
+ ownerState: e
1107
+ }) => e.disableElevation && {
1108
+ boxShadow: "none",
1109
+ "&:hover": {
1110
+ boxShadow: "none"
1111
+ },
1112
+ [`&.${Q.focusVisible}`]: {
1113
+ boxShadow: "none"
1114
+ },
1115
+ "&:active": {
1116
+ boxShadow: "none"
1117
+ },
1118
+ [`&.${Q.disabled}`]: {
1119
+ boxShadow: "none"
1120
+ }
1121
+ }), qt = A("span", {
1122
+ name: "MuiButton",
1123
+ slot: "StartIcon",
1124
+ overridesResolver: (e, t) => {
1125
+ const {
1126
+ ownerState: o
1127
+ } = e;
1128
+ return [t.startIcon, t[`iconSize${B(o.size)}`]];
1129
+ }
1130
+ })(({
1131
+ ownerState: e
1132
+ }) => m({
1133
+ display: "inherit",
1134
+ marginRight: 8,
1135
+ marginLeft: -4
1136
+ }, e.size === "small" && {
1137
+ marginLeft: -2
1138
+ }, Se(e))), Zt = A("span", {
1139
+ name: "MuiButton",
1140
+ slot: "EndIcon",
1141
+ overridesResolver: (e, t) => {
1142
+ const {
1143
+ ownerState: o
1144
+ } = e;
1145
+ return [t.endIcon, t[`iconSize${B(o.size)}`]];
1146
+ }
1147
+ })(({
1148
+ ownerState: e
1149
+ }) => m({
1150
+ display: "inherit",
1151
+ marginRight: -4,
1152
+ marginLeft: 8
1153
+ }, e.size === "small" && {
1154
+ marginRight: -2
1155
+ }, Se(e))), Jt = /* @__PURE__ */ c.forwardRef(function(t, o) {
1156
+ const a = c.useContext(De), i = c.useContext(Le), r = st(a, t), s = he({
1157
+ props: r,
1158
+ name: "MuiButton"
1159
+ }), {
1160
+ children: u,
1161
+ color: p = "primary",
1162
+ component: d = "button",
1163
+ className: h,
1164
+ disabled: v = !1,
1165
+ disableElevation: y = !1,
1166
+ disableFocusRipple: R = !1,
1167
+ endIcon: b,
1168
+ focusVisibleClassName: C,
1169
+ fullWidth: j = !1,
1170
+ size: k = "medium",
1171
+ startIcon: O,
1172
+ type: N,
1173
+ variant: f = "text"
1174
+ } = s, E = ne(s, Yt), g = m({}, s, {
1175
+ color: p,
1176
+ component: d,
1177
+ disabled: v,
1178
+ disableElevation: y,
1179
+ disableFocusRipple: R,
1180
+ fullWidth: j,
1181
+ size: k,
1182
+ type: N,
1183
+ variant: f
1184
+ }), x = Gt(g), D = O && /* @__PURE__ */ _(qt, {
1185
+ className: x.startIcon,
1186
+ ownerState: g,
1187
+ children: O
1188
+ }), U = b && /* @__PURE__ */ _(Zt, {
1189
+ className: x.endIcon,
1190
+ ownerState: g,
1191
+ children: b
1192
+ }), T = i || "";
1193
+ return /* @__PURE__ */ Ve(Ht, m({
1194
+ ownerState: g,
1195
+ className: M(a.className, x.root, h, T),
1196
+ component: d,
1197
+ disabled: v,
1198
+ focusRipple: !R,
1199
+ focusVisibleClassName: M(x.focusVisible, C),
1200
+ ref: o,
1201
+ type: N
1202
+ }, E, {
1203
+ classes: x,
1204
+ children: [D, u, U]
1205
+ }));
1206
+ });
1207
+ process.env.NODE_ENV !== "production" && (Jt.propTypes = {
1208
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1209
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1210
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1211
+ // └─────────────────────────────────────────────────────────────────────┘
1212
+ /**
1213
+ * The content of the component.
1214
+ */
1215
+ children: n.node,
1216
+ /**
1217
+ * Override or extend the styles applied to the component.
1218
+ */
1219
+ classes: n.object,
1220
+ /**
1221
+ * @ignore
1222
+ */
1223
+ className: n.string,
1224
+ /**
1225
+ * The color of the component.
1226
+ * It supports both default and custom theme colors, which can be added as shown in the
1227
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1228
+ * @default 'primary'
1229
+ */
1230
+ color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
1231
+ /**
1232
+ * The component used for the root node.
1233
+ * Either a string to use a HTML element or a component.
1234
+ */
1235
+ component: n.elementType,
1236
+ /**
1237
+ * If `true`, the component is disabled.
1238
+ * @default false
1239
+ */
1240
+ disabled: n.bool,
1241
+ /**
1242
+ * If `true`, no elevation is used.
1243
+ * @default false
1244
+ */
1245
+ disableElevation: n.bool,
1246
+ /**
1247
+ * If `true`, the keyboard focus ripple is disabled.
1248
+ * @default false
1249
+ */
1250
+ disableFocusRipple: n.bool,
1251
+ /**
1252
+ * If `true`, the ripple effect is disabled.
1253
+ *
1254
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
1255
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
1256
+ * @default false
1257
+ */
1258
+ disableRipple: n.bool,
1259
+ /**
1260
+ * Element placed after the children.
1261
+ */
1262
+ endIcon: n.node,
1263
+ /**
1264
+ * @ignore
1265
+ */
1266
+ focusVisibleClassName: n.string,
1267
+ /**
1268
+ * If `true`, the button will take up the full width of its container.
1269
+ * @default false
1270
+ */
1271
+ fullWidth: n.bool,
1272
+ /**
1273
+ * The URL to link to when the button is clicked.
1274
+ * If defined, an `a` element will be used as the root node.
1275
+ */
1276
+ href: n.string,
1277
+ /**
1278
+ * The size of the component.
1279
+ * `small` is equivalent to the dense button styling.
1280
+ * @default 'medium'
1281
+ */
1282
+ size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
1283
+ /**
1284
+ * Element placed before the children.
1285
+ */
1286
+ startIcon: n.node,
1287
+ /**
1288
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1289
+ */
1290
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1291
+ /**
1292
+ * @ignore
1293
+ */
1294
+ type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
1295
+ /**
1296
+ * The variant to use.
1297
+ * @default 'text'
1298
+ */
1299
+ variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
1300
+ });
1301
+ export {
1302
+ Jt as B,
1303
+ Te as T,
1304
+ Bt as _,
1305
+ bt as a,
1306
+ J as b,
1307
+ yt as c,
1308
+ Oe as d,
1309
+ ft as e,
1310
+ oe as f,
1311
+ It as g,
1312
+ ut as r,
1313
+ ht as s,
1314
+ Ce as u
1315
+ };