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