@gv-tech/ui-web 2.29.1 → 2.29.3
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/accordion.cjs +1 -1
- package/dist/accordion.mjs +53 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +26 -26
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -5
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +13 -13
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +5 -5
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +13 -13
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +5 -5
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +13 -14
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -2
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +41 -42
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +8 -9
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +37 -38
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +34 -35
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +27 -28
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +29 -29
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +5 -5
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -2
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +15 -16
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -2
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -2
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -2
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -2
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +39 -40
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -2
- package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -2
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-D5QXSsCK.mjs +0 -248
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/avatar-d8Di248f.mjs +0 -138
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/calendar-UW8h9dfh.mjs +0 -3182
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/carousel-DG9xGJns.mjs +0 -1171
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/checkbox-Dq8VHKDH.mjs +0 -186
- package/dist/chunk-BmowowmI.mjs +0 -14
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/combobox-b4OmCNw1.mjs +0 -5887
- package/dist/command-5hobOyGG.mjs +0 -545
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/context-menu-DzzU-_v8.mjs +0 -317
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-B057I8ju.mjs +0 -30
- package/dist/dist-BB78QQyQ.mjs +0 -41
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BEbV0Hal.mjs +0 -45
- package/dist/dist-BPL7gUpg.mjs +0 -18
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-Bb5W_J2F.mjs +0 -39
- package/dist/dist-BbI6NHqR.mjs +0 -23
- package/dist/dist-BexAB6yo.mjs +0 -192
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-Bvfb4y_L.mjs +0 -100
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CPAF050o.mjs +0 -90
- package/dist/dist-CS572Be42.mjs +0 -11
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-CpKLY_uZ.mjs +0 -96
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DI1vapnL.mjs +0 -20
- package/dist/dist-DJqkhIXb2.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DatgTWLz.mjs +0 -202
- package/dist/dist-Dm3IQk5b.mjs +0 -685
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-Dq-h6VAy.mjs +0 -118
- package/dist/dist-Dt6m-kwU.mjs +0 -221
- package/dist/dist-E8ieJTBC.mjs +0 -190
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-OqDzLHTa.mjs +0 -460
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UkWa-Arh.mjs +0 -16
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dist-s7ibhASj.mjs +0 -181
- package/dist/dist-vu20fMUK.mjs +0 -93
- package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/es2015-DbsmTzuc.mjs +0 -571
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
- package/dist/hover-card-DMsxpR9G.mjs +0 -178
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-D49Y9VcH.mjs +0 -409
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/label-DsSICLPc.mjs +0 -28
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/menubar-DZqEj6S1.mjs +0 -407
- package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/navigation-menu-RO6thDOF.mjs +0 -636
- package/dist/popover-DSBkc70V.mjs +0 -243
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/progress-CQ4nQ85t.mjs +0 -92
- package/dist/questionnaire-CVED7G7R.mjs +0 -1159
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/radio-group-TRiAhMZB.mjs +0 -266
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-BFJUmjvX.mjs +0 -830
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-2kr96SyF.mjs +0 -40
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/slider-CdTCoQu1.mjs +0 -485
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/switch-zUBdj7jK.mjs +0 -174
- package/dist/tabs-DaE9pEbo.mjs +0 -160
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/theme-toggle-DKh8WFLT.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toast-D0Yb-K84.mjs +0 -445
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-BAeKd2N0.mjs +0 -59
- package/dist/toggle-group-CEKhUozD.mjs +0 -167
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- package/dist/tooltip-R_nK_Qh5.mjs +0 -390
package/dist/dist-CUvxOuXM.mjs
DELETED
|
@@ -1,551 +0,0 @@
|
|
|
1
|
-
import { a as e, n as t } from "./dist-Dq-h6VAy.mjs";
|
|
2
|
-
import { n, t as r } from "./dist-BEbV0Hal.mjs";
|
|
3
|
-
import { t as i } from "./dist-CPAF050o.mjs";
|
|
4
|
-
import { t as a } from "./dist-OqDzLHTa.mjs";
|
|
5
|
-
import { t as o } from "./dist-BB78QQyQ.mjs";
|
|
6
|
-
import { t as s } from "./dist-CpKLY_uZ.mjs";
|
|
7
|
-
import { t as c } from "./dist-UkWa-Arh.mjs";
|
|
8
|
-
import { n as l } from "./dist-BbI6NHqR.mjs";
|
|
9
|
-
import { t as u } from "./dist-BPL7gUpg.mjs";
|
|
10
|
-
import { t as d } from "./dist-s7ibhASj.mjs";
|
|
11
|
-
import { i as f, n as p, r as m, t as ee } from "./dist-E8ieJTBC.mjs";
|
|
12
|
-
import { t as h } from "./dist-DI1vapnL.mjs";
|
|
13
|
-
import { n as te, r as ne, t as g } from "./es2015-DbsmTzuc.mjs";
|
|
14
|
-
import { a as _, i as re, n as ie, t as v } from "./dist-Dt6m-kwU.mjs";
|
|
15
|
-
import { n as y, r as b, t as ae } from "./dist-BexAB6yo.mjs";
|
|
16
|
-
import * as x from "react";
|
|
17
|
-
import { jsx as S } from "react/jsx-runtime";
|
|
18
|
-
//#region ../../node_modules/.bun/@radix-ui+react-menu@2.2.1+b146eb580f4286be/node_modules/@radix-ui/react-menu/dist/index.mjs
|
|
19
|
-
var C = Object.defineProperty, w = (e, t) => C(e, "name", {
|
|
20
|
-
value: t,
|
|
21
|
-
configurable: !0
|
|
22
|
-
}), T = {
|
|
23
|
-
LTR: "ltr",
|
|
24
|
-
RTL: "rtl"
|
|
25
|
-
}, E = ["Enter", " "], D = [
|
|
26
|
-
"ArrowDown",
|
|
27
|
-
"PageUp",
|
|
28
|
-
"Home"
|
|
29
|
-
], oe = [
|
|
30
|
-
"ArrowUp",
|
|
31
|
-
"PageDown",
|
|
32
|
-
"End"
|
|
33
|
-
], se = [...D, ...oe], O = {
|
|
34
|
-
ltr: [...E, "ArrowRight"],
|
|
35
|
-
rtl: [...E, "ArrowLeft"]
|
|
36
|
-
}, ce = {
|
|
37
|
-
ltr: ["ArrowLeft"],
|
|
38
|
-
rtl: ["ArrowRight"]
|
|
39
|
-
}, k = "Menu", [A, le, ue] = a(k), [j, M] = i(k, [
|
|
40
|
-
ue,
|
|
41
|
-
_,
|
|
42
|
-
b
|
|
43
|
-
]), N = _(), de = b(), [P, F] = j(k), [fe, I] = j(k), pe = /* @__PURE__ */ w((e) => {
|
|
44
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = N(t), [c, d] = x.useState(null), f = x.useRef(!1), p = u(a), m = l(i);
|
|
45
|
-
return x.useEffect(() => {
|
|
46
|
-
let e = /* @__PURE__ */ w(() => {
|
|
47
|
-
f.current = !0, document.addEventListener("pointerdown", t, {
|
|
48
|
-
capture: !0,
|
|
49
|
-
once: !0
|
|
50
|
-
}), document.addEventListener("pointermove", t, {
|
|
51
|
-
capture: !0,
|
|
52
|
-
once: !0
|
|
53
|
-
});
|
|
54
|
-
}, "handleKeyDown"), t = /* @__PURE__ */ w(() => f.current = !1, "handlePointer");
|
|
55
|
-
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
56
|
-
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
57
|
-
};
|
|
58
|
-
}, []), x.useEffect(() => {
|
|
59
|
-
if (!n) return;
|
|
60
|
-
let e = /* @__PURE__ */ w(() => p(!1), "handleBlur");
|
|
61
|
-
return window.addEventListener("blur", e), () => window.removeEventListener("blur", e);
|
|
62
|
-
}, [n, p]), /* @__PURE__ */ S(v, {
|
|
63
|
-
...s,
|
|
64
|
-
children: /* @__PURE__ */ S(P, {
|
|
65
|
-
scope: t,
|
|
66
|
-
open: n,
|
|
67
|
-
onOpenChange: p,
|
|
68
|
-
content: c,
|
|
69
|
-
onContentChange: d,
|
|
70
|
-
children: /* @__PURE__ */ S(fe, {
|
|
71
|
-
scope: t,
|
|
72
|
-
onClose: x.useCallback(() => p(!1), [p]),
|
|
73
|
-
isUsingKeyboardRef: f,
|
|
74
|
-
dir: m,
|
|
75
|
-
modal: o,
|
|
76
|
-
children: r
|
|
77
|
-
})
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
}, "Menu"), L = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
81
|
-
let { __scopeMenu: n, ...r } = e;
|
|
82
|
-
return /* @__PURE__ */ S(ie, {
|
|
83
|
-
...N(n),
|
|
84
|
-
...r,
|
|
85
|
-
ref: t
|
|
86
|
-
});
|
|
87
|
-
}, "MenuAnchor")), R = "MenuPortal", [z, B] = j(R, { forceMount: void 0 }), V = /* @__PURE__ */ w((e) => {
|
|
88
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = F(R, t);
|
|
89
|
-
return /* @__PURE__ */ S(z, {
|
|
90
|
-
scope: t,
|
|
91
|
-
forceMount: n,
|
|
92
|
-
children: /* @__PURE__ */ S(s, {
|
|
93
|
-
present: n || a.open,
|
|
94
|
-
children: /* @__PURE__ */ S(h, {
|
|
95
|
-
asChild: !0,
|
|
96
|
-
container: i,
|
|
97
|
-
children: r
|
|
98
|
-
})
|
|
99
|
-
})
|
|
100
|
-
});
|
|
101
|
-
}, "MenuPortal"), H = "MenuContent", [me, U] = j(H), he = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
102
|
-
let n = B(H, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = F(H, e.__scopeMenu), o = I(H, e.__scopeMenu);
|
|
103
|
-
return /* @__PURE__ */ S(A.Provider, {
|
|
104
|
-
scope: e.__scopeMenu,
|
|
105
|
-
children: /* @__PURE__ */ S(s, {
|
|
106
|
-
present: r || a.open,
|
|
107
|
-
children: /* @__PURE__ */ S(A.Slot, {
|
|
108
|
-
scope: e.__scopeMenu,
|
|
109
|
-
children: o.modal ? /* @__PURE__ */ S(ge, {
|
|
110
|
-
...i,
|
|
111
|
-
ref: t
|
|
112
|
-
}) : /* @__PURE__ */ S(_e, {
|
|
113
|
-
...i,
|
|
114
|
-
ref: t
|
|
115
|
-
})
|
|
116
|
-
})
|
|
117
|
-
})
|
|
118
|
-
});
|
|
119
|
-
}, "MenuContent")), ge = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, n) {
|
|
120
|
-
let r = F(H, t.__scopeMenu), i = x.useRef(null), a = e(n, i);
|
|
121
|
-
return x.useEffect(() => {
|
|
122
|
-
let e = i.current;
|
|
123
|
-
if (e) return g(e);
|
|
124
|
-
}, []), /* @__PURE__ */ S(W, {
|
|
125
|
-
...t,
|
|
126
|
-
ref: a,
|
|
127
|
-
trapFocus: r.open,
|
|
128
|
-
disableOutsidePointerEvents: r.open,
|
|
129
|
-
disableOutsideScroll: !0,
|
|
130
|
-
onFocusOutside: o(t.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
131
|
-
onDismiss: () => r.onOpenChange(!1)
|
|
132
|
-
});
|
|
133
|
-
}, "MenuRootContentModal")), _e = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
134
|
-
let n = F(H, e.__scopeMenu);
|
|
135
|
-
return /* @__PURE__ */ S(W, {
|
|
136
|
-
...e,
|
|
137
|
-
ref: t,
|
|
138
|
-
trapFocus: !1,
|
|
139
|
-
disableOutsidePointerEvents: !1,
|
|
140
|
-
disableOutsideScroll: !1,
|
|
141
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
142
|
-
});
|
|
143
|
-
}, "MenuRootContentNonModal")), ve = t("MenuContent.ScrollLock"), W = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, n) {
|
|
144
|
-
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: s, onCloseAutoFocus: c, disableOutsidePointerEvents: l, onEntryFocus: u, onEscapeKeyDown: h, onPointerDownOutside: g, onFocusOutside: _, onInteractOutside: ie, onDismiss: v, disableOutsideScroll: y, ...b } = t, C = F(H, r), T = I(H, r), E = N(r), D = de(r), O = le(r), [ce, k] = x.useState(null), A = x.useRef(null), [ue, j] = x.useState(null);
|
|
145
|
-
m(ue);
|
|
146
|
-
let { nodes: M, registry: P } = f(), fe = !!(a || y), pe = e(n, A, C.onContentChange, j), L = x.useRef(0), R = x.useRef(""), z = x.useRef(0), B = x.useRef(null), V = x.useRef("right"), U = x.useRef(0), he = x.useMemo(() => y ? [A, ...M.map((e) => ({ current: e }))] : [], [
|
|
147
|
-
A,
|
|
148
|
-
M,
|
|
149
|
-
y
|
|
150
|
-
]), ge = y ? te : x.Fragment, _e = y ? {
|
|
151
|
-
as: ve,
|
|
152
|
-
allowPinchZoom: !0,
|
|
153
|
-
shards: he
|
|
154
|
-
} : void 0, W = /* @__PURE__ */ w((e) => {
|
|
155
|
-
let t = R.current + e, n = O().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ve(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
156
|
-
function s(e) {
|
|
157
|
-
R.current = e, window.clearTimeout(L.current), e !== "" && (L.current = window.setTimeout(() => s(""), 1e3));
|
|
158
|
-
}
|
|
159
|
-
w(s, "updateSearch"), s(t), o && setTimeout(() => o.focus());
|
|
160
|
-
}, "handleTypeaheadSearch");
|
|
161
|
-
x.useEffect(() => () => window.clearTimeout(L.current), []), ne();
|
|
162
|
-
let G = x.useCallback((e) => V.current === B.current?.side && Ue(e, B.current?.area), []);
|
|
163
|
-
return /* @__PURE__ */ S(me, {
|
|
164
|
-
scope: r,
|
|
165
|
-
searchRef: R,
|
|
166
|
-
onItemEnter: x.useCallback((e) => {
|
|
167
|
-
G(e) && e.preventDefault();
|
|
168
|
-
}, [G]),
|
|
169
|
-
onItemLeave: x.useCallback((e) => {
|
|
170
|
-
G(e) || (A.current?.focus(), k(null));
|
|
171
|
-
}, [G]),
|
|
172
|
-
onTriggerLeave: x.useCallback((e) => {
|
|
173
|
-
G(e) && e.preventDefault();
|
|
174
|
-
}, [G]),
|
|
175
|
-
pointerGraceTimerRef: z,
|
|
176
|
-
onPointerGraceIntentChange: x.useCallback((e) => {
|
|
177
|
-
B.current = e;
|
|
178
|
-
}, []),
|
|
179
|
-
children: /* @__PURE__ */ S(p, {
|
|
180
|
-
registry: fe ? P : null,
|
|
181
|
-
children: /* @__PURE__ */ S(ge, {
|
|
182
|
-
..._e,
|
|
183
|
-
children: /* @__PURE__ */ S(ee, {
|
|
184
|
-
asChild: !0,
|
|
185
|
-
trapped: a,
|
|
186
|
-
branches: M,
|
|
187
|
-
onMountAutoFocus: o(s, (e) => {
|
|
188
|
-
e.preventDefault(), A.current?.focus({ preventScroll: !0 });
|
|
189
|
-
}),
|
|
190
|
-
onUnmountAutoFocus: c,
|
|
191
|
-
children: /* @__PURE__ */ S(d, {
|
|
192
|
-
asChild: !0,
|
|
193
|
-
disableOutsidePointerEvents: l,
|
|
194
|
-
onEscapeKeyDown: h,
|
|
195
|
-
onPointerDownOutside: g,
|
|
196
|
-
onFocusOutside: _,
|
|
197
|
-
onInteractOutside: ie,
|
|
198
|
-
onDismiss: v,
|
|
199
|
-
children: /* @__PURE__ */ S(ae, {
|
|
200
|
-
asChild: !0,
|
|
201
|
-
...D,
|
|
202
|
-
dir: T.dir,
|
|
203
|
-
orientation: "vertical",
|
|
204
|
-
loop: i,
|
|
205
|
-
currentTabStopId: ce,
|
|
206
|
-
onCurrentTabStopIdChange: k,
|
|
207
|
-
onEntryFocus: o(u, (e) => {
|
|
208
|
-
T.isUsingKeyboardRef.current || e.preventDefault();
|
|
209
|
-
}),
|
|
210
|
-
preventScrollOnEntryFocus: !0,
|
|
211
|
-
children: /* @__PURE__ */ S(re, {
|
|
212
|
-
role: "menu",
|
|
213
|
-
"aria-orientation": "vertical",
|
|
214
|
-
"data-state": X(C.open),
|
|
215
|
-
"data-radix-menu-content": "",
|
|
216
|
-
dir: T.dir,
|
|
217
|
-
...E,
|
|
218
|
-
...b,
|
|
219
|
-
ref: pe,
|
|
220
|
-
style: {
|
|
221
|
-
outline: "none",
|
|
222
|
-
...b.style
|
|
223
|
-
},
|
|
224
|
-
onKeyDown: o(b.onKeyDown, (e) => {
|
|
225
|
-
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
226
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r && W(e.key));
|
|
227
|
-
let i = A.current;
|
|
228
|
-
if (e.target !== i || !se.includes(e.key)) return;
|
|
229
|
-
e.preventDefault();
|
|
230
|
-
let a = O().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
231
|
-
oe.includes(e.key) && a.reverse(), ze(a);
|
|
232
|
-
}),
|
|
233
|
-
onBlur: o(t.onBlur, (e) => {
|
|
234
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(L.current), R.current = "");
|
|
235
|
-
}),
|
|
236
|
-
onPointerMove: o(t.onPointerMove, $((e) => {
|
|
237
|
-
let t = e.target, n = U.current !== e.clientX;
|
|
238
|
-
e.currentTarget.contains(t) && n && (V.current = e.clientX > U.current ? "right" : "left", U.current = e.clientX);
|
|
239
|
-
}))
|
|
240
|
-
})
|
|
241
|
-
})
|
|
242
|
-
})
|
|
243
|
-
})
|
|
244
|
-
})
|
|
245
|
-
})
|
|
246
|
-
});
|
|
247
|
-
}, "MenuContentImpl")), G = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
248
|
-
let { __scopeMenu: n, ...i } = e;
|
|
249
|
-
return /* @__PURE__ */ S(r.div, {
|
|
250
|
-
role: "group",
|
|
251
|
-
...i,
|
|
252
|
-
ref: t
|
|
253
|
-
});
|
|
254
|
-
}, "MenuGroup")), ye = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
255
|
-
let { __scopeMenu: n, ...i } = e;
|
|
256
|
-
return /* @__PURE__ */ S(r.div, {
|
|
257
|
-
...i,
|
|
258
|
-
ref: t
|
|
259
|
-
});
|
|
260
|
-
}, "MenuLabel")), K = "MenuItem", be = "menu.itemSelect", q = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, r) {
|
|
261
|
-
let { disabled: i = !1, onSelect: a, ...s } = t, c = x.useRef(null), l = I(K, t.__scopeMenu), u = U(K, t.__scopeMenu), d = e(r, c), f = x.useRef(!1), p = /* @__PURE__ */ w(() => {
|
|
262
|
-
let e = c.current;
|
|
263
|
-
if (!i && e) {
|
|
264
|
-
let t = new CustomEvent(be, {
|
|
265
|
-
bubbles: !0,
|
|
266
|
-
cancelable: !0
|
|
267
|
-
});
|
|
268
|
-
e.addEventListener(be, (e) => a?.(e), { once: !0 }), n(e, t), t.defaultPrevented ? f.current = !1 : l.onClose();
|
|
269
|
-
}
|
|
270
|
-
}, "handleSelect");
|
|
271
|
-
return /* @__PURE__ */ S(J, {
|
|
272
|
-
...s,
|
|
273
|
-
ref: d,
|
|
274
|
-
disabled: i,
|
|
275
|
-
onClick: o(t.onClick, p),
|
|
276
|
-
onPointerDown: (e) => {
|
|
277
|
-
t.onPointerDown?.(e), f.current = !0;
|
|
278
|
-
},
|
|
279
|
-
onPointerUp: o(t.onPointerUp, (e) => {
|
|
280
|
-
f.current || e.currentTarget?.click();
|
|
281
|
-
}),
|
|
282
|
-
onKeyDown: o(t.onKeyDown, (e) => {
|
|
283
|
-
i || e.target !== e.currentTarget || u.searchRef.current !== "" && e.key === " " || E.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
284
|
-
})
|
|
285
|
-
});
|
|
286
|
-
}, "MenuItem")), J = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, n) {
|
|
287
|
-
let { __scopeMenu: i, disabled: a = !1, textValue: s, ...c } = t, l = U(K, i), u = de(i), d = x.useRef(null), f = e(n, d), [p, m] = x.useState(!1), [ee, h] = x.useState("");
|
|
288
|
-
return x.useEffect(() => {
|
|
289
|
-
let e = d.current;
|
|
290
|
-
e && h((e.textContent ?? "").trim());
|
|
291
|
-
}, [c.children]), /* @__PURE__ */ S(A.ItemSlot, {
|
|
292
|
-
scope: i,
|
|
293
|
-
disabled: a,
|
|
294
|
-
textValue: s ?? ee,
|
|
295
|
-
children: /* @__PURE__ */ S(y, {
|
|
296
|
-
asChild: !0,
|
|
297
|
-
...u,
|
|
298
|
-
focusable: !a,
|
|
299
|
-
children: /* @__PURE__ */ S(r.div, {
|
|
300
|
-
role: "menuitem",
|
|
301
|
-
"data-highlighted": p ? "" : void 0,
|
|
302
|
-
"aria-disabled": a || void 0,
|
|
303
|
-
"data-disabled": a ? "" : void 0,
|
|
304
|
-
...c,
|
|
305
|
-
ref: f,
|
|
306
|
-
onPointerMove: o(t.onPointerMove, $((e) => {
|
|
307
|
-
a ? l.onItemLeave(e) : (l.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
308
|
-
})),
|
|
309
|
-
onPointerLeave: o(t.onPointerLeave, $((e) => l.onItemLeave(e))),
|
|
310
|
-
onFocus: o(t.onFocus, () => m(!0)),
|
|
311
|
-
onBlur: o(t.onBlur, () => m(!1))
|
|
312
|
-
})
|
|
313
|
-
})
|
|
314
|
-
});
|
|
315
|
-
}, "MenuItemImpl")), xe = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
316
|
-
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
317
|
-
return /* @__PURE__ */ S(Oe, {
|
|
318
|
-
scope: e.__scopeMenu,
|
|
319
|
-
checked: n,
|
|
320
|
-
children: /* @__PURE__ */ S(q, {
|
|
321
|
-
role: "menuitemcheckbox",
|
|
322
|
-
"aria-checked": Z(n) ? "mixed" : n,
|
|
323
|
-
...i,
|
|
324
|
-
ref: t,
|
|
325
|
-
"data-state": Q(n),
|
|
326
|
-
onSelect: o(i.onSelect, () => r?.(Z(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
327
|
-
})
|
|
328
|
-
});
|
|
329
|
-
}, "MenuCheckboxItem")), [Se, Ce] = j("MenuRadioGroup", {
|
|
330
|
-
value: void 0,
|
|
331
|
-
onValueChange: /* @__PURE__ */ w(() => {}, "onValueChange")
|
|
332
|
-
}), we = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
333
|
-
let { value: n, onValueChange: r, ...i } = e, a = u(r);
|
|
334
|
-
return /* @__PURE__ */ S(Se, {
|
|
335
|
-
scope: e.__scopeMenu,
|
|
336
|
-
value: n,
|
|
337
|
-
onValueChange: a,
|
|
338
|
-
children: /* @__PURE__ */ S(G, {
|
|
339
|
-
...i,
|
|
340
|
-
ref: t
|
|
341
|
-
})
|
|
342
|
-
});
|
|
343
|
-
}, "MenuRadioGroup")), Te = "MenuRadioItem", Ee = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
344
|
-
let { value: n, ...r } = e, i = Ce(Te, e.__scopeMenu), a = n === i.value;
|
|
345
|
-
return /* @__PURE__ */ S(Oe, {
|
|
346
|
-
scope: e.__scopeMenu,
|
|
347
|
-
checked: a,
|
|
348
|
-
children: /* @__PURE__ */ S(q, {
|
|
349
|
-
role: "menuitemradio",
|
|
350
|
-
"aria-checked": a,
|
|
351
|
-
...r,
|
|
352
|
-
ref: t,
|
|
353
|
-
"data-state": Q(a),
|
|
354
|
-
onSelect: o(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
355
|
-
})
|
|
356
|
-
});
|
|
357
|
-
}, "MenuRadioItem")), De = "MenuItemIndicator", [Oe, ke] = j(De, { checked: !1 }), Ae = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
358
|
-
let { __scopeMenu: n, forceMount: i, ...a } = e, o = ke(De, n);
|
|
359
|
-
return /* @__PURE__ */ S(s, {
|
|
360
|
-
present: i || Z(o.checked) || o.checked === !0,
|
|
361
|
-
children: /* @__PURE__ */ S(r.span, {
|
|
362
|
-
...a,
|
|
363
|
-
ref: t,
|
|
364
|
-
"data-state": Q(o.checked)
|
|
365
|
-
})
|
|
366
|
-
});
|
|
367
|
-
}, "MenuItemIndicator")), je = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
368
|
-
let { __scopeMenu: n, ...i } = e;
|
|
369
|
-
return /* @__PURE__ */ S(r.div, {
|
|
370
|
-
role: "separator",
|
|
371
|
-
"aria-orientation": "horizontal",
|
|
372
|
-
...i,
|
|
373
|
-
ref: t
|
|
374
|
-
});
|
|
375
|
-
}, "MenuSeparator")), Me = "MenuSub", [Ne, Pe] = j(Me), Fe = /* @__PURE__ */ w((e) => {
|
|
376
|
-
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = F(Me, t), o = N(t), [s, l] = x.useState(null), [d, f] = x.useState(null), p = u(i);
|
|
377
|
-
return x.useEffect(() => (a.open === !1 && p(!1), () => p(!1)), [a.open, p]), /* @__PURE__ */ S(v, {
|
|
378
|
-
...o,
|
|
379
|
-
children: /* @__PURE__ */ S(P, {
|
|
380
|
-
scope: t,
|
|
381
|
-
open: r,
|
|
382
|
-
onOpenChange: p,
|
|
383
|
-
content: d,
|
|
384
|
-
onContentChange: f,
|
|
385
|
-
children: /* @__PURE__ */ S(Ne, {
|
|
386
|
-
scope: t,
|
|
387
|
-
contentId: c(),
|
|
388
|
-
triggerId: c(),
|
|
389
|
-
trigger: s,
|
|
390
|
-
onTriggerChange: l,
|
|
391
|
-
children: n
|
|
392
|
-
})
|
|
393
|
-
})
|
|
394
|
-
});
|
|
395
|
-
}, "MenuSub"), Y = "MenuSubTrigger", Ie = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, n) {
|
|
396
|
-
let r = F(Y, t.__scopeMenu), i = I(Y, t.__scopeMenu), a = Pe(Y, t.__scopeMenu), s = U(Y, t.__scopeMenu), c = x.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, d = { __scopeMenu: t.__scopeMenu }, f = x.useCallback(() => {
|
|
397
|
-
c.current && window.clearTimeout(c.current), c.current = null;
|
|
398
|
-
}, []);
|
|
399
|
-
x.useEffect(() => f, [f]), x.useEffect(() => {
|
|
400
|
-
let e = l.current;
|
|
401
|
-
return () => {
|
|
402
|
-
window.clearTimeout(e), u(null);
|
|
403
|
-
};
|
|
404
|
-
}, [l, u]);
|
|
405
|
-
let p = e(n, a.onTriggerChange);
|
|
406
|
-
return /* @__PURE__ */ S(L, {
|
|
407
|
-
asChild: !0,
|
|
408
|
-
...d,
|
|
409
|
-
children: /* @__PURE__ */ S(J, {
|
|
410
|
-
id: a.triggerId,
|
|
411
|
-
"aria-haspopup": "menu",
|
|
412
|
-
"aria-expanded": r.open,
|
|
413
|
-
"aria-controls": r.open ? a.contentId : void 0,
|
|
414
|
-
"data-state": X(r.open),
|
|
415
|
-
...t,
|
|
416
|
-
ref: p,
|
|
417
|
-
onClick: (e) => {
|
|
418
|
-
t.onClick?.(e), !(t.disabled || e.defaultPrevented) && (e.currentTarget.focus(), r.open || r.onOpenChange(!0));
|
|
419
|
-
},
|
|
420
|
-
onPointerMove: o(t.onPointerMove, $((e) => {
|
|
421
|
-
s.onItemEnter(e), !e.defaultPrevented && !t.disabled && !r.open && !c.current && (s.onPointerGraceIntentChange(null), c.current = window.setTimeout(() => {
|
|
422
|
-
r.onOpenChange(!0), f();
|
|
423
|
-
}, 100));
|
|
424
|
-
})),
|
|
425
|
-
onPointerLeave: o(t.onPointerLeave, $((e) => {
|
|
426
|
-
f();
|
|
427
|
-
let t = r.content?.getBoundingClientRect();
|
|
428
|
-
if (t) {
|
|
429
|
-
let n = r.content?.dataset.side, i = n === "right", a = i ? -5 : 5, o = t[i ? "left" : "right"], c = t[i ? "right" : "left"];
|
|
430
|
-
s.onPointerGraceIntentChange({
|
|
431
|
-
area: [
|
|
432
|
-
{
|
|
433
|
-
x: e.clientX + a,
|
|
434
|
-
y: e.clientY
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
x: o,
|
|
438
|
-
y: t.top
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
x: c,
|
|
442
|
-
y: t.top
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
x: c,
|
|
446
|
-
y: t.bottom
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
x: o,
|
|
450
|
-
y: t.bottom
|
|
451
|
-
}
|
|
452
|
-
],
|
|
453
|
-
side: n
|
|
454
|
-
}), window.clearTimeout(l.current), l.current = window.setTimeout(() => s.onPointerGraceIntentChange(null), 300);
|
|
455
|
-
} else {
|
|
456
|
-
if (s.onTriggerLeave(e), e.defaultPrevented) return;
|
|
457
|
-
s.onPointerGraceIntentChange(null);
|
|
458
|
-
}
|
|
459
|
-
})),
|
|
460
|
-
onKeyDown: o(t.onKeyDown, (e) => {
|
|
461
|
-
t.disabled || e.target !== e.currentTarget || s.searchRef.current !== "" && e.key === " " || O[i.dir].includes(e.key) && (r.onOpenChange(!0), r.content?.focus(), e.preventDefault());
|
|
462
|
-
})
|
|
463
|
-
})
|
|
464
|
-
});
|
|
465
|
-
}, "MenuSubTrigger")), Le = "MenuSubContent", Re = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, n) {
|
|
466
|
-
let r = B(H, t.__scopeMenu), { forceMount: i = r.forceMount, align: a = "start", ...c } = t, l = F(H, t.__scopeMenu), u = I(H, t.__scopeMenu), d = Pe(Le, t.__scopeMenu), f = x.useRef(null), p = e(n, f);
|
|
467
|
-
return /* @__PURE__ */ S(A.Provider, {
|
|
468
|
-
scope: t.__scopeMenu,
|
|
469
|
-
children: /* @__PURE__ */ S(s, {
|
|
470
|
-
present: i || l.open,
|
|
471
|
-
children: /* @__PURE__ */ S(A.Slot, {
|
|
472
|
-
scope: t.__scopeMenu,
|
|
473
|
-
children: /* @__PURE__ */ S(W, {
|
|
474
|
-
id: d.contentId,
|
|
475
|
-
"aria-labelledby": d.triggerId,
|
|
476
|
-
...c,
|
|
477
|
-
ref: p,
|
|
478
|
-
align: a,
|
|
479
|
-
side: u.dir === T.RTL ? "left" : "right",
|
|
480
|
-
disableOutsidePointerEvents: !1,
|
|
481
|
-
disableOutsideScroll: !1,
|
|
482
|
-
trapFocus: !1,
|
|
483
|
-
onOpenAutoFocus: (e) => {
|
|
484
|
-
u.isUsingKeyboardRef.current && f.current?.focus(), e.preventDefault();
|
|
485
|
-
},
|
|
486
|
-
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
487
|
-
onFocusOutside: o(t.onFocusOutside, (e) => {
|
|
488
|
-
e.target !== d.trigger && l.onOpenChange(!1);
|
|
489
|
-
}),
|
|
490
|
-
onEscapeKeyDown: o(t.onEscapeKeyDown, (e) => {
|
|
491
|
-
u.onClose(), e.preventDefault();
|
|
492
|
-
}),
|
|
493
|
-
onKeyDown: o(t.onKeyDown, (e) => {
|
|
494
|
-
let t = e.currentTarget.contains(e.target), n = ce[u.dir].includes(e.key);
|
|
495
|
-
t && n && (l.onOpenChange(!1), d.trigger?.focus(), e.preventDefault());
|
|
496
|
-
})
|
|
497
|
-
})
|
|
498
|
-
})
|
|
499
|
-
})
|
|
500
|
-
});
|
|
501
|
-
}, "MenuSubContent"));
|
|
502
|
-
function X(e) {
|
|
503
|
-
return e ? "open" : "closed";
|
|
504
|
-
}
|
|
505
|
-
w(X, "getOpenState");
|
|
506
|
-
function Z(e) {
|
|
507
|
-
return e === "indeterminate";
|
|
508
|
-
}
|
|
509
|
-
w(Z, "isIndeterminate");
|
|
510
|
-
function Q(e) {
|
|
511
|
-
return Z(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
512
|
-
}
|
|
513
|
-
w(Q, "getCheckedState");
|
|
514
|
-
function ze(e) {
|
|
515
|
-
let t = document.activeElement;
|
|
516
|
-
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
517
|
-
}
|
|
518
|
-
w(ze, "focusFirst");
|
|
519
|
-
function Be(e, t) {
|
|
520
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
521
|
-
}
|
|
522
|
-
w(Be, "wrapArray");
|
|
523
|
-
function Ve(e, t, n) {
|
|
524
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Be(e, Math.max(i, 0));
|
|
525
|
-
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
526
|
-
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
527
|
-
return o === n ? void 0 : o;
|
|
528
|
-
}
|
|
529
|
-
w(Ve, "getNextMatch");
|
|
530
|
-
function He(e, t) {
|
|
531
|
-
let { x: n, y: r } = e, i = !1;
|
|
532
|
-
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
533
|
-
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
534
|
-
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
|
|
535
|
-
}
|
|
536
|
-
return i;
|
|
537
|
-
}
|
|
538
|
-
w(He, "isPointInPolygon");
|
|
539
|
-
function Ue(e, t) {
|
|
540
|
-
return t ? He({
|
|
541
|
-
x: e.clientX,
|
|
542
|
-
y: e.clientY
|
|
543
|
-
}, t) : !1;
|
|
544
|
-
}
|
|
545
|
-
w(Ue, "isPointerInGraceArea");
|
|
546
|
-
function $(e) {
|
|
547
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
548
|
-
}
|
|
549
|
-
w($, "whenMouse");
|
|
550
|
-
//#endregion
|
|
551
|
-
export { G as a, ye as c, Ee as d, je as f, M as g, Ie as h, he as i, V as l, Re as m, L as n, q as o, Fe as p, xe as r, Ae as s, pe as t, we as u };
|
package/dist/dist-C_iFkwIX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=48,t=(t,n=0)=>{let r=new Int32Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i)-e-n;return r},n=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},r=t=>{let n=new Int32Array(t.length),r=0;for(let i=0;i<t.length;i++){let a=t.charCodeAt(i)-e;r+=a>>>1^-(a&1),n[i]=r}return n},i=384,a=[],o=n(t(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),s=n(t(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),c=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,l=(()=>{let e=o.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=o[n];i<o[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(o[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=o[i];a<o[i+1];a++)n[r++]=e,e+=t[e]}return n})(),u=t(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),d=n(t(`123333359346463635126536711576`)),f=t(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),p=t(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),m=r(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),h=(()=>{let e=new Int32Array(319).fill(-1),t=r(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=r(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),g=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),_=r(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),v=r(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),y=r(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±`),b=new Int32Array(995),ee=new Int32Array(995),x=new Int32Array(995),S=``,C=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<_.length;r++)for(let i of g[y[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),C[a*2]=S.length,C[a*2+1]=i.length,S+=i),b[n]=_[r],ee[n]=v[r],x[n]=a,n++}}var te=r(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),w=n(t(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),T=r(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),E=t(`ij`),D=t(``),O=t(`1`),ne={GROUP_COUNT:i,customValidatorNames:a,edgeStart:o,labelStart:s,labelText:c,edgeTarget:l,nodeGroup:u,nodeVlist:h,vlistPat:d,vlistOps:f,vlistRef:p,vlistGroup:m,litAnchor:b,litGroup:ee,litPool:x,poolOffsets:C,poolText:S,adjGid:te,adjStart:w,adjTgt:T,patGid:E,patTgt:D,postfixLookupGroups:O,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},re=`line`in Error(),k=-1,A=-1,j=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},M=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15|0},N=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:ee,patGid:x,patTgt:S,postfixLookupGroups:C,customValidatorNames:te,orderSensitiveModifiers:w}=e,T=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)T[y[e]]=e;let E=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>E&&(E=t)}let D=32;for(;D<2*(1+E+x.length);)D<<=1;let O=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)O[e+1]=O[e]+u[f[e]+1]-u[f[e]];let ne=new Uint8Array(r);for(let e=0;e<C.length;e++)ne[C[e]]=1;let N=i.length-1,P=new Uint8Array(N),F=0,ie=!0;for(let e=0;e<m.length;e++){P[m[e]]=1;let t=_[g[e]*2+1];t>F&&(F=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(ie=!1)}let L=1;for(;L<m.length*2;)L<<=1;let R=new Int32Array(L).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(j(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&L-1;for(;R[n]!==-1;)n=n+1&L-1;R[n]=e}let z=(e,t,n,r)=>{let i=(j(t,n,r)^Math.imul(e,2654435761)|0)&L-1,a=r-n;for(;;){let r=R[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&L-1}},B=n.cacheSize??8192,V=n.prefix??e.prefix??``,ae=V===``?``:V+`:`,oe=ae.length,se=(te??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),ce=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,le=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ue=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,de=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=0,fe=-1,pe=-1,U=-1,me=-1,he=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,ge=e=>/\s/.test(String.fromCharCode(e)),_e=(e,t,n)=>{if(H=0,fe=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)H=1;else if(r===40&&i===41)H=2;else return;U=t+1,me=n-1;let a=t+1;if(he(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!he(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(fe=t+1,pe=a,U=a+1)}},ve=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},ye=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,be=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xe=e=>!!e&&!Number.isNaN(Number(e)),Se=(e,t,n)=>{if(n-t<11||!ve(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ve(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ve(e,t+10,t+18,`-normal/`)},Ce=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],we=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Te=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Ee=(e,t,n,r)=>{if(e>=10){if(e>=25)return se[e-25](t.slice(n,r));let i=e-10;if(H!==Ce[i])return!1;if(fe>=0){for(let e of we[i])if(ve(t,fe,pe,e))return!0;return!1}switch(Te[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(U,me);return ce.test(e)&&!le.test(e)}case 3:return xe(t.slice(U,me));case 4:return de.test(t.slice(U,me));default:return ue.test(t.slice(U,me))}}switch(e){case 0:return!0;case 1:return H===0;case 2:return H===1;case 3:return H===2;case 4:return ye.test(t.slice(n,r));case 5:return xe(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&xe(t.slice(n,r-1));case 8:return be.test(t.slice(n,r));default:return Se(t,n,r)}},De=new Set(typeof w==`string`?w.split(` `):w),Oe=(e,t,n,r,i,a)=>{let o=j(t,n,r)^(i?2654435769:0)|0,s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(!(a.imp!==i||a.k.length!==r-n)){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},ke=new Map,Ae=new Map,je=2,Me=4096,Ne=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||De.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=Ae.get(s);return c===void 0&&Ae.set(s,c=je++),c},Pe=new Map,Fe=r,Ie=r+4096,Le=()=>Fe++,Re=2097152,ze=8192,Be=new Int32Array(ze),W=Array(ze).fill(null),Ve=new Int32Array(ze),He=new Int32Array(ze),Ue=new Uint8Array(ze),We=0,Ge=(e,t,n,r,i,a,o,s)=>{let c=e;if(W[e]!==null)if(W[e|1]===null)c=e|1;else if(!(We++&3))c=e|We>>2&1;else return;W[c]=t.slice(n,r),Be[c]=i,Ve[c]=a,He[c]=o,Ue[c]=s},Ke=()=>W.fill(null),G=256,qe=[new Int32Array(G),new Int32Array(G),new Int32Array(G),new Int32Array(G)],[K,q,J,Je]=qe,Ye=new Uint8Array(G),Xe=new Uint8Array(G),Ze=()=>{G*=2,qe=qe.map(e=>{let t=new Int32Array(G);return t.set(e),t}),[K,q,J,Je]=qe;let e=new Uint8Array(G);e.set(Ye),Ye=e,Xe=new Uint8Array(G)},Qe=64,$e=new Int32Array(Qe),et=new Int32Array(Qe),tt=new Int32Array(r),Y=2048,nt=21,rt=new Float64Array(Y),it=new Int32Array(Y),X=0,at=(e,t)=>{if(e===0&&t<r)return tt[t]===X?1:(tt[t]=X,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>nt;for(;it[i]===X;){if(rt[i]===n)return 1;i=i+1&Y-1}return rt[i]=n,it[i]=X,0},ot=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?k:Oe(Pe,e,t+1,r,0,Le)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=et[t];if(r>n)continue;let i=$e[t],a=n-r;if(P[i]===1&&a>0&&a<=F){let t=e.charCodeAt(r);if(ie===!1||t!==91&&t!==40){let t=z(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;_e(e,r,n);let h=O[o]-c;for(let t=c;t<m;t++)if(Ee(d[t],e,r,n))return p[h+t]}return k},st=e=>{let t=e.length,n=0,c=0,u=!1;(je>Me||ke.size>Me)&&(ke=new Map,Ae=new Map,je=2,Ke()),Fe>Ie&&(Pe=new Map,Fe=r,Ke());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&ge(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&ge(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===G&&Ze();let _=n++;K[_]=p,q[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15|0,y=v&8190;{let t=-1;if(Be[y]===v&&W[y]!==null&&W[y].length===g?t=y:Be[y|1]===v&&W[y|1]!==null&&W[y|1].length===g&&(t=y|1),t>=0){let n=W[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){J[_]=Ve[t],Je[_]=He[t],Ye[_]=Ue[t];continue}}}let b=p;if(oe!==0){if(h-p<=oe||!e.startsWith(ae,p)){J[_]=k,Ge(y,e,p,h,v,k,0,0);continue}b=p+oe}let ee=0,x=0,S=-1,C=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(ee===0&&x===0){if(n===58){S=t;continue}if(n===47){C=t;continue}}n===91?ee++:n===93?ee--:n===40?x++:n===41&&x--}let te=S>=b?S+1:b,w=te,T=h,E=!1,D=0;T>w&&e.charCodeAt(T-1)===33?(E=!0,T--):T>w&&e.charCodeAt(w)===33&&(E=!0,w++,D=1);let O=-1;C>te&&(O=C+D,O>=T&&(O=-1));let re=w;T-w>1&&e.charCodeAt(w)===45&&(re=w+1);let j=0,M=0,N=0,F=-1,I=0;(l[0]>=0||P[0]===1)&&($e[0]=0,et[0]=re,I=1);let ie=A,L=0;for(let t=re;t<T;t++)if(t===O&&(ie=M<N?A:j,L=I),j!==A){let n=e.charCodeAt(t),r=-1;if(M<N)o.charCodeAt(M)===n?(M++,M===N&&(r=j=F)):j=A;else{let e=i[j],t=i[j+1],c=A;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(M=e+1,N=a[i+1],F=s[i],c=j);break}}j=c}if(r>=0&&(l[r]>=0||P[r]===1)&&t+1<T&&e.charCodeAt(t+1)===45){if(I===Qe){Qe*=2;let e=new Int32Array(Qe);e.set($e),$e=e;let t=new Int32Array(Qe);t.set(et),et=t}$e[I]=r,et[I]=t+2,I++}}O===T&&(ie=M<N?A:j,L=I);let R=M<N?A:j,z,B=!1;if(O>=0)if(B=!0,z=ot(e,w,O,ie,L),z!==k&&z<r&&ne[z]){let t=ot(e,w,T,R,I);t!==k&&t!==z&&(z=t,B=!1)}else z===k&&(z=ot(e,w,T,R,I),B=!1);else z=ot(e,w,T,R,I);let V=0,se=0;z===k?J[_]=k:(se=+!!B,V=b>=S?+!!E:Oe(ke,e,b,S,+!!E,e=>Ne(e,E)),J[_]=z,Ye[_]=se,Je[_]=V),Ge(y,e,p,h,v,z,V,se)}if(n===0)return``;if(n===1)return K[0]===0&&q[0]===t?e:e.slice(K[0],q[0]);if(n*D>Y){for(;n*D>Y;)Y<<=1,nt--;rt=new Float64Array(Y),it=new Int32Array(Y)}if(je>=Re||Fe>=Re)throw Error(`cn: too many distinct classes in one merge`);X=X+1|0,X===0&&(tt.fill(0),it.fill(0),X=1);let f=!1;for(let e=n-1;e>=0;e--){let t=J[e];if(t===k){Xe[e]=1;continue}let n=Je[e];if(at(n,t)===1){Xe[e]=0,f=!0;continue}if(Xe[e]=1,t<r){let r=T[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)at(n,ee[e]);if(Ye[e]&1)for(let e=0;e<x.length;e++)x[e]===t&&at(n,S[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!Xe[m]){m++;continue}let t=K[m],r=q[m],i=m+1;for(;i<n&&Xe[i]&&K[i]===r+1&&e.charCodeAt(r)===32;)r=q[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},Z=16384,Q=new Int32Array(Z*2),ct=0,$=1,lt=Object.create(null),ut=Object.create(null),dt=new Map,ft=new Map,pt=0,mt=0,ht=()=>{ct^=Z,$=$+1|0,mt=0},gt=e=>{let t=lt[e];if(t!==void 0)return t;let n=M(e,0,e.length),r=(n&16383)+ct,i=Q[r]===(n^$)||Q[r^Z]===(n^$-1);return i&&(t=ut[e],t!==void 0)?(lt[e]=t,t):(t=st(e),i?(lt[e]=t,++pt>B&&(pt=0,ut=lt,lt=Object.create(null),ht())):(Q[r]=n^$,++mt>Z&&ht()),t)},_t=e=>{let t=dt.get(e);if(t!==void 0)return t;let n=M(e,0,e.length),r=(n&16383)+ct,i=Q[r]===(n^$)||Q[r^Z]===(n^$-1);return i&&(t=ft.get(e),t!==void 0)?(dt.set(e,t),t):(t=st(e),i?(dt.set(e,t),++pt>B&&(pt=0,ft=dt,dt=new Map,ht())):(Q[r]=n^$,++mt>Z&&ht()),t)},vt=e=>{let t=M(e,0,e.length),n=(t&16383)+ct;return Q[n]===(t^$)||Q[n^Z]===(t^$-1)?!0:(Q[n]=t^$,++mt>Z&&ht(),!1)},yt=B===0?st:re?e=>{let t=dt.get(e);return t===void 0?_t(e):t}:gt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?yt(arguments[0]):yt(I.apply(null,arguments))},mergeString:yt,seenBefore:B===0?()=>!1:vt,mergeUncached:st}},P=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:P(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},F=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:P(i,t);a&&(n&&(n+=` `),n+=a)}return n},I=function(){return F(arguments,!1)},ie=256,L=16,R=1024,z=4096,B=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(z).fill(``),l=Array(z).fill(``),u=Array(z).fill(``));let i=M(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=P(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>L&&(_.miss=L,_.skip=R,_.e.length=0,_.at=0);let u=_.e;u.length<ie?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(P(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},V=N(ne),ae=B(V.mergeString,V);V.merge,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return ae}});
|
package/dist/dist-ClYM7l1t.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-DYUvPCPC.js"),i=require("./dist-CGgemr2V.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-YAADIsyo.js"),s=require("./dist-D7-Fky36.js"),c=require("./dist-C8Pm6LRc.js"),l=require("./dist-BU-TFzJf.js"),u=require("./dist-Qm9hFvM1.js"),d=require("./dist-1zUKVGvf.js"),f=require("./es2015-DbAsWDbs.js");let p=require("react");p=e.r(p,1);let m=require("react/jsx-runtime");var h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0}),_=`Dialog`,[v,y]=r.t(_),[b,x]=v(_),S=g(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=p.useRef(null),d=p.useRef(null),{nodes:f,registry:h}=u.i(),[g,v]=o.t({prop:r,defaultProp:i??!1,onChange:a,caller:_}),[y,x]=p.useState(0),[S,C]=p.useState(0);return(0,m.jsx)(b,{scope:t,triggerRef:l,contentRef:d,contentId:c.t(),titleId:c.t(),descriptionId:c.t(),titlePresent:y>0,descriptionPresent:S>0,setTitleCount:x,setDescriptionCount:C,open:g,onOpenChange:v,onOpenToggle:p.useCallback(()=>v(e=>!e),[v]),modal:s,branchNodes:f,branchRegistry:h,children:n})},`Dialog`),C=`DialogTrigger`,w=p.forwardRef(g(function(e,r){let{__scopeDialog:i,...o}=e,s=x(C,i),c=t.a(r,s.triggerRef);return(0,m.jsx)(n.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":U(s.open),...o,ref:c,onClick:a.t(e.onClick,s.onOpenToggle)})},`DialogTrigger`)),T=`DialogPortal`,[E,D]=v(T,{forceMount:void 0}),O=g(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=x(T,t);return(0,m.jsx)(E,{scope:t,forceMount:n,children:p.Children.map(r,e=>(0,m.jsx)(s.t,{present:n||a.open,children:(0,m.jsx)(d.t,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),k=`DialogOverlay`,A=p.forwardRef(g(function(e,t){let n=D(k,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=x(k,e.__scopeDialog);return a.modal?(0,m.jsx)(s.t,{present:r||a.open,children:(0,m.jsx)(M,{...i,ref:t})}):null},`DialogOverlay`)),j=t.n(`DialogOverlay.RemoveScroll`),M=p.forwardRef(g(function(e,r){let{__scopeDialog:i,...a}=e,o=x(k,i),s=t.a(r,l.r());return(0,m.jsx)(f.n,{as:j,allowPinchZoom:!0,shards:p.useMemo(()=>[o.contentRef,...o.branchNodes.map(e=>({current:e}))],[o.contentRef,o.branchNodes]),children:(0,m.jsx)(n.t.div,{"data-state":U(o.open),...a,ref:s,style:{pointerEvents:`auto`,...a.style}})})},`DialogOverlayImpl`)),N=`DialogContent`,P=p.forwardRef(g(function(e,t){let n=D(N,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=x(N,e.__scopeDialog);return(0,m.jsx)(s.t,{present:r||a.open,children:a.modal?(0,m.jsx)(F,{...i,ref:t}):(0,m.jsx)(I,{...i,ref:t})})},`DialogContent`)),F=p.forwardRef(g(function(e,n){let r=x(N,e.__scopeDialog),i=p.useRef(null),o=t.a(n,r.contentRef,i);return p.useEffect(()=>{let e=i.current;if(e)return f.t(e)},[]),(0,m.jsx)(L,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:a.t(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:a.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:a.t(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),I=p.forwardRef(g(function(e,t){let n=x(N,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return(0,m.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),L=p.forwardRef(g(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,d=x(N,n);return f.r(),(0,m.jsx)(u.n,{registry:d.branchRegistry,children:(0,m.jsx)(u.t,{asChild:!0,loop:!0,trapped:r,branches:d.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,m.jsx)(l.t,{role:`dialog`,id:d.contentId,"aria-labelledby":d.titlePresent?d.titleId:void 0,"aria-describedby":d.descriptionPresent?H(o,d.descriptionId):o,"data-state":U(d.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),R=p.forwardRef(g(function(e,t){let{__scopeDialog:r,...a}=e,o=x(`DialogTitle`,r),{setTitleCount:s}=o;return i.t(()=>(s(e=>e+1),()=>s(e=>e-1)),[s]),(0,m.jsx)(n.t.h2,{id:o.titleId,...a,ref:t})},`DialogTitle`)),z=p.forwardRef(g(function(e,t){let{__scopeDialog:r,...a}=e,o=x(`DialogDescription`,r),{setDescriptionCount:s}=o;return i.t(()=>(s(e=>e+1),()=>s(e=>e-1)),[s]),(0,m.jsx)(n.t.p,{id:o.descriptionId,...a,ref:t})},`DialogDescription`)),B=`DialogClose`,V=p.forwardRef(g(function(e,t){let{__scopeDialog:r,...i}=e,o=x(B,r);return(0,m.jsx)(n.t.button,{type:`button`,...i,ref:t,onClick:a.t(e.onClick,()=>o.onOpenChange(!1))})},`DialogClose`));function H(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}g(H,`concatAriaDescribedby`);function U(e){return e?`open`:`closed`}g(U,`getState`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return S}});
|