@kong-ui-public/app-layout 0.13.14 → 0.13.15
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 +828 -814
- package/dist/app-layout.es.js.map +1 -1
- package/dist/app-layout.umd.js +6 -6
- package/dist/app-layout.umd.js.map +1 -1
- package/dist/types/components/AppLayout.vue.d.ts.map +1 -1
- package/dist/types/components/errors/AppError.vue.d.ts.map +1 -1
- package/dist/types/components/navbar/AppNavbar.vue.d.ts.map +1 -1
- package/dist/types/components/navbar/NavbarDropdownMenu.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/ItemBadge.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarFooter.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarItem.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/app-layout.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as w, reactive as Ee, onMounted as Ze, openBlock as p, createElementBlock as E, createElementVNode as T, renderSlot as B, createCommentVNode as M, toDisplayString as ie, resolveComponent as oe, normalizeClass as ne, createBlock as z, resolveDynamicComponent as hn, withCtx as P, withKeys as mn, createVNode as Pe, Fragment as pe, renderList as _e, withModifiers as Zt, ref as W, watch as $e, onUnmounted as gn, Comment as yn, cloneVNode as _n, onBeforeUnmount as Pt, createTextVNode as Fe, nextTick as wn, pushScopeId as at, popScopeId as nt, watchEffect as Tn, toRef as kn, createSlots as Nt, createStaticVNode as Sn } from "vue";
|
|
2
|
+
const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, xn = { class: "mobile-header-left" }, On = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "app-navbar-logo"
|
|
5
|
-
},
|
|
5
|
+
}, An = { class: "navbar-content" }, Nn = { class: "navbar-content-left" }, En = { class: "navbar-content-center" }, $n = { class: "navbar-content-right" }, Fn = /* @__PURE__ */ Q({
|
|
6
6
|
__name: "AppNavbar",
|
|
7
7
|
props: {
|
|
8
8
|
topOffset: {
|
|
@@ -21,44 +21,44 @@ const Sn = { class: "kong-ui-app-navbar" }, In = { class: "header-content" }, Cn
|
|
|
21
21
|
},
|
|
22
22
|
setup(n) {
|
|
23
23
|
const t = n;
|
|
24
|
-
et((
|
|
25
|
-
e7993570: m(
|
|
26
|
-
"591d67a5": m(
|
|
27
|
-
"0b950b18": m(
|
|
24
|
+
et((o) => ({
|
|
25
|
+
e7993570: m(l).top,
|
|
26
|
+
"591d67a5": m(l).zIndex,
|
|
27
|
+
"0b950b18": m(l).left,
|
|
28
28
|
74170388: c.marginRight,
|
|
29
29
|
"482efd74": c.width
|
|
30
30
|
}));
|
|
31
|
-
const a = tt(), r =
|
|
31
|
+
const a = tt(), r = w(() => !!a.logo), c = Ee({
|
|
32
32
|
marginRight: "0",
|
|
33
33
|
width: "0"
|
|
34
34
|
});
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
(
|
|
35
|
+
Ze(() => {
|
|
36
|
+
var o, d;
|
|
37
|
+
(d = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && d.length ? (c.marginRight = "32px", c.width = "calc(240px - 32px)") : (c.marginRight = "0", c.width = "0");
|
|
38
38
|
});
|
|
39
|
-
const
|
|
39
|
+
const l = w(() => ({
|
|
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 (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
return (o, d) => (p(), E("header", In, [
|
|
45
|
+
T("div", Cn, [
|
|
46
|
+
T("div", xn, [
|
|
47
|
+
B(o.$slots, "mobile-sidebar-toggle"),
|
|
48
|
+
B(o.$slots, "mobile-logo")
|
|
49
49
|
]),
|
|
50
|
-
m(r) ? (p(),
|
|
51
|
-
|
|
52
|
-
])) :
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
m(r) ? (p(), E("div", On, [
|
|
51
|
+
B(o.$slots, "logo")
|
|
52
|
+
])) : M("", !0),
|
|
53
|
+
T("div", An, [
|
|
54
|
+
T("div", Nn, [
|
|
55
|
+
B(o.$slots, "left")
|
|
56
56
|
]),
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
T("div", En, [
|
|
58
|
+
B(o.$slots, "center")
|
|
59
59
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
T("div", $n, [
|
|
61
|
+
B(o.$slots, "right")
|
|
62
62
|
])
|
|
63
63
|
])
|
|
64
64
|
])
|
|
@@ -70,7 +70,7 @@ const J = (n, t) => {
|
|
|
70
70
|
for (const [r, c] of t)
|
|
71
71
|
a[r] = c;
|
|
72
72
|
return a;
|
|
73
|
-
},
|
|
73
|
+
}, Dn = /* @__PURE__ */ J(Fn, [["__scopeId", "data-v-b7131fb2"]]), Bn = ["title"], Mn = /* @__PURE__ */ Q({
|
|
74
74
|
__name: "ItemBadge",
|
|
75
75
|
props: {
|
|
76
76
|
count: {
|
|
@@ -80,21 +80,21 @@ const J = (n, t) => {
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
setup(n) {
|
|
83
|
-
const t = n, a = 99, r =
|
|
84
|
-
return (c,
|
|
83
|
+
const t = n, a = 99, r = w(() => t.count ? t.count > a ? `${a}+` : t.count.toString() : "");
|
|
84
|
+
return (c, l) => m(r) ? (p(), E("div", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "item-badge",
|
|
87
87
|
title: (n.count || 0) > a ? String(n.count) : void 0
|
|
88
|
-
}, ie(m(r)), 9,
|
|
88
|
+
}, ie(m(r)), 9, Bn)) : M("", !0);
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
const
|
|
91
|
+
const Ln = /* @__PURE__ */ J(Mn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["data-testid"], Zn = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], Pn = {
|
|
92
92
|
key: 0,
|
|
93
93
|
class: "sidebar-item-icon"
|
|
94
|
-
},
|
|
94
|
+
}, jn = { class: "sidebar-item-name-container" }, Kn = { class: "sidebar-item-name has-tooltip" }, Hn = {
|
|
95
95
|
key: 2,
|
|
96
96
|
class: "sidebar-item-label truncate-text truncate-20"
|
|
97
|
-
},
|
|
97
|
+
}, zn = ["id"], Vn = /* @__PURE__ */ Q({
|
|
98
98
|
__name: "SidebarItem",
|
|
99
99
|
props: {
|
|
100
100
|
item: {
|
|
@@ -108,49 +108,49 @@ const Bn = /* @__PURE__ */ J(Rn, [["__scopeId", "data-v-9e48c714"]]), Mn = ["dat
|
|
|
108
108
|
},
|
|
109
109
|
emits: ["click"],
|
|
110
110
|
setup(n, { emit: t }) {
|
|
111
|
-
const a = n, r =
|
|
112
|
-
t("click",
|
|
113
|
-
},
|
|
114
|
-
|
|
111
|
+
const a = n, r = w(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), c = w(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), l = w(() => a.subnavItem && a.item.badgeCount !== void 0), o = (g) => {
|
|
112
|
+
t("click", g);
|
|
113
|
+
}, d = (g, _, C) => {
|
|
114
|
+
o(_), typeof C == "function" && (g.preventDefault(), C());
|
|
115
115
|
};
|
|
116
|
-
return (
|
|
117
|
-
var
|
|
118
|
-
const
|
|
119
|
-
return p(),
|
|
116
|
+
return (g, _) => {
|
|
117
|
+
var A;
|
|
118
|
+
const C = oe("KIcon"), S = oe("KTooltip"), D = oe("SidebarItem", !0);
|
|
119
|
+
return p(), E("li", {
|
|
120
120
|
class: ne([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
121
121
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
122
122
|
}, [
|
|
123
|
-
(p(), z(
|
|
123
|
+
(p(), z(hn(m(r) ? "div" : "router-link"), {
|
|
124
124
|
custom: m(r) ? void 0 : !0,
|
|
125
125
|
to: !m(r) && !m(c) ? n.item.to : void 0
|
|
126
126
|
}, {
|
|
127
|
-
default: P((
|
|
128
|
-
var
|
|
127
|
+
default: P(($) => {
|
|
128
|
+
var K, G;
|
|
129
129
|
return [
|
|
130
|
-
|
|
131
|
-
"aria-controls": (
|
|
130
|
+
T("a", {
|
|
131
|
+
"aria-controls": (K = n.item.items) != null && K.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
132
132
|
"aria-expanded": (G = n.item.items) != null && G.length && n.item.expanded ? !0 : void 0,
|
|
133
133
|
class: ne(["sidebar-item-link", { "sidebar-item-external-link": m(c), "router-link": !m(r) }]),
|
|
134
|
-
href: m(r) ? String(n.item.to || "#") :
|
|
134
|
+
href: m(r) ? String(n.item.to || "#") : $ == null ? void 0 : $.href,
|
|
135
135
|
target: m(c) ? "_blank" : void 0,
|
|
136
|
-
onClick: (j) =>
|
|
137
|
-
onKeypress:
|
|
136
|
+
onClick: (j) => d(j, n.item, $ == null ? void 0 : $.navigate),
|
|
137
|
+
onKeypress: mn((j) => d(j, n.item, $ == null ? void 0 : $.navigate), ["enter"])
|
|
138
138
|
}, [
|
|
139
|
-
|
|
140
|
-
class: ne(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": m(
|
|
139
|
+
T("div", {
|
|
140
|
+
class: ne(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": m(l) }])
|
|
141
141
|
}, [
|
|
142
|
-
n.item.icon ? (p(),
|
|
143
|
-
|
|
142
|
+
n.item.icon ? (p(), E("div", Pn, [
|
|
143
|
+
Pe(C, {
|
|
144
144
|
color: n.item.active || n.item.expanded ? "var(--white, #fff)" : "#B5BECD",
|
|
145
145
|
icon: String(n.item.icon),
|
|
146
146
|
size: "20"
|
|
147
147
|
}, null, 8, ["color", "icon"])
|
|
148
|
-
])) :
|
|
149
|
-
|
|
150
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(),
|
|
148
|
+
])) : M("", !0),
|
|
149
|
+
T("div", jn, [
|
|
150
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), E("div", {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: ne(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
153
|
-
}, ie(n.item.name), 3)) : (p(), z(
|
|
153
|
+
}, ie(n.item.name), 3)) : (p(), z(S, {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "sidebar-item-tooltip",
|
|
156
156
|
label: n.item.name,
|
|
@@ -158,69 +158,69 @@ const Bn = /* @__PURE__ */ J(Rn, [["__scopeId", "data-v-9e48c714"]]), Mn = ["dat
|
|
|
158
158
|
"position-fixed": ""
|
|
159
159
|
}, {
|
|
160
160
|
default: P(() => [
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
class: ne(["truncate-text", [n.subnavItem ? "truncate-20" : "truncate-17", { "has-badge-max-width": m(
|
|
161
|
+
T("div", Kn, [
|
|
162
|
+
T("span", {
|
|
163
|
+
class: ne(["truncate-text", [n.subnavItem ? "truncate-20" : "truncate-17", { "has-badge-max-width": m(l) }]])
|
|
164
164
|
}, ie(n.item.name), 3)
|
|
165
165
|
])
|
|
166
166
|
]),
|
|
167
167
|
_: 1
|
|
168
168
|
}, 8, ["label"])),
|
|
169
|
-
n.item.label && n.item.expanded ? (p(),
|
|
169
|
+
n.item.label && n.item.expanded ? (p(), E("div", Hn, ie(n.item.label), 1)) : M("", !0)
|
|
170
170
|
]),
|
|
171
|
-
m(
|
|
171
|
+
m(l) ? (p(), z(Ln, {
|
|
172
172
|
key: 1,
|
|
173
173
|
count: n.item.badgeCount
|
|
174
|
-
}, null, 8, ["count"])) :
|
|
174
|
+
}, null, 8, ["count"])) : M("", !0)
|
|
175
175
|
], 2)
|
|
176
|
-
], 42,
|
|
176
|
+
], 42, Zn)
|
|
177
177
|
];
|
|
178
178
|
}),
|
|
179
179
|
_: 1
|
|
180
180
|
}, 8, ["custom", "to"])),
|
|
181
|
-
(
|
|
181
|
+
(A = n.item.items) != null && A.length && n.item.expanded ? (p(), E("ul", {
|
|
182
182
|
key: 0,
|
|
183
183
|
id: `subnav-${n.item.key}`,
|
|
184
184
|
class: "level-secondary"
|
|
185
185
|
}, [
|
|
186
|
-
(p(!0),
|
|
187
|
-
key:
|
|
188
|
-
item:
|
|
186
|
+
(p(!0), E(pe, null, _e(n.item.items, ($) => (p(), z(D, {
|
|
187
|
+
key: $.name,
|
|
188
|
+
item: $,
|
|
189
189
|
"subnav-item": !0,
|
|
190
|
-
onClick: (
|
|
190
|
+
onClick: (K) => o($)
|
|
191
191
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
192
|
-
], 8,
|
|
193
|
-
], 10,
|
|
192
|
+
], 8, zn)) : M("", !0)
|
|
193
|
+
], 10, Rn);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
const
|
|
197
|
+
const Et = /* @__PURE__ */ J(Vn, [["__scopeId", "data-v-b0428668"]]), Wn = {}, Gn = {
|
|
198
198
|
class: "profile-icon",
|
|
199
199
|
fill: "none",
|
|
200
200
|
height: "30",
|
|
201
201
|
width: "30",
|
|
202
202
|
xmlns: "http://www.w3.org/2000/svg"
|
|
203
|
-
},
|
|
203
|
+
}, qn = /* @__PURE__ */ T("path", {
|
|
204
204
|
d: "M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",
|
|
205
205
|
fill: "#0A7FAE"
|
|
206
|
-
}, null, -1), Un = /* @__PURE__ */
|
|
206
|
+
}, null, -1), Un = /* @__PURE__ */ T("path", {
|
|
207
207
|
d: "M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",
|
|
208
208
|
fill: "#fff"
|
|
209
|
-
}, null, -1),
|
|
210
|
-
|
|
209
|
+
}, null, -1), Yn = [
|
|
210
|
+
qn,
|
|
211
211
|
Un
|
|
212
212
|
];
|
|
213
|
-
function
|
|
214
|
-
return p(),
|
|
213
|
+
function Xn(n, t) {
|
|
214
|
+
return p(), E("svg", Gn, Yn);
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const Jn = /* @__PURE__ */ J(Wn, [["render", Xn]]), Qn = {
|
|
217
217
|
"aria-haspopup": "true",
|
|
218
218
|
"aria-label": "Profile Menu",
|
|
219
219
|
class: "sidebar-footer"
|
|
220
|
-
},
|
|
220
|
+
}, er = { class: "sidebar-profile-link" }, tr = { class: "sidebar-item-icon" }, ar = { class: "sidebar-profile-item-container" }, nr = { class: "sidebar-profile-dropdown-container" }, rr = {
|
|
221
221
|
key: 0,
|
|
222
222
|
class: "sidebar-profile-name"
|
|
223
|
-
},
|
|
223
|
+
}, ir = { class: "sidebar-profile-name" }, or = /* @__PURE__ */ Q({
|
|
224
224
|
__name: "SidebarFooter",
|
|
225
225
|
props: {
|
|
226
226
|
name: {
|
|
@@ -234,38 +234,38 @@ const Xn = /* @__PURE__ */ J(Vn, [["render", Yn]]), Jn = {
|
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
setup(n) {
|
|
237
|
-
const t = n, a =
|
|
237
|
+
const t = n, a = w(() => t.itemCount > 0);
|
|
238
238
|
return (r, c) => {
|
|
239
|
-
const
|
|
240
|
-
return p(),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
const l = oe("KDropdownMenu");
|
|
240
|
+
return p(), E("nav", Qn, [
|
|
241
|
+
T("div", er, [
|
|
242
|
+
T("div", tr, [
|
|
243
|
+
Pe(Jn)
|
|
244
244
|
]),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
m(a) ? (p(), z(
|
|
245
|
+
T("div", ar, [
|
|
246
|
+
T("div", nr, [
|
|
247
|
+
m(a) ? (p(), z(l, {
|
|
248
248
|
key: 1,
|
|
249
249
|
"kpop-attributes": { placement: "right", popoverClasses: "ml-5 sidebar-profile-menu-popover", target: ".sidebar-footer" },
|
|
250
250
|
width: "240"
|
|
251
251
|
}, {
|
|
252
252
|
items: P(() => [
|
|
253
|
-
|
|
253
|
+
B(r.$slots, "default", {}, void 0, !0)
|
|
254
254
|
]),
|
|
255
255
|
default: P(() => [
|
|
256
|
-
|
|
256
|
+
T("a", {
|
|
257
257
|
"aria-label": "Open Profile Menu",
|
|
258
258
|
class: "profile-dropdown-trigger",
|
|
259
259
|
role: "button",
|
|
260
260
|
tabindex: "0",
|
|
261
|
-
onClick: c[0] || (c[0] =
|
|
261
|
+
onClick: c[0] || (c[0] = Zt(() => {
|
|
262
262
|
}, ["prevent"]))
|
|
263
263
|
}, [
|
|
264
|
-
|
|
264
|
+
T("span", ir, ie(n.name), 1)
|
|
265
265
|
])
|
|
266
266
|
]),
|
|
267
267
|
_: 3
|
|
268
|
-
}, 8, ["kpop-attributes"])) : (p(),
|
|
268
|
+
}, 8, ["kpop-attributes"])) : (p(), E("div", rr, ie(n.name), 1))
|
|
269
269
|
])
|
|
270
270
|
])
|
|
271
271
|
])
|
|
@@ -273,115 +273,131 @@ const Xn = /* @__PURE__ */ J(Vn, [["render", Yn]]), Jn = {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
const
|
|
276
|
+
const sr = /* @__PURE__ */ J(or, [["__scopeId", "data-v-9af03aea"]]);
|
|
277
277
|
/*!
|
|
278
|
-
* tabbable 6.
|
|
278
|
+
* tabbable 6.1.1
|
|
279
279
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
280
280
|
*/
|
|
281
|
-
var
|
|
282
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
283
|
-
|
|
281
|
+
var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], De = /* @__PURE__ */ jt.join(","), Kt = typeof Element > "u", ue = Kt ? function() {
|
|
282
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Be = !Kt && Element.prototype.getRootNode ? function(n) {
|
|
283
|
+
var t;
|
|
284
|
+
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
284
285
|
} : function(n) {
|
|
285
|
-
return n.ownerDocument;
|
|
286
|
+
return n == null ? void 0 : n.ownerDocument;
|
|
287
|
+
}, Me = function n(t, a) {
|
|
288
|
+
var r;
|
|
289
|
+
a === void 0 && (a = !0);
|
|
290
|
+
var c = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = c === "" || c === "true", o = l || a && t && n(t.parentNode);
|
|
291
|
+
return o;
|
|
292
|
+
}, cr = function(t) {
|
|
293
|
+
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
294
|
+
return r === "" || r === "true";
|
|
286
295
|
}, Ht = function(t, a, r) {
|
|
296
|
+
if (Me(t))
|
|
297
|
+
return [];
|
|
287
298
|
var c = Array.prototype.slice.apply(t.querySelectorAll(De));
|
|
288
299
|
return a && ue.call(t, De) && c.unshift(t), c = c.filter(r), c;
|
|
289
|
-
},
|
|
290
|
-
for (var c = [],
|
|
291
|
-
var
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
} else {
|
|
299
|
-
var F = ue.call(s, De);
|
|
300
|
-
F && r.filter(s) && (a || !t.includes(s)) && c.push(s);
|
|
301
|
-
var N = s.shadowRoot || // check for an undisclosed shadow
|
|
302
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), D = !r.shadowRootFilter || r.shadowRootFilter(s);
|
|
303
|
-
if (N && D) {
|
|
304
|
-
var O = n(N === !0 ? s.children : N.children, !0, r);
|
|
305
|
-
r.flatten ? c.push.apply(c, O) : c.push({
|
|
306
|
-
scopeParent: s,
|
|
307
|
-
candidates: O
|
|
300
|
+
}, zt = function n(t, a, r) {
|
|
301
|
+
for (var c = [], l = Array.from(t); l.length; ) {
|
|
302
|
+
var o = l.shift();
|
|
303
|
+
if (!Me(o, !1))
|
|
304
|
+
if (o.tagName === "SLOT") {
|
|
305
|
+
var d = o.assignedElements(), g = d.length ? d : o.children, _ = n(g, !0, r);
|
|
306
|
+
r.flatten ? c.push.apply(c, _) : c.push({
|
|
307
|
+
scopeParent: o,
|
|
308
|
+
candidates: _
|
|
308
309
|
});
|
|
309
|
-
} else
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
} else {
|
|
311
|
+
var C = ue.call(o, De);
|
|
312
|
+
C && r.filter(o) && (a || !t.includes(o)) && c.push(o);
|
|
313
|
+
var S = o.shadowRoot || // check for an undisclosed shadow
|
|
314
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !Me(S, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
315
|
+
if (S && D) {
|
|
316
|
+
var A = n(S === !0 ? o.children : S.children, !0, r);
|
|
317
|
+
r.flatten ? c.push.apply(c, A) : c.push({
|
|
318
|
+
scopeParent: o,
|
|
319
|
+
candidates: A
|
|
320
|
+
});
|
|
321
|
+
} else
|
|
322
|
+
l.unshift.apply(l, o.children);
|
|
323
|
+
}
|
|
312
324
|
}
|
|
313
325
|
return c;
|
|
314
|
-
},
|
|
315
|
-
return t.tabIndex < 0 && (a || /^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || t
|
|
316
|
-
},
|
|
326
|
+
}, Vt = function(t, a) {
|
|
327
|
+
return t.tabIndex < 0 && (a || /^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || cr(t)) && isNaN(parseInt(t.getAttribute("tabindex"), 10)) ? 0 : t.tabIndex;
|
|
328
|
+
}, lr = function(t, a) {
|
|
317
329
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
318
|
-
},
|
|
330
|
+
}, Wt = function(t) {
|
|
319
331
|
return t.tagName === "INPUT";
|
|
320
|
-
},
|
|
321
|
-
return
|
|
322
|
-
},
|
|
332
|
+
}, ur = function(t) {
|
|
333
|
+
return Wt(t) && t.type === "hidden";
|
|
334
|
+
}, dr = function(t) {
|
|
323
335
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
324
336
|
return r.tagName === "SUMMARY";
|
|
325
337
|
});
|
|
326
338
|
return a;
|
|
327
|
-
},
|
|
339
|
+
}, fr = function(t, a) {
|
|
328
340
|
for (var r = 0; r < t.length; r++)
|
|
329
341
|
if (t[r].checked && t[r].form === a)
|
|
330
342
|
return t[r];
|
|
331
|
-
},
|
|
343
|
+
}, vr = function(t) {
|
|
332
344
|
if (!t.name)
|
|
333
345
|
return !0;
|
|
334
|
-
var a = t.form ||
|
|
335
|
-
return a.querySelectorAll('input[type="radio"][name="' +
|
|
346
|
+
var a = t.form || Be(t), r = function(d) {
|
|
347
|
+
return a.querySelectorAll('input[type="radio"][name="' + d + '"]');
|
|
336
348
|
}, c;
|
|
337
349
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
338
350
|
c = r(window.CSS.escape(t.name));
|
|
339
351
|
else
|
|
340
352
|
try {
|
|
341
353
|
c = r(t.name);
|
|
342
|
-
} catch (
|
|
343
|
-
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",
|
|
354
|
+
} catch (o) {
|
|
355
|
+
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;
|
|
344
356
|
}
|
|
345
|
-
var
|
|
346
|
-
return !
|
|
347
|
-
}, fr = function(t) {
|
|
348
|
-
return Vt(t) && t.type === "radio";
|
|
349
|
-
}, vr = function(t) {
|
|
350
|
-
return fr(t) && !dr(t);
|
|
357
|
+
var l = fr(c, t.form);
|
|
358
|
+
return !l || l === t;
|
|
351
359
|
}, br = function(t) {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
360
|
+
return Wt(t) && t.type === "radio";
|
|
361
|
+
}, pr = function(t) {
|
|
362
|
+
return br(t) && !vr(t);
|
|
363
|
+
}, hr = function(t) {
|
|
364
|
+
var a, r = t && Be(t), c = (a = r) === null || a === void 0 ? void 0 : a.host, l = !1;
|
|
365
|
+
if (r && r !== t) {
|
|
366
|
+
var o, d, g;
|
|
367
|
+
for (l = !!((o = c) !== null && o !== void 0 && (d = o.ownerDocument) !== null && d !== void 0 && d.contains(c) || t != null && (g = t.ownerDocument) !== null && g !== void 0 && g.contains(t)); !l && c; ) {
|
|
368
|
+
var _, C, S;
|
|
369
|
+
r = Be(c), c = (_ = r) === null || _ === void 0 ? void 0 : _.host, l = !!((C = c) !== null && C !== void 0 && (S = C.ownerDocument) !== null && S !== void 0 && S.contains(c));
|
|
370
|
+
}
|
|
355
371
|
}
|
|
356
|
-
return
|
|
357
|
-
},
|
|
372
|
+
return l;
|
|
373
|
+
}, $t = function(t) {
|
|
358
374
|
var a = t.getBoundingClientRect(), r = a.width, c = a.height;
|
|
359
375
|
return r === 0 && c === 0;
|
|
360
|
-
},
|
|
376
|
+
}, mr = function(t, a) {
|
|
361
377
|
var r = a.displayCheck, c = a.getShadowRoot;
|
|
362
378
|
if (getComputedStyle(t).visibility === "hidden")
|
|
363
379
|
return !0;
|
|
364
|
-
var
|
|
365
|
-
if (ue.call(
|
|
380
|
+
var l = ue.call(t, "details>summary:first-of-type"), o = l ? t.parentElement : t;
|
|
381
|
+
if (ue.call(o, "details:not([open]) *"))
|
|
366
382
|
return !0;
|
|
367
383
|
if (!r || r === "full" || r === "legacy-full") {
|
|
368
384
|
if (typeof c == "function") {
|
|
369
|
-
for (var
|
|
370
|
-
var
|
|
371
|
-
if (
|
|
372
|
-
return
|
|
373
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
385
|
+
for (var d = t; t; ) {
|
|
386
|
+
var g = t.parentElement, _ = Be(t);
|
|
387
|
+
if (g && !g.shadowRoot && c(g) === !0)
|
|
388
|
+
return $t(t);
|
|
389
|
+
t.assignedSlot ? t = t.assignedSlot : !g && _ !== t.ownerDocument ? t = _.host : t = g;
|
|
374
390
|
}
|
|
375
|
-
t =
|
|
391
|
+
t = d;
|
|
376
392
|
}
|
|
377
|
-
if (
|
|
393
|
+
if (hr(t))
|
|
378
394
|
return !t.getClientRects().length;
|
|
379
395
|
if (r !== "legacy-full")
|
|
380
396
|
return !0;
|
|
381
397
|
} else if (r === "non-zero-area")
|
|
382
|
-
return
|
|
398
|
+
return $t(t);
|
|
383
399
|
return !1;
|
|
384
|
-
},
|
|
400
|
+
}, gr = function(t) {
|
|
385
401
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
386
402
|
for (var a = t.parentElement; a; ) {
|
|
387
403
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
@@ -395,59 +411,62 @@ var Pt = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
|
395
411
|
a = a.parentElement;
|
|
396
412
|
}
|
|
397
413
|
return !1;
|
|
398
|
-
},
|
|
399
|
-
return !(a.disabled ||
|
|
400
|
-
|
|
414
|
+
}, Le = function(t, a) {
|
|
415
|
+
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
416
|
+
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
417
|
+
// note related to `candidateSelectors`)
|
|
418
|
+
Me(a) || ur(a) || mr(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
419
|
+
dr(a) || gr(a));
|
|
401
420
|
}, Qe = function(t, a) {
|
|
402
|
-
return !(
|
|
403
|
-
},
|
|
421
|
+
return !(pr(a) || Vt(a) < 0 || !Le(t, a));
|
|
422
|
+
}, yr = function(t) {
|
|
404
423
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
405
424
|
return !!(isNaN(a) || a >= 0);
|
|
406
|
-
},
|
|
425
|
+
}, _r = function n(t) {
|
|
407
426
|
var a = [], r = [];
|
|
408
|
-
return t.forEach(function(c,
|
|
409
|
-
var
|
|
410
|
-
|
|
411
|
-
documentOrder:
|
|
412
|
-
tabIndex:
|
|
427
|
+
return t.forEach(function(c, l) {
|
|
428
|
+
var o = !!c.scopeParent, d = o ? c.scopeParent : c, g = Vt(d, o), _ = o ? n(c.candidates) : d;
|
|
429
|
+
g === 0 ? o ? a.push.apply(a, _) : a.push(d) : r.push({
|
|
430
|
+
documentOrder: l,
|
|
431
|
+
tabIndex: g,
|
|
413
432
|
item: c,
|
|
414
|
-
isScope:
|
|
415
|
-
content:
|
|
433
|
+
isScope: o,
|
|
434
|
+
content: _
|
|
416
435
|
});
|
|
417
|
-
}), r.sort(
|
|
418
|
-
return
|
|
436
|
+
}), r.sort(lr).reduce(function(c, l) {
|
|
437
|
+
return l.isScope ? c.push.apply(c, l.content) : c.push(l.content), c;
|
|
419
438
|
}, []).concat(a);
|
|
420
|
-
},
|
|
439
|
+
}, wr = function(t, a) {
|
|
421
440
|
a = a || {};
|
|
422
441
|
var r;
|
|
423
|
-
return a.getShadowRoot ? r =
|
|
442
|
+
return a.getShadowRoot ? r = zt([t], a.includeContainer, {
|
|
424
443
|
filter: Qe.bind(null, a),
|
|
425
444
|
flatten: !1,
|
|
426
445
|
getShadowRoot: a.getShadowRoot,
|
|
427
|
-
shadowRootFilter:
|
|
428
|
-
}) : r = Ht(t, a.includeContainer, Qe.bind(null, a)),
|
|
429
|
-
},
|
|
446
|
+
shadowRootFilter: yr
|
|
447
|
+
}) : r = Ht(t, a.includeContainer, Qe.bind(null, a)), _r(r);
|
|
448
|
+
}, Tr = function(t, a) {
|
|
430
449
|
a = a || {};
|
|
431
450
|
var r;
|
|
432
|
-
return a.getShadowRoot ? r =
|
|
433
|
-
filter:
|
|
451
|
+
return a.getShadowRoot ? r = zt([t], a.includeContainer, {
|
|
452
|
+
filter: Le.bind(null, a),
|
|
434
453
|
flatten: !0,
|
|
435
454
|
getShadowRoot: a.getShadowRoot
|
|
436
|
-
}) : r = Ht(t, a.includeContainer,
|
|
437
|
-
},
|
|
455
|
+
}) : r = Ht(t, a.includeContainer, Le.bind(null, a)), r;
|
|
456
|
+
}, Oe = function(t, a) {
|
|
438
457
|
if (a = a || {}, !t)
|
|
439
458
|
throw new Error("No node provided");
|
|
440
459
|
return ue.call(t, De) === !1 ? !1 : Qe(a, t);
|
|
441
|
-
},
|
|
460
|
+
}, kr = /* @__PURE__ */ jt.concat("iframe").join(","), Ft = function(t, a) {
|
|
442
461
|
if (a = a || {}, !t)
|
|
443
462
|
throw new Error("No node provided");
|
|
444
|
-
return ue.call(t,
|
|
463
|
+
return ue.call(t, kr) === !1 ? !1 : Le(a, t);
|
|
445
464
|
};
|
|
446
465
|
/*!
|
|
447
|
-
* focus-trap 7.
|
|
466
|
+
* focus-trap 7.3.1
|
|
448
467
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
449
468
|
*/
|
|
450
|
-
function
|
|
469
|
+
function Dt(n, t) {
|
|
451
470
|
var a = Object.keys(n);
|
|
452
471
|
if (Object.getOwnPropertySymbols) {
|
|
453
472
|
var r = Object.getOwnPropertySymbols(n);
|
|
@@ -457,26 +476,26 @@ function Ft(n, t) {
|
|
|
457
476
|
}
|
|
458
477
|
return a;
|
|
459
478
|
}
|
|
460
|
-
function
|
|
479
|
+
function Bt(n) {
|
|
461
480
|
for (var t = 1; t < arguments.length; t++) {
|
|
462
481
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
463
|
-
t % 2 ?
|
|
464
|
-
|
|
465
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) :
|
|
482
|
+
t % 2 ? Dt(Object(a), !0).forEach(function(r) {
|
|
483
|
+
Sr(n, r, a[r]);
|
|
484
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) : Dt(Object(a)).forEach(function(r) {
|
|
466
485
|
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(a, r));
|
|
467
486
|
});
|
|
468
487
|
}
|
|
469
488
|
return n;
|
|
470
489
|
}
|
|
471
|
-
function
|
|
472
|
-
return t =
|
|
490
|
+
function Sr(n, t, a) {
|
|
491
|
+
return t = Cr(t), t in n ? Object.defineProperty(n, t, {
|
|
473
492
|
value: a,
|
|
474
493
|
enumerable: !0,
|
|
475
494
|
configurable: !0,
|
|
476
495
|
writable: !0
|
|
477
496
|
}) : n[t] = a, n;
|
|
478
497
|
}
|
|
479
|
-
function
|
|
498
|
+
function Ir(n, t) {
|
|
480
499
|
if (typeof n != "object" || n === null)
|
|
481
500
|
return n;
|
|
482
501
|
var a = n[Symbol.toPrimitive];
|
|
@@ -488,11 +507,11 @@ function kr(n, t) {
|
|
|
488
507
|
}
|
|
489
508
|
return (t === "string" ? String : Number)(n);
|
|
490
509
|
}
|
|
491
|
-
function
|
|
492
|
-
var t =
|
|
510
|
+
function Cr(n) {
|
|
511
|
+
var t = Ir(n, "string");
|
|
493
512
|
return typeof t == "symbol" ? t : String(t);
|
|
494
513
|
}
|
|
495
|
-
var
|
|
514
|
+
var Mt = {
|
|
496
515
|
activateTrap: function(t, a) {
|
|
497
516
|
if (t.length > 0) {
|
|
498
517
|
var r = t[t.length - 1];
|
|
@@ -505,37 +524,37 @@ var Rt = {
|
|
|
505
524
|
var r = t.indexOf(a);
|
|
506
525
|
r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
507
526
|
}
|
|
508
|
-
},
|
|
527
|
+
}, xr = function(t) {
|
|
509
528
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
510
|
-
},
|
|
529
|
+
}, Or = function(t) {
|
|
511
530
|
return t.key === "Escape" || t.key === "Esc" || t.keyCode === 27;
|
|
512
531
|
}, we = function(t) {
|
|
513
532
|
return t.key === "Tab" || t.keyCode === 9;
|
|
514
|
-
},
|
|
533
|
+
}, Ar = function(t) {
|
|
515
534
|
return we(t) && !t.shiftKey;
|
|
516
|
-
},
|
|
535
|
+
}, Nr = function(t) {
|
|
517
536
|
return we(t) && t.shiftKey;
|
|
518
|
-
},
|
|
537
|
+
}, Lt = function(t) {
|
|
519
538
|
return setTimeout(t, 0);
|
|
520
|
-
},
|
|
539
|
+
}, Rt = function(t, a) {
|
|
521
540
|
var r = -1;
|
|
522
|
-
return t.every(function(c,
|
|
523
|
-
return a(c) ? (r =
|
|
541
|
+
return t.every(function(c, l) {
|
|
542
|
+
return a(c) ? (r = l, !1) : !0;
|
|
524
543
|
}), r;
|
|
525
544
|
}, ye = function(t) {
|
|
526
545
|
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), c = 1; c < a; c++)
|
|
527
546
|
r[c - 1] = arguments[c];
|
|
528
547
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
529
|
-
},
|
|
548
|
+
}, Ae = function(t) {
|
|
530
549
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
531
|
-
},
|
|
532
|
-
var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) ||
|
|
550
|
+
}, Er = [], $r = function(t, a) {
|
|
551
|
+
var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) || Er, l = Bt({
|
|
533
552
|
returnFocusOnDeactivate: !0,
|
|
534
553
|
escapeDeactivates: !0,
|
|
535
554
|
delayInitialFocus: !0,
|
|
536
|
-
isKeyForward:
|
|
537
|
-
isKeyBackward:
|
|
538
|
-
}, a),
|
|
555
|
+
isKeyForward: Ar,
|
|
556
|
+
isKeyBackward: Nr
|
|
557
|
+
}, a), o = {
|
|
539
558
|
// containers given to createFocusTrap()
|
|
540
559
|
// @type {Array<HTMLElement>}
|
|
541
560
|
containers: [],
|
|
@@ -566,58 +585,58 @@ var Rt = {
|
|
|
566
585
|
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
567
586
|
// has been delayed during activation
|
|
568
587
|
delayInitialFocusTimer: void 0
|
|
569
|
-
},
|
|
570
|
-
return
|
|
571
|
-
},
|
|
572
|
-
return
|
|
573
|
-
var b =
|
|
574
|
-
return b.contains(
|
|
588
|
+
}, d, g = function(u, f, b) {
|
|
589
|
+
return u && u[f] !== void 0 ? u[f] : l[b || f];
|
|
590
|
+
}, _ = function(u) {
|
|
591
|
+
return o.containerGroups.findIndex(function(f) {
|
|
592
|
+
var b = f.container, N = f.tabbableNodes;
|
|
593
|
+
return b.contains(u) || // fall back to explicit tabbable search which will take into consideration any
|
|
575
594
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
576
595
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
577
596
|
// look inside web components even if open)
|
|
578
|
-
|
|
579
|
-
return h ===
|
|
597
|
+
N.find(function(h) {
|
|
598
|
+
return h === u;
|
|
580
599
|
});
|
|
581
600
|
});
|
|
582
|
-
},
|
|
583
|
-
var
|
|
584
|
-
if (typeof
|
|
585
|
-
for (var b = arguments.length,
|
|
586
|
-
|
|
587
|
-
|
|
601
|
+
}, C = function(u) {
|
|
602
|
+
var f = l[u];
|
|
603
|
+
if (typeof f == "function") {
|
|
604
|
+
for (var b = arguments.length, N = new Array(b > 1 ? b - 1 : 0), h = 1; h < b; h++)
|
|
605
|
+
N[h - 1] = arguments[h];
|
|
606
|
+
f = f.apply(void 0, N);
|
|
588
607
|
}
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
return
|
|
592
|
-
throw new Error("`".concat(
|
|
608
|
+
if (f === !0 && (f = void 0), !f) {
|
|
609
|
+
if (f === void 0 || f === !1)
|
|
610
|
+
return f;
|
|
611
|
+
throw new Error("`".concat(u, "` was specified but was not a node, or did not return a node"));
|
|
593
612
|
}
|
|
594
|
-
var
|
|
595
|
-
if (typeof
|
|
596
|
-
throw new Error("`".concat(
|
|
597
|
-
return
|
|
598
|
-
},
|
|
599
|
-
var
|
|
600
|
-
if (
|
|
613
|
+
var F = f;
|
|
614
|
+
if (typeof f == "string" && (F = r.querySelector(f), !F))
|
|
615
|
+
throw new Error("`".concat(u, "` as selector refers to no known node"));
|
|
616
|
+
return F;
|
|
617
|
+
}, S = function() {
|
|
618
|
+
var u = C("initialFocus");
|
|
619
|
+
if (u === !1)
|
|
601
620
|
return !1;
|
|
602
|
-
if (
|
|
603
|
-
if (
|
|
604
|
-
|
|
621
|
+
if (u === void 0)
|
|
622
|
+
if (_(r.activeElement) >= 0)
|
|
623
|
+
u = r.activeElement;
|
|
605
624
|
else {
|
|
606
|
-
var
|
|
607
|
-
|
|
625
|
+
var f = o.tabbableGroups[0], b = f && f.firstTabbableNode;
|
|
626
|
+
u = b || C("fallbackFocus");
|
|
608
627
|
}
|
|
609
|
-
if (!
|
|
628
|
+
if (!u)
|
|
610
629
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
611
|
-
return
|
|
630
|
+
return u;
|
|
612
631
|
}, D = function() {
|
|
613
|
-
if (
|
|
614
|
-
var
|
|
632
|
+
if (o.containerGroups = o.containers.map(function(u) {
|
|
633
|
+
var f = wr(u, l.tabbableOptions), b = Tr(u, l.tabbableOptions);
|
|
615
634
|
return {
|
|
616
|
-
container:
|
|
617
|
-
tabbableNodes:
|
|
635
|
+
container: u,
|
|
636
|
+
tabbableNodes: f,
|
|
618
637
|
focusableNodes: b,
|
|
619
|
-
firstTabbableNode:
|
|
620
|
-
lastTabbableNode:
|
|
638
|
+
firstTabbableNode: f.length > 0 ? f[0] : null,
|
|
639
|
+
lastTabbableNode: f.length > 0 ? f[f.length - 1] : null,
|
|
621
640
|
/**
|
|
622
641
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
623
642
|
* in this container, if any.
|
|
@@ -627,176 +646,171 @@ var Rt = {
|
|
|
627
646
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
628
647
|
*/
|
|
629
648
|
nextTabbableNode: function(h) {
|
|
630
|
-
var
|
|
631
|
-
return
|
|
649
|
+
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, y = b.findIndex(function(L) {
|
|
650
|
+
return L === h;
|
|
632
651
|
});
|
|
633
|
-
if (!(
|
|
634
|
-
return
|
|
635
|
-
return
|
|
636
|
-
}) : b.slice(0,
|
|
637
|
-
return
|
|
652
|
+
if (!(y < 0))
|
|
653
|
+
return F ? b.slice(y + 1).find(function(L) {
|
|
654
|
+
return Oe(L, l.tabbableOptions);
|
|
655
|
+
}) : b.slice(0, y).reverse().find(function(L) {
|
|
656
|
+
return Oe(L, l.tabbableOptions);
|
|
638
657
|
});
|
|
639
658
|
}
|
|
640
659
|
};
|
|
641
|
-
}),
|
|
642
|
-
return
|
|
643
|
-
}),
|
|
660
|
+
}), o.tabbableGroups = o.containerGroups.filter(function(u) {
|
|
661
|
+
return u.tabbableNodes.length > 0;
|
|
662
|
+
}), o.tabbableGroups.length <= 0 && !C("fallbackFocus"))
|
|
644
663
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
645
|
-
},
|
|
646
|
-
if (
|
|
647
|
-
if (!
|
|
648
|
-
|
|
664
|
+
}, A = function x(u) {
|
|
665
|
+
if (u !== !1 && u !== r.activeElement) {
|
|
666
|
+
if (!u || !u.focus) {
|
|
667
|
+
x(S());
|
|
649
668
|
return;
|
|
650
669
|
}
|
|
651
|
-
|
|
652
|
-
preventScroll: !!
|
|
653
|
-
}),
|
|
670
|
+
u.focus({
|
|
671
|
+
preventScroll: !!l.preventScroll
|
|
672
|
+
}), o.mostRecentlyFocusedNode = u, xr(u) && u.select();
|
|
654
673
|
}
|
|
655
|
-
},
|
|
656
|
-
var
|
|
657
|
-
return
|
|
658
|
-
},
|
|
659
|
-
var
|
|
660
|
-
if (!(
|
|
661
|
-
if (ye(
|
|
662
|
-
|
|
663
|
-
// if, on deactivation, we should return focus to the node originally-focused
|
|
664
|
-
// when the trap was activated (or the configured `setReturnFocus` node),
|
|
665
|
-
// then assume it's also OK to return focus to the outside node that was
|
|
666
|
-
// just clicked, causing deactivation, as long as that node is focusable;
|
|
667
|
-
// if it isn't focusable, then return focus to the original node focused
|
|
668
|
-
// on activation (or the configured `setReturnFocus` node)
|
|
674
|
+
}, $ = function(u) {
|
|
675
|
+
var f = C("setReturnFocus", u);
|
|
676
|
+
return f || (f === !1 ? !1 : u);
|
|
677
|
+
}, K = function(u) {
|
|
678
|
+
var f = Ae(u);
|
|
679
|
+
if (!(_(f) >= 0)) {
|
|
680
|
+
if (ye(l.clickOutsideDeactivates, u)) {
|
|
681
|
+
d.deactivate({
|
|
669
682
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
670
683
|
// which will result in the outside click setting focus to the node
|
|
671
|
-
// that was clicked
|
|
684
|
+
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
672
685
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
673
|
-
// on activation (or the configured `setReturnFocus` node)
|
|
674
|
-
|
|
686
|
+
// on activation (or the configured `setReturnFocus` node), whether the
|
|
687
|
+
// outside click was on a focusable node or not
|
|
688
|
+
returnFocus: l.returnFocusOnDeactivate
|
|
675
689
|
});
|
|
676
690
|
return;
|
|
677
691
|
}
|
|
678
|
-
ye(
|
|
692
|
+
ye(l.allowOutsideClick, u) || u.preventDefault();
|
|
679
693
|
}
|
|
680
|
-
}, G = function(
|
|
681
|
-
var
|
|
682
|
-
b ||
|
|
683
|
-
}, j = function(
|
|
684
|
-
var
|
|
694
|
+
}, G = function(u) {
|
|
695
|
+
var f = Ae(u), b = _(f) >= 0;
|
|
696
|
+
b || f instanceof Document ? b && (o.mostRecentlyFocusedNode = f) : (u.stopImmediatePropagation(), A(o.mostRecentlyFocusedNode || S()));
|
|
697
|
+
}, j = function(u) {
|
|
698
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, b = Ae(u);
|
|
685
699
|
D();
|
|
686
|
-
var
|
|
687
|
-
if (
|
|
688
|
-
var h =
|
|
700
|
+
var N = null;
|
|
701
|
+
if (o.tabbableGroups.length > 0) {
|
|
702
|
+
var h = _(b), F = h >= 0 ? o.containerGroups[h] : void 0;
|
|
689
703
|
if (h < 0)
|
|
690
|
-
|
|
691
|
-
else if (
|
|
692
|
-
var
|
|
693
|
-
var
|
|
694
|
-
return b ===
|
|
704
|
+
f ? N = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : N = o.tabbableGroups[0].firstTabbableNode;
|
|
705
|
+
else if (f) {
|
|
706
|
+
var y = Rt(o.tabbableGroups, function(he) {
|
|
707
|
+
var O = he.firstTabbableNode;
|
|
708
|
+
return b === O;
|
|
695
709
|
});
|
|
696
|
-
if (
|
|
697
|
-
var
|
|
698
|
-
|
|
710
|
+
if (y < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !Oe(b, l.tabbableOptions) && !F.nextTabbableNode(b, !1)) && (y = h), y >= 0) {
|
|
711
|
+
var L = y === 0 ? o.tabbableGroups.length - 1 : y - 1, k = o.tabbableGroups[L];
|
|
712
|
+
N = k.lastTabbableNode;
|
|
699
713
|
} else
|
|
700
|
-
we(
|
|
714
|
+
we(u) || (N = F.nextTabbableNode(b, !1));
|
|
701
715
|
} else {
|
|
702
|
-
var X =
|
|
703
|
-
var
|
|
704
|
-
return b ===
|
|
716
|
+
var X = Rt(o.tabbableGroups, function(he) {
|
|
717
|
+
var O = he.lastTabbableNode;
|
|
718
|
+
return b === O;
|
|
705
719
|
});
|
|
706
|
-
if (X < 0 && (
|
|
707
|
-
var ee = X ===
|
|
708
|
-
|
|
720
|
+
if (X < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !Oe(b, l.tabbableOptions) && !F.nextTabbableNode(b)) && (X = h), X >= 0) {
|
|
721
|
+
var ee = X === o.tabbableGroups.length - 1 ? 0 : X + 1, je = o.tabbableGroups[ee];
|
|
722
|
+
N = je.firstTabbableNode;
|
|
709
723
|
} else
|
|
710
|
-
we(
|
|
724
|
+
we(u) || (N = F.nextTabbableNode(b));
|
|
711
725
|
}
|
|
712
726
|
} else
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}, Y = function(
|
|
716
|
-
if (
|
|
717
|
-
|
|
727
|
+
N = C("fallbackFocus");
|
|
728
|
+
N && (we(u) && u.preventDefault(), A(N));
|
|
729
|
+
}, Y = function(u) {
|
|
730
|
+
if (Or(u) && ye(l.escapeDeactivates, u) !== !1) {
|
|
731
|
+
u.preventDefault(), d.deactivate();
|
|
718
732
|
return;
|
|
719
733
|
}
|
|
720
|
-
(
|
|
721
|
-
},
|
|
722
|
-
var
|
|
723
|
-
|
|
724
|
-
},
|
|
725
|
-
if (
|
|
726
|
-
return
|
|
727
|
-
|
|
728
|
-
}) :
|
|
734
|
+
(l.isKeyForward(u) || l.isKeyBackward(u)) && j(u, l.isKeyBackward(u));
|
|
735
|
+
}, q = function(u) {
|
|
736
|
+
var f = Ae(u);
|
|
737
|
+
_(f) >= 0 || ye(l.clickOutsideDeactivates, u) || ye(l.allowOutsideClick, u) || (u.preventDefault(), u.stopImmediatePropagation());
|
|
738
|
+
}, I = function() {
|
|
739
|
+
if (o.active)
|
|
740
|
+
return Mt.activateTrap(c, d), o.delayInitialFocusTimer = l.delayInitialFocus ? Lt(function() {
|
|
741
|
+
A(S());
|
|
742
|
+
}) : A(S()), r.addEventListener("focusin", G, !0), r.addEventListener("mousedown", K, {
|
|
729
743
|
capture: !0,
|
|
730
744
|
passive: !1
|
|
731
|
-
}), r.addEventListener("touchstart",
|
|
745
|
+
}), r.addEventListener("touchstart", K, {
|
|
732
746
|
capture: !0,
|
|
733
747
|
passive: !1
|
|
734
|
-
}), r.addEventListener("click",
|
|
748
|
+
}), r.addEventListener("click", q, {
|
|
735
749
|
capture: !0,
|
|
736
750
|
passive: !1
|
|
737
751
|
}), r.addEventListener("keydown", Y, {
|
|
738
752
|
capture: !0,
|
|
739
753
|
passive: !1
|
|
740
|
-
}),
|
|
754
|
+
}), d;
|
|
741
755
|
}, Z = function() {
|
|
742
|
-
if (
|
|
743
|
-
return r.removeEventListener("focusin", G, !0), r.removeEventListener("mousedown",
|
|
756
|
+
if (o.active)
|
|
757
|
+
return r.removeEventListener("focusin", G, !0), r.removeEventListener("mousedown", K, !0), r.removeEventListener("touchstart", K, !0), r.removeEventListener("click", q, !0), r.removeEventListener("keydown", Y, !0), d;
|
|
744
758
|
};
|
|
745
|
-
return
|
|
759
|
+
return d = {
|
|
746
760
|
get active() {
|
|
747
|
-
return
|
|
761
|
+
return o.active;
|
|
748
762
|
},
|
|
749
763
|
get paused() {
|
|
750
|
-
return
|
|
764
|
+
return o.paused;
|
|
751
765
|
},
|
|
752
|
-
activate: function(
|
|
753
|
-
if (
|
|
766
|
+
activate: function(u) {
|
|
767
|
+
if (o.active)
|
|
754
768
|
return this;
|
|
755
|
-
var
|
|
756
|
-
|
|
769
|
+
var f = g(u, "onActivate"), b = g(u, "onPostActivate"), N = g(u, "checkCanFocusTrap");
|
|
770
|
+
N || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, f && f();
|
|
757
771
|
var h = function() {
|
|
758
|
-
|
|
772
|
+
N && D(), I(), b && b();
|
|
759
773
|
};
|
|
760
|
-
return
|
|
774
|
+
return N ? (N(o.containers.concat()).then(h, h), this) : (h(), this);
|
|
761
775
|
},
|
|
762
|
-
deactivate: function(
|
|
763
|
-
if (!
|
|
776
|
+
deactivate: function(u) {
|
|
777
|
+
if (!o.active)
|
|
764
778
|
return this;
|
|
765
|
-
var
|
|
766
|
-
onDeactivate:
|
|
767
|
-
onPostDeactivate:
|
|
768
|
-
checkCanReturnFocus:
|
|
769
|
-
},
|
|
770
|
-
clearTimeout(
|
|
771
|
-
var b =
|
|
779
|
+
var f = Bt({
|
|
780
|
+
onDeactivate: l.onDeactivate,
|
|
781
|
+
onPostDeactivate: l.onPostDeactivate,
|
|
782
|
+
checkCanReturnFocus: l.checkCanReturnFocus
|
|
783
|
+
}, u);
|
|
784
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, Z(), o.active = !1, o.paused = !1, Mt.deactivateTrap(c, d);
|
|
785
|
+
var b = g(f, "onDeactivate"), N = g(f, "onPostDeactivate"), h = g(f, "checkCanReturnFocus"), F = g(f, "returnFocus", "returnFocusOnDeactivate");
|
|
772
786
|
b && b();
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
|
|
787
|
+
var y = function() {
|
|
788
|
+
Lt(function() {
|
|
789
|
+
F && A($(o.nodeFocusedBeforeActivation)), N && N();
|
|
776
790
|
});
|
|
777
791
|
};
|
|
778
|
-
return
|
|
792
|
+
return F && h ? (h($(o.nodeFocusedBeforeActivation)).then(y, y), this) : (y(), this);
|
|
779
793
|
},
|
|
780
794
|
pause: function() {
|
|
781
|
-
return
|
|
795
|
+
return o.paused || !o.active ? this : (o.paused = !0, Z(), this);
|
|
782
796
|
},
|
|
783
797
|
unpause: function() {
|
|
784
|
-
return !
|
|
798
|
+
return !o.paused || !o.active ? this : (o.paused = !1, D(), I(), this);
|
|
785
799
|
},
|
|
786
|
-
updateContainerElements: function(
|
|
787
|
-
var
|
|
788
|
-
return
|
|
800
|
+
updateContainerElements: function(u) {
|
|
801
|
+
var f = [].concat(u).filter(Boolean);
|
|
802
|
+
return o.containers = f.map(function(b) {
|
|
789
803
|
return typeof b == "string" ? r.querySelector(b) : b;
|
|
790
|
-
}),
|
|
804
|
+
}), o.active && D(), this;
|
|
791
805
|
}
|
|
792
|
-
},
|
|
806
|
+
}, d.updateContainerElements(t), d;
|
|
793
807
|
};
|
|
794
808
|
/*!
|
|
795
809
|
* focus-trap-vue v4.0.0
|
|
796
810
|
* (c) 2022 Eduardo San Martin Morote
|
|
797
811
|
* @license MIT
|
|
798
812
|
*/
|
|
799
|
-
const
|
|
813
|
+
const Fr = {
|
|
800
814
|
escapeDeactivates: {
|
|
801
815
|
type: Boolean,
|
|
802
816
|
default: !0
|
|
@@ -819,14 +833,14 @@ const Nr = {
|
|
|
819
833
|
preventScroll: Boolean,
|
|
820
834
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
821
835
|
tabbableOptions: Object
|
|
822
|
-
},
|
|
836
|
+
}, Dr = Q({
|
|
823
837
|
props: Object.assign({
|
|
824
838
|
active: {
|
|
825
839
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
826
840
|
type: Boolean,
|
|
827
841
|
default: !0
|
|
828
842
|
}
|
|
829
|
-
},
|
|
843
|
+
}, Fr),
|
|
830
844
|
emits: [
|
|
831
845
|
"update:active",
|
|
832
846
|
"activate",
|
|
@@ -839,10 +853,10 @@ const Nr = {
|
|
|
839
853
|
},
|
|
840
854
|
setup(n, { slots: t, emit: a }) {
|
|
841
855
|
let r;
|
|
842
|
-
const c = W(null),
|
|
843
|
-
const
|
|
844
|
-
return
|
|
845
|
-
}),
|
|
856
|
+
const c = W(null), l = w(() => {
|
|
857
|
+
const d = c.value;
|
|
858
|
+
return d && (d instanceof HTMLElement ? d : d.$el);
|
|
859
|
+
}), o = () => r || (r = $r(l.value, {
|
|
846
860
|
escapeDeactivates: n.escapeDeactivates,
|
|
847
861
|
allowOutsideClick: n.allowOutsideClick,
|
|
848
862
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -859,15 +873,15 @@ const Nr = {
|
|
|
859
873
|
fallbackFocus: n.fallbackFocus,
|
|
860
874
|
tabbableOptions: n.tabbableOptions
|
|
861
875
|
}));
|
|
862
|
-
return
|
|
863
|
-
|
|
864
|
-
|
|
876
|
+
return Ze(() => {
|
|
877
|
+
$e(() => n.active, (d) => {
|
|
878
|
+
d && l.value ? o().activate() : r && (r.deactivate(), (!l.value || l.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
865
879
|
}, { immediate: !0, flush: "post" });
|
|
866
|
-
}),
|
|
880
|
+
}), gn(() => {
|
|
867
881
|
r && r.deactivate(), r = null;
|
|
868
882
|
}), {
|
|
869
883
|
activate() {
|
|
870
|
-
|
|
884
|
+
o(), r.activate();
|
|
871
885
|
},
|
|
872
886
|
deactivate() {
|
|
873
887
|
r && r.deactivate();
|
|
@@ -875,13 +889,13 @@ const Nr = {
|
|
|
875
889
|
renderImpl() {
|
|
876
890
|
if (!t.default)
|
|
877
891
|
return null;
|
|
878
|
-
const
|
|
879
|
-
return !
|
|
892
|
+
const d = t.default().filter((_) => _.type !== yn);
|
|
893
|
+
return !d || !d.length || d.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), d) : _n(d[0], { ref: c });
|
|
880
894
|
}
|
|
881
895
|
};
|
|
882
896
|
}
|
|
883
897
|
});
|
|
884
|
-
function
|
|
898
|
+
function Gt() {
|
|
885
899
|
return {
|
|
886
900
|
debounce: (t, a) => {
|
|
887
901
|
let r;
|
|
@@ -893,46 +907,46 @@ function Wt() {
|
|
|
893
907
|
}
|
|
894
908
|
};
|
|
895
909
|
}
|
|
896
|
-
var
|
|
910
|
+
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Re = {}, Br = {
|
|
897
911
|
get exports() {
|
|
898
|
-
return
|
|
912
|
+
return Re;
|
|
899
913
|
},
|
|
900
914
|
set exports(n) {
|
|
901
|
-
|
|
915
|
+
Re = n;
|
|
902
916
|
}
|
|
903
917
|
};
|
|
904
918
|
(function(n, t) {
|
|
905
|
-
var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991,
|
|
906
|
-
|
|
907
|
-
var Ut = typeof
|
|
908
|
-
function
|
|
919
|
+
var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991, l = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", g = "[object Date]", _ = "[object Error]", C = "[object Function]", S = "[object GeneratorFunction]", D = "[object Map]", A = "[object Number]", $ = "[object Object]", K = "[object Promise]", G = "[object RegExp]", j = "[object Set]", Y = "[object String]", q = "[object Symbol]", I = "[object WeakMap]", Z = "[object ArrayBuffer]", x = "[object DataView]", u = "[object Float32Array]", f = "[object Float64Array]", b = "[object Int8Array]", N = "[object Int16Array]", h = "[object Int32Array]", F = "[object Uint8Array]", y = "[object Uint8ClampedArray]", L = "[object Uint16Array]", k = "[object Uint32Array]", X = /[\\^$.*+?()[\]{}|]/g, ee = /\w*$/, je = /^\[object .+?Constructor\]$/, he = /^(?:0|[1-9]\d*)$/, O = {};
|
|
920
|
+
O[l] = O[o] = O[Z] = O[x] = O[d] = O[g] = O[u] = O[f] = O[b] = O[N] = O[h] = O[D] = O[A] = O[$] = O[G] = O[j] = O[Y] = O[q] = O[F] = O[y] = O[L] = O[k] = !0, O[_] = O[C] = O[I] = !1;
|
|
921
|
+
var Ut = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, Yt = typeof self == "object" && self && self.Object === Object && self, te = Ut || Yt || Function("return this")(), it = t && !t.nodeType && t, ot = it && !0 && n && !n.nodeType && n, Xt = ot && ot.exports === it;
|
|
922
|
+
function Jt(e, i) {
|
|
909
923
|
return e.set(i[0], i[1]), e;
|
|
910
924
|
}
|
|
911
|
-
function
|
|
925
|
+
function Qt(e, i) {
|
|
912
926
|
return e.add(i), e;
|
|
913
927
|
}
|
|
914
|
-
function
|
|
915
|
-
for (var
|
|
928
|
+
function ea(e, i) {
|
|
929
|
+
for (var s = -1, v = e ? e.length : 0; ++s < v && i(e[s], s, e) !== !1; )
|
|
916
930
|
;
|
|
917
931
|
return e;
|
|
918
932
|
}
|
|
919
|
-
function
|
|
920
|
-
for (var
|
|
921
|
-
e[
|
|
933
|
+
function ta(e, i) {
|
|
934
|
+
for (var s = -1, v = i.length, R = e.length; ++s < v; )
|
|
935
|
+
e[R + s] = i[s];
|
|
922
936
|
return e;
|
|
923
937
|
}
|
|
924
|
-
function st(e, i,
|
|
925
|
-
var
|
|
926
|
-
for (v &&
|
|
927
|
-
|
|
928
|
-
return
|
|
938
|
+
function st(e, i, s, v) {
|
|
939
|
+
var R = -1, H = e ? e.length : 0;
|
|
940
|
+
for (v && H && (s = e[++R]); ++R < H; )
|
|
941
|
+
s = i(s, e[R], R, e);
|
|
942
|
+
return s;
|
|
929
943
|
}
|
|
930
|
-
function
|
|
931
|
-
for (var
|
|
932
|
-
v[
|
|
944
|
+
function aa(e, i) {
|
|
945
|
+
for (var s = -1, v = Array(e); ++s < e; )
|
|
946
|
+
v[s] = i(s);
|
|
933
947
|
return v;
|
|
934
948
|
}
|
|
935
|
-
function
|
|
949
|
+
function na(e, i) {
|
|
936
950
|
return e == null ? void 0 : e[i];
|
|
937
951
|
}
|
|
938
952
|
function ct(e) {
|
|
@@ -945,90 +959,90 @@ var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
945
959
|
return i;
|
|
946
960
|
}
|
|
947
961
|
function lt(e) {
|
|
948
|
-
var i = -1,
|
|
949
|
-
return e.forEach(function(v,
|
|
950
|
-
|
|
951
|
-
}),
|
|
952
|
-
}
|
|
953
|
-
function
|
|
954
|
-
return function(
|
|
955
|
-
return e(i(
|
|
962
|
+
var i = -1, s = Array(e.size);
|
|
963
|
+
return e.forEach(function(v, R) {
|
|
964
|
+
s[++i] = [R, v];
|
|
965
|
+
}), s;
|
|
966
|
+
}
|
|
967
|
+
function Ke(e, i) {
|
|
968
|
+
return function(s) {
|
|
969
|
+
return e(i(s));
|
|
956
970
|
};
|
|
957
971
|
}
|
|
958
972
|
function ut(e) {
|
|
959
|
-
var i = -1,
|
|
973
|
+
var i = -1, s = Array(e.size);
|
|
960
974
|
return e.forEach(function(v) {
|
|
961
|
-
|
|
962
|
-
}),
|
|
975
|
+
s[++i] = v;
|
|
976
|
+
}), s;
|
|
963
977
|
}
|
|
964
|
-
var
|
|
978
|
+
var ra = Array.prototype, ia = Function.prototype, Te = Object.prototype, He = te["__core-js_shared__"], dt = function() {
|
|
965
979
|
var e = /[^.]+$/.exec(He && He.keys && He.keys.IE_PROTO || "");
|
|
966
980
|
return e ? "Symbol(src)_1." + e : "";
|
|
967
|
-
}(), ft =
|
|
981
|
+
}(), ft = ia.toString, re = Te.hasOwnProperty, ke = Te.toString, oa = RegExp(
|
|
968
982
|
"^" + ft.call(re).replace(X, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
969
|
-
), vt =
|
|
983
|
+
), vt = Xt ? te.Buffer : void 0, bt = te.Symbol, pt = te.Uint8Array, sa = Ke(Object.getPrototypeOf, Object), ca = Object.create, la = Te.propertyIsEnumerable, ua = ra.splice, ht = Object.getOwnPropertySymbols, da = vt ? vt.isBuffer : void 0, fa = Ke(Object.keys, Object), ze = ve(te, "DataView"), me = ve(te, "Map"), Ve = ve(te, "Promise"), We = ve(te, "Set"), Ge = ve(te, "WeakMap"), ge = ve(Object, "create"), va = le(ze), ba = le(me), pa = le(Ve), ha = le(We), ma = le(Ge), mt = bt ? bt.prototype : void 0, gt = mt ? mt.valueOf : void 0;
|
|
970
984
|
function se(e) {
|
|
971
|
-
var i = -1,
|
|
972
|
-
for (this.clear(); ++i <
|
|
985
|
+
var i = -1, s = e ? e.length : 0;
|
|
986
|
+
for (this.clear(); ++i < s; ) {
|
|
973
987
|
var v = e[i];
|
|
974
988
|
this.set(v[0], v[1]);
|
|
975
989
|
}
|
|
976
990
|
}
|
|
977
|
-
function
|
|
991
|
+
function ga() {
|
|
978
992
|
this.__data__ = ge ? ge(null) : {};
|
|
979
993
|
}
|
|
980
|
-
function
|
|
994
|
+
function ya(e) {
|
|
981
995
|
return this.has(e) && delete this.__data__[e];
|
|
982
996
|
}
|
|
983
|
-
function
|
|
997
|
+
function _a(e) {
|
|
984
998
|
var i = this.__data__;
|
|
985
999
|
if (ge) {
|
|
986
|
-
var
|
|
987
|
-
return
|
|
1000
|
+
var s = i[e];
|
|
1001
|
+
return s === r ? void 0 : s;
|
|
988
1002
|
}
|
|
989
1003
|
return re.call(i, e) ? i[e] : void 0;
|
|
990
1004
|
}
|
|
991
|
-
function
|
|
1005
|
+
function wa(e) {
|
|
992
1006
|
var i = this.__data__;
|
|
993
1007
|
return ge ? i[e] !== void 0 : re.call(i, e);
|
|
994
1008
|
}
|
|
995
|
-
function
|
|
996
|
-
var
|
|
997
|
-
return
|
|
1009
|
+
function Ta(e, i) {
|
|
1010
|
+
var s = this.__data__;
|
|
1011
|
+
return s[e] = ge && i === void 0 ? r : i, this;
|
|
998
1012
|
}
|
|
999
|
-
se.prototype.clear =
|
|
1013
|
+
se.prototype.clear = ga, se.prototype.delete = ya, se.prototype.get = _a, se.prototype.has = wa, se.prototype.set = Ta;
|
|
1000
1014
|
function ae(e) {
|
|
1001
|
-
var i = -1,
|
|
1002
|
-
for (this.clear(); ++i <
|
|
1015
|
+
var i = -1, s = e ? e.length : 0;
|
|
1016
|
+
for (this.clear(); ++i < s; ) {
|
|
1003
1017
|
var v = e[i];
|
|
1004
1018
|
this.set(v[0], v[1]);
|
|
1005
1019
|
}
|
|
1006
1020
|
}
|
|
1007
|
-
function
|
|
1021
|
+
function ka() {
|
|
1008
1022
|
this.__data__ = [];
|
|
1009
1023
|
}
|
|
1010
|
-
function
|
|
1011
|
-
var i = this.__data__,
|
|
1012
|
-
if (
|
|
1024
|
+
function Sa(e) {
|
|
1025
|
+
var i = this.__data__, s = Se(i, e);
|
|
1026
|
+
if (s < 0)
|
|
1013
1027
|
return !1;
|
|
1014
1028
|
var v = i.length - 1;
|
|
1015
|
-
return
|
|
1016
|
-
}
|
|
1017
|
-
function Sa(e) {
|
|
1018
|
-
var i = this.__data__, o = Se(i, e);
|
|
1019
|
-
return o < 0 ? void 0 : i[o][1];
|
|
1029
|
+
return s == v ? i.pop() : ua.call(i, s, 1), !0;
|
|
1020
1030
|
}
|
|
1021
1031
|
function Ia(e) {
|
|
1032
|
+
var i = this.__data__, s = Se(i, e);
|
|
1033
|
+
return s < 0 ? void 0 : i[s][1];
|
|
1034
|
+
}
|
|
1035
|
+
function Ca(e) {
|
|
1022
1036
|
return Se(this.__data__, e) > -1;
|
|
1023
1037
|
}
|
|
1024
|
-
function
|
|
1025
|
-
var
|
|
1026
|
-
return v < 0 ?
|
|
1038
|
+
function xa(e, i) {
|
|
1039
|
+
var s = this.__data__, v = Se(s, e);
|
|
1040
|
+
return v < 0 ? s.push([e, i]) : s[v][1] = i, this;
|
|
1027
1041
|
}
|
|
1028
|
-
ae.prototype.clear =
|
|
1042
|
+
ae.prototype.clear = ka, ae.prototype.delete = Sa, ae.prototype.get = Ia, ae.prototype.has = Ca, ae.prototype.set = xa;
|
|
1029
1043
|
function de(e) {
|
|
1030
|
-
var i = -1,
|
|
1031
|
-
for (this.clear(); ++i <
|
|
1044
|
+
var i = -1, s = e ? e.length : 0;
|
|
1045
|
+
for (this.clear(); ++i < s; ) {
|
|
1032
1046
|
var v = e[i];
|
|
1033
1047
|
this.set(v[0], v[1]);
|
|
1034
1048
|
}
|
|
@@ -1040,255 +1054,255 @@ var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1040
1054
|
string: new se()
|
|
1041
1055
|
};
|
|
1042
1056
|
}
|
|
1043
|
-
function
|
|
1057
|
+
function Aa(e) {
|
|
1044
1058
|
return Ie(this, e).delete(e);
|
|
1045
1059
|
}
|
|
1046
|
-
function
|
|
1060
|
+
function Na(e) {
|
|
1047
1061
|
return Ie(this, e).get(e);
|
|
1048
1062
|
}
|
|
1049
1063
|
function Ea(e) {
|
|
1050
1064
|
return Ie(this, e).has(e);
|
|
1051
1065
|
}
|
|
1052
|
-
function
|
|
1066
|
+
function $a(e, i) {
|
|
1053
1067
|
return Ie(this, e).set(e, i), this;
|
|
1054
1068
|
}
|
|
1055
|
-
de.prototype.clear = Oa, de.prototype.delete =
|
|
1069
|
+
de.prototype.clear = Oa, de.prototype.delete = Aa, de.prototype.get = Na, de.prototype.has = Ea, de.prototype.set = $a;
|
|
1056
1070
|
function fe(e) {
|
|
1057
1071
|
this.__data__ = new ae(e);
|
|
1058
1072
|
}
|
|
1059
|
-
function
|
|
1073
|
+
function Fa() {
|
|
1060
1074
|
this.__data__ = new ae();
|
|
1061
1075
|
}
|
|
1062
|
-
function
|
|
1076
|
+
function Da(e) {
|
|
1063
1077
|
return this.__data__.delete(e);
|
|
1064
1078
|
}
|
|
1065
|
-
function
|
|
1079
|
+
function Ba(e) {
|
|
1066
1080
|
return this.__data__.get(e);
|
|
1067
1081
|
}
|
|
1068
|
-
function
|
|
1082
|
+
function Ma(e) {
|
|
1069
1083
|
return this.__data__.has(e);
|
|
1070
1084
|
}
|
|
1071
|
-
function
|
|
1072
|
-
var
|
|
1073
|
-
if (
|
|
1074
|
-
var v =
|
|
1085
|
+
function La(e, i) {
|
|
1086
|
+
var s = this.__data__;
|
|
1087
|
+
if (s instanceof ae) {
|
|
1088
|
+
var v = s.__data__;
|
|
1075
1089
|
if (!me || v.length < a - 1)
|
|
1076
1090
|
return v.push([e, i]), this;
|
|
1077
|
-
|
|
1091
|
+
s = this.__data__ = new de(v);
|
|
1078
1092
|
}
|
|
1079
|
-
return
|
|
1093
|
+
return s.set(e, i), this;
|
|
1080
1094
|
}
|
|
1081
|
-
fe.prototype.clear =
|
|
1082
|
-
function
|
|
1083
|
-
var
|
|
1084
|
-
for (var
|
|
1085
|
-
(i || re.call(e,
|
|
1086
|
-
return
|
|
1095
|
+
fe.prototype.clear = Fa, fe.prototype.delete = Da, fe.prototype.get = Ba, fe.prototype.has = Ma, fe.prototype.set = La;
|
|
1096
|
+
function Ra(e, i) {
|
|
1097
|
+
var s = Ye(e) || ln(e) ? aa(e.length, String) : [], v = s.length, R = !!v;
|
|
1098
|
+
for (var H in e)
|
|
1099
|
+
(i || re.call(e, H)) && !(R && (H == "length" || rn(H, v))) && s.push(H);
|
|
1100
|
+
return s;
|
|
1087
1101
|
}
|
|
1088
|
-
function yt(e, i,
|
|
1102
|
+
function yt(e, i, s) {
|
|
1089
1103
|
var v = e[i];
|
|
1090
|
-
(!(re.call(e, i) && kt(v,
|
|
1104
|
+
(!(re.call(e, i) && kt(v, s)) || s === void 0 && !(i in e)) && (e[i] = s);
|
|
1091
1105
|
}
|
|
1092
1106
|
function Se(e, i) {
|
|
1093
|
-
for (var
|
|
1094
|
-
if (kt(e[
|
|
1095
|
-
return
|
|
1107
|
+
for (var s = e.length; s--; )
|
|
1108
|
+
if (kt(e[s][0], i))
|
|
1109
|
+
return s;
|
|
1096
1110
|
return -1;
|
|
1097
1111
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return e && _t(i,
|
|
1112
|
+
function Za(e, i) {
|
|
1113
|
+
return e && _t(i, Xe(i), e);
|
|
1100
1114
|
}
|
|
1101
|
-
function
|
|
1115
|
+
function qe(e, i, s, v, R, H, U) {
|
|
1102
1116
|
var V;
|
|
1103
|
-
if (v && (V =
|
|
1117
|
+
if (v && (V = H ? v(e, R, H, U) : v(e)), V !== void 0)
|
|
1104
1118
|
return V;
|
|
1105
1119
|
if (!Ce(e))
|
|
1106
1120
|
return e;
|
|
1107
|
-
var Ct =
|
|
1121
|
+
var Ct = Ye(e);
|
|
1108
1122
|
if (Ct) {
|
|
1109
|
-
if (V =
|
|
1110
|
-
return
|
|
1123
|
+
if (V = tn(e), !i)
|
|
1124
|
+
return Ja(e, V);
|
|
1111
1125
|
} else {
|
|
1112
|
-
var be = ce(e),
|
|
1113
|
-
if (
|
|
1114
|
-
return
|
|
1115
|
-
if (be ==
|
|
1126
|
+
var be = ce(e), xt = be == C || be == S;
|
|
1127
|
+
if (dn(e))
|
|
1128
|
+
return Va(e, i);
|
|
1129
|
+
if (be == $ || be == l || xt && !H) {
|
|
1116
1130
|
if (ct(e))
|
|
1117
|
-
return
|
|
1118
|
-
if (V =
|
|
1119
|
-
return
|
|
1131
|
+
return H ? e : {};
|
|
1132
|
+
if (V = an(xt ? {} : e), !i)
|
|
1133
|
+
return Qa(e, Za(V, e));
|
|
1120
1134
|
} else {
|
|
1121
|
-
if (!
|
|
1122
|
-
return
|
|
1123
|
-
V =
|
|
1135
|
+
if (!O[be])
|
|
1136
|
+
return H ? e : {};
|
|
1137
|
+
V = nn(e, be, qe, i);
|
|
1124
1138
|
}
|
|
1125
1139
|
}
|
|
1126
|
-
|
|
1127
|
-
var
|
|
1128
|
-
if (
|
|
1129
|
-
return
|
|
1130
|
-
if (
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1133
|
-
|
|
1140
|
+
U || (U = new fe());
|
|
1141
|
+
var Ot = U.get(e);
|
|
1142
|
+
if (Ot)
|
|
1143
|
+
return Ot;
|
|
1144
|
+
if (U.set(e, V), !Ct)
|
|
1145
|
+
var At = s ? en(e) : Xe(e);
|
|
1146
|
+
return ea(At || e, function(Je, xe) {
|
|
1147
|
+
At && (xe = Je, Je = e[xe]), yt(V, xe, qe(Je, i, s, v, xe, e, U));
|
|
1134
1148
|
}), V;
|
|
1135
1149
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return Ce(e) ?
|
|
1150
|
+
function Pa(e) {
|
|
1151
|
+
return Ce(e) ? ca(e) : {};
|
|
1138
1152
|
}
|
|
1139
|
-
function
|
|
1153
|
+
function ja(e, i, s) {
|
|
1140
1154
|
var v = i(e);
|
|
1141
|
-
return
|
|
1155
|
+
return Ye(e) ? v : ta(v, s(e));
|
|
1142
1156
|
}
|
|
1143
|
-
function
|
|
1157
|
+
function Ka(e) {
|
|
1144
1158
|
return ke.call(e);
|
|
1145
1159
|
}
|
|
1146
1160
|
function Ha(e) {
|
|
1147
|
-
if (!Ce(e) ||
|
|
1161
|
+
if (!Ce(e) || sn(e))
|
|
1148
1162
|
return !1;
|
|
1149
|
-
var i = It(e) || ct(e) ?
|
|
1163
|
+
var i = It(e) || ct(e) ? oa : je;
|
|
1150
1164
|
return i.test(le(e));
|
|
1151
1165
|
}
|
|
1152
|
-
function
|
|
1166
|
+
function za(e) {
|
|
1153
1167
|
if (!Tt(e))
|
|
1154
|
-
return
|
|
1168
|
+
return fa(e);
|
|
1155
1169
|
var i = [];
|
|
1156
|
-
for (var
|
|
1157
|
-
re.call(e,
|
|
1170
|
+
for (var s in Object(e))
|
|
1171
|
+
re.call(e, s) && s != "constructor" && i.push(s);
|
|
1158
1172
|
return i;
|
|
1159
1173
|
}
|
|
1160
|
-
function
|
|
1174
|
+
function Va(e, i) {
|
|
1161
1175
|
if (i)
|
|
1162
1176
|
return e.slice();
|
|
1163
|
-
var
|
|
1164
|
-
return e.copy(
|
|
1177
|
+
var s = new e.constructor(e.length);
|
|
1178
|
+
return e.copy(s), s;
|
|
1165
1179
|
}
|
|
1166
1180
|
function Ue(e) {
|
|
1167
1181
|
var i = new e.constructor(e.byteLength);
|
|
1168
1182
|
return new pt(i).set(new pt(e)), i;
|
|
1169
1183
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var
|
|
1172
|
-
return new e.constructor(
|
|
1184
|
+
function Wa(e, i) {
|
|
1185
|
+
var s = i ? Ue(e.buffer) : e.buffer;
|
|
1186
|
+
return new e.constructor(s, e.byteOffset, e.byteLength);
|
|
1173
1187
|
}
|
|
1174
|
-
function
|
|
1175
|
-
var v = i ?
|
|
1176
|
-
return st(v,
|
|
1188
|
+
function Ga(e, i, s) {
|
|
1189
|
+
var v = i ? s(lt(e), !0) : lt(e);
|
|
1190
|
+
return st(v, Jt, new e.constructor());
|
|
1177
1191
|
}
|
|
1178
|
-
function
|
|
1192
|
+
function qa(e) {
|
|
1179
1193
|
var i = new e.constructor(e.source, ee.exec(e));
|
|
1180
1194
|
return i.lastIndex = e.lastIndex, i;
|
|
1181
1195
|
}
|
|
1182
|
-
function Ua(e, i,
|
|
1183
|
-
var v = i ?
|
|
1184
|
-
return st(v,
|
|
1196
|
+
function Ua(e, i, s) {
|
|
1197
|
+
var v = i ? s(ut(e), !0) : ut(e);
|
|
1198
|
+
return st(v, Qt, new e.constructor());
|
|
1185
1199
|
}
|
|
1186
|
-
function
|
|
1200
|
+
function Ya(e) {
|
|
1187
1201
|
return gt ? Object(gt.call(e)) : {};
|
|
1188
1202
|
}
|
|
1189
|
-
function Ya(e, i) {
|
|
1190
|
-
var o = i ? Ue(e.buffer) : e.buffer;
|
|
1191
|
-
return new e.constructor(o, e.byteOffset, e.length);
|
|
1192
|
-
}
|
|
1193
1203
|
function Xa(e, i) {
|
|
1194
|
-
var
|
|
1195
|
-
|
|
1196
|
-
|
|
1204
|
+
var s = i ? Ue(e.buffer) : e.buffer;
|
|
1205
|
+
return new e.constructor(s, e.byteOffset, e.length);
|
|
1206
|
+
}
|
|
1207
|
+
function Ja(e, i) {
|
|
1208
|
+
var s = -1, v = e.length;
|
|
1209
|
+
for (i || (i = Array(v)); ++s < v; )
|
|
1210
|
+
i[s] = e[s];
|
|
1197
1211
|
return i;
|
|
1198
1212
|
}
|
|
1199
|
-
function _t(e, i,
|
|
1200
|
-
|
|
1201
|
-
for (var
|
|
1202
|
-
var
|
|
1203
|
-
yt(
|
|
1213
|
+
function _t(e, i, s, v) {
|
|
1214
|
+
s || (s = {});
|
|
1215
|
+
for (var R = -1, H = i.length; ++R < H; ) {
|
|
1216
|
+
var U = i[R], V = v ? v(s[U], e[U], U, s, e) : void 0;
|
|
1217
|
+
yt(s, U, V === void 0 ? e[U] : V);
|
|
1204
1218
|
}
|
|
1205
|
-
return
|
|
1219
|
+
return s;
|
|
1206
1220
|
}
|
|
1207
|
-
function
|
|
1221
|
+
function Qa(e, i) {
|
|
1208
1222
|
return _t(e, wt(e), i);
|
|
1209
1223
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return
|
|
1224
|
+
function en(e) {
|
|
1225
|
+
return ja(e, Xe, wt);
|
|
1212
1226
|
}
|
|
1213
1227
|
function Ie(e, i) {
|
|
1214
|
-
var
|
|
1215
|
-
return
|
|
1228
|
+
var s = e.__data__;
|
|
1229
|
+
return on(i) ? s[typeof i == "string" ? "string" : "hash"] : s.map;
|
|
1216
1230
|
}
|
|
1217
1231
|
function ve(e, i) {
|
|
1218
|
-
var
|
|
1219
|
-
return Ha(
|
|
1232
|
+
var s = na(e, i);
|
|
1233
|
+
return Ha(s) ? s : void 0;
|
|
1220
1234
|
}
|
|
1221
|
-
var wt = ht ?
|
|
1222
|
-
(
|
|
1223
|
-
var i = ke.call(e),
|
|
1235
|
+
var wt = ht ? Ke(ht, Object) : bn, ce = Ka;
|
|
1236
|
+
(ze && ce(new ze(new ArrayBuffer(1))) != x || me && ce(new me()) != D || Ve && ce(Ve.resolve()) != K || We && ce(new We()) != j || Ge && ce(new Ge()) != I) && (ce = function(e) {
|
|
1237
|
+
var i = ke.call(e), s = i == $ ? e.constructor : void 0, v = s ? le(s) : void 0;
|
|
1224
1238
|
if (v)
|
|
1225
1239
|
switch (v) {
|
|
1226
|
-
case fa:
|
|
1227
|
-
return I;
|
|
1228
1240
|
case va:
|
|
1229
|
-
return
|
|
1241
|
+
return x;
|
|
1230
1242
|
case ba:
|
|
1231
|
-
return
|
|
1243
|
+
return D;
|
|
1232
1244
|
case pa:
|
|
1233
|
-
return
|
|
1245
|
+
return K;
|
|
1234
1246
|
case ha:
|
|
1235
|
-
return
|
|
1247
|
+
return j;
|
|
1248
|
+
case ma:
|
|
1249
|
+
return I;
|
|
1236
1250
|
}
|
|
1237
1251
|
return i;
|
|
1238
1252
|
});
|
|
1239
|
-
function en(e) {
|
|
1240
|
-
var i = e.length, o = e.constructor(i);
|
|
1241
|
-
return i && typeof e[0] == "string" && re.call(e, "index") && (o.index = e.index, o.input = e.input), o;
|
|
1242
|
-
}
|
|
1243
1253
|
function tn(e) {
|
|
1244
|
-
|
|
1254
|
+
var i = e.length, s = e.constructor(i);
|
|
1255
|
+
return i && typeof e[0] == "string" && re.call(e, "index") && (s.index = e.index, s.input = e.input), s;
|
|
1256
|
+
}
|
|
1257
|
+
function an(e) {
|
|
1258
|
+
return typeof e.constructor == "function" && !Tt(e) ? Pa(sa(e)) : {};
|
|
1245
1259
|
}
|
|
1246
|
-
function
|
|
1247
|
-
var
|
|
1260
|
+
function nn(e, i, s, v) {
|
|
1261
|
+
var R = e.constructor;
|
|
1248
1262
|
switch (i) {
|
|
1249
1263
|
case Z:
|
|
1250
1264
|
return Ue(e);
|
|
1251
|
-
case f:
|
|
1252
|
-
case w:
|
|
1253
|
-
return new L(+e);
|
|
1254
|
-
case I:
|
|
1255
|
-
return Va(e, v);
|
|
1256
|
-
case l:
|
|
1257
1265
|
case d:
|
|
1258
|
-
case
|
|
1266
|
+
case g:
|
|
1267
|
+
return new R(+e);
|
|
1259
1268
|
case x:
|
|
1269
|
+
return Wa(e, v);
|
|
1270
|
+
case u:
|
|
1271
|
+
case f:
|
|
1272
|
+
case b:
|
|
1273
|
+
case N:
|
|
1260
1274
|
case h:
|
|
1261
|
-
case
|
|
1262
|
-
case
|
|
1263
|
-
case
|
|
1264
|
-
case
|
|
1265
|
-
return
|
|
1275
|
+
case F:
|
|
1276
|
+
case y:
|
|
1277
|
+
case L:
|
|
1278
|
+
case k:
|
|
1279
|
+
return Xa(e, v);
|
|
1266
1280
|
case D:
|
|
1267
|
-
return
|
|
1268
|
-
case
|
|
1281
|
+
return Ga(e, v, s);
|
|
1282
|
+
case A:
|
|
1269
1283
|
case Y:
|
|
1270
|
-
return new
|
|
1284
|
+
return new R(e);
|
|
1271
1285
|
case G:
|
|
1272
|
-
return Ga(e);
|
|
1273
|
-
case j:
|
|
1274
|
-
return Ua(e, v, o);
|
|
1275
|
-
case U:
|
|
1276
1286
|
return qa(e);
|
|
1287
|
+
case j:
|
|
1288
|
+
return Ua(e, v, s);
|
|
1289
|
+
case q:
|
|
1290
|
+
return Ya(e);
|
|
1277
1291
|
}
|
|
1278
1292
|
}
|
|
1279
|
-
function
|
|
1293
|
+
function rn(e, i) {
|
|
1280
1294
|
return i = i ?? c, !!i && (typeof e == "number" || he.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1281
1295
|
}
|
|
1282
|
-
function
|
|
1296
|
+
function on(e) {
|
|
1283
1297
|
var i = typeof e;
|
|
1284
1298
|
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1285
1299
|
}
|
|
1286
|
-
function
|
|
1300
|
+
function sn(e) {
|
|
1287
1301
|
return !!dt && dt in e;
|
|
1288
1302
|
}
|
|
1289
1303
|
function Tt(e) {
|
|
1290
|
-
var i = e && e.constructor,
|
|
1291
|
-
return e ===
|
|
1304
|
+
var i = e && e.constructor, s = typeof i == "function" && i.prototype || Te;
|
|
1305
|
+
return e === s;
|
|
1292
1306
|
}
|
|
1293
1307
|
function le(e) {
|
|
1294
1308
|
if (e != null) {
|
|
@@ -1303,65 +1317,65 @@ var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1303
1317
|
}
|
|
1304
1318
|
return "";
|
|
1305
1319
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return
|
|
1320
|
+
function cn(e) {
|
|
1321
|
+
return qe(e, !0, !0);
|
|
1308
1322
|
}
|
|
1309
1323
|
function kt(e, i) {
|
|
1310
1324
|
return e === i || e !== e && i !== i;
|
|
1311
1325
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return
|
|
1326
|
+
function ln(e) {
|
|
1327
|
+
return un(e) && re.call(e, "callee") && (!la.call(e, "callee") || ke.call(e) == l);
|
|
1314
1328
|
}
|
|
1315
|
-
var
|
|
1329
|
+
var Ye = Array.isArray;
|
|
1316
1330
|
function St(e) {
|
|
1317
|
-
return e != null &&
|
|
1331
|
+
return e != null && fn(e.length) && !It(e);
|
|
1318
1332
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1333
|
+
function un(e) {
|
|
1334
|
+
return vn(e) && St(e);
|
|
1321
1335
|
}
|
|
1322
|
-
var
|
|
1336
|
+
var dn = da || pn;
|
|
1323
1337
|
function It(e) {
|
|
1324
1338
|
var i = Ce(e) ? ke.call(e) : "";
|
|
1325
|
-
return i ==
|
|
1339
|
+
return i == C || i == S;
|
|
1326
1340
|
}
|
|
1327
|
-
function
|
|
1341
|
+
function fn(e) {
|
|
1328
1342
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= c;
|
|
1329
1343
|
}
|
|
1330
1344
|
function Ce(e) {
|
|
1331
1345
|
var i = typeof e;
|
|
1332
1346
|
return !!e && (i == "object" || i == "function");
|
|
1333
1347
|
}
|
|
1334
|
-
function
|
|
1348
|
+
function vn(e) {
|
|
1335
1349
|
return !!e && typeof e == "object";
|
|
1336
1350
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return St(e) ?
|
|
1351
|
+
function Xe(e) {
|
|
1352
|
+
return St(e) ? Ra(e) : za(e);
|
|
1339
1353
|
}
|
|
1340
|
-
function
|
|
1354
|
+
function bn() {
|
|
1341
1355
|
return [];
|
|
1342
1356
|
}
|
|
1343
|
-
function
|
|
1357
|
+
function pn() {
|
|
1344
1358
|
return !1;
|
|
1345
1359
|
}
|
|
1346
|
-
n.exports =
|
|
1347
|
-
})(
|
|
1348
|
-
const
|
|
1360
|
+
n.exports = cn;
|
|
1361
|
+
})(Br, Re);
|
|
1362
|
+
const Mr = Re, Lr = {
|
|
1349
1363
|
key: 0,
|
|
1350
1364
|
class: "sidebar-header"
|
|
1351
|
-
},
|
|
1365
|
+
}, Rr = { class: "sidebar-content-container" }, Zr = {
|
|
1352
1366
|
key: 0,
|
|
1353
1367
|
class: "sidebar-top"
|
|
1354
|
-
},
|
|
1368
|
+
}, Pr = { "aria-label": "Main menu" }, jr = {
|
|
1355
1369
|
key: 0,
|
|
1356
1370
|
class: "level-primary top-items"
|
|
1357
|
-
},
|
|
1371
|
+
}, Kr = {
|
|
1358
1372
|
key: 1,
|
|
1359
1373
|
class: "sidebar-level-divider",
|
|
1360
1374
|
role: "separator"
|
|
1361
|
-
},
|
|
1375
|
+
}, Hr = {
|
|
1362
1376
|
key: 2,
|
|
1363
1377
|
class: "level-primary bottom-items"
|
|
1364
|
-
},
|
|
1378
|
+
}, zr = ["href", "target"], Vr = /* @__PURE__ */ Q({
|
|
1365
1379
|
__name: "AppSidebar",
|
|
1366
1380
|
props: {
|
|
1367
1381
|
topItems: {
|
|
@@ -1430,84 +1444,84 @@ const Dr = Me, Rr = {
|
|
|
1430
1444
|
setup(n, { emit: t }) {
|
|
1431
1445
|
const a = n;
|
|
1432
1446
|
et((h) => ({
|
|
1433
|
-
"2f16a480": m(
|
|
1434
|
-
b641d6c8: m(
|
|
1447
|
+
"2f16a480": m(o).mobileHeight,
|
|
1448
|
+
b641d6c8: m(o).mobileTop,
|
|
1435
1449
|
"124a6b28": n.zIndex,
|
|
1436
|
-
"243f467e": m(
|
|
1437
|
-
"3d33e35e": m(
|
|
1438
|
-
"6cd763b2": m(
|
|
1439
|
-
"7c8d66cc": m(
|
|
1440
|
-
"21e03bf1": m(
|
|
1441
|
-
"0260816d": m(
|
|
1442
|
-
b6c8c540: m(
|
|
1450
|
+
"243f467e": m(o).height,
|
|
1451
|
+
"3d33e35e": m(o).top,
|
|
1452
|
+
"6cd763b2": m(g).marginTop,
|
|
1453
|
+
"7c8d66cc": m(d).display,
|
|
1454
|
+
"21e03bf1": m(d).minHeight,
|
|
1455
|
+
"0260816d": m(_).top,
|
|
1456
|
+
b6c8c540: m(_).zIndex
|
|
1443
1457
|
}));
|
|
1444
|
-
const r = tt(), c =
|
|
1458
|
+
const r = tt(), c = w(() => !!r.header), l = w(() => !!r.top), o = w(() => ({
|
|
1445
1459
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1446
1460
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1447
1461
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
1448
1462
|
height: a.topOffset ? `calc(100% - ${a.topOffset}px)` : "100%"
|
|
1449
|
-
})),
|
|
1463
|
+
})), d = w(() => ({
|
|
1450
1464
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1451
1465
|
minHeight: `${a.headerHeight}px`
|
|
1452
|
-
})),
|
|
1466
|
+
})), g = w(() => ({
|
|
1453
1467
|
marginTop: c.value ? `${a.headerHeight}px` : "0"
|
|
1454
|
-
})),
|
|
1468
|
+
})), _ = w(() => ({
|
|
1455
1469
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1456
1470
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1457
|
-
})),
|
|
1458
|
-
var
|
|
1459
|
-
if (
|
|
1460
|
-
(!
|
|
1461
|
-
for (const ee of
|
|
1462
|
-
ee.parentKey =
|
|
1471
|
+
})), C = (h) => Mr(h).map((y) => {
|
|
1472
|
+
var L, k, X;
|
|
1473
|
+
if (y) {
|
|
1474
|
+
(!y.key || !((L = y.key) != null && L.trim())) && (y.key = String(y.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!y.testId || !((k = y.testId) != null && k.trim())) && (y.testId = String(y.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1475
|
+
for (const ee of y.items || [])
|
|
1476
|
+
ee.parentKey = y.key, (!ee.testId || !((X = ee.testId) != null && X.trim())) && (ee.testId = String(ee.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1463
1477
|
}
|
|
1464
|
-
return
|
|
1465
|
-
}),
|
|
1466
|
-
var
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
a.mobileOverlayCloseOnClick &&
|
|
1478
|
+
return y;
|
|
1479
|
+
}), S = w(() => a.topItems.length ? C(a.topItems) : []), D = w(() => a.bottomItems.length ? C(a.bottomItems) : []), A = W(a.open), $ = (h) => {
|
|
1480
|
+
var F, y;
|
|
1481
|
+
A.value !== h && (A.value = h, t("toggle", h)), h ? (F = document == null ? void 0 : document.body) == null || F.classList.add("kong-ui-app-sidebar-open") : (y = document == null ? void 0 : document.body) == null || y.classList.remove("kong-ui-app-sidebar-open"), G.value = !1;
|
|
1482
|
+
}, K = () => {
|
|
1483
|
+
a.mobileOverlayCloseOnClick && $(!1);
|
|
1470
1484
|
}, G = W(!1), j = (h) => {
|
|
1471
1485
|
G.value = !0, t("click", h), setTimeout(() => {
|
|
1472
|
-
|
|
1486
|
+
$(!1);
|
|
1473
1487
|
}, a.mobileCloseDelay);
|
|
1474
1488
|
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1489
|
+
$e(() => a.open, (h) => {
|
|
1490
|
+
$(h);
|
|
1477
1491
|
});
|
|
1478
|
-
const { debounce: Y } =
|
|
1479
|
-
|
|
1480
|
-
}, 200),
|
|
1481
|
-
Z.value || (Z.value = !0, clearTimeout(
|
|
1482
|
-
},
|
|
1483
|
-
var
|
|
1484
|
-
h ? (await
|
|
1492
|
+
const { debounce: Y } = Gt(), q = Y(() => {
|
|
1493
|
+
A.value && I.value !== (window == null ? void 0 : window.innerWidth) && (I.value = window == null ? void 0 : window.innerWidth, $(!1));
|
|
1494
|
+
}, 200), I = W(), Z = W(!1), x = W(), u = () => {
|
|
1495
|
+
Z.value || (Z.value = !0, clearTimeout(x.value), x.value = setTimeout(() => Z.value = !1, 1300));
|
|
1496
|
+
}, f = W(null), b = w(() => A.value && a.mobileEnabled), N = async (h) => {
|
|
1497
|
+
var F, y;
|
|
1498
|
+
h ? (await wn(), await new Promise((L) => setTimeout(L, 300)), (F = f.value) == null || F.activate()) : (y = f.value) == null || y.deactivate();
|
|
1485
1499
|
};
|
|
1486
|
-
return
|
|
1487
|
-
h ? await
|
|
1488
|
-
}, { immediate: !0 }),
|
|
1489
|
-
|
|
1490
|
-
}),
|
|
1491
|
-
window.removeEventListener("resize",
|
|
1492
|
-
}), (h,
|
|
1493
|
-
const
|
|
1494
|
-
return p(),
|
|
1495
|
-
|
|
1500
|
+
return $e(b, async (h) => {
|
|
1501
|
+
h ? await N(!0) : await N(!1);
|
|
1502
|
+
}, { immediate: !0 }), Ze(() => {
|
|
1503
|
+
I.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", q), window.addEventListener("resize", u);
|
|
1504
|
+
}), Pt(() => {
|
|
1505
|
+
window.removeEventListener("resize", q), window.removeEventListener("resize", u);
|
|
1506
|
+
}), (h, F) => {
|
|
1507
|
+
const y = oe("KIcon"), L = oe("KDropdownItem");
|
|
1508
|
+
return p(), E(pe, null, [
|
|
1509
|
+
A.value && n.mobileOverlay && n.mobileEnabled ? (p(), E("div", {
|
|
1496
1510
|
key: 0,
|
|
1497
1511
|
class: "kong-ui-app-sidebar-overlay",
|
|
1498
|
-
onClick:
|
|
1499
|
-
})) :
|
|
1500
|
-
|
|
1512
|
+
onClick: K
|
|
1513
|
+
})) : M("", !0),
|
|
1514
|
+
Pe(m(Dr), {
|
|
1501
1515
|
ref_key: "focusTrap",
|
|
1502
|
-
ref:
|
|
1516
|
+
ref: f,
|
|
1503
1517
|
active: !1,
|
|
1504
1518
|
"allow-outside-click": "",
|
|
1505
1519
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1506
1520
|
}, {
|
|
1507
1521
|
default: P(() => [
|
|
1508
|
-
|
|
1522
|
+
T("aside", {
|
|
1509
1523
|
class: ne(["kong-ui-app-sidebar", {
|
|
1510
|
-
"sidebar-open":
|
|
1524
|
+
"sidebar-open": A.value,
|
|
1511
1525
|
"no-sidebar-header": !m(c),
|
|
1512
1526
|
"mobile-header-hidden": n.mobileEnabled && (!m(c) || !n.mobileHeaderVisible),
|
|
1513
1527
|
"mobile-disabled": !n.mobileEnabled,
|
|
@@ -1515,67 +1529,67 @@ const Dr = Me, Rr = {
|
|
|
1515
1529
|
}]),
|
|
1516
1530
|
tabindex: "-1"
|
|
1517
1531
|
}, [
|
|
1518
|
-
m(c) ? (p(),
|
|
1519
|
-
|
|
1520
|
-
])) :
|
|
1521
|
-
|
|
1522
|
-
m(
|
|
1523
|
-
|
|
1524
|
-
])) :
|
|
1525
|
-
|
|
1526
|
-
m(
|
|
1527
|
-
(p(!0),
|
|
1528
|
-
key:
|
|
1529
|
-
item:
|
|
1532
|
+
m(c) ? (p(), E("div", Lr, [
|
|
1533
|
+
B(h.$slots, "header", {}, void 0, !0)
|
|
1534
|
+
])) : M("", !0),
|
|
1535
|
+
T("div", Rr, [
|
|
1536
|
+
m(l) ? (p(), E("div", Zr, [
|
|
1537
|
+
B(h.$slots, "top", {}, void 0, !0)
|
|
1538
|
+
])) : M("", !0),
|
|
1539
|
+
T("nav", Pr, [
|
|
1540
|
+
m(S).length ? (p(), E("ul", jr, [
|
|
1541
|
+
(p(!0), E(pe, null, _e(m(S), (k) => (p(), z(Et, {
|
|
1542
|
+
key: k.name,
|
|
1543
|
+
item: k,
|
|
1530
1544
|
onClick: j
|
|
1531
1545
|
}, null, 8, ["item"]))), 128))
|
|
1532
|
-
])) :
|
|
1533
|
-
m(
|
|
1534
|
-
m(D).length ? (p(),
|
|
1535
|
-
(p(!0),
|
|
1536
|
-
key:
|
|
1537
|
-
item:
|
|
1546
|
+
])) : M("", !0),
|
|
1547
|
+
m(S).length && m(D).length ? (p(), E("div", Kr)) : M("", !0),
|
|
1548
|
+
m(D).length ? (p(), E("ul", Hr, [
|
|
1549
|
+
(p(!0), E(pe, null, _e(m(D), (k) => (p(), z(Et, {
|
|
1550
|
+
key: k.name,
|
|
1551
|
+
item: k,
|
|
1538
1552
|
onClick: j
|
|
1539
1553
|
}, null, 8, ["item"]))), 128))
|
|
1540
|
-
])) :
|
|
1554
|
+
])) : M("", !0)
|
|
1541
1555
|
])
|
|
1542
1556
|
]),
|
|
1543
|
-
n.profileName || n.profileItems.length ? (p(), z(
|
|
1557
|
+
n.profileName || n.profileItems.length ? (p(), z(sr, {
|
|
1544
1558
|
key: 1,
|
|
1545
1559
|
class: "sidebar-profile-menu",
|
|
1546
1560
|
"item-count": n.profileItems.length,
|
|
1547
1561
|
name: n.profileName
|
|
1548
1562
|
}, {
|
|
1549
1563
|
default: P(() => [
|
|
1550
|
-
(p(!0),
|
|
1551
|
-
key:
|
|
1552
|
-
class: ne([{ "has-divider":
|
|
1553
|
-
"has-divider":
|
|
1554
|
-
item: (
|
|
1555
|
-
onClick: (X) => j(
|
|
1564
|
+
(p(!0), E(pe, null, _e(n.profileItems, (k) => (p(), z(L, {
|
|
1565
|
+
key: k.name,
|
|
1566
|
+
class: ne([{ "has-divider": k.hasDivider }, { "external-profile-dropdown-link": (k.external || k.newWindow) && typeof k.to == "string" }]),
|
|
1567
|
+
"has-divider": k.hasDivider,
|
|
1568
|
+
item: (k.external || k.newWindow) && typeof k.to == "string" ? void 0 : { label: k.name, to: k.to },
|
|
1569
|
+
onClick: (X) => j(k)
|
|
1556
1570
|
}, {
|
|
1557
1571
|
default: P(() => [
|
|
1558
|
-
(
|
|
1572
|
+
(k.external || k.newWindow) && typeof k.to == "string" ? (p(), E("a", {
|
|
1559
1573
|
key: 0,
|
|
1560
1574
|
class: "sidebar-item-external-link",
|
|
1561
|
-
href:
|
|
1562
|
-
target:
|
|
1575
|
+
href: k.to,
|
|
1576
|
+
target: k.newWindow ? "_blank" : void 0
|
|
1563
1577
|
}, [
|
|
1564
|
-
Fe(ie(
|
|
1565
|
-
|
|
1578
|
+
Fe(ie(k.name) + " ", 1),
|
|
1579
|
+
k.newWindow ? (p(), z(y, {
|
|
1566
1580
|
key: 0,
|
|
1567
1581
|
color: "var(--black-70, rgba(0,0,0,0.7))",
|
|
1568
1582
|
icon: "externalLink",
|
|
1569
1583
|
size: "20",
|
|
1570
1584
|
viewBox: "0 0 20 20"
|
|
1571
|
-
})) :
|
|
1572
|
-
], 8,
|
|
1585
|
+
})) : M("", !0)
|
|
1586
|
+
], 8, zr)) : M("", !0)
|
|
1573
1587
|
]),
|
|
1574
1588
|
_: 2
|
|
1575
1589
|
}, 1032, ["class", "has-divider", "item", "onClick"]))), 128))
|
|
1576
1590
|
]),
|
|
1577
1591
|
_: 1
|
|
1578
|
-
}, 8, ["item-count", "name"])) :
|
|
1592
|
+
}, 8, ["item-count", "name"])) : M("", !0)
|
|
1579
1593
|
], 2)
|
|
1580
1594
|
]),
|
|
1581
1595
|
_: 3
|
|
@@ -1584,11 +1598,11 @@ const Dr = Me, Rr = {
|
|
|
1584
1598
|
};
|
|
1585
1599
|
}
|
|
1586
1600
|
});
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
],
|
|
1601
|
+
const Wr = /* @__PURE__ */ J(Vr, [["__scopeId", "data-v-38b80087"]]), rt = (n) => (at("data-v-33b3f7c3"), n = n(), nt(), n), Gr = ["aria-label", "onClick"], qr = /* @__PURE__ */ rt(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), Ur = /* @__PURE__ */ rt(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), Yr = /* @__PURE__ */ rt(() => /* @__PURE__ */ T("span", { class: "line" }, null, -1)), Xr = [
|
|
1602
|
+
qr,
|
|
1603
|
+
Ur,
|
|
1604
|
+
Yr
|
|
1605
|
+
], Jr = /* @__PURE__ */ Q({
|
|
1592
1606
|
__name: "SidebarToggle",
|
|
1593
1607
|
props: {
|
|
1594
1608
|
active: {
|
|
@@ -1601,25 +1615,25 @@ const zr = /* @__PURE__ */ J(Kr, [["__scopeId", "data-v-38b80087"]]), rt = (n) =
|
|
|
1601
1615
|
const a = n, r = W(a.active || !1), c = () => {
|
|
1602
1616
|
r.value = !r.value, t("toggle", r.value);
|
|
1603
1617
|
};
|
|
1604
|
-
return
|
|
1605
|
-
r.value =
|
|
1606
|
-
}), (
|
|
1618
|
+
return $e(() => a.active, (l) => {
|
|
1619
|
+
r.value = l;
|
|
1620
|
+
}), (l, o) => (p(), E("a", {
|
|
1607
1621
|
"aria-haspopup": "true",
|
|
1608
1622
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1609
1623
|
class: ne(["sidebar-menu-toggle", { active: r.value }]),
|
|
1610
1624
|
href: "#",
|
|
1611
1625
|
role: "button",
|
|
1612
|
-
onClick:
|
|
1613
|
-
},
|
|
1626
|
+
onClick: Zt(c, ["prevent"])
|
|
1627
|
+
}, Xr, 10, Gr));
|
|
1614
1628
|
}
|
|
1615
1629
|
});
|
|
1616
|
-
const
|
|
1630
|
+
const Qr = /* @__PURE__ */ J(Jr, [["__scopeId", "data-v-33b3f7c3"]]), ei = (n) => (at("data-v-c8f90c1e"), n = n(), nt(), n), ti = { id: "kong-ui-app-layout-notification" }, ai = { class: "mobile-logo" }, ni = {
|
|
1617
1631
|
key: 0,
|
|
1618
1632
|
class: "navbar-logo"
|
|
1619
|
-
},
|
|
1633
|
+
}, ri = {
|
|
1620
1634
|
class: "kong-ui-app-layout-main",
|
|
1621
1635
|
"data-testid": "kong-ui-app-layout-main"
|
|
1622
|
-
},
|
|
1636
|
+
}, ii = { class: "kong-ui-app-layout-content" }, oi = /* @__PURE__ */ ei(() => /* @__PURE__ */ T("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), si = /* @__PURE__ */ Q({
|
|
1623
1637
|
__name: "AppLayout",
|
|
1624
1638
|
props: {
|
|
1625
1639
|
hideDefaultSlot: {
|
|
@@ -1660,72 +1674,72 @@ const Xr = /* @__PURE__ */ J(Yr, [["__scopeId", "data-v-33b3f7c3"]]), Jr = (n) =
|
|
|
1660
1674
|
emits: ["sidebar-click"],
|
|
1661
1675
|
setup(n, { emit: t }) {
|
|
1662
1676
|
const a = n;
|
|
1663
|
-
et((
|
|
1664
|
-
aa60aac2: m(
|
|
1677
|
+
et((I) => ({
|
|
1678
|
+
aa60aac2: m(K),
|
|
1665
1679
|
"3ae158d2": m(G)
|
|
1666
1680
|
}));
|
|
1667
|
-
const r = tt(), c =
|
|
1668
|
-
navbarLeft:
|
|
1669
|
-
navbarCenter:
|
|
1670
|
-
navbarRight:
|
|
1671
|
-
navbarLogo:
|
|
1672
|
-
navbarMobileLogo:
|
|
1673
|
-
sidebarHeader:
|
|
1674
|
-
sidebarTop:
|
|
1675
|
-
}),
|
|
1676
|
-
hidden:
|
|
1677
|
-
}),
|
|
1678
|
-
topItems:
|
|
1679
|
-
bottomItems:
|
|
1680
|
-
profileItems:
|
|
1681
|
-
profileName:
|
|
1682
|
-
open:
|
|
1683
|
-
hidden:
|
|
1684
|
-
}),
|
|
1685
|
-
t("sidebar-click",
|
|
1686
|
-
},
|
|
1687
|
-
|
|
1681
|
+
const r = tt(), c = Ee({
|
|
1682
|
+
navbarLeft: w(() => !!r["navbar-left"]),
|
|
1683
|
+
navbarCenter: w(() => !!r["navbar-center"]),
|
|
1684
|
+
navbarRight: w(() => !!r["navbar-right"]),
|
|
1685
|
+
navbarLogo: w(() => !!r["navbar-logo"]),
|
|
1686
|
+
navbarMobileLogo: w(() => !!r["navbar-mobile-logo"]),
|
|
1687
|
+
sidebarHeader: w(() => !!r["sidebar-header"]),
|
|
1688
|
+
sidebarTop: w(() => !!r["sidebar-top"])
|
|
1689
|
+
}), l = w(() => a.hideDefaultSlot), o = Ee({
|
|
1690
|
+
hidden: w(() => a.navbarHidden)
|
|
1691
|
+
}), d = Ee({
|
|
1692
|
+
topItems: w(() => a.sidebarTopItems),
|
|
1693
|
+
bottomItems: w(() => a.sidebarBottomItems),
|
|
1694
|
+
profileItems: w(() => a.sidebarProfileItems),
|
|
1695
|
+
profileName: w(() => a.sidebarProfileName),
|
|
1696
|
+
open: w(() => a.sidebarOpen),
|
|
1697
|
+
hidden: w(() => a.sidebarHidden)
|
|
1698
|
+
}), g = (I) => {
|
|
1699
|
+
t("sidebar-click", I);
|
|
1700
|
+
}, _ = W(!1), C = (I) => {
|
|
1701
|
+
_.value = I;
|
|
1688
1702
|
};
|
|
1689
|
-
|
|
1690
|
-
|
|
1703
|
+
Tn(() => {
|
|
1704
|
+
_.value = kn(d, "open").value || !1;
|
|
1691
1705
|
});
|
|
1692
|
-
const
|
|
1693
|
-
if (
|
|
1706
|
+
const S = W(0), D = W(60), A = W(0), $ = w(() => o.hidden ? A.value : D.value + A.value), K = w(() => `${$.value}px`), G = w(() => d.hidden || o.hidden ? "0" : "16px"), { debounce: j } = Gt(), Y = j((I = !1) => {
|
|
1707
|
+
if (I || S.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1694
1708
|
const Z = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1695
|
-
Z && (
|
|
1709
|
+
Z && (A.value = Z.offsetHeight);
|
|
1696
1710
|
}
|
|
1697
|
-
}, 200),
|
|
1698
|
-
return
|
|
1699
|
-
var Z,
|
|
1700
|
-
(Z = document == null ? void 0 : document.body) == null || Z.classList.add("kong-ui-app-layout-body"), (
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
for (const
|
|
1704
|
-
const b =
|
|
1705
|
-
|
|
1711
|
+
}, 200), q = W();
|
|
1712
|
+
return Ze(() => {
|
|
1713
|
+
var Z, x;
|
|
1714
|
+
(Z = document == null ? void 0 : document.body) == null || Z.classList.add("kong-ui-app-layout-body"), (x = document == null ? void 0 : document.documentElement) == null || x.classList.add("kong-ui-app-layout-html"), S.value = window == null ? void 0 : window.innerWidth, Y(!0);
|
|
1715
|
+
const I = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1716
|
+
I && (q.value = new ResizeObserver((u) => {
|
|
1717
|
+
for (const f of u) {
|
|
1718
|
+
const b = f.contentRect.height;
|
|
1719
|
+
A.value !== b && (A.value = b);
|
|
1706
1720
|
}
|
|
1707
|
-
}),
|
|
1708
|
-
}),
|
|
1709
|
-
|
|
1710
|
-
}), (
|
|
1721
|
+
}), q.value.observe(I)), window.addEventListener("resize", Y);
|
|
1722
|
+
}), Pt(() => {
|
|
1723
|
+
q.value && q.value.disconnect(), window.removeEventListener("resize", Y);
|
|
1724
|
+
}), (I, Z) => (p(), E("div", {
|
|
1711
1725
|
class: ne(["kong-ui-app-layout", [
|
|
1712
|
-
{ "navbar-hidden":
|
|
1713
|
-
{ "sidebar-hidden":
|
|
1726
|
+
{ "navbar-hidden": o.hidden },
|
|
1727
|
+
{ "sidebar-hidden": d.hidden }
|
|
1714
1728
|
]])
|
|
1715
1729
|
}, [
|
|
1716
|
-
|
|
1717
|
-
|
|
1730
|
+
T("div", ti, [
|
|
1731
|
+
B(I.$slots, "notification", {}, void 0, !0)
|
|
1718
1732
|
]),
|
|
1719
|
-
|
|
1720
|
-
key: String(
|
|
1721
|
-
"left-offset":
|
|
1722
|
-
"top-offset":
|
|
1723
|
-
},
|
|
1733
|
+
o.hidden ? M("", !0) : (p(), z(Dn, {
|
|
1734
|
+
key: String(d.hidden),
|
|
1735
|
+
"left-offset": d.hidden ? 0 : void 0,
|
|
1736
|
+
"top-offset": A.value
|
|
1737
|
+
}, Nt({
|
|
1724
1738
|
"mobile-sidebar-toggle": P(() => [
|
|
1725
|
-
|
|
1739
|
+
d.hidden ? M("", !0) : (p(), z(Qr, {
|
|
1726
1740
|
key: 0,
|
|
1727
|
-
active:
|
|
1728
|
-
onToggle:
|
|
1741
|
+
active: _.value,
|
|
1742
|
+
onToggle: C
|
|
1729
1743
|
}, null, 8, ["active"]))
|
|
1730
1744
|
]),
|
|
1731
1745
|
_: 2
|
|
@@ -1733,8 +1747,8 @@ const Xr = /* @__PURE__ */ J(Yr, [["__scopeId", "data-v-33b3f7c3"]]), Jr = (n) =
|
|
|
1733
1747
|
c.navbarMobileLogo ? {
|
|
1734
1748
|
name: "mobile-logo",
|
|
1735
1749
|
fn: P(() => [
|
|
1736
|
-
|
|
1737
|
-
|
|
1750
|
+
T("div", ai, [
|
|
1751
|
+
B(I.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1738
1752
|
])
|
|
1739
1753
|
]),
|
|
1740
1754
|
key: "0"
|
|
@@ -1742,75 +1756,75 @@ const Xr = /* @__PURE__ */ J(Yr, [["__scopeId", "data-v-33b3f7c3"]]), Jr = (n) =
|
|
|
1742
1756
|
c.navbarLogo ? {
|
|
1743
1757
|
name: "logo",
|
|
1744
1758
|
fn: P(() => [
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
])) :
|
|
1759
|
+
d.hidden ? (p(), E("div", ni, [
|
|
1760
|
+
B(I.$slots, "navbar-logo", {}, void 0, !0)
|
|
1761
|
+
])) : M("", !0)
|
|
1748
1762
|
]),
|
|
1749
1763
|
key: "1"
|
|
1750
1764
|
} : void 0,
|
|
1751
1765
|
c.navbarLeft ? {
|
|
1752
1766
|
name: "left",
|
|
1753
1767
|
fn: P(() => [
|
|
1754
|
-
|
|
1768
|
+
B(I.$slots, "navbar-left", {}, void 0, !0)
|
|
1755
1769
|
]),
|
|
1756
1770
|
key: "2"
|
|
1757
1771
|
} : void 0,
|
|
1758
1772
|
c.navbarCenter ? {
|
|
1759
1773
|
name: "center",
|
|
1760
1774
|
fn: P(() => [
|
|
1761
|
-
|
|
1775
|
+
B(I.$slots, "navbar-center", {}, void 0, !0)
|
|
1762
1776
|
]),
|
|
1763
1777
|
key: "3"
|
|
1764
1778
|
} : void 0,
|
|
1765
1779
|
c.navbarRight ? {
|
|
1766
1780
|
name: "right",
|
|
1767
1781
|
fn: P(() => [
|
|
1768
|
-
|
|
1782
|
+
B(I.$slots, "navbar-right", {}, void 0, !0)
|
|
1769
1783
|
]),
|
|
1770
1784
|
key: "4"
|
|
1771
1785
|
} : void 0
|
|
1772
1786
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1773
|
-
|
|
1787
|
+
d.hidden ? M("", !0) : (p(), z(Wr, {
|
|
1774
1788
|
key: 1,
|
|
1775
|
-
"bottom-items":
|
|
1789
|
+
"bottom-items": d.bottomItems,
|
|
1776
1790
|
"header-height": D.value,
|
|
1777
1791
|
"mobile-enabled": "",
|
|
1778
1792
|
"mobile-header-visible": !1,
|
|
1779
|
-
"mobile-top-offset": m(
|
|
1780
|
-
open:
|
|
1781
|
-
"profile-items":
|
|
1782
|
-
"profile-name":
|
|
1783
|
-
"top-items":
|
|
1784
|
-
"top-offset":
|
|
1785
|
-
onClick:
|
|
1786
|
-
onToggle:
|
|
1787
|
-
},
|
|
1793
|
+
"mobile-top-offset": m($),
|
|
1794
|
+
open: _.value,
|
|
1795
|
+
"profile-items": d.profileItems,
|
|
1796
|
+
"profile-name": d.profileName,
|
|
1797
|
+
"top-items": d.topItems,
|
|
1798
|
+
"top-offset": A.value,
|
|
1799
|
+
onClick: g,
|
|
1800
|
+
onToggle: C
|
|
1801
|
+
}, Nt({ _: 2 }, [
|
|
1788
1802
|
c.sidebarHeader ? {
|
|
1789
1803
|
name: "header",
|
|
1790
1804
|
fn: P(() => [
|
|
1791
|
-
|
|
1805
|
+
B(I.$slots, "sidebar-header", {}, void 0, !0)
|
|
1792
1806
|
]),
|
|
1793
1807
|
key: "0"
|
|
1794
1808
|
} : void 0,
|
|
1795
1809
|
c.sidebarTop ? {
|
|
1796
1810
|
name: "top",
|
|
1797
1811
|
fn: P(() => [
|
|
1798
|
-
|
|
1812
|
+
B(I.$slots, "sidebar-top", {}, void 0, !0)
|
|
1799
1813
|
]),
|
|
1800
1814
|
key: "1"
|
|
1801
1815
|
} : void 0
|
|
1802
1816
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "profile-items", "profile-name", "top-items", "top-offset"])),
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
m(
|
|
1817
|
+
T("main", ri, [
|
|
1818
|
+
T("div", ii, [
|
|
1819
|
+
oi,
|
|
1820
|
+
B(I.$slots, "app-error", {}, void 0, !0),
|
|
1821
|
+
m(l) ? M("", !0) : B(I.$slots, "default", { key: 0 }, void 0, !0)
|
|
1808
1822
|
])
|
|
1809
1823
|
])
|
|
1810
1824
|
], 2));
|
|
1811
1825
|
}
|
|
1812
1826
|
});
|
|
1813
|
-
const
|
|
1827
|
+
const ci = /* @__PURE__ */ J(si, [["__scopeId", "data-v-c8f90c1e"]]), li = /* @__PURE__ */ Q({
|
|
1814
1828
|
__name: "NavbarDropdownMenu",
|
|
1815
1829
|
props: {
|
|
1816
1830
|
options: {
|
|
@@ -1832,13 +1846,13 @@ const oi = /* @__PURE__ */ J(ii, [["__scopeId", "data-v-c8f90c1e"]]), si = /* @_
|
|
|
1832
1846
|
},
|
|
1833
1847
|
emits: ["change"],
|
|
1834
1848
|
setup(n, { emit: t }) {
|
|
1835
|
-
var
|
|
1836
|
-
const a = n, r = W(((
|
|
1837
|
-
r.value =
|
|
1849
|
+
var l;
|
|
1850
|
+
const a = n, r = W(((l = a.options) == null ? void 0 : l.filter((o) => !!o.selected)[0]) || a.options[0]), c = (o) => {
|
|
1851
|
+
r.value = o, t("change", r.value);
|
|
1838
1852
|
};
|
|
1839
|
-
return (
|
|
1840
|
-
const
|
|
1841
|
-
return p(), z(
|
|
1853
|
+
return (o, d) => {
|
|
1854
|
+
const g = oe("KDropdownItem"), _ = oe("KDropdownMenu");
|
|
1855
|
+
return p(), z(_, {
|
|
1842
1856
|
appearance: "selectionMenu",
|
|
1843
1857
|
class: "top-bar-dropdown-menu",
|
|
1844
1858
|
disabled: n.disabled,
|
|
@@ -1846,19 +1860,19 @@ const oi = /* @__PURE__ */ J(ii, [["__scopeId", "data-v-c8f90c1e"]]), si = /* @_
|
|
|
1846
1860
|
"kpop-attributes": { placement: "bottomStart", disabled: n.disabled },
|
|
1847
1861
|
label: r.value.label,
|
|
1848
1862
|
width: n.width,
|
|
1849
|
-
onChange:
|
|
1863
|
+
onChange: d[0] || (d[0] = (C) => c(C))
|
|
1850
1864
|
}, {
|
|
1851
|
-
items: P(({ handleSelection:
|
|
1852
|
-
|
|
1853
|
-
(p(!0),
|
|
1854
|
-
key:
|
|
1855
|
-
"data-testid": "select-" +
|
|
1856
|
-
selected: r.value.value ===
|
|
1857
|
-
onClick: (D) =>
|
|
1865
|
+
items: P(({ handleSelection: C }) => [
|
|
1866
|
+
B(o.$slots, "default", {}, () => [
|
|
1867
|
+
(p(!0), E(pe, null, _e(n.options, (S) => (p(), z(g, {
|
|
1868
|
+
key: S.value,
|
|
1869
|
+
"data-testid": "select-" + S.value,
|
|
1870
|
+
selected: r.value.value === S.value,
|
|
1871
|
+
onClick: (D) => C(S)
|
|
1858
1872
|
}, {
|
|
1859
1873
|
default: P(() => [
|
|
1860
|
-
|
|
1861
|
-
Fe(ie(
|
|
1874
|
+
B(o.$slots, "default", { option: S }, () => [
|
|
1875
|
+
Fe(ie(S.label), 1)
|
|
1862
1876
|
], !0)
|
|
1863
1877
|
]),
|
|
1864
1878
|
_: 2
|
|
@@ -1870,52 +1884,52 @@ const oi = /* @__PURE__ */ J(ii, [["__scopeId", "data-v-c8f90c1e"]]), si = /* @_
|
|
|
1870
1884
|
};
|
|
1871
1885
|
}
|
|
1872
1886
|
});
|
|
1873
|
-
const
|
|
1887
|
+
const ki = /* @__PURE__ */ J(li, [["__scopeId", "data-v-b5a37136"]]), ui = {}, di = {
|
|
1874
1888
|
fill: "none",
|
|
1875
1889
|
height: "130",
|
|
1876
1890
|
width: "130",
|
|
1877
1891
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1878
|
-
},
|
|
1879
|
-
|
|
1892
|
+
}, fi = /* @__PURE__ */ Sn('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>', 5), vi = [
|
|
1893
|
+
fi
|
|
1880
1894
|
];
|
|
1881
|
-
function
|
|
1882
|
-
return p(),
|
|
1895
|
+
function bi(n, t) {
|
|
1896
|
+
return p(), E("svg", di, vi);
|
|
1883
1897
|
}
|
|
1884
|
-
const
|
|
1898
|
+
const pi = /* @__PURE__ */ J(ui, [["render", bi]]), qt = (n) => (at("data-v-ff05f71e"), n = n(), nt(), n), hi = { class: "kong-ui-app-error" }, mi = { class: "banana-icon" }, gi = { class: "kong-ui-app-error-content" }, yi = /* @__PURE__ */ qt(() => /* @__PURE__ */ T("h2", null, "An unexpected error has occurred", -1)), _i = /* @__PURE__ */ qt(() => /* @__PURE__ */ T("p", null, [
|
|
1885
1899
|
/* @__PURE__ */ Fe("Go back to the previous page or "),
|
|
1886
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ T("a", { href: "/" }, "return home"),
|
|
1887
1901
|
/* @__PURE__ */ Fe(".")
|
|
1888
|
-
], -1)),
|
|
1902
|
+
], -1)), wi = /* @__PURE__ */ Q({
|
|
1889
1903
|
__name: "AppError",
|
|
1890
1904
|
setup(n) {
|
|
1891
|
-
return (t, a) => (p(),
|
|
1892
|
-
|
|
1893
|
-
|
|
1905
|
+
return (t, a) => (p(), E("section", hi, [
|
|
1906
|
+
T("div", mi, [
|
|
1907
|
+
Pe(pi)
|
|
1894
1908
|
]),
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1909
|
+
T("div", gi, [
|
|
1910
|
+
B(t.$slots, "default", {}, () => [
|
|
1911
|
+
yi,
|
|
1912
|
+
_i
|
|
1899
1913
|
], !0)
|
|
1900
1914
|
])
|
|
1901
1915
|
]));
|
|
1902
1916
|
}
|
|
1903
1917
|
});
|
|
1904
|
-
const
|
|
1918
|
+
const Si = /* @__PURE__ */ J(wi, [["__scopeId", "data-v-ff05f71e"]]), Ii = {
|
|
1905
1919
|
// Customize Vue plugin options as desired
|
|
1906
1920
|
// Providing a `name` property allows for customizing the registered
|
|
1907
1921
|
// name of your component (useful if exporting a single component).
|
|
1908
1922
|
install: (n, t = {}) => {
|
|
1909
|
-
n.component(t.name || "AppLayout",
|
|
1923
|
+
n.component(t.name || "AppLayout", ci);
|
|
1910
1924
|
}
|
|
1911
1925
|
};
|
|
1912
1926
|
export {
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1927
|
+
Si as AppError,
|
|
1928
|
+
ci as AppLayout,
|
|
1929
|
+
Dn as AppNavbar,
|
|
1930
|
+
Wr as AppSidebar,
|
|
1931
|
+
ki as NavbarDropdownMenu,
|
|
1932
|
+
Qr as SidebarToggle,
|
|
1933
|
+
Ii as default
|
|
1920
1934
|
};
|
|
1921
1935
|
//# sourceMappingURL=app-layout.es.js.map
|