@notificationapi/react 1.7.0 → 1.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 (47) hide show
  1. package/dist/assets/Badge.js +60 -64
  2. package/dist/assets/Box.js +26 -24
  3. package/dist/assets/Button.js +22 -19
  4. package/dist/assets/ButtonBase.js +193 -185
  5. package/dist/assets/DefaultPropsProvider.js +416 -4199
  6. package/dist/assets/DefaultPropsProvider2.js +992 -0
  7. package/dist/assets/Divider.js +22 -18
  8. package/dist/assets/GlobalStyles.js +23 -0
  9. package/dist/assets/Grow.js +1513 -120
  10. package/dist/assets/IconButton.js +8 -7
  11. package/dist/assets/List.js +12 -11
  12. package/dist/assets/Modal.js +18 -17
  13. package/dist/assets/Notification.js +787 -770
  14. package/dist/assets/Paper.js +8 -8
  15. package/dist/assets/Popover.js +37 -36
  16. package/dist/assets/Portal.js +39 -49
  17. package/dist/assets/Stack.js +32 -30
  18. package/dist/assets/Typography.js +84 -97
  19. package/dist/assets/createSvgIcon.js +25 -24
  20. package/dist/assets/createTheme.js +2828 -0
  21. package/dist/assets/exactProp.js +13 -0
  22. package/dist/assets/index.js +19 -148
  23. package/dist/assets/index2.js +151 -0
  24. package/dist/assets/useControlled.js +49 -0
  25. package/dist/assets/usePreviousProps.js +10 -0
  26. package/dist/assets/useTheme.js +6 -7
  27. package/dist/assets/{useTheme2.js → useThemeWithoutDefault.js} +63 -67
  28. package/dist/assets/utils.js +4 -4
  29. package/dist/components/Notifications/Inbox.js +593 -583
  30. package/dist/components/Notifications/InboxHeader.js +360 -1754
  31. package/dist/components/Notifications/Notification.js +4 -2
  32. package/dist/components/Notifications/NotificationFeed.js +40 -32
  33. package/dist/components/Notifications/NotificationLauncher.js +90 -64
  34. package/dist/components/Notifications/NotificationPopup.js +76 -65
  35. package/dist/components/Preferences/NotificationPreferencesInline.js +57 -39
  36. package/dist/components/Preferences/NotificationPreferencesPopup.js +111 -99
  37. package/dist/components/Preferences/PreferenceInput.js +427 -414
  38. package/dist/components/Preferences/Preferences.js +329 -278
  39. package/dist/components/Provider/index.d.ts +2 -0
  40. package/dist/components/Provider/index.js +1008 -401
  41. package/dist/components/Slack/SlackConnect.js +4627 -2024
  42. package/dist/main.d.ts +2 -0
  43. package/dist/main.js +6 -3
  44. package/dist/utils/theme.d.ts +17 -0
  45. package/dist/utils/theme.js +104 -0
  46. package/package.json +1 -1
  47. package/dist/assets/dividerClasses.js +0 -56
