@genai-fi/base 4.3.6 → 4.3.8

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 (49) hide show
  1. package/dist/{Button-BgSe1MyE.js → Button-HlUfDiMM.js} +3 -3
  2. package/dist/{CircularProgress-DgKnRiq7.js → CircularProgress-DZ8YZ0Dt.js} +345 -310
  3. package/dist/{Close-Cv_QwhIN.js → Close-TS8H1lQg.js} +1 -1
  4. package/dist/{DefaultPropsProvider-BurgXZzw.js → DefaultPropsProvider-B_x1hwuY.js} +2 -2
  5. package/dist/{DialogQR-DoM8ZHBM.js → DialogQR-ByOert0g.js} +4 -4
  6. package/dist/{FileSaver.min-DhePf63e.js → FileSaver.min-CDwyANUI.js} +57 -57
  7. package/dist/{FlashWifi-slUpI7sB.js → FlashWifi-CNanHNye.js} +1 -1
  8. package/dist/{Portal-MiwrHMB_.js → Portal-BdRLJx1y.js} +140 -133
  9. package/dist/assets/SidePanel.css +1 -1
  10. package/dist/assets/SvgLayer.css +1 -1
  11. package/dist/assets/Widget.css +1 -1
  12. package/dist/{browser-HW-wgeM2.js → browser-DWbgwj89.js} +421 -451
  13. package/dist/components/AlertPara/AlertPara.js +1 -1
  14. package/dist/components/Application/Application.js +724 -689
  15. package/dist/components/BusyButton/BusyButton.d.ts +4 -4
  16. package/dist/components/BusyButton/BusyButton.js +1 -1
  17. package/dist/components/Button/Button.js +2 -2
  18. package/dist/components/ConnectionStatus/ConnectionStatus.js +3 -3
  19. package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
  20. package/dist/components/Feedback/Feedback.js +4 -4
  21. package/dist/components/Feedback/Rating.js +1 -1
  22. package/dist/components/Help/Help.d.ts +2 -2
  23. package/dist/components/Help/Help.js +5 -5
  24. package/dist/components/LangSelect/LangSelect.js +1 -1
  25. package/dist/components/Motd/Motd.js +1 -1
  26. package/dist/components/PieScore/PieScore.js +9609 -6092
  27. package/dist/components/QRCode/DialogQR.js +4 -4
  28. package/dist/components/QRCode/QRCode.js +2 -2
  29. package/dist/components/SidePanel/SidePanel.d.ts +2 -1
  30. package/dist/components/SidePanel/SidePanel.js +107 -89
  31. package/dist/components/Webcam/Webcam.js +3 -3
  32. package/dist/components/WorkflowLayout/Widget.js +1460 -1438
  33. package/dist/{createSvgIcon-BM4dw4Lw.js → createSvgIcon-DjQWJ3wn.js} +2 -2
  34. package/dist/{createTheme-DV959X3d.js → createTheme-DnBeI7Zz.js} +752 -749
  35. package/dist/hooks/peer.js +1 -1
  36. package/dist/{index-SOhdqzHq.js → index-B_zFkp-8.js} +2 -2
  37. package/dist/react-CiLnfHJp.js +140 -0
  38. package/dist/services/peer2peer/Incoming.js +1 -1
  39. package/dist/services/peer2peer/Outgoing.js +1 -1
  40. package/dist/services/peer2peer/Peer2Peer.js +538 -541
  41. package/dist/services/peer2peer/PeerConnection.js +1 -1
  42. package/dist/state/webrtcState.js +1 -1
  43. package/dist/style/theme.js +1 -1
  44. package/dist/util/Observer.js +1 -1
  45. package/dist/util/zip.js +1 -1
  46. package/dist/vanilla-OLGM3aAq.js +439 -0
  47. package/package.json +3 -3
  48. package/dist/react-B9NW8BS7.js +0 -112
  49. package/dist/vanilla-BJxibF1U.js +0 -404
