@vokril/ui-solid 0.23.0 → 0.25.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 +12 -0
- package/dist/CommandPalette-Bf8flX2t.cjs +2 -0
- package/dist/{CommandPalette-CBA_Shqx.js → CommandPalette-CoIdCmZ0.js} +1287 -1278
- package/dist/_internal/platform/settings/settingsTypes.d.cts +13 -7
- package/dist/_internal/platform/settings/settingsTypes.d.ts +13 -7
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/overlay/Drawer.d.cts +8 -0
- package/dist/overlay/Drawer.d.ts +8 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +1 -1
- package/dist/server/{CommandPalette-DE59Rq-n.js → CommandPalette-COVjWlx9.js} +772 -764
- package/dist/server/CommandPalette-C_9Z8gVc.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +1 -1
- package/dist/solid/overlay/Drawer.jsx +18 -7
- package/dist/solid/overlay/Drawer.module.css.js +1 -0
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/CommandPalette-CBFIo0FX.cjs +0 -2
- package/dist/server/CommandPalette-CRT5VEoR.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
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
|
|
2
|
+
import { createSignal as D, onCleanup as U, Show as w, createEffect as oe, on as He, createUniqueId as J, createComputed as $t, onMount as Ue, For as me, splitProps as St, createMemo as Q, createRenderEffect as Lt } from "solid-js";
|
|
3
3
|
import { K as it } from "./Kbd-BTbz_c_e.js";
|
|
4
4
|
import { s as It, r as Qe, O as Le } from "./dialogFocusRestore--dH59ER2.js";
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as G } 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
9
|
import { a as qe, g as Ae } from "./window-CUK6x8Pj.js";
|
|
10
|
-
import { t as
|
|
10
|
+
import { t as l, l as Tt } from "./i18n-DW9kcu0G.js";
|
|
11
11
|
import { A as ct, V as Dt, a as Mt, b as Rt } from "./Modal-j54-C2Md.js";
|
|
12
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";
|
|
@@ -34,9 +34,9 @@ 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
|
|
37
|
+
const Oi = (e) => {
|
|
38
38
|
const [r, a] = D(!1), c = () => e.placement ?? "top";
|
|
39
|
-
|
|
39
|
+
U(() => {
|
|
40
40
|
});
|
|
41
41
|
const m = () => {
|
|
42
42
|
switch (c()) {
|
|
@@ -74,32 +74,32 @@ const Bi = (e) => {
|
|
|
74
74
|
};
|
|
75
75
|
function Ie(e) {
|
|
76
76
|
let r = null, a = null, c = null;
|
|
77
|
-
const
|
|
78
|
-
a === null && (a =
|
|
79
|
-
},
|
|
77
|
+
const u = () => e.ownerDocument(), m = () => {
|
|
78
|
+
a === null && (a = u().activeElement);
|
|
79
|
+
}, b = () => {
|
|
80
80
|
c == null || c(), c = null;
|
|
81
81
|
};
|
|
82
82
|
return oe(
|
|
83
83
|
He(
|
|
84
84
|
() => e.open(),
|
|
85
|
-
(
|
|
86
|
-
if (
|
|
85
|
+
(d, h) => {
|
|
86
|
+
if (d) {
|
|
87
87
|
r !== null && c === null && (c = Ht(r));
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
It(
|
|
90
|
+
It(h, d) && (b(), Qe(a), a = null, r = null);
|
|
91
91
|
}
|
|
92
92
|
)
|
|
93
|
-
),
|
|
94
|
-
|
|
93
|
+
), U(() => {
|
|
94
|
+
b(), Qe(a), a = null, r = null;
|
|
95
95
|
}), {
|
|
96
|
-
captureDialog: (
|
|
97
|
-
r =
|
|
96
|
+
captureDialog: (d) => {
|
|
97
|
+
r = d, m();
|
|
98
98
|
},
|
|
99
99
|
captureReturnFocus: m
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function zi() {
|
|
103
103
|
let e = !1;
|
|
104
104
|
return {
|
|
105
105
|
noteMouseDown(r) {
|
|
@@ -126,20 +126,20 @@ const en = "vk_overlay_7-umT", tn = "vk_dialog_3YL-7", nn = "vk_header_asYMs", r
|
|
|
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
128
|
const $e = (e) => ((e == null ? void 0 : e()) ?? qe().window).document;
|
|
129
|
-
function
|
|
130
|
-
const r =
|
|
129
|
+
function Wi(e) {
|
|
130
|
+
const r = J(), a = J(), [c, u] = D(0);
|
|
131
131
|
return oe(() => {
|
|
132
|
-
var
|
|
132
|
+
var h;
|
|
133
133
|
if (!e.open()) {
|
|
134
|
-
|
|
134
|
+
u(0);
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
const m = e.confirmDelaySeconds ?? 0;
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
|
|
138
|
+
if (u(m), m <= 0) return;
|
|
139
|
+
const b = ((h = e.host) == null ? void 0 : h.call(e)) ?? qe().window, d = b.setInterval(() => {
|
|
140
|
+
u((_) => _ <= 1 ? 0 : _ - 1);
|
|
141
141
|
}, 1e3);
|
|
142
|
-
|
|
142
|
+
U(() => b.clearInterval(d));
|
|
143
143
|
}), Ie({
|
|
144
144
|
open: () => e.open(),
|
|
145
145
|
ownerDocument: () => $e(e.host)
|
|
@@ -177,17 +177,17 @@ function zi(e) {
|
|
|
177
177
|
return W.code;
|
|
178
178
|
},
|
|
179
179
|
get children() {
|
|
180
|
-
return g(fn, o("class", t(W.codePre, !0), !1) + o("aria-label", t(
|
|
180
|
+
return g(fn, o("class", t(W.codePre, !0), !1) + o("aria-label", t(l("Statement"), !0), !1), t(m()));
|
|
181
181
|
}
|
|
182
182
|
})
|
|
183
|
-
})), o("class", t(W.footer, !0), !1), t(n(
|
|
183
|
+
})), o("class", t(W.footer, !0), !1), t(n(G, {
|
|
184
184
|
size: "lg",
|
|
185
185
|
variant: "secondary",
|
|
186
186
|
onClick: () => e.onCancel(),
|
|
187
187
|
get children() {
|
|
188
|
-
return e.cancelLabel ??
|
|
188
|
+
return e.cancelLabel ?? l("Cancel");
|
|
189
189
|
}
|
|
190
|
-
})), t(n(
|
|
190
|
+
})), t(n(G, {
|
|
191
191
|
size: "lg",
|
|
192
192
|
get variant() {
|
|
193
193
|
return (e.variant ?? "default") === "danger" ? "dangerSolid" : "primary";
|
|
@@ -197,10 +197,10 @@ function zi(e) {
|
|
|
197
197
|
},
|
|
198
198
|
onClick: () => e.onConfirm(),
|
|
199
199
|
get children() {
|
|
200
|
-
return c() > 0 ?
|
|
201
|
-
label: e.confirmLabel ??
|
|
200
|
+
return c() > 0 ? l("{label} ({seconds})", {
|
|
201
|
+
label: e.confirmLabel ?? l("Confirm"),
|
|
202
202
|
seconds: c()
|
|
203
|
-
}) : e.confirmLabel ??
|
|
203
|
+
}) : e.confirmLabel ?? l("Confirm");
|
|
204
204
|
}
|
|
205
205
|
})));
|
|
206
206
|
}
|
|
@@ -208,8 +208,8 @@ function zi(e) {
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
const r =
|
|
211
|
+
function Ni(e) {
|
|
212
|
+
const r = J();
|
|
213
213
|
return Ie({
|
|
214
214
|
open: () => e.open(),
|
|
215
215
|
ownerDocument: () => $e(e.host)
|
|
@@ -225,26 +225,26 @@ function Wi(e) {
|
|
|
225
225
|
},
|
|
226
226
|
idPrefix: "save-discard-dialog",
|
|
227
227
|
get children() {
|
|
228
|
-
return g(gn, o("class", t(W.overlay, !0), !1), o("class", t(W.dialog, !0), !1), o("aria-labelledby", t(r, !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), o("class", t(W.message, !0), !1), t(e.message), o("class", t(W.footer, !0), !1), t(n(
|
|
228
|
+
return g(gn, o("class", t(W.overlay, !0), !1), o("class", t(W.dialog, !0), !1), o("aria-labelledby", t(r, !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), o("class", t(W.message, !0), !1), t(e.message), o("class", t(W.footer, !0), !1), t(n(G, {
|
|
229
229
|
size: "lg",
|
|
230
230
|
variant: "secondary",
|
|
231
231
|
onClick: () => e.onChoice("cancel"),
|
|
232
232
|
get children() {
|
|
233
|
-
return e.cancelLabel ??
|
|
233
|
+
return e.cancelLabel ?? l("Cancel");
|
|
234
234
|
}
|
|
235
|
-
})), t(n(
|
|
235
|
+
})), t(n(G, {
|
|
236
236
|
size: "lg",
|
|
237
237
|
variant: "dangerSolid",
|
|
238
238
|
onClick: () => e.onChoice("discard"),
|
|
239
239
|
get children() {
|
|
240
|
-
return e.discardLabel ??
|
|
240
|
+
return e.discardLabel ?? l("Don't Save");
|
|
241
241
|
}
|
|
242
|
-
})), t(n(
|
|
242
|
+
})), t(n(G, {
|
|
243
243
|
size: "lg",
|
|
244
244
|
variant: "primary",
|
|
245
245
|
onClick: () => e.onChoice("save"),
|
|
246
246
|
get children() {
|
|
247
|
-
return e.saveLabel ??
|
|
247
|
+
return e.saveLabel ?? l("Save");
|
|
248
248
|
}
|
|
249
249
|
})));
|
|
250
250
|
}
|
|
@@ -252,10 +252,10 @@ function Wi(e) {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
const r =
|
|
257
|
-
return oe(He(() => e.open(), (
|
|
258
|
-
|
|
255
|
+
function Fi(e) {
|
|
256
|
+
const r = J(), [a, c] = D(e.defaultValue ?? "");
|
|
257
|
+
return oe(He(() => e.open(), (u) => {
|
|
258
|
+
u && c(e.defaultValue ?? "");
|
|
259
259
|
}, {
|
|
260
260
|
defer: !0
|
|
261
261
|
})), Ie({
|
|
@@ -301,7 +301,7 @@ function Ni(e) {
|
|
|
301
301
|
get "aria-label"() {
|
|
302
302
|
return e.title;
|
|
303
303
|
},
|
|
304
|
-
onInput: (
|
|
304
|
+
onInput: (u) => c(u.currentTarget.value)
|
|
305
305
|
});
|
|
306
306
|
},
|
|
307
307
|
get children() {
|
|
@@ -320,22 +320,22 @@ function Ni(e) {
|
|
|
320
320
|
get "aria-label"() {
|
|
321
321
|
return e.title;
|
|
322
322
|
},
|
|
323
|
-
onInput: (
|
|
323
|
+
onInput: (u) => c(u.currentTarget.value)
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
})), o("class", t(W.footer, !0), !1), t(n(
|
|
326
|
+
})), o("class", t(W.footer, !0), !1), t(n(G, {
|
|
327
327
|
size: "lg",
|
|
328
328
|
variant: "secondary",
|
|
329
329
|
onClick: () => e.onCancel(),
|
|
330
330
|
get children() {
|
|
331
|
-
return e.cancelLabel ??
|
|
331
|
+
return e.cancelLabel ?? l("Cancel");
|
|
332
332
|
}
|
|
333
|
-
})), t(n(
|
|
333
|
+
})), t(n(G, {
|
|
334
334
|
size: "lg",
|
|
335
335
|
variant: "primary",
|
|
336
336
|
onClick: () => e.onConfirm(a()),
|
|
337
337
|
get children() {
|
|
338
|
-
return e.confirmLabel ??
|
|
338
|
+
return e.confirmLabel ?? l("Save");
|
|
339
339
|
}
|
|
340
340
|
})));
|
|
341
341
|
}
|
|
@@ -343,7 +343,7 @@ function Ni(e) {
|
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const Hi = Object.freeze({
|
|
347
347
|
root: z.root,
|
|
348
348
|
header: z.header,
|
|
349
349
|
headerMain: z.headerMain,
|
|
@@ -374,15 +374,15 @@ const Fi = Object.freeze({
|
|
|
374
374
|
function bn(e) {
|
|
375
375
|
return e !== void 0 && e.type !== "separator";
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Vi(e) {
|
|
378
378
|
return e === "ArrowDown" || e === "ArrowUp" || e === "Home" || e === "End" || e === "ArrowRight" || e === "ArrowLeft";
|
|
379
379
|
}
|
|
380
380
|
function De(e, r, a) {
|
|
381
381
|
const c = e.length;
|
|
382
382
|
if (c === 0) return -1;
|
|
383
|
-
let
|
|
383
|
+
let u = r;
|
|
384
384
|
for (let m = 0; m < c; m++)
|
|
385
|
-
if (
|
|
385
|
+
if (u = (u + a + c) % c, bn(e[u])) return u;
|
|
386
386
|
return -1;
|
|
387
387
|
}
|
|
388
388
|
function mt(e) {
|
|
@@ -391,7 +391,7 @@ function mt(e) {
|
|
|
391
391
|
function _n(e) {
|
|
392
392
|
return De(e, e.length, -1);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function qi(e, r, a) {
|
|
395
395
|
switch (a) {
|
|
396
396
|
case "ArrowDown":
|
|
397
397
|
return De(e, r, 1);
|
|
@@ -423,12 +423,12 @@ function Cn(e) {
|
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
425
|
function $n(e) {
|
|
426
|
-
const { parentPanelRect: r, triggerRowRect: a, viewportWidth: c, viewportHeight:
|
|
426
|
+
const { parentPanelRect: r, triggerRowRect: a, viewportWidth: c, viewportHeight: u } = e, m = r.right - Be, b = m + wn > c - Pe, d = b ? r.left + Be : m, h = Cn(e.submenuItemCount), _ = yn(
|
|
427
427
|
a.top - Be,
|
|
428
428
|
Pe,
|
|
429
|
-
|
|
429
|
+
u - h - Pe
|
|
430
430
|
);
|
|
431
|
-
return { x:
|
|
431
|
+
return { x: d, y: _, flipLeft: b };
|
|
432
432
|
}
|
|
433
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
434
|
menu: Sn,
|
|
@@ -452,7 +452,7 @@ function Oe(e) {
|
|
|
452
452
|
}
|
|
453
453
|
function ft(e) {
|
|
454
454
|
let r, a = !1;
|
|
455
|
-
|
|
455
|
+
U(() => {
|
|
456
456
|
a = !0;
|
|
457
457
|
});
|
|
458
458
|
const c = () => {
|
|
@@ -463,9 +463,9 @@ function ft(e) {
|
|
|
463
463
|
height: 0
|
|
464
464
|
} : void 0);
|
|
465
465
|
if (f) {
|
|
466
|
-
const
|
|
466
|
+
const v = e.hostWin.innerHeight, $ = e.hostWin.innerWidth, B = v - (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;
|
|
467
467
|
return {
|
|
468
|
-
left: e.anchorAlignment === Ot.RIGHT || f.left + p >
|
|
468
|
+
left: e.anchorAlignment === Ot.RIGHT || f.left + p > $ - xe ? Math.max(xe, f.left + f.width - p) : f.left,
|
|
469
469
|
top: i,
|
|
470
470
|
right: void 0,
|
|
471
471
|
bottom: void 0,
|
|
@@ -481,37 +481,37 @@ function ft(e) {
|
|
|
481
481
|
maxHeight: void 0,
|
|
482
482
|
maxWidth: void 0
|
|
483
483
|
};
|
|
484
|
-
}, [
|
|
484
|
+
}, [u, m] = D(c()), [b, d] = D(null), [h, _] = D(-1), [I, C] = D(-1), N = J(), k = (f) => `ctx-hint-${N}-${f}`, S = [];
|
|
485
485
|
let P;
|
|
486
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
|
|
488
|
-
|
|
487
|
+
var v;
|
|
488
|
+
C(f), (v = S[f]) == null || v.focus({
|
|
489
489
|
preventScroll: !1
|
|
490
490
|
});
|
|
491
|
-
},
|
|
492
|
-
if (!
|
|
491
|
+
}, X = (f, v, $, B) => {
|
|
492
|
+
if (!v.submenu || v.submenu.length === 0 || !r || h() === $ && b() !== null && !B)
|
|
493
493
|
return;
|
|
494
494
|
const F = r.getBoundingClientRect(), s = f.getBoundingClientRect(), i = $n({
|
|
495
495
|
parentPanelRect: F,
|
|
496
496
|
triggerRowRect: s,
|
|
497
|
-
submenuItemCount:
|
|
497
|
+
submenuItemCount: v.submenu.length,
|
|
498
498
|
viewportWidth: e.hostWin.innerWidth,
|
|
499
499
|
viewportHeight: e.hostWin.innerHeight
|
|
500
500
|
});
|
|
501
|
-
_(
|
|
501
|
+
_($);
|
|
502
502
|
const p = {
|
|
503
503
|
x: i.x,
|
|
504
504
|
y: i.y,
|
|
505
|
-
items:
|
|
505
|
+
items: v.submenu,
|
|
506
506
|
flipLeft: i.flipLeft,
|
|
507
507
|
autoFocus: B
|
|
508
508
|
};
|
|
509
|
-
B &&
|
|
510
|
-
a ||
|
|
511
|
-
})) :
|
|
509
|
+
B && b() !== null ? (d(null), queueMicrotask(() => {
|
|
510
|
+
a || d(p);
|
|
511
|
+
})) : d(p);
|
|
512
512
|
}, y = () => {
|
|
513
|
-
const f =
|
|
514
|
-
|
|
513
|
+
const f = h();
|
|
514
|
+
d(null), _(-1), f >= 0 && M(f);
|
|
515
515
|
}, L = () => {
|
|
516
516
|
};
|
|
517
517
|
Ue(() => {
|
|
@@ -526,11 +526,11 @@ function ft(e) {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
|
-
const f = e.hostWin,
|
|
530
|
-
f.addEventListener("resize",
|
|
531
|
-
f.cancelAnimationFrame(
|
|
529
|
+
const f = e.hostWin, v = f.requestAnimationFrame(() => L()), $ = () => L();
|
|
530
|
+
f.addEventListener("resize", $), f.addEventListener("scroll", $, !0), f.ResizeObserver, U(() => {
|
|
531
|
+
f.cancelAnimationFrame(v), f.removeEventListener("resize", $), f.removeEventListener("scroll", $, !0);
|
|
532
532
|
});
|
|
533
|
-
}),
|
|
533
|
+
}), U(() => {
|
|
534
534
|
P && clearTimeout(P);
|
|
535
535
|
}), oe(() => {
|
|
536
536
|
e.items.length, m(c()), queueMicrotask(() => {
|
|
@@ -540,18 +540,18 @@ function ft(e) {
|
|
|
540
540
|
P && (clearTimeout(P), P = void 0);
|
|
541
541
|
}, de = () => {
|
|
542
542
|
V(), P = setTimeout(() => {
|
|
543
|
-
|
|
543
|
+
d(null), _(-1);
|
|
544
544
|
}, 200);
|
|
545
|
-
}, te = (f,
|
|
546
|
-
if (V(),
|
|
545
|
+
}, te = (f, v, $) => {
|
|
546
|
+
if (V(), v.disabled || !v.submenu || v.submenu.length === 0) {
|
|
547
547
|
de();
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
550
|
-
|
|
550
|
+
X(f.currentTarget, v, $, !1);
|
|
551
551
|
}, ie = (f) => {
|
|
552
552
|
if (!f) return;
|
|
553
|
-
const
|
|
554
|
-
return
|
|
553
|
+
const v = e.shortcutResolver;
|
|
554
|
+
return v ? v(f) : void 0;
|
|
555
555
|
}, ae = Re(() => !0, "context-menu-panel", {
|
|
556
556
|
type: "menu",
|
|
557
557
|
element: () => r,
|
|
@@ -559,11 +559,11 @@ function ft(e) {
|
|
|
559
559
|
});
|
|
560
560
|
return Ue(() => {
|
|
561
561
|
if (e.depth !== 0) return;
|
|
562
|
-
const f = e.hostWin,
|
|
563
|
-
!he(
|
|
562
|
+
const f = e.hostWin, v = ($) => {
|
|
563
|
+
!he($, "Escape") || !ae.isTopmost() || ($.stopPropagation(), $.stopImmediatePropagation(), e.onRequestClose());
|
|
564
564
|
};
|
|
565
|
-
f.addEventListener("keydown",
|
|
566
|
-
}), g(zn, o("class", t(ne.menu, !0), !1), Z("left:",
|
|
565
|
+
f.addEventListener("keydown", v, !0), U(() => f.removeEventListener("keydown", v, !0));
|
|
566
|
+
}), g(zn, o("class", t(ne.menu, !0), !1), Z("left:", u().left !== void 0 ? `${t(u().left, !0)}px` : t(void 0, !0)) + Z(";top:", u().top !== void 0 ? `${t(u().top, !0)}px` : t(void 0, !0)) + Z(";right:", u().right !== void 0 ? `${t(u().right, !0)}px` : t(void 0, !0)) + Z(";bottom:", u().bottom !== void 0 ? `${t(u().bottom, !0)}px` : t(void 0, !0)) + Z(";max-height:", u().maxHeight !== void 0 ? `${t(u().maxHeight, !0)}px` : t(void 0, !0)) + Z(";max-width:", u().maxWidth !== void 0 ? `${t(Math.min(360, u().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, {
|
|
567
567
|
get viewportClass() {
|
|
568
568
|
return ne.itemsViewport;
|
|
569
569
|
},
|
|
@@ -573,15 +573,15 @@ function ft(e) {
|
|
|
573
573
|
get each() {
|
|
574
574
|
return e.items;
|
|
575
575
|
},
|
|
576
|
-
children: (f,
|
|
576
|
+
children: (f, v) => {
|
|
577
577
|
if (!Oe(f))
|
|
578
578
|
return g(Wn, o("class", t(ne.separator, !0), !1));
|
|
579
|
-
const
|
|
579
|
+
const $ = () => !!(f.submenu && f.submenu.length > 0), B = () => {
|
|
580
580
|
const i = f.checked;
|
|
581
581
|
return typeof i == "function" ? i() : !!i;
|
|
582
582
|
}, F = () => {
|
|
583
583
|
var i;
|
|
584
|
-
return
|
|
584
|
+
return $() && ((i = b()) == null ? void 0 : i.items) === f.submenu;
|
|
585
585
|
}, s = () => typeof f.label == "function" ? f.label() : f.label;
|
|
586
586
|
return n(ye, {
|
|
587
587
|
type: "button",
|
|
@@ -604,24 +604,24 @@ function ft(e) {
|
|
|
604
604
|
return ee(() => !!f.checkedRole)() ? B() : void 0;
|
|
605
605
|
},
|
|
606
606
|
get "aria-haspopup"() {
|
|
607
|
-
return
|
|
607
|
+
return $() ? "menu" : void 0;
|
|
608
608
|
},
|
|
609
609
|
get "aria-expanded"() {
|
|
610
|
-
return ee(() =>
|
|
610
|
+
return ee(() => !!$())() ? F() : void 0;
|
|
611
611
|
},
|
|
612
612
|
get "aria-describedby"() {
|
|
613
|
-
return ee(() => !!f.hint)() ? k(
|
|
613
|
+
return ee(() => !!f.hint)() ? k(v()) : void 0;
|
|
614
614
|
},
|
|
615
|
-
onFocus: () =>
|
|
615
|
+
onFocus: () => C(v()),
|
|
616
616
|
onMouseEnter: (i) => {
|
|
617
|
-
|
|
617
|
+
C(v()), te(i, f, v());
|
|
618
618
|
},
|
|
619
619
|
onClick: () => {
|
|
620
620
|
var i;
|
|
621
621
|
if (!f.disabled) {
|
|
622
|
-
if (
|
|
623
|
-
const p = S[
|
|
624
|
-
p &&
|
|
622
|
+
if ($()) {
|
|
623
|
+
const p = S[v()];
|
|
624
|
+
p && X(p, f, v(), !0);
|
|
625
625
|
return;
|
|
626
626
|
}
|
|
627
627
|
(i = f.onSelect ?? f.onClick) == null || i(), f.keepOpenOnSelect || queueMicrotask(() => e.onRequestClose());
|
|
@@ -656,7 +656,7 @@ function ft(e) {
|
|
|
656
656
|
children: (i) => g(Vn, t(i()))
|
|
657
657
|
})), t(n(w, {
|
|
658
658
|
get when() {
|
|
659
|
-
return
|
|
659
|
+
return $();
|
|
660
660
|
},
|
|
661
661
|
get children() {
|
|
662
662
|
return n(Wt, {
|
|
@@ -671,7 +671,7 @@ function ft(e) {
|
|
|
671
671
|
return f.hint;
|
|
672
672
|
},
|
|
673
673
|
get children() {
|
|
674
|
-
return g(Hn, o("id", t(k(
|
|
674
|
+
return g(Hn, o("id", t(k(v()), !0), !1) + o("class", t(ne.visuallyHidden, !0), !1), t(f.hint));
|
|
675
675
|
}
|
|
676
676
|
})];
|
|
677
677
|
}
|
|
@@ -681,10 +681,10 @@ function ft(e) {
|
|
|
681
681
|
}
|
|
682
682
|
})), t(n(w, {
|
|
683
683
|
get when() {
|
|
684
|
-
return
|
|
684
|
+
return b();
|
|
685
685
|
},
|
|
686
686
|
children: (f) => {
|
|
687
|
-
const
|
|
687
|
+
const v = f().flipLeft ? {
|
|
688
688
|
right: e.hostWin.innerWidth - f().x
|
|
689
689
|
} : {
|
|
690
690
|
left: f().x
|
|
@@ -694,7 +694,7 @@ function ft(e) {
|
|
|
694
694
|
return e.hostWin.document.body;
|
|
695
695
|
},
|
|
696
696
|
get children() {
|
|
697
|
-
return n(ft, st(
|
|
697
|
+
return n(ft, st(v, {
|
|
698
698
|
get top() {
|
|
699
699
|
return f().y;
|
|
700
700
|
},
|
|
@@ -716,12 +716,12 @@ function ft(e) {
|
|
|
716
716
|
},
|
|
717
717
|
onRequestCloseSubmenu: y,
|
|
718
718
|
onMouseEnterPanel: () => {
|
|
719
|
-
var
|
|
720
|
-
V(), (
|
|
719
|
+
var $;
|
|
720
|
+
V(), ($ = e.onMouseEnterPanel) == null || $.call(e);
|
|
721
721
|
},
|
|
722
722
|
onMouseLeavePanel: () => {
|
|
723
|
-
var
|
|
724
|
-
de(), (
|
|
723
|
+
var $;
|
|
724
|
+
de(), ($ = e.onMouseLeavePanel) == null || $.call(e);
|
|
725
725
|
},
|
|
726
726
|
get shortcutResolver() {
|
|
727
727
|
return e.shortcutResolver;
|
|
@@ -737,79 +737,79 @@ function jn(e) {
|
|
|
737
737
|
}
|
|
738
738
|
function Kn(e = {}) {
|
|
739
739
|
const r = Et(), a = () => {
|
|
740
|
-
const
|
|
741
|
-
if (
|
|
742
|
-
if (
|
|
743
|
-
const
|
|
744
|
-
if (
|
|
740
|
+
const d = r.state();
|
|
741
|
+
if (d != null && d.ownerWindow) return d.ownerWindow;
|
|
742
|
+
if (d != null && d.triggerEl) {
|
|
743
|
+
const h = Te(d.triggerEl);
|
|
744
|
+
if (h) return h;
|
|
745
745
|
}
|
|
746
746
|
return e.ownerWindow ? e.ownerWindow : Ae().window;
|
|
747
747
|
}, c = () => {
|
|
748
|
-
var
|
|
749
|
-
return e.shortcutResolver ?? ((
|
|
750
|
-
},
|
|
748
|
+
var d;
|
|
749
|
+
return e.shortcutResolver ?? ((d = r.state()) == null ? void 0 : d.shortcutResolver) ?? r.shortcutResolver;
|
|
750
|
+
}, u = (d) => {
|
|
751
751
|
var I;
|
|
752
|
-
const
|
|
753
|
-
if (!
|
|
752
|
+
const h = d.target;
|
|
753
|
+
if (!h || h.closest("[data-desktop-menu-depth]")) return;
|
|
754
754
|
const _ = (I = r.state()) == null ? void 0 : I.triggerEl;
|
|
755
|
-
_ && (_ ===
|
|
755
|
+
_ && (_ === h || _.contains(h)) || r.close();
|
|
756
756
|
};
|
|
757
757
|
let m = null;
|
|
758
|
-
$t(He(r.state, (
|
|
759
|
-
if (
|
|
758
|
+
$t(He(r.state, (d, h) => {
|
|
759
|
+
if (d === null || h != null)
|
|
760
760
|
return;
|
|
761
761
|
const _ = a().document.activeElement;
|
|
762
762
|
m = jn(_) ? _ : null;
|
|
763
763
|
}));
|
|
764
|
-
const
|
|
765
|
-
const
|
|
766
|
-
if (m = null,
|
|
767
|
-
const _ =
|
|
768
|
-
(_ === null || _ ===
|
|
764
|
+
const b = (d) => {
|
|
765
|
+
const h = m;
|
|
766
|
+
if (m = null, h === null || !h.isConnected) return;
|
|
767
|
+
const _ = d.activeElement;
|
|
768
|
+
(_ === null || _ === d.body || _.closest("[data-desktop-menu-depth]") !== null) && h.focus();
|
|
769
769
|
};
|
|
770
770
|
return oe(() => {
|
|
771
771
|
if (!r.state()) return;
|
|
772
|
-
const
|
|
772
|
+
const d = a(), h = () => {
|
|
773
773
|
r.close();
|
|
774
774
|
}, _ = () => {
|
|
775
775
|
r.close();
|
|
776
776
|
};
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
d.addEventListener("mousedown", u), d.addEventListener("blur", h), d.addEventListener("dragstart", _, !0), U(() => {
|
|
778
|
+
d.removeEventListener("mousedown", u), d.removeEventListener("blur", h), d.removeEventListener("dragstart", _, !0), r.state() === null && b(d.document);
|
|
779
779
|
});
|
|
780
780
|
}), [g(qn), n(w, {
|
|
781
781
|
get when() {
|
|
782
782
|
return r.state();
|
|
783
783
|
},
|
|
784
|
-
children: (
|
|
784
|
+
children: (d) => n(Me, {
|
|
785
785
|
get mount() {
|
|
786
786
|
return a().document.body;
|
|
787
787
|
},
|
|
788
788
|
get children() {
|
|
789
789
|
return n(ft, {
|
|
790
790
|
get left() {
|
|
791
|
-
return
|
|
791
|
+
return d().left;
|
|
792
792
|
},
|
|
793
793
|
get top() {
|
|
794
|
-
return
|
|
794
|
+
return d().top;
|
|
795
795
|
},
|
|
796
796
|
get right() {
|
|
797
|
-
return
|
|
797
|
+
return d().right;
|
|
798
798
|
},
|
|
799
799
|
get bottom() {
|
|
800
|
-
return
|
|
800
|
+
return d().bottom;
|
|
801
801
|
},
|
|
802
802
|
get anchor() {
|
|
803
|
-
return
|
|
803
|
+
return d().anchor;
|
|
804
804
|
},
|
|
805
805
|
get anchorAlignment() {
|
|
806
|
-
return
|
|
806
|
+
return d().anchorAlignment;
|
|
807
807
|
},
|
|
808
808
|
get anchorPosition() {
|
|
809
|
-
return
|
|
809
|
+
return d().anchorPosition;
|
|
810
810
|
},
|
|
811
811
|
get items() {
|
|
812
|
-
return
|
|
812
|
+
return d().items;
|
|
813
813
|
},
|
|
814
814
|
depth: 0,
|
|
815
815
|
get hostWin() {
|
|
@@ -833,18 +833,18 @@ function Un(e) {
|
|
|
833
833
|
const [r, a] = D(null);
|
|
834
834
|
return {
|
|
835
835
|
state: r,
|
|
836
|
-
open: (m,
|
|
837
|
-
const { el: _, toggle: I } = Yn(
|
|
838
|
-
if (I &&
|
|
836
|
+
open: (m, b, d, h) => {
|
|
837
|
+
const { el: _, toggle: I } = Yn(h), C = r();
|
|
838
|
+
if (I && C && _ && C.triggerEl === _) {
|
|
839
839
|
a(null);
|
|
840
840
|
return;
|
|
841
841
|
}
|
|
842
|
-
const N =
|
|
842
|
+
const N = h ? Te(h) : null;
|
|
843
843
|
a({
|
|
844
844
|
left: m,
|
|
845
|
-
top:
|
|
846
|
-
anchor: { left: m, top:
|
|
847
|
-
items:
|
|
845
|
+
top: b,
|
|
846
|
+
anchor: { left: m, top: b, width: 0, height: 0 },
|
|
847
|
+
items: d,
|
|
848
848
|
// Pin the menu to the window the trigger lives in — aux-safe for shared
|
|
849
849
|
// editor groups whose DOM is adopted into an aux window.
|
|
850
850
|
...N ? { ownerWindow: N } : {},
|
|
@@ -852,16 +852,16 @@ function Un(e) {
|
|
|
852
852
|
...e != null && e.shortcutResolver ? { shortcutResolver: e.shortcutResolver } : {}
|
|
853
853
|
});
|
|
854
854
|
},
|
|
855
|
-
openWithPlacement: (m,
|
|
856
|
-
const
|
|
857
|
-
if (
|
|
855
|
+
openWithPlacement: (m, b) => {
|
|
856
|
+
const d = r();
|
|
857
|
+
if (d && m.triggerEl && d.triggerEl === m.triggerEl) {
|
|
858
858
|
a(null);
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
861
|
a({
|
|
862
862
|
...e != null && e.shortcutResolver ? { shortcutResolver: e.shortcutResolver } : {},
|
|
863
863
|
...m,
|
|
864
|
-
items:
|
|
864
|
+
items: b
|
|
865
865
|
});
|
|
866
866
|
},
|
|
867
867
|
close: () => a(null),
|
|
@@ -899,13 +899,13 @@ function gt(e) {
|
|
|
899
899
|
} : {}
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function ji(e, r) {
|
|
903
903
|
e.preventDefault(), e.stopPropagation(), Ke.open(e.clientX, e.clientY, r.map(gt), e);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Ki() {
|
|
906
906
|
Ke.close();
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function Yi() {
|
|
909
909
|
return n(Pt.Provider, {
|
|
910
910
|
value: Ke,
|
|
911
911
|
get children() {
|
|
@@ -970,7 +970,7 @@ function wr(e) {
|
|
|
970
970
|
return e.onClose !== void 0;
|
|
971
971
|
},
|
|
972
972
|
get children() {
|
|
973
|
-
return n(
|
|
973
|
+
return n(G, {
|
|
974
974
|
variant: "ghost",
|
|
975
975
|
size: "xs",
|
|
976
976
|
iconOnly: !0,
|
|
@@ -978,7 +978,7 @@ function wr(e) {
|
|
|
978
978
|
return n(je, {});
|
|
979
979
|
},
|
|
980
980
|
get "aria-label"() {
|
|
981
|
-
return e.closeLabel ??
|
|
981
|
+
return e.closeLabel ?? l("Close");
|
|
982
982
|
},
|
|
983
983
|
onClick: () => {
|
|
984
984
|
var r;
|
|
@@ -1003,7 +1003,7 @@ function kr(e) {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
1005
|
function pr(e) {
|
|
1006
|
-
const r =
|
|
1006
|
+
const r = J();
|
|
1007
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, {
|
|
1008
1008
|
as: "h4",
|
|
1009
1009
|
id: r,
|
|
@@ -1023,7 +1023,7 @@ function pr(e) {
|
|
|
1023
1023
|
})), t(e.children));
|
|
1024
1024
|
}
|
|
1025
1025
|
function yr(e) {
|
|
1026
|
-
const r =
|
|
1026
|
+
const r = J(), a = J();
|
|
1027
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, {
|
|
1028
1028
|
get when() {
|
|
1029
1029
|
return e.description !== void 0;
|
|
@@ -1056,7 +1056,7 @@ function $r(e) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1059
|
+
const Ui = {
|
|
1060
1060
|
Root: _r,
|
|
1061
1061
|
Header: wr,
|
|
1062
1062
|
Body: kr,
|
|
@@ -1064,7 +1064,7 @@ const Yi = {
|
|
|
1064
1064
|
Field: yr,
|
|
1065
1065
|
Separator: Cr,
|
|
1066
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 = "
|
|
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_contained_edUdc", Er = "vk_header_NeiDb", Pr = "vk_title_ku48d", Br = "vk_closeBtn_1vaaT", Or = "vk_body_XAjO6", zr = "vk_bodyContent_8qDK-", Wr = "vk_footer_vRDdY", K = {
|
|
1068
1068
|
backdrop: Sr,
|
|
1069
1069
|
drawer: Lr,
|
|
1070
1070
|
placementRight: Ir,
|
|
@@ -1073,108 +1073,116 @@ const Yi = {
|
|
|
1073
1073
|
sizeSm: Tr,
|
|
1074
1074
|
sizeMd: Dr,
|
|
1075
1075
|
sizeLg: Mr,
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1076
|
+
contained: Rr,
|
|
1077
|
+
header: Er,
|
|
1078
|
+
title: Pr,
|
|
1079
|
+
closeBtn: Br,
|
|
1080
|
+
body: Or,
|
|
1081
|
+
bodyContent: zr,
|
|
1082
|
+
footer: Wr
|
|
1082
1083
|
};
|
|
1083
|
-
var
|
|
1084
|
-
function
|
|
1085
|
-
const r =
|
|
1086
|
-
|
|
1084
|
+
var Nr = ['<div class="', '" aria-hidden="true"></div>'], Fr = ["<h3", ">", "</h3>"], Hr = ["<div", ">", "</div>"], Vr = ["<footer", ">", "</footer>"], qr = ['<div class="', '" role="dialog"', ' tabindex="-1"><header', ">", '<button type="button"', ">", "</button></header><div", ">", "</div>", "</div>"], jr = "<div></div>";
|
|
1085
|
+
function Qi(e) {
|
|
1086
|
+
const r = () => e.container !== void 0, a = Q((h) => {
|
|
1087
|
+
var _;
|
|
1088
|
+
return e.open ? h ?? ((_ = e.container) != null && _.isConnected ? e.container.ownerDocument : Ae().document) : null;
|
|
1089
|
+
}, null), c = Re(() => e.open, "drawer", {
|
|
1090
|
+
// Read on every check: a contained drawer takes part in the dismissal order like a
|
|
1091
|
+
// popover and occludes only its bounds; a window drawer blocks the whole window.
|
|
1092
|
+
get type() {
|
|
1093
|
+
return r() ? "popover" : "modal";
|
|
1094
|
+
},
|
|
1087
1095
|
element: () => null,
|
|
1088
|
-
document: () =>
|
|
1096
|
+
document: () => a() ?? void 0
|
|
1089
1097
|
});
|
|
1090
1098
|
Ie({
|
|
1091
1099
|
open: () => e.open,
|
|
1092
|
-
ownerDocument: () =>
|
|
1100
|
+
ownerDocument: () => a() ?? Ae().document
|
|
1093
1101
|
});
|
|
1094
|
-
const
|
|
1102
|
+
const u = () => e.placement ?? "right", m = () => e.size ?? "md", b = () => u() === "left" ? K.placementLeft : u() === "bottom" ? K.placementBottom : K.placementRight, d = () => m() === "sm" ? K.sizeSm : m() === "lg" ? K.sizeLg : K.sizeMd;
|
|
1095
1103
|
return oe(() => {
|
|
1096
|
-
var
|
|
1097
|
-
const
|
|
1098
|
-
if (!
|
|
1099
|
-
const
|
|
1100
|
-
!he(
|
|
1104
|
+
var I;
|
|
1105
|
+
const h = (I = a()) == null ? void 0 : I.defaultView;
|
|
1106
|
+
if (!h) return;
|
|
1107
|
+
const _ = (C) => {
|
|
1108
|
+
!he(C, "Escape") || !c.isTopmost() || (C.stopPropagation(), C.stopImmediatePropagation(), e.onClose());
|
|
1101
1109
|
};
|
|
1102
|
-
|
|
1110
|
+
h.addEventListener("keydown", _, !0), U(() => h.removeEventListener("keydown", _, !0));
|
|
1103
1111
|
}), n(w, {
|
|
1104
1112
|
get when() {
|
|
1105
|
-
return
|
|
1113
|
+
return a();
|
|
1106
1114
|
},
|
|
1107
|
-
children: (
|
|
1115
|
+
children: (h) => n(Me, {
|
|
1108
1116
|
get mount() {
|
|
1109
|
-
return
|
|
1117
|
+
return e.container ?? h().body;
|
|
1110
1118
|
},
|
|
1111
1119
|
get children() {
|
|
1112
|
-
return [g(
|
|
1120
|
+
return [g(Nr, `${t(K.backdrop, !0)} ${r() ? t(K.contained, !0) : ""}`), g(qr, `${t(K.drawer, !0)} ${t(b(), !0)} ${t(d(), !0)} ${r() ? t(K.contained, !0) : ""} ${t(e.class ?? "", !0)}`, o("aria-modal", r() ? t(void 0, !0) : "true", !1) + o("aria-label", t(e.ariaLabel ?? e.title ?? l("Drawer"), !0), !1), o("class", t(K.header, !0), !1), t(n(w, {
|
|
1113
1121
|
get when() {
|
|
1114
1122
|
return e.title;
|
|
1115
1123
|
},
|
|
1116
1124
|
get fallback() {
|
|
1117
|
-
return g(
|
|
1125
|
+
return g(jr);
|
|
1118
1126
|
},
|
|
1119
1127
|
get children() {
|
|
1120
|
-
return g(
|
|
1128
|
+
return g(Fr, o("class", t(K.title, !0), !1), t(e.title));
|
|
1121
1129
|
}
|
|
1122
|
-
})), o("class", t(
|
|
1130
|
+
})), o("class", t(K.closeBtn, !0), !1) + o("aria-label", t(l("Close drawer"), !0), !1) + o("title", t(l("Close"), !0), !1), t(n(je, {
|
|
1123
1131
|
"aria-hidden": "true"
|
|
1124
|
-
})), o("class", t(
|
|
1132
|
+
})), o("class", t(K.body, !0), !1), t(n(be, {
|
|
1125
1133
|
get children() {
|
|
1126
|
-
return g(
|
|
1134
|
+
return g(Hr, o("class", t(K.bodyContent, !0), !1), t(e.children));
|
|
1127
1135
|
}
|
|
1128
1136
|
})), t(n(w, {
|
|
1129
1137
|
get when() {
|
|
1130
1138
|
return e.footer;
|
|
1131
1139
|
},
|
|
1132
1140
|
get children() {
|
|
1133
|
-
return g(
|
|
1141
|
+
return g(Vr, o("class", t(K.footer, !0), !1), t(e.footer));
|
|
1134
1142
|
}
|
|
1135
1143
|
})))];
|
|
1136
1144
|
}
|
|
1137
1145
|
})
|
|
1138
1146
|
});
|
|
1139
1147
|
}
|
|
1140
|
-
const
|
|
1141
|
-
list:
|
|
1142
|
-
listViewport:
|
|
1143
|
-
section:
|
|
1144
|
-
sectionHeader:
|
|
1145
|
-
sectionLabel:
|
|
1146
|
-
sectionAside:
|
|
1147
|
-
item:
|
|
1148
|
-
itemSelected:
|
|
1149
|
-
itemActive:
|
|
1150
|
-
itemDanger:
|
|
1151
|
-
check:
|
|
1152
|
-
icon:
|
|
1153
|
-
text:
|
|
1154
|
-
labelLine:
|
|
1155
|
-
label:
|
|
1156
|
-
badge:
|
|
1157
|
-
description:
|
|
1158
|
-
meta:
|
|
1159
|
-
trailing:
|
|
1160
|
-
entry:
|
|
1161
|
-
entryMain:
|
|
1162
|
-
entryDisabled:
|
|
1163
|
-
separator:
|
|
1164
|
-
empty:
|
|
1165
|
-
search:
|
|
1166
|
-
disclosure:
|
|
1167
|
-
disclosureChevron:
|
|
1168
|
-
disclosureChevronOpen:
|
|
1169
|
-
disclosureBody:
|
|
1170
|
-
disclosureBodyIndented:
|
|
1171
|
-
visuallyHidden:
|
|
1148
|
+
const Kr = "vk_list_iYUkw", Yr = "vk_listViewport_JwNDT", Ur = "vk_section_zygSY", Qr = "vk_sectionHeader_m2b8a", Gr = "vk_sectionLabel_WuN5V", Jr = "vk_sectionAside_P5VF4", Xr = "vk_item_ZIjh8 vk_item_neWq-", Zr = "vk_itemSelected_HK9is vk_itemSelected_f4xDB", eo = "vk_itemActive_GPKO0 vk_itemActive_vyOXZ", to = "vk_itemDanger_hwpDy", no = "vk_check_mPaKX vk_check_dO3aK", ro = "vk_icon_QIgcd vk_itemIcon_bv6oS", oo = "vk_text_urFay", ao = "vk_labelLine_1jtiD", so = "vk_label_DTLHt vk_label_zTITb", io = "vk_badge_sFW5I", co = "vk_description_gm3kI", lo = "vk_meta_zRD2G vk_shortcut_S1oQc", uo = "vk_trailing_5nqrI", mo = "vk_entry_FJLiI", fo = "vk_entryMain_2COS4", go = "vk_entryDisabled_nigmQ vk_itemDisabled_OROlk", ho = "vk_separator_NRGSq vk_separator_zMw59", vo = "vk_empty_TWf-X vk_empty_oOHu3", bo = "vk_search_uj4-c", _o = "vk_disclosure_WxAg6", wo = "vk_disclosureChevron_aw7Fx vk_chevron_pb9D1", ko = "vk_disclosureChevronOpen_WImPp", po = "vk_disclosureBody_StI9b", yo = "vk_disclosureBodyIndented_t4GxF", Co = "vk_visuallyHidden_u-q6B", x = {
|
|
1149
|
+
list: Kr,
|
|
1150
|
+
listViewport: Yr,
|
|
1151
|
+
section: Ur,
|
|
1152
|
+
sectionHeader: Qr,
|
|
1153
|
+
sectionLabel: Gr,
|
|
1154
|
+
sectionAside: Jr,
|
|
1155
|
+
item: Xr,
|
|
1156
|
+
itemSelected: Zr,
|
|
1157
|
+
itemActive: eo,
|
|
1158
|
+
itemDanger: to,
|
|
1159
|
+
check: no,
|
|
1160
|
+
icon: ro,
|
|
1161
|
+
text: oo,
|
|
1162
|
+
labelLine: ao,
|
|
1163
|
+
label: so,
|
|
1164
|
+
badge: io,
|
|
1165
|
+
description: co,
|
|
1166
|
+
meta: lo,
|
|
1167
|
+
trailing: uo,
|
|
1168
|
+
entry: mo,
|
|
1169
|
+
entryMain: fo,
|
|
1170
|
+
entryDisabled: go,
|
|
1171
|
+
separator: ho,
|
|
1172
|
+
empty: vo,
|
|
1173
|
+
search: bo,
|
|
1174
|
+
disclosure: _o,
|
|
1175
|
+
disclosureChevron: wo,
|
|
1176
|
+
disclosureChevronOpen: ko,
|
|
1177
|
+
disclosureBody: po,
|
|
1178
|
+
disclosureBodyIndented: yo,
|
|
1179
|
+
visuallyHidden: Co
|
|
1172
1180
|
};
|
|
1173
|
-
var ve = ["<span", ">", "</span>"],
|
|
1181
|
+
var ve = ["<span", ">", "</span>"], $o = ['<div role="group"', "><div", "><span", ">", "</span>", "</div>", "</div>"], Fe = ["<span", ' aria-hidden="true">', "</span>"], So = ["<span", "><span", "><span", ">", "</span>", "</span>", "</span>"], Lo = ["<div", ">", "<span", ">", "</span></div>"], Io = ['<div role="separator"', "></div>"], vt = ["<div", ">", "</div>"], xo = ["<span", "><span", "><span", ">", "</span></span>", "</span>"], Ao = ["<div", ' role="group"', ">", "</div>"], To = ["<div", ">", "", "</div>"];
|
|
1174
1182
|
function le(...e) {
|
|
1175
1183
|
return e.filter((r) => !!r).join(" ");
|
|
1176
1184
|
}
|
|
1177
|
-
function
|
|
1185
|
+
function Do(e) {
|
|
1178
1186
|
return n(be, {
|
|
1179
1187
|
get rootClass() {
|
|
1180
1188
|
return le(x.list, e.class);
|
|
@@ -1193,9 +1201,9 @@ function To(e) {
|
|
|
1193
1201
|
}
|
|
1194
1202
|
});
|
|
1195
1203
|
}
|
|
1196
|
-
function
|
|
1197
|
-
const r =
|
|
1198
|
-
return g(
|
|
1204
|
+
function Mo(e) {
|
|
1205
|
+
const r = J();
|
|
1206
|
+
return g($o, 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, {
|
|
1199
1207
|
get when() {
|
|
1200
1208
|
return e.aside !== void 0;
|
|
1201
1209
|
},
|
|
@@ -1204,10 +1212,10 @@ function Do(e) {
|
|
|
1204
1212
|
}
|
|
1205
1213
|
})), t(e.children));
|
|
1206
1214
|
}
|
|
1207
|
-
function
|
|
1208
|
-
const r =
|
|
1215
|
+
function Ro(e) {
|
|
1216
|
+
const r = J(), a = () => e.role ?? (e.checked !== void 0 ? "menuitemcheckbox" : "menuitem"), c = () => a() === "menuitemcheckbox" || a() === "menuitemradio", u = () => e.checked !== void 0 || e.reserveCheck === !0, m = () => e.icon !== void 0 || e.reserveIcon === !0, b = () => e.trailing !== void 0, d = () => b() && a() === "menuitem", h = () => [n(w, {
|
|
1209
1217
|
get when() {
|
|
1210
|
-
return
|
|
1218
|
+
return u();
|
|
1211
1219
|
},
|
|
1212
1220
|
get children() {
|
|
1213
1221
|
return g(Fe, o("class", t(x.check, !0), !1), t(n(w, {
|
|
@@ -1226,7 +1234,7 @@ function Mo(e) {
|
|
|
1226
1234
|
get children() {
|
|
1227
1235
|
return g(Fe, o("class", t(x.icon, !0), !1), t(e.icon));
|
|
1228
1236
|
}
|
|
1229
|
-
}), g(
|
|
1237
|
+
}), g(So, 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, {
|
|
1230
1238
|
get when() {
|
|
1231
1239
|
return e.badge !== void 0;
|
|
1232
1240
|
},
|
|
@@ -1249,7 +1257,7 @@ function Mo(e) {
|
|
|
1249
1257
|
}
|
|
1250
1258
|
}), n(w, {
|
|
1251
1259
|
get when() {
|
|
1252
|
-
return
|
|
1260
|
+
return d();
|
|
1253
1261
|
},
|
|
1254
1262
|
get children() {
|
|
1255
1263
|
return g(ve, o("class", t(x.trailing, !0), !1), t(e.trailing));
|
|
@@ -1261,9 +1269,9 @@ function Mo(e) {
|
|
|
1261
1269
|
get children() {
|
|
1262
1270
|
return g(ve, o("id", t(r, !0), !1) + o("class", t(x.visuallyHidden, !0), !1), t(e.hint));
|
|
1263
1271
|
}
|
|
1264
|
-
})], _ = () => le((e.selected || e.pressed) && x.itemSelected, e.active && x.itemActive, e.danger && x.itemDanger), I = (
|
|
1272
|
+
})], _ = () => le((e.selected || e.pressed) && x.itemSelected, e.active && x.itemActive, e.danger && x.itemDanger), I = (C) => n(ye, {
|
|
1265
1273
|
get as() {
|
|
1266
|
-
return
|
|
1274
|
+
return d() ? "div" : "button";
|
|
1267
1275
|
},
|
|
1268
1276
|
get id() {
|
|
1269
1277
|
return e.id;
|
|
@@ -1271,7 +1279,7 @@ function Mo(e) {
|
|
|
1271
1279
|
get role() {
|
|
1272
1280
|
return a();
|
|
1273
1281
|
},
|
|
1274
|
-
class:
|
|
1282
|
+
class: C,
|
|
1275
1283
|
get disabled() {
|
|
1276
1284
|
return e.disabled;
|
|
1277
1285
|
},
|
|
@@ -1299,38 +1307,38 @@ function Mo(e) {
|
|
|
1299
1307
|
return (k = e.onContextMenu) == null ? void 0 : k.call(e, N);
|
|
1300
1308
|
},
|
|
1301
1309
|
get children() {
|
|
1302
|
-
return
|
|
1310
|
+
return h();
|
|
1303
1311
|
}
|
|
1304
1312
|
});
|
|
1305
1313
|
return n(w, {
|
|
1306
1314
|
get when() {
|
|
1307
|
-
return ee(() => !!
|
|
1315
|
+
return ee(() => !!b())() && !d();
|
|
1308
1316
|
},
|
|
1309
1317
|
get fallback() {
|
|
1310
1318
|
return I(le(x.item, _(), e.class));
|
|
1311
1319
|
},
|
|
1312
1320
|
get children() {
|
|
1313
|
-
return g(
|
|
1321
|
+
return g(Lo, 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));
|
|
1314
1322
|
}
|
|
1315
1323
|
});
|
|
1316
1324
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return g(
|
|
1325
|
+
function Eo(e) {
|
|
1326
|
+
return g(Io, o("class", t(le(x.separator, e.class), !0), !1));
|
|
1319
1327
|
}
|
|
1320
|
-
function
|
|
1328
|
+
function Gi(e) {
|
|
1321
1329
|
return g(vt, o("class", t(le(x.empty, e.class), !0), !1), t(e.children));
|
|
1322
1330
|
}
|
|
1323
|
-
function
|
|
1331
|
+
function Ji(e) {
|
|
1324
1332
|
return g(vt, o("class", t(le(x.search, e.class), !0), !1), t(e.children));
|
|
1325
1333
|
}
|
|
1326
|
-
function
|
|
1327
|
-
const r =
|
|
1334
|
+
function Xi(e) {
|
|
1335
|
+
const r = J(), a = J(), [c, u] = D(e.defaultOpen ?? !1), m = () => e.open !== void 0 ? e.open : c(), b = () => e.icon !== void 0 || e.reserveIcon === !0, d = () => {
|
|
1328
1336
|
var _;
|
|
1329
1337
|
if (e.disabled) return;
|
|
1330
|
-
const
|
|
1331
|
-
e.open === void 0 &&
|
|
1338
|
+
const h = !m();
|
|
1339
|
+
e.open === void 0 && u(h), (_ = e.onToggle) == null || _.call(e, h);
|
|
1332
1340
|
};
|
|
1333
|
-
return g(
|
|
1341
|
+
return g(To, o("class", t(le(x.disclosure, e.class), !0), !1), t(n(ye, {
|
|
1334
1342
|
id: r,
|
|
1335
1343
|
get class() {
|
|
1336
1344
|
return x.item;
|
|
@@ -1344,16 +1352,16 @@ function Ji(e) {
|
|
|
1344
1352
|
get "aria-controls"() {
|
|
1345
1353
|
return m() ? a : void 0;
|
|
1346
1354
|
},
|
|
1347
|
-
onClick:
|
|
1355
|
+
onClick: d,
|
|
1348
1356
|
get children() {
|
|
1349
1357
|
return [n(w, {
|
|
1350
1358
|
get when() {
|
|
1351
|
-
return
|
|
1359
|
+
return b();
|
|
1352
1360
|
},
|
|
1353
1361
|
get children() {
|
|
1354
1362
|
return g(Fe, o("class", t(x.icon, !0), !1), t(e.icon));
|
|
1355
1363
|
}
|
|
1356
|
-
}), g(
|
|
1364
|
+
}), g(xo, 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, {
|
|
1357
1365
|
get when() {
|
|
1358
1366
|
return e.description !== void 0;
|
|
1359
1367
|
},
|
|
@@ -1372,24 +1380,24 @@ function Ji(e) {
|
|
|
1372
1380
|
return m();
|
|
1373
1381
|
},
|
|
1374
1382
|
get children() {
|
|
1375
|
-
return g(
|
|
1383
|
+
return g(Ao, o("id", t(a, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("class", t(le(x.disclosureBody, b() && x.disclosureBodyIndented, e.bodyClass), !0), !1), t(e.children));
|
|
1376
1384
|
}
|
|
1377
1385
|
})));
|
|
1378
1386
|
}
|
|
1379
|
-
const
|
|
1380
|
-
menuList:
|
|
1387
|
+
const Po = "vk_menuList_Rdcyj", Bo = {
|
|
1388
|
+
menuList: Po
|
|
1381
1389
|
};
|
|
1382
|
-
var
|
|
1390
|
+
var Oo = ["<div", ' style="', '">', "", "</div>"];
|
|
1383
1391
|
function bt(e) {
|
|
1384
1392
|
return "type" in e && e.type === "separator";
|
|
1385
1393
|
}
|
|
1386
1394
|
function _t(e) {
|
|
1387
1395
|
return "type" in e && e.type === "section";
|
|
1388
1396
|
}
|
|
1389
|
-
function
|
|
1397
|
+
function zo(e) {
|
|
1390
1398
|
const r = [];
|
|
1391
1399
|
let a, c = [];
|
|
1392
|
-
const
|
|
1400
|
+
const u = () => {
|
|
1393
1401
|
c.length > 0 && r.push({
|
|
1394
1402
|
kind: "rows",
|
|
1395
1403
|
label: a,
|
|
@@ -1397,24 +1405,24 @@ function Oo(e) {
|
|
|
1397
1405
|
}), a = void 0, c = [];
|
|
1398
1406
|
};
|
|
1399
1407
|
for (const m of e)
|
|
1400
|
-
bt(m) ? (
|
|
1408
|
+
bt(m) ? (u(), r.push({
|
|
1401
1409
|
kind: "separator"
|
|
1402
|
-
})) : _t(m) ? (
|
|
1403
|
-
return
|
|
1410
|
+
})) : _t(m) ? (u(), a = m.label) : c.push(m);
|
|
1411
|
+
return u(), r;
|
|
1404
1412
|
}
|
|
1405
|
-
function
|
|
1413
|
+
function Zi(e) {
|
|
1406
1414
|
const [r, a] = D(!1);
|
|
1407
1415
|
let c = null;
|
|
1408
|
-
const
|
|
1416
|
+
const u = () => e.open !== void 0 ? e.open : r(), m = (k) => {
|
|
1409
1417
|
e.onOpenChange && e.onOpenChange(k), e.open === void 0 && a(k);
|
|
1410
|
-
},
|
|
1411
|
-
e.disabled || m(!
|
|
1412
|
-
},
|
|
1418
|
+
}, b = () => {
|
|
1419
|
+
e.disabled || m(!u());
|
|
1420
|
+
}, d = (k) => {
|
|
1413
1421
|
var S;
|
|
1414
1422
|
k.disabled || (m(!1), (S = k.onSelect) == null || S.call(k));
|
|
1415
|
-
},
|
|
1423
|
+
}, h = Q(() => e.items.filter((k) => !bt(k) && !_t(k))), _ = Q(() => h().some((k) => !!k.icon)), I = Q(() => h().some((k) => k.checked !== void 0)), C = Q(() => zo(e.items)), N = (k) => n(me, {
|
|
1416
1424
|
each: k,
|
|
1417
|
-
children: (S) => n(
|
|
1425
|
+
children: (S) => n(Ro, {
|
|
1418
1426
|
get id() {
|
|
1419
1427
|
return S.id;
|
|
1420
1428
|
},
|
|
@@ -1448,15 +1456,15 @@ function Xi(e) {
|
|
|
1448
1456
|
get disabled() {
|
|
1449
1457
|
return S.disabled;
|
|
1450
1458
|
},
|
|
1451
|
-
onSelect: () =>
|
|
1459
|
+
onSelect: () => d(S)
|
|
1452
1460
|
})
|
|
1453
1461
|
});
|
|
1454
|
-
return g(
|
|
1462
|
+
return g(Oo, o("class", t(e.class, !0), !1), Z("display:", "inline-block"), t(n(w, {
|
|
1455
1463
|
get when() {
|
|
1456
1464
|
return e.trigger;
|
|
1457
1465
|
},
|
|
1458
1466
|
get fallback() {
|
|
1459
|
-
return n(
|
|
1467
|
+
return n(G, {
|
|
1460
1468
|
get variant() {
|
|
1461
1469
|
return e.variant ?? "secondary";
|
|
1462
1470
|
},
|
|
@@ -1466,13 +1474,13 @@ function Xi(e) {
|
|
|
1466
1474
|
get disabled() {
|
|
1467
1475
|
return e.disabled;
|
|
1468
1476
|
},
|
|
1469
|
-
onClick:
|
|
1477
|
+
onClick: b,
|
|
1470
1478
|
"aria-haspopup": "menu",
|
|
1471
1479
|
get "aria-expanded"() {
|
|
1472
|
-
return
|
|
1480
|
+
return u();
|
|
1473
1481
|
},
|
|
1474
1482
|
get "aria-label"() {
|
|
1475
|
-
return e.ariaLabel ?? e.label ??
|
|
1483
|
+
return e.ariaLabel ?? e.label ?? l("Actions");
|
|
1476
1484
|
},
|
|
1477
1485
|
get trailingIcon() {
|
|
1478
1486
|
return n(lt, {
|
|
@@ -1480,21 +1488,21 @@ function Xi(e) {
|
|
|
1480
1488
|
});
|
|
1481
1489
|
},
|
|
1482
1490
|
get children() {
|
|
1483
|
-
return e.label ??
|
|
1491
|
+
return e.label ?? l("Actions");
|
|
1484
1492
|
}
|
|
1485
1493
|
});
|
|
1486
1494
|
},
|
|
1487
1495
|
children: (k) => k()({
|
|
1488
|
-
open:
|
|
1489
|
-
toggle:
|
|
1496
|
+
open: u(),
|
|
1497
|
+
toggle: b,
|
|
1490
1498
|
ref: (S) => c = S,
|
|
1491
1499
|
ariaProps: {
|
|
1492
1500
|
"aria-haspopup": "menu",
|
|
1493
|
-
"aria-expanded":
|
|
1501
|
+
"aria-expanded": u()
|
|
1494
1502
|
}
|
|
1495
1503
|
})
|
|
1496
1504
|
})), t(n(zt, {
|
|
1497
|
-
open:
|
|
1505
|
+
open: u,
|
|
1498
1506
|
onClose: () => m(!1),
|
|
1499
1507
|
anchor: () => c,
|
|
1500
1508
|
get placement() {
|
|
@@ -1502,22 +1510,22 @@ function Xi(e) {
|
|
|
1502
1510
|
},
|
|
1503
1511
|
role: "menu",
|
|
1504
1512
|
get ariaLabel() {
|
|
1505
|
-
return e.ariaLabel ?? e.label ??
|
|
1513
|
+
return e.ariaLabel ?? e.label ?? l("Dropdown menu");
|
|
1506
1514
|
},
|
|
1507
1515
|
get class() {
|
|
1508
1516
|
return e.surfaceClass;
|
|
1509
1517
|
},
|
|
1510
1518
|
get children() {
|
|
1511
|
-
return n(
|
|
1519
|
+
return n(Do, {
|
|
1512
1520
|
get class() {
|
|
1513
|
-
return `${
|
|
1521
|
+
return `${Bo.menuList} ${e.menuClass ?? ""}`;
|
|
1514
1522
|
},
|
|
1515
1523
|
get children() {
|
|
1516
1524
|
return n(me, {
|
|
1517
1525
|
get each() {
|
|
1518
|
-
return
|
|
1526
|
+
return C();
|
|
1519
1527
|
},
|
|
1520
|
-
children: (k) => k.kind === "separator" ? n(
|
|
1528
|
+
children: (k) => k.kind === "separator" ? n(Eo, {}) : k.label !== void 0 ? n(Mo, {
|
|
1521
1529
|
get label() {
|
|
1522
1530
|
return k.label;
|
|
1523
1531
|
},
|
|
@@ -1531,21 +1539,21 @@ function Xi(e) {
|
|
|
1531
1539
|
}
|
|
1532
1540
|
})));
|
|
1533
1541
|
}
|
|
1534
|
-
const
|
|
1535
|
-
surface:
|
|
1536
|
-
item:
|
|
1537
|
-
check:
|
|
1538
|
-
shortcut:
|
|
1539
|
-
chevron:
|
|
1540
|
-
separator:
|
|
1541
|
-
itemActive:
|
|
1542
|
-
itemSelected:
|
|
1543
|
-
itemDisabled:
|
|
1544
|
-
label:
|
|
1545
|
-
itemIcon:
|
|
1546
|
-
viewport:
|
|
1547
|
-
empty:
|
|
1548
|
-
},
|
|
1542
|
+
const Wo = "vk_surface_3ZOnl", No = "vk_item_neWq-", Fo = "vk_check_dO3aK", Ho = "vk_shortcut_S1oQc", Vo = "vk_chevron_pb9D1", qo = "vk_separator_zMw59", jo = "vk_itemActive_vyOXZ", Ko = "vk_itemSelected_f4xDB", Yo = "vk_itemDisabled_OROlk", Uo = "vk_label_zTITb", Qo = "vk_itemIcon_bv6oS", Go = "vk_viewport_B94pk", Jo = "vk_empty_oOHu3", re = {
|
|
1543
|
+
surface: Wo,
|
|
1544
|
+
item: No,
|
|
1545
|
+
check: Fo,
|
|
1546
|
+
shortcut: Ho,
|
|
1547
|
+
chevron: Vo,
|
|
1548
|
+
separator: qo,
|
|
1549
|
+
itemActive: jo,
|
|
1550
|
+
itemSelected: Ko,
|
|
1551
|
+
itemDisabled: Yo,
|
|
1552
|
+
label: Uo,
|
|
1553
|
+
itemIcon: Qo,
|
|
1554
|
+
viewport: Go,
|
|
1555
|
+
empty: Jo
|
|
1556
|
+
}, ec = Object.freeze({
|
|
1549
1557
|
surface: re.surface,
|
|
1550
1558
|
viewport: re.viewport,
|
|
1551
1559
|
item: re.item,
|
|
@@ -1560,18 +1568,18 @@ const zo = "vk_surface_3ZOnl", Wo = "vk_item_neWq-", No = "vk_check_dO3aK", Fo =
|
|
|
1560
1568
|
separator: re.separator,
|
|
1561
1569
|
empty: re.empty
|
|
1562
1570
|
});
|
|
1563
|
-
var
|
|
1564
|
-
function
|
|
1571
|
+
var Xo = ['<span style="', '" aria-hidden="true"></span>'], Zo = ["<div", "><span>", "</span>", "</div>"], ea = ["<div", ' role="tooltip" class="', '" style="', '">', "</div>"], ta = ["<span>", "</span>"];
|
|
1572
|
+
function tc() {
|
|
1565
1573
|
let e, r;
|
|
1566
1574
|
const [a, c] = D({
|
|
1567
1575
|
top: -9999,
|
|
1568
1576
|
left: -9999
|
|
1569
|
-
}),
|
|
1570
|
-
const _ =
|
|
1577
|
+
}), u = Ne.activeTooltip, m = () => Te(e), b = () => {
|
|
1578
|
+
const _ = u(), I = m();
|
|
1571
1579
|
return _ !== null && I !== null && Te(_.target) === I;
|
|
1572
1580
|
};
|
|
1573
1581
|
oe(() => {
|
|
1574
|
-
if (!
|
|
1582
|
+
if (!u() || !b()) {
|
|
1575
1583
|
c({
|
|
1576
1584
|
top: -9999,
|
|
1577
1585
|
left: -9999
|
|
@@ -1582,22 +1590,22 @@ function ec() {
|
|
|
1582
1590
|
};
|
|
1583
1591
|
queueMicrotask(() => {
|
|
1584
1592
|
});
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1587
|
-
typeof
|
|
1593
|
+
const C = m();
|
|
1594
|
+
C && typeof C.addEventListener == "function" && (C.addEventListener("resize", I), U(() => {
|
|
1595
|
+
typeof C.removeEventListener == "function" && C.removeEventListener("resize", I);
|
|
1588
1596
|
}));
|
|
1589
1597
|
});
|
|
1590
|
-
const
|
|
1591
|
-
const _ =
|
|
1598
|
+
const d = () => {
|
|
1599
|
+
const _ = u();
|
|
1592
1600
|
return _ ? typeof _.content == "function" ? _.content() : _.content : null;
|
|
1593
|
-
},
|
|
1594
|
-
const _ =
|
|
1601
|
+
}, h = () => {
|
|
1602
|
+
const _ = u();
|
|
1595
1603
|
if (_)
|
|
1596
1604
|
return typeof _.shortcut == "function" ? _.shortcut() : _.shortcut;
|
|
1597
1605
|
};
|
|
1598
|
-
return [g(
|
|
1606
|
+
return [g(Xo, Z("display:", "none")), n(w, {
|
|
1599
1607
|
get when() {
|
|
1600
|
-
return ee(() => !!
|
|
1608
|
+
return ee(() => !!b())() ? m() : null;
|
|
1601
1609
|
},
|
|
1602
1610
|
children: (_) => n(Le, {
|
|
1603
1611
|
type: "tooltip",
|
|
@@ -1608,18 +1616,18 @@ function ec() {
|
|
|
1608
1616
|
idPrefix: "tooltip-host",
|
|
1609
1617
|
get children() {
|
|
1610
1618
|
var I;
|
|
1611
|
-
return g(
|
|
1619
|
+
return g(ea, o("id", t((I = u()) == 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, {
|
|
1612
1620
|
get when() {
|
|
1613
|
-
return
|
|
1621
|
+
return h();
|
|
1614
1622
|
},
|
|
1615
1623
|
get fallback() {
|
|
1616
|
-
return g(
|
|
1624
|
+
return g(ta, t(d()));
|
|
1617
1625
|
},
|
|
1618
1626
|
get children() {
|
|
1619
|
-
return g(
|
|
1627
|
+
return g(Zo, o("class", t(Ee.tooltipInner, !0), !1), t(d()), t(n(it, {
|
|
1620
1628
|
size: "xs",
|
|
1621
1629
|
get shortcut() {
|
|
1622
|
-
return
|
|
1630
|
+
return h();
|
|
1623
1631
|
}
|
|
1624
1632
|
})));
|
|
1625
1633
|
}
|
|
@@ -1628,155 +1636,155 @@ function ec() {
|
|
|
1628
1636
|
})
|
|
1629
1637
|
})];
|
|
1630
1638
|
}
|
|
1631
|
-
function
|
|
1632
|
-
const a =
|
|
1633
|
-
const
|
|
1634
|
-
return
|
|
1635
|
-
},
|
|
1636
|
-
const
|
|
1637
|
-
!
|
|
1639
|
+
function nc(e, r) {
|
|
1640
|
+
const a = J(), c = () => {
|
|
1641
|
+
const b = r();
|
|
1642
|
+
return b ? typeof b == "string" ? { content: b } : b : null;
|
|
1643
|
+
}, u = () => {
|
|
1644
|
+
const b = c();
|
|
1645
|
+
!b || !b.content || (e.hasAttribute("title") && (e.setAttribute("data-suppressed-title", e.getAttribute("title") ?? ""), e.removeAttribute("title")), Ne.showTooltip({
|
|
1638
1646
|
id: a,
|
|
1639
1647
|
target: e,
|
|
1640
|
-
content:
|
|
1641
|
-
shortcut:
|
|
1642
|
-
placement:
|
|
1643
|
-
offset:
|
|
1644
|
-
delayMs:
|
|
1648
|
+
content: b.content,
|
|
1649
|
+
shortcut: b.shortcut,
|
|
1650
|
+
placement: b.placement,
|
|
1651
|
+
offset: b.offset,
|
|
1652
|
+
delayMs: b.delayMs
|
|
1645
1653
|
}));
|
|
1646
1654
|
}, m = () => {
|
|
1647
1655
|
if (e.hasAttribute("data-suppressed-title")) {
|
|
1648
|
-
const
|
|
1649
|
-
|
|
1656
|
+
const b = e.getAttribute("data-suppressed-title");
|
|
1657
|
+
b && e.setAttribute("title", b), e.removeAttribute("data-suppressed-title");
|
|
1650
1658
|
}
|
|
1651
1659
|
Ne.hideTooltip(e);
|
|
1652
1660
|
};
|
|
1653
|
-
e.addEventListener("pointerenter",
|
|
1654
|
-
m(), e.removeEventListener("pointerenter",
|
|
1661
|
+
e.addEventListener("pointerenter", u), e.addEventListener("pointerleave", m), e.addEventListener("focusin", u), e.addEventListener("focusout", m), U(() => {
|
|
1662
|
+
m(), e.removeEventListener("pointerenter", u), e.removeEventListener("pointerleave", m), e.removeEventListener("focusin", u), e.removeEventListener("focusout", m);
|
|
1655
1663
|
});
|
|
1656
1664
|
}
|
|
1657
|
-
function
|
|
1665
|
+
function rc(e, r) {
|
|
1658
1666
|
return e === "Escape" ? "dismiss" : e === "Enter" && r.step === "name" && r.nameMatches ? "advance" : "none";
|
|
1659
1667
|
}
|
|
1660
|
-
const
|
|
1661
|
-
overlay:
|
|
1662
|
-
dialog:
|
|
1663
|
-
header:
|
|
1664
|
-
warningIcon:
|
|
1665
|
-
title:
|
|
1666
|
-
body:
|
|
1667
|
-
description:
|
|
1668
|
-
resourceLine:
|
|
1669
|
-
resourceName:
|
|
1670
|
-
field:
|
|
1671
|
-
fieldLabel:
|
|
1672
|
-
input:
|
|
1673
|
-
inputMatch:
|
|
1674
|
-
optionsList:
|
|
1675
|
-
optionRow:
|
|
1676
|
-
optionLabel:
|
|
1677
|
-
optionDescription:
|
|
1678
|
-
finalNote:
|
|
1679
|
-
consequenceNote:
|
|
1680
|
-
selectedOptions:
|
|
1681
|
-
selectedList:
|
|
1682
|
-
codeScroll:
|
|
1683
|
-
code:
|
|
1684
|
-
codePre:
|
|
1685
|
-
countdown:
|
|
1686
|
-
footer:
|
|
1687
|
-
footerSpacer:
|
|
1668
|
+
const na = "vk_overlay_Fd-y-", ra = "vk_dialog_Yf7zX", oa = "vk_header_CYXMR", aa = "vk_warningIcon_qizN5", sa = "vk_title_DPV4m vk_titleLg_Iswm3", ia = "vk_body_Zvd50", ca = "vk_description_n-sBy", la = "vk_resourceLine_BeZWP", ua = "vk_resourceName_JQ9EK", da = "vk_field_JETn-", ma = "vk_fieldLabel_u8YkC", fa = "vk_input_Smbpd", ga = "vk_inputMatch_k6go-", ha = "vk_optionsList_XwOCV", va = "vk_optionRow_OYLHB", ba = "vk_optionLabel_pJHcY", _a = "vk_optionDescription_Zi6is", wa = "vk_finalNote_PVV7h", ka = "vk_consequenceNote_oaOZl", pa = "vk_selectedOptions_7tn0k", ya = "vk_selectedList_LFTe1", Ca = "vk_codeScroll_7A6w3", $a = "vk_code_ozAuk", Sa = "vk_codePre_01c25", La = "vk_countdown_CJhCw", Ia = "vk_footer_v0cjd", xa = "vk_footerSpacer_jQepg", R = {
|
|
1669
|
+
overlay: na,
|
|
1670
|
+
dialog: ra,
|
|
1671
|
+
header: oa,
|
|
1672
|
+
warningIcon: aa,
|
|
1673
|
+
title: sa,
|
|
1674
|
+
body: ia,
|
|
1675
|
+
description: ca,
|
|
1676
|
+
resourceLine: la,
|
|
1677
|
+
resourceName: ua,
|
|
1678
|
+
field: da,
|
|
1679
|
+
fieldLabel: ma,
|
|
1680
|
+
input: fa,
|
|
1681
|
+
inputMatch: ga,
|
|
1682
|
+
optionsList: ha,
|
|
1683
|
+
optionRow: va,
|
|
1684
|
+
optionLabel: ba,
|
|
1685
|
+
optionDescription: _a,
|
|
1686
|
+
finalNote: wa,
|
|
1687
|
+
consequenceNote: ka,
|
|
1688
|
+
selectedOptions: pa,
|
|
1689
|
+
selectedList: ya,
|
|
1690
|
+
codeScroll: Ca,
|
|
1691
|
+
code: $a,
|
|
1692
|
+
codePre: Sa,
|
|
1693
|
+
countdown: La,
|
|
1694
|
+
footer: Ia,
|
|
1695
|
+
footerSpacer: xa
|
|
1688
1696
|
}, wt = {
|
|
1689
1697
|
delete: {
|
|
1690
1698
|
reversible: !1,
|
|
1691
|
-
lead: () =>
|
|
1692
|
-
note: () =>
|
|
1693
|
-
confirmLabel: () =>
|
|
1694
|
-
finalLabel: () =>
|
|
1699
|
+
lead: () => l("You are about to permanently delete"),
|
|
1700
|
+
note: () => l("This action cannot be undone."),
|
|
1701
|
+
confirmLabel: () => l("Delete"),
|
|
1702
|
+
finalLabel: () => l("Yes, delete now")
|
|
1695
1703
|
},
|
|
1696
1704
|
overwrite: {
|
|
1697
1705
|
reversible: !1,
|
|
1698
|
-
lead: () =>
|
|
1699
|
-
note: () =>
|
|
1700
|
-
confirmLabel: () =>
|
|
1701
|
-
finalLabel: () =>
|
|
1706
|
+
lead: () => l("You are about to delete or replace the existing data of"),
|
|
1707
|
+
note: () => l("This action cannot be undone."),
|
|
1708
|
+
confirmLabel: () => l("Continue"),
|
|
1709
|
+
finalLabel: () => l("Yes, overwrite now")
|
|
1702
1710
|
},
|
|
1703
1711
|
convert: {
|
|
1704
1712
|
reversible: !1,
|
|
1705
|
-
lead: () =>
|
|
1706
|
-
note: () =>
|
|
1713
|
+
lead: () => l("You are about to convert the stored values of"),
|
|
1714
|
+
note: () => l(
|
|
1707
1715
|
"Values that do not fit the new type are rounded or cut; they do not come back."
|
|
1708
1716
|
),
|
|
1709
|
-
confirmLabel: () =>
|
|
1710
|
-
finalLabel: () =>
|
|
1717
|
+
confirmLabel: () => l("Continue"),
|
|
1718
|
+
finalLabel: () => l("Yes, convert now")
|
|
1711
1719
|
},
|
|
1712
1720
|
// The note does not state the fate of an open transaction: that depends on the verb's option (cut
|
|
1713
1721
|
// after the transaction, or immediately) and is written in the description; what is true in every
|
|
1714
1722
|
// case is that an ended session does not come back.
|
|
1715
1723
|
"end-session": {
|
|
1716
1724
|
reversible: !1,
|
|
1717
|
-
lead: () =>
|
|
1718
|
-
note: () =>
|
|
1719
|
-
confirmLabel: () =>
|
|
1720
|
-
finalLabel: () =>
|
|
1725
|
+
lead: () => l("You are about to terminate"),
|
|
1726
|
+
note: () => l("An ended session cannot be resumed."),
|
|
1727
|
+
confirmLabel: () => l("Continue"),
|
|
1728
|
+
finalLabel: () => l("Yes, terminate now")
|
|
1721
1729
|
},
|
|
1722
1730
|
// The data stays but the sessions inside end and their open transactions are rolled back: irreversible.
|
|
1723
1731
|
close: {
|
|
1724
1732
|
reversible: !1,
|
|
1725
|
-
lead: () =>
|
|
1726
|
-
note: () =>
|
|
1733
|
+
lead: () => l("You are about to close"),
|
|
1734
|
+
note: () => l(
|
|
1727
1735
|
"Every session inside it ends and its open transaction is rolled back; the data is kept and it can be opened again."
|
|
1728
1736
|
),
|
|
1729
|
-
confirmLabel: () =>
|
|
1730
|
-
finalLabel: () =>
|
|
1737
|
+
confirmLabel: () => l("Close"),
|
|
1738
|
+
finalLabel: () => l("Yes, close now")
|
|
1731
1739
|
},
|
|
1732
1740
|
"lock-out": {
|
|
1733
1741
|
reversible: !1,
|
|
1734
|
-
lead: () =>
|
|
1735
|
-
note: () =>
|
|
1742
|
+
lead: () => l("You are about to take access away from the connected role"),
|
|
1743
|
+
note: () => l(
|
|
1736
1744
|
"Open sessions keep working, but this connection cannot log in as this role again."
|
|
1737
1745
|
),
|
|
1738
|
-
confirmLabel: () =>
|
|
1739
|
-
finalLabel: () =>
|
|
1746
|
+
confirmLabel: () => l("Continue"),
|
|
1747
|
+
finalLabel: () => l("Yes, change it now")
|
|
1740
1748
|
},
|
|
1741
1749
|
"cancel-statement": {
|
|
1742
1750
|
reversible: !0,
|
|
1743
|
-
lead: () =>
|
|
1744
|
-
note: () =>
|
|
1745
|
-
confirmLabel: () =>
|
|
1751
|
+
lead: () => l("You are about to stop the running statement of"),
|
|
1752
|
+
note: () => l("The session stays open; the statement can be run again."),
|
|
1753
|
+
confirmLabel: () => l("Stop statement")
|
|
1746
1754
|
},
|
|
1747
1755
|
"change-privileges": {
|
|
1748
1756
|
reversible: !0,
|
|
1749
|
-
lead: () =>
|
|
1750
|
-
note: () =>
|
|
1751
|
-
confirmLabel: () =>
|
|
1757
|
+
lead: () => l("You are about to change the privileges of"),
|
|
1758
|
+
note: () => l("The change can be reverted."),
|
|
1759
|
+
confirmLabel: () => l("Apply")
|
|
1752
1760
|
},
|
|
1753
1761
|
change: {
|
|
1754
1762
|
reversible: !0,
|
|
1755
|
-
lead: () =>
|
|
1756
|
-
note: () =>
|
|
1757
|
-
confirmLabel: () =>
|
|
1763
|
+
lead: () => l("You are about to change"),
|
|
1764
|
+
note: () => l("The change can be reverted."),
|
|
1765
|
+
confirmLabel: () => l("Apply")
|
|
1758
1766
|
},
|
|
1759
1767
|
rewrite: {
|
|
1760
1768
|
reversible: !0,
|
|
1761
|
-
lead: () =>
|
|
1769
|
+
lead: () => l("You are about to rebuild"),
|
|
1762
1770
|
// The lock depends on the verb's mode (CONCURRENTLY does not block writes) and is written in the description.
|
|
1763
|
-
note: () =>
|
|
1764
|
-
confirmLabel: () =>
|
|
1771
|
+
note: () => l("No data is lost."),
|
|
1772
|
+
confirmLabel: () => l("Rebuild")
|
|
1765
1773
|
},
|
|
1766
1774
|
"discard-cache": {
|
|
1767
1775
|
reversible: !0,
|
|
1768
|
-
lead: () =>
|
|
1769
|
-
note: () =>
|
|
1770
|
-
confirmLabel: () =>
|
|
1776
|
+
lead: () => l("You are about to discard the cached contents of"),
|
|
1777
|
+
note: () => l("No data is lost; the cache fills again as sessions run."),
|
|
1778
|
+
confirmLabel: () => l("Discard")
|
|
1771
1779
|
}
|
|
1772
1780
|
};
|
|
1773
1781
|
function kt(e) {
|
|
1774
1782
|
return !wt[e].reversible;
|
|
1775
1783
|
}
|
|
1776
|
-
function
|
|
1784
|
+
function oc(e) {
|
|
1777
1785
|
return kt(e) ? "typed" : "confirm";
|
|
1778
1786
|
}
|
|
1779
|
-
function
|
|
1787
|
+
function Aa(e) {
|
|
1780
1788
|
const r = wt[e], a = {
|
|
1781
1789
|
lead: r.lead(),
|
|
1782
1790
|
note: r.note(),
|
|
@@ -1784,23 +1792,23 @@ function xa(e) {
|
|
|
1784
1792
|
};
|
|
1785
1793
|
return r.reversible ? { ...a, level: "confirm" } : { ...a, level: "typed", finalLabel: r.finalLabel() };
|
|
1786
1794
|
}
|
|
1787
|
-
var
|
|
1788
|
-
function
|
|
1789
|
-
return g(
|
|
1795
|
+
var Ta = ["<div", ">", "<span", "></span>", "", "", "</div>"], Da = ["<span>", " <span", ">(", "s)</span></span>"], Ma = ["<p", ">", " <span", ">", "</span></p>"], Ra = ["<label", "><span", ">", "</span>", "</label>"], Ea = ["<div", ">", "</div>"], Pa = ["<span", ">", "</span>"], Ba = ["<span", "><span>", "</span>", "</span>"], Oa = ["<p", " data-consequence-line>", " <span", ">", "</span>.</p>"], za = ["<p", ">", "</p>"], Wa = ["<div", "><span", ">", "</span><ul", ">", "</ul></div>"], Na = ["<li>", "</li>"], Fa = ["<pre", "><code>", "</code></pre>"];
|
|
1796
|
+
function Ha(e) {
|
|
1797
|
+
return g(Ta, o("class", t(R.footer, !0), !1), t(n(G, {
|
|
1790
1798
|
size: "md",
|
|
1791
1799
|
variant: "secondary",
|
|
1792
1800
|
get onClick() {
|
|
1793
1801
|
return e.onCancel;
|
|
1794
1802
|
},
|
|
1795
1803
|
get children() {
|
|
1796
|
-
return
|
|
1804
|
+
return l("Cancel");
|
|
1797
1805
|
}
|
|
1798
1806
|
})), o("class", t(R.footerSpacer, !0), !1), t(n(w, {
|
|
1799
1807
|
get when() {
|
|
1800
1808
|
return e.step() === "name";
|
|
1801
1809
|
},
|
|
1802
1810
|
get children() {
|
|
1803
|
-
return n(
|
|
1811
|
+
return n(G, {
|
|
1804
1812
|
size: "md",
|
|
1805
1813
|
variant: "dangerSolid",
|
|
1806
1814
|
get disabled() {
|
|
@@ -1819,16 +1827,16 @@ function Fa(e) {
|
|
|
1819
1827
|
return e.step() === "countdown";
|
|
1820
1828
|
},
|
|
1821
1829
|
get children() {
|
|
1822
|
-
return [n(
|
|
1830
|
+
return [n(G, {
|
|
1823
1831
|
size: "md",
|
|
1824
1832
|
variant: "secondary",
|
|
1825
1833
|
get onClick() {
|
|
1826
1834
|
return e.onBack;
|
|
1827
1835
|
},
|
|
1828
1836
|
get children() {
|
|
1829
|
-
return
|
|
1837
|
+
return l("Back");
|
|
1830
1838
|
}
|
|
1831
|
-
}), n(
|
|
1839
|
+
}), n(G, {
|
|
1832
1840
|
size: "md",
|
|
1833
1841
|
variant: "dangerSolid",
|
|
1834
1842
|
get disabled() {
|
|
@@ -1843,7 +1851,7 @@ function Fa(e) {
|
|
|
1843
1851
|
return e.finalEnabled();
|
|
1844
1852
|
},
|
|
1845
1853
|
get fallback() {
|
|
1846
|
-
return g(
|
|
1854
|
+
return g(Da, t(e.finalLabel()), o("class", t(R.countdown, !0), !1), t(e.countdown()));
|
|
1847
1855
|
},
|
|
1848
1856
|
get children() {
|
|
1849
1857
|
return e.finalLabel();
|
|
@@ -1857,7 +1865,7 @@ function Fa(e) {
|
|
|
1857
1865
|
return e.step() === "confirm";
|
|
1858
1866
|
},
|
|
1859
1867
|
get children() {
|
|
1860
|
-
return n(
|
|
1868
|
+
return n(G, {
|
|
1861
1869
|
size: "md",
|
|
1862
1870
|
variant: "primary",
|
|
1863
1871
|
get onClick() {
|
|
@@ -1870,10 +1878,10 @@ function Fa(e) {
|
|
|
1870
1878
|
}
|
|
1871
1879
|
})));
|
|
1872
1880
|
}
|
|
1873
|
-
function
|
|
1874
|
-
return [g(
|
|
1881
|
+
function Va(e) {
|
|
1882
|
+
return [g(Ma, o("class", t(R.resourceLine, !0), !1), t(l("To confirm, type the {label} below:", {
|
|
1875
1883
|
label: e.request().resourceLabel
|
|
1876
|
-
})), o("class", t(R.resourceName, !0), !1), t(e.request().resourceName)), g(
|
|
1884
|
+
})), o("class", t(R.resourceName, !0), !1), t(e.request().resourceName)), g(Ra, o("class", t(R.field, !0), !1), o("class", t(R.fieldLabel, !0), !1), t(e.request().resourceLabel), t(n(Ve, {
|
|
1877
1885
|
get class() {
|
|
1878
1886
|
return e.inputClass();
|
|
1879
1887
|
},
|
|
@@ -1895,7 +1903,7 @@ function Je(e) {
|
|
|
1895
1903
|
return e.options().length > 0;
|
|
1896
1904
|
},
|
|
1897
1905
|
get children() {
|
|
1898
|
-
return g(
|
|
1906
|
+
return g(Ea, o("class", t(R.optionsList, !0), !1), t(n(me, {
|
|
1899
1907
|
get each() {
|
|
1900
1908
|
return e.options();
|
|
1901
1909
|
},
|
|
@@ -1911,12 +1919,12 @@ function Je(e) {
|
|
|
1911
1919
|
return r.label;
|
|
1912
1920
|
},
|
|
1913
1921
|
get children() {
|
|
1914
|
-
return g(
|
|
1922
|
+
return g(Ba, o("class", t(R.optionLabel, !0), !1), t(r.label), t(n(w, {
|
|
1915
1923
|
get when() {
|
|
1916
1924
|
return r.description;
|
|
1917
1925
|
},
|
|
1918
1926
|
get children() {
|
|
1919
|
-
return g(
|
|
1927
|
+
return g(Pa, o("class", t(R.optionDescription, !0), !1), t(r.description));
|
|
1920
1928
|
}
|
|
1921
1929
|
})));
|
|
1922
1930
|
}
|
|
@@ -1926,24 +1934,24 @@ function Je(e) {
|
|
|
1926
1934
|
});
|
|
1927
1935
|
}
|
|
1928
1936
|
function Xe(e) {
|
|
1929
|
-
return [g(
|
|
1937
|
+
return [g(Oa, o("class", t(R.resourceLine, !0), !1), t(e.copy.lead), o("class", t(R.resourceName, !0), !1), t(e.resourceName)), g(za, o("class", t(R.consequenceNote, !0), !1), t(e.copy.note))];
|
|
1930
1938
|
}
|
|
1931
|
-
function
|
|
1939
|
+
function qa(e) {
|
|
1932
1940
|
return n(w, {
|
|
1933
1941
|
get when() {
|
|
1934
1942
|
return e.options().length > 0;
|
|
1935
1943
|
},
|
|
1936
1944
|
get children() {
|
|
1937
|
-
return g(
|
|
1945
|
+
return g(Wa, o("class", t(R.selectedOptions, !0), !1), o("class", t(R.fieldLabel, !0), !1), t(l("Selected options")), o("class", t(R.selectedList, !0), !1), t(n(me, {
|
|
1938
1946
|
get each() {
|
|
1939
1947
|
return e.options();
|
|
1940
1948
|
},
|
|
1941
|
-
children: (r) => g(
|
|
1949
|
+
children: (r) => g(Na, t(r.label))
|
|
1942
1950
|
})));
|
|
1943
1951
|
}
|
|
1944
1952
|
});
|
|
1945
1953
|
}
|
|
1946
|
-
function
|
|
1954
|
+
function ja(e) {
|
|
1947
1955
|
return n(be, {
|
|
1948
1956
|
get rootClass() {
|
|
1949
1957
|
return R.codeScroll;
|
|
@@ -1952,116 +1960,116 @@ function qa(e) {
|
|
|
1952
1960
|
return R.code;
|
|
1953
1961
|
},
|
|
1954
1962
|
get children() {
|
|
1955
|
-
return g(
|
|
1963
|
+
return g(Fa, o("class", t(R.codePre, !0), !1) + o("aria-label", t(l("Statement"), !0), !1), t(e.code));
|
|
1956
1964
|
}
|
|
1957
1965
|
});
|
|
1958
1966
|
}
|
|
1959
|
-
var Ze = ["<p", ">", "</p>"],
|
|
1960
|
-
const ze = (e) => kt(e.consequence),
|
|
1961
|
-
function
|
|
1962
|
-
const r =
|
|
1967
|
+
var Ze = ["<p", ">", "</p>"], Ka = ["<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>"];
|
|
1968
|
+
const ze = (e) => kt(e.consequence), Ya = 5;
|
|
1969
|
+
function ac(e) {
|
|
1970
|
+
const r = J(), a = J(), [c, u] = D(null), [m, b] = D("name"), [d, h] = D(""), [_, I] = D({}), [C, N] = D(0);
|
|
1963
1971
|
let k = null, S = null, P = !1;
|
|
1964
1972
|
const T = () => {
|
|
1965
|
-
var
|
|
1966
|
-
return ((
|
|
1973
|
+
var v;
|
|
1974
|
+
return ((v = c()) == null ? void 0 : v.targetWin) ?? (e == null ? void 0 : e()) ?? qe().window;
|
|
1967
1975
|
}, j = () => T().document;
|
|
1968
1976
|
Ie({
|
|
1969
1977
|
open: () => c() !== null,
|
|
1970
1978
|
ownerDocument: j
|
|
1971
1979
|
});
|
|
1972
1980
|
const M = () => {
|
|
1973
|
-
const
|
|
1974
|
-
k = null,
|
|
1975
|
-
},
|
|
1981
|
+
const v = k;
|
|
1982
|
+
k = null, v == null || v();
|
|
1983
|
+
}, X = () => {
|
|
1976
1984
|
M();
|
|
1977
|
-
const
|
|
1978
|
-
S = null,
|
|
1985
|
+
const v = S;
|
|
1986
|
+
S = null, v == null || v(), u(null);
|
|
1979
1987
|
}, y = () => {
|
|
1980
|
-
M(),
|
|
1981
|
-
}, L = (
|
|
1982
|
-
const
|
|
1983
|
-
if (
|
|
1988
|
+
M(), b("name"), h(""), I({}), N(0);
|
|
1989
|
+
}, L = (v) => {
|
|
1990
|
+
const $ = c();
|
|
1991
|
+
if (!$) return;
|
|
1984
1992
|
const B = {
|
|
1985
|
-
confirmed:
|
|
1993
|
+
confirmed: v,
|
|
1986
1994
|
options: {
|
|
1987
1995
|
..._()
|
|
1988
1996
|
}
|
|
1989
1997
|
};
|
|
1990
|
-
|
|
1998
|
+
X(), y(), $.resolve(B);
|
|
1991
1999
|
}, V = () => {
|
|
1992
|
-
const
|
|
1993
|
-
|
|
2000
|
+
const v = c();
|
|
2001
|
+
v && (X(), y(), v.resolve({
|
|
1994
2002
|
confirmed: !1,
|
|
1995
2003
|
options: {}
|
|
1996
2004
|
}));
|
|
1997
2005
|
};
|
|
1998
|
-
|
|
2006
|
+
U(() => {
|
|
1999
2007
|
P = !0, V();
|
|
2000
2008
|
});
|
|
2001
|
-
const de = (
|
|
2009
|
+
const de = (v) => {
|
|
2002
2010
|
var B;
|
|
2003
2011
|
if (V(), P) return Promise.resolve({
|
|
2004
2012
|
confirmed: !1,
|
|
2005
2013
|
options: {}
|
|
2006
2014
|
});
|
|
2007
|
-
const
|
|
2008
|
-
return
|
|
2015
|
+
const $ = ((B = v.host) == null ? void 0 : B.call(v)) ?? (e == null ? void 0 : e()) ?? Ae().window;
|
|
2016
|
+
return $.closed ? Promise.resolve({
|
|
2009
2017
|
confirmed: !1,
|
|
2010
2018
|
options: {}
|
|
2011
2019
|
}) : new Promise((F) => {
|
|
2012
2020
|
const s = {};
|
|
2013
|
-
for (const O of
|
|
2014
|
-
y(), I(s), ze(
|
|
2021
|
+
for (const O of v.options ?? []) s[O.id] = !!O.default;
|
|
2022
|
+
y(), I(s), ze(v) || b("confirm");
|
|
2015
2023
|
const i = {
|
|
2016
|
-
...
|
|
2024
|
+
...v,
|
|
2017
2025
|
resolve: F,
|
|
2018
|
-
targetWin:
|
|
2026
|
+
targetWin: $
|
|
2019
2027
|
}, p = () => {
|
|
2020
2028
|
c() === i && V();
|
|
2021
2029
|
};
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
},
|
|
2030
|
+
$.addEventListener("pagehide", p), $.addEventListener("unload", p), S = () => {
|
|
2031
|
+
$.removeEventListener("pagehide", p), $.removeEventListener("unload", p);
|
|
2032
|
+
}, u(i);
|
|
2025
2033
|
});
|
|
2026
|
-
}, te =
|
|
2027
|
-
const
|
|
2028
|
-
return
|
|
2034
|
+
}, te = Q(() => {
|
|
2035
|
+
const v = c();
|
|
2036
|
+
return v ? d().trim() === v.resourceName.trim() : !1;
|
|
2029
2037
|
}), ie = () => {
|
|
2030
|
-
const
|
|
2031
|
-
if (!
|
|
2032
|
-
const
|
|
2033
|
-
M(),
|
|
2034
|
-
const B =
|
|
2038
|
+
const v = c();
|
|
2039
|
+
if (!v || !ze(v) || !te()) return;
|
|
2040
|
+
const $ = v.countdownSeconds ?? Ya;
|
|
2041
|
+
M(), b("countdown"), N($);
|
|
2042
|
+
const B = v.targetWin;
|
|
2035
2043
|
let F = !0;
|
|
2036
2044
|
const s = B.setInterval(() => {
|
|
2037
|
-
!F || c() !==
|
|
2045
|
+
!F || c() !== v || N((i) => i <= 1 ? (M(), 0) : i - 1);
|
|
2038
2046
|
}, 1e3);
|
|
2039
2047
|
k = () => {
|
|
2040
2048
|
F = !1, B.clearInterval(s);
|
|
2041
2049
|
};
|
|
2042
2050
|
}, ae = () => {
|
|
2043
|
-
M(),
|
|
2051
|
+
M(), b("name");
|
|
2044
2052
|
};
|
|
2045
2053
|
return oe(() => {
|
|
2046
2054
|
c() === null && M();
|
|
2047
|
-
}),
|
|
2048
|
-
const
|
|
2055
|
+
}), U(M), [() => {
|
|
2056
|
+
const v = () => c(), $ = () => {
|
|
2049
2057
|
var E;
|
|
2050
|
-
return ((E =
|
|
2051
|
-
}, B =
|
|
2052
|
-
const E =
|
|
2053
|
-
return E === null ? null :
|
|
2054
|
-
}), F = () => m() === "countdown" &&
|
|
2055
|
-
const E =
|
|
2058
|
+
return ((E = v()) == null ? void 0 : E.options) ?? [];
|
|
2059
|
+
}, B = Q(() => {
|
|
2060
|
+
const E = v();
|
|
2061
|
+
return E === null ? null : Aa(E.consequence);
|
|
2062
|
+
}), F = () => m() === "countdown" && C() === 0, s = () => {
|
|
2063
|
+
const E = v();
|
|
2056
2064
|
return E !== null && ze(E) ? E : null;
|
|
2057
2065
|
}, i = () => {
|
|
2058
2066
|
var E, ce;
|
|
2059
|
-
return ((E =
|
|
2067
|
+
return ((E = v()) == null ? void 0 : E.confirmLabel) ?? ((ce = B()) == null ? void 0 : ce.confirmLabel) ?? "";
|
|
2060
2068
|
}, p = () => {
|
|
2061
2069
|
var ce;
|
|
2062
2070
|
const E = B();
|
|
2063
2071
|
return ((ce = s()) == null ? void 0 : ce.finalConfirmLabel) ?? ((E == null ? void 0 : E.level) === "typed" ? E.finalLabel : i());
|
|
2064
|
-
}, O = () =>
|
|
2072
|
+
}, O = () => $().filter((E) => _()[E.id] === !0), se = (E) => {
|
|
2065
2073
|
I((ce) => ({
|
|
2066
2074
|
...ce,
|
|
2067
2075
|
[E]: !ce[E]
|
|
@@ -2071,7 +2079,7 @@ function oc(e) {
|
|
|
2071
2079
|
}, we = () => `${R.input} ${te() ? R.inputMatch : ""}`;
|
|
2072
2080
|
return n(w, {
|
|
2073
2081
|
get when() {
|
|
2074
|
-
return
|
|
2082
|
+
return v() !== null;
|
|
2075
2083
|
},
|
|
2076
2084
|
get children() {
|
|
2077
2085
|
return n(Le, {
|
|
@@ -2082,10 +2090,10 @@ function oc(e) {
|
|
|
2082
2090
|
idPrefix: "dangerous-action-dialog",
|
|
2083
2091
|
get children() {
|
|
2084
2092
|
var E, ce, Ye;
|
|
2085
|
-
return g(
|
|
2093
|
+
return g(Ka, 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 = v()) != 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 = v()) == null ? void 0 : Ye.title) ?? ""), o("class", t(R.body, !0), !1), t(n(w, {
|
|
2086
2094
|
get when() {
|
|
2087
2095
|
var q;
|
|
2088
|
-
return (q =
|
|
2096
|
+
return (q = v()) == null ? void 0 : q.place;
|
|
2089
2097
|
},
|
|
2090
2098
|
children: (q) => n(ct, {
|
|
2091
2099
|
id: a,
|
|
@@ -2096,17 +2104,17 @@ function oc(e) {
|
|
|
2096
2104
|
})), t(n(w, {
|
|
2097
2105
|
get when() {
|
|
2098
2106
|
var q;
|
|
2099
|
-
return (q =
|
|
2107
|
+
return (q = v()) == null ? void 0 : q.description;
|
|
2100
2108
|
},
|
|
2101
2109
|
get children() {
|
|
2102
|
-
return g(Ze, o("class", t(R.description, !0), !1), t(
|
|
2110
|
+
return g(Ze, o("class", t(R.description, !0), !1), t(v().description));
|
|
2103
2111
|
}
|
|
2104
2112
|
})), t(n(w, {
|
|
2105
2113
|
get when() {
|
|
2106
2114
|
var q;
|
|
2107
|
-
return (q =
|
|
2115
|
+
return (q = v()) == null ? void 0 : q.code;
|
|
2108
2116
|
},
|
|
2109
|
-
children: (q) => n(
|
|
2117
|
+
children: (q) => n(ja, {
|
|
2110
2118
|
get code() {
|
|
2111
2119
|
return q();
|
|
2112
2120
|
}
|
|
@@ -2115,14 +2123,14 @@ function oc(e) {
|
|
|
2115
2123
|
get when() {
|
|
2116
2124
|
return ee(() => m() === "name")() ? s() : null;
|
|
2117
2125
|
},
|
|
2118
|
-
children: (q) => [n(
|
|
2126
|
+
children: (q) => [n(Va, {
|
|
2119
2127
|
request: q,
|
|
2120
|
-
typedName:
|
|
2121
|
-
setTypedName:
|
|
2128
|
+
typedName: d,
|
|
2129
|
+
setTypedName: h,
|
|
2122
2130
|
inputRef: fe,
|
|
2123
2131
|
inputClass: we
|
|
2124
2132
|
}), n(Je, {
|
|
2125
|
-
options:
|
|
2133
|
+
options: $,
|
|
2126
2134
|
optionState: _,
|
|
2127
2135
|
toggleOption: se
|
|
2128
2136
|
})]
|
|
@@ -2136,20 +2144,20 @@ function oc(e) {
|
|
|
2136
2144
|
},
|
|
2137
2145
|
get resourceName() {
|
|
2138
2146
|
var Se;
|
|
2139
|
-
return ((Se =
|
|
2147
|
+
return ((Se = v()) == null ? void 0 : Se.resourceName) ?? "";
|
|
2140
2148
|
}
|
|
2141
|
-
}), n(
|
|
2149
|
+
}), n(qa, {
|
|
2142
2150
|
options: O
|
|
2143
2151
|
}), g(Ze, o("class", t(R.finalNote, !0), !1), t(n(w, {
|
|
2144
2152
|
get when() {
|
|
2145
|
-
return
|
|
2153
|
+
return C() > 0;
|
|
2146
2154
|
},
|
|
2147
2155
|
get fallback() {
|
|
2148
|
-
return
|
|
2156
|
+
return l("Press the button below to confirm.");
|
|
2149
2157
|
},
|
|
2150
2158
|
get children() {
|
|
2151
|
-
return
|
|
2152
|
-
count:
|
|
2159
|
+
return l("The confirm button unlocks in {count}s.", {
|
|
2160
|
+
count: C()
|
|
2153
2161
|
});
|
|
2154
2162
|
}
|
|
2155
2163
|
})))]
|
|
@@ -2163,18 +2171,18 @@ function oc(e) {
|
|
|
2163
2171
|
},
|
|
2164
2172
|
get resourceName() {
|
|
2165
2173
|
var Se;
|
|
2166
|
-
return ((Se =
|
|
2174
|
+
return ((Se = v()) == null ? void 0 : Se.resourceName) ?? "";
|
|
2167
2175
|
}
|
|
2168
2176
|
}), n(Je, {
|
|
2169
|
-
options:
|
|
2177
|
+
options: $,
|
|
2170
2178
|
optionState: _,
|
|
2171
2179
|
toggleOption: se
|
|
2172
2180
|
})]
|
|
2173
|
-
})), t(n(
|
|
2181
|
+
})), t(n(Ha, {
|
|
2174
2182
|
step: m,
|
|
2175
2183
|
nameMatches: te,
|
|
2176
2184
|
finalEnabled: F,
|
|
2177
|
-
countdown:
|
|
2185
|
+
countdown: C,
|
|
2178
2186
|
confirmLabel: i,
|
|
2179
2187
|
finalLabel: p,
|
|
2180
2188
|
onCancel: () => L(!1),
|
|
@@ -2188,25 +2196,25 @@ function oc(e) {
|
|
|
2188
2196
|
});
|
|
2189
2197
|
}, de];
|
|
2190
2198
|
}
|
|
2191
|
-
const
|
|
2192
|
-
window:
|
|
2193
|
-
maximized:
|
|
2194
|
-
minimized:
|
|
2195
|
-
titlebar:
|
|
2196
|
-
titlebarDragging:
|
|
2197
|
-
titleInfo:
|
|
2198
|
-
windowIcon:
|
|
2199
|
-
windowTitle:
|
|
2200
|
-
windowControls:
|
|
2201
|
-
controlBtn:
|
|
2202
|
-
closeBtn:
|
|
2203
|
-
body:
|
|
2204
|
-
resizeGrip:
|
|
2199
|
+
const Ua = "vk_window_cNPxa", Qa = "vk_maximized_nbnO1", Ga = "vk_minimized_7iRrM", Ja = "vk_titlebar_x5HLa", Xa = "vk_titlebarDragging_UvwHD", Za = "vk_titleInfo_CfnKC", es = "vk_windowIcon_kwo8N", ts = "vk_windowTitle_oh-oF", ns = "vk_windowControls_VpW8D", rs = "vk_controlBtn_KeaeH", os = "vk_closeBtn_Mb5cO", as = "vk_body_n-l67", ss = "vk_resizeGrip_NFWQc", Y = {
|
|
2200
|
+
window: Ua,
|
|
2201
|
+
maximized: Qa,
|
|
2202
|
+
minimized: Ga,
|
|
2203
|
+
titlebar: Ja,
|
|
2204
|
+
titlebarDragging: Xa,
|
|
2205
|
+
titleInfo: Za,
|
|
2206
|
+
windowIcon: es,
|
|
2207
|
+
windowTitle: ts,
|
|
2208
|
+
windowControls: ns,
|
|
2209
|
+
controlBtn: rs,
|
|
2210
|
+
closeBtn: os,
|
|
2211
|
+
body: as,
|
|
2212
|
+
resizeGrip: ss
|
|
2205
2213
|
};
|
|
2206
|
-
var
|
|
2207
|
-
function
|
|
2208
|
-
var T, j, M,
|
|
2209
|
-
const [r, a] = D(((T = e.initialPosition) == null ? void 0 : T.x) ?? 24), [c,
|
|
2214
|
+
var is = ["<span", ">", "</span>"], cs = ['<button type="button"', ">", "</button>"], ls = ["<div", ' aria-hidden="true"></div>'], us = ['<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>"];
|
|
2215
|
+
function sc(e) {
|
|
2216
|
+
var T, j, M, X;
|
|
2217
|
+
const [r, a] = D(((T = e.initialPosition) == null ? void 0 : T.x) ?? 24), [c, u] = D(((j = e.initialPosition) == null ? void 0 : j.y) ?? 24), [m, b] = D(((M = e.initialSize) == null ? void 0 : M.width) ?? 360), [d, h] = D(((X = e.initialSize) == null ? void 0 : X.height) ?? 220), [_, I] = D(!1), [C, N] = D(!1), [k, S] = D(!1);
|
|
2210
2218
|
let P;
|
|
2211
2219
|
return Re(() => e.isOpen, "floating-window", {
|
|
2212
2220
|
type: "popover",
|
|
@@ -2218,23 +2226,23 @@ function ac(e) {
|
|
|
2218
2226
|
return e.isOpen;
|
|
2219
2227
|
},
|
|
2220
2228
|
get children() {
|
|
2221
|
-
return g(
|
|
2229
|
+
return g(us, `${t(Y.window, !0)} ${C() ? t(Y.maximized, !0) : ""} ${_() ? t(Y.minimized, !0) : ""} ${t(e.class ?? "", !0)}`, Ct(C() ? {} : {
|
|
2222
2230
|
left: `${r()}px`,
|
|
2223
2231
|
top: `${c()}px`,
|
|
2224
2232
|
width: `${m()}px`,
|
|
2225
|
-
height: _() ? "auto" : `${
|
|
2226
|
-
}), o("aria-label", t(e.title, !0), !1), `${t(
|
|
2233
|
+
height: _() ? "auto" : `${d()}px`
|
|
2234
|
+
}), o("aria-label", t(e.title, !0), !1), `${t(Y.titlebar, !0)} ${k() ? t(Y.titlebarDragging, !0) : ""}`, o("class", t(Y.titleInfo, !0), !1), t(n(w, {
|
|
2227
2235
|
get when() {
|
|
2228
2236
|
return e.icon;
|
|
2229
2237
|
},
|
|
2230
2238
|
get children() {
|
|
2231
|
-
return g(
|
|
2239
|
+
return g(is, o("class", t(Y.windowIcon, !0), !1), t(e.icon));
|
|
2232
2240
|
}
|
|
2233
|
-
})), o("class", t(
|
|
2241
|
+
})), o("class", t(Y.windowTitle, !0), !1), t(e.title), o("class", t(Y.windowControls, !0), !1), o("class", t(Y.controlBtn, !0), !1) + o("aria-label", t(l("Minimize"), !0), !1), t(n(Vt, {
|
|
2234
2242
|
"aria-hidden": "true"
|
|
2235
|
-
})), o("class", t(
|
|
2243
|
+
})), o("class", t(Y.controlBtn, !0), !1) + o("aria-label", C() ? t(l("Restore"), !0) : t(l("Maximize"), !0), !1), t(n(w, {
|
|
2236
2244
|
get when() {
|
|
2237
|
-
return
|
|
2245
|
+
return C();
|
|
2238
2246
|
},
|
|
2239
2247
|
get fallback() {
|
|
2240
2248
|
return n(Mt, {
|
|
@@ -2251,11 +2259,11 @@ function ac(e) {
|
|
|
2251
2259
|
return e.onDetach;
|
|
2252
2260
|
},
|
|
2253
2261
|
get children() {
|
|
2254
|
-
return g(
|
|
2262
|
+
return g(cs, o("class", t(Y.controlBtn, !0), !1) + o("aria-label", t(l("Detach window"), !0), !1), t(n(Rt, {
|
|
2255
2263
|
"aria-hidden": "true"
|
|
2256
2264
|
})));
|
|
2257
2265
|
}
|
|
2258
|
-
})), `${t(
|
|
2266
|
+
})), `${t(Y.controlBtn, !0)} ${t(Y.closeBtn, !0)}`, o("aria-label", t(l("Close window"), !0), !1), t(n(je, {
|
|
2259
2267
|
"aria-hidden": "true"
|
|
2260
2268
|
})), t(n(w, {
|
|
2261
2269
|
get when() {
|
|
@@ -2264,17 +2272,17 @@ function ac(e) {
|
|
|
2264
2272
|
get children() {
|
|
2265
2273
|
return [n(be, {
|
|
2266
2274
|
get rootClass() {
|
|
2267
|
-
return
|
|
2275
|
+
return Y.body;
|
|
2268
2276
|
},
|
|
2269
2277
|
get children() {
|
|
2270
2278
|
return e.children;
|
|
2271
2279
|
}
|
|
2272
2280
|
}), n(w, {
|
|
2273
2281
|
get when() {
|
|
2274
|
-
return
|
|
2282
|
+
return !C();
|
|
2275
2283
|
},
|
|
2276
2284
|
get children() {
|
|
2277
|
-
return g(
|
|
2285
|
+
return g(ls, o("class", t(Y.resizeGrip, !0), !1));
|
|
2278
2286
|
}
|
|
2279
2287
|
})];
|
|
2280
2288
|
}
|
|
@@ -2290,56 +2298,56 @@ function yt(e, r) {
|
|
|
2290
2298
|
const a = r.replace(/\s+/g, "");
|
|
2291
2299
|
if (a.length < 2) return !1;
|
|
2292
2300
|
let c = 0;
|
|
2293
|
-
for (const
|
|
2294
|
-
if (
|
|
2301
|
+
for (const u of e)
|
|
2302
|
+
if (u === a[c] && (c += 1), c === a.length) return !0;
|
|
2295
2303
|
return !1;
|
|
2296
2304
|
}
|
|
2297
2305
|
function et(e, r) {
|
|
2298
|
-
const a = e.title.toLowerCase(), c = e.category.toLowerCase(),
|
|
2299
|
-
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 : pt(a, r) ? 5 : c.includes(r) ? 3 :
|
|
2306
|
+
const a = e.title.toLowerCase(), c = e.category.toLowerCase(), u = (e.keywords ?? []).join(" ").toLowerCase();
|
|
2307
|
+
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 : pt(a, r) ? 5 : c.includes(r) ? 3 : u.includes(r) ? 2 : yt(a, r) ? 1 : 0;
|
|
2300
2308
|
}
|
|
2301
|
-
function
|
|
2309
|
+
function ds(e, r) {
|
|
2302
2310
|
const a = e.title.toLowerCase(), c = (e.description ?? "").toLowerCase();
|
|
2303
2311
|
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;
|
|
2304
2312
|
}
|
|
2305
|
-
function
|
|
2313
|
+
function ms(e) {
|
|
2306
2314
|
return [e.title, e.description, e.ariaShortcut].filter((r) => !!r).join(", ");
|
|
2307
2315
|
}
|
|
2308
|
-
const
|
|
2309
|
-
backdrop:
|
|
2310
|
-
backdropCompact:
|
|
2311
|
-
backdropClassic:
|
|
2312
|
-
panel:
|
|
2313
|
-
panelCompact:
|
|
2314
|
-
panelClassic:
|
|
2315
|
-
searchRow:
|
|
2316
|
-
searchInput:
|
|
2317
|
-
results:
|
|
2318
|
-
section:
|
|
2319
|
-
sectionTitle:
|
|
2320
|
-
commandList:
|
|
2321
|
-
commandItem:
|
|
2322
|
-
commandItemActive:
|
|
2323
|
-
commandMain:
|
|
2324
|
-
commandTitle:
|
|
2325
|
-
commandDescription:
|
|
2326
|
-
commandShortcut:
|
|
2327
|
-
commandRow:
|
|
2328
|
-
configureBtn:
|
|
2329
|
-
commandRowActive:
|
|
2330
|
-
},
|
|
2331
|
-
tabsContainer:
|
|
2332
|
-
tabButton:
|
|
2333
|
-
tabButtonActive:
|
|
2334
|
-
tabBadge:
|
|
2335
|
-
tabBadgeActive:
|
|
2336
|
-
badge:
|
|
2337
|
-
badgeSetting:
|
|
2338
|
-
badgeDb:
|
|
2339
|
-
statusRow:
|
|
2316
|
+
const fs = "vk_backdrop_aa9-b", gs = "vk_backdropCompact_PkBAv", hs = "vk_backdropClassic_ehT8b", vs = "vk_panel_unTU7", bs = "vk_panelCompact_SIdhM", _s = "vk_panelClassic_aiZlM", ws = "vk_searchRow_zeI45", ks = "vk_searchInput_oshkq", ps = "vk_results_zGg2V", ys = "vk_section_RoSyC", Cs = "vk_sectionTitle_JpTJl", $s = "vk_commandList_y7keL", Ss = "vk_commandItem_0v8jJ", Ls = "vk_commandItemActive_Ar6PV", Is = "vk_commandMain_ogAdz", xs = "vk_commandTitle_auoxZ vk_titleSm_IecPV", As = "vk_commandDescription_8zkPN", Ts = "vk_commandShortcut_UAa5d", Ds = "vk_commandRow_LX6zz", Ms = "vk_configureBtn_OMS9G", Rs = "vk_commandRowActive_uNRXl", A = {
|
|
2317
|
+
backdrop: fs,
|
|
2318
|
+
backdropCompact: gs,
|
|
2319
|
+
backdropClassic: hs,
|
|
2320
|
+
panel: vs,
|
|
2321
|
+
panelCompact: bs,
|
|
2322
|
+
panelClassic: _s,
|
|
2323
|
+
searchRow: ws,
|
|
2324
|
+
searchInput: ks,
|
|
2325
|
+
results: ps,
|
|
2326
|
+
section: ys,
|
|
2327
|
+
sectionTitle: Cs,
|
|
2328
|
+
commandList: $s,
|
|
2329
|
+
commandItem: Ss,
|
|
2330
|
+
commandItemActive: Ls,
|
|
2331
|
+
commandMain: Is,
|
|
2332
|
+
commandTitle: xs,
|
|
2333
|
+
commandDescription: As,
|
|
2334
|
+
commandShortcut: Ts,
|
|
2335
|
+
commandRow: Ds,
|
|
2336
|
+
configureBtn: Ms,
|
|
2337
|
+
commandRowActive: Rs
|
|
2338
|
+
}, Es = "vk_tabsContainer_CiFoB", Ps = "vk_tabButton_M-DwJ", Bs = "vk_tabButtonActive_pgOkL", Os = "vk_tabBadge_sBmun", zs = "vk_tabBadgeActive_N-q86", Ws = "vk_badge_meiW8", Ns = "vk_badgeSetting_LSTcT", Fs = "vk_badgeDb_ThJRG", Hs = "vk_statusRow_QoKuX", ue = {
|
|
2339
|
+
tabsContainer: Es,
|
|
2340
|
+
tabButton: Ps,
|
|
2341
|
+
tabButtonActive: Bs,
|
|
2342
|
+
tabBadge: Os,
|
|
2343
|
+
tabBadgeActive: zs,
|
|
2344
|
+
badge: Ws,
|
|
2345
|
+
badgeSetting: Ns,
|
|
2346
|
+
badgeDb: Fs,
|
|
2347
|
+
statusRow: Hs
|
|
2340
2348
|
};
|
|
2341
|
-
var
|
|
2342
|
-
function
|
|
2349
|
+
var Vs = ["<div", ' role="tablist"', ">", "</div>"], qs = ['<button type="button" role="tab"', ' class="', '"><span>', "</span>", "</button>"], js = ['<span class="', '">●</span>'];
|
|
2350
|
+
function Ks(e) {
|
|
2343
2351
|
const r = [{
|
|
2344
2352
|
mode: "everywhere",
|
|
2345
2353
|
label: "All"
|
|
@@ -2353,37 +2361,37 @@ function js(e) {
|
|
|
2353
2361
|
mode: "database",
|
|
2354
2362
|
label: "Database"
|
|
2355
2363
|
}];
|
|
2356
|
-
return qt(), g(
|
|
2364
|
+
return qt(), g(Vs, o("class", t(ue.tabsContainer, !0), !1), o("aria-label", t(l("Search Everywhere"), !0), !1), t(n(me, {
|
|
2357
2365
|
each: r,
|
|
2358
2366
|
children: (a) => {
|
|
2359
2367
|
const c = () => e.activeMode() === a.mode;
|
|
2360
|
-
return g(
|
|
2368
|
+
return g(qs, o("aria-selected", t(c(), !0), !1) + o("tabindex", c() ? 0 : -1, !1), `${t(ue.tabButton, !0)} ${c() ? t(ue.tabButtonActive, !0) : ""}`, t(l(a.label)), a.mode === "database" && e.hasWorkspaceContext() ? g(js, `${t(ue.tabBadge, !0)} ${c() ? t(ue.tabBadgeActive, !0) : ""}`) : t(null));
|
|
2361
2369
|
}
|
|
2362
2370
|
})));
|
|
2363
2371
|
}
|
|
2364
|
-
function
|
|
2372
|
+
function Ys(e, r) {
|
|
2365
2373
|
const a = r.toLowerCase();
|
|
2366
2374
|
return (e.labels ?? []).some((c) => Tt(c).toLowerCase().includes(a));
|
|
2367
2375
|
}
|
|
2368
|
-
function
|
|
2369
|
-
const c = r.toLowerCase(),
|
|
2370
|
-
if (
|
|
2371
|
-
if (
|
|
2372
|
-
if (
|
|
2376
|
+
function Us(e, r, a) {
|
|
2377
|
+
const c = r.toLowerCase(), u = e.label.toLowerCase();
|
|
2378
|
+
if (u === c) return 8;
|
|
2379
|
+
if (u.startsWith(c)) return 7;
|
|
2380
|
+
if (u.includes(c)) return 6;
|
|
2373
2381
|
const m = c.split(/\s+/).filter(Boolean);
|
|
2374
|
-
return m.length > 1 && m.every((
|
|
2375
|
-
(
|
|
2376
|
-
) ? 3 : (a.matches ??
|
|
2382
|
+
return m.length > 1 && m.every((h) => u.includes(h)) ? 5 : e.categoryId.toLowerCase().includes(c) ? 4 : (e.keywords ?? []).some(
|
|
2383
|
+
(h) => h.toLowerCase().includes(c)
|
|
2384
|
+
) ? 3 : (a.matches ?? Ys)(e, r) ? 2 : 0;
|
|
2377
2385
|
}
|
|
2378
2386
|
function tt(e, r, a) {
|
|
2379
|
-
var
|
|
2380
|
-
const c = ((
|
|
2387
|
+
var u, m;
|
|
2388
|
+
const c = ((u = a.breadcrumb) == null ? void 0 : u.call(a, e.categoryId)) ?? "";
|
|
2381
2389
|
return {
|
|
2382
2390
|
id: `setting:${e.id}`,
|
|
2383
2391
|
kind: "setting",
|
|
2384
2392
|
title: ((m = a.title) == null ? void 0 : m.call(a, e)) ?? e.label,
|
|
2385
|
-
description: c ||
|
|
2386
|
-
category:
|
|
2393
|
+
description: c || l("Settings"),
|
|
2394
|
+
category: l("Settings"),
|
|
2387
2395
|
enabled: !0,
|
|
2388
2396
|
score: r,
|
|
2389
2397
|
run: () => {
|
|
@@ -2392,65 +2400,65 @@ function tt(e, r, a) {
|
|
|
2392
2400
|
rawSetting: e
|
|
2393
2401
|
};
|
|
2394
2402
|
}
|
|
2395
|
-
function
|
|
2403
|
+
function Qs(e, r, a = 20) {
|
|
2396
2404
|
if (e === null) return [];
|
|
2397
|
-
const c = r.trim(),
|
|
2405
|
+
const c = r.trim(), u = e.items();
|
|
2398
2406
|
if (!c)
|
|
2399
|
-
return (e.popular ? e.popular(
|
|
2407
|
+
return (e.popular ? e.popular(u) : u).slice(0, a).map((d) => tt(d, 1, e));
|
|
2400
2408
|
const m = [];
|
|
2401
|
-
for (const
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2409
|
+
for (const b of u) {
|
|
2410
|
+
const d = Us(b, c, e);
|
|
2411
|
+
d > 0 && m.push({ item: b, score: d });
|
|
2404
2412
|
}
|
|
2405
|
-
return m.sort((
|
|
2413
|
+
return m.sort((b, d) => d.score - b.score), m.slice(0, a).map(({ item: b, score: d }) => tt(b, d, e));
|
|
2406
2414
|
}
|
|
2407
|
-
const
|
|
2415
|
+
const Gs = "SCHEMA", Js = 2, Xs = 200, nt = 40;
|
|
2408
2416
|
function rt(e, r) {
|
|
2409
2417
|
const a = e.toLowerCase(), c = r.toLowerCase();
|
|
2410
2418
|
return a === c ? 9 : a.startsWith(c) ? 7 : a.includes(c) ? 5 : 0;
|
|
2411
2419
|
}
|
|
2412
|
-
function
|
|
2413
|
-
const [r, a] = D([]), [c,
|
|
2414
|
-
if (
|
|
2415
|
-
const j =
|
|
2416
|
-
|
|
2420
|
+
function Zs(e) {
|
|
2421
|
+
const [r, a] = D([]), [c, u] = D(!1), [m, b] = D(null), d = dt(), h = d.databaseObjects, [_, I] = D(0);
|
|
2422
|
+
if (h !== null) {
|
|
2423
|
+
const j = h.onDidChange(() => I((M) => M + 1));
|
|
2424
|
+
U(() => j.dispose());
|
|
2417
2425
|
}
|
|
2418
|
-
const
|
|
2426
|
+
const C = () => (_(), (h == null ? void 0 : h.getWorkspaceId()) ?? null), N = () => (_(), !!(h != null && h.hasActiveWorkspace()) && C() !== null), k = () => (_(), (h == null ? void 0 : h.getSelectedSchema()) ?? "");
|
|
2419
2427
|
let S = 0, P;
|
|
2420
2428
|
const T = () => {
|
|
2421
2429
|
P !== void 0 && (clearTimeout(P), P = void 0);
|
|
2422
2430
|
};
|
|
2423
|
-
return
|
|
2431
|
+
return U(() => {
|
|
2424
2432
|
T(), S += 1;
|
|
2425
2433
|
}), Lt(() => {
|
|
2426
2434
|
const j = e.enabled(), M = e.query().trim();
|
|
2427
2435
|
T();
|
|
2428
|
-
const
|
|
2436
|
+
const X = ++S;
|
|
2429
2437
|
if (!j || !N()) {
|
|
2430
|
-
a([]),
|
|
2438
|
+
a([]), u(!1), b(null);
|
|
2431
2439
|
return;
|
|
2432
2440
|
}
|
|
2433
|
-
const y =
|
|
2434
|
-
if (M.length <
|
|
2435
|
-
if (
|
|
2441
|
+
const y = h, L = k(), V = C(), de = (y == null ? void 0 : y.getSchemas()) ?? [], te = L ? [L] : de, ie = () => C() === V && !!(y != null && y.hasActiveWorkspace()) && (y == null ? void 0 : y.getSelectedSchema()) === L, ae = () => X === S && ie() && e.enabled();
|
|
2442
|
+
if (M.length < Js) {
|
|
2443
|
+
if (b(null), u(!1), L && y) {
|
|
2436
2444
|
const f = y.getCachedObjectsForSchema(L);
|
|
2437
2445
|
if (f && f.length > 0) {
|
|
2438
|
-
const
|
|
2439
|
-
id: `db:${L}:${
|
|
2446
|
+
const v = f.slice(0, 10).map(($) => ({
|
|
2447
|
+
id: `db:${L}:${$.objectType}:${$.objectName}`,
|
|
2440
2448
|
kind: "database-object",
|
|
2441
|
-
title:
|
|
2442
|
-
description: `${
|
|
2449
|
+
title: $.objectName,
|
|
2450
|
+
description: `${$.objectType} · ${L}`,
|
|
2443
2451
|
detail: L,
|
|
2444
|
-
category:
|
|
2445
|
-
objectType:
|
|
2452
|
+
category: l("Database"),
|
|
2453
|
+
objectType: $.objectType,
|
|
2446
2454
|
schema: L,
|
|
2447
2455
|
enabled: !0,
|
|
2448
2456
|
score: 1,
|
|
2449
2457
|
run: () => {
|
|
2450
|
-
ie() && y.openObject(L,
|
|
2458
|
+
ie() && y.openObject(L, $);
|
|
2451
2459
|
}
|
|
2452
2460
|
}));
|
|
2453
|
-
a(
|
|
2461
|
+
a(v);
|
|
2454
2462
|
return;
|
|
2455
2463
|
}
|
|
2456
2464
|
}
|
|
@@ -2458,17 +2466,17 @@ function Xs(e) {
|
|
|
2458
2466
|
return;
|
|
2459
2467
|
}
|
|
2460
2468
|
if (a([]), te.length === 0) {
|
|
2461
|
-
|
|
2469
|
+
u(!1), b(null);
|
|
2462
2470
|
return;
|
|
2463
2471
|
}
|
|
2464
|
-
|
|
2472
|
+
u(!0), b(null), P = setTimeout(async () => {
|
|
2465
2473
|
if (ae())
|
|
2466
2474
|
try {
|
|
2467
2475
|
let f = [];
|
|
2468
|
-
const
|
|
2469
|
-
if (V &&
|
|
2476
|
+
const v = (y == null ? void 0 : y.searchObjects) ?? null;
|
|
2477
|
+
if (V && v !== null)
|
|
2470
2478
|
f = [
|
|
2471
|
-
...await
|
|
2479
|
+
...await v(V, M, {
|
|
2472
2480
|
limit: nt,
|
|
2473
2481
|
schemas: te
|
|
2474
2482
|
})
|
|
@@ -2486,14 +2494,14 @@ function Xs(e) {
|
|
|
2486
2494
|
}
|
|
2487
2495
|
}
|
|
2488
2496
|
if (!ae()) return;
|
|
2489
|
-
const
|
|
2497
|
+
const $ = M.toLowerCase(), B = de.filter((s) => s.toLowerCase().includes($)).slice(0, 3).map((s) => ({
|
|
2490
2498
|
id: `db:schema:${s}`,
|
|
2491
2499
|
kind: "database-object",
|
|
2492
2500
|
title: s,
|
|
2493
|
-
description: `${
|
|
2494
|
-
detail:
|
|
2495
|
-
category:
|
|
2496
|
-
objectType:
|
|
2501
|
+
description: `${l("Schema")} · ${s}`,
|
|
2502
|
+
detail: l("Schema"),
|
|
2503
|
+
category: l("Database"),
|
|
2504
|
+
objectType: Gs,
|
|
2497
2505
|
schema: s,
|
|
2498
2506
|
enabled: !0,
|
|
2499
2507
|
score: rt(s, M) + 1,
|
|
@@ -2506,7 +2514,7 @@ function Xs(e) {
|
|
|
2506
2514
|
title: s.objectName,
|
|
2507
2515
|
description: `${s.objectType} · ${s.owner}`,
|
|
2508
2516
|
detail: s.owner,
|
|
2509
|
-
category:
|
|
2517
|
+
category: l("Database"),
|
|
2510
2518
|
objectType: s.objectType,
|
|
2511
2519
|
schema: s.owner,
|
|
2512
2520
|
enabled: !0,
|
|
@@ -2516,13 +2524,13 @@ function Xs(e) {
|
|
|
2516
2524
|
},
|
|
2517
2525
|
rawDbObject: s
|
|
2518
2526
|
}));
|
|
2519
|
-
a([...B, ...F]),
|
|
2527
|
+
a([...B, ...F]), u(!1);
|
|
2520
2528
|
} catch (f) {
|
|
2521
2529
|
if (!ae()) return;
|
|
2522
|
-
const
|
|
2523
|
-
v
|
|
2530
|
+
const v = d.errorPresenter.text(f, l("Failed to search database objects"));
|
|
2531
|
+
b(v), u(!1);
|
|
2524
2532
|
}
|
|
2525
|
-
},
|
|
2533
|
+
}, Xs);
|
|
2526
2534
|
}), {
|
|
2527
2535
|
items: r,
|
|
2528
2536
|
loading: c,
|
|
@@ -2531,16 +2539,16 @@ function Xs(e) {
|
|
|
2531
2539
|
activeSchema: k
|
|
2532
2540
|
};
|
|
2533
2541
|
}
|
|
2534
|
-
function
|
|
2542
|
+
function ei(e) {
|
|
2535
2543
|
const {
|
|
2536
2544
|
mode: r,
|
|
2537
2545
|
query: a,
|
|
2538
2546
|
commands: c,
|
|
2539
|
-
recentCommandIds:
|
|
2547
|
+
recentCommandIds: u,
|
|
2540
2548
|
categoryOrder: m,
|
|
2541
|
-
settingsItems:
|
|
2542
|
-
databaseItems:
|
|
2543
|
-
} = e,
|
|
2549
|
+
settingsItems: b,
|
|
2550
|
+
databaseItems: d
|
|
2551
|
+
} = e, h = a.trim().toLowerCase(), _ = /* @__PURE__ */ new Map();
|
|
2544
2552
|
for (const k of c)
|
|
2545
2553
|
_.set(k.id, k);
|
|
2546
2554
|
const I = (k, S = 1) => ({
|
|
@@ -2557,32 +2565,32 @@ function Zs(e) {
|
|
|
2557
2565
|
rawCommand: k
|
|
2558
2566
|
});
|
|
2559
2567
|
if (r === "settings")
|
|
2560
|
-
return
|
|
2568
|
+
return b.length === 0 ? [] : [
|
|
2561
2569
|
{
|
|
2562
2570
|
id: "section:settings",
|
|
2563
|
-
label:
|
|
2564
|
-
items:
|
|
2571
|
+
label: l("Settings"),
|
|
2572
|
+
items: b
|
|
2565
2573
|
}
|
|
2566
2574
|
];
|
|
2567
2575
|
if (r === "database")
|
|
2568
|
-
return
|
|
2576
|
+
return d.length === 0 ? [] : [
|
|
2569
2577
|
{
|
|
2570
2578
|
id: "section:database",
|
|
2571
|
-
label:
|
|
2572
|
-
items:
|
|
2579
|
+
label: l("Database"),
|
|
2580
|
+
items: d
|
|
2573
2581
|
}
|
|
2574
2582
|
];
|
|
2575
2583
|
if (r === "commands") {
|
|
2576
|
-
const k =
|
|
2584
|
+
const k = h ? c.map((y) => ({
|
|
2577
2585
|
cmd: y,
|
|
2578
|
-
score: et(y,
|
|
2586
|
+
score: et(y, h)
|
|
2579
2587
|
})).filter((y) => y.score > 0).sort((y, L) => L.score - y.score).map((y) => y.cmd) : c, S = [], P = /* @__PURE__ */ new Set();
|
|
2580
|
-
if (!
|
|
2581
|
-
const y =
|
|
2588
|
+
if (!h) {
|
|
2589
|
+
const y = u.map((L) => _.get(L)).filter((L) => !!L);
|
|
2582
2590
|
if (y.length > 0) {
|
|
2583
2591
|
S.push({
|
|
2584
2592
|
id: "recent",
|
|
2585
|
-
label:
|
|
2593
|
+
label: l("Recent"),
|
|
2586
2594
|
items: y.map((L) => I(L))
|
|
2587
2595
|
});
|
|
2588
2596
|
for (const L of y)
|
|
@@ -2598,11 +2606,11 @@ function Zs(e) {
|
|
|
2598
2606
|
const j = m ?? [], M = (y) => {
|
|
2599
2607
|
const L = j.indexOf(y);
|
|
2600
2608
|
return L === -1 ? j.length : L;
|
|
2601
|
-
},
|
|
2609
|
+
}, X = [...T.keys()].sort((y, L) => {
|
|
2602
2610
|
const V = M(y) - M(L);
|
|
2603
2611
|
return V !== 0 ? V : y.localeCompare(L);
|
|
2604
2612
|
});
|
|
2605
|
-
for (const y of
|
|
2613
|
+
for (const y of X) {
|
|
2606
2614
|
const L = T.get(y) ?? [];
|
|
2607
2615
|
S.push({
|
|
2608
2616
|
id: `category:${y}`,
|
|
@@ -2612,73 +2620,73 @@ function Zs(e) {
|
|
|
2612
2620
|
}
|
|
2613
2621
|
return S;
|
|
2614
2622
|
}
|
|
2615
|
-
const
|
|
2616
|
-
if (!
|
|
2617
|
-
const k = /* @__PURE__ */ new Set(), S =
|
|
2623
|
+
const C = [];
|
|
2624
|
+
if (!h) {
|
|
2625
|
+
const k = /* @__PURE__ */ new Set(), S = u.map((T) => _.get(T)).filter((T) => !!T);
|
|
2618
2626
|
if (S.length > 0) {
|
|
2619
|
-
|
|
2627
|
+
C.push({
|
|
2620
2628
|
id: "everywhere:recent",
|
|
2621
|
-
label:
|
|
2629
|
+
label: l("Recent"),
|
|
2622
2630
|
items: S.slice(0, 5).map((T) => I(T))
|
|
2623
2631
|
});
|
|
2624
2632
|
for (const T of S)
|
|
2625
2633
|
k.add(T.id);
|
|
2626
2634
|
}
|
|
2627
2635
|
const P = c.filter((T) => !k.has(T.id)).slice(0, 10);
|
|
2628
|
-
return P.length > 0 &&
|
|
2636
|
+
return P.length > 0 && C.push({
|
|
2629
2637
|
id: "everywhere:actions",
|
|
2630
|
-
label:
|
|
2638
|
+
label: l("Actions"),
|
|
2631
2639
|
items: P.map((T) => I(T))
|
|
2632
|
-
}),
|
|
2640
|
+
}), b.length > 0 && C.push({
|
|
2633
2641
|
id: "everywhere:settings",
|
|
2634
|
-
label:
|
|
2635
|
-
items:
|
|
2636
|
-
}),
|
|
2642
|
+
label: l("Settings"),
|
|
2643
|
+
items: b.slice(0, 5)
|
|
2644
|
+
}), d.length > 0 && C.push({
|
|
2637
2645
|
id: "everywhere:database",
|
|
2638
|
-
label:
|
|
2639
|
-
items:
|
|
2640
|
-
}),
|
|
2646
|
+
label: l("Database"),
|
|
2647
|
+
items: d.slice(0, 5)
|
|
2648
|
+
}), C;
|
|
2641
2649
|
}
|
|
2642
2650
|
const N = c.map((k) => ({
|
|
2643
2651
|
cmd: k,
|
|
2644
|
-
score: et(k,
|
|
2652
|
+
score: et(k, h)
|
|
2645
2653
|
})).filter((k) => k.score > 0).sort((k, S) => S.score - k.score).slice(0, 10).map((k) => I(k.cmd, k.score));
|
|
2646
|
-
return N.length > 0 &&
|
|
2654
|
+
return N.length > 0 && C.push({
|
|
2647
2655
|
id: "everywhere:actions",
|
|
2648
|
-
label:
|
|
2656
|
+
label: l("Actions"),
|
|
2649
2657
|
items: N
|
|
2650
|
-
}),
|
|
2658
|
+
}), b.length > 0 && C.push({
|
|
2651
2659
|
id: "everywhere:settings",
|
|
2652
|
-
label:
|
|
2653
|
-
items:
|
|
2654
|
-
}),
|
|
2660
|
+
label: l("Settings"),
|
|
2661
|
+
items: b.slice(0, 6)
|
|
2662
|
+
}), d.length > 0 && C.push({
|
|
2655
2663
|
id: "everywhere:database",
|
|
2656
|
-
label:
|
|
2657
|
-
items:
|
|
2658
|
-
}),
|
|
2664
|
+
label: l("Database"),
|
|
2665
|
+
items: d.slice(0, 10)
|
|
2666
|
+
}), C;
|
|
2659
2667
|
}
|
|
2660
|
-
var
|
|
2668
|
+
var ti = ['<div class="', '"><div class="', '" role="dialog" aria-modal="true"', "><div", ">", "</div>", "", "</div></div>"], ni = ["<div", ">", "</div>"], ri = ["<section", "><div", ">", "</div><div", ">", "</div></section>"], We = ["<span", ">", "</span>"], ot = ["<span", "><span", ">", "</span>", "</span>"], at = ['<span class="', '">', "</span>"], oi = ["<span", ' aria-hidden="true">', "</span>"], ai = ['<span style="', '">', "", "", "</span>"], si = ['<div class="', '">', "", "</div>"], ii = ["<span", "><span", ">", "</span></span>"], ci = ["<section", "><div", ">", "</div><div", ">", "", "</div></section>"];
|
|
2661
2669
|
const ge = "__palette_back__";
|
|
2662
|
-
function
|
|
2663
|
-
return e.kind === "command" && e.rawCommand ?
|
|
2670
|
+
function li(e) {
|
|
2671
|
+
return e.kind === "command" && e.rawCommand ? ms(e.rawCommand) : [e.title, e.description, e.detail].filter((r) => !!r).join(", ");
|
|
2664
2672
|
}
|
|
2665
|
-
function
|
|
2673
|
+
function ic(e) {
|
|
2666
2674
|
const r = dt(), a = Re(() => e.open, "command-palette", {
|
|
2667
2675
|
type: "modal",
|
|
2668
2676
|
document: () => e.host().document
|
|
2669
|
-
}), [c,
|
|
2670
|
-
let
|
|
2671
|
-
const N =
|
|
2677
|
+
}), [c, u] = D(""), [m, b] = D("everywhere"), [d, h] = D(null), [_, I] = D(null);
|
|
2678
|
+
let C;
|
|
2679
|
+
const N = Q(() => {
|
|
2672
2680
|
const s = /* @__PURE__ */ new Map();
|
|
2673
2681
|
for (const i of e.commands)
|
|
2674
2682
|
s.set(i.id, i);
|
|
2675
2683
|
return s;
|
|
2676
|
-
}), k =
|
|
2684
|
+
}), k = Q(() => {
|
|
2677
2685
|
var i;
|
|
2678
2686
|
if (_()) return null;
|
|
2679
2687
|
const s = c().toLowerCase();
|
|
2680
2688
|
return ((i = e.prefixModes) == null ? void 0 : i.find((p) => s.startsWith(p.prefix))) ?? null;
|
|
2681
|
-
}), S =
|
|
2689
|
+
}), S = Q(() => {
|
|
2682
2690
|
const s = _();
|
|
2683
2691
|
if (s) return s;
|
|
2684
2692
|
const i = k();
|
|
@@ -2686,18 +2694,18 @@ function sc(e) {
|
|
|
2686
2694
|
rootCommandId: `__prefix__:${i.prefix}`,
|
|
2687
2695
|
descriptor: i.build()
|
|
2688
2696
|
} : null;
|
|
2689
|
-
}), P =
|
|
2697
|
+
}), P = Q(() => {
|
|
2690
2698
|
const s = S();
|
|
2691
2699
|
if (!s) return [];
|
|
2692
2700
|
const i = k(), p = (i ? c().slice(i.prefix.length) : c()).trim().toLowerCase();
|
|
2693
2701
|
return p ? s.descriptor.items.map((O) => ({
|
|
2694
2702
|
item: O,
|
|
2695
|
-
score:
|
|
2703
|
+
score: ds(O, p)
|
|
2696
2704
|
})).filter((O) => O.score > 0).sort((O, se) => se.score - O.score).map((O) => O.item) : s.descriptor.items;
|
|
2697
|
-
}), T =
|
|
2705
|
+
}), T = Zs({
|
|
2698
2706
|
query: c,
|
|
2699
2707
|
enabled: () => e.open && !S() && (m() === "everywhere" || m() === "database")
|
|
2700
|
-
}), j =
|
|
2708
|
+
}), j = Q(() => !e.open || S() ? [] : m() !== "everywhere" && m() !== "settings" ? [] : Qs(r.settingsSearch, c(), m() === "settings" ? 40 : 8)), M = Q(() => S() ? [] : ei({
|
|
2701
2709
|
mode: m(),
|
|
2702
2710
|
query: c(),
|
|
2703
2711
|
commands: e.commands,
|
|
@@ -2706,20 +2714,20 @@ function sc(e) {
|
|
|
2706
2714
|
settingsItems: j(),
|
|
2707
2715
|
databaseItems: T.items(),
|
|
2708
2716
|
hasWorkspaceContext: T.hasWorkspaceContext()
|
|
2709
|
-
})),
|
|
2717
|
+
})), X = Q(() => {
|
|
2710
2718
|
const s = /* @__PURE__ */ new Map();
|
|
2711
2719
|
for (const i of M())
|
|
2712
2720
|
for (const p of i.items)
|
|
2713
2721
|
s.set(p.id, p);
|
|
2714
2722
|
return s;
|
|
2715
|
-
}), y =
|
|
2723
|
+
}), y = Q(() => _() ? [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
2724
|
const i = y();
|
|
2717
2725
|
if (i.length === 0) return;
|
|
2718
|
-
const p =
|
|
2719
|
-
|
|
2726
|
+
const p = d(), O = i.findIndex((we) => we === p), fe = ((O >= 0 ? O : 0) + s + i.length) % i.length;
|
|
2727
|
+
h(i[fe] ?? null);
|
|
2720
2728
|
}, V = (s) => {
|
|
2721
2729
|
const i = ["everywhere", "commands", "settings", "database"], O = (i.indexOf(m()) + s + i.length) % i.length;
|
|
2722
|
-
|
|
2730
|
+
b(i[O] ?? "everywhere");
|
|
2723
2731
|
}, de = (s) => {
|
|
2724
2732
|
var p;
|
|
2725
2733
|
if (!s.submenu) return;
|
|
@@ -2727,9 +2735,9 @@ function sc(e) {
|
|
|
2727
2735
|
I({
|
|
2728
2736
|
rootCommandId: s.id,
|
|
2729
2737
|
descriptor: i
|
|
2730
|
-
}),
|
|
2738
|
+
}), u(""), h(((p = i.items[0]) == null ? void 0 : p.id) ?? ge), queueMicrotask(() => C == null ? void 0 : C.focus());
|
|
2731
2739
|
}, te = () => {
|
|
2732
|
-
I(null),
|
|
2740
|
+
I(null), u(""), h(null), queueMicrotask(() => C == null ? void 0 : C.focus());
|
|
2733
2741
|
}, ie = (s) => {
|
|
2734
2742
|
if (s.enabled) {
|
|
2735
2743
|
if (s.submenu) {
|
|
@@ -2744,7 +2752,7 @@ function sc(e) {
|
|
|
2744
2752
|
}, f = (s) => {
|
|
2745
2753
|
const i = _();
|
|
2746
2754
|
i && e.onCommandExecuted(i.rootCommandId), s.run(), e.onClose();
|
|
2747
|
-
},
|
|
2755
|
+
}, v = (s) => {
|
|
2748
2756
|
if (s.enabled) {
|
|
2749
2757
|
if (s.kind === "command" && s.rawCommand) {
|
|
2750
2758
|
ie(s.rawCommand);
|
|
@@ -2756,10 +2764,10 @@ function sc(e) {
|
|
|
2756
2764
|
oe(() => {
|
|
2757
2765
|
var i;
|
|
2758
2766
|
if (!e.open) {
|
|
2759
|
-
I(null),
|
|
2767
|
+
I(null), b("everywhere"), h(null);
|
|
2760
2768
|
return;
|
|
2761
2769
|
}
|
|
2762
|
-
|
|
2770
|
+
u(""), b("everywhere"), I(null);
|
|
2763
2771
|
const s = e.consumePendingPickerId();
|
|
2764
2772
|
if (s !== null) {
|
|
2765
2773
|
const p = N().get(s);
|
|
@@ -2768,21 +2776,21 @@ function sc(e) {
|
|
|
2768
2776
|
I({
|
|
2769
2777
|
rootCommandId: p.id,
|
|
2770
2778
|
descriptor: O
|
|
2771
|
-
}),
|
|
2779
|
+
}), h(((i = O.items[0]) == null ? void 0 : i.id) ?? ge);
|
|
2772
2780
|
}
|
|
2773
2781
|
}
|
|
2774
|
-
queueMicrotask(() =>
|
|
2782
|
+
queueMicrotask(() => C == null ? void 0 : C.focus());
|
|
2775
2783
|
}), oe(() => {
|
|
2776
2784
|
if (!e.open) return;
|
|
2777
|
-
const s = y(), i =
|
|
2785
|
+
const s = y(), i = d();
|
|
2778
2786
|
if (s.length === 0) {
|
|
2779
|
-
|
|
2787
|
+
h(null);
|
|
2780
2788
|
return;
|
|
2781
2789
|
}
|
|
2782
|
-
(!i || !s.includes(i)) &&
|
|
2790
|
+
(!i || !s.includes(i)) && h(s[0] ?? null);
|
|
2783
2791
|
}), oe(() => {
|
|
2784
2792
|
if (!e.open) return;
|
|
2785
|
-
const s =
|
|
2793
|
+
const s = d();
|
|
2786
2794
|
s && queueMicrotask(() => {
|
|
2787
2795
|
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}"]`);
|
|
2788
2796
|
p == null || p.scrollIntoView({
|
|
@@ -2814,7 +2822,7 @@ function sc(e) {
|
|
|
2814
2822
|
return;
|
|
2815
2823
|
}
|
|
2816
2824
|
if (he(p, "Enter")) {
|
|
2817
|
-
const O =
|
|
2825
|
+
const O = d();
|
|
2818
2826
|
if (!O) return;
|
|
2819
2827
|
if (p.preventDefault(), S()) {
|
|
2820
2828
|
if (O === ge) {
|
|
@@ -2825,13 +2833,13 @@ function sc(e) {
|
|
|
2825
2833
|
we && f(we);
|
|
2826
2834
|
return;
|
|
2827
2835
|
}
|
|
2828
|
-
const se =
|
|
2836
|
+
const se = X().get(O);
|
|
2829
2837
|
if (se) {
|
|
2830
2838
|
if (p.altKey && se.kind === "command" && se.rawCommand) {
|
|
2831
2839
|
ae(se.rawCommand);
|
|
2832
2840
|
return;
|
|
2833
2841
|
}
|
|
2834
|
-
|
|
2842
|
+
v(se);
|
|
2835
2843
|
return;
|
|
2836
2844
|
}
|
|
2837
2845
|
const fe = N().get(O);
|
|
@@ -2845,29 +2853,29 @@ function sc(e) {
|
|
|
2845
2853
|
}
|
|
2846
2854
|
}
|
|
2847
2855
|
}, i = e.host();
|
|
2848
|
-
i.addEventListener("keydown", s),
|
|
2856
|
+
i.addEventListener("keydown", s), U(() => {
|
|
2849
2857
|
i.removeEventListener("keydown", s);
|
|
2850
2858
|
});
|
|
2851
2859
|
});
|
|
2852
|
-
const
|
|
2860
|
+
const $ = (s) => s.items.length === 0 && s.emptyText !== void 0 ? s.emptyText : l("No matches."), B = (s) => {
|
|
2853
2861
|
if (m() === "everywhere") {
|
|
2854
2862
|
if (s.startsWith("/") || s.startsWith(">")) {
|
|
2855
|
-
|
|
2863
|
+
b("commands"), u(s.slice(1));
|
|
2856
2864
|
return;
|
|
2857
2865
|
}
|
|
2858
2866
|
if (s.startsWith("#")) {
|
|
2859
|
-
|
|
2867
|
+
b("settings"), u(s.slice(1));
|
|
2860
2868
|
return;
|
|
2861
2869
|
}
|
|
2862
2870
|
if (s.startsWith("@")) {
|
|
2863
|
-
|
|
2871
|
+
b("database"), u(s.slice(1));
|
|
2864
2872
|
return;
|
|
2865
2873
|
}
|
|
2866
2874
|
}
|
|
2867
|
-
|
|
2875
|
+
u(s);
|
|
2868
2876
|
}, F = () => {
|
|
2869
2877
|
const s = _();
|
|
2870
|
-
return s ? s.descriptor.title : m() === "everywhere" ?
|
|
2878
|
+
return s ? s.descriptor.title : m() === "everywhere" ? l("Search everywhere...") : m() === "commands" ? l("Search commands...") : m() === "settings" ? l("Search settings...") : m() === "database" ? l("Search database objects...") : l("Search commands...");
|
|
2871
2879
|
};
|
|
2872
2880
|
return Ft({
|
|
2873
2881
|
open: () => e.open,
|
|
@@ -2883,7 +2891,7 @@ function sc(e) {
|
|
|
2883
2891
|
return e.host().document.body;
|
|
2884
2892
|
},
|
|
2885
2893
|
get children() {
|
|
2886
|
-
return g(
|
|
2894
|
+
return g(ti, `${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(l("Command Palette"), !0), !1), o("class", t(A.searchRow, !0), !1), t(n(Ve, {
|
|
2887
2895
|
get class() {
|
|
2888
2896
|
return A.searchInput;
|
|
2889
2897
|
},
|
|
@@ -2903,9 +2911,9 @@ function sc(e) {
|
|
|
2903
2911
|
return !S();
|
|
2904
2912
|
},
|
|
2905
2913
|
get children() {
|
|
2906
|
-
return n(
|
|
2914
|
+
return n(Ks, {
|
|
2907
2915
|
activeMode: m,
|
|
2908
|
-
onModeChange:
|
|
2916
|
+
onModeChange: b,
|
|
2909
2917
|
get hasWorkspaceContext() {
|
|
2910
2918
|
return T.hasWorkspaceContext;
|
|
2911
2919
|
}
|
|
@@ -2944,7 +2952,7 @@ function sc(e) {
|
|
|
2944
2952
|
return n(ke, {
|
|
2945
2953
|
size: "sm",
|
|
2946
2954
|
get title() {
|
|
2947
|
-
return
|
|
2955
|
+
return l("No matches found.");
|
|
2948
2956
|
}
|
|
2949
2957
|
});
|
|
2950
2958
|
},
|
|
@@ -2952,7 +2960,7 @@ function sc(e) {
|
|
|
2952
2960
|
return n(ke, {
|
|
2953
2961
|
size: "sm",
|
|
2954
2962
|
get title() {
|
|
2955
|
-
return
|
|
2963
|
+
return l("No commands found.");
|
|
2956
2964
|
}
|
|
2957
2965
|
});
|
|
2958
2966
|
}
|
|
@@ -2962,7 +2970,7 @@ function sc(e) {
|
|
|
2962
2970
|
return n(ke, {
|
|
2963
2971
|
size: "sm",
|
|
2964
2972
|
get title() {
|
|
2965
|
-
return
|
|
2973
|
+
return l("No settings found.");
|
|
2966
2974
|
}
|
|
2967
2975
|
});
|
|
2968
2976
|
}
|
|
@@ -2977,7 +2985,7 @@ function sc(e) {
|
|
|
2977
2985
|
return n(ke, {
|
|
2978
2986
|
size: "sm",
|
|
2979
2987
|
get title() {
|
|
2980
|
-
return
|
|
2988
|
+
return l("No database connected.");
|
|
2981
2989
|
}
|
|
2982
2990
|
});
|
|
2983
2991
|
},
|
|
@@ -2990,12 +2998,12 @@ function sc(e) {
|
|
|
2990
2998
|
return n(ke, {
|
|
2991
2999
|
size: "sm",
|
|
2992
3000
|
get title() {
|
|
2993
|
-
return
|
|
3001
|
+
return l("No database objects found.");
|
|
2994
3002
|
}
|
|
2995
3003
|
});
|
|
2996
3004
|
},
|
|
2997
3005
|
get children() {
|
|
2998
|
-
return g(
|
|
3006
|
+
return g(ni, o("class", t(ue.statusRow, !0), !1), t(l("Loading objects...")));
|
|
2999
3007
|
}
|
|
3000
3008
|
});
|
|
3001
3009
|
}
|
|
@@ -3008,25 +3016,25 @@ function sc(e) {
|
|
|
3008
3016
|
get each() {
|
|
3009
3017
|
return M();
|
|
3010
3018
|
},
|
|
3011
|
-
children: (s) => g(
|
|
3019
|
+
children: (s) => g(ri, 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, {
|
|
3012
3020
|
get each() {
|
|
3013
3021
|
return s.items;
|
|
3014
3022
|
},
|
|
3015
|
-
children: (i) => g(
|
|
3023
|
+
children: (i) => g(si, `${t(A.commandRow, !0)} ${d() === i.id ? t(A.commandRowActive, !0) : ""}`, t(n(ye, {
|
|
3016
3024
|
type: "button",
|
|
3017
3025
|
get class() {
|
|
3018
|
-
return `${A.commandItem} ${
|
|
3026
|
+
return `${A.commandItem} ${d() === i.id ? A.commandItemActive : ""}`;
|
|
3019
3027
|
},
|
|
3020
3028
|
get "attr:data-cmd-entry-id"() {
|
|
3021
3029
|
return i.id;
|
|
3022
3030
|
},
|
|
3023
3031
|
get "aria-label"() {
|
|
3024
|
-
return
|
|
3032
|
+
return li(i);
|
|
3025
3033
|
},
|
|
3026
3034
|
onMouseEnter: () => {
|
|
3027
|
-
i.enabled &&
|
|
3035
|
+
i.enabled && h(i.id);
|
|
3028
3036
|
},
|
|
3029
|
-
onClick: () =>
|
|
3037
|
+
onClick: () => v(i),
|
|
3030
3038
|
get disabled() {
|
|
3031
3039
|
return !i.enabled;
|
|
3032
3040
|
},
|
|
@@ -3038,26 +3046,26 @@ function sc(e) {
|
|
|
3038
3046
|
get children() {
|
|
3039
3047
|
return g(We, o("class", t(A.commandDescription, !0), !1), t(i.description));
|
|
3040
3048
|
}
|
|
3041
|
-
}))), g(
|
|
3049
|
+
}))), g(ai, Z("display:", "inline-flex") + Z(";align-items:", "center") + Z(";gap:", "0.4rem"), t(n(w, {
|
|
3042
3050
|
get when() {
|
|
3043
3051
|
return i.kind === "setting";
|
|
3044
3052
|
},
|
|
3045
3053
|
get children() {
|
|
3046
|
-
return g(at, `${t(ue.badge, !0)} ${t(ue.badgeSetting, !0)}`, t(
|
|
3054
|
+
return g(at, `${t(ue.badge, !0)} ${t(ue.badgeSetting, !0)}`, t(l("Setting")));
|
|
3047
3055
|
}
|
|
3048
3056
|
})), t(n(w, {
|
|
3049
3057
|
get when() {
|
|
3050
3058
|
return i.kind === "database-object";
|
|
3051
3059
|
},
|
|
3052
3060
|
get children() {
|
|
3053
|
-
return g(at, `${t(ue.badge, !0)} ${t(ue.badgeDb, !0)}`, t(i.objectType ||
|
|
3061
|
+
return g(at, `${t(ue.badge, !0)} ${t(ue.badgeDb, !0)}`, t(i.objectType || l("Database")));
|
|
3054
3062
|
}
|
|
3055
3063
|
})), t(n(w, {
|
|
3056
3064
|
get when() {
|
|
3057
3065
|
return i.shortcut;
|
|
3058
3066
|
},
|
|
3059
3067
|
get children() {
|
|
3060
|
-
return g(
|
|
3068
|
+
return g(oi, o("class", t(A.commandShortcut, !0), !1), t(i.shortcut));
|
|
3061
3069
|
}
|
|
3062
3070
|
})))];
|
|
3063
3071
|
}
|
|
@@ -3066,7 +3074,7 @@ function sc(e) {
|
|
|
3066
3074
|
return ee(() => !!(i.kind === "command" && i.rawCommand))() && e.onConfigureKeybinding;
|
|
3067
3075
|
},
|
|
3068
3076
|
get children() {
|
|
3069
|
-
return n(
|
|
3077
|
+
return n(G, {
|
|
3070
3078
|
get class() {
|
|
3071
3079
|
return A.configureBtn;
|
|
3072
3080
|
},
|
|
@@ -3075,10 +3083,10 @@ function sc(e) {
|
|
|
3075
3083
|
iconOnly: !0,
|
|
3076
3084
|
tabIndex: -1,
|
|
3077
3085
|
get "aria-label"() {
|
|
3078
|
-
return
|
|
3086
|
+
return l("Configure Keybinding");
|
|
3079
3087
|
},
|
|
3080
3088
|
get title() {
|
|
3081
|
-
return
|
|
3089
|
+
return l("Configure Keybinding");
|
|
3082
3090
|
},
|
|
3083
3091
|
onClick: (p) => {
|
|
3084
3092
|
p.stopPropagation(), i.rawCommand && ae(i.rawCommand);
|
|
@@ -3096,7 +3104,7 @@ function sc(e) {
|
|
|
3096
3104
|
}
|
|
3097
3105
|
});
|
|
3098
3106
|
},
|
|
3099
|
-
children: (s) => g(
|
|
3107
|
+
children: (s) => g(ci, 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, {
|
|
3100
3108
|
get when() {
|
|
3101
3109
|
return _();
|
|
3102
3110
|
},
|
|
@@ -3104,13 +3112,13 @@ function sc(e) {
|
|
|
3104
3112
|
return n(ye, {
|
|
3105
3113
|
type: "button",
|
|
3106
3114
|
get class() {
|
|
3107
|
-
return `${A.commandItem} ${
|
|
3115
|
+
return `${A.commandItem} ${d() === ge ? A.commandItemActive : ""}`;
|
|
3108
3116
|
},
|
|
3109
3117
|
"attr:data-cmd-entry-id": ge,
|
|
3110
|
-
onMouseEnter: () =>
|
|
3118
|
+
onMouseEnter: () => h(ge),
|
|
3111
3119
|
onClick: () => te(),
|
|
3112
3120
|
get children() {
|
|
3113
|
-
return g(
|
|
3121
|
+
return g(ii, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(l("← Back")));
|
|
3114
3122
|
}
|
|
3115
3123
|
});
|
|
3116
3124
|
}
|
|
@@ -3122,7 +3130,7 @@ function sc(e) {
|
|
|
3122
3130
|
return n(ke, {
|
|
3123
3131
|
size: "sm",
|
|
3124
3132
|
get title() {
|
|
3125
|
-
return
|
|
3133
|
+
return $(s().descriptor);
|
|
3126
3134
|
}
|
|
3127
3135
|
});
|
|
3128
3136
|
},
|
|
@@ -3134,12 +3142,12 @@ function sc(e) {
|
|
|
3134
3142
|
children: (i) => n(ye, {
|
|
3135
3143
|
type: "button",
|
|
3136
3144
|
get class() {
|
|
3137
|
-
return `${A.commandItem} ${
|
|
3145
|
+
return `${A.commandItem} ${d() === i.id ? A.commandItemActive : ""}`;
|
|
3138
3146
|
},
|
|
3139
3147
|
get "attr:data-cmd-entry-id"() {
|
|
3140
3148
|
return i.id;
|
|
3141
3149
|
},
|
|
3142
|
-
onMouseEnter: () =>
|
|
3150
|
+
onMouseEnter: () => h(i.id),
|
|
3143
3151
|
onClick: () => f(i),
|
|
3144
3152
|
get children() {
|
|
3145
3153
|
return [g(ot, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(i.title), t(n(w, {
|
|
@@ -3154,7 +3162,7 @@ function sc(e) {
|
|
|
3154
3162
|
return i.isCurrent;
|
|
3155
3163
|
},
|
|
3156
3164
|
get children() {
|
|
3157
|
-
return g(We, o("class", t(A.commandShortcut, !0), !1), t(
|
|
3165
|
+
return g(We, o("class", t(A.commandShortcut, !0), !1), t(l("Current")));
|
|
3158
3166
|
}
|
|
3159
3167
|
})];
|
|
3160
3168
|
}
|
|
@@ -3171,54 +3179,54 @@ function sc(e) {
|
|
|
3171
3179
|
});
|
|
3172
3180
|
}
|
|
3173
3181
|
export {
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3182
|
+
zi as A,
|
|
3183
|
+
Aa as B,
|
|
3184
|
+
ic as C,
|
|
3177
3185
|
Kn as D,
|
|
3178
3186
|
Cn as E,
|
|
3179
|
-
|
|
3187
|
+
sc as F,
|
|
3180
3188
|
mt as G,
|
|
3181
|
-
|
|
3182
|
-
|
|
3189
|
+
Vi as H,
|
|
3190
|
+
Fi as I,
|
|
3183
3191
|
kt as J,
|
|
3184
3192
|
_n as K,
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3193
|
+
ec as L,
|
|
3194
|
+
Xi as M,
|
|
3195
|
+
Va as N,
|
|
3188
3196
|
Je as O,
|
|
3189
|
-
|
|
3197
|
+
Ui as P,
|
|
3190
3198
|
De as Q,
|
|
3191
|
-
|
|
3199
|
+
ji as R,
|
|
3192
3200
|
Be as S,
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3201
|
+
Oi as T,
|
|
3202
|
+
Hi as U,
|
|
3203
|
+
rc as V,
|
|
3204
|
+
qi as W,
|
|
3205
|
+
nc as X,
|
|
3206
|
+
Wi as a,
|
|
3199
3207
|
Xe as b,
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3208
|
+
Yi as c,
|
|
3209
|
+
Qi as d,
|
|
3210
|
+
Zi as e,
|
|
3211
|
+
Gi as f,
|
|
3212
|
+
Ro as g,
|
|
3213
|
+
Do as h,
|
|
3214
|
+
Ji as i,
|
|
3215
|
+
Mo as j,
|
|
3216
|
+
Eo as k,
|
|
3209
3217
|
pn as l,
|
|
3210
3218
|
wn as m,
|
|
3211
3219
|
kn as n,
|
|
3212
3220
|
Pe as o,
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3221
|
+
Ni as p,
|
|
3222
|
+
qa as q,
|
|
3223
|
+
ja as r,
|
|
3224
|
+
Ha as s,
|
|
3225
|
+
tc as t,
|
|
3226
|
+
Ki as u,
|
|
3219
3227
|
$n as v,
|
|
3220
|
-
|
|
3221
|
-
|
|
3228
|
+
oc as w,
|
|
3229
|
+
ac as x,
|
|
3222
3230
|
Un as y,
|
|
3223
3231
|
Ie as z
|
|
3224
3232
|
};
|