@@ -1,1487 +1,93 @@
1
- import { jsx as k, jsxs as Be, Fragment as mo } from "react/jsx-runtime";
2
- import { T as vo } from "../../assets/Typography.js";
3
- import { B as ho } from "../../assets/Box.js";
4
- import * as M from "react";
5
- import { g as Wt, e as It, P as r, b as Ht, s as ot, u as Vt, m as ut, h as Ft, a as Ut, c as xt } from "../../assets/DefaultPropsProvider.js";
6
- import { u as zt, G as go } from "../../assets/Grow.js";
7
- import { u as yo } from "../../assets/useTheme.js";
8
- import { c as bo, r as qt, b as Tt, u as Xe, d as Pt, a as Ge, g as wo, i as Et } from "../../assets/ButtonBase.js";
9
- import { o as Rt, P as Oo, H as _e, g as xo, e as To } from "../../assets/Portal.js";
10
- import { u as pt } from "../../assets/resolveComponentProps.js";
11
- import { u as Po } from "../../assets/useSlotProps.js";
12
- import { a as Eo, u as Ro } from "../../assets/dividerClasses.js";
13
- import { I as At } from "../../assets/IconButton.js";
14
- import { c as Yt } from "../../assets/createSvgIcon.js";
15
- import { D as Ao } from "../../assets/Divider.js";
16
- var I = "top", Y = "bottom", X = "right", H = "left", dt = "auto", Ve = [I, Y, X, H], Te = "start", Ie = "end", Co = "clippingParents", Xt = "viewport", Le = "popper", Mo = "reference", Ct = /* @__PURE__ */ Ve.reduce(function(t, e) {
17
- return t.concat([e + "-" + Te, e + "-" + Ie]);
18
- }, []), Gt = /* @__PURE__ */ [].concat(Ve, [dt]).reduce(function(t, e) {
19
- return t.concat([e, e + "-" + Te, e + "-" + Ie]);
20
- }, []), jo = "beforeRead", Do = "read", So = "afterRead", $o = "beforeMain", Lo = "main", ko = "afterMain", Bo = "beforeWrite", No = "write", Wo = "afterWrite", Io = [jo, Do, So, $o, Lo, ko, Bo, No, Wo];
21
- function oe(t) {
22
- return t ? (t.nodeName || "").toLowerCase() : null;
23
- }
24
- function V(t) {
25
- if (t == null)
26
- return window;
27
- if (t.toString() !== "[object Window]") {
28
- var e = t.ownerDocument;
29
- return e && e.defaultView || window;
30
- }
31
- return t;
32
- }
33
- function me(t) {
34
- var e = V(t).Element;
35
- return t instanceof e || t instanceof Element;
36
- }
37
- function q(t) {
38
- var e = V(t).HTMLElement;
39
- return t instanceof e || t instanceof HTMLElement;
40
- }
41
- function mt(t) {
42
- if (typeof ShadowRoot > "u")
43
- return !1;
44
- var e = V(t).ShadowRoot;
45
- return t instanceof e || t instanceof ShadowRoot;
46
- }
47
- function Ho(t) {
48
- var e = t.state;
49
- Object.keys(e.elements).forEach(function(o) {
50
- var n = e.styles[o] || {}, a = e.attributes[o] || {}, s = e.elements[o];
51
- !q(s) || !oe(s) || (Object.assign(s.style, n), Object.keys(a).forEach(function(c) {
52
- var i = a[c];
53
- i === !1 ? s.removeAttribute(c) : s.setAttribute(c, i === !0 ? "" : i);
54
- }));
55
- });
56
- }
57
- function Vo(t) {
58
- var e = t.state, o = {
59
- popper: {
60
- position: e.options.strategy,
61
- left: "0",
62
- top: "0",
63
- margin: "0"
64
- },
65
- arrow: {
66
- position: "absolute"
67
- },
68
- reference: {}
69
- };
70
- return Object.assign(e.elements.popper.style, o.popper), e.styles = o, e.elements.arrow && Object.assign(e.elements.arrow.style, o.arrow), function() {
71
- Object.keys(e.elements).forEach(function(n) {
72
- var a = e.elements[n], s = e.attributes[n] || {}, c = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : o[n]), i = c.reduce(function(p, f) {
73
- return p[f] = "", p;
74
- }, {});
75
- !q(a) || !oe(a) || (Object.assign(a.style, i), Object.keys(s).forEach(function(p) {
76
- a.removeAttribute(p);
77
- }));
78
- });
79
- };
80
- }
81
- const Fo = {
82
- name: "applyStyles",
83
- enabled: !0,
84
- phase: "write",
85
- fn: Ho,
86
- effect: Vo,
87
- requires: ["computeStyles"]
88
- };
89
- function te(t) {
90
- return t.split("-")[0];
91
- }
92
- var de = Math.max, et = Math.min, Pe = Math.round;
93
- function lt() {
94
- var t = navigator.userAgentData;
95
- return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
96
- return e.brand + "/" + e.version;
97
- }).join(" ") : navigator.userAgent;
98
- }
99
- function Kt() {
100
- return !/^((?!chrome|android).)*safari/i.test(lt());
101
- }
102
- function Ee(t, e, o) {
103
- e === void 0 && (e = !1), o === void 0 && (o = !1);
104
- var n = t.getBoundingClientRect(), a = 1, s = 1;
105
- e && q(t) && (a = t.offsetWidth > 0 && Pe(n.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && Pe(n.height) / t.offsetHeight || 1);
106
- var c = me(t) ? V(t) : window, i = c.visualViewport, p = !Kt() && o, f = (n.left + (p && i ? i.offsetLeft : 0)) / a, l = (n.top + (p && i ? i.offsetTop : 0)) / s, g = n.width / a, x = n.height / s;
107
- return {
108
- width: g,
109
- height: x,
110
- top: l,
111
- right: f + g,
112
- bottom: l + x,
113
- left: f,
114
- x: f,
115
- y: l
116
- };
117
- }
118
- function vt(t) {
119
- var e = Ee(t), o = t.offsetWidth, n = t.offsetHeight;
120
- return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
121
- x: t.offsetLeft,
122
- y: t.offsetTop,
123
- width: o,
124
- height: n
125
- };
126
- }
127
- function Jt(t, e) {
128
- var o = e.getRootNode && e.getRootNode();
129
- if (t.contains(e))
130
- return !0;
131
- if (o && mt(o)) {
132
- var n = e;
133
- do {
134
- if (n && t.isSameNode(n))
135
- return !0;
136
- n = n.parentNode || n.host;
137
- } while (n);
138
- }
139
- return !1;
140
- }
141
- function ae(t) {
142
- return V(t).getComputedStyle(t);
143
- }
144
- function Uo(t) {
145
- return ["table", "td", "th"].indexOf(oe(t)) >= 0;
146
- }
147
- function pe(t) {
148
- return ((me(t) ? t.ownerDocument : (
149
- // $FlowFixMe[prop-missing]
150
- t.document
151
- )) || window.document).documentElement;
152
- }
153
- function rt(t) {
154
- return oe(t) === "html" ? t : (
155
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
156
- // $FlowFixMe[incompatible-return]
157
- // $FlowFixMe[prop-missing]
158
- t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
159
- t.parentNode || // DOM Element detected
160
- (mt(t) ? t.host : null) || // ShadowRoot detected
161
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
162
- pe(t)
163
- );
164
- }
165
- function Mt(t) {
166
- return !q(t) || // https://github.com/popperjs/popper-core/issues/837
167
- ae(t).position === "fixed" ? null : t.offsetParent;
168
- }
169
- function zo(t) {
170
- var e = /firefox/i.test(lt()), o = /Trident/i.test(lt());
171
- if (o && q(t)) {
172
- var n = ae(t);
173
- if (n.position === "fixed")
174
- return null;
175
- }
176
- var a = rt(t);
177
- for (mt(a) && (a = a.host); q(a) && ["html", "body"].indexOf(oe(a)) < 0; ) {
178
- var s = ae(a);
179
- if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
180
- return a;
181
- a = a.parentNode;
182
- }
183
- return null;
184
- }
185
- function Fe(t) {
186
- for (var e = V(t), o = Mt(t); o && Uo(o) && ae(o).position === "static"; )
187
- o = Mt(o);
188
- return o && (oe(o) === "html" || oe(o) === "body" && ae(o).position === "static") ? e : o || zo(t) || e;
189
- }
190
- function ht(t) {
191
- return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
192
- }
193
- function Ne(t, e, o) {
194
- return de(t, et(e, o));
195
- }
196
- function qo(t, e, o) {
197
- var n = Ne(t, e, o);
198
- return n > o ? o : n;
199
- }
200
- function Qt() {
201
- return {
202
- top: 0,
203
- right: 0,
204
- bottom: 0,
205
- left: 0
206
- };
207
- }
208
- function Zt(t) {
209
- return Object.assign({}, Qt(), t);
210
- }
211
- function _t(t, e) {
212
- return e.reduce(function(o, n) {
213
- return o[n] = t, o;
214
- }, {});
215
- }
216
- var Yo = function(e, o) {
217
- return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
218
- placement: o.placement
219
- })) : e, Zt(typeof e != "number" ? e : _t(e, Ve));
220
- };
221
- function Xo(t) {
222
- var e, o = t.state, n = t.name, a = t.options, s = o.elements.arrow, c = o.modifiersData.popperOffsets, i = te(o.placement), p = ht(i), f = [H, X].indexOf(i) >= 0, l = f ? "height" : "width";
223
- if (!(!s || !c)) {
224
- var g = Yo(a.padding, o), x = vt(s), u = p === "y" ? I : H, T = p === "y" ? Y : X, m = o.rects.reference[l] + o.rects.reference[p] - c[p] - o.rects.popper[l], h = c[p] - o.rects.reference[p], w = Fe(s), E = w ? p === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = m / 2 - h / 2, d = g[u], y = E - x[l] - g[T], b = E / 2 - x[l] / 2 + O, R = Ne(d, b, y), S = p;
225
- o.modifiersData[n] = (e = {}, e[S] = R, e.centerOffset = R - b, e);
226
- }
227
- }
228
- function Go(t) {
229
- var e = t.state, o = t.options, n = o.element, a = n === void 0 ? "[data-popper-arrow]" : n;
230
- a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || Jt(e.elements.popper, a) && (e.elements.arrow = a));
231
- }
232
- const Ko = {
233
- name: "arrow",
234
- enabled: !0,
235
- phase: "main",
236
- fn: Xo,
237
- effect: Go,
238
- requires: ["popperOffsets"],
239
- requiresIfExists: ["preventOverflow"]
240
- };
241
- function Re(t) {
242
- return t.split("-")[1];
243
- }
244
- var Jo = {
245
- top: "auto",
246
- right: "auto",
247
- bottom: "auto",
248
- left: "auto"
249
- };
250
- function Qo(t, e) {
251
- var o = t.x, n = t.y, a = e.devicePixelRatio || 1;
252
- return {
253
- x: Pe(o * a) / a || 0,
254
- y: Pe(n * a) / a || 0
255
- };
256
- }
257
- function jt(t) {
258
- var e, o = t.popper, n = t.popperRect, a = t.placement, s = t.variation, c = t.offsets, i = t.position, p = t.gpuAcceleration, f = t.adaptive, l = t.roundOffsets, g = t.isFixed, x = c.x, u = x === void 0 ? 0 : x, T = c.y, m = T === void 0 ? 0 : T, h = typeof l == "function" ? l({
259
- x: u,
260
- y: m
261
- }) : {
262
- x: u,
263
- y: m
264
- };
265
- u = h.x, m = h.y;
266
- var w = c.hasOwnProperty("x"), E = c.hasOwnProperty("y"), O = H, d = I, y = window;
267
- if (f) {
268
- var b = Fe(o), R = "clientHeight", S = "clientWidth";
269
- if (b === V(o) && (b = pe(o), ae(b).position !== "static" && i === "absolute" && (R = "scrollHeight", S = "scrollWidth")), b = b, a === I || (a === H || a === X) && s === Ie) {
270
- d = Y;
271
- var A = g && b === y && y.visualViewport ? y.visualViewport.height : (
272
- // $FlowFixMe[prop-missing]
273
- b[R]
274
- );
275
- m -= A - n.height, m *= p ? 1 : -1;
276
- }
277
- if (a === H || (a === I || a === Y) && s === Ie) {
278
- O = X;
279
- var P = g && b === y && y.visualViewport ? y.visualViewport.width : (
280
- // $FlowFixMe[prop-missing]
281
- b[S]
282
- );
283
- u -= P - n.width, u *= p ? 1 : -1;
284
- }
285
- }
286
- var C = Object.assign({
287
- position: i
288
- }, f && Jo), W = l === !0 ? Qo({
289
- x: u,
290
- y: m
291
- }, V(o)) : {
292
- x: u,
293
- y: m
294
- };
295
- if (u = W.x, m = W.y, p) {
296
- var j;
297
- return Object.assign({}, C, (j = {}, j[d] = E ? "0" : "", j[O] = w ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", j));
298
- }
299
- return Object.assign({}, C, (e = {}, e[d] = E ? m + "px" : "", e[O] = w ? u + "px" : "", e.transform = "", e));
300
- }
301
- function Zo(t) {
302
- var e = t.state, o = t.options, n = o.gpuAcceleration, a = n === void 0 ? !0 : n, s = o.adaptive, c = s === void 0 ? !0 : s, i = o.roundOffsets, p = i === void 0 ? !0 : i, f = {
303
- placement: te(e.placement),
304
- variation: Re(e.placement),
305
- popper: e.elements.popper,
306
- popperRect: e.rects.popper,
307
- gpuAcceleration: a,
308
- isFixed: e.options.strategy === "fixed"
309
- };
310
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, jt(Object.assign({}, f, {
311
- offsets: e.modifiersData.popperOffsets,
312
- position: e.options.strategy,
313
- adaptive: c,
314
- roundOffsets: p
315
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, jt(Object.assign({}, f, {
316
- offsets: e.modifiersData.arrow,
317
- position: "absolute",
318
- adaptive: !1,
319
- roundOffsets: p
320
- })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
321
- "data-popper-placement": e.placement
322
- });
323
- }
324
- const _o = {
325
- name: "computeStyles",
326
- enabled: !0,
327
- phase: "beforeWrite",
328
- fn: Zo,
329
- data: {}
330
- };
331
- var Ke = {
332
- passive: !0
333
- };
334
- function er(t) {
335
- var e = t.state, o = t.instance, n = t.options, a = n.scroll, s = a === void 0 ? !0 : a, c = n.resize, i = c === void 0 ? !0 : c, p = V(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
336
- return s && f.forEach(function(l) {
337
- l.addEventListener("scroll", o.update, Ke);
338
- }), i && p.addEventListener("resize", o.update, Ke), function() {
339
- s && f.forEach(function(l) {
340
- l.removeEventListener("scroll", o.update, Ke);
341
- }), i && p.removeEventListener("resize", o.update, Ke);
342
- };
343
- }
344
- const tr = {
345
- name: "eventListeners",
346
- enabled: !0,
347
- phase: "write",
348
- fn: function() {
349
- },
350
- effect: er,
351
- data: {}
352
- };
353
- var or = {
354
- left: "right",
355
- right: "left",
356
- bottom: "top",
357
- top: "bottom"
358
- };
359
- function Ze(t) {
360
- return t.replace(/left|right|bottom|top/g, function(e) {
361
- return or[e];
362
- });
363
- }
364
- var rr = {
365
- start: "end",
366
- end: "start"
367
- };
368
- function Dt(t) {
369
- return t.replace(/start|end/g, function(e) {
370
- return rr[e];
371
- });
372
- }
373
- function gt(t) {
374
- var e = V(t), o = e.pageXOffset, n = e.pageYOffset;
375
- return {
376
- scrollLeft: o,
377
- scrollTop: n
378
- };
379
- }
380
- function yt(t) {
381
- return Ee(pe(t)).left + gt(t).scrollLeft;
382
- }
383
- function nr(t, e) {
384
- var o = V(t), n = pe(t), a = o.visualViewport, s = n.clientWidth, c = n.clientHeight, i = 0, p = 0;
385
- if (a) {
386
- s = a.width, c = a.height;
387
- var f = Kt();
388
- (f || !f && e === "fixed") && (i = a.offsetLeft, p = a.offsetTop);
389
- }
390
- return {
391
- width: s,
392
- height: c,
393
- x: i + yt(t),
394
- y: p
395
- };
396
- }
397
- function ar(t) {
398
- var e, o = pe(t), n = gt(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, s = de(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = de(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + yt(t), p = -n.scrollTop;
399
- return ae(a || o).direction === "rtl" && (i += de(o.clientWidth, a ? a.clientWidth : 0) - s), {
400
- width: s,
401
- height: c,
402
- x: i,
403
- y: p
404
- };
405
- }
406
- function bt(t) {
407
- var e = ae(t), o = e.overflow, n = e.overflowX, a = e.overflowY;
408
- return /auto|scroll|overlay|hidden/.test(o + a + n);
409
- }
410
- function eo(t) {
411
- return ["html", "body", "#document"].indexOf(oe(t)) >= 0 ? t.ownerDocument.body : q(t) && bt(t) ? t : eo(rt(t));
412
- }
413
- function We(t, e) {
414
- var o;
415
- e === void 0 && (e = []);
416
- var n = eo(t), a = n === ((o = t.ownerDocument) == null ? void 0 : o.body), s = V(n), c = a ? [s].concat(s.visualViewport || [], bt(n) ? n : []) : n, i = e.concat(c);
417
- return a ? i : (
418
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
419
- i.concat(We(rt(c)))
420
- );
421
- }
422
- function ct(t) {
423
- return Object.assign({}, t, {
424
- left: t.x,
425
- top: t.y,
426
- right: t.x + t.width,
427
- bottom: t.y + t.height
428
- });
429
- }
430
- function ir(t, e) {
431
- var o = Ee(t, !1, e === "fixed");
432
- return o.top = o.top + t.clientTop, o.left = o.left + t.clientLeft, o.bottom = o.top + t.clientHeight, o.right = o.left + t.clientWidth, o.width = t.clientWidth, o.height = t.clientHeight, o.x = o.left, o.y = o.top, o;
433
- }
434
- function St(t, e, o) {
435
- return e === Xt ? ct(nr(t, o)) : me(e) ? ir(e, o) : ct(ar(pe(t)));
436
- }
437
- function sr(t) {
438
- var e = We(rt(t)), o = ["absolute", "fixed"].indexOf(ae(t).position) >= 0, n = o && q(t) ? Fe(t) : t;
439
- return me(n) ? e.filter(function(a) {
440
- return me(a) && Jt(a, n) && oe(a) !== "body";
441
- }) : [];
442
- }
443
- function pr(t, e, o, n) {
444
- var a = e === "clippingParents" ? sr(t) : [].concat(e), s = [].concat(a, [o]), c = s[0], i = s.reduce(function(p, f) {
445
- var l = St(t, f, n);
446
- return p.top = de(l.top, p.top), p.right = et(l.right, p.right), p.bottom = et(l.bottom, p.bottom), p.left = de(l.left, p.left), p;
447
- }, St(t, c, n));
448
- return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
449
- }
450
- function to(t) {
451
- var e = t.reference, o = t.element, n = t.placement, a = n ? te(n) : null, s = n ? Re(n) : null, c = e.x + e.width / 2 - o.width / 2, i = e.y + e.height / 2 - o.height / 2, p;
452
- switch (a) {
453
- case I:
454
- p = {
455
- x: c,
456
- y: e.y - o.height
457
- };
458
- break;
459
- case Y:
460
- p = {
461
- x: c,
462
- y: e.y + e.height
463
- };
464
- break;
465
- case X:
466
- p = {
467
- x: e.x + e.width,
468
- y: i
469
- };
470
- break;
471
- case H:
472
- p = {
473
- x: e.x - o.width,
474
- y: i
475
- };
476
- break;
477
- default:
478
- p = {
479
- x: e.x,
480
- y: e.y
481
- };
482
- }
483
- var f = a ? ht(a) : null;
484
- if (f != null) {
485
- var l = f === "y" ? "height" : "width";
486
- switch (s) {
487
- case Te:
488
- p[f] = p[f] - (e[l] / 2 - o[l] / 2);
489
- break;
490
- case Ie:
491
- p[f] = p[f] + (e[l] / 2 - o[l] / 2);
492
- break;
493
- }
494
- }
495
- return p;
496
- }
497
- function He(t, e) {
498
- e === void 0 && (e = {});
499
- var o = e, n = o.placement, a = n === void 0 ? t.placement : n, s = o.strategy, c = s === void 0 ? t.strategy : s, i = o.boundary, p = i === void 0 ? Co : i, f = o.rootBoundary, l = f === void 0 ? Xt : f, g = o.elementContext, x = g === void 0 ? Le : g, u = o.altBoundary, T = u === void 0 ? !1 : u, m = o.padding, h = m === void 0 ? 0 : m, w = Zt(typeof h != "number" ? h : _t(h, Ve)), E = x === Le ? Mo : Le, O = t.rects.popper, d = t.elements[T ? E : x], y = pr(me(d) ? d : d.contextElement || pe(t.elements.popper), p, l, c), b = Ee(t.elements.reference), R = to({
500
- reference: b,
501
- element: O,
502
- strategy: "absolute",
503
- placement: a
504
- }), S = ct(Object.assign({}, O, R)), A = x === Le ? S : b, P = {
505
- top: y.top - A.top + w.top,
506
- bottom: A.bottom - y.bottom + w.bottom,
507
- left: y.left - A.left + w.left,
508
- right: A.right - y.right + w.right
509
- }, C = t.modifiersData.offset;
510
- if (x === Le && C) {
511
- var W = C[a];
512
- Object.keys(P).forEach(function(j) {
513
- var G = [X, Y].indexOf(j) >= 0 ? 1 : -1, K = [I, Y].indexOf(j) >= 0 ? "y" : "x";
514
- P[j] += W[K] * G;
515
- });
516
- }
517
- return P;
518
- }
519
- function lr(t, e) {
520
- e === void 0 && (e = {});
521
- var o = e, n = o.placement, a = o.boundary, s = o.rootBoundary, c = o.padding, i = o.flipVariations, p = o.allowedAutoPlacements, f = p === void 0 ? Gt : p, l = Re(n), g = l ? i ? Ct : Ct.filter(function(T) {
522
- return Re(T) === l;
523
- }) : Ve, x = g.filter(function(T) {
524
- return f.indexOf(T) >= 0;
525
- });
526
- x.length === 0 && (x = g);
527
- var u = x.reduce(function(T, m) {
528
- return T[m] = He(t, {
529
- placement: m,
530
- boundary: a,
531
- rootBoundary: s,
532
- padding: c
533
- })[te(m)], T;
534
- }, {});
535
- return Object.keys(u).sort(function(T, m) {
536
- return u[T] - u[m];
537
- });
538
- }
539
- function cr(t) {
540
- if (te(t) === dt)
541
- return [];
542
- var e = Ze(t);
543
- return [Dt(t), e, Dt(e)];
544
- }
545
- function fr(t) {
546
- var e = t.state, o = t.options, n = t.name;
547
- if (!e.modifiersData[n]._skip) {
548
- for (var a = o.mainAxis, s = a === void 0 ? !0 : a, c = o.altAxis, i = c === void 0 ? !0 : c, p = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, x = o.altBoundary, u = o.flipVariations, T = u === void 0 ? !0 : u, m = o.allowedAutoPlacements, h = e.options.placement, w = te(h), E = w === h, O = p || (E || !T ? [Ze(h)] : cr(h)), d = [h].concat(O).reduce(function(J, F) {
549
- return J.concat(te(F) === dt ? lr(e, {
550
- placement: F,
551
- boundary: l,
552
- rootBoundary: g,
553
- padding: f,
554
- flipVariations: T,
555
- allowedAutoPlacements: m
556
- }) : F);
557
- }, []), y = e.rects.reference, b = e.rects.popper, R = /* @__PURE__ */ new Map(), S = !0, A = d[0], P = 0; P < d.length; P++) {
558
- var C = d[P], W = te(C), j = Re(C) === Te, G = [I, Y].indexOf(W) >= 0, K = G ? "width" : "height", $ = He(e, {
559
- placement: C,
560
- boundary: l,
561
- rootBoundary: g,
562
- altBoundary: x,
563
- padding: f
564
- }), D = G ? j ? X : H : j ? Y : I;
565
- y[K] > b[K] && (D = Ze(D));
566
- var N = Ze(D), re = [];
567
- if (s && re.push($[W] <= 0), i && re.push($[D] <= 0, $[N] <= 0), re.every(function(J) {
568
- return J;
569
- })) {
570
- A = C, S = !1;
571
- break;
572
- }
573
- R.set(C, re);
574
- }
575
- if (S)
576
- for (var B = T ? 3 : 1, ve = function(F) {
577
- var ie = d.find(function(se) {
578
- var U = R.get(se);
579
- if (U)
580
- return U.slice(0, F).every(function(ge) {
581
- return ge;
582
- });
583
- });
584
- if (ie)
585
- return A = ie, "break";
586
- }, ne = B; ne > 0; ne--) {
587
- var he = ve(ne);
588
- if (he === "break") break;
589
- }
590
- e.placement !== A && (e.modifiersData[n]._skip = !0, e.placement = A, e.reset = !0);
591
- }
592
- }
593
- const ur = {
594
- name: "flip",
595
- enabled: !0,
596
- phase: "main",
597
- fn: fr,
598
- requiresIfExists: ["offset"],
599
- data: {
600
- _skip: !1
601
- }
602
- };
603
- function $t(t, e, o) {
604
- return o === void 0 && (o = {
605
- x: 0,
606
- y: 0
607
- }), {
608
- top: t.top - e.height - o.y,
609
- right: t.right - e.width + o.x,
610
- bottom: t.bottom - e.height + o.y,
611
- left: t.left - e.width - o.x
612
- };
613
- }
614
- function Lt(t) {
615
- return [I, X, Y, H].some(function(e) {
616
- return t[e] >= 0;
617
- });
618
- }
619
- function dr(t) {
620
- var e = t.state, o = t.name, n = e.rects.reference, a = e.rects.popper, s = e.modifiersData.preventOverflow, c = He(e, {
621
- elementContext: "reference"
622
- }), i = He(e, {
623
- altBoundary: !0
624
- }), p = $t(c, n), f = $t(i, a, s), l = Lt(p), g = Lt(f);
625
- e.modifiersData[o] = {
626
- referenceClippingOffsets: p,
627
- popperEscapeOffsets: f,
628
- isReferenceHidden: l,
629
- hasPopperEscaped: g
630
- }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
631
- "data-popper-reference-hidden": l,
632
- "data-popper-escaped": g
633
- });
634
- }
635
- const mr = {
636
- name: "hide",
637
- enabled: !0,
638
- phase: "main",
639
- requiresIfExists: ["preventOverflow"],
640
- fn: dr
641
- };
642
- function vr(t, e, o) {
643
- var n = te(t), a = [H, I].indexOf(n) >= 0 ? -1 : 1, s = typeof o == "function" ? o(Object.assign({}, e, {
644
- placement: t
645
- })) : o, c = s[0], i = s[1];
646
- return c = c || 0, i = (i || 0) * a, [H, X].indexOf(n) >= 0 ? {
647
- x: i,
648
- y: c
649
- } : {
650
- x: c,
651
- y: i
652
- };
653
- }
654
- function hr(t) {
655
- var e = t.state, o = t.options, n = t.name, a = o.offset, s = a === void 0 ? [0, 0] : a, c = Gt.reduce(function(l, g) {
656
- return l[g] = vr(g, e.rects, s), l;
657
- }, {}), i = c[e.placement], p = i.x, f = i.y;
658
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += p, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = c;
659
- }
660
- const gr = {
661
- name: "offset",
662
- enabled: !0,
663
- phase: "main",
664
- requires: ["popperOffsets"],
665
- fn: hr
666
- };
667
- function yr(t) {
668
- var e = t.state, o = t.name;
669
- e.modifiersData[o] = to({
670
- reference: e.rects.reference,
671
- element: e.rects.popper,
672
- strategy: "absolute",
673
- placement: e.placement
674
- });
675
- }
676
- const br = {
677
- name: "popperOffsets",
678
- enabled: !0,
679
- phase: "read",
680
- fn: yr,
681
- data: {}
682
- };
683
- function wr(t) {
684
- return t === "x" ? "y" : "x";
685
- }
686
- function Or(t) {
687
- var e = t.state, o = t.options, n = t.name, a = o.mainAxis, s = a === void 0 ? !0 : a, c = o.altAxis, i = c === void 0 ? !1 : c, p = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, x = o.tether, u = x === void 0 ? !0 : x, T = o.tetherOffset, m = T === void 0 ? 0 : T, h = He(e, {
688
- boundary: p,
689
- rootBoundary: f,
690
- padding: g,
691
- altBoundary: l
692
- }), w = te(e.placement), E = Re(e.placement), O = !E, d = ht(w), y = wr(d), b = e.modifiersData.popperOffsets, R = e.rects.reference, S = e.rects.popper, A = typeof m == "function" ? m(Object.assign({}, e.rects, {
693
- placement: e.placement
694
- })) : m, P = typeof A == "number" ? {
695
- mainAxis: A,
696
- altAxis: A
697
- } : Object.assign({
698
- mainAxis: 0,
699
- altAxis: 0
700
- }, A), C = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, W = {
701
- x: 0,
702
- y: 0
703
- };
704
- if (b) {
705
- if (s) {
706
- var j, G = d === "y" ? I : H, K = d === "y" ? Y : X, $ = d === "y" ? "height" : "width", D = b[d], N = D + h[G], re = D - h[K], B = u ? -S[$] / 2 : 0, ve = E === Te ? R[$] : S[$], ne = E === Te ? -S[$] : -R[$], he = e.elements.arrow, J = u && he ? vt(he) : {
707
- width: 0,
708
- height: 0
709
- }, F = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Qt(), ie = F[G], se = F[K], U = Ne(0, R[$], J[$]), ge = O ? R[$] / 2 - B - U - ie - P.mainAxis : ve - U - ie - P.mainAxis, at = O ? -R[$] / 2 + B + U + se + P.mainAxis : ne + U + se + P.mainAxis, ye = e.elements.arrow && Fe(e.elements.arrow), Q = ye ? d === "y" ? ye.clientTop || 0 : ye.clientLeft || 0 : 0, be = (j = C == null ? void 0 : C[d]) != null ? j : 0, le = D + ge - be - Q, we = D + at - be, Ae = Ne(u ? et(N, le) : N, D, u ? de(re, we) : re);
710
- b[d] = Ae, W[d] = Ae - D;
711
- }
712
- if (i) {
713
- var ce, Oe = d === "x" ? I : H, Ce = d === "x" ? Y : X, ee = b[y], fe = y === "y" ? "height" : "width", Me = ee + h[Oe], je = ee - h[Ce], De = [I, H].indexOf(w) !== -1, Ue = (ce = C == null ? void 0 : C[y]) != null ? ce : 0, ze = De ? Me : ee - R[fe] - S[fe] - Ue + P.altAxis, xe = De ? ee + R[fe] + S[fe] - Ue - P.altAxis : je, qe = u && De ? qo(ze, ee, xe) : Ne(u ? ze : Me, ee, u ? xe : je);
714
- b[y] = qe, W[y] = qe - ee;
715
- }
716
- e.modifiersData[n] = W;
717
- }
718
- }
719
- const xr = {
720
- name: "preventOverflow",
721
- enabled: !0,
722
- phase: "main",
723
- fn: Or,
724
- requiresIfExists: ["offset"]
725
- };
726
- function Tr(t) {
727
- return {
728
- scrollLeft: t.scrollLeft,
729
- scrollTop: t.scrollTop
730
- };
731
- }
732
- function Pr(t) {
733
- return t === V(t) || !q(t) ? gt(t) : Tr(t);
734
- }
735
- function Er(t) {
736
- var e = t.getBoundingClientRect(), o = Pe(e.width) / t.offsetWidth || 1, n = Pe(e.height) / t.offsetHeight || 1;
737
- return o !== 1 || n !== 1;
738
- }
739
- function Rr(t, e, o) {
740
- o === void 0 && (o = !1);
741
- var n = q(e), a = q(e) && Er(e), s = pe(e), c = Ee(t, a, o), i = {
742
- scrollLeft: 0,
743
- scrollTop: 0
744
- }, p = {
745
- x: 0,
746
- y: 0
747
- };
748
- return (n || !n && !o) && ((oe(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
749
- bt(s)) && (i = Pr(e)), q(e) ? (p = Ee(e, !0), p.x += e.clientLeft, p.y += e.clientTop) : s && (p.x = yt(s))), {
750
- x: c.left + i.scrollLeft - p.x,
751
- y: c.top + i.scrollTop - p.y,
752
- width: c.width,
753
- height: c.height
754
- };
755
- }
756
- function Ar(t) {
757
- var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), n = [];
758
- t.forEach(function(s) {
759
- e.set(s.name, s);
760
- });
761
- function a(s) {
762
- o.add(s.name);
763
- var c = [].concat(s.requires || [], s.requiresIfExists || []);
764
- c.forEach(function(i) {
765
- if (!o.has(i)) {
766
- var p = e.get(i);
767
- p && a(p);
768
- }
769
- }), n.push(s);
770
- }
771
- return t.forEach(function(s) {
772
- o.has(s.name) || a(s);
773
- }), n;
774
- }
775
- function Cr(t) {
776
- var e = Ar(t);
777
- return Io.reduce(function(o, n) {
778
- return o.concat(e.filter(function(a) {
779
- return a.phase === n;
780
- }));
781
- }, []);
782
- }
783
- function Mr(t) {
784
- var e;
785
- return function() {
786
- return e || (e = new Promise(function(o) {
787
- Promise.resolve().then(function() {
788
- e = void 0, o(t());
789
- });
790
- })), e;
791
- };
792
- }
793
- function jr(t) {
794
- var e = t.reduce(function(o, n) {
795
- var a = o[n.name];
796
- return o[n.name] = a ? Object.assign({}, a, n, {
797
- options: Object.assign({}, a.options, n.options),
798
- data: Object.assign({}, a.data, n.data)
799
- }) : n, o;
800
- }, {});
801
- return Object.keys(e).map(function(o) {
802
- return e[o];
803
- });
804
- }
805
- var kt = {
806
- placement: "bottom",
807
- modifiers: [],
808
- strategy: "absolute"
809
- };
810
- function Bt() {
811
- for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
812
- e[o] = arguments[o];
813
- return !e.some(function(n) {
814
- return !(n && typeof n.getBoundingClientRect == "function");
815
- });
816
- }
817
- function Dr(t) {
818
- t === void 0 && (t = {});
819
- var e = t, o = e.defaultModifiers, n = o === void 0 ? [] : o, a = e.defaultOptions, s = a === void 0 ? kt : a;
820
- return function(i, p, f) {
821
- f === void 0 && (f = s);
822
- var l = {
823
- placement: "bottom",
824
- orderedModifiers: [],
825
- options: Object.assign({}, kt, s),
826
- modifiersData: {},
827
- elements: {
828
- reference: i,
829
- popper: p
830
- },
831
- attributes: {},
832
- styles: {}
833
- }, g = [], x = !1, u = {
834
- state: l,
835
- setOptions: function(w) {
836
- var E = typeof w == "function" ? w(l.options) : w;
837
- m(), l.options = Object.assign({}, s, l.options, E), l.scrollParents = {
838
- reference: me(i) ? We(i) : i.contextElement ? We(i.contextElement) : [],
839
- popper: We(p)
840
- };
841
- var O = Cr(jr([].concat(n, l.options.modifiers)));
842
- return l.orderedModifiers = O.filter(function(d) {
843
- return d.enabled;
844
- }), T(), u.update();
845
- },
846
- // Sync update – it will always be executed, even if not necessary. This
847
- // is useful for low frequency updates where sync behavior simplifies the
848
- // logic.
849
- // For high frequency updates (e.g. `resize` and `scroll` events), always
850
- // prefer the async Popper#update method
851
- forceUpdate: function() {
852
- if (!x) {
853
- var w = l.elements, E = w.reference, O = w.popper;
854
- if (Bt(E, O)) {
855
- l.rects = {
856
- reference: Rr(E, Fe(O), l.options.strategy === "fixed"),
857
- popper: vt(O)
858
- }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(P) {
859
- return l.modifiersData[P.name] = Object.assign({}, P.data);
860
- });
861
- for (var d = 0; d < l.orderedModifiers.length; d++) {
862
- if (l.reset === !0) {
863
- l.reset = !1, d = -1;
864
- continue;
865
- }
866
- var y = l.orderedModifiers[d], b = y.fn, R = y.options, S = R === void 0 ? {} : R, A = y.name;
867
- typeof b == "function" && (l = b({
868
- state: l,
869
- options: S,
870
- name: A,
871
- instance: u
872
- }) || l);
873
- }
874
- }
875
- }
876
- },
877
- // Async and optimistically optimized update – it will not be executed if
878
- // not necessary (debounced to run at most once-per-tick)
879
- update: Mr(function() {
880
- return new Promise(function(h) {
881
- u.forceUpdate(), h(l);
882
- });
883
- }),
884
- destroy: function() {
885
- m(), x = !0;
886
- }
887
- };
888
- if (!Bt(i, p))
889
- return u;
890
- u.setOptions(f).then(function(h) {
891
- !x && f.onFirstUpdate && f.onFirstUpdate(h);
892
- });
893
- function T() {
894
- l.orderedModifiers.forEach(function(h) {
895
- var w = h.name, E = h.options, O = E === void 0 ? {} : E, d = h.effect;
896
- if (typeof d == "function") {
897
- var y = d({
898
- state: l,
899
- name: w,
900
- instance: u,
901
- options: O
902
- }), b = function() {
903
- };
904
- g.push(y || b);
905
- }
906
- });
907
- }
908
- function m() {
909
- g.forEach(function(h) {
910
- return h();
911
- }), g = [];
912
- }
913
- return u;
914
- };
915
- }
916
- var Sr = [tr, br, _o, Fo, gr, ur, xr, Ko, mr], $r = /* @__PURE__ */ Dr({
917
- defaultModifiers: Sr
918
- });
919
- function Lr(t) {
920
- return It("MuiPopper", t);
921
- }
922
- Wt("MuiPopper", ["root"]);
923
- function kr(t, e) {
924
- if (e === "ltr")
925
- return t;
926
- switch (t) {
927
- case "bottom-end":
928
- return "bottom-start";
929
- case "bottom-start":
930
- return "bottom-end";
931
- case "top-end":
932
- return "top-start";
933
- case "top-start":
934
- return "top-end";
935
- default:
936
- return t;
937
- }
938
- }
939
- function tt(t) {
940
- return typeof t == "function" ? t() : t;
941
- }
942
- function nt(t) {
943
- return t.nodeType !== void 0;
944
- }
945
- function Br(t) {
946
- return !nt(t);
947
- }
948
- const Nr = (t) => {
949
- const {
950
- classes: e
951
- } = t;
952
- return Ht({
953
- root: ["root"]
954
- }, Lr, e);
955
- }, Wr = {}, Ir = /* @__PURE__ */ M.forwardRef(function(e, o) {
956
- const {
957
- anchorEl: n,
958
- children: a,
959
- direction: s,
960
- disablePortal: c,
961
- modifiers: i,
962
- open: p,
963
- placement: f,
964
- popperOptions: l,
965
- popperRef: g,
966
- slotProps: x = {},
967
- slots: u = {},
968
- TransitionProps: T,
969
- // @ts-ignore internal logic
970
- ownerState: m,
971
- // prevent from spreading to DOM, it can come from the parent component e.g. Select.
972
- ...h
973
- } = e, w = M.useRef(null), E = pt(w, o), O = M.useRef(null), d = pt(O, g), y = M.useRef(d);
974
- Tt(() => {
975
- y.current = d;
976
- }, [d]), M.useImperativeHandle(g, () => O.current, []);
977
- const b = kr(f, s), [R, S] = M.useState(b), [A, P] = M.useState(tt(n));
978
- M.useEffect(() => {
979
- O.current && O.current.forceUpdate();
980
- }), M.useEffect(() => {
981
- n && P(tt(n));
982
- }, [n]), Tt(() => {
983
- if (!A || !p)
984
- return;
985
- const K = (N) => {
986
- S(N.placement);
987
- };
988
- if (process.env.NODE_ENV !== "production" && A && nt(A) && A.nodeType === 1) {
989
- const N = A.getBoundingClientRect();
990
- process.env.NODE_ENV !== "test" && N.top === 0 && N.left === 0 && N.right === 0 && N.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
991
- `));
992
- }
993
- let $ = [{
994
- name: "preventOverflow",
995
- options: {
996
- altBoundary: c
997
- }
998
- }, {
999
- name: "flip",
1000
- options: {
1001
- altBoundary: c
1002
- }
1003
- }, {
1004
- name: "onUpdate",
1005
- enabled: !0,
1006
- phase: "afterWrite",
1007
- fn: ({
1008
- state: N
1009
- }) => {
1010
- K(N);
1011
- }
1012
- }];
1013
- i != null && ($ = $.concat(i)), l && l.modifiers != null && ($ = $.concat(l.modifiers));
1014
- const D = $r(A, w.current, {
1015
- placement: b,
1016
- ...l,
1017
- modifiers: $
1018
- });
1019
- return y.current(D), () => {
1020
- D.destroy(), y.current(null);
1021
- };
1022
- }, [A, c, i, p, l, b]);
1023
- const C = {
1024
- placement: R
1025
- };
1026
- T !== null && (C.TransitionProps = T);
1027
- const W = Nr(e), j = u.root ?? "div", G = Po({
1028
- elementType: j,
1029
- externalSlotProps: x.root,
1030
- externalForwardedProps: h,
1031
- additionalProps: {
1032
- role: "tooltip",
1033
- ref: E
1034
- },
1035
- ownerState: e,
1036
- className: W.root
1037
- });
1038
- return /* @__PURE__ */ k(j, {
1039
- ...G,
1040
- children: typeof a == "function" ? a(C) : a
1041
- });
1042
- }), oo = /* @__PURE__ */ M.forwardRef(function(e, o) {
1043
- const {
1044
- anchorEl: n,
1045
- children: a,
1046
- container: s,
1047
- direction: c = "ltr",
1048
- disablePortal: i = !1,
1049
- keepMounted: p = !1,
1050
- modifiers: f,
1051
- open: l,
1052
- placement: g = "bottom",
1053
- popperOptions: x = Wr,
1054
- popperRef: u,
1055
- style: T,
1056
- transition: m = !1,
1057
- slotProps: h = {},
1058
- slots: w = {},
1059
- ...E
1060
- } = e, [O, d] = M.useState(!0), y = () => {
1061
- d(!1);
1062
- }, b = () => {
1063
- d(!0);
1064
- };
1065
- if (!p && !l && (!m || O))
1066
- return null;
1067
- let R;
1068
- if (s)
1069
- R = s;
1070
- else if (n) {
1071
- const P = tt(n);
1072
- R = P && nt(P) ? Rt(P).body : Rt(null).body;
1073
- }
1074
- const S = !l && p && (!m || O) ? "none" : void 0, A = m ? {
1075
- in: l,
1076
- onEnter: y,
1077
- onExited: b
1078
- } : void 0;
1079
- return /* @__PURE__ */ k(Oo, {
1080
- disablePortal: i,
1081
- container: R,
1082
- children: /* @__PURE__ */ k(Ir, {
1083
- anchorEl: n,
1084
- direction: c,
1085
- disablePortal: i,
1086
- modifiers: f,
1087
- ref: o,
1088
- open: m ? !O : l,
1089
- placement: g,
1090
- popperOptions: x,
1091
- popperRef: u,
1092
- slotProps: h,
1093
- slots: w,
1094
- ...E,
1095
- style: {
1096
- // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1097
- position: "fixed",
1098
- // Fix Popper.js display issue
1099
- top: 0,
1100
- left: 0,
1101
- display: S,
1102
- ...T
1103
- },
1104
- TransitionProps: A,
1105
- children: a
1106
- })
1107
- });
1108
- });
1109
- process.env.NODE_ENV !== "production" && (oo.propTypes = {
1110
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1111
- // │ These PropTypes are generated from the TypeScript type definitions. │
1112
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1113
- // └─────────────────────────────────────────────────────────────────────┘
1114
- /**
1115
- * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1116
- * or a function that returns either.
1117
- * It's used to set the position of the popper.
1118
- * The return value will passed as the reference object of the Popper instance.
1119
- */
1120
- anchorEl: bo(r.oneOfType([_e, r.object, r.func]), (t) => {
1121
- if (t.open) {
1122
- const e = tt(t.anchorEl);
1123
- if (e && nt(e) && e.nodeType === 1) {
1124
- const o = e.getBoundingClientRect();
1125
- if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
1126
- return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1127
- `));
1128
- } else if (!e || typeof e.getBoundingClientRect != "function" || Br(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
1129
- return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
1130
- `));
1131
- }
1132
- return null;
1133
- }),
1134
- /**
1135
- * Popper render function or node.
1136
- */
1137
- children: r.oneOfType([r.node, r.func]),
1138
- /**
1139
- * An HTML element or function that returns one.
1140
- * The `container` will have the portal children appended to it.
1141
- *
1142
- * You can also provide a callback, which is called in a React layout effect.
1143
- * This lets you set the container from a ref, and also makes server-side rendering possible.
1144
- *
1145
- * By default, it uses the body of the top-level document object,
1146
- * so it's simply `document.body` most of the time.
1147
- */
1148
- container: r.oneOfType([_e, r.func]),
1149
- /**
1150
- * Direction of the text.
1151
- * @default 'ltr'
1152
- */
1153
- direction: r.oneOf(["ltr", "rtl"]),
1154
- /**
1155
- * The `children` will be under the DOM hierarchy of the parent component.
1156
- * @default false
1157
- */
1158
- disablePortal: r.bool,
1159
- /**
1160
- * Always keep the children in the DOM.
1161
- * This prop can be useful in SEO situation or
1162
- * when you want to maximize the responsiveness of the Popper.
1163
- * @default false
1164
- */
1165
- keepMounted: r.bool,
1166
- /**
1167
- * Popper.js is based on a "plugin-like" architecture,
1168
- * most of its features are fully encapsulated "modifiers".
1169
- *
1170
- * A modifier is a function that is called each time Popper.js needs to
1171
- * compute the position of the popper.
1172
- * For this reason, modifiers should be very performant to avoid bottlenecks.
1173
- * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1174
- */
1175
- modifiers: r.arrayOf(r.shape({
1176
- data: r.object,
1177
- effect: r.func,
1178
- enabled: r.bool,
1179
- fn: r.func,
1180
- name: r.any,
1181
- options: r.object,
1182
- phase: r.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1183
- requires: r.arrayOf(r.string),
1184
- requiresIfExists: r.arrayOf(r.string)
1185
- })),
1186
- /**
1187
- * If `true`, the component is shown.
1188
- */
1189
- open: r.bool.isRequired,
1190
- /**
1191
- * Popper placement.
1192
- * @default 'bottom'
1193
- */
1194
- placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1195
- /**
1196
- * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1197
- * @default {}
1198
- */
1199
- popperOptions: r.shape({
1200
- modifiers: r.array,
1201
- onFirstUpdate: r.func,
1202
- placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1203
- strategy: r.oneOf(["absolute", "fixed"])
1204
- }),
1205
- /**
1206
- * A ref that points to the used popper instance.
1207
- */
1208
- popperRef: qt,
1209
- /**
1210
- * The props used for each slot inside the Popper.
1211
- * @default {}
1212
- */
1213
- slotProps: r.shape({
1214
- root: r.oneOfType([r.func, r.object])
1215
- }),
1216
- /**
1217
- * The components used for each slot inside the Popper.
1218
- * Either a string to use a HTML element or a component.
1219
- * @default {}
1220
- */
1221
- slots: r.shape({
1222
- root: r.elementType
1223
- }),
1224
- /**
1225
- * Help supporting a react-transition-group/Transition component.
1226
- * @default false
1227
- */
1228
- transition: r.bool
1229
- });
1230
- const Hr = ot(oo, {
1231
- name: "MuiPopper",
1232
- slot: "Root",
1233
- overridesResolver: (t, e) => e.root
1234
- })({}), wt = /* @__PURE__ */ M.forwardRef(function(e, o) {
1235
- const n = zt(), a = Vt({
1236
- props: e,
1237
- name: "MuiPopper"
1238
- }), {
1239
- anchorEl: s,
1240
- component: c,
1241
- components: i,
1242
- componentsProps: p,
1243
- container: f,
1244
- disablePortal: l,
1245
- keepMounted: g,
1246
- modifiers: x,
1247
- open: u,
1248
- placement: T,
1249
- popperOptions: m,
1250
- popperRef: h,
1251
- transition: w,
1252
- slots: E,
1253
- slotProps: O,
1254
- ...d
1255
- } = a, y = (E == null ? void 0 : E.root) ?? (i == null ? void 0 : i.Root), b = {
1256
- anchorEl: s,
1257
- container: f,
1258
- disablePortal: l,
1259
- keepMounted: g,
1260
- modifiers: x,
1261
- open: u,
1262
- placement: T,
1263
- popperOptions: m,
1264
- popperRef: h,
1265
- transition: w,
1266
- ...d
1267
- };
1268
- return /* @__PURE__ */ k(Hr, {
1269
- as: c,
1270
- direction: n ? "rtl" : "ltr",
1271
- slots: {
1272
- root: y
1273
- },
1274
- slotProps: O ?? p,
1275
- ...b,
1276
- ref: o
1277
- });
1278
- });
1279
- process.env.NODE_ENV !== "production" && (wt.propTypes = {
1280
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1281
- // │ These PropTypes are generated from the TypeScript type definitions. │
1282
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1283
- // └─────────────────────────────────────────────────────────────────────┘
1284
- /**
1285
- * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1286
- * or a function that returns either.
1287
- * It's used to set the position of the popper.
1288
- * The return value will passed as the reference object of the Popper instance.
1289
- */
1290
- anchorEl: r.oneOfType([_e, r.object, r.func]),
1291
- /**
1292
- * Popper render function or node.
1293
- */
1294
- children: r.oneOfType([r.node, r.func]),
1295
- /**
1296
- * The component used for the root node.
1297
- * Either a string to use a HTML element or a component.
1298
- */
1299
- component: r.elementType,
1300
- /**
1301
- * The components used for each slot inside the Popper.
1302
- * Either a string to use a HTML element or a component.
1303
- *
1304
- * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
1305
- * @default {}
1306
- */
1307
- components: r.shape({
1308
- Root: r.elementType
1309
- }),
1310
- /**
1311
- * The props used for each slot inside the Popper.
1312
- *
1313
- * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
1314
- * @default {}
1315
- */
1316
- componentsProps: r.shape({
1317
- root: r.oneOfType([r.func, r.object])
1318
- }),
1319
- /**
1320
- * An HTML element or function that returns one.
1321
- * The `container` will have the portal children appended to it.
1322
- *
1323
- * You can also provide a callback, which is called in a React layout effect.
1324
- * This lets you set the container from a ref, and also makes server-side rendering possible.
1325
- *
1326
- * By default, it uses the body of the top-level document object,
1327
- * so it's simply `document.body` most of the time.
1328
- */
1329
- container: r.oneOfType([_e, r.func]),
1330
- /**
1331
- * The `children` will be under the DOM hierarchy of the parent component.
1332
- * @default false
1333
- */
1334
- disablePortal: r.bool,
1335
- /**
1336
- * Always keep the children in the DOM.
1337
- * This prop can be useful in SEO situation or
1338
- * when you want to maximize the responsiveness of the Popper.
1339
- * @default false
1340
- */
1341
- keepMounted: r.bool,
1342
- /**
1343
- * Popper.js is based on a "plugin-like" architecture,
1344
- * most of its features are fully encapsulated "modifiers".
1345
- *
1346
- * A modifier is a function that is called each time Popper.js needs to
1347
- * compute the position of the popper.
1348
- * For this reason, modifiers should be very performant to avoid bottlenecks.
1349
- * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1350
- */
1351
- modifiers: r.arrayOf(r.shape({
1352
- data: r.object,
1353
- effect: r.func,
1354
- enabled: r.bool,
1355
- fn: r.func,
1356
- name: r.any,
1357
- options: r.object,
1358
- phase: r.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1359
- requires: r.arrayOf(r.string),
1360
- requiresIfExists: r.arrayOf(r.string)
1361
- })),
1362
- /**
1363
- * If `true`, the component is shown.
1364
- */
1365
- open: r.bool.isRequired,
1366
- /**
1367
- * Popper placement.
1368
- * @default 'bottom'
1369
- */
1370
- placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1371
- /**
1372
- * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1373
- * @default {}
1374
- */
1375
- popperOptions: r.shape({
1376
- modifiers: r.array,
1377
- onFirstUpdate: r.func,
1378
- placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1379
- strategy: r.oneOf(["absolute", "fixed"])
1380
- }),
1381
- /**
1382
- * A ref that points to the used popper instance.
1383
- */
1384
- popperRef: qt,
1385
- /**
1386
- * The props used for each slot inside the Popper.
1387
- * @default {}
1388
- */
1389
- slotProps: r.shape({
1390
- root: r.oneOfType([r.func, r.object])
1391
- }),
1392
- /**
1393
- * The components used for each slot inside the Popper.
1394
- * Either a string to use a HTML element or a component.
1395
- * @default {}
1396
- */
1397
- slots: r.shape({
1398
- root: r.elementType
1399
- }),
1400
- /**
1401
- * The system prop that allows defining system overrides as well as additional CSS styles.
1402
- */
1403
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
1404
- /**
1405
- * Help supporting a react-transition-group/Transition component.
1406
- * @default false
1407
- */
1408
- transition: r.bool
1409
- });
1410
- function Vr(t) {
1411
- return It("MuiTooltip", t);
1412
- }
1413
- const L = Wt("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
1414
- function Fr(t) {
1415
- return Math.round(t * 1e5) / 1e5;
1416
- }
1417
- const Ur = (t) => {
1
+ import { jsxs as O, jsx as i, Fragment as eo } from "react/jsx-runtime";
2
+ import { T as oo } from "../../assets/Typography.js";
3
+ import { B as to } from "../../assets/Box.js";
4
+ import * as p from "react";
5
+ import { g as ro, e as xe, b as Oe, P as e } from "../../assets/createTheme.js";
6
+ import { g as no, s as q, m as K, u as po, c as Te, a as so } from "../../assets/DefaultPropsProvider.js";
7
+ import { u as io } from "../../assets/index.js";
8
+ import { u as ao, b as D, d as ye, a as A, T as lo, i as we } from "../../assets/ButtonBase.js";
9
+ import { P as Ce, G as co } from "../../assets/Grow.js";
10
+ import { u as mo, a as uo } from "../../assets/useControlled.js";
11
+ import { u as fo } from "../../assets/resolveComponentProps.js";
12
+ import { g as ho, e as go } from "../../assets/Portal.js";
13
+ import { I as ve } from "../../assets/IconButton.js";
14
+ import { c as Pe } from "../../assets/createSvgIcon.js";
15
+ import { D as bo } from "../../assets/Divider.js";
16
+ function To(r) {
17
+ return ro("MuiTooltip", r);
18
+ }
19
+ const n = no("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
20
+ function yo(r) {
21
+ return Math.round(r * 1e5) / 1e5;
22
+ }
23
+ const wo = (r) => {
1418
24
  const {
1419
- classes: e,
1420
- disableInteractive: o,
1421
- arrow: n,
1422
- touch: a,
1423
- placement: s
1424
- } = t, c = {
1425
- popper: ["popper", !o && "popperInteractive", n && "popperArrow"],
1426
- tooltip: ["tooltip", n && "tooltipArrow", a && "touch", `tooltipPlacement${Ft(s.split("-")[0])}`],
25
+ classes: o,
26
+ disableInteractive: s,
27
+ arrow: f,
28
+ touch: C,
29
+ placement: y
30
+ } = r, X = {
31
+ popper: ["popper", !s && "popperInteractive", f && "popperArrow"],
32
+ tooltip: ["tooltip", f && "tooltipArrow", C && "touch", `tooltipPlacement${xe(y.split("-")[0])}`],
1427
33
  arrow: ["arrow"]
1428
34
  };
1429
- return Ht(c, Vr, e);
1430
- }, zr = ot(wt, {
35
+ return so(X, To, o);
36
+ }, vo = q(Ce, {
1431
37
  name: "MuiTooltip",
1432
38
  slot: "Popper",
1433
- overridesResolver: (t, e) => {
39
+ overridesResolver: (r, o) => {
1434
40
  const {
1435
- ownerState: o
1436
- } = t;
1437
- return [e.popper, !o.disableInteractive && e.popperInteractive, o.arrow && e.popperArrow, !o.open && e.popperClose];
41
+ ownerState: s
42
+ } = r;
43
+ return [o.popper, !s.disableInteractive && o.popperInteractive, s.arrow && o.popperArrow, !s.open && o.popperClose];
1438
44
  }
1439
- })(ut(({
1440
- theme: t
45
+ })(K(({
46
+ theme: r
1441
47
  }) => ({
1442
- zIndex: (t.vars || t).zIndex.tooltip,
48
+ zIndex: (r.vars || r).zIndex.tooltip,
1443
49
  pointerEvents: "none",
1444
50
  variants: [{
1445
51
  props: ({
1446
- ownerState: e
1447
- }) => !e.disableInteractive,
52
+ ownerState: o
53
+ }) => !o.disableInteractive,
1448
54
  style: {
1449
55
  pointerEvents: "auto"
1450
56
  }
1451
57
  }, {
1452
58
  props: ({
1453
- open: e
1454
- }) => !e,
59
+ open: o
60
+ }) => !o,
1455
61
  style: {
1456
62
  pointerEvents: "none"
1457
63
  }
1458
64
  }, {
1459
65
  props: ({
1460
- ownerState: e
1461
- }) => e.arrow,
66
+ ownerState: o
67
+ }) => o.arrow,
1462
68
  style: {
1463
- [`&[data-popper-placement*="bottom"] .${L.arrow}`]: {
69
+ [`&[data-popper-placement*="bottom"] .${n.arrow}`]: {
1464
70
  top: 0,
1465
71
  marginTop: "-0.71em",
1466
72
  "&::before": {
1467
73
  transformOrigin: "0 100%"
1468
74
  }
1469
75
  },
1470
- [`&[data-popper-placement*="top"] .${L.arrow}`]: {
76
+ [`&[data-popper-placement*="top"] .${n.arrow}`]: {
1471
77
  bottom: 0,
1472
78
  marginBottom: "-0.71em",
1473
79
  "&::before": {
1474
80
  transformOrigin: "100% 0"
1475
81
  }
1476
82
  },
1477
- [`&[data-popper-placement*="right"] .${L.arrow}`]: {
83
+ [`&[data-popper-placement*="right"] .${n.arrow}`]: {
1478
84
  height: "1em",
1479
85
  width: "0.71em",
1480
86
  "&::before": {
1481
87
  transformOrigin: "100% 100%"
1482
88
  }
1483
89
  },
1484
- [`&[data-popper-placement*="left"] .${L.arrow}`]: {
90
+ [`&[data-popper-placement*="left"] .${n.arrow}`]: {
1485
91
  height: "1em",
1486
92
  width: "0.71em",
1487
93
  "&::before": {
@@ -1491,179 +97,179 @@ const Ur = (t) => {
1491
97
  }
1492
98
  }, {
1493
99
  props: ({
1494
- ownerState: e
1495
- }) => e.arrow && !e.isRtl,
100
+ ownerState: o
101
+ }) => o.arrow && !o.isRtl,
1496
102
  style: {
1497
- [`&[data-popper-placement*="right"] .${L.arrow}`]: {
103
+ [`&[data-popper-placement*="right"] .${n.arrow}`]: {
1498
104
  left: 0,
1499
105
  marginLeft: "-0.71em"
1500
106
  }
1501
107
  }
1502
108
  }, {
1503
109
  props: ({
1504
- ownerState: e
1505
- }) => e.arrow && !!e.isRtl,
110
+ ownerState: o
111
+ }) => o.arrow && !!o.isRtl,
1506
112
  style: {
1507
- [`&[data-popper-placement*="right"] .${L.arrow}`]: {
113
+ [`&[data-popper-placement*="right"] .${n.arrow}`]: {
1508
114
  right: 0,
1509
115
  marginRight: "-0.71em"
1510
116
  }
1511
117
  }
1512
118
  }, {
1513
119
  props: ({
1514
- ownerState: e
1515
- }) => e.arrow && !e.isRtl,
120
+ ownerState: o
121
+ }) => o.arrow && !o.isRtl,
1516
122
  style: {
1517
- [`&[data-popper-placement*="left"] .${L.arrow}`]: {
123
+ [`&[data-popper-placement*="left"] .${n.arrow}`]: {
1518
124
  right: 0,
1519
125
  marginRight: "-0.71em"
1520
126
  }
1521
127
  }
1522
128
  }, {
1523
129
  props: ({
1524
- ownerState: e
1525
- }) => e.arrow && !!e.isRtl,
130
+ ownerState: o
131
+ }) => o.arrow && !!o.isRtl,
1526
132
  style: {
1527
- [`&[data-popper-placement*="left"] .${L.arrow}`]: {
133
+ [`&[data-popper-placement*="left"] .${n.arrow}`]: {
1528
134
  left: 0,
1529
135
  marginLeft: "-0.71em"
1530
136
  }
1531
137
  }
1532
138
  }]
1533
- }))), qr = ot("div", {
139
+ }))), Ro = q("div", {
1534
140
  name: "MuiTooltip",
1535
141
  slot: "Tooltip",
1536
- overridesResolver: (t, e) => {
142
+ overridesResolver: (r, o) => {
1537
143
  const {
1538
- ownerState: o
1539
- } = t;
1540
- return [e.tooltip, o.touch && e.touch, o.arrow && e.tooltipArrow, e[`tooltipPlacement${Ft(o.placement.split("-")[0])}`]];
144
+ ownerState: s
145
+ } = r;
146
+ return [o.tooltip, s.touch && o.touch, s.arrow && o.tooltipArrow, o[`tooltipPlacement${xe(s.placement.split("-")[0])}`]];
1541
147
  }
1542
- })(ut(({
1543
- theme: t
148
+ })(K(({
149
+ theme: r
1544
150
  }) => ({
1545
- backgroundColor: t.vars ? t.vars.palette.Tooltip.bg : Ut(t.palette.grey[700], 0.92),
1546
- borderRadius: (t.vars || t).shape.borderRadius,
1547
- color: (t.vars || t).palette.common.white,
1548
- fontFamily: t.typography.fontFamily,
151
+ backgroundColor: r.vars ? r.vars.palette.Tooltip.bg : Oe(r.palette.grey[700], 0.92),
152
+ borderRadius: (r.vars || r).shape.borderRadius,
153
+ color: (r.vars || r).palette.common.white,
154
+ fontFamily: r.typography.fontFamily,
1549
155
  padding: "4px 8px",
1550
- fontSize: t.typography.pxToRem(11),
156
+ fontSize: r.typography.pxToRem(11),
1551
157
  maxWidth: 300,
1552
158
  margin: 2,
1553
159
  wordWrap: "break-word",
1554
- fontWeight: t.typography.fontWeightMedium,
1555
- [`.${L.popper}[data-popper-placement*="left"] &`]: {
160
+ fontWeight: r.typography.fontWeightMedium,
161
+ [`.${n.popper}[data-popper-placement*="left"] &`]: {
1556
162
  transformOrigin: "right center"
1557
163
  },
1558
- [`.${L.popper}[data-popper-placement*="right"] &`]: {
164
+ [`.${n.popper}[data-popper-placement*="right"] &`]: {
1559
165
  transformOrigin: "left center"
1560
166
  },
1561
- [`.${L.popper}[data-popper-placement*="top"] &`]: {
167
+ [`.${n.popper}[data-popper-placement*="top"] &`]: {
1562
168
  transformOrigin: "center bottom",
1563
169
  marginBottom: "14px"
1564
170
  },
1565
- [`.${L.popper}[data-popper-placement*="bottom"] &`]: {
171
+ [`.${n.popper}[data-popper-placement*="bottom"] &`]: {
1566
172
  transformOrigin: "center top",
1567
173
  marginTop: "14px"
1568
174
  },
1569
175
  variants: [{
1570
176
  props: ({
1571
- ownerState: e
1572
- }) => e.arrow,
177
+ ownerState: o
178
+ }) => o.arrow,
1573
179
  style: {
1574
180
  position: "relative",
1575
181
  margin: 0
1576
182
  }
1577
183
  }, {
1578
184
  props: ({
1579
- ownerState: e
1580
- }) => e.touch,
185
+ ownerState: o
186
+ }) => o.touch,
1581
187
  style: {
1582
188
  padding: "8px 16px",
1583
- fontSize: t.typography.pxToRem(14),
1584
- lineHeight: `${Fr(16 / 14)}em`,
1585
- fontWeight: t.typography.fontWeightRegular
189
+ fontSize: r.typography.pxToRem(14),
190
+ lineHeight: `${yo(16 / 14)}em`,
191
+ fontWeight: r.typography.fontWeightRegular
1586
192
  }
1587
193
  }, {
1588
194
  props: ({
1589
- ownerState: e
1590
- }) => !e.isRtl,
195
+ ownerState: o
196
+ }) => !o.isRtl,
1591
197
  style: {
1592
- [`.${L.popper}[data-popper-placement*="left"] &`]: {
198
+ [`.${n.popper}[data-popper-placement*="left"] &`]: {
1593
199
  marginRight: "14px"
1594
200
  },
1595
- [`.${L.popper}[data-popper-placement*="right"] &`]: {
201
+ [`.${n.popper}[data-popper-placement*="right"] &`]: {
1596
202
  marginLeft: "14px"
1597
203
  }
1598
204
  }
1599
205
  }, {
1600
206
  props: ({
1601
- ownerState: e
1602
- }) => !e.isRtl && e.touch,
207
+ ownerState: o
208
+ }) => !o.isRtl && o.touch,
1603
209
  style: {
1604
- [`.${L.popper}[data-popper-placement*="left"] &`]: {
210
+ [`.${n.popper}[data-popper-placement*="left"] &`]: {
1605
211
  marginRight: "24px"
1606
212
  },
1607
- [`.${L.popper}[data-popper-placement*="right"] &`]: {
213
+ [`.${n.popper}[data-popper-placement*="right"] &`]: {
1608
214
  marginLeft: "24px"
1609
215
  }
1610
216
  }
1611
217
  }, {
1612
218
  props: ({
1613
- ownerState: e
1614
- }) => !!e.isRtl,
219
+ ownerState: o
220
+ }) => !!o.isRtl,
1615
221
  style: {
1616
- [`.${L.popper}[data-popper-placement*="left"] &`]: {
222
+ [`.${n.popper}[data-popper-placement*="left"] &`]: {
1617
223
  marginLeft: "14px"
1618
224
  },
1619
- [`.${L.popper}[data-popper-placement*="right"] &`]: {
225
+ [`.${n.popper}[data-popper-placement*="right"] &`]: {
1620
226
  marginRight: "14px"
1621
227
  }
1622
228
  }
1623
229
  }, {
1624
230
  props: ({
1625
- ownerState: e
1626
- }) => !!e.isRtl && e.touch,
231
+ ownerState: o
232
+ }) => !!o.isRtl && o.touch,
1627
233
  style: {
1628
- [`.${L.popper}[data-popper-placement*="left"] &`]: {
234
+ [`.${n.popper}[data-popper-placement*="left"] &`]: {
1629
235
  marginLeft: "24px"
1630
236
  },
1631
- [`.${L.popper}[data-popper-placement*="right"] &`]: {
237
+ [`.${n.popper}[data-popper-placement*="right"] &`]: {
1632
238
  marginRight: "24px"
1633
239
  }
1634
240
  }
1635
241
  }, {
1636
242
  props: ({
1637
- ownerState: e
1638
- }) => e.touch,
243
+ ownerState: o
244
+ }) => o.touch,
1639
245
  style: {
1640
- [`.${L.popper}[data-popper-placement*="top"] &`]: {
246
+ [`.${n.popper}[data-popper-placement*="top"] &`]: {
1641
247
  marginBottom: "24px"
1642
248
  }
1643
249
  }
1644
250
  }, {
1645
251
  props: ({
1646
- ownerState: e
1647
- }) => e.touch,
252
+ ownerState: o
253
+ }) => o.touch,
1648
254
  style: {
1649
- [`.${L.popper}[data-popper-placement*="bottom"] &`]: {
255
+ [`.${n.popper}[data-popper-placement*="bottom"] &`]: {
1650
256
  marginTop: "24px"
1651
257
  }
1652
258
  }
1653
259
  }]
1654
- }))), Yr = ot("span", {
260
+ }))), xo = q("span", {
1655
261
  name: "MuiTooltip",
1656
262
  slot: "Arrow",
1657
- overridesResolver: (t, e) => e.arrow
1658
- })(ut(({
1659
- theme: t
263
+ overridesResolver: (r, o) => o.arrow
264
+ })(K(({
265
+ theme: r
1660
266
  }) => ({
1661
267
  overflow: "hidden",
1662
268
  position: "absolute",
1663
269
  width: "1em",
1664
270
  height: "0.71em",
1665
271
  boxSizing: "border-box",
1666
- color: t.vars ? t.vars.palette.Tooltip.bg : Ut(t.palette.grey[700], 0.9),
272
+ color: r.vars ? r.vars.palette.Tooltip.bg : Oe(r.palette.grey[700], 0.9),
1667
273
  "&::before": {
1668
274
  content: '""',
1669
275
  margin: "auto",
@@ -1674,252 +280,252 @@ const Ur = (t) => {
1674
280
  transform: "rotate(45deg)"
1675
281
  }
1676
282
  })));
1677
- let Je = !1;
1678
- const Nt = new wo();
1679
- let ke = {
283
+ let j = !1;
284
+ const Re = new lo();
285
+ let x = {
1680
286
  x: 0,
1681
287
  y: 0
1682
288
  };
1683
- function Qe(t, e) {
1684
- return (o, ...n) => {
1685
- e && e(o, ...n), t(o, ...n);
289
+ function k(r, o) {
290
+ return (s, ...f) => {
291
+ o && o(s, ...f), r(s, ...f);
1686
292
  };
1687
293
  }
1688
- const ft = /* @__PURE__ */ M.forwardRef(function(e, o) {
1689
- const n = Vt({
1690
- props: e,
294
+ const G = /* @__PURE__ */ p.forwardRef(function(o, s) {
295
+ const f = po({
296
+ props: o,
1691
297
  name: "MuiTooltip"
1692
298
  }), {
1693
- arrow: a = !1,
1694
- children: s,
1695
- classes: c,
1696
- components: i = {},
1697
- componentsProps: p = {},
1698
- describeChild: f = !1,
1699
- disableFocusListener: l = !1,
1700
- disableHoverListener: g = !1,
1701
- disableInteractive: x = !1,
1702
- disableTouchListener: u = !1,
1703
- enterDelay: T = 100,
1704
- enterNextDelay: m = 0,
1705
- enterTouchDelay: h = 700,
1706
- followCursor: w = !1,
1707
- id: E,
1708
- leaveDelay: O = 0,
1709
- leaveTouchDelay: d = 1500,
1710
- onClose: y,
1711
- onOpen: b,
1712
- open: R,
1713
- placement: S = "bottom",
1714
- PopperComponent: A,
1715
- PopperProps: P = {},
1716
- slotProps: C = {},
1717
- slots: W = {},
1718
- title: j,
1719
- TransitionComponent: G,
1720
- TransitionProps: K,
1721
- ...$
1722
- } = n, D = /* @__PURE__ */ M.isValidElement(s) ? s : /* @__PURE__ */ k("span", {
1723
- children: s
1724
- }), N = yo(), re = zt(), [B, ve] = M.useState(), [ne, he] = M.useState(null), J = M.useRef(!1), F = x || w, ie = Xe(), se = Xe(), U = Xe(), ge = Xe(), [at, ye] = Eo({
1725
- controlled: R,
299
+ arrow: C = !1,
300
+ children: y,
301
+ classes: X,
302
+ components: P = {},
303
+ componentsProps: M = {},
304
+ describeChild: Me = !1,
305
+ disableFocusListener: Se = !1,
306
+ disableHoverListener: J = !1,
307
+ disableInteractive: Ee = !1,
308
+ disableTouchListener: Le = !1,
309
+ enterDelay: Q = 100,
310
+ enterNextDelay: Z = 0,
311
+ enterTouchDelay: $e = 700,
312
+ followCursor: z = !1,
313
+ id: Ie,
314
+ leaveDelay: ee = 0,
315
+ leaveTouchDelay: Ne = 1500,
316
+ onClose: oe,
317
+ onOpen: te,
318
+ open: re,
319
+ placement: ne = "bottom",
320
+ PopperComponent: pe,
321
+ PopperProps: h = {},
322
+ slotProps: g = {},
323
+ slots: De = {},
324
+ title: b,
325
+ TransitionComponent: Ae,
326
+ TransitionProps: je,
327
+ ...se
328
+ } = f, d = /* @__PURE__ */ p.isValidElement(y) ? y : /* @__PURE__ */ i("span", {
329
+ children: y
330
+ }), ie = ao(), ke = io(), [a, ae] = p.useState(), [F, ze] = p.useState(null), S = p.useRef(!1), B = Ee || z, le = D(), U = D(), E = D(), ce = D(), [Fe, me] = mo({
331
+ controlled: re,
1726
332
  default: !1,
1727
333
  name: "Tooltip",
1728
334
  state: "open"
1729
335
  });
1730
- let Q = at;
336
+ let u = Fe;
1731
337
  if (process.env.NODE_ENV !== "production") {
1732
338
  const {
1733
- current: v
1734
- } = M.useRef(R !== void 0);
1735
- M.useEffect(() => {
1736
- B && B.disabled && !v && j !== "" && B.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
339
+ current: t
340
+ } = p.useRef(re !== void 0);
341
+ p.useEffect(() => {
342
+ a && a.disabled && !t && b !== "" && a.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
1737
343
  `));
1738
- }, [j, B, v]);
344
+ }, [b, a, t]);
1739
345
  }
1740
- const be = Ro(E), le = M.useRef(), we = Pt(() => {
1741
- le.current !== void 0 && (document.body.style.WebkitUserSelect = le.current, le.current = void 0), ge.clear();
346
+ const W = uo(Ie), w = p.useRef(), L = ye(() => {
347
+ w.current !== void 0 && (document.body.style.WebkitUserSelect = w.current, w.current = void 0), ce.clear();
1742
348
  });
1743
- M.useEffect(() => we, [we]);
1744
- const Ae = (v) => {
1745
- Nt.clear(), Je = !0, ye(!0), b && !Q && b(v);
1746
- }, ce = Pt(
349
+ p.useEffect(() => L, [L]);
350
+ const de = (t) => {
351
+ Re.clear(), j = !0, me(!0), te && !u && te(t);
352
+ }, $ = ye(
1747
353
  /**
1748
354
  * @param {React.SyntheticEvent | Event} event
1749
355
  */
1750
- (v) => {
1751
- Nt.start(800 + O, () => {
1752
- Je = !1;
1753
- }), ye(!1), y && Q && y(v), ie.start(N.transitions.duration.shortest, () => {
1754
- J.current = !1;
356
+ (t) => {
357
+ Re.start(800 + ee, () => {
358
+ j = !1;
359
+ }), me(!1), oe && u && oe(t), le.start(ie.transitions.duration.shortest, () => {
360
+ S.current = !1;
1755
361
  });
1756
362
  }
1757
- ), Oe = (v) => {
1758
- J.current && v.type !== "touchstart" || (B && B.removeAttribute("title"), se.clear(), U.clear(), T || Je && m ? se.start(Je ? m : T, () => {
1759
- Ae(v);
1760
- }) : Ae(v));
1761
- }, Ce = (v) => {
1762
- se.clear(), U.start(O, () => {
1763
- ce(v);
363
+ ), I = (t) => {
364
+ S.current && t.type !== "touchstart" || (a && a.removeAttribute("title"), U.clear(), E.clear(), Q || j && Z ? U.start(j ? Z : Q, () => {
365
+ de(t);
366
+ }) : de(t));
367
+ }, H = (t) => {
368
+ U.clear(), E.start(ee, () => {
369
+ $(t);
1764
370
  });
1765
- }, [, ee] = M.useState(!1), fe = (v) => {
1766
- Et(v.target) || (ee(!1), Ce(v));
1767
- }, Me = (v) => {
1768
- B || ve(v.currentTarget), Et(v.target) && (ee(!0), Oe(v));
1769
- }, je = (v) => {
1770
- J.current = !0;
1771
- const _ = D.props;
1772
- _.onTouchStart && _.onTouchStart(v);
1773
- }, De = (v) => {
1774
- je(v), U.clear(), ie.clear(), we(), le.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ge.start(h, () => {
1775
- document.body.style.WebkitUserSelect = le.current, Oe(v);
371
+ }, [, ue] = p.useState(!1), fe = (t) => {
372
+ we(t.target) || (ue(!1), H(t));
373
+ }, he = (t) => {
374
+ a || ae(t.currentTarget), we(t.target) && (ue(!0), I(t));
375
+ }, ge = (t) => {
376
+ S.current = !0;
377
+ const m = d.props;
378
+ m.onTouchStart && m.onTouchStart(t);
379
+ }, Be = (t) => {
380
+ ge(t), E.clear(), le.clear(), L(), w.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ce.start($e, () => {
381
+ document.body.style.WebkitUserSelect = w.current, I(t);
1776
382
  });
1777
- }, Ue = (v) => {
1778
- D.props.onTouchEnd && D.props.onTouchEnd(v), we(), U.start(d, () => {
1779
- ce(v);
383
+ }, Ue = (t) => {
384
+ d.props.onTouchEnd && d.props.onTouchEnd(t), L(), E.start(Ne, () => {
385
+ $(t);
1780
386
  });
1781
387
  };
1782
- M.useEffect(() => {
1783
- if (!Q)
388
+ p.useEffect(() => {
389
+ if (!u)
1784
390
  return;
1785
- function v(_) {
1786
- _.key === "Escape" && ce(_);
391
+ function t(m) {
392
+ m.key === "Escape" && $(m);
1787
393
  }
1788
- return document.addEventListener("keydown", v), () => {
1789
- document.removeEventListener("keydown", v);
394
+ return document.addEventListener("keydown", t), () => {
395
+ document.removeEventListener("keydown", t);
1790
396
  };
1791
- }, [ce, Q]);
1792
- const ze = pt(xo(D), ve, o);
1793
- !j && j !== 0 && (Q = !1);
1794
- const xe = M.useRef(), qe = (v) => {
1795
- const _ = D.props;
1796
- _.onMouseMove && _.onMouseMove(v), ke = {
1797
- x: v.clientX,
1798
- y: v.clientY
1799
- }, xe.current && xe.current.update();
1800
- }, Se = {}, it = typeof j == "string";
1801
- f ? (Se.title = !Q && it && !g ? j : null, Se["aria-describedby"] = Q ? be : null) : (Se["aria-label"] = it ? j : null, Se["aria-labelledby"] = Q && !it ? be : null);
1802
- const z = {
1803
- ...Se,
1804
- ...$,
1805
- ...D.props,
1806
- className: xt($.className, D.props.className),
1807
- onTouchStart: je,
1808
- ref: ze,
1809
- ...w ? {
1810
- onMouseMove: qe
397
+ }, [$, u]);
398
+ const We = fo(ho(d), ae, s);
399
+ !b && b !== 0 && (u = !1);
400
+ const V = p.useRef(), He = (t) => {
401
+ const m = d.props;
402
+ m.onMouseMove && m.onMouseMove(t), x = {
403
+ x: t.clientX,
404
+ y: t.clientY
405
+ }, V.current && V.current.update();
406
+ }, v = {}, _ = typeof b == "string";
407
+ Me ? (v.title = !u && _ && !J ? b : null, v["aria-describedby"] = u ? W : null) : (v["aria-label"] = _ ? b : null, v["aria-labelledby"] = u && !_ ? W : null);
408
+ const l = {
409
+ ...v,
410
+ ...se,
411
+ ...d.props,
412
+ className: Te(se.className, d.props.className),
413
+ onTouchStart: ge,
414
+ ref: We,
415
+ ...z ? {
416
+ onMouseMove: He
1811
417
  } : {}
1812
418
  };
1813
- process.env.NODE_ENV !== "production" && (z["data-mui-internal-clone-element"] = !0, M.useEffect(() => {
1814
- B && !B.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
419
+ process.env.NODE_ENV !== "production" && (l["data-mui-internal-clone-element"] = !0, p.useEffect(() => {
420
+ a && !a.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
1815
421
  `));
1816
- }, [B]));
1817
- const $e = {};
1818
- u || (z.onTouchStart = De, z.onTouchEnd = Ue), g || (z.onMouseOver = Qe(Oe, z.onMouseOver), z.onMouseLeave = Qe(Ce, z.onMouseLeave), F || ($e.onMouseOver = Oe, $e.onMouseLeave = Ce)), l || (z.onFocus = Qe(Me, z.onFocus), z.onBlur = Qe(fe, z.onBlur), F || ($e.onFocus = Me, $e.onBlur = fe)), process.env.NODE_ENV !== "production" && D.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${D.props.title}\` or the Tooltip component.`].join(`
422
+ }, [a]));
423
+ const R = {};
424
+ Le || (l.onTouchStart = Be, l.onTouchEnd = Ue), J || (l.onMouseOver = k(I, l.onMouseOver), l.onMouseLeave = k(H, l.onMouseLeave), B || (R.onMouseOver = I, R.onMouseLeave = H)), Se || (l.onFocus = k(he, l.onFocus), l.onBlur = k(fe, l.onBlur), B || (R.onFocus = he, R.onBlur = fe)), process.env.NODE_ENV !== "production" && d.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${d.props.title}\` or the Tooltip component.`].join(`
1819
425
  `));
1820
- const ue = {
1821
- ...n,
1822
- isRtl: re,
1823
- arrow: a,
1824
- disableInteractive: F,
1825
- placement: S,
1826
- PopperComponentProp: A,
1827
- touch: J.current
1828
- }, Z = typeof C.popper == "function" ? C.popper(ue) : C.popper, ro = M.useMemo(() => {
1829
- var _, Ot;
1830
- let v = [{
426
+ const T = {
427
+ ...f,
428
+ isRtl: ke,
429
+ arrow: C,
430
+ disableInteractive: B,
431
+ placement: ne,
432
+ PopperComponentProp: pe,
433
+ touch: S.current
434
+ }, c = typeof g.popper == "function" ? g.popper(T) : g.popper, Ve = p.useMemo(() => {
435
+ var m, be;
436
+ let t = [{
1831
437
  name: "arrow",
1832
- enabled: !!ne,
438
+ enabled: !!F,
1833
439
  options: {
1834
- element: ne,
440
+ element: F,
1835
441
  padding: 4
1836
442
  }
1837
443
  }];
1838
- return (_ = P.popperOptions) != null && _.modifiers && (v = v.concat(P.popperOptions.modifiers)), (Ot = Z == null ? void 0 : Z.popperOptions) != null && Ot.modifiers && (v = v.concat(Z.popperOptions.modifiers)), {
1839
- ...P.popperOptions,
1840
- ...Z == null ? void 0 : Z.popperOptions,
1841
- modifiers: v
444
+ return (m = h.popperOptions) != null && m.modifiers && (t = t.concat(h.popperOptions.modifiers)), (be = c == null ? void 0 : c.popperOptions) != null && be.modifiers && (t = t.concat(c.popperOptions.modifiers)), {
445
+ ...h.popperOptions,
446
+ ...c == null ? void 0 : c.popperOptions,
447
+ modifiers: t
1842
448
  };
1843
- }, [ne, P.popperOptions, Z == null ? void 0 : Z.popperOptions]), st = Ur(ue), no = typeof C.transition == "function" ? C.transition(ue) : C.transition, Ye = {
449
+ }, [F, h.popperOptions, c == null ? void 0 : c.popperOptions]), Y = wo(T), _e = typeof g.transition == "function" ? g.transition(T) : g.transition, N = {
1844
450
  slots: {
1845
- popper: i.Popper,
1846
- transition: i.Transition ?? G,
1847
- tooltip: i.Tooltip,
1848
- arrow: i.Arrow,
1849
- ...W
451
+ popper: P.Popper,
452
+ transition: P.Transition ?? Ae,
453
+ tooltip: P.Tooltip,
454
+ arrow: P.Arrow,
455
+ ...De
1850
456
  },
1851
457
  slotProps: {
1852
- arrow: C.arrow ?? p.arrow,
458
+ arrow: g.arrow ?? M.arrow,
1853
459
  popper: {
1854
- ...P,
1855
- ...Z ?? p.popper
460
+ ...h,
461
+ ...c ?? M.popper
1856
462
  },
1857
463
  // resolvedPopperProps can be spread because it's already an object
1858
- tooltip: C.tooltip ?? p.tooltip,
464
+ tooltip: g.tooltip ?? M.tooltip,
1859
465
  transition: {
1860
- ...K,
1861
- ...no ?? p.transition
466
+ ...je,
467
+ ..._e ?? M.transition
1862
468
  }
1863
469
  }
1864
- }, [ao, io] = Ge("popper", {
1865
- elementType: zr,
1866
- externalForwardedProps: Ye,
1867
- ownerState: ue,
1868
- className: xt(st.popper, P == null ? void 0 : P.className)
1869
- }), [so, po] = Ge("transition", {
1870
- elementType: go,
1871
- externalForwardedProps: Ye,
1872
- ownerState: ue
1873
- }), [lo, co] = Ge("tooltip", {
1874
- elementType: qr,
1875
- className: st.tooltip,
1876
- externalForwardedProps: Ye,
1877
- ownerState: ue
1878
- }), [fo, uo] = Ge("arrow", {
1879
- elementType: Yr,
1880
- className: st.arrow,
1881
- externalForwardedProps: Ye,
1882
- ownerState: ue,
1883
- ref: he
470
+ }, [Ye, Ge] = A("popper", {
471
+ elementType: vo,
472
+ externalForwardedProps: N,
473
+ ownerState: T,
474
+ className: Te(Y.popper, h == null ? void 0 : h.className)
475
+ }), [qe, Ke] = A("transition", {
476
+ elementType: co,
477
+ externalForwardedProps: N,
478
+ ownerState: T
479
+ }), [Xe, Je] = A("tooltip", {
480
+ elementType: Ro,
481
+ className: Y.tooltip,
482
+ externalForwardedProps: N,
483
+ ownerState: T
484
+ }), [Qe, Ze] = A("arrow", {
485
+ elementType: xo,
486
+ className: Y.arrow,
487
+ externalForwardedProps: N,
488
+ ownerState: T,
489
+ ref: ze
1884
490
  });
1885
- return /* @__PURE__ */ Be(M.Fragment, {
1886
- children: [/* @__PURE__ */ M.cloneElement(D, z), /* @__PURE__ */ k(ao, {
1887
- as: A ?? wt,
1888
- placement: S,
1889
- anchorEl: w ? {
491
+ return /* @__PURE__ */ O(p.Fragment, {
492
+ children: [/* @__PURE__ */ p.cloneElement(d, l), /* @__PURE__ */ i(Ye, {
493
+ as: pe ?? Ce,
494
+ placement: ne,
495
+ anchorEl: z ? {
1890
496
  getBoundingClientRect: () => ({
1891
- top: ke.y,
1892
- left: ke.x,
1893
- right: ke.x,
1894
- bottom: ke.y,
497
+ top: x.y,
498
+ left: x.x,
499
+ right: x.x,
500
+ bottom: x.y,
1895
501
  width: 0,
1896
502
  height: 0
1897
503
  })
1898
- } : B,
1899
- popperRef: xe,
1900
- open: B ? Q : !1,
1901
- id: be,
504
+ } : a,
505
+ popperRef: V,
506
+ open: a ? u : !1,
507
+ id: W,
1902
508
  transition: !0,
1903
- ...$e,
1904
- ...io,
1905
- popperOptions: ro,
509
+ ...R,
510
+ ...Ge,
511
+ popperOptions: Ve,
1906
512
  children: ({
1907
- TransitionProps: v
1908
- }) => /* @__PURE__ */ k(so, {
1909
- timeout: N.transitions.duration.shorter,
1910
- ...v,
1911
- ...po,
1912
- children: /* @__PURE__ */ Be(lo, {
1913
- ...co,
1914
- children: [j, a ? /* @__PURE__ */ k(fo, {
1915
- ...uo
513
+ TransitionProps: t
514
+ }) => /* @__PURE__ */ i(qe, {
515
+ timeout: ie.transitions.duration.shorter,
516
+ ...t,
517
+ ...Ke,
518
+ children: /* @__PURE__ */ O(Xe, {
519
+ ...Je,
520
+ children: [b, C ? /* @__PURE__ */ i(Qe, {
521
+ ...Ze
1916
522
  }) : null]
1917
523
  })
1918
524
  })
1919
525
  })]
1920
526
  });
1921
527
  });
1922
- process.env.NODE_ENV !== "production" && (ft.propTypes = {
528
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
1923
529
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1924
530
  // │ These PropTypes are generated from the TypeScript type definitions. │
1925
531
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1928,19 +534,19 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
1928
534
  * If `true`, adds an arrow to the tooltip.
1929
535
  * @default false
1930
536
  */
1931
- arrow: r.bool,
537
+ arrow: e.bool,
1932
538
  /**
1933
539
  * Tooltip reference element.
1934
540
  */
1935
- children: To.isRequired,
541
+ children: go.isRequired,
1936
542
  /**
1937
543
  * Override or extend the styles applied to the component.
1938
544
  */
1939
- classes: r.object,
545
+ classes: e.object,
1940
546
  /**
1941
547
  * @ignore
1942
548
  */
1943
- className: r.string,
549
+ className: e.string,
1944
550
  /**
1945
551
  * The components used for each slot inside.
1946
552
  *
@@ -1948,11 +554,11 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
1948
554
  *
1949
555
  * @default {}
1950
556
  */
1951
- components: r.shape({
1952
- Arrow: r.elementType,
1953
- Popper: r.elementType,
1954
- Tooltip: r.elementType,
1955
- Transition: r.elementType
557
+ components: e.shape({
558
+ Arrow: e.elementType,
559
+ Popper: e.elementType,
560
+ Tooltip: e.elementType,
561
+ Transition: e.elementType
1956
562
  }),
1957
563
  /**
1958
564
  * The extra props for the slot components.
@@ -1962,158 +568,158 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
1962
568
  *
1963
569
  * @default {}
1964
570
  */
1965
- componentsProps: r.shape({
1966
- arrow: r.object,
1967
- popper: r.object,
1968
- tooltip: r.object,
1969
- transition: r.object
571
+ componentsProps: e.shape({
572
+ arrow: e.object,
573
+ popper: e.object,
574
+ tooltip: e.object,
575
+ transition: e.object
1970
576
  }),
1971
577
  /**
1972
578
  * Set to `true` if the `title` acts as an accessible description.
1973
579
  * By default the `title` acts as an accessible label for the child.
1974
580
  * @default false
1975
581
  */
1976
- describeChild: r.bool,
582
+ describeChild: e.bool,
1977
583
  /**
1978
584
  * Do not respond to focus-visible events.
1979
585
  * @default false
1980
586
  */
1981
- disableFocusListener: r.bool,
587
+ disableFocusListener: e.bool,
1982
588
  /**
1983
589
  * Do not respond to hover events.
1984
590
  * @default false
1985
591
  */
1986
- disableHoverListener: r.bool,
592
+ disableHoverListener: e.bool,
1987
593
  /**
1988
594
  * Makes a tooltip not interactive, i.e. it will close when the user
1989
595
  * hovers over the tooltip before the `leaveDelay` is expired.
1990
596
  * @default false
1991
597
  */
1992
- disableInteractive: r.bool,
598
+ disableInteractive: e.bool,
1993
599
  /**
1994
600
  * Do not respond to long press touch events.
1995
601
  * @default false
1996
602
  */
1997
- disableTouchListener: r.bool,
603
+ disableTouchListener: e.bool,
1998
604
  /**
1999
605
  * The number of milliseconds to wait before showing the tooltip.
2000
606
  * This prop won't impact the enter touch delay (`enterTouchDelay`).
2001
607
  * @default 100
2002
608
  */
2003
- enterDelay: r.number,
609
+ enterDelay: e.number,
2004
610
  /**
2005
611
  * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
2006
612
  * @default 0
2007
613
  */
2008
- enterNextDelay: r.number,
614
+ enterNextDelay: e.number,
2009
615
  /**
2010
616
  * The number of milliseconds a user must touch the element before showing the tooltip.
2011
617
  * @default 700
2012
618
  */
2013
- enterTouchDelay: r.number,
619
+ enterTouchDelay: e.number,
2014
620
  /**
2015
621
  * If `true`, the tooltip follow the cursor over the wrapped element.
2016
622
  * @default false
2017
623
  */
2018
- followCursor: r.bool,
624
+ followCursor: e.bool,
2019
625
  /**
2020
626
  * This prop is used to help implement the accessibility logic.
2021
627
  * If you don't provide this prop. It falls back to a randomly generated id.
2022
628
  */
2023
- id: r.string,
629
+ id: e.string,
2024
630
  /**
2025
631
  * The number of milliseconds to wait before hiding the tooltip.
2026
632
  * This prop won't impact the leave touch delay (`leaveTouchDelay`).
2027
633
  * @default 0
2028
634
  */
2029
- leaveDelay: r.number,
635
+ leaveDelay: e.number,
2030
636
  /**
2031
637
  * The number of milliseconds after the user stops touching an element before hiding the tooltip.
2032
638
  * @default 1500
2033
639
  */
2034
- leaveTouchDelay: r.number,
640
+ leaveTouchDelay: e.number,
2035
641
  /**
2036
642
  * Callback fired when the component requests to be closed.
2037
643
  *
2038
644
  * @param {React.SyntheticEvent} event The event source of the callback.
2039
645
  */
2040
- onClose: r.func,
646
+ onClose: e.func,
2041
647
  /**
2042
648
  * Callback fired when the component requests to be open.
2043
649
  *
2044
650
  * @param {React.SyntheticEvent} event The event source of the callback.
2045
651
  */
2046
- onOpen: r.func,
652
+ onOpen: e.func,
2047
653
  /**
2048
654
  * If `true`, the component is shown.
2049
655
  */
2050
- open: r.bool,
656
+ open: e.bool,
2051
657
  /**
2052
658
  * Tooltip placement.
2053
659
  * @default 'bottom'
2054
660
  */
2055
- placement: r.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
661
+ placement: e.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
2056
662
  /**
2057
663
  * The component used for the popper.
2058
664
  * @deprecated use the `slots.popper` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2059
665
  */
2060
- PopperComponent: r.elementType,
666
+ PopperComponent: e.elementType,
2061
667
  /**
2062
668
  * Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.
2063
669
  * @deprecated use the `slotProps.popper` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2064
670
  * @default {}
2065
671
  */
2066
- PopperProps: r.object,
672
+ PopperProps: e.object,
2067
673
  /**
2068
674
  * The props used for each slot inside.
2069
675
  * @default {}
2070
676
  */
2071
- slotProps: r.shape({
2072
- arrow: r.oneOfType([r.func, r.object]),
2073
- popper: r.oneOfType([r.func, r.object]),
2074
- tooltip: r.oneOfType([r.func, r.object]),
2075
- transition: r.oneOfType([r.func, r.object])
677
+ slotProps: e.shape({
678
+ arrow: e.oneOfType([e.func, e.object]),
679
+ popper: e.oneOfType([e.func, e.object]),
680
+ tooltip: e.oneOfType([e.func, e.object]),
681
+ transition: e.oneOfType([e.func, e.object])
2076
682
  }),
2077
683
  /**
2078
684
  * The components used for each slot inside.
2079
685
  * @default {}
2080
686
  */
2081
- slots: r.shape({
2082
- arrow: r.elementType,
2083
- popper: r.elementType,
2084
- tooltip: r.elementType,
2085
- transition: r.elementType
687
+ slots: e.shape({
688
+ arrow: e.elementType,
689
+ popper: e.elementType,
690
+ tooltip: e.elementType,
691
+ transition: e.elementType
2086
692
  }),
2087
693
  /**
2088
694
  * The system prop that allows defining system overrides as well as additional CSS styles.
2089
695
  */
2090
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
696
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2091
697
  /**
2092
698
  * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
2093
699
  */
2094
- title: r.node,
700
+ title: e.node,
2095
701
  /**
2096
702
  * The component used for the transition.
2097
703
  * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
2098
704
  * @deprecated use the `slots.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2099
705
  */
2100
- TransitionComponent: r.elementType,
706
+ TransitionComponent: e.elementType,
2101
707
  /**
2102
708
  * Props applied to the transition element.
2103
709
  * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
2104
710
  * @deprecated use the `slotProps.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2105
711
  * @default {}
2106
712
  */
2107
- TransitionProps: r.object
713
+ TransitionProps: e.object
2108
714
  });
2109
- const Xr = Yt(/* @__PURE__ */ k("path", {
715
+ const Oo = Pe(/* @__PURE__ */ i("path", {
2110
716
  d: "m18 7-1.41-1.41-6.34 6.34 1.41 1.41zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12zM.41 13.41 6 19l1.41-1.41L1.83 12z"
2111
- }), "DoneAll"), Gr = Yt(/* @__PURE__ */ k("path", {
717
+ }), "DoneAll"), Co = Pe(/* @__PURE__ */ i("path", {
2112
718
  d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"
2113
- }), "Settings"), cn = (t) => {
2114
- const e = t.title ?? /* @__PURE__ */ k(vo, { variant: "body1", children: "Notifications" });
2115
- return /* @__PURE__ */ Be(mo, { children: [
2116
- /* @__PURE__ */ Be(
719
+ }), "Settings"), Bo = (r) => {
720
+ const o = r.title ?? /* @__PURE__ */ i(oo, { variant: "body1", children: "Notifications" });
721
+ return /* @__PURE__ */ O(eo, { children: [
722
+ /* @__PURE__ */ O(
2117
723
  "div",
2118
724
  {
2119
725
  style: {
@@ -2123,26 +729,26 @@ const Xr = Yt(/* @__PURE__ */ k("path", {
2123
729
  padding: "16px 0 12px 0"
2124
730
  },
2125
731
  children: [
2126
- e,
2127
- /* @__PURE__ */ Be(ho, { children: [
2128
- /* @__PURE__ */ k(ft, { title: "Resolve all", children: /* @__PURE__ */ k(
2129
- At,
732
+ o,
733
+ /* @__PURE__ */ O(to, { children: [
734
+ /* @__PURE__ */ i(G, { title: "Resolve all", children: /* @__PURE__ */ i(
735
+ ve,
2130
736
  {
2131
737
  size: "small",
2132
738
  onClick: () => {
2133
- t.button1ClickHandler && t.button1ClickHandler("ALL");
739
+ r.button1ClickHandler && r.button1ClickHandler("ALL");
2134
740
  },
2135
- children: /* @__PURE__ */ k(Xr, { fontSize: "small" })
741
+ children: /* @__PURE__ */ i(Oo, { fontSize: "small" })
2136
742
  }
2137
743
  ) }),
2138
- /* @__PURE__ */ k(ft, { title: "Notification Preferences", children: /* @__PURE__ */ k(At, { size: "small", onClick: t.button2ClickHandler, children: /* @__PURE__ */ k(Gr, { fontSize: "small" }) }) })
744
+ /* @__PURE__ */ i(G, { title: "Notification Preferences", children: /* @__PURE__ */ i(ve, { size: "small", onClick: r.button2ClickHandler, children: /* @__PURE__ */ i(Co, { fontSize: "small" }) }) })
2139
745
  ] })
2140
746
  ]
2141
747
  }
2142
748
  ),
2143
- /* @__PURE__ */ k(Ao, {})
749
+ /* @__PURE__ */ i(bo, {})
2144
750
  ] });
2145
751
  };
2146
752
  export {
2147
- cn as InboxHeader
753
+ Bo as InboxHeader
2148
754
  };