@kong-ui-public/app-layout 2.1.7 → 2.1.8-pr.977.57cbfaf7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-layout.es.js +549 -552
- 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/aboutSection/AppAboutSection.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/types/constants.d.ts +0 -2
- package/dist/types/constants.d.ts.map +0 -1
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 R, renderSlot as O, createElementBlock as m, Fragment as Ce, renderList as Ne, normalizeClass as re, createTextVNode as ct, toDisplayString as J, computed as g, createSlots as Pe, createVNode as we, createCommentVNode as C, createElementVNode as _, createStaticVNode as pn, pushScopeId as ze, popScopeId as Ge, useCssVars as ut, useSlots as dt, reactive as Me, onMounted as We, resolveDynamicComponent as mn, withKeys as gn, ref as q, watch as Ze, onUnmounted as yn, Comment as _n, cloneVNode as wn, onBeforeUnmount as Ht, unref as Tn, nextTick as kn, withModifiers as Sn, watchEffect as In, toRef as On } from "vue";
|
|
2
|
+
const Cn = /* @__PURE__ */ ee({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
5
5
|
options: {
|
|
@@ -26,16 +26,16 @@ const An = /* @__PURE__ */ ee({
|
|
|
26
26
|
"trigger-text": n.userInitials,
|
|
27
27
|
width: n.width
|
|
28
28
|
}, {
|
|
29
|
-
items:
|
|
29
|
+
items: R(({ handleSelection: d }) => [
|
|
30
30
|
O(t.$slots, "default", {}, () => [
|
|
31
|
-
(h(!0), m(
|
|
31
|
+
(h(!0), m(Ce, null, Ne(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: R(() => [
|
|
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
|
+
}, Hi = /* @__PURE__ */ te(Cn, [["__scopeId", "data-v-58c79282"]]), $n = {
|
|
58
58
|
class: "about-section-title",
|
|
59
59
|
"data-testid": "about-section-title"
|
|
60
|
-
},
|
|
60
|
+
}, Nn = { class: "about-section-header-end" }, An = {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "about-section-timestamps-created",
|
|
63
63
|
"data-testid": "about-section-timestamps-created"
|
|
64
|
-
},
|
|
64
|
+
}, En = {
|
|
65
65
|
key: 1,
|
|
66
66
|
class: "about-section-timestamps-arrow"
|
|
67
|
-
},
|
|
67
|
+
}, xn = {
|
|
68
68
|
key: 2,
|
|
69
69
|
class: "about-section-timestamps-modified",
|
|
70
70
|
"data-testid": "about-section-timestamps-modified"
|
|
71
|
-
},
|
|
71
|
+
}, Fn = {
|
|
72
72
|
key: 1,
|
|
73
73
|
class: "about-section-actions",
|
|
74
74
|
"data-testid": "about-section-actions"
|
|
75
|
-
},
|
|
75
|
+
}, Dn = {
|
|
76
76
|
key: 0,
|
|
77
77
|
"data-testid": "about-section-loading-skeleton"
|
|
78
|
-
},
|
|
78
|
+
}, Rn = { key: 1 }, Bn = {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "about-section-description",
|
|
81
81
|
"data-testid": "about-section-description"
|
|
82
|
-
},
|
|
82
|
+
}, Ln = {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: "about-section-content",
|
|
85
85
|
"data-testid": "about-section-content"
|
|
86
|
-
},
|
|
86
|
+
}, Mn = {
|
|
87
87
|
key: 2,
|
|
88
88
|
"data-testid": "about-divider-section-separator"
|
|
89
|
-
},
|
|
89
|
+
}, Pn = {
|
|
90
90
|
key: 3,
|
|
91
91
|
class: "about-divider-section",
|
|
92
92
|
"data-testid": "about-divider-section"
|
|
93
|
-
},
|
|
93
|
+
}, Zn = /* @__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
|
-
|
|
131
|
-
n.isLoading ? (h(), m("div",
|
|
129
|
+
return h(), Q(o, { class: "kong-ui-app-about-section" }, Pe({
|
|
130
|
+
default: R(() => [
|
|
131
|
+
n.isLoading ? (h(), m("div", Dn, [
|
|
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", Rn, [
|
|
141
|
+
n.description ? (h(), m("p", Bn, J(n.description), 1)) : C("", !0),
|
|
142
|
+
r.$slots.default ? (h(), m("div", Ln, [
|
|
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
|
+
])) : C("", !0),
|
|
145
|
+
r.$slots["divider-section"] ? (h(), m("hr", Mn)) : C("", !0),
|
|
146
|
+
r.$slots["divider-section"] ? (h(), m("div", Pn, [
|
|
147
147
|
O(r.$slots, "divider-section", {}, void 0, !0)
|
|
148
|
-
])) :
|
|
148
|
+
])) : C("", !0)
|
|
149
149
|
]))
|
|
150
150
|
]),
|
|
151
151
|
_: 2
|
|
152
152
|
}, [
|
|
153
153
|
n.title ? {
|
|
154
154
|
name: "title",
|
|
155
|
-
fn:
|
|
156
|
-
_("span",
|
|
155
|
+
fn: R(() => [
|
|
156
|
+
_("span", $n, 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: R(() => [
|
|
163
|
+
_("div", Nn, [
|
|
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", An, J(n.createdLabel) + ": " + J(n.created), 1)) : C("", !0),
|
|
169
|
+
n.created && a.value ? (h(), m("span", En, "->")) : C("", !0),
|
|
170
|
+
a.value ? (h(), m("span", xn, J(n.modifiedLabel) + ": " + J(n.modified), 1)) : C("", !0)
|
|
171
|
+
], 2)) : C("", !0),
|
|
172
|
+
r.$slots.actions ? (h(), m("div", Fn, [
|
|
173
173
|
O(r.$slots, "actions", {}, void 0, !0)
|
|
174
|
-
])) :
|
|
174
|
+
])) : C("", !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 Ui = /* @__PURE__ */ te(Zn, [["__scopeId", "data-v-d4c8058d"]]), Kn = {}, jn = {
|
|
184
184
|
fill: "none",
|
|
185
185
|
height: "130",
|
|
186
186
|
width: "130",
|
|
187
187
|
xmlns: "http://www.w3.org/2000/svg"
|
|
188
|
-
},
|
|
189
|
-
|
|
188
|
+
}, Hn = /* @__PURE__ */ pn('<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), Un = [
|
|
189
|
+
Hn
|
|
190
190
|
];
|
|
191
|
-
function
|
|
192
|
-
return h(), m("svg",
|
|
191
|
+
function Vn(n, t) {
|
|
192
|
+
return h(), m("svg", jn, Un);
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const zn = /* @__PURE__ */ te(Kn, [["render", Vn]]), Ut = (n) => (ze("data-v-5cbccc66"), n = n(), Ge(), n), Gn = { class: "kong-ui-app-error" }, Wn = { class: "banana-icon" }, qn = { class: "kong-ui-app-error-content" }, Xn = /* @__PURE__ */ Ut(() => /* @__PURE__ */ _("h2", null, "An unexpected error has occurred", -1)), Yn = /* @__PURE__ */ Ut(() => /* @__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)), Jn = /* @__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", Gn, [
|
|
202
|
+
_("div", Wn, [
|
|
203
|
+
we(zn)
|
|
204
204
|
]),
|
|
205
|
-
_("div",
|
|
205
|
+
_("div", qn, [
|
|
206
206
|
O(t.$slots, "default", {}, () => [
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
Xn,
|
|
208
|
+
Yn
|
|
209
209
|
], !0)
|
|
210
210
|
])
|
|
211
211
|
]));
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
|
-
const
|
|
214
|
+
const Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { class: "kong-ui-app-navbar" }, er = { class: "header-content" }, tr = { class: "mobile-header-left" }, ar = {
|
|
215
215
|
key: 0,
|
|
216
216
|
class: "app-navbar-logo"
|
|
217
|
-
},
|
|
217
|
+
}, nr = { class: "navbar-content" }, rr = { class: "navbar-content-left" }, ir = { class: "navbar-content-center" }, or = { class: "navbar-content-right" }, sr = /* @__PURE__ */ ee({
|
|
218
218
|
__name: "AppNavbar",
|
|
219
219
|
props: {
|
|
220
220
|
topOffset: {
|
|
@@ -234,13 +234,13 @@ const zi = /* @__PURE__ */ te(er, [["__scopeId", "data-v-5cbccc66"]]), tr = { cl
|
|
|
234
234
|
setup(n) {
|
|
235
235
|
const t = n;
|
|
236
236
|
ut((o) => ({
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
"
|
|
237
|
+
d96d0598: d.value.top,
|
|
238
|
+
"05b18f8e": d.value.zIndex,
|
|
239
|
+
"543b3ff0": d.value.left,
|
|
240
|
+
"247c8fd0": l.marginRight,
|
|
241
|
+
"278e63f0": l.width
|
|
242
242
|
}));
|
|
243
|
-
const a = dt(), r = g(() => !!a.logo), l =
|
|
243
|
+
const a = dt(), r = g(() => !!a.logo), l = Me({
|
|
244
244
|
marginRight: "0",
|
|
245
245
|
width: "0"
|
|
246
246
|
});
|
|
@@ -253,23 +253,23 @@ const zi = /* @__PURE__ */ te(er, [["__scopeId", "data-v-5cbccc66"]]), tr = { 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", Qn, [
|
|
257
|
+
_("div", er, [
|
|
258
|
+
_("div", tr, [
|
|
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", ar, [
|
|
263
263
|
O(o.$slots, "logo")
|
|
264
|
-
])) :
|
|
265
|
-
_("div",
|
|
266
|
-
_("div",
|
|
264
|
+
])) : C("", !0),
|
|
265
|
+
_("div", nr, [
|
|
266
|
+
_("div", rr, [
|
|
267
267
|
O(o.$slots, "left")
|
|
268
268
|
]),
|
|
269
|
-
_("div",
|
|
269
|
+
_("div", ir, [
|
|
270
270
|
O(o.$slots, "center")
|
|
271
271
|
]),
|
|
272
|
-
_("div",
|
|
272
|
+
_("div", or, [
|
|
273
273
|
O(o.$slots, "right")
|
|
274
274
|
])
|
|
275
275
|
])
|
|
@@ -277,7 +277,7 @@ const zi = /* @__PURE__ */ te(er, [["__scopeId", "data-v-5cbccc66"]]), tr = { cl
|
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
-
const
|
|
280
|
+
const cr = /* @__PURE__ */ te(sr, [["__scopeId", "data-v-beca6ea9"]]), lr = ["title"], ot = 99, ur = /* @__PURE__ */ ee({
|
|
281
281
|
__name: "ItemBadge",
|
|
282
282
|
props: {
|
|
283
283
|
count: {
|
|
@@ -292,16 +292,16 @@ const ur = /* @__PURE__ */ te(lr, [["__scopeId", "data-v-7a2a459a"]]), dr = ["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, lr)) : C("", !0);
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
const
|
|
298
|
+
const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["data-testid"], vr = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], br = {
|
|
299
299
|
key: 0,
|
|
300
300
|
class: "sidebar-item-icon"
|
|
301
|
-
},
|
|
301
|
+
}, hr = { class: "sidebar-item-name-container" }, pr = { class: "sidebar-item-name has-tooltip" }, mr = {
|
|
302
302
|
key: 2,
|
|
303
303
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
304
|
-
},
|
|
304
|
+
}, gr = ["id"], yr = /* @__PURE__ */ ee({
|
|
305
305
|
__name: "SidebarItem",
|
|
306
306
|
props: {
|
|
307
307
|
item: {
|
|
@@ -322,49 +322,49 @@ const vr = /* @__PURE__ */ te(fr, [["__scopeId", "data-v-912b1a1b"]]), br = ["da
|
|
|
322
322
|
};
|
|
323
323
|
return (p, w) => {
|
|
324
324
|
var I;
|
|
325
|
-
const F = ce("KIcon"),
|
|
325
|
+
const F = ce("KIcon"), A = 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(mn(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: R((N) => {
|
|
335
|
+
var G, K;
|
|
336
336
|
return [
|
|
337
337
|
_("a", {
|
|
338
|
-
"aria-controls": (
|
|
338
|
+
"aria-controls": (G = n.item.items) != null && G.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 || "#") : N == null ? void 0 : N.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, N == null ? void 0 : N.navigate),
|
|
344
|
+
onKeypress: gn((Z) => v(Z, n.item, N == null ? void 0 : N.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", br, [
|
|
350
350
|
we(F, {
|
|
351
351
|
icon: String(n.item.icon),
|
|
352
352
|
size: "20"
|
|
353
353
|
}, null, 8, ["icon"])
|
|
354
|
-
])) :
|
|
355
|
-
_("div",
|
|
354
|
+
])) : C("", !0),
|
|
355
|
+
_("div", hr, [
|
|
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(A, {
|
|
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: R(() => [
|
|
367
|
+
_("div", pr, [
|
|
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 vr = /* @__PURE__ */ te(fr, [["__scopeId", "data-v-912b1a1b"]]), br = ["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", mr, J(n.item.label), 1)) : C("", !0)
|
|
376
376
|
]),
|
|
377
|
-
d.value ? (h(), Q(
|
|
377
|
+
d.value ? (h(), Q(dr, {
|
|
378
378
|
key: 1,
|
|
379
379
|
count: n.item.badgeCount
|
|
380
|
-
}, null, 8, ["count"])) :
|
|
380
|
+
}, null, 8, ["count"])) : C("", !0)
|
|
381
381
|
], 2)
|
|
382
|
-
], 42,
|
|
382
|
+
], 42, vr)
|
|
383
383
|
];
|
|
384
384
|
}),
|
|
385
385
|
_: 1
|
|
@@ -389,24 +389,24 @@ const vr = /* @__PURE__ */ te(fr, [["__scopeId", "data-v-912b1a1b"]]), br = ["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(Ce, null, Ne(n.item.items, (N) => (h(), Q(D, {
|
|
393
|
+
key: N.name,
|
|
394
|
+
item: N,
|
|
395
395
|
"subnav-item": !0,
|
|
396
|
-
onClick: (
|
|
396
|
+
onClick: (G) => o(N)
|
|
397
397
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
398
|
-
], 8,
|
|
399
|
-
], 10,
|
|
398
|
+
], 8, gr)) : C("", !0)
|
|
399
|
+
], 10, fr);
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
|
-
const
|
|
403
|
+
const Bt = /* @__PURE__ */ te(yr, [["__scopeId", "data-v-456e1e38"]]);
|
|
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 Vt = ["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__ */ Vt.join(","), zt = typeof Element > "u", be = zt ? function() {
|
|
409
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, je = !zt && 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 Gt = ["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
|
+
}, _r = 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
|
+
}, Gt = 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
|
+
}, Wt = 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 Gt = ["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 A = o.shadowRoot || // check for an undisclosed shadow
|
|
441
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !He(A, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
442
|
+
if (A && D) {
|
|
443
|
+
var I = n(A === !0 ? o.children : A.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 Gt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
return l;
|
|
453
|
-
},
|
|
453
|
+
}, qt = 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) || _r(t)) && !qt(t) ? 0 : t.tabIndex;
|
|
459
|
+
}, wr = function(t, a) {
|
|
460
460
|
var r = ve(t);
|
|
461
|
-
return r < 0 && a && !
|
|
462
|
-
},
|
|
461
|
+
return r < 0 && a && !qt(t) ? 0 : r;
|
|
462
|
+
}, Tr = function(t, a) {
|
|
463
463
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
464
|
-
},
|
|
464
|
+
}, Xt = function(t) {
|
|
465
465
|
return t.tagName === "INPUT";
|
|
466
|
-
},
|
|
467
|
-
return
|
|
468
|
-
},
|
|
466
|
+
}, kr = function(t) {
|
|
467
|
+
return Xt(t) && t.type === "hidden";
|
|
468
|
+
}, Sr = 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
|
+
}, Ir = 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
|
+
}, Or = 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 Gt = ["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 = Ir(l, t.form);
|
|
492
492
|
return !d || d === t;
|
|
493
|
-
},
|
|
494
|
-
return
|
|
493
|
+
}, Cr = function(t) {
|
|
494
|
+
return Xt(t) && t.type === "radio";
|
|
495
|
+
}, $r = function(t) {
|
|
496
|
+
return Cr(t) && !Or(t);
|
|
495
497
|
}, 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, A;
|
|
503
|
+
r = je(l), l = (w = r) === null || w === void 0 ? void 0 : w.host, d = !!((F = l) !== null && F !== void 0 && (A = F.ownerDocument) !== null && A !== void 0 && A.contains(l));
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
return d;
|
|
507
|
-
},
|
|
507
|
+
}, Lt = function(t) {
|
|
508
508
|
var a = t.getBoundingClientRect(), r = a.width, l = a.height;
|
|
509
509
|
return r === 0 && l === 0;
|
|
510
|
-
},
|
|
510
|
+
}, Ar = 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 Gt = ["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 Lt(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 (Nr(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 Lt(t);
|
|
533
533
|
return !1;
|
|
534
|
-
},
|
|
534
|
+
}, Er = 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 Gt = ["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) || kr(a) || Ar(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
553
|
+
Sr(a) || Er(a));
|
|
554
554
|
}, lt = function(t, a) {
|
|
555
|
-
return !(
|
|
556
|
-
},
|
|
555
|
+
return !($r(a) || ve(a) < 0 || !Ue(t, a));
|
|
556
|
+
}, xr = function(t) {
|
|
557
557
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
558
558
|
return !!(isNaN(a) || a >= 0);
|
|
559
|
-
},
|
|
559
|
+
}, Fr = 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 = wr(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 Gt = ["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(Tr).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
|
+
}, Dr = function(t, a) {
|
|
574
574
|
a = a || {};
|
|
575
575
|
var r;
|
|
576
|
-
return a.getShadowRoot ? r =
|
|
576
|
+
return a.getShadowRoot ? r = Wt([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: xr
|
|
581
|
+
}) : r = Gt(t, a.includeContainer, lt.bind(null, a)), Fr(r);
|
|
582
|
+
}, Rr = function(t, a) {
|
|
583
583
|
a = a || {};
|
|
584
584
|
var r;
|
|
585
|
-
return a.getShadowRoot ? r =
|
|
585
|
+
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
586
586
|
filter: Ue.bind(null, a),
|
|
587
587
|
flatten: !0,
|
|
588
588
|
getShadowRoot: a.getShadowRoot
|
|
589
|
-
}) : r =
|
|
589
|
+
}) : r = Gt(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
|
+
}, Br = /* @__PURE__ */ Vt.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, Br) === !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 Pt(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
|
+
Lr(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 Lr(n, t, a) {
|
|
625
|
+
return t = Pr(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 Mr(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 Zr(n, t) {
|
|
|
641
641
|
}
|
|
642
642
|
return (t === "string" ? String : Number)(n);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
var t =
|
|
644
|
+
function Pr(n) {
|
|
645
|
+
var t = Mr(n, "string");
|
|
646
646
|
return typeof t == "symbol" ? t : String(t);
|
|
647
647
|
}
|
|
648
|
-
var
|
|
648
|
+
var Zt = {
|
|
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 Kt = {
|
|
|
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
|
+
}, Zr = function(t) {
|
|
662
662
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
663
|
-
},
|
|
663
|
+
}, Kr = 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
|
+
}, jr = function(t) {
|
|
668
668
|
return $e(t) && !t.shiftKey;
|
|
669
|
-
},
|
|
669
|
+
}, Hr = function(t) {
|
|
670
670
|
return $e(t) && t.shiftKey;
|
|
671
|
-
},
|
|
671
|
+
}, Kt = function(t) {
|
|
672
672
|
return setTimeout(t, 0);
|
|
673
|
-
},
|
|
673
|
+
}, jt = 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
|
+
}, Oe = 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
|
+
}, Be = 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
|
+
}, Ur = [], Vr = function(t, a) {
|
|
685
|
+
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) || Ur, d = Pt({
|
|
686
686
|
returnFocusOnDeactivate: !0,
|
|
687
687
|
escapeDeactivates: !0,
|
|
688
688
|
delayInitialFocus: !0,
|
|
689
|
-
isKeyForward:
|
|
690
|
-
isKeyBackward:
|
|
689
|
+
isKeyForward: jr,
|
|
690
|
+
isKeyBackward: Hr
|
|
691
691
|
}, a), o = {
|
|
692
692
|
// containers given to createFocusTrap()
|
|
693
693
|
// @type {Array<HTMLElement>}
|
|
@@ -754,7 +754,7 @@ var Kt = {
|
|
|
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
|
+
}, A = function() {
|
|
758
758
|
var s = F("initialFocus");
|
|
759
759
|
if (s === !1)
|
|
760
760
|
return !1;
|
|
@@ -770,19 +770,19 @@ var Kt = {
|
|
|
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 = Dr(s, d.tabbableOptions), f = Rr(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(B) {
|
|
774
|
+
return _e(B);
|
|
775
|
+
}), x = f.slice().reverse().find(function(B) {
|
|
776
|
+
return _e(B);
|
|
777
|
+
}), P = !!u.find(function(B) {
|
|
778
|
+
return ve(B) > 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: P,
|
|
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 Kt = {
|
|
|
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(H) {
|
|
812
|
+
return _e(H);
|
|
813
|
+
}) : f.slice(0, f.indexOf(T)).reverse().find(function(H) {
|
|
814
|
+
return _e(H);
|
|
815
815
|
}) : u[ne + (le ? 1 : -1)];
|
|
816
816
|
}
|
|
817
817
|
};
|
|
@@ -823,55 +823,55 @@ var Kt = {
|
|
|
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 S(s) {
|
|
827
827
|
if (s !== !1 && s !== r.activeElement) {
|
|
828
828
|
if (!s || !s.focus) {
|
|
829
|
-
|
|
829
|
+
S(A());
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
s.focus({
|
|
833
833
|
preventScroll: !!d.preventScroll
|
|
834
|
-
}), o.mostRecentlyFocusedNode = s,
|
|
834
|
+
}), o.mostRecentlyFocusedNode = s, Zr(s) && s.select();
|
|
835
835
|
}
|
|
836
|
-
},
|
|
836
|
+
}, N = function(s) {
|
|
837
837
|
var u = F("setReturnFocus", s);
|
|
838
838
|
return u || (u === !1 ? !1 : s);
|
|
839
|
-
},
|
|
839
|
+
}, G = 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 || Be(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), P = 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 B = jt(o.tabbableGroups, function(he) {
|
|
849
849
|
var ke = he.firstTabbableNode;
|
|
850
850
|
return u === ke;
|
|
851
851
|
});
|
|
852
|
-
if (
|
|
853
|
-
var T =
|
|
852
|
+
if (B < 0 && (P.container === u || st(u, d.tabbableOptions) && !_e(u, d.tabbableOptions) && !P.nextTabbableNode(u, !1)) && (B = x), B >= 0) {
|
|
853
|
+
var T = B === 0 ? o.tabbableGroups.length - 1 : B - 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 = P.nextTabbableNode(u, !1));
|
|
857
857
|
} else {
|
|
858
|
-
var ne =
|
|
858
|
+
var ne = jt(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 && (P.container === u || st(u, d.tabbableOptions) && !_e(u, d.tabbableOptions) && !P.nextTabbableNode(u)) && (ne = x), ne >= 0) {
|
|
863
|
+
var H = ne === o.tabbableGroups.length - 1 ? 0 : ne + 1, Te = o.tabbableGroups[H];
|
|
864
864
|
E = ve(u) >= 0 ? Te.firstTabbableNode : Te.firstDomTabbableNode;
|
|
865
865
|
} else
|
|
866
|
-
$e(f) || (E =
|
|
866
|
+
$e(f) || (E = P.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 = Be(s);
|
|
873
873
|
if (!(w(u, s) >= 0)) {
|
|
874
|
-
if (
|
|
874
|
+
if (Oe(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 Kt = {
|
|
|
883
883
|
});
|
|
884
884
|
return;
|
|
885
885
|
}
|
|
886
|
-
|
|
886
|
+
Oe(d.allowOutsideClick, s) || s.preventDefault();
|
|
887
887
|
}
|
|
888
888
|
}, Z = function(s) {
|
|
889
|
-
var u =
|
|
889
|
+
var u = Be(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 Kt = {
|
|
|
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 P = x.findIndex(function(B) {
|
|
900
|
+
return B === o.mostRecentlyFocusedNode;
|
|
901
901
|
});
|
|
902
|
-
|
|
902
|
+
P >= 0 && (d.isKeyForward(o.recentNavEvent) ? P + 1 < x.length && (y = x[P + 1], k = !1) : P - 1 >= 0 && (y = x[P - 1], k = !1));
|
|
903
903
|
}
|
|
904
904
|
} else
|
|
905
|
-
o.containerGroups.some(function(
|
|
906
|
-
return
|
|
905
|
+
o.containerGroups.some(function(B) {
|
|
906
|
+
return B.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 = G({
|
|
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 || A());
|
|
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 = G({
|
|
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 (Kr(s) && Oe(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
|
+
}, X = function(s) {
|
|
935
|
+
var u = Be(s);
|
|
936
|
+
w(u, s) >= 0 || Oe(d.clickOutsideDeactivates, s) || Oe(d.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
937
|
+
}, V = function() {
|
|
938
938
|
if (o.active)
|
|
939
|
-
return
|
|
940
|
-
I(
|
|
941
|
-
}) : I(
|
|
939
|
+
return Zt.activateTrap(l, v), o.delayInitialFocusTimer = d.delayInitialFocus ? Kt(function() {
|
|
940
|
+
I(A());
|
|
941
|
+
}) : I(A()), 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", X, {
|
|
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
|
+
}, j = 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", X, !0), r.removeEventListener("keydown", ae, !0), v;
|
|
957
|
+
}, $ = 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(A());
|
|
965
|
+
}, M = typeof window < "u" && "MutationObserver" in window ? new MutationObserver($) : void 0, W = function() {
|
|
966
|
+
M && (M.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
967
|
+
M.observe(s, {
|
|
968
968
|
subtree: !0,
|
|
969
969
|
childList: !0
|
|
970
970
|
});
|
|
@@ -983,45 +983,45 @@ var Kt = {
|
|
|
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(), V(), W(), 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 = Pt({
|
|
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, j(), o.active = !1, o.paused = !1, W(), Zt.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
|
+
Kt(function() {
|
|
1003
|
+
E && I(N(o.nodeFocusedBeforeActivation)), y == null || y();
|
|
1004
1004
|
});
|
|
1005
1005
|
};
|
|
1006
|
-
return E && k ? (k(
|
|
1006
|
+
return E && k ? (k(N(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(), j(), W(), 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(), V(), W(), 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(), W(), this;
|
|
1025
1025
|
}
|
|
1026
1026
|
}, v.updateContainerElements(t), v;
|
|
1027
1027
|
};
|
|
@@ -1030,7 +1030,7 @@ var Kt = {
|
|
|
1030
1030
|
* (c) 2023 Eduardo San Martin Morote
|
|
1031
1031
|
* @license MIT
|
|
1032
1032
|
*/
|
|
1033
|
-
const
|
|
1033
|
+
const zr = {
|
|
1034
1034
|
escapeDeactivates: {
|
|
1035
1035
|
type: Boolean,
|
|
1036
1036
|
default: !0
|
|
@@ -1056,14 +1056,14 @@ const Wr = {
|
|
|
1056
1056
|
preventScroll: Boolean,
|
|
1057
1057
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1058
1058
|
tabbableOptions: Object
|
|
1059
|
-
},
|
|
1059
|
+
}, Gr = 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
|
+
}, zr),
|
|
1067
1067
|
emits: [
|
|
1068
1068
|
"update:active",
|
|
1069
1069
|
"activate",
|
|
@@ -1076,12 +1076,12 @@ const Wr = {
|
|
|
1076
1076
|
},
|
|
1077
1077
|
setup(n, { slots: t, emit: a }) {
|
|
1078
1078
|
let r;
|
|
1079
|
-
const l =
|
|
1079
|
+
const l = q(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 = Vr(d.value, {
|
|
1085
1085
|
escapeDeactivates: n.escapeDeactivates,
|
|
1086
1086
|
allowOutsideClick: n.allowOutsideClick,
|
|
1087
1087
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -1104,7 +1104,7 @@ const Wr = {
|
|
|
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
|
+
}), yn(() => {
|
|
1108
1108
|
r && r.deactivate(), r = null;
|
|
1109
1109
|
}), {
|
|
1110
1110
|
activate() {
|
|
@@ -1116,13 +1116,13 @@ const Wr = {
|
|
|
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 !== _n);
|
|
1120
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : wn(v[0], { ref: l });
|
|
1121
1121
|
}
|
|
1122
1122
|
};
|
|
1123
1123
|
}
|
|
1124
1124
|
});
|
|
1125
|
-
function
|
|
1125
|
+
function Yt() {
|
|
1126
1126
|
return {
|
|
1127
1127
|
debounce: (t, a) => {
|
|
1128
1128
|
let r;
|
|
@@ -1134,45 +1134,44 @@ function Qt() {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
1136
1136
|
}
|
|
1137
|
-
const ea = "linear-gradient(180deg, #001740 0%, #073382 100%)";
|
|
1138
1137
|
var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1139
|
-
function
|
|
1138
|
+
function Wr(n) {
|
|
1140
1139
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1141
1140
|
}
|
|
1142
1141
|
var Ve = { exports: {} };
|
|
1143
1142
|
Ve.exports;
|
|
1144
1143
|
(function(n, t) {
|
|
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]",
|
|
1146
|
-
T[d] = T[o] = T[
|
|
1147
|
-
var le = typeof Le == "object" && Le && Le.Object === Object && Le, ne = typeof self == "object" && self && self.Object === Object && self,
|
|
1148
|
-
function
|
|
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]", A = "[object GeneratorFunction]", D = "[object Map]", I = "[object Number]", N = "[object Object]", G = "[object Promise]", K = "[object RegExp]", Z = "[object Set]", oe = "[object String]", ae = "[object Symbol]", X = "[object WeakMap]", V = "[object ArrayBuffer]", j = "[object DataView]", $ = "[object Float32Array]", M = "[object Float64Array]", W = "[object Int8Array]", S = "[object Int16Array]", s = "[object Int32Array]", u = "[object Uint8Array]", f = "[object Uint8ClampedArray]", y = "[object Uint16Array]", k = "[object Uint32Array]", E = /[\\^$.*+?()[\]{}|]/g, x = /\w*$/, P = /^\[object .+?Constructor\]$/, B = /^(?:0|[1-9]\d*)$/, T = {};
|
|
1145
|
+
T[d] = T[o] = T[V] = T[j] = T[v] = T[p] = T[$] = T[M] = T[W] = T[S] = T[s] = T[D] = T[I] = T[N] = T[K] = T[Z] = T[oe] = T[ae] = T[u] = T[f] = T[y] = T[k] = !0, T[w] = T[F] = T[X] = !1;
|
|
1146
|
+
var le = typeof Le == "object" && Le && Le.Object === Object && Le, ne = typeof self == "object" && self && self.Object === Object && self, H = le || ne || Function("return this")(), Te = t && !t.nodeType && t, he = Te && !0 && n && !n.nodeType && n, ke = he && he.exports === Te;
|
|
1147
|
+
function Jt(e, i) {
|
|
1149
1148
|
return e.set(i[0], i[1]), e;
|
|
1150
1149
|
}
|
|
1151
|
-
function
|
|
1150
|
+
function Qt(e, i) {
|
|
1152
1151
|
return e.add(i), e;
|
|
1153
1152
|
}
|
|
1154
|
-
function
|
|
1153
|
+
function ea(e, i) {
|
|
1155
1154
|
for (var c = -1, b = e ? e.length : 0; ++c < b && i(e[c], c, e) !== !1; )
|
|
1156
1155
|
;
|
|
1157
1156
|
return e;
|
|
1158
1157
|
}
|
|
1159
|
-
function
|
|
1158
|
+
function ta(e, i) {
|
|
1160
1159
|
for (var c = -1, b = i.length, L = e.length; ++c < b; )
|
|
1161
1160
|
e[L + c] = i[c];
|
|
1162
1161
|
return e;
|
|
1163
1162
|
}
|
|
1164
1163
|
function vt(e, i, c, b) {
|
|
1165
|
-
var L = -1,
|
|
1166
|
-
for (b &&
|
|
1164
|
+
var L = -1, U = e ? e.length : 0;
|
|
1165
|
+
for (b && U && (c = e[++L]); ++L < U; )
|
|
1167
1166
|
c = i(c, e[L], L, e);
|
|
1168
1167
|
return c;
|
|
1169
1168
|
}
|
|
1170
|
-
function
|
|
1169
|
+
function aa(e, i) {
|
|
1171
1170
|
for (var c = -1, b = Array(e); ++c < e; )
|
|
1172
1171
|
b[c] = i(c);
|
|
1173
1172
|
return b;
|
|
1174
1173
|
}
|
|
1175
|
-
function
|
|
1174
|
+
function na(e, i) {
|
|
1176
1175
|
return e == null ? void 0 : e[i];
|
|
1177
1176
|
}
|
|
1178
1177
|
function bt(e) {
|
|
@@ -1201,12 +1200,12 @@ Ve.exports;
|
|
|
1201
1200
|
c[++i] = b;
|
|
1202
1201
|
}), c;
|
|
1203
1202
|
}
|
|
1204
|
-
var
|
|
1203
|
+
var ra = Array.prototype, ia = Function.prototype, Ae = Object.prototype, Xe = H["__core-js_shared__"], mt = function() {
|
|
1205
1204
|
var e = /[^.]+$/.exec(Xe && Xe.keys && Xe.keys.IE_PROTO || "");
|
|
1206
1205
|
return e ? "Symbol(src)_1." + e : "";
|
|
1207
|
-
}(), gt =
|
|
1206
|
+
}(), gt = ia.toString, se = Ae.hasOwnProperty, Ee = Ae.toString, oa = RegExp(
|
|
1208
1207
|
"^" + gt.call(se).replace(E, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1209
|
-
), yt = ke ?
|
|
1208
|
+
), yt = ke ? H.Buffer : void 0, _t = H.Symbol, wt = H.Uint8Array, sa = qe(Object.getPrototypeOf, Object), ca = Object.create, la = Ae.propertyIsEnumerable, ua = ra.splice, Tt = Object.getOwnPropertySymbols, da = yt ? yt.isBuffer : void 0, fa = qe(Object.keys, Object), Ye = ge(H, "DataView"), Se = ge(H, "Map"), Je = ge(H, "Promise"), Qe = ge(H, "Set"), et = ge(H, "WeakMap"), Ie = ge(Object, "create"), va = fe(Ye), ba = fe(Se), ha = fe(Je), pa = fe(Qe), ma = fe(et), kt = _t ? _t.prototype : void 0, St = kt ? kt.valueOf : void 0;
|
|
1210
1209
|
function ue(e) {
|
|
1211
1210
|
var i = -1, c = e ? e.length : 0;
|
|
1212
1211
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1214,13 +1213,13 @@ Ve.exports;
|
|
|
1214
1213
|
this.set(b[0], b[1]);
|
|
1215
1214
|
}
|
|
1216
1215
|
}
|
|
1217
|
-
function
|
|
1216
|
+
function ga() {
|
|
1218
1217
|
this.__data__ = Ie ? Ie(null) : {};
|
|
1219
1218
|
}
|
|
1220
|
-
function
|
|
1219
|
+
function ya(e) {
|
|
1221
1220
|
return this.has(e) && delete this.__data__[e];
|
|
1222
1221
|
}
|
|
1223
|
-
function
|
|
1222
|
+
function _a(e) {
|
|
1224
1223
|
var i = this.__data__;
|
|
1225
1224
|
if (Ie) {
|
|
1226
1225
|
var c = i[e];
|
|
@@ -1228,15 +1227,15 @@ Ve.exports;
|
|
|
1228
1227
|
}
|
|
1229
1228
|
return se.call(i, e) ? i[e] : void 0;
|
|
1230
1229
|
}
|
|
1231
|
-
function
|
|
1230
|
+
function wa(e) {
|
|
1232
1231
|
var i = this.__data__;
|
|
1233
1232
|
return Ie ? i[e] !== void 0 : se.call(i, e);
|
|
1234
1233
|
}
|
|
1235
|
-
function
|
|
1234
|
+
function Ta(e, i) {
|
|
1236
1235
|
var c = this.__data__;
|
|
1237
1236
|
return c[e] = Ie && i === void 0 ? r : i, this;
|
|
1238
1237
|
}
|
|
1239
|
-
ue.prototype.clear =
|
|
1238
|
+
ue.prototype.clear = ga, ue.prototype.delete = ya, ue.prototype.get = _a, ue.prototype.has = wa, ue.prototype.set = Ta;
|
|
1240
1239
|
function ie(e) {
|
|
1241
1240
|
var i = -1, c = e ? e.length : 0;
|
|
1242
1241
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1244,28 +1243,28 @@ Ve.exports;
|
|
|
1244
1243
|
this.set(b[0], b[1]);
|
|
1245
1244
|
}
|
|
1246
1245
|
}
|
|
1247
|
-
function
|
|
1246
|
+
function ka() {
|
|
1248
1247
|
this.__data__ = [];
|
|
1249
1248
|
}
|
|
1250
|
-
function
|
|
1249
|
+
function Sa(e) {
|
|
1251
1250
|
var i = this.__data__, c = xe(i, e);
|
|
1252
1251
|
if (c < 0)
|
|
1253
1252
|
return !1;
|
|
1254
1253
|
var b = i.length - 1;
|
|
1255
|
-
return c == b ? i.pop() :
|
|
1254
|
+
return c == b ? i.pop() : ua.call(i, c, 1), !0;
|
|
1256
1255
|
}
|
|
1257
|
-
function
|
|
1256
|
+
function Ia(e) {
|
|
1258
1257
|
var i = this.__data__, c = xe(i, e);
|
|
1259
1258
|
return c < 0 ? void 0 : i[c][1];
|
|
1260
1259
|
}
|
|
1261
|
-
function
|
|
1260
|
+
function Oa(e) {
|
|
1262
1261
|
return xe(this.__data__, e) > -1;
|
|
1263
1262
|
}
|
|
1264
|
-
function
|
|
1263
|
+
function Ca(e, i) {
|
|
1265
1264
|
var c = this.__data__, b = xe(c, e);
|
|
1266
1265
|
return b < 0 ? c.push([e, i]) : c[b][1] = i, this;
|
|
1267
1266
|
}
|
|
1268
|
-
ie.prototype.clear =
|
|
1267
|
+
ie.prototype.clear = ka, ie.prototype.delete = Sa, ie.prototype.get = Ia, ie.prototype.has = Oa, ie.prototype.set = Ca;
|
|
1269
1268
|
function pe(e) {
|
|
1270
1269
|
var i = -1, c = e ? e.length : 0;
|
|
1271
1270
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1273,42 +1272,42 @@ Ve.exports;
|
|
|
1273
1272
|
this.set(b[0], b[1]);
|
|
1274
1273
|
}
|
|
1275
1274
|
}
|
|
1276
|
-
function
|
|
1275
|
+
function $a() {
|
|
1277
1276
|
this.__data__ = {
|
|
1278
1277
|
hash: new ue(),
|
|
1279
1278
|
map: new (Se || ie)(),
|
|
1280
1279
|
string: new ue()
|
|
1281
1280
|
};
|
|
1282
1281
|
}
|
|
1283
|
-
function
|
|
1282
|
+
function Na(e) {
|
|
1284
1283
|
return Fe(this, e).delete(e);
|
|
1285
1284
|
}
|
|
1286
|
-
function
|
|
1285
|
+
function Aa(e) {
|
|
1287
1286
|
return Fe(this, e).get(e);
|
|
1288
1287
|
}
|
|
1289
|
-
function
|
|
1288
|
+
function Ea(e) {
|
|
1290
1289
|
return Fe(this, e).has(e);
|
|
1291
1290
|
}
|
|
1292
|
-
function
|
|
1291
|
+
function xa(e, i) {
|
|
1293
1292
|
return Fe(this, e).set(e, i), this;
|
|
1294
1293
|
}
|
|
1295
|
-
pe.prototype.clear =
|
|
1294
|
+
pe.prototype.clear = $a, pe.prototype.delete = Na, pe.prototype.get = Aa, pe.prototype.has = Ea, pe.prototype.set = xa;
|
|
1296
1295
|
function me(e) {
|
|
1297
1296
|
this.__data__ = new ie(e);
|
|
1298
1297
|
}
|
|
1299
|
-
function
|
|
1298
|
+
function Fa() {
|
|
1300
1299
|
this.__data__ = new ie();
|
|
1301
1300
|
}
|
|
1302
|
-
function
|
|
1301
|
+
function Da(e) {
|
|
1303
1302
|
return this.__data__.delete(e);
|
|
1304
1303
|
}
|
|
1305
|
-
function
|
|
1304
|
+
function Ra(e) {
|
|
1306
1305
|
return this.__data__.get(e);
|
|
1307
1306
|
}
|
|
1308
|
-
function
|
|
1307
|
+
function Ba(e) {
|
|
1309
1308
|
return this.__data__.has(e);
|
|
1310
1309
|
}
|
|
1311
|
-
function
|
|
1310
|
+
function La(e, i) {
|
|
1312
1311
|
var c = this.__data__;
|
|
1313
1312
|
if (c instanceof ie) {
|
|
1314
1313
|
var b = c.__data__;
|
|
@@ -1318,86 +1317,86 @@ Ve.exports;
|
|
|
1318
1317
|
}
|
|
1319
1318
|
return c.set(e, i), this;
|
|
1320
1319
|
}
|
|
1321
|
-
me.prototype.clear =
|
|
1322
|
-
function
|
|
1323
|
-
var c = nt(e) ||
|
|
1324
|
-
for (var
|
|
1325
|
-
(i || se.call(e,
|
|
1320
|
+
me.prototype.clear = Fa, me.prototype.delete = Da, me.prototype.get = Ra, me.prototype.has = Ba, me.prototype.set = La;
|
|
1321
|
+
function Ma(e, i) {
|
|
1322
|
+
var c = nt(e) || ln(e) ? aa(e.length, String) : [], b = c.length, L = !!b;
|
|
1323
|
+
for (var U in e)
|
|
1324
|
+
(i || se.call(e, U)) && !(L && (U == "length" || rn(U, b))) && c.push(U);
|
|
1326
1325
|
return c;
|
|
1327
1326
|
}
|
|
1328
1327
|
function It(e, i, c) {
|
|
1329
1328
|
var b = e[i];
|
|
1330
|
-
(!(se.call(e, i) &&
|
|
1329
|
+
(!(se.call(e, i) && Nt(b, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1331
1330
|
}
|
|
1332
1331
|
function xe(e, i) {
|
|
1333
1332
|
for (var c = e.length; c--; )
|
|
1334
|
-
if (
|
|
1333
|
+
if (Nt(e[c][0], i))
|
|
1335
1334
|
return c;
|
|
1336
1335
|
return -1;
|
|
1337
1336
|
}
|
|
1338
|
-
function
|
|
1339
|
-
return e &&
|
|
1337
|
+
function Pa(e, i) {
|
|
1338
|
+
return e && Ot(i, rt(i), e);
|
|
1340
1339
|
}
|
|
1341
|
-
function tt(e, i, c, b, L,
|
|
1342
|
-
var
|
|
1343
|
-
if (b && (
|
|
1344
|
-
return
|
|
1340
|
+
function tt(e, i, c, b, L, U, Y) {
|
|
1341
|
+
var z;
|
|
1342
|
+
if (b && (z = U ? b(e, L, U, Y) : b(e)), z !== void 0)
|
|
1343
|
+
return z;
|
|
1345
1344
|
if (!De(e))
|
|
1346
1345
|
return e;
|
|
1347
1346
|
var xt = nt(e);
|
|
1348
1347
|
if (xt) {
|
|
1349
|
-
if (
|
|
1350
|
-
return
|
|
1348
|
+
if (z = tn(e), !i)
|
|
1349
|
+
return Ja(e, z);
|
|
1351
1350
|
} else {
|
|
1352
|
-
var ye = de(e), Ft = ye == F || ye ==
|
|
1353
|
-
if (
|
|
1354
|
-
return
|
|
1355
|
-
if (ye ==
|
|
1351
|
+
var ye = de(e), Ft = ye == F || ye == A;
|
|
1352
|
+
if (dn(e))
|
|
1353
|
+
return Va(e, i);
|
|
1354
|
+
if (ye == N || ye == d || Ft && !U) {
|
|
1356
1355
|
if (bt(e))
|
|
1357
|
-
return
|
|
1358
|
-
if (
|
|
1359
|
-
return
|
|
1356
|
+
return U ? e : {};
|
|
1357
|
+
if (z = an(Ft ? {} : e), !i)
|
|
1358
|
+
return Qa(e, Pa(z, e));
|
|
1360
1359
|
} else {
|
|
1361
1360
|
if (!T[ye])
|
|
1362
|
-
return
|
|
1363
|
-
|
|
1361
|
+
return U ? e : {};
|
|
1362
|
+
z = nn(e, ye, tt, i);
|
|
1364
1363
|
}
|
|
1365
1364
|
}
|
|
1366
1365
|
Y || (Y = new me());
|
|
1367
1366
|
var Dt = Y.get(e);
|
|
1368
1367
|
if (Dt)
|
|
1369
1368
|
return Dt;
|
|
1370
|
-
if (Y.set(e,
|
|
1371
|
-
var
|
|
1372
|
-
return
|
|
1373
|
-
|
|
1374
|
-
}),
|
|
1369
|
+
if (Y.set(e, z), !xt)
|
|
1370
|
+
var Rt = c ? en(e) : rt(e);
|
|
1371
|
+
return ea(Rt || e, function(it, Re) {
|
|
1372
|
+
Rt && (Re = it, it = e[Re]), It(z, Re, tt(it, i, c, b, Re, e, Y));
|
|
1373
|
+
}), z;
|
|
1375
1374
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return De(e) ?
|
|
1375
|
+
function Za(e) {
|
|
1376
|
+
return De(e) ? ca(e) : {};
|
|
1378
1377
|
}
|
|
1379
|
-
function
|
|
1378
|
+
function Ka(e, i, c) {
|
|
1380
1379
|
var b = i(e);
|
|
1381
|
-
return nt(e) ? b :
|
|
1380
|
+
return nt(e) ? b : ta(b, c(e));
|
|
1382
1381
|
}
|
|
1383
|
-
function
|
|
1382
|
+
function ja(e) {
|
|
1384
1383
|
return Ee.call(e);
|
|
1385
1384
|
}
|
|
1386
|
-
function
|
|
1387
|
-
if (!De(e) ||
|
|
1385
|
+
function Ha(e) {
|
|
1386
|
+
if (!De(e) || sn(e))
|
|
1388
1387
|
return !1;
|
|
1389
|
-
var i = Et(e) || bt(e) ?
|
|
1388
|
+
var i = Et(e) || bt(e) ? oa : P;
|
|
1390
1389
|
return i.test(fe(e));
|
|
1391
1390
|
}
|
|
1392
|
-
function
|
|
1391
|
+
function Ua(e) {
|
|
1393
1392
|
if (!$t(e))
|
|
1394
|
-
return
|
|
1393
|
+
return fa(e);
|
|
1395
1394
|
var i = [];
|
|
1396
1395
|
for (var c in Object(e))
|
|
1397
1396
|
se.call(e, c) && c != "constructor" && i.push(c);
|
|
1398
1397
|
return i;
|
|
1399
1398
|
}
|
|
1400
|
-
function
|
|
1399
|
+
function Va(e, i) {
|
|
1401
1400
|
if (i)
|
|
1402
1401
|
return e.slice();
|
|
1403
1402
|
var c = new e.constructor(e.length);
|
|
@@ -1407,127 +1406,127 @@ Ve.exports;
|
|
|
1407
1406
|
var i = new e.constructor(e.byteLength);
|
|
1408
1407
|
return new wt(i).set(new wt(e)), i;
|
|
1409
1408
|
}
|
|
1410
|
-
function
|
|
1409
|
+
function za(e, i) {
|
|
1411
1410
|
var c = i ? at(e.buffer) : e.buffer;
|
|
1412
1411
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1413
1412
|
}
|
|
1414
|
-
function
|
|
1413
|
+
function Ga(e, i, c) {
|
|
1415
1414
|
var b = i ? c(ht(e), !0) : ht(e);
|
|
1416
|
-
return vt(b,
|
|
1415
|
+
return vt(b, Jt, new e.constructor());
|
|
1417
1416
|
}
|
|
1418
|
-
function
|
|
1417
|
+
function Wa(e) {
|
|
1419
1418
|
var i = new e.constructor(e.source, x.exec(e));
|
|
1420
1419
|
return i.lastIndex = e.lastIndex, i;
|
|
1421
1420
|
}
|
|
1422
|
-
function
|
|
1421
|
+
function qa(e, i, c) {
|
|
1423
1422
|
var b = i ? c(pt(e), !0) : pt(e);
|
|
1424
|
-
return vt(b,
|
|
1423
|
+
return vt(b, Qt, new e.constructor());
|
|
1425
1424
|
}
|
|
1426
|
-
function
|
|
1425
|
+
function Xa(e) {
|
|
1427
1426
|
return St ? Object(St.call(e)) : {};
|
|
1428
1427
|
}
|
|
1429
|
-
function
|
|
1428
|
+
function Ya(e, i) {
|
|
1430
1429
|
var c = i ? at(e.buffer) : e.buffer;
|
|
1431
1430
|
return new e.constructor(c, e.byteOffset, e.length);
|
|
1432
1431
|
}
|
|
1433
|
-
function
|
|
1432
|
+
function Ja(e, i) {
|
|
1434
1433
|
var c = -1, b = e.length;
|
|
1435
1434
|
for (i || (i = Array(b)); ++c < b; )
|
|
1436
1435
|
i[c] = e[c];
|
|
1437
1436
|
return i;
|
|
1438
1437
|
}
|
|
1439
|
-
function
|
|
1438
|
+
function Ot(e, i, c, b) {
|
|
1440
1439
|
c || (c = {});
|
|
1441
|
-
for (var L = -1,
|
|
1442
|
-
var Y = i[L],
|
|
1443
|
-
It(c, Y,
|
|
1440
|
+
for (var L = -1, U = i.length; ++L < U; ) {
|
|
1441
|
+
var Y = i[L], z = b ? b(c[Y], e[Y], Y, c, e) : void 0;
|
|
1442
|
+
It(c, Y, z === void 0 ? e[Y] : z);
|
|
1444
1443
|
}
|
|
1445
1444
|
return c;
|
|
1446
1445
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1446
|
+
function Qa(e, i) {
|
|
1447
|
+
return Ot(e, Ct(e), i);
|
|
1449
1448
|
}
|
|
1450
|
-
function
|
|
1451
|
-
return
|
|
1449
|
+
function en(e) {
|
|
1450
|
+
return Ka(e, rt, Ct);
|
|
1452
1451
|
}
|
|
1453
1452
|
function Fe(e, i) {
|
|
1454
1453
|
var c = e.__data__;
|
|
1455
|
-
return
|
|
1454
|
+
return on(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1456
1455
|
}
|
|
1457
1456
|
function ge(e, i) {
|
|
1458
|
-
var c =
|
|
1459
|
-
return
|
|
1457
|
+
var c = na(e, i);
|
|
1458
|
+
return Ha(c) ? c : void 0;
|
|
1460
1459
|
}
|
|
1461
|
-
var
|
|
1462
|
-
(Ye && de(new Ye(new ArrayBuffer(1))) !=
|
|
1463
|
-
var i = Ee.call(e), c = i ==
|
|
1460
|
+
var Ct = Tt ? qe(Tt, Object) : bn, de = ja;
|
|
1461
|
+
(Ye && de(new Ye(new ArrayBuffer(1))) != j || Se && de(new Se()) != D || Je && de(Je.resolve()) != G || Qe && de(new Qe()) != Z || et && de(new et()) != X) && (de = function(e) {
|
|
1462
|
+
var i = Ee.call(e), c = i == N ? e.constructor : void 0, b = c ? fe(c) : void 0;
|
|
1464
1463
|
if (b)
|
|
1465
1464
|
switch (b) {
|
|
1466
|
-
case
|
|
1467
|
-
return
|
|
1468
|
-
case
|
|
1465
|
+
case va:
|
|
1466
|
+
return j;
|
|
1467
|
+
case ba:
|
|
1469
1468
|
return D;
|
|
1470
|
-
case
|
|
1471
|
-
return
|
|
1472
|
-
case
|
|
1469
|
+
case ha:
|
|
1470
|
+
return G;
|
|
1471
|
+
case pa:
|
|
1473
1472
|
return Z;
|
|
1474
|
-
case
|
|
1475
|
-
return
|
|
1473
|
+
case ma:
|
|
1474
|
+
return X;
|
|
1476
1475
|
}
|
|
1477
1476
|
return i;
|
|
1478
1477
|
});
|
|
1479
|
-
function
|
|
1478
|
+
function tn(e) {
|
|
1480
1479
|
var i = e.length, c = e.constructor(i);
|
|
1481
1480
|
return i && typeof e[0] == "string" && se.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1482
1481
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return typeof e.constructor == "function" && !$t(e) ?
|
|
1482
|
+
function an(e) {
|
|
1483
|
+
return typeof e.constructor == "function" && !$t(e) ? Za(sa(e)) : {};
|
|
1485
1484
|
}
|
|
1486
|
-
function
|
|
1485
|
+
function nn(e, i, c, b) {
|
|
1487
1486
|
var L = e.constructor;
|
|
1488
1487
|
switch (i) {
|
|
1489
|
-
case
|
|
1488
|
+
case V:
|
|
1490
1489
|
return at(e);
|
|
1491
1490
|
case v:
|
|
1492
1491
|
case p:
|
|
1493
1492
|
return new L(+e);
|
|
1494
|
-
case
|
|
1495
|
-
return
|
|
1496
|
-
case
|
|
1493
|
+
case j:
|
|
1494
|
+
return za(e, b);
|
|
1495
|
+
case $:
|
|
1496
|
+
case M:
|
|
1497
|
+
case W:
|
|
1497
1498
|
case S:
|
|
1498
|
-
case P:
|
|
1499
|
-
case C:
|
|
1500
1499
|
case s:
|
|
1501
1500
|
case u:
|
|
1502
1501
|
case f:
|
|
1503
1502
|
case y:
|
|
1504
1503
|
case k:
|
|
1505
|
-
return
|
|
1504
|
+
return Ya(e, b);
|
|
1506
1505
|
case D:
|
|
1507
|
-
return
|
|
1506
|
+
return Ga(e, b, c);
|
|
1508
1507
|
case I:
|
|
1509
1508
|
case oe:
|
|
1510
1509
|
return new L(e);
|
|
1511
1510
|
case K:
|
|
1512
|
-
return
|
|
1511
|
+
return Wa(e);
|
|
1513
1512
|
case Z:
|
|
1514
|
-
return
|
|
1513
|
+
return qa(e, b, c);
|
|
1515
1514
|
case ae:
|
|
1516
|
-
return
|
|
1515
|
+
return Xa(e);
|
|
1517
1516
|
}
|
|
1518
1517
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return i = i ?? l, !!i && (typeof e == "number" ||
|
|
1518
|
+
function rn(e, i) {
|
|
1519
|
+
return i = i ?? l, !!i && (typeof e == "number" || B.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1521
1520
|
}
|
|
1522
|
-
function
|
|
1521
|
+
function on(e) {
|
|
1523
1522
|
var i = typeof e;
|
|
1524
1523
|
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1525
1524
|
}
|
|
1526
|
-
function
|
|
1525
|
+
function sn(e) {
|
|
1527
1526
|
return !!mt && mt in e;
|
|
1528
1527
|
}
|
|
1529
1528
|
function $t(e) {
|
|
1530
|
-
var i = e && e.constructor, c = typeof i == "function" && i.prototype ||
|
|
1529
|
+
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Ae;
|
|
1531
1530
|
return e === c;
|
|
1532
1531
|
}
|
|
1533
1532
|
function fe(e) {
|
|
@@ -1543,66 +1542,66 @@ Ve.exports;
|
|
|
1543
1542
|
}
|
|
1544
1543
|
return "";
|
|
1545
1544
|
}
|
|
1546
|
-
function
|
|
1545
|
+
function cn(e) {
|
|
1547
1546
|
return tt(e, !0, !0);
|
|
1548
1547
|
}
|
|
1549
|
-
function
|
|
1548
|
+
function Nt(e, i) {
|
|
1550
1549
|
return e === i || e !== e && i !== i;
|
|
1551
1550
|
}
|
|
1552
|
-
function
|
|
1553
|
-
return
|
|
1551
|
+
function ln(e) {
|
|
1552
|
+
return un(e) && se.call(e, "callee") && (!la.call(e, "callee") || Ee.call(e) == d);
|
|
1554
1553
|
}
|
|
1555
1554
|
var nt = Array.isArray;
|
|
1556
|
-
function
|
|
1557
|
-
return e != null &&
|
|
1555
|
+
function At(e) {
|
|
1556
|
+
return e != null && fn(e.length) && !Et(e);
|
|
1558
1557
|
}
|
|
1559
|
-
function
|
|
1560
|
-
return
|
|
1558
|
+
function un(e) {
|
|
1559
|
+
return vn(e) && At(e);
|
|
1561
1560
|
}
|
|
1562
|
-
var
|
|
1561
|
+
var dn = da || hn;
|
|
1563
1562
|
function Et(e) {
|
|
1564
1563
|
var i = De(e) ? Ee.call(e) : "";
|
|
1565
|
-
return i == F || i ==
|
|
1564
|
+
return i == F || i == A;
|
|
1566
1565
|
}
|
|
1567
|
-
function
|
|
1566
|
+
function fn(e) {
|
|
1568
1567
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
1569
1568
|
}
|
|
1570
1569
|
function De(e) {
|
|
1571
1570
|
var i = typeof e;
|
|
1572
1571
|
return !!e && (i == "object" || i == "function");
|
|
1573
1572
|
}
|
|
1574
|
-
function
|
|
1573
|
+
function vn(e) {
|
|
1575
1574
|
return !!e && typeof e == "object";
|
|
1576
1575
|
}
|
|
1577
1576
|
function rt(e) {
|
|
1578
|
-
return
|
|
1577
|
+
return At(e) ? Ma(e) : Ua(e);
|
|
1579
1578
|
}
|
|
1580
|
-
function
|
|
1579
|
+
function bn() {
|
|
1581
1580
|
return [];
|
|
1582
1581
|
}
|
|
1583
|
-
function
|
|
1582
|
+
function hn() {
|
|
1584
1583
|
return !1;
|
|
1585
1584
|
}
|
|
1586
|
-
n.exports =
|
|
1585
|
+
n.exports = cn;
|
|
1587
1586
|
})(Ve, Ve.exports);
|
|
1588
|
-
var
|
|
1589
|
-
const
|
|
1587
|
+
var qr = Ve.exports;
|
|
1588
|
+
const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
1590
1589
|
key: 0,
|
|
1591
1590
|
class: "sidebar-header"
|
|
1592
|
-
},
|
|
1591
|
+
}, Jr = { class: "sidebar-content-container" }, Qr = {
|
|
1593
1592
|
key: 0,
|
|
1594
1593
|
class: "sidebar-top"
|
|
1595
|
-
},
|
|
1594
|
+
}, ei = { "aria-label": "Main menu" }, ti = {
|
|
1596
1595
|
key: 0,
|
|
1597
1596
|
class: "level-primary top-items"
|
|
1598
|
-
},
|
|
1597
|
+
}, ai = {
|
|
1599
1598
|
key: 1,
|
|
1600
1599
|
class: "sidebar-level-divider",
|
|
1601
1600
|
role: "separator"
|
|
1602
|
-
},
|
|
1601
|
+
}, ni = {
|
|
1603
1602
|
key: 2,
|
|
1604
1603
|
class: "level-primary bottom-items"
|
|
1605
|
-
},
|
|
1604
|
+
}, ri = { class: "sidebar-footer" }, ii = /* @__PURE__ */ ee({
|
|
1606
1605
|
__name: "AppSidebar",
|
|
1607
1606
|
props: {
|
|
1608
1607
|
topItems: {
|
|
@@ -1663,17 +1662,16 @@ const Jr = /* @__PURE__ */ Xr(Yr), Qr = {
|
|
|
1663
1662
|
setup(n, { emit: t }) {
|
|
1664
1663
|
const a = n;
|
|
1665
1664
|
ut((s) => ({
|
|
1666
|
-
"
|
|
1667
|
-
|
|
1668
|
-
"
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
"
|
|
1673
|
-
"
|
|
1674
|
-
"
|
|
1675
|
-
"
|
|
1676
|
-
de83841e: w.value.zIndex
|
|
1665
|
+
"2c5b02a5": o.value.mobileHeight,
|
|
1666
|
+
"19baf097": o.value.mobileTop,
|
|
1667
|
+
"01f7cae3": n.zIndex,
|
|
1668
|
+
e9cb373a: o.value.height,
|
|
1669
|
+
e991d0ce: o.value.top,
|
|
1670
|
+
"8a4ad026": p.value.marginTop,
|
|
1671
|
+
"28946a7f": v.value.display,
|
|
1672
|
+
"3e6b7496": v.value.minHeight,
|
|
1673
|
+
"92ecef30": w.value.top,
|
|
1674
|
+
"16fef085": w.value.zIndex
|
|
1677
1675
|
}));
|
|
1678
1676
|
const r = dt(), l = g(() => !!r.header), d = g(() => !!r.top), o = g(() => ({
|
|
1679
1677
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
@@ -1688,7 +1686,7 @@ const Jr = /* @__PURE__ */ Xr(Yr), Qr = {
|
|
|
1688
1686
|
})), w = g(() => ({
|
|
1689
1687
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1690
1688
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1691
|
-
})), F = (s) =>
|
|
1689
|
+
})), F = (s) => Xr(s).map((f) => {
|
|
1692
1690
|
var y, k, E;
|
|
1693
1691
|
if (f) {
|
|
1694
1692
|
(!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, "-"));
|
|
@@ -1696,83 +1694,83 @@ const Jr = /* @__PURE__ */ Xr(Yr), Qr = {
|
|
|
1696
1694
|
x.parentKey = f.key, (!x.testId || !((E = x.testId) != null && E.trim())) && (x.testId = String(x.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1697
1695
|
}
|
|
1698
1696
|
return f;
|
|
1699
|
-
}),
|
|
1697
|
+
}), A = g(() => a.topItems.length ? F(a.topItems) : []), D = g(() => a.bottomItems.length ? F(a.bottomItems) : []), I = q(a.open), N = (s) => {
|
|
1700
1698
|
var u, f;
|
|
1701
1699
|
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;
|
|
1702
|
-
},
|
|
1703
|
-
a.mobileOverlayCloseOnClick &&
|
|
1704
|
-
}, K =
|
|
1700
|
+
}, G = () => {
|
|
1701
|
+
a.mobileOverlayCloseOnClick && N(!1);
|
|
1702
|
+
}, K = q(!1), Z = (s) => {
|
|
1705
1703
|
K.value = !0, t("click", s), setTimeout(() => {
|
|
1706
|
-
|
|
1704
|
+
N(!1);
|
|
1707
1705
|
}, a.mobileCloseDelay);
|
|
1708
1706
|
};
|
|
1709
1707
|
Ze(() => a.open, (s) => {
|
|
1710
|
-
|
|
1708
|
+
N(s);
|
|
1711
1709
|
});
|
|
1712
|
-
const { debounce: oe } =
|
|
1713
|
-
I.value &&
|
|
1714
|
-
}, 200),
|
|
1715
|
-
|
|
1716
|
-
},
|
|
1710
|
+
const { debounce: oe } = Yt(), ae = oe(() => {
|
|
1711
|
+
I.value && X.value !== (window == null ? void 0 : window.innerWidth) && (X.value = window == null ? void 0 : window.innerWidth, N(!1));
|
|
1712
|
+
}, 200), X = q(), V = q(!1), j = q(), $ = () => {
|
|
1713
|
+
V.value || (V.value = !0, clearTimeout(j.value), j.value = setTimeout(() => V.value = !1, 1300));
|
|
1714
|
+
}, M = q(null), W = g(() => I.value && a.mobileEnabled), S = async (s) => {
|
|
1717
1715
|
var u, f;
|
|
1718
|
-
s ? (await
|
|
1716
|
+
s ? (await kn(), await new Promise((y) => setTimeout(y, 300)), (u = M.value) == null || u.activate()) : (f = M.value) == null || f.deactivate();
|
|
1719
1717
|
};
|
|
1720
|
-
return Ze(
|
|
1721
|
-
s ? await
|
|
1718
|
+
return Ze(W, async (s) => {
|
|
1719
|
+
s ? await S(!0) : await S(!1);
|
|
1722
1720
|
}, { immediate: !0 }), We(() => {
|
|
1723
|
-
|
|
1724
|
-
}),
|
|
1725
|
-
window.removeEventListener("resize", ae), window.removeEventListener("resize",
|
|
1726
|
-
}), (s, u) => (h(), m(
|
|
1721
|
+
X.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", ae), window.addEventListener("resize", $);
|
|
1722
|
+
}), Ht(() => {
|
|
1723
|
+
window.removeEventListener("resize", ae), window.removeEventListener("resize", $);
|
|
1724
|
+
}), (s, u) => (h(), m(Ce, null, [
|
|
1727
1725
|
I.value && n.mobileOverlay && n.mobileEnabled ? (h(), m("div", {
|
|
1728
1726
|
key: 0,
|
|
1729
1727
|
class: "kong-ui-app-sidebar-overlay",
|
|
1730
|
-
onClick:
|
|
1731
|
-
})) :
|
|
1732
|
-
we(
|
|
1728
|
+
onClick: G
|
|
1729
|
+
})) : C("", !0),
|
|
1730
|
+
we(Tn(Gr), {
|
|
1733
1731
|
ref_key: "focusTrap",
|
|
1734
|
-
ref:
|
|
1732
|
+
ref: M,
|
|
1735
1733
|
active: !1,
|
|
1736
1734
|
"allow-outside-click": "",
|
|
1737
1735
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1738
1736
|
}, {
|
|
1739
|
-
default:
|
|
1737
|
+
default: R(() => [
|
|
1740
1738
|
_("aside", {
|
|
1741
1739
|
class: re(["kong-ui-app-sidebar", {
|
|
1742
1740
|
"sidebar-open": I.value,
|
|
1743
1741
|
"no-sidebar-header": !l.value,
|
|
1744
1742
|
"mobile-header-hidden": n.mobileEnabled && (!l.value || !n.mobileHeaderVisible),
|
|
1745
1743
|
"mobile-disabled": !n.mobileEnabled,
|
|
1746
|
-
"disable-transitions":
|
|
1744
|
+
"disable-transitions": V.value
|
|
1747
1745
|
}]),
|
|
1748
1746
|
tabindex: "-1"
|
|
1749
1747
|
}, [
|
|
1750
|
-
l.value ? (h(), m("div",
|
|
1748
|
+
l.value ? (h(), m("div", Yr, [
|
|
1751
1749
|
O(s.$slots, "header", {}, void 0, !0)
|
|
1752
|
-
])) :
|
|
1753
|
-
_("div",
|
|
1754
|
-
d.value ? (h(), m("div",
|
|
1750
|
+
])) : C("", !0),
|
|
1751
|
+
_("div", Jr, [
|
|
1752
|
+
d.value ? (h(), m("div", Qr, [
|
|
1755
1753
|
O(s.$slots, "top", {}, void 0, !0)
|
|
1756
|
-
])) :
|
|
1757
|
-
_("nav",
|
|
1758
|
-
|
|
1759
|
-
(h(!0), m(
|
|
1754
|
+
])) : C("", !0),
|
|
1755
|
+
_("nav", ei, [
|
|
1756
|
+
A.value.length ? (h(), m("ul", ti, [
|
|
1757
|
+
(h(!0), m(Ce, null, Ne(A.value, (f) => (h(), Q(Bt, {
|
|
1760
1758
|
key: f.name,
|
|
1761
1759
|
item: f,
|
|
1762
1760
|
onClick: Z
|
|
1763
1761
|
}, null, 8, ["item"]))), 128))
|
|
1764
|
-
])) :
|
|
1765
|
-
|
|
1766
|
-
D.value.length ? (h(), m("ul",
|
|
1767
|
-
(h(!0), m(
|
|
1762
|
+
])) : C("", !0),
|
|
1763
|
+
A.value.length && D.value.length ? (h(), m("div", ai)) : C("", !0),
|
|
1764
|
+
D.value.length ? (h(), m("ul", ni, [
|
|
1765
|
+
(h(!0), m(Ce, null, Ne(D.value, (f) => (h(), Q(Bt, {
|
|
1768
1766
|
key: f.name,
|
|
1769
1767
|
item: f,
|
|
1770
1768
|
onClick: Z
|
|
1771
1769
|
}, null, 8, ["item"]))), 128))
|
|
1772
|
-
])) :
|
|
1770
|
+
])) : C("", !0)
|
|
1773
1771
|
])
|
|
1774
1772
|
]),
|
|
1775
|
-
_("div",
|
|
1773
|
+
_("div", ri, [
|
|
1776
1774
|
O(s.$slots, "footer", {}, void 0, !0)
|
|
1777
1775
|
])
|
|
1778
1776
|
], 2)
|
|
@@ -1782,11 +1780,11 @@ const Jr = /* @__PURE__ */ Xr(Yr), Qr = {
|
|
|
1782
1780
|
], 64));
|
|
1783
1781
|
}
|
|
1784
1782
|
});
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
],
|
|
1783
|
+
const oi = /* @__PURE__ */ te(ii, [["__scopeId", "data-v-4f0a752f"]]), ft = (n) => (ze("data-v-00a332e0"), n = n(), Ge(), n), si = ["aria-label", "onClick"], ci = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), li = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), ui = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), di = [
|
|
1784
|
+
ci,
|
|
1785
|
+
li,
|
|
1786
|
+
ui
|
|
1787
|
+
], fi = /* @__PURE__ */ ee({
|
|
1790
1788
|
__name: "SidebarToggle",
|
|
1791
1789
|
props: {
|
|
1792
1790
|
active: {
|
|
@@ -1796,7 +1794,7 @@ const ci = /* @__PURE__ */ te(si, [["__scopeId", "data-v-150488ef"]]), ft = (n)
|
|
|
1796
1794
|
},
|
|
1797
1795
|
emits: ["toggle"],
|
|
1798
1796
|
setup(n, { emit: t }) {
|
|
1799
|
-
const a = n, r =
|
|
1797
|
+
const a = n, r = q(a.active || !1), l = () => {
|
|
1800
1798
|
r.value = !r.value, t("toggle", r.value);
|
|
1801
1799
|
};
|
|
1802
1800
|
return Ze(() => a.active, (d) => {
|
|
@@ -1807,17 +1805,17 @@ const ci = /* @__PURE__ */ te(si, [["__scopeId", "data-v-150488ef"]]), ft = (n)
|
|
|
1807
1805
|
class: re(["sidebar-menu-toggle", { active: r.value }]),
|
|
1808
1806
|
href: "#",
|
|
1809
1807
|
role: "button",
|
|
1810
|
-
onClick:
|
|
1811
|
-
},
|
|
1808
|
+
onClick: Sn(l, ["prevent"])
|
|
1809
|
+
}, di, 10, si));
|
|
1812
1810
|
}
|
|
1813
1811
|
});
|
|
1814
|
-
const
|
|
1812
|
+
const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ffffff", hi = "#000933", pi = "#000933", mi = "#ffffff", gi = "0px", yi = "4px", _i = (n) => (ze("data-v-f81adf4e"), n = n(), Ge(), n), wi = { id: "kong-ui-app-layout-notification" }, Ti = { class: "mobile-logo" }, ki = {
|
|
1815
1813
|
key: 0,
|
|
1816
1814
|
class: "navbar-logo"
|
|
1817
|
-
},
|
|
1815
|
+
}, Si = {
|
|
1818
1816
|
class: "kong-ui-app-layout-main",
|
|
1819
1817
|
"data-testid": "kong-ui-app-layout-main"
|
|
1820
|
-
},
|
|
1818
|
+
}, Ii = { class: "kong-ui-app-layout-content" }, Oi = { class: "kong-ui-app-layout-content-inner" }, Ci = /* @__PURE__ */ _i(() => /* @__PURE__ */ _("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), $i = /* @__PURE__ */ ee({
|
|
1821
1819
|
__name: "AppLayout",
|
|
1822
1820
|
props: {
|
|
1823
1821
|
hideDefaultSlot: {
|
|
@@ -1855,15 +1853,14 @@ const hi = /* @__PURE__ */ te(bi, [["__scopeId", "data-v-00a332e0"]]), pi = "#ff
|
|
|
1855
1853
|
emits: ["sidebar-click"],
|
|
1856
1854
|
setup(n, { emit: t }) {
|
|
1857
1855
|
const a = n;
|
|
1858
|
-
ut((
|
|
1859
|
-
"
|
|
1860
|
-
|
|
1861
|
-
"
|
|
1862
|
-
|
|
1863
|
-
"
|
|
1864
|
-
b4e67760: W.value
|
|
1856
|
+
ut(($) => ({
|
|
1857
|
+
"3c1b64a7": K.value,
|
|
1858
|
+
e1fe5bc6: Z.value,
|
|
1859
|
+
"74505bb5": G.value,
|
|
1860
|
+
24707019: oe.value,
|
|
1861
|
+
"1f0d0dcc": ae.value
|
|
1865
1862
|
}));
|
|
1866
|
-
const r = dt(), l =
|
|
1863
|
+
const r = dt(), l = Me({
|
|
1867
1864
|
navbarLeft: g(() => !!r["navbar-left"]),
|
|
1868
1865
|
navbarCenter: g(() => !!r["navbar-center"]),
|
|
1869
1866
|
navbarRight: g(() => !!r["navbar-right"]),
|
|
@@ -1872,59 +1869,59 @@ const hi = /* @__PURE__ */ te(bi, [["__scopeId", "data-v-00a332e0"]]), pi = "#ff
|
|
|
1872
1869
|
sidebarHeader: g(() => !!r["sidebar-header"]),
|
|
1873
1870
|
sidebarTop: g(() => !!r["sidebar-top"]),
|
|
1874
1871
|
sidebarFooter: g(() => !!r["sidebar-footer"])
|
|
1875
|
-
}), d = g(() => a.hideDefaultSlot), o =
|
|
1872
|
+
}), d = g(() => a.hideDefaultSlot), o = Me({
|
|
1876
1873
|
hidden: g(() => a.navbarHidden)
|
|
1877
|
-
}), v =
|
|
1874
|
+
}), v = Me({
|
|
1878
1875
|
topItems: g(() => a.sidebarTopItems),
|
|
1879
1876
|
bottomItems: g(() => a.sidebarBottomItems),
|
|
1880
1877
|
open: g(() => a.sidebarOpen),
|
|
1881
1878
|
hidden: g(() => a.sidebarHidden)
|
|
1882
|
-
}), p = (
|
|
1883
|
-
t("sidebar-click",
|
|
1884
|
-
}, w =
|
|
1885
|
-
w.value =
|
|
1879
|
+
}), p = ($) => {
|
|
1880
|
+
t("sidebar-click", $);
|
|
1881
|
+
}, w = q(!1), F = ($) => {
|
|
1882
|
+
w.value = $;
|
|
1886
1883
|
};
|
|
1887
|
-
|
|
1888
|
-
w.value =
|
|
1884
|
+
In(() => {
|
|
1885
|
+
w.value = On(v, "open").value || !1;
|
|
1889
1886
|
});
|
|
1890
|
-
const
|
|
1891
|
-
if (
|
|
1892
|
-
|
|
1893
|
-
const
|
|
1894
|
-
|
|
1887
|
+
const A = q(0), D = q(60), I = q(0), N = g(() => o.hidden ? I.value : D.value + I.value), G = g(() => a.theme === "light" ? pi : mi), K = g(() => a.theme === "light" ? bi : hi), Z = g(() => a.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), oe = g(() => `${N.value}px`), ae = g(() => v.hidden || o.hidden ? gi : yi), { debounce: X } = Yt(), V = X(($ = !1) => {
|
|
1888
|
+
if ($ || A.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1889
|
+
A.value = window == null ? void 0 : window.innerWidth;
|
|
1890
|
+
const M = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1891
|
+
M && (I.value = M.offsetHeight);
|
|
1895
1892
|
}
|
|
1896
|
-
}, 200),
|
|
1893
|
+
}, 200), j = q();
|
|
1897
1894
|
return We(() => {
|
|
1898
|
-
var
|
|
1899
|
-
(
|
|
1900
|
-
const
|
|
1901
|
-
|
|
1895
|
+
var M, W;
|
|
1896
|
+
(M = document == null ? void 0 : document.body) == null || M.classList.add("kong-ui-app-layout-body"), (W = document == null ? void 0 : document.documentElement) == null || W.classList.add("kong-ui-app-layout-html"), A.value = window == null ? void 0 : window.innerWidth, V(!0);
|
|
1897
|
+
const $ = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1898
|
+
$ && (j.value = new ResizeObserver((S) => {
|
|
1902
1899
|
window.requestAnimationFrame(() => {
|
|
1903
|
-
if (!(!Array.isArray(
|
|
1904
|
-
for (const
|
|
1905
|
-
const
|
|
1906
|
-
I.value !==
|
|
1900
|
+
if (!(!Array.isArray(S) || !S.length))
|
|
1901
|
+
for (const s of S) {
|
|
1902
|
+
const u = s.contentRect.height;
|
|
1903
|
+
I.value !== u && (I.value = u);
|
|
1907
1904
|
}
|
|
1908
1905
|
});
|
|
1909
|
-
}),
|
|
1910
|
-
}),
|
|
1911
|
-
|
|
1912
|
-
}), (
|
|
1906
|
+
}), j.value.observe($)), window.addEventListener("resize", V);
|
|
1907
|
+
}), Ht(() => {
|
|
1908
|
+
j.value && j.value.disconnect(), window.removeEventListener("resize", V);
|
|
1909
|
+
}), ($, M) => (h(), m("div", {
|
|
1913
1910
|
class: re(["kong-ui-app-layout", [
|
|
1914
1911
|
{ "navbar-hidden": o.hidden },
|
|
1915
1912
|
{ "sidebar-hidden": v.hidden }
|
|
1916
1913
|
]])
|
|
1917
1914
|
}, [
|
|
1918
|
-
_("div",
|
|
1919
|
-
O(
|
|
1915
|
+
_("div", wi, [
|
|
1916
|
+
O($.$slots, "notification", {}, void 0, !0)
|
|
1920
1917
|
]),
|
|
1921
|
-
o.hidden ?
|
|
1918
|
+
o.hidden ? C("", !0) : (h(), Q(cr, {
|
|
1922
1919
|
key: String(v.hidden),
|
|
1923
1920
|
"left-offset": v.hidden ? 0 : void 0,
|
|
1924
1921
|
"top-offset": I.value
|
|
1925
|
-
},
|
|
1926
|
-
"mobile-sidebar-toggle":
|
|
1927
|
-
v.hidden ?
|
|
1922
|
+
}, Pe({
|
|
1923
|
+
"mobile-sidebar-toggle": R(() => [
|
|
1924
|
+
v.hidden ? C("", !0) : (h(), Q(vi, {
|
|
1928
1925
|
key: 0,
|
|
1929
1926
|
active: w.value,
|
|
1930
1927
|
onToggle: F
|
|
@@ -1934,112 +1931,112 @@ const hi = /* @__PURE__ */ te(bi, [["__scopeId", "data-v-00a332e0"]]), pi = "#ff
|
|
|
1934
1931
|
}, [
|
|
1935
1932
|
l.navbarMobileLogo ? {
|
|
1936
1933
|
name: "mobile-logo",
|
|
1937
|
-
fn:
|
|
1938
|
-
_("div",
|
|
1939
|
-
O(
|
|
1934
|
+
fn: R(() => [
|
|
1935
|
+
_("div", Ti, [
|
|
1936
|
+
O($.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1940
1937
|
])
|
|
1941
1938
|
]),
|
|
1942
1939
|
key: "0"
|
|
1943
1940
|
} : void 0,
|
|
1944
1941
|
l.navbarLogo ? {
|
|
1945
1942
|
name: "logo",
|
|
1946
|
-
fn:
|
|
1947
|
-
v.hidden ? (h(), m("div",
|
|
1948
|
-
O(
|
|
1949
|
-
])) :
|
|
1943
|
+
fn: R(() => [
|
|
1944
|
+
v.hidden ? (h(), m("div", ki, [
|
|
1945
|
+
O($.$slots, "navbar-logo", {}, void 0, !0)
|
|
1946
|
+
])) : C("", !0)
|
|
1950
1947
|
]),
|
|
1951
1948
|
key: "1"
|
|
1952
1949
|
} : void 0,
|
|
1953
1950
|
l.navbarLeft ? {
|
|
1954
1951
|
name: "left",
|
|
1955
|
-
fn:
|
|
1956
|
-
O(
|
|
1952
|
+
fn: R(() => [
|
|
1953
|
+
O($.$slots, "navbar-left", {}, void 0, !0)
|
|
1957
1954
|
]),
|
|
1958
1955
|
key: "2"
|
|
1959
1956
|
} : void 0,
|
|
1960
1957
|
l.navbarCenter ? {
|
|
1961
1958
|
name: "center",
|
|
1962
|
-
fn:
|
|
1963
|
-
O(
|
|
1959
|
+
fn: R(() => [
|
|
1960
|
+
O($.$slots, "navbar-center", {}, void 0, !0)
|
|
1964
1961
|
]),
|
|
1965
1962
|
key: "3"
|
|
1966
1963
|
} : void 0,
|
|
1967
1964
|
l.navbarRight ? {
|
|
1968
1965
|
name: "right",
|
|
1969
|
-
fn:
|
|
1970
|
-
O(
|
|
1966
|
+
fn: R(() => [
|
|
1967
|
+
O($.$slots, "navbar-right", {}, void 0, !0)
|
|
1971
1968
|
]),
|
|
1972
1969
|
key: "4"
|
|
1973
1970
|
} : void 0
|
|
1974
1971
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1975
|
-
v.hidden ?
|
|
1972
|
+
v.hidden ? C("", !0) : (h(), Q(oi, {
|
|
1976
1973
|
key: 1,
|
|
1977
1974
|
"bottom-items": v.bottomItems,
|
|
1978
1975
|
"header-height": D.value,
|
|
1979
1976
|
"mobile-enabled": "",
|
|
1980
1977
|
"mobile-header-visible": !1,
|
|
1981
|
-
"mobile-top-offset":
|
|
1978
|
+
"mobile-top-offset": N.value,
|
|
1982
1979
|
open: w.value,
|
|
1983
1980
|
"top-items": v.topItems,
|
|
1984
1981
|
"top-offset": I.value,
|
|
1985
1982
|
onClick: p,
|
|
1986
1983
|
onToggle: F
|
|
1987
|
-
},
|
|
1984
|
+
}, Pe({ _: 2 }, [
|
|
1988
1985
|
l.sidebarHeader ? {
|
|
1989
1986
|
name: "header",
|
|
1990
|
-
fn:
|
|
1991
|
-
O(
|
|
1987
|
+
fn: R(() => [
|
|
1988
|
+
O($.$slots, "sidebar-header", {}, void 0, !0)
|
|
1992
1989
|
]),
|
|
1993
1990
|
key: "0"
|
|
1994
1991
|
} : void 0,
|
|
1995
1992
|
l.sidebarTop ? {
|
|
1996
1993
|
name: "top",
|
|
1997
|
-
fn:
|
|
1998
|
-
O(
|
|
1994
|
+
fn: R(() => [
|
|
1995
|
+
O($.$slots, "sidebar-top", {}, void 0, !0)
|
|
1999
1996
|
]),
|
|
2000
1997
|
key: "1"
|
|
2001
1998
|
} : void 0,
|
|
2002
1999
|
l.sidebarFooter ? {
|
|
2003
2000
|
name: "footer",
|
|
2004
|
-
fn:
|
|
2005
|
-
O(
|
|
2001
|
+
fn: R(() => [
|
|
2002
|
+
O($.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2006
2003
|
]),
|
|
2007
2004
|
key: "2"
|
|
2008
2005
|
} : void 0
|
|
2009
2006
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2010
|
-
_("main",
|
|
2011
|
-
_("div",
|
|
2007
|
+
_("main", Si, [
|
|
2008
|
+
_("div", Ii, [
|
|
2012
2009
|
_("div", Oi, [
|
|
2013
|
-
|
|
2014
|
-
O(
|
|
2015
|
-
d.value ?
|
|
2010
|
+
Ci,
|
|
2011
|
+
O($.$slots, "app-error", {}, void 0, !0),
|
|
2012
|
+
d.value ? C("", !0) : O($.$slots, "default", { key: 0 }, void 0, !0)
|
|
2016
2013
|
])
|
|
2017
2014
|
])
|
|
2018
2015
|
])
|
|
2019
2016
|
], 2));
|
|
2020
2017
|
}
|
|
2021
2018
|
});
|
|
2022
|
-
const Ni = /* @__PURE__ */ te(
|
|
2019
|
+
const Ni = /* @__PURE__ */ te($i, [["__scopeId", "data-v-f81adf4e"]]), Ai = (n) => (ze("data-v-d7e33427"), n = n(), Ge(), n), Ei = { class: "kong-ui-app-page-header" }, xi = {
|
|
2023
2020
|
key: 0,
|
|
2024
2021
|
class: "page-header-breadcrumbs",
|
|
2025
2022
|
"data-testid": "page-header-breadcrumbs"
|
|
2026
|
-
},
|
|
2023
|
+
}, Fi = /* @__PURE__ */ Ai(() => /* @__PURE__ */ _("span", { class: "page-header-breadcrumb-divider" }, "/", -1)), Di = { class: "page-header-title-section" }, Ri = { class: "page-header-title-wrapper" }, Bi = {
|
|
2027
2024
|
key: 0,
|
|
2028
2025
|
class: "page-header-title-before",
|
|
2029
2026
|
"data-testid": "page-header-title-before"
|
|
2030
|
-
},
|
|
2027
|
+
}, Li = ["title"], Mi = {
|
|
2031
2028
|
key: 1,
|
|
2032
2029
|
class: "page-header-title-after",
|
|
2033
2030
|
"data-testid": "page-header-title-after"
|
|
2034
|
-
},
|
|
2031
|
+
}, Pi = {
|
|
2035
2032
|
key: 0,
|
|
2036
2033
|
class: "page-header-actions",
|
|
2037
2034
|
"data-testid": "page-header-actions"
|
|
2038
|
-
},
|
|
2035
|
+
}, Zi = {
|
|
2039
2036
|
key: 1,
|
|
2040
2037
|
class: "page-header-section-below",
|
|
2041
2038
|
"data-testid": "page-header-section-below"
|
|
2042
|
-
},
|
|
2039
|
+
}, Ki = /* @__PURE__ */ ee({
|
|
2043
2040
|
__name: "AppPageHeader",
|
|
2044
2041
|
props: {
|
|
2045
2042
|
title: {
|
|
@@ -2058,48 +2055,48 @@ const Ni = /* @__PURE__ */ te(Ai, [["__scopeId", "data-v-f5498742"]]), Ei = (n)
|
|
|
2058
2055
|
}), r = (d, o) => d.key || `breadcrumb-${o}`, l = g(() => t.breadcrumbs.map((d, o) => `icon-${r(d, o)}`) || []);
|
|
2059
2056
|
return (d, o) => {
|
|
2060
2057
|
const v = ce("KBreadcrumbs");
|
|
2061
|
-
return h(), m("div",
|
|
2062
|
-
a.value ? (h(), m("div",
|
|
2063
|
-
we(v, { items: n.breadcrumbs },
|
|
2064
|
-
divider:
|
|
2065
|
-
|
|
2058
|
+
return h(), m("div", Ei, [
|
|
2059
|
+
a.value ? (h(), m("div", xi, [
|
|
2060
|
+
we(v, { items: n.breadcrumbs }, Pe({
|
|
2061
|
+
divider: R(() => [
|
|
2062
|
+
Fi
|
|
2066
2063
|
]),
|
|
2067
2064
|
_: 2
|
|
2068
2065
|
}, [
|
|
2069
|
-
|
|
2066
|
+
Ne(l.value, (p) => ({
|
|
2070
2067
|
name: p,
|
|
2071
|
-
fn:
|
|
2068
|
+
fn: R(() => [
|
|
2072
2069
|
O(d.$slots, p, {}, void 0, !0)
|
|
2073
2070
|
])
|
|
2074
2071
|
}))
|
|
2075
2072
|
]), 1032, ["items"])
|
|
2076
|
-
])) :
|
|
2077
|
-
_("div",
|
|
2073
|
+
])) : C("", !0),
|
|
2074
|
+
_("div", Di, [
|
|
2078
2075
|
_("div", Ri, [
|
|
2079
|
-
d.$slots["title-before"] ? (h(), m("div",
|
|
2076
|
+
d.$slots["title-before"] ? (h(), m("div", Bi, [
|
|
2080
2077
|
O(d.$slots, "title-before", {}, void 0, !0)
|
|
2081
|
-
])) :
|
|
2078
|
+
])) : C("", !0),
|
|
2082
2079
|
_("h1", {
|
|
2083
2080
|
class: "page-header-title",
|
|
2084
2081
|
"data-testid": "page-header-title",
|
|
2085
2082
|
title: n.title
|
|
2086
|
-
}, J(n.title), 9,
|
|
2083
|
+
}, J(n.title), 9, Li),
|
|
2087
2084
|
d.$slots["title-after"] ? (h(), m("div", Mi, [
|
|
2088
2085
|
O(d.$slots, "title-after", {}, void 0, !0)
|
|
2089
|
-
])) :
|
|
2086
|
+
])) : C("", !0)
|
|
2090
2087
|
]),
|
|
2091
|
-
d.$slots.actions ? (h(), m("div",
|
|
2088
|
+
d.$slots.actions ? (h(), m("div", Pi, [
|
|
2092
2089
|
O(d.$slots, "actions", {}, void 0, !0)
|
|
2093
|
-
])) :
|
|
2090
|
+
])) : C("", !0)
|
|
2094
2091
|
]),
|
|
2095
|
-
d.$slots.below ? (h(), m("div",
|
|
2092
|
+
d.$slots.below ? (h(), m("div", Zi, [
|
|
2096
2093
|
O(d.$slots, "below", {}, void 0, !0)
|
|
2097
|
-
])) :
|
|
2094
|
+
])) : C("", !0)
|
|
2098
2095
|
]);
|
|
2099
2096
|
};
|
|
2100
2097
|
}
|
|
2101
2098
|
});
|
|
2102
|
-
const
|
|
2099
|
+
const zi = /* @__PURE__ */ te(Ki, [["__scopeId", "data-v-d7e33427"]]), Gi = {
|
|
2103
2100
|
// Customize Vue plugin options as desired
|
|
2104
2101
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2105
2102
|
install: (n, t = {}) => {
|
|
@@ -2107,13 +2104,13 @@ const Gi = /* @__PURE__ */ te(ji, [["__scopeId", "data-v-d7e33427"]]), Wi = {
|
|
|
2107
2104
|
}
|
|
2108
2105
|
};
|
|
2109
2106
|
export {
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2107
|
+
Hi as AccountDropdown,
|
|
2108
|
+
Ui as AppAboutSection,
|
|
2109
|
+
Vi as AppError,
|
|
2113
2110
|
Ni as AppLayout,
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2111
|
+
cr as AppNavbar,
|
|
2112
|
+
zi as AppPageHeader,
|
|
2113
|
+
oi as AppSidebar,
|
|
2114
|
+
vi as SidebarToggle,
|
|
2115
|
+
Gi as default
|
|
2119
2116
|
};
|