dq-cus-lib 1.0.13 → 1.1.1

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 (87) hide show
  1. package/dist/index.css +181 -0
  2. package/dist/index.css.map +1 -0
  3. package/dist/index.d.ts +29 -6
  4. package/dist/index.js +365 -1
  5. package/dist/index.js.map +1 -0
  6. package/package.json +15 -40
  7. package/dist/Card-Bfg8P2ba.mjs +0 -70
  8. package/dist/Card-DZoz07x1.js +0 -1
  9. package/dist/CardContent-C3iE4rdC.js +0 -1
  10. package/dist/CardContent-CX83Iz5u.mjs +0 -73
  11. package/dist/Container-CHiQwwon.mjs +0 -3470
  12. package/dist/Container-DRUrQLPe.js +0 -34
  13. package/dist/Paper-B1BWzC32.js +0 -3
  14. package/dist/Paper-px0ZrIl-.mjs +0 -725
  15. package/dist/Typography-DjYh_lcA.js +0 -1
  16. package/dist/Typography-dhPvE-yk.mjs +0 -524
  17. package/dist/button-BTe1MJmo.mjs +0 -2052
  18. package/dist/button-XEz-DvWZ.js +0 -132
  19. package/dist/components/common/loading.d.ts +0 -2
  20. package/dist/components/common/login-image.d.ts +0 -6
  21. package/dist/components/error.page/error.d.ts +0 -2
  22. package/dist/components/landing.page/constants.d.ts +0 -5
  23. package/dist/components/landing.page/features.d.ts +0 -3
  24. package/dist/components/landing.page/footer.d.ts +0 -7
  25. package/dist/components/landing.page/header.d.ts +0 -7
  26. package/dist/components/landing.page/hero.d.ts +0 -7
  27. package/dist/components/layout.page/api-calls.d.ts +0 -2
  28. package/dist/components/layout.page/constants.d.ts +0 -9
  29. package/dist/components/layout.page/footer.d.ts +0 -2
  30. package/dist/components/layout.page/header.d.ts +0 -5
  31. package/dist/components/signin.page/api-calls.d.ts +0 -1
  32. package/dist/components/signin.page/business-rules.d.ts +0 -1
  33. package/dist/components/signin.page/footer-links.d.ts +0 -10
  34. package/dist/components/signin.page/sign-in.d.ts +0 -6
  35. package/dist/components/user.page/card.d.ts +0 -12
  36. package/dist/components/user.page/constants.d.ts +0 -16
  37. package/dist/components/user.page/navigator-icon.d.ts +0 -8
  38. package/dist/components/user.page/navigator-link.d.ts +0 -8
  39. package/dist/constants-CYWfA_it.js +0 -1
  40. package/dist/constants-bixGJi69.mjs +0 -10
  41. package/dist/dashboard.page.d.ts +0 -4
  42. package/dist/dashboard.page.js +0 -1
  43. package/dist/dashboard.page.mjs +0 -52
  44. package/dist/dq-cus-lib.css +0 -1
  45. package/dist/error-B0u1MssC.mjs +0 -17
  46. package/dist/error-C-Fm8lre.js +0 -1
  47. package/dist/error.page.d.ts +0 -4
  48. package/dist/error.page.js +0 -1
  49. package/dist/error.page.mjs +0 -10
  50. package/dist/favicon.ico +0 -0
  51. package/dist/header-BLuHRYED.js +0 -1
  52. package/dist/header-DZeF4MvE.mjs +0 -353
  53. package/dist/index-CCRuOAqd.js +0 -292
  54. package/dist/index-gUmyoYAp.mjs +0 -477
  55. package/dist/index.mjs +0 -16
  56. package/dist/jsx-runtime-nZSsnGb7.js +0 -6
  57. package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
  58. package/dist/landing.page.d.ts +0 -4
  59. package/dist/landing.page.js +0 -3
  60. package/dist/landing.page.mjs +0 -181
  61. package/dist/layout.page.d.ts +0 -4
  62. package/dist/layout.page.js +0 -1
  63. package/dist/layout.page.mjs +0 -24
  64. package/dist/library/index.d.ts +0 -6
  65. package/dist/link-button-BkYJm52P.mjs +0 -52
  66. package/dist/link-button-yZmEF1A6.js +0 -19
  67. package/dist/logout-error.page.d.ts +0 -4
  68. package/dist/logout-error.page.js +0 -1
  69. package/dist/logout-error.page.mjs +0 -31
  70. package/dist/manifest.json +0 -15
  71. package/dist/pages/dashboard.page.d.ts +0 -2
  72. package/dist/pages/error.page.d.ts +0 -2
  73. package/dist/pages/landing.page.d.ts +0 -7
  74. package/dist/pages/layout.page.d.ts +0 -8
  75. package/dist/pages/logout-error.page.d.ts +0 -6
  76. package/dist/pages/signin.page.d.ts +0 -6
  77. package/dist/pages/wrappers/auth.wrapper.d.ts +0 -8
  78. package/dist/pages/wrappers/common-page.wrapper.d.ts +0 -2
  79. package/dist/pages/wrappers/link.navigator.d.ts +0 -8
  80. package/dist/pages/wrappers/non-auth.wrapper.d.ts +0 -6
  81. package/dist/resources/constants.d.ts +0 -7
  82. package/dist/resources/images.d.ts +0 -6
  83. package/dist/resources/routes.d.ts +0 -9
  84. package/dist/resources/status.d.ts +0 -4
  85. package/dist/signin.page.d.ts +0 -4
  86. package/dist/signin.page.js +0 -17
  87. package/dist/signin.page.mjs +0 -9761
