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