boottent-design 0.1.13 → 0.1.15
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-C9dzv_CG.cjs → index-BWKZX0-5.cjs} +1 -1
- package/dist/{index-eA7KeYI8.js → index-DZTfWalm.js} +1 -1
- package/dist/portal-manager-9WO01tNb.cjs +1 -0
- package/dist/portal-manager-nNJ4SIa2.js +95 -0
- package/dist/portal-provider-Cb0Fq_yq.cjs +1 -0
- package/dist/portal-provider-CkucnuYS.js +110 -0
- package/dist/{tooltip-Beq86Qug.js → tooltip-BYAvA36l.js} +596 -592
- package/dist/{tooltip-DWrSWVcc.cjs → tooltip-BeNesDLB.cjs} +5 -5
- package/dist/types/hooks.d.ts +14 -13
- package/dist/types/main.d.ts +36 -19
- package/dist/types/types.d.ts +25 -11
- package/dist/types/ui.d.ts +12 -10
- 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,8 +2,8 @@ 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
|
|
6
|
-
import * as
|
|
5
|
+
import _, { useState as Wt, Fragment as Ki, useEffect as sr, useLayoutEffect as Yi } from "react";
|
|
6
|
+
import * as jt from "react-dom";
|
|
7
7
|
import cr from "react-dom";
|
|
8
8
|
function Gi({
|
|
9
9
|
size: e = "16",
|
|
@@ -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] = Wt(!1);
|
|
255
255
|
return /* @__PURE__ */ E(
|
|
256
256
|
"svg",
|
|
257
257
|
{
|
|
@@ -1391,10 +1391,10 @@ var lr = {
|
|
|
1391
1391
|
className: void 0,
|
|
1392
1392
|
style: void 0,
|
|
1393
1393
|
attr: void 0
|
|
1394
|
-
}, In =
|
|
1395
|
-
function
|
|
1394
|
+
}, In = _.createContext && /* @__PURE__ */ _.createContext(lr), Ma = ["attr", "size", "title"];
|
|
1395
|
+
function La(e, t) {
|
|
1396
1396
|
if (e == null) return {};
|
|
1397
|
-
var n =
|
|
1397
|
+
var n = Oa(e, t), r, o;
|
|
1398
1398
|
if (Object.getOwnPropertySymbols) {
|
|
1399
1399
|
var i = Object.getOwnPropertySymbols(e);
|
|
1400
1400
|
for (o = 0; o < i.length; o++)
|
|
@@ -1402,7 +1402,7 @@ function Oa(e, t) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
return n;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function Oa(e, t) {
|
|
1406
1406
|
if (e == null) return {};
|
|
1407
1407
|
var n = {};
|
|
1408
1408
|
for (var r in e)
|
|
@@ -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__ */
|
|
1464
|
+
return e && e.map((t, n) => /* @__PURE__ */ _.createElement(t.tag, Xe({
|
|
1465
1465
|
key: n
|
|
1466
1466
|
}, t.attr), ur(t.child)));
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1469
|
-
return (t) => /* @__PURE__ */
|
|
1470
|
-
attr:
|
|
1468
|
+
function rt(e) {
|
|
1469
|
+
return (t) => /* @__PURE__ */ _.createElement(ka, ze({
|
|
1470
|
+
attr: Xe({}, e.attr)
|
|
1471
1471
|
}, t), ur(e.child));
|
|
1472
1472
|
}
|
|
1473
1473
|
function ka(e) {
|
|
@@ -1476,28 +1476,28 @@ function ka(e) {
|
|
|
1476
1476
|
attr: r,
|
|
1477
1477
|
size: o,
|
|
1478
1478
|
title: i
|
|
1479
|
-
} = e, a =
|
|
1480
|
-
return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */
|
|
1479
|
+
} = e, a = La(e, Ma), c = o || n.size || "1em", d;
|
|
1480
|
+
return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ _.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,
|
|
1490
1490
|
width: c,
|
|
1491
1491
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1492
|
-
}), i && /* @__PURE__ */
|
|
1492
|
+
}), i && /* @__PURE__ */ _.createElement("title", null, i), e.children);
|
|
1493
1493
|
};
|
|
1494
|
-
return In !== void 0 ? /* @__PURE__ */
|
|
1494
|
+
return In !== void 0 ? /* @__PURE__ */ _.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 });
|
|
@@ -1723,7 +1723,7 @@ function za({
|
|
|
1723
1723
|
}
|
|
1724
1724
|
);
|
|
1725
1725
|
}
|
|
1726
|
-
const
|
|
1726
|
+
const Ut = {
|
|
1727
1727
|
ArrowDown: Gi,
|
|
1728
1728
|
ArrowUp: ra,
|
|
1729
1729
|
ArrowLeft: qi,
|
|
@@ -1789,8 +1789,8 @@ function Pe(e, t = []) {
|
|
|
1789
1789
|
const c = l.createContext(a), d = n.length;
|
|
1790
1790
|
n = [...n, a];
|
|
1791
1791
|
const u = (p) => {
|
|
1792
|
-
var
|
|
1793
|
-
const { scope: m, children: v, ...C } = p, h = ((
|
|
1792
|
+
var y;
|
|
1793
|
+
const { scope: m, children: v, ...C } = p, h = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[d]) || c, g = l.useMemo(() => C, Object.values(C));
|
|
1794
1794
|
return /* @__PURE__ */ s(h.Provider, { value: g, children: v });
|
|
1795
1795
|
};
|
|
1796
1796
|
u.displayName = i + "Provider";
|
|
@@ -1911,9 +1911,9 @@ var St = l.forwardRef((e, t) => {
|
|
|
1911
1911
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
1912
1912
|
});
|
|
1913
1913
|
St.displayName = "SlotClone";
|
|
1914
|
-
var
|
|
1914
|
+
var Kt = ({ children: e }) => /* @__PURE__ */ s(De, { children: e });
|
|
1915
1915
|
function ts(e) {
|
|
1916
|
-
return l.isValidElement(e) && e.type ===
|
|
1916
|
+
return l.isValidElement(e) && e.type === Kt;
|
|
1917
1917
|
}
|
|
1918
1918
|
function ns(e, t) {
|
|
1919
1919
|
const n = { ...t };
|
|
@@ -1935,32 +1935,32 @@ function fr(e) {
|
|
|
1935
1935
|
t,
|
|
1936
1936
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
1937
1937
|
), a = (v) => {
|
|
1938
|
-
const { scope: C, children: h } = v, g =
|
|
1939
|
-
return /* @__PURE__ */ s(o, { scope: C, itemMap:
|
|
1938
|
+
const { scope: C, children: h } = v, g = _.useRef(null), y = _.useRef(/* @__PURE__ */ new Map()).current;
|
|
1939
|
+
return /* @__PURE__ */ s(o, { scope: C, itemMap: y, collectionRef: g, children: h });
|
|
1940
1940
|
};
|
|
1941
1941
|
a.displayName = t;
|
|
1942
|
-
const c = e + "CollectionSlot", d =
|
|
1942
|
+
const c = e + "CollectionSlot", d = _.forwardRef(
|
|
1943
1943
|
(v, C) => {
|
|
1944
|
-
const { scope: h, children: g } = v,
|
|
1945
|
-
return /* @__PURE__ */ s(Ae, { ref:
|
|
1944
|
+
const { scope: h, children: g } = v, y = i(c, h), w = W(C, y.collectionRef);
|
|
1945
|
+
return /* @__PURE__ */ s(Ae, { ref: w, children: g });
|
|
1946
1946
|
}
|
|
1947
1947
|
);
|
|
1948
1948
|
d.displayName = c;
|
|
1949
|
-
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p =
|
|
1949
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = _.forwardRef(
|
|
1950
1950
|
(v, C) => {
|
|
1951
|
-
const { scope: h, children: g, ...
|
|
1952
|
-
return
|
|
1951
|
+
const { scope: h, children: g, ...y } = v, w = _.useRef(null), x = W(C, w), b = i(u, h);
|
|
1952
|
+
return _.useEffect(() => (b.itemMap.set(w, { ref: w, ...y }), () => void b.itemMap.delete(w))), /* @__PURE__ */ s(Ae, { [f]: "", ref: x, children: g });
|
|
1953
1953
|
}
|
|
1954
1954
|
);
|
|
1955
1955
|
p.displayName = u;
|
|
1956
1956
|
function m(v) {
|
|
1957
1957
|
const C = i(e + "CollectionConsumer", v);
|
|
1958
|
-
return
|
|
1958
|
+
return _.useCallback(() => {
|
|
1959
1959
|
const g = C.collectionRef.current;
|
|
1960
1960
|
if (!g) return [];
|
|
1961
|
-
const
|
|
1961
|
+
const y = Array.from(g.querySelectorAll(`[${f}]`));
|
|
1962
1962
|
return Array.from(C.itemMap.values()).sort(
|
|
1963
|
-
(b, A) =>
|
|
1963
|
+
(b, A) => y.indexOf(b.ref.current) - y.indexOf(A.ref.current)
|
|
1964
1964
|
);
|
|
1965
1965
|
}, [C.collectionRef, C.itemMap]);
|
|
1966
1966
|
}
|
|
@@ -1970,7 +1970,7 @@ function fr(e) {
|
|
|
1970
1970
|
r
|
|
1971
1971
|
];
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function I(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1974
1974
|
return function(o) {
|
|
1975
1975
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
1976
1976
|
return t == null ? void 0 : t(o);
|
|
@@ -2037,7 +2037,7 @@ var is = [
|
|
|
2037
2037
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
2038
2038
|
}, {});
|
|
2039
2039
|
function pr(e, t) {
|
|
2040
|
-
e &&
|
|
2040
|
+
e && jt.flushSync(() => e.dispatchEvent(t));
|
|
2041
2041
|
}
|
|
2042
2042
|
var ee = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
2043
2043
|
};
|
|
@@ -2114,7 +2114,7 @@ function we(e) {
|
|
|
2114
2114
|
n((r) => r ?? String(us++));
|
|
2115
2115
|
}, [e]), t ? `radix-${t}` : "";
|
|
2116
2116
|
}
|
|
2117
|
-
var
|
|
2117
|
+
var Yt = "Collapsible", [ds, hr] = Pe(Yt), [fs, Gt] = ds(Yt), mr = l.forwardRef(
|
|
2118
2118
|
(e, t) => {
|
|
2119
2119
|
const {
|
|
2120
2120
|
__scopeCollapsible: n,
|
|
@@ -2139,7 +2139,7 @@ var Kt = "Collapsible", [ds, hr] = Pe(Kt), [fs, Yt] = ds(Kt), mr = l.forwardRef(
|
|
|
2139
2139
|
children: /* @__PURE__ */ s(
|
|
2140
2140
|
H.div,
|
|
2141
2141
|
{
|
|
2142
|
-
"data-state":
|
|
2142
|
+
"data-state": Xt(d),
|
|
2143
2143
|
"data-disabled": i ? "" : void 0,
|
|
2144
2144
|
...c,
|
|
2145
2145
|
ref: t
|
|
@@ -2149,53 +2149,53 @@ var Kt = "Collapsible", [ds, hr] = Pe(Kt), [fs, Yt] = ds(Kt), mr = l.forwardRef(
|
|
|
2149
2149
|
);
|
|
2150
2150
|
}
|
|
2151
2151
|
);
|
|
2152
|
-
mr.displayName =
|
|
2152
|
+
mr.displayName = Yt;
|
|
2153
2153
|
var vr = "CollapsibleTrigger", gr = l.forwardRef(
|
|
2154
2154
|
(e, t) => {
|
|
2155
|
-
const { __scopeCollapsible: n, ...r } = e, o =
|
|
2155
|
+
const { __scopeCollapsible: n, ...r } = e, o = Gt(vr, n);
|
|
2156
2156
|
return /* @__PURE__ */ s(
|
|
2157
2157
|
H.button,
|
|
2158
2158
|
{
|
|
2159
2159
|
type: "button",
|
|
2160
2160
|
"aria-controls": o.contentId,
|
|
2161
2161
|
"aria-expanded": o.open || !1,
|
|
2162
|
-
"data-state":
|
|
2162
|
+
"data-state": Xt(o.open),
|
|
2163
2163
|
"data-disabled": o.disabled ? "" : void 0,
|
|
2164
2164
|
disabled: o.disabled,
|
|
2165
2165
|
...r,
|
|
2166
2166
|
ref: t,
|
|
2167
|
-
onClick:
|
|
2167
|
+
onClick: I(e.onClick, o.onOpenToggle)
|
|
2168
2168
|
}
|
|
2169
2169
|
);
|
|
2170
2170
|
}
|
|
2171
2171
|
);
|
|
2172
2172
|
gr.displayName = vr;
|
|
2173
|
-
var
|
|
2173
|
+
var zt = "CollapsibleContent", Cr = l.forwardRef(
|
|
2174
2174
|
(e, t) => {
|
|
2175
|
-
const { forceMount: n, ...r } = e, o =
|
|
2175
|
+
const { forceMount: n, ...r } = e, o = Gt(zt, e.__scopeCollapsible);
|
|
2176
2176
|
return /* @__PURE__ */ s(pe, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ s(ps, { ...r, ref: t, present: i }) });
|
|
2177
2177
|
}
|
|
2178
2178
|
);
|
|
2179
|
-
Cr.displayName =
|
|
2179
|
+
Cr.displayName = zt;
|
|
2180
2180
|
var ps = l.forwardRef((e, t) => {
|
|
2181
|
-
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a =
|
|
2181
|
+
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = Gt(zt, n), [c, d] = l.useState(r), u = l.useRef(null), f = W(t, u), p = l.useRef(0), m = p.current, v = l.useRef(0), C = v.current, h = a.open || c, g = l.useRef(h), y = l.useRef();
|
|
2182
2182
|
return l.useEffect(() => {
|
|
2183
|
-
const
|
|
2184
|
-
return () => cancelAnimationFrame(
|
|
2183
|
+
const w = requestAnimationFrame(() => g.current = !1);
|
|
2184
|
+
return () => cancelAnimationFrame(w);
|
|
2185
2185
|
}, []), ee(() => {
|
|
2186
|
-
const
|
|
2187
|
-
if (
|
|
2188
|
-
|
|
2189
|
-
transitionDuration:
|
|
2190
|
-
animationName:
|
|
2191
|
-
},
|
|
2192
|
-
const x =
|
|
2193
|
-
p.current = x.height, v.current = x.width, g.current || (
|
|
2186
|
+
const w = u.current;
|
|
2187
|
+
if (w) {
|
|
2188
|
+
y.current = y.current || {
|
|
2189
|
+
transitionDuration: w.style.transitionDuration,
|
|
2190
|
+
animationName: w.style.animationName
|
|
2191
|
+
}, w.style.transitionDuration = "0s", w.style.animationName = "none";
|
|
2192
|
+
const x = w.getBoundingClientRect();
|
|
2193
|
+
p.current = x.height, v.current = x.width, g.current || (w.style.transitionDuration = y.current.transitionDuration, w.style.animationName = y.current.animationName), d(r);
|
|
2194
2194
|
}
|
|
2195
2195
|
}, [a.open, r]), /* @__PURE__ */ s(
|
|
2196
2196
|
H.div,
|
|
2197
2197
|
{
|
|
2198
|
-
"data-state":
|
|
2198
|
+
"data-state": Xt(a.open),
|
|
2199
2199
|
"data-disabled": a.disabled ? "" : void 0,
|
|
2200
2200
|
id: a.contentId,
|
|
2201
2201
|
hidden: !h,
|
|
@@ -2210,7 +2210,7 @@ var ps = l.forwardRef((e, t) => {
|
|
|
2210
2210
|
}
|
|
2211
2211
|
);
|
|
2212
2212
|
});
|
|
2213
|
-
function
|
|
2213
|
+
function Xt(e) {
|
|
2214
2214
|
return e ? "open" : "closed";
|
|
2215
2215
|
}
|
|
2216
2216
|
var hs = mr, ms = gr, vs = Cr, gs = l.createContext(void 0);
|
|
@@ -2218,20 +2218,20 @@ 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"], [
|
|
2221
|
+
var re = "Accordion", ws = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [qt, ys, xs] = fr(re), [ot, yu] = Pe(re, [
|
|
2222
2222
|
xs,
|
|
2223
2223
|
hr
|
|
2224
|
-
]),
|
|
2224
|
+
]), Qt = hr(), wr = _.forwardRef(
|
|
2225
2225
|
(e, t) => {
|
|
2226
2226
|
const { type: n, ...r } = e, o = r, i = r;
|
|
2227
|
-
return /* @__PURE__ */ s(
|
|
2227
|
+
return /* @__PURE__ */ s(qt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ s(Rs, { ...i, ref: t }) : /* @__PURE__ */ s(Es, { ...o, ref: t }) });
|
|
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
|
-
), Es =
|
|
2234
|
+
), Es = _.forwardRef(
|
|
2235
2235
|
(e, t) => {
|
|
2236
2236
|
const {
|
|
2237
2237
|
value: n,
|
|
@@ -2251,12 +2251,12 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2251
2251
|
scope: e.__scopeAccordion,
|
|
2252
2252
|
value: c ? [c] : [],
|
|
2253
2253
|
onItemOpen: d,
|
|
2254
|
-
onItemClose:
|
|
2254
|
+
onItemClose: _.useCallback(() => i && d(""), [i, d]),
|
|
2255
2255
|
children: /* @__PURE__ */ s(xr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ s(br, { ...a, ref: t }) })
|
|
2256
2256
|
}
|
|
2257
2257
|
);
|
|
2258
2258
|
}
|
|
2259
|
-
), Rs =
|
|
2259
|
+
), Rs = _.forwardRef((e, t) => {
|
|
2260
2260
|
const {
|
|
2261
2261
|
value: n,
|
|
2262
2262
|
defaultValue: r,
|
|
@@ -2267,10 +2267,10 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2267
2267
|
prop: n,
|
|
2268
2268
|
defaultProp: r,
|
|
2269
2269
|
onChange: o
|
|
2270
|
-
}), d =
|
|
2270
|
+
}), d = _.useCallback(
|
|
2271
2271
|
(f) => c((p = []) => [...p, f]),
|
|
2272
2272
|
[c]
|
|
2273
|
-
), u =
|
|
2273
|
+
), u = _.useCallback(
|
|
2274
2274
|
(f) => c((p = []) => p.filter((m) => m !== f)),
|
|
2275
2275
|
[c]
|
|
2276
2276
|
);
|
|
@@ -2284,29 +2284,29 @@ 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 = _.forwardRef(
|
|
2288
2288
|
(e, t) => {
|
|
2289
|
-
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, c =
|
|
2289
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, c = _.useRef(null), d = W(c, t), u = ys(n), p = Cs(o) === "ltr", m = I(e.onKeyDown, (v) => {
|
|
2290
2290
|
var S;
|
|
2291
2291
|
if (!ws.includes(v.key)) return;
|
|
2292
|
-
const C = v.target, h = u().filter((
|
|
2293
|
-
var
|
|
2294
|
-
return !((
|
|
2295
|
-
}), g = h.findIndex((
|
|
2292
|
+
const C = v.target, h = u().filter((L) => {
|
|
2293
|
+
var O;
|
|
2294
|
+
return !((O = L.ref.current) != null && O.disabled);
|
|
2295
|
+
}), g = h.findIndex((L) => L.ref.current === C), y = h.length;
|
|
2296
2296
|
if (g === -1) return;
|
|
2297
2297
|
v.preventDefault();
|
|
2298
|
-
let
|
|
2299
|
-
const x = 0, b =
|
|
2300
|
-
|
|
2298
|
+
let w = g;
|
|
2299
|
+
const x = 0, b = y - 1, A = () => {
|
|
2300
|
+
w = g + 1, w > b && (w = x);
|
|
2301
2301
|
}, R = () => {
|
|
2302
|
-
|
|
2302
|
+
w = g - 1, w < x && (w = b);
|
|
2303
2303
|
};
|
|
2304
2304
|
switch (v.key) {
|
|
2305
2305
|
case "Home":
|
|
2306
|
-
|
|
2306
|
+
w = x;
|
|
2307
2307
|
break;
|
|
2308
2308
|
case "End":
|
|
2309
|
-
|
|
2309
|
+
w = b;
|
|
2310
2310
|
break;
|
|
2311
2311
|
case "ArrowRight":
|
|
2312
2312
|
i === "horizontal" && (p ? A() : R());
|
|
@@ -2321,7 +2321,7 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2321
2321
|
i === "vertical" && R();
|
|
2322
2322
|
break;
|
|
2323
2323
|
}
|
|
2324
|
-
const P =
|
|
2324
|
+
const P = w % y;
|
|
2325
2325
|
(S = h[P].ref.current) == null || S.focus();
|
|
2326
2326
|
});
|
|
2327
2327
|
return /* @__PURE__ */ s(
|
|
@@ -2331,7 +2331,7 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2331
2331
|
disabled: r,
|
|
2332
2332
|
direction: o,
|
|
2333
2333
|
orientation: i,
|
|
2334
|
-
children: /* @__PURE__ */ s(
|
|
2334
|
+
children: /* @__PURE__ */ s(qt.Slot, { scope: n, children: /* @__PURE__ */ s(
|
|
2335
2335
|
H.div,
|
|
2336
2336
|
{
|
|
2337
2337
|
...a,
|
|
@@ -2343,9 +2343,9 @@ var [yr, bs] = it(re), [xr, As] = it(
|
|
|
2343
2343
|
}
|
|
2344
2344
|
);
|
|
2345
2345
|
}
|
|
2346
|
-
),
|
|
2346
|
+
), qe = "AccordionItem", [Ts, Jt] = ot(qe), Ar = _.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 =
|
|
2376
|
-
var Er = "AccordionHeader", Rr =
|
|
2375
|
+
Ar.displayName = qe;
|
|
2376
|
+
var Er = "AccordionHeader", Rr = _.forwardRef(
|
|
2377
2377
|
(e, t) => {
|
|
2378
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
2378
|
+
const { __scopeAccordion: n, ...r } = e, o = it(re, n), i = Jt(Er, n);
|
|
2379
2379
|
return /* @__PURE__ */ s(
|
|
2380
2380
|
H.h3,
|
|
2381
2381
|
{
|
|
@@ -2389,10 +2389,10 @@ var Er = "AccordionHeader", Rr = I.forwardRef(
|
|
|
2389
2389
|
}
|
|
2390
2390
|
);
|
|
2391
2391
|
Rr.displayName = Er;
|
|
2392
|
-
var Mt = "AccordionTrigger", Pr =
|
|
2392
|
+
var Mt = "AccordionTrigger", Pr = _.forwardRef(
|
|
2393
2393
|
(e, t) => {
|
|
2394
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
2395
|
-
return /* @__PURE__ */ s(
|
|
2394
|
+
const { __scopeAccordion: n, ...r } = e, o = it(re, n), i = Jt(Mt, n), a = As(Mt, n), c = Qt(n);
|
|
2395
|
+
return /* @__PURE__ */ s(qt.ItemSlot, { scope: n, children: /* @__PURE__ */ s(
|
|
2396
2396
|
ms,
|
|
2397
2397
|
{
|
|
2398
2398
|
"aria-disabled": i.open && !a.collapsible || void 0,
|
|
@@ -2406,9 +2406,9 @@ var Mt = "AccordionTrigger", Pr = I.forwardRef(
|
|
|
2406
2406
|
}
|
|
2407
2407
|
);
|
|
2408
2408
|
Pr.displayName = Mt;
|
|
2409
|
-
var Tr = "AccordionContent", Nr =
|
|
2409
|
+
var Tr = "AccordionContent", Nr = _.forwardRef(
|
|
2410
2410
|
(e, t) => {
|
|
2411
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
2411
|
+
const { __scopeAccordion: n, ...r } = e, o = it(re, n), i = Jt(Tr, n), a = Qt(n);
|
|
2412
2412
|
return /* @__PURE__ */ s(
|
|
2413
2413
|
vs,
|
|
2414
2414
|
{
|
|
@@ -2431,8 +2431,8 @@ Nr.displayName = Tr;
|
|
|
2431
2431
|
function Sr(e) {
|
|
2432
2432
|
return e ? "open" : "closed";
|
|
2433
2433
|
}
|
|
2434
|
-
var Ns = wr, Ss = Ar, Ms = Rr, Mr = Pr,
|
|
2435
|
-
const
|
|
2434
|
+
var Ns = wr, Ss = Ar, Ms = Rr, Mr = Pr, Lr = Nr;
|
|
2435
|
+
const xu = Ns, Ls = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
2436
2436
|
Ss,
|
|
2437
2437
|
{
|
|
2438
2438
|
ref: n,
|
|
@@ -2440,8 +2440,8 @@ const yu = Ns, Os = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
2440
2440
|
...t
|
|
2441
2441
|
}
|
|
2442
2442
|
));
|
|
2443
|
-
|
|
2444
|
-
const
|
|
2443
|
+
Ls.displayName = "AccordionItem";
|
|
2444
|
+
const Os = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(Ms, { className: "flex", children: /* @__PURE__ */ E(
|
|
2445
2445
|
Mr,
|
|
2446
2446
|
{
|
|
2447
2447
|
ref: r,
|
|
@@ -2453,7 +2453,7 @@ const Ls = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
2453
2453
|
children: [
|
|
2454
2454
|
t,
|
|
2455
2455
|
/* @__PURE__ */ s(
|
|
2456
|
-
|
|
2456
|
+
Ut.ArrowDown,
|
|
2457
2457
|
{
|
|
2458
2458
|
className: "shrink-0 transition-transform duration-200",
|
|
2459
2459
|
fill: ar.grey[600],
|
|
@@ -2463,9 +2463,9 @@ const Ls = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
2463
2463
|
]
|
|
2464
2464
|
}
|
|
2465
2465
|
) }));
|
|
2466
|
-
|
|
2466
|
+
Os.displayName = Mr.displayName;
|
|
2467
2467
|
const Ds = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(
|
|
2468
|
-
|
|
2468
|
+
Lr,
|
|
2469
2469
|
{
|
|
2470
2470
|
ref: r,
|
|
2471
2471
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down pb-4",
|
|
@@ -2473,16 +2473,16 @@ const Ds = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
2473
2473
|
children: /* @__PURE__ */ s("div", { className: M(e), children: t })
|
|
2474
2474
|
}
|
|
2475
2475
|
));
|
|
2476
|
-
Ds.displayName =
|
|
2477
|
-
function
|
|
2476
|
+
Ds.displayName = Lr.displayName;
|
|
2477
|
+
function Or(e) {
|
|
2478
2478
|
var t, n, r = "";
|
|
2479
2479
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2480
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n =
|
|
2480
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = Or(e[t])) && (r && (r += " "), r += n);
|
|
2481
2481
|
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
2482
2482
|
return r;
|
|
2483
2483
|
}
|
|
2484
2484
|
function _s() {
|
|
2485
|
-
for (var e, t, n = 0, r = ""; n < arguments.length; ) (e = arguments[n++]) && (t =
|
|
2485
|
+
for (var e, t, n = 0, r = ""; n < arguments.length; ) (e = arguments[n++]) && (t = Or(e)) && (r && (r += " "), r += t);
|
|
2486
2486
|
return r;
|
|
2487
2487
|
}
|
|
2488
2488
|
const Hn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Vn = _s, Dr = (e, t) => (n) => {
|
|
@@ -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
|
+
), Lt = 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
|
+
Lt.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,
|
|
@@ -2668,15 +2668,15 @@ var Hs = "DismissableLayer", Lt = "dismissableLayer.update", Vs = "dismissableLa
|
|
|
2668
2668
|
onInteractOutside: a,
|
|
2669
2669
|
onDismiss: c,
|
|
2670
2670
|
...d
|
|
2671
|
-
} = e, u = l.useContext(_r), [f, p] = l.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = l.useState({}), C = W(t, (P) => p(P)), h = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1),
|
|
2672
|
-
const S = P.target,
|
|
2673
|
-
!b ||
|
|
2671
|
+
} = e, u = l.useContext(_r), [f, p] = l.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = l.useState({}), C = W(t, (P) => p(P)), h = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(g), w = f ? h.indexOf(f) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, A = Bs((P) => {
|
|
2672
|
+
const S = P.target, L = [...u.branches].some((O) => O.contains(S));
|
|
2673
|
+
!b || L || (o == null || o(P), a == null || a(P), P.defaultPrevented || c == null || c());
|
|
2674
2674
|
}, m), R = Zs((P) => {
|
|
2675
2675
|
const S = P.target;
|
|
2676
|
-
[...u.branches].some((
|
|
2676
|
+
[...u.branches].some((O) => O.contains(S)) || (i == null || i(P), a == null || a(P), P.defaultPrevented || c == null || c());
|
|
2677
2677
|
}, m);
|
|
2678
2678
|
return ks((P) => {
|
|
2679
|
-
|
|
2679
|
+
w === u.layers.size - 1 && (r == null || r(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
|
|
2680
2680
|
}, m), l.useEffect(() => {
|
|
2681
2681
|
if (f)
|
|
2682
2682
|
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Fn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), $n(), () => {
|
|
@@ -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
|
{
|
|
@@ -2696,9 +2696,9 @@ var Hs = "DismissableLayer", Lt = "dismissableLayer.update", Vs = "dismissableLa
|
|
|
2696
2696
|
pointerEvents: x ? b ? "auto" : "none" : void 0,
|
|
2697
2697
|
...e.style
|
|
2698
2698
|
},
|
|
2699
|
-
onFocusCapture:
|
|
2700
|
-
onBlurCapture:
|
|
2701
|
-
onPointerDownCapture:
|
|
2699
|
+
onFocusCapture: I(e.onFocusCapture, R.onFocusCapture),
|
|
2700
|
+
onBlurCapture: I(e.onBlurCapture, R.onBlurCapture),
|
|
2701
|
+
onPointerDownCapture: I(
|
|
2702
2702
|
e.onPointerDownCapture,
|
|
2703
2703
|
A.onPointerDownCapture
|
|
2704
2704
|
)
|
|
@@ -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, wt = "focusScope.autoFocusOnMount", yt = "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,
|
|
@@ -2796,15 +2796,15 @@ var Ws = st, js = Ir, wt = "focusScope.autoFocusOnMount", yt = "focusScope.autoF
|
|
|
2796
2796
|
if (v.paused || !c) return;
|
|
2797
2797
|
const b = x.relatedTarget;
|
|
2798
2798
|
b !== null && (c.contains(b) || ie(p.current, { select: !0 }));
|
|
2799
|
-
},
|
|
2799
|
+
}, y = function(x) {
|
|
2800
2800
|
if (document.activeElement === document.body)
|
|
2801
2801
|
for (const A of x)
|
|
2802
2802
|
A.removedNodes.length > 0 && ie(c);
|
|
2803
2803
|
};
|
|
2804
2804
|
document.addEventListener("focusin", h), document.addEventListener("focusout", g);
|
|
2805
|
-
const
|
|
2806
|
-
return c &&
|
|
2807
|
-
document.removeEventListener("focusin", h), document.removeEventListener("focusout", g),
|
|
2805
|
+
const w = new MutationObserver(y);
|
|
2806
|
+
return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
|
|
2807
|
+
document.removeEventListener("focusin", h), document.removeEventListener("focusout", g), w.disconnect();
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
2810
2810
|
}, [r, c, v.paused]), l.useEffect(() => {
|
|
@@ -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
|
|
2816
|
-
c.addEventListener(wt, u), c.dispatchEvent(
|
|
2815
|
+
const y = new CustomEvent(wt, Bn);
|
|
2816
|
+
c.addEventListener(wt, u), c.dispatchEvent(y), y.defaultPrevented || (Ks(qs(Vr(c)), { select: !0 }), document.activeElement === h && ie(c));
|
|
2817
2817
|
}
|
|
2818
2818
|
return () => {
|
|
2819
2819
|
c.removeEventListener(wt, u), setTimeout(() => {
|
|
2820
|
-
const
|
|
2821
|
-
c.addEventListener(yt, f), c.dispatchEvent(
|
|
2820
|
+
const y = new CustomEvent(yt, Bn);
|
|
2821
|
+
c.addEventListener(yt, f), c.dispatchEvent(y), y.defaultPrevented || ie(h ?? document.body, { select: !0 }), c.removeEventListener(yt, f), Wn.remove(v);
|
|
2822
2822
|
}, 0);
|
|
2823
2823
|
};
|
|
2824
2824
|
}
|
|
@@ -2826,10 +2826,10 @@ var Ws = st, js = Ir, wt = "focusScope.autoFocusOnMount", yt = "focusScope.autoF
|
|
|
2826
2826
|
const C = l.useCallback(
|
|
2827
2827
|
(h) => {
|
|
2828
2828
|
if (!n && !r || v.paused) return;
|
|
2829
|
-
const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey,
|
|
2830
|
-
if (g &&
|
|
2831
|
-
const
|
|
2832
|
-
x && b ? !h.shiftKey &&
|
|
2829
|
+
const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
|
|
2830
|
+
if (g && y) {
|
|
2831
|
+
const w = h.currentTarget, [x, b] = Ys(w);
|
|
2832
|
+
x && b ? !h.shiftKey && y === b ? (h.preventDefault(), n && ie(x, { select: !0 })) : h.shiftKey && y === x && (h.preventDefault(), n && ie(b, { select: !0 })) : y === w && h.preventDefault();
|
|
2833
2833
|
}
|
|
2834
2834
|
},
|
|
2835
2835
|
[n, r, v.paused]
|
|
@@ -2899,14 +2899,14 @@ function jn(e, t) {
|
|
|
2899
2899
|
function qs(e) {
|
|
2900
2900
|
return e.filter((t) => t.tagName !== "A");
|
|
2901
2901
|
}
|
|
2902
|
-
var Qs = "Portal",
|
|
2902
|
+
var Qs = "Portal", en = l.forwardRef((e, t) => {
|
|
2903
2903
|
var c;
|
|
2904
2904
|
const { container: n, ...r } = e, [o, i] = l.useState(!1);
|
|
2905
2905
|
ee(() => i(!0), []);
|
|
2906
2906
|
const a = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
2907
2907
|
return a ? cr.createPortal(/* @__PURE__ */ s(H.div, { ...r, ref: t }), a) : null;
|
|
2908
2908
|
});
|
|
2909
|
-
|
|
2909
|
+
en.displayName = Qs;
|
|
2910
2910
|
var xt = 0;
|
|
2911
2911
|
function Js() {
|
|
2912
2912
|
l.useEffect(() => {
|
|
@@ -2947,7 +2947,7 @@ function bt(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 = Wt(function() {
|
|
2951
2951
|
return {
|
|
2952
2952
|
// value
|
|
2953
2953
|
value: e,
|
|
@@ -3064,25 +3064,25 @@ function lc(e, t) {
|
|
|
3064
3064
|
return e.useMedium(t), $r;
|
|
3065
3065
|
}
|
|
3066
3066
|
var Br = cc(), At = function() {
|
|
3067
|
-
},
|
|
3067
|
+
}, st = l.forwardRef(function(e, t) {
|
|
3068
3068
|
var n = l.useRef(null), r = l.useState({
|
|
3069
3069
|
onScrollCapture: At,
|
|
3070
3070
|
onWheelCapture: At,
|
|
3071
3071
|
onTouchMoveCapture: At
|
|
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,
|
|
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, y = g === void 0 ? "div" : g, w = 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,
|
|
3075
3075
|
null,
|
|
3076
|
-
f && l.createElement(b, { sideCar: Br, removeScrollBar: u, shards: p, noIsolation: v, inert: C, setCallbacks: i, allowPinchZoom: !!h, lockRef: n, gapMode:
|
|
3077
|
-
a ? l.cloneElement(l.Children.only(c), q(q({}, R), { ref: A })) : l.createElement(
|
|
3076
|
+
f && l.createElement(b, { sideCar: Br, removeScrollBar: u, shards: p, noIsolation: v, inert: C, setCallbacks: i, allowPinchZoom: !!h, lockRef: n, gapMode: w }),
|
|
3077
|
+
a ? l.cloneElement(l.Children.only(c), q(q({}, R), { ref: A })) : l.createElement(y, 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
|
};
|
|
@@ -3274,8 +3274,8 @@ var ve = Dt ? { passive: !1 } : !1, Ac = function(e) {
|
|
|
3274
3274
|
}, Sc = function(e, t, n, r, o) {
|
|
3275
3275
|
var i = Nc(e, window.getComputedStyle(t).direction), a = i * r, c = n.target, d = t.contains(c), u = !1, f = a > 0, p = 0, m = 0;
|
|
3276
3276
|
do {
|
|
3277
|
-
var v = Ur(e, c), C = v[0], h = v[1], g = v[2],
|
|
3278
|
-
(C ||
|
|
3277
|
+
var v = Ur(e, c), C = v[0], h = v[1], g = v[2], y = h - g - i * C;
|
|
3278
|
+
(C || y) && jr(e, c) && (p += y, m += C), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
3279
3279
|
} while (
|
|
3280
3280
|
// portaled content
|
|
3281
3281
|
!d && c !== document.body || // self content
|
|
@@ -3290,14 +3290,14 @@ var ve = Dt ? { passive: !1 } : !1, Ac = function(e) {
|
|
|
3290
3290
|
return e && "current" in e ? e.current : e;
|
|
3291
3291
|
}, Mc = function(e, t) {
|
|
3292
3292
|
return e[0] === t[0] && e[1] === t[1];
|
|
3293
|
-
},
|
|
3293
|
+
}, Lc = function(e) {
|
|
3294
3294
|
return `
|
|
3295
3295
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3296
3296
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3297
3297
|
`);
|
|
3298
|
-
},
|
|
3298
|
+
}, Oc = 0, ge = [];
|
|
3299
3299
|
function Dc(e) {
|
|
3300
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(
|
|
3300
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Oc++)[0], i = l.useState(Zr)[0], a = l.useRef(e);
|
|
3301
3301
|
l.useEffect(function() {
|
|
3302
3302
|
a.current = e;
|
|
3303
3303
|
}, [e]), l.useEffect(function() {
|
|
@@ -3316,7 +3316,7 @@ function Dc(e) {
|
|
|
3316
3316
|
var c = l.useCallback(function(h, g) {
|
|
3317
3317
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
3318
3318
|
return !a.current.allowPinchZoom;
|
|
3319
|
-
var
|
|
3319
|
+
var y = Be(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], b = "deltaY" in h ? h.deltaY : w[1] - y[1], A, R = h.target, P = Math.abs(x) > Math.abs(b) ? "h" : "v";
|
|
3320
3320
|
if ("touches" in h && P === "h" && R.type === "range")
|
|
3321
3321
|
return !1;
|
|
3322
3322
|
var S = Gn(P, R);
|
|
@@ -3326,27 +3326,27 @@ function Dc(e) {
|
|
|
3326
3326
|
return !1;
|
|
3327
3327
|
if (!r.current && "changedTouches" in h && (x || b) && (r.current = A), !A)
|
|
3328
3328
|
return !0;
|
|
3329
|
-
var
|
|
3330
|
-
return Sc(
|
|
3329
|
+
var L = r.current || A;
|
|
3330
|
+
return Sc(L, g, h, L === "h" ? x : b, !0);
|
|
3331
3331
|
}, []), d = l.useCallback(function(h) {
|
|
3332
3332
|
var g = h;
|
|
3333
3333
|
if (!(!ge.length || ge[ge.length - 1] !== i)) {
|
|
3334
|
-
var
|
|
3335
|
-
return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && Mc(A.delta,
|
|
3334
|
+
var y = "deltaY" in g ? zn(g) : Be(g), w = t.current.filter(function(A) {
|
|
3335
|
+
return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && Mc(A.delta, y);
|
|
3336
3336
|
})[0];
|
|
3337
|
-
if (
|
|
3337
|
+
if (w && w.should) {
|
|
3338
3338
|
g.cancelable && g.preventDefault();
|
|
3339
3339
|
return;
|
|
3340
3340
|
}
|
|
3341
|
-
if (!
|
|
3341
|
+
if (!w) {
|
|
3342
3342
|
var x = (a.current.shards || []).map(Xn).filter(Boolean).filter(function(A) {
|
|
3343
3343
|
return A.contains(g.target);
|
|
3344
3344
|
}), b = x.length > 0 ? c(g, x[0]) : !a.current.noIsolation;
|
|
3345
3345
|
b && g.cancelable && g.preventDefault();
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
3348
|
-
}, []), u = l.useCallback(function(h, g,
|
|
3349
|
-
var x = { name: h, delta: g, target:
|
|
3348
|
+
}, []), u = l.useCallback(function(h, g, y, w) {
|
|
3349
|
+
var x = { name: h, delta: g, target: y, should: w, shadowParent: _c(y) };
|
|
3350
3350
|
t.current.push(x), setTimeout(function() {
|
|
3351
3351
|
t.current = t.current.filter(function(b) {
|
|
3352
3352
|
return b !== x;
|
|
@@ -3374,7 +3374,7 @@ function Dc(e) {
|
|
|
3374
3374
|
return l.createElement(
|
|
3375
3375
|
l.Fragment,
|
|
3376
3376
|
null,
|
|
3377
|
-
C ? l.createElement(i, { styles:
|
|
3377
|
+
C ? l.createElement(i, { styles: Lc(o) }) : null,
|
|
3378
3378
|
v ? l.createElement(bc, { gapMode: e.gapMode }) : null
|
|
3379
3379
|
);
|
|
3380
3380
|
}
|
|
@@ -3385,9 +3385,9 @@ 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;
|
|
@@ -3419,8 +3419,8 @@ var kc = function(e) {
|
|
|
3419
3419
|
try {
|
|
3420
3420
|
var v = m.getAttribute(r), C = v !== null && v !== "false", h = (Ce.get(m) || 0) + 1, g = (i.get(m) || 0) + 1;
|
|
3421
3421
|
Ce.set(m, h), i.set(m, g), a.push(m), h === 1 && C && Ze.set(m, !0), g === 1 && m.setAttribute(n, "true"), C || m.setAttribute(r, "true");
|
|
3422
|
-
} catch (
|
|
3423
|
-
console.error("aria-hidden: cannot operate on ", m,
|
|
3422
|
+
} catch (y) {
|
|
3423
|
+
console.error("aria-hidden: cannot operate on ", m, y);
|
|
3424
3424
|
}
|
|
3425
3425
|
});
|
|
3426
3426
|
};
|
|
@@ -3436,7 +3436,7 @@ var kc = function(e) {
|
|
|
3436
3436
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Vc(r, o, n, "aria-hidden")) : function() {
|
|
3437
3437
|
return null;
|
|
3438
3438
|
};
|
|
3439
|
-
},
|
|
3439
|
+
}, tn = "Dialog", [Gr, zr] = Pe(tn), [$c, X] = Gr(tn), Xr = (e) => {
|
|
3440
3440
|
const {
|
|
3441
3441
|
__scopeDialog: t,
|
|
3442
3442
|
children: n,
|
|
@@ -3466,7 +3466,7 @@ var kc = function(e) {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
);
|
|
3468
3468
|
};
|
|
3469
|
-
Xr.displayName =
|
|
3469
|
+
Xr.displayName = tn;
|
|
3470
3470
|
var qr = "DialogTrigger", Qr = l.forwardRef(
|
|
3471
3471
|
(e, t) => {
|
|
3472
3472
|
const { __scopeDialog: n, ...r } = e, o = X(qr, n), i = W(t, o.triggerRef);
|
|
@@ -3477,39 +3477,39 @@ var qr = "DialogTrigger", Qr = l.forwardRef(
|
|
|
3477
3477
|
"aria-haspopup": "dialog",
|
|
3478
3478
|
"aria-expanded": o.open,
|
|
3479
3479
|
"aria-controls": o.contentId,
|
|
3480
|
-
"data-state":
|
|
3480
|
+
"data-state": on(o.open),
|
|
3481
3481
|
...r,
|
|
3482
3482
|
ref: i,
|
|
3483
|
-
onClick:
|
|
3483
|
+
onClick: I(e.onClick, o.onOpenToggle)
|
|
3484
3484
|
}
|
|
3485
3485
|
);
|
|
3486
3486
|
}
|
|
3487
3487
|
);
|
|
3488
3488
|
Qr.displayName = qr;
|
|
3489
|
-
var
|
|
3489
|
+
var nn = "DialogPortal", [Bc, Jr] = Gr(nn, {
|
|
3490
3490
|
forceMount: void 0
|
|
3491
3491
|
}), eo = (e) => {
|
|
3492
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = X(
|
|
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(
|
|
3492
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = X(nn, t);
|
|
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(en, { asChild: !0, container: o, children: a }) })) });
|
|
3494
3494
|
};
|
|
3495
|
-
eo.displayName =
|
|
3496
|
-
var
|
|
3495
|
+
eo.displayName = nn;
|
|
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
|
|
3509
3509
|
/* @__PURE__ */ s(Kr, { as: Ae, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
|
|
3510
3510
|
H.div,
|
|
3511
3511
|
{
|
|
3512
|
-
"data-state":
|
|
3512
|
+
"data-state": on(o.open),
|
|
3513
3513
|
...r,
|
|
3514
3514
|
ref: t,
|
|
3515
3515
|
style: { pointerEvents: "auto", ...r.style }
|
|
@@ -3537,15 +3537,15 @@ var Wc = l.forwardRef(
|
|
|
3537
3537
|
ref: o,
|
|
3538
3538
|
trapFocus: n.open,
|
|
3539
3539
|
disableOutsidePointerEvents: !0,
|
|
3540
|
-
onCloseAutoFocus:
|
|
3540
|
+
onCloseAutoFocus: I(e.onCloseAutoFocus, (i) => {
|
|
3541
3541
|
var a;
|
|
3542
3542
|
i.preventDefault(), (a = n.triggerRef.current) == null || a.focus();
|
|
3543
3543
|
}),
|
|
3544
|
-
onPointerDownOutside:
|
|
3544
|
+
onPointerDownOutside: I(e.onPointerDownOutside, (i) => {
|
|
3545
3545
|
const a = i.detail.originalEvent, c = a.button === 0 && a.ctrlKey === !0;
|
|
3546
3546
|
(a.button === 2 || c) && i.preventDefault();
|
|
3547
3547
|
}),
|
|
3548
|
-
onFocusOutside:
|
|
3548
|
+
onFocusOutside: I(
|
|
3549
3549
|
e.onFocusOutside,
|
|
3550
3550
|
(i) => i.preventDefault()
|
|
3551
3551
|
)
|
|
@@ -3588,13 +3588,13 @@ 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,
|
|
3595
3595
|
"aria-describedby": c.descriptionId,
|
|
3596
3596
|
"aria-labelledby": c.titleId,
|
|
3597
|
-
"data-state":
|
|
3597
|
+
"data-state": on(c.open),
|
|
3598
3598
|
...a,
|
|
3599
3599
|
ref: u,
|
|
3600
3600
|
onDismiss: () => c.onOpenChange(!1)
|
|
@@ -3608,13 +3608,13 @@ var Wc = l.forwardRef(
|
|
|
3608
3608
|
] })
|
|
3609
3609
|
] });
|
|
3610
3610
|
}
|
|
3611
|
-
),
|
|
3611
|
+
), rn = "DialogTitle", oo = l.forwardRef(
|
|
3612
3612
|
(e, t) => {
|
|
3613
|
-
const { __scopeDialog: n, ...r } = e, o = X(
|
|
3613
|
+
const { __scopeDialog: n, ...r } = e, o = X(rn, n);
|
|
3614
3614
|
return /* @__PURE__ */ s(H.h2, { id: o.titleId, ...r, ref: t });
|
|
3615
3615
|
}
|
|
3616
3616
|
);
|
|
3617
|
-
oo.displayName =
|
|
3617
|
+
oo.displayName = rn;
|
|
3618
3618
|
var io = "DialogDescription", ao = l.forwardRef(
|
|
3619
3619
|
(e, t) => {
|
|
3620
3620
|
const { __scopeDialog: n, ...r } = e, o = X(io, n);
|
|
@@ -3631,18 +3631,18 @@ var so = "DialogClose", co = l.forwardRef(
|
|
|
3631
3631
|
type: "button",
|
|
3632
3632
|
...r,
|
|
3633
3633
|
ref: t,
|
|
3634
|
-
onClick:
|
|
3634
|
+
onClick: I(e.onClick, () => o.onOpenChange(!1))
|
|
3635
3635
|
}
|
|
3636
3636
|
);
|
|
3637
3637
|
}
|
|
3638
3638
|
);
|
|
3639
3639
|
co.displayName = so;
|
|
3640
|
-
function
|
|
3640
|
+
function on(e) {
|
|
3641
3641
|
return e ? "open" : "closed";
|
|
3642
3642
|
}
|
|
3643
3643
|
var lo = "DialogTitleWarning", [Uc, uo] = Xa(lo, {
|
|
3644
3644
|
contentName: de,
|
|
3645
|
-
titleName:
|
|
3645
|
+
titleName: rn,
|
|
3646
3646
|
docsSlug: "dialog"
|
|
3647
3647
|
}), Kc = ({ titleId: e }) => {
|
|
3648
3648
|
const t = uo(lo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
@@ -3660,7 +3660,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
3660
3660
|
const o = (i = e.current) == null ? void 0 : i.getAttribute("aria-describedby");
|
|
3661
3661
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
3662
3662
|
}, [r, e, t]), null;
|
|
3663
|
-
}, fo = Xr, zc = Qr, po = eo,
|
|
3663
|
+
}, fo = Xr, zc = Qr, po = eo, an = to, sn = no, cn = oo, ln = ao, ct = co, ho = "AlertDialog", [Xc, bu] = Pe(ho, [
|
|
3664
3664
|
zr
|
|
3665
3665
|
]), oe = zr(), mo = (e) => {
|
|
3666
3666
|
const { __scopeAlertDialog: t, ...n } = e, r = oe(t);
|
|
@@ -3682,7 +3682,7 @@ vo.displayName = Jc;
|
|
|
3682
3682
|
var el = "AlertDialogOverlay", go = l.forwardRef(
|
|
3683
3683
|
(e, t) => {
|
|
3684
3684
|
const { __scopeAlertDialog: n, ...r } = e, o = oe(n);
|
|
3685
|
-
return /* @__PURE__ */ s(
|
|
3685
|
+
return /* @__PURE__ */ s(an, { ...o, ...r, ref: t });
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
3688
|
go.displayName = el;
|
|
@@ -3696,20 +3696,20 @@ var xe = "AlertDialogContent", [tl, nl] = Xc(xe), Co = l.forwardRef(
|
|
|
3696
3696
|
titleName: wo,
|
|
3697
3697
|
docsSlug: "alert-dialog",
|
|
3698
3698
|
children: /* @__PURE__ */ s(tl, { scope: n, cancelRef: d, children: /* @__PURE__ */ E(
|
|
3699
|
-
|
|
3699
|
+
sn,
|
|
3700
3700
|
{
|
|
3701
3701
|
role: "alertdialog",
|
|
3702
3702
|
...i,
|
|
3703
3703
|
...o,
|
|
3704
3704
|
ref: c,
|
|
3705
|
-
onOpenAutoFocus:
|
|
3705
|
+
onOpenAutoFocus: I(o.onOpenAutoFocus, (u) => {
|
|
3706
3706
|
var f;
|
|
3707
3707
|
u.preventDefault(), (f = d.current) == null || f.focus({ preventScroll: !0 });
|
|
3708
3708
|
}),
|
|
3709
3709
|
onPointerDownOutside: (u) => u.preventDefault(),
|
|
3710
3710
|
onInteractOutside: (u) => u.preventDefault(),
|
|
3711
3711
|
children: [
|
|
3712
|
-
/* @__PURE__ */ s(
|
|
3712
|
+
/* @__PURE__ */ s(Kt, { children: r }),
|
|
3713
3713
|
/* @__PURE__ */ s(ol, { contentRef: a })
|
|
3714
3714
|
]
|
|
3715
3715
|
}
|
|
@@ -3722,26 +3722,26 @@ Co.displayName = xe;
|
|
|
3722
3722
|
var wo = "AlertDialogTitle", yo = l.forwardRef(
|
|
3723
3723
|
(e, t) => {
|
|
3724
3724
|
const { __scopeAlertDialog: n, ...r } = e, o = oe(n);
|
|
3725
|
-
return /* @__PURE__ */ s(
|
|
3725
|
+
return /* @__PURE__ */ s(cn, { ...o, ...r, ref: t });
|
|
3726
3726
|
}
|
|
3727
3727
|
);
|
|
3728
3728
|
yo.displayName = wo;
|
|
3729
3729
|
var xo = "AlertDialogDescription", bo = l.forwardRef((e, t) => {
|
|
3730
3730
|
const { __scopeAlertDialog: n, ...r } = e, o = oe(n);
|
|
3731
|
-
return /* @__PURE__ */ s(
|
|
3731
|
+
return /* @__PURE__ */ s(ln, { ...o, ...r, ref: t });
|
|
3732
3732
|
});
|
|
3733
3733
|
bo.displayName = xo;
|
|
3734
3734
|
var rl = "AlertDialogAction", Ao = l.forwardRef(
|
|
3735
3735
|
(e, t) => {
|
|
3736
3736
|
const { __scopeAlertDialog: n, ...r } = e, o = oe(n);
|
|
3737
|
-
return /* @__PURE__ */ s(
|
|
3737
|
+
return /* @__PURE__ */ s(ct, { ...o, ...r, ref: t });
|
|
3738
3738
|
}
|
|
3739
3739
|
);
|
|
3740
3740
|
Ao.displayName = rl;
|
|
3741
3741
|
var Eo = "AlertDialogCancel", Ro = l.forwardRef(
|
|
3742
3742
|
(e, t) => {
|
|
3743
3743
|
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = nl(Eo, n), i = oe(n), a = W(t, o);
|
|
3744
|
-
return /* @__PURE__ */ s(
|
|
3744
|
+
return /* @__PURE__ */ s(ct, { ...i, ...r, ref: a });
|
|
3745
3745
|
}
|
|
3746
3746
|
);
|
|
3747
3747
|
Ro.displayName = Eo;
|
|
@@ -3759,8 +3759,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
3759
3759
|
(r = e.current) == null ? void 0 : r.getAttribute("aria-describedby")
|
|
3760
3760
|
) || console.warn(t);
|
|
3761
3761
|
}, [t, e]), null;
|
|
3762
|
-
}, il = mo, al = vo, Po = go, To = Co, No = Ao, So = Ro, Mo = yo,
|
|
3763
|
-
const
|
|
3762
|
+
}, il = mo, al = vo, Po = go, To = Co, No = Ao, So = Ro, Mo = yo, Lo = bo;
|
|
3763
|
+
const Oo = il, sl = al, Do = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
3764
3764
|
Po,
|
|
3765
3765
|
{
|
|
3766
3766
|
className: M(
|
|
@@ -3833,8 +3833,8 @@ const pn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
|
3833
3833
|
}
|
|
3834
3834
|
));
|
|
3835
3835
|
pn.displayName = Mo.displayName;
|
|
3836
|
-
const
|
|
3837
|
-
|
|
3836
|
+
const Oe = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
3837
|
+
Lo,
|
|
3838
3838
|
{
|
|
3839
3839
|
ref: n,
|
|
3840
3840
|
className: M(
|
|
@@ -3844,7 +3844,7 @@ const Le = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
|
3844
3844
|
...t
|
|
3845
3845
|
}
|
|
3846
3846
|
));
|
|
3847
|
-
|
|
3847
|
+
Oe.displayName = Lo.displayName;
|
|
3848
3848
|
const hn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
3849
3849
|
No,
|
|
3850
3850
|
{
|
|
@@ -3875,7 +3875,7 @@ const ll = ({
|
|
|
3875
3875
|
size: o = "sm",
|
|
3876
3876
|
onClose: i
|
|
3877
3877
|
}) => /* @__PURE__ */ s(
|
|
3878
|
-
|
|
3878
|
+
Oo,
|
|
3879
3879
|
{
|
|
3880
3880
|
open: !0,
|
|
3881
3881
|
onOpenChange: (a) => {
|
|
@@ -3884,7 +3884,7 @@ const ll = ({
|
|
|
3884
3884
|
children: /* @__PURE__ */ E(un, { size: o, children: [
|
|
3885
3885
|
/* @__PURE__ */ E(dn, { children: [
|
|
3886
3886
|
/* @__PURE__ */ s(pn, { children: e }),
|
|
3887
|
-
/* @__PURE__ */ s(
|
|
3887
|
+
/* @__PURE__ */ s(Oe, { children: t })
|
|
3888
3888
|
] }),
|
|
3889
3889
|
/* @__PURE__ */ s(fn, { children: /* @__PURE__ */ s(
|
|
3890
3890
|
hn,
|
|
@@ -3900,8 +3900,8 @@ const ll = ({
|
|
|
3900
3900
|
}
|
|
3901
3901
|
);
|
|
3902
3902
|
ll.displayName = "Alert";
|
|
3903
|
-
const ul = fo, dl = po, Io = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
3904
|
-
|
|
3903
|
+
const ul = fo, dl = po, fl = ct, Io = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
3904
|
+
an,
|
|
3905
3905
|
{
|
|
3906
3906
|
ref: n,
|
|
3907
3907
|
className: M(
|
|
@@ -3911,11 +3911,11 @@ const ul = fo, dl = po, Io = l.forwardRef(({ className: e, ...t }, n) => /* @__P
|
|
|
3911
3911
|
...t
|
|
3912
3912
|
}
|
|
3913
3913
|
));
|
|
3914
|
-
Io.displayName =
|
|
3914
|
+
Io.displayName = an.displayName;
|
|
3915
3915
|
const ko = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ E(dl, { children: [
|
|
3916
3916
|
/* @__PURE__ */ s(Io, {}),
|
|
3917
3917
|
/* @__PURE__ */ E(
|
|
3918
|
-
|
|
3918
|
+
sn,
|
|
3919
3919
|
{
|
|
3920
3920
|
ref: r,
|
|
3921
3921
|
className: M(
|
|
@@ -3925,15 +3925,15 @@ const ko = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
3925
3925
|
...n,
|
|
3926
3926
|
children: [
|
|
3927
3927
|
t,
|
|
3928
|
-
/* @__PURE__ */ E(
|
|
3929
|
-
/* @__PURE__ */ s(
|
|
3928
|
+
/* @__PURE__ */ E(ct, { className: "absolute right-4 top-5 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground md:right-[30px] md:top-[25px]", children: [
|
|
3929
|
+
/* @__PURE__ */ s(Ut.Cancel, { size: "16" }),
|
|
3930
3930
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "Close" })
|
|
3931
3931
|
] })
|
|
3932
3932
|
]
|
|
3933
3933
|
}
|
|
3934
3934
|
)
|
|
3935
3935
|
] }));
|
|
3936
|
-
ko.displayName =
|
|
3936
|
+
ko.displayName = sn.displayName;
|
|
3937
3937
|
const Ho = ({
|
|
3938
3938
|
className: e,
|
|
3939
3939
|
...t
|
|
@@ -3960,7 +3960,7 @@ const Vo = ({
|
|
|
3960
3960
|
);
|
|
3961
3961
|
Vo.displayName = "DialogFooter";
|
|
3962
3962
|
const Fo = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
3963
|
-
|
|
3963
|
+
cn,
|
|
3964
3964
|
{
|
|
3965
3965
|
ref: n,
|
|
3966
3966
|
className: M(
|
|
@@ -3970,17 +3970,17 @@ const Fo = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
|
3970
3970
|
...t
|
|
3971
3971
|
}
|
|
3972
3972
|
));
|
|
3973
|
-
Fo.displayName =
|
|
3973
|
+
Fo.displayName = cn.displayName;
|
|
3974
3974
|
const $o = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
3975
|
-
|
|
3975
|
+
ln,
|
|
3976
3976
|
{
|
|
3977
3977
|
ref: n,
|
|
3978
3978
|
className: M("text-sm text-muted", e),
|
|
3979
3979
|
...t
|
|
3980
3980
|
}
|
|
3981
3981
|
));
|
|
3982
|
-
$o.displayName =
|
|
3983
|
-
const
|
|
3982
|
+
$o.displayName = ln.displayName;
|
|
3983
|
+
const pl = _.forwardRef(
|
|
3984
3984
|
({
|
|
3985
3985
|
id: e,
|
|
3986
3986
|
title: t,
|
|
@@ -3993,36 +3993,42 @@ const fl = l.forwardRef(
|
|
|
3993
3993
|
size: d = "sm",
|
|
3994
3994
|
content: u,
|
|
3995
3995
|
className: f,
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
3996
|
+
open: p,
|
|
3997
|
+
onOpenChange: m,
|
|
3998
|
+
...v
|
|
3999
|
+
}, C) => {
|
|
4000
|
+
const h = (w) => {
|
|
4001
|
+
!w && i && i(), m && m(w);
|
|
4002
|
+
}, g = () => {
|
|
4003
|
+
r && r(), i && i(), m && m(!1);
|
|
4004
|
+
}, y = () => {
|
|
4005
|
+
o && o(), i && i(), m && m(!1);
|
|
4006
|
+
};
|
|
4007
|
+
return /* @__PURE__ */ s(ul, { open: p, onOpenChange: h, children: /* @__PURE__ */ E(
|
|
4008
|
+
ko,
|
|
4009
|
+
{
|
|
4010
|
+
ref: C,
|
|
4011
|
+
className: M(
|
|
4012
|
+
"max-w-[328px] px-0 py-0 md:max-w-[600px] flex flex-col gap-5 md:gap-8 pb-5 md:pb-8",
|
|
4013
|
+
{
|
|
4014
|
+
"max-w-sm": d === "sm",
|
|
4015
|
+
"max-w-md": d === "md",
|
|
4016
|
+
"max-w-lg": d === "lg",
|
|
4017
|
+
"max-w-fit": d === "fit"
|
|
4018
|
+
},
|
|
4019
|
+
f
|
|
4020
|
+
),
|
|
4021
|
+
...v,
|
|
4022
|
+
children: [
|
|
4023
|
+
/* @__PURE__ */ s(Ho, { className: "border-b border-b-border", children: /* @__PURE__ */ s(Fo, { className: "flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]", children: t }) }),
|
|
4024
|
+
/* @__PURE__ */ E("div", { className: "px-5 md:px-8 flex flex-col gap-5 md:gap-8", children: [
|
|
4025
|
+
n && /* @__PURE__ */ s($o, { children: n }),
|
|
4018
4026
|
u && /* @__PURE__ */ s("div", { children: u }),
|
|
4019
4027
|
/* @__PURE__ */ E(Vo, { children: [
|
|
4020
|
-
|
|
4021
|
-
|
|
4028
|
+
/* @__PURE__ */ s(
|
|
4029
|
+
Lt,
|
|
4022
4030
|
{
|
|
4023
|
-
onClick:
|
|
4024
|
-
o && o(), i && i();
|
|
4025
|
-
},
|
|
4031
|
+
onClick: y,
|
|
4026
4032
|
className: M(
|
|
4027
4033
|
ue({ variant: "outline", size: "sm" }),
|
|
4028
4034
|
"w-full sm:w-auto"
|
|
@@ -4031,11 +4037,9 @@ const fl = l.forwardRef(
|
|
|
4031
4037
|
}
|
|
4032
4038
|
),
|
|
4033
4039
|
r && /* @__PURE__ */ s(
|
|
4034
|
-
|
|
4040
|
+
Lt,
|
|
4035
4041
|
{
|
|
4036
|
-
onClick:
|
|
4037
|
-
r && r(), i && i();
|
|
4038
|
-
},
|
|
4042
|
+
onClick: g,
|
|
4039
4043
|
className: M(
|
|
4040
4044
|
ue({ size: "sm" }),
|
|
4041
4045
|
"w-full sm:w-auto"
|
|
@@ -4044,14 +4048,15 @@ const fl = l.forwardRef(
|
|
|
4044
4048
|
}
|
|
4045
4049
|
)
|
|
4046
4050
|
] })
|
|
4047
|
-
]
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4051
|
+
] }),
|
|
4052
|
+
/* @__PURE__ */ s(fl, { className: "absolute right-4 top-5 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", children: /* @__PURE__ */ s("span", { className: "sr-only", children: "닫기" }) })
|
|
4053
|
+
]
|
|
4054
|
+
}
|
|
4055
|
+
) });
|
|
4056
|
+
}
|
|
4052
4057
|
);
|
|
4053
|
-
|
|
4054
|
-
const
|
|
4058
|
+
pl.displayName = "Dialog";
|
|
4059
|
+
const hl = l.forwardRef(
|
|
4055
4060
|
({
|
|
4056
4061
|
title: e,
|
|
4057
4062
|
description: t,
|
|
@@ -4065,7 +4070,7 @@ const pl = l.forwardRef(
|
|
|
4065
4070
|
onClose: u,
|
|
4066
4071
|
...f
|
|
4067
4072
|
}, p) => /* @__PURE__ */ s(
|
|
4068
|
-
|
|
4073
|
+
Oo,
|
|
4069
4074
|
{
|
|
4070
4075
|
open: !0,
|
|
4071
4076
|
onOpenChange: (m) => {
|
|
@@ -4081,10 +4086,10 @@ const pl = l.forwardRef(
|
|
|
4081
4086
|
children: [
|
|
4082
4087
|
/* @__PURE__ */ E(dn, { children: [
|
|
4083
4088
|
/* @__PURE__ */ s(pn, { children: e }),
|
|
4084
|
-
t && /* @__PURE__ */ s(
|
|
4085
|
-
n && /* @__PURE__ */ s(
|
|
4089
|
+
t && /* @__PURE__ */ s(Oe, { className: "text-sm text-grey-800", children: t }),
|
|
4090
|
+
n && /* @__PURE__ */ s(Oe, { className: "text-xs text-grey-600", children: n })
|
|
4086
4091
|
] }),
|
|
4087
|
-
r && /* @__PURE__ */ s(
|
|
4092
|
+
r && /* @__PURE__ */ s(Oe, { className: "text-sm font-normal text-grey-600", children: r }),
|
|
4088
4093
|
/* @__PURE__ */ E(fn, { children: [
|
|
4089
4094
|
/* @__PURE__ */ s(
|
|
4090
4095
|
_o,
|
|
@@ -4110,8 +4115,8 @@ const pl = l.forwardRef(
|
|
|
4110
4115
|
}
|
|
4111
4116
|
)
|
|
4112
4117
|
);
|
|
4113
|
-
|
|
4114
|
-
var
|
|
4118
|
+
hl.displayName = "Modal";
|
|
4119
|
+
var ml = "VisuallyHidden", lt = l.forwardRef(
|
|
4115
4120
|
(e, t) => /* @__PURE__ */ s(
|
|
4116
4121
|
H.span,
|
|
4117
4122
|
{
|
|
@@ -4134,8 +4139,8 @@ var hl = "VisuallyHidden", lt = l.forwardRef(
|
|
|
4134
4139
|
}
|
|
4135
4140
|
)
|
|
4136
4141
|
);
|
|
4137
|
-
lt.displayName =
|
|
4138
|
-
var
|
|
4142
|
+
lt.displayName = ml;
|
|
4143
|
+
var vl = lt, mn = "ToastProvider", [vn, gl, Cl] = fr("Toast"), [Bo, Au] = Pe("Toast", [Cl]), [wl, ut] = Bo(mn), Zo = (e) => {
|
|
4139
4144
|
const {
|
|
4140
4145
|
__scopeToast: t,
|
|
4141
4146
|
label: n = "Notification",
|
|
@@ -4147,7 +4152,7 @@ var ml = lt, mn = "ToastProvider", [vn, vl, gl] = fr("Toast"), [Bo, bu] = Pe("To
|
|
|
4147
4152
|
return n.trim() || console.error(
|
|
4148
4153
|
`Invalid prop \`label\` supplied to \`${mn}\`. Expected non-empty \`string\`.`
|
|
4149
4154
|
), /* @__PURE__ */ s(vn.Provider, { scope: t, children: /* @__PURE__ */ s(
|
|
4150
|
-
|
|
4155
|
+
wl,
|
|
4151
4156
|
{
|
|
4152
4157
|
scope: t,
|
|
4153
4158
|
label: n,
|
|
@@ -4166,70 +4171,70 @@ var ml = lt, mn = "ToastProvider", [vn, vl, gl] = fr("Toast"), [Bo, bu] = Pe("To
|
|
|
4166
4171
|
) });
|
|
4167
4172
|
};
|
|
4168
4173
|
Zo.displayName = mn;
|
|
4169
|
-
var Wo = "ToastViewport",
|
|
4174
|
+
var Wo = "ToastViewport", yl = ["F8"], _t = "toast.viewportPause", It = "toast.viewportResume", jo = l.forwardRef(
|
|
4170
4175
|
(e, t) => {
|
|
4171
4176
|
const {
|
|
4172
4177
|
__scopeToast: n,
|
|
4173
|
-
hotkey: r =
|
|
4178
|
+
hotkey: r = yl,
|
|
4174
4179
|
label: o = "Notifications ({hotkey})",
|
|
4175
4180
|
...i
|
|
4176
|
-
} = e, a = ut(Wo, n), c =
|
|
4181
|
+
} = e, a = ut(Wo, n), c = gl(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
4182
|
l.useEffect(() => {
|
|
4178
|
-
const g = (
|
|
4183
|
+
const g = (y) => {
|
|
4179
4184
|
var x;
|
|
4180
|
-
r.length !== 0 && r.every((b) =>
|
|
4185
|
+
r.length !== 0 && r.every((b) => y[b] || y.code === b) && ((x = p.current) == null || x.focus());
|
|
4181
4186
|
};
|
|
4182
4187
|
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
4183
4188
|
}, [r]), l.useEffect(() => {
|
|
4184
|
-
const g = d.current,
|
|
4185
|
-
if (C && g &&
|
|
4186
|
-
const
|
|
4189
|
+
const g = d.current, y = p.current;
|
|
4190
|
+
if (C && g && y) {
|
|
4191
|
+
const w = () => {
|
|
4187
4192
|
if (!a.isClosePausedRef.current) {
|
|
4188
4193
|
const R = new CustomEvent(_t);
|
|
4189
|
-
|
|
4194
|
+
y.dispatchEvent(R), a.isClosePausedRef.current = !0;
|
|
4190
4195
|
}
|
|
4191
4196
|
}, x = () => {
|
|
4192
4197
|
if (a.isClosePausedRef.current) {
|
|
4193
4198
|
const R = new CustomEvent(It);
|
|
4194
|
-
|
|
4199
|
+
y.dispatchEvent(R), a.isClosePausedRef.current = !1;
|
|
4195
4200
|
}
|
|
4196
4201
|
}, b = (R) => {
|
|
4197
4202
|
!g.contains(R.relatedTarget) && x();
|
|
4198
4203
|
}, A = () => {
|
|
4199
4204
|
g.contains(document.activeElement) || x();
|
|
4200
4205
|
};
|
|
4201
|
-
return g.addEventListener("focusin",
|
|
4202
|
-
g.removeEventListener("focusin",
|
|
4206
|
+
return g.addEventListener("focusin", w), g.addEventListener("focusout", b), g.addEventListener("pointermove", w), g.addEventListener("pointerleave", A), window.addEventListener("blur", w), window.addEventListener("focus", x), () => {
|
|
4207
|
+
g.removeEventListener("focusin", w), g.removeEventListener("focusout", b), g.removeEventListener("pointermove", w), g.removeEventListener("pointerleave", A), window.removeEventListener("blur", w), window.removeEventListener("focus", x);
|
|
4203
4208
|
};
|
|
4204
4209
|
}
|
|
4205
4210
|
}, [C, a.isClosePausedRef]);
|
|
4206
4211
|
const h = l.useCallback(
|
|
4207
4212
|
({ tabbingDirection: g }) => {
|
|
4208
|
-
const
|
|
4209
|
-
const b = x.ref.current, A = [b, ...
|
|
4213
|
+
const w = c().map((x) => {
|
|
4214
|
+
const b = x.ref.current, A = [b, ...Dl(b)];
|
|
4210
4215
|
return g === "forwards" ? A : A.reverse();
|
|
4211
4216
|
});
|
|
4212
|
-
return (g === "forwards" ?
|
|
4217
|
+
return (g === "forwards" ? w.reverse() : w).flat();
|
|
4213
4218
|
},
|
|
4214
4219
|
[c]
|
|
4215
4220
|
);
|
|
4216
4221
|
return l.useEffect(() => {
|
|
4217
4222
|
const g = p.current;
|
|
4218
4223
|
if (g) {
|
|
4219
|
-
const
|
|
4224
|
+
const y = (w) => {
|
|
4220
4225
|
var A, R, P;
|
|
4221
|
-
const x =
|
|
4222
|
-
if (
|
|
4223
|
-
const S = document.activeElement,
|
|
4224
|
-
if (
|
|
4226
|
+
const x = w.altKey || w.ctrlKey || w.metaKey;
|
|
4227
|
+
if (w.key === "Tab" && !x) {
|
|
4228
|
+
const S = document.activeElement, L = w.shiftKey;
|
|
4229
|
+
if (w.target === g && L) {
|
|
4225
4230
|
(A = u.current) == null || A.focus();
|
|
4226
4231
|
return;
|
|
4227
4232
|
}
|
|
4228
|
-
const $ = h({ tabbingDirection:
|
|
4229
|
-
Pt($.slice(V + 1)) ?
|
|
4233
|
+
const $ = h({ tabbingDirection: L ? "backwards" : "forwards" }), V = $.findIndex((T) => T === S);
|
|
4234
|
+
Pt($.slice(V + 1)) ? w.preventDefault() : L ? (R = u.current) == null || R.focus() : (P = f.current) == null || P.focus();
|
|
4230
4235
|
}
|
|
4231
4236
|
};
|
|
4232
|
-
return g.addEventListener("keydown",
|
|
4237
|
+
return g.addEventListener("keydown", y), () => g.removeEventListener("keydown", y);
|
|
4233
4238
|
}
|
|
4234
4239
|
}, [c, h]), /* @__PURE__ */ E(
|
|
4235
4240
|
js,
|
|
@@ -4292,7 +4297,7 @@ var Uo = "ToastFocusProxy", kt = l.forwardRef(
|
|
|
4292
4297
|
}
|
|
4293
4298
|
);
|
|
4294
4299
|
kt.displayName = Uo;
|
|
4295
|
-
var dt = "Toast",
|
|
4300
|
+
var dt = "Toast", xl = "toast.swipeStart", bl = "toast.swipeMove", Al = "toast.swipeCancel", El = "toast.swipeEnd", Ko = l.forwardRef(
|
|
4296
4301
|
(e, t) => {
|
|
4297
4302
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: i, ...a } = e, [c = !0, d] = Te({
|
|
4298
4303
|
prop: r,
|
|
@@ -4300,7 +4305,7 @@ var dt = "Toast", yl = "toast.swipeStart", xl = "toast.swipeMove", bl = "toast.s
|
|
|
4300
4305
|
onChange: i
|
|
4301
4306
|
});
|
|
4302
4307
|
return /* @__PURE__ */ s(pe, { present: n || c, children: /* @__PURE__ */ s(
|
|
4303
|
-
|
|
4308
|
+
Tl,
|
|
4304
4309
|
{
|
|
4305
4310
|
open: c,
|
|
4306
4311
|
...a,
|
|
@@ -4308,17 +4313,17 @@ var dt = "Toast", yl = "toast.swipeStart", xl = "toast.swipeMove", bl = "toast.s
|
|
|
4308
4313
|
onClose: () => d(!1),
|
|
4309
4314
|
onPause: Y(e.onPause),
|
|
4310
4315
|
onResume: Y(e.onResume),
|
|
4311
|
-
onSwipeStart:
|
|
4316
|
+
onSwipeStart: I(e.onSwipeStart, (u) => {
|
|
4312
4317
|
u.currentTarget.setAttribute("data-swipe", "start");
|
|
4313
4318
|
}),
|
|
4314
|
-
onSwipeMove:
|
|
4319
|
+
onSwipeMove: I(e.onSwipeMove, (u) => {
|
|
4315
4320
|
const { x: f, y: p } = u.detail.delta;
|
|
4316
4321
|
u.currentTarget.setAttribute("data-swipe", "move"), u.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${f}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${p}px`);
|
|
4317
4322
|
}),
|
|
4318
|
-
onSwipeCancel:
|
|
4323
|
+
onSwipeCancel: I(e.onSwipeCancel, (u) => {
|
|
4319
4324
|
u.currentTarget.setAttribute("data-swipe", "cancel"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
4320
4325
|
}),
|
|
4321
|
-
onSwipeEnd:
|
|
4326
|
+
onSwipeEnd: I(e.onSwipeEnd, (u) => {
|
|
4322
4327
|
const { x: f, y: p } = u.detail.delta;
|
|
4323
4328
|
u.currentTarget.setAttribute("data-swipe", "end"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${f}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${p}px`), d(!1);
|
|
4324
4329
|
})
|
|
@@ -4327,10 +4332,10 @@ var dt = "Toast", yl = "toast.swipeStart", xl = "toast.swipeMove", bl = "toast.s
|
|
|
4327
4332
|
}
|
|
4328
4333
|
);
|
|
4329
4334
|
Ko.displayName = dt;
|
|
4330
|
-
var [
|
|
4335
|
+
var [Rl, Pl] = Bo(dt, {
|
|
4331
4336
|
onClose() {
|
|
4332
4337
|
}
|
|
4333
|
-
}),
|
|
4338
|
+
}), Tl = l.forwardRef(
|
|
4334
4339
|
(e, t) => {
|
|
4335
4340
|
const {
|
|
4336
4341
|
__scopeToast: n,
|
|
@@ -4346,7 +4351,7 @@ var [El, Rl] = Bo(dt, {
|
|
|
4346
4351
|
onSwipeCancel: m,
|
|
4347
4352
|
onSwipeEnd: v,
|
|
4348
4353
|
...C
|
|
4349
|
-
} = e, h = ut(dt, n), [g,
|
|
4354
|
+
} = e, h = ut(dt, n), [g, y] = l.useState(null), w = W(t, (T) => y(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: L, onToastRemove: O } = h, B = Y(() => {
|
|
4350
4355
|
var k;
|
|
4351
4356
|
(g == null ? void 0 : g.contains(document.activeElement)) && ((k = h.viewport) == null || k.focus()), a();
|
|
4352
4357
|
}), $ = l.useCallback(
|
|
@@ -4370,11 +4375,11 @@ var [El, Rl] = Bo(dt, {
|
|
|
4370
4375
|
}
|
|
4371
4376
|
}, [h.viewport, A, d, u, $]), l.useEffect(() => {
|
|
4372
4377
|
i && !h.isClosePausedRef.current && $(A);
|
|
4373
|
-
}, [i, A, h.isClosePausedRef, $]), l.useEffect(() => (
|
|
4378
|
+
}, [i, A, h.isClosePausedRef, $]), l.useEffect(() => (L(), () => O()), [L, O]);
|
|
4374
4379
|
const V = l.useMemo(() => g ? Jo(g) : null, [g]);
|
|
4375
4380
|
return h.viewport ? /* @__PURE__ */ E(De, { children: [
|
|
4376
4381
|
V && /* @__PURE__ */ s(
|
|
4377
|
-
|
|
4382
|
+
Nl,
|
|
4378
4383
|
{
|
|
4379
4384
|
__scopeToast: n,
|
|
4380
4385
|
role: "status",
|
|
@@ -4383,12 +4388,12 @@ var [El, Rl] = Bo(dt, {
|
|
|
4383
4388
|
children: V
|
|
4384
4389
|
}
|
|
4385
4390
|
),
|
|
4386
|
-
/* @__PURE__ */ s(
|
|
4391
|
+
/* @__PURE__ */ s(Rl, { scope: n, onClose: B, children: jt.createPortal(
|
|
4387
4392
|
/* @__PURE__ */ s(vn.ItemSlot, { scope: n, children: /* @__PURE__ */ s(
|
|
4388
4393
|
Ws,
|
|
4389
4394
|
{
|
|
4390
4395
|
asChild: !0,
|
|
4391
|
-
onEscapeKeyDown:
|
|
4396
|
+
onEscapeKeyDown: I(c, () => {
|
|
4392
4397
|
h.isFocusedToastEscapeKeyDownRef.current || B(), h.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
4393
4398
|
}),
|
|
4394
4399
|
children: /* @__PURE__ */ s(
|
|
@@ -4401,31 +4406,31 @@ var [El, Rl] = Bo(dt, {
|
|
|
4401
4406
|
"data-state": i ? "open" : "closed",
|
|
4402
4407
|
"data-swipe-direction": h.swipeDirection,
|
|
4403
4408
|
...C,
|
|
4404
|
-
ref:
|
|
4409
|
+
ref: w,
|
|
4405
4410
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
4406
|
-
onKeyDown:
|
|
4411
|
+
onKeyDown: I(e.onKeyDown, (T) => {
|
|
4407
4412
|
T.key === "Escape" && (c == null || c(T.nativeEvent), T.nativeEvent.defaultPrevented || (h.isFocusedToastEscapeKeyDownRef.current = !0, B()));
|
|
4408
4413
|
}),
|
|
4409
|
-
onPointerDown:
|
|
4414
|
+
onPointerDown: I(e.onPointerDown, (T) => {
|
|
4410
4415
|
T.button === 0 && (x.current = { x: T.clientX, y: T.clientY });
|
|
4411
4416
|
}),
|
|
4412
|
-
onPointerMove:
|
|
4417
|
+
onPointerMove: I(e.onPointerMove, (T) => {
|
|
4413
4418
|
if (!x.current) return;
|
|
4414
4419
|
const k = T.clientX - x.current.x, D = T.clientY - x.current.y, F = !!b.current, N = ["left", "right"].includes(h.swipeDirection), Z = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, K = N ? Z(0, k) : 0, he = N ? 0 : Z(0, D), Me = T.pointerType === "touch" ? 10 : 2, me = { x: K, y: he }, He = { originalEvent: T, delta: me };
|
|
4415
|
-
F ? (b.current = me, je(
|
|
4420
|
+
F ? (b.current = me, je(bl, p, He, {
|
|
4416
4421
|
discrete: !1
|
|
4417
|
-
})) : qn(me, h.swipeDirection, Me) ? (b.current = me, je(
|
|
4422
|
+
})) : qn(me, h.swipeDirection, Me) ? (b.current = me, je(xl, f, He, {
|
|
4418
4423
|
discrete: !1
|
|
4419
4424
|
}), T.target.setPointerCapture(T.pointerId)) : (Math.abs(k) > Me || Math.abs(D) > Me) && (x.current = null);
|
|
4420
4425
|
}),
|
|
4421
|
-
onPointerUp:
|
|
4426
|
+
onPointerUp: I(e.onPointerUp, (T) => {
|
|
4422
4427
|
const k = b.current, D = T.target;
|
|
4423
4428
|
if (D.hasPointerCapture(T.pointerId) && D.releasePointerCapture(T.pointerId), b.current = null, x.current = null, k) {
|
|
4424
4429
|
const F = T.currentTarget, N = { originalEvent: T, delta: k };
|
|
4425
|
-
qn(k, h.swipeDirection, h.swipeThreshold) ? je(
|
|
4430
|
+
qn(k, h.swipeDirection, h.swipeThreshold) ? je(El, v, N, {
|
|
4426
4431
|
discrete: !0
|
|
4427
4432
|
}) : je(
|
|
4428
|
-
|
|
4433
|
+
Al,
|
|
4429
4434
|
m,
|
|
4430
4435
|
N,
|
|
4431
4436
|
{
|
|
@@ -4444,30 +4449,30 @@ var [El, Rl] = Bo(dt, {
|
|
|
4444
4449
|
) })
|
|
4445
4450
|
] }) : null;
|
|
4446
4451
|
}
|
|
4447
|
-
),
|
|
4452
|
+
), Nl = (e) => {
|
|
4448
4453
|
const { __scopeToast: t, children: n, ...r } = e, o = ut(dt, t), [i, a] = l.useState(!1), [c, d] = l.useState(!1);
|
|
4449
|
-
return
|
|
4454
|
+
return Ll(() => a(!0)), l.useEffect(() => {
|
|
4450
4455
|
const u = window.setTimeout(() => d(!0), 1e3);
|
|
4451
4456
|
return () => window.clearTimeout(u);
|
|
4452
|
-
}, []), c ? null : /* @__PURE__ */ s(
|
|
4457
|
+
}, []), c ? null : /* @__PURE__ */ s(en, { asChild: !0, children: /* @__PURE__ */ s(lt, { ...r, children: i && /* @__PURE__ */ E(De, { children: [
|
|
4453
4458
|
o.label,
|
|
4454
4459
|
" ",
|
|
4455
4460
|
n
|
|
4456
4461
|
] }) }) });
|
|
4457
|
-
},
|
|
4462
|
+
}, Sl = "ToastTitle", Yo = l.forwardRef(
|
|
4458
4463
|
(e, t) => {
|
|
4459
4464
|
const { __scopeToast: n, ...r } = e;
|
|
4460
4465
|
return /* @__PURE__ */ s(H.div, { ...r, ref: t });
|
|
4461
4466
|
}
|
|
4462
4467
|
);
|
|
4463
|
-
Yo.displayName =
|
|
4464
|
-
var
|
|
4468
|
+
Yo.displayName = Sl;
|
|
4469
|
+
var Ml = "ToastDescription", Go = l.forwardRef(
|
|
4465
4470
|
(e, t) => {
|
|
4466
4471
|
const { __scopeToast: n, ...r } = e;
|
|
4467
4472
|
return /* @__PURE__ */ s(H.div, { ...r, ref: t });
|
|
4468
4473
|
}
|
|
4469
4474
|
);
|
|
4470
|
-
Go.displayName =
|
|
4475
|
+
Go.displayName = Ml;
|
|
4471
4476
|
var zo = "ToastAction", Xo = l.forwardRef(
|
|
4472
4477
|
(e, t) => {
|
|
4473
4478
|
const { altText: n, ...r } = e;
|
|
@@ -4479,14 +4484,14 @@ var zo = "ToastAction", Xo = l.forwardRef(
|
|
|
4479
4484
|
Xo.displayName = zo;
|
|
4480
4485
|
var qo = "ToastClose", gn = l.forwardRef(
|
|
4481
4486
|
(e, t) => {
|
|
4482
|
-
const { __scopeToast: n, ...r } = e, o =
|
|
4487
|
+
const { __scopeToast: n, ...r } = e, o = Pl(qo, n);
|
|
4483
4488
|
return /* @__PURE__ */ s(Qo, { asChild: !0, children: /* @__PURE__ */ s(
|
|
4484
4489
|
H.button,
|
|
4485
4490
|
{
|
|
4486
4491
|
type: "button",
|
|
4487
4492
|
...r,
|
|
4488
4493
|
ref: t,
|
|
4489
|
-
onClick:
|
|
4494
|
+
onClick: I(e.onClick, o.onClose)
|
|
4490
4495
|
}
|
|
4491
4496
|
) });
|
|
4492
4497
|
}
|
|
@@ -4526,7 +4531,7 @@ var qn = (e, t, n = 0) => {
|
|
|
4526
4531
|
const r = Math.abs(e.x), o = Math.abs(e.y), i = r > o;
|
|
4527
4532
|
return t === "left" || t === "right" ? i && r > n : !i && o > n;
|
|
4528
4533
|
};
|
|
4529
|
-
function
|
|
4534
|
+
function Ll(e = () => {
|
|
4530
4535
|
}) {
|
|
4531
4536
|
const t = Y(e);
|
|
4532
4537
|
ee(() => {
|
|
@@ -4539,7 +4544,7 @@ function Ml(e = () => {
|
|
|
4539
4544
|
function Ol(e) {
|
|
4540
4545
|
return e.nodeType === e.ELEMENT_NODE;
|
|
4541
4546
|
}
|
|
4542
|
-
function
|
|
4547
|
+
function Dl(e) {
|
|
4543
4548
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4544
4549
|
acceptNode: (r) => {
|
|
4545
4550
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -4553,8 +4558,8 @@ function Pt(e) {
|
|
|
4553
4558
|
const t = document.activeElement;
|
|
4554
4559
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
4555
4560
|
}
|
|
4556
|
-
var
|
|
4557
|
-
const
|
|
4561
|
+
var _l = Zo, ei = jo, ti = Ko, ni = Yo, ri = Go, oi = Xo, ii = gn;
|
|
4562
|
+
const Il = _l, kl = {
|
|
4558
4563
|
"top-left": "top-0 left-0 bottom-auto mt-10 items-start",
|
|
4559
4564
|
"top-center": "top-0 left-1/2 bottom-auto transform -translate-x-1/2 mt-10 items-center",
|
|
4560
4565
|
"top-right": "top-0 right-0 bottom-auto items-end mt-10",
|
|
@@ -4568,14 +4573,14 @@ const _l = Dl, Il = {
|
|
|
4568
4573
|
id: t,
|
|
4569
4574
|
className: M(
|
|
4570
4575
|
"fixed z-[100] flex flex-col-reverse gap-2 p-4 md:p-10 outline-none ring-transparent",
|
|
4571
|
-
|
|
4576
|
+
kl[n],
|
|
4572
4577
|
e
|
|
4573
4578
|
),
|
|
4574
4579
|
...r
|
|
4575
4580
|
}
|
|
4576
4581
|
));
|
|
4577
4582
|
ai.displayName = ei.displayName;
|
|
4578
|
-
const
|
|
4583
|
+
const Hl = Dr(
|
|
4579
4584
|
"group pointer-events-auto relative flex w-full whitespace-pre-wrap bg-opacity-90 items-end justify-between space-x-4 overflow-hidden rounded-lg border p-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-top-full",
|
|
4580
4585
|
{
|
|
4581
4586
|
variants: {
|
|
@@ -4601,7 +4606,7 @@ const kl = Dr(
|
|
|
4601
4606
|
ti,
|
|
4602
4607
|
{
|
|
4603
4608
|
ref: o,
|
|
4604
|
-
className: M(
|
|
4609
|
+
className: M(Hl({ variant: t, size: n }), e),
|
|
4605
4610
|
...r,
|
|
4606
4611
|
duration: 2500
|
|
4607
4612
|
}
|
|
@@ -4629,7 +4634,7 @@ const li = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
|
4629
4634
|
),
|
|
4630
4635
|
"toast-close": "",
|
|
4631
4636
|
...t,
|
|
4632
|
-
children: /* @__PURE__ */ s(
|
|
4637
|
+
children: /* @__PURE__ */ s(Ut.Cancel, { size: "12" })
|
|
4633
4638
|
}
|
|
4634
4639
|
));
|
|
4635
4640
|
li.displayName = ii.displayName;
|
|
@@ -4651,13 +4656,13 @@ const di = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
|
|
|
4651
4656
|
}
|
|
4652
4657
|
));
|
|
4653
4658
|
di.displayName = ri.displayName;
|
|
4654
|
-
function
|
|
4659
|
+
function Eu() {
|
|
4655
4660
|
const { toasts: e } = Ui(), t = e.reduce((n, r) => {
|
|
4656
4661
|
const o = r.position || "top-center";
|
|
4657
4662
|
return n[o] || (n[o] = []), n[o].push(r), n;
|
|
4658
4663
|
}, {});
|
|
4659
4664
|
return /* @__PURE__ */ E(Ki, { children: [
|
|
4660
|
-
Object.entries(t).map(([n, r]) => /* @__PURE__ */ E(
|
|
4665
|
+
Object.entries(t).map(([n, r]) => /* @__PURE__ */ E(Il, { children: [
|
|
4661
4666
|
/* @__PURE__ */ s(ai, { position: n }),
|
|
4662
4667
|
r.map(function({
|
|
4663
4668
|
id: o,
|
|
@@ -4675,9 +4680,9 @@ function Au() {
|
|
|
4675
4680
|
variant: f,
|
|
4676
4681
|
...p,
|
|
4677
4682
|
children: [
|
|
4678
|
-
/* @__PURE__ */ E("div", { className: "
|
|
4683
|
+
/* @__PURE__ */ E("div", { className: "flex flex-col gap-1", children: [
|
|
4679
4684
|
i && /* @__PURE__ */ s(ui, { children: i }),
|
|
4680
|
-
|
|
4685
|
+
/* @__PURE__ */ s(di, { children: a })
|
|
4681
4686
|
] }),
|
|
4682
4687
|
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
4688
|
u && /* @__PURE__ */ s(li, {})
|
|
@@ -4690,22 +4695,21 @@ function Au() {
|
|
|
4690
4695
|
" "
|
|
4691
4696
|
] });
|
|
4692
4697
|
}
|
|
4693
|
-
const
|
|
4694
|
-
const [t, n] =
|
|
4698
|
+
const Ru = ({ children: e }) => {
|
|
4699
|
+
const [t, n] = Wt(null);
|
|
4695
4700
|
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) => ({
|
|
4701
|
+
let r = document.getElementById("portal");
|
|
4702
|
+
r || (r = document.createElement("div"), r.id = "portal", document.body.appendChild(r)), n(r);
|
|
4703
|
+
}, []), t ? cr.createPortal(e, t) : null;
|
|
4704
|
+
}, Vl = ["top", "right", "bottom", "left"], ae = Math.min, j = Math.max, Je = Math.round, Ue = Math.floor, se = (e) => ({
|
|
4701
4705
|
x: e,
|
|
4702
4706
|
y: e
|
|
4703
|
-
}),
|
|
4707
|
+
}), Fl = {
|
|
4704
4708
|
left: "right",
|
|
4705
4709
|
right: "left",
|
|
4706
4710
|
bottom: "top",
|
|
4707
4711
|
top: "bottom"
|
|
4708
|
-
},
|
|
4712
|
+
}, $l = {
|
|
4709
4713
|
start: "end",
|
|
4710
4714
|
end: "start"
|
|
4711
4715
|
};
|
|
@@ -4733,20 +4737,20 @@ function ce(e) {
|
|
|
4733
4737
|
function yn(e) {
|
|
4734
4738
|
return Cn(ce(e));
|
|
4735
4739
|
}
|
|
4736
|
-
function
|
|
4740
|
+
function Bl(e, t, n) {
|
|
4737
4741
|
n === void 0 && (n = !1);
|
|
4738
4742
|
const r = Ne(e), o = yn(e), i = wn(o);
|
|
4739
4743
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4740
|
-
return t.reference[i] > t.floating[i] && (a =
|
|
4744
|
+
return t.reference[i] > t.floating[i] && (a = et(a)), [a, et(a)];
|
|
4741
4745
|
}
|
|
4742
|
-
function
|
|
4743
|
-
const t =
|
|
4746
|
+
function Zl(e) {
|
|
4747
|
+
const t = et(e);
|
|
4744
4748
|
return [Vt(e), t, Vt(t)];
|
|
4745
4749
|
}
|
|
4746
4750
|
function Vt(e) {
|
|
4747
|
-
return e.replace(/start|end/g, (t) =>
|
|
4751
|
+
return e.replace(/start|end/g, (t) => $l[t]);
|
|
4748
4752
|
}
|
|
4749
|
-
function
|
|
4753
|
+
function Wl(e, t, n) {
|
|
4750
4754
|
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
|
|
4751
4755
|
switch (e) {
|
|
4752
4756
|
case "top":
|
|
@@ -4759,15 +4763,15 @@ function Zl(e, t, n) {
|
|
|
4759
4763
|
return [];
|
|
4760
4764
|
}
|
|
4761
4765
|
}
|
|
4762
|
-
function
|
|
4766
|
+
function jl(e, t, n, r) {
|
|
4763
4767
|
const o = Ne(e);
|
|
4764
|
-
let i =
|
|
4768
|
+
let i = Wl(ne(e), n === "start", r);
|
|
4765
4769
|
return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(Vt)))), i;
|
|
4766
4770
|
}
|
|
4767
|
-
function
|
|
4768
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4771
|
+
function et(e) {
|
|
4772
|
+
return e.replace(/left|right|bottom|top/g, (t) => Fl[t]);
|
|
4769
4773
|
}
|
|
4770
|
-
function
|
|
4774
|
+
function Ul(e) {
|
|
4771
4775
|
return {
|
|
4772
4776
|
top: 0,
|
|
4773
4777
|
right: 0,
|
|
@@ -4777,14 +4781,14 @@ function jl(e) {
|
|
|
4777
4781
|
};
|
|
4778
4782
|
}
|
|
4779
4783
|
function fi(e) {
|
|
4780
|
-
return typeof e != "number" ?
|
|
4784
|
+
return typeof e != "number" ? Ul(e) : {
|
|
4781
4785
|
top: e,
|
|
4782
4786
|
right: e,
|
|
4783
4787
|
bottom: e,
|
|
4784
4788
|
left: e
|
|
4785
4789
|
};
|
|
4786
4790
|
}
|
|
4787
|
-
function
|
|
4791
|
+
function tt(e) {
|
|
4788
4792
|
const {
|
|
4789
4793
|
x: t,
|
|
4790
4794
|
y: n,
|
|
@@ -4850,7 +4854,7 @@ function Qn(e, t, n) {
|
|
|
4850
4854
|
}
|
|
4851
4855
|
return v;
|
|
4852
4856
|
}
|
|
4853
|
-
const
|
|
4857
|
+
const Kl = async (e, t, n) => {
|
|
4854
4858
|
const {
|
|
4855
4859
|
placement: r = "bottom",
|
|
4856
4860
|
strategy: o = "absolute",
|
|
@@ -4868,13 +4872,13 @@ const Ul = async (e, t, n) => {
|
|
|
4868
4872
|
for (let h = 0; h < c.length; h++) {
|
|
4869
4873
|
const {
|
|
4870
4874
|
name: g,
|
|
4871
|
-
fn:
|
|
4875
|
+
fn: y
|
|
4872
4876
|
} = c[h], {
|
|
4873
|
-
x:
|
|
4877
|
+
x: w,
|
|
4874
4878
|
y: x,
|
|
4875
4879
|
data: b,
|
|
4876
4880
|
reset: A
|
|
4877
|
-
} = await
|
|
4881
|
+
} = await y({
|
|
4878
4882
|
x: f,
|
|
4879
4883
|
y: p,
|
|
4880
4884
|
initialPlacement: r,
|
|
@@ -4888,7 +4892,7 @@ const Ul = async (e, t, n) => {
|
|
|
4888
4892
|
floating: t
|
|
4889
4893
|
}
|
|
4890
4894
|
});
|
|
4891
|
-
f =
|
|
4895
|
+
f = w ?? f, p = x ?? p, v = {
|
|
4892
4896
|
...v,
|
|
4893
4897
|
[g]: {
|
|
4894
4898
|
...v[g],
|
|
@@ -4927,12 +4931,12 @@ async function _e(e, t) {
|
|
|
4927
4931
|
elementContext: p = "floating",
|
|
4928
4932
|
altBoundary: m = !1,
|
|
4929
4933
|
padding: v = 0
|
|
4930
|
-
} = te(t, e), C = fi(v), g = c[m ? p === "floating" ? "reference" : "floating" : p],
|
|
4934
|
+
} = te(t, e), C = fi(v), g = c[m ? p === "floating" ? "reference" : "floating" : p], y = tt(await i.getClippingRect({
|
|
4931
4935
|
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
4936
|
boundary: u,
|
|
4933
4937
|
rootBoundary: f,
|
|
4934
4938
|
strategy: d
|
|
4935
|
-
})),
|
|
4939
|
+
})), w = p === "floating" ? {
|
|
4936
4940
|
x: r,
|
|
4937
4941
|
y: o,
|
|
4938
4942
|
width: a.floating.width,
|
|
@@ -4943,20 +4947,20 @@ async function _e(e, t) {
|
|
|
4943
4947
|
} : {
|
|
4944
4948
|
x: 1,
|
|
4945
4949
|
y: 1
|
|
4946
|
-
}, A =
|
|
4950
|
+
}, A = tt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4947
4951
|
elements: c,
|
|
4948
|
-
rect:
|
|
4952
|
+
rect: w,
|
|
4949
4953
|
offsetParent: x,
|
|
4950
4954
|
strategy: d
|
|
4951
|
-
}) :
|
|
4955
|
+
}) : w);
|
|
4952
4956
|
return {
|
|
4953
|
-
top: (
|
|
4954
|
-
bottom: (A.bottom -
|
|
4955
|
-
left: (
|
|
4956
|
-
right: (A.right -
|
|
4957
|
+
top: (y.top - A.top + C.top) / b.y,
|
|
4958
|
+
bottom: (A.bottom - y.bottom + C.bottom) / b.y,
|
|
4959
|
+
left: (y.left - A.left + C.left) / b.x,
|
|
4960
|
+
right: (A.right - y.right + C.right) / b.x
|
|
4957
4961
|
};
|
|
4958
4962
|
}
|
|
4959
|
-
const
|
|
4963
|
+
const Yl = (e) => ({
|
|
4960
4964
|
name: "arrow",
|
|
4961
4965
|
options: e,
|
|
4962
4966
|
async fn(t) {
|
|
@@ -4977,10 +4981,10 @@ const Kl = (e) => ({
|
|
|
4977
4981
|
const p = fi(f), m = {
|
|
4978
4982
|
x: n,
|
|
4979
4983
|
y: r
|
|
4980
|
-
}, v = yn(o), C = wn(v), h = await a.getDimensions(u), g = v === "y",
|
|
4984
|
+
}, v = yn(o), C = wn(v), h = await a.getDimensions(u), g = v === "y", y = g ? "top" : "left", w = 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
4985
|
let P = R ? R[x] : 0;
|
|
4982
4986
|
(!P || !await (a.isElement == null ? void 0 : a.isElement(R))) && (P = c.floating[x] || i.floating[C]);
|
|
4983
|
-
const S = b / 2 - A / 2,
|
|
4987
|
+
const S = b / 2 - A / 2, L = P / 2 - h[C] / 2 - 1, O = ae(p[y], L), B = ae(p[w], L), $ = O, V = P - h[C] - B, T = P / 2 - h[C] / 2 + S, k = Ht($, T, V), D = !d.arrow && Ne(o) != null && T !== k && i.reference[C] / 2 - (T < $ ? O : B) - h[C] / 2 < 0, F = D ? T < $ ? T - $ : T - V : 0;
|
|
4984
4988
|
return {
|
|
4985
4989
|
[v]: m[v] + F,
|
|
4986
4990
|
data: {
|
|
@@ -4993,7 +4997,7 @@ const Kl = (e) => ({
|
|
|
4993
4997
|
reset: D
|
|
4994
4998
|
};
|
|
4995
4999
|
}
|
|
4996
|
-
}),
|
|
5000
|
+
}), Gl = function(e) {
|
|
4997
5001
|
return e === void 0 && (e = {}), {
|
|
4998
5002
|
name: "flip",
|
|
4999
5003
|
options: e,
|
|
@@ -5017,39 +5021,39 @@ const Kl = (e) => ({
|
|
|
5017
5021
|
} = te(e, t);
|
|
5018
5022
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
5019
5023
|
return {};
|
|
5020
|
-
const
|
|
5021
|
-
!m && R && A.push(...
|
|
5022
|
-
const P = [c, ...A], S = await _e(t, g),
|
|
5023
|
-
let
|
|
5024
|
-
if (f &&
|
|
5025
|
-
const T =
|
|
5026
|
-
|
|
5024
|
+
const y = ne(o), w = ce(c), x = ne(c) === c, b = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), A = m || (x || !h ? [et(c)] : Zl(c)), R = C !== "none";
|
|
5025
|
+
!m && R && A.push(...jl(c, h, C, b));
|
|
5026
|
+
const P = [c, ...A], S = await _e(t, g), L = [];
|
|
5027
|
+
let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
5028
|
+
if (f && L.push(S[y]), p) {
|
|
5029
|
+
const T = Bl(o, a, b);
|
|
5030
|
+
L.push(S[T[0]], S[T[1]]);
|
|
5027
5031
|
}
|
|
5028
|
-
if (
|
|
5032
|
+
if (O = [...O, {
|
|
5029
5033
|
placement: o,
|
|
5030
|
-
overflows:
|
|
5031
|
-
}], !
|
|
5034
|
+
overflows: L
|
|
5035
|
+
}], !L.every((T) => T <= 0)) {
|
|
5032
5036
|
var B, $;
|
|
5033
5037
|
const T = (((B = i.flip) == null ? void 0 : B.index) || 0) + 1, k = P[T];
|
|
5034
5038
|
if (k)
|
|
5035
5039
|
return {
|
|
5036
5040
|
data: {
|
|
5037
5041
|
index: T,
|
|
5038
|
-
overflows:
|
|
5042
|
+
overflows: O
|
|
5039
5043
|
},
|
|
5040
5044
|
reset: {
|
|
5041
5045
|
placement: k
|
|
5042
5046
|
}
|
|
5043
5047
|
};
|
|
5044
|
-
let D = ($ =
|
|
5048
|
+
let D = ($ = O.filter((F) => F.overflows[0] <= 0).sort((F, N) => F.overflows[1] - N.overflows[1])[0]) == null ? void 0 : $.placement;
|
|
5045
5049
|
if (!D)
|
|
5046
5050
|
switch (v) {
|
|
5047
5051
|
case "bestFit": {
|
|
5048
5052
|
var V;
|
|
5049
|
-
const F = (V =
|
|
5053
|
+
const F = (V = O.filter((N) => {
|
|
5050
5054
|
if (R) {
|
|
5051
5055
|
const Z = ce(N.placement);
|
|
5052
|
-
return Z ===
|
|
5056
|
+
return Z === w || // Create a bias to the `y` side axis due to horizontal
|
|
5053
5057
|
// reading directions favoring greater width.
|
|
5054
5058
|
Z === "y";
|
|
5055
5059
|
}
|
|
@@ -5082,9 +5086,9 @@ function Jn(e, t) {
|
|
|
5082
5086
|
};
|
|
5083
5087
|
}
|
|
5084
5088
|
function er(e) {
|
|
5085
|
-
return
|
|
5089
|
+
return Vl.some((t) => e[t] >= 0);
|
|
5086
5090
|
}
|
|
5087
|
-
const
|
|
5091
|
+
const zl = function(e) {
|
|
5088
5092
|
return e === void 0 && (e = {}), {
|
|
5089
5093
|
name: "hide",
|
|
5090
5094
|
options: e,
|
|
@@ -5126,7 +5130,7 @@ const Gl = function(e) {
|
|
|
5126
5130
|
}
|
|
5127
5131
|
};
|
|
5128
5132
|
};
|
|
5129
|
-
async function
|
|
5133
|
+
async function Xl(e, t) {
|
|
5130
5134
|
const {
|
|
5131
5135
|
placement: n,
|
|
5132
5136
|
platform: r,
|
|
@@ -5153,7 +5157,7 @@ async function zl(e, t) {
|
|
|
5153
5157
|
y: v * f
|
|
5154
5158
|
};
|
|
5155
5159
|
}
|
|
5156
|
-
const
|
|
5160
|
+
const ql = function(e) {
|
|
5157
5161
|
return e === void 0 && (e = 0), {
|
|
5158
5162
|
name: "offset",
|
|
5159
5163
|
options: e,
|
|
@@ -5164,7 +5168,7 @@ const Xl = function(e) {
|
|
|
5164
5168
|
y: i,
|
|
5165
5169
|
placement: a,
|
|
5166
5170
|
middlewareData: c
|
|
5167
|
-
} = t, d = await
|
|
5171
|
+
} = t, d = await Xl(t, e);
|
|
5168
5172
|
return a === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
5169
5173
|
x: o + d.x,
|
|
5170
5174
|
y: i + d.y,
|
|
@@ -5175,7 +5179,7 @@ const Xl = function(e) {
|
|
|
5175
5179
|
};
|
|
5176
5180
|
}
|
|
5177
5181
|
};
|
|
5178
|
-
},
|
|
5182
|
+
}, Ql = function(e) {
|
|
5179
5183
|
return e === void 0 && (e = {}), {
|
|
5180
5184
|
name: "shift",
|
|
5181
5185
|
options: e,
|
|
@@ -5190,12 +5194,12 @@ const Xl = function(e) {
|
|
|
5190
5194
|
limiter: c = {
|
|
5191
5195
|
fn: (g) => {
|
|
5192
5196
|
let {
|
|
5193
|
-
x:
|
|
5194
|
-
y
|
|
5197
|
+
x: y,
|
|
5198
|
+
y: w
|
|
5195
5199
|
} = g;
|
|
5196
5200
|
return {
|
|
5197
|
-
x:
|
|
5198
|
-
y
|
|
5201
|
+
x: y,
|
|
5202
|
+
y: w
|
|
5199
5203
|
};
|
|
5200
5204
|
}
|
|
5201
5205
|
},
|
|
@@ -5206,12 +5210,12 @@ const Xl = function(e) {
|
|
|
5206
5210
|
}, f = await _e(t, d), p = ce(ne(o)), m = Cn(p);
|
|
5207
5211
|
let v = u[m], C = u[p];
|
|
5208
5212
|
if (i) {
|
|
5209
|
-
const g = m === "y" ? "top" : "left",
|
|
5210
|
-
v = Ht(
|
|
5213
|
+
const g = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", w = v + f[g], x = v - f[y];
|
|
5214
|
+
v = Ht(w, v, x);
|
|
5211
5215
|
}
|
|
5212
5216
|
if (a) {
|
|
5213
|
-
const g = p === "y" ? "top" : "left",
|
|
5214
|
-
C = Ht(
|
|
5217
|
+
const g = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = C + f[g], x = C - f[y];
|
|
5218
|
+
C = Ht(w, C, x);
|
|
5215
5219
|
}
|
|
5216
5220
|
const h = c.fn({
|
|
5217
5221
|
...t,
|
|
@@ -5231,7 +5235,7 @@ const Xl = function(e) {
|
|
|
5231
5235
|
};
|
|
5232
5236
|
}
|
|
5233
5237
|
};
|
|
5234
|
-
},
|
|
5238
|
+
}, Jl = function(e) {
|
|
5235
5239
|
return e === void 0 && (e = {}), {
|
|
5236
5240
|
options: e,
|
|
5237
5241
|
fn(t) {
|
|
@@ -5263,8 +5267,8 @@ const Xl = function(e) {
|
|
|
5263
5267
|
v < b ? v = b : v > A && (v = A);
|
|
5264
5268
|
}
|
|
5265
5269
|
if (u) {
|
|
5266
|
-
var
|
|
5267
|
-
const x = m === "y" ? "width" : "height", b = ["top", "left"].includes(ne(o)), A = i.reference[p] - i.floating[x] + (b && ((
|
|
5270
|
+
var y, w;
|
|
5271
|
+
const x = m === "y" ? "width" : "height", b = ["top", "left"].includes(ne(o)), A = i.reference[p] - i.floating[x] + (b && ((y = a.offset) == null ? void 0 : y[p]) || 0) + (b ? 0 : g.crossAxis), R = i.reference[p] + i.reference[x] + (b ? 0 : ((w = a.offset) == null ? void 0 : w[p]) || 0) - (b ? g.crossAxis : 0);
|
|
5268
5272
|
C < A ? C = A : C > R && (C = R);
|
|
5269
5273
|
}
|
|
5270
5274
|
return {
|
|
@@ -5273,7 +5277,7 @@ const Xl = function(e) {
|
|
|
5273
5277
|
};
|
|
5274
5278
|
}
|
|
5275
5279
|
};
|
|
5276
|
-
},
|
|
5280
|
+
}, e1 = function(e) {
|
|
5277
5281
|
return e === void 0 && (e = {}), {
|
|
5278
5282
|
name: "size",
|
|
5279
5283
|
options: e,
|
|
@@ -5292,21 +5296,21 @@ const Xl = function(e) {
|
|
|
5292
5296
|
width: C,
|
|
5293
5297
|
height: h
|
|
5294
5298
|
} = i.floating;
|
|
5295
|
-
let g,
|
|
5296
|
-
p === "top" || p === "bottom" ? (g = p,
|
|
5297
|
-
const
|
|
5299
|
+
let g, y;
|
|
5300
|
+
p === "top" || p === "bottom" ? (g = p, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = p, g = m === "end" ? "top" : "bottom");
|
|
5301
|
+
const w = h - f.top - f.bottom, x = C - f.left - f.right, b = ae(h - f[g], w), A = ae(C - f[y], x), R = !t.middlewareData.shift;
|
|
5298
5302
|
let P = b, S = A;
|
|
5299
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = x), (r = t.middlewareData.shift) != null && r.enabled.y && (P =
|
|
5300
|
-
const
|
|
5301
|
-
v ? S = C - 2 * (
|
|
5303
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = x), (r = t.middlewareData.shift) != null && r.enabled.y && (P = w), R && !m) {
|
|
5304
|
+
const O = j(f.left, 0), B = j(f.right, 0), $ = j(f.top, 0), V = j(f.bottom, 0);
|
|
5305
|
+
v ? S = C - 2 * (O !== 0 || B !== 0 ? O + B : j(f.left, f.right)) : P = h - 2 * ($ !== 0 || V !== 0 ? $ + V : j(f.top, f.bottom));
|
|
5302
5306
|
}
|
|
5303
5307
|
await d({
|
|
5304
5308
|
...t,
|
|
5305
5309
|
availableWidth: S,
|
|
5306
5310
|
availableHeight: P
|
|
5307
5311
|
});
|
|
5308
|
-
const
|
|
5309
|
-
return C !==
|
|
5312
|
+
const L = await a.getDimensions(c.floating);
|
|
5313
|
+
return C !== L.width || h !== L.height ? {
|
|
5310
5314
|
reset: {
|
|
5311
5315
|
rects: !0
|
|
5312
5316
|
}
|
|
@@ -5349,7 +5353,7 @@ function ke(e) {
|
|
|
5349
5353
|
} = z(e);
|
|
5350
5354
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5351
5355
|
}
|
|
5352
|
-
function
|
|
5356
|
+
function t1(e) {
|
|
5353
5357
|
return ["table", "td", "th"].includes(Se(e));
|
|
5354
5358
|
}
|
|
5355
5359
|
function pt(e) {
|
|
@@ -5365,7 +5369,7 @@ function xn(e) {
|
|
|
5365
5369
|
const t = bn(), n = G(e) ? z(e) : e;
|
|
5366
5370
|
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((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
5367
5371
|
}
|
|
5368
|
-
function
|
|
5372
|
+
function n1(e) {
|
|
5369
5373
|
let t = le(e);
|
|
5370
5374
|
for (; Q(t) && !Ee(t); ) {
|
|
5371
5375
|
if (xn(t))
|
|
@@ -5426,7 +5430,7 @@ function Ft(e) {
|
|
|
5426
5430
|
function mi(e) {
|
|
5427
5431
|
const t = z(e);
|
|
5428
5432
|
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 =
|
|
5433
|
+
const o = Q(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, c = Je(n) !== i || Je(r) !== a;
|
|
5430
5434
|
return c && (n = i, r = a), {
|
|
5431
5435
|
width: n,
|
|
5432
5436
|
height: r,
|
|
@@ -5445,21 +5449,21 @@ function be(e) {
|
|
|
5445
5449
|
height: o,
|
|
5446
5450
|
$: i
|
|
5447
5451
|
} = mi(t);
|
|
5448
|
-
let a = (i ?
|
|
5452
|
+
let a = (i ? Je(n.width) : n.width) / r, c = (i ? Je(n.height) : n.height) / o;
|
|
5449
5453
|
return (!a || !Number.isFinite(a)) && (a = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
5450
5454
|
x: a,
|
|
5451
5455
|
y: c
|
|
5452
5456
|
};
|
|
5453
5457
|
}
|
|
5454
|
-
const
|
|
5458
|
+
const r1 = /* @__PURE__ */ se(0);
|
|
5455
5459
|
function vi(e) {
|
|
5456
5460
|
const t = U(e);
|
|
5457
|
-
return !bn() || !t.visualViewport ?
|
|
5461
|
+
return !bn() || !t.visualViewport ? r1 : {
|
|
5458
5462
|
x: t.visualViewport.offsetLeft,
|
|
5459
5463
|
y: t.visualViewport.offsetTop
|
|
5460
5464
|
};
|
|
5461
5465
|
}
|
|
5462
|
-
function
|
|
5466
|
+
function o1(e, t, n) {
|
|
5463
5467
|
return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
|
|
5464
5468
|
}
|
|
5465
5469
|
function fe(e, t, n, r) {
|
|
@@ -5467,24 +5471,24 @@ function fe(e, t, n, r) {
|
|
|
5467
5471
|
const o = e.getBoundingClientRect(), i = An(e);
|
|
5468
5472
|
let a = se(1);
|
|
5469
5473
|
t && (r ? G(r) && (a = be(r)) : a = be(e));
|
|
5470
|
-
const c =
|
|
5474
|
+
const c = o1(i, n, r) ? vi(i) : se(0);
|
|
5471
5475
|
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
5476
|
if (i) {
|
|
5473
5477
|
const m = U(i), v = r && G(r) ? U(r) : r;
|
|
5474
5478
|
let C = m, h = Ft(C);
|
|
5475
5479
|
for (; h && r && v !== C; ) {
|
|
5476
|
-
const g = be(h),
|
|
5480
|
+
const g = be(h), y = h.getBoundingClientRect(), w = z(h), x = y.left + (h.clientLeft + parseFloat(w.paddingLeft)) * g.x, b = y.top + (h.clientTop + parseFloat(w.paddingTop)) * g.y;
|
|
5477
5481
|
d *= g.x, u *= g.y, f *= g.x, p *= g.y, d += x, u += b, C = U(h), h = Ft(C);
|
|
5478
5482
|
}
|
|
5479
5483
|
}
|
|
5480
|
-
return
|
|
5484
|
+
return tt({
|
|
5481
5485
|
width: f,
|
|
5482
5486
|
height: p,
|
|
5483
5487
|
x: d,
|
|
5484
5488
|
y: u
|
|
5485
5489
|
});
|
|
5486
5490
|
}
|
|
5487
|
-
function
|
|
5491
|
+
function i1(e) {
|
|
5488
5492
|
let {
|
|
5489
5493
|
elements: t,
|
|
5490
5494
|
rect: n,
|
|
@@ -5510,14 +5514,14 @@ function o1(e) {
|
|
|
5510
5514
|
y: n.y * u.y - d.scrollTop * u.y + f.y
|
|
5511
5515
|
};
|
|
5512
5516
|
}
|
|
5513
|
-
function
|
|
5517
|
+
function a1(e) {
|
|
5514
5518
|
return Array.from(e.getClientRects());
|
|
5515
5519
|
}
|
|
5516
5520
|
function $t(e, t) {
|
|
5517
5521
|
const n = ht(e).scrollLeft;
|
|
5518
5522
|
return t ? t.left + n : fe(J(e)).left + n;
|
|
5519
5523
|
}
|
|
5520
|
-
function
|
|
5524
|
+
function s1(e) {
|
|
5521
5525
|
const t = J(e), n = ht(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);
|
|
5522
5526
|
let a = -n.scrollLeft + $t(e);
|
|
5523
5527
|
const c = -n.scrollTop;
|
|
@@ -5528,7 +5532,7 @@ function a1(e) {
|
|
|
5528
5532
|
y: c
|
|
5529
5533
|
};
|
|
5530
5534
|
}
|
|
5531
|
-
function
|
|
5535
|
+
function c1(e, t) {
|
|
5532
5536
|
const n = U(e), r = J(e), o = n.visualViewport;
|
|
5533
5537
|
let i = r.clientWidth, a = r.clientHeight, c = 0, d = 0;
|
|
5534
5538
|
if (o) {
|
|
@@ -5543,7 +5547,7 @@ function s1(e, t) {
|
|
|
5543
5547
|
y: d
|
|
5544
5548
|
};
|
|
5545
5549
|
}
|
|
5546
|
-
function
|
|
5550
|
+
function l1(e, t) {
|
|
5547
5551
|
const n = fe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Q(e) ? be(e) : se(1), a = e.clientWidth * i.x, c = e.clientHeight * i.y, d = o * i.x, u = r * i.y;
|
|
5548
5552
|
return {
|
|
5549
5553
|
width: a,
|
|
@@ -5555,11 +5559,11 @@ function c1(e, t) {
|
|
|
5555
5559
|
function nr(e, t, n) {
|
|
5556
5560
|
let r;
|
|
5557
5561
|
if (t === "viewport")
|
|
5558
|
-
r =
|
|
5562
|
+
r = c1(e, n);
|
|
5559
5563
|
else if (t === "document")
|
|
5560
|
-
r =
|
|
5564
|
+
r = s1(J(e));
|
|
5561
5565
|
else if (G(t))
|
|
5562
|
-
r =
|
|
5566
|
+
r = l1(t, n);
|
|
5563
5567
|
else {
|
|
5564
5568
|
const o = vi(e);
|
|
5565
5569
|
r = {
|
|
@@ -5568,13 +5572,13 @@ function nr(e, t, n) {
|
|
|
5568
5572
|
y: t.y - o.y
|
|
5569
5573
|
};
|
|
5570
5574
|
}
|
|
5571
|
-
return
|
|
5575
|
+
return tt(r);
|
|
5572
5576
|
}
|
|
5573
5577
|
function gi(e, t) {
|
|
5574
5578
|
const n = le(e);
|
|
5575
5579
|
return n === t || !G(n) || Ee(n) ? !1 : z(n).position === "fixed" || gi(n, t);
|
|
5576
5580
|
}
|
|
5577
|
-
function
|
|
5581
|
+
function u1(e, t) {
|
|
5578
5582
|
const n = t.get(e);
|
|
5579
5583
|
if (n)
|
|
5580
5584
|
return n;
|
|
@@ -5587,14 +5591,14 @@ function l1(e, t) {
|
|
|
5587
5591
|
}
|
|
5588
5592
|
return t.set(e, r), r;
|
|
5589
5593
|
}
|
|
5590
|
-
function
|
|
5594
|
+
function d1(e) {
|
|
5591
5595
|
let {
|
|
5592
5596
|
element: t,
|
|
5593
5597
|
boundary: n,
|
|
5594
5598
|
rootBoundary: r,
|
|
5595
5599
|
strategy: o
|
|
5596
5600
|
} = e;
|
|
5597
|
-
const a = [...n === "clippingAncestors" ? pt(t) ? [] :
|
|
5601
|
+
const a = [...n === "clippingAncestors" ? pt(t) ? [] : u1(t, this._c) : [].concat(n), r], c = a[0], d = a.reduce((u, f) => {
|
|
5598
5602
|
const p = nr(t, f, o);
|
|
5599
5603
|
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
5604
|
}, nr(t, c, o));
|
|
@@ -5605,7 +5609,7 @@ function u1(e) {
|
|
|
5605
5609
|
y: d.top
|
|
5606
5610
|
};
|
|
5607
5611
|
}
|
|
5608
|
-
function
|
|
5612
|
+
function f1(e) {
|
|
5609
5613
|
const {
|
|
5610
5614
|
width: t,
|
|
5611
5615
|
height: n
|
|
@@ -5615,7 +5619,7 @@ function d1(e) {
|
|
|
5615
5619
|
height: n
|
|
5616
5620
|
};
|
|
5617
5621
|
}
|
|
5618
|
-
function
|
|
5622
|
+
function p1(e, t, n) {
|
|
5619
5623
|
const r = Q(t), o = J(t), i = n === "fixed", a = fe(e, !0, i, t);
|
|
5620
5624
|
let c = {
|
|
5621
5625
|
scrollLeft: 0,
|
|
@@ -5666,14 +5670,14 @@ function Ci(e, t) {
|
|
|
5666
5670
|
return n;
|
|
5667
5671
|
}
|
|
5668
5672
|
let r = rr(e, t);
|
|
5669
|
-
for (; r &&
|
|
5673
|
+
for (; r && t1(r) && Tt(r); )
|
|
5670
5674
|
r = rr(r, t);
|
|
5671
|
-
return r && Ee(r) && Tt(r) && !xn(r) ? n : r ||
|
|
5675
|
+
return r && Ee(r) && Tt(r) && !xn(r) ? n : r || n1(e) || n;
|
|
5672
5676
|
}
|
|
5673
|
-
const
|
|
5677
|
+
const h1 = async function(e) {
|
|
5674
5678
|
const t = this.getOffsetParent || Ci, n = this.getDimensions, r = await n(e.floating);
|
|
5675
5679
|
return {
|
|
5676
|
-
reference:
|
|
5680
|
+
reference: p1(e.reference, await t(e.floating), e.strategy),
|
|
5677
5681
|
floating: {
|
|
5678
5682
|
x: 0,
|
|
5679
5683
|
y: 0,
|
|
@@ -5682,22 +5686,22 @@ const p1 = async function(e) {
|
|
|
5682
5686
|
}
|
|
5683
5687
|
};
|
|
5684
5688
|
};
|
|
5685
|
-
function
|
|
5689
|
+
function m1(e) {
|
|
5686
5690
|
return z(e).direction === "rtl";
|
|
5687
5691
|
}
|
|
5688
|
-
const
|
|
5689
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5692
|
+
const v1 = {
|
|
5693
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: i1,
|
|
5690
5694
|
getDocumentElement: J,
|
|
5691
|
-
getClippingRect:
|
|
5695
|
+
getClippingRect: d1,
|
|
5692
5696
|
getOffsetParent: Ci,
|
|
5693
|
-
getElementRects:
|
|
5694
|
-
getClientRects:
|
|
5695
|
-
getDimensions:
|
|
5697
|
+
getElementRects: h1,
|
|
5698
|
+
getClientRects: a1,
|
|
5699
|
+
getDimensions: f1,
|
|
5696
5700
|
getScale: be,
|
|
5697
5701
|
isElement: G,
|
|
5698
|
-
isRTL:
|
|
5702
|
+
isRTL: m1
|
|
5699
5703
|
};
|
|
5700
|
-
function
|
|
5704
|
+
function g1(e, t) {
|
|
5701
5705
|
let n = null, r;
|
|
5702
5706
|
const o = J(e);
|
|
5703
5707
|
function i() {
|
|
@@ -5714,7 +5718,7 @@ function v1(e, t) {
|
|
|
5714
5718
|
} = e.getBoundingClientRect();
|
|
5715
5719
|
if (c || t(), !p || !m)
|
|
5716
5720
|
return;
|
|
5717
|
-
const v = Ue(f), C = Ue(o.clientWidth - (u + p)), h = Ue(o.clientHeight - (f + m)), g = Ue(u),
|
|
5721
|
+
const v = Ue(f), C = Ue(o.clientWidth - (u + p)), h = Ue(o.clientHeight - (f + m)), g = Ue(u), w = {
|
|
5718
5722
|
rootMargin: -v + "px " + -C + "px " + -h + "px " + -g + "px",
|
|
5719
5723
|
threshold: j(0, ae(1, d)) || 1
|
|
5720
5724
|
};
|
|
@@ -5732,18 +5736,18 @@ function v1(e, t) {
|
|
|
5732
5736
|
}
|
|
5733
5737
|
try {
|
|
5734
5738
|
n = new IntersectionObserver(b, {
|
|
5735
|
-
...
|
|
5739
|
+
...w,
|
|
5736
5740
|
// Handle <iframe>s
|
|
5737
5741
|
root: o.ownerDocument
|
|
5738
5742
|
});
|
|
5739
5743
|
} catch {
|
|
5740
|
-
n = new IntersectionObserver(b,
|
|
5744
|
+
n = new IntersectionObserver(b, w);
|
|
5741
5745
|
}
|
|
5742
5746
|
n.observe(e);
|
|
5743
5747
|
}
|
|
5744
5748
|
return a(!0), i;
|
|
5745
5749
|
}
|
|
5746
|
-
function
|
|
5750
|
+
function C1(e, t, n, r) {
|
|
5747
5751
|
r === void 0 && (r = {});
|
|
5748
5752
|
const {
|
|
5749
5753
|
ancestorScroll: o = !0,
|
|
@@ -5752,16 +5756,16 @@ function g1(e, t, n, r) {
|
|
|
5752
5756
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
5753
5757
|
animationFrame: d = !1
|
|
5754
5758
|
} = r, u = An(e), f = o || i ? [...u ? Ie(u) : [], ...Ie(t)] : [];
|
|
5755
|
-
f.forEach((
|
|
5756
|
-
o &&
|
|
5759
|
+
f.forEach((y) => {
|
|
5760
|
+
o && y.addEventListener("scroll", n, {
|
|
5757
5761
|
passive: !0
|
|
5758
|
-
}), i &&
|
|
5762
|
+
}), i && y.addEventListener("resize", n);
|
|
5759
5763
|
});
|
|
5760
|
-
const p = u && c ?
|
|
5764
|
+
const p = u && c ? g1(u, n) : null;
|
|
5761
5765
|
let m = -1, v = null;
|
|
5762
|
-
a && (v = new ResizeObserver((
|
|
5763
|
-
let [
|
|
5764
|
-
|
|
5766
|
+
a && (v = new ResizeObserver((y) => {
|
|
5767
|
+
let [w] = y;
|
|
5768
|
+
w && w.target === u && v && (v.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
5765
5769
|
var x;
|
|
5766
5770
|
(x = v) == null || x.observe(t);
|
|
5767
5771
|
})), n();
|
|
@@ -5769,31 +5773,31 @@ function g1(e, t, n, r) {
|
|
|
5769
5773
|
let C, h = d ? fe(e) : null;
|
|
5770
5774
|
d && g();
|
|
5771
5775
|
function g() {
|
|
5772
|
-
const
|
|
5773
|
-
h && (
|
|
5776
|
+
const y = fe(e);
|
|
5777
|
+
h && (y.x !== h.x || y.y !== h.y || y.width !== h.width || y.height !== h.height) && n(), h = y, C = requestAnimationFrame(g);
|
|
5774
5778
|
}
|
|
5775
5779
|
return n(), () => {
|
|
5776
|
-
var
|
|
5777
|
-
f.forEach((
|
|
5778
|
-
o &&
|
|
5779
|
-
}), p == null || p(), (
|
|
5780
|
+
var y;
|
|
5781
|
+
f.forEach((w) => {
|
|
5782
|
+
o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
5783
|
+
}), p == null || p(), (y = v) == null || y.disconnect(), v = null, d && cancelAnimationFrame(C);
|
|
5780
5784
|
};
|
|
5781
5785
|
}
|
|
5782
|
-
const
|
|
5786
|
+
const w1 = ql, y1 = Ql, x1 = Gl, b1 = e1, A1 = zl, or = Yl, E1 = Jl, R1 = (e, t, n) => {
|
|
5783
5787
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5784
|
-
platform:
|
|
5788
|
+
platform: v1,
|
|
5785
5789
|
...n
|
|
5786
5790
|
}, i = {
|
|
5787
5791
|
...o.platform,
|
|
5788
5792
|
_c: r
|
|
5789
5793
|
};
|
|
5790
|
-
return
|
|
5794
|
+
return Kl(e, t, {
|
|
5791
5795
|
...o,
|
|
5792
5796
|
platform: i
|
|
5793
5797
|
});
|
|
5794
5798
|
};
|
|
5795
5799
|
var Ge = typeof document < "u" ? Yi : sr;
|
|
5796
|
-
function
|
|
5800
|
+
function nt(e, t) {
|
|
5797
5801
|
if (e === t)
|
|
5798
5802
|
return !0;
|
|
5799
5803
|
if (typeof e != typeof t)
|
|
@@ -5805,7 +5809,7 @@ function rt(e, t) {
|
|
|
5805
5809
|
if (Array.isArray(e)) {
|
|
5806
5810
|
if (n = e.length, n !== t.length) return !1;
|
|
5807
5811
|
for (r = n; r-- !== 0; )
|
|
5808
|
-
if (!
|
|
5812
|
+
if (!nt(e[r], t[r]))
|
|
5809
5813
|
return !1;
|
|
5810
5814
|
return !0;
|
|
5811
5815
|
}
|
|
@@ -5816,7 +5820,7 @@ function rt(e, t) {
|
|
|
5816
5820
|
return !1;
|
|
5817
5821
|
for (r = n; r-- !== 0; ) {
|
|
5818
5822
|
const i = o[r];
|
|
5819
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
5823
|
+
if (!(i === "_owner" && e.$$typeof) && !nt(e[i], t[i]))
|
|
5820
5824
|
return !1;
|
|
5821
5825
|
}
|
|
5822
5826
|
return !0;
|
|
@@ -5836,7 +5840,7 @@ function Nt(e) {
|
|
|
5836
5840
|
t.current = e;
|
|
5837
5841
|
}), t;
|
|
5838
5842
|
}
|
|
5839
|
-
function
|
|
5843
|
+
function P1(e) {
|
|
5840
5844
|
e === void 0 && (e = {});
|
|
5841
5845
|
const {
|
|
5842
5846
|
placement: t = "bottom",
|
|
@@ -5858,12 +5862,12 @@ function R1(e) {
|
|
|
5858
5862
|
middlewareData: {},
|
|
5859
5863
|
isPositioned: !1
|
|
5860
5864
|
}), [m, v] = l.useState(r);
|
|
5861
|
-
|
|
5862
|
-
const [C, h] = l.useState(null), [g,
|
|
5865
|
+
nt(m, r) || v(r);
|
|
5866
|
+
const [C, h] = l.useState(null), [g, y] = l.useState(null), w = l.useCallback((N) => {
|
|
5863
5867
|
N !== R.current && (R.current = N, h(N));
|
|
5864
5868
|
}, []), x = l.useCallback((N) => {
|
|
5865
|
-
N !== P.current && (P.current = N,
|
|
5866
|
-
}, []), b = i || C, A = a || g, R = l.useRef(null), P = l.useRef(null), S = l.useRef(f),
|
|
5869
|
+
N !== P.current && (P.current = N, y(N));
|
|
5870
|
+
}, []), b = i || C, A = a || g, R = l.useRef(null), P = l.useRef(null), S = l.useRef(f), L = d != null, O = Nt(d), B = Nt(o), $ = Nt(u), V = l.useCallback(() => {
|
|
5867
5871
|
if (!R.current || !P.current)
|
|
5868
5872
|
return;
|
|
5869
5873
|
const N = {
|
|
@@ -5871,7 +5875,7 @@ function R1(e) {
|
|
|
5871
5875
|
strategy: n,
|
|
5872
5876
|
middleware: m
|
|
5873
5877
|
};
|
|
5874
|
-
B.current && (N.platform = B.current),
|
|
5878
|
+
B.current && (N.platform = B.current), R1(R.current, P.current, N).then((Z) => {
|
|
5875
5879
|
const K = {
|
|
5876
5880
|
...Z,
|
|
5877
5881
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5880,7 +5884,7 @@ function R1(e) {
|
|
|
5880
5884
|
// setting it to `true` when `open === false` (must be specified).
|
|
5881
5885
|
isPositioned: $.current !== !1
|
|
5882
5886
|
};
|
|
5883
|
-
T.current && !
|
|
5887
|
+
T.current && !nt(S.current, K) && (S.current = K, jt.flushSync(() => {
|
|
5884
5888
|
p(K);
|
|
5885
5889
|
}));
|
|
5886
5890
|
});
|
|
@@ -5896,17 +5900,17 @@ function R1(e) {
|
|
|
5896
5900
|
T.current = !1;
|
|
5897
5901
|
}), []), Ge(() => {
|
|
5898
5902
|
if (b && (R.current = b), A && (P.current = A), b && A) {
|
|
5899
|
-
if (
|
|
5900
|
-
return
|
|
5903
|
+
if (O.current)
|
|
5904
|
+
return O.current(b, A, V);
|
|
5901
5905
|
V();
|
|
5902
5906
|
}
|
|
5903
|
-
}, [b, A, V,
|
|
5907
|
+
}, [b, A, V, O, L]);
|
|
5904
5908
|
const k = l.useMemo(() => ({
|
|
5905
5909
|
reference: R,
|
|
5906
5910
|
floating: P,
|
|
5907
|
-
setReference:
|
|
5911
|
+
setReference: w,
|
|
5908
5912
|
setFloating: x
|
|
5909
|
-
}), [
|
|
5913
|
+
}), [w, x]), D = l.useMemo(() => ({
|
|
5910
5914
|
reference: b,
|
|
5911
5915
|
floating: A
|
|
5912
5916
|
}), [b, A]), F = l.useMemo(() => {
|
|
@@ -5938,7 +5942,7 @@ function R1(e) {
|
|
|
5938
5942
|
floatingStyles: F
|
|
5939
5943
|
}), [f, V, k, D, F]);
|
|
5940
5944
|
}
|
|
5941
|
-
const
|
|
5945
|
+
const T1 = (e) => {
|
|
5942
5946
|
function t(n) {
|
|
5943
5947
|
return {}.hasOwnProperty.call(n, "current");
|
|
5944
5948
|
}
|
|
@@ -5959,29 +5963,29 @@ const P1 = (e) => {
|
|
|
5959
5963
|
}).fn(n) : {};
|
|
5960
5964
|
}
|
|
5961
5965
|
};
|
|
5962
|
-
},
|
|
5963
|
-
...C1(e),
|
|
5964
|
-
options: [e, t]
|
|
5965
|
-
}), N1 = (e, t) => ({
|
|
5966
|
+
}, N1 = (e, t) => ({
|
|
5966
5967
|
...w1(e),
|
|
5967
5968
|
options: [e, t]
|
|
5968
5969
|
}), S1 = (e, t) => ({
|
|
5969
|
-
...
|
|
5970
|
+
...y1(e),
|
|
5970
5971
|
options: [e, t]
|
|
5971
5972
|
}), M1 = (e, t) => ({
|
|
5972
|
-
...
|
|
5973
|
+
...E1(e),
|
|
5973
5974
|
options: [e, t]
|
|
5974
|
-
}),
|
|
5975
|
+
}), L1 = (e, t) => ({
|
|
5975
5976
|
...x1(e),
|
|
5976
5977
|
options: [e, t]
|
|
5977
|
-
}),
|
|
5978
|
+
}), O1 = (e, t) => ({
|
|
5978
5979
|
...b1(e),
|
|
5979
5980
|
options: [e, t]
|
|
5980
5981
|
}), D1 = (e, t) => ({
|
|
5981
|
-
...
|
|
5982
|
+
...A1(e),
|
|
5983
|
+
options: [e, t]
|
|
5984
|
+
}), _1 = (e, t) => ({
|
|
5985
|
+
...T1(e),
|
|
5982
5986
|
options: [e, t]
|
|
5983
5987
|
});
|
|
5984
|
-
var
|
|
5988
|
+
var I1 = "Arrow", yi = l.forwardRef((e, t) => {
|
|
5985
5989
|
const { children: n, width: r = 10, height: o = 5, ...i } = e;
|
|
5986
5990
|
return /* @__PURE__ */ s(
|
|
5987
5991
|
H.svg,
|
|
@@ -5996,9 +6000,9 @@ var _1 = "Arrow", yi = l.forwardRef((e, t) => {
|
|
|
5996
6000
|
}
|
|
5997
6001
|
);
|
|
5998
6002
|
});
|
|
5999
|
-
yi.displayName =
|
|
6000
|
-
var
|
|
6001
|
-
function
|
|
6003
|
+
yi.displayName = I1;
|
|
6004
|
+
var k1 = yi;
|
|
6005
|
+
function H1(e, t = []) {
|
|
6002
6006
|
let n = [];
|
|
6003
6007
|
function r(i, a) {
|
|
6004
6008
|
const c = l.createContext(a), d = n.length;
|
|
@@ -6025,9 +6029,9 @@ function k1(e, t = []) {
|
|
|
6025
6029
|
);
|
|
6026
6030
|
};
|
|
6027
6031
|
};
|
|
6028
|
-
return o.scopeName = e, [r,
|
|
6032
|
+
return o.scopeName = e, [r, V1(o, ...t)];
|
|
6029
6033
|
}
|
|
6030
|
-
function
|
|
6034
|
+
function V1(...e) {
|
|
6031
6035
|
const t = e[0];
|
|
6032
6036
|
if (e.length === 1) return t;
|
|
6033
6037
|
const n = () => {
|
|
@@ -6045,7 +6049,7 @@ function H1(...e) {
|
|
|
6045
6049
|
};
|
|
6046
6050
|
return n.scopeName = t.scopeName, n;
|
|
6047
6051
|
}
|
|
6048
|
-
function
|
|
6052
|
+
function F1(e) {
|
|
6049
6053
|
const [t, n] = l.useState(void 0);
|
|
6050
6054
|
return ee(() => {
|
|
6051
6055
|
if (e) {
|
|
@@ -6067,9 +6071,9 @@ function V1(e) {
|
|
|
6067
6071
|
n(void 0);
|
|
6068
6072
|
}, [e]), t;
|
|
6069
6073
|
}
|
|
6070
|
-
var En = "Popper", [xi, bi] =
|
|
6074
|
+
var En = "Popper", [xi, bi] = H1(En), [$1, Ai] = xi(En), Ei = (e) => {
|
|
6071
6075
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
6072
|
-
return /* @__PURE__ */ s(
|
|
6076
|
+
return /* @__PURE__ */ s($1, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6073
6077
|
};
|
|
6074
6078
|
Ei.displayName = En;
|
|
6075
6079
|
var Ri = "PopperAnchor", Pi = l.forwardRef(
|
|
@@ -6081,9 +6085,9 @@ var Ri = "PopperAnchor", Pi = l.forwardRef(
|
|
|
6081
6085
|
}
|
|
6082
6086
|
);
|
|
6083
6087
|
Pi.displayName = Ri;
|
|
6084
|
-
var Rn = "PopperContent", [
|
|
6088
|
+
var Rn = "PopperContent", [B1, Z1] = xi(Rn), Ti = l.forwardRef(
|
|
6085
6089
|
(e, t) => {
|
|
6086
|
-
var Tn, Nn, Sn, Mn,
|
|
6090
|
+
var Tn, Nn, Sn, Mn, Ln, On;
|
|
6087
6091
|
const {
|
|
6088
6092
|
__scopePopper: n,
|
|
6089
6093
|
side: r = "bottom",
|
|
@@ -6099,40 +6103,40 @@ var Rn = "PopperContent", [$1, B1] = xi(Rn), Ti = l.forwardRef(
|
|
|
6099
6103
|
updatePositionStrategy: v = "optimized",
|
|
6100
6104
|
onPlaced: C,
|
|
6101
6105
|
...h
|
|
6102
|
-
} = e, g = Ai(Rn, n), [
|
|
6103
|
-
padding:
|
|
6104
|
-
boundary: B.filter(
|
|
6106
|
+
} = e, g = Ai(Rn, n), [y, w] = l.useState(null), x = W(t, (Le) => w(Le)), [b, A] = l.useState(null), R = F1(b), P = (R == null ? void 0 : R.width) ?? 0, S = (R == null ? void 0 : R.height) ?? 0, L = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, B = Array.isArray(u) ? u : [u], $ = B.length > 0, V = {
|
|
6107
|
+
padding: O,
|
|
6108
|
+
boundary: B.filter(j1),
|
|
6105
6109
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6106
6110
|
altBoundary: $
|
|
6107
|
-
}, { refs: T, floatingStyles: k, placement: D, isPositioned: F, middlewareData: N } =
|
|
6111
|
+
}, { refs: T, floatingStyles: k, placement: D, isPositioned: F, middlewareData: N } = P1({
|
|
6108
6112
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6109
6113
|
strategy: "fixed",
|
|
6110
|
-
placement:
|
|
6111
|
-
whileElementsMounted: (...
|
|
6114
|
+
placement: L,
|
|
6115
|
+
whileElementsMounted: (...Le) => C1(...Le, {
|
|
6112
6116
|
animationFrame: v === "always"
|
|
6113
6117
|
}),
|
|
6114
6118
|
elements: {
|
|
6115
6119
|
reference: g.anchor
|
|
6116
6120
|
},
|
|
6117
6121
|
middleware: [
|
|
6118
|
-
|
|
6119
|
-
d &&
|
|
6122
|
+
N1({ mainAxis: o + S, alignmentAxis: a }),
|
|
6123
|
+
d && S1({
|
|
6120
6124
|
mainAxis: !0,
|
|
6121
6125
|
crossAxis: !1,
|
|
6122
|
-
limiter: p === "partial" ?
|
|
6126
|
+
limiter: p === "partial" ? M1() : void 0,
|
|
6123
6127
|
...V
|
|
6124
6128
|
}),
|
|
6125
|
-
d &&
|
|
6129
|
+
d && L1({ ...V }),
|
|
6126
6130
|
O1({
|
|
6127
6131
|
...V,
|
|
6128
|
-
apply: ({ elements:
|
|
6129
|
-
const { width: Wi, height: ji } = Dn.reference, Ve =
|
|
6132
|
+
apply: ({ elements: Le, rects: Dn, availableWidth: Bi, availableHeight: Zi }) => {
|
|
6133
|
+
const { width: Wi, height: ji } = Dn.reference, Ve = Le.floating.style;
|
|
6130
6134
|
Ve.setProperty("--radix-popper-available-width", `${Bi}px`), Ve.setProperty("--radix-popper-available-height", `${Zi}px`), Ve.setProperty("--radix-popper-anchor-width", `${Wi}px`), Ve.setProperty("--radix-popper-anchor-height", `${ji}px`);
|
|
6131
6135
|
}
|
|
6132
6136
|
}),
|
|
6133
|
-
b &&
|
|
6134
|
-
|
|
6135
|
-
m &&
|
|
6137
|
+
b && _1({ element: b, padding: c }),
|
|
6138
|
+
U1({ arrowWidth: P, arrowHeight: S }),
|
|
6139
|
+
m && D1({ strategy: "referenceHidden", ...V })
|
|
6136
6140
|
]
|
|
6137
6141
|
}), [Z, K] = Mi(D), he = Y(C);
|
|
6138
6142
|
ee(() => {
|
|
@@ -6140,8 +6144,8 @@ var Rn = "PopperContent", [$1, B1] = xi(Rn), Ti = l.forwardRef(
|
|
|
6140
6144
|
}, [F, he]);
|
|
6141
6145
|
const Me = (Tn = N.arrow) == null ? void 0 : Tn.x, me = (Nn = N.arrow) == null ? void 0 : Nn.y, He = ((Sn = N.arrow) == null ? void 0 : Sn.centerOffset) !== 0, [Fi, $i] = l.useState();
|
|
6142
6146
|
return ee(() => {
|
|
6143
|
-
|
|
6144
|
-
}, [
|
|
6147
|
+
y && $i(window.getComputedStyle(y).zIndex);
|
|
6148
|
+
}, [y]), /* @__PURE__ */ s(
|
|
6145
6149
|
"div",
|
|
6146
6150
|
{
|
|
6147
6151
|
ref: T.setFloating,
|
|
@@ -6154,19 +6158,19 @@ var Rn = "PopperContent", [$1, B1] = xi(Rn), Ti = l.forwardRef(
|
|
|
6154
6158
|
zIndex: Fi,
|
|
6155
6159
|
"--radix-popper-transform-origin": [
|
|
6156
6160
|
(Mn = N.transformOrigin) == null ? void 0 : Mn.x,
|
|
6157
|
-
(
|
|
6161
|
+
(Ln = N.transformOrigin) == null ? void 0 : Ln.y
|
|
6158
6162
|
].join(" "),
|
|
6159
6163
|
// hide the content if using the hide middleware and should be hidden
|
|
6160
6164
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
6161
6165
|
// as if the PopperContent isn't there at all
|
|
6162
|
-
...((
|
|
6166
|
+
...((On = N.hide) == null ? void 0 : On.referenceHidden) && {
|
|
6163
6167
|
visibility: "hidden",
|
|
6164
6168
|
pointerEvents: "none"
|
|
6165
6169
|
}
|
|
6166
6170
|
},
|
|
6167
6171
|
dir: e.dir,
|
|
6168
6172
|
children: /* @__PURE__ */ s(
|
|
6169
|
-
|
|
6173
|
+
B1,
|
|
6170
6174
|
{
|
|
6171
6175
|
scope: n,
|
|
6172
6176
|
placedSide: Z,
|
|
@@ -6196,13 +6200,13 @@ var Rn = "PopperContent", [$1, B1] = xi(Rn), Ti = l.forwardRef(
|
|
|
6196
6200
|
}
|
|
6197
6201
|
);
|
|
6198
6202
|
Ti.displayName = Rn;
|
|
6199
|
-
var Ni = "PopperArrow",
|
|
6203
|
+
var Ni = "PopperArrow", W1 = {
|
|
6200
6204
|
top: "bottom",
|
|
6201
6205
|
right: "left",
|
|
6202
6206
|
bottom: "top",
|
|
6203
6207
|
left: "right"
|
|
6204
6208
|
}, Si = l.forwardRef(function(t, n) {
|
|
6205
|
-
const { __scopePopper: r, ...o } = t, i =
|
|
6209
|
+
const { __scopePopper: r, ...o } = t, i = Z1(Ni, r), a = W1[i.placedSide];
|
|
6206
6210
|
return (
|
|
6207
6211
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6208
6212
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6231,7 +6235,7 @@ var Ni = "PopperArrow", Z1 = {
|
|
|
6231
6235
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
6232
6236
|
},
|
|
6233
6237
|
children: /* @__PURE__ */ s(
|
|
6234
|
-
|
|
6238
|
+
k1,
|
|
6235
6239
|
{
|
|
6236
6240
|
...o,
|
|
6237
6241
|
ref: n,
|
|
@@ -6247,15 +6251,15 @@ var Ni = "PopperArrow", Z1 = {
|
|
|
6247
6251
|
);
|
|
6248
6252
|
});
|
|
6249
6253
|
Si.displayName = Ni;
|
|
6250
|
-
function
|
|
6254
|
+
function j1(e) {
|
|
6251
6255
|
return e !== null;
|
|
6252
6256
|
}
|
|
6253
|
-
var
|
|
6257
|
+
var U1 = (e) => ({
|
|
6254
6258
|
name: "transformOrigin",
|
|
6255
6259
|
options: e,
|
|
6256
6260
|
fn(t) {
|
|
6257
|
-
var g,
|
|
6258
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = a ? 0 : e.arrowWidth, d = a ? 0 : e.arrowHeight, [u, f] = Mi(n), p = { start: "0%", center: "50%", end: "100%" }[f], m = (((
|
|
6261
|
+
var g, y, w;
|
|
6262
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = a ? 0 : e.arrowWidth, d = a ? 0 : e.arrowHeight, [u, f] = Mi(n), p = { start: "0%", center: "50%", end: "100%" }[f], m = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, v = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + d / 2;
|
|
6259
6263
|
let C = "", h = "";
|
|
6260
6264
|
return u === "bottom" ? (C = a ? p : `${m}px`, h = `${-d}px`) : u === "top" ? (C = a ? p : `${m}px`, h = `${r.floating.height + d}px`) : u === "right" ? (C = `${-d}px`, h = a ? p : `${v}px`) : u === "left" && (C = `${r.floating.width + d}px`, h = a ? p : `${v}px`), { data: { x: C, y: h } };
|
|
6261
6265
|
}
|
|
@@ -6264,12 +6268,12 @@ function Mi(e) {
|
|
|
6264
6268
|
const [t, n = "center"] = e.split("-");
|
|
6265
6269
|
return [t, n];
|
|
6266
6270
|
}
|
|
6267
|
-
var
|
|
6271
|
+
var K1 = Ei, Y1 = Pi, G1 = Ti, z1 = Si, [mt, Pu] = Pe("Tooltip", [
|
|
6268
6272
|
bi
|
|
6269
|
-
]), vt = bi(),
|
|
6273
|
+
]), vt = bi(), Li = "TooltipProvider", X1 = 700, Bt = "tooltip.open", [q1, Pn] = mt(Li), Oi = (e) => {
|
|
6270
6274
|
const {
|
|
6271
6275
|
__scopeTooltip: t,
|
|
6272
|
-
delayDuration: n =
|
|
6276
|
+
delayDuration: n = X1,
|
|
6273
6277
|
skipDelayDuration: r = 300,
|
|
6274
6278
|
disableHoverableContent: o = !1,
|
|
6275
6279
|
children: i
|
|
@@ -6278,7 +6282,7 @@ var U1 = Ei, K1 = Pi, Y1 = Ti, G1 = Si, [mt, Ru] = Pe("Tooltip", [
|
|
|
6278
6282
|
const f = u.current;
|
|
6279
6283
|
return () => window.clearTimeout(f);
|
|
6280
6284
|
}, []), /* @__PURE__ */ s(
|
|
6281
|
-
|
|
6285
|
+
q1,
|
|
6282
6286
|
{
|
|
6283
6287
|
scope: t,
|
|
6284
6288
|
isOpenDelayed: a,
|
|
@@ -6301,8 +6305,8 @@ var U1 = Ei, K1 = Pi, Y1 = Ti, G1 = Si, [mt, Ru] = Pe("Tooltip", [
|
|
|
6301
6305
|
}
|
|
6302
6306
|
);
|
|
6303
6307
|
};
|
|
6304
|
-
|
|
6305
|
-
var gt = "Tooltip", [
|
|
6308
|
+
Oi.displayName = Li;
|
|
6309
|
+
var gt = "Tooltip", [Q1, Ct] = mt(gt), Di = (e) => {
|
|
6306
6310
|
const {
|
|
6307
6311
|
__scopeTooltip: t,
|
|
6308
6312
|
children: n,
|
|
@@ -6311,27 +6315,27 @@ var gt = "Tooltip", [q1, Ct] = mt(gt), Di = (e) => {
|
|
|
6311
6315
|
onOpenChange: i,
|
|
6312
6316
|
disableHoverableContent: a,
|
|
6313
6317
|
delayDuration: c
|
|
6314
|
-
} = e, d = Pn(gt, e.__scopeTooltip), u = vt(t), [f, p] = l.useState(null), m = we(), v = l.useRef(0), C = a ?? d.disableHoverableContent, h = c ?? d.delayDuration, g = l.useRef(!1), [
|
|
6318
|
+
} = e, d = Pn(gt, e.__scopeTooltip), u = vt(t), [f, p] = l.useState(null), m = we(), v = l.useRef(0), C = a ?? d.disableHoverableContent, h = c ?? d.delayDuration, g = l.useRef(!1), [y = !1, w] = Te({
|
|
6315
6319
|
prop: r,
|
|
6316
6320
|
defaultProp: o,
|
|
6317
6321
|
onChange: (P) => {
|
|
6318
6322
|
P ? (d.onOpen(), document.dispatchEvent(new CustomEvent(Bt))) : d.onClose(), i == null || i(P);
|
|
6319
6323
|
}
|
|
6320
|
-
}), x = l.useMemo(() =>
|
|
6321
|
-
window.clearTimeout(v.current), g.current = !1,
|
|
6322
|
-
}, [
|
|
6323
|
-
window.clearTimeout(v.current),
|
|
6324
|
-
}, [
|
|
6324
|
+
}), x = l.useMemo(() => y ? g.current ? "delayed-open" : "instant-open" : "closed", [y]), b = l.useCallback(() => {
|
|
6325
|
+
window.clearTimeout(v.current), g.current = !1, w(!0);
|
|
6326
|
+
}, [w]), A = l.useCallback(() => {
|
|
6327
|
+
window.clearTimeout(v.current), w(!1);
|
|
6328
|
+
}, [w]), R = l.useCallback(() => {
|
|
6325
6329
|
window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
6326
|
-
g.current = !0,
|
|
6330
|
+
g.current = !0, w(!0);
|
|
6327
6331
|
}, h);
|
|
6328
|
-
}, [h,
|
|
6329
|
-
return l.useEffect(() => () => window.clearTimeout(v.current), []), /* @__PURE__ */ s(
|
|
6330
|
-
|
|
6332
|
+
}, [h, w]);
|
|
6333
|
+
return l.useEffect(() => () => window.clearTimeout(v.current), []), /* @__PURE__ */ s(K1, { ...u, children: /* @__PURE__ */ s(
|
|
6334
|
+
Q1,
|
|
6331
6335
|
{
|
|
6332
6336
|
scope: t,
|
|
6333
6337
|
contentId: m,
|
|
6334
|
-
open:
|
|
6338
|
+
open: y,
|
|
6335
6339
|
stateAttribute: x,
|
|
6336
6340
|
trigger: f,
|
|
6337
6341
|
onTriggerChange: p,
|
|
@@ -6352,45 +6356,45 @@ Di.displayName = gt;
|
|
|
6352
6356
|
var Zt = "TooltipTrigger", _i = l.forwardRef(
|
|
6353
6357
|
(e, t) => {
|
|
6354
6358
|
const { __scopeTooltip: n, ...r } = e, o = Ct(Zt, n), i = Pn(Zt, n), a = vt(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
|
-
return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ s(
|
|
6359
|
+
return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ s(Y1, { asChild: !0, ...a, children: /* @__PURE__ */ s(
|
|
6356
6360
|
H.button,
|
|
6357
6361
|
{
|
|
6358
6362
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6359
6363
|
"data-state": o.stateAttribute,
|
|
6360
6364
|
...r,
|
|
6361
6365
|
ref: d,
|
|
6362
|
-
onPointerMove:
|
|
6366
|
+
onPointerMove: I(e.onPointerMove, (m) => {
|
|
6363
6367
|
m.pointerType !== "touch" && !f.current && !i.isPointerInTransitRef.current && (o.onTriggerEnter(), f.current = !0);
|
|
6364
6368
|
}),
|
|
6365
|
-
onPointerLeave:
|
|
6369
|
+
onPointerLeave: I(e.onPointerLeave, () => {
|
|
6366
6370
|
o.onTriggerLeave(), f.current = !1;
|
|
6367
6371
|
}),
|
|
6368
|
-
onPointerDown:
|
|
6372
|
+
onPointerDown: I(e.onPointerDown, () => {
|
|
6369
6373
|
u.current = !0, document.addEventListener("pointerup", p, { once: !0 });
|
|
6370
6374
|
}),
|
|
6371
|
-
onFocus:
|
|
6375
|
+
onFocus: I(e.onFocus, () => {
|
|
6372
6376
|
u.current || o.onOpen();
|
|
6373
6377
|
}),
|
|
6374
|
-
onBlur:
|
|
6375
|
-
onClick:
|
|
6378
|
+
onBlur: I(e.onBlur, o.onClose),
|
|
6379
|
+
onClick: I(e.onClick, o.onClose)
|
|
6376
6380
|
}
|
|
6377
6381
|
) });
|
|
6378
6382
|
}
|
|
6379
6383
|
);
|
|
6380
6384
|
_i.displayName = Zt;
|
|
6381
|
-
var
|
|
6385
|
+
var J1 = "TooltipPortal", [Tu, eu] = mt(J1, {
|
|
6382
6386
|
forceMount: void 0
|
|
6383
6387
|
}), Re = "TooltipContent", Ii = l.forwardRef(
|
|
6384
6388
|
(e, t) => {
|
|
6385
|
-
const n =
|
|
6386
|
-
return /* @__PURE__ */ s(pe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ s(ki, { side: o, ...i, ref: t }) : /* @__PURE__ */ s(
|
|
6389
|
+
const n = eu(Re, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...i } = e, a = Ct(Re, e.__scopeTooltip);
|
|
6390
|
+
return /* @__PURE__ */ s(pe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ s(ki, { side: o, ...i, ref: t }) : /* @__PURE__ */ s(tu, { side: o, ...i, ref: t }) });
|
|
6387
6391
|
}
|
|
6388
|
-
),
|
|
6392
|
+
), tu = l.forwardRef((e, t) => {
|
|
6389
6393
|
const n = Ct(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
6394
|
c(null), p(!1);
|
|
6391
6395
|
}, [p]), v = l.useCallback(
|
|
6392
6396
|
(C, h) => {
|
|
6393
|
-
const g = C.currentTarget,
|
|
6397
|
+
const g = C.currentTarget, y = { x: C.clientX, y: C.clientY }, w = iu(y, g.getBoundingClientRect()), x = au(y, w), b = su(h.getBoundingClientRect()), A = lu([...x, ...b]);
|
|
6394
6398
|
c(A), p(!0);
|
|
6395
6399
|
},
|
|
6396
6400
|
[p]
|
|
@@ -6405,13 +6409,13 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6405
6409
|
}, [d, f, v, m]), l.useEffect(() => {
|
|
6406
6410
|
if (a) {
|
|
6407
6411
|
const C = (h) => {
|
|
6408
|
-
const g = h.target,
|
|
6409
|
-
|
|
6412
|
+
const g = h.target, y = { x: h.clientX, y: h.clientY }, w = (d == null ? void 0 : d.contains(g)) || (f == null ? void 0 : f.contains(g)), x = !cu(y, a);
|
|
6413
|
+
w ? m() : x && (m(), u());
|
|
6410
6414
|
};
|
|
6411
6415
|
return document.addEventListener("pointermove", C), () => document.removeEventListener("pointermove", C);
|
|
6412
6416
|
}
|
|
6413
6417
|
}, [d, f, a, u, m]), /* @__PURE__ */ s(ki, { ...e, ref: i });
|
|
6414
|
-
}), [
|
|
6418
|
+
}), [nu, ru] = mt(gt, { isInside: !1 }), ki = l.forwardRef(
|
|
6415
6419
|
(e, t) => {
|
|
6416
6420
|
const {
|
|
6417
6421
|
__scopeTooltip: n,
|
|
@@ -6430,7 +6434,7 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6430
6434
|
return window.addEventListener("scroll", p, { capture: !0 }), () => window.removeEventListener("scroll", p, { capture: !0 });
|
|
6431
6435
|
}
|
|
6432
6436
|
}, [d.trigger, f]), /* @__PURE__ */ s(
|
|
6433
|
-
|
|
6437
|
+
at,
|
|
6434
6438
|
{
|
|
6435
6439
|
asChild: !0,
|
|
6436
6440
|
disableOutsidePointerEvents: !1,
|
|
@@ -6439,7 +6443,7 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6439
6443
|
onFocusOutside: (p) => p.preventDefault(),
|
|
6440
6444
|
onDismiss: f,
|
|
6441
6445
|
children: /* @__PURE__ */ E(
|
|
6442
|
-
|
|
6446
|
+
G1,
|
|
6443
6447
|
{
|
|
6444
6448
|
"data-state": d.stateAttribute,
|
|
6445
6449
|
...u,
|
|
@@ -6454,8 +6458,8 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6454
6458
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6455
6459
|
},
|
|
6456
6460
|
children: [
|
|
6457
|
-
/* @__PURE__ */ s(
|
|
6458
|
-
/* @__PURE__ */ s(
|
|
6461
|
+
/* @__PURE__ */ s(Kt, { children: r }),
|
|
6462
|
+
/* @__PURE__ */ s(nu, { scope: n, isInside: !0, children: /* @__PURE__ */ s(vl, { id: d.contentId, role: "tooltip", children: o || r }) })
|
|
6459
6463
|
]
|
|
6460
6464
|
}
|
|
6461
6465
|
)
|
|
@@ -6464,17 +6468,17 @@ var Q1 = "TooltipPortal", [Pu, J1] = mt(Q1, {
|
|
|
6464
6468
|
}
|
|
6465
6469
|
);
|
|
6466
6470
|
Ii.displayName = Re;
|
|
6467
|
-
var Hi = "TooltipArrow",
|
|
6471
|
+
var Hi = "TooltipArrow", ou = l.forwardRef(
|
|
6468
6472
|
(e, t) => {
|
|
6469
6473
|
const { __scopeTooltip: n, ...r } = e, o = vt(n);
|
|
6470
|
-
return
|
|
6474
|
+
return ru(
|
|
6471
6475
|
Hi,
|
|
6472
6476
|
n
|
|
6473
|
-
).isInside ? null : /* @__PURE__ */ s(
|
|
6477
|
+
).isInside ? null : /* @__PURE__ */ s(z1, { ...o, ...r, ref: t });
|
|
6474
6478
|
}
|
|
6475
6479
|
);
|
|
6476
|
-
|
|
6477
|
-
function
|
|
6480
|
+
ou.displayName = Hi;
|
|
6481
|
+
function iu(e, t) {
|
|
6478
6482
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
|
|
6479
6483
|
switch (Math.min(n, r, o, i)) {
|
|
6480
6484
|
case i:
|
|
@@ -6489,7 +6493,7 @@ function ou(e, t) {
|
|
|
6489
6493
|
throw new Error("unreachable");
|
|
6490
6494
|
}
|
|
6491
6495
|
}
|
|
6492
|
-
function
|
|
6496
|
+
function au(e, t, n = 5) {
|
|
6493
6497
|
const r = [];
|
|
6494
6498
|
switch (t) {
|
|
6495
6499
|
case "top":
|
|
@@ -6519,7 +6523,7 @@ function iu(e, t, n = 5) {
|
|
|
6519
6523
|
}
|
|
6520
6524
|
return r;
|
|
6521
6525
|
}
|
|
6522
|
-
function
|
|
6526
|
+
function su(e) {
|
|
6523
6527
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6524
6528
|
return [
|
|
6525
6529
|
{ x: o, y: t },
|
|
@@ -6528,7 +6532,7 @@ function au(e) {
|
|
|
6528
6532
|
{ x: o, y: r }
|
|
6529
6533
|
];
|
|
6530
6534
|
}
|
|
6531
|
-
function
|
|
6535
|
+
function cu(e, t) {
|
|
6532
6536
|
const { x: n, y: r } = e;
|
|
6533
6537
|
let o = !1;
|
|
6534
6538
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
@@ -6537,11 +6541,11 @@ function su(e, t) {
|
|
|
6537
6541
|
}
|
|
6538
6542
|
return o;
|
|
6539
6543
|
}
|
|
6540
|
-
function
|
|
6544
|
+
function lu(e) {
|
|
6541
6545
|
const t = e.slice();
|
|
6542
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
6546
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), uu(t);
|
|
6543
6547
|
}
|
|
6544
|
-
function
|
|
6548
|
+
function uu(e) {
|
|
6545
6549
|
if (e.length <= 1) return e.slice();
|
|
6546
6550
|
const t = [];
|
|
6547
6551
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6566,8 +6570,8 @@ function lu(e) {
|
|
|
6566
6570
|
}
|
|
6567
6571
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6568
6572
|
}
|
|
6569
|
-
var
|
|
6570
|
-
const
|
|
6573
|
+
var du = Oi, fu = Di, pu = _i, Vi = Ii;
|
|
6574
|
+
const Nu = du, Su = fu, Mu = pu, hu = l.forwardRef(({ className: e, variant: t = "primary", size: n = "pc", position: r = "top-center", arrow: o = !0, sideOffset: i = 8, icLeft: a, icRight: c, ...d }, u) => {
|
|
6571
6575
|
const f = {
|
|
6572
6576
|
primary: "bg-main-600 text-white",
|
|
6573
6577
|
secondary: "bg-grey-800 text-grey-50"
|
|
@@ -6604,23 +6608,23 @@ const Tu = uu, Nu = du, Su = fu, pu = l.forwardRef(({ className: e, variant: t =
|
|
|
6604
6608
|
}
|
|
6605
6609
|
);
|
|
6606
6610
|
});
|
|
6607
|
-
|
|
6611
|
+
hu.displayName = Vi.displayName;
|
|
6608
6612
|
export {
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6613
|
+
xu as A,
|
|
6614
|
+
Lt as B,
|
|
6615
|
+
pl as D,
|
|
6616
|
+
Ut as I,
|
|
6617
|
+
hl as M,
|
|
6618
|
+
Ru as P,
|
|
6619
|
+
Eu as T,
|
|
6616
6620
|
Ds as a,
|
|
6617
|
-
|
|
6618
|
-
|
|
6621
|
+
Ls as b,
|
|
6622
|
+
Os as c,
|
|
6619
6623
|
ue as d,
|
|
6620
6624
|
Is as e,
|
|
6621
6625
|
ll as f,
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
+
Nu as g,
|
|
6627
|
+
Su as h,
|
|
6628
|
+
Mu as i,
|
|
6629
|
+
hu as j
|
|
6626
6630
|
};
|