@@ -1,41 +1,41 @@
1
- var Xe = Object.defineProperty;
2
- var qe = (e, t, n) => t in e ? Xe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var W = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
4
- import * as c from "react";
5
- import H, { isValidElement as Q, cloneElement as ee, Children as We } from "react";
6
- import { P as r, g as Te, a as ne } from "./createTheme-DV959X3d.js";
7
- import { c as E, g as ce, u as pe, s as z, a as Ce, m as Ee } from "./DefaultPropsProvider-BurgXZzw.js";
8
- import { jsx as D, jsxs as He } from "react/jsx-runtime";
9
- import { keyframes as G, css as xe } from "@emotion/react";
10
- const Ge = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
11
- let be = 0;
1
+ var We = Object.defineProperty;
2
+ var qe = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var q = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as u from "react";
5
+ import H, { isValidElement as Q, cloneElement as ee, Children as He } from "react";
6
+ import { P as r, g as Ce, a as ne } from "./createTheme-DnBeI7Zz.js";
7
+ import { c as E, g as ue, u as pe, s as _, a as Ee, m as fe } from "./DefaultPropsProvider-B_x1hwuY.js";
8
+ import { jsx as N, jsxs as ke } from "react/jsx-runtime";
9
+ import { keyframes as G, css as Pe } from "@emotion/react";
10
+ const Ge = typeof window < "u" ? u.useLayoutEffect : u.useEffect;
11
+ let ge = 0;
12
12
  function Ze(e) {
13
- const [t, n] = c.useState(e), o = e || t;
14
- return c.useEffect(() => {
15
- t == null && (be += 1, n(`mui-${be}`));
13
+ const [t, n] = u.useState(e), o = e || t;
14
+ return u.useEffect(() => {
15
+ t == null && (ge += 1, n(`mui-${ge}`));
16
16
  }, [t]), o;
17
17
  }
18
18
  const Je = {
19
- ...c
20
- }, ge = Je.useId;
21
- function Yt(e) {
22
- if (ge !== void 0) {
23
- const t = ge();
19
+ ...u
20
+ }, ye = Je.useId;
21
+ function Kt(e) {
22
+ if (ye !== void 0) {
23
+ const t = ye();
24
24
  return e ?? t;
25
25
  }
26
26
  return Ze(e);
27
27
  }
28
28
  function te(e) {
29
- const t = c.useRef(e);
29
+ const t = u.useRef(e);
30
30
  return Ge(() => {
31
31
  t.current = e;
32
- }), c.useRef((...n) => (
32
+ }), u.useRef((...n) => (
33
33
  // @ts-expect-error hide `this`
34
34
  (0, t.current)(...n)
35
35
  )).current;
36
36
  }
37
- function ye(...e) {
38
- const t = c.useRef(void 0), n = c.useCallback((o) => {
37
+ function Me(...e) {
38
+ const t = u.useRef(void 0), n = u.useCallback((o) => {
39
39
  const s = e.map((i) => {
40
40
  if (i == null)
41
41
  return null;
@@ -53,12 +53,12 @@ function ye(...e) {
53
53
  s.forEach((i) => i == null ? void 0 : i());
54
54
  };
55
55
  }, e);
56
- return c.useMemo(() => e.every((o) => o == null) ? null : (o) => {
56
+ return u.useMemo(() => e.every((o) => o == null) ? null : (o) => {
57
57
  t.current && (t.current(), t.current = void 0), o != null && (t.current = n(o));
58
58
  }, e);
59
59
  }
60
60
  const Qe = r.oneOfType([r.func, r.object]);
61
- function Pe(e, t) {
61
+ function xe(e, t) {
62
62
  return process.env.NODE_ENV === "production" ? () => null : function(...o) {
63
63
  return e(...o) || t(...o);
64
64
  };
@@ -78,26 +78,26 @@ function tt(e, t, n, o, s) {
78
78
  typeof window > "u")
79
79
  return null;
80
80
  let l;
81
- return typeof i == "function" && !et(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
81
+ return typeof i == "function" && !et(i) && (l = "Did you accidentally provide a plain function component instead?"), i === u.Fragment && (l = "Did you accidentally provide a React.Fragment instead?"), l !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
82
82
  }
83
- const nt = Pe(r.elementType, tt);
84
- function Me(e) {
83
+ const nt = xe(r.elementType, tt);
84
+ function Re(e) {
85
85
  try {
86
86
  return e.matches(":focus-visible");
87
87
  } catch {
88
- process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
88
+ 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(`
89
89
  `));
90
90
  }
91
91
  return !1;
92
92
  }
93
- const Re = {};
94
- function we(e, t) {
95
- const n = c.useRef(Re);
96
- return n.current === Re && (n.current = e(t)), n;
93
+ const Te = {};
94
+ function Se(e, t) {
95
+ const n = u.useRef(Te);
96
+ return n.current === Te && (n.current = e(t)), n;
97
97
  }
98
98
  class re {
99
99
  constructor() {
100
- W(this, "mountEffect", () => {
100
+ q(this, "mountEffect", () => {
101
101
  this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
102
102
  });
103
103
  this.ref = {
@@ -113,8 +113,8 @@ class re {
113
113
  return new re();
114
114
  }
115
115
  static use() {
116
- const t = we(re.create).current, [n, o] = c.useState(!1);
117
- return t.shouldMount = n, t.setShouldMount = o, c.useEffect(t.mountEffect, [n]), t;
116
+ const t = Se(re.create).current, [n, o] = u.useState(!1);
117
+ return t.shouldMount = n, t.setShouldMount = o, u.useEffect(t.mountEffect, [n]), t;
118
118
  }
119
119
  mount() {
120
120
  return this.mounted || (this.mounted = ot(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
@@ -180,17 +180,17 @@ function at(e) {
180
180
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
181
181
  return e;
182
182
  }
183
- function fe(e, t) {
183
+ function de(e, t) {
184
184
  var n = function(i) {
185
185
  return t && Q(i) ? t(i) : i;
186
186
  }, o = /* @__PURE__ */ Object.create(null);
187
- return e && We.map(e, function(s) {
187
+ return e && He.map(e, function(s) {
188
188
  return s;
189
189
  }).forEach(function(s) {
190
190
  o[s.key] = n(s);
191
191
  }), o;
192
192
  }
193
- function ut(e, t) {
193
+ function ct(e, t) {
194
194
  e = e || {}, t = t || {};
195
195
  function n(h) {
196
196
  return h in t ? t[h] : e[h];
@@ -202,8 +202,8 @@ function ut(e, t) {
202
202
  for (var p in t) {
203
203
  if (o[p])
204
204
  for (a = 0; a < o[p].length; a++) {
205
- var f = o[p][a];
206
- l[o[p][a]] = n(f);
205
+ var d = o[p][a];
206
+ l[o[p][a]] = n(d);
207
207
  }
208
208
  l[p] = n(p);
209
209
  }
@@ -211,38 +211,38 @@ function ut(e, t) {
211
211
  l[s[a]] = n(s[a]);
212
212
  return l;
213
213
  }
214
- function F(e, t, n) {
214
+ function U(e, t, n) {
215
215
  return n[t] != null ? n[t] : e.props[t];
216
216
  }
217
217
  function lt(e, t) {
218
- return fe(e.children, function(n) {
218
+ return de(e.children, function(n) {
219
219
  return ee(n, {
220
220
  onExited: t.bind(null, n),
221
221
  in: !0,
222
- appear: F(n, "appear", e),
223
- enter: F(n, "enter", e),
224
- exit: F(n, "exit", e)
222
+ appear: U(n, "appear", e),
223
+ enter: U(n, "enter", e),
224
+ exit: U(n, "exit", e)
225
225
  });
226
226
  });
227
227
  }
228
- function ct(e, t, n) {
229
- var o = fe(e.children), s = ut(t, o);
228
+ function ut(e, t, n) {
229
+ var o = de(e.children), s = ct(t, o);
230
230
  return Object.keys(s).forEach(function(i) {
231
231
  var a = s[i];
232
232
  if (Q(a)) {
233
- var l = i in t, p = i in o, f = t[i], h = Q(f) && !f.props.in;
233
+ var l = i in t, p = i in o, d = t[i], h = Q(d) && !d.props.in;
234
234
  p && (!l || h) ? s[i] = ee(a, {
235
235
  onExited: n.bind(null, a),
236
236
  in: !0,
237
- exit: F(a, "exit", e),
238
- enter: F(a, "enter", e)
237
+ exit: U(a, "exit", e),
238
+ enter: U(a, "enter", e)
239
239
  }) : !p && l && !h ? s[i] = ee(a, {
240
240
  in: !1
241
- }) : p && l && Q(f) && (s[i] = ee(a, {
241
+ }) : p && l && Q(d) && (s[i] = ee(a, {
242
242
  onExited: n.bind(null, a),
243
- in: f.props.in,
244
- exit: F(a, "exit", e),
245
- enter: F(a, "enter", e)
243
+ in: d.props.in,
244
+ exit: U(a, "exit", e),
245
+ enter: U(a, "enter", e)
246
246
  }));
247
247
  }
248
248
  }), s;
@@ -256,7 +256,7 @@ var pt = Object.values || function(e) {
256
256
  childFactory: function(t) {
257
257
  return t;
258
258
  }
259
- }, de = /* @__PURE__ */ function(e) {
259
+ }, he = /* @__PURE__ */ (function(e) {
260
260
  st(t, e);
261
261
  function t(o, s) {
262
262
  var i;
@@ -282,11 +282,11 @@ var pt = Object.values || function(e) {
282
282
  }, t.getDerivedStateFromProps = function(s, i) {
283
283
  var a = i.children, l = i.handleExited, p = i.firstRender;
284
284
  return {
285
- children: p ? lt(s, l) : ct(s, a, l),
285
+ children: p ? lt(s, l) : ut(s, a, l),
286
286
  firstRender: !1
287
287
  };
288
288
  }, n.handleExited = function(s, i) {
289
- var a = fe(this.props.children);
289
+ var a = de(this.props.children);
290
290
  s.key in a || (s.props.onExited && s.props.onExited(i), this.mounted && this.setState(function(l) {
291
291
  var p = ie({}, l.children);
292
292
  return delete p[s.key], {
@@ -294,15 +294,15 @@ var pt = Object.values || function(e) {
294
294
  };
295
295
  }));
296
296
  }, n.render = function() {
297
- var s = this.props, i = s.component, a = s.childFactory, l = it(s, ["component", "childFactory"]), p = this.state.contextValue, f = pt(this.state.children).map(a);
297
+ var s = this.props, i = s.component, a = s.childFactory, l = it(s, ["component", "childFactory"]), p = this.state.contextValue, d = pt(this.state.children).map(a);
298
298
  return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ H.createElement(ve.Provider, {
299
299
  value: p
300
- }, f) : /* @__PURE__ */ H.createElement(ve.Provider, {
300
+ }, d) : /* @__PURE__ */ H.createElement(ve.Provider, {
301
301
  value: p
302
- }, /* @__PURE__ */ H.createElement(i, l, f));
302
+ }, /* @__PURE__ */ H.createElement(i, l, d));
303
303
  }, t;
304
- }(H.Component);
305
- de.propTypes = process.env.NODE_ENV !== "production" ? {
304
+ })(H.Component);
305
+ he.propTypes = process.env.NODE_ENV !== "production" ? {
306
306
  /**
307
307
  * `<TransitionGroup>` renders a `<div>` by default. You can change this
308
308
  * behavior by providing a `component` prop.
@@ -355,21 +355,21 @@ de.propTypes = process.env.NODE_ENV !== "production" ? {
355
355
  */
356
356
  childFactory: r.func
357
357
  } : {};
358
- de.defaultProps = ft;
358
+ he.defaultProps = ft;
359
359
  const dt = [];
360
360
  function ht(e) {
361
- c.useEffect(e, dt);
361
+ u.useEffect(e, dt);
362
362
  }
363
- class he {
363
+ class me {
364
364
  constructor() {
365
- W(this, "currentId", null);
366
- W(this, "clear", () => {
365
+ q(this, "currentId", null);
366
+ q(this, "clear", () => {
367
367
  this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
368
368
  });
369
- W(this, "disposeEffect", () => this.clear);
369
+ q(this, "disposeEffect", () => this.clear);
370
370
  }
371
371
  static create() {
372
- return new he();
372
+ return new me();
373
373
  }
374
374
  /**
375
375
  * Executes `fn` after `delay`, clearing any previously scheduled call.
@@ -381,10 +381,10 @@ class he {
381
381
  }
382
382
  }
383
383
  function mt() {
384
- const e = we(he.create).current;
384
+ const e = Se(me.create).current;
385
385
  return ht(e.disposeEffect), e;
386
386
  }
387
- function Se(e) {
387
+ function we(e) {
388
388
  const {
389
389
  className: t,
390
390
  classes: n,
@@ -394,29 +394,29 @@ function Se(e) {
394
394
  rippleSize: a,
395
395
  in: l,
396
396
  onExited: p,
397
- timeout: f
398
- } = e, [h, m] = c.useState(!1), y = E(t, n.ripple, n.rippleVisible, o && n.ripplePulsate), M = {
397
+ timeout: d
398
+ } = e, [h, m] = u.useState(!1), y = E(t, n.ripple, n.rippleVisible, o && n.ripplePulsate), k = {
399
399
  width: a,
400
400
  height: a,
401
401
  top: -(a / 2) + i,
402
402
  left: -(a / 2) + s
403
403
  }, b = E(n.child, h && n.childLeaving, o && n.childPulsate);
404
- return !l && !h && m(!0), c.useEffect(() => {
404
+ return !l && !h && m(!0), u.useEffect(() => {
405
405
  if (!l && p != null) {
406
- const T = setTimeout(p, f);
406
+ const R = setTimeout(p, d);
407
407
  return () => {
408
- clearTimeout(T);
408
+ clearTimeout(R);
409
409
  };
410
410
  }
411
- }, [p, l, f]), /* @__PURE__ */ D("span", {
411
+ }, [p, l, d]), /* @__PURE__ */ N("span", {
412
412
  className: y,
413
- style: M,
414
- children: /* @__PURE__ */ D("span", {
413
+ style: k,
414
+ children: /* @__PURE__ */ N("span", {
415
415
  className: b
416
416
  })
417
417
  });
418
418
  }
419
- process.env.NODE_ENV !== "production" && (Se.propTypes = {
419
+ process.env.NODE_ENV !== "production" && (we.propTypes = {
420
420
  /**
421
421
  * Override or extend the styles applied to the component.
422
422
  */
@@ -451,7 +451,7 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
451
451
  */
452
452
  timeout: r.number.isRequired
453
453
  });
454
- const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ae = 550, bt = 80, gt = G`
454
+ const T = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ae = 550, bt = 80, gt = G`
455
455
  0% {
456
456
  transform: scale(0);
457
457
  opacity: 0.1;
@@ -481,7 +481,7 @@ const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
481
481
  100% {
482
482
  transform: scale(1);
483
483
  }
484
- `, Rt = z("span", {
484
+ `, Rt = _("span", {
485
485
  name: "MuiTouchRipple",
486
486
  slot: "Root"
487
487
  })({
@@ -494,14 +494,14 @@ const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
494
494
  bottom: 0,
495
495
  left: 0,
496
496
  borderRadius: "inherit"
497
- }), vt = z(Se, {
497
+ }), Tt = _(we, {
498
498
  name: "MuiTouchRipple",
499
499
  slot: "Ripple"
500
500
  })`
501
501
  opacity: 0;
502
502
  position: absolute;
503
503
 
504
- &.${v.rippleVisible} {
504
+ &.${T.rippleVisible} {
505
505
  opacity: 0.3;
506
506
  transform: scale(1);
507
507
  animation-name: ${gt};
@@ -511,13 +511,13 @@ const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
511
511
  }) => e.transitions.easing.easeInOut};
512
512
  }
513
513
 
514
- &.${v.ripplePulsate} {
514
+ &.${T.ripplePulsate} {
515
515
  animation-duration: ${({
516
516
  theme: e
517
517
  }) => e.transitions.duration.shorter}ms;
518
518
  }
519
519
 
520
- & .${v.child} {
520
+ & .${T.child} {
521
521
  opacity: 1;
522
522
  display: block;
523
523
  width: 100%;
@@ -526,7 +526,7 @@ const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
526
526
  background-color: currentColor;
527
527
  }
528
528
 
529
- & .${v.childLeaving} {
529
+ & .${T.childLeaving} {
530
530
  opacity: 0;
531
531
  animation-name: ${yt};
532
532
  animation-duration: ${ae}ms;
@@ -535,7 +535,7 @@ const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
535
535
  }) => e.transitions.easing.easeInOut};
536
536
  }
537
537
 
538
- & .${v.childPulsate} {
538
+ & .${T.childPulsate} {
539
539
  position: absolute;
540
540
  /* @noflip */
541
541
  left: 0px;
@@ -548,7 +548,7 @@ const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
548
548
  animation-iteration-count: infinite;
549
549
  animation-delay: 200ms;
550
550
  }
551
- `, ke = /* @__PURE__ */ c.forwardRef(function(t, n) {
551
+ `, De = /* @__PURE__ */ u.forwardRef(function(t, n) {
552
552
  const o = pe({
553
553
  props: t,
554
554
  name: "MuiTouchRipple"
@@ -557,114 +557,114 @@ const v = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
557
557
  classes: i = {},
558
558
  className: a,
559
559
  ...l
560
- } = o, [p, f] = c.useState([]), h = c.useRef(0), m = c.useRef(null);
561
- c.useEffect(() => {
560
+ } = o, [p, d] = u.useState([]), h = u.useRef(0), m = u.useRef(null);
561
+ u.useEffect(() => {
562
562
  m.current && (m.current(), m.current = null);
563
563
  }, [p]);
564
- const y = c.useRef(!1), M = mt(), b = c.useRef(null), T = c.useRef(null), R = c.useCallback((d) => {
564
+ const y = u.useRef(!1), k = mt(), b = u.useRef(null), R = u.useRef(null), M = u.useCallback((f) => {
565
565
  const {
566
- pulsate: x,
567
- rippleX: C,
568
- rippleY: _,
569
- rippleSize: j,
570
- cb: A
571
- } = d;
572
- f((P) => [...P, /* @__PURE__ */ D(vt, {
566
+ pulsate: P,
567
+ rippleX: v,
568
+ rippleY: z,
569
+ rippleSize: B,
570
+ cb: Y
571
+ } = f;
572
+ d((x) => [...x, /* @__PURE__ */ N(Tt, {
573
573
  classes: {
574
- ripple: E(i.ripple, v.ripple),
575
- rippleVisible: E(i.rippleVisible, v.rippleVisible),
576
- ripplePulsate: E(i.ripplePulsate, v.ripplePulsate),
577
- child: E(i.child, v.child),
578
- childLeaving: E(i.childLeaving, v.childLeaving),
579
- childPulsate: E(i.childPulsate, v.childPulsate)
574
+ ripple: E(i.ripple, T.ripple),
575
+ rippleVisible: E(i.rippleVisible, T.rippleVisible),
576
+ ripplePulsate: E(i.ripplePulsate, T.ripplePulsate),
577
+ child: E(i.child, T.child),
578
+ childLeaving: E(i.childLeaving, T.childLeaving),
579
+ childPulsate: E(i.childPulsate, T.childPulsate)
580
580
  },
581
581
  timeout: ae,
582
- pulsate: x,
583
- rippleX: C,
584
- rippleY: _,
585
- rippleSize: j
586
- }, h.current)]), h.current += 1, m.current = A;
587
- }, [i]), w = c.useCallback((d = {}, x = {}, C = () => {
582
+ pulsate: P,
583
+ rippleX: v,
584
+ rippleY: z,
585
+ rippleSize: B
586
+ }, h.current)]), h.current += 1, m.current = Y;
587
+ }, [i]), S = u.useCallback((f = {}, P = {}, v = () => {
588
588
  }) => {
589
589
  const {
590
- pulsate: _ = !1,
591
- center: j = s || x.pulsate,
592
- fakeElement: A = !1
590
+ pulsate: z = !1,
591
+ center: B = s || P.pulsate,
592
+ fakeElement: Y = !1
593
593
  // For test purposes
594
- } = x;
595
- if ((d == null ? void 0 : d.type) === "mousedown" && y.current) {
594
+ } = P;
595
+ if ((f == null ? void 0 : f.type) === "mousedown" && y.current) {
596
596
  y.current = !1;
597
597
  return;
598
598
  }
599
- (d == null ? void 0 : d.type) === "touchstart" && (y.current = !0);
600
- const P = A ? null : T.current, N = P ? P.getBoundingClientRect() : {
599
+ (f == null ? void 0 : f.type) === "touchstart" && (y.current = !0);
600
+ const x = Y ? null : R.current, I = x ? x.getBoundingClientRect() : {
601
601
  width: 0,
602
602
  height: 0,
603
603
  left: 0,
604
604
  top: 0
605
605
  };
606
- let O, S, I;
607
- if (j || d === void 0 || d.clientX === 0 && d.clientY === 0 || !d.clientX && !d.touches)
608
- O = Math.round(N.width / 2), S = Math.round(N.height / 2);
606
+ let $, D, V;
607
+ if (B || f === void 0 || f.clientX === 0 && f.clientY === 0 || !f.clientX && !f.touches)
608
+ $ = Math.round(I.width / 2), D = Math.round(I.height / 2);
609
609
  else {
610
610
  const {
611
- clientX: Y,
612
- clientY: B
613
- } = d.touches && d.touches.length > 0 ? d.touches[0] : d;
614
- O = Math.round(Y - N.left), S = Math.round(B - N.top);
611
+ clientX: K,
612
+ clientY: L
613
+ } = f.touches && f.touches.length > 0 ? f.touches[0] : f;
614
+ $ = Math.round(K - I.left), D = Math.round(L - I.top);
615
615
  }
616
- if (j)
617
- I = Math.sqrt((2 * N.width ** 2 + N.height ** 2) / 3), I % 2 === 0 && (I += 1);
616
+ if (B)
617
+ V = Math.sqrt((2 * I.width ** 2 + I.height ** 2) / 3), V % 2 === 0 && (V += 1);
618
618
  else {
619
- const Y = Math.max(Math.abs((P ? P.clientWidth : 0) - O), O) * 2 + 2, B = Math.max(Math.abs((P ? P.clientHeight : 0) - S), S) * 2 + 2;
620
- I = Math.sqrt(Y ** 2 + B ** 2);
619
+ const K = Math.max(Math.abs((x ? x.clientWidth : 0) - $), $) * 2 + 2, L = Math.max(Math.abs((x ? x.clientHeight : 0) - D), D) * 2 + 2;
620
+ V = Math.sqrt(K ** 2 + L ** 2);
621
621
  }
622
- d != null && d.touches ? b.current === null && (b.current = () => {
623
- R({
624
- pulsate: _,
625
- rippleX: O,
626
- rippleY: S,
627
- rippleSize: I,
628
- cb: C
622
+ f != null && f.touches ? b.current === null && (b.current = () => {
623
+ M({
624
+ pulsate: z,
625
+ rippleX: $,
626
+ rippleY: D,
627
+ rippleSize: V,
628
+ cb: v
629
629
  });
630
- }, M.start(bt, () => {
630
+ }, k.start(bt, () => {
631
631
  b.current && (b.current(), b.current = null);
632
- })) : R({
633
- pulsate: _,
634
- rippleX: O,
635
- rippleY: S,
636
- rippleSize: I,
637
- cb: C
632
+ })) : M({
633
+ pulsate: z,
634
+ rippleX: $,
635
+ rippleY: D,
636
+ rippleSize: V,
637
+ cb: v
638
638
  });
639
- }, [s, R, M]), V = c.useCallback(() => {
640
- w({}, {
639
+ }, [s, M, k]), j = u.useCallback(() => {
640
+ S({}, {
641
641
  pulsate: !0
642
642
  });
643
- }, [w]), U = c.useCallback((d, x) => {
644
- if (M.clear(), (d == null ? void 0 : d.type) === "touchend" && b.current) {
645
- b.current(), b.current = null, M.start(0, () => {
646
- U(d, x);
643
+ }, [S]), w = u.useCallback((f, P) => {
644
+ if (k.clear(), (f == null ? void 0 : f.type) === "touchend" && b.current) {
645
+ b.current(), b.current = null, k.start(0, () => {
646
+ w(f, P);
647
647
  });
648
648
  return;
649
649
  }
650
- b.current = null, f((C) => C.length > 0 ? C.slice(1) : C), m.current = x;
651
- }, [M]);
652
- return c.useImperativeHandle(n, () => ({
653
- pulsate: V,
654
- start: w,
655
- stop: U
656
- }), [V, w, U]), /* @__PURE__ */ D(Rt, {
657
- className: E(v.root, i.root, a),
658
- ref: T,
650
+ b.current = null, d((v) => v.length > 0 ? v.slice(1) : v), m.current = P;
651
+ }, [k]);
652
+ return u.useImperativeHandle(n, () => ({
653
+ pulsate: j,
654
+ start: S,
655
+ stop: w
656
+ }), [j, S, w]), /* @__PURE__ */ N(Rt, {
657
+ className: E(T.root, i.root, a),
658
+ ref: R,
659
659
  ...l,
660
- children: /* @__PURE__ */ D(de, {
660
+ children: /* @__PURE__ */ N(he, {
661
661
  component: null,
662
662
  exit: !0,
663
663
  children: p
664
664
  })
665
665
  });
666
666
  });
667
- process.env.NODE_ENV !== "production" && (ke.propTypes = {
667
+ process.env.NODE_ENV !== "production" && (De.propTypes = {
668
668
  /**
669
669
  * If `true`, the ripple starts at the center of the component
670
670
  * rather than at the point of interaction.
@@ -679,20 +679,20 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
679
679
  */
680
680
  className: r.string
681
681
  });
682
- function Tt(e) {
683
- return Te("MuiButtonBase", e);
682
+ function vt(e) {
683
+ return Ce("MuiButtonBase", e);
684
684
  }
685
- const Ct = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), Et = (e) => {
685
+ const Ct = ue("MuiButtonBase", ["root", "disabled", "focusVisible"]), Et = (e) => {
686
686
  const {
687
687
  disabled: t,
688
688
  focusVisible: n,
689
689
  focusVisibleClassName: o,
690
690
  classes: s
691
- } = e, a = Ce({
691
+ } = e, a = Ee({
692
692
  root: ["root", t && "disabled", n && "focusVisible"]
693
- }, Tt, s);
693
+ }, vt, s);
694
694
  return n && o && (a.root += ` ${o}`), a;
695
- }, xt = z("button", {
695
+ }, kt = _("button", {
696
696
  name: "MuiButtonBase",
697
697
  slot: "Root"
698
698
  })({
@@ -734,7 +734,7 @@ const Ct = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), Et = (e) =
734
734
  "@media print": {
735
735
  colorAdjust: "exact"
736
736
  }
737
- }), Pt = /* @__PURE__ */ c.forwardRef(function(t, n) {
737
+ }), Pt = /* @__PURE__ */ u.forwardRef(function(t, n) {
738
738
  const o = pe({
739
739
  props: t,
740
740
  name: "MuiButtonBase"
@@ -744,104 +744,108 @@ const Ct = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), Et = (e) =
744
744
  children: a,
745
745
  className: l,
746
746
  component: p = "button",
747
- disabled: f = !1,
747
+ disabled: d = !1,
748
748
  disableRipple: h = !1,
749
749
  disableTouchRipple: m = !1,
750
750
  focusRipple: y = !1,
751
- focusVisibleClassName: M,
751
+ focusVisibleClassName: k,
752
752
  LinkComponent: b = "a",
753
- onBlur: T,
754
- onClick: R,
755
- onContextMenu: w,
756
- onDragLeave: V,
757
- onFocus: U,
758
- onFocusVisible: d,
759
- onKeyDown: x,
760
- onKeyUp: C,
761
- onMouseDown: _,
762
- onMouseLeave: j,
763
- onMouseUp: A,
764
- onTouchEnd: P,
765
- onTouchMove: N,
766
- onTouchStart: O,
767
- tabIndex: S = 0,
768
- TouchRippleProps: I,
769
- touchRippleRef: Y,
770
- type: B,
771
- ...K
772
- } = o, X = c.useRef(null), g = rt(), De = ye(g.ref, Y), [L, Z] = c.useState(!1);
773
- f && L && Z(!1), c.useImperativeHandle(s, () => ({
753
+ onBlur: R,
754
+ onClick: M,
755
+ onContextMenu: S,
756
+ onDragLeave: j,
757
+ onFocus: w,
758
+ onFocusVisible: f,
759
+ onKeyDown: P,
760
+ onKeyUp: v,
761
+ onMouseDown: z,
762
+ onMouseLeave: B,
763
+ onMouseUp: Y,
764
+ onTouchEnd: x,
765
+ onTouchMove: I,
766
+ onTouchStart: $,
767
+ tabIndex: D = 0,
768
+ TouchRippleProps: V,
769
+ touchRippleRef: K,
770
+ type: L,
771
+ ...A
772
+ } = o, X = u.useRef(null), g = rt(), Oe = Me(g.ref, K), [F, Z] = u.useState(!1);
773
+ d && F && Z(!1), u.useImperativeHandle(s, () => ({
774
774
  focusVisible: () => {
775
775
  Z(!0), X.current.focus();
776
776
  }
777
777
  }), []);
778
- const Ne = g.shouldMount && !h && !f;
779
- c.useEffect(() => {
780
- L && y && !h && g.pulsate();
781
- }, [h, y, L, g]);
782
- const Oe = k(g, "start", _, m), Ie = k(g, "stop", w, m), $e = k(g, "stop", V, m), Ve = k(g, "stop", A, m), je = k(g, "stop", (u) => {
783
- L && u.preventDefault(), j && j(u);
784
- }, m), Be = k(g, "start", O, m), Le = k(g, "stop", P, m), Fe = k(g, "stop", N, m), Ue = k(g, "stop", (u) => {
785
- Me(u.target) || Z(!1), T && T(u);
786
- }, !1), _e = te((u) => {
787
- X.current || (X.current = u.currentTarget), Me(u.target) && (Z(!0), d && d(u)), U && U(u);
778
+ const Ne = g.shouldMount && !h && !d;
779
+ u.useEffect(() => {
780
+ F && y && !h && g.pulsate();
781
+ }, [h, y, F, g]);
782
+ const Ie = O(g, "start", z, m), $e = O(g, "stop", S, m), Ve = O(g, "stop", j, m), je = O(g, "stop", Y, m), Be = O(g, "stop", (c) => {
783
+ F && c.preventDefault(), B && B(c);
784
+ }, m), Le = O(g, "start", $, m), Fe = O(g, "stop", x, m), Ue = O(g, "stop", I, m), _e = O(g, "stop", (c) => {
785
+ Re(c.target) || Z(!1), R && R(c);
786
+ }, !1), ze = te((c) => {
787
+ X.current || (X.current = c.currentTarget), Re(c.target) && (Z(!0), f && f(c)), w && w(c);
788
788
  }), oe = () => {
789
- const u = X.current;
790
- return p && p !== "button" && !(u.tagName === "A" && u.href);
791
- }, ze = te((u) => {
792
- y && !u.repeat && L && u.key === " " && g.stop(u, () => {
793
- g.start(u);
794
- }), u.target === u.currentTarget && oe() && u.key === " " && u.preventDefault(), x && x(u), u.target === u.currentTarget && oe() && u.key === "Enter" && !f && (u.preventDefault(), R && R(u));
795
- }), Ae = te((u) => {
796
- y && u.key === " " && L && !u.defaultPrevented && g.stop(u, () => {
797
- g.pulsate(u);
798
- }), C && C(u), R && u.target === u.currentTarget && oe() && u.key === " " && !u.defaultPrevented && R(u);
789
+ const c = X.current;
790
+ return p && p !== "button" && !(c.tagName === "A" && c.href);
791
+ }, Ae = te((c) => {
792
+ y && !c.repeat && F && c.key === " " && g.stop(c, () => {
793
+ g.start(c);
794
+ }), c.target === c.currentTarget && oe() && c.key === " " && c.preventDefault(), P && P(c), c.target === c.currentTarget && oe() && c.key === "Enter" && !d && (c.preventDefault(), M && M(c));
795
+ }), Ye = te((c) => {
796
+ y && c.key === " " && F && !c.defaultPrevented && g.stop(c, () => {
797
+ g.pulsate(c);
798
+ }), v && v(c), M && c.target === c.currentTarget && oe() && c.key === " " && !c.defaultPrevented && M(c);
799
799
  });
800
800
  let J = p;
801
- J === "button" && (K.href || K.to) && (J = b);
802
- const q = {};
803
- J === "button" ? (q.type = B === void 0 ? "button" : B, q.disabled = f) : (!K.href && !K.to && (q.role = "button"), f && (q["aria-disabled"] = f));
804
- const Ye = ye(n, X), me = {
801
+ J === "button" && (A.href || A.to) && (J = b);
802
+ const W = {};
803
+ if (J === "button") {
804
+ const c = !!A.formAction;
805
+ W.type = L === void 0 && !c ? "button" : L, W.disabled = d;
806
+ } else
807
+ !A.href && !A.to && (W.role = "button"), d && (W["aria-disabled"] = d);
808
+ const Ke = Me(n, X), be = {
805
809
  ...o,
806
810
  centerRipple: i,
807
811
  component: p,
808
- disabled: f,
812
+ disabled: d,
809
813
  disableRipple: h,
810
814
  disableTouchRipple: m,
811
815
  focusRipple: y,
812
- tabIndex: S,
813
- focusVisible: L
814
- }, Ke = Et(me);
815
- return /* @__PURE__ */ He(xt, {
816
+ tabIndex: D,
817
+ focusVisible: F
818
+ }, Xe = Et(be);
819
+ return /* @__PURE__ */ ke(kt, {
816
820
  as: J,
817
- className: E(Ke.root, l),
818
- ownerState: me,
819
- onBlur: Ue,
820
- onClick: R,
821
- onContextMenu: Ie,
822
- onFocus: _e,
823
- onKeyDown: ze,
824
- onKeyUp: Ae,
825
- onMouseDown: Oe,
826
- onMouseLeave: je,
827
- onMouseUp: Ve,
828
- onDragLeave: $e,
829
- onTouchEnd: Le,
830
- onTouchMove: Fe,
831
- onTouchStart: Be,
832
- ref: Ye,
833
- tabIndex: f ? -1 : S,
834
- type: B,
835
- ...q,
836
- ...K,
837
- children: [a, Ne ? /* @__PURE__ */ D(ke, {
838
- ref: De,
821
+ className: E(Xe.root, l),
822
+ ownerState: be,
823
+ onBlur: _e,
824
+ onClick: M,
825
+ onContextMenu: $e,
826
+ onFocus: ze,
827
+ onKeyDown: Ae,
828
+ onKeyUp: Ye,
829
+ onMouseDown: Ie,
830
+ onMouseLeave: Be,
831
+ onMouseUp: je,
832
+ onDragLeave: Ve,
833
+ onTouchEnd: Fe,
834
+ onTouchMove: Ue,
835
+ onTouchStart: Le,
836
+ ref: Ke,
837
+ tabIndex: d ? -1 : D,
838
+ type: L,
839
+ ...W,
840
+ ...A,
841
+ children: [a, Ne ? /* @__PURE__ */ N(De, {
842
+ ref: Oe,
839
843
  center: i,
840
- ...I
844
+ ...V
841
845
  }) : null]
842
846
  });
843
847
  });
844
- function k(e, t, n, o = !1) {
848
+ function O(e, t, n, o = !1) {
845
849
  return te((s) => (n && n(s), o || e[t](s), !0));
846
850
  }
847
851
  process.env.NODE_ENV !== "production" && (Pt.propTypes = {
@@ -909,6 +913,10 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
909
913
  * if needed.
910
914
  */
911
915
  focusVisibleClassName: r.string,
916
+ /**
917
+ * @ignore
918
+ */
919
+ formAction: r.oneOfType([r.func, r.string]),
912
920
  /**
913
921
  * @ignore
914
922
  */
@@ -1002,25 +1010,25 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
1002
1010
  */
1003
1011
  type: r.oneOfType([r.oneOf(["button", "reset", "submit"]), r.string])
1004
1012
  });
1005
- function wt(e) {
1013
+ function xt(e) {
1006
1014
  return typeof e.main == "string";
1007
1015
  }
1008
1016
  function St(e, t = []) {
1009
- if (!wt(e))
1017
+ if (!xt(e))
1010
1018
  return !1;
1011
1019
  for (const n of t)
1012
1020
  if (!e.hasOwnProperty(n) || typeof e[n] != "string")
1013
1021
  return !1;
1014
1022
  return !0;
1015
1023
  }
1016
- function kt(e = []) {
1024
+ function wt(e = []) {
1017
1025
  return ([, t]) => t && St(t, e);
1018
1026
  }
1019
1027
  function Dt(e) {
1020
- return Te("MuiCircularProgress", e);
1028
+ return Ce("MuiCircularProgress", e);
1021
1029
  }
1022
- ce("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
1023
- const $ = 44, ue = G`
1030
+ ue("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
1031
+ const C = 44, ce = G`
1024
1032
  0% {
1025
1033
  transform: rotate(0deg);
1026
1034
  }
@@ -1043,9 +1051,9 @@ const $ = 44, ue = G`
1043
1051
  stroke-dasharray: 1px, 200px;
1044
1052
  stroke-dashoffset: -126px;
1045
1053
  }
1046
- `, Nt = typeof ue != "string" ? xe`
1047
- animation: ${ue} 1.4s linear infinite;
1048
- ` : null, Ot = typeof le != "string" ? xe`
1054
+ `, Ot = typeof ce != "string" ? Pe`
1055
+ animation: ${ce} 1.4s linear infinite;
1056
+ ` : null, Nt = typeof le != "string" ? Pe`
1049
1057
  animation: ${le} 1.4s ease-in-out infinite;
1050
1058
  ` : null, It = (e) => {
1051
1059
  const {
@@ -1056,10 +1064,11 @@ const $ = 44, ue = G`
1056
1064
  } = e, i = {
1057
1065
  root: ["root", n, `color${ne(o)}`],
1058
1066
  svg: ["svg"],
1067
+ track: ["track"],
1059
1068
  circle: ["circle", `circle${ne(n)}`, s && "circleDisableShrink"]
1060
1069
  };
1061
- return Ce(i, Dt, t);
1062
- }, $t = z("span", {
1070
+ return Ee(i, Dt, t);
1071
+ }, $t = _("span", {
1063
1072
  name: "MuiCircularProgress",
1064
1073
  slot: "Root",
1065
1074
  overridesResolver: (e, t) => {
@@ -1068,7 +1077,7 @@ const $ = 44, ue = G`
1068
1077
  } = e;
1069
1078
  return [t.root, t[n.variant], t[`color${ne(n.color)}`]];
1070
1079
  }
1071
- })(Ee(({
1080
+ })(fe(({
1072
1081
  theme: e
1073
1082
  }) => ({
1074
1083
  display: "inline-block",
@@ -1083,10 +1092,10 @@ const $ = 44, ue = G`
1083
1092
  props: {
1084
1093
  variant: "indeterminate"
1085
1094
  },
1086
- style: Nt || {
1087
- animation: `${ue} 1.4s linear infinite`
1095
+ style: Ot || {
1096
+ animation: `${ce} 1.4s linear infinite`
1088
1097
  }
1089
- }, ...Object.entries(e.palette).filter(kt()).map(([t]) => ({
1098
+ }, ...Object.entries(e.palette).filter(wt()).map(([t]) => ({
1090
1099
  props: {
1091
1100
  color: t
1092
1101
  },
@@ -1094,13 +1103,13 @@ const $ = 44, ue = G`
1094
1103
  color: (e.vars || e).palette[t].main
1095
1104
  }
1096
1105
  }))]
1097
- }))), Vt = z("svg", {
1106
+ }))), Vt = _("svg", {
1098
1107
  name: "MuiCircularProgress",
1099
1108
  slot: "Svg"
1100
1109
  })({
1101
1110
  display: "block"
1102
1111
  // Keeps the progress centered
1103
- }), jt = z("circle", {
1112
+ }), jt = _("circle", {
1104
1113
  name: "MuiCircularProgress",
1105
1114
  slot: "Circle",
1106
1115
  overridesResolver: (e, t) => {
@@ -1109,7 +1118,7 @@ const $ = 44, ue = G`
1109
1118
  } = e;
1110
1119
  return [t.circle, t[`circle${ne(n.variant)}`], n.disableShrink && t.circleDisableShrink];
1111
1120
  }
1112
- })(Ee(({
1121
+ })(fe(({
1113
1122
  theme: e
1114
1123
  }) => ({
1115
1124
  stroke: "currentColor",
@@ -1134,12 +1143,20 @@ const $ = 44, ue = G`
1134
1143
  props: ({
1135
1144
  ownerState: t
1136
1145
  }) => t.variant === "indeterminate" && !t.disableShrink,
1137
- style: Ot || {
1146
+ style: Nt || {
1138
1147
  // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
1139
1148
  animation: `${le} 1.4s ease-in-out infinite`
1140
1149
  }
1141
1150
  }]
1142
- }))), Bt = /* @__PURE__ */ c.forwardRef(function(t, n) {
1151
+ }))), Bt = _("circle", {
1152
+ name: "MuiCircularProgress",
1153
+ slot: "Track"
1154
+ })(fe(({
1155
+ theme: e
1156
+ }) => ({
1157
+ stroke: "currentColor",
1158
+ opacity: (e.vars || e).palette.action.activatedOpacity
1159
+ }))), Lt = /* @__PURE__ */ u.forwardRef(function(t, n) {
1143
1160
  const o = pe({
1144
1161
  props: t,
1145
1162
  name: "MuiCircularProgress"
@@ -1147,56 +1164,67 @@ const $ = 44, ue = G`
1147
1164
  className: s,
1148
1165
  color: i = "primary",
1149
1166
  disableShrink: a = !1,
1150
- size: l = 40,
1151
- style: p,
1152
- thickness: f = 3.6,
1153
- value: h = 0,
1154
- variant: m = "indeterminate",
1155
- ...y
1156
- } = o, M = {
1167
+ enableTrackSlot: l = !1,
1168
+ size: p = 40,
1169
+ style: d,
1170
+ thickness: h = 3.6,
1171
+ value: m = 0,
1172
+ variant: y = "indeterminate",
1173
+ ...k
1174
+ } = o, b = {
1157
1175
  ...o,
1158
1176
  color: i,
1159
1177
  disableShrink: a,
1160
- size: l,
1161
- thickness: f,
1162
- value: h,
1163
- variant: m
1164
- }, b = It(M), T = {}, R = {}, w = {};
1165
- if (m === "determinate") {
1166
- const V = 2 * Math.PI * (($ - f) / 2);
1167
- T.strokeDasharray = V.toFixed(3), w["aria-valuenow"] = Math.round(h), T.strokeDashoffset = `${((100 - h) / 100 * V).toFixed(3)}px`, R.transform = "rotate(-90deg)";
1178
+ size: p,
1179
+ thickness: h,
1180
+ value: m,
1181
+ variant: y,
1182
+ enableTrackSlot: l
1183
+ }, R = It(b), M = {}, S = {}, j = {};
1184
+ if (y === "determinate") {
1185
+ const w = 2 * Math.PI * ((C - h) / 2);
1186
+ M.strokeDasharray = w.toFixed(3), j["aria-valuenow"] = Math.round(m), M.strokeDashoffset = `${((100 - m) / 100 * w).toFixed(3)}px`, S.transform = "rotate(-90deg)";
1168
1187
  }
1169
- return /* @__PURE__ */ D($t, {
1170
- className: E(b.root, s),
1188
+ return /* @__PURE__ */ N($t, {
1189
+ className: E(R.root, s),
1171
1190
  style: {
1172
- width: l,
1173
- height: l,
1174
- ...R,
1175
- ...p
1191
+ width: p,
1192
+ height: p,
1193
+ ...S,
1194
+ ...d
1176
1195
  },
1177
- ownerState: M,
1196
+ ownerState: b,
1178
1197
  ref: n,
1179
1198
  role: "progressbar",
1180
- ...w,
1181
- ...y,
1182
- children: /* @__PURE__ */ D(Vt, {
1183
- className: b.svg,
1184
- ownerState: M,
1185
- viewBox: `${$ / 2} ${$ / 2} ${$} ${$}`,
1186
- children: /* @__PURE__ */ D(jt, {
1187
- className: b.circle,
1188
- style: T,
1189
- ownerState: M,
1190
- cx: $,
1191
- cy: $,
1192
- r: ($ - f) / 2,
1199
+ ...j,
1200
+ ...k,
1201
+ children: /* @__PURE__ */ ke(Vt, {
1202
+ className: R.svg,
1203
+ ownerState: b,
1204
+ viewBox: `${C / 2} ${C / 2} ${C} ${C}`,
1205
+ children: [l ? /* @__PURE__ */ N(Bt, {
1206
+ className: R.track,
1207
+ ownerState: b,
1208
+ cx: C,
1209
+ cy: C,
1210
+ r: (C - h) / 2,
1211
+ fill: "none",
1212
+ strokeWidth: h,
1213
+ "aria-hidden": "true"
1214
+ }) : null, /* @__PURE__ */ N(jt, {
1215
+ className: R.circle,
1216
+ style: M,
1217
+ ownerState: b,
1218
+ cx: C,
1219
+ cy: C,
1220
+ r: (C - h) / 2,
1193
1221
  fill: "none",
1194
- strokeWidth: f
1195
- })
1222
+ strokeWidth: h
1223
+ })]
1196
1224
  })
1197
1225
  });
1198
1226
  });
1199
- process.env.NODE_ENV !== "production" && (Bt.propTypes = {
1227
+ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
1200
1228
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1201
1229
  // │ These PropTypes are generated from the TypeScript type definitions. │
1202
1230
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1221,7 +1249,13 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
1221
1249
  * This only works if variant is `indeterminate`.
1222
1250
  * @default false
1223
1251
  */
1224
- disableShrink: Pe(r.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),
1252
+ disableShrink: xe(r.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),
1253
+ /**
1254
+ * If `true`, a track circle slot is mounted to show a subtle background for the progress.
1255
+ * The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
1256
+ * @default false
1257
+ */
1258
+ enableTrackSlot: r.bool,
1225
1259
  /**
1226
1260
  * The size of the component.
1227
1261
  * If using a number, the pixel unit is assumed.
@@ -1257,19 +1291,20 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
1257
1291
  });
1258
1292
  export {
1259
1293
  Pt as B,
1260
- Bt as C,
1294
+ Lt as C,
1261
1295
  ve as T,
1262
1296
  st as _,
1263
- Pe as a,
1264
- ye as b,
1265
- kt as c,
1297
+ xe as a,
1298
+ Me as b,
1299
+ wt as c,
1266
1300
  Ge as d,
1267
1301
  it as e,
1268
1302
  te as f,
1269
1303
  nt as g,
1270
1304
  mt as h,
1271
- ie as i,
1272
- we as j,
1305
+ Se as i,
1306
+ ht as j,
1307
+ ie as k,
1273
1308
  Qe as r,
1274
- Yt as u
1309
+ Kt as u
1275
1310
  };