@kong-ui-public/app-layout 4.2.63 → 4.2.64-pr.1882.c40f0956a.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/dist/app-layout.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as te, resolveComponent as he, openBlock as p, createBlock as Y, withCtx as
|
|
1
|
+
import { defineComponent as te, resolveComponent as he, openBlock as p, createBlock as Y, withCtx as R, renderSlot as _, createElementBlock as w, Fragment as $e, renderList as Te, normalizeClass as re, createTextVNode as lt, toDisplayString as X, computed as k, createSlots as Ze, createVNode as Ne, createCommentVNode as C, createElementVNode as I, createStaticVNode as vn, useCssVars as dt, useSlots as Ge, reactive as je, onMounted as qe, resolveDynamicComponent as bn, withKeys as hn, ref as z, watch as Ke, onUnmounted as pn, Comment as mn, cloneVNode as gn, nextTick as Rt, onBeforeUnmount as Ht, unref as yn, withModifiers as wn, watchEffect as kn, toRef as Tn } from "vue";
|
|
2
2
|
const Sn = /* @__PURE__ */ te({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
@@ -19,15 +19,15 @@ const Sn = /* @__PURE__ */ te({
|
|
|
19
19
|
},
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (t, r) => {
|
|
22
|
-
const a = he("KDropdownItem"),
|
|
23
|
-
return p(), Y(
|
|
22
|
+
const a = he("KDropdownItem"), l = he("KDropdown");
|
|
23
|
+
return p(), Y(l, {
|
|
24
24
|
class: "account-dropdown",
|
|
25
25
|
"kpop-attributes": { placement: "bottom-end" },
|
|
26
26
|
"trigger-text": n.userInitials,
|
|
27
27
|
width: n.width
|
|
28
28
|
}, {
|
|
29
|
-
items:
|
|
30
|
-
|
|
29
|
+
items: R(({ handleSelection: u }) => [
|
|
30
|
+
_(t.$slots, "default", {}, () => [
|
|
31
31
|
(p(!0), w($e, null, Te(n.options, (o) => (p(), Y(a, {
|
|
32
32
|
key: o.value,
|
|
33
33
|
class: re({ "has-divider": o.hasDivider }),
|
|
@@ -35,8 +35,8 @@ const Sn = /* @__PURE__ */ te({
|
|
|
35
35
|
"has-divider": o.hasDivider,
|
|
36
36
|
onClick: (v) => u(o)
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
|
|
38
|
+
default: R(() => [
|
|
39
|
+
_(t.$slots, "default", { option: o }, () => [
|
|
40
40
|
lt(X(o.label), 1)
|
|
41
41
|
], !0)
|
|
42
42
|
]),
|
|
@@ -50,8 +50,8 @@ const Sn = /* @__PURE__ */ te({
|
|
|
50
50
|
}
|
|
51
51
|
}), ae = (n, t) => {
|
|
52
52
|
const r = n.__vccOpts || n;
|
|
53
|
-
for (const [a,
|
|
54
|
-
r[a] =
|
|
53
|
+
for (const [a, l] of t)
|
|
54
|
+
r[a] = l;
|
|
55
55
|
return r;
|
|
56
56
|
}, Ci = /* @__PURE__ */ ae(Sn, [["__scopeId", "data-v-b33191a2"]]), _n = {
|
|
57
57
|
class: "about-section-title",
|
|
@@ -123,13 +123,13 @@ const Sn = /* @__PURE__ */ te({
|
|
|
123
123
|
},
|
|
124
124
|
setup(n) {
|
|
125
125
|
const t = n, r = k(() => !!t.modified && t.modified !== t.created);
|
|
126
|
-
return (a,
|
|
126
|
+
return (a, l) => {
|
|
127
127
|
const u = he("KSkeletonBox"), o = he("KCard");
|
|
128
128
|
return p(), Y(o, {
|
|
129
129
|
class: "kong-ui-app-about-section",
|
|
130
130
|
"title-tag": "h2"
|
|
131
131
|
}, Ze({
|
|
132
|
-
default:
|
|
132
|
+
default: R(() => [
|
|
133
133
|
n.isLoading ? (p(), w("div", Nn, [
|
|
134
134
|
Ne(u, {
|
|
135
135
|
height: "2",
|
|
@@ -140,40 +140,40 @@ const Sn = /* @__PURE__ */ te({
|
|
|
140
140
|
width: "100"
|
|
141
141
|
})
|
|
142
142
|
])) : (p(), w("div", An, [
|
|
143
|
-
n.description ? (p(), w("p", Fn, X(n.description), 1)) :
|
|
143
|
+
n.description ? (p(), w("p", Fn, X(n.description), 1)) : C("", !0),
|
|
144
144
|
a.$slots.default ? (p(), w("div", xn, [
|
|
145
|
-
|
|
146
|
-
])) :
|
|
147
|
-
a.$slots["divider-section"] ? (p(), w("hr", Dn)) :
|
|
145
|
+
_(a.$slots, "default", {}, void 0, !0)
|
|
146
|
+
])) : C("", !0),
|
|
147
|
+
a.$slots["divider-section"] ? (p(), w("hr", Dn)) : C("", !0),
|
|
148
148
|
a.$slots["divider-section"] ? (p(), w("div", Rn, [
|
|
149
|
-
|
|
150
|
-
])) :
|
|
149
|
+
_(a.$slots, "divider-section", {}, void 0, !0)
|
|
150
|
+
])) : C("", !0)
|
|
151
151
|
]))
|
|
152
152
|
]),
|
|
153
153
|
_: 2
|
|
154
154
|
}, [
|
|
155
155
|
n.title ? {
|
|
156
156
|
name: "title",
|
|
157
|
-
fn:
|
|
157
|
+
fn: R(() => [
|
|
158
158
|
I("span", _n, X(n.title), 1)
|
|
159
159
|
]),
|
|
160
160
|
key: "0"
|
|
161
161
|
} : void 0,
|
|
162
162
|
a.$slots.actions || n.created || n.modified ? {
|
|
163
163
|
name: "actions",
|
|
164
|
-
fn:
|
|
164
|
+
fn: R(() => [
|
|
165
165
|
I("div", In, [
|
|
166
166
|
n.created || n.modified ? (p(), w("div", {
|
|
167
167
|
key: 0,
|
|
168
168
|
class: re(["about-section-timestamps", { "has-actions": a.$slots.actions }])
|
|
169
169
|
}, [
|
|
170
|
-
n.created ? (p(), w("span", On, X(n.createdLabel) + ": " + X(n.created), 1)) :
|
|
171
|
-
n.created && r.value ? (p(), w("span", Cn, "->")) :
|
|
172
|
-
r.value ? (p(), w("span", $n, X(n.modifiedLabel) + ": " + X(n.modified), 1)) :
|
|
173
|
-
], 2)) :
|
|
170
|
+
n.created ? (p(), w("span", On, X(n.createdLabel) + ": " + X(n.created), 1)) : C("", !0),
|
|
171
|
+
n.created && r.value ? (p(), w("span", Cn, "->")) : C("", !0),
|
|
172
|
+
r.value ? (p(), w("span", $n, X(n.modifiedLabel) + ": " + X(n.modified), 1)) : C("", !0)
|
|
173
|
+
], 2)) : C("", !0),
|
|
174
174
|
a.$slots.actions ? (p(), w("div", En, [
|
|
175
|
-
|
|
176
|
-
])) :
|
|
175
|
+
_(a.$slots, "actions", {}, void 0, !0)
|
|
176
|
+
])) : C("", !0)
|
|
177
177
|
])
|
|
178
178
|
]),
|
|
179
179
|
key: "1"
|
|
@@ -200,7 +200,7 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
200
200
|
Ne(jn)
|
|
201
201
|
]),
|
|
202
202
|
I("div", Hn, [
|
|
203
|
-
|
|
203
|
+
_(t.$slots, "default", {}, () => [
|
|
204
204
|
r[0] || (r[0] = I("h2", null, "An unexpected error has occurred", -1)),
|
|
205
205
|
r[1] || (r[1] = I("p", null, [
|
|
206
206
|
lt("Go back to the previous page or "),
|
|
@@ -236,16 +236,16 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
236
236
|
"27c93a10": u.value.top,
|
|
237
237
|
"0f284bf5": u.value.zIndex,
|
|
238
238
|
d1659a78: u.value.left,
|
|
239
|
-
"3d9232e8":
|
|
240
|
-
"038c3c78":
|
|
239
|
+
"3d9232e8": l.marginRight,
|
|
240
|
+
"038c3c78": l.width
|
|
241
241
|
}));
|
|
242
|
-
const t = n, r = Ge(), a = k(() => !!r.logo),
|
|
242
|
+
const t = n, r = Ge(), a = k(() => !!r.logo), l = je({
|
|
243
243
|
marginRight: "0",
|
|
244
244
|
width: "0"
|
|
245
245
|
});
|
|
246
246
|
qe(() => {
|
|
247
247
|
var o, v;
|
|
248
|
-
(v = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && v.length ? (
|
|
248
|
+
(v = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && v.length ? (l.marginRight = "32px", l.width = "calc(240px - 32px)") : (l.marginRight = "0", l.width = "0");
|
|
249
249
|
});
|
|
250
250
|
const u = k(() => ({
|
|
251
251
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
@@ -255,21 +255,21 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
255
255
|
return (o, v) => (p(), w("header", Wn, [
|
|
256
256
|
I("div", zn, [
|
|
257
257
|
I("div", Vn, [
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
_(o.$slots, "mobile-sidebar-toggle"),
|
|
259
|
+
_(o.$slots, "mobile-logo")
|
|
260
260
|
]),
|
|
261
261
|
a.value ? (p(), w("div", Gn, [
|
|
262
|
-
|
|
263
|
-
])) :
|
|
262
|
+
_(o.$slots, "logo")
|
|
263
|
+
])) : C("", !0),
|
|
264
264
|
I("div", qn, [
|
|
265
265
|
I("div", Xn, [
|
|
266
|
-
|
|
266
|
+
_(o.$slots, "left")
|
|
267
267
|
]),
|
|
268
268
|
I("div", Yn, [
|
|
269
|
-
|
|
269
|
+
_(o.$slots, "center")
|
|
270
270
|
]),
|
|
271
271
|
I("div", Jn, [
|
|
272
|
-
|
|
272
|
+
_(o.$slots, "right")
|
|
273
273
|
])
|
|
274
274
|
])
|
|
275
275
|
])
|
|
@@ -286,11 +286,11 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
286
286
|
},
|
|
287
287
|
setup(n) {
|
|
288
288
|
const t = n, r = k(() => t.count ? t.count > st ? `${st}+` : t.count.toString() : "");
|
|
289
|
-
return (a,
|
|
289
|
+
return (a, l) => r.value ? (p(), w("div", {
|
|
290
290
|
key: 0,
|
|
291
291
|
class: "item-badge",
|
|
292
292
|
title: (n.count || 0) > st ? String(n.count) : void 0
|
|
293
|
-
}, X(r.value), 9, tr)) :
|
|
293
|
+
}, X(r.value), 9, tr)) : C("", !0);
|
|
294
294
|
}
|
|
295
295
|
}), nr = /* @__PURE__ */ ae(ar, [["__scopeId", "data-v-afb0d903"]]), rr = ["data-testid"], ir = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], or = {
|
|
296
296
|
key: 0,
|
|
@@ -313,53 +313,53 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
313
313
|
},
|
|
314
314
|
emits: ["click"],
|
|
315
315
|
setup(n, { emit: t }) {
|
|
316
|
-
const r = t, a = n,
|
|
317
|
-
r("click",
|
|
318
|
-
},
|
|
319
|
-
v(
|
|
316
|
+
const r = t, a = n, l = k(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), u = k(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), o = k(() => a.subnavItem && a.item.badgeCount !== void 0), v = (g) => {
|
|
317
|
+
r("click", g);
|
|
318
|
+
}, y = (g, F, E) => {
|
|
319
|
+
v(F), typeof E == "function" && (g.preventDefault(), E());
|
|
320
320
|
};
|
|
321
|
-
return (
|
|
322
|
-
var
|
|
323
|
-
const
|
|
321
|
+
return (g, F) => {
|
|
322
|
+
var B;
|
|
323
|
+
const E = he("KTooltip"), D = he("SidebarItem", !0);
|
|
324
324
|
return p(), w("li", {
|
|
325
325
|
class: re([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
326
326
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
327
327
|
}, [
|
|
328
|
-
(p(), Y(bn(
|
|
329
|
-
custom:
|
|
330
|
-
to: !
|
|
328
|
+
(p(), Y(bn(l.value ? "div" : "router-link"), {
|
|
329
|
+
custom: l.value ? void 0 : !0,
|
|
330
|
+
to: !l.value && !u.value ? n.item.to : void 0
|
|
331
331
|
}, {
|
|
332
|
-
default:
|
|
333
|
-
var
|
|
332
|
+
default: R((S) => {
|
|
333
|
+
var x, V;
|
|
334
334
|
return [
|
|
335
335
|
I("a", {
|
|
336
|
-
"aria-controls": (
|
|
336
|
+
"aria-controls": (x = n.item.items) != null && x.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
337
337
|
"aria-current": n.item.active ? "page" : void 0,
|
|
338
|
-
"aria-expanded": (
|
|
339
|
-
class: re(["sidebar-item-link", { "sidebar-item-external-link": u.value, "router-link": !
|
|
340
|
-
href:
|
|
338
|
+
"aria-expanded": (V = n.item.items) != null && V.length && n.item.expanded ? !0 : void 0,
|
|
339
|
+
class: re(["sidebar-item-link", { "sidebar-item-external-link": u.value, "router-link": !l.value }]),
|
|
340
|
+
href: l.value ? String(n.item.to || "#") : S == null ? void 0 : S.href,
|
|
341
341
|
target: u.value ? "_blank" : void 0,
|
|
342
|
-
onClick: (
|
|
343
|
-
onKeypress: hn((
|
|
342
|
+
onClick: (L) => y(L, n.item, S == null ? void 0 : S.navigate),
|
|
343
|
+
onKeypress: hn((L) => y(L, n.item, S == null ? void 0 : S.navigate), ["enter"])
|
|
344
344
|
}, [
|
|
345
345
|
I("div", {
|
|
346
346
|
class: re(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": o.value }])
|
|
347
347
|
}, [
|
|
348
|
-
|
|
349
|
-
n.subnavItem ?
|
|
350
|
-
])) :
|
|
348
|
+
g.$slots[`sidebar-icon-${n.item.key}`] ? (p(), w("div", or, [
|
|
349
|
+
n.subnavItem ? C("", !0) : _(g.$slots, `sidebar-icon-${n.item.key}`, { key: 0 }, void 0, !0)
|
|
350
|
+
])) : C("", !0),
|
|
351
351
|
I("div", sr, [
|
|
352
352
|
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), w("div", {
|
|
353
353
|
key: 0,
|
|
354
354
|
class: re(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
355
|
-
}, X(n.item.name), 3)) : (p(), Y(
|
|
355
|
+
}, X(n.item.name), 3)) : (p(), Y(E, {
|
|
356
356
|
key: 1,
|
|
357
357
|
class: "sidebar-item-tooltip",
|
|
358
358
|
placement: "right",
|
|
359
359
|
"position-fixed": "",
|
|
360
360
|
text: n.item.name
|
|
361
361
|
}, {
|
|
362
|
-
default:
|
|
362
|
+
default: R(() => [
|
|
363
363
|
I("div", cr, [
|
|
364
364
|
I("span", {
|
|
365
365
|
class: re(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": o.value }]])
|
|
@@ -368,30 +368,30 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
368
368
|
]),
|
|
369
369
|
_: 1
|
|
370
370
|
}, 8, ["text"])),
|
|
371
|
-
n.item.label && n.item.expanded ? (p(), w("div", lr, X(n.item.label), 1)) :
|
|
371
|
+
n.item.label && n.item.expanded ? (p(), w("div", lr, X(n.item.label), 1)) : C("", !0)
|
|
372
372
|
]),
|
|
373
373
|
o.value ? (p(), Y(nr, {
|
|
374
374
|
key: 1,
|
|
375
375
|
count: n.item.badgeCount
|
|
376
|
-
}, null, 8, ["count"])) :
|
|
376
|
+
}, null, 8, ["count"])) : C("", !0)
|
|
377
377
|
], 2)
|
|
378
378
|
], 42, ir)
|
|
379
379
|
];
|
|
380
380
|
}),
|
|
381
381
|
_: 3
|
|
382
382
|
}, 8, ["custom", "to"])),
|
|
383
|
-
(
|
|
383
|
+
(B = n.item.items) != null && B.length && n.item.expanded ? (p(), w("ul", {
|
|
384
384
|
key: 0,
|
|
385
385
|
id: `subnav-${n.item.key}`,
|
|
386
386
|
class: "level-secondary"
|
|
387
387
|
}, [
|
|
388
|
-
(p(!0), w($e, null, Te(n.item.items, (
|
|
389
|
-
key:
|
|
390
|
-
item:
|
|
388
|
+
(p(!0), w($e, null, Te(n.item.items, (S) => (p(), Y(D, {
|
|
389
|
+
key: S.name,
|
|
390
|
+
item: S,
|
|
391
391
|
"subnav-item": !0,
|
|
392
|
-
onClick: (
|
|
392
|
+
onClick: (x) => v(S)
|
|
393
393
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
394
|
-
], 8, ur)) :
|
|
394
|
+
], 8, ur)) : C("", !0)
|
|
395
395
|
], 10, rr);
|
|
396
396
|
};
|
|
397
397
|
}
|
|
@@ -409,7 +409,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
409
409
|
}, We = function n(t, r) {
|
|
410
410
|
var a;
|
|
411
411
|
r === void 0 && (r = !0);
|
|
412
|
-
var
|
|
412
|
+
var l = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "inert"), u = l === "" || l === "true", o = u || r && t && n(t.parentNode);
|
|
413
413
|
return o;
|
|
414
414
|
}, fr = function(t) {
|
|
415
415
|
var r, a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
@@ -417,34 +417,34 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
417
417
|
}, zt = function(t, r, a) {
|
|
418
418
|
if (We(t))
|
|
419
419
|
return [];
|
|
420
|
-
var
|
|
421
|
-
return r && pe.call(t, He) &&
|
|
420
|
+
var l = Array.prototype.slice.apply(t.querySelectorAll(He));
|
|
421
|
+
return r && pe.call(t, He) && l.unshift(t), l = l.filter(a), l;
|
|
422
422
|
}, Vt = function n(t, r, a) {
|
|
423
|
-
for (var
|
|
423
|
+
for (var l = [], u = Array.from(t); u.length; ) {
|
|
424
424
|
var o = u.shift();
|
|
425
425
|
if (!We(o, !1))
|
|
426
426
|
if (o.tagName === "SLOT") {
|
|
427
|
-
var v = o.assignedElements(),
|
|
428
|
-
a.flatten ?
|
|
427
|
+
var v = o.assignedElements(), y = v.length ? v : o.children, g = n(y, !0, a);
|
|
428
|
+
a.flatten ? l.push.apply(l, g) : l.push({
|
|
429
429
|
scopeParent: o,
|
|
430
|
-
candidates:
|
|
430
|
+
candidates: g
|
|
431
431
|
});
|
|
432
432
|
} else {
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
var
|
|
436
|
-
typeof a.getShadowRoot == "function" && a.getShadowRoot(o),
|
|
437
|
-
if (
|
|
438
|
-
var
|
|
439
|
-
a.flatten ?
|
|
433
|
+
var F = pe.call(o, He);
|
|
434
|
+
F && a.filter(o) && (r || !t.includes(o)) && l.push(o);
|
|
435
|
+
var E = o.shadowRoot || // check for an undisclosed shadow
|
|
436
|
+
typeof a.getShadowRoot == "function" && a.getShadowRoot(o), D = !We(E, !1) && (!a.shadowRootFilter || a.shadowRootFilter(o));
|
|
437
|
+
if (E && D) {
|
|
438
|
+
var B = n(E === !0 ? o.children : E.children, !0, a);
|
|
439
|
+
a.flatten ? l.push.apply(l, B) : l.push({
|
|
440
440
|
scopeParent: o,
|
|
441
|
-
candidates:
|
|
441
|
+
candidates: B
|
|
442
442
|
});
|
|
443
443
|
} else
|
|
444
444
|
u.unshift.apply(u, o.children);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return l;
|
|
448
448
|
}, Gt = function(t) {
|
|
449
449
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
450
450
|
}, be = function(t) {
|
|
@@ -474,48 +474,48 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
474
474
|
return !0;
|
|
475
475
|
var r = t.form || Ue(t), a = function(v) {
|
|
476
476
|
return r.querySelectorAll('input[type="radio"][name="' + v + '"]');
|
|
477
|
-
},
|
|
477
|
+
}, l;
|
|
478
478
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
479
|
-
|
|
479
|
+
l = a(window.CSS.escape(t.name));
|
|
480
480
|
else
|
|
481
481
|
try {
|
|
482
|
-
|
|
482
|
+
l = a(t.name);
|
|
483
483
|
} catch (o) {
|
|
484
484
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
485
485
|
}
|
|
486
|
-
var u = mr(
|
|
486
|
+
var u = mr(l, t.form);
|
|
487
487
|
return !u || u === t;
|
|
488
488
|
}, yr = function(t) {
|
|
489
489
|
return qt(t) && t.type === "radio";
|
|
490
490
|
}, wr = function(t) {
|
|
491
491
|
return yr(t) && !gr(t);
|
|
492
492
|
}, kr = function(t) {
|
|
493
|
-
var r, a = t && Ue(t),
|
|
493
|
+
var r, a = t && Ue(t), l = (r = a) === null || r === void 0 ? void 0 : r.host, u = !1;
|
|
494
494
|
if (a && a !== t) {
|
|
495
|
-
var o, v,
|
|
496
|
-
for (u = !!((o =
|
|
497
|
-
var
|
|
498
|
-
a = Ue(
|
|
495
|
+
var o, v, y;
|
|
496
|
+
for (u = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (y = t.ownerDocument) !== null && y !== void 0 && y.contains(t)); !u && l; ) {
|
|
497
|
+
var g, F, E;
|
|
498
|
+
a = Ue(l), l = (g = a) === null || g === void 0 ? void 0 : g.host, u = !!((F = l) !== null && F !== void 0 && (E = F.ownerDocument) !== null && E !== void 0 && E.contains(l));
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
return u;
|
|
502
502
|
}, Lt = function(t) {
|
|
503
|
-
var r = t.getBoundingClientRect(), a = r.width,
|
|
504
|
-
return a === 0 &&
|
|
503
|
+
var r = t.getBoundingClientRect(), a = r.width, l = r.height;
|
|
504
|
+
return a === 0 && l === 0;
|
|
505
505
|
}, Tr = function(t, r) {
|
|
506
|
-
var a = r.displayCheck,
|
|
506
|
+
var a = r.displayCheck, l = r.getShadowRoot;
|
|
507
507
|
if (getComputedStyle(t).visibility === "hidden")
|
|
508
508
|
return !0;
|
|
509
509
|
var u = pe.call(t, "details>summary:first-of-type"), o = u ? t.parentElement : t;
|
|
510
510
|
if (pe.call(o, "details:not([open]) *"))
|
|
511
511
|
return !0;
|
|
512
512
|
if (!a || a === "full" || a === "legacy-full") {
|
|
513
|
-
if (typeof
|
|
513
|
+
if (typeof l == "function") {
|
|
514
514
|
for (var v = t; t; ) {
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
515
|
+
var y = t.parentElement, g = Ue(t);
|
|
516
|
+
if (y && !y.shadowRoot && l(y) === !0)
|
|
517
517
|
return Lt(t);
|
|
518
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
518
|
+
t.assignedSlot ? t = t.assignedSlot : !y && g !== t.ownerDocument ? t = g.host : t = y;
|
|
519
519
|
}
|
|
520
520
|
t = v;
|
|
521
521
|
}
|
|
@@ -531,9 +531,9 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
531
531
|
for (var r = t.parentElement; r; ) {
|
|
532
532
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
533
533
|
for (var a = 0; a < r.children.length; a++) {
|
|
534
|
-
var
|
|
535
|
-
if (
|
|
536
|
-
return pe.call(r, "fieldset[disabled] *") ? !0 : !
|
|
534
|
+
var l = r.children.item(a);
|
|
535
|
+
if (l.tagName === "LEGEND")
|
|
536
|
+
return pe.call(r, "fieldset[disabled] *") ? !0 : !l.contains(t);
|
|
537
537
|
}
|
|
538
538
|
return !0;
|
|
539
539
|
}
|
|
@@ -553,17 +553,17 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
553
553
|
return !!(isNaN(r) || r >= 0);
|
|
554
554
|
}, Ir = function n(t) {
|
|
555
555
|
var r = [], a = [];
|
|
556
|
-
return t.forEach(function(
|
|
557
|
-
var o = !!
|
|
558
|
-
|
|
556
|
+
return t.forEach(function(l, u) {
|
|
557
|
+
var o = !!l.scopeParent, v = o ? l.scopeParent : l, y = vr(v, o), g = o ? n(l.candidates) : v;
|
|
558
|
+
y === 0 ? o ? r.push.apply(r, g) : r.push(v) : a.push({
|
|
559
559
|
documentOrder: u,
|
|
560
|
-
tabIndex:
|
|
561
|
-
item:
|
|
560
|
+
tabIndex: y,
|
|
561
|
+
item: l,
|
|
562
562
|
isScope: o,
|
|
563
|
-
content:
|
|
563
|
+
content: g
|
|
564
564
|
});
|
|
565
|
-
}), a.sort(br).reduce(function(
|
|
566
|
-
return u.isScope ?
|
|
565
|
+
}), a.sort(br).reduce(function(l, u) {
|
|
566
|
+
return u.isScope ? l.push.apply(l, u.content) : l.push(u.content), l;
|
|
567
567
|
}, []).concat(r);
|
|
568
568
|
}, Or = function(t, r) {
|
|
569
569
|
r = r || {};
|
|
@@ -607,8 +607,8 @@ function Mt(n, t) {
|
|
|
607
607
|
var r = Object.keys(n);
|
|
608
608
|
if (Object.getOwnPropertySymbols) {
|
|
609
609
|
var a = Object.getOwnPropertySymbols(n);
|
|
610
|
-
t && (a = a.filter(function(
|
|
611
|
-
return Object.getOwnPropertyDescriptor(n,
|
|
610
|
+
t && (a = a.filter(function(l) {
|
|
611
|
+
return Object.getOwnPropertyDescriptor(n, l).enumerable;
|
|
612
612
|
})), r.push.apply(r, a);
|
|
613
613
|
}
|
|
614
614
|
return r;
|
|
@@ -644,8 +644,8 @@ var jt = {
|
|
|
644
644
|
var a = t[t.length - 1];
|
|
645
645
|
a !== r && a.pause();
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
|
|
647
|
+
var l = t.indexOf(r);
|
|
648
|
+
l === -1 || t.splice(l, 1), t.push(r);
|
|
649
649
|
},
|
|
650
650
|
deactivateTrap: function(t, r) {
|
|
651
651
|
var a = t.indexOf(r);
|
|
@@ -665,17 +665,17 @@ var jt = {
|
|
|
665
665
|
return setTimeout(t, 0);
|
|
666
666
|
}, Kt = function(t, r) {
|
|
667
667
|
var a = -1;
|
|
668
|
-
return t.every(function(
|
|
669
|
-
return r(
|
|
668
|
+
return t.every(function(l, u) {
|
|
669
|
+
return r(l) ? (a = u, !1) : !0;
|
|
670
670
|
}), a;
|
|
671
671
|
}, Ce = function(t) {
|
|
672
|
-
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0),
|
|
673
|
-
a[
|
|
672
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
|
673
|
+
a[l - 1] = arguments[l];
|
|
674
674
|
return typeof t == "function" ? t.apply(void 0, a) : t;
|
|
675
675
|
}, Me = function(t) {
|
|
676
676
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
677
677
|
}, Br = [], Lr = function(t, r) {
|
|
678
|
-
var a = (r == null ? void 0 : r.document) || document,
|
|
678
|
+
var a = (r == null ? void 0 : r.document) || document, l = (r == null ? void 0 : r.trapStack) || Br, u = Pt({
|
|
679
679
|
returnFocusOnDeactivate: !0,
|
|
680
680
|
escapeDeactivates: !0,
|
|
681
681
|
delayInitialFocus: !0,
|
|
@@ -717,21 +717,21 @@ var jt = {
|
|
|
717
717
|
delayInitialFocusTimer: void 0,
|
|
718
718
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
719
719
|
recentNavEvent: void 0
|
|
720
|
-
}, v,
|
|
720
|
+
}, v, y = function(d, s, f) {
|
|
721
721
|
return d && d[s] !== void 0 ? d[s] : u[f || s];
|
|
722
|
-
},
|
|
722
|
+
}, g = function(d, s) {
|
|
723
723
|
var f = typeof (s == null ? void 0 : s.composedPath) == "function" ? s.composedPath() : void 0;
|
|
724
724
|
return o.containerGroups.findIndex(function(b) {
|
|
725
|
-
var T = b.container,
|
|
725
|
+
var T = b.container, N = b.tabbableNodes;
|
|
726
726
|
return T.contains(d) || // fall back to explicit tabbable search which will take into consideration any
|
|
727
727
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
728
728
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
729
729
|
// look inside web components even if open)
|
|
730
|
-
(f == null ? void 0 : f.includes(T)) ||
|
|
731
|
-
return
|
|
730
|
+
(f == null ? void 0 : f.includes(T)) || N.find(function(A) {
|
|
731
|
+
return A === d;
|
|
732
732
|
});
|
|
733
733
|
});
|
|
734
|
-
},
|
|
734
|
+
}, F = function(d) {
|
|
735
735
|
var s = u[d];
|
|
736
736
|
if (typeof s == "function") {
|
|
737
737
|
for (var f = arguments.length, b = new Array(f > 1 ? f - 1 : 0), T = 1; T < f; T++)
|
|
@@ -743,39 +743,39 @@ var jt = {
|
|
|
743
743
|
return s;
|
|
744
744
|
throw new Error("`".concat(d, "` was specified but was not a node, or did not return a node"));
|
|
745
745
|
}
|
|
746
|
-
var
|
|
747
|
-
if (typeof s == "string" && (
|
|
746
|
+
var N = s;
|
|
747
|
+
if (typeof s == "string" && (N = a.querySelector(s), !N))
|
|
748
748
|
throw new Error("`".concat(d, "` as selector refers to no known node"));
|
|
749
|
-
return
|
|
750
|
-
},
|
|
751
|
-
var d =
|
|
749
|
+
return N;
|
|
750
|
+
}, E = function() {
|
|
751
|
+
var d = F("initialFocus");
|
|
752
752
|
if (d === !1)
|
|
753
753
|
return !1;
|
|
754
754
|
if (d === void 0 || !ct(d, u.tabbableOptions))
|
|
755
|
-
if (
|
|
755
|
+
if (g(a.activeElement) >= 0)
|
|
756
756
|
d = a.activeElement;
|
|
757
757
|
else {
|
|
758
758
|
var s = o.tabbableGroups[0], f = s && s.firstTabbableNode;
|
|
759
|
-
d = f ||
|
|
759
|
+
d = f || F("fallbackFocus");
|
|
760
760
|
}
|
|
761
761
|
if (!d)
|
|
762
762
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
763
763
|
return d;
|
|
764
|
-
},
|
|
764
|
+
}, D = function() {
|
|
765
765
|
if (o.containerGroups = o.containers.map(function(d) {
|
|
766
|
-
var s = Or(d, u.tabbableOptions), f = Cr(d, u.tabbableOptions), b = s.length > 0 ? s[0] : void 0, T = s.length > 0 ? s[s.length - 1] : void 0,
|
|
767
|
-
return ke(
|
|
768
|
-
}),
|
|
769
|
-
return ke(
|
|
770
|
-
}),
|
|
771
|
-
return be(
|
|
766
|
+
var s = Or(d, u.tabbableOptions), f = Cr(d, u.tabbableOptions), b = s.length > 0 ? s[0] : void 0, T = s.length > 0 ? s[s.length - 1] : void 0, N = f.find(function(M) {
|
|
767
|
+
return ke(M);
|
|
768
|
+
}), A = f.slice().reverse().find(function(M) {
|
|
769
|
+
return ke(M);
|
|
770
|
+
}), m = !!s.find(function(M) {
|
|
771
|
+
return be(M) > 0;
|
|
772
772
|
});
|
|
773
773
|
return {
|
|
774
774
|
container: d,
|
|
775
775
|
tabbableNodes: s,
|
|
776
776
|
focusableNodes: f,
|
|
777
777
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
778
|
-
posTabIndexesFound:
|
|
778
|
+
posTabIndexesFound: m,
|
|
779
779
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
780
780
|
firstTabbableNode: b,
|
|
781
781
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -788,9 +788,9 @@ var jt = {
|
|
|
788
788
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
789
789
|
// be avoided anyway...
|
|
790
790
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
791
|
-
firstDomTabbableNode:
|
|
791
|
+
firstDomTabbableNode: N,
|
|
792
792
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
793
|
-
lastDomTabbableNode:
|
|
793
|
+
lastDomTabbableNode: A,
|
|
794
794
|
/**
|
|
795
795
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
796
796
|
* in this container, if any.
|
|
@@ -800,72 +800,72 @@ var jt = {
|
|
|
800
800
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
801
801
|
*/
|
|
802
802
|
nextTabbableNode: function(ie) {
|
|
803
|
-
var
|
|
804
|
-
return ee < 0 ?
|
|
803
|
+
var K = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ee = s.indexOf(ie);
|
|
804
|
+
return ee < 0 ? K ? f.slice(f.indexOf(ie) + 1).find(function(le) {
|
|
805
805
|
return ke(le);
|
|
806
806
|
}) : f.slice(0, f.indexOf(ie)).reverse().find(function(le) {
|
|
807
807
|
return ke(le);
|
|
808
|
-
}) : s[ee + (
|
|
808
|
+
}) : s[ee + (K ? 1 : -1)];
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
811
|
}), o.tabbableGroups = o.containerGroups.filter(function(d) {
|
|
812
812
|
return d.tabbableNodes.length > 0;
|
|
813
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
813
|
+
}), o.tabbableGroups.length <= 0 && !F("fallbackFocus"))
|
|
814
814
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
815
815
|
if (o.containerGroups.find(function(d) {
|
|
816
816
|
return d.posTabIndexesFound;
|
|
817
817
|
}) && o.containerGroups.length > 1)
|
|
818
818
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
819
|
-
},
|
|
819
|
+
}, B = function(d) {
|
|
820
820
|
var s = d.activeElement;
|
|
821
821
|
if (s)
|
|
822
|
-
return s.shadowRoot && s.shadowRoot.activeElement !== null ?
|
|
823
|
-
},
|
|
824
|
-
if (d !== !1 && d !==
|
|
822
|
+
return s.shadowRoot && s.shadowRoot.activeElement !== null ? B(s.shadowRoot) : s;
|
|
823
|
+
}, S = function(d) {
|
|
824
|
+
if (d !== !1 && d !== B(document)) {
|
|
825
825
|
if (!d || !d.focus) {
|
|
826
|
-
|
|
826
|
+
S(E());
|
|
827
827
|
return;
|
|
828
828
|
}
|
|
829
829
|
d.focus({
|
|
830
830
|
preventScroll: !!u.preventScroll
|
|
831
831
|
}), o.mostRecentlyFocusedNode = d, Fr(d) && d.select();
|
|
832
832
|
}
|
|
833
|
-
},
|
|
834
|
-
var s =
|
|
833
|
+
}, x = function(d) {
|
|
834
|
+
var s = F("setReturnFocus", d);
|
|
835
835
|
return s || (s === !1 ? !1 : d);
|
|
836
|
-
},
|
|
836
|
+
}, V = function(d) {
|
|
837
837
|
var s = d.target, f = d.event, b = d.isBackward, T = b === void 0 ? !1 : b;
|
|
838
|
-
s = s || Me(f),
|
|
839
|
-
var
|
|
838
|
+
s = s || Me(f), D();
|
|
839
|
+
var N = null;
|
|
840
840
|
if (o.tabbableGroups.length > 0) {
|
|
841
|
-
var
|
|
842
|
-
if (
|
|
843
|
-
T ?
|
|
841
|
+
var A = g(s, f), m = A >= 0 ? o.containerGroups[A] : void 0;
|
|
842
|
+
if (A < 0)
|
|
843
|
+
T ? N = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : N = o.tabbableGroups[0].firstTabbableNode;
|
|
844
844
|
else if (T) {
|
|
845
|
-
var
|
|
845
|
+
var M = Kt(o.tabbableGroups, function(Se) {
|
|
846
846
|
var _e = Se.firstTabbableNode;
|
|
847
847
|
return s === _e;
|
|
848
848
|
});
|
|
849
|
-
if (
|
|
850
|
-
var ie =
|
|
851
|
-
|
|
852
|
-
} else Ee(f) || (
|
|
849
|
+
if (M < 0 && (m.container === s || ct(s, u.tabbableOptions) && !ke(s, u.tabbableOptions) && !m.nextTabbableNode(s, !1)) && (M = A), M >= 0) {
|
|
850
|
+
var ie = M === 0 ? o.tabbableGroups.length - 1 : M - 1, K = o.tabbableGroups[ie];
|
|
851
|
+
N = be(s) >= 0 ? K.lastTabbableNode : K.lastDomTabbableNode;
|
|
852
|
+
} else Ee(f) || (N = m.nextTabbableNode(s, !1));
|
|
853
853
|
} else {
|
|
854
854
|
var ee = Kt(o.tabbableGroups, function(Se) {
|
|
855
855
|
var _e = Se.lastTabbableNode;
|
|
856
856
|
return s === _e;
|
|
857
857
|
});
|
|
858
|
-
if (ee < 0 && (
|
|
858
|
+
if (ee < 0 && (m.container === s || ct(s, u.tabbableOptions) && !ke(s, u.tabbableOptions) && !m.nextTabbableNode(s)) && (ee = A), ee >= 0) {
|
|
859
859
|
var le = ee === o.tabbableGroups.length - 1 ? 0 : ee + 1, Ae = o.tabbableGroups[le];
|
|
860
|
-
|
|
861
|
-
} else Ee(f) || (
|
|
860
|
+
N = be(s) >= 0 ? Ae.firstTabbableNode : Ae.firstDomTabbableNode;
|
|
861
|
+
} else Ee(f) || (N = m.nextTabbableNode(s));
|
|
862
862
|
}
|
|
863
863
|
} else
|
|
864
|
-
|
|
865
|
-
return
|
|
866
|
-
},
|
|
864
|
+
N = F("fallbackFocus");
|
|
865
|
+
return N;
|
|
866
|
+
}, L = function(d) {
|
|
867
867
|
var s = Me(d);
|
|
868
|
-
if (!(
|
|
868
|
+
if (!(g(s, d) >= 0)) {
|
|
869
869
|
if (Ce(u.clickOutsideDeactivates, d)) {
|
|
870
870
|
v.deactivate({
|
|
871
871
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -881,7 +881,7 @@ var jt = {
|
|
|
881
881
|
Ce(u.allowOutsideClick, d) || d.preventDefault();
|
|
882
882
|
}
|
|
883
883
|
}, ne = function(d) {
|
|
884
|
-
var s = Me(d), f =
|
|
884
|
+
var s = Me(d), f = g(s, d) >= 0;
|
|
885
885
|
if (f || s instanceof Document)
|
|
886
886
|
f && (o.mostRecentlyFocusedNode = s);
|
|
887
887
|
else {
|
|
@@ -889,75 +889,75 @@ var jt = {
|
|
|
889
889
|
var b, T = !0;
|
|
890
890
|
if (o.mostRecentlyFocusedNode)
|
|
891
891
|
if (be(o.mostRecentlyFocusedNode) > 0) {
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
var
|
|
895
|
-
return
|
|
892
|
+
var N = g(o.mostRecentlyFocusedNode), A = o.containerGroups[N].tabbableNodes;
|
|
893
|
+
if (A.length > 0) {
|
|
894
|
+
var m = A.findIndex(function(M) {
|
|
895
|
+
return M === o.mostRecentlyFocusedNode;
|
|
896
896
|
});
|
|
897
|
-
|
|
897
|
+
m >= 0 && (u.isKeyForward(o.recentNavEvent) ? m + 1 < A.length && (b = A[m + 1], T = !1) : m - 1 >= 0 && (b = A[m - 1], T = !1));
|
|
898
898
|
}
|
|
899
899
|
} else
|
|
900
|
-
o.containerGroups.some(function(
|
|
901
|
-
return
|
|
900
|
+
o.containerGroups.some(function(M) {
|
|
901
|
+
return M.tabbableNodes.some(function(ie) {
|
|
902
902
|
return be(ie) > 0;
|
|
903
903
|
});
|
|
904
904
|
}) || (T = !1);
|
|
905
905
|
else
|
|
906
906
|
T = !1;
|
|
907
|
-
T && (b =
|
|
907
|
+
T && (b = V({
|
|
908
908
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
909
909
|
// outside the trap causing the focus escape we're trying to fix)
|
|
910
910
|
target: o.mostRecentlyFocusedNode,
|
|
911
911
|
isBackward: u.isKeyBackward(o.recentNavEvent)
|
|
912
|
-
})),
|
|
912
|
+
})), S(b || o.mostRecentlyFocusedNode || E());
|
|
913
913
|
}
|
|
914
914
|
o.recentNavEvent = void 0;
|
|
915
915
|
}, ce = function(d) {
|
|
916
916
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
917
917
|
o.recentNavEvent = d;
|
|
918
|
-
var f =
|
|
918
|
+
var f = V({
|
|
919
919
|
event: d,
|
|
920
920
|
isBackward: s
|
|
921
921
|
});
|
|
922
|
-
f && (Ee(d) && d.preventDefault(),
|
|
922
|
+
f && (Ee(d) && d.preventDefault(), S(f));
|
|
923
923
|
}, J = function(d) {
|
|
924
924
|
(u.isKeyForward(d) || u.isKeyBackward(d)) && ce(d, u.isKeyBackward(d));
|
|
925
925
|
}, Q = function(d) {
|
|
926
926
|
xr(d) && Ce(u.escapeDeactivates, d) !== !1 && (d.preventDefault(), v.deactivate());
|
|
927
|
-
},
|
|
927
|
+
}, H = function(d) {
|
|
928
928
|
var s = Me(d);
|
|
929
|
-
|
|
930
|
-
},
|
|
929
|
+
g(s, d) >= 0 || Ce(u.clickOutsideDeactivates, d) || Ce(u.allowOutsideClick, d) || (d.preventDefault(), d.stopImmediatePropagation());
|
|
930
|
+
}, q = function() {
|
|
931
931
|
if (o.active)
|
|
932
|
-
return jt.activateTrap(
|
|
933
|
-
|
|
934
|
-
}) :
|
|
932
|
+
return jt.activateTrap(l, v), o.delayInitialFocusTimer = u.delayInitialFocus ? Zt(function() {
|
|
933
|
+
S(E());
|
|
934
|
+
}) : S(E()), a.addEventListener("focusin", ne, !0), a.addEventListener("mousedown", L, {
|
|
935
935
|
capture: !0,
|
|
936
936
|
passive: !1
|
|
937
|
-
}), a.addEventListener("touchstart",
|
|
937
|
+
}), a.addEventListener("touchstart", L, {
|
|
938
938
|
capture: !0,
|
|
939
939
|
passive: !1
|
|
940
|
-
}), a.addEventListener("click",
|
|
940
|
+
}), a.addEventListener("click", H, {
|
|
941
941
|
capture: !0,
|
|
942
942
|
passive: !1
|
|
943
943
|
}), a.addEventListener("keydown", J, {
|
|
944
944
|
capture: !0,
|
|
945
945
|
passive: !1
|
|
946
946
|
}), a.addEventListener("keydown", Q), v;
|
|
947
|
-
},
|
|
947
|
+
}, G = function() {
|
|
948
948
|
if (o.active)
|
|
949
|
-
return a.removeEventListener("focusin", ne, !0), a.removeEventListener("mousedown",
|
|
950
|
-
},
|
|
949
|
+
return a.removeEventListener("focusin", ne, !0), a.removeEventListener("mousedown", L, !0), a.removeEventListener("touchstart", L, !0), a.removeEventListener("click", H, !0), a.removeEventListener("keydown", J, !0), a.removeEventListener("keydown", Q), v;
|
|
950
|
+
}, $ = function(d) {
|
|
951
951
|
var s = d.some(function(f) {
|
|
952
952
|
var b = Array.from(f.removedNodes);
|
|
953
953
|
return b.some(function(T) {
|
|
954
954
|
return T === o.mostRecentlyFocusedNode;
|
|
955
955
|
});
|
|
956
956
|
});
|
|
957
|
-
s &&
|
|
958
|
-
},
|
|
959
|
-
|
|
960
|
-
|
|
957
|
+
s && S(E());
|
|
958
|
+
}, P = typeof window < "u" && "MutationObserver" in window ? new MutationObserver($) : void 0, j = function() {
|
|
959
|
+
P && (P.disconnect(), o.active && !o.paused && o.containers.map(function(d) {
|
|
960
|
+
P.observe(d, {
|
|
961
961
|
subtree: !0,
|
|
962
962
|
childList: !0
|
|
963
963
|
});
|
|
@@ -973,10 +973,10 @@ var jt = {
|
|
|
973
973
|
activate: function(d) {
|
|
974
974
|
if (o.active)
|
|
975
975
|
return this;
|
|
976
|
-
var s =
|
|
977
|
-
b ||
|
|
976
|
+
var s = y(d, "onActivate"), f = y(d, "onPostActivate"), b = y(d, "checkCanFocusTrap");
|
|
977
|
+
b || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = a.activeElement, s == null || s();
|
|
978
978
|
var T = function() {
|
|
979
|
-
b &&
|
|
979
|
+
b && D(), q(), j(), f == null || f();
|
|
980
980
|
};
|
|
981
981
|
return b ? (b(o.containers.concat()).then(T, T), this) : (T(), this);
|
|
982
982
|
},
|
|
@@ -988,33 +988,33 @@ var jt = {
|
|
|
988
988
|
onPostDeactivate: u.onPostDeactivate,
|
|
989
989
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
990
990
|
}, d);
|
|
991
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
992
|
-
var f =
|
|
991
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, G(), o.active = !1, o.paused = !1, j(), jt.deactivateTrap(l, v);
|
|
992
|
+
var f = y(s, "onDeactivate"), b = y(s, "onPostDeactivate"), T = y(s, "checkCanReturnFocus"), N = y(s, "returnFocus", "returnFocusOnDeactivate");
|
|
993
993
|
f == null || f();
|
|
994
|
-
var
|
|
994
|
+
var A = function() {
|
|
995
995
|
Zt(function() {
|
|
996
|
-
|
|
996
|
+
N && S(x(o.nodeFocusedBeforeActivation)), b == null || b();
|
|
997
997
|
});
|
|
998
998
|
};
|
|
999
|
-
return
|
|
999
|
+
return N && T ? (T(x(o.nodeFocusedBeforeActivation)).then(A, A), this) : (A(), this);
|
|
1000
1000
|
},
|
|
1001
1001
|
pause: function(d) {
|
|
1002
1002
|
if (o.paused || !o.active)
|
|
1003
1003
|
return this;
|
|
1004
|
-
var s =
|
|
1005
|
-
return o.paused = !0, s == null || s(),
|
|
1004
|
+
var s = y(d, "onPause"), f = y(d, "onPostPause");
|
|
1005
|
+
return o.paused = !0, s == null || s(), G(), j(), f == null || f(), this;
|
|
1006
1006
|
},
|
|
1007
1007
|
unpause: function(d) {
|
|
1008
1008
|
if (!o.paused || !o.active)
|
|
1009
1009
|
return this;
|
|
1010
|
-
var s =
|
|
1011
|
-
return o.paused = !1, s == null || s(),
|
|
1010
|
+
var s = y(d, "onUnpause"), f = y(d, "onPostUnpause");
|
|
1011
|
+
return o.paused = !1, s == null || s(), D(), q(), j(), f == null || f(), this;
|
|
1012
1012
|
},
|
|
1013
1013
|
updateContainerElements: function(d) {
|
|
1014
1014
|
var s = [].concat(d).filter(Boolean);
|
|
1015
1015
|
return o.containers = s.map(function(f) {
|
|
1016
1016
|
return typeof f == "string" ? a.querySelector(f) : f;
|
|
1017
|
-
}), o.active &&
|
|
1017
|
+
}), o.active && D(), j(), this;
|
|
1018
1018
|
}
|
|
1019
1019
|
}, v.updateContainerElements(t), v;
|
|
1020
1020
|
};
|
|
@@ -1069,8 +1069,8 @@ const Mr = {
|
|
|
1069
1069
|
},
|
|
1070
1070
|
setup(n, { slots: t, emit: r }) {
|
|
1071
1071
|
let a;
|
|
1072
|
-
const
|
|
1073
|
-
const v =
|
|
1072
|
+
const l = z(null), u = k(() => {
|
|
1073
|
+
const v = l.value;
|
|
1074
1074
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1075
1075
|
});
|
|
1076
1076
|
function o() {
|
|
@@ -1110,8 +1110,8 @@ const Mr = {
|
|
|
1110
1110
|
renderImpl() {
|
|
1111
1111
|
if (!t.default)
|
|
1112
1112
|
return null;
|
|
1113
|
-
const v = t.default().filter((
|
|
1114
|
-
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : gn(v[0], { ref:
|
|
1113
|
+
const v = t.default().filter((g) => g.type !== mn);
|
|
1114
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : gn(v[0], { ref: l });
|
|
1115
1115
|
}
|
|
1116
1116
|
};
|
|
1117
1117
|
}
|
|
@@ -1120,9 +1120,9 @@ function Xt() {
|
|
|
1120
1120
|
return {
|
|
1121
1121
|
debounce: (t, r) => {
|
|
1122
1122
|
let a;
|
|
1123
|
-
return (...
|
|
1123
|
+
return (...l) => {
|
|
1124
1124
|
clearTimeout(a), a = window == null ? void 0 : window.setTimeout(() => {
|
|
1125
|
-
t(...
|
|
1125
|
+
t(...l);
|
|
1126
1126
|
}, r);
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
@@ -1135,9 +1135,9 @@ function jr(n) {
|
|
|
1135
1135
|
var Ve = { exports: {} };
|
|
1136
1136
|
Ve.exports;
|
|
1137
1137
|
(function(n, t) {
|
|
1138
|
-
var r = 200, a = "__lodash_hash_undefined__",
|
|
1139
|
-
|
|
1140
|
-
var
|
|
1138
|
+
var r = 200, a = "__lodash_hash_undefined__", l = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", y = "[object Date]", g = "[object Error]", F = "[object Function]", E = "[object GeneratorFunction]", D = "[object Map]", B = "[object Number]", S = "[object Object]", x = "[object Promise]", V = "[object RegExp]", L = "[object Set]", ne = "[object String]", ce = "[object Symbol]", J = "[object WeakMap]", Q = "[object ArrayBuffer]", H = "[object DataView]", q = "[object Float32Array]", G = "[object Float64Array]", $ = "[object Int8Array]", P = "[object Int16Array]", j = "[object Int32Array]", O = "[object Uint8Array]", d = "[object Uint8ClampedArray]", s = "[object Uint16Array]", f = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, T = /\w*$/, N = /^\[object .+?Constructor\]$/, A = /^(?:0|[1-9]\d*)$/, m = {};
|
|
1139
|
+
m[u] = m[o] = m[Q] = m[H] = m[v] = m[y] = m[q] = m[G] = m[$] = m[P] = m[j] = m[D] = m[B] = m[S] = m[V] = m[L] = m[ne] = m[ce] = m[O] = m[d] = m[s] = m[f] = !0, m[g] = m[F] = m[J] = !1;
|
|
1140
|
+
var M = typeof Pe == "object" && Pe && Pe.Object === Object && Pe, ie = typeof self == "object" && self && self.Object === Object && self, K = M || ie || Function("return this")(), ee = t && !t.nodeType && t, le = ee && !0 && n && !n.nodeType && n, Ae = le && le.exports === ee;
|
|
1141
1141
|
function Se(e, i) {
|
|
1142
1142
|
return e.set(i[0], i[1]), e;
|
|
1143
1143
|
}
|
|
@@ -1145,23 +1145,23 @@ Ve.exports;
|
|
|
1145
1145
|
return e.add(i), e;
|
|
1146
1146
|
}
|
|
1147
1147
|
function Yt(e, i) {
|
|
1148
|
-
for (var
|
|
1148
|
+
for (var c = -1, h = e ? e.length : 0; ++c < h && i(e[c], c, e) !== !1; )
|
|
1149
1149
|
;
|
|
1150
1150
|
return e;
|
|
1151
1151
|
}
|
|
1152
1152
|
function Jt(e, i) {
|
|
1153
|
-
for (var
|
|
1154
|
-
e[
|
|
1153
|
+
for (var c = -1, h = i.length, Z = e.length; ++c < h; )
|
|
1154
|
+
e[Z + c] = i[c];
|
|
1155
1155
|
return e;
|
|
1156
1156
|
}
|
|
1157
|
-
function ft(e, i,
|
|
1158
|
-
for (var
|
|
1159
|
-
|
|
1160
|
-
return
|
|
1157
|
+
function ft(e, i, c, h) {
|
|
1158
|
+
for (var Z = -1, U = e ? e.length : 0; ++Z < U; )
|
|
1159
|
+
c = i(c, e[Z], Z, e);
|
|
1160
|
+
return c;
|
|
1161
1161
|
}
|
|
1162
1162
|
function Qt(e, i) {
|
|
1163
|
-
for (var
|
|
1164
|
-
h[
|
|
1163
|
+
for (var c = -1, h = Array(e); ++c < e; )
|
|
1164
|
+
h[c] = i(c);
|
|
1165
1165
|
return h;
|
|
1166
1166
|
}
|
|
1167
1167
|
function ea(e, i) {
|
|
@@ -1177,31 +1177,31 @@ Ve.exports;
|
|
|
1177
1177
|
return i;
|
|
1178
1178
|
}
|
|
1179
1179
|
function bt(e) {
|
|
1180
|
-
var i = -1,
|
|
1181
|
-
return e.forEach(function(h,
|
|
1182
|
-
|
|
1183
|
-
}),
|
|
1180
|
+
var i = -1, c = Array(e.size);
|
|
1181
|
+
return e.forEach(function(h, Z) {
|
|
1182
|
+
c[++i] = [Z, h];
|
|
1183
|
+
}), c;
|
|
1184
1184
|
}
|
|
1185
1185
|
function Xe(e, i) {
|
|
1186
|
-
return function(
|
|
1187
|
-
return e(i(
|
|
1186
|
+
return function(c) {
|
|
1187
|
+
return e(i(c));
|
|
1188
1188
|
};
|
|
1189
1189
|
}
|
|
1190
1190
|
function ht(e) {
|
|
1191
|
-
var i = -1,
|
|
1191
|
+
var i = -1, c = Array(e.size);
|
|
1192
1192
|
return e.forEach(function(h) {
|
|
1193
|
-
|
|
1194
|
-
}),
|
|
1193
|
+
c[++i] = h;
|
|
1194
|
+
}), c;
|
|
1195
1195
|
}
|
|
1196
|
-
var ta = Array.prototype, aa = Function.prototype, Fe = Object.prototype, Ye =
|
|
1196
|
+
var ta = Array.prototype, aa = Function.prototype, Fe = Object.prototype, Ye = K["__core-js_shared__"], pt = function() {
|
|
1197
1197
|
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
1198
1198
|
return e ? "Symbol(src)_1." + e : "";
|
|
1199
1199
|
}(), mt = aa.toString, ue = Fe.hasOwnProperty, xe = Fe.toString, na = RegExp(
|
|
1200
1200
|
"^" + mt.call(ue).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1201
|
-
), gt = Ae ?
|
|
1201
|
+
), gt = Ae ? K.Buffer : void 0, yt = K.Symbol, wt = K.Uint8Array, ra = Xe(Object.getPrototypeOf, Object), ia = Object.create, oa = Fe.propertyIsEnumerable, sa = ta.splice, kt = Object.getOwnPropertySymbols, ca = gt ? gt.isBuffer : void 0, la = Xe(Object.keys, Object), Je = ye(K, "DataView"), Ie = ye(K, "Map"), Qe = ye(K, "Promise"), et = ye(K, "Set"), tt = ye(K, "WeakMap"), Oe = ye(Object, "create"), ua = ve(Je), da = ve(Ie), fa = ve(Qe), va = ve(et), ba = ve(tt), Tt = yt ? yt.prototype : void 0, St = Tt ? Tt.valueOf : void 0;
|
|
1202
1202
|
function de(e) {
|
|
1203
|
-
var i = -1,
|
|
1204
|
-
for (this.clear(); ++i <
|
|
1203
|
+
var i = -1, c = e ? e.length : 0;
|
|
1204
|
+
for (this.clear(); ++i < c; ) {
|
|
1205
1205
|
var h = e[i];
|
|
1206
1206
|
this.set(h[0], h[1]);
|
|
1207
1207
|
}
|
|
@@ -1215,8 +1215,8 @@ Ve.exports;
|
|
|
1215
1215
|
function ma(e) {
|
|
1216
1216
|
var i = this.__data__;
|
|
1217
1217
|
if (Oe) {
|
|
1218
|
-
var
|
|
1219
|
-
return
|
|
1218
|
+
var c = i[e];
|
|
1219
|
+
return c === a ? void 0 : c;
|
|
1220
1220
|
}
|
|
1221
1221
|
return ue.call(i, e) ? i[e] : void 0;
|
|
1222
1222
|
}
|
|
@@ -1225,13 +1225,13 @@ Ve.exports;
|
|
|
1225
1225
|
return Oe ? i[e] !== void 0 : ue.call(i, e);
|
|
1226
1226
|
}
|
|
1227
1227
|
function ya(e, i) {
|
|
1228
|
-
var
|
|
1229
|
-
return
|
|
1228
|
+
var c = this.__data__;
|
|
1229
|
+
return c[e] = Oe && i === void 0 ? a : i, this;
|
|
1230
1230
|
}
|
|
1231
1231
|
de.prototype.clear = ha, de.prototype.delete = pa, de.prototype.get = ma, de.prototype.has = ga, de.prototype.set = ya;
|
|
1232
1232
|
function oe(e) {
|
|
1233
|
-
var i = -1,
|
|
1234
|
-
for (this.clear(); ++i <
|
|
1233
|
+
var i = -1, c = e ? e.length : 0;
|
|
1234
|
+
for (this.clear(); ++i < c; ) {
|
|
1235
1235
|
var h = e[i];
|
|
1236
1236
|
this.set(h[0], h[1]);
|
|
1237
1237
|
}
|
|
@@ -1240,27 +1240,27 @@ Ve.exports;
|
|
|
1240
1240
|
this.__data__ = [];
|
|
1241
1241
|
}
|
|
1242
1242
|
function ka(e) {
|
|
1243
|
-
var i = this.__data__,
|
|
1244
|
-
if (
|
|
1243
|
+
var i = this.__data__, c = De(i, e);
|
|
1244
|
+
if (c < 0)
|
|
1245
1245
|
return !1;
|
|
1246
1246
|
var h = i.length - 1;
|
|
1247
|
-
return
|
|
1247
|
+
return c == h ? i.pop() : sa.call(i, c, 1), !0;
|
|
1248
1248
|
}
|
|
1249
1249
|
function Ta(e) {
|
|
1250
|
-
var i = this.__data__,
|
|
1251
|
-
return
|
|
1250
|
+
var i = this.__data__, c = De(i, e);
|
|
1251
|
+
return c < 0 ? void 0 : i[c][1];
|
|
1252
1252
|
}
|
|
1253
1253
|
function Sa(e) {
|
|
1254
1254
|
return De(this.__data__, e) > -1;
|
|
1255
1255
|
}
|
|
1256
1256
|
function _a(e, i) {
|
|
1257
|
-
var
|
|
1258
|
-
return h < 0 ?
|
|
1257
|
+
var c = this.__data__, h = De(c, e);
|
|
1258
|
+
return h < 0 ? c.push([e, i]) : c[h][1] = i, this;
|
|
1259
1259
|
}
|
|
1260
1260
|
oe.prototype.clear = wa, oe.prototype.delete = ka, oe.prototype.get = Ta, oe.prototype.has = Sa, oe.prototype.set = _a;
|
|
1261
1261
|
function me(e) {
|
|
1262
|
-
var i = -1,
|
|
1263
|
-
for (this.clear(); ++i <
|
|
1262
|
+
var i = -1, c = e ? e.length : 0;
|
|
1263
|
+
for (this.clear(); ++i < c; ) {
|
|
1264
1264
|
var h = e[i];
|
|
1265
1265
|
this.set(h[0], h[1]);
|
|
1266
1266
|
}
|
|
@@ -1301,76 +1301,76 @@ Ve.exports;
|
|
|
1301
1301
|
return this.__data__.has(e);
|
|
1302
1302
|
}
|
|
1303
1303
|
function Da(e, i) {
|
|
1304
|
-
var
|
|
1305
|
-
if (
|
|
1306
|
-
var h =
|
|
1304
|
+
var c = this.__data__;
|
|
1305
|
+
if (c instanceof oe) {
|
|
1306
|
+
var h = c.__data__;
|
|
1307
1307
|
if (!Ie || h.length < r - 1)
|
|
1308
1308
|
return h.push([e, i]), this;
|
|
1309
|
-
|
|
1309
|
+
c = this.__data__ = new me(h);
|
|
1310
1310
|
}
|
|
1311
|
-
return
|
|
1311
|
+
return c.set(e, i), this;
|
|
1312
1312
|
}
|
|
1313
1313
|
ge.prototype.clear = Na, ge.prototype.delete = Aa, ge.prototype.get = Fa, ge.prototype.has = xa, ge.prototype.set = Da;
|
|
1314
1314
|
function Ra(e, i) {
|
|
1315
|
-
var
|
|
1316
|
-
for (var
|
|
1317
|
-
ue.call(e,
|
|
1318
|
-
return
|
|
1315
|
+
var c = rt(e) || on(e) ? Qt(e.length, String) : [], h = c.length, Z = !!h;
|
|
1316
|
+
for (var U in e)
|
|
1317
|
+
ue.call(e, U) && !(Z && (U == "length" || tn(U, h))) && c.push(U);
|
|
1318
|
+
return c;
|
|
1319
1319
|
}
|
|
1320
|
-
function _t(e, i,
|
|
1320
|
+
function _t(e, i, c) {
|
|
1321
1321
|
var h = e[i];
|
|
1322
|
-
(!(ue.call(e, i) && $t(h,
|
|
1322
|
+
(!(ue.call(e, i) && $t(h, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1323
1323
|
}
|
|
1324
1324
|
function De(e, i) {
|
|
1325
|
-
for (var
|
|
1326
|
-
if ($t(e[
|
|
1327
|
-
return
|
|
1325
|
+
for (var c = e.length; c--; )
|
|
1326
|
+
if ($t(e[c][0], i))
|
|
1327
|
+
return c;
|
|
1328
1328
|
return -1;
|
|
1329
1329
|
}
|
|
1330
1330
|
function Ba(e, i) {
|
|
1331
1331
|
return e && It(i, it(i), e);
|
|
1332
1332
|
}
|
|
1333
|
-
function at(e, i,
|
|
1334
|
-
var
|
|
1335
|
-
if (h && (
|
|
1336
|
-
return
|
|
1333
|
+
function at(e, i, c, h, Z, U, se) {
|
|
1334
|
+
var W;
|
|
1335
|
+
if (h && (W = U ? h(e, Z, U, se) : h(e)), W !== void 0)
|
|
1336
|
+
return W;
|
|
1337
1337
|
if (!Be(e))
|
|
1338
1338
|
return e;
|
|
1339
1339
|
var At = rt(e);
|
|
1340
1340
|
if (At) {
|
|
1341
|
-
if (
|
|
1342
|
-
return qa(e,
|
|
1341
|
+
if (W = Ja(e), !i)
|
|
1342
|
+
return qa(e, W);
|
|
1343
1343
|
} else {
|
|
1344
|
-
var we = fe(e), Ft = we ==
|
|
1344
|
+
var we = fe(e), Ft = we == F || we == E;
|
|
1345
1345
|
if (cn(e))
|
|
1346
1346
|
return Ka(e, i);
|
|
1347
|
-
if (we ==
|
|
1347
|
+
if (we == S || we == u || Ft && !U) {
|
|
1348
1348
|
if (vt(e))
|
|
1349
|
-
return
|
|
1350
|
-
if (
|
|
1351
|
-
return Xa(e, Ba(
|
|
1349
|
+
return U ? e : {};
|
|
1350
|
+
if (W = Qa(Ft ? {} : e), !i)
|
|
1351
|
+
return Xa(e, Ba(W, e));
|
|
1352
1352
|
} else {
|
|
1353
|
-
if (!
|
|
1354
|
-
return
|
|
1355
|
-
|
|
1353
|
+
if (!m[we])
|
|
1354
|
+
return U ? e : {};
|
|
1355
|
+
W = en(e, we, at, i);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
se || (se = new ge());
|
|
1359
1359
|
var xt = se.get(e);
|
|
1360
1360
|
if (xt)
|
|
1361
1361
|
return xt;
|
|
1362
|
-
if (se.set(e,
|
|
1363
|
-
var Dt =
|
|
1362
|
+
if (se.set(e, W), !At)
|
|
1363
|
+
var Dt = c ? Ya(e) : it(e);
|
|
1364
1364
|
return Yt(Dt || e, function(ot, Le) {
|
|
1365
|
-
Dt && (Le = ot, ot = e[Le]), _t(
|
|
1366
|
-
}),
|
|
1365
|
+
Dt && (Le = ot, ot = e[Le]), _t(W, Le, at(ot, i, c, h, Le, e, se));
|
|
1366
|
+
}), W;
|
|
1367
1367
|
}
|
|
1368
1368
|
function La(e) {
|
|
1369
1369
|
return Be(e) ? ia(e) : {};
|
|
1370
1370
|
}
|
|
1371
|
-
function Ma(e, i,
|
|
1371
|
+
function Ma(e, i, c) {
|
|
1372
1372
|
var h = i(e);
|
|
1373
|
-
return rt(e) ? h : Jt(h,
|
|
1373
|
+
return rt(e) ? h : Jt(h, c(e));
|
|
1374
1374
|
}
|
|
1375
1375
|
function Pa(e) {
|
|
1376
1376
|
return xe.call(e);
|
|
@@ -1378,63 +1378,63 @@ Ve.exports;
|
|
|
1378
1378
|
function ja(e) {
|
|
1379
1379
|
if (!Be(e) || nn(e))
|
|
1380
1380
|
return !1;
|
|
1381
|
-
var i = Nt(e) || vt(e) ? na :
|
|
1381
|
+
var i = Nt(e) || vt(e) ? na : N;
|
|
1382
1382
|
return i.test(ve(e));
|
|
1383
1383
|
}
|
|
1384
1384
|
function Za(e) {
|
|
1385
1385
|
if (!Ct(e))
|
|
1386
1386
|
return la(e);
|
|
1387
1387
|
var i = [];
|
|
1388
|
-
for (var
|
|
1389
|
-
ue.call(e,
|
|
1388
|
+
for (var c in Object(e))
|
|
1389
|
+
ue.call(e, c) && c != "constructor" && i.push(c);
|
|
1390
1390
|
return i;
|
|
1391
1391
|
}
|
|
1392
1392
|
function Ka(e, i) {
|
|
1393
1393
|
if (i)
|
|
1394
1394
|
return e.slice();
|
|
1395
|
-
var
|
|
1396
|
-
return e.copy(
|
|
1395
|
+
var c = new e.constructor(e.length);
|
|
1396
|
+
return e.copy(c), c;
|
|
1397
1397
|
}
|
|
1398
1398
|
function nt(e) {
|
|
1399
1399
|
var i = new e.constructor(e.byteLength);
|
|
1400
1400
|
return new wt(i).set(new wt(e)), i;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ha(e, i) {
|
|
1403
|
-
var
|
|
1404
|
-
return new e.constructor(
|
|
1403
|
+
var c = i ? nt(e.buffer) : e.buffer;
|
|
1404
|
+
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1405
1405
|
}
|
|
1406
|
-
function Ua(e, i,
|
|
1407
|
-
var h = i ?
|
|
1406
|
+
function Ua(e, i, c) {
|
|
1407
|
+
var h = i ? c(bt(e), !0) : bt(e);
|
|
1408
1408
|
return ft(h, Se, new e.constructor());
|
|
1409
1409
|
}
|
|
1410
1410
|
function Wa(e) {
|
|
1411
1411
|
var i = new e.constructor(e.source, T.exec(e));
|
|
1412
1412
|
return i.lastIndex = e.lastIndex, i;
|
|
1413
1413
|
}
|
|
1414
|
-
function za(e, i,
|
|
1415
|
-
var h = i ?
|
|
1414
|
+
function za(e, i, c) {
|
|
1415
|
+
var h = i ? c(ht(e), !0) : ht(e);
|
|
1416
1416
|
return ft(h, _e, new e.constructor());
|
|
1417
1417
|
}
|
|
1418
1418
|
function Va(e) {
|
|
1419
1419
|
return St ? Object(St.call(e)) : {};
|
|
1420
1420
|
}
|
|
1421
1421
|
function Ga(e, i) {
|
|
1422
|
-
var
|
|
1423
|
-
return new e.constructor(
|
|
1422
|
+
var c = i ? nt(e.buffer) : e.buffer;
|
|
1423
|
+
return new e.constructor(c, e.byteOffset, e.length);
|
|
1424
1424
|
}
|
|
1425
1425
|
function qa(e, i) {
|
|
1426
|
-
var
|
|
1427
|
-
for (i || (i = Array(h)); ++
|
|
1428
|
-
i[
|
|
1426
|
+
var c = -1, h = e.length;
|
|
1427
|
+
for (i || (i = Array(h)); ++c < h; )
|
|
1428
|
+
i[c] = e[c];
|
|
1429
1429
|
return i;
|
|
1430
1430
|
}
|
|
1431
|
-
function It(e, i,
|
|
1432
|
-
|
|
1433
|
-
for (var
|
|
1434
|
-
var se = i[
|
|
1435
|
-
_t(
|
|
1431
|
+
function It(e, i, c, h) {
|
|
1432
|
+
c || (c = {});
|
|
1433
|
+
for (var Z = -1, U = i.length; ++Z < U; ) {
|
|
1434
|
+
var se = i[Z], W = void 0;
|
|
1435
|
+
_t(c, se, W === void 0 ? e[se] : W);
|
|
1436
1436
|
}
|
|
1437
|
-
return
|
|
1437
|
+
return c;
|
|
1438
1438
|
}
|
|
1439
1439
|
function Xa(e, i) {
|
|
1440
1440
|
return It(e, Ot(e), i);
|
|
@@ -1443,73 +1443,73 @@ Ve.exports;
|
|
|
1443
1443
|
return Ma(e, it, Ot);
|
|
1444
1444
|
}
|
|
1445
1445
|
function Re(e, i) {
|
|
1446
|
-
var
|
|
1447
|
-
return an(i) ?
|
|
1446
|
+
var c = e.__data__;
|
|
1447
|
+
return an(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1448
1448
|
}
|
|
1449
1449
|
function ye(e, i) {
|
|
1450
|
-
var
|
|
1451
|
-
return ja(
|
|
1450
|
+
var c = ea(e, i);
|
|
1451
|
+
return ja(c) ? c : void 0;
|
|
1452
1452
|
}
|
|
1453
1453
|
var Ot = kt ? Xe(kt, Object) : dn, fe = Pa;
|
|
1454
|
-
(Je && fe(new Je(new ArrayBuffer(1))) !=
|
|
1455
|
-
var i = xe.call(e),
|
|
1454
|
+
(Je && fe(new Je(new ArrayBuffer(1))) != H || Ie && fe(new Ie()) != D || Qe && fe(Qe.resolve()) != x || et && fe(new et()) != L || tt && fe(new tt()) != J) && (fe = function(e) {
|
|
1455
|
+
var i = xe.call(e), c = i == S ? e.constructor : void 0, h = c ? ve(c) : void 0;
|
|
1456
1456
|
if (h)
|
|
1457
1457
|
switch (h) {
|
|
1458
1458
|
case ua:
|
|
1459
|
-
return
|
|
1459
|
+
return H;
|
|
1460
1460
|
case da:
|
|
1461
|
-
return
|
|
1461
|
+
return D;
|
|
1462
1462
|
case fa:
|
|
1463
|
-
return
|
|
1463
|
+
return x;
|
|
1464
1464
|
case va:
|
|
1465
|
-
return
|
|
1465
|
+
return L;
|
|
1466
1466
|
case ba:
|
|
1467
1467
|
return J;
|
|
1468
1468
|
}
|
|
1469
1469
|
return i;
|
|
1470
1470
|
});
|
|
1471
1471
|
function Ja(e) {
|
|
1472
|
-
var i = e.length,
|
|
1473
|
-
return i && typeof e[0] == "string" && ue.call(e, "index") && (
|
|
1472
|
+
var i = e.length, c = e.constructor(i);
|
|
1473
|
+
return i && typeof e[0] == "string" && ue.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1474
1474
|
}
|
|
1475
1475
|
function Qa(e) {
|
|
1476
1476
|
return typeof e.constructor == "function" && !Ct(e) ? La(ra(e)) : {};
|
|
1477
1477
|
}
|
|
1478
|
-
function en(e, i,
|
|
1479
|
-
var
|
|
1478
|
+
function en(e, i, c, h) {
|
|
1479
|
+
var Z = e.constructor;
|
|
1480
1480
|
switch (i) {
|
|
1481
1481
|
case Q:
|
|
1482
1482
|
return nt(e);
|
|
1483
1483
|
case v:
|
|
1484
|
-
case
|
|
1485
|
-
return new
|
|
1486
|
-
case
|
|
1484
|
+
case y:
|
|
1485
|
+
return new Z(+e);
|
|
1486
|
+
case H:
|
|
1487
1487
|
return Ha(e, h);
|
|
1488
|
+
case q:
|
|
1488
1489
|
case G:
|
|
1489
|
-
case C:
|
|
1490
|
-
case P:
|
|
1491
|
-
case U:
|
|
1492
|
-
case K:
|
|
1493
1490
|
case $:
|
|
1491
|
+
case P:
|
|
1492
|
+
case j:
|
|
1493
|
+
case O:
|
|
1494
1494
|
case d:
|
|
1495
1495
|
case s:
|
|
1496
1496
|
case f:
|
|
1497
1497
|
return Ga(e, h);
|
|
1498
|
-
case
|
|
1499
|
-
return Ua(e, h,
|
|
1500
|
-
case
|
|
1498
|
+
case D:
|
|
1499
|
+
return Ua(e, h, c);
|
|
1500
|
+
case B:
|
|
1501
1501
|
case ne:
|
|
1502
|
-
return new
|
|
1503
|
-
case
|
|
1502
|
+
return new Z(e);
|
|
1503
|
+
case V:
|
|
1504
1504
|
return Wa(e);
|
|
1505
|
-
case
|
|
1506
|
-
return za(e, h,
|
|
1505
|
+
case L:
|
|
1506
|
+
return za(e, h, c);
|
|
1507
1507
|
case ce:
|
|
1508
1508
|
return Va(e);
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
1511
|
function tn(e, i) {
|
|
1512
|
-
return i = i ??
|
|
1512
|
+
return i = i ?? l, !!i && (typeof e == "number" || A.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1513
1513
|
}
|
|
1514
1514
|
function an(e) {
|
|
1515
1515
|
var i = typeof e;
|
|
@@ -1519,8 +1519,8 @@ Ve.exports;
|
|
|
1519
1519
|
return !!pt && pt in e;
|
|
1520
1520
|
}
|
|
1521
1521
|
function Ct(e) {
|
|
1522
|
-
var i = e && e.constructor,
|
|
1523
|
-
return e ===
|
|
1522
|
+
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Fe;
|
|
1523
|
+
return e === c;
|
|
1524
1524
|
}
|
|
1525
1525
|
function ve(e) {
|
|
1526
1526
|
if (e != null) {
|
|
@@ -1554,10 +1554,10 @@ Ve.exports;
|
|
|
1554
1554
|
var cn = ca || fn;
|
|
1555
1555
|
function Nt(e) {
|
|
1556
1556
|
var i = Be(e) ? xe.call(e) : "";
|
|
1557
|
-
return i ==
|
|
1557
|
+
return i == F || i == E;
|
|
1558
1558
|
}
|
|
1559
1559
|
function ln(e) {
|
|
1560
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
1560
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
1561
1561
|
}
|
|
1562
1562
|
function Be(e) {
|
|
1563
1563
|
var i = typeof e;
|
|
@@ -1659,61 +1659,61 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1659
1659
|
"096ef197": n.zIndex,
|
|
1660
1660
|
"7a10f32f": v.value.height,
|
|
1661
1661
|
"7da84766": v.value.top,
|
|
1662
|
-
"1e6146be":
|
|
1663
|
-
"5b6aa028":
|
|
1664
|
-
"178af94b":
|
|
1665
|
-
"49f98062":
|
|
1666
|
-
"548fea1c":
|
|
1667
|
-
c0ba7b5e:
|
|
1662
|
+
"1e6146be": g.value.marginTop,
|
|
1663
|
+
"5b6aa028": O.value,
|
|
1664
|
+
"178af94b": y.value.display,
|
|
1665
|
+
"49f98062": y.value.minHeight,
|
|
1666
|
+
"548fea1c": F.value.top,
|
|
1667
|
+
c0ba7b5e: F.value.zIndex
|
|
1668
1668
|
}));
|
|
1669
|
-
const r = t, a = n,
|
|
1669
|
+
const r = t, a = n, l = Ge(), u = k(() => !!l.header), o = k(() => !!l.top), v = k(() => ({
|
|
1670
1670
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1671
1671
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1672
1672
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
1673
1673
|
height: a.topOffset ? `calc(100% - ${a.topOffset}px)` : "100%"
|
|
1674
|
-
})),
|
|
1674
|
+
})), y = k(() => ({
|
|
1675
1675
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1676
1676
|
minHeight: `${a.headerHeight}px`
|
|
1677
|
-
})),
|
|
1677
|
+
})), g = k(() => ({
|
|
1678
1678
|
marginTop: u.value ? `${a.headerHeight}px` : "0"
|
|
1679
|
-
})),
|
|
1679
|
+
})), F = k(() => ({
|
|
1680
1680
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1681
1681
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1682
|
-
})),
|
|
1683
|
-
var T,
|
|
1682
|
+
})), E = (s) => Kr(s).map((b) => {
|
|
1683
|
+
var T, N, A;
|
|
1684
1684
|
if (b) {
|
|
1685
|
-
(!b.key || !((T = b.key) != null && T.trim())) && (b.key = String(b.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!b.testId || !((
|
|
1686
|
-
for (const
|
|
1687
|
-
|
|
1685
|
+
(!b.key || !((T = b.key) != null && T.trim())) && (b.key = String(b.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!b.testId || !((N = b.testId) != null && N.trim())) && (b.testId = String(b.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1686
|
+
for (const m of b.items || [])
|
|
1687
|
+
m.parentKey = b.key, (!m.testId || !((A = m.testId) != null && A.trim())) && (m.testId = String(m.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1688
1688
|
}
|
|
1689
1689
|
return b;
|
|
1690
|
-
}),
|
|
1690
|
+
}), D = k(() => a.topItems.length ? E(a.topItems) : []), B = k(() => a.bottomItems.length ? E(a.bottomItems) : []), S = z(a.open), x = (s) => {
|
|
1691
1691
|
var f, b;
|
|
1692
|
-
|
|
1693
|
-
},
|
|
1694
|
-
a.mobileOverlayCloseOnClick &&
|
|
1695
|
-
},
|
|
1696
|
-
|
|
1697
|
-
|
|
1692
|
+
S.value !== s && (S.value = s, r("toggle", s)), s ? (f = document == null ? void 0 : document.body) == null || f.classList.add("kong-ui-app-sidebar-open") : (b = document == null ? void 0 : document.body) == null || b.classList.remove("kong-ui-app-sidebar-open"), L.value = !1;
|
|
1693
|
+
}, V = () => {
|
|
1694
|
+
a.mobileOverlayCloseOnClick && x(!1);
|
|
1695
|
+
}, L = z(!1), ne = (s) => {
|
|
1696
|
+
L.value = !0, r("click", s), setTimeout(() => {
|
|
1697
|
+
x(!1);
|
|
1698
1698
|
}, a.mobileCloseDelay);
|
|
1699
1699
|
};
|
|
1700
1700
|
Ke(() => a.open, (s) => {
|
|
1701
|
-
|
|
1701
|
+
x(s);
|
|
1702
1702
|
});
|
|
1703
1703
|
const { debounce: ce } = Xt(), J = ce(() => {
|
|
1704
|
-
|
|
1705
|
-
}, 200), Q =
|
|
1706
|
-
|
|
1707
|
-
},
|
|
1704
|
+
S.value && Q.value !== (window == null ? void 0 : window.innerWidth) && (Q.value = window == null ? void 0 : window.innerWidth, x(!1));
|
|
1705
|
+
}, 200), Q = z(), H = z(!1), q = z(), G = () => {
|
|
1706
|
+
H.value || (H.value = !0, clearTimeout(q.value), q.value = setTimeout(() => H.value = !1, 1300));
|
|
1707
|
+
}, $ = z(null), P = k(() => S.value && a.mobileEnabled), j = async (s) => {
|
|
1708
1708
|
var f, b;
|
|
1709
|
-
s ? (await Rt(), await new Promise((T) => setTimeout(T, 300)), (f =
|
|
1709
|
+
s ? (await Rt(), await new Promise((T) => setTimeout(T, 300)), (f = $.value) == null || f.activate()) : (b = $.value) == null || b.deactivate();
|
|
1710
1710
|
};
|
|
1711
|
-
Ke(
|
|
1712
|
-
s ? await
|
|
1711
|
+
Ke(P, async (s) => {
|
|
1712
|
+
s ? await j(!0) : await j(!1);
|
|
1713
1713
|
}, { immediate: !0 });
|
|
1714
|
-
const
|
|
1715
|
-
var
|
|
1716
|
-
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((
|
|
1714
|
+
const O = z("0px"), d = () => {
|
|
1715
|
+
var m;
|
|
1716
|
+
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((m = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : m.platform)))
|
|
1717
1717
|
return;
|
|
1718
1718
|
const f = document.createElement("div");
|
|
1719
1719
|
f.style.visibility = "hidden", f.style.width = "100px", document.body.appendChild(f);
|
|
@@ -1721,74 +1721,74 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1721
1721
|
f.style.overflow = "scroll";
|
|
1722
1722
|
const T = document.createElement("div");
|
|
1723
1723
|
T.style.width = "100%", f.appendChild(T);
|
|
1724
|
-
const
|
|
1725
|
-
f.parentNode && f.parentNode.removeChild(f), b -
|
|
1724
|
+
const N = T.offsetWidth;
|
|
1725
|
+
f.parentNode && f.parentNode.removeChild(f), b - N === 0 && (O.value = "8px");
|
|
1726
1726
|
};
|
|
1727
1727
|
return qe(async () => {
|
|
1728
|
-
Q.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", J), window.addEventListener("resize",
|
|
1728
|
+
Q.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", J), window.addEventListener("resize", G), await Rt(), d();
|
|
1729
1729
|
}), Ht(() => {
|
|
1730
|
-
window.removeEventListener("resize", J), window.removeEventListener("resize",
|
|
1730
|
+
window.removeEventListener("resize", J), window.removeEventListener("resize", G);
|
|
1731
1731
|
}), (s, f) => (p(), w($e, null, [
|
|
1732
|
-
|
|
1732
|
+
S.value && n.mobileOverlay && n.mobileEnabled ? (p(), w("div", {
|
|
1733
1733
|
key: 0,
|
|
1734
1734
|
class: "kong-ui-app-sidebar-overlay",
|
|
1735
|
-
onClick:
|
|
1736
|
-
})) :
|
|
1735
|
+
onClick: V
|
|
1736
|
+
})) : C("", !0),
|
|
1737
1737
|
Ne(yn(Pr), {
|
|
1738
1738
|
ref_key: "focusTrap",
|
|
1739
|
-
ref:
|
|
1739
|
+
ref: $,
|
|
1740
1740
|
active: !1,
|
|
1741
1741
|
"allow-outside-click": "",
|
|
1742
1742
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1743
1743
|
}, {
|
|
1744
|
-
default:
|
|
1744
|
+
default: R(() => [
|
|
1745
1745
|
I("aside", {
|
|
1746
1746
|
class: re(["kong-ui-app-sidebar", {
|
|
1747
|
-
"sidebar-open":
|
|
1747
|
+
"sidebar-open": S.value,
|
|
1748
1748
|
"no-sidebar-header": !u.value,
|
|
1749
1749
|
"mobile-header-hidden": n.mobileEnabled && (!u.value || !n.mobileHeaderVisible),
|
|
1750
1750
|
"mobile-disabled": !n.mobileEnabled,
|
|
1751
|
-
"disable-transitions":
|
|
1751
|
+
"disable-transitions": H.value
|
|
1752
1752
|
}]),
|
|
1753
1753
|
tabindex: "-1"
|
|
1754
1754
|
}, [
|
|
1755
1755
|
u.value ? (p(), w("div", Hr, [
|
|
1756
|
-
|
|
1757
|
-
])) :
|
|
1756
|
+
_(s.$slots, "header", {}, void 0, !0)
|
|
1757
|
+
])) : C("", !0),
|
|
1758
1758
|
I("div", Ur, [
|
|
1759
1759
|
o.value ? (p(), w("div", Wr, [
|
|
1760
|
-
|
|
1761
|
-
])) :
|
|
1760
|
+
_(s.$slots, "top", {}, void 0, !0)
|
|
1761
|
+
])) : C("", !0),
|
|
1762
1762
|
I("nav", zr, [
|
|
1763
|
-
|
|
1764
|
-
(p(!0), w($e, null, Te(
|
|
1763
|
+
D.value.length ? (p(), w("ul", Vr, [
|
|
1764
|
+
(p(!0), w($e, null, Te(D.value, (b) => (p(), Y(Bt, {
|
|
1765
1765
|
key: b.name,
|
|
1766
1766
|
item: b,
|
|
1767
1767
|
onClick: ne
|
|
1768
1768
|
}, {
|
|
1769
|
-
[`sidebar-icon-${b.key}`]:
|
|
1770
|
-
|
|
1769
|
+
[`sidebar-icon-${b.key}`]: R(() => [
|
|
1770
|
+
_(s.$slots, `sidebar-icon-${b.key}`, {}, void 0, !0)
|
|
1771
1771
|
]),
|
|
1772
1772
|
_: 2
|
|
1773
1773
|
}, 1032, ["item"]))), 128))
|
|
1774
|
-
])) :
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
(p(!0), w($e, null, Te(
|
|
1774
|
+
])) : C("", !0),
|
|
1775
|
+
D.value.length && B.value.length ? (p(), w("div", Gr)) : C("", !0),
|
|
1776
|
+
B.value.length ? (p(), w("ul", qr, [
|
|
1777
|
+
(p(!0), w($e, null, Te(B.value, (b) => (p(), Y(Bt, {
|
|
1778
1778
|
key: b.name,
|
|
1779
1779
|
item: b,
|
|
1780
1780
|
onClick: ne
|
|
1781
1781
|
}, {
|
|
1782
|
-
[`sidebar-icon-${b.key}`]:
|
|
1783
|
-
|
|
1782
|
+
[`sidebar-icon-${b.key}`]: R(() => [
|
|
1783
|
+
_(s.$slots, `sidebar-icon-${b.key}`, {}, void 0, !0)
|
|
1784
1784
|
]),
|
|
1785
1785
|
_: 2
|
|
1786
1786
|
}, 1032, ["item"]))), 128))
|
|
1787
|
-
])) :
|
|
1787
|
+
])) : C("", !0)
|
|
1788
1788
|
])
|
|
1789
1789
|
]),
|
|
1790
1790
|
I("div", Xr, [
|
|
1791
|
-
|
|
1791
|
+
_(s.$slots, "footer", {}, void 0, !0)
|
|
1792
1792
|
])
|
|
1793
1793
|
], 2)
|
|
1794
1794
|
]),
|
|
@@ -1806,15 +1806,15 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1806
1806
|
},
|
|
1807
1807
|
emits: ["toggle"],
|
|
1808
1808
|
setup(n, { emit: t }) {
|
|
1809
|
-
const r = t, a = n,
|
|
1810
|
-
o.preventDefault(),
|
|
1809
|
+
const r = t, a = n, l = z(a.active || !1), u = (o) => {
|
|
1810
|
+
o.preventDefault(), l.value = !l.value, r("toggle", l.value);
|
|
1811
1811
|
};
|
|
1812
1812
|
return Ke(() => a.active, (o) => {
|
|
1813
|
-
|
|
1813
|
+
l.value = o;
|
|
1814
1814
|
}), (o, v) => (p(), w("a", {
|
|
1815
1815
|
"aria-haspopup": "true",
|
|
1816
|
-
"aria-label":
|
|
1817
|
-
class: re(["sidebar-menu-toggle", { active:
|
|
1816
|
+
"aria-label": l.value ? "Close Main Menu" : "Open Main Menu",
|
|
1817
|
+
class: re(["sidebar-menu-toggle", { active: l.value }]),
|
|
1818
1818
|
href: "#",
|
|
1819
1819
|
role: "button",
|
|
1820
1820
|
onClick: wn(u, ["prevent"])
|
|
@@ -1866,161 +1866,164 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
},
|
|
1868
1868
|
emits: ["sidebar-click"],
|
|
1869
|
-
setup(n, {
|
|
1870
|
-
dt((
|
|
1871
|
-
"
|
|
1872
|
-
|
|
1873
|
-
"
|
|
1874
|
-
"
|
|
1875
|
-
"
|
|
1869
|
+
setup(n, { expose: t, emit: r }) {
|
|
1870
|
+
dt(($) => ({
|
|
1871
|
+
"72a55a78": ne.value,
|
|
1872
|
+
"9e9a4c0c": ce.value,
|
|
1873
|
+
"7252da12": L.value,
|
|
1874
|
+
"462277f6": J.value,
|
|
1875
|
+
"1490a569": Q.value
|
|
1876
1876
|
}));
|
|
1877
|
-
const
|
|
1878
|
-
navbarLeft: k(() => !!
|
|
1879
|
-
navbarCenter: k(() => !!
|
|
1880
|
-
navbarRight: k(() => !!
|
|
1881
|
-
navbarLogo: k(() => !!
|
|
1882
|
-
navbarMobileLogo: k(() => !!
|
|
1883
|
-
sidebarHeader: k(() => !!
|
|
1884
|
-
sidebarTop: k(() => !!
|
|
1885
|
-
sidebarFooter: k(() => !!
|
|
1886
|
-
}),
|
|
1887
|
-
hidden: k(() =>
|
|
1888
|
-
}),
|
|
1889
|
-
topItems: k(() =>
|
|
1890
|
-
bottomItems: k(() =>
|
|
1891
|
-
open: k(() =>
|
|
1892
|
-
hidden: k(() =>
|
|
1893
|
-
}),
|
|
1894
|
-
|
|
1895
|
-
},
|
|
1896
|
-
|
|
1877
|
+
const a = n, l = r, u = Ge(), o = je({
|
|
1878
|
+
navbarLeft: k(() => !!u["navbar-left"]),
|
|
1879
|
+
navbarCenter: k(() => !!u["navbar-center"]),
|
|
1880
|
+
navbarRight: k(() => !!u["navbar-right"]),
|
|
1881
|
+
navbarLogo: k(() => !!u["navbar-logo"]),
|
|
1882
|
+
navbarMobileLogo: k(() => !!u["navbar-mobile-logo"]),
|
|
1883
|
+
sidebarHeader: k(() => !!u["sidebar-header"]),
|
|
1884
|
+
sidebarTop: k(() => !!u["sidebar-top"]),
|
|
1885
|
+
sidebarFooter: k(() => !!u["sidebar-footer"])
|
|
1886
|
+
}), v = k(() => a.hideDefaultSlot), y = je({
|
|
1887
|
+
hidden: k(() => a.navbarHidden)
|
|
1888
|
+
}), g = je({
|
|
1889
|
+
topItems: k(() => a.sidebarTopItems),
|
|
1890
|
+
bottomItems: k(() => a.sidebarBottomItems),
|
|
1891
|
+
open: k(() => a.sidebarOpen),
|
|
1892
|
+
hidden: k(() => a.sidebarHidden)
|
|
1893
|
+
}), F = ($) => {
|
|
1894
|
+
l("sidebar-click", $);
|
|
1895
|
+
}, E = z(!1), D = ($) => {
|
|
1896
|
+
E.value = $;
|
|
1897
1897
|
};
|
|
1898
1898
|
kn(() => {
|
|
1899
|
-
|
|
1899
|
+
E.value = Tn(g, "open").value || !1;
|
|
1900
1900
|
});
|
|
1901
|
-
const
|
|
1902
|
-
if (
|
|
1903
|
-
|
|
1901
|
+
const B = z(0), S = z(60), x = z(0), V = k(() => y.hidden ? x.value : S.value + x.value), L = k(() => a.theme === "light" ? ri : ii), ne = k(() => a.theme === "light" ? ai : ni), ce = k(() => a.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), J = k(() => `${V.value}px`), Q = k(() => g.hidden || y.hidden ? oi : si), { debounce: H } = Xt(), q = H(($ = !1) => {
|
|
1902
|
+
if ($ || B.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1903
|
+
B.value = window == null ? void 0 : window.innerWidth;
|
|
1904
1904
|
const P = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1905
|
-
P && (
|
|
1905
|
+
P && (x.value = P.offsetHeight);
|
|
1906
1906
|
}
|
|
1907
|
-
}, 200), G =
|
|
1908
|
-
return
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1907
|
+
}, 200), G = z();
|
|
1908
|
+
return t({
|
|
1909
|
+
/** Expose the computed top offset */
|
|
1910
|
+
topOffset: x
|
|
1911
|
+
}), qe(() => {
|
|
1912
|
+
var P, j;
|
|
1913
|
+
(P = document == null ? void 0 : document.body) == null || P.classList.add("kong-ui-app-layout-body"), (j = document == null ? void 0 : document.documentElement) == null || j.classList.add("kong-ui-app-layout-html"), B.value = window == null ? void 0 : window.innerWidth, q(!0);
|
|
1914
|
+
const $ = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1915
|
+
$ && (G.value = new ResizeObserver((O) => {
|
|
1913
1916
|
window.requestAnimationFrame(() => {
|
|
1914
|
-
if (!(!Array.isArray(
|
|
1915
|
-
for (const
|
|
1916
|
-
const
|
|
1917
|
-
|
|
1917
|
+
if (!(!Array.isArray(O) || !O.length))
|
|
1918
|
+
for (const d of O) {
|
|
1919
|
+
const s = d.contentRect.height;
|
|
1920
|
+
x.value !== s && (x.value = s);
|
|
1918
1921
|
}
|
|
1919
1922
|
});
|
|
1920
|
-
}), G.value.observe(
|
|
1923
|
+
}), G.value.observe($)), window.addEventListener("resize", q);
|
|
1921
1924
|
}), Ht(() => {
|
|
1922
|
-
G.value && G.value.disconnect(), window.removeEventListener("resize",
|
|
1923
|
-
}), (
|
|
1925
|
+
G.value && G.value.disconnect(), window.removeEventListener("resize", q);
|
|
1926
|
+
}), ($, P) => (p(), w("div", {
|
|
1924
1927
|
class: re(["kong-ui-app-layout", [
|
|
1925
|
-
{ "navbar-hidden":
|
|
1926
|
-
{ "sidebar-hidden":
|
|
1928
|
+
{ "navbar-hidden": y.hidden },
|
|
1929
|
+
{ "sidebar-hidden": g.hidden }
|
|
1927
1930
|
]])
|
|
1928
1931
|
}, [
|
|
1929
1932
|
I("div", ci, [
|
|
1930
|
-
|
|
1933
|
+
_($.$slots, "notification", {}, void 0, !0)
|
|
1931
1934
|
]),
|
|
1932
|
-
|
|
1933
|
-
key: String(
|
|
1934
|
-
"left-offset":
|
|
1935
|
-
"top-offset":
|
|
1935
|
+
y.hidden ? C("", !0) : (p(), Y(er, {
|
|
1936
|
+
key: String(g.hidden),
|
|
1937
|
+
"left-offset": g.hidden ? 0 : void 0,
|
|
1938
|
+
"top-offset": x.value
|
|
1936
1939
|
}, Ze({
|
|
1937
|
-
"mobile-sidebar-toggle":
|
|
1938
|
-
|
|
1940
|
+
"mobile-sidebar-toggle": R(() => [
|
|
1941
|
+
g.hidden ? C("", !0) : (p(), Y(ti, {
|
|
1939
1942
|
key: 0,
|
|
1940
|
-
active:
|
|
1941
|
-
onToggle:
|
|
1943
|
+
active: E.value,
|
|
1944
|
+
onToggle: D
|
|
1942
1945
|
}, null, 8, ["active"]))
|
|
1943
1946
|
]),
|
|
1944
1947
|
_: 2
|
|
1945
1948
|
}, [
|
|
1946
|
-
|
|
1949
|
+
o.navbarMobileLogo ? {
|
|
1947
1950
|
name: "mobile-logo",
|
|
1948
|
-
fn:
|
|
1951
|
+
fn: R(() => [
|
|
1949
1952
|
I("div", li, [
|
|
1950
|
-
|
|
1953
|
+
_($.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1951
1954
|
])
|
|
1952
1955
|
]),
|
|
1953
1956
|
key: "0"
|
|
1954
1957
|
} : void 0,
|
|
1955
|
-
|
|
1958
|
+
o.navbarLogo ? {
|
|
1956
1959
|
name: "logo",
|
|
1957
|
-
fn:
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
])) :
|
|
1960
|
+
fn: R(() => [
|
|
1961
|
+
g.hidden ? (p(), w("div", ui, [
|
|
1962
|
+
_($.$slots, "navbar-logo", {}, void 0, !0)
|
|
1963
|
+
])) : C("", !0)
|
|
1961
1964
|
]),
|
|
1962
1965
|
key: "1"
|
|
1963
1966
|
} : void 0,
|
|
1964
|
-
|
|
1967
|
+
o.navbarLeft ? {
|
|
1965
1968
|
name: "left",
|
|
1966
|
-
fn:
|
|
1967
|
-
|
|
1969
|
+
fn: R(() => [
|
|
1970
|
+
_($.$slots, "navbar-left", {}, void 0, !0)
|
|
1968
1971
|
]),
|
|
1969
1972
|
key: "2"
|
|
1970
1973
|
} : void 0,
|
|
1971
|
-
|
|
1974
|
+
o.navbarCenter ? {
|
|
1972
1975
|
name: "center",
|
|
1973
|
-
fn:
|
|
1974
|
-
|
|
1976
|
+
fn: R(() => [
|
|
1977
|
+
_($.$slots, "navbar-center", {}, void 0, !0)
|
|
1975
1978
|
]),
|
|
1976
1979
|
key: "3"
|
|
1977
1980
|
} : void 0,
|
|
1978
|
-
|
|
1981
|
+
o.navbarRight ? {
|
|
1979
1982
|
name: "right",
|
|
1980
|
-
fn:
|
|
1981
|
-
|
|
1983
|
+
fn: R(() => [
|
|
1984
|
+
_($.$slots, "navbar-right", {}, void 0, !0)
|
|
1982
1985
|
]),
|
|
1983
1986
|
key: "4"
|
|
1984
1987
|
} : void 0
|
|
1985
1988
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1986
|
-
|
|
1989
|
+
g.hidden ? C("", !0) : (p(), Y(Jr, {
|
|
1987
1990
|
key: 1,
|
|
1988
|
-
"bottom-items":
|
|
1989
|
-
"header-height":
|
|
1991
|
+
"bottom-items": g.bottomItems,
|
|
1992
|
+
"header-height": S.value,
|
|
1990
1993
|
"mobile-enabled": "",
|
|
1991
1994
|
"mobile-header-visible": !1,
|
|
1992
|
-
"mobile-top-offset":
|
|
1993
|
-
open:
|
|
1994
|
-
"top-items":
|
|
1995
|
-
"top-offset":
|
|
1996
|
-
onClick:
|
|
1997
|
-
onToggle:
|
|
1995
|
+
"mobile-top-offset": V.value,
|
|
1996
|
+
open: E.value,
|
|
1997
|
+
"top-items": g.topItems,
|
|
1998
|
+
"top-offset": x.value,
|
|
1999
|
+
onClick: F,
|
|
2000
|
+
onToggle: D
|
|
1998
2001
|
}, Ze({ _: 2 }, [
|
|
1999
|
-
|
|
2002
|
+
o.sidebarHeader ? {
|
|
2000
2003
|
name: "header",
|
|
2001
|
-
fn:
|
|
2002
|
-
|
|
2004
|
+
fn: R(() => [
|
|
2005
|
+
_($.$slots, "sidebar-header", {}, void 0, !0)
|
|
2003
2006
|
]),
|
|
2004
2007
|
key: "0"
|
|
2005
2008
|
} : void 0,
|
|
2006
|
-
|
|
2009
|
+
o.sidebarTop ? {
|
|
2007
2010
|
name: "top",
|
|
2008
|
-
fn:
|
|
2009
|
-
|
|
2011
|
+
fn: R(() => [
|
|
2012
|
+
_($.$slots, "sidebar-top", {}, void 0, !0)
|
|
2010
2013
|
]),
|
|
2011
2014
|
key: "1"
|
|
2012
2015
|
} : void 0,
|
|
2013
|
-
|
|
2016
|
+
o.sidebarFooter ? {
|
|
2014
2017
|
name: "footer",
|
|
2015
|
-
fn:
|
|
2016
|
-
|
|
2018
|
+
fn: R(() => [
|
|
2019
|
+
_($.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2017
2020
|
]),
|
|
2018
2021
|
key: "2"
|
|
2019
2022
|
} : void 0,
|
|
2020
|
-
Te([...
|
|
2021
|
-
name: `sidebar-icon-${
|
|
2022
|
-
fn:
|
|
2023
|
-
|
|
2023
|
+
Te([...g.topItems || [], ...g.bottomItems || []], (j) => ({
|
|
2024
|
+
name: `sidebar-icon-${j.key}`,
|
|
2025
|
+
fn: R(() => [
|
|
2026
|
+
_($.$slots, `sidebar-icon-${j.key}`, {}, void 0, !0)
|
|
2024
2027
|
])
|
|
2025
2028
|
}))
|
|
2026
2029
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
@@ -2028,14 +2031,14 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
2028
2031
|
I("div", fi, [
|
|
2029
2032
|
I("div", vi, [
|
|
2030
2033
|
P[0] || (P[0] = I("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2031
|
-
|
|
2032
|
-
|
|
2034
|
+
_($.$slots, "app-error", {}, void 0, !0),
|
|
2035
|
+
v.value ? C("", !0) : _($.$slots, "default", { key: 0 }, void 0, !0)
|
|
2033
2036
|
])
|
|
2034
2037
|
])
|
|
2035
2038
|
])
|
|
2036
2039
|
], 2));
|
|
2037
2040
|
}
|
|
2038
|
-
}), hi = /* @__PURE__ */ ae(bi, [["__scopeId", "data-v-
|
|
2041
|
+
}), hi = /* @__PURE__ */ ae(bi, [["__scopeId", "data-v-e91733ca"]]), pi = { class: "kong-ui-app-page-header" }, mi = {
|
|
2039
2042
|
key: 0,
|
|
2040
2043
|
class: "page-header-breadcrumbs",
|
|
2041
2044
|
"data-testid": "page-header-breadcrumbs"
|
|
@@ -2072,7 +2075,7 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
2072
2075
|
const t = n, r = Ge(), a = k(() => {
|
|
2073
2076
|
var u;
|
|
2074
2077
|
return !!((u = t.breadcrumbs) != null && u.length);
|
|
2075
|
-
}),
|
|
2078
|
+
}), l = k(() => Object.keys(r).filter((u) => u.startsWith("icon-")));
|
|
2076
2079
|
return (u, o) => {
|
|
2077
2080
|
const v = he("KBreadcrumbs");
|
|
2078
2081
|
return p(), w("div", pi, [
|
|
@@ -2081,35 +2084,35 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
2081
2084
|
"item-max-width": "150",
|
|
2082
2085
|
items: n.breadcrumbs
|
|
2083
2086
|
}, Ze({ _: 2 }, [
|
|
2084
|
-
Te(
|
|
2085
|
-
name:
|
|
2086
|
-
fn:
|
|
2087
|
-
|
|
2087
|
+
Te(l.value, (y) => ({
|
|
2088
|
+
name: y,
|
|
2089
|
+
fn: R(() => [
|
|
2090
|
+
_(u.$slots, y, {}, void 0, !0)
|
|
2088
2091
|
])
|
|
2089
2092
|
}))
|
|
2090
2093
|
]), 1032, ["items"])
|
|
2091
|
-
])) :
|
|
2094
|
+
])) : C("", !0),
|
|
2092
2095
|
I("div", gi, [
|
|
2093
2096
|
I("div", yi, [
|
|
2094
2097
|
u.$slots["title-before"] ? (p(), w("div", wi, [
|
|
2095
|
-
|
|
2096
|
-
])) :
|
|
2098
|
+
_(u.$slots, "title-before", {}, void 0, !0)
|
|
2099
|
+
])) : C("", !0),
|
|
2097
2100
|
I("h1", {
|
|
2098
2101
|
class: "page-header-title",
|
|
2099
2102
|
"data-testid": "page-header-title",
|
|
2100
2103
|
title: n.title
|
|
2101
2104
|
}, X(n.title), 9, ki),
|
|
2102
2105
|
u.$slots["title-after"] ? (p(), w("div", Ti, [
|
|
2103
|
-
|
|
2104
|
-
])) :
|
|
2106
|
+
_(u.$slots, "title-after", {}, void 0, !0)
|
|
2107
|
+
])) : C("", !0)
|
|
2105
2108
|
]),
|
|
2106
2109
|
u.$slots.actions ? (p(), w("div", Si, [
|
|
2107
|
-
|
|
2108
|
-
])) :
|
|
2110
|
+
_(u.$slots, "actions", {}, void 0, !0)
|
|
2111
|
+
])) : C("", !0)
|
|
2109
2112
|
]),
|
|
2110
2113
|
u.$slots.below ? (p(), w("div", _i, [
|
|
2111
|
-
|
|
2112
|
-
])) :
|
|
2114
|
+
_(u.$slots, "below", {}, void 0, !0)
|
|
2115
|
+
])) : C("", !0)
|
|
2113
2116
|
]);
|
|
2114
2117
|
};
|
|
2115
2118
|
}
|