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