@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.
- package/dist/{Button-BgSe1MyE.js → Button-HlUfDiMM.js} +3 -3
- package/dist/{CircularProgress-DgKnRiq7.js → CircularProgress-DZ8YZ0Dt.js} +345 -310
- package/dist/{Close-Cv_QwhIN.js → Close-TS8H1lQg.js} +1 -1
- package/dist/{DefaultPropsProvider-BurgXZzw.js → DefaultPropsProvider-B_x1hwuY.js} +2 -2
- package/dist/{DialogQR-DoM8ZHBM.js → DialogQR-ByOert0g.js} +4 -4
- package/dist/{FileSaver.min-DhePf63e.js → FileSaver.min-CDwyANUI.js} +57 -57
- package/dist/{FlashWifi-slUpI7sB.js → FlashWifi-CNanHNye.js} +1 -1
- package/dist/{Portal-MiwrHMB_.js → Portal-BdRLJx1y.js} +140 -133
- package/dist/assets/SidePanel.css +1 -1
- package/dist/assets/SvgLayer.css +1 -1
- package/dist/assets/Widget.css +1 -1
- package/dist/{browser-HW-wgeM2.js → browser-DWbgwj89.js} +421 -451
- package/dist/components/AlertPara/AlertPara.js +1 -1
- package/dist/components/Application/Application.js +724 -689
- package/dist/components/BusyButton/BusyButton.d.ts +4 -4
- package/dist/components/BusyButton/BusyButton.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/ConnectionStatus/ConnectionStatus.js +3 -3
- package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
- package/dist/components/Feedback/Feedback.js +4 -4
- package/dist/components/Feedback/Rating.js +1 -1
- package/dist/components/Help/Help.d.ts +2 -2
- package/dist/components/Help/Help.js +5 -5
- package/dist/components/LangSelect/LangSelect.js +1 -1
- package/dist/components/Motd/Motd.js +1 -1
- package/dist/components/PieScore/PieScore.js +9609 -6092
- package/dist/components/QRCode/DialogQR.js +4 -4
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/SidePanel/SidePanel.d.ts +2 -1
- package/dist/components/SidePanel/SidePanel.js +107 -89
- package/dist/components/Webcam/Webcam.js +3 -3
- package/dist/components/WorkflowLayout/Widget.js +1460 -1438
- package/dist/{createSvgIcon-BM4dw4Lw.js → createSvgIcon-DjQWJ3wn.js} +2 -2
- package/dist/{createTheme-DV959X3d.js → createTheme-DnBeI7Zz.js} +752 -749
- package/dist/hooks/peer.js +1 -1
- package/dist/{index-SOhdqzHq.js → index-B_zFkp-8.js} +2 -2
- package/dist/react-CiLnfHJp.js +140 -0
- package/dist/services/peer2peer/Incoming.js +1 -1
- package/dist/services/peer2peer/Outgoing.js +1 -1
- package/dist/services/peer2peer/Peer2Peer.js +538 -541
- package/dist/services/peer2peer/PeerConnection.js +1 -1
- package/dist/state/webrtcState.js +1 -1
- package/dist/style/theme.js +1 -1
- package/dist/util/Observer.js +1 -1
- package/dist/util/zip.js +1 -1
- package/dist/vanilla-OLGM3aAq.js +439 -0
- package/package.json +3 -3
- package/dist/react-B9NW8BS7.js +0 -112
- package/dist/vanilla-BJxibF1U.js +0 -404
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var qe = (e, t, n) => t in e ?
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import H, { isValidElement as Q, cloneElement as ee, Children as
|
|
6
|
-
import { P as r, g as
|
|
7
|
-
import { c as E, g as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { keyframes as G, css as
|
|
10
|
-
const Ge = typeof window < "u" ?
|
|
11
|
-
let
|
|
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] =
|
|
14
|
-
return
|
|
15
|
-
t == null && (
|
|
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
|
-
...
|
|
20
|
-
},
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
23
|
-
const t =
|
|
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 =
|
|
29
|
+
const t = u.useRef(e);
|
|
30
30
|
return Ge(() => {
|
|
31
31
|
t.current = e;
|
|
32
|
-
}),
|
|
32
|
+
}), u.useRef((...n) => (
|
|
33
33
|
// @ts-expect-error hide `this`
|
|
34
34
|
(0, t.current)(...n)
|
|
35
35
|
)).current;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const t =
|
|
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
|
|
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
|
|
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 =
|
|
84
|
-
function
|
|
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" &&
|
|
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
|
|
94
|
-
function
|
|
95
|
-
const n =
|
|
96
|
-
return n.current ===
|
|
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
|
-
|
|
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 =
|
|
117
|
-
return t.shouldMount = n, t.setShouldMount = o,
|
|
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
|
|
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 &&
|
|
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
|
|
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
|
|
206
|
-
l[o[p][a]] = n(
|
|
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
|
|
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
|
|
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:
|
|
223
|
-
enter:
|
|
224
|
-
exit:
|
|
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
|
|
229
|
-
var 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,
|
|
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:
|
|
238
|
-
enter:
|
|
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(
|
|
241
|
+
}) : p && l && Q(d) && (s[i] = ee(a, {
|
|
242
242
|
onExited: n.bind(null, a),
|
|
243
|
-
in:
|
|
244
|
-
exit:
|
|
245
|
-
enter:
|
|
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
|
-
},
|
|
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) :
|
|
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 =
|
|
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,
|
|
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
|
-
},
|
|
300
|
+
}, d) : /* @__PURE__ */ H.createElement(ve.Provider, {
|
|
301
301
|
value: p
|
|
302
|
-
}, /* @__PURE__ */ H.createElement(i, l,
|
|
302
|
+
}, /* @__PURE__ */ H.createElement(i, l, d));
|
|
303
303
|
}, t;
|
|
304
|
-
}(H.Component);
|
|
305
|
-
|
|
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
|
-
|
|
358
|
+
he.defaultProps = ft;
|
|
359
359
|
const dt = [];
|
|
360
360
|
function ht(e) {
|
|
361
|
-
|
|
361
|
+
u.useEffect(e, dt);
|
|
362
362
|
}
|
|
363
|
-
class
|
|
363
|
+
class me {
|
|
364
364
|
constructor() {
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
q(this, "currentId", null);
|
|
366
|
+
q(this, "clear", () => {
|
|
367
367
|
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
368
368
|
});
|
|
369
|
-
|
|
369
|
+
q(this, "disposeEffect", () => this.clear);
|
|
370
370
|
}
|
|
371
371
|
static create() {
|
|
372
|
-
return new
|
|
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 =
|
|
384
|
+
const e = Se(me.create).current;
|
|
385
385
|
return ht(e.disposeEffect), e;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
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:
|
|
398
|
-
} = e, [h, 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),
|
|
404
|
+
return !l && !h && m(!0), u.useEffect(() => {
|
|
405
405
|
if (!l && p != null) {
|
|
406
|
-
const
|
|
406
|
+
const R = setTimeout(p, d);
|
|
407
407
|
return () => {
|
|
408
|
-
clearTimeout(
|
|
408
|
+
clearTimeout(R);
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
}, [p, l,
|
|
411
|
+
}, [p, l, d]), /* @__PURE__ */ N("span", {
|
|
412
412
|
className: y,
|
|
413
|
-
style:
|
|
414
|
-
children: /* @__PURE__ */
|
|
413
|
+
style: k,
|
|
414
|
+
children: /* @__PURE__ */ N("span", {
|
|
415
415
|
className: b
|
|
416
416
|
})
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
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 =
|
|
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
|
-
}),
|
|
497
|
+
}), Tt = _(we, {
|
|
498
498
|
name: "MuiTouchRipple",
|
|
499
499
|
slot: "Ripple"
|
|
500
500
|
})`
|
|
501
501
|
opacity: 0;
|
|
502
502
|
position: absolute;
|
|
503
503
|
|
|
504
|
-
&.${
|
|
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
|
-
&.${
|
|
514
|
+
&.${T.ripplePulsate} {
|
|
515
515
|
animation-duration: ${({
|
|
516
516
|
theme: e
|
|
517
517
|
}) => e.transitions.duration.shorter}ms;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
& .${
|
|
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
|
-
& .${
|
|
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
|
-
& .${
|
|
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
|
-
`,
|
|
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,
|
|
561
|
-
|
|
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 =
|
|
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:
|
|
567
|
-
rippleX:
|
|
568
|
-
rippleY:
|
|
569
|
-
rippleSize:
|
|
570
|
-
cb:
|
|
571
|
-
} =
|
|
572
|
-
|
|
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,
|
|
575
|
-
rippleVisible: E(i.rippleVisible,
|
|
576
|
-
ripplePulsate: E(i.ripplePulsate,
|
|
577
|
-
child: E(i.child,
|
|
578
|
-
childLeaving: E(i.childLeaving,
|
|
579
|
-
childPulsate: E(i.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:
|
|
583
|
-
rippleX:
|
|
584
|
-
rippleY:
|
|
585
|
-
rippleSize:
|
|
586
|
-
}, h.current)]), h.current += 1, m.current =
|
|
587
|
-
}, [i]),
|
|
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:
|
|
591
|
-
center:
|
|
592
|
-
fakeElement:
|
|
590
|
+
pulsate: z = !1,
|
|
591
|
+
center: B = s || P.pulsate,
|
|
592
|
+
fakeElement: Y = !1
|
|
593
593
|
// For test purposes
|
|
594
|
-
} =
|
|
595
|
-
if ((
|
|
594
|
+
} = P;
|
|
595
|
+
if ((f == null ? void 0 : f.type) === "mousedown" && y.current) {
|
|
596
596
|
y.current = !1;
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
(
|
|
600
|
-
const
|
|
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
|
|
607
|
-
if (
|
|
608
|
-
|
|
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:
|
|
612
|
-
clientY:
|
|
613
|
-
} =
|
|
614
|
-
|
|
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 (
|
|
617
|
-
|
|
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
|
|
620
|
-
|
|
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
|
-
|
|
623
|
-
|
|
624
|
-
pulsate:
|
|
625
|
-
rippleX:
|
|
626
|
-
rippleY:
|
|
627
|
-
rippleSize:
|
|
628
|
-
cb:
|
|
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
|
-
},
|
|
630
|
+
}, k.start(bt, () => {
|
|
631
631
|
b.current && (b.current(), b.current = null);
|
|
632
|
-
})) :
|
|
633
|
-
pulsate:
|
|
634
|
-
rippleX:
|
|
635
|
-
rippleY:
|
|
636
|
-
rippleSize:
|
|
637
|
-
cb:
|
|
632
|
+
})) : M({
|
|
633
|
+
pulsate: z,
|
|
634
|
+
rippleX: $,
|
|
635
|
+
rippleY: D,
|
|
636
|
+
rippleSize: V,
|
|
637
|
+
cb: v
|
|
638
638
|
});
|
|
639
|
-
}, [s,
|
|
640
|
-
|
|
639
|
+
}, [s, M, k]), j = u.useCallback(() => {
|
|
640
|
+
S({}, {
|
|
641
641
|
pulsate: !0
|
|
642
642
|
});
|
|
643
|
-
}, [
|
|
644
|
-
if (
|
|
645
|
-
b.current(), b.current = null,
|
|
646
|
-
|
|
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,
|
|
651
|
-
}, [
|
|
652
|
-
return
|
|
653
|
-
pulsate:
|
|
654
|
-
start:
|
|
655
|
-
stop:
|
|
656
|
-
}), [
|
|
657
|
-
className: E(
|
|
658
|
-
ref:
|
|
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__ */
|
|
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" && (
|
|
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
|
|
683
|
-
return
|
|
682
|
+
function vt(e) {
|
|
683
|
+
return Ce("MuiButtonBase", e);
|
|
684
684
|
}
|
|
685
|
-
const Ct =
|
|
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 =
|
|
691
|
+
} = e, a = Ee({
|
|
692
692
|
root: ["root", t && "disabled", n && "focusVisible"]
|
|
693
|
-
},
|
|
693
|
+
}, vt, s);
|
|
694
694
|
return n && o && (a.root += ` ${o}`), a;
|
|
695
|
-
},
|
|
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__ */
|
|
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:
|
|
747
|
+
disabled: d = !1,
|
|
748
748
|
disableRipple: h = !1,
|
|
749
749
|
disableTouchRipple: m = !1,
|
|
750
750
|
focusRipple: y = !1,
|
|
751
|
-
focusVisibleClassName:
|
|
751
|
+
focusVisibleClassName: k,
|
|
752
752
|
LinkComponent: b = "a",
|
|
753
|
-
onBlur:
|
|
754
|
-
onClick:
|
|
755
|
-
onContextMenu:
|
|
756
|
-
onDragLeave:
|
|
757
|
-
onFocus:
|
|
758
|
-
onFocusVisible:
|
|
759
|
-
onKeyDown:
|
|
760
|
-
onKeyUp:
|
|
761
|
-
onMouseDown:
|
|
762
|
-
onMouseLeave:
|
|
763
|
-
onMouseUp:
|
|
764
|
-
onTouchEnd:
|
|
765
|
-
onTouchMove:
|
|
766
|
-
onTouchStart:
|
|
767
|
-
tabIndex:
|
|
768
|
-
TouchRippleProps:
|
|
769
|
-
touchRippleRef:
|
|
770
|
-
type:
|
|
771
|
-
...
|
|
772
|
-
} = o, X =
|
|
773
|
-
|
|
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 && !
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
}, [h, y,
|
|
782
|
-
const
|
|
783
|
-
|
|
784
|
-
}, m),
|
|
785
|
-
|
|
786
|
-
}, !1),
|
|
787
|
-
X.current || (X.current =
|
|
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
|
|
790
|
-
return p && p !== "button" && !(
|
|
791
|
-
},
|
|
792
|
-
y && !
|
|
793
|
-
g.start(
|
|
794
|
-
}),
|
|
795
|
-
}),
|
|
796
|
-
y &&
|
|
797
|
-
g.pulsate(
|
|
798
|
-
}),
|
|
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" && (
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
|
|
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:
|
|
812
|
+
disabled: d,
|
|
809
813
|
disableRipple: h,
|
|
810
814
|
disableTouchRipple: m,
|
|
811
815
|
focusRipple: y,
|
|
812
|
-
tabIndex:
|
|
813
|
-
focusVisible:
|
|
814
|
-
},
|
|
815
|
-
return /* @__PURE__ */
|
|
816
|
+
tabIndex: D,
|
|
817
|
+
focusVisible: F
|
|
818
|
+
}, Xe = Et(be);
|
|
819
|
+
return /* @__PURE__ */ ke(kt, {
|
|
816
820
|
as: J,
|
|
817
|
-
className: E(
|
|
818
|
-
ownerState:
|
|
819
|
-
onBlur:
|
|
820
|
-
onClick:
|
|
821
|
-
onContextMenu:
|
|
822
|
-
onFocus:
|
|
823
|
-
onKeyDown:
|
|
824
|
-
onKeyUp:
|
|
825
|
-
onMouseDown:
|
|
826
|
-
onMouseLeave:
|
|
827
|
-
onMouseUp:
|
|
828
|
-
onDragLeave:
|
|
829
|
-
onTouchEnd:
|
|
830
|
-
onTouchMove:
|
|
831
|
-
onTouchStart:
|
|
832
|
-
ref:
|
|
833
|
-
tabIndex:
|
|
834
|
-
type:
|
|
835
|
-
...
|
|
836
|
-
...
|
|
837
|
-
children: [a, Ne ? /* @__PURE__ */
|
|
838
|
-
ref:
|
|
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
|
-
...
|
|
844
|
+
...V
|
|
841
845
|
}) : null]
|
|
842
846
|
});
|
|
843
847
|
});
|
|
844
|
-
function
|
|
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
|
|
1013
|
+
function xt(e) {
|
|
1006
1014
|
return typeof e.main == "string";
|
|
1007
1015
|
}
|
|
1008
1016
|
function St(e, t = []) {
|
|
1009
|
-
if (!
|
|
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
|
|
1024
|
+
function wt(e = []) {
|
|
1017
1025
|
return ([, t]) => t && St(t, e);
|
|
1018
1026
|
}
|
|
1019
1027
|
function Dt(e) {
|
|
1020
|
-
return
|
|
1028
|
+
return Ce("MuiCircularProgress", e);
|
|
1021
1029
|
}
|
|
1022
|
-
|
|
1023
|
-
const
|
|
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
|
-
`,
|
|
1047
|
-
animation: ${
|
|
1048
|
-
` : null,
|
|
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
|
|
1062
|
-
}, $t =
|
|
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
|
-
})(
|
|
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:
|
|
1087
|
-
animation: `${
|
|
1095
|
+
style: Ot || {
|
|
1096
|
+
animation: `${ce} 1.4s linear infinite`
|
|
1088
1097
|
}
|
|
1089
|
-
}, ...Object.entries(e.palette).filter(
|
|
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 =
|
|
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 =
|
|
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
|
-
})(
|
|
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:
|
|
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 =
|
|
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
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
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:
|
|
1161
|
-
thickness:
|
|
1162
|
-
value:
|
|
1163
|
-
variant:
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
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__ */
|
|
1170
|
-
className: E(
|
|
1188
|
+
return /* @__PURE__ */ N($t, {
|
|
1189
|
+
className: E(R.root, s),
|
|
1171
1190
|
style: {
|
|
1172
|
-
width:
|
|
1173
|
-
height:
|
|
1174
|
-
...
|
|
1175
|
-
...
|
|
1191
|
+
width: p,
|
|
1192
|
+
height: p,
|
|
1193
|
+
...S,
|
|
1194
|
+
...d
|
|
1176
1195
|
},
|
|
1177
|
-
ownerState:
|
|
1196
|
+
ownerState: b,
|
|
1178
1197
|
ref: n,
|
|
1179
1198
|
role: "progressbar",
|
|
1180
|
-
...
|
|
1181
|
-
...
|
|
1182
|
-
children: /* @__PURE__ */
|
|
1183
|
-
className:
|
|
1184
|
-
ownerState:
|
|
1185
|
-
viewBox: `${
|
|
1186
|
-
children: /* @__PURE__ */
|
|
1187
|
-
className:
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
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:
|
|
1195
|
-
})
|
|
1222
|
+
strokeWidth: h
|
|
1223
|
+
})]
|
|
1196
1224
|
})
|
|
1197
1225
|
});
|
|
1198
1226
|
});
|
|
1199
|
-
process.env.NODE_ENV !== "production" && (
|
|
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:
|
|
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
|
-
|
|
1294
|
+
Lt as C,
|
|
1261
1295
|
ve as T,
|
|
1262
1296
|
st as _,
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
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
|
-
|
|
1272
|
-
|
|
1305
|
+
Se as i,
|
|
1306
|
+
ht as j,
|
|
1307
|
+
ie as k,
|
|
1273
1308
|
Qe as r,
|
|
1274
|
-
|
|
1309
|
+
Kt as u
|
|
1275
1310
|
};
|