@purpurds/tooltip 4.1.1 → 4.3.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/{eaa4fe9893d8432a2a5f40fa319162a6ed205274.untar.log → deee1cb90ff0e0b5f6cfb6b2e8912fa5513ed8c8.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +5 -5
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +3 -3
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/dist/LICENSE.txt +4 -4
- package/dist/tooltip.cjs.js +6 -6
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.es.js +300 -297
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +5 -5
package/dist/tooltip.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as Ue, jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import { forwardRef as M, useCallback as
|
|
4
|
-
import * as
|
|
3
|
+
import { forwardRef as M, useCallback as H, createContext as Ge, useMemo as xe, createElement as w, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as z, useLayoutEffect as Ct, useReducer as _n } from "react";
|
|
4
|
+
import * as wn from "react-dom";
|
|
5
5
|
import An, { flushSync as Rt } from "react-dom";
|
|
6
6
|
const Pn = {
|
|
7
7
|
PRIMARY: "primary",
|
|
@@ -55,7 +55,7 @@ var St = { exports: {} };
|
|
|
55
55
|
})();
|
|
56
56
|
})(St);
|
|
57
57
|
var On = St.exports;
|
|
58
|
-
const pt = /* @__PURE__ */ En(On), Tn = "_rotate_7s2g1_1", Cn = "_dash_7s2g1_1",
|
|
58
|
+
const pt = /* @__PURE__ */ En(On), Tn = "_rotate_7s2g1_1", Cn = "_dash_7s2g1_1", Re = {
|
|
59
59
|
"purpur-spinner": "_purpur-spinner_7s2g1_1",
|
|
60
60
|
rotate: Tn,
|
|
61
61
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
|
|
@@ -68,7 +68,7 @@ const pt = /* @__PURE__ */ En(On), Tn = "_rotate_7s2g1_1", Cn = "_dash_7s2g1_1",
|
|
|
68
68
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_7s2g1_33",
|
|
69
69
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_7s2g1_36",
|
|
70
70
|
"purpur-spinner__circle--negative-disabled": "_purpur-spinner__circle--negative-disabled_7s2g1_39"
|
|
71
|
-
},
|
|
71
|
+
}, Se = "purpur-spinner", Rn = {
|
|
72
72
|
PRIMARY: "primary",
|
|
73
73
|
DISABLED: "disabled",
|
|
74
74
|
NEGATIVE: "negative",
|
|
@@ -87,15 +87,15 @@ const pt = /* @__PURE__ */ En(On), Tn = "_rotate_7s2g1_1", Cn = "_dash_7s2g1_1",
|
|
|
87
87
|
}) => /* @__PURE__ */ I(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
|
-
className: pt([
|
|
90
|
+
className: pt([Re[Se], Re[`${Se}--${t}`]]),
|
|
91
91
|
"data-testid": e,
|
|
92
92
|
...o,
|
|
93
93
|
children: /* @__PURE__ */ I("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ I(
|
|
94
94
|
"circle",
|
|
95
95
|
{
|
|
96
96
|
className: pt(
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
Re[`${Se}__circle`],
|
|
98
|
+
Re[`${Se}__circle--${n}`]
|
|
99
99
|
),
|
|
100
100
|
cx: "25",
|
|
101
101
|
cy: "25",
|
|
@@ -205,7 +205,7 @@ const Mn = /* @__PURE__ */ Nn(Ln), re = {
|
|
|
205
205
|
), h = (m) => {
|
|
206
206
|
o || s ? m.preventDefault() : a && a(m);
|
|
207
207
|
}, g = () => l.endsWith("negative") ? "negative-disabled" : "disabled";
|
|
208
|
-
return /* @__PURE__ */
|
|
208
|
+
return /* @__PURE__ */ Ue(
|
|
209
209
|
"button",
|
|
210
210
|
{
|
|
211
211
|
className: f,
|
|
@@ -224,7 +224,7 @@ const Mn = /* @__PURE__ */ Nn(Ln), re = {
|
|
|
224
224
|
);
|
|
225
225
|
}, Nt = M(In);
|
|
226
226
|
Nt.displayName = "Button";
|
|
227
|
-
function
|
|
227
|
+
function Fn(e) {
|
|
228
228
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
229
229
|
}
|
|
230
230
|
var Lt = { exports: {} };
|
|
@@ -263,8 +263,8 @@ var Lt = { exports: {} };
|
|
|
263
263
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
264
264
|
})();
|
|
265
265
|
})(Lt);
|
|
266
|
-
var
|
|
267
|
-
const
|
|
266
|
+
var Hn = Lt.exports;
|
|
267
|
+
const kn = /* @__PURE__ */ Fn(Hn), Bn = {
|
|
268
268
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
269
269
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
270
270
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -272,7 +272,7 @@ const Hn = /* @__PURE__ */ kn(Fn), Bn = {
|
|
|
272
272
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
273
273
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
274
274
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
275
|
-
},
|
|
275
|
+
}, zn = {
|
|
276
276
|
name: "info",
|
|
277
277
|
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>',
|
|
278
278
|
keywords: ["info"],
|
|
@@ -281,30 +281,30 @@ const Hn = /* @__PURE__ */ kn(Fn), Bn = {
|
|
|
281
281
|
Yn,
|
|
282
282
|
{
|
|
283
283
|
...e,
|
|
284
|
-
svg:
|
|
284
|
+
svg: zn
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
287
|
Mt.displayName = "IconInfo";
|
|
288
|
-
const
|
|
288
|
+
const Wn = kn.bind(Bn), gt = "purpur-icon", Vn = "md", jn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Un = ({ content: e = "", title: t } = {}) => {
|
|
289
289
|
const n = [
|
|
290
290
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
291
291
|
{ name: "fill", value: "currentColor" },
|
|
292
292
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
293
293
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
294
294
|
], o = t ? `<title>${t}</title>` : "";
|
|
295
|
-
return `<svg ${
|
|
295
|
+
return `<svg ${jn(n)}>${o}${e}</svg>`;
|
|
296
296
|
}, Gn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yn = ({
|
|
297
297
|
["data-testid"]: e,
|
|
298
298
|
svg: t,
|
|
299
299
|
allyTitle: n,
|
|
300
300
|
className: o = "",
|
|
301
|
-
size: i =
|
|
301
|
+
size: i = Vn,
|
|
302
302
|
...r
|
|
303
303
|
}) => {
|
|
304
|
-
const s =
|
|
304
|
+
const s = Un({
|
|
305
305
|
content: Gn(t.svg),
|
|
306
306
|
title: n
|
|
307
|
-
}), a =
|
|
307
|
+
}), a = Wn(o, gt, `${gt}--${i}`);
|
|
308
308
|
return /* @__PURE__ */ I(
|
|
309
309
|
"span",
|
|
310
310
|
{
|
|
@@ -356,21 +356,22 @@ var It = { exports: {} };
|
|
|
356
356
|
})();
|
|
357
357
|
})(It);
|
|
358
358
|
var qn = It.exports;
|
|
359
|
-
const Kn = /* @__PURE__ */ Xn(qn),
|
|
360
|
-
"purpur-paragraph": "_purpur-
|
|
361
|
-
"purpur-paragraph--disabled": "_purpur-paragraph--
|
|
362
|
-
"purpur-paragraph--hyphens": "_purpur-paragraph--
|
|
363
|
-
"purpur-paragraph--
|
|
364
|
-
"purpur-paragraph--paragraph-100
|
|
365
|
-
"purpur-paragraph--paragraph-100-
|
|
366
|
-
"purpur-paragraph--paragraph-
|
|
367
|
-
"purpur-paragraph--
|
|
368
|
-
"purpur-paragraph--preamble-
|
|
369
|
-
"purpur-paragraph--
|
|
370
|
-
"purpur-paragraph--additional-100
|
|
371
|
-
"purpur-paragraph--
|
|
372
|
-
"purpur-paragraph--overline-
|
|
373
|
-
|
|
359
|
+
const Kn = /* @__PURE__ */ Xn(qn), ye = {
|
|
360
|
+
"purpur-paragraph": "_purpur-paragraph_15yuz_1",
|
|
361
|
+
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_15yuz_7",
|
|
362
|
+
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_15yuz_10",
|
|
363
|
+
"purpur-paragraph--negative": "_purpur-paragraph--negative_15yuz_13",
|
|
364
|
+
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_15yuz_16",
|
|
365
|
+
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_15yuz_22",
|
|
366
|
+
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_15yuz_29",
|
|
367
|
+
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_15yuz_36",
|
|
368
|
+
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_15yuz_42",
|
|
369
|
+
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_15yuz_48",
|
|
370
|
+
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_15yuz_54",
|
|
371
|
+
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_15yuz_60",
|
|
372
|
+
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_15yuz_67",
|
|
373
|
+
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_15yuz_75"
|
|
374
|
+
}, Ft = {
|
|
374
375
|
PARAGRAPH100: "paragraph-100",
|
|
375
376
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
376
377
|
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
@@ -381,25 +382,27 @@ const Kn = /* @__PURE__ */ Xn(qn), Re = {
|
|
|
381
382
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
382
383
|
OVERLINE100: "overline-100",
|
|
383
384
|
OVERLINE200: "overline-200"
|
|
384
|
-
},
|
|
385
|
+
}, be = "purpur-paragraph", Zn = ({
|
|
385
386
|
["data-testid"]: e,
|
|
386
387
|
children: t,
|
|
387
388
|
className: n = "",
|
|
388
389
|
disabled: o,
|
|
389
390
|
enableHyphenation: i = !1,
|
|
390
|
-
|
|
391
|
-
|
|
391
|
+
negative: r = !1,
|
|
392
|
+
variant: s = Ft.PARAGRAPH100,
|
|
393
|
+
...a
|
|
392
394
|
}) => {
|
|
393
|
-
const
|
|
395
|
+
const c = Kn([
|
|
394
396
|
n,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
+
ye[be],
|
|
398
|
+
ye[`${be}--${s}`],
|
|
397
399
|
{
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
+
[ye[`${be}--hyphens`]]: i,
|
|
401
|
+
[ye[`${be}--disabled`]]: o,
|
|
402
|
+
[ye[`${be}--negative`]]: r
|
|
400
403
|
}
|
|
401
404
|
]);
|
|
402
|
-
return /* @__PURE__ */ I("p", { ...
|
|
405
|
+
return /* @__PURE__ */ I("p", { ...a, className: c, "data-testid": e, children: t });
|
|
403
406
|
}, Jn = "400ms";
|
|
404
407
|
function S() {
|
|
405
408
|
return S = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -420,15 +423,15 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
420
423
|
function Qn(e, t) {
|
|
421
424
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
422
425
|
}
|
|
423
|
-
function
|
|
426
|
+
function Ht(...e) {
|
|
424
427
|
return (t) => e.forEach(
|
|
425
428
|
(n) => Qn(n, t)
|
|
426
429
|
);
|
|
427
430
|
}
|
|
428
431
|
function pe(...e) {
|
|
429
|
-
return
|
|
432
|
+
return H(Ht(...e), e);
|
|
430
433
|
}
|
|
431
|
-
function
|
|
434
|
+
function kt(e, t = []) {
|
|
432
435
|
let n = [];
|
|
433
436
|
function o(r, s) {
|
|
434
437
|
const a = /* @__PURE__ */ Ge(s), c = n.length;
|
|
@@ -437,11 +440,11 @@ function Ht(e, t = []) {
|
|
|
437
440
|
s
|
|
438
441
|
];
|
|
439
442
|
function l(u) {
|
|
440
|
-
const { scope: p, children: f, ...h } = u, g = (p == null ? void 0 : p[e][c]) || a, m =
|
|
443
|
+
const { scope: p, children: f, ...h } = u, g = (p == null ? void 0 : p[e][c]) || a, m = xe(
|
|
441
444
|
() => h,
|
|
442
445
|
Object.values(h)
|
|
443
446
|
);
|
|
444
|
-
return /* @__PURE__ */
|
|
447
|
+
return /* @__PURE__ */ w(g.Provider, {
|
|
445
448
|
value: m
|
|
446
449
|
}, f);
|
|
447
450
|
}
|
|
@@ -462,7 +465,7 @@ function Ht(e, t = []) {
|
|
|
462
465
|
const r = n.map((s) => /* @__PURE__ */ Ge(s));
|
|
463
466
|
return function(a) {
|
|
464
467
|
const c = (a == null ? void 0 : a[e]) || r;
|
|
465
|
-
return
|
|
468
|
+
return xe(
|
|
466
469
|
() => ({
|
|
467
470
|
[`__scope${e}`]: {
|
|
468
471
|
...a,
|
|
@@ -500,7 +503,7 @@ function er(...e) {
|
|
|
500
503
|
...u
|
|
501
504
|
};
|
|
502
505
|
}, {});
|
|
503
|
-
return
|
|
506
|
+
return xe(
|
|
504
507
|
() => ({
|
|
505
508
|
[`__scope${t.scopeName}`]: s
|
|
506
509
|
}),
|
|
@@ -516,11 +519,11 @@ const Bt = /* @__PURE__ */ M((e, t) => {
|
|
|
516
519
|
const { children: n, ...o } = e, i = se.toArray(n), r = i.find(tr);
|
|
517
520
|
if (r) {
|
|
518
521
|
const s = r.props.children, a = i.map((c) => c === r ? se.count(s) > 1 ? se.only(null) : /* @__PURE__ */ Ie(s) ? s.props.children : null : c);
|
|
519
|
-
return /* @__PURE__ */
|
|
522
|
+
return /* @__PURE__ */ w(Ye, S({}, o, {
|
|
520
523
|
ref: t
|
|
521
524
|
}), /* @__PURE__ */ Ie(s) ? /* @__PURE__ */ Je(s, void 0, a) : null);
|
|
522
525
|
}
|
|
523
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ w(Ye, S({}, o, {
|
|
524
527
|
ref: t
|
|
525
528
|
}), n);
|
|
526
529
|
});
|
|
@@ -529,13 +532,13 @@ const Ye = /* @__PURE__ */ M((e, t) => {
|
|
|
529
532
|
const { children: n, ...o } = e;
|
|
530
533
|
return /* @__PURE__ */ Ie(n) ? /* @__PURE__ */ Je(n, {
|
|
531
534
|
...nr(o, n.props),
|
|
532
|
-
ref: t ?
|
|
535
|
+
ref: t ? Ht(t, n.ref) : n.ref
|
|
533
536
|
}) : se.count(n) > 1 ? se.only(null) : null;
|
|
534
537
|
});
|
|
535
538
|
Ye.displayName = "SlotClone";
|
|
536
|
-
const
|
|
539
|
+
const zt = ({ children: e }) => /* @__PURE__ */ w($n, null, e);
|
|
537
540
|
function tr(e) {
|
|
538
|
-
return /* @__PURE__ */ Ie(e) && e.type ===
|
|
541
|
+
return /* @__PURE__ */ Ie(e) && e.type === zt;
|
|
539
542
|
}
|
|
540
543
|
function nr(e, t) {
|
|
541
544
|
const n = {
|
|
@@ -580,7 +583,7 @@ const rr = [
|
|
|
580
583
|
const { asChild: r, ...s } = o, a = r ? Bt : t;
|
|
581
584
|
return R(() => {
|
|
582
585
|
window[Symbol.for("radix-ui")] = !0;
|
|
583
|
-
}, []), /* @__PURE__ */
|
|
586
|
+
}, []), /* @__PURE__ */ w(a, S({}, s, {
|
|
584
587
|
ref: i
|
|
585
588
|
}));
|
|
586
589
|
});
|
|
@@ -598,7 +601,7 @@ function he(e) {
|
|
|
598
601
|
const t = L(e);
|
|
599
602
|
return R(() => {
|
|
600
603
|
t.current = e;
|
|
601
|
-
}),
|
|
604
|
+
}), xe(
|
|
602
605
|
() => (...n) => {
|
|
603
606
|
var o;
|
|
604
607
|
return (o = t.current) === null || o === void 0 ? void 0 : o.call(t, ...n);
|
|
@@ -626,18 +629,18 @@ const cr = /* @__PURE__ */ Ge({
|
|
|
626
629
|
branches: /* @__PURE__ */ new Set()
|
|
627
630
|
}), lr = /* @__PURE__ */ M((e, t) => {
|
|
628
631
|
var n;
|
|
629
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(cr), [u, p] =
|
|
632
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(cr), [u, p] = z(null), f = (n = u == null ? void 0 : u.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = z({}), g = pe(
|
|
630
633
|
t,
|
|
631
634
|
(A) => p(A)
|
|
632
635
|
), m = Array.from(d.layers), [v] = [
|
|
633
636
|
...d.layersWithOutsidePointerEventsDisabled
|
|
634
|
-
].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y,
|
|
635
|
-
const C = A.target,
|
|
637
|
+
].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, _ = ur((A) => {
|
|
638
|
+
const C = A.target, F = [
|
|
636
639
|
...d.branches
|
|
637
640
|
].some(
|
|
638
641
|
(T) => T.contains(C)
|
|
639
642
|
);
|
|
640
|
-
!b ||
|
|
643
|
+
!b || F || (r == null || r(A), a == null || a(A), A.defaultPrevented || c == null || c());
|
|
641
644
|
}, f), E = dr((A) => {
|
|
642
645
|
const C = A.target;
|
|
643
646
|
[
|
|
@@ -666,7 +669,7 @@ const cr = /* @__PURE__ */ Ge({
|
|
|
666
669
|
]), R(() => {
|
|
667
670
|
const A = () => h({});
|
|
668
671
|
return document.addEventListener(Xe, A), () => document.removeEventListener(Xe, A);
|
|
669
|
-
}, []), /* @__PURE__ */
|
|
672
|
+
}, []), /* @__PURE__ */ w(ce.div, S({}, l, {
|
|
670
673
|
ref: g,
|
|
671
674
|
style: {
|
|
672
675
|
pointerEvents: $ ? b ? "auto" : "none" : void 0,
|
|
@@ -674,7 +677,7 @@ const cr = /* @__PURE__ */ Ge({
|
|
|
674
677
|
},
|
|
675
678
|
onFocusCapture: G(e.onFocusCapture, E.onFocusCapture),
|
|
676
679
|
onBlurCapture: G(e.onBlurCapture, E.onBlurCapture),
|
|
677
|
-
onPointerDownCapture: G(e.onPointerDownCapture,
|
|
680
|
+
onPointerDownCapture: G(e.onPointerDownCapture, _.onPointerDownCapture)
|
|
678
681
|
}));
|
|
679
682
|
});
|
|
680
683
|
function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -684,7 +687,7 @@ function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
684
687
|
const r = (a) => {
|
|
685
688
|
if (a.target && !o.current) {
|
|
686
689
|
let l = function() {
|
|
687
|
-
|
|
690
|
+
Wt(sr, n, c, {
|
|
688
691
|
discrete: !0
|
|
689
692
|
});
|
|
690
693
|
};
|
|
@@ -715,7 +718,7 @@ function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
715
718
|
const n = he(e), o = L(!1);
|
|
716
719
|
return R(() => {
|
|
717
720
|
const i = (r) => {
|
|
718
|
-
r.target && !o.current &&
|
|
721
|
+
r.target && !o.current && Wt(ar, n, {
|
|
719
722
|
originalEvent: r
|
|
720
723
|
}, {
|
|
721
724
|
discrete: !1
|
|
@@ -734,7 +737,7 @@ function vt() {
|
|
|
734
737
|
const e = new CustomEvent(Xe);
|
|
735
738
|
document.dispatchEvent(e);
|
|
736
739
|
}
|
|
737
|
-
function
|
|
740
|
+
function Wt(e, t, n, { discrete: o }) {
|
|
738
741
|
const i = n.originalEvent.target, r = new CustomEvent(e, {
|
|
739
742
|
bubbles: !1,
|
|
740
743
|
cancelable: !0,
|
|
@@ -758,7 +761,7 @@ function hr(e) {
|
|
|
758
761
|
e
|
|
759
762
|
]), e || (t ? `radix-${t}` : "");
|
|
760
763
|
}
|
|
761
|
-
const gr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max,
|
|
764
|
+
const gr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, Fe = Math.round, De = Math.floor, te = (e) => ({
|
|
762
765
|
x: e,
|
|
763
766
|
y: e
|
|
764
767
|
}), mr = {
|
|
@@ -798,10 +801,10 @@ function yr(e, t, n) {
|
|
|
798
801
|
n === void 0 && (n = !1);
|
|
799
802
|
const o = ge(e), i = tt(e), r = et(i);
|
|
800
803
|
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
801
|
-
return t.reference[r] > t.floating[r] && (s =
|
|
804
|
+
return t.reference[r] > t.floating[r] && (s = He(s)), [s, He(s)];
|
|
802
805
|
}
|
|
803
806
|
function br(e) {
|
|
804
|
-
const t =
|
|
807
|
+
const t = He(e);
|
|
805
808
|
return [Ke(e), t, Ke(t)];
|
|
806
809
|
}
|
|
807
810
|
function Ke(e) {
|
|
@@ -825,10 +828,10 @@ function $r(e, t, n, o) {
|
|
|
825
828
|
let r = xr(X(e), n === "start", o);
|
|
826
829
|
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ke)))), r;
|
|
827
830
|
}
|
|
828
|
-
function
|
|
831
|
+
function He(e) {
|
|
829
832
|
return e.replace(/left|right|bottom|top/g, (t) => mr[t]);
|
|
830
833
|
}
|
|
831
|
-
function
|
|
834
|
+
function _r(e) {
|
|
832
835
|
return {
|
|
833
836
|
top: 0,
|
|
834
837
|
right: 0,
|
|
@@ -837,15 +840,15 @@ function wr(e) {
|
|
|
837
840
|
...e
|
|
838
841
|
};
|
|
839
842
|
}
|
|
840
|
-
function
|
|
841
|
-
return typeof e != "number" ?
|
|
843
|
+
function Vt(e) {
|
|
844
|
+
return typeof e != "number" ? _r(e) : {
|
|
842
845
|
top: e,
|
|
843
846
|
right: e,
|
|
844
847
|
bottom: e,
|
|
845
848
|
left: e
|
|
846
849
|
};
|
|
847
850
|
}
|
|
848
|
-
function
|
|
851
|
+
function ke(e) {
|
|
849
852
|
return {
|
|
850
853
|
...e,
|
|
851
854
|
top: e.y,
|
|
@@ -902,7 +905,7 @@ function yt(e, t, n) {
|
|
|
902
905
|
}
|
|
903
906
|
return f;
|
|
904
907
|
}
|
|
905
|
-
const
|
|
908
|
+
const wr = async (e, t, n) => {
|
|
906
909
|
const {
|
|
907
910
|
placement: o = "bottom",
|
|
908
911
|
strategy: i = "absolute",
|
|
@@ -966,7 +969,7 @@ const _r = async (e, t, n) => {
|
|
|
966
969
|
middlewareData: f
|
|
967
970
|
};
|
|
968
971
|
};
|
|
969
|
-
async function
|
|
972
|
+
async function $e(e, t) {
|
|
970
973
|
var n;
|
|
971
974
|
t === void 0 && (t = {});
|
|
972
975
|
const {
|
|
@@ -982,7 +985,7 @@ async function be(e, t) {
|
|
|
982
985
|
elementContext: u = "floating",
|
|
983
986
|
altBoundary: p = !1,
|
|
984
987
|
padding: f = 0
|
|
985
|
-
} = Y(t, e), h =
|
|
988
|
+
} = Y(t, e), h = Vt(f), m = a[p ? u === "floating" ? "reference" : "floating" : u], v = ke(await r.getClippingRect({
|
|
986
989
|
element: (n = await (r.isElement == null ? void 0 : r.isElement(m))) == null || n ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
987
990
|
boundary: l,
|
|
988
991
|
rootBoundary: d,
|
|
@@ -997,7 +1000,7 @@ async function be(e, t) {
|
|
|
997
1000
|
} : {
|
|
998
1001
|
x: 1,
|
|
999
1002
|
y: 1
|
|
1000
|
-
}, b =
|
|
1003
|
+
}, b = ke(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1001
1004
|
rect: y,
|
|
1002
1005
|
offsetParent: x,
|
|
1003
1006
|
strategy: c
|
|
@@ -1026,13 +1029,13 @@ const bt = (e) => ({
|
|
|
1026
1029
|
} = Y(e, t) || {};
|
|
1027
1030
|
if (c == null)
|
|
1028
1031
|
return {};
|
|
1029
|
-
const d =
|
|
1032
|
+
const d = Vt(l), u = {
|
|
1030
1033
|
x: n,
|
|
1031
1034
|
y: o
|
|
1032
1035
|
}, p = tt(i), f = et(p), h = await s.getDimensions(c), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - u[p] - r.floating[f], $ = u[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
1033
|
-
let
|
|
1034
|
-
(!
|
|
1035
|
-
const E = x / 2 - $ / 2, A =
|
|
1036
|
+
let _ = b ? b[y] : 0;
|
|
1037
|
+
(!_ || !await (s.isElement == null ? void 0 : s.isElement(b))) && (_ = a.floating[y] || r.floating[f]);
|
|
1038
|
+
const E = x / 2 - $ / 2, A = _ / 2 - h[f] / 2 - 1, C = ee(d[m], A), F = ee(d[v], A), T = C, k = _ - h[f] - F, D = _ / 2 - h[f] / 2 + E, O = qe(T, D, k), P = ge(i) != null && D != O && r.reference[f] / 2 - (D < T ? C : F) - h[f] / 2 < 0 ? D < T ? T - D : k - D : 0;
|
|
1036
1039
|
return {
|
|
1037
1040
|
[p]: u[p] - P,
|
|
1038
1041
|
data: {
|
|
@@ -1062,36 +1065,36 @@ const bt = (e) => ({
|
|
|
1062
1065
|
fallbackAxisSideDirection: f = "none",
|
|
1063
1066
|
flipAlignment: h = !0,
|
|
1064
1067
|
...g
|
|
1065
|
-
} = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [
|
|
1068
|
+
} = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [He(s)] : br(s));
|
|
1066
1069
|
!u && f !== "none" && x.push(...$r(s, h, f, y));
|
|
1067
|
-
const $ = [s, ...x], b = await
|
|
1070
|
+
const $ = [s, ...x], b = await $e(t, g), _ = [];
|
|
1068
1071
|
let E = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
1069
|
-
if (l &&
|
|
1072
|
+
if (l && _.push(b[m]), d) {
|
|
1070
1073
|
const T = yr(o, r, y);
|
|
1071
|
-
|
|
1074
|
+
_.push(b[T[0]], b[T[1]]);
|
|
1072
1075
|
}
|
|
1073
1076
|
if (E = [...E, {
|
|
1074
1077
|
placement: o,
|
|
1075
|
-
overflows:
|
|
1076
|
-
}], !
|
|
1078
|
+
overflows: _
|
|
1079
|
+
}], !_.every((T) => T <= 0)) {
|
|
1077
1080
|
var A, C;
|
|
1078
|
-
const T = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1,
|
|
1079
|
-
if (
|
|
1081
|
+
const T = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1, k = $[T];
|
|
1082
|
+
if (k)
|
|
1080
1083
|
return {
|
|
1081
1084
|
data: {
|
|
1082
1085
|
index: T,
|
|
1083
1086
|
overflows: E
|
|
1084
1087
|
},
|
|
1085
1088
|
reset: {
|
|
1086
|
-
placement:
|
|
1089
|
+
placement: k
|
|
1087
1090
|
}
|
|
1088
1091
|
};
|
|
1089
|
-
let D = (C = E.filter((O) => O.overflows[0] <= 0).sort((O,
|
|
1092
|
+
let D = (C = E.filter((O) => O.overflows[0] <= 0).sort((O, V) => O.overflows[1] - V.overflows[1])[0]) == null ? void 0 : C.placement;
|
|
1090
1093
|
if (!D)
|
|
1091
1094
|
switch (p) {
|
|
1092
1095
|
case "bestFit": {
|
|
1093
|
-
var
|
|
1094
|
-
const O = (
|
|
1096
|
+
var F;
|
|
1097
|
+
const O = (F = E.map((V) => [V.placement, V.overflows.filter((P) => P > 0).reduce((P, Z) => P + Z, 0)]).sort((V, P) => V[1] - P[1])[0]) == null ? void 0 : F[0];
|
|
1095
1098
|
O && (D = O);
|
|
1096
1099
|
break;
|
|
1097
1100
|
}
|
|
@@ -1134,7 +1137,7 @@ const Pr = function(e) {
|
|
|
1134
1137
|
} = Y(e, t);
|
|
1135
1138
|
switch (o) {
|
|
1136
1139
|
case "referenceHidden": {
|
|
1137
|
-
const r = await
|
|
1140
|
+
const r = await $e(t, {
|
|
1138
1141
|
...i,
|
|
1139
1142
|
elementContext: "reference"
|
|
1140
1143
|
}), s = xt(r, n.reference);
|
|
@@ -1146,7 +1149,7 @@ const Pr = function(e) {
|
|
|
1146
1149
|
};
|
|
1147
1150
|
}
|
|
1148
1151
|
case "escaped": {
|
|
1149
|
-
const r = await
|
|
1152
|
+
const r = await $e(t, {
|
|
1150
1153
|
...i,
|
|
1151
1154
|
altBoundary: !0
|
|
1152
1155
|
}), s = xt(r, n.floating);
|
|
@@ -1235,7 +1238,7 @@ const Or = function(e) {
|
|
|
1235
1238
|
} = Y(e, t), l = {
|
|
1236
1239
|
x: n,
|
|
1237
1240
|
y: o
|
|
1238
|
-
}, d = await
|
|
1241
|
+
}, d = await $e(t, c), u = me(X(i)), p = Qe(u);
|
|
1239
1242
|
let f = l[p], h = l[u];
|
|
1240
1243
|
if (r) {
|
|
1241
1244
|
const m = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = f + d[m], x = f - d[v];
|
|
@@ -1292,8 +1295,8 @@ const Or = function(e) {
|
|
|
1292
1295
|
}
|
|
1293
1296
|
if (l) {
|
|
1294
1297
|
var v, y;
|
|
1295
|
-
const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(X(i)), b = r.reference[u] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[u]) || 0) + ($ ? 0 : m.crossAxis),
|
|
1296
|
-
h < b ? h = b : h >
|
|
1298
|
+
const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(X(i)), b = r.reference[u] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[u]) || 0) + ($ ? 0 : m.crossAxis), _ = r.reference[u] + r.reference[x] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - ($ ? m.crossAxis : 0);
|
|
1299
|
+
h < b ? h = b : h > _ && (h = _);
|
|
1297
1300
|
}
|
|
1298
1301
|
return {
|
|
1299
1302
|
[p]: f,
|
|
@@ -1315,7 +1318,7 @@ const Or = function(e) {
|
|
|
1315
1318
|
apply: s = () => {
|
|
1316
1319
|
},
|
|
1317
1320
|
...a
|
|
1318
|
-
} = Y(e, t), c = await
|
|
1321
|
+
} = Y(e, t), c = await $e(t, a), l = X(n), d = ge(n), u = me(n) === "y", {
|
|
1319
1322
|
width: p,
|
|
1320
1323
|
height: f
|
|
1321
1324
|
} = o.floating;
|
|
@@ -1324,15 +1327,15 @@ const Or = function(e) {
|
|
|
1324
1327
|
const m = f - c[h], v = p - c[g], y = !t.middlewareData.shift;
|
|
1325
1328
|
let x = m, $ = v;
|
|
1326
1329
|
if (u) {
|
|
1327
|
-
const
|
|
1328
|
-
$ = d || y ? ee(v,
|
|
1330
|
+
const _ = p - c.left - c.right;
|
|
1331
|
+
$ = d || y ? ee(v, _) : _;
|
|
1329
1332
|
} else {
|
|
1330
|
-
const
|
|
1331
|
-
x = d || y ? ee(m,
|
|
1333
|
+
const _ = f - c.top - c.bottom;
|
|
1334
|
+
x = d || y ? ee(m, _) : _;
|
|
1332
1335
|
}
|
|
1333
1336
|
if (y && !d) {
|
|
1334
|
-
const
|
|
1335
|
-
u ? $ = p - 2 * (
|
|
1337
|
+
const _ = B(c.left, 0), E = B(c.right, 0), A = B(c.top, 0), C = B(c.bottom, 0);
|
|
1338
|
+
u ? $ = p - 2 * (_ !== 0 || E !== 0 ? _ + E : B(c.left, c.right)) : x = f - 2 * (A !== 0 || C !== 0 ? A + C : B(c.top, c.bottom));
|
|
1336
1339
|
}
|
|
1337
1340
|
await s({
|
|
1338
1341
|
...t,
|
|
@@ -1349,47 +1352,47 @@ const Or = function(e) {
|
|
|
1349
1352
|
};
|
|
1350
1353
|
};
|
|
1351
1354
|
function ne(e) {
|
|
1352
|
-
return
|
|
1355
|
+
return jt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1353
1356
|
}
|
|
1354
|
-
function
|
|
1357
|
+
function W(e) {
|
|
1355
1358
|
var t;
|
|
1356
1359
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1357
1360
|
}
|
|
1358
1361
|
function K(e) {
|
|
1359
1362
|
var t;
|
|
1360
|
-
return (t = (
|
|
1363
|
+
return (t = (jt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1361
1364
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return e instanceof Node || e instanceof
|
|
1365
|
+
function jt(e) {
|
|
1366
|
+
return e instanceof Node || e instanceof W(e).Node;
|
|
1364
1367
|
}
|
|
1365
1368
|
function q(e) {
|
|
1366
|
-
return e instanceof Element || e instanceof
|
|
1369
|
+
return e instanceof Element || e instanceof W(e).Element;
|
|
1367
1370
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return e instanceof HTMLElement || e instanceof
|
|
1371
|
+
function U(e) {
|
|
1372
|
+
return e instanceof HTMLElement || e instanceof W(e).HTMLElement;
|
|
1370
1373
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
1374
|
+
function _t(e) {
|
|
1375
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof W(e).ShadowRoot;
|
|
1373
1376
|
}
|
|
1374
|
-
function
|
|
1377
|
+
function Ae(e) {
|
|
1375
1378
|
const {
|
|
1376
1379
|
overflow: t,
|
|
1377
1380
|
overflowX: n,
|
|
1378
1381
|
overflowY: o,
|
|
1379
1382
|
display: i
|
|
1380
|
-
} =
|
|
1383
|
+
} = j(e);
|
|
1381
1384
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
|
|
1382
1385
|
}
|
|
1383
1386
|
function Sr(e) {
|
|
1384
1387
|
return ["table", "td", "th"].includes(ne(e));
|
|
1385
1388
|
}
|
|
1386
1389
|
function nt(e) {
|
|
1387
|
-
const t = rt(), n =
|
|
1390
|
+
const t = rt(), n = j(e);
|
|
1388
1391
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
1389
1392
|
}
|
|
1390
1393
|
function Dr(e) {
|
|
1391
1394
|
let t = fe(e);
|
|
1392
|
-
for (;
|
|
1395
|
+
for (; U(t) && !ze(t); ) {
|
|
1393
1396
|
if (nt(t))
|
|
1394
1397
|
return t;
|
|
1395
1398
|
t = fe(t);
|
|
@@ -1399,13 +1402,13 @@ function Dr(e) {
|
|
|
1399
1402
|
function rt() {
|
|
1400
1403
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1401
1404
|
}
|
|
1402
|
-
function
|
|
1405
|
+
function ze(e) {
|
|
1403
1406
|
return ["html", "body", "#document"].includes(ne(e));
|
|
1404
1407
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return
|
|
1408
|
+
function j(e) {
|
|
1409
|
+
return W(e).getComputedStyle(e);
|
|
1407
1410
|
}
|
|
1408
|
-
function
|
|
1411
|
+
function We(e) {
|
|
1409
1412
|
return q(e) ? {
|
|
1410
1413
|
scrollLeft: e.scrollLeft,
|
|
1411
1414
|
scrollTop: e.scrollTop
|
|
@@ -1421,25 +1424,25 @@ function fe(e) {
|
|
|
1421
1424
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1422
1425
|
e.assignedSlot || // DOM Element detected.
|
|
1423
1426
|
e.parentNode || // ShadowRoot detected.
|
|
1424
|
-
|
|
1427
|
+
_t(e) && e.host || // Fallback.
|
|
1425
1428
|
K(e)
|
|
1426
1429
|
);
|
|
1427
|
-
return
|
|
1430
|
+
return _t(t) ? t.host : t;
|
|
1428
1431
|
}
|
|
1429
|
-
function
|
|
1432
|
+
function Ut(e) {
|
|
1430
1433
|
const t = fe(e);
|
|
1431
|
-
return
|
|
1434
|
+
return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(t) && Ae(t) ? t : Ut(t);
|
|
1432
1435
|
}
|
|
1433
|
-
function
|
|
1436
|
+
function _e(e, t) {
|
|
1434
1437
|
var n;
|
|
1435
1438
|
t === void 0 && (t = []);
|
|
1436
|
-
const o =
|
|
1437
|
-
return i ? t.concat(r, r.visualViewport || [],
|
|
1439
|
+
const o = Ut(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = W(o);
|
|
1440
|
+
return i ? t.concat(r, r.visualViewport || [], Ae(o) ? o : [], r.frameElement ? _e(r.frameElement) : []) : t.concat(o, _e(o));
|
|
1438
1441
|
}
|
|
1439
1442
|
function Gt(e) {
|
|
1440
|
-
const t =
|
|
1443
|
+
const t = j(e);
|
|
1441
1444
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1442
|
-
const i =
|
|
1445
|
+
const i = U(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Fe(n) !== r || Fe(o) !== s;
|
|
1443
1446
|
return a && (n = r, o = s), {
|
|
1444
1447
|
width: n,
|
|
1445
1448
|
height: o,
|
|
@@ -1451,14 +1454,14 @@ function ot(e) {
|
|
|
1451
1454
|
}
|
|
1452
1455
|
function ue(e) {
|
|
1453
1456
|
const t = ot(e);
|
|
1454
|
-
if (!
|
|
1457
|
+
if (!U(t))
|
|
1455
1458
|
return te(1);
|
|
1456
1459
|
const n = t.getBoundingClientRect(), {
|
|
1457
1460
|
width: o,
|
|
1458
1461
|
height: i,
|
|
1459
1462
|
$: r
|
|
1460
1463
|
} = Gt(t);
|
|
1461
|
-
let s = (r ?
|
|
1464
|
+
let s = (r ? Fe(n.width) : n.width) / o, a = (r ? Fe(n.height) : n.height) / i;
|
|
1462
1465
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
1463
1466
|
x: s,
|
|
1464
1467
|
y: a
|
|
@@ -1466,14 +1469,14 @@ function ue(e) {
|
|
|
1466
1469
|
}
|
|
1467
1470
|
const Nr = /* @__PURE__ */ te(0);
|
|
1468
1471
|
function Yt(e) {
|
|
1469
|
-
const t =
|
|
1472
|
+
const t = W(e);
|
|
1470
1473
|
return !rt() || !t.visualViewport ? Nr : {
|
|
1471
1474
|
x: t.visualViewport.offsetLeft,
|
|
1472
1475
|
y: t.visualViewport.offsetTop
|
|
1473
1476
|
};
|
|
1474
1477
|
}
|
|
1475
1478
|
function Lr(e, t, n) {
|
|
1476
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1479
|
+
return t === void 0 && (t = !1), !n || t && n !== W(e) ? !1 : t;
|
|
1477
1480
|
}
|
|
1478
1481
|
function ae(e, t, n, o) {
|
|
1479
1482
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -1483,14 +1486,14 @@ function ae(e, t, n, o) {
|
|
|
1483
1486
|
const a = Lr(r, n, o) ? Yt(r) : te(0);
|
|
1484
1487
|
let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, d = i.width / s.x, u = i.height / s.y;
|
|
1485
1488
|
if (r) {
|
|
1486
|
-
const p =
|
|
1489
|
+
const p = W(r), f = o && q(o) ? W(o) : o;
|
|
1487
1490
|
let h = p.frameElement;
|
|
1488
1491
|
for (; h && o && f !== p; ) {
|
|
1489
|
-
const g = ue(h), m = h.getBoundingClientRect(), v =
|
|
1490
|
-
c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h =
|
|
1492
|
+
const g = ue(h), m = h.getBoundingClientRect(), v = j(h), y = m.left + (h.clientLeft + parseFloat(v.paddingLeft)) * g.x, x = m.top + (h.clientTop + parseFloat(v.paddingTop)) * g.y;
|
|
1493
|
+
c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h = W(h).frameElement;
|
|
1491
1494
|
}
|
|
1492
1495
|
}
|
|
1493
|
-
return
|
|
1496
|
+
return ke({
|
|
1494
1497
|
width: d,
|
|
1495
1498
|
height: u,
|
|
1496
1499
|
x: c,
|
|
@@ -1503,7 +1506,7 @@ function Mr(e) {
|
|
|
1503
1506
|
offsetParent: n,
|
|
1504
1507
|
strategy: o
|
|
1505
1508
|
} = e;
|
|
1506
|
-
const i =
|
|
1509
|
+
const i = U(n), r = K(n);
|
|
1507
1510
|
if (n === r)
|
|
1508
1511
|
return t;
|
|
1509
1512
|
let s = {
|
|
@@ -1511,7 +1514,7 @@ function Mr(e) {
|
|
|
1511
1514
|
scrollTop: 0
|
|
1512
1515
|
}, a = te(1);
|
|
1513
1516
|
const c = te(0);
|
|
1514
|
-
if ((i || !i && o !== "fixed") && ((ne(n) !== "body" ||
|
|
1517
|
+
if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || Ae(r)) && (s = We(n)), U(n))) {
|
|
1515
1518
|
const l = ae(n);
|
|
1516
1519
|
a = ue(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
|
|
1517
1520
|
}
|
|
@@ -1526,21 +1529,21 @@ function Ir(e) {
|
|
|
1526
1529
|
return Array.from(e.getClientRects());
|
|
1527
1530
|
}
|
|
1528
1531
|
function Xt(e) {
|
|
1529
|
-
return ae(K(e)).left +
|
|
1532
|
+
return ae(K(e)).left + We(e).scrollLeft;
|
|
1530
1533
|
}
|
|
1531
|
-
function
|
|
1532
|
-
const t = K(e), n =
|
|
1534
|
+
function Fr(e) {
|
|
1535
|
+
const t = K(e), n = We(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1533
1536
|
let s = -n.scrollLeft + Xt(e);
|
|
1534
1537
|
const a = -n.scrollTop;
|
|
1535
|
-
return
|
|
1538
|
+
return j(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
|
|
1536
1539
|
width: i,
|
|
1537
1540
|
height: r,
|
|
1538
1541
|
x: s,
|
|
1539
1542
|
y: a
|
|
1540
1543
|
};
|
|
1541
1544
|
}
|
|
1542
|
-
function
|
|
1543
|
-
const n =
|
|
1545
|
+
function Hr(e, t) {
|
|
1546
|
+
const n = W(e), o = K(e), i = n.visualViewport;
|
|
1544
1547
|
let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
|
|
1545
1548
|
if (i) {
|
|
1546
1549
|
r = i.width, s = i.height;
|
|
@@ -1554,8 +1557,8 @@ function Fr(e, t) {
|
|
|
1554
1557
|
y: c
|
|
1555
1558
|
};
|
|
1556
1559
|
}
|
|
1557
|
-
function
|
|
1558
|
-
const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r =
|
|
1560
|
+
function kr(e, t) {
|
|
1561
|
+
const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = U(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
|
|
1559
1562
|
return {
|
|
1560
1563
|
width: s,
|
|
1561
1564
|
height: a,
|
|
@@ -1563,14 +1566,14 @@ function Hr(e, t) {
|
|
|
1563
1566
|
y: l
|
|
1564
1567
|
};
|
|
1565
1568
|
}
|
|
1566
|
-
function
|
|
1569
|
+
function wt(e, t, n) {
|
|
1567
1570
|
let o;
|
|
1568
1571
|
if (t === "viewport")
|
|
1569
|
-
o =
|
|
1572
|
+
o = Hr(e, n);
|
|
1570
1573
|
else if (t === "document")
|
|
1571
|
-
o =
|
|
1574
|
+
o = Fr(K(e));
|
|
1572
1575
|
else if (q(t))
|
|
1573
|
-
o =
|
|
1576
|
+
o = kr(t, n);
|
|
1574
1577
|
else {
|
|
1575
1578
|
const i = Yt(e);
|
|
1576
1579
|
o = {
|
|
@@ -1579,26 +1582,26 @@ function _t(e, t, n) {
|
|
|
1579
1582
|
y: t.y - i.y
|
|
1580
1583
|
};
|
|
1581
1584
|
}
|
|
1582
|
-
return
|
|
1585
|
+
return ke(o);
|
|
1583
1586
|
}
|
|
1584
1587
|
function qt(e, t) {
|
|
1585
1588
|
const n = fe(e);
|
|
1586
|
-
return n === t || !q(n) ||
|
|
1589
|
+
return n === t || !q(n) || ze(n) ? !1 : j(n).position === "fixed" || qt(n, t);
|
|
1587
1590
|
}
|
|
1588
1591
|
function Br(e, t) {
|
|
1589
1592
|
const n = t.get(e);
|
|
1590
1593
|
if (n)
|
|
1591
1594
|
return n;
|
|
1592
|
-
let o =
|
|
1593
|
-
const r =
|
|
1595
|
+
let o = _e(e).filter((a) => q(a) && ne(a) !== "body"), i = null;
|
|
1596
|
+
const r = j(e).position === "fixed";
|
|
1594
1597
|
let s = r ? fe(e) : e;
|
|
1595
|
-
for (; q(s) && !
|
|
1596
|
-
const a =
|
|
1597
|
-
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) ||
|
|
1598
|
+
for (; q(s) && !ze(s); ) {
|
|
1599
|
+
const a = j(s), c = nt(s);
|
|
1600
|
+
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ae(s) && !c && qt(e, s)) ? o = o.filter((d) => d !== s) : i = a, s = fe(s);
|
|
1598
1601
|
}
|
|
1599
1602
|
return t.set(e, o), o;
|
|
1600
1603
|
}
|
|
1601
|
-
function
|
|
1604
|
+
function zr(e) {
|
|
1602
1605
|
let {
|
|
1603
1606
|
element: t,
|
|
1604
1607
|
boundary: n,
|
|
@@ -1606,9 +1609,9 @@ function Wr(e) {
|
|
|
1606
1609
|
strategy: i
|
|
1607
1610
|
} = e;
|
|
1608
1611
|
const s = [...n === "clippingAncestors" ? Br(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, d) => {
|
|
1609
|
-
const u =
|
|
1612
|
+
const u = wt(t, d, i);
|
|
1610
1613
|
return l.top = B(u.top, l.top), l.right = ee(u.right, l.right), l.bottom = ee(u.bottom, l.bottom), l.left = B(u.left, l.left), l;
|
|
1611
|
-
},
|
|
1614
|
+
}, wt(t, a, i));
|
|
1612
1615
|
return {
|
|
1613
1616
|
width: c.right - c.left,
|
|
1614
1617
|
height: c.bottom - c.top,
|
|
@@ -1616,18 +1619,18 @@ function Wr(e) {
|
|
|
1616
1619
|
y: c.top
|
|
1617
1620
|
};
|
|
1618
1621
|
}
|
|
1619
|
-
function
|
|
1622
|
+
function Wr(e) {
|
|
1620
1623
|
return Gt(e);
|
|
1621
1624
|
}
|
|
1622
|
-
function
|
|
1623
|
-
const o =
|
|
1625
|
+
function Vr(e, t, n) {
|
|
1626
|
+
const o = U(t), i = K(t), r = n === "fixed", s = ae(e, !0, r, t);
|
|
1624
1627
|
let a = {
|
|
1625
1628
|
scrollLeft: 0,
|
|
1626
1629
|
scrollTop: 0
|
|
1627
1630
|
};
|
|
1628
1631
|
const c = te(0);
|
|
1629
1632
|
if (o || !o && !r)
|
|
1630
|
-
if ((ne(t) !== "body" ||
|
|
1633
|
+
if ((ne(t) !== "body" || Ae(i)) && (a = We(t)), o) {
|
|
1631
1634
|
const l = ae(t, !0, r, t);
|
|
1632
1635
|
c.x = l.x + t.clientLeft, c.y = l.y + t.clientTop;
|
|
1633
1636
|
} else
|
|
@@ -1640,18 +1643,18 @@ function jr(e, t, n) {
|
|
|
1640
1643
|
};
|
|
1641
1644
|
}
|
|
1642
1645
|
function At(e, t) {
|
|
1643
|
-
return !
|
|
1646
|
+
return !U(e) || j(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1644
1647
|
}
|
|
1645
1648
|
function Kt(e, t) {
|
|
1646
|
-
const n =
|
|
1647
|
-
if (!
|
|
1649
|
+
const n = W(e);
|
|
1650
|
+
if (!U(e))
|
|
1648
1651
|
return n;
|
|
1649
1652
|
let o = At(e, t);
|
|
1650
|
-
for (; o && Sr(o) &&
|
|
1653
|
+
for (; o && Sr(o) && j(o).position === "static"; )
|
|
1651
1654
|
o = At(o, t);
|
|
1652
|
-
return o && (ne(o) === "html" || ne(o) === "body" &&
|
|
1655
|
+
return o && (ne(o) === "html" || ne(o) === "body" && j(o).position === "static" && !nt(o)) ? n : o || Dr(e) || n;
|
|
1653
1656
|
}
|
|
1654
|
-
const
|
|
1657
|
+
const jr = async function(e) {
|
|
1655
1658
|
let {
|
|
1656
1659
|
reference: t,
|
|
1657
1660
|
floating: n,
|
|
@@ -1659,7 +1662,7 @@ const Ur = async function(e) {
|
|
|
1659
1662
|
} = e;
|
|
1660
1663
|
const i = this.getOffsetParent || Kt, r = this.getDimensions;
|
|
1661
1664
|
return {
|
|
1662
|
-
reference:
|
|
1665
|
+
reference: Vr(t, await i(n), o),
|
|
1663
1666
|
floating: {
|
|
1664
1667
|
x: 0,
|
|
1665
1668
|
y: 0,
|
|
@@ -1667,20 +1670,20 @@ const Ur = async function(e) {
|
|
|
1667
1670
|
}
|
|
1668
1671
|
};
|
|
1669
1672
|
};
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1673
|
+
function Ur(e) {
|
|
1674
|
+
return j(e).direction === "rtl";
|
|
1672
1675
|
}
|
|
1673
1676
|
const Gr = {
|
|
1674
1677
|
convertOffsetParentRelativeRectToViewportRelativeRect: Mr,
|
|
1675
1678
|
getDocumentElement: K,
|
|
1676
|
-
getClippingRect:
|
|
1679
|
+
getClippingRect: zr,
|
|
1677
1680
|
getOffsetParent: Kt,
|
|
1678
|
-
getElementRects:
|
|
1681
|
+
getElementRects: jr,
|
|
1679
1682
|
getClientRects: Ir,
|
|
1680
|
-
getDimensions:
|
|
1683
|
+
getDimensions: Wr,
|
|
1681
1684
|
getScale: ue,
|
|
1682
1685
|
isElement: q,
|
|
1683
|
-
isRTL:
|
|
1686
|
+
isRTL: Ur
|
|
1684
1687
|
};
|
|
1685
1688
|
function Yr(e, t) {
|
|
1686
1689
|
let n = null, o;
|
|
@@ -1704,11 +1707,11 @@ function Yr(e, t) {
|
|
|
1704
1707
|
};
|
|
1705
1708
|
let x = !0;
|
|
1706
1709
|
function $(b) {
|
|
1707
|
-
const
|
|
1708
|
-
if (
|
|
1710
|
+
const _ = b[0].intersectionRatio;
|
|
1711
|
+
if (_ !== c) {
|
|
1709
1712
|
if (!x)
|
|
1710
1713
|
return s();
|
|
1711
|
-
|
|
1714
|
+
_ ? s(!1, _) : o = setTimeout(() => {
|
|
1712
1715
|
s(!1, 1e-7);
|
|
1713
1716
|
}, 100);
|
|
1714
1717
|
}
|
|
@@ -1735,7 +1738,7 @@ function Xr(e, t, n, o) {
|
|
|
1735
1738
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1736
1739
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
1737
1740
|
animationFrame: c = !1
|
|
1738
|
-
} = o, l = ot(e), d = i || r ? [...l ?
|
|
1741
|
+
} = o, l = ot(e), d = i || r ? [...l ? _e(l) : [], ..._e(t)] : [];
|
|
1739
1742
|
d.forEach((v) => {
|
|
1740
1743
|
i && v.addEventListener("scroll", n, {
|
|
1741
1744
|
passive: !0
|
|
@@ -1769,7 +1772,7 @@ const qr = (e, t, n) => {
|
|
|
1769
1772
|
...i.platform,
|
|
1770
1773
|
_c: o
|
|
1771
1774
|
};
|
|
1772
|
-
return
|
|
1775
|
+
return wr(e, t, {
|
|
1773
1776
|
...i,
|
|
1774
1777
|
platform: r
|
|
1775
1778
|
});
|
|
@@ -1864,52 +1867,52 @@ function Zr(e) {
|
|
|
1864
1867
|
}), [p, f] = N.useState(o);
|
|
1865
1868
|
Be(p, o) || f(o);
|
|
1866
1869
|
const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((P) => {
|
|
1867
|
-
P !=
|
|
1870
|
+
P != _.current && (_.current = P, g(P));
|
|
1868
1871
|
}, [g]), x = N.useCallback((P) => {
|
|
1869
1872
|
P !== E.current && (E.current = P, v(P));
|
|
1870
|
-
}, [v]), $ = r || h, b = s || m,
|
|
1871
|
-
if (!
|
|
1873
|
+
}, [v]), $ = r || h, b = s || m, _ = N.useRef(null), E = N.useRef(null), A = N.useRef(d), C = Et(c), F = Et(i), T = N.useCallback(() => {
|
|
1874
|
+
if (!_.current || !E.current)
|
|
1872
1875
|
return;
|
|
1873
1876
|
const P = {
|
|
1874
1877
|
placement: t,
|
|
1875
1878
|
strategy: n,
|
|
1876
1879
|
middleware: p
|
|
1877
1880
|
};
|
|
1878
|
-
|
|
1881
|
+
F.current && (P.platform = F.current), qr(_.current, E.current, P).then((Z) => {
|
|
1879
1882
|
const J = {
|
|
1880
1883
|
...Z,
|
|
1881
1884
|
isPositioned: !0
|
|
1882
1885
|
};
|
|
1883
|
-
|
|
1886
|
+
k.current && !Be(A.current, J) && (A.current = J, wn.flushSync(() => {
|
|
1884
1887
|
u(J);
|
|
1885
1888
|
}));
|
|
1886
1889
|
});
|
|
1887
|
-
}, [p, t, n,
|
|
1890
|
+
}, [p, t, n, F]);
|
|
1888
1891
|
Me(() => {
|
|
1889
1892
|
l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, u((P) => ({
|
|
1890
1893
|
...P,
|
|
1891
1894
|
isPositioned: !1
|
|
1892
1895
|
})));
|
|
1893
1896
|
}, [l]);
|
|
1894
|
-
const
|
|
1895
|
-
Me(() => (
|
|
1896
|
-
|
|
1897
|
+
const k = N.useRef(!1);
|
|
1898
|
+
Me(() => (k.current = !0, () => {
|
|
1899
|
+
k.current = !1;
|
|
1897
1900
|
}), []), Me(() => {
|
|
1898
|
-
if ($ && (
|
|
1901
|
+
if ($ && (_.current = $), b && (E.current = b), $ && b) {
|
|
1899
1902
|
if (C.current)
|
|
1900
1903
|
return C.current($, b, T);
|
|
1901
1904
|
T();
|
|
1902
1905
|
}
|
|
1903
1906
|
}, [$, b, T, C]);
|
|
1904
1907
|
const D = N.useMemo(() => ({
|
|
1905
|
-
reference:
|
|
1908
|
+
reference: _,
|
|
1906
1909
|
floating: E,
|
|
1907
1910
|
setReference: y,
|
|
1908
1911
|
setFloating: x
|
|
1909
1912
|
}), [y, x]), O = N.useMemo(() => ({
|
|
1910
1913
|
reference: $,
|
|
1911
1914
|
floating: b
|
|
1912
|
-
}), [$, b]),
|
|
1915
|
+
}), [$, b]), V = N.useMemo(() => {
|
|
1913
1916
|
const P = {
|
|
1914
1917
|
position: n,
|
|
1915
1918
|
left: 0,
|
|
@@ -1935,23 +1938,23 @@ function Zr(e) {
|
|
|
1935
1938
|
update: T,
|
|
1936
1939
|
refs: D,
|
|
1937
1940
|
elements: O,
|
|
1938
|
-
floatingStyles:
|
|
1939
|
-
}), [d, T, D, O,
|
|
1941
|
+
floatingStyles: V
|
|
1942
|
+
}), [d, T, D, O, V]);
|
|
1940
1943
|
}
|
|
1941
1944
|
const Jr = /* @__PURE__ */ M((e, t) => {
|
|
1942
1945
|
const { children: n, width: o = 10, height: i = 5, ...r } = e;
|
|
1943
|
-
return /* @__PURE__ */
|
|
1946
|
+
return /* @__PURE__ */ w(ce.svg, S({}, r, {
|
|
1944
1947
|
ref: t,
|
|
1945
1948
|
width: o,
|
|
1946
1949
|
height: i,
|
|
1947
1950
|
viewBox: "0 0 30 10",
|
|
1948
1951
|
preserveAspectRatio: "none"
|
|
1949
|
-
}), e.asChild ? n : /* @__PURE__ */
|
|
1952
|
+
}), e.asChild ? n : /* @__PURE__ */ w("polygon", {
|
|
1950
1953
|
points: "0,0 30,0 15,10"
|
|
1951
1954
|
}));
|
|
1952
1955
|
}), Qr = Jr;
|
|
1953
1956
|
function eo(e) {
|
|
1954
|
-
const [t, n] =
|
|
1957
|
+
const [t, n] = z(void 0);
|
|
1955
1958
|
return de(() => {
|
|
1956
1959
|
if (e) {
|
|
1957
1960
|
n({
|
|
@@ -1982,9 +1985,9 @@ function eo(e) {
|
|
|
1982
1985
|
e
|
|
1983
1986
|
]), t;
|
|
1984
1987
|
}
|
|
1985
|
-
const Jt = "Popper", [Qt, en] =
|
|
1986
|
-
const { __scopePopper: t, children: n } = e, [o, i] =
|
|
1987
|
-
return /* @__PURE__ */
|
|
1988
|
+
const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
1989
|
+
const { __scopePopper: t, children: n } = e, [o, i] = z(null);
|
|
1990
|
+
return /* @__PURE__ */ w(to, {
|
|
1988
1991
|
scope: t,
|
|
1989
1992
|
anchor: o,
|
|
1990
1993
|
onAnchorChange: i
|
|
@@ -1993,15 +1996,15 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
1993
1996
|
const { __scopePopper: n, virtualRef: o, ...i } = e, r = tn(ro, n), s = L(null), a = pe(t, s);
|
|
1994
1997
|
return R(() => {
|
|
1995
1998
|
r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
1996
|
-
}), o ? null : /* @__PURE__ */
|
|
1999
|
+
}), o ? null : /* @__PURE__ */ w(ce.div, S({}, i, {
|
|
1997
2000
|
ref: a
|
|
1998
2001
|
}));
|
|
1999
2002
|
}), nn = "PopperContent", [io, so] = Qt(nn), ao = /* @__PURE__ */ M((e, t) => {
|
|
2000
2003
|
var n, o, i, r, s, a, c, l;
|
|
2001
|
-
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced:
|
|
2004
|
+
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: _, ...E } = e, A = tn(nn, d), [C, F] = z(null), T = pe(
|
|
2002
2005
|
t,
|
|
2003
|
-
(ve) =>
|
|
2004
|
-
), [
|
|
2006
|
+
(ve) => F(ve)
|
|
2007
|
+
), [k, D] = z(null), O = eo(k), V = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, P = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, Z = u + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
|
|
2005
2008
|
top: 0,
|
|
2006
2009
|
right: 0,
|
|
2007
2010
|
bottom: 0,
|
|
@@ -2009,12 +2012,12 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2009
2012
|
...y
|
|
2010
2013
|
}, ct = Array.isArray(v) ? v : [
|
|
2011
2014
|
v
|
|
2012
|
-
], cn = ct.length > 0,
|
|
2015
|
+
], cn = ct.length > 0, Ee = {
|
|
2013
2016
|
padding: J,
|
|
2014
2017
|
boundary: ct.filter(fo),
|
|
2015
2018
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2016
2019
|
altBoundary: cn
|
|
2017
|
-
}, { refs: ln, floatingStyles: lt, placement: un, isPositioned:
|
|
2020
|
+
}, { refs: ln, floatingStyles: lt, placement: un, isPositioned: Oe, middlewareData: le } = Zr({
|
|
2018
2021
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2019
2022
|
strategy: "fixed",
|
|
2020
2023
|
placement: Z,
|
|
@@ -2033,49 +2036,49 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2033
2036
|
mainAxis: !0,
|
|
2034
2037
|
crossAxis: !1,
|
|
2035
2038
|
limiter: x === "partial" ? Cr() : void 0,
|
|
2036
|
-
...
|
|
2039
|
+
...Ee
|
|
2037
2040
|
}),
|
|
2038
2041
|
m && Ar({
|
|
2039
|
-
...
|
|
2042
|
+
...Ee
|
|
2040
2043
|
}),
|
|
2041
2044
|
Rr({
|
|
2042
|
-
...
|
|
2045
|
+
...Ee,
|
|
2043
2046
|
apply: ({ elements: ve, rects: dt, availableWidth: vn, availableHeight: yn }) => {
|
|
2044
|
-
const { width: bn, height: xn } = dt.reference,
|
|
2045
|
-
|
|
2047
|
+
const { width: bn, height: xn } = dt.reference, Ce = ve.floating.style;
|
|
2048
|
+
Ce.setProperty("--radix-popper-available-width", `${vn}px`), Ce.setProperty("--radix-popper-available-height", `${yn}px`), Ce.setProperty("--radix-popper-anchor-width", `${bn}px`), Ce.setProperty("--radix-popper-anchor-height", `${xn}px`);
|
|
2046
2049
|
}
|
|
2047
2050
|
}),
|
|
2048
|
-
|
|
2049
|
-
element:
|
|
2051
|
+
k && Kr({
|
|
2052
|
+
element: k,
|
|
2050
2053
|
padding: g
|
|
2051
2054
|
}),
|
|
2052
2055
|
po({
|
|
2053
|
-
arrowWidth:
|
|
2056
|
+
arrowWidth: V,
|
|
2054
2057
|
arrowHeight: P
|
|
2055
2058
|
}),
|
|
2056
2059
|
$ && Pr({
|
|
2057
2060
|
strategy: "referenceHidden",
|
|
2058
|
-
...
|
|
2061
|
+
...Ee
|
|
2059
2062
|
})
|
|
2060
2063
|
]
|
|
2061
|
-
}), [ut, dn] = rn(un),
|
|
2064
|
+
}), [ut, dn] = rn(un), Te = he(_);
|
|
2062
2065
|
de(() => {
|
|
2063
|
-
|
|
2066
|
+
Oe && (Te == null || Te());
|
|
2064
2067
|
}, [
|
|
2065
|
-
|
|
2066
|
-
|
|
2068
|
+
Oe,
|
|
2069
|
+
Te
|
|
2067
2070
|
]);
|
|
2068
|
-
const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] =
|
|
2071
|
+
const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] = z();
|
|
2069
2072
|
return de(() => {
|
|
2070
2073
|
C && mn(window.getComputedStyle(C).zIndex);
|
|
2071
2074
|
}, [
|
|
2072
2075
|
C
|
|
2073
|
-
]), /* @__PURE__ */
|
|
2076
|
+
]), /* @__PURE__ */ w("div", {
|
|
2074
2077
|
ref: ln.setFloating,
|
|
2075
2078
|
"data-radix-popper-content-wrapper": "",
|
|
2076
2079
|
style: {
|
|
2077
2080
|
...lt,
|
|
2078
|
-
transform:
|
|
2081
|
+
transform: Oe ? lt.transform : "translate(0, -200%)",
|
|
2079
2082
|
// keep off the page when measuring
|
|
2080
2083
|
minWidth: "max-content",
|
|
2081
2084
|
zIndex: gn,
|
|
@@ -2085,14 +2088,14 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2085
2088
|
].join(" ")
|
|
2086
2089
|
},
|
|
2087
2090
|
dir: e.dir
|
|
2088
|
-
}, /* @__PURE__ */
|
|
2091
|
+
}, /* @__PURE__ */ w(io, {
|
|
2089
2092
|
scope: d,
|
|
2090
2093
|
placedSide: ut,
|
|
2091
2094
|
onArrowChange: D,
|
|
2092
2095
|
arrowX: fn,
|
|
2093
2096
|
arrowY: pn,
|
|
2094
2097
|
shouldHideArrow: hn
|
|
2095
|
-
}, /* @__PURE__ */
|
|
2098
|
+
}, /* @__PURE__ */ w(ce.div, S({
|
|
2096
2099
|
"data-side": ut,
|
|
2097
2100
|
"data-align": dn
|
|
2098
2101
|
}, E, {
|
|
@@ -2101,7 +2104,7 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2101
2104
|
...E.style,
|
|
2102
2105
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2103
2106
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2104
|
-
animation:
|
|
2107
|
+
animation: Oe ? void 0 : "none",
|
|
2105
2108
|
// hide the content if using the hide middleware and should be hidden
|
|
2106
2109
|
opacity: (l = le.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
|
|
2107
2110
|
}
|
|
@@ -2117,7 +2120,7 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2117
2120
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2118
2121
|
// doesn't report size as we'd expect on SVG elements.
|
|
2119
2122
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2120
|
-
/* @__PURE__ */
|
|
2123
|
+
/* @__PURE__ */ w("span", {
|
|
2121
2124
|
ref: r.onArrowChange,
|
|
2122
2125
|
style: {
|
|
2123
2126
|
position: "absolute",
|
|
@@ -2138,7 +2141,7 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2138
2141
|
}[r.placedSide],
|
|
2139
2142
|
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
2140
2143
|
}
|
|
2141
|
-
}, /* @__PURE__ */
|
|
2144
|
+
}, /* @__PURE__ */ w(Qr, S({}, i, {
|
|
2142
2145
|
ref: n,
|
|
2143
2146
|
style: {
|
|
2144
2147
|
...i.style,
|
|
@@ -2180,12 +2183,12 @@ function rn(e) {
|
|
|
2180
2183
|
const ho = no, go = oo, mo = ao, vo = uo, yo = /* @__PURE__ */ M((e, t) => {
|
|
2181
2184
|
var n;
|
|
2182
2185
|
const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
|
|
2183
|
-
return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */
|
|
2186
|
+
return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */ w(ce.div, S({}, i, {
|
|
2184
2187
|
ref: t
|
|
2185
2188
|
})), o) : null;
|
|
2186
2189
|
});
|
|
2187
2190
|
function bo(e, t) {
|
|
2188
|
-
return
|
|
2191
|
+
return _n((n, o) => {
|
|
2189
2192
|
const i = t[n][o];
|
|
2190
2193
|
return i ?? n;
|
|
2191
2194
|
}, e);
|
|
@@ -2200,7 +2203,7 @@ const it = (e) => {
|
|
|
2200
2203
|
};
|
|
2201
2204
|
it.displayName = "Presence";
|
|
2202
2205
|
function xo(e) {
|
|
2203
|
-
const [t, n] =
|
|
2206
|
+
const [t, n] = z(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = bo(s, {
|
|
2204
2207
|
mounted: {
|
|
2205
2208
|
UNMOUNT: "unmounted",
|
|
2206
2209
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2250,7 +2253,7 @@ function xo(e) {
|
|
|
2250
2253
|
"mounted",
|
|
2251
2254
|
"unmountSuspended"
|
|
2252
2255
|
].includes(a),
|
|
2253
|
-
ref:
|
|
2256
|
+
ref: H((l) => {
|
|
2254
2257
|
l && (o.current = getComputedStyle(l)), n(l);
|
|
2255
2258
|
}, [])
|
|
2256
2259
|
};
|
|
@@ -2260,10 +2263,10 @@ function Ne(e) {
|
|
|
2260
2263
|
}
|
|
2261
2264
|
function $o({ prop: e, defaultProp: t, onChange: n = () => {
|
|
2262
2265
|
} }) {
|
|
2263
|
-
const [o, i] =
|
|
2266
|
+
const [o, i] = _o({
|
|
2264
2267
|
defaultProp: t,
|
|
2265
2268
|
onChange: n
|
|
2266
|
-
}), r = e !== void 0, s = r ? e : o, a = he(n), c =
|
|
2269
|
+
}), r = e !== void 0, s = r ? e : o, a = he(n), c = H((l) => {
|
|
2267
2270
|
if (r) {
|
|
2268
2271
|
const u = typeof l == "function" ? l(e) : l;
|
|
2269
2272
|
u !== e && a(u);
|
|
@@ -2280,8 +2283,8 @@ function $o({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2280
2283
|
c
|
|
2281
2284
|
];
|
|
2282
2285
|
}
|
|
2283
|
-
function
|
|
2284
|
-
const n =
|
|
2286
|
+
function _o({ defaultProp: e, onChange: t }) {
|
|
2287
|
+
const n = z(e), [o] = n, i = L(o), r = he(t);
|
|
2285
2288
|
return R(() => {
|
|
2286
2289
|
i.current !== o && (r(o), i.current = o);
|
|
2287
2290
|
}, [
|
|
@@ -2290,7 +2293,7 @@ function wo({ defaultProp: e, onChange: t }) {
|
|
|
2290
2293
|
r
|
|
2291
2294
|
]), n;
|
|
2292
2295
|
}
|
|
2293
|
-
const
|
|
2296
|
+
const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
2294
2297
|
ref: t,
|
|
2295
2298
|
style: {
|
|
2296
2299
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -2306,21 +2309,21 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2306
2309
|
wordWrap: "normal",
|
|
2307
2310
|
...e.style
|
|
2308
2311
|
}
|
|
2309
|
-
}))), Ao =
|
|
2312
|
+
}))), Ao = wo, [Ve, hi] = kt("Tooltip", [
|
|
2310
2313
|
en
|
|
2311
|
-
]),
|
|
2312
|
-
const { __scopeTooltip: t, delayDuration: n = Eo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] =
|
|
2314
|
+
]), je = en(), Po = "TooltipProvider", Eo = 700, Ze = "tooltip.open", [Oo, st] = Ve(Po), To = (e) => {
|
|
2315
|
+
const { __scopeTooltip: t, delayDuration: n = Eo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = z(!0), c = L(!1), l = L(0);
|
|
2313
2316
|
return R(() => {
|
|
2314
2317
|
const d = l.current;
|
|
2315
2318
|
return () => window.clearTimeout(d);
|
|
2316
|
-
}, []), /* @__PURE__ */
|
|
2319
|
+
}, []), /* @__PURE__ */ w(Oo, {
|
|
2317
2320
|
scope: t,
|
|
2318
2321
|
isOpenDelayed: s,
|
|
2319
2322
|
delayDuration: n,
|
|
2320
|
-
onOpen:
|
|
2323
|
+
onOpen: H(() => {
|
|
2321
2324
|
window.clearTimeout(l.current), a(!1);
|
|
2322
2325
|
}, []),
|
|
2323
|
-
onClose:
|
|
2326
|
+
onClose: H(() => {
|
|
2324
2327
|
window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
2325
2328
|
() => a(!0),
|
|
2326
2329
|
o
|
|
@@ -2329,29 +2332,29 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2329
2332
|
o
|
|
2330
2333
|
]),
|
|
2331
2334
|
isPointerInTransitRef: c,
|
|
2332
|
-
onPointerInTransitChange:
|
|
2335
|
+
onPointerInTransitChange: H((d) => {
|
|
2333
2336
|
c.current = d;
|
|
2334
2337
|
}, []),
|
|
2335
2338
|
disableHoverableContent: i
|
|
2336
2339
|
}, r);
|
|
2337
|
-
}, at = "Tooltip", [Co,
|
|
2338
|
-
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l =
|
|
2340
|
+
}, at = "Tooltip", [Co, Pe] = Ve(at), Ro = (e) => {
|
|
2341
|
+
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l = je(t), [d, u] = z(null), p = hr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = $o({
|
|
2339
2342
|
prop: o,
|
|
2340
2343
|
defaultProp: i,
|
|
2341
2344
|
onChange: (E) => {
|
|
2342
2345
|
E ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ze))) : c.onClose(), r == null || r(E);
|
|
2343
2346
|
}
|
|
2344
|
-
}), x =
|
|
2347
|
+
}), x = xe(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [
|
|
2345
2348
|
v
|
|
2346
|
-
]), $ =
|
|
2349
|
+
]), $ = H(() => {
|
|
2347
2350
|
window.clearTimeout(f.current), m.current = !1, y(!0);
|
|
2348
2351
|
}, [
|
|
2349
2352
|
y
|
|
2350
|
-
]), b =
|
|
2353
|
+
]), b = H(() => {
|
|
2351
2354
|
window.clearTimeout(f.current), y(!1);
|
|
2352
2355
|
}, [
|
|
2353
2356
|
y
|
|
2354
|
-
]),
|
|
2357
|
+
]), _ = H(() => {
|
|
2355
2358
|
window.clearTimeout(f.current), f.current = window.setTimeout(() => {
|
|
2356
2359
|
m.current = !0, y(!0);
|
|
2357
2360
|
}, g);
|
|
@@ -2359,21 +2362,21 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2359
2362
|
g,
|
|
2360
2363
|
y
|
|
2361
2364
|
]);
|
|
2362
|
-
return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */
|
|
2365
|
+
return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ w(ho, l, /* @__PURE__ */ w(Co, {
|
|
2363
2366
|
scope: t,
|
|
2364
2367
|
contentId: p,
|
|
2365
2368
|
open: v,
|
|
2366
2369
|
stateAttribute: x,
|
|
2367
2370
|
trigger: d,
|
|
2368
2371
|
onTriggerChange: u,
|
|
2369
|
-
onTriggerEnter:
|
|
2370
|
-
c.isOpenDelayed ?
|
|
2372
|
+
onTriggerEnter: H(() => {
|
|
2373
|
+
c.isOpenDelayed ? _() : $();
|
|
2371
2374
|
}, [
|
|
2372
2375
|
c.isOpenDelayed,
|
|
2373
|
-
|
|
2376
|
+
_,
|
|
2374
2377
|
$
|
|
2375
2378
|
]),
|
|
2376
|
-
onTriggerLeave:
|
|
2379
|
+
onTriggerLeave: H(() => {
|
|
2377
2380
|
h ? b() : window.clearTimeout(f.current);
|
|
2378
2381
|
}, [
|
|
2379
2382
|
b,
|
|
@@ -2384,15 +2387,15 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2384
2387
|
disableHoverableContent: h
|
|
2385
2388
|
}, n));
|
|
2386
2389
|
}, Ot = "TooltipTrigger", So = /* @__PURE__ */ M((e, t) => {
|
|
2387
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2390
|
+
const { __scopeTooltip: n, ...o } = e, i = Pe(Ot, n), r = st(Ot, n), s = je(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u = H(
|
|
2388
2391
|
() => l.current = !1,
|
|
2389
2392
|
[]
|
|
2390
2393
|
);
|
|
2391
2394
|
return R(() => () => document.removeEventListener("pointerup", u), [
|
|
2392
2395
|
u
|
|
2393
|
-
]), /* @__PURE__ */
|
|
2396
|
+
]), /* @__PURE__ */ w(go, S({
|
|
2394
2397
|
asChild: !0
|
|
2395
|
-
}, s), /* @__PURE__ */
|
|
2398
|
+
}, s), /* @__PURE__ */ w(ce.button, S({
|
|
2396
2399
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
2397
2400
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
2398
2401
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
@@ -2416,42 +2419,42 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2416
2419
|
onBlur: G(e.onBlur, i.onClose),
|
|
2417
2420
|
onClick: G(e.onClick, i.onClose)
|
|
2418
2421
|
})));
|
|
2419
|
-
}), on = "TooltipPortal", [Do, No] =
|
|
2422
|
+
}), on = "TooltipPortal", [Do, No] = Ve(on, {
|
|
2420
2423
|
forceMount: void 0
|
|
2421
2424
|
}), Lo = (e) => {
|
|
2422
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r =
|
|
2423
|
-
return /* @__PURE__ */
|
|
2425
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Pe(on, t);
|
|
2426
|
+
return /* @__PURE__ */ w(Do, {
|
|
2424
2427
|
scope: t,
|
|
2425
2428
|
forceMount: n
|
|
2426
|
-
}, /* @__PURE__ */
|
|
2429
|
+
}, /* @__PURE__ */ w(it, {
|
|
2427
2430
|
present: n || r.open
|
|
2428
|
-
}, /* @__PURE__ */
|
|
2431
|
+
}, /* @__PURE__ */ w(yo, {
|
|
2429
2432
|
asChild: !0,
|
|
2430
2433
|
container: i
|
|
2431
2434
|
}, o)));
|
|
2432
|
-
},
|
|
2433
|
-
const n = No(
|
|
2434
|
-
return /* @__PURE__ */
|
|
2435
|
+
}, we = "TooltipContent", Mo = /* @__PURE__ */ M((e, t) => {
|
|
2436
|
+
const n = No(we, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Pe(we, e.__scopeTooltip);
|
|
2437
|
+
return /* @__PURE__ */ w(it, {
|
|
2435
2438
|
present: o || s.open
|
|
2436
|
-
}, s.disableHoverableContent ? /* @__PURE__ */
|
|
2439
|
+
}, s.disableHoverableContent ? /* @__PURE__ */ w(sn, S({
|
|
2437
2440
|
side: i
|
|
2438
2441
|
}, r, {
|
|
2439
2442
|
ref: t
|
|
2440
|
-
})) : /* @__PURE__ */
|
|
2443
|
+
})) : /* @__PURE__ */ w(Io, S({
|
|
2441
2444
|
side: i
|
|
2442
2445
|
}, r, {
|
|
2443
2446
|
ref: t
|
|
2444
2447
|
})));
|
|
2445
2448
|
}), Io = /* @__PURE__ */ M((e, t) => {
|
|
2446
|
-
const n =
|
|
2449
|
+
const n = Pe(we, e.__scopeTooltip), o = st(we, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = z(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p = H(() => {
|
|
2447
2450
|
a(null), u(!1);
|
|
2448
2451
|
}, [
|
|
2449
2452
|
u
|
|
2450
|
-
]), f =
|
|
2453
|
+
]), f = H((h, g) => {
|
|
2451
2454
|
const m = h.currentTarget, v = {
|
|
2452
2455
|
x: h.clientX,
|
|
2453
2456
|
y: h.clientY
|
|
2454
|
-
}, y =
|
|
2457
|
+
}, y = zo(v, m.getBoundingClientRect()), x = Wo(v, y), $ = Vo(g.getBoundingClientRect()), b = Uo([
|
|
2455
2458
|
...x,
|
|
2456
2459
|
...$
|
|
2457
2460
|
]);
|
|
@@ -2479,7 +2482,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2479
2482
|
const m = g.target, v = {
|
|
2480
2483
|
x: g.clientX,
|
|
2481
2484
|
y: g.clientY
|
|
2482
|
-
}, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !
|
|
2485
|
+
}, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !jo(v, s);
|
|
2483
2486
|
y ? p() : x && (p(), l());
|
|
2484
2487
|
};
|
|
2485
2488
|
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
@@ -2490,13 +2493,13 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2490
2493
|
s,
|
|
2491
2494
|
l,
|
|
2492
2495
|
p
|
|
2493
|
-
]), /* @__PURE__ */
|
|
2496
|
+
]), /* @__PURE__ */ w(sn, S({}, e, {
|
|
2494
2497
|
ref: r
|
|
2495
2498
|
}));
|
|
2496
|
-
}), [
|
|
2499
|
+
}), [Fo, Ho] = Ve(at, {
|
|
2497
2500
|
isInside: !1
|
|
2498
2501
|
}), sn = /* @__PURE__ */ M((e, t) => {
|
|
2499
|
-
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c =
|
|
2502
|
+
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Pe(we, n), l = je(n), { onClose: d } = c;
|
|
2500
2503
|
return R(() => (document.addEventListener(Ze, d), () => document.removeEventListener(Ze, d)), [
|
|
2501
2504
|
d
|
|
2502
2505
|
]), R(() => {
|
|
@@ -2514,14 +2517,14 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2514
2517
|
}, [
|
|
2515
2518
|
c.trigger,
|
|
2516
2519
|
d
|
|
2517
|
-
]), /* @__PURE__ */
|
|
2520
|
+
]), /* @__PURE__ */ w(lr, {
|
|
2518
2521
|
asChild: !0,
|
|
2519
2522
|
disableOutsidePointerEvents: !1,
|
|
2520
2523
|
onEscapeKeyDown: r,
|
|
2521
2524
|
onPointerDownOutside: s,
|
|
2522
2525
|
onFocusOutside: (u) => u.preventDefault(),
|
|
2523
2526
|
onDismiss: d
|
|
2524
|
-
}, /* @__PURE__ */
|
|
2527
|
+
}, /* @__PURE__ */ w(mo, S({
|
|
2525
2528
|
"data-state": c.stateAttribute
|
|
2526
2529
|
}, l, a, {
|
|
2527
2530
|
ref: t,
|
|
@@ -2533,20 +2536,20 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
|
|
|
2533
2536
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2534
2537
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2535
2538
|
}
|
|
2536
|
-
}), /* @__PURE__ */
|
|
2539
|
+
}), /* @__PURE__ */ w(zt, null, o), /* @__PURE__ */ w(Fo, {
|
|
2537
2540
|
scope: n,
|
|
2538
2541
|
isInside: !0
|
|
2539
|
-
}, /* @__PURE__ */
|
|
2542
|
+
}, /* @__PURE__ */ w(Ao, {
|
|
2540
2543
|
id: c.contentId,
|
|
2541
2544
|
role: "tooltip"
|
|
2542
2545
|
}, i || o))));
|
|
2543
|
-
}),
|
|
2544
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2545
|
-
return
|
|
2546
|
+
}), ko = "TooltipArrow", Bo = /* @__PURE__ */ M((e, t) => {
|
|
2547
|
+
const { __scopeTooltip: n, ...o } = e, i = je(n);
|
|
2548
|
+
return Ho(ko, n).isInside ? null : /* @__PURE__ */ w(vo, S({}, i, o, {
|
|
2546
2549
|
ref: t
|
|
2547
2550
|
}));
|
|
2548
2551
|
});
|
|
2549
|
-
function
|
|
2552
|
+
function zo(e, t) {
|
|
2550
2553
|
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);
|
|
2551
2554
|
switch (Math.min(n, o, i, r)) {
|
|
2552
2555
|
case r:
|
|
@@ -2561,7 +2564,7 @@ function Wo(e, t) {
|
|
|
2561
2564
|
throw new Error("unreachable");
|
|
2562
2565
|
}
|
|
2563
2566
|
}
|
|
2564
|
-
function
|
|
2567
|
+
function Wo(e, t, n = 5) {
|
|
2565
2568
|
const o = [];
|
|
2566
2569
|
switch (t) {
|
|
2567
2570
|
case "top":
|
|
@@ -2603,7 +2606,7 @@ function Vo(e, t, n = 5) {
|
|
|
2603
2606
|
}
|
|
2604
2607
|
return o;
|
|
2605
2608
|
}
|
|
2606
|
-
function
|
|
2609
|
+
function Vo(e) {
|
|
2607
2610
|
const { top: t, right: n, bottom: o, left: i } = e;
|
|
2608
2611
|
return [
|
|
2609
2612
|
{
|
|
@@ -2624,7 +2627,7 @@ function jo(e) {
|
|
|
2624
2627
|
}
|
|
2625
2628
|
];
|
|
2626
2629
|
}
|
|
2627
|
-
function
|
|
2630
|
+
function jo(e, t) {
|
|
2628
2631
|
const { x: n, y: o } = e;
|
|
2629
2632
|
let i = !1;
|
|
2630
2633
|
for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
|
|
@@ -2633,7 +2636,7 @@ function Uo(e, t) {
|
|
|
2633
2636
|
}
|
|
2634
2637
|
return i;
|
|
2635
2638
|
}
|
|
2636
|
-
function
|
|
2639
|
+
function Uo(e) {
|
|
2637
2640
|
const t = e.slice();
|
|
2638
2641
|
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), Go(t);
|
|
2639
2642
|
}
|
|
@@ -2749,7 +2752,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
|
|
|
2749
2752
|
triggerElement: c,
|
|
2750
2753
|
...l
|
|
2751
2754
|
}, d) => {
|
|
2752
|
-
const [u, p] =
|
|
2755
|
+
const [u, p] = z(!1), f = Le([
|
|
2753
2756
|
n,
|
|
2754
2757
|
Q,
|
|
2755
2758
|
{
|
|
@@ -2766,7 +2769,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
|
|
|
2766
2769
|
children: /* @__PURE__ */ I(Mt, { size: "md" })
|
|
2767
2770
|
}
|
|
2768
2771
|
);
|
|
2769
|
-
return /* @__PURE__ */ I("div", { "data-testid": e, className: f, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */
|
|
2772
|
+
return /* @__PURE__ */ I("div", { "data-testid": e, className: f, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ Ue(Xo, { open: u, onOpenChange: p, ...l, children: [
|
|
2770
2773
|
/* @__PURE__ */ I(
|
|
2771
2774
|
qo,
|
|
2772
2775
|
{
|
|
@@ -2777,7 +2780,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
|
|
|
2777
2780
|
children: se.count(c) === 0 ? h : c
|
|
2778
2781
|
}
|
|
2779
2782
|
),
|
|
2780
|
-
/* @__PURE__ */ I(Ko, { children: /* @__PURE__ */
|
|
2783
|
+
/* @__PURE__ */ I(Ko, { children: /* @__PURE__ */ Ue(
|
|
2781
2784
|
Zo,
|
|
2782
2785
|
{
|
|
2783
2786
|
side: r,
|
|
@@ -2797,7 +2800,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
|
|
|
2797
2800
|
ie[`${Q}__paragraph`],
|
|
2798
2801
|
ie[`${Q}__paragraph--${i}`]
|
|
2799
2802
|
]),
|
|
2800
|
-
variant:
|
|
2803
|
+
variant: Ft.PARAGRAPH100,
|
|
2801
2804
|
"data-testid": `${e}-paragraph`,
|
|
2802
2805
|
children: t
|
|
2803
2806
|
}
|