@purpurds/tooltip 6.2.0 → 6.3.1
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/.rush/temp/ci_build/@purpurds/tooltip/{cfa57a168f959f7acd4a9e9d690a7120ba64651a.untar.log → 69c35eef1d9c7aa5dce3354559a44c3fa7bcc834.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +6 -6
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +4 -5
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +298 -272
- package/dist/LICENSE.txt +8 -8
- package/dist/tooltip.cjs.js +6 -6
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.es.js +961 -1002
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +9 -9
package/dist/tooltip.es.js
CHANGED
|
@@ -1,94 +1,86 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as Ae, jsx as x, Fragment as Dn } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
PRIMARY: "primary",
|
|
8
|
-
SECONDARY: "secondary",
|
|
9
|
-
EXPRESSIVE: "expressive"
|
|
10
|
-
}, In = {
|
|
11
|
-
XS: "xs",
|
|
12
|
-
SM: "sm",
|
|
13
|
-
MD: "md",
|
|
3
|
+
import { forwardRef as Nt, useLayoutEffect as Ln, useEffect as Mn, useState as $n, Children as kn } from "react";
|
|
4
|
+
import * as Dt from "react-dom";
|
|
5
|
+
import Fn from "react-dom";
|
|
6
|
+
const In = {
|
|
14
7
|
LG: "lg"
|
|
15
8
|
};
|
|
16
|
-
function
|
|
9
|
+
function Bn(e) {
|
|
17
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
18
11
|
}
|
|
19
|
-
var
|
|
12
|
+
var ct = { exports: {} };
|
|
20
13
|
/*!
|
|
21
14
|
Copyright (c) 2018 Jed Watson.
|
|
22
15
|
Licensed under the MIT License (MIT), see
|
|
23
16
|
http://jedwatson.github.io/classnames
|
|
24
17
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
function o(r) {
|
|
36
|
-
if (typeof r == "string" || typeof r == "number")
|
|
18
|
+
var lt;
|
|
19
|
+
function Wn() {
|
|
20
|
+
return lt || (lt = 1, function(e) {
|
|
21
|
+
(function() {
|
|
22
|
+
var t = {}.hasOwnProperty;
|
|
23
|
+
function n() {
|
|
24
|
+
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
25
|
+
var a = arguments[s];
|
|
26
|
+
a && (r = i(r, o(a)));
|
|
27
|
+
}
|
|
37
28
|
return r;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
29
|
+
}
|
|
30
|
+
function o(r) {
|
|
31
|
+
if (typeof r == "string" || typeof r == "number")
|
|
32
|
+
return r;
|
|
33
|
+
if (typeof r != "object")
|
|
34
|
+
return "";
|
|
35
|
+
if (Array.isArray(r))
|
|
36
|
+
return n.apply(null, r);
|
|
37
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
38
|
+
return r.toString();
|
|
39
|
+
var s = "";
|
|
40
|
+
for (var a in r)
|
|
41
|
+
t.call(r, a) && r[a] && (s = i(s, a));
|
|
42
|
+
return s;
|
|
43
|
+
}
|
|
44
|
+
function i(r, s) {
|
|
45
|
+
return s ? r ? r + " " + s : r + s : r;
|
|
46
|
+
}
|
|
47
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
48
|
+
})();
|
|
49
|
+
}(ct)), ct.exports;
|
|
50
|
+
}
|
|
51
|
+
var Hn = Wn();
|
|
52
|
+
const ut = /* @__PURE__ */ Bn(Hn), jn = "_rotate_1xozj_1", zn = "_dash_1xozj_1", ue = {
|
|
57
53
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
58
|
-
rotate:
|
|
54
|
+
rotate: jn,
|
|
59
55
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
60
56
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
61
57
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
62
58
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
63
59
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
64
60
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
65
|
-
dash:
|
|
61
|
+
dash: zn,
|
|
66
62
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
67
63
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
SM: "sm",
|
|
72
|
-
MD: "md",
|
|
73
|
-
LG: "lg"
|
|
74
|
-
}, zn = ({
|
|
64
|
+
}, fe = "purpur-spinner", qn = {
|
|
65
|
+
SM: "sm"
|
|
66
|
+
}, Vn = ({
|
|
75
67
|
["data-testid"]: e,
|
|
76
68
|
disabled: t = !1,
|
|
77
69
|
negative: n = !1,
|
|
78
|
-
size: o =
|
|
70
|
+
size: o = qn.SM,
|
|
79
71
|
...i
|
|
80
72
|
}) => /* @__PURE__ */ x(
|
|
81
73
|
"div",
|
|
82
74
|
{
|
|
83
|
-
className: ut([fe
|
|
75
|
+
className: ut([ue[fe], ue[`${fe}--${o}`]]),
|
|
84
76
|
"data-testid": e,
|
|
85
77
|
...i,
|
|
86
78
|
children: /* @__PURE__ */ x("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ x(
|
|
87
79
|
"circle",
|
|
88
80
|
{
|
|
89
|
-
className: ut(
|
|
90
|
-
[
|
|
91
|
-
[
|
|
81
|
+
className: ut(ue[`${fe}__circle`], {
|
|
82
|
+
[ue[`${fe}__circle--disabled`]]: t,
|
|
83
|
+
[ue[`${fe}__circle--negative`]]: n
|
|
92
84
|
}),
|
|
93
85
|
cx: "25",
|
|
94
86
|
cy: "25",
|
|
@@ -97,47 +89,50 @@ const ut = /* @__PURE__ */ Fn(Bn), Hn = "_rotate_1xozj_1", Wn = "_dash_1xozj_1",
|
|
|
97
89
|
) })
|
|
98
90
|
}
|
|
99
91
|
);
|
|
100
|
-
function
|
|
92
|
+
function Un(e) {
|
|
101
93
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
102
94
|
}
|
|
103
|
-
var
|
|
95
|
+
var ft = { exports: {} };
|
|
104
96
|
/*!
|
|
105
97
|
Copyright (c) 2018 Jed Watson.
|
|
106
98
|
Licensed under the MIT License (MIT), see
|
|
107
99
|
http://jedwatson.github.io/classnames
|
|
108
100
|
*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
101
|
+
var pt;
|
|
102
|
+
function Yn() {
|
|
103
|
+
return pt || (pt = 1, function(e) {
|
|
104
|
+
(function() {
|
|
105
|
+
var t = {}.hasOwnProperty;
|
|
106
|
+
function n() {
|
|
107
|
+
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
108
|
+
var a = arguments[s];
|
|
109
|
+
a && (r = i(r, o.call(this, a)));
|
|
110
|
+
}
|
|
111
|
+
return r;
|
|
116
112
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const Un = /* @__PURE__ */ Vn(qn), Yn = {
|
|
113
|
+
function o(r) {
|
|
114
|
+
if (typeof r == "string" || typeof r == "number")
|
|
115
|
+
return this && this[r] || r;
|
|
116
|
+
if (typeof r != "object")
|
|
117
|
+
return "";
|
|
118
|
+
if (Array.isArray(r))
|
|
119
|
+
return n.apply(this, r);
|
|
120
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
121
|
+
return r.toString();
|
|
122
|
+
var s = "";
|
|
123
|
+
for (var a in r)
|
|
124
|
+
t.call(r, a) && r[a] && (s = i(s, this && this[a] || a));
|
|
125
|
+
return s;
|
|
126
|
+
}
|
|
127
|
+
function i(r, s) {
|
|
128
|
+
return s ? r ? r + " " + s : r + s : r;
|
|
129
|
+
}
|
|
130
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
131
|
+
})();
|
|
132
|
+
}(ft)), ft.exports;
|
|
133
|
+
}
|
|
134
|
+
var Gn = Yn();
|
|
135
|
+
const Xn = /* @__PURE__ */ Un(Gn), Zn = {
|
|
141
136
|
"purpur-button": "_purpur-button_w455q_1",
|
|
142
137
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
143
138
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -159,12 +154,9 @@ const Un = /* @__PURE__ */ Vn(qn), Yn = {
|
|
|
159
154
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
160
155
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
161
156
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
TERTIARY_PURPLE: "tertiary-purple",
|
|
166
|
-
TEXT: "text"
|
|
167
|
-
}, Xn = Un.bind(Yn), Q = "purpur-button", Zn = ({
|
|
157
|
+
}, Kn = {
|
|
158
|
+
TERTIARY_PURPLE: "tertiary-purple"
|
|
159
|
+
}, Jn = Xn.bind(Zn), J = "purpur-button", Qn = ({
|
|
168
160
|
children: e,
|
|
169
161
|
className: t,
|
|
170
162
|
["data-testid"]: n,
|
|
@@ -181,82 +173,85 @@ const Un = /* @__PURE__ */ Vn(qn), Yn = {
|
|
|
181
173
|
}, p) => {
|
|
182
174
|
if (r && u === "destructive")
|
|
183
175
|
return null;
|
|
184
|
-
const m =
|
|
176
|
+
const m = Jn(
|
|
185
177
|
[
|
|
186
|
-
|
|
187
|
-
`${
|
|
188
|
-
`${
|
|
178
|
+
J,
|
|
179
|
+
`${J}--${a ? `${u}-negative` : u}`,
|
|
180
|
+
`${J}--${l}`
|
|
189
181
|
],
|
|
190
182
|
{
|
|
191
|
-
[`${
|
|
192
|
-
[`${
|
|
193
|
-
[`${
|
|
194
|
-
[`${
|
|
183
|
+
[`${J}--icon-only`]: r,
|
|
184
|
+
[`${J}--negative`]: a,
|
|
185
|
+
[`${J}--full-width`]: i,
|
|
186
|
+
[`${J}--disabled`]: o || s
|
|
195
187
|
},
|
|
196
188
|
t
|
|
197
|
-
), g = (
|
|
198
|
-
o || s ?
|
|
199
|
-
},
|
|
200
|
-
return /* @__PURE__ */
|
|
189
|
+
), g = (y) => {
|
|
190
|
+
o || s ? y.preventDefault() : c && c(y);
|
|
191
|
+
}, v = !!h["aria-disabled"] || o || s;
|
|
192
|
+
return /* @__PURE__ */ Ae(
|
|
201
193
|
"button",
|
|
202
194
|
{
|
|
203
195
|
className: m,
|
|
204
196
|
"data-testid": n,
|
|
205
197
|
type: d,
|
|
206
198
|
ref: p,
|
|
207
|
-
"aria-disabled":
|
|
199
|
+
"aria-disabled": v,
|
|
208
200
|
onClick: g,
|
|
209
201
|
...h,
|
|
210
202
|
children: [
|
|
211
|
-
s && /* @__PURE__ */ x(
|
|
203
|
+
s && /* @__PURE__ */ x(Vn, { size: l === In.LG ? "xs" : "xxs", negative: a, disabled: v }),
|
|
212
204
|
" ",
|
|
213
205
|
e
|
|
214
206
|
]
|
|
215
207
|
}
|
|
216
208
|
);
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
function
|
|
209
|
+
}, Lt = Nt(Qn);
|
|
210
|
+
Lt.displayName = "Button";
|
|
211
|
+
function er(e) {
|
|
220
212
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
221
213
|
}
|
|
222
|
-
var
|
|
214
|
+
var dt = { exports: {} };
|
|
223
215
|
/*!
|
|
224
216
|
Copyright (c) 2018 Jed Watson.
|
|
225
217
|
Licensed under the MIT License (MIT), see
|
|
226
218
|
http://jedwatson.github.io/classnames
|
|
227
219
|
*/
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
function
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
220
|
+
var ht;
|
|
221
|
+
function tr() {
|
|
222
|
+
return ht || (ht = 1, function(e) {
|
|
223
|
+
(function() {
|
|
224
|
+
var t = {}.hasOwnProperty;
|
|
225
|
+
function n() {
|
|
226
|
+
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
227
|
+
var a = arguments[s];
|
|
228
|
+
a && (r = i(r, o.call(this, a)));
|
|
229
|
+
}
|
|
230
|
+
return r;
|
|
235
231
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
const Qn = /* @__PURE__ */ Kn(Jn), er = {
|
|
232
|
+
function o(r) {
|
|
233
|
+
if (typeof r == "string" || typeof r == "number")
|
|
234
|
+
return this && this[r] || r;
|
|
235
|
+
if (typeof r != "object")
|
|
236
|
+
return "";
|
|
237
|
+
if (Array.isArray(r))
|
|
238
|
+
return n.apply(this, r);
|
|
239
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
240
|
+
return r.toString();
|
|
241
|
+
var s = "";
|
|
242
|
+
for (var a in r)
|
|
243
|
+
t.call(r, a) && r[a] && (s = i(s, this && this[a] || a));
|
|
244
|
+
return s;
|
|
245
|
+
}
|
|
246
|
+
function i(r, s) {
|
|
247
|
+
return s ? r ? r + " " + s : r + s : r;
|
|
248
|
+
}
|
|
249
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
250
|
+
})();
|
|
251
|
+
}(dt)), dt.exports;
|
|
252
|
+
}
|
|
253
|
+
var nr = tr();
|
|
254
|
+
const rr = /* @__PURE__ */ er(nr), or = {
|
|
260
255
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
261
256
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
262
257
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -264,26 +259,26 @@ const Qn = /* @__PURE__ */ Kn(Jn), er = {
|
|
|
264
259
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
265
260
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
266
261
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
267
|
-
},
|
|
262
|
+
}, ir = rr.bind(or), mt = "purpur-icon", sr = "md", ar = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), cr = ({ content: e = "", title: t } = {}) => {
|
|
268
263
|
const n = [
|
|
269
264
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
270
265
|
{ name: "fill", value: "currentColor" },
|
|
271
266
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
272
267
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
273
268
|
], o = t ? `<title>${t}</title>` : "";
|
|
274
|
-
return `<svg ${
|
|
275
|
-
},
|
|
269
|
+
return `<svg ${ar(n)}>${o}${e}</svg>`;
|
|
270
|
+
}, lr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Mt = ({
|
|
276
271
|
["data-testid"]: e,
|
|
277
272
|
svg: t,
|
|
278
273
|
allyTitle: n,
|
|
279
274
|
className: o,
|
|
280
|
-
size: i =
|
|
275
|
+
size: i = sr,
|
|
281
276
|
...r
|
|
282
277
|
}) => {
|
|
283
|
-
const s =
|
|
284
|
-
content:
|
|
278
|
+
const s = cr({
|
|
279
|
+
content: lr(t.svg),
|
|
285
280
|
title: n
|
|
286
|
-
}), a =
|
|
281
|
+
}), a = ir(o, mt, `${mt}--${i}`);
|
|
287
282
|
return /* @__PURE__ */ x(
|
|
288
283
|
"span",
|
|
289
284
|
{
|
|
@@ -295,55 +290,58 @@ const Qn = /* @__PURE__ */ Kn(Jn), er = {
|
|
|
295
290
|
}
|
|
296
291
|
);
|
|
297
292
|
};
|
|
298
|
-
|
|
299
|
-
const
|
|
293
|
+
Mt.displayName = "Icon";
|
|
294
|
+
const ur = {
|
|
300
295
|
name: "info",
|
|
301
296
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
302
297
|
keywords: ["info"],
|
|
303
298
|
category: "status"
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
function
|
|
299
|
+
}, $t = (e) => /* @__PURE__ */ x(Mt, { ...e, svg: ur });
|
|
300
|
+
$t.displayName = "IconInfo";
|
|
301
|
+
function fr(e) {
|
|
307
302
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
308
303
|
}
|
|
309
|
-
var
|
|
304
|
+
var gt = { exports: {} };
|
|
310
305
|
/*!
|
|
311
306
|
Copyright (c) 2018 Jed Watson.
|
|
312
307
|
Licensed under the MIT License (MIT), see
|
|
313
308
|
http://jedwatson.github.io/classnames
|
|
314
309
|
*/
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
function
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
function o(r) {
|
|
326
|
-
if (typeof r == "string" || typeof r == "number")
|
|
310
|
+
var vt;
|
|
311
|
+
function pr() {
|
|
312
|
+
return vt || (vt = 1, function(e) {
|
|
313
|
+
(function() {
|
|
314
|
+
var t = {}.hasOwnProperty;
|
|
315
|
+
function n() {
|
|
316
|
+
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
317
|
+
var a = arguments[s];
|
|
318
|
+
a && (r = i(r, o(a)));
|
|
319
|
+
}
|
|
327
320
|
return r;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
321
|
+
}
|
|
322
|
+
function o(r) {
|
|
323
|
+
if (typeof r == "string" || typeof r == "number")
|
|
324
|
+
return r;
|
|
325
|
+
if (typeof r != "object")
|
|
326
|
+
return "";
|
|
327
|
+
if (Array.isArray(r))
|
|
328
|
+
return n.apply(null, r);
|
|
329
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
330
|
+
return r.toString();
|
|
331
|
+
var s = "";
|
|
332
|
+
for (var a in r)
|
|
333
|
+
t.call(r, a) && r[a] && (s = i(s, a));
|
|
334
|
+
return s;
|
|
335
|
+
}
|
|
336
|
+
function i(r, s) {
|
|
337
|
+
return s ? r ? r + " " + s : r + s : r;
|
|
338
|
+
}
|
|
339
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
340
|
+
})();
|
|
341
|
+
}(gt)), gt.exports;
|
|
342
|
+
}
|
|
343
|
+
var dr = pr();
|
|
344
|
+
const hr = /* @__PURE__ */ fr(dr), pe = {
|
|
347
345
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
348
346
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
349
347
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -358,80 +356,71 @@ const lr = /* @__PURE__ */ ar(cr), pe = {
|
|
|
358
356
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
359
357
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
360
358
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
361
|
-
},
|
|
362
|
-
PARAGRAPH100: "paragraph-100"
|
|
363
|
-
|
|
364
|
-
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
365
|
-
PARAGRAPH200: "paragraph-200",
|
|
366
|
-
PREAMBLE100: "preamble-100",
|
|
367
|
-
PREAMBLE200: "preamble-200",
|
|
368
|
-
ADDITIONAL100: "additional-100",
|
|
369
|
-
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
370
|
-
OVERLINE100: "overline-100",
|
|
371
|
-
OVERLINE200: "overline-200"
|
|
372
|
-
}, he = "purpur-paragraph", Lt = ({
|
|
359
|
+
}, kt = {
|
|
360
|
+
PARAGRAPH100: "paragraph-100"
|
|
361
|
+
}, de = "purpur-paragraph", Ft = ({
|
|
373
362
|
["data-testid"]: e,
|
|
374
363
|
children: t,
|
|
375
364
|
className: n,
|
|
376
365
|
disabled: o,
|
|
377
366
|
enableHyphenation: i = !1,
|
|
378
367
|
negative: r = !1,
|
|
379
|
-
variant: s =
|
|
368
|
+
variant: s = kt.PARAGRAPH100,
|
|
380
369
|
...a
|
|
381
370
|
}) => {
|
|
382
|
-
const c =
|
|
371
|
+
const c = hr([
|
|
383
372
|
n,
|
|
384
|
-
pe[
|
|
385
|
-
pe[`${
|
|
373
|
+
pe[de],
|
|
374
|
+
pe[`${de}--${s}`],
|
|
386
375
|
{
|
|
387
|
-
[pe[`${
|
|
388
|
-
[pe[`${
|
|
389
|
-
[pe[`${
|
|
376
|
+
[pe[`${de}--hyphens`]]: i,
|
|
377
|
+
[pe[`${de}--disabled`]]: o,
|
|
378
|
+
[pe[`${de}--negative`]]: r
|
|
390
379
|
}
|
|
391
380
|
]);
|
|
392
381
|
return /* @__PURE__ */ x("p", { ...a, className: c, "data-testid": e, children: t });
|
|
393
382
|
};
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
function
|
|
383
|
+
Ft.displayName = "Paragraph";
|
|
384
|
+
const mr = "400ms";
|
|
385
|
+
function q(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
397
386
|
return function(i) {
|
|
398
387
|
if (e == null || e(i), n === !1 || !i.defaultPrevented)
|
|
399
388
|
return t == null ? void 0 : t(i);
|
|
400
389
|
};
|
|
401
390
|
}
|
|
402
|
-
function
|
|
391
|
+
function yt(e, t) {
|
|
403
392
|
if (typeof e == "function")
|
|
404
393
|
return e(t);
|
|
405
394
|
e != null && (e.current = t);
|
|
406
395
|
}
|
|
407
|
-
function
|
|
396
|
+
function It(...e) {
|
|
408
397
|
return (t) => {
|
|
409
398
|
let n = !1;
|
|
410
399
|
const o = e.map((i) => {
|
|
411
|
-
const r =
|
|
400
|
+
const r = yt(i, t);
|
|
412
401
|
return !n && typeof r == "function" && (n = !0), r;
|
|
413
402
|
});
|
|
414
403
|
if (n)
|
|
415
404
|
return () => {
|
|
416
405
|
for (let i = 0; i < o.length; i++) {
|
|
417
406
|
const r = o[i];
|
|
418
|
-
typeof r == "function" ? r() :
|
|
407
|
+
typeof r == "function" ? r() : yt(e[i], null);
|
|
419
408
|
}
|
|
420
409
|
};
|
|
421
410
|
};
|
|
422
411
|
}
|
|
423
|
-
function
|
|
424
|
-
return f.useCallback(
|
|
412
|
+
function te(...e) {
|
|
413
|
+
return f.useCallback(It(...e), e);
|
|
425
414
|
}
|
|
426
|
-
function
|
|
415
|
+
function Bt(e, t = []) {
|
|
427
416
|
let n = [];
|
|
428
417
|
function o(r, s) {
|
|
429
418
|
const a = f.createContext(s), c = n.length;
|
|
430
419
|
n = [...n, s];
|
|
431
420
|
const l = (d) => {
|
|
432
|
-
var
|
|
433
|
-
const { scope: h, children: p, ...m } = d, g = ((
|
|
434
|
-
return /* @__PURE__ */ x(g.Provider, { value:
|
|
421
|
+
var y;
|
|
422
|
+
const { scope: h, children: p, ...m } = d, g = ((y = h == null ? void 0 : h[e]) == null ? void 0 : y[c]) || a, v = f.useMemo(() => m, Object.values(m));
|
|
423
|
+
return /* @__PURE__ */ x(g.Provider, { value: v, children: p });
|
|
435
424
|
};
|
|
436
425
|
l.displayName = r + "Provider";
|
|
437
426
|
function u(d, h) {
|
|
@@ -453,9 +442,9 @@ function $t(e, t = []) {
|
|
|
453
442
|
);
|
|
454
443
|
};
|
|
455
444
|
};
|
|
456
|
-
return i.scopeName = e, [o,
|
|
445
|
+
return i.scopeName = e, [o, gr(i, ...t)];
|
|
457
446
|
}
|
|
458
|
-
function
|
|
447
|
+
function gr(...e) {
|
|
459
448
|
const t = e[0];
|
|
460
449
|
if (e.length === 1) return t;
|
|
461
450
|
const n = () => {
|
|
@@ -473,29 +462,29 @@ function fr(...e) {
|
|
|
473
462
|
};
|
|
474
463
|
return n.scopeName = t.scopeName, n;
|
|
475
464
|
}
|
|
476
|
-
var
|
|
477
|
-
const { children: n, ...o } = e, i = f.Children.toArray(n), r = i.find(
|
|
465
|
+
var Wt = f.forwardRef((e, t) => {
|
|
466
|
+
const { children: n, ...o } = e, i = f.Children.toArray(n), r = i.find(vr);
|
|
478
467
|
if (r) {
|
|
479
468
|
const s = r.props.children, a = i.map((c) => c === r ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : c);
|
|
480
469
|
return /* @__PURE__ */ x(Fe, { ...o, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, a) : null });
|
|
481
470
|
}
|
|
482
471
|
return /* @__PURE__ */ x(Fe, { ...o, ref: t, children: n });
|
|
483
472
|
});
|
|
484
|
-
|
|
473
|
+
Wt.displayName = "Slot";
|
|
485
474
|
var Fe = f.forwardRef((e, t) => {
|
|
486
475
|
const { children: n, ...o } = e;
|
|
487
476
|
if (f.isValidElement(n)) {
|
|
488
|
-
const i =
|
|
489
|
-
return n.type !== f.Fragment && (r.ref = t ?
|
|
477
|
+
const i = wr(n), r = yr(o, n.props);
|
|
478
|
+
return n.type !== f.Fragment && (r.ref = t ? It(t, i) : i), f.cloneElement(n, r);
|
|
490
479
|
}
|
|
491
480
|
return f.Children.count(n) > 1 ? f.Children.only(null) : null;
|
|
492
481
|
});
|
|
493
482
|
Fe.displayName = "SlotClone";
|
|
494
|
-
var
|
|
495
|
-
function
|
|
496
|
-
return f.isValidElement(e) && e.type ===
|
|
483
|
+
var Ht = ({ children: e }) => /* @__PURE__ */ x(Dn, { children: e });
|
|
484
|
+
function vr(e) {
|
|
485
|
+
return f.isValidElement(e) && e.type === Ht;
|
|
497
486
|
}
|
|
498
|
-
function
|
|
487
|
+
function yr(e, t) {
|
|
499
488
|
const n = { ...t };
|
|
500
489
|
for (const o in t) {
|
|
501
490
|
const i = e[o], r = t[o];
|
|
@@ -505,12 +494,12 @@ function pr(e, t) {
|
|
|
505
494
|
}
|
|
506
495
|
return { ...e, ...n };
|
|
507
496
|
}
|
|
508
|
-
function
|
|
497
|
+
function wr(e) {
|
|
509
498
|
var o, i;
|
|
510
499
|
let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
511
500
|
return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
512
501
|
}
|
|
513
|
-
var
|
|
502
|
+
var xr = [
|
|
514
503
|
"a",
|
|
515
504
|
"button",
|
|
516
505
|
"div",
|
|
@@ -527,17 +516,17 @@ var mr = [
|
|
|
527
516
|
"span",
|
|
528
517
|
"svg",
|
|
529
518
|
"ul"
|
|
530
|
-
],
|
|
519
|
+
], K = xr.reduce((e, t) => {
|
|
531
520
|
const n = f.forwardRef((o, i) => {
|
|
532
|
-
const { asChild: r, ...s } = o, a = r ?
|
|
521
|
+
const { asChild: r, ...s } = o, a = r ? Wt : t;
|
|
533
522
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x(a, { ...s, ref: i });
|
|
534
523
|
});
|
|
535
524
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
536
525
|
}, {});
|
|
537
|
-
function
|
|
538
|
-
e &&
|
|
526
|
+
function br(e, t) {
|
|
527
|
+
e && Dt.flushSync(() => e.dispatchEvent(t));
|
|
539
528
|
}
|
|
540
|
-
function
|
|
529
|
+
function se(e) {
|
|
541
530
|
const t = f.useRef(e);
|
|
542
531
|
return f.useEffect(() => {
|
|
543
532
|
t.current = e;
|
|
@@ -546,8 +535,8 @@ function ae(e) {
|
|
|
546
535
|
return (o = t.current) == null ? void 0 : o.call(t, ...n);
|
|
547
536
|
}, []);
|
|
548
537
|
}
|
|
549
|
-
function
|
|
550
|
-
const n =
|
|
538
|
+
function _r(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
539
|
+
const n = se(e);
|
|
551
540
|
f.useEffect(() => {
|
|
552
541
|
const o = (i) => {
|
|
553
542
|
i.key === "Escape" && n(i);
|
|
@@ -555,11 +544,11 @@ function yr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
555
544
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
556
545
|
}, [n, t]);
|
|
557
546
|
}
|
|
558
|
-
var
|
|
547
|
+
var Ar = "DismissableLayer", Ie = "dismissableLayer.update", Pr = "dismissableLayer.pointerDownOutside", Cr = "dismissableLayer.focusOutside", wt, jt = f.createContext({
|
|
559
548
|
layers: /* @__PURE__ */ new Set(),
|
|
560
549
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
561
550
|
branches: /* @__PURE__ */ new Set()
|
|
562
|
-
}),
|
|
551
|
+
}), zt = f.forwardRef(
|
|
563
552
|
(e, t) => {
|
|
564
553
|
const {
|
|
565
554
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -569,65 +558,65 @@ var vr = "DismissableLayer", Be = "dismissableLayer.update", wr = "dismissableLa
|
|
|
569
558
|
onInteractOutside: s,
|
|
570
559
|
onDismiss: a,
|
|
571
560
|
...c
|
|
572
|
-
} = e, l = f.useContext(
|
|
573
|
-
const
|
|
574
|
-
!b ||
|
|
575
|
-
}, h),
|
|
576
|
-
const
|
|
577
|
-
[...l.branches].some((
|
|
561
|
+
} = e, l = f.useContext(jt), [u, d] = f.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = f.useState({}), m = te(t, (P) => d(P)), g = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), w = u ? g.indexOf(u) : -1, A = l.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, _ = Rr((P) => {
|
|
562
|
+
const O = P.target, D = [...l.branches].some((R) => R.contains(O));
|
|
563
|
+
!b || D || (i == null || i(P), s == null || s(P), P.defaultPrevented || a == null || a());
|
|
564
|
+
}, h), C = Tr((P) => {
|
|
565
|
+
const O = P.target;
|
|
566
|
+
[...l.branches].some((R) => R.contains(O)) || (r == null || r(P), s == null || s(P), P.defaultPrevented || a == null || a());
|
|
578
567
|
}, h);
|
|
579
|
-
return
|
|
580
|
-
w === l.layers.size - 1 && (o == null || o(
|
|
568
|
+
return _r((P) => {
|
|
569
|
+
w === l.layers.size - 1 && (o == null || o(P), !P.defaultPrevented && a && (P.preventDefault(), a()));
|
|
581
570
|
}, h), f.useEffect(() => {
|
|
582
571
|
if (u)
|
|
583
|
-
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
584
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents =
|
|
572
|
+
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (wt = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), xt(), () => {
|
|
573
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = wt);
|
|
585
574
|
};
|
|
586
575
|
}, [u, h, n, l]), f.useEffect(() => () => {
|
|
587
|
-
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
576
|
+
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), xt());
|
|
588
577
|
}, [u, l]), f.useEffect(() => {
|
|
589
|
-
const
|
|
590
|
-
return document.addEventListener(
|
|
578
|
+
const P = () => p({});
|
|
579
|
+
return document.addEventListener(Ie, P), () => document.removeEventListener(Ie, P);
|
|
591
580
|
}, []), /* @__PURE__ */ x(
|
|
592
|
-
|
|
581
|
+
K.div,
|
|
593
582
|
{
|
|
594
583
|
...c,
|
|
595
584
|
ref: m,
|
|
596
585
|
style: {
|
|
597
|
-
pointerEvents:
|
|
586
|
+
pointerEvents: A ? b ? "auto" : "none" : void 0,
|
|
598
587
|
...e.style
|
|
599
588
|
},
|
|
600
|
-
onFocusCapture:
|
|
601
|
-
onBlurCapture:
|
|
602
|
-
onPointerDownCapture:
|
|
589
|
+
onFocusCapture: q(e.onFocusCapture, C.onFocusCapture),
|
|
590
|
+
onBlurCapture: q(e.onBlurCapture, C.onBlurCapture),
|
|
591
|
+
onPointerDownCapture: q(
|
|
603
592
|
e.onPointerDownCapture,
|
|
604
|
-
|
|
593
|
+
_.onPointerDownCapture
|
|
605
594
|
)
|
|
606
595
|
}
|
|
607
596
|
);
|
|
608
597
|
}
|
|
609
598
|
);
|
|
610
|
-
|
|
611
|
-
var
|
|
612
|
-
const n = f.useContext(
|
|
599
|
+
zt.displayName = Ar;
|
|
600
|
+
var Er = "DismissableLayerBranch", Or = f.forwardRef((e, t) => {
|
|
601
|
+
const n = f.useContext(jt), o = f.useRef(null), i = te(t, o);
|
|
613
602
|
return f.useEffect(() => {
|
|
614
603
|
const r = o.current;
|
|
615
604
|
if (r)
|
|
616
605
|
return n.branches.add(r), () => {
|
|
617
606
|
n.branches.delete(r);
|
|
618
607
|
};
|
|
619
|
-
}, [n.branches]), /* @__PURE__ */ x(
|
|
608
|
+
}, [n.branches]), /* @__PURE__ */ x(K.div, { ...e, ref: i });
|
|
620
609
|
});
|
|
621
|
-
|
|
622
|
-
function
|
|
623
|
-
const n =
|
|
610
|
+
Or.displayName = Er;
|
|
611
|
+
function Rr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
612
|
+
const n = se(e), o = f.useRef(!1), i = f.useRef(() => {
|
|
624
613
|
});
|
|
625
614
|
return f.useEffect(() => {
|
|
626
615
|
const r = (a) => {
|
|
627
616
|
if (a.target && !o.current) {
|
|
628
617
|
let c = function() {
|
|
629
|
-
|
|
630
|
-
|
|
618
|
+
qt(
|
|
619
|
+
Pr,
|
|
631
620
|
n,
|
|
632
621
|
l,
|
|
633
622
|
{ discrete: !0 }
|
|
@@ -649,11 +638,11 @@ function Ar(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
649
638
|
onPointerDownCapture: () => o.current = !0
|
|
650
639
|
};
|
|
651
640
|
}
|
|
652
|
-
function
|
|
653
|
-
const n =
|
|
641
|
+
function Tr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
642
|
+
const n = se(e), o = f.useRef(!1);
|
|
654
643
|
return f.useEffect(() => {
|
|
655
644
|
const i = (r) => {
|
|
656
|
-
r.target && !o.current &&
|
|
645
|
+
r.target && !o.current && qt(Cr, n, { originalEvent: r }, {
|
|
657
646
|
discrete: !1
|
|
658
647
|
});
|
|
659
648
|
};
|
|
@@ -663,73 +652,73 @@ function Pr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
663
652
|
onBlurCapture: () => o.current = !1
|
|
664
653
|
};
|
|
665
654
|
}
|
|
666
|
-
function
|
|
667
|
-
const e = new CustomEvent(
|
|
655
|
+
function xt() {
|
|
656
|
+
const e = new CustomEvent(Ie);
|
|
668
657
|
document.dispatchEvent(e);
|
|
669
658
|
}
|
|
670
|
-
function
|
|
659
|
+
function qt(e, t, n, { discrete: o }) {
|
|
671
660
|
const i = n.originalEvent.target, r = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
672
|
-
t && i.addEventListener(e, t, { once: !0 }), o ?
|
|
673
|
-
}
|
|
674
|
-
var
|
|
675
|
-
},
|
|
676
|
-
}),
|
|
677
|
-
function
|
|
678
|
-
const [t, n] = f.useState(
|
|
679
|
-
return
|
|
680
|
-
n((o) => o ?? String(
|
|
661
|
+
t && i.addEventListener(e, t, { once: !0 }), o ? br(i, r) : i.dispatchEvent(r);
|
|
662
|
+
}
|
|
663
|
+
var Q = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
664
|
+
}, Sr = f.useId || (() => {
|
|
665
|
+
}), Nr = 0;
|
|
666
|
+
function Dr(e) {
|
|
667
|
+
const [t, n] = f.useState(Sr());
|
|
668
|
+
return Q(() => {
|
|
669
|
+
n((o) => o ?? String(Nr++));
|
|
681
670
|
}, [e]), t ? `radix-${t}` : "";
|
|
682
671
|
}
|
|
683
|
-
const
|
|
672
|
+
const Lr = ["top", "right", "bottom", "left"], j = Math.min, I = Math.max, Pe = Math.round, xe = Math.floor, G = (e) => ({
|
|
684
673
|
x: e,
|
|
685
674
|
y: e
|
|
686
|
-
}),
|
|
675
|
+
}), Mr = {
|
|
687
676
|
left: "right",
|
|
688
677
|
right: "left",
|
|
689
678
|
bottom: "top",
|
|
690
679
|
top: "bottom"
|
|
691
|
-
},
|
|
680
|
+
}, $r = {
|
|
692
681
|
start: "end",
|
|
693
682
|
end: "start"
|
|
694
683
|
};
|
|
695
|
-
function
|
|
696
|
-
return I(e,
|
|
684
|
+
function Be(e, t, n) {
|
|
685
|
+
return I(e, j(t, n));
|
|
697
686
|
}
|
|
698
|
-
function
|
|
687
|
+
function V(e, t) {
|
|
699
688
|
return typeof e == "function" ? e(t) : e;
|
|
700
689
|
}
|
|
701
|
-
function
|
|
690
|
+
function U(e) {
|
|
702
691
|
return e.split("-")[0];
|
|
703
692
|
}
|
|
704
|
-
function
|
|
693
|
+
function ae(e) {
|
|
705
694
|
return e.split("-")[1];
|
|
706
695
|
}
|
|
707
696
|
function qe(e) {
|
|
708
697
|
return e === "x" ? "y" : "x";
|
|
709
698
|
}
|
|
710
|
-
function
|
|
699
|
+
function Ve(e) {
|
|
711
700
|
return e === "y" ? "height" : "width";
|
|
712
701
|
}
|
|
713
|
-
function
|
|
714
|
-
return ["top", "bottom"].includes(
|
|
702
|
+
function X(e) {
|
|
703
|
+
return ["top", "bottom"].includes(U(e)) ? "y" : "x";
|
|
715
704
|
}
|
|
716
|
-
function
|
|
717
|
-
return qe(
|
|
705
|
+
function Ue(e) {
|
|
706
|
+
return qe(X(e));
|
|
718
707
|
}
|
|
719
|
-
function
|
|
708
|
+
function kr(e, t, n) {
|
|
720
709
|
n === void 0 && (n = !1);
|
|
721
|
-
const o =
|
|
710
|
+
const o = ae(e), i = Ue(e), r = Ve(i);
|
|
722
711
|
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
723
712
|
return t.reference[r] > t.floating[r] && (s = Ce(s)), [s, Ce(s)];
|
|
724
713
|
}
|
|
725
|
-
function
|
|
714
|
+
function Fr(e) {
|
|
726
715
|
const t = Ce(e);
|
|
727
716
|
return [We(e), t, We(t)];
|
|
728
717
|
}
|
|
729
718
|
function We(e) {
|
|
730
|
-
return e.replace(/start|end/g, (t) =>
|
|
719
|
+
return e.replace(/start|end/g, (t) => $r[t]);
|
|
731
720
|
}
|
|
732
|
-
function
|
|
721
|
+
function Ir(e, t, n) {
|
|
733
722
|
const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
734
723
|
switch (e) {
|
|
735
724
|
case "top":
|
|
@@ -742,15 +731,15 @@ function Lr(e, t, n) {
|
|
|
742
731
|
return [];
|
|
743
732
|
}
|
|
744
733
|
}
|
|
745
|
-
function
|
|
746
|
-
const i =
|
|
747
|
-
let r =
|
|
734
|
+
function Br(e, t, n, o) {
|
|
735
|
+
const i = ae(e);
|
|
736
|
+
let r = Ir(U(e), n === "start", o);
|
|
748
737
|
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(We)))), r;
|
|
749
738
|
}
|
|
750
739
|
function Ce(e) {
|
|
751
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
740
|
+
return e.replace(/left|right|bottom|top/g, (t) => Mr[t]);
|
|
752
741
|
}
|
|
753
|
-
function
|
|
742
|
+
function Wr(e) {
|
|
754
743
|
return {
|
|
755
744
|
top: 0,
|
|
756
745
|
right: 0,
|
|
@@ -759,15 +748,15 @@ function $r(e) {
|
|
|
759
748
|
...e
|
|
760
749
|
};
|
|
761
750
|
}
|
|
762
|
-
function
|
|
763
|
-
return typeof e != "number" ?
|
|
751
|
+
function Vt(e) {
|
|
752
|
+
return typeof e != "number" ? Wr(e) : {
|
|
764
753
|
top: e,
|
|
765
754
|
right: e,
|
|
766
755
|
bottom: e,
|
|
767
756
|
left: e
|
|
768
757
|
};
|
|
769
758
|
}
|
|
770
|
-
function
|
|
759
|
+
function Ee(e) {
|
|
771
760
|
const {
|
|
772
761
|
x: t,
|
|
773
762
|
y: n,
|
|
@@ -785,12 +774,12 @@ function Re(e) {
|
|
|
785
774
|
y: n
|
|
786
775
|
};
|
|
787
776
|
}
|
|
788
|
-
function
|
|
777
|
+
function bt(e, t, n) {
|
|
789
778
|
let {
|
|
790
779
|
reference: o,
|
|
791
780
|
floating: i
|
|
792
781
|
} = e;
|
|
793
|
-
const r =
|
|
782
|
+
const r = X(t), s = Ue(t), a = Ve(s), c = U(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[a] / 2 - i[a] / 2;
|
|
794
783
|
let p;
|
|
795
784
|
switch (c) {
|
|
796
785
|
case "top":
|
|
@@ -823,7 +812,7 @@ function mt(e, t, n) {
|
|
|
823
812
|
y: o.y
|
|
824
813
|
};
|
|
825
814
|
}
|
|
826
|
-
switch (
|
|
815
|
+
switch (ae(t)) {
|
|
827
816
|
case "start":
|
|
828
817
|
p[s] -= h * (n && l ? -1 : 1);
|
|
829
818
|
break;
|
|
@@ -833,7 +822,7 @@ function mt(e, t, n) {
|
|
|
833
822
|
}
|
|
834
823
|
return p;
|
|
835
824
|
}
|
|
836
|
-
const
|
|
825
|
+
const Hr = async (e, t, n) => {
|
|
837
826
|
const {
|
|
838
827
|
placement: o = "bottom",
|
|
839
828
|
strategy: i = "absolute",
|
|
@@ -847,17 +836,17 @@ const kr = async (e, t, n) => {
|
|
|
847
836
|
}), {
|
|
848
837
|
x: u,
|
|
849
838
|
y: d
|
|
850
|
-
} =
|
|
839
|
+
} = bt(l, o, c), h = o, p = {}, m = 0;
|
|
851
840
|
for (let g = 0; g < a.length; g++) {
|
|
852
841
|
const {
|
|
853
|
-
name:
|
|
854
|
-
fn:
|
|
842
|
+
name: v,
|
|
843
|
+
fn: y
|
|
855
844
|
} = a[g], {
|
|
856
845
|
x: w,
|
|
857
|
-
y:
|
|
846
|
+
y: A,
|
|
858
847
|
data: b,
|
|
859
|
-
reset:
|
|
860
|
-
} = await
|
|
848
|
+
reset: _
|
|
849
|
+
} = await y({
|
|
861
850
|
x: u,
|
|
862
851
|
y: d,
|
|
863
852
|
initialPlacement: o,
|
|
@@ -871,20 +860,20 @@ const kr = async (e, t, n) => {
|
|
|
871
860
|
floating: t
|
|
872
861
|
}
|
|
873
862
|
});
|
|
874
|
-
u = w ?? u, d =
|
|
863
|
+
u = w ?? u, d = A ?? d, p = {
|
|
875
864
|
...p,
|
|
876
|
-
[
|
|
877
|
-
...p[
|
|
865
|
+
[v]: {
|
|
866
|
+
...p[v],
|
|
878
867
|
...b
|
|
879
868
|
}
|
|
880
|
-
},
|
|
869
|
+
}, _ && m <= 50 && (m++, typeof _ == "object" && (_.placement && (h = _.placement), _.rects && (l = _.rects === !0 ? await s.getElementRects({
|
|
881
870
|
reference: e,
|
|
882
871
|
floating: t,
|
|
883
872
|
strategy: i
|
|
884
|
-
}) :
|
|
873
|
+
}) : _.rects), {
|
|
885
874
|
x: u,
|
|
886
875
|
y: d
|
|
887
|
-
} =
|
|
876
|
+
} = bt(l, h, c)), g = -1);
|
|
888
877
|
}
|
|
889
878
|
return {
|
|
890
879
|
x: u,
|
|
@@ -894,7 +883,7 @@ const kr = async (e, t, n) => {
|
|
|
894
883
|
middlewareData: p
|
|
895
884
|
};
|
|
896
885
|
};
|
|
897
|
-
async function
|
|
886
|
+
async function he(e, t) {
|
|
898
887
|
var n;
|
|
899
888
|
t === void 0 && (t = {});
|
|
900
889
|
const {
|
|
@@ -910,8 +899,8 @@ async function me(e, t) {
|
|
|
910
899
|
elementContext: d = "floating",
|
|
911
900
|
altBoundary: h = !1,
|
|
912
901
|
padding: p = 0
|
|
913
|
-
} =
|
|
914
|
-
element: (n = await (r.isElement == null ? void 0 : r.isElement(
|
|
902
|
+
} = V(t, e), m = Vt(p), v = a[h ? d === "floating" ? "reference" : "floating" : d], y = Ee(await r.getClippingRect({
|
|
903
|
+
element: (n = await (r.isElement == null ? void 0 : r.isElement(v))) == null || n ? v : v.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
915
904
|
boundary: l,
|
|
916
905
|
rootBoundary: u,
|
|
917
906
|
strategy: c
|
|
@@ -920,26 +909,26 @@ async function me(e, t) {
|
|
|
920
909
|
y: i,
|
|
921
910
|
width: s.floating.width,
|
|
922
911
|
height: s.floating.height
|
|
923
|
-
} : s.reference,
|
|
912
|
+
} : s.reference, A = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), b = await (r.isElement == null ? void 0 : r.isElement(A)) ? await (r.getScale == null ? void 0 : r.getScale(A)) || {
|
|
924
913
|
x: 1,
|
|
925
914
|
y: 1
|
|
926
915
|
} : {
|
|
927
916
|
x: 1,
|
|
928
917
|
y: 1
|
|
929
|
-
},
|
|
918
|
+
}, _ = Ee(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
930
919
|
elements: a,
|
|
931
920
|
rect: w,
|
|
932
|
-
offsetParent:
|
|
921
|
+
offsetParent: A,
|
|
933
922
|
strategy: c
|
|
934
923
|
}) : w);
|
|
935
924
|
return {
|
|
936
|
-
top: (
|
|
937
|
-
bottom: (
|
|
938
|
-
left: (
|
|
939
|
-
right: (
|
|
925
|
+
top: (y.top - _.top + m.top) / b.y,
|
|
926
|
+
bottom: (_.bottom - y.bottom + m.bottom) / b.y,
|
|
927
|
+
left: (y.left - _.left + m.left) / b.x,
|
|
928
|
+
right: (_.right - y.right + m.right) / b.x
|
|
940
929
|
};
|
|
941
930
|
}
|
|
942
|
-
const
|
|
931
|
+
const jr = (e) => ({
|
|
943
932
|
name: "arrow",
|
|
944
933
|
options: e,
|
|
945
934
|
async fn(t) {
|
|
@@ -954,29 +943,29 @@ const Ir = (e) => ({
|
|
|
954
943
|
} = t, {
|
|
955
944
|
element: l,
|
|
956
945
|
padding: u = 0
|
|
957
|
-
} =
|
|
946
|
+
} = V(e, t) || {};
|
|
958
947
|
if (l == null)
|
|
959
948
|
return {};
|
|
960
|
-
const d =
|
|
949
|
+
const d = Vt(u), h = {
|
|
961
950
|
x: n,
|
|
962
951
|
y: o
|
|
963
|
-
}, p =
|
|
964
|
-
let
|
|
965
|
-
(!
|
|
966
|
-
const
|
|
952
|
+
}, p = Ue(i), m = Ve(p), g = await s.getDimensions(l), v = p === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", A = v ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[p] - h[p] - r.floating[m], _ = h[p] - r.reference[p], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
953
|
+
let P = C ? C[A] : 0;
|
|
954
|
+
(!P || !await (s.isElement == null ? void 0 : s.isElement(C))) && (P = a.floating[A] || r.floating[m]);
|
|
955
|
+
const O = b / 2 - _ / 2, D = P / 2 - g[m] / 2 - 1, R = j(d[y], D), M = j(d[w], D), $ = R, k = P - g[m] - M, T = P / 2 - g[m] / 2 + O, L = Be($, T, k), F = !c.arrow && ae(i) != null && T !== L && r.reference[m] / 2 - (T < $ ? R : M) - g[m] / 2 < 0, E = F ? T < $ ? T - $ : T - k : 0;
|
|
967
956
|
return {
|
|
968
|
-
[p]: h[p] +
|
|
957
|
+
[p]: h[p] + E,
|
|
969
958
|
data: {
|
|
970
|
-
[p]:
|
|
971
|
-
centerOffset: T -
|
|
972
|
-
...
|
|
973
|
-
alignmentOffset:
|
|
959
|
+
[p]: L,
|
|
960
|
+
centerOffset: T - L - E,
|
|
961
|
+
...F && {
|
|
962
|
+
alignmentOffset: E
|
|
974
963
|
}
|
|
975
964
|
},
|
|
976
|
-
reset:
|
|
965
|
+
reset: F
|
|
977
966
|
};
|
|
978
967
|
}
|
|
979
|
-
}),
|
|
968
|
+
}), zr = function(e) {
|
|
980
969
|
return e === void 0 && (e = {}), {
|
|
981
970
|
name: "flip",
|
|
982
971
|
options: e,
|
|
@@ -996,59 +985,59 @@ const Ir = (e) => ({
|
|
|
996
985
|
fallbackStrategy: p = "bestFit",
|
|
997
986
|
fallbackAxisSideDirection: m = "none",
|
|
998
987
|
flipAlignment: g = !0,
|
|
999
|
-
...
|
|
1000
|
-
} =
|
|
988
|
+
...v
|
|
989
|
+
} = V(e, t);
|
|
1001
990
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
1002
991
|
return {};
|
|
1003
|
-
const
|
|
1004
|
-
!h &&
|
|
1005
|
-
const
|
|
1006
|
-
let
|
|
1007
|
-
if (u &&
|
|
1008
|
-
const T =
|
|
1009
|
-
|
|
992
|
+
const y = U(i), w = X(a), A = U(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), _ = h || (A || !g ? [Ce(a)] : Fr(a)), C = m !== "none";
|
|
993
|
+
!h && C && _.push(...Br(a, g, m, b));
|
|
994
|
+
const P = [a, ..._], O = await he(t, v), D = [];
|
|
995
|
+
let R = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
996
|
+
if (u && D.push(O[y]), d) {
|
|
997
|
+
const T = kr(i, s, b);
|
|
998
|
+
D.push(O[T[0]], O[T[1]]);
|
|
1010
999
|
}
|
|
1011
|
-
if (
|
|
1000
|
+
if (R = [...R, {
|
|
1012
1001
|
placement: i,
|
|
1013
|
-
overflows:
|
|
1014
|
-
}], !
|
|
1015
|
-
var
|
|
1016
|
-
const T = (((
|
|
1017
|
-
if (
|
|
1002
|
+
overflows: D
|
|
1003
|
+
}], !D.every((T) => T <= 0)) {
|
|
1004
|
+
var M, $;
|
|
1005
|
+
const T = (((M = r.flip) == null ? void 0 : M.index) || 0) + 1, L = P[T];
|
|
1006
|
+
if (L)
|
|
1018
1007
|
return {
|
|
1019
1008
|
data: {
|
|
1020
1009
|
index: T,
|
|
1021
|
-
overflows:
|
|
1010
|
+
overflows: R
|
|
1022
1011
|
},
|
|
1023
1012
|
reset: {
|
|
1024
|
-
placement:
|
|
1013
|
+
placement: L
|
|
1025
1014
|
}
|
|
1026
1015
|
};
|
|
1027
|
-
let
|
|
1028
|
-
if (!
|
|
1016
|
+
let F = ($ = R.filter((E) => E.overflows[0] <= 0).sort((E, S) => E.overflows[1] - S.overflows[1])[0]) == null ? void 0 : $.placement;
|
|
1017
|
+
if (!F)
|
|
1029
1018
|
switch (p) {
|
|
1030
1019
|
case "bestFit": {
|
|
1031
|
-
var
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
const
|
|
1035
|
-
return
|
|
1020
|
+
var k;
|
|
1021
|
+
const E = (k = R.filter((S) => {
|
|
1022
|
+
if (C) {
|
|
1023
|
+
const N = X(S.placement);
|
|
1024
|
+
return N === w || // Create a bias to the `y` side axis due to horizontal
|
|
1036
1025
|
// reading directions favoring greater width.
|
|
1037
|
-
|
|
1026
|
+
N === "y";
|
|
1038
1027
|
}
|
|
1039
1028
|
return !0;
|
|
1040
|
-
}).map((
|
|
1041
|
-
|
|
1029
|
+
}).map((S) => [S.placement, S.overflows.filter((N) => N > 0).reduce((N, Le) => N + Le, 0)]).sort((S, N) => S[1] - N[1])[0]) == null ? void 0 : k[0];
|
|
1030
|
+
E && (F = E);
|
|
1042
1031
|
break;
|
|
1043
1032
|
}
|
|
1044
1033
|
case "initialPlacement":
|
|
1045
|
-
|
|
1034
|
+
F = a;
|
|
1046
1035
|
break;
|
|
1047
1036
|
}
|
|
1048
|
-
if (i !==
|
|
1037
|
+
if (i !== F)
|
|
1049
1038
|
return {
|
|
1050
1039
|
reset: {
|
|
1051
|
-
placement:
|
|
1040
|
+
placement: F
|
|
1052
1041
|
}
|
|
1053
1042
|
};
|
|
1054
1043
|
}
|
|
@@ -1056,7 +1045,7 @@ const Ir = (e) => ({
|
|
|
1056
1045
|
}
|
|
1057
1046
|
};
|
|
1058
1047
|
};
|
|
1059
|
-
function
|
|
1048
|
+
function _t(e, t) {
|
|
1060
1049
|
return {
|
|
1061
1050
|
top: e.top - t.height,
|
|
1062
1051
|
right: e.right - t.width,
|
|
@@ -1064,10 +1053,10 @@ function gt(e, t) {
|
|
|
1064
1053
|
left: e.left - t.width
|
|
1065
1054
|
};
|
|
1066
1055
|
}
|
|
1067
|
-
function
|
|
1068
|
-
return
|
|
1056
|
+
function At(e) {
|
|
1057
|
+
return Lr.some((t) => e[t] >= 0);
|
|
1069
1058
|
}
|
|
1070
|
-
const
|
|
1059
|
+
const qr = function(e) {
|
|
1071
1060
|
return e === void 0 && (e = {}), {
|
|
1072
1061
|
name: "hide",
|
|
1073
1062
|
options: e,
|
|
@@ -1077,29 +1066,29 @@ const Br = function(e) {
|
|
|
1077
1066
|
} = t, {
|
|
1078
1067
|
strategy: o = "referenceHidden",
|
|
1079
1068
|
...i
|
|
1080
|
-
} =
|
|
1069
|
+
} = V(e, t);
|
|
1081
1070
|
switch (o) {
|
|
1082
1071
|
case "referenceHidden": {
|
|
1083
|
-
const r = await
|
|
1072
|
+
const r = await he(t, {
|
|
1084
1073
|
...i,
|
|
1085
1074
|
elementContext: "reference"
|
|
1086
|
-
}), s =
|
|
1075
|
+
}), s = _t(r, n.reference);
|
|
1087
1076
|
return {
|
|
1088
1077
|
data: {
|
|
1089
1078
|
referenceHiddenOffsets: s,
|
|
1090
|
-
referenceHidden:
|
|
1079
|
+
referenceHidden: At(s)
|
|
1091
1080
|
}
|
|
1092
1081
|
};
|
|
1093
1082
|
}
|
|
1094
1083
|
case "escaped": {
|
|
1095
|
-
const r = await
|
|
1084
|
+
const r = await he(t, {
|
|
1096
1085
|
...i,
|
|
1097
1086
|
altBoundary: !0
|
|
1098
|
-
}), s =
|
|
1087
|
+
}), s = _t(r, n.floating);
|
|
1099
1088
|
return {
|
|
1100
1089
|
data: {
|
|
1101
1090
|
escapedOffsets: s,
|
|
1102
|
-
escaped:
|
|
1091
|
+
escaped: At(s)
|
|
1103
1092
|
}
|
|
1104
1093
|
};
|
|
1105
1094
|
}
|
|
@@ -1109,12 +1098,12 @@ const Br = function(e) {
|
|
|
1109
1098
|
}
|
|
1110
1099
|
};
|
|
1111
1100
|
};
|
|
1112
|
-
async function
|
|
1101
|
+
async function Vr(e, t) {
|
|
1113
1102
|
const {
|
|
1114
1103
|
placement: n,
|
|
1115
1104
|
platform: o,
|
|
1116
1105
|
elements: i
|
|
1117
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s =
|
|
1106
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = U(n), a = ae(n), c = X(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && c ? -1 : 1, d = V(t, e);
|
|
1118
1107
|
let {
|
|
1119
1108
|
mainAxis: h,
|
|
1120
1109
|
crossAxis: p,
|
|
@@ -1124,9 +1113,10 @@ async function Hr(e, t) {
|
|
|
1124
1113
|
crossAxis: 0,
|
|
1125
1114
|
alignmentAxis: null
|
|
1126
1115
|
} : {
|
|
1127
|
-
mainAxis:
|
|
1128
|
-
crossAxis:
|
|
1129
|
-
alignmentAxis:
|
|
1116
|
+
mainAxis: 0,
|
|
1117
|
+
crossAxis: 0,
|
|
1118
|
+
alignmentAxis: null,
|
|
1119
|
+
...d
|
|
1130
1120
|
};
|
|
1131
1121
|
return a && typeof m == "number" && (p = a === "end" ? m * -1 : m), c ? {
|
|
1132
1122
|
x: p * u,
|
|
@@ -1136,7 +1126,7 @@ async function Hr(e, t) {
|
|
|
1136
1126
|
y: p * u
|
|
1137
1127
|
};
|
|
1138
1128
|
}
|
|
1139
|
-
const
|
|
1129
|
+
const Ur = function(e) {
|
|
1140
1130
|
return e === void 0 && (e = 0), {
|
|
1141
1131
|
name: "offset",
|
|
1142
1132
|
options: e,
|
|
@@ -1147,7 +1137,7 @@ const Wr = function(e) {
|
|
|
1147
1137
|
y: r,
|
|
1148
1138
|
placement: s,
|
|
1149
1139
|
middlewareData: a
|
|
1150
|
-
} = t, c = await
|
|
1140
|
+
} = t, c = await Vr(t, e);
|
|
1151
1141
|
return s === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
|
|
1152
1142
|
x: i + c.x,
|
|
1153
1143
|
y: r + c.y,
|
|
@@ -1158,7 +1148,7 @@ const Wr = function(e) {
|
|
|
1158
1148
|
};
|
|
1159
1149
|
}
|
|
1160
1150
|
};
|
|
1161
|
-
},
|
|
1151
|
+
}, Yr = function(e) {
|
|
1162
1152
|
return e === void 0 && (e = {}), {
|
|
1163
1153
|
name: "shift",
|
|
1164
1154
|
options: e,
|
|
@@ -1171,30 +1161,30 @@ const Wr = function(e) {
|
|
|
1171
1161
|
mainAxis: r = !0,
|
|
1172
1162
|
crossAxis: s = !1,
|
|
1173
1163
|
limiter: a = {
|
|
1174
|
-
fn: (
|
|
1164
|
+
fn: (v) => {
|
|
1175
1165
|
let {
|
|
1176
|
-
x:
|
|
1166
|
+
x: y,
|
|
1177
1167
|
y: w
|
|
1178
|
-
} =
|
|
1168
|
+
} = v;
|
|
1179
1169
|
return {
|
|
1180
|
-
x:
|
|
1170
|
+
x: y,
|
|
1181
1171
|
y: w
|
|
1182
1172
|
};
|
|
1183
1173
|
}
|
|
1184
1174
|
},
|
|
1185
1175
|
...c
|
|
1186
|
-
} =
|
|
1176
|
+
} = V(e, t), l = {
|
|
1187
1177
|
x: n,
|
|
1188
1178
|
y: o
|
|
1189
|
-
}, u = await
|
|
1179
|
+
}, u = await he(t, c), d = X(U(i)), h = qe(d);
|
|
1190
1180
|
let p = l[h], m = l[d];
|
|
1191
1181
|
if (r) {
|
|
1192
|
-
const
|
|
1193
|
-
p =
|
|
1182
|
+
const v = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", w = p + u[v], A = p - u[y];
|
|
1183
|
+
p = Be(w, p, A);
|
|
1194
1184
|
}
|
|
1195
1185
|
if (s) {
|
|
1196
|
-
const
|
|
1197
|
-
m =
|
|
1186
|
+
const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = m + u[v], A = m - u[y];
|
|
1187
|
+
m = Be(w, m, A);
|
|
1198
1188
|
}
|
|
1199
1189
|
const g = a.fn({
|
|
1200
1190
|
...t,
|
|
@@ -1205,16 +1195,12 @@ const Wr = function(e) {
|
|
|
1205
1195
|
...g,
|
|
1206
1196
|
data: {
|
|
1207
1197
|
x: g.x - n,
|
|
1208
|
-
y: g.y - o
|
|
1209
|
-
enabled: {
|
|
1210
|
-
[h]: r,
|
|
1211
|
-
[d]: s
|
|
1212
|
-
}
|
|
1198
|
+
y: g.y - o
|
|
1213
1199
|
}
|
|
1214
1200
|
};
|
|
1215
1201
|
}
|
|
1216
1202
|
};
|
|
1217
|
-
},
|
|
1203
|
+
}, Gr = function(e) {
|
|
1218
1204
|
return e === void 0 && (e = {}), {
|
|
1219
1205
|
options: e,
|
|
1220
1206
|
fn(t) {
|
|
@@ -1228,12 +1214,12 @@ const Wr = function(e) {
|
|
|
1228
1214
|
offset: a = 0,
|
|
1229
1215
|
mainAxis: c = !0,
|
|
1230
1216
|
crossAxis: l = !0
|
|
1231
|
-
} =
|
|
1217
|
+
} = V(e, t), u = {
|
|
1232
1218
|
x: n,
|
|
1233
1219
|
y: o
|
|
1234
|
-
}, d =
|
|
1220
|
+
}, d = X(i), h = qe(d);
|
|
1235
1221
|
let p = u[h], m = u[d];
|
|
1236
|
-
const g =
|
|
1222
|
+
const g = V(a, t), v = typeof g == "number" ? {
|
|
1237
1223
|
mainAxis: g,
|
|
1238
1224
|
crossAxis: 0
|
|
1239
1225
|
} : {
|
|
@@ -1242,13 +1228,13 @@ const Wr = function(e) {
|
|
|
1242
1228
|
...g
|
|
1243
1229
|
};
|
|
1244
1230
|
if (c) {
|
|
1245
|
-
const
|
|
1246
|
-
p < b ? p = b : p >
|
|
1231
|
+
const A = h === "y" ? "height" : "width", b = r.reference[h] - r.floating[A] + v.mainAxis, _ = r.reference[h] + r.reference[A] - v.mainAxis;
|
|
1232
|
+
p < b ? p = b : p > _ && (p = _);
|
|
1247
1233
|
}
|
|
1248
1234
|
if (l) {
|
|
1249
|
-
var
|
|
1250
|
-
const
|
|
1251
|
-
m <
|
|
1235
|
+
var y, w;
|
|
1236
|
+
const A = h === "y" ? "width" : "height", b = ["top", "left"].includes(U(i)), _ = r.reference[d] - r.floating[A] + (b && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (b ? 0 : v.crossAxis), C = r.reference[d] + r.reference[A] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? v.crossAxis : 0);
|
|
1237
|
+
m < _ ? m = _ : m > C && (m = C);
|
|
1252
1238
|
}
|
|
1253
1239
|
return {
|
|
1254
1240
|
[h]: p,
|
|
@@ -1256,40 +1242,39 @@ const Wr = function(e) {
|
|
|
1256
1242
|
};
|
|
1257
1243
|
}
|
|
1258
1244
|
};
|
|
1259
|
-
},
|
|
1245
|
+
}, Xr = function(e) {
|
|
1260
1246
|
return e === void 0 && (e = {}), {
|
|
1261
1247
|
name: "size",
|
|
1262
1248
|
options: e,
|
|
1263
1249
|
async fn(t) {
|
|
1264
|
-
var n, o;
|
|
1265
1250
|
const {
|
|
1266
|
-
placement:
|
|
1267
|
-
rects:
|
|
1268
|
-
platform:
|
|
1269
|
-
elements:
|
|
1251
|
+
placement: n,
|
|
1252
|
+
rects: o,
|
|
1253
|
+
platform: i,
|
|
1254
|
+
elements: r
|
|
1270
1255
|
} = t, {
|
|
1271
|
-
apply:
|
|
1256
|
+
apply: s = () => {
|
|
1272
1257
|
},
|
|
1273
|
-
...
|
|
1274
|
-
} =
|
|
1275
|
-
width:
|
|
1276
|
-
height:
|
|
1277
|
-
} =
|
|
1278
|
-
let
|
|
1279
|
-
|
|
1280
|
-
const
|
|
1281
|
-
let _ =
|
|
1282
|
-
if (
|
|
1283
|
-
const O = I(
|
|
1284
|
-
|
|
1258
|
+
...a
|
|
1259
|
+
} = V(e, t), c = await he(t, a), l = U(n), u = ae(n), d = X(n) === "y", {
|
|
1260
|
+
width: h,
|
|
1261
|
+
height: p
|
|
1262
|
+
} = o.floating;
|
|
1263
|
+
let m, g;
|
|
1264
|
+
l === "top" || l === "bottom" ? (m = l, g = u === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (g = l, m = u === "end" ? "top" : "bottom");
|
|
1265
|
+
const v = p - c.top - c.bottom, y = h - c.left - c.right, w = j(p - c[m], v), A = j(h - c[g], y), b = !t.middlewareData.shift;
|
|
1266
|
+
let _ = w, C = A;
|
|
1267
|
+
if (d ? C = u || b ? j(A, y) : y : _ = u || b ? j(w, v) : v, b && !u) {
|
|
1268
|
+
const O = I(c.left, 0), D = I(c.right, 0), R = I(c.top, 0), M = I(c.bottom, 0);
|
|
1269
|
+
d ? C = h - 2 * (O !== 0 || D !== 0 ? O + D : I(c.left, c.right)) : _ = p - 2 * (R !== 0 || M !== 0 ? R + M : I(c.top, c.bottom));
|
|
1285
1270
|
}
|
|
1286
|
-
await
|
|
1271
|
+
await s({
|
|
1287
1272
|
...t,
|
|
1288
|
-
availableWidth:
|
|
1273
|
+
availableWidth: C,
|
|
1289
1274
|
availableHeight: _
|
|
1290
1275
|
});
|
|
1291
|
-
const
|
|
1292
|
-
return
|
|
1276
|
+
const P = await i.getDimensions(r.floating);
|
|
1277
|
+
return h !== P.width || p !== P.height ? {
|
|
1293
1278
|
reset: {
|
|
1294
1279
|
rects: !0
|
|
1295
1280
|
}
|
|
@@ -1297,45 +1282,42 @@ const Wr = function(e) {
|
|
|
1297
1282
|
}
|
|
1298
1283
|
};
|
|
1299
1284
|
};
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1302
|
-
}
|
|
1303
|
-
function le(e) {
|
|
1304
|
-
return jt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1285
|
+
function ce(e) {
|
|
1286
|
+
return Ut(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1305
1287
|
}
|
|
1306
|
-
function
|
|
1288
|
+
function B(e) {
|
|
1307
1289
|
var t;
|
|
1308
1290
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1309
1291
|
}
|
|
1310
|
-
function
|
|
1292
|
+
function Y(e) {
|
|
1311
1293
|
var t;
|
|
1312
|
-
return (t = (
|
|
1294
|
+
return (t = (Ut(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1313
1295
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1296
|
+
function Ut(e) {
|
|
1297
|
+
return e instanceof Node || e instanceof B(e).Node;
|
|
1316
1298
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1299
|
+
function W(e) {
|
|
1300
|
+
return e instanceof Element || e instanceof B(e).Element;
|
|
1319
1301
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1302
|
+
function z(e) {
|
|
1303
|
+
return e instanceof HTMLElement || e instanceof B(e).HTMLElement;
|
|
1322
1304
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return
|
|
1305
|
+
function Pt(e) {
|
|
1306
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
1325
1307
|
}
|
|
1326
|
-
function
|
|
1308
|
+
function ge(e) {
|
|
1327
1309
|
const {
|
|
1328
1310
|
overflow: t,
|
|
1329
1311
|
overflowX: n,
|
|
1330
1312
|
overflowY: o,
|
|
1331
1313
|
display: i
|
|
1332
|
-
} =
|
|
1314
|
+
} = H(e);
|
|
1333
1315
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
|
|
1334
1316
|
}
|
|
1335
|
-
function
|
|
1336
|
-
return ["table", "td", "th"].includes(
|
|
1317
|
+
function Zr(e) {
|
|
1318
|
+
return ["table", "td", "th"].includes(ce(e));
|
|
1337
1319
|
}
|
|
1338
|
-
function
|
|
1320
|
+
function Re(e) {
|
|
1339
1321
|
return [":popover-open", ":modal"].some((t) => {
|
|
1340
1322
|
try {
|
|
1341
1323
|
return e.matches(t);
|
|
@@ -1344,32 +1326,32 @@ function Se(e) {
|
|
|
1344
1326
|
}
|
|
1345
1327
|
});
|
|
1346
1328
|
}
|
|
1347
|
-
function
|
|
1348
|
-
const t =
|
|
1349
|
-
return
|
|
1329
|
+
function Ye(e) {
|
|
1330
|
+
const t = Ge(), n = W(e) ? H(e) : e;
|
|
1331
|
+
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
1350
1332
|
}
|
|
1351
|
-
function
|
|
1352
|
-
let t =
|
|
1353
|
-
for (;
|
|
1354
|
-
if (
|
|
1333
|
+
function Kr(e) {
|
|
1334
|
+
let t = Z(e);
|
|
1335
|
+
for (; z(t) && !oe(t); ) {
|
|
1336
|
+
if (Ye(t))
|
|
1355
1337
|
return t;
|
|
1356
|
-
if (
|
|
1338
|
+
if (Re(t))
|
|
1357
1339
|
return null;
|
|
1358
|
-
t =
|
|
1340
|
+
t = Z(t);
|
|
1359
1341
|
}
|
|
1360
1342
|
return null;
|
|
1361
1343
|
}
|
|
1362
|
-
function
|
|
1344
|
+
function Ge() {
|
|
1363
1345
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1364
1346
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return ["html", "body", "#document"].includes(
|
|
1347
|
+
function oe(e) {
|
|
1348
|
+
return ["html", "body", "#document"].includes(ce(e));
|
|
1367
1349
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1350
|
+
function H(e) {
|
|
1351
|
+
return B(e).getComputedStyle(e);
|
|
1370
1352
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1353
|
+
function Te(e) {
|
|
1354
|
+
return W(e) ? {
|
|
1373
1355
|
scrollLeft: e.scrollLeft,
|
|
1374
1356
|
scrollTop: e.scrollTop
|
|
1375
1357
|
} : {
|
|
@@ -1377,158 +1359,145 @@ function Ne(e) {
|
|
|
1377
1359
|
scrollTop: e.scrollY
|
|
1378
1360
|
};
|
|
1379
1361
|
}
|
|
1380
|
-
function
|
|
1381
|
-
if (
|
|
1362
|
+
function Z(e) {
|
|
1363
|
+
if (ce(e) === "html")
|
|
1382
1364
|
return e;
|
|
1383
1365
|
const t = (
|
|
1384
1366
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1385
1367
|
e.assignedSlot || // DOM Element detected.
|
|
1386
1368
|
e.parentNode || // ShadowRoot detected.
|
|
1387
|
-
|
|
1388
|
-
|
|
1369
|
+
Pt(e) && e.host || // Fallback.
|
|
1370
|
+
Y(e)
|
|
1389
1371
|
);
|
|
1390
|
-
return
|
|
1372
|
+
return Pt(t) ? t.host : t;
|
|
1391
1373
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const t =
|
|
1394
|
-
return
|
|
1374
|
+
function Yt(e) {
|
|
1375
|
+
const t = Z(e);
|
|
1376
|
+
return oe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && ge(t) ? t : Yt(t);
|
|
1395
1377
|
}
|
|
1396
|
-
function
|
|
1378
|
+
function me(e, t, n) {
|
|
1397
1379
|
var o;
|
|
1398
1380
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1399
|
-
const i =
|
|
1381
|
+
const i = Yt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = B(i);
|
|
1400
1382
|
if (r) {
|
|
1401
|
-
const a =
|
|
1402
|
-
return t.concat(s, s.visualViewport || [],
|
|
1383
|
+
const a = He(s);
|
|
1384
|
+
return t.concat(s, s.visualViewport || [], ge(i) ? i : [], a && n ? me(a) : []);
|
|
1403
1385
|
}
|
|
1404
|
-
return t.concat(i,
|
|
1386
|
+
return t.concat(i, me(i, [], n));
|
|
1405
1387
|
}
|
|
1406
|
-
function
|
|
1388
|
+
function He(e) {
|
|
1407
1389
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1408
1390
|
}
|
|
1409
|
-
function
|
|
1410
|
-
const t =
|
|
1391
|
+
function Gt(e) {
|
|
1392
|
+
const t = H(e);
|
|
1411
1393
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1412
|
-
const i =
|
|
1394
|
+
const i = z(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Pe(n) !== r || Pe(o) !== s;
|
|
1413
1395
|
return a && (n = r, o = s), {
|
|
1414
1396
|
width: n,
|
|
1415
1397
|
height: o,
|
|
1416
1398
|
$: a
|
|
1417
1399
|
};
|
|
1418
1400
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1401
|
+
function Xe(e) {
|
|
1402
|
+
return W(e) ? e : e.contextElement;
|
|
1421
1403
|
}
|
|
1422
|
-
function
|
|
1423
|
-
const t =
|
|
1424
|
-
if (!
|
|
1425
|
-
return
|
|
1404
|
+
function re(e) {
|
|
1405
|
+
const t = Xe(e);
|
|
1406
|
+
if (!z(t))
|
|
1407
|
+
return G(1);
|
|
1426
1408
|
const n = t.getBoundingClientRect(), {
|
|
1427
1409
|
width: o,
|
|
1428
1410
|
height: i,
|
|
1429
1411
|
$: r
|
|
1430
|
-
} =
|
|
1431
|
-
let s = (r ?
|
|
1412
|
+
} = Gt(t);
|
|
1413
|
+
let s = (r ? Pe(n.width) : n.width) / o, a = (r ? Pe(n.height) : n.height) / i;
|
|
1432
1414
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
1433
1415
|
x: s,
|
|
1434
1416
|
y: a
|
|
1435
1417
|
};
|
|
1436
1418
|
}
|
|
1437
|
-
const
|
|
1438
|
-
function
|
|
1439
|
-
const t =
|
|
1440
|
-
return !
|
|
1419
|
+
const Jr = /* @__PURE__ */ G(0);
|
|
1420
|
+
function Xt(e) {
|
|
1421
|
+
const t = B(e);
|
|
1422
|
+
return !Ge() || !t.visualViewport ? Jr : {
|
|
1441
1423
|
x: t.visualViewport.offsetLeft,
|
|
1442
1424
|
y: t.visualViewport.offsetTop
|
|
1443
1425
|
};
|
|
1444
1426
|
}
|
|
1445
|
-
function
|
|
1446
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1427
|
+
function Qr(e, t, n) {
|
|
1428
|
+
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
1447
1429
|
}
|
|
1448
|
-
function
|
|
1430
|
+
function ee(e, t, n, o) {
|
|
1449
1431
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1450
|
-
const i = e.getBoundingClientRect(), r =
|
|
1451
|
-
let s =
|
|
1452
|
-
t && (o ?
|
|
1453
|
-
const a =
|
|
1432
|
+
const i = e.getBoundingClientRect(), r = Xe(e);
|
|
1433
|
+
let s = G(1);
|
|
1434
|
+
t && (o ? W(o) && (s = re(o)) : s = re(e));
|
|
1435
|
+
const a = Qr(r, n, o) ? Xt(r) : G(0);
|
|
1454
1436
|
let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
|
|
1455
1437
|
if (r) {
|
|
1456
|
-
const h =
|
|
1457
|
-
let m = h, g =
|
|
1438
|
+
const h = B(r), p = o && W(o) ? B(o) : o;
|
|
1439
|
+
let m = h, g = He(m);
|
|
1458
1440
|
for (; g && o && p !== m; ) {
|
|
1459
|
-
const
|
|
1460
|
-
c *=
|
|
1441
|
+
const v = re(g), y = g.getBoundingClientRect(), w = H(g), A = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, b = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
1442
|
+
c *= v.x, l *= v.y, u *= v.x, d *= v.y, c += A, l += b, m = B(g), g = He(m);
|
|
1461
1443
|
}
|
|
1462
1444
|
}
|
|
1463
|
-
return
|
|
1445
|
+
return Ee({
|
|
1464
1446
|
width: u,
|
|
1465
1447
|
height: d,
|
|
1466
1448
|
x: c,
|
|
1467
1449
|
y: l
|
|
1468
1450
|
});
|
|
1469
1451
|
}
|
|
1470
|
-
function
|
|
1471
|
-
const n = Ne(e).scrollLeft;
|
|
1472
|
-
return t ? t.left + n : te(q(e)).left + n;
|
|
1473
|
-
}
|
|
1474
|
-
function Ut(e, t, n) {
|
|
1475
|
-
n === void 0 && (n = !1);
|
|
1476
|
-
const o = e.getBoundingClientRect(), i = o.left + t.scrollLeft - (n ? 0 : (
|
|
1477
|
-
// RTL <body> scrollbar.
|
|
1478
|
-
Ke(e, o)
|
|
1479
|
-
)), r = o.top + t.scrollTop;
|
|
1480
|
-
return {
|
|
1481
|
-
x: i,
|
|
1482
|
-
y: r
|
|
1483
|
-
};
|
|
1484
|
-
}
|
|
1485
|
-
function Xr(e) {
|
|
1452
|
+
function eo(e) {
|
|
1486
1453
|
let {
|
|
1487
1454
|
elements: t,
|
|
1488
1455
|
rect: n,
|
|
1489
1456
|
offsetParent: o,
|
|
1490
1457
|
strategy: i
|
|
1491
1458
|
} = e;
|
|
1492
|
-
const r = i === "fixed", s =
|
|
1459
|
+
const r = i === "fixed", s = Y(o), a = t ? Re(t.floating) : !1;
|
|
1493
1460
|
if (o === s || a && r)
|
|
1494
1461
|
return n;
|
|
1495
1462
|
let c = {
|
|
1496
1463
|
scrollLeft: 0,
|
|
1497
1464
|
scrollTop: 0
|
|
1498
|
-
}, l =
|
|
1499
|
-
const u =
|
|
1500
|
-
if ((d || !d && !r) && ((
|
|
1501
|
-
const
|
|
1502
|
-
l =
|
|
1465
|
+
}, l = G(1);
|
|
1466
|
+
const u = G(0), d = z(o);
|
|
1467
|
+
if ((d || !d && !r) && ((ce(o) !== "body" || ge(s)) && (c = Te(o)), z(o))) {
|
|
1468
|
+
const h = ee(o);
|
|
1469
|
+
l = re(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
|
|
1503
1470
|
}
|
|
1504
|
-
const h = s && !d && !r ? Ut(s, c, !0) : z(0);
|
|
1505
1471
|
return {
|
|
1506
1472
|
width: n.width * l.x,
|
|
1507
1473
|
height: n.height * l.y,
|
|
1508
|
-
x: n.x * l.x - c.scrollLeft * l.x + u.x
|
|
1509
|
-
y: n.y * l.y - c.scrollTop * l.y + u.y
|
|
1474
|
+
x: n.x * l.x - c.scrollLeft * l.x + u.x,
|
|
1475
|
+
y: n.y * l.y - c.scrollTop * l.y + u.y
|
|
1510
1476
|
};
|
|
1511
1477
|
}
|
|
1512
|
-
function
|
|
1478
|
+
function to(e) {
|
|
1513
1479
|
return Array.from(e.getClientRects());
|
|
1514
1480
|
}
|
|
1515
|
-
function
|
|
1516
|
-
|
|
1517
|
-
|
|
1481
|
+
function Zt(e) {
|
|
1482
|
+
return ee(Y(e)).left + Te(e).scrollLeft;
|
|
1483
|
+
}
|
|
1484
|
+
function no(e) {
|
|
1485
|
+
const t = Y(e), n = Te(e), o = e.ownerDocument.body, i = I(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = I(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1486
|
+
let s = -n.scrollLeft + Zt(e);
|
|
1518
1487
|
const a = -n.scrollTop;
|
|
1519
|
-
return
|
|
1488
|
+
return H(o).direction === "rtl" && (s += I(t.clientWidth, o.clientWidth) - i), {
|
|
1520
1489
|
width: i,
|
|
1521
1490
|
height: r,
|
|
1522
1491
|
x: s,
|
|
1523
1492
|
y: a
|
|
1524
1493
|
};
|
|
1525
1494
|
}
|
|
1526
|
-
function
|
|
1527
|
-
const n =
|
|
1495
|
+
function ro(e, t) {
|
|
1496
|
+
const n = B(e), o = Y(e), i = n.visualViewport;
|
|
1528
1497
|
let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
|
|
1529
1498
|
if (i) {
|
|
1530
1499
|
r = i.width, s = i.height;
|
|
1531
|
-
const l =
|
|
1500
|
+
const l = Ge();
|
|
1532
1501
|
(!l || l && t === "fixed") && (a = i.offsetLeft, c = i.offsetTop);
|
|
1533
1502
|
}
|
|
1534
1503
|
return {
|
|
@@ -1538,8 +1507,8 @@ function Jr(e, t) {
|
|
|
1538
1507
|
y: c
|
|
1539
1508
|
};
|
|
1540
1509
|
}
|
|
1541
|
-
function
|
|
1542
|
-
const n =
|
|
1510
|
+
function oo(e, t) {
|
|
1511
|
+
const n = ee(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = z(e) ? re(e) : G(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
|
|
1543
1512
|
return {
|
|
1544
1513
|
width: s,
|
|
1545
1514
|
height: a,
|
|
@@ -1547,53 +1516,52 @@ function Qr(e, t) {
|
|
|
1547
1516
|
y: l
|
|
1548
1517
|
};
|
|
1549
1518
|
}
|
|
1550
|
-
function
|
|
1519
|
+
function Ct(e, t, n) {
|
|
1551
1520
|
let o;
|
|
1552
1521
|
if (t === "viewport")
|
|
1553
|
-
o =
|
|
1522
|
+
o = ro(e, n);
|
|
1554
1523
|
else if (t === "document")
|
|
1555
|
-
o =
|
|
1556
|
-
else if (
|
|
1557
|
-
o =
|
|
1524
|
+
o = no(Y(e));
|
|
1525
|
+
else if (W(t))
|
|
1526
|
+
o = oo(t, n);
|
|
1558
1527
|
else {
|
|
1559
|
-
const i =
|
|
1528
|
+
const i = Xt(e);
|
|
1560
1529
|
o = {
|
|
1530
|
+
...t,
|
|
1561
1531
|
x: t.x - i.x,
|
|
1562
|
-
y: t.y - i.y
|
|
1563
|
-
width: t.width,
|
|
1564
|
-
height: t.height
|
|
1532
|
+
y: t.y - i.y
|
|
1565
1533
|
};
|
|
1566
1534
|
}
|
|
1567
|
-
return
|
|
1535
|
+
return Ee(o);
|
|
1568
1536
|
}
|
|
1569
|
-
function
|
|
1570
|
-
const n =
|
|
1571
|
-
return n === t || !
|
|
1537
|
+
function Kt(e, t) {
|
|
1538
|
+
const n = Z(e);
|
|
1539
|
+
return n === t || !W(n) || oe(n) ? !1 : H(n).position === "fixed" || Kt(n, t);
|
|
1572
1540
|
}
|
|
1573
|
-
function
|
|
1541
|
+
function io(e, t) {
|
|
1574
1542
|
const n = t.get(e);
|
|
1575
1543
|
if (n)
|
|
1576
1544
|
return n;
|
|
1577
|
-
let o =
|
|
1578
|
-
const r =
|
|
1579
|
-
let s = r ?
|
|
1580
|
-
for (;
|
|
1581
|
-
const a =
|
|
1582
|
-
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) ||
|
|
1545
|
+
let o = me(e, [], !1).filter((a) => W(a) && ce(a) !== "body"), i = null;
|
|
1546
|
+
const r = H(e).position === "fixed";
|
|
1547
|
+
let s = r ? Z(e) : e;
|
|
1548
|
+
for (; W(s) && !oe(s); ) {
|
|
1549
|
+
const a = H(s), c = Ye(s);
|
|
1550
|
+
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || ge(s) && !c && Kt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = Z(s);
|
|
1583
1551
|
}
|
|
1584
1552
|
return t.set(e, o), o;
|
|
1585
1553
|
}
|
|
1586
|
-
function
|
|
1554
|
+
function so(e) {
|
|
1587
1555
|
let {
|
|
1588
1556
|
element: t,
|
|
1589
1557
|
boundary: n,
|
|
1590
1558
|
rootBoundary: o,
|
|
1591
1559
|
strategy: i
|
|
1592
1560
|
} = e;
|
|
1593
|
-
const s = [...n === "clippingAncestors" ?
|
|
1594
|
-
const d =
|
|
1595
|
-
return l.top = I(d.top, l.top), l.right =
|
|
1596
|
-
},
|
|
1561
|
+
const s = [...n === "clippingAncestors" ? Re(t) ? [] : io(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
|
|
1562
|
+
const d = Ct(t, u, i);
|
|
1563
|
+
return l.top = I(d.top, l.top), l.right = j(d.right, l.right), l.bottom = j(d.bottom, l.bottom), l.left = I(d.left, l.left), l;
|
|
1564
|
+
}, Ct(t, a, i));
|
|
1597
1565
|
return {
|
|
1598
1566
|
width: c.right - c.left,
|
|
1599
1567
|
height: c.bottom - c.top,
|
|
@@ -1601,69 +1569,64 @@ function to(e) {
|
|
|
1601
1569
|
y: c.top
|
|
1602
1570
|
};
|
|
1603
1571
|
}
|
|
1604
|
-
function
|
|
1572
|
+
function ao(e) {
|
|
1605
1573
|
const {
|
|
1606
1574
|
width: t,
|
|
1607
1575
|
height: n
|
|
1608
|
-
} =
|
|
1576
|
+
} = Gt(e);
|
|
1609
1577
|
return {
|
|
1610
1578
|
width: t,
|
|
1611
1579
|
height: n
|
|
1612
1580
|
};
|
|
1613
1581
|
}
|
|
1614
|
-
function
|
|
1615
|
-
const o =
|
|
1582
|
+
function co(e, t, n) {
|
|
1583
|
+
const o = z(t), i = Y(t), r = n === "fixed", s = ee(e, !0, r, t);
|
|
1616
1584
|
let a = {
|
|
1617
1585
|
scrollLeft: 0,
|
|
1618
1586
|
scrollTop: 0
|
|
1619
1587
|
};
|
|
1620
|
-
const c =
|
|
1588
|
+
const c = G(0);
|
|
1621
1589
|
if (o || !o && !r)
|
|
1622
|
-
if ((
|
|
1623
|
-
const
|
|
1624
|
-
c.x =
|
|
1625
|
-
} else i && (c.x =
|
|
1626
|
-
const l =
|
|
1590
|
+
if ((ce(t) !== "body" || ge(i)) && (a = Te(t)), o) {
|
|
1591
|
+
const d = ee(t, !0, r, t);
|
|
1592
|
+
c.x = d.x + t.clientLeft, c.y = d.y + t.clientTop;
|
|
1593
|
+
} else i && (c.x = Zt(i));
|
|
1594
|
+
const l = s.left + a.scrollLeft - c.x, u = s.top + a.scrollTop - c.y;
|
|
1627
1595
|
return {
|
|
1628
|
-
x:
|
|
1629
|
-
y:
|
|
1596
|
+
x: l,
|
|
1597
|
+
y: u,
|
|
1630
1598
|
width: s.width,
|
|
1631
1599
|
height: s.height
|
|
1632
1600
|
};
|
|
1633
1601
|
}
|
|
1634
|
-
function
|
|
1635
|
-
return
|
|
1602
|
+
function Me(e) {
|
|
1603
|
+
return H(e).position === "static";
|
|
1636
1604
|
}
|
|
1637
|
-
function
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
return q(e) === n && (n = n.ownerDocument.body), n;
|
|
1644
|
-
}
|
|
1645
|
-
function Gt(e, t) {
|
|
1646
|
-
const n = F(e);
|
|
1647
|
-
if (Se(e))
|
|
1605
|
+
function Et(e, t) {
|
|
1606
|
+
return !z(e) || H(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1607
|
+
}
|
|
1608
|
+
function Jt(e, t) {
|
|
1609
|
+
const n = B(e);
|
|
1610
|
+
if (Re(e))
|
|
1648
1611
|
return n;
|
|
1649
|
-
if (!
|
|
1650
|
-
let i =
|
|
1651
|
-
for (; i && !
|
|
1652
|
-
if (
|
|
1612
|
+
if (!z(e)) {
|
|
1613
|
+
let i = Z(e);
|
|
1614
|
+
for (; i && !oe(i); ) {
|
|
1615
|
+
if (W(i) && !Me(i))
|
|
1653
1616
|
return i;
|
|
1654
|
-
i =
|
|
1617
|
+
i = Z(i);
|
|
1655
1618
|
}
|
|
1656
1619
|
return n;
|
|
1657
1620
|
}
|
|
1658
|
-
let o =
|
|
1659
|
-
for (; o &&
|
|
1660
|
-
o =
|
|
1661
|
-
return o &&
|
|
1621
|
+
let o = Et(e, t);
|
|
1622
|
+
for (; o && Zr(o) && Me(o); )
|
|
1623
|
+
o = Et(o, t);
|
|
1624
|
+
return o && oe(o) && Me(o) && !Ye(o) ? n : o || Kr(e) || n;
|
|
1662
1625
|
}
|
|
1663
|
-
const
|
|
1664
|
-
const t = this.getOffsetParent ||
|
|
1626
|
+
const lo = async function(e) {
|
|
1627
|
+
const t = this.getOffsetParent || Jt, n = this.getDimensions, o = await n(e.floating);
|
|
1665
1628
|
return {
|
|
1666
|
-
reference:
|
|
1629
|
+
reference: co(e.reference, await t(e.floating), e.strategy),
|
|
1667
1630
|
floating: {
|
|
1668
1631
|
x: 0,
|
|
1669
1632
|
y: 0,
|
|
@@ -1672,71 +1635,68 @@ const oo = async function(e) {
|
|
|
1672
1635
|
}
|
|
1673
1636
|
};
|
|
1674
1637
|
};
|
|
1675
|
-
function
|
|
1676
|
-
return
|
|
1677
|
-
}
|
|
1678
|
-
const
|
|
1679
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1680
|
-
getDocumentElement:
|
|
1681
|
-
getClippingRect:
|
|
1682
|
-
getOffsetParent:
|
|
1683
|
-
getElementRects:
|
|
1684
|
-
getClientRects:
|
|
1685
|
-
getDimensions:
|
|
1686
|
-
getScale:
|
|
1687
|
-
isElement:
|
|
1688
|
-
isRTL:
|
|
1638
|
+
function uo(e) {
|
|
1639
|
+
return H(e).direction === "rtl";
|
|
1640
|
+
}
|
|
1641
|
+
const fo = {
|
|
1642
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: eo,
|
|
1643
|
+
getDocumentElement: Y,
|
|
1644
|
+
getClippingRect: so,
|
|
1645
|
+
getOffsetParent: Jt,
|
|
1646
|
+
getElementRects: lo,
|
|
1647
|
+
getClientRects: to,
|
|
1648
|
+
getDimensions: ao,
|
|
1649
|
+
getScale: re,
|
|
1650
|
+
isElement: W,
|
|
1651
|
+
isRTL: uo
|
|
1689
1652
|
};
|
|
1690
|
-
function
|
|
1691
|
-
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1692
|
-
}
|
|
1693
|
-
function ao(e, t) {
|
|
1653
|
+
function po(e, t) {
|
|
1694
1654
|
let n = null, o;
|
|
1695
|
-
const i =
|
|
1655
|
+
const i = Y(e);
|
|
1696
1656
|
function r() {
|
|
1697
1657
|
var a;
|
|
1698
1658
|
clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
|
|
1699
1659
|
}
|
|
1700
1660
|
function s(a, c) {
|
|
1701
1661
|
a === void 0 && (a = !1), c === void 0 && (c = 1), r();
|
|
1702
|
-
const
|
|
1703
|
-
left:
|
|
1704
|
-
top:
|
|
1705
|
-
width:
|
|
1706
|
-
height:
|
|
1707
|
-
} =
|
|
1708
|
-
if (a || t(), !
|
|
1662
|
+
const {
|
|
1663
|
+
left: l,
|
|
1664
|
+
top: u,
|
|
1665
|
+
width: d,
|
|
1666
|
+
height: h
|
|
1667
|
+
} = e.getBoundingClientRect();
|
|
1668
|
+
if (a || t(), !d || !h)
|
|
1709
1669
|
return;
|
|
1710
|
-
const
|
|
1711
|
-
rootMargin: -
|
|
1712
|
-
threshold: I(0,
|
|
1670
|
+
const p = xe(u), m = xe(i.clientWidth - (l + d)), g = xe(i.clientHeight - (u + h)), v = xe(l), w = {
|
|
1671
|
+
rootMargin: -p + "px " + -m + "px " + -g + "px " + -v + "px",
|
|
1672
|
+
threshold: I(0, j(1, c)) || 1
|
|
1713
1673
|
};
|
|
1714
|
-
let
|
|
1715
|
-
function
|
|
1716
|
-
const
|
|
1717
|
-
if (
|
|
1718
|
-
if (!
|
|
1674
|
+
let A = !0;
|
|
1675
|
+
function b(_) {
|
|
1676
|
+
const C = _[0].intersectionRatio;
|
|
1677
|
+
if (C !== c) {
|
|
1678
|
+
if (!A)
|
|
1719
1679
|
return s();
|
|
1720
|
-
|
|
1680
|
+
C ? s(!1, C) : o = setTimeout(() => {
|
|
1721
1681
|
s(!1, 1e-7);
|
|
1722
1682
|
}, 1e3);
|
|
1723
1683
|
}
|
|
1724
|
-
|
|
1684
|
+
A = !1;
|
|
1725
1685
|
}
|
|
1726
1686
|
try {
|
|
1727
|
-
n = new IntersectionObserver(
|
|
1728
|
-
...
|
|
1687
|
+
n = new IntersectionObserver(b, {
|
|
1688
|
+
...w,
|
|
1729
1689
|
// Handle <iframe>s
|
|
1730
1690
|
root: i.ownerDocument
|
|
1731
1691
|
});
|
|
1732
1692
|
} catch {
|
|
1733
|
-
n = new IntersectionObserver(
|
|
1693
|
+
n = new IntersectionObserver(b, w);
|
|
1734
1694
|
}
|
|
1735
1695
|
n.observe(e);
|
|
1736
1696
|
}
|
|
1737
1697
|
return s(!0), r;
|
|
1738
1698
|
}
|
|
1739
|
-
function
|
|
1699
|
+
function ho(e, t, n, o) {
|
|
1740
1700
|
o === void 0 && (o = {});
|
|
1741
1701
|
const {
|
|
1742
1702
|
ancestorScroll: i = !0,
|
|
@@ -1744,48 +1704,48 @@ function co(e, t, n, o) {
|
|
|
1744
1704
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1745
1705
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
1746
1706
|
animationFrame: c = !1
|
|
1747
|
-
} = o, l =
|
|
1748
|
-
u.forEach((
|
|
1749
|
-
i &&
|
|
1707
|
+
} = o, l = Xe(e), u = i || r ? [...l ? me(l) : [], ...me(t)] : [];
|
|
1708
|
+
u.forEach((y) => {
|
|
1709
|
+
i && y.addEventListener("scroll", n, {
|
|
1750
1710
|
passive: !0
|
|
1751
|
-
}), r &&
|
|
1711
|
+
}), r && y.addEventListener("resize", n);
|
|
1752
1712
|
});
|
|
1753
|
-
const d = l && a ?
|
|
1713
|
+
const d = l && a ? po(l, n) : null;
|
|
1754
1714
|
let h = -1, p = null;
|
|
1755
|
-
s && (p = new ResizeObserver((
|
|
1756
|
-
let [w] =
|
|
1715
|
+
s && (p = new ResizeObserver((y) => {
|
|
1716
|
+
let [w] = y;
|
|
1757
1717
|
w && w.target === l && p && (p.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
1758
|
-
var
|
|
1759
|
-
(
|
|
1718
|
+
var A;
|
|
1719
|
+
(A = p) == null || A.observe(t);
|
|
1760
1720
|
})), n();
|
|
1761
1721
|
}), l && !c && p.observe(l), p.observe(t));
|
|
1762
|
-
let m, g = c ?
|
|
1763
|
-
c &&
|
|
1764
|
-
function
|
|
1765
|
-
const
|
|
1766
|
-
g &&
|
|
1722
|
+
let m, g = c ? ee(e) : null;
|
|
1723
|
+
c && v();
|
|
1724
|
+
function v() {
|
|
1725
|
+
const y = ee(e);
|
|
1726
|
+
g && (y.x !== g.x || y.y !== g.y || y.width !== g.width || y.height !== g.height) && n(), g = y, m = requestAnimationFrame(v);
|
|
1767
1727
|
}
|
|
1768
1728
|
return n(), () => {
|
|
1769
|
-
var
|
|
1729
|
+
var y;
|
|
1770
1730
|
u.forEach((w) => {
|
|
1771
1731
|
i && w.removeEventListener("scroll", n), r && w.removeEventListener("resize", n);
|
|
1772
|
-
}), d == null || d(), (
|
|
1732
|
+
}), d == null || d(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1773
1733
|
};
|
|
1774
1734
|
}
|
|
1775
|
-
const
|
|
1735
|
+
const mo = Ur, go = Yr, vo = zr, yo = Xr, wo = qr, Ot = jr, xo = Gr, bo = (e, t, n) => {
|
|
1776
1736
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1777
|
-
platform:
|
|
1737
|
+
platform: fo,
|
|
1778
1738
|
...n
|
|
1779
1739
|
}, r = {
|
|
1780
1740
|
...i.platform,
|
|
1781
1741
|
_c: o
|
|
1782
1742
|
};
|
|
1783
|
-
return
|
|
1743
|
+
return Hr(e, t, {
|
|
1784
1744
|
...i,
|
|
1785
1745
|
platform: r
|
|
1786
1746
|
});
|
|
1787
1747
|
};
|
|
1788
|
-
var
|
|
1748
|
+
var _e = typeof document < "u" ? Ln : Mn;
|
|
1789
1749
|
function Oe(e, t) {
|
|
1790
1750
|
if (e === t)
|
|
1791
1751
|
return !0;
|
|
@@ -1816,20 +1776,20 @@ function Oe(e, t) {
|
|
|
1816
1776
|
}
|
|
1817
1777
|
return e !== e && t !== t;
|
|
1818
1778
|
}
|
|
1819
|
-
function
|
|
1779
|
+
function Qt(e) {
|
|
1820
1780
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1821
1781
|
}
|
|
1822
|
-
function
|
|
1823
|
-
const n =
|
|
1782
|
+
function Rt(e, t) {
|
|
1783
|
+
const n = Qt(e);
|
|
1824
1784
|
return Math.round(t * n) / n;
|
|
1825
1785
|
}
|
|
1826
|
-
function
|
|
1786
|
+
function Tt(e) {
|
|
1827
1787
|
const t = f.useRef(e);
|
|
1828
|
-
return
|
|
1788
|
+
return _e(() => {
|
|
1829
1789
|
t.current = e;
|
|
1830
1790
|
}), t;
|
|
1831
1791
|
}
|
|
1832
|
-
function
|
|
1792
|
+
function _o(e) {
|
|
1833
1793
|
e === void 0 && (e = {});
|
|
1834
1794
|
const {
|
|
1835
1795
|
placement: t = "bottom",
|
|
@@ -1852,86 +1812,82 @@ function yo(e) {
|
|
|
1852
1812
|
isPositioned: !1
|
|
1853
1813
|
}), [h, p] = f.useState(o);
|
|
1854
1814
|
Oe(h, o) || p(o);
|
|
1855
|
-
const [m, g] = f.useState(null), [
|
|
1856
|
-
|
|
1857
|
-
}, []),
|
|
1858
|
-
|
|
1859
|
-
}, []), b = r || m,
|
|
1860
|
-
if (!
|
|
1815
|
+
const [m, g] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((E) => {
|
|
1816
|
+
E !== C.current && (C.current = E, g(E));
|
|
1817
|
+
}, []), A = f.useCallback((E) => {
|
|
1818
|
+
E !== P.current && (P.current = E, y(E));
|
|
1819
|
+
}, []), b = r || m, _ = s || v, C = f.useRef(null), P = f.useRef(null), O = f.useRef(u), D = c != null, R = Tt(c), M = Tt(i), $ = f.useCallback(() => {
|
|
1820
|
+
if (!C.current || !P.current)
|
|
1861
1821
|
return;
|
|
1862
|
-
const
|
|
1822
|
+
const E = {
|
|
1863
1823
|
placement: t,
|
|
1864
1824
|
strategy: n,
|
|
1865
1825
|
middleware: h
|
|
1866
1826
|
};
|
|
1867
|
-
|
|
1868
|
-
const
|
|
1869
|
-
...
|
|
1870
|
-
|
|
1871
|
-
// but still mounted (such as when transitioning out). To ensure
|
|
1872
|
-
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1873
|
-
// setting it to `true` when `open === false` (must be specified).
|
|
1874
|
-
isPositioned: k.current !== !1
|
|
1827
|
+
M.current && (E.platform = M.current), bo(C.current, P.current, E).then((S) => {
|
|
1828
|
+
const N = {
|
|
1829
|
+
...S,
|
|
1830
|
+
isPositioned: !0
|
|
1875
1831
|
};
|
|
1876
|
-
|
|
1877
|
-
d(
|
|
1832
|
+
k.current && !Oe(O.current, N) && (O.current = N, Dt.flushSync(() => {
|
|
1833
|
+
d(N);
|
|
1878
1834
|
}));
|
|
1879
1835
|
});
|
|
1880
|
-
}, [h, t, n,
|
|
1881
|
-
|
|
1882
|
-
l === !1 &&
|
|
1883
|
-
...
|
|
1836
|
+
}, [h, t, n, M]);
|
|
1837
|
+
_e(() => {
|
|
1838
|
+
l === !1 && O.current.isPositioned && (O.current.isPositioned = !1, d((E) => ({
|
|
1839
|
+
...E,
|
|
1884
1840
|
isPositioned: !1
|
|
1885
1841
|
})));
|
|
1886
1842
|
}, [l]);
|
|
1887
|
-
const
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
}), []),
|
|
1891
|
-
if (b && (
|
|
1892
|
-
if (
|
|
1893
|
-
return
|
|
1894
|
-
|
|
1843
|
+
const k = f.useRef(!1);
|
|
1844
|
+
_e(() => (k.current = !0, () => {
|
|
1845
|
+
k.current = !1;
|
|
1846
|
+
}), []), _e(() => {
|
|
1847
|
+
if (b && (C.current = b), _ && (P.current = _), b && _) {
|
|
1848
|
+
if (R.current)
|
|
1849
|
+
return R.current(b, _, $);
|
|
1850
|
+
$();
|
|
1895
1851
|
}
|
|
1896
|
-
}, [b,
|
|
1897
|
-
const
|
|
1898
|
-
reference:
|
|
1899
|
-
floating:
|
|
1852
|
+
}, [b, _, $, R, D]);
|
|
1853
|
+
const T = f.useMemo(() => ({
|
|
1854
|
+
reference: C,
|
|
1855
|
+
floating: P,
|
|
1900
1856
|
setReference: w,
|
|
1901
|
-
setFloating:
|
|
1902
|
-
}), [w,
|
|
1857
|
+
setFloating: A
|
|
1858
|
+
}), [w, A]), L = f.useMemo(() => ({
|
|
1903
1859
|
reference: b,
|
|
1904
|
-
floating:
|
|
1905
|
-
}), [b,
|
|
1906
|
-
const
|
|
1860
|
+
floating: _
|
|
1861
|
+
}), [b, _]), F = f.useMemo(() => {
|
|
1862
|
+
const E = {
|
|
1907
1863
|
position: n,
|
|
1908
1864
|
left: 0,
|
|
1909
1865
|
top: 0
|
|
1910
1866
|
};
|
|
1911
|
-
if (!
|
|
1912
|
-
return
|
|
1913
|
-
const
|
|
1867
|
+
if (!L.floating)
|
|
1868
|
+
return E;
|
|
1869
|
+
const S = Rt(L.floating, u.x), N = Rt(L.floating, u.y);
|
|
1914
1870
|
return a ? {
|
|
1915
|
-
...
|
|
1916
|
-
transform: "translate(" +
|
|
1917
|
-
...
|
|
1871
|
+
...E,
|
|
1872
|
+
transform: "translate(" + S + "px, " + N + "px)",
|
|
1873
|
+
...Qt(L.floating) >= 1.5 && {
|
|
1918
1874
|
willChange: "transform"
|
|
1919
1875
|
}
|
|
1920
1876
|
} : {
|
|
1921
1877
|
position: n,
|
|
1922
|
-
left:
|
|
1923
|
-
top:
|
|
1878
|
+
left: S,
|
|
1879
|
+
top: N
|
|
1924
1880
|
};
|
|
1925
|
-
}, [n, a,
|
|
1881
|
+
}, [n, a, L.floating, u.x, u.y]);
|
|
1926
1882
|
return f.useMemo(() => ({
|
|
1927
1883
|
...u,
|
|
1928
|
-
update:
|
|
1929
|
-
refs:
|
|
1930
|
-
elements:
|
|
1931
|
-
floatingStyles:
|
|
1932
|
-
}), [u,
|
|
1884
|
+
update: $,
|
|
1885
|
+
refs: T,
|
|
1886
|
+
elements: L,
|
|
1887
|
+
floatingStyles: F
|
|
1888
|
+
}), [u, $, T, L, F]);
|
|
1933
1889
|
}
|
|
1934
|
-
const
|
|
1890
|
+
const Ao = (e) => {
|
|
1935
1891
|
function t(n) {
|
|
1936
1892
|
return {}.hasOwnProperty.call(n, "current");
|
|
1937
1893
|
}
|
|
@@ -1943,41 +1899,41 @@ const vo = (e) => {
|
|
|
1943
1899
|
element: o,
|
|
1944
1900
|
padding: i
|
|
1945
1901
|
} = typeof e == "function" ? e(n) : e;
|
|
1946
|
-
return o && t(o) ? o.current != null ?
|
|
1902
|
+
return o && t(o) ? o.current != null ? Ot({
|
|
1947
1903
|
element: o.current,
|
|
1948
1904
|
padding: i
|
|
1949
|
-
}).fn(n) : {} : o ?
|
|
1905
|
+
}).fn(n) : {} : o ? Ot({
|
|
1950
1906
|
element: o,
|
|
1951
1907
|
padding: i
|
|
1952
1908
|
}).fn(n) : {};
|
|
1953
1909
|
}
|
|
1954
1910
|
};
|
|
1955
|
-
},
|
|
1956
|
-
...
|
|
1911
|
+
}, Po = (e, t) => ({
|
|
1912
|
+
...mo(e),
|
|
1957
1913
|
options: [e, t]
|
|
1958
|
-
}),
|
|
1959
|
-
...
|
|
1914
|
+
}), Co = (e, t) => ({
|
|
1915
|
+
...go(e),
|
|
1960
1916
|
options: [e, t]
|
|
1961
|
-
}),
|
|
1962
|
-
...
|
|
1917
|
+
}), Eo = (e, t) => ({
|
|
1918
|
+
...xo(e),
|
|
1963
1919
|
options: [e, t]
|
|
1964
|
-
}),
|
|
1965
|
-
...
|
|
1920
|
+
}), Oo = (e, t) => ({
|
|
1921
|
+
...vo(e),
|
|
1966
1922
|
options: [e, t]
|
|
1967
|
-
}),
|
|
1968
|
-
...
|
|
1923
|
+
}), Ro = (e, t) => ({
|
|
1924
|
+
...yo(e),
|
|
1969
1925
|
options: [e, t]
|
|
1970
|
-
}),
|
|
1971
|
-
...
|
|
1926
|
+
}), To = (e, t) => ({
|
|
1927
|
+
...wo(e),
|
|
1972
1928
|
options: [e, t]
|
|
1973
|
-
}),
|
|
1974
|
-
...
|
|
1929
|
+
}), So = (e, t) => ({
|
|
1930
|
+
...Ao(e),
|
|
1975
1931
|
options: [e, t]
|
|
1976
1932
|
});
|
|
1977
|
-
var
|
|
1933
|
+
var No = "Arrow", en = f.forwardRef((e, t) => {
|
|
1978
1934
|
const { children: n, width: o = 10, height: i = 5, ...r } = e;
|
|
1979
1935
|
return /* @__PURE__ */ x(
|
|
1980
|
-
|
|
1936
|
+
K.svg,
|
|
1981
1937
|
{
|
|
1982
1938
|
...r,
|
|
1983
1939
|
ref: t,
|
|
@@ -1989,11 +1945,11 @@ var Co = "Arrow", Kt = f.forwardRef((e, t) => {
|
|
|
1989
1945
|
}
|
|
1990
1946
|
);
|
|
1991
1947
|
});
|
|
1992
|
-
|
|
1993
|
-
var
|
|
1994
|
-
function
|
|
1948
|
+
en.displayName = No;
|
|
1949
|
+
var Do = en;
|
|
1950
|
+
function Lo(e) {
|
|
1995
1951
|
const [t, n] = f.useState(void 0);
|
|
1996
|
-
return
|
|
1952
|
+
return Q(() => {
|
|
1997
1953
|
if (e) {
|
|
1998
1954
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
1999
1955
|
const o = new ResizeObserver((i) => {
|
|
@@ -2013,23 +1969,23 @@ function Oo(e) {
|
|
|
2013
1969
|
n(void 0);
|
|
2014
1970
|
}, [e]), t;
|
|
2015
1971
|
}
|
|
2016
|
-
var
|
|
1972
|
+
var Ze = "Popper", [tn, nn] = Bt(Ze), [Mo, rn] = tn(Ze), on = (e) => {
|
|
2017
1973
|
const { __scopePopper: t, children: n } = e, [o, i] = f.useState(null);
|
|
2018
|
-
return /* @__PURE__ */ x(
|
|
1974
|
+
return /* @__PURE__ */ x(Mo, { scope: t, anchor: o, onAnchorChange: i, children: n });
|
|
2019
1975
|
};
|
|
2020
|
-
|
|
2021
|
-
var
|
|
1976
|
+
on.displayName = Ze;
|
|
1977
|
+
var sn = "PopperAnchor", an = f.forwardRef(
|
|
2022
1978
|
(e, t) => {
|
|
2023
|
-
const { __scopePopper: n, virtualRef: o, ...i } = e, r =
|
|
1979
|
+
const { __scopePopper: n, virtualRef: o, ...i } = e, r = rn(sn, n), s = f.useRef(null), a = te(t, s);
|
|
2024
1980
|
return f.useEffect(() => {
|
|
2025
1981
|
r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
2026
|
-
}), o ? null : /* @__PURE__ */ x(
|
|
1982
|
+
}), o ? null : /* @__PURE__ */ x(K.div, { ...i, ref: a });
|
|
2027
1983
|
}
|
|
2028
1984
|
);
|
|
2029
|
-
|
|
2030
|
-
var
|
|
1985
|
+
an.displayName = sn;
|
|
1986
|
+
var Ke = "PopperContent", [$o, ko] = tn(Ke), cn = f.forwardRef(
|
|
2031
1987
|
(e, t) => {
|
|
2032
|
-
var rt, ot, it, st
|
|
1988
|
+
var tt, nt, rt, ot, it, st;
|
|
2033
1989
|
const {
|
|
2034
1990
|
__scopePopper: n,
|
|
2035
1991
|
side: o = "bottom",
|
|
@@ -2045,93 +2001,93 @@ var Qe = "PopperContent", [So, No] = Jt(Qe), on = f.forwardRef(
|
|
|
2045
2001
|
updatePositionStrategy: p = "optimized",
|
|
2046
2002
|
onPlaced: m,
|
|
2047
2003
|
...g
|
|
2048
|
-
} = e,
|
|
2049
|
-
padding:
|
|
2050
|
-
boundary:
|
|
2004
|
+
} = e, v = rn(Ke, n), [y, w] = f.useState(null), A = te(t, (le) => w(le)), [b, _] = f.useState(null), C = Lo(b), P = (C == null ? void 0 : C.width) ?? 0, O = (C == null ? void 0 : C.height) ?? 0, D = o + (r !== "center" ? "-" + r : ""), R = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, M = Array.isArray(l) ? l : [l], $ = M.length > 0, k = {
|
|
2005
|
+
padding: R,
|
|
2006
|
+
boundary: M.filter(Io),
|
|
2051
2007
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2052
|
-
altBoundary:
|
|
2053
|
-
}, { refs: T, floatingStyles:
|
|
2008
|
+
altBoundary: $
|
|
2009
|
+
}, { refs: T, floatingStyles: L, placement: F, isPositioned: E, middlewareData: S } = _o({
|
|
2054
2010
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2055
2011
|
strategy: "fixed",
|
|
2056
|
-
placement:
|
|
2057
|
-
whileElementsMounted: (...
|
|
2012
|
+
placement: D,
|
|
2013
|
+
whileElementsMounted: (...le) => ho(...le, {
|
|
2058
2014
|
animationFrame: p === "always"
|
|
2059
2015
|
}),
|
|
2060
2016
|
elements: {
|
|
2061
|
-
reference:
|
|
2017
|
+
reference: v.anchor
|
|
2062
2018
|
},
|
|
2063
2019
|
middleware: [
|
|
2064
|
-
|
|
2065
|
-
c &&
|
|
2020
|
+
Po({ mainAxis: i + O, alignmentAxis: s }),
|
|
2021
|
+
c && Co({
|
|
2066
2022
|
mainAxis: !0,
|
|
2067
2023
|
crossAxis: !1,
|
|
2068
|
-
limiter: d === "partial" ?
|
|
2069
|
-
...
|
|
2024
|
+
limiter: d === "partial" ? Eo() : void 0,
|
|
2025
|
+
...k
|
|
2070
2026
|
}),
|
|
2071
|
-
c &&
|
|
2072
|
-
|
|
2073
|
-
...
|
|
2074
|
-
apply: ({ elements:
|
|
2075
|
-
const { width:
|
|
2076
|
-
|
|
2027
|
+
c && Oo({ ...k }),
|
|
2028
|
+
Ro({
|
|
2029
|
+
...k,
|
|
2030
|
+
apply: ({ elements: le, rects: at, availableWidth: Rn, availableHeight: Tn }) => {
|
|
2031
|
+
const { width: Sn, height: Nn } = at.reference, we = le.floating.style;
|
|
2032
|
+
we.setProperty("--radix-popper-available-width", `${Rn}px`), we.setProperty("--radix-popper-available-height", `${Tn}px`), we.setProperty("--radix-popper-anchor-width", `${Sn}px`), we.setProperty("--radix-popper-anchor-height", `${Nn}px`);
|
|
2077
2033
|
}
|
|
2078
2034
|
}),
|
|
2079
|
-
b &&
|
|
2080
|
-
|
|
2081
|
-
h &&
|
|
2035
|
+
b && So({ element: b, padding: a }),
|
|
2036
|
+
Bo({ arrowWidth: P, arrowHeight: O }),
|
|
2037
|
+
h && To({ strategy: "referenceHidden", ...k })
|
|
2082
2038
|
]
|
|
2083
|
-
}), [
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
}, [
|
|
2087
|
-
const
|
|
2088
|
-
return
|
|
2089
|
-
|
|
2090
|
-
}, [
|
|
2039
|
+
}), [N, Le] = fn(F), ye = se(m);
|
|
2040
|
+
Q(() => {
|
|
2041
|
+
E && (ye == null || ye());
|
|
2042
|
+
}, [E, ye]);
|
|
2043
|
+
const An = (tt = S.arrow) == null ? void 0 : tt.x, Pn = (nt = S.arrow) == null ? void 0 : nt.y, Cn = ((rt = S.arrow) == null ? void 0 : rt.centerOffset) !== 0, [En, On] = f.useState();
|
|
2044
|
+
return Q(() => {
|
|
2045
|
+
y && On(window.getComputedStyle(y).zIndex);
|
|
2046
|
+
}, [y]), /* @__PURE__ */ x(
|
|
2091
2047
|
"div",
|
|
2092
2048
|
{
|
|
2093
2049
|
ref: T.setFloating,
|
|
2094
2050
|
"data-radix-popper-content-wrapper": "",
|
|
2095
2051
|
style: {
|
|
2096
|
-
...
|
|
2097
|
-
transform:
|
|
2052
|
+
...L,
|
|
2053
|
+
transform: E ? L.transform : "translate(0, -200%)",
|
|
2098
2054
|
// keep off the page when measuring
|
|
2099
2055
|
minWidth: "max-content",
|
|
2100
|
-
zIndex:
|
|
2056
|
+
zIndex: En,
|
|
2101
2057
|
"--radix-popper-transform-origin": [
|
|
2102
|
-
(
|
|
2103
|
-
(
|
|
2058
|
+
(ot = S.transformOrigin) == null ? void 0 : ot.x,
|
|
2059
|
+
(it = S.transformOrigin) == null ? void 0 : it.y
|
|
2104
2060
|
].join(" "),
|
|
2105
2061
|
// hide the content if using the hide middleware and should be hidden
|
|
2106
2062
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2107
2063
|
// as if the PopperContent isn't there at all
|
|
2108
|
-
...((
|
|
2064
|
+
...((st = S.hide) == null ? void 0 : st.referenceHidden) && {
|
|
2109
2065
|
visibility: "hidden",
|
|
2110
2066
|
pointerEvents: "none"
|
|
2111
2067
|
}
|
|
2112
2068
|
},
|
|
2113
2069
|
dir: e.dir,
|
|
2114
2070
|
children: /* @__PURE__ */ x(
|
|
2115
|
-
|
|
2071
|
+
$o,
|
|
2116
2072
|
{
|
|
2117
2073
|
scope: n,
|
|
2118
|
-
placedSide:
|
|
2119
|
-
onArrowChange:
|
|
2120
|
-
arrowX:
|
|
2121
|
-
arrowY:
|
|
2122
|
-
shouldHideArrow:
|
|
2074
|
+
placedSide: N,
|
|
2075
|
+
onArrowChange: _,
|
|
2076
|
+
arrowX: An,
|
|
2077
|
+
arrowY: Pn,
|
|
2078
|
+
shouldHideArrow: Cn,
|
|
2123
2079
|
children: /* @__PURE__ */ x(
|
|
2124
|
-
|
|
2080
|
+
K.div,
|
|
2125
2081
|
{
|
|
2126
|
-
"data-side":
|
|
2127
|
-
"data-align":
|
|
2082
|
+
"data-side": N,
|
|
2083
|
+
"data-align": Le,
|
|
2128
2084
|
...g,
|
|
2129
|
-
ref:
|
|
2085
|
+
ref: A,
|
|
2130
2086
|
style: {
|
|
2131
2087
|
...g.style,
|
|
2132
2088
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2133
2089
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2134
|
-
animation:
|
|
2090
|
+
animation: E ? void 0 : "none"
|
|
2135
2091
|
}
|
|
2136
2092
|
}
|
|
2137
2093
|
)
|
|
@@ -2141,14 +2097,14 @@ var Qe = "PopperContent", [So, No] = Jt(Qe), on = f.forwardRef(
|
|
|
2141
2097
|
);
|
|
2142
2098
|
}
|
|
2143
2099
|
);
|
|
2144
|
-
|
|
2145
|
-
var
|
|
2100
|
+
cn.displayName = Ke;
|
|
2101
|
+
var ln = "PopperArrow", Fo = {
|
|
2146
2102
|
top: "bottom",
|
|
2147
2103
|
right: "left",
|
|
2148
2104
|
bottom: "top",
|
|
2149
2105
|
left: "right"
|
|
2150
|
-
},
|
|
2151
|
-
const { __scopePopper: o, ...i } = t, r =
|
|
2106
|
+
}, un = f.forwardRef(function(t, n) {
|
|
2107
|
+
const { __scopePopper: o, ...i } = t, r = ko(ln, o), s = Fo[r.placedSide];
|
|
2152
2108
|
return (
|
|
2153
2109
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2154
2110
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2177,7 +2133,7 @@ var sn = "PopperArrow", Do = {
|
|
|
2177
2133
|
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
2178
2134
|
},
|
|
2179
2135
|
children: /* @__PURE__ */ x(
|
|
2180
|
-
|
|
2136
|
+
Do,
|
|
2181
2137
|
{
|
|
2182
2138
|
...i,
|
|
2183
2139
|
ref: n,
|
|
@@ -2192,42 +2148,42 @@ var sn = "PopperArrow", Do = {
|
|
|
2192
2148
|
)
|
|
2193
2149
|
);
|
|
2194
2150
|
});
|
|
2195
|
-
|
|
2196
|
-
function
|
|
2151
|
+
un.displayName = ln;
|
|
2152
|
+
function Io(e) {
|
|
2197
2153
|
return e !== null;
|
|
2198
2154
|
}
|
|
2199
|
-
var
|
|
2155
|
+
var Bo = (e) => ({
|
|
2200
2156
|
name: "transformOrigin",
|
|
2201
2157
|
options: e,
|
|
2202
2158
|
fn(t) {
|
|
2203
|
-
var
|
|
2204
|
-
const { placement: n, rects: o, middlewareData: i } = t, s = ((
|
|
2159
|
+
var v, y, w;
|
|
2160
|
+
const { placement: n, rects: o, middlewareData: i } = t, s = ((v = i.arrow) == null ? void 0 : v.centerOffset) !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, u] = fn(n), d = { start: "0%", center: "50%", end: "100%" }[u], h = (((y = i.arrow) == null ? void 0 : y.x) ?? 0) + a / 2, p = (((w = i.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
2205
2161
|
let m = "", g = "";
|
|
2206
2162
|
return l === "bottom" ? (m = s ? d : `${h}px`, g = `${-c}px`) : l === "top" ? (m = s ? d : `${h}px`, g = `${o.floating.height + c}px`) : l === "right" ? (m = `${-c}px`, g = s ? d : `${p}px`) : l === "left" && (m = `${o.floating.width + c}px`, g = s ? d : `${p}px`), { data: { x: m, y: g } };
|
|
2207
2163
|
}
|
|
2208
2164
|
});
|
|
2209
|
-
function
|
|
2165
|
+
function fn(e) {
|
|
2210
2166
|
const [t, n = "center"] = e.split("-");
|
|
2211
2167
|
return [t, n];
|
|
2212
2168
|
}
|
|
2213
|
-
var
|
|
2169
|
+
var Wo = on, Ho = an, jo = cn, zo = un, qo = "Portal", pn = f.forwardRef((e, t) => {
|
|
2214
2170
|
var a;
|
|
2215
2171
|
const { container: n, ...o } = e, [i, r] = f.useState(!1);
|
|
2216
|
-
|
|
2172
|
+
Q(() => r(!0), []);
|
|
2217
2173
|
const s = n || i && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
2218
|
-
return s ?
|
|
2174
|
+
return s ? Fn.createPortal(/* @__PURE__ */ x(K.div, { ...o, ref: t }), s) : null;
|
|
2219
2175
|
});
|
|
2220
|
-
|
|
2221
|
-
function
|
|
2176
|
+
pn.displayName = qo;
|
|
2177
|
+
function Vo(e, t) {
|
|
2222
2178
|
return f.useReducer((n, o) => t[n][o] ?? n, e);
|
|
2223
2179
|
}
|
|
2224
|
-
var
|
|
2225
|
-
const { present: t, children: n } = e, o =
|
|
2180
|
+
var Je = (e) => {
|
|
2181
|
+
const { present: t, children: n } = e, o = Uo(t), i = typeof n == "function" ? n({ present: o.isPresent }) : f.Children.only(n), r = te(o.ref, Yo(i));
|
|
2226
2182
|
return typeof n == "function" || o.isPresent ? f.cloneElement(i, { ref: r }) : null;
|
|
2227
2183
|
};
|
|
2228
|
-
|
|
2229
|
-
function
|
|
2230
|
-
const [t, n] = f.useState(), o = f.useRef({}), i = f.useRef(e), r = f.useRef("none"), s = e ? "mounted" : "unmounted", [a, c] =
|
|
2184
|
+
Je.displayName = "Presence";
|
|
2185
|
+
function Uo(e) {
|
|
2186
|
+
const [t, n] = f.useState(), o = f.useRef({}), i = f.useRef(e), r = f.useRef("none"), s = e ? "mounted" : "unmounted", [a, c] = Vo(s, {
|
|
2231
2187
|
mounted: {
|
|
2232
2188
|
UNMOUNT: "unmounted",
|
|
2233
2189
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2241,27 +2197,27 @@ function Wo(e) {
|
|
|
2241
2197
|
}
|
|
2242
2198
|
});
|
|
2243
2199
|
return f.useEffect(() => {
|
|
2244
|
-
const l =
|
|
2200
|
+
const l = be(o.current);
|
|
2245
2201
|
r.current = a === "mounted" ? l : "none";
|
|
2246
|
-
}, [a]),
|
|
2202
|
+
}, [a]), Q(() => {
|
|
2247
2203
|
const l = o.current, u = i.current;
|
|
2248
2204
|
if (u !== e) {
|
|
2249
|
-
const h = r.current, p =
|
|
2205
|
+
const h = r.current, p = be(l);
|
|
2250
2206
|
e ? c("MOUNT") : p === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(u && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
2251
2207
|
}
|
|
2252
|
-
}, [e, c]),
|
|
2208
|
+
}, [e, c]), Q(() => {
|
|
2253
2209
|
if (t) {
|
|
2254
2210
|
let l;
|
|
2255
2211
|
const u = t.ownerDocument.defaultView ?? window, d = (p) => {
|
|
2256
|
-
const g =
|
|
2212
|
+
const g = be(o.current).includes(p.animationName);
|
|
2257
2213
|
if (p.target === t && g && (c("ANIMATION_END"), !i.current)) {
|
|
2258
|
-
const
|
|
2214
|
+
const v = t.style.animationFillMode;
|
|
2259
2215
|
t.style.animationFillMode = "forwards", l = u.setTimeout(() => {
|
|
2260
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
2216
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
|
|
2261
2217
|
});
|
|
2262
2218
|
}
|
|
2263
2219
|
}, h = (p) => {
|
|
2264
|
-
p.target === t && (r.current =
|
|
2220
|
+
p.target === t && (r.current = be(o.current));
|
|
2265
2221
|
};
|
|
2266
2222
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
2267
2223
|
u.clearTimeout(l), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
@@ -2275,21 +2231,21 @@ function Wo(e) {
|
|
|
2275
2231
|
}, [])
|
|
2276
2232
|
};
|
|
2277
2233
|
}
|
|
2278
|
-
function
|
|
2234
|
+
function be(e) {
|
|
2279
2235
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2280
2236
|
}
|
|
2281
|
-
function
|
|
2237
|
+
function Yo(e) {
|
|
2282
2238
|
var o, i;
|
|
2283
2239
|
let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2284
2240
|
return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2285
2241
|
}
|
|
2286
|
-
function
|
|
2242
|
+
function Go({
|
|
2287
2243
|
prop: e,
|
|
2288
2244
|
defaultProp: t,
|
|
2289
2245
|
onChange: n = () => {
|
|
2290
2246
|
}
|
|
2291
2247
|
}) {
|
|
2292
|
-
const [o, i] =
|
|
2248
|
+
const [o, i] = Xo({ defaultProp: t, onChange: n }), r = e !== void 0, s = r ? e : o, a = se(n), c = f.useCallback(
|
|
2293
2249
|
(l) => {
|
|
2294
2250
|
if (r) {
|
|
2295
2251
|
const d = typeof l == "function" ? l(e) : l;
|
|
@@ -2301,18 +2257,18 @@ function zo({
|
|
|
2301
2257
|
);
|
|
2302
2258
|
return [s, c];
|
|
2303
2259
|
}
|
|
2304
|
-
function
|
|
2260
|
+
function Xo({
|
|
2305
2261
|
defaultProp: e,
|
|
2306
2262
|
onChange: t
|
|
2307
2263
|
}) {
|
|
2308
|
-
const n = f.useState(e), [o] = n, i = f.useRef(o), r =
|
|
2264
|
+
const n = f.useState(e), [o] = n, i = f.useRef(o), r = se(t);
|
|
2309
2265
|
return f.useEffect(() => {
|
|
2310
2266
|
i.current !== o && (r(o), i.current = o);
|
|
2311
2267
|
}, [o, i, r]), n;
|
|
2312
2268
|
}
|
|
2313
|
-
var
|
|
2269
|
+
var Zo = "VisuallyHidden", dn = f.forwardRef(
|
|
2314
2270
|
(e, t) => /* @__PURE__ */ x(
|
|
2315
|
-
|
|
2271
|
+
K.span,
|
|
2316
2272
|
{
|
|
2317
2273
|
...e,
|
|
2318
2274
|
ref: t,
|
|
@@ -2333,13 +2289,13 @@ var qo = "VisuallyHidden", un = f.forwardRef(
|
|
|
2333
2289
|
}
|
|
2334
2290
|
)
|
|
2335
2291
|
);
|
|
2336
|
-
|
|
2337
|
-
var
|
|
2338
|
-
|
|
2339
|
-
]),
|
|
2292
|
+
dn.displayName = Zo;
|
|
2293
|
+
var Ko = dn, [Se, Li] = Bt("Tooltip", [
|
|
2294
|
+
nn
|
|
2295
|
+
]), Ne = nn(), hn = "TooltipProvider", Jo = 700, je = "tooltip.open", [Qo, Qe] = Se(hn), mn = (e) => {
|
|
2340
2296
|
const {
|
|
2341
2297
|
__scopeTooltip: t,
|
|
2342
|
-
delayDuration: n =
|
|
2298
|
+
delayDuration: n = Jo,
|
|
2343
2299
|
skipDelayDuration: o = 300,
|
|
2344
2300
|
disableHoverableContent: i = !1,
|
|
2345
2301
|
children: r
|
|
@@ -2348,7 +2304,7 @@ var Uo = un, [De, Ri] = $t("Tooltip", [
|
|
|
2348
2304
|
const u = l.current;
|
|
2349
2305
|
return () => window.clearTimeout(u);
|
|
2350
2306
|
}, []), /* @__PURE__ */ x(
|
|
2351
|
-
|
|
2307
|
+
Qo,
|
|
2352
2308
|
{
|
|
2353
2309
|
scope: t,
|
|
2354
2310
|
isOpenDelayed: s,
|
|
@@ -2371,8 +2327,8 @@ var Uo = un, [De, Ri] = $t("Tooltip", [
|
|
|
2371
2327
|
}
|
|
2372
2328
|
);
|
|
2373
2329
|
};
|
|
2374
|
-
|
|
2375
|
-
var
|
|
2330
|
+
mn.displayName = hn;
|
|
2331
|
+
var De = "Tooltip", [ei, ve] = Se(De), gn = (e) => {
|
|
2376
2332
|
const {
|
|
2377
2333
|
__scopeTooltip: t,
|
|
2378
2334
|
children: n,
|
|
@@ -2381,100 +2337,100 @@ var Me = "Tooltip", [Xo, ve] = De(Me), pn = (e) => {
|
|
|
2381
2337
|
onOpenChange: r,
|
|
2382
2338
|
disableHoverableContent: s,
|
|
2383
2339
|
delayDuration: a
|
|
2384
|
-
} = e, c =
|
|
2340
|
+
} = e, c = Qe(De, e.__scopeTooltip), l = Ne(t), [u, d] = f.useState(null), h = Dr(), p = f.useRef(0), m = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, v = f.useRef(!1), [y = !1, w] = Go({
|
|
2385
2341
|
prop: o,
|
|
2386
2342
|
defaultProp: i,
|
|
2387
|
-
onChange: (
|
|
2388
|
-
|
|
2343
|
+
onChange: (P) => {
|
|
2344
|
+
P ? (c.onOpen(), document.dispatchEvent(new CustomEvent(je))) : c.onClose(), r == null || r(P);
|
|
2389
2345
|
}
|
|
2390
|
-
}),
|
|
2391
|
-
window.clearTimeout(p.current), p.current = 0,
|
|
2392
|
-
}, [w]),
|
|
2346
|
+
}), A = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), b = f.useCallback(() => {
|
|
2347
|
+
window.clearTimeout(p.current), p.current = 0, v.current = !1, w(!0);
|
|
2348
|
+
}, [w]), _ = f.useCallback(() => {
|
|
2393
2349
|
window.clearTimeout(p.current), p.current = 0, w(!1);
|
|
2394
|
-
}, [w]),
|
|
2350
|
+
}, [w]), C = f.useCallback(() => {
|
|
2395
2351
|
window.clearTimeout(p.current), p.current = window.setTimeout(() => {
|
|
2396
|
-
|
|
2352
|
+
v.current = !0, w(!0), p.current = 0;
|
|
2397
2353
|
}, g);
|
|
2398
2354
|
}, [g, w]);
|
|
2399
2355
|
return f.useEffect(() => () => {
|
|
2400
2356
|
p.current && (window.clearTimeout(p.current), p.current = 0);
|
|
2401
|
-
}, []), /* @__PURE__ */ x(
|
|
2402
|
-
|
|
2357
|
+
}, []), /* @__PURE__ */ x(Wo, { ...l, children: /* @__PURE__ */ x(
|
|
2358
|
+
ei,
|
|
2403
2359
|
{
|
|
2404
2360
|
scope: t,
|
|
2405
2361
|
contentId: h,
|
|
2406
|
-
open:
|
|
2407
|
-
stateAttribute:
|
|
2362
|
+
open: y,
|
|
2363
|
+
stateAttribute: A,
|
|
2408
2364
|
trigger: u,
|
|
2409
2365
|
onTriggerChange: d,
|
|
2410
2366
|
onTriggerEnter: f.useCallback(() => {
|
|
2411
|
-
c.isOpenDelayed ?
|
|
2412
|
-
}, [c.isOpenDelayed,
|
|
2367
|
+
c.isOpenDelayed ? C() : b();
|
|
2368
|
+
}, [c.isOpenDelayed, C, b]),
|
|
2413
2369
|
onTriggerLeave: f.useCallback(() => {
|
|
2414
|
-
m ?
|
|
2415
|
-
}, [
|
|
2370
|
+
m ? _() : (window.clearTimeout(p.current), p.current = 0);
|
|
2371
|
+
}, [_, m]),
|
|
2416
2372
|
onOpen: b,
|
|
2417
|
-
onClose:
|
|
2373
|
+
onClose: _,
|
|
2418
2374
|
disableHoverableContent: m,
|
|
2419
2375
|
children: n
|
|
2420
2376
|
}
|
|
2421
2377
|
) });
|
|
2422
2378
|
};
|
|
2423
|
-
|
|
2424
|
-
var
|
|
2379
|
+
gn.displayName = De;
|
|
2380
|
+
var ze = "TooltipTrigger", vn = f.forwardRef(
|
|
2425
2381
|
(e, t) => {
|
|
2426
|
-
const { __scopeTooltip: n, ...o } = e, i = ve(
|
|
2427
|
-
return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ x(
|
|
2428
|
-
|
|
2382
|
+
const { __scopeTooltip: n, ...o } = e, i = ve(ze, n), r = Qe(ze, n), s = Ne(n), a = f.useRef(null), c = te(t, a, i.onTriggerChange), l = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => l.current = !1, []);
|
|
2383
|
+
return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ x(Ho, { asChild: !0, ...s, children: /* @__PURE__ */ x(
|
|
2384
|
+
K.button,
|
|
2429
2385
|
{
|
|
2430
2386
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
2431
2387
|
"data-state": i.stateAttribute,
|
|
2432
2388
|
...o,
|
|
2433
2389
|
ref: c,
|
|
2434
|
-
onPointerMove:
|
|
2390
|
+
onPointerMove: q(e.onPointerMove, (h) => {
|
|
2435
2391
|
h.pointerType !== "touch" && !u.current && !r.isPointerInTransitRef.current && (i.onTriggerEnter(), u.current = !0);
|
|
2436
2392
|
}),
|
|
2437
|
-
onPointerLeave:
|
|
2393
|
+
onPointerLeave: q(e.onPointerLeave, () => {
|
|
2438
2394
|
i.onTriggerLeave(), u.current = !1;
|
|
2439
2395
|
}),
|
|
2440
|
-
onPointerDown:
|
|
2396
|
+
onPointerDown: q(e.onPointerDown, () => {
|
|
2441
2397
|
l.current = !0, document.addEventListener("pointerup", d, { once: !0 });
|
|
2442
2398
|
}),
|
|
2443
|
-
onFocus:
|
|
2399
|
+
onFocus: q(e.onFocus, () => {
|
|
2444
2400
|
l.current || i.onOpen();
|
|
2445
2401
|
}),
|
|
2446
|
-
onBlur:
|
|
2447
|
-
onClick:
|
|
2402
|
+
onBlur: q(e.onBlur, i.onClose),
|
|
2403
|
+
onClick: q(e.onClick, i.onClose)
|
|
2448
2404
|
}
|
|
2449
2405
|
) });
|
|
2450
2406
|
}
|
|
2451
2407
|
);
|
|
2452
|
-
|
|
2453
|
-
var
|
|
2408
|
+
vn.displayName = ze;
|
|
2409
|
+
var et = "TooltipPortal", [ti, ni] = Se(et, {
|
|
2454
2410
|
forceMount: void 0
|
|
2455
|
-
}),
|
|
2456
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = ve(
|
|
2457
|
-
return /* @__PURE__ */ x(
|
|
2411
|
+
}), yn = (e) => {
|
|
2412
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = ve(et, t);
|
|
2413
|
+
return /* @__PURE__ */ x(ti, { scope: t, forceMount: n, children: /* @__PURE__ */ x(Je, { present: n || r.open, children: /* @__PURE__ */ x(pn, { asChild: !0, container: i, children: o }) }) });
|
|
2458
2414
|
};
|
|
2459
|
-
|
|
2460
|
-
var
|
|
2415
|
+
yn.displayName = et;
|
|
2416
|
+
var ie = "TooltipContent", wn = f.forwardRef(
|
|
2461
2417
|
(e, t) => {
|
|
2462
|
-
const n =
|
|
2463
|
-
return /* @__PURE__ */ x(
|
|
2418
|
+
const n = ni(ie, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = ve(ie, e.__scopeTooltip);
|
|
2419
|
+
return /* @__PURE__ */ x(Je, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ x(xn, { side: i, ...r, ref: t }) : /* @__PURE__ */ x(ri, { side: i, ...r, ref: t }) });
|
|
2464
2420
|
}
|
|
2465
|
-
),
|
|
2466
|
-
const n = ve(
|
|
2421
|
+
), ri = f.forwardRef((e, t) => {
|
|
2422
|
+
const n = ve(ie, e.__scopeTooltip), o = Qe(ie, e.__scopeTooltip), i = f.useRef(null), r = te(t, i), [s, a] = f.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, h = f.useCallback(() => {
|
|
2467
2423
|
a(null), d(!1);
|
|
2468
2424
|
}, [d]), p = f.useCallback(
|
|
2469
2425
|
(m, g) => {
|
|
2470
|
-
const
|
|
2471
|
-
a(
|
|
2426
|
+
const v = m.currentTarget, y = { x: m.clientX, y: m.clientY }, w = si(y, v.getBoundingClientRect()), A = ai(y, w), b = ci(g.getBoundingClientRect()), _ = ui([...A, ...b]);
|
|
2427
|
+
a(_), d(!0);
|
|
2472
2428
|
},
|
|
2473
2429
|
[d]
|
|
2474
2430
|
);
|
|
2475
2431
|
return f.useEffect(() => () => h(), [h]), f.useEffect(() => {
|
|
2476
2432
|
if (c && u) {
|
|
2477
|
-
const m = (
|
|
2433
|
+
const m = (v) => p(v, u), g = (v) => p(v, c);
|
|
2478
2434
|
return c.addEventListener("pointerleave", m), u.addEventListener("pointerleave", g), () => {
|
|
2479
2435
|
c.removeEventListener("pointerleave", m), u.removeEventListener("pointerleave", g);
|
|
2480
2436
|
};
|
|
@@ -2482,13 +2438,13 @@ var se = "TooltipContent", gn = f.forwardRef(
|
|
|
2482
2438
|
}, [c, u, p, h]), f.useEffect(() => {
|
|
2483
2439
|
if (s) {
|
|
2484
2440
|
const m = (g) => {
|
|
2485
|
-
const
|
|
2486
|
-
w ? h() :
|
|
2441
|
+
const v = g.target, y = { x: g.clientX, y: g.clientY }, w = (c == null ? void 0 : c.contains(v)) || (u == null ? void 0 : u.contains(v)), A = !li(y, s);
|
|
2442
|
+
w ? h() : A && (h(), l());
|
|
2487
2443
|
};
|
|
2488
2444
|
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
2489
2445
|
}
|
|
2490
|
-
}, [c, u, s, l, h]), /* @__PURE__ */ x(
|
|
2491
|
-
}), [
|
|
2446
|
+
}, [c, u, s, l, h]), /* @__PURE__ */ x(xn, { ...e, ref: r });
|
|
2447
|
+
}), [oi, ii] = Se(De, { isInside: !1 }), xn = f.forwardRef(
|
|
2492
2448
|
(e, t) => {
|
|
2493
2449
|
const {
|
|
2494
2450
|
__scopeTooltip: n,
|
|
@@ -2497,8 +2453,8 @@ var se = "TooltipContent", gn = f.forwardRef(
|
|
|
2497
2453
|
onEscapeKeyDown: r,
|
|
2498
2454
|
onPointerDownOutside: s,
|
|
2499
2455
|
...a
|
|
2500
|
-
} = e, c = ve(
|
|
2501
|
-
return f.useEffect(() => (document.addEventListener(
|
|
2456
|
+
} = e, c = ve(ie, n), l = Ne(n), { onClose: u } = c;
|
|
2457
|
+
return f.useEffect(() => (document.addEventListener(je, u), () => document.removeEventListener(je, u)), [u]), f.useEffect(() => {
|
|
2502
2458
|
if (c.trigger) {
|
|
2503
2459
|
const d = (h) => {
|
|
2504
2460
|
const p = h.target;
|
|
@@ -2507,7 +2463,7 @@ var se = "TooltipContent", gn = f.forwardRef(
|
|
|
2507
2463
|
return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
|
|
2508
2464
|
}
|
|
2509
2465
|
}, [c.trigger, u]), /* @__PURE__ */ x(
|
|
2510
|
-
|
|
2466
|
+
zt,
|
|
2511
2467
|
{
|
|
2512
2468
|
asChild: !0,
|
|
2513
2469
|
disableOutsidePointerEvents: !1,
|
|
@@ -2515,8 +2471,8 @@ var se = "TooltipContent", gn = f.forwardRef(
|
|
|
2515
2471
|
onPointerDownOutside: s,
|
|
2516
2472
|
onFocusOutside: (d) => d.preventDefault(),
|
|
2517
2473
|
onDismiss: u,
|
|
2518
|
-
children: /* @__PURE__ */
|
|
2519
|
-
|
|
2474
|
+
children: /* @__PURE__ */ Ae(
|
|
2475
|
+
jo,
|
|
2520
2476
|
{
|
|
2521
2477
|
"data-state": c.stateAttribute,
|
|
2522
2478
|
...l,
|
|
@@ -2531,8 +2487,8 @@ var se = "TooltipContent", gn = f.forwardRef(
|
|
|
2531
2487
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2532
2488
|
},
|
|
2533
2489
|
children: [
|
|
2534
|
-
/* @__PURE__ */ x(
|
|
2535
|
-
/* @__PURE__ */ x(
|
|
2490
|
+
/* @__PURE__ */ x(Ht, { children: o }),
|
|
2491
|
+
/* @__PURE__ */ x(oi, { scope: n, isInside: !0, children: /* @__PURE__ */ x(Ko, { id: c.contentId, role: "tooltip", children: i || o }) })
|
|
2536
2492
|
]
|
|
2537
2493
|
}
|
|
2538
2494
|
)
|
|
@@ -2540,18 +2496,18 @@ var se = "TooltipContent", gn = f.forwardRef(
|
|
|
2540
2496
|
);
|
|
2541
2497
|
}
|
|
2542
2498
|
);
|
|
2543
|
-
|
|
2544
|
-
var
|
|
2499
|
+
wn.displayName = ie;
|
|
2500
|
+
var bn = "TooltipArrow", _n = f.forwardRef(
|
|
2545
2501
|
(e, t) => {
|
|
2546
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2547
|
-
return
|
|
2548
|
-
|
|
2502
|
+
const { __scopeTooltip: n, ...o } = e, i = Ne(n);
|
|
2503
|
+
return ii(
|
|
2504
|
+
bn,
|
|
2549
2505
|
n
|
|
2550
|
-
).isInside ? null : /* @__PURE__ */ x(
|
|
2506
|
+
).isInside ? null : /* @__PURE__ */ x(zo, { ...i, ...o, ref: t });
|
|
2551
2507
|
}
|
|
2552
2508
|
);
|
|
2553
|
-
|
|
2554
|
-
function
|
|
2509
|
+
_n.displayName = bn;
|
|
2510
|
+
function si(e, t) {
|
|
2555
2511
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), r = Math.abs(t.left - e.x);
|
|
2556
2512
|
switch (Math.min(n, o, i, r)) {
|
|
2557
2513
|
case r:
|
|
@@ -2566,7 +2522,7 @@ function ti(e, t) {
|
|
|
2566
2522
|
throw new Error("unreachable");
|
|
2567
2523
|
}
|
|
2568
2524
|
}
|
|
2569
|
-
function
|
|
2525
|
+
function ai(e, t, n = 5) {
|
|
2570
2526
|
const o = [];
|
|
2571
2527
|
switch (t) {
|
|
2572
2528
|
case "top":
|
|
@@ -2596,7 +2552,7 @@ function ni(e, t, n = 5) {
|
|
|
2596
2552
|
}
|
|
2597
2553
|
return o;
|
|
2598
2554
|
}
|
|
2599
|
-
function
|
|
2555
|
+
function ci(e) {
|
|
2600
2556
|
const { top: t, right: n, bottom: o, left: i } = e;
|
|
2601
2557
|
return [
|
|
2602
2558
|
{ x: i, y: t },
|
|
@@ -2605,7 +2561,7 @@ function ri(e) {
|
|
|
2605
2561
|
{ x: i, y: o }
|
|
2606
2562
|
];
|
|
2607
2563
|
}
|
|
2608
|
-
function
|
|
2564
|
+
function li(e, t) {
|
|
2609
2565
|
const { x: n, y: o } = e;
|
|
2610
2566
|
let i = !1;
|
|
2611
2567
|
for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
|
|
@@ -2614,11 +2570,11 @@ function oi(e, t) {
|
|
|
2614
2570
|
}
|
|
2615
2571
|
return i;
|
|
2616
2572
|
}
|
|
2617
|
-
function
|
|
2573
|
+
function ui(e) {
|
|
2618
2574
|
const t = e.slice();
|
|
2619
|
-
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0),
|
|
2575
|
+
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), fi(t);
|
|
2620
2576
|
}
|
|
2621
|
-
function
|
|
2577
|
+
function fi(e) {
|
|
2622
2578
|
if (e.length <= 1) return e.slice();
|
|
2623
2579
|
const t = [];
|
|
2624
2580
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -2643,68 +2599,71 @@ function si(e) {
|
|
|
2643
2599
|
}
|
|
2644
2600
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
2645
2601
|
}
|
|
2646
|
-
var
|
|
2647
|
-
function
|
|
2602
|
+
var pi = mn, di = gn, hi = vn, mi = yn, gi = wn, vi = _n;
|
|
2603
|
+
function yi(e) {
|
|
2648
2604
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2649
2605
|
}
|
|
2650
|
-
var
|
|
2606
|
+
var $e = { exports: {} };
|
|
2651
2607
|
/*!
|
|
2652
2608
|
Copyright (c) 2018 Jed Watson.
|
|
2653
2609
|
Licensed under the MIT License (MIT), see
|
|
2654
2610
|
http://jedwatson.github.io/classnames
|
|
2655
2611
|
*/
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
function
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2612
|
+
var St;
|
|
2613
|
+
function wi() {
|
|
2614
|
+
return St || (St = 1, function(e) {
|
|
2615
|
+
(function() {
|
|
2616
|
+
var t = {}.hasOwnProperty;
|
|
2617
|
+
function n() {
|
|
2618
|
+
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
2619
|
+
var a = arguments[s];
|
|
2620
|
+
a && (r = i(r, o.call(this, a)));
|
|
2621
|
+
}
|
|
2622
|
+
return r;
|
|
2663
2623
|
}
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
}
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
const mi = /* @__PURE__ */ pi(hi), gi = "_slideDownAndFade_fkagk_1", yi = "_slideLeftAndFade_fkagk_1", vi = "_slideUpAndFade_fkagk_1", wi = "_slideRightAndFade_fkagk_1", xi = {
|
|
2624
|
+
function o(r) {
|
|
2625
|
+
if (typeof r == "string" || typeof r == "number")
|
|
2626
|
+
return this && this[r] || r;
|
|
2627
|
+
if (typeof r != "object")
|
|
2628
|
+
return "";
|
|
2629
|
+
if (Array.isArray(r))
|
|
2630
|
+
return n.apply(this, r);
|
|
2631
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
2632
|
+
return r.toString();
|
|
2633
|
+
var s = "";
|
|
2634
|
+
for (var a in r)
|
|
2635
|
+
t.call(r, a) && r[a] && (s = i(s, this && this[a] || a));
|
|
2636
|
+
return s;
|
|
2637
|
+
}
|
|
2638
|
+
function i(r, s) {
|
|
2639
|
+
return s ? r ? r + " " + s : r + s : r;
|
|
2640
|
+
}
|
|
2641
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
2642
|
+
})();
|
|
2643
|
+
}($e)), $e.exports;
|
|
2644
|
+
}
|
|
2645
|
+
var xi = wi();
|
|
2646
|
+
const bi = /* @__PURE__ */ yi(xi), _i = "_slideDownAndFade_fkagk_1", Ai = "_slideLeftAndFade_fkagk_1", Pi = "_slideUpAndFade_fkagk_1", Ci = "_slideRightAndFade_fkagk_1", Ei = {
|
|
2688
2647
|
"purpur-tooltip": "_purpur-tooltip_fkagk_1",
|
|
2689
2648
|
"purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
|
|
2690
2649
|
"purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_fkagk_14",
|
|
2691
2650
|
"purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_fkagk_17",
|
|
2692
|
-
slideDownAndFade:
|
|
2693
|
-
slideLeftAndFade:
|
|
2694
|
-
slideUpAndFade:
|
|
2695
|
-
slideRightAndFade:
|
|
2651
|
+
slideDownAndFade: _i,
|
|
2652
|
+
slideLeftAndFade: Ai,
|
|
2653
|
+
slideUpAndFade: Pi,
|
|
2654
|
+
slideRightAndFade: Ci,
|
|
2696
2655
|
"purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_fkagk_32",
|
|
2697
2656
|
"purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_fkagk_35"
|
|
2698
|
-
},
|
|
2657
|
+
}, ke = bi.bind(Ei), Oi = {
|
|
2699
2658
|
TOP: "top",
|
|
2700
2659
|
BOTTOM: "bottom",
|
|
2701
2660
|
LEFT: "left",
|
|
2702
2661
|
RIGHT: "right"
|
|
2703
|
-
},
|
|
2662
|
+
}, Ri = {
|
|
2704
2663
|
START: "start",
|
|
2705
2664
|
CENTER: "center",
|
|
2706
2665
|
END: "end"
|
|
2707
|
-
},
|
|
2666
|
+
}, ne = "purpur-tooltip", Ti = Nt(
|
|
2708
2667
|
({
|
|
2709
2668
|
["data-testid"]: e,
|
|
2710
2669
|
buttonSize: t = "md",
|
|
@@ -2712,68 +2671,68 @@ const mi = /* @__PURE__ */ pi(hi), gi = "_slideDownAndFade_fkagk_1", yi = "_slid
|
|
|
2712
2671
|
className: o,
|
|
2713
2672
|
contentClassName: i,
|
|
2714
2673
|
negative: r = !1,
|
|
2715
|
-
position: s =
|
|
2716
|
-
align: a =
|
|
2674
|
+
position: s = Oi.TOP,
|
|
2675
|
+
align: a = Ri.CENTER,
|
|
2717
2676
|
triggerAriaLabel: c = "",
|
|
2718
2677
|
triggerElement: l,
|
|
2719
2678
|
...u
|
|
2720
2679
|
}, d) => {
|
|
2721
|
-
const [h, p] =
|
|
2680
|
+
const [h, p] = $n(!1), m = ke([
|
|
2722
2681
|
o,
|
|
2723
|
-
|
|
2724
|
-
`${
|
|
2682
|
+
ne,
|
|
2683
|
+
`${ne}--primary${r ? "-negative" : ""}`
|
|
2725
2684
|
]), g = /* @__PURE__ */ x(
|
|
2726
|
-
|
|
2685
|
+
Lt,
|
|
2727
2686
|
{
|
|
2728
2687
|
ref: d,
|
|
2729
2688
|
"aria-label": c,
|
|
2730
|
-
variant:
|
|
2689
|
+
variant: Kn.TERTIARY_PURPLE,
|
|
2731
2690
|
negative: r,
|
|
2732
2691
|
iconOnly: !0,
|
|
2733
2692
|
"data-testid": `${e}-trigger-button`,
|
|
2734
2693
|
size: t,
|
|
2735
|
-
children: /* @__PURE__ */ x(
|
|
2694
|
+
children: /* @__PURE__ */ x($t, { size: "md" })
|
|
2736
2695
|
}
|
|
2737
2696
|
);
|
|
2738
|
-
return /* @__PURE__ */ x("div", { "data-testid": e, className: m, children: /* @__PURE__ */ x(
|
|
2697
|
+
return /* @__PURE__ */ x("div", { "data-testid": e, className: m, children: /* @__PURE__ */ x(pi, { delayDuration: parseInt(mr), children: /* @__PURE__ */ Ae(di, { open: h, onOpenChange: p, ...u, children: [
|
|
2739
2698
|
/* @__PURE__ */ x(
|
|
2740
|
-
|
|
2699
|
+
hi,
|
|
2741
2700
|
{
|
|
2742
2701
|
asChild: !0,
|
|
2743
|
-
onClick: (
|
|
2744
|
-
|
|
2702
|
+
onClick: (v) => {
|
|
2703
|
+
v.preventDefault(), p(!0);
|
|
2745
2704
|
},
|
|
2746
|
-
children:
|
|
2705
|
+
children: kn.count(l) === 0 ? g : l
|
|
2747
2706
|
}
|
|
2748
2707
|
),
|
|
2749
|
-
/* @__PURE__ */ x(
|
|
2750
|
-
|
|
2708
|
+
/* @__PURE__ */ x(mi, { children: /* @__PURE__ */ Ae(
|
|
2709
|
+
gi,
|
|
2751
2710
|
{
|
|
2752
2711
|
side: s,
|
|
2753
2712
|
align: a,
|
|
2754
|
-
className:
|
|
2713
|
+
className: ke([
|
|
2755
2714
|
i,
|
|
2756
|
-
`${
|
|
2757
|
-
`${
|
|
2715
|
+
`${ne}__content`,
|
|
2716
|
+
`${ne}__content--primary${r ? "-negative" : ""}`
|
|
2758
2717
|
]),
|
|
2759
2718
|
sideOffset: -5,
|
|
2760
2719
|
"data-testid": `${e}-content`,
|
|
2761
2720
|
children: [
|
|
2762
2721
|
typeof n == "string" ? /* @__PURE__ */ x(
|
|
2763
|
-
|
|
2722
|
+
Ft,
|
|
2764
2723
|
{
|
|
2765
|
-
variant:
|
|
2724
|
+
variant: kt.PARAGRAPH100,
|
|
2766
2725
|
negative: !r,
|
|
2767
2726
|
"data-testid": `${e}-paragraph`,
|
|
2768
2727
|
children: n
|
|
2769
2728
|
}
|
|
2770
2729
|
) : n,
|
|
2771
2730
|
/* @__PURE__ */ x(
|
|
2772
|
-
|
|
2731
|
+
vi,
|
|
2773
2732
|
{
|
|
2774
|
-
className:
|
|
2775
|
-
`${
|
|
2776
|
-
`${
|
|
2733
|
+
className: ke([
|
|
2734
|
+
`${ne}__arrow`,
|
|
2735
|
+
`${ne}__arrow--primary${r ? "-negative" : ""}`
|
|
2777
2736
|
])
|
|
2778
2737
|
}
|
|
2779
2738
|
)
|
|
@@ -2783,10 +2742,10 @@ const mi = /* @__PURE__ */ pi(hi), gi = "_slideDownAndFade_fkagk_1", yi = "_slid
|
|
|
2783
2742
|
] }) }) });
|
|
2784
2743
|
}
|
|
2785
2744
|
);
|
|
2786
|
-
|
|
2745
|
+
Ti.displayName = "Tooltip";
|
|
2787
2746
|
export {
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2747
|
+
Ri as TOOLTIP_ALIGN,
|
|
2748
|
+
Oi as TOOLTIP_POSITION,
|
|
2749
|
+
Ti as Tooltip
|
|
2791
2750
|
};
|
|
2792
2751
|
//# sourceMappingURL=tooltip.es.js.map
|