@kong-ui-public/app-layout 0.13.30 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-layout.es.js +372 -360
- package/dist/app-layout.es.js.map +1 -1
- package/dist/app-layout.umd.js +3 -3
- package/dist/app-layout.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/AppLayout.vue.d.ts +1 -0
- package/dist/types/components/AppLayout.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts +1 -0
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarFooter.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/app-layout.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as
|
|
2
|
-
const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" },
|
|
1
|
+
import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as _, reactive as Ne, onMounted as Ze, openBlock as h, createElementBlock as N, createElementVNode as w, renderSlot as D, createCommentVNode as M, toDisplayString as ie, resolveComponent as oe, normalizeClass as ne, createBlock as z, resolveDynamicComponent as hn, withCtx as Z, withKeys as mn, createVNode as Pe, Fragment as pe, renderList as _e, withModifiers as Zt, ref as W, watch as Ee, onUnmounted as gn, Comment as yn, cloneVNode as _n, onBeforeUnmount as Pt, createTextVNode as Fe, nextTick as wn, pushScopeId as at, popScopeId as nt, watchEffect as Tn, toRef as kn, createSlots as $t, createStaticVNode as Sn } from "vue";
|
|
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" },
|
|
5
|
+
}, An = { class: "navbar-content" }, $n = { class: "navbar-content-left" }, Nn = { class: "navbar-content-center" }, En = { class: "navbar-content-right" }, Fn = /* @__PURE__ */ Q({
|
|
6
6
|
__name: "AppNavbar",
|
|
7
7
|
props: {
|
|
8
8
|
topOffset: {
|
|
@@ -28,7 +28,7 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, xn
|
|
|
28
28
|
74170388: c.marginRight,
|
|
29
29
|
"482efd74": c.width
|
|
30
30
|
}));
|
|
31
|
-
const a = tt(), r =
|
|
31
|
+
const a = tt(), r = _(() => !!a.logo), c = Ne({
|
|
32
32
|
marginRight: "0",
|
|
33
33
|
width: "0"
|
|
34
34
|
});
|
|
@@ -36,29 +36,29 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, xn
|
|
|
36
36
|
var o, d;
|
|
37
37
|
(d = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && d.length ? (c.marginRight = "32px", c.width = "calc(240px - 32px)") : (c.marginRight = "0", c.width = "0");
|
|
38
38
|
});
|
|
39
|
-
const l =
|
|
39
|
+
const l = _(() => ({
|
|
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, d) => (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
return (o, d) => (h(), N("header", In, [
|
|
45
|
+
w("div", Cn, [
|
|
46
|
+
w("div", On, [
|
|
47
|
+
D(o.$slots, "mobile-sidebar-toggle"),
|
|
48
|
+
D(o.$slots, "mobile-logo")
|
|
49
49
|
]),
|
|
50
|
-
m(r) ? (
|
|
51
|
-
|
|
50
|
+
m(r) ? (h(), N("div", xn, [
|
|
51
|
+
D(o.$slots, "logo")
|
|
52
52
|
])) : M("", !0),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
w("div", An, [
|
|
54
|
+
w("div", $n, [
|
|
55
|
+
D(o.$slots, "left")
|
|
56
56
|
]),
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
w("div", Nn, [
|
|
58
|
+
D(o.$slots, "center")
|
|
59
59
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
w("div", En, [
|
|
61
|
+
D(o.$slots, "right")
|
|
62
62
|
])
|
|
63
63
|
])
|
|
64
64
|
])
|
|
@@ -80,8 +80,8 @@ const J = (n, t) => {
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
setup(n) {
|
|
83
|
-
const t = n, a = 99, r =
|
|
84
|
-
return (c, l) => m(r) ? (
|
|
83
|
+
const t = n, a = 99, r = _(() => t.count ? t.count > a ? `${a}+` : t.count.toString() : "");
|
|
84
|
+
return (c, l) => m(r) ? (h(), N("div", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "item-badge",
|
|
87
87
|
title: (n.count || 0) > a ? String(n.count) : void 0
|
|
@@ -108,67 +108,67 @@ const Ln = /* @__PURE__ */ J(Mn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["dat
|
|
|
108
108
|
},
|
|
109
109
|
emits: ["click"],
|
|
110
110
|
setup(n, { emit: t }) {
|
|
111
|
-
const a = n, r =
|
|
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("/"))), l = _(() => a.subnavItem && a.item.badgeCount !== void 0), o = (g) => {
|
|
112
112
|
t("click", g);
|
|
113
|
-
}, d = (g,
|
|
114
|
-
o(
|
|
113
|
+
}, d = (g, T, C) => {
|
|
114
|
+
o(T), typeof C == "function" && (g.preventDefault(), C());
|
|
115
115
|
};
|
|
116
|
-
return (g,
|
|
116
|
+
return (g, T) => {
|
|
117
117
|
var A;
|
|
118
|
-
const C = oe("KIcon"), S = oe("KTooltip"),
|
|
119
|
-
return
|
|
118
|
+
const C = oe("KIcon"), S = oe("KTooltip"), B = oe("SidebarItem", !0);
|
|
119
|
+
return h(), N("li", {
|
|
120
120
|
class: ne([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
|
+
(h(), z(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:
|
|
127
|
+
default: Z((E) => {
|
|
128
128
|
var K, G;
|
|
129
129
|
return [
|
|
130
|
-
|
|
130
|
+
w("a", {
|
|
131
131
|
"aria-controls": (K = n.item.items) != null && K.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
133
|
class: ne(["sidebar-item-link", { "sidebar-item-external-link": m(c), "router-link": !m(r) }]),
|
|
134
|
-
href: m(r) ? String(n.item.to || "#") :
|
|
134
|
+
href: m(r) ? String(n.item.to || "#") : E == null ? void 0 : E.href,
|
|
135
135
|
target: m(c) ? "_blank" : void 0,
|
|
136
|
-
onClick: (j) => d(j, n.item,
|
|
137
|
-
onKeypress: mn((j) => d(j, n.item,
|
|
136
|
+
onClick: (j) => d(j, n.item, E == null ? void 0 : E.navigate),
|
|
137
|
+
onKeypress: mn((j) => d(j, n.item, E == null ? void 0 : E.navigate), ["enter"])
|
|
138
138
|
}, [
|
|
139
|
-
|
|
139
|
+
w("div", {
|
|
140
140
|
class: ne(["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 ? (h(), N("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
|
])) : M("", !0),
|
|
149
|
-
|
|
150
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
149
|
+
w("div", jn, [
|
|
150
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (h(), N("div", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: ne(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
153
|
-
}, ie(n.item.name), 3)) : (
|
|
153
|
+
}, ie(n.item.name), 3)) : (h(), z(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:
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
default: Z(() => [
|
|
161
|
+
w("div", Kn, [
|
|
162
|
+
w("span", {
|
|
163
163
|
class: ne(["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 ? (h(), N("div", Hn, ie(n.item.label), 1)) : M("", !0)
|
|
170
170
|
]),
|
|
171
|
-
m(l) ? (
|
|
171
|
+
m(l) ? (h(), z(Ln, {
|
|
172
172
|
key: 1,
|
|
173
173
|
count: n.item.badgeCount
|
|
174
174
|
}, null, 8, ["count"])) : M("", !0)
|
|
@@ -178,32 +178,32 @@ const Ln = /* @__PURE__ */ J(Mn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["dat
|
|
|
178
178
|
}),
|
|
179
179
|
_: 1
|
|
180
180
|
}, 8, ["custom", "to"])),
|
|
181
|
-
(A = n.item.items) != null && A.length && n.item.expanded ? (
|
|
181
|
+
(A = n.item.items) != null && A.length && n.item.expanded ? (h(), 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
|
+
(h(!0), N(pe, null, _e(n.item.items, (E) => (h(), z(B, {
|
|
187
|
+
key: E.name,
|
|
188
|
+
item: E,
|
|
189
189
|
"subnav-item": !0,
|
|
190
|
-
onClick: (K) => o(
|
|
190
|
+
onClick: (K) => o(E)
|
|
191
191
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
192
192
|
], 8, zn)) : M("", !0)
|
|
193
193
|
], 10, Rn);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
const
|
|
197
|
+
const Nt = /* @__PURE__ */ J(Vn, [["__scopeId", "data-v-b0428668"]]), Wn = {}, Gn = {
|
|
198
198
|
class: "profile-icon",
|
|
199
199
|
fill: "none",
|
|
200
200
|
height: "30",
|
|
201
201
|
width: "30",
|
|
202
202
|
xmlns: "http://www.w3.org/2000/svg"
|
|
203
|
-
}, qn = /* @__PURE__ */
|
|
203
|
+
}, qn = /* @__PURE__ */ w("path", {
|
|
204
204
|
d: "M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",
|
|
205
205
|
fill: "#0A7FAE"
|
|
206
|
-
}, null, -1), Un = /* @__PURE__ */
|
|
206
|
+
}, null, -1), Un = /* @__PURE__ */ w("path", {
|
|
207
207
|
d: "M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",
|
|
208
208
|
fill: "#fff"
|
|
209
209
|
}, null, -1), Yn = [
|
|
@@ -211,12 +211,12 @@ const Et = /* @__PURE__ */ J(Vn, [["__scopeId", "data-v-b0428668"]]), Wn = {}, G
|
|
|
211
211
|
Un
|
|
212
212
|
];
|
|
213
213
|
function Xn(n, t) {
|
|
214
|
-
return
|
|
214
|
+
return h(), N("svg", Gn, Yn);
|
|
215
215
|
}
|
|
216
216
|
const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
217
217
|
"aria-haspopup": "true",
|
|
218
218
|
"aria-label": "Profile Menu",
|
|
219
|
-
class: "sidebar-footer"
|
|
219
|
+
class: "sidebar-footer-nav"
|
|
220
220
|
}, er = { class: "sidebar-profile-link" }, tr = { class: "sidebar-item-icon" }, ar = { class: "sidebar-profile-item-container" }, nr = { class: "sidebar-profile-dropdown-container" }, rr = {
|
|
221
221
|
key: 0,
|
|
222
222
|
class: "sidebar-profile-name"
|
|
@@ -234,26 +234,26 @@ const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
setup(n) {
|
|
237
|
-
const t = n, a =
|
|
237
|
+
const t = n, a = _(() => t.itemCount > 0);
|
|
238
238
|
return (r, c) => {
|
|
239
239
|
const l = oe("KDropdownMenu");
|
|
240
|
-
return
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
return h(), N("nav", Qn, [
|
|
241
|
+
w("div", er, [
|
|
242
|
+
w("div", tr, [
|
|
243
243
|
Pe(Jn)
|
|
244
244
|
]),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
m(a) ? (
|
|
245
|
+
w("div", ar, [
|
|
246
|
+
w("div", nr, [
|
|
247
|
+
m(a) ? (h(), z(l, {
|
|
248
248
|
key: 1,
|
|
249
|
-
"kpop-attributes": { placement: "right", popoverClasses: "ml-5 sidebar-profile-menu-popover", target: ".sidebar-footer" },
|
|
249
|
+
"kpop-attributes": { placement: "right", popoverClasses: "ml-5 sidebar-profile-menu-popover", target: ".sidebar-footer-nav" },
|
|
250
250
|
width: "240"
|
|
251
251
|
}, {
|
|
252
|
-
items:
|
|
253
|
-
|
|
252
|
+
items: Z(() => [
|
|
253
|
+
D(r.$slots, "default", {}, void 0, !0)
|
|
254
254
|
]),
|
|
255
|
-
default:
|
|
256
|
-
|
|
255
|
+
default: Z(() => [
|
|
256
|
+
w("a", {
|
|
257
257
|
"aria-label": "Open Profile Menu",
|
|
258
258
|
class: "profile-dropdown-trigger",
|
|
259
259
|
role: "button",
|
|
@@ -261,11 +261,11 @@ const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
|
261
261
|
onClick: c[0] || (c[0] = Zt(() => {
|
|
262
262
|
}, ["prevent"]))
|
|
263
263
|
}, [
|
|
264
|
-
|
|
264
|
+
w("span", ir, ie(n.name), 1)
|
|
265
265
|
])
|
|
266
266
|
]),
|
|
267
267
|
_: 3
|
|
268
|
-
}, 8, ["kpop-attributes"])) : (
|
|
268
|
+
}, 8, ["kpop-attributes"])) : (h(), N("div", rr, ie(n.name), 1))
|
|
269
269
|
])
|
|
270
270
|
])
|
|
271
271
|
])
|
|
@@ -273,7 +273,7 @@ const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
const sr = /* @__PURE__ */ J(or, [["__scopeId", "data-v-
|
|
276
|
+
const sr = /* @__PURE__ */ J(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
|
|
@@ -302,17 +302,17 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
302
302
|
var o = l.shift();
|
|
303
303
|
if (!Me(o, !1))
|
|
304
304
|
if (o.tagName === "SLOT") {
|
|
305
|
-
var d = o.assignedElements(), g = d.length ? d : o.children,
|
|
306
|
-
r.flatten ? c.push.apply(c,
|
|
305
|
+
var d = o.assignedElements(), g = d.length ? d : o.children, T = n(g, !0, r);
|
|
306
|
+
r.flatten ? c.push.apply(c, T) : c.push({
|
|
307
307
|
scopeParent: o,
|
|
308
|
-
candidates:
|
|
308
|
+
candidates: T
|
|
309
309
|
});
|
|
310
310
|
} else {
|
|
311
311
|
var C = ue.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 &&
|
|
314
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), B = !Me(S, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
315
|
+
if (S && B) {
|
|
316
316
|
var A = n(S === !0 ? o.children : S.children, !0, r);
|
|
317
317
|
r.flatten ? c.push.apply(c, A) : c.push({
|
|
318
318
|
scopeParent: o,
|
|
@@ -365,12 +365,12 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
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
|
-
var
|
|
369
|
-
r = Be(c), c = (
|
|
368
|
+
var T, C, S;
|
|
369
|
+
r = Be(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;
|
|
373
|
-
},
|
|
373
|
+
}, Et = function(t) {
|
|
374
374
|
var a = t.getBoundingClientRect(), r = a.width, c = a.height;
|
|
375
375
|
return r === 0 && c === 0;
|
|
376
376
|
}, mr = function(t, a) {
|
|
@@ -383,10 +383,10 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
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,
|
|
386
|
+
var g = t.parentElement, T = Be(t);
|
|
387
387
|
if (g && !g.shadowRoot && c(g) === !0)
|
|
388
|
-
return
|
|
389
|
-
t.assignedSlot ? t = t.assignedSlot : !g &&
|
|
388
|
+
return Et(t);
|
|
389
|
+
t.assignedSlot ? t = t.assignedSlot : !g && T !== t.ownerDocument ? t = T.host : t = g;
|
|
390
390
|
}
|
|
391
391
|
t = d;
|
|
392
392
|
}
|
|
@@ -395,7 +395,7 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
395
395
|
if (r !== "legacy-full")
|
|
396
396
|
return !0;
|
|
397
397
|
} else if (r === "non-zero-area")
|
|
398
|
-
return
|
|
398
|
+
return Et(t);
|
|
399
399
|
return !1;
|
|
400
400
|
}, gr = function(t) {
|
|
401
401
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
@@ -425,13 +425,13 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
425
425
|
}, _r = function n(t) {
|
|
426
426
|
var a = [], r = [];
|
|
427
427
|
return t.forEach(function(c, l) {
|
|
428
|
-
var o = !!c.scopeParent, d = o ? c.scopeParent : c, g = Vt(d, o),
|
|
429
|
-
g === 0 ? o ? a.push.apply(a,
|
|
428
|
+
var o = !!c.scopeParent, d = o ? c.scopeParent : c, g = Vt(d, o), T = o ? n(c.candidates) : d;
|
|
429
|
+
g === 0 ? o ? a.push.apply(a, T) : a.push(d) : r.push({
|
|
430
430
|
documentOrder: l,
|
|
431
431
|
tabIndex: g,
|
|
432
432
|
item: c,
|
|
433
433
|
isScope: o,
|
|
434
|
-
content:
|
|
434
|
+
content: T
|
|
435
435
|
});
|
|
436
436
|
}), r.sort(lr).reduce(function(c, l) {
|
|
437
437
|
return l.isScope ? c.push.apply(c, l.content) : c.push(l.content), c;
|
|
@@ -453,7 +453,7 @@ 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
|
+
}, xe = function(t, a) {
|
|
457
457
|
if (a = a || {}, !t)
|
|
458
458
|
throw new Error("No node provided");
|
|
459
459
|
return ue.call(t, De) === !1 ? !1 : Qe(a, t);
|
|
@@ -524,15 +524,15 @@ var Mt = {
|
|
|
524
524
|
var r = t.indexOf(a);
|
|
525
525
|
r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
526
526
|
}
|
|
527
|
-
}, xr = function(t) {
|
|
528
|
-
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
529
527
|
}, Or = function(t) {
|
|
528
|
+
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
529
|
+
}, xr = function(t) {
|
|
530
530
|
return t.key === "Escape" || t.key === "Esc" || t.keyCode === 27;
|
|
531
531
|
}, we = function(t) {
|
|
532
532
|
return t.key === "Tab" || t.keyCode === 9;
|
|
533
533
|
}, Ar = function(t) {
|
|
534
534
|
return we(t) && !t.shiftKey;
|
|
535
|
-
},
|
|
535
|
+
}, $r = function(t) {
|
|
536
536
|
return we(t) && t.shiftKey;
|
|
537
537
|
}, Lt = function(t) {
|
|
538
538
|
return setTimeout(t, 0);
|
|
@@ -547,13 +547,13 @@ var Mt = {
|
|
|
547
547
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
548
548
|
}, Ae = function(t) {
|
|
549
549
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
550
|
-
},
|
|
551
|
-
var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) ||
|
|
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 = Bt({
|
|
552
552
|
returnFocusOnDeactivate: !0,
|
|
553
553
|
escapeDeactivates: !0,
|
|
554
554
|
delayInitialFocus: !0,
|
|
555
555
|
isKeyForward: Ar,
|
|
556
|
-
isKeyBackward:
|
|
556
|
+
isKeyBackward: $r
|
|
557
557
|
}, a), o = {
|
|
558
558
|
// containers given to createFocusTrap()
|
|
559
559
|
// @type {Array<HTMLElement>}
|
|
@@ -587,23 +587,23 @@ var Mt = {
|
|
|
587
587
|
delayInitialFocusTimer: void 0
|
|
588
588
|
}, d, g = function(u, f, b) {
|
|
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, $ = 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
|
+
$.find(function(p) {
|
|
598
|
+
return p === 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, $ = new Array(b > 1 ? b - 1 : 0), p = 1; p < b; p++)
|
|
605
|
+
$[p - 1] = arguments[p];
|
|
606
|
+
f = f.apply(void 0, $);
|
|
607
607
|
}
|
|
608
608
|
if (f === !0 && (f = void 0), !f) {
|
|
609
609
|
if (f === void 0 || f === !1)
|
|
@@ -619,7 +619,7 @@ var Mt = {
|
|
|
619
619
|
if (u === !1)
|
|
620
620
|
return !1;
|
|
621
621
|
if (u === void 0)
|
|
622
|
-
if (
|
|
622
|
+
if (T(r.activeElement) >= 0)
|
|
623
623
|
u = r.activeElement;
|
|
624
624
|
else {
|
|
625
625
|
var f = o.tabbableGroups[0], b = f && f.firstTabbableNode;
|
|
@@ -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
|
+
}, B = 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(
|
|
648
|
+
nextTabbableNode: function(p) {
|
|
649
649
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, y = b.findIndex(function(L) {
|
|
650
|
-
return L ===
|
|
650
|
+
return L === p;
|
|
651
651
|
});
|
|
652
652
|
if (!(y < 0))
|
|
653
653
|
return F ? b.slice(y + 1).find(function(L) {
|
|
654
|
-
return
|
|
654
|
+
return xe(L, l.tabbableOptions);
|
|
655
655
|
}) : b.slice(0, y).reverse().find(function(L) {
|
|
656
|
-
return
|
|
656
|
+
return xe(L, l.tabbableOptions);
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
};
|
|
@@ -661,22 +661,22 @@ 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
|
-
}, A = function
|
|
664
|
+
}, A = function O(u) {
|
|
665
665
|
if (u !== !1 && u !== r.activeElement) {
|
|
666
666
|
if (!u || !u.focus) {
|
|
667
|
-
|
|
667
|
+
O(S());
|
|
668
668
|
return;
|
|
669
669
|
}
|
|
670
670
|
u.focus({
|
|
671
671
|
preventScroll: !!l.preventScroll
|
|
672
|
-
}), o.mostRecentlyFocusedNode = u,
|
|
672
|
+
}), o.mostRecentlyFocusedNode = u, Or(u) && u.select();
|
|
673
673
|
}
|
|
674
|
-
},
|
|
674
|
+
}, E = function(u) {
|
|
675
675
|
var f = C("setReturnFocus", u);
|
|
676
676
|
return f || (f === !1 ? !1 : u);
|
|
677
677
|
}, K = function(u) {
|
|
678
678
|
var f = Ae(u);
|
|
679
|
-
if (!(
|
|
679
|
+
if (!(T(f) >= 0)) {
|
|
680
680
|
if (ye(l.clickOutsideDeactivates, u)) {
|
|
681
681
|
d.deactivate({
|
|
682
682
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -692,49 +692,49 @@ var Mt = {
|
|
|
692
692
|
ye(l.allowOutsideClick, u) || u.preventDefault();
|
|
693
693
|
}
|
|
694
694
|
}, G = function(u) {
|
|
695
|
-
var f = Ae(u), b =
|
|
695
|
+
var f = Ae(u), b = T(f) >= 0;
|
|
696
696
|
b || f instanceof Document ? b && (o.mostRecentlyFocusedNode = f) : (u.stopImmediatePropagation(), A(o.mostRecentlyFocusedNode || S()));
|
|
697
697
|
}, j = function(u) {
|
|
698
698
|
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, b = Ae(u);
|
|
699
|
-
|
|
700
|
-
var
|
|
699
|
+
B();
|
|
700
|
+
var $ = null;
|
|
701
701
|
if (o.tabbableGroups.length > 0) {
|
|
702
|
-
var
|
|
703
|
-
if (
|
|
704
|
-
f ?
|
|
702
|
+
var p = T(b), F = p >= 0 ? o.containerGroups[p] : void 0;
|
|
703
|
+
if (p < 0)
|
|
704
|
+
f ? $ = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : $ = o.tabbableGroups[0].firstTabbableNode;
|
|
705
705
|
else if (f) {
|
|
706
706
|
var y = Rt(o.tabbableGroups, function(he) {
|
|
707
|
-
var
|
|
708
|
-
return b ===
|
|
707
|
+
var x = he.firstTabbableNode;
|
|
708
|
+
return b === x;
|
|
709
709
|
});
|
|
710
|
-
if (y < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !
|
|
710
|
+
if (y < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !xe(b, l.tabbableOptions) && !F.nextTabbableNode(b, !1)) && (y = p), y >= 0) {
|
|
711
711
|
var L = y === 0 ? o.tabbableGroups.length - 1 : y - 1, k = o.tabbableGroups[L];
|
|
712
|
-
|
|
712
|
+
$ = k.lastTabbableNode;
|
|
713
713
|
} else
|
|
714
|
-
we(u) || (
|
|
714
|
+
we(u) || ($ = F.nextTabbableNode(b, !1));
|
|
715
715
|
} else {
|
|
716
716
|
var X = Rt(o.tabbableGroups, function(he) {
|
|
717
|
-
var
|
|
718
|
-
return b ===
|
|
717
|
+
var x = he.lastTabbableNode;
|
|
718
|
+
return b === x;
|
|
719
719
|
});
|
|
720
|
-
if (X < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !
|
|
720
|
+
if (X < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !xe(b, l.tabbableOptions) && !F.nextTabbableNode(b)) && (X = p), X >= 0) {
|
|
721
721
|
var ee = X === o.tabbableGroups.length - 1 ? 0 : X + 1, je = o.tabbableGroups[ee];
|
|
722
|
-
|
|
722
|
+
$ = je.firstTabbableNode;
|
|
723
723
|
} else
|
|
724
|
-
we(u) || (
|
|
724
|
+
we(u) || ($ = F.nextTabbableNode(b));
|
|
725
725
|
}
|
|
726
726
|
} else
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
$ = C("fallbackFocus");
|
|
728
|
+
$ && (we(u) && u.preventDefault(), A($));
|
|
729
729
|
}, Y = function(u) {
|
|
730
|
-
if (
|
|
730
|
+
if (xr(u) && ye(l.escapeDeactivates, u) !== !1) {
|
|
731
731
|
u.preventDefault(), d.deactivate();
|
|
732
732
|
return;
|
|
733
733
|
}
|
|
734
734
|
(l.isKeyForward(u) || l.isKeyBackward(u)) && j(u, l.isKeyBackward(u));
|
|
735
735
|
}, q = function(u) {
|
|
736
736
|
var f = Ae(u);
|
|
737
|
-
|
|
737
|
+
T(f) >= 0 || ye(l.clickOutsideDeactivates, u) || ye(l.allowOutsideClick, u) || (u.preventDefault(), u.stopImmediatePropagation());
|
|
738
738
|
}, I = function() {
|
|
739
739
|
if (o.active)
|
|
740
740
|
return Mt.activateTrap(c, d), o.delayInitialFocusTimer = l.delayInitialFocus ? Lt(function() {
|
|
@@ -752,7 +752,7 @@ var Mt = {
|
|
|
752
752
|
capture: !0,
|
|
753
753
|
passive: !1
|
|
754
754
|
}), d;
|
|
755
|
-
},
|
|
755
|
+
}, P = function() {
|
|
756
756
|
if (o.active)
|
|
757
757
|
return r.removeEventListener("focusin", G, !0), r.removeEventListener("mousedown", K, !0), r.removeEventListener("touchstart", K, !0), r.removeEventListener("click", q, !0), r.removeEventListener("keydown", Y, !0), d;
|
|
758
758
|
};
|
|
@@ -766,12 +766,12 @@ 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"), $ = g(u, "checkCanFocusTrap");
|
|
770
|
+
$ || B(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, f && f();
|
|
771
|
+
var p = function() {
|
|
772
|
+
$ && B(), I(), b && b();
|
|
773
773
|
};
|
|
774
|
-
return
|
|
774
|
+
return $ ? ($(o.containers.concat()).then(p, p), this) : (p(), this);
|
|
775
775
|
},
|
|
776
776
|
deactivate: function(u) {
|
|
777
777
|
if (!o.active)
|
|
@@ -781,27 +781,27 @@ var Mt = {
|
|
|
781
781
|
onPostDeactivate: l.onPostDeactivate,
|
|
782
782
|
checkCanReturnFocus: l.checkCanReturnFocus
|
|
783
783
|
}, u);
|
|
784
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
785
|
-
var b = g(f, "onDeactivate"),
|
|
784
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, P(), o.active = !1, o.paused = !1, Mt.deactivateTrap(c, d);
|
|
785
|
+
var b = g(f, "onDeactivate"), $ = g(f, "onPostDeactivate"), p = g(f, "checkCanReturnFocus"), F = g(f, "returnFocus", "returnFocusOnDeactivate");
|
|
786
786
|
b && b();
|
|
787
787
|
var y = function() {
|
|
788
788
|
Lt(function() {
|
|
789
|
-
F && A(
|
|
789
|
+
F && A(E(o.nodeFocusedBeforeActivation)), $ && $();
|
|
790
790
|
});
|
|
791
791
|
};
|
|
792
|
-
return F &&
|
|
792
|
+
return F && p ? (p(E(o.nodeFocusedBeforeActivation)).then(y, y), this) : (y(), this);
|
|
793
793
|
},
|
|
794
794
|
pause: function() {
|
|
795
|
-
return o.paused || !o.active ? this : (o.paused = !0,
|
|
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, B(), 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 && B(), this;
|
|
805
805
|
}
|
|
806
806
|
}, d.updateContainerElements(t), d;
|
|
807
807
|
};
|
|
@@ -856,12 +856,12 @@ const Fr = {
|
|
|
856
856
|
},
|
|
857
857
|
setup(n, { slots: t, emit: a }) {
|
|
858
858
|
let r;
|
|
859
|
-
const c = W(null), l =
|
|
859
|
+
const c = W(null), l = _(() => {
|
|
860
860
|
const d = c.value;
|
|
861
861
|
return d && (d instanceof HTMLElement ? d : d.$el);
|
|
862
862
|
});
|
|
863
863
|
function o() {
|
|
864
|
-
return r || (r =
|
|
864
|
+
return r || (r = Er(l.value, {
|
|
865
865
|
escapeDeactivates: n.escapeDeactivates,
|
|
866
866
|
allowOutsideClick: n.allowOutsideClick,
|
|
867
867
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -881,7 +881,7 @@ const Fr = {
|
|
|
881
881
|
}));
|
|
882
882
|
}
|
|
883
883
|
return Ze(() => {
|
|
884
|
-
|
|
884
|
+
Ee(() => 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(() => {
|
|
@@ -896,7 +896,7 @@ const Fr = {
|
|
|
896
896
|
renderImpl() {
|
|
897
897
|
if (!t.default)
|
|
898
898
|
return null;
|
|
899
|
-
const d = t.default().filter((
|
|
899
|
+
const d = t.default().filter((T) => T.type !== yn);
|
|
900
900
|
return !d || !d.length || d.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), d) : _n(d[0], { ref: c });
|
|
901
901
|
}
|
|
902
902
|
};
|
|
@@ -914,7 +914,7 @@ function Gt() {
|
|
|
914
914
|
}
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
|
-
var
|
|
917
|
+
var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Re = {}, Br = {
|
|
918
918
|
get exports() {
|
|
919
919
|
return Re;
|
|
920
920
|
},
|
|
@@ -923,9 +923,9 @@ var Ne = 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]",
|
|
927
|
-
|
|
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]", B = "[object Map]", A = "[object Number]", E = "[object Object]", K = "[object Promise]", G = "[object RegExp]", j = "[object Set]", Y = "[object String]", q = "[object Symbol]", I = "[object WeakMap]", P = "[object ArrayBuffer]", O = "[object DataView]", u = "[object Float32Array]", f = "[object Float64Array]", b = "[object Int8Array]", $ = "[object Int16Array]", p = "[object Int32Array]", F = "[object Uint8Array]", y = "[object Uint8ClampedArray]", L = "[object Uint16Array]", k = "[object Uint32Array]", X = /[\\^$.*+?()[\]{}|]/g, ee = /\w*$/, je = /^\[object .+?Constructor\]$/, he = /^(?: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[$] = x[p] = x[B] = x[A] = x[E] = x[G] = x[j] = x[Y] = x[q] = x[F] = x[y] = x[L] = x[k] = !0, x[T] = x[C] = x[I] = !1;
|
|
928
|
+
var Ut = typeof $e == "object" && $e && $e.Object === Object && $e, Yt = typeof self == "object" && self && self.Object === Object && self, te = 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
|
}
|
|
@@ -1042,11 +1042,11 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1042
1042
|
function Ca(e) {
|
|
1043
1043
|
return Se(this.__data__, e) > -1;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function Oa(e, i) {
|
|
1046
1046
|
var s = this.__data__, v = Se(s, e);
|
|
1047
1047
|
return v < 0 ? s.push([e, i]) : s[v][1] = i, this;
|
|
1048
1048
|
}
|
|
1049
|
-
ae.prototype.clear = ka, ae.prototype.delete = Sa, ae.prototype.get = Ia, ae.prototype.has = Ca, ae.prototype.set =
|
|
1049
|
+
ae.prototype.clear = ka, ae.prototype.delete = Sa, ae.prototype.get = Ia, ae.prototype.has = Ca, ae.prototype.set = Oa;
|
|
1050
1050
|
function de(e) {
|
|
1051
1051
|
var i = -1, s = e ? e.length : 0;
|
|
1052
1052
|
for (this.clear(); ++i < s; ) {
|
|
@@ -1054,7 +1054,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1054
1054
|
this.set(v[0], v[1]);
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function xa() {
|
|
1058
1058
|
this.__data__ = {
|
|
1059
1059
|
hash: new se(),
|
|
1060
1060
|
map: new (me || ae)(),
|
|
@@ -1064,16 +1064,16 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1064
1064
|
function Aa(e) {
|
|
1065
1065
|
return Ie(this, e).delete(e);
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function $a(e) {
|
|
1068
1068
|
return Ie(this, e).get(e);
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function Na(e) {
|
|
1071
1071
|
return Ie(this, e).has(e);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Ea(e, i) {
|
|
1074
1074
|
return Ie(this, e).set(e, i), this;
|
|
1075
1075
|
}
|
|
1076
|
-
de.prototype.clear =
|
|
1076
|
+
de.prototype.clear = xa, de.prototype.delete = Aa, de.prototype.get = $a, de.prototype.has = Na, de.prototype.set = Ea;
|
|
1077
1077
|
function fe(e) {
|
|
1078
1078
|
this.__data__ = new ae(e);
|
|
1079
1079
|
}
|
|
@@ -1130,28 +1130,28 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1130
1130
|
if (V = tn(e), !i)
|
|
1131
1131
|
return Ja(e, V);
|
|
1132
1132
|
} else {
|
|
1133
|
-
var be = ce(e),
|
|
1133
|
+
var be = ce(e), Ot = be == C || be == S;
|
|
1134
1134
|
if (dn(e))
|
|
1135
1135
|
return Va(e, i);
|
|
1136
|
-
if (be ==
|
|
1136
|
+
if (be == E || be == l || Ot && !H) {
|
|
1137
1137
|
if (ct(e))
|
|
1138
1138
|
return H ? e : {};
|
|
1139
|
-
if (V = an(
|
|
1139
|
+
if (V = an(Ot ? {} : e), !i)
|
|
1140
1140
|
return Qa(e, Za(V, e));
|
|
1141
1141
|
} else {
|
|
1142
|
-
if (!
|
|
1142
|
+
if (!x[be])
|
|
1143
1143
|
return H ? e : {};
|
|
1144
1144
|
V = nn(e, be, qe, i);
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
U || (U = new fe());
|
|
1148
|
-
var
|
|
1149
|
-
if (
|
|
1150
|
-
return
|
|
1148
|
+
var xt = U.get(e);
|
|
1149
|
+
if (xt)
|
|
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, Oe) {
|
|
1154
|
+
At && (Oe = Je, Je = e[Oe]), yt(V, Oe, qe(Je, i, s, v, Oe, e, U));
|
|
1155
1155
|
}), V;
|
|
1156
1156
|
}
|
|
1157
1157
|
function Pa(e) {
|
|
@@ -1240,14 +1240,14 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
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))) !=
|
|
1244
|
-
var i = ke.call(e), s = i ==
|
|
1243
|
+
(ze && ce(new ze(new ArrayBuffer(1))) != O || me && ce(new me()) != B || Ve && ce(Ve.resolve()) != K || We && ce(new We()) != j || Ge && ce(new Ge()) != I) && (ce = function(e) {
|
|
1244
|
+
var i = ke.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
|
-
return
|
|
1248
|
+
return O;
|
|
1249
1249
|
case ba:
|
|
1250
|
-
return
|
|
1250
|
+
return B;
|
|
1251
1251
|
case pa:
|
|
1252
1252
|
return K;
|
|
1253
1253
|
case ha:
|
|
@@ -1267,24 +1267,24 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1267
1267
|
function nn(e, i, s, v) {
|
|
1268
1268
|
var R = e.constructor;
|
|
1269
1269
|
switch (i) {
|
|
1270
|
-
case
|
|
1270
|
+
case P:
|
|
1271
1271
|
return Ue(e);
|
|
1272
1272
|
case d:
|
|
1273
1273
|
case g:
|
|
1274
1274
|
return new R(+e);
|
|
1275
|
-
case
|
|
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 $:
|
|
1281
|
+
case p:
|
|
1282
1282
|
case F:
|
|
1283
1283
|
case y:
|
|
1284
1284
|
case L:
|
|
1285
1285
|
case k:
|
|
1286
1286
|
return Xa(e, v);
|
|
1287
|
-
case
|
|
1287
|
+
case B:
|
|
1288
1288
|
return Ga(e, v, s);
|
|
1289
1289
|
case A:
|
|
1290
1290
|
case Y:
|
|
@@ -1382,7 +1382,7 @@ const Mr = Re, Lr = {
|
|
|
1382
1382
|
}, Hr = {
|
|
1383
1383
|
key: 2,
|
|
1384
1384
|
class: "level-primary bottom-items"
|
|
1385
|
-
}, zr = ["href", "target"],
|
|
1385
|
+
}, zr = { class: "sidebar-footer" }, Vr = ["href", "target"], Wr = /* @__PURE__ */ Q({
|
|
1386
1386
|
__name: "AppSidebar",
|
|
1387
1387
|
props: {
|
|
1388
1388
|
topItems: {
|
|
@@ -1450,32 +1450,32 @@ const Mr = Re, Lr = {
|
|
|
1450
1450
|
emits: ["click", "toggle"],
|
|
1451
1451
|
setup(n, { emit: t }) {
|
|
1452
1452
|
const a = n;
|
|
1453
|
-
et((
|
|
1454
|
-
"
|
|
1455
|
-
|
|
1456
|
-
"
|
|
1457
|
-
|
|
1458
|
-
"
|
|
1459
|
-
"
|
|
1460
|
-
"
|
|
1461
|
-
"
|
|
1462
|
-
|
|
1463
|
-
|
|
1453
|
+
et((p) => ({
|
|
1454
|
+
"95fdfa38": m(o).mobileHeight,
|
|
1455
|
+
"3083f0b8": m(o).mobileTop,
|
|
1456
|
+
"77679b78": n.zIndex,
|
|
1457
|
+
f14d803c: m(o).height,
|
|
1458
|
+
"2c47047a": m(o).top,
|
|
1459
|
+
"5bea84ce": m(g).marginTop,
|
|
1460
|
+
"24d345fe": m(d).display,
|
|
1461
|
+
"26616c55": m(d).minHeight,
|
|
1462
|
+
f27d8cee: m(T).top,
|
|
1463
|
+
d026c078: m(T).zIndex
|
|
1464
1464
|
}));
|
|
1465
|
-
const r = tt(), c =
|
|
1465
|
+
const r = tt(), c = _(() => !!r.header), l = _(() => !!r.top), o = _(() => ({
|
|
1466
1466
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1467
1467
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1468
1468
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
1469
1469
|
height: a.topOffset ? `calc(100% - ${a.topOffset}px)` : "100%"
|
|
1470
|
-
})), d =
|
|
1470
|
+
})), d = _(() => ({
|
|
1471
1471
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1472
1472
|
minHeight: `${a.headerHeight}px`
|
|
1473
|
-
})), g =
|
|
1473
|
+
})), g = _(() => ({
|
|
1474
1474
|
marginTop: c.value ? `${a.headerHeight}px` : "0"
|
|
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 = (
|
|
1478
|
+
})), C = (p) => Mr(p).map((y) => {
|
|
1479
1479
|
var L, k, X;
|
|
1480
1480
|
if (y) {
|
|
1481
1481
|
(!y.key || !((L = y.key) != null && L.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, "-"));
|
|
@@ -1483,37 +1483,37 @@ const Mr = Re, Lr = {
|
|
|
1483
1483
|
ee.parentKey = y.key, (!ee.testId || !((X = ee.testId) != null && X.trim())) && (ee.testId = String(ee.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1484
1484
|
}
|
|
1485
1485
|
return y;
|
|
1486
|
-
}), S =
|
|
1486
|
+
}), S = _(() => a.topItems.length ? C(a.topItems) : []), B = _(() => a.bottomItems.length ? C(a.bottomItems) : []), A = W(a.open), E = (p) => {
|
|
1487
1487
|
var F, y;
|
|
1488
|
-
A.value !==
|
|
1488
|
+
A.value !== p && (A.value = p, t("toggle", p)), p ? (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
1489
|
}, K = () => {
|
|
1490
|
-
a.mobileOverlayCloseOnClick &&
|
|
1491
|
-
}, G = W(!1), j = (
|
|
1492
|
-
G.value = !0, t("click",
|
|
1493
|
-
|
|
1490
|
+
a.mobileOverlayCloseOnClick && E(!1);
|
|
1491
|
+
}, G = W(!1), j = (p) => {
|
|
1492
|
+
G.value = !0, t("click", p), setTimeout(() => {
|
|
1493
|
+
E(!1);
|
|
1494
1494
|
}, a.mobileCloseDelay);
|
|
1495
1495
|
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1496
|
+
Ee(() => a.open, (p) => {
|
|
1497
|
+
E(p);
|
|
1498
1498
|
});
|
|
1499
1499
|
const { debounce: Y } = Gt(), q = Y(() => {
|
|
1500
|
-
A.value && I.value !== (window == null ? void 0 : window.innerWidth) && (I.value = window == null ? void 0 : window.innerWidth,
|
|
1501
|
-
}, 200), I = W(),
|
|
1502
|
-
|
|
1503
|
-
}, f = W(null), b =
|
|
1500
|
+
A.value && I.value !== (window == null ? void 0 : window.innerWidth) && (I.value = window == null ? void 0 : window.innerWidth, E(!1));
|
|
1501
|
+
}, 200), I = W(), P = W(!1), O = W(), u = () => {
|
|
1502
|
+
P.value || (P.value = !0, clearTimeout(O.value), O.value = setTimeout(() => P.value = !1, 1300));
|
|
1503
|
+
}, f = W(null), b = _(() => A.value && a.mobileEnabled), $ = async (p) => {
|
|
1504
1504
|
var F, y;
|
|
1505
|
-
|
|
1505
|
+
p ? (await wn(), await new Promise((L) => setTimeout(L, 300)), (F = f.value) == null || F.activate()) : (y = f.value) == null || y.deactivate();
|
|
1506
1506
|
};
|
|
1507
|
-
return
|
|
1508
|
-
|
|
1507
|
+
return Ee(b, async (p) => {
|
|
1508
|
+
p ? await $(!0) : await $(!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
|
-
}), (
|
|
1513
|
+
}), (p, F) => {
|
|
1514
1514
|
const y = oe("KIcon"), L = oe("KDropdownItem");
|
|
1515
|
-
return
|
|
1516
|
-
A.value && n.mobileOverlay && n.mobileEnabled ? (
|
|
1515
|
+
return h(), N(pe, null, [
|
|
1516
|
+
A.value && n.mobileOverlay && n.mobileEnabled ? (h(), N("div", {
|
|
1517
1517
|
key: 0,
|
|
1518
1518
|
class: "kong-ui-app-sidebar-overlay",
|
|
1519
1519
|
onClick: K
|
|
@@ -1525,35 +1525,35 @@ const Mr = Re, Lr = {
|
|
|
1525
1525
|
"allow-outside-click": "",
|
|
1526
1526
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1527
1527
|
}, {
|
|
1528
|
-
default:
|
|
1529
|
-
|
|
1528
|
+
default: Z(() => [
|
|
1529
|
+
w("aside", {
|
|
1530
1530
|
class: ne(["kong-ui-app-sidebar", {
|
|
1531
1531
|
"sidebar-open": A.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,
|
|
1535
|
-
"disable-transitions":
|
|
1535
|
+
"disable-transitions": P.value
|
|
1536
1536
|
}]),
|
|
1537
1537
|
tabindex: "-1"
|
|
1538
1538
|
}, [
|
|
1539
|
-
m(c) ? (
|
|
1540
|
-
|
|
1539
|
+
m(c) ? (h(), N("div", Lr, [
|
|
1540
|
+
D(p.$slots, "header", {}, void 0, !0)
|
|
1541
1541
|
])) : M("", !0),
|
|
1542
|
-
|
|
1543
|
-
m(l) ? (
|
|
1544
|
-
|
|
1542
|
+
w("div", Rr, [
|
|
1543
|
+
m(l) ? (h(), N("div", Zr, [
|
|
1544
|
+
D(p.$slots, "top", {}, void 0, !0)
|
|
1545
1545
|
])) : M("", !0),
|
|
1546
|
-
|
|
1547
|
-
m(S).length ? (
|
|
1548
|
-
(
|
|
1546
|
+
w("nav", Pr, [
|
|
1547
|
+
m(S).length ? (h(), N("ul", jr, [
|
|
1548
|
+
(h(!0), N(pe, null, _e(m(S), (k) => (h(), z(Nt, {
|
|
1549
1549
|
key: k.name,
|
|
1550
1550
|
item: k,
|
|
1551
1551
|
onClick: j
|
|
1552
1552
|
}, null, 8, ["item"]))), 128))
|
|
1553
1553
|
])) : M("", !0),
|
|
1554
|
-
m(S).length && m(
|
|
1555
|
-
m(
|
|
1556
|
-
(
|
|
1554
|
+
m(S).length && m(B).length ? (h(), N("div", Kr)) : M("", !0),
|
|
1555
|
+
m(B).length ? (h(), N("ul", Hr, [
|
|
1556
|
+
(h(!0), N(pe, null, _e(m(B), (k) => (h(), z(Nt, {
|
|
1557
1557
|
key: k.name,
|
|
1558
1558
|
item: k,
|
|
1559
1559
|
onClick: j
|
|
@@ -1561,42 +1561,46 @@ const Mr = Re, Lr = {
|
|
|
1561
1561
|
])) : M("", !0)
|
|
1562
1562
|
])
|
|
1563
1563
|
]),
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
(p(!0), E(pe, null, _e(n.profileItems, (k) => (p(), z(L, {
|
|
1572
|
-
key: k.name,
|
|
1573
|
-
class: ne([{ "has-divider": k.hasDivider }, { "external-profile-dropdown-link": (k.external || k.newWindow) && typeof k.to == "string" }]),
|
|
1574
|
-
"has-divider": k.hasDivider,
|
|
1575
|
-
item: (k.external || k.newWindow) && typeof k.to == "string" ? void 0 : { label: k.name, to: k.to },
|
|
1576
|
-
onClick: (X) => j(k)
|
|
1564
|
+
w("div", zr, [
|
|
1565
|
+
D(p.$slots, "footer", {}, () => [
|
|
1566
|
+
n.profileName || n.profileItems.length ? (h(), z(sr, {
|
|
1567
|
+
key: 0,
|
|
1568
|
+
class: "sidebar-profile-menu",
|
|
1569
|
+
"item-count": n.profileItems.length,
|
|
1570
|
+
name: n.profileName
|
|
1577
1571
|
}, {
|
|
1578
|
-
default:
|
|
1579
|
-
(
|
|
1580
|
-
key:
|
|
1581
|
-
class: "
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1572
|
+
default: Z(() => [
|
|
1573
|
+
(h(!0), N(pe, null, _e(n.profileItems, (k) => (h(), z(L, {
|
|
1574
|
+
key: k.name,
|
|
1575
|
+
class: ne([{ "has-divider": k.hasDivider }, { "external-profile-dropdown-link": (k.external || k.newWindow) && typeof k.to == "string" }]),
|
|
1576
|
+
"has-divider": k.hasDivider,
|
|
1577
|
+
item: (k.external || k.newWindow) && typeof k.to == "string" ? void 0 : { label: k.name, to: k.to },
|
|
1578
|
+
onClick: (X) => j(k)
|
|
1579
|
+
}, {
|
|
1580
|
+
default: Z(() => [
|
|
1581
|
+
(k.external || k.newWindow) && typeof k.to == "string" ? (h(), N("a", {
|
|
1582
|
+
key: 0,
|
|
1583
|
+
class: "sidebar-item-external-link",
|
|
1584
|
+
href: k.to,
|
|
1585
|
+
target: k.newWindow ? "_blank" : void 0
|
|
1586
|
+
}, [
|
|
1587
|
+
Fe(ie(k.name) + " ", 1),
|
|
1588
|
+
k.newWindow ? (h(), z(y, {
|
|
1589
|
+
key: 0,
|
|
1590
|
+
color: "var(--black-70, rgba(0,0,0,0.7))",
|
|
1591
|
+
icon: "externalLink",
|
|
1592
|
+
size: "20",
|
|
1593
|
+
viewBox: "0 0 20 20"
|
|
1594
|
+
})) : M("", !0)
|
|
1595
|
+
], 8, Vr)) : M("", !0)
|
|
1596
|
+
]),
|
|
1597
|
+
_: 2
|
|
1598
|
+
}, 1032, ["class", "has-divider", "item", "onClick"]))), 128))
|
|
1594
1599
|
]),
|
|
1595
|
-
_:
|
|
1596
|
-
},
|
|
1597
|
-
])
|
|
1598
|
-
|
|
1599
|
-
}, 8, ["item-count", "name"])) : M("", !0)
|
|
1600
|
+
_: 1
|
|
1601
|
+
}, 8, ["item-count", "name"])) : M("", !0)
|
|
1602
|
+
], !0)
|
|
1603
|
+
])
|
|
1600
1604
|
], 2)
|
|
1601
1605
|
]),
|
|
1602
1606
|
_: 3
|
|
@@ -1605,11 +1609,11 @@ const Mr = Re, Lr = {
|
|
|
1605
1609
|
};
|
|
1606
1610
|
}
|
|
1607
1611
|
});
|
|
1608
|
-
const
|
|
1609
|
-
qr,
|
|
1612
|
+
const Gr = /* @__PURE__ */ J(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 = [
|
|
1610
1613
|
Ur,
|
|
1611
|
-
Yr
|
|
1612
|
-
|
|
1614
|
+
Yr,
|
|
1615
|
+
Xr
|
|
1616
|
+
], Qr = /* @__PURE__ */ Q({
|
|
1613
1617
|
__name: "SidebarToggle",
|
|
1614
1618
|
props: {
|
|
1615
1619
|
active: {
|
|
@@ -1622,25 +1626,25 @@ const Wr = /* @__PURE__ */ J(Vr, [["__scopeId", "data-v-38b80087"]]), rt = (n) =
|
|
|
1622
1626
|
const a = n, r = W(a.active || !1), c = () => {
|
|
1623
1627
|
r.value = !r.value, t("toggle", r.value);
|
|
1624
1628
|
};
|
|
1625
|
-
return
|
|
1629
|
+
return Ee(() => a.active, (l) => {
|
|
1626
1630
|
r.value = l;
|
|
1627
|
-
}), (l, o) => (
|
|
1631
|
+
}), (l, o) => (h(), N("a", {
|
|
1628
1632
|
"aria-haspopup": "true",
|
|
1629
1633
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1630
1634
|
class: ne(["sidebar-menu-toggle", { active: r.value }]),
|
|
1631
1635
|
href: "#",
|
|
1632
1636
|
role: "button",
|
|
1633
1637
|
onClick: Zt(c, ["prevent"])
|
|
1634
|
-
},
|
|
1638
|
+
}, Jr, 10, qr));
|
|
1635
1639
|
}
|
|
1636
1640
|
});
|
|
1637
|
-
const
|
|
1641
|
+
const ei = /* @__PURE__ */ J(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 = {
|
|
1638
1642
|
key: 0,
|
|
1639
1643
|
class: "navbar-logo"
|
|
1640
|
-
},
|
|
1644
|
+
}, ii = {
|
|
1641
1645
|
class: "kong-ui-app-layout-main",
|
|
1642
1646
|
"data-testid": "kong-ui-app-layout-main"
|
|
1643
|
-
},
|
|
1647
|
+
}, oi = { class: "kong-ui-app-layout-content" }, si = /* @__PURE__ */ ti(() => /* @__PURE__ */ w("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), ci = /* @__PURE__ */ Q({
|
|
1644
1648
|
__name: "AppLayout",
|
|
1645
1649
|
props: {
|
|
1646
1650
|
hideDefaultSlot: {
|
|
@@ -1682,43 +1686,44 @@ const Qr = /* @__PURE__ */ J(Jr, [["__scopeId", "data-v-33b3f7c3"]]), ei = (n) =
|
|
|
1682
1686
|
setup(n, { emit: t }) {
|
|
1683
1687
|
const a = n;
|
|
1684
1688
|
et((I) => ({
|
|
1685
|
-
|
|
1686
|
-
"
|
|
1689
|
+
"2bfd7598": m(K),
|
|
1690
|
+
"2d767d27": m(G)
|
|
1687
1691
|
}));
|
|
1688
|
-
const r = tt(), c =
|
|
1689
|
-
navbarLeft:
|
|
1690
|
-
navbarCenter:
|
|
1691
|
-
navbarRight:
|
|
1692
|
-
navbarLogo:
|
|
1693
|
-
navbarMobileLogo:
|
|
1694
|
-
sidebarHeader:
|
|
1695
|
-
sidebarTop:
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1692
|
+
const r = tt(), c = Ne({
|
|
1693
|
+
navbarLeft: _(() => !!r["navbar-left"]),
|
|
1694
|
+
navbarCenter: _(() => !!r["navbar-center"]),
|
|
1695
|
+
navbarRight: _(() => !!r["navbar-right"]),
|
|
1696
|
+
navbarLogo: _(() => !!r["navbar-logo"]),
|
|
1697
|
+
navbarMobileLogo: _(() => !!r["navbar-mobile-logo"]),
|
|
1698
|
+
sidebarHeader: _(() => !!r["sidebar-header"]),
|
|
1699
|
+
sidebarTop: _(() => !!r["sidebar-top"]),
|
|
1700
|
+
sidebarFooter: _(() => !!r["sidebar-footer"])
|
|
1701
|
+
}), l = _(() => a.hideDefaultSlot), o = Ne({
|
|
1702
|
+
hidden: _(() => a.navbarHidden)
|
|
1703
|
+
}), d = Ne({
|
|
1704
|
+
topItems: _(() => a.sidebarTopItems),
|
|
1705
|
+
bottomItems: _(() => a.sidebarBottomItems),
|
|
1706
|
+
profileItems: _(() => a.sidebarProfileItems),
|
|
1707
|
+
profileName: _(() => a.sidebarProfileName),
|
|
1708
|
+
open: _(() => a.sidebarOpen),
|
|
1709
|
+
hidden: _(() => a.sidebarHidden)
|
|
1705
1710
|
}), g = (I) => {
|
|
1706
1711
|
t("sidebar-click", I);
|
|
1707
|
-
},
|
|
1708
|
-
|
|
1712
|
+
}, T = W(!1), C = (I) => {
|
|
1713
|
+
T.value = I;
|
|
1709
1714
|
};
|
|
1710
1715
|
Tn(() => {
|
|
1711
|
-
|
|
1716
|
+
T.value = kn(d, "open").value || !1;
|
|
1712
1717
|
});
|
|
1713
|
-
const S = W(0),
|
|
1718
|
+
const S = W(0), B = W(60), A = W(0), E = _(() => o.hidden ? A.value : B.value + A.value), K = _(() => `${E.value}px`), G = _(() => d.hidden || o.hidden ? "0" : "16px"), { debounce: j } = Gt(), Y = j((I = !1) => {
|
|
1714
1719
|
if (I || S.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1715
|
-
const
|
|
1716
|
-
|
|
1720
|
+
const P = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1721
|
+
P && (A.value = P.offsetHeight);
|
|
1717
1722
|
}
|
|
1718
1723
|
}, 200), q = W();
|
|
1719
1724
|
return Ze(() => {
|
|
1720
|
-
var
|
|
1721
|
-
(
|
|
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, Y(!0);
|
|
1722
1727
|
const I = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1723
1728
|
I && (q.value = new ResizeObserver((u) => {
|
|
1724
1729
|
for (const f of u) {
|
|
@@ -1728,24 +1733,24 @@ const Qr = /* @__PURE__ */ J(Jr, [["__scopeId", "data-v-33b3f7c3"]]), ei = (n) =
|
|
|
1728
1733
|
}), q.value.observe(I)), window.addEventListener("resize", Y);
|
|
1729
1734
|
}), Pt(() => {
|
|
1730
1735
|
q.value && q.value.disconnect(), window.removeEventListener("resize", Y);
|
|
1731
|
-
}), (I,
|
|
1736
|
+
}), (I, P) => (h(), N("div", {
|
|
1732
1737
|
class: ne(["kong-ui-app-layout", [
|
|
1733
1738
|
{ "navbar-hidden": o.hidden },
|
|
1734
1739
|
{ "sidebar-hidden": d.hidden }
|
|
1735
1740
|
]])
|
|
1736
1741
|
}, [
|
|
1737
|
-
|
|
1738
|
-
|
|
1742
|
+
w("div", ai, [
|
|
1743
|
+
D(I.$slots, "notification", {}, void 0, !0)
|
|
1739
1744
|
]),
|
|
1740
|
-
o.hidden ? M("", !0) : (
|
|
1745
|
+
o.hidden ? M("", !0) : (h(), z(Dn, {
|
|
1741
1746
|
key: String(d.hidden),
|
|
1742
1747
|
"left-offset": d.hidden ? 0 : void 0,
|
|
1743
1748
|
"top-offset": A.value
|
|
1744
|
-
},
|
|
1745
|
-
"mobile-sidebar-toggle":
|
|
1746
|
-
d.hidden ? M("", !0) : (
|
|
1749
|
+
}, $t({
|
|
1750
|
+
"mobile-sidebar-toggle": Z(() => [
|
|
1751
|
+
d.hidden ? M("", !0) : (h(), z(ei, {
|
|
1747
1752
|
key: 0,
|
|
1748
|
-
active:
|
|
1753
|
+
active: T.value,
|
|
1749
1754
|
onToggle: C
|
|
1750
1755
|
}, null, 8, ["active"]))
|
|
1751
1756
|
]),
|
|
@@ -1753,85 +1758,92 @@ const Qr = /* @__PURE__ */ J(Jr, [["__scopeId", "data-v-33b3f7c3"]]), ei = (n) =
|
|
|
1753
1758
|
}, [
|
|
1754
1759
|
c.navbarMobileLogo ? {
|
|
1755
1760
|
name: "mobile-logo",
|
|
1756
|
-
fn:
|
|
1757
|
-
|
|
1758
|
-
|
|
1761
|
+
fn: Z(() => [
|
|
1762
|
+
w("div", ni, [
|
|
1763
|
+
D(I.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1759
1764
|
])
|
|
1760
1765
|
]),
|
|
1761
1766
|
key: "0"
|
|
1762
1767
|
} : void 0,
|
|
1763
1768
|
c.navbarLogo ? {
|
|
1764
1769
|
name: "logo",
|
|
1765
|
-
fn:
|
|
1766
|
-
d.hidden ? (
|
|
1767
|
-
|
|
1770
|
+
fn: Z(() => [
|
|
1771
|
+
d.hidden ? (h(), N("div", ri, [
|
|
1772
|
+
D(I.$slots, "navbar-logo", {}, void 0, !0)
|
|
1768
1773
|
])) : M("", !0)
|
|
1769
1774
|
]),
|
|
1770
1775
|
key: "1"
|
|
1771
1776
|
} : void 0,
|
|
1772
1777
|
c.navbarLeft ? {
|
|
1773
1778
|
name: "left",
|
|
1774
|
-
fn:
|
|
1775
|
-
|
|
1779
|
+
fn: Z(() => [
|
|
1780
|
+
D(I.$slots, "navbar-left", {}, void 0, !0)
|
|
1776
1781
|
]),
|
|
1777
1782
|
key: "2"
|
|
1778
1783
|
} : void 0,
|
|
1779
1784
|
c.navbarCenter ? {
|
|
1780
1785
|
name: "center",
|
|
1781
|
-
fn:
|
|
1782
|
-
|
|
1786
|
+
fn: Z(() => [
|
|
1787
|
+
D(I.$slots, "navbar-center", {}, void 0, !0)
|
|
1783
1788
|
]),
|
|
1784
1789
|
key: "3"
|
|
1785
1790
|
} : void 0,
|
|
1786
1791
|
c.navbarRight ? {
|
|
1787
1792
|
name: "right",
|
|
1788
|
-
fn:
|
|
1789
|
-
|
|
1793
|
+
fn: Z(() => [
|
|
1794
|
+
D(I.$slots, "navbar-right", {}, void 0, !0)
|
|
1790
1795
|
]),
|
|
1791
1796
|
key: "4"
|
|
1792
1797
|
} : void 0
|
|
1793
1798
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1794
|
-
d.hidden ? M("", !0) : (
|
|
1799
|
+
d.hidden ? M("", !0) : (h(), z(Gr, {
|
|
1795
1800
|
key: 1,
|
|
1796
1801
|
"bottom-items": d.bottomItems,
|
|
1797
|
-
"header-height":
|
|
1802
|
+
"header-height": B.value,
|
|
1798
1803
|
"mobile-enabled": "",
|
|
1799
1804
|
"mobile-header-visible": !1,
|
|
1800
|
-
"mobile-top-offset": m(
|
|
1801
|
-
open:
|
|
1805
|
+
"mobile-top-offset": m(E),
|
|
1806
|
+
open: T.value,
|
|
1802
1807
|
"profile-items": d.profileItems,
|
|
1803
1808
|
"profile-name": d.profileName,
|
|
1804
1809
|
"top-items": d.topItems,
|
|
1805
1810
|
"top-offset": A.value,
|
|
1806
1811
|
onClick: g,
|
|
1807
1812
|
onToggle: C
|
|
1808
|
-
},
|
|
1813
|
+
}, $t({ _: 2 }, [
|
|
1809
1814
|
c.sidebarHeader ? {
|
|
1810
1815
|
name: "header",
|
|
1811
|
-
fn:
|
|
1812
|
-
|
|
1816
|
+
fn: Z(() => [
|
|
1817
|
+
D(I.$slots, "sidebar-header", {}, void 0, !0)
|
|
1813
1818
|
]),
|
|
1814
1819
|
key: "0"
|
|
1815
1820
|
} : void 0,
|
|
1816
1821
|
c.sidebarTop ? {
|
|
1817
1822
|
name: "top",
|
|
1818
|
-
fn:
|
|
1819
|
-
|
|
1823
|
+
fn: Z(() => [
|
|
1824
|
+
D(I.$slots, "sidebar-top", {}, void 0, !0)
|
|
1820
1825
|
]),
|
|
1821
1826
|
key: "1"
|
|
1827
|
+
} : void 0,
|
|
1828
|
+
c.sidebarFooter ? {
|
|
1829
|
+
name: "footer",
|
|
1830
|
+
fn: Z(() => [
|
|
1831
|
+
D(I.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1832
|
+
]),
|
|
1833
|
+
key: "2"
|
|
1822
1834
|
} : void 0
|
|
1823
1835
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "profile-items", "profile-name", "top-items", "top-offset"])),
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
m(l) ? M("", !0) :
|
|
1836
|
+
w("main", ii, [
|
|
1837
|
+
w("div", oi, [
|
|
1838
|
+
si,
|
|
1839
|
+
D(I.$slots, "app-error", {}, void 0, !0),
|
|
1840
|
+
m(l) ? M("", !0) : D(I.$slots, "default", { key: 0 }, void 0, !0)
|
|
1829
1841
|
])
|
|
1830
1842
|
])
|
|
1831
1843
|
], 2));
|
|
1832
1844
|
}
|
|
1833
1845
|
});
|
|
1834
|
-
const
|
|
1846
|
+
const li = /* @__PURE__ */ J(ci, [["__scopeId", "data-v-421b8aac"]]), ui = /* @__PURE__ */ Q({
|
|
1835
1847
|
__name: "NavbarDropdownMenu",
|
|
1836
1848
|
props: {
|
|
1837
1849
|
options: {
|
|
@@ -1858,8 +1870,8 @@ const ci = /* @__PURE__ */ J(si, [["__scopeId", "data-v-c8f90c1e"]]), li = /* @_
|
|
|
1858
1870
|
r.value = o, t("change", r.value);
|
|
1859
1871
|
};
|
|
1860
1872
|
return (o, d) => {
|
|
1861
|
-
const g = oe("KDropdownItem"),
|
|
1862
|
-
return
|
|
1873
|
+
const g = oe("KDropdownItem"), T = oe("KDropdownMenu");
|
|
1874
|
+
return h(), z(T, {
|
|
1863
1875
|
appearance: "selectionMenu",
|
|
1864
1876
|
class: "top-bar-dropdown-menu",
|
|
1865
1877
|
disabled: n.disabled,
|
|
@@ -1869,16 +1881,16 @@ const ci = /* @__PURE__ */ J(si, [["__scopeId", "data-v-c8f90c1e"]]), li = /* @_
|
|
|
1869
1881
|
width: n.width,
|
|
1870
1882
|
onChange: d[0] || (d[0] = (C) => c(C))
|
|
1871
1883
|
}, {
|
|
1872
|
-
items:
|
|
1873
|
-
|
|
1874
|
-
(
|
|
1884
|
+
items: Z(({ handleSelection: C }) => [
|
|
1885
|
+
D(o.$slots, "default", {}, () => [
|
|
1886
|
+
(h(!0), N(pe, null, _e(n.options, (S) => (h(), z(g, {
|
|
1875
1887
|
key: S.value,
|
|
1876
1888
|
"data-testid": "select-" + S.value,
|
|
1877
1889
|
selected: r.value.value === S.value,
|
|
1878
|
-
onClick: (
|
|
1890
|
+
onClick: (B) => C(S)
|
|
1879
1891
|
}, {
|
|
1880
|
-
default:
|
|
1881
|
-
|
|
1892
|
+
default: Z(() => [
|
|
1893
|
+
D(o.$slots, "default", { option: S }, () => [
|
|
1882
1894
|
Fe(ie(S.label), 1)
|
|
1883
1895
|
], !0)
|
|
1884
1896
|
]),
|
|
@@ -1891,52 +1903,52 @@ const ci = /* @__PURE__ */ J(si, [["__scopeId", "data-v-c8f90c1e"]]), li = /* @_
|
|
|
1891
1903
|
};
|
|
1892
1904
|
}
|
|
1893
1905
|
});
|
|
1894
|
-
const
|
|
1906
|
+
const Si = /* @__PURE__ */ J(ui, [["__scopeId", "data-v-b5a37136"]]), di = {}, fi = {
|
|
1895
1907
|
fill: "none",
|
|
1896
1908
|
height: "130",
|
|
1897
1909
|
width: "130",
|
|
1898
1910
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1899
|
-
},
|
|
1900
|
-
|
|
1911
|
+
}, vi = /* @__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), bi = [
|
|
1912
|
+
vi
|
|
1901
1913
|
];
|
|
1902
|
-
function
|
|
1903
|
-
return
|
|
1914
|
+
function pi(n, t) {
|
|
1915
|
+
return h(), N("svg", fi, bi);
|
|
1904
1916
|
}
|
|
1905
|
-
const
|
|
1917
|
+
const hi = /* @__PURE__ */ J(di, [["render", pi]]), qt = (n) => (at("data-v-ff05f71e"), n = n(), nt(), n), mi = { class: "kong-ui-app-error" }, gi = { class: "banana-icon" }, yi = { class: "kong-ui-app-error-content" }, _i = /* @__PURE__ */ qt(() => /* @__PURE__ */ w("h2", null, "An unexpected error has occurred", -1)), wi = /* @__PURE__ */ qt(() => /* @__PURE__ */ w("p", null, [
|
|
1906
1918
|
/* @__PURE__ */ Fe("Go back to the previous page or "),
|
|
1907
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ w("a", { href: "/" }, "return home"),
|
|
1908
1920
|
/* @__PURE__ */ Fe(".")
|
|
1909
|
-
], -1)),
|
|
1921
|
+
], -1)), Ti = /* @__PURE__ */ Q({
|
|
1910
1922
|
__name: "AppError",
|
|
1911
1923
|
setup(n) {
|
|
1912
|
-
return (t, a) => (
|
|
1913
|
-
|
|
1914
|
-
Pe(
|
|
1924
|
+
return (t, a) => (h(), N("section", mi, [
|
|
1925
|
+
w("div", gi, [
|
|
1926
|
+
Pe(hi)
|
|
1915
1927
|
]),
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1928
|
+
w("div", yi, [
|
|
1929
|
+
D(t.$slots, "default", {}, () => [
|
|
1930
|
+
_i,
|
|
1931
|
+
wi
|
|
1920
1932
|
], !0)
|
|
1921
1933
|
])
|
|
1922
1934
|
]));
|
|
1923
1935
|
}
|
|
1924
1936
|
});
|
|
1925
|
-
const
|
|
1937
|
+
const Ii = /* @__PURE__ */ J(Ti, [["__scopeId", "data-v-ff05f71e"]]), Ci = {
|
|
1926
1938
|
// Customize Vue plugin options as desired
|
|
1927
1939
|
// Providing a `name` property allows for customizing the registered
|
|
1928
1940
|
// name of your component (useful if exporting a single component).
|
|
1929
1941
|
install: (n, t = {}) => {
|
|
1930
|
-
n.component(t.name || "AppLayout",
|
|
1942
|
+
n.component(t.name || "AppLayout", li);
|
|
1931
1943
|
}
|
|
1932
1944
|
};
|
|
1933
1945
|
export {
|
|
1934
|
-
|
|
1935
|
-
|
|
1946
|
+
Ii as AppError,
|
|
1947
|
+
li as AppLayout,
|
|
1936
1948
|
Dn as AppNavbar,
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1949
|
+
Gr as AppSidebar,
|
|
1950
|
+
Si as NavbarDropdownMenu,
|
|
1951
|
+
ei as SidebarToggle,
|
|
1952
|
+
Ci as default
|
|
1941
1953
|
};
|
|
1942
1954
|
//# sourceMappingURL=app-layout.es.js.map
|