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