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