jcicl 0.0.191 → 0.0.195
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/.chunks/ButtonBase.js +2 -2
- package/.chunks/CircularProgress.js +7 -7
- package/.chunks/DefaultPropsProvider.js +6 -6
- package/.chunks/Popper.js +1404 -0
- package/.chunks/Portal.js +8 -8
- package/.chunks/TextField.js +6205 -578
- package/.chunks/TransitionGroupContext.js +7 -7
- package/.chunks/createSvgIcon.js +1 -1
- package/.chunks/index.js +1 -1
- package/AppContainer/AppContainer.js +4 -4
- package/Button/Button.js +1 -1
- package/Divider/Divider.js +97 -94
- package/Input/Input.js +1 -1
- package/LabeledCheckbox/LabeledCheckbox.js +1 -1
- package/LabeledDropdown/LabeledDropdown.d.ts +2 -2
- package/LabeledDropdown/LabeledDropdown.js +2533 -195
- package/Pagination/Pagination.js +1 -1
- package/Tooltip/Tooltip.js +300 -1694
- package/package.json +1 -1
- package/.chunks/Select.js +0 -5641
- package/.chunks/dividerClasses.js +0 -9
|
@@ -0,0 +1,1404 @@
|
|
|
1
|
+
import { u as xt } from "./index.js";
|
|
2
|
+
import { a as Pt, g as Et, P as i, d as Rt, s as Tt, u as At } from "./DefaultPropsProvider.js";
|
|
3
|
+
import * as L from "react";
|
|
4
|
+
import { jsx as be } from "react/jsx-runtime";
|
|
5
|
+
import { o as ze, P as jt, H as we, d as Dt } from "./Portal.js";
|
|
6
|
+
import { c as Mt } from "./chainPropTypes.js";
|
|
7
|
+
import { r as at, u as Ge, c as Je } from "./TransitionGroupContext.js";
|
|
8
|
+
var B = "top", N = "bottom", V = "right", $ = "left", Ce = "auto", le = [B, N, V, $], ee = "start", fe = "end", Ct = "clippingParents", it = "viewport", ie = "popper", Bt = "reference", Ke = /* @__PURE__ */ le.reduce(function(e, t) {
|
|
9
|
+
return e.concat([t + "-" + ee, t + "-" + fe]);
|
|
10
|
+
}, []), st = /* @__PURE__ */ [].concat(le, [Ce]).reduce(function(e, t) {
|
|
11
|
+
return e.concat([t, t + "-" + ee, t + "-" + fe]);
|
|
12
|
+
}, []), $t = "beforeRead", kt = "read", St = "afterRead", Wt = "beforeMain", Lt = "main", Ht = "afterMain", Nt = "beforeWrite", Vt = "write", Ut = "afterWrite", qt = [$t, kt, St, Wt, Lt, Ht, Nt, Vt, Ut];
|
|
13
|
+
function q(e) {
|
|
14
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
15
|
+
}
|
|
16
|
+
function W(e) {
|
|
17
|
+
if (e == null)
|
|
18
|
+
return window;
|
|
19
|
+
if (e.toString() !== "[object Window]") {
|
|
20
|
+
var t = e.ownerDocument;
|
|
21
|
+
return t && t.defaultView || window;
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
function Z(e) {
|
|
26
|
+
var t = W(e).Element;
|
|
27
|
+
return e instanceof t || e instanceof Element;
|
|
28
|
+
}
|
|
29
|
+
function H(e) {
|
|
30
|
+
var t = W(e).HTMLElement;
|
|
31
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
32
|
+
}
|
|
33
|
+
function Be(e) {
|
|
34
|
+
if (typeof ShadowRoot > "u")
|
|
35
|
+
return !1;
|
|
36
|
+
var t = W(e).ShadowRoot;
|
|
37
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
38
|
+
}
|
|
39
|
+
function Ft(e) {
|
|
40
|
+
var t = e.state;
|
|
41
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
42
|
+
var o = t.styles[r] || {}, n = t.attributes[r] || {}, s = t.elements[r];
|
|
43
|
+
!H(s) || !q(s) || (Object.assign(s.style, o), Object.keys(n).forEach(function(c) {
|
|
44
|
+
var a = n[c];
|
|
45
|
+
a === !1 ? s.removeAttribute(c) : s.setAttribute(c, a === !0 ? "" : a);
|
|
46
|
+
}));
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function It(e) {
|
|
50
|
+
var t = e.state, r = {
|
|
51
|
+
popper: {
|
|
52
|
+
position: t.options.strategy,
|
|
53
|
+
left: "0",
|
|
54
|
+
top: "0",
|
|
55
|
+
margin: "0"
|
|
56
|
+
},
|
|
57
|
+
arrow: {
|
|
58
|
+
position: "absolute"
|
|
59
|
+
},
|
|
60
|
+
reference: {}
|
|
61
|
+
};
|
|
62
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
63
|
+
Object.keys(t.elements).forEach(function(o) {
|
|
64
|
+
var n = t.elements[o], s = t.attributes[o] || {}, c = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : r[o]), a = c.reduce(function(p, l) {
|
|
65
|
+
return p[l] = "", p;
|
|
66
|
+
}, {});
|
|
67
|
+
!H(n) || !q(n) || (Object.assign(n.style, a), Object.keys(s).forEach(function(p) {
|
|
68
|
+
n.removeAttribute(p);
|
|
69
|
+
}));
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const Xt = {
|
|
74
|
+
name: "applyStyles",
|
|
75
|
+
enabled: !0,
|
|
76
|
+
phase: "write",
|
|
77
|
+
fn: Ft,
|
|
78
|
+
effect: It,
|
|
79
|
+
requires: ["computeStyles"]
|
|
80
|
+
};
|
|
81
|
+
function U(e) {
|
|
82
|
+
return e.split("-")[0];
|
|
83
|
+
}
|
|
84
|
+
var Q = Math.max, Oe = Math.min, te = Math.round;
|
|
85
|
+
function De() {
|
|
86
|
+
var e = navigator.userAgentData;
|
|
87
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
88
|
+
return t.brand + "/" + t.version;
|
|
89
|
+
}).join(" ") : navigator.userAgent;
|
|
90
|
+
}
|
|
91
|
+
function pt() {
|
|
92
|
+
return !/^((?!chrome|android).)*safari/i.test(De());
|
|
93
|
+
}
|
|
94
|
+
function re(e, t, r) {
|
|
95
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
96
|
+
var o = e.getBoundingClientRect(), n = 1, s = 1;
|
|
97
|
+
t && H(e) && (n = e.offsetWidth > 0 && te(o.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && te(o.height) / e.offsetHeight || 1);
|
|
98
|
+
var c = Z(e) ? W(e) : window, a = c.visualViewport, p = !pt() && r, l = (o.left + (p && a ? a.offsetLeft : 0)) / n, f = (o.top + (p && a ? a.offsetTop : 0)) / s, h = o.width / n, b = o.height / s;
|
|
99
|
+
return {
|
|
100
|
+
width: h,
|
|
101
|
+
height: b,
|
|
102
|
+
top: f,
|
|
103
|
+
right: l + h,
|
|
104
|
+
bottom: f + b,
|
|
105
|
+
left: l,
|
|
106
|
+
x: l,
|
|
107
|
+
y: f
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function $e(e) {
|
|
111
|
+
var t = re(e), r = e.offsetWidth, o = e.offsetHeight;
|
|
112
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
|
|
113
|
+
x: e.offsetLeft,
|
|
114
|
+
y: e.offsetTop,
|
|
115
|
+
width: r,
|
|
116
|
+
height: o
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function ft(e, t) {
|
|
120
|
+
var r = t.getRootNode && t.getRootNode();
|
|
121
|
+
if (e.contains(t))
|
|
122
|
+
return !0;
|
|
123
|
+
if (r && Be(r)) {
|
|
124
|
+
var o = t;
|
|
125
|
+
do {
|
|
126
|
+
if (o && e.isSameNode(o))
|
|
127
|
+
return !0;
|
|
128
|
+
o = o.parentNode || o.host;
|
|
129
|
+
} while (o);
|
|
130
|
+
}
|
|
131
|
+
return !1;
|
|
132
|
+
}
|
|
133
|
+
function X(e) {
|
|
134
|
+
return W(e).getComputedStyle(e);
|
|
135
|
+
}
|
|
136
|
+
function Yt(e) {
|
|
137
|
+
return ["table", "td", "th"].indexOf(q(e)) >= 0;
|
|
138
|
+
}
|
|
139
|
+
function z(e) {
|
|
140
|
+
return ((Z(e) ? e.ownerDocument : (
|
|
141
|
+
// $FlowFixMe[prop-missing]
|
|
142
|
+
e.document
|
|
143
|
+
)) || window.document).documentElement;
|
|
144
|
+
}
|
|
145
|
+
function Pe(e) {
|
|
146
|
+
return q(e) === "html" ? e : (
|
|
147
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
148
|
+
// $FlowFixMe[incompatible-return]
|
|
149
|
+
// $FlowFixMe[prop-missing]
|
|
150
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
151
|
+
e.parentNode || // DOM Element detected
|
|
152
|
+
(Be(e) ? e.host : null) || // ShadowRoot detected
|
|
153
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
154
|
+
z(e)
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
function Qe(e) {
|
|
158
|
+
return !H(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
159
|
+
X(e).position === "fixed" ? null : e.offsetParent;
|
|
160
|
+
}
|
|
161
|
+
function zt(e) {
|
|
162
|
+
var t = /firefox/i.test(De()), r = /Trident/i.test(De());
|
|
163
|
+
if (r && H(e)) {
|
|
164
|
+
var o = X(e);
|
|
165
|
+
if (o.position === "fixed")
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
var n = Pe(e);
|
|
169
|
+
for (Be(n) && (n = n.host); H(n) && ["html", "body"].indexOf(q(n)) < 0; ) {
|
|
170
|
+
var s = X(n);
|
|
171
|
+
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
|
|
172
|
+
return n;
|
|
173
|
+
n = n.parentNode;
|
|
174
|
+
}
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
function ue(e) {
|
|
178
|
+
for (var t = W(e), r = Qe(e); r && Yt(r) && X(r).position === "static"; )
|
|
179
|
+
r = Qe(r);
|
|
180
|
+
return r && (q(r) === "html" || q(r) === "body" && X(r).position === "static") ? t : r || zt(e) || t;
|
|
181
|
+
}
|
|
182
|
+
function ke(e) {
|
|
183
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
184
|
+
}
|
|
185
|
+
function se(e, t, r) {
|
|
186
|
+
return Q(e, Oe(t, r));
|
|
187
|
+
}
|
|
188
|
+
function Gt(e, t, r) {
|
|
189
|
+
var o = se(e, t, r);
|
|
190
|
+
return o > r ? r : o;
|
|
191
|
+
}
|
|
192
|
+
function ct() {
|
|
193
|
+
return {
|
|
194
|
+
top: 0,
|
|
195
|
+
right: 0,
|
|
196
|
+
bottom: 0,
|
|
197
|
+
left: 0
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function lt(e) {
|
|
201
|
+
return Object.assign({}, ct(), e);
|
|
202
|
+
}
|
|
203
|
+
function ut(e, t) {
|
|
204
|
+
return t.reduce(function(r, o) {
|
|
205
|
+
return r[o] = e, r;
|
|
206
|
+
}, {});
|
|
207
|
+
}
|
|
208
|
+
var Jt = function(t, r) {
|
|
209
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
210
|
+
placement: r.placement
|
|
211
|
+
})) : t, lt(typeof t != "number" ? t : ut(t, le));
|
|
212
|
+
};
|
|
213
|
+
function Kt(e) {
|
|
214
|
+
var t, r = e.state, o = e.name, n = e.options, s = r.elements.arrow, c = r.modifiersData.popperOffsets, a = U(r.placement), p = ke(a), l = [$, V].indexOf(a) >= 0, f = l ? "height" : "width";
|
|
215
|
+
if (!(!s || !c)) {
|
|
216
|
+
var h = Jt(n.padding, r), b = $e(s), u = p === "y" ? B : $, x = p === "y" ? N : V, v = r.rects.reference[f] + r.rects.reference[p] - c[p] - r.rects.popper[f], m = c[p] - r.rects.reference[p], w = ue(s), P = w ? p === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = v / 2 - m / 2, d = h[u], y = P - b[f] - h[x], g = P / 2 - b[f] / 2 + O, E = se(d, g, y), A = p;
|
|
217
|
+
r.modifiersData[o] = (t = {}, t[A] = E, t.centerOffset = E - g, t);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function Qt(e) {
|
|
221
|
+
var t = e.state, r = e.options, o = r.element, n = o === void 0 ? "[data-popper-arrow]" : o;
|
|
222
|
+
n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || ft(t.elements.popper, n) && (t.elements.arrow = n));
|
|
223
|
+
}
|
|
224
|
+
const Zt = {
|
|
225
|
+
name: "arrow",
|
|
226
|
+
enabled: !0,
|
|
227
|
+
phase: "main",
|
|
228
|
+
fn: Kt,
|
|
229
|
+
effect: Qt,
|
|
230
|
+
requires: ["popperOffsets"],
|
|
231
|
+
requiresIfExists: ["preventOverflow"]
|
|
232
|
+
};
|
|
233
|
+
function oe(e) {
|
|
234
|
+
return e.split("-")[1];
|
|
235
|
+
}
|
|
236
|
+
var _t = {
|
|
237
|
+
top: "auto",
|
|
238
|
+
right: "auto",
|
|
239
|
+
bottom: "auto",
|
|
240
|
+
left: "auto"
|
|
241
|
+
};
|
|
242
|
+
function er(e, t) {
|
|
243
|
+
var r = e.x, o = e.y, n = t.devicePixelRatio || 1;
|
|
244
|
+
return {
|
|
245
|
+
x: te(r * n) / n || 0,
|
|
246
|
+
y: te(o * n) / n || 0
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function Ze(e) {
|
|
250
|
+
var t, r = e.popper, o = e.popperRect, n = e.placement, s = e.variation, c = e.offsets, a = e.position, p = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, h = e.isFixed, b = c.x, u = b === void 0 ? 0 : b, x = c.y, v = x === void 0 ? 0 : x, m = typeof f == "function" ? f({
|
|
251
|
+
x: u,
|
|
252
|
+
y: v
|
|
253
|
+
}) : {
|
|
254
|
+
x: u,
|
|
255
|
+
y: v
|
|
256
|
+
};
|
|
257
|
+
u = m.x, v = m.y;
|
|
258
|
+
var w = c.hasOwnProperty("x"), P = c.hasOwnProperty("y"), O = $, d = B, y = window;
|
|
259
|
+
if (l) {
|
|
260
|
+
var g = ue(r), E = "clientHeight", A = "clientWidth";
|
|
261
|
+
if (g === W(r) && (g = z(r), X(g).position !== "static" && a === "absolute" && (E = "scrollHeight", A = "scrollWidth")), g = g, n === B || (n === $ || n === V) && s === fe) {
|
|
262
|
+
d = N;
|
|
263
|
+
var R = h && g === y && y.visualViewport ? y.visualViewport.height : (
|
|
264
|
+
// $FlowFixMe[prop-missing]
|
|
265
|
+
g[E]
|
|
266
|
+
);
|
|
267
|
+
v -= R - o.height, v *= p ? 1 : -1;
|
|
268
|
+
}
|
|
269
|
+
if (n === $ || (n === B || n === N) && s === fe) {
|
|
270
|
+
O = V;
|
|
271
|
+
var T = h && g === y && y.visualViewport ? y.visualViewport.width : (
|
|
272
|
+
// $FlowFixMe[prop-missing]
|
|
273
|
+
g[A]
|
|
274
|
+
);
|
|
275
|
+
u -= T - o.width, u *= p ? 1 : -1;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
var j = Object.assign({
|
|
279
|
+
position: a
|
|
280
|
+
}, l && _t), k = f === !0 ? er({
|
|
281
|
+
x: u,
|
|
282
|
+
y: v
|
|
283
|
+
}, W(r)) : {
|
|
284
|
+
x: u,
|
|
285
|
+
y: v
|
|
286
|
+
};
|
|
287
|
+
if (u = k.x, v = k.y, p) {
|
|
288
|
+
var M;
|
|
289
|
+
return Object.assign({}, j, (M = {}, M[d] = P ? "0" : "", M[O] = w ? "0" : "", M.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + v + "px)" : "translate3d(" + u + "px, " + v + "px, 0)", M));
|
|
290
|
+
}
|
|
291
|
+
return Object.assign({}, j, (t = {}, t[d] = P ? v + "px" : "", t[O] = w ? u + "px" : "", t.transform = "", t));
|
|
292
|
+
}
|
|
293
|
+
function tr(e) {
|
|
294
|
+
var t = e.state, r = e.options, o = r.gpuAcceleration, n = o === void 0 ? !0 : o, s = r.adaptive, c = s === void 0 ? !0 : s, a = r.roundOffsets, p = a === void 0 ? !0 : a, l = {
|
|
295
|
+
placement: U(t.placement),
|
|
296
|
+
variation: oe(t.placement),
|
|
297
|
+
popper: t.elements.popper,
|
|
298
|
+
popperRect: t.rects.popper,
|
|
299
|
+
gpuAcceleration: n,
|
|
300
|
+
isFixed: t.options.strategy === "fixed"
|
|
301
|
+
};
|
|
302
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ze(Object.assign({}, l, {
|
|
303
|
+
offsets: t.modifiersData.popperOffsets,
|
|
304
|
+
position: t.options.strategy,
|
|
305
|
+
adaptive: c,
|
|
306
|
+
roundOffsets: p
|
|
307
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ze(Object.assign({}, l, {
|
|
308
|
+
offsets: t.modifiersData.arrow,
|
|
309
|
+
position: "absolute",
|
|
310
|
+
adaptive: !1,
|
|
311
|
+
roundOffsets: p
|
|
312
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
313
|
+
"data-popper-placement": t.placement
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
const rr = {
|
|
317
|
+
name: "computeStyles",
|
|
318
|
+
enabled: !0,
|
|
319
|
+
phase: "beforeWrite",
|
|
320
|
+
fn: tr,
|
|
321
|
+
data: {}
|
|
322
|
+
};
|
|
323
|
+
var ye = {
|
|
324
|
+
passive: !0
|
|
325
|
+
};
|
|
326
|
+
function or(e) {
|
|
327
|
+
var t = e.state, r = e.instance, o = e.options, n = o.scroll, s = n === void 0 ? !0 : n, c = o.resize, a = c === void 0 ? !0 : c, p = W(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
328
|
+
return s && l.forEach(function(f) {
|
|
329
|
+
f.addEventListener("scroll", r.update, ye);
|
|
330
|
+
}), a && p.addEventListener("resize", r.update, ye), function() {
|
|
331
|
+
s && l.forEach(function(f) {
|
|
332
|
+
f.removeEventListener("scroll", r.update, ye);
|
|
333
|
+
}), a && p.removeEventListener("resize", r.update, ye);
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
const nr = {
|
|
337
|
+
name: "eventListeners",
|
|
338
|
+
enabled: !0,
|
|
339
|
+
phase: "write",
|
|
340
|
+
fn: function() {
|
|
341
|
+
},
|
|
342
|
+
effect: or,
|
|
343
|
+
data: {}
|
|
344
|
+
};
|
|
345
|
+
var ar = {
|
|
346
|
+
left: "right",
|
|
347
|
+
right: "left",
|
|
348
|
+
bottom: "top",
|
|
349
|
+
top: "bottom"
|
|
350
|
+
};
|
|
351
|
+
function ge(e) {
|
|
352
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
353
|
+
return ar[t];
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
var ir = {
|
|
357
|
+
start: "end",
|
|
358
|
+
end: "start"
|
|
359
|
+
};
|
|
360
|
+
function _e(e) {
|
|
361
|
+
return e.replace(/start|end/g, function(t) {
|
|
362
|
+
return ir[t];
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
function Se(e) {
|
|
366
|
+
var t = W(e), r = t.pageXOffset, o = t.pageYOffset;
|
|
367
|
+
return {
|
|
368
|
+
scrollLeft: r,
|
|
369
|
+
scrollTop: o
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
function We(e) {
|
|
373
|
+
return re(z(e)).left + Se(e).scrollLeft;
|
|
374
|
+
}
|
|
375
|
+
function sr(e, t) {
|
|
376
|
+
var r = W(e), o = z(e), n = r.visualViewport, s = o.clientWidth, c = o.clientHeight, a = 0, p = 0;
|
|
377
|
+
if (n) {
|
|
378
|
+
s = n.width, c = n.height;
|
|
379
|
+
var l = pt();
|
|
380
|
+
(l || !l && t === "fixed") && (a = n.offsetLeft, p = n.offsetTop);
|
|
381
|
+
}
|
|
382
|
+
return {
|
|
383
|
+
width: s,
|
|
384
|
+
height: c,
|
|
385
|
+
x: a + We(e),
|
|
386
|
+
y: p
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
function pr(e) {
|
|
390
|
+
var t, r = z(e), o = Se(e), n = (t = e.ownerDocument) == null ? void 0 : t.body, s = Q(r.scrollWidth, r.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), c = Q(r.scrollHeight, r.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), a = -o.scrollLeft + We(e), p = -o.scrollTop;
|
|
391
|
+
return X(n || r).direction === "rtl" && (a += Q(r.clientWidth, n ? n.clientWidth : 0) - s), {
|
|
392
|
+
width: s,
|
|
393
|
+
height: c,
|
|
394
|
+
x: a,
|
|
395
|
+
y: p
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
function Le(e) {
|
|
399
|
+
var t = X(e), r = t.overflow, o = t.overflowX, n = t.overflowY;
|
|
400
|
+
return /auto|scroll|overlay|hidden/.test(r + n + o);
|
|
401
|
+
}
|
|
402
|
+
function dt(e) {
|
|
403
|
+
return ["html", "body", "#document"].indexOf(q(e)) >= 0 ? e.ownerDocument.body : H(e) && Le(e) ? e : dt(Pe(e));
|
|
404
|
+
}
|
|
405
|
+
function pe(e, t) {
|
|
406
|
+
var r;
|
|
407
|
+
t === void 0 && (t = []);
|
|
408
|
+
var o = dt(e), n = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = W(o), c = n ? [s].concat(s.visualViewport || [], Le(o) ? o : []) : o, a = t.concat(c);
|
|
409
|
+
return n ? a : (
|
|
410
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
411
|
+
a.concat(pe(Pe(c)))
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
function Me(e) {
|
|
415
|
+
return Object.assign({}, e, {
|
|
416
|
+
left: e.x,
|
|
417
|
+
top: e.y,
|
|
418
|
+
right: e.x + e.width,
|
|
419
|
+
bottom: e.y + e.height
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
function fr(e, t) {
|
|
423
|
+
var r = re(e, !1, t === "fixed");
|
|
424
|
+
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
425
|
+
}
|
|
426
|
+
function et(e, t, r) {
|
|
427
|
+
return t === it ? Me(sr(e, r)) : Z(t) ? fr(t, r) : Me(pr(z(e)));
|
|
428
|
+
}
|
|
429
|
+
function cr(e) {
|
|
430
|
+
var t = pe(Pe(e)), r = ["absolute", "fixed"].indexOf(X(e).position) >= 0, o = r && H(e) ? ue(e) : e;
|
|
431
|
+
return Z(o) ? t.filter(function(n) {
|
|
432
|
+
return Z(n) && ft(n, o) && q(n) !== "body";
|
|
433
|
+
}) : [];
|
|
434
|
+
}
|
|
435
|
+
function lr(e, t, r, o) {
|
|
436
|
+
var n = t === "clippingParents" ? cr(e) : [].concat(t), s = [].concat(n, [r]), c = s[0], a = s.reduce(function(p, l) {
|
|
437
|
+
var f = et(e, l, o);
|
|
438
|
+
return p.top = Q(f.top, p.top), p.right = Oe(f.right, p.right), p.bottom = Oe(f.bottom, p.bottom), p.left = Q(f.left, p.left), p;
|
|
439
|
+
}, et(e, c, o));
|
|
440
|
+
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
441
|
+
}
|
|
442
|
+
function vt(e) {
|
|
443
|
+
var t = e.reference, r = e.element, o = e.placement, n = o ? U(o) : null, s = o ? oe(o) : null, c = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, p;
|
|
444
|
+
switch (n) {
|
|
445
|
+
case B:
|
|
446
|
+
p = {
|
|
447
|
+
x: c,
|
|
448
|
+
y: t.y - r.height
|
|
449
|
+
};
|
|
450
|
+
break;
|
|
451
|
+
case N:
|
|
452
|
+
p = {
|
|
453
|
+
x: c,
|
|
454
|
+
y: t.y + t.height
|
|
455
|
+
};
|
|
456
|
+
break;
|
|
457
|
+
case V:
|
|
458
|
+
p = {
|
|
459
|
+
x: t.x + t.width,
|
|
460
|
+
y: a
|
|
461
|
+
};
|
|
462
|
+
break;
|
|
463
|
+
case $:
|
|
464
|
+
p = {
|
|
465
|
+
x: t.x - r.width,
|
|
466
|
+
y: a
|
|
467
|
+
};
|
|
468
|
+
break;
|
|
469
|
+
default:
|
|
470
|
+
p = {
|
|
471
|
+
x: t.x,
|
|
472
|
+
y: t.y
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
var l = n ? ke(n) : null;
|
|
476
|
+
if (l != null) {
|
|
477
|
+
var f = l === "y" ? "height" : "width";
|
|
478
|
+
switch (s) {
|
|
479
|
+
case ee:
|
|
480
|
+
p[l] = p[l] - (t[f] / 2 - r[f] / 2);
|
|
481
|
+
break;
|
|
482
|
+
case fe:
|
|
483
|
+
p[l] = p[l] + (t[f] / 2 - r[f] / 2);
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
return p;
|
|
488
|
+
}
|
|
489
|
+
function ce(e, t) {
|
|
490
|
+
t === void 0 && (t = {});
|
|
491
|
+
var r = t, o = r.placement, n = o === void 0 ? e.placement : o, s = r.strategy, c = s === void 0 ? e.strategy : s, a = r.boundary, p = a === void 0 ? Ct : a, l = r.rootBoundary, f = l === void 0 ? it : l, h = r.elementContext, b = h === void 0 ? ie : h, u = r.altBoundary, x = u === void 0 ? !1 : u, v = r.padding, m = v === void 0 ? 0 : v, w = lt(typeof m != "number" ? m : ut(m, le)), P = b === ie ? Bt : ie, O = e.rects.popper, d = e.elements[x ? P : b], y = lr(Z(d) ? d : d.contextElement || z(e.elements.popper), p, f, c), g = re(e.elements.reference), E = vt({
|
|
492
|
+
reference: g,
|
|
493
|
+
element: O,
|
|
494
|
+
strategy: "absolute",
|
|
495
|
+
placement: n
|
|
496
|
+
}), A = Me(Object.assign({}, O, E)), R = b === ie ? A : g, T = {
|
|
497
|
+
top: y.top - R.top + w.top,
|
|
498
|
+
bottom: R.bottom - y.bottom + w.bottom,
|
|
499
|
+
left: y.left - R.left + w.left,
|
|
500
|
+
right: R.right - y.right + w.right
|
|
501
|
+
}, j = e.modifiersData.offset;
|
|
502
|
+
if (b === ie && j) {
|
|
503
|
+
var k = j[n];
|
|
504
|
+
Object.keys(T).forEach(function(M) {
|
|
505
|
+
var F = [V, N].indexOf(M) >= 0 ? 1 : -1, I = [B, N].indexOf(M) >= 0 ? "y" : "x";
|
|
506
|
+
T[M] += k[I] * F;
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
return T;
|
|
510
|
+
}
|
|
511
|
+
function ur(e, t) {
|
|
512
|
+
t === void 0 && (t = {});
|
|
513
|
+
var r = t, o = r.placement, n = r.boundary, s = r.rootBoundary, c = r.padding, a = r.flipVariations, p = r.allowedAutoPlacements, l = p === void 0 ? st : p, f = oe(o), h = f ? a ? Ke : Ke.filter(function(x) {
|
|
514
|
+
return oe(x) === f;
|
|
515
|
+
}) : le, b = h.filter(function(x) {
|
|
516
|
+
return l.indexOf(x) >= 0;
|
|
517
|
+
});
|
|
518
|
+
b.length === 0 && (b = h);
|
|
519
|
+
var u = b.reduce(function(x, v) {
|
|
520
|
+
return x[v] = ce(e, {
|
|
521
|
+
placement: v,
|
|
522
|
+
boundary: n,
|
|
523
|
+
rootBoundary: s,
|
|
524
|
+
padding: c
|
|
525
|
+
})[U(v)], x;
|
|
526
|
+
}, {});
|
|
527
|
+
return Object.keys(u).sort(function(x, v) {
|
|
528
|
+
return u[x] - u[v];
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
function dr(e) {
|
|
532
|
+
if (U(e) === Ce)
|
|
533
|
+
return [];
|
|
534
|
+
var t = ge(e);
|
|
535
|
+
return [_e(e), t, _e(t)];
|
|
536
|
+
}
|
|
537
|
+
function vr(e) {
|
|
538
|
+
var t = e.state, r = e.options, o = e.name;
|
|
539
|
+
if (!t.modifiersData[o]._skip) {
|
|
540
|
+
for (var n = r.mainAxis, s = n === void 0 ? !0 : n, c = r.altAxis, a = c === void 0 ? !0 : c, p = r.fallbackPlacements, l = r.padding, f = r.boundary, h = r.rootBoundary, b = r.altBoundary, u = r.flipVariations, x = u === void 0 ? !0 : u, v = r.allowedAutoPlacements, m = t.options.placement, w = U(m), P = w === m, O = p || (P || !x ? [ge(m)] : dr(m)), d = [m].concat(O).reduce(function(_, Y) {
|
|
541
|
+
return _.concat(U(Y) === Ce ? ur(t, {
|
|
542
|
+
placement: Y,
|
|
543
|
+
boundary: f,
|
|
544
|
+
rootBoundary: h,
|
|
545
|
+
padding: l,
|
|
546
|
+
flipVariations: x,
|
|
547
|
+
allowedAutoPlacements: v
|
|
548
|
+
}) : Y);
|
|
549
|
+
}, []), y = t.rects.reference, g = t.rects.popper, E = /* @__PURE__ */ new Map(), A = !0, R = d[0], T = 0; T < d.length; T++) {
|
|
550
|
+
var j = d[T], k = U(j), M = oe(j) === ee, F = [B, N].indexOf(k) >= 0, I = F ? "width" : "height", D = ce(t, {
|
|
551
|
+
placement: j,
|
|
552
|
+
boundary: f,
|
|
553
|
+
rootBoundary: h,
|
|
554
|
+
altBoundary: b,
|
|
555
|
+
padding: l
|
|
556
|
+
}), C = F ? M ? V : $ : M ? N : B;
|
|
557
|
+
y[I] > g[I] && (C = ge(C));
|
|
558
|
+
var S = ge(C), G = [];
|
|
559
|
+
if (s && G.push(D[k] <= 0), a && G.push(D[C] <= 0, D[S] <= 0), G.every(function(_) {
|
|
560
|
+
return _;
|
|
561
|
+
})) {
|
|
562
|
+
R = j, A = !1;
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
E.set(j, G);
|
|
566
|
+
}
|
|
567
|
+
if (A)
|
|
568
|
+
for (var de = x ? 3 : 1, Re = function(Y) {
|
|
569
|
+
var ae = d.find(function(me) {
|
|
570
|
+
var J = E.get(me);
|
|
571
|
+
if (J)
|
|
572
|
+
return J.slice(0, Y).every(function(Te) {
|
|
573
|
+
return Te;
|
|
574
|
+
});
|
|
575
|
+
});
|
|
576
|
+
if (ae)
|
|
577
|
+
return R = ae, "break";
|
|
578
|
+
}, ne = de; ne > 0; ne--) {
|
|
579
|
+
var ve = Re(ne);
|
|
580
|
+
if (ve === "break") break;
|
|
581
|
+
}
|
|
582
|
+
t.placement !== R && (t.modifiersData[o]._skip = !0, t.placement = R, t.reset = !0);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
const mr = {
|
|
586
|
+
name: "flip",
|
|
587
|
+
enabled: !0,
|
|
588
|
+
phase: "main",
|
|
589
|
+
fn: vr,
|
|
590
|
+
requiresIfExists: ["offset"],
|
|
591
|
+
data: {
|
|
592
|
+
_skip: !1
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
function tt(e, t, r) {
|
|
596
|
+
return r === void 0 && (r = {
|
|
597
|
+
x: 0,
|
|
598
|
+
y: 0
|
|
599
|
+
}), {
|
|
600
|
+
top: e.top - t.height - r.y,
|
|
601
|
+
right: e.right - t.width + r.x,
|
|
602
|
+
bottom: e.bottom - t.height + r.y,
|
|
603
|
+
left: e.left - t.width - r.x
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
function rt(e) {
|
|
607
|
+
return [B, V, N, $].some(function(t) {
|
|
608
|
+
return e[t] >= 0;
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
function hr(e) {
|
|
612
|
+
var t = e.state, r = e.name, o = t.rects.reference, n = t.rects.popper, s = t.modifiersData.preventOverflow, c = ce(t, {
|
|
613
|
+
elementContext: "reference"
|
|
614
|
+
}), a = ce(t, {
|
|
615
|
+
altBoundary: !0
|
|
616
|
+
}), p = tt(c, o), l = tt(a, n, s), f = rt(p), h = rt(l);
|
|
617
|
+
t.modifiersData[r] = {
|
|
618
|
+
referenceClippingOffsets: p,
|
|
619
|
+
popperEscapeOffsets: l,
|
|
620
|
+
isReferenceHidden: f,
|
|
621
|
+
hasPopperEscaped: h
|
|
622
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
623
|
+
"data-popper-reference-hidden": f,
|
|
624
|
+
"data-popper-escaped": h
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
const yr = {
|
|
628
|
+
name: "hide",
|
|
629
|
+
enabled: !0,
|
|
630
|
+
phase: "main",
|
|
631
|
+
requiresIfExists: ["preventOverflow"],
|
|
632
|
+
fn: hr
|
|
633
|
+
};
|
|
634
|
+
function gr(e, t, r) {
|
|
635
|
+
var o = U(e), n = [$, B].indexOf(o) >= 0 ? -1 : 1, s = typeof r == "function" ? r(Object.assign({}, t, {
|
|
636
|
+
placement: e
|
|
637
|
+
})) : r, c = s[0], a = s[1];
|
|
638
|
+
return c = c || 0, a = (a || 0) * n, [$, V].indexOf(o) >= 0 ? {
|
|
639
|
+
x: a,
|
|
640
|
+
y: c
|
|
641
|
+
} : {
|
|
642
|
+
x: c,
|
|
643
|
+
y: a
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
function br(e) {
|
|
647
|
+
var t = e.state, r = e.options, o = e.name, n = r.offset, s = n === void 0 ? [0, 0] : n, c = st.reduce(function(f, h) {
|
|
648
|
+
return f[h] = gr(h, t.rects, s), f;
|
|
649
|
+
}, {}), a = c[t.placement], p = a.x, l = a.y;
|
|
650
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += p, t.modifiersData.popperOffsets.y += l), t.modifiersData[o] = c;
|
|
651
|
+
}
|
|
652
|
+
const wr = {
|
|
653
|
+
name: "offset",
|
|
654
|
+
enabled: !0,
|
|
655
|
+
phase: "main",
|
|
656
|
+
requires: ["popperOffsets"],
|
|
657
|
+
fn: br
|
|
658
|
+
};
|
|
659
|
+
function Or(e) {
|
|
660
|
+
var t = e.state, r = e.name;
|
|
661
|
+
t.modifiersData[r] = vt({
|
|
662
|
+
reference: t.rects.reference,
|
|
663
|
+
element: t.rects.popper,
|
|
664
|
+
strategy: "absolute",
|
|
665
|
+
placement: t.placement
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
const xr = {
|
|
669
|
+
name: "popperOffsets",
|
|
670
|
+
enabled: !0,
|
|
671
|
+
phase: "read",
|
|
672
|
+
fn: Or,
|
|
673
|
+
data: {}
|
|
674
|
+
};
|
|
675
|
+
function Pr(e) {
|
|
676
|
+
return e === "x" ? "y" : "x";
|
|
677
|
+
}
|
|
678
|
+
function Er(e) {
|
|
679
|
+
var t = e.state, r = e.options, o = e.name, n = r.mainAxis, s = n === void 0 ? !0 : n, c = r.altAxis, a = c === void 0 ? !1 : c, p = r.boundary, l = r.rootBoundary, f = r.altBoundary, h = r.padding, b = r.tether, u = b === void 0 ? !0 : b, x = r.tetherOffset, v = x === void 0 ? 0 : x, m = ce(t, {
|
|
680
|
+
boundary: p,
|
|
681
|
+
rootBoundary: l,
|
|
682
|
+
padding: h,
|
|
683
|
+
altBoundary: f
|
|
684
|
+
}), w = U(t.placement), P = oe(t.placement), O = !P, d = ke(w), y = Pr(d), g = t.modifiersData.popperOffsets, E = t.rects.reference, A = t.rects.popper, R = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
685
|
+
placement: t.placement
|
|
686
|
+
})) : v, T = typeof R == "number" ? {
|
|
687
|
+
mainAxis: R,
|
|
688
|
+
altAxis: R
|
|
689
|
+
} : Object.assign({
|
|
690
|
+
mainAxis: 0,
|
|
691
|
+
altAxis: 0
|
|
692
|
+
}, R), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, k = {
|
|
693
|
+
x: 0,
|
|
694
|
+
y: 0
|
|
695
|
+
};
|
|
696
|
+
if (g) {
|
|
697
|
+
if (s) {
|
|
698
|
+
var M, F = d === "y" ? B : $, I = d === "y" ? N : V, D = d === "y" ? "height" : "width", C = g[d], S = C + m[F], G = C - m[I], de = u ? -A[D] / 2 : 0, Re = P === ee ? E[D] : A[D], ne = P === ee ? -A[D] : -E[D], ve = t.elements.arrow, _ = u && ve ? $e(ve) : {
|
|
699
|
+
width: 0,
|
|
700
|
+
height: 0
|
|
701
|
+
}, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ct(), ae = Y[F], me = Y[I], J = se(0, E[D], _[D]), Te = O ? E[D] / 2 - de - J - ae - T.mainAxis : Re - J - ae - T.mainAxis, ht = O ? -E[D] / 2 + de + J + me + T.mainAxis : ne + J + me + T.mainAxis, Ae = t.elements.arrow && ue(t.elements.arrow), yt = Ae ? d === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, He = (M = j == null ? void 0 : j[d]) != null ? M : 0, gt = C + Te - He - yt, bt = C + ht - He, Ne = se(u ? Oe(S, gt) : S, C, u ? Q(G, bt) : G);
|
|
702
|
+
g[d] = Ne, k[d] = Ne - C;
|
|
703
|
+
}
|
|
704
|
+
if (a) {
|
|
705
|
+
var Ve, wt = d === "x" ? B : $, Ot = d === "x" ? N : V, K = g[y], he = y === "y" ? "height" : "width", Ue = K + m[wt], qe = K - m[Ot], je = [B, $].indexOf(w) !== -1, Fe = (Ve = j == null ? void 0 : j[y]) != null ? Ve : 0, Ie = je ? Ue : K - E[he] - A[he] - Fe + T.altAxis, Xe = je ? K + E[he] + A[he] - Fe - T.altAxis : qe, Ye = u && je ? Gt(Ie, K, Xe) : se(u ? Ie : Ue, K, u ? Xe : qe);
|
|
706
|
+
g[y] = Ye, k[y] = Ye - K;
|
|
707
|
+
}
|
|
708
|
+
t.modifiersData[o] = k;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
const Rr = {
|
|
712
|
+
name: "preventOverflow",
|
|
713
|
+
enabled: !0,
|
|
714
|
+
phase: "main",
|
|
715
|
+
fn: Er,
|
|
716
|
+
requiresIfExists: ["offset"]
|
|
717
|
+
};
|
|
718
|
+
function Tr(e) {
|
|
719
|
+
return {
|
|
720
|
+
scrollLeft: e.scrollLeft,
|
|
721
|
+
scrollTop: e.scrollTop
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
function Ar(e) {
|
|
725
|
+
return e === W(e) || !H(e) ? Se(e) : Tr(e);
|
|
726
|
+
}
|
|
727
|
+
function jr(e) {
|
|
728
|
+
var t = e.getBoundingClientRect(), r = te(t.width) / e.offsetWidth || 1, o = te(t.height) / e.offsetHeight || 1;
|
|
729
|
+
return r !== 1 || o !== 1;
|
|
730
|
+
}
|
|
731
|
+
function Dr(e, t, r) {
|
|
732
|
+
r === void 0 && (r = !1);
|
|
733
|
+
var o = H(t), n = H(t) && jr(t), s = z(t), c = re(e, n, r), a = {
|
|
734
|
+
scrollLeft: 0,
|
|
735
|
+
scrollTop: 0
|
|
736
|
+
}, p = {
|
|
737
|
+
x: 0,
|
|
738
|
+
y: 0
|
|
739
|
+
};
|
|
740
|
+
return (o || !o && !r) && ((q(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
741
|
+
Le(s)) && (a = Ar(t)), H(t) ? (p = re(t, !0), p.x += t.clientLeft, p.y += t.clientTop) : s && (p.x = We(s))), {
|
|
742
|
+
x: c.left + a.scrollLeft - p.x,
|
|
743
|
+
y: c.top + a.scrollTop - p.y,
|
|
744
|
+
width: c.width,
|
|
745
|
+
height: c.height
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
function Mr(e) {
|
|
749
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), o = [];
|
|
750
|
+
e.forEach(function(s) {
|
|
751
|
+
t.set(s.name, s);
|
|
752
|
+
});
|
|
753
|
+
function n(s) {
|
|
754
|
+
r.add(s.name);
|
|
755
|
+
var c = [].concat(s.requires || [], s.requiresIfExists || []);
|
|
756
|
+
c.forEach(function(a) {
|
|
757
|
+
if (!r.has(a)) {
|
|
758
|
+
var p = t.get(a);
|
|
759
|
+
p && n(p);
|
|
760
|
+
}
|
|
761
|
+
}), o.push(s);
|
|
762
|
+
}
|
|
763
|
+
return e.forEach(function(s) {
|
|
764
|
+
r.has(s.name) || n(s);
|
|
765
|
+
}), o;
|
|
766
|
+
}
|
|
767
|
+
function Cr(e) {
|
|
768
|
+
var t = Mr(e);
|
|
769
|
+
return qt.reduce(function(r, o) {
|
|
770
|
+
return r.concat(t.filter(function(n) {
|
|
771
|
+
return n.phase === o;
|
|
772
|
+
}));
|
|
773
|
+
}, []);
|
|
774
|
+
}
|
|
775
|
+
function Br(e) {
|
|
776
|
+
var t;
|
|
777
|
+
return function() {
|
|
778
|
+
return t || (t = new Promise(function(r) {
|
|
779
|
+
Promise.resolve().then(function() {
|
|
780
|
+
t = void 0, r(e());
|
|
781
|
+
});
|
|
782
|
+
})), t;
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
function $r(e) {
|
|
786
|
+
var t = e.reduce(function(r, o) {
|
|
787
|
+
var n = r[o.name];
|
|
788
|
+
return r[o.name] = n ? Object.assign({}, n, o, {
|
|
789
|
+
options: Object.assign({}, n.options, o.options),
|
|
790
|
+
data: Object.assign({}, n.data, o.data)
|
|
791
|
+
}) : o, r;
|
|
792
|
+
}, {});
|
|
793
|
+
return Object.keys(t).map(function(r) {
|
|
794
|
+
return t[r];
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
var ot = {
|
|
798
|
+
placement: "bottom",
|
|
799
|
+
modifiers: [],
|
|
800
|
+
strategy: "absolute"
|
|
801
|
+
};
|
|
802
|
+
function nt() {
|
|
803
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
804
|
+
t[r] = arguments[r];
|
|
805
|
+
return !t.some(function(o) {
|
|
806
|
+
return !(o && typeof o.getBoundingClientRect == "function");
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
function kr(e) {
|
|
810
|
+
e === void 0 && (e = {});
|
|
811
|
+
var t = e, r = t.defaultModifiers, o = r === void 0 ? [] : r, n = t.defaultOptions, s = n === void 0 ? ot : n;
|
|
812
|
+
return function(a, p, l) {
|
|
813
|
+
l === void 0 && (l = s);
|
|
814
|
+
var f = {
|
|
815
|
+
placement: "bottom",
|
|
816
|
+
orderedModifiers: [],
|
|
817
|
+
options: Object.assign({}, ot, s),
|
|
818
|
+
modifiersData: {},
|
|
819
|
+
elements: {
|
|
820
|
+
reference: a,
|
|
821
|
+
popper: p
|
|
822
|
+
},
|
|
823
|
+
attributes: {},
|
|
824
|
+
styles: {}
|
|
825
|
+
}, h = [], b = !1, u = {
|
|
826
|
+
state: f,
|
|
827
|
+
setOptions: function(w) {
|
|
828
|
+
var P = typeof w == "function" ? w(f.options) : w;
|
|
829
|
+
v(), f.options = Object.assign({}, s, f.options, P), f.scrollParents = {
|
|
830
|
+
reference: Z(a) ? pe(a) : a.contextElement ? pe(a.contextElement) : [],
|
|
831
|
+
popper: pe(p)
|
|
832
|
+
};
|
|
833
|
+
var O = Cr($r([].concat(o, f.options.modifiers)));
|
|
834
|
+
return f.orderedModifiers = O.filter(function(d) {
|
|
835
|
+
return d.enabled;
|
|
836
|
+
}), x(), u.update();
|
|
837
|
+
},
|
|
838
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
839
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
840
|
+
// logic.
|
|
841
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
842
|
+
// prefer the async Popper#update method
|
|
843
|
+
forceUpdate: function() {
|
|
844
|
+
if (!b) {
|
|
845
|
+
var w = f.elements, P = w.reference, O = w.popper;
|
|
846
|
+
if (nt(P, O)) {
|
|
847
|
+
f.rects = {
|
|
848
|
+
reference: Dr(P, ue(O), f.options.strategy === "fixed"),
|
|
849
|
+
popper: $e(O)
|
|
850
|
+
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(T) {
|
|
851
|
+
return f.modifiersData[T.name] = Object.assign({}, T.data);
|
|
852
|
+
});
|
|
853
|
+
for (var d = 0; d < f.orderedModifiers.length; d++) {
|
|
854
|
+
if (f.reset === !0) {
|
|
855
|
+
f.reset = !1, d = -1;
|
|
856
|
+
continue;
|
|
857
|
+
}
|
|
858
|
+
var y = f.orderedModifiers[d], g = y.fn, E = y.options, A = E === void 0 ? {} : E, R = y.name;
|
|
859
|
+
typeof g == "function" && (f = g({
|
|
860
|
+
state: f,
|
|
861
|
+
options: A,
|
|
862
|
+
name: R,
|
|
863
|
+
instance: u
|
|
864
|
+
}) || f);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
870
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
871
|
+
update: Br(function() {
|
|
872
|
+
return new Promise(function(m) {
|
|
873
|
+
u.forceUpdate(), m(f);
|
|
874
|
+
});
|
|
875
|
+
}),
|
|
876
|
+
destroy: function() {
|
|
877
|
+
v(), b = !0;
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
if (!nt(a, p))
|
|
881
|
+
return u;
|
|
882
|
+
u.setOptions(l).then(function(m) {
|
|
883
|
+
!b && l.onFirstUpdate && l.onFirstUpdate(m);
|
|
884
|
+
});
|
|
885
|
+
function x() {
|
|
886
|
+
f.orderedModifiers.forEach(function(m) {
|
|
887
|
+
var w = m.name, P = m.options, O = P === void 0 ? {} : P, d = m.effect;
|
|
888
|
+
if (typeof d == "function") {
|
|
889
|
+
var y = d({
|
|
890
|
+
state: f,
|
|
891
|
+
name: w,
|
|
892
|
+
instance: u,
|
|
893
|
+
options: O
|
|
894
|
+
}), g = function() {
|
|
895
|
+
};
|
|
896
|
+
h.push(y || g);
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
function v() {
|
|
901
|
+
h.forEach(function(m) {
|
|
902
|
+
return m();
|
|
903
|
+
}), h = [];
|
|
904
|
+
}
|
|
905
|
+
return u;
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
var Sr = [nr, xr, rr, Xt, wr, mr, Rr, Zt, yr], Wr = /* @__PURE__ */ kr({
|
|
909
|
+
defaultModifiers: Sr
|
|
910
|
+
});
|
|
911
|
+
function Lr(e) {
|
|
912
|
+
return Et("MuiPopper", e);
|
|
913
|
+
}
|
|
914
|
+
Pt("MuiPopper", ["root"]);
|
|
915
|
+
function Hr(e, t) {
|
|
916
|
+
if (t === "ltr")
|
|
917
|
+
return e;
|
|
918
|
+
switch (e) {
|
|
919
|
+
case "bottom-end":
|
|
920
|
+
return "bottom-start";
|
|
921
|
+
case "bottom-start":
|
|
922
|
+
return "bottom-end";
|
|
923
|
+
case "top-end":
|
|
924
|
+
return "top-start";
|
|
925
|
+
case "top-start":
|
|
926
|
+
return "top-end";
|
|
927
|
+
default:
|
|
928
|
+
return e;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
function xe(e) {
|
|
932
|
+
return typeof e == "function" ? e() : e;
|
|
933
|
+
}
|
|
934
|
+
function Ee(e) {
|
|
935
|
+
return e.nodeType !== void 0;
|
|
936
|
+
}
|
|
937
|
+
function Nr(e) {
|
|
938
|
+
return !Ee(e);
|
|
939
|
+
}
|
|
940
|
+
const Vr = (e) => {
|
|
941
|
+
const {
|
|
942
|
+
classes: t
|
|
943
|
+
} = e;
|
|
944
|
+
return Rt({
|
|
945
|
+
root: ["root"]
|
|
946
|
+
}, Lr, t);
|
|
947
|
+
}, Ur = {}, qr = /* @__PURE__ */ L.forwardRef(function(t, r) {
|
|
948
|
+
const {
|
|
949
|
+
anchorEl: o,
|
|
950
|
+
children: n,
|
|
951
|
+
direction: s,
|
|
952
|
+
disablePortal: c,
|
|
953
|
+
modifiers: a,
|
|
954
|
+
open: p,
|
|
955
|
+
placement: l,
|
|
956
|
+
popperOptions: f,
|
|
957
|
+
popperRef: h,
|
|
958
|
+
slotProps: b = {},
|
|
959
|
+
slots: u = {},
|
|
960
|
+
TransitionProps: x,
|
|
961
|
+
// @ts-ignore internal logic
|
|
962
|
+
ownerState: v,
|
|
963
|
+
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
964
|
+
...m
|
|
965
|
+
} = t, w = L.useRef(null), P = Ge(w, r), O = L.useRef(null), d = Ge(O, h), y = L.useRef(d);
|
|
966
|
+
Je(() => {
|
|
967
|
+
y.current = d;
|
|
968
|
+
}, [d]), L.useImperativeHandle(h, () => O.current, []);
|
|
969
|
+
const g = Hr(l, s), [E, A] = L.useState(g), [R, T] = L.useState(xe(o));
|
|
970
|
+
L.useEffect(() => {
|
|
971
|
+
O.current && O.current.forceUpdate();
|
|
972
|
+
}), L.useEffect(() => {
|
|
973
|
+
o && T(xe(o));
|
|
974
|
+
}, [o]), Je(() => {
|
|
975
|
+
if (!R || !p)
|
|
976
|
+
return;
|
|
977
|
+
const I = (S) => {
|
|
978
|
+
A(S.placement);
|
|
979
|
+
};
|
|
980
|
+
if (process.env.NODE_ENV !== "production" && R && Ee(R) && R.nodeType === 1) {
|
|
981
|
+
const S = R.getBoundingClientRect();
|
|
982
|
+
process.env.NODE_ENV !== "test" && S.top === 0 && S.left === 0 && S.right === 0 && S.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(`
|
|
983
|
+
`));
|
|
984
|
+
}
|
|
985
|
+
let D = [{
|
|
986
|
+
name: "preventOverflow",
|
|
987
|
+
options: {
|
|
988
|
+
altBoundary: c
|
|
989
|
+
}
|
|
990
|
+
}, {
|
|
991
|
+
name: "flip",
|
|
992
|
+
options: {
|
|
993
|
+
altBoundary: c
|
|
994
|
+
}
|
|
995
|
+
}, {
|
|
996
|
+
name: "onUpdate",
|
|
997
|
+
enabled: !0,
|
|
998
|
+
phase: "afterWrite",
|
|
999
|
+
fn: ({
|
|
1000
|
+
state: S
|
|
1001
|
+
}) => {
|
|
1002
|
+
I(S);
|
|
1003
|
+
}
|
|
1004
|
+
}];
|
|
1005
|
+
a != null && (D = D.concat(a)), f && f.modifiers != null && (D = D.concat(f.modifiers));
|
|
1006
|
+
const C = Wr(R, w.current, {
|
|
1007
|
+
placement: g,
|
|
1008
|
+
...f,
|
|
1009
|
+
modifiers: D
|
|
1010
|
+
});
|
|
1011
|
+
return y.current(C), () => {
|
|
1012
|
+
C.destroy(), y.current(null);
|
|
1013
|
+
};
|
|
1014
|
+
}, [R, c, a, p, f, g]);
|
|
1015
|
+
const j = {
|
|
1016
|
+
placement: E
|
|
1017
|
+
};
|
|
1018
|
+
x !== null && (j.TransitionProps = x);
|
|
1019
|
+
const k = Vr(t), M = u.root ?? "div", F = Dt({
|
|
1020
|
+
elementType: M,
|
|
1021
|
+
externalSlotProps: b.root,
|
|
1022
|
+
externalForwardedProps: m,
|
|
1023
|
+
additionalProps: {
|
|
1024
|
+
role: "tooltip",
|
|
1025
|
+
ref: P
|
|
1026
|
+
},
|
|
1027
|
+
ownerState: t,
|
|
1028
|
+
className: k.root
|
|
1029
|
+
});
|
|
1030
|
+
return /* @__PURE__ */ be(M, {
|
|
1031
|
+
...F,
|
|
1032
|
+
children: typeof n == "function" ? n(j) : n
|
|
1033
|
+
});
|
|
1034
|
+
}), mt = /* @__PURE__ */ L.forwardRef(function(t, r) {
|
|
1035
|
+
const {
|
|
1036
|
+
anchorEl: o,
|
|
1037
|
+
children: n,
|
|
1038
|
+
container: s,
|
|
1039
|
+
direction: c = "ltr",
|
|
1040
|
+
disablePortal: a = !1,
|
|
1041
|
+
keepMounted: p = !1,
|
|
1042
|
+
modifiers: l,
|
|
1043
|
+
open: f,
|
|
1044
|
+
placement: h = "bottom",
|
|
1045
|
+
popperOptions: b = Ur,
|
|
1046
|
+
popperRef: u,
|
|
1047
|
+
style: x,
|
|
1048
|
+
transition: v = !1,
|
|
1049
|
+
slotProps: m = {},
|
|
1050
|
+
slots: w = {},
|
|
1051
|
+
...P
|
|
1052
|
+
} = t, [O, d] = L.useState(!0), y = () => {
|
|
1053
|
+
d(!1);
|
|
1054
|
+
}, g = () => {
|
|
1055
|
+
d(!0);
|
|
1056
|
+
};
|
|
1057
|
+
if (!p && !f && (!v || O))
|
|
1058
|
+
return null;
|
|
1059
|
+
let E;
|
|
1060
|
+
if (s)
|
|
1061
|
+
E = s;
|
|
1062
|
+
else if (o) {
|
|
1063
|
+
const T = xe(o);
|
|
1064
|
+
E = T && Ee(T) ? ze(T).body : ze(null).body;
|
|
1065
|
+
}
|
|
1066
|
+
const A = !f && p && (!v || O) ? "none" : void 0, R = v ? {
|
|
1067
|
+
in: f,
|
|
1068
|
+
onEnter: y,
|
|
1069
|
+
onExited: g
|
|
1070
|
+
} : void 0;
|
|
1071
|
+
return /* @__PURE__ */ be(jt, {
|
|
1072
|
+
disablePortal: a,
|
|
1073
|
+
container: E,
|
|
1074
|
+
children: /* @__PURE__ */ be(qr, {
|
|
1075
|
+
anchorEl: o,
|
|
1076
|
+
direction: c,
|
|
1077
|
+
disablePortal: a,
|
|
1078
|
+
modifiers: l,
|
|
1079
|
+
ref: r,
|
|
1080
|
+
open: v ? !O : f,
|
|
1081
|
+
placement: h,
|
|
1082
|
+
popperOptions: b,
|
|
1083
|
+
popperRef: u,
|
|
1084
|
+
slotProps: m,
|
|
1085
|
+
slots: w,
|
|
1086
|
+
...P,
|
|
1087
|
+
style: {
|
|
1088
|
+
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
1089
|
+
position: "fixed",
|
|
1090
|
+
// Fix Popper.js display issue
|
|
1091
|
+
top: 0,
|
|
1092
|
+
left: 0,
|
|
1093
|
+
display: A,
|
|
1094
|
+
...x
|
|
1095
|
+
},
|
|
1096
|
+
TransitionProps: R,
|
|
1097
|
+
children: n
|
|
1098
|
+
})
|
|
1099
|
+
});
|
|
1100
|
+
});
|
|
1101
|
+
process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
1102
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1103
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1104
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1105
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1106
|
+
/**
|
|
1107
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1108
|
+
* or a function that returns either.
|
|
1109
|
+
* It's used to set the position of the popper.
|
|
1110
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1111
|
+
*/
|
|
1112
|
+
anchorEl: Mt(i.oneOfType([we, i.object, i.func]), (e) => {
|
|
1113
|
+
if (e.open) {
|
|
1114
|
+
const t = xe(e.anchorEl);
|
|
1115
|
+
if (t && Ee(t) && t.nodeType === 1) {
|
|
1116
|
+
const r = t.getBoundingClientRect();
|
|
1117
|
+
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1118
|
+
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(`
|
|
1119
|
+
`));
|
|
1120
|
+
} else if (!t || typeof t.getBoundingClientRect != "function" || Nr(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
|
|
1121
|
+
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(`
|
|
1122
|
+
`));
|
|
1123
|
+
}
|
|
1124
|
+
return null;
|
|
1125
|
+
}),
|
|
1126
|
+
/**
|
|
1127
|
+
* Popper render function or node.
|
|
1128
|
+
*/
|
|
1129
|
+
children: i.oneOfType([i.node, i.func]),
|
|
1130
|
+
/**
|
|
1131
|
+
* An HTML element or function that returns one.
|
|
1132
|
+
* The `container` will have the portal children appended to it.
|
|
1133
|
+
*
|
|
1134
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1135
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1136
|
+
*
|
|
1137
|
+
* By default, it uses the body of the top-level document object,
|
|
1138
|
+
* so it's simply `document.body` most of the time.
|
|
1139
|
+
*/
|
|
1140
|
+
container: i.oneOfType([we, i.func]),
|
|
1141
|
+
/**
|
|
1142
|
+
* Direction of the text.
|
|
1143
|
+
* @default 'ltr'
|
|
1144
|
+
*/
|
|
1145
|
+
direction: i.oneOf(["ltr", "rtl"]),
|
|
1146
|
+
/**
|
|
1147
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1148
|
+
* @default false
|
|
1149
|
+
*/
|
|
1150
|
+
disablePortal: i.bool,
|
|
1151
|
+
/**
|
|
1152
|
+
* Always keep the children in the DOM.
|
|
1153
|
+
* This prop can be useful in SEO situation or
|
|
1154
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1155
|
+
* @default false
|
|
1156
|
+
*/
|
|
1157
|
+
keepMounted: i.bool,
|
|
1158
|
+
/**
|
|
1159
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1160
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1161
|
+
*
|
|
1162
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1163
|
+
* compute the position of the popper.
|
|
1164
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1165
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1166
|
+
*/
|
|
1167
|
+
modifiers: i.arrayOf(i.shape({
|
|
1168
|
+
data: i.object,
|
|
1169
|
+
effect: i.func,
|
|
1170
|
+
enabled: i.bool,
|
|
1171
|
+
fn: i.func,
|
|
1172
|
+
name: i.any,
|
|
1173
|
+
options: i.object,
|
|
1174
|
+
phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1175
|
+
requires: i.arrayOf(i.string),
|
|
1176
|
+
requiresIfExists: i.arrayOf(i.string)
|
|
1177
|
+
})),
|
|
1178
|
+
/**
|
|
1179
|
+
* If `true`, the component is shown.
|
|
1180
|
+
*/
|
|
1181
|
+
open: i.bool.isRequired,
|
|
1182
|
+
/**
|
|
1183
|
+
* Popper placement.
|
|
1184
|
+
* @default 'bottom'
|
|
1185
|
+
*/
|
|
1186
|
+
placement: i.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"]),
|
|
1187
|
+
/**
|
|
1188
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1189
|
+
* @default {}
|
|
1190
|
+
*/
|
|
1191
|
+
popperOptions: i.shape({
|
|
1192
|
+
modifiers: i.array,
|
|
1193
|
+
onFirstUpdate: i.func,
|
|
1194
|
+
placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1195
|
+
strategy: i.oneOf(["absolute", "fixed"])
|
|
1196
|
+
}),
|
|
1197
|
+
/**
|
|
1198
|
+
* A ref that points to the used popper instance.
|
|
1199
|
+
*/
|
|
1200
|
+
popperRef: at,
|
|
1201
|
+
/**
|
|
1202
|
+
* The props used for each slot inside the Popper.
|
|
1203
|
+
* @default {}
|
|
1204
|
+
*/
|
|
1205
|
+
slotProps: i.shape({
|
|
1206
|
+
root: i.oneOfType([i.func, i.object])
|
|
1207
|
+
}),
|
|
1208
|
+
/**
|
|
1209
|
+
* The components used for each slot inside the Popper.
|
|
1210
|
+
* Either a string to use a HTML element or a component.
|
|
1211
|
+
* @default {}
|
|
1212
|
+
*/
|
|
1213
|
+
slots: i.shape({
|
|
1214
|
+
root: i.elementType
|
|
1215
|
+
}),
|
|
1216
|
+
/**
|
|
1217
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1218
|
+
* @default false
|
|
1219
|
+
*/
|
|
1220
|
+
transition: i.bool
|
|
1221
|
+
});
|
|
1222
|
+
const Fr = Tt(mt, {
|
|
1223
|
+
name: "MuiPopper",
|
|
1224
|
+
slot: "Root",
|
|
1225
|
+
overridesResolver: (e, t) => t.root
|
|
1226
|
+
})({}), Ir = /* @__PURE__ */ L.forwardRef(function(t, r) {
|
|
1227
|
+
const o = xt(), n = At({
|
|
1228
|
+
props: t,
|
|
1229
|
+
name: "MuiPopper"
|
|
1230
|
+
}), {
|
|
1231
|
+
anchorEl: s,
|
|
1232
|
+
component: c,
|
|
1233
|
+
components: a,
|
|
1234
|
+
componentsProps: p,
|
|
1235
|
+
container: l,
|
|
1236
|
+
disablePortal: f,
|
|
1237
|
+
keepMounted: h,
|
|
1238
|
+
modifiers: b,
|
|
1239
|
+
open: u,
|
|
1240
|
+
placement: x,
|
|
1241
|
+
popperOptions: v,
|
|
1242
|
+
popperRef: m,
|
|
1243
|
+
transition: w,
|
|
1244
|
+
slots: P,
|
|
1245
|
+
slotProps: O,
|
|
1246
|
+
...d
|
|
1247
|
+
} = n, y = (P == null ? void 0 : P.root) ?? (a == null ? void 0 : a.Root), g = {
|
|
1248
|
+
anchorEl: s,
|
|
1249
|
+
container: l,
|
|
1250
|
+
disablePortal: f,
|
|
1251
|
+
keepMounted: h,
|
|
1252
|
+
modifiers: b,
|
|
1253
|
+
open: u,
|
|
1254
|
+
placement: x,
|
|
1255
|
+
popperOptions: v,
|
|
1256
|
+
popperRef: m,
|
|
1257
|
+
transition: w,
|
|
1258
|
+
...d
|
|
1259
|
+
};
|
|
1260
|
+
return /* @__PURE__ */ be(Fr, {
|
|
1261
|
+
as: c,
|
|
1262
|
+
direction: o ? "rtl" : "ltr",
|
|
1263
|
+
slots: {
|
|
1264
|
+
root: y
|
|
1265
|
+
},
|
|
1266
|
+
slotProps: O ?? p,
|
|
1267
|
+
...g,
|
|
1268
|
+
ref: r
|
|
1269
|
+
});
|
|
1270
|
+
});
|
|
1271
|
+
process.env.NODE_ENV !== "production" && (Ir.propTypes = {
|
|
1272
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1273
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1274
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1275
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1276
|
+
/**
|
|
1277
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1278
|
+
* or a function that returns either.
|
|
1279
|
+
* It's used to set the position of the popper.
|
|
1280
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1281
|
+
*/
|
|
1282
|
+
anchorEl: i.oneOfType([we, i.object, i.func]),
|
|
1283
|
+
/**
|
|
1284
|
+
* Popper render function or node.
|
|
1285
|
+
*/
|
|
1286
|
+
children: i.oneOfType([i.node, i.func]),
|
|
1287
|
+
/**
|
|
1288
|
+
* The component used for the root node.
|
|
1289
|
+
* Either a string to use a HTML element or a component.
|
|
1290
|
+
*/
|
|
1291
|
+
component: i.elementType,
|
|
1292
|
+
/**
|
|
1293
|
+
* The components used for each slot inside the Popper.
|
|
1294
|
+
* Either a string to use a HTML element or a component.
|
|
1295
|
+
*
|
|
1296
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1297
|
+
* @default {}
|
|
1298
|
+
*/
|
|
1299
|
+
components: i.shape({
|
|
1300
|
+
Root: i.elementType
|
|
1301
|
+
}),
|
|
1302
|
+
/**
|
|
1303
|
+
* The props used for each slot inside the Popper.
|
|
1304
|
+
*
|
|
1305
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1306
|
+
* @default {}
|
|
1307
|
+
*/
|
|
1308
|
+
componentsProps: i.shape({
|
|
1309
|
+
root: i.oneOfType([i.func, i.object])
|
|
1310
|
+
}),
|
|
1311
|
+
/**
|
|
1312
|
+
* An HTML element or function that returns one.
|
|
1313
|
+
* The `container` will have the portal children appended to it.
|
|
1314
|
+
*
|
|
1315
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1316
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1317
|
+
*
|
|
1318
|
+
* By default, it uses the body of the top-level document object,
|
|
1319
|
+
* so it's simply `document.body` most of the time.
|
|
1320
|
+
*/
|
|
1321
|
+
container: i.oneOfType([we, i.func]),
|
|
1322
|
+
/**
|
|
1323
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1324
|
+
* @default false
|
|
1325
|
+
*/
|
|
1326
|
+
disablePortal: i.bool,
|
|
1327
|
+
/**
|
|
1328
|
+
* Always keep the children in the DOM.
|
|
1329
|
+
* This prop can be useful in SEO situation or
|
|
1330
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1331
|
+
* @default false
|
|
1332
|
+
*/
|
|
1333
|
+
keepMounted: i.bool,
|
|
1334
|
+
/**
|
|
1335
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1336
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1337
|
+
*
|
|
1338
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1339
|
+
* compute the position of the popper.
|
|
1340
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1341
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1342
|
+
*/
|
|
1343
|
+
modifiers: i.arrayOf(i.shape({
|
|
1344
|
+
data: i.object,
|
|
1345
|
+
effect: i.func,
|
|
1346
|
+
enabled: i.bool,
|
|
1347
|
+
fn: i.func,
|
|
1348
|
+
name: i.any,
|
|
1349
|
+
options: i.object,
|
|
1350
|
+
phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1351
|
+
requires: i.arrayOf(i.string),
|
|
1352
|
+
requiresIfExists: i.arrayOf(i.string)
|
|
1353
|
+
})),
|
|
1354
|
+
/**
|
|
1355
|
+
* If `true`, the component is shown.
|
|
1356
|
+
*/
|
|
1357
|
+
open: i.bool.isRequired,
|
|
1358
|
+
/**
|
|
1359
|
+
* Popper placement.
|
|
1360
|
+
* @default 'bottom'
|
|
1361
|
+
*/
|
|
1362
|
+
placement: i.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"]),
|
|
1363
|
+
/**
|
|
1364
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1365
|
+
* @default {}
|
|
1366
|
+
*/
|
|
1367
|
+
popperOptions: i.shape({
|
|
1368
|
+
modifiers: i.array,
|
|
1369
|
+
onFirstUpdate: i.func,
|
|
1370
|
+
placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1371
|
+
strategy: i.oneOf(["absolute", "fixed"])
|
|
1372
|
+
}),
|
|
1373
|
+
/**
|
|
1374
|
+
* A ref that points to the used popper instance.
|
|
1375
|
+
*/
|
|
1376
|
+
popperRef: at,
|
|
1377
|
+
/**
|
|
1378
|
+
* The props used for each slot inside the Popper.
|
|
1379
|
+
* @default {}
|
|
1380
|
+
*/
|
|
1381
|
+
slotProps: i.shape({
|
|
1382
|
+
root: i.oneOfType([i.func, i.object])
|
|
1383
|
+
}),
|
|
1384
|
+
/**
|
|
1385
|
+
* The components used for each slot inside the Popper.
|
|
1386
|
+
* Either a string to use a HTML element or a component.
|
|
1387
|
+
* @default {}
|
|
1388
|
+
*/
|
|
1389
|
+
slots: i.shape({
|
|
1390
|
+
root: i.elementType
|
|
1391
|
+
}),
|
|
1392
|
+
/**
|
|
1393
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1394
|
+
*/
|
|
1395
|
+
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
|
1396
|
+
/**
|
|
1397
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1398
|
+
* @default false
|
|
1399
|
+
*/
|
|
1400
|
+
transition: i.bool
|
|
1401
|
+
});
|
|
1402
|
+
export {
|
|
1403
|
+
Ir as P
|
|
1404
|
+
};
|