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