@kong-ui-public/app-layout 4.8.0 → 4.8.1-pr.2501.578ae0659.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 +804 -780
- package/dist/app-layout.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/components/AppLayout.vue.d.ts +5 -3
- package/dist/types/components/AppLayout.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts +5 -3
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarItem.vue.d.ts +3 -1
- package/dist/types/components/sidebar/SidebarItem.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/app-layout.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronRightIcon as ta, ChevronDownIcon as
|
|
1
|
+
import { defineComponent as ie, resolveComponent as pe, createBlock as z, openBlock as p, withCtx as L, renderSlot as C, createElementBlock as k, Fragment as $e, renderList as be, normalizeClass as se, createTextVNode as Le, toDisplayString as Y, computed as S, createSlots as Me, createVNode as Ae, createCommentVNode as I, 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 Fe, getCurrentScope as On, onScopeDispose as En, shallowRef as Xe, watchEffect as Jt, toValue as Oe, unref as ve, resolveDynamicComponent as Ee, withKeys as An, ref as ee, 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
3
|
import { KButton as Ln, HeaderTags as Mn } from "@kong/kongponents";
|
|
4
|
-
const jn = /* @__PURE__ */
|
|
4
|
+
const jn = /* @__PURE__ */ ie({
|
|
5
5
|
__name: "AccountDropdown",
|
|
6
6
|
props: {
|
|
7
7
|
options: {
|
|
@@ -21,25 +21,25 @@ const jn = /* @__PURE__ */ re({
|
|
|
21
21
|
},
|
|
22
22
|
setup(a) {
|
|
23
23
|
return (t, r) => {
|
|
24
|
-
const n =
|
|
25
|
-
return p(),
|
|
24
|
+
const n = pe("KDropdownItem"), s = pe("KDropdown");
|
|
25
|
+
return p(), z(s, {
|
|
26
26
|
class: "account-dropdown",
|
|
27
27
|
"kpop-attributes": { placement: "bottom-end" },
|
|
28
28
|
"trigger-text": a.userInitials,
|
|
29
29
|
width: a.width
|
|
30
30
|
}, {
|
|
31
|
-
items:
|
|
31
|
+
items: L(({ handleSelection: c }) => [
|
|
32
32
|
C(t.$slots, "default", {}, () => [
|
|
33
|
-
(p(!0),
|
|
33
|
+
(p(!0), k($e, null, be(a.options, (o) => (p(), z(n, {
|
|
34
34
|
key: o.value,
|
|
35
|
-
class:
|
|
35
|
+
class: se({ "has-divider": o.hasDivider }),
|
|
36
36
|
"data-testid": "select-" + o.value,
|
|
37
37
|
"has-divider": o.hasDivider,
|
|
38
|
-
onClick: (
|
|
38
|
+
onClick: (f) => c(o)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: L(() => [
|
|
41
41
|
C(t.$slots, "default", { option: o }, () => [
|
|
42
|
-
|
|
42
|
+
Le(Y(o.label), 1)
|
|
43
43
|
], !0)
|
|
44
44
|
]),
|
|
45
45
|
_: 2
|
|
@@ -50,12 +50,12 @@ const jn = /* @__PURE__ */ re({
|
|
|
50
50
|
}, 8, ["trigger-text", "width"]);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), oe = (a, t) => {
|
|
54
54
|
const r = a.__vccOpts || a;
|
|
55
55
|
for (const [n, s] of t)
|
|
56
56
|
r[n] = s;
|
|
57
57
|
return r;
|
|
58
|
-
},
|
|
58
|
+
}, yo = /* @__PURE__ */ oe(jn, [["__scopeId", "data-v-b33191a2"]]), Pn = {
|
|
59
59
|
class: "about-section-title",
|
|
60
60
|
"data-testid": "about-section-title"
|
|
61
61
|
}, Kn = { class: "about-section-header-end" }, Zn = {
|
|
@@ -91,7 +91,7 @@ const jn = /* @__PURE__ */ re({
|
|
|
91
91
|
key: 3,
|
|
92
92
|
class: "about-divider-section",
|
|
93
93
|
"data-testid": "about-divider-section"
|
|
94
|
-
}, Qn = /* @__PURE__ */
|
|
94
|
+
}, Qn = /* @__PURE__ */ ie({
|
|
95
95
|
__name: "AppAboutSection",
|
|
96
96
|
props: {
|
|
97
97
|
title: { default: "" },
|
|
@@ -105,40 +105,40 @@ const jn = /* @__PURE__ */ re({
|
|
|
105
105
|
setup(a) {
|
|
106
106
|
const t = a, r = S(() => !!t.modified && t.modified !== t.created);
|
|
107
107
|
return (n, s) => {
|
|
108
|
-
const
|
|
109
|
-
return p(),
|
|
108
|
+
const c = pe("KSkeletonBox"), o = pe("KCard");
|
|
109
|
+
return p(), z(o, {
|
|
110
110
|
class: "kong-ui-app-about-section",
|
|
111
111
|
"title-tag": "h2"
|
|
112
|
-
},
|
|
113
|
-
default:
|
|
114
|
-
n.isLoading ? (p(),
|
|
115
|
-
|
|
112
|
+
}, Me({
|
|
113
|
+
default: L(() => [
|
|
114
|
+
n.isLoading ? (p(), k("div", Gn, [
|
|
115
|
+
Ae(c, {
|
|
116
116
|
height: "2",
|
|
117
117
|
width: "100"
|
|
118
118
|
}),
|
|
119
|
-
|
|
119
|
+
Ae(c, {
|
|
120
120
|
height: "2",
|
|
121
121
|
width: "100"
|
|
122
122
|
})
|
|
123
|
-
])) : (p(),
|
|
124
|
-
n.description ? (p(),
|
|
125
|
-
n.$slots.default ? (p(),
|
|
123
|
+
])) : (p(), k("div", Un, [
|
|
124
|
+
n.description ? (p(), k("p", Vn, Y(n.description), 1)) : I("", !0),
|
|
125
|
+
n.$slots.default ? (p(), k("div", qn, [
|
|
126
126
|
C(n.$slots, "default", {}, void 0, !0)
|
|
127
|
-
])) :
|
|
128
|
-
n.$slots["divider-section"] ? (p(),
|
|
129
|
-
n.$slots["divider-section"] ? (p(),
|
|
127
|
+
])) : I("", !0),
|
|
128
|
+
n.$slots["divider-section"] ? (p(), k("hr", Xn)) : I("", !0),
|
|
129
|
+
n.$slots["divider-section"] ? (p(), k("div", Yn, [
|
|
130
130
|
C(n.$slots, "divider-section", {}, void 0, !0)
|
|
131
|
-
])) :
|
|
131
|
+
])) : I("", !0)
|
|
132
132
|
]))
|
|
133
133
|
]),
|
|
134
134
|
_: 2
|
|
135
135
|
}, [
|
|
136
136
|
n.$slots.title || n.title ? {
|
|
137
137
|
name: "title",
|
|
138
|
-
fn:
|
|
138
|
+
fn: L(() => [
|
|
139
139
|
E("span", Pn, [
|
|
140
140
|
C(n.$slots, "title", {}, () => [
|
|
141
|
-
|
|
141
|
+
Le(Y(n.title), 1)
|
|
142
142
|
], !0)
|
|
143
143
|
])
|
|
144
144
|
]),
|
|
@@ -146,19 +146,19 @@ const jn = /* @__PURE__ */ re({
|
|
|
146
146
|
} : void 0,
|
|
147
147
|
n.$slots.actions || n.created || n.modified ? {
|
|
148
148
|
name: "actions",
|
|
149
|
-
fn:
|
|
149
|
+
fn: L(() => [
|
|
150
150
|
E("div", Kn, [
|
|
151
|
-
n.created || n.modified ? (p(),
|
|
151
|
+
n.created || n.modified ? (p(), k("div", {
|
|
152
152
|
key: 0,
|
|
153
|
-
class:
|
|
153
|
+
class: se(["about-section-timestamps", { "has-actions": n.$slots.actions }])
|
|
154
154
|
}, [
|
|
155
|
-
n.created ? (p(),
|
|
156
|
-
n.created && r.value ? (p(),
|
|
157
|
-
r.value ? (p(),
|
|
158
|
-
], 2)) :
|
|
159
|
-
n.$slots.actions ? (p(),
|
|
155
|
+
n.created ? (p(), k("span", Zn, Y(n.createdLabel) + ": " + Y(n.created), 1)) : I("", !0),
|
|
156
|
+
n.created && r.value ? (p(), k("span", Hn, "->")) : I("", !0),
|
|
157
|
+
r.value ? (p(), k("span", Wn, Y(n.modifiedLabel) + ": " + Y(n.modified), 1)) : I("", !0)
|
|
158
|
+
], 2)) : I("", !0),
|
|
159
|
+
n.$slots.actions ? (p(), k("div", zn, [
|
|
160
160
|
C(n.$slots, "actions", {}, void 0, !0)
|
|
161
|
-
])) :
|
|
161
|
+
])) : I("", !0)
|
|
162
162
|
])
|
|
163
163
|
]),
|
|
164
164
|
key: "1"
|
|
@@ -166,40 +166,40 @@ const jn = /* @__PURE__ */ re({
|
|
|
166
166
|
]), 1024);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
169
|
+
}), wo = /* @__PURE__ */ oe(Qn, [["__scopeId", "data-v-f5864a9c"]]), Jn = {}, er = {
|
|
170
170
|
fill: "none",
|
|
171
171
|
height: "130",
|
|
172
172
|
width: "130",
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg"
|
|
174
174
|
};
|
|
175
175
|
function tr(a, t) {
|
|
176
|
-
return p(),
|
|
176
|
+
return p(), k("svg", er, t[0] || (t[0] = [
|
|
177
177
|
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
178
|
]));
|
|
179
179
|
}
|
|
180
|
-
const ar = /* @__PURE__ */
|
|
180
|
+
const ar = /* @__PURE__ */ oe(Jn, [["render", tr]]), nr = { class: "kong-ui-app-error" }, rr = { class: "banana-icon" }, ir = { class: "kong-ui-app-error-content" }, or = /* @__PURE__ */ ie({
|
|
181
181
|
__name: "AppError",
|
|
182
182
|
setup(a) {
|
|
183
|
-
return (t, r) => (p(),
|
|
183
|
+
return (t, r) => (p(), k("section", nr, [
|
|
184
184
|
E("div", rr, [
|
|
185
|
-
|
|
185
|
+
Ae(ar)
|
|
186
186
|
]),
|
|
187
187
|
E("div", ir, [
|
|
188
188
|
C(t.$slots, "default", {}, () => [
|
|
189
189
|
r[0] || (r[0] = E("h2", null, "An unexpected error has occurred", -1)),
|
|
190
190
|
r[1] || (r[1] = E("p", null, [
|
|
191
|
-
|
|
191
|
+
Le("Go back to the previous page or "),
|
|
192
192
|
E("a", { href: "/" }, "return home"),
|
|
193
|
-
|
|
193
|
+
Le(".")
|
|
194
194
|
], -1))
|
|
195
195
|
], !0)
|
|
196
196
|
])
|
|
197
197
|
]));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), ko = /* @__PURE__ */ oe(or, [["__scopeId", "data-v-b6d8dc55"]]), sr = { class: "kong-ui-app-navbar" }, lr = { class: "header-content" }, cr = { class: "mobile-header-left" }, ur = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "app-navbar-logo"
|
|
202
|
-
}, dr = { class: "navbar-content" }, fr = { class: "navbar-content-left" }, vr = { class: "navbar-content-center" }, br = { class: "navbar-content-right" }, pr = /* @__PURE__ */
|
|
202
|
+
}, dr = { class: "navbar-content" }, fr = { class: "navbar-content-left" }, vr = { class: "navbar-content-center" }, br = { class: "navbar-content-right" }, pr = /* @__PURE__ */ ie({
|
|
203
203
|
__name: "AppNavbar",
|
|
204
204
|
props: {
|
|
205
205
|
topOffset: {
|
|
@@ -218,34 +218,34 @@ const ar = /* @__PURE__ */ ie(Jn, [["render", tr]]), nr = { class: "kong-ui-app-
|
|
|
218
218
|
},
|
|
219
219
|
setup(a) {
|
|
220
220
|
yt((o) => ({
|
|
221
|
-
"27c93a10":
|
|
222
|
-
"0f284bf5":
|
|
223
|
-
d1659a78:
|
|
221
|
+
"27c93a10": c.value.top,
|
|
222
|
+
"0f284bf5": c.value.zIndex,
|
|
223
|
+
d1659a78: c.value.left,
|
|
224
224
|
"3d9232e8": s.marginRight,
|
|
225
225
|
"038c3c78": s.width
|
|
226
226
|
}));
|
|
227
|
-
const t = a, r =
|
|
227
|
+
const t = a, r = je(), n = S(() => !!r.logo), s = qe({
|
|
228
228
|
marginRight: "0",
|
|
229
229
|
width: "0"
|
|
230
230
|
});
|
|
231
|
-
|
|
232
|
-
var o,
|
|
233
|
-
(
|
|
231
|
+
Pe(() => {
|
|
232
|
+
var o, f;
|
|
233
|
+
(f = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && f.length ? (s.marginRight = "32px", s.width = "calc(240px - 32px)") : (s.marginRight = "0", s.width = "0");
|
|
234
234
|
});
|
|
235
|
-
const
|
|
235
|
+
const c = S(() => ({
|
|
236
236
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
237
237
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
238
238
|
zIndex: t.zIndex
|
|
239
239
|
}));
|
|
240
|
-
return (o,
|
|
240
|
+
return (o, f) => (p(), k("header", sr, [
|
|
241
241
|
E("div", lr, [
|
|
242
242
|
E("div", cr, [
|
|
243
243
|
C(o.$slots, "mobile-sidebar-toggle"),
|
|
244
244
|
C(o.$slots, "mobile-logo")
|
|
245
245
|
]),
|
|
246
|
-
n.value ? (p(),
|
|
246
|
+
n.value ? (p(), k("div", ur, [
|
|
247
247
|
C(o.$slots, "logo")
|
|
248
|
-
])) :
|
|
248
|
+
])) : I("", !0),
|
|
249
249
|
E("div", dr, [
|
|
250
250
|
E("div", fr, [
|
|
251
251
|
C(o.$slots, "left")
|
|
@@ -260,16 +260,16 @@ const ar = /* @__PURE__ */ ie(Jn, [["render", tr]]), nr = { class: "kong-ui-app-
|
|
|
260
260
|
])
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
263
|
-
}), hr = /* @__PURE__ */
|
|
263
|
+
}), hr = /* @__PURE__ */ oe(pr, [["__scopeId", "data-v-2f6fc50f"]]);
|
|
264
264
|
function mr(a) {
|
|
265
|
-
return
|
|
265
|
+
return On() ? (En(a), !0) : !1;
|
|
266
266
|
}
|
|
267
267
|
const vt = /* @__PURE__ */ new WeakMap(), gr = (...a) => {
|
|
268
268
|
var t;
|
|
269
269
|
const r = a[0], n = (t = Yt()) == null ? void 0 : t.proxy;
|
|
270
270
|
if (n == null && !Qt())
|
|
271
271
|
throw new Error("injectLocal must be called in setup");
|
|
272
|
-
return n && vt.has(n) && r in vt.get(n) ? vt.get(n)[r] :
|
|
272
|
+
return n && vt.has(n) && r in vt.get(n) ? vt.get(n)[r] : $n(...a);
|
|
273
273
|
}, yr = typeof window < "u" && typeof document < "u";
|
|
274
274
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
275
275
|
const wr = Object.prototype.toString, kr = (a) => wr.call(a) === "[object Object]";
|
|
@@ -280,7 +280,7 @@ function bt(a) {
|
|
|
280
280
|
return Array.isArray(a) ? a : [a];
|
|
281
281
|
}
|
|
282
282
|
function Tr(a, t, r) {
|
|
283
|
-
return
|
|
283
|
+
return Fe(
|
|
284
284
|
a,
|
|
285
285
|
t,
|
|
286
286
|
{
|
|
@@ -292,47 +292,47 @@ function Tr(a, t, r) {
|
|
|
292
292
|
const aa = yr ? window : void 0;
|
|
293
293
|
function _r(a) {
|
|
294
294
|
var t;
|
|
295
|
-
const r =
|
|
295
|
+
const r = Oe(a);
|
|
296
296
|
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
297
297
|
}
|
|
298
298
|
function Sr(...a) {
|
|
299
299
|
const t = [], r = () => {
|
|
300
|
-
t.forEach((
|
|
301
|
-
}, n = (
|
|
302
|
-
const
|
|
303
|
-
return
|
|
304
|
-
}),
|
|
300
|
+
t.forEach((f) => f()), t.length = 0;
|
|
301
|
+
}, n = (f, b, w, T) => (f.addEventListener(b, w, T), () => f.removeEventListener(b, w, T)), s = S(() => {
|
|
302
|
+
const f = bt(Oe(a[0])).filter((b) => b != null);
|
|
303
|
+
return f.every((b) => typeof b != "string") ? f : void 0;
|
|
304
|
+
}), c = Tr(
|
|
305
305
|
() => {
|
|
306
|
-
var
|
|
306
|
+
var f, b;
|
|
307
307
|
return [
|
|
308
|
-
(b = (
|
|
309
|
-
bt(
|
|
308
|
+
(b = (f = s.value) == null ? void 0 : f.map((w) => _r(w))) != null ? b : [aa].filter((w) => w != null),
|
|
309
|
+
bt(Oe(s.value ? a[1] : a[0])),
|
|
310
310
|
bt(ve(s.value ? a[2] : a[1])),
|
|
311
311
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
312
|
-
|
|
312
|
+
Oe(s.value ? a[3] : a[2])
|
|
313
313
|
];
|
|
314
314
|
},
|
|
315
|
-
([
|
|
316
|
-
if (r(), !(
|
|
315
|
+
([f, b, w, T]) => {
|
|
316
|
+
if (r(), !(f != null && f.length) || !(b != null && b.length) || !(w != null && w.length))
|
|
317
317
|
return;
|
|
318
|
-
const R = kr(
|
|
318
|
+
const R = kr(T) ? { ...T } : T;
|
|
319
319
|
t.push(
|
|
320
|
-
...
|
|
321
|
-
(
|
|
322
|
-
(
|
|
320
|
+
...f.flatMap(
|
|
321
|
+
(B) => b.flatMap(
|
|
322
|
+
(j) => w.map(($) => n(B, j, $, R))
|
|
323
323
|
)
|
|
324
324
|
)
|
|
325
325
|
);
|
|
326
326
|
},
|
|
327
327
|
{ flush: "post" }
|
|
328
328
|
), o = () => {
|
|
329
|
-
|
|
329
|
+
c(), r();
|
|
330
330
|
};
|
|
331
331
|
return mr(r), o;
|
|
332
332
|
}
|
|
333
333
|
function Cr() {
|
|
334
|
-
const a =
|
|
335
|
-
return t &&
|
|
334
|
+
const a = Xe(!1), t = Yt();
|
|
335
|
+
return t && Pe(() => {
|
|
336
336
|
a.value = !0;
|
|
337
337
|
}, t), a;
|
|
338
338
|
}
|
|
@@ -340,30 +340,30 @@ function Ir(a) {
|
|
|
340
340
|
const t = Cr();
|
|
341
341
|
return S(() => (t.value, !!a()));
|
|
342
342
|
}
|
|
343
|
-
const
|
|
344
|
-
function
|
|
345
|
-
const a = Qt() ? gr(
|
|
343
|
+
const $r = Symbol("vueuse-ssr-width");
|
|
344
|
+
function Or() {
|
|
345
|
+
const a = Qt() ? gr($r, null) : null;
|
|
346
346
|
return typeof a == "number" ? a : void 0;
|
|
347
347
|
}
|
|
348
348
|
function Er(a, t = {}) {
|
|
349
|
-
const { window: r = aa, ssrWidth: n =
|
|
350
|
-
|
|
349
|
+
const { window: r = aa, ssrWidth: n = Or() } = t, s = Ir(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), c = Xe(typeof n == "number"), o = Xe(), f = Xe(!1), b = (w) => {
|
|
350
|
+
f.value = w.matches;
|
|
351
351
|
};
|
|
352
352
|
return Jt(() => {
|
|
353
|
-
if (
|
|
354
|
-
|
|
355
|
-
const w =
|
|
356
|
-
|
|
357
|
-
const R =
|
|
358
|
-
let
|
|
359
|
-
return
|
|
353
|
+
if (c.value) {
|
|
354
|
+
c.value = !s.value;
|
|
355
|
+
const w = Oe(a).split(",");
|
|
356
|
+
f.value = w.some((T) => {
|
|
357
|
+
const R = T.includes("not all"), B = T.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), j = T.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
358
|
+
let $ = !!(B || j);
|
|
359
|
+
return B && $ && ($ = n >= Wt(B[1])), j && $ && ($ = n <= Wt(j[1])), R ? !$ : $;
|
|
360
360
|
});
|
|
361
361
|
return;
|
|
362
362
|
}
|
|
363
|
-
s.value && (o.value = r.matchMedia(
|
|
364
|
-
}), Sr(o, "change", b, { passive: !0 }), S(() =>
|
|
363
|
+
s.value && (o.value = r.matchMedia(Oe(a)), f.value = o.value.matches);
|
|
364
|
+
}), Sr(o, "change", b, { passive: !0 }), S(() => f.value);
|
|
365
365
|
}
|
|
366
|
-
const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px",
|
|
366
|
+
const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px", Br = "4px", xr = "640px", Lr = "16px", Mr = "#bee2ff", jr = ["title"], pt = 99, Pr = /* @__PURE__ */ ie({
|
|
367
367
|
__name: "ItemBadge",
|
|
368
368
|
props: {
|
|
369
369
|
count: {
|
|
@@ -374,19 +374,22 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
374
374
|
},
|
|
375
375
|
setup(a) {
|
|
376
376
|
const t = a, r = S(() => t.count ? t.count > pt ? `${pt}+` : t.count.toString() : "");
|
|
377
|
-
return (n, s) => r.value ? (p(),
|
|
377
|
+
return (n, s) => r.value ? (p(), k("div", {
|
|
378
378
|
key: 0,
|
|
379
379
|
class: "item-badge",
|
|
380
380
|
title: (a.count || 0) > pt ? String(a.count) : void 0
|
|
381
|
-
}, Y(r.value), 9, jr)) :
|
|
381
|
+
}, Y(r.value), 9, jr)) : I("", !0);
|
|
382
382
|
}
|
|
383
|
-
}), Kr = /* @__PURE__ */
|
|
383
|
+
}), Kr = /* @__PURE__ */ oe(Pr, [["__scopeId", "data-v-afb0d903"]]), Zr = ["data-testid"], Hr = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], Wr = {
|
|
384
384
|
key: 0,
|
|
385
385
|
class: "sidebar-item-icon"
|
|
386
386
|
}, zr = { class: "sidebar-item-name-container" }, Gr = { class: "sidebar-item-name has-tooltip" }, Ur = {
|
|
387
387
|
key: 2,
|
|
388
388
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
389
|
-
}, Vr =
|
|
389
|
+
}, Vr = {
|
|
390
|
+
key: 1,
|
|
391
|
+
class: "sidebar-item-after"
|
|
392
|
+
}, qr = ["id"], Xr = /* @__PURE__ */ ie({
|
|
390
393
|
__name: "SidebarItem",
|
|
391
394
|
props: {
|
|
392
395
|
item: {
|
|
@@ -401,167 +404,174 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
401
404
|
},
|
|
402
405
|
emits: ["click"],
|
|
403
406
|
setup(a, { emit: t }) {
|
|
404
|
-
const r = t, n = a, s = S(() => typeof n.item.to != "string" ? !1 : !!n.item.newWindow || !!n.item.external || n.item.to.startsWith("http")),
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
407
|
+
const r = t, n = a, s = je(), c = S(() => typeof n.item.to != "string" ? !1 : !!n.item.newWindow || !!n.item.external || n.item.to.startsWith("http")), o = S(() => !n.item.to || typeof n.item.to != "string" || !n.item.newWindow ? !1 : n.item.newWindow && (n.item.to.startsWith("http") || n.item.to.startsWith("/"))), f = S(
|
|
408
|
+
() => n.subnavItem && // item has non-zero badgeCount OR
|
|
409
|
+
n.item.badgeCount !== void 0 && n.item.badgeCount !== 0 || // slot content for the badge
|
|
410
|
+
!!s[`sidebar-after-${n.item.key}`]
|
|
411
|
+
), b = (T) => {
|
|
412
|
+
r("click", T);
|
|
413
|
+
}, w = (T, R, B) => {
|
|
414
|
+
b(R), typeof B == "function" && (T.preventDefault(), B());
|
|
408
415
|
};
|
|
409
|
-
return (
|
|
410
|
-
var
|
|
411
|
-
const
|
|
412
|
-
return p(),
|
|
413
|
-
class:
|
|
416
|
+
return (T, R) => {
|
|
417
|
+
var $;
|
|
418
|
+
const B = pe("KTooltip"), j = pe("SidebarItem", !0);
|
|
419
|
+
return p(), k("li", {
|
|
420
|
+
class: se([a.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: a.item.expanded }, { active: a.item.active }]),
|
|
414
421
|
"data-testid": a.item.testId ? `sidebar-item-${a.item.testId}` : void 0
|
|
415
422
|
}, [
|
|
416
|
-
(p(),
|
|
417
|
-
custom:
|
|
418
|
-
to: !
|
|
423
|
+
(p(), z(Ee(c.value ? "div" : "router-link"), {
|
|
424
|
+
custom: c.value ? void 0 : !0,
|
|
425
|
+
to: !c.value && !o.value ? a.item.to : void 0
|
|
419
426
|
}, {
|
|
420
|
-
default:
|
|
421
|
-
var
|
|
427
|
+
default: L((M) => {
|
|
428
|
+
var V, K;
|
|
422
429
|
return [
|
|
423
430
|
E("a", {
|
|
424
|
-
"aria-controls": (
|
|
431
|
+
"aria-controls": (V = a.item.items) != null && V.length && a.item.expanded ? `subnav-${a.item.key}` : void 0,
|
|
425
432
|
"aria-current": a.item.active ? "page" : void 0,
|
|
426
|
-
"aria-expanded": (
|
|
427
|
-
class:
|
|
428
|
-
href:
|
|
429
|
-
target:
|
|
430
|
-
onClick: (
|
|
431
|
-
onKeypress: An((
|
|
433
|
+
"aria-expanded": (K = a.item.items) != null && K.length && a.item.expanded ? !0 : void 0,
|
|
434
|
+
class: se(["sidebar-item-link", { "sidebar-item-external-link": o.value, "router-link": !c.value }]),
|
|
435
|
+
href: c.value ? String(a.item.to || "#") : M == null ? void 0 : M.href,
|
|
436
|
+
target: o.value ? "_blank" : void 0,
|
|
437
|
+
onClick: (te) => w(te, a.item, M == null ? void 0 : M.navigate),
|
|
438
|
+
onKeypress: An((te) => w(te, a.item, M == null ? void 0 : M.navigate), ["enter"])
|
|
432
439
|
}, [
|
|
433
440
|
E("div", {
|
|
434
|
-
class:
|
|
441
|
+
class: se(["sidebar-item-display", { "has-label": !!a.item.label && a.item.expanded, "has-badge": f.value }])
|
|
435
442
|
}, [
|
|
436
|
-
|
|
437
|
-
a.subnavItem ?
|
|
438
|
-
])) :
|
|
443
|
+
T.$slots[`sidebar-icon-${a.item.key}`] ? (p(), k("div", Wr, [
|
|
444
|
+
a.subnavItem ? I("", !0) : C(T.$slots, `sidebar-icon-${a.item.key}`, { key: 0 }, void 0, !0)
|
|
445
|
+
])) : I("", !0),
|
|
439
446
|
E("div", zr, [
|
|
440
|
-
(a.subnavItem && !
|
|
447
|
+
(a.subnavItem && !f.value ? a.item.name.length < 25 : a.item.name.length < 18) ? (p(), k("div", {
|
|
441
448
|
key: 0,
|
|
442
|
-
class:
|
|
443
|
-
}, Y(a.item.name), 3)) : (p(),
|
|
449
|
+
class: se(["sidebar-item-name truncate-text", [a.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
450
|
+
}, Y(a.item.name), 3)) : (p(), z(B, {
|
|
444
451
|
key: 1,
|
|
445
452
|
class: "sidebar-item-tooltip",
|
|
446
453
|
placement: "right",
|
|
447
454
|
"position-fixed": "",
|
|
448
455
|
text: a.item.name
|
|
449
456
|
}, {
|
|
450
|
-
default:
|
|
457
|
+
default: L(() => [
|
|
451
458
|
E("div", Gr, [
|
|
452
459
|
E("span", {
|
|
453
|
-
class:
|
|
460
|
+
class: se(["truncate-text", [a.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": f.value }]])
|
|
454
461
|
}, Y(a.item.name), 3)
|
|
455
462
|
])
|
|
456
463
|
]),
|
|
457
464
|
_: 1
|
|
458
465
|
}, 8, ["text"])),
|
|
459
|
-
a.item.label && a.item.expanded ? (p(),
|
|
466
|
+
a.item.label && a.item.expanded ? (p(), k("div", Ur, Y(a.item.label), 1)) : I("", !0)
|
|
460
467
|
]),
|
|
461
|
-
|
|
462
|
-
key
|
|
463
|
-
|
|
464
|
-
|
|
468
|
+
f.value ? (p(), k("div", Vr, [
|
|
469
|
+
C(T.$slots, `sidebar-after-${a.item.key}`, {}, () => [
|
|
470
|
+
Ae(Kr, {
|
|
471
|
+
count: a.item.badgeCount
|
|
472
|
+
}, null, 8, ["count"])
|
|
473
|
+
], !0)
|
|
474
|
+
])) : I("", !0)
|
|
465
475
|
], 2)
|
|
466
476
|
], 42, Hr)
|
|
467
477
|
];
|
|
468
478
|
}),
|
|
469
479
|
_: 3
|
|
470
480
|
}, 8, ["custom", "to"])),
|
|
471
|
-
(
|
|
481
|
+
($ = a.item.items) != null && $.length && a.item.expanded ? (p(), k("ul", {
|
|
472
482
|
key: 0,
|
|
473
483
|
id: `subnav-${a.item.key}`,
|
|
474
484
|
class: "level-secondary"
|
|
475
485
|
}, [
|
|
476
|
-
(p(!0),
|
|
477
|
-
key:
|
|
478
|
-
item:
|
|
486
|
+
(p(!0), k($e, null, be(a.item.items, (M) => (p(), z(j, {
|
|
487
|
+
key: M.name,
|
|
488
|
+
item: M,
|
|
479
489
|
"subnav-item": !0,
|
|
480
|
-
onClick: (
|
|
490
|
+
onClick: (V) => b(M)
|
|
481
491
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
482
|
-
], 8,
|
|
492
|
+
], 8, qr)) : I("", !0)
|
|
483
493
|
], 10, Zr);
|
|
484
494
|
};
|
|
485
495
|
}
|
|
486
|
-
}), zt = /* @__PURE__ */
|
|
496
|
+
}), zt = /* @__PURE__ */ oe(Xr, [["__scopeId", "data-v-41197b8e"]]);
|
|
487
497
|
/*!
|
|
488
498
|
* tabbable 6.2.0
|
|
489
499
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
490
500
|
*/
|
|
491
|
-
var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"],
|
|
492
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
501
|
+
var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ye = /* @__PURE__ */ na.join(","), ra = typeof Element > "u", ke = ra ? function() {
|
|
502
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Qe = !ra && Element.prototype.getRootNode ? function(a) {
|
|
493
503
|
var t;
|
|
494
504
|
return a == null || (t = a.getRootNode) === null || t === void 0 ? void 0 : t.call(a);
|
|
495
505
|
} : function(a) {
|
|
496
506
|
return a == null ? void 0 : a.ownerDocument;
|
|
497
|
-
},
|
|
507
|
+
}, Je = function a(t, r) {
|
|
498
508
|
var n;
|
|
499
509
|
r === void 0 && (r = !0);
|
|
500
|
-
var s = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"),
|
|
510
|
+
var s = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), c = s === "" || s === "true", o = c || r && t && a(t.parentNode);
|
|
501
511
|
return o;
|
|
502
|
-
},
|
|
512
|
+
}, Yr = function(t) {
|
|
503
513
|
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
504
514
|
return n === "" || n === "true";
|
|
505
515
|
}, ia = function(t, r, n) {
|
|
506
|
-
if (
|
|
516
|
+
if (Je(t))
|
|
507
517
|
return [];
|
|
508
|
-
var s = Array.prototype.slice.apply(t.querySelectorAll(
|
|
509
|
-
return r && ke.call(t,
|
|
518
|
+
var s = Array.prototype.slice.apply(t.querySelectorAll(Ye));
|
|
519
|
+
return r && ke.call(t, Ye) && s.unshift(t), s = s.filter(n), s;
|
|
510
520
|
}, oa = function a(t, r, n) {
|
|
511
|
-
for (var s = [],
|
|
512
|
-
var o =
|
|
513
|
-
if (!
|
|
521
|
+
for (var s = [], c = Array.from(t); c.length; ) {
|
|
522
|
+
var o = c.shift();
|
|
523
|
+
if (!Je(o, !1))
|
|
514
524
|
if (o.tagName === "SLOT") {
|
|
515
|
-
var
|
|
525
|
+
var f = o.assignedElements(), b = f.length ? f : o.children, w = a(b, !0, n);
|
|
516
526
|
n.flatten ? s.push.apply(s, w) : s.push({
|
|
517
527
|
scopeParent: o,
|
|
518
528
|
candidates: w
|
|
519
529
|
});
|
|
520
530
|
} else {
|
|
521
|
-
var
|
|
522
|
-
|
|
531
|
+
var T = ke.call(o, Ye);
|
|
532
|
+
T && n.filter(o) && (r || !t.includes(o)) && s.push(o);
|
|
523
533
|
var R = o.shadowRoot || // check for an undisclosed shadow
|
|
524
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(o),
|
|
525
|
-
if (R &&
|
|
526
|
-
var
|
|
527
|
-
n.flatten ? s.push.apply(s,
|
|
534
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), B = !Je(R, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
535
|
+
if (R && B) {
|
|
536
|
+
var j = a(R === !0 ? o.children : R.children, !0, n);
|
|
537
|
+
n.flatten ? s.push.apply(s, j) : s.push({
|
|
528
538
|
scopeParent: o,
|
|
529
|
-
candidates:
|
|
539
|
+
candidates: j
|
|
530
540
|
});
|
|
531
541
|
} else
|
|
532
|
-
|
|
542
|
+
c.unshift.apply(c, o.children);
|
|
533
543
|
}
|
|
534
544
|
}
|
|
535
545
|
return s;
|
|
536
546
|
}, sa = function(t) {
|
|
537
547
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
538
|
-
},
|
|
548
|
+
}, we = function(t) {
|
|
539
549
|
if (!t)
|
|
540
550
|
throw new Error("No node provided");
|
|
541
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
542
|
-
}, Yr = function(t, r) {
|
|
543
|
-
var n = ye(t);
|
|
544
|
-
return n < 0 && r && !sa(t) ? 0 : n;
|
|
551
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Yr(t)) && !sa(t) ? 0 : t.tabIndex;
|
|
545
552
|
}, Qr = function(t, r) {
|
|
553
|
+
var n = we(t);
|
|
554
|
+
return n < 0 && r && !sa(t) ? 0 : n;
|
|
555
|
+
}, Jr = function(t, r) {
|
|
546
556
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
547
557
|
}, la = function(t) {
|
|
548
558
|
return t.tagName === "INPUT";
|
|
549
|
-
}, Jr = function(t) {
|
|
550
|
-
return la(t) && t.type === "hidden";
|
|
551
559
|
}, ei = function(t) {
|
|
560
|
+
return la(t) && t.type === "hidden";
|
|
561
|
+
}, ti = function(t) {
|
|
552
562
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
553
563
|
return n.tagName === "SUMMARY";
|
|
554
564
|
});
|
|
555
565
|
return r;
|
|
556
|
-
},
|
|
566
|
+
}, ai = function(t, r) {
|
|
557
567
|
for (var n = 0; n < t.length; n++)
|
|
558
568
|
if (t[n].checked && t[n].form === r)
|
|
559
569
|
return t[n];
|
|
560
|
-
},
|
|
570
|
+
}, ni = function(t) {
|
|
561
571
|
if (!t.name)
|
|
562
572
|
return !0;
|
|
563
|
-
var r = t.form ||
|
|
564
|
-
return r.querySelectorAll('input[type="radio"][name="' +
|
|
573
|
+
var r = t.form || Qe(t), n = function(f) {
|
|
574
|
+
return r.querySelectorAll('input[type="radio"][name="' + f + '"]');
|
|
565
575
|
}, s;
|
|
566
576
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
567
577
|
s = n(window.CSS.escape(t.name));
|
|
@@ -571,50 +581,50 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
571
581
|
} catch (o) {
|
|
572
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;
|
|
573
583
|
}
|
|
574
|
-
var
|
|
575
|
-
return !
|
|
576
|
-
}, ni = function(t) {
|
|
577
|
-
return la(t) && t.type === "radio";
|
|
584
|
+
var c = ai(s, t.form);
|
|
585
|
+
return !c || c === t;
|
|
578
586
|
}, ri = function(t) {
|
|
579
|
-
return
|
|
587
|
+
return la(t) && t.type === "radio";
|
|
580
588
|
}, ii = function(t) {
|
|
581
|
-
|
|
589
|
+
return ri(t) && !ni(t);
|
|
590
|
+
}, oi = function(t) {
|
|
591
|
+
var r, n = t && Qe(t), s = (r = n) === null || r === void 0 ? void 0 : r.host, c = !1;
|
|
582
592
|
if (n && n !== t) {
|
|
583
|
-
var o,
|
|
584
|
-
for (
|
|
585
|
-
var w,
|
|
586
|
-
n =
|
|
593
|
+
var o, f, b;
|
|
594
|
+
for (c = !!((o = s) !== null && o !== void 0 && (f = o.ownerDocument) !== null && f !== void 0 && f.contains(s) || t != null && (b = t.ownerDocument) !== null && b !== void 0 && b.contains(t)); !c && s; ) {
|
|
595
|
+
var w, T, R;
|
|
596
|
+
n = Qe(s), s = (w = n) === null || w === void 0 ? void 0 : w.host, c = !!((T = s) !== null && T !== void 0 && (R = T.ownerDocument) !== null && R !== void 0 && R.contains(s));
|
|
587
597
|
}
|
|
588
598
|
}
|
|
589
|
-
return
|
|
599
|
+
return c;
|
|
590
600
|
}, Gt = function(t) {
|
|
591
601
|
var r = t.getBoundingClientRect(), n = r.width, s = r.height;
|
|
592
602
|
return n === 0 && s === 0;
|
|
593
|
-
},
|
|
603
|
+
}, si = function(t, r) {
|
|
594
604
|
var n = r.displayCheck, s = r.getShadowRoot;
|
|
595
605
|
if (getComputedStyle(t).visibility === "hidden")
|
|
596
606
|
return !0;
|
|
597
|
-
var
|
|
607
|
+
var c = ke.call(t, "details>summary:first-of-type"), o = c ? t.parentElement : t;
|
|
598
608
|
if (ke.call(o, "details:not([open]) *"))
|
|
599
609
|
return !0;
|
|
600
610
|
if (!n || n === "full" || n === "legacy-full") {
|
|
601
611
|
if (typeof s == "function") {
|
|
602
|
-
for (var
|
|
603
|
-
var b = t.parentElement, w =
|
|
612
|
+
for (var f = t; t; ) {
|
|
613
|
+
var b = t.parentElement, w = Qe(t);
|
|
604
614
|
if (b && !b.shadowRoot && s(b) === !0)
|
|
605
615
|
return Gt(t);
|
|
606
616
|
t.assignedSlot ? t = t.assignedSlot : !b && w !== t.ownerDocument ? t = w.host : t = b;
|
|
607
617
|
}
|
|
608
|
-
t =
|
|
618
|
+
t = f;
|
|
609
619
|
}
|
|
610
|
-
if (
|
|
620
|
+
if (oi(t))
|
|
611
621
|
return !t.getClientRects().length;
|
|
612
622
|
if (n !== "legacy-full")
|
|
613
623
|
return !0;
|
|
614
624
|
} else if (n === "non-zero-area")
|
|
615
625
|
return Gt(t);
|
|
616
626
|
return !1;
|
|
617
|
-
},
|
|
627
|
+
}, li = function(t) {
|
|
618
628
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
619
629
|
for (var r = t.parentElement; r; ) {
|
|
620
630
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -628,56 +638,56 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
628
638
|
r = r.parentElement;
|
|
629
639
|
}
|
|
630
640
|
return !1;
|
|
631
|
-
},
|
|
641
|
+
}, et = function(t, r) {
|
|
632
642
|
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
633
643
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
634
644
|
// note related to `candidateSelectors`)
|
|
635
|
-
|
|
636
|
-
|
|
645
|
+
Je(r) || ei(r) || si(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
646
|
+
ti(r) || li(r));
|
|
637
647
|
}, mt = function(t, r) {
|
|
638
|
-
return !(
|
|
639
|
-
},
|
|
648
|
+
return !(ii(r) || we(r) < 0 || !et(t, r));
|
|
649
|
+
}, ci = function(t) {
|
|
640
650
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
641
651
|
return !!(isNaN(r) || r >= 0);
|
|
642
|
-
},
|
|
652
|
+
}, ui = function a(t) {
|
|
643
653
|
var r = [], n = [];
|
|
644
|
-
return t.forEach(function(s,
|
|
645
|
-
var o = !!s.scopeParent,
|
|
646
|
-
b === 0 ? o ? r.push.apply(r, w) : r.push(
|
|
647
|
-
documentOrder:
|
|
654
|
+
return t.forEach(function(s, c) {
|
|
655
|
+
var o = !!s.scopeParent, f = o ? s.scopeParent : s, b = Qr(f, o), w = o ? a(s.candidates) : f;
|
|
656
|
+
b === 0 ? o ? r.push.apply(r, w) : r.push(f) : n.push({
|
|
657
|
+
documentOrder: c,
|
|
648
658
|
tabIndex: b,
|
|
649
659
|
item: s,
|
|
650
660
|
isScope: o,
|
|
651
661
|
content: w
|
|
652
662
|
});
|
|
653
|
-
}), n.sort(
|
|
654
|
-
return
|
|
663
|
+
}), n.sort(Jr).reduce(function(s, c) {
|
|
664
|
+
return c.isScope ? s.push.apply(s, c.content) : s.push(c.content), s;
|
|
655
665
|
}, []).concat(r);
|
|
656
|
-
},
|
|
666
|
+
}, di = function(t, r) {
|
|
657
667
|
r = r || {};
|
|
658
668
|
var n;
|
|
659
669
|
return r.getShadowRoot ? n = oa([t], r.includeContainer, {
|
|
660
670
|
filter: mt.bind(null, r),
|
|
661
671
|
flatten: !1,
|
|
662
672
|
getShadowRoot: r.getShadowRoot,
|
|
663
|
-
shadowRootFilter:
|
|
664
|
-
}) : n = ia(t, r.includeContainer, mt.bind(null, r)),
|
|
665
|
-
},
|
|
673
|
+
shadowRootFilter: ci
|
|
674
|
+
}) : n = ia(t, r.includeContainer, mt.bind(null, r)), ui(n);
|
|
675
|
+
}, fi = function(t, r) {
|
|
666
676
|
r = r || {};
|
|
667
677
|
var n;
|
|
668
678
|
return r.getShadowRoot ? n = oa([t], r.includeContainer, {
|
|
669
|
-
filter:
|
|
679
|
+
filter: et.bind(null, r),
|
|
670
680
|
flatten: !0,
|
|
671
681
|
getShadowRoot: r.getShadowRoot
|
|
672
|
-
}) : n = ia(t, r.includeContainer,
|
|
682
|
+
}) : n = ia(t, r.includeContainer, et.bind(null, r)), n;
|
|
673
683
|
}, Ie = function(t, r) {
|
|
674
684
|
if (r = r || {}, !t)
|
|
675
685
|
throw new Error("No node provided");
|
|
676
|
-
return ke.call(t,
|
|
677
|
-
},
|
|
686
|
+
return ke.call(t, Ye) === !1 ? !1 : mt(r, t);
|
|
687
|
+
}, vi = /* @__PURE__ */ na.concat("iframe").join(","), ht = function(t, r) {
|
|
678
688
|
if (r = r || {}, !t)
|
|
679
689
|
throw new Error("No node provided");
|
|
680
|
-
return ke.call(t,
|
|
690
|
+
return ke.call(t, vi) === !1 ? !1 : et(r, t);
|
|
681
691
|
};
|
|
682
692
|
/*!
|
|
683
693
|
* focus-trap 7.6.5
|
|
@@ -688,21 +698,21 @@ function gt(a, t) {
|
|
|
688
698
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = a[r];
|
|
689
699
|
return n;
|
|
690
700
|
}
|
|
691
|
-
function
|
|
701
|
+
function bi(a) {
|
|
692
702
|
if (Array.isArray(a)) return gt(a);
|
|
693
703
|
}
|
|
694
|
-
function
|
|
695
|
-
return (t =
|
|
704
|
+
function pi(a, t, r) {
|
|
705
|
+
return (t = wi(t)) in a ? Object.defineProperty(a, t, {
|
|
696
706
|
value: r,
|
|
697
707
|
enumerable: !0,
|
|
698
708
|
configurable: !0,
|
|
699
709
|
writable: !0
|
|
700
710
|
}) : a[t] = r, a;
|
|
701
711
|
}
|
|
702
|
-
function
|
|
712
|
+
function hi(a) {
|
|
703
713
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
704
714
|
}
|
|
705
|
-
function
|
|
715
|
+
function mi() {
|
|
706
716
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
707
717
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
708
718
|
}
|
|
@@ -720,17 +730,17 @@ function Vt(a) {
|
|
|
720
730
|
for (var t = 1; t < arguments.length; t++) {
|
|
721
731
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
722
732
|
t % 2 ? Ut(Object(r), !0).forEach(function(n) {
|
|
723
|
-
|
|
733
|
+
pi(a, n, r[n]);
|
|
724
734
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Ut(Object(r)).forEach(function(n) {
|
|
725
735
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(r, n));
|
|
726
736
|
});
|
|
727
737
|
}
|
|
728
738
|
return a;
|
|
729
739
|
}
|
|
730
|
-
function
|
|
731
|
-
return
|
|
740
|
+
function gi(a) {
|
|
741
|
+
return bi(a) || hi(a) || ki(a) || mi();
|
|
732
742
|
}
|
|
733
|
-
function
|
|
743
|
+
function yi(a, t) {
|
|
734
744
|
if (typeof a != "object" || !a) return a;
|
|
735
745
|
var r = a[Symbol.toPrimitive];
|
|
736
746
|
if (r !== void 0) {
|
|
@@ -740,11 +750,11 @@ function gi(a, t) {
|
|
|
740
750
|
}
|
|
741
751
|
return (t === "string" ? String : Number)(a);
|
|
742
752
|
}
|
|
743
|
-
function
|
|
744
|
-
var t =
|
|
753
|
+
function wi(a) {
|
|
754
|
+
var t = yi(a, "string");
|
|
745
755
|
return typeof t == "symbol" ? t : t + "";
|
|
746
756
|
}
|
|
747
|
-
function
|
|
757
|
+
function ki(a, t) {
|
|
748
758
|
if (a) {
|
|
749
759
|
if (typeof a == "string") return gt(a, t);
|
|
750
760
|
var r = {}.toString.call(a).slice(8, -1);
|
|
@@ -764,31 +774,31 @@ var qt = {
|
|
|
764
774
|
var n = t.indexOf(r);
|
|
765
775
|
n !== -1 && t.splice(n, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
766
776
|
}
|
|
767
|
-
}, ki = function(t) {
|
|
768
|
-
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
769
777
|
}, Ti = function(t) {
|
|
778
|
+
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
779
|
+
}, _i = function(t) {
|
|
770
780
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
771
781
|
}, xe = function(t) {
|
|
772
782
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
773
|
-
}, _i = function(t) {
|
|
774
|
-
return xe(t) && !t.shiftKey;
|
|
775
783
|
}, Si = function(t) {
|
|
784
|
+
return xe(t) && !t.shiftKey;
|
|
785
|
+
}, Ci = function(t) {
|
|
776
786
|
return xe(t) && t.shiftKey;
|
|
777
787
|
}, Xt = function(t) {
|
|
778
788
|
return setTimeout(t, 0);
|
|
779
|
-
},
|
|
789
|
+
}, Be = function(t) {
|
|
780
790
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
781
791
|
n[s - 1] = arguments[s];
|
|
782
792
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
783
|
-
},
|
|
793
|
+
}, Ue = function(t) {
|
|
784
794
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
785
|
-
},
|
|
786
|
-
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) ||
|
|
795
|
+
}, Ii = [], $i = function(t, r) {
|
|
796
|
+
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) || Ii, c = Vt({
|
|
787
797
|
returnFocusOnDeactivate: !0,
|
|
788
798
|
escapeDeactivates: !0,
|
|
789
799
|
delayInitialFocus: !0,
|
|
790
|
-
isKeyForward:
|
|
791
|
-
isKeyBackward:
|
|
800
|
+
isKeyForward: Si,
|
|
801
|
+
isKeyBackward: Ci
|
|
792
802
|
}, r), o = {
|
|
793
803
|
// containers given to createFocusTrap()
|
|
794
804
|
// @type {Array<HTMLElement>}
|
|
@@ -826,74 +836,74 @@ var qt = {
|
|
|
826
836
|
delayInitialFocusTimer: void 0,
|
|
827
837
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
828
838
|
recentNavEvent: void 0
|
|
829
|
-
},
|
|
830
|
-
return
|
|
831
|
-
}, w = function(
|
|
832
|
-
var g = typeof (
|
|
833
|
-
return o.containerGroups.findIndex(function(
|
|
834
|
-
var
|
|
835
|
-
return
|
|
839
|
+
}, f, b = function(u, v, g) {
|
|
840
|
+
return u && u[v] !== void 0 ? u[v] : c[g || v];
|
|
841
|
+
}, w = function(u, v) {
|
|
842
|
+
var g = typeof (v == null ? void 0 : v.composedPath) == "function" ? v.composedPath() : void 0;
|
|
843
|
+
return o.containerGroups.findIndex(function(N) {
|
|
844
|
+
var D = N.container, x = N.tabbableNodes;
|
|
845
|
+
return D.contains(u) || // fall back to explicit tabbable search which will take into consideration any
|
|
836
846
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
837
847
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
838
848
|
// look inside web components even if open)
|
|
839
|
-
(g == null ? void 0 : g.includes(
|
|
840
|
-
return
|
|
849
|
+
(g == null ? void 0 : g.includes(D)) || x.find(function(O) {
|
|
850
|
+
return O === u;
|
|
841
851
|
});
|
|
842
852
|
});
|
|
843
|
-
},
|
|
844
|
-
var
|
|
845
|
-
if (typeof
|
|
846
|
-
if (
|
|
847
|
-
return
|
|
848
|
-
throw new Error("`".concat(
|
|
853
|
+
}, T = function(u) {
|
|
854
|
+
var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = v.hasFallback, N = g === void 0 ? !1 : g, D = v.params, x = D === void 0 ? [] : D, O = c[u];
|
|
855
|
+
if (typeof O == "function" && (O = O.apply(void 0, gi(x))), O === !0 && (O = void 0), !O) {
|
|
856
|
+
if (O === void 0 || O === !1)
|
|
857
|
+
return O;
|
|
858
|
+
throw new Error("`".concat(u, "` was specified but was not a node, or did not return a node"));
|
|
849
859
|
}
|
|
850
|
-
var d =
|
|
851
|
-
if (typeof
|
|
860
|
+
var d = O;
|
|
861
|
+
if (typeof O == "string") {
|
|
852
862
|
try {
|
|
853
|
-
d = n.querySelector(
|
|
863
|
+
d = n.querySelector(O);
|
|
854
864
|
} catch (y) {
|
|
855
|
-
throw new Error("`".concat(
|
|
865
|
+
throw new Error("`".concat(u, '` appears to be an invalid selector; error="').concat(y.message, '"'));
|
|
856
866
|
}
|
|
857
|
-
if (!d && !
|
|
858
|
-
throw new Error("`".concat(
|
|
867
|
+
if (!d && !N)
|
|
868
|
+
throw new Error("`".concat(u, "` as selector refers to no known node"));
|
|
859
869
|
}
|
|
860
870
|
return d;
|
|
861
871
|
}, R = function() {
|
|
862
|
-
var
|
|
872
|
+
var u = T("initialFocus", {
|
|
863
873
|
hasFallback: !0
|
|
864
874
|
});
|
|
865
|
-
if (
|
|
875
|
+
if (u === !1)
|
|
866
876
|
return !1;
|
|
867
|
-
if (
|
|
877
|
+
if (u === void 0 || u && !ht(u, c.tabbableOptions))
|
|
868
878
|
if (w(n.activeElement) >= 0)
|
|
869
|
-
|
|
879
|
+
u = n.activeElement;
|
|
870
880
|
else {
|
|
871
|
-
var
|
|
872
|
-
|
|
881
|
+
var v = o.tabbableGroups[0], g = v && v.firstTabbableNode;
|
|
882
|
+
u = g || T("fallbackFocus");
|
|
873
883
|
}
|
|
874
|
-
else
|
|
875
|
-
if (!
|
|
884
|
+
else u === null && (u = T("fallbackFocus"));
|
|
885
|
+
if (!u)
|
|
876
886
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
877
|
-
return
|
|
878
|
-
},
|
|
879
|
-
if (o.containerGroups = o.containers.map(function(
|
|
880
|
-
var
|
|
887
|
+
return u;
|
|
888
|
+
}, B = function() {
|
|
889
|
+
if (o.containerGroups = o.containers.map(function(u) {
|
|
890
|
+
var v = di(u, c.tabbableOptions), g = fi(u, c.tabbableOptions), N = v.length > 0 ? v[0] : void 0, D = v.length > 0 ? v[v.length - 1] : void 0, x = g.find(function(y) {
|
|
881
891
|
return Ie(y);
|
|
882
|
-
}),
|
|
892
|
+
}), O = g.slice().reverse().find(function(y) {
|
|
883
893
|
return Ie(y);
|
|
884
|
-
}), d = !!
|
|
885
|
-
return
|
|
894
|
+
}), d = !!v.find(function(y) {
|
|
895
|
+
return we(y) > 0;
|
|
886
896
|
});
|
|
887
897
|
return {
|
|
888
|
-
container:
|
|
889
|
-
tabbableNodes:
|
|
898
|
+
container: u,
|
|
899
|
+
tabbableNodes: v,
|
|
890
900
|
focusableNodes: g,
|
|
891
901
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
892
902
|
posTabIndexesFound: d,
|
|
893
903
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
894
|
-
firstTabbableNode:
|
|
904
|
+
firstTabbableNode: N,
|
|
895
905
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
896
|
-
lastTabbableNode:
|
|
906
|
+
lastTabbableNode: D,
|
|
897
907
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
898
908
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
899
909
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -904,7 +914,7 @@ var qt = {
|
|
|
904
914
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
905
915
|
firstDomTabbableNode: x,
|
|
906
916
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
907
|
-
lastDomTabbableNode:
|
|
917
|
+
lastDomTabbableNode: O,
|
|
908
918
|
/**
|
|
909
919
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
910
920
|
* in this container, if any.
|
|
@@ -914,239 +924,239 @@ var qt = {
|
|
|
914
924
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
915
925
|
*/
|
|
916
926
|
nextTabbableNode: function(_) {
|
|
917
|
-
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0,
|
|
918
|
-
return
|
|
927
|
+
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, W = v.indexOf(_);
|
|
928
|
+
return W < 0 ? m ? g.slice(g.indexOf(_) + 1).find(function(P) {
|
|
919
929
|
return Ie(P);
|
|
920
930
|
}) : g.slice(0, g.indexOf(_)).reverse().find(function(P) {
|
|
921
931
|
return Ie(P);
|
|
922
|
-
}) :
|
|
932
|
+
}) : v[W + (m ? 1 : -1)];
|
|
923
933
|
}
|
|
924
934
|
};
|
|
925
|
-
}), o.tabbableGroups = o.containerGroups.filter(function(
|
|
926
|
-
return
|
|
927
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
935
|
+
}), o.tabbableGroups = o.containerGroups.filter(function(u) {
|
|
936
|
+
return u.tabbableNodes.length > 0;
|
|
937
|
+
}), o.tabbableGroups.length <= 0 && !T("fallbackFocus"))
|
|
928
938
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
929
|
-
if (o.containerGroups.find(function(
|
|
930
|
-
return
|
|
939
|
+
if (o.containerGroups.find(function(u) {
|
|
940
|
+
return u.posTabIndexesFound;
|
|
931
941
|
}) && o.containerGroups.length > 1)
|
|
932
942
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
933
|
-
},
|
|
934
|
-
var
|
|
935
|
-
if (
|
|
936
|
-
return
|
|
937
|
-
},
|
|
938
|
-
if (
|
|
939
|
-
if (!
|
|
940
|
-
|
|
943
|
+
}, j = function(u) {
|
|
944
|
+
var v = u.activeElement;
|
|
945
|
+
if (v)
|
|
946
|
+
return v.shadowRoot && v.shadowRoot.activeElement !== null ? j(v.shadowRoot) : v;
|
|
947
|
+
}, $ = function(u) {
|
|
948
|
+
if (u !== !1 && u !== j(document)) {
|
|
949
|
+
if (!u || !u.focus) {
|
|
950
|
+
$(R());
|
|
941
951
|
return;
|
|
942
952
|
}
|
|
943
|
-
|
|
944
|
-
preventScroll: !!
|
|
945
|
-
}), o.mostRecentlyFocusedNode =
|
|
953
|
+
u.focus({
|
|
954
|
+
preventScroll: !!c.preventScroll
|
|
955
|
+
}), o.mostRecentlyFocusedNode = u, Ti(u) && u.select();
|
|
946
956
|
}
|
|
947
|
-
},
|
|
948
|
-
var
|
|
949
|
-
params: [
|
|
957
|
+
}, M = function(u) {
|
|
958
|
+
var v = T("setReturnFocus", {
|
|
959
|
+
params: [u]
|
|
950
960
|
});
|
|
951
|
-
return
|
|
952
|
-
}, V = function(
|
|
953
|
-
var
|
|
954
|
-
|
|
961
|
+
return v || (v === !1 ? !1 : u);
|
|
962
|
+
}, V = function(u) {
|
|
963
|
+
var v = u.target, g = u.event, N = u.isBackward, D = N === void 0 ? !1 : N;
|
|
964
|
+
v = v || Ue(g), B();
|
|
955
965
|
var x = null;
|
|
956
966
|
if (o.tabbableGroups.length > 0) {
|
|
957
|
-
var
|
|
958
|
-
if (
|
|
959
|
-
|
|
960
|
-
else if (
|
|
967
|
+
var O = w(v, g), d = O >= 0 ? o.containerGroups[O] : void 0;
|
|
968
|
+
if (O < 0)
|
|
969
|
+
D ? x = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : x = o.tabbableGroups[0].firstTabbableNode;
|
|
970
|
+
else if (D) {
|
|
961
971
|
var y = o.tabbableGroups.findIndex(function(le) {
|
|
962
|
-
var
|
|
963
|
-
return
|
|
972
|
+
var Ne = le.firstTabbableNode;
|
|
973
|
+
return v === Ne;
|
|
964
974
|
});
|
|
965
|
-
if (y < 0 && (d.container ===
|
|
975
|
+
if (y < 0 && (d.container === v || ht(v, c.tabbableOptions) && !Ie(v, c.tabbableOptions) && !d.nextTabbableNode(v, !1)) && (y = O), y >= 0) {
|
|
966
976
|
var _ = y === 0 ? o.tabbableGroups.length - 1 : y - 1, m = o.tabbableGroups[_];
|
|
967
|
-
x =
|
|
968
|
-
} else xe(g) || (x = d.nextTabbableNode(
|
|
977
|
+
x = we(v) >= 0 ? m.lastTabbableNode : m.lastDomTabbableNode;
|
|
978
|
+
} else xe(g) || (x = d.nextTabbableNode(v, !1));
|
|
969
979
|
} else {
|
|
970
|
-
var
|
|
971
|
-
var
|
|
972
|
-
return
|
|
980
|
+
var W = o.tabbableGroups.findIndex(function(le) {
|
|
981
|
+
var Ne = le.lastTabbableNode;
|
|
982
|
+
return v === Ne;
|
|
973
983
|
});
|
|
974
|
-
if (
|
|
975
|
-
var P =
|
|
976
|
-
x =
|
|
977
|
-
} else xe(g) || (x = d.nextTabbableNode(
|
|
984
|
+
if (W < 0 && (d.container === v || ht(v, c.tabbableOptions) && !Ie(v, c.tabbableOptions) && !d.nextTabbableNode(v)) && (W = O), W >= 0) {
|
|
985
|
+
var P = W === o.tabbableGroups.length - 1 ? 0 : W + 1, X = o.tabbableGroups[P];
|
|
986
|
+
x = we(v) >= 0 ? X.firstTabbableNode : X.firstDomTabbableNode;
|
|
987
|
+
} else xe(g) || (x = d.nextTabbableNode(v));
|
|
978
988
|
}
|
|
979
989
|
} else
|
|
980
|
-
x =
|
|
990
|
+
x = T("fallbackFocus");
|
|
981
991
|
return x;
|
|
982
|
-
},
|
|
983
|
-
var
|
|
984
|
-
if (!(w(
|
|
985
|
-
if (
|
|
986
|
-
|
|
992
|
+
}, K = function(u) {
|
|
993
|
+
var v = Ue(u);
|
|
994
|
+
if (!(w(v, u) >= 0)) {
|
|
995
|
+
if (Be(c.clickOutsideDeactivates, u)) {
|
|
996
|
+
f.deactivate({
|
|
987
997
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
988
998
|
// which will result in the outside click setting focus to the node
|
|
989
999
|
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
990
1000
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
991
1001
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
992
1002
|
// outside click was on a focusable node or not
|
|
993
|
-
returnFocus:
|
|
1003
|
+
returnFocus: c.returnFocusOnDeactivate
|
|
994
1004
|
});
|
|
995
1005
|
return;
|
|
996
1006
|
}
|
|
997
|
-
|
|
1007
|
+
Be(c.allowOutsideClick, u) || u.preventDefault();
|
|
998
1008
|
}
|
|
999
|
-
},
|
|
1000
|
-
var
|
|
1001
|
-
if (g ||
|
|
1002
|
-
g && (o.mostRecentlyFocusedNode =
|
|
1009
|
+
}, te = function(u) {
|
|
1010
|
+
var v = Ue(u), g = w(v, u) >= 0;
|
|
1011
|
+
if (g || v instanceof Document)
|
|
1012
|
+
g && (o.mostRecentlyFocusedNode = v);
|
|
1003
1013
|
else {
|
|
1004
|
-
|
|
1005
|
-
var
|
|
1014
|
+
u.stopImmediatePropagation();
|
|
1015
|
+
var N, D = !0;
|
|
1006
1016
|
if (o.mostRecentlyFocusedNode)
|
|
1007
|
-
if (
|
|
1008
|
-
var x = w(o.mostRecentlyFocusedNode),
|
|
1009
|
-
if (
|
|
1010
|
-
var d =
|
|
1017
|
+
if (we(o.mostRecentlyFocusedNode) > 0) {
|
|
1018
|
+
var x = w(o.mostRecentlyFocusedNode), O = o.containerGroups[x].tabbableNodes;
|
|
1019
|
+
if (O.length > 0) {
|
|
1020
|
+
var d = O.findIndex(function(y) {
|
|
1011
1021
|
return y === o.mostRecentlyFocusedNode;
|
|
1012
1022
|
});
|
|
1013
|
-
d >= 0 && (
|
|
1023
|
+
d >= 0 && (c.isKeyForward(o.recentNavEvent) ? d + 1 < O.length && (N = O[d + 1], D = !1) : d - 1 >= 0 && (N = O[d - 1], D = !1));
|
|
1014
1024
|
}
|
|
1015
1025
|
} else
|
|
1016
1026
|
o.containerGroups.some(function(y) {
|
|
1017
1027
|
return y.tabbableNodes.some(function(_) {
|
|
1018
|
-
return
|
|
1028
|
+
return we(_) > 0;
|
|
1019
1029
|
});
|
|
1020
|
-
}) || (
|
|
1030
|
+
}) || (D = !1);
|
|
1021
1031
|
else
|
|
1022
|
-
|
|
1023
|
-
|
|
1032
|
+
D = !1;
|
|
1033
|
+
D && (N = V({
|
|
1024
1034
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1025
1035
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1026
1036
|
target: o.mostRecentlyFocusedNode,
|
|
1027
|
-
isBackward:
|
|
1028
|
-
})),
|
|
1037
|
+
isBackward: c.isKeyBackward(o.recentNavEvent)
|
|
1038
|
+
})), $(N || o.mostRecentlyFocusedNode || R());
|
|
1029
1039
|
}
|
|
1030
1040
|
o.recentNavEvent = void 0;
|
|
1031
|
-
}, de = function(
|
|
1032
|
-
var
|
|
1033
|
-
o.recentNavEvent =
|
|
1041
|
+
}, de = function(u) {
|
|
1042
|
+
var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1043
|
+
o.recentNavEvent = u;
|
|
1034
1044
|
var g = V({
|
|
1035
|
-
event:
|
|
1036
|
-
isBackward:
|
|
1045
|
+
event: u,
|
|
1046
|
+
isBackward: v
|
|
1037
1047
|
});
|
|
1038
|
-
g && (xe(
|
|
1039
|
-
}, q = function(
|
|
1040
|
-
(
|
|
1041
|
-
},
|
|
1042
|
-
|
|
1043
|
-
},
|
|
1044
|
-
var
|
|
1045
|
-
w(
|
|
1046
|
-
},
|
|
1048
|
+
g && (xe(u) && u.preventDefault(), $(g));
|
|
1049
|
+
}, q = function(u) {
|
|
1050
|
+
(c.isKeyForward(u) || c.isKeyBackward(u)) && de(u, c.isKeyBackward(u));
|
|
1051
|
+
}, re = function(u) {
|
|
1052
|
+
_i(u) && Be(c.escapeDeactivates, u) !== !1 && (u.preventDefault(), f.deactivate());
|
|
1053
|
+
}, ae = function(u) {
|
|
1054
|
+
var v = Ue(u);
|
|
1055
|
+
w(v, u) >= 0 || Be(c.clickOutsideDeactivates, u) || Be(c.allowOutsideClick, u) || (u.preventDefault(), u.stopImmediatePropagation());
|
|
1056
|
+
}, ne = function() {
|
|
1047
1057
|
if (o.active)
|
|
1048
|
-
return qt.activateTrap(s,
|
|
1049
|
-
|
|
1050
|
-
}) :
|
|
1058
|
+
return qt.activateTrap(s, f), o.delayInitialFocusTimer = c.delayInitialFocus ? Xt(function() {
|
|
1059
|
+
$(R());
|
|
1060
|
+
}) : $(R()), n.addEventListener("focusin", te, !0), n.addEventListener("mousedown", K, {
|
|
1051
1061
|
capture: !0,
|
|
1052
1062
|
passive: !1
|
|
1053
|
-
}), n.addEventListener("touchstart",
|
|
1063
|
+
}), n.addEventListener("touchstart", K, {
|
|
1054
1064
|
capture: !0,
|
|
1055
1065
|
passive: !1
|
|
1056
|
-
}), n.addEventListener("click",
|
|
1066
|
+
}), n.addEventListener("click", ae, {
|
|
1057
1067
|
capture: !0,
|
|
1058
1068
|
passive: !1
|
|
1059
1069
|
}), n.addEventListener("keydown", q, {
|
|
1060
1070
|
capture: !0,
|
|
1061
1071
|
passive: !1
|
|
1062
|
-
}), n.addEventListener("keydown",
|
|
1063
|
-
},
|
|
1072
|
+
}), n.addEventListener("keydown", re), f;
|
|
1073
|
+
}, F = function() {
|
|
1064
1074
|
if (o.active)
|
|
1065
|
-
return n.removeEventListener("focusin",
|
|
1066
|
-
},
|
|
1067
|
-
var
|
|
1068
|
-
var
|
|
1069
|
-
return
|
|
1070
|
-
return
|
|
1075
|
+
return n.removeEventListener("focusin", te, !0), n.removeEventListener("mousedown", K, !0), n.removeEventListener("touchstart", K, !0), n.removeEventListener("click", ae, !0), n.removeEventListener("keydown", q, !0), n.removeEventListener("keydown", re), f;
|
|
1076
|
+
}, G = function(u) {
|
|
1077
|
+
var v = u.some(function(g) {
|
|
1078
|
+
var N = Array.from(g.removedNodes);
|
|
1079
|
+
return N.some(function(D) {
|
|
1080
|
+
return D === o.mostRecentlyFocusedNode;
|
|
1071
1081
|
});
|
|
1072
1082
|
});
|
|
1073
|
-
|
|
1074
|
-
},
|
|
1075
|
-
|
|
1076
|
-
|
|
1083
|
+
v && $(R());
|
|
1084
|
+
}, Z = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(G) : void 0, H = function() {
|
|
1085
|
+
Z && (Z.disconnect(), o.active && !o.paused && o.containers.map(function(u) {
|
|
1086
|
+
Z.observe(u, {
|
|
1077
1087
|
subtree: !0,
|
|
1078
1088
|
childList: !0
|
|
1079
1089
|
});
|
|
1080
1090
|
}));
|
|
1081
1091
|
};
|
|
1082
|
-
return
|
|
1092
|
+
return f = {
|
|
1083
1093
|
get active() {
|
|
1084
1094
|
return o.active;
|
|
1085
1095
|
},
|
|
1086
1096
|
get paused() {
|
|
1087
1097
|
return o.paused;
|
|
1088
1098
|
},
|
|
1089
|
-
activate: function(
|
|
1099
|
+
activate: function(u) {
|
|
1090
1100
|
if (o.active)
|
|
1091
1101
|
return this;
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1094
|
-
var
|
|
1095
|
-
|
|
1102
|
+
var v = b(u, "onActivate"), g = b(u, "onPostActivate"), N = b(u, "checkCanFocusTrap");
|
|
1103
|
+
N || B(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = j(n), v == null || v();
|
|
1104
|
+
var D = function() {
|
|
1105
|
+
N && B(), ne(), H(), g == null || g();
|
|
1096
1106
|
};
|
|
1097
|
-
return
|
|
1107
|
+
return N ? (N(o.containers.concat()).then(D, D), this) : (D(), this);
|
|
1098
1108
|
},
|
|
1099
|
-
deactivate: function(
|
|
1109
|
+
deactivate: function(u) {
|
|
1100
1110
|
if (!o.active)
|
|
1101
1111
|
return this;
|
|
1102
|
-
var
|
|
1103
|
-
onDeactivate:
|
|
1104
|
-
onPostDeactivate:
|
|
1105
|
-
checkCanReturnFocus:
|
|
1106
|
-
},
|
|
1107
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
1108
|
-
var g = b(
|
|
1112
|
+
var v = Vt({
|
|
1113
|
+
onDeactivate: c.onDeactivate,
|
|
1114
|
+
onPostDeactivate: c.onPostDeactivate,
|
|
1115
|
+
checkCanReturnFocus: c.checkCanReturnFocus
|
|
1116
|
+
}, u);
|
|
1117
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, F(), o.active = !1, o.paused = !1, H(), qt.deactivateTrap(s, f);
|
|
1118
|
+
var g = b(v, "onDeactivate"), N = b(v, "onPostDeactivate"), D = b(v, "checkCanReturnFocus"), x = b(v, "returnFocus", "returnFocusOnDeactivate");
|
|
1109
1119
|
g == null || g();
|
|
1110
|
-
var
|
|
1120
|
+
var O = function() {
|
|
1111
1121
|
Xt(function() {
|
|
1112
|
-
x &&
|
|
1122
|
+
x && $(M(o.nodeFocusedBeforeActivation)), N == null || N();
|
|
1113
1123
|
});
|
|
1114
1124
|
};
|
|
1115
|
-
return x &&
|
|
1125
|
+
return x && D ? (D(M(o.nodeFocusedBeforeActivation)).then(O, O), this) : (O(), this);
|
|
1116
1126
|
},
|
|
1117
|
-
pause: function(
|
|
1118
|
-
return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0,
|
|
1127
|
+
pause: function(u) {
|
|
1128
|
+
return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0, u)) : this;
|
|
1119
1129
|
},
|
|
1120
|
-
unpause: function(
|
|
1121
|
-
return o.active ? (o.manuallyPaused = !1, s[s.length - 1] !== this ? this : this._setPausedState(!1,
|
|
1130
|
+
unpause: function(u) {
|
|
1131
|
+
return o.active ? (o.manuallyPaused = !1, s[s.length - 1] !== this ? this : this._setPausedState(!1, u)) : this;
|
|
1122
1132
|
},
|
|
1123
|
-
updateContainerElements: function(
|
|
1124
|
-
var
|
|
1125
|
-
return o.containers =
|
|
1133
|
+
updateContainerElements: function(u) {
|
|
1134
|
+
var v = [].concat(u).filter(Boolean);
|
|
1135
|
+
return o.containers = v.map(function(g) {
|
|
1126
1136
|
return typeof g == "string" ? n.querySelector(g) : g;
|
|
1127
|
-
}), o.active &&
|
|
1137
|
+
}), o.active && B(), H(), this;
|
|
1128
1138
|
}
|
|
1129
|
-
}, Object.defineProperties(
|
|
1139
|
+
}, Object.defineProperties(f, {
|
|
1130
1140
|
_isManuallyPaused: {
|
|
1131
1141
|
value: function() {
|
|
1132
1142
|
return o.manuallyPaused;
|
|
1133
1143
|
}
|
|
1134
1144
|
},
|
|
1135
1145
|
_setPausedState: {
|
|
1136
|
-
value: function(
|
|
1137
|
-
if (o.paused ===
|
|
1146
|
+
value: function(u, v) {
|
|
1147
|
+
if (o.paused === u)
|
|
1138
1148
|
return this;
|
|
1139
|
-
if (o.paused =
|
|
1140
|
-
var g = b(
|
|
1141
|
-
g == null || g(),
|
|
1149
|
+
if (o.paused = u, u) {
|
|
1150
|
+
var g = b(v, "onPause"), N = b(v, "onPostPause");
|
|
1151
|
+
g == null || g(), F(), H(), N == null || N();
|
|
1142
1152
|
} else {
|
|
1143
|
-
var
|
|
1144
|
-
|
|
1153
|
+
var D = b(v, "onUnpause"), x = b(v, "onPostUnpause");
|
|
1154
|
+
D == null || D(), B(), ne(), H(), x == null || x();
|
|
1145
1155
|
}
|
|
1146
1156
|
return this;
|
|
1147
1157
|
}
|
|
1148
1158
|
}
|
|
1149
|
-
}),
|
|
1159
|
+
}), f.updateContainerElements(t), f;
|
|
1150
1160
|
};
|
|
1151
1161
|
/*!
|
|
1152
1162
|
* focus-trap-vue v4.0.3
|
|
@@ -1179,7 +1189,7 @@ const Oi = {
|
|
|
1179
1189
|
preventScroll: Boolean,
|
|
1180
1190
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1181
1191
|
tabbableOptions: Object
|
|
1182
|
-
},
|
|
1192
|
+
}, Ei = ie({
|
|
1183
1193
|
name: "FocusTrap",
|
|
1184
1194
|
props: Object.assign({
|
|
1185
1195
|
active: {
|
|
@@ -1200,12 +1210,12 @@ const Oi = {
|
|
|
1200
1210
|
},
|
|
1201
1211
|
setup(a, { slots: t, emit: r }) {
|
|
1202
1212
|
let n;
|
|
1203
|
-
const s = ee(null),
|
|
1204
|
-
const
|
|
1205
|
-
return
|
|
1213
|
+
const s = ee(null), c = S(() => {
|
|
1214
|
+
const f = s.value;
|
|
1215
|
+
return f && (f instanceof HTMLElement ? f : f.$el);
|
|
1206
1216
|
});
|
|
1207
1217
|
function o() {
|
|
1208
|
-
return n || (n =
|
|
1218
|
+
return n || (n = $i(c.value, {
|
|
1209
1219
|
escapeDeactivates: a.escapeDeactivates,
|
|
1210
1220
|
allowOutsideClick: a.allowOutsideClick,
|
|
1211
1221
|
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
@@ -1225,9 +1235,9 @@ const Oi = {
|
|
|
1225
1235
|
preventScroll: a.preventScroll
|
|
1226
1236
|
}));
|
|
1227
1237
|
}
|
|
1228
|
-
return
|
|
1229
|
-
|
|
1230
|
-
|
|
1238
|
+
return Pe(() => {
|
|
1239
|
+
Fe(() => a.active, (f) => {
|
|
1240
|
+
f && c.value ? o().activate() : n && (n.deactivate(), (!c.value || c.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
1231
1241
|
}, { immediate: !0, flush: "post" });
|
|
1232
1242
|
}), Fn(() => {
|
|
1233
1243
|
n && n.deactivate(), n = null;
|
|
@@ -1241,8 +1251,8 @@ const Oi = {
|
|
|
1241
1251
|
renderImpl() {
|
|
1242
1252
|
if (!t.default)
|
|
1243
1253
|
return null;
|
|
1244
|
-
const
|
|
1245
|
-
return !
|
|
1254
|
+
const f = t.default().filter((w) => w.type !== Nn);
|
|
1255
|
+
return !f || !f.length || f.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), f) : Dn(f[0], { ref: s });
|
|
1246
1256
|
}
|
|
1247
1257
|
};
|
|
1248
1258
|
}
|
|
@@ -1259,20 +1269,20 @@ function ca() {
|
|
|
1259
1269
|
}
|
|
1260
1270
|
};
|
|
1261
1271
|
}
|
|
1262
|
-
var
|
|
1263
|
-
function
|
|
1272
|
+
var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1273
|
+
function Ai(a) {
|
|
1264
1274
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1265
1275
|
}
|
|
1266
|
-
var
|
|
1267
|
-
|
|
1276
|
+
var tt = { exports: {} };
|
|
1277
|
+
tt.exports;
|
|
1268
1278
|
(function(a, t) {
|
|
1269
|
-
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991,
|
|
1270
|
-
d[
|
|
1271
|
-
var y = typeof
|
|
1279
|
+
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, c = "[object Arguments]", o = "[object Array]", f = "[object Boolean]", b = "[object Date]", w = "[object Error]", T = "[object Function]", R = "[object GeneratorFunction]", B = "[object Map]", j = "[object Number]", $ = "[object Object]", M = "[object Promise]", V = "[object RegExp]", K = "[object Set]", te = "[object String]", de = "[object Symbol]", q = "[object WeakMap]", re = "[object ArrayBuffer]", ae = "[object DataView]", ne = "[object Float32Array]", F = "[object Float64Array]", G = "[object Int8Array]", Z = "[object Int16Array]", H = "[object Int32Array]", A = "[object Uint8Array]", u = "[object Uint8ClampedArray]", v = "[object Uint16Array]", g = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, D = /\w*$/, x = /^\[object .+?Constructor\]$/, O = /^(?:0|[1-9]\d*)$/, d = {};
|
|
1280
|
+
d[c] = d[o] = d[re] = d[ae] = d[f] = d[b] = d[ne] = d[F] = d[G] = d[Z] = d[H] = d[B] = d[j] = d[$] = d[V] = d[K] = d[te] = d[de] = d[A] = d[u] = d[v] = d[g] = !0, d[w] = d[T] = d[q] = !1;
|
|
1281
|
+
var y = typeof Ve == "object" && Ve && Ve.Object === Object && Ve, _ = typeof self == "object" && self && self.Object === Object && self, m = y || _ || Function("return this")(), W = t && !t.nodeType && t, P = W && !0 && a && !a.nodeType && a, X = P && P.exports === W;
|
|
1272
1282
|
function le(e, i) {
|
|
1273
1283
|
return e.set(i[0], i[1]), e;
|
|
1274
1284
|
}
|
|
1275
|
-
function
|
|
1285
|
+
function Ne(e, i) {
|
|
1276
1286
|
return e.add(i), e;
|
|
1277
1287
|
}
|
|
1278
1288
|
function ua(e, i) {
|
|
@@ -1281,13 +1291,13 @@ et.exports;
|
|
|
1281
1291
|
return e;
|
|
1282
1292
|
}
|
|
1283
1293
|
function da(e, i) {
|
|
1284
|
-
for (var l = -1, h = i.length,
|
|
1285
|
-
e[
|
|
1294
|
+
for (var l = -1, h = i.length, U = e.length; ++l < h; )
|
|
1295
|
+
e[U + l] = i[l];
|
|
1286
1296
|
return e;
|
|
1287
1297
|
}
|
|
1288
1298
|
function wt(e, i, l, h) {
|
|
1289
|
-
for (var
|
|
1290
|
-
l = i(l, e[
|
|
1299
|
+
for (var U = -1, Q = e ? e.length : 0; ++U < Q; )
|
|
1300
|
+
l = i(l, e[U], U, e);
|
|
1291
1301
|
return l;
|
|
1292
1302
|
}
|
|
1293
1303
|
function fa(e, i) {
|
|
@@ -1309,8 +1319,8 @@ et.exports;
|
|
|
1309
1319
|
}
|
|
1310
1320
|
function Tt(e) {
|
|
1311
1321
|
var i = -1, l = Array(e.size);
|
|
1312
|
-
return e.forEach(function(h,
|
|
1313
|
-
l[++i] = [
|
|
1322
|
+
return e.forEach(function(h, U) {
|
|
1323
|
+
l[++i] = [U, h];
|
|
1314
1324
|
}), l;
|
|
1315
1325
|
}
|
|
1316
1326
|
function at(e, i) {
|
|
@@ -1324,28 +1334,28 @@ et.exports;
|
|
|
1324
1334
|
l[++i] = h;
|
|
1325
1335
|
}), l;
|
|
1326
1336
|
}
|
|
1327
|
-
var ba = Array.prototype, pa = Function.prototype,
|
|
1337
|
+
var ba = Array.prototype, pa = Function.prototype, Ke = Object.prototype, nt = m["__core-js_shared__"], St = function() {
|
|
1328
1338
|
var e = /[^.]+$/.exec(nt && nt.keys && nt.keys.IE_PROTO || "");
|
|
1329
1339
|
return e ? "Symbol(src)_1." + e : "";
|
|
1330
|
-
}(), Ct = pa.toString, fe =
|
|
1331
|
-
"^" + Ct.call(fe).replace(
|
|
1332
|
-
), It = X ? m.Buffer : void 0,
|
|
1333
|
-
function
|
|
1340
|
+
}(), Ct = pa.toString, fe = Ke.hasOwnProperty, Ze = Ke.toString, ha = RegExp(
|
|
1341
|
+
"^" + Ct.call(fe).replace(N, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1342
|
+
), It = X ? m.Buffer : void 0, $t = m.Symbol, Ot = m.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 = Se(m, "DataView"), De = Se(m, "Map"), it = Se(m, "Promise"), ot = Se(m, "Set"), st = Se(m, "WeakMap"), Re = Se(Object, "create"), _a = ge(rt), Sa = ge(De), Ca = ge(it), Ia = ge(ot), $a = ge(st), At = $t ? $t.prototype : void 0, Ft = At ? At.valueOf : void 0;
|
|
1343
|
+
function he(e) {
|
|
1334
1344
|
var i = -1, l = e ? e.length : 0;
|
|
1335
1345
|
for (this.clear(); ++i < l; ) {
|
|
1336
1346
|
var h = e[i];
|
|
1337
1347
|
this.set(h[0], h[1]);
|
|
1338
1348
|
}
|
|
1339
1349
|
}
|
|
1340
|
-
function
|
|
1341
|
-
this.__data__ =
|
|
1350
|
+
function Oa() {
|
|
1351
|
+
this.__data__ = Re ? Re(null) : {};
|
|
1342
1352
|
}
|
|
1343
1353
|
function Ea(e) {
|
|
1344
1354
|
return this.has(e) && delete this.__data__[e];
|
|
1345
1355
|
}
|
|
1346
1356
|
function Aa(e) {
|
|
1347
1357
|
var i = this.__data__;
|
|
1348
|
-
if (
|
|
1358
|
+
if (Re) {
|
|
1349
1359
|
var l = i[e];
|
|
1350
1360
|
return l === n ? void 0 : l;
|
|
1351
1361
|
}
|
|
@@ -1353,13 +1363,13 @@ et.exports;
|
|
|
1353
1363
|
}
|
|
1354
1364
|
function Fa(e) {
|
|
1355
1365
|
var i = this.__data__;
|
|
1356
|
-
return
|
|
1366
|
+
return Re ? i[e] !== void 0 : fe.call(i, e);
|
|
1357
1367
|
}
|
|
1358
1368
|
function Na(e, i) {
|
|
1359
1369
|
var l = this.__data__;
|
|
1360
|
-
return l[e] =
|
|
1370
|
+
return l[e] = Re && i === void 0 ? n : i, this;
|
|
1361
1371
|
}
|
|
1362
|
-
|
|
1372
|
+
he.prototype.clear = Oa, he.prototype.delete = Ea, he.prototype.get = Aa, he.prototype.has = Fa, he.prototype.set = Na;
|
|
1363
1373
|
function ce(e) {
|
|
1364
1374
|
var i = -1, l = e ? e.length : 0;
|
|
1365
1375
|
for (this.clear(); ++i < l; ) {
|
|
@@ -1371,24 +1381,24 @@ et.exports;
|
|
|
1371
1381
|
this.__data__ = [];
|
|
1372
1382
|
}
|
|
1373
1383
|
function Ra(e) {
|
|
1374
|
-
var i = this.__data__, l =
|
|
1384
|
+
var i = this.__data__, l = He(i, e);
|
|
1375
1385
|
if (l < 0)
|
|
1376
1386
|
return !1;
|
|
1377
1387
|
var h = i.length - 1;
|
|
1378
1388
|
return l == h ? i.pop() : wa.call(i, l, 1), !0;
|
|
1379
1389
|
}
|
|
1380
|
-
function
|
|
1381
|
-
var i = this.__data__, l =
|
|
1390
|
+
function Ba(e) {
|
|
1391
|
+
var i = this.__data__, l = He(i, e);
|
|
1382
1392
|
return l < 0 ? void 0 : i[l][1];
|
|
1383
1393
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return
|
|
1394
|
+
function xa(e) {
|
|
1395
|
+
return He(this.__data__, e) > -1;
|
|
1386
1396
|
}
|
|
1387
1397
|
function La(e, i) {
|
|
1388
|
-
var l = this.__data__, h =
|
|
1398
|
+
var l = this.__data__, h = He(l, e);
|
|
1389
1399
|
return h < 0 ? l.push([e, i]) : l[h][1] = i, this;
|
|
1390
1400
|
}
|
|
1391
|
-
ce.prototype.clear = Da, ce.prototype.delete = Ra, ce.prototype.get =
|
|
1401
|
+
ce.prototype.clear = Da, ce.prototype.delete = Ra, ce.prototype.get = Ba, ce.prototype.has = xa, ce.prototype.set = La;
|
|
1392
1402
|
function Te(e) {
|
|
1393
1403
|
var i = -1, l = e ? e.length : 0;
|
|
1394
1404
|
for (this.clear(); ++i < l; ) {
|
|
@@ -1398,22 +1408,22 @@ et.exports;
|
|
|
1398
1408
|
}
|
|
1399
1409
|
function Ma() {
|
|
1400
1410
|
this.__data__ = {
|
|
1401
|
-
hash: new
|
|
1402
|
-
map: new (
|
|
1403
|
-
string: new
|
|
1411
|
+
hash: new he(),
|
|
1412
|
+
map: new (De || ce)(),
|
|
1413
|
+
string: new he()
|
|
1404
1414
|
};
|
|
1405
1415
|
}
|
|
1406
1416
|
function ja(e) {
|
|
1407
|
-
return
|
|
1417
|
+
return We(this, e).delete(e);
|
|
1408
1418
|
}
|
|
1409
1419
|
function Pa(e) {
|
|
1410
|
-
return
|
|
1420
|
+
return We(this, e).get(e);
|
|
1411
1421
|
}
|
|
1412
1422
|
function Ka(e) {
|
|
1413
|
-
return
|
|
1423
|
+
return We(this, e).has(e);
|
|
1414
1424
|
}
|
|
1415
1425
|
function Za(e, i) {
|
|
1416
|
-
return
|
|
1426
|
+
return We(this, e).set(e, i), this;
|
|
1417
1427
|
}
|
|
1418
1428
|
Te.prototype.clear = Ma, Te.prototype.delete = ja, Te.prototype.get = Pa, Te.prototype.has = Ka, Te.prototype.set = Za;
|
|
1419
1429
|
function _e(e) {
|
|
@@ -1435,7 +1445,7 @@ et.exports;
|
|
|
1435
1445
|
var l = this.__data__;
|
|
1436
1446
|
if (l instanceof ce) {
|
|
1437
1447
|
var h = l.__data__;
|
|
1438
|
-
if (!
|
|
1448
|
+
if (!De || h.length < r - 1)
|
|
1439
1449
|
return h.push([e, i]), this;
|
|
1440
1450
|
l = this.__data__ = new Te(h);
|
|
1441
1451
|
}
|
|
@@ -1443,39 +1453,39 @@ et.exports;
|
|
|
1443
1453
|
}
|
|
1444
1454
|
_e.prototype.clear = Ha, _e.prototype.delete = Wa, _e.prototype.get = za, _e.prototype.has = Ga, _e.prototype.set = Ua;
|
|
1445
1455
|
function Va(e, i) {
|
|
1446
|
-
var l = ut(e) || yn(e) ? fa(e.length, String) : [], h = l.length,
|
|
1456
|
+
var l = ut(e) || yn(e) ? fa(e.length, String) : [], h = l.length, U = !!h;
|
|
1447
1457
|
for (var Q in e)
|
|
1448
|
-
fe.call(e, Q) && !(
|
|
1458
|
+
fe.call(e, Q) && !(U && (Q == "length" || pn(Q, h))) && l.push(Q);
|
|
1449
1459
|
return l;
|
|
1450
1460
|
}
|
|
1451
1461
|
function Nt(e, i, l) {
|
|
1452
1462
|
var h = e[i];
|
|
1453
|
-
(!(fe.call(e, i) &&
|
|
1463
|
+
(!(fe.call(e, i) && xt(h, l)) || l === void 0 && !(i in e)) && (e[i] = l);
|
|
1454
1464
|
}
|
|
1455
|
-
function
|
|
1465
|
+
function He(e, i) {
|
|
1456
1466
|
for (var l = e.length; l--; )
|
|
1457
|
-
if (
|
|
1467
|
+
if (xt(e[l][0], i))
|
|
1458
1468
|
return l;
|
|
1459
1469
|
return -1;
|
|
1460
1470
|
}
|
|
1461
1471
|
function qa(e, i) {
|
|
1462
1472
|
return e && Dt(i, dt(i), e);
|
|
1463
1473
|
}
|
|
1464
|
-
function lt(e, i, l, h,
|
|
1474
|
+
function lt(e, i, l, h, U, Q, ue) {
|
|
1465
1475
|
var J;
|
|
1466
|
-
if (h && (J = Q ? h(e,
|
|
1476
|
+
if (h && (J = Q ? h(e, U, Q, ue) : h(e)), J !== void 0)
|
|
1467
1477
|
return J;
|
|
1468
|
-
if (!
|
|
1478
|
+
if (!ze(e))
|
|
1469
1479
|
return e;
|
|
1470
1480
|
var jt = ut(e);
|
|
1471
1481
|
if (jt) {
|
|
1472
1482
|
if (J = fn(e), !i)
|
|
1473
1483
|
return cn(e, J);
|
|
1474
1484
|
} else {
|
|
1475
|
-
var Ce =
|
|
1485
|
+
var Ce = me(e), Pt = Ce == T || Ce == R;
|
|
1476
1486
|
if (kn(e))
|
|
1477
1487
|
return tn(e, i);
|
|
1478
|
-
if (Ce ==
|
|
1488
|
+
if (Ce == $ || Ce == c || Pt && !Q) {
|
|
1479
1489
|
if (kt(e))
|
|
1480
1490
|
return Q ? e : {};
|
|
1481
1491
|
if (J = vn(Pt ? {} : e), !i)
|
|
@@ -1492,28 +1502,28 @@ et.exports;
|
|
|
1492
1502
|
return Kt;
|
|
1493
1503
|
if (ue.set(e, J), !jt)
|
|
1494
1504
|
var Zt = l ? dn(e) : dt(e);
|
|
1495
|
-
return ua(Zt || e, function(ft,
|
|
1496
|
-
Zt && (
|
|
1505
|
+
return ua(Zt || e, function(ft, Ge) {
|
|
1506
|
+
Zt && (Ge = ft, ft = e[Ge]), Nt(J, Ge, lt(ft, i, l, h, Ge, e, ue));
|
|
1497
1507
|
}), J;
|
|
1498
1508
|
}
|
|
1499
1509
|
function Xa(e) {
|
|
1500
|
-
return
|
|
1510
|
+
return ze(e) ? ga(e) : {};
|
|
1501
1511
|
}
|
|
1502
1512
|
function Ya(e, i, l) {
|
|
1503
1513
|
var h = i(e);
|
|
1504
1514
|
return ut(e) ? h : da(h, l(e));
|
|
1505
1515
|
}
|
|
1506
1516
|
function Qa(e) {
|
|
1507
|
-
return
|
|
1517
|
+
return Ze.call(e);
|
|
1508
1518
|
}
|
|
1509
1519
|
function Ja(e) {
|
|
1510
|
-
if (!
|
|
1520
|
+
if (!ze(e) || mn(e))
|
|
1511
1521
|
return !1;
|
|
1512
1522
|
var i = Mt(e) || kt(e) ? ha : x;
|
|
1513
|
-
return i.test(
|
|
1523
|
+
return i.test(ge(e));
|
|
1514
1524
|
}
|
|
1515
1525
|
function en(e) {
|
|
1516
|
-
if (!
|
|
1526
|
+
if (!Bt(e))
|
|
1517
1527
|
return Ta(e);
|
|
1518
1528
|
var i = [];
|
|
1519
1529
|
for (var l in Object(e))
|
|
@@ -1528,7 +1538,7 @@ et.exports;
|
|
|
1528
1538
|
}
|
|
1529
1539
|
function ct(e) {
|
|
1530
1540
|
var i = new e.constructor(e.byteLength);
|
|
1531
|
-
return new
|
|
1541
|
+
return new Ot(i).set(new Ot(e)), i;
|
|
1532
1542
|
}
|
|
1533
1543
|
function an(e, i) {
|
|
1534
1544
|
var l = i ? ct(e.buffer) : e.buffer;
|
|
@@ -1539,12 +1549,12 @@ et.exports;
|
|
|
1539
1549
|
return wt(h, le, new e.constructor());
|
|
1540
1550
|
}
|
|
1541
1551
|
function rn(e) {
|
|
1542
|
-
var i = new e.constructor(e.source,
|
|
1552
|
+
var i = new e.constructor(e.source, D.exec(e));
|
|
1543
1553
|
return i.lastIndex = e.lastIndex, i;
|
|
1544
1554
|
}
|
|
1545
1555
|
function on(e, i, l) {
|
|
1546
1556
|
var h = i ? l(_t(e), !0) : _t(e);
|
|
1547
|
-
return wt(h,
|
|
1557
|
+
return wt(h, Ne, new e.constructor());
|
|
1548
1558
|
}
|
|
1549
1559
|
function sn(e) {
|
|
1550
1560
|
return Ft ? Object(Ft.call(e)) : {};
|
|
@@ -1561,8 +1571,8 @@ et.exports;
|
|
|
1561
1571
|
}
|
|
1562
1572
|
function Dt(e, i, l, h) {
|
|
1563
1573
|
l || (l = {});
|
|
1564
|
-
for (var
|
|
1565
|
-
var ue = i[
|
|
1574
|
+
for (var U = -1, Q = i.length; ++U < Q; ) {
|
|
1575
|
+
var ue = i[U], J = void 0;
|
|
1566
1576
|
Nt(l, ue, J === void 0 ? e[ue] : J);
|
|
1567
1577
|
}
|
|
1568
1578
|
return l;
|
|
@@ -1573,7 +1583,7 @@ et.exports;
|
|
|
1573
1583
|
function dn(e) {
|
|
1574
1584
|
return Ya(e, dt, Rt);
|
|
1575
1585
|
}
|
|
1576
|
-
function
|
|
1586
|
+
function We(e, i) {
|
|
1577
1587
|
var l = e.__data__;
|
|
1578
1588
|
return hn(i) ? l[typeof i == "string" ? "string" : "hash"] : l.map;
|
|
1579
1589
|
}
|
|
@@ -1581,20 +1591,20 @@ et.exports;
|
|
|
1581
1591
|
var l = va(e, i);
|
|
1582
1592
|
return Ja(l) ? l : void 0;
|
|
1583
1593
|
}
|
|
1584
|
-
var Rt = Et ? at(Et, Object) : Sn,
|
|
1585
|
-
(rt &&
|
|
1586
|
-
var i =
|
|
1594
|
+
var Rt = Et ? at(Et, Object) : Sn, me = Qa;
|
|
1595
|
+
(rt && me(new rt(new ArrayBuffer(1))) != ae || De && me(new De()) != B || it && me(it.resolve()) != M || ot && me(new ot()) != K || st && me(new st()) != q) && (me = function(e) {
|
|
1596
|
+
var i = Ze.call(e), l = i == $ ? e.constructor : void 0, h = l ? ge(l) : void 0;
|
|
1587
1597
|
if (h)
|
|
1588
1598
|
switch (h) {
|
|
1589
1599
|
case _a:
|
|
1590
|
-
return
|
|
1600
|
+
return ae;
|
|
1591
1601
|
case Sa:
|
|
1592
|
-
return
|
|
1602
|
+
return B;
|
|
1593
1603
|
case Ca:
|
|
1594
|
-
return
|
|
1604
|
+
return M;
|
|
1595
1605
|
case Ia:
|
|
1596
|
-
return
|
|
1597
|
-
case
|
|
1606
|
+
return K;
|
|
1607
|
+
case $a:
|
|
1598
1608
|
return q;
|
|
1599
1609
|
}
|
|
1600
1610
|
return i;
|
|
@@ -1604,43 +1614,43 @@ et.exports;
|
|
|
1604
1614
|
return i && typeof e[0] == "string" && fe.call(e, "index") && (l.index = e.index, l.input = e.input), l;
|
|
1605
1615
|
}
|
|
1606
1616
|
function vn(e) {
|
|
1607
|
-
return typeof e.constructor == "function" && !
|
|
1617
|
+
return typeof e.constructor == "function" && !Bt(e) ? Xa(ma(e)) : {};
|
|
1608
1618
|
}
|
|
1609
1619
|
function bn(e, i, l, h) {
|
|
1610
|
-
var
|
|
1620
|
+
var U = e.constructor;
|
|
1611
1621
|
switch (i) {
|
|
1612
|
-
case
|
|
1622
|
+
case re:
|
|
1613
1623
|
return ct(e);
|
|
1614
|
-
case
|
|
1624
|
+
case f:
|
|
1615
1625
|
case b:
|
|
1616
|
-
return new
|
|
1617
|
-
case te:
|
|
1618
|
-
return an(e, h);
|
|
1626
|
+
return new U(+e);
|
|
1619
1627
|
case ae:
|
|
1620
|
-
|
|
1621
|
-
case
|
|
1622
|
-
case
|
|
1628
|
+
return an(e, h);
|
|
1629
|
+
case ne:
|
|
1630
|
+
case F:
|
|
1631
|
+
case G:
|
|
1623
1632
|
case Z:
|
|
1633
|
+
case H:
|
|
1624
1634
|
case A:
|
|
1625
|
-
case
|
|
1626
|
-
case
|
|
1635
|
+
case u:
|
|
1636
|
+
case v:
|
|
1627
1637
|
case g:
|
|
1628
1638
|
return ln(e, h);
|
|
1629
|
-
case
|
|
1639
|
+
case B:
|
|
1630
1640
|
return nn(e, h, l);
|
|
1631
|
-
case
|
|
1632
|
-
case
|
|
1633
|
-
return new
|
|
1641
|
+
case j:
|
|
1642
|
+
case te:
|
|
1643
|
+
return new U(e);
|
|
1634
1644
|
case V:
|
|
1635
1645
|
return rn(e);
|
|
1636
|
-
case
|
|
1646
|
+
case K:
|
|
1637
1647
|
return on(e, h, l);
|
|
1638
1648
|
case de:
|
|
1639
1649
|
return sn(e);
|
|
1640
1650
|
}
|
|
1641
1651
|
}
|
|
1642
1652
|
function pn(e, i) {
|
|
1643
|
-
return i = i ?? s, !!i && (typeof e == "number" ||
|
|
1653
|
+
return i = i ?? s, !!i && (typeof e == "number" || O.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1644
1654
|
}
|
|
1645
1655
|
function hn(e) {
|
|
1646
1656
|
var i = typeof e;
|
|
@@ -1649,11 +1659,11 @@ et.exports;
|
|
|
1649
1659
|
function mn(e) {
|
|
1650
1660
|
return !!St && St in e;
|
|
1651
1661
|
}
|
|
1652
|
-
function
|
|
1653
|
-
var i = e && e.constructor, l = typeof i == "function" && i.prototype ||
|
|
1662
|
+
function Bt(e) {
|
|
1663
|
+
var i = e && e.constructor, l = typeof i == "function" && i.prototype || Ke;
|
|
1654
1664
|
return e === l;
|
|
1655
1665
|
}
|
|
1656
|
-
function
|
|
1666
|
+
function ge(e) {
|
|
1657
1667
|
if (e != null) {
|
|
1658
1668
|
try {
|
|
1659
1669
|
return Ct.call(e);
|
|
@@ -1669,11 +1679,11 @@ et.exports;
|
|
|
1669
1679
|
function gn(e) {
|
|
1670
1680
|
return lt(e, !0, !0);
|
|
1671
1681
|
}
|
|
1672
|
-
function
|
|
1682
|
+
function xt(e, i) {
|
|
1673
1683
|
return e === i || e !== e && i !== i;
|
|
1674
1684
|
}
|
|
1675
1685
|
function yn(e) {
|
|
1676
|
-
return wn(e) && fe.call(e, "callee") && (!ya.call(e, "callee") ||
|
|
1686
|
+
return wn(e) && fe.call(e, "callee") && (!ya.call(e, "callee") || Ze.call(e) == c);
|
|
1677
1687
|
}
|
|
1678
1688
|
var ut = Array.isArray;
|
|
1679
1689
|
function Lt(e) {
|
|
@@ -1684,13 +1694,13 @@ et.exports;
|
|
|
1684
1694
|
}
|
|
1685
1695
|
var kn = ka || Cn;
|
|
1686
1696
|
function Mt(e) {
|
|
1687
|
-
var i =
|
|
1688
|
-
return i ==
|
|
1697
|
+
var i = ze(e) ? Ze.call(e) : "";
|
|
1698
|
+
return i == T || i == R;
|
|
1689
1699
|
}
|
|
1690
1700
|
function Tn(e) {
|
|
1691
1701
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= s;
|
|
1692
1702
|
}
|
|
1693
|
-
function
|
|
1703
|
+
function ze(e) {
|
|
1694
1704
|
var i = typeof e;
|
|
1695
1705
|
return !!e && (i == "object" || i == "function");
|
|
1696
1706
|
}
|
|
@@ -1707,22 +1717,22 @@ et.exports;
|
|
|
1707
1717
|
return !1;
|
|
1708
1718
|
}
|
|
1709
1719
|
a.exports = gn;
|
|
1710
|
-
})(
|
|
1711
|
-
var
|
|
1712
|
-
const
|
|
1720
|
+
})(tt, tt.exports);
|
|
1721
|
+
var Fi = tt.exports;
|
|
1722
|
+
const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
1713
1723
|
key: 0,
|
|
1714
1724
|
class: "sidebar-header"
|
|
1715
|
-
},
|
|
1725
|
+
}, Ri = { class: "sidebar-content-container" }, Bi = {
|
|
1716
1726
|
key: 0,
|
|
1717
1727
|
class: "sidebar-top"
|
|
1718
|
-
}, xi = { "aria-label": "Main menu" },
|
|
1728
|
+
}, xi = { "aria-label": "Main menu" }, Li = ["id"], Mi = ["aria-labelledby"], ji = {
|
|
1719
1729
|
key: 1,
|
|
1720
1730
|
class: "sidebar-level-divider",
|
|
1721
1731
|
role: "separator"
|
|
1722
|
-
},
|
|
1732
|
+
}, Pi = {
|
|
1723
1733
|
key: 2,
|
|
1724
1734
|
class: "level-primary bottom-items"
|
|
1725
|
-
},
|
|
1735
|
+
}, Ki = { class: "sidebar-footer" }, ye = "_ungrouped", Zi = /* @__PURE__ */ ie({
|
|
1726
1736
|
__name: "AppSidebar",
|
|
1727
1737
|
props: {
|
|
1728
1738
|
topItems: {
|
|
@@ -1786,19 +1796,19 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
1786
1796
|
emits: ["click", "toggle", "toggle-collapse"],
|
|
1787
1797
|
setup(a, { emit: t }) {
|
|
1788
1798
|
yt((d) => ({
|
|
1789
|
-
"
|
|
1790
|
-
"
|
|
1791
|
-
|
|
1792
|
-
"
|
|
1793
|
-
"
|
|
1794
|
-
"
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
"
|
|
1799
|
+
"0cada156": f.value.mobileHeight,
|
|
1800
|
+
"567b81e7": f.value.mobileTop,
|
|
1801
|
+
26636033: a.zIndex,
|
|
1802
|
+
"46f3d513": f.value.height,
|
|
1803
|
+
"42d2e4e9": f.value.top,
|
|
1804
|
+
"7276653d": w.value.marginTop,
|
|
1805
|
+
"5a2fa60c": x.value,
|
|
1806
|
+
"372449a2": b.value.display,
|
|
1807
|
+
"69ab7946": b.value.minHeight,
|
|
1808
|
+
"265869b8": T.value.top,
|
|
1809
|
+
"52dccd35": T.value.zIndex
|
|
1800
1810
|
}));
|
|
1801
|
-
const r = t, n = a, s =
|
|
1811
|
+
const r = t, n = a, s = je(), c = S(() => !!s.header), o = S(() => !!s.top), f = S(() => ({
|
|
1802
1812
|
mobileTop: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : n.topOffset ? `${n.topOffset}px` : "0",
|
|
1803
1813
|
top: n.topOffset ? `${n.topOffset}px` : "0",
|
|
1804
1814
|
mobileHeight: n.mobileTopOffset && n.mobileEnabled ? `calc(100% - ${n.mobileTopOffset}px)` : "100%",
|
|
@@ -1807,29 +1817,29 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
1807
1817
|
display: !n.mobileHeaderVisible && n.mobileEnabled ? "none" : "flex",
|
|
1808
1818
|
minHeight: `${n.headerHeight}px`
|
|
1809
1819
|
})), w = S(() => ({
|
|
1810
|
-
marginTop:
|
|
1811
|
-
})),
|
|
1820
|
+
marginTop: c.value ? `${n.headerHeight}px` : "0"
|
|
1821
|
+
})), T = S(() => ({
|
|
1812
1822
|
top: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : "0",
|
|
1813
1823
|
zIndex: n.mobileOverlayZIndex !== null ? n.mobileOverlayZIndex : n.zIndex > 1 ? n.zIndex - 1 : 1
|
|
1814
|
-
})), R = (d) =>
|
|
1815
|
-
var m,
|
|
1824
|
+
})), R = (d) => Ni(d).map((_) => {
|
|
1825
|
+
var m, W, P;
|
|
1816
1826
|
if (_) {
|
|
1817
|
-
(!_.key || !((m = _.key) != null && m.trim())) && (_.key = String(_.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!_.testId || !((
|
|
1827
|
+
(!_.key || !((m = _.key) != null && m.trim())) && (_.key = String(_.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!_.testId || !((W = _.testId) != null && W.trim())) && (_.testId = String(_.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1818
1828
|
for (const X of _.items || [])
|
|
1819
1829
|
X.parentKey = _.key, (!X.testId || !((P = X.testId) != null && P.trim())) && (X.testId = String(X.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1820
1830
|
}
|
|
1821
1831
|
return _;
|
|
1822
|
-
}),
|
|
1832
|
+
}), B = S(() => n.topItems.length ? R(n.topItems) : []), j = S(() => n.bottomItems.length ? R(n.bottomItems) : []), $ = (d = "") => d.trim().replace(" ", "").replace(/[^a-z0-9]+/gi, "-").toLowerCase(), M = S(() => {
|
|
1823
1833
|
var y;
|
|
1824
1834
|
const d = /* @__PURE__ */ new Map();
|
|
1825
|
-
d.set(
|
|
1826
|
-
for (const _ of
|
|
1827
|
-
const m = _.group ||
|
|
1835
|
+
d.set(ye, []);
|
|
1836
|
+
for (const _ of B.value) {
|
|
1837
|
+
const m = _.group || ye;
|
|
1828
1838
|
d.has(m) || d.set(m, []), (y = d.get(m)) == null || y.push(_);
|
|
1829
1839
|
}
|
|
1830
1840
|
return d;
|
|
1831
1841
|
}), V = (d = "") => {
|
|
1832
|
-
if (d ===
|
|
1842
|
+
if (d === ye || !d.trim())
|
|
1833
1843
|
return null;
|
|
1834
1844
|
const y = {
|
|
1835
1845
|
label: d,
|
|
@@ -1838,40 +1848,40 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
1838
1848
|
};
|
|
1839
1849
|
let _ = d.trim().replace(" ", "");
|
|
1840
1850
|
return _ = _.charAt(0).toLowerCase() + _.slice(1), d && n.groupConfig && (n.groupConfig[d] || n.groupConfig[_]) ? n.groupConfig[d] || n.groupConfig[_] : y;
|
|
1841
|
-
},
|
|
1851
|
+
}, K = (d) => {
|
|
1842
1852
|
var y;
|
|
1843
1853
|
return !!((y = V(d)) != null && y.collapsible);
|
|
1844
|
-
},
|
|
1854
|
+
}, te = (d) => {
|
|
1845
1855
|
var y;
|
|
1846
1856
|
return !!((y = V(d)) != null && y.collapsed);
|
|
1847
1857
|
}, de = (d, y, _) => {
|
|
1848
1858
|
const m = V(d);
|
|
1849
1859
|
m && (m.collapsed = !y), _(), r("toggle-collapse", d, m);
|
|
1850
|
-
}, q = ee(n.open),
|
|
1860
|
+
}, q = ee(n.open), re = (d) => {
|
|
1851
1861
|
var y, _;
|
|
1852
|
-
q.value !== d && (q.value = d, r("toggle", d)), d ? (y = document == null ? void 0 : document.body) == null || y.classList.add("kong-ui-app-sidebar-open") : (_ = document == null ? void 0 : document.body) == null || _.classList.remove("kong-ui-app-sidebar-open"),
|
|
1853
|
-
},
|
|
1854
|
-
n.mobileOverlayCloseOnClick &&
|
|
1855
|
-
},
|
|
1856
|
-
|
|
1857
|
-
|
|
1862
|
+
q.value !== d && (q.value = d, r("toggle", d)), d ? (y = document == null ? void 0 : document.body) == null || y.classList.add("kong-ui-app-sidebar-open") : (_ = document == null ? void 0 : document.body) == null || _.classList.remove("kong-ui-app-sidebar-open"), ne.value = !1;
|
|
1863
|
+
}, ae = () => {
|
|
1864
|
+
n.mobileOverlayCloseOnClick && re(!1);
|
|
1865
|
+
}, ne = ee(!1), F = (d) => {
|
|
1866
|
+
ne.value = !0, r("click", d), setTimeout(() => {
|
|
1867
|
+
re(!1);
|
|
1858
1868
|
}, n.mobileCloseDelay);
|
|
1859
1869
|
};
|
|
1860
|
-
|
|
1861
|
-
|
|
1870
|
+
Fe(() => n.open, (d) => {
|
|
1871
|
+
re(d);
|
|
1862
1872
|
});
|
|
1863
|
-
const { debounce:
|
|
1864
|
-
q.value &&
|
|
1865
|
-
}, 200),
|
|
1866
|
-
A.value || (A.value = !0, clearTimeout(
|
|
1867
|
-
}, g = ee(null),
|
|
1873
|
+
const { debounce: G } = ca(), Z = G(() => {
|
|
1874
|
+
q.value && H.value !== (window == null ? void 0 : window.innerWidth) && (H.value = window == null ? void 0 : window.innerWidth, re(!1));
|
|
1875
|
+
}, 200), H = ee(), A = ee(!1), u = ee(), v = () => {
|
|
1876
|
+
A.value || (A.value = !0, clearTimeout(u.value), u.value = setTimeout(() => A.value = !1, 1300));
|
|
1877
|
+
}, g = ee(null), N = S(() => q.value && n.mobileEnabled), D = async (d) => {
|
|
1868
1878
|
var y, _;
|
|
1869
1879
|
d ? (await Ht(), await new Promise((m) => setTimeout(m, 300)), (y = g.value) == null || y.activate()) : (_ = g.value) == null || _.deactivate();
|
|
1870
1880
|
};
|
|
1871
|
-
|
|
1872
|
-
d ? await
|
|
1881
|
+
Fe(N, async (d) => {
|
|
1882
|
+
d ? await D(!0) : await D(!1);
|
|
1873
1883
|
}, { immediate: !0 });
|
|
1874
|
-
const x = ee("0px"),
|
|
1884
|
+
const x = ee("0px"), O = () => {
|
|
1875
1885
|
var X;
|
|
1876
1886
|
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((X = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : X.platform)))
|
|
1877
1887
|
return;
|
|
@@ -1881,126 +1891,134 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
1881
1891
|
y.style.overflow = "scroll";
|
|
1882
1892
|
const m = document.createElement("div");
|
|
1883
1893
|
m.style.width = "100%", y.appendChild(m);
|
|
1884
|
-
const
|
|
1885
|
-
y.parentNode && y.parentNode.removeChild(y), _ -
|
|
1894
|
+
const W = m.offsetWidth;
|
|
1895
|
+
y.parentNode && y.parentNode.removeChild(y), _ - W === 0 && (x.value = "8px");
|
|
1886
1896
|
};
|
|
1887
|
-
return
|
|
1888
|
-
if (
|
|
1897
|
+
return Pe(async () => {
|
|
1898
|
+
if (H.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", Z), window.addEventListener("resize", v), n.groupConfig) {
|
|
1889
1899
|
for (const d in n.groupConfig)
|
|
1890
|
-
if (Er(`(max-width: ${
|
|
1900
|
+
if (Er(`(max-width: ${xr})`)) {
|
|
1891
1901
|
const y = n.groupConfig[d];
|
|
1892
1902
|
y.collapsed = !1;
|
|
1893
1903
|
}
|
|
1894
1904
|
}
|
|
1895
|
-
await Ht(),
|
|
1905
|
+
await Ht(), O();
|
|
1896
1906
|
}), ea(() => {
|
|
1897
|
-
window.removeEventListener("resize",
|
|
1907
|
+
window.removeEventListener("resize", Z), window.removeEventListener("resize", v);
|
|
1898
1908
|
}), (d, y) => {
|
|
1899
|
-
const _ =
|
|
1900
|
-
return p(),
|
|
1901
|
-
q.value && a.mobileOverlay && a.mobileEnabled ? (p(),
|
|
1909
|
+
const _ = pe("KCollapse");
|
|
1910
|
+
return p(), k($e, null, [
|
|
1911
|
+
q.value && a.mobileOverlay && a.mobileEnabled ? (p(), k("div", {
|
|
1902
1912
|
key: 0,
|
|
1903
1913
|
class: "kong-ui-app-sidebar-overlay",
|
|
1904
|
-
onClick:
|
|
1905
|
-
})) :
|
|
1906
|
-
|
|
1914
|
+
onClick: ae
|
|
1915
|
+
})) : I("", !0),
|
|
1916
|
+
Ae(ve(Ei), {
|
|
1907
1917
|
ref_key: "focusTrap",
|
|
1908
1918
|
ref: g,
|
|
1909
1919
|
active: !1,
|
|
1910
1920
|
"allow-outside-click": "",
|
|
1911
1921
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1912
1922
|
}, {
|
|
1913
|
-
default:
|
|
1923
|
+
default: L(() => [
|
|
1914
1924
|
E("aside", {
|
|
1915
|
-
class:
|
|
1925
|
+
class: se(["kong-ui-app-sidebar", {
|
|
1916
1926
|
"sidebar-open": q.value,
|
|
1917
|
-
"no-sidebar-header": !
|
|
1918
|
-
"mobile-header-hidden": a.mobileEnabled && (!
|
|
1927
|
+
"no-sidebar-header": !c.value,
|
|
1928
|
+
"mobile-header-hidden": a.mobileEnabled && (!c.value || !a.mobileHeaderVisible),
|
|
1919
1929
|
"mobile-disabled": !a.mobileEnabled,
|
|
1920
1930
|
"disable-transitions": A.value
|
|
1921
1931
|
}]),
|
|
1922
1932
|
tabindex: "-1"
|
|
1923
1933
|
}, [
|
|
1924
|
-
|
|
1934
|
+
c.value ? (p(), k("div", Di, [
|
|
1925
1935
|
C(d.$slots, "header", {}, void 0, !0)
|
|
1926
|
-
])) :
|
|
1927
|
-
E("div",
|
|
1928
|
-
o.value ? (p(),
|
|
1936
|
+
])) : I("", !0),
|
|
1937
|
+
E("div", Ri, [
|
|
1938
|
+
o.value ? (p(), k("div", Bi, [
|
|
1929
1939
|
C(d.$slots, "top", {}, void 0, !0)
|
|
1930
|
-
])) :
|
|
1940
|
+
])) : I("", !0),
|
|
1931
1941
|
E("nav", xi, [
|
|
1932
|
-
|
|
1942
|
+
M.value.size > 0 ? (p(!0), k($e, { key: 0 }, be(M.value, ([m, W]) => (p(), z(_, {
|
|
1933
1943
|
key: m,
|
|
1934
|
-
class:
|
|
1935
|
-
"not-collapsible": !
|
|
1936
|
-
ungrouped: m ===
|
|
1944
|
+
class: se(["level-primary-group-collapse", {
|
|
1945
|
+
"not-collapsible": !K(m),
|
|
1946
|
+
ungrouped: m === ye
|
|
1937
1947
|
}]),
|
|
1938
|
-
"data-testid": m ===
|
|
1939
|
-
"model-value":
|
|
1948
|
+
"data-testid": m === ye ? "level-primary-group-collapse-ungrouped" : `level-primary-group-collapse-${m}`,
|
|
1949
|
+
"model-value": K(m) && te(m) || !1
|
|
1940
1950
|
}, {
|
|
1941
|
-
trigger:
|
|
1942
|
-
(p(),
|
|
1943
|
-
appearance:
|
|
1951
|
+
trigger: L(({ isCollapsed: P, toggle: X }) => [
|
|
1952
|
+
(p(), z(Ee(K(m) ? ve(Ln) : "div"), {
|
|
1953
|
+
appearance: K(m) ? "none" : void 0,
|
|
1944
1954
|
class: "level-primary-group-collapse-trigger",
|
|
1945
|
-
onClick: (le) =>
|
|
1955
|
+
onClick: (le) => K(m) ? de(m, P, X) : void 0
|
|
1946
1956
|
}, {
|
|
1947
|
-
default:
|
|
1957
|
+
default: L(() => {
|
|
1948
1958
|
var le;
|
|
1949
1959
|
return [
|
|
1950
|
-
m !==
|
|
1960
|
+
m !== ye ? (p(), k("div", {
|
|
1951
1961
|
key: 0,
|
|
1952
|
-
id: `level-primary-group-${
|
|
1962
|
+
id: `level-primary-group-${$(m)}`,
|
|
1953
1963
|
class: "level-primary-group-name",
|
|
1954
1964
|
"data-testid": "level-primary-group-name",
|
|
1955
1965
|
role: "presentation"
|
|
1956
|
-
}, Y(((le = V(m)) == null ? void 0 : le.label) || m), 9,
|
|
1957
|
-
|
|
1966
|
+
}, Y(((le = V(m)) == null ? void 0 : le.label) || m), 9, Li)) : I("", !0),
|
|
1967
|
+
K(m) ? (p(), z(Ee(P ? ve(ta) : ve(xn)), {
|
|
1958
1968
|
key: 1,
|
|
1959
1969
|
class: "level-primary-group-collapse-icon",
|
|
1960
1970
|
color: ve(Mr),
|
|
1961
1971
|
"data-testid": "level-primary-group-collapse-icon",
|
|
1962
1972
|
size: ve(Lr)
|
|
1963
|
-
}, null, 8, ["color", "size"])) :
|
|
1973
|
+
}, null, 8, ["color", "size"])) : I("", !0)
|
|
1964
1974
|
];
|
|
1965
1975
|
}),
|
|
1966
1976
|
_: 2
|
|
1967
1977
|
}, 1032, ["appearance", "onClick"]))
|
|
1968
1978
|
]),
|
|
1969
|
-
default:
|
|
1979
|
+
default: L(() => [
|
|
1970
1980
|
E("ul", {
|
|
1971
|
-
"aria-labelledby": m !==
|
|
1981
|
+
"aria-labelledby": m !== ye ? `level-primary-group-${$(m)}` : void 0,
|
|
1972
1982
|
class: "level-primary top-items"
|
|
1973
1983
|
}, [
|
|
1974
|
-
(p(!0),
|
|
1984
|
+
(p(!0), k($e, null, be(W, (P) => (p(), z(zt, {
|
|
1975
1985
|
key: P.name,
|
|
1976
1986
|
item: P,
|
|
1977
|
-
onClick:
|
|
1978
|
-
}, {
|
|
1979
|
-
[`sidebar-icon-${P.key}`]:
|
|
1987
|
+
onClick: F
|
|
1988
|
+
}, Me({
|
|
1989
|
+
[`sidebar-icon-${P.key}`]: L(() => [
|
|
1980
1990
|
C(d.$slots, `sidebar-icon-${P.key}`, {}, void 0, !0)
|
|
1981
1991
|
]),
|
|
1982
1992
|
_: 2
|
|
1983
|
-
},
|
|
1984
|
-
|
|
1993
|
+
}, [
|
|
1994
|
+
d.$slots[`sidebar-after-${P.key}`] ? {
|
|
1995
|
+
name: `sidebar-after-${P.key}`,
|
|
1996
|
+
fn: L(() => [
|
|
1997
|
+
C(d.$slots, `sidebar-after-${P.key}`, {}, void 0, !0)
|
|
1998
|
+
]),
|
|
1999
|
+
key: "0"
|
|
2000
|
+
} : void 0
|
|
2001
|
+
]), 1032, ["item"]))), 128))
|
|
2002
|
+
], 8, Mi)
|
|
1985
2003
|
]),
|
|
1986
2004
|
_: 2
|
|
1987
|
-
}, 1032, ["class", "data-testid", "model-value"]))), 128)) :
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
(p(!0),
|
|
2005
|
+
}, 1032, ["class", "data-testid", "model-value"]))), 128)) : I("", !0),
|
|
2006
|
+
M.value.size > 0 && j.value.length ? (p(), k("div", ji)) : I("", !0),
|
|
2007
|
+
j.value.length ? (p(), k("ul", Pi, [
|
|
2008
|
+
(p(!0), k($e, null, be(j.value, (m) => (p(), z(zt, {
|
|
1991
2009
|
key: m.name,
|
|
1992
2010
|
item: m,
|
|
1993
|
-
onClick:
|
|
2011
|
+
onClick: F
|
|
1994
2012
|
}, {
|
|
1995
|
-
[`sidebar-icon-${m.key}`]:
|
|
2013
|
+
[`sidebar-icon-${m.key}`]: L(() => [
|
|
1996
2014
|
C(d.$slots, `sidebar-icon-${m.key}`, {}, void 0, !0)
|
|
1997
2015
|
]),
|
|
1998
2016
|
_: 2
|
|
1999
2017
|
}, 1032, ["item"]))), 128))
|
|
2000
|
-
])) :
|
|
2018
|
+
])) : I("", !0)
|
|
2001
2019
|
])
|
|
2002
2020
|
]),
|
|
2003
|
-
E("div",
|
|
2021
|
+
E("div", Ki, [
|
|
2004
2022
|
C(d.$slots, "footer", {}, void 0, !0)
|
|
2005
2023
|
])
|
|
2006
2024
|
], 2)
|
|
@@ -2010,7 +2028,7 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
2010
2028
|
], 64);
|
|
2011
2029
|
};
|
|
2012
2030
|
}
|
|
2013
|
-
}),
|
|
2031
|
+
}), Hi = /* @__PURE__ */ oe(Zi, [["__scopeId", "data-v-59a8f3eb"]]), Wi = ["aria-label"], zi = /* @__PURE__ */ ie({
|
|
2014
2032
|
__name: "SidebarToggle",
|
|
2015
2033
|
props: {
|
|
2016
2034
|
active: {
|
|
@@ -2020,31 +2038,31 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
2020
2038
|
},
|
|
2021
2039
|
emits: ["toggle"],
|
|
2022
2040
|
setup(a, { emit: t }) {
|
|
2023
|
-
const r = t, n = a, s = ee(n.active || !1),
|
|
2041
|
+
const r = t, n = a, s = ee(n.active || !1), c = (o) => {
|
|
2024
2042
|
o.preventDefault(), s.value = !s.value, r("toggle", s.value);
|
|
2025
2043
|
};
|
|
2026
|
-
return
|
|
2044
|
+
return Fe(() => n.active, (o) => {
|
|
2027
2045
|
s.value = o;
|
|
2028
|
-
}), (o,
|
|
2046
|
+
}), (o, f) => (p(), k("a", {
|
|
2029
2047
|
"aria-haspopup": "true",
|
|
2030
2048
|
"aria-label": s.value ? "Close Main Menu" : "Open Main Menu",
|
|
2031
|
-
class:
|
|
2049
|
+
class: se(["sidebar-menu-toggle", { active: s.value }]),
|
|
2032
2050
|
href: "#",
|
|
2033
2051
|
role: "button",
|
|
2034
|
-
onClick: Rn(
|
|
2035
|
-
},
|
|
2052
|
+
onClick: Rn(c, ["prevent"])
|
|
2053
|
+
}, f[0] || (f[0] = [
|
|
2036
2054
|
E("span", { class: "line" }, null, -1),
|
|
2037
2055
|
E("span", { class: "line" }, null, -1),
|
|
2038
2056
|
E("span", { class: "line" }, null, -1)
|
|
2039
|
-
]), 10,
|
|
2057
|
+
]), 10, Wi));
|
|
2040
2058
|
}
|
|
2041
|
-
}),
|
|
2059
|
+
}), Gi = /* @__PURE__ */ oe(zi, [["__scopeId", "data-v-cbb41bbd"]]), Ui = { id: "kong-ui-app-layout-notification" }, Vi = { class: "mobile-logo" }, qi = {
|
|
2042
2060
|
key: 0,
|
|
2043
2061
|
class: "navbar-logo"
|
|
2044
|
-
},
|
|
2062
|
+
}, Xi = {
|
|
2045
2063
|
class: "kong-ui-app-layout-main",
|
|
2046
2064
|
"data-testid": "kong-ui-app-layout-main"
|
|
2047
|
-
},
|
|
2065
|
+
}, Yi = { class: "kong-ui-app-layout-content" }, Qi = { class: "kong-ui-app-layout-content-inner" }, Ji = /* @__PURE__ */ ie({
|
|
2048
2066
|
__name: "AppLayout",
|
|
2049
2067
|
props: {
|
|
2050
2068
|
hideDefaultSlot: {
|
|
@@ -2085,14 +2103,14 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
2085
2103
|
},
|
|
2086
2104
|
emits: ["sidebar-click", "update:topOffset", "toggle-collapse"],
|
|
2087
2105
|
setup(a, { emit: t }) {
|
|
2088
|
-
yt((
|
|
2089
|
-
"
|
|
2090
|
-
"
|
|
2091
|
-
"
|
|
2092
|
-
"
|
|
2093
|
-
"
|
|
2106
|
+
yt((F) => ({
|
|
2107
|
+
"26cbc8ac": K.value,
|
|
2108
|
+
"4eb9dde2": te.value,
|
|
2109
|
+
"5f0811fa": V.value,
|
|
2110
|
+
"37ad0844": de.value,
|
|
2111
|
+
"999c315e": q.value
|
|
2094
2112
|
}));
|
|
2095
|
-
const r = a, n = t, s =
|
|
2113
|
+
const r = a, n = t, s = je(), c = qe({
|
|
2096
2114
|
navbarLeft: S(() => !!s["navbar-left"]),
|
|
2097
2115
|
navbarCenter: S(() => !!s["navbar-center"]),
|
|
2098
2116
|
navbarRight: S(() => !!s["navbar-right"]),
|
|
@@ -2101,183 +2119,189 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
2101
2119
|
sidebarHeader: S(() => !!s["sidebar-header"]),
|
|
2102
2120
|
sidebarTop: S(() => !!s["sidebar-top"]),
|
|
2103
2121
|
sidebarFooter: S(() => !!s["sidebar-footer"])
|
|
2104
|
-
}), o = S(() => r.hideDefaultSlot),
|
|
2122
|
+
}), o = S(() => r.hideDefaultSlot), f = qe({
|
|
2105
2123
|
hidden: S(() => r.navbarHidden)
|
|
2106
|
-
}), b =
|
|
2124
|
+
}), b = qe({
|
|
2107
2125
|
topItems: S(() => r.sidebarTopItems),
|
|
2108
2126
|
bottomItems: S(() => r.sidebarBottomItems),
|
|
2109
2127
|
open: S(() => r.sidebarOpen),
|
|
2110
2128
|
hidden: S(() => r.sidebarHidden)
|
|
2111
|
-
}), w = (
|
|
2112
|
-
n("sidebar-click",
|
|
2113
|
-
},
|
|
2114
|
-
|
|
2129
|
+
}), w = (F) => {
|
|
2130
|
+
n("sidebar-click", F);
|
|
2131
|
+
}, T = ee(!1), R = (F) => {
|
|
2132
|
+
T.value = F;
|
|
2115
2133
|
};
|
|
2116
2134
|
Jt(() => {
|
|
2117
|
-
|
|
2135
|
+
T.value = Bn(b, "open").value || !1;
|
|
2118
2136
|
});
|
|
2119
|
-
const
|
|
2120
|
-
if (
|
|
2121
|
-
|
|
2122
|
-
const
|
|
2123
|
-
|
|
2137
|
+
const B = ee(0), j = ee(60), $ = ee(0), M = S(() => f.hidden ? $.value : j.value + $.value), V = S(() => r.theme === "light" ? Nr : Dr), K = S(() => r.theme === "light" ? Ar : Fr), te = S(() => r.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), de = S(() => `${M.value}px`), q = S(() => b.hidden || f.hidden ? Rr : Br), { debounce: re } = ca(), ae = re((F = !1) => {
|
|
2138
|
+
if (F || B.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
2139
|
+
B.value = window == null ? void 0 : window.innerWidth;
|
|
2140
|
+
const G = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2141
|
+
G && ($.value = G.offsetHeight);
|
|
2124
2142
|
}
|
|
2125
|
-
}, 200),
|
|
2126
|
-
return
|
|
2127
|
-
n("update:topOffset",
|
|
2128
|
-
}, { immediate: !0 }),
|
|
2129
|
-
var
|
|
2130
|
-
(
|
|
2131
|
-
const
|
|
2132
|
-
|
|
2143
|
+
}, 200), ne = ee();
|
|
2144
|
+
return Fe($, (F) => {
|
|
2145
|
+
n("update:topOffset", F || 0);
|
|
2146
|
+
}, { immediate: !0 }), Pe(() => {
|
|
2147
|
+
var G, Z;
|
|
2148
|
+
(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"), B.value = window == null ? void 0 : window.innerWidth, ae(!0);
|
|
2149
|
+
const F = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2150
|
+
F && (ne.value = new ResizeObserver((H) => {
|
|
2133
2151
|
window.requestAnimationFrame(() => {
|
|
2134
|
-
if (!(!Array.isArray(
|
|
2135
|
-
for (const A of
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2152
|
+
if (!(!Array.isArray(H) || !H.length))
|
|
2153
|
+
for (const A of H) {
|
|
2154
|
+
const u = A.contentRect.height;
|
|
2155
|
+
$.value !== u && ($.value = u);
|
|
2138
2156
|
}
|
|
2139
2157
|
});
|
|
2140
|
-
}),
|
|
2158
|
+
}), ne.value.observe(F)), window.addEventListener("resize", ae);
|
|
2141
2159
|
}), ea(() => {
|
|
2142
|
-
|
|
2143
|
-
}), (
|
|
2144
|
-
class:
|
|
2145
|
-
{ "navbar-hidden":
|
|
2160
|
+
ne.value && ne.value.disconnect(), window.removeEventListener("resize", ae);
|
|
2161
|
+
}), (F, G) => (p(), k("div", {
|
|
2162
|
+
class: se(["kong-ui-app-layout", [
|
|
2163
|
+
{ "navbar-hidden": f.hidden },
|
|
2146
2164
|
{ "sidebar-hidden": b.hidden }
|
|
2147
2165
|
]])
|
|
2148
2166
|
}, [
|
|
2149
|
-
E("div",
|
|
2150
|
-
C(
|
|
2167
|
+
E("div", Ui, [
|
|
2168
|
+
C(F.$slots, "notification", {}, void 0, !0)
|
|
2151
2169
|
]),
|
|
2152
|
-
|
|
2170
|
+
f.hidden ? I("", !0) : (p(), z(hr, {
|
|
2153
2171
|
key: String(b.hidden),
|
|
2154
2172
|
"left-offset": b.hidden ? 0 : void 0,
|
|
2155
|
-
"top-offset":
|
|
2156
|
-
},
|
|
2157
|
-
"mobile-sidebar-toggle":
|
|
2158
|
-
b.hidden ?
|
|
2173
|
+
"top-offset": $.value
|
|
2174
|
+
}, Me({
|
|
2175
|
+
"mobile-sidebar-toggle": L(() => [
|
|
2176
|
+
b.hidden ? I("", !0) : (p(), z(Gi, {
|
|
2159
2177
|
key: 0,
|
|
2160
|
-
active:
|
|
2178
|
+
active: T.value,
|
|
2161
2179
|
onToggle: R
|
|
2162
2180
|
}, null, 8, ["active"]))
|
|
2163
2181
|
]),
|
|
2164
2182
|
_: 2
|
|
2165
2183
|
}, [
|
|
2166
|
-
|
|
2184
|
+
c.navbarMobileLogo ? {
|
|
2167
2185
|
name: "mobile-logo",
|
|
2168
|
-
fn:
|
|
2169
|
-
E("div",
|
|
2170
|
-
C(
|
|
2186
|
+
fn: L(() => [
|
|
2187
|
+
E("div", Vi, [
|
|
2188
|
+
C(F.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
2171
2189
|
])
|
|
2172
2190
|
]),
|
|
2173
2191
|
key: "0"
|
|
2174
2192
|
} : void 0,
|
|
2175
|
-
|
|
2193
|
+
c.navbarLogo ? {
|
|
2176
2194
|
name: "logo",
|
|
2177
|
-
fn:
|
|
2178
|
-
b.hidden ? (p(),
|
|
2179
|
-
C(
|
|
2180
|
-
])) :
|
|
2195
|
+
fn: L(() => [
|
|
2196
|
+
b.hidden ? (p(), k("div", qi, [
|
|
2197
|
+
C(F.$slots, "navbar-logo", {}, void 0, !0)
|
|
2198
|
+
])) : I("", !0)
|
|
2181
2199
|
]),
|
|
2182
2200
|
key: "1"
|
|
2183
2201
|
} : void 0,
|
|
2184
|
-
|
|
2202
|
+
c.navbarLeft ? {
|
|
2185
2203
|
name: "left",
|
|
2186
|
-
fn:
|
|
2187
|
-
C(
|
|
2204
|
+
fn: L(() => [
|
|
2205
|
+
C(F.$slots, "navbar-left", {}, void 0, !0)
|
|
2188
2206
|
]),
|
|
2189
2207
|
key: "2"
|
|
2190
2208
|
} : void 0,
|
|
2191
|
-
|
|
2209
|
+
c.navbarCenter ? {
|
|
2192
2210
|
name: "center",
|
|
2193
|
-
fn:
|
|
2194
|
-
C(
|
|
2211
|
+
fn: L(() => [
|
|
2212
|
+
C(F.$slots, "navbar-center", {}, void 0, !0)
|
|
2195
2213
|
]),
|
|
2196
2214
|
key: "3"
|
|
2197
2215
|
} : void 0,
|
|
2198
|
-
|
|
2216
|
+
c.navbarRight ? {
|
|
2199
2217
|
name: "right",
|
|
2200
|
-
fn:
|
|
2201
|
-
C(
|
|
2218
|
+
fn: L(() => [
|
|
2219
|
+
C(F.$slots, "navbar-right", {}, void 0, !0)
|
|
2202
2220
|
]),
|
|
2203
2221
|
key: "4"
|
|
2204
2222
|
} : void 0
|
|
2205
2223
|
]), 1032, ["left-offset", "top-offset"])),
|
|
2206
|
-
b.hidden ?
|
|
2224
|
+
b.hidden ? I("", !0) : (p(), z(Hi, {
|
|
2207
2225
|
key: 1,
|
|
2208
2226
|
"bottom-items": b.bottomItems,
|
|
2209
2227
|
"group-config": a.groupConfig,
|
|
2210
|
-
"header-height":
|
|
2228
|
+
"header-height": j.value,
|
|
2211
2229
|
"mobile-enabled": "",
|
|
2212
2230
|
"mobile-header-visible": !1,
|
|
2213
|
-
"mobile-top-offset":
|
|
2214
|
-
open:
|
|
2231
|
+
"mobile-top-offset": M.value,
|
|
2232
|
+
open: T.value,
|
|
2215
2233
|
"top-items": b.topItems,
|
|
2216
|
-
"top-offset":
|
|
2234
|
+
"top-offset": $.value,
|
|
2217
2235
|
onClick: w,
|
|
2218
2236
|
onToggle: R,
|
|
2219
|
-
onToggleCollapse:
|
|
2220
|
-
},
|
|
2221
|
-
|
|
2237
|
+
onToggleCollapse: G[0] || (G[0] = (Z, H) => n("toggle-collapse", Z, H))
|
|
2238
|
+
}, Me({ _: 2 }, [
|
|
2239
|
+
c.sidebarHeader ? {
|
|
2222
2240
|
name: "header",
|
|
2223
|
-
fn:
|
|
2224
|
-
C(
|
|
2241
|
+
fn: L(() => [
|
|
2242
|
+
C(F.$slots, "sidebar-header", {}, void 0, !0)
|
|
2225
2243
|
]),
|
|
2226
2244
|
key: "0"
|
|
2227
2245
|
} : void 0,
|
|
2228
|
-
|
|
2246
|
+
c.sidebarTop ? {
|
|
2229
2247
|
name: "top",
|
|
2230
|
-
fn:
|
|
2231
|
-
C(
|
|
2248
|
+
fn: L(() => [
|
|
2249
|
+
C(F.$slots, "sidebar-top", {}, void 0, !0)
|
|
2232
2250
|
]),
|
|
2233
2251
|
key: "1"
|
|
2234
2252
|
} : void 0,
|
|
2235
|
-
|
|
2253
|
+
c.sidebarFooter ? {
|
|
2236
2254
|
name: "footer",
|
|
2237
|
-
fn:
|
|
2238
|
-
C(
|
|
2255
|
+
fn: L(() => [
|
|
2256
|
+
C(F.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2239
2257
|
]),
|
|
2240
2258
|
key: "2"
|
|
2241
2259
|
} : void 0,
|
|
2242
|
-
|
|
2243
|
-
name: `sidebar-icon-${
|
|
2244
|
-
fn:
|
|
2245
|
-
C(
|
|
2260
|
+
be([...b.topItems || [], ...b.bottomItems || []], (Z) => ({
|
|
2261
|
+
name: `sidebar-icon-${Z.key}`,
|
|
2262
|
+
fn: L(() => [
|
|
2263
|
+
C(F.$slots, `sidebar-icon-${Z.key}`, {}, void 0, !0)
|
|
2264
|
+
])
|
|
2265
|
+
})),
|
|
2266
|
+
be([...b.topItems || [], ...b.bottomItems || []], (Z) => ({
|
|
2267
|
+
name: `sidebar-after-${Z.key}`,
|
|
2268
|
+
fn: L(() => [
|
|
2269
|
+
C(F.$slots, `sidebar-after-${Z.key}`, {}, void 0, !0)
|
|
2246
2270
|
])
|
|
2247
2271
|
}))
|
|
2248
2272
|
]), 1032, ["bottom-items", "group-config", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2249
|
-
E("main",
|
|
2250
|
-
E("div",
|
|
2251
|
-
E("div",
|
|
2252
|
-
|
|
2253
|
-
C(
|
|
2254
|
-
o.value ?
|
|
2273
|
+
E("main", Xi, [
|
|
2274
|
+
E("div", Yi, [
|
|
2275
|
+
E("div", Qi, [
|
|
2276
|
+
G[1] || (G[1] = E("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2277
|
+
C(F.$slots, "app-error", {}, void 0, !0),
|
|
2278
|
+
o.value ? I("", !0) : C(F.$slots, "default", { key: 0 }, void 0, !0)
|
|
2255
2279
|
])
|
|
2256
2280
|
])
|
|
2257
2281
|
])
|
|
2258
2282
|
], 2));
|
|
2259
2283
|
}
|
|
2260
|
-
}),
|
|
2284
|
+
}), eo = /* @__PURE__ */ oe(Ji, [["__scopeId", "data-v-a92b50c0"]]), to = { class: "kong-ui-app-page-header" }, ao = {
|
|
2261
2285
|
key: 0,
|
|
2262
2286
|
class: "page-header-breadcrumbs",
|
|
2263
2287
|
"data-testid": "page-header-breadcrumbs"
|
|
2264
|
-
},
|
|
2288
|
+
}, no = { class: "page-header-title-section" }, ro = { class: "page-header-title-wrapper" }, io = {
|
|
2265
2289
|
key: 0,
|
|
2266
2290
|
class: "page-header-title-before",
|
|
2267
2291
|
"data-testid": "page-header-title-before"
|
|
2268
|
-
},
|
|
2292
|
+
}, oo = ["title"], so = {
|
|
2269
2293
|
key: 1,
|
|
2270
2294
|
class: "page-header-title-after",
|
|
2271
2295
|
"data-testid": "page-header-title-after"
|
|
2272
|
-
},
|
|
2296
|
+
}, lo = {
|
|
2273
2297
|
key: 0,
|
|
2274
2298
|
class: "page-header-actions",
|
|
2275
2299
|
"data-testid": "page-header-actions"
|
|
2276
|
-
},
|
|
2300
|
+
}, co = {
|
|
2277
2301
|
key: 1,
|
|
2278
2302
|
class: "page-header-section-below",
|
|
2279
2303
|
"data-testid": "page-header-section-below"
|
|
2280
|
-
},
|
|
2304
|
+
}, uo = /* @__PURE__ */ ie({
|
|
2281
2305
|
__name: "AppPageHeader",
|
|
2282
2306
|
props: {
|
|
2283
2307
|
title: {
|
|
@@ -2291,59 +2315,59 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
2291
2315
|
}
|
|
2292
2316
|
},
|
|
2293
2317
|
setup(a) {
|
|
2294
|
-
const t = a, r =
|
|
2295
|
-
var
|
|
2296
|
-
return !!((
|
|
2297
|
-
}), s = S(() => Object.keys(r).filter((
|
|
2298
|
-
return (
|
|
2299
|
-
const
|
|
2300
|
-
return p(),
|
|
2301
|
-
n.value ? (p(),
|
|
2302
|
-
|
|
2318
|
+
const t = a, r = je(), n = S(() => {
|
|
2319
|
+
var c;
|
|
2320
|
+
return !!((c = t.breadcrumbs) != null && c.length);
|
|
2321
|
+
}), s = S(() => Object.keys(r).filter((c) => c.startsWith("icon-")));
|
|
2322
|
+
return (c, o) => {
|
|
2323
|
+
const f = pe("KBreadcrumbs");
|
|
2324
|
+
return p(), k("div", to, [
|
|
2325
|
+
n.value ? (p(), k("div", ao, [
|
|
2326
|
+
Ae(f, {
|
|
2303
2327
|
"item-max-width": "150",
|
|
2304
2328
|
items: a.breadcrumbs
|
|
2305
|
-
},
|
|
2306
|
-
|
|
2329
|
+
}, Me({ _: 2 }, [
|
|
2330
|
+
be(s.value, (b) => ({
|
|
2307
2331
|
name: b,
|
|
2308
|
-
fn:
|
|
2309
|
-
C(
|
|
2332
|
+
fn: L(() => [
|
|
2333
|
+
C(c.$slots, b, {}, void 0, !0)
|
|
2310
2334
|
])
|
|
2311
2335
|
}))
|
|
2312
2336
|
]), 1032, ["items"])
|
|
2313
|
-
])) :
|
|
2314
|
-
E("div",
|
|
2315
|
-
E("div",
|
|
2316
|
-
|
|
2317
|
-
C(
|
|
2318
|
-
])) :
|
|
2337
|
+
])) : I("", !0),
|
|
2338
|
+
E("div", no, [
|
|
2339
|
+
E("div", ro, [
|
|
2340
|
+
c.$slots["title-before"] ? (p(), k("div", io, [
|
|
2341
|
+
C(c.$slots, "title-before", {}, void 0, !0)
|
|
2342
|
+
])) : I("", !0),
|
|
2319
2343
|
E("h1", {
|
|
2320
2344
|
class: "page-header-title",
|
|
2321
2345
|
"data-testid": "page-header-title",
|
|
2322
2346
|
title: a.title
|
|
2323
|
-
}, Y(a.title), 9,
|
|
2324
|
-
|
|
2325
|
-
C(
|
|
2326
|
-
])) :
|
|
2347
|
+
}, Y(a.title), 9, oo),
|
|
2348
|
+
c.$slots["title-after"] ? (p(), k("div", so, [
|
|
2349
|
+
C(c.$slots, "title-after", {}, void 0, !0)
|
|
2350
|
+
])) : I("", !0)
|
|
2327
2351
|
]),
|
|
2328
|
-
|
|
2329
|
-
C(
|
|
2330
|
-
])) :
|
|
2352
|
+
c.$slots.actions ? (p(), k("div", lo, [
|
|
2353
|
+
C(c.$slots, "actions", {}, void 0, !0)
|
|
2354
|
+
])) : I("", !0)
|
|
2331
2355
|
]),
|
|
2332
|
-
|
|
2333
|
-
C(
|
|
2334
|
-
])) :
|
|
2356
|
+
c.$slots.below ? (p(), k("div", co, [
|
|
2357
|
+
C(c.$slots, "below", {}, void 0, !0)
|
|
2358
|
+
])) : I("", !0)
|
|
2335
2359
|
]);
|
|
2336
2360
|
};
|
|
2337
2361
|
}
|
|
2338
|
-
}),
|
|
2362
|
+
}), To = /* @__PURE__ */ oe(uo, [["__scopeId", "data-v-204b7f98"]]), fo = { class: "app-page-info-section-default-header" }, vo = {
|
|
2339
2363
|
key: 1,
|
|
2340
2364
|
class: "app-page-info-section-description",
|
|
2341
2365
|
"data-testid": "app-page-info-section-description"
|
|
2342
|
-
},
|
|
2366
|
+
}, bo = {
|
|
2343
2367
|
key: 0,
|
|
2344
2368
|
class: "app-page-info-section-content",
|
|
2345
2369
|
"data-testid": "app-page-info-section-content"
|
|
2346
|
-
},
|
|
2370
|
+
}, po = /* @__PURE__ */ ie({
|
|
2347
2371
|
__name: "AppPageInfoSection",
|
|
2348
2372
|
props: {
|
|
2349
2373
|
collapsible: {
|
|
@@ -2365,62 +2389,62 @@ const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
|
2365
2389
|
}
|
|
2366
2390
|
},
|
|
2367
2391
|
setup(a) {
|
|
2368
|
-
return (t, r) => (p(),
|
|
2392
|
+
return (t, r) => (p(), z(Ee(a.collapsible ? "details" : "div"), {
|
|
2369
2393
|
class: "app-page-info-section",
|
|
2370
2394
|
"data-testid": "app-page-info-section"
|
|
2371
2395
|
}, {
|
|
2372
|
-
default:
|
|
2373
|
-
(p(),
|
|
2396
|
+
default: L(() => [
|
|
2397
|
+
(p(), z(Ee(a.collapsible ? "summary" : "div"), {
|
|
2374
2398
|
class: "app-page-info-section-header",
|
|
2375
2399
|
"data-testid": "app-page-info-section-header"
|
|
2376
2400
|
}, {
|
|
2377
|
-
default:
|
|
2401
|
+
default: L(() => [
|
|
2378
2402
|
C(t.$slots, "header", {}, () => [
|
|
2379
|
-
E("div",
|
|
2380
|
-
a.title ? (p(),
|
|
2403
|
+
E("div", fo, [
|
|
2404
|
+
a.title ? (p(), z(Ee(a.titleTag), {
|
|
2381
2405
|
key: 0,
|
|
2382
2406
|
class: "app-page-info-section-title",
|
|
2383
2407
|
"data-testid": "app-page-info-section-title"
|
|
2384
2408
|
}, {
|
|
2385
|
-
default:
|
|
2386
|
-
|
|
2409
|
+
default: L(() => [
|
|
2410
|
+
Le(Y(a.title), 1)
|
|
2387
2411
|
]),
|
|
2388
2412
|
_: 1
|
|
2389
|
-
})) :
|
|
2390
|
-
a.description ? (p(),
|
|
2413
|
+
})) : I("", !0),
|
|
2414
|
+
a.description ? (p(), k("div", vo, Y(a.description), 1)) : I("", !0)
|
|
2391
2415
|
])
|
|
2392
2416
|
]),
|
|
2393
|
-
a.collapsible ? (p(),
|
|
2417
|
+
a.collapsible ? (p(), z(ve(ta), {
|
|
2394
2418
|
key: 0,
|
|
2395
2419
|
class: "app-page-info-section-chevron-icon",
|
|
2396
2420
|
decorative: ""
|
|
2397
|
-
})) : t.$slots.actions ? C(t.$slots, "actions", { key: 1 }) :
|
|
2421
|
+
})) : t.$slots.actions ? C(t.$slots, "actions", { key: 1 }) : I("", !0)
|
|
2398
2422
|
]),
|
|
2399
2423
|
_: 3
|
|
2400
2424
|
})),
|
|
2401
|
-
t.$slots.default ? (p(),
|
|
2425
|
+
t.$slots.default ? (p(), k("div", bo, [
|
|
2402
2426
|
C(t.$slots, "default")
|
|
2403
|
-
])) :
|
|
2427
|
+
])) : I("", !0)
|
|
2404
2428
|
]),
|
|
2405
2429
|
_: 3
|
|
2406
2430
|
}));
|
|
2407
2431
|
}
|
|
2408
|
-
}),
|
|
2432
|
+
}), _o = /* @__PURE__ */ oe(po, [["__scopeId", "data-v-62f17e32"]]), So = {
|
|
2409
2433
|
// Customize Vue plugin options as desired
|
|
2410
2434
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2411
2435
|
install: (a, t = {}) => {
|
|
2412
|
-
a.component(t.name || "AppLayout",
|
|
2436
|
+
a.component(t.name || "AppLayout", eo);
|
|
2413
2437
|
}
|
|
2414
2438
|
};
|
|
2415
2439
|
export {
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2440
|
+
yo as AccountDropdown,
|
|
2441
|
+
wo as AppAboutSection,
|
|
2442
|
+
ko as AppError,
|
|
2443
|
+
eo as AppLayout,
|
|
2420
2444
|
hr as AppNavbar,
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2445
|
+
To as AppPageHeader,
|
|
2446
|
+
_o as AppPageInfoSection,
|
|
2447
|
+
Hi as AppSidebar,
|
|
2448
|
+
Gi as SidebarToggle,
|
|
2449
|
+
So as default
|
|
2426
2450
|
};
|