@kong-ui-public/app-layout 4.11.29 → 4.11.30
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 +668 -693
- package/dist/app-layout.umd.js +6 -6
- package/package.json +2 -2
package/dist/app-layout.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as ie, resolveComponent as me, openBlock as
|
|
2
|
-
import { ChevronRightIcon as ra, ChevronDownIcon as
|
|
3
|
-
import { KButton as Pn, HeaderTags as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as ie, resolveComponent as me, openBlock as h, createBlock as H, withCtx as B, renderSlot as C, createElementBlock as S, Fragment as Ae, renderList as he, normalizeClass as Q, createTextVNode as Fe, toDisplayString as Y, computed as I, createSlots as Pe, createVNode as je, createCommentVNode as A, createElementVNode as F, createStaticVNode as En, useCssVars as St, useSlots as Ke, reactive as Ye, onMounted as Ze, getCurrentInstance as ea, getCurrentScope as An, hasInjectionContext as ta, inject as Nn, watch as De, shallowRef as Qe, watchEffect as aa, toValue as Ne, unref as pe, resolveDynamicComponent as Te, withKeys as Fn, ref as ne, onUnmounted as Dn, Comment as xn, cloneVNode as Rn, nextTick as zt, onBeforeUnmount as na, withModifiers as Bn, toRef as Ln } from "vue";
|
|
2
|
+
import { ChevronRightIcon as ra, ChevronDownIcon as Mn } from "@kong/icons";
|
|
3
|
+
import { KButton as Pn, HeaderTags as jn } from "@kong/kongponents";
|
|
4
|
+
const Kn = /* @__PURE__ */ ie({
|
|
5
5
|
__name: "AccountDropdown",
|
|
6
6
|
props: {
|
|
7
7
|
options: {
|
|
@@ -22,23 +22,23 @@ const Zn = /* @__PURE__ */ ie({
|
|
|
22
22
|
setup(a) {
|
|
23
23
|
return (e, r) => {
|
|
24
24
|
const n = me("KDropdownItem"), s = me("KDropdown");
|
|
25
|
-
return
|
|
25
|
+
return h(), H(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:
|
|
32
|
-
|
|
33
|
-
(
|
|
31
|
+
items: B(({ handleSelection: l }) => [
|
|
32
|
+
C(e.$slots, "default", {}, () => [
|
|
33
|
+
(h(!0), S(Ae, null, he(a.options, (i) => (h(), H(n, {
|
|
34
34
|
key: i.value,
|
|
35
35
|
class: Q({ "has-divider": i.hasDivider }),
|
|
36
36
|
"data-testid": "select-" + i.value,
|
|
37
37
|
"has-divider": i.hasDivider,
|
|
38
38
|
onClick: (f) => l(i)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
40
|
+
default: B(() => [
|
|
41
|
+
C(e.$slots, "default", { option: i }, () => [
|
|
42
42
|
Fe(Y(i.label), 1)
|
|
43
43
|
], !0)
|
|
44
44
|
]),
|
|
@@ -55,43 +55,43 @@ const Zn = /* @__PURE__ */ ie({
|
|
|
55
55
|
for (const [n, s] of e)
|
|
56
56
|
r[n] = s;
|
|
57
57
|
return r;
|
|
58
|
-
},
|
|
58
|
+
}, ho = /* @__PURE__ */ oe(Kn, [["__scopeId", "data-v-740b4c70"]]), Zn = {
|
|
59
59
|
class: "about-section-title",
|
|
60
60
|
"data-testid": "about-section-title"
|
|
61
|
-
},
|
|
61
|
+
}, Hn = { class: "about-section-header-end" }, Wn = {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "about-section-timestamps-created",
|
|
64
64
|
"data-testid": "about-section-timestamps-created"
|
|
65
|
-
},
|
|
65
|
+
}, Gn = {
|
|
66
66
|
key: 1,
|
|
67
67
|
class: "about-section-timestamps-arrow"
|
|
68
|
-
},
|
|
68
|
+
}, zn = {
|
|
69
69
|
key: 2,
|
|
70
70
|
class: "about-section-timestamps-modified",
|
|
71
71
|
"data-testid": "about-section-timestamps-modified"
|
|
72
|
-
},
|
|
72
|
+
}, Vn = {
|
|
73
73
|
key: 1,
|
|
74
74
|
class: "about-section-actions",
|
|
75
75
|
"data-testid": "about-section-actions"
|
|
76
|
-
},
|
|
76
|
+
}, Un = {
|
|
77
77
|
key: 0,
|
|
78
78
|
"data-testid": "about-section-loading-skeleton"
|
|
79
|
-
},
|
|
79
|
+
}, qn = { key: 1 }, Xn = {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "about-section-description",
|
|
82
82
|
"data-testid": "about-section-description"
|
|
83
|
-
},
|
|
83
|
+
}, Yn = {
|
|
84
84
|
key: 1,
|
|
85
85
|
class: "about-section-content",
|
|
86
86
|
"data-testid": "about-section-content"
|
|
87
|
-
},
|
|
87
|
+
}, Qn = {
|
|
88
88
|
key: 2,
|
|
89
89
|
"data-testid": "about-divider-section-separator"
|
|
90
|
-
},
|
|
90
|
+
}, Jn = {
|
|
91
91
|
key: 3,
|
|
92
92
|
class: "about-divider-section",
|
|
93
93
|
"data-testid": "about-divider-section"
|
|
94
|
-
},
|
|
94
|
+
}, er = /* @__PURE__ */ ie({
|
|
95
95
|
__name: "AppAboutSection",
|
|
96
96
|
props: {
|
|
97
97
|
title: { default: "" },
|
|
@@ -103,31 +103,31 @@ const Zn = /* @__PURE__ */ ie({
|
|
|
103
103
|
isLoading: { type: Boolean, default: !1 }
|
|
104
104
|
},
|
|
105
105
|
setup(a) {
|
|
106
|
-
const e = a, r =
|
|
106
|
+
const e = a, r = I(() => !!e.modified && e.modified !== e.created);
|
|
107
107
|
return (n, s) => {
|
|
108
108
|
const l = me("KSkeletonBox"), i = me("KCard");
|
|
109
|
-
return
|
|
109
|
+
return h(), H(i, {
|
|
110
110
|
class: "kong-ui-app-about-section",
|
|
111
111
|
"title-tag": "h2"
|
|
112
|
-
},
|
|
113
|
-
default:
|
|
114
|
-
a.isLoading ? (
|
|
115
|
-
|
|
112
|
+
}, Pe({
|
|
113
|
+
default: B(() => [
|
|
114
|
+
a.isLoading ? (h(), S("div", Un, [
|
|
115
|
+
je(l, {
|
|
116
116
|
height: "2",
|
|
117
117
|
width: "100"
|
|
118
118
|
}),
|
|
119
|
-
|
|
119
|
+
je(l, {
|
|
120
120
|
height: "2",
|
|
121
121
|
width: "100"
|
|
122
122
|
})
|
|
123
|
-
])) : (
|
|
124
|
-
a.description ? (
|
|
125
|
-
n.$slots.default ? (
|
|
126
|
-
|
|
123
|
+
])) : (h(), S("div", qn, [
|
|
124
|
+
a.description ? (h(), S("p", Xn, Y(a.description), 1)) : A("", !0),
|
|
125
|
+
n.$slots.default ? (h(), S("div", Yn, [
|
|
126
|
+
C(n.$slots, "default", {}, void 0, !0)
|
|
127
127
|
])) : A("", !0),
|
|
128
|
-
n.$slots["divider-section"] ? (
|
|
129
|
-
n.$slots["divider-section"] ? (
|
|
130
|
-
|
|
128
|
+
n.$slots["divider-section"] ? (h(), S("hr", Qn)) : A("", !0),
|
|
129
|
+
n.$slots["divider-section"] ? (h(), S("div", Jn, [
|
|
130
|
+
C(n.$slots, "divider-section", {}, void 0, !0)
|
|
131
131
|
])) : A("", !0)
|
|
132
132
|
]))
|
|
133
133
|
]),
|
|
@@ -135,9 +135,9 @@ const Zn = /* @__PURE__ */ ie({
|
|
|
135
135
|
}, [
|
|
136
136
|
n.$slots.title || a.title ? {
|
|
137
137
|
name: "title",
|
|
138
|
-
fn:
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
fn: B(() => [
|
|
139
|
+
F("span", Zn, [
|
|
140
|
+
C(n.$slots, "title", {}, () => [
|
|
141
141
|
Fe(Y(a.title), 1)
|
|
142
142
|
], !0)
|
|
143
143
|
])
|
|
@@ -146,18 +146,18 @@ const Zn = /* @__PURE__ */ ie({
|
|
|
146
146
|
} : void 0,
|
|
147
147
|
n.$slots.actions || a.created || a.modified ? {
|
|
148
148
|
name: "actions",
|
|
149
|
-
fn:
|
|
150
|
-
|
|
151
|
-
a.created || a.modified ? (
|
|
149
|
+
fn: B(() => [
|
|
150
|
+
F("div", Hn, [
|
|
151
|
+
a.created || a.modified ? (h(), S("div", {
|
|
152
152
|
key: 0,
|
|
153
153
|
class: Q(["about-section-timestamps", { "has-actions": n.$slots.actions }])
|
|
154
154
|
}, [
|
|
155
|
-
a.created ? (
|
|
156
|
-
a.created && r.value ? (
|
|
157
|
-
r.value ? (
|
|
155
|
+
a.created ? (h(), S("span", Wn, Y(a.createdLabel) + ": " + Y(a.created), 1)) : A("", !0),
|
|
156
|
+
a.created && r.value ? (h(), S("span", Gn, "->")) : A("", !0),
|
|
157
|
+
r.value ? (h(), S("span", zn, Y(a.modifiedLabel) + ": " + Y(a.modified), 1)) : A("", !0)
|
|
158
158
|
], 2)) : A("", !0),
|
|
159
|
-
n.$slots.actions ? (
|
|
160
|
-
|
|
159
|
+
n.$slots.actions ? (h(), S("div", Vn, [
|
|
160
|
+
C(n.$slots, "actions", {}, void 0, !0)
|
|
161
161
|
])) : A("", !0)
|
|
162
162
|
])
|
|
163
163
|
]),
|
|
@@ -166,40 +166,40 @@ const Zn = /* @__PURE__ */ ie({
|
|
|
166
166
|
]), 1024);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
169
|
+
}), mo = /* @__PURE__ */ oe(er, [["__scopeId", "data-v-90b5a21c"]]), tr = {}, ar = {
|
|
170
170
|
fill: "none",
|
|
171
171
|
height: "130",
|
|
172
172
|
width: "130",
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg"
|
|
174
174
|
};
|
|
175
|
-
function
|
|
176
|
-
return
|
|
175
|
+
function nr(a, e) {
|
|
176
|
+
return h(), S("svg", ar, [...e[0] || (e[0] = [
|
|
177
177
|
En('<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
|
|
180
|
+
const rr = /* @__PURE__ */ oe(tr, [["render", nr]]), ir = { class: "kong-ui-app-error" }, or = { class: "banana-icon" }, sr = { class: "kong-ui-app-error-content" }, lr = /* @__PURE__ */ ie({
|
|
181
181
|
__name: "AppError",
|
|
182
182
|
setup(a) {
|
|
183
|
-
return (e, r) => (
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
return (e, r) => (h(), S("section", ir, [
|
|
184
|
+
F("div", or, [
|
|
185
|
+
je(rr)
|
|
186
186
|
]),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
r[0] || (r[0] =
|
|
190
|
-
r[1] || (r[1] =
|
|
187
|
+
F("div", sr, [
|
|
188
|
+
C(e.$slots, "default", {}, () => [
|
|
189
|
+
r[0] || (r[0] = F("h2", null, "An unexpected error has occurred", -1)),
|
|
190
|
+
r[1] || (r[1] = F("p", null, [
|
|
191
191
|
Fe("Go back to the previous page or "),
|
|
192
|
-
|
|
192
|
+
F("a", { href: "/" }, "return home"),
|
|
193
193
|
Fe(".")
|
|
194
194
|
], -1))
|
|
195
195
|
], !0)
|
|
196
196
|
])
|
|
197
197
|
]));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), go = /* @__PURE__ */ oe(lr, [["__scopeId", "data-v-6ce28ec8"]]), cr = { class: "kong-ui-app-navbar" }, ur = { class: "header-content" }, dr = { class: "mobile-header-left" }, fr = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "app-navbar-logo"
|
|
202
|
-
},
|
|
202
|
+
}, vr = { class: "navbar-content" }, br = { class: "navbar-content-left" }, pr = { class: "navbar-content-center" }, hr = { class: "navbar-content-right" }, mr = /* @__PURE__ */ ie({
|
|
203
203
|
__name: "AppNavbar",
|
|
204
204
|
props: {
|
|
205
205
|
topOffset: {
|
|
@@ -224,7 +224,7 @@ const ir = /* @__PURE__ */ oe(ar, [["render", rr]]), or = { class: "kong-ui-app-
|
|
|
224
224
|
v72a8a150: s.marginRight,
|
|
225
225
|
v0b2fff88: s.width
|
|
226
226
|
}));
|
|
227
|
-
const e = a, r = Ke(), n =
|
|
227
|
+
const e = a, r = Ke(), n = I(() => !!r.logo), s = Ye({
|
|
228
228
|
marginRight: "0",
|
|
229
229
|
width: "0"
|
|
230
230
|
});
|
|
@@ -232,141 +232,116 @@ const ir = /* @__PURE__ */ oe(ar, [["render", rr]]), or = { class: "kong-ui-app-
|
|
|
232
232
|
var i, f;
|
|
233
233
|
(f = (i = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : i.children) != null && f.length ? (s.marginRight = "32px", s.width = "calc(240px - 32px)") : (s.marginRight = "0", s.width = "0");
|
|
234
234
|
});
|
|
235
|
-
const l =
|
|
235
|
+
const l = I(() => ({
|
|
236
236
|
top: e.topOffset ? `${e.topOffset}px` : "0",
|
|
237
237
|
left: e.leftOffset ? `${e.leftOffset}px` : "0",
|
|
238
238
|
zIndex: e.zIndex
|
|
239
239
|
}));
|
|
240
|
-
return (i, f) => (
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
return (i, f) => (h(), S("header", cr, [
|
|
241
|
+
F("div", ur, [
|
|
242
|
+
F("div", dr, [
|
|
243
|
+
C(i.$slots, "mobile-sidebar-toggle"),
|
|
244
|
+
C(i.$slots, "mobile-logo")
|
|
245
245
|
]),
|
|
246
|
-
n.value ? (
|
|
247
|
-
|
|
246
|
+
n.value ? (h(), S("div", fr, [
|
|
247
|
+
C(i.$slots, "logo")
|
|
248
248
|
])) : A("", !0),
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
F("div", vr, [
|
|
250
|
+
F("div", br, [
|
|
251
|
+
C(i.$slots, "left")
|
|
252
252
|
]),
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
F("div", pr, [
|
|
254
|
+
C(i.$slots, "center")
|
|
255
255
|
]),
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
F("div", hr, [
|
|
257
|
+
C(i.$slots, "right")
|
|
258
258
|
])
|
|
259
259
|
])
|
|
260
260
|
])
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
263
|
-
}),
|
|
264
|
-
function wr(a) {
|
|
265
|
-
return Nn() ? (Fn(a), !0) : !1;
|
|
266
|
-
}
|
|
267
|
-
const ht = /* @__PURE__ */ new WeakMap(), kr = /* @__NO_SIDE_EFFECTS__ */ (...a) => {
|
|
263
|
+
}), gr = /* @__PURE__ */ oe(mr, [["__scopeId", "data-v-537ba5e0"]]), ht = /* @__PURE__ */ new WeakMap(), yr = /* @__NO_SIDE_EFFECTS__ */ (...a) => {
|
|
268
264
|
var e;
|
|
269
|
-
const r = a[0], n = (e = ea())
|
|
270
|
-
if (
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}, Sr = typeof window < "u" && typeof document < "u";
|
|
265
|
+
const r = a[0], n = (e = ea()) === null || e === void 0 ? void 0 : e.proxy, s = n ?? An();
|
|
266
|
+
if (s == null && !ta()) throw new Error("injectLocal must be called in setup");
|
|
267
|
+
return s && ht.has(s) && r in ht.get(s) ? ht.get(s)[r] : Nn(...a);
|
|
268
|
+
}, wr = typeof window < "u" && typeof document < "u";
|
|
274
269
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
275
|
-
const
|
|
270
|
+
const kr = Object.prototype.toString, Sr = (a) => kr.call(a) === "[object Object]";
|
|
276
271
|
function Vt(a) {
|
|
277
272
|
return a.endsWith("rem") ? Number.parseFloat(a) * 16 : Number.parseFloat(a);
|
|
278
273
|
}
|
|
279
274
|
function mt(a) {
|
|
280
275
|
return Array.isArray(a) ? a : [a];
|
|
281
276
|
}
|
|
282
|
-
function
|
|
283
|
-
return De(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
...r,
|
|
288
|
-
immediate: !0
|
|
289
|
-
}
|
|
290
|
-
);
|
|
277
|
+
function Tr(a, e, r) {
|
|
278
|
+
return De(a, e, {
|
|
279
|
+
...r,
|
|
280
|
+
immediate: !0
|
|
281
|
+
});
|
|
291
282
|
}
|
|
292
|
-
const ia =
|
|
293
|
-
function
|
|
283
|
+
const ia = wr ? window : void 0;
|
|
284
|
+
function Ir(a) {
|
|
294
285
|
var e;
|
|
295
286
|
const r = Ne(a);
|
|
296
|
-
return (e = r == null ? void 0 : r.$el)
|
|
287
|
+
return (e = r == null ? void 0 : r.$el) !== null && e !== void 0 ? e : r;
|
|
297
288
|
}
|
|
298
|
-
function
|
|
299
|
-
const e =
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
const B = Ir(T) ? { ...T } : T;
|
|
319
|
-
e.push(
|
|
320
|
-
...f.flatMap(
|
|
321
|
-
(L) => b.flatMap(
|
|
322
|
-
(M) => S.map((N) => n(L, M, N, B))
|
|
323
|
-
)
|
|
324
|
-
)
|
|
325
|
-
);
|
|
326
|
-
},
|
|
327
|
-
{ flush: "post" }
|
|
328
|
-
), i = () => {
|
|
329
|
-
l(), r();
|
|
330
|
-
};
|
|
331
|
-
return wr(r), i;
|
|
289
|
+
function Cr(...a) {
|
|
290
|
+
const e = (n, s, l, i) => (n.addEventListener(s, l, i), () => n.removeEventListener(s, l, i)), r = I(() => {
|
|
291
|
+
const n = mt(Ne(a[0])).filter((s) => s != null);
|
|
292
|
+
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
293
|
+
});
|
|
294
|
+
return Tr(() => {
|
|
295
|
+
var n, s;
|
|
296
|
+
return [
|
|
297
|
+
(n = (s = r.value) === null || s === void 0 ? void 0 : s.map((l) => Ir(l))) !== null && n !== void 0 ? n : [ia].filter((l) => l != null),
|
|
298
|
+
mt(Ne(r.value ? a[1] : a[0])),
|
|
299
|
+
mt(pe(r.value ? a[2] : a[1])),
|
|
300
|
+
Ne(r.value ? a[3] : a[2])
|
|
301
|
+
];
|
|
302
|
+
}, ([n, s, l, i], f, g) => {
|
|
303
|
+
if (!(n != null && n.length) || !(s != null && s.length) || !(l != null && l.length)) return;
|
|
304
|
+
const _ = Sr(i) ? { ...i } : i, $ = n.flatMap((D) => s.flatMap((L) => l.map((R) => e(D, L, R, _))));
|
|
305
|
+
g(() => {
|
|
306
|
+
$.forEach((D) => D());
|
|
307
|
+
});
|
|
308
|
+
}, { flush: "post" });
|
|
332
309
|
}
|
|
333
310
|
// @__NO_SIDE_EFFECTS__
|
|
334
|
-
function
|
|
311
|
+
function _r() {
|
|
335
312
|
const a = Qe(!1), e = ea();
|
|
336
313
|
return e && Ze(() => {
|
|
337
314
|
a.value = !0;
|
|
338
315
|
}, e), a;
|
|
339
316
|
}
|
|
340
317
|
// @__NO_SIDE_EFFECTS__
|
|
341
|
-
function
|
|
342
|
-
const e = /* @__PURE__ */
|
|
343
|
-
return
|
|
318
|
+
function Or(a) {
|
|
319
|
+
const e = /* @__PURE__ */ _r();
|
|
320
|
+
return I(() => (e.value, !!a()));
|
|
344
321
|
}
|
|
345
|
-
const
|
|
322
|
+
const $r = Symbol("vueuse-ssr-width");
|
|
346
323
|
// @__NO_SIDE_EFFECTS__
|
|
347
|
-
function
|
|
348
|
-
const a = ta() ? /* @__PURE__ */
|
|
324
|
+
function Er() {
|
|
325
|
+
const a = ta() ? /* @__PURE__ */ yr($r, null) : null;
|
|
349
326
|
return typeof a == "number" ? a : void 0;
|
|
350
327
|
}
|
|
351
|
-
function
|
|
352
|
-
const { window: r = ia, ssrWidth: n = /* @__PURE__ */
|
|
353
|
-
f.value =
|
|
328
|
+
function Ar(a, e = {}) {
|
|
329
|
+
const { window: r = ia, ssrWidth: n = /* @__PURE__ */ Er() } = e, s = /* @__PURE__ */ Or(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), l = Qe(typeof n == "number"), i = Qe(), f = Qe(!1), g = (_) => {
|
|
330
|
+
f.value = _.matches;
|
|
354
331
|
};
|
|
355
332
|
return aa(() => {
|
|
356
333
|
if (l.value) {
|
|
357
|
-
l.value = !s.value
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
let N = !!(L || M);
|
|
362
|
-
return L && N && (N = n >= Vt(L[1])), M && N && (N = n <= Vt(M[1])), B ? !N : N;
|
|
334
|
+
l.value = !s.value, f.value = Ne(a).split(",").some((_) => {
|
|
335
|
+
const $ = _.includes("not all"), D = _.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), L = _.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
336
|
+
let R = !!(D || L);
|
|
337
|
+
return D && R && (R = n >= Vt(D[1])), L && R && (R = n <= Vt(L[1])), $ ? !R : R;
|
|
363
338
|
});
|
|
364
339
|
return;
|
|
365
340
|
}
|
|
366
341
|
s.value && (i.value = r.matchMedia(Ne(a)), f.value = i.value.matches);
|
|
367
|
-
}),
|
|
342
|
+
}), Cr(i, "change", g, { passive: !0 }), I(() => f.value);
|
|
368
343
|
}
|
|
369
|
-
const
|
|
344
|
+
const Nr = "#ffffff", Fr = "#000933", Dr = "#000933", xr = "#ffffff", Rr = "0px", Br = "4px", Lr = "640px", Mr = "16px", Pr = "#bee2ff", jr = ["title"], gt = 99, Kr = /* @__PURE__ */ ie({
|
|
370
345
|
__name: "ItemBadge",
|
|
371
346
|
props: {
|
|
372
347
|
count: {
|
|
@@ -376,23 +351,23 @@ const Dr = "#ffffff", xr = "#000933", Rr = "#000933", Br = "#ffffff", Lr = "0px"
|
|
|
376
351
|
}
|
|
377
352
|
},
|
|
378
353
|
setup(a) {
|
|
379
|
-
const e = a, r =
|
|
380
|
-
return (n, s) => r.value ? (
|
|
354
|
+
const e = a, r = I(() => e.count ? e.count > gt ? `${gt}+` : e.count.toString() : "");
|
|
355
|
+
return (n, s) => r.value ? (h(), S("div", {
|
|
381
356
|
key: 0,
|
|
382
357
|
class: "item-badge",
|
|
383
358
|
title: (a.count || 0) > gt ? String(a.count) : void 0
|
|
384
|
-
}, Y(r.value), 9,
|
|
359
|
+
}, Y(r.value), 9, jr)) : A("", !0);
|
|
385
360
|
}
|
|
386
|
-
}),
|
|
361
|
+
}), Zr = /* @__PURE__ */ oe(Kr, [["__scopeId", "data-v-a0c9b043"]]), Hr = ["data-testid"], Wr = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], Gr = {
|
|
387
362
|
key: 0,
|
|
388
363
|
class: "sidebar-item-icon"
|
|
389
|
-
},
|
|
364
|
+
}, zr = { class: "sidebar-item-name-container" }, Vr = { class: "sidebar-item-name has-tooltip" }, Ur = {
|
|
390
365
|
key: 2,
|
|
391
366
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
392
|
-
},
|
|
367
|
+
}, qr = {
|
|
393
368
|
key: 1,
|
|
394
369
|
class: "sidebar-item-after"
|
|
395
|
-
},
|
|
370
|
+
}, Xr = ["id"], Yr = /* @__PURE__ */ ie({
|
|
396
371
|
__name: "SidebarItem",
|
|
397
372
|
props: {
|
|
398
373
|
item: {
|
|
@@ -407,95 +382,95 @@ const Dr = "#ffffff", xr = "#000933", Rr = "#000933", Br = "#ffffff", Lr = "0px"
|
|
|
407
382
|
},
|
|
408
383
|
emits: ["click"],
|
|
409
384
|
setup(a, { emit: e }) {
|
|
410
|
-
const r = e, n = a, s = Ke(), l =
|
|
385
|
+
const r = e, n = a, s = Ke(), l = I(() => typeof n.item.to != "string" ? !1 : !!n.item.newWindow || !!n.item.external || n.item.to.startsWith("http")), i = I(() => !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 = I(
|
|
411
386
|
() => n.subnavItem && // item has non-zero badgeCount OR
|
|
412
387
|
n.item.badgeCount !== void 0 && n.item.badgeCount !== 0 || // slot content for the badge
|
|
413
388
|
!!s[`sidebar-after-${n.item.key}`]
|
|
414
|
-
),
|
|
415
|
-
r("click",
|
|
416
|
-
},
|
|
417
|
-
|
|
389
|
+
), g = ($) => {
|
|
390
|
+
r("click", $);
|
|
391
|
+
}, _ = ($, D, L) => {
|
|
392
|
+
g(D), typeof L == "function" && ($.preventDefault(), L());
|
|
418
393
|
};
|
|
419
|
-
return (
|
|
420
|
-
var
|
|
421
|
-
const L = me("KTooltip"),
|
|
422
|
-
return
|
|
394
|
+
return ($, D) => {
|
|
395
|
+
var M;
|
|
396
|
+
const L = me("KTooltip"), R = me("SidebarItem", !0);
|
|
397
|
+
return h(), S("li", {
|
|
423
398
|
class: Q([a.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: a.item.expanded }, { active: a.item.active }]),
|
|
424
399
|
"data-testid": a.item.testId ? `sidebar-item-${a.item.testId}` : void 0
|
|
425
400
|
}, [
|
|
426
|
-
(
|
|
401
|
+
(h(), H(Te(l.value ? "div" : "router-link"), {
|
|
427
402
|
custom: l.value ? void 0 : !0,
|
|
428
403
|
to: !l.value && !i.value ? a.item.to : void 0
|
|
429
404
|
}, {
|
|
430
|
-
default:
|
|
405
|
+
default: B((P) => {
|
|
431
406
|
var re, W;
|
|
432
407
|
return [
|
|
433
|
-
|
|
408
|
+
F("a", {
|
|
434
409
|
"aria-controls": (re = a.item.items) != null && re.length && a.item.expanded ? `subnav-${a.item.key}` : void 0,
|
|
435
410
|
"aria-current": a.item.active ? "page" : void 0,
|
|
436
411
|
"aria-expanded": (W = a.item.items) != null && W.length && a.item.expanded ? !0 : void 0,
|
|
437
412
|
class: Q(["sidebar-item-link", { "sidebar-item-external-link": i.value, "router-link": !l.value }]),
|
|
438
|
-
href: l.value ? String(a.item.to || "#") :
|
|
413
|
+
href: l.value ? String(a.item.to || "#") : P == null ? void 0 : P.href,
|
|
439
414
|
target: i.value ? "_blank" : void 0,
|
|
440
|
-
onClick: (z) =>
|
|
441
|
-
onKeypress:
|
|
415
|
+
onClick: (z) => _(z, a.item, P == null ? void 0 : P.navigate),
|
|
416
|
+
onKeypress: Fn((z) => _(z, a.item, P == null ? void 0 : P.navigate), ["enter"])
|
|
442
417
|
}, [
|
|
443
|
-
|
|
418
|
+
F("div", {
|
|
444
419
|
class: Q(["sidebar-item-display", { "has-label": !!a.item.label && a.item.expanded, "has-after-content": f.value }])
|
|
445
420
|
}, [
|
|
446
|
-
|
|
447
|
-
a.subnavItem ? A("", !0) :
|
|
421
|
+
$.$slots[`sidebar-icon-${a.item.key}`] ? (h(), S("div", Gr, [
|
|
422
|
+
a.subnavItem ? A("", !0) : C($.$slots, `sidebar-icon-${a.item.key}`, { key: 0 }, void 0, !0)
|
|
448
423
|
])) : A("", !0),
|
|
449
|
-
|
|
450
|
-
(a.subnavItem && !f.value ? a.item.name.length < 25 : a.item.name.length < 18) ? (
|
|
424
|
+
F("div", zr, [
|
|
425
|
+
(a.subnavItem && !f.value ? a.item.name.length < 25 : a.item.name.length < 18) ? (h(), S("div", {
|
|
451
426
|
key: 0,
|
|
452
427
|
class: Q(["sidebar-item-name truncate-text", [a.subnavItem ? "has-after-content-max-width truncate-24" : "truncate-17"]])
|
|
453
|
-
}, Y(a.item.name), 3)) : (
|
|
428
|
+
}, Y(a.item.name), 3)) : (h(), H(L, {
|
|
454
429
|
key: 1,
|
|
455
430
|
class: "sidebar-item-tooltip",
|
|
456
431
|
placement: "right",
|
|
457
432
|
"position-fixed": "",
|
|
458
433
|
text: a.item.name
|
|
459
434
|
}, {
|
|
460
|
-
default:
|
|
461
|
-
|
|
462
|
-
|
|
435
|
+
default: B(() => [
|
|
436
|
+
F("div", Vr, [
|
|
437
|
+
F("span", {
|
|
463
438
|
class: Q(["truncate-text", [a.subnavItem ? "truncate-18" : "truncate-17", { "has-after-content-max-width": f.value }]])
|
|
464
439
|
}, Y(a.item.name), 3)
|
|
465
440
|
])
|
|
466
441
|
]),
|
|
467
442
|
_: 1
|
|
468
443
|
}, 8, ["text"])),
|
|
469
|
-
a.item.label && a.item.expanded ? (
|
|
444
|
+
a.item.label && a.item.expanded ? (h(), S("div", Ur, Y(a.item.label), 1)) : A("", !0)
|
|
470
445
|
]),
|
|
471
|
-
f.value ? (
|
|
472
|
-
a.item.badgeCount ? (
|
|
446
|
+
f.value ? (h(), S("div", qr, [
|
|
447
|
+
a.item.badgeCount ? (h(), H(Zr, {
|
|
473
448
|
key: 0,
|
|
474
449
|
count: a.item.badgeCount
|
|
475
|
-
}, null, 8, ["count"])) :
|
|
450
|
+
}, null, 8, ["count"])) : C($.$slots, `sidebar-after-${a.item.key}`, { key: 1 }, void 0, !0)
|
|
476
451
|
])) : A("", !0)
|
|
477
452
|
], 2)
|
|
478
|
-
], 42,
|
|
453
|
+
], 42, Wr)
|
|
479
454
|
];
|
|
480
455
|
}),
|
|
481
456
|
_: 3
|
|
482
457
|
}, 8, ["custom", "to"])),
|
|
483
|
-
(
|
|
458
|
+
(M = a.item.items) != null && M.length && a.item.expanded ? (h(), S("ul", {
|
|
484
459
|
key: 0,
|
|
485
460
|
id: `subnav-${a.item.key}`,
|
|
486
461
|
class: "level-secondary"
|
|
487
462
|
}, [
|
|
488
|
-
(
|
|
489
|
-
key:
|
|
490
|
-
item:
|
|
463
|
+
(h(!0), S(Ae, null, he(a.item.items, (P) => (h(), H(R, {
|
|
464
|
+
key: P.name,
|
|
465
|
+
item: P,
|
|
491
466
|
"subnav-item": !0,
|
|
492
|
-
onClick: (re) =>
|
|
467
|
+
onClick: (re) => g(P)
|
|
493
468
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
494
|
-
], 8,
|
|
495
|
-
], 10,
|
|
469
|
+
], 8, Xr)) : A("", !0)
|
|
470
|
+
], 10, Hr);
|
|
496
471
|
};
|
|
497
472
|
}
|
|
498
|
-
}), Ut = /* @__PURE__ */ oe(
|
|
473
|
+
}), Ut = /* @__PURE__ */ oe(Yr, [["__scopeId", "data-v-a8ca71d3"]]);
|
|
499
474
|
/*!
|
|
500
475
|
* tabbable 6.4.0
|
|
501
476
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -513,7 +488,7 @@ var oa = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
513
488
|
// lookup upward, in case it is not defined.
|
|
514
489
|
(typeof e.closest == "function" ? e.closest("[inert]") : tt(e.parentNode));
|
|
515
490
|
return i;
|
|
516
|
-
},
|
|
491
|
+
}, Qr = function(e) {
|
|
517
492
|
var r, n = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "contenteditable");
|
|
518
493
|
return n === "" || n === "true";
|
|
519
494
|
}, la = function(e, r, n) {
|
|
@@ -526,21 +501,21 @@ var oa = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
526
501
|
var i = l.shift();
|
|
527
502
|
if (!tt(i, !1))
|
|
528
503
|
if (i.tagName === "SLOT") {
|
|
529
|
-
var f = i.assignedElements(),
|
|
530
|
-
n.flatten ? s.push.apply(s,
|
|
504
|
+
var f = i.assignedElements(), g = f.length ? f : i.children, _ = at(g, !0, n);
|
|
505
|
+
n.flatten ? s.push.apply(s, _) : s.push({
|
|
531
506
|
scopeParent: i,
|
|
532
|
-
candidates:
|
|
507
|
+
candidates: _
|
|
533
508
|
});
|
|
534
509
|
} else {
|
|
535
|
-
var
|
|
536
|
-
|
|
537
|
-
var
|
|
538
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(i), L = !tt(
|
|
539
|
-
if (
|
|
540
|
-
var
|
|
541
|
-
n.flatten ? s.push.apply(s,
|
|
510
|
+
var $ = Ie.call(i, Je);
|
|
511
|
+
$ && n.filter(i) && (r || !e.includes(i)) && s.push(i);
|
|
512
|
+
var D = i.shadowRoot || // check for an undisclosed shadow
|
|
513
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(i), L = !tt(D, !1) && (!n.shadowRootFilter || n.shadowRootFilter(i));
|
|
514
|
+
if (D && L) {
|
|
515
|
+
var R = at(D === !0 ? i.children : D.children, !0, n);
|
|
516
|
+
n.flatten ? s.push.apply(s, R) : s.push({
|
|
542
517
|
scopeParent: i,
|
|
543
|
-
candidates:
|
|
518
|
+
candidates: R
|
|
544
519
|
});
|
|
545
520
|
} else
|
|
546
521
|
l.unshift.apply(l, i.children);
|
|
@@ -552,26 +527,26 @@ var oa = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
552
527
|
}, Se = function(e) {
|
|
553
528
|
if (!e)
|
|
554
529
|
throw new Error("No node provided");
|
|
555
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
556
|
-
},
|
|
530
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Qr(e)) && !ca(e) ? 0 : e.tabIndex;
|
|
531
|
+
}, Jr = function(e, r) {
|
|
557
532
|
var n = Se(e);
|
|
558
533
|
return n < 0 && r && !ca(e) ? 0 : n;
|
|
559
|
-
},
|
|
534
|
+
}, ei = function(e, r) {
|
|
560
535
|
return e.tabIndex === r.tabIndex ? e.documentOrder - r.documentOrder : e.tabIndex - r.tabIndex;
|
|
561
536
|
}, ua = function(e) {
|
|
562
537
|
return e.tagName === "INPUT";
|
|
563
|
-
},
|
|
538
|
+
}, ti = function(e) {
|
|
564
539
|
return ua(e) && e.type === "hidden";
|
|
565
|
-
},
|
|
540
|
+
}, ai = function(e) {
|
|
566
541
|
var r = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) {
|
|
567
542
|
return n.tagName === "SUMMARY";
|
|
568
543
|
});
|
|
569
544
|
return r;
|
|
570
|
-
},
|
|
545
|
+
}, ni = function(e, r) {
|
|
571
546
|
for (var n = 0; n < e.length; n++)
|
|
572
547
|
if (e[n].checked && e[n].form === r)
|
|
573
548
|
return e[n];
|
|
574
|
-
},
|
|
549
|
+
}, ri = function(e) {
|
|
575
550
|
if (!e.name)
|
|
576
551
|
return !0;
|
|
577
552
|
var r = e.form || et(e), n = function(f) {
|
|
@@ -585,26 +560,26 @@ var oa = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
585
560
|
} catch (i) {
|
|
586
561
|
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", i.message), !1;
|
|
587
562
|
}
|
|
588
|
-
var l =
|
|
563
|
+
var l = ni(s, e.form);
|
|
589
564
|
return !l || l === e;
|
|
590
|
-
},
|
|
565
|
+
}, ii = function(e) {
|
|
591
566
|
return ua(e) && e.type === "radio";
|
|
592
|
-
},
|
|
593
|
-
return
|
|
594
|
-
},
|
|
567
|
+
}, oi = function(e) {
|
|
568
|
+
return ii(e) && !ri(e);
|
|
569
|
+
}, si = function(e) {
|
|
595
570
|
var r, n = e && et(e), s = (r = n) === null || r === void 0 ? void 0 : r.host, l = !1;
|
|
596
571
|
if (n && n !== e) {
|
|
597
|
-
var i, f,
|
|
598
|
-
for (l = !!((i = s) !== null && i !== void 0 && (f = i.ownerDocument) !== null && f !== void 0 && f.contains(s) || e != null && (
|
|
599
|
-
var
|
|
600
|
-
n = et(s), s = (
|
|
572
|
+
var i, f, g;
|
|
573
|
+
for (l = !!((i = s) !== null && i !== void 0 && (f = i.ownerDocument) !== null && f !== void 0 && f.contains(s) || e != null && (g = e.ownerDocument) !== null && g !== void 0 && g.contains(e)); !l && s; ) {
|
|
574
|
+
var _, $, D;
|
|
575
|
+
n = et(s), s = (_ = n) === null || _ === void 0 ? void 0 : _.host, l = !!(($ = s) !== null && $ !== void 0 && (D = $.ownerDocument) !== null && D !== void 0 && D.contains(s));
|
|
601
576
|
}
|
|
602
577
|
}
|
|
603
578
|
return l;
|
|
604
579
|
}, qt = function(e) {
|
|
605
580
|
var r = e.getBoundingClientRect(), n = r.width, s = r.height;
|
|
606
581
|
return n === 0 && s === 0;
|
|
607
|
-
},
|
|
582
|
+
}, li = function(e, r) {
|
|
608
583
|
var n = r.displayCheck, s = r.getShadowRoot;
|
|
609
584
|
if (n === "full-native" && "checkVisibility" in e) {
|
|
610
585
|
var l = e.checkVisibility({
|
|
@@ -631,22 +606,22 @@ var oa = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
631
606
|
// Element#checkVisibility is unsupported
|
|
632
607
|
n === "full-native" || n === "legacy-full") {
|
|
633
608
|
if (typeof s == "function") {
|
|
634
|
-
for (var
|
|
635
|
-
var
|
|
636
|
-
if (
|
|
609
|
+
for (var g = e; e; ) {
|
|
610
|
+
var _ = e.parentElement, $ = et(e);
|
|
611
|
+
if (_ && !_.shadowRoot && s(_) === !0)
|
|
637
612
|
return qt(e);
|
|
638
|
-
e.assignedSlot ? e = e.assignedSlot : !
|
|
613
|
+
e.assignedSlot ? e = e.assignedSlot : !_ && $ !== e.ownerDocument ? e = $.host : e = _;
|
|
639
614
|
}
|
|
640
|
-
e =
|
|
615
|
+
e = g;
|
|
641
616
|
}
|
|
642
|
-
if (
|
|
617
|
+
if (si(e))
|
|
643
618
|
return !e.getClientRects().length;
|
|
644
619
|
if (n !== "legacy-full")
|
|
645
620
|
return !0;
|
|
646
621
|
} else if (n === "non-zero-area")
|
|
647
622
|
return qt(e);
|
|
648
623
|
return !1;
|
|
649
|
-
},
|
|
624
|
+
}, ci = function(e) {
|
|
650
625
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
651
626
|
for (var r = e.parentElement; r; ) {
|
|
652
627
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -661,37 +636,37 @@ var oa = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
661
636
|
}
|
|
662
637
|
return !1;
|
|
663
638
|
}, nt = function(e, r) {
|
|
664
|
-
return !(r.disabled ||
|
|
665
|
-
|
|
639
|
+
return !(r.disabled || ti(r) || li(r, e) || // For a details element with a summary, the summary element gets the focus
|
|
640
|
+
ai(r) || ci(r));
|
|
666
641
|
}, wt = function(e, r) {
|
|
667
|
-
return !(
|
|
668
|
-
},
|
|
642
|
+
return !(oi(r) || Se(r) < 0 || !nt(e, r));
|
|
643
|
+
}, ui = function(e) {
|
|
669
644
|
var r = parseInt(e.getAttribute("tabindex"), 10);
|
|
670
645
|
return !!(isNaN(r) || r >= 0);
|
|
671
646
|
}, da = function(e) {
|
|
672
647
|
var r = [], n = [];
|
|
673
648
|
return e.forEach(function(s, l) {
|
|
674
|
-
var i = !!s.scopeParent, f = i ? s.scopeParent : s,
|
|
675
|
-
|
|
649
|
+
var i = !!s.scopeParent, f = i ? s.scopeParent : s, g = Jr(f, i), _ = i ? da(s.candidates) : f;
|
|
650
|
+
g === 0 ? i ? r.push.apply(r, _) : r.push(f) : n.push({
|
|
676
651
|
documentOrder: l,
|
|
677
|
-
tabIndex:
|
|
652
|
+
tabIndex: g,
|
|
678
653
|
item: s,
|
|
679
654
|
isScope: i,
|
|
680
|
-
content:
|
|
655
|
+
content: _
|
|
681
656
|
});
|
|
682
|
-
}), n.sort(
|
|
657
|
+
}), n.sort(ei).reduce(function(s, l) {
|
|
683
658
|
return l.isScope ? s.push.apply(s, l.content) : s.push(l.content), s;
|
|
684
659
|
}, []).concat(r);
|
|
685
|
-
},
|
|
660
|
+
}, di = function(e, r) {
|
|
686
661
|
r = r || {};
|
|
687
662
|
var n;
|
|
688
663
|
return r.getShadowRoot ? n = at([e], r.includeContainer, {
|
|
689
664
|
filter: wt.bind(null, r),
|
|
690
665
|
flatten: !1,
|
|
691
666
|
getShadowRoot: r.getShadowRoot,
|
|
692
|
-
shadowRootFilter:
|
|
667
|
+
shadowRootFilter: ui
|
|
693
668
|
}) : n = la(e, r.includeContainer, wt.bind(null, r)), da(n);
|
|
694
|
-
},
|
|
669
|
+
}, fi = function(e, r) {
|
|
695
670
|
r = r || {};
|
|
696
671
|
var n;
|
|
697
672
|
return r.getShadowRoot ? n = at([e], r.includeContainer, {
|
|
@@ -703,10 +678,10 @@ var oa = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
703
678
|
if (r = r || {}, !e)
|
|
704
679
|
throw new Error("No node provided");
|
|
705
680
|
return Ie.call(e, Je) === !1 ? !1 : wt(r, e);
|
|
706
|
-
},
|
|
681
|
+
}, vi = /* @__PURE__ */ oa.concat("iframe:not([inert]):not([inert] *)").join(","), yt = function(e, r) {
|
|
707
682
|
if (r = r || {}, !e)
|
|
708
683
|
throw new Error("No node provided");
|
|
709
|
-
return Ie.call(e,
|
|
684
|
+
return Ie.call(e, vi) === !1 ? !1 : nt(r, e);
|
|
710
685
|
};
|
|
711
686
|
/*!
|
|
712
687
|
* focus-trap 8.2.1
|
|
@@ -717,7 +692,7 @@ function kt(a, e) {
|
|
|
717
692
|
for (var r = 0, n = Array(e); r < e; r++) n[r] = a[r];
|
|
718
693
|
return n;
|
|
719
694
|
}
|
|
720
|
-
function
|
|
695
|
+
function bi(a) {
|
|
721
696
|
if (Array.isArray(a)) return kt(a);
|
|
722
697
|
}
|
|
723
698
|
function Xt(a, e) {
|
|
@@ -737,8 +712,8 @@ function Xt(a, e) {
|
|
|
737
712
|
value: a[n++]
|
|
738
713
|
};
|
|
739
714
|
},
|
|
740
|
-
e: function(
|
|
741
|
-
throw
|
|
715
|
+
e: function(g) {
|
|
716
|
+
throw g;
|
|
742
717
|
},
|
|
743
718
|
f: s
|
|
744
719
|
};
|
|
@@ -752,11 +727,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
752
727
|
r = r.call(a);
|
|
753
728
|
},
|
|
754
729
|
n: function() {
|
|
755
|
-
var
|
|
756
|
-
return i =
|
|
730
|
+
var g = r.next();
|
|
731
|
+
return i = g.done, g;
|
|
757
732
|
},
|
|
758
|
-
e: function(
|
|
759
|
-
f = !0, l =
|
|
733
|
+
e: function(g) {
|
|
734
|
+
f = !0, l = g;
|
|
760
735
|
},
|
|
761
736
|
f: function() {
|
|
762
737
|
try {
|
|
@@ -767,18 +742,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
767
742
|
}
|
|
768
743
|
};
|
|
769
744
|
}
|
|
770
|
-
function
|
|
771
|
-
return (e =
|
|
745
|
+
function pi(a, e, r) {
|
|
746
|
+
return (e = wi(e)) in a ? Object.defineProperty(a, e, {
|
|
772
747
|
value: r,
|
|
773
748
|
enumerable: !0,
|
|
774
749
|
configurable: !0,
|
|
775
750
|
writable: !0
|
|
776
751
|
}) : a[e] = r, a;
|
|
777
752
|
}
|
|
778
|
-
function
|
|
753
|
+
function hi(a) {
|
|
779
754
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
780
755
|
}
|
|
781
|
-
function
|
|
756
|
+
function mi() {
|
|
782
757
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
783
758
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
784
759
|
}
|
|
@@ -796,17 +771,17 @@ function Qt(a) {
|
|
|
796
771
|
for (var e = 1; e < arguments.length; e++) {
|
|
797
772
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
798
773
|
e % 2 ? Yt(Object(r), !0).forEach(function(n) {
|
|
799
|
-
|
|
774
|
+
pi(a, n, r[n]);
|
|
800
775
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Yt(Object(r)).forEach(function(n) {
|
|
801
776
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(r, n));
|
|
802
777
|
});
|
|
803
778
|
}
|
|
804
779
|
return a;
|
|
805
780
|
}
|
|
806
|
-
function
|
|
807
|
-
return
|
|
781
|
+
function gi(a) {
|
|
782
|
+
return bi(a) || hi(a) || fa(a) || mi();
|
|
808
783
|
}
|
|
809
|
-
function
|
|
784
|
+
function yi(a, e) {
|
|
810
785
|
if (typeof a != "object" || !a) return a;
|
|
811
786
|
var r = a[Symbol.toPrimitive];
|
|
812
787
|
if (r !== void 0) {
|
|
@@ -816,8 +791,8 @@ function ki(a, e) {
|
|
|
816
791
|
}
|
|
817
792
|
return (e === "string" ? String : Number)(a);
|
|
818
793
|
}
|
|
819
|
-
function
|
|
820
|
-
var e =
|
|
794
|
+
function wi(a) {
|
|
795
|
+
var e = yi(a, "string");
|
|
821
796
|
return typeof e == "symbol" ? e : e + "";
|
|
822
797
|
}
|
|
823
798
|
function fa(a, e) {
|
|
@@ -854,15 +829,15 @@ var fe = {
|
|
|
854
829
|
var r = fe.getActiveTrap(e);
|
|
855
830
|
r && !r._isManuallyPaused() && r._setPausedState(!1);
|
|
856
831
|
}
|
|
857
|
-
},
|
|
832
|
+
}, ki = function(e) {
|
|
858
833
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
859
|
-
},
|
|
834
|
+
}, Si = function(e) {
|
|
860
835
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
861
836
|
}, Me = function(e) {
|
|
862
837
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
863
|
-
},
|
|
838
|
+
}, Ti = function(e) {
|
|
864
839
|
return Me(e) && !e.shiftKey;
|
|
865
|
-
},
|
|
840
|
+
}, Ii = function(e) {
|
|
866
841
|
return Me(e) && e.shiftKey;
|
|
867
842
|
}, Jt = function(e) {
|
|
868
843
|
return setTimeout(e, 0);
|
|
@@ -872,15 +847,15 @@ var fe = {
|
|
|
872
847
|
return typeof e == "function" ? e.apply(void 0, n) : e;
|
|
873
848
|
}, qe = function(e) {
|
|
874
849
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
875
|
-
},
|
|
876
|
-
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) ||
|
|
850
|
+
}, Ci = [], _i = function(e, r) {
|
|
851
|
+
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) || Ci, l = Qt({
|
|
877
852
|
returnFocusOnDeactivate: !0,
|
|
878
853
|
escapeDeactivates: !0,
|
|
879
854
|
delayInitialFocus: !0,
|
|
880
855
|
delayReturnFocus: !0,
|
|
881
856
|
isolateSubtrees: !1,
|
|
882
|
-
isKeyForward:
|
|
883
|
-
isKeyBackward:
|
|
857
|
+
isKeyForward: Ti,
|
|
858
|
+
isKeyBackward: Ii
|
|
884
859
|
}, r), i = {
|
|
885
860
|
// containers given to createFocusTrap()
|
|
886
861
|
/** @type {Array<HTMLElement>} */
|
|
@@ -925,67 +900,67 @@ var fe = {
|
|
|
925
900
|
delayInitialFocusTimer: void 0,
|
|
926
901
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
927
902
|
recentNavEvent: void 0
|
|
928
|
-
}, f,
|
|
903
|
+
}, f, g = function(c, d, y) {
|
|
929
904
|
return c && c[d] !== void 0 ? c[d] : l[y || d];
|
|
930
|
-
},
|
|
905
|
+
}, _ = function(c, d) {
|
|
931
906
|
var y = typeof (d == null ? void 0 : d.composedPath) == "function" ? d.composedPath() : void 0;
|
|
932
|
-
return i.containerGroups.findIndex(function(
|
|
933
|
-
var
|
|
934
|
-
return
|
|
907
|
+
return i.containerGroups.findIndex(function(O) {
|
|
908
|
+
var T = O.container, N = O.tabbableNodes;
|
|
909
|
+
return T.contains(c) || // fall back to explicit tabbable search which will take into consideration any
|
|
935
910
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
936
911
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
937
912
|
// look inside web components even if open)
|
|
938
|
-
(y == null ? void 0 : y.includes(
|
|
939
|
-
return
|
|
913
|
+
(y == null ? void 0 : y.includes(T)) || N.find(function(b) {
|
|
914
|
+
return b === c;
|
|
940
915
|
});
|
|
941
916
|
});
|
|
942
|
-
},
|
|
943
|
-
var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = d.hasFallback,
|
|
944
|
-
if (typeof
|
|
945
|
-
if (
|
|
946
|
-
return
|
|
917
|
+
}, $ = function(c) {
|
|
918
|
+
var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = d.hasFallback, O = y === void 0 ? !1 : y, T = d.params, N = T === void 0 ? [] : T, b = l[c];
|
|
919
|
+
if (typeof b == "function" && (b = b.apply(void 0, gi(N))), b === !0 && (b = void 0), !b) {
|
|
920
|
+
if (b === void 0 || b === !1)
|
|
921
|
+
return b;
|
|
947
922
|
throw new Error("`".concat(c, "` was specified but was not a node, or did not return a node"));
|
|
948
923
|
}
|
|
949
|
-
var v =
|
|
950
|
-
if (typeof
|
|
924
|
+
var v = b;
|
|
925
|
+
if (typeof b == "string") {
|
|
951
926
|
try {
|
|
952
|
-
v = n.querySelector(
|
|
953
|
-
} catch (
|
|
954
|
-
throw new Error("`".concat(c, '` appears to be an invalid selector; error="').concat(
|
|
927
|
+
v = n.querySelector(b);
|
|
928
|
+
} catch (p) {
|
|
929
|
+
throw new Error("`".concat(c, '` appears to be an invalid selector; error="').concat(p.message, '"'));
|
|
955
930
|
}
|
|
956
|
-
if (!v &&
|
|
931
|
+
if (!v && !O)
|
|
957
932
|
throw new Error("`".concat(c, "` as selector refers to no known node"));
|
|
958
933
|
}
|
|
959
934
|
return v;
|
|
960
|
-
},
|
|
935
|
+
}, D = function(c) {
|
|
961
936
|
var d = c.activeElement;
|
|
962
|
-
return d ? d.shadowRoot && d.shadowRoot.activeElement !== null ?
|
|
937
|
+
return d ? d.shadowRoot && d.shadowRoot.activeElement !== null ? D(d.shadowRoot) : d : null;
|
|
963
938
|
}, L = function() {
|
|
964
|
-
var c =
|
|
939
|
+
var c = $("initialFocus", {
|
|
965
940
|
hasFallback: !0
|
|
966
941
|
});
|
|
967
942
|
if (c === !1)
|
|
968
943
|
return !1;
|
|
969
944
|
if (c === void 0 || c && !yt(c, l.tabbableOptions)) {
|
|
970
|
-
var d =
|
|
971
|
-
if (
|
|
945
|
+
var d = D(n);
|
|
946
|
+
if (_(d) >= 0)
|
|
972
947
|
c = d;
|
|
973
948
|
else {
|
|
974
|
-
var y = i.tabbableGroups[0],
|
|
975
|
-
c =
|
|
949
|
+
var y = i.tabbableGroups[0], O = y && y.firstTabbableNode;
|
|
950
|
+
c = O || $("fallbackFocus");
|
|
976
951
|
}
|
|
977
|
-
} else c === null && (c =
|
|
952
|
+
} else c === null && (c = $("fallbackFocus"));
|
|
978
953
|
if (!c)
|
|
979
954
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
980
955
|
return c;
|
|
981
|
-
},
|
|
956
|
+
}, R = function() {
|
|
982
957
|
if (i.containerGroups = i.containers.map(function(c) {
|
|
983
|
-
var d =
|
|
984
|
-
return Ee(
|
|
985
|
-
}),
|
|
986
|
-
return Ee(
|
|
987
|
-
}), v = !!d.find(function(
|
|
988
|
-
return Se(
|
|
958
|
+
var d = di(c, l.tabbableOptions), y = fi(c, l.tabbableOptions), O = d.length > 0 ? d[0] : void 0, T = d.length > 0 ? d[d.length - 1] : void 0, N = y.find(function(p) {
|
|
959
|
+
return Ee(p);
|
|
960
|
+
}), b = y.slice().reverse().find(function(p) {
|
|
961
|
+
return Ee(p);
|
|
962
|
+
}), v = !!d.find(function(p) {
|
|
963
|
+
return Se(p) > 0;
|
|
989
964
|
});
|
|
990
965
|
return {
|
|
991
966
|
container: c,
|
|
@@ -994,9 +969,9 @@ var fe = {
|
|
|
994
969
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
995
970
|
posTabIndexesFound: v,
|
|
996
971
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
997
|
-
firstTabbableNode:
|
|
972
|
+
firstTabbableNode: O,
|
|
998
973
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
999
|
-
lastTabbableNode:
|
|
974
|
+
lastTabbableNode: T,
|
|
1000
975
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
1001
976
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
1002
977
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -1005,9 +980,9 @@ var fe = {
|
|
|
1005
980
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
1006
981
|
// be avoided anyway...
|
|
1007
982
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1008
|
-
firstDomTabbableNode:
|
|
983
|
+
firstDomTabbableNode: N,
|
|
1009
984
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1010
|
-
lastDomTabbableNode:
|
|
985
|
+
lastDomTabbableNode: b,
|
|
1011
986
|
/**
|
|
1012
987
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
1013
988
|
* in this container, if any.
|
|
@@ -1016,71 +991,71 @@ var fe = {
|
|
|
1016
991
|
* in reverse.
|
|
1017
992
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
1018
993
|
*/
|
|
1019
|
-
nextTabbableNode: function(
|
|
1020
|
-
var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, K = d.indexOf(
|
|
1021
|
-
return K < 0 ? w ? y.slice(y.indexOf(
|
|
1022
|
-
return Ee(
|
|
1023
|
-
}) : y.slice(0, y.indexOf(
|
|
1024
|
-
return Ee(
|
|
994
|
+
nextTabbableNode: function(m) {
|
|
995
|
+
var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, K = d.indexOf(m);
|
|
996
|
+
return K < 0 ? w ? y.slice(y.indexOf(m) + 1).find(function(j) {
|
|
997
|
+
return Ee(j);
|
|
998
|
+
}) : y.slice(0, y.indexOf(m)).reverse().find(function(j) {
|
|
999
|
+
return Ee(j);
|
|
1025
1000
|
}) : d[K + (w ? 1 : -1)];
|
|
1026
1001
|
}
|
|
1027
1002
|
};
|
|
1028
1003
|
}), i.tabbableGroups = i.containerGroups.filter(function(c) {
|
|
1029
1004
|
return c.tabbableNodes.length > 0;
|
|
1030
|
-
}), i.tabbableGroups.length <= 0 &&
|
|
1005
|
+
}), i.tabbableGroups.length <= 0 && !$("fallbackFocus"))
|
|
1031
1006
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
1032
1007
|
if (i.containerGroups.find(function(c) {
|
|
1033
1008
|
return c.posTabIndexesFound;
|
|
1034
1009
|
}) && i.containerGroups.length > 1)
|
|
1035
1010
|
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.");
|
|
1036
|
-
},
|
|
1037
|
-
if (c !== !1 && c !==
|
|
1011
|
+
}, M = function(c) {
|
|
1012
|
+
if (c !== !1 && c !== D(document)) {
|
|
1038
1013
|
if (!c || !c.focus) {
|
|
1039
|
-
|
|
1014
|
+
M(L());
|
|
1040
1015
|
return;
|
|
1041
1016
|
}
|
|
1042
1017
|
c.focus({
|
|
1043
1018
|
preventScroll: !!l.preventScroll
|
|
1044
|
-
}), i.mostRecentlyFocusedNode = c,
|
|
1019
|
+
}), i.mostRecentlyFocusedNode = c, ki(c) && c.select();
|
|
1045
1020
|
}
|
|
1046
|
-
},
|
|
1047
|
-
var d =
|
|
1021
|
+
}, P = function(c) {
|
|
1022
|
+
var d = $("setReturnFocus", {
|
|
1048
1023
|
params: [c]
|
|
1049
1024
|
});
|
|
1050
1025
|
return d || (d === !1 ? !1 : c);
|
|
1051
1026
|
}, re = function(c) {
|
|
1052
|
-
var d = c.target, y = c.event,
|
|
1053
|
-
d = d || qe(y),
|
|
1054
|
-
var
|
|
1027
|
+
var d = c.target, y = c.event, O = c.isBackward, T = O === void 0 ? !1 : O;
|
|
1028
|
+
d = d || qe(y), R();
|
|
1029
|
+
var N = null;
|
|
1055
1030
|
if (i.tabbableGroups.length > 0) {
|
|
1056
|
-
var
|
|
1057
|
-
if (
|
|
1058
|
-
|
|
1059
|
-
else if (
|
|
1060
|
-
var
|
|
1031
|
+
var b = _(d, y), v = b >= 0 ? i.containerGroups[b] : void 0;
|
|
1032
|
+
if (b < 0)
|
|
1033
|
+
T ? N = i.tabbableGroups[i.tabbableGroups.length - 1].lastTabbableNode : N = i.tabbableGroups[0].firstTabbableNode;
|
|
1034
|
+
else if (T) {
|
|
1035
|
+
var p = i.tabbableGroups.findIndex(function(ce) {
|
|
1061
1036
|
var xe = ce.firstTabbableNode;
|
|
1062
1037
|
return d === xe;
|
|
1063
1038
|
});
|
|
1064
|
-
if (
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1067
|
-
} else Me(y) || (
|
|
1039
|
+
if (p < 0 && (v.container === d || yt(d, l.tabbableOptions) && !Ee(d, l.tabbableOptions) && !v.nextTabbableNode(d, !1)) && (p = b), p >= 0) {
|
|
1040
|
+
var m = p === 0 ? i.tabbableGroups.length - 1 : p - 1, w = i.tabbableGroups[m];
|
|
1041
|
+
N = Se(d) >= 0 ? w.lastTabbableNode : w.lastDomTabbableNode;
|
|
1042
|
+
} else Me(y) || (N = v.nextTabbableNode(d, !1));
|
|
1068
1043
|
} else {
|
|
1069
1044
|
var K = i.tabbableGroups.findIndex(function(ce) {
|
|
1070
1045
|
var xe = ce.lastTabbableNode;
|
|
1071
1046
|
return d === xe;
|
|
1072
1047
|
});
|
|
1073
|
-
if (K < 0 && (v.container === d || yt(d, l.tabbableOptions) && !Ee(d, l.tabbableOptions) && !v.nextTabbableNode(d)) && (K =
|
|
1074
|
-
var
|
|
1075
|
-
|
|
1076
|
-
} else Me(y) || (
|
|
1048
|
+
if (K < 0 && (v.container === d || yt(d, l.tabbableOptions) && !Ee(d, l.tabbableOptions) && !v.nextTabbableNode(d)) && (K = b), K >= 0) {
|
|
1049
|
+
var j = K === i.tabbableGroups.length - 1 ? 0 : K + 1, Z = i.tabbableGroups[j];
|
|
1050
|
+
N = Se(d) >= 0 ? Z.firstTabbableNode : Z.firstDomTabbableNode;
|
|
1051
|
+
} else Me(y) || (N = v.nextTabbableNode(d));
|
|
1077
1052
|
}
|
|
1078
1053
|
} else
|
|
1079
|
-
|
|
1080
|
-
return
|
|
1054
|
+
N = $("fallbackFocus");
|
|
1055
|
+
return N;
|
|
1081
1056
|
}, W = function(c) {
|
|
1082
1057
|
var d = qe(c);
|
|
1083
|
-
if (!(
|
|
1058
|
+
if (!(_(d, c) >= 0)) {
|
|
1084
1059
|
if (Le(l.clickOutsideDeactivates, c)) {
|
|
1085
1060
|
f.deactivate({
|
|
1086
1061
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -1096,35 +1071,35 @@ var fe = {
|
|
|
1096
1071
|
Le(l.allowOutsideClick, c) || c.preventDefault();
|
|
1097
1072
|
}
|
|
1098
1073
|
}, z = function(c) {
|
|
1099
|
-
var d = qe(c), y =
|
|
1074
|
+
var d = qe(c), y = _(d, c) >= 0;
|
|
1100
1075
|
if (y || d instanceof Document)
|
|
1101
1076
|
y && (i.mostRecentlyFocusedNode = d);
|
|
1102
1077
|
else {
|
|
1103
1078
|
c.stopImmediatePropagation();
|
|
1104
|
-
var
|
|
1079
|
+
var O, T = !0;
|
|
1105
1080
|
if (i.mostRecentlyFocusedNode)
|
|
1106
1081
|
if (Se(i.mostRecentlyFocusedNode) > 0) {
|
|
1107
|
-
var
|
|
1108
|
-
if (
|
|
1109
|
-
var v =
|
|
1110
|
-
return
|
|
1082
|
+
var N = _(i.mostRecentlyFocusedNode), b = i.containerGroups[N].tabbableNodes;
|
|
1083
|
+
if (b.length > 0) {
|
|
1084
|
+
var v = b.findIndex(function(p) {
|
|
1085
|
+
return p === i.mostRecentlyFocusedNode;
|
|
1111
1086
|
});
|
|
1112
|
-
v >= 0 && (l.isKeyForward(i.recentNavEvent) ? v + 1 <
|
|
1087
|
+
v >= 0 && (l.isKeyForward(i.recentNavEvent) ? v + 1 < b.length && (O = b[v + 1], T = !1) : v - 1 >= 0 && (O = b[v - 1], T = !1));
|
|
1113
1088
|
}
|
|
1114
1089
|
} else
|
|
1115
|
-
i.containerGroups.some(function(
|
|
1116
|
-
return
|
|
1117
|
-
return Se(
|
|
1090
|
+
i.containerGroups.some(function(p) {
|
|
1091
|
+
return p.tabbableNodes.some(function(m) {
|
|
1092
|
+
return Se(m) > 0;
|
|
1118
1093
|
});
|
|
1119
|
-
}) || (
|
|
1094
|
+
}) || (T = !1);
|
|
1120
1095
|
else
|
|
1121
|
-
|
|
1122
|
-
|
|
1096
|
+
T = !1;
|
|
1097
|
+
T && (O = re({
|
|
1123
1098
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1124
1099
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1125
1100
|
target: i.mostRecentlyFocusedNode,
|
|
1126
1101
|
isBackward: l.isKeyBackward(i.recentNavEvent)
|
|
1127
|
-
})),
|
|
1102
|
+
})), M(O || i.mostRecentlyFocusedNode || L());
|
|
1128
1103
|
}
|
|
1129
1104
|
i.recentNavEvent = void 0;
|
|
1130
1105
|
}, ve = function(c) {
|
|
@@ -1134,23 +1109,23 @@ var fe = {
|
|
|
1134
1109
|
event: c,
|
|
1135
1110
|
isBackward: d
|
|
1136
1111
|
});
|
|
1137
|
-
y && (Me(c) && c.preventDefault(),
|
|
1112
|
+
y && (Me(c) && c.preventDefault(), M(y));
|
|
1138
1113
|
}, le = function(c) {
|
|
1139
1114
|
(l.isKeyForward(c) || l.isKeyBackward(c)) && ve(c, l.isKeyBackward(c));
|
|
1140
1115
|
}, J = function(c) {
|
|
1141
|
-
|
|
1116
|
+
Si(c) && Le(l.escapeDeactivates, c) !== !1 && (c.preventDefault(), f.deactivate());
|
|
1142
1117
|
}, q = function(c) {
|
|
1143
1118
|
var d = qe(c);
|
|
1144
|
-
|
|
1119
|
+
_(d, c) >= 0 || Le(l.clickOutsideDeactivates, c) || Le(l.allowOutsideClick, c) || (c.preventDefault(), c.stopImmediatePropagation());
|
|
1145
1120
|
}, se = function() {
|
|
1146
1121
|
if (i.active) {
|
|
1147
1122
|
fe.activateTrap(s, f);
|
|
1148
1123
|
var c;
|
|
1149
1124
|
return l.delayInitialFocus ? c = new Promise(function(d) {
|
|
1150
1125
|
i.delayInitialFocusTimer = Jt(function() {
|
|
1151
|
-
|
|
1126
|
+
M(L()), d();
|
|
1152
1127
|
});
|
|
1153
|
-
}) :
|
|
1128
|
+
}) : M(L()), n.addEventListener("focusin", z, !0), n.addEventListener("mousedown", W, {
|
|
1154
1129
|
capture: !0,
|
|
1155
1130
|
passive: !1
|
|
1156
1131
|
}), n.addEventListener("touchstart", W, {
|
|
@@ -1166,33 +1141,33 @@ var fe = {
|
|
|
1166
1141
|
}
|
|
1167
1142
|
}, x = function(c) {
|
|
1168
1143
|
i.active && !i.paused && f._setSubtreeIsolation(!1), i.adjacentElements.clear(), i.alreadySilent.clear();
|
|
1169
|
-
var d = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set(),
|
|
1144
|
+
var d = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set(), O = Xt(c), T;
|
|
1170
1145
|
try {
|
|
1171
|
-
for (
|
|
1172
|
-
var
|
|
1173
|
-
d.add(
|
|
1174
|
-
for (var
|
|
1146
|
+
for (O.s(); !(T = O.n()).done; ) {
|
|
1147
|
+
var N = T.value;
|
|
1148
|
+
d.add(N);
|
|
1149
|
+
for (var b = typeof ShadowRoot < "u" && N.getRootNode() instanceof ShadowRoot, v = N; v; ) {
|
|
1175
1150
|
d.add(v);
|
|
1176
|
-
var
|
|
1177
|
-
|
|
1178
|
-
var w = Xt(
|
|
1151
|
+
var p = v.parentElement, m = [];
|
|
1152
|
+
p ? m = p.children : !p && b && (m = v.getRootNode().children, p = v.getRootNode().host, b = typeof ShadowRoot < "u" && p.getRootNode() instanceof ShadowRoot);
|
|
1153
|
+
var w = Xt(m), K;
|
|
1179
1154
|
try {
|
|
1180
1155
|
for (w.s(); !(K = w.n()).done; ) {
|
|
1181
|
-
var
|
|
1182
|
-
y.add(
|
|
1156
|
+
var j = K.value;
|
|
1157
|
+
y.add(j);
|
|
1183
1158
|
}
|
|
1184
1159
|
} catch (Z) {
|
|
1185
1160
|
w.e(Z);
|
|
1186
1161
|
} finally {
|
|
1187
1162
|
w.f();
|
|
1188
1163
|
}
|
|
1189
|
-
v =
|
|
1164
|
+
v = p;
|
|
1190
1165
|
}
|
|
1191
1166
|
}
|
|
1192
1167
|
} catch (Z) {
|
|
1193
|
-
|
|
1168
|
+
O.e(Z);
|
|
1194
1169
|
} finally {
|
|
1195
|
-
|
|
1170
|
+
O.f();
|
|
1196
1171
|
}
|
|
1197
1172
|
d.forEach(function(Z) {
|
|
1198
1173
|
y.delete(Z);
|
|
@@ -1203,18 +1178,18 @@ var fe = {
|
|
|
1203
1178
|
}, V = function(c) {
|
|
1204
1179
|
var d = i.mostRecentlyFocusedNode;
|
|
1205
1180
|
if (d) {
|
|
1206
|
-
var y = c.some(function(
|
|
1207
|
-
var
|
|
1208
|
-
return
|
|
1209
|
-
return
|
|
1181
|
+
var y = c.some(function(T) {
|
|
1182
|
+
var N = Array.from(T.removedNodes);
|
|
1183
|
+
return N.some(function(b) {
|
|
1184
|
+
return b === d || typeof b.contains == "function" && b.contains(d);
|
|
1210
1185
|
});
|
|
1211
1186
|
});
|
|
1212
|
-
if (y && i.containers.some(function(
|
|
1213
|
-
return
|
|
1187
|
+
if (y && i.containers.some(function(T) {
|
|
1188
|
+
return T == null ? void 0 : T.isConnected;
|
|
1214
1189
|
})) {
|
|
1215
|
-
|
|
1216
|
-
var
|
|
1217
|
-
|
|
1190
|
+
R();
|
|
1191
|
+
var O = L();
|
|
1192
|
+
M(O);
|
|
1218
1193
|
}
|
|
1219
1194
|
}
|
|
1220
1195
|
}, X = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(V) : void 0, ee = function() {
|
|
@@ -1235,17 +1210,17 @@ var fe = {
|
|
|
1235
1210
|
activate: function(c) {
|
|
1236
1211
|
if (i.active)
|
|
1237
1212
|
return this;
|
|
1238
|
-
var d =
|
|
1239
|
-
if (
|
|
1240
|
-
var
|
|
1241
|
-
(
|
|
1213
|
+
var d = g(c, "onActivate"), y = g(c, "onPostActivate"), O = g(c, "checkCanFocusTrap"), T = fe.getActiveTrap(s), N = !1;
|
|
1214
|
+
if (T && !T.paused) {
|
|
1215
|
+
var b;
|
|
1216
|
+
(b = T._setSubtreeIsolation) === null || b === void 0 || b.call(T, !1), N = !0;
|
|
1242
1217
|
}
|
|
1243
1218
|
try {
|
|
1244
|
-
|
|
1219
|
+
O || R(), i.active = !0, i.paused = !1, i.nodeFocusedBeforeActivation = D(n), d == null || d({
|
|
1245
1220
|
trap: f
|
|
1246
1221
|
});
|
|
1247
1222
|
var v = function() {
|
|
1248
|
-
|
|
1223
|
+
O && R();
|
|
1249
1224
|
var w = function() {
|
|
1250
1225
|
f._setSubtreeIsolation(!0), ee(), y == null || y({
|
|
1251
1226
|
trap: f
|
|
@@ -1253,15 +1228,15 @@ var fe = {
|
|
|
1253
1228
|
}, K = se();
|
|
1254
1229
|
K ? K.then(w) : w();
|
|
1255
1230
|
};
|
|
1256
|
-
if (
|
|
1257
|
-
return
|
|
1231
|
+
if (O)
|
|
1232
|
+
return O(i.containers.concat()).then(v, v), this;
|
|
1258
1233
|
v();
|
|
1259
|
-
} catch (
|
|
1260
|
-
if (
|
|
1261
|
-
var
|
|
1262
|
-
(
|
|
1234
|
+
} catch (m) {
|
|
1235
|
+
if (T === fe.getActiveTrap(s) && N) {
|
|
1236
|
+
var p;
|
|
1237
|
+
(p = T._setSubtreeIsolation) === null || p === void 0 || p.call(T, !0);
|
|
1263
1238
|
}
|
|
1264
|
-
throw
|
|
1239
|
+
throw m;
|
|
1265
1240
|
}
|
|
1266
1241
|
return this;
|
|
1267
1242
|
},
|
|
@@ -1274,18 +1249,18 @@ var fe = {
|
|
|
1274
1249
|
checkCanReturnFocus: l.checkCanReturnFocus
|
|
1275
1250
|
}, c);
|
|
1276
1251
|
clearTimeout(i.delayInitialFocusTimer), i.delayInitialFocusTimer = void 0, i.paused || f._setSubtreeIsolation(!1), i.alreadySilent.clear(), G(), i.active = !1, i.paused = !1, ee(), fe.deactivateTrap(s, f);
|
|
1277
|
-
var y =
|
|
1252
|
+
var y = g(d, "onDeactivate"), O = g(d, "onPostDeactivate"), T = g(d, "checkCanReturnFocus"), N = g(d, "delayReturnFocus"), b = g(d, "returnFocus", "returnFocusOnDeactivate");
|
|
1278
1253
|
y == null || y({
|
|
1279
1254
|
trap: f
|
|
1280
1255
|
});
|
|
1281
1256
|
var v = function() {
|
|
1282
|
-
|
|
1257
|
+
b && M(P(i.nodeFocusedBeforeActivation)), O == null || O({
|
|
1283
1258
|
trap: f
|
|
1284
1259
|
});
|
|
1285
|
-
},
|
|
1286
|
-
|
|
1260
|
+
}, p = function() {
|
|
1261
|
+
N && b ? Jt(v) : v();
|
|
1287
1262
|
};
|
|
1288
|
-
return
|
|
1263
|
+
return b && T ? (T(P(i.nodeFocusedBeforeActivation)).then(p, p), this) : (p(), this);
|
|
1289
1264
|
},
|
|
1290
1265
|
pause: function(c) {
|
|
1291
1266
|
return i.active ? (i.manuallyPaused = !0, this._setPausedState(!0, c)) : this;
|
|
@@ -1297,7 +1272,7 @@ var fe = {
|
|
|
1297
1272
|
var d = [].concat(c).filter(Boolean);
|
|
1298
1273
|
return i.containers = d.map(function(y) {
|
|
1299
1274
|
return typeof y == "string" ? n.querySelector(y) : y;
|
|
1300
|
-
}), l.isolateSubtrees && x(i.containers), i.active && (
|
|
1275
|
+
}), l.isolateSubtrees && x(i.containers), i.active && (R(), i.paused || f._setSubtreeIsolation(!0)), ee(), this;
|
|
1301
1276
|
}
|
|
1302
1277
|
}, Object.defineProperties(f, {
|
|
1303
1278
|
_isManuallyPaused: {
|
|
@@ -1310,27 +1285,27 @@ var fe = {
|
|
|
1310
1285
|
if (i.paused === c)
|
|
1311
1286
|
return this;
|
|
1312
1287
|
if (i.paused = c, c) {
|
|
1313
|
-
var y =
|
|
1288
|
+
var y = g(d, "onPause"), O = g(d, "onPostPause");
|
|
1314
1289
|
y == null || y({
|
|
1315
1290
|
trap: f
|
|
1316
|
-
}), G(), f._setSubtreeIsolation(!1), ee(),
|
|
1291
|
+
}), G(), f._setSubtreeIsolation(!1), ee(), O == null || O({
|
|
1317
1292
|
trap: f
|
|
1318
1293
|
});
|
|
1319
1294
|
} else {
|
|
1320
|
-
var
|
|
1321
|
-
|
|
1295
|
+
var T = g(d, "onUnpause"), N = g(d, "onPostUnpause");
|
|
1296
|
+
T == null || T({
|
|
1322
1297
|
trap: f
|
|
1323
1298
|
});
|
|
1324
|
-
var
|
|
1325
|
-
|
|
1326
|
-
var
|
|
1327
|
-
f._setSubtreeIsolation(!0), ee(),
|
|
1299
|
+
var b = function() {
|
|
1300
|
+
R();
|
|
1301
|
+
var p = function() {
|
|
1302
|
+
f._setSubtreeIsolation(!0), ee(), N == null || N({
|
|
1328
1303
|
trap: f
|
|
1329
1304
|
});
|
|
1330
|
-
},
|
|
1331
|
-
|
|
1305
|
+
}, m = se();
|
|
1306
|
+
m ? m.then(p) : p();
|
|
1332
1307
|
};
|
|
1333
|
-
|
|
1308
|
+
b();
|
|
1334
1309
|
}
|
|
1335
1310
|
return this;
|
|
1336
1311
|
}
|
|
@@ -1366,7 +1341,7 @@ var fe = {
|
|
|
1366
1341
|
* (c) 2025 Eduardo San Martin Morote
|
|
1367
1342
|
* @license MIT
|
|
1368
1343
|
*/
|
|
1369
|
-
const
|
|
1344
|
+
const Oi = {
|
|
1370
1345
|
escapeDeactivates: {
|
|
1371
1346
|
type: Boolean,
|
|
1372
1347
|
default: !0
|
|
@@ -1392,7 +1367,7 @@ const Ei = {
|
|
|
1392
1367
|
preventScroll: Boolean,
|
|
1393
1368
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1394
1369
|
tabbableOptions: Object
|
|
1395
|
-
},
|
|
1370
|
+
}, $i = ie({
|
|
1396
1371
|
name: "FocusTrap",
|
|
1397
1372
|
props: Object.assign({
|
|
1398
1373
|
active: {
|
|
@@ -1400,7 +1375,7 @@ const Ei = {
|
|
|
1400
1375
|
type: Boolean,
|
|
1401
1376
|
default: !0
|
|
1402
1377
|
}
|
|
1403
|
-
},
|
|
1378
|
+
}, Oi),
|
|
1404
1379
|
emits: [
|
|
1405
1380
|
"update:active",
|
|
1406
1381
|
"activate",
|
|
@@ -1413,12 +1388,12 @@ const Ei = {
|
|
|
1413
1388
|
},
|
|
1414
1389
|
setup(a, { slots: e, emit: r }) {
|
|
1415
1390
|
let n;
|
|
1416
|
-
const s = ne(null), l =
|
|
1391
|
+
const s = ne(null), l = I(() => {
|
|
1417
1392
|
const f = s.value;
|
|
1418
1393
|
return f && (f instanceof HTMLElement ? f : f.$el);
|
|
1419
1394
|
});
|
|
1420
1395
|
function i() {
|
|
1421
|
-
return n || (n =
|
|
1396
|
+
return n || (n = _i(l.value, {
|
|
1422
1397
|
escapeDeactivates: a.escapeDeactivates,
|
|
1423
1398
|
allowOutsideClick: a.allowOutsideClick,
|
|
1424
1399
|
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
@@ -1442,7 +1417,7 @@ const Ei = {
|
|
|
1442
1417
|
De(() => a.active, (f) => {
|
|
1443
1418
|
f && l.value ? i().activate() : n && (n.deactivate(), (!l.value || l.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
1444
1419
|
}, { immediate: !0, flush: "post" });
|
|
1445
|
-
}),
|
|
1420
|
+
}), Dn(() => {
|
|
1446
1421
|
n && n.deactivate(), n = null;
|
|
1447
1422
|
}), {
|
|
1448
1423
|
activate() {
|
|
@@ -1454,8 +1429,8 @@ const Ei = {
|
|
|
1454
1429
|
renderImpl() {
|
|
1455
1430
|
if (!e.default)
|
|
1456
1431
|
return null;
|
|
1457
|
-
const f = e.default().filter((
|
|
1458
|
-
return !f || !f.length || f.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), f) :
|
|
1432
|
+
const f = e.default().filter((_) => _.type !== xn);
|
|
1433
|
+
return !f || !f.length || f.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), f) : Rn(f[0], { ref: s });
|
|
1459
1434
|
}
|
|
1460
1435
|
};
|
|
1461
1436
|
}
|
|
@@ -1473,15 +1448,15 @@ function va() {
|
|
|
1473
1448
|
};
|
|
1474
1449
|
}
|
|
1475
1450
|
var Xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1476
|
-
function
|
|
1451
|
+
function Ei(a) {
|
|
1477
1452
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1478
1453
|
}
|
|
1479
1454
|
var rt = { exports: {} };
|
|
1480
1455
|
rt.exports;
|
|
1481
1456
|
(function(a, e) {
|
|
1482
|
-
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, l = "[object Arguments]", i = "[object Array]", f = "[object Boolean]",
|
|
1483
|
-
|
|
1484
|
-
var v = typeof Xe == "object" && Xe && Xe.Object === Object && Xe,
|
|
1457
|
+
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, l = "[object Arguments]", i = "[object Array]", f = "[object Boolean]", g = "[object Date]", _ = "[object Error]", $ = "[object Function]", D = "[object GeneratorFunction]", L = "[object Map]", R = "[object Number]", M = "[object Object]", P = "[object Promise]", re = "[object RegExp]", W = "[object Set]", z = "[object String]", ve = "[object Symbol]", le = "[object WeakMap]", J = "[object ArrayBuffer]", q = "[object DataView]", se = "[object Float32Array]", x = "[object Float64Array]", G = "[object Int8Array]", V = "[object Int16Array]", X = "[object Int32Array]", ee = "[object Uint8Array]", E = "[object Uint8ClampedArray]", c = "[object Uint16Array]", d = "[object Uint32Array]", y = /[\\^$.*+?()[\]{}|]/g, O = /\w*$/, T = /^\[object .+?Constructor\]$/, N = /^(?:0|[1-9]\d*)$/, b = {};
|
|
1458
|
+
b[l] = b[i] = b[J] = b[q] = b[f] = b[g] = b[se] = b[x] = b[G] = b[V] = b[X] = b[L] = b[R] = b[M] = b[re] = b[W] = b[z] = b[ve] = b[ee] = b[E] = b[c] = b[d] = !0, b[_] = b[$] = b[le] = !1;
|
|
1459
|
+
var v = typeof Xe == "object" && Xe && Xe.Object === Object && Xe, p = typeof self == "object" && self && self.Object === Object && self, m = v || p || Function("return this")(), w = e && !e.nodeType && e, K = w && !0 && a && !a.nodeType && a, j = K && K.exports === w;
|
|
1485
1460
|
function Z(t, o) {
|
|
1486
1461
|
return t.set(o[0], o[1]), t;
|
|
1487
1462
|
}
|
|
@@ -1537,12 +1512,12 @@ rt.exports;
|
|
|
1537
1512
|
u[++o] = k;
|
|
1538
1513
|
}), u;
|
|
1539
1514
|
}
|
|
1540
|
-
var ma = Array.prototype, ga = Function.prototype, He = Object.prototype, ot =
|
|
1515
|
+
var ma = Array.prototype, ga = Function.prototype, He = Object.prototype, ot = m["__core-js_shared__"], Ot = function() {
|
|
1541
1516
|
var t = /[^.]+$/.exec(ot && ot.keys && ot.keys.IE_PROTO || "");
|
|
1542
1517
|
return t ? "Symbol(src)_1." + t : "";
|
|
1543
1518
|
}(), $t = ga.toString, be = He.hasOwnProperty, We = He.toString, ya = RegExp(
|
|
1544
1519
|
"^" + $t.call(be).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1545
|
-
), Et =
|
|
1520
|
+
), Et = j ? m.Buffer : void 0, At = m.Symbol, Nt = m.Uint8Array, wa = it(Object.getPrototypeOf, Object), ka = Object.create, Sa = He.propertyIsEnumerable, Ta = ma.splice, Ft = Object.getOwnPropertySymbols, Ia = Et ? Et.isBuffer : void 0, Ca = it(Object.keys, Object), st = Oe(m, "DataView"), Re = Oe(m, "Map"), lt = Oe(m, "Promise"), ct = Oe(m, "Set"), ut = Oe(m, "WeakMap"), Be = Oe(Object, "create"), _a = we(st), Oa = we(Re), $a = we(lt), Ea = we(ct), Aa = we(ut), Dt = At ? At.prototype : void 0, xt = Dt ? Dt.valueOf : void 0;
|
|
1546
1521
|
function ge(t) {
|
|
1547
1522
|
var o = -1, u = t ? t.length : 0;
|
|
1548
1523
|
for (this.clear(); ++o < u; ) {
|
|
@@ -1594,14 +1569,14 @@ rt.exports;
|
|
|
1594
1569
|
var o = this.__data__, u = Ge(o, t);
|
|
1595
1570
|
return u < 0 ? void 0 : o[u][1];
|
|
1596
1571
|
}
|
|
1597
|
-
function
|
|
1572
|
+
function Pa(t) {
|
|
1598
1573
|
return Ge(this.__data__, t) > -1;
|
|
1599
1574
|
}
|
|
1600
|
-
function
|
|
1575
|
+
function ja(t, o) {
|
|
1601
1576
|
var u = this.__data__, k = Ge(u, t);
|
|
1602
1577
|
return k < 0 ? u.push([t, o]) : u[k][1] = o, this;
|
|
1603
1578
|
}
|
|
1604
|
-
ue.prototype.clear = Ba, ue.prototype.delete = La, ue.prototype.get = Ma, ue.prototype.has =
|
|
1579
|
+
ue.prototype.clear = Ba, ue.prototype.delete = La, ue.prototype.get = Ma, ue.prototype.has = Pa, ue.prototype.set = ja;
|
|
1605
1580
|
function Ce(t) {
|
|
1606
1581
|
var o = -1, u = t ? t.length : 0;
|
|
1607
1582
|
for (this.clear(); ++o < u; ) {
|
|
@@ -1663,11 +1638,11 @@ rt.exports;
|
|
|
1663
1638
|
}
|
|
1664
1639
|
function Rt(t, o, u) {
|
|
1665
1640
|
var k = t[o];
|
|
1666
|
-
(!(be.call(t, o) &&
|
|
1641
|
+
(!(be.call(t, o) && Pt(k, u)) || u === void 0 && !(o in t)) && (t[o] = u);
|
|
1667
1642
|
}
|
|
1668
1643
|
function Ge(t, o) {
|
|
1669
1644
|
for (var u = t.length; u--; )
|
|
1670
|
-
if (
|
|
1645
|
+
if (Pt(t[u][0], o))
|
|
1671
1646
|
return u;
|
|
1672
1647
|
return -1;
|
|
1673
1648
|
}
|
|
@@ -1685,16 +1660,16 @@ rt.exports;
|
|
|
1685
1660
|
if (ae = pn(t), !o)
|
|
1686
1661
|
return fn(t, ae);
|
|
1687
1662
|
} else {
|
|
1688
|
-
var $e = ye(t), Ht = $e ==
|
|
1663
|
+
var $e = ye(t), Ht = $e == $ || $e == D;
|
|
1689
1664
|
if (In(t))
|
|
1690
1665
|
return rn(t, o);
|
|
1691
|
-
if ($e ==
|
|
1666
|
+
if ($e == M || $e == l || Ht && !te) {
|
|
1692
1667
|
if (It(t))
|
|
1693
1668
|
return te ? t : {};
|
|
1694
1669
|
if (ae = hn(Ht ? {} : t), !o)
|
|
1695
1670
|
return vn(t, Qa(ae, t));
|
|
1696
1671
|
} else {
|
|
1697
|
-
if (!
|
|
1672
|
+
if (!b[$e])
|
|
1698
1673
|
return te ? t : {};
|
|
1699
1674
|
ae = mn(t, $e, dt, o);
|
|
1700
1675
|
}
|
|
@@ -1722,7 +1697,7 @@ rt.exports;
|
|
|
1722
1697
|
function an(t) {
|
|
1723
1698
|
if (!Ve(t) || wn(t))
|
|
1724
1699
|
return !1;
|
|
1725
|
-
var o = Kt(t) || It(t) ? ya :
|
|
1700
|
+
var o = Kt(t) || It(t) ? ya : T;
|
|
1726
1701
|
return o.test(we(t));
|
|
1727
1702
|
}
|
|
1728
1703
|
function nn(t) {
|
|
@@ -1752,7 +1727,7 @@ rt.exports;
|
|
|
1752
1727
|
return Tt(k, Z, new t.constructor());
|
|
1753
1728
|
}
|
|
1754
1729
|
function ln(t) {
|
|
1755
|
-
var o = new t.constructor(t.source,
|
|
1730
|
+
var o = new t.constructor(t.source, O.exec(t));
|
|
1756
1731
|
return o.lastIndex = t.lastIndex, o;
|
|
1757
1732
|
}
|
|
1758
1733
|
function cn(t, o, u) {
|
|
@@ -1795,8 +1770,8 @@ rt.exports;
|
|
|
1795
1770
|
return an(u) ? u : void 0;
|
|
1796
1771
|
}
|
|
1797
1772
|
var Lt = Ft ? it(Ft, Object) : On, ye = tn;
|
|
1798
|
-
(st && ye(new st(new ArrayBuffer(1))) != q || Re && ye(new Re()) != L || lt && ye(lt.resolve()) !=
|
|
1799
|
-
var o = We.call(t), u = o ==
|
|
1773
|
+
(st && ye(new st(new ArrayBuffer(1))) != q || Re && ye(new Re()) != L || lt && ye(lt.resolve()) != P || ct && ye(new ct()) != W || ut && ye(new ut()) != le) && (ye = function(t) {
|
|
1774
|
+
var o = We.call(t), u = o == M ? t.constructor : void 0, k = u ? we(u) : void 0;
|
|
1800
1775
|
if (k)
|
|
1801
1776
|
switch (k) {
|
|
1802
1777
|
case _a:
|
|
@@ -1804,7 +1779,7 @@ rt.exports;
|
|
|
1804
1779
|
case Oa:
|
|
1805
1780
|
return L;
|
|
1806
1781
|
case $a:
|
|
1807
|
-
return
|
|
1782
|
+
return P;
|
|
1808
1783
|
case Ea:
|
|
1809
1784
|
return W;
|
|
1810
1785
|
case Aa:
|
|
@@ -1825,7 +1800,7 @@ rt.exports;
|
|
|
1825
1800
|
case J:
|
|
1826
1801
|
return ft(t);
|
|
1827
1802
|
case f:
|
|
1828
|
-
case
|
|
1803
|
+
case g:
|
|
1829
1804
|
return new U(+t);
|
|
1830
1805
|
case q:
|
|
1831
1806
|
return on(t, k);
|
|
@@ -1841,7 +1816,7 @@ rt.exports;
|
|
|
1841
1816
|
return dn(t, k);
|
|
1842
1817
|
case L:
|
|
1843
1818
|
return sn(t, k, u);
|
|
1844
|
-
case
|
|
1819
|
+
case R:
|
|
1845
1820
|
case z:
|
|
1846
1821
|
return new U(t);
|
|
1847
1822
|
case re:
|
|
@@ -1853,7 +1828,7 @@ rt.exports;
|
|
|
1853
1828
|
}
|
|
1854
1829
|
}
|
|
1855
1830
|
function gn(t, o) {
|
|
1856
|
-
return o = o ?? s, !!o && (typeof t == "number" ||
|
|
1831
|
+
return o = o ?? s, !!o && (typeof t == "number" || N.test(t)) && t > -1 && t % 1 == 0 && t < o;
|
|
1857
1832
|
}
|
|
1858
1833
|
function yn(t) {
|
|
1859
1834
|
var o = typeof t;
|
|
@@ -1882,23 +1857,23 @@ rt.exports;
|
|
|
1882
1857
|
function kn(t) {
|
|
1883
1858
|
return dt(t, !0, !0);
|
|
1884
1859
|
}
|
|
1885
|
-
function
|
|
1860
|
+
function Pt(t, o) {
|
|
1886
1861
|
return t === o || t !== t && o !== o;
|
|
1887
1862
|
}
|
|
1888
1863
|
function Sn(t) {
|
|
1889
1864
|
return Tn(t) && be.call(t, "callee") && (!Sa.call(t, "callee") || We.call(t) == l);
|
|
1890
1865
|
}
|
|
1891
1866
|
var vt = Array.isArray;
|
|
1892
|
-
function
|
|
1867
|
+
function jt(t) {
|
|
1893
1868
|
return t != null && Cn(t.length) && !Kt(t);
|
|
1894
1869
|
}
|
|
1895
1870
|
function Tn(t) {
|
|
1896
|
-
return _n(t) &&
|
|
1871
|
+
return _n(t) && jt(t);
|
|
1897
1872
|
}
|
|
1898
1873
|
var In = Ia || $n;
|
|
1899
1874
|
function Kt(t) {
|
|
1900
1875
|
var o = Ve(t) ? We.call(t) : "";
|
|
1901
|
-
return o ==
|
|
1876
|
+
return o == $ || o == D;
|
|
1902
1877
|
}
|
|
1903
1878
|
function Cn(t) {
|
|
1904
1879
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= s;
|
|
@@ -1911,7 +1886,7 @@ rt.exports;
|
|
|
1911
1886
|
return !!t && typeof t == "object";
|
|
1912
1887
|
}
|
|
1913
1888
|
function bt(t) {
|
|
1914
|
-
return
|
|
1889
|
+
return jt(t) ? Ya(t) : nn(t);
|
|
1915
1890
|
}
|
|
1916
1891
|
function On() {
|
|
1917
1892
|
return [];
|
|
@@ -1921,21 +1896,21 @@ rt.exports;
|
|
|
1921
1896
|
}
|
|
1922
1897
|
a.exports = kn;
|
|
1923
1898
|
})(rt, rt.exports);
|
|
1924
|
-
var
|
|
1925
|
-
const
|
|
1899
|
+
var Ai = rt.exports;
|
|
1900
|
+
const Ni = /* @__PURE__ */ Ei(Ai), Fi = {
|
|
1926
1901
|
key: 0,
|
|
1927
1902
|
class: "sidebar-header"
|
|
1928
|
-
},
|
|
1903
|
+
}, Di = { class: "sidebar-content-container" }, xi = {
|
|
1929
1904
|
key: 0,
|
|
1930
1905
|
class: "sidebar-top"
|
|
1931
|
-
},
|
|
1906
|
+
}, Ri = { "aria-label": "Main menu" }, Bi = ["id"], Li = ["aria-labelledby"], Mi = {
|
|
1932
1907
|
key: 1,
|
|
1933
1908
|
class: "sidebar-level-divider",
|
|
1934
1909
|
role: "separator"
|
|
1935
|
-
},
|
|
1910
|
+
}, Pi = {
|
|
1936
1911
|
key: 2,
|
|
1937
1912
|
class: "level-primary bottom-items"
|
|
1938
|
-
},
|
|
1913
|
+
}, ji = { class: "sidebar-footer" }, ke = "_ungrouped", Ki = /* @__PURE__ */ ie({
|
|
1939
1914
|
__name: "AppSidebar",
|
|
1940
1915
|
props: {
|
|
1941
1916
|
topItems: {
|
|
@@ -2004,65 +1979,65 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2004
1979
|
v6c6af840: a.zIndex,
|
|
2005
1980
|
v4342dec6: f.value.height,
|
|
2006
1981
|
ccaf1fd4: f.value.top,
|
|
2007
|
-
v6d681f2c:
|
|
2008
|
-
v065dda82:
|
|
2009
|
-
v3e86363c:
|
|
2010
|
-
e3423b8e:
|
|
2011
|
-
b4fe47b6:
|
|
2012
|
-
v528eb0b0:
|
|
1982
|
+
v6d681f2c: _.value.marginTop,
|
|
1983
|
+
v065dda82: N.value,
|
|
1984
|
+
v3e86363c: g.value.display,
|
|
1985
|
+
e3423b8e: g.value.minHeight,
|
|
1986
|
+
b4fe47b6: $.value.top,
|
|
1987
|
+
v528eb0b0: $.value.zIndex
|
|
2013
1988
|
}));
|
|
2014
|
-
const r = e, n = a, s = Ke(), l =
|
|
1989
|
+
const r = e, n = a, s = Ke(), l = I(() => !!s.header), i = I(() => !!s.top), f = I(() => ({
|
|
2015
1990
|
mobileTop: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : n.topOffset ? `${n.topOffset}px` : "0",
|
|
2016
1991
|
top: n.topOffset ? `${n.topOffset}px` : "0",
|
|
2017
1992
|
mobileHeight: n.mobileTopOffset && n.mobileEnabled ? `calc(100% - ${n.mobileTopOffset}px)` : "100%",
|
|
2018
1993
|
height: n.topOffset ? `calc(100% - ${n.topOffset}px)` : "100%"
|
|
2019
|
-
})),
|
|
1994
|
+
})), g = I(() => ({
|
|
2020
1995
|
display: !n.mobileHeaderVisible && n.mobileEnabled ? "none" : "flex",
|
|
2021
1996
|
minHeight: `${n.headerHeight}px`
|
|
2022
|
-
})),
|
|
1997
|
+
})), _ = I(() => ({
|
|
2023
1998
|
marginTop: l.value ? `${n.headerHeight}px` : "0"
|
|
2024
|
-
})),
|
|
1999
|
+
})), $ = I(() => ({
|
|
2025
2000
|
top: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : "0",
|
|
2026
2001
|
zIndex: n.mobileOverlayZIndex !== null ? n.mobileOverlayZIndex : n.zIndex > 1 ? n.zIndex - 1 : 1
|
|
2027
|
-
})),
|
|
2028
|
-
var w, K,
|
|
2029
|
-
if (
|
|
2030
|
-
(!
|
|
2031
|
-
for (const Z of
|
|
2032
|
-
Z.parentKey =
|
|
2002
|
+
})), D = (v) => Ni(v).map((m) => {
|
|
2003
|
+
var w, K, j;
|
|
2004
|
+
if (m) {
|
|
2005
|
+
(!m.key || !((w = m.key) != null && w.trim())) && (m.key = String(m.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!m.testId || !((K = m.testId) != null && K.trim())) && (m.testId = String(m.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
2006
|
+
for (const Z of m.items || [])
|
|
2007
|
+
Z.parentKey = m.key, (!Z.testId || !((j = Z.testId) != null && j.trim())) && (Z.testId = String(Z.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
2033
2008
|
}
|
|
2034
|
-
return
|
|
2035
|
-
}), L =
|
|
2036
|
-
var
|
|
2009
|
+
return m;
|
|
2010
|
+
}), L = I(() => n.topItems.length ? D(n.topItems) : []), R = I(() => n.bottomItems.length ? D(n.bottomItems) : []), M = (v = "") => v.trim().replace(" ", "").replace(/[^a-z0-9]+/gi, "-").toLowerCase(), P = I(() => {
|
|
2011
|
+
var p;
|
|
2037
2012
|
const v = /* @__PURE__ */ new Map();
|
|
2038
2013
|
v.set(ke, []);
|
|
2039
|
-
for (const
|
|
2040
|
-
const w =
|
|
2041
|
-
v.has(w) || v.set(w, []), (
|
|
2014
|
+
for (const m of L.value) {
|
|
2015
|
+
const w = m.group || ke;
|
|
2016
|
+
v.has(w) || v.set(w, []), (p = v.get(w)) == null || p.push(m);
|
|
2042
2017
|
}
|
|
2043
2018
|
return v;
|
|
2044
|
-
}), re =
|
|
2019
|
+
}), re = Ar(`max-width: ${Lr}`), W = (v = "") => {
|
|
2045
2020
|
if (v === ke || !v.trim())
|
|
2046
2021
|
return null;
|
|
2047
|
-
const
|
|
2022
|
+
const p = {
|
|
2048
2023
|
label: v,
|
|
2049
2024
|
collapsible: !1,
|
|
2050
2025
|
collapsed: !1
|
|
2051
2026
|
};
|
|
2052
|
-
let
|
|
2053
|
-
return
|
|
2027
|
+
let m = v.trim().replace(" ", "");
|
|
2028
|
+
return m = m.charAt(0).toLowerCase() + m.slice(1), v && n.groupConfig && (n.groupConfig[v] || n.groupConfig[m]) ? n.groupConfig[v] || n.groupConfig[m] : p;
|
|
2054
2029
|
}, z = (v) => {
|
|
2055
|
-
var
|
|
2056
|
-
return !!((
|
|
2030
|
+
var p;
|
|
2031
|
+
return !!((p = W(v)) != null && p.collapsible);
|
|
2057
2032
|
}, ve = (v) => {
|
|
2058
|
-
var
|
|
2059
|
-
return !!((
|
|
2060
|
-
}, le = (v,
|
|
2033
|
+
var p;
|
|
2034
|
+
return !!((p = W(v)) != null && p.collapsed);
|
|
2035
|
+
}, le = (v, p, m) => {
|
|
2061
2036
|
const w = W(v);
|
|
2062
|
-
w && (w.collapsed = !
|
|
2037
|
+
w && (w.collapsed = !p), m(), r("toggle-collapse", v, w);
|
|
2063
2038
|
}, J = ne(n.open), q = (v) => {
|
|
2064
|
-
var
|
|
2065
|
-
J.value !== v && (J.value = v, r("toggle", v)), v ? (
|
|
2039
|
+
var p, m;
|
|
2040
|
+
J.value !== v && (J.value = v, r("toggle", v)), v ? (p = document == null ? void 0 : document.body) == null || p.classList.add("kong-ui-app-sidebar-open") : (m = document == null ? void 0 : document.body) == null || m.classList.remove("kong-ui-app-sidebar-open"), x.value = !1;
|
|
2066
2041
|
}, se = () => {
|
|
2067
2042
|
n.mobileOverlayCloseOnClick && q(!1);
|
|
2068
2043
|
}, x = ne(!1), G = (v) => {
|
|
@@ -2077,52 +2052,52 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2077
2052
|
J.value && ee.value !== (window == null ? void 0 : window.innerWidth) && (ee.value = window == null ? void 0 : window.innerWidth, q(!1));
|
|
2078
2053
|
}, 200), ee = ne(), E = ne(!1), c = ne(), d = () => {
|
|
2079
2054
|
E.value || (E.value = !0, clearTimeout(c.value), c.value = setTimeout(() => E.value = !1, 1300));
|
|
2080
|
-
}, y = ne(null),
|
|
2081
|
-
var
|
|
2082
|
-
v ? (await zt(), await new Promise((w) => setTimeout(w, 300)), (
|
|
2055
|
+
}, y = ne(null), O = I(() => J.value && n.mobileEnabled), T = async (v) => {
|
|
2056
|
+
var p, m;
|
|
2057
|
+
v ? (await zt(), await new Promise((w) => setTimeout(w, 300)), (p = y.value) == null || p.activate()) : (m = y.value) == null || m.deactivate();
|
|
2083
2058
|
};
|
|
2084
|
-
De(
|
|
2085
|
-
v ? await
|
|
2059
|
+
De(O, async (v) => {
|
|
2060
|
+
v ? await T(!0) : await T(!1);
|
|
2086
2061
|
}, { immediate: !0 });
|
|
2087
|
-
const
|
|
2062
|
+
const N = ne("0px"), b = () => {
|
|
2088
2063
|
var Z;
|
|
2089
2064
|
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((Z = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : Z.platform)))
|
|
2090
2065
|
return;
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2093
|
-
const
|
|
2094
|
-
|
|
2066
|
+
const p = document.createElement("div");
|
|
2067
|
+
p.style.visibility = "hidden", p.style.width = "100px", document.body.appendChild(p);
|
|
2068
|
+
const m = p.offsetWidth;
|
|
2069
|
+
p.style.overflow = "scroll";
|
|
2095
2070
|
const w = document.createElement("div");
|
|
2096
|
-
w.style.width = "100%",
|
|
2071
|
+
w.style.width = "100%", p.appendChild(w);
|
|
2097
2072
|
const K = w.offsetWidth;
|
|
2098
|
-
|
|
2073
|
+
p.parentNode && p.parentNode.removeChild(p), m - K === 0 && (N.value = "8px");
|
|
2099
2074
|
};
|
|
2100
2075
|
return Ze(async () => {
|
|
2101
2076
|
if (ee.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", X), window.addEventListener("resize", d), n.groupConfig && re.value)
|
|
2102
2077
|
for (const v in n.groupConfig) {
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2078
|
+
const p = n.groupConfig[v];
|
|
2079
|
+
p.collapsed = !1;
|
|
2105
2080
|
}
|
|
2106
|
-
await zt(),
|
|
2081
|
+
await zt(), b();
|
|
2107
2082
|
}), na(() => {
|
|
2108
2083
|
window.removeEventListener("resize", X), window.removeEventListener("resize", d);
|
|
2109
|
-
}), (v,
|
|
2110
|
-
const
|
|
2111
|
-
return
|
|
2112
|
-
J.value && a.mobileOverlay && a.mobileEnabled ? (
|
|
2084
|
+
}), (v, p) => {
|
|
2085
|
+
const m = me("KCollapse");
|
|
2086
|
+
return h(), S(Ae, null, [
|
|
2087
|
+
J.value && a.mobileOverlay && a.mobileEnabled ? (h(), S("div", {
|
|
2113
2088
|
key: 0,
|
|
2114
2089
|
class: "kong-ui-app-sidebar-overlay",
|
|
2115
2090
|
onClick: se
|
|
2116
2091
|
})) : A("", !0),
|
|
2117
|
-
|
|
2092
|
+
je(pe($i), {
|
|
2118
2093
|
ref_key: "focusTrap",
|
|
2119
2094
|
ref: y,
|
|
2120
2095
|
active: !1,
|
|
2121
2096
|
"allow-outside-click": "",
|
|
2122
2097
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
2123
2098
|
}, {
|
|
2124
|
-
default:
|
|
2125
|
-
|
|
2099
|
+
default: B(() => [
|
|
2100
|
+
F("aside", {
|
|
2126
2101
|
class: Q(["kong-ui-app-sidebar", {
|
|
2127
2102
|
"sidebar-open": J.value,
|
|
2128
2103
|
"no-sidebar-header": !l.value,
|
|
@@ -2132,15 +2107,15 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2132
2107
|
}]),
|
|
2133
2108
|
tabindex: "-1"
|
|
2134
2109
|
}, [
|
|
2135
|
-
l.value ? (
|
|
2136
|
-
|
|
2110
|
+
l.value ? (h(), S("div", Fi, [
|
|
2111
|
+
C(v.$slots, "header", {}, void 0, !0)
|
|
2137
2112
|
])) : A("", !0),
|
|
2138
|
-
|
|
2139
|
-
i.value ? (
|
|
2140
|
-
|
|
2113
|
+
F("div", Di, [
|
|
2114
|
+
i.value ? (h(), S("div", xi, [
|
|
2115
|
+
C(v.$slots, "top", {}, void 0, !0)
|
|
2141
2116
|
])) : A("", !0),
|
|
2142
|
-
|
|
2143
|
-
|
|
2117
|
+
F("nav", Ri, [
|
|
2118
|
+
P.value.size > 0 ? (h(!0), S(Ae, { key: 0 }, he(P.value, ([w, K]) => (h(), H(m, {
|
|
2144
2119
|
key: w,
|
|
2145
2120
|
class: Q(["level-primary-group-collapse", {
|
|
2146
2121
|
"not-collapsible": !z(w),
|
|
@@ -2149,78 +2124,78 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2149
2124
|
"data-testid": w === ke ? "level-primary-group-collapse-ungrouped" : `level-primary-group-collapse-${w}`,
|
|
2150
2125
|
"model-value": z(w) && ve(w) || !1
|
|
2151
2126
|
}, {
|
|
2152
|
-
trigger:
|
|
2153
|
-
(
|
|
2127
|
+
trigger: B(({ isCollapsed: j, toggle: Z }) => [
|
|
2128
|
+
(h(), H(Te(z(w) ? pe(Pn) : "div"), {
|
|
2154
2129
|
appearance: z(w) ? "none" : void 0,
|
|
2155
2130
|
class: "level-primary-group-collapse-trigger",
|
|
2156
|
-
onClick: (ce) => z(w) ? le(w,
|
|
2131
|
+
onClick: (ce) => z(w) ? le(w, j, Z) : void 0
|
|
2157
2132
|
}, {
|
|
2158
|
-
default:
|
|
2133
|
+
default: B(() => {
|
|
2159
2134
|
var ce;
|
|
2160
2135
|
return [
|
|
2161
|
-
w !== ke ? (
|
|
2136
|
+
w !== ke ? (h(), S("div", {
|
|
2162
2137
|
key: 0,
|
|
2163
|
-
id: `level-primary-group-${
|
|
2138
|
+
id: `level-primary-group-${M(w)}`,
|
|
2164
2139
|
class: "level-primary-group-name",
|
|
2165
2140
|
"data-testid": "level-primary-group-name",
|
|
2166
2141
|
role: "presentation"
|
|
2167
|
-
}, Y(((ce = W(w)) == null ? void 0 : ce.label) || w), 9,
|
|
2168
|
-
z(w) ? (
|
|
2142
|
+
}, Y(((ce = W(w)) == null ? void 0 : ce.label) || w), 9, Bi)) : A("", !0),
|
|
2143
|
+
z(w) ? (h(), H(Te(j ? pe(ra) : pe(Mn)), {
|
|
2169
2144
|
key: 1,
|
|
2170
2145
|
class: "level-primary-group-collapse-icon",
|
|
2171
|
-
color: pe(
|
|
2146
|
+
color: pe(Pr),
|
|
2172
2147
|
"data-testid": "level-primary-group-collapse-icon",
|
|
2173
|
-
size: pe(
|
|
2148
|
+
size: pe(Mr)
|
|
2174
2149
|
}, null, 8, ["color", "size"])) : A("", !0)
|
|
2175
2150
|
];
|
|
2176
2151
|
}),
|
|
2177
2152
|
_: 2
|
|
2178
2153
|
}, 1032, ["appearance", "onClick"]))
|
|
2179
2154
|
]),
|
|
2180
|
-
default:
|
|
2181
|
-
|
|
2182
|
-
"aria-labelledby": w !== ke ? `level-primary-group-${
|
|
2155
|
+
default: B(() => [
|
|
2156
|
+
F("ul", {
|
|
2157
|
+
"aria-labelledby": w !== ke ? `level-primary-group-${M(w)}` : void 0,
|
|
2183
2158
|
class: "level-primary top-items"
|
|
2184
2159
|
}, [
|
|
2185
|
-
(
|
|
2186
|
-
key:
|
|
2187
|
-
item:
|
|
2160
|
+
(h(!0), S(Ae, null, he(K, (j) => (h(), H(Ut, {
|
|
2161
|
+
key: j.name,
|
|
2162
|
+
item: j,
|
|
2188
2163
|
onClick: G
|
|
2189
|
-
},
|
|
2190
|
-
[`sidebar-icon-${
|
|
2191
|
-
|
|
2164
|
+
}, Pe({
|
|
2165
|
+
[`sidebar-icon-${j.key}`]: B(() => [
|
|
2166
|
+
C(v.$slots, `sidebar-icon-${j.key}`, {}, void 0, !0)
|
|
2192
2167
|
]),
|
|
2193
2168
|
_: 2
|
|
2194
2169
|
}, [
|
|
2195
|
-
v.$slots[`sidebar-after-${
|
|
2196
|
-
name: `sidebar-after-${
|
|
2197
|
-
fn:
|
|
2198
|
-
|
|
2170
|
+
v.$slots[`sidebar-after-${j.key}`] ? {
|
|
2171
|
+
name: `sidebar-after-${j.key}`,
|
|
2172
|
+
fn: B(() => [
|
|
2173
|
+
C(v.$slots, `sidebar-after-${j.key}`, {}, void 0, !0)
|
|
2199
2174
|
]),
|
|
2200
2175
|
key: "0"
|
|
2201
2176
|
} : void 0
|
|
2202
2177
|
]), 1032, ["item"]))), 128))
|
|
2203
|
-
], 8,
|
|
2178
|
+
], 8, Li)
|
|
2204
2179
|
]),
|
|
2205
2180
|
_: 2
|
|
2206
2181
|
}, 1032, ["class", "data-testid", "model-value"]))), 128)) : A("", !0),
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
(
|
|
2182
|
+
P.value.size > 0 && R.value.length ? (h(), S("div", Mi)) : A("", !0),
|
|
2183
|
+
R.value.length ? (h(), S("ul", Pi, [
|
|
2184
|
+
(h(!0), S(Ae, null, he(R.value, (w) => (h(), H(Ut, {
|
|
2210
2185
|
key: w.name,
|
|
2211
2186
|
item: w,
|
|
2212
2187
|
onClick: G
|
|
2213
2188
|
}, {
|
|
2214
|
-
[`sidebar-icon-${w.key}`]:
|
|
2215
|
-
|
|
2189
|
+
[`sidebar-icon-${w.key}`]: B(() => [
|
|
2190
|
+
C(v.$slots, `sidebar-icon-${w.key}`, {}, void 0, !0)
|
|
2216
2191
|
]),
|
|
2217
2192
|
_: 2
|
|
2218
2193
|
}, 1032, ["item"]))), 128))
|
|
2219
2194
|
])) : A("", !0)
|
|
2220
2195
|
])
|
|
2221
2196
|
]),
|
|
2222
|
-
|
|
2223
|
-
|
|
2197
|
+
F("div", ji, [
|
|
2198
|
+
C(v.$slots, "footer", {}, void 0, !0)
|
|
2224
2199
|
])
|
|
2225
2200
|
], 2)
|
|
2226
2201
|
]),
|
|
@@ -2229,7 +2204,7 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2229
2204
|
], 64);
|
|
2230
2205
|
};
|
|
2231
2206
|
}
|
|
2232
|
-
}),
|
|
2207
|
+
}), Zi = /* @__PURE__ */ oe(Ki, [["__scopeId", "data-v-e8512478"]]), Hi = ["aria-label"], Wi = /* @__PURE__ */ ie({
|
|
2233
2208
|
__name: "SidebarToggle",
|
|
2234
2209
|
props: {
|
|
2235
2210
|
active: {
|
|
@@ -2244,26 +2219,26 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2244
2219
|
};
|
|
2245
2220
|
return De(() => n.active, (i) => {
|
|
2246
2221
|
s.value = i;
|
|
2247
|
-
}), (i, f) => (
|
|
2222
|
+
}), (i, f) => (h(), S("a", {
|
|
2248
2223
|
"aria-haspopup": "true",
|
|
2249
2224
|
"aria-label": s.value ? "Close Main Menu" : "Open Main Menu",
|
|
2250
2225
|
class: Q(["sidebar-menu-toggle", { active: s.value }]),
|
|
2251
2226
|
href: "#",
|
|
2252
2227
|
role: "button",
|
|
2253
|
-
onClick:
|
|
2228
|
+
onClick: Bn(l, ["prevent"])
|
|
2254
2229
|
}, [...f[0] || (f[0] = [
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
])], 10,
|
|
2230
|
+
F("span", { class: "line" }, null, -1),
|
|
2231
|
+
F("span", { class: "line" }, null, -1),
|
|
2232
|
+
F("span", { class: "line" }, null, -1)
|
|
2233
|
+
])], 10, Hi));
|
|
2259
2234
|
}
|
|
2260
|
-
}),
|
|
2235
|
+
}), Gi = /* @__PURE__ */ oe(Wi, [["__scopeId", "data-v-2238b0de"]]), zi = { id: "kong-ui-app-layout-notification" }, Vi = { class: "mobile-logo" }, Ui = {
|
|
2261
2236
|
key: 0,
|
|
2262
2237
|
class: "navbar-logo"
|
|
2263
|
-
},
|
|
2238
|
+
}, qi = {
|
|
2264
2239
|
class: "kong-ui-app-layout-main",
|
|
2265
2240
|
"data-testid": "kong-ui-app-layout-main"
|
|
2266
|
-
},
|
|
2241
|
+
}, Xi = { class: "kong-ui-app-layout-content" }, Yi = /* @__PURE__ */ ie({
|
|
2267
2242
|
__name: "AppLayout",
|
|
2268
2243
|
props: {
|
|
2269
2244
|
hideDefaultSlot: {
|
|
@@ -2316,37 +2291,37 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2316
2291
|
v0010e23a: le.value
|
|
2317
2292
|
}));
|
|
2318
2293
|
const r = a, n = e, s = Ke(), l = Ye({
|
|
2319
|
-
navbarLeft:
|
|
2320
|
-
navbarCenter:
|
|
2321
|
-
navbarRight:
|
|
2322
|
-
navbarLogo:
|
|
2323
|
-
navbarMobileLogo:
|
|
2324
|
-
sidebarHeader:
|
|
2325
|
-
sidebarTop:
|
|
2326
|
-
sidebarFooter:
|
|
2327
|
-
}), i =
|
|
2328
|
-
hidden:
|
|
2329
|
-
}),
|
|
2330
|
-
topItems:
|
|
2331
|
-
bottomItems:
|
|
2332
|
-
open:
|
|
2333
|
-
hidden:
|
|
2334
|
-
}),
|
|
2294
|
+
navbarLeft: I(() => !!s["navbar-left"]),
|
|
2295
|
+
navbarCenter: I(() => !!s["navbar-center"]),
|
|
2296
|
+
navbarRight: I(() => !!s["navbar-right"]),
|
|
2297
|
+
navbarLogo: I(() => !!s["navbar-logo"]),
|
|
2298
|
+
navbarMobileLogo: I(() => !!s["navbar-mobile-logo"]),
|
|
2299
|
+
sidebarHeader: I(() => !!s["sidebar-header"]),
|
|
2300
|
+
sidebarTop: I(() => !!s["sidebar-top"]),
|
|
2301
|
+
sidebarFooter: I(() => !!s["sidebar-footer"])
|
|
2302
|
+
}), i = I(() => r.hideDefaultSlot), f = Ye({
|
|
2303
|
+
hidden: I(() => r.navbarHidden)
|
|
2304
|
+
}), g = Ye({
|
|
2305
|
+
topItems: I(() => r.sidebarTopItems),
|
|
2306
|
+
bottomItems: I(() => r.sidebarBottomItems),
|
|
2307
|
+
open: I(() => r.sidebarOpen),
|
|
2308
|
+
hidden: I(() => r.sidebarHidden)
|
|
2309
|
+
}), _ = (x) => {
|
|
2335
2310
|
n("sidebar-click", x);
|
|
2336
|
-
},
|
|
2337
|
-
|
|
2311
|
+
}, $ = ne(!1), D = (x) => {
|
|
2312
|
+
$.value = x;
|
|
2338
2313
|
};
|
|
2339
2314
|
aa(() => {
|
|
2340
|
-
|
|
2315
|
+
$.value = Ln(g, "open").value || !1;
|
|
2341
2316
|
});
|
|
2342
|
-
const L = ne(0),
|
|
2317
|
+
const L = ne(0), R = ne(60), M = ne(0), P = I(() => f.hidden ? M.value : R.value + M.value), re = I(() => r.theme === "light" ? Dr : xr), W = I(() => r.theme === "light" ? Nr : Fr), z = I(() => r.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), ve = I(() => `${P.value}px`), le = I(() => g.hidden || f.hidden ? Rr : Br), { debounce: J } = va(), q = J((x = !1) => {
|
|
2343
2318
|
if (x || L.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
2344
2319
|
L.value = window == null ? void 0 : window.innerWidth;
|
|
2345
2320
|
const G = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2346
|
-
G && (
|
|
2321
|
+
G && (M.value = G.offsetHeight);
|
|
2347
2322
|
}
|
|
2348
2323
|
}, 200), se = ne();
|
|
2349
|
-
return De(
|
|
2324
|
+
return De(M, (x) => {
|
|
2350
2325
|
n("update:topOffset", x || 0);
|
|
2351
2326
|
}, { immediate: !0 }), Ze(() => {
|
|
2352
2327
|
var G, V;
|
|
@@ -2357,158 +2332,158 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2357
2332
|
if (!(!Array.isArray(X) || !X.length))
|
|
2358
2333
|
for (const ee of X) {
|
|
2359
2334
|
const E = ee.contentRect.height;
|
|
2360
|
-
|
|
2335
|
+
M.value !== E && (M.value = E);
|
|
2361
2336
|
}
|
|
2362
2337
|
});
|
|
2363
2338
|
}), se.value.observe(x)), window.addEventListener("resize", q);
|
|
2364
2339
|
}), na(() => {
|
|
2365
2340
|
se.value && se.value.disconnect(), window.removeEventListener("resize", q);
|
|
2366
|
-
}), (x, G) => (
|
|
2341
|
+
}), (x, G) => (h(), S("div", {
|
|
2367
2342
|
class: Q(["kong-ui-app-layout", [
|
|
2368
2343
|
{ "navbar-hidden": f.hidden },
|
|
2369
|
-
{ "sidebar-hidden":
|
|
2344
|
+
{ "sidebar-hidden": g.hidden }
|
|
2370
2345
|
]])
|
|
2371
2346
|
}, [
|
|
2372
|
-
|
|
2373
|
-
|
|
2347
|
+
F("div", zi, [
|
|
2348
|
+
C(x.$slots, "notification", {}, void 0, !0)
|
|
2374
2349
|
]),
|
|
2375
|
-
f.hidden ? A("", !0) : (
|
|
2376
|
-
key: String(
|
|
2377
|
-
"left-offset":
|
|
2378
|
-
"top-offset":
|
|
2379
|
-
},
|
|
2380
|
-
"mobile-sidebar-toggle":
|
|
2381
|
-
|
|
2350
|
+
f.hidden ? A("", !0) : (h(), H(gr, {
|
|
2351
|
+
key: String(g.hidden),
|
|
2352
|
+
"left-offset": g.hidden ? 0 : void 0,
|
|
2353
|
+
"top-offset": M.value
|
|
2354
|
+
}, Pe({
|
|
2355
|
+
"mobile-sidebar-toggle": B(() => [
|
|
2356
|
+
g.hidden ? A("", !0) : (h(), H(Gi, {
|
|
2382
2357
|
key: 0,
|
|
2383
|
-
active:
|
|
2384
|
-
onToggle:
|
|
2358
|
+
active: $.value,
|
|
2359
|
+
onToggle: D
|
|
2385
2360
|
}, null, 8, ["active"]))
|
|
2386
2361
|
]),
|
|
2387
2362
|
_: 2
|
|
2388
2363
|
}, [
|
|
2389
2364
|
l.navbarMobileLogo ? {
|
|
2390
2365
|
name: "mobile-logo",
|
|
2391
|
-
fn:
|
|
2392
|
-
|
|
2393
|
-
|
|
2366
|
+
fn: B(() => [
|
|
2367
|
+
F("div", Vi, [
|
|
2368
|
+
C(x.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
2394
2369
|
])
|
|
2395
2370
|
]),
|
|
2396
2371
|
key: "0"
|
|
2397
2372
|
} : void 0,
|
|
2398
2373
|
l.navbarLogo ? {
|
|
2399
2374
|
name: "logo",
|
|
2400
|
-
fn:
|
|
2401
|
-
|
|
2402
|
-
|
|
2375
|
+
fn: B(() => [
|
|
2376
|
+
g.hidden ? (h(), S("div", Ui, [
|
|
2377
|
+
C(x.$slots, "navbar-logo", {}, void 0, !0)
|
|
2403
2378
|
])) : A("", !0)
|
|
2404
2379
|
]),
|
|
2405
2380
|
key: "1"
|
|
2406
2381
|
} : void 0,
|
|
2407
2382
|
l.navbarLeft ? {
|
|
2408
2383
|
name: "left",
|
|
2409
|
-
fn:
|
|
2410
|
-
|
|
2384
|
+
fn: B(() => [
|
|
2385
|
+
C(x.$slots, "navbar-left", {}, void 0, !0)
|
|
2411
2386
|
]),
|
|
2412
2387
|
key: "2"
|
|
2413
2388
|
} : void 0,
|
|
2414
2389
|
l.navbarCenter ? {
|
|
2415
2390
|
name: "center",
|
|
2416
|
-
fn:
|
|
2417
|
-
|
|
2391
|
+
fn: B(() => [
|
|
2392
|
+
C(x.$slots, "navbar-center", {}, void 0, !0)
|
|
2418
2393
|
]),
|
|
2419
2394
|
key: "3"
|
|
2420
2395
|
} : void 0,
|
|
2421
2396
|
l.navbarRight ? {
|
|
2422
2397
|
name: "right",
|
|
2423
|
-
fn:
|
|
2424
|
-
|
|
2398
|
+
fn: B(() => [
|
|
2399
|
+
C(x.$slots, "navbar-right", {}, void 0, !0)
|
|
2425
2400
|
]),
|
|
2426
2401
|
key: "4"
|
|
2427
2402
|
} : void 0
|
|
2428
2403
|
]), 1032, ["left-offset", "top-offset"])),
|
|
2429
|
-
|
|
2404
|
+
g.hidden ? A("", !0) : (h(), H(Zi, {
|
|
2430
2405
|
key: 1,
|
|
2431
|
-
"bottom-items":
|
|
2406
|
+
"bottom-items": g.bottomItems,
|
|
2432
2407
|
"group-config": a.groupConfig,
|
|
2433
|
-
"header-height":
|
|
2408
|
+
"header-height": R.value,
|
|
2434
2409
|
"mobile-enabled": "",
|
|
2435
2410
|
"mobile-header-visible": !1,
|
|
2436
|
-
"mobile-top-offset":
|
|
2437
|
-
open:
|
|
2438
|
-
"top-items":
|
|
2439
|
-
"top-offset":
|
|
2440
|
-
onClick:
|
|
2441
|
-
onToggle:
|
|
2411
|
+
"mobile-top-offset": P.value,
|
|
2412
|
+
open: $.value,
|
|
2413
|
+
"top-items": g.topItems,
|
|
2414
|
+
"top-offset": M.value,
|
|
2415
|
+
onClick: _,
|
|
2416
|
+
onToggle: D,
|
|
2442
2417
|
onToggleCollapse: G[0] || (G[0] = (V, X) => n("toggle-collapse", V, X))
|
|
2443
|
-
},
|
|
2418
|
+
}, Pe({ _: 2 }, [
|
|
2444
2419
|
l.sidebarHeader ? {
|
|
2445
2420
|
name: "header",
|
|
2446
|
-
fn:
|
|
2447
|
-
|
|
2421
|
+
fn: B(() => [
|
|
2422
|
+
C(x.$slots, "sidebar-header", {}, void 0, !0)
|
|
2448
2423
|
]),
|
|
2449
2424
|
key: "0"
|
|
2450
2425
|
} : void 0,
|
|
2451
2426
|
l.sidebarTop ? {
|
|
2452
2427
|
name: "top",
|
|
2453
|
-
fn:
|
|
2454
|
-
|
|
2428
|
+
fn: B(() => [
|
|
2429
|
+
C(x.$slots, "sidebar-top", {}, void 0, !0)
|
|
2455
2430
|
]),
|
|
2456
2431
|
key: "1"
|
|
2457
2432
|
} : void 0,
|
|
2458
2433
|
l.sidebarFooter ? {
|
|
2459
2434
|
name: "footer",
|
|
2460
|
-
fn:
|
|
2461
|
-
|
|
2435
|
+
fn: B(() => [
|
|
2436
|
+
C(x.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2462
2437
|
]),
|
|
2463
2438
|
key: "2"
|
|
2464
2439
|
} : void 0,
|
|
2465
|
-
he([...
|
|
2440
|
+
he([...g.topItems || [], ...g.bottomItems || []], (V) => ({
|
|
2466
2441
|
name: `sidebar-icon-${V.key}`,
|
|
2467
|
-
fn:
|
|
2468
|
-
|
|
2442
|
+
fn: B(() => [
|
|
2443
|
+
C(x.$slots, `sidebar-icon-${V.key}`, {}, void 0, !0)
|
|
2469
2444
|
])
|
|
2470
2445
|
})),
|
|
2471
|
-
he([...
|
|
2446
|
+
he([...g.topItems || [], ...g.bottomItems || []], (V) => ({
|
|
2472
2447
|
name: `sidebar-after-${V.key}`,
|
|
2473
|
-
fn:
|
|
2474
|
-
|
|
2448
|
+
fn: B(() => [
|
|
2449
|
+
C(x.$slots, `sidebar-after-${V.key}`, {}, void 0, !0)
|
|
2475
2450
|
])
|
|
2476
2451
|
}))
|
|
2477
2452
|
]), 1032, ["bottom-items", "group-config", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2453
|
+
F("main", qi, [
|
|
2454
|
+
F("div", Xi, [
|
|
2455
|
+
F("div", {
|
|
2481
2456
|
class: Q(["kong-ui-app-layout-content-inner", { "remove-inner-padding": a.removeContentInnerPadding }])
|
|
2482
2457
|
}, [
|
|
2483
|
-
G[1] || (G[1] =
|
|
2484
|
-
|
|
2485
|
-
i.value ? A("", !0) :
|
|
2458
|
+
G[1] || (G[1] = F("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2459
|
+
C(x.$slots, "app-error", {}, void 0, !0),
|
|
2460
|
+
i.value ? A("", !0) : C(x.$slots, "default", { key: 0 }, void 0, !0)
|
|
2486
2461
|
], 2)
|
|
2487
2462
|
])
|
|
2488
2463
|
])
|
|
2489
2464
|
], 2));
|
|
2490
2465
|
}
|
|
2491
|
-
}),
|
|
2466
|
+
}), Qi = /* @__PURE__ */ oe(Yi, [["__scopeId", "data-v-b9242b31"]]), Ji = {
|
|
2492
2467
|
key: 0,
|
|
2493
2468
|
class: "page-header-breadcrumbs",
|
|
2494
2469
|
"data-testid": "page-header-breadcrumbs"
|
|
2495
|
-
},
|
|
2470
|
+
}, eo = { class: "page-header-title-section" }, to = { class: "page-header-title-wrapper" }, ao = {
|
|
2496
2471
|
key: 0,
|
|
2497
2472
|
class: "page-header-title-before",
|
|
2498
2473
|
"data-testid": "page-header-title-before"
|
|
2499
|
-
},
|
|
2474
|
+
}, no = {
|
|
2500
2475
|
key: 1,
|
|
2501
2476
|
class: "page-header-title-after",
|
|
2502
2477
|
"data-testid": "page-header-title-after"
|
|
2503
|
-
},
|
|
2478
|
+
}, ro = {
|
|
2504
2479
|
key: 0,
|
|
2505
2480
|
class: "page-header-actions",
|
|
2506
2481
|
"data-testid": "page-header-actions"
|
|
2507
|
-
},
|
|
2482
|
+
}, io = {
|
|
2508
2483
|
key: 1,
|
|
2509
2484
|
class: "page-header-section-below",
|
|
2510
2485
|
"data-testid": "page-header-section-below"
|
|
2511
|
-
},
|
|
2486
|
+
}, oo = /* @__PURE__ */ ie({
|
|
2512
2487
|
__name: "AppPageHeader",
|
|
2513
2488
|
props: {
|
|
2514
2489
|
title: {
|
|
@@ -2527,66 +2502,66 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2527
2502
|
}
|
|
2528
2503
|
},
|
|
2529
2504
|
setup(a) {
|
|
2530
|
-
const e = a, r = Ke(), n =
|
|
2505
|
+
const e = a, r = Ke(), n = I(() => {
|
|
2531
2506
|
var l;
|
|
2532
2507
|
return !!((l = e.breadcrumbs) != null && l.length);
|
|
2533
|
-
}), s =
|
|
2508
|
+
}), s = I(() => Object.keys(r).filter((l) => l.startsWith("icon-")));
|
|
2534
2509
|
return (l, i) => {
|
|
2535
2510
|
const f = me("KBreadcrumbs");
|
|
2536
|
-
return
|
|
2511
|
+
return h(), S("div", {
|
|
2537
2512
|
class: Q(["kong-ui-app-page-header", { "konnect-navigation-next": a.konnectNavigationNext }])
|
|
2538
2513
|
}, [
|
|
2539
|
-
n.value && !a.konnectNavigationNext ? (
|
|
2540
|
-
|
|
2514
|
+
n.value && !a.konnectNavigationNext ? (h(), S("div", Ji, [
|
|
2515
|
+
je(f, {
|
|
2541
2516
|
"item-max-width": "150",
|
|
2542
2517
|
items: a.breadcrumbs
|
|
2543
|
-
},
|
|
2544
|
-
he(s.value, (
|
|
2545
|
-
name:
|
|
2546
|
-
fn:
|
|
2547
|
-
|
|
2518
|
+
}, Pe({ _: 2 }, [
|
|
2519
|
+
he(s.value, (g) => ({
|
|
2520
|
+
name: g,
|
|
2521
|
+
fn: B(() => [
|
|
2522
|
+
C(l.$slots, g, {}, void 0, !0)
|
|
2548
2523
|
])
|
|
2549
2524
|
}))
|
|
2550
2525
|
]), 1032, ["items"])
|
|
2551
2526
|
])) : A("", !0),
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
l.$slots["title-before"] && !a.konnectNavigationNext ? (
|
|
2555
|
-
|
|
2527
|
+
F("div", eo, [
|
|
2528
|
+
F("div", to, [
|
|
2529
|
+
l.$slots["title-before"] && !a.konnectNavigationNext ? (h(), S("div", ao, [
|
|
2530
|
+
C(l.$slots, "title-before", {}, void 0, !0)
|
|
2556
2531
|
])) : A("", !0),
|
|
2557
|
-
(
|
|
2532
|
+
(h(), H(Te(a.konnectNavigationNext ? "h2" : "h1"), {
|
|
2558
2533
|
class: "page-header-title",
|
|
2559
2534
|
"data-testid": "page-header-title",
|
|
2560
2535
|
title: a.title
|
|
2561
2536
|
}, {
|
|
2562
|
-
default:
|
|
2537
|
+
default: B(() => [
|
|
2563
2538
|
Fe(Y(a.title), 1)
|
|
2564
2539
|
]),
|
|
2565
2540
|
_: 1
|
|
2566
2541
|
}, 8, ["title"])),
|
|
2567
|
-
l.$slots["title-after"] ? (
|
|
2568
|
-
|
|
2542
|
+
l.$slots["title-after"] ? (h(), S("div", no, [
|
|
2543
|
+
C(l.$slots, "title-after", {}, void 0, !0)
|
|
2569
2544
|
])) : A("", !0)
|
|
2570
2545
|
]),
|
|
2571
|
-
l.$slots.actions ? (
|
|
2572
|
-
|
|
2546
|
+
l.$slots.actions ? (h(), S("div", ro, [
|
|
2547
|
+
C(l.$slots, "actions", {}, void 0, !0)
|
|
2573
2548
|
])) : A("", !0)
|
|
2574
2549
|
]),
|
|
2575
|
-
l.$slots.below ? (
|
|
2576
|
-
|
|
2550
|
+
l.$slots.below ? (h(), S("div", io, [
|
|
2551
|
+
C(l.$slots, "below", {}, void 0, !0)
|
|
2577
2552
|
])) : A("", !0)
|
|
2578
2553
|
], 2);
|
|
2579
2554
|
};
|
|
2580
2555
|
}
|
|
2581
|
-
}),
|
|
2556
|
+
}), yo = /* @__PURE__ */ oe(oo, [["__scopeId", "data-v-74d6fea9"]]), so = { class: "app-page-info-section-default-header" }, lo = {
|
|
2582
2557
|
key: 1,
|
|
2583
2558
|
class: "app-page-info-section-description",
|
|
2584
2559
|
"data-testid": "app-page-info-section-description"
|
|
2585
|
-
},
|
|
2560
|
+
}, co = {
|
|
2586
2561
|
key: 0,
|
|
2587
2562
|
class: "app-page-info-section-content",
|
|
2588
2563
|
"data-testid": "app-page-info-section-content"
|
|
2589
|
-
},
|
|
2564
|
+
}, uo = /* @__PURE__ */ ie({
|
|
2590
2565
|
__name: "AppPageInfoSection",
|
|
2591
2566
|
props: {
|
|
2592
2567
|
collapsible: {
|
|
@@ -2604,51 +2579,51 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2604
2579
|
titleTag: {
|
|
2605
2580
|
type: String,
|
|
2606
2581
|
default: "div",
|
|
2607
|
-
validator: (a) =>
|
|
2582
|
+
validator: (a) => jn.includes(a)
|
|
2608
2583
|
}
|
|
2609
2584
|
},
|
|
2610
2585
|
setup(a) {
|
|
2611
|
-
return (e, r) => (
|
|
2586
|
+
return (e, r) => (h(), H(Te(a.collapsible ? "details" : "div"), {
|
|
2612
2587
|
class: "app-page-info-section",
|
|
2613
2588
|
"data-testid": "app-page-info-section"
|
|
2614
2589
|
}, {
|
|
2615
|
-
default:
|
|
2616
|
-
(
|
|
2590
|
+
default: B(() => [
|
|
2591
|
+
(h(), H(Te(a.collapsible ? "summary" : "div"), {
|
|
2617
2592
|
class: "app-page-info-section-header",
|
|
2618
2593
|
"data-testid": "app-page-info-section-header"
|
|
2619
2594
|
}, {
|
|
2620
|
-
default:
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
a.title ? (
|
|
2595
|
+
default: B(() => [
|
|
2596
|
+
C(e.$slots, "header", {}, () => [
|
|
2597
|
+
F("div", so, [
|
|
2598
|
+
a.title ? (h(), H(Te(a.titleTag), {
|
|
2624
2599
|
key: 0,
|
|
2625
2600
|
class: "app-page-info-section-title",
|
|
2626
2601
|
"data-testid": "app-page-info-section-title"
|
|
2627
2602
|
}, {
|
|
2628
|
-
default:
|
|
2603
|
+
default: B(() => [
|
|
2629
2604
|
Fe(Y(a.title), 1)
|
|
2630
2605
|
]),
|
|
2631
2606
|
_: 1
|
|
2632
2607
|
})) : A("", !0),
|
|
2633
|
-
a.description ? (
|
|
2608
|
+
a.description ? (h(), S("div", lo, Y(a.description), 1)) : A("", !0)
|
|
2634
2609
|
])
|
|
2635
2610
|
]),
|
|
2636
|
-
a.collapsible ? (
|
|
2611
|
+
a.collapsible ? (h(), H(pe(ra), {
|
|
2637
2612
|
key: 0,
|
|
2638
2613
|
class: "app-page-info-section-chevron-icon",
|
|
2639
2614
|
decorative: ""
|
|
2640
|
-
})) : e.$slots.actions ?
|
|
2615
|
+
})) : e.$slots.actions ? C(e.$slots, "actions", { key: 1 }) : A("", !0)
|
|
2641
2616
|
]),
|
|
2642
2617
|
_: 3
|
|
2643
2618
|
})),
|
|
2644
|
-
e.$slots.default ? (
|
|
2645
|
-
|
|
2619
|
+
e.$slots.default ? (h(), S("div", co, [
|
|
2620
|
+
C(e.$slots, "default")
|
|
2646
2621
|
])) : A("", !0)
|
|
2647
2622
|
]),
|
|
2648
2623
|
_: 3
|
|
2649
2624
|
}));
|
|
2650
2625
|
}
|
|
2651
|
-
}),
|
|
2626
|
+
}), wo = /* @__PURE__ */ oe(uo, [["__scopeId", "data-v-8e512722"]]), fo = /* @__PURE__ */ ie({
|
|
2652
2627
|
__name: "GradientBadge",
|
|
2653
2628
|
props: {
|
|
2654
2629
|
large: {
|
|
@@ -2661,33 +2636,33 @@ const Di = /* @__PURE__ */ Ni(Fi), xi = {
|
|
|
2661
2636
|
}
|
|
2662
2637
|
},
|
|
2663
2638
|
setup(a) {
|
|
2664
|
-
return (e, r) => (
|
|
2639
|
+
return (e, r) => (h(), S("div", {
|
|
2665
2640
|
class: Q(["gradient-badge", { inverse: a.inverse }])
|
|
2666
2641
|
}, [
|
|
2667
|
-
|
|
2642
|
+
F("div", {
|
|
2668
2643
|
class: Q(["gradient-badge-content", { large: a.large }])
|
|
2669
2644
|
}, [
|
|
2670
|
-
|
|
2645
|
+
C(e.$slots, "default", {}, void 0, !0)
|
|
2671
2646
|
], 2)
|
|
2672
2647
|
], 2));
|
|
2673
2648
|
}
|
|
2674
|
-
}),
|
|
2649
|
+
}), ko = /* @__PURE__ */ oe(fo, [["__scopeId", "data-v-b331e738"]]), So = {
|
|
2675
2650
|
// Customize Vue plugin options as desired
|
|
2676
2651
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2677
2652
|
install: (a, e = {}) => {
|
|
2678
|
-
a.component(e.name || "AppLayout",
|
|
2653
|
+
a.component(e.name || "AppLayout", Qi);
|
|
2679
2654
|
}
|
|
2680
2655
|
};
|
|
2681
2656
|
export {
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2657
|
+
ho as AccountDropdown,
|
|
2658
|
+
mo as AppAboutSection,
|
|
2659
|
+
go as AppError,
|
|
2660
|
+
Qi as AppLayout,
|
|
2661
|
+
gr as AppNavbar,
|
|
2662
|
+
yo as AppPageHeader,
|
|
2663
|
+
wo as AppPageInfoSection,
|
|
2664
|
+
Zi as AppSidebar,
|
|
2665
|
+
ko as GradientBadge,
|
|
2666
|
+
Gi as SidebarToggle,
|
|
2667
|
+
So as default
|
|
2693
2668
|
};
|