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