@kong-ui-public/app-layout 0.14.3 → 0.15.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/README.md +1 -0
- package/dist/app-layout.es.js +401 -349
- package/dist/app-layout.es.js.map +1 -1
- package/dist/app-layout.umd.js +4 -4
- package/dist/app-layout.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/navbar/AccountDropdown.vue.d.ts +45 -0
- package/dist/types/components/navbar/AccountDropdown.vue.d.ts.map +1 -0
- package/dist/types/components/navbar/NavbarDropdownMenu.vue.d.ts +5 -5
- package/dist/types/components/navbar/NavbarDropdownMenu.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/types/navbar.d.ts +0 -6
- package/dist/types/types/navbar.d.ts.map +0 -1
package/dist/app-layout.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as _, reactive as
|
|
1
|
+
import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as _, reactive as Ee, onMounted as Ze, openBlock as p, createElementBlock as A, createElementVNode as w, renderSlot as D, createCommentVNode as B, toDisplayString as ie, resolveComponent as te, normalizeClass as ee, createBlock as j, resolveDynamicComponent as hn, withCtx as L, withKeys as mn, createVNode as Pe, Fragment as ue, renderList as he, withModifiers as Zt, ref as W, watch as Fe, onUnmounted as gn, Comment as yn, cloneVNode as _n, onBeforeUnmount as Pt, createTextVNode as Te, nextTick as wn, pushScopeId as at, popScopeId as nt, watchEffect as Tn, toRef as kn, createSlots as $t, createStaticVNode as Sn } from "vue";
|
|
2
2
|
const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On = { class: "mobile-header-left" }, xn = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "app-navbar-logo"
|
|
@@ -28,7 +28,7 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On
|
|
|
28
28
|
74170388: c.marginRight,
|
|
29
29
|
"482efd74": c.width
|
|
30
30
|
}));
|
|
31
|
-
const a = tt(), r = _(() => !!a.logo), c =
|
|
31
|
+
const a = tt(), r = _(() => !!a.logo), c = Ee({
|
|
32
32
|
marginRight: "0",
|
|
33
33
|
width: "0"
|
|
34
34
|
});
|
|
@@ -41,15 +41,15 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On
|
|
|
41
41
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
42
42
|
zIndex: t.zIndex
|
|
43
43
|
}));
|
|
44
|
-
return (o, d) => (
|
|
44
|
+
return (o, d) => (p(), A("header", In, [
|
|
45
45
|
w("div", Cn, [
|
|
46
46
|
w("div", On, [
|
|
47
47
|
D(o.$slots, "mobile-sidebar-toggle"),
|
|
48
48
|
D(o.$slots, "mobile-logo")
|
|
49
49
|
]),
|
|
50
|
-
m(r) ? (
|
|
50
|
+
m(r) ? (p(), A("div", xn, [
|
|
51
51
|
D(o.$slots, "logo")
|
|
52
|
-
])) :
|
|
52
|
+
])) : B("", !0),
|
|
53
53
|
w("div", An, [
|
|
54
54
|
w("div", $n, [
|
|
55
55
|
D(o.$slots, "left")
|
|
@@ -65,12 +65,12 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On
|
|
|
65
65
|
]));
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const Y = (n, t) => {
|
|
69
69
|
const a = n.__vccOpts || n;
|
|
70
70
|
for (const [r, c] of t)
|
|
71
71
|
a[r] = c;
|
|
72
72
|
return a;
|
|
73
|
-
}, Dn = /* @__PURE__ */
|
|
73
|
+
}, Dn = /* @__PURE__ */ Y(Fn, [["__scopeId", "data-v-b7131fb2"]]), Mn = ["title"], Bn = /* @__PURE__ */ Q({
|
|
74
74
|
__name: "ItemBadge",
|
|
75
75
|
props: {
|
|
76
76
|
count: {
|
|
@@ -81,14 +81,14 @@ const J = (n, t) => {
|
|
|
81
81
|
},
|
|
82
82
|
setup(n) {
|
|
83
83
|
const t = n, a = 99, r = _(() => t.count ? t.count > a ? `${a}+` : t.count.toString() : "");
|
|
84
|
-
return (c, l) => m(r) ? (
|
|
84
|
+
return (c, l) => m(r) ? (p(), A("div", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "item-badge",
|
|
87
87
|
title: (n.count || 0) > a ? String(n.count) : void 0
|
|
88
|
-
}, ie(m(r)), 9,
|
|
88
|
+
}, ie(m(r)), 9, Mn)) : B("", !0);
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
const Ln = /* @__PURE__ */
|
|
91
|
+
const Ln = /* @__PURE__ */ Y(Bn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["data-testid"], Zn = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], Pn = {
|
|
92
92
|
key: 0,
|
|
93
93
|
class: "sidebar-item-icon"
|
|
94
94
|
}, jn = { class: "sidebar-item-name-container" }, Kn = { class: "sidebar-item-name has-tooltip" }, Hn = {
|
|
@@ -114,87 +114,87 @@ const Ln = /* @__PURE__ */ J(Mn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["dat
|
|
|
114
114
|
o(T), typeof C == "function" && (g.preventDefault(), C());
|
|
115
115
|
};
|
|
116
116
|
return (g, T) => {
|
|
117
|
-
var
|
|
118
|
-
const C =
|
|
119
|
-
return
|
|
120
|
-
class:
|
|
117
|
+
var $;
|
|
118
|
+
const C = te("KIcon"), S = te("KTooltip"), M = te("SidebarItem", !0);
|
|
119
|
+
return p(), A("li", {
|
|
120
|
+
class: ee([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
121
121
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
122
122
|
}, [
|
|
123
|
-
(
|
|
123
|
+
(p(), j(hn(m(r) ? "div" : "router-link"), {
|
|
124
124
|
custom: m(r) ? void 0 : !0,
|
|
125
125
|
to: !m(r) && !m(c) ? n.item.to : void 0
|
|
126
126
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
var
|
|
127
|
+
default: L((E) => {
|
|
128
|
+
var H, G;
|
|
129
129
|
return [
|
|
130
130
|
w("a", {
|
|
131
|
-
"aria-controls": (
|
|
131
|
+
"aria-controls": (H = n.item.items) != null && H.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
132
132
|
"aria-expanded": (G = n.item.items) != null && G.length && n.item.expanded ? !0 : void 0,
|
|
133
|
-
class:
|
|
133
|
+
class: ee(["sidebar-item-link", { "sidebar-item-external-link": m(c), "router-link": !m(r) }]),
|
|
134
134
|
href: m(r) ? String(n.item.to || "#") : E == null ? void 0 : E.href,
|
|
135
135
|
target: m(c) ? "_blank" : void 0,
|
|
136
|
-
onClick: (
|
|
137
|
-
onKeypress: mn((
|
|
136
|
+
onClick: (K) => d(K, n.item, E == null ? void 0 : E.navigate),
|
|
137
|
+
onKeypress: mn((K) => d(K, n.item, E == null ? void 0 : E.navigate), ["enter"])
|
|
138
138
|
}, [
|
|
139
139
|
w("div", {
|
|
140
|
-
class:
|
|
140
|
+
class: ee(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": m(l) }])
|
|
141
141
|
}, [
|
|
142
|
-
n.item.icon ? (
|
|
142
|
+
n.item.icon ? (p(), A("div", Pn, [
|
|
143
143
|
Pe(C, {
|
|
144
144
|
color: n.item.active || n.item.expanded ? "var(--white, #fff)" : "#B5BECD",
|
|
145
145
|
icon: String(n.item.icon),
|
|
146
146
|
size: "20"
|
|
147
147
|
}, null, 8, ["color", "icon"])
|
|
148
|
-
])) :
|
|
148
|
+
])) : B("", !0),
|
|
149
149
|
w("div", jn, [
|
|
150
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
150
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), A("div", {
|
|
151
151
|
key: 0,
|
|
152
|
-
class:
|
|
153
|
-
}, ie(n.item.name), 3)) : (
|
|
152
|
+
class: ee(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
153
|
+
}, ie(n.item.name), 3)) : (p(), j(S, {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "sidebar-item-tooltip",
|
|
156
156
|
label: n.item.name,
|
|
157
157
|
placement: "right",
|
|
158
158
|
"position-fixed": ""
|
|
159
159
|
}, {
|
|
160
|
-
default:
|
|
160
|
+
default: L(() => [
|
|
161
161
|
w("div", Kn, [
|
|
162
162
|
w("span", {
|
|
163
|
-
class:
|
|
163
|
+
class: ee(["truncate-text", [n.subnavItem ? "truncate-20" : "truncate-17", { "has-badge-max-width": m(l) }]])
|
|
164
164
|
}, ie(n.item.name), 3)
|
|
165
165
|
])
|
|
166
166
|
]),
|
|
167
167
|
_: 1
|
|
168
168
|
}, 8, ["label"])),
|
|
169
|
-
n.item.label && n.item.expanded ? (
|
|
169
|
+
n.item.label && n.item.expanded ? (p(), A("div", Hn, ie(n.item.label), 1)) : B("", !0)
|
|
170
170
|
]),
|
|
171
|
-
m(l) ? (
|
|
171
|
+
m(l) ? (p(), j(Ln, {
|
|
172
172
|
key: 1,
|
|
173
173
|
count: n.item.badgeCount
|
|
174
|
-
}, null, 8, ["count"])) :
|
|
174
|
+
}, null, 8, ["count"])) : B("", !0)
|
|
175
175
|
], 2)
|
|
176
176
|
], 42, Zn)
|
|
177
177
|
];
|
|
178
178
|
}),
|
|
179
179
|
_: 1
|
|
180
180
|
}, 8, ["custom", "to"])),
|
|
181
|
-
(
|
|
181
|
+
($ = n.item.items) != null && $.length && n.item.expanded ? (p(), A("ul", {
|
|
182
182
|
key: 0,
|
|
183
183
|
id: `subnav-${n.item.key}`,
|
|
184
184
|
class: "level-secondary"
|
|
185
185
|
}, [
|
|
186
|
-
(
|
|
186
|
+
(p(!0), A(ue, null, he(n.item.items, (E) => (p(), j(M, {
|
|
187
187
|
key: E.name,
|
|
188
188
|
item: E,
|
|
189
189
|
"subnav-item": !0,
|
|
190
|
-
onClick: (
|
|
190
|
+
onClick: (H) => o(E)
|
|
191
191
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
192
|
-
], 8, zn)) :
|
|
192
|
+
], 8, zn)) : B("", !0)
|
|
193
193
|
], 10, Rn);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
const Nt = /* @__PURE__ */
|
|
197
|
+
const Nt = /* @__PURE__ */ Y(Vn, [["__scopeId", "data-v-b0428668"]]), Wn = {}, Gn = {
|
|
198
198
|
class: "profile-icon",
|
|
199
199
|
fill: "none",
|
|
200
200
|
height: "30",
|
|
@@ -211,9 +211,9 @@ const Nt = /* @__PURE__ */ J(Vn, [["__scopeId", "data-v-b0428668"]]), Wn = {}, G
|
|
|
211
211
|
Un
|
|
212
212
|
];
|
|
213
213
|
function Xn(n, t) {
|
|
214
|
-
return
|
|
214
|
+
return p(), A("svg", Gn, Yn);
|
|
215
215
|
}
|
|
216
|
-
const Jn = /* @__PURE__ */
|
|
216
|
+
const Jn = /* @__PURE__ */ Y(Wn, [["render", Xn]]), Qn = {
|
|
217
217
|
"aria-haspopup": "true",
|
|
218
218
|
"aria-label": "Profile Menu",
|
|
219
219
|
class: "sidebar-footer-nav"
|
|
@@ -236,23 +236,23 @@ const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
|
236
236
|
setup(n) {
|
|
237
237
|
const t = n, a = _(() => t.itemCount > 0);
|
|
238
238
|
return (r, c) => {
|
|
239
|
-
const l =
|
|
240
|
-
return
|
|
239
|
+
const l = te("KDropdownMenu");
|
|
240
|
+
return p(), A("nav", Qn, [
|
|
241
241
|
w("div", er, [
|
|
242
242
|
w("div", tr, [
|
|
243
243
|
Pe(Jn)
|
|
244
244
|
]),
|
|
245
245
|
w("div", ar, [
|
|
246
246
|
w("div", nr, [
|
|
247
|
-
m(a) ? (
|
|
247
|
+
m(a) ? (p(), j(l, {
|
|
248
248
|
key: 1,
|
|
249
249
|
"kpop-attributes": { placement: "right", popoverClasses: "ml-5 sidebar-profile-menu-popover", target: ".sidebar-footer-nav" },
|
|
250
250
|
width: "240"
|
|
251
251
|
}, {
|
|
252
|
-
items:
|
|
252
|
+
items: L(() => [
|
|
253
253
|
D(r.$slots, "default", {}, void 0, !0)
|
|
254
254
|
]),
|
|
255
|
-
default:
|
|
255
|
+
default: L(() => [
|
|
256
256
|
w("a", {
|
|
257
257
|
"aria-label": "Open Profile Menu",
|
|
258
258
|
class: "profile-dropdown-trigger",
|
|
@@ -265,7 +265,7 @@ const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
|
265
265
|
])
|
|
266
266
|
]),
|
|
267
267
|
_: 3
|
|
268
|
-
}, 8, ["kpop-attributes"])) : (
|
|
268
|
+
}, 8, ["kpop-attributes"])) : (p(), A("div", rr, ie(n.name), 1))
|
|
269
269
|
])
|
|
270
270
|
])
|
|
271
271
|
])
|
|
@@ -273,18 +273,18 @@ const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
const sr = /* @__PURE__ */
|
|
276
|
+
const sr = /* @__PURE__ */ Y(or, [["__scopeId", "data-v-efc446ab"]]);
|
|
277
277
|
/*!
|
|
278
278
|
* tabbable 6.1.1
|
|
279
279
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
280
280
|
*/
|
|
281
|
-
var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], De = /* @__PURE__ */ jt.join(","), Kt = typeof Element > "u",
|
|
282
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
281
|
+
var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], De = /* @__PURE__ */ jt.join(","), Kt = typeof Element > "u", de = Kt ? function() {
|
|
282
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Me = !Kt && Element.prototype.getRootNode ? function(n) {
|
|
283
283
|
var t;
|
|
284
284
|
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
285
285
|
} : function(n) {
|
|
286
286
|
return n == null ? void 0 : n.ownerDocument;
|
|
287
|
-
},
|
|
287
|
+
}, Be = function n(t, a) {
|
|
288
288
|
var r;
|
|
289
289
|
a === void 0 && (a = !0);
|
|
290
290
|
var c = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = c === "" || c === "true", o = l || a && t && n(t.parentNode);
|
|
@@ -293,14 +293,14 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
293
293
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
294
294
|
return r === "" || r === "true";
|
|
295
295
|
}, Ht = function(t, a, r) {
|
|
296
|
-
if (
|
|
296
|
+
if (Be(t))
|
|
297
297
|
return [];
|
|
298
298
|
var c = Array.prototype.slice.apply(t.querySelectorAll(De));
|
|
299
|
-
return a &&
|
|
299
|
+
return a && de.call(t, De) && c.unshift(t), c = c.filter(r), c;
|
|
300
300
|
}, zt = function n(t, a, r) {
|
|
301
301
|
for (var c = [], l = Array.from(t); l.length; ) {
|
|
302
302
|
var o = l.shift();
|
|
303
|
-
if (!
|
|
303
|
+
if (!Be(o, !1))
|
|
304
304
|
if (o.tagName === "SLOT") {
|
|
305
305
|
var d = o.assignedElements(), g = d.length ? d : o.children, T = n(g, !0, r);
|
|
306
306
|
r.flatten ? c.push.apply(c, T) : c.push({
|
|
@@ -308,15 +308,15 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
308
308
|
candidates: T
|
|
309
309
|
});
|
|
310
310
|
} else {
|
|
311
|
-
var C =
|
|
311
|
+
var C = de.call(o, De);
|
|
312
312
|
C && r.filter(o) && (a || !t.includes(o)) && c.push(o);
|
|
313
313
|
var S = o.shadowRoot || // check for an undisclosed shadow
|
|
314
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o),
|
|
315
|
-
if (S &&
|
|
316
|
-
var
|
|
317
|
-
r.flatten ? c.push.apply(c,
|
|
314
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), M = !Be(S, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
315
|
+
if (S && M) {
|
|
316
|
+
var $ = n(S === !0 ? o.children : S.children, !0, r);
|
|
317
|
+
r.flatten ? c.push.apply(c, $) : c.push({
|
|
318
318
|
scopeParent: o,
|
|
319
|
-
candidates:
|
|
319
|
+
candidates: $
|
|
320
320
|
});
|
|
321
321
|
} else
|
|
322
322
|
l.unshift.apply(l, o.children);
|
|
@@ -343,7 +343,7 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
343
343
|
}, vr = function(t) {
|
|
344
344
|
if (!t.name)
|
|
345
345
|
return !0;
|
|
346
|
-
var a = t.form ||
|
|
346
|
+
var a = t.form || Me(t), r = function(d) {
|
|
347
347
|
return a.querySelectorAll('input[type="radio"][name="' + d + '"]');
|
|
348
348
|
}, c;
|
|
349
349
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -361,12 +361,12 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
361
361
|
}, pr = function(t) {
|
|
362
362
|
return br(t) && !vr(t);
|
|
363
363
|
}, hr = function(t) {
|
|
364
|
-
var a, r = t &&
|
|
364
|
+
var a, r = t && Me(t), c = (a = r) === null || a === void 0 ? void 0 : a.host, l = !1;
|
|
365
365
|
if (r && r !== t) {
|
|
366
366
|
var o, d, g;
|
|
367
367
|
for (l = !!((o = c) !== null && o !== void 0 && (d = o.ownerDocument) !== null && d !== void 0 && d.contains(c) || t != null && (g = t.ownerDocument) !== null && g !== void 0 && g.contains(t)); !l && c; ) {
|
|
368
368
|
var T, C, S;
|
|
369
|
-
r =
|
|
369
|
+
r = Me(c), c = (T = r) === null || T === void 0 ? void 0 : T.host, l = !!((C = c) !== null && C !== void 0 && (S = C.ownerDocument) !== null && S !== void 0 && S.contains(c));
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
return l;
|
|
@@ -377,13 +377,13 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
377
377
|
var r = a.displayCheck, c = a.getShadowRoot;
|
|
378
378
|
if (getComputedStyle(t).visibility === "hidden")
|
|
379
379
|
return !0;
|
|
380
|
-
var l =
|
|
381
|
-
if (
|
|
380
|
+
var l = de.call(t, "details>summary:first-of-type"), o = l ? t.parentElement : t;
|
|
381
|
+
if (de.call(o, "details:not([open]) *"))
|
|
382
382
|
return !0;
|
|
383
383
|
if (!r || r === "full" || r === "legacy-full") {
|
|
384
384
|
if (typeof c == "function") {
|
|
385
385
|
for (var d = t; t; ) {
|
|
386
|
-
var g = t.parentElement, T =
|
|
386
|
+
var g = t.parentElement, T = Me(t);
|
|
387
387
|
if (g && !g.shadowRoot && c(g) === !0)
|
|
388
388
|
return Et(t);
|
|
389
389
|
t.assignedSlot ? t = t.assignedSlot : !g && T !== t.ownerDocument ? t = T.host : t = g;
|
|
@@ -404,7 +404,7 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
404
404
|
for (var r = 0; r < a.children.length; r++) {
|
|
405
405
|
var c = a.children.item(r);
|
|
406
406
|
if (c.tagName === "LEGEND")
|
|
407
|
-
return
|
|
407
|
+
return de.call(a, "fieldset[disabled] *") ? !0 : !c.contains(t);
|
|
408
408
|
}
|
|
409
409
|
return !0;
|
|
410
410
|
}
|
|
@@ -415,7 +415,7 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
415
415
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
416
416
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
417
417
|
// note related to `candidateSelectors`)
|
|
418
|
-
|
|
418
|
+
Be(a) || ur(a) || mr(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
419
419
|
dr(a) || gr(a));
|
|
420
420
|
}, Qe = function(t, a) {
|
|
421
421
|
return !(pr(a) || Vt(a) < 0 || !Le(t, a));
|
|
@@ -453,14 +453,14 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
453
453
|
flatten: !0,
|
|
454
454
|
getShadowRoot: a.getShadowRoot
|
|
455
455
|
}) : r = Ht(t, a.includeContainer, Le.bind(null, a)), r;
|
|
456
|
-
},
|
|
456
|
+
}, Ae = function(t, a) {
|
|
457
457
|
if (a = a || {}, !t)
|
|
458
458
|
throw new Error("No node provided");
|
|
459
|
-
return
|
|
459
|
+
return de.call(t, De) === !1 ? !1 : Qe(a, t);
|
|
460
460
|
}, kr = /* @__PURE__ */ jt.concat("iframe").join(","), Ft = function(t, a) {
|
|
461
461
|
if (a = a || {}, !t)
|
|
462
462
|
throw new Error("No node provided");
|
|
463
|
-
return
|
|
463
|
+
return de.call(t, kr) === !1 ? !1 : Le(a, t);
|
|
464
464
|
};
|
|
465
465
|
/*!
|
|
466
466
|
* focus-trap 7.3.1
|
|
@@ -476,7 +476,7 @@ function Dt(n, t) {
|
|
|
476
476
|
}
|
|
477
477
|
return a;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Mt(n) {
|
|
480
480
|
for (var t = 1; t < arguments.length; t++) {
|
|
481
481
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
482
482
|
t % 2 ? Dt(Object(a), !0).forEach(function(r) {
|
|
@@ -511,7 +511,7 @@ function Cr(n) {
|
|
|
511
511
|
var t = Ir(n, "string");
|
|
512
512
|
return typeof t == "symbol" ? t : String(t);
|
|
513
513
|
}
|
|
514
|
-
var
|
|
514
|
+
var Bt = {
|
|
515
515
|
activateTrap: function(t, a) {
|
|
516
516
|
if (t.length > 0) {
|
|
517
517
|
var r = t[t.length - 1];
|
|
@@ -541,14 +541,14 @@ var Mt = {
|
|
|
541
541
|
return t.every(function(c, l) {
|
|
542
542
|
return a(c) ? (r = l, !1) : !0;
|
|
543
543
|
}), r;
|
|
544
|
-
},
|
|
544
|
+
}, _e = function(t) {
|
|
545
545
|
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), c = 1; c < a; c++)
|
|
546
546
|
r[c - 1] = arguments[c];
|
|
547
547
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
548
|
-
},
|
|
548
|
+
}, $e = function(t) {
|
|
549
549
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
550
550
|
}, Nr = [], Er = function(t, a) {
|
|
551
|
-
var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) || Nr, l =
|
|
551
|
+
var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) || Nr, l = Mt({
|
|
552
552
|
returnFocusOnDeactivate: !0,
|
|
553
553
|
escapeDeactivates: !0,
|
|
554
554
|
delayInitialFocus: !0,
|
|
@@ -589,21 +589,21 @@ var Mt = {
|
|
|
589
589
|
return u && u[f] !== void 0 ? u[f] : l[b || f];
|
|
590
590
|
}, T = function(u) {
|
|
591
591
|
return o.containerGroups.findIndex(function(f) {
|
|
592
|
-
var b = f.container,
|
|
592
|
+
var b = f.container, N = f.tabbableNodes;
|
|
593
593
|
return b.contains(u) || // fall back to explicit tabbable search which will take into consideration any
|
|
594
594
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
595
595
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
596
596
|
// look inside web components even if open)
|
|
597
|
-
|
|
598
|
-
return
|
|
597
|
+
N.find(function(h) {
|
|
598
|
+
return h === u;
|
|
599
599
|
});
|
|
600
600
|
});
|
|
601
601
|
}, C = function(u) {
|
|
602
602
|
var f = l[u];
|
|
603
603
|
if (typeof f == "function") {
|
|
604
|
-
for (var b = arguments.length,
|
|
605
|
-
|
|
606
|
-
f = f.apply(void 0,
|
|
604
|
+
for (var b = arguments.length, N = new Array(b > 1 ? b - 1 : 0), h = 1; h < b; h++)
|
|
605
|
+
N[h - 1] = arguments[h];
|
|
606
|
+
f = f.apply(void 0, N);
|
|
607
607
|
}
|
|
608
608
|
if (f === !0 && (f = void 0), !f) {
|
|
609
609
|
if (f === void 0 || f === !1)
|
|
@@ -628,7 +628,7 @@ var Mt = {
|
|
|
628
628
|
if (!u)
|
|
629
629
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
630
630
|
return u;
|
|
631
|
-
},
|
|
631
|
+
}, M = function() {
|
|
632
632
|
if (o.containerGroups = o.containers.map(function(u) {
|
|
633
633
|
var f = wr(u, l.tabbableOptions), b = Tr(u, l.tabbableOptions);
|
|
634
634
|
return {
|
|
@@ -645,15 +645,15 @@ var Mt = {
|
|
|
645
645
|
* in reverse.
|
|
646
646
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
647
647
|
*/
|
|
648
|
-
nextTabbableNode: function(
|
|
649
|
-
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, y = b.findIndex(function(
|
|
650
|
-
return
|
|
648
|
+
nextTabbableNode: function(h) {
|
|
649
|
+
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, y = b.findIndex(function(R) {
|
|
650
|
+
return R === h;
|
|
651
651
|
});
|
|
652
652
|
if (!(y < 0))
|
|
653
|
-
return F ? b.slice(y + 1).find(function(
|
|
654
|
-
return
|
|
655
|
-
}) : b.slice(0, y).reverse().find(function(
|
|
656
|
-
return
|
|
653
|
+
return F ? b.slice(y + 1).find(function(R) {
|
|
654
|
+
return Ae(R, l.tabbableOptions);
|
|
655
|
+
}) : b.slice(0, y).reverse().find(function(R) {
|
|
656
|
+
return Ae(R, l.tabbableOptions);
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
};
|
|
@@ -661,7 +661,7 @@ var Mt = {
|
|
|
661
661
|
return u.tabbableNodes.length > 0;
|
|
662
662
|
}), o.tabbableGroups.length <= 0 && !C("fallbackFocus"))
|
|
663
663
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
664
|
-
},
|
|
664
|
+
}, $ = function O(u) {
|
|
665
665
|
if (u !== !1 && u !== r.activeElement) {
|
|
666
666
|
if (!u || !u.focus) {
|
|
667
667
|
O(S());
|
|
@@ -674,10 +674,10 @@ var Mt = {
|
|
|
674
674
|
}, E = function(u) {
|
|
675
675
|
var f = C("setReturnFocus", u);
|
|
676
676
|
return f || (f === !1 ? !1 : u);
|
|
677
|
-
},
|
|
678
|
-
var f =
|
|
677
|
+
}, H = function(u) {
|
|
678
|
+
var f = $e(u);
|
|
679
679
|
if (!(T(f) >= 0)) {
|
|
680
|
-
if (
|
|
680
|
+
if (_e(l.clickOutsideDeactivates, u)) {
|
|
681
681
|
d.deactivate({
|
|
682
682
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
683
683
|
// which will result in the outside click setting focus to the node
|
|
@@ -689,72 +689,72 @@ var Mt = {
|
|
|
689
689
|
});
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
|
-
|
|
692
|
+
_e(l.allowOutsideClick, u) || u.preventDefault();
|
|
693
693
|
}
|
|
694
694
|
}, G = function(u) {
|
|
695
|
-
var f =
|
|
696
|
-
b || f instanceof Document ? b && (o.mostRecentlyFocusedNode = f) : (u.stopImmediatePropagation(),
|
|
697
|
-
},
|
|
698
|
-
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, b =
|
|
699
|
-
|
|
700
|
-
var
|
|
695
|
+
var f = $e(u), b = T(f) >= 0;
|
|
696
|
+
b || f instanceof Document ? b && (o.mostRecentlyFocusedNode = f) : (u.stopImmediatePropagation(), $(o.mostRecentlyFocusedNode || S()));
|
|
697
|
+
}, K = function(u) {
|
|
698
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, b = $e(u);
|
|
699
|
+
M();
|
|
700
|
+
var N = null;
|
|
701
701
|
if (o.tabbableGroups.length > 0) {
|
|
702
|
-
var
|
|
703
|
-
if (
|
|
704
|
-
f ?
|
|
702
|
+
var h = T(b), F = h >= 0 ? o.containerGroups[h] : void 0;
|
|
703
|
+
if (h < 0)
|
|
704
|
+
f ? N = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : N = o.tabbableGroups[0].firstTabbableNode;
|
|
705
705
|
else if (f) {
|
|
706
|
-
var y = Rt(o.tabbableGroups, function(
|
|
707
|
-
var x =
|
|
706
|
+
var y = Rt(o.tabbableGroups, function(me) {
|
|
707
|
+
var x = me.firstTabbableNode;
|
|
708
708
|
return b === x;
|
|
709
709
|
});
|
|
710
|
-
if (y < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !
|
|
711
|
-
var
|
|
712
|
-
|
|
710
|
+
if (y < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !Ae(b, l.tabbableOptions) && !F.nextTabbableNode(b, !1)) && (y = h), y >= 0) {
|
|
711
|
+
var R = y === 0 ? o.tabbableGroups.length - 1 : y - 1, k = o.tabbableGroups[R];
|
|
712
|
+
N = k.lastTabbableNode;
|
|
713
713
|
} else
|
|
714
|
-
we(u) || (
|
|
714
|
+
we(u) || (N = F.nextTabbableNode(b, !1));
|
|
715
715
|
} else {
|
|
716
|
-
var
|
|
717
|
-
var x =
|
|
716
|
+
var J = Rt(o.tabbableGroups, function(me) {
|
|
717
|
+
var x = me.lastTabbableNode;
|
|
718
718
|
return b === x;
|
|
719
719
|
});
|
|
720
|
-
if (
|
|
721
|
-
var
|
|
722
|
-
|
|
720
|
+
if (J < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !Ae(b, l.tabbableOptions) && !F.nextTabbableNode(b)) && (J = h), J >= 0) {
|
|
721
|
+
var ae = J === o.tabbableGroups.length - 1 ? 0 : J + 1, je = o.tabbableGroups[ae];
|
|
722
|
+
N = je.firstTabbableNode;
|
|
723
723
|
} else
|
|
724
|
-
we(u) || (
|
|
724
|
+
we(u) || (N = F.nextTabbableNode(b));
|
|
725
725
|
}
|
|
726
726
|
} else
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
},
|
|
730
|
-
if (xr(u) &&
|
|
727
|
+
N = C("fallbackFocus");
|
|
728
|
+
N && (we(u) && u.preventDefault(), $(N));
|
|
729
|
+
}, X = function(u) {
|
|
730
|
+
if (xr(u) && _e(l.escapeDeactivates, u) !== !1) {
|
|
731
731
|
u.preventDefault(), d.deactivate();
|
|
732
732
|
return;
|
|
733
733
|
}
|
|
734
|
-
(l.isKeyForward(u) || l.isKeyBackward(u)) &&
|
|
734
|
+
(l.isKeyForward(u) || l.isKeyBackward(u)) && K(u, l.isKeyBackward(u));
|
|
735
735
|
}, q = function(u) {
|
|
736
|
-
var f =
|
|
737
|
-
T(f) >= 0 ||
|
|
736
|
+
var f = $e(u);
|
|
737
|
+
T(f) >= 0 || _e(l.clickOutsideDeactivates, u) || _e(l.allowOutsideClick, u) || (u.preventDefault(), u.stopImmediatePropagation());
|
|
738
738
|
}, I = function() {
|
|
739
739
|
if (o.active)
|
|
740
|
-
return
|
|
741
|
-
|
|
742
|
-
}) :
|
|
740
|
+
return Bt.activateTrap(c, d), o.delayInitialFocusTimer = l.delayInitialFocus ? Lt(function() {
|
|
741
|
+
$(S());
|
|
742
|
+
}) : $(S()), r.addEventListener("focusin", G, !0), r.addEventListener("mousedown", H, {
|
|
743
743
|
capture: !0,
|
|
744
744
|
passive: !1
|
|
745
|
-
}), r.addEventListener("touchstart",
|
|
745
|
+
}), r.addEventListener("touchstart", H, {
|
|
746
746
|
capture: !0,
|
|
747
747
|
passive: !1
|
|
748
748
|
}), r.addEventListener("click", q, {
|
|
749
749
|
capture: !0,
|
|
750
750
|
passive: !1
|
|
751
|
-
}), r.addEventListener("keydown",
|
|
751
|
+
}), r.addEventListener("keydown", X, {
|
|
752
752
|
capture: !0,
|
|
753
753
|
passive: !1
|
|
754
754
|
}), d;
|
|
755
755
|
}, P = function() {
|
|
756
756
|
if (o.active)
|
|
757
|
-
return r.removeEventListener("focusin", G, !0), r.removeEventListener("mousedown",
|
|
757
|
+
return r.removeEventListener("focusin", G, !0), r.removeEventListener("mousedown", H, !0), r.removeEventListener("touchstart", H, !0), r.removeEventListener("click", q, !0), r.removeEventListener("keydown", X, !0), d;
|
|
758
758
|
};
|
|
759
759
|
return d = {
|
|
760
760
|
get active() {
|
|
@@ -766,42 +766,42 @@ var Mt = {
|
|
|
766
766
|
activate: function(u) {
|
|
767
767
|
if (o.active)
|
|
768
768
|
return this;
|
|
769
|
-
var f = g(u, "onActivate"), b = g(u, "onPostActivate"),
|
|
770
|
-
|
|
771
|
-
var
|
|
772
|
-
|
|
769
|
+
var f = g(u, "onActivate"), b = g(u, "onPostActivate"), N = g(u, "checkCanFocusTrap");
|
|
770
|
+
N || M(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, f && f();
|
|
771
|
+
var h = function() {
|
|
772
|
+
N && M(), I(), b && b();
|
|
773
773
|
};
|
|
774
|
-
return
|
|
774
|
+
return N ? (N(o.containers.concat()).then(h, h), this) : (h(), this);
|
|
775
775
|
},
|
|
776
776
|
deactivate: function(u) {
|
|
777
777
|
if (!o.active)
|
|
778
778
|
return this;
|
|
779
|
-
var f =
|
|
779
|
+
var f = Mt({
|
|
780
780
|
onDeactivate: l.onDeactivate,
|
|
781
781
|
onPostDeactivate: l.onPostDeactivate,
|
|
782
782
|
checkCanReturnFocus: l.checkCanReturnFocus
|
|
783
783
|
}, u);
|
|
784
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, P(), o.active = !1, o.paused = !1,
|
|
785
|
-
var b = g(f, "onDeactivate"),
|
|
784
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, P(), o.active = !1, o.paused = !1, Bt.deactivateTrap(c, d);
|
|
785
|
+
var b = g(f, "onDeactivate"), N = g(f, "onPostDeactivate"), h = g(f, "checkCanReturnFocus"), F = g(f, "returnFocus", "returnFocusOnDeactivate");
|
|
786
786
|
b && b();
|
|
787
787
|
var y = function() {
|
|
788
788
|
Lt(function() {
|
|
789
|
-
F &&
|
|
789
|
+
F && $(E(o.nodeFocusedBeforeActivation)), N && N();
|
|
790
790
|
});
|
|
791
791
|
};
|
|
792
|
-
return F &&
|
|
792
|
+
return F && h ? (h(E(o.nodeFocusedBeforeActivation)).then(y, y), this) : (y(), this);
|
|
793
793
|
},
|
|
794
794
|
pause: function() {
|
|
795
795
|
return o.paused || !o.active ? this : (o.paused = !0, P(), this);
|
|
796
796
|
},
|
|
797
797
|
unpause: function() {
|
|
798
|
-
return !o.paused || !o.active ? this : (o.paused = !1,
|
|
798
|
+
return !o.paused || !o.active ? this : (o.paused = !1, M(), I(), this);
|
|
799
799
|
},
|
|
800
800
|
updateContainerElements: function(u) {
|
|
801
801
|
var f = [].concat(u).filter(Boolean);
|
|
802
802
|
return o.containers = f.map(function(b) {
|
|
803
803
|
return typeof b == "string" ? r.querySelector(b) : b;
|
|
804
|
-
}), o.active &&
|
|
804
|
+
}), o.active && M(), this;
|
|
805
805
|
}
|
|
806
806
|
}, d.updateContainerElements(t), d;
|
|
807
807
|
};
|
|
@@ -881,7 +881,7 @@ const Fr = {
|
|
|
881
881
|
}));
|
|
882
882
|
}
|
|
883
883
|
return Ze(() => {
|
|
884
|
-
|
|
884
|
+
Fe(() => n.active, (d) => {
|
|
885
885
|
d && l.value ? o().activate() : r && (r.deactivate(), (!l.value || l.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
886
886
|
}, { immediate: !0, flush: "post" });
|
|
887
887
|
}), gn(() => {
|
|
@@ -914,7 +914,7 @@ function Gt() {
|
|
|
914
914
|
}
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
|
-
var
|
|
917
|
+
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Re = {}, Mr = {
|
|
918
918
|
get exports() {
|
|
919
919
|
return Re;
|
|
920
920
|
},
|
|
@@ -923,9 +923,9 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
925
|
(function(n, t) {
|
|
926
|
-
var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991, l = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", g = "[object Date]", T = "[object Error]", C = "[object Function]", S = "[object GeneratorFunction]",
|
|
927
|
-
x[l] = x[o] = x[P] = x[O] = x[d] = x[g] = x[u] = x[f] = x[b] = x[
|
|
928
|
-
var Ut = typeof
|
|
926
|
+
var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991, l = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", g = "[object Date]", T = "[object Error]", C = "[object Function]", S = "[object GeneratorFunction]", M = "[object Map]", $ = "[object Number]", E = "[object Object]", H = "[object Promise]", G = "[object RegExp]", K = "[object Set]", X = "[object String]", q = "[object Symbol]", I = "[object WeakMap]", P = "[object ArrayBuffer]", O = "[object DataView]", u = "[object Float32Array]", f = "[object Float64Array]", b = "[object Int8Array]", N = "[object Int16Array]", h = "[object Int32Array]", F = "[object Uint8Array]", y = "[object Uint8ClampedArray]", R = "[object Uint16Array]", k = "[object Uint32Array]", J = /[\\^$.*+?()[\]{}|]/g, ae = /\w*$/, je = /^\[object .+?Constructor\]$/, me = /^(?:0|[1-9]\d*)$/, x = {};
|
|
927
|
+
x[l] = x[o] = x[P] = x[O] = x[d] = x[g] = x[u] = x[f] = x[b] = x[N] = x[h] = x[M] = x[$] = x[E] = x[G] = x[K] = x[X] = x[q] = x[F] = x[y] = x[R] = x[k] = !0, x[T] = x[C] = x[I] = !1;
|
|
928
|
+
var Ut = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, Yt = typeof self == "object" && self && self.Object === Object && self, ne = Ut || Yt || Function("return this")(), it = t && !t.nodeType && t, ot = it && !0 && n && !n.nodeType && n, Xt = ot && ot.exports === it;
|
|
929
929
|
function Jt(e, i) {
|
|
930
930
|
return e.set(i[0], i[1]), e;
|
|
931
931
|
}
|
|
@@ -938,14 +938,14 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
938
938
|
return e;
|
|
939
939
|
}
|
|
940
940
|
function ta(e, i) {
|
|
941
|
-
for (var s = -1, v = i.length,
|
|
942
|
-
e[
|
|
941
|
+
for (var s = -1, v = i.length, Z = e.length; ++s < v; )
|
|
942
|
+
e[Z + s] = i[s];
|
|
943
943
|
return e;
|
|
944
944
|
}
|
|
945
945
|
function st(e, i, s, v) {
|
|
946
|
-
var
|
|
947
|
-
for (v &&
|
|
948
|
-
s = i(s, e[
|
|
946
|
+
var Z = -1, z = e ? e.length : 0;
|
|
947
|
+
for (v && z && (s = e[++Z]); ++Z < z; )
|
|
948
|
+
s = i(s, e[Z], Z, e);
|
|
949
949
|
return s;
|
|
950
950
|
}
|
|
951
951
|
function aa(e, i) {
|
|
@@ -967,8 +967,8 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
967
967
|
}
|
|
968
968
|
function lt(e) {
|
|
969
969
|
var i = -1, s = Array(e.size);
|
|
970
|
-
return e.forEach(function(v,
|
|
971
|
-
s[++i] = [
|
|
970
|
+
return e.forEach(function(v, Z) {
|
|
971
|
+
s[++i] = [Z, v];
|
|
972
972
|
}), s;
|
|
973
973
|
}
|
|
974
974
|
function Ke(e, i) {
|
|
@@ -982,12 +982,12 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
982
982
|
s[++i] = v;
|
|
983
983
|
}), s;
|
|
984
984
|
}
|
|
985
|
-
var ra = Array.prototype, ia = Function.prototype,
|
|
985
|
+
var ra = Array.prototype, ia = Function.prototype, ke = Object.prototype, He = ne["__core-js_shared__"], dt = function() {
|
|
986
986
|
var e = /[^.]+$/.exec(He && He.keys && He.keys.IE_PROTO || "");
|
|
987
987
|
return e ? "Symbol(src)_1." + e : "";
|
|
988
|
-
}(), ft = ia.toString,
|
|
989
|
-
"^" + ft.call(
|
|
990
|
-
), vt = Xt ?
|
|
988
|
+
}(), ft = ia.toString, oe = ke.hasOwnProperty, Se = ke.toString, oa = RegExp(
|
|
989
|
+
"^" + ft.call(oe).replace(J, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
990
|
+
), vt = Xt ? ne.Buffer : void 0, bt = ne.Symbol, pt = ne.Uint8Array, sa = Ke(Object.getPrototypeOf, Object), ca = Object.create, la = ke.propertyIsEnumerable, ua = ra.splice, ht = Object.getOwnPropertySymbols, da = vt ? vt.isBuffer : void 0, fa = Ke(Object.keys, Object), ze = be(ne, "DataView"), ge = be(ne, "Map"), Ve = be(ne, "Promise"), We = be(ne, "Set"), Ge = be(ne, "WeakMap"), ye = be(Object, "create"), va = le(ze), ba = le(ge), pa = le(Ve), ha = le(We), ma = le(Ge), mt = bt ? bt.prototype : void 0, gt = mt ? mt.valueOf : void 0;
|
|
991
991
|
function se(e) {
|
|
992
992
|
var i = -1, s = e ? e.length : 0;
|
|
993
993
|
for (this.clear(); ++i < s; ) {
|
|
@@ -996,29 +996,29 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
998
|
function ga() {
|
|
999
|
-
this.__data__ =
|
|
999
|
+
this.__data__ = ye ? ye(null) : {};
|
|
1000
1000
|
}
|
|
1001
1001
|
function ya(e) {
|
|
1002
1002
|
return this.has(e) && delete this.__data__[e];
|
|
1003
1003
|
}
|
|
1004
1004
|
function _a(e) {
|
|
1005
1005
|
var i = this.__data__;
|
|
1006
|
-
if (
|
|
1006
|
+
if (ye) {
|
|
1007
1007
|
var s = i[e];
|
|
1008
1008
|
return s === r ? void 0 : s;
|
|
1009
1009
|
}
|
|
1010
|
-
return
|
|
1010
|
+
return oe.call(i, e) ? i[e] : void 0;
|
|
1011
1011
|
}
|
|
1012
1012
|
function wa(e) {
|
|
1013
1013
|
var i = this.__data__;
|
|
1014
|
-
return
|
|
1014
|
+
return ye ? i[e] !== void 0 : oe.call(i, e);
|
|
1015
1015
|
}
|
|
1016
1016
|
function Ta(e, i) {
|
|
1017
1017
|
var s = this.__data__;
|
|
1018
|
-
return s[e] =
|
|
1018
|
+
return s[e] = ye && i === void 0 ? r : i, this;
|
|
1019
1019
|
}
|
|
1020
1020
|
se.prototype.clear = ga, se.prototype.delete = ya, se.prototype.get = _a, se.prototype.has = wa, se.prototype.set = Ta;
|
|
1021
|
-
function
|
|
1021
|
+
function re(e) {
|
|
1022
1022
|
var i = -1, s = e ? e.length : 0;
|
|
1023
1023
|
for (this.clear(); ++i < s; ) {
|
|
1024
1024
|
var v = e[i];
|
|
@@ -1029,25 +1029,25 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1029
1029
|
this.__data__ = [];
|
|
1030
1030
|
}
|
|
1031
1031
|
function Sa(e) {
|
|
1032
|
-
var i = this.__data__, s =
|
|
1032
|
+
var i = this.__data__, s = Ie(i, e);
|
|
1033
1033
|
if (s < 0)
|
|
1034
1034
|
return !1;
|
|
1035
1035
|
var v = i.length - 1;
|
|
1036
1036
|
return s == v ? i.pop() : ua.call(i, s, 1), !0;
|
|
1037
1037
|
}
|
|
1038
1038
|
function Ia(e) {
|
|
1039
|
-
var i = this.__data__, s =
|
|
1039
|
+
var i = this.__data__, s = Ie(i, e);
|
|
1040
1040
|
return s < 0 ? void 0 : i[s][1];
|
|
1041
1041
|
}
|
|
1042
1042
|
function Ca(e) {
|
|
1043
|
-
return
|
|
1043
|
+
return Ie(this.__data__, e) > -1;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Oa(e, i) {
|
|
1046
|
-
var s = this.__data__, v =
|
|
1046
|
+
var s = this.__data__, v = Ie(s, e);
|
|
1047
1047
|
return v < 0 ? s.push([e, i]) : s[v][1] = i, this;
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1050
|
-
function
|
|
1049
|
+
re.prototype.clear = ka, re.prototype.delete = Sa, re.prototype.get = Ia, re.prototype.has = Ca, re.prototype.set = Oa;
|
|
1050
|
+
function fe(e) {
|
|
1051
1051
|
var i = -1, s = e ? e.length : 0;
|
|
1052
1052
|
for (this.clear(); ++i < s; ) {
|
|
1053
1053
|
var v = e[i];
|
|
@@ -1057,60 +1057,60 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1057
1057
|
function xa() {
|
|
1058
1058
|
this.__data__ = {
|
|
1059
1059
|
hash: new se(),
|
|
1060
|
-
map: new (
|
|
1060
|
+
map: new (ge || re)(),
|
|
1061
1061
|
string: new se()
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
1064
|
function Aa(e) {
|
|
1065
|
-
return
|
|
1065
|
+
return Ce(this, e).delete(e);
|
|
1066
1066
|
}
|
|
1067
1067
|
function $a(e) {
|
|
1068
|
-
return
|
|
1068
|
+
return Ce(this, e).get(e);
|
|
1069
1069
|
}
|
|
1070
1070
|
function Na(e) {
|
|
1071
|
-
return
|
|
1071
|
+
return Ce(this, e).has(e);
|
|
1072
1072
|
}
|
|
1073
1073
|
function Ea(e, i) {
|
|
1074
|
-
return
|
|
1074
|
+
return Ce(this, e).set(e, i), this;
|
|
1075
1075
|
}
|
|
1076
|
-
|
|
1077
|
-
function
|
|
1078
|
-
this.__data__ = new
|
|
1076
|
+
fe.prototype.clear = xa, fe.prototype.delete = Aa, fe.prototype.get = $a, fe.prototype.has = Na, fe.prototype.set = Ea;
|
|
1077
|
+
function ve(e) {
|
|
1078
|
+
this.__data__ = new re(e);
|
|
1079
1079
|
}
|
|
1080
1080
|
function Fa() {
|
|
1081
|
-
this.__data__ = new
|
|
1081
|
+
this.__data__ = new re();
|
|
1082
1082
|
}
|
|
1083
1083
|
function Da(e) {
|
|
1084
1084
|
return this.__data__.delete(e);
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function Ma(e) {
|
|
1087
1087
|
return this.__data__.get(e);
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function Ba(e) {
|
|
1090
1090
|
return this.__data__.has(e);
|
|
1091
1091
|
}
|
|
1092
1092
|
function La(e, i) {
|
|
1093
1093
|
var s = this.__data__;
|
|
1094
|
-
if (s instanceof
|
|
1094
|
+
if (s instanceof re) {
|
|
1095
1095
|
var v = s.__data__;
|
|
1096
|
-
if (!
|
|
1096
|
+
if (!ge || v.length < a - 1)
|
|
1097
1097
|
return v.push([e, i]), this;
|
|
1098
|
-
s = this.__data__ = new
|
|
1098
|
+
s = this.__data__ = new fe(v);
|
|
1099
1099
|
}
|
|
1100
1100
|
return s.set(e, i), this;
|
|
1101
1101
|
}
|
|
1102
|
-
|
|
1102
|
+
ve.prototype.clear = Fa, ve.prototype.delete = Da, ve.prototype.get = Ma, ve.prototype.has = Ba, ve.prototype.set = La;
|
|
1103
1103
|
function Ra(e, i) {
|
|
1104
|
-
var s = Ye(e) || ln(e) ? aa(e.length, String) : [], v = s.length,
|
|
1105
|
-
for (var
|
|
1106
|
-
(i ||
|
|
1104
|
+
var s = Ye(e) || ln(e) ? aa(e.length, String) : [], v = s.length, Z = !!v;
|
|
1105
|
+
for (var z in e)
|
|
1106
|
+
(i || oe.call(e, z)) && !(Z && (z == "length" || rn(z, v))) && s.push(z);
|
|
1107
1107
|
return s;
|
|
1108
1108
|
}
|
|
1109
1109
|
function yt(e, i, s) {
|
|
1110
1110
|
var v = e[i];
|
|
1111
|
-
(!(
|
|
1111
|
+
(!(oe.call(e, i) && kt(v, s)) || s === void 0 && !(i in e)) && (e[i] = s);
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function Ie(e, i) {
|
|
1114
1114
|
for (var s = e.length; s--; )
|
|
1115
1115
|
if (kt(e[s][0], i))
|
|
1116
1116
|
return s;
|
|
@@ -1119,53 +1119,53 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1119
1119
|
function Za(e, i) {
|
|
1120
1120
|
return e && _t(i, Xe(i), e);
|
|
1121
1121
|
}
|
|
1122
|
-
function qe(e, i, s, v,
|
|
1122
|
+
function qe(e, i, s, v, Z, z, U) {
|
|
1123
1123
|
var V;
|
|
1124
|
-
if (v && (V =
|
|
1124
|
+
if (v && (V = z ? v(e, Z, z, U) : v(e)), V !== void 0)
|
|
1125
1125
|
return V;
|
|
1126
|
-
if (!
|
|
1126
|
+
if (!Oe(e))
|
|
1127
1127
|
return e;
|
|
1128
1128
|
var Ct = Ye(e);
|
|
1129
1129
|
if (Ct) {
|
|
1130
1130
|
if (V = tn(e), !i)
|
|
1131
1131
|
return Ja(e, V);
|
|
1132
1132
|
} else {
|
|
1133
|
-
var
|
|
1133
|
+
var pe = ce(e), Ot = pe == C || pe == S;
|
|
1134
1134
|
if (dn(e))
|
|
1135
1135
|
return Va(e, i);
|
|
1136
|
-
if (
|
|
1136
|
+
if (pe == E || pe == l || Ot && !z) {
|
|
1137
1137
|
if (ct(e))
|
|
1138
|
-
return
|
|
1138
|
+
return z ? e : {};
|
|
1139
1139
|
if (V = an(Ot ? {} : e), !i)
|
|
1140
1140
|
return Qa(e, Za(V, e));
|
|
1141
1141
|
} else {
|
|
1142
|
-
if (!x[
|
|
1143
|
-
return
|
|
1144
|
-
V = nn(e,
|
|
1142
|
+
if (!x[pe])
|
|
1143
|
+
return z ? e : {};
|
|
1144
|
+
V = nn(e, pe, qe, i);
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
U || (U = new
|
|
1147
|
+
U || (U = new ve());
|
|
1148
1148
|
var xt = U.get(e);
|
|
1149
1149
|
if (xt)
|
|
1150
1150
|
return xt;
|
|
1151
1151
|
if (U.set(e, V), !Ct)
|
|
1152
1152
|
var At = s ? en(e) : Xe(e);
|
|
1153
|
-
return ea(At || e, function(Je,
|
|
1154
|
-
At && (
|
|
1153
|
+
return ea(At || e, function(Je, xe) {
|
|
1154
|
+
At && (xe = Je, Je = e[xe]), yt(V, xe, qe(Je, i, s, v, xe, e, U));
|
|
1155
1155
|
}), V;
|
|
1156
1156
|
}
|
|
1157
1157
|
function Pa(e) {
|
|
1158
|
-
return
|
|
1158
|
+
return Oe(e) ? ca(e) : {};
|
|
1159
1159
|
}
|
|
1160
1160
|
function ja(e, i, s) {
|
|
1161
1161
|
var v = i(e);
|
|
1162
1162
|
return Ye(e) ? v : ta(v, s(e));
|
|
1163
1163
|
}
|
|
1164
1164
|
function Ka(e) {
|
|
1165
|
-
return
|
|
1165
|
+
return Se.call(e);
|
|
1166
1166
|
}
|
|
1167
1167
|
function Ha(e) {
|
|
1168
|
-
if (!
|
|
1168
|
+
if (!Oe(e) || sn(e))
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
var i = It(e) || ct(e) ? oa : je;
|
|
1171
1171
|
return i.test(le(e));
|
|
@@ -1175,7 +1175,7 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1175
1175
|
return fa(e);
|
|
1176
1176
|
var i = [];
|
|
1177
1177
|
for (var s in Object(e))
|
|
1178
|
-
|
|
1178
|
+
oe.call(e, s) && s != "constructor" && i.push(s);
|
|
1179
1179
|
return i;
|
|
1180
1180
|
}
|
|
1181
1181
|
function Va(e, i) {
|
|
@@ -1197,7 +1197,7 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1197
1197
|
return st(v, Jt, new e.constructor());
|
|
1198
1198
|
}
|
|
1199
1199
|
function qa(e) {
|
|
1200
|
-
var i = new e.constructor(e.source,
|
|
1200
|
+
var i = new e.constructor(e.source, ae.exec(e));
|
|
1201
1201
|
return i.lastIndex = e.lastIndex, i;
|
|
1202
1202
|
}
|
|
1203
1203
|
function Ua(e, i, s) {
|
|
@@ -1219,8 +1219,8 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1219
1219
|
}
|
|
1220
1220
|
function _t(e, i, s, v) {
|
|
1221
1221
|
s || (s = {});
|
|
1222
|
-
for (var
|
|
1223
|
-
var U = i[
|
|
1222
|
+
for (var Z = -1, z = i.length; ++Z < z; ) {
|
|
1223
|
+
var U = i[Z], V = v ? v(s[U], e[U], U, s, e) : void 0;
|
|
1224
1224
|
yt(s, U, V === void 0 ? e[U] : V);
|
|
1225
1225
|
}
|
|
1226
1226
|
return s;
|
|
@@ -1231,27 +1231,27 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1231
1231
|
function en(e) {
|
|
1232
1232
|
return ja(e, Xe, wt);
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function Ce(e, i) {
|
|
1235
1235
|
var s = e.__data__;
|
|
1236
1236
|
return on(i) ? s[typeof i == "string" ? "string" : "hash"] : s.map;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function be(e, i) {
|
|
1239
1239
|
var s = na(e, i);
|
|
1240
1240
|
return Ha(s) ? s : void 0;
|
|
1241
1241
|
}
|
|
1242
1242
|
var wt = ht ? Ke(ht, Object) : bn, ce = Ka;
|
|
1243
|
-
(ze && ce(new ze(new ArrayBuffer(1))) != O ||
|
|
1244
|
-
var i =
|
|
1243
|
+
(ze && ce(new ze(new ArrayBuffer(1))) != O || ge && ce(new ge()) != M || Ve && ce(Ve.resolve()) != H || We && ce(new We()) != K || Ge && ce(new Ge()) != I) && (ce = function(e) {
|
|
1244
|
+
var i = Se.call(e), s = i == E ? e.constructor : void 0, v = s ? le(s) : void 0;
|
|
1245
1245
|
if (v)
|
|
1246
1246
|
switch (v) {
|
|
1247
1247
|
case va:
|
|
1248
1248
|
return O;
|
|
1249
1249
|
case ba:
|
|
1250
|
-
return
|
|
1250
|
+
return M;
|
|
1251
1251
|
case pa:
|
|
1252
|
-
return
|
|
1252
|
+
return H;
|
|
1253
1253
|
case ha:
|
|
1254
|
-
return
|
|
1254
|
+
return K;
|
|
1255
1255
|
case ma:
|
|
1256
1256
|
return I;
|
|
1257
1257
|
}
|
|
@@ -1259,46 +1259,46 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1259
1259
|
});
|
|
1260
1260
|
function tn(e) {
|
|
1261
1261
|
var i = e.length, s = e.constructor(i);
|
|
1262
|
-
return i && typeof e[0] == "string" &&
|
|
1262
|
+
return i && typeof e[0] == "string" && oe.call(e, "index") && (s.index = e.index, s.input = e.input), s;
|
|
1263
1263
|
}
|
|
1264
1264
|
function an(e) {
|
|
1265
1265
|
return typeof e.constructor == "function" && !Tt(e) ? Pa(sa(e)) : {};
|
|
1266
1266
|
}
|
|
1267
1267
|
function nn(e, i, s, v) {
|
|
1268
|
-
var
|
|
1268
|
+
var Z = e.constructor;
|
|
1269
1269
|
switch (i) {
|
|
1270
1270
|
case P:
|
|
1271
1271
|
return Ue(e);
|
|
1272
1272
|
case d:
|
|
1273
1273
|
case g:
|
|
1274
|
-
return new
|
|
1274
|
+
return new Z(+e);
|
|
1275
1275
|
case O:
|
|
1276
1276
|
return Wa(e, v);
|
|
1277
1277
|
case u:
|
|
1278
1278
|
case f:
|
|
1279
1279
|
case b:
|
|
1280
|
-
case
|
|
1281
|
-
case
|
|
1280
|
+
case N:
|
|
1281
|
+
case h:
|
|
1282
1282
|
case F:
|
|
1283
1283
|
case y:
|
|
1284
|
-
case
|
|
1284
|
+
case R:
|
|
1285
1285
|
case k:
|
|
1286
1286
|
return Xa(e, v);
|
|
1287
|
-
case
|
|
1287
|
+
case M:
|
|
1288
1288
|
return Ga(e, v, s);
|
|
1289
|
-
case
|
|
1290
|
-
case
|
|
1291
|
-
return new
|
|
1289
|
+
case $:
|
|
1290
|
+
case X:
|
|
1291
|
+
return new Z(e);
|
|
1292
1292
|
case G:
|
|
1293
1293
|
return qa(e);
|
|
1294
|
-
case
|
|
1294
|
+
case K:
|
|
1295
1295
|
return Ua(e, v, s);
|
|
1296
1296
|
case q:
|
|
1297
1297
|
return Ya(e);
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
function rn(e, i) {
|
|
1301
|
-
return i = i ?? c, !!i && (typeof e == "number" ||
|
|
1301
|
+
return i = i ?? c, !!i && (typeof e == "number" || me.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1302
1302
|
}
|
|
1303
1303
|
function on(e) {
|
|
1304
1304
|
var i = typeof e;
|
|
@@ -1308,7 +1308,7 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1308
1308
|
return !!dt && dt in e;
|
|
1309
1309
|
}
|
|
1310
1310
|
function Tt(e) {
|
|
1311
|
-
var i = e && e.constructor, s = typeof i == "function" && i.prototype ||
|
|
1311
|
+
var i = e && e.constructor, s = typeof i == "function" && i.prototype || ke;
|
|
1312
1312
|
return e === s;
|
|
1313
1313
|
}
|
|
1314
1314
|
function le(e) {
|
|
@@ -1331,7 +1331,7 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1331
1331
|
return e === i || e !== e && i !== i;
|
|
1332
1332
|
}
|
|
1333
1333
|
function ln(e) {
|
|
1334
|
-
return un(e) &&
|
|
1334
|
+
return un(e) && oe.call(e, "callee") && (!la.call(e, "callee") || Se.call(e) == l);
|
|
1335
1335
|
}
|
|
1336
1336
|
var Ye = Array.isArray;
|
|
1337
1337
|
function St(e) {
|
|
@@ -1342,13 +1342,13 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1342
1342
|
}
|
|
1343
1343
|
var dn = da || pn;
|
|
1344
1344
|
function It(e) {
|
|
1345
|
-
var i =
|
|
1345
|
+
var i = Oe(e) ? Se.call(e) : "";
|
|
1346
1346
|
return i == C || i == S;
|
|
1347
1347
|
}
|
|
1348
1348
|
function fn(e) {
|
|
1349
1349
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= c;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Oe(e) {
|
|
1352
1352
|
var i = typeof e;
|
|
1353
1353
|
return !!e && (i == "object" || i == "function");
|
|
1354
1354
|
}
|
|
@@ -1365,8 +1365,8 @@ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1365
1365
|
return !1;
|
|
1366
1366
|
}
|
|
1367
1367
|
n.exports = cn;
|
|
1368
|
-
})(
|
|
1369
|
-
const
|
|
1368
|
+
})(Mr, Re);
|
|
1369
|
+
const Br = Re, Lr = {
|
|
1370
1370
|
key: 0,
|
|
1371
1371
|
class: "sidebar-header"
|
|
1372
1372
|
}, Rr = { class: "sidebar-content-container" }, Zr = {
|
|
@@ -1450,7 +1450,7 @@ const Mr = Re, Lr = {
|
|
|
1450
1450
|
emits: ["click", "toggle"],
|
|
1451
1451
|
setup(n, { emit: t }) {
|
|
1452
1452
|
const a = n;
|
|
1453
|
-
et((
|
|
1453
|
+
et((h) => ({
|
|
1454
1454
|
"95fdfa38": m(o).mobileHeight,
|
|
1455
1455
|
"3083f0b8": m(o).mobileTop,
|
|
1456
1456
|
"77679b78": n.zIndex,
|
|
@@ -1475,49 +1475,49 @@ const Mr = Re, Lr = {
|
|
|
1475
1475
|
})), T = _(() => ({
|
|
1476
1476
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1477
1477
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1478
|
-
})), C = (
|
|
1479
|
-
var
|
|
1478
|
+
})), C = (h) => Br(h).map((y) => {
|
|
1479
|
+
var R, k, J;
|
|
1480
1480
|
if (y) {
|
|
1481
|
-
(!y.key || !((
|
|
1482
|
-
for (const
|
|
1483
|
-
|
|
1481
|
+
(!y.key || !((R = y.key) != null && R.trim())) && (y.key = String(y.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!y.testId || !((k = y.testId) != null && k.trim())) && (y.testId = String(y.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1482
|
+
for (const ae of y.items || [])
|
|
1483
|
+
ae.parentKey = y.key, (!ae.testId || !((J = ae.testId) != null && J.trim())) && (ae.testId = String(ae.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1484
1484
|
}
|
|
1485
1485
|
return y;
|
|
1486
|
-
}), S = _(() => a.topItems.length ? C(a.topItems) : []),
|
|
1486
|
+
}), S = _(() => a.topItems.length ? C(a.topItems) : []), M = _(() => a.bottomItems.length ? C(a.bottomItems) : []), $ = W(a.open), E = (h) => {
|
|
1487
1487
|
var F, y;
|
|
1488
|
-
|
|
1489
|
-
},
|
|
1488
|
+
$.value !== h && ($.value = h, t("toggle", h)), h ? (F = document == null ? void 0 : document.body) == null || F.classList.add("kong-ui-app-sidebar-open") : (y = document == null ? void 0 : document.body) == null || y.classList.remove("kong-ui-app-sidebar-open"), G.value = !1;
|
|
1489
|
+
}, H = () => {
|
|
1490
1490
|
a.mobileOverlayCloseOnClick && E(!1);
|
|
1491
|
-
}, G = W(!1),
|
|
1492
|
-
G.value = !0, t("click",
|
|
1491
|
+
}, G = W(!1), K = (h) => {
|
|
1492
|
+
G.value = !0, t("click", h), setTimeout(() => {
|
|
1493
1493
|
E(!1);
|
|
1494
1494
|
}, a.mobileCloseDelay);
|
|
1495
1495
|
};
|
|
1496
|
-
|
|
1497
|
-
E(
|
|
1496
|
+
Fe(() => a.open, (h) => {
|
|
1497
|
+
E(h);
|
|
1498
1498
|
});
|
|
1499
|
-
const { debounce:
|
|
1500
|
-
|
|
1499
|
+
const { debounce: X } = Gt(), q = X(() => {
|
|
1500
|
+
$.value && I.value !== (window == null ? void 0 : window.innerWidth) && (I.value = window == null ? void 0 : window.innerWidth, E(!1));
|
|
1501
1501
|
}, 200), I = W(), P = W(!1), O = W(), u = () => {
|
|
1502
1502
|
P.value || (P.value = !0, clearTimeout(O.value), O.value = setTimeout(() => P.value = !1, 1300));
|
|
1503
|
-
}, f = W(null), b = _(() =>
|
|
1503
|
+
}, f = W(null), b = _(() => $.value && a.mobileEnabled), N = async (h) => {
|
|
1504
1504
|
var F, y;
|
|
1505
|
-
|
|
1505
|
+
h ? (await wn(), await new Promise((R) => setTimeout(R, 300)), (F = f.value) == null || F.activate()) : (y = f.value) == null || y.deactivate();
|
|
1506
1506
|
};
|
|
1507
|
-
return
|
|
1508
|
-
|
|
1507
|
+
return Fe(b, async (h) => {
|
|
1508
|
+
h ? await N(!0) : await N(!1);
|
|
1509
1509
|
}, { immediate: !0 }), Ze(() => {
|
|
1510
1510
|
I.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", q), window.addEventListener("resize", u);
|
|
1511
1511
|
}), Pt(() => {
|
|
1512
1512
|
window.removeEventListener("resize", q), window.removeEventListener("resize", u);
|
|
1513
|
-
}), (
|
|
1514
|
-
const y =
|
|
1515
|
-
return
|
|
1516
|
-
|
|
1513
|
+
}), (h, F) => {
|
|
1514
|
+
const y = te("KIcon"), R = te("KDropdownItem");
|
|
1515
|
+
return p(), A(ue, null, [
|
|
1516
|
+
$.value && n.mobileOverlay && n.mobileEnabled ? (p(), A("div", {
|
|
1517
1517
|
key: 0,
|
|
1518
1518
|
class: "kong-ui-app-sidebar-overlay",
|
|
1519
|
-
onClick:
|
|
1520
|
-
})) :
|
|
1519
|
+
onClick: H
|
|
1520
|
+
})) : B("", !0),
|
|
1521
1521
|
Pe(m(Dr), {
|
|
1522
1522
|
ref_key: "focusTrap",
|
|
1523
1523
|
ref: f,
|
|
@@ -1525,10 +1525,10 @@ const Mr = Re, Lr = {
|
|
|
1525
1525
|
"allow-outside-click": "",
|
|
1526
1526
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1527
1527
|
}, {
|
|
1528
|
-
default:
|
|
1528
|
+
default: L(() => [
|
|
1529
1529
|
w("aside", {
|
|
1530
|
-
class:
|
|
1531
|
-
"sidebar-open":
|
|
1530
|
+
class: ee(["kong-ui-app-sidebar", {
|
|
1531
|
+
"sidebar-open": $.value,
|
|
1532
1532
|
"no-sidebar-header": !m(c),
|
|
1533
1533
|
"mobile-header-hidden": n.mobileEnabled && (!m(c) || !n.mobileHeaderVisible),
|
|
1534
1534
|
"mobile-disabled": !n.mobileEnabled,
|
|
@@ -1536,69 +1536,69 @@ const Mr = Re, Lr = {
|
|
|
1536
1536
|
}]),
|
|
1537
1537
|
tabindex: "-1"
|
|
1538
1538
|
}, [
|
|
1539
|
-
m(c) ? (
|
|
1540
|
-
D(
|
|
1541
|
-
])) :
|
|
1539
|
+
m(c) ? (p(), A("div", Lr, [
|
|
1540
|
+
D(h.$slots, "header", {}, void 0, !0)
|
|
1541
|
+
])) : B("", !0),
|
|
1542
1542
|
w("div", Rr, [
|
|
1543
|
-
m(l) ? (
|
|
1544
|
-
D(
|
|
1545
|
-
])) :
|
|
1543
|
+
m(l) ? (p(), A("div", Zr, [
|
|
1544
|
+
D(h.$slots, "top", {}, void 0, !0)
|
|
1545
|
+
])) : B("", !0),
|
|
1546
1546
|
w("nav", Pr, [
|
|
1547
|
-
m(S).length ? (
|
|
1548
|
-
(
|
|
1547
|
+
m(S).length ? (p(), A("ul", jr, [
|
|
1548
|
+
(p(!0), A(ue, null, he(m(S), (k) => (p(), j(Nt, {
|
|
1549
1549
|
key: k.name,
|
|
1550
1550
|
item: k,
|
|
1551
|
-
onClick:
|
|
1551
|
+
onClick: K
|
|
1552
1552
|
}, null, 8, ["item"]))), 128))
|
|
1553
|
-
])) :
|
|
1554
|
-
m(S).length && m(
|
|
1555
|
-
m(
|
|
1556
|
-
(
|
|
1553
|
+
])) : B("", !0),
|
|
1554
|
+
m(S).length && m(M).length ? (p(), A("div", Kr)) : B("", !0),
|
|
1555
|
+
m(M).length ? (p(), A("ul", Hr, [
|
|
1556
|
+
(p(!0), A(ue, null, he(m(M), (k) => (p(), j(Nt, {
|
|
1557
1557
|
key: k.name,
|
|
1558
1558
|
item: k,
|
|
1559
|
-
onClick:
|
|
1559
|
+
onClick: K
|
|
1560
1560
|
}, null, 8, ["item"]))), 128))
|
|
1561
|
-
])) :
|
|
1561
|
+
])) : B("", !0)
|
|
1562
1562
|
])
|
|
1563
1563
|
]),
|
|
1564
1564
|
w("div", zr, [
|
|
1565
|
-
D(
|
|
1566
|
-
n.profileName || n.profileItems.length ? (
|
|
1565
|
+
D(h.$slots, "footer", {}, () => [
|
|
1566
|
+
n.profileName || n.profileItems.length ? (p(), j(sr, {
|
|
1567
1567
|
key: 0,
|
|
1568
1568
|
class: "sidebar-profile-menu",
|
|
1569
1569
|
"item-count": n.profileItems.length,
|
|
1570
1570
|
name: n.profileName
|
|
1571
1571
|
}, {
|
|
1572
|
-
default:
|
|
1573
|
-
(
|
|
1572
|
+
default: L(() => [
|
|
1573
|
+
(p(!0), A(ue, null, he(n.profileItems, (k) => (p(), j(R, {
|
|
1574
1574
|
key: k.name,
|
|
1575
|
-
class:
|
|
1575
|
+
class: ee([{ "has-divider": k.hasDivider }, { "external-profile-dropdown-link": (k.external || k.newWindow) && typeof k.to == "string" }]),
|
|
1576
1576
|
"has-divider": k.hasDivider,
|
|
1577
1577
|
item: (k.external || k.newWindow) && typeof k.to == "string" ? void 0 : { label: k.name, to: k.to },
|
|
1578
|
-
onClick: (
|
|
1578
|
+
onClick: (J) => K(k)
|
|
1579
1579
|
}, {
|
|
1580
|
-
default:
|
|
1581
|
-
(k.external || k.newWindow) && typeof k.to == "string" ? (
|
|
1580
|
+
default: L(() => [
|
|
1581
|
+
(k.external || k.newWindow) && typeof k.to == "string" ? (p(), A("a", {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
class: "sidebar-item-external-link",
|
|
1584
1584
|
href: k.to,
|
|
1585
1585
|
target: k.newWindow ? "_blank" : void 0
|
|
1586
1586
|
}, [
|
|
1587
|
-
|
|
1588
|
-
k.newWindow ? (
|
|
1587
|
+
Te(ie(k.name) + " ", 1),
|
|
1588
|
+
k.newWindow ? (p(), j(y, {
|
|
1589
1589
|
key: 0,
|
|
1590
1590
|
color: "var(--black-70, rgba(0,0,0,0.7))",
|
|
1591
1591
|
icon: "externalLink",
|
|
1592
1592
|
size: "20",
|
|
1593
1593
|
viewBox: "0 0 20 20"
|
|
1594
|
-
})) :
|
|
1595
|
-
], 8, Vr)) :
|
|
1594
|
+
})) : B("", !0)
|
|
1595
|
+
], 8, Vr)) : B("", !0)
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 2
|
|
1598
1598
|
}, 1032, ["class", "has-divider", "item", "onClick"]))), 128))
|
|
1599
1599
|
]),
|
|
1600
1600
|
_: 1
|
|
1601
|
-
}, 8, ["item-count", "name"])) :
|
|
1601
|
+
}, 8, ["item-count", "name"])) : B("", !0)
|
|
1602
1602
|
], !0)
|
|
1603
1603
|
])
|
|
1604
1604
|
], 2)
|
|
@@ -1609,7 +1609,7 @@ const Mr = Re, Lr = {
|
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
});
|
|
1612
|
-
const Gr = /* @__PURE__ */
|
|
1612
|
+
const Gr = /* @__PURE__ */ Y(Wr, [["__scopeId", "data-v-46293c41"]]), rt = (n) => (at("data-v-33b3f7c3"), n = n(), nt(), n), qr = ["aria-label", "onClick"], Ur = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Yr = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Xr = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Jr = [
|
|
1613
1613
|
Ur,
|
|
1614
1614
|
Yr,
|
|
1615
1615
|
Xr
|
|
@@ -1626,19 +1626,19 @@ const Gr = /* @__PURE__ */ J(Wr, [["__scopeId", "data-v-46293c41"]]), rt = (n) =
|
|
|
1626
1626
|
const a = n, r = W(a.active || !1), c = () => {
|
|
1627
1627
|
r.value = !r.value, t("toggle", r.value);
|
|
1628
1628
|
};
|
|
1629
|
-
return
|
|
1629
|
+
return Fe(() => a.active, (l) => {
|
|
1630
1630
|
r.value = l;
|
|
1631
|
-
}), (l, o) => (
|
|
1631
|
+
}), (l, o) => (p(), A("a", {
|
|
1632
1632
|
"aria-haspopup": "true",
|
|
1633
1633
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1634
|
-
class:
|
|
1634
|
+
class: ee(["sidebar-menu-toggle", { active: r.value }]),
|
|
1635
1635
|
href: "#",
|
|
1636
1636
|
role: "button",
|
|
1637
1637
|
onClick: Zt(c, ["prevent"])
|
|
1638
1638
|
}, Jr, 10, qr));
|
|
1639
1639
|
}
|
|
1640
1640
|
});
|
|
1641
|
-
const ei = /* @__PURE__ */
|
|
1641
|
+
const ei = /* @__PURE__ */ Y(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) => (at("data-v-421b8aac"), n = n(), nt(), n), ai = { id: "kong-ui-app-layout-notification" }, ni = { class: "mobile-logo" }, ri = {
|
|
1642
1642
|
key: 0,
|
|
1643
1643
|
class: "navbar-logo"
|
|
1644
1644
|
}, ii = {
|
|
@@ -1686,10 +1686,10 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1686
1686
|
setup(n, { emit: t }) {
|
|
1687
1687
|
const a = n;
|
|
1688
1688
|
et((I) => ({
|
|
1689
|
-
"2bfd7598": m(
|
|
1689
|
+
"2bfd7598": m(H),
|
|
1690
1690
|
"2d767d27": m(G)
|
|
1691
1691
|
}));
|
|
1692
|
-
const r = tt(), c =
|
|
1692
|
+
const r = tt(), c = Ee({
|
|
1693
1693
|
navbarLeft: _(() => !!r["navbar-left"]),
|
|
1694
1694
|
navbarCenter: _(() => !!r["navbar-center"]),
|
|
1695
1695
|
navbarRight: _(() => !!r["navbar-right"]),
|
|
@@ -1698,9 +1698,9 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1698
1698
|
sidebarHeader: _(() => !!r["sidebar-header"]),
|
|
1699
1699
|
sidebarTop: _(() => !!r["sidebar-top"]),
|
|
1700
1700
|
sidebarFooter: _(() => !!r["sidebar-footer"])
|
|
1701
|
-
}), l = _(() => a.hideDefaultSlot), o =
|
|
1701
|
+
}), l = _(() => a.hideDefaultSlot), o = Ee({
|
|
1702
1702
|
hidden: _(() => a.navbarHidden)
|
|
1703
|
-
}), d =
|
|
1703
|
+
}), d = Ee({
|
|
1704
1704
|
topItems: _(() => a.sidebarTopItems),
|
|
1705
1705
|
bottomItems: _(() => a.sidebarBottomItems),
|
|
1706
1706
|
profileItems: _(() => a.sidebarProfileItems),
|
|
@@ -1715,26 +1715,26 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1715
1715
|
Tn(() => {
|
|
1716
1716
|
T.value = kn(d, "open").value || !1;
|
|
1717
1717
|
});
|
|
1718
|
-
const S = W(0),
|
|
1718
|
+
const S = W(0), M = W(60), $ = W(0), E = _(() => o.hidden ? $.value : M.value + $.value), H = _(() => `${E.value}px`), G = _(() => d.hidden || o.hidden ? "0" : "16px"), { debounce: K } = Gt(), X = K((I = !1) => {
|
|
1719
1719
|
if (I || S.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1720
1720
|
const P = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1721
|
-
P && (
|
|
1721
|
+
P && ($.value = P.offsetHeight);
|
|
1722
1722
|
}
|
|
1723
1723
|
}, 200), q = W();
|
|
1724
1724
|
return Ze(() => {
|
|
1725
1725
|
var P, O;
|
|
1726
|
-
(P = document == null ? void 0 : document.body) == null || P.classList.add("kong-ui-app-layout-body"), (O = document == null ? void 0 : document.documentElement) == null || O.classList.add("kong-ui-app-layout-html"), S.value = window == null ? void 0 : window.innerWidth,
|
|
1726
|
+
(P = document == null ? void 0 : document.body) == null || P.classList.add("kong-ui-app-layout-body"), (O = document == null ? void 0 : document.documentElement) == null || O.classList.add("kong-ui-app-layout-html"), S.value = window == null ? void 0 : window.innerWidth, X(!0);
|
|
1727
1727
|
const I = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1728
1728
|
I && (q.value = new ResizeObserver((u) => {
|
|
1729
1729
|
for (const f of u) {
|
|
1730
1730
|
const b = f.contentRect.height;
|
|
1731
|
-
|
|
1731
|
+
$.value !== b && ($.value = b);
|
|
1732
1732
|
}
|
|
1733
|
-
}), q.value.observe(I)), window.addEventListener("resize",
|
|
1733
|
+
}), q.value.observe(I)), window.addEventListener("resize", X);
|
|
1734
1734
|
}), Pt(() => {
|
|
1735
|
-
q.value && q.value.disconnect(), window.removeEventListener("resize",
|
|
1736
|
-
}), (I, P) => (
|
|
1737
|
-
class:
|
|
1735
|
+
q.value && q.value.disconnect(), window.removeEventListener("resize", X);
|
|
1736
|
+
}), (I, P) => (p(), A("div", {
|
|
1737
|
+
class: ee(["kong-ui-app-layout", [
|
|
1738
1738
|
{ "navbar-hidden": o.hidden },
|
|
1739
1739
|
{ "sidebar-hidden": d.hidden }
|
|
1740
1740
|
]])
|
|
@@ -1742,13 +1742,13 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1742
1742
|
w("div", ai, [
|
|
1743
1743
|
D(I.$slots, "notification", {}, void 0, !0)
|
|
1744
1744
|
]),
|
|
1745
|
-
o.hidden ?
|
|
1745
|
+
o.hidden ? B("", !0) : (p(), j(Dn, {
|
|
1746
1746
|
key: String(d.hidden),
|
|
1747
1747
|
"left-offset": d.hidden ? 0 : void 0,
|
|
1748
|
-
"top-offset":
|
|
1748
|
+
"top-offset": $.value
|
|
1749
1749
|
}, $t({
|
|
1750
|
-
"mobile-sidebar-toggle":
|
|
1751
|
-
d.hidden ?
|
|
1750
|
+
"mobile-sidebar-toggle": L(() => [
|
|
1751
|
+
d.hidden ? B("", !0) : (p(), j(ei, {
|
|
1752
1752
|
key: 0,
|
|
1753
1753
|
active: T.value,
|
|
1754
1754
|
onToggle: C
|
|
@@ -1758,7 +1758,7 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1758
1758
|
}, [
|
|
1759
1759
|
c.navbarMobileLogo ? {
|
|
1760
1760
|
name: "mobile-logo",
|
|
1761
|
-
fn:
|
|
1761
|
+
fn: L(() => [
|
|
1762
1762
|
w("div", ni, [
|
|
1763
1763
|
D(I.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1764
1764
|
])
|
|
@@ -1767,39 +1767,39 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1767
1767
|
} : void 0,
|
|
1768
1768
|
c.navbarLogo ? {
|
|
1769
1769
|
name: "logo",
|
|
1770
|
-
fn:
|
|
1771
|
-
d.hidden ? (
|
|
1770
|
+
fn: L(() => [
|
|
1771
|
+
d.hidden ? (p(), A("div", ri, [
|
|
1772
1772
|
D(I.$slots, "navbar-logo", {}, void 0, !0)
|
|
1773
|
-
])) :
|
|
1773
|
+
])) : B("", !0)
|
|
1774
1774
|
]),
|
|
1775
1775
|
key: "1"
|
|
1776
1776
|
} : void 0,
|
|
1777
1777
|
c.navbarLeft ? {
|
|
1778
1778
|
name: "left",
|
|
1779
|
-
fn:
|
|
1779
|
+
fn: L(() => [
|
|
1780
1780
|
D(I.$slots, "navbar-left", {}, void 0, !0)
|
|
1781
1781
|
]),
|
|
1782
1782
|
key: "2"
|
|
1783
1783
|
} : void 0,
|
|
1784
1784
|
c.navbarCenter ? {
|
|
1785
1785
|
name: "center",
|
|
1786
|
-
fn:
|
|
1786
|
+
fn: L(() => [
|
|
1787
1787
|
D(I.$slots, "navbar-center", {}, void 0, !0)
|
|
1788
1788
|
]),
|
|
1789
1789
|
key: "3"
|
|
1790
1790
|
} : void 0,
|
|
1791
1791
|
c.navbarRight ? {
|
|
1792
1792
|
name: "right",
|
|
1793
|
-
fn:
|
|
1793
|
+
fn: L(() => [
|
|
1794
1794
|
D(I.$slots, "navbar-right", {}, void 0, !0)
|
|
1795
1795
|
]),
|
|
1796
1796
|
key: "4"
|
|
1797
1797
|
} : void 0
|
|
1798
1798
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1799
|
-
d.hidden ?
|
|
1799
|
+
d.hidden ? B("", !0) : (p(), j(Gr, {
|
|
1800
1800
|
key: 1,
|
|
1801
1801
|
"bottom-items": d.bottomItems,
|
|
1802
|
-
"header-height":
|
|
1802
|
+
"header-height": M.value,
|
|
1803
1803
|
"mobile-enabled": "",
|
|
1804
1804
|
"mobile-header-visible": !1,
|
|
1805
1805
|
"mobile-top-offset": m(E),
|
|
@@ -1807,27 +1807,27 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1807
1807
|
"profile-items": d.profileItems,
|
|
1808
1808
|
"profile-name": d.profileName,
|
|
1809
1809
|
"top-items": d.topItems,
|
|
1810
|
-
"top-offset":
|
|
1810
|
+
"top-offset": $.value,
|
|
1811
1811
|
onClick: g,
|
|
1812
1812
|
onToggle: C
|
|
1813
1813
|
}, $t({ _: 2 }, [
|
|
1814
1814
|
c.sidebarHeader ? {
|
|
1815
1815
|
name: "header",
|
|
1816
|
-
fn:
|
|
1816
|
+
fn: L(() => [
|
|
1817
1817
|
D(I.$slots, "sidebar-header", {}, void 0, !0)
|
|
1818
1818
|
]),
|
|
1819
1819
|
key: "0"
|
|
1820
1820
|
} : void 0,
|
|
1821
1821
|
c.sidebarTop ? {
|
|
1822
1822
|
name: "top",
|
|
1823
|
-
fn:
|
|
1823
|
+
fn: L(() => [
|
|
1824
1824
|
D(I.$slots, "sidebar-top", {}, void 0, !0)
|
|
1825
1825
|
]),
|
|
1826
1826
|
key: "1"
|
|
1827
1827
|
} : void 0,
|
|
1828
1828
|
c.sidebarFooter ? {
|
|
1829
1829
|
name: "footer",
|
|
1830
|
-
fn:
|
|
1830
|
+
fn: L(() => [
|
|
1831
1831
|
D(I.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1832
1832
|
]),
|
|
1833
1833
|
key: "2"
|
|
@@ -1837,13 +1837,13 @@ const ei = /* @__PURE__ */ J(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
|
|
|
1837
1837
|
w("div", oi, [
|
|
1838
1838
|
si,
|
|
1839
1839
|
D(I.$slots, "app-error", {}, void 0, !0),
|
|
1840
|
-
m(l) ?
|
|
1840
|
+
m(l) ? B("", !0) : D(I.$slots, "default", { key: 0 }, void 0, !0)
|
|
1841
1841
|
])
|
|
1842
1842
|
])
|
|
1843
1843
|
], 2));
|
|
1844
1844
|
}
|
|
1845
1845
|
});
|
|
1846
|
-
const li = /* @__PURE__ */
|
|
1846
|
+
const li = /* @__PURE__ */ Y(ci, [["__scopeId", "data-v-421b8aac"]]), ui = /* @__PURE__ */ Q({
|
|
1847
1847
|
__name: "NavbarDropdownMenu",
|
|
1848
1848
|
props: {
|
|
1849
1849
|
options: {
|
|
@@ -1870,8 +1870,8 @@ const li = /* @__PURE__ */ J(ci, [["__scopeId", "data-v-421b8aac"]]), ui = /* @_
|
|
|
1870
1870
|
r.value = o, t("change", r.value);
|
|
1871
1871
|
};
|
|
1872
1872
|
return (o, d) => {
|
|
1873
|
-
const g =
|
|
1874
|
-
return
|
|
1873
|
+
const g = te("KDropdownItem"), T = te("KDropdownMenu");
|
|
1874
|
+
return p(), j(T, {
|
|
1875
1875
|
appearance: "selectionMenu",
|
|
1876
1876
|
class: "top-bar-dropdown-menu",
|
|
1877
1877
|
disabled: n.disabled,
|
|
@@ -1881,17 +1881,17 @@ const li = /* @__PURE__ */ J(ci, [["__scopeId", "data-v-421b8aac"]]), ui = /* @_
|
|
|
1881
1881
|
width: n.width,
|
|
1882
1882
|
onChange: d[0] || (d[0] = (C) => c(C))
|
|
1883
1883
|
}, {
|
|
1884
|
-
items:
|
|
1884
|
+
items: L(({ handleSelection: C }) => [
|
|
1885
1885
|
D(o.$slots, "default", {}, () => [
|
|
1886
|
-
(
|
|
1886
|
+
(p(!0), A(ue, null, he(n.options, (S) => (p(), j(g, {
|
|
1887
1887
|
key: S.value,
|
|
1888
1888
|
"data-testid": "select-" + S.value,
|
|
1889
1889
|
selected: r.value.value === S.value,
|
|
1890
|
-
onClick: (
|
|
1890
|
+
onClick: (M) => C(S)
|
|
1891
1891
|
}, {
|
|
1892
|
-
default:
|
|
1892
|
+
default: L(() => [
|
|
1893
1893
|
D(o.$slots, "default", { option: S }, () => [
|
|
1894
|
-
|
|
1894
|
+
Te(ie(S.label), 1)
|
|
1895
1895
|
], !0)
|
|
1896
1896
|
]),
|
|
1897
1897
|
_: 2
|
|
@@ -1903,38 +1903,89 @@ const li = /* @__PURE__ */ J(ci, [["__scopeId", "data-v-421b8aac"]]), ui = /* @_
|
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
1905
|
});
|
|
1906
|
-
const
|
|
1906
|
+
const Ii = /* @__PURE__ */ Y(ui, [["__scopeId", "data-v-760cb07f"]]), di = /* @__PURE__ */ Q({
|
|
1907
|
+
__name: "AccountDropdown",
|
|
1908
|
+
props: {
|
|
1909
|
+
options: {
|
|
1910
|
+
type: Array,
|
|
1911
|
+
required: !0
|
|
1912
|
+
},
|
|
1913
|
+
width: {
|
|
1914
|
+
type: String,
|
|
1915
|
+
default: "240"
|
|
1916
|
+
},
|
|
1917
|
+
userInitials: {
|
|
1918
|
+
type: String,
|
|
1919
|
+
required: !0,
|
|
1920
|
+
// Important: default to a string with a single empty space to force the dropdown to always be visible
|
|
1921
|
+
default: " "
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
setup(n) {
|
|
1925
|
+
return (t, a) => {
|
|
1926
|
+
const r = te("KDropdownItem"), c = te("KDropdownMenu");
|
|
1927
|
+
return p(), j(c, {
|
|
1928
|
+
class: "account-dropdown",
|
|
1929
|
+
"kpop-attributes": { placement: "bottomStart" },
|
|
1930
|
+
label: n.userInitials,
|
|
1931
|
+
size: "small",
|
|
1932
|
+
width: n.width
|
|
1933
|
+
}, {
|
|
1934
|
+
items: L(({ handleSelection: l }) => [
|
|
1935
|
+
D(t.$slots, "default", {}, () => [
|
|
1936
|
+
(p(!0), A(ue, null, he(n.options, (o) => (p(), j(r, {
|
|
1937
|
+
key: o.value,
|
|
1938
|
+
class: ee({ "has-divider": o.hasDivider }),
|
|
1939
|
+
"data-testid": "select-" + o.value,
|
|
1940
|
+
"has-divider": o.hasDivider,
|
|
1941
|
+
onClick: (d) => l(o)
|
|
1942
|
+
}, {
|
|
1943
|
+
default: L(() => [
|
|
1944
|
+
D(t.$slots, "default", { option: o }, () => [
|
|
1945
|
+
Te(ie(o.label), 1)
|
|
1946
|
+
], !0)
|
|
1947
|
+
]),
|
|
1948
|
+
_: 2
|
|
1949
|
+
}, 1032, ["class", "data-testid", "has-divider", "onClick"]))), 128))
|
|
1950
|
+
], !0)
|
|
1951
|
+
]),
|
|
1952
|
+
_: 3
|
|
1953
|
+
}, 8, ["label", "width"]);
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
});
|
|
1957
|
+
const Ci = /* @__PURE__ */ Y(di, [["__scopeId", "data-v-cce33788"]]), fi = {}, vi = {
|
|
1907
1958
|
fill: "none",
|
|
1908
1959
|
height: "130",
|
|
1909
1960
|
width: "130",
|
|
1910
1961
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1911
|
-
},
|
|
1912
|
-
|
|
1962
|
+
}, bi = /* @__PURE__ */ Sn('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>', 5), pi = [
|
|
1963
|
+
bi
|
|
1913
1964
|
];
|
|
1914
|
-
function
|
|
1915
|
-
return
|
|
1965
|
+
function hi(n, t) {
|
|
1966
|
+
return p(), A("svg", vi, pi);
|
|
1916
1967
|
}
|
|
1917
|
-
const
|
|
1918
|
-
/* @__PURE__ */
|
|
1968
|
+
const mi = /* @__PURE__ */ Y(fi, [["render", hi]]), qt = (n) => (at("data-v-ff05f71e"), n = n(), nt(), n), gi = { class: "kong-ui-app-error" }, yi = { class: "banana-icon" }, _i = { class: "kong-ui-app-error-content" }, wi = /* @__PURE__ */ qt(() => /* @__PURE__ */ w("h2", null, "An unexpected error has occurred", -1)), Ti = /* @__PURE__ */ qt(() => /* @__PURE__ */ w("p", null, [
|
|
1969
|
+
/* @__PURE__ */ Te("Go back to the previous page or "),
|
|
1919
1970
|
/* @__PURE__ */ w("a", { href: "/" }, "return home"),
|
|
1920
|
-
/* @__PURE__ */
|
|
1921
|
-
], -1)),
|
|
1971
|
+
/* @__PURE__ */ Te(".")
|
|
1972
|
+
], -1)), ki = /* @__PURE__ */ Q({
|
|
1922
1973
|
__name: "AppError",
|
|
1923
1974
|
setup(n) {
|
|
1924
|
-
return (t, a) => (
|
|
1925
|
-
w("div", gi, [
|
|
1926
|
-
Pe(hi)
|
|
1927
|
-
]),
|
|
1975
|
+
return (t, a) => (p(), A("section", gi, [
|
|
1928
1976
|
w("div", yi, [
|
|
1977
|
+
Pe(mi)
|
|
1978
|
+
]),
|
|
1979
|
+
w("div", _i, [
|
|
1929
1980
|
D(t.$slots, "default", {}, () => [
|
|
1930
|
-
|
|
1931
|
-
|
|
1981
|
+
wi,
|
|
1982
|
+
Ti
|
|
1932
1983
|
], !0)
|
|
1933
1984
|
])
|
|
1934
1985
|
]));
|
|
1935
1986
|
}
|
|
1936
1987
|
});
|
|
1937
|
-
const
|
|
1988
|
+
const Oi = /* @__PURE__ */ Y(ki, [["__scopeId", "data-v-ff05f71e"]]), xi = {
|
|
1938
1989
|
// Customize Vue plugin options as desired
|
|
1939
1990
|
// Providing a `name` property allows for customizing the registered
|
|
1940
1991
|
// name of your component (useful if exporting a single component).
|
|
@@ -1943,12 +1994,13 @@ const Ii = /* @__PURE__ */ J(Ti, [["__scopeId", "data-v-ff05f71e"]]), Ci = {
|
|
|
1943
1994
|
}
|
|
1944
1995
|
};
|
|
1945
1996
|
export {
|
|
1946
|
-
|
|
1997
|
+
Ci as AccountDropdown,
|
|
1998
|
+
Oi as AppError,
|
|
1947
1999
|
li as AppLayout,
|
|
1948
2000
|
Dn as AppNavbar,
|
|
1949
2001
|
Gr as AppSidebar,
|
|
1950
|
-
|
|
2002
|
+
Ii as NavbarDropdownMenu,
|
|
1951
2003
|
ei as SidebarToggle,
|
|
1952
|
-
|
|
2004
|
+
xi as default
|
|
1953
2005
|
};
|
|
1954
2006
|
//# sourceMappingURL=app-layout.es.js.map
|