@vokril/ui-solid 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +3 -1
- package/dist/{AttributeGrid-7cLOWtPn.cjs → AttributeGrid-Qzt5LYnu.cjs} +1 -1
- package/dist/{AttributeGrid-CVyqzT7-.js → AttributeGrid-XTVaiwLe.js} +2 -2
- package/dist/Button-U95Tz8F5.cjs +1 -0
- package/dist/Button-qtxB2SYf.js +305 -0
- package/dist/CommandPalette-CBA_Shqx.js +3968 -0
- package/dist/CommandPalette-CBFIo0FX.cjs +2 -0
- package/dist/{CopyButton-BtgGbiy9.cjs → CopyButton-CsM8UeX5.cjs} +1 -1
- package/dist/{CopyButton-BF7L1TCO.js → CopyButton-NfxWzVHT.js} +1 -1
- package/dist/{DateRangePicker-Ce2tTbJ4.cjs → DateRangePicker-BKHxyHL4.cjs} +1 -1
- package/dist/{DateRangePicker-jSQBwB78.js → DateRangePicker-C8IVJRT2.js} +3 -3
- package/dist/{GuidedTour-CYaR5Ozj.cjs → GuidedTour-B61cbsdy.cjs} +1 -1
- package/dist/{GuidedTour-CWDtBRHv.js → GuidedTour-Dj41FCdE.js} +2 -2
- package/dist/{HostPortal-X1iw719T.js → HostPortal-CXGUUhP8.js} +1 -1
- package/dist/{HostPortal-B9Tzk_uN.cjs → HostPortal-CgJwxt-f.cjs} +1 -1
- package/dist/{IconPicker-4bdAeGxS.cjs → IconPicker-BZCQG8SO.cjs} +1 -1
- package/dist/{IconPicker-Df6uIUpJ.js → IconPicker-DC9E35Ou.js} +2 -2
- package/dist/{Modal-CQG8l4x7.cjs → Modal-CaurOG_K.cjs} +1 -1
- package/dist/{Modal-CUPe98-o.js → Modal-DJpQqqTJ.js} +2 -2
- package/dist/{PageSkeleton-CUTLh9Ip.js → PageSkeleton-C0eVQO20.js} +2 -2
- package/dist/{PageSkeleton-C3mo6UGh.cjs → PageSkeleton-DICmahMs.cjs} +1 -1
- package/dist/{Popover-YfzC0Tjh.cjs → Popover-CWrR51eG.cjs} +1 -1
- package/dist/{Popover-Dht1jFEy.js → Popover-Cttb6NYT.js} +1 -1
- package/dist/{SearchableSelect-pCaUie2M.cjs → SearchableSelect-ClrAX2hK.cjs} +1 -1
- package/dist/{SearchableSelect-C01brsF0.js → SearchableSelect-DayP1Qs6.js} +2 -2
- package/dist/{StatusBarNotificationBell-BwqVV09r.js → StatusBarNotificationBell-CQkhUMHX.js} +6 -6
- package/dist/{StatusBarNotificationBell-C5Zc2IvW.cjs → StatusBarNotificationBell-Dw9RRZK1.cjs} +1 -1
- package/dist/{Stepper-CtaTpnQu.cjs → Stepper-DTuchuOX.cjs} +1 -1
- package/dist/{Stepper-38IAEOyT.js → Stepper-aiuAdbkl.js} +1 -1
- package/dist/{TimeSeriesChart-_NOs_Job.cjs → TimeSeriesChart-CvU0lxar.cjs} +1 -1
- package/dist/{TimeSeriesChart-ByKG4E1G.js → TimeSeriesChart-SHx_cp8y.js} +1 -1
- package/dist/ToggleButton-BcHNAGPy.cjs +1 -0
- package/dist/{ToggleButton-D-N0C2Fu.js → ToggleButton-BhP17bvW.js} +277 -276
- package/dist/_internal/platform/settings/settingsTypes.d.cts +5 -0
- package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createDialogShellFocus-CxRqhbRN.cjs → createDialogShellFocus-CsrZ2GDZ.cjs} +1 -1
- package/dist/{createDialogShellFocus-BBFu3Z_O.js → createDialogShellFocus-Vv3hhW-I.js} +2 -2
- package/dist/{createResizableSidebar-q7aC7SAO.cjs → createResizableSidebar-Dau7TIuH.cjs} +1 -1
- package/dist/{createResizableSidebar-CfFxQUny.js → createResizableSidebar-gvf9me4K.js} +2 -2
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +2 -2
- package/dist/{dialogFocusRestore-BrALT8Ew.js → dialogFocusRestore--dH59ER2.js} +1 -1
- package/dist/{dialogFocusRestore-CcEsB50v.cjs → dialogFocusRestore-CL-ExfAA.cjs} +1 -1
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +2 -2
- package/dist/fonts/inter.css +8 -0
- package/dist/fonts/jetbrains-mono.css +8 -0
- package/dist/forms/Button.d.cts +6 -1
- package/dist/forms/Button.d.ts +6 -1
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +7 -7
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +53 -53
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/ConfirmDialog.d.cts +18 -11
- package/dist/overlay/ConfirmDialog.d.ts +18 -11
- package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
- package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +50 -50
- package/dist/overlay-stack/index.cjs +1 -1
- package/dist/overlay-stack/index.js +1 -1
- package/dist/overlayStack-Bj6Lg1Rm.js +209 -0
- package/dist/overlayStack-eD8AmuwY.cjs +1 -0
- package/dist/server/{AttributeGrid-C7aWbIe5.cjs → AttributeGrid-C_CvCXpC.cjs} +1 -1
- package/dist/server/{AttributeGrid-B2s_rp00.js → AttributeGrid-D8QYVZDq.js} +2 -2
- package/dist/server/{Button-Ck03cbUs.js → Button-BPNNFcHc.js} +73 -71
- package/dist/server/Button-VKl-_GaO.cjs +1 -0
- package/dist/server/CommandPalette-CRT5VEoR.cjs +1 -0
- package/dist/server/{CommandPalette-2UppyMxU.js → CommandPalette-DE59Rq-n.js} +1006 -1053
- package/dist/server/{CopyButton-UvtFwOtA.js → CopyButton-HDffWzaN.js} +1 -1
- package/dist/server/{CopyButton-BOmAUQD4.cjs → CopyButton-rWDnbTBF.cjs} +1 -1
- package/dist/server/{DateRangePicker-Cr58DczM.js → DateRangePicker-Dl3zr-PD.js} +3 -3
- package/dist/server/{DateRangePicker-BJteKzOY.cjs → DateRangePicker-Dq0HGz27.cjs} +1 -1
- package/dist/server/{GuidedTour-Rlsp8rOe.cjs → GuidedTour-BoPGRyX5.cjs} +1 -1
- package/dist/server/{GuidedTour-C4msn-Ag.js → GuidedTour-CIlHyRcR.js} +2 -2
- package/dist/server/{HostPortal-X1iw719T.js → HostPortal-CXGUUhP8.js} +1 -1
- package/dist/server/{HostPortal-B9Tzk_uN.cjs → HostPortal-CgJwxt-f.cjs} +1 -1
- package/dist/server/{IconPicker-9DfOxql6.cjs → IconPicker-BDS92veL.cjs} +1 -1
- package/dist/server/{IconPicker-N0wub1Aj.js → IconPicker-CZxYKJOT.js} +3 -3
- package/dist/server/{Modal-D__GTo-n.cjs → Modal-CtJFoR96.cjs} +1 -1
- package/dist/server/{Modal-DeQjfpkG.js → Modal-j54-C2Md.js} +3 -3
- package/dist/server/{PageSkeleton-D4i-UcnI.cjs → PageSkeleton-B0V43uDV.cjs} +1 -1
- package/dist/server/{PageSkeleton-C41pXOcr.js → PageSkeleton-BfGfda9G.js} +2 -2
- package/dist/server/{Popover-AYYDbpLv.cjs → Popover-BsxIKBbl.cjs} +1 -1
- package/dist/server/{Popover-BolicH3A.js → Popover-Cg28aPUZ.js} +1 -1
- package/dist/server/{SearchableSelect-Ca9g8ztu.cjs → SearchableSelect-ClQzcYdL.cjs} +1 -1
- package/dist/server/{SearchableSelect-CEcuBnge.js → SearchableSelect-DtcMC7Xu.js} +2 -2
- package/dist/server/{StatusBarNotificationBell-DyEQF2W7.js → StatusBarNotificationBell-C7zqUWP1.js} +6 -6
- package/dist/server/{StatusBarNotificationBell-BotYny7q.cjs → StatusBarNotificationBell-SO16PL5V.cjs} +1 -1
- package/dist/server/{Stepper-B_eL85hK.js → Stepper-B7wf8h9G.js} +1 -1
- package/dist/server/{Stepper--pusyxso.cjs → Stepper-CCEItuZb.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-aSHquoBv.js → TimeSeriesChart-DjNQiCn_.js} +1 -1
- package/dist/server/{TimeSeriesChart-nZeB5jtN.cjs → TimeSeriesChart-TsaZS7YU.cjs} +1 -1
- package/dist/server/{ToggleButton-DjlWwgLJ.js → ToggleButton-CHaIvApv.js} +39 -39
- package/dist/server/ToggleButton-D6Tux9wG.cjs +1 -0
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createDialogShellFocus-DNjzmcGj.js → createDialogShellFocus-BFo8awdj.js} +1 -1
- package/dist/server/{createDialogShellFocus-PRRfMli-.cjs → createDialogShellFocus-BiBAZOCI.cjs} +1 -1
- package/dist/server/{createResizableSidebar-DdWdAB9l.js → createResizableSidebar-BQG5elmd.js} +2 -2
- package/dist/server/{createResizableSidebar-CZtGmUnA.cjs → createResizableSidebar-tU8FO2MK.cjs} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +2 -2
- package/dist/server/{dialogFocusRestore-BrALT8Ew.js → dialogFocusRestore--dH59ER2.js} +1 -1
- package/dist/server/{dialogFocusRestore-CcEsB50v.cjs → dialogFocusRestore-CL-ExfAA.cjs} +1 -1
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{index-Cqod09d_.cjs → index-BfR3Xipt.cjs} +1 -1
- package/dist/server/{index-BNYr6EIW.js → index-Wv18Fcu8.js} +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +138 -138
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +1 -1
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +40 -40
- package/dist/server/overlay-stack/index.cjs +1 -1
- package/dist/server/overlay-stack/index.js +1 -1
- package/dist/server/overlayStack-Bj6Lg1Rm.js +209 -0
- package/dist/server/overlayStack-eD8AmuwY.cjs +1 -0
- package/dist/{useFloatingDropdown-BN4J092P.js → server/useFloatingDropdown-2Tz_es0W.js} +1 -1
- package/dist/server/{useFloatingDropdown-D9OvEFAp.cjs → useFloatingDropdown-D5UayoN6.cjs} +1 -1
- package/dist/solid/forms/Button.jsx +1 -0
- package/dist/solid/forms/Button.module.css.js +1 -0
- package/dist/solid/forms/Slider.jsx +6 -3
- package/dist/solid/overlay/ConfirmDialog.jsx +14 -26
- package/dist/solid/overlay/overlayStack.js +10 -3
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/{server/useFloatingDropdown-BN4J092P.js → useFloatingDropdown-2Tz_es0W.js} +1 -1
- package/dist/{useFloatingDropdown-D9OvEFAp.cjs → useFloatingDropdown-D5UayoN6.cjs} +1 -1
- package/package.json +4 -2
- package/dist/Button-BiKPB3cH.js +0 -303
- package/dist/Button-Nx7byQZc.cjs +0 -1
- package/dist/CommandPalette-BFi0_e3t.cjs +0 -2
- package/dist/CommandPalette-CAH08DGN.js +0 -4013
- package/dist/ToggleButton-Bz3zAtec.cjs +0 -1
- package/dist/overlayStack-DvGdPMdq.js +0 -203
- package/dist/overlayStack-DvKYN7SD.cjs +0 -1
- package/dist/server/Button-DWFMF5y0.cjs +0 -1
- package/dist/server/CommandPalette-DwpZyhO6.cjs +0 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +0 -1
- package/dist/server/overlayStack-DvGdPMdq.js +0 -203
- package/dist/server/overlayStack-DvKYN7SD.cjs +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ssr as g, escape as t, createComponent as n, memo as ee, ssrAttribute as o, Portal as Me, ssrStyleProperty as Z, mergeProps as
|
|
2
|
-
import { createSignal as
|
|
1
|
+
import { ssr as g, escape as t, createComponent as n, memo as ee, ssrAttribute as o, Portal as Me, ssrStyleProperty as Z, mergeProps as st, ssrStyle as Ct } from "solid-js/web";
|
|
2
|
+
import { createSignal as D, onCleanup as Y, Show as w, createEffect as oe, on as He, createUniqueId as G, createComputed as $t, onMount as Ue, For as me, splitProps as St, createMemo as U, createRenderEffect as Lt } from "solid-js";
|
|
3
3
|
import { K as it } from "./Kbd-BTbz_c_e.js";
|
|
4
|
-
import { s as It, r as
|
|
5
|
-
import { B as Q } from "./Button-
|
|
4
|
+
import { s as It, r as Qe, O as Le } from "./dialogFocusRestore--dH59ER2.js";
|
|
5
|
+
import { B as Q } from "./Button-BPNNFcHc.js";
|
|
6
6
|
import { I as Ve, P as ye, F as xt } from "./Input-DaEN2JJd.js";
|
|
7
7
|
import { T as At } from "./Textarea-BTH48NET.js";
|
|
8
8
|
import { O as be } from "./OverlayScrollArea-221dfKyz.js";
|
|
9
|
-
import { a as
|
|
10
|
-
import { t as u, l as
|
|
11
|
-
import { A as ct, V as
|
|
12
|
-
import { b as z, P as Ce } from "./GuidedTour-
|
|
9
|
+
import { a as qe, g as Ae } from "./window-CUK6x8Pj.js";
|
|
10
|
+
import { t as u, l as Tt } from "./i18n-DW9kcu0G.js";
|
|
11
|
+
import { A as ct, V as Dt, a as Mt, b as Rt } from "./Modal-j54-C2Md.js";
|
|
12
|
+
import { b as z, P as Ce } from "./GuidedTour-CIlHyRcR.js";
|
|
13
13
|
import { u as Et, D as Pt } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
14
|
-
import { o as
|
|
15
|
-
import { b as Bt, A as Ot, V as lt, e as zt } from "./Popover-
|
|
16
|
-
import { u as
|
|
14
|
+
import { o as Te } from "./ownerWindow-9mx_LD47.js";
|
|
15
|
+
import { b as Bt, A as Ot, V as lt, e as zt } from "./Popover-Cg28aPUZ.js";
|
|
16
|
+
import { u as Re } from "./overlayStack-Bj6Lg1Rm.js";
|
|
17
17
|
import { i as he } from "./keys-B2nlkpqc.js";
|
|
18
18
|
import { V as ut } from "./VpCheck-XZpSme0g.js";
|
|
19
19
|
import { V as Wt } from "./VpChevronRight-CwRCE60O.js";
|
|
20
|
-
import { V as
|
|
21
|
-
import { t as
|
|
20
|
+
import { V as je } from "./VpClose-1RAQ20H9.js";
|
|
21
|
+
import { t as Ne, s as Ee, C as Nt, k as Ft } from "./createDialogShellFocus-BFo8awdj.js";
|
|
22
22
|
import { n as Ht } from "./prefersReducedMotion-B2mMn01s.js";
|
|
23
23
|
import { V as Vt } from "./VpMinus-Z3sgLAcV.js";
|
|
24
24
|
import { E as ke } from "./EmptyState-Csydyy_7.js";
|
|
@@ -34,12 +34,12 @@ const Kt = "vk_wrapper_u7cKP", Yt = "vk_tooltip_ANskC", Ut = "vk_placementTop_Q5
|
|
|
34
34
|
placementRight: Jt
|
|
35
35
|
};
|
|
36
36
|
var Xt = ['<div role="tooltip" class="', '"><span>', "</span>", "</div>"], Zt = ['<div class="', '">', "", "</div>"];
|
|
37
|
-
const
|
|
38
|
-
const [r,
|
|
37
|
+
const Bi = (e) => {
|
|
38
|
+
const [r, a] = D(!1), c = () => e.placement ?? "top";
|
|
39
39
|
Y(() => {
|
|
40
40
|
});
|
|
41
41
|
const m = () => {
|
|
42
|
-
switch (
|
|
42
|
+
switch (c()) {
|
|
43
43
|
case "bottom":
|
|
44
44
|
return pe.placementBottom;
|
|
45
45
|
case "left":
|
|
@@ -72,42 +72,42 @@ const Oi = (e) => {
|
|
|
72
72
|
}
|
|
73
73
|
})));
|
|
74
74
|
};
|
|
75
|
-
function
|
|
76
|
-
let r = null,
|
|
75
|
+
function Ie(e) {
|
|
76
|
+
let r = null, a = null, c = null;
|
|
77
77
|
const d = () => e.ownerDocument(), m = () => {
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
|
|
78
|
+
a === null && (a = d().activeElement);
|
|
79
|
+
}, v = () => {
|
|
80
|
+
c == null || c(), c = null;
|
|
81
81
|
};
|
|
82
|
-
return
|
|
83
|
-
|
|
82
|
+
return oe(
|
|
83
|
+
He(
|
|
84
84
|
() => e.open(),
|
|
85
|
-
(
|
|
86
|
-
if (
|
|
87
|
-
r !== null &&
|
|
85
|
+
(l, b) => {
|
|
86
|
+
if (l) {
|
|
87
|
+
r !== null && c === null && (c = Ht(r));
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
It(
|
|
90
|
+
It(b, l) && (v(), Qe(a), a = null, r = null);
|
|
91
91
|
}
|
|
92
92
|
)
|
|
93
93
|
), Y(() => {
|
|
94
|
-
|
|
94
|
+
v(), Qe(a), a = null, r = null;
|
|
95
95
|
}), {
|
|
96
|
-
captureDialog: (
|
|
97
|
-
r =
|
|
96
|
+
captureDialog: (l) => {
|
|
97
|
+
r = l, m();
|
|
98
98
|
},
|
|
99
99
|
captureReturnFocus: m
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Oi() {
|
|
103
103
|
let e = !1;
|
|
104
104
|
return {
|
|
105
105
|
noteMouseDown(r) {
|
|
106
106
|
e = r;
|
|
107
107
|
},
|
|
108
108
|
shouldCloseOnClick(r) {
|
|
109
|
-
const
|
|
110
|
-
return e = !1,
|
|
109
|
+
const a = e;
|
|
110
|
+
return e = !1, a && r;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
}
|
|
@@ -125,22 +125,22 @@ const en = "vk_overlay_7-umT", tn = "vk_dialog_3YL-7", nn = "vk_header_asYMs", r
|
|
|
125
125
|
codePre: dn
|
|
126
126
|
};
|
|
127
127
|
var mn = ["<div", ' tabindex="-1"><div', ' role="alertdialog" aria-modal="true"', ' tabindex="-1"><div', "><h3", ">", "</h3></div><div", ">", "<p", ">", "</p>", "</div><div", ">", "", "</div></div></div>"], fn = ["<pre", "><code>", "</code></pre>"], gn = ["<div", ' tabindex="-1"><div', ' role="alertdialog" aria-modal="true"', ' tabindex="-1"><div', "><h3", ">", "</h3></div><div", "><p", ">", "</p></div><div", ">", "", "", "</div></div></div>"], hn = ["<p", ">", "</p>"], vn = ["<div", ' tabindex="-1"><div', ' role="dialog" aria-modal="true"', ' tabindex="-1"><div', "><h3", ">", "</h3></div><div", ">", "", "</div><div", ">", "", "</div></div></div>"];
|
|
128
|
-
const $e = (e) => ((e == null ? void 0 : e()) ??
|
|
129
|
-
function
|
|
130
|
-
const r = G(),
|
|
131
|
-
return
|
|
132
|
-
var
|
|
128
|
+
const $e = (e) => ((e == null ? void 0 : e()) ?? qe().window).document;
|
|
129
|
+
function zi(e) {
|
|
130
|
+
const r = G(), a = G(), [c, d] = D(0);
|
|
131
|
+
return oe(() => {
|
|
132
|
+
var b;
|
|
133
133
|
if (!e.open()) {
|
|
134
134
|
d(0);
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
const m = e.confirmDelaySeconds ?? 0;
|
|
138
138
|
if (d(m), m <= 0) return;
|
|
139
|
-
const
|
|
139
|
+
const v = ((b = e.host) == null ? void 0 : b.call(e)) ?? qe().window, l = v.setInterval(() => {
|
|
140
140
|
d((_) => _ <= 1 ? 0 : _ - 1);
|
|
141
141
|
}, 1e3);
|
|
142
|
-
Y(() =>
|
|
143
|
-
}),
|
|
142
|
+
Y(() => v.clearInterval(l));
|
|
143
|
+
}), Ie({
|
|
144
144
|
open: () => e.open(),
|
|
145
145
|
ownerDocument: () => $e(e.host)
|
|
146
146
|
}), n(w, {
|
|
@@ -148,19 +148,19 @@ function Wi(e) {
|
|
|
148
148
|
return e.open();
|
|
149
149
|
},
|
|
150
150
|
get children() {
|
|
151
|
-
return n(
|
|
151
|
+
return n(Le, {
|
|
152
152
|
modal: !0,
|
|
153
153
|
get mount() {
|
|
154
154
|
return $e(e.host).body;
|
|
155
155
|
},
|
|
156
156
|
idPrefix: "confirm-dialog",
|
|
157
157
|
get children() {
|
|
158
|
-
return g(mn, o("class", t(W.overlay, !0), !1), o("class", t(W.dialog, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("aria-describedby", e.place ? t(
|
|
158
|
+
return g(mn, o("class", t(W.overlay, !0), !1), o("class", t(W.dialog, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("aria-describedby", e.place ? t(a, !0) : t(void 0, !0), !1), o("class", t(W.header, !0), !1), o("id", t(r, !0), !1) + o("class", t(W.title, !0), !1), t(e.title), o("class", t(W.body, !0), !1), t(n(w, {
|
|
159
159
|
get when() {
|
|
160
160
|
return e.place;
|
|
161
161
|
},
|
|
162
162
|
children: (m) => n(ct, {
|
|
163
|
-
id:
|
|
163
|
+
id: a,
|
|
164
164
|
get place() {
|
|
165
165
|
return m();
|
|
166
166
|
}
|
|
@@ -193,13 +193,13 @@ function Wi(e) {
|
|
|
193
193
|
return (e.variant ?? "default") === "danger" ? "dangerSolid" : "primary";
|
|
194
194
|
},
|
|
195
195
|
get disabled() {
|
|
196
|
-
return
|
|
196
|
+
return c() > 0;
|
|
197
197
|
},
|
|
198
198
|
onClick: () => e.onConfirm(),
|
|
199
199
|
get children() {
|
|
200
|
-
return
|
|
200
|
+
return c() > 0 ? u("{label} ({seconds})", {
|
|
201
201
|
label: e.confirmLabel ?? u("Confirm"),
|
|
202
|
-
seconds:
|
|
202
|
+
seconds: c()
|
|
203
203
|
}) : e.confirmLabel ?? u("Confirm");
|
|
204
204
|
}
|
|
205
205
|
})));
|
|
@@ -208,9 +208,9 @@ function Wi(e) {
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Wi(e) {
|
|
212
212
|
const r = G();
|
|
213
|
-
return
|
|
213
|
+
return Ie({
|
|
214
214
|
open: () => e.open(),
|
|
215
215
|
ownerDocument: () => $e(e.host)
|
|
216
216
|
}), n(w, {
|
|
@@ -218,7 +218,7 @@ function Ni(e) {
|
|
|
218
218
|
return e.open();
|
|
219
219
|
},
|
|
220
220
|
get children() {
|
|
221
|
-
return n(
|
|
221
|
+
return n(Le, {
|
|
222
222
|
modal: !0,
|
|
223
223
|
get mount() {
|
|
224
224
|
return $e(e.host).body;
|
|
@@ -252,9 +252,13 @@ function Ni(e) {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
const r = G();
|
|
257
|
-
return
|
|
255
|
+
function Ni(e) {
|
|
256
|
+
const r = G(), [a, c] = D(e.defaultValue ?? "");
|
|
257
|
+
return oe(He(() => e.open(), (d) => {
|
|
258
|
+
d && c(e.defaultValue ?? "");
|
|
259
|
+
}, {
|
|
260
|
+
defer: !0
|
|
261
|
+
})), Ie({
|
|
258
262
|
open: () => e.open(),
|
|
259
263
|
ownerDocument: () => $e(e.host)
|
|
260
264
|
}), n(w, {
|
|
@@ -262,7 +266,7 @@ function bn(e) {
|
|
|
262
266
|
return e.open();
|
|
263
267
|
},
|
|
264
268
|
get children() {
|
|
265
|
-
return n(
|
|
269
|
+
return n(Le, {
|
|
266
270
|
modal: !0,
|
|
267
271
|
get mount() {
|
|
268
272
|
return $e(e.host).body;
|
|
@@ -289,15 +293,15 @@ function bn(e) {
|
|
|
289
293
|
return W.promptField;
|
|
290
294
|
},
|
|
291
295
|
get value() {
|
|
292
|
-
return
|
|
296
|
+
return a();
|
|
293
297
|
},
|
|
294
298
|
get placeholder() {
|
|
295
|
-
return e.placeholder;
|
|
299
|
+
return e.placeholder ?? "";
|
|
296
300
|
},
|
|
297
301
|
get "aria-label"() {
|
|
298
302
|
return e.title;
|
|
299
303
|
},
|
|
300
|
-
onInput: (
|
|
304
|
+
onInput: (d) => c(d.currentTarget.value)
|
|
301
305
|
});
|
|
302
306
|
},
|
|
303
307
|
get children() {
|
|
@@ -308,15 +312,15 @@ function bn(e) {
|
|
|
308
312
|
return W.promptField;
|
|
309
313
|
},
|
|
310
314
|
get value() {
|
|
311
|
-
return
|
|
315
|
+
return a();
|
|
312
316
|
},
|
|
313
317
|
get placeholder() {
|
|
314
|
-
return e.placeholder;
|
|
318
|
+
return e.placeholder ?? "";
|
|
315
319
|
},
|
|
316
320
|
get "aria-label"() {
|
|
317
321
|
return e.title;
|
|
318
322
|
},
|
|
319
|
-
onInput: (
|
|
323
|
+
onInput: (d) => c(d.currentTarget.value)
|
|
320
324
|
});
|
|
321
325
|
}
|
|
322
326
|
})), o("class", t(W.footer, !0), !1), t(n(Q, {
|
|
@@ -324,14 +328,14 @@ function bn(e) {
|
|
|
324
328
|
variant: "secondary",
|
|
325
329
|
onClick: () => e.onCancel(),
|
|
326
330
|
get children() {
|
|
327
|
-
return e.cancelLabel;
|
|
331
|
+
return e.cancelLabel ?? u("Cancel");
|
|
328
332
|
}
|
|
329
333
|
})), t(n(Q, {
|
|
330
334
|
size: "lg",
|
|
331
335
|
variant: "primary",
|
|
332
|
-
onClick: () => e.onConfirm(),
|
|
336
|
+
onClick: () => e.onConfirm(a()),
|
|
333
337
|
get children() {
|
|
334
|
-
return e.confirmLabel;
|
|
338
|
+
return e.confirmLabel ?? u("Save");
|
|
335
339
|
}
|
|
336
340
|
})));
|
|
337
341
|
}
|
|
@@ -339,58 +343,7 @@ function bn(e) {
|
|
|
339
343
|
}
|
|
340
344
|
});
|
|
341
345
|
}
|
|
342
|
-
|
|
343
|
-
const [e, r] = T(null), [s, l] = T(""), d = (a) => {
|
|
344
|
-
const h = e();
|
|
345
|
-
h && (h.resolve(a), r(null));
|
|
346
|
-
};
|
|
347
|
-
return [() => n(bn, {
|
|
348
|
-
open: () => e() !== null,
|
|
349
|
-
get title() {
|
|
350
|
-
var a;
|
|
351
|
-
return ((a = e()) == null ? void 0 : a.title) ?? "";
|
|
352
|
-
},
|
|
353
|
-
get message() {
|
|
354
|
-
var a;
|
|
355
|
-
return (a = e()) == null ? void 0 : a.message;
|
|
356
|
-
},
|
|
357
|
-
get placeholder() {
|
|
358
|
-
var a;
|
|
359
|
-
return ((a = e()) == null ? void 0 : a.placeholder) ?? "";
|
|
360
|
-
},
|
|
361
|
-
value: s,
|
|
362
|
-
get confirmLabel() {
|
|
363
|
-
var a;
|
|
364
|
-
return ((a = e()) == null ? void 0 : a.confirmLabel) ?? u("Save");
|
|
365
|
-
},
|
|
366
|
-
get cancelLabel() {
|
|
367
|
-
var a;
|
|
368
|
-
return ((a = e()) == null ? void 0 : a.cancelLabel) ?? u("Cancel");
|
|
369
|
-
},
|
|
370
|
-
get multiline() {
|
|
371
|
-
var a;
|
|
372
|
-
return ((a = e()) == null ? void 0 : a.multiline) === !0;
|
|
373
|
-
},
|
|
374
|
-
get secret() {
|
|
375
|
-
var a;
|
|
376
|
-
return ((a = e()) == null ? void 0 : a.secret) === !0;
|
|
377
|
-
},
|
|
378
|
-
onInput: l,
|
|
379
|
-
onConfirm: () => d(s()),
|
|
380
|
-
onCancel: () => d(null),
|
|
381
|
-
host: () => {
|
|
382
|
-
var a;
|
|
383
|
-
return ((a = e()) == null ? void 0 : a.targetWin) ?? Re().window;
|
|
384
|
-
}
|
|
385
|
-
}), (a) => new Promise((h) => {
|
|
386
|
-
l(a.defaultValue ?? ""), r({
|
|
387
|
-
...a,
|
|
388
|
-
resolve: h,
|
|
389
|
-
targetWin: Le().window
|
|
390
|
-
});
|
|
391
|
-
})];
|
|
392
|
-
}
|
|
393
|
-
const Hi = Object.freeze({
|
|
346
|
+
const Fi = Object.freeze({
|
|
394
347
|
root: z.root,
|
|
395
348
|
header: z.header,
|
|
396
349
|
headerMain: z.headerMain,
|
|
@@ -418,32 +371,32 @@ const Hi = Object.freeze({
|
|
|
418
371
|
subtitleAdmin: z.subtitleAdmin,
|
|
419
372
|
headerAdminStacked: z.headerAdminStacked
|
|
420
373
|
});
|
|
421
|
-
function
|
|
374
|
+
function bn(e) {
|
|
422
375
|
return e !== void 0 && e.type !== "separator";
|
|
423
376
|
}
|
|
424
|
-
function
|
|
377
|
+
function Hi(e) {
|
|
425
378
|
return e === "ArrowDown" || e === "ArrowUp" || e === "Home" || e === "End" || e === "ArrowRight" || e === "ArrowLeft";
|
|
426
379
|
}
|
|
427
|
-
function
|
|
428
|
-
const
|
|
429
|
-
if (
|
|
380
|
+
function De(e, r, a) {
|
|
381
|
+
const c = e.length;
|
|
382
|
+
if (c === 0) return -1;
|
|
430
383
|
let d = r;
|
|
431
|
-
for (let m = 0; m <
|
|
432
|
-
if (d = (d +
|
|
384
|
+
for (let m = 0; m < c; m++)
|
|
385
|
+
if (d = (d + a + c) % c, bn(e[d])) return d;
|
|
433
386
|
return -1;
|
|
434
387
|
}
|
|
435
388
|
function mt(e) {
|
|
436
|
-
return
|
|
389
|
+
return De(e, -1, 1);
|
|
437
390
|
}
|
|
438
|
-
function
|
|
439
|
-
return
|
|
391
|
+
function _n(e) {
|
|
392
|
+
return De(e, e.length, -1);
|
|
440
393
|
}
|
|
441
|
-
function
|
|
442
|
-
switch (
|
|
394
|
+
function Vi(e, r, a) {
|
|
395
|
+
switch (a) {
|
|
443
396
|
case "ArrowDown":
|
|
444
|
-
return
|
|
397
|
+
return De(e, r, 1);
|
|
445
398
|
case "ArrowUp":
|
|
446
|
-
return
|
|
399
|
+
return De(
|
|
447
400
|
e,
|
|
448
401
|
r < 0 ? e.length : r,
|
|
449
402
|
-1
|
|
@@ -451,7 +404,7 @@ function qi(e, r, s) {
|
|
|
451
404
|
case "Home":
|
|
452
405
|
return mt(e);
|
|
453
406
|
case "End":
|
|
454
|
-
return
|
|
407
|
+
return _n(e);
|
|
455
408
|
case "ArrowRight":
|
|
456
409
|
case "ArrowLeft":
|
|
457
410
|
return r;
|
|
@@ -459,50 +412,50 @@ function qi(e, r, s) {
|
|
|
459
412
|
return r;
|
|
460
413
|
}
|
|
461
414
|
}
|
|
462
|
-
const
|
|
463
|
-
function
|
|
464
|
-
return Math.max(r, Math.min(e,
|
|
415
|
+
const Pe = 8, Be = 4, wn = 240, kn = 36, pn = 28;
|
|
416
|
+
function yn(e, r, a) {
|
|
417
|
+
return Math.max(r, Math.min(e, a));
|
|
465
418
|
}
|
|
466
|
-
function
|
|
419
|
+
function Cn(e) {
|
|
467
420
|
return Math.max(
|
|
468
|
-
|
|
469
|
-
e *
|
|
421
|
+
kn,
|
|
422
|
+
e * pn
|
|
470
423
|
);
|
|
471
424
|
}
|
|
472
|
-
function
|
|
473
|
-
const { parentPanelRect: r, triggerRowRect:
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
d -
|
|
425
|
+
function $n(e) {
|
|
426
|
+
const { parentPanelRect: r, triggerRowRect: a, viewportWidth: c, viewportHeight: d } = e, m = r.right - Be, v = m + wn > c - Pe, l = v ? r.left + Be : m, b = Cn(e.submenuItemCount), _ = yn(
|
|
427
|
+
a.top - Be,
|
|
428
|
+
Pe,
|
|
429
|
+
d - b - Pe
|
|
477
430
|
);
|
|
478
|
-
return { x:
|
|
479
|
-
}
|
|
480
|
-
const
|
|
481
|
-
menu:
|
|
482
|
-
itemsViewport:
|
|
483
|
-
item:
|
|
484
|
-
itemLabel:
|
|
485
|
-
itemText:
|
|
431
|
+
return { x: l, y: _, flipLeft: v };
|
|
432
|
+
}
|
|
433
|
+
const Sn = "vk_menu_7idth vk_surface_3ZOnl", Ln = "vk_itemsViewport_e8jse vk_viewport_B94pk", In = "vk_item_6-C-w vk_item_neWq-", xn = "vk_itemLabel_4H-rz", An = "vk_itemText_xNl6M", Tn = "vk_itemMeta_LWQ8A", Dn = "vk_check_P9Ntk vk_check_dO3aK", Mn = "vk_itemIcon_JSYNd vk_itemIcon_bv6oS", Rn = "vk_submenuChevron_bANqc vk_chevron_pb9D1", En = "vk_itemExpanded_JfVkt", Pn = "vk_itemDanger_oJRgf", Bn = "vk_separator_l-bM- vk_separator_zMw59", On = "vk_visuallyHidden_CrSqj", ne = {
|
|
434
|
+
menu: Sn,
|
|
435
|
+
itemsViewport: Ln,
|
|
436
|
+
item: In,
|
|
437
|
+
itemLabel: xn,
|
|
438
|
+
itemText: An,
|
|
486
439
|
itemMeta: Tn,
|
|
487
|
-
check:
|
|
488
|
-
itemIcon:
|
|
489
|
-
submenuChevron:
|
|
490
|
-
itemExpanded:
|
|
491
|
-
itemDanger:
|
|
492
|
-
separator:
|
|
493
|
-
visuallyHidden:
|
|
440
|
+
check: Dn,
|
|
441
|
+
itemIcon: Mn,
|
|
442
|
+
submenuChevron: Rn,
|
|
443
|
+
itemExpanded: En,
|
|
444
|
+
itemDanger: Pn,
|
|
445
|
+
separator: Bn,
|
|
446
|
+
visuallyHidden: On
|
|
494
447
|
};
|
|
495
|
-
var
|
|
496
|
-
const
|
|
497
|
-
function
|
|
448
|
+
var zn = ["<div", ' role="menu" tabindex="-1" style="', '"', ">", "", "</div>"], Wn = ["<div", ' role="separator"></div>'], Ge = ["<span", ' aria-hidden="true">', "</span>"], Nn = ["<span", ">", "", "<span", ">", "</span></span>"], Fn = ["<span", ">", "", "</span>"], Hn = ["<span", ">", "</span>"], Vn = ["<span>", "</span>"], qn = "<span hidden data-context-menu-host></span>";
|
|
449
|
+
const xe = 8;
|
|
450
|
+
function Oe(e) {
|
|
498
451
|
return e.type !== "separator";
|
|
499
452
|
}
|
|
500
453
|
function ft(e) {
|
|
501
|
-
let r,
|
|
454
|
+
let r, a = !1;
|
|
502
455
|
Y(() => {
|
|
503
|
-
|
|
456
|
+
a = !0;
|
|
504
457
|
});
|
|
505
|
-
const
|
|
458
|
+
const c = () => {
|
|
506
459
|
const f = e.anchor ?? (e.depth === 0 && e.left !== void 0 && e.top !== void 0 ? {
|
|
507
460
|
left: e.left,
|
|
508
461
|
top: e.top,
|
|
@@ -510,10 +463,10 @@ function ft(e) {
|
|
|
510
463
|
height: 0
|
|
511
464
|
} : void 0);
|
|
512
465
|
if (f) {
|
|
513
|
-
const
|
|
466
|
+
const h = e.hostWin.innerHeight, C = e.hostWin.innerWidth, B = h - (f.top + f.height) - xe, F = Math.max(36, e.items.length * 28 + 12), i = e.anchorPosition === Bt.ABOVE || B < F && f.top > B ? Math.max(xe, f.top - F) : f.top + f.height, p = 200;
|
|
514
467
|
return {
|
|
515
|
-
left: e.anchorAlignment === Ot.RIGHT || f.left + p > C -
|
|
516
|
-
top:
|
|
468
|
+
left: e.anchorAlignment === Ot.RIGHT || f.left + p > C - xe ? Math.max(xe, f.left + f.width - p) : f.left,
|
|
469
|
+
top: i,
|
|
517
470
|
right: void 0,
|
|
518
471
|
bottom: void 0,
|
|
519
472
|
maxHeight: void 0,
|
|
@@ -528,89 +481,89 @@ function ft(e) {
|
|
|
528
481
|
maxHeight: void 0,
|
|
529
482
|
maxWidth: void 0
|
|
530
483
|
};
|
|
531
|
-
}, [d, m] =
|
|
484
|
+
}, [d, m] = D(c()), [v, l] = D(null), [b, _] = D(-1), [I, $] = D(-1), N = G(), k = (f) => `ctx-hint-${N}-${f}`, S = [];
|
|
532
485
|
let P;
|
|
533
|
-
const
|
|
534
|
-
var
|
|
535
|
-
$(f), (
|
|
486
|
+
const T = () => e.items.some((f) => Oe(f) && f.icon !== void 0), j = () => e.items.some((f) => Oe(f) && f.checked !== void 0), M = (f) => {
|
|
487
|
+
var h;
|
|
488
|
+
$(f), (h = S[f]) == null || h.focus({
|
|
536
489
|
preventScroll: !1
|
|
537
490
|
});
|
|
538
|
-
}, J = (f,
|
|
539
|
-
if (!
|
|
491
|
+
}, J = (f, h, C, B) => {
|
|
492
|
+
if (!h.submenu || h.submenu.length === 0 || !r || b() === C && v() !== null && !B)
|
|
540
493
|
return;
|
|
541
|
-
const F = r.getBoundingClientRect(),
|
|
494
|
+
const F = r.getBoundingClientRect(), s = f.getBoundingClientRect(), i = $n({
|
|
542
495
|
parentPanelRect: F,
|
|
543
|
-
triggerRowRect:
|
|
544
|
-
submenuItemCount:
|
|
496
|
+
triggerRowRect: s,
|
|
497
|
+
submenuItemCount: h.submenu.length,
|
|
545
498
|
viewportWidth: e.hostWin.innerWidth,
|
|
546
499
|
viewportHeight: e.hostWin.innerHeight
|
|
547
500
|
});
|
|
548
501
|
_(C);
|
|
549
502
|
const p = {
|
|
550
|
-
x:
|
|
551
|
-
y:
|
|
552
|
-
items:
|
|
553
|
-
flipLeft:
|
|
503
|
+
x: i.x,
|
|
504
|
+
y: i.y,
|
|
505
|
+
items: h.submenu,
|
|
506
|
+
flipLeft: i.flipLeft,
|
|
554
507
|
autoFocus: B
|
|
555
508
|
};
|
|
556
|
-
B &&
|
|
557
|
-
|
|
558
|
-
})) :
|
|
509
|
+
B && v() !== null ? (l(null), queueMicrotask(() => {
|
|
510
|
+
a || l(p);
|
|
511
|
+
})) : l(p);
|
|
559
512
|
}, y = () => {
|
|
560
|
-
const f =
|
|
561
|
-
|
|
513
|
+
const f = b();
|
|
514
|
+
l(null), _(-1), f >= 0 && M(f);
|
|
562
515
|
}, L = () => {
|
|
563
516
|
};
|
|
564
|
-
|
|
517
|
+
Ue(() => {
|
|
565
518
|
queueMicrotask(() => {
|
|
566
|
-
if (
|
|
519
|
+
if (a) return;
|
|
567
520
|
const F = e.hostWin.document.documentElement.getAttribute("data-focus-modality") === "pointer";
|
|
568
521
|
if (e.autoFocusFirst ?? (!F && e.depth === 0)) {
|
|
569
|
-
const
|
|
570
|
-
if (
|
|
571
|
-
M(
|
|
522
|
+
const i = mt(e.items);
|
|
523
|
+
if (i >= 0) {
|
|
524
|
+
M(i);
|
|
572
525
|
return;
|
|
573
526
|
}
|
|
574
527
|
}
|
|
575
528
|
});
|
|
576
|
-
const f = e.hostWin,
|
|
529
|
+
const f = e.hostWin, h = f.requestAnimationFrame(() => L()), C = () => L();
|
|
577
530
|
f.addEventListener("resize", C), f.addEventListener("scroll", C, !0), f.ResizeObserver, Y(() => {
|
|
578
|
-
f.cancelAnimationFrame(
|
|
531
|
+
f.cancelAnimationFrame(h), f.removeEventListener("resize", C), f.removeEventListener("scroll", C, !0);
|
|
579
532
|
});
|
|
580
533
|
}), Y(() => {
|
|
581
534
|
P && clearTimeout(P);
|
|
582
|
-
}),
|
|
583
|
-
e.items.length, m(
|
|
535
|
+
}), oe(() => {
|
|
536
|
+
e.items.length, m(c()), queueMicrotask(() => {
|
|
584
537
|
});
|
|
585
538
|
});
|
|
586
539
|
const V = () => {
|
|
587
540
|
P && (clearTimeout(P), P = void 0);
|
|
588
541
|
}, de = () => {
|
|
589
542
|
V(), P = setTimeout(() => {
|
|
590
|
-
|
|
543
|
+
l(null), _(-1);
|
|
591
544
|
}, 200);
|
|
592
|
-
}, te = (f,
|
|
593
|
-
if (V(),
|
|
545
|
+
}, te = (f, h, C) => {
|
|
546
|
+
if (V(), h.disabled || !h.submenu || h.submenu.length === 0) {
|
|
594
547
|
de();
|
|
595
548
|
return;
|
|
596
549
|
}
|
|
597
|
-
J(f.currentTarget,
|
|
550
|
+
J(f.currentTarget, h, C, !1);
|
|
598
551
|
}, ie = (f) => {
|
|
599
552
|
if (!f) return;
|
|
600
|
-
const
|
|
601
|
-
return
|
|
602
|
-
},
|
|
553
|
+
const h = e.shortcutResolver;
|
|
554
|
+
return h ? h(f) : void 0;
|
|
555
|
+
}, ae = Re(() => !0, "context-menu-panel", {
|
|
603
556
|
type: "menu",
|
|
604
557
|
element: () => r,
|
|
605
558
|
parent: e.parentLayer
|
|
606
559
|
});
|
|
607
|
-
return
|
|
560
|
+
return Ue(() => {
|
|
608
561
|
if (e.depth !== 0) return;
|
|
609
|
-
const f = e.hostWin,
|
|
610
|
-
!he(C, "Escape") || !
|
|
562
|
+
const f = e.hostWin, h = (C) => {
|
|
563
|
+
!he(C, "Escape") || !ae.isTopmost() || (C.stopPropagation(), C.stopImmediatePropagation(), e.onRequestClose());
|
|
611
564
|
};
|
|
612
|
-
f.addEventListener("keydown",
|
|
613
|
-
}), g(
|
|
565
|
+
f.addEventListener("keydown", h, !0), Y(() => f.removeEventListener("keydown", h, !0));
|
|
566
|
+
}), g(zn, o("class", t(ne.menu, !0), !1), Z("left:", d().left !== void 0 ? `${t(d().left, !0)}px` : t(void 0, !0)) + Z(";top:", d().top !== void 0 ? `${t(d().top, !0)}px` : t(void 0, !0)) + Z(";right:", d().right !== void 0 ? `${t(d().right, !0)}px` : t(void 0, !0)) + Z(";bottom:", d().bottom !== void 0 ? `${t(d().bottom, !0)}px` : t(void 0, !0)) + Z(";max-height:", d().maxHeight !== void 0 ? `${t(d().maxHeight, !0)}px` : t(void 0, !0)) + Z(";max-width:", d().maxWidth !== void 0 ? `${t(Math.min(360, d().maxWidth ?? 360), !0)}px` : t(void 0, !0)) + Z(";z-index:", e.depth > 0 ? `calc(var(--z-context-menu) + ${t(e.depth, !0)})` : t(void 0, !0)), o("data-desktop-menu-depth", t(e.depth, !0), !1), t(n(be, {
|
|
614
567
|
get viewportClass() {
|
|
615
568
|
return ne.itemsViewport;
|
|
616
569
|
},
|
|
@@ -620,16 +573,16 @@ function ft(e) {
|
|
|
620
573
|
get each() {
|
|
621
574
|
return e.items;
|
|
622
575
|
},
|
|
623
|
-
children: (f,
|
|
624
|
-
if (!
|
|
625
|
-
return g(
|
|
576
|
+
children: (f, h) => {
|
|
577
|
+
if (!Oe(f))
|
|
578
|
+
return g(Wn, o("class", t(ne.separator, !0), !1));
|
|
626
579
|
const C = () => !!(f.submenu && f.submenu.length > 0), B = () => {
|
|
627
|
-
const
|
|
628
|
-
return typeof
|
|
580
|
+
const i = f.checked;
|
|
581
|
+
return typeof i == "function" ? i() : !!i;
|
|
629
582
|
}, F = () => {
|
|
630
|
-
var
|
|
631
|
-
return C() && ((
|
|
632
|
-
},
|
|
583
|
+
var i;
|
|
584
|
+
return C() && ((i = v()) == null ? void 0 : i.items) === f.submenu;
|
|
585
|
+
}, s = () => typeof f.label == "function" ? f.label() : f.label;
|
|
633
586
|
return n(ye, {
|
|
634
587
|
type: "button",
|
|
635
588
|
get class() {
|
|
@@ -657,30 +610,30 @@ function ft(e) {
|
|
|
657
610
|
return ee(() => !!C())() ? F() : void 0;
|
|
658
611
|
},
|
|
659
612
|
get "aria-describedby"() {
|
|
660
|
-
return ee(() => !!f.hint)() ? k(
|
|
613
|
+
return ee(() => !!f.hint)() ? k(h()) : void 0;
|
|
661
614
|
},
|
|
662
|
-
onFocus: () => $(
|
|
663
|
-
onMouseEnter: (
|
|
664
|
-
$(
|
|
615
|
+
onFocus: () => $(h()),
|
|
616
|
+
onMouseEnter: (i) => {
|
|
617
|
+
$(h()), te(i, f, h());
|
|
665
618
|
},
|
|
666
619
|
onClick: () => {
|
|
667
|
-
var
|
|
620
|
+
var i;
|
|
668
621
|
if (!f.disabled) {
|
|
669
622
|
if (C()) {
|
|
670
|
-
const p = S[
|
|
671
|
-
p && J(p, f,
|
|
623
|
+
const p = S[h()];
|
|
624
|
+
p && J(p, f, h(), !0);
|
|
672
625
|
return;
|
|
673
626
|
}
|
|
674
|
-
(
|
|
627
|
+
(i = f.onSelect ?? f.onClick) == null || i(), f.keepOpenOnSelect || queueMicrotask(() => e.onRequestClose());
|
|
675
628
|
}
|
|
676
629
|
},
|
|
677
630
|
get children() {
|
|
678
|
-
return [g(
|
|
631
|
+
return [g(Nn, o("class", t(ne.itemLabel, !0), !1), t(n(w, {
|
|
679
632
|
get when() {
|
|
680
633
|
return j();
|
|
681
634
|
},
|
|
682
635
|
get children() {
|
|
683
|
-
return g(
|
|
636
|
+
return g(Ge, o("class", t(ne.check, !0), !1), t(n(w, {
|
|
684
637
|
get when() {
|
|
685
638
|
return B();
|
|
686
639
|
},
|
|
@@ -691,16 +644,16 @@ function ft(e) {
|
|
|
691
644
|
}
|
|
692
645
|
})), t(n(w, {
|
|
693
646
|
get when() {
|
|
694
|
-
return
|
|
647
|
+
return T();
|
|
695
648
|
},
|
|
696
649
|
get children() {
|
|
697
|
-
return g(
|
|
650
|
+
return g(Ge, o("class", t(ne.itemIcon, !0), !1), t(f.icon));
|
|
698
651
|
}
|
|
699
|
-
})), o("class", t(ne.itemText, !0), !1), t(
|
|
652
|
+
})), o("class", t(ne.itemText, !0), !1), t(s())), g(Fn, o("class", t(ne.itemMeta, !0), !1), t(n(w, {
|
|
700
653
|
get when() {
|
|
701
654
|
return ie(f.commandId) ?? f.shortcut;
|
|
702
655
|
},
|
|
703
|
-
children: (
|
|
656
|
+
children: (i) => g(Vn, t(i()))
|
|
704
657
|
})), t(n(w, {
|
|
705
658
|
get when() {
|
|
706
659
|
return C();
|
|
@@ -718,7 +671,7 @@ function ft(e) {
|
|
|
718
671
|
return f.hint;
|
|
719
672
|
},
|
|
720
673
|
get children() {
|
|
721
|
-
return g(
|
|
674
|
+
return g(Hn, o("id", t(k(h()), !0), !1) + o("class", t(ne.visuallyHidden, !0), !1), t(f.hint));
|
|
722
675
|
}
|
|
723
676
|
})];
|
|
724
677
|
}
|
|
@@ -728,10 +681,10 @@ function ft(e) {
|
|
|
728
681
|
}
|
|
729
682
|
})), t(n(w, {
|
|
730
683
|
get when() {
|
|
731
|
-
return
|
|
684
|
+
return v();
|
|
732
685
|
},
|
|
733
686
|
children: (f) => {
|
|
734
|
-
const
|
|
687
|
+
const h = f().flipLeft ? {
|
|
735
688
|
right: e.hostWin.innerWidth - f().x
|
|
736
689
|
} : {
|
|
737
690
|
left: f().x
|
|
@@ -741,7 +694,7 @@ function ft(e) {
|
|
|
741
694
|
return e.hostWin.document.body;
|
|
742
695
|
},
|
|
743
696
|
get children() {
|
|
744
|
-
return n(ft,
|
|
697
|
+
return n(ft, st(h, {
|
|
745
698
|
get top() {
|
|
746
699
|
return f().y;
|
|
747
700
|
},
|
|
@@ -754,7 +707,7 @@ function ft(e) {
|
|
|
754
707
|
get hostWin() {
|
|
755
708
|
return e.hostWin;
|
|
756
709
|
},
|
|
757
|
-
parentLayer:
|
|
710
|
+
parentLayer: ae,
|
|
758
711
|
get autoFocusFirst() {
|
|
759
712
|
return f().autoFocus;
|
|
760
713
|
},
|
|
@@ -779,119 +732,119 @@ function ft(e) {
|
|
|
779
732
|
}
|
|
780
733
|
})));
|
|
781
734
|
}
|
|
782
|
-
function
|
|
735
|
+
function jn(e) {
|
|
783
736
|
return e !== null && e !== e.ownerDocument.body && typeof e.focus == "function";
|
|
784
737
|
}
|
|
785
|
-
function
|
|
786
|
-
const r = Et(),
|
|
787
|
-
const
|
|
788
|
-
if (
|
|
789
|
-
if (
|
|
790
|
-
const
|
|
791
|
-
if (
|
|
738
|
+
function Kn(e = {}) {
|
|
739
|
+
const r = Et(), a = () => {
|
|
740
|
+
const l = r.state();
|
|
741
|
+
if (l != null && l.ownerWindow) return l.ownerWindow;
|
|
742
|
+
if (l != null && l.triggerEl) {
|
|
743
|
+
const b = Te(l.triggerEl);
|
|
744
|
+
if (b) return b;
|
|
792
745
|
}
|
|
793
|
-
return e.ownerWindow ? e.ownerWindow :
|
|
794
|
-
},
|
|
795
|
-
var
|
|
796
|
-
return e.shortcutResolver ?? ((
|
|
797
|
-
}, d = (
|
|
746
|
+
return e.ownerWindow ? e.ownerWindow : Ae().window;
|
|
747
|
+
}, c = () => {
|
|
748
|
+
var l;
|
|
749
|
+
return e.shortcutResolver ?? ((l = r.state()) == null ? void 0 : l.shortcutResolver) ?? r.shortcutResolver;
|
|
750
|
+
}, d = (l) => {
|
|
798
751
|
var I;
|
|
799
|
-
const
|
|
800
|
-
if (!
|
|
752
|
+
const b = l.target;
|
|
753
|
+
if (!b || b.closest("[data-desktop-menu-depth]")) return;
|
|
801
754
|
const _ = (I = r.state()) == null ? void 0 : I.triggerEl;
|
|
802
|
-
_ && (_ ===
|
|
755
|
+
_ && (_ === b || _.contains(b)) || r.close();
|
|
803
756
|
};
|
|
804
757
|
let m = null;
|
|
805
|
-
$t(
|
|
806
|
-
if (
|
|
758
|
+
$t(He(r.state, (l, b) => {
|
|
759
|
+
if (l === null || b != null)
|
|
807
760
|
return;
|
|
808
|
-
const _ =
|
|
809
|
-
m =
|
|
761
|
+
const _ = a().document.activeElement;
|
|
762
|
+
m = jn(_) ? _ : null;
|
|
810
763
|
}));
|
|
811
|
-
const
|
|
812
|
-
const
|
|
813
|
-
if (m = null,
|
|
814
|
-
const _ =
|
|
815
|
-
(_ === null || _ ===
|
|
764
|
+
const v = (l) => {
|
|
765
|
+
const b = m;
|
|
766
|
+
if (m = null, b === null || !b.isConnected) return;
|
|
767
|
+
const _ = l.activeElement;
|
|
768
|
+
(_ === null || _ === l.body || _.closest("[data-desktop-menu-depth]") !== null) && b.focus();
|
|
816
769
|
};
|
|
817
|
-
return
|
|
770
|
+
return oe(() => {
|
|
818
771
|
if (!r.state()) return;
|
|
819
|
-
const
|
|
772
|
+
const l = a(), b = () => {
|
|
820
773
|
r.close();
|
|
821
774
|
}, _ = () => {
|
|
822
775
|
r.close();
|
|
823
776
|
};
|
|
824
|
-
|
|
825
|
-
|
|
777
|
+
l.addEventListener("mousedown", d), l.addEventListener("blur", b), l.addEventListener("dragstart", _, !0), Y(() => {
|
|
778
|
+
l.removeEventListener("mousedown", d), l.removeEventListener("blur", b), l.removeEventListener("dragstart", _, !0), r.state() === null && v(l.document);
|
|
826
779
|
});
|
|
827
|
-
}), [g(
|
|
780
|
+
}), [g(qn), n(w, {
|
|
828
781
|
get when() {
|
|
829
782
|
return r.state();
|
|
830
783
|
},
|
|
831
|
-
children: (
|
|
784
|
+
children: (l) => n(Me, {
|
|
832
785
|
get mount() {
|
|
833
|
-
return
|
|
786
|
+
return a().document.body;
|
|
834
787
|
},
|
|
835
788
|
get children() {
|
|
836
789
|
return n(ft, {
|
|
837
790
|
get left() {
|
|
838
|
-
return
|
|
791
|
+
return l().left;
|
|
839
792
|
},
|
|
840
793
|
get top() {
|
|
841
|
-
return
|
|
794
|
+
return l().top;
|
|
842
795
|
},
|
|
843
796
|
get right() {
|
|
844
|
-
return
|
|
797
|
+
return l().right;
|
|
845
798
|
},
|
|
846
799
|
get bottom() {
|
|
847
|
-
return
|
|
800
|
+
return l().bottom;
|
|
848
801
|
},
|
|
849
802
|
get anchor() {
|
|
850
|
-
return
|
|
803
|
+
return l().anchor;
|
|
851
804
|
},
|
|
852
805
|
get anchorAlignment() {
|
|
853
|
-
return
|
|
806
|
+
return l().anchorAlignment;
|
|
854
807
|
},
|
|
855
808
|
get anchorPosition() {
|
|
856
|
-
return
|
|
809
|
+
return l().anchorPosition;
|
|
857
810
|
},
|
|
858
811
|
get items() {
|
|
859
|
-
return
|
|
812
|
+
return l().items;
|
|
860
813
|
},
|
|
861
814
|
depth: 0,
|
|
862
815
|
get hostWin() {
|
|
863
|
-
return
|
|
816
|
+
return a();
|
|
864
817
|
},
|
|
865
818
|
get onRequestClose() {
|
|
866
819
|
return r.close;
|
|
867
820
|
},
|
|
868
821
|
get shortcutResolver() {
|
|
869
|
-
return
|
|
822
|
+
return c();
|
|
870
823
|
}
|
|
871
824
|
});
|
|
872
825
|
}
|
|
873
826
|
})
|
|
874
827
|
})];
|
|
875
828
|
}
|
|
876
|
-
function
|
|
829
|
+
function Yn(e) {
|
|
877
830
|
return e ? "nodeType" in e ? { el: e, toggle: !0 } : e.type === "contextmenu" ? { el: void 0, toggle: !1 } : { el: e.currentTarget ?? e.target ?? void 0, toggle: !0 } : { el: void 0, toggle: !1 };
|
|
878
831
|
}
|
|
879
|
-
function
|
|
880
|
-
const [r,
|
|
832
|
+
function Un(e) {
|
|
833
|
+
const [r, a] = D(null);
|
|
881
834
|
return {
|
|
882
835
|
state: r,
|
|
883
|
-
open: (m,
|
|
884
|
-
const { el: _, toggle: I } =
|
|
836
|
+
open: (m, v, l, b) => {
|
|
837
|
+
const { el: _, toggle: I } = Yn(b), $ = r();
|
|
885
838
|
if (I && $ && _ && $.triggerEl === _) {
|
|
886
|
-
|
|
839
|
+
a(null);
|
|
887
840
|
return;
|
|
888
841
|
}
|
|
889
|
-
const N =
|
|
890
|
-
|
|
842
|
+
const N = b ? Te(b) : null;
|
|
843
|
+
a({
|
|
891
844
|
left: m,
|
|
892
|
-
top:
|
|
893
|
-
anchor: { left: m, top:
|
|
894
|
-
items:
|
|
845
|
+
top: v,
|
|
846
|
+
anchor: { left: m, top: v, width: 0, height: 0 },
|
|
847
|
+
items: l,
|
|
895
848
|
// Pin the menu to the window the trigger lives in — aux-safe for shared
|
|
896
849
|
// editor groups whose DOM is adopted into an aux window.
|
|
897
850
|
...N ? { ownerWindow: N } : {},
|
|
@@ -899,30 +852,30 @@ function Qn(e) {
|
|
|
899
852
|
...e != null && e.shortcutResolver ? { shortcutResolver: e.shortcutResolver } : {}
|
|
900
853
|
});
|
|
901
854
|
},
|
|
902
|
-
openWithPlacement: (m,
|
|
903
|
-
const
|
|
904
|
-
if (
|
|
905
|
-
|
|
855
|
+
openWithPlacement: (m, v) => {
|
|
856
|
+
const l = r();
|
|
857
|
+
if (l && m.triggerEl && l.triggerEl === m.triggerEl) {
|
|
858
|
+
a(null);
|
|
906
859
|
return;
|
|
907
860
|
}
|
|
908
|
-
|
|
861
|
+
a({
|
|
909
862
|
...e != null && e.shortcutResolver ? { shortcutResolver: e.shortcutResolver } : {},
|
|
910
863
|
...m,
|
|
911
|
-
items:
|
|
864
|
+
items: v
|
|
912
865
|
});
|
|
913
866
|
},
|
|
914
|
-
close: () =>
|
|
867
|
+
close: () => a(null),
|
|
915
868
|
shortcutResolver: e == null ? void 0 : e.shortcutResolver
|
|
916
869
|
};
|
|
917
870
|
}
|
|
918
|
-
const
|
|
871
|
+
const Ke = Un();
|
|
919
872
|
function gt(e) {
|
|
920
873
|
if (e.separator || e.type === "separator")
|
|
921
874
|
return {
|
|
922
875
|
type: "separator",
|
|
923
876
|
id: e.id
|
|
924
877
|
};
|
|
925
|
-
const r = e.shortcut ?? e.hint,
|
|
878
|
+
const r = e.shortcut ?? e.hint, a = e.onSelect ?? e.onClick;
|
|
926
879
|
return {
|
|
927
880
|
id: e.id,
|
|
928
881
|
label: e.label,
|
|
@@ -938,62 +891,62 @@ function gt(e) {
|
|
|
938
891
|
...e.disabled !== void 0 ? {
|
|
939
892
|
disabled: e.disabled
|
|
940
893
|
} : {},
|
|
941
|
-
...
|
|
942
|
-
onSelect:
|
|
894
|
+
...a ? {
|
|
895
|
+
onSelect: a
|
|
943
896
|
} : {},
|
|
944
897
|
...e.submenu ? {
|
|
945
898
|
submenu: e.submenu.map(gt)
|
|
946
899
|
} : {}
|
|
947
900
|
};
|
|
948
901
|
}
|
|
949
|
-
function
|
|
950
|
-
e.preventDefault(), e.stopPropagation(),
|
|
902
|
+
function qi(e, r) {
|
|
903
|
+
e.preventDefault(), e.stopPropagation(), Ke.open(e.clientX, e.clientY, r.map(gt), e);
|
|
951
904
|
}
|
|
952
|
-
function
|
|
953
|
-
|
|
905
|
+
function ji() {
|
|
906
|
+
Ke.close();
|
|
954
907
|
}
|
|
955
|
-
function
|
|
908
|
+
function Ki() {
|
|
956
909
|
return n(Pt.Provider, {
|
|
957
|
-
value:
|
|
910
|
+
value: Ke,
|
|
958
911
|
get children() {
|
|
959
|
-
return n(
|
|
912
|
+
return n(Kn, {});
|
|
960
913
|
}
|
|
961
914
|
});
|
|
962
915
|
}
|
|
963
|
-
const
|
|
964
|
-
root:
|
|
965
|
-
header:
|
|
966
|
-
headerClosable:
|
|
967
|
-
title:
|
|
968
|
-
headerActions:
|
|
969
|
-
body:
|
|
970
|
-
section:
|
|
971
|
-
sectionHeader:
|
|
972
|
-
sectionTitle:
|
|
973
|
-
sectionAside:
|
|
974
|
-
field:
|
|
975
|
-
fieldText:
|
|
976
|
-
fieldLabel:
|
|
977
|
-
fieldDescription:
|
|
978
|
-
fieldControl:
|
|
979
|
-
separator:
|
|
980
|
-
footer:
|
|
981
|
-
footerBetween:
|
|
982
|
-
footerStretch:
|
|
916
|
+
const Qn = "vk_root_B3p1P", Gn = "vk_header_m86aH", Jn = "vk_headerClosable_qZJYa", Xn = "vk_title_iMvk7", Zn = "vk_headerActions_nNOSK", er = "vk_body_gPJbb", tr = "vk_section_IQiWf", nr = "vk_sectionHeader_kxaBm", rr = "vk_sectionTitle_ygxTo vk_sectionLabel_WuN5V", or = "vk_sectionAside_1geCf", ar = "vk_field_KGZ79", sr = "vk_fieldText_-F0vc", ir = "vk_fieldLabel_Edhqk", cr = "vk_fieldDescription_UIVq3", lr = "vk_fieldControl_6qm3p", ur = "vk_separator_VeGkl vk_separator_zMw59", dr = "vk_footer_yuP7q", mr = "vk_footerBetween_UbaYB", fr = "vk_footerStretch_1rukw", H = {
|
|
917
|
+
root: Qn,
|
|
918
|
+
header: Gn,
|
|
919
|
+
headerClosable: Jn,
|
|
920
|
+
title: Xn,
|
|
921
|
+
headerActions: Zn,
|
|
922
|
+
body: er,
|
|
923
|
+
section: tr,
|
|
924
|
+
sectionHeader: nr,
|
|
925
|
+
sectionTitle: rr,
|
|
926
|
+
sectionAside: or,
|
|
927
|
+
field: ar,
|
|
928
|
+
fieldText: sr,
|
|
929
|
+
fieldLabel: ir,
|
|
930
|
+
fieldDescription: cr,
|
|
931
|
+
fieldControl: lr,
|
|
932
|
+
separator: ur,
|
|
933
|
+
footer: dr,
|
|
934
|
+
footerBetween: mr,
|
|
935
|
+
footerStretch: fr
|
|
983
936
|
};
|
|
984
|
-
var
|
|
937
|
+
var gr = ["<div", ">", "", "</div>"], ht = ["<span", ">", "</span>"], hr = ["<section", "><div", ">", "", "</div>", "</section>"], vr = ["<div", "><div", "><span", ">", "</span>", "</div><div", ">", "</div></div>"], br = ['<div role="separator"', "></div>"];
|
|
985
938
|
function _e(...e) {
|
|
986
939
|
return e.filter((r) => !!r).join(" ");
|
|
987
940
|
}
|
|
988
|
-
function
|
|
989
|
-
const [r,
|
|
990
|
-
return n(Ce.Root,
|
|
941
|
+
function _r(e) {
|
|
942
|
+
const [r, a] = St(e, ["class"]);
|
|
943
|
+
return n(Ce.Root, st({
|
|
991
944
|
get class() {
|
|
992
945
|
return _e(H.root, r.class);
|
|
993
946
|
}
|
|
994
|
-
},
|
|
947
|
+
}, a));
|
|
995
948
|
}
|
|
996
|
-
function
|
|
949
|
+
function wr(e) {
|
|
997
950
|
return n(Ce.Header, {
|
|
998
951
|
get class() {
|
|
999
952
|
return _e(H.header, e.onClose !== void 0 && H.headerClosable, e.class);
|
|
@@ -1012,7 +965,7 @@ function kr(e) {
|
|
|
1012
965
|
return e.actions !== void 0 || e.onClose !== void 0;
|
|
1013
966
|
},
|
|
1014
967
|
get children() {
|
|
1015
|
-
return g(
|
|
968
|
+
return g(gr, o("class", t(H.headerActions, !0), !1), t(e.actions), t(n(w, {
|
|
1016
969
|
get when() {
|
|
1017
970
|
return e.onClose !== void 0;
|
|
1018
971
|
},
|
|
@@ -1022,7 +975,7 @@ function kr(e) {
|
|
|
1022
975
|
size: "xs",
|
|
1023
976
|
iconOnly: !0,
|
|
1024
977
|
get leadingIcon() {
|
|
1025
|
-
return n(
|
|
978
|
+
return n(je, {});
|
|
1026
979
|
},
|
|
1027
980
|
get "aria-label"() {
|
|
1028
981
|
return e.closeLabel ?? u("Close");
|
|
@@ -1039,7 +992,7 @@ function kr(e) {
|
|
|
1039
992
|
}
|
|
1040
993
|
});
|
|
1041
994
|
}
|
|
1042
|
-
function
|
|
995
|
+
function kr(e) {
|
|
1043
996
|
return n(Ce.Body, {
|
|
1044
997
|
get class() {
|
|
1045
998
|
return _e(H.body, e.class);
|
|
@@ -1049,9 +1002,9 @@ function pr(e) {
|
|
|
1049
1002
|
}
|
|
1050
1003
|
});
|
|
1051
1004
|
}
|
|
1052
|
-
function
|
|
1005
|
+
function pr(e) {
|
|
1053
1006
|
const r = G();
|
|
1054
|
-
return g(
|
|
1007
|
+
return g(hr, o("aria-labelledby", t(r, !0), !1) + o("class", t(_e(H.section, e.class), !0), !1), o("class", t(H.sectionHeader, !0), !1), t(n(Ce.Title, {
|
|
1055
1008
|
as: "h4",
|
|
1056
1009
|
id: r,
|
|
1057
1010
|
get class() {
|
|
@@ -1069,19 +1022,19 @@ function yr(e) {
|
|
|
1069
1022
|
}
|
|
1070
1023
|
})), t(e.children));
|
|
1071
1024
|
}
|
|
1072
|
-
function
|
|
1073
|
-
const r = G(),
|
|
1074
|
-
return g(
|
|
1025
|
+
function yr(e) {
|
|
1026
|
+
const r = G(), a = G();
|
|
1027
|
+
return g(vr, o("class", t(_e(H.field, e.class), !0), !1), o("class", t(H.fieldText, !0), !1), o("id", t(r, !0), !1) + o("class", t(H.fieldLabel, !0), !1), t(e.label), t(n(w, {
|
|
1075
1028
|
get when() {
|
|
1076
1029
|
return e.description !== void 0;
|
|
1077
1030
|
},
|
|
1078
1031
|
get children() {
|
|
1079
|
-
return g(ht, o("id", t(
|
|
1032
|
+
return g(ht, o("id", t(a, !0), !1) + o("class", t(H.fieldDescription, !0), !1), t(e.description));
|
|
1080
1033
|
}
|
|
1081
1034
|
})), o("class", t(H.fieldControl, !0), !1), t(n(xt, {
|
|
1082
1035
|
value: {
|
|
1083
1036
|
labelId: r,
|
|
1084
|
-
describedBy: () => e.description !== void 0 ?
|
|
1037
|
+
describedBy: () => e.description !== void 0 ? a : void 0,
|
|
1085
1038
|
wrapsControlInLabel: !1
|
|
1086
1039
|
},
|
|
1087
1040
|
get children() {
|
|
@@ -1089,10 +1042,10 @@ function Cr(e) {
|
|
|
1089
1042
|
}
|
|
1090
1043
|
})));
|
|
1091
1044
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return g(
|
|
1045
|
+
function Cr(e) {
|
|
1046
|
+
return g(br, o("class", t(_e(H.separator, e.class), !0), !1));
|
|
1094
1047
|
}
|
|
1095
|
-
function
|
|
1048
|
+
function $r(e) {
|
|
1096
1049
|
const r = () => e.align === "between" ? H.footerBetween : e.align === "stretch" ? H.footerStretch : void 0;
|
|
1097
1050
|
return n(Ce.Footer, {
|
|
1098
1051
|
get class() {
|
|
@@ -1103,121 +1056,121 @@ function Sr(e) {
|
|
|
1103
1056
|
}
|
|
1104
1057
|
});
|
|
1105
1058
|
}
|
|
1106
|
-
const
|
|
1107
|
-
Root:
|
|
1108
|
-
Header:
|
|
1109
|
-
Body:
|
|
1110
|
-
Section:
|
|
1111
|
-
Field:
|
|
1112
|
-
Separator:
|
|
1113
|
-
Footer:
|
|
1114
|
-
},
|
|
1115
|
-
backdrop:
|
|
1116
|
-
drawer:
|
|
1117
|
-
placementRight:
|
|
1118
|
-
placementLeft:
|
|
1119
|
-
placementBottom:
|
|
1059
|
+
const Yi = {
|
|
1060
|
+
Root: _r,
|
|
1061
|
+
Header: wr,
|
|
1062
|
+
Body: kr,
|
|
1063
|
+
Section: pr,
|
|
1064
|
+
Field: yr,
|
|
1065
|
+
Separator: Cr,
|
|
1066
|
+
Footer: $r
|
|
1067
|
+
}, Sr = "vk_backdrop_OD2hy", Lr = "vk_drawer_TB0OC", Ir = "vk_placementRight_qWrAL", xr = "vk_placementLeft_zWVlF", Ar = "vk_placementBottom_ZOZT3", Tr = "vk_sizeSm_GISo4", Dr = "vk_sizeMd_GHr9h", Mr = "vk_sizeLg_RCTZF", Rr = "vk_header_NeiDb", Er = "vk_title_ku48d", Pr = "vk_closeBtn_1vaaT", Br = "vk_body_XAjO6", Or = "vk_bodyContent_8qDK-", zr = "vk_footer_vRDdY", X = {
|
|
1068
|
+
backdrop: Sr,
|
|
1069
|
+
drawer: Lr,
|
|
1070
|
+
placementRight: Ir,
|
|
1071
|
+
placementLeft: xr,
|
|
1072
|
+
placementBottom: Ar,
|
|
1120
1073
|
sizeSm: Tr,
|
|
1121
|
-
sizeMd:
|
|
1122
|
-
sizeLg:
|
|
1123
|
-
header:
|
|
1124
|
-
title:
|
|
1125
|
-
closeBtn:
|
|
1126
|
-
body:
|
|
1127
|
-
bodyContent:
|
|
1128
|
-
footer:
|
|
1074
|
+
sizeMd: Dr,
|
|
1075
|
+
sizeLg: Mr,
|
|
1076
|
+
header: Rr,
|
|
1077
|
+
title: Er,
|
|
1078
|
+
closeBtn: Pr,
|
|
1079
|
+
body: Br,
|
|
1080
|
+
bodyContent: Or,
|
|
1081
|
+
footer: zr
|
|
1129
1082
|
};
|
|
1130
|
-
var
|
|
1131
|
-
function
|
|
1132
|
-
const r = U((
|
|
1083
|
+
var Wr = ["<div", ' aria-hidden="true"></div>'], Nr = ["<h3", ">", "</h3>"], Fr = ["<div", ">", "</div>"], Hr = ["<footer", ">", "</footer>"], Vr = ['<aside class="', '" role="dialog" aria-modal="true"', ' tabindex="-1"><header', ">", '<button type="button"', ">", "</button></header><div", ">", "</div>", "</aside>"], qr = "<div></div>";
|
|
1084
|
+
function Ui(e) {
|
|
1085
|
+
const r = U((l) => e.open ? l ?? Ae().document : null, null), a = Re(() => e.open, "drawer", {
|
|
1133
1086
|
type: "modal",
|
|
1134
1087
|
element: () => null,
|
|
1135
1088
|
document: () => r() ?? void 0
|
|
1136
1089
|
});
|
|
1137
|
-
|
|
1090
|
+
Ie({
|
|
1138
1091
|
open: () => e.open,
|
|
1139
|
-
ownerDocument: () => r() ??
|
|
1092
|
+
ownerDocument: () => r() ?? Ae().document
|
|
1140
1093
|
});
|
|
1141
|
-
const
|
|
1142
|
-
return
|
|
1094
|
+
const c = () => e.placement ?? "right", d = () => e.size ?? "md", m = () => c() === "left" ? X.placementLeft : c() === "bottom" ? X.placementBottom : X.placementRight, v = () => d() === "sm" ? X.sizeSm : d() === "lg" ? X.sizeLg : X.sizeMd;
|
|
1095
|
+
return oe(() => {
|
|
1143
1096
|
var _;
|
|
1144
|
-
const
|
|
1145
|
-
if (!
|
|
1146
|
-
const
|
|
1147
|
-
!he(I, "Escape") || !
|
|
1097
|
+
const l = (_ = r()) == null ? void 0 : _.defaultView;
|
|
1098
|
+
if (!l) return;
|
|
1099
|
+
const b = (I) => {
|
|
1100
|
+
!he(I, "Escape") || !a.isTopmost() || (I.stopPropagation(), I.stopImmediatePropagation(), e.onClose());
|
|
1148
1101
|
};
|
|
1149
|
-
|
|
1102
|
+
l.addEventListener("keydown", b, !0), Y(() => l.removeEventListener("keydown", b, !0));
|
|
1150
1103
|
}), n(w, {
|
|
1151
1104
|
get when() {
|
|
1152
1105
|
return r();
|
|
1153
1106
|
},
|
|
1154
|
-
children: (
|
|
1107
|
+
children: (l) => n(Me, {
|
|
1155
1108
|
get mount() {
|
|
1156
|
-
return
|
|
1109
|
+
return l().body;
|
|
1157
1110
|
},
|
|
1158
1111
|
get children() {
|
|
1159
|
-
return [g(
|
|
1112
|
+
return [g(Wr, o("class", t(X.backdrop, !0), !1)), g(Vr, `${t(X.drawer, !0)} ${t(m(), !0)} ${t(v(), !0)} ${t(e.class ?? "", !0)}`, o("aria-label", t(e.ariaLabel ?? e.title ?? u("Drawer"), !0), !1), o("class", t(X.header, !0), !1), t(n(w, {
|
|
1160
1113
|
get when() {
|
|
1161
1114
|
return e.title;
|
|
1162
1115
|
},
|
|
1163
1116
|
get fallback() {
|
|
1164
|
-
return g(
|
|
1117
|
+
return g(qr);
|
|
1165
1118
|
},
|
|
1166
1119
|
get children() {
|
|
1167
|
-
return g(
|
|
1120
|
+
return g(Nr, o("class", t(X.title, !0), !1), t(e.title));
|
|
1168
1121
|
}
|
|
1169
|
-
})), o("class", t(X.closeBtn, !0), !1) + o("aria-label", t(u("Close drawer"), !0), !1) + o("title", t(u("Close"), !0), !1), t(n(
|
|
1122
|
+
})), o("class", t(X.closeBtn, !0), !1) + o("aria-label", t(u("Close drawer"), !0), !1) + o("title", t(u("Close"), !0), !1), t(n(je, {
|
|
1170
1123
|
"aria-hidden": "true"
|
|
1171
1124
|
})), o("class", t(X.body, !0), !1), t(n(be, {
|
|
1172
1125
|
get children() {
|
|
1173
|
-
return g(
|
|
1126
|
+
return g(Fr, o("class", t(X.bodyContent, !0), !1), t(e.children));
|
|
1174
1127
|
}
|
|
1175
1128
|
})), t(n(w, {
|
|
1176
1129
|
get when() {
|
|
1177
1130
|
return e.footer;
|
|
1178
1131
|
},
|
|
1179
1132
|
get children() {
|
|
1180
|
-
return g(
|
|
1133
|
+
return g(Hr, o("class", t(X.footer, !0), !1), t(e.footer));
|
|
1181
1134
|
}
|
|
1182
1135
|
})))];
|
|
1183
1136
|
}
|
|
1184
1137
|
})
|
|
1185
1138
|
});
|
|
1186
1139
|
}
|
|
1187
|
-
const
|
|
1188
|
-
list:
|
|
1189
|
-
listViewport:
|
|
1190
|
-
section:
|
|
1191
|
-
sectionHeader:
|
|
1192
|
-
sectionLabel:
|
|
1193
|
-
sectionAside:
|
|
1194
|
-
item:
|
|
1195
|
-
itemSelected:
|
|
1196
|
-
itemActive:
|
|
1197
|
-
itemDanger:
|
|
1198
|
-
check:
|
|
1199
|
-
icon:
|
|
1200
|
-
text:
|
|
1201
|
-
labelLine:
|
|
1202
|
-
label:
|
|
1203
|
-
badge:
|
|
1204
|
-
description:
|
|
1205
|
-
meta:
|
|
1206
|
-
trailing:
|
|
1207
|
-
entry:
|
|
1208
|
-
entryMain:
|
|
1209
|
-
entryDisabled:
|
|
1210
|
-
separator:
|
|
1211
|
-
empty:
|
|
1212
|
-
search:
|
|
1213
|
-
disclosure:
|
|
1214
|
-
disclosureChevron:
|
|
1215
|
-
disclosureChevronOpen:
|
|
1216
|
-
disclosureBody:
|
|
1217
|
-
disclosureBodyIndented:
|
|
1218
|
-
visuallyHidden:
|
|
1140
|
+
const jr = "vk_list_iYUkw", Kr = "vk_listViewport_JwNDT", Yr = "vk_section_zygSY", Ur = "vk_sectionHeader_m2b8a", Qr = "vk_sectionLabel_WuN5V", Gr = "vk_sectionAside_P5VF4", Jr = "vk_item_ZIjh8 vk_item_neWq-", Xr = "vk_itemSelected_HK9is vk_itemSelected_f4xDB", Zr = "vk_itemActive_GPKO0 vk_itemActive_vyOXZ", eo = "vk_itemDanger_hwpDy", to = "vk_check_mPaKX vk_check_dO3aK", no = "vk_icon_QIgcd vk_itemIcon_bv6oS", ro = "vk_text_urFay", oo = "vk_labelLine_1jtiD", ao = "vk_label_DTLHt vk_label_zTITb", so = "vk_badge_sFW5I", io = "vk_description_gm3kI", co = "vk_meta_zRD2G vk_shortcut_S1oQc", lo = "vk_trailing_5nqrI", uo = "vk_entry_FJLiI", mo = "vk_entryMain_2COS4", fo = "vk_entryDisabled_nigmQ vk_itemDisabled_OROlk", go = "vk_separator_NRGSq vk_separator_zMw59", ho = "vk_empty_TWf-X vk_empty_oOHu3", vo = "vk_search_uj4-c", bo = "vk_disclosure_WxAg6", _o = "vk_disclosureChevron_aw7Fx vk_chevron_pb9D1", wo = "vk_disclosureChevronOpen_WImPp", ko = "vk_disclosureBody_StI9b", po = "vk_disclosureBodyIndented_t4GxF", yo = "vk_visuallyHidden_u-q6B", x = {
|
|
1141
|
+
list: jr,
|
|
1142
|
+
listViewport: Kr,
|
|
1143
|
+
section: Yr,
|
|
1144
|
+
sectionHeader: Ur,
|
|
1145
|
+
sectionLabel: Qr,
|
|
1146
|
+
sectionAside: Gr,
|
|
1147
|
+
item: Jr,
|
|
1148
|
+
itemSelected: Xr,
|
|
1149
|
+
itemActive: Zr,
|
|
1150
|
+
itemDanger: eo,
|
|
1151
|
+
check: to,
|
|
1152
|
+
icon: no,
|
|
1153
|
+
text: ro,
|
|
1154
|
+
labelLine: oo,
|
|
1155
|
+
label: ao,
|
|
1156
|
+
badge: so,
|
|
1157
|
+
description: io,
|
|
1158
|
+
meta: co,
|
|
1159
|
+
trailing: lo,
|
|
1160
|
+
entry: uo,
|
|
1161
|
+
entryMain: mo,
|
|
1162
|
+
entryDisabled: fo,
|
|
1163
|
+
separator: go,
|
|
1164
|
+
empty: ho,
|
|
1165
|
+
search: vo,
|
|
1166
|
+
disclosure: bo,
|
|
1167
|
+
disclosureChevron: _o,
|
|
1168
|
+
disclosureChevronOpen: wo,
|
|
1169
|
+
disclosureBody: ko,
|
|
1170
|
+
disclosureBodyIndented: po,
|
|
1171
|
+
visuallyHidden: yo
|
|
1219
1172
|
};
|
|
1220
|
-
var ve = ["<span", ">", "</span>"],
|
|
1173
|
+
var ve = ["<span", ">", "</span>"], Co = ['<div role="group"', "><div", "><span", ">", "</span>", "</div>", "</div>"], Fe = ["<span", ' aria-hidden="true">', "</span>"], $o = ["<span", "><span", "><span", ">", "</span>", "</span>", "</span>"], So = ["<div", ">", "<span", ">", "</span></div>"], Lo = ['<div role="separator"', "></div>"], vt = ["<div", ">", "</div>"], Io = ["<span", "><span", "><span", ">", "</span></span>", "</span>"], xo = ["<div", ' role="group"', ">", "</div>"], Ao = ["<div", ">", "", "</div>"];
|
|
1221
1174
|
function le(...e) {
|
|
1222
1175
|
return e.filter((r) => !!r).join(" ");
|
|
1223
1176
|
}
|
|
@@ -1240,9 +1193,9 @@ function To(e) {
|
|
|
1240
1193
|
}
|
|
1241
1194
|
});
|
|
1242
1195
|
}
|
|
1243
|
-
function
|
|
1196
|
+
function Do(e) {
|
|
1244
1197
|
const r = G();
|
|
1245
|
-
return g(
|
|
1198
|
+
return g(Co, o("aria-labelledby", t(r, !0), !1) + o("class", t(le(x.section, e.class), !0), !1), o("class", t(x.sectionHeader, !0), !1), o("id", t(r, !0), !1) + o("class", t(x.sectionLabel, !0), !1), t(e.label), t(n(w, {
|
|
1246
1199
|
get when() {
|
|
1247
1200
|
return e.aside !== void 0;
|
|
1248
1201
|
},
|
|
@@ -1251,13 +1204,13 @@ function Mo(e) {
|
|
|
1251
1204
|
}
|
|
1252
1205
|
})), t(e.children));
|
|
1253
1206
|
}
|
|
1254
|
-
function
|
|
1255
|
-
const r = G(),
|
|
1207
|
+
function Mo(e) {
|
|
1208
|
+
const r = G(), a = () => e.role ?? (e.checked !== void 0 ? "menuitemcheckbox" : "menuitem"), c = () => a() === "menuitemcheckbox" || a() === "menuitemradio", d = () => e.checked !== void 0 || e.reserveCheck === !0, m = () => e.icon !== void 0 || e.reserveIcon === !0, v = () => e.trailing !== void 0, l = () => v() && a() === "menuitem", b = () => [n(w, {
|
|
1256
1209
|
get when() {
|
|
1257
1210
|
return d();
|
|
1258
1211
|
},
|
|
1259
1212
|
get children() {
|
|
1260
|
-
return g(
|
|
1213
|
+
return g(Fe, o("class", t(x.check, !0), !1), t(n(w, {
|
|
1261
1214
|
get when() {
|
|
1262
1215
|
return e.checked === !0;
|
|
1263
1216
|
},
|
|
@@ -1271,9 +1224,9 @@ function Ro(e) {
|
|
|
1271
1224
|
return m();
|
|
1272
1225
|
},
|
|
1273
1226
|
get children() {
|
|
1274
|
-
return g(
|
|
1227
|
+
return g(Fe, o("class", t(x.icon, !0), !1), t(e.icon));
|
|
1275
1228
|
}
|
|
1276
|
-
}), g(
|
|
1229
|
+
}), g($o, o("class", t(x.text, !0), !1) + o("title", t(e.title ?? e.hint, !0), !1), o("class", t(x.labelLine, !0), !1), o("class", t(x.label, !0), !1), t(e.label), t(n(w, {
|
|
1277
1230
|
get when() {
|
|
1278
1231
|
return e.badge !== void 0;
|
|
1279
1232
|
},
|
|
@@ -1296,7 +1249,7 @@ function Ro(e) {
|
|
|
1296
1249
|
}
|
|
1297
1250
|
}), n(w, {
|
|
1298
1251
|
get when() {
|
|
1299
|
-
return
|
|
1252
|
+
return l();
|
|
1300
1253
|
},
|
|
1301
1254
|
get children() {
|
|
1302
1255
|
return g(ve, o("class", t(x.trailing, !0), !1), t(e.trailing));
|
|
@@ -1310,29 +1263,29 @@ function Ro(e) {
|
|
|
1310
1263
|
}
|
|
1311
1264
|
})], _ = () => le((e.selected || e.pressed) && x.itemSelected, e.active && x.itemActive, e.danger && x.itemDanger), I = ($) => n(ye, {
|
|
1312
1265
|
get as() {
|
|
1313
|
-
return
|
|
1266
|
+
return l() ? "div" : "button";
|
|
1314
1267
|
},
|
|
1315
1268
|
get id() {
|
|
1316
1269
|
return e.id;
|
|
1317
1270
|
},
|
|
1318
1271
|
get role() {
|
|
1319
|
-
return
|
|
1272
|
+
return a();
|
|
1320
1273
|
},
|
|
1321
1274
|
class: $,
|
|
1322
1275
|
get disabled() {
|
|
1323
1276
|
return e.disabled;
|
|
1324
1277
|
},
|
|
1325
1278
|
get "aria-checked"() {
|
|
1326
|
-
return ee(() => !!
|
|
1279
|
+
return ee(() => !!c())() ? e.checked === !0 : void 0;
|
|
1327
1280
|
},
|
|
1328
1281
|
get "aria-selected"() {
|
|
1329
|
-
return ee(() =>
|
|
1282
|
+
return ee(() => a() === "option")() ? e.selected === !0 : void 0;
|
|
1330
1283
|
},
|
|
1331
1284
|
get "aria-current"() {
|
|
1332
|
-
return (
|
|
1285
|
+
return (a() === "menuitem" || a() === "button") && e.selected === !0 ? "true" : void 0;
|
|
1333
1286
|
},
|
|
1334
1287
|
get "aria-pressed"() {
|
|
1335
|
-
return ee(() =>
|
|
1288
|
+
return ee(() => a() === "button" && e.pressed !== void 0)() ? e.pressed : void 0;
|
|
1336
1289
|
},
|
|
1337
1290
|
get "aria-describedby"() {
|
|
1338
1291
|
return e.hint ? r : void 0;
|
|
@@ -1346,38 +1299,38 @@ function Ro(e) {
|
|
|
1346
1299
|
return (k = e.onContextMenu) == null ? void 0 : k.call(e, N);
|
|
1347
1300
|
},
|
|
1348
1301
|
get children() {
|
|
1349
|
-
return
|
|
1302
|
+
return b();
|
|
1350
1303
|
}
|
|
1351
1304
|
});
|
|
1352
1305
|
return n(w, {
|
|
1353
1306
|
get when() {
|
|
1354
|
-
return ee(() => !!
|
|
1307
|
+
return ee(() => !!v())() && !l();
|
|
1355
1308
|
},
|
|
1356
1309
|
get fallback() {
|
|
1357
1310
|
return I(le(x.item, _(), e.class));
|
|
1358
1311
|
},
|
|
1359
1312
|
get children() {
|
|
1360
|
-
return g(
|
|
1313
|
+
return g(So, o("class", t(le(x.item, x.entry, _(), e.disabled && x.entryDisabled, e.class), !0), !1), t(I(x.entryMain)), o("class", t(x.trailing, !0), !1), t(e.trailing));
|
|
1361
1314
|
}
|
|
1362
1315
|
});
|
|
1363
1316
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return g(
|
|
1317
|
+
function Ro(e) {
|
|
1318
|
+
return g(Lo, o("class", t(le(x.separator, e.class), !0), !1));
|
|
1366
1319
|
}
|
|
1367
|
-
function
|
|
1320
|
+
function Qi(e) {
|
|
1368
1321
|
return g(vt, o("class", t(le(x.empty, e.class), !0), !1), t(e.children));
|
|
1369
1322
|
}
|
|
1370
|
-
function
|
|
1323
|
+
function Gi(e) {
|
|
1371
1324
|
return g(vt, o("class", t(le(x.search, e.class), !0), !1), t(e.children));
|
|
1372
1325
|
}
|
|
1373
|
-
function
|
|
1374
|
-
const r = G(),
|
|
1326
|
+
function Ji(e) {
|
|
1327
|
+
const r = G(), a = G(), [c, d] = D(e.defaultOpen ?? !1), m = () => e.open !== void 0 ? e.open : c(), v = () => e.icon !== void 0 || e.reserveIcon === !0, l = () => {
|
|
1375
1328
|
var _;
|
|
1376
1329
|
if (e.disabled) return;
|
|
1377
|
-
const
|
|
1378
|
-
e.open === void 0 && d(
|
|
1330
|
+
const b = !m();
|
|
1331
|
+
e.open === void 0 && d(b), (_ = e.onToggle) == null || _.call(e, b);
|
|
1379
1332
|
};
|
|
1380
|
-
return g(
|
|
1333
|
+
return g(Ao, o("class", t(le(x.disclosure, e.class), !0), !1), t(n(ye, {
|
|
1381
1334
|
id: r,
|
|
1382
1335
|
get class() {
|
|
1383
1336
|
return x.item;
|
|
@@ -1389,18 +1342,18 @@ function Xi(e) {
|
|
|
1389
1342
|
return m() ? "true" : "false";
|
|
1390
1343
|
},
|
|
1391
1344
|
get "aria-controls"() {
|
|
1392
|
-
return m() ?
|
|
1345
|
+
return m() ? a : void 0;
|
|
1393
1346
|
},
|
|
1394
|
-
onClick:
|
|
1347
|
+
onClick: l,
|
|
1395
1348
|
get children() {
|
|
1396
1349
|
return [n(w, {
|
|
1397
1350
|
get when() {
|
|
1398
|
-
return
|
|
1351
|
+
return v();
|
|
1399
1352
|
},
|
|
1400
1353
|
get children() {
|
|
1401
|
-
return g(
|
|
1354
|
+
return g(Fe, o("class", t(x.icon, !0), !1), t(e.icon));
|
|
1402
1355
|
}
|
|
1403
|
-
}), g(
|
|
1356
|
+
}), g(Io, o("class", t(x.text, !0), !1), o("class", t(x.labelLine, !0), !1), o("class", t(x.label, !0), !1), t(e.label), t(n(w, {
|
|
1404
1357
|
get when() {
|
|
1405
1358
|
return e.description !== void 0;
|
|
1406
1359
|
},
|
|
@@ -1419,49 +1372,49 @@ function Xi(e) {
|
|
|
1419
1372
|
return m();
|
|
1420
1373
|
},
|
|
1421
1374
|
get children() {
|
|
1422
|
-
return g(
|
|
1375
|
+
return g(xo, o("id", t(a, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("class", t(le(x.disclosureBody, v() && x.disclosureBodyIndented, e.bodyClass), !0), !1), t(e.children));
|
|
1423
1376
|
}
|
|
1424
1377
|
})));
|
|
1425
1378
|
}
|
|
1426
|
-
const
|
|
1427
|
-
menuList:
|
|
1379
|
+
const Eo = "vk_menuList_Rdcyj", Po = {
|
|
1380
|
+
menuList: Eo
|
|
1428
1381
|
};
|
|
1429
|
-
var
|
|
1382
|
+
var Bo = ["<div", ' style="', '">', "", "</div>"];
|
|
1430
1383
|
function bt(e) {
|
|
1431
1384
|
return "type" in e && e.type === "separator";
|
|
1432
1385
|
}
|
|
1433
1386
|
function _t(e) {
|
|
1434
1387
|
return "type" in e && e.type === "section";
|
|
1435
1388
|
}
|
|
1436
|
-
function
|
|
1389
|
+
function Oo(e) {
|
|
1437
1390
|
const r = [];
|
|
1438
|
-
let
|
|
1391
|
+
let a, c = [];
|
|
1439
1392
|
const d = () => {
|
|
1440
|
-
|
|
1393
|
+
c.length > 0 && r.push({
|
|
1441
1394
|
kind: "rows",
|
|
1442
|
-
label:
|
|
1443
|
-
rows:
|
|
1444
|
-
}),
|
|
1395
|
+
label: a,
|
|
1396
|
+
rows: c
|
|
1397
|
+
}), a = void 0, c = [];
|
|
1445
1398
|
};
|
|
1446
1399
|
for (const m of e)
|
|
1447
1400
|
bt(m) ? (d(), r.push({
|
|
1448
1401
|
kind: "separator"
|
|
1449
|
-
})) : _t(m) ? (d(),
|
|
1402
|
+
})) : _t(m) ? (d(), a = m.label) : c.push(m);
|
|
1450
1403
|
return d(), r;
|
|
1451
1404
|
}
|
|
1452
|
-
function
|
|
1453
|
-
const [r,
|
|
1454
|
-
let
|
|
1405
|
+
function Xi(e) {
|
|
1406
|
+
const [r, a] = D(!1);
|
|
1407
|
+
let c = null;
|
|
1455
1408
|
const d = () => e.open !== void 0 ? e.open : r(), m = (k) => {
|
|
1456
|
-
e.onOpenChange && e.onOpenChange(k), e.open === void 0 &&
|
|
1457
|
-
},
|
|
1409
|
+
e.onOpenChange && e.onOpenChange(k), e.open === void 0 && a(k);
|
|
1410
|
+
}, v = () => {
|
|
1458
1411
|
e.disabled || m(!d());
|
|
1459
|
-
},
|
|
1412
|
+
}, l = (k) => {
|
|
1460
1413
|
var S;
|
|
1461
1414
|
k.disabled || (m(!1), (S = k.onSelect) == null || S.call(k));
|
|
1462
|
-
},
|
|
1415
|
+
}, b = U(() => e.items.filter((k) => !bt(k) && !_t(k))), _ = U(() => b().some((k) => !!k.icon)), I = U(() => b().some((k) => k.checked !== void 0)), $ = U(() => Oo(e.items)), N = (k) => n(me, {
|
|
1463
1416
|
each: k,
|
|
1464
|
-
children: (S) => n(
|
|
1417
|
+
children: (S) => n(Mo, {
|
|
1465
1418
|
get id() {
|
|
1466
1419
|
return S.id;
|
|
1467
1420
|
},
|
|
@@ -1495,10 +1448,10 @@ function Zi(e) {
|
|
|
1495
1448
|
get disabled() {
|
|
1496
1449
|
return S.disabled;
|
|
1497
1450
|
},
|
|
1498
|
-
onSelect: () =>
|
|
1451
|
+
onSelect: () => l(S)
|
|
1499
1452
|
})
|
|
1500
1453
|
});
|
|
1501
|
-
return g(
|
|
1454
|
+
return g(Bo, o("class", t(e.class, !0), !1), Z("display:", "inline-block"), t(n(w, {
|
|
1502
1455
|
get when() {
|
|
1503
1456
|
return e.trigger;
|
|
1504
1457
|
},
|
|
@@ -1513,7 +1466,7 @@ function Zi(e) {
|
|
|
1513
1466
|
get disabled() {
|
|
1514
1467
|
return e.disabled;
|
|
1515
1468
|
},
|
|
1516
|
-
onClick:
|
|
1469
|
+
onClick: v,
|
|
1517
1470
|
"aria-haspopup": "menu",
|
|
1518
1471
|
get "aria-expanded"() {
|
|
1519
1472
|
return d();
|
|
@@ -1533,8 +1486,8 @@ function Zi(e) {
|
|
|
1533
1486
|
},
|
|
1534
1487
|
children: (k) => k()({
|
|
1535
1488
|
open: d(),
|
|
1536
|
-
toggle:
|
|
1537
|
-
ref: (S) =>
|
|
1489
|
+
toggle: v,
|
|
1490
|
+
ref: (S) => c = S,
|
|
1538
1491
|
ariaProps: {
|
|
1539
1492
|
"aria-haspopup": "menu",
|
|
1540
1493
|
"aria-expanded": d()
|
|
@@ -1543,7 +1496,7 @@ function Zi(e) {
|
|
|
1543
1496
|
})), t(n(zt, {
|
|
1544
1497
|
open: d,
|
|
1545
1498
|
onClose: () => m(!1),
|
|
1546
|
-
anchor: () =>
|
|
1499
|
+
anchor: () => c,
|
|
1547
1500
|
get placement() {
|
|
1548
1501
|
return e.placement ?? "bottom-start";
|
|
1549
1502
|
},
|
|
@@ -1557,14 +1510,14 @@ function Zi(e) {
|
|
|
1557
1510
|
get children() {
|
|
1558
1511
|
return n(To, {
|
|
1559
1512
|
get class() {
|
|
1560
|
-
return `${
|
|
1513
|
+
return `${Po.menuList} ${e.menuClass ?? ""}`;
|
|
1561
1514
|
},
|
|
1562
1515
|
get children() {
|
|
1563
1516
|
return n(me, {
|
|
1564
1517
|
get each() {
|
|
1565
1518
|
return $();
|
|
1566
1519
|
},
|
|
1567
|
-
children: (k) => k.kind === "separator" ? n(
|
|
1520
|
+
children: (k) => k.kind === "separator" ? n(Ro, {}) : k.label !== void 0 ? n(Do, {
|
|
1568
1521
|
get label() {
|
|
1569
1522
|
return k.label;
|
|
1570
1523
|
},
|
|
@@ -1578,21 +1531,21 @@ function Zi(e) {
|
|
|
1578
1531
|
}
|
|
1579
1532
|
})));
|
|
1580
1533
|
}
|
|
1581
|
-
const
|
|
1582
|
-
surface:
|
|
1583
|
-
item:
|
|
1584
|
-
check:
|
|
1585
|
-
shortcut:
|
|
1586
|
-
chevron:
|
|
1587
|
-
separator:
|
|
1588
|
-
itemActive:
|
|
1589
|
-
itemSelected:
|
|
1590
|
-
itemDisabled:
|
|
1591
|
-
label:
|
|
1592
|
-
itemIcon:
|
|
1593
|
-
viewport:
|
|
1594
|
-
empty:
|
|
1595
|
-
},
|
|
1534
|
+
const zo = "vk_surface_3ZOnl", Wo = "vk_item_neWq-", No = "vk_check_dO3aK", Fo = "vk_shortcut_S1oQc", Ho = "vk_chevron_pb9D1", Vo = "vk_separator_zMw59", qo = "vk_itemActive_vyOXZ", jo = "vk_itemSelected_f4xDB", Ko = "vk_itemDisabled_OROlk", Yo = "vk_label_zTITb", Uo = "vk_itemIcon_bv6oS", Qo = "vk_viewport_B94pk", Go = "vk_empty_oOHu3", re = {
|
|
1535
|
+
surface: zo,
|
|
1536
|
+
item: Wo,
|
|
1537
|
+
check: No,
|
|
1538
|
+
shortcut: Fo,
|
|
1539
|
+
chevron: Ho,
|
|
1540
|
+
separator: Vo,
|
|
1541
|
+
itemActive: qo,
|
|
1542
|
+
itemSelected: jo,
|
|
1543
|
+
itemDisabled: Ko,
|
|
1544
|
+
label: Yo,
|
|
1545
|
+
itemIcon: Uo,
|
|
1546
|
+
viewport: Qo,
|
|
1547
|
+
empty: Go
|
|
1548
|
+
}, Zi = Object.freeze({
|
|
1596
1549
|
surface: re.surface,
|
|
1597
1550
|
viewport: re.viewport,
|
|
1598
1551
|
item: re.item,
|
|
@@ -1607,19 +1560,19 @@ const Wo = "vk_surface_3ZOnl", No = "vk_item_neWq-", Fo = "vk_check_dO3aK", Ho =
|
|
|
1607
1560
|
separator: re.separator,
|
|
1608
1561
|
empty: re.empty
|
|
1609
1562
|
});
|
|
1610
|
-
var
|
|
1611
|
-
function
|
|
1563
|
+
var Jo = ['<span style="', '" aria-hidden="true"></span>'], Xo = ["<div", "><span>", "</span>", "</div>"], Zo = ["<div", ' role="tooltip" class="', '" style="', '">', "</div>"], ea = ["<span>", "</span>"];
|
|
1564
|
+
function ec() {
|
|
1612
1565
|
let e, r;
|
|
1613
|
-
const [
|
|
1566
|
+
const [a, c] = D({
|
|
1614
1567
|
top: -9999,
|
|
1615
1568
|
left: -9999
|
|
1616
|
-
}), d =
|
|
1569
|
+
}), d = Ne.activeTooltip, m = () => Te(e), v = () => {
|
|
1617
1570
|
const _ = d(), I = m();
|
|
1618
|
-
return _ !== null && I !== null &&
|
|
1571
|
+
return _ !== null && I !== null && Te(_.target) === I;
|
|
1619
1572
|
};
|
|
1620
|
-
|
|
1621
|
-
if (!d() || !
|
|
1622
|
-
|
|
1573
|
+
oe(() => {
|
|
1574
|
+
if (!d() || !v()) {
|
|
1575
|
+
c({
|
|
1623
1576
|
top: -9999,
|
|
1624
1577
|
left: -9999
|
|
1625
1578
|
});
|
|
@@ -1634,19 +1587,19 @@ function tc() {
|
|
|
1634
1587
|
typeof $.removeEventListener == "function" && $.removeEventListener("resize", I);
|
|
1635
1588
|
}));
|
|
1636
1589
|
});
|
|
1637
|
-
const
|
|
1590
|
+
const l = () => {
|
|
1638
1591
|
const _ = d();
|
|
1639
1592
|
return _ ? typeof _.content == "function" ? _.content() : _.content : null;
|
|
1640
|
-
},
|
|
1593
|
+
}, b = () => {
|
|
1641
1594
|
const _ = d();
|
|
1642
1595
|
if (_)
|
|
1643
1596
|
return typeof _.shortcut == "function" ? _.shortcut() : _.shortcut;
|
|
1644
1597
|
};
|
|
1645
|
-
return [g(
|
|
1598
|
+
return [g(Jo, Z("display:", "none")), n(w, {
|
|
1646
1599
|
get when() {
|
|
1647
|
-
return ee(() => !!
|
|
1600
|
+
return ee(() => !!v())() ? m() : null;
|
|
1648
1601
|
},
|
|
1649
|
-
children: (_) => n(
|
|
1602
|
+
children: (_) => n(Le, {
|
|
1650
1603
|
type: "tooltip",
|
|
1651
1604
|
get mount() {
|
|
1652
1605
|
return _().document.body;
|
|
@@ -1655,18 +1608,18 @@ function tc() {
|
|
|
1655
1608
|
idPrefix: "tooltip-host",
|
|
1656
1609
|
get children() {
|
|
1657
1610
|
var I;
|
|
1658
|
-
return g(
|
|
1611
|
+
return g(Zo, o("id", t((I = d()) == null ? void 0 : I.id, !0), !1), `${t(Ee.tooltip, !0)} ${t(Ee.hostTooltip, !0)}`, Z("top:", `${t(a().top, !0)}px`) + Z(";left:", `${t(a().left, !0)}px`), t(n(w, {
|
|
1659
1612
|
get when() {
|
|
1660
|
-
return
|
|
1613
|
+
return b();
|
|
1661
1614
|
},
|
|
1662
1615
|
get fallback() {
|
|
1663
|
-
return g(
|
|
1616
|
+
return g(ea, t(l()));
|
|
1664
1617
|
},
|
|
1665
1618
|
get children() {
|
|
1666
|
-
return g(
|
|
1619
|
+
return g(Xo, o("class", t(Ee.tooltipInner, !0), !1), t(l()), t(n(it, {
|
|
1667
1620
|
size: "xs",
|
|
1668
1621
|
get shortcut() {
|
|
1669
|
-
return
|
|
1622
|
+
return b();
|
|
1670
1623
|
}
|
|
1671
1624
|
})));
|
|
1672
1625
|
}
|
|
@@ -1675,63 +1628,63 @@ function tc() {
|
|
|
1675
1628
|
})
|
|
1676
1629
|
})];
|
|
1677
1630
|
}
|
|
1678
|
-
function
|
|
1679
|
-
const
|
|
1680
|
-
const
|
|
1681
|
-
return
|
|
1631
|
+
function tc(e, r) {
|
|
1632
|
+
const a = G(), c = () => {
|
|
1633
|
+
const v = r();
|
|
1634
|
+
return v ? typeof v == "string" ? { content: v } : v : null;
|
|
1682
1635
|
}, d = () => {
|
|
1683
|
-
const
|
|
1684
|
-
!
|
|
1685
|
-
id:
|
|
1636
|
+
const v = c();
|
|
1637
|
+
!v || !v.content || (e.hasAttribute("title") && (e.setAttribute("data-suppressed-title", e.getAttribute("title") ?? ""), e.removeAttribute("title")), Ne.showTooltip({
|
|
1638
|
+
id: a,
|
|
1686
1639
|
target: e,
|
|
1687
|
-
content:
|
|
1688
|
-
shortcut:
|
|
1689
|
-
placement:
|
|
1690
|
-
offset:
|
|
1691
|
-
delayMs:
|
|
1640
|
+
content: v.content,
|
|
1641
|
+
shortcut: v.shortcut,
|
|
1642
|
+
placement: v.placement,
|
|
1643
|
+
offset: v.offset,
|
|
1644
|
+
delayMs: v.delayMs
|
|
1692
1645
|
}));
|
|
1693
1646
|
}, m = () => {
|
|
1694
1647
|
if (e.hasAttribute("data-suppressed-title")) {
|
|
1695
|
-
const
|
|
1696
|
-
|
|
1648
|
+
const v = e.getAttribute("data-suppressed-title");
|
|
1649
|
+
v && e.setAttribute("title", v), e.removeAttribute("data-suppressed-title");
|
|
1697
1650
|
}
|
|
1698
|
-
|
|
1651
|
+
Ne.hideTooltip(e);
|
|
1699
1652
|
};
|
|
1700
1653
|
e.addEventListener("pointerenter", d), e.addEventListener("pointerleave", m), e.addEventListener("focusin", d), e.addEventListener("focusout", m), Y(() => {
|
|
1701
1654
|
m(), e.removeEventListener("pointerenter", d), e.removeEventListener("pointerleave", m), e.removeEventListener("focusin", d), e.removeEventListener("focusout", m);
|
|
1702
1655
|
});
|
|
1703
1656
|
}
|
|
1704
|
-
function
|
|
1657
|
+
function nc(e, r) {
|
|
1705
1658
|
return e === "Escape" ? "dismiss" : e === "Enter" && r.step === "name" && r.nameMatches ? "advance" : "none";
|
|
1706
1659
|
}
|
|
1707
|
-
const
|
|
1708
|
-
overlay:
|
|
1709
|
-
dialog:
|
|
1710
|
-
header:
|
|
1711
|
-
warningIcon:
|
|
1712
|
-
title:
|
|
1713
|
-
body:
|
|
1714
|
-
description:
|
|
1715
|
-
resourceLine:
|
|
1716
|
-
resourceName:
|
|
1717
|
-
field:
|
|
1718
|
-
fieldLabel:
|
|
1719
|
-
input:
|
|
1720
|
-
inputMatch:
|
|
1721
|
-
optionsList:
|
|
1722
|
-
optionRow:
|
|
1723
|
-
optionLabel:
|
|
1724
|
-
optionDescription:
|
|
1725
|
-
finalNote:
|
|
1726
|
-
consequenceNote:
|
|
1727
|
-
selectedOptions:
|
|
1728
|
-
selectedList:
|
|
1729
|
-
codeScroll:
|
|
1730
|
-
code:
|
|
1731
|
-
codePre:
|
|
1732
|
-
countdown:
|
|
1733
|
-
footer:
|
|
1734
|
-
footerSpacer:
|
|
1660
|
+
const ta = "vk_overlay_Fd-y-", na = "vk_dialog_Yf7zX", ra = "vk_header_CYXMR", oa = "vk_warningIcon_qizN5", aa = "vk_title_DPV4m vk_titleLg_Iswm3", sa = "vk_body_Zvd50", ia = "vk_description_n-sBy", ca = "vk_resourceLine_BeZWP", la = "vk_resourceName_JQ9EK", ua = "vk_field_JETn-", da = "vk_fieldLabel_u8YkC", ma = "vk_input_Smbpd", fa = "vk_inputMatch_k6go-", ga = "vk_optionsList_XwOCV", ha = "vk_optionRow_OYLHB", va = "vk_optionLabel_pJHcY", ba = "vk_optionDescription_Zi6is", _a = "vk_finalNote_PVV7h", wa = "vk_consequenceNote_oaOZl", ka = "vk_selectedOptions_7tn0k", pa = "vk_selectedList_LFTe1", ya = "vk_codeScroll_7A6w3", Ca = "vk_code_ozAuk", $a = "vk_codePre_01c25", Sa = "vk_countdown_CJhCw", La = "vk_footer_v0cjd", Ia = "vk_footerSpacer_jQepg", R = {
|
|
1661
|
+
overlay: ta,
|
|
1662
|
+
dialog: na,
|
|
1663
|
+
header: ra,
|
|
1664
|
+
warningIcon: oa,
|
|
1665
|
+
title: aa,
|
|
1666
|
+
body: sa,
|
|
1667
|
+
description: ia,
|
|
1668
|
+
resourceLine: ca,
|
|
1669
|
+
resourceName: la,
|
|
1670
|
+
field: ua,
|
|
1671
|
+
fieldLabel: da,
|
|
1672
|
+
input: ma,
|
|
1673
|
+
inputMatch: fa,
|
|
1674
|
+
optionsList: ga,
|
|
1675
|
+
optionRow: ha,
|
|
1676
|
+
optionLabel: va,
|
|
1677
|
+
optionDescription: ba,
|
|
1678
|
+
finalNote: _a,
|
|
1679
|
+
consequenceNote: wa,
|
|
1680
|
+
selectedOptions: ka,
|
|
1681
|
+
selectedList: pa,
|
|
1682
|
+
codeScroll: ya,
|
|
1683
|
+
code: Ca,
|
|
1684
|
+
codePre: $a,
|
|
1685
|
+
countdown: Sa,
|
|
1686
|
+
footer: La,
|
|
1687
|
+
footerSpacer: Ia
|
|
1735
1688
|
}, wt = {
|
|
1736
1689
|
delete: {
|
|
1737
1690
|
reversible: !1,
|
|
@@ -1820,20 +1773,20 @@ const na = "vk_overlay_Fd-y-", ra = "vk_dialog_Yf7zX", oa = "vk_header_CYXMR", a
|
|
|
1820
1773
|
function kt(e) {
|
|
1821
1774
|
return !wt[e].reversible;
|
|
1822
1775
|
}
|
|
1823
|
-
function
|
|
1776
|
+
function rc(e) {
|
|
1824
1777
|
return kt(e) ? "typed" : "confirm";
|
|
1825
1778
|
}
|
|
1826
|
-
function
|
|
1827
|
-
const r = wt[e],
|
|
1779
|
+
function xa(e) {
|
|
1780
|
+
const r = wt[e], a = {
|
|
1828
1781
|
lead: r.lead(),
|
|
1829
1782
|
note: r.note(),
|
|
1830
1783
|
confirmLabel: r.confirmLabel()
|
|
1831
1784
|
};
|
|
1832
|
-
return r.reversible ? { ...
|
|
1785
|
+
return r.reversible ? { ...a, level: "confirm" } : { ...a, level: "typed", finalLabel: r.finalLabel() };
|
|
1833
1786
|
}
|
|
1834
|
-
var
|
|
1835
|
-
function
|
|
1836
|
-
return g(
|
|
1787
|
+
var Aa = ["<div", ">", "<span", "></span>", "", "", "</div>"], Ta = ["<span>", " <span", ">(", "s)</span></span>"], Da = ["<p", ">", " <span", ">", "</span></p>"], Ma = ["<label", "><span", ">", "</span>", "</label>"], Ra = ["<div", ">", "</div>"], Ea = ["<span", ">", "</span>"], Pa = ["<span", "><span>", "</span>", "</span>"], Ba = ["<p", " data-consequence-line>", " <span", ">", "</span>.</p>"], Oa = ["<p", ">", "</p>"], za = ["<div", "><span", ">", "</span><ul", ">", "</ul></div>"], Wa = ["<li>", "</li>"], Na = ["<pre", "><code>", "</code></pre>"];
|
|
1788
|
+
function Fa(e) {
|
|
1789
|
+
return g(Aa, o("class", t(R.footer, !0), !1), t(n(Q, {
|
|
1837
1790
|
size: "md",
|
|
1838
1791
|
variant: "secondary",
|
|
1839
1792
|
get onClick() {
|
|
@@ -1917,10 +1870,10 @@ function Ha(e) {
|
|
|
1917
1870
|
}
|
|
1918
1871
|
})));
|
|
1919
1872
|
}
|
|
1920
|
-
function
|
|
1921
|
-
return [g(
|
|
1873
|
+
function Ha(e) {
|
|
1874
|
+
return [g(Da, o("class", t(R.resourceLine, !0), !1), t(u("To confirm, type the {label} below:", {
|
|
1922
1875
|
label: e.request().resourceLabel
|
|
1923
|
-
})), o("class", t(R.resourceName, !0), !1), t(e.request().resourceName)), g(
|
|
1876
|
+
})), o("class", t(R.resourceName, !0), !1), t(e.request().resourceName)), g(Ma, o("class", t(R.field, !0), !1), o("class", t(R.fieldLabel, !0), !1), t(e.request().resourceLabel), t(n(Ve, {
|
|
1924
1877
|
get class() {
|
|
1925
1878
|
return e.inputClass();
|
|
1926
1879
|
},
|
|
@@ -1936,13 +1889,13 @@ function Va(e) {
|
|
|
1936
1889
|
}
|
|
1937
1890
|
})))];
|
|
1938
1891
|
}
|
|
1939
|
-
function
|
|
1892
|
+
function Je(e) {
|
|
1940
1893
|
return n(w, {
|
|
1941
1894
|
get when() {
|
|
1942
1895
|
return e.options().length > 0;
|
|
1943
1896
|
},
|
|
1944
1897
|
get children() {
|
|
1945
|
-
return g(
|
|
1898
|
+
return g(Ra, o("class", t(R.optionsList, !0), !1), t(n(me, {
|
|
1946
1899
|
get each() {
|
|
1947
1900
|
return e.options();
|
|
1948
1901
|
},
|
|
@@ -1958,12 +1911,12 @@ function Ge(e) {
|
|
|
1958
1911
|
return r.label;
|
|
1959
1912
|
},
|
|
1960
1913
|
get children() {
|
|
1961
|
-
return g(
|
|
1914
|
+
return g(Pa, o("class", t(R.optionLabel, !0), !1), t(r.label), t(n(w, {
|
|
1962
1915
|
get when() {
|
|
1963
1916
|
return r.description;
|
|
1964
1917
|
},
|
|
1965
1918
|
get children() {
|
|
1966
|
-
return g(
|
|
1919
|
+
return g(Ea, o("class", t(R.optionDescription, !0), !1), t(r.description));
|
|
1967
1920
|
}
|
|
1968
1921
|
})));
|
|
1969
1922
|
}
|
|
@@ -1972,25 +1925,25 @@ function Ge(e) {
|
|
|
1972
1925
|
}
|
|
1973
1926
|
});
|
|
1974
1927
|
}
|
|
1975
|
-
function
|
|
1976
|
-
return [g(
|
|
1928
|
+
function Xe(e) {
|
|
1929
|
+
return [g(Ba, o("class", t(R.resourceLine, !0), !1), t(e.copy.lead), o("class", t(R.resourceName, !0), !1), t(e.resourceName)), g(Oa, o("class", t(R.consequenceNote, !0), !1), t(e.copy.note))];
|
|
1977
1930
|
}
|
|
1978
|
-
function
|
|
1931
|
+
function Va(e) {
|
|
1979
1932
|
return n(w, {
|
|
1980
1933
|
get when() {
|
|
1981
1934
|
return e.options().length > 0;
|
|
1982
1935
|
},
|
|
1983
1936
|
get children() {
|
|
1984
|
-
return g(
|
|
1937
|
+
return g(za, o("class", t(R.selectedOptions, !0), !1), o("class", t(R.fieldLabel, !0), !1), t(u("Selected options")), o("class", t(R.selectedList, !0), !1), t(n(me, {
|
|
1985
1938
|
get each() {
|
|
1986
1939
|
return e.options();
|
|
1987
1940
|
},
|
|
1988
|
-
children: (r) => g(
|
|
1941
|
+
children: (r) => g(Wa, t(r.label))
|
|
1989
1942
|
})));
|
|
1990
1943
|
}
|
|
1991
1944
|
});
|
|
1992
1945
|
}
|
|
1993
|
-
function
|
|
1946
|
+
function qa(e) {
|
|
1994
1947
|
return n(be, {
|
|
1995
1948
|
get rootClass() {
|
|
1996
1949
|
return R.codeScroll;
|
|
@@ -1999,45 +1952,45 @@ function ja(e) {
|
|
|
1999
1952
|
return R.code;
|
|
2000
1953
|
},
|
|
2001
1954
|
get children() {
|
|
2002
|
-
return g(
|
|
1955
|
+
return g(Na, o("class", t(R.codePre, !0), !1) + o("aria-label", t(u("Statement"), !0), !1), t(e.code));
|
|
2003
1956
|
}
|
|
2004
1957
|
});
|
|
2005
1958
|
}
|
|
2006
|
-
var
|
|
2007
|
-
const
|
|
2008
|
-
function
|
|
2009
|
-
const r = G(),
|
|
1959
|
+
var Ze = ["<p", ">", "</p>"], ja = ["<div", ' tabindex="-1" role="presentation"><div', ' role="alertdialog" aria-modal="true"', ' tabindex="-1"><div', "><span", ' aria-hidden="true">!</span><h3', ">", "</h3></div><div", ">", "", "", "", "", "", "</div>", "</div></div>"];
|
|
1960
|
+
const ze = (e) => kt(e.consequence), Ka = 5;
|
|
1961
|
+
function oc(e) {
|
|
1962
|
+
const r = G(), a = G(), [c, d] = D(null), [m, v] = D("name"), [l, b] = D(""), [_, I] = D({}), [$, N] = D(0);
|
|
2010
1963
|
let k = null, S = null, P = !1;
|
|
2011
|
-
const
|
|
2012
|
-
var
|
|
2013
|
-
return ((
|
|
2014
|
-
}, j = () =>
|
|
2015
|
-
|
|
2016
|
-
open: () =>
|
|
1964
|
+
const T = () => {
|
|
1965
|
+
var h;
|
|
1966
|
+
return ((h = c()) == null ? void 0 : h.targetWin) ?? (e == null ? void 0 : e()) ?? qe().window;
|
|
1967
|
+
}, j = () => T().document;
|
|
1968
|
+
Ie({
|
|
1969
|
+
open: () => c() !== null,
|
|
2017
1970
|
ownerDocument: j
|
|
2018
1971
|
});
|
|
2019
1972
|
const M = () => {
|
|
2020
|
-
const
|
|
2021
|
-
k = null,
|
|
1973
|
+
const h = k;
|
|
1974
|
+
k = null, h == null || h();
|
|
2022
1975
|
}, J = () => {
|
|
2023
1976
|
M();
|
|
2024
|
-
const
|
|
2025
|
-
S = null,
|
|
1977
|
+
const h = S;
|
|
1978
|
+
S = null, h == null || h(), d(null);
|
|
2026
1979
|
}, y = () => {
|
|
2027
|
-
M(),
|
|
2028
|
-
}, L = (
|
|
2029
|
-
const C =
|
|
1980
|
+
M(), v("name"), b(""), I({}), N(0);
|
|
1981
|
+
}, L = (h) => {
|
|
1982
|
+
const C = c();
|
|
2030
1983
|
if (!C) return;
|
|
2031
1984
|
const B = {
|
|
2032
|
-
confirmed:
|
|
1985
|
+
confirmed: h,
|
|
2033
1986
|
options: {
|
|
2034
1987
|
..._()
|
|
2035
1988
|
}
|
|
2036
1989
|
};
|
|
2037
1990
|
J(), y(), C.resolve(B);
|
|
2038
1991
|
}, V = () => {
|
|
2039
|
-
const
|
|
2040
|
-
|
|
1992
|
+
const h = c();
|
|
1993
|
+
h && (J(), y(), h.resolve({
|
|
2041
1994
|
confirmed: !1,
|
|
2042
1995
|
options: {}
|
|
2043
1996
|
}));
|
|
@@ -2045,70 +1998,70 @@ function ac(e) {
|
|
|
2045
1998
|
Y(() => {
|
|
2046
1999
|
P = !0, V();
|
|
2047
2000
|
});
|
|
2048
|
-
const de = (
|
|
2001
|
+
const de = (h) => {
|
|
2049
2002
|
var B;
|
|
2050
2003
|
if (V(), P) return Promise.resolve({
|
|
2051
2004
|
confirmed: !1,
|
|
2052
2005
|
options: {}
|
|
2053
2006
|
});
|
|
2054
|
-
const C = ((B =
|
|
2007
|
+
const C = ((B = h.host) == null ? void 0 : B.call(h)) ?? (e == null ? void 0 : e()) ?? Ae().window;
|
|
2055
2008
|
return C.closed ? Promise.resolve({
|
|
2056
2009
|
confirmed: !1,
|
|
2057
2010
|
options: {}
|
|
2058
2011
|
}) : new Promise((F) => {
|
|
2059
|
-
const
|
|
2060
|
-
for (const O of
|
|
2061
|
-
y(), I(
|
|
2062
|
-
const
|
|
2063
|
-
...
|
|
2012
|
+
const s = {};
|
|
2013
|
+
for (const O of h.options ?? []) s[O.id] = !!O.default;
|
|
2014
|
+
y(), I(s), ze(h) || v("confirm");
|
|
2015
|
+
const i = {
|
|
2016
|
+
...h,
|
|
2064
2017
|
resolve: F,
|
|
2065
2018
|
targetWin: C
|
|
2066
2019
|
}, p = () => {
|
|
2067
|
-
|
|
2020
|
+
c() === i && V();
|
|
2068
2021
|
};
|
|
2069
2022
|
C.addEventListener("pagehide", p), C.addEventListener("unload", p), S = () => {
|
|
2070
2023
|
C.removeEventListener("pagehide", p), C.removeEventListener("unload", p);
|
|
2071
|
-
}, d(
|
|
2024
|
+
}, d(i);
|
|
2072
2025
|
});
|
|
2073
2026
|
}, te = U(() => {
|
|
2074
|
-
const
|
|
2075
|
-
return
|
|
2027
|
+
const h = c();
|
|
2028
|
+
return h ? l().trim() === h.resourceName.trim() : !1;
|
|
2076
2029
|
}), ie = () => {
|
|
2077
|
-
const
|
|
2078
|
-
if (!
|
|
2079
|
-
const C =
|
|
2080
|
-
M(),
|
|
2081
|
-
const B =
|
|
2030
|
+
const h = c();
|
|
2031
|
+
if (!h || !ze(h) || !te()) return;
|
|
2032
|
+
const C = h.countdownSeconds ?? Ka;
|
|
2033
|
+
M(), v("countdown"), N(C);
|
|
2034
|
+
const B = h.targetWin;
|
|
2082
2035
|
let F = !0;
|
|
2083
|
-
const
|
|
2084
|
-
!F ||
|
|
2036
|
+
const s = B.setInterval(() => {
|
|
2037
|
+
!F || c() !== h || N((i) => i <= 1 ? (M(), 0) : i - 1);
|
|
2085
2038
|
}, 1e3);
|
|
2086
2039
|
k = () => {
|
|
2087
|
-
F = !1, B.clearInterval(
|
|
2040
|
+
F = !1, B.clearInterval(s);
|
|
2088
2041
|
};
|
|
2089
|
-
},
|
|
2090
|
-
M(),
|
|
2042
|
+
}, ae = () => {
|
|
2043
|
+
M(), v("name");
|
|
2091
2044
|
};
|
|
2092
|
-
return
|
|
2093
|
-
|
|
2045
|
+
return oe(() => {
|
|
2046
|
+
c() === null && M();
|
|
2094
2047
|
}), Y(M), [() => {
|
|
2095
|
-
const
|
|
2048
|
+
const h = () => c(), C = () => {
|
|
2096
2049
|
var E;
|
|
2097
|
-
return ((E =
|
|
2050
|
+
return ((E = h()) == null ? void 0 : E.options) ?? [];
|
|
2098
2051
|
}, B = U(() => {
|
|
2099
|
-
const E =
|
|
2100
|
-
return E === null ? null :
|
|
2101
|
-
}), F = () => m() === "countdown" && $() === 0,
|
|
2102
|
-
const E =
|
|
2103
|
-
return E !== null &&
|
|
2104
|
-
},
|
|
2052
|
+
const E = h();
|
|
2053
|
+
return E === null ? null : xa(E.consequence);
|
|
2054
|
+
}), F = () => m() === "countdown" && $() === 0, s = () => {
|
|
2055
|
+
const E = h();
|
|
2056
|
+
return E !== null && ze(E) ? E : null;
|
|
2057
|
+
}, i = () => {
|
|
2105
2058
|
var E, ce;
|
|
2106
|
-
return ((E =
|
|
2059
|
+
return ((E = h()) == null ? void 0 : E.confirmLabel) ?? ((ce = B()) == null ? void 0 : ce.confirmLabel) ?? "";
|
|
2107
2060
|
}, p = () => {
|
|
2108
2061
|
var ce;
|
|
2109
2062
|
const E = B();
|
|
2110
|
-
return ((ce =
|
|
2111
|
-
}, O = () => C().filter((E) => _()[E.id] === !0),
|
|
2063
|
+
return ((ce = s()) == null ? void 0 : ce.finalConfirmLabel) ?? ((E == null ? void 0 : E.level) === "typed" ? E.finalLabel : i());
|
|
2064
|
+
}, O = () => C().filter((E) => _()[E.id] === !0), se = (E) => {
|
|
2112
2065
|
I((ce) => ({
|
|
2113
2066
|
...ce,
|
|
2114
2067
|
[E]: !ce[E]
|
|
@@ -2118,24 +2071,24 @@ function ac(e) {
|
|
|
2118
2071
|
}, we = () => `${R.input} ${te() ? R.inputMatch : ""}`;
|
|
2119
2072
|
return n(w, {
|
|
2120
2073
|
get when() {
|
|
2121
|
-
return
|
|
2074
|
+
return h() !== null;
|
|
2122
2075
|
},
|
|
2123
2076
|
get children() {
|
|
2124
|
-
return n(
|
|
2077
|
+
return n(Le, {
|
|
2125
2078
|
modal: !0,
|
|
2126
2079
|
get mount() {
|
|
2127
2080
|
return j().body;
|
|
2128
2081
|
},
|
|
2129
2082
|
idPrefix: "dangerous-action-dialog",
|
|
2130
2083
|
get children() {
|
|
2131
|
-
var E, ce,
|
|
2132
|
-
return g(
|
|
2084
|
+
var E, ce, Ye;
|
|
2085
|
+
return g(ja, o("class", t(R.overlay, !0), !1), o("class", t(R.dialog, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("aria-describedby", (E = h()) != null && E.place ? t(a, !0) : t(void 0, !0), !1) + o("data-confirmation-level", t((ce = B()) == null ? void 0 : ce.level, !0), !1), o("class", t(R.header, !0), !1), o("class", t(R.warningIcon, !0), !1), o("id", t(r, !0), !1) + o("class", t(R.title, !0), !1), t(((Ye = h()) == null ? void 0 : Ye.title) ?? ""), o("class", t(R.body, !0), !1), t(n(w, {
|
|
2133
2086
|
get when() {
|
|
2134
2087
|
var q;
|
|
2135
|
-
return (q =
|
|
2088
|
+
return (q = h()) == null ? void 0 : q.place;
|
|
2136
2089
|
},
|
|
2137
2090
|
children: (q) => n(ct, {
|
|
2138
|
-
id:
|
|
2091
|
+
id: a,
|
|
2139
2092
|
get place() {
|
|
2140
2093
|
return q();
|
|
2141
2094
|
}
|
|
@@ -2143,51 +2096,51 @@ function ac(e) {
|
|
|
2143
2096
|
})), t(n(w, {
|
|
2144
2097
|
get when() {
|
|
2145
2098
|
var q;
|
|
2146
|
-
return (q =
|
|
2099
|
+
return (q = h()) == null ? void 0 : q.description;
|
|
2147
2100
|
},
|
|
2148
2101
|
get children() {
|
|
2149
|
-
return g(
|
|
2102
|
+
return g(Ze, o("class", t(R.description, !0), !1), t(h().description));
|
|
2150
2103
|
}
|
|
2151
2104
|
})), t(n(w, {
|
|
2152
2105
|
get when() {
|
|
2153
2106
|
var q;
|
|
2154
|
-
return (q =
|
|
2107
|
+
return (q = h()) == null ? void 0 : q.code;
|
|
2155
2108
|
},
|
|
2156
|
-
children: (q) => n(
|
|
2109
|
+
children: (q) => n(qa, {
|
|
2157
2110
|
get code() {
|
|
2158
2111
|
return q();
|
|
2159
2112
|
}
|
|
2160
2113
|
})
|
|
2161
2114
|
})), t(n(w, {
|
|
2162
2115
|
get when() {
|
|
2163
|
-
return ee(() => m() === "name")() ?
|
|
2116
|
+
return ee(() => m() === "name")() ? s() : null;
|
|
2164
2117
|
},
|
|
2165
|
-
children: (q) => [n(
|
|
2118
|
+
children: (q) => [n(Ha, {
|
|
2166
2119
|
request: q,
|
|
2167
|
-
typedName:
|
|
2168
|
-
setTypedName:
|
|
2120
|
+
typedName: l,
|
|
2121
|
+
setTypedName: b,
|
|
2169
2122
|
inputRef: fe,
|
|
2170
2123
|
inputClass: we
|
|
2171
|
-
}), n(
|
|
2124
|
+
}), n(Je, {
|
|
2172
2125
|
options: C,
|
|
2173
2126
|
optionState: _,
|
|
2174
|
-
toggleOption:
|
|
2127
|
+
toggleOption: se
|
|
2175
2128
|
})]
|
|
2176
2129
|
})), t(n(w, {
|
|
2177
2130
|
get when() {
|
|
2178
2131
|
return ee(() => m() === "countdown")() ? B() : null;
|
|
2179
2132
|
},
|
|
2180
|
-
children: (q) => [n(
|
|
2133
|
+
children: (q) => [n(Xe, {
|
|
2181
2134
|
get copy() {
|
|
2182
2135
|
return q();
|
|
2183
2136
|
},
|
|
2184
2137
|
get resourceName() {
|
|
2185
2138
|
var Se;
|
|
2186
|
-
return ((Se =
|
|
2139
|
+
return ((Se = h()) == null ? void 0 : Se.resourceName) ?? "";
|
|
2187
2140
|
}
|
|
2188
|
-
}), n(
|
|
2141
|
+
}), n(Va, {
|
|
2189
2142
|
options: O
|
|
2190
|
-
}), g(
|
|
2143
|
+
}), g(Ze, o("class", t(R.finalNote, !0), !1), t(n(w, {
|
|
2191
2144
|
get when() {
|
|
2192
2145
|
return $() > 0;
|
|
2193
2146
|
},
|
|
@@ -2204,29 +2157,29 @@ function ac(e) {
|
|
|
2204
2157
|
get when() {
|
|
2205
2158
|
return ee(() => m() === "confirm")() ? B() : null;
|
|
2206
2159
|
},
|
|
2207
|
-
children: (q) => [n(
|
|
2160
|
+
children: (q) => [n(Xe, {
|
|
2208
2161
|
get copy() {
|
|
2209
2162
|
return q();
|
|
2210
2163
|
},
|
|
2211
2164
|
get resourceName() {
|
|
2212
2165
|
var Se;
|
|
2213
|
-
return ((Se =
|
|
2166
|
+
return ((Se = h()) == null ? void 0 : Se.resourceName) ?? "";
|
|
2214
2167
|
}
|
|
2215
|
-
}), n(
|
|
2168
|
+
}), n(Je, {
|
|
2216
2169
|
options: C,
|
|
2217
2170
|
optionState: _,
|
|
2218
|
-
toggleOption:
|
|
2171
|
+
toggleOption: se
|
|
2219
2172
|
})]
|
|
2220
|
-
})), t(n(
|
|
2173
|
+
})), t(n(Fa, {
|
|
2221
2174
|
step: m,
|
|
2222
2175
|
nameMatches: te,
|
|
2223
2176
|
finalEnabled: F,
|
|
2224
2177
|
countdown: $,
|
|
2225
|
-
confirmLabel:
|
|
2178
|
+
confirmLabel: i,
|
|
2226
2179
|
finalLabel: p,
|
|
2227
2180
|
onCancel: () => L(!1),
|
|
2228
2181
|
onAdvance: ie,
|
|
2229
|
-
onBack:
|
|
2182
|
+
onBack: ae,
|
|
2230
2183
|
onConfirm: () => L(!0)
|
|
2231
2184
|
})));
|
|
2232
2185
|
}
|
|
@@ -2235,47 +2188,47 @@ function ac(e) {
|
|
|
2235
2188
|
});
|
|
2236
2189
|
}, de];
|
|
2237
2190
|
}
|
|
2238
|
-
const
|
|
2239
|
-
window:
|
|
2240
|
-
maximized:
|
|
2241
|
-
minimized:
|
|
2242
|
-
titlebar:
|
|
2243
|
-
titlebarDragging:
|
|
2244
|
-
titleInfo:
|
|
2245
|
-
windowIcon:
|
|
2246
|
-
windowTitle:
|
|
2247
|
-
windowControls:
|
|
2248
|
-
controlBtn:
|
|
2249
|
-
closeBtn:
|
|
2250
|
-
body:
|
|
2251
|
-
resizeGrip:
|
|
2191
|
+
const Ya = "vk_window_cNPxa", Ua = "vk_maximized_nbnO1", Qa = "vk_minimized_7iRrM", Ga = "vk_titlebar_x5HLa", Ja = "vk_titlebarDragging_UvwHD", Xa = "vk_titleInfo_CfnKC", Za = "vk_windowIcon_kwo8N", es = "vk_windowTitle_oh-oF", ts = "vk_windowControls_VpW8D", ns = "vk_controlBtn_KeaeH", rs = "vk_closeBtn_Mb5cO", os = "vk_body_n-l67", as = "vk_resizeGrip_NFWQc", K = {
|
|
2192
|
+
window: Ya,
|
|
2193
|
+
maximized: Ua,
|
|
2194
|
+
minimized: Qa,
|
|
2195
|
+
titlebar: Ga,
|
|
2196
|
+
titlebarDragging: Ja,
|
|
2197
|
+
titleInfo: Xa,
|
|
2198
|
+
windowIcon: Za,
|
|
2199
|
+
windowTitle: es,
|
|
2200
|
+
windowControls: ts,
|
|
2201
|
+
controlBtn: ns,
|
|
2202
|
+
closeBtn: rs,
|
|
2203
|
+
body: os,
|
|
2204
|
+
resizeGrip: as
|
|
2252
2205
|
};
|
|
2253
|
-
var
|
|
2254
|
-
function
|
|
2255
|
-
var
|
|
2256
|
-
const [r,
|
|
2206
|
+
var ss = ["<span", ">", "</span>"], is = ['<button type="button"', ">", "</button>"], cs = ["<div", ' aria-hidden="true"></div>'], ls = ['<div class="', '" style="', '" role="dialog" tabindex="-1"', '><div class="', '"><div', ">", "<span", ">", "</span></div><div", '><button type="button"', ">", '</button><button type="button"', ">", "</button>", '<button type="button" class="', '"', ">", "</button></div></div>", "</div>"];
|
|
2207
|
+
function ac(e) {
|
|
2208
|
+
var T, j, M, J;
|
|
2209
|
+
const [r, a] = D(((T = e.initialPosition) == null ? void 0 : T.x) ?? 24), [c, d] = D(((j = e.initialPosition) == null ? void 0 : j.y) ?? 24), [m, v] = D(((M = e.initialSize) == null ? void 0 : M.width) ?? 360), [l, b] = D(((J = e.initialSize) == null ? void 0 : J.height) ?? 220), [_, I] = D(!1), [$, N] = D(!1), [k, S] = D(!1);
|
|
2257
2210
|
let P;
|
|
2258
|
-
return
|
|
2211
|
+
return Re(() => e.isOpen, "floating-window", {
|
|
2259
2212
|
type: "popover",
|
|
2260
2213
|
element: () => P
|
|
2261
|
-
}),
|
|
2214
|
+
}), oe(() => {
|
|
2262
2215
|
e.isOpen;
|
|
2263
2216
|
}), n(w, {
|
|
2264
2217
|
get when() {
|
|
2265
2218
|
return e.isOpen;
|
|
2266
2219
|
},
|
|
2267
2220
|
get children() {
|
|
2268
|
-
return g(
|
|
2221
|
+
return g(ls, `${t(K.window, !0)} ${$() ? t(K.maximized, !0) : ""} ${_() ? t(K.minimized, !0) : ""} ${t(e.class ?? "", !0)}`, Ct($() ? {} : {
|
|
2269
2222
|
left: `${r()}px`,
|
|
2270
|
-
top: `${
|
|
2223
|
+
top: `${c()}px`,
|
|
2271
2224
|
width: `${m()}px`,
|
|
2272
|
-
height: _() ? "auto" : `${
|
|
2225
|
+
height: _() ? "auto" : `${l()}px`
|
|
2273
2226
|
}), o("aria-label", t(e.title, !0), !1), `${t(K.titlebar, !0)} ${k() ? t(K.titlebarDragging, !0) : ""}`, o("class", t(K.titleInfo, !0), !1), t(n(w, {
|
|
2274
2227
|
get when() {
|
|
2275
2228
|
return e.icon;
|
|
2276
2229
|
},
|
|
2277
2230
|
get children() {
|
|
2278
|
-
return g(
|
|
2231
|
+
return g(ss, o("class", t(K.windowIcon, !0), !1), t(e.icon));
|
|
2279
2232
|
}
|
|
2280
2233
|
})), o("class", t(K.windowTitle, !0), !1), t(e.title), o("class", t(K.windowControls, !0), !1), o("class", t(K.controlBtn, !0), !1) + o("aria-label", t(u("Minimize"), !0), !1), t(n(Vt, {
|
|
2281
2234
|
"aria-hidden": "true"
|
|
@@ -2289,7 +2242,7 @@ function sc(e) {
|
|
|
2289
2242
|
});
|
|
2290
2243
|
},
|
|
2291
2244
|
get children() {
|
|
2292
|
-
return n(
|
|
2245
|
+
return n(Dt, {
|
|
2293
2246
|
"aria-hidden": "true"
|
|
2294
2247
|
});
|
|
2295
2248
|
}
|
|
@@ -2298,11 +2251,11 @@ function sc(e) {
|
|
|
2298
2251
|
return e.onDetach;
|
|
2299
2252
|
},
|
|
2300
2253
|
get children() {
|
|
2301
|
-
return g(
|
|
2254
|
+
return g(is, o("class", t(K.controlBtn, !0), !1) + o("aria-label", t(u("Detach window"), !0), !1), t(n(Rt, {
|
|
2302
2255
|
"aria-hidden": "true"
|
|
2303
2256
|
})));
|
|
2304
2257
|
}
|
|
2305
|
-
})), `${t(K.controlBtn, !0)} ${t(K.closeBtn, !0)}`, o("aria-label", t(u("Close window"), !0), !1), t(n(
|
|
2258
|
+
})), `${t(K.controlBtn, !0)} ${t(K.closeBtn, !0)}`, o("aria-label", t(u("Close window"), !0), !1), t(n(je, {
|
|
2306
2259
|
"aria-hidden": "true"
|
|
2307
2260
|
})), t(n(w, {
|
|
2308
2261
|
get when() {
|
|
@@ -2321,7 +2274,7 @@ function sc(e) {
|
|
|
2321
2274
|
return !$();
|
|
2322
2275
|
},
|
|
2323
2276
|
get children() {
|
|
2324
|
-
return g(
|
|
2277
|
+
return g(cs, o("class", t(K.resizeGrip, !0), !1));
|
|
2325
2278
|
}
|
|
2326
2279
|
})];
|
|
2327
2280
|
}
|
|
@@ -2330,63 +2283,63 @@ function sc(e) {
|
|
|
2330
2283
|
});
|
|
2331
2284
|
}
|
|
2332
2285
|
function pt(e, r) {
|
|
2333
|
-
const
|
|
2334
|
-
return
|
|
2286
|
+
const a = r.split(/\s+/).filter(Boolean);
|
|
2287
|
+
return a.length > 1 && a.every((c) => e.includes(c));
|
|
2335
2288
|
}
|
|
2336
2289
|
function yt(e, r) {
|
|
2337
|
-
const
|
|
2338
|
-
if (
|
|
2339
|
-
let
|
|
2290
|
+
const a = r.replace(/\s+/g, "");
|
|
2291
|
+
if (a.length < 2) return !1;
|
|
2292
|
+
let c = 0;
|
|
2340
2293
|
for (const d of e)
|
|
2341
|
-
if (d ===
|
|
2294
|
+
if (d === a[c] && (c += 1), c === a.length) return !0;
|
|
2342
2295
|
return !1;
|
|
2343
2296
|
}
|
|
2344
|
-
function
|
|
2345
|
-
const
|
|
2346
|
-
return
|
|
2297
|
+
function et(e, r) {
|
|
2298
|
+
const a = e.title.toLowerCase(), c = e.category.toLowerCase(), d = (e.keywords ?? []).join(" ").toLowerCase();
|
|
2299
|
+
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 : pt(a, r) ? 5 : c.includes(r) ? 3 : d.includes(r) ? 2 : yt(a, r) ? 1 : 0;
|
|
2347
2300
|
}
|
|
2348
|
-
function
|
|
2349
|
-
const
|
|
2350
|
-
return
|
|
2301
|
+
function us(e, r) {
|
|
2302
|
+
const a = e.title.toLowerCase(), c = (e.description ?? "").toLowerCase();
|
|
2303
|
+
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 : pt(a, r) ? 5 : c.includes(r) ? 2 : yt(a, r) ? 1 : 0;
|
|
2351
2304
|
}
|
|
2352
|
-
function
|
|
2305
|
+
function ds(e) {
|
|
2353
2306
|
return [e.title, e.description, e.ariaShortcut].filter((r) => !!r).join(", ");
|
|
2354
2307
|
}
|
|
2355
|
-
const
|
|
2356
|
-
backdrop:
|
|
2357
|
-
backdropCompact:
|
|
2358
|
-
backdropClassic:
|
|
2359
|
-
panel:
|
|
2360
|
-
panelCompact:
|
|
2361
|
-
panelClassic:
|
|
2362
|
-
searchRow:
|
|
2363
|
-
searchInput:
|
|
2364
|
-
results:
|
|
2365
|
-
section:
|
|
2366
|
-
sectionTitle:
|
|
2367
|
-
commandList:
|
|
2368
|
-
commandItem:
|
|
2369
|
-
commandItemActive:
|
|
2370
|
-
commandMain:
|
|
2371
|
-
commandTitle:
|
|
2372
|
-
commandDescription:
|
|
2373
|
-
commandShortcut:
|
|
2308
|
+
const ms = "vk_backdrop_aa9-b", fs = "vk_backdropCompact_PkBAv", gs = "vk_backdropClassic_ehT8b", hs = "vk_panel_unTU7", vs = "vk_panelCompact_SIdhM", bs = "vk_panelClassic_aiZlM", _s = "vk_searchRow_zeI45", ws = "vk_searchInput_oshkq", ks = "vk_results_zGg2V", ps = "vk_section_RoSyC", ys = "vk_sectionTitle_JpTJl", Cs = "vk_commandList_y7keL", $s = "vk_commandItem_0v8jJ", Ss = "vk_commandItemActive_Ar6PV", Ls = "vk_commandMain_ogAdz", Is = "vk_commandTitle_auoxZ vk_titleSm_IecPV", xs = "vk_commandDescription_8zkPN", As = "vk_commandShortcut_UAa5d", Ts = "vk_commandRow_LX6zz", Ds = "vk_configureBtn_OMS9G", Ms = "vk_commandRowActive_uNRXl", A = {
|
|
2309
|
+
backdrop: ms,
|
|
2310
|
+
backdropCompact: fs,
|
|
2311
|
+
backdropClassic: gs,
|
|
2312
|
+
panel: hs,
|
|
2313
|
+
panelCompact: vs,
|
|
2314
|
+
panelClassic: bs,
|
|
2315
|
+
searchRow: _s,
|
|
2316
|
+
searchInput: ws,
|
|
2317
|
+
results: ks,
|
|
2318
|
+
section: ps,
|
|
2319
|
+
sectionTitle: ys,
|
|
2320
|
+
commandList: Cs,
|
|
2321
|
+
commandItem: $s,
|
|
2322
|
+
commandItemActive: Ss,
|
|
2323
|
+
commandMain: Ls,
|
|
2324
|
+
commandTitle: Is,
|
|
2325
|
+
commandDescription: xs,
|
|
2326
|
+
commandShortcut: As,
|
|
2374
2327
|
commandRow: Ts,
|
|
2375
|
-
configureBtn:
|
|
2376
|
-
commandRowActive:
|
|
2377
|
-
},
|
|
2378
|
-
tabsContainer:
|
|
2379
|
-
tabButton:
|
|
2380
|
-
tabButtonActive:
|
|
2381
|
-
tabBadge:
|
|
2382
|
-
tabBadgeActive:
|
|
2383
|
-
badge:
|
|
2384
|
-
badgeSetting:
|
|
2385
|
-
badgeDb:
|
|
2386
|
-
statusRow:
|
|
2328
|
+
configureBtn: Ds,
|
|
2329
|
+
commandRowActive: Ms
|
|
2330
|
+
}, Rs = "vk_tabsContainer_CiFoB", Es = "vk_tabButton_M-DwJ", Ps = "vk_tabButtonActive_pgOkL", Bs = "vk_tabBadge_sBmun", Os = "vk_tabBadgeActive_N-q86", zs = "vk_badge_meiW8", Ws = "vk_badgeSetting_LSTcT", Ns = "vk_badgeDb_ThJRG", Fs = "vk_statusRow_QoKuX", ue = {
|
|
2331
|
+
tabsContainer: Rs,
|
|
2332
|
+
tabButton: Es,
|
|
2333
|
+
tabButtonActive: Ps,
|
|
2334
|
+
tabBadge: Bs,
|
|
2335
|
+
tabBadgeActive: Os,
|
|
2336
|
+
badge: zs,
|
|
2337
|
+
badgeSetting: Ws,
|
|
2338
|
+
badgeDb: Ns,
|
|
2339
|
+
statusRow: Fs
|
|
2387
2340
|
};
|
|
2388
|
-
var
|
|
2389
|
-
function
|
|
2341
|
+
var Hs = ["<div", ' role="tablist"', ">", "</div>"], Vs = ['<button type="button" role="tab"', ' class="', '"><span>', "</span>", "</button>"], qs = ['<span class="', '">●</span>'];
|
|
2342
|
+
function js(e) {
|
|
2390
2343
|
const r = [{
|
|
2391
2344
|
mode: "everywhere",
|
|
2392
2345
|
label: "All"
|
|
@@ -2400,89 +2353,89 @@ function Ks(e) {
|
|
|
2400
2353
|
mode: "database",
|
|
2401
2354
|
label: "Database"
|
|
2402
2355
|
}];
|
|
2403
|
-
return qt(), g(
|
|
2356
|
+
return qt(), g(Hs, o("class", t(ue.tabsContainer, !0), !1), o("aria-label", t(u("Search Everywhere"), !0), !1), t(n(me, {
|
|
2404
2357
|
each: r,
|
|
2405
|
-
children: (
|
|
2406
|
-
const
|
|
2407
|
-
return g(
|
|
2358
|
+
children: (a) => {
|
|
2359
|
+
const c = () => e.activeMode() === a.mode;
|
|
2360
|
+
return g(Vs, o("aria-selected", t(c(), !0), !1) + o("tabindex", c() ? 0 : -1, !1), `${t(ue.tabButton, !0)} ${c() ? t(ue.tabButtonActive, !0) : ""}`, t(u(a.label)), a.mode === "database" && e.hasWorkspaceContext() ? g(qs, `${t(ue.tabBadge, !0)} ${c() ? t(ue.tabBadgeActive, !0) : ""}`) : t(null));
|
|
2408
2361
|
}
|
|
2409
2362
|
})));
|
|
2410
2363
|
}
|
|
2411
|
-
function
|
|
2412
|
-
const
|
|
2413
|
-
return (e.labels ?? []).some((
|
|
2414
|
-
}
|
|
2415
|
-
function
|
|
2416
|
-
const
|
|
2417
|
-
if (d ===
|
|
2418
|
-
if (d.startsWith(
|
|
2419
|
-
if (d.includes(
|
|
2420
|
-
const m =
|
|
2421
|
-
return m.length > 1 && m.every((
|
|
2422
|
-
(
|
|
2423
|
-
) ? 3 : (
|
|
2424
|
-
}
|
|
2425
|
-
function
|
|
2364
|
+
function Ks(e, r) {
|
|
2365
|
+
const a = r.toLowerCase();
|
|
2366
|
+
return (e.labels ?? []).some((c) => Tt(c).toLowerCase().includes(a));
|
|
2367
|
+
}
|
|
2368
|
+
function Ys(e, r, a) {
|
|
2369
|
+
const c = r.toLowerCase(), d = e.label.toLowerCase();
|
|
2370
|
+
if (d === c) return 8;
|
|
2371
|
+
if (d.startsWith(c)) return 7;
|
|
2372
|
+
if (d.includes(c)) return 6;
|
|
2373
|
+
const m = c.split(/\s+/).filter(Boolean);
|
|
2374
|
+
return m.length > 1 && m.every((b) => d.includes(b)) ? 5 : e.categoryId.toLowerCase().includes(c) ? 4 : (e.keywords ?? []).some(
|
|
2375
|
+
(b) => b.toLowerCase().includes(c)
|
|
2376
|
+
) ? 3 : (a.matches ?? Ks)(e, r) ? 2 : 0;
|
|
2377
|
+
}
|
|
2378
|
+
function tt(e, r, a) {
|
|
2426
2379
|
var d, m;
|
|
2427
|
-
const
|
|
2380
|
+
const c = ((d = a.breadcrumb) == null ? void 0 : d.call(a, e.categoryId)) ?? "";
|
|
2428
2381
|
return {
|
|
2429
2382
|
id: `setting:${e.id}`,
|
|
2430
2383
|
kind: "setting",
|
|
2431
|
-
title: ((m =
|
|
2432
|
-
description:
|
|
2384
|
+
title: ((m = a.title) == null ? void 0 : m.call(a, e)) ?? e.label,
|
|
2385
|
+
description: c || u("Settings"),
|
|
2433
2386
|
category: u("Settings"),
|
|
2434
2387
|
enabled: !0,
|
|
2435
2388
|
score: r,
|
|
2436
2389
|
run: () => {
|
|
2437
|
-
|
|
2390
|
+
a.open(e);
|
|
2438
2391
|
},
|
|
2439
2392
|
rawSetting: e
|
|
2440
2393
|
};
|
|
2441
2394
|
}
|
|
2442
|
-
function
|
|
2395
|
+
function Us(e, r, a = 20) {
|
|
2443
2396
|
if (e === null) return [];
|
|
2444
|
-
const
|
|
2445
|
-
if (!
|
|
2446
|
-
return (e.popular ? e.popular(d) : d).slice(0,
|
|
2397
|
+
const c = r.trim(), d = e.items();
|
|
2398
|
+
if (!c)
|
|
2399
|
+
return (e.popular ? e.popular(d) : d).slice(0, a).map((l) => tt(l, 1, e));
|
|
2447
2400
|
const m = [];
|
|
2448
|
-
for (const
|
|
2449
|
-
const
|
|
2450
|
-
|
|
2401
|
+
for (const v of d) {
|
|
2402
|
+
const l = Ys(v, c, e);
|
|
2403
|
+
l > 0 && m.push({ item: v, score: l });
|
|
2451
2404
|
}
|
|
2452
|
-
return m.sort((
|
|
2405
|
+
return m.sort((v, l) => l.score - v.score), m.slice(0, a).map(({ item: v, score: l }) => tt(v, l, e));
|
|
2453
2406
|
}
|
|
2454
|
-
const
|
|
2455
|
-
function
|
|
2456
|
-
const
|
|
2457
|
-
return
|
|
2407
|
+
const Qs = "SCHEMA", Gs = 2, Js = 200, nt = 40;
|
|
2408
|
+
function rt(e, r) {
|
|
2409
|
+
const a = e.toLowerCase(), c = r.toLowerCase();
|
|
2410
|
+
return a === c ? 9 : a.startsWith(c) ? 7 : a.includes(c) ? 5 : 0;
|
|
2458
2411
|
}
|
|
2459
|
-
function
|
|
2460
|
-
const [r,
|
|
2461
|
-
if (
|
|
2462
|
-
const j =
|
|
2412
|
+
function Xs(e) {
|
|
2413
|
+
const [r, a] = D([]), [c, d] = D(!1), [m, v] = D(null), l = dt(), b = l.databaseObjects, [_, I] = D(0);
|
|
2414
|
+
if (b !== null) {
|
|
2415
|
+
const j = b.onDidChange(() => I((M) => M + 1));
|
|
2463
2416
|
Y(() => j.dispose());
|
|
2464
2417
|
}
|
|
2465
|
-
const $ = () => (_(), (
|
|
2418
|
+
const $ = () => (_(), (b == null ? void 0 : b.getWorkspaceId()) ?? null), N = () => (_(), !!(b != null && b.hasActiveWorkspace()) && $() !== null), k = () => (_(), (b == null ? void 0 : b.getSelectedSchema()) ?? "");
|
|
2466
2419
|
let S = 0, P;
|
|
2467
|
-
const
|
|
2420
|
+
const T = () => {
|
|
2468
2421
|
P !== void 0 && (clearTimeout(P), P = void 0);
|
|
2469
2422
|
};
|
|
2470
2423
|
return Y(() => {
|
|
2471
|
-
|
|
2424
|
+
T(), S += 1;
|
|
2472
2425
|
}), Lt(() => {
|
|
2473
2426
|
const j = e.enabled(), M = e.query().trim();
|
|
2474
|
-
|
|
2427
|
+
T();
|
|
2475
2428
|
const J = ++S;
|
|
2476
2429
|
if (!j || !N()) {
|
|
2477
|
-
|
|
2430
|
+
a([]), d(!1), v(null);
|
|
2478
2431
|
return;
|
|
2479
2432
|
}
|
|
2480
|
-
const y =
|
|
2481
|
-
if (M.length <
|
|
2482
|
-
if (
|
|
2433
|
+
const y = b, L = k(), V = $(), de = (y == null ? void 0 : y.getSchemas()) ?? [], te = L ? [L] : de, ie = () => $() === V && !!(y != null && y.hasActiveWorkspace()) && (y == null ? void 0 : y.getSelectedSchema()) === L, ae = () => J === S && ie() && e.enabled();
|
|
2434
|
+
if (M.length < Gs) {
|
|
2435
|
+
if (v(null), d(!1), L && y) {
|
|
2483
2436
|
const f = y.getCachedObjectsForSchema(L);
|
|
2484
2437
|
if (f && f.length > 0) {
|
|
2485
|
-
const
|
|
2438
|
+
const h = f.slice(0, 10).map((C) => ({
|
|
2486
2439
|
id: `db:${L}:${C.objectType}:${C.objectName}`,
|
|
2487
2440
|
kind: "database-object",
|
|
2488
2441
|
title: C.objectName,
|
|
@@ -2497,34 +2450,34 @@ function Zs(e) {
|
|
|
2497
2450
|
ie() && y.openObject(L, C);
|
|
2498
2451
|
}
|
|
2499
2452
|
}));
|
|
2500
|
-
|
|
2453
|
+
a(h);
|
|
2501
2454
|
return;
|
|
2502
2455
|
}
|
|
2503
2456
|
}
|
|
2504
|
-
|
|
2457
|
+
a([]);
|
|
2505
2458
|
return;
|
|
2506
2459
|
}
|
|
2507
|
-
if (
|
|
2508
|
-
d(!1),
|
|
2460
|
+
if (a([]), te.length === 0) {
|
|
2461
|
+
d(!1), v(null);
|
|
2509
2462
|
return;
|
|
2510
2463
|
}
|
|
2511
|
-
d(!0),
|
|
2512
|
-
if (
|
|
2464
|
+
d(!0), v(null), P = setTimeout(async () => {
|
|
2465
|
+
if (ae())
|
|
2513
2466
|
try {
|
|
2514
2467
|
let f = [];
|
|
2515
|
-
const
|
|
2516
|
-
if (V &&
|
|
2468
|
+
const h = (y == null ? void 0 : y.searchObjects) ?? null;
|
|
2469
|
+
if (V && h !== null)
|
|
2517
2470
|
f = [
|
|
2518
|
-
...await
|
|
2519
|
-
limit:
|
|
2471
|
+
...await h(V, M, {
|
|
2472
|
+
limit: nt,
|
|
2520
2473
|
schemas: te
|
|
2521
2474
|
})
|
|
2522
2475
|
];
|
|
2523
2476
|
else if (y && L) {
|
|
2524
|
-
let
|
|
2525
|
-
if (
|
|
2526
|
-
const
|
|
2527
|
-
f =
|
|
2477
|
+
let s = y.getCachedObjectsForSchema(L);
|
|
2478
|
+
if (s || (s = await y.loadObjectsForSchema(L)), s) {
|
|
2479
|
+
const i = M.toLowerCase();
|
|
2480
|
+
f = s.filter((p) => p.objectName.toLowerCase().includes(i)).slice(0, nt).map((p) => ({
|
|
2528
2481
|
owner: L,
|
|
2529
2482
|
objectType: p.objectType,
|
|
2530
2483
|
objectName: p.objectName,
|
|
@@ -2532,63 +2485,63 @@ function Zs(e) {
|
|
|
2532
2485
|
}));
|
|
2533
2486
|
}
|
|
2534
2487
|
}
|
|
2535
|
-
if (!
|
|
2536
|
-
const C = M.toLowerCase(), B = de.filter((
|
|
2537
|
-
id: `db:schema:${
|
|
2488
|
+
if (!ae()) return;
|
|
2489
|
+
const C = M.toLowerCase(), B = de.filter((s) => s.toLowerCase().includes(C)).slice(0, 3).map((s) => ({
|
|
2490
|
+
id: `db:schema:${s}`,
|
|
2538
2491
|
kind: "database-object",
|
|
2539
|
-
title:
|
|
2540
|
-
description: `${u("Schema")} · ${
|
|
2492
|
+
title: s,
|
|
2493
|
+
description: `${u("Schema")} · ${s}`,
|
|
2541
2494
|
detail: u("Schema"),
|
|
2542
2495
|
category: u("Database"),
|
|
2543
|
-
objectType:
|
|
2544
|
-
schema:
|
|
2496
|
+
objectType: Qs,
|
|
2497
|
+
schema: s,
|
|
2545
2498
|
enabled: !0,
|
|
2546
|
-
score:
|
|
2499
|
+
score: rt(s, M) + 1,
|
|
2547
2500
|
run: () => {
|
|
2548
|
-
ie() && (y == null || y.navigateToSchema(
|
|
2501
|
+
ie() && (y == null || y.navigateToSchema(s));
|
|
2549
2502
|
}
|
|
2550
|
-
})), F = f.filter((
|
|
2551
|
-
id: `db:${
|
|
2503
|
+
})), F = f.filter((s) => te.includes(s.owner)).map((s) => ({
|
|
2504
|
+
id: `db:${s.owner}:${s.objectType}:${s.objectName}`,
|
|
2552
2505
|
kind: "database-object",
|
|
2553
|
-
title:
|
|
2554
|
-
description: `${
|
|
2555
|
-
detail:
|
|
2506
|
+
title: s.objectName,
|
|
2507
|
+
description: `${s.objectType} · ${s.owner}`,
|
|
2508
|
+
detail: s.owner,
|
|
2556
2509
|
category: u("Database"),
|
|
2557
|
-
objectType:
|
|
2558
|
-
schema:
|
|
2510
|
+
objectType: s.objectType,
|
|
2511
|
+
schema: s.owner,
|
|
2559
2512
|
enabled: !0,
|
|
2560
|
-
score:
|
|
2513
|
+
score: rt(s.objectName, M),
|
|
2561
2514
|
run: () => {
|
|
2562
|
-
ie() && (y == null || y.openObject(
|
|
2515
|
+
ie() && (y == null || y.openObject(s.owner, s));
|
|
2563
2516
|
},
|
|
2564
|
-
rawDbObject:
|
|
2517
|
+
rawDbObject: s
|
|
2565
2518
|
}));
|
|
2566
|
-
|
|
2519
|
+
a([...B, ...F]), d(!1);
|
|
2567
2520
|
} catch (f) {
|
|
2568
|
-
if (!
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2521
|
+
if (!ae()) return;
|
|
2522
|
+
const h = l.errorPresenter.text(f, u("Failed to search database objects"));
|
|
2523
|
+
v(h), d(!1);
|
|
2571
2524
|
}
|
|
2572
|
-
},
|
|
2525
|
+
}, Js);
|
|
2573
2526
|
}), {
|
|
2574
2527
|
items: r,
|
|
2575
|
-
loading:
|
|
2528
|
+
loading: c,
|
|
2576
2529
|
error: m,
|
|
2577
2530
|
hasWorkspaceContext: N,
|
|
2578
2531
|
activeSchema: k
|
|
2579
2532
|
};
|
|
2580
2533
|
}
|
|
2581
|
-
function
|
|
2534
|
+
function Zs(e) {
|
|
2582
2535
|
const {
|
|
2583
2536
|
mode: r,
|
|
2584
|
-
query:
|
|
2585
|
-
commands:
|
|
2537
|
+
query: a,
|
|
2538
|
+
commands: c,
|
|
2586
2539
|
recentCommandIds: d,
|
|
2587
2540
|
categoryOrder: m,
|
|
2588
|
-
settingsItems:
|
|
2589
|
-
databaseItems:
|
|
2590
|
-
} = e,
|
|
2591
|
-
for (const k of
|
|
2541
|
+
settingsItems: v,
|
|
2542
|
+
databaseItems: l
|
|
2543
|
+
} = e, b = a.trim().toLowerCase(), _ = /* @__PURE__ */ new Map();
|
|
2544
|
+
for (const k of c)
|
|
2592
2545
|
_.set(k.id, k);
|
|
2593
2546
|
const I = (k, S = 1) => ({
|
|
2594
2547
|
id: k.id,
|
|
@@ -2604,27 +2557,27 @@ function ei(e) {
|
|
|
2604
2557
|
rawCommand: k
|
|
2605
2558
|
});
|
|
2606
2559
|
if (r === "settings")
|
|
2607
|
-
return
|
|
2560
|
+
return v.length === 0 ? [] : [
|
|
2608
2561
|
{
|
|
2609
2562
|
id: "section:settings",
|
|
2610
2563
|
label: u("Settings"),
|
|
2611
|
-
items:
|
|
2564
|
+
items: v
|
|
2612
2565
|
}
|
|
2613
2566
|
];
|
|
2614
2567
|
if (r === "database")
|
|
2615
|
-
return
|
|
2568
|
+
return l.length === 0 ? [] : [
|
|
2616
2569
|
{
|
|
2617
2570
|
id: "section:database",
|
|
2618
2571
|
label: u("Database"),
|
|
2619
|
-
items:
|
|
2572
|
+
items: l
|
|
2620
2573
|
}
|
|
2621
2574
|
];
|
|
2622
2575
|
if (r === "commands") {
|
|
2623
|
-
const k =
|
|
2576
|
+
const k = b ? c.map((y) => ({
|
|
2624
2577
|
cmd: y,
|
|
2625
|
-
score:
|
|
2626
|
-
})).filter((y) => y.score > 0).sort((y, L) => L.score - y.score).map((y) => y.cmd) :
|
|
2627
|
-
if (!
|
|
2578
|
+
score: et(y, b)
|
|
2579
|
+
})).filter((y) => y.score > 0).sort((y, L) => L.score - y.score).map((y) => y.cmd) : c, S = [], P = /* @__PURE__ */ new Set();
|
|
2580
|
+
if (!b) {
|
|
2628
2581
|
const y = d.map((L) => _.get(L)).filter((L) => !!L);
|
|
2629
2582
|
if (y.length > 0) {
|
|
2630
2583
|
S.push({
|
|
@@ -2636,21 +2589,21 @@ function ei(e) {
|
|
|
2636
2589
|
P.add(L.id);
|
|
2637
2590
|
}
|
|
2638
2591
|
}
|
|
2639
|
-
const
|
|
2592
|
+
const T = /* @__PURE__ */ new Map();
|
|
2640
2593
|
for (const y of k) {
|
|
2641
2594
|
if (P.has(y.id)) continue;
|
|
2642
|
-
const L =
|
|
2643
|
-
L.push(y),
|
|
2595
|
+
const L = T.get(y.category) ?? [];
|
|
2596
|
+
L.push(y), T.set(y.category, L);
|
|
2644
2597
|
}
|
|
2645
2598
|
const j = m ?? [], M = (y) => {
|
|
2646
2599
|
const L = j.indexOf(y);
|
|
2647
2600
|
return L === -1 ? j.length : L;
|
|
2648
|
-
}, J = [...
|
|
2601
|
+
}, J = [...T.keys()].sort((y, L) => {
|
|
2649
2602
|
const V = M(y) - M(L);
|
|
2650
2603
|
return V !== 0 ? V : y.localeCompare(L);
|
|
2651
2604
|
});
|
|
2652
2605
|
for (const y of J) {
|
|
2653
|
-
const L =
|
|
2606
|
+
const L = T.get(y) ?? [];
|
|
2654
2607
|
S.push({
|
|
2655
2608
|
id: `category:${y}`,
|
|
2656
2609
|
label: y,
|
|
@@ -2660,186 +2613,186 @@ function ei(e) {
|
|
|
2660
2613
|
return S;
|
|
2661
2614
|
}
|
|
2662
2615
|
const $ = [];
|
|
2663
|
-
if (!
|
|
2664
|
-
const k = /* @__PURE__ */ new Set(), S = d.map((
|
|
2616
|
+
if (!b) {
|
|
2617
|
+
const k = /* @__PURE__ */ new Set(), S = d.map((T) => _.get(T)).filter((T) => !!T);
|
|
2665
2618
|
if (S.length > 0) {
|
|
2666
2619
|
$.push({
|
|
2667
2620
|
id: "everywhere:recent",
|
|
2668
2621
|
label: u("Recent"),
|
|
2669
|
-
items: S.slice(0, 5).map((
|
|
2622
|
+
items: S.slice(0, 5).map((T) => I(T))
|
|
2670
2623
|
});
|
|
2671
|
-
for (const
|
|
2672
|
-
k.add(
|
|
2624
|
+
for (const T of S)
|
|
2625
|
+
k.add(T.id);
|
|
2673
2626
|
}
|
|
2674
|
-
const P =
|
|
2627
|
+
const P = c.filter((T) => !k.has(T.id)).slice(0, 10);
|
|
2675
2628
|
return P.length > 0 && $.push({
|
|
2676
2629
|
id: "everywhere:actions",
|
|
2677
2630
|
label: u("Actions"),
|
|
2678
|
-
items: P.map((
|
|
2679
|
-
}),
|
|
2631
|
+
items: P.map((T) => I(T))
|
|
2632
|
+
}), v.length > 0 && $.push({
|
|
2680
2633
|
id: "everywhere:settings",
|
|
2681
2634
|
label: u("Settings"),
|
|
2682
|
-
items:
|
|
2683
|
-
}),
|
|
2635
|
+
items: v.slice(0, 5)
|
|
2636
|
+
}), l.length > 0 && $.push({
|
|
2684
2637
|
id: "everywhere:database",
|
|
2685
2638
|
label: u("Database"),
|
|
2686
|
-
items:
|
|
2639
|
+
items: l.slice(0, 5)
|
|
2687
2640
|
}), $;
|
|
2688
2641
|
}
|
|
2689
|
-
const N =
|
|
2642
|
+
const N = c.map((k) => ({
|
|
2690
2643
|
cmd: k,
|
|
2691
|
-
score:
|
|
2644
|
+
score: et(k, b)
|
|
2692
2645
|
})).filter((k) => k.score > 0).sort((k, S) => S.score - k.score).slice(0, 10).map((k) => I(k.cmd, k.score));
|
|
2693
2646
|
return N.length > 0 && $.push({
|
|
2694
2647
|
id: "everywhere:actions",
|
|
2695
2648
|
label: u("Actions"),
|
|
2696
2649
|
items: N
|
|
2697
|
-
}),
|
|
2650
|
+
}), v.length > 0 && $.push({
|
|
2698
2651
|
id: "everywhere:settings",
|
|
2699
2652
|
label: u("Settings"),
|
|
2700
|
-
items:
|
|
2701
|
-
}),
|
|
2653
|
+
items: v.slice(0, 6)
|
|
2654
|
+
}), l.length > 0 && $.push({
|
|
2702
2655
|
id: "everywhere:database",
|
|
2703
2656
|
label: u("Database"),
|
|
2704
|
-
items:
|
|
2657
|
+
items: l.slice(0, 10)
|
|
2705
2658
|
}), $;
|
|
2706
2659
|
}
|
|
2707
|
-
var
|
|
2660
|
+
var ei = ['<div class="', '"><div class="', '" role="dialog" aria-modal="true"', "><div", ">", "</div>", "", "</div></div>"], ti = ["<div", ">", "</div>"], ni = ["<section", "><div", ">", "</div><div", ">", "</div></section>"], We = ["<span", ">", "</span>"], ot = ["<span", "><span", ">", "</span>", "</span>"], at = ['<span class="', '">', "</span>"], ri = ["<span", ' aria-hidden="true">', "</span>"], oi = ['<span style="', '">', "", "", "</span>"], ai = ['<div class="', '">', "", "</div>"], si = ["<span", "><span", ">", "</span></span>"], ii = ["<section", "><div", ">", "</div><div", ">", "", "</div></section>"];
|
|
2708
2661
|
const ge = "__palette_back__";
|
|
2709
|
-
function
|
|
2710
|
-
return e.kind === "command" && e.rawCommand ?
|
|
2662
|
+
function ci(e) {
|
|
2663
|
+
return e.kind === "command" && e.rawCommand ? ds(e.rawCommand) : [e.title, e.description, e.detail].filter((r) => !!r).join(", ");
|
|
2711
2664
|
}
|
|
2712
|
-
function
|
|
2713
|
-
const r = dt(),
|
|
2665
|
+
function sc(e) {
|
|
2666
|
+
const r = dt(), a = Re(() => e.open, "command-palette", {
|
|
2714
2667
|
type: "modal",
|
|
2715
2668
|
document: () => e.host().document
|
|
2716
|
-
}), [
|
|
2669
|
+
}), [c, d] = D(""), [m, v] = D("everywhere"), [l, b] = D(null), [_, I] = D(null);
|
|
2717
2670
|
let $;
|
|
2718
2671
|
const N = U(() => {
|
|
2719
|
-
const
|
|
2720
|
-
for (const
|
|
2721
|
-
|
|
2722
|
-
return
|
|
2672
|
+
const s = /* @__PURE__ */ new Map();
|
|
2673
|
+
for (const i of e.commands)
|
|
2674
|
+
s.set(i.id, i);
|
|
2675
|
+
return s;
|
|
2723
2676
|
}), k = U(() => {
|
|
2724
|
-
var
|
|
2677
|
+
var i;
|
|
2725
2678
|
if (_()) return null;
|
|
2726
|
-
const
|
|
2727
|
-
return ((
|
|
2679
|
+
const s = c().toLowerCase();
|
|
2680
|
+
return ((i = e.prefixModes) == null ? void 0 : i.find((p) => s.startsWith(p.prefix))) ?? null;
|
|
2728
2681
|
}), S = U(() => {
|
|
2729
|
-
const
|
|
2730
|
-
if (
|
|
2731
|
-
const
|
|
2732
|
-
return
|
|
2733
|
-
rootCommandId: `__prefix__:${
|
|
2734
|
-
descriptor:
|
|
2682
|
+
const s = _();
|
|
2683
|
+
if (s) return s;
|
|
2684
|
+
const i = k();
|
|
2685
|
+
return i ? {
|
|
2686
|
+
rootCommandId: `__prefix__:${i.prefix}`,
|
|
2687
|
+
descriptor: i.build()
|
|
2735
2688
|
} : null;
|
|
2736
2689
|
}), P = U(() => {
|
|
2737
|
-
const
|
|
2738
|
-
if (!
|
|
2739
|
-
const
|
|
2740
|
-
return p ?
|
|
2690
|
+
const s = S();
|
|
2691
|
+
if (!s) return [];
|
|
2692
|
+
const i = k(), p = (i ? c().slice(i.prefix.length) : c()).trim().toLowerCase();
|
|
2693
|
+
return p ? s.descriptor.items.map((O) => ({
|
|
2741
2694
|
item: O,
|
|
2742
|
-
score:
|
|
2743
|
-
})).filter((O) => O.score > 0).sort((O,
|
|
2744
|
-
}),
|
|
2745
|
-
query:
|
|
2695
|
+
score: us(O, p)
|
|
2696
|
+
})).filter((O) => O.score > 0).sort((O, se) => se.score - O.score).map((O) => O.item) : s.descriptor.items;
|
|
2697
|
+
}), T = Xs({
|
|
2698
|
+
query: c,
|
|
2746
2699
|
enabled: () => e.open && !S() && (m() === "everywhere" || m() === "database")
|
|
2747
|
-
}), j = U(() => !e.open || S() ? [] : m() !== "everywhere" && m() !== "settings" ? [] :
|
|
2700
|
+
}), j = U(() => !e.open || S() ? [] : m() !== "everywhere" && m() !== "settings" ? [] : Us(r.settingsSearch, c(), m() === "settings" ? 40 : 8)), M = U(() => S() ? [] : Zs({
|
|
2748
2701
|
mode: m(),
|
|
2749
|
-
query:
|
|
2702
|
+
query: c(),
|
|
2750
2703
|
commands: e.commands,
|
|
2751
2704
|
recentCommandIds: e.recentCommandIds,
|
|
2752
2705
|
categoryOrder: e.categoryOrder,
|
|
2753
2706
|
settingsItems: j(),
|
|
2754
|
-
databaseItems:
|
|
2755
|
-
hasWorkspaceContext:
|
|
2707
|
+
databaseItems: T.items(),
|
|
2708
|
+
hasWorkspaceContext: T.hasWorkspaceContext()
|
|
2756
2709
|
})), J = U(() => {
|
|
2757
|
-
const
|
|
2758
|
-
for (const
|
|
2759
|
-
for (const p of
|
|
2760
|
-
|
|
2761
|
-
return
|
|
2762
|
-
}), y = U(() => _() ? [ge, ...P().map((
|
|
2763
|
-
const
|
|
2764
|
-
if (
|
|
2765
|
-
const p =
|
|
2766
|
-
|
|
2767
|
-
}, V = (
|
|
2768
|
-
const
|
|
2769
|
-
|
|
2770
|
-
}, de = (
|
|
2710
|
+
const s = /* @__PURE__ */ new Map();
|
|
2711
|
+
for (const i of M())
|
|
2712
|
+
for (const p of i.items)
|
|
2713
|
+
s.set(p.id, p);
|
|
2714
|
+
return s;
|
|
2715
|
+
}), y = U(() => _() ? [ge, ...P().map((s) => s.id)] : k() ? P().map((s) => s.id) : M().flatMap((s) => s.items.filter((i) => i.enabled).map((i) => i.id))), L = (s) => {
|
|
2716
|
+
const i = y();
|
|
2717
|
+
if (i.length === 0) return;
|
|
2718
|
+
const p = l(), O = i.findIndex((we) => we === p), fe = ((O >= 0 ? O : 0) + s + i.length) % i.length;
|
|
2719
|
+
b(i[fe] ?? null);
|
|
2720
|
+
}, V = (s) => {
|
|
2721
|
+
const i = ["everywhere", "commands", "settings", "database"], O = (i.indexOf(m()) + s + i.length) % i.length;
|
|
2722
|
+
v(i[O] ?? "everywhere");
|
|
2723
|
+
}, de = (s) => {
|
|
2771
2724
|
var p;
|
|
2772
|
-
if (!
|
|
2773
|
-
const
|
|
2725
|
+
if (!s.submenu) return;
|
|
2726
|
+
const i = s.submenu();
|
|
2774
2727
|
I({
|
|
2775
|
-
rootCommandId:
|
|
2776
|
-
descriptor:
|
|
2777
|
-
}), d(""),
|
|
2728
|
+
rootCommandId: s.id,
|
|
2729
|
+
descriptor: i
|
|
2730
|
+
}), d(""), b(((p = i.items[0]) == null ? void 0 : p.id) ?? ge), queueMicrotask(() => $ == null ? void 0 : $.focus());
|
|
2778
2731
|
}, te = () => {
|
|
2779
|
-
I(null), d(""),
|
|
2780
|
-
}, ie = (
|
|
2781
|
-
if (
|
|
2782
|
-
if (
|
|
2783
|
-
de(
|
|
2732
|
+
I(null), d(""), b(null), queueMicrotask(() => $ == null ? void 0 : $.focus());
|
|
2733
|
+
}, ie = (s) => {
|
|
2734
|
+
if (s.enabled) {
|
|
2735
|
+
if (s.submenu) {
|
|
2736
|
+
de(s);
|
|
2784
2737
|
return;
|
|
2785
2738
|
}
|
|
2786
|
-
e.onCommandExecuted(
|
|
2739
|
+
e.onCommandExecuted(s.id), s.run(), e.onClose();
|
|
2787
2740
|
}
|
|
2788
|
-
},
|
|
2789
|
-
const
|
|
2790
|
-
|
|
2791
|
-
}, f = (
|
|
2792
|
-
const
|
|
2793
|
-
|
|
2794
|
-
},
|
|
2795
|
-
if (
|
|
2796
|
-
if (
|
|
2797
|
-
ie(
|
|
2741
|
+
}, ae = (s) => {
|
|
2742
|
+
const i = e.onConfigureKeybinding;
|
|
2743
|
+
i && (i(s.id), e.onClose());
|
|
2744
|
+
}, f = (s) => {
|
|
2745
|
+
const i = _();
|
|
2746
|
+
i && e.onCommandExecuted(i.rootCommandId), s.run(), e.onClose();
|
|
2747
|
+
}, h = (s) => {
|
|
2748
|
+
if (s.enabled) {
|
|
2749
|
+
if (s.kind === "command" && s.rawCommand) {
|
|
2750
|
+
ie(s.rawCommand);
|
|
2798
2751
|
return;
|
|
2799
2752
|
}
|
|
2800
|
-
|
|
2753
|
+
s.run(), e.onClose();
|
|
2801
2754
|
}
|
|
2802
2755
|
};
|
|
2803
|
-
|
|
2804
|
-
var
|
|
2756
|
+
oe(() => {
|
|
2757
|
+
var i;
|
|
2805
2758
|
if (!e.open) {
|
|
2806
|
-
I(null),
|
|
2759
|
+
I(null), v("everywhere"), b(null);
|
|
2807
2760
|
return;
|
|
2808
2761
|
}
|
|
2809
|
-
d(""),
|
|
2810
|
-
const
|
|
2811
|
-
if (
|
|
2812
|
-
const p = N().get(
|
|
2762
|
+
d(""), v("everywhere"), I(null);
|
|
2763
|
+
const s = e.consumePendingPickerId();
|
|
2764
|
+
if (s !== null) {
|
|
2765
|
+
const p = N().get(s);
|
|
2813
2766
|
if (p && p.submenu) {
|
|
2814
2767
|
const O = p.submenu();
|
|
2815
2768
|
I({
|
|
2816
2769
|
rootCommandId: p.id,
|
|
2817
2770
|
descriptor: O
|
|
2818
|
-
}),
|
|
2771
|
+
}), b(((i = O.items[0]) == null ? void 0 : i.id) ?? ge);
|
|
2819
2772
|
}
|
|
2820
2773
|
}
|
|
2821
2774
|
queueMicrotask(() => $ == null ? void 0 : $.focus());
|
|
2822
|
-
}),
|
|
2775
|
+
}), oe(() => {
|
|
2823
2776
|
if (!e.open) return;
|
|
2824
|
-
const
|
|
2825
|
-
if (
|
|
2826
|
-
|
|
2777
|
+
const s = y(), i = l();
|
|
2778
|
+
if (s.length === 0) {
|
|
2779
|
+
b(null);
|
|
2827
2780
|
return;
|
|
2828
2781
|
}
|
|
2829
|
-
(!
|
|
2830
|
-
}),
|
|
2782
|
+
(!i || !s.includes(i)) && b(s[0] ?? null);
|
|
2783
|
+
}), oe(() => {
|
|
2831
2784
|
if (!e.open) return;
|
|
2832
|
-
const
|
|
2833
|
-
|
|
2834
|
-
const
|
|
2785
|
+
const s = l();
|
|
2786
|
+
s && queueMicrotask(() => {
|
|
2787
|
+
const i = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(s) : s.replace(/"/g, '\\"'), p = e.host().document.querySelector(`[data-cmd-entry-id="${i}"]`);
|
|
2835
2788
|
p == null || p.scrollIntoView({
|
|
2836
2789
|
block: "nearest"
|
|
2837
2790
|
});
|
|
2838
2791
|
});
|
|
2839
|
-
}),
|
|
2792
|
+
}), oe(() => {
|
|
2840
2793
|
if (!e.open) return;
|
|
2841
|
-
const
|
|
2842
|
-
if (
|
|
2794
|
+
const s = (p) => {
|
|
2795
|
+
if (a.isTopmost() && !p.defaultPrevented && !(p.target instanceof Element && p.target.closest('[role="tablist"]'))) {
|
|
2843
2796
|
if (he(p, "Escape")) {
|
|
2844
2797
|
if (p.preventDefault(), _()) {
|
|
2845
2798
|
te();
|
|
@@ -2861,7 +2814,7 @@ function ic(e) {
|
|
|
2861
2814
|
return;
|
|
2862
2815
|
}
|
|
2863
2816
|
if (he(p, "Enter")) {
|
|
2864
|
-
const O =
|
|
2817
|
+
const O = l();
|
|
2865
2818
|
if (!O) return;
|
|
2866
2819
|
if (p.preventDefault(), S()) {
|
|
2867
2820
|
if (O === ge) {
|
|
@@ -2872,49 +2825,49 @@ function ic(e) {
|
|
|
2872
2825
|
we && f(we);
|
|
2873
2826
|
return;
|
|
2874
2827
|
}
|
|
2875
|
-
const
|
|
2876
|
-
if (
|
|
2877
|
-
if (p.altKey &&
|
|
2878
|
-
|
|
2828
|
+
const se = J().get(O);
|
|
2829
|
+
if (se) {
|
|
2830
|
+
if (p.altKey && se.kind === "command" && se.rawCommand) {
|
|
2831
|
+
ae(se.rawCommand);
|
|
2879
2832
|
return;
|
|
2880
2833
|
}
|
|
2881
|
-
|
|
2834
|
+
h(se);
|
|
2882
2835
|
return;
|
|
2883
2836
|
}
|
|
2884
2837
|
const fe = N().get(O);
|
|
2885
2838
|
if (fe) {
|
|
2886
2839
|
if (p.altKey) {
|
|
2887
|
-
|
|
2840
|
+
ae(fe);
|
|
2888
2841
|
return;
|
|
2889
2842
|
}
|
|
2890
2843
|
ie(fe);
|
|
2891
2844
|
}
|
|
2892
2845
|
}
|
|
2893
2846
|
}
|
|
2894
|
-
},
|
|
2895
|
-
|
|
2896
|
-
|
|
2847
|
+
}, i = e.host();
|
|
2848
|
+
i.addEventListener("keydown", s), Y(() => {
|
|
2849
|
+
i.removeEventListener("keydown", s);
|
|
2897
2850
|
});
|
|
2898
2851
|
});
|
|
2899
|
-
const C = (
|
|
2852
|
+
const C = (s) => s.items.length === 0 && s.emptyText !== void 0 ? s.emptyText : u("No matches."), B = (s) => {
|
|
2900
2853
|
if (m() === "everywhere") {
|
|
2901
|
-
if (
|
|
2902
|
-
|
|
2854
|
+
if (s.startsWith("/") || s.startsWith(">")) {
|
|
2855
|
+
v("commands"), d(s.slice(1));
|
|
2903
2856
|
return;
|
|
2904
2857
|
}
|
|
2905
|
-
if (
|
|
2906
|
-
|
|
2858
|
+
if (s.startsWith("#")) {
|
|
2859
|
+
v("settings"), d(s.slice(1));
|
|
2907
2860
|
return;
|
|
2908
2861
|
}
|
|
2909
|
-
if (
|
|
2910
|
-
|
|
2862
|
+
if (s.startsWith("@")) {
|
|
2863
|
+
v("database"), d(s.slice(1));
|
|
2911
2864
|
return;
|
|
2912
2865
|
}
|
|
2913
2866
|
}
|
|
2914
|
-
d(
|
|
2867
|
+
d(s);
|
|
2915
2868
|
}, F = () => {
|
|
2916
|
-
const
|
|
2917
|
-
return
|
|
2869
|
+
const s = _();
|
|
2870
|
+
return s ? s.descriptor.title : m() === "everywhere" ? u("Search everywhere...") : m() === "commands" ? u("Search commands...") : m() === "settings" ? u("Search settings...") : m() === "database" ? u("Search database objects...") : u("Search commands...");
|
|
2918
2871
|
};
|
|
2919
2872
|
return Ft({
|
|
2920
2873
|
open: () => e.open,
|
|
@@ -2930,31 +2883,31 @@ function ic(e) {
|
|
|
2930
2883
|
return e.host().document.body;
|
|
2931
2884
|
},
|
|
2932
2885
|
get children() {
|
|
2933
|
-
return g(
|
|
2886
|
+
return g(ei, `${t(A.backdrop, !0)} ${e.style === "compact" ? t(A.backdropCompact, !0) : t(A.backdropClassic, !0)}`, `${t(A.panel, !0)} ${e.style === "compact" ? t(A.panelCompact, !0) : t(A.panelClassic, !0)}`, o("aria-label", t(u("Command Palette"), !0), !1), o("class", t(A.searchRow, !0), !1), t(n(Ve, {
|
|
2934
2887
|
get class() {
|
|
2935
2888
|
return A.searchInput;
|
|
2936
2889
|
},
|
|
2937
2890
|
type: "text",
|
|
2938
2891
|
get value() {
|
|
2939
|
-
return
|
|
2892
|
+
return c();
|
|
2940
2893
|
},
|
|
2941
2894
|
get placeholder() {
|
|
2942
2895
|
return F();
|
|
2943
2896
|
},
|
|
2944
|
-
onInput: (
|
|
2945
|
-
const
|
|
2946
|
-
B((
|
|
2897
|
+
onInput: (s) => {
|
|
2898
|
+
const i = s.currentTarget ?? s.target;
|
|
2899
|
+
B((i == null ? void 0 : i.value) ?? "");
|
|
2947
2900
|
}
|
|
2948
2901
|
})), t(n(w, {
|
|
2949
2902
|
get when() {
|
|
2950
2903
|
return !S();
|
|
2951
2904
|
},
|
|
2952
2905
|
get children() {
|
|
2953
|
-
return n(
|
|
2906
|
+
return n(js, {
|
|
2954
2907
|
activeMode: m,
|
|
2955
|
-
onModeChange:
|
|
2908
|
+
onModeChange: v,
|
|
2956
2909
|
get hasWorkspaceContext() {
|
|
2957
|
-
return
|
|
2910
|
+
return T.hasWorkspaceContext;
|
|
2958
2911
|
}
|
|
2959
2912
|
});
|
|
2960
2913
|
}
|
|
@@ -3018,7 +2971,7 @@ function ic(e) {
|
|
|
3018
2971
|
get children() {
|
|
3019
2972
|
return n(w, {
|
|
3020
2973
|
get when() {
|
|
3021
|
-
return
|
|
2974
|
+
return T.hasWorkspaceContext();
|
|
3022
2975
|
},
|
|
3023
2976
|
get fallback() {
|
|
3024
2977
|
return n(ke, {
|
|
@@ -3031,7 +2984,7 @@ function ic(e) {
|
|
|
3031
2984
|
get children() {
|
|
3032
2985
|
return n(w, {
|
|
3033
2986
|
get when() {
|
|
3034
|
-
return
|
|
2987
|
+
return T.loading();
|
|
3035
2988
|
},
|
|
3036
2989
|
get fallback() {
|
|
3037
2990
|
return n(ke, {
|
|
@@ -3042,7 +2995,7 @@ function ic(e) {
|
|
|
3042
2995
|
});
|
|
3043
2996
|
},
|
|
3044
2997
|
get children() {
|
|
3045
|
-
return g(
|
|
2998
|
+
return g(ti, o("class", t(ue.statusRow, !0), !1), t(u("Loading objects...")));
|
|
3046
2999
|
}
|
|
3047
3000
|
});
|
|
3048
3001
|
}
|
|
@@ -3055,62 +3008,62 @@ function ic(e) {
|
|
|
3055
3008
|
get each() {
|
|
3056
3009
|
return M();
|
|
3057
3010
|
},
|
|
3058
|
-
children: (
|
|
3011
|
+
children: (s) => g(ni, o("class", t(A.section, !0), !1), o("class", t(A.sectionTitle, !0), !1), t(s.label), o("class", t(A.commandList, !0), !1), t(n(me, {
|
|
3059
3012
|
get each() {
|
|
3060
|
-
return
|
|
3013
|
+
return s.items;
|
|
3061
3014
|
},
|
|
3062
|
-
children: (
|
|
3015
|
+
children: (i) => g(ai, `${t(A.commandRow, !0)} ${l() === i.id ? t(A.commandRowActive, !0) : ""}`, t(n(ye, {
|
|
3063
3016
|
type: "button",
|
|
3064
3017
|
get class() {
|
|
3065
|
-
return `${A.commandItem} ${
|
|
3018
|
+
return `${A.commandItem} ${l() === i.id ? A.commandItemActive : ""}`;
|
|
3066
3019
|
},
|
|
3067
3020
|
get "attr:data-cmd-entry-id"() {
|
|
3068
|
-
return
|
|
3021
|
+
return i.id;
|
|
3069
3022
|
},
|
|
3070
3023
|
get "aria-label"() {
|
|
3071
|
-
return
|
|
3024
|
+
return ci(i);
|
|
3072
3025
|
},
|
|
3073
3026
|
onMouseEnter: () => {
|
|
3074
|
-
|
|
3027
|
+
i.enabled && b(i.id);
|
|
3075
3028
|
},
|
|
3076
|
-
onClick: () =>
|
|
3029
|
+
onClick: () => h(i),
|
|
3077
3030
|
get disabled() {
|
|
3078
|
-
return !
|
|
3031
|
+
return !i.enabled;
|
|
3079
3032
|
},
|
|
3080
3033
|
get children() {
|
|
3081
|
-
return [g(
|
|
3034
|
+
return [g(ot, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(i.title), t(n(w, {
|
|
3082
3035
|
get when() {
|
|
3083
|
-
return
|
|
3036
|
+
return i.description;
|
|
3084
3037
|
},
|
|
3085
3038
|
get children() {
|
|
3086
|
-
return g(
|
|
3039
|
+
return g(We, o("class", t(A.commandDescription, !0), !1), t(i.description));
|
|
3087
3040
|
}
|
|
3088
|
-
}))), g(
|
|
3041
|
+
}))), g(oi, Z("display:", "inline-flex") + Z(";align-items:", "center") + Z(";gap:", "0.4rem"), t(n(w, {
|
|
3089
3042
|
get when() {
|
|
3090
|
-
return
|
|
3043
|
+
return i.kind === "setting";
|
|
3091
3044
|
},
|
|
3092
3045
|
get children() {
|
|
3093
|
-
return g(
|
|
3046
|
+
return g(at, `${t(ue.badge, !0)} ${t(ue.badgeSetting, !0)}`, t(u("Setting")));
|
|
3094
3047
|
}
|
|
3095
3048
|
})), t(n(w, {
|
|
3096
3049
|
get when() {
|
|
3097
|
-
return
|
|
3050
|
+
return i.kind === "database-object";
|
|
3098
3051
|
},
|
|
3099
3052
|
get children() {
|
|
3100
|
-
return g(
|
|
3053
|
+
return g(at, `${t(ue.badge, !0)} ${t(ue.badgeDb, !0)}`, t(i.objectType || u("Database")));
|
|
3101
3054
|
}
|
|
3102
3055
|
})), t(n(w, {
|
|
3103
3056
|
get when() {
|
|
3104
|
-
return
|
|
3057
|
+
return i.shortcut;
|
|
3105
3058
|
},
|
|
3106
3059
|
get children() {
|
|
3107
|
-
return g(
|
|
3060
|
+
return g(ri, o("class", t(A.commandShortcut, !0), !1), t(i.shortcut));
|
|
3108
3061
|
}
|
|
3109
3062
|
})))];
|
|
3110
3063
|
}
|
|
3111
3064
|
})), t(n(w, {
|
|
3112
3065
|
get when() {
|
|
3113
|
-
return ee(() => !!(
|
|
3066
|
+
return ee(() => !!(i.kind === "command" && i.rawCommand))() && e.onConfigureKeybinding;
|
|
3114
3067
|
},
|
|
3115
3068
|
get children() {
|
|
3116
3069
|
return n(Q, {
|
|
@@ -3128,7 +3081,7 @@ function ic(e) {
|
|
|
3128
3081
|
return u("Configure Keybinding");
|
|
3129
3082
|
},
|
|
3130
3083
|
onClick: (p) => {
|
|
3131
|
-
p.stopPropagation(),
|
|
3084
|
+
p.stopPropagation(), i.rawCommand && ae(i.rawCommand);
|
|
3132
3085
|
},
|
|
3133
3086
|
get leadingIcon() {
|
|
3134
3087
|
return n(jt, {
|
|
@@ -3143,7 +3096,7 @@ function ic(e) {
|
|
|
3143
3096
|
}
|
|
3144
3097
|
});
|
|
3145
3098
|
},
|
|
3146
|
-
children: (
|
|
3099
|
+
children: (s) => g(ii, o("class", t(A.section, !0), !1), o("class", t(A.sectionTitle, !0), !1), t(s().descriptor.title), o("class", t(A.commandList, !0), !1), t(n(w, {
|
|
3147
3100
|
get when() {
|
|
3148
3101
|
return _();
|
|
3149
3102
|
},
|
|
@@ -3151,13 +3104,13 @@ function ic(e) {
|
|
|
3151
3104
|
return n(ye, {
|
|
3152
3105
|
type: "button",
|
|
3153
3106
|
get class() {
|
|
3154
|
-
return `${A.commandItem} ${
|
|
3107
|
+
return `${A.commandItem} ${l() === ge ? A.commandItemActive : ""}`;
|
|
3155
3108
|
},
|
|
3156
3109
|
"attr:data-cmd-entry-id": ge,
|
|
3157
|
-
onMouseEnter: () =>
|
|
3110
|
+
onMouseEnter: () => b(ge),
|
|
3158
3111
|
onClick: () => te(),
|
|
3159
3112
|
get children() {
|
|
3160
|
-
return g(
|
|
3113
|
+
return g(si, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(u("← Back")));
|
|
3161
3114
|
}
|
|
3162
3115
|
});
|
|
3163
3116
|
}
|
|
@@ -3169,7 +3122,7 @@ function ic(e) {
|
|
|
3169
3122
|
return n(ke, {
|
|
3170
3123
|
size: "sm",
|
|
3171
3124
|
get title() {
|
|
3172
|
-
return C(
|
|
3125
|
+
return C(s().descriptor);
|
|
3173
3126
|
}
|
|
3174
3127
|
});
|
|
3175
3128
|
},
|
|
@@ -3178,30 +3131,30 @@ function ic(e) {
|
|
|
3178
3131
|
get each() {
|
|
3179
3132
|
return P();
|
|
3180
3133
|
},
|
|
3181
|
-
children: (
|
|
3134
|
+
children: (i) => n(ye, {
|
|
3182
3135
|
type: "button",
|
|
3183
3136
|
get class() {
|
|
3184
|
-
return `${A.commandItem} ${
|
|
3137
|
+
return `${A.commandItem} ${l() === i.id ? A.commandItemActive : ""}`;
|
|
3185
3138
|
},
|
|
3186
3139
|
get "attr:data-cmd-entry-id"() {
|
|
3187
|
-
return
|
|
3140
|
+
return i.id;
|
|
3188
3141
|
},
|
|
3189
|
-
onMouseEnter: () =>
|
|
3190
|
-
onClick: () => f(
|
|
3142
|
+
onMouseEnter: () => b(i.id),
|
|
3143
|
+
onClick: () => f(i),
|
|
3191
3144
|
get children() {
|
|
3192
|
-
return [g(
|
|
3145
|
+
return [g(ot, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(i.title), t(n(w, {
|
|
3193
3146
|
get when() {
|
|
3194
|
-
return
|
|
3147
|
+
return i.description;
|
|
3195
3148
|
},
|
|
3196
3149
|
get children() {
|
|
3197
|
-
return g(
|
|
3150
|
+
return g(We, o("class", t(A.commandDescription, !0), !1), t(i.description));
|
|
3198
3151
|
}
|
|
3199
3152
|
}))), n(w, {
|
|
3200
3153
|
get when() {
|
|
3201
|
-
return
|
|
3154
|
+
return i.isCurrent;
|
|
3202
3155
|
},
|
|
3203
3156
|
get children() {
|
|
3204
|
-
return g(
|
|
3157
|
+
return g(We, o("class", t(A.commandShortcut, !0), !1), t(u("Current")));
|
|
3205
3158
|
}
|
|
3206
3159
|
})];
|
|
3207
3160
|
}
|
|
@@ -3218,54 +3171,54 @@ function ic(e) {
|
|
|
3218
3171
|
});
|
|
3219
3172
|
}
|
|
3220
3173
|
export {
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3174
|
+
Oi as A,
|
|
3175
|
+
xa as B,
|
|
3176
|
+
sc as C,
|
|
3177
|
+
Kn as D,
|
|
3178
|
+
Cn as E,
|
|
3179
|
+
ac as F,
|
|
3180
|
+
mt as G,
|
|
3181
|
+
Hi as H,
|
|
3182
|
+
Ni as I,
|
|
3230
3183
|
kt as J,
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3184
|
+
_n as K,
|
|
3185
|
+
Zi as L,
|
|
3186
|
+
Ji as M,
|
|
3187
|
+
Ha as N,
|
|
3188
|
+
Je as O,
|
|
3189
|
+
Yi as P,
|
|
3190
|
+
De as Q,
|
|
3191
|
+
qi as R,
|
|
3192
|
+
Be as S,
|
|
3193
|
+
Bi as T,
|
|
3194
|
+
Fi as U,
|
|
3195
|
+
nc as V,
|
|
3196
|
+
Vi as W,
|
|
3197
|
+
tc as X,
|
|
3198
|
+
zi as a,
|
|
3199
|
+
Xe as b,
|
|
3200
|
+
Ki as c,
|
|
3201
|
+
Ui as d,
|
|
3202
|
+
Xi as e,
|
|
3203
|
+
Qi as f,
|
|
3204
|
+
Mo as g,
|
|
3252
3205
|
To as h,
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3206
|
+
Gi as i,
|
|
3207
|
+
Do as j,
|
|
3208
|
+
Ro as k,
|
|
3209
|
+
pn as l,
|
|
3210
|
+
wn as m,
|
|
3211
|
+
kn as n,
|
|
3212
|
+
Pe as o,
|
|
3213
|
+
Wi as p,
|
|
3214
|
+
Va as q,
|
|
3215
|
+
qa as r,
|
|
3216
|
+
Fa as s,
|
|
3217
|
+
ec as t,
|
|
3218
|
+
ji as u,
|
|
3219
|
+
$n as v,
|
|
3220
|
+
rc as w,
|
|
3221
|
+
oc as x,
|
|
3222
|
+
Un as y,
|
|
3223
|
+
Ie as z
|
|
3271
3224
|
};
|