@kong-ui-public/app-layout 5.1.7 → 5.1.8-pr.4063.f9e4f8cdb.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 +2195 -2588
- package/dist/app-layout.umd.js +3 -3
- package/dist/style.css +2 -1
- package/package.json +3 -3
package/dist/app-layout.es.js
CHANGED
|
@@ -1,2614 +1,2221 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
})
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
St((i) => ({
|
|
261
|
-
v4b7bbbb4: c.value.top,
|
|
262
|
-
v1c1e69b9: c.value.zIndex,
|
|
263
|
-
v23f7f188: c.value.left,
|
|
264
|
-
v72a8a150: s.marginRight,
|
|
265
|
-
v0b2fff88: s.width
|
|
266
|
-
}));
|
|
267
|
-
const e = a, r = rt(), n = C(() => !!r.logo), s = qe({
|
|
268
|
-
marginRight: "0",
|
|
269
|
-
width: "0"
|
|
270
|
-
});
|
|
271
|
-
je(() => {
|
|
272
|
-
document?.querySelector(".kong-ui-app-navbar .app-navbar-logo")?.children?.length ? (s.marginRight = "32px", s.width = "calc(240px - 32px)") : (s.marginRight = "0", s.width = "0");
|
|
273
|
-
});
|
|
274
|
-
const c = C(() => ({
|
|
275
|
-
top: e.topOffset ? `${e.topOffset}px` : "0",
|
|
276
|
-
left: e.leftOffset ? `${e.leftOffset}px` : "0",
|
|
277
|
-
zIndex: e.zIndex
|
|
278
|
-
}));
|
|
279
|
-
return (i, v) => (p(), T("header", yr, [
|
|
280
|
-
I("div", wr, [
|
|
281
|
-
I("div", kr, [
|
|
282
|
-
O(i.$slots, "mobile-sidebar-toggle"),
|
|
283
|
-
O(i.$slots, "mobile-logo")
|
|
284
|
-
]),
|
|
285
|
-
n.value ? (p(), T("div", Sr, [
|
|
286
|
-
O(i.$slots, "logo")
|
|
287
|
-
])) : F("", !0),
|
|
288
|
-
I("div", Tr, [
|
|
289
|
-
I("div", Ir, [
|
|
290
|
-
O(i.$slots, "left")
|
|
291
|
-
]),
|
|
292
|
-
I("div", Cr, [
|
|
293
|
-
O(i.$slots, "center")
|
|
294
|
-
]),
|
|
295
|
-
I("div", _r, [
|
|
296
|
-
O(i.$slots, "right")
|
|
297
|
-
])
|
|
298
|
-
])
|
|
299
|
-
])
|
|
300
|
-
]));
|
|
301
|
-
}
|
|
302
|
-
}), $r = /* @__PURE__ */ oe(Or, [["__scopeId", "data-v-537ba5e0"]]), ht = /* @__PURE__ */ new WeakMap(), Er = /* @__NO_SIDE_EFFECTS__ */ (...a) => {
|
|
303
|
-
var e;
|
|
304
|
-
const r = a[0], n = (e = ta()) === null || e === void 0 ? void 0 : e.proxy, s = n ?? Nn();
|
|
305
|
-
if (s == null && !aa()) throw new Error("injectLocal must be called in setup");
|
|
306
|
-
return s && ht.has(s) && r in ht.get(s) ? ht.get(s)[r] : Fn(...a);
|
|
307
|
-
}, Ar = typeof window < "u" && typeof document < "u";
|
|
1
|
+
import { Comment as e, Fragment as t, cloneVNode as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createStaticVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, getCurrentScope as m, hasInjectionContext as h, inject as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, onUnmounted as x, openBlock as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as A, toRef as ee, toValue as j, unref as M, useCssVars as te, useSlots as N, watch as P, watchEffect as ne, withCtx as F, withKeys as re, withModifiers as ie } from "vue";
|
|
2
|
+
import { ChevronDownIcon as ae, ChevronRightIcon as oe } from "@kong/icons";
|
|
3
|
+
import { HeaderTags as I, KButton as se } from "@kong/kongponents";
|
|
4
|
+
// \0rolldown/runtime.js
|
|
5
|
+
var L = Object.create, ce = Object.defineProperty, le = Object.getOwnPropertyDescriptor, R = Object.getOwnPropertyNames, ue = Object.getPrototypeOf, de = Object.prototype.hasOwnProperty, fe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), pe = (e, t, n, r) => {
|
|
6
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = R(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !de.call(e, s) && s !== n && ce(e, s, {
|
|
7
|
+
get: ((e) => t[e]).bind(null, s),
|
|
8
|
+
enumerable: !(r = le(t, s)) || r.enumerable
|
|
9
|
+
});
|
|
10
|
+
return e;
|
|
11
|
+
}, me = (e, t, n) => (n = e == null ? {} : L(ue(e)), pe(t || !e || !e.__esModule || !de.call(e, "default") ? ce(n, "default", {
|
|
12
|
+
value: e,
|
|
13
|
+
enumerable: !0
|
|
14
|
+
}) : n, e)), he = /*@__PURE__*/ f({
|
|
15
|
+
__name: "AccountDropdown",
|
|
16
|
+
props: {
|
|
17
|
+
options: {
|
|
18
|
+
type: Array,
|
|
19
|
+
required: !0
|
|
20
|
+
},
|
|
21
|
+
width: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "240"
|
|
24
|
+
},
|
|
25
|
+
userInitials: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: !0,
|
|
28
|
+
default: " "
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(e) {
|
|
32
|
+
return (n, r) => {
|
|
33
|
+
let a = D("KDropdownItem"), s = D("KDropdown");
|
|
34
|
+
return S(), i(s, {
|
|
35
|
+
class: "account-dropdown",
|
|
36
|
+
"kpop-attributes": { placement: "bottom-end" },
|
|
37
|
+
"trigger-text": e.userInitials,
|
|
38
|
+
width: e.width
|
|
39
|
+
}, {
|
|
40
|
+
items: F(({ handleSelection: r }) => [E(n.$slots, "default", {}, () => [(S(!0), o(t, null, T(e.options, (e) => (S(), i(a, {
|
|
41
|
+
key: e.value,
|
|
42
|
+
class: v({ "has-divider": e.hasDivider }),
|
|
43
|
+
"data-testid": "select-" + e.value,
|
|
44
|
+
"has-divider": e.hasDivider,
|
|
45
|
+
onClick: (t) => r(e)
|
|
46
|
+
}, {
|
|
47
|
+
default: F(() => [E(n.$slots, "default", { option: e }, () => [u(A(e.label), 1)], !0)]),
|
|
48
|
+
_: 2
|
|
49
|
+
}, 1032, [
|
|
50
|
+
"class",
|
|
51
|
+
"data-testid",
|
|
52
|
+
"has-divider",
|
|
53
|
+
"onClick"
|
|
54
|
+
]))), 128))], !0)]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 8, ["trigger-text", "width"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}), z = (e, t) => {
|
|
60
|
+
let n = e.__vccOpts || e;
|
|
61
|
+
for (let [e, r] of t) n[e] = r;
|
|
62
|
+
return n;
|
|
63
|
+
}, B = /*#__PURE__*/ z(he, [["__scopeId", "data-v-740b4c70"]]), ge = {
|
|
64
|
+
class: "about-section-title",
|
|
65
|
+
"data-testid": "about-section-title"
|
|
66
|
+
}, _e = { class: "about-section-header-end" }, V = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "about-section-timestamps-created",
|
|
69
|
+
"data-testid": "about-section-timestamps-created"
|
|
70
|
+
}, ve = {
|
|
71
|
+
key: 1,
|
|
72
|
+
class: "about-section-timestamps-arrow"
|
|
73
|
+
}, ye = {
|
|
74
|
+
key: 2,
|
|
75
|
+
class: "about-section-timestamps-modified",
|
|
76
|
+
"data-testid": "about-section-timestamps-modified"
|
|
77
|
+
}, be = {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: "about-section-actions",
|
|
80
|
+
"data-testid": "about-section-actions"
|
|
81
|
+
}, xe = {
|
|
82
|
+
key: 0,
|
|
83
|
+
"data-testid": "about-section-loading-skeleton"
|
|
84
|
+
}, Se = { key: 1 }, Ce = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "about-section-description",
|
|
87
|
+
"data-testid": "about-section-description"
|
|
88
|
+
}, we = {
|
|
89
|
+
key: 1,
|
|
90
|
+
class: "about-section-content",
|
|
91
|
+
"data-testid": "about-section-content"
|
|
92
|
+
}, Te = {
|
|
93
|
+
key: 2,
|
|
94
|
+
"data-testid": "about-divider-section-separator"
|
|
95
|
+
}, Ee = {
|
|
96
|
+
key: 3,
|
|
97
|
+
class: "about-divider-section",
|
|
98
|
+
"data-testid": "about-divider-section"
|
|
99
|
+
}, De = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
100
|
+
__name: "AppAboutSection",
|
|
101
|
+
props: {
|
|
102
|
+
title: { default: "" },
|
|
103
|
+
description: { default: "" },
|
|
104
|
+
created: { default: "" },
|
|
105
|
+
createdLabel: { default: "Created" },
|
|
106
|
+
modified: { default: "" },
|
|
107
|
+
modifiedLabel: { default: "Modified" },
|
|
108
|
+
isLoading: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: !1
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
setup(e) {
|
|
114
|
+
let t = e, n = r(() => !!t.modified && t.modified !== t.created);
|
|
115
|
+
return (t, r) => {
|
|
116
|
+
let l = D("KSkeletonBox"), f = D("KCard");
|
|
117
|
+
return S(), i(f, {
|
|
118
|
+
class: "kong-ui-app-about-section",
|
|
119
|
+
"title-tag": "h2"
|
|
120
|
+
}, c({
|
|
121
|
+
default: F(() => [e.isLoading ? (S(), o("div", xe, [d(l, {
|
|
122
|
+
height: "2",
|
|
123
|
+
width: "100"
|
|
124
|
+
}), d(l, {
|
|
125
|
+
height: "2",
|
|
126
|
+
width: "100"
|
|
127
|
+
})])) : (S(), o("div", Se, [
|
|
128
|
+
e.description ? (S(), o("p", Ce, A(e.description), 1)) : a("", !0),
|
|
129
|
+
t.$slots.default ? (S(), o("div", we, [E(t.$slots, "default", {}, void 0, !0)])) : a("", !0),
|
|
130
|
+
t.$slots["divider-section"] ? (S(), o("hr", Te)) : a("", !0),
|
|
131
|
+
t.$slots["divider-section"] ? (S(), o("div", Ee, [E(t.$slots, "divider-section", {}, void 0, !0)])) : a("", !0)
|
|
132
|
+
]))]),
|
|
133
|
+
_: 2
|
|
134
|
+
}, [t.$slots.title || e.title ? {
|
|
135
|
+
name: "title",
|
|
136
|
+
fn: F(() => [s("span", ge, [E(t.$slots, "title", {}, () => [u(A(e.title), 1)], !0)])]),
|
|
137
|
+
key: "0"
|
|
138
|
+
} : void 0, t.$slots.actions || e.created || e.modified ? {
|
|
139
|
+
name: "actions",
|
|
140
|
+
fn: F(() => [s("div", _e, [e.created || e.modified ? (S(), o("div", {
|
|
141
|
+
key: 0,
|
|
142
|
+
class: v(["about-section-timestamps", { "has-actions": t.$slots.actions }])
|
|
143
|
+
}, [
|
|
144
|
+
e.created ? (S(), o("span", V, A(e.createdLabel) + ": " + A(e.created), 1)) : a("", !0),
|
|
145
|
+
e.created && n.value ? (S(), o("span", ve, "->")) : a("", !0),
|
|
146
|
+
n.value ? (S(), o("span", ye, A(e.modifiedLabel) + ": " + A(e.modified), 1)) : a("", !0)
|
|
147
|
+
], 2)) : a("", !0), t.$slots.actions ? (S(), o("div", be, [E(t.$slots, "actions", {}, void 0, !0)])) : a("", !0)])]),
|
|
148
|
+
key: "1"
|
|
149
|
+
} : void 0]), 1024);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}), [["__scopeId", "data-v-90b5a21c"]]), Oe = "#ffffff", ke = "#0044f4", Ae = "#0d0e14", je = "#0d0e14", Me = "#ffffff", Ne = "640px", Pe = "16px", Fe = "#bee2ff", Ie = {
|
|
153
|
+
fill: "none",
|
|
154
|
+
height: "130",
|
|
155
|
+
width: "130",
|
|
156
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
157
|
+
}, Le = ["stroke"], Re = /* @__PURE__ */ f({
|
|
158
|
+
__name: "BananaSplit",
|
|
159
|
+
setup(e) {
|
|
160
|
+
let t = r(() => `var(--kui-color-background-accent, ${ke})`);
|
|
161
|
+
return (e, n) => (S(), o("svg", Ie, [
|
|
162
|
+
n[1] ||= s("path", {
|
|
163
|
+
"clip-rule": "evenodd",
|
|
164
|
+
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",
|
|
165
|
+
fill: "#D6D6D6",
|
|
166
|
+
"fill-rule": "evenodd"
|
|
167
|
+
}, null, -1),
|
|
168
|
+
n[2] ||= s("path", {
|
|
169
|
+
"clip-rule": "evenodd",
|
|
170
|
+
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",
|
|
171
|
+
fill: "#D6D6D6",
|
|
172
|
+
"fill-rule": "evenodd"
|
|
173
|
+
}, null, -1),
|
|
174
|
+
n[3] ||= s("circle", {
|
|
175
|
+
cx: "65",
|
|
176
|
+
cy: "65",
|
|
177
|
+
opacity: ".5",
|
|
178
|
+
r: "64",
|
|
179
|
+
stroke: "#B6B6BD",
|
|
180
|
+
"stroke-dasharray": "5.69 5.69",
|
|
181
|
+
"stroke-linecap": "round",
|
|
182
|
+
"stroke-width": ".854"
|
|
183
|
+
}, null, -1),
|
|
184
|
+
s("g", {
|
|
185
|
+
"clip-path": "url(#a)",
|
|
186
|
+
stroke: t.value,
|
|
187
|
+
"stroke-miterlimit": "10",
|
|
188
|
+
"stroke-width": "1.42"
|
|
189
|
+
}, [...n[0] ||= [l("<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>", 7)]], 8, Le),
|
|
190
|
+
n[4] ||= s("defs", null, [s("clipPath", { id: "a" }, [s("path", {
|
|
191
|
+
d: "M0 0h79v85H0z",
|
|
192
|
+
fill: "#fff",
|
|
193
|
+
transform: "translate(26 22)"
|
|
194
|
+
})])], -1)
|
|
195
|
+
]));
|
|
196
|
+
}
|
|
197
|
+
}), ze = { class: "kong-ui-app-error" }, Be = { class: "banana-icon" }, Ve = { class: "kong-ui-app-error-content" }, He = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
198
|
+
__name: "AppError",
|
|
199
|
+
setup(e) {
|
|
200
|
+
return (e, t) => (S(), o("section", ze, [s("div", Be, [d(Re)]), s("div", Ve, [E(e.$slots, "default", {}, () => [t[0] ||= s("h2", null, "An unexpected error has occurred", -1), t[1] ||= s("p", null, [
|
|
201
|
+
u("Go back to the previous page or "),
|
|
202
|
+
s("a", { href: "/" }, "return home"),
|
|
203
|
+
u(".")
|
|
204
|
+
], -1)], !0)])]));
|
|
205
|
+
}
|
|
206
|
+
}), [["__scopeId", "data-v-b083aa95"]]), H = { class: "kong-ui-app-navbar" }, Ue = { class: "header-content" }, We = { class: "mobile-header-left" }, Ge = {
|
|
207
|
+
key: 0,
|
|
208
|
+
class: "app-navbar-logo"
|
|
209
|
+
}, Ke = { class: "navbar-content" }, qe = { class: "navbar-content-left" }, U = { class: "navbar-content-center" }, Je = { class: "navbar-content-right" }, Ye = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
210
|
+
__name: "AppNavbar",
|
|
211
|
+
props: {
|
|
212
|
+
topOffset: {
|
|
213
|
+
type: Number,
|
|
214
|
+
default: 0
|
|
215
|
+
},
|
|
216
|
+
leftOffset: {
|
|
217
|
+
type: Number,
|
|
218
|
+
default: 240
|
|
219
|
+
},
|
|
220
|
+
zIndex: {
|
|
221
|
+
type: Number,
|
|
222
|
+
default: 3
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
setup(e) {
|
|
226
|
+
te((e) => ({
|
|
227
|
+
v4b7bbbb4: l.value.top,
|
|
228
|
+
v1c1e69b9: l.value.zIndex,
|
|
229
|
+
v23f7f188: l.value.left,
|
|
230
|
+
v72a8a150: c.marginRight,
|
|
231
|
+
v0b2fff88: c.width
|
|
232
|
+
}));
|
|
233
|
+
let t = e, n = N(), i = r(() => !!n.logo), c = C({
|
|
234
|
+
marginRight: "0",
|
|
235
|
+
width: "0"
|
|
236
|
+
});
|
|
237
|
+
b(() => {
|
|
238
|
+
document?.querySelector(".kong-ui-app-navbar .app-navbar-logo")?.children?.length ? (c.marginRight = "32px", c.width = "calc(240px - 32px)") : (c.marginRight = "0", c.width = "0");
|
|
239
|
+
});
|
|
240
|
+
let l = r(() => ({
|
|
241
|
+
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
242
|
+
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
243
|
+
zIndex: t.zIndex
|
|
244
|
+
}));
|
|
245
|
+
return (e, t) => (S(), o("header", H, [s("div", Ue, [
|
|
246
|
+
s("div", We, [E(e.$slots, "mobile-sidebar-toggle"), E(e.$slots, "mobile-logo")]),
|
|
247
|
+
i.value ? (S(), o("div", Ge, [E(e.$slots, "logo")])) : a("", !0),
|
|
248
|
+
s("div", Ke, [
|
|
249
|
+
s("div", qe, [E(e.$slots, "left")]),
|
|
250
|
+
s("div", U, [E(e.$slots, "center")]),
|
|
251
|
+
s("div", Je, [E(e.$slots, "right")])
|
|
252
|
+
])
|
|
253
|
+
])]));
|
|
254
|
+
}
|
|
255
|
+
}), [["__scopeId", "data-v-537ba5e0"]]), Xe = /* @__PURE__ */ new WeakMap(), Ze = (...e) => {
|
|
256
|
+
let t = e[0], n = p()?.proxy ?? m();
|
|
257
|
+
if (n == null && !h()) throw Error("injectLocal must be called in setup");
|
|
258
|
+
return n && Xe.has(n) && t in Xe.get(n) ? Xe.get(n)[t] : g(...e);
|
|
259
|
+
}, Qe = typeof window < "u" && typeof document < "u";
|
|
308
260
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
309
|
-
|
|
310
|
-
function
|
|
311
|
-
|
|
261
|
+
var W = Object.prototype.toString, $e = (e) => W.call(e) === "[object Object]";
|
|
262
|
+
function et(e) {
|
|
263
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
312
264
|
}
|
|
313
|
-
function
|
|
314
|
-
|
|
265
|
+
function tt(e) {
|
|
266
|
+
return Array.isArray(e) ? e : [e];
|
|
315
267
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
268
|
+
function nt(e, t, n) {
|
|
269
|
+
return P(e, t, {
|
|
270
|
+
...n,
|
|
271
|
+
immediate: !0
|
|
272
|
+
});
|
|
321
273
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
274
|
+
// ../../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.45_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
275
|
+
var rt = Qe ? window : void 0;
|
|
276
|
+
Qe && window.document, Qe && window.navigator, Qe && window.location;
|
|
277
|
+
function G(e) {
|
|
278
|
+
let t = j(e);
|
|
279
|
+
return t?.$el ?? t;
|
|
327
280
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
$.forEach((A) => A());
|
|
346
|
-
});
|
|
347
|
-
}, { flush: "post" });
|
|
281
|
+
function it(...e) {
|
|
282
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = r(() => {
|
|
283
|
+
let t = tt(j(e[0])).filter((e) => e != null);
|
|
284
|
+
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
285
|
+
});
|
|
286
|
+
return nt(() => [
|
|
287
|
+
n.value?.map((e) => G(e)) ?? [rt].filter((e) => e != null),
|
|
288
|
+
tt(j(n.value ? e[1] : e[0])),
|
|
289
|
+
tt(M(n.value ? e[2] : e[1])),
|
|
290
|
+
j(n.value ? e[3] : e[2])
|
|
291
|
+
], ([e, n, r, i], a, o) => {
|
|
292
|
+
if (!e?.length || !n?.length || !r?.length) return;
|
|
293
|
+
let s = $e(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
294
|
+
o(() => {
|
|
295
|
+
c.forEach((e) => e());
|
|
296
|
+
});
|
|
297
|
+
}, { flush: "post" });
|
|
348
298
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}, e), a;
|
|
299
|
+
function at() {
|
|
300
|
+
let e = k(!1), t = p();
|
|
301
|
+
return t && b(() => {
|
|
302
|
+
e.value = !0;
|
|
303
|
+
}, t), e;
|
|
355
304
|
}
|
|
356
|
-
|
|
357
|
-
function
|
|
358
|
-
|
|
359
|
-
|
|
305
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
306
|
+
function ot(e) {
|
|
307
|
+
let t = at();
|
|
308
|
+
return r(() => (t.value, !!e()));
|
|
360
309
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
function
|
|
364
|
-
|
|
365
|
-
|
|
310
|
+
var st = Symbol("vueuse-ssr-width");
|
|
311
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
312
|
+
function ct() {
|
|
313
|
+
let e = h() ? Ze(st, null) : null;
|
|
314
|
+
return typeof e == "number" ? e : void 0;
|
|
366
315
|
}
|
|
367
|
-
function
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
s.value && (i.value = r.matchMedia(Ae(a)), v.value = i.value.matches);
|
|
383
|
-
}), xr(i, "change", g, { passive: !0 }), C(() => v.value);
|
|
316
|
+
function lt(e, t = {}) {
|
|
317
|
+
let { window: n = rt, ssrWidth: i = /* @__PURE__ */ ct() } = t, a = /* @__PURE__ */ ot(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = k(typeof i == "number"), s = k(), c = k(!1);
|
|
318
|
+
return ne(() => {
|
|
319
|
+
if (o.value) {
|
|
320
|
+
o.value = !a.value;
|
|
321
|
+
let t = j(e).split(",");
|
|
322
|
+
c.value = t.some((e) => {
|
|
323
|
+
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
|
|
324
|
+
return n && a && (a = i >= et(n[1])), r && a && (a = i <= et(r[1])), t ? !a : a;
|
|
325
|
+
});
|
|
326
|
+
} else a.value && (s.value = n.matchMedia(j(e)), c.value = s.value.matches);
|
|
327
|
+
}), it(s, "change", (e) => {
|
|
328
|
+
c.value = e.matches;
|
|
329
|
+
}, { passive: !0 }), r(() => c.value);
|
|
384
330
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
},
|
|
559
|
-
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
},
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
},
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
},
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
},
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
var r = parseInt(e.getAttribute("tabindex"), 10);
|
|
679
|
-
return !!(isNaN(r) || r >= 0);
|
|
680
|
-
}, fa = function(e) {
|
|
681
|
-
var r = [], n = [];
|
|
682
|
-
return e.forEach(function(s, c) {
|
|
683
|
-
var i = !!s.scopeParent, v = i ? s.scopeParent : s, g = ei(v, i), D = i ? fa(s.candidates) : v;
|
|
684
|
-
g === 0 ? i ? r.push.apply(r, D) : r.push(v) : n.push({
|
|
685
|
-
documentOrder: c,
|
|
686
|
-
tabIndex: g,
|
|
687
|
-
item: s,
|
|
688
|
-
isScope: i,
|
|
689
|
-
content: D
|
|
690
|
-
});
|
|
691
|
-
}), n.sort(ti).reduce(function(s, c) {
|
|
692
|
-
return c.isScope ? s.push.apply(s, c.content) : s.push(c.content), s;
|
|
693
|
-
}, []).concat(r);
|
|
694
|
-
}, fi = function(e, r) {
|
|
695
|
-
r = r || {};
|
|
696
|
-
var n;
|
|
697
|
-
return r.getShadowRoot ? n = at([e], r.includeContainer, {
|
|
698
|
-
filter: wt.bind(null, r),
|
|
699
|
-
flatten: !1,
|
|
700
|
-
getShadowRoot: r.getShadowRoot,
|
|
701
|
-
shadowRootFilter: di
|
|
702
|
-
}) : n = ca(e, r.includeContainer, wt.bind(null, r)), fa(n);
|
|
703
|
-
}, vi = function(e, r) {
|
|
704
|
-
r = r || {};
|
|
705
|
-
var n;
|
|
706
|
-
return r.getShadowRoot ? n = at([e], r.includeContainer, {
|
|
707
|
-
filter: nt.bind(null, r),
|
|
708
|
-
flatten: !0,
|
|
709
|
-
getShadowRoot: r.getShadowRoot
|
|
710
|
-
}) : n = ca(e, r.includeContainer, nt.bind(null, r)), n;
|
|
711
|
-
}, $e = function(e, r) {
|
|
712
|
-
if (r = r || {}, !e)
|
|
713
|
-
throw new Error("No node provided");
|
|
714
|
-
return Se.call(e, Je) === !1 ? !1 : wt(r, e);
|
|
715
|
-
}, bi = /* @__PURE__ */ sa.concat("iframe:not([inert]):not([inert] *)").join(","), yt = function(e, r) {
|
|
716
|
-
if (r = r || {}, !e)
|
|
717
|
-
throw new Error("No node provided");
|
|
718
|
-
return Se.call(e, bi) === !1 ? !1 : nt(r, e);
|
|
331
|
+
// src/components/sidebar/ItemBadge.vue?vue&type=script&setup=true&lang.ts
|
|
332
|
+
var ut = ["title"], dt = 99, ft = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
333
|
+
__name: "ItemBadge",
|
|
334
|
+
props: { count: {
|
|
335
|
+
type: Number,
|
|
336
|
+
required: !0,
|
|
337
|
+
default: void 0
|
|
338
|
+
} },
|
|
339
|
+
setup(e) {
|
|
340
|
+
let t = e, n = r(() => t.count ? t.count > dt ? `${dt}+` : t.count.toString() : "");
|
|
341
|
+
return (t, r) => n.value ? (S(), o("div", {
|
|
342
|
+
key: 0,
|
|
343
|
+
class: "item-badge",
|
|
344
|
+
title: (e.count || 0) > dt ? String(e.count) : void 0
|
|
345
|
+
}, A(n.value), 9, ut)) : a("", !0);
|
|
346
|
+
}
|
|
347
|
+
}), [["__scopeId", "data-v-a0c9b043"]]), pt = ["data-testid"], mt = [
|
|
348
|
+
"aria-controls",
|
|
349
|
+
"aria-current",
|
|
350
|
+
"aria-expanded",
|
|
351
|
+
"href",
|
|
352
|
+
"target",
|
|
353
|
+
"onClick",
|
|
354
|
+
"onKeypress"
|
|
355
|
+
], ht = {
|
|
356
|
+
key: 0,
|
|
357
|
+
class: "sidebar-item-icon"
|
|
358
|
+
}, gt = { class: "sidebar-item-name-container" }, _t = { class: "sidebar-item-name has-tooltip" }, vt = {
|
|
359
|
+
key: 2,
|
|
360
|
+
class: "sidebar-item-label truncate-text truncate-18"
|
|
361
|
+
}, yt = {
|
|
362
|
+
key: 1,
|
|
363
|
+
class: "sidebar-item-after"
|
|
364
|
+
}, bt = ["id"], xt = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
365
|
+
__name: "SidebarItem",
|
|
366
|
+
props: {
|
|
367
|
+
item: {
|
|
368
|
+
type: Object,
|
|
369
|
+
required: !0
|
|
370
|
+
},
|
|
371
|
+
subnavItem: {
|
|
372
|
+
type: Boolean,
|
|
373
|
+
default: !1
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
emits: ["click"],
|
|
377
|
+
setup(e, { emit: n }) {
|
|
378
|
+
let c = n, l = e, u = N(), d = r(() => typeof l.item.to == "string" ? !!l.item.newWindow || !!l.item.external || l.item.to.startsWith("http") : !1), f = r(() => !l.item.to || typeof l.item.to != "string" || !l.item.newWindow ? !1 : l.item.newWindow && (l.item.to.startsWith("http") || l.item.to.startsWith("/"))), p = r(() => l.subnavItem && l.item.badgeCount !== void 0 && l.item.badgeCount !== 0 || !!u[`sidebar-after-${l.item.key}`]), m = (e) => {
|
|
379
|
+
c("click", e);
|
|
380
|
+
}, h = (e, t, n) => {
|
|
381
|
+
m(t), typeof n == "function" && (e.preventDefault(), n());
|
|
382
|
+
};
|
|
383
|
+
return (n, r) => {
|
|
384
|
+
let c = D("KTooltip"), l = D("SidebarItem", !0);
|
|
385
|
+
return S(), o("li", {
|
|
386
|
+
class: v([
|
|
387
|
+
e.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary",
|
|
388
|
+
{ expanded: e.item.expanded },
|
|
389
|
+
{ active: e.item.active }
|
|
390
|
+
]),
|
|
391
|
+
"data-testid": e.item.testId ? `sidebar-item-${e.item.testId}` : void 0
|
|
392
|
+
}, [(S(), i(O(d.value ? "div" : "router-link"), {
|
|
393
|
+
custom: !d.value || void 0,
|
|
394
|
+
to: !d.value && !f.value ? e.item.to : void 0
|
|
395
|
+
}, {
|
|
396
|
+
default: F((t) => [s("a", {
|
|
397
|
+
"aria-controls": e.item.items?.length && e.item.expanded ? `subnav-${e.item.key}` : void 0,
|
|
398
|
+
"aria-current": e.item.active ? "page" : void 0,
|
|
399
|
+
"aria-expanded": e.item.items?.length && e.item.expanded ? !0 : void 0,
|
|
400
|
+
class: v(["sidebar-item-link", {
|
|
401
|
+
"sidebar-item-external-link": f.value,
|
|
402
|
+
"router-link": !d.value
|
|
403
|
+
}]),
|
|
404
|
+
href: d.value ? String(e.item.to || "#") : t?.href,
|
|
405
|
+
target: f.value ? "_blank" : void 0,
|
|
406
|
+
onClick: (n) => h(n, e.item, t?.navigate),
|
|
407
|
+
onKeypress: re((n) => h(n, e.item, t?.navigate), ["enter"])
|
|
408
|
+
}, [s("div", { class: v(["sidebar-item-display", {
|
|
409
|
+
"has-label": !!e.item.label && e.item.expanded,
|
|
410
|
+
"has-after-content": p.value
|
|
411
|
+
}]) }, [
|
|
412
|
+
n.$slots[`sidebar-icon-${e.item.key}`] ? (S(), o("div", ht, [e.subnavItem ? a("", !0) : E(n.$slots, `sidebar-icon-${e.item.key}`, {}, void 0, !0, 0)])) : a("", !0),
|
|
413
|
+
s("div", gt, [(e.subnavItem && !p.value ? e.item.name.length < 25 : e.item.name.length < 18) ? (S(), o("div", {
|
|
414
|
+
key: 0,
|
|
415
|
+
class: v(["sidebar-item-name truncate-text", [e.subnavItem ? "has-after-content-max-width truncate-24" : "truncate-17"]])
|
|
416
|
+
}, A(e.item.name), 3)) : (S(), i(c, {
|
|
417
|
+
key: 1,
|
|
418
|
+
class: "sidebar-item-tooltip",
|
|
419
|
+
placement: "right",
|
|
420
|
+
"position-fixed": "",
|
|
421
|
+
text: e.item.name
|
|
422
|
+
}, {
|
|
423
|
+
default: F(() => [s("div", _t, [s("span", { class: v(["truncate-text", [e.subnavItem ? "truncate-18" : "truncate-17", { "has-after-content-max-width": p.value }]]) }, A(e.item.name), 3)])]),
|
|
424
|
+
_: 1
|
|
425
|
+
}, 8, ["text"])), e.item.label && e.item.expanded ? (S(), o("div", vt, A(e.item.label), 1)) : a("", !0)]),
|
|
426
|
+
p.value ? (S(), o("div", yt, [e.item.badgeCount ? (S(), i(ft, {
|
|
427
|
+
key: 0,
|
|
428
|
+
count: e.item.badgeCount
|
|
429
|
+
}, null, 8, ["count"])) : E(n.$slots, `sidebar-after-${e.item.key}`, {}, void 0, !0, 1)])) : a("", !0)
|
|
430
|
+
], 2)], 42, mt)]),
|
|
431
|
+
_: 3
|
|
432
|
+
}, 8, ["custom", "to"])), e.item.items?.length && e.item.expanded ? (S(), o("ul", {
|
|
433
|
+
key: 0,
|
|
434
|
+
id: `subnav-${e.item.key}`,
|
|
435
|
+
class: "level-secondary"
|
|
436
|
+
}, [(S(!0), o(t, null, T(e.item.items, (e) => (S(), i(l, {
|
|
437
|
+
key: e.name,
|
|
438
|
+
item: e,
|
|
439
|
+
"subnav-item": !0,
|
|
440
|
+
onClick: (t) => m(e)
|
|
441
|
+
}, null, 8, ["item", "onClick"]))), 128))], 8, bt)) : a("", !0)], 10, pt);
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
}), [["__scopeId", "data-v-8b23b588"]]), St = [
|
|
445
|
+
"input:not([inert]):not([inert] *)",
|
|
446
|
+
"select:not([inert]):not([inert] *)",
|
|
447
|
+
"textarea:not([inert]):not([inert] *)",
|
|
448
|
+
"a[href]:not([inert]):not([inert] *)",
|
|
449
|
+
"area[href]:not([inert]):not([inert] *)",
|
|
450
|
+
"button:not([inert]):not([inert] *)",
|
|
451
|
+
"[tabindex]:not(slot):not([inert]):not([inert] *)",
|
|
452
|
+
"audio[controls]:not([inert]):not([inert] *)",
|
|
453
|
+
"video[controls]:not([inert]):not([inert] *)",
|
|
454
|
+
"[contenteditable]:not([contenteditable=\"false\"]):not([inert]):not([inert] *)",
|
|
455
|
+
"details>summary:first-of-type:not([inert]):not([inert] *)",
|
|
456
|
+
"details:not([inert]):not([inert] *)"
|
|
457
|
+
], Ct = /* #__PURE__ */ St.join(","), wt = typeof Element > "u", K = wt ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Tt = !wt && Element.prototype.getRootNode ? function(e) {
|
|
458
|
+
return e?.getRootNode?.call(e);
|
|
459
|
+
} : function(e) {
|
|
460
|
+
return e?.ownerDocument;
|
|
461
|
+
}, Et = function(e, t) {
|
|
462
|
+
t === void 0 && (t = !0);
|
|
463
|
+
var n = e?.getAttribute?.call(e, "inert");
|
|
464
|
+
return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") : Et(e.parentNode));
|
|
465
|
+
}, Dt = function(e) {
|
|
466
|
+
var t = e?.getAttribute?.call(e, "contenteditable");
|
|
467
|
+
return t === "" || t === "true";
|
|
468
|
+
}, Ot = function(e, t, n) {
|
|
469
|
+
if (Et(e)) return [];
|
|
470
|
+
var r = Array.prototype.slice.apply(e.querySelectorAll(Ct));
|
|
471
|
+
return t && K.call(e, Ct) && r.unshift(e), r = r.filter(n), r;
|
|
472
|
+
}, kt = function(e, t, n) {
|
|
473
|
+
for (var r = [], i = Array.from(e); i.length;) {
|
|
474
|
+
var a = i.shift();
|
|
475
|
+
if (!Et(a, !1)) {
|
|
476
|
+
if (a.tagName === "SLOT") {
|
|
477
|
+
var o = a.assignedElements(), s = kt(o.length ? o : a.children, !0, n);
|
|
478
|
+
n.flatten ? r.push.apply(r, s) : r.push({
|
|
479
|
+
scopeParent: a,
|
|
480
|
+
candidates: s
|
|
481
|
+
});
|
|
482
|
+
} else {
|
|
483
|
+
K.call(a, Ct) && n.filter(a) && (t || !e.includes(a)) && r.push(a);
|
|
484
|
+
var c = a.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(a), l = !Et(c, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
|
|
485
|
+
if (c && l) {
|
|
486
|
+
var u = kt(c === !0 ? a.children : c.children, !0, n);
|
|
487
|
+
n.flatten ? r.push.apply(r, u) : r.push({
|
|
488
|
+
scopeParent: a,
|
|
489
|
+
candidates: u
|
|
490
|
+
});
|
|
491
|
+
} else i.unshift.apply(i, a.children);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return r;
|
|
496
|
+
}, At = function(e) {
|
|
497
|
+
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
498
|
+
}, q = function(e) {
|
|
499
|
+
if (!e) throw Error("No node provided");
|
|
500
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Dt(e)) && !At(e) ? 0 : e.tabIndex;
|
|
501
|
+
}, jt = function(e, t) {
|
|
502
|
+
var n = q(e);
|
|
503
|
+
return n < 0 && t && !At(e) ? 0 : n;
|
|
504
|
+
}, J = function(e, t) {
|
|
505
|
+
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
506
|
+
}, Mt = function(e) {
|
|
507
|
+
return e.tagName === "INPUT";
|
|
508
|
+
}, Nt = function(e) {
|
|
509
|
+
return Mt(e) && e.type === "hidden";
|
|
510
|
+
}, Pt = function(e) {
|
|
511
|
+
return e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(e) {
|
|
512
|
+
return e.tagName === "SUMMARY";
|
|
513
|
+
});
|
|
514
|
+
}, Ft = function(e, t) {
|
|
515
|
+
for (var n = 0; n < e.length; n++) if (e[n].checked && e[n].form === t) return e[n];
|
|
516
|
+
}, It = function(e) {
|
|
517
|
+
if (!e.name) return !0;
|
|
518
|
+
var t = e.form || Tt(e), n = function(e) {
|
|
519
|
+
return t.querySelectorAll("input[type=\"radio\"][name=\"" + e + "\"]");
|
|
520
|
+
}, r;
|
|
521
|
+
if (typeof window < "u" && window.CSS !== void 0 && typeof window.CSS.escape == "function") r = n(window.CSS.escape(e.name));
|
|
522
|
+
else try {
|
|
523
|
+
r = n(e.name);
|
|
524
|
+
} catch (e) {
|
|
525
|
+
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", e.message), !1;
|
|
526
|
+
}
|
|
527
|
+
var i = Ft(r, e.form);
|
|
528
|
+
return !i || i === e;
|
|
529
|
+
}, Lt = function(e) {
|
|
530
|
+
return Mt(e) && e.type === "radio";
|
|
531
|
+
}, Rt = function(e) {
|
|
532
|
+
return Lt(e) && !It(e);
|
|
533
|
+
}, Y = function(e) {
|
|
534
|
+
var t = e && Tt(e), n = t?.host, r = !1;
|
|
535
|
+
if (t && t !== e) {
|
|
536
|
+
var i, a, o;
|
|
537
|
+
for (r = !!((i = n) != null && (a = i.ownerDocument) != null && a.contains(n) || e != null && (o = e.ownerDocument) != null && o.contains(e)); !r && n;) {
|
|
538
|
+
var s, c;
|
|
539
|
+
t = Tt(n), n = t?.host, r = !!((s = n) != null && (c = s.ownerDocument) != null && c.contains(n));
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
return r;
|
|
543
|
+
}, zt = function(e) {
|
|
544
|
+
var t = e.getBoundingClientRect(), n = t.width, r = t.height;
|
|
545
|
+
return n === 0 && r === 0;
|
|
546
|
+
}, Bt = function(e, t) {
|
|
547
|
+
var n = t.displayCheck, r = t.getShadowRoot;
|
|
548
|
+
if (n === "full-native" && "checkVisibility" in e) return !e.checkVisibility({
|
|
549
|
+
checkOpacity: !1,
|
|
550
|
+
opacityProperty: !1,
|
|
551
|
+
contentVisibilityAuto: !0,
|
|
552
|
+
visibilityProperty: !0,
|
|
553
|
+
checkVisibilityCSS: !0
|
|
554
|
+
});
|
|
555
|
+
var i = getComputedStyle(e).visibility;
|
|
556
|
+
if (i === "hidden" || i === "collapse") return !0;
|
|
557
|
+
var a = K.call(e, "details>summary:first-of-type") ? e.parentElement : e;
|
|
558
|
+
if (K.call(a, "details:not([open]) *")) return !0;
|
|
559
|
+
if (!n || n === "full" || n === "full-native" || n === "legacy-full") {
|
|
560
|
+
if (typeof r == "function") {
|
|
561
|
+
for (var o = e; e;) {
|
|
562
|
+
var s = e.parentElement, c = Tt(e);
|
|
563
|
+
if (s && !s.shadowRoot && r(s) === !0) return zt(e);
|
|
564
|
+
e = e.assignedSlot ? e.assignedSlot : !s && c !== e.ownerDocument ? c.host : s;
|
|
565
|
+
}
|
|
566
|
+
e = o;
|
|
567
|
+
}
|
|
568
|
+
if (Y(e)) return !e.getClientRects().length;
|
|
569
|
+
if (n !== "legacy-full") return !0;
|
|
570
|
+
} else if (n === "non-zero-area") return zt(e);
|
|
571
|
+
return !1;
|
|
572
|
+
}, Vt = function(e) {
|
|
573
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) for (var t = e.parentElement; t;) {
|
|
574
|
+
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
575
|
+
for (var n = 0; n < t.children.length; n++) {
|
|
576
|
+
var r = t.children.item(n);
|
|
577
|
+
if (r.tagName === "LEGEND") return K.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
|
|
578
|
+
}
|
|
579
|
+
return !0;
|
|
580
|
+
}
|
|
581
|
+
t = t.parentElement;
|
|
582
|
+
}
|
|
583
|
+
return !1;
|
|
584
|
+
}, X = function(e, t) {
|
|
585
|
+
return !(t.disabled || Nt(t) || Bt(t, e) || Pt(t) || Vt(t));
|
|
586
|
+
}, Ht = function(e, t) {
|
|
587
|
+
return !(Rt(t) || q(t) < 0 || !X(e, t));
|
|
588
|
+
}, Ut = function(e) {
|
|
589
|
+
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
590
|
+
return !!(isNaN(t) || t >= 0);
|
|
591
|
+
}, Wt = function(e) {
|
|
592
|
+
var t = [], n = [];
|
|
593
|
+
return e.forEach(function(e, r) {
|
|
594
|
+
var i = !!e.scopeParent, a = i ? e.scopeParent : e, o = jt(a, i), s = i ? Wt(e.candidates) : a;
|
|
595
|
+
o === 0 ? i ? t.push.apply(t, s) : t.push(a) : n.push({
|
|
596
|
+
documentOrder: r,
|
|
597
|
+
tabIndex: o,
|
|
598
|
+
item: e,
|
|
599
|
+
isScope: i,
|
|
600
|
+
content: s
|
|
601
|
+
});
|
|
602
|
+
}), n.sort(J).reduce(function(e, t) {
|
|
603
|
+
return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e;
|
|
604
|
+
}, []).concat(t);
|
|
605
|
+
}, Gt = function(e, t) {
|
|
606
|
+
return t ||= {}, Wt(t.getShadowRoot ? kt([e], t.includeContainer, {
|
|
607
|
+
filter: Ht.bind(null, t),
|
|
608
|
+
flatten: !1,
|
|
609
|
+
getShadowRoot: t.getShadowRoot,
|
|
610
|
+
shadowRootFilter: Ut
|
|
611
|
+
}) : Ot(e, t.includeContainer, Ht.bind(null, t)));
|
|
612
|
+
}, Kt = function(e, t) {
|
|
613
|
+
return t ||= {}, t.getShadowRoot ? kt([e], t.includeContainer, {
|
|
614
|
+
filter: X.bind(null, t),
|
|
615
|
+
flatten: !0,
|
|
616
|
+
getShadowRoot: t.getShadowRoot
|
|
617
|
+
}) : Ot(e, t.includeContainer, X.bind(null, t));
|
|
618
|
+
}, Z = function(e, t) {
|
|
619
|
+
if (t ||= {}, !e) throw Error("No node provided");
|
|
620
|
+
return K.call(e, Ct) !== !1 && Ht(t, e);
|
|
621
|
+
}, qt = /* #__PURE__ */ St.concat("iframe:not([inert]):not([inert] *)").join(","), Jt = function(e, t) {
|
|
622
|
+
if (t ||= {}, !e) throw Error("No node provided");
|
|
623
|
+
return K.call(e, qt) !== !1 && X(t, e);
|
|
719
624
|
};
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
625
|
+
// ../../../node_modules/.pnpm/focus-trap@8.2.4/node_modules/focus-trap/dist/focus-trap.esm.js
|
|
626
|
+
function Yt(e, t) {
|
|
627
|
+
(t == null || t > e.length) && (t = e.length);
|
|
628
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
629
|
+
return r;
|
|
724
630
|
}
|
|
725
|
-
function
|
|
726
|
-
|
|
631
|
+
function Xt(e) {
|
|
632
|
+
if (Array.isArray(e)) return Yt(e);
|
|
727
633
|
}
|
|
728
|
-
function
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
if (v) throw c;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
};
|
|
634
|
+
function Zt(e, t) {
|
|
635
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
636
|
+
if (!n) {
|
|
637
|
+
if (Array.isArray(e) || (n = sn(e)) || t) {
|
|
638
|
+
n && (e = n);
|
|
639
|
+
var r = 0, i = function() {};
|
|
640
|
+
return {
|
|
641
|
+
s: i,
|
|
642
|
+
n: function() {
|
|
643
|
+
return r >= e.length ? { done: !0 } : {
|
|
644
|
+
done: !1,
|
|
645
|
+
value: e[r++]
|
|
646
|
+
};
|
|
647
|
+
},
|
|
648
|
+
e: function(e) {
|
|
649
|
+
throw e;
|
|
650
|
+
},
|
|
651
|
+
f: i
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
655
|
+
}
|
|
656
|
+
var a, o = !0, s = !1;
|
|
657
|
+
return {
|
|
658
|
+
s: function() {
|
|
659
|
+
n = n.call(e);
|
|
660
|
+
},
|
|
661
|
+
n: function() {
|
|
662
|
+
var e = n.next();
|
|
663
|
+
return o = e.done, e;
|
|
664
|
+
},
|
|
665
|
+
e: function(e) {
|
|
666
|
+
s = !0, a = e;
|
|
667
|
+
},
|
|
668
|
+
f: function() {
|
|
669
|
+
try {
|
|
670
|
+
o || n.return == null || n.return();
|
|
671
|
+
} finally {
|
|
672
|
+
if (s) throw a;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
};
|
|
774
676
|
}
|
|
775
|
-
function
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
677
|
+
function Qt(e, t, n) {
|
|
678
|
+
return (t = on(t)) in e ? Object.defineProperty(e, t, {
|
|
679
|
+
value: n,
|
|
680
|
+
enumerable: !0,
|
|
681
|
+
configurable: !0,
|
|
682
|
+
writable: !0
|
|
683
|
+
}) : e[t] = n, e;
|
|
782
684
|
}
|
|
783
|
-
function
|
|
784
|
-
|
|
685
|
+
function $t(e) {
|
|
686
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
785
687
|
}
|
|
786
|
-
function
|
|
787
|
-
|
|
788
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
688
|
+
function en() {
|
|
689
|
+
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
789
690
|
}
|
|
790
|
-
function
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
691
|
+
function tn(e, t) {
|
|
692
|
+
var n = Object.keys(e);
|
|
693
|
+
if (Object.getOwnPropertySymbols) {
|
|
694
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
695
|
+
t && (r = r.filter(function(t) {
|
|
696
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
697
|
+
})), n.push.apply(n, r);
|
|
698
|
+
}
|
|
699
|
+
return n;
|
|
799
700
|
}
|
|
800
|
-
function
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
701
|
+
function nn(e) {
|
|
702
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
703
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
704
|
+
t % 2 ? tn(Object(n), !0).forEach(function(t) {
|
|
705
|
+
Qt(e, t, n[t]);
|
|
706
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tn(Object(n)).forEach(function(t) {
|
|
707
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
return e;
|
|
810
711
|
}
|
|
811
|
-
function
|
|
812
|
-
|
|
712
|
+
function rn(e) {
|
|
713
|
+
return Xt(e) || $t(e) || sn(e) || en();
|
|
813
714
|
}
|
|
814
|
-
function
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
715
|
+
function an(e, t) {
|
|
716
|
+
if (typeof e != "object" || !e) return e;
|
|
717
|
+
var n = e[Symbol.toPrimitive];
|
|
718
|
+
if (n !== void 0) {
|
|
719
|
+
var r = n.call(e, t);
|
|
720
|
+
if (typeof r != "object") return r;
|
|
721
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
722
|
+
}
|
|
723
|
+
return (t === "string" ? String : Number)(e);
|
|
823
724
|
}
|
|
824
|
-
function
|
|
825
|
-
|
|
826
|
-
|
|
725
|
+
function on(e) {
|
|
726
|
+
var t = an(e, "string");
|
|
727
|
+
return typeof t == "symbol" ? t : t + "";
|
|
827
728
|
}
|
|
828
|
-
function
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
729
|
+
function sn(e, t) {
|
|
730
|
+
if (e) {
|
|
731
|
+
if (typeof e == "string") return Yt(e, t);
|
|
732
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
733
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Yt(e, t) : void 0;
|
|
734
|
+
}
|
|
834
735
|
}
|
|
835
|
-
var
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
},
|
|
871
|
-
|
|
872
|
-
},
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
}));
|
|
1228
|
-
};
|
|
1229
|
-
return v = {
|
|
1230
|
-
get active() {
|
|
1231
|
-
return i.active;
|
|
1232
|
-
},
|
|
1233
|
-
get paused() {
|
|
1234
|
-
return i.paused;
|
|
1235
|
-
},
|
|
1236
|
-
activate: function(l) {
|
|
1237
|
-
if (i.active)
|
|
1238
|
-
return this;
|
|
1239
|
-
var d = g(l, "onActivate"), h = g(l, "onPostActivate"), _ = g(l, "checkCanFocusTrap"), S = de.getActiveTrap(s), N = !1;
|
|
1240
|
-
if (S && !S.paused) {
|
|
1241
|
-
var b;
|
|
1242
|
-
(b = S._setSubtreeIsolation) === null || b === void 0 || b.call(S, !1), N = !0;
|
|
1243
|
-
}
|
|
1244
|
-
try {
|
|
1245
|
-
_ || B(), i.active = !0, i.paused = !1, i.nodeFocusedBeforeActivation = A(n), d?.({
|
|
1246
|
-
trap: v
|
|
1247
|
-
});
|
|
1248
|
-
var f = function() {
|
|
1249
|
-
_ && B();
|
|
1250
|
-
var k = function() {
|
|
1251
|
-
v._setSubtreeIsolation(!0), re(), h?.({
|
|
1252
|
-
trap: v
|
|
1253
|
-
});
|
|
1254
|
-
}, j = ne();
|
|
1255
|
-
j ? j.then(k) : k();
|
|
1256
|
-
};
|
|
1257
|
-
if (_)
|
|
1258
|
-
return _(i.containers.concat()).then(f, f), this;
|
|
1259
|
-
f();
|
|
1260
|
-
} catch (y) {
|
|
1261
|
-
if (S === de.getActiveTrap(s) && N) {
|
|
1262
|
-
var m;
|
|
1263
|
-
(m = S._setSubtreeIsolation) === null || m === void 0 || m.call(S, !0);
|
|
1264
|
-
}
|
|
1265
|
-
throw y;
|
|
1266
|
-
}
|
|
1267
|
-
return this;
|
|
1268
|
-
},
|
|
1269
|
-
deactivate: function(l) {
|
|
1270
|
-
if (!i.active)
|
|
1271
|
-
return this;
|
|
1272
|
-
var d = Qt({
|
|
1273
|
-
onDeactivate: c.onDeactivate,
|
|
1274
|
-
onPostDeactivate: c.onPostDeactivate,
|
|
1275
|
-
checkCanReturnFocus: c.checkCanReturnFocus
|
|
1276
|
-
}, l);
|
|
1277
|
-
clearTimeout(i.delayInitialFocusTimer), i.delayInitialFocusTimer = void 0, i.paused || v._setSubtreeIsolation(!1), i.alreadySilent.clear(), K(), i.active = !1, i.paused = !1, re(), de.deactivateTrap(s, v);
|
|
1278
|
-
var h = g(d, "onDeactivate"), _ = g(d, "onPostDeactivate"), S = g(d, "checkCanReturnFocus"), N = g(d, "delayReturnFocus"), b = g(d, "returnFocus", "returnFocusOnDeactivate");
|
|
1279
|
-
h?.({
|
|
1280
|
-
trap: v
|
|
1281
|
-
});
|
|
1282
|
-
var f = function() {
|
|
1283
|
-
b && E(H(i.nodeFocusedBeforeActivation)), _?.({
|
|
1284
|
-
trap: v
|
|
1285
|
-
});
|
|
1286
|
-
}, m = function() {
|
|
1287
|
-
N && b ? Jt(f) : f();
|
|
1288
|
-
};
|
|
1289
|
-
return b && S ? (S(H(i.nodeFocusedBeforeActivation)).then(m, m), this) : (m(), this);
|
|
1290
|
-
},
|
|
1291
|
-
pause: function(l) {
|
|
1292
|
-
return i.active ? (i.manuallyPaused = !0, this._setPausedState(!0, l)) : this;
|
|
1293
|
-
},
|
|
1294
|
-
unpause: function(l) {
|
|
1295
|
-
return i.active ? (i.manuallyPaused = !1, s[s.length - 1] !== this ? this : this._setPausedState(!1, l)) : this;
|
|
1296
|
-
},
|
|
1297
|
-
updateContainerElements: function(l) {
|
|
1298
|
-
var d = [].concat(l).filter(Boolean);
|
|
1299
|
-
return i.containers = d.map(function(h) {
|
|
1300
|
-
return typeof h == "string" ? n.querySelector(h) : h;
|
|
1301
|
-
}), c.isolateSubtrees && x(i.containers), i.active && (B(), i.paused || v._setSubtreeIsolation(!0)), re(), this;
|
|
1302
|
-
}
|
|
1303
|
-
}, Object.defineProperties(v, {
|
|
1304
|
-
_isManuallyPaused: {
|
|
1305
|
-
value: function() {
|
|
1306
|
-
return i.manuallyPaused;
|
|
1307
|
-
}
|
|
1308
|
-
},
|
|
1309
|
-
_setPausedState: {
|
|
1310
|
-
value: function(l, d) {
|
|
1311
|
-
if (i.paused === l)
|
|
1312
|
-
return this;
|
|
1313
|
-
if (i.paused = l, l) {
|
|
1314
|
-
var h = g(d, "onPause"), _ = g(d, "onPostPause");
|
|
1315
|
-
h?.({
|
|
1316
|
-
trap: v
|
|
1317
|
-
}), K(), v._setSubtreeIsolation(!1), re(), _?.({
|
|
1318
|
-
trap: v
|
|
1319
|
-
});
|
|
1320
|
-
} else {
|
|
1321
|
-
var S = g(d, "onUnpause"), N = g(d, "onPostUnpause");
|
|
1322
|
-
S?.({
|
|
1323
|
-
trap: v
|
|
1324
|
-
});
|
|
1325
|
-
var b = function() {
|
|
1326
|
-
B();
|
|
1327
|
-
var m = function() {
|
|
1328
|
-
v._setSubtreeIsolation(!0), re(), N?.({
|
|
1329
|
-
trap: v
|
|
1330
|
-
});
|
|
1331
|
-
}, y = ne();
|
|
1332
|
-
y ? y.then(m) : m();
|
|
1333
|
-
};
|
|
1334
|
-
b();
|
|
1335
|
-
}
|
|
1336
|
-
return this;
|
|
1337
|
-
}
|
|
1338
|
-
},
|
|
1339
|
-
_setSubtreeIsolation: {
|
|
1340
|
-
value: function(l) {
|
|
1341
|
-
c.isolateSubtrees && i.adjacentElements.forEach(function(d) {
|
|
1342
|
-
var h;
|
|
1343
|
-
l ? c.isolateSubtrees === "aria-hidden" ? ((d.ariaHidden === "true" || ((h = d.getAttribute("aria-hidden")) === null || h === void 0 ? void 0 : h.toLowerCase()) === "true") && i.alreadySilent.add(d), d.setAttribute("aria-hidden", "true")) : ((d.inert || d.hasAttribute("inert")) && i.alreadySilent.add(d), d.setAttribute("inert", !0)) : i.alreadySilent.has(d) || (c.isolateSubtrees === "aria-hidden" ? d.removeAttribute("aria-hidden") : d.removeAttribute("inert"));
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
}), v.updateContainerElements(e), v;
|
|
736
|
+
var Q = {
|
|
737
|
+
getActiveTrap: function(e) {
|
|
738
|
+
return e?.length > 0 ? e[e.length - 1] : null;
|
|
739
|
+
},
|
|
740
|
+
activateTrap: function(e, t) {
|
|
741
|
+
t !== Q.getActiveTrap(e) && Q.pauseTrap(e);
|
|
742
|
+
var n = e.indexOf(t);
|
|
743
|
+
n === -1 || e.splice(n, 1), e.push(t);
|
|
744
|
+
},
|
|
745
|
+
deactivateTrap: function(e, t) {
|
|
746
|
+
var n = e.indexOf(t);
|
|
747
|
+
n !== -1 && e.splice(n, 1), Q.unpauseTrap(e);
|
|
748
|
+
},
|
|
749
|
+
pauseTrap: function(e) {
|
|
750
|
+
Q.getActiveTrap(e)?._setPausedState(!0);
|
|
751
|
+
},
|
|
752
|
+
unpauseTrap: function(e) {
|
|
753
|
+
var t = Q.getActiveTrap(e);
|
|
754
|
+
t && !t._isManuallyPaused() && t._setPausedState(!1);
|
|
755
|
+
}
|
|
756
|
+
}, cn = function(e) {
|
|
757
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
758
|
+
}, ln = function(e) {
|
|
759
|
+
return e?.key === "Escape" || e?.key === "Esc" || e?.keyCode === 27;
|
|
760
|
+
}, un = function(e) {
|
|
761
|
+
return e?.key === "Tab" || e?.keyCode === 9;
|
|
762
|
+
}, dn = function(e) {
|
|
763
|
+
return un(e) && !e.shiftKey;
|
|
764
|
+
}, fn = function(e) {
|
|
765
|
+
return un(e) && e.shiftKey;
|
|
766
|
+
}, pn = function(e) {
|
|
767
|
+
return setTimeout(e, 0);
|
|
768
|
+
}, mn = function(e) {
|
|
769
|
+
var t = [...arguments].slice(1);
|
|
770
|
+
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
771
|
+
}, hn = function(e) {
|
|
772
|
+
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
773
|
+
}, gn = [], _n = function(e, t) {
|
|
774
|
+
var n = t?.document || document, r = t?.trapStack || gn, i = nn({
|
|
775
|
+
returnFocusOnDeactivate: !0,
|
|
776
|
+
escapeDeactivates: !0,
|
|
777
|
+
delayInitialFocus: !0,
|
|
778
|
+
delayReturnFocus: !0,
|
|
779
|
+
isolateSubtrees: !1,
|
|
780
|
+
isKeyForward: dn,
|
|
781
|
+
isKeyBackward: fn
|
|
782
|
+
}, t), a = {
|
|
783
|
+
containers: [],
|
|
784
|
+
containerGroups: [],
|
|
785
|
+
tabbableGroups: [],
|
|
786
|
+
adjacentElements: /* @__PURE__ */ new Set(),
|
|
787
|
+
alreadySilent: /* @__PURE__ */ new Set(),
|
|
788
|
+
nodeFocusedBeforeActivation: null,
|
|
789
|
+
mostRecentlyFocusedNode: null,
|
|
790
|
+
active: !1,
|
|
791
|
+
paused: !1,
|
|
792
|
+
manuallyPaused: !1,
|
|
793
|
+
delayInitialFocusTimer: void 0,
|
|
794
|
+
recentNavEvent: void 0
|
|
795
|
+
}, o, s = function(e, t, n) {
|
|
796
|
+
return e && e[t] !== void 0 ? e[t] : i[n || t];
|
|
797
|
+
}, c = function(e, t) {
|
|
798
|
+
var n = typeof t?.composedPath == "function" ? t.composedPath() : void 0;
|
|
799
|
+
return a.containerGroups.findIndex(function(t) {
|
|
800
|
+
var r = t.container, i = t.tabbableNodes;
|
|
801
|
+
return r.contains(e) || n?.includes(r) || i.find(function(t) {
|
|
802
|
+
return t === e;
|
|
803
|
+
});
|
|
804
|
+
});
|
|
805
|
+
}, l = function(e) {
|
|
806
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.hasFallback, a = r !== void 0 && r, o = t.params, s = o === void 0 ? [] : o, c = i[e];
|
|
807
|
+
if (typeof c == "function" && (c = c.apply(void 0, rn(s))), c === !0 && (c = void 0), !c) {
|
|
808
|
+
if (c === void 0 || c === !1) return c;
|
|
809
|
+
throw Error(`\`${e}\` was specified but was not a node, or did not return a node`);
|
|
810
|
+
}
|
|
811
|
+
var l = c;
|
|
812
|
+
if (typeof c == "string") {
|
|
813
|
+
try {
|
|
814
|
+
l = n.querySelector(c);
|
|
815
|
+
} catch (t) {
|
|
816
|
+
throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`, { cause: t });
|
|
817
|
+
}
|
|
818
|
+
if (!l && !a) throw Error(`\`${e}\` as selector refers to no known node`);
|
|
819
|
+
}
|
|
820
|
+
return l;
|
|
821
|
+
}, u = function(e) {
|
|
822
|
+
var t = e.activeElement;
|
|
823
|
+
return t ? t.shadowRoot && t.shadowRoot.activeElement !== null ? u(t.shadowRoot) : t : null;
|
|
824
|
+
}, d = function() {
|
|
825
|
+
var e = l("initialFocus", { hasFallback: !0 });
|
|
826
|
+
if (e === !1) return !1;
|
|
827
|
+
if (e === void 0 || e && !Jt(e, i.tabbableOptions)) {
|
|
828
|
+
var t = u(n);
|
|
829
|
+
if (c(t) >= 0) e = t;
|
|
830
|
+
else {
|
|
831
|
+
var r = a.tabbableGroups[0];
|
|
832
|
+
e = r && r.firstTabbableNode || l("fallbackFocus");
|
|
833
|
+
}
|
|
834
|
+
} else e === null && (e = l("fallbackFocus"));
|
|
835
|
+
if (!e) throw Error("Your focus-trap needs to have at least one focusable element");
|
|
836
|
+
return e;
|
|
837
|
+
}, f = function() {
|
|
838
|
+
if (a.containerGroups = a.containers.map(function(e) {
|
|
839
|
+
var t = Gt(e, i.tabbableOptions), n = Kt(e, i.tabbableOptions), r = t.length > 0 ? t[0] : void 0, a = t.length > 0 ? t[t.length - 1] : void 0, o = n.find(function(e) {
|
|
840
|
+
return Z(e);
|
|
841
|
+
}), s = n.slice().reverse().find(function(e) {
|
|
842
|
+
return Z(e);
|
|
843
|
+
});
|
|
844
|
+
return {
|
|
845
|
+
container: e,
|
|
846
|
+
tabbableNodes: t,
|
|
847
|
+
focusableNodes: n,
|
|
848
|
+
posTabIndexesFound: !!t.find(function(e) {
|
|
849
|
+
return q(e) > 0;
|
|
850
|
+
}),
|
|
851
|
+
firstTabbableNode: r,
|
|
852
|
+
lastTabbableNode: a,
|
|
853
|
+
firstDomTabbableNode: o,
|
|
854
|
+
lastDomTabbableNode: s,
|
|
855
|
+
nextTabbableNode: function(e) {
|
|
856
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, i = t.indexOf(e);
|
|
857
|
+
return i < 0 ? r ? n.slice(n.indexOf(e) + 1).find(function(e) {
|
|
858
|
+
return Z(e);
|
|
859
|
+
}) : n.slice(0, n.indexOf(e)).reverse().find(function(e) {
|
|
860
|
+
return Z(e);
|
|
861
|
+
}) : t[i + (r ? 1 : -1)];
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
}), a.tabbableGroups = a.containerGroups.filter(function(e) {
|
|
865
|
+
return e.tabbableNodes.length > 0;
|
|
866
|
+
}), a.tabbableGroups.length <= 0 && !l("fallbackFocus")) throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
867
|
+
if (a.containerGroups.find(function(e) {
|
|
868
|
+
return e.posTabIndexesFound;
|
|
869
|
+
}) && a.containerGroups.length > 1) throw 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.");
|
|
870
|
+
}, p = function(e) {
|
|
871
|
+
e !== !1 && (e === u(n) ? a.mostRecentlyFocusedNode = e : !e || !e.focus ? p(d()) : (e.focus({ preventScroll: !!i.preventScroll }), a.mostRecentlyFocusedNode = e, cn(e) && e.select()));
|
|
872
|
+
}, m = function(e) {
|
|
873
|
+
var t = l("setReturnFocus", { params: [e] });
|
|
874
|
+
return t || t !== !1 && e;
|
|
875
|
+
}, h = function(e) {
|
|
876
|
+
var t = e.target, n = e.event, r = e.isBackward, o = r !== void 0 && r;
|
|
877
|
+
t ||= hn(n), f();
|
|
878
|
+
var s = null;
|
|
879
|
+
if (a.tabbableGroups.length > 0) {
|
|
880
|
+
var u = c(t, n), d = u >= 0 ? a.containerGroups[u] : void 0;
|
|
881
|
+
if (u < 0) s = o ? a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : a.tabbableGroups[0].firstTabbableNode;
|
|
882
|
+
else if (o) {
|
|
883
|
+
var p = a.tabbableGroups.findIndex(function(e) {
|
|
884
|
+
var n = e.firstTabbableNode;
|
|
885
|
+
return t === n;
|
|
886
|
+
});
|
|
887
|
+
if (p < 0 && (d.container === t || Jt(t, i.tabbableOptions) && !Z(t, i.tabbableOptions) && !d.nextTabbableNode(t, !1)) && (p = Math.max(0, a.tabbableGroups.findIndex(function(e) {
|
|
888
|
+
return a.containerGroups.indexOf(e) >= u;
|
|
889
|
+
}))), p >= 0) {
|
|
890
|
+
var m = p === 0 ? a.tabbableGroups.length - 1 : p - 1, h = a.tabbableGroups[m];
|
|
891
|
+
s = q(t) >= 0 ? h.lastTabbableNode : h.lastDomTabbableNode;
|
|
892
|
+
} else un(n) || (s = d.nextTabbableNode(t, !1));
|
|
893
|
+
} else {
|
|
894
|
+
var g = a.tabbableGroups.findIndex(function(e) {
|
|
895
|
+
var n = e.lastTabbableNode;
|
|
896
|
+
return t === n;
|
|
897
|
+
});
|
|
898
|
+
if (g < 0 && (d.container === t || Jt(t, i.tabbableOptions) && !Z(t, i.tabbableOptions) && !d.nextTabbableNode(t))) {
|
|
899
|
+
var _ = a.tabbableGroups.findIndex(function(e) {
|
|
900
|
+
return a.containerGroups.indexOf(e) > u;
|
|
901
|
+
});
|
|
902
|
+
g = _ > 0 ? _ - 1 : a.tabbableGroups.length - 1;
|
|
903
|
+
}
|
|
904
|
+
if (g >= 0) {
|
|
905
|
+
var v = g === a.tabbableGroups.length - 1 ? 0 : g + 1, y = a.tabbableGroups[v];
|
|
906
|
+
s = q(t) >= 0 ? y.firstTabbableNode : y.firstDomTabbableNode;
|
|
907
|
+
} else un(n) || (s = d.nextTabbableNode(t));
|
|
908
|
+
}
|
|
909
|
+
} else s = l("fallbackFocus");
|
|
910
|
+
return s;
|
|
911
|
+
}, g = function(e) {
|
|
912
|
+
c(hn(e), e) >= 0 || (mn(i.clickOutsideDeactivates, e) ? o.deactivate({ returnFocus: i.returnFocusOnDeactivate }) : mn(i.allowOutsideClick, e) || e.preventDefault());
|
|
913
|
+
}, _ = function(e) {
|
|
914
|
+
var t = hn(e), n = c(t, e) >= 0;
|
|
915
|
+
if (n || t instanceof Document) n && (a.mostRecentlyFocusedNode = t);
|
|
916
|
+
else {
|
|
917
|
+
e.stopImmediatePropagation();
|
|
918
|
+
var r, o = !0;
|
|
919
|
+
if (a.mostRecentlyFocusedNode) {
|
|
920
|
+
if (q(a.mostRecentlyFocusedNode) > 0) {
|
|
921
|
+
var s = c(a.mostRecentlyFocusedNode), l = a.containerGroups[s].tabbableNodes;
|
|
922
|
+
if (l.length > 0) {
|
|
923
|
+
var u = l.findIndex(function(e) {
|
|
924
|
+
return e === a.mostRecentlyFocusedNode;
|
|
925
|
+
});
|
|
926
|
+
u >= 0 && (i.isKeyForward(a.recentNavEvent) ? u + 1 < l.length && (r = l[u + 1], o = !1) : u - 1 >= 0 && (r = l[u - 1], o = !1));
|
|
927
|
+
}
|
|
928
|
+
} else a.containerGroups.some(function(e) {
|
|
929
|
+
return e.tabbableNodes.some(function(e) {
|
|
930
|
+
return q(e) > 0;
|
|
931
|
+
});
|
|
932
|
+
}) || (o = !1);
|
|
933
|
+
} else o = !1;
|
|
934
|
+
o && (r = h({
|
|
935
|
+
target: a.mostRecentlyFocusedNode,
|
|
936
|
+
isBackward: i.isKeyBackward(a.recentNavEvent)
|
|
937
|
+
})), p(r || a.mostRecentlyFocusedNode || d());
|
|
938
|
+
}
|
|
939
|
+
a.recentNavEvent = void 0;
|
|
940
|
+
}, v = function(e) {
|
|
941
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
942
|
+
a.recentNavEvent = e;
|
|
943
|
+
var n = h({
|
|
944
|
+
event: e,
|
|
945
|
+
isBackward: t
|
|
946
|
+
});
|
|
947
|
+
n && (un(e) && e.preventDefault(), p(n));
|
|
948
|
+
}, y = function(e) {
|
|
949
|
+
(i.isKeyForward(e) || i.isKeyBackward(e)) && v(e, i.isKeyBackward(e));
|
|
950
|
+
}, b = function(e) {
|
|
951
|
+
ln(e) && mn(i.escapeDeactivates, e) !== !1 && (e.preventDefault(), o.deactivate());
|
|
952
|
+
}, x = function(e) {
|
|
953
|
+
c(hn(e), e) >= 0 || mn(i.clickOutsideDeactivates, e) || mn(i.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
|
|
954
|
+
}, S = function() {
|
|
955
|
+
if (a.active) {
|
|
956
|
+
Q.activateTrap(r, o);
|
|
957
|
+
var e;
|
|
958
|
+
return i.delayInitialFocus ? e = new Promise(function(e) {
|
|
959
|
+
a.delayInitialFocusTimer = pn(function() {
|
|
960
|
+
p(d()), e();
|
|
961
|
+
});
|
|
962
|
+
}) : p(d()), n.addEventListener("focusin", _, !0), n.addEventListener("mousedown", g, {
|
|
963
|
+
capture: !0,
|
|
964
|
+
passive: !1
|
|
965
|
+
}), n.addEventListener("touchstart", g, {
|
|
966
|
+
capture: !0,
|
|
967
|
+
passive: !1
|
|
968
|
+
}), n.addEventListener("click", x, {
|
|
969
|
+
capture: !0,
|
|
970
|
+
passive: !1
|
|
971
|
+
}), n.addEventListener("keydown", y, {
|
|
972
|
+
capture: !0,
|
|
973
|
+
passive: !1
|
|
974
|
+
}), n.addEventListener("keydown", b), e;
|
|
975
|
+
}
|
|
976
|
+
}, C = function(e) {
|
|
977
|
+
a.active && !a.paused && o._setSubtreeIsolation(!1), a.adjacentElements.clear(), a.alreadySilent.clear();
|
|
978
|
+
var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = Zt(e), i;
|
|
979
|
+
try {
|
|
980
|
+
for (r.s(); !(i = r.n()).done;) {
|
|
981
|
+
var s = i.value;
|
|
982
|
+
t.add(s);
|
|
983
|
+
for (var c = typeof ShadowRoot < "u" && s.getRootNode() instanceof ShadowRoot, l = s; l;) {
|
|
984
|
+
t.add(l);
|
|
985
|
+
var u = l.parentElement, d = [];
|
|
986
|
+
u ? d = u.children : !u && c && (d = l.getRootNode().children, u = l.getRootNode().host, c = typeof ShadowRoot < "u" && u.getRootNode() instanceof ShadowRoot);
|
|
987
|
+
var f = Zt(d), p;
|
|
988
|
+
try {
|
|
989
|
+
for (f.s(); !(p = f.n()).done;) {
|
|
990
|
+
var m = p.value;
|
|
991
|
+
n.add(m);
|
|
992
|
+
}
|
|
993
|
+
} catch (e) {
|
|
994
|
+
f.e(e);
|
|
995
|
+
} finally {
|
|
996
|
+
f.f();
|
|
997
|
+
}
|
|
998
|
+
l = u;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
} catch (e) {
|
|
1002
|
+
r.e(e);
|
|
1003
|
+
} finally {
|
|
1004
|
+
r.f();
|
|
1005
|
+
}
|
|
1006
|
+
t.forEach(function(e) {
|
|
1007
|
+
n.delete(e);
|
|
1008
|
+
}), a.adjacentElements = n;
|
|
1009
|
+
}, w = function() {
|
|
1010
|
+
if (a.active) return n.removeEventListener("focusin", _, !0), n.removeEventListener("mousedown", g, !0), n.removeEventListener("touchstart", g, !0), n.removeEventListener("click", x, !0), n.removeEventListener("keydown", y, !0), n.removeEventListener("keydown", b), o;
|
|
1011
|
+
}, T = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(function(e) {
|
|
1012
|
+
var t = a.mostRecentlyFocusedNode;
|
|
1013
|
+
t && e.some(function(e) {
|
|
1014
|
+
return Array.from(e.removedNodes).some(function(e) {
|
|
1015
|
+
return e === t || typeof e.contains == "function" && e.contains(t);
|
|
1016
|
+
});
|
|
1017
|
+
}) && a.containers.some(function(e) {
|
|
1018
|
+
return e?.isConnected;
|
|
1019
|
+
}) && (f(), p(d()));
|
|
1020
|
+
}) : void 0, E = function() {
|
|
1021
|
+
T && (T.disconnect(), a.active && !a.paused && a.containers.map(function(e) {
|
|
1022
|
+
T.observe(e, {
|
|
1023
|
+
subtree: !0,
|
|
1024
|
+
childList: !0
|
|
1025
|
+
});
|
|
1026
|
+
}));
|
|
1027
|
+
};
|
|
1028
|
+
return o = {
|
|
1029
|
+
get active() {
|
|
1030
|
+
return a.active;
|
|
1031
|
+
},
|
|
1032
|
+
get paused() {
|
|
1033
|
+
return a.paused;
|
|
1034
|
+
},
|
|
1035
|
+
activate: function(e) {
|
|
1036
|
+
if (a.active) return this;
|
|
1037
|
+
var t = s(e, "onActivate"), i = s(e, "onPostActivate"), c = s(e, "checkCanFocusTrap"), l = Q.getActiveTrap(r), d = !1;
|
|
1038
|
+
if (l && !l.paused) {
|
|
1039
|
+
var p;
|
|
1040
|
+
(p = l._setSubtreeIsolation) == null || p.call(l, !1), d = !0;
|
|
1041
|
+
}
|
|
1042
|
+
try {
|
|
1043
|
+
c || f(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = u(n), t?.({ trap: o });
|
|
1044
|
+
var m = function() {
|
|
1045
|
+
c && f();
|
|
1046
|
+
var e = function() {
|
|
1047
|
+
o._setSubtreeIsolation(!0), E(), i?.({ trap: o });
|
|
1048
|
+
}, t = S();
|
|
1049
|
+
t ? t.then(e) : e();
|
|
1050
|
+
};
|
|
1051
|
+
if (c) return c(a.containers.concat()).then(m, m), this;
|
|
1052
|
+
m();
|
|
1053
|
+
} catch (e) {
|
|
1054
|
+
if (l === Q.getActiveTrap(r) && d) {
|
|
1055
|
+
var h;
|
|
1056
|
+
(h = l._setSubtreeIsolation) == null || h.call(l, !0);
|
|
1057
|
+
}
|
|
1058
|
+
throw e;
|
|
1059
|
+
}
|
|
1060
|
+
return this;
|
|
1061
|
+
},
|
|
1062
|
+
deactivate: function(e) {
|
|
1063
|
+
if (!a.active) return this;
|
|
1064
|
+
var t = nn({
|
|
1065
|
+
onDeactivate: i.onDeactivate,
|
|
1066
|
+
onPostDeactivate: i.onPostDeactivate,
|
|
1067
|
+
checkCanReturnFocus: i.checkCanReturnFocus
|
|
1068
|
+
}, e);
|
|
1069
|
+
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, a.paused || o._setSubtreeIsolation(!1), a.alreadySilent.clear(), w(), a.active = !1, a.paused = !1, E(), Q.deactivateTrap(r, o);
|
|
1070
|
+
var n = s(t, "onDeactivate"), c = s(t, "onPostDeactivate"), l = s(t, "checkCanReturnFocus"), u = s(t, "delayReturnFocus"), d = s(t, "returnFocus", "returnFocusOnDeactivate");
|
|
1071
|
+
n?.({ trap: o });
|
|
1072
|
+
var f = function() {
|
|
1073
|
+
d && p(m(a.nodeFocusedBeforeActivation)), c?.({ trap: o });
|
|
1074
|
+
}, h = function() {
|
|
1075
|
+
u && d ? pn(f) : f();
|
|
1076
|
+
};
|
|
1077
|
+
return d && l ? (l(m(a.nodeFocusedBeforeActivation)).then(h, h), this) : (h(), this);
|
|
1078
|
+
},
|
|
1079
|
+
pause: function(e) {
|
|
1080
|
+
return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, e)) : this;
|
|
1081
|
+
},
|
|
1082
|
+
unpause: function(e) {
|
|
1083
|
+
return !a.active || (a.manuallyPaused = !1, r[r.length - 1] !== this) ? this : this._setPausedState(!1, e);
|
|
1084
|
+
},
|
|
1085
|
+
updateContainerElements: function(e) {
|
|
1086
|
+
return a.containers = [].concat(e).filter(Boolean).map(function(e) {
|
|
1087
|
+
return typeof e == "string" ? n.querySelector(e) : e;
|
|
1088
|
+
}), i.isolateSubtrees && C(a.containers), a.active && (f(), a.paused || o._setSubtreeIsolation(!0)), E(), this;
|
|
1089
|
+
}
|
|
1090
|
+
}, Object.defineProperties(o, {
|
|
1091
|
+
_isManuallyPaused: { value: function() {
|
|
1092
|
+
return a.manuallyPaused;
|
|
1093
|
+
} },
|
|
1094
|
+
_setPausedState: { value: function(e, t) {
|
|
1095
|
+
if (a.paused === e) return this;
|
|
1096
|
+
if (a.paused = e, e) {
|
|
1097
|
+
var n = s(t, "onPause"), r = s(t, "onPostPause");
|
|
1098
|
+
n?.({ trap: o }), w(), o._setSubtreeIsolation(!1), E(), r?.({ trap: o });
|
|
1099
|
+
} else {
|
|
1100
|
+
var i = s(t, "onUnpause"), c = s(t, "onPostUnpause");
|
|
1101
|
+
i?.({ trap: o }), (function() {
|
|
1102
|
+
f();
|
|
1103
|
+
var e = function() {
|
|
1104
|
+
o._setSubtreeIsolation(!0), E(), c?.({ trap: o });
|
|
1105
|
+
}, t = S();
|
|
1106
|
+
t ? t.then(e) : e();
|
|
1107
|
+
})();
|
|
1108
|
+
}
|
|
1109
|
+
return this;
|
|
1110
|
+
} },
|
|
1111
|
+
_setSubtreeIsolation: { value: function(e) {
|
|
1112
|
+
i.isolateSubtrees && a.adjacentElements.forEach(function(t) {
|
|
1113
|
+
if (e) switch (i.isolateSubtrees) {
|
|
1114
|
+
case "aria-hidden":
|
|
1115
|
+
(t.ariaHidden === "true" || t.getAttribute("aria-hidden")?.toLowerCase() === "true") && a.alreadySilent.add(t), t.setAttribute("aria-hidden", "true");
|
|
1116
|
+
break;
|
|
1117
|
+
default: (t.inert || t.hasAttribute("inert")) && a.alreadySilent.add(t), t.setAttribute("inert", !0);
|
|
1118
|
+
}
|
|
1119
|
+
else if (!a.alreadySilent.has(t)) switch (i.isolateSubtrees) {
|
|
1120
|
+
case "aria-hidden":
|
|
1121
|
+
t.removeAttribute("aria-hidden");
|
|
1122
|
+
break;
|
|
1123
|
+
default: t.removeAttribute("inert");
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
} }
|
|
1127
|
+
}), o.updateContainerElements(e), o;
|
|
1348
1128
|
};
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
default: !0
|
|
1353
|
-
},
|
|
1354
|
-
returnFocusOnDeactivate: {
|
|
1355
|
-
type: Boolean,
|
|
1356
|
-
default: !0
|
|
1357
|
-
},
|
|
1358
|
-
allowOutsideClick: {
|
|
1359
|
-
type: [Boolean, Function],
|
|
1360
|
-
default: !0
|
|
1361
|
-
},
|
|
1362
|
-
clickOutsideDeactivates: [Boolean, Function],
|
|
1363
|
-
initialFocus: [String, Function, Boolean],
|
|
1364
|
-
fallbackFocus: [String, Function],
|
|
1365
|
-
checkCanFocusTrap: Function,
|
|
1366
|
-
checkCanReturnFocus: Function,
|
|
1367
|
-
delayInitialFocus: {
|
|
1368
|
-
type: Boolean,
|
|
1369
|
-
default: !0
|
|
1370
|
-
},
|
|
1371
|
-
document: Object,
|
|
1372
|
-
preventScroll: Boolean,
|
|
1373
|
-
setReturnFocus: [Object, String, Boolean, Function],
|
|
1374
|
-
tabbableOptions: Object
|
|
1375
|
-
}, Ei = ae({
|
|
1376
|
-
name: "FocusTrap",
|
|
1377
|
-
props: Object.assign({
|
|
1378
|
-
active: {
|
|
1379
|
-
// TODO: could be options for activate but what about the options for deactivating?
|
|
1380
|
-
type: Boolean,
|
|
1381
|
-
default: !0
|
|
1382
|
-
}
|
|
1383
|
-
}, $i),
|
|
1384
|
-
emits: [
|
|
1385
|
-
"update:active",
|
|
1386
|
-
"activate",
|
|
1387
|
-
"postActivate",
|
|
1388
|
-
"deactivate",
|
|
1389
|
-
"postDeactivate"
|
|
1390
|
-
],
|
|
1391
|
-
render() {
|
|
1392
|
-
return this.renderImpl();
|
|
1393
|
-
},
|
|
1394
|
-
setup(a, { slots: e, emit: r }) {
|
|
1395
|
-
let n;
|
|
1396
|
-
const s = ee(null), c = C(() => {
|
|
1397
|
-
const v = s.value;
|
|
1398
|
-
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1399
|
-
});
|
|
1400
|
-
function i() {
|
|
1401
|
-
return n || (n = Oi(c.value, {
|
|
1402
|
-
escapeDeactivates: a.escapeDeactivates,
|
|
1403
|
-
allowOutsideClick: a.allowOutsideClick,
|
|
1404
|
-
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
1405
|
-
clickOutsideDeactivates: a.clickOutsideDeactivates,
|
|
1406
|
-
onActivate: () => {
|
|
1407
|
-
r("update:active", !0), r("activate");
|
|
1408
|
-
},
|
|
1409
|
-
onDeactivate: () => {
|
|
1410
|
-
r("update:active", !1), r("deactivate");
|
|
1411
|
-
},
|
|
1412
|
-
onPostActivate: () => r("postActivate"),
|
|
1413
|
-
onPostDeactivate: () => r("postDeactivate"),
|
|
1414
|
-
initialFocus: a.initialFocus,
|
|
1415
|
-
fallbackFocus: a.fallbackFocus,
|
|
1416
|
-
tabbableOptions: a.tabbableOptions,
|
|
1417
|
-
delayInitialFocus: a.delayInitialFocus,
|
|
1418
|
-
preventScroll: a.preventScroll
|
|
1419
|
-
}));
|
|
1420
|
-
}
|
|
1421
|
-
return je(() => {
|
|
1422
|
-
Fe(() => a.active, (v) => {
|
|
1423
|
-
v && c.value ? i().activate() : n && (n.deactivate(), (!c.value || c.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
1424
|
-
}, { immediate: !0, flush: "post" });
|
|
1425
|
-
}), Rn(() => {
|
|
1426
|
-
n && n.deactivate(), n = null;
|
|
1427
|
-
}), {
|
|
1428
|
-
activate() {
|
|
1429
|
-
i().activate();
|
|
1430
|
-
},
|
|
1431
|
-
deactivate() {
|
|
1432
|
-
n && n.deactivate();
|
|
1433
|
-
},
|
|
1434
|
-
renderImpl() {
|
|
1435
|
-
if (!e.default)
|
|
1436
|
-
return null;
|
|
1437
|
-
const v = e.default().filter((D) => D.type !== xn);
|
|
1438
|
-
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : Pn(v[0], { ref: s });
|
|
1439
|
-
}
|
|
1440
|
-
};
|
|
1441
|
-
}
|
|
1442
|
-
});
|
|
1443
|
-
function ba() {
|
|
1444
|
-
return {
|
|
1445
|
-
debounce: (e, r) => {
|
|
1446
|
-
let n;
|
|
1447
|
-
return (...s) => {
|
|
1448
|
-
clearTimeout(n), n = window?.setTimeout(() => {
|
|
1449
|
-
e(...s);
|
|
1450
|
-
}, r);
|
|
1451
|
-
};
|
|
1452
|
-
}
|
|
1453
|
-
};
|
|
1129
|
+
// ../../../node_modules/.pnpm/focus-trap-vue@4.1.0_focus-trap@8.2.4_vue@3.5.45_typescript@5.9.3_/node_modules/focus-trap-vue/dist/focus-trap-vue.esm-browser.js
|
|
1130
|
+
function vn(e) {
|
|
1131
|
+
return e;
|
|
1454
1132
|
}
|
|
1455
|
-
var
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
this.__data__ = [];
|
|
1567
|
-
}
|
|
1568
|
-
function Ba(t) {
|
|
1569
|
-
var o = this.__data__, u = He(o, t);
|
|
1570
|
-
if (u < 0)
|
|
1571
|
-
return !1;
|
|
1572
|
-
var w = o.length - 1;
|
|
1573
|
-
return u == w ? o.pop() : Ia.call(o, u, 1), !0;
|
|
1574
|
-
}
|
|
1575
|
-
function Ma(t) {
|
|
1576
|
-
var o = this.__data__, u = He(o, t);
|
|
1577
|
-
return u < 0 ? void 0 : o[u][1];
|
|
1578
|
-
}
|
|
1579
|
-
function ja(t) {
|
|
1580
|
-
return He(this.__data__, t) > -1;
|
|
1581
|
-
}
|
|
1582
|
-
function Ka(t, o) {
|
|
1583
|
-
var u = this.__data__, w = He(u, t);
|
|
1584
|
-
return w < 0 ? u.push([t, o]) : u[w][1] = o, this;
|
|
1585
|
-
}
|
|
1586
|
-
ce.prototype.clear = La, ce.prototype.delete = Ba, ce.prototype.get = Ma, ce.prototype.has = ja, ce.prototype.set = Ka;
|
|
1587
|
-
function Ie(t) {
|
|
1588
|
-
var o = -1, u = t ? t.length : 0;
|
|
1589
|
-
for (this.clear(); ++o < u; ) {
|
|
1590
|
-
var w = t[o];
|
|
1591
|
-
this.set(w[0], w[1]);
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
function Za() {
|
|
1595
|
-
this.__data__ = {
|
|
1596
|
-
hash: new pe(),
|
|
1597
|
-
map: new (Re || ce)(),
|
|
1598
|
-
string: new pe()
|
|
1599
|
-
};
|
|
1600
|
-
}
|
|
1601
|
-
function Ha(t) {
|
|
1602
|
-
return We(this, t).delete(t);
|
|
1603
|
-
}
|
|
1604
|
-
function Wa(t) {
|
|
1605
|
-
return We(this, t).get(t);
|
|
1606
|
-
}
|
|
1607
|
-
function Ga(t) {
|
|
1608
|
-
return We(this, t).has(t);
|
|
1609
|
-
}
|
|
1610
|
-
function za(t, o) {
|
|
1611
|
-
return We(this, t).set(t, o), this;
|
|
1612
|
-
}
|
|
1613
|
-
Ie.prototype.clear = Za, Ie.prototype.delete = Ha, Ie.prototype.get = Wa, Ie.prototype.has = Ga, Ie.prototype.set = za;
|
|
1614
|
-
function Ce(t) {
|
|
1615
|
-
this.__data__ = new ce(t);
|
|
1616
|
-
}
|
|
1617
|
-
function Ua() {
|
|
1618
|
-
this.__data__ = new ce();
|
|
1619
|
-
}
|
|
1620
|
-
function Va(t) {
|
|
1621
|
-
return this.__data__.delete(t);
|
|
1622
|
-
}
|
|
1623
|
-
function qa(t) {
|
|
1624
|
-
return this.__data__.get(t);
|
|
1625
|
-
}
|
|
1626
|
-
function Xa(t) {
|
|
1627
|
-
return this.__data__.has(t);
|
|
1628
|
-
}
|
|
1629
|
-
function Ya(t, o) {
|
|
1630
|
-
var u = this.__data__;
|
|
1631
|
-
if (u instanceof ce) {
|
|
1632
|
-
var w = u.__data__;
|
|
1633
|
-
if (!Re || w.length < r - 1)
|
|
1634
|
-
return w.push([t, o]), this;
|
|
1635
|
-
u = this.__data__ = new Ie(w);
|
|
1636
|
-
}
|
|
1637
|
-
return u.set(t, o), this;
|
|
1638
|
-
}
|
|
1639
|
-
Ce.prototype.clear = Ua, Ce.prototype.delete = Va, Ce.prototype.get = qa, Ce.prototype.has = Xa, Ce.prototype.set = Ya;
|
|
1640
|
-
function Qa(t, o) {
|
|
1641
|
-
var u = vt(t) || Tn(t) ? ha(t.length, String) : [], w = u.length, W = !!w;
|
|
1642
|
-
for (var Q in t)
|
|
1643
|
-
ve.call(t, Q) && !(W && (Q == "length" || yn(Q, w))) && u.push(Q);
|
|
1644
|
-
return u;
|
|
1645
|
-
}
|
|
1646
|
-
function xt(t, o, u) {
|
|
1647
|
-
var w = t[o];
|
|
1648
|
-
(!(ve.call(t, o) && Mt(w, u)) || u === void 0 && !(o in t)) && (t[o] = u);
|
|
1649
|
-
}
|
|
1650
|
-
function He(t, o) {
|
|
1651
|
-
for (var u = t.length; u--; )
|
|
1652
|
-
if (Mt(t[u][0], o))
|
|
1653
|
-
return u;
|
|
1654
|
-
return -1;
|
|
1655
|
-
}
|
|
1656
|
-
function Ja(t, o) {
|
|
1657
|
-
return t && Pt(o, bt(o), t);
|
|
1658
|
-
}
|
|
1659
|
-
function dt(t, o, u, w, W, Q, ue) {
|
|
1660
|
-
var J;
|
|
1661
|
-
if (w && (J = Q ? w(t, W, Q, ue) : w(t)), J !== void 0)
|
|
1662
|
-
return J;
|
|
1663
|
-
if (!Ge(t))
|
|
1664
|
-
return t;
|
|
1665
|
-
var Zt = vt(t);
|
|
1666
|
-
if (Zt) {
|
|
1667
|
-
if (J = hn(t), !o)
|
|
1668
|
-
return vn(t, J);
|
|
1669
|
-
} else {
|
|
1670
|
-
var Oe = he(t), Ht = Oe == $ || Oe == A;
|
|
1671
|
-
if (Cn(t))
|
|
1672
|
-
return on(t, o);
|
|
1673
|
-
if (Oe == E || Oe == c || Ht && !Q) {
|
|
1674
|
-
if (It(t))
|
|
1675
|
-
return Q ? t : {};
|
|
1676
|
-
if (J = mn(Ht ? {} : t), !o)
|
|
1677
|
-
return bn(t, Ja(J, t));
|
|
1678
|
-
} else {
|
|
1679
|
-
if (!b[Oe])
|
|
1680
|
-
return Q ? t : {};
|
|
1681
|
-
J = gn(t, Oe, dt, o);
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
ue || (ue = new Ce());
|
|
1685
|
-
var Wt = ue.get(t);
|
|
1686
|
-
if (Wt)
|
|
1687
|
-
return Wt;
|
|
1688
|
-
if (ue.set(t, J), !Zt)
|
|
1689
|
-
var Gt = u ? pn(t) : bt(t);
|
|
1690
|
-
return De(Gt || t, function(pt, ze) {
|
|
1691
|
-
Gt && (ze = pt, pt = t[ze]), xt(J, ze, dt(pt, o, u, w, ze, t, ue));
|
|
1692
|
-
}), J;
|
|
1693
|
-
}
|
|
1694
|
-
function en(t) {
|
|
1695
|
-
return Ge(t) ? Sa(t) : {};
|
|
1696
|
-
}
|
|
1697
|
-
function tn(t, o, u) {
|
|
1698
|
-
var w = o(t);
|
|
1699
|
-
return vt(t) ? w : pa(w, u(t));
|
|
1700
|
-
}
|
|
1701
|
-
function an(t) {
|
|
1702
|
-
return Ze.call(t);
|
|
1703
|
-
}
|
|
1704
|
-
function nn(t) {
|
|
1705
|
-
if (!Ge(t) || kn(t))
|
|
1706
|
-
return !1;
|
|
1707
|
-
var o = Kt(t) || It(t) ? wa : S;
|
|
1708
|
-
return o.test(me(t));
|
|
1709
|
-
}
|
|
1710
|
-
function rn(t) {
|
|
1711
|
-
if (!Bt(t))
|
|
1712
|
-
return _a(t);
|
|
1713
|
-
var o = [];
|
|
1714
|
-
for (var u in Object(t))
|
|
1715
|
-
ve.call(t, u) && u != "constructor" && o.push(u);
|
|
1716
|
-
return o;
|
|
1717
|
-
}
|
|
1718
|
-
function on(t, o) {
|
|
1719
|
-
if (o)
|
|
1720
|
-
return t.slice();
|
|
1721
|
-
var u = new t.constructor(t.length);
|
|
1722
|
-
return t.copy(u), u;
|
|
1723
|
-
}
|
|
1724
|
-
function ft(t) {
|
|
1725
|
-
var o = new t.constructor(t.byteLength);
|
|
1726
|
-
return new Nt(o).set(new Nt(t)), o;
|
|
1727
|
-
}
|
|
1728
|
-
function sn(t, o) {
|
|
1729
|
-
var u = o ? ft(t.buffer) : t.buffer;
|
|
1730
|
-
return new t.constructor(u, t.byteOffset, t.byteLength);
|
|
1731
|
-
}
|
|
1732
|
-
function ln(t, o, u) {
|
|
1733
|
-
var w = o ? u(Ct(t), !0) : Ct(t);
|
|
1734
|
-
return Tt(w, ie, new t.constructor());
|
|
1735
|
-
}
|
|
1736
|
-
function cn(t) {
|
|
1737
|
-
var o = new t.constructor(t.source, _.exec(t));
|
|
1738
|
-
return o.lastIndex = t.lastIndex, o;
|
|
1739
|
-
}
|
|
1740
|
-
function un(t, o, u) {
|
|
1741
|
-
var w = o ? u(_t(t), !0) : _t(t);
|
|
1742
|
-
return Tt(w, Te, new t.constructor());
|
|
1743
|
-
}
|
|
1744
|
-
function dn(t) {
|
|
1745
|
-
return Rt ? Object(Rt.call(t)) : {};
|
|
1746
|
-
}
|
|
1747
|
-
function fn(t, o) {
|
|
1748
|
-
var u = o ? ft(t.buffer) : t.buffer;
|
|
1749
|
-
return new t.constructor(u, t.byteOffset, t.length);
|
|
1750
|
-
}
|
|
1751
|
-
function vn(t, o) {
|
|
1752
|
-
var u = -1, w = t.length;
|
|
1753
|
-
for (o || (o = Array(w)); ++u < w; )
|
|
1754
|
-
o[u] = t[u];
|
|
1755
|
-
return o;
|
|
1756
|
-
}
|
|
1757
|
-
function Pt(t, o, u, w) {
|
|
1758
|
-
u || (u = {});
|
|
1759
|
-
for (var W = -1, Q = o.length; ++W < Q; ) {
|
|
1760
|
-
var ue = o[W], J = void 0;
|
|
1761
|
-
xt(u, ue, J === void 0 ? t[ue] : J);
|
|
1762
|
-
}
|
|
1763
|
-
return u;
|
|
1764
|
-
}
|
|
1765
|
-
function bn(t, o) {
|
|
1766
|
-
return Pt(t, Lt(t), o);
|
|
1767
|
-
}
|
|
1768
|
-
function pn(t) {
|
|
1769
|
-
return tn(t, bt, Lt);
|
|
1770
|
-
}
|
|
1771
|
-
function We(t, o) {
|
|
1772
|
-
var u = t.__data__;
|
|
1773
|
-
return wn(o) ? u[typeof o == "string" ? "string" : "hash"] : u.map;
|
|
1774
|
-
}
|
|
1775
|
-
function _e(t, o) {
|
|
1776
|
-
var u = ma(t, o);
|
|
1777
|
-
return nn(u) ? u : void 0;
|
|
1778
|
-
}
|
|
1779
|
-
var Lt = Ft ? it(Ft, Object) : $n, he = an;
|
|
1780
|
-
(st && he(new st(new ArrayBuffer(1))) != z || Re && he(new Re()) != P || lt && he(lt.resolve()) != H || ct && he(new ct()) != G || ut && he(new ut()) != se) && (he = function(t) {
|
|
1781
|
-
var o = Ze.call(t), u = o == E ? t.constructor : void 0, w = u ? me(u) : void 0;
|
|
1782
|
-
if (w)
|
|
1783
|
-
switch (w) {
|
|
1784
|
-
case Oa:
|
|
1785
|
-
return z;
|
|
1786
|
-
case $a:
|
|
1787
|
-
return P;
|
|
1788
|
-
case Ea:
|
|
1789
|
-
return H;
|
|
1790
|
-
case Aa:
|
|
1791
|
-
return G;
|
|
1792
|
-
case Na:
|
|
1793
|
-
return se;
|
|
1794
|
-
}
|
|
1795
|
-
return o;
|
|
1796
|
-
});
|
|
1797
|
-
function hn(t) {
|
|
1798
|
-
var o = t.length, u = t.constructor(o);
|
|
1799
|
-
return o && typeof t[0] == "string" && ve.call(t, "index") && (u.index = t.index, u.input = t.input), u;
|
|
1800
|
-
}
|
|
1801
|
-
function mn(t) {
|
|
1802
|
-
return typeof t.constructor == "function" && !Bt(t) ? en(ka(t)) : {};
|
|
1803
|
-
}
|
|
1804
|
-
function gn(t, o, u, w) {
|
|
1805
|
-
var W = t.constructor;
|
|
1806
|
-
switch (o) {
|
|
1807
|
-
case X:
|
|
1808
|
-
return ft(t);
|
|
1809
|
-
case v:
|
|
1810
|
-
case g:
|
|
1811
|
-
return new W(+t);
|
|
1812
|
-
case z:
|
|
1813
|
-
return sn(t, w);
|
|
1814
|
-
case ne:
|
|
1815
|
-
case x:
|
|
1816
|
-
case K:
|
|
1817
|
-
case U:
|
|
1818
|
-
case Y:
|
|
1819
|
-
case re:
|
|
1820
|
-
case R:
|
|
1821
|
-
case l:
|
|
1822
|
-
case d:
|
|
1823
|
-
return fn(t, w);
|
|
1824
|
-
case P:
|
|
1825
|
-
return ln(t, w, u);
|
|
1826
|
-
case B:
|
|
1827
|
-
case q:
|
|
1828
|
-
return new W(t);
|
|
1829
|
-
case le:
|
|
1830
|
-
return cn(t);
|
|
1831
|
-
case G:
|
|
1832
|
-
return un(t, w, u);
|
|
1833
|
-
case fe:
|
|
1834
|
-
return dn(t);
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
function yn(t, o) {
|
|
1838
|
-
return o = o ?? s, !!o && (typeof t == "number" || N.test(t)) && t > -1 && t % 1 == 0 && t < o;
|
|
1839
|
-
}
|
|
1840
|
-
function wn(t) {
|
|
1841
|
-
var o = typeof t;
|
|
1842
|
-
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
|
|
1843
|
-
}
|
|
1844
|
-
function kn(t) {
|
|
1845
|
-
return !!Ot && Ot in t;
|
|
1846
|
-
}
|
|
1847
|
-
function Bt(t) {
|
|
1848
|
-
var o = t && t.constructor, u = typeof o == "function" && o.prototype || Ke;
|
|
1849
|
-
return t === u;
|
|
1850
|
-
}
|
|
1851
|
-
function me(t) {
|
|
1852
|
-
if (t != null) {
|
|
1853
|
-
try {
|
|
1854
|
-
return $t.call(t);
|
|
1855
|
-
} catch {
|
|
1856
|
-
}
|
|
1857
|
-
try {
|
|
1858
|
-
return t + "";
|
|
1859
|
-
} catch {
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
return "";
|
|
1863
|
-
}
|
|
1864
|
-
function Sn(t) {
|
|
1865
|
-
return dt(t, !0, !0);
|
|
1866
|
-
}
|
|
1867
|
-
function Mt(t, o) {
|
|
1868
|
-
return t === o || t !== t && o !== o;
|
|
1869
|
-
}
|
|
1870
|
-
function Tn(t) {
|
|
1871
|
-
return In(t) && ve.call(t, "callee") && (!Ta.call(t, "callee") || Ze.call(t) == c);
|
|
1872
|
-
}
|
|
1873
|
-
var vt = Array.isArray;
|
|
1874
|
-
function jt(t) {
|
|
1875
|
-
return t != null && _n(t.length) && !Kt(t);
|
|
1876
|
-
}
|
|
1877
|
-
function In(t) {
|
|
1878
|
-
return On(t) && jt(t);
|
|
1879
|
-
}
|
|
1880
|
-
var Cn = Ca || En;
|
|
1881
|
-
function Kt(t) {
|
|
1882
|
-
var o = Ge(t) ? Ze.call(t) : "";
|
|
1883
|
-
return o == $ || o == A;
|
|
1884
|
-
}
|
|
1885
|
-
function _n(t) {
|
|
1886
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= s;
|
|
1887
|
-
}
|
|
1888
|
-
function Ge(t) {
|
|
1889
|
-
var o = typeof t;
|
|
1890
|
-
return !!t && (o == "object" || o == "function");
|
|
1891
|
-
}
|
|
1892
|
-
function On(t) {
|
|
1893
|
-
return !!t && typeof t == "object";
|
|
1894
|
-
}
|
|
1895
|
-
function bt(t) {
|
|
1896
|
-
return jt(t) ? Qa(t) : rn(t);
|
|
1897
|
-
}
|
|
1898
|
-
function $n() {
|
|
1899
|
-
return [];
|
|
1900
|
-
}
|
|
1901
|
-
function En() {
|
|
1902
|
-
return !1;
|
|
1903
|
-
}
|
|
1904
|
-
a.exports = Sn;
|
|
1905
|
-
})(Le, Le.exports)), Le.exports;
|
|
1133
|
+
var yn = vn({
|
|
1134
|
+
escapeDeactivates: {
|
|
1135
|
+
type: Boolean,
|
|
1136
|
+
default: !0
|
|
1137
|
+
},
|
|
1138
|
+
returnFocusOnDeactivate: {
|
|
1139
|
+
type: Boolean,
|
|
1140
|
+
default: !0
|
|
1141
|
+
},
|
|
1142
|
+
allowOutsideClick: {
|
|
1143
|
+
type: [Boolean, Function],
|
|
1144
|
+
default: !0
|
|
1145
|
+
},
|
|
1146
|
+
clickOutsideDeactivates: [Boolean, Function],
|
|
1147
|
+
initialFocus: [
|
|
1148
|
+
String,
|
|
1149
|
+
Function,
|
|
1150
|
+
Boolean
|
|
1151
|
+
],
|
|
1152
|
+
fallbackFocus: [String, Function],
|
|
1153
|
+
checkCanFocusTrap: Function,
|
|
1154
|
+
checkCanReturnFocus: Function,
|
|
1155
|
+
delayInitialFocus: {
|
|
1156
|
+
type: Boolean,
|
|
1157
|
+
default: !0
|
|
1158
|
+
},
|
|
1159
|
+
document: Object,
|
|
1160
|
+
preventScroll: Boolean,
|
|
1161
|
+
setReturnFocus: [
|
|
1162
|
+
Object,
|
|
1163
|
+
String,
|
|
1164
|
+
Boolean,
|
|
1165
|
+
Function
|
|
1166
|
+
],
|
|
1167
|
+
tabbableOptions: Object
|
|
1168
|
+
}), bn = f({
|
|
1169
|
+
name: "FocusTrap",
|
|
1170
|
+
props: Object.assign({ active: {
|
|
1171
|
+
type: Boolean,
|
|
1172
|
+
default: !0
|
|
1173
|
+
} }, yn),
|
|
1174
|
+
emits: [
|
|
1175
|
+
"update:active",
|
|
1176
|
+
"activate",
|
|
1177
|
+
"postActivate",
|
|
1178
|
+
"deactivate",
|
|
1179
|
+
"postDeactivate"
|
|
1180
|
+
],
|
|
1181
|
+
render() {
|
|
1182
|
+
return this.renderImpl();
|
|
1183
|
+
},
|
|
1184
|
+
setup(t, { slots: i, emit: a }) {
|
|
1185
|
+
let o, s = w(null), c = r(() => {
|
|
1186
|
+
let e = s.value;
|
|
1187
|
+
return e && (e instanceof HTMLElement ? e : e.$el);
|
|
1188
|
+
});
|
|
1189
|
+
function l() {
|
|
1190
|
+
return o ||= _n(c.value, {
|
|
1191
|
+
escapeDeactivates: t.escapeDeactivates,
|
|
1192
|
+
allowOutsideClick: t.allowOutsideClick,
|
|
1193
|
+
returnFocusOnDeactivate: t.returnFocusOnDeactivate,
|
|
1194
|
+
clickOutsideDeactivates: t.clickOutsideDeactivates,
|
|
1195
|
+
onActivate: () => {
|
|
1196
|
+
a("update:active", !0), a("activate");
|
|
1197
|
+
},
|
|
1198
|
+
onDeactivate: () => {
|
|
1199
|
+
a("update:active", !1), a("deactivate");
|
|
1200
|
+
},
|
|
1201
|
+
onPostActivate: () => a("postActivate"),
|
|
1202
|
+
onPostDeactivate: () => a("postDeactivate"),
|
|
1203
|
+
initialFocus: t.initialFocus,
|
|
1204
|
+
fallbackFocus: t.fallbackFocus,
|
|
1205
|
+
tabbableOptions: t.tabbableOptions,
|
|
1206
|
+
delayInitialFocus: t.delayInitialFocus,
|
|
1207
|
+
preventScroll: t.preventScroll
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
return b(() => {
|
|
1211
|
+
P(() => t.active, (e) => {
|
|
1212
|
+
e && c.value ? l().activate() : o && (o.deactivate(), c.value && c.value.nodeType !== Node.COMMENT_NODE || (o = null));
|
|
1213
|
+
}, {
|
|
1214
|
+
immediate: !0,
|
|
1215
|
+
flush: "post"
|
|
1216
|
+
});
|
|
1217
|
+
}), x(() => {
|
|
1218
|
+
o && o.deactivate(), o = null;
|
|
1219
|
+
}), {
|
|
1220
|
+
activate() {
|
|
1221
|
+
l().activate();
|
|
1222
|
+
},
|
|
1223
|
+
deactivate() {
|
|
1224
|
+
o && o.deactivate();
|
|
1225
|
+
},
|
|
1226
|
+
renderImpl() {
|
|
1227
|
+
if (!i.default) return null;
|
|
1228
|
+
let t = i.default().filter((t) => t.type !== e);
|
|
1229
|
+
return !t || !t.length || t.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), t) : n(t[0], { ref: s });
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
// src/composables/useDebounce.ts
|
|
1235
|
+
function xn() {
|
|
1236
|
+
return { debounce: (e, t) => {
|
|
1237
|
+
let n;
|
|
1238
|
+
return (...r) => {
|
|
1239
|
+
clearTimeout(n), n = window?.setTimeout(() => {
|
|
1240
|
+
e(...r);
|
|
1241
|
+
}, t);
|
|
1242
|
+
};
|
|
1243
|
+
} };
|
|
1906
1244
|
}
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
1245
|
+
// src/components/sidebar/AppSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1246
|
+
var Sn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
|
|
1247
|
+
var n = "__lodash_hash_undefined__", r = 9007199254740991, i = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", c = "[object Error]", l = "[object Function]", u = "[object GeneratorFunction]", d = "[object Map]", f = "[object Number]", p = "[object Object]", m = "[object Promise]", h = "[object RegExp]", g = "[object Set]", _ = "[object String]", v = "[object Symbol]", y = "[object WeakMap]", b = "[object ArrayBuffer]", x = "[object DataView]", S = "[object Float32Array]", C = "[object Float64Array]", w = "[object Int8Array]", T = "[object Int16Array]", E = "[object Int32Array]", D = "[object Uint8Array]", O = "[object Uint8ClampedArray]", k = "[object Uint16Array]", A = "[object Uint32Array]", ee = /[\\^$.*+?()[\]{}|]/g, j = /\w*$/, M = /^\[object .+?Constructor\]$/, te = /^(?:0|[1-9]\d*)$/, N = {};
|
|
1248
|
+
N[i] = N[a] = N[b] = N[x] = N[o] = N[s] = N[S] = N[C] = N[w] = N[T] = N[E] = N[d] = N[f] = N[p] = N[h] = N[g] = N[_] = N[v] = N[D] = N[O] = N[k] = N[A] = !0, N[c] = N[l] = N[y] = !1;
|
|
1249
|
+
var P = typeof global == "object" && global && global.Object === Object && global, ne = typeof self == "object" && self && self.Object === Object && self, F = P || ne || Function("return this")(), re = typeof e == "object" && e && !e.nodeType && e, ie = re && typeof t == "object" && t && !t.nodeType && t, ae = ie && ie.exports === re;
|
|
1250
|
+
function oe(e, t) {
|
|
1251
|
+
return e.set(t[0], t[1]), e;
|
|
1252
|
+
}
|
|
1253
|
+
function I(e, t) {
|
|
1254
|
+
return e.add(t), e;
|
|
1255
|
+
}
|
|
1256
|
+
function se(e, t) {
|
|
1257
|
+
for (var n = -1, r = e ? e.length : 0; ++n < r && t(e[n], n, e) !== !1;);
|
|
1258
|
+
return e;
|
|
1259
|
+
}
|
|
1260
|
+
function L(e, t) {
|
|
1261
|
+
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
|
|
1262
|
+
return e;
|
|
1263
|
+
}
|
|
1264
|
+
function ce(e, t, n, r) {
|
|
1265
|
+
var i = -1, a = e ? e.length : 0;
|
|
1266
|
+
for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
|
|
1267
|
+
return n;
|
|
1268
|
+
}
|
|
1269
|
+
function le(e, t) {
|
|
1270
|
+
for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
|
|
1271
|
+
return r;
|
|
1272
|
+
}
|
|
1273
|
+
function R(e, t) {
|
|
1274
|
+
return e?.[t];
|
|
1275
|
+
}
|
|
1276
|
+
function ue(e) {
|
|
1277
|
+
var t = !1;
|
|
1278
|
+
if (e != null && typeof e.toString != "function") try {
|
|
1279
|
+
t = !!(e + "");
|
|
1280
|
+
} catch {}
|
|
1281
|
+
return t;
|
|
1282
|
+
}
|
|
1283
|
+
function de(e) {
|
|
1284
|
+
var t = -1, n = Array(e.size);
|
|
1285
|
+
return e.forEach(function(e, r) {
|
|
1286
|
+
n[++t] = [r, e];
|
|
1287
|
+
}), n;
|
|
1288
|
+
}
|
|
1289
|
+
function fe(e, t) {
|
|
1290
|
+
return function(n) {
|
|
1291
|
+
return e(t(n));
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
function pe(e) {
|
|
1295
|
+
var t = -1, n = Array(e.size);
|
|
1296
|
+
return e.forEach(function(e) {
|
|
1297
|
+
n[++t] = e;
|
|
1298
|
+
}), n;
|
|
1299
|
+
}
|
|
1300
|
+
var me = Array.prototype, he = Function.prototype, z = Object.prototype, B = F["__core-js_shared__"], ge = function() {
|
|
1301
|
+
var e = /[^.]+$/.exec(B && B.keys && B.keys.IE_PROTO || "");
|
|
1302
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
1303
|
+
}(), _e = he.toString, V = z.hasOwnProperty, ve = z.toString, ye = RegExp("^" + _e.call(V).replace(ee, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), be = ae ? F.Buffer : void 0, xe = F.Symbol, Se = F.Uint8Array, Ce = fe(Object.getPrototypeOf, Object), we = Object.create, Te = z.propertyIsEnumerable, Ee = me.splice, De = Object.getOwnPropertySymbols, Oe = be ? be.isBuffer : void 0, ke = fe(Object.keys, Object), Ae = q(F, "DataView"), je = q(F, "Map"), Me = q(F, "Promise"), Ne = q(F, "Set"), Pe = q(F, "WeakMap"), Fe = q(Object, "create"), Ie = Y(Ae), Le = Y(je), Re = Y(Me), ze = Y(Ne), Be = Y(Pe), Ve = xe ? xe.prototype : void 0, He = Ve ? Ve.valueOf : void 0;
|
|
1304
|
+
function H(e) {
|
|
1305
|
+
var t = -1, n = e ? e.length : 0;
|
|
1306
|
+
for (this.clear(); ++t < n;) {
|
|
1307
|
+
var r = e[t];
|
|
1308
|
+
this.set(r[0], r[1]);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
function Ue() {
|
|
1312
|
+
this.__data__ = Fe ? Fe(null) : {};
|
|
1313
|
+
}
|
|
1314
|
+
function We(e) {
|
|
1315
|
+
return this.has(e) && delete this.__data__[e];
|
|
1316
|
+
}
|
|
1317
|
+
function Ge(e) {
|
|
1318
|
+
var t = this.__data__;
|
|
1319
|
+
if (Fe) {
|
|
1320
|
+
var r = t[e];
|
|
1321
|
+
return r === n ? void 0 : r;
|
|
1322
|
+
}
|
|
1323
|
+
return V.call(t, e) ? t[e] : void 0;
|
|
1324
|
+
}
|
|
1325
|
+
function Ke(e) {
|
|
1326
|
+
var t = this.__data__;
|
|
1327
|
+
return Fe ? t[e] !== void 0 : V.call(t, e);
|
|
1328
|
+
}
|
|
1329
|
+
function qe(e, t) {
|
|
1330
|
+
var r = this.__data__;
|
|
1331
|
+
return r[e] = Fe && t === void 0 ? n : t, this;
|
|
1332
|
+
}
|
|
1333
|
+
H.prototype.clear = Ue, H.prototype.delete = We, H.prototype.get = Ge, H.prototype.has = Ke, H.prototype.set = qe;
|
|
1334
|
+
function U(e) {
|
|
1335
|
+
var t = -1, n = e ? e.length : 0;
|
|
1336
|
+
for (this.clear(); ++t < n;) {
|
|
1337
|
+
var r = e[t];
|
|
1338
|
+
this.set(r[0], r[1]);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
function Je() {
|
|
1342
|
+
this.__data__ = [];
|
|
1343
|
+
}
|
|
1344
|
+
function Ye(e) {
|
|
1345
|
+
var t = this.__data__, n = dt(t, e);
|
|
1346
|
+
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Ee.call(t, n, 1), !0);
|
|
1347
|
+
}
|
|
1348
|
+
function Xe(e) {
|
|
1349
|
+
var t = this.__data__, n = dt(t, e);
|
|
1350
|
+
return n < 0 ? void 0 : t[n][1];
|
|
1351
|
+
}
|
|
1352
|
+
function Ze(e) {
|
|
1353
|
+
return dt(this.__data__, e) > -1;
|
|
1354
|
+
}
|
|
1355
|
+
function Qe(e, t) {
|
|
1356
|
+
var n = this.__data__, r = dt(n, e);
|
|
1357
|
+
return r < 0 ? n.push([e, t]) : n[r][1] = t, this;
|
|
1358
|
+
}
|
|
1359
|
+
U.prototype.clear = Je, U.prototype.delete = Ye, U.prototype.get = Xe, U.prototype.has = Ze, U.prototype.set = Qe;
|
|
1360
|
+
function W(e) {
|
|
1361
|
+
var t = -1, n = e ? e.length : 0;
|
|
1362
|
+
for (this.clear(); ++t < n;) {
|
|
1363
|
+
var r = e[t];
|
|
1364
|
+
this.set(r[0], r[1]);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
function $e() {
|
|
1368
|
+
this.__data__ = {
|
|
1369
|
+
hash: new H(),
|
|
1370
|
+
map: new (je || U)(),
|
|
1371
|
+
string: new H()
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
function et(e) {
|
|
1375
|
+
return At(this, e).delete(e);
|
|
1376
|
+
}
|
|
1377
|
+
function tt(e) {
|
|
1378
|
+
return At(this, e).get(e);
|
|
1379
|
+
}
|
|
1380
|
+
function nt(e) {
|
|
1381
|
+
return At(this, e).has(e);
|
|
1382
|
+
}
|
|
1383
|
+
function rt(e, t) {
|
|
1384
|
+
return At(this, e).set(e, t), this;
|
|
1385
|
+
}
|
|
1386
|
+
W.prototype.clear = $e, W.prototype.delete = et, W.prototype.get = tt, W.prototype.has = nt, W.prototype.set = rt;
|
|
1387
|
+
function G(e) {
|
|
1388
|
+
this.__data__ = new U(e);
|
|
1389
|
+
}
|
|
1390
|
+
function it() {
|
|
1391
|
+
this.__data__ = new U();
|
|
1392
|
+
}
|
|
1393
|
+
function at(e) {
|
|
1394
|
+
return this.__data__.delete(e);
|
|
1395
|
+
}
|
|
1396
|
+
function ot(e) {
|
|
1397
|
+
return this.__data__.get(e);
|
|
1398
|
+
}
|
|
1399
|
+
function st(e) {
|
|
1400
|
+
return this.__data__.has(e);
|
|
1401
|
+
}
|
|
1402
|
+
function ct(e, t) {
|
|
1403
|
+
var n = this.__data__;
|
|
1404
|
+
if (n instanceof U) {
|
|
1405
|
+
var r = n.__data__;
|
|
1406
|
+
if (!je || r.length < 199) return r.push([e, t]), this;
|
|
1407
|
+
n = this.__data__ = new W(r);
|
|
1408
|
+
}
|
|
1409
|
+
return n.set(e, t), this;
|
|
1410
|
+
}
|
|
1411
|
+
G.prototype.clear = it, G.prototype.delete = at, G.prototype.get = ot, G.prototype.has = st, G.prototype.set = ct;
|
|
1412
|
+
function lt(e, t) {
|
|
1413
|
+
var n = X(e) || Vt(e) ? le(e.length, String) : [], r = n.length, i = !!r;
|
|
1414
|
+
for (var a in e) (t || V.call(e, a)) && (!i || a != "length" && !Ft(a, r)) && n.push(a);
|
|
1415
|
+
return n;
|
|
1416
|
+
}
|
|
1417
|
+
function ut(e, t, n) {
|
|
1418
|
+
var r = e[t];
|
|
1419
|
+
(!(V.call(e, t) && Bt(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
1420
|
+
}
|
|
1421
|
+
function dt(e, t) {
|
|
1422
|
+
for (var n = e.length; n--;) if (Bt(e[n][0], t)) return n;
|
|
1423
|
+
return -1;
|
|
1424
|
+
}
|
|
1425
|
+
function ft(e, t) {
|
|
1426
|
+
return e && Dt(t, Jt(t), e);
|
|
1427
|
+
}
|
|
1428
|
+
function pt(e, t, n, r, a, o, s) {
|
|
1429
|
+
var c;
|
|
1430
|
+
if (r && (c = o ? r(e, a, o, s) : r(e)), c !== void 0) return c;
|
|
1431
|
+
if (!Z(e)) return e;
|
|
1432
|
+
var d = X(e);
|
|
1433
|
+
if (d) {
|
|
1434
|
+
if (c = Mt(e), !t) return Et(e, c);
|
|
1435
|
+
} else {
|
|
1436
|
+
var f = J(e), m = f == l || f == u;
|
|
1437
|
+
if (Wt(e)) return yt(e, t);
|
|
1438
|
+
if (f == p || f == i || m && !o) {
|
|
1439
|
+
if (ue(e)) return o ? e : {};
|
|
1440
|
+
if (c = Nt(m ? {} : e), !t) return Ot(e, ft(c, e));
|
|
1441
|
+
} else {
|
|
1442
|
+
if (!N[f]) return o ? e : {};
|
|
1443
|
+
c = Pt(e, f, pt, t);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
s ||= new G();
|
|
1447
|
+
var h = s.get(e);
|
|
1448
|
+
if (h) return h;
|
|
1449
|
+
if (s.set(e, c), !d) var g = n ? kt(e) : Jt(e);
|
|
1450
|
+
return se(g || e, function(i, a) {
|
|
1451
|
+
g && (a = i, i = e[a]), ut(c, a, pt(i, t, n, r, a, e, s));
|
|
1452
|
+
}), c;
|
|
1453
|
+
}
|
|
1454
|
+
function mt(e) {
|
|
1455
|
+
return Z(e) ? we(e) : {};
|
|
1456
|
+
}
|
|
1457
|
+
function ht(e, t, n) {
|
|
1458
|
+
var r = t(e);
|
|
1459
|
+
return X(e) ? r : L(r, n(e));
|
|
1460
|
+
}
|
|
1461
|
+
function gt(e) {
|
|
1462
|
+
return ve.call(e);
|
|
1463
|
+
}
|
|
1464
|
+
function _t(e) {
|
|
1465
|
+
return !Z(e) || Lt(e) ? !1 : (Gt(e) || ue(e) ? ye : M).test(Y(e));
|
|
1466
|
+
}
|
|
1467
|
+
function vt(e) {
|
|
1468
|
+
if (!Rt(e)) return ke(e);
|
|
1469
|
+
var t = [];
|
|
1470
|
+
for (var n in Object(e)) V.call(e, n) && n != "constructor" && t.push(n);
|
|
1471
|
+
return t;
|
|
1472
|
+
}
|
|
1473
|
+
function yt(e, t) {
|
|
1474
|
+
if (t) return e.slice();
|
|
1475
|
+
var n = new e.constructor(e.length);
|
|
1476
|
+
return e.copy(n), n;
|
|
1477
|
+
}
|
|
1478
|
+
function bt(e) {
|
|
1479
|
+
var t = new e.constructor(e.byteLength);
|
|
1480
|
+
return new Se(t).set(new Se(e)), t;
|
|
1481
|
+
}
|
|
1482
|
+
function xt(e, t) {
|
|
1483
|
+
var n = t ? bt(e.buffer) : e.buffer;
|
|
1484
|
+
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1485
|
+
}
|
|
1486
|
+
function St(e, t, n) {
|
|
1487
|
+
return ce(t ? n(de(e), !0) : de(e), oe, new e.constructor());
|
|
1488
|
+
}
|
|
1489
|
+
function Ct(e) {
|
|
1490
|
+
var t = new e.constructor(e.source, j.exec(e));
|
|
1491
|
+
return t.lastIndex = e.lastIndex, t;
|
|
1492
|
+
}
|
|
1493
|
+
function wt(e, t, n) {
|
|
1494
|
+
return ce(t ? n(pe(e), !0) : pe(e), I, new e.constructor());
|
|
1495
|
+
}
|
|
1496
|
+
function K(e) {
|
|
1497
|
+
return He ? Object(He.call(e)) : {};
|
|
1498
|
+
}
|
|
1499
|
+
function Tt(e, t) {
|
|
1500
|
+
var n = t ? bt(e.buffer) : e.buffer;
|
|
1501
|
+
return new e.constructor(n, e.byteOffset, e.length);
|
|
1502
|
+
}
|
|
1503
|
+
function Et(e, t) {
|
|
1504
|
+
var n = -1, r = e.length;
|
|
1505
|
+
for (t ||= Array(r); ++n < r;) t[n] = e[n];
|
|
1506
|
+
return t;
|
|
1507
|
+
}
|
|
1508
|
+
function Dt(e, t, n, r) {
|
|
1509
|
+
n ||= {};
|
|
1510
|
+
for (var i = -1, a = t.length; ++i < a;) {
|
|
1511
|
+
var o = t[i], s = r ? r(n[o], e[o], o, n, e) : void 0;
|
|
1512
|
+
ut(n, o, s === void 0 ? e[o] : s);
|
|
1513
|
+
}
|
|
1514
|
+
return n;
|
|
1515
|
+
}
|
|
1516
|
+
function Ot(e, t) {
|
|
1517
|
+
return Dt(e, jt(e), t);
|
|
1518
|
+
}
|
|
1519
|
+
function kt(e) {
|
|
1520
|
+
return ht(e, Jt, jt);
|
|
1521
|
+
}
|
|
1522
|
+
function At(e, t) {
|
|
1523
|
+
var n = e.__data__;
|
|
1524
|
+
return It(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1525
|
+
}
|
|
1526
|
+
function q(e, t) {
|
|
1527
|
+
var n = R(e, t);
|
|
1528
|
+
return _t(n) ? n : void 0;
|
|
1529
|
+
}
|
|
1530
|
+
var jt = De ? fe(De, Object) : Yt, J = gt;
|
|
1531
|
+
(Ae && J(new Ae(/* @__PURE__ */ new ArrayBuffer(1))) != x || je && J(new je()) != d || Me && J(Me.resolve()) != m || Ne && J(new Ne()) != g || Pe && J(new Pe()) != y) && (J = function(e) {
|
|
1532
|
+
var t = ve.call(e), n = t == p ? e.constructor : void 0, r = n ? Y(n) : void 0;
|
|
1533
|
+
if (r) switch (r) {
|
|
1534
|
+
case Ie: return x;
|
|
1535
|
+
case Le: return d;
|
|
1536
|
+
case Re: return m;
|
|
1537
|
+
case ze: return g;
|
|
1538
|
+
case Be: return y;
|
|
1539
|
+
}
|
|
1540
|
+
return t;
|
|
1541
|
+
});
|
|
1542
|
+
function Mt(e) {
|
|
1543
|
+
var t = e.length, n = e.constructor(t);
|
|
1544
|
+
return t && typeof e[0] == "string" && V.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1545
|
+
}
|
|
1546
|
+
function Nt(e) {
|
|
1547
|
+
return typeof e.constructor == "function" && !Rt(e) ? mt(Ce(e)) : {};
|
|
1548
|
+
}
|
|
1549
|
+
function Pt(e, t, n, r) {
|
|
1550
|
+
var i = e.constructor;
|
|
1551
|
+
switch (t) {
|
|
1552
|
+
case b: return bt(e);
|
|
1553
|
+
case o:
|
|
1554
|
+
case s: return new i(+e);
|
|
1555
|
+
case x: return xt(e, r);
|
|
1556
|
+
case S:
|
|
1557
|
+
case C:
|
|
1558
|
+
case w:
|
|
1559
|
+
case T:
|
|
1560
|
+
case E:
|
|
1561
|
+
case D:
|
|
1562
|
+
case O:
|
|
1563
|
+
case k:
|
|
1564
|
+
case A: return Tt(e, r);
|
|
1565
|
+
case d: return St(e, r, n);
|
|
1566
|
+
case f:
|
|
1567
|
+
case _: return new i(e);
|
|
1568
|
+
case h: return Ct(e);
|
|
1569
|
+
case g: return wt(e, r, n);
|
|
1570
|
+
case v: return K(e);
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
function Ft(e, t) {
|
|
1574
|
+
return t ??= r, !!t && (typeof e == "number" || te.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1575
|
+
}
|
|
1576
|
+
function It(e) {
|
|
1577
|
+
var t = typeof e;
|
|
1578
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1579
|
+
}
|
|
1580
|
+
function Lt(e) {
|
|
1581
|
+
return !!ge && ge in e;
|
|
1582
|
+
}
|
|
1583
|
+
function Rt(e) {
|
|
1584
|
+
var t = e && e.constructor;
|
|
1585
|
+
return e === (typeof t == "function" && t.prototype || z);
|
|
1586
|
+
}
|
|
1587
|
+
function Y(e) {
|
|
1588
|
+
if (e != null) {
|
|
1589
|
+
try {
|
|
1590
|
+
return _e.call(e);
|
|
1591
|
+
} catch {}
|
|
1592
|
+
try {
|
|
1593
|
+
return e + "";
|
|
1594
|
+
} catch {}
|
|
1595
|
+
}
|
|
1596
|
+
return "";
|
|
1597
|
+
}
|
|
1598
|
+
function zt(e) {
|
|
1599
|
+
return pt(e, !0, !0);
|
|
1600
|
+
}
|
|
1601
|
+
function Bt(e, t) {
|
|
1602
|
+
return e === t || e !== e && t !== t;
|
|
1603
|
+
}
|
|
1604
|
+
function Vt(e) {
|
|
1605
|
+
return Ut(e) && V.call(e, "callee") && (!Te.call(e, "callee") || ve.call(e) == i);
|
|
1606
|
+
}
|
|
1607
|
+
var X = Array.isArray;
|
|
1608
|
+
function Ht(e) {
|
|
1609
|
+
return e != null && Kt(e.length) && !Gt(e);
|
|
1610
|
+
}
|
|
1611
|
+
function Ut(e) {
|
|
1612
|
+
return qt(e) && Ht(e);
|
|
1613
|
+
}
|
|
1614
|
+
var Wt = Oe || Xt;
|
|
1615
|
+
function Gt(e) {
|
|
1616
|
+
var t = Z(e) ? ve.call(e) : "";
|
|
1617
|
+
return t == l || t == u;
|
|
1618
|
+
}
|
|
1619
|
+
function Kt(e) {
|
|
1620
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= r;
|
|
1621
|
+
}
|
|
1622
|
+
function Z(e) {
|
|
1623
|
+
var t = typeof e;
|
|
1624
|
+
return !!e && (t == "object" || t == "function");
|
|
1625
|
+
}
|
|
1626
|
+
function qt(e) {
|
|
1627
|
+
return !!e && typeof e == "object";
|
|
1628
|
+
}
|
|
1629
|
+
function Jt(e) {
|
|
1630
|
+
return Ht(e) ? lt(e) : vt(e);
|
|
1631
|
+
}
|
|
1632
|
+
function Yt() {
|
|
1633
|
+
return [];
|
|
1634
|
+
}
|
|
1635
|
+
function Xt() {
|
|
1636
|
+
return !1;
|
|
1637
|
+
}
|
|
1638
|
+
t.exports = zt;
|
|
1639
|
+
})))(), 1), Cn = {
|
|
1640
|
+
key: 0,
|
|
1641
|
+
class: "sidebar-header"
|
|
1642
|
+
}, wn = { class: "sidebar-content-container" }, Tn = {
|
|
1643
|
+
key: 0,
|
|
1644
|
+
class: "sidebar-top"
|
|
1645
|
+
}, En = { "aria-label": "Main menu" }, Dn = ["id"], On = ["aria-labelledby"], kn = {
|
|
1646
|
+
key: 1,
|
|
1647
|
+
class: "sidebar-level-divider",
|
|
1648
|
+
role: "separator"
|
|
1649
|
+
}, An = {
|
|
1650
|
+
key: 2,
|
|
1651
|
+
class: "level-primary bottom-items"
|
|
1652
|
+
}, jn = { class: "sidebar-footer" }, $ = "_ungrouped", Mn = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
1653
|
+
__name: "AppSidebar",
|
|
1654
|
+
props: {
|
|
1655
|
+
topItems: {
|
|
1656
|
+
type: Array,
|
|
1657
|
+
default: () => []
|
|
1658
|
+
},
|
|
1659
|
+
bottomItems: {
|
|
1660
|
+
type: Array,
|
|
1661
|
+
default: () => []
|
|
1662
|
+
},
|
|
1663
|
+
groupConfig: {
|
|
1664
|
+
type: Object,
|
|
1665
|
+
default: () => ({})
|
|
1666
|
+
},
|
|
1667
|
+
headerHeight: {
|
|
1668
|
+
type: Number,
|
|
1669
|
+
default: 60
|
|
1670
|
+
},
|
|
1671
|
+
topOffset: {
|
|
1672
|
+
type: Number,
|
|
1673
|
+
default: 0
|
|
1674
|
+
},
|
|
1675
|
+
zIndex: {
|
|
1676
|
+
type: Number,
|
|
1677
|
+
default: 3
|
|
1678
|
+
},
|
|
1679
|
+
open: {
|
|
1680
|
+
type: Boolean,
|
|
1681
|
+
default: !1
|
|
1682
|
+
},
|
|
1683
|
+
mobileEnabled: {
|
|
1684
|
+
type: Boolean,
|
|
1685
|
+
default: !1
|
|
1686
|
+
},
|
|
1687
|
+
mobileTopOffset: {
|
|
1688
|
+
type: Number,
|
|
1689
|
+
default: 0
|
|
1690
|
+
},
|
|
1691
|
+
mobileHeaderVisible: {
|
|
1692
|
+
type: Boolean,
|
|
1693
|
+
default: !1
|
|
1694
|
+
},
|
|
1695
|
+
mobileCloseDelay: {
|
|
1696
|
+
type: Number,
|
|
1697
|
+
default: 350
|
|
1698
|
+
},
|
|
1699
|
+
mobileOverlay: {
|
|
1700
|
+
type: Boolean,
|
|
1701
|
+
default: !0
|
|
1702
|
+
},
|
|
1703
|
+
mobileOverlayZIndex: {
|
|
1704
|
+
type: Number,
|
|
1705
|
+
default: null
|
|
1706
|
+
},
|
|
1707
|
+
mobileOverlayCloseOnClick: {
|
|
1708
|
+
type: Boolean,
|
|
1709
|
+
default: !0
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
emits: [
|
|
1713
|
+
"click",
|
|
1714
|
+
"toggle",
|
|
1715
|
+
"toggle-collapse"
|
|
1716
|
+
],
|
|
1717
|
+
setup(e, { emit: n }) {
|
|
1718
|
+
te((t) => ({
|
|
1719
|
+
v0340c522: h.value.mobileHeight,
|
|
1720
|
+
v7ecf873a: h.value.mobileTop,
|
|
1721
|
+
v9b443174: e.zIndex,
|
|
1722
|
+
v682f08a0: h.value.height,
|
|
1723
|
+
b2c3b708: h.value.top,
|
|
1724
|
+
v537cb660: x.value.marginTop,
|
|
1725
|
+
v766c92ce: be.value,
|
|
1726
|
+
v05a90ebc: g.value.display,
|
|
1727
|
+
v28e7fd93: g.value.minHeight,
|
|
1728
|
+
f5f71bea: C.value.top,
|
|
1729
|
+
v68798002: C.value.zIndex
|
|
1730
|
+
}));
|
|
1731
|
+
let l = n, u = e, f = N(), p = r(() => !!f.header), m = r(() => !!f.top), h = r(() => ({
|
|
1732
|
+
mobileTop: u.mobileTopOffset && u.mobileEnabled ? `${u.mobileTopOffset}px` : u.topOffset ? `${u.topOffset}px` : "0",
|
|
1733
|
+
top: u.topOffset ? `${u.topOffset}px` : "0",
|
|
1734
|
+
mobileHeight: u.mobileTopOffset && u.mobileEnabled ? `calc(100% - ${u.mobileTopOffset}px)` : "100%",
|
|
1735
|
+
height: u.topOffset ? `calc(100% - ${u.topOffset}px)` : "100%"
|
|
1736
|
+
})), g = r(() => ({
|
|
1737
|
+
display: !u.mobileHeaderVisible && u.mobileEnabled ? "none" : "flex",
|
|
1738
|
+
minHeight: `${u.headerHeight}px`
|
|
1739
|
+
})), x = r(() => ({ marginTop: p.value ? `${u.headerHeight}px` : "0" })), C = r(() => ({
|
|
1740
|
+
top: u.mobileTopOffset && u.mobileEnabled ? `${u.mobileTopOffset}px` : "0",
|
|
1741
|
+
zIndex: u.mobileOverlayZIndex === null ? u.zIndex > 1 ? u.zIndex - 1 : 1 : u.mobileOverlayZIndex
|
|
1742
|
+
})), k = (e) => (0, Sn.default)(e).map((e) => {
|
|
1743
|
+
if (e) {
|
|
1744
|
+
e.key && e.key?.trim() || (e.key = String(e.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), e.testId && e.testId?.trim() || (e.testId = String(e.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1745
|
+
for (let t of e.items || []) t.parentKey = e.key, t.testId && t.testId?.trim() || (t.testId = String(t.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1746
|
+
}
|
|
1747
|
+
return e;
|
|
1748
|
+
}), ee = r(() => u.topItems.length ? k(u.topItems) : []), j = r(() => u.bottomItems.length ? k(u.bottomItems) : []), ne = (e = "") => e.trim().replace(" ", "").replace(/[^a-z0-9]+/gi, "-").toLowerCase(), re = r(() => {
|
|
1749
|
+
let e = /* @__PURE__ */ new Map();
|
|
1750
|
+
e.set($, []);
|
|
1751
|
+
for (let t of ee.value) {
|
|
1752
|
+
let n = t.group || $;
|
|
1753
|
+
e.has(n) || e.set(n, []), e.get(n)?.push(t);
|
|
1754
|
+
}
|
|
1755
|
+
return e;
|
|
1756
|
+
}), ie = lt(`max-width: ${Ne}`), I = (e = "") => {
|
|
1757
|
+
if (e === $ || !e.trim()) return null;
|
|
1758
|
+
let t = {
|
|
1759
|
+
label: e,
|
|
1760
|
+
collapsible: !1,
|
|
1761
|
+
collapsed: !1
|
|
1762
|
+
}, n = e.trim().replace(" ", "");
|
|
1763
|
+
return n = n.charAt(0).toLowerCase() + n.slice(1), e && u.groupConfig && (u.groupConfig[e] || u.groupConfig[n]) ? u.groupConfig[e] || u.groupConfig[n] : t;
|
|
1764
|
+
}, L = (e) => !!I(e)?.collapsible, ce = (e) => !!I(e)?.collapsed, le = (e, t, n) => {
|
|
1765
|
+
let r = I(e);
|
|
1766
|
+
r && (r.collapsed = !t), n(), l("toggle-collapse", e, r);
|
|
1767
|
+
}, R = w(u.open), ue = (e) => {
|
|
1768
|
+
R.value !== e && (R.value = e, l("toggle", e)), e ? document?.body?.classList.add("kong-ui-app-sidebar-open") : document?.body?.classList.remove("kong-ui-app-sidebar-open"), fe.value = !1;
|
|
1769
|
+
}, de = () => {
|
|
1770
|
+
u.mobileOverlayCloseOnClick && ue(!1);
|
|
1771
|
+
}, fe = w(!1), pe = (e) => {
|
|
1772
|
+
fe.value = !0, l("click", e), setTimeout(() => {
|
|
1773
|
+
ue(!1);
|
|
1774
|
+
}, u.mobileCloseDelay);
|
|
1775
|
+
};
|
|
1776
|
+
P(() => u.open, (e) => {
|
|
1777
|
+
ue(e);
|
|
1778
|
+
});
|
|
1779
|
+
let { debounce: me } = xn(), he = me(() => {
|
|
1780
|
+
R.value && z.value !== window?.innerWidth && (z.value = window?.innerWidth, ue(!1));
|
|
1781
|
+
}, 200), z = w(), B = w(!1), ge = w(), _e = () => {
|
|
1782
|
+
B.value || (B.value = !0, clearTimeout(ge.value), ge.value = setTimeout(() => B.value = !1, 1300));
|
|
1783
|
+
}, V = w(null), ve = r(() => R.value && u.mobileEnabled), ye = async (e) => {
|
|
1784
|
+
e ? (await _(), await new Promise((e) => setTimeout(e, 300)), V.value?.activate()) : V.value?.deactivate();
|
|
1785
|
+
};
|
|
1786
|
+
P(ve, async (e) => {
|
|
1787
|
+
e ? await ye(!0) : await ye(!1);
|
|
1788
|
+
}, { immediate: !0 });
|
|
1789
|
+
let be = w("0px"), xe = () => {
|
|
1790
|
+
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator?.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test(navigator?.userAgentData?.platform))) return;
|
|
1791
|
+
let e = document.createElement("div");
|
|
1792
|
+
e.style.visibility = "hidden", e.style.width = "100px", document.body.appendChild(e);
|
|
1793
|
+
let t = e.offsetWidth;
|
|
1794
|
+
e.style.overflow = "scroll";
|
|
1795
|
+
let n = document.createElement("div");
|
|
1796
|
+
n.style.width = "100%", e.appendChild(n);
|
|
1797
|
+
let r = n.offsetWidth;
|
|
1798
|
+
e.parentNode && e.parentNode.removeChild(e), t - r === 0 && (be.value = "8px");
|
|
1799
|
+
};
|
|
1800
|
+
return b(async () => {
|
|
1801
|
+
if (z.value = window?.innerWidth, window.addEventListener("resize", he), window.addEventListener("resize", _e), u.groupConfig && ie.value) for (let e in u.groupConfig) {
|
|
1802
|
+
let t = u.groupConfig[e];
|
|
1803
|
+
t.collapsed = !1;
|
|
1804
|
+
}
|
|
1805
|
+
await _(), xe();
|
|
1806
|
+
}), y(() => {
|
|
1807
|
+
window.removeEventListener("resize", he), window.removeEventListener("resize", _e);
|
|
1808
|
+
}), (n, r) => {
|
|
1809
|
+
let l = D("KCollapse");
|
|
1810
|
+
return S(), o(t, null, [R.value && e.mobileOverlay && e.mobileEnabled ? (S(), o("div", {
|
|
1811
|
+
key: 0,
|
|
1812
|
+
class: "kong-ui-app-sidebar-overlay",
|
|
1813
|
+
onClick: de
|
|
1814
|
+
})) : a("", !0), d(M(bn), {
|
|
1815
|
+
ref_key: "focusTrap",
|
|
1816
|
+
ref: V,
|
|
1817
|
+
active: !1,
|
|
1818
|
+
"allow-outside-click": "",
|
|
1819
|
+
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1820
|
+
}, {
|
|
1821
|
+
default: F(() => [s("aside", {
|
|
1822
|
+
class: v(["kong-ui-app-sidebar", {
|
|
1823
|
+
"sidebar-open": R.value,
|
|
1824
|
+
"no-sidebar-header": !p.value,
|
|
1825
|
+
"mobile-header-hidden": e.mobileEnabled && (!p.value || !e.mobileHeaderVisible),
|
|
1826
|
+
"mobile-disabled": !e.mobileEnabled,
|
|
1827
|
+
"disable-transitions": B.value
|
|
1828
|
+
}]),
|
|
1829
|
+
tabindex: "-1"
|
|
1830
|
+
}, [
|
|
1831
|
+
p.value ? (S(), o("div", Cn, [E(n.$slots, "header", {}, void 0, !0)])) : a("", !0),
|
|
1832
|
+
s("div", wn, [m.value ? (S(), o("div", Tn, [E(n.$slots, "top", {}, void 0, !0)])) : a("", !0), s("nav", En, [
|
|
1833
|
+
re.value.size > 0 ? (S(!0), o(t, { key: 0 }, T(re.value, ([e, r]) => (S(), i(l, {
|
|
1834
|
+
key: e,
|
|
1835
|
+
class: v(["level-primary-group-collapse", {
|
|
1836
|
+
"not-collapsible": !L(e),
|
|
1837
|
+
ungrouped: e === $
|
|
1838
|
+
}]),
|
|
1839
|
+
"data-testid": e === $ ? "level-primary-group-collapse-ungrouped" : `level-primary-group-collapse-${e}`,
|
|
1840
|
+
"model-value": L(e) && ce(e) || !1
|
|
1841
|
+
}, {
|
|
1842
|
+
trigger: F(({ isCollapsed: t, toggle: n }) => [(S(), i(O(L(e) ? M(se) : "div"), {
|
|
1843
|
+
appearance: L(e) ? "none" : void 0,
|
|
1844
|
+
class: "level-primary-group-collapse-trigger",
|
|
1845
|
+
onClick: (r) => L(e) ? le(e, t, n) : void 0
|
|
1846
|
+
}, {
|
|
1847
|
+
default: F(() => [e === $ ? a("", !0) : (S(), o("div", {
|
|
1848
|
+
key: 0,
|
|
1849
|
+
id: `level-primary-group-${ne(e)}`,
|
|
1850
|
+
class: "level-primary-group-name",
|
|
1851
|
+
"data-testid": "level-primary-group-name",
|
|
1852
|
+
role: "presentation"
|
|
1853
|
+
}, A(I(e)?.label || e), 9, Dn)), L(e) ? (S(), i(O(M(t ? oe : ae)), {
|
|
1854
|
+
key: 1,
|
|
1855
|
+
class: "level-primary-group-collapse-icon",
|
|
1856
|
+
color: `var(--kui-navigation-color-text, ${M(Fe)})`,
|
|
1857
|
+
"data-testid": "level-primary-group-collapse-icon",
|
|
1858
|
+
size: `var(--kui-icon-size-30, ${M(Pe)})`
|
|
1859
|
+
}, null, 8, ["color", "size"])) : a("", !0)]),
|
|
1860
|
+
_: 2
|
|
1861
|
+
}, 1032, ["appearance", "onClick"]))]),
|
|
1862
|
+
default: F(() => [s("ul", {
|
|
1863
|
+
"aria-labelledby": e === $ ? void 0 : `level-primary-group-${ne(e)}`,
|
|
1864
|
+
class: "level-primary top-items"
|
|
1865
|
+
}, [(S(!0), o(t, null, T(r, (e) => (S(), i(xt, {
|
|
1866
|
+
key: e.name,
|
|
1867
|
+
item: e,
|
|
1868
|
+
onClick: pe
|
|
1869
|
+
}, c({
|
|
1870
|
+
[`sidebar-icon-${e.key}`]: F(() => [E(n.$slots, `sidebar-icon-${e.key}`, {}, void 0, !0)]),
|
|
1871
|
+
_: 2
|
|
1872
|
+
}, [n.$slots[`sidebar-after-${e.key}`] ? {
|
|
1873
|
+
name: `sidebar-after-${e.key}`,
|
|
1874
|
+
fn: F(() => [E(n.$slots, `sidebar-after-${e.key}`, {}, void 0, !0)]),
|
|
1875
|
+
key: "0"
|
|
1876
|
+
} : void 0]), 1032, ["item"]))), 128))], 8, On)]),
|
|
1877
|
+
_: 2
|
|
1878
|
+
}, 1032, [
|
|
1879
|
+
"class",
|
|
1880
|
+
"data-testid",
|
|
1881
|
+
"model-value"
|
|
1882
|
+
]))), 128)) : a("", !0),
|
|
1883
|
+
re.value.size > 0 && j.value.length ? (S(), o("div", kn)) : a("", !0),
|
|
1884
|
+
j.value.length ? (S(), o("ul", An, [(S(!0), o(t, null, T(j.value, (e) => (S(), i(xt, {
|
|
1885
|
+
key: e.name,
|
|
1886
|
+
item: e,
|
|
1887
|
+
onClick: pe
|
|
1888
|
+
}, {
|
|
1889
|
+
[`sidebar-icon-${e.key}`]: F(() => [E(n.$slots, `sidebar-icon-${e.key}`, {}, void 0, !0)]),
|
|
1890
|
+
_: 2
|
|
1891
|
+
}, 1032, ["item"]))), 128))])) : a("", !0)
|
|
1892
|
+
])]),
|
|
1893
|
+
s("div", jn, [E(n.$slots, "footer", {}, void 0, !0)])
|
|
1894
|
+
], 2)]),
|
|
1895
|
+
_: 3
|
|
1896
|
+
}, 512)], 64);
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
}), [["__scopeId", "data-v-2fffff37"]]), Nn = ["aria-label"], Pn = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
1900
|
+
__name: "SidebarToggle",
|
|
1901
|
+
props: { active: {
|
|
1902
|
+
type: Boolean,
|
|
1903
|
+
default: !1
|
|
1904
|
+
} },
|
|
1905
|
+
emits: ["toggle"],
|
|
1906
|
+
setup(e, { emit: t }) {
|
|
1907
|
+
let n = t, r = e, i = w(r.active || !1), a = (e) => {
|
|
1908
|
+
e.preventDefault(), i.value = !i.value, n("toggle", i.value);
|
|
1909
|
+
};
|
|
1910
|
+
return P(() => r.active, (e) => {
|
|
1911
|
+
i.value = e;
|
|
1912
|
+
}), (e, t) => (S(), o("a", {
|
|
1913
|
+
"aria-haspopup": "true",
|
|
1914
|
+
"aria-label": i.value ? "Close Main Menu" : "Open Main Menu",
|
|
1915
|
+
class: v(["sidebar-menu-toggle", { active: i.value }]),
|
|
1916
|
+
href: "#",
|
|
1917
|
+
role: "button",
|
|
1918
|
+
onClick: ie(a, ["prevent"])
|
|
1919
|
+
}, [...t[0] ||= [
|
|
1920
|
+
s("span", { class: "line" }, null, -1),
|
|
1921
|
+
s("span", { class: "line" }, null, -1),
|
|
1922
|
+
s("span", { class: "line" }, null, -1)
|
|
1923
|
+
]], 10, Nn));
|
|
1924
|
+
}
|
|
1925
|
+
}), [["__scopeId", "data-v-2238b0de"]]), Fn = { id: "kong-ui-app-layout-notification" }, In = { class: "mobile-logo" }, Ln = {
|
|
1926
|
+
key: 0,
|
|
1927
|
+
class: "navbar-logo"
|
|
1928
|
+
}, Rn = {
|
|
1929
|
+
class: "kong-ui-app-layout-main",
|
|
1930
|
+
"data-testid": "kong-ui-app-layout-main"
|
|
1931
|
+
}, zn = { class: "kong-ui-app-layout-content" }, Bn = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
1932
|
+
__name: "AppLayout",
|
|
1933
|
+
props: {
|
|
1934
|
+
hideDefaultSlot: {
|
|
1935
|
+
type: Boolean,
|
|
1936
|
+
default: !1
|
|
1937
|
+
},
|
|
1938
|
+
navbarHidden: {
|
|
1939
|
+
type: Boolean,
|
|
1940
|
+
default: !1
|
|
1941
|
+
},
|
|
1942
|
+
sidebarHidden: {
|
|
1943
|
+
type: Boolean,
|
|
1944
|
+
default: !1
|
|
1945
|
+
},
|
|
1946
|
+
sidebarOpen: {
|
|
1947
|
+
type: Boolean,
|
|
1948
|
+
default: !1
|
|
1949
|
+
},
|
|
1950
|
+
sidebarTopItems: {
|
|
1951
|
+
type: Array,
|
|
1952
|
+
default: () => []
|
|
1953
|
+
},
|
|
1954
|
+
sidebarBottomItems: {
|
|
1955
|
+
type: Array,
|
|
1956
|
+
default: () => []
|
|
1957
|
+
},
|
|
1958
|
+
groupConfig: {
|
|
1959
|
+
type: Object,
|
|
1960
|
+
default: () => ({})
|
|
1961
|
+
},
|
|
1962
|
+
theme: {
|
|
1963
|
+
type: String,
|
|
1964
|
+
default: "light",
|
|
1965
|
+
validator: (e) => ["light", "dark"].includes(e)
|
|
1966
|
+
},
|
|
1967
|
+
removeContentInnerPadding: {
|
|
1968
|
+
type: Boolean,
|
|
1969
|
+
default: !1
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
emits: [
|
|
1973
|
+
"sidebar-click",
|
|
1974
|
+
"update:topOffset",
|
|
1975
|
+
"toggle-collapse"
|
|
1976
|
+
],
|
|
1977
|
+
setup(e, { emit: t }) {
|
|
1978
|
+
te((e) => ({
|
|
1979
|
+
v5526a015: j.value,
|
|
1980
|
+
v3240b80b: M.value,
|
|
1981
|
+
v71472eba: A.value,
|
|
1982
|
+
v709f53f2: re.value,
|
|
1983
|
+
v0010e23a: ie.value
|
|
1984
|
+
}));
|
|
1985
|
+
let n = e, l = t, u = N(), d = C({
|
|
1986
|
+
navbarLeft: r(() => !!u["navbar-left"]),
|
|
1987
|
+
navbarCenter: r(() => !!u["navbar-center"]),
|
|
1988
|
+
navbarRight: r(() => !!u["navbar-right"]),
|
|
1989
|
+
navbarLogo: r(() => !!u["navbar-logo"]),
|
|
1990
|
+
navbarMobileLogo: r(() => !!u["navbar-mobile-logo"]),
|
|
1991
|
+
sidebarHeader: r(() => !!u["sidebar-header"]),
|
|
1992
|
+
sidebarTop: r(() => !!u["sidebar-top"]),
|
|
1993
|
+
sidebarFooter: r(() => !!u["sidebar-footer"])
|
|
1994
|
+
}), f = r(() => n.hideDefaultSlot), p = C({ hidden: r(() => n.navbarHidden) }), m = C({
|
|
1995
|
+
topItems: r(() => n.sidebarTopItems),
|
|
1996
|
+
bottomItems: r(() => n.sidebarBottomItems),
|
|
1997
|
+
open: r(() => n.sidebarOpen),
|
|
1998
|
+
hidden: r(() => n.sidebarHidden)
|
|
1999
|
+
}), h = (e) => {
|
|
2000
|
+
l("sidebar-click", e);
|
|
2001
|
+
}, g = w(!1), _ = (e) => {
|
|
2002
|
+
g.value = e;
|
|
2003
|
+
};
|
|
2004
|
+
ne(() => {
|
|
2005
|
+
g.value = ee(m, "open").value || !1;
|
|
2006
|
+
});
|
|
2007
|
+
let x = w(0), D = w(60), O = w(0), k = r(() => p.hidden ? O.value : D.value + O.value), A = r(() => n.theme === "light" ? je : Me), j = r(() => n.theme === "light" ? Oe : Ae), M = r(() => n.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), re = r(() => `${k.value}px`), ie = r(() => m.hidden || p.hidden ? "0px" : "4px"), { debounce: ae } = xn(), oe = ae((e = !1) => {
|
|
2008
|
+
if (e || x.value !== window?.innerWidth) {
|
|
2009
|
+
x.value = window?.innerWidth;
|
|
2010
|
+
let e = document?.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2011
|
+
e && (O.value = e.offsetHeight);
|
|
2012
|
+
}
|
|
2013
|
+
}, 200), I = w();
|
|
2014
|
+
return P(O, (e) => {
|
|
2015
|
+
l("update:topOffset", e || 0);
|
|
2016
|
+
}, { immediate: !0 }), b(() => {
|
|
2017
|
+
document?.body?.classList.add("kong-ui-app-layout-body"), document?.documentElement?.classList.add("kong-ui-app-layout-html"), x.value = window?.innerWidth, oe(!0);
|
|
2018
|
+
let e = document?.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2019
|
+
e && (I.value = new ResizeObserver((e) => {
|
|
2020
|
+
window.requestAnimationFrame(() => {
|
|
2021
|
+
if (Array.isArray(e) && e.length) for (let t of e) {
|
|
2022
|
+
let e = t.contentRect.height;
|
|
2023
|
+
O.value !== e && (O.value = e);
|
|
2024
|
+
}
|
|
2025
|
+
});
|
|
2026
|
+
}), I.value.observe(e)), window.addEventListener("resize", oe);
|
|
2027
|
+
}), y(() => {
|
|
2028
|
+
I.value && I.value.disconnect(), window.removeEventListener("resize", oe);
|
|
2029
|
+
}), (t, n) => (S(), o("div", { class: v(["kong-ui-app-layout", [{ "navbar-hidden": p.hidden }, { "sidebar-hidden": m.hidden }]]) }, [
|
|
2030
|
+
s("div", Fn, [E(t.$slots, "notification", {}, void 0, !0)]),
|
|
2031
|
+
p.hidden ? a("", !0) : (S(), i(Ye, {
|
|
2032
|
+
key: String(m.hidden),
|
|
2033
|
+
"left-offset": m.hidden ? 0 : void 0,
|
|
2034
|
+
"top-offset": O.value
|
|
2035
|
+
}, c({
|
|
2036
|
+
"mobile-sidebar-toggle": F(() => [m.hidden ? a("", !0) : (S(), i(Pn, {
|
|
2037
|
+
key: 0,
|
|
2038
|
+
active: g.value,
|
|
2039
|
+
onToggle: _
|
|
2040
|
+
}, null, 8, ["active"]))]),
|
|
2041
|
+
_: 2
|
|
2042
|
+
}, [
|
|
2043
|
+
d.navbarMobileLogo ? {
|
|
2044
|
+
name: "mobile-logo",
|
|
2045
|
+
fn: F(() => [s("div", In, [E(t.$slots, "navbar-mobile-logo", {}, void 0, !0)])]),
|
|
2046
|
+
key: "0"
|
|
2047
|
+
} : void 0,
|
|
2048
|
+
d.navbarLogo ? {
|
|
2049
|
+
name: "logo",
|
|
2050
|
+
fn: F(() => [m.hidden ? (S(), o("div", Ln, [E(t.$slots, "navbar-logo", {}, void 0, !0)])) : a("", !0)]),
|
|
2051
|
+
key: "1"
|
|
2052
|
+
} : void 0,
|
|
2053
|
+
d.navbarLeft ? {
|
|
2054
|
+
name: "left",
|
|
2055
|
+
fn: F(() => [E(t.$slots, "navbar-left", {}, void 0, !0)]),
|
|
2056
|
+
key: "2"
|
|
2057
|
+
} : void 0,
|
|
2058
|
+
d.navbarCenter ? {
|
|
2059
|
+
name: "center",
|
|
2060
|
+
fn: F(() => [E(t.$slots, "navbar-center", {}, void 0, !0)]),
|
|
2061
|
+
key: "3"
|
|
2062
|
+
} : void 0,
|
|
2063
|
+
d.navbarRight ? {
|
|
2064
|
+
name: "right",
|
|
2065
|
+
fn: F(() => [E(t.$slots, "navbar-right", {}, void 0, !0)]),
|
|
2066
|
+
key: "4"
|
|
2067
|
+
} : void 0
|
|
2068
|
+
]), 1032, ["left-offset", "top-offset"])),
|
|
2069
|
+
m.hidden ? a("", !0) : (S(), i(Mn, {
|
|
2070
|
+
key: 1,
|
|
2071
|
+
"bottom-items": m.bottomItems,
|
|
2072
|
+
"group-config": e.groupConfig,
|
|
2073
|
+
"header-height": D.value,
|
|
2074
|
+
"mobile-enabled": "",
|
|
2075
|
+
"mobile-header-visible": !1,
|
|
2076
|
+
"mobile-top-offset": k.value,
|
|
2077
|
+
open: g.value,
|
|
2078
|
+
"top-items": m.topItems,
|
|
2079
|
+
"top-offset": O.value,
|
|
2080
|
+
onClick: h,
|
|
2081
|
+
onToggle: _,
|
|
2082
|
+
onToggleCollapse: n[0] ||= (e, t) => l("toggle-collapse", e, t)
|
|
2083
|
+
}, c({ _: 2 }, [
|
|
2084
|
+
d.sidebarHeader ? {
|
|
2085
|
+
name: "header",
|
|
2086
|
+
fn: F(() => [E(t.$slots, "sidebar-header", {}, void 0, !0)]),
|
|
2087
|
+
key: "0"
|
|
2088
|
+
} : void 0,
|
|
2089
|
+
d.sidebarTop ? {
|
|
2090
|
+
name: "top",
|
|
2091
|
+
fn: F(() => [E(t.$slots, "sidebar-top", {}, void 0, !0)]),
|
|
2092
|
+
key: "1"
|
|
2093
|
+
} : void 0,
|
|
2094
|
+
d.sidebarFooter ? {
|
|
2095
|
+
name: "footer",
|
|
2096
|
+
fn: F(() => [E(t.$slots, "sidebar-footer", {}, void 0, !0)]),
|
|
2097
|
+
key: "2"
|
|
2098
|
+
} : void 0,
|
|
2099
|
+
T([...m.topItems || [], ...m.bottomItems || []], (e) => ({
|
|
2100
|
+
name: `sidebar-icon-${e.key}`,
|
|
2101
|
+
fn: F(() => [E(t.$slots, `sidebar-icon-${e.key}`, {}, void 0, !0)])
|
|
2102
|
+
})),
|
|
2103
|
+
T([...m.topItems || [], ...m.bottomItems || []], (e) => ({
|
|
2104
|
+
name: `sidebar-after-${e.key}`,
|
|
2105
|
+
fn: F(() => [E(t.$slots, `sidebar-after-${e.key}`, {}, void 0, !0)])
|
|
2106
|
+
}))
|
|
2107
|
+
]), 1032, [
|
|
2108
|
+
"bottom-items",
|
|
2109
|
+
"group-config",
|
|
2110
|
+
"header-height",
|
|
2111
|
+
"mobile-top-offset",
|
|
2112
|
+
"open",
|
|
2113
|
+
"top-items",
|
|
2114
|
+
"top-offset"
|
|
2115
|
+
])),
|
|
2116
|
+
s("main", Rn, [s("div", zn, [s("div", { class: v(["kong-ui-app-layout-content-inner", { "remove-inner-padding": e.removeContentInnerPadding }]) }, [
|
|
2117
|
+
n[1] ||= s("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1),
|
|
2118
|
+
E(t.$slots, "app-error", {}, void 0, !0),
|
|
2119
|
+
f.value ? a("", !0) : E(t.$slots, "default", {}, void 0, !0, 0)
|
|
2120
|
+
], 2)])])
|
|
2121
|
+
], 2));
|
|
2122
|
+
}
|
|
2123
|
+
}), [["__scopeId", "data-v-b9242b31"]]), Vn = { class: "kong-ui-app-page-header" }, Hn = { class: "page-header-title-section" }, Un = { class: "page-header-title-wrapper" }, Wn = ["title"], Gn = {
|
|
2124
|
+
key: 0,
|
|
2125
|
+
class: "page-header-title-after",
|
|
2126
|
+
"data-testid": "page-header-title-after"
|
|
2127
|
+
}, Kn = {
|
|
2128
|
+
key: 0,
|
|
2129
|
+
class: "page-header-actions",
|
|
2130
|
+
"data-testid": "page-header-actions"
|
|
2131
|
+
}, qn = {
|
|
2132
|
+
key: 0,
|
|
2133
|
+
class: "page-header-section-below",
|
|
2134
|
+
"data-testid": "page-header-section-below"
|
|
2135
|
+
}, Jn = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
2136
|
+
__name: "AppPageHeader",
|
|
2137
|
+
props: { title: {
|
|
2138
|
+
type: String,
|
|
2139
|
+
default: ""
|
|
2140
|
+
} },
|
|
2141
|
+
setup(e) {
|
|
2142
|
+
return (t, n) => (S(), o("div", Vn, [s("div", Hn, [s("div", Un, [s("h2", {
|
|
2143
|
+
class: "page-header-title",
|
|
2144
|
+
"data-testid": "page-header-title",
|
|
2145
|
+
title: e.title
|
|
2146
|
+
}, A(e.title), 9, Wn), t.$slots["title-after"] ? (S(), o("div", Gn, [E(t.$slots, "title-after", {}, void 0, !0)])) : a("", !0)]), t.$slots.actions ? (S(), o("div", Kn, [E(t.$slots, "actions", {}, void 0, !0)])) : a("", !0)]), t.$slots.below ? (S(), o("div", qn, [E(t.$slots, "below", {}, void 0, !0)])) : a("", !0)]));
|
|
2147
|
+
}
|
|
2148
|
+
}), [["__scopeId", "data-v-ca888878"]]), Yn = { class: "app-page-info-section-default-header" }, Xn = {
|
|
2149
|
+
key: 1,
|
|
2150
|
+
class: "app-page-info-section-description",
|
|
2151
|
+
"data-testid": "app-page-info-section-description"
|
|
2152
|
+
}, Zn = {
|
|
2153
|
+
key: 0,
|
|
2154
|
+
class: "app-page-info-section-content",
|
|
2155
|
+
"data-testid": "app-page-info-section-content"
|
|
2156
|
+
}, Qn = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
2157
|
+
__name: "AppPageInfoSection",
|
|
2158
|
+
props: {
|
|
2159
|
+
collapsible: {
|
|
2160
|
+
type: Boolean,
|
|
2161
|
+
default: !0
|
|
2162
|
+
},
|
|
2163
|
+
title: {
|
|
2164
|
+
type: String,
|
|
2165
|
+
default: ""
|
|
2166
|
+
},
|
|
2167
|
+
description: {
|
|
2168
|
+
type: String,
|
|
2169
|
+
default: ""
|
|
2170
|
+
},
|
|
2171
|
+
titleTag: {
|
|
2172
|
+
type: String,
|
|
2173
|
+
default: "div",
|
|
2174
|
+
validator: (e) => I.includes(e)
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
setup(e) {
|
|
2178
|
+
return (t, n) => (S(), i(O(e.collapsible ? "details" : "div"), {
|
|
2179
|
+
class: "app-page-info-section",
|
|
2180
|
+
"data-testid": "app-page-info-section"
|
|
2181
|
+
}, {
|
|
2182
|
+
default: F(() => [(S(), i(O(e.collapsible ? "summary" : "div"), {
|
|
2183
|
+
class: "app-page-info-section-header",
|
|
2184
|
+
"data-testid": "app-page-info-section-header"
|
|
2185
|
+
}, {
|
|
2186
|
+
default: F(() => [E(t.$slots, "header", {}, () => [s("div", Yn, [e.title ? (S(), i(O(e.titleTag), {
|
|
2187
|
+
key: 0,
|
|
2188
|
+
class: "app-page-info-section-title",
|
|
2189
|
+
"data-testid": "app-page-info-section-title"
|
|
2190
|
+
}, {
|
|
2191
|
+
default: F(() => [u(A(e.title), 1)]),
|
|
2192
|
+
_: 1
|
|
2193
|
+
})) : a("", !0), e.description ? (S(), o("div", Xn, A(e.description), 1)) : a("", !0)])], !0), e.collapsible ? (S(), i(M(oe), {
|
|
2194
|
+
key: 0,
|
|
2195
|
+
class: "app-page-info-section-chevron-icon",
|
|
2196
|
+
decorative: ""
|
|
2197
|
+
})) : t.$slots.actions ? E(t.$slots, "actions", {}, void 0, !0, 1) : a("", !0)]),
|
|
2198
|
+
_: 3
|
|
2199
|
+
})), t.$slots.default ? (S(), o("div", Zn, [E(t.$slots, "default", {}, void 0, !0)])) : a("", !0)]),
|
|
2200
|
+
_: 3
|
|
2201
|
+
}));
|
|
2202
|
+
}
|
|
2203
|
+
}), [["__scopeId", "data-v-4751cbb1"]]), $n = /*#__PURE__*/ z(/* @__PURE__ */ f({
|
|
2204
|
+
__name: "GradientBadge",
|
|
2205
|
+
props: {
|
|
2206
|
+
large: {
|
|
2207
|
+
type: Boolean,
|
|
2208
|
+
default: !1
|
|
2209
|
+
},
|
|
2210
|
+
inverse: {
|
|
2211
|
+
type: Boolean,
|
|
2212
|
+
default: !1
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
setup(e) {
|
|
2216
|
+
return (t, n) => (S(), o("div", { class: v(["gradient-badge", { inverse: e.inverse }]) }, [s("div", { class: v(["gradient-badge-content", { large: e.large }]) }, [E(t.$slots, "default", {}, void 0, !0)], 2)], 2));
|
|
2217
|
+
}
|
|
2218
|
+
}), [["__scopeId", "data-v-01ef058c"]]), er = { install: (e, t = {}) => {
|
|
2219
|
+
e.component(t.name || "AppLayout", Bn);
|
|
2220
|
+
} };
|
|
2221
|
+
export { B as AccountDropdown, De as AppAboutSection, He as AppError, Bn as AppLayout, Ye as AppNavbar, Jn as AppPageHeader, Qn as AppPageInfoSection, Mn as AppSidebar, $n as GradientBadge, Pn as SidebarToggle, er as default };
|