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