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