@astrato-io/visualizations 0.8.0 → 0.10.0
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/README.md +9 -5
- package/THIRD_PARTY_NOTICES.md +403 -325
- package/VISUALIZATION_DEFINITIONS.md +319 -32
- package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
- package/chunks/CircularProgress-yupH6YWs.js +765 -0
- package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
- package/chunks/LinearProgress-CyFjN4px.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
- package/chunks/Title-C-p4ZarD.js +1804 -0
- package/chunks/_createAggregator-BF4qG9XK.js +50 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
- package/chunks/bar-layout-DStC-GNV.js +9 -0
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
- package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
- package/chunks/defaults-cyNhn37t.js +3 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
- package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
- package/chunks/handlers-ZviIUC-j.js +15387 -0
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
- package/chunks/isEqual-Ch9OEye3.js +16 -0
- package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
- package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
- package/chunks/map.compiler-CKzorLgK.js +345 -0
- package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
- package/chunks/operations-DZoY50VX.js +31297 -0
- package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
- package/chunks/react-dom-Dgv2azN2.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/shared-UitWpq1J.js +1331 -0
- package/chunks/standalone-B0U6c3su.js +3638 -0
- package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
- package/chunks/standalone-BEekPuA12.js +357 -0
- package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
- package/chunks/standalone-BR2JuRIC.js +422 -0
- package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
- package/chunks/standalone-Bnnr87pc.js +2009 -0
- package/chunks/standalone-BwJqDj2Z.js +396 -0
- package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
- package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
- package/chunks/standalone-CRfDOO1x.js +287 -0
- package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
- package/chunks/standalone-CbPk8bKn.js +580 -0
- package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
- package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
- package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
- package/chunks/standalone-DhfgeJIk.js +1012 -0
- package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
- package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
- package/chunks/standalone-DxBAyqAu.js +772 -0
- package/chunks/standalone-KMQPsNsq.js +2 -0
- package/chunks/standalone-MBLSvsrY.js +2 -0
- package/chunks/standalone-U0WJwFlG.js +354 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
- package/chunks/standalone-wgFAVnnm.js +355 -0
- package/chunks/standalone-xGV0dqPV.js +689 -0
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-B8iCYyw1.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
- package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
- package/chunks/with-html-element-DOfkR3C1.js +16094 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +303 -2
- package/docs/operations/combo.md +262 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +148 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +262 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +8 -8
- package/docs/operations/line.md +262 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +148 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +439 -157
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +523 -469
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +74 -68
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/available-fields.d.ts +2 -2
- package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +535 -349
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +45 -41
- package/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/handlers-TOT-7INo.js +0 -12871
- package/chunks/isEqual-B8loyPsC.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-Dh4v1Ovt.js +0 -26280
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/shared-Bn4N5QcZ.js +0 -1218
- package/chunks/standalone-B55oyW6c.js +0 -689
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-Bes8srx1.js +0 -354
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-BlMIwpEe.js +0 -1877
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-CLmGb7nn2.js +0 -355
- package/chunks/standalone-CXNP6-xD.js +0 -420
- package/chunks/standalone-DLlyRIE6.js +0 -287
- package/chunks/standalone-DMcI1afI.js +0 -396
- package/chunks/standalone-DN4S1MjT.js +0 -3874
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/standalone-D__XCp-h.js +0 -1003
- package/chunks/standalone-XTgSsTAa.js +0 -354
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { Dt as t, Et as n, G as r, X as i, ci as a, it as o, zr as s } from "./utils-3Igg6xmO.js";
|
|
3
|
+
import { _ as c, a as l, c as u, d, l as f, m as p, n as m, u as h, v as g } from "./react-dom-Dgv2azN2.js";
|
|
4
|
+
import { t as _ } from "./isFocusVisible-CgMP0qkR.js";
|
|
5
|
+
import { d as v, f as y, h as b, m as x, u as S, y as C } from "./Title-C-p4ZarD.js";
|
|
6
|
+
import { p as w } from "./responsive.styles-FItb913l.js";
|
|
7
|
+
var T = /* @__PURE__ */ e(a(), 1);
|
|
8
|
+
function E(e) {
|
|
9
|
+
let { focusableWhenDisabled: t, disabled: n, composite: r = !1, tabIndex: i = 0, isNativeButton: a } = e, o = r && t !== !1, s = r && t === !1;
|
|
10
|
+
return T.useMemo(() => {
|
|
11
|
+
let e = { onKeyDown(e) {
|
|
12
|
+
n && t && e.key !== "Tab" && e.preventDefault();
|
|
13
|
+
} };
|
|
14
|
+
return r || (e.tabIndex = i, !a && n && (e.tabIndex = t ? i : -1)), (a && (t || o) || !a && n) && (e["aria-disabled"] = n), a && (!t || s) && (e.disabled = n), e;
|
|
15
|
+
}, [
|
|
16
|
+
r,
|
|
17
|
+
n,
|
|
18
|
+
t,
|
|
19
|
+
o,
|
|
20
|
+
s,
|
|
21
|
+
a,
|
|
22
|
+
i
|
|
23
|
+
]);
|
|
24
|
+
}
|
|
25
|
+
var D = {};
|
|
26
|
+
function O(e) {
|
|
27
|
+
let { nativeButton: t, nativeButtonProp: n, internalNativeButton: r = t, allowInferredHostMismatch: i = !1, disabled: a, type: o, hasFormAction: s = !1, tabIndex: c = 0, focusableWhenDisabled: l, stopEventPropagation: u = !1, onBeforeKeyDown: d, onBeforeKeyUp: f } = e, p = T.useRef(null), m = l === !0, h = E({
|
|
28
|
+
focusableWhenDisabled: m,
|
|
29
|
+
disabled: a,
|
|
30
|
+
isNativeButton: t,
|
|
31
|
+
tabIndex: c
|
|
32
|
+
}), g = T.useCallback(() => {
|
|
33
|
+
let e = p.current;
|
|
34
|
+
return e == null ? t : e.tagName === "BUTTON" || !!(e.tagName === "A" && e.href);
|
|
35
|
+
}, [t]), _ = T.useMemo(() => {
|
|
36
|
+
let e = m ? {} : { tabIndex: a ? -1 : c };
|
|
37
|
+
return t ? (e.type = o === void 0 && !s ? "button" : o, m || (e.disabled = a)) : (e.role = "button", !m && a && (e["aria-disabled"] = a)), m ? {
|
|
38
|
+
...e,
|
|
39
|
+
...h
|
|
40
|
+
} : e;
|
|
41
|
+
}, [
|
|
42
|
+
a,
|
|
43
|
+
m,
|
|
44
|
+
h,
|
|
45
|
+
s,
|
|
46
|
+
t,
|
|
47
|
+
c,
|
|
48
|
+
o
|
|
49
|
+
]);
|
|
50
|
+
return {
|
|
51
|
+
getButtonProps: T.useCallback((e = D) => {
|
|
52
|
+
let { onClick: t, onKeyDown: n, onKeyUp: r, ...i } = e, o = (e) => {
|
|
53
|
+
if (u && e.stopPropagation(), a) {
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
t?.(e);
|
|
58
|
+
}, s = (e) => {
|
|
59
|
+
if (m && h.onKeyDown(e), !a && (d?.(e), n?.(e), !(e.target !== e.currentTarget || g()))) {
|
|
60
|
+
if (e.key === " ") {
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
e.key === "Enter" && (e.preventDefault(), e.currentTarget.click());
|
|
65
|
+
}
|
|
66
|
+
}, c = (e) => {
|
|
67
|
+
a || (f?.(e), r?.(e), e.target === e.currentTarget && !g() && e.key === " " && !e.defaultPrevented && e.currentTarget.click());
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
..._,
|
|
71
|
+
...i,
|
|
72
|
+
onClick: o,
|
|
73
|
+
onKeyDown: s,
|
|
74
|
+
onKeyUp: c
|
|
75
|
+
};
|
|
76
|
+
}, [
|
|
77
|
+
_,
|
|
78
|
+
a,
|
|
79
|
+
m,
|
|
80
|
+
h,
|
|
81
|
+
g,
|
|
82
|
+
d,
|
|
83
|
+
f,
|
|
84
|
+
u
|
|
85
|
+
]),
|
|
86
|
+
rootRef: p
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
var k = class e {
|
|
90
|
+
ref = { current: null };
|
|
91
|
+
shouldMount = !1;
|
|
92
|
+
mounted = null;
|
|
93
|
+
didMount = !1;
|
|
94
|
+
setShouldMount = null;
|
|
95
|
+
static create() {
|
|
96
|
+
return new e();
|
|
97
|
+
}
|
|
98
|
+
static use() {
|
|
99
|
+
let t = x(e.create).current, [n, r] = T.useState(!1);
|
|
100
|
+
return t.shouldMount = n, t.setShouldMount = r, T.useEffect(t.mountEffect, [n]), t;
|
|
101
|
+
}
|
|
102
|
+
mount() {
|
|
103
|
+
return this.mounted || (this.mounted = j(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
104
|
+
}
|
|
105
|
+
mountEffect = () => {
|
|
106
|
+
this.shouldMount && !this.didMount && (this.ref.current !== null && (this.didMount = !0), this.mounted.resolve());
|
|
107
|
+
};
|
|
108
|
+
start(...e) {
|
|
109
|
+
this.mount().then(() => this.ref.current?.start(...e));
|
|
110
|
+
}
|
|
111
|
+
stop(...e) {
|
|
112
|
+
this.mount().then(() => this.ref.current?.stop(...e));
|
|
113
|
+
}
|
|
114
|
+
pulsate(...e) {
|
|
115
|
+
this.mount().then(() => this.ref.current?.pulsate(...e));
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
function A() {
|
|
119
|
+
return k.use();
|
|
120
|
+
}
|
|
121
|
+
function j() {
|
|
122
|
+
let e, t, n = new Promise((n, r) => {
|
|
123
|
+
e = n, t = r;
|
|
124
|
+
});
|
|
125
|
+
return n.resolve = e, n.reject = t, n;
|
|
126
|
+
}
|
|
127
|
+
var M = s();
|
|
128
|
+
function N(e) {
|
|
129
|
+
let { className: t, classes: n, pulsate: r = !1, rippleX: i, rippleY: a, rippleSize: s, in: c, onExited: l, timeout: u } = e, [d, f] = T.useState(!1), p = S(), m = T.useRef(!1), h = T.useRef(l);
|
|
130
|
+
h.current = l;
|
|
131
|
+
let g = l != null, _ = o(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), v = {
|
|
132
|
+
width: s,
|
|
133
|
+
height: s,
|
|
134
|
+
top: -(s / 2) + a,
|
|
135
|
+
left: -(s / 2) + i
|
|
136
|
+
}, y = o(n.child, d && n.childLeaving, r && n.childPulsate);
|
|
137
|
+
return !c && !d && f(!0), T.useEffect(() => {
|
|
138
|
+
!c && g ? m.current || (m.current = !0, p.start(u, () => {
|
|
139
|
+
m.current = !1, h.current?.();
|
|
140
|
+
})) : (m.current = !1, p.clear());
|
|
141
|
+
}, [
|
|
142
|
+
p,
|
|
143
|
+
g,
|
|
144
|
+
c,
|
|
145
|
+
u
|
|
146
|
+
]), /*#__PURE__*/ (0, M.jsx)("span", {
|
|
147
|
+
className: _,
|
|
148
|
+
style: v,
|
|
149
|
+
children: /*#__PURE__*/ (0, M.jsx)("span", { className: y })
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
var P = c("MuiTouchRipple", [
|
|
153
|
+
"root",
|
|
154
|
+
"ripple",
|
|
155
|
+
"rippleVisible",
|
|
156
|
+
"ripplePulsate",
|
|
157
|
+
"child",
|
|
158
|
+
"childLeaving",
|
|
159
|
+
"childPulsate"
|
|
160
|
+
]), F = 550, I = {}, L = [], ee = () => {};
|
|
161
|
+
function R(e, t) {
|
|
162
|
+
let n = new Set(t), r = /* @__PURE__ */ new Map(), i = [];
|
|
163
|
+
for (let t of e) n.has(t) ? i.length > 0 && (r.set(t, i), i = []) : i.push(t);
|
|
164
|
+
let a = [];
|
|
165
|
+
for (let e of t) {
|
|
166
|
+
let t = r.get(e);
|
|
167
|
+
t && a.push(...t), a.push(e);
|
|
168
|
+
}
|
|
169
|
+
return a.push(...i), a;
|
|
170
|
+
}
|
|
171
|
+
function te({ event: e, element: t, center: n }) {
|
|
172
|
+
let r = t ? t.getBoundingClientRect() : {
|
|
173
|
+
width: 0,
|
|
174
|
+
height: 0,
|
|
175
|
+
left: 0,
|
|
176
|
+
top: 0
|
|
177
|
+
}, i, a;
|
|
178
|
+
if (n || e === void 0 || e.clientX === 0 && e.clientY === 0 || !e.clientX && !e.touches) i = Math.round(r.width / 2), a = Math.round(r.height / 2);
|
|
179
|
+
else {
|
|
180
|
+
let { clientX: t, clientY: n } = e.touches && e.touches.length > 0 ? e.touches[0] : e;
|
|
181
|
+
i = Math.round(t - r.left), a = Math.round(n - r.top);
|
|
182
|
+
}
|
|
183
|
+
let o;
|
|
184
|
+
if (n) o = Math.sqrt((2 * r.width ** 2 + r.height ** 2) / 3), o % 2 == 0 && (o += 1);
|
|
185
|
+
else {
|
|
186
|
+
let e = Math.max(Math.abs((t ? t.clientWidth : 0) - i), i) * 2 + 2, n = Math.max(Math.abs((t ? t.clientHeight : 0) - a), a) * 2 + 2;
|
|
187
|
+
o = Math.sqrt(e ** 2 + n ** 2);
|
|
188
|
+
}
|
|
189
|
+
return {
|
|
190
|
+
rippleX: i,
|
|
191
|
+
rippleY: a,
|
|
192
|
+
rippleSize: o
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
var ne = t`
|
|
196
|
+
0% {
|
|
197
|
+
transform: scale(0);
|
|
198
|
+
opacity: 0.1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
100% {
|
|
202
|
+
transform: scale(1);
|
|
203
|
+
opacity: 0.3;
|
|
204
|
+
}
|
|
205
|
+
`, z = t`
|
|
206
|
+
0% {
|
|
207
|
+
opacity: 1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
100% {
|
|
211
|
+
opacity: 0;
|
|
212
|
+
}
|
|
213
|
+
`, re = t`
|
|
214
|
+
0% {
|
|
215
|
+
transform: scale(1);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
50% {
|
|
219
|
+
transform: scale(0.92);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
100% {
|
|
223
|
+
transform: scale(1);
|
|
224
|
+
}
|
|
225
|
+
`;
|
|
226
|
+
function ie(e) {
|
|
227
|
+
if (e.motion.reducedMotion === "always") return null;
|
|
228
|
+
let t = n`
|
|
229
|
+
&.${P.rippleVisible} {
|
|
230
|
+
animation-name: ${ne};
|
|
231
|
+
animation-duration: ${F}ms;
|
|
232
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.${P.ripplePulsate} {
|
|
236
|
+
animation-duration: ${e.transitions.duration.shorter}ms;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
& .${P.childLeaving} {
|
|
240
|
+
animation-name: ${z};
|
|
241
|
+
animation-duration: ${F}ms;
|
|
242
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
& .${P.childPulsate} {
|
|
246
|
+
animation-name: ${re};
|
|
247
|
+
animation-duration: 2500ms;
|
|
248
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
249
|
+
animation-iteration-count: infinite;
|
|
250
|
+
animation-delay: 200ms;
|
|
251
|
+
}
|
|
252
|
+
`;
|
|
253
|
+
return e.motion.reducedMotion === "system" ? n`
|
|
254
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
255
|
+
${t}
|
|
256
|
+
}
|
|
257
|
+
` : t;
|
|
258
|
+
}
|
|
259
|
+
var B = d("span", {
|
|
260
|
+
name: "MuiTouchRipple",
|
|
261
|
+
slot: "Root"
|
|
262
|
+
})({
|
|
263
|
+
overflow: "hidden",
|
|
264
|
+
pointerEvents: "none",
|
|
265
|
+
position: "absolute",
|
|
266
|
+
zIndex: 0,
|
|
267
|
+
top: 0,
|
|
268
|
+
right: 0,
|
|
269
|
+
bottom: 0,
|
|
270
|
+
left: 0,
|
|
271
|
+
borderRadius: "inherit"
|
|
272
|
+
}), V = d(N, {
|
|
273
|
+
name: "MuiTouchRipple",
|
|
274
|
+
slot: "Ripple"
|
|
275
|
+
})`
|
|
276
|
+
opacity: 0;
|
|
277
|
+
position: absolute;
|
|
278
|
+
|
|
279
|
+
&.${P.rippleVisible} {
|
|
280
|
+
opacity: 0.3;
|
|
281
|
+
transform: scale(1);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/*
|
|
285
|
+
* Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
|
|
286
|
+
* element with equal specificity, so the later rule wins. 'child' must come
|
|
287
|
+
* before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
|
|
288
|
+
* (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
|
|
289
|
+
* it relies on this static 'opacity: 0' to disappear on blur instead of
|
|
290
|
+
* lingering until removal.
|
|
291
|
+
*/
|
|
292
|
+
& .${P.child} {
|
|
293
|
+
opacity: 1;
|
|
294
|
+
display: block;
|
|
295
|
+
width: 100%;
|
|
296
|
+
height: 100%;
|
|
297
|
+
border-radius: 50%;
|
|
298
|
+
background-color: currentColor;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
& .${P.childLeaving} {
|
|
302
|
+
opacity: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
& .${P.childPulsate} {
|
|
306
|
+
position: absolute;
|
|
307
|
+
/* @noflip */
|
|
308
|
+
left: 0px;
|
|
309
|
+
top: 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
${({ theme: e }) => ie(e)}
|
|
313
|
+
`, ae = /*#__PURE__*/ T.forwardRef(function(e, t) {
|
|
314
|
+
let n = f({
|
|
315
|
+
props: e,
|
|
316
|
+
name: "MuiTouchRipple"
|
|
317
|
+
}), i = y(r().motion.reducedMotion, !1), { center: a = !1, classes: s = I, className: c, ...l } = n, [u, d] = T.useState({
|
|
318
|
+
items: L,
|
|
319
|
+
order: L
|
|
320
|
+
}), p = u.items, m = T.useRef(0), h = T.useRef(null), g = T.useRef(!1);
|
|
321
|
+
v(() => (g.current = !0, () => {
|
|
322
|
+
g.current = !1;
|
|
323
|
+
})), T.useEffect(() => {
|
|
324
|
+
h.current &&= (h.current(), null);
|
|
325
|
+
}, [p]);
|
|
326
|
+
let _ = T.useRef(!1), x = S(), C = T.useRef(null), w = T.useRef(null), E = b((e) => {
|
|
327
|
+
g.current && d((t) => {
|
|
328
|
+
let n = t.items.filter((t) => t.key !== e);
|
|
329
|
+
return {
|
|
330
|
+
items: n,
|
|
331
|
+
order: R(t.order.filter((t) => t !== e), n.filter((e) => !e.exiting).map((e) => e.key))
|
|
332
|
+
};
|
|
333
|
+
});
|
|
334
|
+
}), D = b((e) => {
|
|
335
|
+
let { pulsate: t, rippleX: n, rippleY: r, rippleSize: i, cb: a } = e, o = m.current;
|
|
336
|
+
m.current += 1, d((e) => {
|
|
337
|
+
let a = [...e.items, {
|
|
338
|
+
key: o,
|
|
339
|
+
pulsate: t,
|
|
340
|
+
rippleX: n,
|
|
341
|
+
rippleY: r,
|
|
342
|
+
rippleSize: i,
|
|
343
|
+
exiting: !1
|
|
344
|
+
}];
|
|
345
|
+
return {
|
|
346
|
+
items: a,
|
|
347
|
+
order: R(e.order, a.filter((e) => !e.exiting).map((e) => e.key))
|
|
348
|
+
};
|
|
349
|
+
}), h.current = a;
|
|
350
|
+
}), O = b((e = I, t = I, n = ee) => {
|
|
351
|
+
let { pulsate: r = !1, center: i = a || t.pulsate, fakeElement: o = !1 } = t;
|
|
352
|
+
if (e?.type === "mousedown" && _.current) {
|
|
353
|
+
_.current = !1;
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
e?.type === "touchstart" && (_.current = !0);
|
|
357
|
+
let { rippleX: s, rippleY: c, rippleSize: l } = te({
|
|
358
|
+
event: e,
|
|
359
|
+
element: o ? null : w.current,
|
|
360
|
+
center: i
|
|
361
|
+
});
|
|
362
|
+
e?.touches ? C.current === null && (C.current = () => {
|
|
363
|
+
D({
|
|
364
|
+
pulsate: r,
|
|
365
|
+
rippleX: s,
|
|
366
|
+
rippleY: c,
|
|
367
|
+
rippleSize: l,
|
|
368
|
+
cb: n
|
|
369
|
+
});
|
|
370
|
+
}, x.start(80, () => {
|
|
371
|
+
C.current &&= (C.current(), null);
|
|
372
|
+
})) : D({
|
|
373
|
+
pulsate: r,
|
|
374
|
+
rippleX: s,
|
|
375
|
+
rippleY: c,
|
|
376
|
+
rippleSize: l,
|
|
377
|
+
cb: n
|
|
378
|
+
});
|
|
379
|
+
}), k = b(() => {
|
|
380
|
+
O(I, { pulsate: !0 });
|
|
381
|
+
}), A = b((e, t) => {
|
|
382
|
+
if (x.clear(), e?.type === "touchend" && C.current) {
|
|
383
|
+
C.current(), C.current = null, x.start(0, () => {
|
|
384
|
+
A(e, t);
|
|
385
|
+
});
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
C.current = null, d((e) => {
|
|
389
|
+
let t = e.items.findIndex((e) => !e.exiting);
|
|
390
|
+
if (t === -1) return e;
|
|
391
|
+
let n = e.items.slice();
|
|
392
|
+
return n[t] = {
|
|
393
|
+
...n[t],
|
|
394
|
+
exiting: !0
|
|
395
|
+
}, {
|
|
396
|
+
items: n,
|
|
397
|
+
order: R(e.order, n.filter((e) => !e.exiting).map((e) => e.key))
|
|
398
|
+
};
|
|
399
|
+
}), h.current = t;
|
|
400
|
+
});
|
|
401
|
+
T.useImperativeHandle(t, () => ({
|
|
402
|
+
pulsate: k,
|
|
403
|
+
start: O,
|
|
404
|
+
stop: A
|
|
405
|
+
}), [
|
|
406
|
+
k,
|
|
407
|
+
O,
|
|
408
|
+
A
|
|
409
|
+
]);
|
|
410
|
+
let j = new Map(p.map((e) => [e.key, e])), N = u.order.map((e) => j.get(e)).filter(Boolean);
|
|
411
|
+
return /*#__PURE__*/ (0, M.jsx)(B, {
|
|
412
|
+
className: o(P.root, s.root, c),
|
|
413
|
+
ref: w,
|
|
414
|
+
...l,
|
|
415
|
+
children: N.map((e) => /*#__PURE__*/ (0, M.jsx)(V, {
|
|
416
|
+
classes: {
|
|
417
|
+
ripple: o(s.ripple, P.ripple),
|
|
418
|
+
rippleVisible: o(s.rippleVisible, P.rippleVisible),
|
|
419
|
+
ripplePulsate: o(s.ripplePulsate, P.ripplePulsate),
|
|
420
|
+
child: o(s.child, P.child),
|
|
421
|
+
childLeaving: o(s.childLeaving, P.childLeaving),
|
|
422
|
+
childPulsate: o(s.childPulsate, P.childPulsate)
|
|
423
|
+
},
|
|
424
|
+
timeout: i.shouldReduceMotion ? 0 : F,
|
|
425
|
+
pulsate: e.pulsate,
|
|
426
|
+
rippleX: e.rippleX,
|
|
427
|
+
rippleY: e.rippleY,
|
|
428
|
+
rippleSize: e.rippleSize,
|
|
429
|
+
in: !e.exiting,
|
|
430
|
+
onExited: () => E(e.key)
|
|
431
|
+
}, e.key))
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
function H(e) {
|
|
435
|
+
return g("MuiButtonBase", e);
|
|
436
|
+
}
|
|
437
|
+
var U = c("MuiButtonBase", [
|
|
438
|
+
"root",
|
|
439
|
+
"disabled",
|
|
440
|
+
"focusVisible"
|
|
441
|
+
]), oe = (e) => {
|
|
442
|
+
let { disabled: t, focusVisible: n, focusVisibleClassName: r, suppressFocusVisible: i, classes: a } = e, o = p({ root: [
|
|
443
|
+
"root",
|
|
444
|
+
t && "disabled",
|
|
445
|
+
n && !i && "focusVisible"
|
|
446
|
+
] }, H, a);
|
|
447
|
+
return n && !i && r && (o.root += ` ${r}`), o;
|
|
448
|
+
}, se = d("button", {
|
|
449
|
+
name: "MuiButtonBase",
|
|
450
|
+
slot: "Root"
|
|
451
|
+
})(h(({ theme: e }) => ({
|
|
452
|
+
display: "inline-flex",
|
|
453
|
+
alignItems: "center",
|
|
454
|
+
justifyContent: "center",
|
|
455
|
+
position: "relative",
|
|
456
|
+
boxSizing: "border-box",
|
|
457
|
+
WebkitTapHighlightColor: "transparent",
|
|
458
|
+
backgroundColor: "transparent",
|
|
459
|
+
outline: 0,
|
|
460
|
+
border: 0,
|
|
461
|
+
margin: 0,
|
|
462
|
+
borderRadius: 0,
|
|
463
|
+
padding: 0,
|
|
464
|
+
cursor: "pointer",
|
|
465
|
+
userSelect: "none",
|
|
466
|
+
verticalAlign: "middle",
|
|
467
|
+
MozAppearance: "none",
|
|
468
|
+
WebkitAppearance: "none",
|
|
469
|
+
textDecoration: "none",
|
|
470
|
+
color: "inherit",
|
|
471
|
+
"&::-moz-focus-inner": { borderStyle: "none" },
|
|
472
|
+
[`&.${U.disabled}`]: {
|
|
473
|
+
pointerEvents: "none",
|
|
474
|
+
cursor: "default"
|
|
475
|
+
},
|
|
476
|
+
"@media print": { colorAdjust: "exact" },
|
|
477
|
+
variants: [{
|
|
478
|
+
props: { internalDisabledThemeFocusVisible: !1 },
|
|
479
|
+
style: e.focusVisible && {
|
|
480
|
+
...i,
|
|
481
|
+
[`&.${U.focusVisible}`]: e.focusVisible
|
|
482
|
+
}
|
|
483
|
+
}]
|
|
484
|
+
}))), W = /*#__PURE__*/ T.forwardRef(function(e, t) {
|
|
485
|
+
let n = f({
|
|
486
|
+
props: e,
|
|
487
|
+
name: "MuiButtonBase"
|
|
488
|
+
}), { action: r, centerRipple: i = !1, children: a, className: s, component: c = "button", disabled: l = !1, disableRipple: u = !1, disableTouchRipple: d = !1, focusRipple: p = !1, focusVisibleClassName: m, focusableWhenDisabled: h, suppressFocusVisible: g = !1, internalNativeButton: v, internalDisabledThemeFocusVisible: y = !1, LinkComponent: x = "a", nativeButton: S, onBlur: w, onClick: E, onContextMenu: D, onDragLeave: k, onFocus: j, onFocusVisible: N, onKeyDown: P, onKeyUp: F, onMouseDown: I, onMouseLeave: L, onMouseUp: ee, onTouchEnd: R, onTouchMove: te, onTouchStart: ne, tabIndex: z = 0, TouchRippleProps: re, touchRippleRef: ie, type: B, ...V } = n, H = !!(V.href || V.to), U = !!V.formAction, W = c;
|
|
489
|
+
W === "button" && H && (W = x);
|
|
490
|
+
let K = typeof W == "string" ? W === "button" : v ?? !1, q = S ?? K, J = A(), Y = C(J.ref, ie), [X, Z] = T.useState(!1);
|
|
491
|
+
(l || g) && X && Z(!1);
|
|
492
|
+
let ce = b((e) => {
|
|
493
|
+
p && !e.repeat && X && e.key === " " && J.stop(e, () => {
|
|
494
|
+
J.start(e);
|
|
495
|
+
});
|
|
496
|
+
}), le = b((e) => {
|
|
497
|
+
p && e.key === " " && X && !e.defaultPrevented && J.stop(e, () => {
|
|
498
|
+
J.pulsate(e);
|
|
499
|
+
});
|
|
500
|
+
}), { getButtonProps: ue, rootRef: Q } = O({
|
|
501
|
+
nativeButton: q,
|
|
502
|
+
nativeButtonProp: S,
|
|
503
|
+
internalNativeButton: K,
|
|
504
|
+
allowInferredHostMismatch: H || typeof W == "string",
|
|
505
|
+
disabled: l,
|
|
506
|
+
type: B,
|
|
507
|
+
hasFormAction: U,
|
|
508
|
+
tabIndex: z,
|
|
509
|
+
onBeforeKeyDown: ce,
|
|
510
|
+
onBeforeKeyUp: le
|
|
511
|
+
}), { onClick: de, onKeyDown: fe, onKeyUp: pe, ...me } = ue({
|
|
512
|
+
onClick: E,
|
|
513
|
+
onKeyDown: P,
|
|
514
|
+
onKeyUp: F
|
|
515
|
+
});
|
|
516
|
+
T.useImperativeHandle(r, () => ({ focusVisible: () => {
|
|
517
|
+
Z(!0), Q.current.focus();
|
|
518
|
+
} }), [Q]);
|
|
519
|
+
let he = J.shouldMount && !u && !l;
|
|
520
|
+
T.useEffect(() => {
|
|
521
|
+
X && p && !u && J.pulsate();
|
|
522
|
+
}, [
|
|
523
|
+
u,
|
|
524
|
+
p,
|
|
525
|
+
X,
|
|
526
|
+
J
|
|
527
|
+
]);
|
|
528
|
+
let ge = G(J, "start", I, d), _e = G(J, "stop", D, d), ve = G(J, "stop", k, d), ye = G(J, "stop", ee, d), be = G(J, "stop", (e) => {
|
|
529
|
+
X && e.preventDefault(), L && L(e);
|
|
530
|
+
}, d), xe = G(J, "start", ne, d), Se = G(J, "stop", R, d), Ce = G(J, "stop", te, d), we = G(J, "stop", (e) => {
|
|
531
|
+
_(e.target) || Z(!1), w && w(e);
|
|
532
|
+
}, !1), Te = b((e) => {
|
|
533
|
+
Q.current ||= e.currentTarget, !g && _(e.target) && (Z(!0), N && N(e)), j && j(e);
|
|
534
|
+
}), $ = {};
|
|
535
|
+
H && ($.tabIndex = l ? -1 : z, l && ($["aria-disabled"] = l), $.type = B);
|
|
536
|
+
let Ee = C(t, Q), De = {
|
|
537
|
+
...n,
|
|
538
|
+
centerRipple: i,
|
|
539
|
+
component: c,
|
|
540
|
+
disabled: l,
|
|
541
|
+
disableRipple: u,
|
|
542
|
+
disableTouchRipple: d,
|
|
543
|
+
focusRipple: p,
|
|
544
|
+
suppressFocusVisible: g,
|
|
545
|
+
tabIndex: z,
|
|
546
|
+
focusVisible: X,
|
|
547
|
+
internalDisabledThemeFocusVisible: y
|
|
548
|
+
}, Oe = oe(De);
|
|
549
|
+
return /*#__PURE__*/ (0, M.jsxs)(se, {
|
|
550
|
+
as: W,
|
|
551
|
+
className: o(Oe.root, s),
|
|
552
|
+
ownerState: De,
|
|
553
|
+
onBlur: we,
|
|
554
|
+
onClick: de,
|
|
555
|
+
onContextMenu: _e,
|
|
556
|
+
onFocus: Te,
|
|
557
|
+
onKeyDown: fe,
|
|
558
|
+
onKeyUp: pe,
|
|
559
|
+
onMouseDown: ge,
|
|
560
|
+
onMouseLeave: be,
|
|
561
|
+
onMouseUp: ye,
|
|
562
|
+
onDragLeave: ve,
|
|
563
|
+
onTouchEnd: Se,
|
|
564
|
+
onTouchMove: Ce,
|
|
565
|
+
onTouchStart: xe,
|
|
566
|
+
ref: Ee,
|
|
567
|
+
...H ? $ : me,
|
|
568
|
+
...V,
|
|
569
|
+
children: [a, he ? /*#__PURE__*/ (0, M.jsx)(ae, {
|
|
570
|
+
ref: Y,
|
|
571
|
+
center: i,
|
|
572
|
+
...re
|
|
573
|
+
}) : null]
|
|
574
|
+
});
|
|
575
|
+
});
|
|
576
|
+
function G(e, t, n, r = !1) {
|
|
577
|
+
return b((i) => (n && n(i), r || e[t](i), !0));
|
|
578
|
+
}
|
|
579
|
+
function K(e) {
|
|
580
|
+
return g("MuiCircularProgress", e);
|
|
581
|
+
}
|
|
582
|
+
c("MuiCircularProgress", [
|
|
583
|
+
"root",
|
|
584
|
+
"determinate",
|
|
585
|
+
"indeterminate",
|
|
586
|
+
"colorPrimary",
|
|
587
|
+
"colorSecondary",
|
|
588
|
+
"svg",
|
|
589
|
+
"track",
|
|
590
|
+
"circle",
|
|
591
|
+
"circleDisableShrink"
|
|
592
|
+
]);
|
|
593
|
+
var q = 44, J = t`
|
|
594
|
+
0% {
|
|
595
|
+
transform: rotate(0deg);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
100% {
|
|
599
|
+
transform: rotate(360deg);
|
|
600
|
+
}
|
|
601
|
+
`, Y = t`
|
|
602
|
+
0% {
|
|
603
|
+
stroke-dasharray: 1px, 200px;
|
|
604
|
+
stroke-dashoffset: 0;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
50% {
|
|
608
|
+
stroke-dasharray: 100px, 200px;
|
|
609
|
+
stroke-dashoffset: -15px;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
100% {
|
|
613
|
+
stroke-dasharray: 1px, 200px;
|
|
614
|
+
stroke-dashoffset: -126px;
|
|
615
|
+
}
|
|
616
|
+
`, X = typeof J == "string" ? null : n`
|
|
617
|
+
animation: ${J} 1.4s linear infinite;
|
|
618
|
+
`, Z = typeof Y == "string" ? null : n`
|
|
619
|
+
animation: ${Y} 1.4s ease-in-out infinite;
|
|
620
|
+
`, ce = (e) => {
|
|
621
|
+
let { classes: t, variant: n, color: r, disableShrink: i } = e;
|
|
622
|
+
return p({
|
|
623
|
+
root: [
|
|
624
|
+
"root",
|
|
625
|
+
n,
|
|
626
|
+
`color${u(r)}`
|
|
627
|
+
],
|
|
628
|
+
svg: ["svg"],
|
|
629
|
+
track: ["track"],
|
|
630
|
+
circle: ["circle", i && "circleDisableShrink"]
|
|
631
|
+
}, K, t);
|
|
632
|
+
}, le = d("span", {
|
|
633
|
+
name: "MuiCircularProgress",
|
|
634
|
+
slot: "Root",
|
|
635
|
+
overridesResolver: (e, t) => {
|
|
636
|
+
let { ownerState: n } = e;
|
|
637
|
+
return [
|
|
638
|
+
t.root,
|
|
639
|
+
t[n.variant],
|
|
640
|
+
t[`color${u(n.color)}`]
|
|
641
|
+
];
|
|
642
|
+
}
|
|
643
|
+
})(h(({ theme: e }) => {
|
|
644
|
+
let t = m(e, { animation: "none" });
|
|
645
|
+
return {
|
|
646
|
+
display: "inline-block",
|
|
647
|
+
variants: [
|
|
648
|
+
{
|
|
649
|
+
props: { variant: "determinate" },
|
|
650
|
+
style: { ...l(e, "transform") }
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
props: { variant: "indeterminate" },
|
|
654
|
+
style: X || { animation: `${J} 1.4s linear infinite` }
|
|
655
|
+
},
|
|
656
|
+
...t ? [{
|
|
657
|
+
props: { variant: "indeterminate" },
|
|
658
|
+
style: t
|
|
659
|
+
}] : [],
|
|
660
|
+
...Object.entries(e.palette).filter(w()).map(([t]) => ({
|
|
661
|
+
props: { color: t },
|
|
662
|
+
style: { color: (e.vars || e).palette[t].main }
|
|
663
|
+
}))
|
|
664
|
+
]
|
|
665
|
+
};
|
|
666
|
+
})), ue = d("svg", {
|
|
667
|
+
name: "MuiCircularProgress",
|
|
668
|
+
slot: "Svg"
|
|
669
|
+
})({ display: "block" }), Q = d("circle", {
|
|
670
|
+
name: "MuiCircularProgress",
|
|
671
|
+
slot: "Circle",
|
|
672
|
+
overridesResolver: (e, t) => {
|
|
673
|
+
let { ownerState: n } = e;
|
|
674
|
+
return [t.circle, n.disableShrink && t.circleDisableShrink];
|
|
675
|
+
}
|
|
676
|
+
})(h(({ theme: e }) => {
|
|
677
|
+
let t = m(e, { animation: "none" });
|
|
678
|
+
return {
|
|
679
|
+
stroke: "currentColor",
|
|
680
|
+
variants: [
|
|
681
|
+
{
|
|
682
|
+
props: { variant: "determinate" },
|
|
683
|
+
style: { ...l(e, "stroke-dashoffset") }
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
props: { variant: "indeterminate" },
|
|
687
|
+
style: {
|
|
688
|
+
strokeDasharray: "80px, 200px",
|
|
689
|
+
strokeDashoffset: 0
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
props: ({ ownerState: e }) => e.variant === "indeterminate" && !e.disableShrink,
|
|
694
|
+
style: Z || { animation: `${Y} 1.4s ease-in-out infinite` }
|
|
695
|
+
},
|
|
696
|
+
...t ? [{
|
|
697
|
+
props: ({ ownerState: e }) => e.variant === "indeterminate" && !e.disableShrink,
|
|
698
|
+
style: t
|
|
699
|
+
}] : []
|
|
700
|
+
]
|
|
701
|
+
};
|
|
702
|
+
})), de = d("circle", {
|
|
703
|
+
name: "MuiCircularProgress",
|
|
704
|
+
slot: "Track"
|
|
705
|
+
})(h(({ theme: e }) => ({
|
|
706
|
+
stroke: "currentColor",
|
|
707
|
+
opacity: (e.vars || e).palette.action.activatedOpacity
|
|
708
|
+
}))), fe = /*#__PURE__*/ T.forwardRef(function(e, t) {
|
|
709
|
+
let n = f({
|
|
710
|
+
props: e,
|
|
711
|
+
name: "MuiCircularProgress"
|
|
712
|
+
}), { className: r, color: i = "primary", disableShrink: a = !1, enableTrackSlot: s = !1, min: c, max: l, size: u = 40, style: d, thickness: p = 3.6, value: m = n.min ?? 0, variant: h = "indeterminate", ...g } = n, _ = c ?? 0, v = l ?? 100, y = {
|
|
713
|
+
...n,
|
|
714
|
+
color: i,
|
|
715
|
+
disableShrink: a,
|
|
716
|
+
size: u,
|
|
717
|
+
thickness: p,
|
|
718
|
+
value: m,
|
|
719
|
+
variant: h,
|
|
720
|
+
enableTrackSlot: s
|
|
721
|
+
}, b = ce(y), x = {}, S = {}, C = {};
|
|
722
|
+
if (h === "determinate") {
|
|
723
|
+
let e = 2 * Math.PI * ((q - p) / 2), t = v - _;
|
|
724
|
+
x.strokeDasharray = e.toFixed(3), x.strokeDashoffset = t > 0 ? `${((v - m) / t * e).toFixed(3)}px` : `${e.toFixed(3)}px`, S.transform = "rotate(-90deg)", C["aria-valuenow"] = m, C["aria-valuemin"] = _, C["aria-valuemax"] = v;
|
|
725
|
+
}
|
|
726
|
+
return /*#__PURE__*/ (0, M.jsx)(le, {
|
|
727
|
+
className: o(b.root, r),
|
|
728
|
+
style: {
|
|
729
|
+
width: u,
|
|
730
|
+
height: u,
|
|
731
|
+
...S,
|
|
732
|
+
...d
|
|
733
|
+
},
|
|
734
|
+
ownerState: y,
|
|
735
|
+
ref: t,
|
|
736
|
+
role: "progressbar",
|
|
737
|
+
...C,
|
|
738
|
+
...g,
|
|
739
|
+
children: /*#__PURE__*/ (0, M.jsxs)(ue, {
|
|
740
|
+
className: b.svg,
|
|
741
|
+
ownerState: y,
|
|
742
|
+
viewBox: `${q / 2} ${q / 2} ${q} ${q}`,
|
|
743
|
+
children: [s ? /*#__PURE__*/ (0, M.jsx)(de, {
|
|
744
|
+
className: b.track,
|
|
745
|
+
ownerState: y,
|
|
746
|
+
cx: q,
|
|
747
|
+
cy: q,
|
|
748
|
+
r: (q - p) / 2,
|
|
749
|
+
fill: "none",
|
|
750
|
+
strokeWidth: p,
|
|
751
|
+
"aria-hidden": "true"
|
|
752
|
+
}) : null, /*#__PURE__*/ (0, M.jsx)(Q, {
|
|
753
|
+
className: b.circle,
|
|
754
|
+
style: x,
|
|
755
|
+
ownerState: y,
|
|
756
|
+
cx: q,
|
|
757
|
+
cy: q,
|
|
758
|
+
r: (q - p) / 2,
|
|
759
|
+
fill: "none",
|
|
760
|
+
strokeWidth: p
|
|
761
|
+
})]
|
|
762
|
+
})
|
|
763
|
+
});
|
|
764
|
+
});
|
|
765
|
+
export { W as n, U as r, fe as t };
|