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