@kong-ui-public/app-layout 0.21.1-pr.610.fe95809.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-layout.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, resolveComponent as ye, openBlock as
|
|
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
2
|
const Cn = /* @__PURE__ */ ae({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
@@ -20,24 +20,24 @@ const Cn = /* @__PURE__ */ ae({
|
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (t, a) => {
|
|
22
22
|
const r = ye("KDropdownItem"), l = ye("KDropdownMenu");
|
|
23
|
-
return
|
|
23
|
+
return p(), Q(l, {
|
|
24
24
|
class: "account-dropdown",
|
|
25
25
|
"kpop-attributes": { placement: "bottomStart" },
|
|
26
26
|
label: n.userInitials,
|
|
27
27
|
size: "small",
|
|
28
28
|
width: n.width
|
|
29
29
|
}, {
|
|
30
|
-
items:
|
|
31
|
-
|
|
32
|
-
(
|
|
30
|
+
items: Z(({ handleSelection: d }) => [
|
|
31
|
+
N(t.$slots, "default", {}, () => [
|
|
32
|
+
(p(!0), I(Oe, null, Ne(n.options, (o) => (p(), Q(r, {
|
|
33
33
|
key: o.value,
|
|
34
34
|
class: ie({ "has-divider": o.hasDivider }),
|
|
35
35
|
"data-testid": "select-" + o.value,
|
|
36
36
|
"has-divider": o.hasDivider,
|
|
37
|
-
onClick: (v) =>
|
|
37
|
+
onClick: (v) => d(o)
|
|
38
38
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
|
|
39
|
+
default: Z(() => [
|
|
40
|
+
N(t.$slots, "default", { option: o }, () => [
|
|
41
41
|
st(_e(o.label), 1)
|
|
42
42
|
], !0)
|
|
43
43
|
]),
|
|
@@ -55,16 +55,16 @@ const ne = (n, t) => {
|
|
|
55
55
|
for (const [r, l] of t)
|
|
56
56
|
a[r] = l;
|
|
57
57
|
return a;
|
|
58
|
-
}, Oi = /* @__PURE__ */ ne(Cn, [["__scopeId", "data-v-bcfd5686"]]), Nn = {},
|
|
58
|
+
}, Oi = /* @__PURE__ */ ne(Cn, [["__scopeId", "data-v-bcfd5686"]]), Nn = {}, $n = {
|
|
59
59
|
fill: "none",
|
|
60
60
|
height: "130",
|
|
61
61
|
width: "130",
|
|
62
62
|
xmlns: "http://www.w3.org/2000/svg"
|
|
63
|
-
},
|
|
64
|
-
|
|
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
|
|
65
65
|
];
|
|
66
66
|
function Fn(n, t) {
|
|
67
|
-
return
|
|
67
|
+
return p(), I("svg", $n, En);
|
|
68
68
|
}
|
|
69
69
|
const xn = /* @__PURE__ */ ne(Nn, [["render", Fn]]), zt = (n) => (Ve("data-v-5cbccc66"), n = n(), Ge(), n), Dn = { class: "kong-ui-app-error" }, Bn = { class: "banana-icon" }, Rn = { class: "kong-ui-app-error-content" }, Ln = /* @__PURE__ */ zt(() => /* @__PURE__ */ T("h2", null, "An unexpected error has occurred", -1)), Pn = /* @__PURE__ */ zt(() => /* @__PURE__ */ T("p", null, [
|
|
70
70
|
/* @__PURE__ */ st("Go back to the previous page or "),
|
|
@@ -73,12 +73,12 @@ const xn = /* @__PURE__ */ ne(Nn, [["render", Fn]]), zt = (n) => (Ve("data-v-5cb
|
|
|
73
73
|
], -1)), Mn = /* @__PURE__ */ ae({
|
|
74
74
|
__name: "AppError",
|
|
75
75
|
setup(n) {
|
|
76
|
-
return (t, a) => (
|
|
76
|
+
return (t, a) => (p(), I("section", Dn, [
|
|
77
77
|
T("div", Bn, [
|
|
78
78
|
ze(xn)
|
|
79
79
|
]),
|
|
80
80
|
T("div", Rn, [
|
|
81
|
-
|
|
81
|
+
N(t.$slots, "default", {}, () => [
|
|
82
82
|
Ln,
|
|
83
83
|
Pn
|
|
84
84
|
], !0)
|
|
@@ -108,14 +108,14 @@ const Ci = /* @__PURE__ */ ne(Mn, [["__scopeId", "data-v-5cbccc66"]]), Zn = { cl
|
|
|
108
108
|
},
|
|
109
109
|
setup(n) {
|
|
110
110
|
const t = n;
|
|
111
|
-
|
|
112
|
-
"499e8aa4":
|
|
113
|
-
"73d2507f":
|
|
114
|
-
ea3a5c64:
|
|
111
|
+
ut((o) => ({
|
|
112
|
+
"499e8aa4": d.value.top,
|
|
113
|
+
"73d2507f": d.value.zIndex,
|
|
114
|
+
ea3a5c64: d.value.left,
|
|
115
115
|
"892c48d4": l.marginRight,
|
|
116
116
|
"62e3e64e": l.width
|
|
117
117
|
}));
|
|
118
|
-
const a =
|
|
118
|
+
const a = dt(), r = g(() => !!a.logo), l = Le({
|
|
119
119
|
marginRight: "0",
|
|
120
120
|
width: "0"
|
|
121
121
|
});
|
|
@@ -123,29 +123,29 @@ const Ci = /* @__PURE__ */ ne(Mn, [["__scopeId", "data-v-5cbccc66"]]), Zn = { cl
|
|
|
123
123
|
var o, v;
|
|
124
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");
|
|
125
125
|
});
|
|
126
|
-
const
|
|
126
|
+
const d = g(() => ({
|
|
127
127
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
128
128
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
129
129
|
zIndex: t.zIndex
|
|
130
130
|
}));
|
|
131
|
-
return (o, v) => (
|
|
131
|
+
return (o, v) => (p(), I("header", Zn, [
|
|
132
132
|
T("div", jn, [
|
|
133
133
|
T("div", Hn, [
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
N(o.$slots, "mobile-sidebar-toggle"),
|
|
135
|
+
N(o.$slots, "mobile-logo")
|
|
136
136
|
]),
|
|
137
|
-
r.value ? (
|
|
138
|
-
|
|
137
|
+
r.value ? (p(), I("div", Kn, [
|
|
138
|
+
N(o.$slots, "logo")
|
|
139
139
|
])) : x("", !0),
|
|
140
140
|
T("div", zn, [
|
|
141
141
|
T("div", Vn, [
|
|
142
|
-
|
|
142
|
+
N(o.$slots, "left")
|
|
143
143
|
]),
|
|
144
144
|
T("div", Gn, [
|
|
145
|
-
|
|
145
|
+
N(o.$slots, "center")
|
|
146
146
|
]),
|
|
147
147
|
T("div", Un, [
|
|
148
|
-
|
|
148
|
+
N(o.$slots, "right")
|
|
149
149
|
])
|
|
150
150
|
])
|
|
151
151
|
])
|
|
@@ -162,8 +162,8 @@ const qn = /* @__PURE__ */ ne(Wn, [["__scopeId", "data-v-7a2a459a"]]), Yn = ["ti
|
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
setup(n) {
|
|
165
|
-
const t = n, a =
|
|
166
|
-
return (r, l) => a.value ? (
|
|
165
|
+
const t = n, a = g(() => t.count ? t.count > it ? `${it}+` : t.count.toString() : "");
|
|
166
|
+
return (r, l) => a.value ? (p(), I("div", {
|
|
167
167
|
key: 0,
|
|
168
168
|
class: "item-badge",
|
|
169
169
|
title: (n.count || 0) > it ? String(n.count) : void 0
|
|
@@ -190,28 +190,28 @@ const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-912b1a1b"]]), Qn = ["da
|
|
|
190
190
|
},
|
|
191
191
|
emits: ["click"],
|
|
192
192
|
setup(n, { emit: t }) {
|
|
193
|
-
const a = n, r =
|
|
194
|
-
t("click",
|
|
195
|
-
}, v = (
|
|
196
|
-
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());
|
|
197
197
|
};
|
|
198
|
-
return (
|
|
198
|
+
return (h, y) => {
|
|
199
199
|
var S;
|
|
200
|
-
const F = ye("KIcon"),
|
|
201
|
-
return
|
|
200
|
+
const F = ye("KIcon"), $ = ye("KTooltip"), D = ye("SidebarItem", !0);
|
|
201
|
+
return p(), I("li", {
|
|
202
202
|
class: ie([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
203
203
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
204
204
|
}, [
|
|
205
|
-
(
|
|
205
|
+
(p(), Q(mn(r.value ? "div" : "router-link"), {
|
|
206
206
|
custom: r.value ? void 0 : !0,
|
|
207
207
|
to: !r.value && !l.value ? n.item.to : void 0
|
|
208
208
|
}, {
|
|
209
|
-
default:
|
|
210
|
-
var V,
|
|
209
|
+
default: Z((O) => {
|
|
210
|
+
var V, j;
|
|
211
211
|
return [
|
|
212
212
|
T("a", {
|
|
213
213
|
"aria-controls": (V = n.item.items) != null && V.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
214
|
-
"aria-expanded": (
|
|
214
|
+
"aria-expanded": (j = n.item.items) != null && j.length && n.item.expanded ? !0 : void 0,
|
|
215
215
|
class: ie(["sidebar-item-link", { "sidebar-item-external-link": l.value, "router-link": !r.value }]),
|
|
216
216
|
href: r.value ? String(n.item.to || "#") : O == null ? void 0 : O.href,
|
|
217
217
|
target: l.value ? "_blank" : void 0,
|
|
@@ -219,37 +219,37 @@ const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-912b1a1b"]]), Qn = ["da
|
|
|
219
219
|
onKeypress: gn((M) => v(M, n.item, O == null ? void 0 : O.navigate), ["enter"])
|
|
220
220
|
}, [
|
|
221
221
|
T("div", {
|
|
222
|
-
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 }])
|
|
223
223
|
}, [
|
|
224
|
-
n.item.icon ? (
|
|
224
|
+
n.item.icon ? (p(), I("div", tr, [
|
|
225
225
|
ze(F, {
|
|
226
226
|
icon: String(n.item.icon),
|
|
227
227
|
size: "20"
|
|
228
228
|
}, null, 8, ["icon"])
|
|
229
229
|
])) : x("", !0),
|
|
230
230
|
T("div", ar, [
|
|
231
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
231
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), I("div", {
|
|
232
232
|
key: 0,
|
|
233
233
|
class: ie(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
234
|
-
}, _e(n.item.name), 3)) : (
|
|
234
|
+
}, _e(n.item.name), 3)) : (p(), Q($, {
|
|
235
235
|
key: 1,
|
|
236
236
|
class: "sidebar-item-tooltip",
|
|
237
237
|
label: n.item.name,
|
|
238
238
|
placement: "right",
|
|
239
239
|
"position-fixed": ""
|
|
240
240
|
}, {
|
|
241
|
-
default:
|
|
241
|
+
default: Z(() => [
|
|
242
242
|
T("div", nr, [
|
|
243
243
|
T("span", {
|
|
244
|
-
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 }]])
|
|
245
245
|
}, _e(n.item.name), 3)
|
|
246
246
|
])
|
|
247
247
|
]),
|
|
248
248
|
_: 1
|
|
249
249
|
}, 8, ["label"])),
|
|
250
|
-
n.item.label && n.item.expanded ? (
|
|
250
|
+
n.item.label && n.item.expanded ? (p(), I("div", rr, _e(n.item.label), 1)) : x("", !0)
|
|
251
251
|
]),
|
|
252
|
-
|
|
252
|
+
d.value ? (p(), Q(Jn, {
|
|
253
253
|
key: 1,
|
|
254
254
|
count: n.item.badgeCount
|
|
255
255
|
}, null, 8, ["count"])) : x("", !0)
|
|
@@ -259,12 +259,12 @@ const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-912b1a1b"]]), Qn = ["da
|
|
|
259
259
|
}),
|
|
260
260
|
_: 1
|
|
261
261
|
}, 8, ["custom", "to"])),
|
|
262
|
-
(S = n.item.items) != null && S.length && n.item.expanded ? (
|
|
262
|
+
(S = n.item.items) != null && S.length && n.item.expanded ? (p(), I("ul", {
|
|
263
263
|
key: 0,
|
|
264
264
|
id: `subnav-${n.item.key}`,
|
|
265
265
|
class: "level-secondary"
|
|
266
266
|
}, [
|
|
267
|
-
(
|
|
267
|
+
(p(!0), I(Oe, null, Ne(n.item.items, (O) => (p(), Q(D, {
|
|
268
268
|
key: O.name,
|
|
269
269
|
item: O,
|
|
270
270
|
"subnav-item": !0,
|
|
@@ -289,7 +289,7 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
289
289
|
}, je = function n(t, a) {
|
|
290
290
|
var r;
|
|
291
291
|
a === void 0 && (a = !0);
|
|
292
|
-
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);
|
|
293
293
|
return o;
|
|
294
294
|
}, sr = function(t) {
|
|
295
295
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
@@ -300,28 +300,28 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
300
300
|
var l = Array.prototype.slice.apply(t.querySelectorAll(Me));
|
|
301
301
|
return a && fe.call(t, Me) && l.unshift(t), l = l.filter(r), l;
|
|
302
302
|
}, Wt = function n(t, a, r) {
|
|
303
|
-
for (var l = [],
|
|
304
|
-
var o =
|
|
303
|
+
for (var l = [], d = Array.from(t); d.length; ) {
|
|
304
|
+
var o = d.shift();
|
|
305
305
|
if (!je(o, !1))
|
|
306
306
|
if (o.tagName === "SLOT") {
|
|
307
|
-
var v = o.assignedElements(),
|
|
308
|
-
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({
|
|
309
309
|
scopeParent: o,
|
|
310
|
-
candidates:
|
|
310
|
+
candidates: y
|
|
311
311
|
});
|
|
312
312
|
} else {
|
|
313
313
|
var F = fe.call(o, Me);
|
|
314
314
|
F && r.filter(o) && (a || !t.includes(o)) && l.push(o);
|
|
315
|
-
var
|
|
316
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !je(
|
|
317
|
-
if (
|
|
318
|
-
var S = n(
|
|
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
319
|
r.flatten ? l.push.apply(l, S) : l.push({
|
|
320
320
|
scopeParent: o,
|
|
321
321
|
candidates: S
|
|
322
322
|
});
|
|
323
323
|
} else
|
|
324
|
-
|
|
324
|
+
d.unshift.apply(d, o.children);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
return l;
|
|
@@ -363,22 +363,22 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
363
363
|
} catch (o) {
|
|
364
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;
|
|
365
365
|
}
|
|
366
|
-
var
|
|
367
|
-
return !
|
|
366
|
+
var d = fr(l, t.form);
|
|
367
|
+
return !d || d === t;
|
|
368
368
|
}, br = function(t) {
|
|
369
369
|
return Yt(t) && t.type === "radio";
|
|
370
370
|
}, hr = function(t) {
|
|
371
371
|
return br(t) && !vr(t);
|
|
372
372
|
}, pr = function(t) {
|
|
373
|
-
var a, r = t && Ze(t), l = (a = r) === null || a === void 0 ? void 0 : a.host,
|
|
373
|
+
var a, r = t && Ze(t), l = (a = r) === null || a === void 0 ? void 0 : a.host, d = !1;
|
|
374
374
|
if (r && r !== t) {
|
|
375
|
-
var o, v,
|
|
376
|
-
for (
|
|
377
|
-
var
|
|
378
|
-
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));
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
return
|
|
381
|
+
return d;
|
|
382
382
|
}, Lt = function(t) {
|
|
383
383
|
var a = t.getBoundingClientRect(), r = a.width, l = a.height;
|
|
384
384
|
return r === 0 && l === 0;
|
|
@@ -386,16 +386,16 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
386
386
|
var r = a.displayCheck, l = a.getShadowRoot;
|
|
387
387
|
if (getComputedStyle(t).visibility === "hidden")
|
|
388
388
|
return !0;
|
|
389
|
-
var
|
|
389
|
+
var d = fe.call(t, "details>summary:first-of-type"), o = d ? t.parentElement : t;
|
|
390
390
|
if (fe.call(o, "details:not([open]) *"))
|
|
391
391
|
return !0;
|
|
392
392
|
if (!r || r === "full" || r === "legacy-full") {
|
|
393
393
|
if (typeof l == "function") {
|
|
394
394
|
for (var v = t; t; ) {
|
|
395
|
-
var
|
|
396
|
-
if (
|
|
395
|
+
var h = t.parentElement, y = Ze(t);
|
|
396
|
+
if (h && !h.shadowRoot && l(h) === !0)
|
|
397
397
|
return Lt(t);
|
|
398
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
398
|
+
t.assignedSlot ? t = t.assignedSlot : !h && y !== t.ownerDocument ? t = y.host : t = h;
|
|
399
399
|
}
|
|
400
400
|
t = v;
|
|
401
401
|
}
|
|
@@ -426,34 +426,34 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
426
426
|
// note related to `candidateSelectors`)
|
|
427
427
|
je(a) || ur(a) || mr(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
428
428
|
dr(a) || gr(a));
|
|
429
|
-
},
|
|
429
|
+
}, lt = function(t, a) {
|
|
430
430
|
return !(hr(a) || de(a) < 0 || !He(t, a));
|
|
431
431
|
}, yr = function(t) {
|
|
432
432
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
433
433
|
return !!(isNaN(a) || a >= 0);
|
|
434
434
|
}, _r = function n(t) {
|
|
435
435
|
var a = [], r = [];
|
|
436
|
-
return t.forEach(function(l,
|
|
437
|
-
var o = !!l.scopeParent, v = o ? l.scopeParent : l,
|
|
438
|
-
|
|
439
|
-
documentOrder:
|
|
440
|
-
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,
|
|
441
441
|
item: l,
|
|
442
442
|
isScope: o,
|
|
443
|
-
content:
|
|
443
|
+
content: y
|
|
444
444
|
});
|
|
445
|
-
}), r.sort(lr).reduce(function(l,
|
|
446
|
-
return
|
|
445
|
+
}), r.sort(lr).reduce(function(l, d) {
|
|
446
|
+
return d.isScope ? l.push.apply(l, d.content) : l.push(d.content), l;
|
|
447
447
|
}, []).concat(a);
|
|
448
448
|
}, wr = function(t, a) {
|
|
449
449
|
a = a || {};
|
|
450
450
|
var r;
|
|
451
451
|
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
452
|
-
filter:
|
|
452
|
+
filter: lt.bind(null, a),
|
|
453
453
|
flatten: !1,
|
|
454
454
|
getShadowRoot: a.getShadowRoot,
|
|
455
455
|
shadowRootFilter: yr
|
|
456
|
-
}) : r = Ut(t, a.includeContainer,
|
|
456
|
+
}) : r = Ut(t, a.includeContainer, lt.bind(null, a)), _r(r);
|
|
457
457
|
}, Tr = function(t, a) {
|
|
458
458
|
a = a || {};
|
|
459
459
|
var r;
|
|
@@ -465,7 +465,7 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
465
465
|
}, ge = function(t, a) {
|
|
466
466
|
if (a = a || {}, !t)
|
|
467
467
|
throw new Error("No node provided");
|
|
468
|
-
return fe.call(t, Me) === !1 ? !1 :
|
|
468
|
+
return fe.call(t, Me) === !1 ? !1 : lt(a, t);
|
|
469
469
|
}, kr = /* @__PURE__ */ Vt.concat("iframe").join(","), ot = function(t, a) {
|
|
470
470
|
if (a = a || {}, !t)
|
|
471
471
|
throw new Error("No node provided");
|
|
@@ -539,30 +539,30 @@ var Zt = {
|
|
|
539
539
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
540
540
|
}, Ce = function(t) {
|
|
541
541
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
542
|
-
},
|
|
542
|
+
}, $r = function(t) {
|
|
543
543
|
return Ce(t) && !t.shiftKey;
|
|
544
|
-
},
|
|
544
|
+
}, Ar = function(t) {
|
|
545
545
|
return Ce(t) && t.shiftKey;
|
|
546
546
|
}, jt = function(t) {
|
|
547
547
|
return setTimeout(t, 0);
|
|
548
548
|
}, Ht = function(t, a) {
|
|
549
549
|
var r = -1;
|
|
550
|
-
return t.every(function(l,
|
|
551
|
-
return a(l) ? (r =
|
|
550
|
+
return t.every(function(l, d) {
|
|
551
|
+
return a(l) ? (r = d, !1) : !0;
|
|
552
552
|
}), r;
|
|
553
553
|
}, Ie = function(t) {
|
|
554
554
|
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
|
|
555
555
|
r[l - 1] = arguments[l];
|
|
556
556
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
557
|
-
},
|
|
557
|
+
}, Be = function(t) {
|
|
558
558
|
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) ||
|
|
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({
|
|
561
561
|
returnFocusOnDeactivate: !0,
|
|
562
562
|
escapeDeactivates: !0,
|
|
563
563
|
delayInitialFocus: !0,
|
|
564
|
-
isKeyForward:
|
|
565
|
-
isKeyBackward:
|
|
564
|
+
isKeyForward: $r,
|
|
565
|
+
isKeyBackward: Ar
|
|
566
566
|
}, a), o = {
|
|
567
567
|
// containers given to createFocusTrap()
|
|
568
568
|
// @type {Array<HTMLElement>}
|
|
@@ -599,24 +599,24 @@ var Zt = {
|
|
|
599
599
|
delayInitialFocusTimer: void 0,
|
|
600
600
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
601
601
|
recentNavEvent: void 0
|
|
602
|
-
}, v,
|
|
603
|
-
return s && s[u] !== void 0 ? s[u] : f
|
|
604
|
-
},
|
|
605
|
-
var
|
|
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
606
|
return o.containerGroups.findIndex(function(m) {
|
|
607
607
|
var w = m.container, A = m.tabbableNodes;
|
|
608
608
|
return w.contains(s) || // fall back to explicit tabbable search which will take into consideration any
|
|
609
609
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
610
610
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
611
611
|
// look inside web components even if open)
|
|
612
|
-
(
|
|
612
|
+
(f == null ? void 0 : f.includes(w)) || A.find(function(E) {
|
|
613
613
|
return E === s;
|
|
614
614
|
});
|
|
615
615
|
});
|
|
616
616
|
}, F = function(s) {
|
|
617
|
-
var u =
|
|
617
|
+
var u = d[s];
|
|
618
618
|
if (typeof u == "function") {
|
|
619
|
-
for (var
|
|
619
|
+
for (var f = arguments.length, m = new Array(f > 1 ? f - 1 : 0), w = 1; w < f; w++)
|
|
620
620
|
m[w - 1] = arguments[w];
|
|
621
621
|
u = u.apply(void 0, m);
|
|
622
622
|
}
|
|
@@ -629,25 +629,25 @@ var Zt = {
|
|
|
629
629
|
if (typeof u == "string" && (A = r.querySelector(u), !A))
|
|
630
630
|
throw new Error("`".concat(s, "` as selector refers to no known node"));
|
|
631
631
|
return A;
|
|
632
|
-
},
|
|
632
|
+
}, $ = function() {
|
|
633
633
|
var s = F("initialFocus");
|
|
634
634
|
if (s === !1)
|
|
635
635
|
return !1;
|
|
636
|
-
if (s === void 0 || !ot(s,
|
|
637
|
-
if (
|
|
636
|
+
if (s === void 0 || !ot(s, d.tabbableOptions))
|
|
637
|
+
if (y(r.activeElement) >= 0)
|
|
638
638
|
s = r.activeElement;
|
|
639
639
|
else {
|
|
640
|
-
var u = o.tabbableGroups[0],
|
|
641
|
-
s =
|
|
640
|
+
var u = o.tabbableGroups[0], f = u && u.firstTabbableNode;
|
|
641
|
+
s = f || F("fallbackFocus");
|
|
642
642
|
}
|
|
643
643
|
if (!s)
|
|
644
644
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
645
645
|
return s;
|
|
646
646
|
}, D = function() {
|
|
647
647
|
if (o.containerGroups = o.containers.map(function(s) {
|
|
648
|
-
var u = wr(s,
|
|
648
|
+
var u = wr(s, d.tabbableOptions), f = Tr(s, d.tabbableOptions), m = u.length > 0 ? u[0] : void 0, w = u.length > 0 ? u[u.length - 1] : void 0, A = f.find(function(B) {
|
|
649
649
|
return ge(B);
|
|
650
|
-
}), E =
|
|
650
|
+
}), E = f.slice().reverse().find(function(B) {
|
|
651
651
|
return ge(B);
|
|
652
652
|
}), P = !!u.find(function(B) {
|
|
653
653
|
return de(B) > 0;
|
|
@@ -655,7 +655,7 @@ var Zt = {
|
|
|
655
655
|
return {
|
|
656
656
|
container: s,
|
|
657
657
|
tabbableNodes: u,
|
|
658
|
-
focusableNodes:
|
|
658
|
+
focusableNodes: f,
|
|
659
659
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
660
660
|
posTabIndexesFound: P,
|
|
661
661
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -681,12 +681,12 @@ var Zt = {
|
|
|
681
681
|
* in reverse.
|
|
682
682
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
683
683
|
*/
|
|
684
|
-
nextTabbableNode: function(
|
|
685
|
-
var se = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, te = u.indexOf(
|
|
686
|
-
return te < 0 ? se ?
|
|
687
|
-
return ge(
|
|
688
|
-
}) :
|
|
689
|
-
return ge(
|
|
684
|
+
nextTabbableNode: function(_) {
|
|
685
|
+
var se = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, te = u.indexOf(_);
|
|
686
|
+
return te < 0 ? se ? f.slice(f.indexOf(_) + 1).find(function(H) {
|
|
687
|
+
return ge(H);
|
|
688
|
+
}) : f.slice(0, f.indexOf(_)).reverse().find(function(H) {
|
|
689
|
+
return ge(H);
|
|
690
690
|
}) : u[te + (se ? 1 : -1)];
|
|
691
691
|
}
|
|
692
692
|
};
|
|
@@ -701,22 +701,22 @@ var Zt = {
|
|
|
701
701
|
}, S = function C(s) {
|
|
702
702
|
if (s !== !1 && s !== r.activeElement) {
|
|
703
703
|
if (!s || !s.focus) {
|
|
704
|
-
C(
|
|
704
|
+
C($());
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
707
|
s.focus({
|
|
708
|
-
preventScroll: !!
|
|
708
|
+
preventScroll: !!d.preventScroll
|
|
709
709
|
}), o.mostRecentlyFocusedNode = s, Cr(s) && s.select();
|
|
710
710
|
}
|
|
711
711
|
}, O = function(s) {
|
|
712
712
|
var u = F("setReturnFocus", s);
|
|
713
713
|
return u || (u === !1 ? !1 : s);
|
|
714
714
|
}, V = function(s) {
|
|
715
|
-
var u = s.target,
|
|
716
|
-
u = u ||
|
|
715
|
+
var u = s.target, f = s.event, m = s.isBackward, w = m === void 0 ? !1 : m;
|
|
716
|
+
u = u || Be(f), D();
|
|
717
717
|
var A = null;
|
|
718
718
|
if (o.tabbableGroups.length > 0) {
|
|
719
|
-
var E =
|
|
719
|
+
var E = y(u, f), P = E >= 0 ? o.containerGroups[E] : void 0;
|
|
720
720
|
if (E < 0)
|
|
721
721
|
w ? A = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : A = o.tabbableGroups[0].firstTabbableNode;
|
|
722
722
|
else if (w) {
|
|
@@ -724,29 +724,29 @@ var Zt = {
|
|
|
724
724
|
var Te = ve.firstTabbableNode;
|
|
725
725
|
return u === Te;
|
|
726
726
|
});
|
|
727
|
-
if (B < 0 && (P.container === u || ot(u,
|
|
728
|
-
var
|
|
727
|
+
if (B < 0 && (P.container === u || ot(u, d.tabbableOptions) && !ge(u, d.tabbableOptions) && !P.nextTabbableNode(u, !1)) && (B = E), B >= 0) {
|
|
728
|
+
var _ = B === 0 ? o.tabbableGroups.length - 1 : B - 1, se = o.tabbableGroups[_];
|
|
729
729
|
A = de(u) >= 0 ? se.lastTabbableNode : se.lastDomTabbableNode;
|
|
730
730
|
} else
|
|
731
|
-
Ce(
|
|
731
|
+
Ce(f) || (A = P.nextTabbableNode(u, !1));
|
|
732
732
|
} else {
|
|
733
733
|
var te = Ht(o.tabbableGroups, function(ve) {
|
|
734
734
|
var Te = ve.lastTabbableNode;
|
|
735
735
|
return u === Te;
|
|
736
736
|
});
|
|
737
|
-
if (te < 0 && (P.container === u || ot(u,
|
|
738
|
-
var
|
|
737
|
+
if (te < 0 && (P.container === u || ot(u, d.tabbableOptions) && !ge(u, d.tabbableOptions) && !P.nextTabbableNode(u)) && (te = E), te >= 0) {
|
|
738
|
+
var H = te === o.tabbableGroups.length - 1 ? 0 : te + 1, we = o.tabbableGroups[H];
|
|
739
739
|
A = de(u) >= 0 ? we.firstTabbableNode : we.firstDomTabbableNode;
|
|
740
740
|
} else
|
|
741
|
-
Ce(
|
|
741
|
+
Ce(f) || (A = P.nextTabbableNode(u));
|
|
742
742
|
}
|
|
743
743
|
} else
|
|
744
744
|
A = F("fallbackFocus");
|
|
745
745
|
return A;
|
|
746
|
-
},
|
|
747
|
-
var u =
|
|
748
|
-
if (!(
|
|
749
|
-
if (Ie(
|
|
746
|
+
}, j = function(s) {
|
|
747
|
+
var u = Be(s);
|
|
748
|
+
if (!(y(u, s) >= 0)) {
|
|
749
|
+
if (Ie(d.clickOutsideDeactivates, s)) {
|
|
750
750
|
v.deactivate({
|
|
751
751
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
752
752
|
// which will result in the outside click setting focus to the node
|
|
@@ -754,32 +754,32 @@ var Zt = {
|
|
|
754
754
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
755
755
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
756
756
|
// outside click was on a focusable node or not
|
|
757
|
-
returnFocus:
|
|
757
|
+
returnFocus: d.returnFocusOnDeactivate
|
|
758
758
|
});
|
|
759
759
|
return;
|
|
760
760
|
}
|
|
761
|
-
Ie(
|
|
761
|
+
Ie(d.allowOutsideClick, s) || s.preventDefault();
|
|
762
762
|
}
|
|
763
763
|
}, M = function(s) {
|
|
764
|
-
var u =
|
|
765
|
-
if (
|
|
766
|
-
|
|
764
|
+
var u = Be(s), f = y(u, s) >= 0;
|
|
765
|
+
if (f || u instanceof Document)
|
|
766
|
+
f && (o.mostRecentlyFocusedNode = u);
|
|
767
767
|
else {
|
|
768
768
|
s.stopImmediatePropagation();
|
|
769
769
|
var m, w = !0;
|
|
770
770
|
if (o.mostRecentlyFocusedNode)
|
|
771
771
|
if (de(o.mostRecentlyFocusedNode) > 0) {
|
|
772
|
-
var A =
|
|
772
|
+
var A = y(o.mostRecentlyFocusedNode), E = o.containerGroups[A].tabbableNodes;
|
|
773
773
|
if (E.length > 0) {
|
|
774
774
|
var P = E.findIndex(function(B) {
|
|
775
775
|
return B === o.mostRecentlyFocusedNode;
|
|
776
776
|
});
|
|
777
|
-
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));
|
|
778
778
|
}
|
|
779
779
|
} else
|
|
780
780
|
o.containerGroups.some(function(B) {
|
|
781
|
-
return B.tabbableNodes.some(function(
|
|
782
|
-
return de(
|
|
781
|
+
return B.tabbableNodes.some(function(_) {
|
|
782
|
+
return de(_) > 0;
|
|
783
783
|
});
|
|
784
784
|
}) || (w = !1);
|
|
785
785
|
else
|
|
@@ -788,35 +788,35 @@ var Zt = {
|
|
|
788
788
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
789
789
|
// outside the trap causing the focus escape we're trying to fix)
|
|
790
790
|
target: o.mostRecentlyFocusedNode,
|
|
791
|
-
isBackward:
|
|
792
|
-
})), S(m || o.mostRecentlyFocusedNode ||
|
|
791
|
+
isBackward: d.isKeyBackward(o.recentNavEvent)
|
|
792
|
+
})), S(m || o.mostRecentlyFocusedNode || $());
|
|
793
793
|
}
|
|
794
794
|
o.recentNavEvent = void 0;
|
|
795
795
|
}, ee = function(s) {
|
|
796
796
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
797
797
|
o.recentNavEvent = s;
|
|
798
|
-
var
|
|
798
|
+
var f = V({
|
|
799
799
|
event: s,
|
|
800
800
|
isBackward: u
|
|
801
801
|
});
|
|
802
|
-
|
|
802
|
+
f && (Ce(s) && s.preventDefault(), S(f));
|
|
803
803
|
}, G = function(s) {
|
|
804
|
-
if (Nr(s) && Ie(
|
|
804
|
+
if (Nr(s) && Ie(d.escapeDeactivates, s) !== !1) {
|
|
805
805
|
s.preventDefault(), v.deactivate();
|
|
806
806
|
return;
|
|
807
807
|
}
|
|
808
|
-
(
|
|
808
|
+
(d.isKeyForward(s) || d.isKeyBackward(s)) && ee(s, d.isKeyBackward(s));
|
|
809
809
|
}, k = function(s) {
|
|
810
|
-
var u =
|
|
811
|
-
|
|
810
|
+
var u = Be(s);
|
|
811
|
+
y(u, s) >= 0 || Ie(d.clickOutsideDeactivates, s) || Ie(d.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
812
812
|
}, L = function() {
|
|
813
813
|
if (o.active)
|
|
814
|
-
return Zt.activateTrap(l, v), o.delayInitialFocusTimer =
|
|
815
|
-
S(
|
|
816
|
-
}) : S(
|
|
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, {
|
|
817
817
|
capture: !0,
|
|
818
818
|
passive: !1
|
|
819
|
-
}), r.addEventListener("touchstart",
|
|
819
|
+
}), r.addEventListener("touchstart", j, {
|
|
820
820
|
capture: !0,
|
|
821
821
|
passive: !1
|
|
822
822
|
}), r.addEventListener("click", k, {
|
|
@@ -828,15 +828,15 @@ var Zt = {
|
|
|
828
828
|
}), v;
|
|
829
829
|
}, U = function() {
|
|
830
830
|
if (o.active)
|
|
831
|
-
return r.removeEventListener("focusin", M, !0), r.removeEventListener("mousedown",
|
|
831
|
+
return r.removeEventListener("focusin", M, !0), r.removeEventListener("mousedown", j, !0), r.removeEventListener("touchstart", j, !0), r.removeEventListener("click", k, !0), r.removeEventListener("keydown", G, !0), v;
|
|
832
832
|
}, J = function(s) {
|
|
833
|
-
var u = s.some(function(
|
|
834
|
-
var m = Array.from(
|
|
833
|
+
var u = s.some(function(f) {
|
|
834
|
+
var m = Array.from(f.removedNodes);
|
|
835
835
|
return m.some(function(w) {
|
|
836
836
|
return w === o.mostRecentlyFocusedNode;
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
|
-
u && S(
|
|
839
|
+
u && S($());
|
|
840
840
|
}, Y = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(J) : void 0, W = function() {
|
|
841
841
|
Y && (Y.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
842
842
|
Y.observe(s, {
|
|
@@ -855,10 +855,10 @@ var Zt = {
|
|
|
855
855
|
activate: function(s) {
|
|
856
856
|
if (o.active)
|
|
857
857
|
return this;
|
|
858
|
-
var u =
|
|
858
|
+
var u = h(s, "onActivate"), f = h(s, "onPostActivate"), m = h(s, "checkCanFocusTrap");
|
|
859
859
|
m || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, u == null || u();
|
|
860
860
|
var w = function() {
|
|
861
|
-
m && D(), L(), W(),
|
|
861
|
+
m && D(), L(), W(), f == null || f();
|
|
862
862
|
};
|
|
863
863
|
return m ? (m(o.containers.concat()).then(w, w), this) : (w(), this);
|
|
864
864
|
},
|
|
@@ -866,13 +866,13 @@ var Zt = {
|
|
|
866
866
|
if (!o.active)
|
|
867
867
|
return this;
|
|
868
868
|
var u = Mt({
|
|
869
|
-
onDeactivate:
|
|
870
|
-
onPostDeactivate:
|
|
871
|
-
checkCanReturnFocus:
|
|
869
|
+
onDeactivate: d.onDeactivate,
|
|
870
|
+
onPostDeactivate: d.onPostDeactivate,
|
|
871
|
+
checkCanReturnFocus: d.checkCanReturnFocus
|
|
872
872
|
}, s);
|
|
873
873
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, U(), o.active = !1, o.paused = !1, W(), Zt.deactivateTrap(l, v);
|
|
874
|
-
var
|
|
875
|
-
|
|
874
|
+
var f = h(u, "onDeactivate"), m = h(u, "onPostDeactivate"), w = h(u, "checkCanReturnFocus"), A = h(u, "returnFocus", "returnFocusOnDeactivate");
|
|
875
|
+
f == null || f();
|
|
876
876
|
var E = function() {
|
|
877
877
|
jt(function() {
|
|
878
878
|
A && S(O(o.nodeFocusedBeforeActivation)), m == null || m();
|
|
@@ -883,19 +883,19 @@ var Zt = {
|
|
|
883
883
|
pause: function(s) {
|
|
884
884
|
if (o.paused || !o.active)
|
|
885
885
|
return this;
|
|
886
|
-
var u =
|
|
887
|
-
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;
|
|
888
888
|
},
|
|
889
889
|
unpause: function(s) {
|
|
890
890
|
if (!o.paused || !o.active)
|
|
891
891
|
return this;
|
|
892
|
-
var u =
|
|
893
|
-
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;
|
|
894
894
|
},
|
|
895
895
|
updateContainerElements: function(s) {
|
|
896
896
|
var u = [].concat(s).filter(Boolean);
|
|
897
|
-
return o.containers = u.map(function(
|
|
898
|
-
return typeof
|
|
897
|
+
return o.containers = u.map(function(f) {
|
|
898
|
+
return typeof f == "string" ? r.querySelector(f) : f;
|
|
899
899
|
}), o.active && D(), W(), this;
|
|
900
900
|
}
|
|
901
901
|
}, v.updateContainerElements(t), v;
|
|
@@ -951,12 +951,12 @@ const xr = {
|
|
|
951
951
|
},
|
|
952
952
|
setup(n, { slots: t, emit: a }) {
|
|
953
953
|
let r;
|
|
954
|
-
const l = q(null),
|
|
954
|
+
const l = q(null), d = g(() => {
|
|
955
955
|
const v = l.value;
|
|
956
956
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
957
957
|
});
|
|
958
958
|
function o() {
|
|
959
|
-
return r || (r = Fr(
|
|
959
|
+
return r || (r = Fr(d.value, {
|
|
960
960
|
escapeDeactivates: n.escapeDeactivates,
|
|
961
961
|
allowOutsideClick: n.allowOutsideClick,
|
|
962
962
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -977,7 +977,7 @@ const xr = {
|
|
|
977
977
|
}
|
|
978
978
|
return Ue(() => {
|
|
979
979
|
Pe(() => n.active, (v) => {
|
|
980
|
-
v &&
|
|
980
|
+
v && d.value ? o().activate() : r && (r.deactivate(), (!d.value || d.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
981
981
|
}, { immediate: !0, flush: "post" });
|
|
982
982
|
}), yn(() => {
|
|
983
983
|
r && r.deactivate(), r = null;
|
|
@@ -991,7 +991,7 @@ const xr = {
|
|
|
991
991
|
renderImpl() {
|
|
992
992
|
if (!t.default)
|
|
993
993
|
return null;
|
|
994
|
-
const v = t.default().filter((
|
|
994
|
+
const v = t.default().filter((y) => y.type !== _n);
|
|
995
995
|
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : wn(v[0], { ref: l });
|
|
996
996
|
}
|
|
997
997
|
};
|
|
@@ -1009,16 +1009,16 @@ function Xt() {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
var
|
|
1012
|
+
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1013
1013
|
function Br(n) {
|
|
1014
1014
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1015
1015
|
}
|
|
1016
1016
|
var Ke = { exports: {} };
|
|
1017
1017
|
Ke.exports;
|
|
1018
1018
|
(function(n, t) {
|
|
1019
|
-
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991,
|
|
1020
|
-
|
|
1021
|
-
var se = typeof
|
|
1019
|
+
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", h = "[object Date]", y = "[object Error]", F = "[object Function]", $ = "[object GeneratorFunction]", D = "[object Map]", S = "[object Number]", O = "[object Object]", V = "[object Promise]", j = "[object RegExp]", M = "[object Set]", ee = "[object String]", G = "[object Symbol]", k = "[object WeakMap]", L = "[object ArrayBuffer]", U = "[object DataView]", J = "[object Float32Array]", Y = "[object Float64Array]", W = "[object Int8Array]", C = "[object Int16Array]", s = "[object Int32Array]", u = "[object Uint8Array]", f = "[object Uint8ClampedArray]", m = "[object Uint16Array]", w = "[object Uint32Array]", A = /[\\^$.*+?()[\]{}|]/g, E = /\w*$/, P = /^\[object .+?Constructor\]$/, B = /^(?:0|[1-9]\d*)$/, _ = {};
|
|
1020
|
+
_[d] = _[o] = _[L] = _[U] = _[v] = _[h] = _[J] = _[Y] = _[W] = _[C] = _[s] = _[D] = _[S] = _[O] = _[j] = _[M] = _[ee] = _[G] = _[u] = _[f] = _[m] = _[w] = !0, _[y] = _[F] = _[k] = !1;
|
|
1021
|
+
var se = typeof Re == "object" && Re && Re.Object === Object && Re, te = typeof self == "object" && self && self.Object === Object && self, H = se || te || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && n && !n.nodeType && n, Te = ve && ve.exports === we;
|
|
1022
1022
|
function Jt(e, i) {
|
|
1023
1023
|
return e.set(i[0], i[1]), e;
|
|
1024
1024
|
}
|
|
@@ -1035,9 +1035,9 @@ Ke.exports;
|
|
|
1035
1035
|
e[R + c] = i[c];
|
|
1036
1036
|
return e;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
var R = -1,
|
|
1040
|
-
for (b &&
|
|
1038
|
+
function vt(e, i, c, b) {
|
|
1039
|
+
var R = -1, K = e ? e.length : 0;
|
|
1040
|
+
for (b && K && (c = e[++R]); ++R < K; )
|
|
1041
1041
|
c = i(c, e[R], R, e);
|
|
1042
1042
|
return c;
|
|
1043
1043
|
}
|
|
@@ -1049,7 +1049,7 @@ Ke.exports;
|
|
|
1049
1049
|
function na(e, i) {
|
|
1050
1050
|
return e == null ? void 0 : e[i];
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function bt(e) {
|
|
1053
1053
|
var i = !1;
|
|
1054
1054
|
if (e != null && typeof e.toString != "function")
|
|
1055
1055
|
try {
|
|
@@ -1058,7 +1058,7 @@ Ke.exports;
|
|
|
1058
1058
|
}
|
|
1059
1059
|
return i;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function ht(e) {
|
|
1062
1062
|
var i = -1, c = Array(e.size);
|
|
1063
1063
|
return e.forEach(function(b, R) {
|
|
1064
1064
|
c[++i] = [R, b];
|
|
@@ -1069,18 +1069,18 @@ Ke.exports;
|
|
|
1069
1069
|
return e(i(c));
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function pt(e) {
|
|
1073
1073
|
var i = -1, c = Array(e.size);
|
|
1074
1074
|
return e.forEach(function(b) {
|
|
1075
1075
|
c[++i] = b;
|
|
1076
1076
|
}), c;
|
|
1077
1077
|
}
|
|
1078
|
-
var ra = Array.prototype, ia = Function.prototype,
|
|
1078
|
+
var ra = Array.prototype, ia = Function.prototype, $e = Object.prototype, qe = H["__core-js_shared__"], mt = function() {
|
|
1079
1079
|
var e = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
|
|
1080
1080
|
return e ? "Symbol(src)_1." + e : "";
|
|
1081
|
-
}(),
|
|
1082
|
-
"^" +
|
|
1083
|
-
),
|
|
1081
|
+
}(), gt = ia.toString, oe = $e.hasOwnProperty, Ae = $e.toString, oa = RegExp(
|
|
1082
|
+
"^" + gt.call(oe).replace(A, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1083
|
+
), yt = Te ? H.Buffer : void 0, _t = H.Symbol, wt = H.Uint8Array, sa = We(Object.getPrototypeOf, Object), ca = Object.create, la = $e.propertyIsEnumerable, ua = ra.splice, Tt = Object.getOwnPropertySymbols, da = yt ? yt.isBuffer : void 0, fa = We(Object.keys, Object), Ye = pe(H, "DataView"), ke = pe(H, "Map"), Xe = pe(H, "Promise"), Je = pe(H, "Set"), Qe = pe(H, "WeakMap"), Se = pe(Object, "create"), va = ue(Ye), ba = ue(ke), ha = ue(Xe), pa = ue(Je), ma = ue(Qe), kt = _t ? _t.prototype : void 0, St = kt ? kt.valueOf : void 0;
|
|
1084
1084
|
function ce(e) {
|
|
1085
1085
|
var i = -1, c = e ? e.length : 0;
|
|
1086
1086
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1154,19 +1154,19 @@ Ke.exports;
|
|
|
1154
1154
|
string: new ce()
|
|
1155
1155
|
};
|
|
1156
1156
|
}
|
|
1157
|
+
function $a(e) {
|
|
1158
|
+
return Fe(this, e).delete(e);
|
|
1159
|
+
}
|
|
1157
1160
|
function Aa(e) {
|
|
1158
|
-
return
|
|
1161
|
+
return Fe(this, e).get(e);
|
|
1159
1162
|
}
|
|
1160
1163
|
function Ea(e) {
|
|
1161
|
-
return
|
|
1162
|
-
}
|
|
1163
|
-
function $a(e) {
|
|
1164
|
-
return $e(this, e).has(e);
|
|
1164
|
+
return Fe(this, e).has(e);
|
|
1165
1165
|
}
|
|
1166
1166
|
function Fa(e, i) {
|
|
1167
|
-
return
|
|
1167
|
+
return Fe(this, e).set(e, i), this;
|
|
1168
1168
|
}
|
|
1169
|
-
be.prototype.clear = Na, be.prototype.delete =
|
|
1169
|
+
be.prototype.clear = Na, be.prototype.delete = $a, be.prototype.get = Aa, be.prototype.has = Ea, be.prototype.set = Fa;
|
|
1170
1170
|
function he(e) {
|
|
1171
1171
|
this.__data__ = new re(e);
|
|
1172
1172
|
}
|
|
@@ -1195,60 +1195,60 @@ Ke.exports;
|
|
|
1195
1195
|
he.prototype.clear = xa, he.prototype.delete = Da, he.prototype.get = Ba, he.prototype.has = Ra, he.prototype.set = La;
|
|
1196
1196
|
function Pa(e, i) {
|
|
1197
1197
|
var c = at(e) || ln(e) ? aa(e.length, String) : [], b = c.length, R = !!b;
|
|
1198
|
-
for (var
|
|
1199
|
-
(i || oe.call(e,
|
|
1198
|
+
for (var K in e)
|
|
1199
|
+
(i || oe.call(e, K)) && !(R && (K == "length" || rn(K, b))) && c.push(K);
|
|
1200
1200
|
return c;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function It(e, i, c) {
|
|
1203
1203
|
var b = e[i];
|
|
1204
|
-
(!(oe.call(e, i) &&
|
|
1204
|
+
(!(oe.call(e, i) && $t(b, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1205
1205
|
}
|
|
1206
1206
|
function Ee(e, i) {
|
|
1207
1207
|
for (var c = e.length; c--; )
|
|
1208
|
-
if (
|
|
1208
|
+
if ($t(e[c][0], i))
|
|
1209
1209
|
return c;
|
|
1210
1210
|
return -1;
|
|
1211
1211
|
}
|
|
1212
1212
|
function Ma(e, i) {
|
|
1213
|
-
return e &&
|
|
1213
|
+
return e && Ot(i, nt(i), e);
|
|
1214
1214
|
}
|
|
1215
|
-
function et(e, i, c, b, R,
|
|
1215
|
+
function et(e, i, c, b, R, K, X) {
|
|
1216
1216
|
var z;
|
|
1217
|
-
if (b && (z =
|
|
1217
|
+
if (b && (z = K ? b(e, R, K, X) : b(e)), z !== void 0)
|
|
1218
1218
|
return z;
|
|
1219
|
-
if (!
|
|
1219
|
+
if (!xe(e))
|
|
1220
1220
|
return e;
|
|
1221
|
-
var
|
|
1222
|
-
if (
|
|
1221
|
+
var Ft = at(e);
|
|
1222
|
+
if (Ft) {
|
|
1223
1223
|
if (z = tn(e), !i)
|
|
1224
1224
|
return Ja(e, z);
|
|
1225
1225
|
} else {
|
|
1226
|
-
var me = le(e),
|
|
1226
|
+
var me = le(e), xt = me == F || me == $;
|
|
1227
1227
|
if (dn(e))
|
|
1228
1228
|
return Va(e, i);
|
|
1229
|
-
if (me == O || me ==
|
|
1230
|
-
if (
|
|
1231
|
-
return
|
|
1232
|
-
if (z = an(
|
|
1229
|
+
if (me == O || me == d || xt && !K) {
|
|
1230
|
+
if (bt(e))
|
|
1231
|
+
return K ? e : {};
|
|
1232
|
+
if (z = an(xt ? {} : e), !i)
|
|
1233
1233
|
return Qa(e, Ma(z, e));
|
|
1234
1234
|
} else {
|
|
1235
|
-
if (!
|
|
1236
|
-
return
|
|
1235
|
+
if (!_[me])
|
|
1236
|
+
return K ? e : {};
|
|
1237
1237
|
z = nn(e, me, et, i);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
X || (X = new he());
|
|
1241
|
-
var
|
|
1242
|
-
if (
|
|
1243
|
-
return
|
|
1244
|
-
if (X.set(e, z),
|
|
1245
|
-
var
|
|
1246
|
-
return ea(
|
|
1247
|
-
|
|
1241
|
+
var Dt = X.get(e);
|
|
1242
|
+
if (Dt)
|
|
1243
|
+
return Dt;
|
|
1244
|
+
if (X.set(e, z), !Ft)
|
|
1245
|
+
var Bt = c ? en(e) : nt(e);
|
|
1246
|
+
return ea(Bt || e, function(rt, De) {
|
|
1247
|
+
Bt && (De = rt, rt = e[De]), It(z, De, et(rt, i, c, b, De, e, X));
|
|
1248
1248
|
}), z;
|
|
1249
1249
|
}
|
|
1250
1250
|
function Za(e) {
|
|
1251
|
-
return
|
|
1251
|
+
return xe(e) ? ca(e) : {};
|
|
1252
1252
|
}
|
|
1253
1253
|
function ja(e, i, c) {
|
|
1254
1254
|
var b = i(e);
|
|
@@ -1258,13 +1258,13 @@ Ke.exports;
|
|
|
1258
1258
|
return Ae.call(e);
|
|
1259
1259
|
}
|
|
1260
1260
|
function Ka(e) {
|
|
1261
|
-
if (!
|
|
1261
|
+
if (!xe(e) || sn(e))
|
|
1262
1262
|
return !1;
|
|
1263
|
-
var i = Et(e) ||
|
|
1263
|
+
var i = Et(e) || bt(e) ? oa : P;
|
|
1264
1264
|
return i.test(ue(e));
|
|
1265
1265
|
}
|
|
1266
1266
|
function za(e) {
|
|
1267
|
-
if (!
|
|
1267
|
+
if (!Nt(e))
|
|
1268
1268
|
return fa(e);
|
|
1269
1269
|
var i = [];
|
|
1270
1270
|
for (var c in Object(e))
|
|
@@ -1279,26 +1279,26 @@ Ke.exports;
|
|
|
1279
1279
|
}
|
|
1280
1280
|
function tt(e) {
|
|
1281
1281
|
var i = new e.constructor(e.byteLength);
|
|
1282
|
-
return new
|
|
1282
|
+
return new wt(i).set(new wt(e)), i;
|
|
1283
1283
|
}
|
|
1284
1284
|
function Ga(e, i) {
|
|
1285
1285
|
var c = i ? tt(e.buffer) : e.buffer;
|
|
1286
1286
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1287
1287
|
}
|
|
1288
1288
|
function Ua(e, i, c) {
|
|
1289
|
-
var b = i ? c(
|
|
1290
|
-
return
|
|
1289
|
+
var b = i ? c(ht(e), !0) : ht(e);
|
|
1290
|
+
return vt(b, Jt, new e.constructor());
|
|
1291
1291
|
}
|
|
1292
1292
|
function Wa(e) {
|
|
1293
1293
|
var i = new e.constructor(e.source, E.exec(e));
|
|
1294
1294
|
return i.lastIndex = e.lastIndex, i;
|
|
1295
1295
|
}
|
|
1296
1296
|
function qa(e, i, c) {
|
|
1297
|
-
var b = i ? c(
|
|
1298
|
-
return
|
|
1297
|
+
var b = i ? c(pt(e), !0) : pt(e);
|
|
1298
|
+
return vt(b, Qt, new e.constructor());
|
|
1299
1299
|
}
|
|
1300
1300
|
function Ya(e) {
|
|
1301
|
-
return
|
|
1301
|
+
return St ? Object(St.call(e)) : {};
|
|
1302
1302
|
}
|
|
1303
1303
|
function Xa(e, i) {
|
|
1304
1304
|
var c = i ? tt(e.buffer) : e.buffer;
|
|
@@ -1310,21 +1310,21 @@ Ke.exports;
|
|
|
1310
1310
|
i[c] = e[c];
|
|
1311
1311
|
return i;
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Ot(e, i, c, b) {
|
|
1314
1314
|
c || (c = {});
|
|
1315
|
-
for (var R = -1,
|
|
1315
|
+
for (var R = -1, K = i.length; ++R < K; ) {
|
|
1316
1316
|
var X = i[R], z = b ? b(c[X], e[X], X, c, e) : void 0;
|
|
1317
|
-
|
|
1317
|
+
It(c, X, z === void 0 ? e[X] : z);
|
|
1318
1318
|
}
|
|
1319
1319
|
return c;
|
|
1320
1320
|
}
|
|
1321
1321
|
function Qa(e, i) {
|
|
1322
|
-
return
|
|
1322
|
+
return Ot(e, Ct(e), i);
|
|
1323
1323
|
}
|
|
1324
1324
|
function en(e) {
|
|
1325
|
-
return ja(e, nt,
|
|
1325
|
+
return ja(e, nt, Ct);
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Fe(e, i) {
|
|
1328
1328
|
var c = e.__data__;
|
|
1329
1329
|
return on(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1330
1330
|
}
|
|
@@ -1332,7 +1332,7 @@ Ke.exports;
|
|
|
1332
1332
|
var c = na(e, i);
|
|
1333
1333
|
return Ka(c) ? c : void 0;
|
|
1334
1334
|
}
|
|
1335
|
-
var
|
|
1335
|
+
var Ct = Tt ? We(Tt, Object) : bn, le = Ha;
|
|
1336
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
1337
|
var i = Ae.call(e), c = i == O ? e.constructor : void 0, b = c ? ue(c) : void 0;
|
|
1338
1338
|
if (b)
|
|
@@ -1355,7 +1355,7 @@ Ke.exports;
|
|
|
1355
1355
|
return i && typeof e[0] == "string" && oe.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1356
1356
|
}
|
|
1357
1357
|
function an(e) {
|
|
1358
|
-
return typeof e.constructor == "function" && !
|
|
1358
|
+
return typeof e.constructor == "function" && !Nt(e) ? Za(sa(e)) : {};
|
|
1359
1359
|
}
|
|
1360
1360
|
function nn(e, i, c, b) {
|
|
1361
1361
|
var R = e.constructor;
|
|
@@ -1363,7 +1363,7 @@ Ke.exports;
|
|
|
1363
1363
|
case L:
|
|
1364
1364
|
return tt(e);
|
|
1365
1365
|
case v:
|
|
1366
|
-
case
|
|
1366
|
+
case h:
|
|
1367
1367
|
return new R(+e);
|
|
1368
1368
|
case U:
|
|
1369
1369
|
return Ga(e, b);
|
|
@@ -1373,7 +1373,7 @@ Ke.exports;
|
|
|
1373
1373
|
case C:
|
|
1374
1374
|
case s:
|
|
1375
1375
|
case u:
|
|
1376
|
-
case
|
|
1376
|
+
case f:
|
|
1377
1377
|
case m:
|
|
1378
1378
|
case w:
|
|
1379
1379
|
return Xa(e, b);
|
|
@@ -1382,7 +1382,7 @@ Ke.exports;
|
|
|
1382
1382
|
case S:
|
|
1383
1383
|
case ee:
|
|
1384
1384
|
return new R(e);
|
|
1385
|
-
case
|
|
1385
|
+
case j:
|
|
1386
1386
|
return Wa(e);
|
|
1387
1387
|
case M:
|
|
1388
1388
|
return qa(e, b, c);
|
|
@@ -1398,16 +1398,16 @@ Ke.exports;
|
|
|
1398
1398
|
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1399
1399
|
}
|
|
1400
1400
|
function sn(e) {
|
|
1401
|
-
return !!
|
|
1401
|
+
return !!mt && mt in e;
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var i = e && e.constructor, c = typeof i == "function" && i.prototype ||
|
|
1403
|
+
function Nt(e) {
|
|
1404
|
+
var i = e && e.constructor, c = typeof i == "function" && i.prototype || $e;
|
|
1405
1405
|
return e === c;
|
|
1406
1406
|
}
|
|
1407
1407
|
function ue(e) {
|
|
1408
1408
|
if (e != null) {
|
|
1409
1409
|
try {
|
|
1410
|
-
return
|
|
1410
|
+
return gt.call(e);
|
|
1411
1411
|
} catch {
|
|
1412
1412
|
}
|
|
1413
1413
|
try {
|
|
@@ -1420,11 +1420,11 @@ Ke.exports;
|
|
|
1420
1420
|
function cn(e) {
|
|
1421
1421
|
return et(e, !0, !0);
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function $t(e, i) {
|
|
1424
1424
|
return e === i || e !== e && i !== i;
|
|
1425
1425
|
}
|
|
1426
1426
|
function ln(e) {
|
|
1427
|
-
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);
|
|
1428
1428
|
}
|
|
1429
1429
|
var at = Array.isArray;
|
|
1430
1430
|
function At(e) {
|
|
@@ -1435,13 +1435,13 @@ Ke.exports;
|
|
|
1435
1435
|
}
|
|
1436
1436
|
var dn = da || hn;
|
|
1437
1437
|
function Et(e) {
|
|
1438
|
-
var i =
|
|
1439
|
-
return i == F || i ==
|
|
1438
|
+
var i = xe(e) ? Ae.call(e) : "";
|
|
1439
|
+
return i == F || i == $;
|
|
1440
1440
|
}
|
|
1441
1441
|
function fn(e) {
|
|
1442
1442
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function xe(e) {
|
|
1445
1445
|
var i = typeof e;
|
|
1446
1446
|
return !!e && (i == "object" || i == "function");
|
|
1447
1447
|
}
|
|
@@ -1536,46 +1536,46 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1536
1536
|
emits: ["click", "toggle"],
|
|
1537
1537
|
setup(n, { emit: t }) {
|
|
1538
1538
|
const a = n;
|
|
1539
|
-
|
|
1539
|
+
ut((s) => ({
|
|
1540
1540
|
"6cea19c0": o.value.mobileHeight,
|
|
1541
1541
|
a2fcb148: o.value.mobileTop,
|
|
1542
1542
|
"359eede8": n.zIndex,
|
|
1543
1543
|
"4e23abbe": o.value.height,
|
|
1544
1544
|
e428f3c4: o.value.top,
|
|
1545
|
-
"84e1f31c":
|
|
1545
|
+
"84e1f31c": h.value.marginTop,
|
|
1546
1546
|
"28c49c4c": v.value.display,
|
|
1547
1547
|
64405131: v.value.minHeight,
|
|
1548
|
-
"3e21d42d":
|
|
1549
|
-
"6ad852a0":
|
|
1548
|
+
"3e21d42d": y.value.top,
|
|
1549
|
+
"6ad852a0": y.value.zIndex
|
|
1550
1550
|
}));
|
|
1551
|
-
const r =
|
|
1551
|
+
const r = dt(), l = g(() => !!r.header), d = g(() => !!r.top), o = g(() => ({
|
|
1552
1552
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1553
1553
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1554
1554
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
1555
1555
|
height: a.topOffset ? `calc(100% - ${a.topOffset}px)` : "100%"
|
|
1556
|
-
})), v =
|
|
1556
|
+
})), v = g(() => ({
|
|
1557
1557
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1558
1558
|
minHeight: `${a.headerHeight}px`
|
|
1559
|
-
})),
|
|
1559
|
+
})), h = g(() => ({
|
|
1560
1560
|
marginTop: l.value ? `${a.headerHeight}px` : "0"
|
|
1561
|
-
})),
|
|
1561
|
+
})), y = g(() => ({
|
|
1562
1562
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1563
1563
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1564
|
-
})), F = (s) => Lr(s).map((
|
|
1564
|
+
})), F = (s) => Lr(s).map((f) => {
|
|
1565
1565
|
var m, w, A;
|
|
1566
|
-
if (
|
|
1567
|
-
(!
|
|
1568
|
-
for (const E of
|
|
1569
|
-
E.parentKey =
|
|
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, "-"));
|
|
1570
1570
|
}
|
|
1571
|
-
return
|
|
1572
|
-
}),
|
|
1573
|
-
var u,
|
|
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") : (
|
|
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;
|
|
1575
1575
|
}, V = () => {
|
|
1576
1576
|
a.mobileOverlayCloseOnClick && O(!1);
|
|
1577
|
-
},
|
|
1578
|
-
|
|
1577
|
+
}, j = q(!1), M = (s) => {
|
|
1578
|
+
j.value = !0, t("click", s), setTimeout(() => {
|
|
1579
1579
|
O(!1);
|
|
1580
1580
|
}, a.mobileCloseDelay);
|
|
1581
1581
|
};
|
|
@@ -1586,9 +1586,9 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1586
1586
|
S.value && k.value !== (window == null ? void 0 : window.innerWidth) && (k.value = window == null ? void 0 : window.innerWidth, O(!1));
|
|
1587
1587
|
}, 200), k = q(), L = q(!1), U = q(), J = () => {
|
|
1588
1588
|
L.value || (L.value = !0, clearTimeout(U.value), U.value = setTimeout(() => L.value = !1, 1300));
|
|
1589
|
-
}, Y = q(null), W =
|
|
1590
|
-
var u,
|
|
1591
|
-
s ? (await kn(), await new Promise((m) => setTimeout(m, 300)), (u = Y.value) == null || u.activate()) : (
|
|
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();
|
|
1592
1592
|
};
|
|
1593
1593
|
return Pe(W, async (s) => {
|
|
1594
1594
|
s ? await C(!0) : await C(!1);
|
|
@@ -1596,8 +1596,8 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1596
1596
|
k.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", G), window.addEventListener("resize", J);
|
|
1597
1597
|
}), Kt(() => {
|
|
1598
1598
|
window.removeEventListener("resize", G), window.removeEventListener("resize", J);
|
|
1599
|
-
}), (s, u) => (
|
|
1600
|
-
S.value && n.mobileOverlay && n.mobileEnabled ? (
|
|
1599
|
+
}), (s, u) => (p(), I(Oe, null, [
|
|
1600
|
+
S.value && n.mobileOverlay && n.mobileEnabled ? (p(), I("div", {
|
|
1601
1601
|
key: 0,
|
|
1602
1602
|
class: "kong-ui-app-sidebar-overlay",
|
|
1603
1603
|
onClick: V
|
|
@@ -1609,7 +1609,7 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1609
1609
|
"allow-outside-click": "",
|
|
1610
1610
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1611
1611
|
}, {
|
|
1612
|
-
default:
|
|
1612
|
+
default: Z(() => [
|
|
1613
1613
|
T("aside", {
|
|
1614
1614
|
class: ie(["kong-ui-app-sidebar", {
|
|
1615
1615
|
"sidebar-open": S.value,
|
|
@@ -1620,33 +1620,33 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1620
1620
|
}]),
|
|
1621
1621
|
tabindex: "-1"
|
|
1622
1622
|
}, [
|
|
1623
|
-
l.value ? (
|
|
1624
|
-
|
|
1623
|
+
l.value ? (p(), I("div", Pr, [
|
|
1624
|
+
N(s.$slots, "header", {}, void 0, !0)
|
|
1625
1625
|
])) : x("", !0),
|
|
1626
1626
|
T("div", Mr, [
|
|
1627
|
-
|
|
1628
|
-
|
|
1627
|
+
d.value ? (p(), I("div", Zr, [
|
|
1628
|
+
N(s.$slots, "top", {}, void 0, !0)
|
|
1629
1629
|
])) : x("", !0),
|
|
1630
1630
|
T("nav", jr, [
|
|
1631
|
-
|
|
1632
|
-
(
|
|
1633
|
-
key:
|
|
1634
|
-
item:
|
|
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,
|
|
1635
1635
|
onClick: M
|
|
1636
1636
|
}, null, 8, ["item"]))), 128))
|
|
1637
1637
|
])) : x("", !0),
|
|
1638
|
-
|
|
1639
|
-
D.value.length ? (
|
|
1640
|
-
(
|
|
1641
|
-
key:
|
|
1642
|
-
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,
|
|
1643
1643
|
onClick: M
|
|
1644
1644
|
}, null, 8, ["item"]))), 128))
|
|
1645
1645
|
])) : x("", !0)
|
|
1646
1646
|
])
|
|
1647
1647
|
]),
|
|
1648
1648
|
T("div", Vr, [
|
|
1649
|
-
|
|
1649
|
+
N(s.$slots, "footer", {}, void 0, !0)
|
|
1650
1650
|
])
|
|
1651
1651
|
], 2)
|
|
1652
1652
|
]),
|
|
@@ -1655,7 +1655,7 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1655
1655
|
], 64));
|
|
1656
1656
|
}
|
|
1657
1657
|
});
|
|
1658
|
-
const Ur = /* @__PURE__ */ ne(Gr, [["__scopeId", "data-v-9cac378b"]]),
|
|
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
1659
|
qr,
|
|
1660
1660
|
Yr,
|
|
1661
1661
|
Xr
|
|
@@ -1672,9 +1672,9 @@ const Ur = /* @__PURE__ */ ne(Gr, [["__scopeId", "data-v-9cac378b"]]), dt = (n)
|
|
|
1672
1672
|
const a = n, r = q(a.active || !1), l = () => {
|
|
1673
1673
|
r.value = !r.value, t("toggle", r.value);
|
|
1674
1674
|
};
|
|
1675
|
-
return Pe(() => a.active, (
|
|
1676
|
-
r.value =
|
|
1677
|
-
}), (
|
|
1675
|
+
return Pe(() => a.active, (d) => {
|
|
1676
|
+
r.value = d;
|
|
1677
|
+
}), (d, o) => (p(), I("a", {
|
|
1678
1678
|
"aria-haspopup": "true",
|
|
1679
1679
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1680
1680
|
class: ie(["sidebar-menu-toggle", { active: r.value }]),
|
|
@@ -1723,44 +1723,44 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1723
1723
|
emits: ["sidebar-click"],
|
|
1724
1724
|
setup(n, { emit: t }) {
|
|
1725
1725
|
const a = n;
|
|
1726
|
-
|
|
1726
|
+
ut((k) => ({
|
|
1727
1727
|
"2267861a": V.value,
|
|
1728
|
-
"064bdbb4":
|
|
1728
|
+
"064bdbb4": j.value
|
|
1729
1729
|
}));
|
|
1730
|
-
const r =
|
|
1731
|
-
navbarLeft:
|
|
1732
|
-
navbarCenter:
|
|
1733
|
-
navbarRight:
|
|
1734
|
-
navbarLogo:
|
|
1735
|
-
navbarMobileLogo:
|
|
1736
|
-
sidebarHeader:
|
|
1737
|
-
sidebarTop:
|
|
1738
|
-
sidebarFooter:
|
|
1739
|
-
}),
|
|
1740
|
-
hidden:
|
|
1741
|
-
}), v =
|
|
1742
|
-
topItems:
|
|
1743
|
-
bottomItems:
|
|
1744
|
-
open:
|
|
1745
|
-
hidden:
|
|
1746
|
-
}),
|
|
1730
|
+
const r = dt(), l = Le({
|
|
1731
|
+
navbarLeft: g(() => !!r["navbar-left"]),
|
|
1732
|
+
navbarCenter: g(() => !!r["navbar-center"]),
|
|
1733
|
+
navbarRight: g(() => !!r["navbar-right"]),
|
|
1734
|
+
navbarLogo: g(() => !!r["navbar-logo"]),
|
|
1735
|
+
navbarMobileLogo: g(() => !!r["navbar-mobile-logo"]),
|
|
1736
|
+
sidebarHeader: g(() => !!r["sidebar-header"]),
|
|
1737
|
+
sidebarTop: g(() => !!r["sidebar-top"]),
|
|
1738
|
+
sidebarFooter: g(() => !!r["sidebar-footer"])
|
|
1739
|
+
}), d = g(() => a.hideDefaultSlot), o = Le({
|
|
1740
|
+
hidden: g(() => a.navbarHidden)
|
|
1741
|
+
}), v = Le({
|
|
1742
|
+
topItems: g(() => a.sidebarTopItems),
|
|
1743
|
+
bottomItems: g(() => a.sidebarBottomItems),
|
|
1744
|
+
open: g(() => a.sidebarOpen),
|
|
1745
|
+
hidden: g(() => a.sidebarHidden)
|
|
1746
|
+
}), h = (k) => {
|
|
1747
1747
|
t("sidebar-click", k);
|
|
1748
|
-
},
|
|
1749
|
-
|
|
1748
|
+
}, y = q(!1), F = (k) => {
|
|
1749
|
+
y.value = k;
|
|
1750
1750
|
};
|
|
1751
1751
|
In(() => {
|
|
1752
|
-
|
|
1752
|
+
y.value = On(v, "open").value || !1;
|
|
1753
1753
|
});
|
|
1754
|
-
const
|
|
1755
|
-
if (k ||
|
|
1756
|
-
|
|
1754
|
+
const $ = q(0), D = q(60), S = q(0), O = g(() => o.hidden ? S.value : D.value + S.value), V = g(() => `${O.value}px`), j = g(() => v.hidden || o.hidden ? ti : ai), { debounce: M } = Xt(), ee = M((k = !1) => {
|
|
1755
|
+
if (k || $.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1756
|
+
$.value = window == null ? void 0 : window.innerWidth;
|
|
1757
1757
|
const L = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1758
1758
|
L && (S.value = L.offsetHeight);
|
|
1759
1759
|
}
|
|
1760
1760
|
}, 200), G = q();
|
|
1761
1761
|
return Ue(() => {
|
|
1762
1762
|
var L, U;
|
|
1763
|
-
(L = document == null ? void 0 : document.body) == null || L.classList.add("kong-ui-app-layout-body"), (U = document == null ? void 0 : document.documentElement) == null || U.classList.add("kong-ui-app-layout-html"),
|
|
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
1764
|
const k = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1765
1765
|
k && (G.value = new ResizeObserver((J) => {
|
|
1766
1766
|
window.requestAnimationFrame(() => {
|
|
@@ -1773,24 +1773,24 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1773
1773
|
}), G.value.observe(k)), window.addEventListener("resize", ee);
|
|
1774
1774
|
}), Kt(() => {
|
|
1775
1775
|
G.value && G.value.disconnect(), window.removeEventListener("resize", ee);
|
|
1776
|
-
}), (k, L) => (
|
|
1776
|
+
}), (k, L) => (p(), I("div", {
|
|
1777
1777
|
class: ie(["kong-ui-app-layout", [
|
|
1778
1778
|
{ "navbar-hidden": o.hidden },
|
|
1779
1779
|
{ "sidebar-hidden": v.hidden }
|
|
1780
1780
|
]])
|
|
1781
1781
|
}, [
|
|
1782
1782
|
T("div", ri, [
|
|
1783
|
-
|
|
1783
|
+
N(k.$slots, "notification", {}, void 0, !0)
|
|
1784
1784
|
]),
|
|
1785
|
-
o.hidden ? x("", !0) : (
|
|
1785
|
+
o.hidden ? x("", !0) : (p(), Q(qn, {
|
|
1786
1786
|
key: String(v.hidden),
|
|
1787
1787
|
"left-offset": v.hidden ? 0 : void 0,
|
|
1788
1788
|
"top-offset": S.value
|
|
1789
|
-
},
|
|
1790
|
-
"mobile-sidebar-toggle":
|
|
1791
|
-
v.hidden ? x("", !0) : (
|
|
1789
|
+
}, ct({
|
|
1790
|
+
"mobile-sidebar-toggle": Z(() => [
|
|
1791
|
+
v.hidden ? x("", !0) : (p(), Q(ei, {
|
|
1792
1792
|
key: 0,
|
|
1793
|
-
active:
|
|
1793
|
+
active: y.value,
|
|
1794
1794
|
onToggle: F
|
|
1795
1795
|
}, null, 8, ["active"]))
|
|
1796
1796
|
]),
|
|
@@ -1798,75 +1798,75 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1798
1798
|
}, [
|
|
1799
1799
|
l.navbarMobileLogo ? {
|
|
1800
1800
|
name: "mobile-logo",
|
|
1801
|
-
fn:
|
|
1801
|
+
fn: Z(() => [
|
|
1802
1802
|
T("div", ii, [
|
|
1803
|
-
|
|
1803
|
+
N(k.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1804
1804
|
])
|
|
1805
1805
|
]),
|
|
1806
1806
|
key: "0"
|
|
1807
1807
|
} : void 0,
|
|
1808
1808
|
l.navbarLogo ? {
|
|
1809
1809
|
name: "logo",
|
|
1810
|
-
fn:
|
|
1811
|
-
v.hidden ? (
|
|
1812
|
-
|
|
1810
|
+
fn: Z(() => [
|
|
1811
|
+
v.hidden ? (p(), I("div", oi, [
|
|
1812
|
+
N(k.$slots, "navbar-logo", {}, void 0, !0)
|
|
1813
1813
|
])) : x("", !0)
|
|
1814
1814
|
]),
|
|
1815
1815
|
key: "1"
|
|
1816
1816
|
} : void 0,
|
|
1817
1817
|
l.navbarLeft ? {
|
|
1818
1818
|
name: "left",
|
|
1819
|
-
fn:
|
|
1820
|
-
|
|
1819
|
+
fn: Z(() => [
|
|
1820
|
+
N(k.$slots, "navbar-left", {}, void 0, !0)
|
|
1821
1821
|
]),
|
|
1822
1822
|
key: "2"
|
|
1823
1823
|
} : void 0,
|
|
1824
1824
|
l.navbarCenter ? {
|
|
1825
1825
|
name: "center",
|
|
1826
|
-
fn:
|
|
1827
|
-
|
|
1826
|
+
fn: Z(() => [
|
|
1827
|
+
N(k.$slots, "navbar-center", {}, void 0, !0)
|
|
1828
1828
|
]),
|
|
1829
1829
|
key: "3"
|
|
1830
1830
|
} : void 0,
|
|
1831
1831
|
l.navbarRight ? {
|
|
1832
1832
|
name: "right",
|
|
1833
|
-
fn:
|
|
1834
|
-
|
|
1833
|
+
fn: Z(() => [
|
|
1834
|
+
N(k.$slots, "navbar-right", {}, void 0, !0)
|
|
1835
1835
|
]),
|
|
1836
1836
|
key: "4"
|
|
1837
1837
|
} : void 0
|
|
1838
1838
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1839
|
-
v.hidden ? x("", !0) : (
|
|
1839
|
+
v.hidden ? x("", !0) : (p(), Q(Ur, {
|
|
1840
1840
|
key: 1,
|
|
1841
1841
|
"bottom-items": v.bottomItems,
|
|
1842
1842
|
"header-height": D.value,
|
|
1843
1843
|
"mobile-enabled": "",
|
|
1844
1844
|
"mobile-header-visible": !1,
|
|
1845
1845
|
"mobile-top-offset": O.value,
|
|
1846
|
-
open:
|
|
1846
|
+
open: y.value,
|
|
1847
1847
|
"top-items": v.topItems,
|
|
1848
1848
|
"top-offset": S.value,
|
|
1849
|
-
onClick:
|
|
1849
|
+
onClick: h,
|
|
1850
1850
|
onToggle: F
|
|
1851
|
-
},
|
|
1851
|
+
}, ct({ _: 2 }, [
|
|
1852
1852
|
l.sidebarHeader ? {
|
|
1853
1853
|
name: "header",
|
|
1854
|
-
fn:
|
|
1855
|
-
|
|
1854
|
+
fn: Z(() => [
|
|
1855
|
+
N(k.$slots, "sidebar-header", {}, void 0, !0)
|
|
1856
1856
|
]),
|
|
1857
1857
|
key: "0"
|
|
1858
1858
|
} : void 0,
|
|
1859
1859
|
l.sidebarTop ? {
|
|
1860
1860
|
name: "top",
|
|
1861
|
-
fn:
|
|
1862
|
-
|
|
1861
|
+
fn: Z(() => [
|
|
1862
|
+
N(k.$slots, "sidebar-top", {}, void 0, !0)
|
|
1863
1863
|
]),
|
|
1864
1864
|
key: "1"
|
|
1865
1865
|
} : void 0,
|
|
1866
1866
|
l.sidebarFooter ? {
|
|
1867
1867
|
name: "footer",
|
|
1868
|
-
fn:
|
|
1869
|
-
|
|
1868
|
+
fn: Z(() => [
|
|
1869
|
+
N(k.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1870
1870
|
]),
|
|
1871
1871
|
key: "2"
|
|
1872
1872
|
} : void 0
|
|
@@ -1875,15 +1875,15 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1875
1875
|
T("div", ci, [
|
|
1876
1876
|
T("div", li, [
|
|
1877
1877
|
ui,
|
|
1878
|
-
|
|
1879
|
-
|
|
1878
|
+
N(k.$slots, "app-error", {}, void 0, !0),
|
|
1879
|
+
d.value ? x("", !0) : N(k.$slots, "default", { key: 0 }, void 0, !0)
|
|
1880
1880
|
])
|
|
1881
1881
|
])
|
|
1882
1882
|
])
|
|
1883
1883
|
], 2));
|
|
1884
1884
|
}
|
|
1885
1885
|
});
|
|
1886
|
-
const fi = /* @__PURE__ */ ne(di, [["__scopeId", "data-v-bf6a615f"]]), vi = (n) => (Ve("data-v-
|
|
1886
|
+
const fi = /* @__PURE__ */ ne(di, [["__scopeId", "data-v-bf6a615f"]]), vi = (n) => (Ve("data-v-be0ef8be"), n = n(), Ge(), n), bi = { class: "kong-ui-app-page-header" }, hi = {
|
|
1887
1887
|
key: 0,
|
|
1888
1888
|
class: "page-header-breadcrumbs",
|
|
1889
1889
|
"data-testid": "page-header-breadcrumbs"
|
|
@@ -1916,47 +1916,54 @@ const fi = /* @__PURE__ */ ne(di, [["__scopeId", "data-v-bf6a615f"]]), vi = (n)
|
|
|
1916
1916
|
}
|
|
1917
1917
|
},
|
|
1918
1918
|
setup(n) {
|
|
1919
|
-
const t = n, a =
|
|
1920
|
-
var
|
|
1921
|
-
return !!((
|
|
1922
|
-
});
|
|
1923
|
-
return (
|
|
1924
|
-
const
|
|
1925
|
-
return
|
|
1926
|
-
a.value ? (
|
|
1927
|
-
ze(
|
|
1928
|
-
divider:
|
|
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({
|
|
1928
|
+
divider: Z(() => [
|
|
1929
1929
|
pi
|
|
1930
1930
|
]),
|
|
1931
|
-
_:
|
|
1932
|
-
},
|
|
1931
|
+
_: 2
|
|
1932
|
+
}, [
|
|
1933
|
+
Ne(l.value, (h) => ({
|
|
1934
|
+
name: h,
|
|
1935
|
+
fn: Z(() => [
|
|
1936
|
+
N(d.$slots, h, {}, void 0, !0)
|
|
1937
|
+
])
|
|
1938
|
+
}))
|
|
1939
|
+
]), 1032, ["items"])
|
|
1933
1940
|
])) : x("", !0),
|
|
1934
1941
|
T("div", mi, [
|
|
1935
1942
|
T("div", gi, [
|
|
1936
|
-
|
|
1937
|
-
|
|
1943
|
+
d.$slots["title-before"] ? (p(), I("div", yi, [
|
|
1944
|
+
N(d.$slots, "title-before", {}, void 0, !0)
|
|
1938
1945
|
])) : x("", !0),
|
|
1939
1946
|
T("h1", {
|
|
1940
1947
|
class: "page-header-title",
|
|
1941
1948
|
"data-testid": "page-header-title",
|
|
1942
1949
|
title: n.title
|
|
1943
1950
|
}, _e(n.title), 9, _i),
|
|
1944
|
-
|
|
1945
|
-
|
|
1951
|
+
d.$slots["title-after"] ? (p(), I("div", wi, [
|
|
1952
|
+
N(d.$slots, "title-after", {}, void 0, !0)
|
|
1946
1953
|
])) : x("", !0)
|
|
1947
1954
|
]),
|
|
1948
|
-
|
|
1949
|
-
|
|
1955
|
+
d.$slots.actions ? (p(), I("div", Ti, [
|
|
1956
|
+
N(d.$slots, "actions", {}, void 0, !0)
|
|
1950
1957
|
])) : x("", !0)
|
|
1951
1958
|
]),
|
|
1952
|
-
|
|
1953
|
-
|
|
1959
|
+
d.$slots.below ? (p(), I("div", ki, [
|
|
1960
|
+
N(d.$slots, "below", {}, void 0, !0)
|
|
1954
1961
|
])) : x("", !0)
|
|
1955
1962
|
]);
|
|
1956
1963
|
};
|
|
1957
1964
|
}
|
|
1958
1965
|
});
|
|
1959
|
-
const Ni = /* @__PURE__ */ ne(Si, [["__scopeId", "data-v-
|
|
1966
|
+
const Ni = /* @__PURE__ */ ne(Si, [["__scopeId", "data-v-be0ef8be"]]), $i = {
|
|
1960
1967
|
// Customize Vue plugin options as desired
|
|
1961
1968
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
1962
1969
|
install: (n, t = {}) => {
|
|
@@ -1971,5 +1978,5 @@ export {
|
|
|
1971
1978
|
Ni as AppPageHeader,
|
|
1972
1979
|
Ur as AppSidebar,
|
|
1973
1980
|
ei as SidebarToggle,
|
|
1974
|
-
|
|
1981
|
+
$i as default
|
|
1975
1982
|
};
|