commerce-toolkit 0.0.39 → 0.0.41
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/blog-post-card-author-BGqy41Da.cjs +2 -0
- package/dist/blog-post-card-author-BGqy41Da.cjs.map +1 -0
- package/dist/{blog-post-card-author-DBEBNUmi.js → blog-post-card-author-Cwm4afzF.js} +70 -52
- package/dist/blog-post-card-author-Cwm4afzF.js.map +1 -0
- package/dist/blog-post-card.cjs +1 -1
- package/dist/blog-post-card.js +7 -6
- package/dist/card-link-COguZcAK.js +41 -0
- package/dist/card-link-COguZcAK.js.map +1 -0
- package/dist/card-link-Dnn-M6g-.cjs +2 -0
- package/dist/{card-link-C3U_404z.cjs.map → card-link-Dnn-M6g-.cjs.map} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/check-ChGAB_3v.js +13 -0
- package/dist/check-ChGAB_3v.js.map +1 -0
- package/dist/check-DJilMvC6.cjs +7 -0
- package/dist/check-DJilMvC6.cjs.map +1 -0
- package/dist/checkbox-indicator-BgXRGvAh.cjs +2 -0
- package/dist/checkbox-indicator-BgXRGvAh.cjs.map +1 -0
- package/dist/checkbox-indicator-Cfw9uH_b.js +313 -0
- package/dist/checkbox-indicator-Cfw9uH_b.js.map +1 -0
- package/dist/checkbox.cjs +2 -0
- package/dist/checkbox.cjs.map +1 -0
- package/dist/checkbox.js +7 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/{compare-drawer-remove-aLeR1WyI.js → compare-drawer-remove-B6UNek1W.js} +74 -50
- package/dist/compare-drawer-remove-B6UNek1W.js.map +1 -0
- package/dist/compare-drawer-remove-DcaPIOnG.cjs +2 -0
- package/dist/compare-drawer-remove-DcaPIOnG.cjs.map +1 -0
- package/dist/compare-drawer.cjs +1 -1
- package/dist/compare-drawer.js +4 -3
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/blog-post-card/blog-post-card.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-image.d.ts +2 -2
- package/dist/components/blog-post-card/primitives/blog-post-card-image.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-thumbnail.d.ts +4 -0
- package/dist/components/blog-post-card/primitives/blog-post-card-thumbnail.d.ts.map +1 -0
- package/dist/components/blog-post-card/primitives.d.ts +1 -0
- package/dist/components/blog-post-card/primitives.d.ts.map +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/primitives/card-link.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts +42 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/primitives/checkbox-indicator.d.ts +5 -0
- package/dist/components/checkbox/primitives/checkbox-indicator.d.ts.map +1 -0
- package/dist/components/checkbox/primitives/checkbox-root.d.ts +13 -0
- package/dist/components/checkbox/primitives/checkbox-root.d.ts.map +1 -0
- package/dist/components/checkbox/primitives.d.ts +3 -0
- package/dist/components/checkbox/primitives.d.ts.map +1 -0
- package/dist/components/compare-drawer/primitives/compare-drawer-image.d.ts +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-image.d.ts.map +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-link.d.ts.map +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-thumbnail.d.ts +4 -0
- package/dist/components/compare-drawer/primitives/compare-drawer-thumbnail.d.ts.map +1 -0
- package/dist/components/compare-drawer/primitives.d.ts +1 -0
- package/dist/components/compare-drawer/primitives.d.ts.map +1 -1
- package/dist/components/cursor-pagination/primitives/cursor-pagination-link.d.ts.map +1 -1
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/label.d.ts +7 -0
- package/dist/components/label/label.d.ts.map +1 -0
- package/dist/components/logo/primitives/logo-link.d.ts.map +1 -1
- package/dist/components/offset-pagination/index.d.ts +3 -0
- package/dist/components/offset-pagination/index.d.ts.map +1 -0
- package/dist/components/offset-pagination/offset-pagination.d.ts +30 -0
- package/dist/components/offset-pagination/offset-pagination.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-ellipsis.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-ellipsis.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-item.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-item.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-link.d.ts +6 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-link.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-list.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-list.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-root.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-root.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives.d.ts +6 -0
- package/dist/components/offset-pagination/primitives.d.ts.map +1 -0
- package/dist/components/price/price.d.ts.map +1 -1
- package/dist/components/product-card/index.d.ts +3 -0
- package/dist/components/product-card/index.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-badge.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-badge.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-checkbox.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-checkbox.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-compare.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-compare.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-content.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-content.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-details.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-details.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-fallback.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-fallback.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-header.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-header.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-image.d.ts +6 -0
- package/dist/components/product-card/primitives/product-card-image.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-label.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-label.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-link.d.ts +6 -0
- package/dist/components/product-card/primitives/product-card-link.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-preview.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-preview.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-price.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-price.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-root.d.ts +15 -0
- package/dist/components/product-card/primitives/product-card-root.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-skeleton.d.ts +5 -0
- package/dist/components/product-card/primitives/product-card-skeleton.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-subtitle.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-subtitle.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-thumbnail.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-thumbnail.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-title.d.ts +4 -0
- package/dist/components/product-card/primitives/product-card-title.d.ts.map +1 -0
- package/dist/components/product-card/primitives.d.ts +18 -0
- package/dist/components/product-card/primitives.d.ts.map +1 -0
- package/dist/components/product-card/product-card.d.ts +54 -0
- package/dist/components/product-card/product-card.d.ts.map +1 -0
- package/dist/cursor-pagination-link-BJafEeyH.cjs +12 -0
- package/dist/{cursor-pagination-link-CGF7LkIQ.cjs.map → cursor-pagination-link-BJafEeyH.cjs.map} +1 -1
- package/dist/cursor-pagination-link-CkZ5dwLY.js +87 -0
- package/dist/{cursor-pagination-link-Cx4eqmLO.js.map → cursor-pagination-link-CkZ5dwLY.js.map} +1 -1
- package/dist/cursor-pagination.cjs +1 -1
- package/dist/cursor-pagination.js +2 -2
- package/dist/dropdown-menu-node-BB7FJzMX.cjs +7 -0
- package/dist/dropdown-menu-node-BB7FJzMX.cjs.map +1 -0
- package/dist/{dropdown-menu-node-uYf2lhFv.js → dropdown-menu-node-C7Z-zRyr.js} +477 -510
- package/dist/dropdown-menu-node-C7Z-zRyr.js.map +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/index-6tKkLrHE.cjs +2 -0
- package/dist/index-6tKkLrHE.cjs.map +1 -0
- package/dist/index-B_420jYs.js +28 -0
- package/dist/index-B_420jYs.js.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +900 -944
- package/dist/index.js.map +1 -1
- package/dist/logo-text-CK4vcNPY.js +39 -0
- package/dist/logo-text-CK4vcNPY.js.map +1 -0
- package/dist/logo-text-Db3yd3b1.cjs +2 -0
- package/dist/logo-text-Db3yd3b1.cjs.map +1 -0
- package/dist/logo.cjs +1 -1
- package/dist/logo.js +1 -1
- package/dist/price-BwaeTmkR.js +53 -0
- package/dist/price-BwaeTmkR.js.map +1 -0
- package/dist/price-CdK2ye4P.cjs +2 -0
- package/dist/price-CdK2ye4P.cjs.map +1 -0
- package/dist/primitives--2McVg9Z.js +15 -0
- package/dist/primitives--2McVg9Z.js.map +1 -0
- package/dist/primitives-DmqzDKi2.cjs +2 -0
- package/dist/primitives-DmqzDKi2.cjs.map +1 -0
- package/dist/product-card.cjs +2 -0
- package/dist/product-card.cjs.map +1 -0
- package/dist/product-card.js +328 -0
- package/dist/product-card.js.map +1 -0
- package/dist/skeleton-root-DHW28LoV.js +28 -0
- package/dist/skeleton-root-DHW28LoV.js.map +1 -0
- package/dist/skeleton-root-uIgjea8b.cjs +2 -0
- package/dist/skeleton-root-uIgjea8b.cjs.map +1 -0
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/package.json +21 -2
- package/dist/blog-post-card-author-B7qzTW41.cjs +0 -2
- package/dist/blog-post-card-author-B7qzTW41.cjs.map +0 -1
- package/dist/blog-post-card-author-DBEBNUmi.js.map +0 -1
- package/dist/card-link-C3U_404z.cjs +0 -2
- package/dist/card-link-D1jRC_W9.js +0 -35
- package/dist/card-link-D1jRC_W9.js.map +0 -1
- package/dist/compare-drawer-remove-DeId0NAZ.cjs +0 -2
- package/dist/compare-drawer-remove-DeId0NAZ.cjs.map +0 -1
- package/dist/compare-drawer-remove-aLeR1WyI.js.map +0 -1
- package/dist/cursor-pagination-link-CGF7LkIQ.cjs +0 -12
- package/dist/cursor-pagination-link-Cx4eqmLO.js +0 -80
- package/dist/dropdown-menu-node-DoGsxQQh.cjs +0 -12
- package/dist/dropdown-menu-node-DoGsxQQh.cjs.map +0 -1
- package/dist/dropdown-menu-node-uYf2lhFv.js.map +0 -1
- package/dist/logo-text-BSZv7ll-.js +0 -33
- package/dist/logo-text-BSZv7ll-.js.map +0 -1
- package/dist/logo-text-BsFPzrQT.cjs +0 -2
- package/dist/logo-text-BsFPzrQT.cjs.map +0 -1
- package/dist/primitives-C8vPn9x8.js +0 -39
- package/dist/primitives-C8vPn9x8.js.map +0 -1
- package/dist/primitives-CgOSEe-J.cjs +0 -2
- package/dist/primitives-CgOSEe-J.cjs.map +0 -1
|
@@ -1,44 +1,35 @@
|
|
|
1
1
|
import { jsx as f, jsxs as Fe } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { a as
|
|
2
|
+
import { c as z } from "./utils-BOGlfttm.js";
|
|
3
|
+
import { a as Yn, S as qn, b as Zn, c as Jn, d as Qn, e as eo } from "./scroll-area-corner-DLTYMMl-.js";
|
|
4
4
|
import * as p from "react";
|
|
5
|
-
import { useLayoutEffect as
|
|
5
|
+
import { useLayoutEffect as to, createContext as no, useMemo as oo, useContext as ro } from "react";
|
|
6
6
|
import { c as D } from "./index-B695uy69.js";
|
|
7
|
-
import { u as ce, c as
|
|
8
|
-
import { c as
|
|
7
|
+
import { u as ce, c as _t } from "./index-DLcqcWxM.js";
|
|
8
|
+
import { c as Je, P as $e } from "./index-Df-2-3xv.js";
|
|
9
9
|
import { u as Dt } from "./index-Cn_ZXVPF.js";
|
|
10
|
-
import { P as te, u as
|
|
11
|
-
import { c as
|
|
12
|
-
import { u as
|
|
13
|
-
import { h as
|
|
14
|
-
import { u as
|
|
15
|
-
import * as
|
|
10
|
+
import { P as te, u as ht, d as io, c as ao } from "./index-BzgbBl8b.js";
|
|
11
|
+
import { c as so } from "./index-Aj7AU26N.js";
|
|
12
|
+
import { u as co } from "./index-ByaXH_ih.js";
|
|
13
|
+
import { h as lo, u as uo, R as fo, F as po, D as mo } from "./Combination-49q9aXeT.js";
|
|
14
|
+
import { u as Ee } from "./index-9BYBSfjb.js";
|
|
15
|
+
import * as ho from "react-dom";
|
|
16
16
|
import { u as Be } from "./index-0ioNhtNM.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { c as Et } from "./
|
|
17
|
+
import { u as go } from "./index-B_420jYs.js";
|
|
18
|
+
import { P as wo } from "./index-CM8VpmHn.js";
|
|
19
|
+
import { c as Et, I as vo, R as xo } from "./index-DgGfdcU-.js";
|
|
20
|
+
import yo from "./check-ChGAB_3v.js";
|
|
21
|
+
import { c as bo } from "./createLucideIcon-DU8bVqFn.js";
|
|
20
22
|
/**
|
|
21
23
|
* @license lucide-react v0.545.0 - ISC
|
|
22
24
|
*
|
|
23
25
|
* This source code is licensed under the ISC license.
|
|
24
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
27
|
*/
|
|
26
|
-
const
|
|
28
|
+
const Ot = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Nt = bo("chevron-right", Ot), $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
29
|
__proto__: null,
|
|
28
|
-
__iconNode:
|
|
29
|
-
default:
|
|
30
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
31
|
-
/**
|
|
32
|
-
* @license lucide-react v0.545.0 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
const It = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], kt = Et("chevron-right", It), $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
|
-
__proto__: null,
|
|
39
|
-
__iconNode: It,
|
|
40
|
-
default: kt
|
|
41
|
-
}, Symbol.toStringTag, { value: "Module" })), Mo = ["top", "right", "bottom", "left"], ne = Math.min, G = Math.max, Ee = Math.round, Pe = Math.floor, q = (e) => ({
|
|
30
|
+
__iconNode: Ot,
|
|
31
|
+
default: Nt
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), Mo = ["top", "right", "bottom", "left"], ne = Math.min, H = Math.max, Oe = Math.round, _e = Math.floor, q = (e) => ({
|
|
42
33
|
x: e,
|
|
43
34
|
y: e
|
|
44
35
|
}), Co = {
|
|
@@ -50,8 +41,8 @@ const It = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], kt = Et("chevron-r
|
|
|
50
41
|
start: "end",
|
|
51
42
|
end: "start"
|
|
52
43
|
};
|
|
53
|
-
function
|
|
54
|
-
return
|
|
44
|
+
function Xe(e, t, n) {
|
|
45
|
+
return H(e, ne(t, n));
|
|
55
46
|
}
|
|
56
47
|
function Q(e, t) {
|
|
57
48
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -62,49 +53,49 @@ function ee(e) {
|
|
|
62
53
|
function fe(e) {
|
|
63
54
|
return e.split("-")[1];
|
|
64
55
|
}
|
|
65
|
-
function
|
|
56
|
+
function Qe(e) {
|
|
66
57
|
return e === "x" ? "y" : "x";
|
|
67
58
|
}
|
|
68
|
-
function
|
|
59
|
+
function et(e) {
|
|
69
60
|
return e === "y" ? "height" : "width";
|
|
70
61
|
}
|
|
71
62
|
const So = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
72
63
|
function Y(e) {
|
|
73
64
|
return So.has(ee(e)) ? "y" : "x";
|
|
74
65
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
66
|
+
function tt(e) {
|
|
67
|
+
return Qe(Y(e));
|
|
77
68
|
}
|
|
78
69
|
function Ao(e, t, n) {
|
|
79
70
|
n === void 0 && (n = !1);
|
|
80
|
-
const o = fe(e), r =
|
|
71
|
+
const o = fe(e), r = tt(e), i = et(r);
|
|
81
72
|
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
82
73
|
return t.reference[i] > t.floating[i] && (a = Ne(a)), [a, Ne(a)];
|
|
83
74
|
}
|
|
84
|
-
function
|
|
75
|
+
function Po(e) {
|
|
85
76
|
const t = Ne(e);
|
|
86
|
-
return [
|
|
77
|
+
return [Ye(e), t, Ye(t)];
|
|
87
78
|
}
|
|
88
|
-
function
|
|
79
|
+
function Ye(e) {
|
|
89
80
|
return e.replace(/start|end/g, (t) => Ro[t]);
|
|
90
81
|
}
|
|
91
|
-
const gt = ["left", "right"], wt = ["right", "left"],
|
|
92
|
-
function
|
|
82
|
+
const gt = ["left", "right"], wt = ["right", "left"], _o = ["top", "bottom"], Do = ["bottom", "top"];
|
|
83
|
+
function Eo(e, t, n) {
|
|
93
84
|
switch (e) {
|
|
94
85
|
case "top":
|
|
95
86
|
case "bottom":
|
|
96
87
|
return n ? t ? wt : gt : t ? gt : wt;
|
|
97
88
|
case "left":
|
|
98
89
|
case "right":
|
|
99
|
-
return t ?
|
|
90
|
+
return t ? _o : Do;
|
|
100
91
|
default:
|
|
101
92
|
return [];
|
|
102
93
|
}
|
|
103
94
|
}
|
|
104
|
-
function
|
|
95
|
+
function Oo(e, t, n, o) {
|
|
105
96
|
const r = fe(e);
|
|
106
|
-
let i =
|
|
107
|
-
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(
|
|
97
|
+
let i = Eo(ee(e), n === "start", o);
|
|
98
|
+
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Ye)))), i;
|
|
108
99
|
}
|
|
109
100
|
function Ne(e) {
|
|
110
101
|
return e.replace(/left|right|bottom|top/g, (t) => Co[t]);
|
|
@@ -118,7 +109,7 @@ function No(e) {
|
|
|
118
109
|
...e
|
|
119
110
|
};
|
|
120
111
|
}
|
|
121
|
-
function
|
|
112
|
+
function Tt(e) {
|
|
122
113
|
return typeof e != "number" ? No(e) : {
|
|
123
114
|
top: e,
|
|
124
115
|
right: e,
|
|
@@ -149,7 +140,7 @@ function vt(e, t, n) {
|
|
|
149
140
|
reference: o,
|
|
150
141
|
floating: r
|
|
151
142
|
} = e;
|
|
152
|
-
const i = Y(t), a =
|
|
143
|
+
const i = Y(t), a = tt(t), s = et(a), u = ee(t), d = i === "y", l = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[s] / 2 - r[s] / 2;
|
|
153
144
|
let h;
|
|
154
145
|
switch (u) {
|
|
155
146
|
case "top":
|
|
@@ -269,7 +260,7 @@ async function ve(e, t) {
|
|
|
269
260
|
elementContext: c = "floating",
|
|
270
261
|
altBoundary: m = !1,
|
|
271
262
|
padding: h = 0
|
|
272
|
-
} = Q(t, e), g =
|
|
263
|
+
} = Q(t, e), g = Tt(h), y = s[m ? c === "floating" ? "reference" : "floating" : c], x = Te(await i.getClippingRect({
|
|
273
264
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
274
265
|
boundary: d,
|
|
275
266
|
rootBoundary: l,
|
|
@@ -316,18 +307,18 @@ const Io = (e) => ({
|
|
|
316
307
|
} = Q(e, t) || {};
|
|
317
308
|
if (d == null)
|
|
318
309
|
return {};
|
|
319
|
-
const c =
|
|
310
|
+
const c = Tt(l), m = {
|
|
320
311
|
x: n,
|
|
321
312
|
y: o
|
|
322
|
-
}, h =
|
|
323
|
-
let A =
|
|
324
|
-
(!A || !await (a.isElement == null ? void 0 : a.isElement(
|
|
325
|
-
const I = b / 2 - R / 2, k = A / 2 - w[g] / 2 - 1,
|
|
313
|
+
}, h = tt(r), g = et(h), w = await a.getDimensions(d), y = h === "y", x = y ? "top" : "left", C = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", b = i.reference[g] + i.reference[h] - m[h] - i.floating[g], R = m[h] - i.reference[h], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
314
|
+
let A = P ? P[S] : 0;
|
|
315
|
+
(!A || !await (a.isElement == null ? void 0 : a.isElement(P))) && (A = s.floating[S] || i.floating[g]);
|
|
316
|
+
const I = b / 2 - R / 2, k = A / 2 - w[g] / 2 - 1, E = ne(c[x], k), $ = ne(c[C], k), L = E, O = A - w[g] - $, _ = A / 2 - w[g] / 2 + I, G = Xe(L, _, O), N = !u.arrow && fe(r) != null && _ !== G && i.reference[g] / 2 - (_ < L ? E : $) - w[g] / 2 < 0, T = N ? _ < L ? _ - L : _ - O : 0;
|
|
326
317
|
return {
|
|
327
318
|
[h]: m[h] + T,
|
|
328
319
|
data: {
|
|
329
|
-
[h]:
|
|
330
|
-
centerOffset:
|
|
320
|
+
[h]: G,
|
|
321
|
+
centerOffset: _ - G - T,
|
|
331
322
|
...N && {
|
|
332
323
|
alignmentOffset: T
|
|
333
324
|
}
|
|
@@ -359,46 +350,46 @@ const Io = (e) => ({
|
|
|
359
350
|
} = Q(e, t);
|
|
360
351
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
361
352
|
return {};
|
|
362
|
-
const x = ee(r), C = Y(s), S = ee(s) === s, b = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), R = m || (S || !w ? [Ne(s)] :
|
|
363
|
-
!m &&
|
|
353
|
+
const x = ee(r), C = Y(s), S = ee(s) === s, b = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), R = m || (S || !w ? [Ne(s)] : Po(s)), P = g !== "none";
|
|
354
|
+
!m && P && R.push(...Oo(s, w, g, b));
|
|
364
355
|
const A = [s, ...R], I = await ve(t, y), k = [];
|
|
365
|
-
let
|
|
356
|
+
let E = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
366
357
|
if (l && k.push(I[x]), c) {
|
|
367
|
-
const
|
|
368
|
-
k.push(I[
|
|
358
|
+
const _ = Ao(r, a, b);
|
|
359
|
+
k.push(I[_[0]], I[_[1]]);
|
|
369
360
|
}
|
|
370
|
-
if (
|
|
361
|
+
if (E = [...E, {
|
|
371
362
|
placement: r,
|
|
372
363
|
overflows: k
|
|
373
|
-
}], !k.every((
|
|
364
|
+
}], !k.every((_) => _ <= 0)) {
|
|
374
365
|
var $, L;
|
|
375
|
-
const
|
|
376
|
-
if (
|
|
366
|
+
const _ = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, G = A[_];
|
|
367
|
+
if (G && (!(c === "alignment" ? C !== Y(G) : !1) || // We leave the current main axis only if every placement on that axis
|
|
377
368
|
// overflows the main axis.
|
|
378
|
-
|
|
369
|
+
E.every((M) => Y(M.placement) === C ? M.overflows[0] > 0 : !0)))
|
|
379
370
|
return {
|
|
380
371
|
data: {
|
|
381
|
-
index:
|
|
382
|
-
overflows:
|
|
372
|
+
index: _,
|
|
373
|
+
overflows: E
|
|
383
374
|
},
|
|
384
375
|
reset: {
|
|
385
|
-
placement:
|
|
376
|
+
placement: G
|
|
386
377
|
}
|
|
387
378
|
};
|
|
388
|
-
let N = (L =
|
|
379
|
+
let N = (L = E.filter((T) => T.overflows[0] <= 0).sort((T, M) => T.overflows[1] - M.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
389
380
|
if (!N)
|
|
390
381
|
switch (h) {
|
|
391
382
|
case "bestFit": {
|
|
392
|
-
var
|
|
393
|
-
const T = (
|
|
394
|
-
if (
|
|
383
|
+
var O;
|
|
384
|
+
const T = (O = E.filter((M) => {
|
|
385
|
+
if (P) {
|
|
395
386
|
const v = Y(M.placement);
|
|
396
387
|
return v === C || // Create a bias to the `y` side axis due to horizontal
|
|
397
388
|
// reading directions favoring greater width.
|
|
398
389
|
v === "y";
|
|
399
390
|
}
|
|
400
391
|
return !0;
|
|
401
|
-
}).map((M) => [M.placement, M.overflows.filter((v) => v > 0).reduce((v, B) => v + B, 0)]).sort((M, v) => M[1] - v[1])[0]) == null ? void 0 :
|
|
392
|
+
}).map((M) => [M.placement, M.overflows.filter((v) => v > 0).reduce((v, B) => v + B, 0)]).sort((M, v) => M[1] - v[1])[0]) == null ? void 0 : O[0];
|
|
402
393
|
T && (N = T);
|
|
403
394
|
break;
|
|
404
395
|
}
|
|
@@ -469,13 +460,13 @@ const Lo = function(e) {
|
|
|
469
460
|
}
|
|
470
461
|
}
|
|
471
462
|
};
|
|
472
|
-
},
|
|
463
|
+
}, It = /* @__PURE__ */ new Set(["left", "top"]);
|
|
473
464
|
async function Fo(e, t) {
|
|
474
465
|
const {
|
|
475
466
|
placement: n,
|
|
476
467
|
platform: o,
|
|
477
468
|
elements: r
|
|
478
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = ee(n), s = fe(n), u = Y(n) === "y", d =
|
|
469
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = ee(n), s = fe(n), u = Y(n) === "y", d = It.has(a) ? -1 : 1, l = i && u ? -1 : 1, c = Q(t, e);
|
|
479
470
|
let {
|
|
480
471
|
mainAxis: m,
|
|
481
472
|
crossAxis: h,
|
|
@@ -547,15 +538,15 @@ const $o = function(e) {
|
|
|
547
538
|
} = Q(e, t), d = {
|
|
548
539
|
x: n,
|
|
549
540
|
y: o
|
|
550
|
-
}, l = await ve(t, u), c = Y(ee(r)), m =
|
|
541
|
+
}, l = await ve(t, u), c = Y(ee(r)), m = Qe(c);
|
|
551
542
|
let h = d[m], g = d[c];
|
|
552
543
|
if (i) {
|
|
553
544
|
const y = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", C = h + l[y], S = h - l[x];
|
|
554
|
-
h =
|
|
545
|
+
h = Xe(C, h, S);
|
|
555
546
|
}
|
|
556
547
|
if (a) {
|
|
557
548
|
const y = c === "y" ? "top" : "left", x = c === "y" ? "bottom" : "right", C = g + l[y], S = g - l[x];
|
|
558
|
-
g =
|
|
549
|
+
g = Xe(C, g, S);
|
|
559
550
|
}
|
|
560
551
|
const w = s.fn({
|
|
561
552
|
...t,
|
|
@@ -592,7 +583,7 @@ const $o = function(e) {
|
|
|
592
583
|
} = Q(e, t), l = {
|
|
593
584
|
x: n,
|
|
594
585
|
y: o
|
|
595
|
-
}, c = Y(r), m =
|
|
586
|
+
}, c = Y(r), m = Qe(c);
|
|
596
587
|
let h = l[m], g = l[c];
|
|
597
588
|
const w = Q(s, t), y = typeof w == "number" ? {
|
|
598
589
|
mainAxis: w,
|
|
@@ -608,8 +599,8 @@ const $o = function(e) {
|
|
|
608
599
|
}
|
|
609
600
|
if (d) {
|
|
610
601
|
var x, C;
|
|
611
|
-
const S = m === "y" ? "width" : "height", b =
|
|
612
|
-
g < R ? g = R : g >
|
|
602
|
+
const S = m === "y" ? "width" : "height", b = It.has(ee(r)), R = i.reference[c] - i.floating[S] + (b && ((x = a.offset) == null ? void 0 : x[c]) || 0) + (b ? 0 : y.crossAxis), P = i.reference[c] + i.reference[S] + (b ? 0 : ((C = a.offset) == null ? void 0 : C[c]) || 0) - (b ? y.crossAxis : 0);
|
|
603
|
+
g < R ? g = R : g > P && (g = P);
|
|
613
604
|
}
|
|
614
605
|
return {
|
|
615
606
|
[m]: h,
|
|
@@ -617,7 +608,7 @@ const $o = function(e) {
|
|
|
617
608
|
};
|
|
618
609
|
}
|
|
619
610
|
};
|
|
620
|
-
},
|
|
611
|
+
}, Go = function(e) {
|
|
621
612
|
return e === void 0 && (e = {}), {
|
|
622
613
|
name: "size",
|
|
623
614
|
options: e,
|
|
@@ -638,11 +629,11 @@ const $o = function(e) {
|
|
|
638
629
|
} = i.floating;
|
|
639
630
|
let y, x;
|
|
640
631
|
c === "top" || c === "bottom" ? (y = c, x = m === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = c, y = m === "end" ? "top" : "bottom");
|
|
641
|
-
const C = w - l.top - l.bottom, S = g - l.left - l.right, b = ne(w - l[y], C), R = ne(g - l[x], S),
|
|
632
|
+
const C = w - l.top - l.bottom, S = g - l.left - l.right, b = ne(w - l[y], C), R = ne(g - l[x], S), P = !t.middlewareData.shift;
|
|
642
633
|
let A = b, I = R;
|
|
643
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = S), (o = t.middlewareData.shift) != null && o.enabled.y && (A = C),
|
|
644
|
-
const
|
|
645
|
-
h ? I = g - 2 * (
|
|
634
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = S), (o = t.middlewareData.shift) != null && o.enabled.y && (A = C), P && !m) {
|
|
635
|
+
const E = H(l.left, 0), $ = H(l.right, 0), L = H(l.top, 0), O = H(l.bottom, 0);
|
|
636
|
+
h ? I = g - 2 * (E !== 0 || $ !== 0 ? E + $ : H(l.left, l.right)) : A = w - 2 * (L !== 0 || O !== 0 ? L + O : H(l.top, l.bottom));
|
|
646
637
|
}
|
|
647
638
|
await u({
|
|
648
639
|
...t,
|
|
@@ -662,29 +653,29 @@ function We() {
|
|
|
662
653
|
return typeof window < "u";
|
|
663
654
|
}
|
|
664
655
|
function pe(e) {
|
|
665
|
-
return
|
|
656
|
+
return kt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
666
657
|
}
|
|
667
|
-
function
|
|
658
|
+
function K(e) {
|
|
668
659
|
var t;
|
|
669
660
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
670
661
|
}
|
|
671
662
|
function J(e) {
|
|
672
663
|
var t;
|
|
673
|
-
return (t = (
|
|
664
|
+
return (t = (kt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
674
665
|
}
|
|
675
|
-
function
|
|
676
|
-
return We() ? e instanceof Node || e instanceof
|
|
666
|
+
function kt(e) {
|
|
667
|
+
return We() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
677
668
|
}
|
|
678
669
|
function j(e) {
|
|
679
|
-
return We() ? e instanceof Element || e instanceof
|
|
670
|
+
return We() ? e instanceof Element || e instanceof K(e).Element : !1;
|
|
680
671
|
}
|
|
681
672
|
function Z(e) {
|
|
682
|
-
return We() ? e instanceof HTMLElement || e instanceof
|
|
673
|
+
return We() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
|
|
683
674
|
}
|
|
684
675
|
function bt(e) {
|
|
685
|
-
return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
676
|
+
return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
|
|
686
677
|
}
|
|
687
|
-
const
|
|
678
|
+
const Ho = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
688
679
|
function Me(e) {
|
|
689
680
|
const {
|
|
690
681
|
overflow: t,
|
|
@@ -692,15 +683,15 @@ function Me(e) {
|
|
|
692
683
|
overflowY: o,
|
|
693
684
|
display: r
|
|
694
685
|
} = U(e);
|
|
695
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !
|
|
686
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Ho.has(r);
|
|
696
687
|
}
|
|
697
|
-
const
|
|
698
|
-
function
|
|
699
|
-
return
|
|
688
|
+
const Ko = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
689
|
+
function Vo(e) {
|
|
690
|
+
return Ko.has(pe(e));
|
|
700
691
|
}
|
|
701
|
-
const
|
|
702
|
-
function
|
|
703
|
-
return
|
|
692
|
+
const zo = [":popover-open", ":modal"];
|
|
693
|
+
function Ge(e) {
|
|
694
|
+
return zo.some((t) => {
|
|
704
695
|
try {
|
|
705
696
|
return e.matches(t);
|
|
706
697
|
} catch {
|
|
@@ -709,22 +700,22 @@ function ze(e) {
|
|
|
709
700
|
});
|
|
710
701
|
}
|
|
711
702
|
const jo = ["transform", "translate", "scale", "rotate", "perspective"], Uo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Xo = ["paint", "layout", "strict", "content"];
|
|
712
|
-
function
|
|
713
|
-
const t =
|
|
703
|
+
function nt(e) {
|
|
704
|
+
const t = ot(), n = j(e) ? U(e) : e;
|
|
714
705
|
return jo.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Uo.some((o) => (n.willChange || "").includes(o)) || Xo.some((o) => (n.contain || "").includes(o));
|
|
715
706
|
}
|
|
716
707
|
function Yo(e) {
|
|
717
708
|
let t = oe(e);
|
|
718
709
|
for (; Z(t) && !de(t); ) {
|
|
719
|
-
if (
|
|
710
|
+
if (nt(t))
|
|
720
711
|
return t;
|
|
721
|
-
if (
|
|
712
|
+
if (Ge(t))
|
|
722
713
|
return null;
|
|
723
714
|
t = oe(t);
|
|
724
715
|
}
|
|
725
716
|
return null;
|
|
726
717
|
}
|
|
727
|
-
function
|
|
718
|
+
function ot() {
|
|
728
719
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
729
720
|
}
|
|
730
721
|
const qo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
@@ -732,9 +723,9 @@ function de(e) {
|
|
|
732
723
|
return qo.has(pe(e));
|
|
733
724
|
}
|
|
734
725
|
function U(e) {
|
|
735
|
-
return
|
|
726
|
+
return K(e).getComputedStyle(e);
|
|
736
727
|
}
|
|
737
|
-
function
|
|
728
|
+
function He(e) {
|
|
738
729
|
return j(e) ? {
|
|
739
730
|
scrollLeft: e.scrollLeft,
|
|
740
731
|
scrollTop: e.scrollTop
|
|
@@ -755,75 +746,75 @@ function oe(e) {
|
|
|
755
746
|
);
|
|
756
747
|
return bt(t) ? t.host : t;
|
|
757
748
|
}
|
|
758
|
-
function
|
|
749
|
+
function Lt(e) {
|
|
759
750
|
const t = oe(e);
|
|
760
|
-
return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Me(t) ? t :
|
|
751
|
+
return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Me(t) ? t : Lt(t);
|
|
761
752
|
}
|
|
762
753
|
function xe(e, t, n) {
|
|
763
754
|
var o;
|
|
764
755
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
765
|
-
const r =
|
|
756
|
+
const r = Lt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = K(r);
|
|
766
757
|
if (i) {
|
|
767
|
-
const s =
|
|
758
|
+
const s = qe(a);
|
|
768
759
|
return t.concat(a, a.visualViewport || [], Me(r) ? r : [], s && n ? xe(s) : []);
|
|
769
760
|
}
|
|
770
761
|
return t.concat(r, xe(r, [], n));
|
|
771
762
|
}
|
|
772
|
-
function
|
|
763
|
+
function qe(e) {
|
|
773
764
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
774
765
|
}
|
|
775
|
-
function
|
|
766
|
+
function Ft(e) {
|
|
776
767
|
const t = U(e);
|
|
777
768
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
778
|
-
const r = Z(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s =
|
|
769
|
+
const r = Z(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Oe(n) !== i || Oe(o) !== a;
|
|
779
770
|
return s && (n = i, o = a), {
|
|
780
771
|
width: n,
|
|
781
772
|
height: o,
|
|
782
773
|
$: s
|
|
783
774
|
};
|
|
784
775
|
}
|
|
785
|
-
function
|
|
776
|
+
function rt(e) {
|
|
786
777
|
return j(e) ? e : e.contextElement;
|
|
787
778
|
}
|
|
788
779
|
function ue(e) {
|
|
789
|
-
const t =
|
|
780
|
+
const t = rt(e);
|
|
790
781
|
if (!Z(t))
|
|
791
782
|
return q(1);
|
|
792
783
|
const n = t.getBoundingClientRect(), {
|
|
793
784
|
width: o,
|
|
794
785
|
height: r,
|
|
795
786
|
$: i
|
|
796
|
-
} =
|
|
797
|
-
let a = (i ?
|
|
787
|
+
} = Ft(t);
|
|
788
|
+
let a = (i ? Oe(n.width) : n.width) / o, s = (i ? Oe(n.height) : n.height) / r;
|
|
798
789
|
return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
799
790
|
x: a,
|
|
800
791
|
y: s
|
|
801
792
|
};
|
|
802
793
|
}
|
|
803
794
|
const Zo = /* @__PURE__ */ q(0);
|
|
804
|
-
function
|
|
805
|
-
const t =
|
|
806
|
-
return !
|
|
795
|
+
function $t(e) {
|
|
796
|
+
const t = K(e);
|
|
797
|
+
return !ot() || !t.visualViewport ? Zo : {
|
|
807
798
|
x: t.visualViewport.offsetLeft,
|
|
808
799
|
y: t.visualViewport.offsetTop
|
|
809
800
|
};
|
|
810
801
|
}
|
|
811
802
|
function Jo(e, t, n) {
|
|
812
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
803
|
+
return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
|
|
813
804
|
}
|
|
814
805
|
function se(e, t, n, o) {
|
|
815
806
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
816
|
-
const r = e.getBoundingClientRect(), i =
|
|
807
|
+
const r = e.getBoundingClientRect(), i = rt(e);
|
|
817
808
|
let a = q(1);
|
|
818
809
|
t && (o ? j(o) && (a = ue(o)) : a = ue(e));
|
|
819
|
-
const s = Jo(i, n, o) ?
|
|
810
|
+
const s = Jo(i, n, o) ? $t(i) : q(0);
|
|
820
811
|
let u = (r.left + s.x) / a.x, d = (r.top + s.y) / a.y, l = r.width / a.x, c = r.height / a.y;
|
|
821
812
|
if (i) {
|
|
822
|
-
const m =
|
|
823
|
-
let g = m, w =
|
|
813
|
+
const m = K(i), h = o && j(o) ? K(o) : o;
|
|
814
|
+
let g = m, w = qe(g);
|
|
824
815
|
for (; w && o && h !== g; ) {
|
|
825
816
|
const y = ue(w), x = w.getBoundingClientRect(), C = U(w), S = x.left + (w.clientLeft + parseFloat(C.paddingLeft)) * y.x, b = x.top + (w.clientTop + parseFloat(C.paddingTop)) * y.y;
|
|
826
|
-
u *= y.x, d *= y.y, l *= y.x, c *= y.y, u += S, d += b, g =
|
|
817
|
+
u *= y.x, d *= y.y, l *= y.x, c *= y.y, u += S, d += b, g = K(w), w = qe(g);
|
|
827
818
|
}
|
|
828
819
|
}
|
|
829
820
|
return Te({
|
|
@@ -833,12 +824,12 @@ function se(e, t, n, o) {
|
|
|
833
824
|
y: d
|
|
834
825
|
});
|
|
835
826
|
}
|
|
836
|
-
function
|
|
837
|
-
const n =
|
|
827
|
+
function Ke(e, t) {
|
|
828
|
+
const n = He(e).scrollLeft;
|
|
838
829
|
return t ? t.left + n : se(J(e)).left + n;
|
|
839
830
|
}
|
|
840
|
-
function
|
|
841
|
-
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft -
|
|
831
|
+
function Bt(e, t) {
|
|
832
|
+
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Ke(e, n), r = n.top + t.scrollTop;
|
|
842
833
|
return {
|
|
843
834
|
x: o,
|
|
844
835
|
y: r
|
|
@@ -851,7 +842,7 @@ function Qo(e) {
|
|
|
851
842
|
offsetParent: o,
|
|
852
843
|
strategy: r
|
|
853
844
|
} = e;
|
|
854
|
-
const i = r === "fixed", a = J(o), s = t ?
|
|
845
|
+
const i = r === "fixed", a = J(o), s = t ? Ge(t.floating) : !1;
|
|
855
846
|
if (o === a || s && i)
|
|
856
847
|
return n;
|
|
857
848
|
let u = {
|
|
@@ -859,11 +850,11 @@ function Qo(e) {
|
|
|
859
850
|
scrollTop: 0
|
|
860
851
|
}, d = q(1);
|
|
861
852
|
const l = q(0), c = Z(o);
|
|
862
|
-
if ((c || !c && !i) && ((pe(o) !== "body" || Me(a)) && (u =
|
|
853
|
+
if ((c || !c && !i) && ((pe(o) !== "body" || Me(a)) && (u = He(o)), Z(o))) {
|
|
863
854
|
const h = se(o);
|
|
864
855
|
d = ue(o), l.x = h.x + o.clientLeft, l.y = h.y + o.clientTop;
|
|
865
856
|
}
|
|
866
|
-
const m = a && !c && !i ?
|
|
857
|
+
const m = a && !c && !i ? Bt(a, u) : q(0);
|
|
867
858
|
return {
|
|
868
859
|
width: n.width * d.x,
|
|
869
860
|
height: n.height * d.y,
|
|
@@ -875,10 +866,10 @@ function er(e) {
|
|
|
875
866
|
return Array.from(e.getClientRects());
|
|
876
867
|
}
|
|
877
868
|
function tr(e) {
|
|
878
|
-
const t = J(e), n =
|
|
879
|
-
let a = -n.scrollLeft +
|
|
869
|
+
const t = J(e), n = He(e), o = e.ownerDocument.body, r = H(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = H(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
870
|
+
let a = -n.scrollLeft + Ke(e);
|
|
880
871
|
const s = -n.scrollTop;
|
|
881
|
-
return U(o).direction === "rtl" && (a +=
|
|
872
|
+
return U(o).direction === "rtl" && (a += H(t.clientWidth, o.clientWidth) - r), {
|
|
882
873
|
width: r,
|
|
883
874
|
height: i,
|
|
884
875
|
x: a,
|
|
@@ -887,14 +878,14 @@ function tr(e) {
|
|
|
887
878
|
}
|
|
888
879
|
const Mt = 25;
|
|
889
880
|
function nr(e, t) {
|
|
890
|
-
const n =
|
|
881
|
+
const n = K(e), o = J(e), r = n.visualViewport;
|
|
891
882
|
let i = o.clientWidth, a = o.clientHeight, s = 0, u = 0;
|
|
892
883
|
if (r) {
|
|
893
884
|
i = r.width, a = r.height;
|
|
894
|
-
const l =
|
|
885
|
+
const l = ot();
|
|
895
886
|
(!l || l && t === "fixed") && (s = r.offsetLeft, u = r.offsetTop);
|
|
896
887
|
}
|
|
897
|
-
const d =
|
|
888
|
+
const d = Ke(o);
|
|
898
889
|
if (d <= 0) {
|
|
899
890
|
const l = o.ownerDocument, c = l.body, m = getComputedStyle(c), h = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(o.clientWidth - c.clientWidth - h);
|
|
900
891
|
g <= Mt && (i -= g);
|
|
@@ -925,7 +916,7 @@ function Ct(e, t, n) {
|
|
|
925
916
|
else if (j(t))
|
|
926
917
|
o = rr(t, n);
|
|
927
918
|
else {
|
|
928
|
-
const r =
|
|
919
|
+
const r = $t(e);
|
|
929
920
|
o = {
|
|
930
921
|
x: t.x - r.x,
|
|
931
922
|
y: t.y - r.y,
|
|
@@ -935,9 +926,9 @@ function Ct(e, t, n) {
|
|
|
935
926
|
}
|
|
936
927
|
return Te(o);
|
|
937
928
|
}
|
|
938
|
-
function
|
|
929
|
+
function Wt(e, t) {
|
|
939
930
|
const n = oe(e);
|
|
940
|
-
return n === t || !j(n) || de(n) ? !1 : U(n).position === "fixed" ||
|
|
931
|
+
return n === t || !j(n) || de(n) ? !1 : U(n).position === "fixed" || Wt(n, t);
|
|
941
932
|
}
|
|
942
933
|
function ir(e, t) {
|
|
943
934
|
const n = t.get(e);
|
|
@@ -947,8 +938,8 @@ function ir(e, t) {
|
|
|
947
938
|
const i = U(e).position === "fixed";
|
|
948
939
|
let a = i ? oe(e) : e;
|
|
949
940
|
for (; j(a) && !de(a); ) {
|
|
950
|
-
const s = U(a), u =
|
|
951
|
-
!u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && or.has(r.position) || Me(a) && !u &&
|
|
941
|
+
const s = U(a), u = nt(a);
|
|
942
|
+
!u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && or.has(r.position) || Me(a) && !u && Wt(e, a)) ? o = o.filter((l) => l !== a) : r = s, a = oe(a);
|
|
952
943
|
}
|
|
953
944
|
return t.set(e, o), o;
|
|
954
945
|
}
|
|
@@ -959,9 +950,9 @@ function ar(e) {
|
|
|
959
950
|
rootBoundary: o,
|
|
960
951
|
strategy: r
|
|
961
952
|
} = e;
|
|
962
|
-
const a = [...n === "clippingAncestors" ?
|
|
953
|
+
const a = [...n === "clippingAncestors" ? Ge(t) ? [] : ir(t, this._c) : [].concat(n), o], s = a[0], u = a.reduce((d, l) => {
|
|
963
954
|
const c = Ct(t, l, r);
|
|
964
|
-
return d.top =
|
|
955
|
+
return d.top = H(c.top, d.top), d.right = ne(c.right, d.right), d.bottom = ne(c.bottom, d.bottom), d.left = H(c.left, d.left), d;
|
|
965
956
|
}, Ct(t, s, r));
|
|
966
957
|
return {
|
|
967
958
|
width: u.right - u.left,
|
|
@@ -974,7 +965,7 @@ function sr(e) {
|
|
|
974
965
|
const {
|
|
975
966
|
width: t,
|
|
976
967
|
height: n
|
|
977
|
-
} =
|
|
968
|
+
} = Ft(e);
|
|
978
969
|
return {
|
|
979
970
|
width: t,
|
|
980
971
|
height: n
|
|
@@ -988,15 +979,15 @@ function cr(e, t, n) {
|
|
|
988
979
|
};
|
|
989
980
|
const u = q(0);
|
|
990
981
|
function d() {
|
|
991
|
-
u.x =
|
|
982
|
+
u.x = Ke(r);
|
|
992
983
|
}
|
|
993
984
|
if (o || !o && !i)
|
|
994
|
-
if ((pe(t) !== "body" || Me(r)) && (s =
|
|
985
|
+
if ((pe(t) !== "body" || Me(r)) && (s = He(t)), o) {
|
|
995
986
|
const h = se(t, !0, i, t);
|
|
996
987
|
u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
|
|
997
988
|
} else r && d();
|
|
998
989
|
i && !o && r && d();
|
|
999
|
-
const l = r && !o && !i ?
|
|
990
|
+
const l = r && !o && !i ? Bt(r, s) : q(0), c = a.left + s.scrollLeft - u.x - l.x, m = a.top + s.scrollTop - u.y - l.y;
|
|
1000
991
|
return {
|
|
1001
992
|
x: c,
|
|
1002
993
|
y: m,
|
|
@@ -1015,9 +1006,9 @@ function Rt(e, t) {
|
|
|
1015
1006
|
let n = e.offsetParent;
|
|
1016
1007
|
return J(e) === n && (n = n.ownerDocument.body), n;
|
|
1017
1008
|
}
|
|
1018
|
-
function
|
|
1019
|
-
const n =
|
|
1020
|
-
if (
|
|
1009
|
+
function Gt(e, t) {
|
|
1010
|
+
const n = K(e);
|
|
1011
|
+
if (Ge(e))
|
|
1021
1012
|
return n;
|
|
1022
1013
|
if (!Z(e)) {
|
|
1023
1014
|
let r = oe(e);
|
|
@@ -1029,12 +1020,12 @@ function Kt(e, t) {
|
|
|
1029
1020
|
return n;
|
|
1030
1021
|
}
|
|
1031
1022
|
let o = Rt(e, t);
|
|
1032
|
-
for (; o &&
|
|
1023
|
+
for (; o && Vo(o) && je(o); )
|
|
1033
1024
|
o = Rt(o, t);
|
|
1034
|
-
return o && de(o) && je(o) && !
|
|
1025
|
+
return o && de(o) && je(o) && !nt(o) ? n : o || Yo(e) || n;
|
|
1035
1026
|
}
|
|
1036
1027
|
const lr = async function(e) {
|
|
1037
|
-
const t = this.getOffsetParent ||
|
|
1028
|
+
const t = this.getOffsetParent || Gt, n = this.getDimensions, o = await n(e.floating);
|
|
1038
1029
|
return {
|
|
1039
1030
|
reference: cr(e.reference, await t(e.floating), e.strategy),
|
|
1040
1031
|
floating: {
|
|
@@ -1052,7 +1043,7 @@ const dr = {
|
|
|
1052
1043
|
convertOffsetParentRelativeRectToViewportRelativeRect: Qo,
|
|
1053
1044
|
getDocumentElement: J,
|
|
1054
1045
|
getClippingRect: ar,
|
|
1055
|
-
getOffsetParent:
|
|
1046
|
+
getOffsetParent: Gt,
|
|
1056
1047
|
getElementRects: lr,
|
|
1057
1048
|
getClientRects: er,
|
|
1058
1049
|
getDimensions: sr,
|
|
@@ -1060,7 +1051,7 @@ const dr = {
|
|
|
1060
1051
|
isElement: j,
|
|
1061
1052
|
isRTL: ur
|
|
1062
1053
|
};
|
|
1063
|
-
function
|
|
1054
|
+
function Ht(e, t) {
|
|
1064
1055
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1065
1056
|
}
|
|
1066
1057
|
function fr(e, t) {
|
|
@@ -1080,13 +1071,13 @@ function fr(e, t) {
|
|
|
1080
1071
|
} = d;
|
|
1081
1072
|
if (s || t(), !m || !h)
|
|
1082
1073
|
return;
|
|
1083
|
-
const g =
|
|
1074
|
+
const g = _e(c), w = _e(r.clientWidth - (l + m)), y = _e(r.clientHeight - (c + h)), x = _e(l), S = {
|
|
1084
1075
|
rootMargin: -g + "px " + -w + "px " + -y + "px " + -x + "px",
|
|
1085
|
-
threshold:
|
|
1076
|
+
threshold: H(0, ne(1, u)) || 1
|
|
1086
1077
|
};
|
|
1087
1078
|
let b = !0;
|
|
1088
|
-
function R(
|
|
1089
|
-
const A =
|
|
1079
|
+
function R(P) {
|
|
1080
|
+
const A = P[0].intersectionRatio;
|
|
1090
1081
|
if (A !== u) {
|
|
1091
1082
|
if (!b)
|
|
1092
1083
|
return a();
|
|
@@ -1094,7 +1085,7 @@ function fr(e, t) {
|
|
|
1094
1085
|
a(!1, 1e-7);
|
|
1095
1086
|
}, 1e3);
|
|
1096
1087
|
}
|
|
1097
|
-
A === 1 && !
|
|
1088
|
+
A === 1 && !Ht(d, e.getBoundingClientRect()) && a(), b = !1;
|
|
1098
1089
|
}
|
|
1099
1090
|
try {
|
|
1100
1091
|
n = new IntersectionObserver(R, {
|
|
@@ -1117,7 +1108,7 @@ function pr(e, t, n, o) {
|
|
|
1117
1108
|
elementResize: a = typeof ResizeObserver == "function",
|
|
1118
1109
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
1119
1110
|
animationFrame: u = !1
|
|
1120
|
-
} = o, d =
|
|
1111
|
+
} = o, d = rt(e), l = r || i ? [...d ? xe(d) : [], ...xe(t)] : [];
|
|
1121
1112
|
l.forEach((x) => {
|
|
1122
1113
|
r && x.addEventListener("scroll", n, {
|
|
1123
1114
|
passive: !0
|
|
@@ -1136,7 +1127,7 @@ function pr(e, t, n, o) {
|
|
|
1136
1127
|
u && y();
|
|
1137
1128
|
function y() {
|
|
1138
1129
|
const x = se(e);
|
|
1139
|
-
w && !
|
|
1130
|
+
w && !Ht(w, x) && n(), w = x, g = requestAnimationFrame(y);
|
|
1140
1131
|
}
|
|
1141
1132
|
return n(), () => {
|
|
1142
1133
|
var x;
|
|
@@ -1145,7 +1136,7 @@ function pr(e, t, n, o) {
|
|
|
1145
1136
|
}), c?.(), (x = h) == null || x.disconnect(), h = null, u && cancelAnimationFrame(g);
|
|
1146
1137
|
};
|
|
1147
1138
|
}
|
|
1148
|
-
const mr = $o, hr = Bo, gr = ko, wr =
|
|
1139
|
+
const mr = $o, hr = Bo, gr = ko, wr = Go, vr = Lo, St = Io, xr = Wo, yr = (e, t, n) => {
|
|
1149
1140
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1150
1141
|
platform: dr,
|
|
1151
1142
|
...n
|
|
@@ -1159,7 +1150,7 @@ const mr = $o, hr = Bo, gr = ko, wr = zo, vr = Lo, St = Io, xr = Wo, yr = (e, t,
|
|
|
1159
1150
|
});
|
|
1160
1151
|
};
|
|
1161
1152
|
var br = typeof document < "u", Mr = function() {
|
|
1162
|
-
}, De = br ?
|
|
1153
|
+
}, De = br ? to : Mr;
|
|
1163
1154
|
function Ie(e, t) {
|
|
1164
1155
|
if (e === t)
|
|
1165
1156
|
return !0;
|
|
@@ -1190,11 +1181,11 @@ function Ie(e, t) {
|
|
|
1190
1181
|
}
|
|
1191
1182
|
return e !== e && t !== t;
|
|
1192
1183
|
}
|
|
1193
|
-
function
|
|
1184
|
+
function Kt(e) {
|
|
1194
1185
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1195
1186
|
}
|
|
1196
1187
|
function At(e, t) {
|
|
1197
|
-
const n =
|
|
1188
|
+
const n = Kt(e);
|
|
1198
1189
|
return Math.round(t * n) / n;
|
|
1199
1190
|
}
|
|
1200
1191
|
function Ue(e) {
|
|
@@ -1227,18 +1218,18 @@ function Cr(e) {
|
|
|
1227
1218
|
}), [m, h] = p.useState(o);
|
|
1228
1219
|
Ie(m, o) || h(o);
|
|
1229
1220
|
const [g, w] = p.useState(null), [y, x] = p.useState(null), C = p.useCallback((M) => {
|
|
1230
|
-
M !==
|
|
1221
|
+
M !== P.current && (P.current = M, w(M));
|
|
1231
1222
|
}, []), S = p.useCallback((M) => {
|
|
1232
1223
|
M !== A.current && (A.current = M, x(M));
|
|
1233
|
-
}, []), b = i || g, R = a || y,
|
|
1234
|
-
if (!
|
|
1224
|
+
}, []), b = i || g, R = a || y, P = p.useRef(null), A = p.useRef(null), I = p.useRef(l), k = u != null, E = Ue(u), $ = Ue(r), L = Ue(d), O = p.useCallback(() => {
|
|
1225
|
+
if (!P.current || !A.current)
|
|
1235
1226
|
return;
|
|
1236
1227
|
const M = {
|
|
1237
1228
|
placement: t,
|
|
1238
1229
|
strategy: n,
|
|
1239
1230
|
middleware: m
|
|
1240
1231
|
};
|
|
1241
|
-
$.current && (M.platform = $.current), yr(
|
|
1232
|
+
$.current && (M.platform = $.current), yr(P.current, A.current, M).then((v) => {
|
|
1242
1233
|
const B = {
|
|
1243
1234
|
...v,
|
|
1244
1235
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -1247,7 +1238,7 @@ function Cr(e) {
|
|
|
1247
1238
|
// setting it to `true` when `open === false` (must be specified).
|
|
1248
1239
|
isPositioned: L.current !== !1
|
|
1249
1240
|
};
|
|
1250
|
-
|
|
1241
|
+
_.current && !Ie(I.current, B) && (I.current = B, ho.flushSync(() => {
|
|
1251
1242
|
c(B);
|
|
1252
1243
|
}));
|
|
1253
1244
|
});
|
|
@@ -1258,18 +1249,18 @@ function Cr(e) {
|
|
|
1258
1249
|
isPositioned: !1
|
|
1259
1250
|
})));
|
|
1260
1251
|
}, [d]);
|
|
1261
|
-
const
|
|
1262
|
-
De(() => (
|
|
1263
|
-
|
|
1252
|
+
const _ = p.useRef(!1);
|
|
1253
|
+
De(() => (_.current = !0, () => {
|
|
1254
|
+
_.current = !1;
|
|
1264
1255
|
}), []), De(() => {
|
|
1265
|
-
if (b && (
|
|
1266
|
-
if (
|
|
1267
|
-
return
|
|
1268
|
-
|
|
1256
|
+
if (b && (P.current = b), R && (A.current = R), b && R) {
|
|
1257
|
+
if (E.current)
|
|
1258
|
+
return E.current(b, R, O);
|
|
1259
|
+
O();
|
|
1269
1260
|
}
|
|
1270
|
-
}, [b, R,
|
|
1271
|
-
const
|
|
1272
|
-
reference:
|
|
1261
|
+
}, [b, R, O, E, k]);
|
|
1262
|
+
const G = p.useMemo(() => ({
|
|
1263
|
+
reference: P,
|
|
1273
1264
|
floating: A,
|
|
1274
1265
|
setReference: C,
|
|
1275
1266
|
setFloating: S
|
|
@@ -1288,7 +1279,7 @@ function Cr(e) {
|
|
|
1288
1279
|
return s ? {
|
|
1289
1280
|
...M,
|
|
1290
1281
|
transform: "translate(" + v + "px, " + B + "px)",
|
|
1291
|
-
...
|
|
1282
|
+
...Kt(N.floating) >= 1.5 && {
|
|
1292
1283
|
willChange: "transform"
|
|
1293
1284
|
}
|
|
1294
1285
|
} : {
|
|
@@ -1299,11 +1290,11 @@ function Cr(e) {
|
|
|
1299
1290
|
}, [n, s, N.floating, l.x, l.y]);
|
|
1300
1291
|
return p.useMemo(() => ({
|
|
1301
1292
|
...l,
|
|
1302
|
-
update:
|
|
1303
|
-
refs:
|
|
1293
|
+
update: O,
|
|
1294
|
+
refs: G,
|
|
1304
1295
|
elements: N,
|
|
1305
1296
|
floatingStyles: T
|
|
1306
|
-
}), [l,
|
|
1297
|
+
}), [l, O, G, N, T]);
|
|
1307
1298
|
}
|
|
1308
1299
|
const Rr = (e) => {
|
|
1309
1300
|
function t(n) {
|
|
@@ -1332,23 +1323,23 @@ const Rr = (e) => {
|
|
|
1332
1323
|
}), Ar = (e, t) => ({
|
|
1333
1324
|
...hr(e),
|
|
1334
1325
|
options: [e, t]
|
|
1335
|
-
}),
|
|
1326
|
+
}), Pr = (e, t) => ({
|
|
1336
1327
|
...xr(e),
|
|
1337
1328
|
options: [e, t]
|
|
1338
|
-
}),
|
|
1329
|
+
}), _r = (e, t) => ({
|
|
1339
1330
|
...gr(e),
|
|
1340
1331
|
options: [e, t]
|
|
1341
1332
|
}), Dr = (e, t) => ({
|
|
1342
1333
|
...wr(e),
|
|
1343
1334
|
options: [e, t]
|
|
1344
|
-
}),
|
|
1335
|
+
}), Er = (e, t) => ({
|
|
1345
1336
|
...vr(e),
|
|
1346
1337
|
options: [e, t]
|
|
1347
|
-
}),
|
|
1338
|
+
}), Or = (e, t) => ({
|
|
1348
1339
|
...Rr(e),
|
|
1349
1340
|
options: [e, t]
|
|
1350
1341
|
});
|
|
1351
|
-
var Nr = "Arrow",
|
|
1342
|
+
var Nr = "Arrow", Vt = p.forwardRef((e, t) => {
|
|
1352
1343
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
1353
1344
|
return /* @__PURE__ */ f(
|
|
1354
1345
|
te.svg,
|
|
@@ -1363,46 +1354,23 @@ var Nr = "Arrow", Ut = p.forwardRef((e, t) => {
|
|
|
1363
1354
|
}
|
|
1364
1355
|
);
|
|
1365
1356
|
});
|
|
1366
|
-
|
|
1367
|
-
var Tr = Ut
|
|
1368
|
-
function Ir(e) {
|
|
1369
|
-
const [t, n] = p.useState(void 0);
|
|
1370
|
-
return Xe(() => {
|
|
1371
|
-
if (e) {
|
|
1372
|
-
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
1373
|
-
const o = new ResizeObserver((r) => {
|
|
1374
|
-
if (!Array.isArray(r) || !r.length)
|
|
1375
|
-
return;
|
|
1376
|
-
const i = r[0];
|
|
1377
|
-
let a, s;
|
|
1378
|
-
if ("borderBoxSize" in i) {
|
|
1379
|
-
const u = i.borderBoxSize, d = Array.isArray(u) ? u[0] : u;
|
|
1380
|
-
a = d.inlineSize, s = d.blockSize;
|
|
1381
|
-
} else
|
|
1382
|
-
a = e.offsetWidth, s = e.offsetHeight;
|
|
1383
|
-
n({ width: a, height: s });
|
|
1384
|
-
});
|
|
1385
|
-
return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
|
|
1386
|
-
} else
|
|
1387
|
-
n(void 0);
|
|
1388
|
-
}, [e]), t;
|
|
1389
|
-
}
|
|
1390
|
-
var at = "Popper", [Xt, Yt] = Qe(at), [kr, qt] = Xt(at), Zt = (e) => {
|
|
1357
|
+
Vt.displayName = Nr;
|
|
1358
|
+
var Tr = Vt, it = "Popper", [zt, jt] = Je(it), [Ir, Ut] = zt(it), Xt = (e) => {
|
|
1391
1359
|
const { __scopePopper: t, children: n } = e, [o, r] = p.useState(null);
|
|
1392
|
-
return /* @__PURE__ */ f(
|
|
1360
|
+
return /* @__PURE__ */ f(Ir, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
1393
1361
|
};
|
|
1394
|
-
|
|
1395
|
-
var
|
|
1362
|
+
Xt.displayName = it;
|
|
1363
|
+
var Yt = "PopperAnchor", qt = p.forwardRef(
|
|
1396
1364
|
(e, t) => {
|
|
1397
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, i =
|
|
1365
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, i = Ut(Yt, n), a = p.useRef(null), s = ce(t, a), u = p.useRef(null);
|
|
1398
1366
|
return p.useEffect(() => {
|
|
1399
1367
|
const d = u.current;
|
|
1400
1368
|
u.current = o?.current || a.current, d !== u.current && i.onAnchorChange(u.current);
|
|
1401
1369
|
}), o ? null : /* @__PURE__ */ f(te.div, { ...r, ref: s });
|
|
1402
1370
|
}
|
|
1403
1371
|
);
|
|
1404
|
-
|
|
1405
|
-
var
|
|
1372
|
+
qt.displayName = Yt;
|
|
1373
|
+
var at = "PopperContent", [kr, Lr] = zt(at), Zt = p.forwardRef(
|
|
1406
1374
|
(e, t) => {
|
|
1407
1375
|
const {
|
|
1408
1376
|
__scopePopper: n,
|
|
@@ -1419,12 +1387,12 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
|
|
|
1419
1387
|
updatePositionStrategy: h = "optimized",
|
|
1420
1388
|
onPlaced: g,
|
|
1421
1389
|
...w
|
|
1422
|
-
} = e, y =
|
|
1423
|
-
padding:
|
|
1424
|
-
boundary: $.filter(
|
|
1390
|
+
} = e, y = Ut(at, n), [x, C] = p.useState(null), S = ce(t, (F) => C(F)), [b, R] = p.useState(null), P = go(b), A = P?.width ?? 0, I = P?.height ?? 0, k = o + (i !== "center" ? "-" + i : ""), E = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, $ = Array.isArray(d) ? d : [d], L = $.length > 0, O = {
|
|
1391
|
+
padding: E,
|
|
1392
|
+
boundary: $.filter($r),
|
|
1425
1393
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1426
1394
|
altBoundary: L
|
|
1427
|
-
}, { refs:
|
|
1395
|
+
}, { refs: _, floatingStyles: G, placement: N, isPositioned: T, middlewareData: M } = Cr({
|
|
1428
1396
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1429
1397
|
strategy: "fixed",
|
|
1430
1398
|
placement: k,
|
|
@@ -1439,36 +1407,36 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
|
|
|
1439
1407
|
u && Ar({
|
|
1440
1408
|
mainAxis: !0,
|
|
1441
1409
|
crossAxis: !1,
|
|
1442
|
-
limiter: c === "partial" ?
|
|
1443
|
-
...
|
|
1410
|
+
limiter: c === "partial" ? Pr() : void 0,
|
|
1411
|
+
...O
|
|
1444
1412
|
}),
|
|
1445
|
-
u &&
|
|
1413
|
+
u && _r({ ...O }),
|
|
1446
1414
|
Dr({
|
|
1447
|
-
...
|
|
1448
|
-
apply: ({ elements: F, rects: ge, availableWidth:
|
|
1449
|
-
const { width:
|
|
1450
|
-
|
|
1415
|
+
...O,
|
|
1416
|
+
apply: ({ elements: F, rects: ge, availableWidth: zn, availableHeight: jn }) => {
|
|
1417
|
+
const { width: Un, height: Xn } = ge.reference, Pe = F.floating.style;
|
|
1418
|
+
Pe.setProperty("--radix-popper-available-width", `${zn}px`), Pe.setProperty("--radix-popper-available-height", `${jn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Un}px`), Pe.setProperty("--radix-popper-anchor-height", `${Xn}px`);
|
|
1451
1419
|
}
|
|
1452
1420
|
}),
|
|
1453
|
-
b &&
|
|
1454
|
-
|
|
1455
|
-
m &&
|
|
1421
|
+
b && Or({ element: b, padding: s }),
|
|
1422
|
+
Br({ arrowWidth: A, arrowHeight: I }),
|
|
1423
|
+
m && Er({ strategy: "referenceHidden", ...O })
|
|
1456
1424
|
]
|
|
1457
|
-
}), [v, B] =
|
|
1458
|
-
|
|
1425
|
+
}), [v, B] = en(N), X = Be(g);
|
|
1426
|
+
ht(() => {
|
|
1459
1427
|
T && X?.();
|
|
1460
1428
|
}, [T, X]);
|
|
1461
1429
|
const ie = M.arrow?.x, me = M.arrow?.y, he = M.arrow?.centerOffset !== 0, [Ae, ae] = p.useState();
|
|
1462
|
-
return
|
|
1430
|
+
return ht(() => {
|
|
1463
1431
|
x && ae(window.getComputedStyle(x).zIndex);
|
|
1464
1432
|
}, [x]), /* @__PURE__ */ f(
|
|
1465
1433
|
"div",
|
|
1466
1434
|
{
|
|
1467
|
-
ref:
|
|
1435
|
+
ref: _.setFloating,
|
|
1468
1436
|
"data-radix-popper-content-wrapper": "",
|
|
1469
1437
|
style: {
|
|
1470
|
-
...
|
|
1471
|
-
transform: T ?
|
|
1438
|
+
...G,
|
|
1439
|
+
transform: T ? G.transform : "translate(0, -200%)",
|
|
1472
1440
|
// keep off the page when measuring
|
|
1473
1441
|
minWidth: "max-content",
|
|
1474
1442
|
zIndex: Ae,
|
|
@@ -1486,7 +1454,7 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
|
|
|
1486
1454
|
},
|
|
1487
1455
|
dir: e.dir,
|
|
1488
1456
|
children: /* @__PURE__ */ f(
|
|
1489
|
-
|
|
1457
|
+
kr,
|
|
1490
1458
|
{
|
|
1491
1459
|
scope: n,
|
|
1492
1460
|
placedSide: v,
|
|
@@ -1515,14 +1483,14 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
|
|
|
1515
1483
|
);
|
|
1516
1484
|
}
|
|
1517
1485
|
);
|
|
1518
|
-
|
|
1519
|
-
var
|
|
1486
|
+
Zt.displayName = at;
|
|
1487
|
+
var Jt = "PopperArrow", Fr = {
|
|
1520
1488
|
top: "bottom",
|
|
1521
1489
|
right: "left",
|
|
1522
1490
|
bottom: "top",
|
|
1523
1491
|
left: "right"
|
|
1524
|
-
},
|
|
1525
|
-
const { __scopePopper: o, ...r } = t, i =
|
|
1492
|
+
}, Qt = p.forwardRef(function(t, n) {
|
|
1493
|
+
const { __scopePopper: o, ...r } = t, i = Lr(Jt, o), a = Fr[i.placedSide];
|
|
1526
1494
|
return (
|
|
1527
1495
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1528
1496
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -1566,35 +1534,35 @@ var tn = "PopperArrow", $r = {
|
|
|
1566
1534
|
)
|
|
1567
1535
|
);
|
|
1568
1536
|
});
|
|
1569
|
-
|
|
1570
|
-
function
|
|
1537
|
+
Qt.displayName = Jt;
|
|
1538
|
+
function $r(e) {
|
|
1571
1539
|
return e !== null;
|
|
1572
1540
|
}
|
|
1573
|
-
var
|
|
1541
|
+
var Br = (e) => ({
|
|
1574
1542
|
name: "transformOrigin",
|
|
1575
1543
|
options: e,
|
|
1576
1544
|
fn(t) {
|
|
1577
|
-
const { placement: n, rects: o, middlewareData: r } = t, a = r.arrow?.centerOffset !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [d, l] =
|
|
1545
|
+
const { placement: n, rects: o, middlewareData: r } = t, a = r.arrow?.centerOffset !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [d, l] = en(n), c = { start: "0%", center: "50%", end: "100%" }[l], m = (r.arrow?.x ?? 0) + s / 2, h = (r.arrow?.y ?? 0) + u / 2;
|
|
1578
1546
|
let g = "", w = "";
|
|
1579
1547
|
return d === "bottom" ? (g = a ? c : `${m}px`, w = `${-u}px`) : d === "top" ? (g = a ? c : `${m}px`, w = `${o.floating.height + u}px`) : d === "right" ? (g = `${-u}px`, w = a ? c : `${h}px`) : d === "left" && (g = `${o.floating.width + u}px`, w = a ? c : `${h}px`), { data: { x: g, y: w } };
|
|
1580
1548
|
}
|
|
1581
1549
|
});
|
|
1582
|
-
function
|
|
1550
|
+
function en(e) {
|
|
1583
1551
|
const [t, n = "center"] = e.split("-");
|
|
1584
1552
|
return [t, n];
|
|
1585
1553
|
}
|
|
1586
|
-
var
|
|
1587
|
-
ltr: [...
|
|
1588
|
-
rtl: [...
|
|
1589
|
-
},
|
|
1554
|
+
var tn = Xt, Wr = qt, Gr = Zt, Hr = Qt, Ze = ["Enter", " "], Kr = ["ArrowDown", "PageUp", "Home"], nn = ["ArrowUp", "PageDown", "End"], Vr = [...Kr, ...nn], zr = {
|
|
1555
|
+
ltr: [...Ze, "ArrowRight"],
|
|
1556
|
+
rtl: [...Ze, "ArrowLeft"]
|
|
1557
|
+
}, jr = {
|
|
1590
1558
|
ltr: ["ArrowLeft"],
|
|
1591
1559
|
rtl: ["ArrowRight"]
|
|
1592
|
-
}, Ce = "Menu", [ye,
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
]), Re =
|
|
1597
|
-
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = Re(t), [u, d] = p.useState(null), l = p.useRef(!1), c = Be(i), m =
|
|
1560
|
+
}, Ce = "Menu", [ye, Ur, Xr] = so(Ce), [le, on] = Je(Ce, [
|
|
1561
|
+
Xr,
|
|
1562
|
+
jt,
|
|
1563
|
+
Et
|
|
1564
|
+
]), Re = jt(), rn = Et(), [an, re] = le(Ce), [Yr, Se] = le(Ce), sn = (e) => {
|
|
1565
|
+
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = Re(t), [u, d] = p.useState(null), l = p.useRef(!1), c = Be(i), m = co(r);
|
|
1598
1566
|
return p.useEffect(() => {
|
|
1599
1567
|
const h = () => {
|
|
1600
1568
|
l.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
|
|
@@ -1602,8 +1570,8 @@ var rn = Zt, zr = Qt, Gr = en, Hr = nn, Je = ["Enter", " "], Kr = ["ArrowDown",
|
|
|
1602
1570
|
return document.addEventListener("keydown", h, { capture: !0 }), () => {
|
|
1603
1571
|
document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
|
|
1604
1572
|
};
|
|
1605
|
-
}, []), /* @__PURE__ */ f(
|
|
1606
|
-
|
|
1573
|
+
}, []), /* @__PURE__ */ f(tn, { ...s, children: /* @__PURE__ */ f(
|
|
1574
|
+
an,
|
|
1607
1575
|
{
|
|
1608
1576
|
scope: t,
|
|
1609
1577
|
open: n,
|
|
@@ -1611,7 +1579,7 @@ var rn = Zt, zr = Qt, Gr = en, Hr = nn, Je = ["Enter", " "], Kr = ["ArrowDown",
|
|
|
1611
1579
|
content: u,
|
|
1612
1580
|
onContentChange: d,
|
|
1613
1581
|
children: /* @__PURE__ */ f(
|
|
1614
|
-
|
|
1582
|
+
Yr,
|
|
1615
1583
|
{
|
|
1616
1584
|
scope: t,
|
|
1617
1585
|
onClose: p.useCallback(() => c(!1), [c]),
|
|
@@ -1624,34 +1592,34 @@ var rn = Zt, zr = Qt, Gr = en, Hr = nn, Je = ["Enter", " "], Kr = ["ArrowDown",
|
|
|
1624
1592
|
}
|
|
1625
1593
|
) });
|
|
1626
1594
|
};
|
|
1627
|
-
|
|
1628
|
-
var
|
|
1595
|
+
sn.displayName = Ce;
|
|
1596
|
+
var qr = "MenuAnchor", st = p.forwardRef(
|
|
1629
1597
|
(e, t) => {
|
|
1630
1598
|
const { __scopeMenu: n, ...o } = e, r = Re(n);
|
|
1631
|
-
return /* @__PURE__ */ f(
|
|
1599
|
+
return /* @__PURE__ */ f(Wr, { ...r, ...o, ref: t });
|
|
1632
1600
|
}
|
|
1633
1601
|
);
|
|
1634
|
-
|
|
1635
|
-
var
|
|
1602
|
+
st.displayName = qr;
|
|
1603
|
+
var ct = "MenuPortal", [Zr, cn] = le(ct, {
|
|
1636
1604
|
forceMount: void 0
|
|
1637
|
-
}),
|
|
1638
|
-
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = re(
|
|
1639
|
-
return /* @__PURE__ */ f(
|
|
1605
|
+
}), ln = (e) => {
|
|
1606
|
+
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = re(ct, t);
|
|
1607
|
+
return /* @__PURE__ */ f(Zr, { scope: t, forceMount: n, children: /* @__PURE__ */ f($e, { present: n || i.open, children: /* @__PURE__ */ f(wo, { asChild: !0, container: r, children: o }) }) });
|
|
1640
1608
|
};
|
|
1641
|
-
|
|
1642
|
-
var
|
|
1609
|
+
ln.displayName = ct;
|
|
1610
|
+
var V = "MenuContent", [Jr, lt] = le(V), un = p.forwardRef(
|
|
1643
1611
|
(e, t) => {
|
|
1644
|
-
const n =
|
|
1645
|
-
return /* @__PURE__ */ f(ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f($e, { present: o || i.open, children: /* @__PURE__ */ f(ye.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ f(
|
|
1612
|
+
const n = cn(V, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = re(V, e.__scopeMenu), a = Se(V, e.__scopeMenu);
|
|
1613
|
+
return /* @__PURE__ */ f(ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f($e, { present: o || i.open, children: /* @__PURE__ */ f(ye.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ f(Qr, { ...r, ref: t }) : /* @__PURE__ */ f(ei, { ...r, ref: t }) }) }) });
|
|
1646
1614
|
}
|
|
1647
|
-
),
|
|
1615
|
+
), Qr = p.forwardRef(
|
|
1648
1616
|
(e, t) => {
|
|
1649
|
-
const n = re(
|
|
1617
|
+
const n = re(V, e.__scopeMenu), o = p.useRef(null), r = ce(t, o);
|
|
1650
1618
|
return p.useEffect(() => {
|
|
1651
1619
|
const i = o.current;
|
|
1652
|
-
if (i) return
|
|
1620
|
+
if (i) return lo(i);
|
|
1653
1621
|
}, []), /* @__PURE__ */ f(
|
|
1654
|
-
|
|
1622
|
+
ut,
|
|
1655
1623
|
{
|
|
1656
1624
|
...e,
|
|
1657
1625
|
ref: r,
|
|
@@ -1667,10 +1635,10 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1667
1635
|
}
|
|
1668
1636
|
);
|
|
1669
1637
|
}
|
|
1670
|
-
),
|
|
1671
|
-
const n = re(
|
|
1638
|
+
), ei = p.forwardRef((e, t) => {
|
|
1639
|
+
const n = re(V, e.__scopeMenu);
|
|
1672
1640
|
return /* @__PURE__ */ f(
|
|
1673
|
-
|
|
1641
|
+
ut,
|
|
1674
1642
|
{
|
|
1675
1643
|
...e,
|
|
1676
1644
|
ref: t,
|
|
@@ -1680,7 +1648,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1680
1648
|
onDismiss: () => n.onOpenChange(!1)
|
|
1681
1649
|
}
|
|
1682
1650
|
);
|
|
1683
|
-
}),
|
|
1651
|
+
}), ti = ao("MenuContent.ScrollLock"), ut = p.forwardRef(
|
|
1684
1652
|
(e, t) => {
|
|
1685
1653
|
const {
|
|
1686
1654
|
__scopeMenu: n,
|
|
@@ -1697,19 +1665,19 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1697
1665
|
onDismiss: h,
|
|
1698
1666
|
disableOutsideScroll: g,
|
|
1699
1667
|
...w
|
|
1700
|
-
} = e, y = re(
|
|
1701
|
-
const B =
|
|
1668
|
+
} = e, y = re(V, n), x = Se(V, n), C = Re(n), S = rn(n), b = Ur(n), [R, P] = p.useState(null), A = p.useRef(null), I = ce(t, A, y.onContentChange), k = p.useRef(0), E = p.useRef(""), $ = p.useRef(0), L = p.useRef(null), O = p.useRef("right"), _ = p.useRef(0), G = g ? fo : p.Fragment, N = g ? { as: ti, allowPinchZoom: !0 } : void 0, T = (v) => {
|
|
1669
|
+
const B = E.current + v, X = b().filter((F) => !F.disabled), ie = document.activeElement, me = X.find((F) => F.ref.current === ie)?.textValue, he = X.map((F) => F.textValue), Ae = pi(he, B, me), ae = X.find((F) => F.textValue === Ae)?.ref.current;
|
|
1702
1670
|
(function F(ge) {
|
|
1703
|
-
|
|
1671
|
+
E.current = ge, window.clearTimeout(k.current), ge !== "" && (k.current = window.setTimeout(() => F(""), 1e3));
|
|
1704
1672
|
})(B), ae && setTimeout(() => ae.focus());
|
|
1705
1673
|
};
|
|
1706
|
-
p.useEffect(() => () => window.clearTimeout(k.current), []),
|
|
1707
|
-
const M = p.useCallback((v) =>
|
|
1674
|
+
p.useEffect(() => () => window.clearTimeout(k.current), []), uo();
|
|
1675
|
+
const M = p.useCallback((v) => O.current === L.current?.side && hi(v, L.current?.area), []);
|
|
1708
1676
|
return /* @__PURE__ */ f(
|
|
1709
|
-
|
|
1677
|
+
Jr,
|
|
1710
1678
|
{
|
|
1711
1679
|
scope: n,
|
|
1712
|
-
searchRef:
|
|
1680
|
+
searchRef: E,
|
|
1713
1681
|
onItemEnter: p.useCallback(
|
|
1714
1682
|
(v) => {
|
|
1715
1683
|
M(v) && v.preventDefault();
|
|
@@ -1718,7 +1686,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1718
1686
|
),
|
|
1719
1687
|
onItemLeave: p.useCallback(
|
|
1720
1688
|
(v) => {
|
|
1721
|
-
M(v) || (A.current?.focus(),
|
|
1689
|
+
M(v) || (A.current?.focus(), P(null));
|
|
1722
1690
|
},
|
|
1723
1691
|
[M]
|
|
1724
1692
|
),
|
|
@@ -1732,8 +1700,8 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1732
1700
|
onPointerGraceIntentChange: p.useCallback((v) => {
|
|
1733
1701
|
L.current = v;
|
|
1734
1702
|
}, []),
|
|
1735
|
-
children: /* @__PURE__ */ f(
|
|
1736
|
-
|
|
1703
|
+
children: /* @__PURE__ */ f(G, { ...N, children: /* @__PURE__ */ f(
|
|
1704
|
+
po,
|
|
1737
1705
|
{
|
|
1738
1706
|
asChild: !0,
|
|
1739
1707
|
trapped: r,
|
|
@@ -1742,7 +1710,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1742
1710
|
}),
|
|
1743
1711
|
onUnmountAutoFocus: a,
|
|
1744
1712
|
children: /* @__PURE__ */ f(
|
|
1745
|
-
|
|
1713
|
+
mo,
|
|
1746
1714
|
{
|
|
1747
1715
|
asChild: !0,
|
|
1748
1716
|
disableOutsidePointerEvents: s,
|
|
@@ -1752,7 +1720,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1752
1720
|
onInteractOutside: m,
|
|
1753
1721
|
onDismiss: h,
|
|
1754
1722
|
children: /* @__PURE__ */ f(
|
|
1755
|
-
|
|
1723
|
+
xo,
|
|
1756
1724
|
{
|
|
1757
1725
|
asChild: !0,
|
|
1758
1726
|
...S,
|
|
@@ -1760,7 +1728,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1760
1728
|
orientation: "vertical",
|
|
1761
1729
|
loop: o,
|
|
1762
1730
|
currentTabStopId: R,
|
|
1763
|
-
onCurrentTabStopIdChange:
|
|
1731
|
+
onCurrentTabStopIdChange: P,
|
|
1764
1732
|
onEntryFocus: D(u, (v) => {
|
|
1765
1733
|
x.isUsingKeyboardRef.current || v.preventDefault();
|
|
1766
1734
|
}),
|
|
@@ -1770,7 +1738,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1770
1738
|
{
|
|
1771
1739
|
role: "menu",
|
|
1772
1740
|
"aria-orientation": "vertical",
|
|
1773
|
-
"data-state":
|
|
1741
|
+
"data-state": Pn(y.open),
|
|
1774
1742
|
"data-radix-menu-content": "",
|
|
1775
1743
|
dir: x.dir,
|
|
1776
1744
|
...C,
|
|
@@ -1784,18 +1752,18 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1784
1752
|
if (v.target !== he || !Vr.includes(v.key)) return;
|
|
1785
1753
|
v.preventDefault();
|
|
1786
1754
|
const ae = b().filter((F) => !F.disabled).map((F) => F.ref.current);
|
|
1787
|
-
|
|
1755
|
+
nn.includes(v.key) && ae.reverse(), di(ae);
|
|
1788
1756
|
}),
|
|
1789
1757
|
onBlur: D(e.onBlur, (v) => {
|
|
1790
|
-
v.currentTarget.contains(v.target) || (window.clearTimeout(k.current),
|
|
1758
|
+
v.currentTarget.contains(v.target) || (window.clearTimeout(k.current), E.current = "");
|
|
1791
1759
|
}),
|
|
1792
1760
|
onPointerMove: D(
|
|
1793
1761
|
e.onPointerMove,
|
|
1794
1762
|
be((v) => {
|
|
1795
|
-
const B = v.target, X =
|
|
1763
|
+
const B = v.target, X = _.current !== v.clientX;
|
|
1796
1764
|
if (v.currentTarget.contains(B) && X) {
|
|
1797
|
-
const ie = v.clientX >
|
|
1798
|
-
|
|
1765
|
+
const ie = v.clientX > _.current ? "right" : "left";
|
|
1766
|
+
O.current = ie, _.current = v.clientX;
|
|
1799
1767
|
}
|
|
1800
1768
|
})
|
|
1801
1769
|
)
|
|
@@ -1811,32 +1779,32 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
|
|
|
1811
1779
|
);
|
|
1812
1780
|
}
|
|
1813
1781
|
);
|
|
1814
|
-
|
|
1815
|
-
var
|
|
1782
|
+
un.displayName = V;
|
|
1783
|
+
var ni = "MenuGroup", dt = p.forwardRef(
|
|
1816
1784
|
(e, t) => {
|
|
1817
1785
|
const { __scopeMenu: n, ...o } = e;
|
|
1818
1786
|
return /* @__PURE__ */ f(te.div, { role: "group", ...o, ref: t });
|
|
1819
1787
|
}
|
|
1820
1788
|
);
|
|
1821
|
-
|
|
1822
|
-
var
|
|
1789
|
+
dt.displayName = ni;
|
|
1790
|
+
var oi = "MenuLabel", dn = p.forwardRef(
|
|
1823
1791
|
(e, t) => {
|
|
1824
1792
|
const { __scopeMenu: n, ...o } = e;
|
|
1825
1793
|
return /* @__PURE__ */ f(te.div, { ...o, ref: t });
|
|
1826
1794
|
}
|
|
1827
1795
|
);
|
|
1828
|
-
|
|
1829
|
-
var ke = "MenuItem",
|
|
1796
|
+
dn.displayName = oi;
|
|
1797
|
+
var ke = "MenuItem", Pt = "menu.itemSelect", Ve = p.forwardRef(
|
|
1830
1798
|
(e, t) => {
|
|
1831
|
-
const { disabled: n = !1, onSelect: o, ...r } = e, i = p.useRef(null), a = Se(ke, e.__scopeMenu), s =
|
|
1799
|
+
const { disabled: n = !1, onSelect: o, ...r } = e, i = p.useRef(null), a = Se(ke, e.__scopeMenu), s = lt(ke, e.__scopeMenu), u = ce(t, i), d = p.useRef(!1), l = () => {
|
|
1832
1800
|
const c = i.current;
|
|
1833
1801
|
if (!n && c) {
|
|
1834
|
-
const m = new CustomEvent(
|
|
1835
|
-
c.addEventListener(
|
|
1802
|
+
const m = new CustomEvent(Pt, { bubbles: !0, cancelable: !0 });
|
|
1803
|
+
c.addEventListener(Pt, (h) => o?.(h), { once: !0 }), io(c, m), m.defaultPrevented ? d.current = !1 : a.onClose();
|
|
1836
1804
|
}
|
|
1837
1805
|
};
|
|
1838
1806
|
return /* @__PURE__ */ f(
|
|
1839
|
-
|
|
1807
|
+
fn,
|
|
1840
1808
|
{
|
|
1841
1809
|
...r,
|
|
1842
1810
|
ref: u,
|
|
@@ -1850,16 +1818,16 @@ var ke = "MenuItem", _t = "menu.itemSelect", Ke = p.forwardRef(
|
|
|
1850
1818
|
}),
|
|
1851
1819
|
onKeyDown: D(e.onKeyDown, (c) => {
|
|
1852
1820
|
const m = s.searchRef.current !== "";
|
|
1853
|
-
n || m && c.key === " " ||
|
|
1821
|
+
n || m && c.key === " " || Ze.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
|
|
1854
1822
|
})
|
|
1855
1823
|
}
|
|
1856
1824
|
);
|
|
1857
1825
|
}
|
|
1858
1826
|
);
|
|
1859
|
-
|
|
1860
|
-
var
|
|
1827
|
+
Ve.displayName = ke;
|
|
1828
|
+
var fn = p.forwardRef(
|
|
1861
1829
|
(e, t) => {
|
|
1862
|
-
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a =
|
|
1830
|
+
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = lt(ke, n), s = rn(n), u = p.useRef(null), d = ce(t, u), [l, c] = p.useState(!1), [m, h] = p.useState("");
|
|
1863
1831
|
return p.useEffect(() => {
|
|
1864
1832
|
const g = u.current;
|
|
1865
1833
|
g && h((g.textContent ?? "").trim());
|
|
@@ -1869,7 +1837,7 @@ var hn = p.forwardRef(
|
|
|
1869
1837
|
scope: n,
|
|
1870
1838
|
disabled: o,
|
|
1871
1839
|
textValue: r ?? m,
|
|
1872
|
-
children: /* @__PURE__ */ f(
|
|
1840
|
+
children: /* @__PURE__ */ f(vo, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ f(
|
|
1873
1841
|
te.div,
|
|
1874
1842
|
{
|
|
1875
1843
|
role: "menuitem",
|
|
@@ -1895,17 +1863,17 @@ var hn = p.forwardRef(
|
|
|
1895
1863
|
}
|
|
1896
1864
|
);
|
|
1897
1865
|
}
|
|
1898
|
-
),
|
|
1866
|
+
), ri = "MenuCheckboxItem", pn = p.forwardRef(
|
|
1899
1867
|
(e, t) => {
|
|
1900
1868
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
1901
|
-
return /* @__PURE__ */ f(
|
|
1902
|
-
|
|
1869
|
+
return /* @__PURE__ */ f(vn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ f(
|
|
1870
|
+
Ve,
|
|
1903
1871
|
{
|
|
1904
1872
|
role: "menuitemcheckbox",
|
|
1905
1873
|
"aria-checked": Le(n) ? "mixed" : n,
|
|
1906
1874
|
...r,
|
|
1907
1875
|
ref: t,
|
|
1908
|
-
"data-state":
|
|
1876
|
+
"data-state": mt(n),
|
|
1909
1877
|
onSelect: D(
|
|
1910
1878
|
r.onSelect,
|
|
1911
1879
|
() => o?.(Le(n) ? !0 : !n),
|
|
@@ -1915,29 +1883,29 @@ var hn = p.forwardRef(
|
|
|
1915
1883
|
) });
|
|
1916
1884
|
}
|
|
1917
1885
|
);
|
|
1918
|
-
|
|
1919
|
-
var
|
|
1920
|
-
|
|
1886
|
+
pn.displayName = ri;
|
|
1887
|
+
var mn = "MenuRadioGroup", [ii, ai] = le(
|
|
1888
|
+
mn,
|
|
1921
1889
|
{ value: void 0, onValueChange: () => {
|
|
1922
1890
|
} }
|
|
1923
|
-
),
|
|
1891
|
+
), hn = p.forwardRef(
|
|
1924
1892
|
(e, t) => {
|
|
1925
1893
|
const { value: n, onValueChange: o, ...r } = e, i = Be(o);
|
|
1926
|
-
return /* @__PURE__ */ f(
|
|
1894
|
+
return /* @__PURE__ */ f(ii, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ f(dt, { ...r, ref: t }) });
|
|
1927
1895
|
}
|
|
1928
1896
|
);
|
|
1929
|
-
|
|
1930
|
-
var
|
|
1897
|
+
hn.displayName = mn;
|
|
1898
|
+
var gn = "MenuRadioItem", wn = p.forwardRef(
|
|
1931
1899
|
(e, t) => {
|
|
1932
|
-
const { value: n, ...o } = e, r =
|
|
1933
|
-
return /* @__PURE__ */ f(
|
|
1934
|
-
|
|
1900
|
+
const { value: n, ...o } = e, r = ai(gn, e.__scopeMenu), i = n === r.value;
|
|
1901
|
+
return /* @__PURE__ */ f(vn, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ f(
|
|
1902
|
+
Ve,
|
|
1935
1903
|
{
|
|
1936
1904
|
role: "menuitemradio",
|
|
1937
1905
|
"aria-checked": i,
|
|
1938
1906
|
...o,
|
|
1939
1907
|
ref: t,
|
|
1940
|
-
"data-state":
|
|
1908
|
+
"data-state": mt(i),
|
|
1941
1909
|
onSelect: D(
|
|
1942
1910
|
o.onSelect,
|
|
1943
1911
|
() => r.onValueChange?.(n),
|
|
@@ -1947,13 +1915,13 @@ var xn = "MenuRadioItem", yn = p.forwardRef(
|
|
|
1947
1915
|
) });
|
|
1948
1916
|
}
|
|
1949
1917
|
);
|
|
1950
|
-
|
|
1951
|
-
var
|
|
1952
|
-
|
|
1918
|
+
wn.displayName = gn;
|
|
1919
|
+
var ft = "MenuItemIndicator", [vn, si] = le(
|
|
1920
|
+
ft,
|
|
1953
1921
|
{ checked: !1 }
|
|
1954
|
-
),
|
|
1922
|
+
), xn = p.forwardRef(
|
|
1955
1923
|
(e, t) => {
|
|
1956
|
-
const { __scopeMenu: n, forceMount: o, ...r } = e, i =
|
|
1924
|
+
const { __scopeMenu: n, forceMount: o, ...r } = e, i = si(ft, n);
|
|
1957
1925
|
return /* @__PURE__ */ f(
|
|
1958
1926
|
$e,
|
|
1959
1927
|
{
|
|
@@ -1963,15 +1931,15 @@ var pt = "MenuItemIndicator", [bn, ci] = le(
|
|
|
1963
1931
|
{
|
|
1964
1932
|
...r,
|
|
1965
1933
|
ref: t,
|
|
1966
|
-
"data-state":
|
|
1934
|
+
"data-state": mt(i.checked)
|
|
1967
1935
|
}
|
|
1968
1936
|
)
|
|
1969
1937
|
}
|
|
1970
1938
|
);
|
|
1971
1939
|
}
|
|
1972
1940
|
);
|
|
1973
|
-
|
|
1974
|
-
var
|
|
1941
|
+
xn.displayName = ft;
|
|
1942
|
+
var ci = "MenuSeparator", yn = p.forwardRef(
|
|
1975
1943
|
(e, t) => {
|
|
1976
1944
|
const { __scopeMenu: n, ...o } = e;
|
|
1977
1945
|
return /* @__PURE__ */ f(
|
|
@@ -1985,18 +1953,18 @@ var li = "MenuSeparator", Cn = p.forwardRef(
|
|
|
1985
1953
|
);
|
|
1986
1954
|
}
|
|
1987
1955
|
);
|
|
1988
|
-
|
|
1989
|
-
var
|
|
1956
|
+
yn.displayName = ci;
|
|
1957
|
+
var li = "MenuArrow", bn = p.forwardRef(
|
|
1990
1958
|
(e, t) => {
|
|
1991
1959
|
const { __scopeMenu: n, ...o } = e, r = Re(n);
|
|
1992
1960
|
return /* @__PURE__ */ f(Hr, { ...r, ...o, ref: t });
|
|
1993
1961
|
}
|
|
1994
1962
|
);
|
|
1995
|
-
|
|
1996
|
-
var
|
|
1997
|
-
const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, i = re(
|
|
1998
|
-
return p.useEffect(() => (i.open === !1 && c(!1), () => c(!1)), [i.open, c]), /* @__PURE__ */ f(
|
|
1999
|
-
|
|
1963
|
+
bn.displayName = li;
|
|
1964
|
+
var pt = "MenuSub", [ui, Mn] = le(pt), Cn = (e) => {
|
|
1965
|
+
const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, i = re(pt, t), a = Re(t), [s, u] = p.useState(null), [d, l] = p.useState(null), c = Be(r);
|
|
1966
|
+
return p.useEffect(() => (i.open === !1 && c(!1), () => c(!1)), [i.open, c]), /* @__PURE__ */ f(tn, { ...a, children: /* @__PURE__ */ f(
|
|
1967
|
+
an,
|
|
2000
1968
|
{
|
|
2001
1969
|
scope: t,
|
|
2002
1970
|
open: o,
|
|
@@ -2004,11 +1972,11 @@ var mt = "MenuSub", [di, Sn] = le(mt), An = (e) => {
|
|
|
2004
1972
|
content: d,
|
|
2005
1973
|
onContentChange: l,
|
|
2006
1974
|
children: /* @__PURE__ */ f(
|
|
2007
|
-
|
|
1975
|
+
ui,
|
|
2008
1976
|
{
|
|
2009
1977
|
scope: t,
|
|
2010
|
-
contentId:
|
|
2011
|
-
triggerId:
|
|
1978
|
+
contentId: Ee(),
|
|
1979
|
+
triggerId: Ee(),
|
|
2012
1980
|
trigger: s,
|
|
2013
1981
|
onTriggerChange: u,
|
|
2014
1982
|
children: n
|
|
@@ -2017,10 +1985,10 @@ var mt = "MenuSub", [di, Sn] = le(mt), An = (e) => {
|
|
|
2017
1985
|
}
|
|
2018
1986
|
) });
|
|
2019
1987
|
};
|
|
2020
|
-
|
|
2021
|
-
var we = "MenuSubTrigger",
|
|
1988
|
+
Cn.displayName = pt;
|
|
1989
|
+
var we = "MenuSubTrigger", Rn = p.forwardRef(
|
|
2022
1990
|
(e, t) => {
|
|
2023
|
-
const n = re(we, e.__scopeMenu), o = Se(we, e.__scopeMenu), r =
|
|
1991
|
+
const n = re(we, e.__scopeMenu), o = Se(we, e.__scopeMenu), r = Mn(we, e.__scopeMenu), i = lt(we, e.__scopeMenu), a = p.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: u } = i, d = { __scopeMenu: e.__scopeMenu }, l = p.useCallback(() => {
|
|
2024
1992
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
2025
1993
|
}, []);
|
|
2026
1994
|
return p.useEffect(() => l, [l]), p.useEffect(() => {
|
|
@@ -2028,16 +1996,16 @@ var we = "MenuSubTrigger", _n = p.forwardRef(
|
|
|
2028
1996
|
return () => {
|
|
2029
1997
|
window.clearTimeout(c), u(null);
|
|
2030
1998
|
};
|
|
2031
|
-
}, [s, u]), /* @__PURE__ */ f(
|
|
2032
|
-
|
|
1999
|
+
}, [s, u]), /* @__PURE__ */ f(st, { asChild: !0, ...d, children: /* @__PURE__ */ f(
|
|
2000
|
+
fn,
|
|
2033
2001
|
{
|
|
2034
2002
|
id: r.triggerId,
|
|
2035
2003
|
"aria-haspopup": "menu",
|
|
2036
2004
|
"aria-expanded": n.open,
|
|
2037
2005
|
"aria-controls": r.contentId,
|
|
2038
|
-
"data-state":
|
|
2006
|
+
"data-state": Pn(n.open),
|
|
2039
2007
|
...e,
|
|
2040
|
-
ref:
|
|
2008
|
+
ref: _t(t, r.onTriggerChange),
|
|
2041
2009
|
onClick: (c) => {
|
|
2042
2010
|
e.onClick?.(c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
2043
2011
|
},
|
|
@@ -2079,18 +2047,18 @@ var we = "MenuSubTrigger", _n = p.forwardRef(
|
|
|
2079
2047
|
),
|
|
2080
2048
|
onKeyDown: D(e.onKeyDown, (c) => {
|
|
2081
2049
|
const m = i.searchRef.current !== "";
|
|
2082
|
-
e.disabled || m && c.key === " " ||
|
|
2050
|
+
e.disabled || m && c.key === " " || zr[o.dir].includes(c.key) && (n.onOpenChange(!0), n.content?.focus(), c.preventDefault());
|
|
2083
2051
|
})
|
|
2084
2052
|
}
|
|
2085
2053
|
) });
|
|
2086
2054
|
}
|
|
2087
2055
|
);
|
|
2088
|
-
|
|
2089
|
-
var
|
|
2056
|
+
Rn.displayName = we;
|
|
2057
|
+
var Sn = "MenuSubContent", An = p.forwardRef(
|
|
2090
2058
|
(e, t) => {
|
|
2091
|
-
const n =
|
|
2059
|
+
const n = cn(V, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = re(V, e.__scopeMenu), a = Se(V, e.__scopeMenu), s = Mn(Sn, e.__scopeMenu), u = p.useRef(null), d = ce(t, u);
|
|
2092
2060
|
return /* @__PURE__ */ f(ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f($e, { present: o || i.open, children: /* @__PURE__ */ f(ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(
|
|
2093
|
-
|
|
2061
|
+
ut,
|
|
2094
2062
|
{
|
|
2095
2063
|
id: s.contentId,
|
|
2096
2064
|
"aria-labelledby": s.triggerId,
|
|
@@ -2112,41 +2080,41 @@ var Pn = "MenuSubContent", Dn = p.forwardRef(
|
|
|
2112
2080
|
a.onClose(), l.preventDefault();
|
|
2113
2081
|
}),
|
|
2114
2082
|
onKeyDown: D(e.onKeyDown, (l) => {
|
|
2115
|
-
const c = l.currentTarget.contains(l.target), m =
|
|
2083
|
+
const c = l.currentTarget.contains(l.target), m = jr[a.dir].includes(l.key);
|
|
2116
2084
|
c && m && (i.onOpenChange(!1), s.trigger?.focus(), l.preventDefault());
|
|
2117
2085
|
})
|
|
2118
2086
|
}
|
|
2119
2087
|
) }) }) });
|
|
2120
2088
|
}
|
|
2121
2089
|
);
|
|
2122
|
-
|
|
2123
|
-
function
|
|
2090
|
+
An.displayName = Sn;
|
|
2091
|
+
function Pn(e) {
|
|
2124
2092
|
return e ? "open" : "closed";
|
|
2125
2093
|
}
|
|
2126
2094
|
function Le(e) {
|
|
2127
2095
|
return e === "indeterminate";
|
|
2128
2096
|
}
|
|
2129
|
-
function
|
|
2097
|
+
function mt(e) {
|
|
2130
2098
|
return Le(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
2131
2099
|
}
|
|
2132
|
-
function
|
|
2100
|
+
function di(e) {
|
|
2133
2101
|
const t = document.activeElement;
|
|
2134
2102
|
for (const n of e)
|
|
2135
2103
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
2136
2104
|
}
|
|
2137
|
-
function
|
|
2105
|
+
function fi(e, t) {
|
|
2138
2106
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
2139
2107
|
}
|
|
2140
|
-
function
|
|
2108
|
+
function pi(e, t, n) {
|
|
2141
2109
|
const r = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
2142
|
-
let a =
|
|
2110
|
+
let a = fi(e, Math.max(i, 0));
|
|
2143
2111
|
r.length === 1 && (a = a.filter((d) => d !== n));
|
|
2144
2112
|
const u = a.find(
|
|
2145
2113
|
(d) => d.toLowerCase().startsWith(r.toLowerCase())
|
|
2146
2114
|
);
|
|
2147
2115
|
return u !== n ? u : void 0;
|
|
2148
2116
|
}
|
|
2149
|
-
function
|
|
2117
|
+
function mi(e, t) {
|
|
2150
2118
|
const { x: n, y: o } = e;
|
|
2151
2119
|
let r = !1;
|
|
2152
2120
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
@@ -2155,18 +2123,18 @@ function hi(e, t) {
|
|
|
2155
2123
|
}
|
|
2156
2124
|
return r;
|
|
2157
2125
|
}
|
|
2158
|
-
function
|
|
2126
|
+
function hi(e, t) {
|
|
2159
2127
|
if (!t) return !1;
|
|
2160
2128
|
const n = { x: e.clientX, y: e.clientY };
|
|
2161
|
-
return
|
|
2129
|
+
return mi(n, t);
|
|
2162
2130
|
}
|
|
2163
2131
|
function be(e) {
|
|
2164
2132
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
2165
2133
|
}
|
|
2166
|
-
var wi =
|
|
2167
|
-
|
|
2168
|
-
[
|
|
2169
|
-
), W =
|
|
2134
|
+
var gi = sn, wi = st, vi = ln, xi = un, yi = dt, bi = dn, Mi = Ve, Ci = pn, Ri = hn, Si = wn, Ai = xn, Pi = yn, _i = bn, Di = Cn, Ei = Rn, Oi = An, ze = "DropdownMenu", [Ni] = Je(
|
|
2135
|
+
ze,
|
|
2136
|
+
[on]
|
|
2137
|
+
), W = on(), [Ti, _n] = Ni(ze), Dn = (e) => {
|
|
2170
2138
|
const {
|
|
2171
2139
|
__scopeDropdownMenu: t,
|
|
2172
2140
|
children: n,
|
|
@@ -2179,28 +2147,28 @@ var wi = un, vi = ct, xi = fn, yi = pn, bi = ft, Mi = mn, Ci = Ke, Ri = gn, Si =
|
|
|
2179
2147
|
prop: r,
|
|
2180
2148
|
defaultProp: i ?? !1,
|
|
2181
2149
|
onChange: a,
|
|
2182
|
-
caller:
|
|
2150
|
+
caller: ze
|
|
2183
2151
|
});
|
|
2184
2152
|
return /* @__PURE__ */ f(
|
|
2185
|
-
|
|
2153
|
+
Ti,
|
|
2186
2154
|
{
|
|
2187
2155
|
scope: t,
|
|
2188
|
-
triggerId:
|
|
2156
|
+
triggerId: Ee(),
|
|
2189
2157
|
triggerRef: d,
|
|
2190
|
-
contentId:
|
|
2158
|
+
contentId: Ee(),
|
|
2191
2159
|
open: l,
|
|
2192
2160
|
onOpenChange: c,
|
|
2193
2161
|
onOpenToggle: p.useCallback(() => c((m) => !m), [c]),
|
|
2194
2162
|
modal: s,
|
|
2195
|
-
children: /* @__PURE__ */ f(
|
|
2163
|
+
children: /* @__PURE__ */ f(gi, { ...u, open: l, onOpenChange: c, dir: o, modal: s, children: n })
|
|
2196
2164
|
}
|
|
2197
2165
|
);
|
|
2198
2166
|
};
|
|
2199
|
-
|
|
2200
|
-
var
|
|
2167
|
+
Dn.displayName = ze;
|
|
2168
|
+
var En = "DropdownMenuTrigger", On = p.forwardRef(
|
|
2201
2169
|
(e, t) => {
|
|
2202
|
-
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = En
|
|
2203
|
-
return /* @__PURE__ */ f(
|
|
2170
|
+
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = _n(En, n), a = W(n);
|
|
2171
|
+
return /* @__PURE__ */ f(wi, { asChild: !0, ...a, children: /* @__PURE__ */ f(
|
|
2204
2172
|
te.button,
|
|
2205
2173
|
{
|
|
2206
2174
|
type: "button",
|
|
@@ -2212,7 +2180,7 @@ var Tn = "DropdownMenuTrigger", In = p.forwardRef(
|
|
|
2212
2180
|
"data-disabled": o ? "" : void 0,
|
|
2213
2181
|
disabled: o,
|
|
2214
2182
|
...r,
|
|
2215
|
-
ref:
|
|
2183
|
+
ref: _t(t, i.triggerRef),
|
|
2216
2184
|
onPointerDown: D(e.onPointerDown, (s) => {
|
|
2217
2185
|
!o && s.button === 0 && s.ctrlKey === !1 && (i.onOpenToggle(), i.open || s.preventDefault());
|
|
2218
2186
|
}),
|
|
@@ -2223,17 +2191,17 @@ var Tn = "DropdownMenuTrigger", In = p.forwardRef(
|
|
|
2223
2191
|
) });
|
|
2224
2192
|
}
|
|
2225
2193
|
);
|
|
2226
|
-
|
|
2227
|
-
var
|
|
2194
|
+
On.displayName = En;
|
|
2195
|
+
var Ii = "DropdownMenuPortal", Nn = (e) => {
|
|
2228
2196
|
const { __scopeDropdownMenu: t, ...n } = e, o = W(t);
|
|
2229
|
-
return /* @__PURE__ */ f(
|
|
2197
|
+
return /* @__PURE__ */ f(vi, { ...o, ...n });
|
|
2230
2198
|
};
|
|
2231
|
-
|
|
2232
|
-
var
|
|
2199
|
+
Nn.displayName = Ii;
|
|
2200
|
+
var Tn = "DropdownMenuContent", In = p.forwardRef(
|
|
2233
2201
|
(e, t) => {
|
|
2234
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
2202
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = _n(Tn, n), i = W(n), a = p.useRef(!1);
|
|
2235
2203
|
return /* @__PURE__ */ f(
|
|
2236
|
-
|
|
2204
|
+
xi,
|
|
2237
2205
|
{
|
|
2238
2206
|
id: r.contentId,
|
|
2239
2207
|
"aria-labelledby": r.triggerId,
|
|
@@ -2259,77 +2227,77 @@ var Ln = "DropdownMenuContent", Fn = p.forwardRef(
|
|
|
2259
2227
|
);
|
|
2260
2228
|
}
|
|
2261
2229
|
);
|
|
2262
|
-
|
|
2263
|
-
var
|
|
2230
|
+
In.displayName = Tn;
|
|
2231
|
+
var ki = "DropdownMenuGroup", kn = p.forwardRef(
|
|
2264
2232
|
(e, t) => {
|
|
2265
2233
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2266
|
-
return /* @__PURE__ */ f(
|
|
2234
|
+
return /* @__PURE__ */ f(yi, { ...r, ...o, ref: t });
|
|
2267
2235
|
}
|
|
2268
2236
|
);
|
|
2269
|
-
|
|
2270
|
-
var
|
|
2237
|
+
kn.displayName = ki;
|
|
2238
|
+
var Li = "DropdownMenuLabel", Ln = p.forwardRef(
|
|
2271
2239
|
(e, t) => {
|
|
2272
2240
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2273
|
-
return /* @__PURE__ */ f(
|
|
2241
|
+
return /* @__PURE__ */ f(bi, { ...r, ...o, ref: t });
|
|
2274
2242
|
}
|
|
2275
2243
|
);
|
|
2276
|
-
|
|
2277
|
-
var
|
|
2244
|
+
Ln.displayName = Li;
|
|
2245
|
+
var Fi = "DropdownMenuItem", Fn = p.forwardRef(
|
|
2278
2246
|
(e, t) => {
|
|
2279
2247
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2280
|
-
return /* @__PURE__ */ f(
|
|
2248
|
+
return /* @__PURE__ */ f(Mi, { ...r, ...o, ref: t });
|
|
2281
2249
|
}
|
|
2282
2250
|
);
|
|
2283
|
-
|
|
2284
|
-
var
|
|
2251
|
+
Fn.displayName = Fi;
|
|
2252
|
+
var $i = "DropdownMenuCheckboxItem", $n = p.forwardRef((e, t) => {
|
|
2285
2253
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2286
|
-
return /* @__PURE__ */ f(
|
|
2254
|
+
return /* @__PURE__ */ f(Ci, { ...r, ...o, ref: t });
|
|
2287
2255
|
});
|
|
2288
|
-
|
|
2289
|
-
var
|
|
2256
|
+
$n.displayName = $i;
|
|
2257
|
+
var Bi = "DropdownMenuRadioGroup", Wi = p.forwardRef((e, t) => {
|
|
2290
2258
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2291
|
-
return /* @__PURE__ */ f(
|
|
2259
|
+
return /* @__PURE__ */ f(Ri, { ...r, ...o, ref: t });
|
|
2292
2260
|
});
|
|
2293
|
-
|
|
2261
|
+
Wi.displayName = Bi;
|
|
2294
2262
|
var Gi = "DropdownMenuRadioItem", Hi = p.forwardRef((e, t) => {
|
|
2295
2263
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2296
|
-
return /* @__PURE__ */ f(
|
|
2264
|
+
return /* @__PURE__ */ f(Si, { ...r, ...o, ref: t });
|
|
2297
2265
|
});
|
|
2298
2266
|
Hi.displayName = Gi;
|
|
2299
|
-
var Ki = "DropdownMenuItemIndicator",
|
|
2267
|
+
var Ki = "DropdownMenuItemIndicator", Bn = p.forwardRef((e, t) => {
|
|
2300
2268
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2301
|
-
return /* @__PURE__ */ f(
|
|
2269
|
+
return /* @__PURE__ */ f(Ai, { ...r, ...o, ref: t });
|
|
2302
2270
|
});
|
|
2303
|
-
|
|
2304
|
-
var Vi = "DropdownMenuSeparator",
|
|
2271
|
+
Bn.displayName = Ki;
|
|
2272
|
+
var Vi = "DropdownMenuSeparator", Wn = p.forwardRef((e, t) => {
|
|
2305
2273
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2306
2274
|
return /* @__PURE__ */ f(Pi, { ...r, ...o, ref: t });
|
|
2307
2275
|
});
|
|
2308
|
-
|
|
2309
|
-
var
|
|
2276
|
+
Wn.displayName = Vi;
|
|
2277
|
+
var zi = "DropdownMenuArrow", ji = p.forwardRef(
|
|
2310
2278
|
(e, t) => {
|
|
2311
2279
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2312
|
-
return /* @__PURE__ */ f(
|
|
2280
|
+
return /* @__PURE__ */ f(_i, { ...r, ...o, ref: t });
|
|
2313
2281
|
}
|
|
2314
2282
|
);
|
|
2315
|
-
|
|
2316
|
-
var
|
|
2283
|
+
ji.displayName = zi;
|
|
2284
|
+
var Ui = (e) => {
|
|
2317
2285
|
const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: i } = e, a = W(t), [s, u] = Dt({
|
|
2318
2286
|
prop: o,
|
|
2319
2287
|
defaultProp: i ?? !1,
|
|
2320
2288
|
onChange: r,
|
|
2321
2289
|
caller: "DropdownMenuSub"
|
|
2322
2290
|
});
|
|
2323
|
-
return /* @__PURE__ */ f(
|
|
2324
|
-
},
|
|
2291
|
+
return /* @__PURE__ */ f(Di, { ...a, open: s, onOpenChange: u, children: n });
|
|
2292
|
+
}, Xi = "DropdownMenuSubTrigger", Gn = p.forwardRef((e, t) => {
|
|
2325
2293
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2326
2294
|
return /* @__PURE__ */ f(Ei, { ...r, ...o, ref: t });
|
|
2327
2295
|
});
|
|
2328
|
-
|
|
2329
|
-
var
|
|
2296
|
+
Gn.displayName = Xi;
|
|
2297
|
+
var Yi = "DropdownMenuSubContent", Hn = p.forwardRef((e, t) => {
|
|
2330
2298
|
const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
|
|
2331
2299
|
return /* @__PURE__ */ f(
|
|
2332
|
-
|
|
2300
|
+
Oi,
|
|
2333
2301
|
{
|
|
2334
2302
|
...r,
|
|
2335
2303
|
...o,
|
|
@@ -2345,9 +2313,9 @@ var qi = "DropdownMenuSubContent", Vn = p.forwardRef((e, t) => {
|
|
|
2345
2313
|
}
|
|
2346
2314
|
);
|
|
2347
2315
|
});
|
|
2348
|
-
|
|
2349
|
-
var Zi =
|
|
2350
|
-
const
|
|
2316
|
+
Hn.displayName = Yi;
|
|
2317
|
+
var qi = Dn, Zi = On, Ji = Nn, Qi = In, ea = kn, ta = Ln, na = Fn, oa = $n, ra = Bn, ia = Wn, aa = Ui, sa = Gn, ca = Hn;
|
|
2318
|
+
const Kn = no(void 0);
|
|
2351
2319
|
function Ba({
|
|
2352
2320
|
align: e = "end",
|
|
2353
2321
|
sideOffset: t = 6,
|
|
@@ -2356,7 +2324,7 @@ function Ba({
|
|
|
2356
2324
|
children: r,
|
|
2357
2325
|
...i
|
|
2358
2326
|
}) {
|
|
2359
|
-
const a =
|
|
2327
|
+
const a = oo(
|
|
2360
2328
|
() => ({
|
|
2361
2329
|
align: e,
|
|
2362
2330
|
sideOffset: t,
|
|
@@ -2365,24 +2333,24 @@ function Ba({
|
|
|
2365
2333
|
}),
|
|
2366
2334
|
[e, t, n, o]
|
|
2367
2335
|
);
|
|
2368
|
-
return /* @__PURE__ */ f(
|
|
2336
|
+
return /* @__PURE__ */ f(Kn.Provider, { value: a, children: /* @__PURE__ */ f(qi, { "data-slot": "dropdown-menu-root", ...i, children: r }) });
|
|
2369
2337
|
}
|
|
2370
|
-
function
|
|
2371
|
-
const e =
|
|
2338
|
+
function Vn() {
|
|
2339
|
+
const e = ro(Kn);
|
|
2372
2340
|
if (e === void 0)
|
|
2373
2341
|
throw new Error("useDropdownMenu must be used within a DropdownMenuRoot");
|
|
2374
2342
|
return e;
|
|
2375
2343
|
}
|
|
2376
2344
|
function Wa({ ...e }) {
|
|
2377
|
-
return /* @__PURE__ */ f(
|
|
2345
|
+
return /* @__PURE__ */ f(Zi, { "data-slot": "dropdown-menu-trigger", ...e });
|
|
2378
2346
|
}
|
|
2379
|
-
function
|
|
2380
|
-
const { align: o, sideOffset: r } =
|
|
2347
|
+
function Ga({ className: e, children: t, ...n }) {
|
|
2348
|
+
const { align: o, sideOffset: r } = Vn();
|
|
2381
2349
|
return /* @__PURE__ */ f(
|
|
2382
|
-
|
|
2350
|
+
Qi,
|
|
2383
2351
|
{
|
|
2384
2352
|
align: o,
|
|
2385
|
-
className:
|
|
2353
|
+
className: z(
|
|
2386
2354
|
"z-50 min-w-32 rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl",
|
|
2387
2355
|
// Open styles
|
|
2388
2356
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
@@ -2397,16 +2365,16 @@ function za({ className: e, children: t, ...n }) {
|
|
|
2397
2365
|
}
|
|
2398
2366
|
);
|
|
2399
2367
|
}
|
|
2400
|
-
function
|
|
2368
|
+
function la({
|
|
2401
2369
|
className: e,
|
|
2402
2370
|
variant: t = "default",
|
|
2403
2371
|
children: n,
|
|
2404
2372
|
...o
|
|
2405
2373
|
}) {
|
|
2406
2374
|
return /* @__PURE__ */ f(
|
|
2407
|
-
|
|
2375
|
+
na,
|
|
2408
2376
|
{
|
|
2409
|
-
className:
|
|
2377
|
+
className: z(
|
|
2410
2378
|
"flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] py-2 pl-3 pr-5 outline-none transition-colors",
|
|
2411
2379
|
// Font styles
|
|
2412
2380
|
"font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium",
|
|
@@ -2425,7 +2393,7 @@ function ua({
|
|
|
2425
2393
|
}
|
|
2426
2394
|
);
|
|
2427
2395
|
}
|
|
2428
|
-
function
|
|
2396
|
+
function ua({
|
|
2429
2397
|
className: e,
|
|
2430
2398
|
variant: t = "default",
|
|
2431
2399
|
children: n,
|
|
@@ -2433,10 +2401,10 @@ function da({
|
|
|
2433
2401
|
...r
|
|
2434
2402
|
}) {
|
|
2435
2403
|
return /* @__PURE__ */ f(
|
|
2436
|
-
|
|
2404
|
+
oa,
|
|
2437
2405
|
{
|
|
2438
2406
|
checked: o,
|
|
2439
|
-
className:
|
|
2407
|
+
className: z(
|
|
2440
2408
|
"flex h-9 w-full cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1.5 outline-none transition-colors",
|
|
2441
2409
|
// Font styles
|
|
2442
2410
|
"font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium",
|
|
@@ -2453,36 +2421,36 @@ function da({
|
|
|
2453
2421
|
...r,
|
|
2454
2422
|
children: /* @__PURE__ */ Fe("div", { className: "flex flex-1 items-center justify-between gap-2", children: [
|
|
2455
2423
|
n,
|
|
2456
|
-
/* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(
|
|
2424
|
+
/* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(ra, { children: /* @__PURE__ */ f(yo, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 }) }) })
|
|
2457
2425
|
] })
|
|
2458
2426
|
}
|
|
2459
2427
|
);
|
|
2460
2428
|
}
|
|
2461
|
-
function
|
|
2429
|
+
function Ha({ className: e, ...t }) {
|
|
2462
2430
|
return /* @__PURE__ */ f(
|
|
2463
|
-
|
|
2431
|
+
ta,
|
|
2464
2432
|
{
|
|
2465
|
-
className:
|
|
2433
|
+
className: z("sr-only", e),
|
|
2466
2434
|
"data-slot": "dropdown-menu-label",
|
|
2467
2435
|
...t
|
|
2468
2436
|
}
|
|
2469
2437
|
);
|
|
2470
2438
|
}
|
|
2471
|
-
function
|
|
2439
|
+
function da({ className: e, ...t }) {
|
|
2472
2440
|
return /* @__PURE__ */ f(
|
|
2473
|
-
|
|
2441
|
+
ea,
|
|
2474
2442
|
{
|
|
2475
|
-
className:
|
|
2443
|
+
className: z("flex flex-col gap-0.5", e),
|
|
2476
2444
|
"data-slot": "dropdown-menu-group",
|
|
2477
2445
|
...t
|
|
2478
2446
|
}
|
|
2479
2447
|
);
|
|
2480
2448
|
}
|
|
2481
|
-
function
|
|
2449
|
+
function fa({ className: e, ...t }) {
|
|
2482
2450
|
return /* @__PURE__ */ f(
|
|
2483
|
-
|
|
2451
|
+
ia,
|
|
2484
2452
|
{
|
|
2485
|
-
className:
|
|
2453
|
+
className: z(
|
|
2486
2454
|
"relative my-1.5 after:absolute after:-left-2 after:-right-5 after:h-px after:bg-[var(--dropdown-menu-seperator,hsl(var(--contrast-100)))]",
|
|
2487
2455
|
e
|
|
2488
2456
|
),
|
|
@@ -2491,10 +2459,10 @@ function pa({ className: e, ...t }) {
|
|
|
2491
2459
|
}
|
|
2492
2460
|
);
|
|
2493
2461
|
}
|
|
2494
|
-
function
|
|
2495
|
-
return /* @__PURE__ */ f(
|
|
2462
|
+
function pa({ ...e }) {
|
|
2463
|
+
return /* @__PURE__ */ f(Ji, { "data-slot": "dropdown-menu-portal", ...e });
|
|
2496
2464
|
}
|
|
2497
|
-
function
|
|
2465
|
+
function ma({
|
|
2498
2466
|
className: e,
|
|
2499
2467
|
children: t,
|
|
2500
2468
|
orientation: n = "vertical",
|
|
@@ -2503,35 +2471,35 @@ function ha({
|
|
|
2503
2471
|
...i
|
|
2504
2472
|
}) {
|
|
2505
2473
|
return /* @__PURE__ */ f(
|
|
2506
|
-
|
|
2474
|
+
Yn,
|
|
2507
2475
|
{
|
|
2508
2476
|
orientation: n,
|
|
2509
2477
|
scrollHideDelay: o,
|
|
2510
2478
|
type: r,
|
|
2511
|
-
children: /* @__PURE__ */ Fe(
|
|
2512
|
-
/* @__PURE__ */ f(
|
|
2513
|
-
/* @__PURE__ */ f(
|
|
2514
|
-
/* @__PURE__ */ f(
|
|
2479
|
+
children: /* @__PURE__ */ Fe(qn, { className: e, ...i, children: [
|
|
2480
|
+
/* @__PURE__ */ f(Zn, { children: t }),
|
|
2481
|
+
/* @__PURE__ */ f(Jn, { children: /* @__PURE__ */ f(Qn, {}) }),
|
|
2482
|
+
/* @__PURE__ */ f(eo, {})
|
|
2515
2483
|
] })
|
|
2516
2484
|
}
|
|
2517
2485
|
);
|
|
2518
2486
|
}
|
|
2519
|
-
function
|
|
2487
|
+
function ha({
|
|
2520
2488
|
className: e,
|
|
2521
2489
|
children: t,
|
|
2522
2490
|
...n
|
|
2523
2491
|
}) {
|
|
2524
|
-
const { showScrollArea: o, maxHeight: r } =
|
|
2492
|
+
const { showScrollArea: o, maxHeight: r } = Vn();
|
|
2525
2493
|
return /* @__PURE__ */ f(
|
|
2526
|
-
|
|
2494
|
+
ma,
|
|
2527
2495
|
{
|
|
2528
|
-
className:
|
|
2496
|
+
className: z(o && "flex flex-col"),
|
|
2529
2497
|
style: { maxHeight: o ? `${r}px` : void 0 },
|
|
2530
2498
|
...n,
|
|
2531
2499
|
children: /* @__PURE__ */ f(
|
|
2532
2500
|
"div",
|
|
2533
2501
|
{
|
|
2534
|
-
className:
|
|
2502
|
+
className: z("flex flex-col gap-0.5 rounded-[inherit] p-2", e),
|
|
2535
2503
|
"data-slot": "dropdown-menu-scroll-area",
|
|
2536
2504
|
children: t
|
|
2537
2505
|
}
|
|
@@ -2539,19 +2507,19 @@ function ga({
|
|
|
2539
2507
|
}
|
|
2540
2508
|
);
|
|
2541
2509
|
}
|
|
2542
|
-
function
|
|
2543
|
-
return /* @__PURE__ */ f(
|
|
2510
|
+
function ga({ ...e }) {
|
|
2511
|
+
return /* @__PURE__ */ f(aa, { "data-slot": "dropdown-menu-sub", ...e });
|
|
2544
2512
|
}
|
|
2545
|
-
function
|
|
2513
|
+
function wa({
|
|
2546
2514
|
children: e,
|
|
2547
2515
|
variant: t = "default",
|
|
2548
2516
|
className: n,
|
|
2549
2517
|
...o
|
|
2550
2518
|
}) {
|
|
2551
2519
|
return /* @__PURE__ */ f(
|
|
2552
|
-
|
|
2520
|
+
sa,
|
|
2553
2521
|
{
|
|
2554
|
-
className:
|
|
2522
|
+
className: z(
|
|
2555
2523
|
"flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1 outline-none transition-colors",
|
|
2556
2524
|
// Font styles
|
|
2557
2525
|
"font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium",
|
|
@@ -2568,20 +2536,20 @@ function va({
|
|
|
2568
2536
|
...o,
|
|
2569
2537
|
children: /* @__PURE__ */ Fe("div", { className: "flex flex-1 items-center justify-between gap-2", children: [
|
|
2570
2538
|
e,
|
|
2571
|
-
/* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(
|
|
2539
|
+
/* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(Nt, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 }) })
|
|
2572
2540
|
] })
|
|
2573
2541
|
}
|
|
2574
2542
|
);
|
|
2575
2543
|
}
|
|
2576
|
-
function
|
|
2544
|
+
function va({
|
|
2577
2545
|
className: e,
|
|
2578
2546
|
children: t,
|
|
2579
2547
|
...n
|
|
2580
2548
|
}) {
|
|
2581
2549
|
return /* @__PURE__ */ f(
|
|
2582
|
-
|
|
2550
|
+
ca,
|
|
2583
2551
|
{
|
|
2584
|
-
className:
|
|
2552
|
+
className: z(
|
|
2585
2553
|
"z-50 min-w-32 origin-top-left rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl",
|
|
2586
2554
|
// Open styles
|
|
2587
2555
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
@@ -2603,27 +2571,27 @@ function xa({
|
|
|
2603
2571
|
}
|
|
2604
2572
|
);
|
|
2605
2573
|
}
|
|
2606
|
-
function
|
|
2574
|
+
function Ka({ menuNode: e, menuKey: t }) {
|
|
2607
2575
|
function n(o, r) {
|
|
2608
2576
|
switch (o.type) {
|
|
2609
2577
|
case "item":
|
|
2610
|
-
return /* @__PURE__ */ f(
|
|
2578
|
+
return /* @__PURE__ */ f(la, { ...o.props }, r);
|
|
2611
2579
|
case "checkbox":
|
|
2612
|
-
return /* @__PURE__ */ f(
|
|
2580
|
+
return /* @__PURE__ */ f(ua, { ...o.props }, r);
|
|
2613
2581
|
case "separator":
|
|
2614
|
-
return /* @__PURE__ */ f(
|
|
2582
|
+
return /* @__PURE__ */ f(fa, { ...o.props }, r);
|
|
2615
2583
|
case "group":
|
|
2616
|
-
return /* @__PURE__ */ f(
|
|
2584
|
+
return /* @__PURE__ */ f(da, { ...o.props, children: o.items.map((i, a) => n(i, String(a))) }, r);
|
|
2617
2585
|
case "sub":
|
|
2618
|
-
return /* @__PURE__ */ Fe(
|
|
2619
|
-
/* @__PURE__ */ f(
|
|
2620
|
-
o.content && /* @__PURE__ */ f(
|
|
2621
|
-
|
|
2586
|
+
return /* @__PURE__ */ Fe(ga, { ...o.props, children: [
|
|
2587
|
+
/* @__PURE__ */ f(wa, { ...o.trigger.props }),
|
|
2588
|
+
o.content && /* @__PURE__ */ f(pa, { children: /* @__PURE__ */ f(
|
|
2589
|
+
va,
|
|
2622
2590
|
{
|
|
2623
2591
|
alignOffset: -8,
|
|
2624
|
-
className:
|
|
2592
|
+
className: z(o.content.props?.className),
|
|
2625
2593
|
...o.content.props,
|
|
2626
|
-
children: /* @__PURE__ */ f(
|
|
2594
|
+
children: /* @__PURE__ */ f(ha, { children: o.content.items.map((i, a) => n(i, String(a))) })
|
|
2627
2595
|
}
|
|
2628
2596
|
) })
|
|
2629
2597
|
] }, r);
|
|
@@ -2633,22 +2601,21 @@ function Ha({ menuNode: e, menuKey: t }) {
|
|
|
2633
2601
|
}
|
|
2634
2602
|
export {
|
|
2635
2603
|
Ba as D,
|
|
2636
|
-
|
|
2604
|
+
ma as S,
|
|
2637
2605
|
Wa as a,
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
Un as u
|
|
2606
|
+
Ga as b,
|
|
2607
|
+
la as c,
|
|
2608
|
+
ua as d,
|
|
2609
|
+
Ha as e,
|
|
2610
|
+
da as f,
|
|
2611
|
+
fa as g,
|
|
2612
|
+
pa as h,
|
|
2613
|
+
ha as i,
|
|
2614
|
+
ga as j,
|
|
2615
|
+
wa as k,
|
|
2616
|
+
va as l,
|
|
2617
|
+
Ka as m,
|
|
2618
|
+
$a as n,
|
|
2619
|
+
Vn as u
|
|
2653
2620
|
};
|
|
2654
|
-
//# sourceMappingURL=dropdown-menu-node-
|
|
2621
|
+
//# sourceMappingURL=dropdown-menu-node-C7Z-zRyr.js.map
|