@kong-ui-public/app-layout 2.1.5-pr.958.9b4c11a4.0 → 2.1.5
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 +552 -549
- package/dist/app-layout.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/components/AppLayout.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/dist/types/constants.d.ts +2 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/app-layout.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ee, resolveComponent as ce, openBlock as h, createBlock as Q, withCtx as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as ee, resolveComponent as ce, openBlock as h, createBlock as Q, withCtx as B, renderSlot as O, createElementBlock as m, Fragment as Oe, renderList as Ae, normalizeClass as re, createTextVNode as ct, toDisplayString as J, computed as g, createSlots as Me, createVNode as we, createCommentVNode as $, createElementVNode as _, createStaticVNode as yn, pushScopeId as ze, popScopeId as Ge, useCssVars as ut, useSlots as dt, reactive as Pe, onMounted as We, resolveDynamicComponent as _n, withKeys as wn, ref as G, watch as Ze, onUnmounted as Tn, Comment as kn, cloneVNode as Sn, unref as Rt, onBeforeUnmount as Vt, nextTick as In, withModifiers as Cn, watchEffect as On, toRef as $n } from "vue";
|
|
2
|
+
const An = /* @__PURE__ */ ee({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
5
5
|
options: {
|
|
@@ -26,16 +26,16 @@ const Cn = /* @__PURE__ */ ee({
|
|
|
26
26
|
"trigger-text": n.userInitials,
|
|
27
27
|
width: n.width
|
|
28
28
|
}, {
|
|
29
|
-
items:
|
|
29
|
+
items: B(({ handleSelection: d }) => [
|
|
30
30
|
O(t.$slots, "default", {}, () => [
|
|
31
|
-
(h(!0), m(
|
|
31
|
+
(h(!0), m(Oe, null, Ae(n.options, (o) => (h(), Q(r, {
|
|
32
32
|
key: o.value,
|
|
33
33
|
class: re({ "has-divider": o.hasDivider }),
|
|
34
34
|
"data-testid": "select-" + o.value,
|
|
35
35
|
"has-divider": o.hasDivider,
|
|
36
36
|
onClick: (v) => d(o)
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
38
|
+
default: B(() => [
|
|
39
39
|
O(t.$slots, "default", { option: o }, () => [
|
|
40
40
|
ct(J(o.label), 1)
|
|
41
41
|
], !0)
|
|
@@ -54,43 +54,43 @@ const te = (n, t) => {
|
|
|
54
54
|
for (const [r, l] of t)
|
|
55
55
|
a[r] = l;
|
|
56
56
|
return a;
|
|
57
|
-
},
|
|
57
|
+
}, Ui = /* @__PURE__ */ te(An, [["__scopeId", "data-v-2c485203"]]), Nn = {
|
|
58
58
|
class: "about-section-title",
|
|
59
59
|
"data-testid": "about-section-title"
|
|
60
|
-
},
|
|
60
|
+
}, En = { class: "about-section-header-end" }, xn = {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "about-section-timestamps-created",
|
|
63
63
|
"data-testid": "about-section-timestamps-created"
|
|
64
|
-
},
|
|
64
|
+
}, Fn = {
|
|
65
65
|
key: 1,
|
|
66
66
|
class: "about-section-timestamps-arrow"
|
|
67
|
-
},
|
|
67
|
+
}, Dn = {
|
|
68
68
|
key: 2,
|
|
69
69
|
class: "about-section-timestamps-modified",
|
|
70
70
|
"data-testid": "about-section-timestamps-modified"
|
|
71
|
-
},
|
|
71
|
+
}, Bn = {
|
|
72
72
|
key: 1,
|
|
73
73
|
class: "about-section-actions",
|
|
74
74
|
"data-testid": "about-section-actions"
|
|
75
|
-
},
|
|
75
|
+
}, Rn = {
|
|
76
76
|
key: 0,
|
|
77
77
|
"data-testid": "about-section-loading-skeleton"
|
|
78
|
-
},
|
|
78
|
+
}, Ln = { key: 1 }, Pn = {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "about-section-description",
|
|
81
81
|
"data-testid": "about-section-description"
|
|
82
|
-
},
|
|
82
|
+
}, Mn = {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: "about-section-content",
|
|
85
85
|
"data-testid": "about-section-content"
|
|
86
|
-
},
|
|
86
|
+
}, Zn = {
|
|
87
87
|
key: 2,
|
|
88
88
|
"data-testid": "about-divider-section-separator"
|
|
89
|
-
},
|
|
89
|
+
}, Kn = {
|
|
90
90
|
key: 3,
|
|
91
91
|
class: "about-divider-section",
|
|
92
92
|
"data-testid": "about-divider-section"
|
|
93
|
-
},
|
|
93
|
+
}, jn = /* @__PURE__ */ ee({
|
|
94
94
|
__name: "AppAboutSection",
|
|
95
95
|
props: {
|
|
96
96
|
title: {
|
|
@@ -126,9 +126,9 @@ const te = (n, t) => {
|
|
|
126
126
|
const t = n, a = g(() => !!t.modified && t.modified !== t.created);
|
|
127
127
|
return (r, l) => {
|
|
128
128
|
const d = ce("KSkeletonBox"), o = ce("KCard");
|
|
129
|
-
return h(), Q(o, { class: "kong-ui-app-about-section" },
|
|
130
|
-
body:
|
|
131
|
-
n.isLoading ? (h(), m("div",
|
|
129
|
+
return h(), Q(o, { class: "kong-ui-app-about-section" }, Me({
|
|
130
|
+
body: B(() => [
|
|
131
|
+
n.isLoading ? (h(), m("div", Rn, [
|
|
132
132
|
we(d, {
|
|
133
133
|
height: "2",
|
|
134
134
|
width: "100"
|
|
@@ -137,41 +137,41 @@ const te = (n, t) => {
|
|
|
137
137
|
height: "2",
|
|
138
138
|
width: "100"
|
|
139
139
|
})
|
|
140
|
-
])) : (h(), m("div",
|
|
141
|
-
n.description ? (h(), m("p",
|
|
142
|
-
r.$slots.default ? (h(), m("div",
|
|
140
|
+
])) : (h(), m("div", Ln, [
|
|
141
|
+
n.description ? (h(), m("p", Pn, J(n.description), 1)) : $("", !0),
|
|
142
|
+
r.$slots.default ? (h(), m("div", Mn, [
|
|
143
143
|
O(r.$slots, "default", {}, void 0, !0)
|
|
144
|
-
])) :
|
|
145
|
-
r.$slots["divider-section"] ? (h(), m("hr",
|
|
146
|
-
r.$slots["divider-section"] ? (h(), m("div",
|
|
144
|
+
])) : $("", !0),
|
|
145
|
+
r.$slots["divider-section"] ? (h(), m("hr", Zn)) : $("", !0),
|
|
146
|
+
r.$slots["divider-section"] ? (h(), m("div", Kn, [
|
|
147
147
|
O(r.$slots, "divider-section", {}, void 0, !0)
|
|
148
|
-
])) :
|
|
148
|
+
])) : $("", !0)
|
|
149
149
|
]))
|
|
150
150
|
]),
|
|
151
151
|
_: 2
|
|
152
152
|
}, [
|
|
153
153
|
n.title ? {
|
|
154
154
|
name: "title",
|
|
155
|
-
fn:
|
|
156
|
-
_("span",
|
|
155
|
+
fn: B(() => [
|
|
156
|
+
_("span", Nn, J(n.title), 1)
|
|
157
157
|
]),
|
|
158
158
|
key: "0"
|
|
159
159
|
} : void 0,
|
|
160
160
|
r.$slots.actions || n.created || n.modified ? {
|
|
161
161
|
name: "actions",
|
|
162
|
-
fn:
|
|
163
|
-
_("div",
|
|
162
|
+
fn: B(() => [
|
|
163
|
+
_("div", En, [
|
|
164
164
|
n.created || n.modified ? (h(), m("div", {
|
|
165
165
|
key: 0,
|
|
166
166
|
class: re(["about-section-timestamps", { "has-actions": r.$slots.actions }])
|
|
167
167
|
}, [
|
|
168
|
-
n.created ? (h(), m("span",
|
|
169
|
-
n.created && a.value ? (h(), m("span",
|
|
170
|
-
a.value ? (h(), m("span",
|
|
171
|
-
], 2)) :
|
|
172
|
-
r.$slots.actions ? (h(), m("div",
|
|
168
|
+
n.created ? (h(), m("span", xn, J(n.createdLabel) + ": " + J(n.created), 1)) : $("", !0),
|
|
169
|
+
n.created && a.value ? (h(), m("span", Fn, "->")) : $("", !0),
|
|
170
|
+
a.value ? (h(), m("span", Dn, J(n.modifiedLabel) + ": " + J(n.modified), 1)) : $("", !0)
|
|
171
|
+
], 2)) : $("", !0),
|
|
172
|
+
r.$slots.actions ? (h(), m("div", Bn, [
|
|
173
173
|
O(r.$slots, "actions", {}, void 0, !0)
|
|
174
|
-
])) :
|
|
174
|
+
])) : $("", !0)
|
|
175
175
|
])
|
|
176
176
|
]),
|
|
177
177
|
key: "1"
|
|
@@ -180,41 +180,41 @@ const te = (n, t) => {
|
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
|
-
const
|
|
183
|
+
const Vi = /* @__PURE__ */ te(jn, [["__scopeId", "data-v-f6ab802e"]]), Hn = {}, Un = {
|
|
184
184
|
fill: "none",
|
|
185
185
|
height: "130",
|
|
186
186
|
width: "130",
|
|
187
187
|
xmlns: "http://www.w3.org/2000/svg"
|
|
188
|
-
},
|
|
189
|
-
|
|
188
|
+
}, Vn = /* @__PURE__ */ yn('<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), zn = [
|
|
189
|
+
Vn
|
|
190
190
|
];
|
|
191
|
-
function
|
|
192
|
-
return h(), m("svg",
|
|
191
|
+
function Gn(n, t) {
|
|
192
|
+
return h(), m("svg", Un, zn);
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const Wn = /* @__PURE__ */ te(Hn, [["render", Gn]]), zt = (n) => (ze("data-v-5cbccc66"), n = n(), Ge(), n), qn = { class: "kong-ui-app-error" }, Xn = { class: "banana-icon" }, Yn = { class: "kong-ui-app-error-content" }, Jn = /* @__PURE__ */ zt(() => /* @__PURE__ */ _("h2", null, "An unexpected error has occurred", -1)), Qn = /* @__PURE__ */ zt(() => /* @__PURE__ */ _("p", null, [
|
|
195
195
|
/* @__PURE__ */ ct("Go back to the previous page or "),
|
|
196
196
|
/* @__PURE__ */ _("a", { href: "/" }, "return home"),
|
|
197
197
|
/* @__PURE__ */ ct(".")
|
|
198
|
-
], -1)),
|
|
198
|
+
], -1)), er = /* @__PURE__ */ ee({
|
|
199
199
|
__name: "AppError",
|
|
200
200
|
setup(n) {
|
|
201
|
-
return (t, a) => (h(), m("section",
|
|
202
|
-
_("div",
|
|
203
|
-
we(
|
|
201
|
+
return (t, a) => (h(), m("section", qn, [
|
|
202
|
+
_("div", Xn, [
|
|
203
|
+
we(Wn)
|
|
204
204
|
]),
|
|
205
|
-
_("div",
|
|
205
|
+
_("div", Yn, [
|
|
206
206
|
O(t.$slots, "default", {}, () => [
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
Jn,
|
|
208
|
+
Qn
|
|
209
209
|
], !0)
|
|
210
210
|
])
|
|
211
211
|
]));
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
|
-
const
|
|
214
|
+
const zi = /* @__PURE__ */ te(er, [["__scopeId", "data-v-5cbccc66"]]), tr = { class: "kong-ui-app-navbar" }, ar = { class: "header-content" }, nr = { class: "mobile-header-left" }, rr = {
|
|
215
215
|
key: 0,
|
|
216
216
|
class: "app-navbar-logo"
|
|
217
|
-
},
|
|
217
|
+
}, ir = { class: "navbar-content" }, or = { class: "navbar-content-left" }, sr = { class: "navbar-content-center" }, cr = { class: "navbar-content-right" }, lr = /* @__PURE__ */ ee({
|
|
218
218
|
__name: "AppNavbar",
|
|
219
219
|
props: {
|
|
220
220
|
topOffset: {
|
|
@@ -234,13 +234,13 @@ const Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { cl
|
|
|
234
234
|
setup(n) {
|
|
235
235
|
const t = n;
|
|
236
236
|
ut((o) => ({
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
|
|
237
|
+
"499e8aa4": d.value.top,
|
|
238
|
+
"73d2507f": d.value.zIndex,
|
|
239
|
+
ea3a5c64: d.value.left,
|
|
240
|
+
"892c48d4": l.marginRight,
|
|
241
|
+
"62e3e64e": l.width
|
|
242
242
|
}));
|
|
243
|
-
const a = dt(), r = g(() => !!a.logo), l =
|
|
243
|
+
const a = dt(), r = g(() => !!a.logo), l = Pe({
|
|
244
244
|
marginRight: "0",
|
|
245
245
|
width: "0"
|
|
246
246
|
});
|
|
@@ -253,23 +253,23 @@ const Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { cl
|
|
|
253
253
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
254
254
|
zIndex: t.zIndex
|
|
255
255
|
}));
|
|
256
|
-
return (o, v) => (h(), m("header",
|
|
257
|
-
_("div",
|
|
258
|
-
_("div",
|
|
256
|
+
return (o, v) => (h(), m("header", tr, [
|
|
257
|
+
_("div", ar, [
|
|
258
|
+
_("div", nr, [
|
|
259
259
|
O(o.$slots, "mobile-sidebar-toggle"),
|
|
260
260
|
O(o.$slots, "mobile-logo")
|
|
261
261
|
]),
|
|
262
|
-
r.value ? (h(), m("div",
|
|
262
|
+
r.value ? (h(), m("div", rr, [
|
|
263
263
|
O(o.$slots, "logo")
|
|
264
|
-
])) :
|
|
265
|
-
_("div",
|
|
266
|
-
_("div",
|
|
264
|
+
])) : $("", !0),
|
|
265
|
+
_("div", ir, [
|
|
266
|
+
_("div", or, [
|
|
267
267
|
O(o.$slots, "left")
|
|
268
268
|
]),
|
|
269
|
-
_("div",
|
|
269
|
+
_("div", sr, [
|
|
270
270
|
O(o.$slots, "center")
|
|
271
271
|
]),
|
|
272
|
-
_("div",
|
|
272
|
+
_("div", cr, [
|
|
273
273
|
O(o.$slots, "right")
|
|
274
274
|
])
|
|
275
275
|
])
|
|
@@ -277,7 +277,7 @@ const Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { cl
|
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
-
const
|
|
280
|
+
const ur = /* @__PURE__ */ te(lr, [["__scopeId", "data-v-7a2a459a"]]), dr = ["title"], ot = 99, fr = /* @__PURE__ */ ee({
|
|
281
281
|
__name: "ItemBadge",
|
|
282
282
|
props: {
|
|
283
283
|
count: {
|
|
@@ -292,16 +292,16 @@ const cr = /* @__PURE__ */ te(sr, [["__scopeId", "data-v-226397e5"]]), lr = ["ti
|
|
|
292
292
|
key: 0,
|
|
293
293
|
class: "item-badge",
|
|
294
294
|
title: (n.count || 0) > ot ? String(n.count) : void 0
|
|
295
|
-
}, J(a.value), 9,
|
|
295
|
+
}, J(a.value), 9, dr)) : $("", !0);
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
const
|
|
298
|
+
const vr = /* @__PURE__ */ te(fr, [["__scopeId", "data-v-912b1a1b"]]), br = ["data-testid"], hr = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], pr = {
|
|
299
299
|
key: 0,
|
|
300
300
|
class: "sidebar-item-icon"
|
|
301
|
-
},
|
|
301
|
+
}, mr = { class: "sidebar-item-name-container" }, gr = { class: "sidebar-item-name has-tooltip" }, yr = {
|
|
302
302
|
key: 2,
|
|
303
303
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
304
|
-
},
|
|
304
|
+
}, _r = ["id"], wr = /* @__PURE__ */ ee({
|
|
305
305
|
__name: "SidebarItem",
|
|
306
306
|
props: {
|
|
307
307
|
item: {
|
|
@@ -322,49 +322,49 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
322
322
|
};
|
|
323
323
|
return (p, w) => {
|
|
324
324
|
var I;
|
|
325
|
-
const F = ce("KIcon"),
|
|
325
|
+
const F = ce("KIcon"), N = ce("KTooltip"), D = ce("SidebarItem", !0);
|
|
326
326
|
return h(), m("li", {
|
|
327
327
|
class: re([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
328
328
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
329
329
|
}, [
|
|
330
|
-
(h(), Q(
|
|
330
|
+
(h(), Q(_n(r.value ? "div" : "router-link"), {
|
|
331
331
|
custom: r.value ? void 0 : !0,
|
|
332
332
|
to: !r.value && !l.value ? n.item.to : void 0
|
|
333
333
|
}, {
|
|
334
|
-
default:
|
|
335
|
-
var
|
|
334
|
+
default: B((A) => {
|
|
335
|
+
var z, K;
|
|
336
336
|
return [
|
|
337
337
|
_("a", {
|
|
338
|
-
"aria-controls": (
|
|
338
|
+
"aria-controls": (z = n.item.items) != null && z.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
339
339
|
"aria-expanded": (K = n.item.items) != null && K.length && n.item.expanded ? !0 : void 0,
|
|
340
340
|
class: re(["sidebar-item-link", { "sidebar-item-external-link": l.value, "router-link": !r.value }]),
|
|
341
|
-
href: r.value ? String(n.item.to || "#") :
|
|
341
|
+
href: r.value ? String(n.item.to || "#") : A == null ? void 0 : A.href,
|
|
342
342
|
target: l.value ? "_blank" : void 0,
|
|
343
|
-
onClick: (Z) => v(Z, n.item,
|
|
344
|
-
onKeypress:
|
|
343
|
+
onClick: (Z) => v(Z, n.item, A == null ? void 0 : A.navigate),
|
|
344
|
+
onKeypress: wn((Z) => v(Z, n.item, A == null ? void 0 : A.navigate), ["enter"])
|
|
345
345
|
}, [
|
|
346
346
|
_("div", {
|
|
347
347
|
class: re(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": d.value }])
|
|
348
348
|
}, [
|
|
349
|
-
n.item.icon ? (h(), m("div",
|
|
349
|
+
n.item.icon ? (h(), m("div", pr, [
|
|
350
350
|
we(F, {
|
|
351
351
|
icon: String(n.item.icon),
|
|
352
352
|
size: "20"
|
|
353
353
|
}, null, 8, ["icon"])
|
|
354
|
-
])) :
|
|
355
|
-
_("div",
|
|
354
|
+
])) : $("", !0),
|
|
355
|
+
_("div", mr, [
|
|
356
356
|
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (h(), m("div", {
|
|
357
357
|
key: 0,
|
|
358
358
|
class: re(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
359
|
-
}, J(n.item.name), 3)) : (h(), Q(
|
|
359
|
+
}, J(n.item.name), 3)) : (h(), Q(N, {
|
|
360
360
|
key: 1,
|
|
361
361
|
class: "sidebar-item-tooltip",
|
|
362
362
|
label: n.item.name,
|
|
363
363
|
placement: "right",
|
|
364
364
|
"position-fixed": ""
|
|
365
365
|
}, {
|
|
366
|
-
default:
|
|
367
|
-
_("div",
|
|
366
|
+
default: B(() => [
|
|
367
|
+
_("div", gr, [
|
|
368
368
|
_("span", {
|
|
369
369
|
class: re(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": d.value }]])
|
|
370
370
|
}, J(n.item.name), 3)
|
|
@@ -372,14 +372,14 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
372
372
|
]),
|
|
373
373
|
_: 1
|
|
374
374
|
}, 8, ["label"])),
|
|
375
|
-
n.item.label && n.item.expanded ? (h(), m("div",
|
|
375
|
+
n.item.label && n.item.expanded ? (h(), m("div", yr, J(n.item.label), 1)) : $("", !0)
|
|
376
376
|
]),
|
|
377
|
-
d.value ? (h(), Q(
|
|
377
|
+
d.value ? (h(), Q(vr, {
|
|
378
378
|
key: 1,
|
|
379
379
|
count: n.item.badgeCount
|
|
380
|
-
}, null, 8, ["count"])) :
|
|
380
|
+
}, null, 8, ["count"])) : $("", !0)
|
|
381
381
|
], 2)
|
|
382
|
-
], 42,
|
|
382
|
+
], 42, hr)
|
|
383
383
|
];
|
|
384
384
|
}),
|
|
385
385
|
_: 1
|
|
@@ -389,24 +389,24 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
389
389
|
id: `subnav-${n.item.key}`,
|
|
390
390
|
class: "level-secondary"
|
|
391
391
|
}, [
|
|
392
|
-
(h(!0), m(
|
|
393
|
-
key:
|
|
394
|
-
item:
|
|
392
|
+
(h(!0), m(Oe, null, Ae(n.item.items, (A) => (h(), Q(D, {
|
|
393
|
+
key: A.name,
|
|
394
|
+
item: A,
|
|
395
395
|
"subnav-item": !0,
|
|
396
|
-
onClick: (
|
|
396
|
+
onClick: (z) => o(A)
|
|
397
397
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
398
|
-
], 8,
|
|
399
|
-
], 10,
|
|
398
|
+
], 8, _r)) : $("", !0)
|
|
399
|
+
], 10, br);
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
|
-
const
|
|
403
|
+
const Lt = /* @__PURE__ */ te(wr, [["__scopeId", "data-v-859aa5c3"]]);
|
|
404
404
|
/*!
|
|
405
405
|
* tabbable 6.2.0
|
|
406
406
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
407
407
|
*/
|
|
408
|
-
var
|
|
409
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, je = !
|
|
408
|
+
var Gt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ke = /* @__PURE__ */ Gt.join(","), Wt = typeof Element > "u", be = Wt ? function() {
|
|
409
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, je = !Wt && Element.prototype.getRootNode ? function(n) {
|
|
410
410
|
var t;
|
|
411
411
|
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
412
412
|
} : function(n) {
|
|
@@ -416,15 +416,15 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
416
416
|
a === void 0 && (a = !0);
|
|
417
417
|
var l = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), d = l === "" || l === "true", o = d || a && t && n(t.parentNode);
|
|
418
418
|
return o;
|
|
419
|
-
},
|
|
419
|
+
}, Tr = function(t) {
|
|
420
420
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
421
421
|
return r === "" || r === "true";
|
|
422
|
-
},
|
|
422
|
+
}, qt = function(t, a, r) {
|
|
423
423
|
if (He(t))
|
|
424
424
|
return [];
|
|
425
425
|
var l = Array.prototype.slice.apply(t.querySelectorAll(Ke));
|
|
426
426
|
return a && be.call(t, Ke) && l.unshift(t), l = l.filter(r), l;
|
|
427
|
-
},
|
|
427
|
+
}, Xt = function n(t, a, r) {
|
|
428
428
|
for (var l = [], d = Array.from(t); d.length; ) {
|
|
429
429
|
var o = d.shift();
|
|
430
430
|
if (!He(o, !1))
|
|
@@ -437,10 +437,10 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
437
437
|
} else {
|
|
438
438
|
var F = be.call(o, Ke);
|
|
439
439
|
F && r.filter(o) && (a || !t.includes(o)) && l.push(o);
|
|
440
|
-
var
|
|
441
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !He(
|
|
442
|
-
if (
|
|
443
|
-
var I = n(
|
|
440
|
+
var N = o.shadowRoot || // check for an undisclosed shadow
|
|
441
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !He(N, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
442
|
+
if (N && D) {
|
|
443
|
+
var I = n(N === !0 ? o.children : N.children, !0, r);
|
|
444
444
|
r.flatten ? l.push.apply(l, I) : l.push({
|
|
445
445
|
scopeParent: o,
|
|
446
446
|
candidates: I
|
|
@@ -450,31 +450,31 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
return l;
|
|
453
|
-
},
|
|
453
|
+
}, Yt = function(t) {
|
|
454
454
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
455
455
|
}, ve = function(t) {
|
|
456
456
|
if (!t)
|
|
457
457
|
throw new Error("No node provided");
|
|
458
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
459
|
-
},
|
|
458
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Tr(t)) && !Yt(t) ? 0 : t.tabIndex;
|
|
459
|
+
}, kr = function(t, a) {
|
|
460
460
|
var r = ve(t);
|
|
461
|
-
return r < 0 && a && !
|
|
462
|
-
},
|
|
461
|
+
return r < 0 && a && !Yt(t) ? 0 : r;
|
|
462
|
+
}, Sr = function(t, a) {
|
|
463
463
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
464
|
-
},
|
|
464
|
+
}, Jt = function(t) {
|
|
465
465
|
return t.tagName === "INPUT";
|
|
466
|
-
},
|
|
467
|
-
return
|
|
468
|
-
},
|
|
466
|
+
}, Ir = function(t) {
|
|
467
|
+
return Jt(t) && t.type === "hidden";
|
|
468
|
+
}, Cr = function(t) {
|
|
469
469
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
470
470
|
return r.tagName === "SUMMARY";
|
|
471
471
|
});
|
|
472
472
|
return a;
|
|
473
|
-
},
|
|
473
|
+
}, Or = function(t, a) {
|
|
474
474
|
for (var r = 0; r < t.length; r++)
|
|
475
475
|
if (t[r].checked && t[r].form === a)
|
|
476
476
|
return t[r];
|
|
477
|
-
},
|
|
477
|
+
}, $r = function(t) {
|
|
478
478
|
if (!t.name)
|
|
479
479
|
return !0;
|
|
480
480
|
var a = t.form || je(t), r = function(v) {
|
|
@@ -488,26 +488,26 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
488
488
|
} catch (o) {
|
|
489
489
|
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;
|
|
490
490
|
}
|
|
491
|
-
var d =
|
|
491
|
+
var d = Or(l, t.form);
|
|
492
492
|
return !d || d === t;
|
|
493
|
-
},
|
|
494
|
-
return
|
|
495
|
-
}, $r = function(t) {
|
|
496
|
-
return Cr(t) && !Or(t);
|
|
493
|
+
}, Ar = function(t) {
|
|
494
|
+
return Jt(t) && t.type === "radio";
|
|
497
495
|
}, Nr = function(t) {
|
|
496
|
+
return Ar(t) && !$r(t);
|
|
497
|
+
}, Er = function(t) {
|
|
498
498
|
var a, r = t && je(t), l = (a = r) === null || a === void 0 ? void 0 : a.host, d = !1;
|
|
499
499
|
if (r && r !== t) {
|
|
500
500
|
var o, v, p;
|
|
501
501
|
for (d = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (p = t.ownerDocument) !== null && p !== void 0 && p.contains(t)); !d && l; ) {
|
|
502
|
-
var w, F,
|
|
503
|
-
r = je(l), l = (w = r) === null || w === void 0 ? void 0 : w.host, d = !!((F = l) !== null && F !== void 0 && (
|
|
502
|
+
var w, F, N;
|
|
503
|
+
r = je(l), l = (w = r) === null || w === void 0 ? void 0 : w.host, d = !!((F = l) !== null && F !== void 0 && (N = F.ownerDocument) !== null && N !== void 0 && N.contains(l));
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
return d;
|
|
507
|
-
},
|
|
507
|
+
}, Pt = function(t) {
|
|
508
508
|
var a = t.getBoundingClientRect(), r = a.width, l = a.height;
|
|
509
509
|
return r === 0 && l === 0;
|
|
510
|
-
},
|
|
510
|
+
}, xr = function(t, a) {
|
|
511
511
|
var r = a.displayCheck, l = a.getShadowRoot;
|
|
512
512
|
if (getComputedStyle(t).visibility === "hidden")
|
|
513
513
|
return !0;
|
|
@@ -519,19 +519,19 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
519
519
|
for (var v = t; t; ) {
|
|
520
520
|
var p = t.parentElement, w = je(t);
|
|
521
521
|
if (p && !p.shadowRoot && l(p) === !0)
|
|
522
|
-
return
|
|
522
|
+
return Pt(t);
|
|
523
523
|
t.assignedSlot ? t = t.assignedSlot : !p && w !== t.ownerDocument ? t = w.host : t = p;
|
|
524
524
|
}
|
|
525
525
|
t = v;
|
|
526
526
|
}
|
|
527
|
-
if (
|
|
527
|
+
if (Er(t))
|
|
528
528
|
return !t.getClientRects().length;
|
|
529
529
|
if (r !== "legacy-full")
|
|
530
530
|
return !0;
|
|
531
531
|
} else if (r === "non-zero-area")
|
|
532
|
-
return
|
|
532
|
+
return Pt(t);
|
|
533
533
|
return !1;
|
|
534
|
-
},
|
|
534
|
+
}, Fr = function(t) {
|
|
535
535
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
536
536
|
for (var a = t.parentElement; a; ) {
|
|
537
537
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
@@ -549,17 +549,17 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
549
549
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
550
550
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
551
551
|
// note related to `candidateSelectors`)
|
|
552
|
-
He(a) ||
|
|
553
|
-
|
|
552
|
+
He(a) || Ir(a) || xr(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
553
|
+
Cr(a) || Fr(a));
|
|
554
554
|
}, lt = function(t, a) {
|
|
555
|
-
return !(
|
|
556
|
-
},
|
|
555
|
+
return !(Nr(a) || ve(a) < 0 || !Ue(t, a));
|
|
556
|
+
}, Dr = function(t) {
|
|
557
557
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
558
558
|
return !!(isNaN(a) || a >= 0);
|
|
559
|
-
},
|
|
559
|
+
}, Br = function n(t) {
|
|
560
560
|
var a = [], r = [];
|
|
561
561
|
return t.forEach(function(l, d) {
|
|
562
|
-
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p =
|
|
562
|
+
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p = kr(v, o), w = o ? n(l.candidates) : v;
|
|
563
563
|
p === 0 ? o ? a.push.apply(a, w) : a.push(v) : r.push({
|
|
564
564
|
documentOrder: d,
|
|
565
565
|
tabIndex: p,
|
|
@@ -567,34 +567,34 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
567
567
|
isScope: o,
|
|
568
568
|
content: w
|
|
569
569
|
});
|
|
570
|
-
}), r.sort(
|
|
570
|
+
}), r.sort(Sr).reduce(function(l, d) {
|
|
571
571
|
return d.isScope ? l.push.apply(l, d.content) : l.push(d.content), l;
|
|
572
572
|
}, []).concat(a);
|
|
573
|
-
},
|
|
573
|
+
}, Rr = function(t, a) {
|
|
574
574
|
a = a || {};
|
|
575
575
|
var r;
|
|
576
|
-
return a.getShadowRoot ? r =
|
|
576
|
+
return a.getShadowRoot ? r = Xt([t], a.includeContainer, {
|
|
577
577
|
filter: lt.bind(null, a),
|
|
578
578
|
flatten: !1,
|
|
579
579
|
getShadowRoot: a.getShadowRoot,
|
|
580
|
-
shadowRootFilter:
|
|
581
|
-
}) : r =
|
|
582
|
-
},
|
|
580
|
+
shadowRootFilter: Dr
|
|
581
|
+
}) : r = qt(t, a.includeContainer, lt.bind(null, a)), Br(r);
|
|
582
|
+
}, Lr = function(t, a) {
|
|
583
583
|
a = a || {};
|
|
584
584
|
var r;
|
|
585
|
-
return a.getShadowRoot ? r =
|
|
585
|
+
return a.getShadowRoot ? r = Xt([t], a.includeContainer, {
|
|
586
586
|
filter: Ue.bind(null, a),
|
|
587
587
|
flatten: !0,
|
|
588
588
|
getShadowRoot: a.getShadowRoot
|
|
589
|
-
}) : r =
|
|
589
|
+
}) : r = qt(t, a.includeContainer, Ue.bind(null, a)), r;
|
|
590
590
|
}, _e = function(t, a) {
|
|
591
591
|
if (a = a || {}, !t)
|
|
592
592
|
throw new Error("No node provided");
|
|
593
593
|
return be.call(t, Ke) === !1 ? !1 : lt(a, t);
|
|
594
|
-
},
|
|
594
|
+
}, Pr = /* @__PURE__ */ Gt.concat("iframe").join(","), st = function(t, a) {
|
|
595
595
|
if (a = a || {}, !t)
|
|
596
596
|
throw new Error("No node provided");
|
|
597
|
-
return be.call(t,
|
|
597
|
+
return be.call(t, Pr) === !1 ? !1 : Ue(a, t);
|
|
598
598
|
};
|
|
599
599
|
/*!
|
|
600
600
|
* focus-trap 7.5.3
|
|
@@ -610,26 +610,26 @@ function Mt(n, t) {
|
|
|
610
610
|
}
|
|
611
611
|
return a;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Zt(n) {
|
|
614
614
|
for (var t = 1; t < arguments.length; t++) {
|
|
615
615
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
616
616
|
t % 2 ? Mt(Object(a), !0).forEach(function(r) {
|
|
617
|
-
|
|
617
|
+
Mr(n, r, a[r]);
|
|
618
618
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) : Mt(Object(a)).forEach(function(r) {
|
|
619
619
|
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(a, r));
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
return n;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return t =
|
|
624
|
+
function Mr(n, t, a) {
|
|
625
|
+
return t = Kr(t), t in n ? Object.defineProperty(n, t, {
|
|
626
626
|
value: a,
|
|
627
627
|
enumerable: !0,
|
|
628
628
|
configurable: !0,
|
|
629
629
|
writable: !0
|
|
630
630
|
}) : n[t] = a, n;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Zr(n, t) {
|
|
633
633
|
if (typeof n != "object" || n === null)
|
|
634
634
|
return n;
|
|
635
635
|
var a = n[Symbol.toPrimitive];
|
|
@@ -641,11 +641,11 @@ function Mr(n, t) {
|
|
|
641
641
|
}
|
|
642
642
|
return (t === "string" ? String : Number)(n);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
var t =
|
|
644
|
+
function Kr(n) {
|
|
645
|
+
var t = Zr(n, "string");
|
|
646
646
|
return typeof t == "symbol" ? t : String(t);
|
|
647
647
|
}
|
|
648
|
-
var
|
|
648
|
+
var Kt = {
|
|
649
649
|
activateTrap: function(t, a) {
|
|
650
650
|
if (t.length > 0) {
|
|
651
651
|
var r = t[t.length - 1];
|
|
@@ -658,36 +658,36 @@ var Zt = {
|
|
|
658
658
|
var r = t.indexOf(a);
|
|
659
659
|
r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
660
660
|
}
|
|
661
|
-
},
|
|
661
|
+
}, jr = function(t) {
|
|
662
662
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
663
|
-
},
|
|
663
|
+
}, Hr = function(t) {
|
|
664
664
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
665
665
|
}, $e = function(t) {
|
|
666
666
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
667
|
-
},
|
|
667
|
+
}, Ur = function(t) {
|
|
668
668
|
return $e(t) && !t.shiftKey;
|
|
669
|
-
},
|
|
669
|
+
}, Vr = function(t) {
|
|
670
670
|
return $e(t) && t.shiftKey;
|
|
671
|
-
},
|
|
671
|
+
}, jt = function(t) {
|
|
672
672
|
return setTimeout(t, 0);
|
|
673
|
-
},
|
|
673
|
+
}, Ht = function(t, a) {
|
|
674
674
|
var r = -1;
|
|
675
675
|
return t.every(function(l, d) {
|
|
676
676
|
return a(l) ? (r = d, !1) : !0;
|
|
677
677
|
}), r;
|
|
678
|
-
},
|
|
678
|
+
}, Ce = function(t) {
|
|
679
679
|
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
|
|
680
680
|
r[l - 1] = arguments[l];
|
|
681
681
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
682
|
-
},
|
|
682
|
+
}, Re = function(t) {
|
|
683
683
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
684
|
-
},
|
|
685
|
-
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) ||
|
|
684
|
+
}, zr = [], Gr = function(t, a) {
|
|
685
|
+
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) || zr, d = Zt({
|
|
686
686
|
returnFocusOnDeactivate: !0,
|
|
687
687
|
escapeDeactivates: !0,
|
|
688
688
|
delayInitialFocus: !0,
|
|
689
|
-
isKeyForward:
|
|
690
|
-
isKeyBackward:
|
|
689
|
+
isKeyForward: Ur,
|
|
690
|
+
isKeyBackward: Vr
|
|
691
691
|
}, a), o = {
|
|
692
692
|
// containers given to createFocusTrap()
|
|
693
693
|
// @type {Array<HTMLElement>}
|
|
@@ -754,7 +754,7 @@ var Zt = {
|
|
|
754
754
|
if (typeof u == "string" && (E = r.querySelector(u), !E))
|
|
755
755
|
throw new Error("`".concat(s, "` as selector refers to no known node"));
|
|
756
756
|
return E;
|
|
757
|
-
},
|
|
757
|
+
}, N = function() {
|
|
758
758
|
var s = F("initialFocus");
|
|
759
759
|
if (s === !1)
|
|
760
760
|
return !1;
|
|
@@ -770,19 +770,19 @@ var Zt = {
|
|
|
770
770
|
return s;
|
|
771
771
|
}, D = function() {
|
|
772
772
|
if (o.containerGroups = o.containers.map(function(s) {
|
|
773
|
-
var u =
|
|
774
|
-
return _e(
|
|
775
|
-
}), x = f.slice().reverse().find(function(
|
|
776
|
-
return _e(
|
|
777
|
-
}),
|
|
778
|
-
return ve(
|
|
773
|
+
var u = Rr(s, d.tabbableOptions), f = Lr(s, d.tabbableOptions), y = u.length > 0 ? u[0] : void 0, k = u.length > 0 ? u[u.length - 1] : void 0, E = f.find(function(R) {
|
|
774
|
+
return _e(R);
|
|
775
|
+
}), x = f.slice().reverse().find(function(R) {
|
|
776
|
+
return _e(R);
|
|
777
|
+
}), M = !!u.find(function(R) {
|
|
778
|
+
return ve(R) > 0;
|
|
779
779
|
});
|
|
780
780
|
return {
|
|
781
781
|
container: s,
|
|
782
782
|
tabbableNodes: u,
|
|
783
783
|
focusableNodes: f,
|
|
784
784
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
785
|
-
posTabIndexesFound:
|
|
785
|
+
posTabIndexesFound: M,
|
|
786
786
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
787
787
|
firstTabbableNode: y,
|
|
788
788
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -808,10 +808,10 @@ var Zt = {
|
|
|
808
808
|
*/
|
|
809
809
|
nextTabbableNode: function(T) {
|
|
810
810
|
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ne = u.indexOf(T);
|
|
811
|
-
return ne < 0 ? le ? f.slice(f.indexOf(T) + 1).find(function(
|
|
812
|
-
return _e(
|
|
813
|
-
}) : f.slice(0, f.indexOf(T)).reverse().find(function(
|
|
814
|
-
return _e(
|
|
811
|
+
return ne < 0 ? le ? f.slice(f.indexOf(T) + 1).find(function(j) {
|
|
812
|
+
return _e(j);
|
|
813
|
+
}) : f.slice(0, f.indexOf(T)).reverse().find(function(j) {
|
|
814
|
+
return _e(j);
|
|
815
815
|
}) : u[ne + (le ? 1 : -1)];
|
|
816
816
|
}
|
|
817
817
|
};
|
|
@@ -823,55 +823,55 @@ var Zt = {
|
|
|
823
823
|
return s.posTabIndexesFound;
|
|
824
824
|
}) && o.containerGroups.length > 1)
|
|
825
825
|
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.");
|
|
826
|
-
}, I = function
|
|
826
|
+
}, I = function C(s) {
|
|
827
827
|
if (s !== !1 && s !== r.activeElement) {
|
|
828
828
|
if (!s || !s.focus) {
|
|
829
|
-
|
|
829
|
+
C(N());
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
s.focus({
|
|
833
833
|
preventScroll: !!d.preventScroll
|
|
834
|
-
}), o.mostRecentlyFocusedNode = s,
|
|
834
|
+
}), o.mostRecentlyFocusedNode = s, jr(s) && s.select();
|
|
835
835
|
}
|
|
836
|
-
},
|
|
836
|
+
}, A = function(s) {
|
|
837
837
|
var u = F("setReturnFocus", s);
|
|
838
838
|
return u || (u === !1 ? !1 : s);
|
|
839
|
-
},
|
|
839
|
+
}, z = function(s) {
|
|
840
840
|
var u = s.target, f = s.event, y = s.isBackward, k = y === void 0 ? !1 : y;
|
|
841
|
-
u = u ||
|
|
841
|
+
u = u || Re(f), D();
|
|
842
842
|
var E = null;
|
|
843
843
|
if (o.tabbableGroups.length > 0) {
|
|
844
|
-
var x = w(u, f),
|
|
844
|
+
var x = w(u, f), M = x >= 0 ? o.containerGroups[x] : void 0;
|
|
845
845
|
if (x < 0)
|
|
846
846
|
k ? E = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : E = o.tabbableGroups[0].firstTabbableNode;
|
|
847
847
|
else if (k) {
|
|
848
|
-
var
|
|
848
|
+
var R = Ht(o.tabbableGroups, function(he) {
|
|
849
849
|
var ke = he.firstTabbableNode;
|
|
850
850
|
return u === ke;
|
|
851
851
|
});
|
|
852
|
-
if (
|
|
853
|
-
var T =
|
|
852
|
+
if (R < 0 && (M.container === u || st(u, d.tabbableOptions) && !_e(u, d.tabbableOptions) && !M.nextTabbableNode(u, !1)) && (R = x), R >= 0) {
|
|
853
|
+
var T = R === 0 ? o.tabbableGroups.length - 1 : R - 1, le = o.tabbableGroups[T];
|
|
854
854
|
E = ve(u) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
|
|
855
855
|
} else
|
|
856
|
-
$e(f) || (E =
|
|
856
|
+
$e(f) || (E = M.nextTabbableNode(u, !1));
|
|
857
857
|
} else {
|
|
858
|
-
var ne =
|
|
858
|
+
var ne = Ht(o.tabbableGroups, function(he) {
|
|
859
859
|
var ke = he.lastTabbableNode;
|
|
860
860
|
return u === ke;
|
|
861
861
|
});
|
|
862
|
-
if (ne < 0 && (
|
|
863
|
-
var
|
|
862
|
+
if (ne < 0 && (M.container === u || st(u, d.tabbableOptions) && !_e(u, d.tabbableOptions) && !M.nextTabbableNode(u)) && (ne = x), ne >= 0) {
|
|
863
|
+
var j = ne === o.tabbableGroups.length - 1 ? 0 : ne + 1, Te = o.tabbableGroups[j];
|
|
864
864
|
E = ve(u) >= 0 ? Te.firstTabbableNode : Te.firstDomTabbableNode;
|
|
865
865
|
} else
|
|
866
|
-
$e(f) || (E =
|
|
866
|
+
$e(f) || (E = M.nextTabbableNode(u));
|
|
867
867
|
}
|
|
868
868
|
} else
|
|
869
869
|
E = F("fallbackFocus");
|
|
870
870
|
return E;
|
|
871
871
|
}, K = function(s) {
|
|
872
|
-
var u =
|
|
872
|
+
var u = Re(s);
|
|
873
873
|
if (!(w(u, s) >= 0)) {
|
|
874
|
-
if (
|
|
874
|
+
if (Ce(d.clickOutsideDeactivates, s)) {
|
|
875
875
|
v.deactivate({
|
|
876
876
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
877
877
|
// which will result in the outside click setting focus to the node
|
|
@@ -883,10 +883,10 @@ var Zt = {
|
|
|
883
883
|
});
|
|
884
884
|
return;
|
|
885
885
|
}
|
|
886
|
-
|
|
886
|
+
Ce(d.allowOutsideClick, s) || s.preventDefault();
|
|
887
887
|
}
|
|
888
888
|
}, Z = function(s) {
|
|
889
|
-
var u =
|
|
889
|
+
var u = Re(s), f = w(u, s) >= 0;
|
|
890
890
|
if (f || u instanceof Document)
|
|
891
891
|
f && (o.mostRecentlyFocusedNode = u);
|
|
892
892
|
else {
|
|
@@ -896,75 +896,75 @@ var Zt = {
|
|
|
896
896
|
if (ve(o.mostRecentlyFocusedNode) > 0) {
|
|
897
897
|
var E = w(o.mostRecentlyFocusedNode), x = o.containerGroups[E].tabbableNodes;
|
|
898
898
|
if (x.length > 0) {
|
|
899
|
-
var
|
|
900
|
-
return
|
|
899
|
+
var M = x.findIndex(function(R) {
|
|
900
|
+
return R === o.mostRecentlyFocusedNode;
|
|
901
901
|
});
|
|
902
|
-
|
|
902
|
+
M >= 0 && (d.isKeyForward(o.recentNavEvent) ? M + 1 < x.length && (y = x[M + 1], k = !1) : M - 1 >= 0 && (y = x[M - 1], k = !1));
|
|
903
903
|
}
|
|
904
904
|
} else
|
|
905
|
-
o.containerGroups.some(function(
|
|
906
|
-
return
|
|
905
|
+
o.containerGroups.some(function(R) {
|
|
906
|
+
return R.tabbableNodes.some(function(T) {
|
|
907
907
|
return ve(T) > 0;
|
|
908
908
|
});
|
|
909
909
|
}) || (k = !1);
|
|
910
910
|
else
|
|
911
911
|
k = !1;
|
|
912
|
-
k && (y =
|
|
912
|
+
k && (y = z({
|
|
913
913
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
914
914
|
// outside the trap causing the focus escape we're trying to fix)
|
|
915
915
|
target: o.mostRecentlyFocusedNode,
|
|
916
916
|
isBackward: d.isKeyBackward(o.recentNavEvent)
|
|
917
|
-
})), I(y || o.mostRecentlyFocusedNode ||
|
|
917
|
+
})), I(y || o.mostRecentlyFocusedNode || N());
|
|
918
918
|
}
|
|
919
919
|
o.recentNavEvent = void 0;
|
|
920
920
|
}, oe = function(s) {
|
|
921
921
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
922
922
|
o.recentNavEvent = s;
|
|
923
|
-
var f =
|
|
923
|
+
var f = z({
|
|
924
924
|
event: s,
|
|
925
925
|
isBackward: u
|
|
926
926
|
});
|
|
927
927
|
f && ($e(s) && s.preventDefault(), I(f));
|
|
928
928
|
}, ae = function(s) {
|
|
929
|
-
if (
|
|
929
|
+
if (Hr(s) && Ce(d.escapeDeactivates, s) !== !1) {
|
|
930
930
|
s.preventDefault(), v.deactivate();
|
|
931
931
|
return;
|
|
932
932
|
}
|
|
933
933
|
(d.isKeyForward(s) || d.isKeyBackward(s)) && oe(s, d.isKeyBackward(s));
|
|
934
|
-
},
|
|
935
|
-
var u =
|
|
936
|
-
w(u, s) >= 0 ||
|
|
937
|
-
},
|
|
934
|
+
}, W = function(s) {
|
|
935
|
+
var u = Re(s);
|
|
936
|
+
w(u, s) >= 0 || Ce(d.clickOutsideDeactivates, s) || Ce(d.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
937
|
+
}, q = function() {
|
|
938
938
|
if (o.active)
|
|
939
|
-
return
|
|
940
|
-
I(
|
|
941
|
-
}) : I(
|
|
939
|
+
return Kt.activateTrap(l, v), o.delayInitialFocusTimer = d.delayInitialFocus ? jt(function() {
|
|
940
|
+
I(N());
|
|
941
|
+
}) : I(N()), r.addEventListener("focusin", Z, !0), r.addEventListener("mousedown", K, {
|
|
942
942
|
capture: !0,
|
|
943
943
|
passive: !1
|
|
944
944
|
}), r.addEventListener("touchstart", K, {
|
|
945
945
|
capture: !0,
|
|
946
946
|
passive: !1
|
|
947
|
-
}), r.addEventListener("click",
|
|
947
|
+
}), r.addEventListener("click", W, {
|
|
948
948
|
capture: !0,
|
|
949
949
|
passive: !1
|
|
950
950
|
}), r.addEventListener("keydown", ae, {
|
|
951
951
|
capture: !0,
|
|
952
952
|
passive: !1
|
|
953
953
|
}), v;
|
|
954
|
-
},
|
|
954
|
+
}, U = function() {
|
|
955
955
|
if (o.active)
|
|
956
|
-
return r.removeEventListener("focusin", Z, !0), r.removeEventListener("mousedown", K, !0), r.removeEventListener("touchstart", K, !0), r.removeEventListener("click",
|
|
957
|
-
},
|
|
956
|
+
return r.removeEventListener("focusin", Z, !0), r.removeEventListener("mousedown", K, !0), r.removeEventListener("touchstart", K, !0), r.removeEventListener("click", W, !0), r.removeEventListener("keydown", ae, !0), v;
|
|
957
|
+
}, X = function(s) {
|
|
958
958
|
var u = s.some(function(f) {
|
|
959
959
|
var y = Array.from(f.removedNodes);
|
|
960
960
|
return y.some(function(k) {
|
|
961
961
|
return k === o.mostRecentlyFocusedNode;
|
|
962
962
|
});
|
|
963
963
|
});
|
|
964
|
-
u && I(
|
|
965
|
-
},
|
|
966
|
-
|
|
967
|
-
|
|
964
|
+
u && I(N());
|
|
965
|
+
}, S = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(X) : void 0, P = function() {
|
|
966
|
+
S && (S.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
967
|
+
S.observe(s, {
|
|
968
968
|
subtree: !0,
|
|
969
969
|
childList: !0
|
|
970
970
|
});
|
|
@@ -983,45 +983,45 @@ var Zt = {
|
|
|
983
983
|
var u = p(s, "onActivate"), f = p(s, "onPostActivate"), y = p(s, "checkCanFocusTrap");
|
|
984
984
|
y || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, u == null || u();
|
|
985
985
|
var k = function() {
|
|
986
|
-
y && D(),
|
|
986
|
+
y && D(), q(), P(), f == null || f();
|
|
987
987
|
};
|
|
988
988
|
return y ? (y(o.containers.concat()).then(k, k), this) : (k(), this);
|
|
989
989
|
},
|
|
990
990
|
deactivate: function(s) {
|
|
991
991
|
if (!o.active)
|
|
992
992
|
return this;
|
|
993
|
-
var u =
|
|
993
|
+
var u = Zt({
|
|
994
994
|
onDeactivate: d.onDeactivate,
|
|
995
995
|
onPostDeactivate: d.onPostDeactivate,
|
|
996
996
|
checkCanReturnFocus: d.checkCanReturnFocus
|
|
997
997
|
}, s);
|
|
998
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
998
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, U(), o.active = !1, o.paused = !1, P(), Kt.deactivateTrap(l, v);
|
|
999
999
|
var f = p(u, "onDeactivate"), y = p(u, "onPostDeactivate"), k = p(u, "checkCanReturnFocus"), E = p(u, "returnFocus", "returnFocusOnDeactivate");
|
|
1000
1000
|
f == null || f();
|
|
1001
1001
|
var x = function() {
|
|
1002
|
-
|
|
1003
|
-
E && I(
|
|
1002
|
+
jt(function() {
|
|
1003
|
+
E && I(A(o.nodeFocusedBeforeActivation)), y == null || y();
|
|
1004
1004
|
});
|
|
1005
1005
|
};
|
|
1006
|
-
return E && k ? (k(
|
|
1006
|
+
return E && k ? (k(A(o.nodeFocusedBeforeActivation)).then(x, x), this) : (x(), this);
|
|
1007
1007
|
},
|
|
1008
1008
|
pause: function(s) {
|
|
1009
1009
|
if (o.paused || !o.active)
|
|
1010
1010
|
return this;
|
|
1011
1011
|
var u = p(s, "onPause"), f = p(s, "onPostPause");
|
|
1012
|
-
return o.paused = !0, u == null || u(),
|
|
1012
|
+
return o.paused = !0, u == null || u(), U(), P(), f == null || f(), this;
|
|
1013
1013
|
},
|
|
1014
1014
|
unpause: function(s) {
|
|
1015
1015
|
if (!o.paused || !o.active)
|
|
1016
1016
|
return this;
|
|
1017
1017
|
var u = p(s, "onUnpause"), f = p(s, "onPostUnpause");
|
|
1018
|
-
return o.paused = !1, u == null || u(), D(),
|
|
1018
|
+
return o.paused = !1, u == null || u(), D(), q(), P(), f == null || f(), this;
|
|
1019
1019
|
},
|
|
1020
1020
|
updateContainerElements: function(s) {
|
|
1021
1021
|
var u = [].concat(s).filter(Boolean);
|
|
1022
1022
|
return o.containers = u.map(function(f) {
|
|
1023
1023
|
return typeof f == "string" ? r.querySelector(f) : f;
|
|
1024
|
-
}), o.active && D(),
|
|
1024
|
+
}), o.active && D(), P(), this;
|
|
1025
1025
|
}
|
|
1026
1026
|
}, v.updateContainerElements(t), v;
|
|
1027
1027
|
};
|
|
@@ -1030,7 +1030,7 @@ var Zt = {
|
|
|
1030
1030
|
* (c) 2023 Eduardo San Martin Morote
|
|
1031
1031
|
* @license MIT
|
|
1032
1032
|
*/
|
|
1033
|
-
const
|
|
1033
|
+
const Wr = {
|
|
1034
1034
|
escapeDeactivates: {
|
|
1035
1035
|
type: Boolean,
|
|
1036
1036
|
default: !0
|
|
@@ -1056,14 +1056,14 @@ const zr = {
|
|
|
1056
1056
|
preventScroll: Boolean,
|
|
1057
1057
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1058
1058
|
tabbableOptions: Object
|
|
1059
|
-
},
|
|
1059
|
+
}, qr = ee({
|
|
1060
1060
|
props: Object.assign({
|
|
1061
1061
|
active: {
|
|
1062
1062
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
1063
1063
|
type: Boolean,
|
|
1064
1064
|
default: !0
|
|
1065
1065
|
}
|
|
1066
|
-
},
|
|
1066
|
+
}, Wr),
|
|
1067
1067
|
emits: [
|
|
1068
1068
|
"update:active",
|
|
1069
1069
|
"activate",
|
|
@@ -1076,12 +1076,12 @@ const zr = {
|
|
|
1076
1076
|
},
|
|
1077
1077
|
setup(n, { slots: t, emit: a }) {
|
|
1078
1078
|
let r;
|
|
1079
|
-
const l =
|
|
1079
|
+
const l = G(null), d = g(() => {
|
|
1080
1080
|
const v = l.value;
|
|
1081
1081
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1082
1082
|
});
|
|
1083
1083
|
function o() {
|
|
1084
|
-
return r || (r =
|
|
1084
|
+
return r || (r = Gr(d.value, {
|
|
1085
1085
|
escapeDeactivates: n.escapeDeactivates,
|
|
1086
1086
|
allowOutsideClick: n.allowOutsideClick,
|
|
1087
1087
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -1104,7 +1104,7 @@ const zr = {
|
|
|
1104
1104
|
Ze(() => n.active, (v) => {
|
|
1105
1105
|
v && d.value ? o().activate() : r && (r.deactivate(), (!d.value || d.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
1106
1106
|
}, { immediate: !0, flush: "post" });
|
|
1107
|
-
}),
|
|
1107
|
+
}), Tn(() => {
|
|
1108
1108
|
r && r.deactivate(), r = null;
|
|
1109
1109
|
}), {
|
|
1110
1110
|
activate() {
|
|
@@ -1116,13 +1116,13 @@ const zr = {
|
|
|
1116
1116
|
renderImpl() {
|
|
1117
1117
|
if (!t.default)
|
|
1118
1118
|
return null;
|
|
1119
|
-
const v = t.default().filter((w) => w.type !==
|
|
1120
|
-
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) :
|
|
1119
|
+
const v = t.default().filter((w) => w.type !== kn);
|
|
1120
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : Sn(v[0], { ref: l });
|
|
1121
1121
|
}
|
|
1122
1122
|
};
|
|
1123
1123
|
}
|
|
1124
1124
|
});
|
|
1125
|
-
function
|
|
1125
|
+
function Qt() {
|
|
1126
1126
|
return {
|
|
1127
1127
|
debounce: (t, a) => {
|
|
1128
1128
|
let r;
|
|
@@ -1134,44 +1134,45 @@ function Yt() {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
1136
1136
|
}
|
|
1137
|
+
const ea = "linear-gradient(180deg, #001740 0%, #073382 100%)";
|
|
1137
1138
|
var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1138
|
-
function
|
|
1139
|
+
function Xr(n) {
|
|
1139
1140
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1140
1141
|
}
|
|
1141
1142
|
var Ve = { exports: {} };
|
|
1142
1143
|
Ve.exports;
|
|
1143
1144
|
(function(n, t) {
|
|
1144
|
-
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]", w = "[object Error]", F = "[object Function]",
|
|
1145
|
-
T[d] = T[o] = T[
|
|
1146
|
-
var le = typeof Le == "object" && Le && Le.Object === Object && Le, ne = typeof self == "object" && self && self.Object === Object && self,
|
|
1147
|
-
function
|
|
1145
|
+
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]", w = "[object Error]", F = "[object Function]", N = "[object GeneratorFunction]", D = "[object Map]", I = "[object Number]", A = "[object Object]", z = "[object Promise]", K = "[object RegExp]", Z = "[object Set]", oe = "[object String]", ae = "[object Symbol]", W = "[object WeakMap]", q = "[object ArrayBuffer]", U = "[object DataView]", X = "[object Float32Array]", S = "[object Float64Array]", P = "[object Int8Array]", C = "[object Int16Array]", s = "[object Int32Array]", u = "[object Uint8Array]", f = "[object Uint8ClampedArray]", y = "[object Uint16Array]", k = "[object Uint32Array]", E = /[\\^$.*+?()[\]{}|]/g, x = /\w*$/, M = /^\[object .+?Constructor\]$/, R = /^(?:0|[1-9]\d*)$/, T = {};
|
|
1146
|
+
T[d] = T[o] = T[q] = T[U] = T[v] = T[p] = T[X] = T[S] = T[P] = T[C] = T[s] = T[D] = T[I] = T[A] = T[K] = T[Z] = T[oe] = T[ae] = T[u] = T[f] = T[y] = T[k] = !0, T[w] = T[F] = T[W] = !1;
|
|
1147
|
+
var le = typeof Le == "object" && Le && Le.Object === Object && Le, ne = typeof self == "object" && self && self.Object === Object && self, j = le || ne || Function("return this")(), Te = t && !t.nodeType && t, he = Te && !0 && n && !n.nodeType && n, ke = he && he.exports === Te;
|
|
1148
|
+
function ta(e, i) {
|
|
1148
1149
|
return e.set(i[0], i[1]), e;
|
|
1149
1150
|
}
|
|
1150
|
-
function
|
|
1151
|
+
function aa(e, i) {
|
|
1151
1152
|
return e.add(i), e;
|
|
1152
1153
|
}
|
|
1153
|
-
function
|
|
1154
|
+
function na(e, i) {
|
|
1154
1155
|
for (var c = -1, b = e ? e.length : 0; ++c < b && i(e[c], c, e) !== !1; )
|
|
1155
1156
|
;
|
|
1156
1157
|
return e;
|
|
1157
1158
|
}
|
|
1158
|
-
function
|
|
1159
|
+
function ra(e, i) {
|
|
1159
1160
|
for (var c = -1, b = i.length, L = e.length; ++c < b; )
|
|
1160
1161
|
e[L + c] = i[c];
|
|
1161
1162
|
return e;
|
|
1162
1163
|
}
|
|
1163
1164
|
function vt(e, i, c, b) {
|
|
1164
|
-
var L = -1,
|
|
1165
|
-
for (b &&
|
|
1165
|
+
var L = -1, H = e ? e.length : 0;
|
|
1166
|
+
for (b && H && (c = e[++L]); ++L < H; )
|
|
1166
1167
|
c = i(c, e[L], L, e);
|
|
1167
1168
|
return c;
|
|
1168
1169
|
}
|
|
1169
|
-
function
|
|
1170
|
+
function ia(e, i) {
|
|
1170
1171
|
for (var c = -1, b = Array(e); ++c < e; )
|
|
1171
1172
|
b[c] = i(c);
|
|
1172
1173
|
return b;
|
|
1173
1174
|
}
|
|
1174
|
-
function
|
|
1175
|
+
function oa(e, i) {
|
|
1175
1176
|
return e == null ? void 0 : e[i];
|
|
1176
1177
|
}
|
|
1177
1178
|
function bt(e) {
|
|
@@ -1200,12 +1201,12 @@ Ve.exports;
|
|
|
1200
1201
|
c[++i] = b;
|
|
1201
1202
|
}), c;
|
|
1202
1203
|
}
|
|
1203
|
-
var
|
|
1204
|
+
var sa = Array.prototype, ca = Function.prototype, Ne = Object.prototype, Xe = j["__core-js_shared__"], mt = function() {
|
|
1204
1205
|
var e = /[^.]+$/.exec(Xe && Xe.keys && Xe.keys.IE_PROTO || "");
|
|
1205
1206
|
return e ? "Symbol(src)_1." + e : "";
|
|
1206
|
-
}(), gt =
|
|
1207
|
+
}(), gt = ca.toString, se = Ne.hasOwnProperty, Ee = Ne.toString, la = RegExp(
|
|
1207
1208
|
"^" + gt.call(se).replace(E, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1208
|
-
), yt = ke ?
|
|
1209
|
+
), yt = ke ? j.Buffer : void 0, _t = j.Symbol, wt = j.Uint8Array, ua = qe(Object.getPrototypeOf, Object), da = Object.create, fa = Ne.propertyIsEnumerable, va = sa.splice, Tt = Object.getOwnPropertySymbols, ba = yt ? yt.isBuffer : void 0, ha = qe(Object.keys, Object), Ye = ge(j, "DataView"), Se = ge(j, "Map"), Je = ge(j, "Promise"), Qe = ge(j, "Set"), et = ge(j, "WeakMap"), Ie = ge(Object, "create"), pa = fe(Ye), ma = fe(Se), ga = fe(Je), ya = fe(Qe), _a = fe(et), kt = _t ? _t.prototype : void 0, St = kt ? kt.valueOf : void 0;
|
|
1209
1210
|
function ue(e) {
|
|
1210
1211
|
var i = -1, c = e ? e.length : 0;
|
|
1211
1212
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1213,13 +1214,13 @@ Ve.exports;
|
|
|
1213
1214
|
this.set(b[0], b[1]);
|
|
1214
1215
|
}
|
|
1215
1216
|
}
|
|
1216
|
-
function
|
|
1217
|
+
function wa() {
|
|
1217
1218
|
this.__data__ = Ie ? Ie(null) : {};
|
|
1218
1219
|
}
|
|
1219
|
-
function
|
|
1220
|
+
function Ta(e) {
|
|
1220
1221
|
return this.has(e) && delete this.__data__[e];
|
|
1221
1222
|
}
|
|
1222
|
-
function
|
|
1223
|
+
function ka(e) {
|
|
1223
1224
|
var i = this.__data__;
|
|
1224
1225
|
if (Ie) {
|
|
1225
1226
|
var c = i[e];
|
|
@@ -1227,15 +1228,15 @@ Ve.exports;
|
|
|
1227
1228
|
}
|
|
1228
1229
|
return se.call(i, e) ? i[e] : void 0;
|
|
1229
1230
|
}
|
|
1230
|
-
function
|
|
1231
|
+
function Sa(e) {
|
|
1231
1232
|
var i = this.__data__;
|
|
1232
1233
|
return Ie ? i[e] !== void 0 : se.call(i, e);
|
|
1233
1234
|
}
|
|
1234
|
-
function
|
|
1235
|
+
function Ia(e, i) {
|
|
1235
1236
|
var c = this.__data__;
|
|
1236
1237
|
return c[e] = Ie && i === void 0 ? r : i, this;
|
|
1237
1238
|
}
|
|
1238
|
-
ue.prototype.clear =
|
|
1239
|
+
ue.prototype.clear = wa, ue.prototype.delete = Ta, ue.prototype.get = ka, ue.prototype.has = Sa, ue.prototype.set = Ia;
|
|
1239
1240
|
function ie(e) {
|
|
1240
1241
|
var i = -1, c = e ? e.length : 0;
|
|
1241
1242
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1243,28 +1244,28 @@ Ve.exports;
|
|
|
1243
1244
|
this.set(b[0], b[1]);
|
|
1244
1245
|
}
|
|
1245
1246
|
}
|
|
1246
|
-
function
|
|
1247
|
+
function Ca() {
|
|
1247
1248
|
this.__data__ = [];
|
|
1248
1249
|
}
|
|
1249
|
-
function
|
|
1250
|
+
function Oa(e) {
|
|
1250
1251
|
var i = this.__data__, c = xe(i, e);
|
|
1251
1252
|
if (c < 0)
|
|
1252
1253
|
return !1;
|
|
1253
1254
|
var b = i.length - 1;
|
|
1254
|
-
return c == b ? i.pop() :
|
|
1255
|
+
return c == b ? i.pop() : va.call(i, c, 1), !0;
|
|
1255
1256
|
}
|
|
1256
|
-
function
|
|
1257
|
+
function $a(e) {
|
|
1257
1258
|
var i = this.__data__, c = xe(i, e);
|
|
1258
1259
|
return c < 0 ? void 0 : i[c][1];
|
|
1259
1260
|
}
|
|
1260
|
-
function
|
|
1261
|
+
function Aa(e) {
|
|
1261
1262
|
return xe(this.__data__, e) > -1;
|
|
1262
1263
|
}
|
|
1263
|
-
function
|
|
1264
|
+
function Na(e, i) {
|
|
1264
1265
|
var c = this.__data__, b = xe(c, e);
|
|
1265
1266
|
return b < 0 ? c.push([e, i]) : c[b][1] = i, this;
|
|
1266
1267
|
}
|
|
1267
|
-
ie.prototype.clear =
|
|
1268
|
+
ie.prototype.clear = Ca, ie.prototype.delete = Oa, ie.prototype.get = $a, ie.prototype.has = Aa, ie.prototype.set = Na;
|
|
1268
1269
|
function pe(e) {
|
|
1269
1270
|
var i = -1, c = e ? e.length : 0;
|
|
1270
1271
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1272,42 +1273,42 @@ Ve.exports;
|
|
|
1272
1273
|
this.set(b[0], b[1]);
|
|
1273
1274
|
}
|
|
1274
1275
|
}
|
|
1275
|
-
function
|
|
1276
|
+
function Ea() {
|
|
1276
1277
|
this.__data__ = {
|
|
1277
1278
|
hash: new ue(),
|
|
1278
1279
|
map: new (Se || ie)(),
|
|
1279
1280
|
string: new ue()
|
|
1280
1281
|
};
|
|
1281
1282
|
}
|
|
1282
|
-
function
|
|
1283
|
+
function xa(e) {
|
|
1283
1284
|
return Fe(this, e).delete(e);
|
|
1284
1285
|
}
|
|
1285
|
-
function
|
|
1286
|
+
function Fa(e) {
|
|
1286
1287
|
return Fe(this, e).get(e);
|
|
1287
1288
|
}
|
|
1288
|
-
function
|
|
1289
|
+
function Da(e) {
|
|
1289
1290
|
return Fe(this, e).has(e);
|
|
1290
1291
|
}
|
|
1291
|
-
function
|
|
1292
|
+
function Ba(e, i) {
|
|
1292
1293
|
return Fe(this, e).set(e, i), this;
|
|
1293
1294
|
}
|
|
1294
|
-
pe.prototype.clear =
|
|
1295
|
+
pe.prototype.clear = Ea, pe.prototype.delete = xa, pe.prototype.get = Fa, pe.prototype.has = Da, pe.prototype.set = Ba;
|
|
1295
1296
|
function me(e) {
|
|
1296
1297
|
this.__data__ = new ie(e);
|
|
1297
1298
|
}
|
|
1298
|
-
function
|
|
1299
|
+
function Ra() {
|
|
1299
1300
|
this.__data__ = new ie();
|
|
1300
1301
|
}
|
|
1301
|
-
function
|
|
1302
|
+
function La(e) {
|
|
1302
1303
|
return this.__data__.delete(e);
|
|
1303
1304
|
}
|
|
1304
|
-
function
|
|
1305
|
+
function Pa(e) {
|
|
1305
1306
|
return this.__data__.get(e);
|
|
1306
1307
|
}
|
|
1307
|
-
function
|
|
1308
|
+
function Ma(e) {
|
|
1308
1309
|
return this.__data__.has(e);
|
|
1309
1310
|
}
|
|
1310
|
-
function
|
|
1311
|
+
function Za(e, i) {
|
|
1311
1312
|
var c = this.__data__;
|
|
1312
1313
|
if (c instanceof ie) {
|
|
1313
1314
|
var b = c.__data__;
|
|
@@ -1317,86 +1318,86 @@ Ve.exports;
|
|
|
1317
1318
|
}
|
|
1318
1319
|
return c.set(e, i), this;
|
|
1319
1320
|
}
|
|
1320
|
-
me.prototype.clear =
|
|
1321
|
-
function
|
|
1322
|
-
var c = nt(e) ||
|
|
1323
|
-
for (var
|
|
1324
|
-
(i || se.call(e,
|
|
1321
|
+
me.prototype.clear = Ra, me.prototype.delete = La, me.prototype.get = Pa, me.prototype.has = Ma, me.prototype.set = Za;
|
|
1322
|
+
function Ka(e, i) {
|
|
1323
|
+
var c = nt(e) || fn(e) ? ia(e.length, String) : [], b = c.length, L = !!b;
|
|
1324
|
+
for (var H in e)
|
|
1325
|
+
(i || se.call(e, H)) && !(L && (H == "length" || cn(H, b))) && c.push(H);
|
|
1325
1326
|
return c;
|
|
1326
1327
|
}
|
|
1327
1328
|
function It(e, i, c) {
|
|
1328
1329
|
var b = e[i];
|
|
1329
|
-
(!(se.call(e, i) &&
|
|
1330
|
+
(!(se.call(e, i) && At(b, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1330
1331
|
}
|
|
1331
1332
|
function xe(e, i) {
|
|
1332
1333
|
for (var c = e.length; c--; )
|
|
1333
|
-
if (
|
|
1334
|
+
if (At(e[c][0], i))
|
|
1334
1335
|
return c;
|
|
1335
1336
|
return -1;
|
|
1336
1337
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return e &&
|
|
1338
|
+
function ja(e, i) {
|
|
1339
|
+
return e && Ct(i, rt(i), e);
|
|
1339
1340
|
}
|
|
1340
|
-
function tt(e, i, c, b, L,
|
|
1341
|
-
var
|
|
1342
|
-
if (b && (
|
|
1343
|
-
return
|
|
1341
|
+
function tt(e, i, c, b, L, H, Y) {
|
|
1342
|
+
var V;
|
|
1343
|
+
if (b && (V = H ? b(e, L, H, Y) : b(e)), V !== void 0)
|
|
1344
|
+
return V;
|
|
1344
1345
|
if (!De(e))
|
|
1345
1346
|
return e;
|
|
1346
1347
|
var xt = nt(e);
|
|
1347
1348
|
if (xt) {
|
|
1348
|
-
if (
|
|
1349
|
-
return
|
|
1349
|
+
if (V = rn(e), !i)
|
|
1350
|
+
return tn(e, V);
|
|
1350
1351
|
} else {
|
|
1351
|
-
var ye = de(e), Ft = ye == F || ye ==
|
|
1352
|
-
if (
|
|
1353
|
-
return
|
|
1354
|
-
if (ye ==
|
|
1352
|
+
var ye = de(e), Ft = ye == F || ye == N;
|
|
1353
|
+
if (bn(e))
|
|
1354
|
+
return Wa(e, i);
|
|
1355
|
+
if (ye == A || ye == d || Ft && !H) {
|
|
1355
1356
|
if (bt(e))
|
|
1356
|
-
return
|
|
1357
|
-
if (
|
|
1358
|
-
return
|
|
1357
|
+
return H ? e : {};
|
|
1358
|
+
if (V = on(Ft ? {} : e), !i)
|
|
1359
|
+
return an(e, ja(V, e));
|
|
1359
1360
|
} else {
|
|
1360
1361
|
if (!T[ye])
|
|
1361
|
-
return
|
|
1362
|
-
|
|
1362
|
+
return H ? e : {};
|
|
1363
|
+
V = sn(e, ye, tt, i);
|
|
1363
1364
|
}
|
|
1364
1365
|
}
|
|
1365
1366
|
Y || (Y = new me());
|
|
1366
1367
|
var Dt = Y.get(e);
|
|
1367
1368
|
if (Dt)
|
|
1368
1369
|
return Dt;
|
|
1369
|
-
if (Y.set(e,
|
|
1370
|
-
var
|
|
1371
|
-
return
|
|
1372
|
-
|
|
1373
|
-
}),
|
|
1370
|
+
if (Y.set(e, V), !xt)
|
|
1371
|
+
var Bt = c ? nn(e) : rt(e);
|
|
1372
|
+
return na(Bt || e, function(it, Be) {
|
|
1373
|
+
Bt && (Be = it, it = e[Be]), It(V, Be, tt(it, i, c, b, Be, e, Y));
|
|
1374
|
+
}), V;
|
|
1374
1375
|
}
|
|
1375
|
-
function
|
|
1376
|
-
return De(e) ?
|
|
1376
|
+
function Ha(e) {
|
|
1377
|
+
return De(e) ? da(e) : {};
|
|
1377
1378
|
}
|
|
1378
|
-
function
|
|
1379
|
+
function Ua(e, i, c) {
|
|
1379
1380
|
var b = i(e);
|
|
1380
|
-
return nt(e) ? b :
|
|
1381
|
+
return nt(e) ? b : ra(b, c(e));
|
|
1381
1382
|
}
|
|
1382
|
-
function
|
|
1383
|
+
function Va(e) {
|
|
1383
1384
|
return Ee.call(e);
|
|
1384
1385
|
}
|
|
1385
|
-
function
|
|
1386
|
-
if (!De(e) ||
|
|
1386
|
+
function za(e) {
|
|
1387
|
+
if (!De(e) || un(e))
|
|
1387
1388
|
return !1;
|
|
1388
|
-
var i = Et(e) || bt(e) ?
|
|
1389
|
+
var i = Et(e) || bt(e) ? la : M;
|
|
1389
1390
|
return i.test(fe(e));
|
|
1390
1391
|
}
|
|
1391
|
-
function
|
|
1392
|
+
function Ga(e) {
|
|
1392
1393
|
if (!$t(e))
|
|
1393
|
-
return
|
|
1394
|
+
return ha(e);
|
|
1394
1395
|
var i = [];
|
|
1395
1396
|
for (var c in Object(e))
|
|
1396
1397
|
se.call(e, c) && c != "constructor" && i.push(c);
|
|
1397
1398
|
return i;
|
|
1398
1399
|
}
|
|
1399
|
-
function
|
|
1400
|
+
function Wa(e, i) {
|
|
1400
1401
|
if (i)
|
|
1401
1402
|
return e.slice();
|
|
1402
1403
|
var c = new e.constructor(e.length);
|
|
@@ -1406,127 +1407,127 @@ Ve.exports;
|
|
|
1406
1407
|
var i = new e.constructor(e.byteLength);
|
|
1407
1408
|
return new wt(i).set(new wt(e)), i;
|
|
1408
1409
|
}
|
|
1409
|
-
function
|
|
1410
|
+
function qa(e, i) {
|
|
1410
1411
|
var c = i ? at(e.buffer) : e.buffer;
|
|
1411
1412
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1412
1413
|
}
|
|
1413
|
-
function
|
|
1414
|
+
function Xa(e, i, c) {
|
|
1414
1415
|
var b = i ? c(ht(e), !0) : ht(e);
|
|
1415
|
-
return vt(b,
|
|
1416
|
+
return vt(b, ta, new e.constructor());
|
|
1416
1417
|
}
|
|
1417
|
-
function
|
|
1418
|
+
function Ya(e) {
|
|
1418
1419
|
var i = new e.constructor(e.source, x.exec(e));
|
|
1419
1420
|
return i.lastIndex = e.lastIndex, i;
|
|
1420
1421
|
}
|
|
1421
|
-
function
|
|
1422
|
+
function Ja(e, i, c) {
|
|
1422
1423
|
var b = i ? c(pt(e), !0) : pt(e);
|
|
1423
|
-
return vt(b,
|
|
1424
|
+
return vt(b, aa, new e.constructor());
|
|
1424
1425
|
}
|
|
1425
|
-
function
|
|
1426
|
+
function Qa(e) {
|
|
1426
1427
|
return St ? Object(St.call(e)) : {};
|
|
1427
1428
|
}
|
|
1428
|
-
function
|
|
1429
|
+
function en(e, i) {
|
|
1429
1430
|
var c = i ? at(e.buffer) : e.buffer;
|
|
1430
1431
|
return new e.constructor(c, e.byteOffset, e.length);
|
|
1431
1432
|
}
|
|
1432
|
-
function
|
|
1433
|
+
function tn(e, i) {
|
|
1433
1434
|
var c = -1, b = e.length;
|
|
1434
1435
|
for (i || (i = Array(b)); ++c < b; )
|
|
1435
1436
|
i[c] = e[c];
|
|
1436
1437
|
return i;
|
|
1437
1438
|
}
|
|
1438
|
-
function
|
|
1439
|
+
function Ct(e, i, c, b) {
|
|
1439
1440
|
c || (c = {});
|
|
1440
|
-
for (var L = -1,
|
|
1441
|
-
var Y = i[L],
|
|
1442
|
-
It(c, Y,
|
|
1441
|
+
for (var L = -1, H = i.length; ++L < H; ) {
|
|
1442
|
+
var Y = i[L], V = b ? b(c[Y], e[Y], Y, c, e) : void 0;
|
|
1443
|
+
It(c, Y, V === void 0 ? e[Y] : V);
|
|
1443
1444
|
}
|
|
1444
1445
|
return c;
|
|
1445
1446
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1447
|
+
function an(e, i) {
|
|
1448
|
+
return Ct(e, Ot(e), i);
|
|
1448
1449
|
}
|
|
1449
|
-
function
|
|
1450
|
-
return
|
|
1450
|
+
function nn(e) {
|
|
1451
|
+
return Ua(e, rt, Ot);
|
|
1451
1452
|
}
|
|
1452
1453
|
function Fe(e, i) {
|
|
1453
1454
|
var c = e.__data__;
|
|
1454
|
-
return
|
|
1455
|
+
return ln(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1455
1456
|
}
|
|
1456
1457
|
function ge(e, i) {
|
|
1457
|
-
var c =
|
|
1458
|
-
return
|
|
1458
|
+
var c = oa(e, i);
|
|
1459
|
+
return za(c) ? c : void 0;
|
|
1459
1460
|
}
|
|
1460
|
-
var
|
|
1461
|
-
(Ye && de(new Ye(new ArrayBuffer(1))) !=
|
|
1462
|
-
var i = Ee.call(e), c = i ==
|
|
1461
|
+
var Ot = Tt ? qe(Tt, Object) : mn, de = Va;
|
|
1462
|
+
(Ye && de(new Ye(new ArrayBuffer(1))) != U || Se && de(new Se()) != D || Je && de(Je.resolve()) != z || Qe && de(new Qe()) != Z || et && de(new et()) != W) && (de = function(e) {
|
|
1463
|
+
var i = Ee.call(e), c = i == A ? e.constructor : void 0, b = c ? fe(c) : void 0;
|
|
1463
1464
|
if (b)
|
|
1464
1465
|
switch (b) {
|
|
1465
|
-
case va:
|
|
1466
|
-
return j;
|
|
1467
|
-
case ba:
|
|
1468
|
-
return D;
|
|
1469
|
-
case ha:
|
|
1470
|
-
return G;
|
|
1471
1466
|
case pa:
|
|
1472
|
-
return
|
|
1467
|
+
return U;
|
|
1473
1468
|
case ma:
|
|
1474
|
-
return
|
|
1469
|
+
return D;
|
|
1470
|
+
case ga:
|
|
1471
|
+
return z;
|
|
1472
|
+
case ya:
|
|
1473
|
+
return Z;
|
|
1474
|
+
case _a:
|
|
1475
|
+
return W;
|
|
1475
1476
|
}
|
|
1476
1477
|
return i;
|
|
1477
1478
|
});
|
|
1478
|
-
function
|
|
1479
|
+
function rn(e) {
|
|
1479
1480
|
var i = e.length, c = e.constructor(i);
|
|
1480
1481
|
return i && typeof e[0] == "string" && se.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1481
1482
|
}
|
|
1482
|
-
function
|
|
1483
|
-
return typeof e.constructor == "function" && !$t(e) ?
|
|
1483
|
+
function on(e) {
|
|
1484
|
+
return typeof e.constructor == "function" && !$t(e) ? Ha(ua(e)) : {};
|
|
1484
1485
|
}
|
|
1485
|
-
function
|
|
1486
|
+
function sn(e, i, c, b) {
|
|
1486
1487
|
var L = e.constructor;
|
|
1487
1488
|
switch (i) {
|
|
1488
|
-
case
|
|
1489
|
+
case q:
|
|
1489
1490
|
return at(e);
|
|
1490
1491
|
case v:
|
|
1491
1492
|
case p:
|
|
1492
1493
|
return new L(+e);
|
|
1493
|
-
case
|
|
1494
|
-
return
|
|
1495
|
-
case
|
|
1496
|
-
case M:
|
|
1497
|
-
case W:
|
|
1494
|
+
case U:
|
|
1495
|
+
return qa(e, b);
|
|
1496
|
+
case X:
|
|
1498
1497
|
case S:
|
|
1498
|
+
case P:
|
|
1499
|
+
case C:
|
|
1499
1500
|
case s:
|
|
1500
1501
|
case u:
|
|
1501
1502
|
case f:
|
|
1502
1503
|
case y:
|
|
1503
1504
|
case k:
|
|
1504
|
-
return
|
|
1505
|
+
return en(e, b);
|
|
1505
1506
|
case D:
|
|
1506
|
-
return
|
|
1507
|
+
return Xa(e, b, c);
|
|
1507
1508
|
case I:
|
|
1508
1509
|
case oe:
|
|
1509
1510
|
return new L(e);
|
|
1510
1511
|
case K:
|
|
1511
|
-
return
|
|
1512
|
+
return Ya(e);
|
|
1512
1513
|
case Z:
|
|
1513
|
-
return
|
|
1514
|
+
return Ja(e, b, c);
|
|
1514
1515
|
case ae:
|
|
1515
|
-
return
|
|
1516
|
+
return Qa(e);
|
|
1516
1517
|
}
|
|
1517
1518
|
}
|
|
1518
|
-
function
|
|
1519
|
-
return i = i ?? l, !!i && (typeof e == "number" ||
|
|
1519
|
+
function cn(e, i) {
|
|
1520
|
+
return i = i ?? l, !!i && (typeof e == "number" || R.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1520
1521
|
}
|
|
1521
|
-
function
|
|
1522
|
+
function ln(e) {
|
|
1522
1523
|
var i = typeof e;
|
|
1523
1524
|
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1524
1525
|
}
|
|
1525
|
-
function
|
|
1526
|
+
function un(e) {
|
|
1526
1527
|
return !!mt && mt in e;
|
|
1527
1528
|
}
|
|
1528
1529
|
function $t(e) {
|
|
1529
|
-
var i = e && e.constructor, c = typeof i == "function" && i.prototype ||
|
|
1530
|
+
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Ne;
|
|
1530
1531
|
return e === c;
|
|
1531
1532
|
}
|
|
1532
1533
|
function fe(e) {
|
|
@@ -1542,66 +1543,66 @@ Ve.exports;
|
|
|
1542
1543
|
}
|
|
1543
1544
|
return "";
|
|
1544
1545
|
}
|
|
1545
|
-
function
|
|
1546
|
+
function dn(e) {
|
|
1546
1547
|
return tt(e, !0, !0);
|
|
1547
1548
|
}
|
|
1548
|
-
function
|
|
1549
|
+
function At(e, i) {
|
|
1549
1550
|
return e === i || e !== e && i !== i;
|
|
1550
1551
|
}
|
|
1551
|
-
function
|
|
1552
|
-
return
|
|
1552
|
+
function fn(e) {
|
|
1553
|
+
return vn(e) && se.call(e, "callee") && (!fa.call(e, "callee") || Ee.call(e) == d);
|
|
1553
1554
|
}
|
|
1554
1555
|
var nt = Array.isArray;
|
|
1555
|
-
function
|
|
1556
|
-
return e != null &&
|
|
1556
|
+
function Nt(e) {
|
|
1557
|
+
return e != null && hn(e.length) && !Et(e);
|
|
1557
1558
|
}
|
|
1558
|
-
function
|
|
1559
|
-
return
|
|
1559
|
+
function vn(e) {
|
|
1560
|
+
return pn(e) && Nt(e);
|
|
1560
1561
|
}
|
|
1561
|
-
var
|
|
1562
|
+
var bn = ba || gn;
|
|
1562
1563
|
function Et(e) {
|
|
1563
1564
|
var i = De(e) ? Ee.call(e) : "";
|
|
1564
|
-
return i == F || i ==
|
|
1565
|
+
return i == F || i == N;
|
|
1565
1566
|
}
|
|
1566
|
-
function
|
|
1567
|
+
function hn(e) {
|
|
1567
1568
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
1568
1569
|
}
|
|
1569
1570
|
function De(e) {
|
|
1570
1571
|
var i = typeof e;
|
|
1571
1572
|
return !!e && (i == "object" || i == "function");
|
|
1572
1573
|
}
|
|
1573
|
-
function
|
|
1574
|
+
function pn(e) {
|
|
1574
1575
|
return !!e && typeof e == "object";
|
|
1575
1576
|
}
|
|
1576
1577
|
function rt(e) {
|
|
1577
|
-
return
|
|
1578
|
+
return Nt(e) ? Ka(e) : Ga(e);
|
|
1578
1579
|
}
|
|
1579
|
-
function
|
|
1580
|
+
function mn() {
|
|
1580
1581
|
return [];
|
|
1581
1582
|
}
|
|
1582
|
-
function
|
|
1583
|
+
function gn() {
|
|
1583
1584
|
return !1;
|
|
1584
1585
|
}
|
|
1585
|
-
n.exports =
|
|
1586
|
+
n.exports = dn;
|
|
1586
1587
|
})(Ve, Ve.exports);
|
|
1587
|
-
var
|
|
1588
|
-
const
|
|
1588
|
+
var Yr = Ve.exports;
|
|
1589
|
+
const Jr = /* @__PURE__ */ Xr(Yr), Qr = {
|
|
1589
1590
|
key: 0,
|
|
1590
1591
|
class: "sidebar-header"
|
|
1591
|
-
},
|
|
1592
|
+
}, ei = { class: "sidebar-content-container" }, ti = {
|
|
1592
1593
|
key: 0,
|
|
1593
1594
|
class: "sidebar-top"
|
|
1594
|
-
},
|
|
1595
|
+
}, ai = { "aria-label": "Main menu" }, ni = {
|
|
1595
1596
|
key: 0,
|
|
1596
1597
|
class: "level-primary top-items"
|
|
1597
|
-
},
|
|
1598
|
+
}, ri = {
|
|
1598
1599
|
key: 1,
|
|
1599
1600
|
class: "sidebar-level-divider",
|
|
1600
1601
|
role: "separator"
|
|
1601
|
-
},
|
|
1602
|
+
}, ii = {
|
|
1602
1603
|
key: 2,
|
|
1603
1604
|
class: "level-primary bottom-items"
|
|
1604
|
-
},
|
|
1605
|
+
}, oi = { class: "sidebar-footer" }, si = /* @__PURE__ */ ee({
|
|
1605
1606
|
__name: "AppSidebar",
|
|
1606
1607
|
props: {
|
|
1607
1608
|
topItems: {
|
|
@@ -1662,16 +1663,17 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1662
1663
|
setup(n, { emit: t }) {
|
|
1663
1664
|
const a = n;
|
|
1664
1665
|
ut((s) => ({
|
|
1665
|
-
"
|
|
1666
|
-
|
|
1667
|
-
"
|
|
1668
|
-
"
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
"
|
|
1672
|
-
"
|
|
1673
|
-
"
|
|
1674
|
-
"
|
|
1666
|
+
"5e08a746": Rt(ea),
|
|
1667
|
+
cd47b7de: o.value.mobileHeight,
|
|
1668
|
+
"0661b2aa": o.value.mobileTop,
|
|
1669
|
+
"27ed1c12": n.zIndex,
|
|
1670
|
+
db87f262: o.value.height,
|
|
1671
|
+
f23b26a6: o.value.top,
|
|
1672
|
+
"92f425fe": p.value.marginTop,
|
|
1673
|
+
"2fb60ceb": v.value.display,
|
|
1674
|
+
"03ae2c02": v.value.minHeight,
|
|
1675
|
+
"5521db08": w.value.top,
|
|
1676
|
+
de83841e: w.value.zIndex
|
|
1675
1677
|
}));
|
|
1676
1678
|
const r = dt(), l = g(() => !!r.header), d = g(() => !!r.top), o = g(() => ({
|
|
1677
1679
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
@@ -1686,7 +1688,7 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1686
1688
|
})), w = g(() => ({
|
|
1687
1689
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1688
1690
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1689
|
-
})), F = (s) =>
|
|
1691
|
+
})), F = (s) => Jr(s).map((f) => {
|
|
1690
1692
|
var y, k, E;
|
|
1691
1693
|
if (f) {
|
|
1692
1694
|
(!f.key || !((y = f.key) != null && y.trim())) && (f.key = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!f.testId || !((k = f.testId) != null && k.trim())) && (f.testId = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
@@ -1694,83 +1696,83 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1694
1696
|
x.parentKey = f.key, (!x.testId || !((E = x.testId) != null && E.trim())) && (x.testId = String(x.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1695
1697
|
}
|
|
1696
1698
|
return f;
|
|
1697
|
-
}),
|
|
1699
|
+
}), N = g(() => a.topItems.length ? F(a.topItems) : []), D = g(() => a.bottomItems.length ? F(a.bottomItems) : []), I = G(a.open), A = (s) => {
|
|
1698
1700
|
var u, f;
|
|
1699
1701
|
I.value !== s && (I.value = s, t("toggle", s)), s ? (u = document == null ? void 0 : document.body) == null || u.classList.add("kong-ui-app-sidebar-open") : (f = document == null ? void 0 : document.body) == null || f.classList.remove("kong-ui-app-sidebar-open"), K.value = !1;
|
|
1700
|
-
},
|
|
1701
|
-
a.mobileOverlayCloseOnClick &&
|
|
1702
|
-
}, K =
|
|
1702
|
+
}, z = () => {
|
|
1703
|
+
a.mobileOverlayCloseOnClick && A(!1);
|
|
1704
|
+
}, K = G(!1), Z = (s) => {
|
|
1703
1705
|
K.value = !0, t("click", s), setTimeout(() => {
|
|
1704
|
-
|
|
1706
|
+
A(!1);
|
|
1705
1707
|
}, a.mobileCloseDelay);
|
|
1706
1708
|
};
|
|
1707
1709
|
Ze(() => a.open, (s) => {
|
|
1708
|
-
|
|
1710
|
+
A(s);
|
|
1709
1711
|
});
|
|
1710
|
-
const { debounce: oe } =
|
|
1711
|
-
I.value &&
|
|
1712
|
-
}, 200),
|
|
1713
|
-
|
|
1714
|
-
},
|
|
1712
|
+
const { debounce: oe } = Qt(), ae = oe(() => {
|
|
1713
|
+
I.value && W.value !== (window == null ? void 0 : window.innerWidth) && (W.value = window == null ? void 0 : window.innerWidth, A(!1));
|
|
1714
|
+
}, 200), W = G(), q = G(!1), U = G(), X = () => {
|
|
1715
|
+
q.value || (q.value = !0, clearTimeout(U.value), U.value = setTimeout(() => q.value = !1, 1300));
|
|
1716
|
+
}, S = G(null), P = g(() => I.value && a.mobileEnabled), C = async (s) => {
|
|
1715
1717
|
var u, f;
|
|
1716
|
-
s ? (await
|
|
1718
|
+
s ? (await In(), await new Promise((y) => setTimeout(y, 300)), (u = S.value) == null || u.activate()) : (f = S.value) == null || f.deactivate();
|
|
1717
1719
|
};
|
|
1718
|
-
return Ze(
|
|
1719
|
-
s ? await
|
|
1720
|
+
return Ze(P, async (s) => {
|
|
1721
|
+
s ? await C(!0) : await C(!1);
|
|
1720
1722
|
}, { immediate: !0 }), We(() => {
|
|
1721
|
-
|
|
1722
|
-
}),
|
|
1723
|
-
window.removeEventListener("resize", ae), window.removeEventListener("resize",
|
|
1724
|
-
}), (s, u) => (h(), m(
|
|
1723
|
+
W.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", ae), window.addEventListener("resize", X);
|
|
1724
|
+
}), Vt(() => {
|
|
1725
|
+
window.removeEventListener("resize", ae), window.removeEventListener("resize", X);
|
|
1726
|
+
}), (s, u) => (h(), m(Oe, null, [
|
|
1725
1727
|
I.value && n.mobileOverlay && n.mobileEnabled ? (h(), m("div", {
|
|
1726
1728
|
key: 0,
|
|
1727
1729
|
class: "kong-ui-app-sidebar-overlay",
|
|
1728
|
-
onClick:
|
|
1729
|
-
})) :
|
|
1730
|
-
we(
|
|
1730
|
+
onClick: z
|
|
1731
|
+
})) : $("", !0),
|
|
1732
|
+
we(Rt(qr), {
|
|
1731
1733
|
ref_key: "focusTrap",
|
|
1732
|
-
ref:
|
|
1734
|
+
ref: S,
|
|
1733
1735
|
active: !1,
|
|
1734
1736
|
"allow-outside-click": "",
|
|
1735
1737
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1736
1738
|
}, {
|
|
1737
|
-
default:
|
|
1739
|
+
default: B(() => [
|
|
1738
1740
|
_("aside", {
|
|
1739
1741
|
class: re(["kong-ui-app-sidebar", {
|
|
1740
1742
|
"sidebar-open": I.value,
|
|
1741
1743
|
"no-sidebar-header": !l.value,
|
|
1742
1744
|
"mobile-header-hidden": n.mobileEnabled && (!l.value || !n.mobileHeaderVisible),
|
|
1743
1745
|
"mobile-disabled": !n.mobileEnabled,
|
|
1744
|
-
"disable-transitions":
|
|
1746
|
+
"disable-transitions": q.value
|
|
1745
1747
|
}]),
|
|
1746
1748
|
tabindex: "-1"
|
|
1747
1749
|
}, [
|
|
1748
|
-
l.value ? (h(), m("div",
|
|
1750
|
+
l.value ? (h(), m("div", Qr, [
|
|
1749
1751
|
O(s.$slots, "header", {}, void 0, !0)
|
|
1750
|
-
])) :
|
|
1751
|
-
_("div",
|
|
1752
|
-
d.value ? (h(), m("div",
|
|
1752
|
+
])) : $("", !0),
|
|
1753
|
+
_("div", ei, [
|
|
1754
|
+
d.value ? (h(), m("div", ti, [
|
|
1753
1755
|
O(s.$slots, "top", {}, void 0, !0)
|
|
1754
|
-
])) :
|
|
1755
|
-
_("nav",
|
|
1756
|
-
|
|
1757
|
-
(h(!0), m(
|
|
1756
|
+
])) : $("", !0),
|
|
1757
|
+
_("nav", ai, [
|
|
1758
|
+
N.value.length ? (h(), m("ul", ni, [
|
|
1759
|
+
(h(!0), m(Oe, null, Ae(N.value, (f) => (h(), Q(Lt, {
|
|
1758
1760
|
key: f.name,
|
|
1759
1761
|
item: f,
|
|
1760
1762
|
onClick: Z
|
|
1761
1763
|
}, null, 8, ["item"]))), 128))
|
|
1762
|
-
])) :
|
|
1763
|
-
|
|
1764
|
-
D.value.length ? (h(), m("ul",
|
|
1765
|
-
(h(!0), m(
|
|
1764
|
+
])) : $("", !0),
|
|
1765
|
+
N.value.length && D.value.length ? (h(), m("div", ri)) : $("", !0),
|
|
1766
|
+
D.value.length ? (h(), m("ul", ii, [
|
|
1767
|
+
(h(!0), m(Oe, null, Ae(D.value, (f) => (h(), Q(Lt, {
|
|
1766
1768
|
key: f.name,
|
|
1767
1769
|
item: f,
|
|
1768
1770
|
onClick: Z
|
|
1769
1771
|
}, null, 8, ["item"]))), 128))
|
|
1770
|
-
])) :
|
|
1772
|
+
])) : $("", !0)
|
|
1771
1773
|
])
|
|
1772
1774
|
]),
|
|
1773
|
-
_("div",
|
|
1775
|
+
_("div", oi, [
|
|
1774
1776
|
O(s.$slots, "footer", {}, void 0, !0)
|
|
1775
1777
|
])
|
|
1776
1778
|
], 2)
|
|
@@ -1780,11 +1782,11 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1780
1782
|
], 64));
|
|
1781
1783
|
}
|
|
1782
1784
|
});
|
|
1783
|
-
const
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
],
|
|
1785
|
+
const ci = /* @__PURE__ */ te(si, [["__scopeId", "data-v-150488ef"]]), ft = (n) => (ze("data-v-00a332e0"), n = n(), Ge(), n), li = ["aria-label", "onClick"], ui = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), di = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), fi = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), vi = [
|
|
1786
|
+
ui,
|
|
1787
|
+
di,
|
|
1788
|
+
fi
|
|
1789
|
+
], bi = /* @__PURE__ */ ee({
|
|
1788
1790
|
__name: "SidebarToggle",
|
|
1789
1791
|
props: {
|
|
1790
1792
|
active: {
|
|
@@ -1794,7 +1796,7 @@ const oi = /* @__PURE__ */ te(ii, [["__scopeId", "data-v-2af581b2"]]), ft = (n)
|
|
|
1794
1796
|
},
|
|
1795
1797
|
emits: ["toggle"],
|
|
1796
1798
|
setup(n, { emit: t }) {
|
|
1797
|
-
const a = n, r =
|
|
1799
|
+
const a = n, r = G(a.active || !1), l = () => {
|
|
1798
1800
|
r.value = !r.value, t("toggle", r.value);
|
|
1799
1801
|
};
|
|
1800
1802
|
return Ze(() => a.active, (d) => {
|
|
@@ -1805,17 +1807,17 @@ const oi = /* @__PURE__ */ te(ii, [["__scopeId", "data-v-2af581b2"]]), ft = (n)
|
|
|
1805
1807
|
class: re(["sidebar-menu-toggle", { active: r.value }]),
|
|
1806
1808
|
href: "#",
|
|
1807
1809
|
role: "button",
|
|
1808
|
-
onClick:
|
|
1809
|
-
},
|
|
1810
|
+
onClick: Cn(l, ["prevent"])
|
|
1811
|
+
}, vi, 10, li));
|
|
1810
1812
|
}
|
|
1811
1813
|
});
|
|
1812
|
-
const
|
|
1814
|
+
const hi = /* @__PURE__ */ te(bi, [["__scopeId", "data-v-00a332e0"]]), pi = "#ffffff", Ut = "#000933", mi = "#000933", gi = "#ffffff", yi = "0px", _i = "16px", wi = (n) => (ze("data-v-f5498742"), n = n(), Ge(), n), Ti = { id: "kong-ui-app-layout-notification" }, ki = { class: "mobile-logo" }, Si = {
|
|
1813
1815
|
key: 0,
|
|
1814
1816
|
class: "navbar-logo"
|
|
1815
|
-
},
|
|
1817
|
+
}, Ii = {
|
|
1816
1818
|
class: "kong-ui-app-layout-main",
|
|
1817
1819
|
"data-testid": "kong-ui-app-layout-main"
|
|
1818
|
-
},
|
|
1820
|
+
}, Ci = { class: "kong-ui-app-layout-content" }, Oi = { class: "kong-ui-app-layout-content-inner" }, $i = /* @__PURE__ */ wi(() => /* @__PURE__ */ _("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), Ai = /* @__PURE__ */ ee({
|
|
1819
1821
|
__name: "AppLayout",
|
|
1820
1822
|
props: {
|
|
1821
1823
|
hideDefaultSlot: {
|
|
@@ -1853,14 +1855,15 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1853
1855
|
emits: ["sidebar-click"],
|
|
1854
1856
|
setup(n, { emit: t }) {
|
|
1855
1857
|
const a = n;
|
|
1856
|
-
ut((
|
|
1857
|
-
"
|
|
1858
|
-
|
|
1859
|
-
"
|
|
1860
|
-
|
|
1861
|
-
"
|
|
1858
|
+
ut((S) => ({
|
|
1859
|
+
"95424a9e": z.value,
|
|
1860
|
+
"18e2fd2b": Z.value,
|
|
1861
|
+
"1d761da1": oe.value,
|
|
1862
|
+
75200939: K.value,
|
|
1863
|
+
"9a3488c6": ae.value,
|
|
1864
|
+
b4e67760: W.value
|
|
1862
1865
|
}));
|
|
1863
|
-
const r = dt(), l =
|
|
1866
|
+
const r = dt(), l = Pe({
|
|
1864
1867
|
navbarLeft: g(() => !!r["navbar-left"]),
|
|
1865
1868
|
navbarCenter: g(() => !!r["navbar-center"]),
|
|
1866
1869
|
navbarRight: g(() => !!r["navbar-right"]),
|
|
@@ -1869,59 +1872,59 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1869
1872
|
sidebarHeader: g(() => !!r["sidebar-header"]),
|
|
1870
1873
|
sidebarTop: g(() => !!r["sidebar-top"]),
|
|
1871
1874
|
sidebarFooter: g(() => !!r["sidebar-footer"])
|
|
1872
|
-
}), d = g(() => a.hideDefaultSlot), o =
|
|
1875
|
+
}), d = g(() => a.hideDefaultSlot), o = Pe({
|
|
1873
1876
|
hidden: g(() => a.navbarHidden)
|
|
1874
|
-
}), v =
|
|
1877
|
+
}), v = Pe({
|
|
1875
1878
|
topItems: g(() => a.sidebarTopItems),
|
|
1876
1879
|
bottomItems: g(() => a.sidebarBottomItems),
|
|
1877
1880
|
open: g(() => a.sidebarOpen),
|
|
1878
1881
|
hidden: g(() => a.sidebarHidden)
|
|
1879
|
-
}), p = (
|
|
1880
|
-
t("sidebar-click",
|
|
1881
|
-
}, w =
|
|
1882
|
-
w.value =
|
|
1882
|
+
}), p = (S) => {
|
|
1883
|
+
t("sidebar-click", S);
|
|
1884
|
+
}, w = G(!1), F = (S) => {
|
|
1885
|
+
w.value = S;
|
|
1883
1886
|
};
|
|
1884
|
-
|
|
1885
|
-
w.value =
|
|
1887
|
+
On(() => {
|
|
1888
|
+
w.value = $n(v, "open").value || !1;
|
|
1886
1889
|
});
|
|
1887
|
-
const
|
|
1888
|
-
if (
|
|
1889
|
-
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1890
|
+
const N = G(0), D = G(60), I = G(0), A = g(() => o.hidden ? I.value : D.value + I.value), z = g(() => a.theme === "light" ? ea : Ut), K = g(() => a.theme === "light" ? mi : gi), Z = g(() => a.theme === "light" ? pi : Ut), oe = g(() => a.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), ae = g(() => `${A.value}px`), W = g(() => v.hidden || o.hidden ? yi : _i), { debounce: q } = Qt(), U = q((S = !1) => {
|
|
1891
|
+
if (S || N.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1892
|
+
N.value = window == null ? void 0 : window.innerWidth;
|
|
1893
|
+
const P = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1894
|
+
P && (I.value = P.offsetHeight);
|
|
1892
1895
|
}
|
|
1893
|
-
}, 200),
|
|
1896
|
+
}, 200), X = G();
|
|
1894
1897
|
return We(() => {
|
|
1895
|
-
var
|
|
1896
|
-
(
|
|
1897
|
-
const
|
|
1898
|
-
|
|
1898
|
+
var P, C;
|
|
1899
|
+
(P = document == null ? void 0 : document.body) == null || P.classList.add("kong-ui-app-layout-body"), (C = document == null ? void 0 : document.documentElement) == null || C.classList.add("kong-ui-app-layout-html"), N.value = window == null ? void 0 : window.innerWidth, U(!0);
|
|
1900
|
+
const S = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1901
|
+
S && (X.value = new ResizeObserver((s) => {
|
|
1899
1902
|
window.requestAnimationFrame(() => {
|
|
1900
|
-
if (!(!Array.isArray(
|
|
1901
|
-
for (const
|
|
1902
|
-
const
|
|
1903
|
-
I.value !==
|
|
1903
|
+
if (!(!Array.isArray(s) || !s.length))
|
|
1904
|
+
for (const u of s) {
|
|
1905
|
+
const f = u.contentRect.height;
|
|
1906
|
+
I.value !== f && (I.value = f);
|
|
1904
1907
|
}
|
|
1905
1908
|
});
|
|
1906
|
-
}),
|
|
1907
|
-
}),
|
|
1908
|
-
|
|
1909
|
-
}), (
|
|
1909
|
+
}), X.value.observe(S)), window.addEventListener("resize", U);
|
|
1910
|
+
}), Vt(() => {
|
|
1911
|
+
X.value && X.value.disconnect(), window.removeEventListener("resize", U);
|
|
1912
|
+
}), (S, P) => (h(), m("div", {
|
|
1910
1913
|
class: re(["kong-ui-app-layout", [
|
|
1911
1914
|
{ "navbar-hidden": o.hidden },
|
|
1912
1915
|
{ "sidebar-hidden": v.hidden }
|
|
1913
1916
|
]])
|
|
1914
1917
|
}, [
|
|
1915
|
-
_("div",
|
|
1916
|
-
O(
|
|
1918
|
+
_("div", Ti, [
|
|
1919
|
+
O(S.$slots, "notification", {}, void 0, !0)
|
|
1917
1920
|
]),
|
|
1918
|
-
o.hidden ?
|
|
1921
|
+
o.hidden ? $("", !0) : (h(), Q(ur, {
|
|
1919
1922
|
key: String(v.hidden),
|
|
1920
1923
|
"left-offset": v.hidden ? 0 : void 0,
|
|
1921
1924
|
"top-offset": I.value
|
|
1922
|
-
},
|
|
1923
|
-
"mobile-sidebar-toggle":
|
|
1924
|
-
v.hidden ?
|
|
1925
|
+
}, Me({
|
|
1926
|
+
"mobile-sidebar-toggle": B(() => [
|
|
1927
|
+
v.hidden ? $("", !0) : (h(), Q(hi, {
|
|
1925
1928
|
key: 0,
|
|
1926
1929
|
active: w.value,
|
|
1927
1930
|
onToggle: F
|
|
@@ -1931,112 +1934,112 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1931
1934
|
}, [
|
|
1932
1935
|
l.navbarMobileLogo ? {
|
|
1933
1936
|
name: "mobile-logo",
|
|
1934
|
-
fn:
|
|
1935
|
-
_("div",
|
|
1936
|
-
O(
|
|
1937
|
+
fn: B(() => [
|
|
1938
|
+
_("div", ki, [
|
|
1939
|
+
O(S.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1937
1940
|
])
|
|
1938
1941
|
]),
|
|
1939
1942
|
key: "0"
|
|
1940
1943
|
} : void 0,
|
|
1941
1944
|
l.navbarLogo ? {
|
|
1942
1945
|
name: "logo",
|
|
1943
|
-
fn:
|
|
1944
|
-
v.hidden ? (h(), m("div",
|
|
1945
|
-
O(
|
|
1946
|
-
])) :
|
|
1946
|
+
fn: B(() => [
|
|
1947
|
+
v.hidden ? (h(), m("div", Si, [
|
|
1948
|
+
O(S.$slots, "navbar-logo", {}, void 0, !0)
|
|
1949
|
+
])) : $("", !0)
|
|
1947
1950
|
]),
|
|
1948
1951
|
key: "1"
|
|
1949
1952
|
} : void 0,
|
|
1950
1953
|
l.navbarLeft ? {
|
|
1951
1954
|
name: "left",
|
|
1952
|
-
fn:
|
|
1953
|
-
O(
|
|
1955
|
+
fn: B(() => [
|
|
1956
|
+
O(S.$slots, "navbar-left", {}, void 0, !0)
|
|
1954
1957
|
]),
|
|
1955
1958
|
key: "2"
|
|
1956
1959
|
} : void 0,
|
|
1957
1960
|
l.navbarCenter ? {
|
|
1958
1961
|
name: "center",
|
|
1959
|
-
fn:
|
|
1960
|
-
O(
|
|
1962
|
+
fn: B(() => [
|
|
1963
|
+
O(S.$slots, "navbar-center", {}, void 0, !0)
|
|
1961
1964
|
]),
|
|
1962
1965
|
key: "3"
|
|
1963
1966
|
} : void 0,
|
|
1964
1967
|
l.navbarRight ? {
|
|
1965
1968
|
name: "right",
|
|
1966
|
-
fn:
|
|
1967
|
-
O(
|
|
1969
|
+
fn: B(() => [
|
|
1970
|
+
O(S.$slots, "navbar-right", {}, void 0, !0)
|
|
1968
1971
|
]),
|
|
1969
1972
|
key: "4"
|
|
1970
1973
|
} : void 0
|
|
1971
1974
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1972
|
-
v.hidden ?
|
|
1975
|
+
v.hidden ? $("", !0) : (h(), Q(ci, {
|
|
1973
1976
|
key: 1,
|
|
1974
1977
|
"bottom-items": v.bottomItems,
|
|
1975
1978
|
"header-height": D.value,
|
|
1976
1979
|
"mobile-enabled": "",
|
|
1977
1980
|
"mobile-header-visible": !1,
|
|
1978
|
-
"mobile-top-offset":
|
|
1981
|
+
"mobile-top-offset": A.value,
|
|
1979
1982
|
open: w.value,
|
|
1980
1983
|
"top-items": v.topItems,
|
|
1981
1984
|
"top-offset": I.value,
|
|
1982
1985
|
onClick: p,
|
|
1983
1986
|
onToggle: F
|
|
1984
|
-
},
|
|
1987
|
+
}, Me({ _: 2 }, [
|
|
1985
1988
|
l.sidebarHeader ? {
|
|
1986
1989
|
name: "header",
|
|
1987
|
-
fn:
|
|
1988
|
-
O(
|
|
1990
|
+
fn: B(() => [
|
|
1991
|
+
O(S.$slots, "sidebar-header", {}, void 0, !0)
|
|
1989
1992
|
]),
|
|
1990
1993
|
key: "0"
|
|
1991
1994
|
} : void 0,
|
|
1992
1995
|
l.sidebarTop ? {
|
|
1993
1996
|
name: "top",
|
|
1994
|
-
fn:
|
|
1995
|
-
O(
|
|
1997
|
+
fn: B(() => [
|
|
1998
|
+
O(S.$slots, "sidebar-top", {}, void 0, !0)
|
|
1996
1999
|
]),
|
|
1997
2000
|
key: "1"
|
|
1998
2001
|
} : void 0,
|
|
1999
2002
|
l.sidebarFooter ? {
|
|
2000
2003
|
name: "footer",
|
|
2001
|
-
fn:
|
|
2002
|
-
O(
|
|
2004
|
+
fn: B(() => [
|
|
2005
|
+
O(S.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2003
2006
|
]),
|
|
2004
2007
|
key: "2"
|
|
2005
2008
|
} : void 0
|
|
2006
2009
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2007
|
-
_("main",
|
|
2008
|
-
_("div",
|
|
2010
|
+
_("main", Ii, [
|
|
2011
|
+
_("div", Ci, [
|
|
2009
2012
|
_("div", Oi, [
|
|
2010
|
-
|
|
2011
|
-
O(
|
|
2012
|
-
d.value ?
|
|
2013
|
+
$i,
|
|
2014
|
+
O(S.$slots, "app-error", {}, void 0, !0),
|
|
2015
|
+
d.value ? $("", !0) : O(S.$slots, "default", { key: 0 }, void 0, !0)
|
|
2013
2016
|
])
|
|
2014
2017
|
])
|
|
2015
2018
|
])
|
|
2016
2019
|
], 2));
|
|
2017
2020
|
}
|
|
2018
2021
|
});
|
|
2019
|
-
const Ni = /* @__PURE__ */ te(
|
|
2022
|
+
const Ni = /* @__PURE__ */ te(Ai, [["__scopeId", "data-v-f5498742"]]), Ei = (n) => (ze("data-v-d7e33427"), n = n(), Ge(), n), xi = { class: "kong-ui-app-page-header" }, Fi = {
|
|
2020
2023
|
key: 0,
|
|
2021
2024
|
class: "page-header-breadcrumbs",
|
|
2022
2025
|
"data-testid": "page-header-breadcrumbs"
|
|
2023
|
-
},
|
|
2026
|
+
}, Di = /* @__PURE__ */ Ei(() => /* @__PURE__ */ _("span", { class: "page-header-breadcrumb-divider" }, "/", -1)), Bi = { class: "page-header-title-section" }, Ri = { class: "page-header-title-wrapper" }, Li = {
|
|
2024
2027
|
key: 0,
|
|
2025
2028
|
class: "page-header-title-before",
|
|
2026
2029
|
"data-testid": "page-header-title-before"
|
|
2027
|
-
},
|
|
2030
|
+
}, Pi = ["title"], Mi = {
|
|
2028
2031
|
key: 1,
|
|
2029
2032
|
class: "page-header-title-after",
|
|
2030
2033
|
"data-testid": "page-header-title-after"
|
|
2031
|
-
},
|
|
2034
|
+
}, Zi = {
|
|
2032
2035
|
key: 0,
|
|
2033
2036
|
class: "page-header-actions",
|
|
2034
2037
|
"data-testid": "page-header-actions"
|
|
2035
|
-
},
|
|
2038
|
+
}, Ki = {
|
|
2036
2039
|
key: 1,
|
|
2037
2040
|
class: "page-header-section-below",
|
|
2038
2041
|
"data-testid": "page-header-section-below"
|
|
2039
|
-
},
|
|
2042
|
+
}, ji = /* @__PURE__ */ ee({
|
|
2040
2043
|
__name: "AppPageHeader",
|
|
2041
2044
|
props: {
|
|
2042
2045
|
title: {
|
|
@@ -2055,48 +2058,48 @@ const Ni = /* @__PURE__ */ te($i, [["__scopeId", "data-v-f81adf4e"]]), Ai = (n)
|
|
|
2055
2058
|
}), r = (d, o) => d.key || `breadcrumb-${o}`, l = g(() => t.breadcrumbs.map((d, o) => `icon-${r(d, o)}`) || []);
|
|
2056
2059
|
return (d, o) => {
|
|
2057
2060
|
const v = ce("KBreadcrumbs");
|
|
2058
|
-
return h(), m("div",
|
|
2059
|
-
a.value ? (h(), m("div",
|
|
2060
|
-
we(v, { items: n.breadcrumbs },
|
|
2061
|
-
divider:
|
|
2062
|
-
|
|
2061
|
+
return h(), m("div", xi, [
|
|
2062
|
+
a.value ? (h(), m("div", Fi, [
|
|
2063
|
+
we(v, { items: n.breadcrumbs }, Me({
|
|
2064
|
+
divider: B(() => [
|
|
2065
|
+
Di
|
|
2063
2066
|
]),
|
|
2064
2067
|
_: 2
|
|
2065
2068
|
}, [
|
|
2066
|
-
|
|
2069
|
+
Ae(l.value, (p) => ({
|
|
2067
2070
|
name: p,
|
|
2068
|
-
fn:
|
|
2071
|
+
fn: B(() => [
|
|
2069
2072
|
O(d.$slots, p, {}, void 0, !0)
|
|
2070
2073
|
])
|
|
2071
2074
|
}))
|
|
2072
2075
|
]), 1032, ["items"])
|
|
2073
|
-
])) :
|
|
2074
|
-
_("div",
|
|
2076
|
+
])) : $("", !0),
|
|
2077
|
+
_("div", Bi, [
|
|
2075
2078
|
_("div", Ri, [
|
|
2076
|
-
d.$slots["title-before"] ? (h(), m("div",
|
|
2079
|
+
d.$slots["title-before"] ? (h(), m("div", Li, [
|
|
2077
2080
|
O(d.$slots, "title-before", {}, void 0, !0)
|
|
2078
|
-
])) :
|
|
2081
|
+
])) : $("", !0),
|
|
2079
2082
|
_("h1", {
|
|
2080
2083
|
class: "page-header-title",
|
|
2081
2084
|
"data-testid": "page-header-title",
|
|
2082
2085
|
title: n.title
|
|
2083
|
-
}, J(n.title), 9,
|
|
2086
|
+
}, J(n.title), 9, Pi),
|
|
2084
2087
|
d.$slots["title-after"] ? (h(), m("div", Mi, [
|
|
2085
2088
|
O(d.$slots, "title-after", {}, void 0, !0)
|
|
2086
|
-
])) :
|
|
2089
|
+
])) : $("", !0)
|
|
2087
2090
|
]),
|
|
2088
|
-
d.$slots.actions ? (h(), m("div",
|
|
2091
|
+
d.$slots.actions ? (h(), m("div", Zi, [
|
|
2089
2092
|
O(d.$slots, "actions", {}, void 0, !0)
|
|
2090
|
-
])) :
|
|
2093
|
+
])) : $("", !0)
|
|
2091
2094
|
]),
|
|
2092
|
-
d.$slots.below ? (h(), m("div",
|
|
2095
|
+
d.$slots.below ? (h(), m("div", Ki, [
|
|
2093
2096
|
O(d.$slots, "below", {}, void 0, !0)
|
|
2094
|
-
])) :
|
|
2097
|
+
])) : $("", !0)
|
|
2095
2098
|
]);
|
|
2096
2099
|
};
|
|
2097
2100
|
}
|
|
2098
2101
|
});
|
|
2099
|
-
const
|
|
2102
|
+
const Gi = /* @__PURE__ */ te(ji, [["__scopeId", "data-v-d7e33427"]]), Wi = {
|
|
2100
2103
|
// Customize Vue plugin options as desired
|
|
2101
2104
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2102
2105
|
install: (n, t = {}) => {
|
|
@@ -2104,13 +2107,13 @@ const zi = /* @__PURE__ */ te(Ki, [["__scopeId", "data-v-d7e33427"]]), Gi = {
|
|
|
2104
2107
|
}
|
|
2105
2108
|
};
|
|
2106
2109
|
export {
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
+
Ui as AccountDropdown,
|
|
2111
|
+
Vi as AppAboutSection,
|
|
2112
|
+
zi as AppError,
|
|
2110
2113
|
Ni as AppLayout,
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2114
|
+
ur as AppNavbar,
|
|
2115
|
+
Gi as AppPageHeader,
|
|
2116
|
+
ci as AppSidebar,
|
|
2117
|
+
hi as SidebarToggle,
|
|
2118
|
+
Wi as default
|
|
2116
2119
|
};
|