@kong-ui-public/app-layout 2.2.25 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-layout.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const Cn = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as ee, resolveComponent as be, openBlock as h, createBlock as W, withCtx as D, renderSlot as O, createElementBlock as g, Fragment as Ce, renderList as Ne, normalizeClass as ne, createTextVNode as lt, toDisplayString as Y, computed as w, createSlots as Ze, createVNode as Ee, createCommentVNode as C, createElementVNode as T, createStaticVNode as gn, pushScopeId as Ge, popScopeId as We, useCssVars as dt, useSlots as ft, reactive as Pe, onMounted as qe, resolveDynamicComponent as Lt, withKeys as yn, unref as zt, ref as G, watch as je, onUnmounted as wn, Comment as _n, cloneVNode as Tn, onBeforeUnmount as Vt, nextTick as kn, withModifiers as Sn, watchEffect as In, toRef as On } from "vue";
|
|
2
|
+
const Cn = /* @__PURE__ */ ee({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
5
5
|
options: {
|
|
@@ -19,24 +19,24 @@ const Cn = /* @__PURE__ */ te({
|
|
|
19
19
|
},
|
|
20
20
|
setup(a) {
|
|
21
21
|
return (t, r) => {
|
|
22
|
-
const n =
|
|
23
|
-
return h(),
|
|
22
|
+
const n = be("KDropdownItem"), l = be("KDropdown");
|
|
23
|
+
return h(), W(l, {
|
|
24
24
|
class: "account-dropdown",
|
|
25
25
|
"kpop-attributes": { placement: "bottomStart" },
|
|
26
26
|
"trigger-text": a.userInitials,
|
|
27
27
|
width: a.width
|
|
28
28
|
}, {
|
|
29
|
-
items:
|
|
30
|
-
|
|
31
|
-
(h(!0), g(
|
|
29
|
+
items: D(({ handleSelection: d }) => [
|
|
30
|
+
O(t.$slots, "default", {}, () => [
|
|
31
|
+
(h(!0), g(Ce, null, Ne(a.options, (o) => (h(), W(n, {
|
|
32
32
|
key: o.value,
|
|
33
33
|
class: ne({ "has-divider": o.hasDivider }),
|
|
34
34
|
"data-testid": "select-" + o.value,
|
|
35
35
|
"has-divider": o.hasDivider,
|
|
36
36
|
onClick: (v) => d(o)
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
|
|
38
|
+
default: D(() => [
|
|
39
|
+
O(t.$slots, "default", { option: o }, () => [
|
|
40
40
|
lt(Y(o.label), 1)
|
|
41
41
|
], !0)
|
|
42
42
|
]),
|
|
@@ -48,12 +48,12 @@ const Cn = /* @__PURE__ */ te({
|
|
|
48
48
|
}, 8, ["trigger-text", "width"]);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), te = (a, t) => {
|
|
52
52
|
const r = a.__vccOpts || a;
|
|
53
53
|
for (const [n, l] of t)
|
|
54
54
|
r[n] = l;
|
|
55
55
|
return r;
|
|
56
|
-
},
|
|
56
|
+
}, Ui = /* @__PURE__ */ te(Cn, [["__scopeId", "data-v-7bab0343"]]), $n = {
|
|
57
57
|
class: "about-section-title",
|
|
58
58
|
"data-testid": "about-section-title"
|
|
59
59
|
}, Nn = { class: "about-section-header-end" }, En = {
|
|
@@ -89,7 +89,7 @@ const Cn = /* @__PURE__ */ te({
|
|
|
89
89
|
key: 3,
|
|
90
90
|
class: "about-divider-section",
|
|
91
91
|
"data-testid": "about-divider-section"
|
|
92
|
-
}, Zn = /* @__PURE__ */
|
|
92
|
+
}, Zn = /* @__PURE__ */ ee({
|
|
93
93
|
__name: "AppAboutSection",
|
|
94
94
|
props: {
|
|
95
95
|
title: {
|
|
@@ -122,55 +122,55 @@ const Cn = /* @__PURE__ */ te({
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
setup(a) {
|
|
125
|
-
const t = a, r =
|
|
125
|
+
const t = a, r = w(() => !!t.modified && t.modified !== t.created);
|
|
126
126
|
return (n, l) => {
|
|
127
|
-
const d =
|
|
128
|
-
return h(),
|
|
129
|
-
default:
|
|
127
|
+
const d = be("KSkeletonBox"), o = be("KCard");
|
|
128
|
+
return h(), W(o, { class: "kong-ui-app-about-section" }, Ze({
|
|
129
|
+
default: D(() => [
|
|
130
130
|
a.isLoading ? (h(), g("div", Dn, [
|
|
131
|
-
|
|
131
|
+
Ee(d, {
|
|
132
132
|
height: "2",
|
|
133
133
|
width: "100"
|
|
134
134
|
}),
|
|
135
|
-
|
|
135
|
+
Ee(d, {
|
|
136
136
|
height: "2",
|
|
137
137
|
width: "100"
|
|
138
138
|
})
|
|
139
139
|
])) : (h(), g("div", Rn, [
|
|
140
|
-
a.description ? (h(), g("p", Bn, Y(a.description), 1)) :
|
|
140
|
+
a.description ? (h(), g("p", Bn, Y(a.description), 1)) : C("", !0),
|
|
141
141
|
n.$slots.default ? (h(), g("div", Ln, [
|
|
142
|
-
|
|
143
|
-
])) :
|
|
144
|
-
n.$slots["divider-section"] ? (h(), g("hr", Mn)) :
|
|
142
|
+
O(n.$slots, "default", {}, void 0, !0)
|
|
143
|
+
])) : C("", !0),
|
|
144
|
+
n.$slots["divider-section"] ? (h(), g("hr", Mn)) : C("", !0),
|
|
145
145
|
n.$slots["divider-section"] ? (h(), g("div", Pn, [
|
|
146
|
-
|
|
147
|
-
])) :
|
|
146
|
+
O(n.$slots, "divider-section", {}, void 0, !0)
|
|
147
|
+
])) : C("", !0)
|
|
148
148
|
]))
|
|
149
149
|
]),
|
|
150
150
|
_: 2
|
|
151
151
|
}, [
|
|
152
152
|
a.title ? {
|
|
153
153
|
name: "title",
|
|
154
|
-
fn:
|
|
155
|
-
|
|
154
|
+
fn: D(() => [
|
|
155
|
+
T("span", $n, Y(a.title), 1)
|
|
156
156
|
]),
|
|
157
157
|
key: "0"
|
|
158
158
|
} : void 0,
|
|
159
159
|
n.$slots.actions || a.created || a.modified ? {
|
|
160
160
|
name: "actions",
|
|
161
|
-
fn:
|
|
162
|
-
|
|
161
|
+
fn: D(() => [
|
|
162
|
+
T("div", Nn, [
|
|
163
163
|
a.created || a.modified ? (h(), g("div", {
|
|
164
164
|
key: 0,
|
|
165
165
|
class: ne(["about-section-timestamps", { "has-actions": n.$slots.actions }])
|
|
166
166
|
}, [
|
|
167
|
-
a.created ? (h(), g("span", En, Y(a.createdLabel) + ": " + Y(a.created), 1)) :
|
|
168
|
-
a.created && r.value ? (h(), g("span", An, "->")) :
|
|
169
|
-
r.value ? (h(), g("span", Fn, Y(a.modifiedLabel) + ": " + Y(a.modified), 1)) :
|
|
170
|
-
], 2)) :
|
|
167
|
+
a.created ? (h(), g("span", En, Y(a.createdLabel) + ": " + Y(a.created), 1)) : C("", !0),
|
|
168
|
+
a.created && r.value ? (h(), g("span", An, "->")) : C("", !0),
|
|
169
|
+
r.value ? (h(), g("span", Fn, Y(a.modifiedLabel) + ": " + Y(a.modified), 1)) : C("", !0)
|
|
170
|
+
], 2)) : C("", !0),
|
|
171
171
|
n.$slots.actions ? (h(), g("div", xn, [
|
|
172
|
-
|
|
173
|
-
])) :
|
|
172
|
+
O(n.$slots, "actions", {}, void 0, !0)
|
|
173
|
+
])) : C("", !0)
|
|
174
174
|
])
|
|
175
175
|
]),
|
|
176
176
|
key: "1"
|
|
@@ -178,40 +178,40 @@ const Cn = /* @__PURE__ */ te({
|
|
|
178
178
|
]), 1024);
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), zi = /* @__PURE__ */ te(Zn, [["__scopeId", "data-v-d01c666d"]]), jn = {}, Kn = {
|
|
182
182
|
fill: "none",
|
|
183
183
|
height: "130",
|
|
184
184
|
width: "130",
|
|
185
185
|
xmlns: "http://www.w3.org/2000/svg"
|
|
186
|
-
}, Hn = /* @__PURE__ */
|
|
186
|
+
}, Hn = /* @__PURE__ */ gn('<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), Un = [
|
|
187
187
|
Hn
|
|
188
188
|
];
|
|
189
|
-
function
|
|
190
|
-
return h(), g("svg",
|
|
189
|
+
function zn(a, t) {
|
|
190
|
+
return h(), g("svg", Kn, Un);
|
|
191
191
|
}
|
|
192
|
-
const
|
|
192
|
+
const Vn = /* @__PURE__ */ te(jn, [["render", zn]]), Gt = (a) => (Ge("data-v-5cbccc66"), a = a(), We(), a), Gn = { class: "kong-ui-app-error" }, Wn = { class: "banana-icon" }, qn = { class: "kong-ui-app-error-content" }, Xn = /* @__PURE__ */ Gt(() => /* @__PURE__ */ T("h2", null, "An unexpected error has occurred", -1)), Yn = /* @__PURE__ */ Gt(() => /* @__PURE__ */ T("p", null, [
|
|
193
193
|
/* @__PURE__ */ lt("Go back to the previous page or "),
|
|
194
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ T("a", { href: "/" }, "return home"),
|
|
195
195
|
/* @__PURE__ */ lt(".")
|
|
196
|
-
], -1)), Jn = /* @__PURE__ */
|
|
196
|
+
], -1)), Jn = /* @__PURE__ */ ee({
|
|
197
197
|
__name: "AppError",
|
|
198
198
|
setup(a) {
|
|
199
199
|
return (t, r) => (h(), g("section", Gn, [
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
T("div", Wn, [
|
|
201
|
+
Ee(Vn)
|
|
202
202
|
]),
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
T("div", qn, [
|
|
204
|
+
O(t.$slots, "default", {}, () => [
|
|
205
205
|
Xn,
|
|
206
206
|
Yn
|
|
207
207
|
], !0)
|
|
208
208
|
])
|
|
209
209
|
]));
|
|
210
210
|
}
|
|
211
|
-
}), Vi = /* @__PURE__ */
|
|
211
|
+
}), Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { class: "kong-ui-app-navbar" }, er = { class: "header-content" }, tr = { class: "mobile-header-left" }, ar = {
|
|
212
212
|
key: 0,
|
|
213
213
|
class: "app-navbar-logo"
|
|
214
|
-
}, nr = { class: "navbar-content" }, rr = { class: "navbar-content-left" }, ir = { class: "navbar-content-center" }, or = { class: "navbar-content-right" }, sr = /* @__PURE__ */
|
|
214
|
+
}, nr = { class: "navbar-content" }, rr = { class: "navbar-content-left" }, ir = { class: "navbar-content-center" }, or = { class: "navbar-content-right" }, sr = /* @__PURE__ */ ee({
|
|
215
215
|
__name: "AppNavbar",
|
|
216
216
|
props: {
|
|
217
217
|
topOffset: {
|
|
@@ -236,7 +236,7 @@ const zn = /* @__PURE__ */ ae(Kn, [["render", Vn]]), Vt = (a) => (Ge("data-v-5cb
|
|
|
236
236
|
"247c8fd0": l.marginRight,
|
|
237
237
|
"278e63f0": l.width
|
|
238
238
|
}));
|
|
239
|
-
const t = a, r = ft(), n =
|
|
239
|
+
const t = a, r = ft(), n = w(() => !!r.logo), l = Pe({
|
|
240
240
|
marginRight: "0",
|
|
241
241
|
width: "0"
|
|
242
242
|
});
|
|
@@ -244,35 +244,35 @@ const zn = /* @__PURE__ */ ae(Kn, [["render", Vn]]), Vt = (a) => (Ge("data-v-5cb
|
|
|
244
244
|
var o, v;
|
|
245
245
|
(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");
|
|
246
246
|
});
|
|
247
|
-
const d =
|
|
247
|
+
const d = w(() => ({
|
|
248
248
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
249
249
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
250
250
|
zIndex: t.zIndex
|
|
251
251
|
}));
|
|
252
252
|
return (o, v) => (h(), g("header", Qn, [
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
T("div", er, [
|
|
254
|
+
T("div", tr, [
|
|
255
|
+
O(o.$slots, "mobile-sidebar-toggle"),
|
|
256
|
+
O(o.$slots, "mobile-logo")
|
|
257
257
|
]),
|
|
258
258
|
n.value ? (h(), g("div", ar, [
|
|
259
|
-
|
|
260
|
-
])) :
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
259
|
+
O(o.$slots, "logo")
|
|
260
|
+
])) : C("", !0),
|
|
261
|
+
T("div", nr, [
|
|
262
|
+
T("div", rr, [
|
|
263
|
+
O(o.$slots, "left")
|
|
264
264
|
]),
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
T("div", ir, [
|
|
266
|
+
O(o.$slots, "center")
|
|
267
267
|
]),
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
T("div", or, [
|
|
269
|
+
O(o.$slots, "right")
|
|
270
270
|
])
|
|
271
271
|
])
|
|
272
272
|
])
|
|
273
273
|
]));
|
|
274
274
|
}
|
|
275
|
-
}), cr = /* @__PURE__ */
|
|
275
|
+
}), cr = /* @__PURE__ */ te(sr, [["__scopeId", "data-v-beca6ea9"]]), lr = ["title"], st = 99, ur = /* @__PURE__ */ ee({
|
|
276
276
|
__name: "ItemBadge",
|
|
277
277
|
props: {
|
|
278
278
|
count: {
|
|
@@ -282,20 +282,20 @@ const zn = /* @__PURE__ */ ae(Kn, [["render", Vn]]), Vt = (a) => (Ge("data-v-5cb
|
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
setup(a) {
|
|
285
|
-
const t = a, r =
|
|
285
|
+
const t = a, r = w(() => t.count ? t.count > st ? `${st}+` : t.count.toString() : "");
|
|
286
286
|
return (n, l) => r.value ? (h(), g("div", {
|
|
287
287
|
key: 0,
|
|
288
288
|
class: "item-badge",
|
|
289
289
|
title: (a.count || 0) > st ? String(a.count) : void 0
|
|
290
|
-
}, Y(r.value), 9, lr)) :
|
|
290
|
+
}, Y(r.value), 9, lr)) : C("", !0);
|
|
291
291
|
}
|
|
292
|
-
}), dr = /* @__PURE__ */
|
|
292
|
+
}), dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = "#ffffff", vr = "#000933", br = "#000933", hr = "#ffffff", pr = "0px", mr = "4px", gr = "20px", yr = ["data-testid"], wr = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], _r = {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "sidebar-item-icon"
|
|
295
|
-
},
|
|
295
|
+
}, Tr = { class: "sidebar-item-name-container" }, kr = { class: "sidebar-item-name has-tooltip" }, Sr = {
|
|
296
296
|
key: 2,
|
|
297
297
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
298
|
-
},
|
|
298
|
+
}, Ir = ["id"], Or = /* @__PURE__ */ ee({
|
|
299
299
|
__name: "SidebarItem",
|
|
300
300
|
props: {
|
|
301
301
|
item: {
|
|
@@ -309,97 +309,94 @@ const zn = /* @__PURE__ */ ae(Kn, [["render", Vn]]), Vt = (a) => (Ge("data-v-5cb
|
|
|
309
309
|
},
|
|
310
310
|
emits: ["click"],
|
|
311
311
|
setup(a, { emit: t }) {
|
|
312
|
-
const r = t, n = a, l =
|
|
313
|
-
r("click",
|
|
314
|
-
}, p = (
|
|
315
|
-
v(
|
|
312
|
+
const r = t, n = a, l = w(() => typeof n.item.to != "string" ? !1 : !!n.item.newWindow || !!n.item.external || n.item.to.startsWith("http")), d = w(() => !n.item.to || typeof n.item.to != "string" || !n.item.newWindow ? !1 : n.item.newWindow && (n.item.to.startsWith("http") || n.item.to.startsWith("/"))), o = w(() => n.subnavItem && n.item.badgeCount !== void 0), v = (S) => {
|
|
313
|
+
r("click", S);
|
|
314
|
+
}, p = (S, F, N) => {
|
|
315
|
+
v(F), typeof N == "function" && (S.preventDefault(), N());
|
|
316
316
|
};
|
|
317
|
-
return (
|
|
318
|
-
var
|
|
319
|
-
const N =
|
|
317
|
+
return (S, F) => {
|
|
318
|
+
var M;
|
|
319
|
+
const N = be("KTooltip"), x = be("SidebarItem", !0);
|
|
320
320
|
return h(), g("li", {
|
|
321
321
|
class: ne([a.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: a.item.expanded }, { active: a.item.active }]),
|
|
322
322
|
"data-testid": a.item.testId ? `sidebar-item-${a.item.testId}` : void 0
|
|
323
323
|
}, [
|
|
324
|
-
(h(),
|
|
324
|
+
(h(), W(Lt(l.value ? "div" : "router-link"), {
|
|
325
325
|
custom: l.value ? void 0 : !0,
|
|
326
326
|
to: !l.value && !d.value ? a.item.to : void 0
|
|
327
327
|
}, {
|
|
328
|
-
default:
|
|
329
|
-
var
|
|
328
|
+
default: D((y) => {
|
|
329
|
+
var P, q;
|
|
330
330
|
return [
|
|
331
|
-
|
|
332
|
-
"aria-controls": (
|
|
333
|
-
"aria-expanded": (
|
|
331
|
+
T("a", {
|
|
332
|
+
"aria-controls": (P = a.item.items) != null && P.length && a.item.expanded ? `subnav-${a.item.key}` : void 0,
|
|
333
|
+
"aria-expanded": (q = a.item.items) != null && q.length && a.item.expanded ? !0 : void 0,
|
|
334
334
|
class: ne(["sidebar-item-link", { "sidebar-item-external-link": d.value, "router-link": !l.value }]),
|
|
335
|
-
href: l.value ? String(a.item.to || "#") :
|
|
335
|
+
href: l.value ? String(a.item.to || "#") : y == null ? void 0 : y.href,
|
|
336
336
|
target: d.value ? "_blank" : void 0,
|
|
337
|
-
onClick: (
|
|
338
|
-
onKeypress:
|
|
337
|
+
onClick: (R) => p(R, a.item, y == null ? void 0 : y.navigate),
|
|
338
|
+
onKeypress: yn((R) => p(R, a.item, y == null ? void 0 : y.navigate), ["enter"])
|
|
339
339
|
}, [
|
|
340
|
-
|
|
340
|
+
T("div", {
|
|
341
341
|
class: ne(["sidebar-item-display", { "has-label": !!a.item.label && a.item.expanded, "has-badge": o.value }])
|
|
342
342
|
}, [
|
|
343
|
-
a.item.icon ? (h(), g("div",
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}, null, 8, ["icon"])
|
|
348
|
-
])) : O("", !0),
|
|
349
|
-
_("div", hr, [
|
|
343
|
+
a.item.icon !== void 0 && typeof a.item.icon != "string" ? (h(), g("div", _r, [
|
|
344
|
+
(h(), W(Lt(a.item.icon), { size: zt(gr) }, null, 8, ["size"]))
|
|
345
|
+
])) : C("", !0),
|
|
346
|
+
T("div", Tr, [
|
|
350
347
|
(a.subnavItem ? a.item.name.length < 25 : a.item.name.length < 18) ? (h(), g("div", {
|
|
351
348
|
key: 0,
|
|
352
349
|
class: ne(["sidebar-item-name truncate-text", [a.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
353
|
-
}, Y(a.item.name), 3)) : (h(),
|
|
350
|
+
}, Y(a.item.name), 3)) : (h(), W(N, {
|
|
354
351
|
key: 1,
|
|
355
352
|
class: "sidebar-item-tooltip",
|
|
356
353
|
label: a.item.name,
|
|
357
354
|
placement: "right",
|
|
358
355
|
"position-fixed": ""
|
|
359
356
|
}, {
|
|
360
|
-
default:
|
|
361
|
-
|
|
362
|
-
|
|
357
|
+
default: D(() => [
|
|
358
|
+
T("div", kr, [
|
|
359
|
+
T("span", {
|
|
363
360
|
class: ne(["truncate-text", [a.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": o.value }]])
|
|
364
361
|
}, Y(a.item.name), 3)
|
|
365
362
|
])
|
|
366
363
|
]),
|
|
367
364
|
_: 1
|
|
368
365
|
}, 8, ["label"])),
|
|
369
|
-
a.item.label && a.item.expanded ? (h(), g("div",
|
|
366
|
+
a.item.label && a.item.expanded ? (h(), g("div", Sr, Y(a.item.label), 1)) : C("", !0)
|
|
370
367
|
]),
|
|
371
|
-
o.value ? (h(),
|
|
368
|
+
o.value ? (h(), W(dr, {
|
|
372
369
|
key: 1,
|
|
373
370
|
count: a.item.badgeCount
|
|
374
|
-
}, null, 8, ["count"])) :
|
|
371
|
+
}, null, 8, ["count"])) : C("", !0)
|
|
375
372
|
], 2)
|
|
376
|
-
], 42,
|
|
373
|
+
], 42, wr)
|
|
377
374
|
];
|
|
378
375
|
}),
|
|
379
376
|
_: 1
|
|
380
377
|
}, 8, ["custom", "to"])),
|
|
381
|
-
(
|
|
378
|
+
(M = a.item.items) != null && M.length && a.item.expanded ? (h(), g("ul", {
|
|
382
379
|
key: 0,
|
|
383
380
|
id: `subnav-${a.item.key}`,
|
|
384
381
|
class: "level-secondary"
|
|
385
382
|
}, [
|
|
386
|
-
(h(!0), g(
|
|
387
|
-
key:
|
|
388
|
-
item:
|
|
383
|
+
(h(!0), g(Ce, null, Ne(a.item.items, (y) => (h(), W(x, {
|
|
384
|
+
key: y.name,
|
|
385
|
+
item: y,
|
|
389
386
|
"subnav-item": !0,
|
|
390
|
-
onClick: (
|
|
387
|
+
onClick: (P) => v(y)
|
|
391
388
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
392
|
-
], 8,
|
|
393
|
-
], 10,
|
|
389
|
+
], 8, Ir)) : C("", !0)
|
|
390
|
+
], 10, yr);
|
|
394
391
|
};
|
|
395
392
|
}
|
|
396
|
-
}),
|
|
393
|
+
}), Mt = /* @__PURE__ */ te(Or, [["__scopeId", "data-v-bf7140dd"]]);
|
|
397
394
|
/*!
|
|
398
395
|
* tabbable 6.2.0
|
|
399
396
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
400
397
|
*/
|
|
401
|
-
var
|
|
402
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, He = !
|
|
398
|
+
var Wt = ["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])"], Ke = /* @__PURE__ */ Wt.join(","), qt = typeof Element > "u", he = qt ? function() {
|
|
399
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, He = !qt && Element.prototype.getRootNode ? function(a) {
|
|
403
400
|
var t;
|
|
404
401
|
return a == null || (t = a.getRootNode) === null || t === void 0 ? void 0 : t.call(a);
|
|
405
402
|
} : function(a) {
|
|
@@ -409,65 +406,65 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
409
406
|
r === void 0 && (r = !0);
|
|
410
407
|
var l = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), d = l === "" || l === "true", o = d || r && t && a(t.parentNode);
|
|
411
408
|
return o;
|
|
412
|
-
},
|
|
409
|
+
}, Cr = function(t) {
|
|
413
410
|
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
414
411
|
return n === "" || n === "true";
|
|
415
|
-
},
|
|
412
|
+
}, Xt = function(t, r, n) {
|
|
416
413
|
if (Ue(t))
|
|
417
414
|
return [];
|
|
418
|
-
var l = Array.prototype.slice.apply(t.querySelectorAll(
|
|
419
|
-
return r && he.call(t,
|
|
420
|
-
},
|
|
415
|
+
var l = Array.prototype.slice.apply(t.querySelectorAll(Ke));
|
|
416
|
+
return r && he.call(t, Ke) && l.unshift(t), l = l.filter(n), l;
|
|
417
|
+
}, Yt = function a(t, r, n) {
|
|
421
418
|
for (var l = [], d = Array.from(t); d.length; ) {
|
|
422
419
|
var o = d.shift();
|
|
423
420
|
if (!Ue(o, !1))
|
|
424
421
|
if (o.tagName === "SLOT") {
|
|
425
|
-
var v = o.assignedElements(), p = v.length ? v : o.children,
|
|
426
|
-
n.flatten ? l.push.apply(l,
|
|
422
|
+
var v = o.assignedElements(), p = v.length ? v : o.children, S = a(p, !0, n);
|
|
423
|
+
n.flatten ? l.push.apply(l, S) : l.push({
|
|
427
424
|
scopeParent: o,
|
|
428
|
-
candidates:
|
|
425
|
+
candidates: S
|
|
429
426
|
});
|
|
430
427
|
} else {
|
|
431
|
-
var
|
|
432
|
-
|
|
428
|
+
var F = he.call(o, Ke);
|
|
429
|
+
F && n.filter(o) && (r || !t.includes(o)) && l.push(o);
|
|
433
430
|
var N = o.shadowRoot || // check for an undisclosed shadow
|
|
434
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(o),
|
|
435
|
-
if (N &&
|
|
436
|
-
var
|
|
437
|
-
n.flatten ? l.push.apply(l,
|
|
431
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), x = !Ue(N, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
432
|
+
if (N && x) {
|
|
433
|
+
var M = a(N === !0 ? o.children : N.children, !0, n);
|
|
434
|
+
n.flatten ? l.push.apply(l, M) : l.push({
|
|
438
435
|
scopeParent: o,
|
|
439
|
-
candidates:
|
|
436
|
+
candidates: M
|
|
440
437
|
});
|
|
441
438
|
} else
|
|
442
439
|
d.unshift.apply(d, o.children);
|
|
443
440
|
}
|
|
444
441
|
}
|
|
445
442
|
return l;
|
|
446
|
-
},
|
|
443
|
+
}, Jt = function(t) {
|
|
447
444
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
448
|
-
},
|
|
445
|
+
}, ve = function(t) {
|
|
449
446
|
if (!t)
|
|
450
447
|
throw new Error("No node provided");
|
|
451
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
452
|
-
},
|
|
453
|
-
var n =
|
|
454
|
-
return n < 0 && r && !
|
|
455
|
-
},
|
|
448
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Cr(t)) && !Jt(t) ? 0 : t.tabIndex;
|
|
449
|
+
}, $r = function(t, r) {
|
|
450
|
+
var n = ve(t);
|
|
451
|
+
return n < 0 && r && !Jt(t) ? 0 : n;
|
|
452
|
+
}, Nr = function(t, r) {
|
|
456
453
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
457
|
-
},
|
|
454
|
+
}, Qt = function(t) {
|
|
458
455
|
return t.tagName === "INPUT";
|
|
459
|
-
},
|
|
460
|
-
return
|
|
461
|
-
},
|
|
456
|
+
}, Er = function(t) {
|
|
457
|
+
return Qt(t) && t.type === "hidden";
|
|
458
|
+
}, Ar = function(t) {
|
|
462
459
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
463
460
|
return n.tagName === "SUMMARY";
|
|
464
461
|
});
|
|
465
462
|
return r;
|
|
466
|
-
},
|
|
463
|
+
}, Fr = function(t, r) {
|
|
467
464
|
for (var n = 0; n < t.length; n++)
|
|
468
465
|
if (t[n].checked && t[n].form === r)
|
|
469
466
|
return t[n];
|
|
470
|
-
},
|
|
467
|
+
}, xr = function(t) {
|
|
471
468
|
if (!t.name)
|
|
472
469
|
return !0;
|
|
473
470
|
var r = t.form || He(t), n = function(v) {
|
|
@@ -481,26 +478,26 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
481
478
|
} catch (o) {
|
|
482
479
|
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;
|
|
483
480
|
}
|
|
484
|
-
var d =
|
|
481
|
+
var d = Fr(l, t.form);
|
|
485
482
|
return !d || d === t;
|
|
486
|
-
},
|
|
487
|
-
return
|
|
488
|
-
},
|
|
489
|
-
return
|
|
490
|
-
},
|
|
483
|
+
}, Dr = function(t) {
|
|
484
|
+
return Qt(t) && t.type === "radio";
|
|
485
|
+
}, Rr = function(t) {
|
|
486
|
+
return Dr(t) && !xr(t);
|
|
487
|
+
}, Br = function(t) {
|
|
491
488
|
var r, n = t && He(t), l = (r = n) === null || r === void 0 ? void 0 : r.host, d = !1;
|
|
492
489
|
if (n && n !== t) {
|
|
493
490
|
var o, v, p;
|
|
494
491
|
for (d = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (p = t.ownerDocument) !== null && p !== void 0 && p.contains(t)); !d && l; ) {
|
|
495
|
-
var
|
|
496
|
-
n = He(l), l = (
|
|
492
|
+
var S, F, N;
|
|
493
|
+
n = He(l), l = (S = n) === null || S === void 0 ? void 0 : S.host, d = !!((F = l) !== null && F !== void 0 && (N = F.ownerDocument) !== null && N !== void 0 && N.contains(l));
|
|
497
494
|
}
|
|
498
495
|
}
|
|
499
496
|
return d;
|
|
500
|
-
},
|
|
497
|
+
}, Pt = function(t) {
|
|
501
498
|
var r = t.getBoundingClientRect(), n = r.width, l = r.height;
|
|
502
499
|
return n === 0 && l === 0;
|
|
503
|
-
},
|
|
500
|
+
}, Lr = function(t, r) {
|
|
504
501
|
var n = r.displayCheck, l = r.getShadowRoot;
|
|
505
502
|
if (getComputedStyle(t).visibility === "hidden")
|
|
506
503
|
return !0;
|
|
@@ -510,21 +507,21 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
510
507
|
if (!n || n === "full" || n === "legacy-full") {
|
|
511
508
|
if (typeof l == "function") {
|
|
512
509
|
for (var v = t; t; ) {
|
|
513
|
-
var p = t.parentElement,
|
|
510
|
+
var p = t.parentElement, S = He(t);
|
|
514
511
|
if (p && !p.shadowRoot && l(p) === !0)
|
|
515
|
-
return
|
|
516
|
-
t.assignedSlot ? t = t.assignedSlot : !p &&
|
|
512
|
+
return Pt(t);
|
|
513
|
+
t.assignedSlot ? t = t.assignedSlot : !p && S !== t.ownerDocument ? t = S.host : t = p;
|
|
517
514
|
}
|
|
518
515
|
t = v;
|
|
519
516
|
}
|
|
520
|
-
if (
|
|
517
|
+
if (Br(t))
|
|
521
518
|
return !t.getClientRects().length;
|
|
522
519
|
if (n !== "legacy-full")
|
|
523
520
|
return !0;
|
|
524
521
|
} else if (n === "non-zero-area")
|
|
525
|
-
return
|
|
522
|
+
return Pt(t);
|
|
526
523
|
return !1;
|
|
527
|
-
},
|
|
524
|
+
}, Mr = function(t) {
|
|
528
525
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
529
526
|
for (var r = t.parentElement; r; ) {
|
|
530
527
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -538,62 +535,62 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
538
535
|
r = r.parentElement;
|
|
539
536
|
}
|
|
540
537
|
return !1;
|
|
541
|
-
},
|
|
538
|
+
}, ze = function(t, r) {
|
|
542
539
|
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
543
540
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
544
541
|
// note related to `candidateSelectors`)
|
|
545
|
-
Ue(r) ||
|
|
546
|
-
|
|
542
|
+
Ue(r) || Er(r) || Lr(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
543
|
+
Ar(r) || Mr(r));
|
|
547
544
|
}, ut = function(t, r) {
|
|
548
|
-
return !(
|
|
549
|
-
},
|
|
545
|
+
return !(Rr(r) || ve(r) < 0 || !ze(t, r));
|
|
546
|
+
}, Pr = function(t) {
|
|
550
547
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
551
548
|
return !!(isNaN(r) || r >= 0);
|
|
552
|
-
},
|
|
549
|
+
}, Zr = function a(t) {
|
|
553
550
|
var r = [], n = [];
|
|
554
551
|
return t.forEach(function(l, d) {
|
|
555
|
-
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p =
|
|
556
|
-
p === 0 ? o ? r.push.apply(r,
|
|
552
|
+
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p = $r(v, o), S = o ? a(l.candidates) : v;
|
|
553
|
+
p === 0 ? o ? r.push.apply(r, S) : r.push(v) : n.push({
|
|
557
554
|
documentOrder: d,
|
|
558
555
|
tabIndex: p,
|
|
559
556
|
item: l,
|
|
560
557
|
isScope: o,
|
|
561
|
-
content:
|
|
558
|
+
content: S
|
|
562
559
|
});
|
|
563
|
-
}), n.sort(
|
|
560
|
+
}), n.sort(Nr).reduce(function(l, d) {
|
|
564
561
|
return d.isScope ? l.push.apply(l, d.content) : l.push(d.content), l;
|
|
565
562
|
}, []).concat(r);
|
|
566
|
-
},
|
|
563
|
+
}, jr = function(t, r) {
|
|
567
564
|
r = r || {};
|
|
568
565
|
var n;
|
|
569
|
-
return r.getShadowRoot ? n =
|
|
566
|
+
return r.getShadowRoot ? n = Yt([t], r.includeContainer, {
|
|
570
567
|
filter: ut.bind(null, r),
|
|
571
568
|
flatten: !1,
|
|
572
569
|
getShadowRoot: r.getShadowRoot,
|
|
573
|
-
shadowRootFilter:
|
|
574
|
-
}) : n =
|
|
575
|
-
},
|
|
570
|
+
shadowRootFilter: Pr
|
|
571
|
+
}) : n = Xt(t, r.includeContainer, ut.bind(null, r)), Zr(n);
|
|
572
|
+
}, Kr = function(t, r) {
|
|
576
573
|
r = r || {};
|
|
577
574
|
var n;
|
|
578
|
-
return r.getShadowRoot ? n =
|
|
579
|
-
filter:
|
|
575
|
+
return r.getShadowRoot ? n = Yt([t], r.includeContainer, {
|
|
576
|
+
filter: ze.bind(null, r),
|
|
580
577
|
flatten: !0,
|
|
581
578
|
getShadowRoot: r.getShadowRoot
|
|
582
|
-
}) : n =
|
|
579
|
+
}) : n = Xt(t, r.includeContainer, ze.bind(null, r)), n;
|
|
583
580
|
}, we = function(t, r) {
|
|
584
581
|
if (r = r || {}, !t)
|
|
585
582
|
throw new Error("No node provided");
|
|
586
|
-
return he.call(t,
|
|
587
|
-
},
|
|
583
|
+
return he.call(t, Ke) === !1 ? !1 : ut(r, t);
|
|
584
|
+
}, Hr = /* @__PURE__ */ Wt.concat("iframe").join(","), ct = function(t, r) {
|
|
588
585
|
if (r = r || {}, !t)
|
|
589
586
|
throw new Error("No node provided");
|
|
590
|
-
return he.call(t,
|
|
587
|
+
return he.call(t, Hr) === !1 ? !1 : ze(r, t);
|
|
591
588
|
};
|
|
592
589
|
/*!
|
|
593
590
|
* focus-trap 7.5.4
|
|
594
591
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
595
592
|
*/
|
|
596
|
-
function
|
|
593
|
+
function Zt(a, t) {
|
|
597
594
|
var r = Object.keys(a);
|
|
598
595
|
if (Object.getOwnPropertySymbols) {
|
|
599
596
|
var n = Object.getOwnPropertySymbols(a);
|
|
@@ -603,26 +600,26 @@ function Pt(a, t) {
|
|
|
603
600
|
}
|
|
604
601
|
return r;
|
|
605
602
|
}
|
|
606
|
-
function
|
|
603
|
+
function jt(a) {
|
|
607
604
|
for (var t = 1; t < arguments.length; t++) {
|
|
608
605
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
609
|
-
t % 2 ?
|
|
610
|
-
|
|
611
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) :
|
|
606
|
+
t % 2 ? Zt(Object(r), !0).forEach(function(n) {
|
|
607
|
+
Ur(a, n, r[n]);
|
|
608
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Zt(Object(r)).forEach(function(n) {
|
|
612
609
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(r, n));
|
|
613
610
|
});
|
|
614
611
|
}
|
|
615
612
|
return a;
|
|
616
613
|
}
|
|
617
|
-
function
|
|
618
|
-
return t =
|
|
614
|
+
function Ur(a, t, r) {
|
|
615
|
+
return t = Vr(t), t in a ? Object.defineProperty(a, t, {
|
|
619
616
|
value: r,
|
|
620
617
|
enumerable: !0,
|
|
621
618
|
configurable: !0,
|
|
622
619
|
writable: !0
|
|
623
620
|
}) : a[t] = r, a;
|
|
624
621
|
}
|
|
625
|
-
function
|
|
622
|
+
function zr(a, t) {
|
|
626
623
|
if (typeof a != "object" || a === null)
|
|
627
624
|
return a;
|
|
628
625
|
var r = a[Symbol.toPrimitive];
|
|
@@ -634,8 +631,8 @@ function Mr(a, t) {
|
|
|
634
631
|
}
|
|
635
632
|
return (t === "string" ? String : Number)(a);
|
|
636
633
|
}
|
|
637
|
-
function
|
|
638
|
-
var t =
|
|
634
|
+
function Vr(a) {
|
|
635
|
+
var t = zr(a, "string");
|
|
639
636
|
return typeof t == "symbol" ? t : String(t);
|
|
640
637
|
}
|
|
641
638
|
var Kt = {
|
|
@@ -651,36 +648,36 @@ var Kt = {
|
|
|
651
648
|
var n = t.indexOf(r);
|
|
652
649
|
n !== -1 && t.splice(n, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
653
650
|
}
|
|
654
|
-
},
|
|
651
|
+
}, Gr = function(t) {
|
|
655
652
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
656
|
-
},
|
|
653
|
+
}, Wr = function(t) {
|
|
657
654
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
658
|
-
},
|
|
655
|
+
}, $e = function(t) {
|
|
659
656
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
660
|
-
},
|
|
661
|
-
return
|
|
662
|
-
},
|
|
663
|
-
return
|
|
664
|
-
},
|
|
657
|
+
}, qr = function(t) {
|
|
658
|
+
return $e(t) && !t.shiftKey;
|
|
659
|
+
}, Xr = function(t) {
|
|
660
|
+
return $e(t) && t.shiftKey;
|
|
661
|
+
}, Ht = function(t) {
|
|
665
662
|
return setTimeout(t, 0);
|
|
666
|
-
},
|
|
663
|
+
}, Ut = function(t, r) {
|
|
667
664
|
var n = -1;
|
|
668
665
|
return t.every(function(l, d) {
|
|
669
666
|
return r(l) ? (n = d, !1) : !0;
|
|
670
667
|
}), n;
|
|
671
|
-
},
|
|
668
|
+
}, Oe = function(t) {
|
|
672
669
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
|
673
670
|
n[l - 1] = arguments[l];
|
|
674
671
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
675
672
|
}, Le = function(t) {
|
|
676
673
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
677
|
-
},
|
|
678
|
-
var n = (r == null ? void 0 : r.document) || document, l = (r == null ? void 0 : r.trapStack) ||
|
|
674
|
+
}, Yr = [], Jr = function(t, r) {
|
|
675
|
+
var n = (r == null ? void 0 : r.document) || document, l = (r == null ? void 0 : r.trapStack) || Yr, d = jt({
|
|
679
676
|
returnFocusOnDeactivate: !0,
|
|
680
677
|
escapeDeactivates: !0,
|
|
681
678
|
delayInitialFocus: !0,
|
|
682
|
-
isKeyForward:
|
|
683
|
-
isKeyBackward:
|
|
679
|
+
isKeyForward: qr,
|
|
680
|
+
isKeyBackward: Xr
|
|
684
681
|
}, r), o = {
|
|
685
682
|
// containers given to createFocusTrap()
|
|
686
683
|
// @type {Array<HTMLElement>}
|
|
@@ -719,67 +716,67 @@ var Kt = {
|
|
|
719
716
|
recentNavEvent: void 0
|
|
720
717
|
}, v, p = function(s, u, f) {
|
|
721
718
|
return s && s[u] !== void 0 ? s[u] : d[f || u];
|
|
722
|
-
},
|
|
719
|
+
}, S = function(s, u) {
|
|
723
720
|
var f = typeof (u == null ? void 0 : u.composedPath) == "function" ? u.composedPath() : void 0;
|
|
724
|
-
return o.containerGroups.findIndex(function(
|
|
725
|
-
var
|
|
726
|
-
return
|
|
721
|
+
return o.containerGroups.findIndex(function(_) {
|
|
722
|
+
var I = _.container, E = _.tabbableNodes;
|
|
723
|
+
return I.contains(s) || // fall back to explicit tabbable search which will take into consideration any
|
|
727
724
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
728
725
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
729
726
|
// look inside web components even if open)
|
|
730
|
-
(f == null ? void 0 : f.includes(
|
|
731
|
-
return
|
|
727
|
+
(f == null ? void 0 : f.includes(I)) || E.find(function(A) {
|
|
728
|
+
return A === s;
|
|
732
729
|
});
|
|
733
730
|
});
|
|
734
|
-
},
|
|
731
|
+
}, F = function(s) {
|
|
735
732
|
var u = d[s];
|
|
736
733
|
if (typeof u == "function") {
|
|
737
|
-
for (var f = arguments.length,
|
|
738
|
-
|
|
739
|
-
u = u.apply(void 0,
|
|
734
|
+
for (var f = arguments.length, _ = new Array(f > 1 ? f - 1 : 0), I = 1; I < f; I++)
|
|
735
|
+
_[I - 1] = arguments[I];
|
|
736
|
+
u = u.apply(void 0, _);
|
|
740
737
|
}
|
|
741
738
|
if (u === !0 && (u = void 0), !u) {
|
|
742
739
|
if (u === void 0 || u === !1)
|
|
743
740
|
return u;
|
|
744
741
|
throw new Error("`".concat(s, "` was specified but was not a node, or did not return a node"));
|
|
745
742
|
}
|
|
746
|
-
var
|
|
747
|
-
if (typeof u == "string" && (
|
|
743
|
+
var E = u;
|
|
744
|
+
if (typeof u == "string" && (E = n.querySelector(u), !E))
|
|
748
745
|
throw new Error("`".concat(s, "` as selector refers to no known node"));
|
|
749
|
-
return
|
|
746
|
+
return E;
|
|
750
747
|
}, N = function() {
|
|
751
|
-
var s =
|
|
748
|
+
var s = F("initialFocus");
|
|
752
749
|
if (s === !1)
|
|
753
750
|
return !1;
|
|
754
751
|
if (s === void 0 || !ct(s, d.tabbableOptions))
|
|
755
|
-
if (
|
|
752
|
+
if (S(n.activeElement) >= 0)
|
|
756
753
|
s = n.activeElement;
|
|
757
754
|
else {
|
|
758
755
|
var u = o.tabbableGroups[0], f = u && u.firstTabbableNode;
|
|
759
|
-
s = f ||
|
|
756
|
+
s = f || F("fallbackFocus");
|
|
760
757
|
}
|
|
761
758
|
if (!s)
|
|
762
759
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
763
760
|
return s;
|
|
764
|
-
},
|
|
761
|
+
}, x = function() {
|
|
765
762
|
if (o.containerGroups = o.containers.map(function(s) {
|
|
766
|
-
var u =
|
|
763
|
+
var u = jr(s, d.tabbableOptions), f = Kr(s, d.tabbableOptions), _ = u.length > 0 ? u[0] : void 0, I = u.length > 0 ? u[u.length - 1] : void 0, E = f.find(function(m) {
|
|
767
764
|
return we(m);
|
|
768
|
-
}),
|
|
765
|
+
}), A = f.slice().reverse().find(function(m) {
|
|
769
766
|
return we(m);
|
|
770
|
-
}),
|
|
771
|
-
return
|
|
767
|
+
}), j = !!u.find(function(m) {
|
|
768
|
+
return ve(m) > 0;
|
|
772
769
|
});
|
|
773
770
|
return {
|
|
774
771
|
container: s,
|
|
775
772
|
tabbableNodes: u,
|
|
776
773
|
focusableNodes: f,
|
|
777
774
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
778
|
-
posTabIndexesFound:
|
|
775
|
+
posTabIndexesFound: j,
|
|
779
776
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
780
|
-
firstTabbableNode:
|
|
777
|
+
firstTabbableNode: _,
|
|
781
778
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
782
|
-
lastTabbableNode:
|
|
779
|
+
lastTabbableNode: I,
|
|
783
780
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
784
781
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
785
782
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -788,9 +785,9 @@ var Kt = {
|
|
|
788
785
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
789
786
|
// be avoided anyway...
|
|
790
787
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
791
|
-
firstDomTabbableNode:
|
|
788
|
+
firstDomTabbableNode: E,
|
|
792
789
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
793
|
-
lastDomTabbableNode:
|
|
790
|
+
lastDomTabbableNode: A,
|
|
794
791
|
/**
|
|
795
792
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
796
793
|
* in this container, if any.
|
|
@@ -800,75 +797,75 @@ var Kt = {
|
|
|
800
797
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
801
798
|
*/
|
|
802
799
|
nextTabbableNode: function(re) {
|
|
803
|
-
var
|
|
804
|
-
return B < 0 ?
|
|
800
|
+
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, B = u.indexOf(re);
|
|
801
|
+
return B < 0 ? le ? f.slice(f.indexOf(re) + 1).find(function(se) {
|
|
805
802
|
return we(se);
|
|
806
803
|
}) : f.slice(0, f.indexOf(re)).reverse().find(function(se) {
|
|
807
804
|
return we(se);
|
|
808
|
-
}) : u[B + (
|
|
805
|
+
}) : u[B + (le ? 1 : -1)];
|
|
809
806
|
}
|
|
810
807
|
};
|
|
811
808
|
}), o.tabbableGroups = o.containerGroups.filter(function(s) {
|
|
812
809
|
return s.tabbableNodes.length > 0;
|
|
813
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
810
|
+
}), o.tabbableGroups.length <= 0 && !F("fallbackFocus"))
|
|
814
811
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
815
812
|
if (o.containerGroups.find(function(s) {
|
|
816
813
|
return s.posTabIndexesFound;
|
|
817
814
|
}) && o.containerGroups.length > 1)
|
|
818
815
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
819
|
-
},
|
|
816
|
+
}, M = function k(s) {
|
|
820
817
|
var u = s.activeElement;
|
|
821
818
|
if (u)
|
|
822
|
-
return u.shadowRoot && u.shadowRoot.activeElement !== null ?
|
|
823
|
-
},
|
|
824
|
-
if (s !== !1 && s !==
|
|
819
|
+
return u.shadowRoot && u.shadowRoot.activeElement !== null ? k(u.shadowRoot) : u;
|
|
820
|
+
}, y = function k(s) {
|
|
821
|
+
if (s !== !1 && s !== M(document)) {
|
|
825
822
|
if (!s || !s.focus) {
|
|
826
|
-
|
|
823
|
+
k(N());
|
|
827
824
|
return;
|
|
828
825
|
}
|
|
829
826
|
s.focus({
|
|
830
827
|
preventScroll: !!d.preventScroll
|
|
831
|
-
}), o.mostRecentlyFocusedNode = s,
|
|
828
|
+
}), o.mostRecentlyFocusedNode = s, Gr(s) && s.select();
|
|
832
829
|
}
|
|
833
|
-
},
|
|
834
|
-
var u =
|
|
830
|
+
}, P = function(s) {
|
|
831
|
+
var u = F("setReturnFocus", s);
|
|
835
832
|
return u || (u === !1 ? !1 : s);
|
|
836
|
-
},
|
|
837
|
-
var u = s.target, f = s.event,
|
|
838
|
-
u = u || Le(f),
|
|
839
|
-
var
|
|
833
|
+
}, q = function(s) {
|
|
834
|
+
var u = s.target, f = s.event, _ = s.isBackward, I = _ === void 0 ? !1 : _;
|
|
835
|
+
u = u || Le(f), x();
|
|
836
|
+
var E = null;
|
|
840
837
|
if (o.tabbableGroups.length > 0) {
|
|
841
|
-
var
|
|
842
|
-
if (
|
|
843
|
-
|
|
844
|
-
else if (
|
|
845
|
-
var m =
|
|
846
|
-
var
|
|
847
|
-
return u ===
|
|
838
|
+
var A = S(u, f), j = A >= 0 ? o.containerGroups[A] : void 0;
|
|
839
|
+
if (A < 0)
|
|
840
|
+
I ? E = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : E = o.tabbableGroups[0].firstTabbableNode;
|
|
841
|
+
else if (I) {
|
|
842
|
+
var m = Ut(o.tabbableGroups, function(Te) {
|
|
843
|
+
var ke = Te.firstTabbableNode;
|
|
844
|
+
return u === ke;
|
|
848
845
|
});
|
|
849
|
-
if (m < 0 && (
|
|
850
|
-
var re = m === 0 ? o.tabbableGroups.length - 1 : m - 1,
|
|
851
|
-
|
|
846
|
+
if (m < 0 && (j.container === u || ct(u, d.tabbableOptions) && !we(u, d.tabbableOptions) && !j.nextTabbableNode(u, !1)) && (m = A), m >= 0) {
|
|
847
|
+
var re = m === 0 ? o.tabbableGroups.length - 1 : m - 1, le = o.tabbableGroups[re];
|
|
848
|
+
E = ve(u) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
|
|
852
849
|
} else
|
|
853
|
-
|
|
850
|
+
$e(f) || (E = j.nextTabbableNode(u, !1));
|
|
854
851
|
} else {
|
|
855
|
-
var B =
|
|
856
|
-
var
|
|
857
|
-
return u ===
|
|
852
|
+
var B = Ut(o.tabbableGroups, function(Te) {
|
|
853
|
+
var ke = Te.lastTabbableNode;
|
|
854
|
+
return u === ke;
|
|
858
855
|
});
|
|
859
|
-
if (B < 0 && (
|
|
860
|
-
var se = B === o.tabbableGroups.length - 1 ? 0 : B + 1,
|
|
861
|
-
|
|
856
|
+
if (B < 0 && (j.container === u || ct(u, d.tabbableOptions) && !we(u, d.tabbableOptions) && !j.nextTabbableNode(u)) && (B = A), B >= 0) {
|
|
857
|
+
var se = B === o.tabbableGroups.length - 1 ? 0 : B + 1, _e = o.tabbableGroups[se];
|
|
858
|
+
E = ve(u) >= 0 ? _e.firstTabbableNode : _e.firstDomTabbableNode;
|
|
862
859
|
} else
|
|
863
|
-
|
|
860
|
+
$e(f) || (E = j.nextTabbableNode(u));
|
|
864
861
|
}
|
|
865
862
|
} else
|
|
866
|
-
|
|
867
|
-
return
|
|
868
|
-
},
|
|
863
|
+
E = F("fallbackFocus");
|
|
864
|
+
return E;
|
|
865
|
+
}, R = function(s) {
|
|
869
866
|
var u = Le(s);
|
|
870
|
-
if (!(
|
|
871
|
-
if (
|
|
867
|
+
if (!(S(u, s) >= 0)) {
|
|
868
|
+
if (Oe(d.clickOutsideDeactivates, s)) {
|
|
872
869
|
v.deactivate({
|
|
873
870
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
874
871
|
// which will result in the outside click setting focus to the node
|
|
@@ -880,88 +877,88 @@ var Kt = {
|
|
|
880
877
|
});
|
|
881
878
|
return;
|
|
882
879
|
}
|
|
883
|
-
|
|
880
|
+
Oe(d.allowOutsideClick, s) || s.preventDefault();
|
|
884
881
|
}
|
|
885
|
-
},
|
|
886
|
-
var u = Le(s), f =
|
|
882
|
+
}, ae = function(s) {
|
|
883
|
+
var u = Le(s), f = S(u, s) >= 0;
|
|
887
884
|
if (f || u instanceof Document)
|
|
888
885
|
f && (o.mostRecentlyFocusedNode = u);
|
|
889
886
|
else {
|
|
890
887
|
s.stopImmediatePropagation();
|
|
891
|
-
var
|
|
888
|
+
var _, I = !0;
|
|
892
889
|
if (o.mostRecentlyFocusedNode)
|
|
893
|
-
if (
|
|
894
|
-
var
|
|
895
|
-
if (
|
|
896
|
-
var
|
|
890
|
+
if (ve(o.mostRecentlyFocusedNode) > 0) {
|
|
891
|
+
var E = S(o.mostRecentlyFocusedNode), A = o.containerGroups[E].tabbableNodes;
|
|
892
|
+
if (A.length > 0) {
|
|
893
|
+
var j = A.findIndex(function(m) {
|
|
897
894
|
return m === o.mostRecentlyFocusedNode;
|
|
898
895
|
});
|
|
899
|
-
|
|
896
|
+
j >= 0 && (d.isKeyForward(o.recentNavEvent) ? j + 1 < A.length && (_ = A[j + 1], I = !1) : j - 1 >= 0 && (_ = A[j - 1], I = !1));
|
|
900
897
|
}
|
|
901
898
|
} else
|
|
902
899
|
o.containerGroups.some(function(m) {
|
|
903
900
|
return m.tabbableNodes.some(function(re) {
|
|
904
|
-
return
|
|
901
|
+
return ve(re) > 0;
|
|
905
902
|
});
|
|
906
|
-
}) || (
|
|
903
|
+
}) || (I = !1);
|
|
907
904
|
else
|
|
908
|
-
|
|
909
|
-
|
|
905
|
+
I = !1;
|
|
906
|
+
I && (_ = q({
|
|
910
907
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
911
908
|
// outside the trap causing the focus escape we're trying to fix)
|
|
912
909
|
target: o.mostRecentlyFocusedNode,
|
|
913
910
|
isBackward: d.isKeyBackward(o.recentNavEvent)
|
|
914
|
-
})),
|
|
911
|
+
})), y(_ || o.mostRecentlyFocusedNode || N());
|
|
915
912
|
}
|
|
916
913
|
o.recentNavEvent = void 0;
|
|
917
914
|
}, oe = function(s) {
|
|
918
915
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
919
916
|
o.recentNavEvent = s;
|
|
920
|
-
var f =
|
|
917
|
+
var f = q({
|
|
921
918
|
event: s,
|
|
922
919
|
isBackward: u
|
|
923
920
|
});
|
|
924
|
-
f && (
|
|
925
|
-
},
|
|
926
|
-
if (
|
|
921
|
+
f && ($e(s) && s.preventDefault(), y(f));
|
|
922
|
+
}, J = function(s) {
|
|
923
|
+
if (Wr(s) && Oe(d.escapeDeactivates, s) !== !1) {
|
|
927
924
|
s.preventDefault(), v.deactivate();
|
|
928
925
|
return;
|
|
929
926
|
}
|
|
930
927
|
(d.isKeyForward(s) || d.isKeyBackward(s)) && oe(s, d.isKeyBackward(s));
|
|
931
|
-
},
|
|
928
|
+
}, Q = function(s) {
|
|
932
929
|
var u = Le(s);
|
|
933
|
-
|
|
934
|
-
},
|
|
930
|
+
S(u, s) >= 0 || Oe(d.clickOutsideDeactivates, s) || Oe(d.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
931
|
+
}, K = function() {
|
|
935
932
|
if (o.active)
|
|
936
|
-
return Kt.activateTrap(l, v), o.delayInitialFocusTimer = d.delayInitialFocus ?
|
|
937
|
-
|
|
938
|
-
}) :
|
|
933
|
+
return Kt.activateTrap(l, v), o.delayInitialFocusTimer = d.delayInitialFocus ? Ht(function() {
|
|
934
|
+
y(N());
|
|
935
|
+
}) : y(N()), n.addEventListener("focusin", ae, !0), n.addEventListener("mousedown", R, {
|
|
939
936
|
capture: !0,
|
|
940
937
|
passive: !1
|
|
941
|
-
}), n.addEventListener("touchstart",
|
|
938
|
+
}), n.addEventListener("touchstart", R, {
|
|
942
939
|
capture: !0,
|
|
943
940
|
passive: !1
|
|
944
|
-
}), n.addEventListener("click",
|
|
941
|
+
}), n.addEventListener("click", Q, {
|
|
945
942
|
capture: !0,
|
|
946
943
|
passive: !1
|
|
947
|
-
}), n.addEventListener("keydown",
|
|
944
|
+
}), n.addEventListener("keydown", J, {
|
|
948
945
|
capture: !0,
|
|
949
946
|
passive: !1
|
|
950
947
|
}), v;
|
|
951
|
-
},
|
|
948
|
+
}, z = function() {
|
|
952
949
|
if (o.active)
|
|
953
|
-
return n.removeEventListener("focusin",
|
|
950
|
+
return n.removeEventListener("focusin", ae, !0), n.removeEventListener("mousedown", R, !0), n.removeEventListener("touchstart", R, !0), n.removeEventListener("click", Q, !0), n.removeEventListener("keydown", J, !0), v;
|
|
954
951
|
}, $ = function(s) {
|
|
955
952
|
var u = s.some(function(f) {
|
|
956
|
-
var
|
|
957
|
-
return
|
|
958
|
-
return
|
|
953
|
+
var _ = Array.from(f.removedNodes);
|
|
954
|
+
return _.some(function(I) {
|
|
955
|
+
return I === o.mostRecentlyFocusedNode;
|
|
959
956
|
});
|
|
960
957
|
});
|
|
961
|
-
u &&
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
|
|
958
|
+
u && y(N());
|
|
959
|
+
}, Z = typeof window < "u" && "MutationObserver" in window ? new MutationObserver($) : void 0, V = function() {
|
|
960
|
+
Z && (Z.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
961
|
+
Z.observe(s, {
|
|
965
962
|
subtree: !0,
|
|
966
963
|
childList: !0
|
|
967
964
|
});
|
|
@@ -977,48 +974,48 @@ var Kt = {
|
|
|
977
974
|
activate: function(s) {
|
|
978
975
|
if (o.active)
|
|
979
976
|
return this;
|
|
980
|
-
var u = p(s, "onActivate"), f = p(s, "onPostActivate"),
|
|
981
|
-
|
|
982
|
-
var
|
|
983
|
-
|
|
977
|
+
var u = p(s, "onActivate"), f = p(s, "onPostActivate"), _ = p(s, "checkCanFocusTrap");
|
|
978
|
+
_ || x(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = n.activeElement, u == null || u();
|
|
979
|
+
var I = function() {
|
|
980
|
+
_ && x(), K(), V(), f == null || f();
|
|
984
981
|
};
|
|
985
|
-
return
|
|
982
|
+
return _ ? (_(o.containers.concat()).then(I, I), this) : (I(), this);
|
|
986
983
|
},
|
|
987
984
|
deactivate: function(s) {
|
|
988
985
|
if (!o.active)
|
|
989
986
|
return this;
|
|
990
|
-
var u =
|
|
987
|
+
var u = jt({
|
|
991
988
|
onDeactivate: d.onDeactivate,
|
|
992
989
|
onPostDeactivate: d.onPostDeactivate,
|
|
993
990
|
checkCanReturnFocus: d.checkCanReturnFocus
|
|
994
991
|
}, s);
|
|
995
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
996
|
-
var f = p(u, "onDeactivate"),
|
|
992
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, z(), o.active = !1, o.paused = !1, V(), Kt.deactivateTrap(l, v);
|
|
993
|
+
var f = p(u, "onDeactivate"), _ = p(u, "onPostDeactivate"), I = p(u, "checkCanReturnFocus"), E = p(u, "returnFocus", "returnFocusOnDeactivate");
|
|
997
994
|
f == null || f();
|
|
998
|
-
var
|
|
999
|
-
|
|
1000
|
-
|
|
995
|
+
var A = function() {
|
|
996
|
+
Ht(function() {
|
|
997
|
+
E && y(P(o.nodeFocusedBeforeActivation)), _ == null || _();
|
|
1001
998
|
});
|
|
1002
999
|
};
|
|
1003
|
-
return
|
|
1000
|
+
return E && I ? (I(P(o.nodeFocusedBeforeActivation)).then(A, A), this) : (A(), this);
|
|
1004
1001
|
},
|
|
1005
1002
|
pause: function(s) {
|
|
1006
1003
|
if (o.paused || !o.active)
|
|
1007
1004
|
return this;
|
|
1008
1005
|
var u = p(s, "onPause"), f = p(s, "onPostPause");
|
|
1009
|
-
return o.paused = !0, u == null || u(),
|
|
1006
|
+
return o.paused = !0, u == null || u(), z(), V(), f == null || f(), this;
|
|
1010
1007
|
},
|
|
1011
1008
|
unpause: function(s) {
|
|
1012
1009
|
if (!o.paused || !o.active)
|
|
1013
1010
|
return this;
|
|
1014
1011
|
var u = p(s, "onUnpause"), f = p(s, "onPostUnpause");
|
|
1015
|
-
return o.paused = !1, u == null || u(),
|
|
1012
|
+
return o.paused = !1, u == null || u(), x(), K(), V(), f == null || f(), this;
|
|
1016
1013
|
},
|
|
1017
1014
|
updateContainerElements: function(s) {
|
|
1018
1015
|
var u = [].concat(s).filter(Boolean);
|
|
1019
1016
|
return o.containers = u.map(function(f) {
|
|
1020
1017
|
return typeof f == "string" ? n.querySelector(f) : f;
|
|
1021
|
-
}), o.active &&
|
|
1018
|
+
}), o.active && x(), V(), this;
|
|
1022
1019
|
}
|
|
1023
1020
|
}, v.updateContainerElements(t), v;
|
|
1024
1021
|
};
|
|
@@ -1027,7 +1024,7 @@ var Kt = {
|
|
|
1027
1024
|
* (c) 2023 Eduardo San Martin Morote
|
|
1028
1025
|
* @license MIT
|
|
1029
1026
|
*/
|
|
1030
|
-
const
|
|
1027
|
+
const Qr = {
|
|
1031
1028
|
escapeDeactivates: {
|
|
1032
1029
|
type: Boolean,
|
|
1033
1030
|
default: !0
|
|
@@ -1053,14 +1050,14 @@ const zr = {
|
|
|
1053
1050
|
preventScroll: Boolean,
|
|
1054
1051
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1055
1052
|
tabbableOptions: Object
|
|
1056
|
-
},
|
|
1053
|
+
}, ei = ee({
|
|
1057
1054
|
props: Object.assign({
|
|
1058
1055
|
active: {
|
|
1059
1056
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
1060
1057
|
type: Boolean,
|
|
1061
1058
|
default: !0
|
|
1062
1059
|
}
|
|
1063
|
-
},
|
|
1060
|
+
}, Qr),
|
|
1064
1061
|
emits: [
|
|
1065
1062
|
"update:active",
|
|
1066
1063
|
"activate",
|
|
@@ -1073,12 +1070,12 @@ const zr = {
|
|
|
1073
1070
|
},
|
|
1074
1071
|
setup(a, { slots: t, emit: r }) {
|
|
1075
1072
|
let n;
|
|
1076
|
-
const l =
|
|
1073
|
+
const l = G(null), d = w(() => {
|
|
1077
1074
|
const v = l.value;
|
|
1078
1075
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1079
1076
|
});
|
|
1080
1077
|
function o() {
|
|
1081
|
-
return n || (n =
|
|
1078
|
+
return n || (n = Jr(d.value, {
|
|
1082
1079
|
escapeDeactivates: a.escapeDeactivates,
|
|
1083
1080
|
allowOutsideClick: a.allowOutsideClick,
|
|
1084
1081
|
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
@@ -1099,10 +1096,10 @@ const zr = {
|
|
|
1099
1096
|
}));
|
|
1100
1097
|
}
|
|
1101
1098
|
return qe(() => {
|
|
1102
|
-
|
|
1099
|
+
je(() => a.active, (v) => {
|
|
1103
1100
|
v && d.value ? o().activate() : n && (n.deactivate(), (!d.value || d.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
1104
1101
|
}, { immediate: !0, flush: "post" });
|
|
1105
|
-
}),
|
|
1102
|
+
}), wn(() => {
|
|
1106
1103
|
n && n.deactivate(), n = null;
|
|
1107
1104
|
}), {
|
|
1108
1105
|
activate() {
|
|
@@ -1114,13 +1111,13 @@ const zr = {
|
|
|
1114
1111
|
renderImpl() {
|
|
1115
1112
|
if (!t.default)
|
|
1116
1113
|
return null;
|
|
1117
|
-
const v = t.default().filter((
|
|
1118
|
-
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) :
|
|
1114
|
+
const v = t.default().filter((S) => S.type !== _n);
|
|
1115
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : Tn(v[0], { ref: l });
|
|
1119
1116
|
}
|
|
1120
1117
|
};
|
|
1121
1118
|
}
|
|
1122
1119
|
});
|
|
1123
|
-
function
|
|
1120
|
+
function ea() {
|
|
1124
1121
|
return {
|
|
1125
1122
|
debounce: (t, r) => {
|
|
1126
1123
|
let n;
|
|
@@ -1133,27 +1130,27 @@ function Jt() {
|
|
|
1133
1130
|
};
|
|
1134
1131
|
}
|
|
1135
1132
|
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1136
|
-
function
|
|
1133
|
+
function ti(a) {
|
|
1137
1134
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1138
1135
|
}
|
|
1139
|
-
var
|
|
1140
|
-
|
|
1136
|
+
var Ve = { exports: {} };
|
|
1137
|
+
Ve.exports;
|
|
1141
1138
|
(function(a, t) {
|
|
1142
|
-
var r = 200, n = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]",
|
|
1143
|
-
m[d] = m[o] = m[
|
|
1144
|
-
var re = typeof Me == "object" && Me && Me.Object === Object && Me,
|
|
1145
|
-
function
|
|
1139
|
+
var r = 200, n = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]", S = "[object Error]", F = "[object Function]", N = "[object GeneratorFunction]", x = "[object Map]", M = "[object Number]", y = "[object Object]", P = "[object Promise]", q = "[object RegExp]", R = "[object Set]", ae = "[object String]", oe = "[object Symbol]", J = "[object WeakMap]", Q = "[object ArrayBuffer]", K = "[object DataView]", z = "[object Float32Array]", $ = "[object Float64Array]", Z = "[object Int8Array]", V = "[object Int16Array]", k = "[object Int32Array]", s = "[object Uint8Array]", u = "[object Uint8ClampedArray]", f = "[object Uint16Array]", _ = "[object Uint32Array]", I = /[\\^$.*+?()[\]{}|]/g, E = /\w*$/, A = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, m = {};
|
|
1140
|
+
m[d] = m[o] = m[Q] = m[K] = m[v] = m[p] = m[z] = m[$] = m[Z] = m[V] = m[k] = m[x] = m[M] = m[y] = m[q] = m[R] = m[ae] = m[oe] = m[s] = m[u] = m[f] = m[_] = !0, m[S] = m[F] = m[J] = !1;
|
|
1141
|
+
var re = typeof Me == "object" && Me && Me.Object === Object && Me, le = typeof self == "object" && self && self.Object === Object && self, B = re || le || Function("return this")(), se = t && !t.nodeType && t, _e = se && !0 && a && !a.nodeType && a, Te = _e && _e.exports === se;
|
|
1142
|
+
function ke(e, i) {
|
|
1146
1143
|
return e.set(i[0], i[1]), e;
|
|
1147
1144
|
}
|
|
1148
|
-
function
|
|
1145
|
+
function ta(e, i) {
|
|
1149
1146
|
return e.add(i), e;
|
|
1150
1147
|
}
|
|
1151
|
-
function
|
|
1148
|
+
function aa(e, i) {
|
|
1152
1149
|
for (var c = -1, b = e ? e.length : 0; ++c < b && i(e[c], c, e) !== !1; )
|
|
1153
1150
|
;
|
|
1154
1151
|
return e;
|
|
1155
1152
|
}
|
|
1156
|
-
function
|
|
1153
|
+
function na(e, i) {
|
|
1157
1154
|
for (var c = -1, b = i.length, L = e.length; ++c < b; )
|
|
1158
1155
|
e[L + c] = i[c];
|
|
1159
1156
|
return e;
|
|
@@ -1164,12 +1161,12 @@ ze.exports;
|
|
|
1164
1161
|
c = i(c, e[L], L, e);
|
|
1165
1162
|
return c;
|
|
1166
1163
|
}
|
|
1167
|
-
function
|
|
1164
|
+
function ra(e, i) {
|
|
1168
1165
|
for (var c = -1, b = Array(e); ++c < e; )
|
|
1169
1166
|
b[c] = i(c);
|
|
1170
1167
|
return b;
|
|
1171
1168
|
}
|
|
1172
|
-
function
|
|
1169
|
+
function ia(e, i) {
|
|
1173
1170
|
return e == null ? void 0 : e[i];
|
|
1174
1171
|
}
|
|
1175
1172
|
function ht(e) {
|
|
@@ -1198,42 +1195,42 @@ ze.exports;
|
|
|
1198
1195
|
c[++i] = b;
|
|
1199
1196
|
}), c;
|
|
1200
1197
|
}
|
|
1201
|
-
var
|
|
1198
|
+
var oa = Array.prototype, sa = Function.prototype, Ae = Object.prototype, Ye = B["__core-js_shared__"], gt = function() {
|
|
1202
1199
|
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
1203
1200
|
return e ? "Symbol(src)_1." + e : "";
|
|
1204
|
-
}(), yt =
|
|
1205
|
-
"^" + yt.call(ce).replace(
|
|
1206
|
-
), wt =
|
|
1207
|
-
function
|
|
1201
|
+
}(), yt = sa.toString, ce = Ae.hasOwnProperty, Fe = Ae.toString, ca = RegExp(
|
|
1202
|
+
"^" + yt.call(ce).replace(I, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1203
|
+
), wt = Te ? B.Buffer : void 0, _t = B.Symbol, Tt = B.Uint8Array, la = Xe(Object.getPrototypeOf, Object), ua = Object.create, da = Ae.propertyIsEnumerable, fa = oa.splice, kt = Object.getOwnPropertySymbols, va = wt ? wt.isBuffer : void 0, ba = Xe(Object.keys, Object), Je = ge(B, "DataView"), Se = ge(B, "Map"), Qe = ge(B, "Promise"), et = ge(B, "Set"), tt = ge(B, "WeakMap"), Ie = ge(Object, "create"), ha = fe(Je), pa = fe(Se), ma = fe(Qe), ga = fe(et), ya = fe(tt), St = _t ? _t.prototype : void 0, It = St ? St.valueOf : void 0;
|
|
1204
|
+
function ue(e) {
|
|
1208
1205
|
var i = -1, c = e ? e.length : 0;
|
|
1209
1206
|
for (this.clear(); ++i < c; ) {
|
|
1210
1207
|
var b = e[i];
|
|
1211
1208
|
this.set(b[0], b[1]);
|
|
1212
1209
|
}
|
|
1213
1210
|
}
|
|
1214
|
-
function
|
|
1215
|
-
this.__data__ =
|
|
1211
|
+
function wa() {
|
|
1212
|
+
this.__data__ = Ie ? Ie(null) : {};
|
|
1216
1213
|
}
|
|
1217
|
-
function
|
|
1214
|
+
function _a(e) {
|
|
1218
1215
|
return this.has(e) && delete this.__data__[e];
|
|
1219
1216
|
}
|
|
1220
|
-
function
|
|
1217
|
+
function Ta(e) {
|
|
1221
1218
|
var i = this.__data__;
|
|
1222
|
-
if (
|
|
1219
|
+
if (Ie) {
|
|
1223
1220
|
var c = i[e];
|
|
1224
1221
|
return c === n ? void 0 : c;
|
|
1225
1222
|
}
|
|
1226
1223
|
return ce.call(i, e) ? i[e] : void 0;
|
|
1227
1224
|
}
|
|
1228
|
-
function
|
|
1225
|
+
function ka(e) {
|
|
1229
1226
|
var i = this.__data__;
|
|
1230
|
-
return
|
|
1227
|
+
return Ie ? i[e] !== void 0 : ce.call(i, e);
|
|
1231
1228
|
}
|
|
1232
|
-
function
|
|
1229
|
+
function Sa(e, i) {
|
|
1233
1230
|
var c = this.__data__;
|
|
1234
|
-
return c[e] =
|
|
1231
|
+
return c[e] = Ie && i === void 0 ? n : i, this;
|
|
1235
1232
|
}
|
|
1236
|
-
|
|
1233
|
+
ue.prototype.clear = wa, ue.prototype.delete = _a, ue.prototype.get = Ta, ue.prototype.has = ka, ue.prototype.set = Sa;
|
|
1237
1234
|
function ie(e) {
|
|
1238
1235
|
var i = -1, c = e ? e.length : 0;
|
|
1239
1236
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1241,28 +1238,28 @@ ze.exports;
|
|
|
1241
1238
|
this.set(b[0], b[1]);
|
|
1242
1239
|
}
|
|
1243
1240
|
}
|
|
1244
|
-
function
|
|
1241
|
+
function Ia() {
|
|
1245
1242
|
this.__data__ = [];
|
|
1246
1243
|
}
|
|
1247
|
-
function
|
|
1244
|
+
function Oa(e) {
|
|
1248
1245
|
var i = this.__data__, c = xe(i, e);
|
|
1249
1246
|
if (c < 0)
|
|
1250
1247
|
return !1;
|
|
1251
1248
|
var b = i.length - 1;
|
|
1252
|
-
return c == b ? i.pop() :
|
|
1249
|
+
return c == b ? i.pop() : fa.call(i, c, 1), !0;
|
|
1253
1250
|
}
|
|
1254
|
-
function
|
|
1251
|
+
function Ca(e) {
|
|
1255
1252
|
var i = this.__data__, c = xe(i, e);
|
|
1256
1253
|
return c < 0 ? void 0 : i[c][1];
|
|
1257
1254
|
}
|
|
1258
|
-
function
|
|
1255
|
+
function $a(e) {
|
|
1259
1256
|
return xe(this.__data__, e) > -1;
|
|
1260
1257
|
}
|
|
1261
|
-
function
|
|
1258
|
+
function Na(e, i) {
|
|
1262
1259
|
var c = this.__data__, b = xe(c, e);
|
|
1263
1260
|
return b < 0 ? c.push([e, i]) : c[b][1] = i, this;
|
|
1264
1261
|
}
|
|
1265
|
-
ie.prototype.clear =
|
|
1262
|
+
ie.prototype.clear = Ia, ie.prototype.delete = Oa, ie.prototype.get = Ca, ie.prototype.has = $a, ie.prototype.set = Na;
|
|
1266
1263
|
function pe(e) {
|
|
1267
1264
|
var i = -1, c = e ? e.length : 0;
|
|
1268
1265
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1270,56 +1267,56 @@ ze.exports;
|
|
|
1270
1267
|
this.set(b[0], b[1]);
|
|
1271
1268
|
}
|
|
1272
1269
|
}
|
|
1273
|
-
function
|
|
1270
|
+
function Ea() {
|
|
1274
1271
|
this.__data__ = {
|
|
1275
|
-
hash: new
|
|
1276
|
-
map: new (
|
|
1277
|
-
string: new
|
|
1272
|
+
hash: new ue(),
|
|
1273
|
+
map: new (Se || ie)(),
|
|
1274
|
+
string: new ue()
|
|
1278
1275
|
};
|
|
1279
1276
|
}
|
|
1280
|
-
function
|
|
1277
|
+
function Aa(e) {
|
|
1281
1278
|
return De(this, e).delete(e);
|
|
1282
1279
|
}
|
|
1283
|
-
function
|
|
1280
|
+
function Fa(e) {
|
|
1284
1281
|
return De(this, e).get(e);
|
|
1285
1282
|
}
|
|
1286
|
-
function
|
|
1283
|
+
function xa(e) {
|
|
1287
1284
|
return De(this, e).has(e);
|
|
1288
1285
|
}
|
|
1289
|
-
function
|
|
1286
|
+
function Da(e, i) {
|
|
1290
1287
|
return De(this, e).set(e, i), this;
|
|
1291
1288
|
}
|
|
1292
|
-
pe.prototype.clear =
|
|
1289
|
+
pe.prototype.clear = Ea, pe.prototype.delete = Aa, pe.prototype.get = Fa, pe.prototype.has = xa, pe.prototype.set = Da;
|
|
1293
1290
|
function me(e) {
|
|
1294
1291
|
this.__data__ = new ie(e);
|
|
1295
1292
|
}
|
|
1296
|
-
function
|
|
1293
|
+
function Ra() {
|
|
1297
1294
|
this.__data__ = new ie();
|
|
1298
1295
|
}
|
|
1299
|
-
function
|
|
1296
|
+
function Ba(e) {
|
|
1300
1297
|
return this.__data__.delete(e);
|
|
1301
1298
|
}
|
|
1302
|
-
function
|
|
1299
|
+
function La(e) {
|
|
1303
1300
|
return this.__data__.get(e);
|
|
1304
1301
|
}
|
|
1305
|
-
function
|
|
1302
|
+
function Ma(e) {
|
|
1306
1303
|
return this.__data__.has(e);
|
|
1307
1304
|
}
|
|
1308
|
-
function
|
|
1305
|
+
function Pa(e, i) {
|
|
1309
1306
|
var c = this.__data__;
|
|
1310
1307
|
if (c instanceof ie) {
|
|
1311
1308
|
var b = c.__data__;
|
|
1312
|
-
if (!
|
|
1309
|
+
if (!Se || b.length < r - 1)
|
|
1313
1310
|
return b.push([e, i]), this;
|
|
1314
1311
|
c = this.__data__ = new pe(b);
|
|
1315
1312
|
}
|
|
1316
1313
|
return c.set(e, i), this;
|
|
1317
1314
|
}
|
|
1318
|
-
me.prototype.clear =
|
|
1319
|
-
function
|
|
1320
|
-
var c = rt(e) ||
|
|
1315
|
+
me.prototype.clear = Ra, me.prototype.delete = Ba, me.prototype.get = La, me.prototype.has = Ma, me.prototype.set = Pa;
|
|
1316
|
+
function Za(e, i) {
|
|
1317
|
+
var c = rt(e) || dn(e) ? ra(e.length, String) : [], b = c.length, L = !!b;
|
|
1321
1318
|
for (var H in e)
|
|
1322
|
-
(i || ce.call(e, H)) && !(L && (H == "length" ||
|
|
1319
|
+
(i || ce.call(e, H)) && !(L && (H == "length" || sn(H, b))) && c.push(H);
|
|
1323
1320
|
return c;
|
|
1324
1321
|
}
|
|
1325
1322
|
function Ot(e, i, c) {
|
|
@@ -1332,69 +1329,69 @@ ze.exports;
|
|
|
1332
1329
|
return c;
|
|
1333
1330
|
return -1;
|
|
1334
1331
|
}
|
|
1335
|
-
function
|
|
1332
|
+
function ja(e, i) {
|
|
1336
1333
|
return e && Ct(i, it(i), e);
|
|
1337
1334
|
}
|
|
1338
1335
|
function at(e, i, c, b, L, H, X) {
|
|
1339
|
-
var
|
|
1340
|
-
if (b && (
|
|
1341
|
-
return
|
|
1336
|
+
var U;
|
|
1337
|
+
if (b && (U = H ? b(e, L, H, X) : b(e)), U !== void 0)
|
|
1338
|
+
return U;
|
|
1342
1339
|
if (!Re(e))
|
|
1343
1340
|
return e;
|
|
1344
1341
|
var xt = rt(e);
|
|
1345
1342
|
if (xt) {
|
|
1346
|
-
if (
|
|
1347
|
-
return
|
|
1343
|
+
if (U = nn(e), !i)
|
|
1344
|
+
return en(e, U);
|
|
1348
1345
|
} else {
|
|
1349
|
-
var ye =
|
|
1350
|
-
if (
|
|
1351
|
-
return
|
|
1352
|
-
if (ye ==
|
|
1346
|
+
var ye = de(e), Dt = ye == F || ye == N;
|
|
1347
|
+
if (vn(e))
|
|
1348
|
+
return Ga(e, i);
|
|
1349
|
+
if (ye == y || ye == d || Dt && !H) {
|
|
1353
1350
|
if (ht(e))
|
|
1354
1351
|
return H ? e : {};
|
|
1355
|
-
if (
|
|
1356
|
-
return
|
|
1352
|
+
if (U = rn(Dt ? {} : e), !i)
|
|
1353
|
+
return tn(e, ja(U, e));
|
|
1357
1354
|
} else {
|
|
1358
1355
|
if (!m[ye])
|
|
1359
1356
|
return H ? e : {};
|
|
1360
|
-
|
|
1357
|
+
U = on(e, ye, at, i);
|
|
1361
1358
|
}
|
|
1362
1359
|
}
|
|
1363
1360
|
X || (X = new me());
|
|
1364
1361
|
var Rt = X.get(e);
|
|
1365
1362
|
if (Rt)
|
|
1366
1363
|
return Rt;
|
|
1367
|
-
if (X.set(e,
|
|
1368
|
-
var Bt = c ?
|
|
1369
|
-
return
|
|
1370
|
-
Bt && (Be = ot, ot = e[Be]), Ot(
|
|
1371
|
-
}),
|
|
1364
|
+
if (X.set(e, U), !xt)
|
|
1365
|
+
var Bt = c ? an(e) : it(e);
|
|
1366
|
+
return aa(Bt || e, function(ot, Be) {
|
|
1367
|
+
Bt && (Be = ot, ot = e[Be]), Ot(U, Be, at(ot, i, c, b, Be, e, X));
|
|
1368
|
+
}), U;
|
|
1372
1369
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return Re(e) ?
|
|
1370
|
+
function Ka(e) {
|
|
1371
|
+
return Re(e) ? ua(e) : {};
|
|
1375
1372
|
}
|
|
1376
|
-
function
|
|
1373
|
+
function Ha(e, i, c) {
|
|
1377
1374
|
var b = i(e);
|
|
1378
|
-
return rt(e) ? b :
|
|
1375
|
+
return rt(e) ? b : na(b, c(e));
|
|
1379
1376
|
}
|
|
1380
|
-
function
|
|
1377
|
+
function Ua(e) {
|
|
1381
1378
|
return Fe.call(e);
|
|
1382
1379
|
}
|
|
1383
|
-
function
|
|
1384
|
-
if (!Re(e) ||
|
|
1380
|
+
function za(e) {
|
|
1381
|
+
if (!Re(e) || ln(e))
|
|
1385
1382
|
return !1;
|
|
1386
|
-
var i = Ft(e) || ht(e) ?
|
|
1387
|
-
return i.test(
|
|
1383
|
+
var i = Ft(e) || ht(e) ? ca : A;
|
|
1384
|
+
return i.test(fe(e));
|
|
1388
1385
|
}
|
|
1389
|
-
function
|
|
1386
|
+
function Va(e) {
|
|
1390
1387
|
if (!Nt(e))
|
|
1391
|
-
return
|
|
1388
|
+
return ba(e);
|
|
1392
1389
|
var i = [];
|
|
1393
1390
|
for (var c in Object(e))
|
|
1394
1391
|
ce.call(e, c) && c != "constructor" && i.push(c);
|
|
1395
1392
|
return i;
|
|
1396
1393
|
}
|
|
1397
|
-
function
|
|
1394
|
+
function Ga(e, i) {
|
|
1398
1395
|
if (i)
|
|
1399
1396
|
return e.slice();
|
|
1400
1397
|
var c = new e.constructor(e.length);
|
|
@@ -1404,30 +1401,30 @@ ze.exports;
|
|
|
1404
1401
|
var i = new e.constructor(e.byteLength);
|
|
1405
1402
|
return new Tt(i).set(new Tt(e)), i;
|
|
1406
1403
|
}
|
|
1407
|
-
function
|
|
1404
|
+
function Wa(e, i) {
|
|
1408
1405
|
var c = i ? nt(e.buffer) : e.buffer;
|
|
1409
1406
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1410
1407
|
}
|
|
1411
|
-
function
|
|
1408
|
+
function qa(e, i, c) {
|
|
1412
1409
|
var b = i ? c(pt(e), !0) : pt(e);
|
|
1413
|
-
return bt(b,
|
|
1410
|
+
return bt(b, ke, new e.constructor());
|
|
1414
1411
|
}
|
|
1415
|
-
function
|
|
1416
|
-
var i = new e.constructor(e.source,
|
|
1412
|
+
function Xa(e) {
|
|
1413
|
+
var i = new e.constructor(e.source, E.exec(e));
|
|
1417
1414
|
return i.lastIndex = e.lastIndex, i;
|
|
1418
1415
|
}
|
|
1419
|
-
function
|
|
1416
|
+
function Ya(e, i, c) {
|
|
1420
1417
|
var b = i ? c(mt(e), !0) : mt(e);
|
|
1421
|
-
return bt(b,
|
|
1418
|
+
return bt(b, ta, new e.constructor());
|
|
1422
1419
|
}
|
|
1423
|
-
function
|
|
1420
|
+
function Ja(e) {
|
|
1424
1421
|
return It ? Object(It.call(e)) : {};
|
|
1425
1422
|
}
|
|
1426
|
-
function
|
|
1423
|
+
function Qa(e, i) {
|
|
1427
1424
|
var c = i ? nt(e.buffer) : e.buffer;
|
|
1428
1425
|
return new e.constructor(c, e.byteOffset, e.length);
|
|
1429
1426
|
}
|
|
1430
|
-
function
|
|
1427
|
+
function en(e, i) {
|
|
1431
1428
|
var c = -1, b = e.length;
|
|
1432
1429
|
for (i || (i = Array(b)); ++c < b; )
|
|
1433
1430
|
i[c] = e[c];
|
|
@@ -1436,98 +1433,98 @@ ze.exports;
|
|
|
1436
1433
|
function Ct(e, i, c, b) {
|
|
1437
1434
|
c || (c = {});
|
|
1438
1435
|
for (var L = -1, H = i.length; ++L < H; ) {
|
|
1439
|
-
var X = i[L],
|
|
1440
|
-
Ot(c, X,
|
|
1436
|
+
var X = i[L], U = b ? b(c[X], e[X], X, c, e) : void 0;
|
|
1437
|
+
Ot(c, X, U === void 0 ? e[X] : U);
|
|
1441
1438
|
}
|
|
1442
1439
|
return c;
|
|
1443
1440
|
}
|
|
1444
|
-
function
|
|
1441
|
+
function tn(e, i) {
|
|
1445
1442
|
return Ct(e, $t(e), i);
|
|
1446
1443
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1444
|
+
function an(e) {
|
|
1445
|
+
return Ha(e, it, $t);
|
|
1449
1446
|
}
|
|
1450
1447
|
function De(e, i) {
|
|
1451
1448
|
var c = e.__data__;
|
|
1452
|
-
return
|
|
1449
|
+
return cn(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1453
1450
|
}
|
|
1454
1451
|
function ge(e, i) {
|
|
1455
|
-
var c =
|
|
1456
|
-
return
|
|
1452
|
+
var c = ia(e, i);
|
|
1453
|
+
return za(c) ? c : void 0;
|
|
1457
1454
|
}
|
|
1458
|
-
var $t = kt ? Xe(kt, Object) :
|
|
1459
|
-
(Je &&
|
|
1460
|
-
var i = Fe.call(e), c = i ==
|
|
1455
|
+
var $t = kt ? Xe(kt, Object) : pn, de = Ua;
|
|
1456
|
+
(Je && de(new Je(new ArrayBuffer(1))) != K || Se && de(new Se()) != x || Qe && de(Qe.resolve()) != P || et && de(new et()) != R || tt && de(new tt()) != J) && (de = function(e) {
|
|
1457
|
+
var i = Fe.call(e), c = i == y ? e.constructor : void 0, b = c ? fe(c) : void 0;
|
|
1461
1458
|
if (b)
|
|
1462
1459
|
switch (b) {
|
|
1463
|
-
case va:
|
|
1464
|
-
return j;
|
|
1465
|
-
case ba:
|
|
1466
|
-
return D;
|
|
1467
1460
|
case ha:
|
|
1468
|
-
return
|
|
1461
|
+
return K;
|
|
1469
1462
|
case pa:
|
|
1470
|
-
return
|
|
1463
|
+
return x;
|
|
1471
1464
|
case ma:
|
|
1472
|
-
return
|
|
1465
|
+
return P;
|
|
1466
|
+
case ga:
|
|
1467
|
+
return R;
|
|
1468
|
+
case ya:
|
|
1469
|
+
return J;
|
|
1473
1470
|
}
|
|
1474
1471
|
return i;
|
|
1475
1472
|
});
|
|
1476
|
-
function
|
|
1473
|
+
function nn(e) {
|
|
1477
1474
|
var i = e.length, c = e.constructor(i);
|
|
1478
1475
|
return i && typeof e[0] == "string" && ce.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1479
1476
|
}
|
|
1480
|
-
function
|
|
1481
|
-
return typeof e.constructor == "function" && !Nt(e) ?
|
|
1477
|
+
function rn(e) {
|
|
1478
|
+
return typeof e.constructor == "function" && !Nt(e) ? Ka(la(e)) : {};
|
|
1482
1479
|
}
|
|
1483
|
-
function
|
|
1480
|
+
function on(e, i, c, b) {
|
|
1484
1481
|
var L = e.constructor;
|
|
1485
1482
|
switch (i) {
|
|
1486
|
-
case
|
|
1483
|
+
case Q:
|
|
1487
1484
|
return nt(e);
|
|
1488
1485
|
case v:
|
|
1489
1486
|
case p:
|
|
1490
1487
|
return new L(+e);
|
|
1491
|
-
case
|
|
1492
|
-
return
|
|
1493
|
-
case
|
|
1488
|
+
case K:
|
|
1489
|
+
return Wa(e, b);
|
|
1490
|
+
case z:
|
|
1494
1491
|
case $:
|
|
1495
|
-
case
|
|
1496
|
-
case
|
|
1497
|
-
case
|
|
1492
|
+
case Z:
|
|
1493
|
+
case V:
|
|
1494
|
+
case k:
|
|
1498
1495
|
case s:
|
|
1499
1496
|
case u:
|
|
1500
1497
|
case f:
|
|
1501
|
-
case
|
|
1502
|
-
return
|
|
1503
|
-
case
|
|
1504
|
-
return Ga(e, b, c);
|
|
1505
|
-
case K:
|
|
1506
|
-
case U:
|
|
1507
|
-
return new L(e);
|
|
1508
|
-
case z:
|
|
1509
|
-
return Wa(e);
|
|
1510
|
-
case M:
|
|
1498
|
+
case _:
|
|
1499
|
+
return Qa(e, b);
|
|
1500
|
+
case x:
|
|
1511
1501
|
return qa(e, b, c);
|
|
1512
|
-
case
|
|
1502
|
+
case M:
|
|
1503
|
+
case ae:
|
|
1504
|
+
return new L(e);
|
|
1505
|
+
case q:
|
|
1513
1506
|
return Xa(e);
|
|
1507
|
+
case R:
|
|
1508
|
+
return Ya(e, b, c);
|
|
1509
|
+
case oe:
|
|
1510
|
+
return Ja(e);
|
|
1514
1511
|
}
|
|
1515
1512
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return i = i ?? l, !!i && (typeof e == "number" ||
|
|
1513
|
+
function sn(e, i) {
|
|
1514
|
+
return i = i ?? l, !!i && (typeof e == "number" || j.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1518
1515
|
}
|
|
1519
|
-
function
|
|
1516
|
+
function cn(e) {
|
|
1520
1517
|
var i = typeof e;
|
|
1521
1518
|
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1522
1519
|
}
|
|
1523
|
-
function
|
|
1520
|
+
function ln(e) {
|
|
1524
1521
|
return !!gt && gt in e;
|
|
1525
1522
|
}
|
|
1526
1523
|
function Nt(e) {
|
|
1527
1524
|
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Ae;
|
|
1528
1525
|
return e === c;
|
|
1529
1526
|
}
|
|
1530
|
-
function
|
|
1527
|
+
function fe(e) {
|
|
1531
1528
|
if (e != null) {
|
|
1532
1529
|
try {
|
|
1533
1530
|
return yt.call(e);
|
|
@@ -1540,66 +1537,66 @@ ze.exports;
|
|
|
1540
1537
|
}
|
|
1541
1538
|
return "";
|
|
1542
1539
|
}
|
|
1543
|
-
function
|
|
1540
|
+
function un(e) {
|
|
1544
1541
|
return at(e, !0, !0);
|
|
1545
1542
|
}
|
|
1546
1543
|
function Et(e, i) {
|
|
1547
1544
|
return e === i || e !== e && i !== i;
|
|
1548
1545
|
}
|
|
1549
|
-
function
|
|
1550
|
-
return
|
|
1546
|
+
function dn(e) {
|
|
1547
|
+
return fn(e) && ce.call(e, "callee") && (!da.call(e, "callee") || Fe.call(e) == d);
|
|
1551
1548
|
}
|
|
1552
1549
|
var rt = Array.isArray;
|
|
1553
1550
|
function At(e) {
|
|
1554
|
-
return e != null &&
|
|
1551
|
+
return e != null && bn(e.length) && !Ft(e);
|
|
1555
1552
|
}
|
|
1556
|
-
function
|
|
1557
|
-
return
|
|
1553
|
+
function fn(e) {
|
|
1554
|
+
return hn(e) && At(e);
|
|
1558
1555
|
}
|
|
1559
|
-
var
|
|
1556
|
+
var vn = va || mn;
|
|
1560
1557
|
function Ft(e) {
|
|
1561
1558
|
var i = Re(e) ? Fe.call(e) : "";
|
|
1562
|
-
return i ==
|
|
1559
|
+
return i == F || i == N;
|
|
1563
1560
|
}
|
|
1564
|
-
function
|
|
1561
|
+
function bn(e) {
|
|
1565
1562
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
1566
1563
|
}
|
|
1567
1564
|
function Re(e) {
|
|
1568
1565
|
var i = typeof e;
|
|
1569
1566
|
return !!e && (i == "object" || i == "function");
|
|
1570
1567
|
}
|
|
1571
|
-
function
|
|
1568
|
+
function hn(e) {
|
|
1572
1569
|
return !!e && typeof e == "object";
|
|
1573
1570
|
}
|
|
1574
1571
|
function it(e) {
|
|
1575
|
-
return At(e) ?
|
|
1572
|
+
return At(e) ? Za(e) : Va(e);
|
|
1576
1573
|
}
|
|
1577
|
-
function
|
|
1574
|
+
function pn() {
|
|
1578
1575
|
return [];
|
|
1579
1576
|
}
|
|
1580
|
-
function
|
|
1577
|
+
function mn() {
|
|
1581
1578
|
return !1;
|
|
1582
1579
|
}
|
|
1583
|
-
a.exports =
|
|
1584
|
-
})(
|
|
1585
|
-
var
|
|
1586
|
-
const
|
|
1580
|
+
a.exports = un;
|
|
1581
|
+
})(Ve, Ve.exports);
|
|
1582
|
+
var ai = Ve.exports;
|
|
1583
|
+
const ni = /* @__PURE__ */ ti(ai), ri = {
|
|
1587
1584
|
key: 0,
|
|
1588
1585
|
class: "sidebar-header"
|
|
1589
|
-
},
|
|
1586
|
+
}, ii = { class: "sidebar-content-container" }, oi = {
|
|
1590
1587
|
key: 0,
|
|
1591
1588
|
class: "sidebar-top"
|
|
1592
|
-
},
|
|
1589
|
+
}, si = { "aria-label": "Main menu" }, ci = {
|
|
1593
1590
|
key: 0,
|
|
1594
1591
|
class: "level-primary top-items"
|
|
1595
|
-
},
|
|
1592
|
+
}, li = {
|
|
1596
1593
|
key: 1,
|
|
1597
1594
|
class: "sidebar-level-divider",
|
|
1598
1595
|
role: "separator"
|
|
1599
|
-
},
|
|
1596
|
+
}, ui = {
|
|
1600
1597
|
key: 2,
|
|
1601
1598
|
class: "level-primary bottom-items"
|
|
1602
|
-
},
|
|
1599
|
+
}, di = { class: "sidebar-footer" }, fi = /* @__PURE__ */ ee({
|
|
1603
1600
|
__name: "AppSidebar",
|
|
1604
1601
|
props: {
|
|
1605
1602
|
topItems: {
|
|
@@ -1659,116 +1656,116 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1659
1656
|
emits: ["click", "toggle"],
|
|
1660
1657
|
setup(a, { emit: t }) {
|
|
1661
1658
|
dt((s) => ({
|
|
1662
|
-
"
|
|
1663
|
-
|
|
1664
|
-
"
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
"
|
|
1668
|
-
"
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
"
|
|
1659
|
+
"23c53c20": v.value.mobileHeight,
|
|
1660
|
+
"3460a0fc": v.value.mobileTop,
|
|
1661
|
+
"1cf2af88": a.zIndex,
|
|
1662
|
+
f1bfd3c4: v.value.height,
|
|
1663
|
+
83239084: v.value.top,
|
|
1664
|
+
"23dc8fdc": S.value.marginTop,
|
|
1665
|
+
"249a1c3a": p.value.display,
|
|
1666
|
+
"4fcba391": p.value.minHeight,
|
|
1667
|
+
"14e46dcd": F.value.top,
|
|
1668
|
+
"4aabd500": F.value.zIndex
|
|
1672
1669
|
}));
|
|
1673
|
-
const r = t, n = a, l = ft(), d =
|
|
1670
|
+
const r = t, n = a, l = ft(), d = w(() => !!l.header), o = w(() => !!l.top), v = w(() => ({
|
|
1674
1671
|
mobileTop: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : n.topOffset ? `${n.topOffset}px` : "0",
|
|
1675
1672
|
top: n.topOffset ? `${n.topOffset}px` : "0",
|
|
1676
1673
|
mobileHeight: n.mobileTopOffset && n.mobileEnabled ? `calc(100% - ${n.mobileTopOffset}px)` : "100%",
|
|
1677
1674
|
height: n.topOffset ? `calc(100% - ${n.topOffset}px)` : "100%"
|
|
1678
|
-
})), p =
|
|
1675
|
+
})), p = w(() => ({
|
|
1679
1676
|
display: !n.mobileHeaderVisible && n.mobileEnabled ? "none" : "flex",
|
|
1680
1677
|
minHeight: `${n.headerHeight}px`
|
|
1681
|
-
})),
|
|
1678
|
+
})), S = w(() => ({
|
|
1682
1679
|
marginTop: d.value ? `${n.headerHeight}px` : "0"
|
|
1683
|
-
})),
|
|
1680
|
+
})), F = w(() => ({
|
|
1684
1681
|
top: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : "0",
|
|
1685
1682
|
zIndex: n.mobileOverlayZIndex !== null ? n.mobileOverlayZIndex : n.zIndex > 1 ? n.zIndex - 1 : 1
|
|
1686
|
-
})), N = (s) =>
|
|
1687
|
-
var
|
|
1683
|
+
})), N = (s) => ni(s).map((f) => {
|
|
1684
|
+
var _, I, E;
|
|
1688
1685
|
if (f) {
|
|
1689
|
-
(!f.key || !((
|
|
1690
|
-
for (const
|
|
1691
|
-
|
|
1686
|
+
(!f.key || !((_ = f.key) != null && _.trim())) && (f.key = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!f.testId || !((I = f.testId) != null && I.trim())) && (f.testId = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1687
|
+
for (const A of f.items || [])
|
|
1688
|
+
A.parentKey = f.key, (!A.testId || !((E = A.testId) != null && E.trim())) && (A.testId = String(A.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1692
1689
|
}
|
|
1693
1690
|
return f;
|
|
1694
|
-
}),
|
|
1691
|
+
}), x = w(() => n.topItems.length ? N(n.topItems) : []), M = w(() => n.bottomItems.length ? N(n.bottomItems) : []), y = G(n.open), P = (s) => {
|
|
1695
1692
|
var u, f;
|
|
1696
|
-
|
|
1697
|
-
},
|
|
1698
|
-
n.mobileOverlayCloseOnClick &&
|
|
1699
|
-
},
|
|
1700
|
-
|
|
1701
|
-
|
|
1693
|
+
y.value !== s && (y.value = s, r("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"), R.value = !1;
|
|
1694
|
+
}, q = () => {
|
|
1695
|
+
n.mobileOverlayCloseOnClick && P(!1);
|
|
1696
|
+
}, R = G(!1), ae = (s) => {
|
|
1697
|
+
R.value = !0, r("click", s), setTimeout(() => {
|
|
1698
|
+
P(!1);
|
|
1702
1699
|
}, n.mobileCloseDelay);
|
|
1703
1700
|
};
|
|
1704
|
-
|
|
1705
|
-
|
|
1701
|
+
je(() => n.open, (s) => {
|
|
1702
|
+
P(s);
|
|
1706
1703
|
});
|
|
1707
|
-
const { debounce: oe } =
|
|
1708
|
-
|
|
1709
|
-
}, 200),
|
|
1710
|
-
|
|
1711
|
-
},
|
|
1704
|
+
const { debounce: oe } = ea(), J = oe(() => {
|
|
1705
|
+
y.value && Q.value !== (window == null ? void 0 : window.innerWidth) && (Q.value = window == null ? void 0 : window.innerWidth, P(!1));
|
|
1706
|
+
}, 200), Q = G(), K = G(!1), z = G(), $ = () => {
|
|
1707
|
+
K.value || (K.value = !0, clearTimeout(z.value), z.value = setTimeout(() => K.value = !1, 1300));
|
|
1708
|
+
}, Z = G(null), V = w(() => y.value && n.mobileEnabled), k = async (s) => {
|
|
1712
1709
|
var u, f;
|
|
1713
|
-
s ? (await kn(), await new Promise((
|
|
1710
|
+
s ? (await kn(), await new Promise((_) => setTimeout(_, 300)), (u = Z.value) == null || u.activate()) : (f = Z.value) == null || f.deactivate();
|
|
1714
1711
|
};
|
|
1715
|
-
return
|
|
1716
|
-
s ? await
|
|
1712
|
+
return je(V, async (s) => {
|
|
1713
|
+
s ? await k(!0) : await k(!1);
|
|
1717
1714
|
}, { immediate: !0 }), qe(() => {
|
|
1718
|
-
|
|
1719
|
-
}),
|
|
1720
|
-
window.removeEventListener("resize",
|
|
1721
|
-
}), (s, u) => (h(), g(
|
|
1722
|
-
|
|
1715
|
+
Q.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", J), window.addEventListener("resize", $);
|
|
1716
|
+
}), Vt(() => {
|
|
1717
|
+
window.removeEventListener("resize", J), window.removeEventListener("resize", $);
|
|
1718
|
+
}), (s, u) => (h(), g(Ce, null, [
|
|
1719
|
+
y.value && a.mobileOverlay && a.mobileEnabled ? (h(), g("div", {
|
|
1723
1720
|
key: 0,
|
|
1724
1721
|
class: "kong-ui-app-sidebar-overlay",
|
|
1725
|
-
onClick:
|
|
1726
|
-
})) :
|
|
1727
|
-
|
|
1722
|
+
onClick: q
|
|
1723
|
+
})) : C("", !0),
|
|
1724
|
+
Ee(zt(ei), {
|
|
1728
1725
|
ref_key: "focusTrap",
|
|
1729
|
-
ref:
|
|
1726
|
+
ref: Z,
|
|
1730
1727
|
active: !1,
|
|
1731
1728
|
"allow-outside-click": "",
|
|
1732
1729
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1733
1730
|
}, {
|
|
1734
|
-
default:
|
|
1735
|
-
|
|
1731
|
+
default: D(() => [
|
|
1732
|
+
T("aside", {
|
|
1736
1733
|
class: ne(["kong-ui-app-sidebar", {
|
|
1737
|
-
"sidebar-open":
|
|
1734
|
+
"sidebar-open": y.value,
|
|
1738
1735
|
"no-sidebar-header": !d.value,
|
|
1739
1736
|
"mobile-header-hidden": a.mobileEnabled && (!d.value || !a.mobileHeaderVisible),
|
|
1740
1737
|
"mobile-disabled": !a.mobileEnabled,
|
|
1741
|
-
"disable-transitions":
|
|
1738
|
+
"disable-transitions": K.value
|
|
1742
1739
|
}]),
|
|
1743
1740
|
tabindex: "-1"
|
|
1744
1741
|
}, [
|
|
1745
|
-
d.value ? (h(), g("div",
|
|
1746
|
-
|
|
1747
|
-
])) :
|
|
1748
|
-
|
|
1749
|
-
o.value ? (h(), g("div",
|
|
1750
|
-
|
|
1751
|
-
])) :
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
(h(!0), g(
|
|
1742
|
+
d.value ? (h(), g("div", ri, [
|
|
1743
|
+
O(s.$slots, "header", {}, void 0, !0)
|
|
1744
|
+
])) : C("", !0),
|
|
1745
|
+
T("div", ii, [
|
|
1746
|
+
o.value ? (h(), g("div", oi, [
|
|
1747
|
+
O(s.$slots, "top", {}, void 0, !0)
|
|
1748
|
+
])) : C("", !0),
|
|
1749
|
+
T("nav", si, [
|
|
1750
|
+
x.value.length ? (h(), g("ul", ci, [
|
|
1751
|
+
(h(!0), g(Ce, null, Ne(x.value, (f) => (h(), W(Mt, {
|
|
1755
1752
|
key: f.name,
|
|
1756
1753
|
item: f,
|
|
1757
|
-
onClick:
|
|
1754
|
+
onClick: ae
|
|
1758
1755
|
}, null, 8, ["item"]))), 128))
|
|
1759
|
-
])) :
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
(h(!0), g(
|
|
1756
|
+
])) : C("", !0),
|
|
1757
|
+
x.value.length && M.value.length ? (h(), g("div", li)) : C("", !0),
|
|
1758
|
+
M.value.length ? (h(), g("ul", ui, [
|
|
1759
|
+
(h(!0), g(Ce, null, Ne(M.value, (f) => (h(), W(Mt, {
|
|
1763
1760
|
key: f.name,
|
|
1764
1761
|
item: f,
|
|
1765
|
-
onClick:
|
|
1762
|
+
onClick: ae
|
|
1766
1763
|
}, null, 8, ["item"]))), 128))
|
|
1767
|
-
])) :
|
|
1764
|
+
])) : C("", !0)
|
|
1768
1765
|
])
|
|
1769
1766
|
]),
|
|
1770
|
-
|
|
1771
|
-
|
|
1767
|
+
T("div", di, [
|
|
1768
|
+
O(s.$slots, "footer", {}, void 0, !0)
|
|
1772
1769
|
])
|
|
1773
1770
|
], 2)
|
|
1774
1771
|
]),
|
|
@@ -1776,11 +1773,11 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1776
1773
|
}, 512)
|
|
1777
1774
|
], 64));
|
|
1778
1775
|
}
|
|
1779
|
-
}),
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
],
|
|
1776
|
+
}), vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-34c2833b"]]), vt = (a) => (Ge("data-v-00a332e0"), a = a(), We(), a), bi = ["aria-label"], hi = /* @__PURE__ */ vt(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), pi = /* @__PURE__ */ vt(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), mi = /* @__PURE__ */ vt(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), gi = [
|
|
1777
|
+
hi,
|
|
1778
|
+
pi,
|
|
1779
|
+
mi
|
|
1780
|
+
], yi = /* @__PURE__ */ ee({
|
|
1784
1781
|
__name: "SidebarToggle",
|
|
1785
1782
|
props: {
|
|
1786
1783
|
active: {
|
|
@@ -1790,10 +1787,10 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1790
1787
|
},
|
|
1791
1788
|
emits: ["toggle"],
|
|
1792
1789
|
setup(a, { emit: t }) {
|
|
1793
|
-
const r = t, n = a, l =
|
|
1790
|
+
const r = t, n = a, l = G(n.active || !1), d = () => {
|
|
1794
1791
|
l.value = !l.value, r("toggle", l.value);
|
|
1795
1792
|
};
|
|
1796
|
-
return
|
|
1793
|
+
return je(() => n.active, (o) => {
|
|
1797
1794
|
l.value = o;
|
|
1798
1795
|
}), (o, v) => (h(), g("a", {
|
|
1799
1796
|
"aria-haspopup": "true",
|
|
@@ -1802,15 +1799,15 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1802
1799
|
href: "#",
|
|
1803
1800
|
role: "button",
|
|
1804
1801
|
onClick: Sn(d, ["prevent"])
|
|
1805
|
-
},
|
|
1802
|
+
}, gi, 10, bi));
|
|
1806
1803
|
}
|
|
1807
|
-
}),
|
|
1804
|
+
}), wi = /* @__PURE__ */ te(yi, [["__scopeId", "data-v-00a332e0"]]), _i = (a) => (Ge("data-v-7129ca7f"), a = a(), We(), a), Ti = { id: "kong-ui-app-layout-notification" }, ki = { class: "mobile-logo" }, Si = {
|
|
1808
1805
|
key: 0,
|
|
1809
1806
|
class: "navbar-logo"
|
|
1810
|
-
},
|
|
1807
|
+
}, Ii = {
|
|
1811
1808
|
class: "kong-ui-app-layout-main",
|
|
1812
1809
|
"data-testid": "kong-ui-app-layout-main"
|
|
1813
|
-
},
|
|
1810
|
+
}, Oi = { class: "kong-ui-app-layout-content" }, Ci = { class: "kong-ui-app-layout-content-inner" }, $i = /* @__PURE__ */ _i(() => /* @__PURE__ */ T("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), Ni = /* @__PURE__ */ ee({
|
|
1814
1811
|
__name: "AppLayout",
|
|
1815
1812
|
props: {
|
|
1816
1813
|
hideDefaultSlot: {
|
|
@@ -1848,76 +1845,76 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1848
1845
|
emits: ["sidebar-click"],
|
|
1849
1846
|
setup(a, { emit: t }) {
|
|
1850
1847
|
dt(($) => ({
|
|
1851
|
-
"328394ce":
|
|
1852
|
-
"42bdeb84":
|
|
1853
|
-
"31e8409c":
|
|
1848
|
+
"328394ce": R.value,
|
|
1849
|
+
"42bdeb84": ae.value,
|
|
1850
|
+
"31e8409c": q.value,
|
|
1854
1851
|
"4fa4ed00": oe.value,
|
|
1855
|
-
"4802d273":
|
|
1852
|
+
"4802d273": J.value
|
|
1856
1853
|
}));
|
|
1857
1854
|
const r = a, n = t, l = ft(), d = Pe({
|
|
1858
|
-
navbarLeft:
|
|
1859
|
-
navbarCenter:
|
|
1860
|
-
navbarRight:
|
|
1861
|
-
navbarLogo:
|
|
1862
|
-
navbarMobileLogo:
|
|
1863
|
-
sidebarHeader:
|
|
1864
|
-
sidebarTop:
|
|
1865
|
-
sidebarFooter:
|
|
1866
|
-
}), o =
|
|
1867
|
-
hidden:
|
|
1855
|
+
navbarLeft: w(() => !!l["navbar-left"]),
|
|
1856
|
+
navbarCenter: w(() => !!l["navbar-center"]),
|
|
1857
|
+
navbarRight: w(() => !!l["navbar-right"]),
|
|
1858
|
+
navbarLogo: w(() => !!l["navbar-logo"]),
|
|
1859
|
+
navbarMobileLogo: w(() => !!l["navbar-mobile-logo"]),
|
|
1860
|
+
sidebarHeader: w(() => !!l["sidebar-header"]),
|
|
1861
|
+
sidebarTop: w(() => !!l["sidebar-top"]),
|
|
1862
|
+
sidebarFooter: w(() => !!l["sidebar-footer"])
|
|
1863
|
+
}), o = w(() => r.hideDefaultSlot), v = Pe({
|
|
1864
|
+
hidden: w(() => r.navbarHidden)
|
|
1868
1865
|
}), p = Pe({
|
|
1869
|
-
topItems:
|
|
1870
|
-
bottomItems:
|
|
1871
|
-
open:
|
|
1872
|
-
hidden:
|
|
1873
|
-
}),
|
|
1866
|
+
topItems: w(() => r.sidebarTopItems),
|
|
1867
|
+
bottomItems: w(() => r.sidebarBottomItems),
|
|
1868
|
+
open: w(() => r.sidebarOpen),
|
|
1869
|
+
hidden: w(() => r.sidebarHidden)
|
|
1870
|
+
}), S = ($) => {
|
|
1874
1871
|
n("sidebar-click", $);
|
|
1875
|
-
},
|
|
1876
|
-
|
|
1872
|
+
}, F = G(!1), N = ($) => {
|
|
1873
|
+
F.value = $;
|
|
1877
1874
|
};
|
|
1878
1875
|
In(() => {
|
|
1879
|
-
|
|
1876
|
+
F.value = On(p, "open").value || !1;
|
|
1880
1877
|
});
|
|
1881
|
-
const
|
|
1882
|
-
if ($ ||
|
|
1883
|
-
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1878
|
+
const x = G(0), M = G(60), y = G(0), P = w(() => v.hidden ? y.value : M.value + y.value), q = w(() => r.theme === "light" ? br : hr), R = w(() => r.theme === "light" ? fr : vr), ae = w(() => r.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), oe = w(() => `${P.value}px`), J = w(() => p.hidden || v.hidden ? pr : mr), { debounce: Q } = ea(), K = Q(($ = !1) => {
|
|
1879
|
+
if ($ || x.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1880
|
+
x.value = window == null ? void 0 : window.innerWidth;
|
|
1881
|
+
const Z = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1882
|
+
Z && (y.value = Z.offsetHeight);
|
|
1886
1883
|
}
|
|
1887
|
-
}, 200),
|
|
1884
|
+
}, 200), z = G();
|
|
1888
1885
|
return qe(() => {
|
|
1889
|
-
var
|
|
1890
|
-
(
|
|
1886
|
+
var Z, V;
|
|
1887
|
+
(Z = document == null ? void 0 : document.body) == null || Z.classList.add("kong-ui-app-layout-body"), (V = document == null ? void 0 : document.documentElement) == null || V.classList.add("kong-ui-app-layout-html"), x.value = window == null ? void 0 : window.innerWidth, K(!0);
|
|
1891
1888
|
const $ = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1892
|
-
$ && (
|
|
1889
|
+
$ && (z.value = new ResizeObserver((k) => {
|
|
1893
1890
|
window.requestAnimationFrame(() => {
|
|
1894
|
-
if (!(!Array.isArray(
|
|
1895
|
-
for (const s of
|
|
1891
|
+
if (!(!Array.isArray(k) || !k.length))
|
|
1892
|
+
for (const s of k) {
|
|
1896
1893
|
const u = s.contentRect.height;
|
|
1897
|
-
|
|
1894
|
+
y.value !== u && (y.value = u);
|
|
1898
1895
|
}
|
|
1899
1896
|
});
|
|
1900
|
-
}),
|
|
1901
|
-
}),
|
|
1902
|
-
|
|
1903
|
-
}), ($,
|
|
1897
|
+
}), z.value.observe($)), window.addEventListener("resize", K);
|
|
1898
|
+
}), Vt(() => {
|
|
1899
|
+
z.value && z.value.disconnect(), window.removeEventListener("resize", K);
|
|
1900
|
+
}), ($, Z) => (h(), g("div", {
|
|
1904
1901
|
class: ne(["kong-ui-app-layout", [
|
|
1905
1902
|
{ "navbar-hidden": v.hidden },
|
|
1906
1903
|
{ "sidebar-hidden": p.hidden }
|
|
1907
1904
|
]])
|
|
1908
1905
|
}, [
|
|
1909
|
-
|
|
1910
|
-
|
|
1906
|
+
T("div", Ti, [
|
|
1907
|
+
O($.$slots, "notification", {}, void 0, !0)
|
|
1911
1908
|
]),
|
|
1912
|
-
v.hidden ?
|
|
1909
|
+
v.hidden ? C("", !0) : (h(), W(cr, {
|
|
1913
1910
|
key: String(p.hidden),
|
|
1914
1911
|
"left-offset": p.hidden ? 0 : void 0,
|
|
1915
|
-
"top-offset":
|
|
1912
|
+
"top-offset": y.value
|
|
1916
1913
|
}, Ze({
|
|
1917
|
-
"mobile-sidebar-toggle":
|
|
1918
|
-
p.hidden ?
|
|
1914
|
+
"mobile-sidebar-toggle": D(() => [
|
|
1915
|
+
p.hidden ? C("", !0) : (h(), W(wi, {
|
|
1919
1916
|
key: 0,
|
|
1920
|
-
active:
|
|
1917
|
+
active: F.value,
|
|
1921
1918
|
onToggle: N
|
|
1922
1919
|
}, null, 8, ["active"]))
|
|
1923
1920
|
]),
|
|
@@ -1925,111 +1922,111 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1925
1922
|
}, [
|
|
1926
1923
|
d.navbarMobileLogo ? {
|
|
1927
1924
|
name: "mobile-logo",
|
|
1928
|
-
fn:
|
|
1929
|
-
|
|
1930
|
-
|
|
1925
|
+
fn: D(() => [
|
|
1926
|
+
T("div", ki, [
|
|
1927
|
+
O($.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1931
1928
|
])
|
|
1932
1929
|
]),
|
|
1933
1930
|
key: "0"
|
|
1934
1931
|
} : void 0,
|
|
1935
1932
|
d.navbarLogo ? {
|
|
1936
1933
|
name: "logo",
|
|
1937
|
-
fn:
|
|
1938
|
-
p.hidden ? (h(), g("div",
|
|
1939
|
-
|
|
1940
|
-
])) :
|
|
1934
|
+
fn: D(() => [
|
|
1935
|
+
p.hidden ? (h(), g("div", Si, [
|
|
1936
|
+
O($.$slots, "navbar-logo", {}, void 0, !0)
|
|
1937
|
+
])) : C("", !0)
|
|
1941
1938
|
]),
|
|
1942
1939
|
key: "1"
|
|
1943
1940
|
} : void 0,
|
|
1944
1941
|
d.navbarLeft ? {
|
|
1945
1942
|
name: "left",
|
|
1946
|
-
fn:
|
|
1947
|
-
|
|
1943
|
+
fn: D(() => [
|
|
1944
|
+
O($.$slots, "navbar-left", {}, void 0, !0)
|
|
1948
1945
|
]),
|
|
1949
1946
|
key: "2"
|
|
1950
1947
|
} : void 0,
|
|
1951
1948
|
d.navbarCenter ? {
|
|
1952
1949
|
name: "center",
|
|
1953
|
-
fn:
|
|
1954
|
-
|
|
1950
|
+
fn: D(() => [
|
|
1951
|
+
O($.$slots, "navbar-center", {}, void 0, !0)
|
|
1955
1952
|
]),
|
|
1956
1953
|
key: "3"
|
|
1957
1954
|
} : void 0,
|
|
1958
1955
|
d.navbarRight ? {
|
|
1959
1956
|
name: "right",
|
|
1960
|
-
fn:
|
|
1961
|
-
|
|
1957
|
+
fn: D(() => [
|
|
1958
|
+
O($.$slots, "navbar-right", {}, void 0, !0)
|
|
1962
1959
|
]),
|
|
1963
1960
|
key: "4"
|
|
1964
1961
|
} : void 0
|
|
1965
1962
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1966
|
-
p.hidden ?
|
|
1963
|
+
p.hidden ? C("", !0) : (h(), W(vi, {
|
|
1967
1964
|
key: 1,
|
|
1968
1965
|
"bottom-items": p.bottomItems,
|
|
1969
|
-
"header-height":
|
|
1966
|
+
"header-height": M.value,
|
|
1970
1967
|
"mobile-enabled": "",
|
|
1971
1968
|
"mobile-header-visible": !1,
|
|
1972
|
-
"mobile-top-offset":
|
|
1973
|
-
open:
|
|
1969
|
+
"mobile-top-offset": P.value,
|
|
1970
|
+
open: F.value,
|
|
1974
1971
|
"top-items": p.topItems,
|
|
1975
|
-
"top-offset":
|
|
1976
|
-
onClick:
|
|
1972
|
+
"top-offset": y.value,
|
|
1973
|
+
onClick: S,
|
|
1977
1974
|
onToggle: N
|
|
1978
1975
|
}, Ze({ _: 2 }, [
|
|
1979
1976
|
d.sidebarHeader ? {
|
|
1980
1977
|
name: "header",
|
|
1981
|
-
fn:
|
|
1982
|
-
|
|
1978
|
+
fn: D(() => [
|
|
1979
|
+
O($.$slots, "sidebar-header", {}, void 0, !0)
|
|
1983
1980
|
]),
|
|
1984
1981
|
key: "0"
|
|
1985
1982
|
} : void 0,
|
|
1986
1983
|
d.sidebarTop ? {
|
|
1987
1984
|
name: "top",
|
|
1988
|
-
fn:
|
|
1989
|
-
|
|
1985
|
+
fn: D(() => [
|
|
1986
|
+
O($.$slots, "sidebar-top", {}, void 0, !0)
|
|
1990
1987
|
]),
|
|
1991
1988
|
key: "1"
|
|
1992
1989
|
} : void 0,
|
|
1993
1990
|
d.sidebarFooter ? {
|
|
1994
1991
|
name: "footer",
|
|
1995
|
-
fn:
|
|
1996
|
-
|
|
1992
|
+
fn: D(() => [
|
|
1993
|
+
O($.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1997
1994
|
]),
|
|
1998
1995
|
key: "2"
|
|
1999
1996
|
} : void 0
|
|
2000
1997
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
o.value ?
|
|
1998
|
+
T("main", Ii, [
|
|
1999
|
+
T("div", Oi, [
|
|
2000
|
+
T("div", Ci, [
|
|
2001
|
+
$i,
|
|
2002
|
+
O($.$slots, "app-error", {}, void 0, !0),
|
|
2003
|
+
o.value ? C("", !0) : O($.$slots, "default", { key: 0 }, void 0, !0)
|
|
2007
2004
|
])
|
|
2008
2005
|
])
|
|
2009
2006
|
])
|
|
2010
2007
|
], 2));
|
|
2011
2008
|
}
|
|
2012
|
-
}),
|
|
2009
|
+
}), Ei = /* @__PURE__ */ te(Ni, [["__scopeId", "data-v-7129ca7f"]]), Ai = (a) => (Ge("data-v-d7e33427"), a = a(), We(), a), Fi = { class: "kong-ui-app-page-header" }, xi = {
|
|
2013
2010
|
key: 0,
|
|
2014
2011
|
class: "page-header-breadcrumbs",
|
|
2015
2012
|
"data-testid": "page-header-breadcrumbs"
|
|
2016
|
-
},
|
|
2013
|
+
}, Di = /* @__PURE__ */ Ai(() => /* @__PURE__ */ T("span", { class: "page-header-breadcrumb-divider" }, "/", -1)), Ri = { class: "page-header-title-section" }, Bi = { class: "page-header-title-wrapper" }, Li = {
|
|
2017
2014
|
key: 0,
|
|
2018
2015
|
class: "page-header-title-before",
|
|
2019
2016
|
"data-testid": "page-header-title-before"
|
|
2020
|
-
},
|
|
2017
|
+
}, Mi = ["title"], Pi = {
|
|
2021
2018
|
key: 1,
|
|
2022
2019
|
class: "page-header-title-after",
|
|
2023
2020
|
"data-testid": "page-header-title-after"
|
|
2024
|
-
},
|
|
2021
|
+
}, Zi = {
|
|
2025
2022
|
key: 0,
|
|
2026
2023
|
class: "page-header-actions",
|
|
2027
2024
|
"data-testid": "page-header-actions"
|
|
2028
|
-
},
|
|
2025
|
+
}, ji = {
|
|
2029
2026
|
key: 1,
|
|
2030
2027
|
class: "page-header-section-below",
|
|
2031
2028
|
"data-testid": "page-header-section-below"
|
|
2032
|
-
}, Ki = /* @__PURE__ */
|
|
2029
|
+
}, Ki = /* @__PURE__ */ ee({
|
|
2033
2030
|
__name: "AppPageHeader",
|
|
2034
2031
|
props: {
|
|
2035
2032
|
title: {
|
|
@@ -2042,67 +2039,67 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
2042
2039
|
}
|
|
2043
2040
|
},
|
|
2044
2041
|
setup(a) {
|
|
2045
|
-
const t = a, r =
|
|
2042
|
+
const t = a, r = w(() => {
|
|
2046
2043
|
var d;
|
|
2047
2044
|
return !!((d = t.breadcrumbs) != null && d.length);
|
|
2048
|
-
}), n = (d, o) => d.key || `breadcrumb-${o}`, l =
|
|
2045
|
+
}), n = (d, o) => d.key || `breadcrumb-${o}`, l = w(() => t.breadcrumbs.map((d, o) => `icon-${n(d, o)}`) || []);
|
|
2049
2046
|
return (d, o) => {
|
|
2050
|
-
const v =
|
|
2051
|
-
return h(), g("div",
|
|
2052
|
-
r.value ? (h(), g("div",
|
|
2053
|
-
|
|
2054
|
-
divider:
|
|
2055
|
-
|
|
2047
|
+
const v = be("KBreadcrumbs");
|
|
2048
|
+
return h(), g("div", Fi, [
|
|
2049
|
+
r.value ? (h(), g("div", xi, [
|
|
2050
|
+
Ee(v, { items: a.breadcrumbs }, Ze({
|
|
2051
|
+
divider: D(() => [
|
|
2052
|
+
Di
|
|
2056
2053
|
]),
|
|
2057
2054
|
_: 2
|
|
2058
2055
|
}, [
|
|
2059
|
-
|
|
2056
|
+
Ne(l.value, (p) => ({
|
|
2060
2057
|
name: p,
|
|
2061
|
-
fn:
|
|
2062
|
-
|
|
2058
|
+
fn: D(() => [
|
|
2059
|
+
O(d.$slots, p, {}, void 0, !0)
|
|
2063
2060
|
])
|
|
2064
2061
|
}))
|
|
2065
2062
|
]), 1032, ["items"])
|
|
2066
|
-
])) :
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
d.$slots["title-before"] ? (h(), g("div",
|
|
2070
|
-
|
|
2071
|
-
])) :
|
|
2072
|
-
|
|
2063
|
+
])) : C("", !0),
|
|
2064
|
+
T("div", Ri, [
|
|
2065
|
+
T("div", Bi, [
|
|
2066
|
+
d.$slots["title-before"] ? (h(), g("div", Li, [
|
|
2067
|
+
O(d.$slots, "title-before", {}, void 0, !0)
|
|
2068
|
+
])) : C("", !0),
|
|
2069
|
+
T("h1", {
|
|
2073
2070
|
class: "page-header-title",
|
|
2074
2071
|
"data-testid": "page-header-title",
|
|
2075
2072
|
title: a.title
|
|
2076
|
-
}, Y(a.title), 9,
|
|
2077
|
-
d.$slots["title-after"] ? (h(), g("div",
|
|
2078
|
-
|
|
2079
|
-
])) :
|
|
2073
|
+
}, Y(a.title), 9, Mi),
|
|
2074
|
+
d.$slots["title-after"] ? (h(), g("div", Pi, [
|
|
2075
|
+
O(d.$slots, "title-after", {}, void 0, !0)
|
|
2076
|
+
])) : C("", !0)
|
|
2080
2077
|
]),
|
|
2081
|
-
d.$slots.actions ? (h(), g("div",
|
|
2082
|
-
|
|
2083
|
-
])) :
|
|
2078
|
+
d.$slots.actions ? (h(), g("div", Zi, [
|
|
2079
|
+
O(d.$slots, "actions", {}, void 0, !0)
|
|
2080
|
+
])) : C("", !0)
|
|
2084
2081
|
]),
|
|
2085
|
-
d.$slots.below ? (h(), g("div",
|
|
2086
|
-
|
|
2087
|
-
])) :
|
|
2082
|
+
d.$slots.below ? (h(), g("div", ji, [
|
|
2083
|
+
O(d.$slots, "below", {}, void 0, !0)
|
|
2084
|
+
])) : C("", !0)
|
|
2088
2085
|
]);
|
|
2089
2086
|
};
|
|
2090
2087
|
}
|
|
2091
|
-
}),
|
|
2088
|
+
}), Gi = /* @__PURE__ */ te(Ki, [["__scopeId", "data-v-d7e33427"]]), Wi = {
|
|
2092
2089
|
// Customize Vue plugin options as desired
|
|
2093
2090
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2094
2091
|
install: (a, t = {}) => {
|
|
2095
|
-
a.component(t.name || "AppLayout",
|
|
2092
|
+
a.component(t.name || "AppLayout", Ei);
|
|
2096
2093
|
}
|
|
2097
2094
|
};
|
|
2098
2095
|
export {
|
|
2099
|
-
|
|
2100
|
-
|
|
2096
|
+
Ui as AccountDropdown,
|
|
2097
|
+
zi as AppAboutSection,
|
|
2101
2098
|
Vi as AppError,
|
|
2102
|
-
|
|
2099
|
+
Ei as AppLayout,
|
|
2103
2100
|
cr as AppNavbar,
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2101
|
+
Gi as AppPageHeader,
|
|
2102
|
+
vi as AppSidebar,
|
|
2103
|
+
wi as SidebarToggle,
|
|
2104
|
+
Wi as default
|
|
2108
2105
|
};
|