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