@astrato-io/visualizations 0.7.0 → 0.9.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.
Files changed (162) hide show
  1. package/README.md +1 -25
  2. package/THIRD_PARTY_NOTICES.md +307 -378
  3. package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
  4. package/chunks/CircularProgress-DFS-LQb7.js +765 -0
  5. package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
  6. package/chunks/LinearProgress-CjIQfkNA.js +327 -0
  7. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
  8. package/chunks/Title-CtFw1bVg.js +1804 -0
  9. package/chunks/ToggleButton-Br9HCPCv.js +150 -0
  10. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
  11. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
  12. package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
  13. package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
  14. package/chunks/contains-BK-sRXcB.js +21 -0
  15. package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
  16. package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
  17. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
  18. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
  19. package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
  20. package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
  21. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
  22. package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
  23. package/chunks/isFocusVisible-B1_z03UT.js +144 -0
  24. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
  25. package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
  26. package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
  27. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
  28. package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
  29. package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
  30. package/chunks/react-dom-BwZT0N3F.js +368 -0
  31. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
  32. package/chunks/{requirements-PAoRaJyb.js → requirements-CYpVh65U.js} +330 -302
  33. package/chunks/responsive.styles-FItb913l.js +93 -0
  34. package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
  35. package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
  36. package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
  37. package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
  38. package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
  39. package/chunks/{standalone-DVTJwsTY.js → standalone-BDrQMxLi.js} +623 -614
  40. package/chunks/standalone-BMoJXGYe.js +2 -0
  41. package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
  42. package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
  43. package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
  44. package/chunks/standalone-CMJJIi9v.js +2 -0
  45. package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
  46. package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
  47. package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
  48. package/chunks/standalone-C_Jd4gkj.js +6 -0
  49. package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
  50. package/chunks/standalone-CoQxJ6ov.js +3638 -0
  51. package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
  52. package/chunks/standalone-DBeXQrwH.js +468 -0
  53. package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
  54. package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
  55. package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
  56. package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
  57. package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
  58. package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
  59. package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
  60. package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
  61. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
  62. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  63. package/chunks/useFieldName-mWrD_uk_.js +7 -0
  64. package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
  65. package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
  66. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
  67. package/chunks/with-html-element-B0Clt4jY.js +15901 -0
  68. package/definitions.js +2 -2
  69. package/docs/operations/astrato-app-filter-bar.md +1 -1
  70. package/docs/operations/bar.md +1 -1
  71. package/docs/operations/combo.md +1 -1
  72. package/docs/operations/date-picker.md +1 -1
  73. package/docs/operations/distribution-gauge.md +1 -1
  74. package/docs/operations/dot.md +1 -1
  75. package/docs/operations/filter.md +1 -1
  76. package/docs/operations/gauge.md +1 -1
  77. package/docs/operations/heatMap.md +1 -1
  78. package/docs/operations/histogram.md +1 -1
  79. package/docs/operations/iframe.md +1 -1
  80. package/docs/operations/image.md +1 -1
  81. package/docs/operations/index.md +2 -2
  82. package/docs/operations/line.md +1 -1
  83. package/docs/operations/number.md +1 -1
  84. package/docs/operations/pie.md +1 -1
  85. package/docs/operations/radar.md +1 -1
  86. package/docs/operations/sankey.md +1 -1
  87. package/docs/operations/scatter.md +1 -1
  88. package/docs/operations/shape.md +1 -1
  89. package/docs/operations/simpleTextObject.md +1 -1
  90. package/docs/operations/slider.md +1 -1
  91. package/docs/operations/table.md +66 -1
  92. package/docs/operations/tree.md +1 -1
  93. package/docs/operations/treemap.md +1 -1
  94. package/docs/operations/waterfall.md +1 -1
  95. package/docs/operations/word-cloud.md +1 -1
  96. package/getters.js +2 -2
  97. package/index.js +1191 -3
  98. package/metadata.js +15 -16
  99. package/operations.js +5 -5
  100. package/package.json +67 -102
  101. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
  102. package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
  103. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
  104. package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
  105. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  106. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  107. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  108. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  109. package/src/getters/index.d.ts +3 -3
  110. package/src/index.d.ts +1 -1
  111. package/src/operations/index.d.ts +3 -3
  112. package/src/runtime/index.d.ts +2 -2
  113. package/src/types.d.ts +4 -8
  114. package/src/visualization-catalog.d.ts +26 -26
  115. package/src/web-components/index.d.ts +3 -3
  116. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  117. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  118. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  119. package/chunks/Title-CO5dP1ma.js +0 -1691
  120. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  121. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  122. package/chunks/registry-KervaxqJ.js +0 -31
  123. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  124. package/chunks/standalone-BXKRE_Se.js +0 -468
  125. package/chunks/standalone-BjZp0QMe.js +0 -2
  126. package/chunks/standalone-C8qAelL4.js +0 -2
  127. package/chunks/standalone-DT0wKji7.js +0 -6
  128. package/chunks/standalone-DYQIQH4c.js +0 -2095
  129. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  130. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  131. package/chunks/web-components-DqClFkgO.js +0 -1185
  132. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
  133. package/render.js +0 -10
  134. package/src/charts/bar.d.ts +0 -1
  135. package/src/charts/combo.d.ts +0 -1
  136. package/src/charts/dot.d.ts +0 -1
  137. package/src/charts/gauge-distribution.d.ts +0 -1
  138. package/src/charts/gauge.d.ts +0 -1
  139. package/src/charts/heat-map.d.ts +0 -1
  140. package/src/charts/histogram.d.ts +0 -1
  141. package/src/charts/line.d.ts +0 -1
  142. package/src/charts/pie.d.ts +0 -1
  143. package/src/charts/radar.d.ts +0 -1
  144. package/src/charts/sankey.d.ts +0 -1
  145. package/src/charts/scatter.d.ts +0 -1
  146. package/src/charts/table.d.ts +0 -1
  147. package/src/charts/tree.d.ts +0 -1
  148. package/src/charts/treemap.d.ts +0 -1
  149. package/src/charts/waterfall.d.ts +0 -1
  150. package/src/charts/word-cloud.d.ts +0 -1
  151. package/src/objects/app-filter-bar.d.ts +0 -1
  152. package/src/objects/date-picker.d.ts +0 -1
  153. package/src/objects/filter.d.ts +0 -1
  154. package/src/objects/iframe.d.ts +0 -1
  155. package/src/objects/image.d.ts +0 -1
  156. package/src/objects/number.d.ts +0 -1
  157. package/src/objects/shape.d.ts +0 -1
  158. package/src/objects/slider.d.ts +0 -1
  159. package/src/objects/text.d.ts +0 -1
  160. package/src/registry/create-visualization-registry.d.ts +0 -5
  161. package/src/render/index.d.ts +0 -34
  162. /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
