@kong-ui-public/app-layout 0.22.23-pr.782.8f9d641d.0 → 0.22.23
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 +573 -671
- package/dist/app-layout.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/types/components/aboutSection/AppAboutSection.vue.d.ts +0 -69
- package/dist/types/components/aboutSection/AppAboutSection.vue.d.ts.map +0 -1
package/dist/app-layout.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const Cn = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as ae, resolveComponent as ye, openBlock as p, createBlock as Q, withCtx as Z, renderSlot as N, createElementBlock as I, Fragment as Oe, renderList as Ne, normalizeClass as ie, createTextVNode as st, toDisplayString as _e, createStaticVNode as pn, createElementVNode as T, createVNode as ze, pushScopeId as Ve, popScopeId as Ge, useCssVars as ut, useSlots as dt, computed as g, reactive as Le, onMounted as Ue, createCommentVNode as x, resolveDynamicComponent as mn, withKeys as gn, ref as q, watch as Pe, onUnmounted as yn, Comment as _n, cloneVNode as wn, onBeforeUnmount as Kt, unref as Tn, nextTick as kn, withModifiers as Sn, watchEffect as In, toRef as On, createSlots as ct } from "vue";
|
|
2
|
+
const Cn = /* @__PURE__ */ ae({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
5
5
|
options: {
|
|
@@ -19,26 +19,26 @@ const Cn = /* @__PURE__ */ te({
|
|
|
19
19
|
},
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (t, a) => {
|
|
22
|
-
const r =
|
|
23
|
-
return
|
|
22
|
+
const r = ye("KDropdownItem"), l = ye("KDropdownMenu");
|
|
23
|
+
return p(), Q(l, {
|
|
24
24
|
class: "account-dropdown",
|
|
25
25
|
"kpop-attributes": { placement: "bottomStart" },
|
|
26
26
|
label: n.userInitials,
|
|
27
27
|
size: "small",
|
|
28
28
|
width: n.width
|
|
29
29
|
}, {
|
|
30
|
-
items:
|
|
31
|
-
|
|
32
|
-
(
|
|
30
|
+
items: Z(({ handleSelection: d }) => [
|
|
31
|
+
N(t.$slots, "default", {}, () => [
|
|
32
|
+
(p(!0), I(Oe, null, Ne(n.options, (o) => (p(), Q(r, {
|
|
33
33
|
key: o.value,
|
|
34
34
|
class: ie({ "has-divider": o.hasDivider }),
|
|
35
35
|
"data-testid": "select-" + o.value,
|
|
36
36
|
"has-divider": o.hasDivider,
|
|
37
37
|
onClick: (v) => d(o)
|
|
38
38
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
default: Z(() => [
|
|
40
|
+
N(t.$slots, "default", { option: o }, () => [
|
|
41
|
+
st(_e(o.label), 1)
|
|
42
42
|
], !0)
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
@@ -50,143 +50,46 @@ const Cn = /* @__PURE__ */ te({
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const ne = (n, t) => {
|
|
54
54
|
const a = n.__vccOpts || n;
|
|
55
55
|
for (const [r, l] of t)
|
|
56
56
|
a[r] = l;
|
|
57
57
|
return a;
|
|
58
|
-
},
|
|
59
|
-
key: 0,
|
|
60
|
-
class: "about-section-timestamps-created"
|
|
61
|
-
}, En = {
|
|
62
|
-
key: 1,
|
|
63
|
-
class: "about-section-timestamps-arrow"
|
|
64
|
-
}, Fn = {
|
|
65
|
-
key: 2,
|
|
66
|
-
class: "about-section-timestamps-modified"
|
|
67
|
-
}, xn = {
|
|
68
|
-
key: 1,
|
|
69
|
-
class: "about-section-actions",
|
|
70
|
-
"data-testid": "about-section-actions"
|
|
71
|
-
}, Dn = {
|
|
72
|
-
key: 0,
|
|
73
|
-
class: "about-section-description"
|
|
74
|
-
}, Bn = {
|
|
75
|
-
key: 1,
|
|
76
|
-
class: "about-section-content"
|
|
77
|
-
}, Rn = { key: 2 }, Ln = {
|
|
78
|
-
key: 3,
|
|
79
|
-
class: "about-divider-section"
|
|
80
|
-
}, Pn = /* @__PURE__ */ te({
|
|
81
|
-
__name: "AppAboutSection",
|
|
82
|
-
props: {
|
|
83
|
-
title: {
|
|
84
|
-
type: String,
|
|
85
|
-
default: ""
|
|
86
|
-
},
|
|
87
|
-
description: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: ""
|
|
90
|
-
},
|
|
91
|
-
created: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: ""
|
|
94
|
-
},
|
|
95
|
-
createdLabel: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: ""
|
|
98
|
-
},
|
|
99
|
-
modified: {
|
|
100
|
-
type: String,
|
|
101
|
-
default: ""
|
|
102
|
-
},
|
|
103
|
-
modifiedLabel: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: ""
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
setup(n) {
|
|
109
|
-
const t = n, a = g(() => !!t.modified && t.modified !== t.created);
|
|
110
|
-
return (r, l) => {
|
|
111
|
-
const d = ve("KCard");
|
|
112
|
-
return h(), Q(d, { class: "kong-ui-app-about-section" }, Pe({
|
|
113
|
-
body: B(() => [
|
|
114
|
-
n.description ? (h(), m("p", Dn, J(n.description), 1)) : C("", !0),
|
|
115
|
-
r.$slots.default ? (h(), m("div", Bn, [
|
|
116
|
-
$(r.$slots, "default", {}, void 0, !0)
|
|
117
|
-
])) : C("", !0),
|
|
118
|
-
r.$slots["divider-section"] ? (h(), m("hr", Rn)) : C("", !0),
|
|
119
|
-
r.$slots["divider-section"] ? (h(), m("div", Ln, [
|
|
120
|
-
$(r.$slots, "divider-section", {}, void 0, !0)
|
|
121
|
-
])) : C("", !0)
|
|
122
|
-
]),
|
|
123
|
-
_: 2
|
|
124
|
-
}, [
|
|
125
|
-
n.title ? {
|
|
126
|
-
name: "title",
|
|
127
|
-
fn: B(() => [
|
|
128
|
-
_("span", On, J(n.title), 1)
|
|
129
|
-
]),
|
|
130
|
-
key: "0"
|
|
131
|
-
} : void 0,
|
|
132
|
-
r.$slots.actions || n.created || n.modified ? {
|
|
133
|
-
name: "actions",
|
|
134
|
-
fn: B(() => [
|
|
135
|
-
_("div", An, [
|
|
136
|
-
n.created || n.modified ? (h(), m("div", {
|
|
137
|
-
key: 0,
|
|
138
|
-
class: ie(["about-section-timestamps", { "has-actions": r.$slots.actions }])
|
|
139
|
-
}, [
|
|
140
|
-
n.created ? (h(), m("span", Nn, J(n.createdLabel || "Created") + ": " + J(n.created), 1)) : C("", !0),
|
|
141
|
-
n.created && a.value ? (h(), m("span", En, "->")) : C("", !0),
|
|
142
|
-
a.value ? (h(), m("span", Fn, J(n.modifiedLabel || "Modified") + ": " + J(n.modified), 1)) : C("", !0)
|
|
143
|
-
], 2)) : C("", !0),
|
|
144
|
-
r.$slots.actions ? (h(), m("div", xn, [
|
|
145
|
-
$(r.$slots, "actions", {}, void 0, !0)
|
|
146
|
-
])) : C("", !0)
|
|
147
|
-
])
|
|
148
|
-
]),
|
|
149
|
-
key: "1"
|
|
150
|
-
} : void 0
|
|
151
|
-
]), 1024);
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
const Pi = /* @__PURE__ */ ae(Pn, [["__scopeId", "data-v-e4b20b31"]]), Mn = {}, Zn = {
|
|
58
|
+
}, Oi = /* @__PURE__ */ ne(Cn, [["__scopeId", "data-v-c4652497"]]), Nn = {}, $n = {
|
|
156
59
|
fill: "none",
|
|
157
60
|
height: "130",
|
|
158
61
|
width: "130",
|
|
159
62
|
xmlns: "http://www.w3.org/2000/svg"
|
|
160
|
-
},
|
|
161
|
-
|
|
63
|
+
}, An = /* @__PURE__ */ pn('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>', 5), En = [
|
|
64
|
+
An
|
|
162
65
|
];
|
|
163
|
-
function
|
|
164
|
-
return
|
|
66
|
+
function Fn(n, t) {
|
|
67
|
+
return p(), I("svg", $n, En);
|
|
165
68
|
}
|
|
166
|
-
const
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
], -1)),
|
|
69
|
+
const xn = /* @__PURE__ */ ne(Nn, [["render", Fn]]), zt = (n) => (Ve("data-v-5cbccc66"), n = n(), Ge(), n), Dn = { class: "kong-ui-app-error" }, Bn = { class: "banana-icon" }, Rn = { class: "kong-ui-app-error-content" }, Ln = /* @__PURE__ */ zt(() => /* @__PURE__ */ T("h2", null, "An unexpected error has occurred", -1)), Pn = /* @__PURE__ */ zt(() => /* @__PURE__ */ T("p", null, [
|
|
70
|
+
/* @__PURE__ */ st("Go back to the previous page or "),
|
|
71
|
+
/* @__PURE__ */ T("a", { href: "/" }, "return home"),
|
|
72
|
+
/* @__PURE__ */ st(".")
|
|
73
|
+
], -1)), Mn = /* @__PURE__ */ ae({
|
|
171
74
|
__name: "AppError",
|
|
172
75
|
setup(n) {
|
|
173
|
-
return (t, a) => (
|
|
174
|
-
|
|
175
|
-
|
|
76
|
+
return (t, a) => (p(), I("section", Dn, [
|
|
77
|
+
T("div", Bn, [
|
|
78
|
+
ze(xn)
|
|
176
79
|
]),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
80
|
+
T("div", Rn, [
|
|
81
|
+
N(t.$slots, "default", {}, () => [
|
|
82
|
+
Ln,
|
|
83
|
+
Pn
|
|
181
84
|
], !0)
|
|
182
85
|
])
|
|
183
86
|
]));
|
|
184
87
|
}
|
|
185
88
|
});
|
|
186
|
-
const
|
|
89
|
+
const Ci = /* @__PURE__ */ ne(Mn, [["__scopeId", "data-v-5cbccc66"]]), Zn = { class: "kong-ui-app-navbar" }, jn = { class: "header-content" }, Hn = { class: "mobile-header-left" }, Kn = {
|
|
187
90
|
key: 0,
|
|
188
91
|
class: "app-navbar-logo"
|
|
189
|
-
},
|
|
92
|
+
}, zn = { class: "navbar-content" }, Vn = { class: "navbar-content-left" }, Gn = { class: "navbar-content-center" }, Un = { class: "navbar-content-right" }, Wn = /* @__PURE__ */ ae({
|
|
190
93
|
__name: "AppNavbar",
|
|
191
94
|
props: {
|
|
192
95
|
topOffset: {
|
|
@@ -216,7 +119,7 @@ const Mi = /* @__PURE__ */ ae(Yn, [["__scopeId", "data-v-5cbccc66"]]), Xn = { cl
|
|
|
216
119
|
marginRight: "0",
|
|
217
120
|
width: "0"
|
|
218
121
|
});
|
|
219
|
-
|
|
122
|
+
Ue(() => {
|
|
220
123
|
var o, v;
|
|
221
124
|
(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");
|
|
222
125
|
});
|
|
@@ -225,31 +128,31 @@ const Mi = /* @__PURE__ */ ae(Yn, [["__scopeId", "data-v-5cbccc66"]]), Xn = { cl
|
|
|
225
128
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
226
129
|
zIndex: t.zIndex
|
|
227
130
|
}));
|
|
228
|
-
return (o, v) => (
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
131
|
+
return (o, v) => (p(), I("header", Zn, [
|
|
132
|
+
T("div", jn, [
|
|
133
|
+
T("div", Hn, [
|
|
134
|
+
N(o.$slots, "mobile-sidebar-toggle"),
|
|
135
|
+
N(o.$slots, "mobile-logo")
|
|
233
136
|
]),
|
|
234
|
-
r.value ? (
|
|
235
|
-
|
|
236
|
-
])) :
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
137
|
+
r.value ? (p(), I("div", Kn, [
|
|
138
|
+
N(o.$slots, "logo")
|
|
139
|
+
])) : x("", !0),
|
|
140
|
+
T("div", zn, [
|
|
141
|
+
T("div", Vn, [
|
|
142
|
+
N(o.$slots, "left")
|
|
240
143
|
]),
|
|
241
|
-
|
|
242
|
-
|
|
144
|
+
T("div", Gn, [
|
|
145
|
+
N(o.$slots, "center")
|
|
243
146
|
]),
|
|
244
|
-
|
|
245
|
-
|
|
147
|
+
T("div", Un, [
|
|
148
|
+
N(o.$slots, "right")
|
|
246
149
|
])
|
|
247
150
|
])
|
|
248
151
|
])
|
|
249
152
|
]));
|
|
250
153
|
}
|
|
251
154
|
});
|
|
252
|
-
const
|
|
155
|
+
const qn = /* @__PURE__ */ ne(Wn, [["__scopeId", "data-v-7a2a459a"]]), Yn = ["title"], it = 99, Xn = /* @__PURE__ */ ae({
|
|
253
156
|
__name: "ItemBadge",
|
|
254
157
|
props: {
|
|
255
158
|
count: {
|
|
@@ -259,21 +162,21 @@ const or = /* @__PURE__ */ ae(ir, [["__scopeId", "data-v-7a2a459a"]]), sr = ["ti
|
|
|
259
162
|
}
|
|
260
163
|
},
|
|
261
164
|
setup(n) {
|
|
262
|
-
const t = n, a = g(() => t.count ? t.count >
|
|
263
|
-
return (r, l) => a.value ? (
|
|
165
|
+
const t = n, a = g(() => t.count ? t.count > it ? `${it}+` : t.count.toString() : "");
|
|
166
|
+
return (r, l) => a.value ? (p(), I("div", {
|
|
264
167
|
key: 0,
|
|
265
168
|
class: "item-badge",
|
|
266
|
-
title: (n.count || 0) >
|
|
267
|
-
},
|
|
169
|
+
title: (n.count || 0) > it ? String(n.count) : void 0
|
|
170
|
+
}, _e(a.value), 9, Yn)) : x("", !0);
|
|
268
171
|
}
|
|
269
172
|
});
|
|
270
|
-
const
|
|
173
|
+
const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-912b1a1b"]]), Qn = ["data-testid"], er = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], tr = {
|
|
271
174
|
key: 0,
|
|
272
175
|
class: "sidebar-item-icon"
|
|
273
|
-
},
|
|
176
|
+
}, ar = { class: "sidebar-item-name-container" }, nr = { class: "sidebar-item-name has-tooltip" }, rr = {
|
|
274
177
|
key: 2,
|
|
275
178
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
276
|
-
},
|
|
179
|
+
}, ir = ["id"], or = /* @__PURE__ */ ae({
|
|
277
180
|
__name: "SidebarItem",
|
|
278
181
|
props: {
|
|
279
182
|
item: {
|
|
@@ -287,135 +190,135 @@ const lr = /* @__PURE__ */ ae(cr, [["__scopeId", "data-v-912b1a1b"]]), ur = ["da
|
|
|
287
190
|
},
|
|
288
191
|
emits: ["click"],
|
|
289
192
|
setup(n, { emit: t }) {
|
|
290
|
-
const a = n, r = g(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = g(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), d = g(() => a.subnavItem && a.item.badgeCount !== void 0), o = (
|
|
291
|
-
t("click",
|
|
292
|
-
}, v = (
|
|
293
|
-
o(
|
|
193
|
+
const a = n, r = g(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = g(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), d = g(() => a.subnavItem && a.item.badgeCount !== void 0), o = (h) => {
|
|
194
|
+
t("click", h);
|
|
195
|
+
}, v = (h, y, F) => {
|
|
196
|
+
o(y), typeof F == "function" && (h.preventDefault(), F());
|
|
294
197
|
};
|
|
295
|
-
return (
|
|
296
|
-
var
|
|
297
|
-
const
|
|
298
|
-
return
|
|
198
|
+
return (h, y) => {
|
|
199
|
+
var S;
|
|
200
|
+
const F = ye("KIcon"), $ = ye("KTooltip"), D = ye("SidebarItem", !0);
|
|
201
|
+
return p(), I("li", {
|
|
299
202
|
class: ie([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
300
203
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
301
204
|
}, [
|
|
302
|
-
(
|
|
205
|
+
(p(), Q(mn(r.value ? "div" : "router-link"), {
|
|
303
206
|
custom: r.value ? void 0 : !0,
|
|
304
207
|
to: !r.value && !l.value ? n.item.to : void 0
|
|
305
208
|
}, {
|
|
306
|
-
default:
|
|
209
|
+
default: Z((O) => {
|
|
307
210
|
var V, j;
|
|
308
211
|
return [
|
|
309
|
-
|
|
212
|
+
T("a", {
|
|
310
213
|
"aria-controls": (V = n.item.items) != null && V.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
311
214
|
"aria-expanded": (j = n.item.items) != null && j.length && n.item.expanded ? !0 : void 0,
|
|
312
215
|
class: ie(["sidebar-item-link", { "sidebar-item-external-link": l.value, "router-link": !r.value }]),
|
|
313
216
|
href: r.value ? String(n.item.to || "#") : O == null ? void 0 : O.href,
|
|
314
217
|
target: l.value ? "_blank" : void 0,
|
|
315
|
-
onClick: (
|
|
316
|
-
onKeypress: gn((
|
|
218
|
+
onClick: (M) => v(M, n.item, O == null ? void 0 : O.navigate),
|
|
219
|
+
onKeypress: gn((M) => v(M, n.item, O == null ? void 0 : O.navigate), ["enter"])
|
|
317
220
|
}, [
|
|
318
|
-
|
|
221
|
+
T("div", {
|
|
319
222
|
class: ie(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": d.value }])
|
|
320
223
|
}, [
|
|
321
|
-
n.item.icon ? (
|
|
322
|
-
|
|
224
|
+
n.item.icon ? (p(), I("div", tr, [
|
|
225
|
+
ze(F, {
|
|
323
226
|
icon: String(n.item.icon),
|
|
324
227
|
size: "20"
|
|
325
228
|
}, null, 8, ["icon"])
|
|
326
|
-
])) :
|
|
327
|
-
|
|
328
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
229
|
+
])) : x("", !0),
|
|
230
|
+
T("div", ar, [
|
|
231
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), I("div", {
|
|
329
232
|
key: 0,
|
|
330
233
|
class: ie(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
331
|
-
},
|
|
234
|
+
}, _e(n.item.name), 3)) : (p(), Q($, {
|
|
332
235
|
key: 1,
|
|
333
236
|
class: "sidebar-item-tooltip",
|
|
334
237
|
label: n.item.name,
|
|
335
238
|
placement: "right",
|
|
336
239
|
"position-fixed": ""
|
|
337
240
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
|
|
340
|
-
|
|
241
|
+
default: Z(() => [
|
|
242
|
+
T("div", nr, [
|
|
243
|
+
T("span", {
|
|
341
244
|
class: ie(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": d.value }]])
|
|
342
|
-
},
|
|
245
|
+
}, _e(n.item.name), 3)
|
|
343
246
|
])
|
|
344
247
|
]),
|
|
345
248
|
_: 1
|
|
346
249
|
}, 8, ["label"])),
|
|
347
|
-
n.item.label && n.item.expanded ? (
|
|
250
|
+
n.item.label && n.item.expanded ? (p(), I("div", rr, _e(n.item.label), 1)) : x("", !0)
|
|
348
251
|
]),
|
|
349
|
-
d.value ? (
|
|
252
|
+
d.value ? (p(), Q(Jn, {
|
|
350
253
|
key: 1,
|
|
351
254
|
count: n.item.badgeCount
|
|
352
|
-
}, null, 8, ["count"])) :
|
|
255
|
+
}, null, 8, ["count"])) : x("", !0)
|
|
353
256
|
], 2)
|
|
354
|
-
], 42,
|
|
257
|
+
], 42, er)
|
|
355
258
|
];
|
|
356
259
|
}),
|
|
357
260
|
_: 1
|
|
358
261
|
}, 8, ["custom", "to"])),
|
|
359
|
-
(
|
|
262
|
+
(S = n.item.items) != null && S.length && n.item.expanded ? (p(), I("ul", {
|
|
360
263
|
key: 0,
|
|
361
264
|
id: `subnav-${n.item.key}`,
|
|
362
265
|
class: "level-secondary"
|
|
363
266
|
}, [
|
|
364
|
-
(
|
|
267
|
+
(p(!0), I(Oe, null, Ne(n.item.items, (O) => (p(), Q(D, {
|
|
365
268
|
key: O.name,
|
|
366
269
|
item: O,
|
|
367
270
|
"subnav-item": !0,
|
|
368
271
|
onClick: (V) => o(O)
|
|
369
272
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
370
|
-
], 8,
|
|
371
|
-
], 10,
|
|
273
|
+
], 8, ir)) : x("", !0)
|
|
274
|
+
], 10, Qn);
|
|
372
275
|
};
|
|
373
276
|
}
|
|
374
277
|
});
|
|
375
|
-
const Rt = /* @__PURE__ */
|
|
278
|
+
const Rt = /* @__PURE__ */ ne(or, [["__scopeId", "data-v-859aa5c3"]]);
|
|
376
279
|
/*!
|
|
377
280
|
* tabbable 6.2.0
|
|
378
281
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
379
282
|
*/
|
|
380
|
-
var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"],
|
|
381
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
283
|
+
var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Me = /* @__PURE__ */ Vt.join(","), Gt = typeof Element > "u", fe = Gt ? function() {
|
|
284
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ze = !Gt && Element.prototype.getRootNode ? function(n) {
|
|
382
285
|
var t;
|
|
383
286
|
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
384
287
|
} : function(n) {
|
|
385
288
|
return n == null ? void 0 : n.ownerDocument;
|
|
386
|
-
},
|
|
289
|
+
}, je = function n(t, a) {
|
|
387
290
|
var r;
|
|
388
291
|
a === void 0 && (a = !0);
|
|
389
292
|
var l = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), d = l === "" || l === "true", o = d || a && t && n(t.parentNode);
|
|
390
293
|
return o;
|
|
391
|
-
},
|
|
294
|
+
}, sr = function(t) {
|
|
392
295
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
393
296
|
return r === "" || r === "true";
|
|
394
297
|
}, Ut = function(t, a, r) {
|
|
395
|
-
if (
|
|
298
|
+
if (je(t))
|
|
396
299
|
return [];
|
|
397
|
-
var l = Array.prototype.slice.apply(t.querySelectorAll(
|
|
398
|
-
return a &&
|
|
300
|
+
var l = Array.prototype.slice.apply(t.querySelectorAll(Me));
|
|
301
|
+
return a && fe.call(t, Me) && l.unshift(t), l = l.filter(r), l;
|
|
399
302
|
}, Wt = function n(t, a, r) {
|
|
400
303
|
for (var l = [], d = Array.from(t); d.length; ) {
|
|
401
304
|
var o = d.shift();
|
|
402
|
-
if (!
|
|
305
|
+
if (!je(o, !1))
|
|
403
306
|
if (o.tagName === "SLOT") {
|
|
404
|
-
var v = o.assignedElements(),
|
|
405
|
-
r.flatten ? l.push.apply(l,
|
|
307
|
+
var v = o.assignedElements(), h = v.length ? v : o.children, y = n(h, !0, r);
|
|
308
|
+
r.flatten ? l.push.apply(l, y) : l.push({
|
|
406
309
|
scopeParent: o,
|
|
407
|
-
candidates:
|
|
310
|
+
candidates: y
|
|
408
311
|
});
|
|
409
312
|
} else {
|
|
410
|
-
var
|
|
411
|
-
|
|
412
|
-
var
|
|
413
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !
|
|
414
|
-
if (
|
|
415
|
-
var
|
|
416
|
-
r.flatten ? l.push.apply(l,
|
|
313
|
+
var F = fe.call(o, Me);
|
|
314
|
+
F && r.filter(o) && (a || !t.includes(o)) && l.push(o);
|
|
315
|
+
var $ = o.shadowRoot || // check for an undisclosed shadow
|
|
316
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !je($, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
317
|
+
if ($ && D) {
|
|
318
|
+
var S = n($ === !0 ? o.children : $.children, !0, r);
|
|
319
|
+
r.flatten ? l.push.apply(l, S) : l.push({
|
|
417
320
|
scopeParent: o,
|
|
418
|
-
candidates:
|
|
321
|
+
candidates: S
|
|
419
322
|
});
|
|
420
323
|
} else
|
|
421
324
|
d.unshift.apply(d, o.children);
|
|
@@ -424,32 +327,32 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
424
327
|
return l;
|
|
425
328
|
}, qt = function(t) {
|
|
426
329
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
427
|
-
},
|
|
330
|
+
}, de = function(t) {
|
|
428
331
|
if (!t)
|
|
429
332
|
throw new Error("No node provided");
|
|
430
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
431
|
-
},
|
|
432
|
-
var r =
|
|
333
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || sr(t)) && !qt(t) ? 0 : t.tabIndex;
|
|
334
|
+
}, cr = function(t, a) {
|
|
335
|
+
var r = de(t);
|
|
433
336
|
return r < 0 && a && !qt(t) ? 0 : r;
|
|
434
|
-
},
|
|
337
|
+
}, lr = function(t, a) {
|
|
435
338
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
436
339
|
}, Yt = function(t) {
|
|
437
340
|
return t.tagName === "INPUT";
|
|
438
|
-
},
|
|
341
|
+
}, ur = function(t) {
|
|
439
342
|
return Yt(t) && t.type === "hidden";
|
|
440
|
-
},
|
|
343
|
+
}, dr = function(t) {
|
|
441
344
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
442
345
|
return r.tagName === "SUMMARY";
|
|
443
346
|
});
|
|
444
347
|
return a;
|
|
445
|
-
},
|
|
348
|
+
}, fr = function(t, a) {
|
|
446
349
|
for (var r = 0; r < t.length; r++)
|
|
447
350
|
if (t[r].checked && t[r].form === a)
|
|
448
351
|
return t[r];
|
|
449
|
-
},
|
|
352
|
+
}, vr = function(t) {
|
|
450
353
|
if (!t.name)
|
|
451
354
|
return !0;
|
|
452
|
-
var a = t.form ||
|
|
355
|
+
var a = t.form || Ze(t), r = function(v) {
|
|
453
356
|
return a.querySelectorAll('input[type="radio"][name="' + v + '"]');
|
|
454
357
|
}, l;
|
|
455
358
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -460,57 +363,57 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
460
363
|
} catch (o) {
|
|
461
364
|
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;
|
|
462
365
|
}
|
|
463
|
-
var d =
|
|
366
|
+
var d = fr(l, t.form);
|
|
464
367
|
return !d || d === t;
|
|
465
|
-
},
|
|
368
|
+
}, br = function(t) {
|
|
466
369
|
return Yt(t) && t.type === "radio";
|
|
467
|
-
},
|
|
468
|
-
return
|
|
469
|
-
},
|
|
470
|
-
var a, r = t &&
|
|
370
|
+
}, hr = function(t) {
|
|
371
|
+
return br(t) && !vr(t);
|
|
372
|
+
}, pr = function(t) {
|
|
373
|
+
var a, r = t && Ze(t), l = (a = r) === null || a === void 0 ? void 0 : a.host, d = !1;
|
|
471
374
|
if (r && r !== t) {
|
|
472
|
-
var o, v,
|
|
473
|
-
for (d = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (
|
|
474
|
-
var
|
|
475
|
-
r =
|
|
375
|
+
var o, v, h;
|
|
376
|
+
for (d = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (h = t.ownerDocument) !== null && h !== void 0 && h.contains(t)); !d && l; ) {
|
|
377
|
+
var y, F, $;
|
|
378
|
+
r = Ze(l), l = (y = r) === null || y === void 0 ? void 0 : y.host, d = !!((F = l) !== null && F !== void 0 && ($ = F.ownerDocument) !== null && $ !== void 0 && $.contains(l));
|
|
476
379
|
}
|
|
477
380
|
}
|
|
478
381
|
return d;
|
|
479
382
|
}, Lt = function(t) {
|
|
480
383
|
var a = t.getBoundingClientRect(), r = a.width, l = a.height;
|
|
481
384
|
return r === 0 && l === 0;
|
|
482
|
-
},
|
|
385
|
+
}, mr = function(t, a) {
|
|
483
386
|
var r = a.displayCheck, l = a.getShadowRoot;
|
|
484
387
|
if (getComputedStyle(t).visibility === "hidden")
|
|
485
388
|
return !0;
|
|
486
|
-
var d =
|
|
487
|
-
if (
|
|
389
|
+
var d = fe.call(t, "details>summary:first-of-type"), o = d ? t.parentElement : t;
|
|
390
|
+
if (fe.call(o, "details:not([open]) *"))
|
|
488
391
|
return !0;
|
|
489
392
|
if (!r || r === "full" || r === "legacy-full") {
|
|
490
393
|
if (typeof l == "function") {
|
|
491
394
|
for (var v = t; t; ) {
|
|
492
|
-
var
|
|
493
|
-
if (
|
|
395
|
+
var h = t.parentElement, y = Ze(t);
|
|
396
|
+
if (h && !h.shadowRoot && l(h) === !0)
|
|
494
397
|
return Lt(t);
|
|
495
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
398
|
+
t.assignedSlot ? t = t.assignedSlot : !h && y !== t.ownerDocument ? t = y.host : t = h;
|
|
496
399
|
}
|
|
497
400
|
t = v;
|
|
498
401
|
}
|
|
499
|
-
if (
|
|
402
|
+
if (pr(t))
|
|
500
403
|
return !t.getClientRects().length;
|
|
501
404
|
if (r !== "legacy-full")
|
|
502
405
|
return !0;
|
|
503
406
|
} else if (r === "non-zero-area")
|
|
504
407
|
return Lt(t);
|
|
505
408
|
return !1;
|
|
506
|
-
},
|
|
409
|
+
}, gr = function(t) {
|
|
507
410
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
508
411
|
for (var a = t.parentElement; a; ) {
|
|
509
412
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
510
413
|
for (var r = 0; r < a.children.length; r++) {
|
|
511
414
|
var l = a.children.item(r);
|
|
512
415
|
if (l.tagName === "LEGEND")
|
|
513
|
-
return
|
|
416
|
+
return fe.call(a, "fieldset[disabled] *") ? !0 : !l.contains(t);
|
|
514
417
|
}
|
|
515
418
|
return !0;
|
|
516
419
|
}
|
|
@@ -521,37 +424,37 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
521
424
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
522
425
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
523
426
|
// note related to `candidateSelectors`)
|
|
524
|
-
|
|
525
|
-
|
|
427
|
+
je(a) || ur(a) || mr(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
428
|
+
dr(a) || gr(a));
|
|
526
429
|
}, lt = function(t, a) {
|
|
527
|
-
return !(
|
|
528
|
-
},
|
|
430
|
+
return !(hr(a) || de(a) < 0 || !He(t, a));
|
|
431
|
+
}, yr = function(t) {
|
|
529
432
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
530
433
|
return !!(isNaN(a) || a >= 0);
|
|
531
|
-
},
|
|
434
|
+
}, _r = function n(t) {
|
|
532
435
|
var a = [], r = [];
|
|
533
436
|
return t.forEach(function(l, d) {
|
|
534
|
-
var o = !!l.scopeParent, v = o ? l.scopeParent : l,
|
|
535
|
-
|
|
437
|
+
var o = !!l.scopeParent, v = o ? l.scopeParent : l, h = cr(v, o), y = o ? n(l.candidates) : v;
|
|
438
|
+
h === 0 ? o ? a.push.apply(a, y) : a.push(v) : r.push({
|
|
536
439
|
documentOrder: d,
|
|
537
|
-
tabIndex:
|
|
440
|
+
tabIndex: h,
|
|
538
441
|
item: l,
|
|
539
442
|
isScope: o,
|
|
540
|
-
content:
|
|
443
|
+
content: y
|
|
541
444
|
});
|
|
542
|
-
}), r.sort(
|
|
445
|
+
}), r.sort(lr).reduce(function(l, d) {
|
|
543
446
|
return d.isScope ? l.push.apply(l, d.content) : l.push(d.content), l;
|
|
544
447
|
}, []).concat(a);
|
|
545
|
-
},
|
|
448
|
+
}, wr = function(t, a) {
|
|
546
449
|
a = a || {};
|
|
547
450
|
var r;
|
|
548
451
|
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
549
452
|
filter: lt.bind(null, a),
|
|
550
453
|
flatten: !1,
|
|
551
454
|
getShadowRoot: a.getShadowRoot,
|
|
552
|
-
shadowRootFilter:
|
|
553
|
-
}) : r = Ut(t, a.includeContainer, lt.bind(null, a)),
|
|
554
|
-
},
|
|
455
|
+
shadowRootFilter: yr
|
|
456
|
+
}) : r = Ut(t, a.includeContainer, lt.bind(null, a)), _r(r);
|
|
457
|
+
}, Tr = function(t, a) {
|
|
555
458
|
a = a || {};
|
|
556
459
|
var r;
|
|
557
460
|
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
@@ -559,14 +462,14 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
559
462
|
flatten: !0,
|
|
560
463
|
getShadowRoot: a.getShadowRoot
|
|
561
464
|
}) : r = Ut(t, a.includeContainer, He.bind(null, a)), r;
|
|
562
|
-
},
|
|
465
|
+
}, ge = function(t, a) {
|
|
563
466
|
if (a = a || {}, !t)
|
|
564
467
|
throw new Error("No node provided");
|
|
565
|
-
return
|
|
566
|
-
},
|
|
468
|
+
return fe.call(t, Me) === !1 ? !1 : lt(a, t);
|
|
469
|
+
}, kr = /* @__PURE__ */ Vt.concat("iframe").join(","), ot = function(t, a) {
|
|
567
470
|
if (a = a || {}, !t)
|
|
568
471
|
throw new Error("No node provided");
|
|
569
|
-
return
|
|
472
|
+
return fe.call(t, kr) === !1 ? !1 : He(a, t);
|
|
570
473
|
};
|
|
571
474
|
/*!
|
|
572
475
|
* focus-trap 7.5.2
|
|
@@ -586,22 +489,22 @@ function Mt(n) {
|
|
|
586
489
|
for (var t = 1; t < arguments.length; t++) {
|
|
587
490
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
588
491
|
t % 2 ? Pt(Object(a), !0).forEach(function(r) {
|
|
589
|
-
|
|
492
|
+
Sr(n, r, a[r]);
|
|
590
493
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) : Pt(Object(a)).forEach(function(r) {
|
|
591
494
|
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(a, r));
|
|
592
495
|
});
|
|
593
496
|
}
|
|
594
497
|
return n;
|
|
595
498
|
}
|
|
596
|
-
function
|
|
597
|
-
return t =
|
|
499
|
+
function Sr(n, t, a) {
|
|
500
|
+
return t = Or(t), t in n ? Object.defineProperty(n, t, {
|
|
598
501
|
value: a,
|
|
599
502
|
enumerable: !0,
|
|
600
503
|
configurable: !0,
|
|
601
504
|
writable: !0
|
|
602
505
|
}) : n[t] = a, n;
|
|
603
506
|
}
|
|
604
|
-
function
|
|
507
|
+
function Ir(n, t) {
|
|
605
508
|
if (typeof n != "object" || n === null)
|
|
606
509
|
return n;
|
|
607
510
|
var a = n[Symbol.toPrimitive];
|
|
@@ -613,8 +516,8 @@ function Rr(n, t) {
|
|
|
613
516
|
}
|
|
614
517
|
return (t === "string" ? String : Number)(n);
|
|
615
518
|
}
|
|
616
|
-
function
|
|
617
|
-
var t =
|
|
519
|
+
function Or(n) {
|
|
520
|
+
var t = Ir(n, "string");
|
|
618
521
|
return typeof t == "symbol" ? t : String(t);
|
|
619
522
|
}
|
|
620
523
|
var Zt = {
|
|
@@ -630,19 +533,19 @@ var Zt = {
|
|
|
630
533
|
var r = t.indexOf(a);
|
|
631
534
|
r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
632
535
|
}
|
|
633
|
-
},
|
|
536
|
+
}, Cr = function(t) {
|
|
634
537
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
635
|
-
},
|
|
538
|
+
}, Nr = function(t) {
|
|
636
539
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
637
540
|
}, Ce = function(t) {
|
|
638
541
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
639
|
-
},
|
|
542
|
+
}, $r = function(t) {
|
|
640
543
|
return Ce(t) && !t.shiftKey;
|
|
641
|
-
},
|
|
544
|
+
}, Ar = function(t) {
|
|
642
545
|
return Ce(t) && t.shiftKey;
|
|
643
546
|
}, jt = function(t) {
|
|
644
547
|
return setTimeout(t, 0);
|
|
645
|
-
},
|
|
548
|
+
}, Ht = function(t, a) {
|
|
646
549
|
var r = -1;
|
|
647
550
|
return t.every(function(l, d) {
|
|
648
551
|
return a(l) ? (r = d, !1) : !0;
|
|
@@ -653,13 +556,13 @@ var Zt = {
|
|
|
653
556
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
654
557
|
}, Be = function(t) {
|
|
655
558
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
656
|
-
},
|
|
657
|
-
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) ||
|
|
559
|
+
}, Er = [], Fr = function(t, a) {
|
|
560
|
+
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) || Er, d = Mt({
|
|
658
561
|
returnFocusOnDeactivate: !0,
|
|
659
562
|
escapeDeactivates: !0,
|
|
660
563
|
delayInitialFocus: !0,
|
|
661
|
-
isKeyForward:
|
|
662
|
-
isKeyBackward:
|
|
564
|
+
isKeyForward: $r,
|
|
565
|
+
isKeyBackward: Ar
|
|
663
566
|
}, a), o = {
|
|
664
567
|
// containers given to createFocusTrap()
|
|
665
568
|
// @type {Array<HTMLElement>}
|
|
@@ -696,69 +599,69 @@ var Zt = {
|
|
|
696
599
|
delayInitialFocusTimer: void 0,
|
|
697
600
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
698
601
|
recentNavEvent: void 0
|
|
699
|
-
}, v,
|
|
602
|
+
}, v, h = function(s, u, f) {
|
|
700
603
|
return s && s[u] !== void 0 ? s[u] : d[f || u];
|
|
701
|
-
},
|
|
604
|
+
}, y = function(s, u) {
|
|
702
605
|
var f = typeof (u == null ? void 0 : u.composedPath) == "function" ? u.composedPath() : void 0;
|
|
703
|
-
return o.containerGroups.findIndex(function(
|
|
704
|
-
var
|
|
705
|
-
return
|
|
606
|
+
return o.containerGroups.findIndex(function(m) {
|
|
607
|
+
var w = m.container, A = m.tabbableNodes;
|
|
608
|
+
return w.contains(s) || // fall back to explicit tabbable search which will take into consideration any
|
|
706
609
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
707
610
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
708
611
|
// look inside web components even if open)
|
|
709
|
-
(f == null ? void 0 : f.includes(
|
|
710
|
-
return
|
|
612
|
+
(f == null ? void 0 : f.includes(w)) || A.find(function(E) {
|
|
613
|
+
return E === s;
|
|
711
614
|
});
|
|
712
615
|
});
|
|
713
|
-
},
|
|
616
|
+
}, F = function(s) {
|
|
714
617
|
var u = d[s];
|
|
715
618
|
if (typeof u == "function") {
|
|
716
|
-
for (var f = arguments.length,
|
|
717
|
-
|
|
718
|
-
u = u.apply(void 0,
|
|
619
|
+
for (var f = arguments.length, m = new Array(f > 1 ? f - 1 : 0), w = 1; w < f; w++)
|
|
620
|
+
m[w - 1] = arguments[w];
|
|
621
|
+
u = u.apply(void 0, m);
|
|
719
622
|
}
|
|
720
623
|
if (u === !0 && (u = void 0), !u) {
|
|
721
624
|
if (u === void 0 || u === !1)
|
|
722
625
|
return u;
|
|
723
626
|
throw new Error("`".concat(s, "` was specified but was not a node, or did not return a node"));
|
|
724
627
|
}
|
|
725
|
-
var
|
|
726
|
-
if (typeof u == "string" && (
|
|
628
|
+
var A = u;
|
|
629
|
+
if (typeof u == "string" && (A = r.querySelector(u), !A))
|
|
727
630
|
throw new Error("`".concat(s, "` as selector refers to no known node"));
|
|
728
|
-
return
|
|
729
|
-
},
|
|
730
|
-
var s =
|
|
631
|
+
return A;
|
|
632
|
+
}, $ = function() {
|
|
633
|
+
var s = F("initialFocus");
|
|
731
634
|
if (s === !1)
|
|
732
635
|
return !1;
|
|
733
|
-
if (s === void 0 || !
|
|
734
|
-
if (
|
|
636
|
+
if (s === void 0 || !ot(s, d.tabbableOptions))
|
|
637
|
+
if (y(r.activeElement) >= 0)
|
|
735
638
|
s = r.activeElement;
|
|
736
639
|
else {
|
|
737
640
|
var u = o.tabbableGroups[0], f = u && u.firstTabbableNode;
|
|
738
|
-
s = f ||
|
|
641
|
+
s = f || F("fallbackFocus");
|
|
739
642
|
}
|
|
740
643
|
if (!s)
|
|
741
644
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
742
645
|
return s;
|
|
743
646
|
}, D = function() {
|
|
744
647
|
if (o.containerGroups = o.containers.map(function(s) {
|
|
745
|
-
var u =
|
|
746
|
-
return
|
|
747
|
-
}),
|
|
748
|
-
return
|
|
749
|
-
}),
|
|
750
|
-
return
|
|
648
|
+
var u = wr(s, d.tabbableOptions), f = Tr(s, d.tabbableOptions), m = u.length > 0 ? u[0] : void 0, w = u.length > 0 ? u[u.length - 1] : void 0, A = f.find(function(B) {
|
|
649
|
+
return ge(B);
|
|
650
|
+
}), E = f.slice().reverse().find(function(B) {
|
|
651
|
+
return ge(B);
|
|
652
|
+
}), P = !!u.find(function(B) {
|
|
653
|
+
return de(B) > 0;
|
|
751
654
|
});
|
|
752
655
|
return {
|
|
753
656
|
container: s,
|
|
754
657
|
tabbableNodes: u,
|
|
755
658
|
focusableNodes: f,
|
|
756
659
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
757
|
-
posTabIndexesFound:
|
|
660
|
+
posTabIndexesFound: P,
|
|
758
661
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
759
|
-
firstTabbableNode:
|
|
662
|
+
firstTabbableNode: m,
|
|
760
663
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
761
|
-
lastTabbableNode:
|
|
664
|
+
lastTabbableNode: w,
|
|
762
665
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
763
666
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
764
667
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -767,9 +670,9 @@ var Zt = {
|
|
|
767
670
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
768
671
|
// be avoided anyway...
|
|
769
672
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
770
|
-
firstDomTabbableNode:
|
|
673
|
+
firstDomTabbableNode: A,
|
|
771
674
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
772
|
-
lastDomTabbableNode:
|
|
675
|
+
lastDomTabbableNode: E,
|
|
773
676
|
/**
|
|
774
677
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
775
678
|
* in this container, if any.
|
|
@@ -778,71 +681,71 @@ var Zt = {
|
|
|
778
681
|
* in reverse.
|
|
779
682
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
780
683
|
*/
|
|
781
|
-
nextTabbableNode: function(
|
|
782
|
-
var
|
|
783
|
-
return
|
|
784
|
-
return
|
|
785
|
-
}) : f.slice(0, f.indexOf(
|
|
786
|
-
return
|
|
787
|
-
}) : u[
|
|
684
|
+
nextTabbableNode: function(_) {
|
|
685
|
+
var se = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, te = u.indexOf(_);
|
|
686
|
+
return te < 0 ? se ? f.slice(f.indexOf(_) + 1).find(function(H) {
|
|
687
|
+
return ge(H);
|
|
688
|
+
}) : f.slice(0, f.indexOf(_)).reverse().find(function(H) {
|
|
689
|
+
return ge(H);
|
|
690
|
+
}) : u[te + (se ? 1 : -1)];
|
|
788
691
|
}
|
|
789
692
|
};
|
|
790
693
|
}), o.tabbableGroups = o.containerGroups.filter(function(s) {
|
|
791
694
|
return s.tabbableNodes.length > 0;
|
|
792
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
695
|
+
}), o.tabbableGroups.length <= 0 && !F("fallbackFocus"))
|
|
793
696
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
794
697
|
if (o.containerGroups.find(function(s) {
|
|
795
698
|
return s.posTabIndexesFound;
|
|
796
699
|
}) && o.containerGroups.length > 1)
|
|
797
700
|
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.");
|
|
798
|
-
},
|
|
701
|
+
}, S = function C(s) {
|
|
799
702
|
if (s !== !1 && s !== r.activeElement) {
|
|
800
703
|
if (!s || !s.focus) {
|
|
801
|
-
|
|
704
|
+
C($());
|
|
802
705
|
return;
|
|
803
706
|
}
|
|
804
707
|
s.focus({
|
|
805
708
|
preventScroll: !!d.preventScroll
|
|
806
|
-
}), o.mostRecentlyFocusedNode = s,
|
|
709
|
+
}), o.mostRecentlyFocusedNode = s, Cr(s) && s.select();
|
|
807
710
|
}
|
|
808
711
|
}, O = function(s) {
|
|
809
|
-
var u =
|
|
712
|
+
var u = F("setReturnFocus", s);
|
|
810
713
|
return u || (u === !1 ? !1 : s);
|
|
811
714
|
}, V = function(s) {
|
|
812
|
-
var u = s.target, f = s.event,
|
|
715
|
+
var u = s.target, f = s.event, m = s.isBackward, w = m === void 0 ? !1 : m;
|
|
813
716
|
u = u || Be(f), D();
|
|
814
|
-
var
|
|
717
|
+
var A = null;
|
|
815
718
|
if (o.tabbableGroups.length > 0) {
|
|
816
|
-
var
|
|
817
|
-
if (
|
|
818
|
-
|
|
819
|
-
else if (
|
|
820
|
-
var
|
|
821
|
-
var Te =
|
|
719
|
+
var E = y(u, f), P = E >= 0 ? o.containerGroups[E] : void 0;
|
|
720
|
+
if (E < 0)
|
|
721
|
+
w ? A = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : A = o.tabbableGroups[0].firstTabbableNode;
|
|
722
|
+
else if (w) {
|
|
723
|
+
var B = Ht(o.tabbableGroups, function(ve) {
|
|
724
|
+
var Te = ve.firstTabbableNode;
|
|
822
725
|
return u === Te;
|
|
823
726
|
});
|
|
824
|
-
if (
|
|
825
|
-
var
|
|
826
|
-
|
|
727
|
+
if (B < 0 && (P.container === u || ot(u, d.tabbableOptions) && !ge(u, d.tabbableOptions) && !P.nextTabbableNode(u, !1)) && (B = E), B >= 0) {
|
|
728
|
+
var _ = B === 0 ? o.tabbableGroups.length - 1 : B - 1, se = o.tabbableGroups[_];
|
|
729
|
+
A = de(u) >= 0 ? se.lastTabbableNode : se.lastDomTabbableNode;
|
|
827
730
|
} else
|
|
828
|
-
Ce(f) || (
|
|
731
|
+
Ce(f) || (A = P.nextTabbableNode(u, !1));
|
|
829
732
|
} else {
|
|
830
|
-
var
|
|
831
|
-
var Te =
|
|
733
|
+
var te = Ht(o.tabbableGroups, function(ve) {
|
|
734
|
+
var Te = ve.lastTabbableNode;
|
|
832
735
|
return u === Te;
|
|
833
736
|
});
|
|
834
|
-
if (
|
|
835
|
-
var
|
|
836
|
-
|
|
737
|
+
if (te < 0 && (P.container === u || ot(u, d.tabbableOptions) && !ge(u, d.tabbableOptions) && !P.nextTabbableNode(u)) && (te = E), te >= 0) {
|
|
738
|
+
var H = te === o.tabbableGroups.length - 1 ? 0 : te + 1, we = o.tabbableGroups[H];
|
|
739
|
+
A = de(u) >= 0 ? we.firstTabbableNode : we.firstDomTabbableNode;
|
|
837
740
|
} else
|
|
838
|
-
Ce(f) || (
|
|
741
|
+
Ce(f) || (A = P.nextTabbableNode(u));
|
|
839
742
|
}
|
|
840
743
|
} else
|
|
841
|
-
|
|
842
|
-
return
|
|
744
|
+
A = F("fallbackFocus");
|
|
745
|
+
return A;
|
|
843
746
|
}, j = function(s) {
|
|
844
747
|
var u = Be(s);
|
|
845
|
-
if (!(
|
|
748
|
+
if (!(y(u, s) >= 0)) {
|
|
846
749
|
if (Ie(d.clickOutsideDeactivates, s)) {
|
|
847
750
|
v.deactivate({
|
|
848
751
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -857,66 +760,66 @@ var Zt = {
|
|
|
857
760
|
}
|
|
858
761
|
Ie(d.allowOutsideClick, s) || s.preventDefault();
|
|
859
762
|
}
|
|
860
|
-
},
|
|
861
|
-
var u = Be(s), f =
|
|
763
|
+
}, M = function(s) {
|
|
764
|
+
var u = Be(s), f = y(u, s) >= 0;
|
|
862
765
|
if (f || u instanceof Document)
|
|
863
766
|
f && (o.mostRecentlyFocusedNode = u);
|
|
864
767
|
else {
|
|
865
768
|
s.stopImmediatePropagation();
|
|
866
|
-
var
|
|
769
|
+
var m, w = !0;
|
|
867
770
|
if (o.mostRecentlyFocusedNode)
|
|
868
|
-
if (
|
|
869
|
-
var
|
|
870
|
-
if (
|
|
871
|
-
var
|
|
872
|
-
return
|
|
771
|
+
if (de(o.mostRecentlyFocusedNode) > 0) {
|
|
772
|
+
var A = y(o.mostRecentlyFocusedNode), E = o.containerGroups[A].tabbableNodes;
|
|
773
|
+
if (E.length > 0) {
|
|
774
|
+
var P = E.findIndex(function(B) {
|
|
775
|
+
return B === o.mostRecentlyFocusedNode;
|
|
873
776
|
});
|
|
874
|
-
|
|
777
|
+
P >= 0 && (d.isKeyForward(o.recentNavEvent) ? P + 1 < E.length && (m = E[P + 1], w = !1) : P - 1 >= 0 && (m = E[P - 1], w = !1));
|
|
875
778
|
}
|
|
876
779
|
} else
|
|
877
|
-
o.containerGroups.some(function(
|
|
878
|
-
return
|
|
879
|
-
return
|
|
780
|
+
o.containerGroups.some(function(B) {
|
|
781
|
+
return B.tabbableNodes.some(function(_) {
|
|
782
|
+
return de(_) > 0;
|
|
880
783
|
});
|
|
881
|
-
}) || (
|
|
784
|
+
}) || (w = !1);
|
|
882
785
|
else
|
|
883
|
-
|
|
884
|
-
|
|
786
|
+
w = !1;
|
|
787
|
+
w && (m = V({
|
|
885
788
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
886
789
|
// outside the trap causing the focus escape we're trying to fix)
|
|
887
790
|
target: o.mostRecentlyFocusedNode,
|
|
888
791
|
isBackward: d.isKeyBackward(o.recentNavEvent)
|
|
889
|
-
})),
|
|
792
|
+
})), S(m || o.mostRecentlyFocusedNode || $());
|
|
890
793
|
}
|
|
891
794
|
o.recentNavEvent = void 0;
|
|
892
|
-
},
|
|
795
|
+
}, ee = function(s) {
|
|
893
796
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
894
797
|
o.recentNavEvent = s;
|
|
895
798
|
var f = V({
|
|
896
799
|
event: s,
|
|
897
800
|
isBackward: u
|
|
898
801
|
});
|
|
899
|
-
f && (Ce(s) && s.preventDefault(),
|
|
802
|
+
f && (Ce(s) && s.preventDefault(), S(f));
|
|
900
803
|
}, G = function(s) {
|
|
901
|
-
if (
|
|
804
|
+
if (Nr(s) && Ie(d.escapeDeactivates, s) !== !1) {
|
|
902
805
|
s.preventDefault(), v.deactivate();
|
|
903
806
|
return;
|
|
904
807
|
}
|
|
905
|
-
(d.isKeyForward(s) || d.isKeyBackward(s)) &&
|
|
906
|
-
},
|
|
808
|
+
(d.isKeyForward(s) || d.isKeyBackward(s)) && ee(s, d.isKeyBackward(s));
|
|
809
|
+
}, k = function(s) {
|
|
907
810
|
var u = Be(s);
|
|
908
|
-
|
|
909
|
-
},
|
|
811
|
+
y(u, s) >= 0 || Ie(d.clickOutsideDeactivates, s) || Ie(d.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
812
|
+
}, L = function() {
|
|
910
813
|
if (o.active)
|
|
911
814
|
return Zt.activateTrap(l, v), o.delayInitialFocusTimer = d.delayInitialFocus ? jt(function() {
|
|
912
|
-
|
|
913
|
-
}) :
|
|
815
|
+
S($());
|
|
816
|
+
}) : S($()), r.addEventListener("focusin", M, !0), r.addEventListener("mousedown", j, {
|
|
914
817
|
capture: !0,
|
|
915
818
|
passive: !1
|
|
916
819
|
}), r.addEventListener("touchstart", j, {
|
|
917
820
|
capture: !0,
|
|
918
821
|
passive: !1
|
|
919
|
-
}), r.addEventListener("click",
|
|
822
|
+
}), r.addEventListener("click", k, {
|
|
920
823
|
capture: !0,
|
|
921
824
|
passive: !1
|
|
922
825
|
}), r.addEventListener("keydown", G, {
|
|
@@ -925,16 +828,16 @@ var Zt = {
|
|
|
925
828
|
}), v;
|
|
926
829
|
}, U = function() {
|
|
927
830
|
if (o.active)
|
|
928
|
-
return r.removeEventListener("focusin",
|
|
929
|
-
},
|
|
831
|
+
return r.removeEventListener("focusin", M, !0), r.removeEventListener("mousedown", j, !0), r.removeEventListener("touchstart", j, !0), r.removeEventListener("click", k, !0), r.removeEventListener("keydown", G, !0), v;
|
|
832
|
+
}, J = function(s) {
|
|
930
833
|
var u = s.some(function(f) {
|
|
931
|
-
var
|
|
932
|
-
return
|
|
933
|
-
return
|
|
834
|
+
var m = Array.from(f.removedNodes);
|
|
835
|
+
return m.some(function(w) {
|
|
836
|
+
return w === o.mostRecentlyFocusedNode;
|
|
934
837
|
});
|
|
935
838
|
});
|
|
936
|
-
u &&
|
|
937
|
-
}, Y = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(
|
|
839
|
+
u && S($());
|
|
840
|
+
}, Y = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(J) : void 0, W = function() {
|
|
938
841
|
Y && (Y.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
939
842
|
Y.observe(s, {
|
|
940
843
|
subtree: !0,
|
|
@@ -952,12 +855,12 @@ var Zt = {
|
|
|
952
855
|
activate: function(s) {
|
|
953
856
|
if (o.active)
|
|
954
857
|
return this;
|
|
955
|
-
var u =
|
|
956
|
-
|
|
957
|
-
var
|
|
958
|
-
|
|
858
|
+
var u = h(s, "onActivate"), f = h(s, "onPostActivate"), m = h(s, "checkCanFocusTrap");
|
|
859
|
+
m || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, u == null || u();
|
|
860
|
+
var w = function() {
|
|
861
|
+
m && D(), L(), W(), f == null || f();
|
|
959
862
|
};
|
|
960
|
-
return
|
|
863
|
+
return m ? (m(o.containers.concat()).then(w, w), this) : (w(), this);
|
|
961
864
|
},
|
|
962
865
|
deactivate: function(s) {
|
|
963
866
|
if (!o.active)
|
|
@@ -968,26 +871,26 @@ var Zt = {
|
|
|
968
871
|
checkCanReturnFocus: d.checkCanReturnFocus
|
|
969
872
|
}, s);
|
|
970
873
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, U(), o.active = !1, o.paused = !1, W(), Zt.deactivateTrap(l, v);
|
|
971
|
-
var f =
|
|
874
|
+
var f = h(u, "onDeactivate"), m = h(u, "onPostDeactivate"), w = h(u, "checkCanReturnFocus"), A = h(u, "returnFocus", "returnFocusOnDeactivate");
|
|
972
875
|
f == null || f();
|
|
973
|
-
var
|
|
876
|
+
var E = function() {
|
|
974
877
|
jt(function() {
|
|
975
|
-
|
|
878
|
+
A && S(O(o.nodeFocusedBeforeActivation)), m == null || m();
|
|
976
879
|
});
|
|
977
880
|
};
|
|
978
|
-
return
|
|
881
|
+
return A && w ? (w(O(o.nodeFocusedBeforeActivation)).then(E, E), this) : (E(), this);
|
|
979
882
|
},
|
|
980
883
|
pause: function(s) {
|
|
981
884
|
if (o.paused || !o.active)
|
|
982
885
|
return this;
|
|
983
|
-
var u =
|
|
886
|
+
var u = h(s, "onPause"), f = h(s, "onPostPause");
|
|
984
887
|
return o.paused = !0, u == null || u(), U(), W(), f == null || f(), this;
|
|
985
888
|
},
|
|
986
889
|
unpause: function(s) {
|
|
987
890
|
if (!o.paused || !o.active)
|
|
988
891
|
return this;
|
|
989
|
-
var u =
|
|
990
|
-
return o.paused = !1, u == null || u(), D(),
|
|
892
|
+
var u = h(s, "onUnpause"), f = h(s, "onPostUnpause");
|
|
893
|
+
return o.paused = !1, u == null || u(), D(), L(), W(), f == null || f(), this;
|
|
991
894
|
},
|
|
992
895
|
updateContainerElements: function(s) {
|
|
993
896
|
var u = [].concat(s).filter(Boolean);
|
|
@@ -1002,7 +905,7 @@ var Zt = {
|
|
|
1002
905
|
* (c) 2023 Eduardo San Martin Morote
|
|
1003
906
|
* @license MIT
|
|
1004
907
|
*/
|
|
1005
|
-
const
|
|
908
|
+
const xr = {
|
|
1006
909
|
escapeDeactivates: {
|
|
1007
910
|
type: Boolean,
|
|
1008
911
|
default: !0
|
|
@@ -1028,14 +931,14 @@ const zr = {
|
|
|
1028
931
|
preventScroll: Boolean,
|
|
1029
932
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1030
933
|
tabbableOptions: Object
|
|
1031
|
-
},
|
|
934
|
+
}, Dr = ae({
|
|
1032
935
|
props: Object.assign({
|
|
1033
936
|
active: {
|
|
1034
937
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
1035
938
|
type: Boolean,
|
|
1036
939
|
default: !0
|
|
1037
940
|
}
|
|
1038
|
-
},
|
|
941
|
+
}, xr),
|
|
1039
942
|
emits: [
|
|
1040
943
|
"update:active",
|
|
1041
944
|
"activate",
|
|
@@ -1053,7 +956,7 @@ const zr = {
|
|
|
1053
956
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1054
957
|
});
|
|
1055
958
|
function o() {
|
|
1056
|
-
return r || (r =
|
|
959
|
+
return r || (r = Fr(d.value, {
|
|
1057
960
|
escapeDeactivates: n.escapeDeactivates,
|
|
1058
961
|
allowOutsideClick: n.allowOutsideClick,
|
|
1059
962
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -1072,8 +975,8 @@ const zr = {
|
|
|
1072
975
|
delayInitialFocus: n.delayInitialFocus
|
|
1073
976
|
}));
|
|
1074
977
|
}
|
|
1075
|
-
return
|
|
1076
|
-
|
|
978
|
+
return Ue(() => {
|
|
979
|
+
Pe(() => n.active, (v) => {
|
|
1077
980
|
v && d.value ? o().activate() : r && (r.deactivate(), (!d.value || d.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
1078
981
|
}, { immediate: !0, flush: "post" });
|
|
1079
982
|
}), yn(() => {
|
|
@@ -1088,7 +991,7 @@ const zr = {
|
|
|
1088
991
|
renderImpl() {
|
|
1089
992
|
if (!t.default)
|
|
1090
993
|
return null;
|
|
1091
|
-
const v = t.default().filter((
|
|
994
|
+
const v = t.default().filter((y) => y.type !== _n);
|
|
1092
995
|
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : wn(v[0], { ref: l });
|
|
1093
996
|
}
|
|
1094
997
|
};
|
|
@@ -1107,15 +1010,15 @@ function Xt() {
|
|
|
1107
1010
|
};
|
|
1108
1011
|
}
|
|
1109
1012
|
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1110
|
-
function
|
|
1013
|
+
function Br(n) {
|
|
1111
1014
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1112
1015
|
}
|
|
1113
|
-
var
|
|
1114
|
-
|
|
1016
|
+
var Ke = { exports: {} };
|
|
1017
|
+
Ke.exports;
|
|
1115
1018
|
(function(n, t) {
|
|
1116
|
-
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]",
|
|
1117
|
-
|
|
1118
|
-
var
|
|
1019
|
+
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", h = "[object Date]", y = "[object Error]", F = "[object Function]", $ = "[object GeneratorFunction]", D = "[object Map]", S = "[object Number]", O = "[object Object]", V = "[object Promise]", j = "[object RegExp]", M = "[object Set]", ee = "[object String]", G = "[object Symbol]", k = "[object WeakMap]", L = "[object ArrayBuffer]", U = "[object DataView]", J = "[object Float32Array]", Y = "[object Float64Array]", W = "[object Int8Array]", C = "[object Int16Array]", s = "[object Int32Array]", u = "[object Uint8Array]", f = "[object Uint8ClampedArray]", m = "[object Uint16Array]", w = "[object Uint32Array]", A = /[\\^$.*+?()[\]{}|]/g, E = /\w*$/, P = /^\[object .+?Constructor\]$/, B = /^(?:0|[1-9]\d*)$/, _ = {};
|
|
1020
|
+
_[d] = _[o] = _[L] = _[U] = _[v] = _[h] = _[J] = _[Y] = _[W] = _[C] = _[s] = _[D] = _[S] = _[O] = _[j] = _[M] = _[ee] = _[G] = _[u] = _[f] = _[m] = _[w] = !0, _[y] = _[F] = _[k] = !1;
|
|
1021
|
+
var se = typeof Re == "object" && Re && Re.Object === Object && Re, te = typeof self == "object" && self && self.Object === Object && self, H = se || te || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && n && !n.nodeType && n, Te = ve && ve.exports === we;
|
|
1119
1022
|
function Jt(e, i) {
|
|
1120
1023
|
return e.set(i[0], i[1]), e;
|
|
1121
1024
|
}
|
|
@@ -1128,14 +1031,14 @@ ze.exports;
|
|
|
1128
1031
|
return e;
|
|
1129
1032
|
}
|
|
1130
1033
|
function ta(e, i) {
|
|
1131
|
-
for (var c = -1, b = i.length,
|
|
1132
|
-
e[
|
|
1034
|
+
for (var c = -1, b = i.length, R = e.length; ++c < b; )
|
|
1035
|
+
e[R + c] = i[c];
|
|
1133
1036
|
return e;
|
|
1134
1037
|
}
|
|
1135
1038
|
function vt(e, i, c, b) {
|
|
1136
|
-
var
|
|
1137
|
-
for (b &&
|
|
1138
|
-
c = i(c, e[
|
|
1039
|
+
var R = -1, K = e ? e.length : 0;
|
|
1040
|
+
for (b && K && (c = e[++R]); ++R < K; )
|
|
1041
|
+
c = i(c, e[R], R, e);
|
|
1139
1042
|
return c;
|
|
1140
1043
|
}
|
|
1141
1044
|
function aa(e, i) {
|
|
@@ -1157,11 +1060,11 @@ ze.exports;
|
|
|
1157
1060
|
}
|
|
1158
1061
|
function ht(e) {
|
|
1159
1062
|
var i = -1, c = Array(e.size);
|
|
1160
|
-
return e.forEach(function(b,
|
|
1161
|
-
c[++i] = [
|
|
1063
|
+
return e.forEach(function(b, R) {
|
|
1064
|
+
c[++i] = [R, b];
|
|
1162
1065
|
}), c;
|
|
1163
1066
|
}
|
|
1164
|
-
function
|
|
1067
|
+
function We(e, i) {
|
|
1165
1068
|
return function(c) {
|
|
1166
1069
|
return e(i(c));
|
|
1167
1070
|
};
|
|
@@ -1172,13 +1075,13 @@ ze.exports;
|
|
|
1172
1075
|
c[++i] = b;
|
|
1173
1076
|
}), c;
|
|
1174
1077
|
}
|
|
1175
|
-
var ra = Array.prototype, ia = Function.prototype,
|
|
1176
|
-
var e = /[^.]+$/.exec(
|
|
1078
|
+
var ra = Array.prototype, ia = Function.prototype, $e = Object.prototype, qe = H["__core-js_shared__"], mt = function() {
|
|
1079
|
+
var e = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
|
|
1177
1080
|
return e ? "Symbol(src)_1." + e : "";
|
|
1178
|
-
}(), gt = ia.toString,
|
|
1179
|
-
"^" + gt.call(
|
|
1180
|
-
), yt = Te ?
|
|
1181
|
-
function
|
|
1081
|
+
}(), gt = ia.toString, oe = $e.hasOwnProperty, Ae = $e.toString, oa = RegExp(
|
|
1082
|
+
"^" + gt.call(oe).replace(A, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1083
|
+
), yt = Te ? H.Buffer : void 0, _t = H.Symbol, wt = H.Uint8Array, sa = We(Object.getPrototypeOf, Object), ca = Object.create, la = $e.propertyIsEnumerable, ua = ra.splice, Tt = Object.getOwnPropertySymbols, da = yt ? yt.isBuffer : void 0, fa = We(Object.keys, Object), Ye = pe(H, "DataView"), ke = pe(H, "Map"), Xe = pe(H, "Promise"), Je = pe(H, "Set"), Qe = pe(H, "WeakMap"), Se = pe(Object, "create"), va = ue(Ye), ba = ue(ke), ha = ue(Xe), pa = ue(Je), ma = ue(Qe), kt = _t ? _t.prototype : void 0, St = kt ? kt.valueOf : void 0;
|
|
1084
|
+
function ce(e) {
|
|
1182
1085
|
var i = -1, c = e ? e.length : 0;
|
|
1183
1086
|
for (this.clear(); ++i < c; ) {
|
|
1184
1087
|
var b = e[i];
|
|
@@ -1197,18 +1100,18 @@ ze.exports;
|
|
|
1197
1100
|
var c = i[e];
|
|
1198
1101
|
return c === r ? void 0 : c;
|
|
1199
1102
|
}
|
|
1200
|
-
return
|
|
1103
|
+
return oe.call(i, e) ? i[e] : void 0;
|
|
1201
1104
|
}
|
|
1202
1105
|
function wa(e) {
|
|
1203
1106
|
var i = this.__data__;
|
|
1204
|
-
return Se ? i[e] !== void 0 :
|
|
1107
|
+
return Se ? i[e] !== void 0 : oe.call(i, e);
|
|
1205
1108
|
}
|
|
1206
1109
|
function Ta(e, i) {
|
|
1207
1110
|
var c = this.__data__;
|
|
1208
1111
|
return c[e] = Se && i === void 0 ? r : i, this;
|
|
1209
1112
|
}
|
|
1210
|
-
|
|
1211
|
-
function
|
|
1113
|
+
ce.prototype.clear = ga, ce.prototype.delete = ya, ce.prototype.get = _a, ce.prototype.has = wa, ce.prototype.set = Ta;
|
|
1114
|
+
function re(e) {
|
|
1212
1115
|
var i = -1, c = e ? e.length : 0;
|
|
1213
1116
|
for (this.clear(); ++i < c; ) {
|
|
1214
1117
|
var b = e[i];
|
|
@@ -1229,32 +1132,32 @@ ze.exports;
|
|
|
1229
1132
|
var i = this.__data__, c = Ee(i, e);
|
|
1230
1133
|
return c < 0 ? void 0 : i[c][1];
|
|
1231
1134
|
}
|
|
1232
|
-
function
|
|
1135
|
+
function Oa(e) {
|
|
1233
1136
|
return Ee(this.__data__, e) > -1;
|
|
1234
1137
|
}
|
|
1235
1138
|
function Ca(e, i) {
|
|
1236
1139
|
var c = this.__data__, b = Ee(c, e);
|
|
1237
1140
|
return b < 0 ? c.push([e, i]) : c[b][1] = i, this;
|
|
1238
1141
|
}
|
|
1239
|
-
|
|
1240
|
-
function
|
|
1142
|
+
re.prototype.clear = ka, re.prototype.delete = Sa, re.prototype.get = Ia, re.prototype.has = Oa, re.prototype.set = Ca;
|
|
1143
|
+
function be(e) {
|
|
1241
1144
|
var i = -1, c = e ? e.length : 0;
|
|
1242
1145
|
for (this.clear(); ++i < c; ) {
|
|
1243
1146
|
var b = e[i];
|
|
1244
1147
|
this.set(b[0], b[1]);
|
|
1245
1148
|
}
|
|
1246
1149
|
}
|
|
1247
|
-
function
|
|
1150
|
+
function Na() {
|
|
1248
1151
|
this.__data__ = {
|
|
1249
|
-
hash: new
|
|
1250
|
-
map: new (ke ||
|
|
1251
|
-
string: new
|
|
1152
|
+
hash: new ce(),
|
|
1153
|
+
map: new (ke || re)(),
|
|
1154
|
+
string: new ce()
|
|
1252
1155
|
};
|
|
1253
1156
|
}
|
|
1254
|
-
function
|
|
1157
|
+
function $a(e) {
|
|
1255
1158
|
return Fe(this, e).delete(e);
|
|
1256
1159
|
}
|
|
1257
|
-
function
|
|
1160
|
+
function Aa(e) {
|
|
1258
1161
|
return Fe(this, e).get(e);
|
|
1259
1162
|
}
|
|
1260
1163
|
function Ea(e) {
|
|
@@ -1263,12 +1166,12 @@ ze.exports;
|
|
|
1263
1166
|
function Fa(e, i) {
|
|
1264
1167
|
return Fe(this, e).set(e, i), this;
|
|
1265
1168
|
}
|
|
1266
|
-
|
|
1267
|
-
function
|
|
1268
|
-
this.__data__ = new
|
|
1169
|
+
be.prototype.clear = Na, be.prototype.delete = $a, be.prototype.get = Aa, be.prototype.has = Ea, be.prototype.set = Fa;
|
|
1170
|
+
function he(e) {
|
|
1171
|
+
this.__data__ = new re(e);
|
|
1269
1172
|
}
|
|
1270
1173
|
function xa() {
|
|
1271
|
-
this.__data__ = new
|
|
1174
|
+
this.__data__ = new re();
|
|
1272
1175
|
}
|
|
1273
1176
|
function Da(e) {
|
|
1274
1177
|
return this.__data__.delete(e);
|
|
@@ -1281,67 +1184,67 @@ ze.exports;
|
|
|
1281
1184
|
}
|
|
1282
1185
|
function La(e, i) {
|
|
1283
1186
|
var c = this.__data__;
|
|
1284
|
-
if (c instanceof
|
|
1187
|
+
if (c instanceof re) {
|
|
1285
1188
|
var b = c.__data__;
|
|
1286
1189
|
if (!ke || b.length < a - 1)
|
|
1287
1190
|
return b.push([e, i]), this;
|
|
1288
|
-
c = this.__data__ = new
|
|
1191
|
+
c = this.__data__ = new be(b);
|
|
1289
1192
|
}
|
|
1290
1193
|
return c.set(e, i), this;
|
|
1291
1194
|
}
|
|
1292
|
-
|
|
1195
|
+
he.prototype.clear = xa, he.prototype.delete = Da, he.prototype.get = Ba, he.prototype.has = Ra, he.prototype.set = La;
|
|
1293
1196
|
function Pa(e, i) {
|
|
1294
|
-
var c =
|
|
1295
|
-
for (var
|
|
1296
|
-
(i ||
|
|
1197
|
+
var c = at(e) || ln(e) ? aa(e.length, String) : [], b = c.length, R = !!b;
|
|
1198
|
+
for (var K in e)
|
|
1199
|
+
(i || oe.call(e, K)) && !(R && (K == "length" || rn(K, b))) && c.push(K);
|
|
1297
1200
|
return c;
|
|
1298
1201
|
}
|
|
1299
1202
|
function It(e, i, c) {
|
|
1300
1203
|
var b = e[i];
|
|
1301
|
-
(!(
|
|
1204
|
+
(!(oe.call(e, i) && $t(b, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1302
1205
|
}
|
|
1303
1206
|
function Ee(e, i) {
|
|
1304
1207
|
for (var c = e.length; c--; )
|
|
1305
|
-
if (
|
|
1208
|
+
if ($t(e[c][0], i))
|
|
1306
1209
|
return c;
|
|
1307
1210
|
return -1;
|
|
1308
1211
|
}
|
|
1309
1212
|
function Ma(e, i) {
|
|
1310
|
-
return e &&
|
|
1213
|
+
return e && Ot(i, nt(i), e);
|
|
1311
1214
|
}
|
|
1312
|
-
function
|
|
1215
|
+
function et(e, i, c, b, R, K, X) {
|
|
1313
1216
|
var z;
|
|
1314
|
-
if (b && (z =
|
|
1217
|
+
if (b && (z = K ? b(e, R, K, X) : b(e)), z !== void 0)
|
|
1315
1218
|
return z;
|
|
1316
1219
|
if (!xe(e))
|
|
1317
1220
|
return e;
|
|
1318
|
-
var Ft =
|
|
1221
|
+
var Ft = at(e);
|
|
1319
1222
|
if (Ft) {
|
|
1320
1223
|
if (z = tn(e), !i)
|
|
1321
1224
|
return Ja(e, z);
|
|
1322
1225
|
} else {
|
|
1323
|
-
var
|
|
1226
|
+
var me = le(e), xt = me == F || me == $;
|
|
1324
1227
|
if (dn(e))
|
|
1325
1228
|
return Va(e, i);
|
|
1326
|
-
if (
|
|
1229
|
+
if (me == O || me == d || xt && !K) {
|
|
1327
1230
|
if (bt(e))
|
|
1328
|
-
return
|
|
1231
|
+
return K ? e : {};
|
|
1329
1232
|
if (z = an(xt ? {} : e), !i)
|
|
1330
1233
|
return Qa(e, Ma(z, e));
|
|
1331
1234
|
} else {
|
|
1332
|
-
if (!
|
|
1333
|
-
return
|
|
1334
|
-
z = nn(e,
|
|
1235
|
+
if (!_[me])
|
|
1236
|
+
return K ? e : {};
|
|
1237
|
+
z = nn(e, me, et, i);
|
|
1335
1238
|
}
|
|
1336
1239
|
}
|
|
1337
|
-
X || (X = new
|
|
1240
|
+
X || (X = new he());
|
|
1338
1241
|
var Dt = X.get(e);
|
|
1339
1242
|
if (Dt)
|
|
1340
1243
|
return Dt;
|
|
1341
1244
|
if (X.set(e, z), !Ft)
|
|
1342
|
-
var Bt = c ? en(e) :
|
|
1343
|
-
return ea(Bt || e, function(
|
|
1344
|
-
Bt && (De =
|
|
1245
|
+
var Bt = c ? en(e) : nt(e);
|
|
1246
|
+
return ea(Bt || e, function(rt, De) {
|
|
1247
|
+
Bt && (De = rt, rt = e[De]), It(z, De, et(rt, i, c, b, De, e, X));
|
|
1345
1248
|
}), z;
|
|
1346
1249
|
}
|
|
1347
1250
|
function Za(e) {
|
|
@@ -1349,23 +1252,23 @@ ze.exports;
|
|
|
1349
1252
|
}
|
|
1350
1253
|
function ja(e, i, c) {
|
|
1351
1254
|
var b = i(e);
|
|
1352
|
-
return
|
|
1353
|
-
}
|
|
1354
|
-
function Ka(e) {
|
|
1355
|
-
return Ne.call(e);
|
|
1255
|
+
return at(e) ? b : ta(b, c(e));
|
|
1356
1256
|
}
|
|
1357
1257
|
function Ha(e) {
|
|
1258
|
+
return Ae.call(e);
|
|
1259
|
+
}
|
|
1260
|
+
function Ka(e) {
|
|
1358
1261
|
if (!xe(e) || sn(e))
|
|
1359
1262
|
return !1;
|
|
1360
|
-
var i = Et(e) || bt(e) ? oa :
|
|
1361
|
-
return i.test(
|
|
1263
|
+
var i = Et(e) || bt(e) ? oa : P;
|
|
1264
|
+
return i.test(ue(e));
|
|
1362
1265
|
}
|
|
1363
1266
|
function za(e) {
|
|
1364
|
-
if (!
|
|
1267
|
+
if (!Nt(e))
|
|
1365
1268
|
return fa(e);
|
|
1366
1269
|
var i = [];
|
|
1367
1270
|
for (var c in Object(e))
|
|
1368
|
-
|
|
1271
|
+
oe.call(e, c) && c != "constructor" && i.push(c);
|
|
1369
1272
|
return i;
|
|
1370
1273
|
}
|
|
1371
1274
|
function Va(e, i) {
|
|
@@ -1374,12 +1277,12 @@ ze.exports;
|
|
|
1374
1277
|
var c = new e.constructor(e.length);
|
|
1375
1278
|
return e.copy(c), c;
|
|
1376
1279
|
}
|
|
1377
|
-
function
|
|
1280
|
+
function tt(e) {
|
|
1378
1281
|
var i = new e.constructor(e.byteLength);
|
|
1379
1282
|
return new wt(i).set(new wt(e)), i;
|
|
1380
1283
|
}
|
|
1381
1284
|
function Ga(e, i) {
|
|
1382
|
-
var c = i ?
|
|
1285
|
+
var c = i ? tt(e.buffer) : e.buffer;
|
|
1383
1286
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1384
1287
|
}
|
|
1385
1288
|
function Ua(e, i, c) {
|
|
@@ -1387,7 +1290,7 @@ ze.exports;
|
|
|
1387
1290
|
return vt(b, Jt, new e.constructor());
|
|
1388
1291
|
}
|
|
1389
1292
|
function Wa(e) {
|
|
1390
|
-
var i = new e.constructor(e.source,
|
|
1293
|
+
var i = new e.constructor(e.source, E.exec(e));
|
|
1391
1294
|
return i.lastIndex = e.lastIndex, i;
|
|
1392
1295
|
}
|
|
1393
1296
|
function qa(e, i, c) {
|
|
@@ -1398,7 +1301,7 @@ ze.exports;
|
|
|
1398
1301
|
return St ? Object(St.call(e)) : {};
|
|
1399
1302
|
}
|
|
1400
1303
|
function Xa(e, i) {
|
|
1401
|
-
var c = i ?
|
|
1304
|
+
var c = i ? tt(e.buffer) : e.buffer;
|
|
1402
1305
|
return new e.constructor(c, e.byteOffset, e.length);
|
|
1403
1306
|
}
|
|
1404
1307
|
function Ja(e, i) {
|
|
@@ -1407,31 +1310,31 @@ ze.exports;
|
|
|
1407
1310
|
i[c] = e[c];
|
|
1408
1311
|
return i;
|
|
1409
1312
|
}
|
|
1410
|
-
function
|
|
1313
|
+
function Ot(e, i, c, b) {
|
|
1411
1314
|
c || (c = {});
|
|
1412
|
-
for (var
|
|
1413
|
-
var X = i[
|
|
1315
|
+
for (var R = -1, K = i.length; ++R < K; ) {
|
|
1316
|
+
var X = i[R], z = b ? b(c[X], e[X], X, c, e) : void 0;
|
|
1414
1317
|
It(c, X, z === void 0 ? e[X] : z);
|
|
1415
1318
|
}
|
|
1416
1319
|
return c;
|
|
1417
1320
|
}
|
|
1418
1321
|
function Qa(e, i) {
|
|
1419
|
-
return
|
|
1322
|
+
return Ot(e, Ct(e), i);
|
|
1420
1323
|
}
|
|
1421
1324
|
function en(e) {
|
|
1422
|
-
return ja(e,
|
|
1325
|
+
return ja(e, nt, Ct);
|
|
1423
1326
|
}
|
|
1424
1327
|
function Fe(e, i) {
|
|
1425
1328
|
var c = e.__data__;
|
|
1426
1329
|
return on(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1427
1330
|
}
|
|
1428
|
-
function
|
|
1331
|
+
function pe(e, i) {
|
|
1429
1332
|
var c = na(e, i);
|
|
1430
|
-
return
|
|
1333
|
+
return Ka(c) ? c : void 0;
|
|
1431
1334
|
}
|
|
1432
|
-
var Ct = Tt ?
|
|
1433
|
-
(
|
|
1434
|
-
var i =
|
|
1335
|
+
var Ct = Tt ? We(Tt, Object) : bn, le = Ha;
|
|
1336
|
+
(Ye && le(new Ye(new ArrayBuffer(1))) != U || ke && le(new ke()) != D || Xe && le(Xe.resolve()) != V || Je && le(new Je()) != M || Qe && le(new Qe()) != k) && (le = function(e) {
|
|
1337
|
+
var i = Ae.call(e), c = i == O ? e.constructor : void 0, b = c ? ue(c) : void 0;
|
|
1435
1338
|
if (b)
|
|
1436
1339
|
switch (b) {
|
|
1437
1340
|
case va:
|
|
@@ -1441,54 +1344,54 @@ ze.exports;
|
|
|
1441
1344
|
case ha:
|
|
1442
1345
|
return V;
|
|
1443
1346
|
case pa:
|
|
1444
|
-
return
|
|
1347
|
+
return M;
|
|
1445
1348
|
case ma:
|
|
1446
|
-
return
|
|
1349
|
+
return k;
|
|
1447
1350
|
}
|
|
1448
1351
|
return i;
|
|
1449
1352
|
});
|
|
1450
1353
|
function tn(e) {
|
|
1451
1354
|
var i = e.length, c = e.constructor(i);
|
|
1452
|
-
return i && typeof e[0] == "string" &&
|
|
1355
|
+
return i && typeof e[0] == "string" && oe.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1453
1356
|
}
|
|
1454
1357
|
function an(e) {
|
|
1455
|
-
return typeof e.constructor == "function" && !
|
|
1358
|
+
return typeof e.constructor == "function" && !Nt(e) ? Za(sa(e)) : {};
|
|
1456
1359
|
}
|
|
1457
1360
|
function nn(e, i, c, b) {
|
|
1458
|
-
var
|
|
1361
|
+
var R = e.constructor;
|
|
1459
1362
|
switch (i) {
|
|
1460
|
-
case
|
|
1461
|
-
return
|
|
1363
|
+
case L:
|
|
1364
|
+
return tt(e);
|
|
1462
1365
|
case v:
|
|
1463
|
-
case
|
|
1464
|
-
return new
|
|
1366
|
+
case h:
|
|
1367
|
+
return new R(+e);
|
|
1465
1368
|
case U:
|
|
1466
1369
|
return Ga(e, b);
|
|
1467
|
-
case
|
|
1370
|
+
case J:
|
|
1468
1371
|
case Y:
|
|
1469
1372
|
case W:
|
|
1470
|
-
case
|
|
1373
|
+
case C:
|
|
1471
1374
|
case s:
|
|
1472
1375
|
case u:
|
|
1473
1376
|
case f:
|
|
1474
|
-
case
|
|
1475
|
-
case
|
|
1377
|
+
case m:
|
|
1378
|
+
case w:
|
|
1476
1379
|
return Xa(e, b);
|
|
1477
1380
|
case D:
|
|
1478
1381
|
return Ua(e, b, c);
|
|
1479
|
-
case
|
|
1480
|
-
case
|
|
1481
|
-
return new
|
|
1382
|
+
case S:
|
|
1383
|
+
case ee:
|
|
1384
|
+
return new R(e);
|
|
1482
1385
|
case j:
|
|
1483
1386
|
return Wa(e);
|
|
1484
|
-
case
|
|
1387
|
+
case M:
|
|
1485
1388
|
return qa(e, b, c);
|
|
1486
1389
|
case G:
|
|
1487
1390
|
return Ya(e);
|
|
1488
1391
|
}
|
|
1489
1392
|
}
|
|
1490
1393
|
function rn(e, i) {
|
|
1491
|
-
return i = i ?? l, !!i && (typeof e == "number" ||
|
|
1394
|
+
return i = i ?? l, !!i && (typeof e == "number" || B.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1492
1395
|
}
|
|
1493
1396
|
function on(e) {
|
|
1494
1397
|
var i = typeof e;
|
|
@@ -1497,11 +1400,11 @@ ze.exports;
|
|
|
1497
1400
|
function sn(e) {
|
|
1498
1401
|
return !!mt && mt in e;
|
|
1499
1402
|
}
|
|
1500
|
-
function
|
|
1501
|
-
var i = e && e.constructor, c = typeof i == "function" && i.prototype ||
|
|
1403
|
+
function Nt(e) {
|
|
1404
|
+
var i = e && e.constructor, c = typeof i == "function" && i.prototype || $e;
|
|
1502
1405
|
return e === c;
|
|
1503
1406
|
}
|
|
1504
|
-
function
|
|
1407
|
+
function ue(e) {
|
|
1505
1408
|
if (e != null) {
|
|
1506
1409
|
try {
|
|
1507
1410
|
return gt.call(e);
|
|
@@ -1515,25 +1418,25 @@ ze.exports;
|
|
|
1515
1418
|
return "";
|
|
1516
1419
|
}
|
|
1517
1420
|
function cn(e) {
|
|
1518
|
-
return
|
|
1421
|
+
return et(e, !0, !0);
|
|
1519
1422
|
}
|
|
1520
|
-
function
|
|
1423
|
+
function $t(e, i) {
|
|
1521
1424
|
return e === i || e !== e && i !== i;
|
|
1522
1425
|
}
|
|
1523
1426
|
function ln(e) {
|
|
1524
|
-
return un(e) &&
|
|
1427
|
+
return un(e) && oe.call(e, "callee") && (!la.call(e, "callee") || Ae.call(e) == d);
|
|
1525
1428
|
}
|
|
1526
|
-
var
|
|
1527
|
-
function
|
|
1429
|
+
var at = Array.isArray;
|
|
1430
|
+
function At(e) {
|
|
1528
1431
|
return e != null && fn(e.length) && !Et(e);
|
|
1529
1432
|
}
|
|
1530
1433
|
function un(e) {
|
|
1531
|
-
return vn(e) &&
|
|
1434
|
+
return vn(e) && At(e);
|
|
1532
1435
|
}
|
|
1533
1436
|
var dn = da || hn;
|
|
1534
1437
|
function Et(e) {
|
|
1535
|
-
var i = xe(e) ?
|
|
1536
|
-
return i ==
|
|
1438
|
+
var i = xe(e) ? Ae.call(e) : "";
|
|
1439
|
+
return i == F || i == $;
|
|
1537
1440
|
}
|
|
1538
1441
|
function fn(e) {
|
|
1539
1442
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
@@ -1545,8 +1448,8 @@ ze.exports;
|
|
|
1545
1448
|
function vn(e) {
|
|
1546
1449
|
return !!e && typeof e == "object";
|
|
1547
1450
|
}
|
|
1548
|
-
function
|
|
1549
|
-
return
|
|
1451
|
+
function nt(e) {
|
|
1452
|
+
return At(e) ? Pa(e) : za(e);
|
|
1550
1453
|
}
|
|
1551
1454
|
function bn() {
|
|
1552
1455
|
return [];
|
|
@@ -1555,25 +1458,25 @@ ze.exports;
|
|
|
1555
1458
|
return !1;
|
|
1556
1459
|
}
|
|
1557
1460
|
n.exports = cn;
|
|
1558
|
-
})(
|
|
1559
|
-
var
|
|
1560
|
-
const
|
|
1461
|
+
})(Ke, Ke.exports);
|
|
1462
|
+
var Rr = Ke.exports;
|
|
1463
|
+
const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
1561
1464
|
key: 0,
|
|
1562
1465
|
class: "sidebar-header"
|
|
1563
|
-
},
|
|
1466
|
+
}, Mr = { class: "sidebar-content-container" }, Zr = {
|
|
1564
1467
|
key: 0,
|
|
1565
1468
|
class: "sidebar-top"
|
|
1566
|
-
},
|
|
1469
|
+
}, jr = { "aria-label": "Main menu" }, Hr = {
|
|
1567
1470
|
key: 0,
|
|
1568
1471
|
class: "level-primary top-items"
|
|
1569
|
-
},
|
|
1472
|
+
}, Kr = {
|
|
1570
1473
|
key: 1,
|
|
1571
1474
|
class: "sidebar-level-divider",
|
|
1572
1475
|
role: "separator"
|
|
1573
|
-
},
|
|
1476
|
+
}, zr = {
|
|
1574
1477
|
key: 2,
|
|
1575
1478
|
class: "level-primary bottom-items"
|
|
1576
|
-
},
|
|
1479
|
+
}, Vr = { class: "sidebar-footer" }, Gr = /* @__PURE__ */ ae({
|
|
1577
1480
|
__name: "AppSidebar",
|
|
1578
1481
|
props: {
|
|
1579
1482
|
topItems: {
|
|
@@ -1639,11 +1542,11 @@ const Wr = /* @__PURE__ */ Gr(Ur), qr = {
|
|
|
1639
1542
|
bff1d830: n.zIndex,
|
|
1640
1543
|
"2c1e7484": o.value.height,
|
|
1641
1544
|
"68c4ac1e": o.value.top,
|
|
1642
|
-
cf2fa71c:
|
|
1545
|
+
cf2fa71c: h.value.marginTop,
|
|
1643
1546
|
f12a684c: v.value.display,
|
|
1644
1547
|
"412eeb31": v.value.minHeight,
|
|
1645
|
-
"290c7a2d":
|
|
1646
|
-
"29b826c0":
|
|
1548
|
+
"290c7a2d": y.value.top,
|
|
1549
|
+
"29b826c0": y.value.zIndex
|
|
1647
1550
|
}));
|
|
1648
1551
|
const r = dt(), l = g(() => !!r.header), d = g(() => !!r.top), o = g(() => ({
|
|
1649
1552
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
@@ -1653,97 +1556,97 @@ const Wr = /* @__PURE__ */ Gr(Ur), qr = {
|
|
|
1653
1556
|
})), v = g(() => ({
|
|
1654
1557
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1655
1558
|
minHeight: `${a.headerHeight}px`
|
|
1656
|
-
})),
|
|
1559
|
+
})), h = g(() => ({
|
|
1657
1560
|
marginTop: l.value ? `${a.headerHeight}px` : "0"
|
|
1658
|
-
})),
|
|
1561
|
+
})), y = g(() => ({
|
|
1659
1562
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1660
1563
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1661
|
-
})),
|
|
1662
|
-
var
|
|
1564
|
+
})), F = (s) => Lr(s).map((f) => {
|
|
1565
|
+
var m, w, A;
|
|
1663
1566
|
if (f) {
|
|
1664
|
-
(!f.key || !((
|
|
1665
|
-
for (const
|
|
1666
|
-
|
|
1567
|
+
(!f.key || !((m = f.key) != null && m.trim())) && (f.key = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!f.testId || !((w = f.testId) != null && w.trim())) && (f.testId = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1568
|
+
for (const E of f.items || [])
|
|
1569
|
+
E.parentKey = f.key, (!E.testId || !((A = E.testId) != null && A.trim())) && (E.testId = String(E.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1667
1570
|
}
|
|
1668
1571
|
return f;
|
|
1669
|
-
}),
|
|
1572
|
+
}), $ = g(() => a.topItems.length ? F(a.topItems) : []), D = g(() => a.bottomItems.length ? F(a.bottomItems) : []), S = q(a.open), O = (s) => {
|
|
1670
1573
|
var u, f;
|
|
1671
|
-
|
|
1574
|
+
S.value !== s && (S.value = s, t("toggle", s)), s ? (u = document == null ? void 0 : document.body) == null || u.classList.add("kong-ui-app-sidebar-open") : (f = document == null ? void 0 : document.body) == null || f.classList.remove("kong-ui-app-sidebar-open"), j.value = !1;
|
|
1672
1575
|
}, V = () => {
|
|
1673
1576
|
a.mobileOverlayCloseOnClick && O(!1);
|
|
1674
|
-
}, j = q(!1),
|
|
1577
|
+
}, j = q(!1), M = (s) => {
|
|
1675
1578
|
j.value = !0, t("click", s), setTimeout(() => {
|
|
1676
1579
|
O(!1);
|
|
1677
1580
|
}, a.mobileCloseDelay);
|
|
1678
1581
|
};
|
|
1679
|
-
|
|
1582
|
+
Pe(() => a.open, (s) => {
|
|
1680
1583
|
O(s);
|
|
1681
1584
|
});
|
|
1682
|
-
const { debounce:
|
|
1683
|
-
|
|
1684
|
-
}, 200),
|
|
1685
|
-
|
|
1686
|
-
}, Y = q(null), W = g(() =>
|
|
1585
|
+
const { debounce: ee } = Xt(), G = ee(() => {
|
|
1586
|
+
S.value && k.value !== (window == null ? void 0 : window.innerWidth) && (k.value = window == null ? void 0 : window.innerWidth, O(!1));
|
|
1587
|
+
}, 200), k = q(), L = q(!1), U = q(), J = () => {
|
|
1588
|
+
L.value || (L.value = !0, clearTimeout(U.value), U.value = setTimeout(() => L.value = !1, 1300));
|
|
1589
|
+
}, Y = q(null), W = g(() => S.value && a.mobileEnabled), C = async (s) => {
|
|
1687
1590
|
var u, f;
|
|
1688
|
-
s ? (await kn(), await new Promise((
|
|
1591
|
+
s ? (await kn(), await new Promise((m) => setTimeout(m, 300)), (u = Y.value) == null || u.activate()) : (f = Y.value) == null || f.deactivate();
|
|
1689
1592
|
};
|
|
1690
|
-
return
|
|
1691
|
-
s ? await
|
|
1692
|
-
}, { immediate: !0 }),
|
|
1693
|
-
|
|
1694
|
-
}),
|
|
1695
|
-
window.removeEventListener("resize", G), window.removeEventListener("resize",
|
|
1696
|
-
}), (s, u) => (
|
|
1697
|
-
|
|
1593
|
+
return Pe(W, async (s) => {
|
|
1594
|
+
s ? await C(!0) : await C(!1);
|
|
1595
|
+
}, { immediate: !0 }), Ue(() => {
|
|
1596
|
+
k.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", G), window.addEventListener("resize", J);
|
|
1597
|
+
}), Kt(() => {
|
|
1598
|
+
window.removeEventListener("resize", G), window.removeEventListener("resize", J);
|
|
1599
|
+
}), (s, u) => (p(), I(Oe, null, [
|
|
1600
|
+
S.value && n.mobileOverlay && n.mobileEnabled ? (p(), I("div", {
|
|
1698
1601
|
key: 0,
|
|
1699
1602
|
class: "kong-ui-app-sidebar-overlay",
|
|
1700
1603
|
onClick: V
|
|
1701
|
-
})) :
|
|
1702
|
-
|
|
1604
|
+
})) : x("", !0),
|
|
1605
|
+
ze(Tn(Dr), {
|
|
1703
1606
|
ref_key: "focusTrap",
|
|
1704
1607
|
ref: Y,
|
|
1705
1608
|
active: !1,
|
|
1706
1609
|
"allow-outside-click": "",
|
|
1707
1610
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1708
1611
|
}, {
|
|
1709
|
-
default:
|
|
1710
|
-
|
|
1612
|
+
default: Z(() => [
|
|
1613
|
+
T("aside", {
|
|
1711
1614
|
class: ie(["kong-ui-app-sidebar", {
|
|
1712
|
-
"sidebar-open":
|
|
1615
|
+
"sidebar-open": S.value,
|
|
1713
1616
|
"no-sidebar-header": !l.value,
|
|
1714
1617
|
"mobile-header-hidden": n.mobileEnabled && (!l.value || !n.mobileHeaderVisible),
|
|
1715
1618
|
"mobile-disabled": !n.mobileEnabled,
|
|
1716
|
-
"disable-transitions":
|
|
1619
|
+
"disable-transitions": L.value
|
|
1717
1620
|
}]),
|
|
1718
1621
|
tabindex: "-1"
|
|
1719
1622
|
}, [
|
|
1720
|
-
l.value ? (
|
|
1721
|
-
|
|
1722
|
-
])) :
|
|
1723
|
-
|
|
1724
|
-
d.value ? (
|
|
1725
|
-
|
|
1726
|
-
])) :
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
(
|
|
1623
|
+
l.value ? (p(), I("div", Pr, [
|
|
1624
|
+
N(s.$slots, "header", {}, void 0, !0)
|
|
1625
|
+
])) : x("", !0),
|
|
1626
|
+
T("div", Mr, [
|
|
1627
|
+
d.value ? (p(), I("div", Zr, [
|
|
1628
|
+
N(s.$slots, "top", {}, void 0, !0)
|
|
1629
|
+
])) : x("", !0),
|
|
1630
|
+
T("nav", jr, [
|
|
1631
|
+
$.value.length ? (p(), I("ul", Hr, [
|
|
1632
|
+
(p(!0), I(Oe, null, Ne($.value, (f) => (p(), Q(Rt, {
|
|
1730
1633
|
key: f.name,
|
|
1731
1634
|
item: f,
|
|
1732
|
-
onClick:
|
|
1635
|
+
onClick: M
|
|
1733
1636
|
}, null, 8, ["item"]))), 128))
|
|
1734
|
-
])) :
|
|
1735
|
-
|
|
1736
|
-
D.value.length ? (
|
|
1737
|
-
(
|
|
1637
|
+
])) : x("", !0),
|
|
1638
|
+
$.value.length && D.value.length ? (p(), I("div", Kr)) : x("", !0),
|
|
1639
|
+
D.value.length ? (p(), I("ul", zr, [
|
|
1640
|
+
(p(!0), I(Oe, null, Ne(D.value, (f) => (p(), Q(Rt, {
|
|
1738
1641
|
key: f.name,
|
|
1739
1642
|
item: f,
|
|
1740
|
-
onClick:
|
|
1643
|
+
onClick: M
|
|
1741
1644
|
}, null, 8, ["item"]))), 128))
|
|
1742
|
-
])) :
|
|
1645
|
+
])) : x("", !0)
|
|
1743
1646
|
])
|
|
1744
1647
|
]),
|
|
1745
|
-
|
|
1746
|
-
|
|
1648
|
+
T("div", Vr, [
|
|
1649
|
+
N(s.$slots, "footer", {}, void 0, !0)
|
|
1747
1650
|
])
|
|
1748
1651
|
], 2)
|
|
1749
1652
|
]),
|
|
@@ -1752,11 +1655,11 @@ const Wr = /* @__PURE__ */ Gr(Ur), qr = {
|
|
|
1752
1655
|
], 64));
|
|
1753
1656
|
}
|
|
1754
1657
|
});
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
],
|
|
1658
|
+
const Ur = /* @__PURE__ */ ne(Gr, [["__scopeId", "data-v-00a9a4d3"]]), ft = (n) => (Ve("data-v-00a332e0"), n = n(), Ge(), n), Wr = ["aria-label", "onClick"], qr = /* @__PURE__ */ ft(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), Yr = /* @__PURE__ */ ft(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), Xr = /* @__PURE__ */ ft(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), Jr = [
|
|
1659
|
+
qr,
|
|
1660
|
+
Yr,
|
|
1661
|
+
Xr
|
|
1662
|
+
], Qr = /* @__PURE__ */ ae({
|
|
1760
1663
|
__name: "SidebarToggle",
|
|
1761
1664
|
props: {
|
|
1762
1665
|
active: {
|
|
@@ -1769,25 +1672,25 @@ const ri = /* @__PURE__ */ ae(ni, [["__scopeId", "data-v-00a9a4d3"]]), ft = (n)
|
|
|
1769
1672
|
const a = n, r = q(a.active || !1), l = () => {
|
|
1770
1673
|
r.value = !r.value, t("toggle", r.value);
|
|
1771
1674
|
};
|
|
1772
|
-
return
|
|
1675
|
+
return Pe(() => a.active, (d) => {
|
|
1773
1676
|
r.value = d;
|
|
1774
|
-
}), (d, o) => (
|
|
1677
|
+
}), (d, o) => (p(), I("a", {
|
|
1775
1678
|
"aria-haspopup": "true",
|
|
1776
1679
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1777
1680
|
class: ie(["sidebar-menu-toggle", { active: r.value }]),
|
|
1778
1681
|
href: "#",
|
|
1779
1682
|
role: "button",
|
|
1780
1683
|
onClick: Sn(l, ["prevent"])
|
|
1781
|
-
},
|
|
1684
|
+
}, Jr, 10, Wr));
|
|
1782
1685
|
}
|
|
1783
1686
|
});
|
|
1784
|
-
const
|
|
1687
|
+
const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px", ai = "16px", ni = (n) => (Ve("data-v-0a4e6b30"), n = n(), Ge(), n), ri = { id: "kong-ui-app-layout-notification" }, ii = { class: "mobile-logo" }, oi = {
|
|
1785
1688
|
key: 0,
|
|
1786
1689
|
class: "navbar-logo"
|
|
1787
|
-
},
|
|
1690
|
+
}, si = {
|
|
1788
1691
|
class: "kong-ui-app-layout-main",
|
|
1789
1692
|
"data-testid": "kong-ui-app-layout-main"
|
|
1790
|
-
},
|
|
1693
|
+
}, ci = { class: "kong-ui-app-layout-content" }, li = { class: "kong-ui-app-layout-content-inner" }, ui = /* @__PURE__ */ ni(() => /* @__PURE__ */ T("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), di = /* @__PURE__ */ ae({
|
|
1791
1694
|
__name: "AppLayout",
|
|
1792
1695
|
props: {
|
|
1793
1696
|
hideDefaultSlot: {
|
|
@@ -1820,7 +1723,7 @@ const di = /* @__PURE__ */ ae(ui, [["__scopeId", "data-v-00a332e0"]]), fi = "0px
|
|
|
1820
1723
|
emits: ["sidebar-click"],
|
|
1821
1724
|
setup(n, { emit: t }) {
|
|
1822
1725
|
const a = n;
|
|
1823
|
-
ut((
|
|
1726
|
+
ut((k) => ({
|
|
1824
1727
|
"65a18e83": V.value,
|
|
1825
1728
|
"6abaa094": j.value
|
|
1826
1729
|
}));
|
|
@@ -1840,167 +1743,167 @@ const di = /* @__PURE__ */ ae(ui, [["__scopeId", "data-v-00a332e0"]]), fi = "0px
|
|
|
1840
1743
|
bottomItems: g(() => a.sidebarBottomItems),
|
|
1841
1744
|
open: g(() => a.sidebarOpen),
|
|
1842
1745
|
hidden: g(() => a.sidebarHidden)
|
|
1843
|
-
}),
|
|
1844
|
-
t("sidebar-click",
|
|
1845
|
-
},
|
|
1846
|
-
|
|
1746
|
+
}), h = (k) => {
|
|
1747
|
+
t("sidebar-click", k);
|
|
1748
|
+
}, y = q(!1), F = (k) => {
|
|
1749
|
+
y.value = k;
|
|
1847
1750
|
};
|
|
1848
1751
|
In(() => {
|
|
1849
|
-
|
|
1752
|
+
y.value = On(v, "open").value || !1;
|
|
1850
1753
|
});
|
|
1851
|
-
const
|
|
1852
|
-
if (
|
|
1853
|
-
|
|
1854
|
-
const
|
|
1855
|
-
|
|
1754
|
+
const $ = q(0), D = q(60), S = q(0), O = g(() => o.hidden ? S.value : D.value + S.value), V = g(() => `${O.value}px`), j = g(() => v.hidden || o.hidden ? ti : ai), { debounce: M } = Xt(), ee = M((k = !1) => {
|
|
1755
|
+
if (k || $.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1756
|
+
$.value = window == null ? void 0 : window.innerWidth;
|
|
1757
|
+
const L = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1758
|
+
L && (S.value = L.offsetHeight);
|
|
1856
1759
|
}
|
|
1857
1760
|
}, 200), G = q();
|
|
1858
|
-
return
|
|
1859
|
-
var
|
|
1860
|
-
(
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1761
|
+
return Ue(() => {
|
|
1762
|
+
var L, U;
|
|
1763
|
+
(L = document == null ? void 0 : document.body) == null || L.classList.add("kong-ui-app-layout-body"), (U = document == null ? void 0 : document.documentElement) == null || U.classList.add("kong-ui-app-layout-html"), $.value = window == null ? void 0 : window.innerWidth, ee(!0);
|
|
1764
|
+
const k = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1765
|
+
k && (G.value = new ResizeObserver((J) => {
|
|
1863
1766
|
window.requestAnimationFrame(() => {
|
|
1864
|
-
if (!(!Array.isArray(
|
|
1865
|
-
for (const Y of
|
|
1767
|
+
if (!(!Array.isArray(J) || !J.length))
|
|
1768
|
+
for (const Y of J) {
|
|
1866
1769
|
const W = Y.contentRect.height;
|
|
1867
|
-
|
|
1770
|
+
S.value !== W && (S.value = W);
|
|
1868
1771
|
}
|
|
1869
1772
|
});
|
|
1870
|
-
}), G.value.observe(
|
|
1871
|
-
}),
|
|
1872
|
-
G.value && G.value.disconnect(), window.removeEventListener("resize",
|
|
1873
|
-
}), (
|
|
1773
|
+
}), G.value.observe(k)), window.addEventListener("resize", ee);
|
|
1774
|
+
}), Kt(() => {
|
|
1775
|
+
G.value && G.value.disconnect(), window.removeEventListener("resize", ee);
|
|
1776
|
+
}), (k, L) => (p(), I("div", {
|
|
1874
1777
|
class: ie(["kong-ui-app-layout", [
|
|
1875
1778
|
{ "navbar-hidden": o.hidden },
|
|
1876
1779
|
{ "sidebar-hidden": v.hidden }
|
|
1877
1780
|
]])
|
|
1878
1781
|
}, [
|
|
1879
|
-
|
|
1880
|
-
|
|
1782
|
+
T("div", ri, [
|
|
1783
|
+
N(k.$slots, "notification", {}, void 0, !0)
|
|
1881
1784
|
]),
|
|
1882
|
-
o.hidden ?
|
|
1785
|
+
o.hidden ? x("", !0) : (p(), Q(qn, {
|
|
1883
1786
|
key: String(v.hidden),
|
|
1884
1787
|
"left-offset": v.hidden ? 0 : void 0,
|
|
1885
|
-
"top-offset":
|
|
1886
|
-
},
|
|
1887
|
-
"mobile-sidebar-toggle":
|
|
1888
|
-
v.hidden ?
|
|
1788
|
+
"top-offset": S.value
|
|
1789
|
+
}, ct({
|
|
1790
|
+
"mobile-sidebar-toggle": Z(() => [
|
|
1791
|
+
v.hidden ? x("", !0) : (p(), Q(ei, {
|
|
1889
1792
|
key: 0,
|
|
1890
|
-
active:
|
|
1891
|
-
onToggle:
|
|
1793
|
+
active: y.value,
|
|
1794
|
+
onToggle: F
|
|
1892
1795
|
}, null, 8, ["active"]))
|
|
1893
1796
|
]),
|
|
1894
1797
|
_: 2
|
|
1895
1798
|
}, [
|
|
1896
1799
|
l.navbarMobileLogo ? {
|
|
1897
1800
|
name: "mobile-logo",
|
|
1898
|
-
fn:
|
|
1899
|
-
|
|
1900
|
-
|
|
1801
|
+
fn: Z(() => [
|
|
1802
|
+
T("div", ii, [
|
|
1803
|
+
N(k.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1901
1804
|
])
|
|
1902
1805
|
]),
|
|
1903
1806
|
key: "0"
|
|
1904
1807
|
} : void 0,
|
|
1905
1808
|
l.navbarLogo ? {
|
|
1906
1809
|
name: "logo",
|
|
1907
|
-
fn:
|
|
1908
|
-
v.hidden ? (
|
|
1909
|
-
|
|
1910
|
-
])) :
|
|
1810
|
+
fn: Z(() => [
|
|
1811
|
+
v.hidden ? (p(), I("div", oi, [
|
|
1812
|
+
N(k.$slots, "navbar-logo", {}, void 0, !0)
|
|
1813
|
+
])) : x("", !0)
|
|
1911
1814
|
]),
|
|
1912
1815
|
key: "1"
|
|
1913
1816
|
} : void 0,
|
|
1914
1817
|
l.navbarLeft ? {
|
|
1915
1818
|
name: "left",
|
|
1916
|
-
fn:
|
|
1917
|
-
|
|
1819
|
+
fn: Z(() => [
|
|
1820
|
+
N(k.$slots, "navbar-left", {}, void 0, !0)
|
|
1918
1821
|
]),
|
|
1919
1822
|
key: "2"
|
|
1920
1823
|
} : void 0,
|
|
1921
1824
|
l.navbarCenter ? {
|
|
1922
1825
|
name: "center",
|
|
1923
|
-
fn:
|
|
1924
|
-
|
|
1826
|
+
fn: Z(() => [
|
|
1827
|
+
N(k.$slots, "navbar-center", {}, void 0, !0)
|
|
1925
1828
|
]),
|
|
1926
1829
|
key: "3"
|
|
1927
1830
|
} : void 0,
|
|
1928
1831
|
l.navbarRight ? {
|
|
1929
1832
|
name: "right",
|
|
1930
|
-
fn:
|
|
1931
|
-
|
|
1833
|
+
fn: Z(() => [
|
|
1834
|
+
N(k.$slots, "navbar-right", {}, void 0, !0)
|
|
1932
1835
|
]),
|
|
1933
1836
|
key: "4"
|
|
1934
1837
|
} : void 0
|
|
1935
1838
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1936
|
-
v.hidden ?
|
|
1839
|
+
v.hidden ? x("", !0) : (p(), Q(Ur, {
|
|
1937
1840
|
key: 1,
|
|
1938
1841
|
"bottom-items": v.bottomItems,
|
|
1939
1842
|
"header-height": D.value,
|
|
1940
1843
|
"mobile-enabled": "",
|
|
1941
1844
|
"mobile-header-visible": !1,
|
|
1942
1845
|
"mobile-top-offset": O.value,
|
|
1943
|
-
open:
|
|
1846
|
+
open: y.value,
|
|
1944
1847
|
"top-items": v.topItems,
|
|
1945
|
-
"top-offset":
|
|
1946
|
-
onClick:
|
|
1947
|
-
onToggle:
|
|
1948
|
-
},
|
|
1848
|
+
"top-offset": S.value,
|
|
1849
|
+
onClick: h,
|
|
1850
|
+
onToggle: F
|
|
1851
|
+
}, ct({ _: 2 }, [
|
|
1949
1852
|
l.sidebarHeader ? {
|
|
1950
1853
|
name: "header",
|
|
1951
|
-
fn:
|
|
1952
|
-
|
|
1854
|
+
fn: Z(() => [
|
|
1855
|
+
N(k.$slots, "sidebar-header", {}, void 0, !0)
|
|
1953
1856
|
]),
|
|
1954
1857
|
key: "0"
|
|
1955
1858
|
} : void 0,
|
|
1956
1859
|
l.sidebarTop ? {
|
|
1957
1860
|
name: "top",
|
|
1958
|
-
fn:
|
|
1959
|
-
|
|
1861
|
+
fn: Z(() => [
|
|
1862
|
+
N(k.$slots, "sidebar-top", {}, void 0, !0)
|
|
1960
1863
|
]),
|
|
1961
1864
|
key: "1"
|
|
1962
1865
|
} : void 0,
|
|
1963
1866
|
l.sidebarFooter ? {
|
|
1964
1867
|
name: "footer",
|
|
1965
|
-
fn:
|
|
1966
|
-
|
|
1868
|
+
fn: Z(() => [
|
|
1869
|
+
N(k.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1967
1870
|
]),
|
|
1968
1871
|
key: "2"
|
|
1969
1872
|
} : void 0
|
|
1970
1873
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
d.value ?
|
|
1874
|
+
T("main", si, [
|
|
1875
|
+
T("div", ci, [
|
|
1876
|
+
T("div", li, [
|
|
1877
|
+
ui,
|
|
1878
|
+
N(k.$slots, "app-error", {}, void 0, !0),
|
|
1879
|
+
d.value ? x("", !0) : N(k.$slots, "default", { key: 0 }, void 0, !0)
|
|
1977
1880
|
])
|
|
1978
1881
|
])
|
|
1979
1882
|
])
|
|
1980
1883
|
], 2));
|
|
1981
1884
|
}
|
|
1982
1885
|
});
|
|
1983
|
-
const
|
|
1886
|
+
const fi = /* @__PURE__ */ ne(di, [["__scopeId", "data-v-0a4e6b30"]]), vi = (n) => (Ve("data-v-d7e33427"), n = n(), Ge(), n), bi = { class: "kong-ui-app-page-header" }, hi = {
|
|
1984
1887
|
key: 0,
|
|
1985
1888
|
class: "page-header-breadcrumbs",
|
|
1986
1889
|
"data-testid": "page-header-breadcrumbs"
|
|
1987
|
-
},
|
|
1890
|
+
}, pi = /* @__PURE__ */ vi(() => /* @__PURE__ */ T("span", { class: "page-header-breadcrumb-divider" }, "/", -1)), mi = { class: "page-header-title-section" }, gi = { class: "page-header-title-wrapper" }, yi = {
|
|
1988
1891
|
key: 0,
|
|
1989
1892
|
class: "page-header-title-before",
|
|
1990
1893
|
"data-testid": "page-header-title-before"
|
|
1991
|
-
},
|
|
1894
|
+
}, _i = ["title"], wi = {
|
|
1992
1895
|
key: 1,
|
|
1993
1896
|
class: "page-header-title-after",
|
|
1994
1897
|
"data-testid": "page-header-title-after"
|
|
1995
|
-
},
|
|
1898
|
+
}, Ti = {
|
|
1996
1899
|
key: 0,
|
|
1997
1900
|
class: "page-header-actions",
|
|
1998
1901
|
"data-testid": "page-header-actions"
|
|
1999
|
-
},
|
|
1902
|
+
}, ki = {
|
|
2000
1903
|
key: 1,
|
|
2001
1904
|
class: "page-header-section-below",
|
|
2002
1905
|
"data-testid": "page-header-section-below"
|
|
2003
|
-
},
|
|
1906
|
+
}, Si = /* @__PURE__ */ ae({
|
|
2004
1907
|
__name: "AppPageHeader",
|
|
2005
1908
|
props: {
|
|
2006
1909
|
title: {
|
|
@@ -2018,63 +1921,62 @@ const ki = /* @__PURE__ */ ae(Ti, [["__scopeId", "data-v-0a4e6b30"]]), Si = (n)
|
|
|
2018
1921
|
return !!((d = t.breadcrumbs) != null && d.length);
|
|
2019
1922
|
}), r = (d, o) => d.key || `breadcrumb-${o}`, l = g(() => t.breadcrumbs.map((d, o) => `icon-${r(d, o)}`) || []);
|
|
2020
1923
|
return (d, o) => {
|
|
2021
|
-
const v =
|
|
2022
|
-
return
|
|
2023
|
-
a.value ? (
|
|
2024
|
-
|
|
2025
|
-
divider:
|
|
2026
|
-
|
|
1924
|
+
const v = ye("KBreadcrumbs");
|
|
1925
|
+
return p(), I("div", bi, [
|
|
1926
|
+
a.value ? (p(), I("div", hi, [
|
|
1927
|
+
ze(v, { items: n.breadcrumbs }, ct({
|
|
1928
|
+
divider: Z(() => [
|
|
1929
|
+
pi
|
|
2027
1930
|
]),
|
|
2028
1931
|
_: 2
|
|
2029
1932
|
}, [
|
|
2030
|
-
|
|
2031
|
-
name:
|
|
2032
|
-
fn:
|
|
2033
|
-
|
|
1933
|
+
Ne(l.value, (h) => ({
|
|
1934
|
+
name: h,
|
|
1935
|
+
fn: Z(() => [
|
|
1936
|
+
N(d.$slots, h, {}, void 0, !0)
|
|
2034
1937
|
])
|
|
2035
1938
|
}))
|
|
2036
1939
|
]), 1032, ["items"])
|
|
2037
|
-
])) :
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
d.$slots["title-before"] ? (
|
|
2041
|
-
|
|
2042
|
-
])) :
|
|
2043
|
-
|
|
1940
|
+
])) : x("", !0),
|
|
1941
|
+
T("div", mi, [
|
|
1942
|
+
T("div", gi, [
|
|
1943
|
+
d.$slots["title-before"] ? (p(), I("div", yi, [
|
|
1944
|
+
N(d.$slots, "title-before", {}, void 0, !0)
|
|
1945
|
+
])) : x("", !0),
|
|
1946
|
+
T("h1", {
|
|
2044
1947
|
class: "page-header-title",
|
|
2045
1948
|
"data-testid": "page-header-title",
|
|
2046
1949
|
title: n.title
|
|
2047
|
-
},
|
|
2048
|
-
d.$slots["title-after"] ? (
|
|
2049
|
-
|
|
2050
|
-
])) :
|
|
1950
|
+
}, _e(n.title), 9, _i),
|
|
1951
|
+
d.$slots["title-after"] ? (p(), I("div", wi, [
|
|
1952
|
+
N(d.$slots, "title-after", {}, void 0, !0)
|
|
1953
|
+
])) : x("", !0)
|
|
2051
1954
|
]),
|
|
2052
|
-
d.$slots.actions ? (
|
|
2053
|
-
|
|
2054
|
-
])) :
|
|
1955
|
+
d.$slots.actions ? (p(), I("div", Ti, [
|
|
1956
|
+
N(d.$slots, "actions", {}, void 0, !0)
|
|
1957
|
+
])) : x("", !0)
|
|
2055
1958
|
]),
|
|
2056
|
-
d.$slots.below ? (
|
|
2057
|
-
|
|
2058
|
-
])) :
|
|
1959
|
+
d.$slots.below ? (p(), I("div", ki, [
|
|
1960
|
+
N(d.$slots, "below", {}, void 0, !0)
|
|
1961
|
+
])) : x("", !0)
|
|
2059
1962
|
]);
|
|
2060
1963
|
};
|
|
2061
1964
|
}
|
|
2062
1965
|
});
|
|
2063
|
-
const
|
|
1966
|
+
const Ni = /* @__PURE__ */ ne(Si, [["__scopeId", "data-v-d7e33427"]]), $i = {
|
|
2064
1967
|
// Customize Vue plugin options as desired
|
|
2065
1968
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2066
1969
|
install: (n, t = {}) => {
|
|
2067
|
-
n.component(t.name || "AppLayout",
|
|
1970
|
+
n.component(t.name || "AppLayout", fi);
|
|
2068
1971
|
}
|
|
2069
1972
|
};
|
|
2070
1973
|
export {
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
ji as default
|
|
1974
|
+
Oi as AccountDropdown,
|
|
1975
|
+
Ci as AppError,
|
|
1976
|
+
fi as AppLayout,
|
|
1977
|
+
qn as AppNavbar,
|
|
1978
|
+
Ni as AppPageHeader,
|
|
1979
|
+
Ur as AppSidebar,
|
|
1980
|
+
ei as SidebarToggle,
|
|
1981
|
+
$i as default
|
|
2080
1982
|
};
|