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