@kong-ui-public/app-layout 4.5.3-pr.2274.eabe722e7.0 → 4.5.3-pr.2286.7701be44d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-layout.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, resolveComponent as me, createBlock as
|
|
1
|
+
import { defineComponent as Q, resolveComponent as me, createBlock as U, openBlock as v, withCtx as D, renderSlot as _, createElementBlock as k, Fragment as be, renderList as he, normalizeClass as ne, createTextVNode as Ne, toDisplayString as G, computed as T, createSlots as ze, createVNode as Ae, createCommentVNode as I, createElementVNode as $, createStaticVNode as hn, useCssVars as vt, reactive as He, useSlots as Ye, onMounted as Je, resolveDynamicComponent as Ue, withKeys as mn, ref as J, watch as Fe, onUnmounted as gn, Comment as yn, cloneVNode as wn, nextTick as Lt, onBeforeUnmount as zt, unref as Wt, withModifiers as kn, watchEffect as Tn, toRef as _n } from "vue";
|
|
2
2
|
import { ChevronRightIcon as Sn } from "@kong/icons";
|
|
3
3
|
import { HeaderTags as In } from "@kong/kongponents";
|
|
4
4
|
const On = /* @__PURE__ */ Q({
|
|
@@ -22,24 +22,24 @@ const On = /* @__PURE__ */ Q({
|
|
|
22
22
|
setup(n) {
|
|
23
23
|
return (t, r) => {
|
|
24
24
|
const a = me("KDropdownItem"), s = me("KDropdown");
|
|
25
|
-
return
|
|
25
|
+
return v(), U(s, {
|
|
26
26
|
class: "account-dropdown",
|
|
27
27
|
"kpop-attributes": { placement: "bottom-end" },
|
|
28
28
|
"trigger-text": n.userInitials,
|
|
29
29
|
width: n.width
|
|
30
30
|
}, {
|
|
31
|
-
items:
|
|
32
|
-
|
|
33
|
-
(
|
|
31
|
+
items: D(({ handleSelection: l }) => [
|
|
32
|
+
_(t.$slots, "default", {}, () => [
|
|
33
|
+
(v(!0), k(be, null, he(n.options, (o) => (v(), U(a, {
|
|
34
34
|
key: o.value,
|
|
35
35
|
class: ne({ "has-divider": o.hasDivider }),
|
|
36
36
|
"data-testid": "select-" + o.value,
|
|
37
37
|
"has-divider": o.hasDivider,
|
|
38
|
-
onClick: (f) =>
|
|
38
|
+
onClick: (f) => l(o)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
default: D(() => [
|
|
41
|
+
_(t.$slots, "default", { option: o }, () => [
|
|
42
|
+
Ne(G(o.label), 1)
|
|
43
43
|
], !0)
|
|
44
44
|
]),
|
|
45
45
|
_: 2
|
|
@@ -55,17 +55,17 @@ const On = /* @__PURE__ */ Q({
|
|
|
55
55
|
for (const [a, s] of t)
|
|
56
56
|
r[a] = s;
|
|
57
57
|
return r;
|
|
58
|
-
},
|
|
58
|
+
}, Li = /* @__PURE__ */ ee(On, [["__scopeId", "data-v-b33191a2"]]), $n = {
|
|
59
59
|
class: "about-section-title",
|
|
60
60
|
"data-testid": "about-section-title"
|
|
61
61
|
}, Cn = { class: "about-section-header-end" }, En = {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "about-section-timestamps-created",
|
|
64
64
|
"data-testid": "about-section-timestamps-created"
|
|
65
|
-
},
|
|
65
|
+
}, Nn = {
|
|
66
66
|
key: 1,
|
|
67
67
|
class: "about-section-timestamps-arrow"
|
|
68
|
-
},
|
|
68
|
+
}, An = {
|
|
69
69
|
key: 2,
|
|
70
70
|
class: "about-section-timestamps-modified",
|
|
71
71
|
"data-testid": "about-section-timestamps-modified"
|
|
@@ -87,11 +87,11 @@ const On = /* @__PURE__ */ Q({
|
|
|
87
87
|
}, Ln = {
|
|
88
88
|
key: 2,
|
|
89
89
|
"data-testid": "about-divider-section-separator"
|
|
90
|
-
},
|
|
90
|
+
}, Pn = {
|
|
91
91
|
key: 3,
|
|
92
92
|
class: "about-divider-section",
|
|
93
93
|
"data-testid": "about-divider-section"
|
|
94
|
-
},
|
|
94
|
+
}, Mn = /* @__PURE__ */ Q({
|
|
95
95
|
__name: "AppAboutSection",
|
|
96
96
|
props: {
|
|
97
97
|
title: { default: "" },
|
|
@@ -105,40 +105,40 @@ const On = /* @__PURE__ */ Q({
|
|
|
105
105
|
setup(n) {
|
|
106
106
|
const t = n, r = T(() => !!t.modified && t.modified !== t.created);
|
|
107
107
|
return (a, s) => {
|
|
108
|
-
const
|
|
109
|
-
return
|
|
108
|
+
const l = me("KSkeletonBox"), o = me("KCard");
|
|
109
|
+
return v(), U(o, {
|
|
110
110
|
class: "kong-ui-app-about-section",
|
|
111
111
|
"title-tag": "h2"
|
|
112
|
-
},
|
|
113
|
-
default:
|
|
114
|
-
a.isLoading ? (
|
|
115
|
-
|
|
112
|
+
}, ze({
|
|
113
|
+
default: D(() => [
|
|
114
|
+
a.isLoading ? (v(), k("div", Dn, [
|
|
115
|
+
Ae(l, {
|
|
116
116
|
height: "2",
|
|
117
117
|
width: "100"
|
|
118
118
|
}),
|
|
119
|
-
|
|
119
|
+
Ae(l, {
|
|
120
120
|
height: "2",
|
|
121
121
|
width: "100"
|
|
122
122
|
})
|
|
123
|
-
])) : (
|
|
124
|
-
a.description ? (
|
|
125
|
-
a.$slots.default ? (
|
|
126
|
-
|
|
127
|
-
])) :
|
|
128
|
-
a.$slots["divider-section"] ? (
|
|
129
|
-
a.$slots["divider-section"] ? (
|
|
130
|
-
|
|
131
|
-
])) :
|
|
123
|
+
])) : (v(), k("div", Rn, [
|
|
124
|
+
a.description ? (v(), k("p", xn, G(a.description), 1)) : I("", !0),
|
|
125
|
+
a.$slots.default ? (v(), k("div", Bn, [
|
|
126
|
+
_(a.$slots, "default", {}, void 0, !0)
|
|
127
|
+
])) : I("", !0),
|
|
128
|
+
a.$slots["divider-section"] ? (v(), k("hr", Ln)) : I("", !0),
|
|
129
|
+
a.$slots["divider-section"] ? (v(), k("div", Pn, [
|
|
130
|
+
_(a.$slots, "divider-section", {}, void 0, !0)
|
|
131
|
+
])) : I("", !0)
|
|
132
132
|
]))
|
|
133
133
|
]),
|
|
134
134
|
_: 2
|
|
135
135
|
}, [
|
|
136
136
|
a.$slots.title || a.title ? {
|
|
137
137
|
name: "title",
|
|
138
|
-
fn:
|
|
138
|
+
fn: D(() => [
|
|
139
139
|
$("span", $n, [
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
_(a.$slots, "title", {}, () => [
|
|
141
|
+
Ne(G(a.title), 1)
|
|
142
142
|
], !0)
|
|
143
143
|
])
|
|
144
144
|
]),
|
|
@@ -146,19 +146,19 @@ const On = /* @__PURE__ */ Q({
|
|
|
146
146
|
} : void 0,
|
|
147
147
|
a.$slots.actions || a.created || a.modified ? {
|
|
148
148
|
name: "actions",
|
|
149
|
-
fn:
|
|
149
|
+
fn: D(() => [
|
|
150
150
|
$("div", Cn, [
|
|
151
|
-
a.created || a.modified ? (
|
|
151
|
+
a.created || a.modified ? (v(), k("div", {
|
|
152
152
|
key: 0,
|
|
153
153
|
class: ne(["about-section-timestamps", { "has-actions": a.$slots.actions }])
|
|
154
154
|
}, [
|
|
155
|
-
a.created ? (
|
|
156
|
-
a.created && r.value ? (
|
|
157
|
-
r.value ? (
|
|
158
|
-
], 2)) :
|
|
159
|
-
a.$slots.actions ? (
|
|
160
|
-
|
|
161
|
-
])) :
|
|
155
|
+
a.created ? (v(), k("span", En, G(a.createdLabel) + ": " + G(a.created), 1)) : I("", !0),
|
|
156
|
+
a.created && r.value ? (v(), k("span", Nn, "->")) : I("", !0),
|
|
157
|
+
r.value ? (v(), k("span", An, G(a.modifiedLabel) + ": " + G(a.modified), 1)) : I("", !0)
|
|
158
|
+
], 2)) : I("", !0),
|
|
159
|
+
a.$slots.actions ? (v(), k("div", Fn, [
|
|
160
|
+
_(a.$slots, "actions", {}, void 0, !0)
|
|
161
|
+
])) : I("", !0)
|
|
162
162
|
])
|
|
163
163
|
]),
|
|
164
164
|
key: "1"
|
|
@@ -166,37 +166,37 @@ const On = /* @__PURE__ */ Q({
|
|
|
166
166
|
]), 1024);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
169
|
+
}), Pi = /* @__PURE__ */ ee(Mn, [["__scopeId", "data-v-f5864a9c"]]), jn = {}, Zn = {
|
|
170
170
|
fill: "none",
|
|
171
171
|
height: "130",
|
|
172
172
|
width: "130",
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg"
|
|
174
174
|
};
|
|
175
175
|
function Kn(n, t) {
|
|
176
|
-
return
|
|
176
|
+
return v(), k("svg", Zn, t[0] || (t[0] = [
|
|
177
177
|
hn('<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 Hn = /* @__PURE__ */ ee(jn, [["render", Kn]]),
|
|
180
|
+
const Hn = /* @__PURE__ */ ee(jn, [["render", Kn]]), Un = { class: "kong-ui-app-error" }, zn = { class: "banana-icon" }, Wn = { class: "kong-ui-app-error-content" }, Gn = /* @__PURE__ */ Q({
|
|
181
181
|
__name: "AppError",
|
|
182
182
|
setup(n) {
|
|
183
|
-
return (t, r) => (
|
|
184
|
-
$("div",
|
|
185
|
-
|
|
183
|
+
return (t, r) => (v(), k("section", Un, [
|
|
184
|
+
$("div", zn, [
|
|
185
|
+
Ae(Hn)
|
|
186
186
|
]),
|
|
187
|
-
$("div",
|
|
188
|
-
|
|
187
|
+
$("div", Wn, [
|
|
188
|
+
_(t.$slots, "default", {}, () => [
|
|
189
189
|
r[0] || (r[0] = $("h2", null, "An unexpected error has occurred", -1)),
|
|
190
190
|
r[1] || (r[1] = $("p", null, [
|
|
191
|
-
|
|
191
|
+
Ne("Go back to the previous page or "),
|
|
192
192
|
$("a", { href: "/" }, "return home"),
|
|
193
|
-
|
|
193
|
+
Ne(".")
|
|
194
194
|
], -1))
|
|
195
195
|
], !0)
|
|
196
196
|
])
|
|
197
197
|
]));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), Mi = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-b6d8dc55"]]), Vn = { class: "kong-ui-app-navbar" }, qn = { class: "header-content" }, Xn = { class: "mobile-header-left" }, Yn = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "app-navbar-logo"
|
|
202
202
|
}, Jn = { class: "navbar-content" }, Qn = { class: "navbar-content-left" }, er = { class: "navbar-content-center" }, tr = { class: "navbar-content-right" }, ar = /* @__PURE__ */ Q({
|
|
@@ -217,10 +217,10 @@ const Hn = /* @__PURE__ */ ee(jn, [["render", Kn]]), zn = { class: "kong-ui-app-
|
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
setup(n) {
|
|
220
|
-
|
|
221
|
-
"27c93a10":
|
|
222
|
-
"0f284bf5":
|
|
223
|
-
d1659a78:
|
|
220
|
+
vt((o) => ({
|
|
221
|
+
"27c93a10": l.value.top,
|
|
222
|
+
"0f284bf5": l.value.zIndex,
|
|
223
|
+
d1659a78: l.value.left,
|
|
224
224
|
"3d9232e8": s.marginRight,
|
|
225
225
|
"038c3c78": s.width
|
|
226
226
|
}));
|
|
@@ -232,29 +232,29 @@ const Hn = /* @__PURE__ */ ee(jn, [["render", Kn]]), zn = { class: "kong-ui-app-
|
|
|
232
232
|
var o, f;
|
|
233
233
|
(f = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && f.length ? (s.marginRight = "32px", s.width = "calc(240px - 32px)") : (s.marginRight = "0", s.width = "0");
|
|
234
234
|
});
|
|
235
|
-
const
|
|
235
|
+
const l = T(() => ({
|
|
236
236
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
237
237
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
238
238
|
zIndex: t.zIndex
|
|
239
239
|
}));
|
|
240
|
-
return (o, f) => (
|
|
240
|
+
return (o, f) => (v(), k("header", Vn, [
|
|
241
241
|
$("div", qn, [
|
|
242
242
|
$("div", Xn, [
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
_(o.$slots, "mobile-sidebar-toggle"),
|
|
244
|
+
_(o.$slots, "mobile-logo")
|
|
245
245
|
]),
|
|
246
|
-
a.value ? (
|
|
247
|
-
|
|
248
|
-
])) :
|
|
246
|
+
a.value ? (v(), k("div", Yn, [
|
|
247
|
+
_(o.$slots, "logo")
|
|
248
|
+
])) : I("", !0),
|
|
249
249
|
$("div", Jn, [
|
|
250
250
|
$("div", Qn, [
|
|
251
|
-
|
|
251
|
+
_(o.$slots, "left")
|
|
252
252
|
]),
|
|
253
253
|
$("div", er, [
|
|
254
|
-
|
|
254
|
+
_(o.$slots, "center")
|
|
255
255
|
]),
|
|
256
256
|
$("div", tr, [
|
|
257
|
-
|
|
257
|
+
_(o.$slots, "right")
|
|
258
258
|
])
|
|
259
259
|
])
|
|
260
260
|
])
|
|
@@ -271,11 +271,11 @@ const Hn = /* @__PURE__ */ ee(jn, [["render", Kn]]), zn = { class: "kong-ui-app-
|
|
|
271
271
|
},
|
|
272
272
|
setup(n) {
|
|
273
273
|
const t = n, r = T(() => t.count ? t.count > ut ? `${ut}+` : t.count.toString() : "");
|
|
274
|
-
return (a, s) => r.value ? (
|
|
274
|
+
return (a, s) => r.value ? (v(), k("div", {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: "item-badge",
|
|
277
277
|
title: (n.count || 0) > ut ? String(n.count) : void 0
|
|
278
|
-
},
|
|
278
|
+
}, G(r.value), 9, rr)) : I("", !0);
|
|
279
279
|
}
|
|
280
280
|
}), or = /* @__PURE__ */ ee(ir, [["__scopeId", "data-v-afb0d903"]]), sr = ["data-testid"], cr = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], lr = {
|
|
281
281
|
key: 0,
|
|
@@ -298,85 +298,85 @@ const Hn = /* @__PURE__ */ ee(jn, [["render", Kn]]), zn = { class: "kong-ui-app-
|
|
|
298
298
|
},
|
|
299
299
|
emits: ["click"],
|
|
300
300
|
setup(n, { emit: t }) {
|
|
301
|
-
const r = t, a = n, s = T(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")),
|
|
301
|
+
const r = t, a = n, s = T(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = T(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), o = T(() => a.subnavItem && a.item.badgeCount !== void 0 && a.item.badgeCount !== 0), f = (E) => {
|
|
302
302
|
r("click", E);
|
|
303
|
-
}, g = (E, F,
|
|
304
|
-
f(F), typeof
|
|
303
|
+
}, g = (E, F, A) => {
|
|
304
|
+
f(F), typeof A == "function" && (E.preventDefault(), A());
|
|
305
305
|
};
|
|
306
306
|
return (E, F) => {
|
|
307
307
|
var L;
|
|
308
|
-
const
|
|
309
|
-
return
|
|
308
|
+
const A = me("KTooltip"), x = me("SidebarItem", !0);
|
|
309
|
+
return v(), k("li", {
|
|
310
310
|
class: ne([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
311
311
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
312
312
|
}, [
|
|
313
|
-
(
|
|
313
|
+
(v(), U(Ue(s.value ? "div" : "router-link"), {
|
|
314
314
|
custom: s.value ? void 0 : !0,
|
|
315
|
-
to: !s.value && !
|
|
315
|
+
to: !s.value && !l.value ? n.item.to : void 0
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
var Z,
|
|
317
|
+
default: D((S) => {
|
|
318
|
+
var Z, M;
|
|
319
319
|
return [
|
|
320
320
|
$("a", {
|
|
321
321
|
"aria-controls": (Z = n.item.items) != null && Z.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
322
322
|
"aria-current": n.item.active ? "page" : void 0,
|
|
323
|
-
"aria-expanded": (
|
|
324
|
-
class: ne(["sidebar-item-link", { "sidebar-item-external-link":
|
|
325
|
-
href: s.value ? String(n.item.to || "#") :
|
|
326
|
-
target:
|
|
327
|
-
onClick: (B) => g(B, n.item,
|
|
328
|
-
onKeypress: mn((B) => g(B, n.item,
|
|
323
|
+
"aria-expanded": (M = n.item.items) != null && M.length && n.item.expanded ? !0 : void 0,
|
|
324
|
+
class: ne(["sidebar-item-link", { "sidebar-item-external-link": l.value, "router-link": !s.value }]),
|
|
325
|
+
href: s.value ? String(n.item.to || "#") : S == null ? void 0 : S.href,
|
|
326
|
+
target: l.value ? "_blank" : void 0,
|
|
327
|
+
onClick: (B) => g(B, n.item, S == null ? void 0 : S.navigate),
|
|
328
|
+
onKeypress: mn((B) => g(B, n.item, S == null ? void 0 : S.navigate), ["enter"])
|
|
329
329
|
}, [
|
|
330
330
|
$("div", {
|
|
331
331
|
class: ne(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": o.value }])
|
|
332
332
|
}, [
|
|
333
|
-
E.$slots[`sidebar-icon-${n.item.key}`] ? (
|
|
334
|
-
n.subnavItem ?
|
|
335
|
-
])) :
|
|
333
|
+
E.$slots[`sidebar-icon-${n.item.key}`] ? (v(), k("div", lr, [
|
|
334
|
+
n.subnavItem ? I("", !0) : _(E.$slots, `sidebar-icon-${n.item.key}`, { key: 0 }, void 0, !0)
|
|
335
|
+
])) : I("", !0),
|
|
336
336
|
$("div", ur, [
|
|
337
|
-
(n.subnavItem && !o.value ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
337
|
+
(n.subnavItem && !o.value ? n.item.name.length < 25 : n.item.name.length < 18) ? (v(), k("div", {
|
|
338
338
|
key: 0,
|
|
339
339
|
class: ne(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
340
|
-
},
|
|
340
|
+
}, G(n.item.name), 3)) : (v(), U(A, {
|
|
341
341
|
key: 1,
|
|
342
342
|
class: "sidebar-item-tooltip",
|
|
343
343
|
placement: "right",
|
|
344
344
|
"position-fixed": "",
|
|
345
345
|
text: n.item.name
|
|
346
346
|
}, {
|
|
347
|
-
default:
|
|
347
|
+
default: D(() => [
|
|
348
348
|
$("div", dr, [
|
|
349
349
|
$("span", {
|
|
350
350
|
class: ne(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": o.value }]])
|
|
351
|
-
},
|
|
351
|
+
}, G(n.item.name), 3)
|
|
352
352
|
])
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}, 8, ["text"])),
|
|
356
|
-
n.item.label && n.item.expanded ? (
|
|
356
|
+
n.item.label && n.item.expanded ? (v(), k("div", fr, G(n.item.label), 1)) : I("", !0)
|
|
357
357
|
]),
|
|
358
|
-
o.value ? (
|
|
358
|
+
o.value ? (v(), U(or, {
|
|
359
359
|
key: 1,
|
|
360
360
|
count: n.item.badgeCount
|
|
361
|
-
}, null, 8, ["count"])) :
|
|
361
|
+
}, null, 8, ["count"])) : I("", !0)
|
|
362
362
|
], 2)
|
|
363
363
|
], 42, cr)
|
|
364
364
|
];
|
|
365
365
|
}),
|
|
366
366
|
_: 3
|
|
367
367
|
}, 8, ["custom", "to"])),
|
|
368
|
-
(L = n.item.items) != null && L.length && n.item.expanded ? (
|
|
368
|
+
(L = n.item.items) != null && L.length && n.item.expanded ? (v(), k("ul", {
|
|
369
369
|
key: 0,
|
|
370
370
|
id: `subnav-${n.item.key}`,
|
|
371
371
|
class: "level-secondary"
|
|
372
372
|
}, [
|
|
373
|
-
(
|
|
374
|
-
key:
|
|
375
|
-
item:
|
|
373
|
+
(v(!0), k(be, null, he(n.item.items, (S) => (v(), U(x, {
|
|
374
|
+
key: S.name,
|
|
375
|
+
item: S,
|
|
376
376
|
"subnav-item": !0,
|
|
377
|
-
onClick: (Z) => f(
|
|
377
|
+
onClick: (Z) => f(S)
|
|
378
378
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
379
|
-
], 8, vr)) :
|
|
379
|
+
], 8, vr)) : I("", !0)
|
|
380
380
|
], 10, sr);
|
|
381
381
|
};
|
|
382
382
|
}
|
|
@@ -385,8 +385,8 @@ const Hn = /* @__PURE__ */ ee(jn, [["render", Kn]]), zn = { class: "kong-ui-app-
|
|
|
385
385
|
* tabbable 6.2.0
|
|
386
386
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
387
387
|
*/
|
|
388
|
-
var
|
|
389
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
388
|
+
var Gt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], We = /* @__PURE__ */ Gt.join(","), Vt = typeof Element > "u", ge = Vt ? function() {
|
|
389
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ge = !Vt && Element.prototype.getRootNode ? function(n) {
|
|
390
390
|
var t;
|
|
391
391
|
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
392
392
|
} : function(n) {
|
|
@@ -394,7 +394,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
394
394
|
}, Ve = function n(t, r) {
|
|
395
395
|
var a;
|
|
396
396
|
r === void 0 && (r = !0);
|
|
397
|
-
var s = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "inert"),
|
|
397
|
+
var s = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "inert"), l = s === "" || s === "true", o = l || r && t && n(t.parentNode);
|
|
398
398
|
return o;
|
|
399
399
|
}, pr = function(t) {
|
|
400
400
|
var r, a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
@@ -402,11 +402,11 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
402
402
|
}, qt = function(t, r, a) {
|
|
403
403
|
if (Ve(t))
|
|
404
404
|
return [];
|
|
405
|
-
var s = Array.prototype.slice.apply(t.querySelectorAll(
|
|
406
|
-
return r && ge.call(t,
|
|
405
|
+
var s = Array.prototype.slice.apply(t.querySelectorAll(We));
|
|
406
|
+
return r && ge.call(t, We) && s.unshift(t), s = s.filter(a), s;
|
|
407
407
|
}, Xt = function n(t, r, a) {
|
|
408
|
-
for (var s = [],
|
|
409
|
-
var o =
|
|
408
|
+
for (var s = [], l = Array.from(t); l.length; ) {
|
|
409
|
+
var o = l.shift();
|
|
410
410
|
if (!Ve(o, !1))
|
|
411
411
|
if (o.tagName === "SLOT") {
|
|
412
412
|
var f = o.assignedElements(), g = f.length ? f : o.children, E = n(g, !0, a);
|
|
@@ -415,18 +415,18 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
415
415
|
candidates: E
|
|
416
416
|
});
|
|
417
417
|
} else {
|
|
418
|
-
var F = ge.call(o,
|
|
418
|
+
var F = ge.call(o, We);
|
|
419
419
|
F && a.filter(o) && (r || !t.includes(o)) && s.push(o);
|
|
420
|
-
var
|
|
421
|
-
typeof a.getShadowRoot == "function" && a.getShadowRoot(o), x = !Ve(
|
|
422
|
-
if (
|
|
423
|
-
var L = n(
|
|
420
|
+
var A = o.shadowRoot || // check for an undisclosed shadow
|
|
421
|
+
typeof a.getShadowRoot == "function" && a.getShadowRoot(o), x = !Ve(A, !1) && (!a.shadowRootFilter || a.shadowRootFilter(o));
|
|
422
|
+
if (A && x) {
|
|
423
|
+
var L = n(A === !0 ? o.children : A.children, !0, a);
|
|
424
424
|
a.flatten ? s.push.apply(s, L) : s.push({
|
|
425
425
|
scopeParent: o,
|
|
426
426
|
candidates: L
|
|
427
427
|
});
|
|
428
428
|
} else
|
|
429
|
-
|
|
429
|
+
l.unshift.apply(l, o.children);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
return s;
|
|
@@ -457,7 +457,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
457
457
|
}, kr = function(t) {
|
|
458
458
|
if (!t.name)
|
|
459
459
|
return !0;
|
|
460
|
-
var r = t.form ||
|
|
460
|
+
var r = t.form || Ge(t), a = function(f) {
|
|
461
461
|
return r.querySelectorAll('input[type="radio"][name="' + f + '"]');
|
|
462
462
|
}, s;
|
|
463
463
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -468,38 +468,38 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
468
468
|
} catch (o) {
|
|
469
469
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
return !
|
|
473
|
-
}, _r = function(t) {
|
|
474
|
-
return Jt(t) && t.type === "radio";
|
|
471
|
+
var l = wr(s, t.form);
|
|
472
|
+
return !l || l === t;
|
|
475
473
|
}, Tr = function(t) {
|
|
476
|
-
return
|
|
474
|
+
return Jt(t) && t.type === "radio";
|
|
475
|
+
}, _r = function(t) {
|
|
476
|
+
return Tr(t) && !kr(t);
|
|
477
477
|
}, Sr = function(t) {
|
|
478
|
-
var r, a = t &&
|
|
478
|
+
var r, a = t && Ge(t), s = (r = a) === null || r === void 0 ? void 0 : r.host, l = !1;
|
|
479
479
|
if (a && a !== t) {
|
|
480
480
|
var o, f, g;
|
|
481
|
-
for (
|
|
482
|
-
var E, F,
|
|
483
|
-
a =
|
|
481
|
+
for (l = !!((o = s) !== null && o !== void 0 && (f = o.ownerDocument) !== null && f !== void 0 && f.contains(s) || t != null && (g = t.ownerDocument) !== null && g !== void 0 && g.contains(t)); !l && s; ) {
|
|
482
|
+
var E, F, A;
|
|
483
|
+
a = Ge(s), s = (E = a) === null || E === void 0 ? void 0 : E.host, l = !!((F = s) !== null && F !== void 0 && (A = F.ownerDocument) !== null && A !== void 0 && A.contains(s));
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
return
|
|
487
|
-
},
|
|
486
|
+
return l;
|
|
487
|
+
}, Mt = function(t) {
|
|
488
488
|
var r = t.getBoundingClientRect(), a = r.width, s = r.height;
|
|
489
489
|
return a === 0 && s === 0;
|
|
490
490
|
}, Ir = function(t, r) {
|
|
491
491
|
var a = r.displayCheck, s = r.getShadowRoot;
|
|
492
492
|
if (getComputedStyle(t).visibility === "hidden")
|
|
493
493
|
return !0;
|
|
494
|
-
var
|
|
494
|
+
var l = ge.call(t, "details>summary:first-of-type"), o = l ? t.parentElement : t;
|
|
495
495
|
if (ge.call(o, "details:not([open]) *"))
|
|
496
496
|
return !0;
|
|
497
497
|
if (!a || a === "full" || a === "legacy-full") {
|
|
498
498
|
if (typeof s == "function") {
|
|
499
499
|
for (var f = t; t; ) {
|
|
500
|
-
var g = t.parentElement, E =
|
|
500
|
+
var g = t.parentElement, E = Ge(t);
|
|
501
501
|
if (g && !g.shadowRoot && s(g) === !0)
|
|
502
|
-
return
|
|
502
|
+
return Mt(t);
|
|
503
503
|
t.assignedSlot ? t = t.assignedSlot : !g && E !== t.ownerDocument ? t = E.host : t = g;
|
|
504
504
|
}
|
|
505
505
|
t = f;
|
|
@@ -509,7 +509,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
509
509
|
if (a !== "legacy-full")
|
|
510
510
|
return !0;
|
|
511
511
|
} else if (a === "non-zero-area")
|
|
512
|
-
return
|
|
512
|
+
return Mt(t);
|
|
513
513
|
return !1;
|
|
514
514
|
}, Or = function(t) {
|
|
515
515
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
@@ -532,23 +532,23 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
532
532
|
Ve(r) || gr(r) || Ir(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
533
533
|
yr(r) || Or(r));
|
|
534
534
|
}, ft = function(t, r) {
|
|
535
|
-
return !(
|
|
535
|
+
return !(_r(r) || pe(r) < 0 || !qe(t, r));
|
|
536
536
|
}, $r = function(t) {
|
|
537
537
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
538
538
|
return !!(isNaN(r) || r >= 0);
|
|
539
539
|
}, Cr = function n(t) {
|
|
540
540
|
var r = [], a = [];
|
|
541
|
-
return t.forEach(function(s,
|
|
541
|
+
return t.forEach(function(s, l) {
|
|
542
542
|
var o = !!s.scopeParent, f = o ? s.scopeParent : s, g = hr(f, o), E = o ? n(s.candidates) : f;
|
|
543
543
|
g === 0 ? o ? r.push.apply(r, E) : r.push(f) : a.push({
|
|
544
|
-
documentOrder:
|
|
544
|
+
documentOrder: l,
|
|
545
545
|
tabIndex: g,
|
|
546
546
|
item: s,
|
|
547
547
|
isScope: o,
|
|
548
548
|
content: E
|
|
549
549
|
});
|
|
550
|
-
}), a.sort(mr).reduce(function(s,
|
|
551
|
-
return
|
|
550
|
+
}), a.sort(mr).reduce(function(s, l) {
|
|
551
|
+
return l.isScope ? s.push.apply(s, l.content) : s.push(l.content), s;
|
|
552
552
|
}, []).concat(r);
|
|
553
553
|
}, Er = function(t, r) {
|
|
554
554
|
r = r || {};
|
|
@@ -559,7 +559,7 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
559
559
|
getShadowRoot: r.getShadowRoot,
|
|
560
560
|
shadowRootFilter: $r
|
|
561
561
|
}) : a = qt(t, r.includeContainer, ft.bind(null, r)), Cr(a);
|
|
562
|
-
},
|
|
562
|
+
}, Nr = function(t, r) {
|
|
563
563
|
r = r || {};
|
|
564
564
|
var a;
|
|
565
565
|
return r.getShadowRoot ? a = Xt([t], r.includeContainer, {
|
|
@@ -567,43 +567,28 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
567
567
|
flatten: !0,
|
|
568
568
|
getShadowRoot: r.getShadowRoot
|
|
569
569
|
}) : a = qt(t, r.includeContainer, qe.bind(null, r)), a;
|
|
570
|
-
},
|
|
570
|
+
}, _e = function(t, r) {
|
|
571
571
|
if (r = r || {}, !t)
|
|
572
572
|
throw new Error("No node provided");
|
|
573
|
-
return ge.call(t,
|
|
574
|
-
},
|
|
573
|
+
return ge.call(t, We) === !1 ? !1 : ft(r, t);
|
|
574
|
+
}, Ar = /* @__PURE__ */ Gt.concat("iframe").join(","), dt = function(t, r) {
|
|
575
575
|
if (r = r || {}, !t)
|
|
576
576
|
throw new Error("No node provided");
|
|
577
|
-
return ge.call(t,
|
|
577
|
+
return ge.call(t, Ar) === !1 ? !1 : qe(r, t);
|
|
578
578
|
};
|
|
579
579
|
/*!
|
|
580
|
-
* focus-trap 7.6.
|
|
580
|
+
* focus-trap 7.6.0
|
|
581
581
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
582
582
|
*/
|
|
583
|
-
function
|
|
584
|
-
(t
|
|
585
|
-
for (var r = 0, a = Array(t); r < t; r++) a[r] = n[r];
|
|
586
|
-
return a;
|
|
587
|
-
}
|
|
588
|
-
function Fr(n) {
|
|
589
|
-
if (Array.isArray(n)) return vt(n);
|
|
590
|
-
}
|
|
591
|
-
function Dr(n, t, r) {
|
|
592
|
-
return (t = Mr(t)) in n ? Object.defineProperty(n, t, {
|
|
583
|
+
function Fr(n, t, r) {
|
|
584
|
+
return (t = Rr(t)) in n ? Object.defineProperty(n, t, {
|
|
593
585
|
value: r,
|
|
594
586
|
enumerable: !0,
|
|
595
587
|
configurable: !0,
|
|
596
588
|
writable: !0
|
|
597
589
|
}) : n[t] = r, n;
|
|
598
590
|
}
|
|
599
|
-
function
|
|
600
|
-
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
601
|
-
}
|
|
602
|
-
function xr() {
|
|
603
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
604
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
605
|
-
}
|
|
606
|
-
function Zt(n, t) {
|
|
591
|
+
function jt(n, t) {
|
|
607
592
|
var r = Object.keys(n);
|
|
608
593
|
if (Object.getOwnPropertySymbols) {
|
|
609
594
|
var a = Object.getOwnPropertySymbols(n);
|
|
@@ -613,21 +598,18 @@ function Zt(n, t) {
|
|
|
613
598
|
}
|
|
614
599
|
return r;
|
|
615
600
|
}
|
|
616
|
-
function
|
|
601
|
+
function Zt(n) {
|
|
617
602
|
for (var t = 1; t < arguments.length; t++) {
|
|
618
603
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
619
|
-
t % 2 ?
|
|
620
|
-
|
|
621
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(r)) :
|
|
604
|
+
t % 2 ? jt(Object(r), !0).forEach(function(a) {
|
|
605
|
+
Fr(n, a, r[a]);
|
|
606
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(r)) : jt(Object(r)).forEach(function(a) {
|
|
622
607
|
Object.defineProperty(n, a, Object.getOwnPropertyDescriptor(r, a));
|
|
623
608
|
});
|
|
624
609
|
}
|
|
625
610
|
return n;
|
|
626
611
|
}
|
|
627
|
-
function
|
|
628
|
-
return Fr(n) || Rr(n) || Pr(n) || xr();
|
|
629
|
-
}
|
|
630
|
-
function Lr(n, t) {
|
|
612
|
+
function Dr(n, t) {
|
|
631
613
|
if (typeof n != "object" || !n) return n;
|
|
632
614
|
var r = n[Symbol.toPrimitive];
|
|
633
615
|
if (r !== void 0) {
|
|
@@ -637,55 +619,53 @@ function Lr(n, t) {
|
|
|
637
619
|
}
|
|
638
620
|
return (t === "string" ? String : Number)(n);
|
|
639
621
|
}
|
|
640
|
-
function
|
|
641
|
-
var t =
|
|
622
|
+
function Rr(n) {
|
|
623
|
+
var t = Dr(n, "string");
|
|
642
624
|
return typeof t == "symbol" ? t : t + "";
|
|
643
625
|
}
|
|
644
|
-
|
|
645
|
-
if (n) {
|
|
646
|
-
if (typeof n == "string") return vt(n, t);
|
|
647
|
-
var r = {}.toString.call(n).slice(8, -1);
|
|
648
|
-
return r === "Object" && n.constructor && (r = n.constructor.name), r === "Map" || r === "Set" ? Array.from(n) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? vt(n, t) : void 0;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
var Ht = {
|
|
626
|
+
var Kt = {
|
|
652
627
|
activateTrap: function(t, r) {
|
|
653
628
|
if (t.length > 0) {
|
|
654
629
|
var a = t[t.length - 1];
|
|
655
|
-
a !== r && a.
|
|
630
|
+
a !== r && a.pause();
|
|
656
631
|
}
|
|
657
632
|
var s = t.indexOf(r);
|
|
658
633
|
s === -1 || t.splice(s, 1), t.push(r);
|
|
659
634
|
},
|
|
660
635
|
deactivateTrap: function(t, r) {
|
|
661
636
|
var a = t.indexOf(r);
|
|
662
|
-
a !== -1 && t.splice(a, 1), t.length > 0 &&
|
|
637
|
+
a !== -1 && t.splice(a, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
663
638
|
}
|
|
664
|
-
},
|
|
639
|
+
}, xr = function(t) {
|
|
665
640
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
666
|
-
},
|
|
641
|
+
}, Br = function(t) {
|
|
667
642
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
668
643
|
}, Ee = function(t) {
|
|
669
644
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
670
|
-
},
|
|
645
|
+
}, Lr = function(t) {
|
|
671
646
|
return Ee(t) && !t.shiftKey;
|
|
672
|
-
},
|
|
647
|
+
}, Pr = function(t) {
|
|
673
648
|
return Ee(t) && t.shiftKey;
|
|
674
|
-
},
|
|
649
|
+
}, Ht = function(t) {
|
|
675
650
|
return setTimeout(t, 0);
|
|
651
|
+
}, Ut = function(t, r) {
|
|
652
|
+
var a = -1;
|
|
653
|
+
return t.every(function(s, l) {
|
|
654
|
+
return r(s) ? (a = l, !1) : !0;
|
|
655
|
+
}), a;
|
|
676
656
|
}, Ce = function(t) {
|
|
677
657
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
678
658
|
a[s - 1] = arguments[s];
|
|
679
659
|
return typeof t == "function" ? t.apply(void 0, a) : t;
|
|
680
660
|
}, je = function(t) {
|
|
681
661
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
682
|
-
},
|
|
683
|
-
var a = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) ||
|
|
662
|
+
}, Mr = [], jr = function(t, r) {
|
|
663
|
+
var a = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) || Mr, l = Zt({
|
|
684
664
|
returnFocusOnDeactivate: !0,
|
|
685
665
|
escapeDeactivates: !0,
|
|
686
666
|
delayInitialFocus: !0,
|
|
687
|
-
isKeyForward:
|
|
688
|
-
isKeyBackward:
|
|
667
|
+
isKeyForward: Lr,
|
|
668
|
+
isKeyBackward: Pr
|
|
689
669
|
}, r), o = {
|
|
690
670
|
// containers given to createFocusTrap()
|
|
691
671
|
// @type {Array<HTMLElement>}
|
|
@@ -717,78 +697,72 @@ var Ht = {
|
|
|
717
697
|
mostRecentlyFocusedNode: null,
|
|
718
698
|
active: !1,
|
|
719
699
|
paused: !1,
|
|
720
|
-
manuallyPaused: !1,
|
|
721
700
|
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
722
701
|
// has been delayed during activation
|
|
723
702
|
delayInitialFocusTimer: void 0,
|
|
724
703
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
725
704
|
recentNavEvent: void 0
|
|
726
|
-
}, f, g = function(
|
|
727
|
-
return
|
|
728
|
-
}, E = function(
|
|
729
|
-
var
|
|
730
|
-
return o.containerGroups.findIndex(function(
|
|
731
|
-
var w =
|
|
732
|
-
return w.contains(
|
|
705
|
+
}, f, g = function(u, d, m) {
|
|
706
|
+
return u && u[d] !== void 0 ? u[d] : l[m || d];
|
|
707
|
+
}, E = function(u, d) {
|
|
708
|
+
var m = typeof (d == null ? void 0 : d.composedPath) == "function" ? d.composedPath() : void 0;
|
|
709
|
+
return o.containerGroups.findIndex(function(b) {
|
|
710
|
+
var w = b.container, p = b.tabbableNodes;
|
|
711
|
+
return w.contains(u) || // fall back to explicit tabbable search which will take into consideration any
|
|
733
712
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
734
713
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
735
714
|
// look inside web components even if open)
|
|
736
|
-
(
|
|
737
|
-
return
|
|
715
|
+
(m == null ? void 0 : m.includes(w)) || p.find(function(O) {
|
|
716
|
+
return O === u;
|
|
738
717
|
});
|
|
739
718
|
});
|
|
740
|
-
}, F = function(
|
|
741
|
-
var d =
|
|
742
|
-
if (typeof
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
719
|
+
}, F = function(u) {
|
|
720
|
+
var d = l[u];
|
|
721
|
+
if (typeof d == "function") {
|
|
722
|
+
for (var m = arguments.length, b = new Array(m > 1 ? m - 1 : 0), w = 1; w < m; w++)
|
|
723
|
+
b[w - 1] = arguments[w];
|
|
724
|
+
d = d.apply(void 0, b);
|
|
746
725
|
}
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
} catch (D) {
|
|
752
|
-
throw new Error("`".concat(l, '` appears to be an invalid selector; error="').concat(D.message, '"'));
|
|
753
|
-
}
|
|
754
|
-
if (!m && !v)
|
|
755
|
-
throw new Error("`".concat(l, "` as selector refers to no known node"));
|
|
726
|
+
if (d === !0 && (d = void 0), !d) {
|
|
727
|
+
if (d === void 0 || d === !1)
|
|
728
|
+
return d;
|
|
729
|
+
throw new Error("`".concat(u, "` was specified but was not a node, or did not return a node"));
|
|
756
730
|
}
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
731
|
+
var p = d;
|
|
732
|
+
if (typeof d == "string" && (p = a.querySelector(d), !p))
|
|
733
|
+
throw new Error("`".concat(u, "` as selector refers to no known node"));
|
|
734
|
+
return p;
|
|
735
|
+
}, A = function() {
|
|
736
|
+
var u = F("initialFocus");
|
|
737
|
+
if (u === !1)
|
|
763
738
|
return !1;
|
|
764
|
-
if (
|
|
739
|
+
if (u === void 0 || !dt(u, l.tabbableOptions))
|
|
765
740
|
if (E(a.activeElement) >= 0)
|
|
766
|
-
|
|
741
|
+
u = a.activeElement;
|
|
767
742
|
else {
|
|
768
|
-
var d = o.tabbableGroups[0],
|
|
769
|
-
|
|
743
|
+
var d = o.tabbableGroups[0], m = d && d.firstTabbableNode;
|
|
744
|
+
u = m || F("fallbackFocus");
|
|
770
745
|
}
|
|
771
|
-
|
|
772
|
-
if (!l)
|
|
746
|
+
if (!u)
|
|
773
747
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
774
|
-
return
|
|
748
|
+
return u;
|
|
775
749
|
}, x = function() {
|
|
776
|
-
if (o.containerGroups = o.containers.map(function(
|
|
777
|
-
var d = Er(
|
|
778
|
-
return
|
|
779
|
-
}),
|
|
780
|
-
return
|
|
781
|
-
}),
|
|
782
|
-
return pe(
|
|
750
|
+
if (o.containerGroups = o.containers.map(function(u) {
|
|
751
|
+
var d = Er(u, l.tabbableOptions), m = Nr(u, l.tabbableOptions), b = d.length > 0 ? d[0] : void 0, w = d.length > 0 ? d[d.length - 1] : void 0, p = m.find(function(R) {
|
|
752
|
+
return _e(R);
|
|
753
|
+
}), O = m.slice().reverse().find(function(R) {
|
|
754
|
+
return _e(R);
|
|
755
|
+
}), y = !!d.find(function(R) {
|
|
756
|
+
return pe(R) > 0;
|
|
783
757
|
});
|
|
784
758
|
return {
|
|
785
|
-
container:
|
|
759
|
+
container: u,
|
|
786
760
|
tabbableNodes: d,
|
|
787
|
-
focusableNodes:
|
|
761
|
+
focusableNodes: m,
|
|
788
762
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
789
|
-
posTabIndexesFound:
|
|
763
|
+
posTabIndexesFound: y,
|
|
790
764
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
791
|
-
firstTabbableNode:
|
|
765
|
+
firstTabbableNode: b,
|
|
792
766
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
793
767
|
lastTabbableNode: w,
|
|
794
768
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -799,9 +773,9 @@ var Ht = {
|
|
|
799
773
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
800
774
|
// be avoided anyway...
|
|
801
775
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
802
|
-
firstDomTabbableNode:
|
|
776
|
+
firstDomTabbableNode: p,
|
|
803
777
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
804
|
-
lastDomTabbableNode:
|
|
778
|
+
lastDomTabbableNode: O,
|
|
805
779
|
/**
|
|
806
780
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
807
781
|
* in this container, if any.
|
|
@@ -810,76 +784,74 @@ var Ht = {
|
|
|
810
784
|
* in reverse.
|
|
811
785
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
812
786
|
*/
|
|
813
|
-
nextTabbableNode: function(
|
|
814
|
-
var
|
|
815
|
-
return ae < 0 ?
|
|
816
|
-
return
|
|
817
|
-
}) :
|
|
818
|
-
return
|
|
819
|
-
}) : d[ae + (
|
|
787
|
+
nextTabbableNode: function(P) {
|
|
788
|
+
var W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ae = d.indexOf(P);
|
|
789
|
+
return ae < 0 ? W ? m.slice(m.indexOf(P) + 1).find(function(le) {
|
|
790
|
+
return _e(le);
|
|
791
|
+
}) : m.slice(0, m.indexOf(P)).reverse().find(function(le) {
|
|
792
|
+
return _e(le);
|
|
793
|
+
}) : d[ae + (W ? 1 : -1)];
|
|
820
794
|
}
|
|
821
795
|
};
|
|
822
|
-
}), o.tabbableGroups = o.containerGroups.filter(function(
|
|
823
|
-
return
|
|
796
|
+
}), o.tabbableGroups = o.containerGroups.filter(function(u) {
|
|
797
|
+
return u.tabbableNodes.length > 0;
|
|
824
798
|
}), o.tabbableGroups.length <= 0 && !F("fallbackFocus"))
|
|
825
799
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
826
|
-
if (o.containerGroups.find(function(
|
|
827
|
-
return
|
|
800
|
+
if (o.containerGroups.find(function(u) {
|
|
801
|
+
return u.posTabIndexesFound;
|
|
828
802
|
}) && o.containerGroups.length > 1)
|
|
829
803
|
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.");
|
|
830
|
-
}, L = function(
|
|
831
|
-
var d =
|
|
804
|
+
}, L = function(u) {
|
|
805
|
+
var d = u.activeElement;
|
|
832
806
|
if (d)
|
|
833
807
|
return d.shadowRoot && d.shadowRoot.activeElement !== null ? L(d.shadowRoot) : d;
|
|
834
|
-
},
|
|
835
|
-
if (
|
|
836
|
-
if (!
|
|
837
|
-
|
|
808
|
+
}, S = function(u) {
|
|
809
|
+
if (u !== !1 && u !== L(document)) {
|
|
810
|
+
if (!u || !u.focus) {
|
|
811
|
+
S(A());
|
|
838
812
|
return;
|
|
839
813
|
}
|
|
840
|
-
|
|
841
|
-
preventScroll: !!
|
|
842
|
-
}), o.mostRecentlyFocusedNode =
|
|
814
|
+
u.focus({
|
|
815
|
+
preventScroll: !!l.preventScroll
|
|
816
|
+
}), o.mostRecentlyFocusedNode = u, xr(u) && u.select();
|
|
843
817
|
}
|
|
844
|
-
}, Z = function(
|
|
845
|
-
var d = F("setReturnFocus",
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
var
|
|
851
|
-
d = d || je(y), x();
|
|
852
|
-
var b = null;
|
|
818
|
+
}, Z = function(u) {
|
|
819
|
+
var d = F("setReturnFocus", u);
|
|
820
|
+
return d || (d === !1 ? !1 : u);
|
|
821
|
+
}, M = function(u) {
|
|
822
|
+
var d = u.target, m = u.event, b = u.isBackward, w = b === void 0 ? !1 : b;
|
|
823
|
+
d = d || je(m), x();
|
|
824
|
+
var p = null;
|
|
853
825
|
if (o.tabbableGroups.length > 0) {
|
|
854
|
-
var
|
|
855
|
-
if (
|
|
856
|
-
w ?
|
|
826
|
+
var O = E(d, m), y = O >= 0 ? o.containerGroups[O] : void 0;
|
|
827
|
+
if (O < 0)
|
|
828
|
+
w ? p = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : p = o.tabbableGroups[0].firstTabbableNode;
|
|
857
829
|
else if (w) {
|
|
858
|
-
var
|
|
830
|
+
var R = Ut(o.tabbableGroups, function(Se) {
|
|
859
831
|
var Ie = Se.firstTabbableNode;
|
|
860
832
|
return d === Ie;
|
|
861
833
|
});
|
|
862
|
-
if (
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
} else Ee(
|
|
834
|
+
if (R < 0 && (y.container === d || dt(d, l.tabbableOptions) && !_e(d, l.tabbableOptions) && !y.nextTabbableNode(d, !1)) && (R = O), R >= 0) {
|
|
835
|
+
var P = R === 0 ? o.tabbableGroups.length - 1 : R - 1, W = o.tabbableGroups[P];
|
|
836
|
+
p = pe(d) >= 0 ? W.lastTabbableNode : W.lastDomTabbableNode;
|
|
837
|
+
} else Ee(m) || (p = y.nextTabbableNode(d, !1));
|
|
866
838
|
} else {
|
|
867
|
-
var ae = o.tabbableGroups
|
|
839
|
+
var ae = Ut(o.tabbableGroups, function(Se) {
|
|
868
840
|
var Ie = Se.lastTabbableNode;
|
|
869
841
|
return d === Ie;
|
|
870
842
|
});
|
|
871
|
-
if (ae < 0 && (
|
|
843
|
+
if (ae < 0 && (y.container === d || dt(d, l.tabbableOptions) && !_e(d, l.tabbableOptions) && !y.nextTabbableNode(d)) && (ae = O), ae >= 0) {
|
|
872
844
|
var le = ae === o.tabbableGroups.length - 1 ? 0 : ae + 1, De = o.tabbableGroups[le];
|
|
873
|
-
|
|
874
|
-
} else Ee(
|
|
845
|
+
p = pe(d) >= 0 ? De.firstTabbableNode : De.firstDomTabbableNode;
|
|
846
|
+
} else Ee(m) || (p = y.nextTabbableNode(d));
|
|
875
847
|
}
|
|
876
848
|
} else
|
|
877
|
-
|
|
878
|
-
return
|
|
879
|
-
}, B = function(
|
|
880
|
-
var d = je(
|
|
881
|
-
if (!(E(d,
|
|
882
|
-
if (Ce(
|
|
849
|
+
p = F("fallbackFocus");
|
|
850
|
+
return p;
|
|
851
|
+
}, B = function(u) {
|
|
852
|
+
var d = je(u);
|
|
853
|
+
if (!(E(d, u) >= 0)) {
|
|
854
|
+
if (Ce(l.clickOutsideDeactivates, u)) {
|
|
883
855
|
f.deactivate({
|
|
884
856
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
885
857
|
// which will result in the outside click setting focus to the node
|
|
@@ -887,64 +859,64 @@ var Ht = {
|
|
|
887
859
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
888
860
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
889
861
|
// outside click was on a focusable node or not
|
|
890
|
-
returnFocus:
|
|
862
|
+
returnFocus: l.returnFocusOnDeactivate
|
|
891
863
|
});
|
|
892
864
|
return;
|
|
893
865
|
}
|
|
894
|
-
Ce(
|
|
866
|
+
Ce(l.allowOutsideClick, u) || u.preventDefault();
|
|
895
867
|
}
|
|
896
|
-
}, re = function(
|
|
897
|
-
var d = je(
|
|
898
|
-
if (
|
|
899
|
-
|
|
868
|
+
}, re = function(u) {
|
|
869
|
+
var d = je(u), m = E(d, u) >= 0;
|
|
870
|
+
if (m || d instanceof Document)
|
|
871
|
+
m && (o.mostRecentlyFocusedNode = d);
|
|
900
872
|
else {
|
|
901
|
-
|
|
902
|
-
var
|
|
873
|
+
u.stopImmediatePropagation();
|
|
874
|
+
var b, w = !0;
|
|
903
875
|
if (o.mostRecentlyFocusedNode)
|
|
904
876
|
if (pe(o.mostRecentlyFocusedNode) > 0) {
|
|
905
|
-
var
|
|
906
|
-
if (
|
|
907
|
-
var
|
|
908
|
-
return
|
|
877
|
+
var p = E(o.mostRecentlyFocusedNode), O = o.containerGroups[p].tabbableNodes;
|
|
878
|
+
if (O.length > 0) {
|
|
879
|
+
var y = O.findIndex(function(R) {
|
|
880
|
+
return R === o.mostRecentlyFocusedNode;
|
|
909
881
|
});
|
|
910
|
-
|
|
882
|
+
y >= 0 && (l.isKeyForward(o.recentNavEvent) ? y + 1 < O.length && (b = O[y + 1], w = !1) : y - 1 >= 0 && (b = O[y - 1], w = !1));
|
|
911
883
|
}
|
|
912
884
|
} else
|
|
913
|
-
o.containerGroups.some(function(
|
|
914
|
-
return
|
|
915
|
-
return pe(
|
|
885
|
+
o.containerGroups.some(function(R) {
|
|
886
|
+
return R.tabbableNodes.some(function(P) {
|
|
887
|
+
return pe(P) > 0;
|
|
916
888
|
});
|
|
917
889
|
}) || (w = !1);
|
|
918
890
|
else
|
|
919
891
|
w = !1;
|
|
920
|
-
w && (
|
|
892
|
+
w && (b = M({
|
|
921
893
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
922
894
|
// outside the trap causing the focus escape we're trying to fix)
|
|
923
895
|
target: o.mostRecentlyFocusedNode,
|
|
924
|
-
isBackward:
|
|
925
|
-
})),
|
|
896
|
+
isBackward: l.isKeyBackward(o.recentNavEvent)
|
|
897
|
+
})), S(b || o.mostRecentlyFocusedNode || A());
|
|
926
898
|
}
|
|
927
899
|
o.recentNavEvent = void 0;
|
|
928
|
-
}, ie = function(
|
|
900
|
+
}, ie = function(u) {
|
|
929
901
|
var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
930
|
-
o.recentNavEvent =
|
|
931
|
-
var
|
|
932
|
-
event:
|
|
902
|
+
o.recentNavEvent = u;
|
|
903
|
+
var m = M({
|
|
904
|
+
event: u,
|
|
933
905
|
isBackward: d
|
|
934
906
|
});
|
|
935
|
-
|
|
936
|
-
}, te = function(
|
|
937
|
-
(
|
|
938
|
-
}, oe = function(
|
|
939
|
-
|
|
940
|
-
}, V = function(
|
|
941
|
-
var d = je(
|
|
942
|
-
E(d,
|
|
907
|
+
m && (Ee(u) && u.preventDefault(), S(m));
|
|
908
|
+
}, te = function(u) {
|
|
909
|
+
(l.isKeyForward(u) || l.isKeyBackward(u)) && ie(u, l.isKeyBackward(u));
|
|
910
|
+
}, oe = function(u) {
|
|
911
|
+
Br(u) && Ce(l.escapeDeactivates, u) !== !1 && (u.preventDefault(), f.deactivate());
|
|
912
|
+
}, V = function(u) {
|
|
913
|
+
var d = je(u);
|
|
914
|
+
E(d, u) >= 0 || Ce(l.clickOutsideDeactivates, u) || Ce(l.allowOutsideClick, u) || (u.preventDefault(), u.stopImmediatePropagation());
|
|
943
915
|
}, q = function() {
|
|
944
916
|
if (o.active)
|
|
945
|
-
return
|
|
946
|
-
|
|
947
|
-
}) :
|
|
917
|
+
return Kt.activateTrap(s, f), o.delayInitialFocusTimer = l.delayInitialFocus ? Ht(function() {
|
|
918
|
+
S(A());
|
|
919
|
+
}) : S(A()), a.addEventListener("focusin", re, !0), a.addEventListener("mousedown", B, {
|
|
948
920
|
capture: !0,
|
|
949
921
|
passive: !1
|
|
950
922
|
}), a.addEventListener("touchstart", B, {
|
|
@@ -960,17 +932,17 @@ var Ht = {
|
|
|
960
932
|
}, C = function() {
|
|
961
933
|
if (o.active)
|
|
962
934
|
return a.removeEventListener("focusin", re, !0), a.removeEventListener("mousedown", B, !0), a.removeEventListener("touchstart", B, !0), a.removeEventListener("click", V, !0), a.removeEventListener("keydown", te, !0), a.removeEventListener("keydown", oe), f;
|
|
963
|
-
}, K = function(
|
|
964
|
-
var d =
|
|
965
|
-
var
|
|
966
|
-
return
|
|
935
|
+
}, K = function(u) {
|
|
936
|
+
var d = u.some(function(m) {
|
|
937
|
+
var b = Array.from(m.removedNodes);
|
|
938
|
+
return b.some(function(w) {
|
|
967
939
|
return w === o.mostRecentlyFocusedNode;
|
|
968
940
|
});
|
|
969
941
|
});
|
|
970
|
-
d &&
|
|
971
|
-
},
|
|
972
|
-
|
|
973
|
-
|
|
942
|
+
d && S(A());
|
|
943
|
+
}, z = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(K) : void 0, H = function() {
|
|
944
|
+
z && (z.disconnect(), o.active && !o.paused && o.containers.map(function(u) {
|
|
945
|
+
z.observe(u, {
|
|
974
946
|
subtree: !0,
|
|
975
947
|
childList: !0
|
|
976
948
|
});
|
|
@@ -983,74 +955,60 @@ var Ht = {
|
|
|
983
955
|
get paused() {
|
|
984
956
|
return o.paused;
|
|
985
957
|
},
|
|
986
|
-
activate: function(
|
|
958
|
+
activate: function(u) {
|
|
987
959
|
if (o.active)
|
|
988
960
|
return this;
|
|
989
|
-
var d = g(
|
|
990
|
-
|
|
961
|
+
var d = g(u, "onActivate"), m = g(u, "onPostActivate"), b = g(u, "checkCanFocusTrap");
|
|
962
|
+
b || x(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = a.activeElement, d == null || d();
|
|
991
963
|
var w = function() {
|
|
992
|
-
|
|
964
|
+
b && x(), q(), H(), m == null || m();
|
|
993
965
|
};
|
|
994
|
-
return
|
|
966
|
+
return b ? (b(o.containers.concat()).then(w, w), this) : (w(), this);
|
|
995
967
|
},
|
|
996
|
-
deactivate: function(
|
|
968
|
+
deactivate: function(u) {
|
|
997
969
|
if (!o.active)
|
|
998
970
|
return this;
|
|
999
|
-
var d =
|
|
1000
|
-
onDeactivate:
|
|
1001
|
-
onPostDeactivate:
|
|
1002
|
-
checkCanReturnFocus:
|
|
1003
|
-
},
|
|
1004
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, C(), o.active = !1, o.paused = !1, H(),
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1007
|
-
var
|
|
1008
|
-
|
|
1009
|
-
|
|
971
|
+
var d = Zt({
|
|
972
|
+
onDeactivate: l.onDeactivate,
|
|
973
|
+
onPostDeactivate: l.onPostDeactivate,
|
|
974
|
+
checkCanReturnFocus: l.checkCanReturnFocus
|
|
975
|
+
}, u);
|
|
976
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, C(), o.active = !1, o.paused = !1, H(), Kt.deactivateTrap(s, f);
|
|
977
|
+
var m = g(d, "onDeactivate"), b = g(d, "onPostDeactivate"), w = g(d, "checkCanReturnFocus"), p = g(d, "returnFocus", "returnFocusOnDeactivate");
|
|
978
|
+
m == null || m();
|
|
979
|
+
var O = function() {
|
|
980
|
+
Ht(function() {
|
|
981
|
+
p && S(Z(o.nodeFocusedBeforeActivation)), b == null || b();
|
|
1010
982
|
});
|
|
1011
983
|
};
|
|
1012
|
-
return
|
|
984
|
+
return p && w ? (w(Z(o.nodeFocusedBeforeActivation)).then(O, O), this) : (O(), this);
|
|
1013
985
|
},
|
|
1014
|
-
pause: function(
|
|
1015
|
-
|
|
986
|
+
pause: function(u) {
|
|
987
|
+
if (o.paused || !o.active)
|
|
988
|
+
return this;
|
|
989
|
+
var d = g(u, "onPause"), m = g(u, "onPostPause");
|
|
990
|
+
return o.paused = !0, d == null || d(), C(), H(), m == null || m(), this;
|
|
1016
991
|
},
|
|
1017
|
-
unpause: function(
|
|
1018
|
-
|
|
992
|
+
unpause: function(u) {
|
|
993
|
+
if (!o.paused || !o.active)
|
|
994
|
+
return this;
|
|
995
|
+
var d = g(u, "onUnpause"), m = g(u, "onPostUnpause");
|
|
996
|
+
return o.paused = !1, d == null || d(), x(), q(), H(), m == null || m(), this;
|
|
1019
997
|
},
|
|
1020
|
-
updateContainerElements: function(
|
|
1021
|
-
var d = [].concat(
|
|
1022
|
-
return o.containers = d.map(function(
|
|
1023
|
-
return typeof
|
|
998
|
+
updateContainerElements: function(u) {
|
|
999
|
+
var d = [].concat(u).filter(Boolean);
|
|
1000
|
+
return o.containers = d.map(function(m) {
|
|
1001
|
+
return typeof m == "string" ? a.querySelector(m) : m;
|
|
1024
1002
|
}), o.active && x(), H(), this;
|
|
1025
1003
|
}
|
|
1026
|
-
},
|
|
1027
|
-
_isManuallyPaused: {
|
|
1028
|
-
value: function() {
|
|
1029
|
-
return o.manuallyPaused;
|
|
1030
|
-
}
|
|
1031
|
-
},
|
|
1032
|
-
_setPausedState: {
|
|
1033
|
-
value: function(l, d) {
|
|
1034
|
-
if (o.paused === l)
|
|
1035
|
-
return this;
|
|
1036
|
-
if (o.paused = l, l) {
|
|
1037
|
-
var y = g(d, "onPause"), v = g(d, "onPostPause");
|
|
1038
|
-
y == null || y(), C(), H(), v == null || v();
|
|
1039
|
-
} else {
|
|
1040
|
-
var w = g(d, "onUnpause"), b = g(d, "onPostUnpause");
|
|
1041
|
-
w == null || w(), x(), q(), H(), b == null || b();
|
|
1042
|
-
}
|
|
1043
|
-
return this;
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
}), f.updateContainerElements(t), f;
|
|
1004
|
+
}, f.updateContainerElements(t), f;
|
|
1047
1005
|
};
|
|
1048
1006
|
/*!
|
|
1049
1007
|
* focus-trap-vue v4.0.2
|
|
1050
1008
|
* (c) 2023 Eduardo San Martin Morote
|
|
1051
1009
|
* @license MIT
|
|
1052
1010
|
*/
|
|
1053
|
-
const
|
|
1011
|
+
const Zr = {
|
|
1054
1012
|
escapeDeactivates: {
|
|
1055
1013
|
type: Boolean,
|
|
1056
1014
|
default: !0
|
|
@@ -1076,14 +1034,14 @@ const Gr = {
|
|
|
1076
1034
|
preventScroll: Boolean,
|
|
1077
1035
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1078
1036
|
tabbableOptions: Object
|
|
1079
|
-
},
|
|
1037
|
+
}, Kr = Q({
|
|
1080
1038
|
props: Object.assign({
|
|
1081
1039
|
active: {
|
|
1082
1040
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
1083
1041
|
type: Boolean,
|
|
1084
1042
|
default: !0
|
|
1085
1043
|
}
|
|
1086
|
-
},
|
|
1044
|
+
}, Zr),
|
|
1087
1045
|
emits: [
|
|
1088
1046
|
"update:active",
|
|
1089
1047
|
"activate",
|
|
@@ -1096,12 +1054,12 @@ const Gr = {
|
|
|
1096
1054
|
},
|
|
1097
1055
|
setup(n, { slots: t, emit: r }) {
|
|
1098
1056
|
let a;
|
|
1099
|
-
const s = J(null),
|
|
1057
|
+
const s = J(null), l = T(() => {
|
|
1100
1058
|
const f = s.value;
|
|
1101
1059
|
return f && (f instanceof HTMLElement ? f : f.$el);
|
|
1102
1060
|
});
|
|
1103
1061
|
function o() {
|
|
1104
|
-
return a || (a =
|
|
1062
|
+
return a || (a = jr(l.value, {
|
|
1105
1063
|
escapeDeactivates: n.escapeDeactivates,
|
|
1106
1064
|
allowOutsideClick: n.allowOutsideClick,
|
|
1107
1065
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -1123,7 +1081,7 @@ const Gr = {
|
|
|
1123
1081
|
}
|
|
1124
1082
|
return Je(() => {
|
|
1125
1083
|
Fe(() => n.active, (f) => {
|
|
1126
|
-
f &&
|
|
1084
|
+
f && l.value ? o().activate() : a && (a.deactivate(), (!l.value || l.value.nodeType === Node.COMMENT_NODE) && (a = null));
|
|
1127
1085
|
}, { immediate: !0, flush: "post" });
|
|
1128
1086
|
}), gn(() => {
|
|
1129
1087
|
a && a.deactivate(), a = null;
|
|
@@ -1156,15 +1114,15 @@ function Qt() {
|
|
|
1156
1114
|
};
|
|
1157
1115
|
}
|
|
1158
1116
|
var Ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1159
|
-
function
|
|
1117
|
+
function Hr(n) {
|
|
1160
1118
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1161
1119
|
}
|
|
1162
1120
|
var Xe = { exports: {} };
|
|
1163
1121
|
Xe.exports;
|
|
1164
1122
|
(function(n, t) {
|
|
1165
|
-
var r = 200, a = "__lodash_hash_undefined__", s = 9007199254740991,
|
|
1166
|
-
|
|
1167
|
-
var
|
|
1123
|
+
var r = 200, a = "__lodash_hash_undefined__", s = 9007199254740991, l = "[object Arguments]", o = "[object Array]", f = "[object Boolean]", g = "[object Date]", E = "[object Error]", F = "[object Function]", A = "[object GeneratorFunction]", x = "[object Map]", L = "[object Number]", S = "[object Object]", Z = "[object Promise]", M = "[object RegExp]", B = "[object Set]", re = "[object String]", ie = "[object Symbol]", te = "[object WeakMap]", oe = "[object ArrayBuffer]", V = "[object DataView]", q = "[object Float32Array]", C = "[object Float64Array]", K = "[object Int8Array]", z = "[object Int16Array]", H = "[object Int32Array]", N = "[object Uint8Array]", u = "[object Uint8ClampedArray]", d = "[object Uint16Array]", m = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, w = /\w*$/, p = /^\[object .+?Constructor\]$/, O = /^(?:0|[1-9]\d*)$/, y = {};
|
|
1124
|
+
y[l] = y[o] = y[oe] = y[V] = y[f] = y[g] = y[q] = y[C] = y[K] = y[z] = y[H] = y[x] = y[L] = y[S] = y[M] = y[B] = y[re] = y[ie] = y[N] = y[u] = y[d] = y[m] = !0, y[E] = y[F] = y[te] = !1;
|
|
1125
|
+
var R = typeof Ze == "object" && Ze && Ze.Object === Object && Ze, P = typeof self == "object" && self && self.Object === Object && self, W = R || P || Function("return this")(), ae = t && !t.nodeType && t, le = ae && !0 && n && !n.nodeType && n, De = le && le.exports === ae;
|
|
1168
1126
|
function Se(e, i) {
|
|
1169
1127
|
return e.set(i[0], i[1]), e;
|
|
1170
1128
|
}
|
|
@@ -1181,7 +1139,7 @@ Xe.exports;
|
|
|
1181
1139
|
e[j + c] = i[c];
|
|
1182
1140
|
return e;
|
|
1183
1141
|
}
|
|
1184
|
-
function
|
|
1142
|
+
function bt(e, i, c, h) {
|
|
1185
1143
|
for (var j = -1, X = e ? e.length : 0; ++j < X; )
|
|
1186
1144
|
c = i(c, e[j], j, e);
|
|
1187
1145
|
return c;
|
|
@@ -1194,7 +1152,7 @@ Xe.exports;
|
|
|
1194
1152
|
function na(e, i) {
|
|
1195
1153
|
return e == null ? void 0 : e[i];
|
|
1196
1154
|
}
|
|
1197
|
-
function
|
|
1155
|
+
function pt(e) {
|
|
1198
1156
|
var i = !1;
|
|
1199
1157
|
if (e != null && typeof e.toString != "function")
|
|
1200
1158
|
try {
|
|
@@ -1203,7 +1161,7 @@ Xe.exports;
|
|
|
1203
1161
|
}
|
|
1204
1162
|
return i;
|
|
1205
1163
|
}
|
|
1206
|
-
function
|
|
1164
|
+
function ht(e) {
|
|
1207
1165
|
var i = -1, c = Array(e.size);
|
|
1208
1166
|
return e.forEach(function(h, j) {
|
|
1209
1167
|
c[++i] = [j, h];
|
|
@@ -1214,18 +1172,18 @@ Xe.exports;
|
|
|
1214
1172
|
return e(i(c));
|
|
1215
1173
|
};
|
|
1216
1174
|
}
|
|
1217
|
-
function
|
|
1175
|
+
function mt(e) {
|
|
1218
1176
|
var i = -1, c = Array(e.size);
|
|
1219
1177
|
return e.forEach(function(h) {
|
|
1220
1178
|
c[++i] = h;
|
|
1221
1179
|
}), c;
|
|
1222
1180
|
}
|
|
1223
|
-
var ra = Array.prototype, ia = Function.prototype, Re = Object.prototype, et =
|
|
1181
|
+
var ra = Array.prototype, ia = Function.prototype, Re = Object.prototype, et = W["__core-js_shared__"], gt = function() {
|
|
1224
1182
|
var e = /[^.]+$/.exec(et && et.keys && et.keys.IE_PROTO || "");
|
|
1225
1183
|
return e ? "Symbol(src)_1." + e : "";
|
|
1226
|
-
}(),
|
|
1227
|
-
"^" +
|
|
1228
|
-
),
|
|
1184
|
+
}(), yt = ia.toString, ue = Re.hasOwnProperty, xe = Re.toString, oa = RegExp(
|
|
1185
|
+
"^" + yt.call(ue).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1186
|
+
), wt = De ? W.Buffer : void 0, kt = W.Symbol, Tt = W.Uint8Array, sa = Qe(Object.getPrototypeOf, Object), ca = Object.create, la = Re.propertyIsEnumerable, ua = ra.splice, _t = Object.getOwnPropertySymbols, da = wt ? wt.isBuffer : void 0, fa = Qe(Object.keys, Object), tt = ke(W, "DataView"), Oe = ke(W, "Map"), at = ke(W, "Promise"), nt = ke(W, "Set"), rt = ke(W, "WeakMap"), $e = ke(Object, "create"), va = ve(tt), ba = ve(Oe), pa = ve(at), ha = ve(nt), ma = ve(rt), St = kt ? kt.prototype : void 0, It = St ? St.valueOf : void 0;
|
|
1229
1187
|
function de(e) {
|
|
1230
1188
|
var i = -1, c = e ? e.length : 0;
|
|
1231
1189
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1251,11 +1209,11 @@ Xe.exports;
|
|
|
1251
1209
|
var i = this.__data__;
|
|
1252
1210
|
return $e ? i[e] !== void 0 : ue.call(i, e);
|
|
1253
1211
|
}
|
|
1254
|
-
function
|
|
1212
|
+
function Ta(e, i) {
|
|
1255
1213
|
var c = this.__data__;
|
|
1256
1214
|
return c[e] = $e && i === void 0 ? a : i, this;
|
|
1257
1215
|
}
|
|
1258
|
-
de.prototype.clear = ga, de.prototype.delete = ya, de.prototype.get = wa, de.prototype.has = ka, de.prototype.set =
|
|
1216
|
+
de.prototype.clear = ga, de.prototype.delete = ya, de.prototype.get = wa, de.prototype.has = ka, de.prototype.set = Ta;
|
|
1259
1217
|
function se(e) {
|
|
1260
1218
|
var i = -1, c = e ? e.length : 0;
|
|
1261
1219
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1263,7 +1221,7 @@ Xe.exports;
|
|
|
1263
1221
|
this.set(h[0], h[1]);
|
|
1264
1222
|
}
|
|
1265
1223
|
}
|
|
1266
|
-
function
|
|
1224
|
+
function _a() {
|
|
1267
1225
|
this.__data__ = [];
|
|
1268
1226
|
}
|
|
1269
1227
|
function Sa(e) {
|
|
@@ -1284,7 +1242,7 @@ Xe.exports;
|
|
|
1284
1242
|
var c = this.__data__, h = Be(c, e);
|
|
1285
1243
|
return h < 0 ? c.push([e, i]) : c[h][1] = i, this;
|
|
1286
1244
|
}
|
|
1287
|
-
se.prototype.clear =
|
|
1245
|
+
se.prototype.clear = _a, se.prototype.delete = Sa, se.prototype.get = Ia, se.prototype.has = Oa, se.prototype.set = $a;
|
|
1288
1246
|
function ye(e) {
|
|
1289
1247
|
var i = -1, c = e ? e.length : 0;
|
|
1290
1248
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1302,16 +1260,16 @@ Xe.exports;
|
|
|
1302
1260
|
function Ea(e) {
|
|
1303
1261
|
return Le(this, e).delete(e);
|
|
1304
1262
|
}
|
|
1305
|
-
function
|
|
1263
|
+
function Na(e) {
|
|
1306
1264
|
return Le(this, e).get(e);
|
|
1307
1265
|
}
|
|
1308
|
-
function
|
|
1266
|
+
function Aa(e) {
|
|
1309
1267
|
return Le(this, e).has(e);
|
|
1310
1268
|
}
|
|
1311
1269
|
function Fa(e, i) {
|
|
1312
1270
|
return Le(this, e).set(e, i), this;
|
|
1313
1271
|
}
|
|
1314
|
-
ye.prototype.clear = Ca, ye.prototype.delete = Ea, ye.prototype.get =
|
|
1272
|
+
ye.prototype.clear = Ca, ye.prototype.delete = Ea, ye.prototype.get = Na, ye.prototype.has = Aa, ye.prototype.set = Fa;
|
|
1315
1273
|
function we(e) {
|
|
1316
1274
|
this.__data__ = new se(e);
|
|
1317
1275
|
}
|
|
@@ -1338,13 +1296,13 @@ Xe.exports;
|
|
|
1338
1296
|
return c.set(e, i), this;
|
|
1339
1297
|
}
|
|
1340
1298
|
we.prototype.clear = Da, we.prototype.delete = Ra, we.prototype.get = xa, we.prototype.has = Ba, we.prototype.set = La;
|
|
1341
|
-
function
|
|
1299
|
+
function Pa(e, i) {
|
|
1342
1300
|
var c = st(e) || ln(e) ? aa(e.length, String) : [], h = c.length, j = !!h;
|
|
1343
1301
|
for (var X in e)
|
|
1344
1302
|
ue.call(e, X) && !(j && (X == "length" || rn(X, h))) && c.push(X);
|
|
1345
1303
|
return c;
|
|
1346
1304
|
}
|
|
1347
|
-
function
|
|
1305
|
+
function Ot(e, i, c) {
|
|
1348
1306
|
var h = e[i];
|
|
1349
1307
|
(!(ue.call(e, i) && Nt(h, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1350
1308
|
}
|
|
@@ -1354,46 +1312,46 @@ Xe.exports;
|
|
|
1354
1312
|
return c;
|
|
1355
1313
|
return -1;
|
|
1356
1314
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return e &&
|
|
1315
|
+
function Ma(e, i) {
|
|
1316
|
+
return e && $t(i, ct(i), e);
|
|
1359
1317
|
}
|
|
1360
1318
|
function it(e, i, c, h, j, X, ce) {
|
|
1361
1319
|
var Y;
|
|
1362
1320
|
if (h && (Y = X ? h(e, j, X, ce) : h(e)), Y !== void 0)
|
|
1363
1321
|
return Y;
|
|
1364
|
-
if (!
|
|
1322
|
+
if (!Pe(e))
|
|
1365
1323
|
return e;
|
|
1366
|
-
var
|
|
1367
|
-
if (
|
|
1324
|
+
var Dt = st(e);
|
|
1325
|
+
if (Dt) {
|
|
1368
1326
|
if (Y = tn(e), !i)
|
|
1369
1327
|
return Ja(e, Y);
|
|
1370
1328
|
} else {
|
|
1371
|
-
var
|
|
1329
|
+
var Te = fe(e), Rt = Te == F || Te == A;
|
|
1372
1330
|
if (dn(e))
|
|
1373
|
-
return
|
|
1374
|
-
if (
|
|
1375
|
-
if (
|
|
1331
|
+
return za(e, i);
|
|
1332
|
+
if (Te == S || Te == l || Rt && !X) {
|
|
1333
|
+
if (pt(e))
|
|
1376
1334
|
return X ? e : {};
|
|
1377
|
-
if (Y = an(
|
|
1378
|
-
return Qa(e,
|
|
1335
|
+
if (Y = an(Rt ? {} : e), !i)
|
|
1336
|
+
return Qa(e, Ma(Y, e));
|
|
1379
1337
|
} else {
|
|
1380
|
-
if (!
|
|
1338
|
+
if (!y[Te])
|
|
1381
1339
|
return X ? e : {};
|
|
1382
|
-
Y = nn(e,
|
|
1340
|
+
Y = nn(e, Te, it, i);
|
|
1383
1341
|
}
|
|
1384
1342
|
}
|
|
1385
1343
|
ce || (ce = new we());
|
|
1386
|
-
var
|
|
1387
|
-
if (
|
|
1388
|
-
return
|
|
1389
|
-
if (ce.set(e, Y), !
|
|
1390
|
-
var
|
|
1391
|
-
return ea(
|
|
1392
|
-
|
|
1344
|
+
var xt = ce.get(e);
|
|
1345
|
+
if (xt)
|
|
1346
|
+
return xt;
|
|
1347
|
+
if (ce.set(e, Y), !Dt)
|
|
1348
|
+
var Bt = c ? en(e) : ct(e);
|
|
1349
|
+
return ea(Bt || e, function(lt, Me) {
|
|
1350
|
+
Bt && (Me = lt, lt = e[Me]), Ot(Y, Me, it(lt, i, c, h, Me, e, ce));
|
|
1393
1351
|
}), Y;
|
|
1394
1352
|
}
|
|
1395
1353
|
function ja(e) {
|
|
1396
|
-
return
|
|
1354
|
+
return Pe(e) ? ca(e) : {};
|
|
1397
1355
|
}
|
|
1398
1356
|
function Za(e, i, c) {
|
|
1399
1357
|
var h = i(e);
|
|
@@ -1403,20 +1361,20 @@ Xe.exports;
|
|
|
1403
1361
|
return xe.call(e);
|
|
1404
1362
|
}
|
|
1405
1363
|
function Ha(e) {
|
|
1406
|
-
if (!
|
|
1364
|
+
if (!Pe(e) || sn(e))
|
|
1407
1365
|
return !1;
|
|
1408
|
-
var i =
|
|
1366
|
+
var i = Ft(e) || pt(e) ? oa : p;
|
|
1409
1367
|
return i.test(ve(e));
|
|
1410
1368
|
}
|
|
1411
|
-
function
|
|
1412
|
-
if (!
|
|
1369
|
+
function Ua(e) {
|
|
1370
|
+
if (!Et(e))
|
|
1413
1371
|
return fa(e);
|
|
1414
1372
|
var i = [];
|
|
1415
1373
|
for (var c in Object(e))
|
|
1416
1374
|
ue.call(e, c) && c != "constructor" && i.push(c);
|
|
1417
1375
|
return i;
|
|
1418
1376
|
}
|
|
1419
|
-
function
|
|
1377
|
+
function za(e, i) {
|
|
1420
1378
|
if (i)
|
|
1421
1379
|
return e.slice();
|
|
1422
1380
|
var c = new e.constructor(e.length);
|
|
@@ -1426,24 +1384,24 @@ Xe.exports;
|
|
|
1426
1384
|
var i = new e.constructor(e.byteLength);
|
|
1427
1385
|
return new Tt(i).set(new Tt(e)), i;
|
|
1428
1386
|
}
|
|
1429
|
-
function
|
|
1387
|
+
function Wa(e, i) {
|
|
1430
1388
|
var c = i ? ot(e.buffer) : e.buffer;
|
|
1431
1389
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1432
1390
|
}
|
|
1433
|
-
function
|
|
1434
|
-
var h = i ? c(
|
|
1435
|
-
return
|
|
1391
|
+
function Ga(e, i, c) {
|
|
1392
|
+
var h = i ? c(ht(e), !0) : ht(e);
|
|
1393
|
+
return bt(h, Se, new e.constructor());
|
|
1436
1394
|
}
|
|
1437
1395
|
function Va(e) {
|
|
1438
1396
|
var i = new e.constructor(e.source, w.exec(e));
|
|
1439
1397
|
return i.lastIndex = e.lastIndex, i;
|
|
1440
1398
|
}
|
|
1441
1399
|
function qa(e, i, c) {
|
|
1442
|
-
var h = i ? c(
|
|
1443
|
-
return
|
|
1400
|
+
var h = i ? c(mt(e), !0) : mt(e);
|
|
1401
|
+
return bt(h, Ie, new e.constructor());
|
|
1444
1402
|
}
|
|
1445
1403
|
function Xa(e) {
|
|
1446
|
-
return
|
|
1404
|
+
return It ? Object(It.call(e)) : {};
|
|
1447
1405
|
}
|
|
1448
1406
|
function Ya(e, i) {
|
|
1449
1407
|
var c = i ? ot(e.buffer) : e.buffer;
|
|
@@ -1455,19 +1413,19 @@ Xe.exports;
|
|
|
1455
1413
|
i[c] = e[c];
|
|
1456
1414
|
return i;
|
|
1457
1415
|
}
|
|
1458
|
-
function
|
|
1416
|
+
function $t(e, i, c, h) {
|
|
1459
1417
|
c || (c = {});
|
|
1460
1418
|
for (var j = -1, X = i.length; ++j < X; ) {
|
|
1461
1419
|
var ce = i[j], Y = void 0;
|
|
1462
|
-
|
|
1420
|
+
Ot(c, ce, Y === void 0 ? e[ce] : Y);
|
|
1463
1421
|
}
|
|
1464
1422
|
return c;
|
|
1465
1423
|
}
|
|
1466
1424
|
function Qa(e, i) {
|
|
1467
|
-
return
|
|
1425
|
+
return $t(e, Ct(e), i);
|
|
1468
1426
|
}
|
|
1469
1427
|
function en(e) {
|
|
1470
|
-
return Za(e, ct,
|
|
1428
|
+
return Za(e, ct, Ct);
|
|
1471
1429
|
}
|
|
1472
1430
|
function Le(e, i) {
|
|
1473
1431
|
var c = e.__data__;
|
|
@@ -1477,9 +1435,9 @@ Xe.exports;
|
|
|
1477
1435
|
var c = na(e, i);
|
|
1478
1436
|
return Ha(c) ? c : void 0;
|
|
1479
1437
|
}
|
|
1480
|
-
var
|
|
1438
|
+
var Ct = _t ? Qe(_t, Object) : bn, fe = Ka;
|
|
1481
1439
|
(tt && fe(new tt(new ArrayBuffer(1))) != V || Oe && fe(new Oe()) != x || at && fe(at.resolve()) != Z || nt && fe(new nt()) != B || rt && fe(new rt()) != te) && (fe = function(e) {
|
|
1482
|
-
var i = xe.call(e), c = i ==
|
|
1440
|
+
var i = xe.call(e), c = i == S ? e.constructor : void 0, h = c ? ve(c) : void 0;
|
|
1483
1441
|
if (h)
|
|
1484
1442
|
switch (h) {
|
|
1485
1443
|
case va:
|
|
@@ -1500,7 +1458,7 @@ Xe.exports;
|
|
|
1500
1458
|
return i && typeof e[0] == "string" && ue.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1501
1459
|
}
|
|
1502
1460
|
function an(e) {
|
|
1503
|
-
return typeof e.constructor == "function" && !
|
|
1461
|
+
return typeof e.constructor == "function" && !Et(e) ? ja(sa(e)) : {};
|
|
1504
1462
|
}
|
|
1505
1463
|
function nn(e, i, c, h) {
|
|
1506
1464
|
var j = e.constructor;
|
|
@@ -1511,23 +1469,23 @@ Xe.exports;
|
|
|
1511
1469
|
case g:
|
|
1512
1470
|
return new j(+e);
|
|
1513
1471
|
case V:
|
|
1514
|
-
return
|
|
1472
|
+
return Wa(e, h);
|
|
1515
1473
|
case q:
|
|
1516
1474
|
case C:
|
|
1517
1475
|
case K:
|
|
1518
|
-
case
|
|
1476
|
+
case z:
|
|
1519
1477
|
case H:
|
|
1520
|
-
case
|
|
1521
|
-
case
|
|
1478
|
+
case N:
|
|
1479
|
+
case u:
|
|
1522
1480
|
case d:
|
|
1523
|
-
case
|
|
1481
|
+
case m:
|
|
1524
1482
|
return Ya(e, h);
|
|
1525
1483
|
case x:
|
|
1526
|
-
return
|
|
1484
|
+
return Ga(e, h, c);
|
|
1527
1485
|
case L:
|
|
1528
1486
|
case re:
|
|
1529
1487
|
return new j(e);
|
|
1530
|
-
case
|
|
1488
|
+
case M:
|
|
1531
1489
|
return Va(e);
|
|
1532
1490
|
case B:
|
|
1533
1491
|
return qa(e, h, c);
|
|
@@ -1536,23 +1494,23 @@ Xe.exports;
|
|
|
1536
1494
|
}
|
|
1537
1495
|
}
|
|
1538
1496
|
function rn(e, i) {
|
|
1539
|
-
return i = i ?? s, !!i && (typeof e == "number" ||
|
|
1497
|
+
return i = i ?? s, !!i && (typeof e == "number" || O.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1540
1498
|
}
|
|
1541
1499
|
function on(e) {
|
|
1542
1500
|
var i = typeof e;
|
|
1543
1501
|
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1544
1502
|
}
|
|
1545
1503
|
function sn(e) {
|
|
1546
|
-
return !!
|
|
1504
|
+
return !!gt && gt in e;
|
|
1547
1505
|
}
|
|
1548
|
-
function
|
|
1506
|
+
function Et(e) {
|
|
1549
1507
|
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Re;
|
|
1550
1508
|
return e === c;
|
|
1551
1509
|
}
|
|
1552
1510
|
function ve(e) {
|
|
1553
1511
|
if (e != null) {
|
|
1554
1512
|
try {
|
|
1555
|
-
return
|
|
1513
|
+
return yt.call(e);
|
|
1556
1514
|
} catch {
|
|
1557
1515
|
}
|
|
1558
1516
|
try {
|
|
@@ -1569,24 +1527,24 @@ Xe.exports;
|
|
|
1569
1527
|
return e === i || e !== e && i !== i;
|
|
1570
1528
|
}
|
|
1571
1529
|
function ln(e) {
|
|
1572
|
-
return un(e) && ue.call(e, "callee") && (!la.call(e, "callee") || xe.call(e) ==
|
|
1530
|
+
return un(e) && ue.call(e, "callee") && (!la.call(e, "callee") || xe.call(e) == l);
|
|
1573
1531
|
}
|
|
1574
1532
|
var st = Array.isArray;
|
|
1575
|
-
function
|
|
1576
|
-
return e != null && fn(e.length) && !
|
|
1533
|
+
function At(e) {
|
|
1534
|
+
return e != null && fn(e.length) && !Ft(e);
|
|
1577
1535
|
}
|
|
1578
1536
|
function un(e) {
|
|
1579
|
-
return vn(e) &&
|
|
1537
|
+
return vn(e) && At(e);
|
|
1580
1538
|
}
|
|
1581
1539
|
var dn = da || pn;
|
|
1582
|
-
function
|
|
1583
|
-
var i =
|
|
1584
|
-
return i == F || i ==
|
|
1540
|
+
function Ft(e) {
|
|
1541
|
+
var i = Pe(e) ? xe.call(e) : "";
|
|
1542
|
+
return i == F || i == A;
|
|
1585
1543
|
}
|
|
1586
1544
|
function fn(e) {
|
|
1587
1545
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= s;
|
|
1588
1546
|
}
|
|
1589
|
-
function
|
|
1547
|
+
function Pe(e) {
|
|
1590
1548
|
var i = typeof e;
|
|
1591
1549
|
return !!e && (i == "object" || i == "function");
|
|
1592
1550
|
}
|
|
@@ -1594,7 +1552,7 @@ Xe.exports;
|
|
|
1594
1552
|
return !!e && typeof e == "object";
|
|
1595
1553
|
}
|
|
1596
1554
|
function ct(e) {
|
|
1597
|
-
return
|
|
1555
|
+
return At(e) ? Pa(e) : Ua(e);
|
|
1598
1556
|
}
|
|
1599
1557
|
function bn() {
|
|
1600
1558
|
return [];
|
|
@@ -1604,21 +1562,21 @@ Xe.exports;
|
|
|
1604
1562
|
}
|
|
1605
1563
|
n.exports = cn;
|
|
1606
1564
|
})(Xe, Xe.exports);
|
|
1607
|
-
var
|
|
1608
|
-
const
|
|
1565
|
+
var Ur = Xe.exports;
|
|
1566
|
+
const zr = /* @__PURE__ */ Hr(Ur), Wr = {
|
|
1609
1567
|
key: 0,
|
|
1610
1568
|
class: "sidebar-header"
|
|
1611
|
-
},
|
|
1569
|
+
}, Gr = { class: "sidebar-content-container" }, Vr = {
|
|
1612
1570
|
key: 0,
|
|
1613
1571
|
class: "sidebar-top"
|
|
1614
|
-
},
|
|
1572
|
+
}, qr = { "aria-label": "Main menu" }, Xr = ["id"], Yr = ["aria-labelledby"], Jr = {
|
|
1615
1573
|
key: 1,
|
|
1616
1574
|
class: "sidebar-level-divider",
|
|
1617
1575
|
role: "separator"
|
|
1618
|
-
},
|
|
1576
|
+
}, Qr = {
|
|
1619
1577
|
key: 2,
|
|
1620
1578
|
class: "level-primary bottom-items"
|
|
1621
|
-
},
|
|
1579
|
+
}, ei = { class: "sidebar-footer" }, Ke = "_ungrouped", ti = /* @__PURE__ */ Q({
|
|
1622
1580
|
__name: "AppSidebar",
|
|
1623
1581
|
props: {
|
|
1624
1582
|
topItems: {
|
|
@@ -1677,7 +1635,7 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
1677
1635
|
},
|
|
1678
1636
|
emits: ["click", "toggle"],
|
|
1679
1637
|
setup(n, { emit: t }) {
|
|
1680
|
-
|
|
1638
|
+
vt((b) => ({
|
|
1681
1639
|
"1f53ac1c": f.value.mobileHeight,
|
|
1682
1640
|
"0d30d46a": f.value.mobileTop,
|
|
1683
1641
|
"466d5076": n.zIndex,
|
|
@@ -1690,7 +1648,7 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
1690
1648
|
"455def3b": F.value.top,
|
|
1691
1649
|
"5668b4d2": F.value.zIndex
|
|
1692
1650
|
}));
|
|
1693
|
-
const r = t, a = n, s = Ye(),
|
|
1651
|
+
const r = t, a = n, s = Ye(), l = T(() => !!s.header), o = T(() => !!s.top), f = T(() => ({
|
|
1694
1652
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1695
1653
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1696
1654
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
@@ -1699,141 +1657,141 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
1699
1657
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1700
1658
|
minHeight: `${a.headerHeight}px`
|
|
1701
1659
|
})), E = T(() => ({
|
|
1702
|
-
marginTop:
|
|
1660
|
+
marginTop: l.value ? `${a.headerHeight}px` : "0"
|
|
1703
1661
|
})), F = T(() => ({
|
|
1704
1662
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1705
1663
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1706
|
-
})),
|
|
1707
|
-
var
|
|
1708
|
-
if (
|
|
1709
|
-
(!
|
|
1710
|
-
for (const
|
|
1711
|
-
|
|
1664
|
+
})), A = (b) => zr(b).map((p) => {
|
|
1665
|
+
var O, y, R;
|
|
1666
|
+
if (p) {
|
|
1667
|
+
(!p.key || !((O = p.key) != null && O.trim())) && (p.key = String(p.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!p.testId || !((y = p.testId) != null && y.trim())) && (p.testId = String(p.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1668
|
+
for (const P of p.items || [])
|
|
1669
|
+
P.parentKey = p.key, (!P.testId || !((R = P.testId) != null && R.trim())) && (P.testId = String(P.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1712
1670
|
}
|
|
1713
|
-
return
|
|
1714
|
-
}), x = T(() => a.topItems.length ?
|
|
1671
|
+
return p;
|
|
1672
|
+
}), x = T(() => a.topItems.length ? A(a.topItems) : []), L = T(() => a.bottomItems.length ? A(a.bottomItems) : []), S = (b = "") => b.trim().replace(" ", "").replace(/[^a-z0-9]+/gi, "-").toLowerCase(), Z = T(() => {
|
|
1715
1673
|
var w;
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1718
|
-
for (const
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1674
|
+
const b = /* @__PURE__ */ new Map();
|
|
1675
|
+
b.set(Ke, []);
|
|
1676
|
+
for (const p of x.value) {
|
|
1677
|
+
const O = p.group || Ke;
|
|
1678
|
+
b.has(O) || b.set(O, []), (w = b.get(O)) == null || w.push(p);
|
|
1721
1679
|
}
|
|
1722
|
-
return
|
|
1723
|
-
}),
|
|
1724
|
-
var w,
|
|
1725
|
-
|
|
1680
|
+
return b;
|
|
1681
|
+
}), M = J(a.open), B = (b) => {
|
|
1682
|
+
var w, p;
|
|
1683
|
+
M.value !== b && (M.value = b, r("toggle", b)), b ? (w = document == null ? void 0 : document.body) == null || w.classList.add("kong-ui-app-sidebar-open") : (p = document == null ? void 0 : document.body) == null || p.classList.remove("kong-ui-app-sidebar-open"), ie.value = !1;
|
|
1726
1684
|
}, re = () => {
|
|
1727
1685
|
a.mobileOverlayCloseOnClick && B(!1);
|
|
1728
|
-
}, ie = J(!1), te = (
|
|
1729
|
-
ie.value = !0, r("click",
|
|
1686
|
+
}, ie = J(!1), te = (b) => {
|
|
1687
|
+
ie.value = !0, r("click", b), setTimeout(() => {
|
|
1730
1688
|
B(!1);
|
|
1731
1689
|
}, a.mobileCloseDelay);
|
|
1732
1690
|
};
|
|
1733
|
-
Fe(() => a.open, (
|
|
1734
|
-
B(
|
|
1691
|
+
Fe(() => a.open, (b) => {
|
|
1692
|
+
B(b);
|
|
1735
1693
|
});
|
|
1736
1694
|
const { debounce: oe } = Qt(), V = oe(() => {
|
|
1737
|
-
|
|
1738
|
-
}, 200), q = J(), C = J(!1), K = J(),
|
|
1695
|
+
M.value && q.value !== (window == null ? void 0 : window.innerWidth) && (q.value = window == null ? void 0 : window.innerWidth, B(!1));
|
|
1696
|
+
}, 200), q = J(), C = J(!1), K = J(), z = () => {
|
|
1739
1697
|
C.value || (C.value = !0, clearTimeout(K.value), K.value = setTimeout(() => C.value = !1, 1300));
|
|
1740
|
-
}, H = J(null),
|
|
1741
|
-
var w,
|
|
1742
|
-
|
|
1698
|
+
}, H = J(null), N = T(() => M.value && a.mobileEnabled), u = async (b) => {
|
|
1699
|
+
var w, p;
|
|
1700
|
+
b ? (await Lt(), await new Promise((O) => setTimeout(O, 300)), (w = H.value) == null || w.activate()) : (p = H.value) == null || p.deactivate();
|
|
1743
1701
|
};
|
|
1744
|
-
Fe(
|
|
1745
|
-
|
|
1702
|
+
Fe(N, async (b) => {
|
|
1703
|
+
b ? await u(!0) : await u(!1);
|
|
1746
1704
|
}, { immediate: !0 });
|
|
1747
|
-
const d = J("0px"),
|
|
1748
|
-
var
|
|
1749
|
-
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((
|
|
1705
|
+
const d = J("0px"), m = () => {
|
|
1706
|
+
var P;
|
|
1707
|
+
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((P = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : P.platform)))
|
|
1750
1708
|
return;
|
|
1751
1709
|
const w = document.createElement("div");
|
|
1752
1710
|
w.style.visibility = "hidden", w.style.width = "100px", document.body.appendChild(w);
|
|
1753
|
-
const
|
|
1711
|
+
const p = w.offsetWidth;
|
|
1754
1712
|
w.style.overflow = "scroll";
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
w.parentNode && w.parentNode.removeChild(w),
|
|
1713
|
+
const O = document.createElement("div");
|
|
1714
|
+
O.style.width = "100%", w.appendChild(O);
|
|
1715
|
+
const y = O.offsetWidth;
|
|
1716
|
+
w.parentNode && w.parentNode.removeChild(w), p - y === 0 && (d.value = "8px");
|
|
1759
1717
|
};
|
|
1760
1718
|
return Je(async () => {
|
|
1761
|
-
q.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", V), window.addEventListener("resize",
|
|
1762
|
-
}),
|
|
1763
|
-
window.removeEventListener("resize", V), window.removeEventListener("resize",
|
|
1764
|
-
}), (
|
|
1765
|
-
|
|
1719
|
+
q.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", V), window.addEventListener("resize", z), await Lt(), m();
|
|
1720
|
+
}), zt(() => {
|
|
1721
|
+
window.removeEventListener("resize", V), window.removeEventListener("resize", z);
|
|
1722
|
+
}), (b, w) => (v(), k(be, null, [
|
|
1723
|
+
M.value && n.mobileOverlay && n.mobileEnabled ? (v(), k("div", {
|
|
1766
1724
|
key: 0,
|
|
1767
1725
|
class: "kong-ui-app-sidebar-overlay",
|
|
1768
1726
|
onClick: re
|
|
1769
|
-
})) :
|
|
1770
|
-
|
|
1727
|
+
})) : I("", !0),
|
|
1728
|
+
Ae(Wt(Kr), {
|
|
1771
1729
|
ref_key: "focusTrap",
|
|
1772
1730
|
ref: H,
|
|
1773
1731
|
active: !1,
|
|
1774
1732
|
"allow-outside-click": "",
|
|
1775
1733
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1776
1734
|
}, {
|
|
1777
|
-
default:
|
|
1735
|
+
default: D(() => [
|
|
1778
1736
|
$("aside", {
|
|
1779
1737
|
class: ne(["kong-ui-app-sidebar", {
|
|
1780
|
-
"sidebar-open":
|
|
1781
|
-
"no-sidebar-header": !
|
|
1782
|
-
"mobile-header-hidden": n.mobileEnabled && (!
|
|
1738
|
+
"sidebar-open": M.value,
|
|
1739
|
+
"no-sidebar-header": !l.value,
|
|
1740
|
+
"mobile-header-hidden": n.mobileEnabled && (!l.value || !n.mobileHeaderVisible),
|
|
1783
1741
|
"mobile-disabled": !n.mobileEnabled,
|
|
1784
1742
|
"disable-transitions": C.value
|
|
1785
1743
|
}]),
|
|
1786
1744
|
tabindex: "-1"
|
|
1787
1745
|
}, [
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
])) :
|
|
1791
|
-
$("div",
|
|
1792
|
-
o.value ? (
|
|
1793
|
-
|
|
1794
|
-
])) :
|
|
1795
|
-
$("nav",
|
|
1796
|
-
Z.value.size > 0 ? (
|
|
1797
|
-
|
|
1746
|
+
l.value ? (v(), k("div", Wr, [
|
|
1747
|
+
_(b.$slots, "header", {}, void 0, !0)
|
|
1748
|
+
])) : I("", !0),
|
|
1749
|
+
$("div", Gr, [
|
|
1750
|
+
o.value ? (v(), k("div", Vr, [
|
|
1751
|
+
_(b.$slots, "top", {}, void 0, !0)
|
|
1752
|
+
])) : I("", !0),
|
|
1753
|
+
$("nav", qr, [
|
|
1754
|
+
Z.value.size > 0 ? (v(!0), k(be, { key: 0 }, he(Z.value, ([p, O]) => (v(), k(be, { key: p }, [
|
|
1755
|
+
p !== Ke ? (v(), k("div", {
|
|
1798
1756
|
key: 0,
|
|
1799
|
-
id: `level-primary-group-${
|
|
1757
|
+
id: `level-primary-group-${S(p)}`,
|
|
1800
1758
|
class: "level-primary-group-name",
|
|
1801
1759
|
"data-testid": "level-primary-group-name",
|
|
1802
1760
|
role: "presentation"
|
|
1803
|
-
},
|
|
1761
|
+
}, G(p), 9, Xr)) : I("", !0),
|
|
1804
1762
|
$("ul", {
|
|
1805
|
-
"aria-labelledby":
|
|
1763
|
+
"aria-labelledby": p !== Ke ? `level-primary-group-${S(p)}` : void 0,
|
|
1806
1764
|
class: "level-primary top-items"
|
|
1807
1765
|
}, [
|
|
1808
|
-
(
|
|
1809
|
-
key:
|
|
1810
|
-
item:
|
|
1766
|
+
(v(!0), k(be, null, he(O, (y) => (v(), U(Pt, {
|
|
1767
|
+
key: y.name,
|
|
1768
|
+
item: y,
|
|
1811
1769
|
onClick: te
|
|
1812
1770
|
}, {
|
|
1813
|
-
[`sidebar-icon-${
|
|
1814
|
-
|
|
1771
|
+
[`sidebar-icon-${y.key}`]: D(() => [
|
|
1772
|
+
_(b.$slots, `sidebar-icon-${y.key}`, {}, void 0, !0)
|
|
1815
1773
|
]),
|
|
1816
1774
|
_: 2
|
|
1817
1775
|
}, 1032, ["item"]))), 128))
|
|
1818
|
-
], 8,
|
|
1819
|
-
], 64))), 128)) :
|
|
1820
|
-
Z.value.size > 0 && L.value.length ? (
|
|
1821
|
-
L.value.length ? (
|
|
1822
|
-
(
|
|
1823
|
-
key:
|
|
1824
|
-
item:
|
|
1776
|
+
], 8, Yr)
|
|
1777
|
+
], 64))), 128)) : I("", !0),
|
|
1778
|
+
Z.value.size > 0 && L.value.length ? (v(), k("div", Jr)) : I("", !0),
|
|
1779
|
+
L.value.length ? (v(), k("ul", Qr, [
|
|
1780
|
+
(v(!0), k(be, null, he(L.value, (p) => (v(), U(Pt, {
|
|
1781
|
+
key: p.name,
|
|
1782
|
+
item: p,
|
|
1825
1783
|
onClick: te
|
|
1826
1784
|
}, {
|
|
1827
|
-
[`sidebar-icon-${
|
|
1828
|
-
|
|
1785
|
+
[`sidebar-icon-${p.key}`]: D(() => [
|
|
1786
|
+
_(b.$slots, `sidebar-icon-${p.key}`, {}, void 0, !0)
|
|
1829
1787
|
]),
|
|
1830
1788
|
_: 2
|
|
1831
1789
|
}, 1032, ["item"]))), 128))
|
|
1832
|
-
])) :
|
|
1790
|
+
])) : I("", !0)
|
|
1833
1791
|
])
|
|
1834
1792
|
]),
|
|
1835
|
-
$("div",
|
|
1836
|
-
|
|
1793
|
+
$("div", ei, [
|
|
1794
|
+
_(b.$slots, "footer", {}, void 0, !0)
|
|
1837
1795
|
])
|
|
1838
1796
|
], 2)
|
|
1839
1797
|
]),
|
|
@@ -1841,7 +1799,7 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
1841
1799
|
}, 512)
|
|
1842
1800
|
], 64));
|
|
1843
1801
|
}
|
|
1844
|
-
}),
|
|
1802
|
+
}), ai = /* @__PURE__ */ ee(ti, [["__scopeId", "data-v-1e33f626"]]), ni = ["aria-label"], ri = /* @__PURE__ */ Q({
|
|
1845
1803
|
__name: "SidebarToggle",
|
|
1846
1804
|
props: {
|
|
1847
1805
|
active: {
|
|
@@ -1851,31 +1809,31 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
1851
1809
|
},
|
|
1852
1810
|
emits: ["toggle"],
|
|
1853
1811
|
setup(n, { emit: t }) {
|
|
1854
|
-
const r = t, a = n, s = J(a.active || !1),
|
|
1812
|
+
const r = t, a = n, s = J(a.active || !1), l = (o) => {
|
|
1855
1813
|
o.preventDefault(), s.value = !s.value, r("toggle", s.value);
|
|
1856
1814
|
};
|
|
1857
1815
|
return Fe(() => a.active, (o) => {
|
|
1858
1816
|
s.value = o;
|
|
1859
|
-
}), (o, f) => (
|
|
1817
|
+
}), (o, f) => (v(), k("a", {
|
|
1860
1818
|
"aria-haspopup": "true",
|
|
1861
1819
|
"aria-label": s.value ? "Close Main Menu" : "Open Main Menu",
|
|
1862
1820
|
class: ne(["sidebar-menu-toggle", { active: s.value }]),
|
|
1863
1821
|
href: "#",
|
|
1864
1822
|
role: "button",
|
|
1865
|
-
onClick: kn(
|
|
1823
|
+
onClick: kn(l, ["prevent"])
|
|
1866
1824
|
}, f[0] || (f[0] = [
|
|
1867
1825
|
$("span", { class: "line" }, null, -1),
|
|
1868
1826
|
$("span", { class: "line" }, null, -1),
|
|
1869
1827
|
$("span", { class: "line" }, null, -1)
|
|
1870
|
-
]), 10,
|
|
1828
|
+
]), 10, ni));
|
|
1871
1829
|
}
|
|
1872
|
-
}),
|
|
1830
|
+
}), ii = /* @__PURE__ */ ee(ri, [["__scopeId", "data-v-cbb41bbd"]]), oi = "#ffffff", si = "#000933", ci = "#000933", li = "#ffffff", ui = "0px", di = "4px", fi = { id: "kong-ui-app-layout-notification" }, vi = { class: "mobile-logo" }, bi = {
|
|
1873
1831
|
key: 0,
|
|
1874
1832
|
class: "navbar-logo"
|
|
1875
|
-
},
|
|
1833
|
+
}, pi = {
|
|
1876
1834
|
class: "kong-ui-app-layout-main",
|
|
1877
1835
|
"data-testid": "kong-ui-app-layout-main"
|
|
1878
|
-
},
|
|
1836
|
+
}, hi = { class: "kong-ui-app-layout-content" }, mi = { class: "kong-ui-app-layout-content-inner" }, gi = /* @__PURE__ */ Q({
|
|
1879
1837
|
__name: "AppLayout",
|
|
1880
1838
|
props: {
|
|
1881
1839
|
hideDefaultSlot: {
|
|
@@ -1912,14 +1870,14 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
1912
1870
|
},
|
|
1913
1871
|
emits: ["sidebar-click", "update:topOffset"],
|
|
1914
1872
|
setup(n, { emit: t }) {
|
|
1915
|
-
|
|
1873
|
+
vt((C) => ({
|
|
1916
1874
|
"2235c6e4": B.value,
|
|
1917
1875
|
"29d04344": re.value,
|
|
1918
|
-
"3d470f48":
|
|
1876
|
+
"3d470f48": M.value,
|
|
1919
1877
|
"81803d80": ie.value,
|
|
1920
1878
|
"64da7a33": te.value
|
|
1921
1879
|
}));
|
|
1922
|
-
const r = n, a = t, s = Ye(),
|
|
1880
|
+
const r = n, a = t, s = Ye(), l = He({
|
|
1923
1881
|
navbarLeft: T(() => !!s["navbar-left"]),
|
|
1924
1882
|
navbarCenter: T(() => !!s["navbar-center"]),
|
|
1925
1883
|
navbarRight: T(() => !!s["navbar-right"]),
|
|
@@ -1937,100 +1895,100 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
1937
1895
|
hidden: T(() => r.sidebarHidden)
|
|
1938
1896
|
}), E = (C) => {
|
|
1939
1897
|
a("sidebar-click", C);
|
|
1940
|
-
}, F = J(!1),
|
|
1898
|
+
}, F = J(!1), A = (C) => {
|
|
1941
1899
|
F.value = C;
|
|
1942
1900
|
};
|
|
1943
|
-
|
|
1944
|
-
F.value =
|
|
1901
|
+
Tn(() => {
|
|
1902
|
+
F.value = _n(g, "open").value || !1;
|
|
1945
1903
|
});
|
|
1946
|
-
const x = J(0), L = J(60),
|
|
1904
|
+
const x = J(0), L = J(60), S = J(0), Z = T(() => f.hidden ? S.value : L.value + S.value), M = T(() => r.theme === "light" ? ci : li), B = T(() => r.theme === "light" ? oi : si), re = T(() => r.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), ie = T(() => `${Z.value}px`), te = T(() => g.hidden || f.hidden ? ui : di), { debounce: oe } = Qt(), V = oe((C = !1) => {
|
|
1947
1905
|
if (C || x.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1948
1906
|
x.value = window == null ? void 0 : window.innerWidth;
|
|
1949
1907
|
const K = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1950
|
-
K && (
|
|
1908
|
+
K && (S.value = K.offsetHeight);
|
|
1951
1909
|
}
|
|
1952
1910
|
}, 200), q = J();
|
|
1953
|
-
return Fe(
|
|
1911
|
+
return Fe(S, (C) => {
|
|
1954
1912
|
a("update:topOffset", C || 0);
|
|
1955
1913
|
}, { immediate: !0 }), Je(() => {
|
|
1956
|
-
var K,
|
|
1957
|
-
(K = document == null ? void 0 : document.body) == null || K.classList.add("kong-ui-app-layout-body"), (
|
|
1914
|
+
var K, z;
|
|
1915
|
+
(K = document == null ? void 0 : document.body) == null || K.classList.add("kong-ui-app-layout-body"), (z = document == null ? void 0 : document.documentElement) == null || z.classList.add("kong-ui-app-layout-html"), x.value = window == null ? void 0 : window.innerWidth, V(!0);
|
|
1958
1916
|
const C = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1959
1917
|
C && (q.value = new ResizeObserver((H) => {
|
|
1960
1918
|
window.requestAnimationFrame(() => {
|
|
1961
1919
|
if (!(!Array.isArray(H) || !H.length))
|
|
1962
|
-
for (const
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1920
|
+
for (const N of H) {
|
|
1921
|
+
const u = N.contentRect.height;
|
|
1922
|
+
S.value !== u && (S.value = u);
|
|
1965
1923
|
}
|
|
1966
1924
|
});
|
|
1967
1925
|
}), q.value.observe(C)), window.addEventListener("resize", V);
|
|
1968
|
-
}),
|
|
1926
|
+
}), zt(() => {
|
|
1969
1927
|
q.value && q.value.disconnect(), window.removeEventListener("resize", V);
|
|
1970
|
-
}), (C, K) => (
|
|
1928
|
+
}), (C, K) => (v(), k("div", {
|
|
1971
1929
|
class: ne(["kong-ui-app-layout", [
|
|
1972
1930
|
{ "navbar-hidden": f.hidden },
|
|
1973
1931
|
{ "sidebar-hidden": g.hidden }
|
|
1974
1932
|
]])
|
|
1975
1933
|
}, [
|
|
1976
|
-
$("div",
|
|
1977
|
-
|
|
1934
|
+
$("div", fi, [
|
|
1935
|
+
_(C.$slots, "notification", {}, void 0, !0)
|
|
1978
1936
|
]),
|
|
1979
|
-
f.hidden ?
|
|
1937
|
+
f.hidden ? I("", !0) : (v(), U(nr, {
|
|
1980
1938
|
key: String(g.hidden),
|
|
1981
1939
|
"left-offset": g.hidden ? 0 : void 0,
|
|
1982
|
-
"top-offset":
|
|
1983
|
-
},
|
|
1984
|
-
"mobile-sidebar-toggle":
|
|
1985
|
-
g.hidden ?
|
|
1940
|
+
"top-offset": S.value
|
|
1941
|
+
}, ze({
|
|
1942
|
+
"mobile-sidebar-toggle": D(() => [
|
|
1943
|
+
g.hidden ? I("", !0) : (v(), U(ii, {
|
|
1986
1944
|
key: 0,
|
|
1987
1945
|
active: F.value,
|
|
1988
|
-
onToggle:
|
|
1946
|
+
onToggle: A
|
|
1989
1947
|
}, null, 8, ["active"]))
|
|
1990
1948
|
]),
|
|
1991
1949
|
_: 2
|
|
1992
1950
|
}, [
|
|
1993
|
-
|
|
1951
|
+
l.navbarMobileLogo ? {
|
|
1994
1952
|
name: "mobile-logo",
|
|
1995
|
-
fn:
|
|
1996
|
-
$("div",
|
|
1997
|
-
|
|
1953
|
+
fn: D(() => [
|
|
1954
|
+
$("div", vi, [
|
|
1955
|
+
_(C.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1998
1956
|
])
|
|
1999
1957
|
]),
|
|
2000
1958
|
key: "0"
|
|
2001
1959
|
} : void 0,
|
|
2002
|
-
|
|
1960
|
+
l.navbarLogo ? {
|
|
2003
1961
|
name: "logo",
|
|
2004
|
-
fn:
|
|
2005
|
-
g.hidden ? (
|
|
2006
|
-
|
|
2007
|
-
])) :
|
|
1962
|
+
fn: D(() => [
|
|
1963
|
+
g.hidden ? (v(), k("div", bi, [
|
|
1964
|
+
_(C.$slots, "navbar-logo", {}, void 0, !0)
|
|
1965
|
+
])) : I("", !0)
|
|
2008
1966
|
]),
|
|
2009
1967
|
key: "1"
|
|
2010
1968
|
} : void 0,
|
|
2011
|
-
|
|
1969
|
+
l.navbarLeft ? {
|
|
2012
1970
|
name: "left",
|
|
2013
|
-
fn:
|
|
2014
|
-
|
|
1971
|
+
fn: D(() => [
|
|
1972
|
+
_(C.$slots, "navbar-left", {}, void 0, !0)
|
|
2015
1973
|
]),
|
|
2016
1974
|
key: "2"
|
|
2017
1975
|
} : void 0,
|
|
2018
|
-
|
|
1976
|
+
l.navbarCenter ? {
|
|
2019
1977
|
name: "center",
|
|
2020
|
-
fn:
|
|
2021
|
-
|
|
1978
|
+
fn: D(() => [
|
|
1979
|
+
_(C.$slots, "navbar-center", {}, void 0, !0)
|
|
2022
1980
|
]),
|
|
2023
1981
|
key: "3"
|
|
2024
1982
|
} : void 0,
|
|
2025
|
-
|
|
1983
|
+
l.navbarRight ? {
|
|
2026
1984
|
name: "right",
|
|
2027
|
-
fn:
|
|
2028
|
-
|
|
1985
|
+
fn: D(() => [
|
|
1986
|
+
_(C.$slots, "navbar-right", {}, void 0, !0)
|
|
2029
1987
|
]),
|
|
2030
1988
|
key: "4"
|
|
2031
1989
|
} : void 0
|
|
2032
1990
|
]), 1032, ["left-offset", "top-offset"])),
|
|
2033
|
-
g.hidden ?
|
|
1991
|
+
g.hidden ? I("", !0) : (v(), U(ai, {
|
|
2034
1992
|
key: 1,
|
|
2035
1993
|
"bottom-items": g.bottomItems,
|
|
2036
1994
|
"header-height": L.value,
|
|
@@ -2039,70 +1997,70 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
2039
1997
|
"mobile-top-offset": Z.value,
|
|
2040
1998
|
open: F.value,
|
|
2041
1999
|
"top-items": g.topItems,
|
|
2042
|
-
"top-offset":
|
|
2000
|
+
"top-offset": S.value,
|
|
2043
2001
|
onClick: E,
|
|
2044
|
-
onToggle:
|
|
2045
|
-
},
|
|
2046
|
-
|
|
2002
|
+
onToggle: A
|
|
2003
|
+
}, ze({ _: 2 }, [
|
|
2004
|
+
l.sidebarHeader ? {
|
|
2047
2005
|
name: "header",
|
|
2048
|
-
fn:
|
|
2049
|
-
|
|
2006
|
+
fn: D(() => [
|
|
2007
|
+
_(C.$slots, "sidebar-header", {}, void 0, !0)
|
|
2050
2008
|
]),
|
|
2051
2009
|
key: "0"
|
|
2052
2010
|
} : void 0,
|
|
2053
|
-
|
|
2011
|
+
l.sidebarTop ? {
|
|
2054
2012
|
name: "top",
|
|
2055
|
-
fn:
|
|
2056
|
-
|
|
2013
|
+
fn: D(() => [
|
|
2014
|
+
_(C.$slots, "sidebar-top", {}, void 0, !0)
|
|
2057
2015
|
]),
|
|
2058
2016
|
key: "1"
|
|
2059
2017
|
} : void 0,
|
|
2060
|
-
|
|
2018
|
+
l.sidebarFooter ? {
|
|
2061
2019
|
name: "footer",
|
|
2062
|
-
fn:
|
|
2063
|
-
|
|
2020
|
+
fn: D(() => [
|
|
2021
|
+
_(C.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2064
2022
|
]),
|
|
2065
2023
|
key: "2"
|
|
2066
2024
|
} : void 0,
|
|
2067
|
-
he([...g.topItems || [], ...g.bottomItems || []], (
|
|
2068
|
-
name: `sidebar-icon-${
|
|
2069
|
-
fn:
|
|
2070
|
-
|
|
2025
|
+
he([...g.topItems || [], ...g.bottomItems || []], (z) => ({
|
|
2026
|
+
name: `sidebar-icon-${z.key}`,
|
|
2027
|
+
fn: D(() => [
|
|
2028
|
+
_(C.$slots, `sidebar-icon-${z.key}`, {}, void 0, !0)
|
|
2071
2029
|
])
|
|
2072
2030
|
}))
|
|
2073
2031
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2074
|
-
$("main",
|
|
2075
|
-
$("div",
|
|
2076
|
-
$("div",
|
|
2032
|
+
$("main", pi, [
|
|
2033
|
+
$("div", hi, [
|
|
2034
|
+
$("div", mi, [
|
|
2077
2035
|
K[0] || (K[0] = $("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2078
|
-
|
|
2079
|
-
o.value ?
|
|
2036
|
+
_(C.$slots, "app-error", {}, void 0, !0),
|
|
2037
|
+
o.value ? I("", !0) : _(C.$slots, "default", { key: 0 }, void 0, !0)
|
|
2080
2038
|
])
|
|
2081
2039
|
])
|
|
2082
2040
|
])
|
|
2083
2041
|
], 2));
|
|
2084
2042
|
}
|
|
2085
|
-
}),
|
|
2043
|
+
}), yi = /* @__PURE__ */ ee(gi, [["__scopeId", "data-v-8e8c270a"]]), wi = { class: "kong-ui-app-page-header" }, ki = {
|
|
2086
2044
|
key: 0,
|
|
2087
2045
|
class: "page-header-breadcrumbs",
|
|
2088
2046
|
"data-testid": "page-header-breadcrumbs"
|
|
2089
|
-
},
|
|
2047
|
+
}, Ti = { class: "page-header-title-section" }, _i = { class: "page-header-title-wrapper" }, Si = {
|
|
2090
2048
|
key: 0,
|
|
2091
2049
|
class: "page-header-title-before",
|
|
2092
2050
|
"data-testid": "page-header-title-before"
|
|
2093
|
-
},
|
|
2051
|
+
}, Ii = ["title"], Oi = {
|
|
2094
2052
|
key: 1,
|
|
2095
2053
|
class: "page-header-title-after",
|
|
2096
2054
|
"data-testid": "page-header-title-after"
|
|
2097
|
-
},
|
|
2055
|
+
}, $i = {
|
|
2098
2056
|
key: 0,
|
|
2099
2057
|
class: "page-header-actions",
|
|
2100
2058
|
"data-testid": "page-header-actions"
|
|
2101
|
-
},
|
|
2059
|
+
}, Ci = {
|
|
2102
2060
|
key: 1,
|
|
2103
2061
|
class: "page-header-section-below",
|
|
2104
2062
|
"data-testid": "page-header-section-below"
|
|
2105
|
-
},
|
|
2063
|
+
}, Ei = /* @__PURE__ */ Q({
|
|
2106
2064
|
__name: "AppPageHeader",
|
|
2107
2065
|
props: {
|
|
2108
2066
|
title: {
|
|
@@ -2117,58 +2075,58 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
2117
2075
|
},
|
|
2118
2076
|
setup(n) {
|
|
2119
2077
|
const t = n, r = Ye(), a = T(() => {
|
|
2120
|
-
var
|
|
2121
|
-
return !!((
|
|
2122
|
-
}), s = T(() => Object.keys(r).filter((
|
|
2123
|
-
return (
|
|
2078
|
+
var l;
|
|
2079
|
+
return !!((l = t.breadcrumbs) != null && l.length);
|
|
2080
|
+
}), s = T(() => Object.keys(r).filter((l) => l.startsWith("icon-")));
|
|
2081
|
+
return (l, o) => {
|
|
2124
2082
|
const f = me("KBreadcrumbs");
|
|
2125
|
-
return
|
|
2126
|
-
a.value ? (
|
|
2127
|
-
|
|
2083
|
+
return v(), k("div", wi, [
|
|
2084
|
+
a.value ? (v(), k("div", ki, [
|
|
2085
|
+
Ae(f, {
|
|
2128
2086
|
"item-max-width": "150",
|
|
2129
2087
|
items: n.breadcrumbs
|
|
2130
|
-
},
|
|
2088
|
+
}, ze({ _: 2 }, [
|
|
2131
2089
|
he(s.value, (g) => ({
|
|
2132
2090
|
name: g,
|
|
2133
|
-
fn:
|
|
2134
|
-
|
|
2091
|
+
fn: D(() => [
|
|
2092
|
+
_(l.$slots, g, {}, void 0, !0)
|
|
2135
2093
|
])
|
|
2136
2094
|
}))
|
|
2137
2095
|
]), 1032, ["items"])
|
|
2138
|
-
])) :
|
|
2139
|
-
$("div",
|
|
2140
|
-
$("div",
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
])) :
|
|
2096
|
+
])) : I("", !0),
|
|
2097
|
+
$("div", Ti, [
|
|
2098
|
+
$("div", _i, [
|
|
2099
|
+
l.$slots["title-before"] ? (v(), k("div", Si, [
|
|
2100
|
+
_(l.$slots, "title-before", {}, void 0, !0)
|
|
2101
|
+
])) : I("", !0),
|
|
2144
2102
|
$("h1", {
|
|
2145
2103
|
class: "page-header-title",
|
|
2146
2104
|
"data-testid": "page-header-title",
|
|
2147
2105
|
title: n.title
|
|
2148
|
-
},
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
])) :
|
|
2106
|
+
}, G(n.title), 9, Ii),
|
|
2107
|
+
l.$slots["title-after"] ? (v(), k("div", Oi, [
|
|
2108
|
+
_(l.$slots, "title-after", {}, void 0, !0)
|
|
2109
|
+
])) : I("", !0)
|
|
2152
2110
|
]),
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
])) :
|
|
2111
|
+
l.$slots.actions ? (v(), k("div", $i, [
|
|
2112
|
+
_(l.$slots, "actions", {}, void 0, !0)
|
|
2113
|
+
])) : I("", !0)
|
|
2156
2114
|
]),
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
])) :
|
|
2115
|
+
l.$slots.below ? (v(), k("div", Ci, [
|
|
2116
|
+
_(l.$slots, "below", {}, void 0, !0)
|
|
2117
|
+
])) : I("", !0)
|
|
2160
2118
|
]);
|
|
2161
2119
|
};
|
|
2162
2120
|
}
|
|
2163
|
-
}),
|
|
2121
|
+
}), ji = /* @__PURE__ */ ee(Ei, [["__scopeId", "data-v-204b7f98"]]), Ni = { class: "app-page-info-section-default-header" }, Ai = {
|
|
2164
2122
|
key: 1,
|
|
2165
2123
|
class: "app-page-info-section-description",
|
|
2166
2124
|
"data-testid": "app-page-info-section-description"
|
|
2167
|
-
},
|
|
2125
|
+
}, Fi = {
|
|
2168
2126
|
key: 0,
|
|
2169
2127
|
class: "app-page-info-section-content",
|
|
2170
2128
|
"data-testid": "app-page-info-section-content"
|
|
2171
|
-
},
|
|
2129
|
+
}, Di = /* @__PURE__ */ Q({
|
|
2172
2130
|
__name: "AppPageInfoSection",
|
|
2173
2131
|
props: {
|
|
2174
2132
|
collapsible: {
|
|
@@ -2190,62 +2148,62 @@ const Xr = /* @__PURE__ */ Vr(qr), Yr = {
|
|
|
2190
2148
|
}
|
|
2191
2149
|
},
|
|
2192
2150
|
setup(n) {
|
|
2193
|
-
return (t, r) => (
|
|
2151
|
+
return (t, r) => (v(), U(Ue(n.collapsible ? "details" : "div"), {
|
|
2194
2152
|
class: "app-page-info-section",
|
|
2195
2153
|
"data-testid": "app-page-info-section"
|
|
2196
2154
|
}, {
|
|
2197
|
-
default:
|
|
2198
|
-
(
|
|
2155
|
+
default: D(() => [
|
|
2156
|
+
(v(), U(Ue(n.collapsible ? "summary" : "div"), {
|
|
2199
2157
|
class: "app-page-info-section-header",
|
|
2200
2158
|
"data-testid": "app-page-info-section-header"
|
|
2201
2159
|
}, {
|
|
2202
|
-
default:
|
|
2203
|
-
|
|
2204
|
-
$("div",
|
|
2205
|
-
n.title ? (
|
|
2160
|
+
default: D(() => [
|
|
2161
|
+
_(t.$slots, "header", {}, () => [
|
|
2162
|
+
$("div", Ni, [
|
|
2163
|
+
n.title ? (v(), U(Ue(n.titleTag), {
|
|
2206
2164
|
key: 0,
|
|
2207
2165
|
class: "app-page-info-section-title",
|
|
2208
2166
|
"data-testid": "app-page-info-section-title"
|
|
2209
2167
|
}, {
|
|
2210
|
-
default:
|
|
2211
|
-
|
|
2168
|
+
default: D(() => [
|
|
2169
|
+
Ne(G(n.title), 1)
|
|
2212
2170
|
]),
|
|
2213
2171
|
_: 1
|
|
2214
|
-
})) :
|
|
2215
|
-
n.description ? (
|
|
2172
|
+
})) : I("", !0),
|
|
2173
|
+
n.description ? (v(), k("div", Ai, G(n.description), 1)) : I("", !0)
|
|
2216
2174
|
])
|
|
2217
2175
|
]),
|
|
2218
|
-
n.collapsible ? (
|
|
2176
|
+
n.collapsible ? (v(), U(Wt(Sn), {
|
|
2219
2177
|
key: 0,
|
|
2220
2178
|
class: "app-page-info-section-chevron-icon",
|
|
2221
2179
|
decorative: ""
|
|
2222
|
-
})) : t.$slots.actions ?
|
|
2180
|
+
})) : t.$slots.actions ? _(t.$slots, "actions", { key: 1 }) : I("", !0)
|
|
2223
2181
|
]),
|
|
2224
2182
|
_: 3
|
|
2225
2183
|
})),
|
|
2226
|
-
t.$slots.default ? (
|
|
2227
|
-
|
|
2228
|
-
])) :
|
|
2184
|
+
t.$slots.default ? (v(), k("div", Fi, [
|
|
2185
|
+
_(t.$slots, "default")
|
|
2186
|
+
])) : I("", !0)
|
|
2229
2187
|
]),
|
|
2230
2188
|
_: 3
|
|
2231
2189
|
}));
|
|
2232
2190
|
}
|
|
2233
|
-
}),
|
|
2191
|
+
}), Zi = /* @__PURE__ */ ee(Di, [["__scopeId", "data-v-62f17e32"]]), Ki = {
|
|
2234
2192
|
// Customize Vue plugin options as desired
|
|
2235
2193
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2236
2194
|
install: (n, t = {}) => {
|
|
2237
|
-
n.component(t.name || "AppLayout",
|
|
2195
|
+
n.component(t.name || "AppLayout", yi);
|
|
2238
2196
|
}
|
|
2239
2197
|
};
|
|
2240
2198
|
export {
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2199
|
+
Li as AccountDropdown,
|
|
2200
|
+
Pi as AppAboutSection,
|
|
2201
|
+
Mi as AppError,
|
|
2202
|
+
yi as AppLayout,
|
|
2245
2203
|
nr as AppNavbar,
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2204
|
+
ji as AppPageHeader,
|
|
2205
|
+
Zi as AppPageInfoSection,
|
|
2206
|
+
ai as AppSidebar,
|
|
2207
|
+
ii as SidebarToggle,
|
|
2208
|
+
Ki as default
|
|
2251
2209
|
};
|