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