@@ -1,2052 +0,0 @@
1
- import { u as Q, s as k, P as t, c as I, g as fe, a as C, j as et, r as tt } from "./Container-CHiQwwon.mjs";
2
- import { createStack as nt, keyframes as Z, css as Te } from "@mui/system";
3
- import * as p from "react";
4
- import H, { isValidElement as te, cloneElement as ne, Children as ot, useMemo as rt, useCallback as it } from "react";
5
- import { j as b } from "./jsx-runtime-tc70JA_2.mjs";
6
- import { e as we, b as ie, c as he, m as ae, d as Ee } from "./Paper-px0ZrIl-.mjs";
7
- const at = typeof window < "u" ? p.useLayoutEffect : p.useEffect;
8
- let ve = 0;
9
- function st(e) {
10
- const [n, o] = p.useState(e), r = e || n;
11
- return p.useEffect(() => {
12
- n == null && (ve += 1, o(`mui-${ve}`));
13
- }, [n]), r;
14
- }
15
- const lt = {
16
- ...p
17
- }, xe = lt.useId;
18
- function ct(e) {
19
- if (xe !== void 0) {
20
- const n = xe();
21
- return e ?? n;
22
- }
23
- return st(e);
24
- }
25
- const an = {
26
- SMALL_ICON: "https://i.ibb.co/24Qy7m1/Dhe-Quest64.png",
27
- NAMELOGO: "https://i.ibb.co/qYhSRLJ4/Dhe-Quest128-Full.png",
28
- WALLPAPER: "https://i.imgur.com/nBm1Ub3.png"
29
- }, ut = nt({
30
- createStyledComponent: k("div", {
31
- name: "MuiStack",
32
- slot: "Root"
33
- }),
34
- useThemeProps: (e) => Q({
35
- props: e,
36
- name: "MuiStack"
37
- })
38
- });
39
- process.env.NODE_ENV !== "production" && (ut.propTypes = {
40
- // ┌────────────────────────────── Warning ──────────────────────────────┐
41
- // │ These PropTypes are generated from the TypeScript type definitions. │
42
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
43
- // └─────────────────────────────────────────────────────────────────────┘
44
- /**
45
- * The content of the component.
46
- */
47
- children: t.node,
48
- /**
49
- * The component used for the root node.
50
- * Either a string to use a HTML element or a component.
51
- */
52
- component: t.elementType,
53
- /**
54
- * Defines the `flex-direction` style property.
55
- * It is applied for all screen sizes.
56
- * @default 'column'
57
- */
58
- direction: t.oneOfType([t.oneOf(["column-reverse", "column", "row-reverse", "row"]), t.arrayOf(t.oneOf(["column-reverse", "column", "row-reverse", "row"])), t.object]),
59
- /**
60
- * Add an element between each child.
61
- */
62
- divider: t.node,
63
- /**
64
- * Defines the space between immediate children.
65
- * @default 0
66
- */
67
- spacing: t.oneOfType([t.arrayOf(t.oneOfType([t.number, t.string])), t.number, t.object, t.string]),
68
- /**
69
- * The system prop, which allows defining system overrides as well as additional CSS styles.
70
- */
71
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
72
- /**
73
- * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
74
- *
75
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
76
- * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
77
- *
78
- * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
79
- * @default false
80
- */
81
- useFlexGap: t.bool
82
- });
83
- function oe(e) {
84
- const n = p.useRef(e);
85
- return at(() => {
86
- n.current = e;
87
- }), p.useRef((...o) => (
88
- // @ts-expect-error hide `this`
89
- (0, n.current)(...o)
90
- )).current;
91
- }
92
- function Se(...e) {
93
- const n = p.useRef(void 0), o = p.useCallback((r) => {
94
- const a = e.map((i) => {
95
- if (i == null)
96
- return null;
97
- if (typeof i == "function") {
98
- const s = i, l = s(r);
99
- return typeof l == "function" ? l : () => {
100
- s(null);
101
- };
102
- }
103
- return i.current = r, () => {
104
- i.current = null;
105
- };
106
- });
107
- return () => {
108
- a.forEach((i) => i?.());
109
- };
110
- }, e);
111
- return p.useMemo(() => e.every((r) => r == null) ? null : (r) => {
112
- n.current && (n.current(), n.current = void 0), r != null && (n.current = o(r));
113
- }, e);
114
- }
115
- const pt = t.oneOfType([t.func, t.object]);
116
- function dt(e) {
117
- const {
118
- prototype: n = {}
119
- } = e;
120
- return !!n.isReactComponent;
121
- }
122
- function ft(e, n, o, r, a) {
123
- const i = e[n], s = a || n;
124
- if (i == null || // When server-side rendering React doesn't warn either.
125
- // This is not an accurate check for SSR.
126
- // This is only in place for emotion compat.
127
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
128
- typeof window > "u")
129
- return null;
130
- let l;
131
- return typeof i == "function" && !dt(i) && (l = "Did you accidentally provide a plain function component instead?"), i === p.Fragment && (l = "Did you accidentally provide a React.Fragment instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${s}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
132
- }
133
- const ht = we(t.elementType, ft);
134
- function Ce(e) {
135
- try {
136
- return e.matches(":focus-visible");
137
- } catch {
138
- process.env.NODE_ENV !== "production" && !window.navigator.userAgent.includes("jsdom") && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
139
- `));
140
- }
141
- return !1;
142
- }
143
- const Re = {};
144
- function Ie(e, n) {
145
- const o = p.useRef(Re);
146
- return o.current === Re && (o.current = e(n)), o;
147
- }
148
- class re {
149
- /** React ref to the ripple instance */
150
- /** If the ripple component should be mounted */
151
- /** Promise that resolves when the ripple component is mounted */
152
- /** If the ripple component has been mounted */
153
- /** React state hook setter */
154
- static create() {
155
- return new re();
156
- }
157
- static use() {
158
- const n = Ie(re.create).current, [o, r] = p.useState(!1);
159
- return n.shouldMount = o, n.setShouldMount = r, p.useEffect(n.mountEffect, [o]), n;
160
- }
161
- constructor() {
162
- this.ref = {
163
- current: null
164
- }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
165
- }
166
- mount() {
167
- return this.mounted || (this.mounted = mt(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
168
- }
169
- mountEffect = () => {
170
- this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
171
- };
172
- /* Ripple API */
173
- start(...n) {
174
- this.mount().then(() => this.ref.current?.start(...n));
175
- }
176
- stop(...n) {
177
- this.mount().then(() => this.ref.current?.stop(...n));
178
- }
179
- pulsate(...n) {
180
- this.mount().then(() => this.ref.current?.pulsate(...n));
181
- }
182
- }
183
- function gt() {
184
- return re.use();
185
- }
186
- function mt() {
187
- let e, n;
188
- const o = new Promise((r, a) => {
189
- e = r, n = a;
190
- });
191
- return o.resolve = e, o.reject = n, o;
192
- }
193
- function le() {
194
- return le = Object.assign ? Object.assign.bind() : function(e) {
195
- for (var n = 1; n < arguments.length; n++) {
196
- var o = arguments[n];
197
- for (var r in o) ({}).hasOwnProperty.call(o, r) && (e[r] = o[r]);
198
- }
199
- return e;
200
- }, le.apply(null, arguments);
201
- }
202
- function bt(e, n) {
203
- if (e == null) return {};
204
- var o = {};
205
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
206
- if (n.indexOf(r) !== -1) continue;
207
- o[r] = e[r];
208
- }
209
- return o;
210
- }
211
- function ce(e, n) {
212
- return ce = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, r) {
213
- return o.__proto__ = r, o;
214
- }, ce(e, n);
215
- }
216
- function yt(e, n) {
217
- e.prototype = Object.create(n.prototype), e.prototype.constructor = e, ce(e, n);
218
- }
219
- const Me = H.createContext(null);
220
- function vt(e) {
221
- if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
222
- return e;
223
- }
224
- function ge(e, n) {
225
- var o = function(i) {
226
- return n && te(i) ? n(i) : i;
227
- }, r = /* @__PURE__ */ Object.create(null);
228
- return e && ot.map(e, function(a) {
229
- return a;
230
- }).forEach(function(a) {
231
- r[a.key] = o(a);
232
- }), r;
233
- }
234
- function xt(e, n) {
235
- e = e || {}, n = n || {};
236
- function o(f) {
237
- return f in n ? n[f] : e[f];
238
- }
239
- var r = /* @__PURE__ */ Object.create(null), a = [];
240
- for (var i in e)
241
- i in n ? a.length && (r[i] = a, a = []) : a.push(i);
242
- var s, l = {};
243
- for (var c in n) {
244
- if (r[c])
245
- for (s = 0; s < r[c].length; s++) {
246
- var d = r[c][s];
247
- l[r[c][s]] = o(d);
248
- }
249
- l[c] = o(c);
250
- }
251
- for (s = 0; s < a.length; s++)
252
- l[a[s]] = o(a[s]);
253
- return l;
254
- }
255
- function K(e, n, o) {
256
- return o[n] != null ? o[n] : e.props[n];
257
- }
258
- function St(e, n) {
259
- return ge(e.children, function(o) {
260
- return ne(o, {
261
- onExited: n.bind(null, o),
262
- in: !0,
263
- appear: K(o, "appear", e),
264
- enter: K(o, "enter", e),
265
- exit: K(o, "exit", e)
266
- });
267
- });
268
- }
269
- function Ct(e, n, o) {
270
- var r = ge(e.children), a = xt(n, r);
271
- return Object.keys(a).forEach(function(i) {
272
- var s = a[i];
273
- if (te(s)) {
274
- var l = i in n, c = i in r, d = n[i], f = te(d) && !d.props.in;
275
- c && (!l || f) ? a[i] = ne(s, {
276
- onExited: o.bind(null, s),
277
- in: !0,
278
- exit: K(s, "exit", e),
279
- enter: K(s, "enter", e)
280
- }) : !c && l && !f ? a[i] = ne(s, {
281
- in: !1
282
- }) : c && l && te(d) && (a[i] = ne(s, {
283
- onExited: o.bind(null, s),
284
- in: d.props.in,
285
- exit: K(s, "exit", e),
286
- enter: K(s, "enter", e)
287
- }));
288
- }
289
- }), a;
290
- }
291
- var Rt = Object.values || function(e) {
292
- return Object.keys(e).map(function(n) {
293
- return e[n];
294
- });
295
- }, Mt = {
296
- component: "div",
297
- childFactory: function(n) {
298
- return n;
299
- }
300
- }, me = /* @__PURE__ */ (function(e) {
301
- yt(n, e);
302
- function n(r, a) {
303
- var i;
304
- i = e.call(this, r, a) || this;
305
- var s = i.handleExited.bind(vt(i));
306
- return i.state = {
307
- contextValue: {
308
- isMounting: !0
309
- },
310
- handleExited: s,
311
- firstRender: !0
312
- }, i;
313
- }
314
- var o = n.prototype;
315
- return o.componentDidMount = function() {
316
- this.mounted = !0, this.setState({
317
- contextValue: {
318
- isMounting: !1
319
- }
320
- });
321
- }, o.componentWillUnmount = function() {
322
- this.mounted = !1;
323
- }, n.getDerivedStateFromProps = function(a, i) {
324
- var s = i.children, l = i.handleExited, c = i.firstRender;
325
- return {
326
- children: c ? St(a, l) : Ct(a, s, l),
327
- firstRender: !1
328
- };
329
- }, o.handleExited = function(a, i) {
330
- var s = ge(this.props.children);
331
- a.key in s || (a.props.onExited && a.props.onExited(i), this.mounted && this.setState(function(l) {
332
- var c = le({}, l.children);
333
- return delete c[a.key], {
334
- children: c
335
- };
336
- }));
337
- }, o.render = function() {
338
- var a = this.props, i = a.component, s = a.childFactory, l = bt(a, ["component", "childFactory"]), c = this.state.contextValue, d = Rt(this.state.children).map(s);
339
- return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ H.createElement(Me.Provider, {
340
- value: c
341
- }, d) : /* @__PURE__ */ H.createElement(Me.Provider, {
342
- value: c
343
- }, /* @__PURE__ */ H.createElement(i, l, d));
344
- }, n;
345
- })(H.Component);
346
- me.propTypes = process.env.NODE_ENV !== "production" ? {
347
- /**
348
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
349
- * behavior by providing a `component` prop.
350
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
351
- * you can pass in `component={null}`. This is useful if the wrapping div
352
- * borks your css styles.
353
- */
354
- component: t.any,
355
- /**
356
- * A set of `<Transition>` components, that are toggled `in` and out as they
357
- * leave. the `<TransitionGroup>` will inject specific transition props, so
358
- * remember to spread them through if you are wrapping the `<Transition>` as
359
- * with our `<Fade>` example.
360
- *
361
- * While this component is meant for multiple `Transition` or `CSSTransition`
362
- * children, sometimes you may want to have a single transition child with
363
- * content that you want to be transitioned out and in when you change it
364
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
365
- * the transition child as you change its content, this will cause
366
- * `TransitionGroup` to transition the child out and back in.
367
- */
368
- children: t.node,
369
- /**
370
- * A convenience prop that enables or disables appear animations
371
- * for all children. Note that specifying this will override any defaults set
372
- * on individual children Transitions.
373
- */
374
- appear: t.bool,
375
- /**
376
- * A convenience prop that enables or disables enter animations
377
- * for all children. Note that specifying this will override any defaults set
378
- * on individual children Transitions.
379
- */
380
- enter: t.bool,
381
- /**
382
- * A convenience prop that enables or disables exit animations
383
- * for all children. Note that specifying this will override any defaults set
384
- * on individual children Transitions.
385
- */
386
- exit: t.bool,
387
- /**
388
- * You may need to apply reactive updates to a child as it is exiting.
389
- * This is generally done by using `cloneElement` however in the case of an exiting
390
- * child the element has already been removed and not accessible to the consumer.
391
- *
392
- * If you do need to update a child as it leaves you can provide a `childFactory`
393
- * to wrap every child, even the ones that are leaving.
394
- *
395
- * @type Function(child: ReactElement) -> ReactElement
396
- */
397
- childFactory: t.func
398
- } : {};
399
- me.defaultProps = Mt;
400
- const Pt = [];
401
- function Tt(e) {
402
- p.useEffect(e, Pt);
403
- }
404
- class be {
405
- static create() {
406
- return new be();
407
- }
408
- currentId = null;
409
- /**
410
- * Executes `fn` after `delay`, clearing any previously scheduled call.
411
- */
412
- start(n, o) {
413
- this.clear(), this.currentId = setTimeout(() => {
414
- this.currentId = null, o();
415
- }, n);
416
- }
417
- clear = () => {
418
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
419
- };
420
- disposeEffect = () => this.clear;
421
- }
422
- function wt() {
423
- const e = Ie(be.create).current;
424
- return Tt(e.disposeEffect), e;
425
- }
426
- function ke(e) {
427
- const {
428
- className: n,
429
- classes: o,
430
- pulsate: r = !1,
431
- rippleX: a,
432
- rippleY: i,
433
- rippleSize: s,
434
- in: l,
435
- onExited: c,
436
- timeout: d
437
- } = e, [f, g] = p.useState(!1), x = I(n, o.ripple, o.rippleVisible, r && o.ripplePulsate), w = {
438
- width: s,
439
- height: s,
440
- top: -(s / 2) + i,
441
- left: -(s / 2) + a
442
- }, m = I(o.child, f && o.childLeaving, r && o.childPulsate);
443
- return !l && !f && g(!0), p.useEffect(() => {
444
- if (!l && c != null) {
445
- const P = setTimeout(c, d);
446
- return () => {
447
- clearTimeout(P);
448
- };
449
- }
450
- }, [c, l, d]), /* @__PURE__ */ b.jsx("span", {
451
- className: x,
452
- style: w,
453
- children: /* @__PURE__ */ b.jsx("span", {
454
- className: m
455
- })
456
- });
457
- }
458
- process.env.NODE_ENV !== "production" && (ke.propTypes = {
459
- /**
460
- * Override or extend the styles applied to the component.
461
- */
462
- classes: t.object.isRequired,
463
- className: t.string,
464
- /**
465
- * @ignore - injected from TransitionGroup
466
- */
467
- in: t.bool,
468
- /**
469
- * @ignore - injected from TransitionGroup
470
- */
471
- onExited: t.func,
472
- /**
473
- * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
474
- */
475
- pulsate: t.bool,
476
- /**
477
- * Diameter of the ripple.
478
- */
479
- rippleSize: t.number,
480
- /**
481
- * Horizontal position of the ripple center.
482
- */
483
- rippleX: t.number,
484
- /**
485
- * Vertical position of the ripple center.
486
- */
487
- rippleY: t.number,
488
- /**
489
- * exit delay
490
- */
491
- timeout: t.number.isRequired
492
- });
493
- const N = ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ue = 550, Et = 80, It = Z`
494
- 0% {
495
- transform: scale(0);
496
- opacity: 0.1;
497
- }
498
-
499
- 100% {
500
- transform: scale(1);
501
- opacity: 0.3;
502
- }
503
- `, kt = Z`
504
- 0% {
505
- opacity: 1;
506
- }
507
-
508
- 100% {
509
- opacity: 0;
510
- }
511
- `, Bt = Z`
512
- 0% {
513
- transform: scale(1);
514
- }
515
-
516
- 50% {
517
- transform: scale(0.92);
518
- }
519
-
520
- 100% {
521
- transform: scale(1);
522
- }
523
- `, Ot = k("span", {
524
- name: "MuiTouchRipple",
525
- slot: "Root"
526
- })({
527
- overflow: "hidden",
528
- pointerEvents: "none",
529
- position: "absolute",
530
- zIndex: 0,
531
- top: 0,
532
- right: 0,
533
- bottom: 0,
534
- left: 0,
535
- borderRadius: "inherit"
536
- }), Nt = k(ke, {
537
- name: "MuiTouchRipple",
538
- slot: "Ripple"
539
- })`
540
- opacity: 0;
541
- position: absolute;
542
-
543
- &.${N.rippleVisible} {
544
- opacity: 0.3;
545
- transform: scale(1);
546
- animation-name: ${It};
547
- animation-duration: ${ue}ms;
548
- animation-timing-function: ${({
549
- theme: e
550
- }) => e.transitions.easing.easeInOut};
551
- }
552
-
553
- &.${N.ripplePulsate} {
554
- animation-duration: ${({
555
- theme: e
556
- }) => e.transitions.duration.shorter}ms;
557
- }
558
-
559
- & .${N.child} {
560
- opacity: 1;
561
- display: block;
562
- width: 100%;
563
- height: 100%;
564
- border-radius: 50%;
565
- background-color: currentColor;
566
- }
567
-
568
- & .${N.childLeaving} {
569
- opacity: 0;
570
- animation-name: ${kt};
571
- animation-duration: ${ue}ms;
572
- animation-timing-function: ${({
573
- theme: e
574
- }) => e.transitions.easing.easeInOut};
575
- }
576
-
577
- & .${N.childPulsate} {
578
- position: absolute;
579
- /* @noflip */
580
- left: 0px;
581
- top: 0;
582
- animation-name: ${Bt};
583
- animation-duration: 2500ms;
584
- animation-timing-function: ${({
585
- theme: e
586
- }) => e.transitions.easing.easeInOut};
587
- animation-iteration-count: infinite;
588
- animation-delay: 200ms;
589
- }
590
- `, Be = /* @__PURE__ */ p.forwardRef(function(n, o) {
591
- const r = Q({
592
- props: n,
593
- name: "MuiTouchRipple"
594
- }), {
595
- center: a = !1,
596
- classes: i = {},
597
- className: s,
598
- ...l
599
- } = r, [c, d] = p.useState([]), f = p.useRef(0), g = p.useRef(null);
600
- p.useEffect(() => {
601
- g.current && (g.current(), g.current = null);
602
- }, [c]);
603
- const x = p.useRef(!1), w = wt(), m = p.useRef(null), P = p.useRef(null), R = p.useCallback((h) => {
604
- const {
605
- pulsate: O,
606
- rippleX: T,
607
- rippleY: L,
608
- rippleSize: V,
609
- cb: _
610
- } = h;
611
- d((E) => [...E, /* @__PURE__ */ b.jsx(Nt, {
612
- classes: {
613
- ripple: I(i.ripple, N.ripple),
614
- rippleVisible: I(i.rippleVisible, N.rippleVisible),
615
- ripplePulsate: I(i.ripplePulsate, N.ripplePulsate),
616
- child: I(i.child, N.child),
617
- childLeaving: I(i.childLeaving, N.childLeaving),
618
- childPulsate: I(i.childPulsate, N.childPulsate)
619
- },
620
- timeout: ue,
621
- pulsate: O,
622
- rippleX: T,
623
- rippleY: L,
624
- rippleSize: V
625
- }, f.current)]), f.current += 1, g.current = _;
626
- }, [i]), B = p.useCallback((h = {}, O = {}, T = () => {
627
- }) => {
628
- const {
629
- pulsate: L = !1,
630
- center: V = a || O.pulsate,
631
- fakeElement: _ = !1
632
- // For test purposes
633
- } = O;
634
- if (h?.type === "mousedown" && x.current) {
635
- x.current = !1;
636
- return;
637
- }
638
- h?.type === "touchstart" && (x.current = !0);
639
- const E = _ ? null : P.current, $ = E ? E.getBoundingClientRect() : {
640
- width: 0,
641
- height: 0,
642
- left: 0,
643
- top: 0
644
- };
645
- let S, y, D;
646
- if (V || h === void 0 || h.clientX === 0 && h.clientY === 0 || !h.clientX && !h.touches)
647
- S = Math.round($.width / 2), y = Math.round($.height / 2);
648
- else {
649
- const {
650
- clientX: A,
651
- clientY: W
652
- } = h.touches && h.touches.length > 0 ? h.touches[0] : h;
653
- S = Math.round(A - $.left), y = Math.round(W - $.top);
654
- }
655
- if (V)
656
- D = Math.sqrt((2 * $.width ** 2 + $.height ** 2) / 3), D % 2 === 0 && (D += 1);
657
- else {
658
- const A = Math.max(Math.abs((E ? E.clientWidth : 0) - S), S) * 2 + 2, W = Math.max(Math.abs((E ? E.clientHeight : 0) - y), y) * 2 + 2;
659
- D = Math.sqrt(A ** 2 + W ** 2);
660
- }
661
- h?.touches ? m.current === null && (m.current = () => {
662
- R({
663
- pulsate: L,
664
- rippleX: S,
665
- rippleY: y,
666
- rippleSize: D,
667
- cb: T
668
- });
669
- }, w.start(Et, () => {
670
- m.current && (m.current(), m.current = null);
671
- })) : R({
672
- pulsate: L,
673
- rippleX: S,
674
- rippleY: y,
675
- rippleSize: D,
676
- cb: T
677
- });
678
- }, [a, R, w]), M = p.useCallback(() => {
679
- B({}, {
680
- pulsate: !0
681
- });
682
- }, [B]), z = p.useCallback((h, O) => {
683
- if (w.clear(), h?.type === "touchend" && m.current) {
684
- m.current(), m.current = null, w.start(0, () => {
685
- z(h, O);
686
- });
687
- return;
688
- }
689
- m.current = null, d((T) => T.length > 0 ? T.slice(1) : T), g.current = O;
690
- }, [w]);
691
- return p.useImperativeHandle(o, () => ({
692
- pulsate: M,
693
- start: B,
694
- stop: z
695
- }), [M, B, z]), /* @__PURE__ */ b.jsx(Ot, {
696
- className: I(N.root, i.root, s),
697
- ref: P,
698
- ...l,
699
- children: /* @__PURE__ */ b.jsx(me, {
700
- component: null,
701
- exit: !0,
702
- children: c
703
- })
704
- });
705
- });
706
- process.env.NODE_ENV !== "production" && (Be.propTypes = {
707
- /**
708
- * If `true`, the ripple starts at the center of the component
709
- * rather than at the point of interaction.
710
- */
711
- center: t.bool,
712
- /**
713
- * Override or extend the styles applied to the component.
714
- */
715
- classes: t.object,
716
- /**
717
- * @ignore
718
- */
719
- className: t.string
720
- });
721
- function zt(e) {
722
- return fe("MuiButtonBase", e);
723
- }
724
- const $t = ie("MuiButtonBase", ["root", "disabled", "focusVisible"]), jt = (e) => {
725
- const {
726
- disabled: n,
727
- focusVisible: o,
728
- focusVisibleClassName: r,
729
- classes: a
730
- } = e, s = he({
731
- root: ["root", n && "disabled", o && "focusVisible"]
732
- }, zt, a);
733
- return o && r && (s.root += ` ${r}`), s;
734
- }, Dt = k("button", {
735
- name: "MuiButtonBase",
736
- slot: "Root"
737
- })({
738
- display: "inline-flex",
739
- alignItems: "center",
740
- justifyContent: "center",
741
- position: "relative",
742
- boxSizing: "border-box",
743
- WebkitTapHighlightColor: "transparent",
744
- backgroundColor: "transparent",
745
- // Reset default value
746
- // We disable the focus ring for mouse, touch and keyboard users.
747
- outline: 0,
748
- border: 0,
749
- margin: 0,
750
- // Remove the margin in Safari
751
- borderRadius: 0,
752
- padding: 0,
753
- // Remove the padding in Firefox
754
- cursor: "pointer",
755
- userSelect: "none",
756
- verticalAlign: "middle",
757
- MozAppearance: "none",
758
- // Reset
759
- WebkitAppearance: "none",
760
- // Reset
761
- textDecoration: "none",
762
- // So we take precedent over the style of a native <a /> element.
763
- color: "inherit",
764
- "&::-moz-focus-inner": {
765
- borderStyle: "none"
766
- // Remove Firefox dotted outline.
767
- },
768
- [`&.${$t.disabled}`]: {
769
- pointerEvents: "none",
770
- // Disable link interactions
771
- cursor: "default"
772
- },
773
- "@media print": {
774
- colorAdjust: "exact"
775
- }
776
- }), Oe = /* @__PURE__ */ p.forwardRef(function(n, o) {
777
- const r = Q({
778
- props: n,
779
- name: "MuiButtonBase"
780
- }), {
781
- action: a,
782
- centerRipple: i = !1,
783
- children: s,
784
- className: l,
785
- component: c = "button",
786
- disabled: d = !1,
787
- disableRipple: f = !1,
788
- disableTouchRipple: g = !1,
789
- focusRipple: x = !1,
790
- focusVisibleClassName: w,
791
- LinkComponent: m = "a",
792
- onBlur: P,
793
- onClick: R,
794
- onContextMenu: B,
795
- onDragLeave: M,
796
- onFocus: z,
797
- onFocusVisible: h,
798
- onKeyDown: O,
799
- onKeyUp: T,
800
- onMouseDown: L,
801
- onMouseLeave: V,
802
- onMouseUp: _,
803
- onTouchEnd: E,
804
- onTouchMove: $,
805
- onTouchStart: S,
806
- tabIndex: y = 0,
807
- TouchRippleProps: D,
808
- touchRippleRef: A,
809
- type: W,
810
- ...F
811
- } = r, X = p.useRef(null), v = gt(), Le = Se(v.ref, A), [G, J] = p.useState(!1);
812
- d && G && J(!1), p.useImperativeHandle(a, () => ({
813
- focusVisible: () => {
814
- J(!0), X.current.focus();
815
- }
816
- }), []);
817
- const Ve = v.shouldMount && !f && !d;
818
- p.useEffect(() => {
819
- G && x && !f && v.pulsate();
820
- }, [f, x, G, v]);
821
- const We = U(v, "start", L, g), Fe = U(v, "stop", B, g), Ue = U(v, "stop", M, g), _e = U(v, "stop", _, g), Ae = U(v, "stop", (u) => {
822
- G && u.preventDefault(), V && V(u);
823
- }, g), Ge = U(v, "start", S, g), Ye = U(v, "stop", E, g), Ke = U(v, "stop", $, g), Xe = U(v, "stop", (u) => {
824
- Ce(u.target) || J(!1), P && P(u);
825
- }, !1), qe = oe((u) => {
826
- X.current || (X.current = u.currentTarget), Ce(u.target) && (J(!0), h && h(u)), z && z(u);
827
- }), se = () => {
828
- const u = X.current;
829
- return c && c !== "button" && !(u.tagName === "A" && u.href);
830
- }, He = oe((u) => {
831
- x && !u.repeat && G && u.key === " " && v.stop(u, () => {
832
- v.start(u);
833
- }), u.target === u.currentTarget && se() && u.key === " " && u.preventDefault(), O && O(u), u.target === u.currentTarget && se() && u.key === "Enter" && !d && (u.preventDefault(), R && R(u));
834
- }), Qe = oe((u) => {
835
- x && u.key === " " && G && !u.defaultPrevented && v.stop(u, () => {
836
- v.pulsate(u);
837
- }), T && T(u), R && u.target === u.currentTarget && se() && u.key === " " && !u.defaultPrevented && R(u);
838
- });
839
- let ee = c;
840
- ee === "button" && (F.href || F.to) && (ee = m);
841
- const q = {};
842
- if (ee === "button") {
843
- const u = !!F.formAction;
844
- q.type = W === void 0 && !u ? "button" : W, q.disabled = d;
845
- } else
846
- !F.href && !F.to && (q.role = "button"), d && (q["aria-disabled"] = d);
847
- const Ze = Se(o, X), ye = {
848
- ...r,
849
- centerRipple: i,
850
- component: c,
851
- disabled: d,
852
- disableRipple: f,
853
- disableTouchRipple: g,
854
- focusRipple: x,
855
- tabIndex: y,
856
- focusVisible: G
857
- }, Je = jt(ye);
858
- return /* @__PURE__ */ b.jsxs(Dt, {
859
- as: ee,
860
- className: I(Je.root, l),
861
- ownerState: ye,
862
- onBlur: Xe,
863
- onClick: R,
864
- onContextMenu: Fe,
865
- onFocus: qe,
866
- onKeyDown: He,
867
- onKeyUp: Qe,
868
- onMouseDown: We,
869
- onMouseLeave: Ae,
870
- onMouseUp: _e,
871
- onDragLeave: Ue,
872
- onTouchEnd: Ye,
873
- onTouchMove: Ke,
874
- onTouchStart: Ge,
875
- ref: Ze,
876
- tabIndex: d ? -1 : y,
877
- type: W,
878
- ...q,
879
- ...F,
880
- children: [s, Ve ? /* @__PURE__ */ b.jsx(Be, {
881
- ref: Le,
882
- center: i,
883
- ...D
884
- }) : null]
885
- });
886
- });
887
- function U(e, n, o, r = !1) {
888
- return oe((a) => (o && o(a), r || e[n](a), !0));
889
- }
890
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
891
- // ┌────────────────────────────── Warning ──────────────────────────────┐
892
- // │ These PropTypes are generated from the TypeScript type definitions. │
893
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
894
- // └─────────────────────────────────────────────────────────────────────┘
895
- /**
896
- * A ref for imperative actions.
897
- * It currently only supports `focusVisible()` action.
898
- */
899
- action: pt,
900
- /**
901
- * If `true`, the ripples are centered.
902
- * They won't start at the cursor interaction position.
903
- * @default false
904
- */
905
- centerRipple: t.bool,
906
- /**
907
- * The content of the component.
908
- */
909
- children: t.node,
910
- /**
911
- * Override or extend the styles applied to the component.
912
- */
913
- classes: t.object,
914
- /**
915
- * @ignore
916
- */
917
- className: t.string,
918
- /**
919
- * The component used for the root node.
920
- * Either a string to use a HTML element or a component.
921
- */
922
- component: ht,
923
- /**
924
- * If `true`, the component is disabled.
925
- * @default false
926
- */
927
- disabled: t.bool,
928
- /**
929
- * If `true`, the ripple effect is disabled.
930
- *
931
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
932
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
933
- * @default false
934
- */
935
- disableRipple: t.bool,
936
- /**
937
- * If `true`, the touch ripple effect is disabled.
938
- * @default false
939
- */
940
- disableTouchRipple: t.bool,
941
- /**
942
- * If `true`, the base button will have a keyboard focus ripple.
943
- * @default false
944
- */
945
- focusRipple: t.bool,
946
- /**
947
- * This prop can help identify which element has keyboard focus.
948
- * The class name will be applied when the element gains the focus through keyboard interaction.
949
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
950
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
951
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
952
- * if needed.
953
- */
954
- focusVisibleClassName: t.string,
955
- /**
956
- * @ignore
957
- */
958
- formAction: t.oneOfType([t.func, t.string]),
959
- /**
960
- * @ignore
961
- */
962
- href: t.any,
963
- /**
964
- * The component used to render a link when the `href` prop is provided.
965
- * @default 'a'
966
- */
967
- LinkComponent: t.elementType,
968
- /**
969
- * @ignore
970
- */
971
- onBlur: t.func,
972
- /**
973
- * @ignore
974
- */
975
- onClick: t.func,
976
- /**
977
- * @ignore
978
- */
979
- onContextMenu: t.func,
980
- /**
981
- * @ignore
982
- */
983
- onDragLeave: t.func,
984
- /**
985
- * @ignore
986
- */
987
- onFocus: t.func,
988
- /**
989
- * Callback fired when the component is focused with a keyboard.
990
- * We trigger a `onFocus` callback too.
991
- */
992
- onFocusVisible: t.func,
993
- /**
994
- * @ignore
995
- */
996
- onKeyDown: t.func,
997
- /**
998
- * @ignore
999
- */
1000
- onKeyUp: t.func,
1001
- /**
1002
- * @ignore
1003
- */
1004
- onMouseDown: t.func,
1005
- /**
1006
- * @ignore
1007
- */
1008
- onMouseLeave: t.func,
1009
- /**
1010
- * @ignore
1011
- */
1012
- onMouseUp: t.func,
1013
- /**
1014
- * @ignore
1015
- */
1016
- onTouchEnd: t.func,
1017
- /**
1018
- * @ignore
1019
- */
1020
- onTouchMove: t.func,
1021
- /**
1022
- * @ignore
1023
- */
1024
- onTouchStart: t.func,
1025
- /**
1026
- * The system prop that allows defining system overrides as well as additional CSS styles.
1027
- */
1028
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
1029
- /**
1030
- * @default 0
1031
- */
1032
- tabIndex: t.number,
1033
- /**
1034
- * Props applied to the `TouchRipple` element.
1035
- */
1036
- TouchRippleProps: t.object,
1037
- /**
1038
- * A ref that points to the `TouchRipple` element.
1039
- */
1040
- touchRippleRef: t.oneOfType([t.func, t.shape({
1041
- current: t.shape({
1042
- pulsate: t.func.isRequired,
1043
- start: t.func.isRequired,
1044
- stop: t.func.isRequired
1045
- })
1046
- })]),
1047
- /**
1048
- * @ignore
1049
- */
1050
- type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string])
1051
- });
1052
- function Lt(e) {
1053
- return fe("MuiCircularProgress", e);
1054
- }
1055
- ie("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
1056
- const j = 44, pe = Z`
1057
- 0% {
1058
- transform: rotate(0deg);
1059
- }
1060
-
1061
- 100% {
1062
- transform: rotate(360deg);
1063
- }
1064
- `, de = Z`
1065
- 0% {
1066
- stroke-dasharray: 1px, 200px;
1067
- stroke-dashoffset: 0;
1068
- }
1069
-
1070
- 50% {
1071
- stroke-dasharray: 100px, 200px;
1072
- stroke-dashoffset: -15px;
1073
- }
1074
-
1075
- 100% {
1076
- stroke-dasharray: 1px, 200px;
1077
- stroke-dashoffset: -126px;
1078
- }
1079
- `, Vt = typeof pe != "string" ? Te`
1080
- animation: ${pe} 1.4s linear infinite;
1081
- ` : null, Wt = typeof de != "string" ? Te`
1082
- animation: ${de} 1.4s ease-in-out infinite;
1083
- ` : null, Ft = (e) => {
1084
- const {
1085
- classes: n,
1086
- variant: o,
1087
- color: r,
1088
- disableShrink: a
1089
- } = e, i = {
1090
- root: ["root", o, `color${C(r)}`],
1091
- svg: ["svg"],
1092
- track: ["track"],
1093
- circle: ["circle", `circle${C(o)}`, a && "circleDisableShrink"]
1094
- };
1095
- return he(i, Lt, n);
1096
- }, Ut = k("span", {
1097
- name: "MuiCircularProgress",
1098
- slot: "Root",
1099
- overridesResolver: (e, n) => {
1100
- const {
1101
- ownerState: o
1102
- } = e;
1103
- return [n.root, n[o.variant], n[`color${C(o.color)}`]];
1104
- }
1105
- })(ae(({
1106
- theme: e
1107
- }) => ({
1108
- display: "inline-block",
1109
- variants: [{
1110
- props: {
1111
- variant: "determinate"
1112
- },
1113
- style: {
1114
- transition: e.transitions.create("transform")
1115
- }
1116
- }, {
1117
- props: {
1118
- variant: "indeterminate"
1119
- },
1120
- style: Vt || {
1121
- animation: `${pe} 1.4s linear infinite`
1122
- }
1123
- }, ...Object.entries(e.palette).filter(Ee()).map(([n]) => ({
1124
- props: {
1125
- color: n
1126
- },
1127
- style: {
1128
- color: (e.vars || e).palette[n].main
1129
- }
1130
- }))]
1131
- }))), _t = k("svg", {
1132
- name: "MuiCircularProgress",
1133
- slot: "Svg"
1134
- })({
1135
- display: "block"
1136
- // Keeps the progress centered
1137
- }), At = k("circle", {
1138
- name: "MuiCircularProgress",
1139
- slot: "Circle",
1140
- overridesResolver: (e, n) => {
1141
- const {
1142
- ownerState: o
1143
- } = e;
1144
- return [n.circle, n[`circle${C(o.variant)}`], o.disableShrink && n.circleDisableShrink];
1145
- }
1146
- })(ae(({
1147
- theme: e
1148
- }) => ({
1149
- stroke: "currentColor",
1150
- variants: [{
1151
- props: {
1152
- variant: "determinate"
1153
- },
1154
- style: {
1155
- transition: e.transitions.create("stroke-dashoffset")
1156
- }
1157
- }, {
1158
- props: {
1159
- variant: "indeterminate"
1160
- },
1161
- style: {
1162
- // Some default value that looks fine waiting for the animation to kicks in.
1163
- strokeDasharray: "80px, 200px",
1164
- strokeDashoffset: 0
1165
- // Add the unit to fix a Edge 16 and below bug.
1166
- }
1167
- }, {
1168
- props: ({
1169
- ownerState: n
1170
- }) => n.variant === "indeterminate" && !n.disableShrink,
1171
- style: Wt || {
1172
- // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
1173
- animation: `${de} 1.4s ease-in-out infinite`
1174
- }
1175
- }]
1176
- }))), Gt = k("circle", {
1177
- name: "MuiCircularProgress",
1178
- slot: "Track"
1179
- })(ae(({
1180
- theme: e
1181
- }) => ({
1182
- stroke: "currentColor",
1183
- opacity: (e.vars || e).palette.action.activatedOpacity
1184
- }))), Ne = /* @__PURE__ */ p.forwardRef(function(n, o) {
1185
- const r = Q({
1186
- props: n,
1187
- name: "MuiCircularProgress"
1188
- }), {
1189
- className: a,
1190
- color: i = "primary",
1191
- disableShrink: s = !1,
1192
- enableTrackSlot: l = !1,
1193
- size: c = 40,
1194
- style: d,
1195
- thickness: f = 3.6,
1196
- value: g = 0,
1197
- variant: x = "indeterminate",
1198
- ...w
1199
- } = r, m = {
1200
- ...r,
1201
- color: i,
1202
- disableShrink: s,
1203
- size: c,
1204
- thickness: f,
1205
- value: g,
1206
- variant: x,
1207
- enableTrackSlot: l
1208
- }, P = Ft(m), R = {}, B = {}, M = {};
1209
- if (x === "determinate") {
1210
- const z = 2 * Math.PI * ((j - f) / 2);
1211
- R.strokeDasharray = z.toFixed(3), M["aria-valuenow"] = Math.round(g), R.strokeDashoffset = `${((100 - g) / 100 * z).toFixed(3)}px`, B.transform = "rotate(-90deg)";
1212
- }
1213
- return /* @__PURE__ */ b.jsx(Ut, {
1214
- className: I(P.root, a),
1215
- style: {
1216
- width: c,
1217
- height: c,
1218
- ...B,
1219
- ...d
1220
- },
1221
- ownerState: m,
1222
- ref: o,
1223
- role: "progressbar",
1224
- ...M,
1225
- ...w,
1226
- children: /* @__PURE__ */ b.jsxs(_t, {
1227
- className: P.svg,
1228
- ownerState: m,
1229
- viewBox: `${j / 2} ${j / 2} ${j} ${j}`,
1230
- children: [l ? /* @__PURE__ */ b.jsx(Gt, {
1231
- className: P.track,
1232
- ownerState: m,
1233
- cx: j,
1234
- cy: j,
1235
- r: (j - f) / 2,
1236
- fill: "none",
1237
- strokeWidth: f,
1238
- "aria-hidden": "true"
1239
- }) : null, /* @__PURE__ */ b.jsx(At, {
1240
- className: P.circle,
1241
- style: R,
1242
- ownerState: m,
1243
- cx: j,
1244
- cy: j,
1245
- r: (j - f) / 2,
1246
- fill: "none",
1247
- strokeWidth: f
1248
- })]
1249
- })
1250
- });
1251
- });
1252
- process.env.NODE_ENV !== "production" && (Ne.propTypes = {
1253
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1254
- // │ These PropTypes are generated from the TypeScript type definitions. │
1255
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1256
- // └─────────────────────────────────────────────────────────────────────┘
1257
- /**
1258
- * Override or extend the styles applied to the component.
1259
- */
1260
- classes: t.object,
1261
- /**
1262
- * @ignore
1263
- */
1264
- className: t.string,
1265
- /**
1266
- * The color of the component.
1267
- * It supports both default and custom theme colors, which can be added as shown in the
1268
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1269
- * @default 'primary'
1270
- */
1271
- color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
1272
- /**
1273
- * If `true`, the shrink animation is disabled.
1274
- * This only works if variant is `indeterminate`.
1275
- * @default false
1276
- */
1277
- disableShrink: we(t.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
1278
- /**
1279
- * If `true`, a track circle slot is mounted to show a subtle background for the progress.
1280
- * The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
1281
- * @default false
1282
- */
1283
- enableTrackSlot: t.bool,
1284
- /**
1285
- * The size of the component.
1286
- * If using a number, the pixel unit is assumed.
1287
- * If using a string, you need to provide the CSS unit, for example '3rem'.
1288
- * @default 40
1289
- */
1290
- size: t.oneOfType([t.number, t.string]),
1291
- /**
1292
- * @ignore
1293
- */
1294
- style: t.object,
1295
- /**
1296
- * The system prop that allows defining system overrides as well as additional CSS styles.
1297
- */
1298
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
1299
- /**
1300
- * The thickness of the circle.
1301
- * @default 3.6
1302
- */
1303
- thickness: t.number,
1304
- /**
1305
- * The value of the progress indicator for the determinate variant.
1306
- * Value between 0 and 100.
1307
- * @default 0
1308
- */
1309
- value: t.number,
1310
- /**
1311
- * The variant to use.
1312
- * Use indeterminate when there is no progress value.
1313
- * @default 'indeterminate'
1314
- */
1315
- variant: t.oneOf(["determinate", "indeterminate"])
1316
- });
1317
- function Yt(e) {
1318
- return fe("MuiButton", e);
1319
- }
1320
- const Y = ie("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", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), ze = /* @__PURE__ */ p.createContext({});
1321
- process.env.NODE_ENV !== "production" && (ze.displayName = "ButtonGroupContext");
1322
- const $e = /* @__PURE__ */ p.createContext(void 0);
1323
- process.env.NODE_ENV !== "production" && ($e.displayName = "ButtonGroupButtonContext");
1324
- const Kt = (e) => {
1325
- const {
1326
- color: n,
1327
- disableElevation: o,
1328
- fullWidth: r,
1329
- size: a,
1330
- variant: i,
1331
- loading: s,
1332
- loadingPosition: l,
1333
- classes: c
1334
- } = e, d = {
1335
- root: ["root", s && "loading", i, `${i}${C(n)}`, `size${C(a)}`, `${i}Size${C(a)}`, `color${C(n)}`, o && "disableElevation", r && "fullWidth", s && `loadingPosition${C(l)}`],
1336
- startIcon: ["icon", "startIcon", `iconSize${C(a)}`],
1337
- endIcon: ["icon", "endIcon", `iconSize${C(a)}`],
1338
- loadingIndicator: ["loadingIndicator"],
1339
- loadingWrapper: ["loadingWrapper"]
1340
- }, f = he(d, Yt, c);
1341
- return {
1342
- ...c,
1343
- // forward the focused, disabled, etc. classes to the ButtonBase
1344
- ...f
1345
- };
1346
- }, je = [{
1347
- props: {
1348
- size: "small"
1349
- },
1350
- style: {
1351
- "& > *:nth-of-type(1)": {
1352
- fontSize: 18
1353
- }
1354
- }
1355
- }, {
1356
- props: {
1357
- size: "medium"
1358
- },
1359
- style: {
1360
- "& > *:nth-of-type(1)": {
1361
- fontSize: 20
1362
- }
1363
- }
1364
- }, {
1365
- props: {
1366
- size: "large"
1367
- },
1368
- style: {
1369
- "& > *:nth-of-type(1)": {
1370
- fontSize: 22
1371
- }
1372
- }
1373
- }], Xt = k(Oe, {
1374
- shouldForwardProp: (e) => tt(e) || e === "classes",
1375
- name: "MuiButton",
1376
- slot: "Root",
1377
- overridesResolver: (e, n) => {
1378
- const {
1379
- ownerState: o
1380
- } = e;
1381
- return [n.root, n[o.variant], n[`${o.variant}${C(o.color)}`], n[`size${C(o.size)}`], n[`${o.variant}Size${C(o.size)}`], o.color === "inherit" && n.colorInherit, o.disableElevation && n.disableElevation, o.fullWidth && n.fullWidth, o.loading && n.loading];
1382
- }
1383
- })(ae(({
1384
- theme: e
1385
- }) => {
1386
- const n = e.palette.mode === "light" ? e.palette.grey[300] : e.palette.grey[800], o = e.palette.mode === "light" ? e.palette.grey.A100 : e.palette.grey[700];
1387
- return {
1388
- ...e.typography.button,
1389
- minWidth: 64,
1390
- padding: "6px 16px",
1391
- border: 0,
1392
- borderRadius: (e.vars || e).shape.borderRadius,
1393
- transition: e.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
1394
- duration: e.transitions.duration.short
1395
- }),
1396
- "&:hover": {
1397
- textDecoration: "none"
1398
- },
1399
- [`&.${Y.disabled}`]: {
1400
- color: (e.vars || e).palette.action.disabled
1401
- },
1402
- variants: [{
1403
- props: {
1404
- variant: "contained"
1405
- },
1406
- style: {
1407
- color: "var(--variant-containedColor)",
1408
- backgroundColor: "var(--variant-containedBg)",
1409
- boxShadow: (e.vars || e).shadows[2],
1410
- "&:hover": {
1411
- boxShadow: (e.vars || e).shadows[4],
1412
- // Reset on touch devices, it doesn't add specificity
1413
- "@media (hover: none)": {
1414
- boxShadow: (e.vars || e).shadows[2]
1415
- }
1416
- },
1417
- "&:active": {
1418
- boxShadow: (e.vars || e).shadows[8]
1419
- },
1420
- [`&.${Y.focusVisible}`]: {
1421
- boxShadow: (e.vars || e).shadows[6]
1422
- },
1423
- [`&.${Y.disabled}`]: {
1424
- color: (e.vars || e).palette.action.disabled,
1425
- boxShadow: (e.vars || e).shadows[0],
1426
- backgroundColor: (e.vars || e).palette.action.disabledBackground
1427
- }
1428
- }
1429
- }, {
1430
- props: {
1431
- variant: "outlined"
1432
- },
1433
- style: {
1434
- padding: "5px 15px",
1435
- border: "1px solid currentColor",
1436
- borderColor: "var(--variant-outlinedBorder, currentColor)",
1437
- backgroundColor: "var(--variant-outlinedBg)",
1438
- color: "var(--variant-outlinedColor)",
1439
- [`&.${Y.disabled}`]: {
1440
- border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
1441
- }
1442
- }
1443
- }, {
1444
- props: {
1445
- variant: "text"
1446
- },
1447
- style: {
1448
- padding: "6px 8px",
1449
- color: "var(--variant-textColor)",
1450
- backgroundColor: "var(--variant-textBg)"
1451
- }
1452
- }, ...Object.entries(e.palette).filter(Ee()).map(([r]) => ({
1453
- props: {
1454
- color: r
1455
- },
1456
- style: {
1457
- "--variant-textColor": (e.vars || e).palette[r].main,
1458
- "--variant-outlinedColor": (e.vars || e).palette[r].main,
1459
- "--variant-outlinedBorder": e.alpha((e.vars || e).palette[r].main, 0.5),
1460
- "--variant-containedColor": (e.vars || e).palette[r].contrastText,
1461
- "--variant-containedBg": (e.vars || e).palette[r].main,
1462
- "@media (hover: hover)": {
1463
- "&:hover": {
1464
- "--variant-containedBg": (e.vars || e).palette[r].dark,
1465
- "--variant-textBg": e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.hoverOpacity),
1466
- "--variant-outlinedBorder": (e.vars || e).palette[r].main,
1467
- "--variant-outlinedBg": e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.hoverOpacity)
1468
- }
1469
- }
1470
- }
1471
- })), {
1472
- props: {
1473
- color: "inherit"
1474
- },
1475
- style: {
1476
- color: "inherit",
1477
- borderColor: "currentColor",
1478
- "--variant-containedBg": e.vars ? e.vars.palette.Button.inheritContainedBg : n,
1479
- "@media (hover: hover)": {
1480
- "&:hover": {
1481
- "--variant-containedBg": e.vars ? e.vars.palette.Button.inheritContainedHoverBg : o,
1482
- "--variant-textBg": e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.hoverOpacity),
1483
- "--variant-outlinedBg": e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.hoverOpacity)
1484
- }
1485
- }
1486
- }
1487
- }, {
1488
- props: {
1489
- size: "small",
1490
- variant: "text"
1491
- },
1492
- style: {
1493
- padding: "4px 5px",
1494
- fontSize: e.typography.pxToRem(13)
1495
- }
1496
- }, {
1497
- props: {
1498
- size: "large",
1499
- variant: "text"
1500
- },
1501
- style: {
1502
- padding: "8px 11px",
1503
- fontSize: e.typography.pxToRem(15)
1504
- }
1505
- }, {
1506
- props: {
1507
- size: "small",
1508
- variant: "outlined"
1509
- },
1510
- style: {
1511
- padding: "3px 9px",
1512
- fontSize: e.typography.pxToRem(13)
1513
- }
1514
- }, {
1515
- props: {
1516
- size: "large",
1517
- variant: "outlined"
1518
- },
1519
- style: {
1520
- padding: "7px 21px",
1521
- fontSize: e.typography.pxToRem(15)
1522
- }
1523
- }, {
1524
- props: {
1525
- size: "small",
1526
- variant: "contained"
1527
- },
1528
- style: {
1529
- padding: "4px 10px",
1530
- fontSize: e.typography.pxToRem(13)
1531
- }
1532
- }, {
1533
- props: {
1534
- size: "large",
1535
- variant: "contained"
1536
- },
1537
- style: {
1538
- padding: "8px 22px",
1539
- fontSize: e.typography.pxToRem(15)
1540
- }
1541
- }, {
1542
- props: {
1543
- disableElevation: !0
1544
- },
1545
- style: {
1546
- boxShadow: "none",
1547
- "&:hover": {
1548
- boxShadow: "none"
1549
- },
1550
- [`&.${Y.focusVisible}`]: {
1551
- boxShadow: "none"
1552
- },
1553
- "&:active": {
1554
- boxShadow: "none"
1555
- },
1556
- [`&.${Y.disabled}`]: {
1557
- boxShadow: "none"
1558
- }
1559
- }
1560
- }, {
1561
- props: {
1562
- fullWidth: !0
1563
- },
1564
- style: {
1565
- width: "100%"
1566
- }
1567
- }, {
1568
- props: {
1569
- loadingPosition: "center"
1570
- },
1571
- style: {
1572
- transition: e.transitions.create(["background-color", "box-shadow", "border-color"], {
1573
- duration: e.transitions.duration.short
1574
- }),
1575
- [`&.${Y.loading}`]: {
1576
- color: "transparent"
1577
- }
1578
- }
1579
- }]
1580
- };
1581
- })), qt = k("span", {
1582
- name: "MuiButton",
1583
- slot: "StartIcon",
1584
- overridesResolver: (e, n) => {
1585
- const {
1586
- ownerState: o
1587
- } = e;
1588
- return [n.startIcon, o.loading && n.startIconLoadingStart, n[`iconSize${C(o.size)}`]];
1589
- }
1590
- })(({
1591
- theme: e
1592
- }) => ({
1593
- display: "inherit",
1594
- marginRight: 8,
1595
- marginLeft: -4,
1596
- variants: [{
1597
- props: {
1598
- size: "small"
1599
- },
1600
- style: {
1601
- marginLeft: -2
1602
- }
1603
- }, {
1604
- props: {
1605
- loadingPosition: "start",
1606
- loading: !0
1607
- },
1608
- style: {
1609
- transition: e.transitions.create(["opacity"], {
1610
- duration: e.transitions.duration.short
1611
- }),
1612
- opacity: 0
1613
- }
1614
- }, {
1615
- props: {
1616
- loadingPosition: "start",
1617
- loading: !0,
1618
- fullWidth: !0
1619
- },
1620
- style: {
1621
- marginRight: -8
1622
- }
1623
- }, ...je]
1624
- })), Ht = k("span", {
1625
- name: "MuiButton",
1626
- slot: "EndIcon",
1627
- overridesResolver: (e, n) => {
1628
- const {
1629
- ownerState: o
1630
- } = e;
1631
- return [n.endIcon, o.loading && n.endIconLoadingEnd, n[`iconSize${C(o.size)}`]];
1632
- }
1633
- })(({
1634
- theme: e
1635
- }) => ({
1636
- display: "inherit",
1637
- marginRight: -4,
1638
- marginLeft: 8,
1639
- variants: [{
1640
- props: {
1641
- size: "small"
1642
- },
1643
- style: {
1644
- marginRight: -2
1645
- }
1646
- }, {
1647
- props: {
1648
- loadingPosition: "end",
1649
- loading: !0
1650
- },
1651
- style: {
1652
- transition: e.transitions.create(["opacity"], {
1653
- duration: e.transitions.duration.short
1654
- }),
1655
- opacity: 0
1656
- }
1657
- }, {
1658
- props: {
1659
- loadingPosition: "end",
1660
- loading: !0,
1661
- fullWidth: !0
1662
- },
1663
- style: {
1664
- marginLeft: -8
1665
- }
1666
- }, ...je]
1667
- })), Qt = k("span", {
1668
- name: "MuiButton",
1669
- slot: "LoadingIndicator"
1670
- })(({
1671
- theme: e
1672
- }) => ({
1673
- display: "none",
1674
- position: "absolute",
1675
- visibility: "visible",
1676
- variants: [{
1677
- props: {
1678
- loading: !0
1679
- },
1680
- style: {
1681
- display: "flex"
1682
- }
1683
- }, {
1684
- props: {
1685
- loadingPosition: "start"
1686
- },
1687
- style: {
1688
- left: 14
1689
- }
1690
- }, {
1691
- props: {
1692
- loadingPosition: "start",
1693
- size: "small"
1694
- },
1695
- style: {
1696
- left: 10
1697
- }
1698
- }, {
1699
- props: {
1700
- variant: "text",
1701
- loadingPosition: "start"
1702
- },
1703
- style: {
1704
- left: 6
1705
- }
1706
- }, {
1707
- props: {
1708
- loadingPosition: "center"
1709
- },
1710
- style: {
1711
- left: "50%",
1712
- transform: "translate(-50%)",
1713
- color: (e.vars || e).palette.action.disabled
1714
- }
1715
- }, {
1716
- props: {
1717
- loadingPosition: "end"
1718
- },
1719
- style: {
1720
- right: 14
1721
- }
1722
- }, {
1723
- props: {
1724
- loadingPosition: "end",
1725
- size: "small"
1726
- },
1727
- style: {
1728
- right: 10
1729
- }
1730
- }, {
1731
- props: {
1732
- variant: "text",
1733
- loadingPosition: "end"
1734
- },
1735
- style: {
1736
- right: 6
1737
- }
1738
- }, {
1739
- props: {
1740
- loadingPosition: "start",
1741
- fullWidth: !0
1742
- },
1743
- style: {
1744
- position: "relative",
1745
- left: -10
1746
- }
1747
- }, {
1748
- props: {
1749
- loadingPosition: "end",
1750
- fullWidth: !0
1751
- },
1752
- style: {
1753
- position: "relative",
1754
- right: -10
1755
- }
1756
- }]
1757
- })), Pe = k("span", {
1758
- name: "MuiButton",
1759
- slot: "LoadingIconPlaceholder"
1760
- })({
1761
- display: "inline-block",
1762
- width: "1em",
1763
- height: "1em"
1764
- }), De = /* @__PURE__ */ p.forwardRef(function(n, o) {
1765
- const r = p.useContext(ze), a = p.useContext($e), i = et(r, n), s = Q({
1766
- props: i,
1767
- name: "MuiButton"
1768
- }), {
1769
- children: l,
1770
- color: c = "primary",
1771
- component: d = "button",
1772
- className: f,
1773
- disabled: g = !1,
1774
- disableElevation: x = !1,
1775
- disableFocusRipple: w = !1,
1776
- endIcon: m,
1777
- focusVisibleClassName: P,
1778
- fullWidth: R = !1,
1779
- id: B,
1780
- loading: M = null,
1781
- loadingIndicator: z,
1782
- loadingPosition: h = "center",
1783
- size: O = "medium",
1784
- startIcon: T,
1785
- type: L,
1786
- variant: V = "text",
1787
- ..._
1788
- } = s, E = ct(B), $ = z ?? /* @__PURE__ */ b.jsx(Ne, {
1789
- "aria-labelledby": E,
1790
- color: "inherit",
1791
- size: 16
1792
- }), S = {
1793
- ...s,
1794
- color: c,
1795
- component: d,
1796
- disabled: g,
1797
- disableElevation: x,
1798
- disableFocusRipple: w,
1799
- fullWidth: R,
1800
- loading: M,
1801
- loadingIndicator: $,
1802
- loadingPosition: h,
1803
- size: O,
1804
- type: L,
1805
- variant: V
1806
- }, y = Kt(S), D = (T || M && h === "start") && /* @__PURE__ */ b.jsx(qt, {
1807
- className: y.startIcon,
1808
- ownerState: S,
1809
- children: T || /* @__PURE__ */ b.jsx(Pe, {
1810
- className: y.loadingIconPlaceholder,
1811
- ownerState: S
1812
- })
1813
- }), A = (m || M && h === "end") && /* @__PURE__ */ b.jsx(Ht, {
1814
- className: y.endIcon,
1815
- ownerState: S,
1816
- children: m || /* @__PURE__ */ b.jsx(Pe, {
1817
- className: y.loadingIconPlaceholder,
1818
- ownerState: S
1819
- })
1820
- }), W = a || "", F = typeof M == "boolean" ? (
1821
- // use plain HTML span to minimize the runtime overhead
1822
- /* @__PURE__ */ b.jsx("span", {
1823
- className: y.loadingWrapper,
1824
- style: {
1825
- display: "contents"
1826
- },
1827
- children: M && /* @__PURE__ */ b.jsx(Qt, {
1828
- className: y.loadingIndicator,
1829
- ownerState: S,
1830
- children: $
1831
- })
1832
- })
1833
- ) : null;
1834
- return /* @__PURE__ */ b.jsxs(Xt, {
1835
- ownerState: S,
1836
- className: I(r.className, y.root, f, W),
1837
- component: d,
1838
- disabled: g || M,
1839
- focusRipple: !w,
1840
- focusVisibleClassName: I(y.focusVisible, P),
1841
- ref: o,
1842
- type: L,
1843
- id: M ? E : B,
1844
- ..._,
1845
- classes: y,
1846
- children: [D, h !== "end" && F, l, h === "end" && F, A]
1847
- });
1848
- });
1849
- process.env.NODE_ENV !== "production" && (De.propTypes = {
1850
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1851
- // │ These PropTypes are generated from the TypeScript type definitions. │
1852
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1853
- // └─────────────────────────────────────────────────────────────────────┘
1854
- /**
1855
- * The content of the component.
1856
- */
1857
- children: t.node,
1858
- /**
1859
- * Override or extend the styles applied to the component.
1860
- */
1861
- classes: t.object,
1862
- /**
1863
- * @ignore
1864
- */
1865
- className: t.string,
1866
- /**
1867
- * The color of the component.
1868
- * It supports both default and custom theme colors, which can be added as shown in the
1869
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1870
- * @default 'primary'
1871
- */
1872
- color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
1873
- /**
1874
- * The component used for the root node.
1875
- * Either a string to use a HTML element or a component.
1876
- */
1877
- component: t.elementType,
1878
- /**
1879
- * If `true`, the component is disabled.
1880
- * @default false
1881
- */
1882
- disabled: t.bool,
1883
- /**
1884
- * If `true`, no elevation is used.
1885
- * @default false
1886
- */
1887
- disableElevation: t.bool,
1888
- /**
1889
- * If `true`, the keyboard focus ripple is disabled.
1890
- * @default false
1891
- */
1892
- disableFocusRipple: t.bool,
1893
- /**
1894
- * If `true`, the ripple effect is disabled.
1895
- *
1896
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
1897
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
1898
- * @default false
1899
- */
1900
- disableRipple: t.bool,
1901
- /**
1902
- * Element placed after the children.
1903
- */
1904
- endIcon: t.node,
1905
- /**
1906
- * @ignore
1907
- */
1908
- focusVisibleClassName: t.string,
1909
- /**
1910
- * If `true`, the button will take up the full width of its container.
1911
- * @default false
1912
- */
1913
- fullWidth: t.bool,
1914
- /**
1915
- * The URL to link to when the button is clicked.
1916
- * If defined, an `a` element will be used as the root node.
1917
- */
1918
- href: t.string,
1919
- /**
1920
- * @ignore
1921
- */
1922
- id: t.string,
1923
- /**
1924
- * If `true`, the loading indicator is visible and the button is disabled.
1925
- * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
1926
- * @default null
1927
- */
1928
- loading: t.bool,
1929
- /**
1930
- * Element placed before the children if the button is in loading state.
1931
- * The node should contain an element with `role="progressbar"` with an accessible name.
1932
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
1933
- * @default <CircularProgress color="inherit" size={16} />
1934
- */
1935
- loadingIndicator: t.node,
1936
- /**
1937
- * The loading indicator can be positioned on the start, end, or the center of the button.
1938
- * @default 'center'
1939
- */
1940
- loadingPosition: t.oneOf(["center", "end", "start"]),
1941
- /**
1942
- * The size of the component.
1943
- * `small` is equivalent to the dense button styling.
1944
- * @default 'medium'
1945
- */
1946
- size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
1947
- /**
1948
- * Element placed before the children.
1949
- */
1950
- startIcon: t.node,
1951
- /**
1952
- * The system prop that allows defining system overrides as well as additional CSS styles.
1953
- */
1954
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
1955
- /**
1956
- * @ignore
1957
- */
1958
- type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
1959
- /**
1960
- * The variant to use.
1961
- * @default 'text'
1962
- */
1963
- variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
1964
- });
1965
- function Zt(e, { insertAt: n } = {}) {
1966
- if (typeof document > "u") return;
1967
- const o = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
1968
- r.type = "text/css", n === "top" && o.firstChild ? o.insertBefore(r, o.firstChild) : o.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
1969
- }
1970
- Zt(`.btn-p {
1971
- white-space: nowrap;
1972
- width: 100%;
1973
- font-weight: 600 !important;
1974
- background: var(--primary-color) !important;
1975
- color: var(--neutral-color);
1976
- }
1977
- .btn-p:hover {
1978
- background: var(--primary-color-hover) !important;
1979
- }
1980
- .btn-p:disabled {
1981
- background: var(--disabled-color) !important;
1982
- }
1983
- .btn-p.MuiButton-outlined {
1984
- color: var(--primary-color);
1985
- border-color: var(--primary-color) !important;
1986
- background: var(--background-color) !important;
1987
- }
1988
- .btn-p.MuiButton-outlined:hover {
1989
- color: var(--primary-color-hover);
1990
- border-color: var(--primary-color-hover) !important;
1991
- }
1992
- .btn-p.MuiButton-text {
1993
- color: var(--primary-color);
1994
- border-color: var(--background-color) !important;
1995
- background: var(--background-color) !important;
1996
- }
1997
- .btn-p.MuiButton-text:hover {
1998
- color: var(--primary-color-hover) !important;
1999
- }
2000
- `);
2001
- var Jt = ({
2002
- id: e,
2003
- name: n,
2004
- text: o,
2005
- className: r = "",
2006
- variant: a = "contained",
2007
- disabled: i = !1,
2008
- type: s = "button",
2009
- onClick: l,
2010
- ...c
2011
- }) => {
2012
- const d = rt(() => `btn-p noselect ${r || ""}`, [r]), f = it(
2013
- (g) => {
2014
- l && l(n);
2015
- },
2016
- [n, l]
2017
- );
2018
- return /* @__PURE__ */ b.jsx(
2019
- De,
2020
- {
2021
- id: e,
2022
- name: n,
2023
- variant: a,
2024
- type: s,
2025
- fullWidth: !0,
2026
- disableElevation: !0,
2027
- disabled: i,
2028
- className: d,
2029
- onClick: f,
2030
- ...c,
2031
- sx: { boxShadow: 0 },
2032
- children: o
2033
- }
2034
- );
2035
- }, sn = Jt;
2036
- export {
2037
- Oe as B,
2038
- Ne as C,
2039
- an as I,
2040
- ut as S,
2041
- Me as T,
2042
- yt as _,
2043
- bt as a,
2044
- sn as b,
2045
- Se as c,
2046
- wt as d,
2047
- ht as e,
2048
- ct as f,
2049
- oe as g,
2050
- pt as r,
2051
- at as u
2052
- };