boottent-design 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boottent-design.hooks.cjs.js +1 -1
- package/dist/boottent-design.hooks.es.js +1 -1
- package/dist/boottent-design.main.cjs.js +1 -1
- package/dist/boottent-design.main.es.js +5 -5
- package/dist/boottent-design.provider.cjs.js +1 -1
- package/dist/boottent-design.provider.es.js +1 -1
- package/dist/boottent-design.ui.cjs.js +1 -1
- package/dist/boottent-design.ui.es.js +2 -2
- package/dist/boottent-design.utils.cjs.js +1 -1
- package/dist/boottent-design.utils.es.js +1 -1
- package/dist/{index-eA7KeYI8.js → index-BKXoRMW5.js} +1 -1
- package/dist/{index-C9dzv_CG.cjs → index-yzR38MB_.cjs} +1 -1
- package/dist/portal-manager-9WO01tNb.cjs +1 -0
- package/dist/portal-manager-nNJ4SIa2.js +95 -0
- package/dist/portal-provider-BCk-4D3n.js +110 -0
- package/dist/portal-provider-BXqsWpse.cjs +1 -0
- package/dist/{tooltip-Beq86Qug.js → tooltip-CHFJbt8g.js} +179 -180
- package/dist/{tooltip-DWrSWVcc.cjs → tooltip-CO-z-DrW.cjs} +1 -1
- package/dist/types/hooks.d.ts +14 -13
- package/dist/types/main.d.ts +31 -16
- package/dist/types/types.d.ts +25 -11
- package/dist/types/ui.d.ts +7 -7
- package/dist/types/utils.d.ts +24 -14
- package/dist/use-portal-B-W1cxuO.js +32 -0
- package/dist/use-portal-D6lcMQX5.cjs +1 -0
- package/package.json +1 -1
- package/dist/portal-manager-6YGufJVr.cjs +0 -1
- package/dist/portal-manager-CttMAZAu.js +0 -73
- package/dist/portal-provider-Bwzhqa3P.js +0 -106
- package/dist/portal-provider-DXVWgfhq.cjs +0 -1
- package/dist/use-portal-Ck3GPJQN.cjs +0 -1
- package/dist/use-portal-TiMPd_EZ.js +0 -17
|
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as E, Fragment as De } from "react/jsx-runtime";
|
|
|
2
2
|
import { colors as ar } from "./boottent-design.styles.es.js";
|
|
3
3
|
import { cn as M, toaster as Ui } from "./boottent-design.utils.es.js";
|
|
4
4
|
import * as l from "react";
|
|
5
|
-
import I, { useState as
|
|
5
|
+
import I, { useState as Zt, Fragment as Ki, useEffect as sr, useLayoutEffect as Yi } from "react";
|
|
6
6
|
import * as Wt from "react-dom";
|
|
7
7
|
import cr from "react-dom";
|
|
8
8
|
function Gi({
|
|
@@ -251,7 +251,7 @@ function na({
|
|
|
251
251
|
size: e = "42",
|
|
252
252
|
disabled: t = !1
|
|
253
253
|
}) {
|
|
254
|
-
const [n, r] =
|
|
254
|
+
const [n, r] = Zt(!1);
|
|
255
255
|
return /* @__PURE__ */ E(
|
|
256
256
|
"svg",
|
|
257
257
|
{
|
|
@@ -1412,15 +1412,15 @@ function La(e, t) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
return n;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1416
|
-
return
|
|
1415
|
+
function ze() {
|
|
1416
|
+
return ze = Object.assign ? Object.assign.bind() : function(e) {
|
|
1417
1417
|
for (var t = 1; t < arguments.length; t++) {
|
|
1418
1418
|
var n = arguments[t];
|
|
1419
1419
|
for (var r in n)
|
|
1420
1420
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1421
1421
|
}
|
|
1422
1422
|
return e;
|
|
1423
|
-
},
|
|
1423
|
+
}, ze.apply(this, arguments);
|
|
1424
1424
|
}
|
|
1425
1425
|
function kn(e, t) {
|
|
1426
1426
|
var n = Object.keys(e);
|
|
@@ -1432,7 +1432,7 @@ function kn(e, t) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
return n;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Xe(e) {
|
|
1436
1436
|
for (var t = 1; t < arguments.length; t++) {
|
|
1437
1437
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1438
1438
|
t % 2 ? kn(Object(n), !0).forEach(function(r) {
|
|
@@ -1461,13 +1461,13 @@ function Ia(e, t) {
|
|
|
1461
1461
|
return (t === "string" ? String : Number)(e);
|
|
1462
1462
|
}
|
|
1463
1463
|
function ur(e) {
|
|
1464
|
-
return e && e.map((t, n) => /* @__PURE__ */ I.createElement(t.tag,
|
|
1464
|
+
return e && e.map((t, n) => /* @__PURE__ */ I.createElement(t.tag, Xe({
|
|
1465
1465
|
key: n
|
|
1466
1466
|
}, t.attr), ur(t.child)));
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1469
|
-
return (t) => /* @__PURE__ */ I.createElement(ka,
|
|
1470
|
-
attr:
|
|
1468
|
+
function rt(e) {
|
|
1469
|
+
return (t) => /* @__PURE__ */ I.createElement(ka, ze({
|
|
1470
|
+
attr: Xe({}, e.attr)
|
|
1471
1471
|
}, t), ur(e.child));
|
|
1472
1472
|
}
|
|
1473
1473
|
function ka(e) {
|
|
@@ -1477,13 +1477,13 @@ function ka(e) {
|
|
|
1477
1477
|
size: o,
|
|
1478
1478
|
title: i
|
|
1479
1479
|
} = e, a = Oa(e, Ma), c = o || n.size || "1em", d;
|
|
1480
|
-
return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ I.createElement("svg",
|
|
1480
|
+
return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ I.createElement("svg", ze({
|
|
1481
1481
|
stroke: "currentColor",
|
|
1482
1482
|
fill: "currentColor",
|
|
1483
1483
|
strokeWidth: "0"
|
|
1484
1484
|
}, n.attr, r, a, {
|
|
1485
1485
|
className: d,
|
|
1486
|
-
style:
|
|
1486
|
+
style: Xe(Xe({
|
|
1487
1487
|
color: e.color || n.color
|
|
1488
1488
|
}, n.style), e.style),
|
|
1489
1489
|
height: c,
|
|
@@ -1494,10 +1494,10 @@ function ka(e) {
|
|
|
1494
1494
|
return In !== void 0 ? /* @__PURE__ */ I.createElement(In.Consumer, null, (n) => t(n)) : t(lr);
|
|
1495
1495
|
}
|
|
1496
1496
|
function Ha(e) {
|
|
1497
|
-
return
|
|
1497
|
+
return rt({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0M4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5z" }, child: [] }] })(e);
|
|
1498
1498
|
}
|
|
1499
1499
|
function Va(e) {
|
|
1500
|
-
return
|
|
1500
|
+
return rt({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M1.5 1.5A.5.5 0 0 0 1 2v4.8a2.5 2.5 0 0 0 2.5 2.5h9.793l-3.347 3.346a.5.5 0 0 0 .708.708l4.2-4.2a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708.708L13.293 8.3H3.5A1.5 1.5 0 0 1 2 6.8V2a.5.5 0 0 0-.5-.5" }, child: [] }] })(e);
|
|
1501
1501
|
}
|
|
1502
1502
|
function Fa({
|
|
1503
1503
|
size: e,
|
|
@@ -1521,10 +1521,10 @@ function $a({
|
|
|
1521
1521
|
return /* @__PURE__ */ s(Va, { size: e, color: t, className: n });
|
|
1522
1522
|
}
|
|
1523
1523
|
function Ba(e) {
|
|
1524
|
-
return
|
|
1524
|
+
return rt({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" }, child: [] }] })(e);
|
|
1525
1525
|
}
|
|
1526
1526
|
function Za(e) {
|
|
1527
|
-
return
|
|
1527
|
+
return rt({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" }, child: [] }] })(e);
|
|
1528
1528
|
}
|
|
1529
1529
|
function Wa({ size: e, color: t, className: n }) {
|
|
1530
1530
|
return /* @__PURE__ */ s(Ba, { size: e, color: t, className: n });
|
|
@@ -1893,12 +1893,12 @@ var Ae = l.forwardRef((e, t) => {
|
|
|
1893
1893
|
const { children: n, ...r } = e, o = l.Children.toArray(n), i = o.find(ts);
|
|
1894
1894
|
if (i) {
|
|
1895
1895
|
const a = i.props.children, c = o.map((d) => d === i ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : d);
|
|
1896
|
-
return /* @__PURE__ */ s(
|
|
1896
|
+
return /* @__PURE__ */ s(Nt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, c) : null });
|
|
1897
1897
|
}
|
|
1898
|
-
return /* @__PURE__ */ s(
|
|
1898
|
+
return /* @__PURE__ */ s(Nt, { ...r, ref: t, children: n });
|
|
1899
1899
|
});
|
|
1900
1900
|
Ae.displayName = "Slot";
|
|
1901
|
-
var
|
|
1901
|
+
var Nt = l.forwardRef((e, t) => {
|
|
1902
1902
|
const { children: n, ...r } = e;
|
|
1903
1903
|
if (l.isValidElement(n)) {
|
|
1904
1904
|
const o = rs(n);
|
|
@@ -1910,7 +1910,7 @@ var St = l.forwardRef((e, t) => {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
1912
1912
|
});
|
|
1913
|
-
|
|
1913
|
+
Nt.displayName = "SlotClone";
|
|
1914
1914
|
var Ut = ({ children: e }) => /* @__PURE__ */ s(De, { children: e });
|
|
1915
1915
|
function ts(e) {
|
|
1916
1916
|
return l.isValidElement(e) && e.type === Ut;
|
|
@@ -2218,7 +2218,7 @@ function Cs(e) {
|
|
|
2218
2218
|
const t = l.useContext(gs);
|
|
2219
2219
|
return e || t || "ltr";
|
|
2220
2220
|
}
|
|
2221
|
-
var re = "Accordion", ws = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xt, ys, xs] = fr(re), [
|
|
2221
|
+
var re = "Accordion", ws = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xt, ys, xs] = fr(re), [ot, wu] = Pe(re, [
|
|
2222
2222
|
xs,
|
|
2223
2223
|
hr
|
|
2224
2224
|
]), qt = hr(), wr = I.forwardRef(
|
|
@@ -2228,7 +2228,7 @@ var re = "Accordion", ws = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft",
|
|
|
2228
2228
|
}
|
|
2229
2229
|
);
|
|
2230
2230
|
wr.displayName = re;
|
|
2231
|
-
var [yr, bs] =
|
|
2231
|
+
var [yr, bs] = ot(re), [xr, As] = ot(
|
|
2232
2232
|
re,
|
|
2233
2233
|
{ collapsible: !1 }
|
|
2234
2234
|
), Es = I.forwardRef(
|
|
@@ -2284,7 +2284,7 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2284
2284
|
children: /* @__PURE__ */ s(xr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ s(br, { ...i, ref: t }) })
|
|
2285
2285
|
}
|
|
2286
2286
|
);
|
|
2287
|
-
}), [Ps,
|
|
2287
|
+
}), [Ps, it] = ot(re), br = I.forwardRef(
|
|
2288
2288
|
(e, t) => {
|
|
2289
2289
|
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, c = I.useRef(null), d = W(c, t), u = ys(n), p = Cs(o) === "ltr", m = _(e.onKeyDown, (v) => {
|
|
2290
2290
|
var S;
|
|
@@ -2343,9 +2343,9 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2343
2343
|
}
|
|
2344
2344
|
);
|
|
2345
2345
|
}
|
|
2346
|
-
),
|
|
2346
|
+
), qe = "AccordionItem", [Ts, Qt] = ot(qe), Ar = I.forwardRef(
|
|
2347
2347
|
(e, t) => {
|
|
2348
|
-
const { __scopeAccordion: n, value: r, ...o } = e, i =
|
|
2348
|
+
const { __scopeAccordion: n, value: r, ...o } = e, i = it(qe, n), a = bs(qe, n), c = qt(n), d = we(), u = r && a.value.includes(r) || !1, f = i.disabled || e.disabled;
|
|
2349
2349
|
return /* @__PURE__ */ s(
|
|
2350
2350
|
Ts,
|
|
2351
2351
|
{
|
|
@@ -2372,10 +2372,10 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2372
2372
|
);
|
|
2373
2373
|
}
|
|
2374
2374
|
);
|
|
2375
|
-
Ar.displayName =
|
|
2375
|
+
Ar.displayName = qe;
|
|
2376
2376
|
var Er = "AccordionHeader", Rr = I.forwardRef(
|
|
2377
2377
|
(e, t) => {
|
|
2378
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
2378
|
+
const { __scopeAccordion: n, ...r } = e, o = it(re, n), i = Qt(Er, n);
|
|
2379
2379
|
return /* @__PURE__ */ s(
|
|
2380
2380
|
H.h3,
|
|
2381
2381
|
{
|
|
@@ -2389,9 +2389,9 @@ var Er = "AccordionHeader", Rr = I.forwardRef(
|
|
|
2389
2389
|
}
|
|
2390
2390
|
);
|
|
2391
2391
|
Rr.displayName = Er;
|
|
2392
|
-
var
|
|
2392
|
+
var St = "AccordionTrigger", Pr = I.forwardRef(
|
|
2393
2393
|
(e, t) => {
|
|
2394
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
2394
|
+
const { __scopeAccordion: n, ...r } = e, o = it(re, n), i = Qt(St, n), a = As(St, n), c = qt(n);
|
|
2395
2395
|
return /* @__PURE__ */ s(Xt.ItemSlot, { scope: n, children: /* @__PURE__ */ s(
|
|
2396
2396
|
ms,
|
|
2397
2397
|
{
|
|
@@ -2405,10 +2405,10 @@ var Mt = "AccordionTrigger", Pr = I.forwardRef(
|
|
|
2405
2405
|
) });
|
|
2406
2406
|
}
|
|
2407
2407
|
);
|
|
2408
|
-
Pr.displayName =
|
|
2408
|
+
Pr.displayName = St;
|
|
2409
2409
|
var Tr = "AccordionContent", Nr = I.forwardRef(
|
|
2410
2410
|
(e, t) => {
|
|
2411
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
2411
|
+
const { __scopeAccordion: n, ...r } = e, o = it(re, n), i = Qt(Tr, n), a = qt(n);
|
|
2412
2412
|
return /* @__PURE__ */ s(
|
|
2413
2413
|
vs,
|
|
2414
2414
|
{
|
|
@@ -2594,7 +2594,7 @@ const Hn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Vn =
|
|
|
2594
2594
|
shape: "square"
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
|
-
),
|
|
2597
|
+
), Mt = l.forwardRef(
|
|
2598
2598
|
({
|
|
2599
2599
|
className: e,
|
|
2600
2600
|
theme: t,
|
|
@@ -2622,7 +2622,7 @@ const Hn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Vn =
|
|
|
2622
2622
|
}
|
|
2623
2623
|
)
|
|
2624
2624
|
);
|
|
2625
|
-
|
|
2625
|
+
Mt.displayName = "Button";
|
|
2626
2626
|
const Is = l.forwardRef(
|
|
2627
2627
|
({ className: e, type: t = "text", icon: n, error: r, iconPosition: o = "right", ...i }, a) => /* @__PURE__ */ E("div", { className: M("relative flex w-full items-center text-sm"), children: [
|
|
2628
2628
|
n && o === "left" && /* @__PURE__ */ s("span", { className: "absolute left-4", children: n }),
|
|
@@ -2654,11 +2654,11 @@ function ks(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
2654
2654
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
2655
2655
|
}, [n, t]);
|
|
2656
2656
|
}
|
|
2657
|
-
var Hs = "DismissableLayer",
|
|
2657
|
+
var Hs = "DismissableLayer", Ot = "dismissableLayer.update", Vs = "dismissableLayer.pointerDownOutside", Fs = "dismissableLayer.focusOutside", Fn, _r = l.createContext({
|
|
2658
2658
|
layers: /* @__PURE__ */ new Set(),
|
|
2659
2659
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2660
2660
|
branches: /* @__PURE__ */ new Set()
|
|
2661
|
-
}),
|
|
2661
|
+
}), at = l.forwardRef(
|
|
2662
2662
|
(e, t) => {
|
|
2663
2663
|
const {
|
|
2664
2664
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -2686,7 +2686,7 @@ var Hs = "DismissableLayer", Lt = "dismissableLayer.update", Vs = "dismissableLa
|
|
|
2686
2686
|
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), $n());
|
|
2687
2687
|
}, [f, u]), l.useEffect(() => {
|
|
2688
2688
|
const P = () => v({});
|
|
2689
|
-
return document.addEventListener(
|
|
2689
|
+
return document.addEventListener(Ot, P), () => document.removeEventListener(Ot, P);
|
|
2690
2690
|
}, []), /* @__PURE__ */ s(
|
|
2691
2691
|
H.div,
|
|
2692
2692
|
{
|
|
@@ -2706,7 +2706,7 @@ var Hs = "DismissableLayer", Lt = "dismissableLayer.update", Vs = "dismissableLa
|
|
|
2706
2706
|
);
|
|
2707
2707
|
}
|
|
2708
2708
|
);
|
|
2709
|
-
|
|
2709
|
+
at.displayName = Hs;
|
|
2710
2710
|
var $s = "DismissableLayerBranch", Ir = l.forwardRef((e, t) => {
|
|
2711
2711
|
const n = l.useContext(_r), r = l.useRef(null), o = W(t, r);
|
|
2712
2712
|
return l.useEffect(() => {
|
|
@@ -2763,14 +2763,14 @@ function Zs(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
2763
2763
|
};
|
|
2764
2764
|
}
|
|
2765
2765
|
function $n() {
|
|
2766
|
-
const e = new CustomEvent(
|
|
2766
|
+
const e = new CustomEvent(Ot);
|
|
2767
2767
|
document.dispatchEvent(e);
|
|
2768
2768
|
}
|
|
2769
2769
|
function kr(e, t, n, { discrete: r }) {
|
|
2770
2770
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
2771
2771
|
t && o.addEventListener(e, t, { once: !0 }), r ? pr(o, i) : o.dispatchEvent(i);
|
|
2772
2772
|
}
|
|
2773
|
-
var Ws =
|
|
2773
|
+
var Ws = at, js = Ir, Ct = "focusScope.autoFocusOnMount", wt = "focusScope.autoFocusOnUnmount", Bn = { bubbles: !1, cancelable: !0 }, Us = "FocusScope", Hr = l.forwardRef((e, t) => {
|
|
2774
2774
|
const {
|
|
2775
2775
|
loop: n = !1,
|
|
2776
2776
|
trapped: r = !1,
|
|
@@ -2812,13 +2812,13 @@ var Ws = st, js = Ir, wt = "focusScope.autoFocusOnMount", yt = "focusScope.autoF
|
|
|
2812
2812
|
Wn.add(v);
|
|
2813
2813
|
const h = document.activeElement;
|
|
2814
2814
|
if (!c.contains(h)) {
|
|
2815
|
-
const w = new CustomEvent(
|
|
2816
|
-
c.addEventListener(
|
|
2815
|
+
const w = new CustomEvent(Ct, Bn);
|
|
2816
|
+
c.addEventListener(Ct, u), c.dispatchEvent(w), w.defaultPrevented || (Ks(qs(Vr(c)), { select: !0 }), document.activeElement === h && ie(c));
|
|
2817
2817
|
}
|
|
2818
2818
|
return () => {
|
|
2819
|
-
c.removeEventListener(
|
|
2820
|
-
const w = new CustomEvent(
|
|
2821
|
-
c.addEventListener(
|
|
2819
|
+
c.removeEventListener(Ct, u), setTimeout(() => {
|
|
2820
|
+
const w = new CustomEvent(wt, Bn);
|
|
2821
|
+
c.addEventListener(wt, f), c.dispatchEvent(w), w.defaultPrevented || ie(h ?? document.body, { select: !0 }), c.removeEventListener(wt, f), Wn.remove(v);
|
|
2822
2822
|
}, 0);
|
|
2823
2823
|
};
|
|
2824
2824
|
}
|
|
@@ -2907,12 +2907,12 @@ var Qs = "Portal", Jt = l.forwardRef((e, t) => {
|
|
|
2907
2907
|
return a ? cr.createPortal(/* @__PURE__ */ s(H.div, { ...r, ref: t }), a) : null;
|
|
2908
2908
|
});
|
|
2909
2909
|
Jt.displayName = Qs;
|
|
2910
|
-
var
|
|
2910
|
+
var yt = 0;
|
|
2911
2911
|
function Js() {
|
|
2912
2912
|
l.useEffect(() => {
|
|
2913
2913
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
2914
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Un()), document.body.insertAdjacentElement("beforeend", e[1] ?? Un()),
|
|
2915
|
-
|
|
2914
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Un()), document.body.insertAdjacentElement("beforeend", e[1] ?? Un()), yt++, () => {
|
|
2915
|
+
yt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), yt--;
|
|
2916
2916
|
};
|
|
2917
2917
|
}, []);
|
|
2918
2918
|
}
|
|
@@ -2943,11 +2943,11 @@ function ec(e, t, n) {
|
|
|
2943
2943
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
2944
2944
|
}
|
|
2945
2945
|
var Ke = "right-scroll-bar-position", Ye = "width-before-scroll-bar", tc = "with-scroll-bars-hidden", nc = "--removed-body-scroll-bar-size";
|
|
2946
|
-
function
|
|
2946
|
+
function xt(e, t) {
|
|
2947
2947
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2948
2948
|
}
|
|
2949
2949
|
function rc(e, t) {
|
|
2950
|
-
var n =
|
|
2950
|
+
var n = Zt(function() {
|
|
2951
2951
|
return {
|
|
2952
2952
|
// value
|
|
2953
2953
|
value: e,
|
|
@@ -2971,7 +2971,7 @@ var oc = typeof window < "u" ? l.useLayoutEffect : l.useEffect, Kn = /* @__PURE_
|
|
|
2971
2971
|
function ic(e, t) {
|
|
2972
2972
|
var n = rc(null, function(r) {
|
|
2973
2973
|
return e.forEach(function(o) {
|
|
2974
|
-
return
|
|
2974
|
+
return xt(o, r);
|
|
2975
2975
|
});
|
|
2976
2976
|
});
|
|
2977
2977
|
return oc(function() {
|
|
@@ -2979,9 +2979,9 @@ function ic(e, t) {
|
|
|
2979
2979
|
if (r) {
|
|
2980
2980
|
var o = new Set(r), i = new Set(e), a = n.current;
|
|
2981
2981
|
o.forEach(function(c) {
|
|
2982
|
-
i.has(c) ||
|
|
2982
|
+
i.has(c) || xt(c, null);
|
|
2983
2983
|
}), i.forEach(function(c) {
|
|
2984
|
-
o.has(c) ||
|
|
2984
|
+
o.has(c) || xt(c, a);
|
|
2985
2985
|
});
|
|
2986
2986
|
}
|
|
2987
2987
|
Kn.set(n, e);
|
|
@@ -3063,12 +3063,12 @@ $r.isSideCarExport = !0;
|
|
|
3063
3063
|
function lc(e, t) {
|
|
3064
3064
|
return e.useMedium(t), $r;
|
|
3065
3065
|
}
|
|
3066
|
-
var Br = cc(),
|
|
3067
|
-
},
|
|
3066
|
+
var Br = cc(), bt = function() {
|
|
3067
|
+
}, st = l.forwardRef(function(e, t) {
|
|
3068
3068
|
var n = l.useRef(null), r = l.useState({
|
|
3069
|
-
onScrollCapture:
|
|
3070
|
-
onWheelCapture:
|
|
3071
|
-
onTouchMoveCapture:
|
|
3069
|
+
onScrollCapture: bt,
|
|
3070
|
+
onWheelCapture: bt,
|
|
3071
|
+
onTouchMoveCapture: bt
|
|
3072
3072
|
}), o = r[0], i = r[1], a = e.forwardProps, c = e.children, d = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, m = e.sideCar, v = e.noIsolation, C = e.inert, h = e.allowPinchZoom, g = e.as, w = g === void 0 ? "div" : g, y = e.gapMode, x = Fr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = m, A = ic([n, t]), R = q(q({}, x), o);
|
|
3073
3073
|
return l.createElement(
|
|
3074
3074
|
l.Fragment,
|
|
@@ -3077,12 +3077,12 @@ var Br = cc(), At = function() {
|
|
|
3077
3077
|
a ? l.cloneElement(l.Children.only(c), q(q({}, R), { ref: A })) : l.createElement(w, q({}, R, { className: d, ref: A }), c)
|
|
3078
3078
|
);
|
|
3079
3079
|
});
|
|
3080
|
-
|
|
3080
|
+
st.defaultProps = {
|
|
3081
3081
|
enabled: !0,
|
|
3082
3082
|
removeScrollBar: !0,
|
|
3083
3083
|
inert: !1
|
|
3084
3084
|
};
|
|
3085
|
-
|
|
3085
|
+
st.classNames = {
|
|
3086
3086
|
fullWidth: Ye,
|
|
3087
3087
|
zeroRight: Ke
|
|
3088
3088
|
};
|
|
@@ -3135,11 +3135,11 @@ var hc = function() {
|
|
|
3135
3135
|
top: 0,
|
|
3136
3136
|
right: 0,
|
|
3137
3137
|
gap: 0
|
|
3138
|
-
},
|
|
3138
|
+
}, At = function(e) {
|
|
3139
3139
|
return parseInt(e || "", 10) || 0;
|
|
3140
3140
|
}, gc = function(e) {
|
|
3141
3141
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3142
|
-
return [
|
|
3142
|
+
return [At(n), At(r), At(o)];
|
|
3143
3143
|
}, Cc = function(e) {
|
|
3144
3144
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3145
3145
|
return vc;
|
|
@@ -3211,19 +3211,19 @@ var hc = function() {
|
|
|
3211
3211
|
return Cc(o);
|
|
3212
3212
|
}, [o]);
|
|
3213
3213
|
return l.createElement(wc, { styles: yc(i, !t, o, n ? "" : "!important") });
|
|
3214
|
-
},
|
|
3214
|
+
}, Lt = !1;
|
|
3215
3215
|
if (typeof window < "u")
|
|
3216
3216
|
try {
|
|
3217
3217
|
var $e = Object.defineProperty({}, "passive", {
|
|
3218
3218
|
get: function() {
|
|
3219
|
-
return
|
|
3219
|
+
return Lt = !0, !0;
|
|
3220
3220
|
}
|
|
3221
3221
|
});
|
|
3222
3222
|
window.addEventListener("test", $e, $e), window.removeEventListener("test", $e, $e);
|
|
3223
3223
|
} catch {
|
|
3224
|
-
|
|
3224
|
+
Lt = !1;
|
|
3225
3225
|
}
|
|
3226
|
-
var ve =
|
|
3226
|
+
var ve = Lt ? { passive: !1 } : !1, Ac = function(e) {
|
|
3227
3227
|
return e.tagName === "TEXTAREA";
|
|
3228
3228
|
}, Wr = function(e, t) {
|
|
3229
3229
|
if (!(e instanceof Element))
|
|
@@ -3385,15 +3385,15 @@ function _c(e) {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
const Ic = lc(Br, Dc);
|
|
3387
3387
|
var Kr = l.forwardRef(function(e, t) {
|
|
3388
|
-
return l.createElement(
|
|
3388
|
+
return l.createElement(st, q({}, e, { ref: t, sideCar: Ic }));
|
|
3389
3389
|
});
|
|
3390
|
-
Kr.classNames =
|
|
3390
|
+
Kr.classNames = st.classNames;
|
|
3391
3391
|
var kc = function(e) {
|
|
3392
3392
|
if (typeof document > "u")
|
|
3393
3393
|
return null;
|
|
3394
3394
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3395
3395
|
return t.ownerDocument.body;
|
|
3396
|
-
}, Ce = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), We = {},
|
|
3396
|
+
}, Ce = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), We = {}, Et = 0, Yr = function(e) {
|
|
3397
3397
|
return e && (e.host || Yr(e.parentNode));
|
|
3398
3398
|
}, Hc = function(e, t) {
|
|
3399
3399
|
return t.map(function(n) {
|
|
@@ -3424,11 +3424,11 @@ var kc = function(e) {
|
|
|
3424
3424
|
}
|
|
3425
3425
|
});
|
|
3426
3426
|
};
|
|
3427
|
-
return f(t), c.clear(),
|
|
3427
|
+
return f(t), c.clear(), Et++, function() {
|
|
3428
3428
|
a.forEach(function(p) {
|
|
3429
3429
|
var m = Ce.get(p) - 1, v = i.get(p) - 1;
|
|
3430
3430
|
Ce.set(p, m), i.set(p, v), m || (Ze.has(p) || p.removeAttribute(r), Ze.delete(p)), v || p.removeAttribute(n);
|
|
3431
|
-
}),
|
|
3431
|
+
}), Et--, Et || (Ce = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), We = {});
|
|
3432
3432
|
};
|
|
3433
3433
|
}, Fc = function(e, t, n) {
|
|
3434
3434
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -3493,16 +3493,16 @@ var tn = "DialogPortal", [Bc, Jr] = Gr(tn, {
|
|
|
3493
3493
|
return /* @__PURE__ */ s(Bc, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ s(pe, { present: n || i.open, children: /* @__PURE__ */ s(Jt, { asChild: !0, container: o, children: a }) })) });
|
|
3494
3494
|
};
|
|
3495
3495
|
eo.displayName = tn;
|
|
3496
|
-
var
|
|
3496
|
+
var Qe = "DialogOverlay", to = l.forwardRef(
|
|
3497
3497
|
(e, t) => {
|
|
3498
|
-
const n = Jr(
|
|
3498
|
+
const n = Jr(Qe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = X(Qe, e.__scopeDialog);
|
|
3499
3499
|
return i.modal ? /* @__PURE__ */ s(pe, { present: r || i.open, children: /* @__PURE__ */ s(Zc, { ...o, ref: t }) }) : null;
|
|
3500
3500
|
}
|
|
3501
3501
|
);
|
|
3502
|
-
to.displayName =
|
|
3502
|
+
to.displayName = Qe;
|
|
3503
3503
|
var Zc = l.forwardRef(
|
|
3504
3504
|
(e, t) => {
|
|
3505
|
-
const { __scopeDialog: n, ...r } = e, o = X(
|
|
3505
|
+
const { __scopeDialog: n, ...r } = e, o = X(Qe, n);
|
|
3506
3506
|
return (
|
|
3507
3507
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
3508
3508
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -3588,7 +3588,7 @@ var Wc = l.forwardRef(
|
|
|
3588
3588
|
onMountAutoFocus: o,
|
|
3589
3589
|
onUnmountAutoFocus: i,
|
|
3590
3590
|
children: /* @__PURE__ */ s(
|
|
3591
|
-
|
|
3591
|
+
at,
|
|
3592
3592
|
{
|
|
3593
3593
|
role: "dialog",
|
|
3594
3594
|
id: c.contentId,
|
|
@@ -4018,7 +4018,7 @@ const fl = l.forwardRef(
|
|
|
4018
4018
|
u && /* @__PURE__ */ s("div", { children: u }),
|
|
4019
4019
|
/* @__PURE__ */ E(Vo, { children: [
|
|
4020
4020
|
o && /* @__PURE__ */ s(
|
|
4021
|
-
|
|
4021
|
+
Mt,
|
|
4022
4022
|
{
|
|
4023
4023
|
onClick: () => {
|
|
4024
4024
|
o && o(), i && i();
|
|
@@ -4031,7 +4031,7 @@ const fl = l.forwardRef(
|
|
|
4031
4031
|
}
|
|
4032
4032
|
),
|
|
4033
4033
|
r && /* @__PURE__ */ s(
|
|
4034
|
-
|
|
4034
|
+
Mt,
|
|
4035
4035
|
{
|
|
4036
4036
|
onClick: () => {
|
|
4037
4037
|
r && r(), i && i();
|
|
@@ -4111,7 +4111,7 @@ const pl = l.forwardRef(
|
|
|
4111
4111
|
)
|
|
4112
4112
|
);
|
|
4113
4113
|
pl.displayName = "Modal";
|
|
4114
|
-
var hl = "VisuallyHidden",
|
|
4114
|
+
var hl = "VisuallyHidden", ct = l.forwardRef(
|
|
4115
4115
|
(e, t) => /* @__PURE__ */ s(
|
|
4116
4116
|
H.span,
|
|
4117
4117
|
{
|
|
@@ -4134,8 +4134,8 @@ var hl = "VisuallyHidden", lt = l.forwardRef(
|
|
|
4134
4134
|
}
|
|
4135
4135
|
)
|
|
4136
4136
|
);
|
|
4137
|
-
|
|
4138
|
-
var ml =
|
|
4137
|
+
ct.displayName = hl;
|
|
4138
|
+
var ml = ct, mn = "ToastProvider", [vn, vl, gl] = fr("Toast"), [Bo, bu] = Pe("Toast", [gl]), [Cl, lt] = Bo(mn), Zo = (e) => {
|
|
4139
4139
|
const {
|
|
4140
4140
|
__scopeToast: t,
|
|
4141
4141
|
label: n = "Notification",
|
|
@@ -4166,14 +4166,14 @@ var ml = lt, mn = "ToastProvider", [vn, vl, gl] = fr("Toast"), [Bo, bu] = Pe("To
|
|
|
4166
4166
|
) });
|
|
4167
4167
|
};
|
|
4168
4168
|
Zo.displayName = mn;
|
|
4169
|
-
var Wo = "ToastViewport", wl = ["F8"],
|
|
4169
|
+
var Wo = "ToastViewport", wl = ["F8"], Dt = "toast.viewportPause", _t = "toast.viewportResume", jo = l.forwardRef(
|
|
4170
4170
|
(e, t) => {
|
|
4171
4171
|
const {
|
|
4172
4172
|
__scopeToast: n,
|
|
4173
4173
|
hotkey: r = wl,
|
|
4174
4174
|
label: o = "Notifications ({hotkey})",
|
|
4175
4175
|
...i
|
|
4176
|
-
} = e, a =
|
|
4176
|
+
} = e, a = lt(Wo, n), c = vl(n), d = l.useRef(null), u = l.useRef(null), f = l.useRef(null), p = l.useRef(null), m = W(t, p, a.onViewportChange), v = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), C = a.toastCount > 0;
|
|
4177
4177
|
l.useEffect(() => {
|
|
4178
4178
|
const g = (w) => {
|
|
4179
4179
|
var x;
|
|
@@ -4185,12 +4185,12 @@ var Wo = "ToastViewport", wl = ["F8"], _t = "toast.viewportPause", It = "toast.v
|
|
|
4185
4185
|
if (C && g && w) {
|
|
4186
4186
|
const y = () => {
|
|
4187
4187
|
if (!a.isClosePausedRef.current) {
|
|
4188
|
-
const R = new CustomEvent(
|
|
4188
|
+
const R = new CustomEvent(Dt);
|
|
4189
4189
|
w.dispatchEvent(R), a.isClosePausedRef.current = !0;
|
|
4190
4190
|
}
|
|
4191
4191
|
}, x = () => {
|
|
4192
4192
|
if (a.isClosePausedRef.current) {
|
|
4193
|
-
const R = new CustomEvent(
|
|
4193
|
+
const R = new CustomEvent(_t);
|
|
4194
4194
|
w.dispatchEvent(R), a.isClosePausedRef.current = !1;
|
|
4195
4195
|
}
|
|
4196
4196
|
}, b = (R) => {
|
|
@@ -4226,7 +4226,7 @@ var Wo = "ToastViewport", wl = ["F8"], _t = "toast.viewportPause", It = "toast.v
|
|
|
4226
4226
|
return;
|
|
4227
4227
|
}
|
|
4228
4228
|
const $ = h({ tabbingDirection: O ? "backwards" : "forwards" }), V = $.findIndex((T) => T === S);
|
|
4229
|
-
|
|
4229
|
+
Rt($.slice(V + 1)) ? y.preventDefault() : O ? (R = u.current) == null || R.focus() : (P = f.current) == null || P.focus();
|
|
4230
4230
|
}
|
|
4231
4231
|
};
|
|
4232
4232
|
return g.addEventListener("keydown", w), () => g.removeEventListener("keydown", w);
|
|
@@ -4241,27 +4241,27 @@ var Wo = "ToastViewport", wl = ["F8"], _t = "toast.viewportPause", It = "toast.v
|
|
|
4241
4241
|
style: { pointerEvents: C ? void 0 : "none" },
|
|
4242
4242
|
children: [
|
|
4243
4243
|
C && /* @__PURE__ */ s(
|
|
4244
|
-
|
|
4244
|
+
It,
|
|
4245
4245
|
{
|
|
4246
4246
|
ref: u,
|
|
4247
4247
|
onFocusFromOutsideViewport: () => {
|
|
4248
4248
|
const g = h({
|
|
4249
4249
|
tabbingDirection: "forwards"
|
|
4250
4250
|
});
|
|
4251
|
-
|
|
4251
|
+
Rt(g);
|
|
4252
4252
|
}
|
|
4253
4253
|
}
|
|
4254
4254
|
),
|
|
4255
4255
|
/* @__PURE__ */ s(vn.Slot, { scope: n, children: /* @__PURE__ */ s(H.ol, { tabIndex: -1, ...i, ref: m }) }),
|
|
4256
4256
|
C && /* @__PURE__ */ s(
|
|
4257
|
-
|
|
4257
|
+
It,
|
|
4258
4258
|
{
|
|
4259
4259
|
ref: f,
|
|
4260
4260
|
onFocusFromOutsideViewport: () => {
|
|
4261
4261
|
const g = h({
|
|
4262
4262
|
tabbingDirection: "backwards"
|
|
4263
4263
|
});
|
|
4264
|
-
|
|
4264
|
+
Rt(g);
|
|
4265
4265
|
}
|
|
4266
4266
|
}
|
|
4267
4267
|
)
|
|
@@ -4271,11 +4271,11 @@ var Wo = "ToastViewport", wl = ["F8"], _t = "toast.viewportPause", It = "toast.v
|
|
|
4271
4271
|
}
|
|
4272
4272
|
);
|
|
4273
4273
|
jo.displayName = Wo;
|
|
4274
|
-
var Uo = "ToastFocusProxy",
|
|
4274
|
+
var Uo = "ToastFocusProxy", It = l.forwardRef(
|
|
4275
4275
|
(e, t) => {
|
|
4276
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, i =
|
|
4276
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, i = lt(Uo, n);
|
|
4277
4277
|
return /* @__PURE__ */ s(
|
|
4278
|
-
|
|
4278
|
+
ct,
|
|
4279
4279
|
{
|
|
4280
4280
|
"aria-hidden": !0,
|
|
4281
4281
|
tabIndex: 0,
|
|
@@ -4291,8 +4291,8 @@ var Uo = "ToastFocusProxy", kt = l.forwardRef(
|
|
|
4291
4291
|
);
|
|
4292
4292
|
}
|
|
4293
4293
|
);
|
|
4294
|
-
|
|
4295
|
-
var
|
|
4294
|
+
It.displayName = Uo;
|
|
4295
|
+
var ut = "Toast", yl = "toast.swipeStart", xl = "toast.swipeMove", bl = "toast.swipeCancel", Al = "toast.swipeEnd", Ko = l.forwardRef(
|
|
4296
4296
|
(e, t) => {
|
|
4297
4297
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: i, ...a } = e, [c = !0, d] = Te({
|
|
4298
4298
|
prop: r,
|
|
@@ -4326,8 +4326,8 @@ var dt = "Toast", yl = "toast.swipeStart", xl = "toast.swipeMove", bl = "toast.s
|
|
|
4326
4326
|
) });
|
|
4327
4327
|
}
|
|
4328
4328
|
);
|
|
4329
|
-
Ko.displayName =
|
|
4330
|
-
var [El, Rl] = Bo(
|
|
4329
|
+
Ko.displayName = ut;
|
|
4330
|
+
var [El, Rl] = Bo(ut, {
|
|
4331
4331
|
onClose() {
|
|
4332
4332
|
}
|
|
4333
4333
|
}), Pl = l.forwardRef(
|
|
@@ -4346,7 +4346,7 @@ var [El, Rl] = Bo(dt, {
|
|
|
4346
4346
|
onSwipeCancel: m,
|
|
4347
4347
|
onSwipeEnd: v,
|
|
4348
4348
|
...C
|
|
4349
|
-
} = e, h = ut
|
|
4349
|
+
} = e, h = lt(ut, n), [g, w] = l.useState(null), y = W(t, (T) => w(T)), x = l.useRef(null), b = l.useRef(null), A = o || h.duration, R = l.useRef(0), P = l.useRef(A), S = l.useRef(0), { onToastAdd: O, onToastRemove: L } = h, B = Y(() => {
|
|
4350
4350
|
var k;
|
|
4351
4351
|
(g == null ? void 0 : g.contains(document.activeElement)) && ((k = h.viewport) == null || k.focus()), a();
|
|
4352
4352
|
}), $ = l.useCallback(
|
|
@@ -4364,8 +4364,8 @@ var [El, Rl] = Bo(dt, {
|
|
|
4364
4364
|
const F = (/* @__PURE__ */ new Date()).getTime() - R.current;
|
|
4365
4365
|
P.current = P.current - F, window.clearTimeout(S.current), d == null || d();
|
|
4366
4366
|
};
|
|
4367
|
-
return T.addEventListener(
|
|
4368
|
-
T.removeEventListener(
|
|
4367
|
+
return T.addEventListener(Dt, D), T.addEventListener(_t, k), () => {
|
|
4368
|
+
T.removeEventListener(Dt, D), T.removeEventListener(_t, k);
|
|
4369
4369
|
};
|
|
4370
4370
|
}
|
|
4371
4371
|
}, [h.viewport, A, d, u, $]), l.useEffect(() => {
|
|
@@ -4445,11 +4445,11 @@ var [El, Rl] = Bo(dt, {
|
|
|
4445
4445
|
] }) : null;
|
|
4446
4446
|
}
|
|
4447
4447
|
), Tl = (e) => {
|
|
4448
|
-
const { __scopeToast: t, children: n, ...r } = e, o = ut
|
|
4448
|
+
const { __scopeToast: t, children: n, ...r } = e, o = lt(ut, t), [i, a] = l.useState(!1), [c, d] = l.useState(!1);
|
|
4449
4449
|
return Ml(() => a(!0)), l.useEffect(() => {
|
|
4450
4450
|
const u = window.setTimeout(() => d(!0), 1e3);
|
|
4451
4451
|
return () => window.clearTimeout(u);
|
|
4452
|
-
}, []), c ? null : /* @__PURE__ */ s(Jt, { asChild: !0, children: /* @__PURE__ */ s(
|
|
4452
|
+
}, []), c ? null : /* @__PURE__ */ s(Jt, { asChild: !0, children: /* @__PURE__ */ s(ct, { ...r, children: i && /* @__PURE__ */ E(De, { children: [
|
|
4453
4453
|
o.label,
|
|
4454
4454
|
" ",
|
|
4455
4455
|
n
|
|
@@ -4549,7 +4549,7 @@ function Ll(e) {
|
|
|
4549
4549
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
4550
4550
|
return t;
|
|
4551
4551
|
}
|
|
4552
|
-
function
|
|
4552
|
+
function Rt(e) {
|
|
4553
4553
|
const t = document.activeElement;
|
|
4554
4554
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
4555
4555
|
}
|
|
@@ -4675,9 +4675,9 @@ function Au() {
|
|
|
4675
4675
|
variant: f,
|
|
4676
4676
|
...p,
|
|
4677
4677
|
children: [
|
|
4678
|
-
/* @__PURE__ */ E("div", { className: "
|
|
4678
|
+
/* @__PURE__ */ E("div", { className: "flex flex-col gap-1", children: [
|
|
4679
4679
|
i && /* @__PURE__ */ s(ui, { children: i }),
|
|
4680
|
-
|
|
4680
|
+
/* @__PURE__ */ s(di, { children: a })
|
|
4681
4681
|
] }),
|
|
4682
4682
|
c && /* @__PURE__ */ s(ci, { altText: o || "toast action", onClick: c, className: M(ue({ variant: f === "black" ? "solid" : "outline", size: "sm", theme: "secondary" })), children: d }),
|
|
4683
4683
|
u && /* @__PURE__ */ s(li, {})
|
|
@@ -4691,13 +4691,12 @@ function Au() {
|
|
|
4691
4691
|
] });
|
|
4692
4692
|
}
|
|
4693
4693
|
const Eu = ({ children: e }) => {
|
|
4694
|
-
const [t, n] =
|
|
4694
|
+
const [t, n] = Zt(null);
|
|
4695
4695
|
return sr(() => {
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
}, Hl = ["top", "right", "bottom", "left"], ae = Math.min, j = Math.max, et = Math.round, Ue = Math.floor, se = (e) => ({
|
|
4696
|
+
let r = document.getElementById("portal");
|
|
4697
|
+
r || (r = document.createElement("div"), r.id = "portal", document.body.appendChild(r)), n(r);
|
|
4698
|
+
}, []), t ? cr.createPortal(e, t) : null;
|
|
4699
|
+
}, Hl = ["top", "right", "bottom", "left"], ae = Math.min, j = Math.max, Je = Math.round, Ue = Math.floor, se = (e) => ({
|
|
4701
4700
|
x: e,
|
|
4702
4701
|
y: e
|
|
4703
4702
|
}), Vl = {
|
|
@@ -4709,7 +4708,7 @@ const Eu = ({ children: e }) => {
|
|
|
4709
4708
|
start: "end",
|
|
4710
4709
|
end: "start"
|
|
4711
4710
|
};
|
|
4712
|
-
function
|
|
4711
|
+
function kt(e, t, n) {
|
|
4713
4712
|
return j(e, ae(t, n));
|
|
4714
4713
|
}
|
|
4715
4714
|
function te(e, t) {
|
|
@@ -4737,13 +4736,13 @@ function $l(e, t, n) {
|
|
|
4737
4736
|
n === void 0 && (n = !1);
|
|
4738
4737
|
const r = Ne(e), o = yn(e), i = wn(o);
|
|
4739
4738
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4740
|
-
return t.reference[i] > t.floating[i] && (a =
|
|
4739
|
+
return t.reference[i] > t.floating[i] && (a = et(a)), [a, et(a)];
|
|
4741
4740
|
}
|
|
4742
4741
|
function Bl(e) {
|
|
4743
|
-
const t =
|
|
4744
|
-
return [
|
|
4742
|
+
const t = et(e);
|
|
4743
|
+
return [Ht(e), t, Ht(t)];
|
|
4745
4744
|
}
|
|
4746
|
-
function
|
|
4745
|
+
function Ht(e) {
|
|
4747
4746
|
return e.replace(/start|end/g, (t) => Fl[t]);
|
|
4748
4747
|
}
|
|
4749
4748
|
function Zl(e, t, n) {
|
|
@@ -4762,9 +4761,9 @@ function Zl(e, t, n) {
|
|
|
4762
4761
|
function Wl(e, t, n, r) {
|
|
4763
4762
|
const o = Ne(e);
|
|
4764
4763
|
let i = Zl(ne(e), n === "start", r);
|
|
4765
|
-
return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(
|
|
4764
|
+
return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(Ht)))), i;
|
|
4766
4765
|
}
|
|
4767
|
-
function
|
|
4766
|
+
function et(e) {
|
|
4768
4767
|
return e.replace(/left|right|bottom|top/g, (t) => Vl[t]);
|
|
4769
4768
|
}
|
|
4770
4769
|
function jl(e) {
|
|
@@ -4784,7 +4783,7 @@ function fi(e) {
|
|
|
4784
4783
|
left: e
|
|
4785
4784
|
};
|
|
4786
4785
|
}
|
|
4787
|
-
function
|
|
4786
|
+
function tt(e) {
|
|
4788
4787
|
const {
|
|
4789
4788
|
x: t,
|
|
4790
4789
|
y: n,
|
|
@@ -4927,7 +4926,7 @@ async function _e(e, t) {
|
|
|
4927
4926
|
elementContext: p = "floating",
|
|
4928
4927
|
altBoundary: m = !1,
|
|
4929
4928
|
padding: v = 0
|
|
4930
|
-
} = te(t, e), C = fi(v), g = c[m ? p === "floating" ? "reference" : "floating" : p], w =
|
|
4929
|
+
} = te(t, e), C = fi(v), g = c[m ? p === "floating" ? "reference" : "floating" : p], w = tt(await i.getClippingRect({
|
|
4931
4930
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
4932
4931
|
boundary: u,
|
|
4933
4932
|
rootBoundary: f,
|
|
@@ -4943,7 +4942,7 @@ async function _e(e, t) {
|
|
|
4943
4942
|
} : {
|
|
4944
4943
|
x: 1,
|
|
4945
4944
|
y: 1
|
|
4946
|
-
}, A =
|
|
4945
|
+
}, A = tt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4947
4946
|
elements: c,
|
|
4948
4947
|
rect: y,
|
|
4949
4948
|
offsetParent: x,
|
|
@@ -4980,7 +4979,7 @@ const Kl = (e) => ({
|
|
|
4980
4979
|
}, v = yn(o), C = wn(v), h = await a.getDimensions(u), g = v === "y", w = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", b = i.reference[C] + i.reference[v] - m[v] - i.floating[C], A = m[v] - i.reference[v], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
4981
4980
|
let P = R ? R[x] : 0;
|
|
4982
4981
|
(!P || !await (a.isElement == null ? void 0 : a.isElement(R))) && (P = c.floating[x] || i.floating[C]);
|
|
4983
|
-
const S = b / 2 - A / 2, O = P / 2 - h[C] / 2 - 1, L = ae(p[w], O), B = ae(p[y], O), $ = L, V = P - h[C] - B, T = P / 2 - h[C] / 2 + S, k =
|
|
4982
|
+
const S = b / 2 - A / 2, O = P / 2 - h[C] / 2 - 1, L = ae(p[w], O), B = ae(p[y], O), $ = L, V = P - h[C] - B, T = P / 2 - h[C] / 2 + S, k = kt($, T, V), D = !d.arrow && Ne(o) != null && T !== k && i.reference[C] / 2 - (T < $ ? L : B) - h[C] / 2 < 0, F = D ? T < $ ? T - $ : T - V : 0;
|
|
4984
4983
|
return {
|
|
4985
4984
|
[v]: m[v] + F,
|
|
4986
4985
|
data: {
|
|
@@ -5017,7 +5016,7 @@ const Kl = (e) => ({
|
|
|
5017
5016
|
} = te(e, t);
|
|
5018
5017
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
5019
5018
|
return {};
|
|
5020
|
-
const w = ne(o), y = ce(c), x = ne(c) === c, b = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), A = m || (x || !h ? [
|
|
5019
|
+
const w = ne(o), y = ce(c), x = ne(c) === c, b = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), A = m || (x || !h ? [et(c)] : Bl(c)), R = C !== "none";
|
|
5021
5020
|
!m && R && A.push(...Wl(c, h, C, b));
|
|
5022
5021
|
const P = [c, ...A], S = await _e(t, g), O = [];
|
|
5023
5022
|
let L = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -5207,11 +5206,11 @@ const Xl = function(e) {
|
|
|
5207
5206
|
let v = u[m], C = u[p];
|
|
5208
5207
|
if (i) {
|
|
5209
5208
|
const g = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", y = v + f[g], x = v - f[w];
|
|
5210
|
-
v =
|
|
5209
|
+
v = kt(y, v, x);
|
|
5211
5210
|
}
|
|
5212
5211
|
if (a) {
|
|
5213
5212
|
const g = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", y = C + f[g], x = C - f[w];
|
|
5214
|
-
C =
|
|
5213
|
+
C = kt(y, C, x);
|
|
5215
5214
|
}
|
|
5216
5215
|
const h = c.fn({
|
|
5217
5216
|
...t,
|
|
@@ -5314,7 +5313,7 @@ const Xl = function(e) {
|
|
|
5314
5313
|
}
|
|
5315
5314
|
};
|
|
5316
5315
|
};
|
|
5317
|
-
function
|
|
5316
|
+
function dt() {
|
|
5318
5317
|
return typeof window < "u";
|
|
5319
5318
|
}
|
|
5320
5319
|
function Se(e) {
|
|
@@ -5329,16 +5328,16 @@ function J(e) {
|
|
|
5329
5328
|
return (t = (pi(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5330
5329
|
}
|
|
5331
5330
|
function pi(e) {
|
|
5332
|
-
return
|
|
5331
|
+
return dt() ? e instanceof Node || e instanceof U(e).Node : !1;
|
|
5333
5332
|
}
|
|
5334
5333
|
function G(e) {
|
|
5335
|
-
return
|
|
5334
|
+
return dt() ? e instanceof Element || e instanceof U(e).Element : !1;
|
|
5336
5335
|
}
|
|
5337
5336
|
function Q(e) {
|
|
5338
|
-
return
|
|
5337
|
+
return dt() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
|
|
5339
5338
|
}
|
|
5340
5339
|
function tr(e) {
|
|
5341
|
-
return !
|
|
5340
|
+
return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
|
|
5342
5341
|
}
|
|
5343
5342
|
function ke(e) {
|
|
5344
5343
|
const {
|
|
@@ -5352,7 +5351,7 @@ function ke(e) {
|
|
|
5352
5351
|
function e1(e) {
|
|
5353
5352
|
return ["table", "td", "th"].includes(Se(e));
|
|
5354
5353
|
}
|
|
5355
|
-
function
|
|
5354
|
+
function ft(e) {
|
|
5356
5355
|
return [":popover-open", ":modal"].some((t) => {
|
|
5357
5356
|
try {
|
|
5358
5357
|
return e.matches(t);
|
|
@@ -5370,7 +5369,7 @@ function t1(e) {
|
|
|
5370
5369
|
for (; Q(t) && !Ee(t); ) {
|
|
5371
5370
|
if (xn(t))
|
|
5372
5371
|
return t;
|
|
5373
|
-
if (
|
|
5372
|
+
if (ft(t))
|
|
5374
5373
|
return null;
|
|
5375
5374
|
t = le(t);
|
|
5376
5375
|
}
|
|
@@ -5385,7 +5384,7 @@ function Ee(e) {
|
|
|
5385
5384
|
function z(e) {
|
|
5386
5385
|
return U(e).getComputedStyle(e);
|
|
5387
5386
|
}
|
|
5388
|
-
function
|
|
5387
|
+
function pt(e) {
|
|
5389
5388
|
return G(e) ? {
|
|
5390
5389
|
scrollLeft: e.scrollLeft,
|
|
5391
5390
|
scrollTop: e.scrollTop
|
|
@@ -5415,18 +5414,18 @@ function Ie(e, t, n) {
|
|
|
5415
5414
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5416
5415
|
const o = hi(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = U(o);
|
|
5417
5416
|
if (i) {
|
|
5418
|
-
const c =
|
|
5417
|
+
const c = Vt(a);
|
|
5419
5418
|
return t.concat(a, a.visualViewport || [], ke(o) ? o : [], c && n ? Ie(c) : []);
|
|
5420
5419
|
}
|
|
5421
5420
|
return t.concat(o, Ie(o, [], n));
|
|
5422
5421
|
}
|
|
5423
|
-
function
|
|
5422
|
+
function Vt(e) {
|
|
5424
5423
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5425
5424
|
}
|
|
5426
5425
|
function mi(e) {
|
|
5427
5426
|
const t = z(e);
|
|
5428
5427
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5429
|
-
const o = Q(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, c =
|
|
5428
|
+
const o = Q(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, c = Je(n) !== i || Je(r) !== a;
|
|
5430
5429
|
return c && (n = i, r = a), {
|
|
5431
5430
|
width: n,
|
|
5432
5431
|
height: r,
|
|
@@ -5445,7 +5444,7 @@ function be(e) {
|
|
|
5445
5444
|
height: o,
|
|
5446
5445
|
$: i
|
|
5447
5446
|
} = mi(t);
|
|
5448
|
-
let a = (i ?
|
|
5447
|
+
let a = (i ? Je(n.width) : n.width) / r, c = (i ? Je(n.height) : n.height) / o;
|
|
5449
5448
|
return (!a || !Number.isFinite(a)) && (a = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
5450
5449
|
x: a,
|
|
5451
5450
|
y: c
|
|
@@ -5471,13 +5470,13 @@ function fe(e, t, n, r) {
|
|
|
5471
5470
|
let d = (o.left + c.x) / a.x, u = (o.top + c.y) / a.y, f = o.width / a.x, p = o.height / a.y;
|
|
5472
5471
|
if (i) {
|
|
5473
5472
|
const m = U(i), v = r && G(r) ? U(r) : r;
|
|
5474
|
-
let C = m, h =
|
|
5473
|
+
let C = m, h = Vt(C);
|
|
5475
5474
|
for (; h && r && v !== C; ) {
|
|
5476
5475
|
const g = be(h), w = h.getBoundingClientRect(), y = z(h), x = w.left + (h.clientLeft + parseFloat(y.paddingLeft)) * g.x, b = w.top + (h.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
5477
|
-
d *= g.x, u *= g.y, f *= g.x, p *= g.y, d += x, u += b, C = U(h), h =
|
|
5476
|
+
d *= g.x, u *= g.y, f *= g.x, p *= g.y, d += x, u += b, C = U(h), h = Vt(C);
|
|
5478
5477
|
}
|
|
5479
5478
|
}
|
|
5480
|
-
return
|
|
5479
|
+
return tt({
|
|
5481
5480
|
width: f,
|
|
5482
5481
|
height: p,
|
|
5483
5482
|
x: d,
|
|
@@ -5491,7 +5490,7 @@ function o1(e) {
|
|
|
5491
5490
|
offsetParent: r,
|
|
5492
5491
|
strategy: o
|
|
5493
5492
|
} = e;
|
|
5494
|
-
const i = o === "fixed", a = J(r), c = t ?
|
|
5493
|
+
const i = o === "fixed", a = J(r), c = t ? ft(t.floating) : !1;
|
|
5495
5494
|
if (r === a || c && i)
|
|
5496
5495
|
return n;
|
|
5497
5496
|
let d = {
|
|
@@ -5499,7 +5498,7 @@ function o1(e) {
|
|
|
5499
5498
|
scrollTop: 0
|
|
5500
5499
|
}, u = se(1);
|
|
5501
5500
|
const f = se(0), p = Q(r);
|
|
5502
|
-
if ((p || !p && !i) && ((Se(r) !== "body" || ke(a)) && (d =
|
|
5501
|
+
if ((p || !p && !i) && ((Se(r) !== "body" || ke(a)) && (d = pt(r)), Q(r))) {
|
|
5503
5502
|
const m = fe(r);
|
|
5504
5503
|
u = be(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
|
|
5505
5504
|
}
|
|
@@ -5513,13 +5512,13 @@ function o1(e) {
|
|
|
5513
5512
|
function i1(e) {
|
|
5514
5513
|
return Array.from(e.getClientRects());
|
|
5515
5514
|
}
|
|
5516
|
-
function
|
|
5517
|
-
const n =
|
|
5515
|
+
function Ft(e, t) {
|
|
5516
|
+
const n = pt(e).scrollLeft;
|
|
5518
5517
|
return t ? t.left + n : fe(J(e)).left + n;
|
|
5519
5518
|
}
|
|
5520
5519
|
function a1(e) {
|
|
5521
|
-
const t = J(e), n =
|
|
5522
|
-
let a = -n.scrollLeft +
|
|
5520
|
+
const t = J(e), n = pt(e), r = e.ownerDocument.body, o = j(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = j(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5521
|
+
let a = -n.scrollLeft + Ft(e);
|
|
5523
5522
|
const c = -n.scrollTop;
|
|
5524
5523
|
return z(r).direction === "rtl" && (a += j(t.clientWidth, r.clientWidth) - o), {
|
|
5525
5524
|
width: o,
|
|
@@ -5568,7 +5567,7 @@ function nr(e, t, n) {
|
|
|
5568
5567
|
y: t.y - o.y
|
|
5569
5568
|
};
|
|
5570
5569
|
}
|
|
5571
|
-
return
|
|
5570
|
+
return tt(r);
|
|
5572
5571
|
}
|
|
5573
5572
|
function gi(e, t) {
|
|
5574
5573
|
const n = le(e);
|
|
@@ -5594,7 +5593,7 @@ function u1(e) {
|
|
|
5594
5593
|
rootBoundary: r,
|
|
5595
5594
|
strategy: o
|
|
5596
5595
|
} = e;
|
|
5597
|
-
const a = [...n === "clippingAncestors" ?
|
|
5596
|
+
const a = [...n === "clippingAncestors" ? ft(t) ? [] : l1(t, this._c) : [].concat(n), r], c = a[0], d = a.reduce((u, f) => {
|
|
5598
5597
|
const p = nr(t, f, o);
|
|
5599
5598
|
return u.top = j(p.top, u.top), u.right = ae(p.right, u.right), u.bottom = ae(p.bottom, u.bottom), u.left = j(p.left, u.left), u;
|
|
5600
5599
|
}, nr(t, c, o));
|
|
@@ -5623,15 +5622,15 @@ function f1(e, t, n) {
|
|
|
5623
5622
|
};
|
|
5624
5623
|
const d = se(0);
|
|
5625
5624
|
if (r || !r && !i)
|
|
5626
|
-
if ((Se(t) !== "body" || ke(o)) && (c =
|
|
5625
|
+
if ((Se(t) !== "body" || ke(o)) && (c = pt(t)), r) {
|
|
5627
5626
|
const v = fe(t, !0, i, t);
|
|
5628
5627
|
d.x = v.x + t.clientLeft, d.y = v.y + t.clientTop;
|
|
5629
|
-
} else o && (d.x =
|
|
5628
|
+
} else o && (d.x = Ft(o));
|
|
5630
5629
|
let u = 0, f = 0;
|
|
5631
5630
|
if (o && !r && !i) {
|
|
5632
5631
|
const v = o.getBoundingClientRect();
|
|
5633
5632
|
f = v.top + c.scrollTop, u = v.left + c.scrollLeft - // RTL <body> scrollbar.
|
|
5634
|
-
|
|
5633
|
+
Ft(o, v);
|
|
5635
5634
|
}
|
|
5636
5635
|
const p = a.left + c.scrollLeft - d.x - u, m = a.top + c.scrollTop - d.y - f;
|
|
5637
5636
|
return {
|
|
@@ -5641,7 +5640,7 @@ function f1(e, t, n) {
|
|
|
5641
5640
|
height: a.height
|
|
5642
5641
|
};
|
|
5643
5642
|
}
|
|
5644
|
-
function
|
|
5643
|
+
function Pt(e) {
|
|
5645
5644
|
return z(e).position === "static";
|
|
5646
5645
|
}
|
|
5647
5646
|
function rr(e, t) {
|
|
@@ -5654,21 +5653,21 @@ function rr(e, t) {
|
|
|
5654
5653
|
}
|
|
5655
5654
|
function Ci(e, t) {
|
|
5656
5655
|
const n = U(e);
|
|
5657
|
-
if (
|
|
5656
|
+
if (ft(e))
|
|
5658
5657
|
return n;
|
|
5659
5658
|
if (!Q(e)) {
|
|
5660
5659
|
let o = le(e);
|
|
5661
5660
|
for (; o && !Ee(o); ) {
|
|
5662
|
-
if (G(o) && !
|
|
5661
|
+
if (G(o) && !Pt(o))
|
|
5663
5662
|
return o;
|
|
5664
5663
|
o = le(o);
|
|
5665
5664
|
}
|
|
5666
5665
|
return n;
|
|
5667
5666
|
}
|
|
5668
5667
|
let r = rr(e, t);
|
|
5669
|
-
for (; r && e1(r) &&
|
|
5668
|
+
for (; r && e1(r) && Pt(r); )
|
|
5670
5669
|
r = rr(r, t);
|
|
5671
|
-
return r && Ee(r) &&
|
|
5670
|
+
return r && Ee(r) && Pt(r) && !xn(r) ? n : r || t1(e) || n;
|
|
5672
5671
|
}
|
|
5673
5672
|
const p1 = async function(e) {
|
|
5674
5673
|
const t = this.getOffsetParent || Ci, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -5793,7 +5792,7 @@ const C1 = Xl, w1 = ql, y1 = Yl, x1 = Jl, b1 = Gl, or = Kl, A1 = Ql, E1 = (e, t,
|
|
|
5793
5792
|
});
|
|
5794
5793
|
};
|
|
5795
5794
|
var Ge = typeof document < "u" ? Yi : sr;
|
|
5796
|
-
function
|
|
5795
|
+
function nt(e, t) {
|
|
5797
5796
|
if (e === t)
|
|
5798
5797
|
return !0;
|
|
5799
5798
|
if (typeof e != typeof t)
|
|
@@ -5805,7 +5804,7 @@ function rt(e, t) {
|
|
|
5805
5804
|
if (Array.isArray(e)) {
|
|
5806
5805
|
if (n = e.length, n !== t.length) return !1;
|
|
5807
5806
|
for (r = n; r-- !== 0; )
|
|
5808
|
-
if (!
|
|
5807
|
+
if (!nt(e[r], t[r]))
|
|
5809
5808
|
return !1;
|
|
5810
5809
|
return !0;
|
|
5811
5810
|
}
|
|
@@ -5816,7 +5815,7 @@ function rt(e, t) {
|
|
|
5816
5815
|
return !1;
|
|
5817
5816
|
for (r = n; r-- !== 0; ) {
|
|
5818
5817
|
const i = o[r];
|
|
5819
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
5818
|
+
if (!(i === "_owner" && e.$$typeof) && !nt(e[i], t[i]))
|
|
5820
5819
|
return !1;
|
|
5821
5820
|
}
|
|
5822
5821
|
return !0;
|
|
@@ -5830,7 +5829,7 @@ function ir(e, t) {
|
|
|
5830
5829
|
const n = wi(e);
|
|
5831
5830
|
return Math.round(t * n) / n;
|
|
5832
5831
|
}
|
|
5833
|
-
function
|
|
5832
|
+
function Tt(e) {
|
|
5834
5833
|
const t = l.useRef(e);
|
|
5835
5834
|
return Ge(() => {
|
|
5836
5835
|
t.current = e;
|
|
@@ -5858,12 +5857,12 @@ function R1(e) {
|
|
|
5858
5857
|
middlewareData: {},
|
|
5859
5858
|
isPositioned: !1
|
|
5860
5859
|
}), [m, v] = l.useState(r);
|
|
5861
|
-
|
|
5860
|
+
nt(m, r) || v(r);
|
|
5862
5861
|
const [C, h] = l.useState(null), [g, w] = l.useState(null), y = l.useCallback((N) => {
|
|
5863
5862
|
N !== R.current && (R.current = N, h(N));
|
|
5864
5863
|
}, []), x = l.useCallback((N) => {
|
|
5865
5864
|
N !== P.current && (P.current = N, w(N));
|
|
5866
|
-
}, []), b = i || C, A = a || g, R = l.useRef(null), P = l.useRef(null), S = l.useRef(f), O = d != null, L =
|
|
5865
|
+
}, []), b = i || C, A = a || g, R = l.useRef(null), P = l.useRef(null), S = l.useRef(f), O = d != null, L = Tt(d), B = Tt(o), $ = Tt(u), V = l.useCallback(() => {
|
|
5867
5866
|
if (!R.current || !P.current)
|
|
5868
5867
|
return;
|
|
5869
5868
|
const N = {
|
|
@@ -5880,7 +5879,7 @@ function R1(e) {
|
|
|
5880
5879
|
// setting it to `true` when `open === false` (must be specified).
|
|
5881
5880
|
isPositioned: $.current !== !1
|
|
5882
5881
|
};
|
|
5883
|
-
T.current && !
|
|
5882
|
+
T.current && !nt(S.current, K) && (S.current = K, Wt.flushSync(() => {
|
|
5884
5883
|
p(K);
|
|
5885
5884
|
}));
|
|
5886
5885
|
});
|
|
@@ -6264,9 +6263,9 @@ function Mi(e) {
|
|
|
6264
6263
|
const [t, n = "center"] = e.split("-");
|
|
6265
6264
|
return [t, n];
|
|
6266
6265
|
}
|
|
6267
|
-
var U1 = Ei, K1 = Pi, Y1 = Ti, G1 = Si, [
|
|
6266
|
+
var U1 = Ei, K1 = Pi, Y1 = Ti, G1 = Si, [ht, Ru] = Pe("Tooltip", [
|
|
6268
6267
|
bi
|
|
6269
|
-
]),
|
|
6268
|
+
]), mt = bi(), Oi = "TooltipProvider", z1 = 700, $t = "tooltip.open", [X1, Pn] = ht(Oi), Li = (e) => {
|
|
6270
6269
|
const {
|
|
6271
6270
|
__scopeTooltip: t,
|
|
6272
6271
|
delayDuration: n = z1,
|
|
@@ -6302,7 +6301,7 @@ var U1 = Ei, K1 = Pi, Y1 = Ti, G1 = Si, [mt, Ru] = Pe("Tooltip", [
|
|
|
6302
6301
|
);
|
|
6303
6302
|
};
|
|
6304
6303
|
Li.displayName = Oi;
|
|
6305
|
-
var
|
|
6304
|
+
var vt = "Tooltip", [q1, gt] = ht(vt), Di = (e) => {
|
|
6306
6305
|
const {
|
|
6307
6306
|
__scopeTooltip: t,
|
|
6308
6307
|
children: n,
|
|
@@ -6311,11 +6310,11 @@ var gt = "Tooltip", [q1, Ct] = mt(gt), Di = (e) => {
|
|
|
6311
6310
|
onOpenChange: i,
|
|
6312
6311
|
disableHoverableContent: a,
|
|
6313
6312
|
delayDuration: c
|
|
6314
|
-
} = e, d = Pn(
|
|
6313
|
+
} = e, d = Pn(vt, e.__scopeTooltip), u = mt(t), [f, p] = l.useState(null), m = we(), v = l.useRef(0), C = a ?? d.disableHoverableContent, h = c ?? d.delayDuration, g = l.useRef(!1), [w = !1, y] = Te({
|
|
6315
6314
|
prop: r,
|
|
6316
6315
|
defaultProp: o,
|
|
6317
6316
|
onChange: (P) => {
|
|
6318
|
-
P ? (d.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
6317
|
+
P ? (d.onOpen(), document.dispatchEvent(new CustomEvent($t))) : d.onClose(), i == null || i(P);
|
|
6319
6318
|
}
|
|
6320
6319
|
}), x = l.useMemo(() => w ? g.current ? "delayed-open" : "instant-open" : "closed", [w]), b = l.useCallback(() => {
|
|
6321
6320
|
window.clearTimeout(v.current), g.current = !1, y(!0);
|
|
@@ -6348,10 +6347,10 @@ var gt = "Tooltip", [q1, Ct] = mt(gt), Di = (e) => {
|
|
|
6348
6347
|
}
|
|
6349
6348
|
) });
|
|
6350
6349
|
};
|
|
6351
|
-
Di.displayName =
|
|
6352
|
-
var
|
|
6350
|
+
Di.displayName = vt;
|
|
6351
|
+
var Bt = "TooltipTrigger", _i = l.forwardRef(
|
|
6353
6352
|
(e, t) => {
|
|
6354
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6353
|
+
const { __scopeTooltip: n, ...r } = e, o = gt(Bt, n), i = Pn(Bt, n), a = mt(n), c = l.useRef(null), d = W(t, c, o.onTriggerChange), u = l.useRef(!1), f = l.useRef(!1), p = l.useCallback(() => u.current = !1, []);
|
|
6355
6354
|
return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ s(K1, { asChild: !0, ...a, children: /* @__PURE__ */ s(
|
|
6356
6355
|
H.button,
|
|
6357
6356
|
{
|
|
@@ -6377,16 +6376,16 @@ var Zt = "TooltipTrigger", _i = l.forwardRef(
|
|
|
6377
6376
|
) });
|
|
6378
6377
|
}
|
|
6379
6378
|
);
|
|
6380
|
-
_i.displayName =
|
|
6381
|
-
var Q1 = "TooltipPortal", [Pu, J1] =
|
|
6379
|
+
_i.displayName = Bt;
|
|
6380
|
+
var Q1 = "TooltipPortal", [Pu, J1] = ht(Q1, {
|
|
6382
6381
|
forceMount: void 0
|
|
6383
6382
|
}), Re = "TooltipContent", Ii = l.forwardRef(
|
|
6384
6383
|
(e, t) => {
|
|
6385
|
-
const n = J1(Re, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...i } = e, a =
|
|
6384
|
+
const n = J1(Re, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...i } = e, a = gt(Re, e.__scopeTooltip);
|
|
6386
6385
|
return /* @__PURE__ */ s(pe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ s(ki, { side: o, ...i, ref: t }) : /* @__PURE__ */ s(eu, { side: o, ...i, ref: t }) });
|
|
6387
6386
|
}
|
|
6388
6387
|
), eu = l.forwardRef((e, t) => {
|
|
6389
|
-
const n =
|
|
6388
|
+
const n = gt(Re, e.__scopeTooltip), r = Pn(Re, e.__scopeTooltip), o = l.useRef(null), i = W(t, o), [a, c] = l.useState(null), { trigger: d, onClose: u } = n, f = o.current, { onPointerInTransitChange: p } = r, m = l.useCallback(() => {
|
|
6390
6389
|
c(null), p(!1);
|
|
6391
6390
|
}, [p]), v = l.useCallback(
|
|
6392
6391
|
(C, h) => {
|
|
@@ -6411,7 +6410,7 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6411
6410
|
return document.addEventListener("pointermove", C), () => document.removeEventListener("pointermove", C);
|
|
6412
6411
|
}
|
|
6413
6412
|
}, [d, f, a, u, m]), /* @__PURE__ */ s(ki, { ...e, ref: i });
|
|
6414
|
-
}), [tu, nu] =
|
|
6413
|
+
}), [tu, nu] = ht(vt, { isInside: !1 }), ki = l.forwardRef(
|
|
6415
6414
|
(e, t) => {
|
|
6416
6415
|
const {
|
|
6417
6416
|
__scopeTooltip: n,
|
|
@@ -6420,8 +6419,8 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6420
6419
|
onEscapeKeyDown: i,
|
|
6421
6420
|
onPointerDownOutside: a,
|
|
6422
6421
|
...c
|
|
6423
|
-
} = e, d =
|
|
6424
|
-
return l.useEffect(() => (document.addEventListener(
|
|
6422
|
+
} = e, d = gt(Re, n), u = mt(n), { onClose: f } = d;
|
|
6423
|
+
return l.useEffect(() => (document.addEventListener($t, f), () => document.removeEventListener($t, f)), [f]), l.useEffect(() => {
|
|
6425
6424
|
if (d.trigger) {
|
|
6426
6425
|
const p = (m) => {
|
|
6427
6426
|
const v = m.target;
|
|
@@ -6430,7 +6429,7 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6430
6429
|
return window.addEventListener("scroll", p, { capture: !0 }), () => window.removeEventListener("scroll", p, { capture: !0 });
|
|
6431
6430
|
}
|
|
6432
6431
|
}, [d.trigger, f]), /* @__PURE__ */ s(
|
|
6433
|
-
|
|
6432
|
+
at,
|
|
6434
6433
|
{
|
|
6435
6434
|
asChild: !0,
|
|
6436
6435
|
disableOutsidePointerEvents: !1,
|
|
@@ -6466,7 +6465,7 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6466
6465
|
Ii.displayName = Re;
|
|
6467
6466
|
var Hi = "TooltipArrow", ru = l.forwardRef(
|
|
6468
6467
|
(e, t) => {
|
|
6469
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6468
|
+
const { __scopeTooltip: n, ...r } = e, o = mt(n);
|
|
6470
6469
|
return nu(
|
|
6471
6470
|
Hi,
|
|
6472
6471
|
n
|
|
@@ -6607,7 +6606,7 @@ const Tu = uu, Nu = du, Su = fu, pu = l.forwardRef(({ className: e, variant: t =
|
|
|
6607
6606
|
pu.displayName = Vi.displayName;
|
|
6608
6607
|
export {
|
|
6609
6608
|
yu as A,
|
|
6610
|
-
|
|
6609
|
+
Mt as B,
|
|
6611
6610
|
fl as D,
|
|
6612
6611
|
jt as I,
|
|
6613
6612
|
pl as M,
|