@kong-ui-public/app-layout 0.22.2 → 0.22.3-pr.653.936233.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-layout.es.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ae, resolveComponent as ye, openBlock as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as ae, resolveComponent as ye, openBlock as h, createBlock as Q, withCtx as Z, renderSlot as A, createElementBlock as O, Fragment as Oe, renderList as Ne, normalizeClass as ie, createTextVNode as st, toDisplayString as _e, createStaticVNode as hn, createElementVNode as T, createVNode as ze, pushScopeId as Ve, popScopeId as Ge, useCssVars as ut, useSlots as dt, computed as g, reactive as Le, onMounted as Ue, createCommentVNode as x, resolveDynamicComponent as mn, withKeys as gn, ref as q, watch as Pe, onUnmounted as yn, Comment as _n, cloneVNode as wn, onBeforeUnmount as Kt, unref as Tn, nextTick as Sn, withModifiers as kn, watchEffect as In, toRef as On, createSlots as ct, useAttrs as Cn, mergeProps as Nn } from "vue";
|
|
2
|
+
import { useRoute as $n } from "vue-router";
|
|
3
|
+
const An = /* @__PURE__ */ ae({
|
|
3
4
|
__name: "AccountDropdown",
|
|
4
5
|
props: {
|
|
5
6
|
options: {
|
|
@@ -20,24 +21,24 @@ const Cn = /* @__PURE__ */ ae({
|
|
|
20
21
|
setup(n) {
|
|
21
22
|
return (t, a) => {
|
|
22
23
|
const r = ye("KDropdownItem"), l = ye("KDropdownMenu");
|
|
23
|
-
return
|
|
24
|
+
return h(), Q(l, {
|
|
24
25
|
class: "account-dropdown",
|
|
25
26
|
"kpop-attributes": { placement: "bottomStart" },
|
|
26
27
|
label: n.userInitials,
|
|
27
28
|
size: "small",
|
|
28
29
|
width: n.width
|
|
29
30
|
}, {
|
|
30
|
-
items: Z(({ handleSelection:
|
|
31
|
-
|
|
32
|
-
(
|
|
31
|
+
items: Z(({ handleSelection: f }) => [
|
|
32
|
+
A(t.$slots, "default", {}, () => [
|
|
33
|
+
(h(!0), O(Oe, null, Ne(n.options, (o) => (h(), Q(r, {
|
|
33
34
|
key: o.value,
|
|
34
35
|
class: ie({ "has-divider": o.hasDivider }),
|
|
35
36
|
"data-testid": "select-" + o.value,
|
|
36
37
|
"has-divider": o.hasDivider,
|
|
37
|
-
onClick: (v) =>
|
|
38
|
+
onClick: (v) => f(o)
|
|
38
39
|
}, {
|
|
39
40
|
default: Z(() => [
|
|
40
|
-
|
|
41
|
+
A(t.$slots, "default", { option: o }, () => [
|
|
41
42
|
st(_e(o.label), 1)
|
|
42
43
|
], !0)
|
|
43
44
|
]),
|
|
@@ -55,41 +56,41 @@ const ne = (n, t) => {
|
|
|
55
56
|
for (const [r, l] of t)
|
|
56
57
|
a[r] = l;
|
|
57
58
|
return a;
|
|
58
|
-
},
|
|
59
|
+
}, $i = /* @__PURE__ */ ne(An, [["__scopeId", "data-v-bcfd5686"]]), En = {}, Fn = {
|
|
59
60
|
fill: "none",
|
|
60
61
|
height: "130",
|
|
61
62
|
width: "130",
|
|
62
63
|
xmlns: "http://www.w3.org/2000/svg"
|
|
63
|
-
},
|
|
64
|
-
|
|
64
|
+
}, xn = /* @__PURE__ */ hn('<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), Dn = [
|
|
65
|
+
xn
|
|
65
66
|
];
|
|
66
|
-
function
|
|
67
|
-
return
|
|
67
|
+
function Bn(n, t) {
|
|
68
|
+
return h(), O("svg", Fn, Dn);
|
|
68
69
|
}
|
|
69
|
-
const
|
|
70
|
+
const Rn = /* @__PURE__ */ ne(En, [["render", Bn]]), zt = (n) => (Ve("data-v-5cbccc66"), n = n(), Ge(), n), Ln = { class: "kong-ui-app-error" }, Pn = { class: "banana-icon" }, Mn = { class: "kong-ui-app-error-content" }, Zn = /* @__PURE__ */ zt(() => /* @__PURE__ */ T("h2", null, "An unexpected error has occurred", -1)), jn = /* @__PURE__ */ zt(() => /* @__PURE__ */ T("p", null, [
|
|
70
71
|
/* @__PURE__ */ st("Go back to the previous page or "),
|
|
71
72
|
/* @__PURE__ */ T("a", { href: "/" }, "return home"),
|
|
72
73
|
/* @__PURE__ */ st(".")
|
|
73
|
-
], -1)),
|
|
74
|
+
], -1)), Hn = /* @__PURE__ */ ae({
|
|
74
75
|
__name: "AppError",
|
|
75
76
|
setup(n) {
|
|
76
|
-
return (t, a) => (
|
|
77
|
-
T("div",
|
|
78
|
-
ze(
|
|
77
|
+
return (t, a) => (h(), O("section", Ln, [
|
|
78
|
+
T("div", Pn, [
|
|
79
|
+
ze(Rn)
|
|
79
80
|
]),
|
|
80
|
-
T("div",
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
T("div", Mn, [
|
|
82
|
+
A(t.$slots, "default", {}, () => [
|
|
83
|
+
Zn,
|
|
84
|
+
jn
|
|
84
85
|
], !0)
|
|
85
86
|
])
|
|
86
87
|
]));
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
const
|
|
90
|
+
const Ai = /* @__PURE__ */ ne(Hn, [["__scopeId", "data-v-5cbccc66"]]), Kn = { class: "kong-ui-app-navbar" }, zn = { class: "header-content" }, Vn = { class: "mobile-header-left" }, Gn = {
|
|
90
91
|
key: 0,
|
|
91
92
|
class: "app-navbar-logo"
|
|
92
|
-
},
|
|
93
|
+
}, Un = { class: "navbar-content" }, Wn = { class: "navbar-content-left" }, qn = { class: "navbar-content-center" }, Yn = { class: "navbar-content-right" }, Xn = /* @__PURE__ */ ae({
|
|
93
94
|
__name: "AppNavbar",
|
|
94
95
|
props: {
|
|
95
96
|
topOffset: {
|
|
@@ -109,9 +110,9 @@ const Ci = /* @__PURE__ */ ne(Mn, [["__scopeId", "data-v-5cbccc66"]]), Zn = { cl
|
|
|
109
110
|
setup(n) {
|
|
110
111
|
const t = n;
|
|
111
112
|
ut((o) => ({
|
|
112
|
-
"499e8aa4":
|
|
113
|
-
"73d2507f":
|
|
114
|
-
ea3a5c64:
|
|
113
|
+
"499e8aa4": f.value.top,
|
|
114
|
+
"73d2507f": f.value.zIndex,
|
|
115
|
+
ea3a5c64: f.value.left,
|
|
115
116
|
"892c48d4": l.marginRight,
|
|
116
117
|
"62e3e64e": l.width
|
|
117
118
|
}));
|
|
@@ -123,36 +124,36 @@ const Ci = /* @__PURE__ */ ne(Mn, [["__scopeId", "data-v-5cbccc66"]]), Zn = { cl
|
|
|
123
124
|
var o, v;
|
|
124
125
|
(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");
|
|
125
126
|
});
|
|
126
|
-
const
|
|
127
|
+
const f = g(() => ({
|
|
127
128
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
128
129
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
129
130
|
zIndex: t.zIndex
|
|
130
131
|
}));
|
|
131
|
-
return (o, v) => (
|
|
132
|
-
T("div",
|
|
133
|
-
T("div",
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
return (o, v) => (h(), O("header", Kn, [
|
|
133
|
+
T("div", zn, [
|
|
134
|
+
T("div", Vn, [
|
|
135
|
+
A(o.$slots, "mobile-sidebar-toggle"),
|
|
136
|
+
A(o.$slots, "mobile-logo")
|
|
136
137
|
]),
|
|
137
|
-
r.value ? (
|
|
138
|
-
|
|
138
|
+
r.value ? (h(), O("div", Gn, [
|
|
139
|
+
A(o.$slots, "logo")
|
|
139
140
|
])) : x("", !0),
|
|
140
|
-
T("div",
|
|
141
|
-
T("div",
|
|
142
|
-
|
|
141
|
+
T("div", Un, [
|
|
142
|
+
T("div", Wn, [
|
|
143
|
+
A(o.$slots, "left")
|
|
143
144
|
]),
|
|
144
|
-
T("div",
|
|
145
|
-
|
|
145
|
+
T("div", qn, [
|
|
146
|
+
A(o.$slots, "center")
|
|
146
147
|
]),
|
|
147
|
-
T("div",
|
|
148
|
-
|
|
148
|
+
T("div", Yn, [
|
|
149
|
+
A(o.$slots, "right")
|
|
149
150
|
])
|
|
150
151
|
])
|
|
151
152
|
])
|
|
152
153
|
]));
|
|
153
154
|
}
|
|
154
155
|
});
|
|
155
|
-
const
|
|
156
|
+
const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-7a2a459a"]]), Qn = ["title"], it = 99, er = /* @__PURE__ */ ae({
|
|
156
157
|
__name: "ItemBadge",
|
|
157
158
|
props: {
|
|
158
159
|
count: {
|
|
@@ -163,20 +164,20 @@ const qn = /* @__PURE__ */ ne(Wn, [["__scopeId", "data-v-7a2a459a"]]), Yn = ["ti
|
|
|
163
164
|
},
|
|
164
165
|
setup(n) {
|
|
165
166
|
const t = n, a = g(() => t.count ? t.count > it ? `${it}+` : t.count.toString() : "");
|
|
166
|
-
return (r, l) => a.value ? (
|
|
167
|
+
return (r, l) => a.value ? (h(), O("div", {
|
|
167
168
|
key: 0,
|
|
168
169
|
class: "item-badge",
|
|
169
170
|
title: (n.count || 0) > it ? String(n.count) : void 0
|
|
170
|
-
}, _e(a.value), 9,
|
|
171
|
+
}, _e(a.value), 9, Qn)) : x("", !0);
|
|
171
172
|
}
|
|
172
173
|
});
|
|
173
|
-
const
|
|
174
|
+
const tr = /* @__PURE__ */ ne(er, [["__scopeId", "data-v-912b1a1b"]]), ar = ["data-testid"], nr = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], rr = {
|
|
174
175
|
key: 0,
|
|
175
176
|
class: "sidebar-item-icon"
|
|
176
|
-
},
|
|
177
|
+
}, ir = { class: "sidebar-item-name-container" }, or = { class: "sidebar-item-name has-tooltip" }, sr = {
|
|
177
178
|
key: 2,
|
|
178
179
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
179
|
-
},
|
|
180
|
+
}, cr = ["id"], lr = /* @__PURE__ */ ae({
|
|
180
181
|
__name: "SidebarItem",
|
|
181
182
|
props: {
|
|
182
183
|
item: {
|
|
@@ -190,48 +191,48 @@ const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-912b1a1b"]]), Qn = ["da
|
|
|
190
191
|
},
|
|
191
192
|
emits: ["click"],
|
|
192
193
|
setup(n, { emit: t }) {
|
|
193
|
-
const a = n, r = g(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = g(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))),
|
|
194
|
-
t("click",
|
|
195
|
-
}, v = (
|
|
196
|
-
o(
|
|
194
|
+
const a = n, r = g(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = g(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), f = g(() => a.subnavItem && a.item.badgeCount !== void 0), o = (p) => {
|
|
195
|
+
t("click", p);
|
|
196
|
+
}, v = (p, m, C) => {
|
|
197
|
+
o(m), typeof C == "function" && (p.preventDefault(), C());
|
|
197
198
|
};
|
|
198
|
-
return (
|
|
199
|
-
var
|
|
200
|
-
const
|
|
201
|
-
return
|
|
199
|
+
return (p, m) => {
|
|
200
|
+
var k;
|
|
201
|
+
const C = ye("KIcon"), I = ye("KTooltip"), D = ye("SidebarItem", !0);
|
|
202
|
+
return h(), O("li", {
|
|
202
203
|
class: ie([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
203
204
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
204
205
|
}, [
|
|
205
|
-
(
|
|
206
|
+
(h(), Q(mn(r.value ? "div" : "router-link"), {
|
|
206
207
|
custom: r.value ? void 0 : !0,
|
|
207
208
|
to: !r.value && !l.value ? n.item.to : void 0
|
|
208
209
|
}, {
|
|
209
|
-
default: Z((
|
|
210
|
+
default: Z((N) => {
|
|
210
211
|
var V, j;
|
|
211
212
|
return [
|
|
212
213
|
T("a", {
|
|
213
214
|
"aria-controls": (V = n.item.items) != null && V.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
214
215
|
"aria-expanded": (j = n.item.items) != null && j.length && n.item.expanded ? !0 : void 0,
|
|
215
216
|
class: ie(["sidebar-item-link", { "sidebar-item-external-link": l.value, "router-link": !r.value }]),
|
|
216
|
-
href: r.value ? String(n.item.to || "#") :
|
|
217
|
+
href: r.value ? String(n.item.to || "#") : N == null ? void 0 : N.href,
|
|
217
218
|
target: l.value ? "_blank" : void 0,
|
|
218
|
-
onClick: (M) => v(M, n.item,
|
|
219
|
-
onKeypress: gn((M) => v(M, n.item,
|
|
219
|
+
onClick: (M) => v(M, n.item, N == null ? void 0 : N.navigate),
|
|
220
|
+
onKeypress: gn((M) => v(M, n.item, N == null ? void 0 : N.navigate), ["enter"])
|
|
220
221
|
}, [
|
|
221
222
|
T("div", {
|
|
222
|
-
class: ie(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge":
|
|
223
|
+
class: ie(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": f.value }])
|
|
223
224
|
}, [
|
|
224
|
-
n.item.icon ? (
|
|
225
|
-
ze(
|
|
225
|
+
n.item.icon ? (h(), O("div", rr, [
|
|
226
|
+
ze(C, {
|
|
226
227
|
icon: String(n.item.icon),
|
|
227
228
|
size: "20"
|
|
228
229
|
}, null, 8, ["icon"])
|
|
229
230
|
])) : x("", !0),
|
|
230
|
-
T("div",
|
|
231
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
231
|
+
T("div", ir, [
|
|
232
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (h(), O("div", {
|
|
232
233
|
key: 0,
|
|
233
234
|
class: ie(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
234
|
-
}, _e(n.item.name), 3)) : (
|
|
235
|
+
}, _e(n.item.name), 3)) : (h(), Q(I, {
|
|
235
236
|
key: 1,
|
|
236
237
|
class: "sidebar-item-tooltip",
|
|
237
238
|
label: n.item.name,
|
|
@@ -239,43 +240,43 @@ const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-912b1a1b"]]), Qn = ["da
|
|
|
239
240
|
"position-fixed": ""
|
|
240
241
|
}, {
|
|
241
242
|
default: Z(() => [
|
|
242
|
-
T("div",
|
|
243
|
+
T("div", or, [
|
|
243
244
|
T("span", {
|
|
244
|
-
class: ie(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width":
|
|
245
|
+
class: ie(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": f.value }]])
|
|
245
246
|
}, _e(n.item.name), 3)
|
|
246
247
|
])
|
|
247
248
|
]),
|
|
248
249
|
_: 1
|
|
249
250
|
}, 8, ["label"])),
|
|
250
|
-
n.item.label && n.item.expanded ? (
|
|
251
|
+
n.item.label && n.item.expanded ? (h(), O("div", sr, _e(n.item.label), 1)) : x("", !0)
|
|
251
252
|
]),
|
|
252
|
-
|
|
253
|
+
f.value ? (h(), Q(tr, {
|
|
253
254
|
key: 1,
|
|
254
255
|
count: n.item.badgeCount
|
|
255
256
|
}, null, 8, ["count"])) : x("", !0)
|
|
256
257
|
], 2)
|
|
257
|
-
], 42,
|
|
258
|
+
], 42, nr)
|
|
258
259
|
];
|
|
259
260
|
}),
|
|
260
261
|
_: 1
|
|
261
262
|
}, 8, ["custom", "to"])),
|
|
262
|
-
(
|
|
263
|
+
(k = n.item.items) != null && k.length && n.item.expanded ? (h(), O("ul", {
|
|
263
264
|
key: 0,
|
|
264
265
|
id: `subnav-${n.item.key}`,
|
|
265
266
|
class: "level-secondary"
|
|
266
267
|
}, [
|
|
267
|
-
(
|
|
268
|
-
key:
|
|
269
|
-
item:
|
|
268
|
+
(h(!0), O(Oe, null, Ne(n.item.items, (N) => (h(), Q(D, {
|
|
269
|
+
key: N.name,
|
|
270
|
+
item: N,
|
|
270
271
|
"subnav-item": !0,
|
|
271
|
-
onClick: (V) => o(
|
|
272
|
+
onClick: (V) => o(N)
|
|
272
273
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
273
|
-
], 8,
|
|
274
|
-
], 10,
|
|
274
|
+
], 8, cr)) : x("", !0)
|
|
275
|
+
], 10, ar);
|
|
275
276
|
};
|
|
276
277
|
}
|
|
277
278
|
});
|
|
278
|
-
const Rt = /* @__PURE__ */ ne(
|
|
279
|
+
const Rt = /* @__PURE__ */ ne(lr, [["__scopeId", "data-v-fc7bf64e"]]);
|
|
279
280
|
/*!
|
|
280
281
|
* tabbable 6.2.0
|
|
281
282
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -289,9 +290,9 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
289
290
|
}, je = function n(t, a) {
|
|
290
291
|
var r;
|
|
291
292
|
a === void 0 && (a = !0);
|
|
292
|
-
var l = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"),
|
|
293
|
+
var l = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), f = l === "" || l === "true", o = f || a && t && n(t.parentNode);
|
|
293
294
|
return o;
|
|
294
|
-
},
|
|
295
|
+
}, ur = function(t) {
|
|
295
296
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
296
297
|
return r === "" || r === "true";
|
|
297
298
|
}, Ut = function(t, a, r) {
|
|
@@ -300,28 +301,28 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
300
301
|
var l = Array.prototype.slice.apply(t.querySelectorAll(Me));
|
|
301
302
|
return a && fe.call(t, Me) && l.unshift(t), l = l.filter(r), l;
|
|
302
303
|
}, Wt = function n(t, a, r) {
|
|
303
|
-
for (var l = [],
|
|
304
|
-
var o =
|
|
304
|
+
for (var l = [], f = Array.from(t); f.length; ) {
|
|
305
|
+
var o = f.shift();
|
|
305
306
|
if (!je(o, !1))
|
|
306
307
|
if (o.tagName === "SLOT") {
|
|
307
|
-
var v = o.assignedElements(),
|
|
308
|
-
r.flatten ? l.push.apply(l,
|
|
308
|
+
var v = o.assignedElements(), p = v.length ? v : o.children, m = n(p, !0, r);
|
|
309
|
+
r.flatten ? l.push.apply(l, m) : l.push({
|
|
309
310
|
scopeParent: o,
|
|
310
|
-
candidates:
|
|
311
|
+
candidates: m
|
|
311
312
|
});
|
|
312
313
|
} else {
|
|
313
|
-
var
|
|
314
|
-
|
|
315
|
-
var
|
|
316
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !je(
|
|
317
|
-
if (
|
|
318
|
-
var
|
|
319
|
-
r.flatten ? l.push.apply(l,
|
|
314
|
+
var C = fe.call(o, Me);
|
|
315
|
+
C && r.filter(o) && (a || !t.includes(o)) && l.push(o);
|
|
316
|
+
var I = o.shadowRoot || // check for an undisclosed shadow
|
|
317
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !je(I, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
318
|
+
if (I && D) {
|
|
319
|
+
var k = n(I === !0 ? o.children : I.children, !0, r);
|
|
320
|
+
r.flatten ? l.push.apply(l, k) : l.push({
|
|
320
321
|
scopeParent: o,
|
|
321
|
-
candidates:
|
|
322
|
+
candidates: k
|
|
322
323
|
});
|
|
323
324
|
} else
|
|
324
|
-
|
|
325
|
+
f.unshift.apply(f, o.children);
|
|
325
326
|
}
|
|
326
327
|
}
|
|
327
328
|
return l;
|
|
@@ -330,26 +331,26 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
330
331
|
}, de = function(t) {
|
|
331
332
|
if (!t)
|
|
332
333
|
throw new Error("No node provided");
|
|
333
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
334
|
-
},
|
|
334
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || ur(t)) && !qt(t) ? 0 : t.tabIndex;
|
|
335
|
+
}, dr = function(t, a) {
|
|
335
336
|
var r = de(t);
|
|
336
337
|
return r < 0 && a && !qt(t) ? 0 : r;
|
|
337
|
-
},
|
|
338
|
+
}, fr = function(t, a) {
|
|
338
339
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
339
340
|
}, Yt = function(t) {
|
|
340
341
|
return t.tagName === "INPUT";
|
|
341
|
-
},
|
|
342
|
+
}, vr = function(t) {
|
|
342
343
|
return Yt(t) && t.type === "hidden";
|
|
343
|
-
},
|
|
344
|
+
}, br = function(t) {
|
|
344
345
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
345
346
|
return r.tagName === "SUMMARY";
|
|
346
347
|
});
|
|
347
348
|
return a;
|
|
348
|
-
},
|
|
349
|
+
}, pr = function(t, a) {
|
|
349
350
|
for (var r = 0; r < t.length; r++)
|
|
350
351
|
if (t[r].checked && t[r].form === a)
|
|
351
352
|
return t[r];
|
|
352
|
-
},
|
|
353
|
+
}, hr = function(t) {
|
|
353
354
|
if (!t.name)
|
|
354
355
|
return !0;
|
|
355
356
|
var a = t.form || Ze(t), r = function(v) {
|
|
@@ -363,50 +364,50 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
363
364
|
} catch (o) {
|
|
364
365
|
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;
|
|
365
366
|
}
|
|
366
|
-
var
|
|
367
|
-
return !
|
|
368
|
-
},
|
|
367
|
+
var f = pr(l, t.form);
|
|
368
|
+
return !f || f === t;
|
|
369
|
+
}, mr = function(t) {
|
|
369
370
|
return Yt(t) && t.type === "radio";
|
|
370
|
-
},
|
|
371
|
-
return
|
|
372
|
-
},
|
|
373
|
-
var a, r = t && Ze(t), l = (a = r) === null || a === void 0 ? void 0 : a.host,
|
|
371
|
+
}, gr = function(t) {
|
|
372
|
+
return mr(t) && !hr(t);
|
|
373
|
+
}, yr = function(t) {
|
|
374
|
+
var a, r = t && Ze(t), l = (a = r) === null || a === void 0 ? void 0 : a.host, f = !1;
|
|
374
375
|
if (r && r !== t) {
|
|
375
|
-
var o, v,
|
|
376
|
-
for (
|
|
377
|
-
var
|
|
378
|
-
r = Ze(l), l = (
|
|
376
|
+
var o, v, p;
|
|
377
|
+
for (f = !!((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)); !f && l; ) {
|
|
378
|
+
var m, C, I;
|
|
379
|
+
r = Ze(l), l = (m = r) === null || m === void 0 ? void 0 : m.host, f = !!((C = l) !== null && C !== void 0 && (I = C.ownerDocument) !== null && I !== void 0 && I.contains(l));
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
|
-
return
|
|
382
|
+
return f;
|
|
382
383
|
}, Lt = function(t) {
|
|
383
384
|
var a = t.getBoundingClientRect(), r = a.width, l = a.height;
|
|
384
385
|
return r === 0 && l === 0;
|
|
385
|
-
},
|
|
386
|
+
}, _r = function(t, a) {
|
|
386
387
|
var r = a.displayCheck, l = a.getShadowRoot;
|
|
387
388
|
if (getComputedStyle(t).visibility === "hidden")
|
|
388
389
|
return !0;
|
|
389
|
-
var
|
|
390
|
+
var f = fe.call(t, "details>summary:first-of-type"), o = f ? t.parentElement : t;
|
|
390
391
|
if (fe.call(o, "details:not([open]) *"))
|
|
391
392
|
return !0;
|
|
392
393
|
if (!r || r === "full" || r === "legacy-full") {
|
|
393
394
|
if (typeof l == "function") {
|
|
394
395
|
for (var v = t; t; ) {
|
|
395
|
-
var
|
|
396
|
-
if (
|
|
396
|
+
var p = t.parentElement, m = Ze(t);
|
|
397
|
+
if (p && !p.shadowRoot && l(p) === !0)
|
|
397
398
|
return Lt(t);
|
|
398
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
399
|
+
t.assignedSlot ? t = t.assignedSlot : !p && m !== t.ownerDocument ? t = m.host : t = p;
|
|
399
400
|
}
|
|
400
401
|
t = v;
|
|
401
402
|
}
|
|
402
|
-
if (
|
|
403
|
+
if (yr(t))
|
|
403
404
|
return !t.getClientRects().length;
|
|
404
405
|
if (r !== "legacy-full")
|
|
405
406
|
return !0;
|
|
406
407
|
} else if (r === "non-zero-area")
|
|
407
408
|
return Lt(t);
|
|
408
409
|
return !1;
|
|
409
|
-
},
|
|
410
|
+
}, wr = function(t) {
|
|
410
411
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
411
412
|
for (var a = t.parentElement; a; ) {
|
|
412
413
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
@@ -424,37 +425,37 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
424
425
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
425
426
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
426
427
|
// note related to `candidateSelectors`)
|
|
427
|
-
je(a) ||
|
|
428
|
-
|
|
428
|
+
je(a) || vr(a) || _r(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
429
|
+
br(a) || wr(a));
|
|
429
430
|
}, lt = function(t, a) {
|
|
430
|
-
return !(
|
|
431
|
-
},
|
|
431
|
+
return !(gr(a) || de(a) < 0 || !He(t, a));
|
|
432
|
+
}, Tr = function(t) {
|
|
432
433
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
433
434
|
return !!(isNaN(a) || a >= 0);
|
|
434
|
-
},
|
|
435
|
+
}, Sr = function n(t) {
|
|
435
436
|
var a = [], r = [];
|
|
436
|
-
return t.forEach(function(l,
|
|
437
|
-
var o = !!l.scopeParent, v = o ? l.scopeParent : l,
|
|
438
|
-
|
|
439
|
-
documentOrder:
|
|
440
|
-
tabIndex:
|
|
437
|
+
return t.forEach(function(l, f) {
|
|
438
|
+
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p = dr(v, o), m = o ? n(l.candidates) : v;
|
|
439
|
+
p === 0 ? o ? a.push.apply(a, m) : a.push(v) : r.push({
|
|
440
|
+
documentOrder: f,
|
|
441
|
+
tabIndex: p,
|
|
441
442
|
item: l,
|
|
442
443
|
isScope: o,
|
|
443
|
-
content:
|
|
444
|
+
content: m
|
|
444
445
|
});
|
|
445
|
-
}), r.sort(
|
|
446
|
-
return
|
|
446
|
+
}), r.sort(fr).reduce(function(l, f) {
|
|
447
|
+
return f.isScope ? l.push.apply(l, f.content) : l.push(f.content), l;
|
|
447
448
|
}, []).concat(a);
|
|
448
|
-
},
|
|
449
|
+
}, kr = function(t, a) {
|
|
449
450
|
a = a || {};
|
|
450
451
|
var r;
|
|
451
452
|
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
452
453
|
filter: lt.bind(null, a),
|
|
453
454
|
flatten: !1,
|
|
454
455
|
getShadowRoot: a.getShadowRoot,
|
|
455
|
-
shadowRootFilter:
|
|
456
|
-
}) : r = Ut(t, a.includeContainer, lt.bind(null, a)),
|
|
457
|
-
},
|
|
456
|
+
shadowRootFilter: Tr
|
|
457
|
+
}) : r = Ut(t, a.includeContainer, lt.bind(null, a)), Sr(r);
|
|
458
|
+
}, Ir = function(t, a) {
|
|
458
459
|
a = a || {};
|
|
459
460
|
var r;
|
|
460
461
|
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
@@ -466,10 +467,10 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
466
467
|
if (a = a || {}, !t)
|
|
467
468
|
throw new Error("No node provided");
|
|
468
469
|
return fe.call(t, Me) === !1 ? !1 : lt(a, t);
|
|
469
|
-
},
|
|
470
|
+
}, Or = /* @__PURE__ */ Vt.concat("iframe").join(","), ot = function(t, a) {
|
|
470
471
|
if (a = a || {}, !t)
|
|
471
472
|
throw new Error("No node provided");
|
|
472
|
-
return fe.call(t,
|
|
473
|
+
return fe.call(t, Or) === !1 ? !1 : He(a, t);
|
|
473
474
|
};
|
|
474
475
|
/*!
|
|
475
476
|
* focus-trap 7.5.2
|
|
@@ -489,22 +490,22 @@ function Mt(n) {
|
|
|
489
490
|
for (var t = 1; t < arguments.length; t++) {
|
|
490
491
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
491
492
|
t % 2 ? Pt(Object(a), !0).forEach(function(r) {
|
|
492
|
-
|
|
493
|
+
Cr(n, r, a[r]);
|
|
493
494
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) : Pt(Object(a)).forEach(function(r) {
|
|
494
495
|
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(a, r));
|
|
495
496
|
});
|
|
496
497
|
}
|
|
497
498
|
return n;
|
|
498
499
|
}
|
|
499
|
-
function
|
|
500
|
-
return t =
|
|
500
|
+
function Cr(n, t, a) {
|
|
501
|
+
return t = $r(t), t in n ? Object.defineProperty(n, t, {
|
|
501
502
|
value: a,
|
|
502
503
|
enumerable: !0,
|
|
503
504
|
configurable: !0,
|
|
504
505
|
writable: !0
|
|
505
506
|
}) : n[t] = a, n;
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
+
function Nr(n, t) {
|
|
508
509
|
if (typeof n != "object" || n === null)
|
|
509
510
|
return n;
|
|
510
511
|
var a = n[Symbol.toPrimitive];
|
|
@@ -516,8 +517,8 @@ function Ir(n, t) {
|
|
|
516
517
|
}
|
|
517
518
|
return (t === "string" ? String : Number)(n);
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
-
var t =
|
|
520
|
+
function $r(n) {
|
|
521
|
+
var t = Nr(n, "string");
|
|
521
522
|
return typeof t == "symbol" ? t : String(t);
|
|
522
523
|
}
|
|
523
524
|
var Zt = {
|
|
@@ -533,22 +534,22 @@ var Zt = {
|
|
|
533
534
|
var r = t.indexOf(a);
|
|
534
535
|
r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
535
536
|
}
|
|
536
|
-
},
|
|
537
|
+
}, Ar = function(t) {
|
|
537
538
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
538
|
-
},
|
|
539
|
+
}, Er = function(t) {
|
|
539
540
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
540
541
|
}, Ce = function(t) {
|
|
541
542
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
542
|
-
},
|
|
543
|
+
}, Fr = function(t) {
|
|
543
544
|
return Ce(t) && !t.shiftKey;
|
|
544
|
-
},
|
|
545
|
+
}, xr = function(t) {
|
|
545
546
|
return Ce(t) && t.shiftKey;
|
|
546
547
|
}, jt = function(t) {
|
|
547
548
|
return setTimeout(t, 0);
|
|
548
549
|
}, Ht = function(t, a) {
|
|
549
550
|
var r = -1;
|
|
550
|
-
return t.every(function(l,
|
|
551
|
-
return a(l) ? (r =
|
|
551
|
+
return t.every(function(l, f) {
|
|
552
|
+
return a(l) ? (r = f, !1) : !0;
|
|
552
553
|
}), r;
|
|
553
554
|
}, Ie = function(t) {
|
|
554
555
|
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
|
|
@@ -556,13 +557,13 @@ var Zt = {
|
|
|
556
557
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
557
558
|
}, Be = function(t) {
|
|
558
559
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
559
|
-
},
|
|
560
|
-
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) ||
|
|
560
|
+
}, Dr = [], Br = function(t, a) {
|
|
561
|
+
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) || Dr, f = Mt({
|
|
561
562
|
returnFocusOnDeactivate: !0,
|
|
562
563
|
escapeDeactivates: !0,
|
|
563
564
|
delayInitialFocus: !0,
|
|
564
|
-
isKeyForward:
|
|
565
|
-
isKeyBackward:
|
|
565
|
+
isKeyForward: Fr,
|
|
566
|
+
isKeyBackward: xr
|
|
566
567
|
}, a), o = {
|
|
567
568
|
// containers given to createFocusTrap()
|
|
568
569
|
// @type {Array<HTMLElement>}
|
|
@@ -599,55 +600,55 @@ var Zt = {
|
|
|
599
600
|
delayInitialFocusTimer: void 0,
|
|
600
601
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
601
602
|
recentNavEvent: void 0
|
|
602
|
-
}, v,
|
|
603
|
-
return s && s[u] !== void 0 ? s[u] : d
|
|
604
|
-
},
|
|
605
|
-
var
|
|
606
|
-
return o.containerGroups.findIndex(function(
|
|
607
|
-
var w =
|
|
603
|
+
}, v, p = function(s, u, d) {
|
|
604
|
+
return s && s[u] !== void 0 ? s[u] : f[d || u];
|
|
605
|
+
}, m = function(s, u) {
|
|
606
|
+
var d = typeof (u == null ? void 0 : u.composedPath) == "function" ? u.composedPath() : void 0;
|
|
607
|
+
return o.containerGroups.findIndex(function(y) {
|
|
608
|
+
var w = y.container, E = y.tabbableNodes;
|
|
608
609
|
return w.contains(s) || // fall back to explicit tabbable search which will take into consideration any
|
|
609
610
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
610
611
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
611
612
|
// look inside web components even if open)
|
|
612
|
-
(
|
|
613
|
-
return
|
|
613
|
+
(d == null ? void 0 : d.includes(w)) || E.find(function(F) {
|
|
614
|
+
return F === s;
|
|
614
615
|
});
|
|
615
616
|
});
|
|
616
|
-
},
|
|
617
|
-
var u =
|
|
617
|
+
}, C = function(s) {
|
|
618
|
+
var u = f[s];
|
|
618
619
|
if (typeof u == "function") {
|
|
619
|
-
for (var
|
|
620
|
-
|
|
621
|
-
u = u.apply(void 0,
|
|
620
|
+
for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
|
|
621
|
+
y[w - 1] = arguments[w];
|
|
622
|
+
u = u.apply(void 0, y);
|
|
622
623
|
}
|
|
623
624
|
if (u === !0 && (u = void 0), !u) {
|
|
624
625
|
if (u === void 0 || u === !1)
|
|
625
626
|
return u;
|
|
626
627
|
throw new Error("`".concat(s, "` was specified but was not a node, or did not return a node"));
|
|
627
628
|
}
|
|
628
|
-
var
|
|
629
|
-
if (typeof u == "string" && (
|
|
629
|
+
var E = u;
|
|
630
|
+
if (typeof u == "string" && (E = r.querySelector(u), !E))
|
|
630
631
|
throw new Error("`".concat(s, "` as selector refers to no known node"));
|
|
631
|
-
return
|
|
632
|
-
},
|
|
633
|
-
var s =
|
|
632
|
+
return E;
|
|
633
|
+
}, I = function() {
|
|
634
|
+
var s = C("initialFocus");
|
|
634
635
|
if (s === !1)
|
|
635
636
|
return !1;
|
|
636
|
-
if (s === void 0 || !ot(s,
|
|
637
|
-
if (
|
|
637
|
+
if (s === void 0 || !ot(s, f.tabbableOptions))
|
|
638
|
+
if (m(r.activeElement) >= 0)
|
|
638
639
|
s = r.activeElement;
|
|
639
640
|
else {
|
|
640
|
-
var u = o.tabbableGroups[0],
|
|
641
|
-
s =
|
|
641
|
+
var u = o.tabbableGroups[0], d = u && u.firstTabbableNode;
|
|
642
|
+
s = d || C("fallbackFocus");
|
|
642
643
|
}
|
|
643
644
|
if (!s)
|
|
644
645
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
645
646
|
return s;
|
|
646
647
|
}, D = function() {
|
|
647
648
|
if (o.containerGroups = o.containers.map(function(s) {
|
|
648
|
-
var u =
|
|
649
|
+
var u = kr(s, f.tabbableOptions), d = Ir(s, f.tabbableOptions), y = u.length > 0 ? u[0] : void 0, w = u.length > 0 ? u[u.length - 1] : void 0, E = d.find(function(B) {
|
|
649
650
|
return ge(B);
|
|
650
|
-
}),
|
|
651
|
+
}), F = d.slice().reverse().find(function(B) {
|
|
651
652
|
return ge(B);
|
|
652
653
|
}), P = !!u.find(function(B) {
|
|
653
654
|
return de(B) > 0;
|
|
@@ -655,11 +656,11 @@ var Zt = {
|
|
|
655
656
|
return {
|
|
656
657
|
container: s,
|
|
657
658
|
tabbableNodes: u,
|
|
658
|
-
focusableNodes:
|
|
659
|
+
focusableNodes: d,
|
|
659
660
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
660
661
|
posTabIndexesFound: P,
|
|
661
662
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
662
|
-
firstTabbableNode:
|
|
663
|
+
firstTabbableNode: y,
|
|
663
664
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
664
665
|
lastTabbableNode: w,
|
|
665
666
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -670,9 +671,9 @@ var Zt = {
|
|
|
670
671
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
671
672
|
// be avoided anyway...
|
|
672
673
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
673
|
-
firstDomTabbableNode:
|
|
674
|
+
firstDomTabbableNode: E,
|
|
674
675
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
675
|
-
lastDomTabbableNode:
|
|
676
|
+
lastDomTabbableNode: F,
|
|
676
677
|
/**
|
|
677
678
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
678
679
|
* in this container, if any.
|
|
@@ -683,70 +684,70 @@ var Zt = {
|
|
|
683
684
|
*/
|
|
684
685
|
nextTabbableNode: function(_) {
|
|
685
686
|
var se = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, te = u.indexOf(_);
|
|
686
|
-
return te < 0 ? se ?
|
|
687
|
+
return te < 0 ? se ? d.slice(d.indexOf(_) + 1).find(function(H) {
|
|
687
688
|
return ge(H);
|
|
688
|
-
}) :
|
|
689
|
+
}) : d.slice(0, d.indexOf(_)).reverse().find(function(H) {
|
|
689
690
|
return ge(H);
|
|
690
691
|
}) : u[te + (se ? 1 : -1)];
|
|
691
692
|
}
|
|
692
693
|
};
|
|
693
694
|
}), o.tabbableGroups = o.containerGroups.filter(function(s) {
|
|
694
695
|
return s.tabbableNodes.length > 0;
|
|
695
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
696
|
+
}), o.tabbableGroups.length <= 0 && !C("fallbackFocus"))
|
|
696
697
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
697
698
|
if (o.containerGroups.find(function(s) {
|
|
698
699
|
return s.posTabIndexesFound;
|
|
699
700
|
}) && o.containerGroups.length > 1)
|
|
700
701
|
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.");
|
|
701
|
-
},
|
|
702
|
+
}, k = function $(s) {
|
|
702
703
|
if (s !== !1 && s !== r.activeElement) {
|
|
703
704
|
if (!s || !s.focus) {
|
|
704
|
-
|
|
705
|
+
$(I());
|
|
705
706
|
return;
|
|
706
707
|
}
|
|
707
708
|
s.focus({
|
|
708
|
-
preventScroll: !!
|
|
709
|
-
}), o.mostRecentlyFocusedNode = s,
|
|
709
|
+
preventScroll: !!f.preventScroll
|
|
710
|
+
}), o.mostRecentlyFocusedNode = s, Ar(s) && s.select();
|
|
710
711
|
}
|
|
711
|
-
},
|
|
712
|
-
var u =
|
|
712
|
+
}, N = function(s) {
|
|
713
|
+
var u = C("setReturnFocus", s);
|
|
713
714
|
return u || (u === !1 ? !1 : s);
|
|
714
715
|
}, V = function(s) {
|
|
715
|
-
var u = s.target,
|
|
716
|
-
u = u || Be(
|
|
717
|
-
var
|
|
716
|
+
var u = s.target, d = s.event, y = s.isBackward, w = y === void 0 ? !1 : y;
|
|
717
|
+
u = u || Be(d), D();
|
|
718
|
+
var E = null;
|
|
718
719
|
if (o.tabbableGroups.length > 0) {
|
|
719
|
-
var
|
|
720
|
-
if (
|
|
721
|
-
w ?
|
|
720
|
+
var F = m(u, d), P = F >= 0 ? o.containerGroups[F] : void 0;
|
|
721
|
+
if (F < 0)
|
|
722
|
+
w ? E = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : E = o.tabbableGroups[0].firstTabbableNode;
|
|
722
723
|
else if (w) {
|
|
723
724
|
var B = Ht(o.tabbableGroups, function(ve) {
|
|
724
725
|
var Te = ve.firstTabbableNode;
|
|
725
726
|
return u === Te;
|
|
726
727
|
});
|
|
727
|
-
if (B < 0 && (P.container === u || ot(u,
|
|
728
|
+
if (B < 0 && (P.container === u || ot(u, f.tabbableOptions) && !ge(u, f.tabbableOptions) && !P.nextTabbableNode(u, !1)) && (B = F), B >= 0) {
|
|
728
729
|
var _ = B === 0 ? o.tabbableGroups.length - 1 : B - 1, se = o.tabbableGroups[_];
|
|
729
|
-
|
|
730
|
+
E = de(u) >= 0 ? se.lastTabbableNode : se.lastDomTabbableNode;
|
|
730
731
|
} else
|
|
731
|
-
Ce(
|
|
732
|
+
Ce(d) || (E = P.nextTabbableNode(u, !1));
|
|
732
733
|
} else {
|
|
733
734
|
var te = Ht(o.tabbableGroups, function(ve) {
|
|
734
735
|
var Te = ve.lastTabbableNode;
|
|
735
736
|
return u === Te;
|
|
736
737
|
});
|
|
737
|
-
if (te < 0 && (P.container === u || ot(u,
|
|
738
|
+
if (te < 0 && (P.container === u || ot(u, f.tabbableOptions) && !ge(u, f.tabbableOptions) && !P.nextTabbableNode(u)) && (te = F), te >= 0) {
|
|
738
739
|
var H = te === o.tabbableGroups.length - 1 ? 0 : te + 1, we = o.tabbableGroups[H];
|
|
739
|
-
|
|
740
|
+
E = de(u) >= 0 ? we.firstTabbableNode : we.firstDomTabbableNode;
|
|
740
741
|
} else
|
|
741
|
-
Ce(
|
|
742
|
+
Ce(d) || (E = P.nextTabbableNode(u));
|
|
742
743
|
}
|
|
743
744
|
} else
|
|
744
|
-
|
|
745
|
-
return
|
|
745
|
+
E = C("fallbackFocus");
|
|
746
|
+
return E;
|
|
746
747
|
}, j = function(s) {
|
|
747
748
|
var u = Be(s);
|
|
748
|
-
if (!(
|
|
749
|
-
if (Ie(
|
|
749
|
+
if (!(m(u, s) >= 0)) {
|
|
750
|
+
if (Ie(f.clickOutsideDeactivates, s)) {
|
|
750
751
|
v.deactivate({
|
|
751
752
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
752
753
|
// which will result in the outside click setting focus to the node
|
|
@@ -754,27 +755,27 @@ var Zt = {
|
|
|
754
755
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
755
756
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
756
757
|
// outside click was on a focusable node or not
|
|
757
|
-
returnFocus:
|
|
758
|
+
returnFocus: f.returnFocusOnDeactivate
|
|
758
759
|
});
|
|
759
760
|
return;
|
|
760
761
|
}
|
|
761
|
-
Ie(
|
|
762
|
+
Ie(f.allowOutsideClick, s) || s.preventDefault();
|
|
762
763
|
}
|
|
763
764
|
}, M = function(s) {
|
|
764
|
-
var u = Be(s),
|
|
765
|
-
if (
|
|
766
|
-
|
|
765
|
+
var u = Be(s), d = m(u, s) >= 0;
|
|
766
|
+
if (d || u instanceof Document)
|
|
767
|
+
d && (o.mostRecentlyFocusedNode = u);
|
|
767
768
|
else {
|
|
768
769
|
s.stopImmediatePropagation();
|
|
769
|
-
var
|
|
770
|
+
var y, w = !0;
|
|
770
771
|
if (o.mostRecentlyFocusedNode)
|
|
771
772
|
if (de(o.mostRecentlyFocusedNode) > 0) {
|
|
772
|
-
var
|
|
773
|
-
if (
|
|
774
|
-
var P =
|
|
773
|
+
var E = m(o.mostRecentlyFocusedNode), F = o.containerGroups[E].tabbableNodes;
|
|
774
|
+
if (F.length > 0) {
|
|
775
|
+
var P = F.findIndex(function(B) {
|
|
775
776
|
return B === o.mostRecentlyFocusedNode;
|
|
776
777
|
});
|
|
777
|
-
P >= 0 && (
|
|
778
|
+
P >= 0 && (f.isKeyForward(o.recentNavEvent) ? P + 1 < F.length && (y = F[P + 1], w = !1) : P - 1 >= 0 && (y = F[P - 1], w = !1));
|
|
778
779
|
}
|
|
779
780
|
} else
|
|
780
781
|
o.containerGroups.some(function(B) {
|
|
@@ -784,42 +785,42 @@ var Zt = {
|
|
|
784
785
|
}) || (w = !1);
|
|
785
786
|
else
|
|
786
787
|
w = !1;
|
|
787
|
-
w && (
|
|
788
|
+
w && (y = V({
|
|
788
789
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
789
790
|
// outside the trap causing the focus escape we're trying to fix)
|
|
790
791
|
target: o.mostRecentlyFocusedNode,
|
|
791
|
-
isBackward:
|
|
792
|
-
})),
|
|
792
|
+
isBackward: f.isKeyBackward(o.recentNavEvent)
|
|
793
|
+
})), k(y || o.mostRecentlyFocusedNode || I());
|
|
793
794
|
}
|
|
794
795
|
o.recentNavEvent = void 0;
|
|
795
796
|
}, ee = function(s) {
|
|
796
797
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
797
798
|
o.recentNavEvent = s;
|
|
798
|
-
var
|
|
799
|
+
var d = V({
|
|
799
800
|
event: s,
|
|
800
801
|
isBackward: u
|
|
801
802
|
});
|
|
802
|
-
|
|
803
|
+
d && (Ce(s) && s.preventDefault(), k(d));
|
|
803
804
|
}, G = function(s) {
|
|
804
|
-
if (
|
|
805
|
+
if (Er(s) && Ie(f.escapeDeactivates, s) !== !1) {
|
|
805
806
|
s.preventDefault(), v.deactivate();
|
|
806
807
|
return;
|
|
807
808
|
}
|
|
808
|
-
(
|
|
809
|
-
},
|
|
809
|
+
(f.isKeyForward(s) || f.isKeyBackward(s)) && ee(s, f.isKeyBackward(s));
|
|
810
|
+
}, S = function(s) {
|
|
810
811
|
var u = Be(s);
|
|
811
|
-
|
|
812
|
+
m(u, s) >= 0 || Ie(f.clickOutsideDeactivates, s) || Ie(f.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
812
813
|
}, L = function() {
|
|
813
814
|
if (o.active)
|
|
814
|
-
return Zt.activateTrap(l, v), o.delayInitialFocusTimer =
|
|
815
|
-
|
|
816
|
-
}) :
|
|
815
|
+
return Zt.activateTrap(l, v), o.delayInitialFocusTimer = f.delayInitialFocus ? jt(function() {
|
|
816
|
+
k(I());
|
|
817
|
+
}) : k(I()), r.addEventListener("focusin", M, !0), r.addEventListener("mousedown", j, {
|
|
817
818
|
capture: !0,
|
|
818
819
|
passive: !1
|
|
819
820
|
}), r.addEventListener("touchstart", j, {
|
|
820
821
|
capture: !0,
|
|
821
822
|
passive: !1
|
|
822
|
-
}), r.addEventListener("click",
|
|
823
|
+
}), r.addEventListener("click", S, {
|
|
823
824
|
capture: !0,
|
|
824
825
|
passive: !1
|
|
825
826
|
}), r.addEventListener("keydown", G, {
|
|
@@ -828,15 +829,15 @@ var Zt = {
|
|
|
828
829
|
}), v;
|
|
829
830
|
}, U = function() {
|
|
830
831
|
if (o.active)
|
|
831
|
-
return r.removeEventListener("focusin", M, !0), r.removeEventListener("mousedown", j, !0), r.removeEventListener("touchstart", j, !0), r.removeEventListener("click",
|
|
832
|
+
return r.removeEventListener("focusin", M, !0), r.removeEventListener("mousedown", j, !0), r.removeEventListener("touchstart", j, !0), r.removeEventListener("click", S, !0), r.removeEventListener("keydown", G, !0), v;
|
|
832
833
|
}, J = function(s) {
|
|
833
|
-
var u = s.some(function(
|
|
834
|
-
var
|
|
835
|
-
return
|
|
834
|
+
var u = s.some(function(d) {
|
|
835
|
+
var y = Array.from(d.removedNodes);
|
|
836
|
+
return y.some(function(w) {
|
|
836
837
|
return w === o.mostRecentlyFocusedNode;
|
|
837
838
|
});
|
|
838
839
|
});
|
|
839
|
-
u &&
|
|
840
|
+
u && k(I());
|
|
840
841
|
}, Y = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(J) : void 0, W = function() {
|
|
841
842
|
Y && (Y.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
842
843
|
Y.observe(s, {
|
|
@@ -855,47 +856,47 @@ var Zt = {
|
|
|
855
856
|
activate: function(s) {
|
|
856
857
|
if (o.active)
|
|
857
858
|
return this;
|
|
858
|
-
var u =
|
|
859
|
-
|
|
859
|
+
var u = p(s, "onActivate"), d = p(s, "onPostActivate"), y = p(s, "checkCanFocusTrap");
|
|
860
|
+
y || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, u == null || u();
|
|
860
861
|
var w = function() {
|
|
861
|
-
|
|
862
|
+
y && D(), L(), W(), d == null || d();
|
|
862
863
|
};
|
|
863
|
-
return
|
|
864
|
+
return y ? (y(o.containers.concat()).then(w, w), this) : (w(), this);
|
|
864
865
|
},
|
|
865
866
|
deactivate: function(s) {
|
|
866
867
|
if (!o.active)
|
|
867
868
|
return this;
|
|
868
869
|
var u = Mt({
|
|
869
|
-
onDeactivate:
|
|
870
|
-
onPostDeactivate:
|
|
871
|
-
checkCanReturnFocus:
|
|
870
|
+
onDeactivate: f.onDeactivate,
|
|
871
|
+
onPostDeactivate: f.onPostDeactivate,
|
|
872
|
+
checkCanReturnFocus: f.checkCanReturnFocus
|
|
872
873
|
}, s);
|
|
873
874
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, U(), o.active = !1, o.paused = !1, W(), Zt.deactivateTrap(l, v);
|
|
874
|
-
var
|
|
875
|
-
|
|
876
|
-
var
|
|
875
|
+
var d = p(u, "onDeactivate"), y = p(u, "onPostDeactivate"), w = p(u, "checkCanReturnFocus"), E = p(u, "returnFocus", "returnFocusOnDeactivate");
|
|
876
|
+
d == null || d();
|
|
877
|
+
var F = function() {
|
|
877
878
|
jt(function() {
|
|
878
|
-
|
|
879
|
+
E && k(N(o.nodeFocusedBeforeActivation)), y == null || y();
|
|
879
880
|
});
|
|
880
881
|
};
|
|
881
|
-
return
|
|
882
|
+
return E && w ? (w(N(o.nodeFocusedBeforeActivation)).then(F, F), this) : (F(), this);
|
|
882
883
|
},
|
|
883
884
|
pause: function(s) {
|
|
884
885
|
if (o.paused || !o.active)
|
|
885
886
|
return this;
|
|
886
|
-
var u =
|
|
887
|
-
return o.paused = !0, u == null || u(), U(), W(),
|
|
887
|
+
var u = p(s, "onPause"), d = p(s, "onPostPause");
|
|
888
|
+
return o.paused = !0, u == null || u(), U(), W(), d == null || d(), this;
|
|
888
889
|
},
|
|
889
890
|
unpause: function(s) {
|
|
890
891
|
if (!o.paused || !o.active)
|
|
891
892
|
return this;
|
|
892
|
-
var u =
|
|
893
|
-
return o.paused = !1, u == null || u(), D(), L(), W(),
|
|
893
|
+
var u = p(s, "onUnpause"), d = p(s, "onPostUnpause");
|
|
894
|
+
return o.paused = !1, u == null || u(), D(), L(), W(), d == null || d(), this;
|
|
894
895
|
},
|
|
895
896
|
updateContainerElements: function(s) {
|
|
896
897
|
var u = [].concat(s).filter(Boolean);
|
|
897
|
-
return o.containers = u.map(function(
|
|
898
|
-
return typeof
|
|
898
|
+
return o.containers = u.map(function(d) {
|
|
899
|
+
return typeof d == "string" ? r.querySelector(d) : d;
|
|
899
900
|
}), o.active && D(), W(), this;
|
|
900
901
|
}
|
|
901
902
|
}, v.updateContainerElements(t), v;
|
|
@@ -905,7 +906,7 @@ var Zt = {
|
|
|
905
906
|
* (c) 2023 Eduardo San Martin Morote
|
|
906
907
|
* @license MIT
|
|
907
908
|
*/
|
|
908
|
-
const
|
|
909
|
+
const Rr = {
|
|
909
910
|
escapeDeactivates: {
|
|
910
911
|
type: Boolean,
|
|
911
912
|
default: !0
|
|
@@ -931,14 +932,14 @@ const xr = {
|
|
|
931
932
|
preventScroll: Boolean,
|
|
932
933
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
933
934
|
tabbableOptions: Object
|
|
934
|
-
},
|
|
935
|
+
}, Lr = ae({
|
|
935
936
|
props: Object.assign({
|
|
936
937
|
active: {
|
|
937
938
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
938
939
|
type: Boolean,
|
|
939
940
|
default: !0
|
|
940
941
|
}
|
|
941
|
-
},
|
|
942
|
+
}, Rr),
|
|
942
943
|
emits: [
|
|
943
944
|
"update:active",
|
|
944
945
|
"activate",
|
|
@@ -951,12 +952,12 @@ const xr = {
|
|
|
951
952
|
},
|
|
952
953
|
setup(n, { slots: t, emit: a }) {
|
|
953
954
|
let r;
|
|
954
|
-
const l = q(null),
|
|
955
|
+
const l = q(null), f = g(() => {
|
|
955
956
|
const v = l.value;
|
|
956
957
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
957
958
|
});
|
|
958
959
|
function o() {
|
|
959
|
-
return r || (r =
|
|
960
|
+
return r || (r = Br(f.value, {
|
|
960
961
|
escapeDeactivates: n.escapeDeactivates,
|
|
961
962
|
allowOutsideClick: n.allowOutsideClick,
|
|
962
963
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -977,7 +978,7 @@ const xr = {
|
|
|
977
978
|
}
|
|
978
979
|
return Ue(() => {
|
|
979
980
|
Pe(() => n.active, (v) => {
|
|
980
|
-
v &&
|
|
981
|
+
v && f.value ? o().activate() : r && (r.deactivate(), (!f.value || f.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
981
982
|
}, { immediate: !0, flush: "post" });
|
|
982
983
|
}), yn(() => {
|
|
983
984
|
r && r.deactivate(), r = null;
|
|
@@ -991,7 +992,7 @@ const xr = {
|
|
|
991
992
|
renderImpl() {
|
|
992
993
|
if (!t.default)
|
|
993
994
|
return null;
|
|
994
|
-
const v = t.default().filter((
|
|
995
|
+
const v = t.default().filter((m) => m.type !== _n);
|
|
995
996
|
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : wn(v[0], { ref: l });
|
|
996
997
|
}
|
|
997
998
|
};
|
|
@@ -1010,14 +1011,14 @@ function Xt() {
|
|
|
1010
1011
|
};
|
|
1011
1012
|
}
|
|
1012
1013
|
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1013
|
-
function
|
|
1014
|
+
function Pr(n) {
|
|
1014
1015
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1015
1016
|
}
|
|
1016
1017
|
var Ke = { exports: {} };
|
|
1017
1018
|
Ke.exports;
|
|
1018
1019
|
(function(n, t) {
|
|
1019
|
-
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991,
|
|
1020
|
-
_[
|
|
1020
|
+
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, f = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]", m = "[object Error]", C = "[object Function]", I = "[object GeneratorFunction]", D = "[object Map]", k = "[object Number]", N = "[object Object]", V = "[object Promise]", j = "[object RegExp]", M = "[object Set]", ee = "[object String]", G = "[object Symbol]", S = "[object WeakMap]", L = "[object ArrayBuffer]", U = "[object DataView]", J = "[object Float32Array]", Y = "[object Float64Array]", W = "[object Int8Array]", $ = "[object Int16Array]", s = "[object Int32Array]", u = "[object Uint8Array]", d = "[object Uint8ClampedArray]", y = "[object Uint16Array]", w = "[object Uint32Array]", E = /[\\^$.*+?()[\]{}|]/g, F = /\w*$/, P = /^\[object .+?Constructor\]$/, B = /^(?:0|[1-9]\d*)$/, _ = {};
|
|
1021
|
+
_[f] = _[o] = _[L] = _[U] = _[v] = _[p] = _[J] = _[Y] = _[W] = _[$] = _[s] = _[D] = _[k] = _[N] = _[j] = _[M] = _[ee] = _[G] = _[u] = _[d] = _[y] = _[w] = !0, _[m] = _[C] = _[S] = !1;
|
|
1021
1022
|
var se = typeof Re == "object" && Re && Re.Object === Object && Re, te = typeof self == "object" && self && self.Object === Object && self, H = se || te || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && n && !n.nodeType && n, Te = ve && ve.exports === we;
|
|
1022
1023
|
function Jt(e, i) {
|
|
1023
1024
|
return e.set(i[0], i[1]), e;
|
|
@@ -1058,7 +1059,7 @@ Ke.exports;
|
|
|
1058
1059
|
}
|
|
1059
1060
|
return i;
|
|
1060
1061
|
}
|
|
1061
|
-
function
|
|
1062
|
+
function pt(e) {
|
|
1062
1063
|
var i = -1, c = Array(e.size);
|
|
1063
1064
|
return e.forEach(function(b, R) {
|
|
1064
1065
|
c[++i] = [R, b];
|
|
@@ -1069,7 +1070,7 @@ Ke.exports;
|
|
|
1069
1070
|
return e(i(c));
|
|
1070
1071
|
};
|
|
1071
1072
|
}
|
|
1072
|
-
function
|
|
1073
|
+
function ht(e) {
|
|
1073
1074
|
var i = -1, c = Array(e.size);
|
|
1074
1075
|
return e.forEach(function(b) {
|
|
1075
1076
|
c[++i] = b;
|
|
@@ -1079,8 +1080,8 @@ Ke.exports;
|
|
|
1079
1080
|
var e = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
|
|
1080
1081
|
return e ? "Symbol(src)_1." + e : "";
|
|
1081
1082
|
}(), gt = ia.toString, oe = $e.hasOwnProperty, Ae = $e.toString, oa = RegExp(
|
|
1082
|
-
"^" + gt.call(oe).replace(
|
|
1083
|
-
), yt = Te ? H.Buffer : void 0, _t = H.Symbol, wt = H.Uint8Array, sa = We(Object.getPrototypeOf, Object), ca = Object.create, la = $e.propertyIsEnumerable, ua = ra.splice, Tt = Object.getOwnPropertySymbols, da = yt ? yt.isBuffer : void 0, fa = We(Object.keys, Object), Ye =
|
|
1083
|
+
"^" + gt.call(oe).replace(E, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1084
|
+
), yt = Te ? H.Buffer : void 0, _t = H.Symbol, wt = H.Uint8Array, sa = We(Object.getPrototypeOf, Object), ca = Object.create, la = $e.propertyIsEnumerable, ua = ra.splice, Tt = Object.getOwnPropertySymbols, da = yt ? yt.isBuffer : void 0, fa = We(Object.keys, Object), Ye = he(H, "DataView"), Se = he(H, "Map"), Xe = he(H, "Promise"), Je = he(H, "Set"), Qe = he(H, "WeakMap"), ke = he(Object, "create"), va = ue(Ye), ba = ue(Se), pa = ue(Xe), ha = ue(Je), ma = ue(Qe), St = _t ? _t.prototype : void 0, kt = St ? St.valueOf : void 0;
|
|
1084
1085
|
function ce(e) {
|
|
1085
1086
|
var i = -1, c = e ? e.length : 0;
|
|
1086
1087
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1089,14 +1090,14 @@ Ke.exports;
|
|
|
1089
1090
|
}
|
|
1090
1091
|
}
|
|
1091
1092
|
function ga() {
|
|
1092
|
-
this.__data__ =
|
|
1093
|
+
this.__data__ = ke ? ke(null) : {};
|
|
1093
1094
|
}
|
|
1094
1095
|
function ya(e) {
|
|
1095
1096
|
return this.has(e) && delete this.__data__[e];
|
|
1096
1097
|
}
|
|
1097
1098
|
function _a(e) {
|
|
1098
1099
|
var i = this.__data__;
|
|
1099
|
-
if (
|
|
1100
|
+
if (ke) {
|
|
1100
1101
|
var c = i[e];
|
|
1101
1102
|
return c === r ? void 0 : c;
|
|
1102
1103
|
}
|
|
@@ -1104,11 +1105,11 @@ Ke.exports;
|
|
|
1104
1105
|
}
|
|
1105
1106
|
function wa(e) {
|
|
1106
1107
|
var i = this.__data__;
|
|
1107
|
-
return
|
|
1108
|
+
return ke ? i[e] !== void 0 : oe.call(i, e);
|
|
1108
1109
|
}
|
|
1109
1110
|
function Ta(e, i) {
|
|
1110
1111
|
var c = this.__data__;
|
|
1111
|
-
return c[e] =
|
|
1112
|
+
return c[e] = ke && i === void 0 ? r : i, this;
|
|
1112
1113
|
}
|
|
1113
1114
|
ce.prototype.clear = ga, ce.prototype.delete = ya, ce.prototype.get = _a, ce.prototype.has = wa, ce.prototype.set = Ta;
|
|
1114
1115
|
function re(e) {
|
|
@@ -1118,10 +1119,10 @@ Ke.exports;
|
|
|
1118
1119
|
this.set(b[0], b[1]);
|
|
1119
1120
|
}
|
|
1120
1121
|
}
|
|
1121
|
-
function
|
|
1122
|
+
function Sa() {
|
|
1122
1123
|
this.__data__ = [];
|
|
1123
1124
|
}
|
|
1124
|
-
function
|
|
1125
|
+
function ka(e) {
|
|
1125
1126
|
var i = this.__data__, c = Ee(i, e);
|
|
1126
1127
|
if (c < 0)
|
|
1127
1128
|
return !1;
|
|
@@ -1139,7 +1140,7 @@ Ke.exports;
|
|
|
1139
1140
|
var c = this.__data__, b = Ee(c, e);
|
|
1140
1141
|
return b < 0 ? c.push([e, i]) : c[b][1] = i, this;
|
|
1141
1142
|
}
|
|
1142
|
-
re.prototype.clear =
|
|
1143
|
+
re.prototype.clear = Sa, re.prototype.delete = ka, re.prototype.get = Ia, re.prototype.has = Oa, re.prototype.set = Ca;
|
|
1143
1144
|
function be(e) {
|
|
1144
1145
|
var i = -1, c = e ? e.length : 0;
|
|
1145
1146
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1150,7 +1151,7 @@ Ke.exports;
|
|
|
1150
1151
|
function Na() {
|
|
1151
1152
|
this.__data__ = {
|
|
1152
1153
|
hash: new ce(),
|
|
1153
|
-
map: new (
|
|
1154
|
+
map: new (Se || re)(),
|
|
1154
1155
|
string: new ce()
|
|
1155
1156
|
};
|
|
1156
1157
|
}
|
|
@@ -1167,7 +1168,7 @@ Ke.exports;
|
|
|
1167
1168
|
return Fe(this, e).set(e, i), this;
|
|
1168
1169
|
}
|
|
1169
1170
|
be.prototype.clear = Na, be.prototype.delete = $a, be.prototype.get = Aa, be.prototype.has = Ea, be.prototype.set = Fa;
|
|
1170
|
-
function
|
|
1171
|
+
function pe(e) {
|
|
1171
1172
|
this.__data__ = new re(e);
|
|
1172
1173
|
}
|
|
1173
1174
|
function xa() {
|
|
@@ -1186,13 +1187,13 @@ Ke.exports;
|
|
|
1186
1187
|
var c = this.__data__;
|
|
1187
1188
|
if (c instanceof re) {
|
|
1188
1189
|
var b = c.__data__;
|
|
1189
|
-
if (!
|
|
1190
|
+
if (!Se || b.length < a - 1)
|
|
1190
1191
|
return b.push([e, i]), this;
|
|
1191
1192
|
c = this.__data__ = new be(b);
|
|
1192
1193
|
}
|
|
1193
1194
|
return c.set(e, i), this;
|
|
1194
1195
|
}
|
|
1195
|
-
|
|
1196
|
+
pe.prototype.clear = xa, pe.prototype.delete = Da, pe.prototype.get = Ba, pe.prototype.has = Ra, pe.prototype.set = La;
|
|
1196
1197
|
function Pa(e, i) {
|
|
1197
1198
|
var c = at(e) || ln(e) ? aa(e.length, String) : [], b = c.length, R = !!b;
|
|
1198
1199
|
for (var K in e)
|
|
@@ -1223,10 +1224,10 @@ Ke.exports;
|
|
|
1223
1224
|
if (z = tn(e), !i)
|
|
1224
1225
|
return Ja(e, z);
|
|
1225
1226
|
} else {
|
|
1226
|
-
var me = le(e), xt = me ==
|
|
1227
|
+
var me = le(e), xt = me == C || me == I;
|
|
1227
1228
|
if (dn(e))
|
|
1228
1229
|
return Va(e, i);
|
|
1229
|
-
if (me ==
|
|
1230
|
+
if (me == N || me == f || xt && !K) {
|
|
1230
1231
|
if (bt(e))
|
|
1231
1232
|
return K ? e : {};
|
|
1232
1233
|
if (z = an(xt ? {} : e), !i)
|
|
@@ -1237,7 +1238,7 @@ Ke.exports;
|
|
|
1237
1238
|
z = nn(e, me, et, i);
|
|
1238
1239
|
}
|
|
1239
1240
|
}
|
|
1240
|
-
X || (X = new
|
|
1241
|
+
X || (X = new pe());
|
|
1241
1242
|
var Dt = X.get(e);
|
|
1242
1243
|
if (Dt)
|
|
1243
1244
|
return Dt;
|
|
@@ -1286,19 +1287,19 @@ Ke.exports;
|
|
|
1286
1287
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1287
1288
|
}
|
|
1288
1289
|
function Ua(e, i, c) {
|
|
1289
|
-
var b = i ? c(
|
|
1290
|
+
var b = i ? c(pt(e), !0) : pt(e);
|
|
1290
1291
|
return vt(b, Jt, new e.constructor());
|
|
1291
1292
|
}
|
|
1292
1293
|
function Wa(e) {
|
|
1293
|
-
var i = new e.constructor(e.source,
|
|
1294
|
+
var i = new e.constructor(e.source, F.exec(e));
|
|
1294
1295
|
return i.lastIndex = e.lastIndex, i;
|
|
1295
1296
|
}
|
|
1296
1297
|
function qa(e, i, c) {
|
|
1297
|
-
var b = i ? c(
|
|
1298
|
+
var b = i ? c(ht(e), !0) : ht(e);
|
|
1298
1299
|
return vt(b, Qt, new e.constructor());
|
|
1299
1300
|
}
|
|
1300
1301
|
function Ya(e) {
|
|
1301
|
-
return
|
|
1302
|
+
return kt ? Object(kt.call(e)) : {};
|
|
1302
1303
|
}
|
|
1303
1304
|
function Xa(e, i) {
|
|
1304
1305
|
var c = i ? tt(e.buffer) : e.buffer;
|
|
@@ -1328,25 +1329,25 @@ Ke.exports;
|
|
|
1328
1329
|
var c = e.__data__;
|
|
1329
1330
|
return on(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1330
1331
|
}
|
|
1331
|
-
function
|
|
1332
|
+
function he(e, i) {
|
|
1332
1333
|
var c = na(e, i);
|
|
1333
1334
|
return Ka(c) ? c : void 0;
|
|
1334
1335
|
}
|
|
1335
1336
|
var Ct = Tt ? We(Tt, Object) : bn, le = Ha;
|
|
1336
|
-
(Ye && le(new Ye(new ArrayBuffer(1))) != U ||
|
|
1337
|
-
var i = Ae.call(e), c = i ==
|
|
1337
|
+
(Ye && le(new Ye(new ArrayBuffer(1))) != U || Se && le(new Se()) != D || Xe && le(Xe.resolve()) != V || Je && le(new Je()) != M || Qe && le(new Qe()) != S) && (le = function(e) {
|
|
1338
|
+
var i = Ae.call(e), c = i == N ? e.constructor : void 0, b = c ? ue(c) : void 0;
|
|
1338
1339
|
if (b)
|
|
1339
1340
|
switch (b) {
|
|
1340
1341
|
case va:
|
|
1341
1342
|
return U;
|
|
1342
1343
|
case ba:
|
|
1343
1344
|
return D;
|
|
1344
|
-
case ha:
|
|
1345
|
-
return V;
|
|
1346
1345
|
case pa:
|
|
1346
|
+
return V;
|
|
1347
|
+
case ha:
|
|
1347
1348
|
return M;
|
|
1348
1349
|
case ma:
|
|
1349
|
-
return
|
|
1350
|
+
return S;
|
|
1350
1351
|
}
|
|
1351
1352
|
return i;
|
|
1352
1353
|
});
|
|
@@ -1363,23 +1364,23 @@ Ke.exports;
|
|
|
1363
1364
|
case L:
|
|
1364
1365
|
return tt(e);
|
|
1365
1366
|
case v:
|
|
1366
|
-
case
|
|
1367
|
+
case p:
|
|
1367
1368
|
return new R(+e);
|
|
1368
1369
|
case U:
|
|
1369
1370
|
return Ga(e, b);
|
|
1370
1371
|
case J:
|
|
1371
1372
|
case Y:
|
|
1372
1373
|
case W:
|
|
1373
|
-
case
|
|
1374
|
+
case $:
|
|
1374
1375
|
case s:
|
|
1375
1376
|
case u:
|
|
1376
|
-
case
|
|
1377
|
-
case
|
|
1377
|
+
case d:
|
|
1378
|
+
case y:
|
|
1378
1379
|
case w:
|
|
1379
1380
|
return Xa(e, b);
|
|
1380
1381
|
case D:
|
|
1381
1382
|
return Ua(e, b, c);
|
|
1382
|
-
case
|
|
1383
|
+
case k:
|
|
1383
1384
|
case ee:
|
|
1384
1385
|
return new R(e);
|
|
1385
1386
|
case j:
|
|
@@ -1424,7 +1425,7 @@ Ke.exports;
|
|
|
1424
1425
|
return e === i || e !== e && i !== i;
|
|
1425
1426
|
}
|
|
1426
1427
|
function ln(e) {
|
|
1427
|
-
return un(e) && oe.call(e, "callee") && (!la.call(e, "callee") || Ae.call(e) ==
|
|
1428
|
+
return un(e) && oe.call(e, "callee") && (!la.call(e, "callee") || Ae.call(e) == f);
|
|
1428
1429
|
}
|
|
1429
1430
|
var at = Array.isArray;
|
|
1430
1431
|
function At(e) {
|
|
@@ -1433,10 +1434,10 @@ Ke.exports;
|
|
|
1433
1434
|
function un(e) {
|
|
1434
1435
|
return vn(e) && At(e);
|
|
1435
1436
|
}
|
|
1436
|
-
var dn = da ||
|
|
1437
|
+
var dn = da || pn;
|
|
1437
1438
|
function Et(e) {
|
|
1438
1439
|
var i = xe(e) ? Ae.call(e) : "";
|
|
1439
|
-
return i ==
|
|
1440
|
+
return i == C || i == I;
|
|
1440
1441
|
}
|
|
1441
1442
|
function fn(e) {
|
|
1442
1443
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
@@ -1454,29 +1455,29 @@ Ke.exports;
|
|
|
1454
1455
|
function bn() {
|
|
1455
1456
|
return [];
|
|
1456
1457
|
}
|
|
1457
|
-
function
|
|
1458
|
+
function pn() {
|
|
1458
1459
|
return !1;
|
|
1459
1460
|
}
|
|
1460
1461
|
n.exports = cn;
|
|
1461
1462
|
})(Ke, Ke.exports);
|
|
1462
|
-
var
|
|
1463
|
-
const
|
|
1463
|
+
var Mr = Ke.exports;
|
|
1464
|
+
const Zr = /* @__PURE__ */ Pr(Mr), jr = {
|
|
1464
1465
|
key: 0,
|
|
1465
1466
|
class: "sidebar-header"
|
|
1466
|
-
},
|
|
1467
|
+
}, Hr = { class: "sidebar-content-container" }, Kr = {
|
|
1467
1468
|
key: 0,
|
|
1468
1469
|
class: "sidebar-top"
|
|
1469
|
-
},
|
|
1470
|
+
}, zr = { "aria-label": "Main menu" }, Vr = {
|
|
1470
1471
|
key: 0,
|
|
1471
1472
|
class: "level-primary top-items"
|
|
1472
|
-
},
|
|
1473
|
+
}, Gr = {
|
|
1473
1474
|
key: 1,
|
|
1474
1475
|
class: "sidebar-level-divider",
|
|
1475
1476
|
role: "separator"
|
|
1476
|
-
},
|
|
1477
|
+
}, Ur = {
|
|
1477
1478
|
key: 2,
|
|
1478
1479
|
class: "level-primary bottom-items"
|
|
1479
|
-
},
|
|
1480
|
+
}, Wr = { class: "sidebar-footer" }, qr = /* @__PURE__ */ ae({
|
|
1480
1481
|
__name: "AppSidebar",
|
|
1481
1482
|
props: {
|
|
1482
1483
|
topItems: {
|
|
@@ -1542,13 +1543,13 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1542
1543
|
"359eede8": n.zIndex,
|
|
1543
1544
|
"4e23abbe": o.value.height,
|
|
1544
1545
|
e428f3c4: o.value.top,
|
|
1545
|
-
"84e1f31c":
|
|
1546
|
+
"84e1f31c": p.value.marginTop,
|
|
1546
1547
|
"28c49c4c": v.value.display,
|
|
1547
1548
|
64405131: v.value.minHeight,
|
|
1548
|
-
"3e21d42d":
|
|
1549
|
-
"6ad852a0":
|
|
1549
|
+
"3e21d42d": m.value.top,
|
|
1550
|
+
"6ad852a0": m.value.zIndex
|
|
1550
1551
|
}));
|
|
1551
|
-
const r = dt(), l = g(() => !!r.header),
|
|
1552
|
+
const r = dt(), l = g(() => !!r.header), f = g(() => !!r.top), o = g(() => ({
|
|
1552
1553
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1553
1554
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1554
1555
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
@@ -1556,53 +1557,53 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1556
1557
|
})), v = g(() => ({
|
|
1557
1558
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1558
1559
|
minHeight: `${a.headerHeight}px`
|
|
1559
|
-
})),
|
|
1560
|
+
})), p = g(() => ({
|
|
1560
1561
|
marginTop: l.value ? `${a.headerHeight}px` : "0"
|
|
1561
|
-
})),
|
|
1562
|
+
})), m = g(() => ({
|
|
1562
1563
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1563
1564
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1564
|
-
})),
|
|
1565
|
-
var
|
|
1566
|
-
if (
|
|
1567
|
-
(!
|
|
1568
|
-
for (const
|
|
1569
|
-
|
|
1565
|
+
})), C = (s) => Zr(s).map((d) => {
|
|
1566
|
+
var y, w, E;
|
|
1567
|
+
if (d) {
|
|
1568
|
+
(!d.key || !((y = d.key) != null && y.trim())) && (d.key = String(d.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!d.testId || !((w = d.testId) != null && w.trim())) && (d.testId = String(d.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1569
|
+
for (const F of d.items || [])
|
|
1570
|
+
F.parentKey = d.key, (!F.testId || !((E = F.testId) != null && E.trim())) && (F.testId = String(F.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1570
1571
|
}
|
|
1571
|
-
return
|
|
1572
|
-
}),
|
|
1573
|
-
var u,
|
|
1574
|
-
|
|
1572
|
+
return d;
|
|
1573
|
+
}), I = g(() => a.topItems.length ? C(a.topItems) : []), D = g(() => a.bottomItems.length ? C(a.bottomItems) : []), k = q(a.open), N = (s) => {
|
|
1574
|
+
var u, d;
|
|
1575
|
+
k.value !== s && (k.value = s, t("toggle", s)), s ? (u = document == null ? void 0 : document.body) == null || u.classList.add("kong-ui-app-sidebar-open") : (d = document == null ? void 0 : document.body) == null || d.classList.remove("kong-ui-app-sidebar-open"), j.value = !1;
|
|
1575
1576
|
}, V = () => {
|
|
1576
|
-
a.mobileOverlayCloseOnClick &&
|
|
1577
|
+
a.mobileOverlayCloseOnClick && N(!1);
|
|
1577
1578
|
}, j = q(!1), M = (s) => {
|
|
1578
1579
|
j.value = !0, t("click", s), setTimeout(() => {
|
|
1579
|
-
|
|
1580
|
+
N(!1);
|
|
1580
1581
|
}, a.mobileCloseDelay);
|
|
1581
1582
|
};
|
|
1582
1583
|
Pe(() => a.open, (s) => {
|
|
1583
|
-
|
|
1584
|
+
N(s);
|
|
1584
1585
|
});
|
|
1585
1586
|
const { debounce: ee } = Xt(), G = ee(() => {
|
|
1586
|
-
|
|
1587
|
-
}, 200),
|
|
1587
|
+
k.value && S.value !== (window == null ? void 0 : window.innerWidth) && (S.value = window == null ? void 0 : window.innerWidth, N(!1));
|
|
1588
|
+
}, 200), S = q(), L = q(!1), U = q(), J = () => {
|
|
1588
1589
|
L.value || (L.value = !0, clearTimeout(U.value), U.value = setTimeout(() => L.value = !1, 1300));
|
|
1589
|
-
}, Y = q(null), W = g(() =>
|
|
1590
|
-
var u,
|
|
1591
|
-
s ? (await
|
|
1590
|
+
}, Y = q(null), W = g(() => k.value && a.mobileEnabled), $ = async (s) => {
|
|
1591
|
+
var u, d;
|
|
1592
|
+
s ? (await Sn(), await new Promise((y) => setTimeout(y, 300)), (u = Y.value) == null || u.activate()) : (d = Y.value) == null || d.deactivate();
|
|
1592
1593
|
};
|
|
1593
1594
|
return Pe(W, async (s) => {
|
|
1594
|
-
s ? await
|
|
1595
|
+
s ? await $(!0) : await $(!1);
|
|
1595
1596
|
}, { immediate: !0 }), Ue(() => {
|
|
1596
|
-
|
|
1597
|
+
S.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", G), window.addEventListener("resize", J);
|
|
1597
1598
|
}), Kt(() => {
|
|
1598
1599
|
window.removeEventListener("resize", G), window.removeEventListener("resize", J);
|
|
1599
|
-
}), (s, u) => (
|
|
1600
|
-
|
|
1600
|
+
}), (s, u) => (h(), O(Oe, null, [
|
|
1601
|
+
k.value && n.mobileOverlay && n.mobileEnabled ? (h(), O("div", {
|
|
1601
1602
|
key: 0,
|
|
1602
1603
|
class: "kong-ui-app-sidebar-overlay",
|
|
1603
1604
|
onClick: V
|
|
1604
1605
|
})) : x("", !0),
|
|
1605
|
-
ze(Tn(
|
|
1606
|
+
ze(Tn(Lr), {
|
|
1606
1607
|
ref_key: "focusTrap",
|
|
1607
1608
|
ref: Y,
|
|
1608
1609
|
active: !1,
|
|
@@ -1612,7 +1613,7 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1612
1613
|
default: Z(() => [
|
|
1613
1614
|
T("aside", {
|
|
1614
1615
|
class: ie(["kong-ui-app-sidebar", {
|
|
1615
|
-
"sidebar-open":
|
|
1616
|
+
"sidebar-open": k.value,
|
|
1616
1617
|
"no-sidebar-header": !l.value,
|
|
1617
1618
|
"mobile-header-hidden": n.mobileEnabled && (!l.value || !n.mobileHeaderVisible),
|
|
1618
1619
|
"mobile-disabled": !n.mobileEnabled,
|
|
@@ -1620,33 +1621,33 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1620
1621
|
}]),
|
|
1621
1622
|
tabindex: "-1"
|
|
1622
1623
|
}, [
|
|
1623
|
-
l.value ? (
|
|
1624
|
-
|
|
1624
|
+
l.value ? (h(), O("div", jr, [
|
|
1625
|
+
A(s.$slots, "header", {}, void 0, !0)
|
|
1625
1626
|
])) : x("", !0),
|
|
1626
|
-
T("div",
|
|
1627
|
-
|
|
1628
|
-
|
|
1627
|
+
T("div", Hr, [
|
|
1628
|
+
f.value ? (h(), O("div", Kr, [
|
|
1629
|
+
A(s.$slots, "top", {}, void 0, !0)
|
|
1629
1630
|
])) : x("", !0),
|
|
1630
|
-
T("nav",
|
|
1631
|
-
|
|
1632
|
-
(
|
|
1633
|
-
key:
|
|
1634
|
-
item:
|
|
1631
|
+
T("nav", zr, [
|
|
1632
|
+
I.value.length ? (h(), O("ul", Vr, [
|
|
1633
|
+
(h(!0), O(Oe, null, Ne(I.value, (d) => (h(), Q(Rt, {
|
|
1634
|
+
key: d.name,
|
|
1635
|
+
item: d,
|
|
1635
1636
|
onClick: M
|
|
1636
1637
|
}, null, 8, ["item"]))), 128))
|
|
1637
1638
|
])) : x("", !0),
|
|
1638
|
-
|
|
1639
|
-
D.value.length ? (
|
|
1640
|
-
(
|
|
1641
|
-
key:
|
|
1642
|
-
item:
|
|
1639
|
+
I.value.length && D.value.length ? (h(), O("div", Gr)) : x("", !0),
|
|
1640
|
+
D.value.length ? (h(), O("ul", Ur, [
|
|
1641
|
+
(h(!0), O(Oe, null, Ne(D.value, (d) => (h(), Q(Rt, {
|
|
1642
|
+
key: d.name,
|
|
1643
|
+
item: d,
|
|
1643
1644
|
onClick: M
|
|
1644
1645
|
}, null, 8, ["item"]))), 128))
|
|
1645
1646
|
])) : x("", !0)
|
|
1646
1647
|
])
|
|
1647
1648
|
]),
|
|
1648
|
-
T("div",
|
|
1649
|
-
|
|
1649
|
+
T("div", Wr, [
|
|
1650
|
+
A(s.$slots, "footer", {}, void 0, !0)
|
|
1650
1651
|
])
|
|
1651
1652
|
], 2)
|
|
1652
1653
|
]),
|
|
@@ -1655,11 +1656,11 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1655
1656
|
], 64));
|
|
1656
1657
|
}
|
|
1657
1658
|
});
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
],
|
|
1659
|
+
const Yr = /* @__PURE__ */ ne(qr, [["__scopeId", "data-v-9cac378b"]]), ft = (n) => (Ve("data-v-00a332e0"), n = n(), Ge(), n), Xr = ["aria-label", "onClick"], Jr = /* @__PURE__ */ ft(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), Qr = /* @__PURE__ */ ft(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), ei = /* @__PURE__ */ ft(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), ti = [
|
|
1660
|
+
Jr,
|
|
1661
|
+
Qr,
|
|
1662
|
+
ei
|
|
1663
|
+
], ai = /* @__PURE__ */ ae({
|
|
1663
1664
|
__name: "SidebarToggle",
|
|
1664
1665
|
props: {
|
|
1665
1666
|
active: {
|
|
@@ -1672,25 +1673,25 @@ const Ur = /* @__PURE__ */ ne(Gr, [["__scopeId", "data-v-9cac378b"]]), ft = (n)
|
|
|
1672
1673
|
const a = n, r = q(a.active || !1), l = () => {
|
|
1673
1674
|
r.value = !r.value, t("toggle", r.value);
|
|
1674
1675
|
};
|
|
1675
|
-
return Pe(() => a.active, (
|
|
1676
|
-
r.value =
|
|
1677
|
-
}), (
|
|
1676
|
+
return Pe(() => a.active, (f) => {
|
|
1677
|
+
r.value = f;
|
|
1678
|
+
}), (f, o) => (h(), O("a", {
|
|
1678
1679
|
"aria-haspopup": "true",
|
|
1679
1680
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1680
1681
|
class: ie(["sidebar-menu-toggle", { active: r.value }]),
|
|
1681
1682
|
href: "#",
|
|
1682
1683
|
role: "button",
|
|
1683
|
-
onClick:
|
|
1684
|
-
},
|
|
1684
|
+
onClick: kn(l, ["prevent"])
|
|
1685
|
+
}, ti, 10, Xr));
|
|
1685
1686
|
}
|
|
1686
1687
|
});
|
|
1687
|
-
const
|
|
1688
|
+
const ni = /* @__PURE__ */ ne(ai, [["__scopeId", "data-v-00a332e0"]]), ri = "0px", ii = "16px", oi = (n) => (Ve("data-v-bf6a615f"), n = n(), Ge(), n), si = { id: "kong-ui-app-layout-notification" }, ci = { class: "mobile-logo" }, li = {
|
|
1688
1689
|
key: 0,
|
|
1689
1690
|
class: "navbar-logo"
|
|
1690
|
-
},
|
|
1691
|
+
}, ui = {
|
|
1691
1692
|
class: "kong-ui-app-layout-main",
|
|
1692
1693
|
"data-testid": "kong-ui-app-layout-main"
|
|
1693
|
-
},
|
|
1694
|
+
}, di = { class: "kong-ui-app-layout-content" }, fi = { class: "kong-ui-app-layout-content-inner" }, vi = /* @__PURE__ */ oi(() => /* @__PURE__ */ T("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), bi = /* @__PURE__ */ ae({
|
|
1694
1695
|
__name: "AppLayout",
|
|
1695
1696
|
props: {
|
|
1696
1697
|
hideDefaultSlot: {
|
|
@@ -1723,7 +1724,7 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1723
1724
|
emits: ["sidebar-click"],
|
|
1724
1725
|
setup(n, { emit: t }) {
|
|
1725
1726
|
const a = n;
|
|
1726
|
-
ut((
|
|
1727
|
+
ut((S) => ({
|
|
1727
1728
|
"2267861a": V.value,
|
|
1728
1729
|
"064bdbb4": j.value
|
|
1729
1730
|
}));
|
|
@@ -1736,62 +1737,62 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1736
1737
|
sidebarHeader: g(() => !!r["sidebar-header"]),
|
|
1737
1738
|
sidebarTop: g(() => !!r["sidebar-top"]),
|
|
1738
1739
|
sidebarFooter: g(() => !!r["sidebar-footer"])
|
|
1739
|
-
}),
|
|
1740
|
+
}), f = g(() => a.hideDefaultSlot), o = Le({
|
|
1740
1741
|
hidden: g(() => a.navbarHidden)
|
|
1741
1742
|
}), v = Le({
|
|
1742
1743
|
topItems: g(() => a.sidebarTopItems),
|
|
1743
1744
|
bottomItems: g(() => a.sidebarBottomItems),
|
|
1744
1745
|
open: g(() => a.sidebarOpen),
|
|
1745
1746
|
hidden: g(() => a.sidebarHidden)
|
|
1746
|
-
}),
|
|
1747
|
-
t("sidebar-click",
|
|
1748
|
-
},
|
|
1749
|
-
|
|
1747
|
+
}), p = (S) => {
|
|
1748
|
+
t("sidebar-click", S);
|
|
1749
|
+
}, m = q(!1), C = (S) => {
|
|
1750
|
+
m.value = S;
|
|
1750
1751
|
};
|
|
1751
1752
|
In(() => {
|
|
1752
|
-
|
|
1753
|
+
m.value = On(v, "open").value || !1;
|
|
1753
1754
|
});
|
|
1754
|
-
const
|
|
1755
|
-
if (
|
|
1756
|
-
|
|
1755
|
+
const I = q(0), D = q(60), k = q(0), N = g(() => o.hidden ? k.value : D.value + k.value), V = g(() => `${N.value}px`), j = g(() => v.hidden || o.hidden ? ri : ii), { debounce: M } = Xt(), ee = M((S = !1) => {
|
|
1756
|
+
if (S || I.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1757
|
+
I.value = window == null ? void 0 : window.innerWidth;
|
|
1757
1758
|
const L = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1758
|
-
L && (
|
|
1759
|
+
L && (k.value = L.offsetHeight);
|
|
1759
1760
|
}
|
|
1760
1761
|
}, 200), G = q();
|
|
1761
1762
|
return Ue(() => {
|
|
1762
1763
|
var L, U;
|
|
1763
|
-
(L = document == null ? void 0 : document.body) == null || L.classList.add("kong-ui-app-layout-body"), (U = document == null ? void 0 : document.documentElement) == null || U.classList.add("kong-ui-app-layout-html"),
|
|
1764
|
-
const
|
|
1765
|
-
|
|
1764
|
+
(L = document == null ? void 0 : document.body) == null || L.classList.add("kong-ui-app-layout-body"), (U = document == null ? void 0 : document.documentElement) == null || U.classList.add("kong-ui-app-layout-html"), I.value = window == null ? void 0 : window.innerWidth, ee(!0);
|
|
1765
|
+
const S = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1766
|
+
S && (G.value = new ResizeObserver((J) => {
|
|
1766
1767
|
window.requestAnimationFrame(() => {
|
|
1767
1768
|
if (!(!Array.isArray(J) || !J.length))
|
|
1768
1769
|
for (const Y of J) {
|
|
1769
1770
|
const W = Y.contentRect.height;
|
|
1770
|
-
|
|
1771
|
+
k.value !== W && (k.value = W);
|
|
1771
1772
|
}
|
|
1772
1773
|
});
|
|
1773
|
-
}), G.value.observe(
|
|
1774
|
+
}), G.value.observe(S)), window.addEventListener("resize", ee);
|
|
1774
1775
|
}), Kt(() => {
|
|
1775
1776
|
G.value && G.value.disconnect(), window.removeEventListener("resize", ee);
|
|
1776
|
-
}), (
|
|
1777
|
+
}), (S, L) => (h(), O("div", {
|
|
1777
1778
|
class: ie(["kong-ui-app-layout", [
|
|
1778
1779
|
{ "navbar-hidden": o.hidden },
|
|
1779
1780
|
{ "sidebar-hidden": v.hidden }
|
|
1780
1781
|
]])
|
|
1781
1782
|
}, [
|
|
1782
|
-
T("div",
|
|
1783
|
-
|
|
1783
|
+
T("div", si, [
|
|
1784
|
+
A(S.$slots, "notification", {}, void 0, !0)
|
|
1784
1785
|
]),
|
|
1785
|
-
o.hidden ? x("", !0) : (
|
|
1786
|
+
o.hidden ? x("", !0) : (h(), Q(Jn, {
|
|
1786
1787
|
key: String(v.hidden),
|
|
1787
1788
|
"left-offset": v.hidden ? 0 : void 0,
|
|
1788
|
-
"top-offset":
|
|
1789
|
+
"top-offset": k.value
|
|
1789
1790
|
}, ct({
|
|
1790
1791
|
"mobile-sidebar-toggle": Z(() => [
|
|
1791
|
-
v.hidden ? x("", !0) : (
|
|
1792
|
+
v.hidden ? x("", !0) : (h(), Q(ni, {
|
|
1792
1793
|
key: 0,
|
|
1793
|
-
active:
|
|
1794
|
-
onToggle:
|
|
1794
|
+
active: m.value,
|
|
1795
|
+
onToggle: C
|
|
1795
1796
|
}, null, 8, ["active"]))
|
|
1796
1797
|
]),
|
|
1797
1798
|
_: 2
|
|
@@ -1799,8 +1800,8 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1799
1800
|
l.navbarMobileLogo ? {
|
|
1800
1801
|
name: "mobile-logo",
|
|
1801
1802
|
fn: Z(() => [
|
|
1802
|
-
T("div",
|
|
1803
|
-
|
|
1803
|
+
T("div", ci, [
|
|
1804
|
+
A(S.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1804
1805
|
])
|
|
1805
1806
|
]),
|
|
1806
1807
|
key: "0"
|
|
@@ -1808,8 +1809,8 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1808
1809
|
l.navbarLogo ? {
|
|
1809
1810
|
name: "logo",
|
|
1810
1811
|
fn: Z(() => [
|
|
1811
|
-
v.hidden ? (
|
|
1812
|
-
|
|
1812
|
+
v.hidden ? (h(), O("div", li, [
|
|
1813
|
+
A(S.$slots, "navbar-logo", {}, void 0, !0)
|
|
1813
1814
|
])) : x("", !0)
|
|
1814
1815
|
]),
|
|
1815
1816
|
key: "1"
|
|
@@ -1817,93 +1818,93 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1817
1818
|
l.navbarLeft ? {
|
|
1818
1819
|
name: "left",
|
|
1819
1820
|
fn: Z(() => [
|
|
1820
|
-
|
|
1821
|
+
A(S.$slots, "navbar-left", {}, void 0, !0)
|
|
1821
1822
|
]),
|
|
1822
1823
|
key: "2"
|
|
1823
1824
|
} : void 0,
|
|
1824
1825
|
l.navbarCenter ? {
|
|
1825
1826
|
name: "center",
|
|
1826
1827
|
fn: Z(() => [
|
|
1827
|
-
|
|
1828
|
+
A(S.$slots, "navbar-center", {}, void 0, !0)
|
|
1828
1829
|
]),
|
|
1829
1830
|
key: "3"
|
|
1830
1831
|
} : void 0,
|
|
1831
1832
|
l.navbarRight ? {
|
|
1832
1833
|
name: "right",
|
|
1833
1834
|
fn: Z(() => [
|
|
1834
|
-
|
|
1835
|
+
A(S.$slots, "navbar-right", {}, void 0, !0)
|
|
1835
1836
|
]),
|
|
1836
1837
|
key: "4"
|
|
1837
1838
|
} : void 0
|
|
1838
1839
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1839
|
-
v.hidden ? x("", !0) : (
|
|
1840
|
+
v.hidden ? x("", !0) : (h(), Q(Yr, {
|
|
1840
1841
|
key: 1,
|
|
1841
1842
|
"bottom-items": v.bottomItems,
|
|
1842
1843
|
"header-height": D.value,
|
|
1843
1844
|
"mobile-enabled": "",
|
|
1844
1845
|
"mobile-header-visible": !1,
|
|
1845
|
-
"mobile-top-offset":
|
|
1846
|
-
open:
|
|
1846
|
+
"mobile-top-offset": N.value,
|
|
1847
|
+
open: m.value,
|
|
1847
1848
|
"top-items": v.topItems,
|
|
1848
|
-
"top-offset":
|
|
1849
|
-
onClick:
|
|
1850
|
-
onToggle:
|
|
1849
|
+
"top-offset": k.value,
|
|
1850
|
+
onClick: p,
|
|
1851
|
+
onToggle: C
|
|
1851
1852
|
}, ct({ _: 2 }, [
|
|
1852
1853
|
l.sidebarHeader ? {
|
|
1853
1854
|
name: "header",
|
|
1854
1855
|
fn: Z(() => [
|
|
1855
|
-
|
|
1856
|
+
A(S.$slots, "sidebar-header", {}, void 0, !0)
|
|
1856
1857
|
]),
|
|
1857
1858
|
key: "0"
|
|
1858
1859
|
} : void 0,
|
|
1859
1860
|
l.sidebarTop ? {
|
|
1860
1861
|
name: "top",
|
|
1861
1862
|
fn: Z(() => [
|
|
1862
|
-
|
|
1863
|
+
A(S.$slots, "sidebar-top", {}, void 0, !0)
|
|
1863
1864
|
]),
|
|
1864
1865
|
key: "1"
|
|
1865
1866
|
} : void 0,
|
|
1866
1867
|
l.sidebarFooter ? {
|
|
1867
1868
|
name: "footer",
|
|
1868
1869
|
fn: Z(() => [
|
|
1869
|
-
|
|
1870
|
+
A(S.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1870
1871
|
]),
|
|
1871
1872
|
key: "2"
|
|
1872
1873
|
} : void 0
|
|
1873
1874
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
1874
|
-
T("main",
|
|
1875
|
-
T("div",
|
|
1876
|
-
T("div",
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1875
|
+
T("main", ui, [
|
|
1876
|
+
T("div", di, [
|
|
1877
|
+
T("div", fi, [
|
|
1878
|
+
vi,
|
|
1879
|
+
A(S.$slots, "app-error", {}, void 0, !0),
|
|
1880
|
+
f.value ? x("", !0) : A(S.$slots, "default", { key: 0 }, void 0, !0)
|
|
1880
1881
|
])
|
|
1881
1882
|
])
|
|
1882
1883
|
])
|
|
1883
1884
|
], 2));
|
|
1884
1885
|
}
|
|
1885
1886
|
});
|
|
1886
|
-
const
|
|
1887
|
+
const pi = /* @__PURE__ */ ne(bi, [["__scopeId", "data-v-bf6a615f"]]), hi = (n) => (Ve("data-v-5eb01883"), n = n(), Ge(), n), mi = {
|
|
1887
1888
|
key: 0,
|
|
1888
1889
|
class: "page-header-breadcrumbs",
|
|
1889
1890
|
"data-testid": "page-header-breadcrumbs"
|
|
1890
|
-
},
|
|
1891
|
+
}, gi = /* @__PURE__ */ hi(() => /* @__PURE__ */ T("span", { class: "page-header-breadcrumb-divider" }, "/", -1)), yi = { class: "page-header-title-section" }, _i = { class: "page-header-title-wrapper" }, wi = {
|
|
1891
1892
|
key: 0,
|
|
1892
1893
|
class: "page-header-title-before",
|
|
1893
1894
|
"data-testid": "page-header-title-before"
|
|
1894
|
-
},
|
|
1895
|
+
}, Ti = ["title"], Si = {
|
|
1895
1896
|
key: 1,
|
|
1896
1897
|
class: "page-header-title-after",
|
|
1897
1898
|
"data-testid": "page-header-title-after"
|
|
1898
|
-
},
|
|
1899
|
+
}, ki = {
|
|
1899
1900
|
key: 0,
|
|
1900
1901
|
class: "page-header-actions",
|
|
1901
1902
|
"data-testid": "page-header-actions"
|
|
1902
|
-
},
|
|
1903
|
+
}, Ii = {
|
|
1903
1904
|
key: 1,
|
|
1904
1905
|
class: "page-header-section-below",
|
|
1905
1906
|
"data-testid": "page-header-section-below"
|
|
1906
|
-
},
|
|
1907
|
+
}, Oi = /* @__PURE__ */ ae({
|
|
1907
1908
|
__name: "AppPageHeader",
|
|
1908
1909
|
props: {
|
|
1909
1910
|
title: {
|
|
@@ -1916,67 +1917,70 @@ const fi = /* @__PURE__ */ ne(di, [["__scopeId", "data-v-bf6a615f"]]), vi = (n)
|
|
|
1916
1917
|
}
|
|
1917
1918
|
},
|
|
1918
1919
|
setup(n) {
|
|
1919
|
-
const t = n, a = g(() => {
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
}),
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1920
|
+
const t = n, a = Cn(), r = $n(), l = g(() => ({
|
|
1921
|
+
...a,
|
|
1922
|
+
"data-testid": `page-header-${String(r.name || "")}`
|
|
1923
|
+
})), f = g(() => {
|
|
1924
|
+
var p;
|
|
1925
|
+
return !!((p = t.breadcrumbs) != null && p.length);
|
|
1926
|
+
}), o = (p, m) => p.key || `breadcrumb-${m}`, v = g(() => t.breadcrumbs.map((p, m) => `icon-${o(p, m)}`) || []);
|
|
1927
|
+
return (p, m) => {
|
|
1928
|
+
const C = ye("KBreadcrumbs");
|
|
1929
|
+
return h(), O("div", Nn(l.value, { class: "kong-ui-app-page-header" }), [
|
|
1930
|
+
f.value ? (h(), O("div", mi, [
|
|
1931
|
+
ze(C, { items: n.breadcrumbs }, ct({
|
|
1928
1932
|
divider: Z(() => [
|
|
1929
|
-
|
|
1933
|
+
gi
|
|
1930
1934
|
]),
|
|
1931
1935
|
_: 2
|
|
1932
1936
|
}, [
|
|
1933
|
-
Ne(
|
|
1934
|
-
name:
|
|
1937
|
+
Ne(v.value, (I) => ({
|
|
1938
|
+
name: I,
|
|
1935
1939
|
fn: Z(() => [
|
|
1936
|
-
|
|
1940
|
+
A(p.$slots, I, {}, void 0, !0)
|
|
1937
1941
|
])
|
|
1938
1942
|
}))
|
|
1939
1943
|
]), 1032, ["items"])
|
|
1940
1944
|
])) : x("", !0),
|
|
1941
|
-
T("div",
|
|
1942
|
-
T("div",
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
+
T("div", yi, [
|
|
1946
|
+
T("div", _i, [
|
|
1947
|
+
p.$slots["title-before"] ? (h(), O("div", wi, [
|
|
1948
|
+
A(p.$slots, "title-before", {}, void 0, !0)
|
|
1945
1949
|
])) : x("", !0),
|
|
1946
1950
|
T("h1", {
|
|
1947
1951
|
class: "page-header-title",
|
|
1948
1952
|
"data-testid": "page-header-title",
|
|
1949
1953
|
title: n.title
|
|
1950
|
-
}, _e(n.title), 9,
|
|
1951
|
-
|
|
1952
|
-
|
|
1954
|
+
}, _e(n.title), 9, Ti),
|
|
1955
|
+
p.$slots["title-after"] ? (h(), O("div", Si, [
|
|
1956
|
+
A(p.$slots, "title-after", {}, void 0, !0)
|
|
1953
1957
|
])) : x("", !0)
|
|
1954
1958
|
]),
|
|
1955
|
-
|
|
1956
|
-
|
|
1959
|
+
p.$slots.actions ? (h(), O("div", ki, [
|
|
1960
|
+
A(p.$slots, "actions", {}, void 0, !0)
|
|
1957
1961
|
])) : x("", !0)
|
|
1958
1962
|
]),
|
|
1959
|
-
|
|
1960
|
-
|
|
1963
|
+
p.$slots.below ? (h(), O("div", Ii, [
|
|
1964
|
+
A(p.$slots, "below", {}, void 0, !0)
|
|
1961
1965
|
])) : x("", !0)
|
|
1962
|
-
]);
|
|
1966
|
+
], 16);
|
|
1963
1967
|
};
|
|
1964
1968
|
}
|
|
1965
1969
|
});
|
|
1966
|
-
const
|
|
1970
|
+
const Ei = /* @__PURE__ */ ne(Oi, [["__scopeId", "data-v-5eb01883"]]), Fi = {
|
|
1967
1971
|
// Customize Vue plugin options as desired
|
|
1968
1972
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
1969
1973
|
install: (n, t = {}) => {
|
|
1970
|
-
n.component(t.name || "AppLayout",
|
|
1974
|
+
n.component(t.name || "AppLayout", pi);
|
|
1971
1975
|
}
|
|
1972
1976
|
};
|
|
1973
1977
|
export {
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1978
|
+
$i as AccountDropdown,
|
|
1979
|
+
Ai as AppError,
|
|
1980
|
+
pi as AppLayout,
|
|
1981
|
+
Jn as AppNavbar,
|
|
1982
|
+
Ei as AppPageHeader,
|
|
1983
|
+
Yr as AppSidebar,
|
|
1984
|
+
ni as SidebarToggle,
|
|
1985
|
+
Fi as default
|
|
1982
1986
|
};
|