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