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