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