@kong-ui-public/app-layout 4.9.2 → 4.9.3-pr.2577.f224c72c1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-layout.es.js +443 -408
- package/dist/app-layout.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/components/newBadge/NewBadge.vue.d.ts +24 -0
- package/dist/types/components/newBadge/NewBadge.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +1 -0
- package/dist/types/composables/index.d.ts.map +1 -1
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -3
package/dist/app-layout.es.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ie, resolveComponent as he, createBlock as W, openBlock as p, withCtx as L, renderSlot as I, createElementBlock as
|
|
2
|
-
import { ChevronRightIcon as ta, ChevronDownIcon as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as ie, resolveComponent as he, createBlock as W, openBlock as p, withCtx as L, renderSlot as I, createElementBlock as k, Fragment as Ee, renderList as pe, normalizeClass as re, createTextVNode as xe, toDisplayString as Y, computed as S, createSlots as Me, createVNode as Le, createCommentVNode as $, createElementVNode as E, createStaticVNode as In, useCssVars as yt, reactive as qe, useSlots as je, onMounted as Pe, getCurrentInstance as Yt, hasInjectionContext as Qt, inject as $n, watch as Te, getCurrentScope as On, onScopeDispose as En, shallowRef as Xe, watchEffect as Jt, toValue as Ae, unref as fe, resolveDynamicComponent as Fe, withKeys as An, ref as ae, onUnmounted as Fn, Comment as Nn, cloneVNode as Dn, nextTick as Ht, onBeforeUnmount as ea, withModifiers as Rn, toRef as Bn } from "vue";
|
|
2
|
+
import { ChevronRightIcon as ta, ChevronDownIcon as xn } from "@kong/icons";
|
|
3
|
+
import { createI18n as Mn, i18nTComponent as Ln } from "@kong-ui-public/i18n";
|
|
4
|
+
import { KButton as jn, HeaderTags as Pn } from "@kong/kongponents";
|
|
5
|
+
const Kn = /* @__PURE__ */ ie({
|
|
5
6
|
__name: "AccountDropdown",
|
|
6
7
|
props: {
|
|
7
8
|
options: {
|
|
@@ -30,16 +31,16 @@ const jn = /* @__PURE__ */ ie({
|
|
|
30
31
|
}, {
|
|
31
32
|
items: L(({ handleSelection: u }) => [
|
|
32
33
|
I(t.$slots, "default", {}, () => [
|
|
33
|
-
(p(!0),
|
|
34
|
+
(p(!0), k(Ee, null, pe(a.options, (o) => (p(), W(n, {
|
|
34
35
|
key: o.value,
|
|
35
|
-
class:
|
|
36
|
+
class: re({ "has-divider": o.hasDivider }),
|
|
36
37
|
"data-testid": "select-" + o.value,
|
|
37
38
|
"has-divider": o.hasDivider,
|
|
38
39
|
onClick: (d) => u(o)
|
|
39
40
|
}, {
|
|
40
41
|
default: L(() => [
|
|
41
42
|
I(t.$slots, "default", { option: o }, () => [
|
|
42
|
-
|
|
43
|
+
xe(Y(o.label), 1)
|
|
43
44
|
], !0)
|
|
44
45
|
]),
|
|
45
46
|
_: 2
|
|
@@ -55,43 +56,43 @@ const jn = /* @__PURE__ */ ie({
|
|
|
55
56
|
for (const [n, s] of t)
|
|
56
57
|
r[n] = s;
|
|
57
58
|
return r;
|
|
58
|
-
},
|
|
59
|
+
}, Co = /* @__PURE__ */ oe(Kn, [["__scopeId", "data-v-b33191a2"]]), Zn = {
|
|
59
60
|
class: "about-section-title",
|
|
60
61
|
"data-testid": "about-section-title"
|
|
61
|
-
},
|
|
62
|
+
}, Hn = { class: "about-section-header-end" }, Wn = {
|
|
62
63
|
key: 0,
|
|
63
64
|
class: "about-section-timestamps-created",
|
|
64
65
|
"data-testid": "about-section-timestamps-created"
|
|
65
|
-
},
|
|
66
|
+
}, zn = {
|
|
66
67
|
key: 1,
|
|
67
68
|
class: "about-section-timestamps-arrow"
|
|
68
|
-
},
|
|
69
|
+
}, Gn = {
|
|
69
70
|
key: 2,
|
|
70
71
|
class: "about-section-timestamps-modified",
|
|
71
72
|
"data-testid": "about-section-timestamps-modified"
|
|
72
|
-
},
|
|
73
|
+
}, Un = {
|
|
73
74
|
key: 1,
|
|
74
75
|
class: "about-section-actions",
|
|
75
76
|
"data-testid": "about-section-actions"
|
|
76
|
-
},
|
|
77
|
+
}, Vn = {
|
|
77
78
|
key: 0,
|
|
78
79
|
"data-testid": "about-section-loading-skeleton"
|
|
79
|
-
},
|
|
80
|
+
}, qn = { key: 1 }, Xn = {
|
|
80
81
|
key: 0,
|
|
81
82
|
class: "about-section-description",
|
|
82
83
|
"data-testid": "about-section-description"
|
|
83
|
-
},
|
|
84
|
+
}, Yn = {
|
|
84
85
|
key: 1,
|
|
85
86
|
class: "about-section-content",
|
|
86
87
|
"data-testid": "about-section-content"
|
|
87
|
-
},
|
|
88
|
+
}, Qn = {
|
|
88
89
|
key: 2,
|
|
89
90
|
"data-testid": "about-divider-section-separator"
|
|
90
|
-
},
|
|
91
|
+
}, Jn = {
|
|
91
92
|
key: 3,
|
|
92
93
|
class: "about-divider-section",
|
|
93
94
|
"data-testid": "about-divider-section"
|
|
94
|
-
},
|
|
95
|
+
}, er = /* @__PURE__ */ ie({
|
|
95
96
|
__name: "AppAboutSection",
|
|
96
97
|
props: {
|
|
97
98
|
title: { default: "" },
|
|
@@ -111,7 +112,7 @@ const jn = /* @__PURE__ */ ie({
|
|
|
111
112
|
"title-tag": "h2"
|
|
112
113
|
}, Me({
|
|
113
114
|
default: L(() => [
|
|
114
|
-
n.isLoading ? (p(),
|
|
115
|
+
n.isLoading ? (p(), k("div", Vn, [
|
|
115
116
|
Le(u, {
|
|
116
117
|
height: "2",
|
|
117
118
|
width: "100"
|
|
@@ -120,13 +121,13 @@ const jn = /* @__PURE__ */ ie({
|
|
|
120
121
|
height: "2",
|
|
121
122
|
width: "100"
|
|
122
123
|
})
|
|
123
|
-
])) : (p(),
|
|
124
|
-
n.description ? (p(),
|
|
125
|
-
n.$slots.default ? (p(),
|
|
124
|
+
])) : (p(), k("div", qn, [
|
|
125
|
+
n.description ? (p(), k("p", Xn, Y(n.description), 1)) : $("", !0),
|
|
126
|
+
n.$slots.default ? (p(), k("div", Yn, [
|
|
126
127
|
I(n.$slots, "default", {}, void 0, !0)
|
|
127
128
|
])) : $("", !0),
|
|
128
|
-
n.$slots["divider-section"] ? (p(),
|
|
129
|
-
n.$slots["divider-section"] ? (p(),
|
|
129
|
+
n.$slots["divider-section"] ? (p(), k("hr", Qn)) : $("", !0),
|
|
130
|
+
n.$slots["divider-section"] ? (p(), k("div", Jn, [
|
|
130
131
|
I(n.$slots, "divider-section", {}, void 0, !0)
|
|
131
132
|
])) : $("", !0)
|
|
132
133
|
]))
|
|
@@ -136,9 +137,9 @@ const jn = /* @__PURE__ */ ie({
|
|
|
136
137
|
n.$slots.title || n.title ? {
|
|
137
138
|
name: "title",
|
|
138
139
|
fn: L(() => [
|
|
139
|
-
|
|
140
|
+
E("span", Zn, [
|
|
140
141
|
I(n.$slots, "title", {}, () => [
|
|
141
|
-
|
|
142
|
+
xe(Y(n.title), 1)
|
|
142
143
|
], !0)
|
|
143
144
|
])
|
|
144
145
|
]),
|
|
@@ -147,16 +148,16 @@ const jn = /* @__PURE__ */ ie({
|
|
|
147
148
|
n.$slots.actions || n.created || n.modified ? {
|
|
148
149
|
name: "actions",
|
|
149
150
|
fn: L(() => [
|
|
150
|
-
|
|
151
|
-
n.created || n.modified ? (p(),
|
|
151
|
+
E("div", Hn, [
|
|
152
|
+
n.created || n.modified ? (p(), k("div", {
|
|
152
153
|
key: 0,
|
|
153
|
-
class:
|
|
154
|
+
class: re(["about-section-timestamps", { "has-actions": n.$slots.actions }])
|
|
154
155
|
}, [
|
|
155
|
-
n.created ? (p(),
|
|
156
|
-
n.created && r.value ? (p(),
|
|
157
|
-
r.value ? (p(),
|
|
156
|
+
n.created ? (p(), k("span", Wn, Y(n.createdLabel) + ": " + Y(n.created), 1)) : $("", !0),
|
|
157
|
+
n.created && r.value ? (p(), k("span", zn, "->")) : $("", !0),
|
|
158
|
+
r.value ? (p(), k("span", Gn, Y(n.modifiedLabel) + ": " + Y(n.modified), 1)) : $("", !0)
|
|
158
159
|
], 2)) : $("", !0),
|
|
159
|
-
n.$slots.actions ? (p(),
|
|
160
|
+
n.$slots.actions ? (p(), k("div", Un, [
|
|
160
161
|
I(n.$slots, "actions", {}, void 0, !0)
|
|
161
162
|
])) : $("", !0)
|
|
162
163
|
])
|
|
@@ -166,40 +167,40 @@ const jn = /* @__PURE__ */ ie({
|
|
|
166
167
|
]), 1024);
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
|
-
}),
|
|
170
|
+
}), Io = /* @__PURE__ */ oe(er, [["__scopeId", "data-v-f5864a9c"]]), tr = {}, ar = {
|
|
170
171
|
fill: "none",
|
|
171
172
|
height: "130",
|
|
172
173
|
width: "130",
|
|
173
174
|
xmlns: "http://www.w3.org/2000/svg"
|
|
174
175
|
};
|
|
175
|
-
function
|
|
176
|
-
return p(),
|
|
176
|
+
function nr(a, t) {
|
|
177
|
+
return p(), k("svg", ar, t[0] || (t[0] = [
|
|
177
178
|
In('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>', 5)
|
|
178
179
|
]));
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
+
const rr = /* @__PURE__ */ oe(tr, [["render", nr]]), ir = { class: "kong-ui-app-error" }, or = { class: "banana-icon" }, sr = { class: "kong-ui-app-error-content" }, lr = /* @__PURE__ */ ie({
|
|
181
182
|
__name: "AppError",
|
|
182
183
|
setup(a) {
|
|
183
|
-
return (t, r) => (p(),
|
|
184
|
-
|
|
185
|
-
Le(
|
|
184
|
+
return (t, r) => (p(), k("section", ir, [
|
|
185
|
+
E("div", or, [
|
|
186
|
+
Le(rr)
|
|
186
187
|
]),
|
|
187
|
-
|
|
188
|
+
E("div", sr, [
|
|
188
189
|
I(t.$slots, "default", {}, () => [
|
|
189
|
-
r[0] || (r[0] =
|
|
190
|
-
r[1] || (r[1] =
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
r[0] || (r[0] = E("h2", null, "An unexpected error has occurred", -1)),
|
|
191
|
+
r[1] || (r[1] = E("p", null, [
|
|
192
|
+
xe("Go back to the previous page or "),
|
|
193
|
+
E("a", { href: "/" }, "return home"),
|
|
194
|
+
xe(".")
|
|
194
195
|
], -1))
|
|
195
196
|
], !0)
|
|
196
197
|
])
|
|
197
198
|
]));
|
|
198
199
|
}
|
|
199
|
-
}),
|
|
200
|
+
}), $o = /* @__PURE__ */ oe(lr, [["__scopeId", "data-v-b6d8dc55"]]), cr = { class: "kong-ui-app-navbar" }, ur = { class: "header-content" }, dr = { class: "mobile-header-left" }, fr = {
|
|
200
201
|
key: 0,
|
|
201
202
|
class: "app-navbar-logo"
|
|
202
|
-
},
|
|
203
|
+
}, vr = { class: "navbar-content" }, br = { class: "navbar-content-left" }, pr = { class: "navbar-content-center" }, hr = { class: "navbar-content-right" }, mr = /* @__PURE__ */ ie({
|
|
203
204
|
__name: "AppNavbar",
|
|
204
205
|
props: {
|
|
205
206
|
topOffset: {
|
|
@@ -237,49 +238,49 @@ const ar = /* @__PURE__ */ oe(Jn, [["render", tr]]), nr = { class: "kong-ui-app-
|
|
|
237
238
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
238
239
|
zIndex: t.zIndex
|
|
239
240
|
}));
|
|
240
|
-
return (o, d) => (p(),
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
return (o, d) => (p(), k("header", cr, [
|
|
242
|
+
E("div", ur, [
|
|
243
|
+
E("div", dr, [
|
|
243
244
|
I(o.$slots, "mobile-sidebar-toggle"),
|
|
244
245
|
I(o.$slots, "mobile-logo")
|
|
245
246
|
]),
|
|
246
|
-
n.value ? (p(),
|
|
247
|
+
n.value ? (p(), k("div", fr, [
|
|
247
248
|
I(o.$slots, "logo")
|
|
248
249
|
])) : $("", !0),
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
E("div", vr, [
|
|
251
|
+
E("div", br, [
|
|
251
252
|
I(o.$slots, "left")
|
|
252
253
|
]),
|
|
253
|
-
|
|
254
|
+
E("div", pr, [
|
|
254
255
|
I(o.$slots, "center")
|
|
255
256
|
]),
|
|
256
|
-
|
|
257
|
+
E("div", hr, [
|
|
257
258
|
I(o.$slots, "right")
|
|
258
259
|
])
|
|
259
260
|
])
|
|
260
261
|
])
|
|
261
262
|
]));
|
|
262
263
|
}
|
|
263
|
-
}),
|
|
264
|
-
function
|
|
264
|
+
}), gr = /* @__PURE__ */ oe(mr, [["__scopeId", "data-v-2f6fc50f"]]);
|
|
265
|
+
function yr(a) {
|
|
265
266
|
return On() ? (En(a), !0) : !1;
|
|
266
267
|
}
|
|
267
|
-
const vt = /* @__PURE__ */ new WeakMap(),
|
|
268
|
+
const vt = /* @__PURE__ */ new WeakMap(), wr = (...a) => {
|
|
268
269
|
var t;
|
|
269
270
|
const r = a[0], n = (t = Yt()) == null ? void 0 : t.proxy;
|
|
270
271
|
if (n == null && !Qt())
|
|
271
272
|
throw new Error("injectLocal must be called in setup");
|
|
272
273
|
return n && vt.has(n) && r in vt.get(n) ? vt.get(n)[r] : $n(...a);
|
|
273
|
-
},
|
|
274
|
+
}, kr = typeof window < "u" && typeof document < "u";
|
|
274
275
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
275
|
-
const
|
|
276
|
+
const Tr = Object.prototype.toString, _r = (a) => Tr.call(a) === "[object Object]";
|
|
276
277
|
function Wt(a) {
|
|
277
278
|
return a.endsWith("rem") ? Number.parseFloat(a) * 16 : Number.parseFloat(a);
|
|
278
279
|
}
|
|
279
280
|
function bt(a) {
|
|
280
281
|
return Array.isArray(a) ? a : [a];
|
|
281
282
|
}
|
|
282
|
-
function
|
|
283
|
+
function Sr(a, t, r) {
|
|
283
284
|
return Te(
|
|
284
285
|
a,
|
|
285
286
|
t,
|
|
@@ -289,37 +290,37 @@ function Tr(a, t, r) {
|
|
|
289
290
|
}
|
|
290
291
|
);
|
|
291
292
|
}
|
|
292
|
-
const aa =
|
|
293
|
-
function
|
|
293
|
+
const aa = kr ? window : void 0;
|
|
294
|
+
function Cr(a) {
|
|
294
295
|
var t;
|
|
295
296
|
const r = Ae(a);
|
|
296
297
|
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
+
function Ir(...a) {
|
|
299
300
|
const t = [], r = () => {
|
|
300
301
|
t.forEach((d) => d()), t.length = 0;
|
|
301
|
-
}, n = (d, b,
|
|
302
|
+
}, n = (d, b, T, _) => (d.addEventListener(b, T, _), () => d.removeEventListener(b, T, _)), s = S(() => {
|
|
302
303
|
const d = bt(Ae(a[0])).filter((b) => b != null);
|
|
303
304
|
return d.every((b) => typeof b != "string") ? d : void 0;
|
|
304
|
-
}), u =
|
|
305
|
+
}), u = Sr(
|
|
305
306
|
() => {
|
|
306
307
|
var d, b;
|
|
307
308
|
return [
|
|
308
|
-
(b = (d = s.value) == null ? void 0 : d.map((
|
|
309
|
+
(b = (d = s.value) == null ? void 0 : d.map((T) => Cr(T))) != null ? b : [aa].filter((T) => T != null),
|
|
309
310
|
bt(Ae(s.value ? a[1] : a[0])),
|
|
310
|
-
bt(
|
|
311
|
+
bt(fe(s.value ? a[2] : a[1])),
|
|
311
312
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
312
313
|
Ae(s.value ? a[3] : a[2])
|
|
313
314
|
];
|
|
314
315
|
},
|
|
315
|
-
([d, b,
|
|
316
|
-
if (r(), !(d != null && d.length) || !(b != null && b.length) || !(
|
|
316
|
+
([d, b, T, _]) => {
|
|
317
|
+
if (r(), !(d != null && d.length) || !(b != null && b.length) || !(T != null && T.length))
|
|
317
318
|
return;
|
|
318
|
-
const
|
|
319
|
+
const B = _r(_) ? { ..._ } : _;
|
|
319
320
|
t.push(
|
|
320
321
|
...d.flatMap(
|
|
321
|
-
(
|
|
322
|
-
(P) =>
|
|
322
|
+
(x) => b.flatMap(
|
|
323
|
+
(P) => T.map((A) => n(x, P, A, B))
|
|
323
324
|
)
|
|
324
325
|
)
|
|
325
326
|
);
|
|
@@ -328,42 +329,42 @@ function Sr(...a) {
|
|
|
328
329
|
), o = () => {
|
|
329
330
|
u(), r();
|
|
330
331
|
};
|
|
331
|
-
return
|
|
332
|
+
return yr(r), o;
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function $r() {
|
|
334
335
|
const a = Xe(!1), t = Yt();
|
|
335
336
|
return t && Pe(() => {
|
|
336
337
|
a.value = !0;
|
|
337
338
|
}, t), a;
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
-
const t =
|
|
340
|
+
function Or(a) {
|
|
341
|
+
const t = $r();
|
|
341
342
|
return S(() => (t.value, !!a()));
|
|
342
343
|
}
|
|
343
|
-
const
|
|
344
|
-
function
|
|
345
|
-
const a = Qt() ?
|
|
344
|
+
const Er = Symbol("vueuse-ssr-width");
|
|
345
|
+
function Ar() {
|
|
346
|
+
const a = Qt() ? wr(Er, null) : null;
|
|
346
347
|
return typeof a == "number" ? a : void 0;
|
|
347
348
|
}
|
|
348
|
-
function
|
|
349
|
-
const { window: r = aa, ssrWidth: n =
|
|
350
|
-
d.value =
|
|
349
|
+
function Fr(a, t = {}) {
|
|
350
|
+
const { window: r = aa, ssrWidth: n = Ar() } = t, s = Or(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), u = Xe(typeof n == "number"), o = Xe(), d = Xe(!1), b = (T) => {
|
|
351
|
+
d.value = T.matches;
|
|
351
352
|
};
|
|
352
353
|
return Jt(() => {
|
|
353
354
|
if (u.value) {
|
|
354
355
|
u.value = !s.value;
|
|
355
|
-
const
|
|
356
|
-
d.value =
|
|
357
|
-
const
|
|
358
|
-
let
|
|
359
|
-
return
|
|
356
|
+
const T = Ae(a).split(",");
|
|
357
|
+
d.value = T.some((_) => {
|
|
358
|
+
const B = _.includes("not all"), x = _.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), P = _.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
359
|
+
let A = !!(x || P);
|
|
360
|
+
return x && A && (A = n >= Wt(x[1])), P && A && (A = n <= Wt(P[1])), B ? !A : A;
|
|
360
361
|
});
|
|
361
362
|
return;
|
|
362
363
|
}
|
|
363
364
|
s.value && (o.value = r.matchMedia(Ae(a)), d.value = o.value.matches);
|
|
364
|
-
}),
|
|
365
|
+
}), Ir(o, "change", b, { passive: !0 }), S(() => d.value);
|
|
365
366
|
}
|
|
366
|
-
const
|
|
367
|
+
const Nr = "#ffffff", Dr = "#000933", Rr = "#000933", Br = "#ffffff", xr = "0px", Mr = "4px", Lr = "640px", jr = "16px", Pr = "#bee2ff", Kr = ["title"], pt = 99, Zr = /* @__PURE__ */ ie({
|
|
367
368
|
__name: "ItemBadge",
|
|
368
369
|
props: {
|
|
369
370
|
count: {
|
|
@@ -374,22 +375,22 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
374
375
|
},
|
|
375
376
|
setup(a) {
|
|
376
377
|
const t = a, r = S(() => t.count ? t.count > pt ? `${pt}+` : t.count.toString() : "");
|
|
377
|
-
return (n, s) => r.value ? (p(),
|
|
378
|
+
return (n, s) => r.value ? (p(), k("div", {
|
|
378
379
|
key: 0,
|
|
379
380
|
class: "item-badge",
|
|
380
381
|
title: (a.count || 0) > pt ? String(a.count) : void 0
|
|
381
|
-
},
|
|
382
|
+
}, Y(r.value), 9, Kr)) : $("", !0);
|
|
382
383
|
}
|
|
383
|
-
}),
|
|
384
|
+
}), Hr = /* @__PURE__ */ oe(Zr, [["__scopeId", "data-v-afb0d903"]]), Wr = ["data-testid"], zr = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], Gr = {
|
|
384
385
|
key: 0,
|
|
385
386
|
class: "sidebar-item-icon"
|
|
386
|
-
},
|
|
387
|
+
}, Ur = { class: "sidebar-item-name-container" }, Vr = { class: "sidebar-item-name has-tooltip" }, qr = {
|
|
387
388
|
key: 2,
|
|
388
389
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
389
|
-
},
|
|
390
|
+
}, Xr = {
|
|
390
391
|
key: 1,
|
|
391
392
|
class: "sidebar-item-after"
|
|
392
|
-
},
|
|
393
|
+
}, Yr = ["id"], Qr = /* @__PURE__ */ ie({
|
|
393
394
|
__name: "SidebarItem",
|
|
394
395
|
props: {
|
|
395
396
|
item: {
|
|
@@ -410,14 +411,14 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
410
411
|
!!s[`sidebar-after-${n.item.key}`]
|
|
411
412
|
), b = (_) => {
|
|
412
413
|
r("click", _);
|
|
413
|
-
},
|
|
414
|
-
b(
|
|
414
|
+
}, T = (_, B, x) => {
|
|
415
|
+
b(B), typeof x == "function" && (_.preventDefault(), x());
|
|
415
416
|
};
|
|
416
|
-
return (_,
|
|
417
|
-
var
|
|
418
|
-
const
|
|
419
|
-
return p(),
|
|
420
|
-
class:
|
|
417
|
+
return (_, B) => {
|
|
418
|
+
var A;
|
|
419
|
+
const x = he("KTooltip"), P = he("SidebarItem", !0);
|
|
420
|
+
return p(), k("li", {
|
|
421
|
+
class: re([a.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: a.item.expanded }, { active: a.item.active }]),
|
|
421
422
|
"data-testid": a.item.testId ? `sidebar-item-${a.item.testId}` : void 0
|
|
422
423
|
}, [
|
|
423
424
|
(p(), W(Fe(u.value ? "div" : "router-link"), {
|
|
@@ -427,27 +428,27 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
427
428
|
default: L((j) => {
|
|
428
429
|
var ne, K;
|
|
429
430
|
return [
|
|
430
|
-
|
|
431
|
+
E("a", {
|
|
431
432
|
"aria-controls": (ne = a.item.items) != null && ne.length && a.item.expanded ? `subnav-${a.item.key}` : void 0,
|
|
432
433
|
"aria-current": a.item.active ? "page" : void 0,
|
|
433
434
|
"aria-expanded": (K = a.item.items) != null && K.length && a.item.expanded ? !0 : void 0,
|
|
434
|
-
class:
|
|
435
|
+
class: re(["sidebar-item-link", { "sidebar-item-external-link": o.value, "router-link": !u.value }]),
|
|
435
436
|
href: u.value ? String(a.item.to || "#") : j == null ? void 0 : j.href,
|
|
436
437
|
target: o.value ? "_blank" : void 0,
|
|
437
|
-
onClick: (z) =>
|
|
438
|
-
onKeypress: An((z) =>
|
|
438
|
+
onClick: (z) => T(z, a.item, j == null ? void 0 : j.navigate),
|
|
439
|
+
onKeypress: An((z) => T(z, a.item, j == null ? void 0 : j.navigate), ["enter"])
|
|
439
440
|
}, [
|
|
440
|
-
|
|
441
|
-
class:
|
|
441
|
+
E("div", {
|
|
442
|
+
class: re(["sidebar-item-display", { "has-label": !!a.item.label && a.item.expanded, "has-after-content": d.value }])
|
|
442
443
|
}, [
|
|
443
|
-
_.$slots[`sidebar-icon-${a.item.key}`] ? (p(),
|
|
444
|
+
_.$slots[`sidebar-icon-${a.item.key}`] ? (p(), k("div", Gr, [
|
|
444
445
|
a.subnavItem ? $("", !0) : I(_.$slots, `sidebar-icon-${a.item.key}`, { key: 0 }, void 0, !0)
|
|
445
446
|
])) : $("", !0),
|
|
446
|
-
|
|
447
|
-
(a.subnavItem && !d.value ? a.item.name.length < 25 : a.item.name.length < 18) ? (p(),
|
|
447
|
+
E("div", Ur, [
|
|
448
|
+
(a.subnavItem && !d.value ? a.item.name.length < 25 : a.item.name.length < 18) ? (p(), k("div", {
|
|
448
449
|
key: 0,
|
|
449
|
-
class:
|
|
450
|
-
},
|
|
450
|
+
class: re(["sidebar-item-name truncate-text", [a.subnavItem ? "has-after-content-max-width truncate-24" : "truncate-17"]])
|
|
451
|
+
}, Y(a.item.name), 3)) : (p(), W(x, {
|
|
451
452
|
key: 1,
|
|
452
453
|
class: "sidebar-item-tooltip",
|
|
453
454
|
placement: "right",
|
|
@@ -455,44 +456,44 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
455
456
|
text: a.item.name
|
|
456
457
|
}, {
|
|
457
458
|
default: L(() => [
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
class:
|
|
461
|
-
},
|
|
459
|
+
E("div", Vr, [
|
|
460
|
+
E("span", {
|
|
461
|
+
class: re(["truncate-text", [a.subnavItem ? "truncate-18" : "truncate-17", { "has-after-content-max-width": d.value }]])
|
|
462
|
+
}, Y(a.item.name), 3)
|
|
462
463
|
])
|
|
463
464
|
]),
|
|
464
465
|
_: 1
|
|
465
466
|
}, 8, ["text"])),
|
|
466
|
-
a.item.label && a.item.expanded ? (p(),
|
|
467
|
+
a.item.label && a.item.expanded ? (p(), k("div", qr, Y(a.item.label), 1)) : $("", !0)
|
|
467
468
|
]),
|
|
468
|
-
d.value ? (p(),
|
|
469
|
-
a.item.badgeCount ? (p(), W(
|
|
469
|
+
d.value ? (p(), k("div", Xr, [
|
|
470
|
+
a.item.badgeCount ? (p(), W(Hr, {
|
|
470
471
|
key: 0,
|
|
471
472
|
count: a.item.badgeCount
|
|
472
473
|
}, null, 8, ["count"])) : I(_.$slots, `sidebar-after-${a.item.key}`, { key: 1 }, void 0, !0)
|
|
473
474
|
])) : $("", !0)
|
|
474
475
|
], 2)
|
|
475
|
-
], 42,
|
|
476
|
+
], 42, zr)
|
|
476
477
|
];
|
|
477
478
|
}),
|
|
478
479
|
_: 3
|
|
479
480
|
}, 8, ["custom", "to"])),
|
|
480
|
-
(
|
|
481
|
+
(A = a.item.items) != null && A.length && a.item.expanded ? (p(), k("ul", {
|
|
481
482
|
key: 0,
|
|
482
483
|
id: `subnav-${a.item.key}`,
|
|
483
484
|
class: "level-secondary"
|
|
484
485
|
}, [
|
|
485
|
-
(p(!0),
|
|
486
|
+
(p(!0), k(Ee, null, pe(a.item.items, (j) => (p(), W(P, {
|
|
486
487
|
key: j.name,
|
|
487
488
|
item: j,
|
|
488
489
|
"subnav-item": !0,
|
|
489
490
|
onClick: (ne) => b(j)
|
|
490
491
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
491
|
-
], 8,
|
|
492
|
-
], 10,
|
|
492
|
+
], 8, Yr)) : $("", !0)
|
|
493
|
+
], 10, Wr);
|
|
493
494
|
};
|
|
494
495
|
}
|
|
495
|
-
}), zt = /* @__PURE__ */ oe(
|
|
496
|
+
}), zt = /* @__PURE__ */ oe(Qr, [["__scopeId", "data-v-7ea61d78"]]);
|
|
496
497
|
/*!
|
|
497
498
|
* tabbable 6.2.0
|
|
498
499
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -508,7 +509,7 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
508
509
|
r === void 0 && (r = !0);
|
|
509
510
|
var s = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), u = s === "" || s === "true", o = u || r && t && a(t.parentNode);
|
|
510
511
|
return o;
|
|
511
|
-
},
|
|
512
|
+
}, Jr = function(t) {
|
|
512
513
|
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
513
514
|
return n === "" || n === "true";
|
|
514
515
|
}, ia = function(t, r, n) {
|
|
@@ -521,18 +522,18 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
521
522
|
var o = u.shift();
|
|
522
523
|
if (!Je(o, !1))
|
|
523
524
|
if (o.tagName === "SLOT") {
|
|
524
|
-
var d = o.assignedElements(), b = d.length ? d : o.children,
|
|
525
|
-
n.flatten ? s.push.apply(s,
|
|
525
|
+
var d = o.assignedElements(), b = d.length ? d : o.children, T = a(b, !0, n);
|
|
526
|
+
n.flatten ? s.push.apply(s, T) : s.push({
|
|
526
527
|
scopeParent: o,
|
|
527
|
-
candidates:
|
|
528
|
+
candidates: T
|
|
528
529
|
});
|
|
529
530
|
} else {
|
|
530
531
|
var _ = _e.call(o, Ye);
|
|
531
532
|
_ && n.filter(o) && (r || !t.includes(o)) && s.push(o);
|
|
532
|
-
var
|
|
533
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(o),
|
|
534
|
-
if (
|
|
535
|
-
var P = a(
|
|
533
|
+
var B = o.shadowRoot || // check for an undisclosed shadow
|
|
534
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), x = !Je(B, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
535
|
+
if (B && x) {
|
|
536
|
+
var P = a(B === !0 ? o.children : B.children, !0, n);
|
|
536
537
|
n.flatten ? s.push.apply(s, P) : s.push({
|
|
537
538
|
scopeParent: o,
|
|
538
539
|
candidates: P
|
|
@@ -547,26 +548,26 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
547
548
|
}, ke = function(t) {
|
|
548
549
|
if (!t)
|
|
549
550
|
throw new Error("No node provided");
|
|
550
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
551
|
-
},
|
|
551
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Jr(t)) && !sa(t) ? 0 : t.tabIndex;
|
|
552
|
+
}, ei = function(t, r) {
|
|
552
553
|
var n = ke(t);
|
|
553
554
|
return n < 0 && r && !sa(t) ? 0 : n;
|
|
554
|
-
},
|
|
555
|
+
}, ti = function(t, r) {
|
|
555
556
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
556
557
|
}, la = function(t) {
|
|
557
558
|
return t.tagName === "INPUT";
|
|
558
|
-
},
|
|
559
|
+
}, ai = function(t) {
|
|
559
560
|
return la(t) && t.type === "hidden";
|
|
560
|
-
},
|
|
561
|
+
}, ni = function(t) {
|
|
561
562
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
562
563
|
return n.tagName === "SUMMARY";
|
|
563
564
|
});
|
|
564
565
|
return r;
|
|
565
|
-
},
|
|
566
|
+
}, ri = function(t, r) {
|
|
566
567
|
for (var n = 0; n < t.length; n++)
|
|
567
568
|
if (t[n].checked && t[n].form === r)
|
|
568
569
|
return t[n];
|
|
569
|
-
},
|
|
570
|
+
}, ii = function(t) {
|
|
570
571
|
if (!t.name)
|
|
571
572
|
return !0;
|
|
572
573
|
var r = t.form || Qe(t), n = function(d) {
|
|
@@ -580,26 +581,26 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
580
581
|
} catch (o) {
|
|
581
582
|
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;
|
|
582
583
|
}
|
|
583
|
-
var u =
|
|
584
|
+
var u = ri(s, t.form);
|
|
584
585
|
return !u || u === t;
|
|
585
|
-
}, ri = function(t) {
|
|
586
|
-
return la(t) && t.type === "radio";
|
|
587
|
-
}, ii = function(t) {
|
|
588
|
-
return ri(t) && !ni(t);
|
|
589
586
|
}, oi = function(t) {
|
|
587
|
+
return la(t) && t.type === "radio";
|
|
588
|
+
}, si = function(t) {
|
|
589
|
+
return oi(t) && !ii(t);
|
|
590
|
+
}, li = function(t) {
|
|
590
591
|
var r, n = t && Qe(t), s = (r = n) === null || r === void 0 ? void 0 : r.host, u = !1;
|
|
591
592
|
if (n && n !== t) {
|
|
592
593
|
var o, d, b;
|
|
593
594
|
for (u = !!((o = s) !== null && o !== void 0 && (d = o.ownerDocument) !== null && d !== void 0 && d.contains(s) || t != null && (b = t.ownerDocument) !== null && b !== void 0 && b.contains(t)); !u && s; ) {
|
|
594
|
-
var
|
|
595
|
-
n = Qe(s), s = (
|
|
595
|
+
var T, _, B;
|
|
596
|
+
n = Qe(s), s = (T = n) === null || T === void 0 ? void 0 : T.host, u = !!((_ = s) !== null && _ !== void 0 && (B = _.ownerDocument) !== null && B !== void 0 && B.contains(s));
|
|
596
597
|
}
|
|
597
598
|
}
|
|
598
599
|
return u;
|
|
599
600
|
}, Gt = function(t) {
|
|
600
601
|
var r = t.getBoundingClientRect(), n = r.width, s = r.height;
|
|
601
602
|
return n === 0 && s === 0;
|
|
602
|
-
},
|
|
603
|
+
}, ci = function(t, r) {
|
|
603
604
|
var n = r.displayCheck, s = r.getShadowRoot;
|
|
604
605
|
if (getComputedStyle(t).visibility === "hidden")
|
|
605
606
|
return !0;
|
|
@@ -609,21 +610,21 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
609
610
|
if (!n || n === "full" || n === "legacy-full") {
|
|
610
611
|
if (typeof s == "function") {
|
|
611
612
|
for (var d = t; t; ) {
|
|
612
|
-
var b = t.parentElement,
|
|
613
|
+
var b = t.parentElement, T = Qe(t);
|
|
613
614
|
if (b && !b.shadowRoot && s(b) === !0)
|
|
614
615
|
return Gt(t);
|
|
615
|
-
t.assignedSlot ? t = t.assignedSlot : !b &&
|
|
616
|
+
t.assignedSlot ? t = t.assignedSlot : !b && T !== t.ownerDocument ? t = T.host : t = b;
|
|
616
617
|
}
|
|
617
618
|
t = d;
|
|
618
619
|
}
|
|
619
|
-
if (
|
|
620
|
+
if (li(t))
|
|
620
621
|
return !t.getClientRects().length;
|
|
621
622
|
if (n !== "legacy-full")
|
|
622
623
|
return !0;
|
|
623
624
|
} else if (n === "non-zero-area")
|
|
624
625
|
return Gt(t);
|
|
625
626
|
return !1;
|
|
626
|
-
},
|
|
627
|
+
}, ui = function(t) {
|
|
627
628
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
628
629
|
for (var r = t.parentElement; r; ) {
|
|
629
630
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -641,37 +642,37 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
641
642
|
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
642
643
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
643
644
|
// note related to `candidateSelectors`)
|
|
644
|
-
Je(r) ||
|
|
645
|
-
|
|
645
|
+
Je(r) || ai(r) || ci(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
646
|
+
ni(r) || ui(r));
|
|
646
647
|
}, mt = function(t, r) {
|
|
647
|
-
return !(
|
|
648
|
-
},
|
|
648
|
+
return !(si(r) || ke(r) < 0 || !et(t, r));
|
|
649
|
+
}, di = function(t) {
|
|
649
650
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
650
651
|
return !!(isNaN(r) || r >= 0);
|
|
651
|
-
},
|
|
652
|
+
}, fi = function a(t) {
|
|
652
653
|
var r = [], n = [];
|
|
653
654
|
return t.forEach(function(s, u) {
|
|
654
|
-
var o = !!s.scopeParent, d = o ? s.scopeParent : s, b =
|
|
655
|
-
b === 0 ? o ? r.push.apply(r,
|
|
655
|
+
var o = !!s.scopeParent, d = o ? s.scopeParent : s, b = ei(d, o), T = o ? a(s.candidates) : d;
|
|
656
|
+
b === 0 ? o ? r.push.apply(r, T) : r.push(d) : n.push({
|
|
656
657
|
documentOrder: u,
|
|
657
658
|
tabIndex: b,
|
|
658
659
|
item: s,
|
|
659
660
|
isScope: o,
|
|
660
|
-
content:
|
|
661
|
+
content: T
|
|
661
662
|
});
|
|
662
|
-
}), n.sort(
|
|
663
|
+
}), n.sort(ti).reduce(function(s, u) {
|
|
663
664
|
return u.isScope ? s.push.apply(s, u.content) : s.push(u.content), s;
|
|
664
665
|
}, []).concat(r);
|
|
665
|
-
},
|
|
666
|
+
}, vi = function(t, r) {
|
|
666
667
|
r = r || {};
|
|
667
668
|
var n;
|
|
668
669
|
return r.getShadowRoot ? n = oa([t], r.includeContainer, {
|
|
669
670
|
filter: mt.bind(null, r),
|
|
670
671
|
flatten: !1,
|
|
671
672
|
getShadowRoot: r.getShadowRoot,
|
|
672
|
-
shadowRootFilter:
|
|
673
|
-
}) : n = ia(t, r.includeContainer, mt.bind(null, r)),
|
|
674
|
-
},
|
|
673
|
+
shadowRootFilter: di
|
|
674
|
+
}) : n = ia(t, r.includeContainer, mt.bind(null, r)), fi(n);
|
|
675
|
+
}, bi = function(t, r) {
|
|
675
676
|
r = r || {};
|
|
676
677
|
var n;
|
|
677
678
|
return r.getShadowRoot ? n = oa([t], r.includeContainer, {
|
|
@@ -683,10 +684,10 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
683
684
|
if (r = r || {}, !t)
|
|
684
685
|
throw new Error("No node provided");
|
|
685
686
|
return _e.call(t, Ye) === !1 ? !1 : mt(r, t);
|
|
686
|
-
},
|
|
687
|
+
}, pi = /* @__PURE__ */ na.concat("iframe").join(","), ht = function(t, r) {
|
|
687
688
|
if (r = r || {}, !t)
|
|
688
689
|
throw new Error("No node provided");
|
|
689
|
-
return _e.call(t,
|
|
690
|
+
return _e.call(t, pi) === !1 ? !1 : et(r, t);
|
|
690
691
|
};
|
|
691
692
|
/*!
|
|
692
693
|
* focus-trap 7.6.5
|
|
@@ -697,21 +698,21 @@ function gt(a, t) {
|
|
|
697
698
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = a[r];
|
|
698
699
|
return n;
|
|
699
700
|
}
|
|
700
|
-
function
|
|
701
|
+
function hi(a) {
|
|
701
702
|
if (Array.isArray(a)) return gt(a);
|
|
702
703
|
}
|
|
703
|
-
function
|
|
704
|
-
return (t =
|
|
704
|
+
function mi(a, t, r) {
|
|
705
|
+
return (t = Ti(t)) in a ? Object.defineProperty(a, t, {
|
|
705
706
|
value: r,
|
|
706
707
|
enumerable: !0,
|
|
707
708
|
configurable: !0,
|
|
708
709
|
writable: !0
|
|
709
710
|
}) : a[t] = r, a;
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
+
function gi(a) {
|
|
712
713
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
713
714
|
}
|
|
714
|
-
function
|
|
715
|
+
function yi() {
|
|
715
716
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
716
717
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
717
718
|
}
|
|
@@ -729,17 +730,17 @@ function Vt(a) {
|
|
|
729
730
|
for (var t = 1; t < arguments.length; t++) {
|
|
730
731
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
731
732
|
t % 2 ? Ut(Object(r), !0).forEach(function(n) {
|
|
732
|
-
|
|
733
|
+
mi(a, n, r[n]);
|
|
733
734
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Ut(Object(r)).forEach(function(n) {
|
|
734
735
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(r, n));
|
|
735
736
|
});
|
|
736
737
|
}
|
|
737
738
|
return a;
|
|
738
739
|
}
|
|
739
|
-
function
|
|
740
|
-
return
|
|
740
|
+
function wi(a) {
|
|
741
|
+
return hi(a) || gi(a) || _i(a) || yi();
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
+
function ki(a, t) {
|
|
743
744
|
if (typeof a != "object" || !a) return a;
|
|
744
745
|
var r = a[Symbol.toPrimitive];
|
|
745
746
|
if (r !== void 0) {
|
|
@@ -749,11 +750,11 @@ function yi(a, t) {
|
|
|
749
750
|
}
|
|
750
751
|
return (t === "string" ? String : Number)(a);
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
-
var t =
|
|
753
|
+
function Ti(a) {
|
|
754
|
+
var t = ki(a, "string");
|
|
754
755
|
return typeof t == "symbol" ? t : t + "";
|
|
755
756
|
}
|
|
756
|
-
function
|
|
757
|
+
function _i(a, t) {
|
|
757
758
|
if (a) {
|
|
758
759
|
if (typeof a == "string") return gt(a, t);
|
|
759
760
|
var r = {}.toString.call(a).slice(8, -1);
|
|
@@ -773,16 +774,16 @@ var qt = {
|
|
|
773
774
|
var n = t.indexOf(r);
|
|
774
775
|
n !== -1 && t.splice(n, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
775
776
|
}
|
|
776
|
-
},
|
|
777
|
+
}, Si = function(t) {
|
|
777
778
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
778
|
-
},
|
|
779
|
+
}, Ci = function(t) {
|
|
779
780
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
780
|
-
},
|
|
781
|
+
}, Be = function(t) {
|
|
781
782
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
782
|
-
},
|
|
783
|
-
return
|
|
784
|
-
},
|
|
785
|
-
return
|
|
783
|
+
}, Ii = function(t) {
|
|
784
|
+
return Be(t) && !t.shiftKey;
|
|
785
|
+
}, $i = function(t) {
|
|
786
|
+
return Be(t) && t.shiftKey;
|
|
786
787
|
}, Xt = function(t) {
|
|
787
788
|
return setTimeout(t, 0);
|
|
788
789
|
}, Re = function(t) {
|
|
@@ -791,13 +792,13 @@ var qt = {
|
|
|
791
792
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
792
793
|
}, Ue = function(t) {
|
|
793
794
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
794
|
-
},
|
|
795
|
-
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) ||
|
|
795
|
+
}, Oi = [], Ei = function(t, r) {
|
|
796
|
+
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) || Oi, u = Vt({
|
|
796
797
|
returnFocusOnDeactivate: !0,
|
|
797
798
|
escapeDeactivates: !0,
|
|
798
799
|
delayInitialFocus: !0,
|
|
799
|
-
isKeyForward:
|
|
800
|
-
isKeyBackward:
|
|
800
|
+
isKeyForward: Ii,
|
|
801
|
+
isKeyBackward: $i
|
|
801
802
|
}, r), o = {
|
|
802
803
|
// containers given to createFocusTrap()
|
|
803
804
|
// @type {Array<HTMLElement>}
|
|
@@ -837,10 +838,10 @@ var qt = {
|
|
|
837
838
|
recentNavEvent: void 0
|
|
838
839
|
}, d, b = function(l, f, m) {
|
|
839
840
|
return l && l[f] !== void 0 ? l[f] : u[m || f];
|
|
840
|
-
},
|
|
841
|
+
}, T = function(l, f) {
|
|
841
842
|
var m = typeof (f == null ? void 0 : f.composedPath) == "function" ? f.composedPath() : void 0;
|
|
842
|
-
return o.containerGroups.findIndex(function(
|
|
843
|
-
var R =
|
|
843
|
+
return o.containerGroups.findIndex(function(F) {
|
|
844
|
+
var R = F.container, M = F.tabbableNodes;
|
|
844
845
|
return R.contains(l) || // fall back to explicit tabbable search which will take into consideration any
|
|
845
846
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
846
847
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
@@ -850,8 +851,8 @@ var qt = {
|
|
|
850
851
|
});
|
|
851
852
|
});
|
|
852
853
|
}, _ = function(l) {
|
|
853
|
-
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = f.hasFallback,
|
|
854
|
-
if (typeof O == "function" && (O = O.apply(void 0,
|
|
854
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = f.hasFallback, F = m === void 0 ? !1 : m, R = f.params, M = R === void 0 ? [] : R, O = u[l];
|
|
855
|
+
if (typeof O == "function" && (O = O.apply(void 0, wi(M))), O === !0 && (O = void 0), !O) {
|
|
855
856
|
if (O === void 0 || O === !1)
|
|
856
857
|
return O;
|
|
857
858
|
throw new Error("`".concat(l, "` was specified but was not a node, or did not return a node"));
|
|
@@ -863,18 +864,18 @@ var qt = {
|
|
|
863
864
|
} catch (v) {
|
|
864
865
|
throw new Error("`".concat(l, '` appears to be an invalid selector; error="').concat(v.message, '"'));
|
|
865
866
|
}
|
|
866
|
-
if (!w && !
|
|
867
|
+
if (!w && !F)
|
|
867
868
|
throw new Error("`".concat(l, "` as selector refers to no known node"));
|
|
868
869
|
}
|
|
869
870
|
return w;
|
|
870
|
-
},
|
|
871
|
+
}, B = function() {
|
|
871
872
|
var l = _("initialFocus", {
|
|
872
873
|
hasFallback: !0
|
|
873
874
|
});
|
|
874
875
|
if (l === !1)
|
|
875
876
|
return !1;
|
|
876
877
|
if (l === void 0 || l && !ht(l, u.tabbableOptions))
|
|
877
|
-
if (
|
|
878
|
+
if (T(n.activeElement) >= 0)
|
|
878
879
|
l = n.activeElement;
|
|
879
880
|
else {
|
|
880
881
|
var f = o.tabbableGroups[0], m = f && f.firstTabbableNode;
|
|
@@ -884,9 +885,9 @@ var qt = {
|
|
|
884
885
|
if (!l)
|
|
885
886
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
886
887
|
return l;
|
|
887
|
-
},
|
|
888
|
+
}, x = function() {
|
|
888
889
|
if (o.containerGroups = o.containers.map(function(l) {
|
|
889
|
-
var f =
|
|
890
|
+
var f = vi(l, u.tabbableOptions), m = bi(l, u.tabbableOptions), F = f.length > 0 ? f[0] : void 0, R = f.length > 0 ? f[f.length - 1] : void 0, M = m.find(function(v) {
|
|
890
891
|
return Oe(v);
|
|
891
892
|
}), O = m.slice().reverse().find(function(v) {
|
|
892
893
|
return Oe(v);
|
|
@@ -900,7 +901,7 @@ var qt = {
|
|
|
900
901
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
901
902
|
posTabIndexesFound: w,
|
|
902
903
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
903
|
-
firstTabbableNode:
|
|
904
|
+
firstTabbableNode: F,
|
|
904
905
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
905
906
|
lastTabbableNode: R,
|
|
906
907
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -924,10 +925,10 @@ var qt = {
|
|
|
924
925
|
*/
|
|
925
926
|
nextTabbableNode: function(C) {
|
|
926
927
|
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, g = f.indexOf(C);
|
|
927
|
-
return g < 0 ? y ? m.slice(m.indexOf(C) + 1).find(function(
|
|
928
|
-
return Oe(
|
|
929
|
-
}) : m.slice(0, m.indexOf(C)).reverse().find(function(
|
|
930
|
-
return Oe(
|
|
928
|
+
return g < 0 ? y ? m.slice(m.indexOf(C) + 1).find(function(Q) {
|
|
929
|
+
return Oe(Q);
|
|
930
|
+
}) : m.slice(0, m.indexOf(C)).reverse().find(function(Q) {
|
|
931
|
+
return Oe(Q);
|
|
931
932
|
}) : f[g + (y ? 1 : -1)];
|
|
932
933
|
}
|
|
933
934
|
};
|
|
@@ -943,15 +944,15 @@ var qt = {
|
|
|
943
944
|
var f = l.activeElement;
|
|
944
945
|
if (f)
|
|
945
946
|
return f.shadowRoot && f.shadowRoot.activeElement !== null ? P(f.shadowRoot) : f;
|
|
946
|
-
},
|
|
947
|
+
}, A = function(l) {
|
|
947
948
|
if (l !== !1 && l !== P(document)) {
|
|
948
949
|
if (!l || !l.focus) {
|
|
949
|
-
|
|
950
|
+
A(B());
|
|
950
951
|
return;
|
|
951
952
|
}
|
|
952
953
|
l.focus({
|
|
953
954
|
preventScroll: !!u.preventScroll
|
|
954
|
-
}), o.mostRecentlyFocusedNode = l,
|
|
955
|
+
}), o.mostRecentlyFocusedNode = l, Si(l) && l.select();
|
|
955
956
|
}
|
|
956
957
|
}, j = function(l) {
|
|
957
958
|
var f = _("setReturnFocus", {
|
|
@@ -959,11 +960,11 @@ var qt = {
|
|
|
959
960
|
});
|
|
960
961
|
return f || (f === !1 ? !1 : l);
|
|
961
962
|
}, ne = function(l) {
|
|
962
|
-
var f = l.target, m = l.event,
|
|
963
|
-
f = f || Ue(m),
|
|
963
|
+
var f = l.target, m = l.event, F = l.isBackward, R = F === void 0 ? !1 : F;
|
|
964
|
+
f = f || Ue(m), x();
|
|
964
965
|
var M = null;
|
|
965
966
|
if (o.tabbableGroups.length > 0) {
|
|
966
|
-
var O =
|
|
967
|
+
var O = T(f, m), w = O >= 0 ? o.containerGroups[O] : void 0;
|
|
967
968
|
if (O < 0)
|
|
968
969
|
R ? M = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : M = o.tabbableGroups[0].firstTabbableNode;
|
|
969
970
|
else if (R) {
|
|
@@ -974,23 +975,23 @@ var qt = {
|
|
|
974
975
|
if (v < 0 && (w.container === f || ht(f, u.tabbableOptions) && !Oe(f, u.tabbableOptions) && !w.nextTabbableNode(f, !1)) && (v = O), v >= 0) {
|
|
975
976
|
var C = v === 0 ? o.tabbableGroups.length - 1 : v - 1, y = o.tabbableGroups[C];
|
|
976
977
|
M = ke(f) >= 0 ? y.lastTabbableNode : y.lastDomTabbableNode;
|
|
977
|
-
} else
|
|
978
|
+
} else Be(m) || (M = w.nextTabbableNode(f, !1));
|
|
978
979
|
} else {
|
|
979
980
|
var g = o.tabbableGroups.findIndex(function(X) {
|
|
980
981
|
var ce = X.lastTabbableNode;
|
|
981
982
|
return f === ce;
|
|
982
983
|
});
|
|
983
984
|
if (g < 0 && (w.container === f || ht(f, u.tabbableOptions) && !Oe(f, u.tabbableOptions) && !w.nextTabbableNode(f)) && (g = O), g >= 0) {
|
|
984
|
-
var
|
|
985
|
+
var Q = g === o.tabbableGroups.length - 1 ? 0 : g + 1, H = o.tabbableGroups[Q];
|
|
985
986
|
M = ke(f) >= 0 ? H.firstTabbableNode : H.firstDomTabbableNode;
|
|
986
|
-
} else
|
|
987
|
+
} else Be(m) || (M = w.nextTabbableNode(f));
|
|
987
988
|
}
|
|
988
989
|
} else
|
|
989
990
|
M = _("fallbackFocus");
|
|
990
991
|
return M;
|
|
991
992
|
}, K = function(l) {
|
|
992
993
|
var f = Ue(l);
|
|
993
|
-
if (!(
|
|
994
|
+
if (!(T(f, l) >= 0)) {
|
|
994
995
|
if (Re(u.clickOutsideDeactivates, l)) {
|
|
995
996
|
d.deactivate({
|
|
996
997
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -1006,20 +1007,20 @@ var qt = {
|
|
|
1006
1007
|
Re(u.allowOutsideClick, l) || l.preventDefault();
|
|
1007
1008
|
}
|
|
1008
1009
|
}, z = function(l) {
|
|
1009
|
-
var f = Ue(l), m =
|
|
1010
|
+
var f = Ue(l), m = T(f, l) >= 0;
|
|
1010
1011
|
if (m || f instanceof Document)
|
|
1011
1012
|
m && (o.mostRecentlyFocusedNode = f);
|
|
1012
1013
|
else {
|
|
1013
1014
|
l.stopImmediatePropagation();
|
|
1014
|
-
var
|
|
1015
|
+
var F, R = !0;
|
|
1015
1016
|
if (o.mostRecentlyFocusedNode)
|
|
1016
1017
|
if (ke(o.mostRecentlyFocusedNode) > 0) {
|
|
1017
|
-
var M =
|
|
1018
|
+
var M = T(o.mostRecentlyFocusedNode), O = o.containerGroups[M].tabbableNodes;
|
|
1018
1019
|
if (O.length > 0) {
|
|
1019
1020
|
var w = O.findIndex(function(v) {
|
|
1020
1021
|
return v === o.mostRecentlyFocusedNode;
|
|
1021
1022
|
});
|
|
1022
|
-
w >= 0 && (u.isKeyForward(o.recentNavEvent) ? w + 1 < O.length && (
|
|
1023
|
+
w >= 0 && (u.isKeyForward(o.recentNavEvent) ? w + 1 < O.length && (F = O[w + 1], R = !1) : w - 1 >= 0 && (F = O[w - 1], R = !1));
|
|
1023
1024
|
}
|
|
1024
1025
|
} else
|
|
1025
1026
|
o.containerGroups.some(function(v) {
|
|
@@ -1029,34 +1030,34 @@ var qt = {
|
|
|
1029
1030
|
}) || (R = !1);
|
|
1030
1031
|
else
|
|
1031
1032
|
R = !1;
|
|
1032
|
-
R && (
|
|
1033
|
+
R && (F = ne({
|
|
1033
1034
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1034
1035
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1035
1036
|
target: o.mostRecentlyFocusedNode,
|
|
1036
1037
|
isBackward: u.isKeyBackward(o.recentNavEvent)
|
|
1037
|
-
})),
|
|
1038
|
+
})), A(F || o.mostRecentlyFocusedNode || B());
|
|
1038
1039
|
}
|
|
1039
1040
|
o.recentNavEvent = void 0;
|
|
1040
|
-
},
|
|
1041
|
+
}, ve = function(l) {
|
|
1041
1042
|
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1042
1043
|
o.recentNavEvent = l;
|
|
1043
1044
|
var m = ne({
|
|
1044
1045
|
event: l,
|
|
1045
1046
|
isBackward: f
|
|
1046
1047
|
});
|
|
1047
|
-
m && (
|
|
1048
|
+
m && (Be(l) && l.preventDefault(), A(m));
|
|
1048
1049
|
}, le = function(l) {
|
|
1049
|
-
(u.isKeyForward(l) || u.isKeyBackward(l)) &&
|
|
1050
|
+
(u.isKeyForward(l) || u.isKeyBackward(l)) && ve(l, u.isKeyBackward(l));
|
|
1050
1051
|
}, J = function(l) {
|
|
1051
|
-
|
|
1052
|
+
Ci(l) && Re(u.escapeDeactivates, l) !== !1 && (l.preventDefault(), d.deactivate());
|
|
1052
1053
|
}, q = function(l) {
|
|
1053
1054
|
var f = Ue(l);
|
|
1054
|
-
|
|
1055
|
-
},
|
|
1055
|
+
T(f, l) >= 0 || Re(u.clickOutsideDeactivates, l) || Re(u.allowOutsideClick, l) || (l.preventDefault(), l.stopImmediatePropagation());
|
|
1056
|
+
}, se = function() {
|
|
1056
1057
|
if (o.active)
|
|
1057
1058
|
return qt.activateTrap(s, d), o.delayInitialFocusTimer = u.delayInitialFocus ? Xt(function() {
|
|
1058
|
-
|
|
1059
|
-
}) :
|
|
1059
|
+
A(B());
|
|
1060
|
+
}) : A(B()), n.addEventListener("focusin", z, !0), n.addEventListener("mousedown", K, {
|
|
1060
1061
|
capture: !0,
|
|
1061
1062
|
passive: !1
|
|
1062
1063
|
}), n.addEventListener("touchstart", K, {
|
|
@@ -1074,12 +1075,12 @@ var qt = {
|
|
|
1074
1075
|
return n.removeEventListener("focusin", z, !0), n.removeEventListener("mousedown", K, !0), n.removeEventListener("touchstart", K, !0), n.removeEventListener("click", q, !0), n.removeEventListener("keydown", le, !0), n.removeEventListener("keydown", J), d;
|
|
1075
1076
|
}, G = function(l) {
|
|
1076
1077
|
var f = l.some(function(m) {
|
|
1077
|
-
var
|
|
1078
|
-
return
|
|
1078
|
+
var F = Array.from(m.removedNodes);
|
|
1079
|
+
return F.some(function(R) {
|
|
1079
1080
|
return R === o.mostRecentlyFocusedNode;
|
|
1080
1081
|
});
|
|
1081
1082
|
});
|
|
1082
|
-
f &&
|
|
1083
|
+
f && A(B());
|
|
1083
1084
|
}, Z = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(G) : void 0, U = function() {
|
|
1084
1085
|
Z && (Z.disconnect(), o.active && !o.paused && o.containers.map(function(l) {
|
|
1085
1086
|
Z.observe(l, {
|
|
@@ -1098,12 +1099,12 @@ var qt = {
|
|
|
1098
1099
|
activate: function(l) {
|
|
1099
1100
|
if (o.active)
|
|
1100
1101
|
return this;
|
|
1101
|
-
var f = b(l, "onActivate"), m = b(l, "onPostActivate"),
|
|
1102
|
-
|
|
1102
|
+
var f = b(l, "onActivate"), m = b(l, "onPostActivate"), F = b(l, "checkCanFocusTrap");
|
|
1103
|
+
F || x(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = P(n), f == null || f();
|
|
1103
1104
|
var R = function() {
|
|
1104
|
-
|
|
1105
|
+
F && x(), se(), U(), m == null || m();
|
|
1105
1106
|
};
|
|
1106
|
-
return
|
|
1107
|
+
return F ? (F(o.containers.concat()).then(R, R), this) : (R(), this);
|
|
1107
1108
|
},
|
|
1108
1109
|
deactivate: function(l) {
|
|
1109
1110
|
if (!o.active)
|
|
@@ -1114,11 +1115,11 @@ var qt = {
|
|
|
1114
1115
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
1115
1116
|
}, l);
|
|
1116
1117
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, N(), o.active = !1, o.paused = !1, U(), qt.deactivateTrap(s, d);
|
|
1117
|
-
var m = b(f, "onDeactivate"),
|
|
1118
|
+
var m = b(f, "onDeactivate"), F = b(f, "onPostDeactivate"), R = b(f, "checkCanReturnFocus"), M = b(f, "returnFocus", "returnFocusOnDeactivate");
|
|
1118
1119
|
m == null || m();
|
|
1119
1120
|
var O = function() {
|
|
1120
1121
|
Xt(function() {
|
|
1121
|
-
M &&
|
|
1122
|
+
M && A(j(o.nodeFocusedBeforeActivation)), F == null || F();
|
|
1122
1123
|
});
|
|
1123
1124
|
};
|
|
1124
1125
|
return M && R ? (R(j(o.nodeFocusedBeforeActivation)).then(O, O), this) : (O(), this);
|
|
@@ -1133,7 +1134,7 @@ var qt = {
|
|
|
1133
1134
|
var f = [].concat(l).filter(Boolean);
|
|
1134
1135
|
return o.containers = f.map(function(m) {
|
|
1135
1136
|
return typeof m == "string" ? n.querySelector(m) : m;
|
|
1136
|
-
}), o.active &&
|
|
1137
|
+
}), o.active && x(), U(), this;
|
|
1137
1138
|
}
|
|
1138
1139
|
}, Object.defineProperties(d, {
|
|
1139
1140
|
_isManuallyPaused: {
|
|
@@ -1146,11 +1147,11 @@ var qt = {
|
|
|
1146
1147
|
if (o.paused === l)
|
|
1147
1148
|
return this;
|
|
1148
1149
|
if (o.paused = l, l) {
|
|
1149
|
-
var m = b(f, "onPause"),
|
|
1150
|
-
m == null || m(), N(), U(),
|
|
1150
|
+
var m = b(f, "onPause"), F = b(f, "onPostPause");
|
|
1151
|
+
m == null || m(), N(), U(), F == null || F();
|
|
1151
1152
|
} else {
|
|
1152
1153
|
var R = b(f, "onUnpause"), M = b(f, "onPostUnpause");
|
|
1153
|
-
R == null || R(),
|
|
1154
|
+
R == null || R(), x(), se(), U(), M == null || M();
|
|
1154
1155
|
}
|
|
1155
1156
|
return this;
|
|
1156
1157
|
}
|
|
@@ -1162,7 +1163,7 @@ var qt = {
|
|
|
1162
1163
|
* (c) 2025 Eduardo San Martin Morote
|
|
1163
1164
|
* @license MIT
|
|
1164
1165
|
*/
|
|
1165
|
-
const
|
|
1166
|
+
const Ai = {
|
|
1166
1167
|
escapeDeactivates: {
|
|
1167
1168
|
type: Boolean,
|
|
1168
1169
|
default: !0
|
|
@@ -1188,7 +1189,7 @@ const Oi = {
|
|
|
1188
1189
|
preventScroll: Boolean,
|
|
1189
1190
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1190
1191
|
tabbableOptions: Object
|
|
1191
|
-
},
|
|
1192
|
+
}, Fi = ie({
|
|
1192
1193
|
name: "FocusTrap",
|
|
1193
1194
|
props: Object.assign({
|
|
1194
1195
|
active: {
|
|
@@ -1196,7 +1197,7 @@ const Oi = {
|
|
|
1196
1197
|
type: Boolean,
|
|
1197
1198
|
default: !0
|
|
1198
1199
|
}
|
|
1199
|
-
},
|
|
1200
|
+
}, Ai),
|
|
1200
1201
|
emits: [
|
|
1201
1202
|
"update:active",
|
|
1202
1203
|
"activate",
|
|
@@ -1214,7 +1215,7 @@ const Oi = {
|
|
|
1214
1215
|
return d && (d instanceof HTMLElement ? d : d.$el);
|
|
1215
1216
|
});
|
|
1216
1217
|
function o() {
|
|
1217
|
-
return n || (n =
|
|
1218
|
+
return n || (n = Ei(u.value, {
|
|
1218
1219
|
escapeDeactivates: a.escapeDeactivates,
|
|
1219
1220
|
allowOutsideClick: a.allowOutsideClick,
|
|
1220
1221
|
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
@@ -1250,7 +1251,7 @@ const Oi = {
|
|
|
1250
1251
|
renderImpl() {
|
|
1251
1252
|
if (!t.default)
|
|
1252
1253
|
return null;
|
|
1253
|
-
const d = t.default().filter((
|
|
1254
|
+
const d = t.default().filter((T) => T.type !== Nn);
|
|
1254
1255
|
return !d || !d.length || d.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), d) : Dn(d[0], { ref: s });
|
|
1255
1256
|
}
|
|
1256
1257
|
};
|
|
@@ -1268,16 +1269,27 @@ function ca() {
|
|
|
1268
1269
|
}
|
|
1269
1270
|
};
|
|
1270
1271
|
}
|
|
1272
|
+
const Ni = {
|
|
1273
|
+
new: "New"
|
|
1274
|
+
};
|
|
1275
|
+
function Di() {
|
|
1276
|
+
const a = Mn("en-us", Ni);
|
|
1277
|
+
return {
|
|
1278
|
+
i18n: a,
|
|
1279
|
+
i18nT: Ln(a)
|
|
1280
|
+
// Translation component <i18n-t>
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1271
1283
|
var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1272
|
-
function
|
|
1284
|
+
function Ri(a) {
|
|
1273
1285
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1274
1286
|
}
|
|
1275
1287
|
var tt = { exports: {} };
|
|
1276
1288
|
tt.exports;
|
|
1277
1289
|
(function(a, t) {
|
|
1278
|
-
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, u = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", b = "[object Date]",
|
|
1279
|
-
w[u] = w[o] = w[J] = w[q] = w[d] = w[b] = w[
|
|
1280
|
-
var v = typeof Ve == "object" && Ve && Ve.Object === Object && Ve, C = typeof self == "object" && self && self.Object === Object && self, y = v || C || Function("return this")(), g = t && !t.nodeType && t,
|
|
1290
|
+
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, u = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", b = "[object Date]", T = "[object Error]", _ = "[object Function]", B = "[object GeneratorFunction]", x = "[object Map]", P = "[object Number]", A = "[object Object]", j = "[object Promise]", ne = "[object RegExp]", K = "[object Set]", z = "[object String]", ve = "[object Symbol]", le = "[object WeakMap]", J = "[object ArrayBuffer]", q = "[object DataView]", se = "[object Float32Array]", N = "[object Float64Array]", G = "[object Int8Array]", Z = "[object Int16Array]", U = "[object Int32Array]", D = "[object Uint8Array]", l = "[object Uint8ClampedArray]", f = "[object Uint16Array]", m = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, R = /\w*$/, M = /^\[object .+?Constructor\]$/, O = /^(?:0|[1-9]\d*)$/, w = {};
|
|
1291
|
+
w[u] = w[o] = w[J] = w[q] = w[d] = w[b] = w[se] = w[N] = w[G] = w[Z] = w[U] = w[x] = w[P] = w[A] = w[ne] = w[K] = w[z] = w[ve] = w[D] = w[l] = w[f] = w[m] = !0, w[T] = w[_] = w[le] = !1;
|
|
1292
|
+
var v = typeof Ve == "object" && Ve && Ve.Object === Object && Ve, C = typeof self == "object" && self && self.Object === Object && self, y = v || C || Function("return this")(), g = t && !t.nodeType && t, Q = g && !0 && a && !a.nodeType && a, H = Q && Q.exports === g;
|
|
1281
1293
|
function X(e, i) {
|
|
1282
1294
|
return e.set(i[0], i[1]), e;
|
|
1283
1295
|
}
|
|
@@ -1336,8 +1348,8 @@ tt.exports;
|
|
|
1336
1348
|
var ba = Array.prototype, pa = Function.prototype, Ke = Object.prototype, nt = y["__core-js_shared__"], St = function() {
|
|
1337
1349
|
var e = /[^.]+$/.exec(nt && nt.keys && nt.keys.IE_PROTO || "");
|
|
1338
1350
|
return e ? "Symbol(src)_1." + e : "";
|
|
1339
|
-
}(), Ct = pa.toString,
|
|
1340
|
-
"^" + Ct.call(
|
|
1351
|
+
}(), Ct = pa.toString, be = Ke.hasOwnProperty, Ze = Ke.toString, ha = RegExp(
|
|
1352
|
+
"^" + Ct.call(be).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1341
1353
|
), It = H ? y.Buffer : void 0, $t = y.Symbol, Ot = y.Uint8Array, ma = at(Object.getPrototypeOf, Object), ga = Object.create, ya = Ke.propertyIsEnumerable, wa = ba.splice, Et = Object.getOwnPropertySymbols, ka = It ? It.isBuffer : void 0, Ta = at(Object.keys, Object), rt = Ie(y, "DataView"), Ne = Ie(y, "Map"), it = Ie(y, "Promise"), ot = Ie(y, "Set"), st = Ie(y, "WeakMap"), De = Ie(Object, "create"), _a = ye(rt), Sa = ye(Ne), Ca = ye(it), Ia = ye(ot), $a = ye(st), At = $t ? $t.prototype : void 0, Ft = At ? At.valueOf : void 0;
|
|
1342
1354
|
function me(e) {
|
|
1343
1355
|
var i = -1, c = e ? e.length : 0;
|
|
@@ -1358,11 +1370,11 @@ tt.exports;
|
|
|
1358
1370
|
var c = i[e];
|
|
1359
1371
|
return c === n ? void 0 : c;
|
|
1360
1372
|
}
|
|
1361
|
-
return
|
|
1373
|
+
return be.call(i, e) ? i[e] : void 0;
|
|
1362
1374
|
}
|
|
1363
1375
|
function Fa(e) {
|
|
1364
1376
|
var i = this.__data__;
|
|
1365
|
-
return De ? i[e] !== void 0 :
|
|
1377
|
+
return De ? i[e] !== void 0 : be.call(i, e);
|
|
1366
1378
|
}
|
|
1367
1379
|
function Na(e, i) {
|
|
1368
1380
|
var c = this.__data__;
|
|
@@ -1386,18 +1398,18 @@ tt.exports;
|
|
|
1386
1398
|
var h = i.length - 1;
|
|
1387
1399
|
return c == h ? i.pop() : wa.call(i, c, 1), !0;
|
|
1388
1400
|
}
|
|
1389
|
-
function
|
|
1401
|
+
function Ba(e) {
|
|
1390
1402
|
var i = this.__data__, c = He(i, e);
|
|
1391
1403
|
return c < 0 ? void 0 : i[c][1];
|
|
1392
1404
|
}
|
|
1393
|
-
function
|
|
1405
|
+
function xa(e) {
|
|
1394
1406
|
return He(this.__data__, e) > -1;
|
|
1395
1407
|
}
|
|
1396
1408
|
function Ma(e, i) {
|
|
1397
1409
|
var c = this.__data__, h = He(c, e);
|
|
1398
1410
|
return h < 0 ? c.push([e, i]) : c[h][1] = i, this;
|
|
1399
1411
|
}
|
|
1400
|
-
ue.prototype.clear = Da, ue.prototype.delete = Ra, ue.prototype.get =
|
|
1412
|
+
ue.prototype.clear = Da, ue.prototype.delete = Ra, ue.prototype.get = Ba, ue.prototype.has = xa, ue.prototype.set = Ma;
|
|
1401
1413
|
function Se(e) {
|
|
1402
1414
|
var i = -1, c = e ? e.length : 0;
|
|
1403
1415
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1454,16 +1466,16 @@ tt.exports;
|
|
|
1454
1466
|
function Va(e, i) {
|
|
1455
1467
|
var c = ut(e) || yn(e) ? fa(e.length, String) : [], h = c.length, V = !!h;
|
|
1456
1468
|
for (var ee in e)
|
|
1457
|
-
|
|
1469
|
+
be.call(e, ee) && !(V && (ee == "length" || pn(ee, h))) && c.push(ee);
|
|
1458
1470
|
return c;
|
|
1459
1471
|
}
|
|
1460
1472
|
function Nt(e, i, c) {
|
|
1461
1473
|
var h = e[i];
|
|
1462
|
-
(!(
|
|
1474
|
+
(!(be.call(e, i) && xt(h, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1463
1475
|
}
|
|
1464
1476
|
function He(e, i) {
|
|
1465
1477
|
for (var c = e.length; c--; )
|
|
1466
|
-
if (
|
|
1478
|
+
if (xt(e[c][0], i))
|
|
1467
1479
|
return c;
|
|
1468
1480
|
return -1;
|
|
1469
1481
|
}
|
|
@@ -1481,10 +1493,10 @@ tt.exports;
|
|
|
1481
1493
|
if (te = fn(e), !i)
|
|
1482
1494
|
return cn(e, te);
|
|
1483
1495
|
} else {
|
|
1484
|
-
var $e = ge(e), Pt = $e == _ || $e ==
|
|
1496
|
+
var $e = ge(e), Pt = $e == _ || $e == B;
|
|
1485
1497
|
if (kn(e))
|
|
1486
1498
|
return tn(e, i);
|
|
1487
|
-
if ($e ==
|
|
1499
|
+
if ($e == A || $e == u || Pt && !ee) {
|
|
1488
1500
|
if (kt(e))
|
|
1489
1501
|
return ee ? e : {};
|
|
1490
1502
|
if (te = vn(Pt ? {} : e), !i)
|
|
@@ -1522,11 +1534,11 @@ tt.exports;
|
|
|
1522
1534
|
return i.test(ye(e));
|
|
1523
1535
|
}
|
|
1524
1536
|
function en(e) {
|
|
1525
|
-
if (!
|
|
1537
|
+
if (!Bt(e))
|
|
1526
1538
|
return Ta(e);
|
|
1527
1539
|
var i = [];
|
|
1528
1540
|
for (var c in Object(e))
|
|
1529
|
-
|
|
1541
|
+
be.call(e, c) && c != "constructor" && i.push(c);
|
|
1530
1542
|
return i;
|
|
1531
1543
|
}
|
|
1532
1544
|
function tn(e, i) {
|
|
@@ -1591,14 +1603,14 @@ tt.exports;
|
|
|
1591
1603
|
return Ja(c) ? c : void 0;
|
|
1592
1604
|
}
|
|
1593
1605
|
var Rt = Et ? at(Et, Object) : Sn, ge = Qa;
|
|
1594
|
-
(rt && ge(new rt(new ArrayBuffer(1))) != q || Ne && ge(new Ne()) !=
|
|
1595
|
-
var i = Ze.call(e), c = i ==
|
|
1606
|
+
(rt && ge(new rt(new ArrayBuffer(1))) != q || Ne && ge(new Ne()) != x || it && ge(it.resolve()) != j || ot && ge(new ot()) != K || st && ge(new st()) != le) && (ge = function(e) {
|
|
1607
|
+
var i = Ze.call(e), c = i == A ? e.constructor : void 0, h = c ? ye(c) : void 0;
|
|
1596
1608
|
if (h)
|
|
1597
1609
|
switch (h) {
|
|
1598
1610
|
case _a:
|
|
1599
1611
|
return q;
|
|
1600
1612
|
case Sa:
|
|
1601
|
-
return
|
|
1613
|
+
return x;
|
|
1602
1614
|
case Ca:
|
|
1603
1615
|
return j;
|
|
1604
1616
|
case Ia:
|
|
@@ -1610,10 +1622,10 @@ tt.exports;
|
|
|
1610
1622
|
});
|
|
1611
1623
|
function fn(e) {
|
|
1612
1624
|
var i = e.length, c = e.constructor(i);
|
|
1613
|
-
return i && typeof e[0] == "string" &&
|
|
1625
|
+
return i && typeof e[0] == "string" && be.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1614
1626
|
}
|
|
1615
1627
|
function vn(e) {
|
|
1616
|
-
return typeof e.constructor == "function" && !
|
|
1628
|
+
return typeof e.constructor == "function" && !Bt(e) ? Xa(ma(e)) : {};
|
|
1617
1629
|
}
|
|
1618
1630
|
function bn(e, i, c, h) {
|
|
1619
1631
|
var V = e.constructor;
|
|
@@ -1625,7 +1637,7 @@ tt.exports;
|
|
|
1625
1637
|
return new V(+e);
|
|
1626
1638
|
case q:
|
|
1627
1639
|
return an(e, h);
|
|
1628
|
-
case
|
|
1640
|
+
case se:
|
|
1629
1641
|
case N:
|
|
1630
1642
|
case G:
|
|
1631
1643
|
case Z:
|
|
@@ -1635,7 +1647,7 @@ tt.exports;
|
|
|
1635
1647
|
case f:
|
|
1636
1648
|
case m:
|
|
1637
1649
|
return ln(e, h);
|
|
1638
|
-
case
|
|
1650
|
+
case x:
|
|
1639
1651
|
return nn(e, h, c);
|
|
1640
1652
|
case P:
|
|
1641
1653
|
case z:
|
|
@@ -1644,7 +1656,7 @@ tt.exports;
|
|
|
1644
1656
|
return rn(e);
|
|
1645
1657
|
case K:
|
|
1646
1658
|
return on(e, h, c);
|
|
1647
|
-
case
|
|
1659
|
+
case ve:
|
|
1648
1660
|
return sn(e);
|
|
1649
1661
|
}
|
|
1650
1662
|
}
|
|
@@ -1658,7 +1670,7 @@ tt.exports;
|
|
|
1658
1670
|
function mn(e) {
|
|
1659
1671
|
return !!St && St in e;
|
|
1660
1672
|
}
|
|
1661
|
-
function
|
|
1673
|
+
function Bt(e) {
|
|
1662
1674
|
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Ke;
|
|
1663
1675
|
return e === c;
|
|
1664
1676
|
}
|
|
@@ -1678,11 +1690,11 @@ tt.exports;
|
|
|
1678
1690
|
function gn(e) {
|
|
1679
1691
|
return lt(e, !0, !0);
|
|
1680
1692
|
}
|
|
1681
|
-
function
|
|
1693
|
+
function xt(e, i) {
|
|
1682
1694
|
return e === i || e !== e && i !== i;
|
|
1683
1695
|
}
|
|
1684
1696
|
function yn(e) {
|
|
1685
|
-
return wn(e) &&
|
|
1697
|
+
return wn(e) && be.call(e, "callee") && (!ya.call(e, "callee") || Ze.call(e) == u);
|
|
1686
1698
|
}
|
|
1687
1699
|
var ut = Array.isArray;
|
|
1688
1700
|
function Mt(e) {
|
|
@@ -1694,7 +1706,7 @@ tt.exports;
|
|
|
1694
1706
|
var kn = ka || Cn;
|
|
1695
1707
|
function Lt(e) {
|
|
1696
1708
|
var i = ze(e) ? Ze.call(e) : "";
|
|
1697
|
-
return i == _ || i ==
|
|
1709
|
+
return i == _ || i == B;
|
|
1698
1710
|
}
|
|
1699
1711
|
function Tn(e) {
|
|
1700
1712
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= s;
|
|
@@ -1717,21 +1729,21 @@ tt.exports;
|
|
|
1717
1729
|
}
|
|
1718
1730
|
a.exports = gn;
|
|
1719
1731
|
})(tt, tt.exports);
|
|
1720
|
-
var
|
|
1721
|
-
const
|
|
1732
|
+
var Bi = tt.exports;
|
|
1733
|
+
const xi = /* @__PURE__ */ Ri(Bi), Mi = {
|
|
1722
1734
|
key: 0,
|
|
1723
1735
|
class: "sidebar-header"
|
|
1724
|
-
},
|
|
1736
|
+
}, Li = { class: "sidebar-content-container" }, ji = {
|
|
1725
1737
|
key: 0,
|
|
1726
1738
|
class: "sidebar-top"
|
|
1727
|
-
},
|
|
1739
|
+
}, Pi = { "aria-label": "Main menu" }, Ki = ["id"], Zi = ["aria-labelledby"], Hi = {
|
|
1728
1740
|
key: 1,
|
|
1729
1741
|
class: "sidebar-level-divider",
|
|
1730
1742
|
role: "separator"
|
|
1731
|
-
},
|
|
1743
|
+
}, Wi = {
|
|
1732
1744
|
key: 2,
|
|
1733
1745
|
class: "level-primary bottom-items"
|
|
1734
|
-
},
|
|
1746
|
+
}, zi = { class: "sidebar-footer" }, we = "_ungrouped", Gi = /* @__PURE__ */ ie({
|
|
1735
1747
|
__name: "AppSidebar",
|
|
1736
1748
|
props: {
|
|
1737
1749
|
topItems: {
|
|
@@ -1800,7 +1812,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1800
1812
|
"59c6ce92": a.zIndex,
|
|
1801
1813
|
bbad6fe2: d.value.height,
|
|
1802
1814
|
"4d9eb36d": d.value.top,
|
|
1803
|
-
"7d4233c1":
|
|
1815
|
+
"7d4233c1": T.value.marginTop,
|
|
1804
1816
|
"87d455f0": O.value,
|
|
1805
1817
|
"3fa34e2b": b.value.display,
|
|
1806
1818
|
"655fc57c": b.value.minHeight,
|
|
@@ -1815,29 +1827,29 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1815
1827
|
})), b = S(() => ({
|
|
1816
1828
|
display: !n.mobileHeaderVisible && n.mobileEnabled ? "none" : "flex",
|
|
1817
1829
|
minHeight: `${n.headerHeight}px`
|
|
1818
|
-
})),
|
|
1830
|
+
})), T = S(() => ({
|
|
1819
1831
|
marginTop: u.value ? `${n.headerHeight}px` : "0"
|
|
1820
1832
|
})), _ = S(() => ({
|
|
1821
1833
|
top: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : "0",
|
|
1822
1834
|
zIndex: n.mobileOverlayZIndex !== null ? n.mobileOverlayZIndex : n.zIndex > 1 ? n.zIndex - 1 : 1
|
|
1823
|
-
})),
|
|
1824
|
-
var g,
|
|
1835
|
+
})), B = (v) => xi(v).map((y) => {
|
|
1836
|
+
var g, Q, H;
|
|
1825
1837
|
if (y) {
|
|
1826
|
-
(!y.key || !((g = y.key) != null && g.trim())) && (y.key = String(y.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!y.testId || !((
|
|
1838
|
+
(!y.key || !((g = y.key) != null && g.trim())) && (y.key = String(y.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!y.testId || !((Q = y.testId) != null && Q.trim())) && (y.testId = String(y.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1827
1839
|
for (const X of y.items || [])
|
|
1828
1840
|
X.parentKey = y.key, (!X.testId || !((H = X.testId) != null && H.trim())) && (X.testId = String(X.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1829
1841
|
}
|
|
1830
1842
|
return y;
|
|
1831
|
-
}),
|
|
1843
|
+
}), x = S(() => n.topItems.length ? B(n.topItems) : []), P = S(() => n.bottomItems.length ? B(n.bottomItems) : []), A = (v = "") => v.trim().replace(" ", "").replace(/[^a-z0-9]+/gi, "-").toLowerCase(), j = S(() => {
|
|
1832
1844
|
var C;
|
|
1833
1845
|
const v = /* @__PURE__ */ new Map();
|
|
1834
1846
|
v.set(we, []);
|
|
1835
|
-
for (const y of
|
|
1847
|
+
for (const y of x.value) {
|
|
1836
1848
|
const g = y.group || we;
|
|
1837
1849
|
v.has(g) || v.set(g, []), (C = v.get(g)) == null || C.push(y);
|
|
1838
1850
|
}
|
|
1839
1851
|
return v;
|
|
1840
|
-
}), ne =
|
|
1852
|
+
}), ne = Fr(`max-width: ${Lr}`), K = (v = "") => {
|
|
1841
1853
|
if (v === we || !v.trim())
|
|
1842
1854
|
return null;
|
|
1843
1855
|
const C = {
|
|
@@ -1850,7 +1862,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1850
1862
|
}, z = (v) => {
|
|
1851
1863
|
var C;
|
|
1852
1864
|
return !!((C = K(v)) != null && C.collapsible);
|
|
1853
|
-
},
|
|
1865
|
+
}, ve = (v) => {
|
|
1854
1866
|
var C;
|
|
1855
1867
|
return !!((C = K(v)) != null && C.collapsed);
|
|
1856
1868
|
}, le = (v, C, y) => {
|
|
@@ -1859,7 +1871,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1859
1871
|
}, J = ae(n.open), q = (v) => {
|
|
1860
1872
|
var C, y;
|
|
1861
1873
|
J.value !== v && (J.value = v, r("toggle", v)), v ? (C = document == null ? void 0 : document.body) == null || C.classList.add("kong-ui-app-sidebar-open") : (y = document == null ? void 0 : document.body) == null || y.classList.remove("kong-ui-app-sidebar-open"), N.value = !1;
|
|
1862
|
-
},
|
|
1874
|
+
}, se = () => {
|
|
1863
1875
|
n.mobileOverlayCloseOnClick && q(!1);
|
|
1864
1876
|
}, N = ae(!1), G = (v) => {
|
|
1865
1877
|
N.value = !0, r("click", v), setTimeout(() => {
|
|
@@ -1873,9 +1885,9 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1873
1885
|
J.value && D.value !== (window == null ? void 0 : window.innerWidth) && (D.value = window == null ? void 0 : window.innerWidth, q(!1));
|
|
1874
1886
|
}, 200), D = ae(), l = ae(!1), f = ae(), m = () => {
|
|
1875
1887
|
l.value || (l.value = !0, clearTimeout(f.value), f.value = setTimeout(() => l.value = !1, 1300));
|
|
1876
|
-
},
|
|
1888
|
+
}, F = ae(null), R = S(() => J.value && n.mobileEnabled), M = async (v) => {
|
|
1877
1889
|
var C, y;
|
|
1878
|
-
v ? (await Ht(), await new Promise((g) => setTimeout(g, 300)), (C =
|
|
1890
|
+
v ? (await Ht(), await new Promise((g) => setTimeout(g, 300)), (C = F.value) == null || C.activate()) : (y = F.value) == null || y.deactivate();
|
|
1879
1891
|
};
|
|
1880
1892
|
Te(R, async (v) => {
|
|
1881
1893
|
v ? await M(!0) : await M(!1);
|
|
@@ -1890,8 +1902,8 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1890
1902
|
C.style.overflow = "scroll";
|
|
1891
1903
|
const g = document.createElement("div");
|
|
1892
1904
|
g.style.width = "100%", C.appendChild(g);
|
|
1893
|
-
const
|
|
1894
|
-
C.parentNode && C.parentNode.removeChild(C), y -
|
|
1905
|
+
const Q = g.offsetWidth;
|
|
1906
|
+
C.parentNode && C.parentNode.removeChild(C), y - Q === 0 && (O.value = "8px");
|
|
1895
1907
|
};
|
|
1896
1908
|
return Pe(async () => {
|
|
1897
1909
|
if (D.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", U), window.addEventListener("resize", m), n.groupConfig && ne.value)
|
|
@@ -1906,22 +1918,22 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1906
1918
|
console.log("groupConfig updated", v);
|
|
1907
1919
|
}), (v, C) => {
|
|
1908
1920
|
const y = he("KCollapse");
|
|
1909
|
-
return p(),
|
|
1910
|
-
J.value && a.mobileOverlay && a.mobileEnabled ? (p(),
|
|
1921
|
+
return p(), k(Ee, null, [
|
|
1922
|
+
J.value && a.mobileOverlay && a.mobileEnabled ? (p(), k("div", {
|
|
1911
1923
|
key: 0,
|
|
1912
1924
|
class: "kong-ui-app-sidebar-overlay",
|
|
1913
|
-
onClick:
|
|
1925
|
+
onClick: se
|
|
1914
1926
|
})) : $("", !0),
|
|
1915
|
-
Le(
|
|
1927
|
+
Le(fe(Fi), {
|
|
1916
1928
|
ref_key: "focusTrap",
|
|
1917
|
-
ref:
|
|
1929
|
+
ref: F,
|
|
1918
1930
|
active: !1,
|
|
1919
1931
|
"allow-outside-click": "",
|
|
1920
1932
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1921
1933
|
}, {
|
|
1922
1934
|
default: L(() => [
|
|
1923
|
-
|
|
1924
|
-
class:
|
|
1935
|
+
E("aside", {
|
|
1936
|
+
class: re(["kong-ui-app-sidebar", {
|
|
1925
1937
|
"sidebar-open": J.value,
|
|
1926
1938
|
"no-sidebar-header": !u.value,
|
|
1927
1939
|
"mobile-header-hidden": a.mobileEnabled && (!u.value || !a.mobileHeaderVisible),
|
|
@@ -1930,25 +1942,25 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1930
1942
|
}]),
|
|
1931
1943
|
tabindex: "-1"
|
|
1932
1944
|
}, [
|
|
1933
|
-
u.value ? (p(),
|
|
1945
|
+
u.value ? (p(), k("div", Mi, [
|
|
1934
1946
|
I(v.$slots, "header", {}, void 0, !0)
|
|
1935
1947
|
])) : $("", !0),
|
|
1936
|
-
|
|
1937
|
-
o.value ? (p(),
|
|
1948
|
+
E("div", Li, [
|
|
1949
|
+
o.value ? (p(), k("div", ji, [
|
|
1938
1950
|
I(v.$slots, "top", {}, void 0, !0)
|
|
1939
1951
|
])) : $("", !0),
|
|
1940
|
-
|
|
1941
|
-
j.value.size > 0 ? (p(!0),
|
|
1952
|
+
E("nav", Pi, [
|
|
1953
|
+
j.value.size > 0 ? (p(!0), k(Ee, { key: 0 }, pe(j.value, ([g, Q]) => (p(), W(y, {
|
|
1942
1954
|
key: g,
|
|
1943
|
-
class:
|
|
1955
|
+
class: re(["level-primary-group-collapse", {
|
|
1944
1956
|
"not-collapsible": !z(g),
|
|
1945
1957
|
ungrouped: g === we
|
|
1946
1958
|
}]),
|
|
1947
1959
|
"data-testid": g === we ? "level-primary-group-collapse-ungrouped" : `level-primary-group-collapse-${g}`,
|
|
1948
|
-
"model-value": z(g) &&
|
|
1960
|
+
"model-value": z(g) && ve(g) || !1
|
|
1949
1961
|
}, {
|
|
1950
1962
|
trigger: L(({ isCollapsed: H, toggle: X }) => [
|
|
1951
|
-
(p(), W(Fe(z(g) ?
|
|
1963
|
+
(p(), W(Fe(z(g) ? fe(jn) : "div"), {
|
|
1952
1964
|
appearance: z(g) ? "none" : void 0,
|
|
1953
1965
|
class: "level-primary-group-collapse-trigger",
|
|
1954
1966
|
onClick: (ce) => z(g) ? le(g, H, X) : void 0
|
|
@@ -1956,19 +1968,19 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1956
1968
|
default: L(() => {
|
|
1957
1969
|
var ce;
|
|
1958
1970
|
return [
|
|
1959
|
-
g !== we ? (p(),
|
|
1971
|
+
g !== we ? (p(), k("div", {
|
|
1960
1972
|
key: 0,
|
|
1961
|
-
id: `level-primary-group-${
|
|
1973
|
+
id: `level-primary-group-${A(g)}`,
|
|
1962
1974
|
class: "level-primary-group-name",
|
|
1963
1975
|
"data-testid": "level-primary-group-name",
|
|
1964
1976
|
role: "presentation"
|
|
1965
|
-
},
|
|
1966
|
-
z(g) ? (p(), W(Fe(H ?
|
|
1977
|
+
}, Y(((ce = K(g)) == null ? void 0 : ce.label) || g), 9, Ki)) : $("", !0),
|
|
1978
|
+
z(g) ? (p(), W(Fe(H ? fe(ta) : fe(xn)), {
|
|
1967
1979
|
key: 1,
|
|
1968
1980
|
class: "level-primary-group-collapse-icon",
|
|
1969
|
-
color:
|
|
1981
|
+
color: fe(Pr),
|
|
1970
1982
|
"data-testid": "level-primary-group-collapse-icon",
|
|
1971
|
-
size:
|
|
1983
|
+
size: fe(jr)
|
|
1972
1984
|
}, null, 8, ["color", "size"])) : $("", !0)
|
|
1973
1985
|
];
|
|
1974
1986
|
}),
|
|
@@ -1976,11 +1988,11 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1976
1988
|
}, 1032, ["appearance", "onClick"]))
|
|
1977
1989
|
]),
|
|
1978
1990
|
default: L(() => [
|
|
1979
|
-
|
|
1980
|
-
"aria-labelledby": g !== we ? `level-primary-group-${
|
|
1991
|
+
E("ul", {
|
|
1992
|
+
"aria-labelledby": g !== we ? `level-primary-group-${A(g)}` : void 0,
|
|
1981
1993
|
class: "level-primary top-items"
|
|
1982
1994
|
}, [
|
|
1983
|
-
(p(!0),
|
|
1995
|
+
(p(!0), k(Ee, null, pe(Q, (H) => (p(), W(zt, {
|
|
1984
1996
|
key: H.name,
|
|
1985
1997
|
item: H,
|
|
1986
1998
|
onClick: G
|
|
@@ -1998,13 +2010,13 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1998
2010
|
key: "0"
|
|
1999
2011
|
} : void 0
|
|
2000
2012
|
]), 1032, ["item"]))), 128))
|
|
2001
|
-
], 8,
|
|
2013
|
+
], 8, Zi)
|
|
2002
2014
|
]),
|
|
2003
2015
|
_: 2
|
|
2004
2016
|
}, 1032, ["class", "data-testid", "model-value"]))), 128)) : $("", !0),
|
|
2005
|
-
j.value.size > 0 && P.value.length ? (p(),
|
|
2006
|
-
P.value.length ? (p(),
|
|
2007
|
-
(p(!0),
|
|
2017
|
+
j.value.size > 0 && P.value.length ? (p(), k("div", Hi)) : $("", !0),
|
|
2018
|
+
P.value.length ? (p(), k("ul", Wi, [
|
|
2019
|
+
(p(!0), k(Ee, null, pe(P.value, (g) => (p(), W(zt, {
|
|
2008
2020
|
key: g.name,
|
|
2009
2021
|
item: g,
|
|
2010
2022
|
onClick: G
|
|
@@ -2017,7 +2029,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2017
2029
|
])) : $("", !0)
|
|
2018
2030
|
])
|
|
2019
2031
|
]),
|
|
2020
|
-
|
|
2032
|
+
E("div", zi, [
|
|
2021
2033
|
I(v.$slots, "footer", {}, void 0, !0)
|
|
2022
2034
|
])
|
|
2023
2035
|
], 2)
|
|
@@ -2027,7 +2039,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2027
2039
|
], 64);
|
|
2028
2040
|
};
|
|
2029
2041
|
}
|
|
2030
|
-
}),
|
|
2042
|
+
}), Ui = /* @__PURE__ */ oe(Gi, [["__scopeId", "data-v-857560c7"]]), Vi = ["aria-label"], qi = /* @__PURE__ */ ie({
|
|
2031
2043
|
__name: "SidebarToggle",
|
|
2032
2044
|
props: {
|
|
2033
2045
|
active: {
|
|
@@ -2042,26 +2054,26 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2042
2054
|
};
|
|
2043
2055
|
return Te(() => n.active, (o) => {
|
|
2044
2056
|
s.value = o;
|
|
2045
|
-
}), (o, d) => (p(),
|
|
2057
|
+
}), (o, d) => (p(), k("a", {
|
|
2046
2058
|
"aria-haspopup": "true",
|
|
2047
2059
|
"aria-label": s.value ? "Close Main Menu" : "Open Main Menu",
|
|
2048
|
-
class:
|
|
2060
|
+
class: re(["sidebar-menu-toggle", { active: s.value }]),
|
|
2049
2061
|
href: "#",
|
|
2050
2062
|
role: "button",
|
|
2051
2063
|
onClick: Rn(u, ["prevent"])
|
|
2052
2064
|
}, d[0] || (d[0] = [
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
]), 10,
|
|
2065
|
+
E("span", { class: "line" }, null, -1),
|
|
2066
|
+
E("span", { class: "line" }, null, -1),
|
|
2067
|
+
E("span", { class: "line" }, null, -1)
|
|
2068
|
+
]), 10, Vi));
|
|
2057
2069
|
}
|
|
2058
|
-
}),
|
|
2070
|
+
}), Xi = /* @__PURE__ */ oe(qi, [["__scopeId", "data-v-cbb41bbd"]]), Yi = { id: "kong-ui-app-layout-notification" }, Qi = { class: "mobile-logo" }, Ji = {
|
|
2059
2071
|
key: 0,
|
|
2060
2072
|
class: "navbar-logo"
|
|
2061
|
-
},
|
|
2073
|
+
}, eo = {
|
|
2062
2074
|
class: "kong-ui-app-layout-main",
|
|
2063
2075
|
"data-testid": "kong-ui-app-layout-main"
|
|
2064
|
-
},
|
|
2076
|
+
}, to = { class: "kong-ui-app-layout-content" }, ao = { class: "kong-ui-app-layout-content-inner" }, no = /* @__PURE__ */ ie({
|
|
2065
2077
|
__name: "AppLayout",
|
|
2066
2078
|
props: {
|
|
2067
2079
|
hideDefaultSlot: {
|
|
@@ -2106,7 +2118,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2106
2118
|
"26cbc8ac": K.value,
|
|
2107
2119
|
"4eb9dde2": z.value,
|
|
2108
2120
|
"5f0811fa": ne.value,
|
|
2109
|
-
"37ad0844":
|
|
2121
|
+
"37ad0844": ve.value,
|
|
2110
2122
|
"999c315e": le.value
|
|
2111
2123
|
}));
|
|
2112
2124
|
const r = a, n = t, s = je(), u = qe({
|
|
@@ -2125,57 +2137,57 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2125
2137
|
bottomItems: S(() => r.sidebarBottomItems),
|
|
2126
2138
|
open: S(() => r.sidebarOpen),
|
|
2127
2139
|
hidden: S(() => r.sidebarHidden)
|
|
2128
|
-
}),
|
|
2140
|
+
}), T = (N) => {
|
|
2129
2141
|
n("sidebar-click", N);
|
|
2130
|
-
}, _ = ae(!1),
|
|
2142
|
+
}, _ = ae(!1), B = (N) => {
|
|
2131
2143
|
_.value = N;
|
|
2132
2144
|
};
|
|
2133
2145
|
Jt(() => {
|
|
2134
|
-
_.value =
|
|
2146
|
+
_.value = Bn(b, "open").value || !1;
|
|
2135
2147
|
});
|
|
2136
|
-
const
|
|
2137
|
-
if (N ||
|
|
2138
|
-
|
|
2148
|
+
const x = ae(0), P = ae(60), A = ae(0), j = S(() => d.hidden ? A.value : P.value + A.value), ne = S(() => r.theme === "light" ? Rr : Br), K = S(() => r.theme === "light" ? Nr : Dr), z = S(() => r.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), ve = S(() => `${j.value}px`), le = S(() => b.hidden || d.hidden ? xr : Mr), { debounce: J } = ca(), q = J((N = !1) => {
|
|
2149
|
+
if (N || x.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
2150
|
+
x.value = window == null ? void 0 : window.innerWidth;
|
|
2139
2151
|
const G = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2140
|
-
G && (
|
|
2152
|
+
G && (A.value = G.offsetHeight);
|
|
2141
2153
|
}
|
|
2142
|
-
}, 200),
|
|
2143
|
-
return Te(
|
|
2154
|
+
}, 200), se = ae();
|
|
2155
|
+
return Te(A, (N) => {
|
|
2144
2156
|
n("update:topOffset", N || 0);
|
|
2145
2157
|
}, { immediate: !0 }), Pe(() => {
|
|
2146
2158
|
var G, Z;
|
|
2147
|
-
(G = document == null ? void 0 : document.body) == null || G.classList.add("kong-ui-app-layout-body"), (Z = document == null ? void 0 : document.documentElement) == null || Z.classList.add("kong-ui-app-layout-html"),
|
|
2159
|
+
(G = document == null ? void 0 : document.body) == null || G.classList.add("kong-ui-app-layout-body"), (Z = document == null ? void 0 : document.documentElement) == null || Z.classList.add("kong-ui-app-layout-html"), x.value = window == null ? void 0 : window.innerWidth, q(!0);
|
|
2148
2160
|
const N = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2149
|
-
N && (
|
|
2161
|
+
N && (se.value = new ResizeObserver((U) => {
|
|
2150
2162
|
window.requestAnimationFrame(() => {
|
|
2151
2163
|
if (!(!Array.isArray(U) || !U.length))
|
|
2152
2164
|
for (const D of U) {
|
|
2153
2165
|
const l = D.contentRect.height;
|
|
2154
|
-
|
|
2166
|
+
A.value !== l && (A.value = l);
|
|
2155
2167
|
}
|
|
2156
2168
|
});
|
|
2157
|
-
}),
|
|
2169
|
+
}), se.value.observe(N)), window.addEventListener("resize", q);
|
|
2158
2170
|
}), ea(() => {
|
|
2159
|
-
|
|
2160
|
-
}), (N, G) => (p(),
|
|
2161
|
-
class:
|
|
2171
|
+
se.value && se.value.disconnect(), window.removeEventListener("resize", q);
|
|
2172
|
+
}), (N, G) => (p(), k("div", {
|
|
2173
|
+
class: re(["kong-ui-app-layout", [
|
|
2162
2174
|
{ "navbar-hidden": d.hidden },
|
|
2163
2175
|
{ "sidebar-hidden": b.hidden }
|
|
2164
2176
|
]])
|
|
2165
2177
|
}, [
|
|
2166
|
-
|
|
2178
|
+
E("div", Yi, [
|
|
2167
2179
|
I(N.$slots, "notification", {}, void 0, !0)
|
|
2168
2180
|
]),
|
|
2169
|
-
d.hidden ? $("", !0) : (p(), W(
|
|
2181
|
+
d.hidden ? $("", !0) : (p(), W(gr, {
|
|
2170
2182
|
key: String(b.hidden),
|
|
2171
2183
|
"left-offset": b.hidden ? 0 : void 0,
|
|
2172
|
-
"top-offset":
|
|
2184
|
+
"top-offset": A.value
|
|
2173
2185
|
}, Me({
|
|
2174
2186
|
"mobile-sidebar-toggle": L(() => [
|
|
2175
|
-
b.hidden ? $("", !0) : (p(), W(
|
|
2187
|
+
b.hidden ? $("", !0) : (p(), W(Xi, {
|
|
2176
2188
|
key: 0,
|
|
2177
2189
|
active: _.value,
|
|
2178
|
-
onToggle:
|
|
2190
|
+
onToggle: B
|
|
2179
2191
|
}, null, 8, ["active"]))
|
|
2180
2192
|
]),
|
|
2181
2193
|
_: 2
|
|
@@ -2183,7 +2195,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2183
2195
|
u.navbarMobileLogo ? {
|
|
2184
2196
|
name: "mobile-logo",
|
|
2185
2197
|
fn: L(() => [
|
|
2186
|
-
|
|
2198
|
+
E("div", Qi, [
|
|
2187
2199
|
I(N.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
2188
2200
|
])
|
|
2189
2201
|
]),
|
|
@@ -2192,7 +2204,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2192
2204
|
u.navbarLogo ? {
|
|
2193
2205
|
name: "logo",
|
|
2194
2206
|
fn: L(() => [
|
|
2195
|
-
b.hidden ? (p(),
|
|
2207
|
+
b.hidden ? (p(), k("div", Ji, [
|
|
2196
2208
|
I(N.$slots, "navbar-logo", {}, void 0, !0)
|
|
2197
2209
|
])) : $("", !0)
|
|
2198
2210
|
]),
|
|
@@ -2220,7 +2232,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2220
2232
|
key: "4"
|
|
2221
2233
|
} : void 0
|
|
2222
2234
|
]), 1032, ["left-offset", "top-offset"])),
|
|
2223
|
-
b.hidden ? $("", !0) : (p(), W(
|
|
2235
|
+
b.hidden ? $("", !0) : (p(), W(Ui, {
|
|
2224
2236
|
key: 1,
|
|
2225
2237
|
"bottom-items": b.bottomItems,
|
|
2226
2238
|
"group-config": a.groupConfig,
|
|
@@ -2230,9 +2242,9 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2230
2242
|
"mobile-top-offset": j.value,
|
|
2231
2243
|
open: _.value,
|
|
2232
2244
|
"top-items": b.topItems,
|
|
2233
|
-
"top-offset":
|
|
2234
|
-
onClick:
|
|
2235
|
-
onToggle:
|
|
2245
|
+
"top-offset": A.value,
|
|
2246
|
+
onClick: T,
|
|
2247
|
+
onToggle: B,
|
|
2236
2248
|
onToggleCollapse: G[0] || (G[0] = (Z, U) => n("toggle-collapse", Z, U))
|
|
2237
2249
|
}, Me({ _: 2 }, [
|
|
2238
2250
|
u.sidebarHeader ? {
|
|
@@ -2269,10 +2281,10 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2269
2281
|
])
|
|
2270
2282
|
}))
|
|
2271
2283
|
]), 1032, ["bottom-items", "group-config", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
G[1] || (G[1] =
|
|
2284
|
+
E("main", eo, [
|
|
2285
|
+
E("div", to, [
|
|
2286
|
+
E("div", ao, [
|
|
2287
|
+
G[1] || (G[1] = E("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2276
2288
|
I(N.$slots, "app-error", {}, void 0, !0),
|
|
2277
2289
|
o.value ? $("", !0) : I(N.$slots, "default", { key: 0 }, void 0, !0)
|
|
2278
2290
|
])
|
|
@@ -2280,27 +2292,27 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2280
2292
|
])
|
|
2281
2293
|
], 2));
|
|
2282
2294
|
}
|
|
2283
|
-
}),
|
|
2295
|
+
}), ro = /* @__PURE__ */ oe(no, [["__scopeId", "data-v-a92b50c0"]]), io = { class: "kong-ui-app-page-header" }, oo = {
|
|
2284
2296
|
key: 0,
|
|
2285
2297
|
class: "page-header-breadcrumbs",
|
|
2286
2298
|
"data-testid": "page-header-breadcrumbs"
|
|
2287
|
-
},
|
|
2299
|
+
}, so = { class: "page-header-title-section" }, lo = { class: "page-header-title-wrapper" }, co = {
|
|
2288
2300
|
key: 0,
|
|
2289
2301
|
class: "page-header-title-before",
|
|
2290
2302
|
"data-testid": "page-header-title-before"
|
|
2291
|
-
},
|
|
2303
|
+
}, uo = ["title"], fo = {
|
|
2292
2304
|
key: 1,
|
|
2293
2305
|
class: "page-header-title-after",
|
|
2294
2306
|
"data-testid": "page-header-title-after"
|
|
2295
|
-
},
|
|
2307
|
+
}, vo = {
|
|
2296
2308
|
key: 0,
|
|
2297
2309
|
class: "page-header-actions",
|
|
2298
2310
|
"data-testid": "page-header-actions"
|
|
2299
|
-
},
|
|
2311
|
+
}, bo = {
|
|
2300
2312
|
key: 1,
|
|
2301
2313
|
class: "page-header-section-below",
|
|
2302
2314
|
"data-testid": "page-header-section-below"
|
|
2303
|
-
},
|
|
2315
|
+
}, po = /* @__PURE__ */ ie({
|
|
2304
2316
|
__name: "AppPageHeader",
|
|
2305
2317
|
props: {
|
|
2306
2318
|
title: {
|
|
@@ -2320,8 +2332,8 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2320
2332
|
}), s = S(() => Object.keys(r).filter((u) => u.startsWith("icon-")));
|
|
2321
2333
|
return (u, o) => {
|
|
2322
2334
|
const d = he("KBreadcrumbs");
|
|
2323
|
-
return p(),
|
|
2324
|
-
n.value ? (p(),
|
|
2335
|
+
return p(), k("div", io, [
|
|
2336
|
+
n.value ? (p(), k("div", oo, [
|
|
2325
2337
|
Le(d, {
|
|
2326
2338
|
"item-max-width": "150",
|
|
2327
2339
|
items: a.breadcrumbs
|
|
@@ -2334,39 +2346,39 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2334
2346
|
}))
|
|
2335
2347
|
]), 1032, ["items"])
|
|
2336
2348
|
])) : $("", !0),
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
u.$slots["title-before"] ? (p(),
|
|
2349
|
+
E("div", so, [
|
|
2350
|
+
E("div", lo, [
|
|
2351
|
+
u.$slots["title-before"] ? (p(), k("div", co, [
|
|
2340
2352
|
I(u.$slots, "title-before", {}, void 0, !0)
|
|
2341
2353
|
])) : $("", !0),
|
|
2342
|
-
|
|
2354
|
+
E("h1", {
|
|
2343
2355
|
class: "page-header-title",
|
|
2344
2356
|
"data-testid": "page-header-title",
|
|
2345
2357
|
title: a.title
|
|
2346
|
-
},
|
|
2347
|
-
u.$slots["title-after"] ? (p(),
|
|
2358
|
+
}, Y(a.title), 9, uo),
|
|
2359
|
+
u.$slots["title-after"] ? (p(), k("div", fo, [
|
|
2348
2360
|
I(u.$slots, "title-after", {}, void 0, !0)
|
|
2349
2361
|
])) : $("", !0)
|
|
2350
2362
|
]),
|
|
2351
|
-
u.$slots.actions ? (p(),
|
|
2363
|
+
u.$slots.actions ? (p(), k("div", vo, [
|
|
2352
2364
|
I(u.$slots, "actions", {}, void 0, !0)
|
|
2353
2365
|
])) : $("", !0)
|
|
2354
2366
|
]),
|
|
2355
|
-
u.$slots.below ? (p(),
|
|
2367
|
+
u.$slots.below ? (p(), k("div", bo, [
|
|
2356
2368
|
I(u.$slots, "below", {}, void 0, !0)
|
|
2357
2369
|
])) : $("", !0)
|
|
2358
2370
|
]);
|
|
2359
2371
|
};
|
|
2360
2372
|
}
|
|
2361
|
-
}),
|
|
2373
|
+
}), Oo = /* @__PURE__ */ oe(po, [["__scopeId", "data-v-204b7f98"]]), ho = { class: "app-page-info-section-default-header" }, mo = {
|
|
2362
2374
|
key: 1,
|
|
2363
2375
|
class: "app-page-info-section-description",
|
|
2364
2376
|
"data-testid": "app-page-info-section-description"
|
|
2365
|
-
},
|
|
2377
|
+
}, go = {
|
|
2366
2378
|
key: 0,
|
|
2367
2379
|
class: "app-page-info-section-content",
|
|
2368
2380
|
"data-testid": "app-page-info-section-content"
|
|
2369
|
-
},
|
|
2381
|
+
}, yo = /* @__PURE__ */ ie({
|
|
2370
2382
|
__name: "AppPageInfoSection",
|
|
2371
2383
|
props: {
|
|
2372
2384
|
collapsible: {
|
|
@@ -2384,7 +2396,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2384
2396
|
titleTag: {
|
|
2385
2397
|
type: String,
|
|
2386
2398
|
default: "div",
|
|
2387
|
-
validator: (a) =>
|
|
2399
|
+
validator: (a) => Pn.includes(a)
|
|
2388
2400
|
}
|
|
2389
2401
|
},
|
|
2390
2402
|
setup(a) {
|
|
@@ -2399,21 +2411,21 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2399
2411
|
}, {
|
|
2400
2412
|
default: L(() => [
|
|
2401
2413
|
I(t.$slots, "header", {}, () => [
|
|
2402
|
-
|
|
2414
|
+
E("div", ho, [
|
|
2403
2415
|
a.title ? (p(), W(Fe(a.titleTag), {
|
|
2404
2416
|
key: 0,
|
|
2405
2417
|
class: "app-page-info-section-title",
|
|
2406
2418
|
"data-testid": "app-page-info-section-title"
|
|
2407
2419
|
}, {
|
|
2408
2420
|
default: L(() => [
|
|
2409
|
-
|
|
2421
|
+
xe(Y(a.title), 1)
|
|
2410
2422
|
]),
|
|
2411
2423
|
_: 1
|
|
2412
2424
|
})) : $("", !0),
|
|
2413
|
-
a.description ? (p(),
|
|
2425
|
+
a.description ? (p(), k("div", mo, Y(a.description), 1)) : $("", !0)
|
|
2414
2426
|
])
|
|
2415
2427
|
]),
|
|
2416
|
-
a.collapsible ? (p(), W(
|
|
2428
|
+
a.collapsible ? (p(), W(fe(ta), {
|
|
2417
2429
|
key: 0,
|
|
2418
2430
|
class: "app-page-info-section-chevron-icon",
|
|
2419
2431
|
decorative: ""
|
|
@@ -2421,29 +2433,52 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2421
2433
|
]),
|
|
2422
2434
|
_: 3
|
|
2423
2435
|
})),
|
|
2424
|
-
t.$slots.default ? (p(),
|
|
2436
|
+
t.$slots.default ? (p(), k("div", go, [
|
|
2425
2437
|
I(t.$slots, "default")
|
|
2426
2438
|
])) : $("", !0)
|
|
2427
2439
|
]),
|
|
2428
2440
|
_: 3
|
|
2429
2441
|
}));
|
|
2430
2442
|
}
|
|
2431
|
-
}),
|
|
2443
|
+
}), Eo = /* @__PURE__ */ oe(yo, [["__scopeId", "data-v-62f17e32"]]), wo = /* @__PURE__ */ ie({
|
|
2444
|
+
__name: "NewBadge",
|
|
2445
|
+
props: {
|
|
2446
|
+
large: {
|
|
2447
|
+
type: Boolean,
|
|
2448
|
+
default: !1
|
|
2449
|
+
},
|
|
2450
|
+
inverse: {
|
|
2451
|
+
type: Boolean,
|
|
2452
|
+
default: !1
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
setup(a) {
|
|
2456
|
+
const { i18n: { t } } = Di();
|
|
2457
|
+
return (r, n) => (p(), k("div", {
|
|
2458
|
+
class: re(["new-badge-wrapper", { inverse: a.inverse }])
|
|
2459
|
+
}, [
|
|
2460
|
+
E("div", {
|
|
2461
|
+
class: re(["new-badge", { large: a.large }])
|
|
2462
|
+
}, Y(fe(t)("new")), 3)
|
|
2463
|
+
], 2));
|
|
2464
|
+
}
|
|
2465
|
+
}), Ao = /* @__PURE__ */ oe(wo, [["__scopeId", "data-v-a90b04c7"]]), Fo = {
|
|
2432
2466
|
// Customize Vue plugin options as desired
|
|
2433
2467
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2434
2468
|
install: (a, t = {}) => {
|
|
2435
|
-
a.component(t.name || "AppLayout",
|
|
2469
|
+
a.component(t.name || "AppLayout", ro);
|
|
2436
2470
|
}
|
|
2437
2471
|
};
|
|
2438
2472
|
export {
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2473
|
+
Co as AccountDropdown,
|
|
2474
|
+
Io as AppAboutSection,
|
|
2475
|
+
$o as AppError,
|
|
2476
|
+
ro as AppLayout,
|
|
2477
|
+
gr as AppNavbar,
|
|
2478
|
+
Oo as AppPageHeader,
|
|
2479
|
+
Eo as AppPageInfoSection,
|
|
2480
|
+
Ui as AppSidebar,
|
|
2481
|
+
Ao as NewBadge,
|
|
2482
|
+
Xi as SidebarToggle,
|
|
2483
|
+
Fo as default
|
|
2449
2484
|
};
|