@ogcio/design-system-react 1.12.0 → 1.12.2
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/accordion/accordion-item.js +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/autocomplete/autocomplete.js +4 -4
- package/dist/button-group/button-group.js +44 -44
- package/dist/card/card-next.js +28 -28
- package/dist/combo-box/dropdown-item.js +30 -30
- package/dist/drawer/drawer.content.js +6 -6
- package/dist/drawer/drawer.js +8 -8
- package/dist/error-text/error-text.js +1 -1
- package/dist/forms/form-field/form-field.js +1 -1
- package/dist/forms/form-field-with-tag/form-field-with-tag.js +1 -1
- package/dist/heading/heading.js +1 -1
- package/dist/hint-text/hint-text.js +1 -1
- package/dist/icon/icon.js +32 -32
- package/dist/{index-CB-zPpNk.js → index-DNkhmzZp.js} +44 -44
- package/dist/index-ntYL1VRC.js +64 -0
- package/dist/input-checkbox/input-checkbox.js +13 -13
- package/dist/input-password/input-password.d.ts +2 -1
- package/dist/input-password/input-password.js +30 -26
- package/dist/input-radio/input-radio.js +15 -15
- package/dist/label/label.js +1 -1
- package/dist/link/link.js +1 -1
- package/dist/list/list.js +2 -2
- package/dist/modal/modal.content.js +1 -1
- package/dist/modal/modal.js +3 -3
- package/dist/popover/popover.js +466 -464
- package/dist/primitives/anchor.js +1 -1
- package/dist/progress-bar/progress-bar.js +8 -8
- package/dist/progress-stepper/progress-stepper.js +10 -10
- package/dist/score-select/score-select.js +29 -29
- package/dist/side-nav/side-nav.js +23 -23
- package/dist/spinner/spinner.js +1 -1
- package/dist/stack/stack.js +2 -2
- package/dist/table/table.js +1 -1
- package/dist/textarea/textarea.js +7 -7
- package/dist/toast/ds-toast.js +1 -1
- package/dist/tooltip/tooltip.js +1 -1
- package/package.json +5 -6
- package/dist/index-2sRBqKFV.js +0 -78
package/dist/popover/popover.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { cn as
|
|
5
|
-
var $ = "top", T = "bottom", S = "right", C = "left",
|
|
6
|
-
return
|
|
7
|
-
}, []),
|
|
8
|
-
return
|
|
9
|
-
}, []),
|
|
10
|
-
function V(
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
function R(
|
|
14
|
-
if (
|
|
2
|
+
import { jsx as lt } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as dt, useEffect as Fe } from "react";
|
|
4
|
+
import { cn as vt } from "../cn.js";
|
|
5
|
+
var $ = "top", T = "bottom", S = "right", C = "left", Pe = "auto", fe = [$, T, S, C], Q = "start", oe = "end", mt = "clippingParents", Qe = "viewport", ne = "popper", ht = "reference", qe = /* @__PURE__ */ fe.reduce(function(e, t) {
|
|
6
|
+
return e.concat([t + "-" + Q, t + "-" + oe]);
|
|
7
|
+
}, []), Ze = /* @__PURE__ */ [].concat(fe, [Pe]).reduce(function(e, t) {
|
|
8
|
+
return e.concat([t, t + "-" + Q, t + "-" + oe]);
|
|
9
|
+
}, []), gt = "beforeRead", yt = "read", bt = "afterRead", wt = "beforeMain", xt = "main", Ot = "afterMain", Et = "beforeWrite", At = "write", Pt = "afterWrite", Dt = [gt, yt, bt, wt, xt, Ot, Et, At, Pt];
|
|
10
|
+
function V(e) {
|
|
11
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
12
|
+
}
|
|
13
|
+
function R(e) {
|
|
14
|
+
if (e == null)
|
|
15
15
|
return window;
|
|
16
|
-
if (
|
|
17
|
-
var
|
|
18
|
-
return
|
|
16
|
+
if (e.toString() !== "[object Window]") {
|
|
17
|
+
var t = e.ownerDocument;
|
|
18
|
+
return t && t.defaultView || window;
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return e;
|
|
21
21
|
}
|
|
22
|
-
function K(
|
|
23
|
-
var
|
|
24
|
-
return
|
|
22
|
+
function K(e) {
|
|
23
|
+
var t = R(e).Element;
|
|
24
|
+
return e instanceof t || e instanceof Element;
|
|
25
25
|
}
|
|
26
|
-
function L(
|
|
27
|
-
var
|
|
28
|
-
return
|
|
26
|
+
function L(e) {
|
|
27
|
+
var t = R(e).HTMLElement;
|
|
28
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function De(e) {
|
|
31
31
|
if (typeof ShadowRoot > "u")
|
|
32
32
|
return !1;
|
|
33
|
-
var
|
|
34
|
-
return
|
|
35
|
-
}
|
|
36
|
-
function
|
|
37
|
-
var
|
|
38
|
-
Object.keys(
|
|
39
|
-
var n =
|
|
40
|
-
!L(
|
|
41
|
-
var
|
|
42
|
-
|
|
33
|
+
var t = R(e).ShadowRoot;
|
|
34
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
35
|
+
}
|
|
36
|
+
function jt(e) {
|
|
37
|
+
var t = e.state;
|
|
38
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
39
|
+
var n = t.styles[r] || {}, a = t.attributes[r] || {}, o = t.elements[r];
|
|
40
|
+
!L(o) || !V(o) || (Object.assign(o.style, n), Object.keys(a).forEach(function(u) {
|
|
41
|
+
var i = a[u];
|
|
42
|
+
i === !1 ? o.removeAttribute(u) : o.setAttribute(u, i === !0 ? "" : i);
|
|
43
43
|
}));
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
var
|
|
46
|
+
function Bt(e) {
|
|
47
|
+
var t = e.state, r = {
|
|
48
48
|
popper: {
|
|
49
|
-
position:
|
|
49
|
+
position: t.options.strategy,
|
|
50
50
|
left: "0",
|
|
51
51
|
top: "0",
|
|
52
52
|
margin: "0"
|
|
@@ -56,137 +56,137 @@ function Be(t) {
|
|
|
56
56
|
},
|
|
57
57
|
reference: {}
|
|
58
58
|
};
|
|
59
|
-
return Object.assign(
|
|
60
|
-
Object.keys(
|
|
61
|
-
var a =
|
|
62
|
-
return s[
|
|
59
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
60
|
+
Object.keys(t.elements).forEach(function(n) {
|
|
61
|
+
var a = t.elements[n], o = t.attributes[n] || {}, u = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), i = u.reduce(function(s, c) {
|
|
62
|
+
return s[c] = "", s;
|
|
63
63
|
}, {});
|
|
64
|
-
!L(a) || !V(a) || (Object.assign(a.style,
|
|
64
|
+
!L(a) || !V(a) || (Object.assign(a.style, i), Object.keys(o).forEach(function(s) {
|
|
65
65
|
a.removeAttribute(s);
|
|
66
66
|
}));
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
const $
|
|
70
|
+
const $t = {
|
|
71
71
|
name: "applyStyles",
|
|
72
72
|
enabled: !0,
|
|
73
73
|
phase: "write",
|
|
74
|
-
fn:
|
|
75
|
-
effect:
|
|
74
|
+
fn: jt,
|
|
75
|
+
effect: Bt,
|
|
76
76
|
requires: ["computeStyles"]
|
|
77
77
|
};
|
|
78
|
-
function H(
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
var G = Math.max,
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
return
|
|
85
|
-
return
|
|
78
|
+
function H(e) {
|
|
79
|
+
return e.split("-")[0];
|
|
80
|
+
}
|
|
81
|
+
var G = Math.max, ge = Math.min, Z = Math.round;
|
|
82
|
+
function Ee() {
|
|
83
|
+
var e = navigator.userAgentData;
|
|
84
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
85
|
+
return t.brand + "/" + t.version;
|
|
86
86
|
}).join(" ") : navigator.userAgent;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
88
|
+
function _e() {
|
|
89
|
+
return !/^((?!chrome|android).)*safari/i.test(Ee());
|
|
90
90
|
}
|
|
91
|
-
function _(
|
|
92
|
-
|
|
93
|
-
var n =
|
|
94
|
-
|
|
95
|
-
var
|
|
91
|
+
function _(e, t, r) {
|
|
92
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
93
|
+
var n = e.getBoundingClientRect(), a = 1, o = 1;
|
|
94
|
+
t && L(e) && (a = e.offsetWidth > 0 && Z(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && Z(n.height) / e.offsetHeight || 1);
|
|
95
|
+
var u = K(e) ? R(e) : window, i = u.visualViewport, s = !_e() && r, c = (n.left + (s && i ? i.offsetLeft : 0)) / a, f = (n.top + (s && i ? i.offsetTop : 0)) / o, d = n.width / a, y = n.height / o;
|
|
96
96
|
return {
|
|
97
|
-
width:
|
|
97
|
+
width: d,
|
|
98
98
|
height: y,
|
|
99
99
|
top: f,
|
|
100
|
-
right:
|
|
100
|
+
right: c + d,
|
|
101
101
|
bottom: f + y,
|
|
102
|
-
left:
|
|
103
|
-
x:
|
|
102
|
+
left: c,
|
|
103
|
+
x: c,
|
|
104
104
|
y: f
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
var
|
|
109
|
-
return Math.abs(
|
|
110
|
-
x:
|
|
111
|
-
y:
|
|
107
|
+
function je(e) {
|
|
108
|
+
var t = _(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
109
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
110
|
+
x: e.offsetLeft,
|
|
111
|
+
y: e.offsetTop,
|
|
112
112
|
width: r,
|
|
113
113
|
height: n
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
var r =
|
|
118
|
-
if (
|
|
116
|
+
function et(e, t) {
|
|
117
|
+
var r = t.getRootNode && t.getRootNode();
|
|
118
|
+
if (e.contains(t))
|
|
119
119
|
return !0;
|
|
120
|
-
if (r &&
|
|
121
|
-
var n =
|
|
120
|
+
if (r && De(r)) {
|
|
121
|
+
var n = t;
|
|
122
122
|
do {
|
|
123
|
-
if (n &&
|
|
123
|
+
if (n && e.isSameNode(n))
|
|
124
124
|
return !0;
|
|
125
125
|
n = n.parentNode || n.host;
|
|
126
126
|
} while (n);
|
|
127
127
|
}
|
|
128
128
|
return !1;
|
|
129
129
|
}
|
|
130
|
-
function N(
|
|
131
|
-
return R(
|
|
130
|
+
function N(e) {
|
|
131
|
+
return R(e).getComputedStyle(e);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return ["table", "td", "th"].indexOf(V(
|
|
133
|
+
function Ct(e) {
|
|
134
|
+
return ["table", "td", "th"].indexOf(V(e)) >= 0;
|
|
135
135
|
}
|
|
136
|
-
function q(
|
|
137
|
-
return ((K(
|
|
136
|
+
function q(e) {
|
|
137
|
+
return ((K(e) ? e.ownerDocument : (
|
|
138
138
|
// $FlowFixMe[prop-missing]
|
|
139
|
-
|
|
139
|
+
e.document
|
|
140
140
|
)) || window.document).documentElement;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
return V(
|
|
142
|
+
function ye(e) {
|
|
143
|
+
return V(e) === "html" ? e : (
|
|
144
144
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
145
145
|
// $FlowFixMe[incompatible-return]
|
|
146
146
|
// $FlowFixMe[prop-missing]
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
(
|
|
147
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
148
|
+
e.parentNode || // DOM Element detected
|
|
149
|
+
(De(e) ? e.host : null) || // ShadowRoot detected
|
|
150
150
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
151
|
-
q(
|
|
151
|
+
q(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return !L(
|
|
156
|
-
N(
|
|
154
|
+
function Xe(e) {
|
|
155
|
+
return !L(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
156
|
+
N(e).position === "fixed" ? null : e.offsetParent;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
var
|
|
160
|
-
if (r && L(
|
|
161
|
-
var n = N(
|
|
158
|
+
function kt(e) {
|
|
159
|
+
var t = /firefox/i.test(Ee()), r = /Trident/i.test(Ee());
|
|
160
|
+
if (r && L(e)) {
|
|
161
|
+
var n = N(e);
|
|
162
162
|
if (n.position === "fixed")
|
|
163
163
|
return null;
|
|
164
164
|
}
|
|
165
|
-
var a =
|
|
166
|
-
for (
|
|
167
|
-
var
|
|
168
|
-
if (
|
|
165
|
+
var a = ye(e);
|
|
166
|
+
for (De(a) && (a = a.host); L(a) && ["html", "body"].indexOf(V(a)) < 0; ) {
|
|
167
|
+
var o = N(a);
|
|
168
|
+
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
|
|
169
169
|
return a;
|
|
170
170
|
a = a.parentNode;
|
|
171
171
|
}
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (var
|
|
176
|
-
r =
|
|
177
|
-
return r && (V(r) === "html" || V(r) === "body" && N(r).position === "static") ?
|
|
174
|
+
function ue(e) {
|
|
175
|
+
for (var t = R(e), r = Xe(e); r && Ct(r) && N(r).position === "static"; )
|
|
176
|
+
r = Xe(r);
|
|
177
|
+
return r && (V(r) === "html" || V(r) === "body" && N(r).position === "static") ? t : r || kt(e) || t;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return ["top", "bottom"].indexOf(
|
|
179
|
+
function Be(e) {
|
|
180
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
return G(
|
|
182
|
+
function ae(e, t, r) {
|
|
183
|
+
return G(e, ge(t, r));
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
var n =
|
|
185
|
+
function Rt(e, t, r) {
|
|
186
|
+
var n = ae(e, t, r);
|
|
187
187
|
return n > r ? r : n;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function tt() {
|
|
190
190
|
return {
|
|
191
191
|
top: 0,
|
|
192
192
|
right: 0,
|
|
@@ -194,308 +194,309 @@ function ee() {
|
|
|
194
194
|
left: 0
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
return Object.assign({},
|
|
197
|
+
function rt(e) {
|
|
198
|
+
return Object.assign({}, tt(), e);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
return
|
|
202
|
-
return r[n] =
|
|
200
|
+
function nt(e, t) {
|
|
201
|
+
return t.reduce(function(r, n) {
|
|
202
|
+
return r[n] = e, r;
|
|
203
203
|
}, {});
|
|
204
204
|
}
|
|
205
|
-
var
|
|
206
|
-
return
|
|
205
|
+
var Lt = function(t, r) {
|
|
206
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
207
207
|
placement: r.placement
|
|
208
|
-
})) :
|
|
208
|
+
})) : t, rt(typeof t != "number" ? t : nt(t, fe));
|
|
209
209
|
};
|
|
210
|
-
function
|
|
211
|
-
var
|
|
212
|
-
if (!(!
|
|
213
|
-
var
|
|
214
|
-
r.modifiersData[n] = (
|
|
210
|
+
function Tt(e) {
|
|
211
|
+
var t, r = e.state, n = e.name, a = e.options, o = r.elements.arrow, u = r.modifiersData.popperOffsets, i = H(r.placement), s = Be(i), c = [C, S].indexOf(i) >= 0, f = c ? "height" : "width";
|
|
212
|
+
if (!(!o || !u)) {
|
|
213
|
+
var d = Lt(a.padding, r), y = je(o), p = s === "y" ? $ : C, w = s === "y" ? T : S, m = r.rects.reference[f] + r.rects.reference[s] - u[s] - r.rects.popper[f], v = u[s] - r.rects.reference[s], b = ue(o), O = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, E = m / 2 - v / 2, l = d[p], h = O - y[f] - d[w], g = O / 2 - y[f] / 2 + E, x = ae(l, g, h), D = s;
|
|
214
|
+
r.modifiersData[n] = (t = {}, t[D] = x, t.centerOffset = x - g, t);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
var
|
|
219
|
-
a != null && (typeof a == "string" && (a =
|
|
217
|
+
function St(e) {
|
|
218
|
+
var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
219
|
+
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || et(t.elements.popper, a) && (t.elements.arrow = a));
|
|
220
220
|
}
|
|
221
|
-
const
|
|
221
|
+
const Mt = {
|
|
222
222
|
name: "arrow",
|
|
223
223
|
enabled: !0,
|
|
224
224
|
phase: "main",
|
|
225
|
-
fn:
|
|
226
|
-
effect:
|
|
225
|
+
fn: Tt,
|
|
226
|
+
effect: St,
|
|
227
227
|
requires: ["popperOffsets"],
|
|
228
228
|
requiresIfExists: ["preventOverflow"]
|
|
229
229
|
};
|
|
230
|
-
function
|
|
231
|
-
return
|
|
230
|
+
function ee(e) {
|
|
231
|
+
return e.split("-")[1];
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var Wt = {
|
|
234
234
|
top: "auto",
|
|
235
235
|
right: "auto",
|
|
236
236
|
bottom: "auto",
|
|
237
237
|
left: "auto"
|
|
238
238
|
};
|
|
239
|
-
function
|
|
240
|
-
var r =
|
|
239
|
+
function Ht(e, t) {
|
|
240
|
+
var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
|
|
241
241
|
return {
|
|
242
242
|
x: Z(r * a) / a || 0,
|
|
243
243
|
y: Z(n * a) / a || 0
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
var
|
|
248
|
-
x:
|
|
246
|
+
function Ie(e) {
|
|
247
|
+
var t, r = e.popper, n = e.popperRect, a = e.placement, o = e.variation, u = e.offsets, i = e.position, s = e.gpuAcceleration, c = e.adaptive, f = e.roundOffsets, d = e.isFixed, y = u.x, p = y === void 0 ? 0 : y, w = u.y, m = w === void 0 ? 0 : w, v = typeof f == "function" ? f({
|
|
248
|
+
x: p,
|
|
249
249
|
y: m
|
|
250
250
|
}) : {
|
|
251
|
-
x:
|
|
251
|
+
x: p,
|
|
252
252
|
y: m
|
|
253
253
|
};
|
|
254
|
-
|
|
255
|
-
var b =
|
|
256
|
-
if (
|
|
257
|
-
var g =
|
|
258
|
-
if (g === R(r) && (g = q(r), N(g).position !== "static" &&
|
|
254
|
+
p = v.x, m = v.y;
|
|
255
|
+
var b = u.hasOwnProperty("x"), O = u.hasOwnProperty("y"), E = C, l = $, h = window;
|
|
256
|
+
if (c) {
|
|
257
|
+
var g = ue(r), x = "clientHeight", D = "clientWidth";
|
|
258
|
+
if (g === R(r) && (g = q(r), N(g).position !== "static" && i === "absolute" && (x = "scrollHeight", D = "scrollWidth")), g = g, a === $ || (a === C || a === S) && o === oe) {
|
|
259
259
|
l = T;
|
|
260
|
-
var P =
|
|
260
|
+
var P = d && g === h && h.visualViewport ? h.visualViewport.height : (
|
|
261
261
|
// $FlowFixMe[prop-missing]
|
|
262
262
|
g[x]
|
|
263
263
|
);
|
|
264
264
|
m -= P - n.height, m *= s ? 1 : -1;
|
|
265
265
|
}
|
|
266
|
-
if (a === C || (a === $ || a === T) &&
|
|
266
|
+
if (a === C || (a === $ || a === T) && o === oe) {
|
|
267
267
|
E = S;
|
|
268
|
-
var A =
|
|
268
|
+
var A = d && g === h && h.visualViewport ? h.visualViewport.width : (
|
|
269
269
|
// $FlowFixMe[prop-missing]
|
|
270
270
|
g[D]
|
|
271
271
|
);
|
|
272
|
-
|
|
272
|
+
p -= A - n.width, p *= s ? 1 : -1;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
var j = Object.assign({
|
|
276
|
-
position:
|
|
277
|
-
},
|
|
278
|
-
x:
|
|
276
|
+
position: i
|
|
277
|
+
}, c && Wt), M = f === !0 ? Ht({
|
|
278
|
+
x: p,
|
|
279
279
|
y: m
|
|
280
280
|
}, R(r)) : {
|
|
281
|
-
x:
|
|
281
|
+
x: p,
|
|
282
282
|
y: m
|
|
283
283
|
};
|
|
284
|
-
if (
|
|
284
|
+
if (p = M.x, m = M.y, s) {
|
|
285
285
|
var B;
|
|
286
|
-
return Object.assign({}, j, (B = {}, B[l] = O ? "0" : "", B[E] = b ? "0" : "", B.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
286
|
+
return Object.assign({}, j, (B = {}, B[l] = O ? "0" : "", B[E] = b ? "0" : "", B.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", B));
|
|
287
287
|
}
|
|
288
|
-
return Object.assign({}, j, (
|
|
289
|
-
}
|
|
290
|
-
function
|
|
291
|
-
var
|
|
292
|
-
placement: H(
|
|
293
|
-
variation:
|
|
294
|
-
popper:
|
|
295
|
-
popperRect:
|
|
288
|
+
return Object.assign({}, j, (t = {}, t[l] = O ? m + "px" : "", t[E] = b ? p + "px" : "", t.transform = "", t));
|
|
289
|
+
}
|
|
290
|
+
function Vt(e) {
|
|
291
|
+
var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, o = r.adaptive, u = o === void 0 ? !0 : o, i = r.roundOffsets, s = i === void 0 ? !0 : i, c = {
|
|
292
|
+
placement: H(t.placement),
|
|
293
|
+
variation: ee(t.placement),
|
|
294
|
+
popper: t.elements.popper,
|
|
295
|
+
popperRect: t.rects.popper,
|
|
296
296
|
gpuAcceleration: a,
|
|
297
|
-
isFixed:
|
|
297
|
+
isFixed: t.options.strategy === "fixed"
|
|
298
298
|
};
|
|
299
|
-
|
|
300
|
-
offsets:
|
|
301
|
-
position:
|
|
302
|
-
adaptive:
|
|
299
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ie(Object.assign({}, c, {
|
|
300
|
+
offsets: t.modifiersData.popperOffsets,
|
|
301
|
+
position: t.options.strategy,
|
|
302
|
+
adaptive: u,
|
|
303
303
|
roundOffsets: s
|
|
304
|
-
})))),
|
|
305
|
-
offsets:
|
|
304
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ie(Object.assign({}, c, {
|
|
305
|
+
offsets: t.modifiersData.arrow,
|
|
306
306
|
position: "absolute",
|
|
307
307
|
adaptive: !1,
|
|
308
308
|
roundOffsets: s
|
|
309
|
-
})))),
|
|
310
|
-
"data-popper-placement":
|
|
309
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
310
|
+
"data-popper-placement": t.placement
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Nt = {
|
|
314
314
|
name: "computeStyles",
|
|
315
315
|
enabled: !0,
|
|
316
316
|
phase: "beforeWrite",
|
|
317
|
-
fn:
|
|
317
|
+
fn: Vt,
|
|
318
318
|
data: {}
|
|
319
319
|
};
|
|
320
|
-
var
|
|
320
|
+
var me = {
|
|
321
321
|
passive: !0
|
|
322
322
|
};
|
|
323
|
-
function
|
|
324
|
-
var
|
|
325
|
-
return
|
|
326
|
-
f.addEventListener("scroll", r.update,
|
|
327
|
-
}),
|
|
328
|
-
|
|
329
|
-
f.removeEventListener("scroll", r.update,
|
|
330
|
-
}),
|
|
323
|
+
function Ft(e) {
|
|
324
|
+
var t = e.state, r = e.instance, n = e.options, a = n.scroll, o = a === void 0 ? !0 : a, u = n.resize, i = u === void 0 ? !0 : u, s = R(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
325
|
+
return o && c.forEach(function(f) {
|
|
326
|
+
f.addEventListener("scroll", r.update, me);
|
|
327
|
+
}), i && s.addEventListener("resize", r.update, me), function() {
|
|
328
|
+
o && c.forEach(function(f) {
|
|
329
|
+
f.removeEventListener("scroll", r.update, me);
|
|
330
|
+
}), i && s.removeEventListener("resize", r.update, me);
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
const
|
|
333
|
+
const qt = {
|
|
334
334
|
name: "eventListeners",
|
|
335
335
|
enabled: !0,
|
|
336
336
|
phase: "write",
|
|
337
337
|
fn: function() {
|
|
338
338
|
},
|
|
339
|
-
effect:
|
|
339
|
+
effect: Ft,
|
|
340
340
|
data: {}
|
|
341
341
|
};
|
|
342
|
-
var
|
|
342
|
+
var Xt = {
|
|
343
343
|
left: "right",
|
|
344
344
|
right: "left",
|
|
345
345
|
bottom: "top",
|
|
346
346
|
top: "bottom"
|
|
347
347
|
};
|
|
348
|
-
function
|
|
349
|
-
return
|
|
350
|
-
return
|
|
348
|
+
function he(e) {
|
|
349
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
350
|
+
return Xt[t];
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
|
-
var
|
|
353
|
+
var It = {
|
|
354
354
|
start: "end",
|
|
355
355
|
end: "start"
|
|
356
356
|
};
|
|
357
|
-
function
|
|
358
|
-
return
|
|
359
|
-
return
|
|
357
|
+
function Ye(e) {
|
|
358
|
+
return e.replace(/start|end/g, function(t) {
|
|
359
|
+
return It[t];
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
function $
|
|
363
|
-
var
|
|
362
|
+
function $e(e) {
|
|
363
|
+
var t = R(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
364
364
|
return {
|
|
365
365
|
scrollLeft: r,
|
|
366
366
|
scrollTop: n
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return _(q(
|
|
369
|
+
function Ce(e) {
|
|
370
|
+
return _(q(e)).left + $e(e).scrollLeft;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
var r = R(
|
|
372
|
+
function Yt(e, t) {
|
|
373
|
+
var r = R(e), n = q(e), a = r.visualViewport, o = n.clientWidth, u = n.clientHeight, i = 0, s = 0;
|
|
374
374
|
if (a) {
|
|
375
|
-
|
|
376
|
-
var
|
|
377
|
-
(
|
|
375
|
+
o = a.width, u = a.height;
|
|
376
|
+
var c = _e();
|
|
377
|
+
(c || !c && t === "fixed") && (i = a.offsetLeft, s = a.offsetTop);
|
|
378
378
|
}
|
|
379
379
|
return {
|
|
380
|
-
width:
|
|
381
|
-
height:
|
|
382
|
-
x:
|
|
380
|
+
width: o,
|
|
381
|
+
height: u,
|
|
382
|
+
x: i + Ce(e),
|
|
383
383
|
y: s
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
var
|
|
388
|
-
return N(a || r).direction === "rtl" && (
|
|
389
|
-
width:
|
|
390
|
-
height:
|
|
391
|
-
x:
|
|
386
|
+
function zt(e) {
|
|
387
|
+
var t, r = q(e), n = $e(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, o = G(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), u = G(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + Ce(e), s = -n.scrollTop;
|
|
388
|
+
return N(a || r).direction === "rtl" && (i += G(r.clientWidth, a ? a.clientWidth : 0) - o), {
|
|
389
|
+
width: o,
|
|
390
|
+
height: u,
|
|
391
|
+
x: i,
|
|
392
392
|
y: s
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
var
|
|
395
|
+
function ke(e) {
|
|
396
|
+
var t = N(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
|
|
397
397
|
return /auto|scroll|overlay|hidden/.test(r + a + n);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
return ["html", "body", "#document"].indexOf(V(
|
|
399
|
+
function at(e) {
|
|
400
|
+
return ["html", "body", "#document"].indexOf(V(e)) >= 0 ? e.ownerDocument.body : L(e) && ke(e) ? e : at(ye(e));
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function ie(e, t) {
|
|
403
403
|
var r;
|
|
404
|
-
|
|
405
|
-
var n =
|
|
406
|
-
return a ?
|
|
404
|
+
t === void 0 && (t = []);
|
|
405
|
+
var n = at(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), o = R(n), u = a ? [o].concat(o.visualViewport || [], ke(n) ? n : []) : n, i = t.concat(u);
|
|
406
|
+
return a ? i : (
|
|
407
407
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
408
|
-
|
|
408
|
+
i.concat(ie(ye(u)))
|
|
409
409
|
);
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
return Object.assign({},
|
|
413
|
-
left:
|
|
414
|
-
top:
|
|
415
|
-
right:
|
|
416
|
-
bottom:
|
|
411
|
+
function Ae(e) {
|
|
412
|
+
return Object.assign({}, e, {
|
|
413
|
+
left: e.x,
|
|
414
|
+
top: e.y,
|
|
415
|
+
right: e.x + e.width,
|
|
416
|
+
bottom: e.y + e.height
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
var r = _(
|
|
421
|
-
return r.top = r.top +
|
|
419
|
+
function Ut(e, t) {
|
|
420
|
+
var r = _(e, !1, t === "fixed");
|
|
421
|
+
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;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
return
|
|
423
|
+
function ze(e, t, r) {
|
|
424
|
+
return t === Qe ? Ae(Yt(e, r)) : K(t) ? Ut(t, r) : Ae(zt(q(e)));
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
var
|
|
428
|
-
return K(n) ?
|
|
429
|
-
return K(a) &&
|
|
426
|
+
function Gt(e) {
|
|
427
|
+
var t = ie(ye(e)), r = ["absolute", "fixed"].indexOf(N(e).position) >= 0, n = r && L(e) ? ue(e) : e;
|
|
428
|
+
return K(n) ? t.filter(function(a) {
|
|
429
|
+
return K(a) && et(a, n) && V(a) !== "body";
|
|
430
430
|
}) : [];
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
var a =
|
|
434
|
-
var f =
|
|
435
|
-
return s.top = G(f.top, s.top), s.right =
|
|
436
|
-
},
|
|
437
|
-
return
|
|
432
|
+
function Kt(e, t, r, n) {
|
|
433
|
+
var a = t === "clippingParents" ? Gt(e) : [].concat(t), o = [].concat(a, [r]), u = o[0], i = o.reduce(function(s, c) {
|
|
434
|
+
var f = ze(e, c, n);
|
|
435
|
+
return s.top = G(f.top, s.top), s.right = ge(f.right, s.right), s.bottom = ge(f.bottom, s.bottom), s.left = G(f.left, s.left), s;
|
|
436
|
+
}, ze(e, u, n));
|
|
437
|
+
return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
var
|
|
439
|
+
function it(e) {
|
|
440
|
+
var t = e.reference, r = e.element, n = e.placement, a = n ? H(n) : null, o = n ? ee(n) : null, u = t.x + t.width / 2 - r.width / 2, i = t.y + t.height / 2 - r.height / 2, s;
|
|
441
441
|
switch (a) {
|
|
442
442
|
case $:
|
|
443
443
|
s = {
|
|
444
|
-
x:
|
|
445
|
-
y:
|
|
444
|
+
x: u,
|
|
445
|
+
y: t.y - r.height
|
|
446
446
|
};
|
|
447
447
|
break;
|
|
448
448
|
case T:
|
|
449
449
|
s = {
|
|
450
|
-
x:
|
|
451
|
-
y:
|
|
450
|
+
x: u,
|
|
451
|
+
y: t.y + t.height
|
|
452
452
|
};
|
|
453
453
|
break;
|
|
454
454
|
case S:
|
|
455
455
|
s = {
|
|
456
|
-
x:
|
|
457
|
-
y:
|
|
456
|
+
x: t.x + t.width,
|
|
457
|
+
y: i
|
|
458
458
|
};
|
|
459
459
|
break;
|
|
460
460
|
case C:
|
|
461
461
|
s = {
|
|
462
|
-
x:
|
|
463
|
-
y:
|
|
462
|
+
x: t.x - r.width,
|
|
463
|
+
y: i
|
|
464
464
|
};
|
|
465
465
|
break;
|
|
466
466
|
default:
|
|
467
467
|
s = {
|
|
468
|
-
x:
|
|
469
|
-
y:
|
|
468
|
+
x: t.x,
|
|
469
|
+
y: t.y
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
if (
|
|
474
|
-
var f =
|
|
475
|
-
switch (
|
|
472
|
+
var c = a ? Be(a) : null;
|
|
473
|
+
if (c != null) {
|
|
474
|
+
var f = c === "y" ? "height" : "width";
|
|
475
|
+
switch (o) {
|
|
476
476
|
case Q:
|
|
477
|
-
s[
|
|
477
|
+
s[c] = s[c] - (t[f] / 2 - r[f] / 2);
|
|
478
478
|
break;
|
|
479
|
-
case
|
|
480
|
-
s[
|
|
479
|
+
case oe:
|
|
480
|
+
s[c] = s[c] + (t[f] / 2 - r[f] / 2);
|
|
481
481
|
break;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
return s;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
|
|
488
|
-
var r =
|
|
486
|
+
function se(e, t) {
|
|
487
|
+
t === void 0 && (t = {});
|
|
488
|
+
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, o = r.strategy, u = o === void 0 ? e.strategy : o, i = r.boundary, s = i === void 0 ? mt : i, c = r.rootBoundary, f = c === void 0 ? Qe : c, d = r.elementContext, y = d === void 0 ? ne : d, p = r.altBoundary, w = p === void 0 ? !1 : p, m = r.padding, v = m === void 0 ? 0 : m, b = rt(typeof v != "number" ? v : nt(v, fe)), O = y === ne ? ht : ne, E = e.rects.popper, l = e.elements[w ? O : y], h = Kt(K(l) ? l : l.contextElement || q(e.elements.popper), s, f, u), g = _(e.elements.reference), x = it({
|
|
489
489
|
reference: g,
|
|
490
490
|
element: E,
|
|
491
|
+
strategy: "absolute",
|
|
491
492
|
placement: a
|
|
492
|
-
}), D =
|
|
493
|
+
}), D = Ae(Object.assign({}, E, x)), P = y === ne ? D : g, A = {
|
|
493
494
|
top: h.top - P.top + b.top,
|
|
494
495
|
bottom: P.bottom - h.bottom + b.bottom,
|
|
495
496
|
left: h.left - P.left + b.left,
|
|
496
497
|
right: P.right - h.right + b.right
|
|
497
|
-
}, j =
|
|
498
|
-
if (y ===
|
|
498
|
+
}, j = e.modifiersData.offset;
|
|
499
|
+
if (y === ne && j) {
|
|
499
500
|
var M = j[a];
|
|
500
501
|
Object.keys(A).forEach(function(B) {
|
|
501
502
|
var X = [S, T].indexOf(B) >= 0 ? 1 : -1, I = [$, T].indexOf(B) >= 0 ? "y" : "x";
|
|
@@ -504,55 +505,55 @@ function st(t, e) {
|
|
|
504
505
|
}
|
|
505
506
|
return A;
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
-
|
|
509
|
-
var r =
|
|
510
|
-
return
|
|
511
|
-
}) :
|
|
512
|
-
return
|
|
508
|
+
function Jt(e, t) {
|
|
509
|
+
t === void 0 && (t = {});
|
|
510
|
+
var r = t, n = r.placement, a = r.boundary, o = r.rootBoundary, u = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, c = s === void 0 ? Ze : s, f = ee(n), d = f ? i ? qe : qe.filter(function(w) {
|
|
511
|
+
return ee(w) === f;
|
|
512
|
+
}) : fe, y = d.filter(function(w) {
|
|
513
|
+
return c.indexOf(w) >= 0;
|
|
513
514
|
});
|
|
514
|
-
y.length === 0 && (y =
|
|
515
|
-
var
|
|
516
|
-
return w[m] =
|
|
515
|
+
y.length === 0 && (y = d);
|
|
516
|
+
var p = y.reduce(function(w, m) {
|
|
517
|
+
return w[m] = se(e, {
|
|
517
518
|
placement: m,
|
|
518
519
|
boundary: a,
|
|
519
|
-
rootBoundary:
|
|
520
|
-
padding:
|
|
520
|
+
rootBoundary: o,
|
|
521
|
+
padding: u
|
|
521
522
|
})[H(m)], w;
|
|
522
523
|
}, {});
|
|
523
|
-
return Object.keys(
|
|
524
|
-
return
|
|
524
|
+
return Object.keys(p).sort(function(w, m) {
|
|
525
|
+
return p[w] - p[m];
|
|
525
526
|
});
|
|
526
527
|
}
|
|
527
|
-
function
|
|
528
|
-
if (H(
|
|
528
|
+
function Qt(e) {
|
|
529
|
+
if (H(e) === Pe)
|
|
529
530
|
return [];
|
|
530
|
-
var
|
|
531
|
-
return [
|
|
532
|
-
}
|
|
533
|
-
function
|
|
534
|
-
var
|
|
535
|
-
if (!
|
|
536
|
-
for (var a = r.mainAxis,
|
|
537
|
-
return J.concat(H(F) ===
|
|
531
|
+
var t = he(e);
|
|
532
|
+
return [Ye(e), t, Ye(t)];
|
|
533
|
+
}
|
|
534
|
+
function Zt(e) {
|
|
535
|
+
var t = e.state, r = e.options, n = e.name;
|
|
536
|
+
if (!t.modifiersData[n]._skip) {
|
|
537
|
+
for (var a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, i = u === void 0 ? !0 : u, s = r.fallbackPlacements, c = r.padding, f = r.boundary, d = r.rootBoundary, y = r.altBoundary, p = r.flipVariations, w = p === void 0 ? !0 : p, m = r.allowedAutoPlacements, v = t.options.placement, b = H(v), O = b === v, E = s || (O || !w ? [he(v)] : Qt(v)), l = [v].concat(E).reduce(function(J, F) {
|
|
538
|
+
return J.concat(H(F) === Pe ? Jt(t, {
|
|
538
539
|
placement: F,
|
|
539
540
|
boundary: f,
|
|
540
|
-
rootBoundary:
|
|
541
|
-
padding:
|
|
541
|
+
rootBoundary: d,
|
|
542
|
+
padding: c,
|
|
542
543
|
flipVariations: w,
|
|
543
544
|
allowedAutoPlacements: m
|
|
544
545
|
}) : F);
|
|
545
|
-
}, []), h =
|
|
546
|
-
var j = l[A], M = H(j), B =
|
|
546
|
+
}, []), h = t.rects.reference, g = t.rects.popper, x = /* @__PURE__ */ new Map(), D = !0, P = l[0], A = 0; A < l.length; A++) {
|
|
547
|
+
var j = l[A], M = H(j), B = ee(j) === Q, X = [$, T].indexOf(M) >= 0, I = X ? "width" : "height", k = se(t, {
|
|
547
548
|
placement: j,
|
|
548
549
|
boundary: f,
|
|
549
|
-
rootBoundary:
|
|
550
|
+
rootBoundary: d,
|
|
550
551
|
altBoundary: y,
|
|
551
|
-
padding:
|
|
552
|
+
padding: c
|
|
552
553
|
}), W = X ? B ? S : C : B ? T : $;
|
|
553
|
-
h[I] > g[I] && (W =
|
|
554
|
-
var
|
|
555
|
-
if (
|
|
554
|
+
h[I] > g[I] && (W = he(W));
|
|
555
|
+
var ce = he(W), Y = [];
|
|
556
|
+
if (o && Y.push(k[M] <= 0), i && Y.push(k[W] <= 0, k[ce] <= 0), Y.every(function(J) {
|
|
556
557
|
return J;
|
|
557
558
|
})) {
|
|
558
559
|
P = j, D = !1;
|
|
@@ -561,89 +562,89 @@ function Ze(t) {
|
|
|
561
562
|
x.set(j, Y);
|
|
562
563
|
}
|
|
563
564
|
if (D)
|
|
564
|
-
for (var
|
|
565
|
-
var
|
|
566
|
-
var z = x.get(
|
|
565
|
+
for (var pe = w ? 3 : 1, be = function(F) {
|
|
566
|
+
var re = l.find(function(de) {
|
|
567
|
+
var z = x.get(de);
|
|
567
568
|
if (z)
|
|
568
|
-
return z.slice(0, F).every(function(
|
|
569
|
-
return
|
|
569
|
+
return z.slice(0, F).every(function(we) {
|
|
570
|
+
return we;
|
|
570
571
|
});
|
|
571
572
|
});
|
|
572
|
-
if (
|
|
573
|
-
return P =
|
|
574
|
-
},
|
|
575
|
-
var
|
|
576
|
-
if (
|
|
573
|
+
if (re)
|
|
574
|
+
return P = re, "break";
|
|
575
|
+
}, te = pe; te > 0; te--) {
|
|
576
|
+
var le = be(te);
|
|
577
|
+
if (le === "break") break;
|
|
577
578
|
}
|
|
578
|
-
|
|
579
|
+
t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
|
-
const
|
|
582
|
+
const _t = {
|
|
582
583
|
name: "flip",
|
|
583
584
|
enabled: !0,
|
|
584
585
|
phase: "main",
|
|
585
|
-
fn:
|
|
586
|
+
fn: Zt,
|
|
586
587
|
requiresIfExists: ["offset"],
|
|
587
588
|
data: {
|
|
588
589
|
_skip: !1
|
|
589
590
|
}
|
|
590
591
|
};
|
|
591
|
-
function
|
|
592
|
+
function Ue(e, t, r) {
|
|
592
593
|
return r === void 0 && (r = {
|
|
593
594
|
x: 0,
|
|
594
595
|
y: 0
|
|
595
596
|
}), {
|
|
596
|
-
top:
|
|
597
|
-
right:
|
|
598
|
-
bottom:
|
|
599
|
-
left:
|
|
597
|
+
top: e.top - t.height - r.y,
|
|
598
|
+
right: e.right - t.width + r.x,
|
|
599
|
+
bottom: e.bottom - t.height + r.y,
|
|
600
|
+
left: e.left - t.width - r.x
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
-
return [$, S, T, C].some(function(
|
|
604
|
-
return t
|
|
603
|
+
function Ge(e) {
|
|
604
|
+
return [$, S, T, C].some(function(t) {
|
|
605
|
+
return e[t] >= 0;
|
|
605
606
|
});
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
-
var
|
|
608
|
+
function er(e) {
|
|
609
|
+
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, o = t.modifiersData.preventOverflow, u = se(t, {
|
|
609
610
|
elementContext: "reference"
|
|
610
|
-
}),
|
|
611
|
+
}), i = se(t, {
|
|
611
612
|
altBoundary: !0
|
|
612
|
-
}), s =
|
|
613
|
-
|
|
613
|
+
}), s = Ue(u, n), c = Ue(i, a, o), f = Ge(s), d = Ge(c);
|
|
614
|
+
t.modifiersData[r] = {
|
|
614
615
|
referenceClippingOffsets: s,
|
|
615
|
-
popperEscapeOffsets:
|
|
616
|
+
popperEscapeOffsets: c,
|
|
616
617
|
isReferenceHidden: f,
|
|
617
|
-
hasPopperEscaped:
|
|
618
|
-
},
|
|
618
|
+
hasPopperEscaped: d
|
|
619
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
619
620
|
"data-popper-reference-hidden": f,
|
|
620
|
-
"data-popper-escaped":
|
|
621
|
+
"data-popper-escaped": d
|
|
621
622
|
});
|
|
622
623
|
}
|
|
623
|
-
const
|
|
624
|
+
const tr = {
|
|
624
625
|
name: "hide",
|
|
625
626
|
enabled: !0,
|
|
626
627
|
phase: "main",
|
|
627
628
|
requiresIfExists: ["preventOverflow"],
|
|
628
|
-
fn:
|
|
629
|
+
fn: er
|
|
629
630
|
};
|
|
630
|
-
function rr(
|
|
631
|
-
var n = H(
|
|
632
|
-
placement:
|
|
633
|
-
})) : r,
|
|
634
|
-
return
|
|
635
|
-
x:
|
|
636
|
-
y:
|
|
631
|
+
function rr(e, t, r) {
|
|
632
|
+
var n = H(e), a = [C, $].indexOf(n) >= 0 ? -1 : 1, o = typeof r == "function" ? r(Object.assign({}, t, {
|
|
633
|
+
placement: e
|
|
634
|
+
})) : r, u = o[0], i = o[1];
|
|
635
|
+
return u = u || 0, i = (i || 0) * a, [C, S].indexOf(n) >= 0 ? {
|
|
636
|
+
x: i,
|
|
637
|
+
y: u
|
|
637
638
|
} : {
|
|
638
|
-
x:
|
|
639
|
-
y:
|
|
639
|
+
x: u,
|
|
640
|
+
y: i
|
|
640
641
|
};
|
|
641
642
|
}
|
|
642
|
-
function nr(
|
|
643
|
-
var
|
|
644
|
-
return f[
|
|
645
|
-
}, {}),
|
|
646
|
-
|
|
643
|
+
function nr(e) {
|
|
644
|
+
var t = e.state, r = e.options, n = e.name, a = r.offset, o = a === void 0 ? [0, 0] : a, u = Ze.reduce(function(f, d) {
|
|
645
|
+
return f[d] = rr(d, t.rects, o), f;
|
|
646
|
+
}, {}), i = u[t.placement], s = i.x, c = i.y;
|
|
647
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = u;
|
|
647
648
|
}
|
|
648
649
|
const ar = {
|
|
649
650
|
name: "offset",
|
|
@@ -652,183 +653,184 @@ const ar = {
|
|
|
652
653
|
requires: ["popperOffsets"],
|
|
653
654
|
fn: nr
|
|
654
655
|
};
|
|
655
|
-
function
|
|
656
|
-
var
|
|
657
|
-
|
|
658
|
-
reference:
|
|
659
|
-
element:
|
|
660
|
-
|
|
656
|
+
function ir(e) {
|
|
657
|
+
var t = e.state, r = e.name;
|
|
658
|
+
t.modifiersData[r] = it({
|
|
659
|
+
reference: t.rects.reference,
|
|
660
|
+
element: t.rects.popper,
|
|
661
|
+
strategy: "absolute",
|
|
662
|
+
placement: t.placement
|
|
661
663
|
});
|
|
662
664
|
}
|
|
663
|
-
const
|
|
665
|
+
const or = {
|
|
664
666
|
name: "popperOffsets",
|
|
665
667
|
enabled: !0,
|
|
666
668
|
phase: "read",
|
|
667
|
-
fn:
|
|
669
|
+
fn: ir,
|
|
668
670
|
data: {}
|
|
669
671
|
};
|
|
670
|
-
function sr(
|
|
671
|
-
return
|
|
672
|
+
function sr(e) {
|
|
673
|
+
return e === "x" ? "y" : "x";
|
|
672
674
|
}
|
|
673
|
-
function fr(
|
|
674
|
-
var
|
|
675
|
+
function fr(e) {
|
|
676
|
+
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, i = u === void 0 ? !1 : u, s = r.boundary, c = r.rootBoundary, f = r.altBoundary, d = r.padding, y = r.tether, p = y === void 0 ? !0 : y, w = r.tetherOffset, m = w === void 0 ? 0 : w, v = se(t, {
|
|
675
677
|
boundary: s,
|
|
676
|
-
rootBoundary:
|
|
677
|
-
padding:
|
|
678
|
+
rootBoundary: c,
|
|
679
|
+
padding: d,
|
|
678
680
|
altBoundary: f
|
|
679
|
-
}), b = H(
|
|
680
|
-
placement:
|
|
681
|
+
}), b = H(t.placement), O = ee(t.placement), E = !O, l = Be(b), h = sr(l), g = t.modifiersData.popperOffsets, x = t.rects.reference, D = t.rects.popper, P = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
682
|
+
placement: t.placement
|
|
681
683
|
})) : m, A = typeof P == "number" ? {
|
|
682
684
|
mainAxis: P,
|
|
683
685
|
altAxis: P
|
|
684
686
|
} : Object.assign({
|
|
685
687
|
mainAxis: 0,
|
|
686
688
|
altAxis: 0
|
|
687
|
-
}, P), j =
|
|
689
|
+
}, P), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
|
|
688
690
|
x: 0,
|
|
689
691
|
y: 0
|
|
690
692
|
};
|
|
691
693
|
if (g) {
|
|
692
|
-
if (
|
|
693
|
-
var B, X = l === "y" ? $ : C, I = l === "y" ? T : S, k = l === "y" ? "height" : "width", W = g[l],
|
|
694
|
+
if (o) {
|
|
695
|
+
var B, X = l === "y" ? $ : C, I = l === "y" ? T : S, k = l === "y" ? "height" : "width", W = g[l], ce = W + v[X], Y = W - v[I], pe = p ? -D[k] / 2 : 0, be = O === Q ? x[k] : D[k], te = O === Q ? -D[k] : -x[k], le = t.elements.arrow, J = p && le ? je(le) : {
|
|
694
696
|
width: 0,
|
|
695
697
|
height: 0
|
|
696
|
-
}, F =
|
|
697
|
-
g[l] =
|
|
698
|
+
}, F = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tt(), re = F[X], de = F[I], z = ae(0, x[k], J[k]), we = E ? x[k] / 2 - pe - z - re - A.mainAxis : be - z - re - A.mainAxis, ot = E ? -x[k] / 2 + pe + z + de + A.mainAxis : te + z + de + A.mainAxis, xe = t.elements.arrow && ue(t.elements.arrow), st = xe ? l === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Re = (B = j == null ? void 0 : j[l]) != null ? B : 0, ft = W + we - Re - st, ut = W + ot - Re, Le = ae(p ? ge(ce, ft) : ce, W, p ? G(Y, ut) : Y);
|
|
699
|
+
g[l] = Le, M[l] = Le - W;
|
|
698
700
|
}
|
|
699
|
-
if (
|
|
700
|
-
var
|
|
701
|
-
g[h] =
|
|
701
|
+
if (i) {
|
|
702
|
+
var Te, ct = l === "x" ? $ : C, pt = l === "x" ? T : S, U = g[h], ve = h === "y" ? "height" : "width", Se = U + v[ct], Me = U - v[pt], Oe = [$, C].indexOf(b) !== -1, We = (Te = j == null ? void 0 : j[h]) != null ? Te : 0, He = Oe ? Se : U - x[ve] - D[ve] - We + A.altAxis, Ve = Oe ? U + x[ve] + D[ve] - We - A.altAxis : Me, Ne = p && Oe ? Rt(He, U, Ve) : ae(p ? He : Se, U, p ? Ve : Me);
|
|
703
|
+
g[h] = Ne, M[h] = Ne - U;
|
|
702
704
|
}
|
|
703
|
-
|
|
705
|
+
t.modifiersData[n] = M;
|
|
704
706
|
}
|
|
705
707
|
}
|
|
706
|
-
const
|
|
708
|
+
const ur = {
|
|
707
709
|
name: "preventOverflow",
|
|
708
710
|
enabled: !0,
|
|
709
711
|
phase: "main",
|
|
710
712
|
fn: fr,
|
|
711
713
|
requiresIfExists: ["offset"]
|
|
712
714
|
};
|
|
713
|
-
function
|
|
715
|
+
function cr(e) {
|
|
714
716
|
return {
|
|
715
|
-
scrollLeft:
|
|
716
|
-
scrollTop:
|
|
717
|
+
scrollLeft: e.scrollLeft,
|
|
718
|
+
scrollTop: e.scrollTop
|
|
717
719
|
};
|
|
718
720
|
}
|
|
719
|
-
function
|
|
720
|
-
return
|
|
721
|
+
function pr(e) {
|
|
722
|
+
return e === R(e) || !L(e) ? $e(e) : cr(e);
|
|
721
723
|
}
|
|
722
|
-
function lr(
|
|
723
|
-
var
|
|
724
|
+
function lr(e) {
|
|
725
|
+
var t = e.getBoundingClientRect(), r = Z(t.width) / e.offsetWidth || 1, n = Z(t.height) / e.offsetHeight || 1;
|
|
724
726
|
return r !== 1 || n !== 1;
|
|
725
727
|
}
|
|
726
|
-
function
|
|
728
|
+
function dr(e, t, r) {
|
|
727
729
|
r === void 0 && (r = !1);
|
|
728
|
-
var n = L(
|
|
730
|
+
var n = L(t), a = L(t) && lr(t), o = q(t), u = _(e, a, r), i = {
|
|
729
731
|
scrollLeft: 0,
|
|
730
732
|
scrollTop: 0
|
|
731
733
|
}, s = {
|
|
732
734
|
x: 0,
|
|
733
735
|
y: 0
|
|
734
736
|
};
|
|
735
|
-
return (n || !n && !r) && ((V(
|
|
736
|
-
|
|
737
|
-
x:
|
|
738
|
-
y:
|
|
739
|
-
width:
|
|
740
|
-
height:
|
|
737
|
+
return (n || !n && !r) && ((V(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
738
|
+
ke(o)) && (i = pr(t)), L(t) ? (s = _(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : o && (s.x = Ce(o))), {
|
|
739
|
+
x: u.left + i.scrollLeft - s.x,
|
|
740
|
+
y: u.top + i.scrollTop - s.y,
|
|
741
|
+
width: u.width,
|
|
742
|
+
height: u.height
|
|
741
743
|
};
|
|
742
744
|
}
|
|
743
|
-
function
|
|
744
|
-
var
|
|
745
|
-
|
|
746
|
-
|
|
745
|
+
function vr(e) {
|
|
746
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
747
|
+
e.forEach(function(o) {
|
|
748
|
+
t.set(o.name, o);
|
|
747
749
|
});
|
|
748
|
-
function a(
|
|
749
|
-
r.add(
|
|
750
|
-
var
|
|
751
|
-
|
|
752
|
-
if (!r.has(
|
|
753
|
-
var s =
|
|
750
|
+
function a(o) {
|
|
751
|
+
r.add(o.name);
|
|
752
|
+
var u = [].concat(o.requires || [], o.requiresIfExists || []);
|
|
753
|
+
u.forEach(function(i) {
|
|
754
|
+
if (!r.has(i)) {
|
|
755
|
+
var s = t.get(i);
|
|
754
756
|
s && a(s);
|
|
755
757
|
}
|
|
756
|
-
}), n.push(
|
|
758
|
+
}), n.push(o);
|
|
757
759
|
}
|
|
758
|
-
return
|
|
759
|
-
r.has(
|
|
760
|
+
return e.forEach(function(o) {
|
|
761
|
+
r.has(o.name) || a(o);
|
|
760
762
|
}), n;
|
|
761
763
|
}
|
|
762
|
-
function mr(
|
|
763
|
-
var
|
|
764
|
-
return
|
|
765
|
-
return r.concat(
|
|
764
|
+
function mr(e) {
|
|
765
|
+
var t = vr(e);
|
|
766
|
+
return Dt.reduce(function(r, n) {
|
|
767
|
+
return r.concat(t.filter(function(a) {
|
|
766
768
|
return a.phase === n;
|
|
767
769
|
}));
|
|
768
770
|
}, []);
|
|
769
771
|
}
|
|
770
|
-
function hr(
|
|
771
|
-
var
|
|
772
|
+
function hr(e) {
|
|
773
|
+
var t;
|
|
772
774
|
return function() {
|
|
773
|
-
return
|
|
775
|
+
return t || (t = new Promise(function(r) {
|
|
774
776
|
Promise.resolve().then(function() {
|
|
775
|
-
|
|
777
|
+
t = void 0, r(e());
|
|
776
778
|
});
|
|
777
|
-
})),
|
|
779
|
+
})), t;
|
|
778
780
|
};
|
|
779
781
|
}
|
|
780
|
-
function gr(
|
|
781
|
-
var
|
|
782
|
+
function gr(e) {
|
|
783
|
+
var t = e.reduce(function(r, n) {
|
|
782
784
|
var a = r[n.name];
|
|
783
785
|
return r[n.name] = a ? Object.assign({}, a, n, {
|
|
784
786
|
options: Object.assign({}, a.options, n.options),
|
|
785
787
|
data: Object.assign({}, a.data, n.data)
|
|
786
788
|
}) : n, r;
|
|
787
789
|
}, {});
|
|
788
|
-
return Object.keys(
|
|
789
|
-
return
|
|
790
|
+
return Object.keys(t).map(function(r) {
|
|
791
|
+
return t[r];
|
|
790
792
|
});
|
|
791
793
|
}
|
|
792
|
-
var
|
|
794
|
+
var Ke = {
|
|
793
795
|
placement: "bottom",
|
|
794
796
|
modifiers: [],
|
|
795
797
|
strategy: "absolute"
|
|
796
798
|
};
|
|
797
|
-
function
|
|
798
|
-
for (var
|
|
799
|
-
|
|
800
|
-
return !
|
|
799
|
+
function Je() {
|
|
800
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
801
|
+
t[r] = arguments[r];
|
|
802
|
+
return !t.some(function(n) {
|
|
801
803
|
return !(n && typeof n.getBoundingClientRect == "function");
|
|
802
804
|
});
|
|
803
805
|
}
|
|
804
|
-
function yr(
|
|
805
|
-
|
|
806
|
-
var
|
|
807
|
-
return function(
|
|
808
|
-
|
|
806
|
+
function yr(e) {
|
|
807
|
+
e === void 0 && (e = {});
|
|
808
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, o = a === void 0 ? Ke : a;
|
|
809
|
+
return function(i, s, c) {
|
|
810
|
+
c === void 0 && (c = o);
|
|
809
811
|
var f = {
|
|
810
812
|
placement: "bottom",
|
|
811
813
|
orderedModifiers: [],
|
|
812
|
-
options: Object.assign({},
|
|
814
|
+
options: Object.assign({}, Ke, o),
|
|
813
815
|
modifiersData: {},
|
|
814
816
|
elements: {
|
|
815
|
-
reference:
|
|
817
|
+
reference: i,
|
|
816
818
|
popper: s
|
|
817
819
|
},
|
|
818
820
|
attributes: {},
|
|
819
821
|
styles: {}
|
|
820
|
-
},
|
|
822
|
+
}, d = [], y = !1, p = {
|
|
821
823
|
state: f,
|
|
822
824
|
setOptions: function(b) {
|
|
823
825
|
var O = typeof b == "function" ? b(f.options) : b;
|
|
824
|
-
m(), f.options = Object.assign({},
|
|
825
|
-
reference: K(
|
|
826
|
-
popper:
|
|
826
|
+
m(), f.options = Object.assign({}, o, f.options, O), f.scrollParents = {
|
|
827
|
+
reference: K(i) ? ie(i) : i.contextElement ? ie(i.contextElement) : [],
|
|
828
|
+
popper: ie(s)
|
|
827
829
|
};
|
|
828
830
|
var E = mr(gr([].concat(n, f.options.modifiers)));
|
|
829
831
|
return f.orderedModifiers = E.filter(function(l) {
|
|
830
832
|
return l.enabled;
|
|
831
|
-
}), w(),
|
|
833
|
+
}), w(), p.update();
|
|
832
834
|
},
|
|
833
835
|
// Sync update – it will always be executed, even if not necessary. This
|
|
834
836
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -838,10 +840,10 @@ function yr(t) {
|
|
|
838
840
|
forceUpdate: function() {
|
|
839
841
|
if (!y) {
|
|
840
842
|
var b = f.elements, O = b.reference, E = b.popper;
|
|
841
|
-
if (
|
|
843
|
+
if (Je(O, E)) {
|
|
842
844
|
f.rects = {
|
|
843
|
-
reference:
|
|
844
|
-
popper:
|
|
845
|
+
reference: dr(O, ue(E), f.options.strategy === "fixed"),
|
|
846
|
+
popper: je(E)
|
|
845
847
|
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(A) {
|
|
846
848
|
return f.modifiersData[A.name] = Object.assign({}, A.data);
|
|
847
849
|
});
|
|
@@ -855,7 +857,7 @@ function yr(t) {
|
|
|
855
857
|
state: f,
|
|
856
858
|
options: D,
|
|
857
859
|
name: P,
|
|
858
|
-
instance:
|
|
860
|
+
instance: p
|
|
859
861
|
}) || f);
|
|
860
862
|
}
|
|
861
863
|
}
|
|
@@ -864,58 +866,58 @@ function yr(t) {
|
|
|
864
866
|
// Async and optimistically optimized update – it will not be executed if
|
|
865
867
|
// not necessary (debounced to run at most once-per-tick)
|
|
866
868
|
update: hr(function() {
|
|
867
|
-
return new Promise(function(
|
|
868
|
-
|
|
869
|
+
return new Promise(function(v) {
|
|
870
|
+
p.forceUpdate(), v(f);
|
|
869
871
|
});
|
|
870
872
|
}),
|
|
871
873
|
destroy: function() {
|
|
872
874
|
m(), y = !0;
|
|
873
875
|
}
|
|
874
876
|
};
|
|
875
|
-
if (!
|
|
876
|
-
return
|
|
877
|
-
|
|
878
|
-
!y &&
|
|
877
|
+
if (!Je(i, s))
|
|
878
|
+
return p;
|
|
879
|
+
p.setOptions(c).then(function(v) {
|
|
880
|
+
!y && c.onFirstUpdate && c.onFirstUpdate(v);
|
|
879
881
|
});
|
|
880
882
|
function w() {
|
|
881
|
-
f.orderedModifiers.forEach(function(
|
|
882
|
-
var b =
|
|
883
|
+
f.orderedModifiers.forEach(function(v) {
|
|
884
|
+
var b = v.name, O = v.options, E = O === void 0 ? {} : O, l = v.effect;
|
|
883
885
|
if (typeof l == "function") {
|
|
884
886
|
var h = l({
|
|
885
887
|
state: f,
|
|
886
888
|
name: b,
|
|
887
|
-
instance:
|
|
889
|
+
instance: p,
|
|
888
890
|
options: E
|
|
889
891
|
}), g = function() {
|
|
890
892
|
};
|
|
891
|
-
|
|
893
|
+
d.push(h || g);
|
|
892
894
|
}
|
|
893
895
|
});
|
|
894
896
|
}
|
|
895
897
|
function m() {
|
|
896
|
-
|
|
897
|
-
return
|
|
898
|
-
}),
|
|
898
|
+
d.forEach(function(v) {
|
|
899
|
+
return v();
|
|
900
|
+
}), d = [];
|
|
899
901
|
}
|
|
900
|
-
return
|
|
902
|
+
return p;
|
|
901
903
|
};
|
|
902
904
|
}
|
|
903
|
-
var br = [
|
|
905
|
+
var br = [qt, or, Nt, $t, ar, _t, ur, Mt, tr], wr = /* @__PURE__ */ yr({
|
|
904
906
|
defaultModifiers: br
|
|
905
907
|
});
|
|
906
|
-
const xr = (...
|
|
907
|
-
contains: (
|
|
908
|
+
const xr = (...e) => ({
|
|
909
|
+
contains: (t) => e.some((r) => {
|
|
908
910
|
var n;
|
|
909
|
-
return (n = r == null ? void 0 : r.current) == null ? void 0 : n.contains(
|
|
911
|
+
return (n = r == null ? void 0 : r.current) == null ? void 0 : n.contains(t);
|
|
910
912
|
}),
|
|
911
|
-
current:
|
|
913
|
+
current: e.map((t) => t == null ? void 0 : t.current).find(Boolean) ?? null
|
|
912
914
|
}), Pr = ({
|
|
913
|
-
triggerRef:
|
|
914
|
-
children:
|
|
915
|
+
triggerRef: e,
|
|
916
|
+
children: t,
|
|
915
917
|
className: r,
|
|
916
918
|
open: n,
|
|
917
919
|
onOpenChange: a,
|
|
918
|
-
options:
|
|
920
|
+
options: o = {
|
|
919
921
|
strategy: "absolute",
|
|
920
922
|
placement: "bottom-start",
|
|
921
923
|
modifiers: [
|
|
@@ -929,21 +931,21 @@ const xr = (...t) => ({
|
|
|
929
931
|
}
|
|
930
932
|
]
|
|
931
933
|
},
|
|
932
|
-
extraRefs:
|
|
934
|
+
extraRefs: u = []
|
|
933
935
|
}) => {
|
|
934
|
-
const
|
|
935
|
-
return
|
|
936
|
-
n && (
|
|
937
|
-
}, [n,
|
|
938
|
-
const
|
|
939
|
-
|
|
940
|
-
}, f = (
|
|
941
|
-
|
|
936
|
+
const i = dt(null), s = xr(e, ...u);
|
|
937
|
+
return Fe(() => {
|
|
938
|
+
n && (e != null && e.current) && (i != null && i.current) && wr(e.current, i.current, o);
|
|
939
|
+
}, [n, e]), Fe(() => {
|
|
940
|
+
const c = (d) => {
|
|
941
|
+
i.current && !i.current.contains(d.target) && !s.contains(d.target) && a(!1);
|
|
942
|
+
}, f = (d) => {
|
|
943
|
+
d.key === "Escape" && a(!1);
|
|
942
944
|
};
|
|
943
|
-
return n && (document.addEventListener("mousedown",
|
|
944
|
-
document.removeEventListener("mousedown",
|
|
945
|
+
return n && (document.addEventListener("mousedown", c), document.addEventListener("keydown", f)), () => {
|
|
946
|
+
document.removeEventListener("mousedown", c), document.removeEventListener("keydown", f);
|
|
945
947
|
};
|
|
946
|
-
}, [n, a,
|
|
948
|
+
}, [n, a, e]), n ? /* @__PURE__ */ lt("div", { ref: i, role: "dialog", className: vt("gi-popover", r), children: t }) : null;
|
|
947
949
|
};
|
|
948
950
|
export {
|
|
949
951
|
Pr as Popover
|