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