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