@kong-ui-public/app-layout 0.19.4 → 0.19.5
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 +701 -685
- package/dist/app-layout.es.js.map +1 -1
- package/dist/app-layout.umd.js +5 -5
- package/dist/app-layout.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/app-layout.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ae, useCssVars as at, unref as p, useSlots as nt, computed as _, reactive as Ne, onMounted as Ze, openBlock as g, createElementBlock as N, createElementVNode as I, renderSlot as F, createCommentVNode as L, toDisplayString as ge, resolveComponent as ye, normalizeClass as te, createBlock as Q, resolveDynamicComponent as hn, withCtx as z, withKeys as pn, createVNode as rt, Fragment as _e, renderList as Fe, ref as U, watch as $e, onUnmounted as mn, Comment as gn, cloneVNode as yn, onBeforeUnmount as jt, nextTick as _n, withModifiers as wn, pushScopeId as it, popScopeId as ot, watchEffect as Tn, toRef as Sn, createSlots as $t, createTextVNode as et, createStaticVNode as kn } 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"
|
|
5
|
-
}, An = { class: "navbar-content" }, En = { class: "navbar-content-left" },
|
|
5
|
+
}, An = { class: "navbar-content" }, En = { class: "navbar-content-left" }, Nn = { class: "navbar-content-center" }, Fn = { class: "navbar-content-right" }, $n = /* @__PURE__ */ ae({
|
|
6
6
|
__name: "AppNavbar",
|
|
7
7
|
props: {
|
|
8
8
|
topOffset: {
|
|
@@ -21,56 +21,56 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On
|
|
|
21
21
|
},
|
|
22
22
|
setup(n) {
|
|
23
23
|
const t = n;
|
|
24
|
-
|
|
25
|
-
e7993570:
|
|
26
|
-
"591d67a5":
|
|
27
|
-
"0b950b18":
|
|
24
|
+
at((o) => ({
|
|
25
|
+
e7993570: p(d).top,
|
|
26
|
+
"591d67a5": p(d).zIndex,
|
|
27
|
+
"0b950b18": p(d).left,
|
|
28
28
|
74170388: c.marginRight,
|
|
29
29
|
"482efd74": c.width
|
|
30
30
|
}));
|
|
31
|
-
const a =
|
|
31
|
+
const a = nt(), r = _(() => !!a.logo), c = Ne({
|
|
32
32
|
marginRight: "0",
|
|
33
33
|
width: "0"
|
|
34
34
|
});
|
|
35
|
-
|
|
36
|
-
var o,
|
|
37
|
-
(
|
|
35
|
+
Ze(() => {
|
|
36
|
+
var o, v;
|
|
37
|
+
(v = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && v.length ? (c.marginRight = "32px", c.width = "calc(240px - 32px)") : (c.marginRight = "0", c.width = "0");
|
|
38
38
|
});
|
|
39
|
-
const
|
|
39
|
+
const d = _(() => ({
|
|
40
40
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
41
41
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
42
42
|
zIndex: t.zIndex
|
|
43
43
|
}));
|
|
44
|
-
return (o,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
return (o, v) => (g(), N("header", In, [
|
|
45
|
+
I("div", Cn, [
|
|
46
|
+
I("div", On, [
|
|
47
|
+
F(o.$slots, "mobile-sidebar-toggle"),
|
|
48
|
+
F(o.$slots, "mobile-logo")
|
|
49
49
|
]),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
])) :
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
p(r) ? (g(), N("div", xn, [
|
|
51
|
+
F(o.$slots, "logo")
|
|
52
|
+
])) : L("", !0),
|
|
53
|
+
I("div", An, [
|
|
54
|
+
I("div", En, [
|
|
55
|
+
F(o.$slots, "left")
|
|
56
56
|
]),
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
I("div", Nn, [
|
|
58
|
+
F(o.$slots, "center")
|
|
59
59
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
I("div", Fn, [
|
|
61
|
+
F(o.$slots, "right")
|
|
62
62
|
])
|
|
63
63
|
])
|
|
64
64
|
])
|
|
65
65
|
]));
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const ne = (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__ */ ne($n, [["__scopeId", "data-v-b7131fb2"]]), Rn = ["title"], Bn = /* @__PURE__ */ ae({
|
|
74
74
|
__name: "ItemBadge",
|
|
75
75
|
props: {
|
|
76
76
|
count: {
|
|
@@ -80,21 +80,21 @@ const ae = (n, t) => {
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
setup(n) {
|
|
83
|
-
const t = n, a = 99, r =
|
|
84
|
-
return (c,
|
|
83
|
+
const t = n, a = 99, r = _(() => t.count ? t.count > a ? `${a}+` : t.count.toString() : "");
|
|
84
|
+
return (c, d) => p(r) ? (g(), N("div", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "item-badge",
|
|
87
87
|
title: (n.count || 0) > a ? String(n.count) : void 0
|
|
88
|
-
},
|
|
88
|
+
}, ge(p(r)), 9, Rn)) : L("", !0);
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
const
|
|
91
|
+
const Ln = /* @__PURE__ */ ne(Bn, [["__scopeId", "data-v-9e48c714"]]), Mn = ["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" }, Hn = { class: "sidebar-item-name has-tooltip" }, Kn = {
|
|
95
95
|
key: 2,
|
|
96
96
|
class: "sidebar-item-label truncate-text truncate-20"
|
|
97
|
-
}, zn = ["id"], Vn = /* @__PURE__ */
|
|
97
|
+
}, zn = ["id"], Vn = /* @__PURE__ */ ae({
|
|
98
98
|
__name: "SidebarItem",
|
|
99
99
|
props: {
|
|
100
100
|
item: {
|
|
@@ -108,99 +108,99 @@ const Rn = /* @__PURE__ */ ae(Ln, [["__scopeId", "data-v-9e48c714"]]), Mn = ["da
|
|
|
108
108
|
},
|
|
109
109
|
emits: ["click"],
|
|
110
110
|
setup(n, { emit: t }) {
|
|
111
|
-
const a = n, r =
|
|
112
|
-
t("click",
|
|
113
|
-
},
|
|
114
|
-
o(
|
|
111
|
+
const a = n, r = _(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), c = _(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), d = _(() => a.subnavItem && a.item.badgeCount !== void 0), o = (m) => {
|
|
112
|
+
t("click", m);
|
|
113
|
+
}, v = (m, y, A) => {
|
|
114
|
+
o(y), typeof A == "function" && (m.preventDefault(), A());
|
|
115
115
|
};
|
|
116
|
-
return (
|
|
117
|
-
var
|
|
118
|
-
const
|
|
119
|
-
return
|
|
120
|
-
class:
|
|
116
|
+
return (m, y) => {
|
|
117
|
+
var S;
|
|
118
|
+
const A = ye("KIcon"), x = ye("KTooltip"), $ = ye("SidebarItem", !0);
|
|
119
|
+
return g(), N("li", {
|
|
120
|
+
class: te([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
|
-
(
|
|
124
|
-
custom:
|
|
125
|
-
to: !
|
|
123
|
+
(g(), Q(hn(p(r) ? "div" : "router-link"), {
|
|
124
|
+
custom: p(r) ? void 0 : !0,
|
|
125
|
+
to: !p(r) && !p(c) ? n.item.to : void 0
|
|
126
126
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
var Z,
|
|
127
|
+
default: z((C) => {
|
|
128
|
+
var Z, V;
|
|
129
129
|
return [
|
|
130
|
-
|
|
130
|
+
I("a", {
|
|
131
131
|
"aria-controls": (Z = n.item.items) != null && Z.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
132
|
-
"aria-expanded": (
|
|
133
|
-
class:
|
|
134
|
-
href:
|
|
135
|
-
target:
|
|
136
|
-
onClick: (P) =>
|
|
137
|
-
onKeypress: pn((P) =>
|
|
132
|
+
"aria-expanded": (V = n.item.items) != null && V.length && n.item.expanded ? !0 : void 0,
|
|
133
|
+
class: te(["sidebar-item-link", { "sidebar-item-external-link": p(c), "router-link": !p(r) }]),
|
|
134
|
+
href: p(r) ? String(n.item.to || "#") : C == null ? void 0 : C.href,
|
|
135
|
+
target: p(c) ? "_blank" : void 0,
|
|
136
|
+
onClick: (P) => v(P, n.item, C == null ? void 0 : C.navigate),
|
|
137
|
+
onKeypress: pn((P) => v(P, n.item, C == null ? void 0 : C.navigate), ["enter"])
|
|
138
138
|
}, [
|
|
139
|
-
|
|
140
|
-
class:
|
|
139
|
+
I("div", {
|
|
140
|
+
class: te(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": p(d) }])
|
|
141
141
|
}, [
|
|
142
|
-
n.item.icon ? (
|
|
143
|
-
|
|
142
|
+
n.item.icon ? (g(), N("div", Pn, [
|
|
143
|
+
rt(A, {
|
|
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
|
-
])) :
|
|
149
|
-
|
|
150
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
148
|
+
])) : L("", !0),
|
|
149
|
+
I("div", jn, [
|
|
150
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (g(), N("div", {
|
|
151
151
|
key: 0,
|
|
152
|
-
class:
|
|
153
|
-
},
|
|
152
|
+
class: te(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
153
|
+
}, ge(n.item.name), 3)) : (g(), Q(x, {
|
|
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:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
class:
|
|
164
|
-
},
|
|
160
|
+
default: z(() => [
|
|
161
|
+
I("div", Hn, [
|
|
162
|
+
I("span", {
|
|
163
|
+
class: te(["truncate-text", [n.subnavItem ? "truncate-20" : "truncate-17", { "has-badge-max-width": p(d) }]])
|
|
164
|
+
}, ge(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 ? (g(), N("div", Kn, ge(n.item.label), 1)) : L("", !0)
|
|
170
170
|
]),
|
|
171
|
-
|
|
171
|
+
p(d) ? (g(), Q(Ln, {
|
|
172
172
|
key: 1,
|
|
173
173
|
count: n.item.badgeCount
|
|
174
|
-
}, null, 8, ["count"])) :
|
|
174
|
+
}, null, 8, ["count"])) : L("", !0)
|
|
175
175
|
], 2)
|
|
176
176
|
], 42, Zn)
|
|
177
177
|
];
|
|
178
178
|
}),
|
|
179
179
|
_: 1
|
|
180
180
|
}, 8, ["custom", "to"])),
|
|
181
|
-
(
|
|
181
|
+
(S = n.item.items) != null && S.length && n.item.expanded ? (g(), N("ul", {
|
|
182
182
|
key: 0,
|
|
183
183
|
id: `subnav-${n.item.key}`,
|
|
184
184
|
class: "level-secondary"
|
|
185
185
|
}, [
|
|
186
|
-
(
|
|
187
|
-
key:
|
|
188
|
-
item:
|
|
186
|
+
(g(!0), N(_e, null, Fe(n.item.items, (C) => (g(), Q($, {
|
|
187
|
+
key: C.name,
|
|
188
|
+
item: C,
|
|
189
189
|
"subnav-item": !0,
|
|
190
|
-
onClick: (Z) => o(
|
|
190
|
+
onClick: (Z) => o(C)
|
|
191
191
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
192
|
-
], 8, zn)) :
|
|
192
|
+
], 8, zn)) : L("", !0)
|
|
193
193
|
], 10, Mn);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
const
|
|
197
|
+
const Dt = /* @__PURE__ */ ne(Vn, [["__scopeId", "data-v-a8253818"]]);
|
|
198
198
|
/*!
|
|
199
199
|
* tabbable 6.1.2
|
|
200
200
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
201
201
|
*/
|
|
202
|
-
var
|
|
203
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
202
|
+
var Ht = ["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__ */ Ht.join(","), Kt = typeof Element > "u", le = Kt ? function() {
|
|
203
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Re = !Kt && Element.prototype.getRootNode ? function(n) {
|
|
204
204
|
var t;
|
|
205
205
|
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
206
206
|
} : function(n) {
|
|
@@ -208,50 +208,50 @@ var Pt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
208
208
|
}, Be = function n(t, a) {
|
|
209
209
|
var r;
|
|
210
210
|
a === void 0 && (a = !0);
|
|
211
|
-
var c = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"),
|
|
211
|
+
var c = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), d = c === "" || c === "true", o = d || a && t && n(t.parentNode);
|
|
212
212
|
return o;
|
|
213
213
|
}, Wn = function(t) {
|
|
214
214
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
215
215
|
return r === "" || r === "true";
|
|
216
|
-
},
|
|
216
|
+
}, zt = function(t, a, r) {
|
|
217
217
|
if (Be(t))
|
|
218
218
|
return [];
|
|
219
|
-
var c = Array.prototype.slice.apply(t.querySelectorAll(
|
|
220
|
-
return a &&
|
|
221
|
-
},
|
|
222
|
-
for (var c = [],
|
|
223
|
-
var o =
|
|
219
|
+
var c = Array.prototype.slice.apply(t.querySelectorAll(De));
|
|
220
|
+
return a && le.call(t, De) && c.unshift(t), c = c.filter(r), c;
|
|
221
|
+
}, Vt = function n(t, a, r) {
|
|
222
|
+
for (var c = [], d = Array.from(t); d.length; ) {
|
|
223
|
+
var o = d.shift();
|
|
224
224
|
if (!Be(o, !1))
|
|
225
225
|
if (o.tagName === "SLOT") {
|
|
226
|
-
var
|
|
227
|
-
r.flatten ? c.push.apply(c,
|
|
226
|
+
var v = o.assignedElements(), m = v.length ? v : o.children, y = n(m, !0, r);
|
|
227
|
+
r.flatten ? c.push.apply(c, y) : c.push({
|
|
228
228
|
scopeParent: o,
|
|
229
|
-
candidates:
|
|
229
|
+
candidates: y
|
|
230
230
|
});
|
|
231
231
|
} else {
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
var
|
|
235
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o),
|
|
236
|
-
if (
|
|
237
|
-
var
|
|
238
|
-
r.flatten ? c.push.apply(c,
|
|
232
|
+
var A = le.call(o, De);
|
|
233
|
+
A && r.filter(o) && (a || !t.includes(o)) && c.push(o);
|
|
234
|
+
var x = o.shadowRoot || // check for an undisclosed shadow
|
|
235
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), $ = !Be(x, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
236
|
+
if (x && $) {
|
|
237
|
+
var S = n(x === !0 ? o.children : x.children, !0, r);
|
|
238
|
+
r.flatten ? c.push.apply(c, S) : c.push({
|
|
239
239
|
scopeParent: o,
|
|
240
|
-
candidates:
|
|
240
|
+
candidates: S
|
|
241
241
|
});
|
|
242
242
|
} else
|
|
243
|
-
|
|
243
|
+
d.unshift.apply(d, o.children);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
return c;
|
|
247
|
-
},
|
|
247
|
+
}, Wt = function(t, a) {
|
|
248
248
|
return t.tabIndex < 0 && (a || /^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Wn(t)) && isNaN(parseInt(t.getAttribute("tabindex"), 10)) ? 0 : t.tabIndex;
|
|
249
249
|
}, Gn = function(t, a) {
|
|
250
250
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
251
|
-
},
|
|
251
|
+
}, Gt = function(t) {
|
|
252
252
|
return t.tagName === "INPUT";
|
|
253
253
|
}, Un = function(t) {
|
|
254
|
-
return
|
|
254
|
+
return Gt(t) && t.type === "hidden";
|
|
255
255
|
}, qn = function(t) {
|
|
256
256
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
257
257
|
return r.tagName === "SUMMARY";
|
|
@@ -264,8 +264,8 @@ var Pt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
264
264
|
}, Xn = function(t) {
|
|
265
265
|
if (!t.name)
|
|
266
266
|
return !0;
|
|
267
|
-
var a = t.form ||
|
|
268
|
-
return a.querySelectorAll('input[type="radio"][name="' +
|
|
267
|
+
var a = t.form || Re(t), r = function(v) {
|
|
268
|
+
return a.querySelectorAll('input[type="radio"][name="' + v + '"]');
|
|
269
269
|
}, c;
|
|
270
270
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
271
271
|
c = r(window.CSS.escape(t.name));
|
|
@@ -275,48 +275,48 @@ var Pt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
275
275
|
} catch (o) {
|
|
276
276
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
return !
|
|
278
|
+
var d = Yn(c, t.form);
|
|
279
|
+
return !d || d === t;
|
|
280
280
|
}, Jn = function(t) {
|
|
281
|
-
return
|
|
281
|
+
return Gt(t) && t.type === "radio";
|
|
282
282
|
}, Qn = function(t) {
|
|
283
283
|
return Jn(t) && !Xn(t);
|
|
284
284
|
}, er = function(t) {
|
|
285
|
-
var a, r = t &&
|
|
285
|
+
var a, r = t && Re(t), c = (a = r) === null || a === void 0 ? void 0 : a.host, d = !1;
|
|
286
286
|
if (r && r !== t) {
|
|
287
|
-
var o,
|
|
288
|
-
for (
|
|
289
|
-
var
|
|
290
|
-
r =
|
|
287
|
+
var o, v, m;
|
|
288
|
+
for (d = !!((o = c) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(c) || t != null && (m = t.ownerDocument) !== null && m !== void 0 && m.contains(t)); !d && c; ) {
|
|
289
|
+
var y, A, x;
|
|
290
|
+
r = Re(c), c = (y = r) === null || y === void 0 ? void 0 : y.host, d = !!((A = c) !== null && A !== void 0 && (x = A.ownerDocument) !== null && x !== void 0 && x.contains(c));
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
return
|
|
294
|
-
},
|
|
293
|
+
return d;
|
|
294
|
+
}, Rt = function(t) {
|
|
295
295
|
var a = t.getBoundingClientRect(), r = a.width, c = a.height;
|
|
296
296
|
return r === 0 && c === 0;
|
|
297
297
|
}, tr = function(t, a) {
|
|
298
298
|
var r = a.displayCheck, c = a.getShadowRoot;
|
|
299
299
|
if (getComputedStyle(t).visibility === "hidden")
|
|
300
300
|
return !0;
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
301
|
+
var d = le.call(t, "details>summary:first-of-type"), o = d ? t.parentElement : t;
|
|
302
|
+
if (le.call(o, "details:not([open]) *"))
|
|
303
303
|
return !0;
|
|
304
304
|
if (!r || r === "full" || r === "legacy-full") {
|
|
305
305
|
if (typeof c == "function") {
|
|
306
|
-
for (var
|
|
307
|
-
var
|
|
308
|
-
if (
|
|
309
|
-
return
|
|
310
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
306
|
+
for (var v = t; t; ) {
|
|
307
|
+
var m = t.parentElement, y = Re(t);
|
|
308
|
+
if (m && !m.shadowRoot && c(m) === !0)
|
|
309
|
+
return Rt(t);
|
|
310
|
+
t.assignedSlot ? t = t.assignedSlot : !m && y !== t.ownerDocument ? t = y.host : t = m;
|
|
311
311
|
}
|
|
312
|
-
t =
|
|
312
|
+
t = v;
|
|
313
313
|
}
|
|
314
314
|
if (er(t))
|
|
315
315
|
return !t.getClientRects().length;
|
|
316
316
|
if (r !== "legacy-full")
|
|
317
317
|
return !0;
|
|
318
318
|
} else if (r === "non-zero-area")
|
|
319
|
-
return
|
|
319
|
+
return Rt(t);
|
|
320
320
|
return !1;
|
|
321
321
|
}, ar = function(t) {
|
|
322
322
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
@@ -325,7 +325,7 @@ var Pt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
325
325
|
for (var r = 0; r < a.children.length; r++) {
|
|
326
326
|
var c = a.children.item(r);
|
|
327
327
|
if (c.tagName === "LEGEND")
|
|
328
|
-
return
|
|
328
|
+
return le.call(a, "fieldset[disabled] *") ? !0 : !c.contains(t);
|
|
329
329
|
}
|
|
330
330
|
return !0;
|
|
331
331
|
}
|
|
@@ -338,56 +338,56 @@ var Pt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
338
338
|
// note related to `candidateSelectors`)
|
|
339
339
|
Be(a) || Un(a) || tr(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
340
340
|
qn(a) || ar(a));
|
|
341
|
-
},
|
|
342
|
-
return !(Qn(a) ||
|
|
341
|
+
}, tt = function(t, a) {
|
|
342
|
+
return !(Qn(a) || Wt(a) < 0 || !Le(t, a));
|
|
343
343
|
}, nr = function(t) {
|
|
344
344
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
345
345
|
return !!(isNaN(a) || a >= 0);
|
|
346
346
|
}, rr = function n(t) {
|
|
347
347
|
var a = [], r = [];
|
|
348
|
-
return t.forEach(function(c,
|
|
349
|
-
var o = !!c.scopeParent,
|
|
350
|
-
|
|
351
|
-
documentOrder:
|
|
352
|
-
tabIndex:
|
|
348
|
+
return t.forEach(function(c, d) {
|
|
349
|
+
var o = !!c.scopeParent, v = o ? c.scopeParent : c, m = Wt(v, o), y = o ? n(c.candidates) : v;
|
|
350
|
+
m === 0 ? o ? a.push.apply(a, y) : a.push(v) : r.push({
|
|
351
|
+
documentOrder: d,
|
|
352
|
+
tabIndex: m,
|
|
353
353
|
item: c,
|
|
354
354
|
isScope: o,
|
|
355
|
-
content:
|
|
355
|
+
content: y
|
|
356
356
|
});
|
|
357
|
-
}), r.sort(Gn).reduce(function(c,
|
|
358
|
-
return
|
|
357
|
+
}), r.sort(Gn).reduce(function(c, d) {
|
|
358
|
+
return d.isScope ? c.push.apply(c, d.content) : c.push(d.content), c;
|
|
359
359
|
}, []).concat(a);
|
|
360
360
|
}, ir = function(t, a) {
|
|
361
361
|
a = a || {};
|
|
362
362
|
var r;
|
|
363
|
-
return a.getShadowRoot ? r =
|
|
364
|
-
filter:
|
|
363
|
+
return a.getShadowRoot ? r = Vt([t], a.includeContainer, {
|
|
364
|
+
filter: tt.bind(null, a),
|
|
365
365
|
flatten: !1,
|
|
366
366
|
getShadowRoot: a.getShadowRoot,
|
|
367
367
|
shadowRootFilter: nr
|
|
368
|
-
}) : r =
|
|
368
|
+
}) : r = zt(t, a.includeContainer, tt.bind(null, a)), rr(r);
|
|
369
369
|
}, or = function(t, a) {
|
|
370
370
|
a = a || {};
|
|
371
371
|
var r;
|
|
372
|
-
return a.getShadowRoot ? r =
|
|
372
|
+
return a.getShadowRoot ? r = Vt([t], a.includeContainer, {
|
|
373
373
|
filter: Le.bind(null, a),
|
|
374
374
|
flatten: !0,
|
|
375
375
|
getShadowRoot: a.getShadowRoot
|
|
376
|
-
}) : r =
|
|
377
|
-
},
|
|
376
|
+
}) : r = zt(t, a.includeContainer, Le.bind(null, a)), r;
|
|
377
|
+
}, xe = function(t, a) {
|
|
378
378
|
if (a = a || {}, !t)
|
|
379
379
|
throw new Error("No node provided");
|
|
380
|
-
return
|
|
381
|
-
}, sr = /* @__PURE__ */
|
|
380
|
+
return le.call(t, De) === !1 ? !1 : tt(a, t);
|
|
381
|
+
}, sr = /* @__PURE__ */ Ht.concat("iframe").join(","), Qe = function(t, a) {
|
|
382
382
|
if (a = a || {}, !t)
|
|
383
383
|
throw new Error("No node provided");
|
|
384
|
-
return
|
|
384
|
+
return le.call(t, sr) === !1 ? !1 : Le(a, t);
|
|
385
385
|
};
|
|
386
386
|
/*!
|
|
387
|
-
* focus-trap 7.4.
|
|
387
|
+
* focus-trap 7.4.3
|
|
388
388
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
389
389
|
*/
|
|
390
|
-
function
|
|
390
|
+
function Bt(n, t) {
|
|
391
391
|
var a = Object.keys(n);
|
|
392
392
|
if (Object.getOwnPropertySymbols) {
|
|
393
393
|
var r = Object.getOwnPropertySymbols(n);
|
|
@@ -397,12 +397,12 @@ function Dt(n, t) {
|
|
|
397
397
|
}
|
|
398
398
|
return a;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Lt(n) {
|
|
401
401
|
for (var t = 1; t < arguments.length; t++) {
|
|
402
402
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
403
|
-
t % 2 ?
|
|
403
|
+
t % 2 ? Bt(Object(a), !0).forEach(function(r) {
|
|
404
404
|
cr(n, r, a[r]);
|
|
405
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) :
|
|
405
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) : Bt(Object(a)).forEach(function(r) {
|
|
406
406
|
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(a, r));
|
|
407
407
|
});
|
|
408
408
|
}
|
|
@@ -432,7 +432,7 @@ function ur(n) {
|
|
|
432
432
|
var t = lr(n, "string");
|
|
433
433
|
return typeof t == "symbol" ? t : String(t);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var Mt = {
|
|
436
436
|
activateTrap: function(t, a) {
|
|
437
437
|
if (t.length > 0) {
|
|
438
438
|
var r = t[t.length - 1];
|
|
@@ -449,27 +449,27 @@ var Lt = {
|
|
|
449
449
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
450
450
|
}, fr = function(t) {
|
|
451
451
|
return t.key === "Escape" || t.key === "Esc" || t.keyCode === 27;
|
|
452
|
-
},
|
|
452
|
+
}, we = function(t) {
|
|
453
453
|
return t.key === "Tab" || t.keyCode === 9;
|
|
454
454
|
}, vr = function(t) {
|
|
455
|
-
return
|
|
455
|
+
return we(t) && !t.shiftKey;
|
|
456
456
|
}, br = function(t) {
|
|
457
|
-
return
|
|
458
|
-
},
|
|
457
|
+
return we(t) && t.shiftKey;
|
|
458
|
+
}, Zt = function(t) {
|
|
459
459
|
return setTimeout(t, 0);
|
|
460
|
-
},
|
|
460
|
+
}, Pt = function(t, a) {
|
|
461
461
|
var r = -1;
|
|
462
|
-
return t.every(function(c,
|
|
463
|
-
return a(c) ? (r =
|
|
462
|
+
return t.every(function(c, d) {
|
|
463
|
+
return a(c) ? (r = d, !1) : !0;
|
|
464
464
|
}), r;
|
|
465
|
-
},
|
|
465
|
+
}, me = function(t) {
|
|
466
466
|
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), c = 1; c < a; c++)
|
|
467
467
|
r[c - 1] = arguments[c];
|
|
468
468
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
469
|
-
},
|
|
469
|
+
}, Ae = function(t) {
|
|
470
470
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
471
471
|
}, hr = [], pr = function(t, a) {
|
|
472
|
-
var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) || hr,
|
|
472
|
+
var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) || hr, d = Lt({
|
|
473
473
|
returnFocusOnDeactivate: !0,
|
|
474
474
|
escapeDeactivates: !0,
|
|
475
475
|
delayInitialFocus: !0,
|
|
@@ -506,58 +506,59 @@ var Lt = {
|
|
|
506
506
|
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
507
507
|
// has been delayed during activation
|
|
508
508
|
delayInitialFocusTimer: void 0
|
|
509
|
-
},
|
|
510
|
-
return l && l[
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
509
|
+
}, v, m = function(l, u, f) {
|
|
510
|
+
return l && l[u] !== void 0 ? l[u] : d[f || u];
|
|
511
|
+
}, y = function(l, u) {
|
|
512
|
+
var f = typeof (u == null ? void 0 : u.composedPath) == "function" ? u.composedPath() : void 0;
|
|
513
|
+
return o.containerGroups.findIndex(function(h) {
|
|
514
|
+
var T = h.container, E = h.tabbableNodes;
|
|
515
|
+
return T.contains(l) || // fall back to explicit tabbable search which will take into consideration any
|
|
515
516
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
516
517
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
517
518
|
// look inside web components even if open)
|
|
518
|
-
|
|
519
|
-
return
|
|
519
|
+
(f == null ? void 0 : f.includes(T)) || E.find(function(D) {
|
|
520
|
+
return D === l;
|
|
520
521
|
});
|
|
521
522
|
});
|
|
522
|
-
},
|
|
523
|
-
var
|
|
524
|
-
if (typeof
|
|
525
|
-
for (var
|
|
526
|
-
|
|
527
|
-
|
|
523
|
+
}, A = function(l) {
|
|
524
|
+
var u = d[l];
|
|
525
|
+
if (typeof u == "function") {
|
|
526
|
+
for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), T = 1; T < f; T++)
|
|
527
|
+
h[T - 1] = arguments[T];
|
|
528
|
+
u = u.apply(void 0, h);
|
|
528
529
|
}
|
|
529
|
-
if (
|
|
530
|
-
if (
|
|
531
|
-
return
|
|
530
|
+
if (u === !0 && (u = void 0), !u) {
|
|
531
|
+
if (u === void 0 || u === !1)
|
|
532
|
+
return u;
|
|
532
533
|
throw new Error("`".concat(l, "` was specified but was not a node, or did not return a node"));
|
|
533
534
|
}
|
|
534
|
-
var
|
|
535
|
-
if (typeof
|
|
535
|
+
var E = u;
|
|
536
|
+
if (typeof u == "string" && (E = r.querySelector(u), !E))
|
|
536
537
|
throw new Error("`".concat(l, "` as selector refers to no known node"));
|
|
537
|
-
return
|
|
538
|
-
},
|
|
539
|
-
var l =
|
|
538
|
+
return E;
|
|
539
|
+
}, x = function() {
|
|
540
|
+
var l = A("initialFocus");
|
|
540
541
|
if (l === !1)
|
|
541
542
|
return !1;
|
|
542
|
-
if (l === void 0)
|
|
543
|
-
if (
|
|
543
|
+
if (l === void 0 || !Qe(l, d.tabbableOptions))
|
|
544
|
+
if (y(r.activeElement) >= 0)
|
|
544
545
|
l = r.activeElement;
|
|
545
546
|
else {
|
|
546
|
-
var
|
|
547
|
-
l =
|
|
547
|
+
var u = o.tabbableGroups[0], f = u && u.firstTabbableNode;
|
|
548
|
+
l = f || A("fallbackFocus");
|
|
548
549
|
}
|
|
549
550
|
if (!l)
|
|
550
551
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
551
552
|
return l;
|
|
552
|
-
},
|
|
553
|
+
}, $ = function() {
|
|
553
554
|
if (o.containerGroups = o.containers.map(function(l) {
|
|
554
|
-
var
|
|
555
|
+
var u = ir(l, d.tabbableOptions), f = or(l, d.tabbableOptions);
|
|
555
556
|
return {
|
|
556
557
|
container: l,
|
|
557
|
-
tabbableNodes:
|
|
558
|
-
focusableNodes:
|
|
559
|
-
firstTabbableNode:
|
|
560
|
-
lastTabbableNode:
|
|
558
|
+
tabbableNodes: u,
|
|
559
|
+
focusableNodes: f,
|
|
560
|
+
firstTabbableNode: u.length > 0 ? u[0] : null,
|
|
561
|
+
lastTabbableNode: u.length > 0 ? u[u.length - 1] : null,
|
|
561
562
|
/**
|
|
562
563
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
563
564
|
* in this container, if any.
|
|
@@ -566,118 +567,133 @@ var Lt = {
|
|
|
566
567
|
* in reverse.
|
|
567
568
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
568
569
|
*/
|
|
569
|
-
nextTabbableNode: function(
|
|
570
|
-
var
|
|
571
|
-
return M ===
|
|
570
|
+
nextTabbableNode: function(T) {
|
|
571
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, D = f.findIndex(function(M) {
|
|
572
|
+
return M === T;
|
|
572
573
|
});
|
|
573
|
-
if (!(
|
|
574
|
-
return
|
|
575
|
-
return
|
|
576
|
-
}) :
|
|
577
|
-
return
|
|
574
|
+
if (!(D < 0))
|
|
575
|
+
return E ? f.slice(D + 1).find(function(M) {
|
|
576
|
+
return xe(M, d.tabbableOptions);
|
|
577
|
+
}) : f.slice(0, D).reverse().find(function(M) {
|
|
578
|
+
return xe(M, d.tabbableOptions);
|
|
578
579
|
});
|
|
579
580
|
}
|
|
580
581
|
};
|
|
581
582
|
}), o.tabbableGroups = o.containerGroups.filter(function(l) {
|
|
582
583
|
return l.tabbableNodes.length > 0;
|
|
583
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
584
|
+
}), o.tabbableGroups.length <= 0 && !A("fallbackFocus"))
|
|
584
585
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
585
|
-
},
|
|
586
|
+
}, S = function k(l) {
|
|
586
587
|
if (l !== !1 && l !== r.activeElement) {
|
|
587
588
|
if (!l || !l.focus) {
|
|
588
|
-
|
|
589
|
+
k(x());
|
|
589
590
|
return;
|
|
590
591
|
}
|
|
591
592
|
l.focus({
|
|
592
|
-
preventScroll: !!
|
|
593
|
+
preventScroll: !!d.preventScroll
|
|
593
594
|
}), o.mostRecentlyFocusedNode = l, dr(l) && l.select();
|
|
594
595
|
}
|
|
595
|
-
},
|
|
596
|
-
var
|
|
597
|
-
return
|
|
596
|
+
}, C = function(l) {
|
|
597
|
+
var u = A("setReturnFocus", l);
|
|
598
|
+
return u || (u === !1 ? !1 : l);
|
|
598
599
|
}, Z = function(l) {
|
|
599
|
-
var
|
|
600
|
-
if (!(
|
|
601
|
-
if (
|
|
602
|
-
|
|
600
|
+
var u = Ae(l);
|
|
601
|
+
if (!(y(u, l) >= 0)) {
|
|
602
|
+
if (me(d.clickOutsideDeactivates, l)) {
|
|
603
|
+
v.deactivate({
|
|
603
604
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
604
605
|
// which will result in the outside click setting focus to the node
|
|
605
606
|
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
606
607
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
607
608
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
608
609
|
// outside click was on a focusable node or not
|
|
609
|
-
returnFocus:
|
|
610
|
+
returnFocus: d.returnFocusOnDeactivate
|
|
610
611
|
});
|
|
611
612
|
return;
|
|
612
613
|
}
|
|
613
|
-
|
|
614
|
+
me(d.allowOutsideClick, l) || l.preventDefault();
|
|
614
615
|
}
|
|
615
|
-
},
|
|
616
|
-
var
|
|
617
|
-
|
|
616
|
+
}, V = function(l) {
|
|
617
|
+
var u = Ae(l), f = y(u, l) >= 0;
|
|
618
|
+
f || u instanceof Document ? f && (o.mostRecentlyFocusedNode = u) : (l.stopImmediatePropagation(), S(o.mostRecentlyFocusedNode || x()));
|
|
618
619
|
}, P = function(l) {
|
|
619
|
-
var
|
|
620
|
-
|
|
621
|
-
var
|
|
620
|
+
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = Ae(l);
|
|
621
|
+
$();
|
|
622
|
+
var h = null;
|
|
622
623
|
if (o.tabbableGroups.length > 0) {
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
625
|
-
|
|
626
|
-
else if (
|
|
627
|
-
var
|
|
628
|
-
var
|
|
629
|
-
return
|
|
624
|
+
var T = y(f, l), E = T >= 0 ? o.containerGroups[T] : void 0;
|
|
625
|
+
if (T < 0)
|
|
626
|
+
u ? h = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : h = o.tabbableGroups[0].firstTabbableNode;
|
|
627
|
+
else if (u) {
|
|
628
|
+
var D = Pt(o.tabbableGroups, function(be) {
|
|
629
|
+
var G = be.firstTabbableNode;
|
|
630
|
+
return f === G;
|
|
630
631
|
});
|
|
631
|
-
if (
|
|
632
|
-
var M =
|
|
633
|
-
|
|
632
|
+
if (D < 0 && (E.container === f || Qe(f, d.tabbableOptions) && !xe(f, d.tabbableOptions) && !E.nextTabbableNode(f, !1)) && (D = T), D >= 0) {
|
|
633
|
+
var M = D === 0 ? o.tabbableGroups.length - 1 : D - 1, Pe = o.tabbableGroups[M];
|
|
634
|
+
h = Pe.lastTabbableNode;
|
|
634
635
|
} else
|
|
635
|
-
|
|
636
|
+
we(l) || (h = E.nextTabbableNode(f, !1));
|
|
636
637
|
} else {
|
|
637
|
-
var
|
|
638
|
-
var
|
|
639
|
-
return
|
|
638
|
+
var ie = Pt(o.tabbableGroups, function(be) {
|
|
639
|
+
var G = be.lastTabbableNode;
|
|
640
|
+
return f === G;
|
|
640
641
|
});
|
|
641
|
-
if (
|
|
642
|
-
var
|
|
643
|
-
|
|
642
|
+
if (ie < 0 && (E.container === f || Qe(f, d.tabbableOptions) && !xe(f, d.tabbableOptions) && !E.nextTabbableNode(f)) && (ie = T), ie >= 0) {
|
|
643
|
+
var O = ie === o.tabbableGroups.length - 1 ? 0 : ie + 1, je = o.tabbableGroups[O];
|
|
644
|
+
h = je.firstTabbableNode;
|
|
644
645
|
} else
|
|
645
|
-
|
|
646
|
+
we(l) || (h = E.nextTabbableNode(f));
|
|
646
647
|
}
|
|
647
648
|
} else
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
if (fr(l) &&
|
|
652
|
-
l.preventDefault(),
|
|
649
|
+
h = A("fallbackFocus");
|
|
650
|
+
h && (we(l) && l.preventDefault(), S(h));
|
|
651
|
+
}, X = function(l) {
|
|
652
|
+
if (fr(l) && me(d.escapeDeactivates, l) !== !1) {
|
|
653
|
+
l.preventDefault(), v.deactivate();
|
|
653
654
|
return;
|
|
654
655
|
}
|
|
655
|
-
(
|
|
656
|
-
},
|
|
657
|
-
var
|
|
658
|
-
|
|
659
|
-
},
|
|
656
|
+
(d.isKeyForward(l) || d.isKeyBackward(l)) && P(l, d.isKeyBackward(l));
|
|
657
|
+
}, W = function(l) {
|
|
658
|
+
var u = Ae(l);
|
|
659
|
+
y(u, l) >= 0 || me(d.clickOutsideDeactivates, l) || me(d.allowOutsideClick, l) || (l.preventDefault(), l.stopImmediatePropagation());
|
|
660
|
+
}, w = function() {
|
|
660
661
|
if (o.active)
|
|
661
|
-
return
|
|
662
|
-
|
|
663
|
-
}) :
|
|
662
|
+
return Mt.activateTrap(c, v), o.delayInitialFocusTimer = d.delayInitialFocus ? Zt(function() {
|
|
663
|
+
S(x());
|
|
664
|
+
}) : S(x()), r.addEventListener("focusin", V, !0), r.addEventListener("mousedown", Z, {
|
|
664
665
|
capture: !0,
|
|
665
666
|
passive: !1
|
|
666
667
|
}), r.addEventListener("touchstart", Z, {
|
|
667
668
|
capture: !0,
|
|
668
669
|
passive: !1
|
|
669
|
-
}), r.addEventListener("click",
|
|
670
|
+
}), r.addEventListener("click", W, {
|
|
670
671
|
capture: !0,
|
|
671
672
|
passive: !1
|
|
672
|
-
}), r.addEventListener("keydown",
|
|
673
|
+
}), r.addEventListener("keydown", X, {
|
|
673
674
|
capture: !0,
|
|
674
675
|
passive: !1
|
|
675
|
-
}),
|
|
676
|
-
},
|
|
676
|
+
}), v;
|
|
677
|
+
}, B = function() {
|
|
677
678
|
if (o.active)
|
|
678
|
-
return r.removeEventListener("focusin",
|
|
679
|
+
return r.removeEventListener("focusin", V, !0), r.removeEventListener("mousedown", Z, !0), r.removeEventListener("touchstart", Z, !0), r.removeEventListener("click", W, !0), r.removeEventListener("keydown", X, !0), v;
|
|
680
|
+
}, q = function(l) {
|
|
681
|
+
var u = l.some(function(f) {
|
|
682
|
+
var h = Array.from(f.removedNodes);
|
|
683
|
+
return h.some(function(T) {
|
|
684
|
+
return T === o.mostRecentlyFocusedNode;
|
|
685
|
+
});
|
|
686
|
+
});
|
|
687
|
+
u && S(x());
|
|
688
|
+
}, J = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(q) : void 0, H = function() {
|
|
689
|
+
J && (J.disconnect(), o.active && !o.paused && o.containers.map(function(l) {
|
|
690
|
+
J.observe(l, {
|
|
691
|
+
subtree: !0,
|
|
692
|
+
childList: !0
|
|
693
|
+
});
|
|
694
|
+
}));
|
|
679
695
|
};
|
|
680
|
-
return
|
|
696
|
+
return v = {
|
|
681
697
|
get active() {
|
|
682
698
|
return o.active;
|
|
683
699
|
},
|
|
@@ -687,50 +703,50 @@ var Lt = {
|
|
|
687
703
|
activate: function(l) {
|
|
688
704
|
if (o.active)
|
|
689
705
|
return this;
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
var
|
|
693
|
-
|
|
706
|
+
var u = m(l, "onActivate"), f = m(l, "onPostActivate"), h = m(l, "checkCanFocusTrap");
|
|
707
|
+
h || $(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, u == null || u();
|
|
708
|
+
var T = function() {
|
|
709
|
+
h && $(), w(), H(), f == null || f();
|
|
694
710
|
};
|
|
695
|
-
return
|
|
711
|
+
return h ? (h(o.containers.concat()).then(T, T), this) : (T(), this);
|
|
696
712
|
},
|
|
697
713
|
deactivate: function(l) {
|
|
698
714
|
if (!o.active)
|
|
699
715
|
return this;
|
|
700
|
-
var
|
|
701
|
-
onDeactivate:
|
|
702
|
-
onPostDeactivate:
|
|
703
|
-
checkCanReturnFocus:
|
|
716
|
+
var u = Lt({
|
|
717
|
+
onDeactivate: d.onDeactivate,
|
|
718
|
+
onPostDeactivate: d.onPostDeactivate,
|
|
719
|
+
checkCanReturnFocus: d.checkCanReturnFocus
|
|
704
720
|
}, l);
|
|
705
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
706
|
-
var
|
|
707
|
-
|
|
708
|
-
var
|
|
709
|
-
|
|
710
|
-
|
|
721
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, B(), o.active = !1, o.paused = !1, H(), Mt.deactivateTrap(c, v);
|
|
722
|
+
var f = m(u, "onDeactivate"), h = m(u, "onPostDeactivate"), T = m(u, "checkCanReturnFocus"), E = m(u, "returnFocus", "returnFocusOnDeactivate");
|
|
723
|
+
f == null || f();
|
|
724
|
+
var D = function() {
|
|
725
|
+
Zt(function() {
|
|
726
|
+
E && S(C(o.nodeFocusedBeforeActivation)), h == null || h();
|
|
711
727
|
});
|
|
712
728
|
};
|
|
713
|
-
return
|
|
729
|
+
return E && T ? (T(C(o.nodeFocusedBeforeActivation)).then(D, D), this) : (D(), this);
|
|
714
730
|
},
|
|
715
731
|
pause: function(l) {
|
|
716
732
|
if (o.paused || !o.active)
|
|
717
733
|
return this;
|
|
718
|
-
var
|
|
719
|
-
return o.paused = !0,
|
|
734
|
+
var u = m(l, "onPause"), f = m(l, "onPostPause");
|
|
735
|
+
return o.paused = !0, u == null || u(), B(), H(), f == null || f(), this;
|
|
720
736
|
},
|
|
721
737
|
unpause: function(l) {
|
|
722
738
|
if (!o.paused || !o.active)
|
|
723
739
|
return this;
|
|
724
|
-
var
|
|
725
|
-
return o.paused = !1,
|
|
740
|
+
var u = m(l, "onUnpause"), f = m(l, "onPostUnpause");
|
|
741
|
+
return o.paused = !1, u == null || u(), $(), w(), H(), f == null || f(), this;
|
|
726
742
|
},
|
|
727
743
|
updateContainerElements: function(l) {
|
|
728
|
-
var
|
|
729
|
-
return o.containers =
|
|
730
|
-
return typeof
|
|
731
|
-
}), o.active &&
|
|
744
|
+
var u = [].concat(l).filter(Boolean);
|
|
745
|
+
return o.containers = u.map(function(f) {
|
|
746
|
+
return typeof f == "string" ? r.querySelector(f) : f;
|
|
747
|
+
}), o.active && $(), H(), this;
|
|
732
748
|
}
|
|
733
|
-
},
|
|
749
|
+
}, v.updateContainerElements(t), v;
|
|
734
750
|
};
|
|
735
751
|
/*!
|
|
736
752
|
* focus-trap-vue v4.0.1
|
|
@@ -763,7 +779,7 @@ const mr = {
|
|
|
763
779
|
preventScroll: Boolean,
|
|
764
780
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
765
781
|
tabbableOptions: Object
|
|
766
|
-
}, gr =
|
|
782
|
+
}, gr = ae({
|
|
767
783
|
props: Object.assign({
|
|
768
784
|
active: {
|
|
769
785
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
@@ -783,12 +799,12 @@ const mr = {
|
|
|
783
799
|
},
|
|
784
800
|
setup(n, { slots: t, emit: a }) {
|
|
785
801
|
let r;
|
|
786
|
-
const c =
|
|
787
|
-
const
|
|
788
|
-
return
|
|
802
|
+
const c = U(null), d = _(() => {
|
|
803
|
+
const v = c.value;
|
|
804
|
+
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
789
805
|
});
|
|
790
806
|
function o() {
|
|
791
|
-
return r || (r = pr(
|
|
807
|
+
return r || (r = pr(d.value, {
|
|
792
808
|
escapeDeactivates: n.escapeDeactivates,
|
|
793
809
|
allowOutsideClick: n.allowOutsideClick,
|
|
794
810
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -807,9 +823,9 @@ const mr = {
|
|
|
807
823
|
delayInitialFocus: n.delayInitialFocus
|
|
808
824
|
}));
|
|
809
825
|
}
|
|
810
|
-
return
|
|
811
|
-
|
|
812
|
-
|
|
826
|
+
return Ze(() => {
|
|
827
|
+
$e(() => n.active, (v) => {
|
|
828
|
+
v && d.value ? o().activate() : r && (r.deactivate(), (!d.value || d.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
813
829
|
}, { immediate: !0, flush: "post" });
|
|
814
830
|
}), mn(() => {
|
|
815
831
|
r && r.deactivate(), r = null;
|
|
@@ -823,13 +839,13 @@ const mr = {
|
|
|
823
839
|
renderImpl() {
|
|
824
840
|
if (!t.default)
|
|
825
841
|
return null;
|
|
826
|
-
const
|
|
827
|
-
return !
|
|
842
|
+
const v = t.default().filter((y) => y.type !== gn);
|
|
843
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : yn(v[0], { ref: c });
|
|
828
844
|
}
|
|
829
845
|
};
|
|
830
846
|
}
|
|
831
847
|
});
|
|
832
|
-
function
|
|
848
|
+
function Ut() {
|
|
833
849
|
return {
|
|
834
850
|
debounce: (t, a) => {
|
|
835
851
|
let r;
|
|
@@ -841,16 +857,16 @@ function Wt() {
|
|
|
841
857
|
}
|
|
842
858
|
};
|
|
843
859
|
}
|
|
844
|
-
var
|
|
860
|
+
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
845
861
|
function yr(n) {
|
|
846
862
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
847
863
|
}
|
|
848
|
-
var
|
|
849
|
-
|
|
864
|
+
var Me = { exports: {} };
|
|
865
|
+
Me.exports;
|
|
850
866
|
(function(n, t) {
|
|
851
|
-
var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991,
|
|
852
|
-
|
|
853
|
-
var
|
|
867
|
+
var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", m = "[object Date]", y = "[object Error]", A = "[object Function]", x = "[object GeneratorFunction]", $ = "[object Map]", S = "[object Number]", C = "[object Object]", Z = "[object Promise]", V = "[object RegExp]", P = "[object Set]", X = "[object String]", W = "[object Symbol]", w = "[object WeakMap]", B = "[object ArrayBuffer]", q = "[object DataView]", J = "[object Float32Array]", H = "[object Float64Array]", k = "[object Int8Array]", l = "[object Int16Array]", u = "[object Int32Array]", f = "[object Uint8Array]", h = "[object Uint8ClampedArray]", T = "[object Uint16Array]", E = "[object Uint32Array]", D = /[\\^$.*+?()[\]{}|]/g, M = /\w*$/, Pe = /^\[object .+?Constructor\]$/, ie = /^(?:0|[1-9]\d*)$/, O = {};
|
|
868
|
+
O[d] = O[o] = O[B] = O[q] = O[v] = O[m] = O[J] = O[H] = O[k] = O[l] = O[u] = O[$] = O[S] = O[C] = O[V] = O[P] = O[X] = O[W] = O[f] = O[h] = O[T] = O[E] = !0, O[y] = O[A] = O[w] = !1;
|
|
869
|
+
var je = typeof Ee == "object" && Ee && Ee.Object === Object && Ee, be = typeof self == "object" && self && self.Object === Object && self, G = je || be || Function("return this")(), ct = t && !t.nodeType && t, lt = ct && !0 && n && !n.nodeType && n, Yt = lt && lt.exports === ct;
|
|
854
870
|
function Xt(e, i) {
|
|
855
871
|
return e.set(i[0], i[1]), e;
|
|
856
872
|
}
|
|
@@ -858,30 +874,30 @@ Re.exports;
|
|
|
858
874
|
return e.add(i), e;
|
|
859
875
|
}
|
|
860
876
|
function Qt(e, i) {
|
|
861
|
-
for (var s = -1,
|
|
877
|
+
for (var s = -1, b = e ? e.length : 0; ++s < b && i(e[s], s, e) !== !1; )
|
|
862
878
|
;
|
|
863
879
|
return e;
|
|
864
880
|
}
|
|
865
881
|
function ea(e, i) {
|
|
866
|
-
for (var s = -1,
|
|
867
|
-
e[
|
|
882
|
+
for (var s = -1, b = i.length, R = e.length; ++s < b; )
|
|
883
|
+
e[R + s] = i[s];
|
|
868
884
|
return e;
|
|
869
885
|
}
|
|
870
|
-
function
|
|
871
|
-
var
|
|
872
|
-
for (
|
|
873
|
-
s = i(s, e[
|
|
886
|
+
function ut(e, i, s, b) {
|
|
887
|
+
var R = -1, j = e ? e.length : 0;
|
|
888
|
+
for (b && j && (s = e[++R]); ++R < j; )
|
|
889
|
+
s = i(s, e[R], R, e);
|
|
874
890
|
return s;
|
|
875
891
|
}
|
|
876
892
|
function ta(e, i) {
|
|
877
|
-
for (var s = -1,
|
|
878
|
-
|
|
879
|
-
return
|
|
893
|
+
for (var s = -1, b = Array(e); ++s < e; )
|
|
894
|
+
b[s] = i(s);
|
|
895
|
+
return b;
|
|
880
896
|
}
|
|
881
897
|
function aa(e, i) {
|
|
882
898
|
return e == null ? void 0 : e[i];
|
|
883
899
|
}
|
|
884
|
-
function
|
|
900
|
+
function dt(e) {
|
|
885
901
|
var i = !1;
|
|
886
902
|
if (e != null && typeof e.toString != "function")
|
|
887
903
|
try {
|
|
@@ -890,120 +906,120 @@ Re.exports;
|
|
|
890
906
|
}
|
|
891
907
|
return i;
|
|
892
908
|
}
|
|
893
|
-
function
|
|
909
|
+
function ft(e) {
|
|
894
910
|
var i = -1, s = Array(e.size);
|
|
895
|
-
return e.forEach(function(
|
|
896
|
-
s[++i] = [
|
|
911
|
+
return e.forEach(function(b, R) {
|
|
912
|
+
s[++i] = [R, b];
|
|
897
913
|
}), s;
|
|
898
914
|
}
|
|
899
|
-
function
|
|
915
|
+
function He(e, i) {
|
|
900
916
|
return function(s) {
|
|
901
917
|
return e(i(s));
|
|
902
918
|
};
|
|
903
919
|
}
|
|
904
|
-
function
|
|
920
|
+
function vt(e) {
|
|
905
921
|
var i = -1, s = Array(e.size);
|
|
906
|
-
return e.forEach(function(
|
|
907
|
-
s[++i] =
|
|
922
|
+
return e.forEach(function(b) {
|
|
923
|
+
s[++i] = b;
|
|
908
924
|
}), s;
|
|
909
925
|
}
|
|
910
|
-
var na = Array.prototype, ra = Function.prototype,
|
|
911
|
-
var e = /[^.]+$/.exec(
|
|
926
|
+
var na = Array.prototype, ra = Function.prototype, Te = Object.prototype, Ke = G["__core-js_shared__"], bt = function() {
|
|
927
|
+
var e = /[^.]+$/.exec(Ke && Ke.keys && Ke.keys.IE_PROTO || "");
|
|
912
928
|
return e ? "Symbol(src)_1." + e : "";
|
|
913
|
-
}(),
|
|
914
|
-
"^" +
|
|
915
|
-
),
|
|
916
|
-
function
|
|
929
|
+
}(), ht = ra.toString, re = Te.hasOwnProperty, Se = Te.toString, ia = RegExp(
|
|
930
|
+
"^" + ht.call(re).replace(D, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
931
|
+
), pt = Yt ? G.Buffer : void 0, mt = G.Symbol, gt = G.Uint8Array, oa = He(Object.getPrototypeOf, Object), sa = Object.create, ca = Te.propertyIsEnumerable, la = na.splice, yt = Object.getOwnPropertySymbols, ua = pt ? pt.isBuffer : void 0, da = He(Object.keys, Object), ze = fe(G, "DataView"), he = fe(G, "Map"), Ve = fe(G, "Promise"), We = fe(G, "Set"), Ge = fe(G, "WeakMap"), pe = fe(Object, "create"), fa = ce(ze), va = ce(he), ba = ce(Ve), ha = ce(We), pa = ce(Ge), _t = mt ? mt.prototype : void 0, wt = _t ? _t.valueOf : void 0;
|
|
932
|
+
function oe(e) {
|
|
917
933
|
var i = -1, s = e ? e.length : 0;
|
|
918
934
|
for (this.clear(); ++i < s; ) {
|
|
919
|
-
var
|
|
920
|
-
this.set(
|
|
935
|
+
var b = e[i];
|
|
936
|
+
this.set(b[0], b[1]);
|
|
921
937
|
}
|
|
922
938
|
}
|
|
923
939
|
function ma() {
|
|
924
|
-
this.__data__ =
|
|
940
|
+
this.__data__ = pe ? pe(null) : {};
|
|
925
941
|
}
|
|
926
942
|
function ga(e) {
|
|
927
943
|
return this.has(e) && delete this.__data__[e];
|
|
928
944
|
}
|
|
929
945
|
function ya(e) {
|
|
930
946
|
var i = this.__data__;
|
|
931
|
-
if (
|
|
947
|
+
if (pe) {
|
|
932
948
|
var s = i[e];
|
|
933
949
|
return s === r ? void 0 : s;
|
|
934
950
|
}
|
|
935
|
-
return
|
|
951
|
+
return re.call(i, e) ? i[e] : void 0;
|
|
936
952
|
}
|
|
937
953
|
function _a(e) {
|
|
938
954
|
var i = this.__data__;
|
|
939
|
-
return
|
|
955
|
+
return pe ? i[e] !== void 0 : re.call(i, e);
|
|
940
956
|
}
|
|
941
957
|
function wa(e, i) {
|
|
942
958
|
var s = this.__data__;
|
|
943
|
-
return s[e] =
|
|
959
|
+
return s[e] = pe && i === void 0 ? r : i, this;
|
|
944
960
|
}
|
|
945
|
-
|
|
946
|
-
function
|
|
961
|
+
oe.prototype.clear = ma, oe.prototype.delete = ga, oe.prototype.get = ya, oe.prototype.has = _a, oe.prototype.set = wa;
|
|
962
|
+
function ee(e) {
|
|
947
963
|
var i = -1, s = e ? e.length : 0;
|
|
948
964
|
for (this.clear(); ++i < s; ) {
|
|
949
|
-
var
|
|
950
|
-
this.set(
|
|
965
|
+
var b = e[i];
|
|
966
|
+
this.set(b[0], b[1]);
|
|
951
967
|
}
|
|
952
968
|
}
|
|
953
969
|
function Ta() {
|
|
954
970
|
this.__data__ = [];
|
|
955
971
|
}
|
|
956
972
|
function Sa(e) {
|
|
957
|
-
var i = this.__data__, s =
|
|
973
|
+
var i = this.__data__, s = ke(i, e);
|
|
958
974
|
if (s < 0)
|
|
959
975
|
return !1;
|
|
960
|
-
var
|
|
961
|
-
return s ==
|
|
976
|
+
var b = i.length - 1;
|
|
977
|
+
return s == b ? i.pop() : la.call(i, s, 1), !0;
|
|
962
978
|
}
|
|
963
979
|
function ka(e) {
|
|
964
|
-
var i = this.__data__, s =
|
|
980
|
+
var i = this.__data__, s = ke(i, e);
|
|
965
981
|
return s < 0 ? void 0 : i[s][1];
|
|
966
982
|
}
|
|
967
983
|
function Ia(e) {
|
|
968
|
-
return
|
|
984
|
+
return ke(this.__data__, e) > -1;
|
|
969
985
|
}
|
|
970
986
|
function Ca(e, i) {
|
|
971
|
-
var s = this.__data__,
|
|
972
|
-
return
|
|
987
|
+
var s = this.__data__, b = ke(s, e);
|
|
988
|
+
return b < 0 ? s.push([e, i]) : s[b][1] = i, this;
|
|
973
989
|
}
|
|
974
|
-
|
|
975
|
-
function
|
|
990
|
+
ee.prototype.clear = Ta, ee.prototype.delete = Sa, ee.prototype.get = ka, ee.prototype.has = Ia, ee.prototype.set = Ca;
|
|
991
|
+
function ue(e) {
|
|
976
992
|
var i = -1, s = e ? e.length : 0;
|
|
977
993
|
for (this.clear(); ++i < s; ) {
|
|
978
|
-
var
|
|
979
|
-
this.set(
|
|
994
|
+
var b = e[i];
|
|
995
|
+
this.set(b[0], b[1]);
|
|
980
996
|
}
|
|
981
997
|
}
|
|
982
998
|
function Oa() {
|
|
983
999
|
this.__data__ = {
|
|
984
|
-
hash: new
|
|
985
|
-
map: new (
|
|
986
|
-
string: new
|
|
1000
|
+
hash: new oe(),
|
|
1001
|
+
map: new (he || ee)(),
|
|
1002
|
+
string: new oe()
|
|
987
1003
|
};
|
|
988
1004
|
}
|
|
989
1005
|
function xa(e) {
|
|
990
|
-
return
|
|
1006
|
+
return Ie(this, e).delete(e);
|
|
991
1007
|
}
|
|
992
1008
|
function Aa(e) {
|
|
993
|
-
return
|
|
1009
|
+
return Ie(this, e).get(e);
|
|
994
1010
|
}
|
|
995
1011
|
function Ea(e) {
|
|
996
|
-
return
|
|
1012
|
+
return Ie(this, e).has(e);
|
|
997
1013
|
}
|
|
998
|
-
function
|
|
999
|
-
return
|
|
1014
|
+
function Na(e, i) {
|
|
1015
|
+
return Ie(this, e).set(e, i), this;
|
|
1000
1016
|
}
|
|
1001
|
-
|
|
1002
|
-
function
|
|
1003
|
-
this.__data__ = new
|
|
1017
|
+
ue.prototype.clear = Oa, ue.prototype.delete = xa, ue.prototype.get = Aa, ue.prototype.has = Ea, ue.prototype.set = Na;
|
|
1018
|
+
function de(e) {
|
|
1019
|
+
this.__data__ = new ee(e);
|
|
1004
1020
|
}
|
|
1005
|
-
function
|
|
1006
|
-
this.__data__ = new
|
|
1021
|
+
function Fa() {
|
|
1022
|
+
this.__data__ = new ee();
|
|
1007
1023
|
}
|
|
1008
1024
|
function $a(e) {
|
|
1009
1025
|
return this.__data__.delete(e);
|
|
@@ -1011,96 +1027,96 @@ Re.exports;
|
|
|
1011
1027
|
function Da(e) {
|
|
1012
1028
|
return this.__data__.get(e);
|
|
1013
1029
|
}
|
|
1014
|
-
function
|
|
1030
|
+
function Ra(e) {
|
|
1015
1031
|
return this.__data__.has(e);
|
|
1016
1032
|
}
|
|
1017
|
-
function
|
|
1033
|
+
function Ba(e, i) {
|
|
1018
1034
|
var s = this.__data__;
|
|
1019
|
-
if (s instanceof
|
|
1020
|
-
var
|
|
1021
|
-
if (!
|
|
1022
|
-
return
|
|
1023
|
-
s = this.__data__ = new
|
|
1035
|
+
if (s instanceof ee) {
|
|
1036
|
+
var b = s.__data__;
|
|
1037
|
+
if (!he || b.length < a - 1)
|
|
1038
|
+
return b.push([e, i]), this;
|
|
1039
|
+
s = this.__data__ = new ue(b);
|
|
1024
1040
|
}
|
|
1025
1041
|
return s.set(e, i), this;
|
|
1026
1042
|
}
|
|
1027
|
-
|
|
1028
|
-
function
|
|
1029
|
-
var s =
|
|
1043
|
+
de.prototype.clear = Fa, de.prototype.delete = $a, de.prototype.get = Da, de.prototype.has = Ra, de.prototype.set = Ba;
|
|
1044
|
+
function La(e, i) {
|
|
1045
|
+
var s = Ye(e) || cn(e) ? ta(e.length, String) : [], b = s.length, R = !!b;
|
|
1030
1046
|
for (var j in e)
|
|
1031
|
-
(i ||
|
|
1047
|
+
(i || re.call(e, j)) && !(R && (j == "length" || nn(j, b))) && s.push(j);
|
|
1032
1048
|
return s;
|
|
1033
1049
|
}
|
|
1034
|
-
function
|
|
1035
|
-
var
|
|
1036
|
-
(!(
|
|
1050
|
+
function Tt(e, i, s) {
|
|
1051
|
+
var b = e[i];
|
|
1052
|
+
(!(re.call(e, i) && Ct(b, s)) || s === void 0 && !(i in e)) && (e[i] = s);
|
|
1037
1053
|
}
|
|
1038
|
-
function
|
|
1054
|
+
function ke(e, i) {
|
|
1039
1055
|
for (var s = e.length; s--; )
|
|
1040
|
-
if (
|
|
1056
|
+
if (Ct(e[s][0], i))
|
|
1041
1057
|
return s;
|
|
1042
1058
|
return -1;
|
|
1043
1059
|
}
|
|
1044
1060
|
function Ma(e, i) {
|
|
1045
|
-
return e &&
|
|
1061
|
+
return e && St(i, Xe(i), e);
|
|
1046
1062
|
}
|
|
1047
|
-
function
|
|
1048
|
-
var
|
|
1049
|
-
if (
|
|
1050
|
-
return
|
|
1051
|
-
if (!
|
|
1063
|
+
function Ue(e, i, s, b, R, j, Y) {
|
|
1064
|
+
var K;
|
|
1065
|
+
if (b && (K = j ? b(e, R, j, Y) : b(e)), K !== void 0)
|
|
1066
|
+
return K;
|
|
1067
|
+
if (!Ce(e))
|
|
1052
1068
|
return e;
|
|
1053
|
-
var
|
|
1054
|
-
if (
|
|
1055
|
-
if (
|
|
1056
|
-
return Xa(e,
|
|
1069
|
+
var At = Ye(e);
|
|
1070
|
+
if (At) {
|
|
1071
|
+
if (K = en(e), !i)
|
|
1072
|
+
return Xa(e, K);
|
|
1057
1073
|
} else {
|
|
1058
|
-
var
|
|
1074
|
+
var ve = se(e), Et = ve == A || ve == x;
|
|
1059
1075
|
if (un(e))
|
|
1060
1076
|
return za(e, i);
|
|
1061
|
-
if (
|
|
1062
|
-
if (
|
|
1077
|
+
if (ve == C || ve == d || Et && !j) {
|
|
1078
|
+
if (dt(e))
|
|
1063
1079
|
return j ? e : {};
|
|
1064
|
-
if (
|
|
1065
|
-
return Ja(e, Ma(
|
|
1080
|
+
if (K = tn(Et ? {} : e), !i)
|
|
1081
|
+
return Ja(e, Ma(K, e));
|
|
1066
1082
|
} else {
|
|
1067
|
-
if (!
|
|
1083
|
+
if (!O[ve])
|
|
1068
1084
|
return j ? e : {};
|
|
1069
|
-
|
|
1085
|
+
K = an(e, ve, Ue, i);
|
|
1070
1086
|
}
|
|
1071
1087
|
}
|
|
1072
|
-
|
|
1073
|
-
var
|
|
1074
|
-
if (
|
|
1075
|
-
return
|
|
1076
|
-
if (
|
|
1077
|
-
var
|
|
1078
|
-
return Qt(
|
|
1079
|
-
|
|
1080
|
-
}),
|
|
1088
|
+
Y || (Y = new de());
|
|
1089
|
+
var Nt = Y.get(e);
|
|
1090
|
+
if (Nt)
|
|
1091
|
+
return Nt;
|
|
1092
|
+
if (Y.set(e, K), !At)
|
|
1093
|
+
var Ft = s ? Qa(e) : Xe(e);
|
|
1094
|
+
return Qt(Ft || e, function(Je, Oe) {
|
|
1095
|
+
Ft && (Oe = Je, Je = e[Oe]), Tt(K, Oe, Ue(Je, i, s, b, Oe, e, Y));
|
|
1096
|
+
}), K;
|
|
1081
1097
|
}
|
|
1082
1098
|
function Za(e) {
|
|
1083
|
-
return
|
|
1099
|
+
return Ce(e) ? sa(e) : {};
|
|
1084
1100
|
}
|
|
1085
1101
|
function Pa(e, i, s) {
|
|
1086
|
-
var
|
|
1087
|
-
return
|
|
1102
|
+
var b = i(e);
|
|
1103
|
+
return Ye(e) ? b : ea(b, s(e));
|
|
1088
1104
|
}
|
|
1089
1105
|
function ja(e) {
|
|
1090
|
-
return
|
|
1106
|
+
return Se.call(e);
|
|
1091
1107
|
}
|
|
1092
1108
|
function Ha(e) {
|
|
1093
|
-
if (!
|
|
1109
|
+
if (!Ce(e) || on(e))
|
|
1094
1110
|
return !1;
|
|
1095
|
-
var i =
|
|
1096
|
-
return i.test(
|
|
1111
|
+
var i = xt(e) || dt(e) ? ia : Pe;
|
|
1112
|
+
return i.test(ce(e));
|
|
1097
1113
|
}
|
|
1098
1114
|
function Ka(e) {
|
|
1099
|
-
if (!
|
|
1115
|
+
if (!It(e))
|
|
1100
1116
|
return da(e);
|
|
1101
1117
|
var i = [];
|
|
1102
1118
|
for (var s in Object(e))
|
|
1103
|
-
|
|
1119
|
+
re.call(e, s) && s != "constructor" && i.push(s);
|
|
1104
1120
|
return i;
|
|
1105
1121
|
}
|
|
1106
1122
|
function za(e, i) {
|
|
@@ -1109,137 +1125,137 @@ Re.exports;
|
|
|
1109
1125
|
var s = new e.constructor(e.length);
|
|
1110
1126
|
return e.copy(s), s;
|
|
1111
1127
|
}
|
|
1112
|
-
function
|
|
1128
|
+
function qe(e) {
|
|
1113
1129
|
var i = new e.constructor(e.byteLength);
|
|
1114
|
-
return new
|
|
1130
|
+
return new gt(i).set(new gt(e)), i;
|
|
1115
1131
|
}
|
|
1116
1132
|
function Va(e, i) {
|
|
1117
|
-
var s = i ?
|
|
1133
|
+
var s = i ? qe(e.buffer) : e.buffer;
|
|
1118
1134
|
return new e.constructor(s, e.byteOffset, e.byteLength);
|
|
1119
1135
|
}
|
|
1120
1136
|
function Wa(e, i, s) {
|
|
1121
|
-
var
|
|
1122
|
-
return
|
|
1137
|
+
var b = i ? s(ft(e), !0) : ft(e);
|
|
1138
|
+
return ut(b, Xt, new e.constructor());
|
|
1123
1139
|
}
|
|
1124
1140
|
function Ga(e) {
|
|
1125
|
-
var i = new e.constructor(e.source,
|
|
1141
|
+
var i = new e.constructor(e.source, M.exec(e));
|
|
1126
1142
|
return i.lastIndex = e.lastIndex, i;
|
|
1127
1143
|
}
|
|
1128
1144
|
function Ua(e, i, s) {
|
|
1129
|
-
var
|
|
1130
|
-
return
|
|
1145
|
+
var b = i ? s(vt(e), !0) : vt(e);
|
|
1146
|
+
return ut(b, Jt, new e.constructor());
|
|
1131
1147
|
}
|
|
1132
1148
|
function qa(e) {
|
|
1133
|
-
return
|
|
1149
|
+
return wt ? Object(wt.call(e)) : {};
|
|
1134
1150
|
}
|
|
1135
1151
|
function Ya(e, i) {
|
|
1136
|
-
var s = i ?
|
|
1152
|
+
var s = i ? qe(e.buffer) : e.buffer;
|
|
1137
1153
|
return new e.constructor(s, e.byteOffset, e.length);
|
|
1138
1154
|
}
|
|
1139
1155
|
function Xa(e, i) {
|
|
1140
|
-
var s = -1,
|
|
1141
|
-
for (i || (i = Array(
|
|
1156
|
+
var s = -1, b = e.length;
|
|
1157
|
+
for (i || (i = Array(b)); ++s < b; )
|
|
1142
1158
|
i[s] = e[s];
|
|
1143
1159
|
return i;
|
|
1144
1160
|
}
|
|
1145
|
-
function
|
|
1161
|
+
function St(e, i, s, b) {
|
|
1146
1162
|
s || (s = {});
|
|
1147
|
-
for (var
|
|
1148
|
-
var
|
|
1149
|
-
|
|
1163
|
+
for (var R = -1, j = i.length; ++R < j; ) {
|
|
1164
|
+
var Y = i[R], K = b ? b(s[Y], e[Y], Y, s, e) : void 0;
|
|
1165
|
+
Tt(s, Y, K === void 0 ? e[Y] : K);
|
|
1150
1166
|
}
|
|
1151
1167
|
return s;
|
|
1152
1168
|
}
|
|
1153
1169
|
function Ja(e, i) {
|
|
1154
|
-
return
|
|
1170
|
+
return St(e, kt(e), i);
|
|
1155
1171
|
}
|
|
1156
1172
|
function Qa(e) {
|
|
1157
|
-
return Pa(e,
|
|
1173
|
+
return Pa(e, Xe, kt);
|
|
1158
1174
|
}
|
|
1159
|
-
function
|
|
1175
|
+
function Ie(e, i) {
|
|
1160
1176
|
var s = e.__data__;
|
|
1161
1177
|
return rn(i) ? s[typeof i == "string" ? "string" : "hash"] : s.map;
|
|
1162
1178
|
}
|
|
1163
|
-
function
|
|
1179
|
+
function fe(e, i) {
|
|
1164
1180
|
var s = aa(e, i);
|
|
1165
1181
|
return Ha(s) ? s : void 0;
|
|
1166
1182
|
}
|
|
1167
|
-
var
|
|
1168
|
-
(
|
|
1169
|
-
var i =
|
|
1170
|
-
if (
|
|
1171
|
-
switch (
|
|
1183
|
+
var kt = yt ? He(yt, Object) : vn, se = ja;
|
|
1184
|
+
(ze && se(new ze(new ArrayBuffer(1))) != q || he && se(new he()) != $ || Ve && se(Ve.resolve()) != Z || We && se(new We()) != P || Ge && se(new Ge()) != w) && (se = function(e) {
|
|
1185
|
+
var i = Se.call(e), s = i == C ? e.constructor : void 0, b = s ? ce(s) : void 0;
|
|
1186
|
+
if (b)
|
|
1187
|
+
switch (b) {
|
|
1172
1188
|
case fa:
|
|
1173
|
-
return
|
|
1189
|
+
return q;
|
|
1174
1190
|
case va:
|
|
1175
|
-
return
|
|
1191
|
+
return $;
|
|
1176
1192
|
case ba:
|
|
1177
1193
|
return Z;
|
|
1178
1194
|
case ha:
|
|
1179
1195
|
return P;
|
|
1180
1196
|
case pa:
|
|
1181
|
-
return
|
|
1197
|
+
return w;
|
|
1182
1198
|
}
|
|
1183
1199
|
return i;
|
|
1184
1200
|
});
|
|
1185
1201
|
function en(e) {
|
|
1186
1202
|
var i = e.length, s = e.constructor(i);
|
|
1187
|
-
return i && typeof e[0] == "string" &&
|
|
1203
|
+
return i && typeof e[0] == "string" && re.call(e, "index") && (s.index = e.index, s.input = e.input), s;
|
|
1188
1204
|
}
|
|
1189
1205
|
function tn(e) {
|
|
1190
|
-
return typeof e.constructor == "function" && !
|
|
1206
|
+
return typeof e.constructor == "function" && !It(e) ? Za(oa(e)) : {};
|
|
1191
1207
|
}
|
|
1192
|
-
function an(e, i, s,
|
|
1193
|
-
var
|
|
1208
|
+
function an(e, i, s, b) {
|
|
1209
|
+
var R = e.constructor;
|
|
1194
1210
|
switch (i) {
|
|
1195
|
-
case
|
|
1196
|
-
return
|
|
1197
|
-
case
|
|
1198
|
-
case
|
|
1199
|
-
return new
|
|
1200
|
-
case
|
|
1201
|
-
return Va(e,
|
|
1202
|
-
case
|
|
1203
|
-
case
|
|
1204
|
-
case b:
|
|
1211
|
+
case B:
|
|
1212
|
+
return qe(e);
|
|
1213
|
+
case v:
|
|
1214
|
+
case m:
|
|
1215
|
+
return new R(+e);
|
|
1216
|
+
case q:
|
|
1217
|
+
return Va(e, b);
|
|
1218
|
+
case J:
|
|
1219
|
+
case H:
|
|
1205
1220
|
case k:
|
|
1221
|
+
case l:
|
|
1222
|
+
case u:
|
|
1223
|
+
case f:
|
|
1206
1224
|
case h:
|
|
1207
|
-
case
|
|
1208
|
-
case
|
|
1209
|
-
|
|
1210
|
-
case
|
|
1211
|
-
return
|
|
1212
|
-
case
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
case
|
|
1216
|
-
return new B(e);
|
|
1217
|
-
case z:
|
|
1225
|
+
case T:
|
|
1226
|
+
case E:
|
|
1227
|
+
return Ya(e, b);
|
|
1228
|
+
case $:
|
|
1229
|
+
return Wa(e, b, s);
|
|
1230
|
+
case S:
|
|
1231
|
+
case X:
|
|
1232
|
+
return new R(e);
|
|
1233
|
+
case V:
|
|
1218
1234
|
return Ga(e);
|
|
1219
1235
|
case P:
|
|
1220
|
-
return Ua(e,
|
|
1221
|
-
case
|
|
1236
|
+
return Ua(e, b, s);
|
|
1237
|
+
case W:
|
|
1222
1238
|
return qa(e);
|
|
1223
1239
|
}
|
|
1224
1240
|
}
|
|
1225
1241
|
function nn(e, i) {
|
|
1226
|
-
return i = i ?? c, !!i && (typeof e == "number" ||
|
|
1242
|
+
return i = i ?? c, !!i && (typeof e == "number" || ie.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1227
1243
|
}
|
|
1228
1244
|
function rn(e) {
|
|
1229
1245
|
var i = typeof e;
|
|
1230
1246
|
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1231
1247
|
}
|
|
1232
1248
|
function on(e) {
|
|
1233
|
-
return !!
|
|
1249
|
+
return !!bt && bt in e;
|
|
1234
1250
|
}
|
|
1235
|
-
function
|
|
1236
|
-
var i = e && e.constructor, s = typeof i == "function" && i.prototype ||
|
|
1251
|
+
function It(e) {
|
|
1252
|
+
var i = e && e.constructor, s = typeof i == "function" && i.prototype || Te;
|
|
1237
1253
|
return e === s;
|
|
1238
1254
|
}
|
|
1239
|
-
function
|
|
1255
|
+
function ce(e) {
|
|
1240
1256
|
if (e != null) {
|
|
1241
1257
|
try {
|
|
1242
|
-
return
|
|
1258
|
+
return ht.call(e);
|
|
1243
1259
|
} catch {
|
|
1244
1260
|
}
|
|
1245
1261
|
try {
|
|
@@ -1250,38 +1266,38 @@ Re.exports;
|
|
|
1250
1266
|
return "";
|
|
1251
1267
|
}
|
|
1252
1268
|
function sn(e) {
|
|
1253
|
-
return
|
|
1269
|
+
return Ue(e, !0, !0);
|
|
1254
1270
|
}
|
|
1255
|
-
function
|
|
1271
|
+
function Ct(e, i) {
|
|
1256
1272
|
return e === i || e !== e && i !== i;
|
|
1257
1273
|
}
|
|
1258
1274
|
function cn(e) {
|
|
1259
|
-
return ln(e) &&
|
|
1275
|
+
return ln(e) && re.call(e, "callee") && (!ca.call(e, "callee") || Se.call(e) == d);
|
|
1260
1276
|
}
|
|
1261
|
-
var
|
|
1262
|
-
function
|
|
1263
|
-
return e != null && dn(e.length) && !
|
|
1277
|
+
var Ye = Array.isArray;
|
|
1278
|
+
function Ot(e) {
|
|
1279
|
+
return e != null && dn(e.length) && !xt(e);
|
|
1264
1280
|
}
|
|
1265
1281
|
function ln(e) {
|
|
1266
|
-
return fn(e) &&
|
|
1282
|
+
return fn(e) && Ot(e);
|
|
1267
1283
|
}
|
|
1268
1284
|
var un = ua || bn;
|
|
1269
|
-
function
|
|
1270
|
-
var i =
|
|
1271
|
-
return i ==
|
|
1285
|
+
function xt(e) {
|
|
1286
|
+
var i = Ce(e) ? Se.call(e) : "";
|
|
1287
|
+
return i == A || i == x;
|
|
1272
1288
|
}
|
|
1273
1289
|
function dn(e) {
|
|
1274
1290
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= c;
|
|
1275
1291
|
}
|
|
1276
|
-
function
|
|
1292
|
+
function Ce(e) {
|
|
1277
1293
|
var i = typeof e;
|
|
1278
1294
|
return !!e && (i == "object" || i == "function");
|
|
1279
1295
|
}
|
|
1280
1296
|
function fn(e) {
|
|
1281
1297
|
return !!e && typeof e == "object";
|
|
1282
1298
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1299
|
+
function Xe(e) {
|
|
1300
|
+
return Ot(e) ? La(e) : Ka(e);
|
|
1285
1301
|
}
|
|
1286
1302
|
function vn() {
|
|
1287
1303
|
return [];
|
|
@@ -1290,8 +1306,8 @@ Re.exports;
|
|
|
1290
1306
|
return !1;
|
|
1291
1307
|
}
|
|
1292
1308
|
n.exports = sn;
|
|
1293
|
-
})(
|
|
1294
|
-
var _r =
|
|
1309
|
+
})(Me, Me.exports);
|
|
1310
|
+
var _r = Me.exports;
|
|
1295
1311
|
const wr = /* @__PURE__ */ yr(_r), Tr = {
|
|
1296
1312
|
key: 0,
|
|
1297
1313
|
class: "sidebar-header"
|
|
@@ -1308,7 +1324,7 @@ const wr = /* @__PURE__ */ yr(_r), Tr = {
|
|
|
1308
1324
|
}, xr = {
|
|
1309
1325
|
key: 2,
|
|
1310
1326
|
class: "level-primary bottom-items"
|
|
1311
|
-
}, Ar = { class: "sidebar-footer" }, Er = /* @__PURE__ */
|
|
1327
|
+
}, Ar = { class: "sidebar-footer" }, Er = /* @__PURE__ */ ae({
|
|
1312
1328
|
__name: "AppSidebar",
|
|
1313
1329
|
props: {
|
|
1314
1330
|
topItems: {
|
|
@@ -1368,117 +1384,117 @@ const wr = /* @__PURE__ */ yr(_r), Tr = {
|
|
|
1368
1384
|
emits: ["click", "toggle"],
|
|
1369
1385
|
setup(n, { emit: t }) {
|
|
1370
1386
|
const a = n;
|
|
1371
|
-
|
|
1372
|
-
"160797d0":
|
|
1373
|
-
"721527f8":
|
|
1387
|
+
at((u) => ({
|
|
1388
|
+
"160797d0": p(o).mobileHeight,
|
|
1389
|
+
"721527f8": p(o).mobileTop,
|
|
1374
1390
|
"054b3490": n.zIndex,
|
|
1375
|
-
"6b0e6816":
|
|
1376
|
-
"31cc2e74":
|
|
1377
|
-
"16bd691a": m
|
|
1378
|
-
"08886e32":
|
|
1379
|
-
"1d2550ee":
|
|
1380
|
-
ed4e7e56:
|
|
1381
|
-
"377644f8":
|
|
1391
|
+
"6b0e6816": p(o).height,
|
|
1392
|
+
"31cc2e74": p(o).top,
|
|
1393
|
+
"16bd691a": p(m).marginTop,
|
|
1394
|
+
"08886e32": p(v).display,
|
|
1395
|
+
"1d2550ee": p(v).minHeight,
|
|
1396
|
+
ed4e7e56: p(y).top,
|
|
1397
|
+
"377644f8": p(y).zIndex
|
|
1382
1398
|
}));
|
|
1383
|
-
const r =
|
|
1399
|
+
const r = nt(), c = _(() => !!r.header), d = _(() => !!r.top), o = _(() => ({
|
|
1384
1400
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1385
1401
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1386
1402
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
1387
1403
|
height: a.topOffset ? `calc(100% - ${a.topOffset}px)` : "100%"
|
|
1388
|
-
})),
|
|
1404
|
+
})), v = _(() => ({
|
|
1389
1405
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1390
1406
|
minHeight: `${a.headerHeight}px`
|
|
1391
|
-
})),
|
|
1407
|
+
})), m = _(() => ({
|
|
1392
1408
|
marginTop: c.value ? `${a.headerHeight}px` : "0"
|
|
1393
|
-
})),
|
|
1409
|
+
})), y = _(() => ({
|
|
1394
1410
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1395
1411
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1396
|
-
})),
|
|
1397
|
-
var
|
|
1398
|
-
if (
|
|
1399
|
-
(!
|
|
1400
|
-
for (const
|
|
1401
|
-
|
|
1412
|
+
})), A = (u) => wr(u).map((h) => {
|
|
1413
|
+
var T, E, D;
|
|
1414
|
+
if (h) {
|
|
1415
|
+
(!h.key || !((T = h.key) != null && T.trim())) && (h.key = String(h.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!h.testId || !((E = h.testId) != null && E.trim())) && (h.testId = String(h.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1416
|
+
for (const M of h.items || [])
|
|
1417
|
+
M.parentKey = h.key, (!M.testId || !((D = M.testId) != null && D.trim())) && (M.testId = String(M.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1402
1418
|
}
|
|
1403
|
-
return
|
|
1404
|
-
}),
|
|
1405
|
-
var
|
|
1406
|
-
|
|
1419
|
+
return h;
|
|
1420
|
+
}), x = _(() => a.topItems.length ? A(a.topItems) : []), $ = _(() => a.bottomItems.length ? A(a.bottomItems) : []), S = U(a.open), C = (u) => {
|
|
1421
|
+
var f, h;
|
|
1422
|
+
S.value !== u && (S.value = u, t("toggle", u)), u ? (f = document == null ? void 0 : document.body) == null || f.classList.add("kong-ui-app-sidebar-open") : (h = document == null ? void 0 : document.body) == null || h.classList.remove("kong-ui-app-sidebar-open"), V.value = !1;
|
|
1407
1423
|
}, Z = () => {
|
|
1408
|
-
a.mobileOverlayCloseOnClick &&
|
|
1409
|
-
},
|
|
1410
|
-
|
|
1411
|
-
|
|
1424
|
+
a.mobileOverlayCloseOnClick && C(!1);
|
|
1425
|
+
}, V = U(!1), P = (u) => {
|
|
1426
|
+
V.value = !0, t("click", u), setTimeout(() => {
|
|
1427
|
+
C(!1);
|
|
1412
1428
|
}, a.mobileCloseDelay);
|
|
1413
1429
|
};
|
|
1414
|
-
|
|
1415
|
-
|
|
1430
|
+
$e(() => a.open, (u) => {
|
|
1431
|
+
C(u);
|
|
1416
1432
|
});
|
|
1417
|
-
const { debounce:
|
|
1418
|
-
|
|
1419
|
-
}, 200),
|
|
1420
|
-
|
|
1421
|
-
},
|
|
1422
|
-
var
|
|
1423
|
-
|
|
1433
|
+
const { debounce: X } = Ut(), W = X(() => {
|
|
1434
|
+
S.value && w.value !== (window == null ? void 0 : window.innerWidth) && (w.value = window == null ? void 0 : window.innerWidth, C(!1));
|
|
1435
|
+
}, 200), w = U(), B = U(!1), q = U(), J = () => {
|
|
1436
|
+
B.value || (B.value = !0, clearTimeout(q.value), q.value = setTimeout(() => B.value = !1, 1300));
|
|
1437
|
+
}, H = U(null), k = _(() => S.value && a.mobileEnabled), l = async (u) => {
|
|
1438
|
+
var f, h;
|
|
1439
|
+
u ? (await _n(), await new Promise((T) => setTimeout(T, 300)), (f = H.value) == null || f.activate()) : (h = H.value) == null || h.deactivate();
|
|
1424
1440
|
};
|
|
1425
|
-
return
|
|
1426
|
-
|
|
1427
|
-
}, { immediate: !0 }),
|
|
1428
|
-
|
|
1429
|
-
}),
|
|
1430
|
-
window.removeEventListener("resize",
|
|
1431
|
-
}), (
|
|
1432
|
-
|
|
1441
|
+
return $e(k, async (u) => {
|
|
1442
|
+
u ? await l(!0) : await l(!1);
|
|
1443
|
+
}, { immediate: !0 }), Ze(() => {
|
|
1444
|
+
w.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", W), window.addEventListener("resize", J);
|
|
1445
|
+
}), jt(() => {
|
|
1446
|
+
window.removeEventListener("resize", W), window.removeEventListener("resize", J);
|
|
1447
|
+
}), (u, f) => (g(), N(_e, null, [
|
|
1448
|
+
S.value && n.mobileOverlay && n.mobileEnabled ? (g(), N("div", {
|
|
1433
1449
|
key: 0,
|
|
1434
1450
|
class: "kong-ui-app-sidebar-overlay",
|
|
1435
1451
|
onClick: Z
|
|
1436
|
-
})) :
|
|
1437
|
-
|
|
1452
|
+
})) : L("", !0),
|
|
1453
|
+
rt(p(gr), {
|
|
1438
1454
|
ref_key: "focusTrap",
|
|
1439
|
-
ref:
|
|
1455
|
+
ref: H,
|
|
1440
1456
|
active: !1,
|
|
1441
1457
|
"allow-outside-click": "",
|
|
1442
1458
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1443
1459
|
}, {
|
|
1444
|
-
default:
|
|
1445
|
-
|
|
1446
|
-
class:
|
|
1447
|
-
"sidebar-open":
|
|
1448
|
-
"no-sidebar-header": !
|
|
1449
|
-
"mobile-header-hidden": n.mobileEnabled && (!
|
|
1460
|
+
default: z(() => [
|
|
1461
|
+
I("aside", {
|
|
1462
|
+
class: te(["kong-ui-app-sidebar", {
|
|
1463
|
+
"sidebar-open": S.value,
|
|
1464
|
+
"no-sidebar-header": !p(c),
|
|
1465
|
+
"mobile-header-hidden": n.mobileEnabled && (!p(c) || !n.mobileHeaderVisible),
|
|
1450
1466
|
"mobile-disabled": !n.mobileEnabled,
|
|
1451
|
-
"disable-transitions":
|
|
1467
|
+
"disable-transitions": B.value
|
|
1452
1468
|
}]),
|
|
1453
1469
|
tabindex: "-1"
|
|
1454
1470
|
}, [
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
])) :
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
])) :
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
(
|
|
1465
|
-
key:
|
|
1466
|
-
item:
|
|
1471
|
+
p(c) ? (g(), N("div", Tr, [
|
|
1472
|
+
F(u.$slots, "header", {}, void 0, !0)
|
|
1473
|
+
])) : L("", !0),
|
|
1474
|
+
I("div", Sr, [
|
|
1475
|
+
p(d) ? (g(), N("div", kr, [
|
|
1476
|
+
F(u.$slots, "top", {}, void 0, !0)
|
|
1477
|
+
])) : L("", !0),
|
|
1478
|
+
I("nav", Ir, [
|
|
1479
|
+
p(x).length ? (g(), N("ul", Cr, [
|
|
1480
|
+
(g(!0), N(_e, null, Fe(p(x), (h) => (g(), Q(Dt, {
|
|
1481
|
+
key: h.name,
|
|
1482
|
+
item: h,
|
|
1467
1483
|
onClick: P
|
|
1468
1484
|
}, null, 8, ["item"]))), 128))
|
|
1469
|
-
])) :
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
(
|
|
1473
|
-
key:
|
|
1474
|
-
item:
|
|
1485
|
+
])) : L("", !0),
|
|
1486
|
+
p(x).length && p($).length ? (g(), N("div", Or)) : L("", !0),
|
|
1487
|
+
p($).length ? (g(), N("ul", xr, [
|
|
1488
|
+
(g(!0), N(_e, null, Fe(p($), (h) => (g(), Q(Dt, {
|
|
1489
|
+
key: h.name,
|
|
1490
|
+
item: h,
|
|
1475
1491
|
onClick: P
|
|
1476
1492
|
}, null, 8, ["item"]))), 128))
|
|
1477
|
-
])) :
|
|
1493
|
+
])) : L("", !0)
|
|
1478
1494
|
])
|
|
1479
1495
|
]),
|
|
1480
|
-
|
|
1481
|
-
|
|
1496
|
+
I("div", Ar, [
|
|
1497
|
+
F(u.$slots, "footer", {}, void 0, !0)
|
|
1482
1498
|
])
|
|
1483
1499
|
], 2)
|
|
1484
1500
|
]),
|
|
@@ -1487,11 +1503,11 @@ const wr = /* @__PURE__ */ yr(_r), Tr = {
|
|
|
1487
1503
|
], 64));
|
|
1488
1504
|
}
|
|
1489
1505
|
});
|
|
1490
|
-
const
|
|
1506
|
+
const Nr = /* @__PURE__ */ ne(Er, [["__scopeId", "data-v-6daf9f02"]]), st = (n) => (it("data-v-33b3f7c3"), n = n(), ot(), n), Fr = ["aria-label", "onClick"], $r = /* @__PURE__ */ st(() => /* @__PURE__ */ I("span", { class: "line" }, null, -1)), Dr = /* @__PURE__ */ st(() => /* @__PURE__ */ I("span", { class: "line" }, null, -1)), Rr = /* @__PURE__ */ st(() => /* @__PURE__ */ I("span", { class: "line" }, null, -1)), Br = [
|
|
1491
1507
|
$r,
|
|
1492
1508
|
Dr,
|
|
1493
|
-
|
|
1494
|
-
],
|
|
1509
|
+
Rr
|
|
1510
|
+
], Lr = /* @__PURE__ */ ae({
|
|
1495
1511
|
__name: "SidebarToggle",
|
|
1496
1512
|
props: {
|
|
1497
1513
|
active: {
|
|
@@ -1501,28 +1517,28 @@ const Fr = /* @__PURE__ */ ae(Er, [["__scopeId", "data-v-6daf9f02"]]), rt = (n)
|
|
|
1501
1517
|
},
|
|
1502
1518
|
emits: ["toggle"],
|
|
1503
1519
|
setup(n, { emit: t }) {
|
|
1504
|
-
const a = n, r =
|
|
1520
|
+
const a = n, r = U(a.active || !1), c = () => {
|
|
1505
1521
|
r.value = !r.value, t("toggle", r.value);
|
|
1506
1522
|
};
|
|
1507
|
-
return
|
|
1508
|
-
r.value =
|
|
1509
|
-
}), (
|
|
1523
|
+
return $e(() => a.active, (d) => {
|
|
1524
|
+
r.value = d;
|
|
1525
|
+
}), (d, o) => (g(), N("a", {
|
|
1510
1526
|
"aria-haspopup": "true",
|
|
1511
1527
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1512
|
-
class:
|
|
1528
|
+
class: te(["sidebar-menu-toggle", { active: r.value }]),
|
|
1513
1529
|
href: "#",
|
|
1514
1530
|
role: "button",
|
|
1515
1531
|
onClick: wn(c, ["prevent"])
|
|
1516
|
-
},
|
|
1532
|
+
}, Br, 10, Fr));
|
|
1517
1533
|
}
|
|
1518
1534
|
});
|
|
1519
|
-
const Mr = /* @__PURE__ */
|
|
1535
|
+
const Mr = /* @__PURE__ */ ne(Lr, [["__scopeId", "data-v-33b3f7c3"]]), Zr = (n) => (it("data-v-37316186"), n = n(), ot(), n), Pr = { id: "kong-ui-app-layout-notification" }, jr = { class: "mobile-logo" }, Hr = {
|
|
1520
1536
|
key: 0,
|
|
1521
1537
|
class: "navbar-logo"
|
|
1522
1538
|
}, Kr = {
|
|
1523
1539
|
class: "kong-ui-app-layout-main",
|
|
1524
1540
|
"data-testid": "kong-ui-app-layout-main"
|
|
1525
|
-
}, zr = { class: "kong-ui-app-layout-content" }, Vr = { class: "kong-ui-app-layout-content-inner" }, Wr = /* @__PURE__ */ Zr(() => /* @__PURE__ */
|
|
1541
|
+
}, zr = { class: "kong-ui-app-layout-content" }, Vr = { class: "kong-ui-app-layout-content-inner" }, Wr = /* @__PURE__ */ Zr(() => /* @__PURE__ */ I("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), Gr = /* @__PURE__ */ ae({
|
|
1526
1542
|
__name: "AppLayout",
|
|
1527
1543
|
props: {
|
|
1528
1544
|
hideDefaultSlot: {
|
|
@@ -1555,164 +1571,164 @@ const Mr = /* @__PURE__ */ ae(Rr, [["__scopeId", "data-v-33b3f7c3"]]), Zr = (n)
|
|
|
1555
1571
|
emits: ["sidebar-click"],
|
|
1556
1572
|
setup(n, { emit: t }) {
|
|
1557
1573
|
const a = n;
|
|
1558
|
-
|
|
1559
|
-
"06ca369a":
|
|
1560
|
-
"7d4a09e6":
|
|
1574
|
+
at((w) => ({
|
|
1575
|
+
"06ca369a": p(Z),
|
|
1576
|
+
"7d4a09e6": p(V)
|
|
1561
1577
|
}));
|
|
1562
|
-
const r =
|
|
1563
|
-
navbarLeft:
|
|
1564
|
-
navbarCenter:
|
|
1565
|
-
navbarRight:
|
|
1566
|
-
navbarLogo:
|
|
1567
|
-
navbarMobileLogo:
|
|
1568
|
-
sidebarHeader:
|
|
1569
|
-
sidebarTop:
|
|
1570
|
-
sidebarFooter:
|
|
1571
|
-
}),
|
|
1572
|
-
hidden:
|
|
1573
|
-
}),
|
|
1574
|
-
topItems:
|
|
1575
|
-
bottomItems:
|
|
1576
|
-
open:
|
|
1577
|
-
hidden:
|
|
1578
|
-
}),
|
|
1579
|
-
t("sidebar-click",
|
|
1580
|
-
},
|
|
1581
|
-
|
|
1578
|
+
const r = nt(), c = Ne({
|
|
1579
|
+
navbarLeft: _(() => !!r["navbar-left"]),
|
|
1580
|
+
navbarCenter: _(() => !!r["navbar-center"]),
|
|
1581
|
+
navbarRight: _(() => !!r["navbar-right"]),
|
|
1582
|
+
navbarLogo: _(() => !!r["navbar-logo"]),
|
|
1583
|
+
navbarMobileLogo: _(() => !!r["navbar-mobile-logo"]),
|
|
1584
|
+
sidebarHeader: _(() => !!r["sidebar-header"]),
|
|
1585
|
+
sidebarTop: _(() => !!r["sidebar-top"]),
|
|
1586
|
+
sidebarFooter: _(() => !!r["sidebar-footer"])
|
|
1587
|
+
}), d = _(() => a.hideDefaultSlot), o = Ne({
|
|
1588
|
+
hidden: _(() => a.navbarHidden)
|
|
1589
|
+
}), v = Ne({
|
|
1590
|
+
topItems: _(() => a.sidebarTopItems),
|
|
1591
|
+
bottomItems: _(() => a.sidebarBottomItems),
|
|
1592
|
+
open: _(() => a.sidebarOpen),
|
|
1593
|
+
hidden: _(() => a.sidebarHidden)
|
|
1594
|
+
}), m = (w) => {
|
|
1595
|
+
t("sidebar-click", w);
|
|
1596
|
+
}, y = U(!1), A = (w) => {
|
|
1597
|
+
y.value = w;
|
|
1582
1598
|
};
|
|
1583
1599
|
Tn(() => {
|
|
1584
|
-
|
|
1600
|
+
y.value = Sn(v, "open").value || !1;
|
|
1585
1601
|
});
|
|
1586
|
-
const
|
|
1587
|
-
if (
|
|
1588
|
-
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1602
|
+
const x = U(0), $ = U(60), S = U(0), C = _(() => o.hidden ? S.value : $.value + S.value), Z = _(() => `${C.value}px`), V = _(() => v.hidden || o.hidden ? "0" : "16px"), { debounce: P } = Ut(), X = P((w = !1) => {
|
|
1603
|
+
if (w || x.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1604
|
+
x.value = window == null ? void 0 : window.innerWidth;
|
|
1605
|
+
const B = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1606
|
+
B && (S.value = B.offsetHeight);
|
|
1591
1607
|
}
|
|
1592
|
-
}, 200),
|
|
1593
|
-
return
|
|
1594
|
-
var
|
|
1595
|
-
(
|
|
1596
|
-
const
|
|
1597
|
-
|
|
1598
|
-
for (const
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1608
|
+
}, 200), W = U();
|
|
1609
|
+
return Ze(() => {
|
|
1610
|
+
var B, q;
|
|
1611
|
+
(B = document == null ? void 0 : document.body) == null || B.classList.add("kong-ui-app-layout-body"), (q = document == null ? void 0 : document.documentElement) == null || q.classList.add("kong-ui-app-layout-html"), x.value = window == null ? void 0 : window.innerWidth, X(!0);
|
|
1612
|
+
const w = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1613
|
+
w && (W.value = new ResizeObserver((J) => {
|
|
1614
|
+
for (const H of J) {
|
|
1615
|
+
const k = H.contentRect.height;
|
|
1616
|
+
S.value !== k && (S.value = k);
|
|
1601
1617
|
}
|
|
1602
|
-
}),
|
|
1603
|
-
}),
|
|
1604
|
-
|
|
1605
|
-
}), (
|
|
1606
|
-
class:
|
|
1618
|
+
}), W.value.observe(w)), window.addEventListener("resize", X);
|
|
1619
|
+
}), jt(() => {
|
|
1620
|
+
W.value && W.value.disconnect(), window.removeEventListener("resize", X);
|
|
1621
|
+
}), (w, B) => (g(), N("div", {
|
|
1622
|
+
class: te(["kong-ui-app-layout", [
|
|
1607
1623
|
{ "navbar-hidden": o.hidden },
|
|
1608
|
-
{ "sidebar-hidden":
|
|
1624
|
+
{ "sidebar-hidden": v.hidden }
|
|
1609
1625
|
]])
|
|
1610
1626
|
}, [
|
|
1611
|
-
|
|
1612
|
-
|
|
1627
|
+
I("div", Pr, [
|
|
1628
|
+
F(w.$slots, "notification", {}, void 0, !0)
|
|
1613
1629
|
]),
|
|
1614
|
-
o.hidden ?
|
|
1615
|
-
key: String(
|
|
1616
|
-
"left-offset":
|
|
1617
|
-
"top-offset":
|
|
1618
|
-
},
|
|
1619
|
-
"mobile-sidebar-toggle":
|
|
1620
|
-
|
|
1630
|
+
o.hidden ? L("", !0) : (g(), Q(Dn, {
|
|
1631
|
+
key: String(v.hidden),
|
|
1632
|
+
"left-offset": v.hidden ? 0 : void 0,
|
|
1633
|
+
"top-offset": S.value
|
|
1634
|
+
}, $t({
|
|
1635
|
+
"mobile-sidebar-toggle": z(() => [
|
|
1636
|
+
v.hidden ? L("", !0) : (g(), Q(Mr, {
|
|
1621
1637
|
key: 0,
|
|
1622
|
-
active:
|
|
1623
|
-
onToggle:
|
|
1638
|
+
active: y.value,
|
|
1639
|
+
onToggle: A
|
|
1624
1640
|
}, null, 8, ["active"]))
|
|
1625
1641
|
]),
|
|
1626
1642
|
_: 2
|
|
1627
1643
|
}, [
|
|
1628
1644
|
c.navbarMobileLogo ? {
|
|
1629
1645
|
name: "mobile-logo",
|
|
1630
|
-
fn:
|
|
1631
|
-
|
|
1632
|
-
|
|
1646
|
+
fn: z(() => [
|
|
1647
|
+
I("div", jr, [
|
|
1648
|
+
F(w.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1633
1649
|
])
|
|
1634
1650
|
]),
|
|
1635
1651
|
key: "0"
|
|
1636
1652
|
} : void 0,
|
|
1637
1653
|
c.navbarLogo ? {
|
|
1638
1654
|
name: "logo",
|
|
1639
|
-
fn:
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
])) :
|
|
1655
|
+
fn: z(() => [
|
|
1656
|
+
v.hidden ? (g(), N("div", Hr, [
|
|
1657
|
+
F(w.$slots, "navbar-logo", {}, void 0, !0)
|
|
1658
|
+
])) : L("", !0)
|
|
1643
1659
|
]),
|
|
1644
1660
|
key: "1"
|
|
1645
1661
|
} : void 0,
|
|
1646
1662
|
c.navbarLeft ? {
|
|
1647
1663
|
name: "left",
|
|
1648
|
-
fn:
|
|
1649
|
-
|
|
1664
|
+
fn: z(() => [
|
|
1665
|
+
F(w.$slots, "navbar-left", {}, void 0, !0)
|
|
1650
1666
|
]),
|
|
1651
1667
|
key: "2"
|
|
1652
1668
|
} : void 0,
|
|
1653
1669
|
c.navbarCenter ? {
|
|
1654
1670
|
name: "center",
|
|
1655
|
-
fn:
|
|
1656
|
-
|
|
1671
|
+
fn: z(() => [
|
|
1672
|
+
F(w.$slots, "navbar-center", {}, void 0, !0)
|
|
1657
1673
|
]),
|
|
1658
1674
|
key: "3"
|
|
1659
1675
|
} : void 0,
|
|
1660
1676
|
c.navbarRight ? {
|
|
1661
1677
|
name: "right",
|
|
1662
|
-
fn:
|
|
1663
|
-
|
|
1678
|
+
fn: z(() => [
|
|
1679
|
+
F(w.$slots, "navbar-right", {}, void 0, !0)
|
|
1664
1680
|
]),
|
|
1665
1681
|
key: "4"
|
|
1666
1682
|
} : void 0
|
|
1667
1683
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1668
|
-
|
|
1684
|
+
v.hidden ? L("", !0) : (g(), Q(Nr, {
|
|
1669
1685
|
key: 1,
|
|
1670
|
-
"bottom-items":
|
|
1671
|
-
"header-height":
|
|
1686
|
+
"bottom-items": v.bottomItems,
|
|
1687
|
+
"header-height": $.value,
|
|
1672
1688
|
"mobile-enabled": "",
|
|
1673
1689
|
"mobile-header-visible": !1,
|
|
1674
|
-
"mobile-top-offset":
|
|
1675
|
-
open:
|
|
1676
|
-
"top-items":
|
|
1677
|
-
"top-offset":
|
|
1678
|
-
onClick:
|
|
1679
|
-
onToggle:
|
|
1680
|
-
},
|
|
1690
|
+
"mobile-top-offset": p(C),
|
|
1691
|
+
open: y.value,
|
|
1692
|
+
"top-items": v.topItems,
|
|
1693
|
+
"top-offset": S.value,
|
|
1694
|
+
onClick: m,
|
|
1695
|
+
onToggle: A
|
|
1696
|
+
}, $t({ _: 2 }, [
|
|
1681
1697
|
c.sidebarHeader ? {
|
|
1682
1698
|
name: "header",
|
|
1683
|
-
fn:
|
|
1684
|
-
|
|
1699
|
+
fn: z(() => [
|
|
1700
|
+
F(w.$slots, "sidebar-header", {}, void 0, !0)
|
|
1685
1701
|
]),
|
|
1686
1702
|
key: "0"
|
|
1687
1703
|
} : void 0,
|
|
1688
1704
|
c.sidebarTop ? {
|
|
1689
1705
|
name: "top",
|
|
1690
|
-
fn:
|
|
1691
|
-
|
|
1706
|
+
fn: z(() => [
|
|
1707
|
+
F(w.$slots, "sidebar-top", {}, void 0, !0)
|
|
1692
1708
|
]),
|
|
1693
1709
|
key: "1"
|
|
1694
1710
|
} : void 0,
|
|
1695
1711
|
c.sidebarFooter ? {
|
|
1696
1712
|
name: "footer",
|
|
1697
|
-
fn:
|
|
1698
|
-
|
|
1713
|
+
fn: z(() => [
|
|
1714
|
+
F(w.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1699
1715
|
]),
|
|
1700
1716
|
key: "2"
|
|
1701
1717
|
} : void 0
|
|
1702
1718
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1719
|
+
I("main", Kr, [
|
|
1720
|
+
I("div", zr, [
|
|
1721
|
+
I("div", Vr, [
|
|
1706
1722
|
Wr,
|
|
1707
|
-
|
|
1708
|
-
|
|
1723
|
+
F(w.$slots, "app-error", {}, void 0, !0),
|
|
1724
|
+
p(d) ? L("", !0) : F(w.$slots, "default", { key: 0 }, void 0, !0)
|
|
1709
1725
|
])
|
|
1710
1726
|
])
|
|
1711
1727
|
])
|
|
1712
1728
|
], 2));
|
|
1713
1729
|
}
|
|
1714
1730
|
});
|
|
1715
|
-
const Ur = /* @__PURE__ */
|
|
1731
|
+
const Ur = /* @__PURE__ */ ne(Gr, [["__scopeId", "data-v-37316186"]]), qr = /* @__PURE__ */ ae({
|
|
1716
1732
|
__name: "AccountDropdown",
|
|
1717
1733
|
props: {
|
|
1718
1734
|
options: {
|
|
@@ -1732,26 +1748,26 @@ const Ur = /* @__PURE__ */ ae(Gr, [["__scopeId", "data-v-37316186"]]), qr = /* @
|
|
|
1732
1748
|
},
|
|
1733
1749
|
setup(n) {
|
|
1734
1750
|
return (t, a) => {
|
|
1735
|
-
const r =
|
|
1736
|
-
return
|
|
1751
|
+
const r = ye("KDropdownItem"), c = ye("KDropdownMenu");
|
|
1752
|
+
return g(), Q(c, {
|
|
1737
1753
|
class: "account-dropdown",
|
|
1738
1754
|
"kpop-attributes": { placement: "bottomStart" },
|
|
1739
1755
|
label: n.userInitials,
|
|
1740
1756
|
size: "small",
|
|
1741
1757
|
width: n.width
|
|
1742
1758
|
}, {
|
|
1743
|
-
items:
|
|
1744
|
-
|
|
1745
|
-
(
|
|
1759
|
+
items: z(({ handleSelection: d }) => [
|
|
1760
|
+
F(t.$slots, "default", {}, () => [
|
|
1761
|
+
(g(!0), N(_e, null, Fe(n.options, (o) => (g(), Q(r, {
|
|
1746
1762
|
key: o.value,
|
|
1747
|
-
class:
|
|
1763
|
+
class: te({ "has-divider": o.hasDivider }),
|
|
1748
1764
|
"data-testid": "select-" + o.value,
|
|
1749
1765
|
"has-divider": o.hasDivider,
|
|
1750
|
-
onClick: (
|
|
1766
|
+
onClick: (v) => d(o)
|
|
1751
1767
|
}, {
|
|
1752
|
-
default:
|
|
1753
|
-
|
|
1754
|
-
|
|
1768
|
+
default: z(() => [
|
|
1769
|
+
F(t.$slots, "default", { option: o }, () => [
|
|
1770
|
+
et(ge(o.label), 1)
|
|
1755
1771
|
], !0)
|
|
1756
1772
|
]),
|
|
1757
1773
|
_: 2
|
|
@@ -1763,7 +1779,7 @@ const Ur = /* @__PURE__ */ ae(Gr, [["__scopeId", "data-v-37316186"]]), qr = /* @
|
|
|
1763
1779
|
};
|
|
1764
1780
|
}
|
|
1765
1781
|
});
|
|
1766
|
-
const li = /* @__PURE__ */
|
|
1782
|
+
const li = /* @__PURE__ */ ne(qr, [["__scopeId", "data-v-6e34d3da"]]), Yr = {}, Xr = {
|
|
1767
1783
|
fill: "none",
|
|
1768
1784
|
height: "130",
|
|
1769
1785
|
width: "130",
|
|
@@ -1772,21 +1788,21 @@ const li = /* @__PURE__ */ ae(qr, [["__scopeId", "data-v-6e34d3da"]]), Yr = {},
|
|
|
1772
1788
|
Jr
|
|
1773
1789
|
];
|
|
1774
1790
|
function ei(n, t) {
|
|
1775
|
-
return
|
|
1791
|
+
return g(), N("svg", Xr, Qr);
|
|
1776
1792
|
}
|
|
1777
|
-
const ti = /* @__PURE__ */
|
|
1778
|
-
/* @__PURE__ */
|
|
1779
|
-
/* @__PURE__ */
|
|
1780
|
-
/* @__PURE__ */
|
|
1781
|
-
], -1)), si = /* @__PURE__ */
|
|
1793
|
+
const ti = /* @__PURE__ */ ne(Yr, [["render", ei]]), qt = (n) => (it("data-v-ff05f71e"), n = n(), ot(), n), ai = { class: "kong-ui-app-error" }, ni = { class: "banana-icon" }, ri = { class: "kong-ui-app-error-content" }, ii = /* @__PURE__ */ qt(() => /* @__PURE__ */ I("h2", null, "An unexpected error has occurred", -1)), oi = /* @__PURE__ */ qt(() => /* @__PURE__ */ I("p", null, [
|
|
1794
|
+
/* @__PURE__ */ et("Go back to the previous page or "),
|
|
1795
|
+
/* @__PURE__ */ I("a", { href: "/" }, "return home"),
|
|
1796
|
+
/* @__PURE__ */ et(".")
|
|
1797
|
+
], -1)), si = /* @__PURE__ */ ae({
|
|
1782
1798
|
__name: "AppError",
|
|
1783
1799
|
setup(n) {
|
|
1784
|
-
return (t, a) => (
|
|
1785
|
-
|
|
1786
|
-
|
|
1800
|
+
return (t, a) => (g(), N("section", ai, [
|
|
1801
|
+
I("div", ni, [
|
|
1802
|
+
rt(ti)
|
|
1787
1803
|
]),
|
|
1788
|
-
|
|
1789
|
-
|
|
1804
|
+
I("div", ri, [
|
|
1805
|
+
F(t.$slots, "default", {}, () => [
|
|
1790
1806
|
ii,
|
|
1791
1807
|
oi
|
|
1792
1808
|
], !0)
|
|
@@ -1794,7 +1810,7 @@ const ti = /* @__PURE__ */ ae(Yr, [["render", ei]]), Gt = (n) => (at("data-v-ff0
|
|
|
1794
1810
|
]));
|
|
1795
1811
|
}
|
|
1796
1812
|
});
|
|
1797
|
-
const ui = /* @__PURE__ */
|
|
1813
|
+
const ui = /* @__PURE__ */ ne(si, [["__scopeId", "data-v-ff05f71e"]]), di = {
|
|
1798
1814
|
// Customize Vue plugin options as desired
|
|
1799
1815
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
1800
1816
|
install: (n, t = {}) => {
|
|
@@ -1806,7 +1822,7 @@ export {
|
|
|
1806
1822
|
ui as AppError,
|
|
1807
1823
|
Ur as AppLayout,
|
|
1808
1824
|
Dn as AppNavbar,
|
|
1809
|
-
|
|
1825
|
+
Nr as AppSidebar,
|
|
1810
1826
|
Mr as SidebarToggle,
|
|
1811
1827
|
di as default
|
|
1812
1828
|
};
|