@@ -0,0 +1,765 @@
1
+ import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
+ import { G as t, Tt as n, X as r, ei as i, it as a, jr as o, wt as s } from "./utils-DYYD4Zzf.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-BwZT0N3F.js";
4
+ import { t as _ } from "./isFocusVisible-B1_z03UT.js";
5
+ import { d as v, f as y, h as b, m as x, u as S, y as C } from "./Title-CtFw1bVg.js";
6
+ import { p as w } from "./responsive.styles-FItb913l.js";
7
+ var T = /* @__PURE__ */ e(i(), 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 = o();
128
+ function N(e) {
129
+ let { className: t, classes: n, pulsate: r = !1, rippleX: i, rippleY: o, 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, _ = a(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), v = {
132
+ width: s,
133
+ height: s,
134
+ top: -(s / 2) + o,
135
+ left: -(s / 2) + i
136
+ }, y = a(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 = n`
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 = n`
206
+ 0% {
207
+ opacity: 1;
208
+ }
209
+
210
+ 100% {
211
+ opacity: 0;
212
+ }
213
+ `, re = n`
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 = s`
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" ? s`
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, n) {
314
+ let r = f({
315
+ props: e,
316
+ name: "MuiTouchRipple"
317
+ }), i = y(t().motion.reducedMotion, !1), { center: o = !1, classes: s = I, className: c, ...l } = r, [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 = o || t.pulsate, fakeElement: a = !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: a ? 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(n, () => ({
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: a(P.root, s.root, c),
413
+ ref: w,
414
+ ...l,
415
+ children: N.map((e) => /*#__PURE__*/ (0, M.jsx)(V, {
416
+ classes: {
417
+ ripple: a(s.ripple, P.ripple),
418
+ rippleVisible: a(s.rippleVisible, P.rippleVisible),
419
+ ripplePulsate: a(s.ripplePulsate, P.ripplePulsate),
420
+ child: a(s.child, P.child),
421
+ childLeaving: a(s.childLeaving, P.childLeaving),
422
+ childPulsate: a(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
+ ...r,
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: o, 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: a(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: [o, 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 = n`
594
+ 0% {
595
+ transform: rotate(0deg);
596
+ }
597
+
598
+ 100% {
599
+ transform: rotate(360deg);
600
+ }
601
+ `, Y = n`
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 : s`
617
+ animation: ${J} 1.4s linear infinite;
618
+ `, Z = typeof Y == "string" ? null : s`
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: o = !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: o,
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: a(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 };