@kong-ui-public/app-layout 4.8.1-pr.2501.ba1d17f48.0 → 4.8.1
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 +780 -804
- package/dist/app-layout.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/components/AppLayout.vue.d.ts +3 -5
- package/dist/types/components/AppLayout.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts +3 -5
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarItem.vue.d.ts +1 -3
- package/dist/types/components/sidebar/SidebarItem.vue.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/app-layout.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronRightIcon as ta, ChevronDownIcon as
|
|
1
|
+
import { defineComponent as re, resolveComponent as be, createBlock as K, openBlock as p, withCtx as B, renderSlot as C, createElementBlock as T, Fragment as Oe, renderList as we, normalizeClass as oe, createTextVNode as Be, toDisplayString as Y, computed as S, createSlots as qe, createVNode as Le, createCommentVNode as O, createElementVNode as E, createStaticVNode as In, useCssVars as yt, reactive as Ue, useSlots as tt, onMounted as Me, getCurrentInstance as Yt, hasInjectionContext as Qt, inject as On, watch as Ae, getCurrentScope as $n, onScopeDispose as En, shallowRef as Ve, watchEffect as Jt, toValue as $e, unref as ve, resolveDynamicComponent as Ee, withKeys as An, ref as ee, onUnmounted as Fn, Comment as Nn, cloneVNode as Dn, nextTick as Ht, onBeforeUnmount as ea, withModifiers as Rn, toRef as xn } from "vue";
|
|
2
|
+
import { ChevronRightIcon as ta, ChevronDownIcon as Bn } from "@kong/icons";
|
|
3
3
|
import { KButton as Ln, HeaderTags as Mn } from "@kong/kongponents";
|
|
4
|
-
const jn = /* @__PURE__ */
|
|
4
|
+
const jn = /* @__PURE__ */ re({
|
|
5
5
|
__name: "AccountDropdown",
|
|
6
6
|
props: {
|
|
7
7
|
options: {
|
|
@@ -21,25 +21,25 @@ const jn = /* @__PURE__ */ ie({
|
|
|
21
21
|
},
|
|
22
22
|
setup(a) {
|
|
23
23
|
return (t, r) => {
|
|
24
|
-
const n =
|
|
25
|
-
return p(),
|
|
24
|
+
const n = be("KDropdownItem"), s = be("KDropdown");
|
|
25
|
+
return p(), K(s, {
|
|
26
26
|
class: "account-dropdown",
|
|
27
27
|
"kpop-attributes": { placement: "bottom-end" },
|
|
28
28
|
"trigger-text": a.userInitials,
|
|
29
29
|
width: a.width
|
|
30
30
|
}, {
|
|
31
|
-
items:
|
|
31
|
+
items: B(({ handleSelection: u }) => [
|
|
32
32
|
C(t.$slots, "default", {}, () => [
|
|
33
|
-
(p(!0),
|
|
33
|
+
(p(!0), T(Oe, null, we(a.options, (o) => (p(), K(n, {
|
|
34
34
|
key: o.value,
|
|
35
|
-
class:
|
|
35
|
+
class: oe({ "has-divider": o.hasDivider }),
|
|
36
36
|
"data-testid": "select-" + o.value,
|
|
37
37
|
"has-divider": o.hasDivider,
|
|
38
|
-
onClick: (
|
|
38
|
+
onClick: (v) => u(o)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: B(() => [
|
|
41
41
|
C(t.$slots, "default", { option: o }, () => [
|
|
42
|
-
|
|
42
|
+
Be(Y(o.label), 1)
|
|
43
43
|
], !0)
|
|
44
44
|
]),
|
|
45
45
|
_: 2
|
|
@@ -50,12 +50,12 @@ const jn = /* @__PURE__ */ ie({
|
|
|
50
50
|
}, 8, ["trigger-text", "width"]);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), ie = (a, t) => {
|
|
54
54
|
const r = a.__vccOpts || a;
|
|
55
55
|
for (const [n, s] of t)
|
|
56
56
|
r[n] = s;
|
|
57
57
|
return r;
|
|
58
|
-
},
|
|
58
|
+
}, go = /* @__PURE__ */ ie(jn, [["__scopeId", "data-v-b33191a2"]]), Pn = {
|
|
59
59
|
class: "about-section-title",
|
|
60
60
|
"data-testid": "about-section-title"
|
|
61
61
|
}, Kn = { class: "about-section-header-end" }, Zn = {
|
|
@@ -91,7 +91,7 @@ const jn = /* @__PURE__ */ ie({
|
|
|
91
91
|
key: 3,
|
|
92
92
|
class: "about-divider-section",
|
|
93
93
|
"data-testid": "about-divider-section"
|
|
94
|
-
}, Qn = /* @__PURE__ */
|
|
94
|
+
}, Qn = /* @__PURE__ */ re({
|
|
95
95
|
__name: "AppAboutSection",
|
|
96
96
|
props: {
|
|
97
97
|
title: { default: "" },
|
|
@@ -105,40 +105,40 @@ const jn = /* @__PURE__ */ ie({
|
|
|
105
105
|
setup(a) {
|
|
106
106
|
const t = a, r = S(() => !!t.modified && t.modified !== t.created);
|
|
107
107
|
return (n, s) => {
|
|
108
|
-
const
|
|
109
|
-
return p(),
|
|
108
|
+
const u = be("KSkeletonBox"), o = be("KCard");
|
|
109
|
+
return p(), K(o, {
|
|
110
110
|
class: "kong-ui-app-about-section",
|
|
111
111
|
"title-tag": "h2"
|
|
112
|
-
},
|
|
113
|
-
default:
|
|
114
|
-
n.isLoading ? (p(),
|
|
115
|
-
|
|
112
|
+
}, qe({
|
|
113
|
+
default: B(() => [
|
|
114
|
+
n.isLoading ? (p(), T("div", Gn, [
|
|
115
|
+
Le(u, {
|
|
116
116
|
height: "2",
|
|
117
117
|
width: "100"
|
|
118
118
|
}),
|
|
119
|
-
|
|
119
|
+
Le(u, {
|
|
120
120
|
height: "2",
|
|
121
121
|
width: "100"
|
|
122
122
|
})
|
|
123
|
-
])) : (p(),
|
|
124
|
-
n.description ? (p(),
|
|
125
|
-
n.$slots.default ? (p(),
|
|
123
|
+
])) : (p(), T("div", Un, [
|
|
124
|
+
n.description ? (p(), T("p", Vn, Y(n.description), 1)) : O("", !0),
|
|
125
|
+
n.$slots.default ? (p(), T("div", qn, [
|
|
126
126
|
C(n.$slots, "default", {}, void 0, !0)
|
|
127
|
-
])) :
|
|
128
|
-
n.$slots["divider-section"] ? (p(),
|
|
129
|
-
n.$slots["divider-section"] ? (p(),
|
|
127
|
+
])) : O("", !0),
|
|
128
|
+
n.$slots["divider-section"] ? (p(), T("hr", Xn)) : O("", !0),
|
|
129
|
+
n.$slots["divider-section"] ? (p(), T("div", Yn, [
|
|
130
130
|
C(n.$slots, "divider-section", {}, void 0, !0)
|
|
131
|
-
])) :
|
|
131
|
+
])) : O("", !0)
|
|
132
132
|
]))
|
|
133
133
|
]),
|
|
134
134
|
_: 2
|
|
135
135
|
}, [
|
|
136
136
|
n.$slots.title || n.title ? {
|
|
137
137
|
name: "title",
|
|
138
|
-
fn:
|
|
138
|
+
fn: B(() => [
|
|
139
139
|
E("span", Pn, [
|
|
140
140
|
C(n.$slots, "title", {}, () => [
|
|
141
|
-
|
|
141
|
+
Be(Y(n.title), 1)
|
|
142
142
|
], !0)
|
|
143
143
|
])
|
|
144
144
|
]),
|
|
@@ -146,19 +146,19 @@ const jn = /* @__PURE__ */ ie({
|
|
|
146
146
|
} : void 0,
|
|
147
147
|
n.$slots.actions || n.created || n.modified ? {
|
|
148
148
|
name: "actions",
|
|
149
|
-
fn:
|
|
149
|
+
fn: B(() => [
|
|
150
150
|
E("div", Kn, [
|
|
151
|
-
n.created || n.modified ? (p(),
|
|
151
|
+
n.created || n.modified ? (p(), T("div", {
|
|
152
152
|
key: 0,
|
|
153
|
-
class:
|
|
153
|
+
class: oe(["about-section-timestamps", { "has-actions": n.$slots.actions }])
|
|
154
154
|
}, [
|
|
155
|
-
n.created ? (p(),
|
|
156
|
-
n.created && r.value ? (p(),
|
|
157
|
-
r.value ? (p(),
|
|
158
|
-
], 2)) :
|
|
159
|
-
n.$slots.actions ? (p(),
|
|
155
|
+
n.created ? (p(), T("span", Zn, Y(n.createdLabel) + ": " + Y(n.created), 1)) : O("", !0),
|
|
156
|
+
n.created && r.value ? (p(), T("span", Hn, "->")) : O("", !0),
|
|
157
|
+
r.value ? (p(), T("span", Wn, Y(n.modifiedLabel) + ": " + Y(n.modified), 1)) : O("", !0)
|
|
158
|
+
], 2)) : O("", !0),
|
|
159
|
+
n.$slots.actions ? (p(), T("div", zn, [
|
|
160
160
|
C(n.$slots, "actions", {}, void 0, !0)
|
|
161
|
-
])) :
|
|
161
|
+
])) : O("", !0)
|
|
162
162
|
])
|
|
163
163
|
]),
|
|
164
164
|
key: "1"
|
|
@@ -166,40 +166,40 @@ const jn = /* @__PURE__ */ ie({
|
|
|
166
166
|
]), 1024);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
169
|
+
}), yo = /* @__PURE__ */ ie(Qn, [["__scopeId", "data-v-f5864a9c"]]), Jn = {}, er = {
|
|
170
170
|
fill: "none",
|
|
171
171
|
height: "130",
|
|
172
172
|
width: "130",
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg"
|
|
174
174
|
};
|
|
175
175
|
function tr(a, t) {
|
|
176
|
-
return p(),
|
|
176
|
+
return p(), T("svg", er, t[0] || (t[0] = [
|
|
177
177
|
In('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>', 5)
|
|
178
178
|
]));
|
|
179
179
|
}
|
|
180
|
-
const ar = /* @__PURE__ */
|
|
180
|
+
const ar = /* @__PURE__ */ ie(Jn, [["render", tr]]), nr = { class: "kong-ui-app-error" }, rr = { class: "banana-icon" }, ir = { class: "kong-ui-app-error-content" }, or = /* @__PURE__ */ re({
|
|
181
181
|
__name: "AppError",
|
|
182
182
|
setup(a) {
|
|
183
|
-
return (t, r) => (p(),
|
|
183
|
+
return (t, r) => (p(), T("section", nr, [
|
|
184
184
|
E("div", rr, [
|
|
185
|
-
|
|
185
|
+
Le(ar)
|
|
186
186
|
]),
|
|
187
187
|
E("div", ir, [
|
|
188
188
|
C(t.$slots, "default", {}, () => [
|
|
189
189
|
r[0] || (r[0] = E("h2", null, "An unexpected error has occurred", -1)),
|
|
190
190
|
r[1] || (r[1] = E("p", null, [
|
|
191
|
-
|
|
191
|
+
Be("Go back to the previous page or "),
|
|
192
192
|
E("a", { href: "/" }, "return home"),
|
|
193
|
-
|
|
193
|
+
Be(".")
|
|
194
194
|
], -1))
|
|
195
195
|
], !0)
|
|
196
196
|
])
|
|
197
197
|
]));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), wo = /* @__PURE__ */ ie(or, [["__scopeId", "data-v-b6d8dc55"]]), sr = { class: "kong-ui-app-navbar" }, lr = { class: "header-content" }, cr = { class: "mobile-header-left" }, ur = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "app-navbar-logo"
|
|
202
|
-
}, dr = { class: "navbar-content" }, fr = { class: "navbar-content-left" }, vr = { class: "navbar-content-center" }, br = { class: "navbar-content-right" }, pr = /* @__PURE__ */
|
|
202
|
+
}, dr = { class: "navbar-content" }, fr = { class: "navbar-content-left" }, vr = { class: "navbar-content-center" }, br = { class: "navbar-content-right" }, pr = /* @__PURE__ */ re({
|
|
203
203
|
__name: "AppNavbar",
|
|
204
204
|
props: {
|
|
205
205
|
topOffset: {
|
|
@@ -218,34 +218,34 @@ const ar = /* @__PURE__ */ oe(Jn, [["render", tr]]), nr = { class: "kong-ui-app-
|
|
|
218
218
|
},
|
|
219
219
|
setup(a) {
|
|
220
220
|
yt((o) => ({
|
|
221
|
-
"27c93a10":
|
|
222
|
-
"0f284bf5":
|
|
223
|
-
d1659a78:
|
|
221
|
+
"27c93a10": u.value.top,
|
|
222
|
+
"0f284bf5": u.value.zIndex,
|
|
223
|
+
d1659a78: u.value.left,
|
|
224
224
|
"3d9232e8": s.marginRight,
|
|
225
225
|
"038c3c78": s.width
|
|
226
226
|
}));
|
|
227
|
-
const t = a, r =
|
|
227
|
+
const t = a, r = tt(), n = S(() => !!r.logo), s = Ue({
|
|
228
228
|
marginRight: "0",
|
|
229
229
|
width: "0"
|
|
230
230
|
});
|
|
231
|
-
|
|
232
|
-
var o,
|
|
233
|
-
(
|
|
231
|
+
Me(() => {
|
|
232
|
+
var o, v;
|
|
233
|
+
(v = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && v.length ? (s.marginRight = "32px", s.width = "calc(240px - 32px)") : (s.marginRight = "0", s.width = "0");
|
|
234
234
|
});
|
|
235
|
-
const
|
|
235
|
+
const u = S(() => ({
|
|
236
236
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
237
237
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
238
238
|
zIndex: t.zIndex
|
|
239
239
|
}));
|
|
240
|
-
return (o,
|
|
240
|
+
return (o, v) => (p(), T("header", sr, [
|
|
241
241
|
E("div", lr, [
|
|
242
242
|
E("div", cr, [
|
|
243
243
|
C(o.$slots, "mobile-sidebar-toggle"),
|
|
244
244
|
C(o.$slots, "mobile-logo")
|
|
245
245
|
]),
|
|
246
|
-
n.value ? (p(),
|
|
246
|
+
n.value ? (p(), T("div", ur, [
|
|
247
247
|
C(o.$slots, "logo")
|
|
248
|
-
])) :
|
|
248
|
+
])) : O("", !0),
|
|
249
249
|
E("div", dr, [
|
|
250
250
|
E("div", fr, [
|
|
251
251
|
C(o.$slots, "left")
|
|
@@ -260,16 +260,16 @@ const ar = /* @__PURE__ */ oe(Jn, [["render", tr]]), nr = { class: "kong-ui-app-
|
|
|
260
260
|
])
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
263
|
-
}), hr = /* @__PURE__ */
|
|
263
|
+
}), hr = /* @__PURE__ */ ie(pr, [["__scopeId", "data-v-2f6fc50f"]]);
|
|
264
264
|
function mr(a) {
|
|
265
|
-
return
|
|
265
|
+
return $n() ? (En(a), !0) : !1;
|
|
266
266
|
}
|
|
267
267
|
const vt = /* @__PURE__ */ new WeakMap(), gr = (...a) => {
|
|
268
268
|
var t;
|
|
269
269
|
const r = a[0], n = (t = Yt()) == null ? void 0 : t.proxy;
|
|
270
270
|
if (n == null && !Qt())
|
|
271
271
|
throw new Error("injectLocal must be called in setup");
|
|
272
|
-
return n && vt.has(n) && r in vt.get(n) ? vt.get(n)[r] :
|
|
272
|
+
return n && vt.has(n) && r in vt.get(n) ? vt.get(n)[r] : On(...a);
|
|
273
273
|
}, yr = typeof window < "u" && typeof document < "u";
|
|
274
274
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
275
275
|
const wr = Object.prototype.toString, kr = (a) => wr.call(a) === "[object Object]";
|
|
@@ -280,7 +280,7 @@ function bt(a) {
|
|
|
280
280
|
return Array.isArray(a) ? a : [a];
|
|
281
281
|
}
|
|
282
282
|
function Tr(a, t, r) {
|
|
283
|
-
return
|
|
283
|
+
return Ae(
|
|
284
284
|
a,
|
|
285
285
|
t,
|
|
286
286
|
{
|
|
@@ -292,47 +292,47 @@ function Tr(a, t, r) {
|
|
|
292
292
|
const aa = yr ? window : void 0;
|
|
293
293
|
function _r(a) {
|
|
294
294
|
var t;
|
|
295
|
-
const r =
|
|
295
|
+
const r = $e(a);
|
|
296
296
|
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
297
297
|
}
|
|
298
298
|
function Sr(...a) {
|
|
299
299
|
const t = [], r = () => {
|
|
300
|
-
t.forEach((
|
|
301
|
-
}, n = (
|
|
302
|
-
const
|
|
303
|
-
return
|
|
304
|
-
}),
|
|
300
|
+
t.forEach((v) => v()), t.length = 0;
|
|
301
|
+
}, n = (v, b, w, I) => (v.addEventListener(b, w, I), () => v.removeEventListener(b, w, I)), s = S(() => {
|
|
302
|
+
const v = bt($e(a[0])).filter((b) => b != null);
|
|
303
|
+
return v.every((b) => typeof b != "string") ? v : void 0;
|
|
304
|
+
}), u = Tr(
|
|
305
305
|
() => {
|
|
306
|
-
var
|
|
306
|
+
var v, b;
|
|
307
307
|
return [
|
|
308
|
-
(b = (
|
|
309
|
-
bt(
|
|
308
|
+
(b = (v = s.value) == null ? void 0 : v.map((w) => _r(w))) != null ? b : [aa].filter((w) => w != null),
|
|
309
|
+
bt($e(s.value ? a[1] : a[0])),
|
|
310
310
|
bt(ve(s.value ? a[2] : a[1])),
|
|
311
311
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
312
|
-
|
|
312
|
+
$e(s.value ? a[3] : a[2])
|
|
313
313
|
];
|
|
314
314
|
},
|
|
315
|
-
([
|
|
316
|
-
if (r(), !(
|
|
315
|
+
([v, b, w, I]) => {
|
|
316
|
+
if (r(), !(v != null && v.length) || !(b != null && b.length) || !(w != null && w.length))
|
|
317
317
|
return;
|
|
318
|
-
const R = kr(
|
|
318
|
+
const R = kr(I) ? { ...I } : I;
|
|
319
319
|
t.push(
|
|
320
|
-
...
|
|
321
|
-
(
|
|
322
|
-
(
|
|
320
|
+
...v.flatMap(
|
|
321
|
+
(L) => b.flatMap(
|
|
322
|
+
(M) => w.map((k) => n(L, M, k, R))
|
|
323
323
|
)
|
|
324
324
|
)
|
|
325
325
|
);
|
|
326
326
|
},
|
|
327
327
|
{ flush: "post" }
|
|
328
328
|
), o = () => {
|
|
329
|
-
|
|
329
|
+
u(), r();
|
|
330
330
|
};
|
|
331
331
|
return mr(r), o;
|
|
332
332
|
}
|
|
333
333
|
function Cr() {
|
|
334
|
-
const a =
|
|
335
|
-
return t &&
|
|
334
|
+
const a = Ve(!1), t = Yt();
|
|
335
|
+
return t && Me(() => {
|
|
336
336
|
a.value = !0;
|
|
337
337
|
}, t), a;
|
|
338
338
|
}
|
|
@@ -340,30 +340,30 @@ function Ir(a) {
|
|
|
340
340
|
const t = Cr();
|
|
341
341
|
return S(() => (t.value, !!a()));
|
|
342
342
|
}
|
|
343
|
-
const
|
|
344
|
-
function
|
|
345
|
-
const a = Qt() ? gr(
|
|
343
|
+
const Or = Symbol("vueuse-ssr-width");
|
|
344
|
+
function $r() {
|
|
345
|
+
const a = Qt() ? gr(Or, null) : null;
|
|
346
346
|
return typeof a == "number" ? a : void 0;
|
|
347
347
|
}
|
|
348
348
|
function Er(a, t = {}) {
|
|
349
|
-
const { window: r = aa, ssrWidth: n =
|
|
350
|
-
|
|
349
|
+
const { window: r = aa, ssrWidth: n = $r() } = t, s = Ir(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), u = Ve(typeof n == "number"), o = Ve(), v = Ve(!1), b = (w) => {
|
|
350
|
+
v.value = w.matches;
|
|
351
351
|
};
|
|
352
352
|
return Jt(() => {
|
|
353
|
-
if (
|
|
354
|
-
|
|
355
|
-
const w =
|
|
356
|
-
|
|
357
|
-
const R =
|
|
358
|
-
let
|
|
359
|
-
return
|
|
353
|
+
if (u.value) {
|
|
354
|
+
u.value = !s.value;
|
|
355
|
+
const w = $e(a).split(",");
|
|
356
|
+
v.value = w.some((I) => {
|
|
357
|
+
const R = I.includes("not all"), L = I.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), M = I.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
358
|
+
let k = !!(L || M);
|
|
359
|
+
return L && k && (k = n >= Wt(L[1])), M && k && (k = n <= Wt(M[1])), R ? !k : k;
|
|
360
360
|
});
|
|
361
361
|
return;
|
|
362
362
|
}
|
|
363
|
-
s.value && (o.value = r.matchMedia(
|
|
364
|
-
}), Sr(o, "change", b, { passive: !0 }), S(() =>
|
|
363
|
+
s.value && (o.value = r.matchMedia($e(a)), v.value = o.value.matches);
|
|
364
|
+
}), Sr(o, "change", b, { passive: !0 }), S(() => v.value);
|
|
365
365
|
}
|
|
366
|
-
const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px",
|
|
366
|
+
const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px", xr = "4px", Br = "640px", Lr = "16px", Mr = "#bee2ff", jr = ["title"], pt = 99, Pr = /* @__PURE__ */ re({
|
|
367
367
|
__name: "ItemBadge",
|
|
368
368
|
props: {
|
|
369
369
|
count: {
|
|
@@ -374,22 +374,19 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
374
374
|
},
|
|
375
375
|
setup(a) {
|
|
376
376
|
const t = a, r = S(() => t.count ? t.count > pt ? `${pt}+` : t.count.toString() : "");
|
|
377
|
-
return (n, s) => r.value ? (p(),
|
|
377
|
+
return (n, s) => r.value ? (p(), T("div", {
|
|
378
378
|
key: 0,
|
|
379
379
|
class: "item-badge",
|
|
380
380
|
title: (a.count || 0) > pt ? String(a.count) : void 0
|
|
381
|
-
}, Y(r.value), 9, jr)) :
|
|
381
|
+
}, Y(r.value), 9, jr)) : O("", !0);
|
|
382
382
|
}
|
|
383
|
-
}), Kr = /* @__PURE__ */
|
|
383
|
+
}), Kr = /* @__PURE__ */ ie(Pr, [["__scopeId", "data-v-afb0d903"]]), Zr = ["data-testid"], Hr = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], Wr = {
|
|
384
384
|
key: 0,
|
|
385
385
|
class: "sidebar-item-icon"
|
|
386
386
|
}, zr = { class: "sidebar-item-name-container" }, Gr = { class: "sidebar-item-name has-tooltip" }, Ur = {
|
|
387
387
|
key: 2,
|
|
388
388
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
389
|
-
}, Vr = {
|
|
390
|
-
key: 1,
|
|
391
|
-
class: "sidebar-item-after"
|
|
392
|
-
}, qr = ["id"], Xr = /* @__PURE__ */ ie({
|
|
389
|
+
}, Vr = ["id"], qr = /* @__PURE__ */ re({
|
|
393
390
|
__name: "SidebarItem",
|
|
394
391
|
props: {
|
|
395
392
|
item: {
|
|
@@ -404,174 +401,167 @@ const Ar = "#ffffff", Fr = "#000933", Nr = "#000933", Dr = "#ffffff", Rr = "0px"
|
|
|
404
401
|
},
|
|
405
402
|
emits: ["click"],
|
|
406
403
|
setup(a, { emit: t }) {
|
|
407
|
-
const r = t, n = a, s =
|
|
408
|
-
()
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
), b = (T) => {
|
|
412
|
-
r("click", T);
|
|
413
|
-
}, w = (T, R, B) => {
|
|
414
|
-
b(R), typeof B == "function" && (T.preventDefault(), B());
|
|
404
|
+
const r = t, n = a, s = S(() => typeof n.item.to != "string" ? !1 : !!n.item.newWindow || !!n.item.external || n.item.to.startsWith("http")), u = S(() => !n.item.to || typeof n.item.to != "string" || !n.item.newWindow ? !1 : n.item.newWindow && (n.item.to.startsWith("http") || n.item.to.startsWith("/"))), o = S(() => n.subnavItem && n.item.badgeCount !== void 0 && n.item.badgeCount !== 0), v = (w) => {
|
|
405
|
+
r("click", w);
|
|
406
|
+
}, b = (w, I, R) => {
|
|
407
|
+
v(I), typeof R == "function" && (w.preventDefault(), R());
|
|
415
408
|
};
|
|
416
|
-
return (
|
|
417
|
-
var
|
|
418
|
-
const
|
|
419
|
-
return p(),
|
|
420
|
-
class:
|
|
409
|
+
return (w, I) => {
|
|
410
|
+
var M;
|
|
411
|
+
const R = be("KTooltip"), L = be("SidebarItem", !0);
|
|
412
|
+
return p(), T("li", {
|
|
413
|
+
class: oe([a.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: a.item.expanded }, { active: a.item.active }]),
|
|
421
414
|
"data-testid": a.item.testId ? `sidebar-item-${a.item.testId}` : void 0
|
|
422
415
|
}, [
|
|
423
|
-
(p(),
|
|
424
|
-
custom:
|
|
425
|
-
to: !
|
|
416
|
+
(p(), K(Ee(s.value ? "div" : "router-link"), {
|
|
417
|
+
custom: s.value ? void 0 : !0,
|
|
418
|
+
to: !s.value && !u.value ? a.item.to : void 0
|
|
426
419
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
var
|
|
420
|
+
default: B((k) => {
|
|
421
|
+
var U, V;
|
|
429
422
|
return [
|
|
430
423
|
E("a", {
|
|
431
|
-
"aria-controls": (
|
|
424
|
+
"aria-controls": (U = a.item.items) != null && U.length && a.item.expanded ? `subnav-${a.item.key}` : void 0,
|
|
432
425
|
"aria-current": a.item.active ? "page" : void 0,
|
|
433
|
-
"aria-expanded": (
|
|
434
|
-
class:
|
|
435
|
-
href:
|
|
436
|
-
target:
|
|
437
|
-
onClick: (
|
|
438
|
-
onKeypress: An((
|
|
426
|
+
"aria-expanded": (V = a.item.items) != null && V.length && a.item.expanded ? !0 : void 0,
|
|
427
|
+
class: oe(["sidebar-item-link", { "sidebar-item-external-link": u.value, "router-link": !s.value }]),
|
|
428
|
+
href: s.value ? String(a.item.to || "#") : k == null ? void 0 : k.href,
|
|
429
|
+
target: u.value ? "_blank" : void 0,
|
|
430
|
+
onClick: (j) => b(j, a.item, k == null ? void 0 : k.navigate),
|
|
431
|
+
onKeypress: An((j) => b(j, a.item, k == null ? void 0 : k.navigate), ["enter"])
|
|
439
432
|
}, [
|
|
440
433
|
E("div", {
|
|
441
|
-
class:
|
|
434
|
+
class: oe(["sidebar-item-display", { "has-label": !!a.item.label && a.item.expanded, "has-badge": o.value }])
|
|
442
435
|
}, [
|
|
443
|
-
|
|
444
|
-
a.subnavItem ?
|
|
445
|
-
])) :
|
|
436
|
+
w.$slots[`sidebar-icon-${a.item.key}`] ? (p(), T("div", Wr, [
|
|
437
|
+
a.subnavItem ? O("", !0) : C(w.$slots, `sidebar-icon-${a.item.key}`, { key: 0 }, void 0, !0)
|
|
438
|
+
])) : O("", !0),
|
|
446
439
|
E("div", zr, [
|
|
447
|
-
(a.subnavItem && !
|
|
440
|
+
(a.subnavItem && !o.value ? a.item.name.length < 25 : a.item.name.length < 18) ? (p(), T("div", {
|
|
448
441
|
key: 0,
|
|
449
|
-
class:
|
|
450
|
-
}, Y(a.item.name), 3)) : (p(),
|
|
442
|
+
class: oe(["sidebar-item-name truncate-text", [a.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
443
|
+
}, Y(a.item.name), 3)) : (p(), K(R, {
|
|
451
444
|
key: 1,
|
|
452
445
|
class: "sidebar-item-tooltip",
|
|
453
446
|
placement: "right",
|
|
454
447
|
"position-fixed": "",
|
|
455
448
|
text: a.item.name
|
|
456
449
|
}, {
|
|
457
|
-
default:
|
|
450
|
+
default: B(() => [
|
|
458
451
|
E("div", Gr, [
|
|
459
452
|
E("span", {
|
|
460
|
-
class:
|
|
453
|
+
class: oe(["truncate-text", [a.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": o.value }]])
|
|
461
454
|
}, Y(a.item.name), 3)
|
|
462
455
|
])
|
|
463
456
|
]),
|
|
464
457
|
_: 1
|
|
465
458
|
}, 8, ["text"])),
|
|
466
|
-
a.item.label && a.item.expanded ? (p(),
|
|
459
|
+
a.item.label && a.item.expanded ? (p(), T("div", Ur, Y(a.item.label), 1)) : O("", !0)
|
|
467
460
|
]),
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}, null, 8, ["count"])
|
|
473
|
-
], !0)
|
|
474
|
-
])) : I("", !0)
|
|
461
|
+
o.value ? (p(), K(Kr, {
|
|
462
|
+
key: 1,
|
|
463
|
+
count: a.item.badgeCount
|
|
464
|
+
}, null, 8, ["count"])) : O("", !0)
|
|
475
465
|
], 2)
|
|
476
466
|
], 42, Hr)
|
|
477
467
|
];
|
|
478
468
|
}),
|
|
479
469
|
_: 3
|
|
480
470
|
}, 8, ["custom", "to"])),
|
|
481
|
-
(
|
|
471
|
+
(M = a.item.items) != null && M.length && a.item.expanded ? (p(), T("ul", {
|
|
482
472
|
key: 0,
|
|
483
473
|
id: `subnav-${a.item.key}`,
|
|
484
474
|
class: "level-secondary"
|
|
485
475
|
}, [
|
|
486
|
-
(p(!0),
|
|
487
|
-
key:
|
|
488
|
-
item:
|
|
476
|
+
(p(!0), T(Oe, null, we(a.item.items, (k) => (p(), K(L, {
|
|
477
|
+
key: k.name,
|
|
478
|
+
item: k,
|
|
489
479
|
"subnav-item": !0,
|
|
490
|
-
onClick: (
|
|
480
|
+
onClick: (U) => v(k)
|
|
491
481
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
492
|
-
], 8,
|
|
482
|
+
], 8, Vr)) : O("", !0)
|
|
493
483
|
], 10, Zr);
|
|
494
484
|
};
|
|
495
485
|
}
|
|
496
|
-
}), zt = /* @__PURE__ */
|
|
486
|
+
}), zt = /* @__PURE__ */ ie(qr, [["__scopeId", "data-v-d0b5bc3d"]]);
|
|
497
487
|
/*!
|
|
498
488
|
* tabbable 6.2.0
|
|
499
489
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
500
490
|
*/
|
|
501
|
-
var na = ["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])"],
|
|
502
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
491
|
+
var na = ["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])"], Xe = /* @__PURE__ */ na.join(","), ra = typeof Element > "u", ke = ra ? function() {
|
|
492
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ye = !ra && Element.prototype.getRootNode ? function(a) {
|
|
503
493
|
var t;
|
|
504
494
|
return a == null || (t = a.getRootNode) === null || t === void 0 ? void 0 : t.call(a);
|
|
505
495
|
} : function(a) {
|
|
506
496
|
return a == null ? void 0 : a.ownerDocument;
|
|
507
|
-
},
|
|
497
|
+
}, Qe = function a(t, r) {
|
|
508
498
|
var n;
|
|
509
499
|
r === void 0 && (r = !0);
|
|
510
|
-
var s = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"),
|
|
500
|
+
var s = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), u = s === "" || s === "true", o = u || r && t && a(t.parentNode);
|
|
511
501
|
return o;
|
|
512
|
-
},
|
|
502
|
+
}, Xr = function(t) {
|
|
513
503
|
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
514
504
|
return n === "" || n === "true";
|
|
515
505
|
}, ia = function(t, r, n) {
|
|
516
|
-
if (
|
|
506
|
+
if (Qe(t))
|
|
517
507
|
return [];
|
|
518
|
-
var s = Array.prototype.slice.apply(t.querySelectorAll(
|
|
519
|
-
return r && ke.call(t,
|
|
508
|
+
var s = Array.prototype.slice.apply(t.querySelectorAll(Xe));
|
|
509
|
+
return r && ke.call(t, Xe) && s.unshift(t), s = s.filter(n), s;
|
|
520
510
|
}, oa = function a(t, r, n) {
|
|
521
|
-
for (var s = [],
|
|
522
|
-
var o =
|
|
523
|
-
if (!
|
|
511
|
+
for (var s = [], u = Array.from(t); u.length; ) {
|
|
512
|
+
var o = u.shift();
|
|
513
|
+
if (!Qe(o, !1))
|
|
524
514
|
if (o.tagName === "SLOT") {
|
|
525
|
-
var
|
|
515
|
+
var v = o.assignedElements(), b = v.length ? v : o.children, w = a(b, !0, n);
|
|
526
516
|
n.flatten ? s.push.apply(s, w) : s.push({
|
|
527
517
|
scopeParent: o,
|
|
528
518
|
candidates: w
|
|
529
519
|
});
|
|
530
520
|
} else {
|
|
531
|
-
var
|
|
532
|
-
|
|
521
|
+
var I = ke.call(o, Xe);
|
|
522
|
+
I && n.filter(o) && (r || !t.includes(o)) && s.push(o);
|
|
533
523
|
var R = o.shadowRoot || // check for an undisclosed shadow
|
|
534
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(o),
|
|
535
|
-
if (R &&
|
|
536
|
-
var
|
|
537
|
-
n.flatten ? s.push.apply(s,
|
|
524
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), L = !Qe(R, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
525
|
+
if (R && L) {
|
|
526
|
+
var M = a(R === !0 ? o.children : R.children, !0, n);
|
|
527
|
+
n.flatten ? s.push.apply(s, M) : s.push({
|
|
538
528
|
scopeParent: o,
|
|
539
|
-
candidates:
|
|
529
|
+
candidates: M
|
|
540
530
|
});
|
|
541
531
|
} else
|
|
542
|
-
|
|
532
|
+
u.unshift.apply(u, o.children);
|
|
543
533
|
}
|
|
544
534
|
}
|
|
545
535
|
return s;
|
|
546
536
|
}, sa = function(t) {
|
|
547
537
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
548
|
-
},
|
|
538
|
+
}, ye = function(t) {
|
|
549
539
|
if (!t)
|
|
550
540
|
throw new Error("No node provided");
|
|
551
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
552
|
-
},
|
|
553
|
-
var n =
|
|
541
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Xr(t)) && !sa(t) ? 0 : t.tabIndex;
|
|
542
|
+
}, Yr = function(t, r) {
|
|
543
|
+
var n = ye(t);
|
|
554
544
|
return n < 0 && r && !sa(t) ? 0 : n;
|
|
555
|
-
},
|
|
545
|
+
}, Qr = function(t, r) {
|
|
556
546
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
557
547
|
}, la = function(t) {
|
|
558
548
|
return t.tagName === "INPUT";
|
|
559
|
-
},
|
|
549
|
+
}, Jr = function(t) {
|
|
560
550
|
return la(t) && t.type === "hidden";
|
|
561
|
-
},
|
|
551
|
+
}, ei = function(t) {
|
|
562
552
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
563
553
|
return n.tagName === "SUMMARY";
|
|
564
554
|
});
|
|
565
555
|
return r;
|
|
566
|
-
},
|
|
556
|
+
}, ti = function(t, r) {
|
|
567
557
|
for (var n = 0; n < t.length; n++)
|
|
568
558
|
if (t[n].checked && t[n].form === r)
|
|
569
559
|
return t[n];
|
|
570
|
-
},
|
|
560
|
+
}, ai = function(t) {
|
|
571
561
|
if (!t.name)
|
|
572
562
|
return !0;
|
|
573
|
-
var r = t.form ||
|
|
574
|
-
return r.querySelectorAll('input[type="radio"][name="' +
|
|
563
|
+
var r = t.form || Ye(t), n = function(v) {
|
|
564
|
+
return r.querySelectorAll('input[type="radio"][name="' + v + '"]');
|
|
575
565
|
}, s;
|
|
576
566
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
577
567
|
s = n(window.CSS.escape(t.name));
|
|
@@ -581,50 +571,50 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
581
571
|
} catch (o) {
|
|
582
572
|
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;
|
|
583
573
|
}
|
|
584
|
-
var
|
|
585
|
-
return !
|
|
586
|
-
},
|
|
574
|
+
var u = ti(s, t.form);
|
|
575
|
+
return !u || u === t;
|
|
576
|
+
}, ni = function(t) {
|
|
587
577
|
return la(t) && t.type === "radio";
|
|
578
|
+
}, ri = function(t) {
|
|
579
|
+
return ni(t) && !ai(t);
|
|
588
580
|
}, ii = function(t) {
|
|
589
|
-
|
|
590
|
-
}, oi = function(t) {
|
|
591
|
-
var r, n = t && Qe(t), s = (r = n) === null || r === void 0 ? void 0 : r.host, c = !1;
|
|
581
|
+
var r, n = t && Ye(t), s = (r = n) === null || r === void 0 ? void 0 : r.host, u = !1;
|
|
592
582
|
if (n && n !== t) {
|
|
593
|
-
var o,
|
|
594
|
-
for (
|
|
595
|
-
var w,
|
|
596
|
-
n =
|
|
583
|
+
var o, v, b;
|
|
584
|
+
for (u = !!((o = s) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(s) || t != null && (b = t.ownerDocument) !== null && b !== void 0 && b.contains(t)); !u && s; ) {
|
|
585
|
+
var w, I, R;
|
|
586
|
+
n = Ye(s), s = (w = n) === null || w === void 0 ? void 0 : w.host, u = !!((I = s) !== null && I !== void 0 && (R = I.ownerDocument) !== null && R !== void 0 && R.contains(s));
|
|
597
587
|
}
|
|
598
588
|
}
|
|
599
|
-
return
|
|
589
|
+
return u;
|
|
600
590
|
}, Gt = function(t) {
|
|
601
591
|
var r = t.getBoundingClientRect(), n = r.width, s = r.height;
|
|
602
592
|
return n === 0 && s === 0;
|
|
603
|
-
},
|
|
593
|
+
}, oi = function(t, r) {
|
|
604
594
|
var n = r.displayCheck, s = r.getShadowRoot;
|
|
605
595
|
if (getComputedStyle(t).visibility === "hidden")
|
|
606
596
|
return !0;
|
|
607
|
-
var
|
|
597
|
+
var u = ke.call(t, "details>summary:first-of-type"), o = u ? t.parentElement : t;
|
|
608
598
|
if (ke.call(o, "details:not([open]) *"))
|
|
609
599
|
return !0;
|
|
610
600
|
if (!n || n === "full" || n === "legacy-full") {
|
|
611
601
|
if (typeof s == "function") {
|
|
612
|
-
for (var
|
|
613
|
-
var b = t.parentElement, w =
|
|
602
|
+
for (var v = t; t; ) {
|
|
603
|
+
var b = t.parentElement, w = Ye(t);
|
|
614
604
|
if (b && !b.shadowRoot && s(b) === !0)
|
|
615
605
|
return Gt(t);
|
|
616
606
|
t.assignedSlot ? t = t.assignedSlot : !b && w !== t.ownerDocument ? t = w.host : t = b;
|
|
617
607
|
}
|
|
618
|
-
t =
|
|
608
|
+
t = v;
|
|
619
609
|
}
|
|
620
|
-
if (
|
|
610
|
+
if (ii(t))
|
|
621
611
|
return !t.getClientRects().length;
|
|
622
612
|
if (n !== "legacy-full")
|
|
623
613
|
return !0;
|
|
624
614
|
} else if (n === "non-zero-area")
|
|
625
615
|
return Gt(t);
|
|
626
616
|
return !1;
|
|
627
|
-
},
|
|
617
|
+
}, si = function(t) {
|
|
628
618
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
629
619
|
for (var r = t.parentElement; r; ) {
|
|
630
620
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -638,56 +628,56 @@ var na = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
638
628
|
r = r.parentElement;
|
|
639
629
|
}
|
|
640
630
|
return !1;
|
|
641
|
-
},
|
|
631
|
+
}, Je = function(t, r) {
|
|
642
632
|
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
643
633
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
644
634
|
// note related to `candidateSelectors`)
|
|
645
|
-
|
|
646
|
-
|
|
635
|
+
Qe(r) || Jr(r) || oi(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
636
|
+
ei(r) || si(r));
|
|
647
637
|
}, mt = function(t, r) {
|
|
648
|
-
return !(
|
|
649
|
-
},
|
|
638
|
+
return !(ri(r) || ye(r) < 0 || !Je(t, r));
|
|
639
|
+
}, li = function(t) {
|
|
650
640
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
651
641
|
return !!(isNaN(r) || r >= 0);
|
|
652
|
-
},
|
|
642
|
+
}, ci = function a(t) {
|
|
653
643
|
var r = [], n = [];
|
|
654
|
-
return t.forEach(function(s,
|
|
655
|
-
var o = !!s.scopeParent,
|
|
656
|
-
b === 0 ? o ? r.push.apply(r, w) : r.push(
|
|
657
|
-
documentOrder:
|
|
644
|
+
return t.forEach(function(s, u) {
|
|
645
|
+
var o = !!s.scopeParent, v = o ? s.scopeParent : s, b = Yr(v, o), w = o ? a(s.candidates) : v;
|
|
646
|
+
b === 0 ? o ? r.push.apply(r, w) : r.push(v) : n.push({
|
|
647
|
+
documentOrder: u,
|
|
658
648
|
tabIndex: b,
|
|
659
649
|
item: s,
|
|
660
650
|
isScope: o,
|
|
661
651
|
content: w
|
|
662
652
|
});
|
|
663
|
-
}), n.sort(
|
|
664
|
-
return
|
|
653
|
+
}), n.sort(Qr).reduce(function(s, u) {
|
|
654
|
+
return u.isScope ? s.push.apply(s, u.content) : s.push(u.content), s;
|
|
665
655
|
}, []).concat(r);
|
|
666
|
-
},
|
|
656
|
+
}, ui = function(t, r) {
|
|
667
657
|
r = r || {};
|
|
668
658
|
var n;
|
|
669
659
|
return r.getShadowRoot ? n = oa([t], r.includeContainer, {
|
|
670
660
|
filter: mt.bind(null, r),
|
|
671
661
|
flatten: !1,
|
|
672
662
|
getShadowRoot: r.getShadowRoot,
|
|
673
|
-
shadowRootFilter:
|
|
674
|
-
}) : n = ia(t, r.includeContainer, mt.bind(null, r)),
|
|
675
|
-
},
|
|
663
|
+
shadowRootFilter: li
|
|
664
|
+
}) : n = ia(t, r.includeContainer, mt.bind(null, r)), ci(n);
|
|
665
|
+
}, di = function(t, r) {
|
|
676
666
|
r = r || {};
|
|
677
667
|
var n;
|
|
678
668
|
return r.getShadowRoot ? n = oa([t], r.includeContainer, {
|
|
679
|
-
filter:
|
|
669
|
+
filter: Je.bind(null, r),
|
|
680
670
|
flatten: !0,
|
|
681
671
|
getShadowRoot: r.getShadowRoot
|
|
682
|
-
}) : n = ia(t, r.includeContainer,
|
|
672
|
+
}) : n = ia(t, r.includeContainer, Je.bind(null, r)), n;
|
|
683
673
|
}, Ie = function(t, r) {
|
|
684
674
|
if (r = r || {}, !t)
|
|
685
675
|
throw new Error("No node provided");
|
|
686
|
-
return ke.call(t,
|
|
687
|
-
},
|
|
676
|
+
return ke.call(t, Xe) === !1 ? !1 : mt(r, t);
|
|
677
|
+
}, fi = /* @__PURE__ */ na.concat("iframe").join(","), ht = function(t, r) {
|
|
688
678
|
if (r = r || {}, !t)
|
|
689
679
|
throw new Error("No node provided");
|
|
690
|
-
return ke.call(t,
|
|
680
|
+
return ke.call(t, fi) === !1 ? !1 : Je(r, t);
|
|
691
681
|
};
|
|
692
682
|
/*!
|
|
693
683
|
* focus-trap 7.6.5
|
|
@@ -698,21 +688,21 @@ function gt(a, t) {
|
|
|
698
688
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = a[r];
|
|
699
689
|
return n;
|
|
700
690
|
}
|
|
701
|
-
function
|
|
691
|
+
function vi(a) {
|
|
702
692
|
if (Array.isArray(a)) return gt(a);
|
|
703
693
|
}
|
|
704
|
-
function
|
|
705
|
-
return (t =
|
|
694
|
+
function bi(a, t, r) {
|
|
695
|
+
return (t = yi(t)) in a ? Object.defineProperty(a, t, {
|
|
706
696
|
value: r,
|
|
707
697
|
enumerable: !0,
|
|
708
698
|
configurable: !0,
|
|
709
699
|
writable: !0
|
|
710
700
|
}) : a[t] = r, a;
|
|
711
701
|
}
|
|
712
|
-
function
|
|
702
|
+
function pi(a) {
|
|
713
703
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
714
704
|
}
|
|
715
|
-
function
|
|
705
|
+
function hi() {
|
|
716
706
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
717
707
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
718
708
|
}
|
|
@@ -730,17 +720,17 @@ function Vt(a) {
|
|
|
730
720
|
for (var t = 1; t < arguments.length; t++) {
|
|
731
721
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
732
722
|
t % 2 ? Ut(Object(r), !0).forEach(function(n) {
|
|
733
|
-
|
|
723
|
+
bi(a, n, r[n]);
|
|
734
724
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Ut(Object(r)).forEach(function(n) {
|
|
735
725
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(r, n));
|
|
736
726
|
});
|
|
737
727
|
}
|
|
738
728
|
return a;
|
|
739
729
|
}
|
|
740
|
-
function
|
|
741
|
-
return
|
|
730
|
+
function mi(a) {
|
|
731
|
+
return vi(a) || pi(a) || wi(a) || hi();
|
|
742
732
|
}
|
|
743
|
-
function
|
|
733
|
+
function gi(a, t) {
|
|
744
734
|
if (typeof a != "object" || !a) return a;
|
|
745
735
|
var r = a[Symbol.toPrimitive];
|
|
746
736
|
if (r !== void 0) {
|
|
@@ -750,11 +740,11 @@ function yi(a, t) {
|
|
|
750
740
|
}
|
|
751
741
|
return (t === "string" ? String : Number)(a);
|
|
752
742
|
}
|
|
753
|
-
function
|
|
754
|
-
var t =
|
|
743
|
+
function yi(a) {
|
|
744
|
+
var t = gi(a, "string");
|
|
755
745
|
return typeof t == "symbol" ? t : t + "";
|
|
756
746
|
}
|
|
757
|
-
function
|
|
747
|
+
function wi(a, t) {
|
|
758
748
|
if (a) {
|
|
759
749
|
if (typeof a == "string") return gt(a, t);
|
|
760
750
|
var r = {}.toString.call(a).slice(8, -1);
|
|
@@ -774,31 +764,31 @@ var qt = {
|
|
|
774
764
|
var n = t.indexOf(r);
|
|
775
765
|
n !== -1 && t.splice(n, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
776
766
|
}
|
|
777
|
-
},
|
|
767
|
+
}, ki = function(t) {
|
|
778
768
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
779
|
-
},
|
|
769
|
+
}, Ti = function(t) {
|
|
780
770
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
781
771
|
}, xe = function(t) {
|
|
782
772
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
783
|
-
},
|
|
773
|
+
}, _i = function(t) {
|
|
784
774
|
return xe(t) && !t.shiftKey;
|
|
785
|
-
},
|
|
775
|
+
}, Si = function(t) {
|
|
786
776
|
return xe(t) && t.shiftKey;
|
|
787
777
|
}, Xt = function(t) {
|
|
788
778
|
return setTimeout(t, 0);
|
|
789
|
-
},
|
|
779
|
+
}, Re = function(t) {
|
|
790
780
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
791
781
|
n[s - 1] = arguments[s];
|
|
792
782
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
793
|
-
},
|
|
783
|
+
}, ze = function(t) {
|
|
794
784
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
795
|
-
},
|
|
796
|
-
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) ||
|
|
785
|
+
}, Ci = [], Ii = function(t, r) {
|
|
786
|
+
var n = (r == null ? void 0 : r.document) || document, s = (r == null ? void 0 : r.trapStack) || Ci, u = Vt({
|
|
797
787
|
returnFocusOnDeactivate: !0,
|
|
798
788
|
escapeDeactivates: !0,
|
|
799
789
|
delayInitialFocus: !0,
|
|
800
|
-
isKeyForward:
|
|
801
|
-
isKeyBackward:
|
|
790
|
+
isKeyForward: _i,
|
|
791
|
+
isKeyBackward: Si
|
|
802
792
|
}, r), o = {
|
|
803
793
|
// containers given to createFocusTrap()
|
|
804
794
|
// @type {Array<HTMLElement>}
|
|
@@ -836,74 +826,74 @@ var qt = {
|
|
|
836
826
|
delayInitialFocusTimer: void 0,
|
|
837
827
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
838
828
|
recentNavEvent: void 0
|
|
839
|
-
},
|
|
840
|
-
return
|
|
841
|
-
}, w = function(
|
|
842
|
-
var g = typeof (
|
|
843
|
-
return o.containerGroups.findIndex(function(
|
|
844
|
-
var
|
|
845
|
-
return
|
|
829
|
+
}, v, b = function(c, f, g) {
|
|
830
|
+
return c && c[f] !== void 0 ? c[f] : u[g || f];
|
|
831
|
+
}, w = function(c, f) {
|
|
832
|
+
var g = typeof (f == null ? void 0 : f.composedPath) == "function" ? f.composedPath() : void 0;
|
|
833
|
+
return o.containerGroups.findIndex(function(F) {
|
|
834
|
+
var N = F.container, x = F.tabbableNodes;
|
|
835
|
+
return N.contains(c) || // fall back to explicit tabbable search which will take into consideration any
|
|
846
836
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
847
837
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
848
838
|
// look inside web components even if open)
|
|
849
|
-
(g == null ? void 0 : g.includes(
|
|
850
|
-
return
|
|
839
|
+
(g == null ? void 0 : g.includes(N)) || x.find(function($) {
|
|
840
|
+
return $ === c;
|
|
851
841
|
});
|
|
852
842
|
});
|
|
853
|
-
},
|
|
854
|
-
var
|
|
855
|
-
if (typeof
|
|
856
|
-
if (
|
|
857
|
-
return
|
|
858
|
-
throw new Error("`".concat(
|
|
843
|
+
}, I = function(c) {
|
|
844
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = f.hasFallback, F = g === void 0 ? !1 : g, N = f.params, x = N === void 0 ? [] : N, $ = u[c];
|
|
845
|
+
if (typeof $ == "function" && ($ = $.apply(void 0, mi(x))), $ === !0 && ($ = void 0), !$) {
|
|
846
|
+
if ($ === void 0 || $ === !1)
|
|
847
|
+
return $;
|
|
848
|
+
throw new Error("`".concat(c, "` was specified but was not a node, or did not return a node"));
|
|
859
849
|
}
|
|
860
|
-
var d =
|
|
861
|
-
if (typeof
|
|
850
|
+
var d = $;
|
|
851
|
+
if (typeof $ == "string") {
|
|
862
852
|
try {
|
|
863
|
-
d = n.querySelector(
|
|
853
|
+
d = n.querySelector($);
|
|
864
854
|
} catch (y) {
|
|
865
|
-
throw new Error("`".concat(
|
|
855
|
+
throw new Error("`".concat(c, '` appears to be an invalid selector; error="').concat(y.message, '"'));
|
|
866
856
|
}
|
|
867
|
-
if (!d && !
|
|
868
|
-
throw new Error("`".concat(
|
|
857
|
+
if (!d && !F)
|
|
858
|
+
throw new Error("`".concat(c, "` as selector refers to no known node"));
|
|
869
859
|
}
|
|
870
860
|
return d;
|
|
871
861
|
}, R = function() {
|
|
872
|
-
var
|
|
862
|
+
var c = I("initialFocus", {
|
|
873
863
|
hasFallback: !0
|
|
874
864
|
});
|
|
875
|
-
if (
|
|
865
|
+
if (c === !1)
|
|
876
866
|
return !1;
|
|
877
|
-
if (
|
|
867
|
+
if (c === void 0 || c && !ht(c, u.tabbableOptions))
|
|
878
868
|
if (w(n.activeElement) >= 0)
|
|
879
|
-
|
|
869
|
+
c = n.activeElement;
|
|
880
870
|
else {
|
|
881
|
-
var
|
|
882
|
-
|
|
871
|
+
var f = o.tabbableGroups[0], g = f && f.firstTabbableNode;
|
|
872
|
+
c = g || I("fallbackFocus");
|
|
883
873
|
}
|
|
884
|
-
else
|
|
885
|
-
if (!
|
|
874
|
+
else c === null && (c = I("fallbackFocus"));
|
|
875
|
+
if (!c)
|
|
886
876
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
887
|
-
return
|
|
888
|
-
},
|
|
889
|
-
if (o.containerGroups = o.containers.map(function(
|
|
890
|
-
var
|
|
877
|
+
return c;
|
|
878
|
+
}, L = function() {
|
|
879
|
+
if (o.containerGroups = o.containers.map(function(c) {
|
|
880
|
+
var f = ui(c, u.tabbableOptions), g = di(c, u.tabbableOptions), F = f.length > 0 ? f[0] : void 0, N = f.length > 0 ? f[f.length - 1] : void 0, x = g.find(function(y) {
|
|
891
881
|
return Ie(y);
|
|
892
|
-
}),
|
|
882
|
+
}), $ = g.slice().reverse().find(function(y) {
|
|
893
883
|
return Ie(y);
|
|
894
|
-
}), d = !!
|
|
895
|
-
return
|
|
884
|
+
}), d = !!f.find(function(y) {
|
|
885
|
+
return ye(y) > 0;
|
|
896
886
|
});
|
|
897
887
|
return {
|
|
898
|
-
container:
|
|
899
|
-
tabbableNodes:
|
|
888
|
+
container: c,
|
|
889
|
+
tabbableNodes: f,
|
|
900
890
|
focusableNodes: g,
|
|
901
891
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
902
892
|
posTabIndexesFound: d,
|
|
903
893
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
904
|
-
firstTabbableNode:
|
|
894
|
+
firstTabbableNode: F,
|
|
905
895
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
906
|
-
lastTabbableNode:
|
|
896
|
+
lastTabbableNode: N,
|
|
907
897
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
908
898
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
909
899
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -914,7 +904,7 @@ var qt = {
|
|
|
914
904
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
915
905
|
firstDomTabbableNode: x,
|
|
916
906
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
917
|
-
lastDomTabbableNode:
|
|
907
|
+
lastDomTabbableNode: $,
|
|
918
908
|
/**
|
|
919
909
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
920
910
|
* in this container, if any.
|
|
@@ -924,239 +914,239 @@ var qt = {
|
|
|
924
914
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
925
915
|
*/
|
|
926
916
|
nextTabbableNode: function(_) {
|
|
927
|
-
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0,
|
|
928
|
-
return
|
|
917
|
+
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, H = f.indexOf(_);
|
|
918
|
+
return H < 0 ? m ? g.slice(g.indexOf(_) + 1).find(function(P) {
|
|
929
919
|
return Ie(P);
|
|
930
920
|
}) : g.slice(0, g.indexOf(_)).reverse().find(function(P) {
|
|
931
921
|
return Ie(P);
|
|
932
|
-
}) :
|
|
922
|
+
}) : f[H + (m ? 1 : -1)];
|
|
933
923
|
}
|
|
934
924
|
};
|
|
935
|
-
}), o.tabbableGroups = o.containerGroups.filter(function(
|
|
936
|
-
return
|
|
937
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
925
|
+
}), o.tabbableGroups = o.containerGroups.filter(function(c) {
|
|
926
|
+
return c.tabbableNodes.length > 0;
|
|
927
|
+
}), o.tabbableGroups.length <= 0 && !I("fallbackFocus"))
|
|
938
928
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
939
|
-
if (o.containerGroups.find(function(
|
|
940
|
-
return
|
|
929
|
+
if (o.containerGroups.find(function(c) {
|
|
930
|
+
return c.posTabIndexesFound;
|
|
941
931
|
}) && o.containerGroups.length > 1)
|
|
942
932
|
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.");
|
|
943
|
-
},
|
|
944
|
-
var
|
|
945
|
-
if (
|
|
946
|
-
return
|
|
947
|
-
},
|
|
948
|
-
if (
|
|
949
|
-
if (!
|
|
950
|
-
|
|
933
|
+
}, M = function(c) {
|
|
934
|
+
var f = c.activeElement;
|
|
935
|
+
if (f)
|
|
936
|
+
return f.shadowRoot && f.shadowRoot.activeElement !== null ? M(f.shadowRoot) : f;
|
|
937
|
+
}, k = function(c) {
|
|
938
|
+
if (c !== !1 && c !== M(document)) {
|
|
939
|
+
if (!c || !c.focus) {
|
|
940
|
+
k(R());
|
|
951
941
|
return;
|
|
952
942
|
}
|
|
953
|
-
|
|
954
|
-
preventScroll: !!
|
|
955
|
-
}), o.mostRecentlyFocusedNode =
|
|
943
|
+
c.focus({
|
|
944
|
+
preventScroll: !!u.preventScroll
|
|
945
|
+
}), o.mostRecentlyFocusedNode = c, ki(c) && c.select();
|
|
956
946
|
}
|
|
957
|
-
},
|
|
958
|
-
var
|
|
959
|
-
params: [
|
|
947
|
+
}, U = function(c) {
|
|
948
|
+
var f = I("setReturnFocus", {
|
|
949
|
+
params: [c]
|
|
960
950
|
});
|
|
961
|
-
return
|
|
962
|
-
}, V = function(
|
|
963
|
-
var
|
|
964
|
-
|
|
951
|
+
return f || (f === !1 ? !1 : c);
|
|
952
|
+
}, V = function(c) {
|
|
953
|
+
var f = c.target, g = c.event, F = c.isBackward, N = F === void 0 ? !1 : F;
|
|
954
|
+
f = f || ze(g), L();
|
|
965
955
|
var x = null;
|
|
966
956
|
if (o.tabbableGroups.length > 0) {
|
|
967
|
-
var
|
|
968
|
-
if (
|
|
969
|
-
|
|
970
|
-
else if (
|
|
957
|
+
var $ = w(f, g), d = $ >= 0 ? o.containerGroups[$] : void 0;
|
|
958
|
+
if ($ < 0)
|
|
959
|
+
N ? x = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : x = o.tabbableGroups[0].firstTabbableNode;
|
|
960
|
+
else if (N) {
|
|
971
961
|
var y = o.tabbableGroups.findIndex(function(le) {
|
|
972
|
-
var
|
|
973
|
-
return
|
|
962
|
+
var Fe = le.firstTabbableNode;
|
|
963
|
+
return f === Fe;
|
|
974
964
|
});
|
|
975
|
-
if (y < 0 && (d.container ===
|
|
965
|
+
if (y < 0 && (d.container === f || ht(f, u.tabbableOptions) && !Ie(f, u.tabbableOptions) && !d.nextTabbableNode(f, !1)) && (y = $), y >= 0) {
|
|
976
966
|
var _ = y === 0 ? o.tabbableGroups.length - 1 : y - 1, m = o.tabbableGroups[_];
|
|
977
|
-
x =
|
|
978
|
-
} else xe(g) || (x = d.nextTabbableNode(
|
|
967
|
+
x = ye(f) >= 0 ? m.lastTabbableNode : m.lastDomTabbableNode;
|
|
968
|
+
} else xe(g) || (x = d.nextTabbableNode(f, !1));
|
|
979
969
|
} else {
|
|
980
|
-
var
|
|
981
|
-
var
|
|
982
|
-
return
|
|
970
|
+
var H = o.tabbableGroups.findIndex(function(le) {
|
|
971
|
+
var Fe = le.lastTabbableNode;
|
|
972
|
+
return f === Fe;
|
|
983
973
|
});
|
|
984
|
-
if (
|
|
985
|
-
var P =
|
|
986
|
-
x =
|
|
987
|
-
} else xe(g) || (x = d.nextTabbableNode(
|
|
974
|
+
if (H < 0 && (d.container === f || ht(f, u.tabbableOptions) && !Ie(f, u.tabbableOptions) && !d.nextTabbableNode(f)) && (H = $), H >= 0) {
|
|
975
|
+
var P = H === o.tabbableGroups.length - 1 ? 0 : H + 1, X = o.tabbableGroups[P];
|
|
976
|
+
x = ye(f) >= 0 ? X.firstTabbableNode : X.firstDomTabbableNode;
|
|
977
|
+
} else xe(g) || (x = d.nextTabbableNode(f));
|
|
988
978
|
}
|
|
989
979
|
} else
|
|
990
|
-
x =
|
|
980
|
+
x = I("fallbackFocus");
|
|
991
981
|
return x;
|
|
992
|
-
},
|
|
993
|
-
var
|
|
994
|
-
if (!(w(
|
|
995
|
-
if (
|
|
996
|
-
|
|
982
|
+
}, j = function(c) {
|
|
983
|
+
var f = ze(c);
|
|
984
|
+
if (!(w(f, c) >= 0)) {
|
|
985
|
+
if (Re(u.clickOutsideDeactivates, c)) {
|
|
986
|
+
v.deactivate({
|
|
997
987
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
998
988
|
// which will result in the outside click setting focus to the node
|
|
999
989
|
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
1000
990
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
1001
991
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
1002
992
|
// outside click was on a focusable node or not
|
|
1003
|
-
returnFocus:
|
|
993
|
+
returnFocus: u.returnFocusOnDeactivate
|
|
1004
994
|
});
|
|
1005
995
|
return;
|
|
1006
996
|
}
|
|
1007
|
-
|
|
997
|
+
Re(u.allowOutsideClick, c) || c.preventDefault();
|
|
1008
998
|
}
|
|
1009
|
-
},
|
|
1010
|
-
var
|
|
1011
|
-
if (g ||
|
|
1012
|
-
g && (o.mostRecentlyFocusedNode =
|
|
999
|
+
}, se = function(c) {
|
|
1000
|
+
var f = ze(c), g = w(f, c) >= 0;
|
|
1001
|
+
if (g || f instanceof Document)
|
|
1002
|
+
g && (o.mostRecentlyFocusedNode = f);
|
|
1013
1003
|
else {
|
|
1014
|
-
|
|
1015
|
-
var
|
|
1004
|
+
c.stopImmediatePropagation();
|
|
1005
|
+
var F, N = !0;
|
|
1016
1006
|
if (o.mostRecentlyFocusedNode)
|
|
1017
|
-
if (
|
|
1018
|
-
var x = w(o.mostRecentlyFocusedNode),
|
|
1019
|
-
if (
|
|
1020
|
-
var d =
|
|
1007
|
+
if (ye(o.mostRecentlyFocusedNode) > 0) {
|
|
1008
|
+
var x = w(o.mostRecentlyFocusedNode), $ = o.containerGroups[x].tabbableNodes;
|
|
1009
|
+
if ($.length > 0) {
|
|
1010
|
+
var d = $.findIndex(function(y) {
|
|
1021
1011
|
return y === o.mostRecentlyFocusedNode;
|
|
1022
1012
|
});
|
|
1023
|
-
d >= 0 && (
|
|
1013
|
+
d >= 0 && (u.isKeyForward(o.recentNavEvent) ? d + 1 < $.length && (F = $[d + 1], N = !1) : d - 1 >= 0 && (F = $[d - 1], N = !1));
|
|
1024
1014
|
}
|
|
1025
1015
|
} else
|
|
1026
1016
|
o.containerGroups.some(function(y) {
|
|
1027
1017
|
return y.tabbableNodes.some(function(_) {
|
|
1028
|
-
return
|
|
1018
|
+
return ye(_) > 0;
|
|
1029
1019
|
});
|
|
1030
|
-
}) || (
|
|
1020
|
+
}) || (N = !1);
|
|
1031
1021
|
else
|
|
1032
|
-
|
|
1033
|
-
|
|
1022
|
+
N = !1;
|
|
1023
|
+
N && (F = V({
|
|
1034
1024
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1035
1025
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1036
1026
|
target: o.mostRecentlyFocusedNode,
|
|
1037
|
-
isBackward:
|
|
1038
|
-
})),
|
|
1027
|
+
isBackward: u.isKeyBackward(o.recentNavEvent)
|
|
1028
|
+
})), k(F || o.mostRecentlyFocusedNode || R());
|
|
1039
1029
|
}
|
|
1040
1030
|
o.recentNavEvent = void 0;
|
|
1041
|
-
}, de = function(
|
|
1042
|
-
var
|
|
1043
|
-
o.recentNavEvent =
|
|
1031
|
+
}, de = function(c) {
|
|
1032
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1033
|
+
o.recentNavEvent = c;
|
|
1044
1034
|
var g = V({
|
|
1045
|
-
event:
|
|
1046
|
-
isBackward:
|
|
1035
|
+
event: c,
|
|
1036
|
+
isBackward: f
|
|
1047
1037
|
});
|
|
1048
|
-
g && (xe(
|
|
1049
|
-
}, q = function(
|
|
1050
|
-
(
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1053
|
-
},
|
|
1054
|
-
var
|
|
1055
|
-
w(
|
|
1056
|
-
},
|
|
1038
|
+
g && (xe(c) && c.preventDefault(), k(g));
|
|
1039
|
+
}, q = function(c) {
|
|
1040
|
+
(u.isKeyForward(c) || u.isKeyBackward(c)) && de(c, u.isKeyBackward(c));
|
|
1041
|
+
}, ne = function(c) {
|
|
1042
|
+
Ti(c) && Re(u.escapeDeactivates, c) !== !1 && (c.preventDefault(), v.deactivate());
|
|
1043
|
+
}, te = function(c) {
|
|
1044
|
+
var f = ze(c);
|
|
1045
|
+
w(f, c) >= 0 || Re(u.clickOutsideDeactivates, c) || Re(u.allowOutsideClick, c) || (c.preventDefault(), c.stopImmediatePropagation());
|
|
1046
|
+
}, ae = function() {
|
|
1057
1047
|
if (o.active)
|
|
1058
|
-
return qt.activateTrap(s,
|
|
1059
|
-
|
|
1060
|
-
}) :
|
|
1048
|
+
return qt.activateTrap(s, v), o.delayInitialFocusTimer = u.delayInitialFocus ? Xt(function() {
|
|
1049
|
+
k(R());
|
|
1050
|
+
}) : k(R()), n.addEventListener("focusin", se, !0), n.addEventListener("mousedown", j, {
|
|
1061
1051
|
capture: !0,
|
|
1062
1052
|
passive: !1
|
|
1063
|
-
}), n.addEventListener("touchstart",
|
|
1053
|
+
}), n.addEventListener("touchstart", j, {
|
|
1064
1054
|
capture: !0,
|
|
1065
1055
|
passive: !1
|
|
1066
|
-
}), n.addEventListener("click",
|
|
1056
|
+
}), n.addEventListener("click", te, {
|
|
1067
1057
|
capture: !0,
|
|
1068
1058
|
passive: !1
|
|
1069
1059
|
}), n.addEventListener("keydown", q, {
|
|
1070
1060
|
capture: !0,
|
|
1071
1061
|
passive: !1
|
|
1072
|
-
}), n.addEventListener("keydown",
|
|
1073
|
-
},
|
|
1062
|
+
}), n.addEventListener("keydown", ne), v;
|
|
1063
|
+
}, D = function() {
|
|
1074
1064
|
if (o.active)
|
|
1075
|
-
return n.removeEventListener("focusin",
|
|
1076
|
-
},
|
|
1077
|
-
var
|
|
1078
|
-
var
|
|
1079
|
-
return
|
|
1080
|
-
return
|
|
1065
|
+
return n.removeEventListener("focusin", se, !0), n.removeEventListener("mousedown", j, !0), n.removeEventListener("touchstart", j, !0), n.removeEventListener("click", te, !0), n.removeEventListener("keydown", q, !0), n.removeEventListener("keydown", ne), v;
|
|
1066
|
+
}, W = function(c) {
|
|
1067
|
+
var f = c.some(function(g) {
|
|
1068
|
+
var F = Array.from(g.removedNodes);
|
|
1069
|
+
return F.some(function(N) {
|
|
1070
|
+
return N === o.mostRecentlyFocusedNode;
|
|
1081
1071
|
});
|
|
1082
1072
|
});
|
|
1083
|
-
|
|
1084
|
-
},
|
|
1085
|
-
|
|
1086
|
-
|
|
1073
|
+
f && k(R());
|
|
1074
|
+
}, z = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(W) : void 0, Z = function() {
|
|
1075
|
+
z && (z.disconnect(), o.active && !o.paused && o.containers.map(function(c) {
|
|
1076
|
+
z.observe(c, {
|
|
1087
1077
|
subtree: !0,
|
|
1088
1078
|
childList: !0
|
|
1089
1079
|
});
|
|
1090
1080
|
}));
|
|
1091
1081
|
};
|
|
1092
|
-
return
|
|
1082
|
+
return v = {
|
|
1093
1083
|
get active() {
|
|
1094
1084
|
return o.active;
|
|
1095
1085
|
},
|
|
1096
1086
|
get paused() {
|
|
1097
1087
|
return o.paused;
|
|
1098
1088
|
},
|
|
1099
|
-
activate: function(
|
|
1089
|
+
activate: function(c) {
|
|
1100
1090
|
if (o.active)
|
|
1101
1091
|
return this;
|
|
1102
|
-
var
|
|
1103
|
-
|
|
1104
|
-
var
|
|
1105
|
-
|
|
1092
|
+
var f = b(c, "onActivate"), g = b(c, "onPostActivate"), F = b(c, "checkCanFocusTrap");
|
|
1093
|
+
F || L(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = M(n), f == null || f();
|
|
1094
|
+
var N = function() {
|
|
1095
|
+
F && L(), ae(), Z(), g == null || g();
|
|
1106
1096
|
};
|
|
1107
|
-
return
|
|
1097
|
+
return F ? (F(o.containers.concat()).then(N, N), this) : (N(), this);
|
|
1108
1098
|
},
|
|
1109
|
-
deactivate: function(
|
|
1099
|
+
deactivate: function(c) {
|
|
1110
1100
|
if (!o.active)
|
|
1111
1101
|
return this;
|
|
1112
|
-
var
|
|
1113
|
-
onDeactivate:
|
|
1114
|
-
onPostDeactivate:
|
|
1115
|
-
checkCanReturnFocus:
|
|
1116
|
-
},
|
|
1117
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
1118
|
-
var g = b(
|
|
1102
|
+
var f = Vt({
|
|
1103
|
+
onDeactivate: u.onDeactivate,
|
|
1104
|
+
onPostDeactivate: u.onPostDeactivate,
|
|
1105
|
+
checkCanReturnFocus: u.checkCanReturnFocus
|
|
1106
|
+
}, c);
|
|
1107
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, D(), o.active = !1, o.paused = !1, Z(), qt.deactivateTrap(s, v);
|
|
1108
|
+
var g = b(f, "onDeactivate"), F = b(f, "onPostDeactivate"), N = b(f, "checkCanReturnFocus"), x = b(f, "returnFocus", "returnFocusOnDeactivate");
|
|
1119
1109
|
g == null || g();
|
|
1120
|
-
var
|
|
1110
|
+
var $ = function() {
|
|
1121
1111
|
Xt(function() {
|
|
1122
|
-
x &&
|
|
1112
|
+
x && k(U(o.nodeFocusedBeforeActivation)), F == null || F();
|
|
1123
1113
|
});
|
|
1124
1114
|
};
|
|
1125
|
-
return x &&
|
|
1115
|
+
return x && N ? (N(U(o.nodeFocusedBeforeActivation)).then($, $), this) : ($(), this);
|
|
1126
1116
|
},
|
|
1127
|
-
pause: function(
|
|
1128
|
-
return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0,
|
|
1117
|
+
pause: function(c) {
|
|
1118
|
+
return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0, c)) : this;
|
|
1129
1119
|
},
|
|
1130
|
-
unpause: function(
|
|
1131
|
-
return o.active ? (o.manuallyPaused = !1, s[s.length - 1] !== this ? this : this._setPausedState(!1,
|
|
1120
|
+
unpause: function(c) {
|
|
1121
|
+
return o.active ? (o.manuallyPaused = !1, s[s.length - 1] !== this ? this : this._setPausedState(!1, c)) : this;
|
|
1132
1122
|
},
|
|
1133
|
-
updateContainerElements: function(
|
|
1134
|
-
var
|
|
1135
|
-
return o.containers =
|
|
1123
|
+
updateContainerElements: function(c) {
|
|
1124
|
+
var f = [].concat(c).filter(Boolean);
|
|
1125
|
+
return o.containers = f.map(function(g) {
|
|
1136
1126
|
return typeof g == "string" ? n.querySelector(g) : g;
|
|
1137
|
-
}), o.active &&
|
|
1127
|
+
}), o.active && L(), Z(), this;
|
|
1138
1128
|
}
|
|
1139
|
-
}, Object.defineProperties(
|
|
1129
|
+
}, Object.defineProperties(v, {
|
|
1140
1130
|
_isManuallyPaused: {
|
|
1141
1131
|
value: function() {
|
|
1142
1132
|
return o.manuallyPaused;
|
|
1143
1133
|
}
|
|
1144
1134
|
},
|
|
1145
1135
|
_setPausedState: {
|
|
1146
|
-
value: function(
|
|
1147
|
-
if (o.paused ===
|
|
1136
|
+
value: function(c, f) {
|
|
1137
|
+
if (o.paused === c)
|
|
1148
1138
|
return this;
|
|
1149
|
-
if (o.paused =
|
|
1150
|
-
var g = b(
|
|
1151
|
-
g == null || g(),
|
|
1139
|
+
if (o.paused = c, c) {
|
|
1140
|
+
var g = b(f, "onPause"), F = b(f, "onPostPause");
|
|
1141
|
+
g == null || g(), D(), Z(), F == null || F();
|
|
1152
1142
|
} else {
|
|
1153
|
-
var
|
|
1154
|
-
|
|
1143
|
+
var N = b(f, "onUnpause"), x = b(f, "onPostUnpause");
|
|
1144
|
+
N == null || N(), L(), ae(), Z(), x == null || x();
|
|
1155
1145
|
}
|
|
1156
1146
|
return this;
|
|
1157
1147
|
}
|
|
1158
1148
|
}
|
|
1159
|
-
}),
|
|
1149
|
+
}), v.updateContainerElements(t), v;
|
|
1160
1150
|
};
|
|
1161
1151
|
/*!
|
|
1162
1152
|
* focus-trap-vue v4.0.3
|
|
@@ -1189,7 +1179,7 @@ const Oi = {
|
|
|
1189
1179
|
preventScroll: Boolean,
|
|
1190
1180
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1191
1181
|
tabbableOptions: Object
|
|
1192
|
-
},
|
|
1182
|
+
}, $i = re({
|
|
1193
1183
|
name: "FocusTrap",
|
|
1194
1184
|
props: Object.assign({
|
|
1195
1185
|
active: {
|
|
@@ -1210,12 +1200,12 @@ const Oi = {
|
|
|
1210
1200
|
},
|
|
1211
1201
|
setup(a, { slots: t, emit: r }) {
|
|
1212
1202
|
let n;
|
|
1213
|
-
const s = ee(null),
|
|
1214
|
-
const
|
|
1215
|
-
return
|
|
1203
|
+
const s = ee(null), u = S(() => {
|
|
1204
|
+
const v = s.value;
|
|
1205
|
+
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1216
1206
|
});
|
|
1217
1207
|
function o() {
|
|
1218
|
-
return n || (n =
|
|
1208
|
+
return n || (n = Ii(u.value, {
|
|
1219
1209
|
escapeDeactivates: a.escapeDeactivates,
|
|
1220
1210
|
allowOutsideClick: a.allowOutsideClick,
|
|
1221
1211
|
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
@@ -1235,9 +1225,9 @@ const Oi = {
|
|
|
1235
1225
|
preventScroll: a.preventScroll
|
|
1236
1226
|
}));
|
|
1237
1227
|
}
|
|
1238
|
-
return
|
|
1239
|
-
|
|
1240
|
-
|
|
1228
|
+
return Me(() => {
|
|
1229
|
+
Ae(() => a.active, (v) => {
|
|
1230
|
+
v && u.value ? o().activate() : n && (n.deactivate(), (!u.value || u.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
1241
1231
|
}, { immediate: !0, flush: "post" });
|
|
1242
1232
|
}), Fn(() => {
|
|
1243
1233
|
n && n.deactivate(), n = null;
|
|
@@ -1251,8 +1241,8 @@ const Oi = {
|
|
|
1251
1241
|
renderImpl() {
|
|
1252
1242
|
if (!t.default)
|
|
1253
1243
|
return null;
|
|
1254
|
-
const
|
|
1255
|
-
return !
|
|
1244
|
+
const v = t.default().filter((w) => w.type !== Nn);
|
|
1245
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : Dn(v[0], { ref: s });
|
|
1256
1246
|
}
|
|
1257
1247
|
};
|
|
1258
1248
|
}
|
|
@@ -1269,20 +1259,20 @@ function ca() {
|
|
|
1269
1259
|
}
|
|
1270
1260
|
};
|
|
1271
1261
|
}
|
|
1272
|
-
var
|
|
1273
|
-
function
|
|
1262
|
+
var Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1263
|
+
function Ei(a) {
|
|
1274
1264
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1275
1265
|
}
|
|
1276
|
-
var
|
|
1277
|
-
|
|
1266
|
+
var et = { exports: {} };
|
|
1267
|
+
et.exports;
|
|
1278
1268
|
(function(a, t) {
|
|
1279
|
-
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991,
|
|
1280
|
-
d[
|
|
1281
|
-
var y = typeof
|
|
1269
|
+
var r = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", b = "[object Date]", w = "[object Error]", I = "[object Function]", R = "[object GeneratorFunction]", L = "[object Map]", M = "[object Number]", k = "[object Object]", U = "[object Promise]", V = "[object RegExp]", j = "[object Set]", se = "[object String]", de = "[object Symbol]", q = "[object WeakMap]", ne = "[object ArrayBuffer]", te = "[object DataView]", ae = "[object Float32Array]", D = "[object Float64Array]", W = "[object Int8Array]", z = "[object Int16Array]", Z = "[object Int32Array]", A = "[object Uint8Array]", c = "[object Uint8ClampedArray]", f = "[object Uint16Array]", g = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, N = /\w*$/, x = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, d = {};
|
|
1270
|
+
d[u] = d[o] = d[ne] = d[te] = d[v] = d[b] = d[ae] = d[D] = d[W] = d[z] = d[Z] = d[L] = d[M] = d[k] = d[V] = d[j] = d[se] = d[de] = d[A] = d[c] = d[f] = d[g] = !0, d[w] = d[I] = d[q] = !1;
|
|
1271
|
+
var y = typeof Ge == "object" && Ge && Ge.Object === Object && Ge, _ = typeof self == "object" && self && self.Object === Object && self, m = y || _ || Function("return this")(), H = t && !t.nodeType && t, P = H && !0 && a && !a.nodeType && a, X = P && P.exports === H;
|
|
1282
1272
|
function le(e, i) {
|
|
1283
1273
|
return e.set(i[0], i[1]), e;
|
|
1284
1274
|
}
|
|
1285
|
-
function
|
|
1275
|
+
function Fe(e, i) {
|
|
1286
1276
|
return e.add(i), e;
|
|
1287
1277
|
}
|
|
1288
1278
|
function ua(e, i) {
|
|
@@ -1291,13 +1281,13 @@ tt.exports;
|
|
|
1291
1281
|
return e;
|
|
1292
1282
|
}
|
|
1293
1283
|
function da(e, i) {
|
|
1294
|
-
for (var l = -1, h = i.length,
|
|
1295
|
-
e[
|
|
1284
|
+
for (var l = -1, h = i.length, G = e.length; ++l < h; )
|
|
1285
|
+
e[G + l] = i[l];
|
|
1296
1286
|
return e;
|
|
1297
1287
|
}
|
|
1298
1288
|
function wt(e, i, l, h) {
|
|
1299
|
-
for (var
|
|
1300
|
-
l = i(l, e[
|
|
1289
|
+
for (var G = -1, Q = e ? e.length : 0; ++G < Q; )
|
|
1290
|
+
l = i(l, e[G], G, e);
|
|
1301
1291
|
return l;
|
|
1302
1292
|
}
|
|
1303
1293
|
function fa(e, i) {
|
|
@@ -1319,8 +1309,8 @@ tt.exports;
|
|
|
1319
1309
|
}
|
|
1320
1310
|
function Tt(e) {
|
|
1321
1311
|
var i = -1, l = Array(e.size);
|
|
1322
|
-
return e.forEach(function(h,
|
|
1323
|
-
l[++i] = [
|
|
1312
|
+
return e.forEach(function(h, G) {
|
|
1313
|
+
l[++i] = [G, h];
|
|
1324
1314
|
}), l;
|
|
1325
1315
|
}
|
|
1326
1316
|
function at(e, i) {
|
|
@@ -1334,28 +1324,28 @@ tt.exports;
|
|
|
1334
1324
|
l[++i] = h;
|
|
1335
1325
|
}), l;
|
|
1336
1326
|
}
|
|
1337
|
-
var ba = Array.prototype, pa = Function.prototype,
|
|
1327
|
+
var ba = Array.prototype, pa = Function.prototype, je = Object.prototype, nt = m["__core-js_shared__"], St = function() {
|
|
1338
1328
|
var e = /[^.]+$/.exec(nt && nt.keys && nt.keys.IE_PROTO || "");
|
|
1339
1329
|
return e ? "Symbol(src)_1." + e : "";
|
|
1340
|
-
}(), Ct = pa.toString, fe =
|
|
1341
|
-
"^" + Ct.call(fe).replace(
|
|
1342
|
-
), It = X ? m.Buffer : void 0,
|
|
1343
|
-
function
|
|
1330
|
+
}(), Ct = pa.toString, fe = je.hasOwnProperty, Pe = je.toString, ha = RegExp(
|
|
1331
|
+
"^" + Ct.call(fe).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1332
|
+
), It = X ? m.Buffer : void 0, Ot = m.Symbol, $t = m.Uint8Array, ma = at(Object.getPrototypeOf, Object), ga = Object.create, ya = je.propertyIsEnumerable, wa = ba.splice, Et = Object.getOwnPropertySymbols, ka = It ? It.isBuffer : void 0, Ta = at(Object.keys, Object), rt = Se(m, "DataView"), Ne = Se(m, "Map"), it = Se(m, "Promise"), ot = Se(m, "Set"), st = Se(m, "WeakMap"), De = Se(Object, "create"), _a = me(rt), Sa = me(Ne), Ca = me(it), Ia = me(ot), Oa = me(st), At = Ot ? Ot.prototype : void 0, Ft = At ? At.valueOf : void 0;
|
|
1333
|
+
function pe(e) {
|
|
1344
1334
|
var i = -1, l = e ? e.length : 0;
|
|
1345
1335
|
for (this.clear(); ++i < l; ) {
|
|
1346
1336
|
var h = e[i];
|
|
1347
1337
|
this.set(h[0], h[1]);
|
|
1348
1338
|
}
|
|
1349
1339
|
}
|
|
1350
|
-
function
|
|
1351
|
-
this.__data__ =
|
|
1340
|
+
function $a() {
|
|
1341
|
+
this.__data__ = De ? De(null) : {};
|
|
1352
1342
|
}
|
|
1353
1343
|
function Ea(e) {
|
|
1354
1344
|
return this.has(e) && delete this.__data__[e];
|
|
1355
1345
|
}
|
|
1356
1346
|
function Aa(e) {
|
|
1357
1347
|
var i = this.__data__;
|
|
1358
|
-
if (
|
|
1348
|
+
if (De) {
|
|
1359
1349
|
var l = i[e];
|
|
1360
1350
|
return l === n ? void 0 : l;
|
|
1361
1351
|
}
|
|
@@ -1363,13 +1353,13 @@ tt.exports;
|
|
|
1363
1353
|
}
|
|
1364
1354
|
function Fa(e) {
|
|
1365
1355
|
var i = this.__data__;
|
|
1366
|
-
return
|
|
1356
|
+
return De ? i[e] !== void 0 : fe.call(i, e);
|
|
1367
1357
|
}
|
|
1368
1358
|
function Na(e, i) {
|
|
1369
1359
|
var l = this.__data__;
|
|
1370
|
-
return l[e] =
|
|
1360
|
+
return l[e] = De && i === void 0 ? n : i, this;
|
|
1371
1361
|
}
|
|
1372
|
-
|
|
1362
|
+
pe.prototype.clear = $a, pe.prototype.delete = Ea, pe.prototype.get = Aa, pe.prototype.has = Fa, pe.prototype.set = Na;
|
|
1373
1363
|
function ce(e) {
|
|
1374
1364
|
var i = -1, l = e ? e.length : 0;
|
|
1375
1365
|
for (this.clear(); ++i < l; ) {
|
|
@@ -1381,24 +1371,24 @@ tt.exports;
|
|
|
1381
1371
|
this.__data__ = [];
|
|
1382
1372
|
}
|
|
1383
1373
|
function Ra(e) {
|
|
1384
|
-
var i = this.__data__, l =
|
|
1374
|
+
var i = this.__data__, l = Ke(i, e);
|
|
1385
1375
|
if (l < 0)
|
|
1386
1376
|
return !1;
|
|
1387
1377
|
var h = i.length - 1;
|
|
1388
1378
|
return l == h ? i.pop() : wa.call(i, l, 1), !0;
|
|
1389
1379
|
}
|
|
1390
|
-
function
|
|
1391
|
-
var i = this.__data__, l =
|
|
1380
|
+
function xa(e) {
|
|
1381
|
+
var i = this.__data__, l = Ke(i, e);
|
|
1392
1382
|
return l < 0 ? void 0 : i[l][1];
|
|
1393
1383
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return
|
|
1384
|
+
function Ba(e) {
|
|
1385
|
+
return Ke(this.__data__, e) > -1;
|
|
1396
1386
|
}
|
|
1397
1387
|
function La(e, i) {
|
|
1398
|
-
var l = this.__data__, h =
|
|
1388
|
+
var l = this.__data__, h = Ke(l, e);
|
|
1399
1389
|
return h < 0 ? l.push([e, i]) : l[h][1] = i, this;
|
|
1400
1390
|
}
|
|
1401
|
-
ce.prototype.clear = Da, ce.prototype.delete = Ra, ce.prototype.get =
|
|
1391
|
+
ce.prototype.clear = Da, ce.prototype.delete = Ra, ce.prototype.get = xa, ce.prototype.has = Ba, ce.prototype.set = La;
|
|
1402
1392
|
function Te(e) {
|
|
1403
1393
|
var i = -1, l = e ? e.length : 0;
|
|
1404
1394
|
for (this.clear(); ++i < l; ) {
|
|
@@ -1408,22 +1398,22 @@ tt.exports;
|
|
|
1408
1398
|
}
|
|
1409
1399
|
function Ma() {
|
|
1410
1400
|
this.__data__ = {
|
|
1411
|
-
hash: new
|
|
1412
|
-
map: new (
|
|
1413
|
-
string: new
|
|
1401
|
+
hash: new pe(),
|
|
1402
|
+
map: new (Ne || ce)(),
|
|
1403
|
+
string: new pe()
|
|
1414
1404
|
};
|
|
1415
1405
|
}
|
|
1416
1406
|
function ja(e) {
|
|
1417
|
-
return
|
|
1407
|
+
return Ze(this, e).delete(e);
|
|
1418
1408
|
}
|
|
1419
1409
|
function Pa(e) {
|
|
1420
|
-
return
|
|
1410
|
+
return Ze(this, e).get(e);
|
|
1421
1411
|
}
|
|
1422
1412
|
function Ka(e) {
|
|
1423
|
-
return
|
|
1413
|
+
return Ze(this, e).has(e);
|
|
1424
1414
|
}
|
|
1425
1415
|
function Za(e, i) {
|
|
1426
|
-
return
|
|
1416
|
+
return Ze(this, e).set(e, i), this;
|
|
1427
1417
|
}
|
|
1428
1418
|
Te.prototype.clear = Ma, Te.prototype.delete = ja, Te.prototype.get = Pa, Te.prototype.has = Ka, Te.prototype.set = Za;
|
|
1429
1419
|
function _e(e) {
|
|
@@ -1445,7 +1435,7 @@ tt.exports;
|
|
|
1445
1435
|
var l = this.__data__;
|
|
1446
1436
|
if (l instanceof ce) {
|
|
1447
1437
|
var h = l.__data__;
|
|
1448
|
-
if (!
|
|
1438
|
+
if (!Ne || h.length < r - 1)
|
|
1449
1439
|
return h.push([e, i]), this;
|
|
1450
1440
|
l = this.__data__ = new Te(h);
|
|
1451
1441
|
}
|
|
@@ -1453,39 +1443,39 @@ tt.exports;
|
|
|
1453
1443
|
}
|
|
1454
1444
|
_e.prototype.clear = Ha, _e.prototype.delete = Wa, _e.prototype.get = za, _e.prototype.has = Ga, _e.prototype.set = Ua;
|
|
1455
1445
|
function Va(e, i) {
|
|
1456
|
-
var l = ut(e) || yn(e) ? fa(e.length, String) : [], h = l.length,
|
|
1446
|
+
var l = ut(e) || yn(e) ? fa(e.length, String) : [], h = l.length, G = !!h;
|
|
1457
1447
|
for (var Q in e)
|
|
1458
|
-
fe.call(e, Q) && !(
|
|
1448
|
+
fe.call(e, Q) && !(G && (Q == "length" || pn(Q, h))) && l.push(Q);
|
|
1459
1449
|
return l;
|
|
1460
1450
|
}
|
|
1461
1451
|
function Nt(e, i, l) {
|
|
1462
1452
|
var h = e[i];
|
|
1463
|
-
(!(fe.call(e, i) &&
|
|
1453
|
+
(!(fe.call(e, i) && Bt(h, l)) || l === void 0 && !(i in e)) && (e[i] = l);
|
|
1464
1454
|
}
|
|
1465
|
-
function
|
|
1455
|
+
function Ke(e, i) {
|
|
1466
1456
|
for (var l = e.length; l--; )
|
|
1467
|
-
if (
|
|
1457
|
+
if (Bt(e[l][0], i))
|
|
1468
1458
|
return l;
|
|
1469
1459
|
return -1;
|
|
1470
1460
|
}
|
|
1471
1461
|
function qa(e, i) {
|
|
1472
1462
|
return e && Dt(i, dt(i), e);
|
|
1473
1463
|
}
|
|
1474
|
-
function lt(e, i, l, h,
|
|
1464
|
+
function lt(e, i, l, h, G, Q, ue) {
|
|
1475
1465
|
var J;
|
|
1476
|
-
if (h && (J = Q ? h(e,
|
|
1466
|
+
if (h && (J = Q ? h(e, G, Q, ue) : h(e)), J !== void 0)
|
|
1477
1467
|
return J;
|
|
1478
|
-
if (!
|
|
1468
|
+
if (!He(e))
|
|
1479
1469
|
return e;
|
|
1480
1470
|
var jt = ut(e);
|
|
1481
1471
|
if (jt) {
|
|
1482
1472
|
if (J = fn(e), !i)
|
|
1483
1473
|
return cn(e, J);
|
|
1484
1474
|
} else {
|
|
1485
|
-
var Ce =
|
|
1475
|
+
var Ce = he(e), Pt = Ce == I || Ce == R;
|
|
1486
1476
|
if (kn(e))
|
|
1487
1477
|
return tn(e, i);
|
|
1488
|
-
if (Ce ==
|
|
1478
|
+
if (Ce == k || Ce == u || Pt && !Q) {
|
|
1489
1479
|
if (kt(e))
|
|
1490
1480
|
return Q ? e : {};
|
|
1491
1481
|
if (J = vn(Pt ? {} : e), !i)
|
|
@@ -1502,28 +1492,28 @@ tt.exports;
|
|
|
1502
1492
|
return Kt;
|
|
1503
1493
|
if (ue.set(e, J), !jt)
|
|
1504
1494
|
var Zt = l ? dn(e) : dt(e);
|
|
1505
|
-
return ua(Zt || e, function(ft,
|
|
1506
|
-
Zt && (
|
|
1495
|
+
return ua(Zt || e, function(ft, We) {
|
|
1496
|
+
Zt && (We = ft, ft = e[We]), Nt(J, We, lt(ft, i, l, h, We, e, ue));
|
|
1507
1497
|
}), J;
|
|
1508
1498
|
}
|
|
1509
1499
|
function Xa(e) {
|
|
1510
|
-
return
|
|
1500
|
+
return He(e) ? ga(e) : {};
|
|
1511
1501
|
}
|
|
1512
1502
|
function Ya(e, i, l) {
|
|
1513
1503
|
var h = i(e);
|
|
1514
1504
|
return ut(e) ? h : da(h, l(e));
|
|
1515
1505
|
}
|
|
1516
1506
|
function Qa(e) {
|
|
1517
|
-
return
|
|
1507
|
+
return Pe.call(e);
|
|
1518
1508
|
}
|
|
1519
1509
|
function Ja(e) {
|
|
1520
|
-
if (!
|
|
1510
|
+
if (!He(e) || mn(e))
|
|
1521
1511
|
return !1;
|
|
1522
1512
|
var i = Mt(e) || kt(e) ? ha : x;
|
|
1523
|
-
return i.test(
|
|
1513
|
+
return i.test(me(e));
|
|
1524
1514
|
}
|
|
1525
1515
|
function en(e) {
|
|
1526
|
-
if (!
|
|
1516
|
+
if (!xt(e))
|
|
1527
1517
|
return Ta(e);
|
|
1528
1518
|
var i = [];
|
|
1529
1519
|
for (var l in Object(e))
|
|
@@ -1538,7 +1528,7 @@ tt.exports;
|
|
|
1538
1528
|
}
|
|
1539
1529
|
function ct(e) {
|
|
1540
1530
|
var i = new e.constructor(e.byteLength);
|
|
1541
|
-
return new
|
|
1531
|
+
return new $t(i).set(new $t(e)), i;
|
|
1542
1532
|
}
|
|
1543
1533
|
function an(e, i) {
|
|
1544
1534
|
var l = i ? ct(e.buffer) : e.buffer;
|
|
@@ -1549,12 +1539,12 @@ tt.exports;
|
|
|
1549
1539
|
return wt(h, le, new e.constructor());
|
|
1550
1540
|
}
|
|
1551
1541
|
function rn(e) {
|
|
1552
|
-
var i = new e.constructor(e.source,
|
|
1542
|
+
var i = new e.constructor(e.source, N.exec(e));
|
|
1553
1543
|
return i.lastIndex = e.lastIndex, i;
|
|
1554
1544
|
}
|
|
1555
1545
|
function on(e, i, l) {
|
|
1556
1546
|
var h = i ? l(_t(e), !0) : _t(e);
|
|
1557
|
-
return wt(h,
|
|
1547
|
+
return wt(h, Fe, new e.constructor());
|
|
1558
1548
|
}
|
|
1559
1549
|
function sn(e) {
|
|
1560
1550
|
return Ft ? Object(Ft.call(e)) : {};
|
|
@@ -1571,8 +1561,8 @@ tt.exports;
|
|
|
1571
1561
|
}
|
|
1572
1562
|
function Dt(e, i, l, h) {
|
|
1573
1563
|
l || (l = {});
|
|
1574
|
-
for (var
|
|
1575
|
-
var ue = i[
|
|
1564
|
+
for (var G = -1, Q = i.length; ++G < Q; ) {
|
|
1565
|
+
var ue = i[G], J = void 0;
|
|
1576
1566
|
Nt(l, ue, J === void 0 ? e[ue] : J);
|
|
1577
1567
|
}
|
|
1578
1568
|
return l;
|
|
@@ -1583,7 +1573,7 @@ tt.exports;
|
|
|
1583
1573
|
function dn(e) {
|
|
1584
1574
|
return Ya(e, dt, Rt);
|
|
1585
1575
|
}
|
|
1586
|
-
function
|
|
1576
|
+
function Ze(e, i) {
|
|
1587
1577
|
var l = e.__data__;
|
|
1588
1578
|
return hn(i) ? l[typeof i == "string" ? "string" : "hash"] : l.map;
|
|
1589
1579
|
}
|
|
@@ -1591,20 +1581,20 @@ tt.exports;
|
|
|
1591
1581
|
var l = va(e, i);
|
|
1592
1582
|
return Ja(l) ? l : void 0;
|
|
1593
1583
|
}
|
|
1594
|
-
var Rt = Et ? at(Et, Object) : Sn,
|
|
1595
|
-
(rt &&
|
|
1596
|
-
var i =
|
|
1584
|
+
var Rt = Et ? at(Et, Object) : Sn, he = Qa;
|
|
1585
|
+
(rt && he(new rt(new ArrayBuffer(1))) != te || Ne && he(new Ne()) != L || it && he(it.resolve()) != U || ot && he(new ot()) != j || st && he(new st()) != q) && (he = function(e) {
|
|
1586
|
+
var i = Pe.call(e), l = i == k ? e.constructor : void 0, h = l ? me(l) : void 0;
|
|
1597
1587
|
if (h)
|
|
1598
1588
|
switch (h) {
|
|
1599
1589
|
case _a:
|
|
1600
|
-
return
|
|
1590
|
+
return te;
|
|
1601
1591
|
case Sa:
|
|
1602
|
-
return
|
|
1592
|
+
return L;
|
|
1603
1593
|
case Ca:
|
|
1604
|
-
return
|
|
1594
|
+
return U;
|
|
1605
1595
|
case Ia:
|
|
1606
|
-
return
|
|
1607
|
-
case
|
|
1596
|
+
return j;
|
|
1597
|
+
case Oa:
|
|
1608
1598
|
return q;
|
|
1609
1599
|
}
|
|
1610
1600
|
return i;
|
|
@@ -1614,43 +1604,43 @@ tt.exports;
|
|
|
1614
1604
|
return i && typeof e[0] == "string" && fe.call(e, "index") && (l.index = e.index, l.input = e.input), l;
|
|
1615
1605
|
}
|
|
1616
1606
|
function vn(e) {
|
|
1617
|
-
return typeof e.constructor == "function" && !
|
|
1607
|
+
return typeof e.constructor == "function" && !xt(e) ? Xa(ma(e)) : {};
|
|
1618
1608
|
}
|
|
1619
1609
|
function bn(e, i, l, h) {
|
|
1620
|
-
var
|
|
1610
|
+
var G = e.constructor;
|
|
1621
1611
|
switch (i) {
|
|
1622
|
-
case
|
|
1612
|
+
case ne:
|
|
1623
1613
|
return ct(e);
|
|
1624
|
-
case
|
|
1614
|
+
case v:
|
|
1625
1615
|
case b:
|
|
1626
|
-
return new
|
|
1627
|
-
case
|
|
1616
|
+
return new G(+e);
|
|
1617
|
+
case te:
|
|
1628
1618
|
return an(e, h);
|
|
1629
|
-
case
|
|
1630
|
-
case
|
|
1631
|
-
case
|
|
1619
|
+
case ae:
|
|
1620
|
+
case D:
|
|
1621
|
+
case W:
|
|
1622
|
+
case z:
|
|
1632
1623
|
case Z:
|
|
1633
|
-
case H:
|
|
1634
1624
|
case A:
|
|
1635
|
-
case
|
|
1636
|
-
case
|
|
1625
|
+
case c:
|
|
1626
|
+
case f:
|
|
1637
1627
|
case g:
|
|
1638
1628
|
return ln(e, h);
|
|
1639
|
-
case
|
|
1629
|
+
case L:
|
|
1640
1630
|
return nn(e, h, l);
|
|
1641
|
-
case
|
|
1642
|
-
case
|
|
1643
|
-
return new
|
|
1631
|
+
case M:
|
|
1632
|
+
case se:
|
|
1633
|
+
return new G(e);
|
|
1644
1634
|
case V:
|
|
1645
1635
|
return rn(e);
|
|
1646
|
-
case
|
|
1636
|
+
case j:
|
|
1647
1637
|
return on(e, h, l);
|
|
1648
1638
|
case de:
|
|
1649
1639
|
return sn(e);
|
|
1650
1640
|
}
|
|
1651
1641
|
}
|
|
1652
1642
|
function pn(e, i) {
|
|
1653
|
-
return i = i ?? s, !!i && (typeof e == "number" ||
|
|
1643
|
+
return i = i ?? s, !!i && (typeof e == "number" || $.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1654
1644
|
}
|
|
1655
1645
|
function hn(e) {
|
|
1656
1646
|
var i = typeof e;
|
|
@@ -1659,11 +1649,11 @@ tt.exports;
|
|
|
1659
1649
|
function mn(e) {
|
|
1660
1650
|
return !!St && St in e;
|
|
1661
1651
|
}
|
|
1662
|
-
function
|
|
1663
|
-
var i = e && e.constructor, l = typeof i == "function" && i.prototype ||
|
|
1652
|
+
function xt(e) {
|
|
1653
|
+
var i = e && e.constructor, l = typeof i == "function" && i.prototype || je;
|
|
1664
1654
|
return e === l;
|
|
1665
1655
|
}
|
|
1666
|
-
function
|
|
1656
|
+
function me(e) {
|
|
1667
1657
|
if (e != null) {
|
|
1668
1658
|
try {
|
|
1669
1659
|
return Ct.call(e);
|
|
@@ -1679,11 +1669,11 @@ tt.exports;
|
|
|
1679
1669
|
function gn(e) {
|
|
1680
1670
|
return lt(e, !0, !0);
|
|
1681
1671
|
}
|
|
1682
|
-
function
|
|
1672
|
+
function Bt(e, i) {
|
|
1683
1673
|
return e === i || e !== e && i !== i;
|
|
1684
1674
|
}
|
|
1685
1675
|
function yn(e) {
|
|
1686
|
-
return wn(e) && fe.call(e, "callee") && (!ya.call(e, "callee") ||
|
|
1676
|
+
return wn(e) && fe.call(e, "callee") && (!ya.call(e, "callee") || Pe.call(e) == u);
|
|
1687
1677
|
}
|
|
1688
1678
|
var ut = Array.isArray;
|
|
1689
1679
|
function Lt(e) {
|
|
@@ -1694,13 +1684,13 @@ tt.exports;
|
|
|
1694
1684
|
}
|
|
1695
1685
|
var kn = ka || Cn;
|
|
1696
1686
|
function Mt(e) {
|
|
1697
|
-
var i =
|
|
1698
|
-
return i ==
|
|
1687
|
+
var i = He(e) ? Pe.call(e) : "";
|
|
1688
|
+
return i == I || i == R;
|
|
1699
1689
|
}
|
|
1700
1690
|
function Tn(e) {
|
|
1701
1691
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= s;
|
|
1702
1692
|
}
|
|
1703
|
-
function
|
|
1693
|
+
function He(e) {
|
|
1704
1694
|
var i = typeof e;
|
|
1705
1695
|
return !!e && (i == "object" || i == "function");
|
|
1706
1696
|
}
|
|
@@ -1717,22 +1707,22 @@ tt.exports;
|
|
|
1717
1707
|
return !1;
|
|
1718
1708
|
}
|
|
1719
1709
|
a.exports = gn;
|
|
1720
|
-
})(
|
|
1721
|
-
var
|
|
1722
|
-
const
|
|
1710
|
+
})(et, et.exports);
|
|
1711
|
+
var Ai = et.exports;
|
|
1712
|
+
const Fi = /* @__PURE__ */ Ei(Ai), Ni = {
|
|
1723
1713
|
key: 0,
|
|
1724
1714
|
class: "sidebar-header"
|
|
1725
|
-
},
|
|
1715
|
+
}, Di = { class: "sidebar-content-container" }, Ri = {
|
|
1726
1716
|
key: 0,
|
|
1727
1717
|
class: "sidebar-top"
|
|
1728
|
-
}, xi = { "aria-label": "Main menu" },
|
|
1718
|
+
}, xi = { "aria-label": "Main menu" }, Bi = ["id"], Li = ["aria-labelledby"], Mi = {
|
|
1729
1719
|
key: 1,
|
|
1730
1720
|
class: "sidebar-level-divider",
|
|
1731
1721
|
role: "separator"
|
|
1732
|
-
},
|
|
1722
|
+
}, ji = {
|
|
1733
1723
|
key: 2,
|
|
1734
1724
|
class: "level-primary bottom-items"
|
|
1735
|
-
},
|
|
1725
|
+
}, Pi = { class: "sidebar-footer" }, ge = "_ungrouped", Ki = /* @__PURE__ */ re({
|
|
1736
1726
|
__name: "AppSidebar",
|
|
1737
1727
|
props: {
|
|
1738
1728
|
topItems: {
|
|
@@ -1796,19 +1786,19 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1796
1786
|
emits: ["click", "toggle", "toggle-collapse"],
|
|
1797
1787
|
setup(a, { emit: t }) {
|
|
1798
1788
|
yt((d) => ({
|
|
1799
|
-
"
|
|
1800
|
-
"
|
|
1801
|
-
|
|
1802
|
-
"
|
|
1803
|
-
"
|
|
1804
|
-
"
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
"
|
|
1789
|
+
"2d6420c6": v.value.mobileHeight,
|
|
1790
|
+
"421fe69f": v.value.mobileTop,
|
|
1791
|
+
"02803aeb": a.zIndex,
|
|
1792
|
+
"00206b5b": v.value.height,
|
|
1793
|
+
"47ef33a1": v.value.top,
|
|
1794
|
+
"7792b3f5": w.value.marginTop,
|
|
1795
|
+
cb49f758: x.value,
|
|
1796
|
+
c4cb1d12: b.value.display,
|
|
1797
|
+
ebe8c4e4: b.value.minHeight,
|
|
1798
|
+
c5adf320: I.value.top,
|
|
1799
|
+
"1d6b5506": I.value.zIndex
|
|
1810
1800
|
}));
|
|
1811
|
-
const r = t, n = a, s =
|
|
1801
|
+
const r = t, n = a, s = tt(), u = S(() => !!s.header), o = S(() => !!s.top), v = S(() => ({
|
|
1812
1802
|
mobileTop: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : n.topOffset ? `${n.topOffset}px` : "0",
|
|
1813
1803
|
top: n.topOffset ? `${n.topOffset}px` : "0",
|
|
1814
1804
|
mobileHeight: n.mobileTopOffset && n.mobileEnabled ? `calc(100% - ${n.mobileTopOffset}px)` : "100%",
|
|
@@ -1817,29 +1807,29 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1817
1807
|
display: !n.mobileHeaderVisible && n.mobileEnabled ? "none" : "flex",
|
|
1818
1808
|
minHeight: `${n.headerHeight}px`
|
|
1819
1809
|
})), w = S(() => ({
|
|
1820
|
-
marginTop:
|
|
1821
|
-
})),
|
|
1810
|
+
marginTop: u.value ? `${n.headerHeight}px` : "0"
|
|
1811
|
+
})), I = S(() => ({
|
|
1822
1812
|
top: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : "0",
|
|
1823
1813
|
zIndex: n.mobileOverlayZIndex !== null ? n.mobileOverlayZIndex : n.zIndex > 1 ? n.zIndex - 1 : 1
|
|
1824
|
-
})), R = (d) =>
|
|
1825
|
-
var m,
|
|
1814
|
+
})), R = (d) => Fi(d).map((_) => {
|
|
1815
|
+
var m, H, P;
|
|
1826
1816
|
if (_) {
|
|
1827
|
-
(!_.key || !((m = _.key) != null && m.trim())) && (_.key = String(_.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!_.testId || !((
|
|
1817
|
+
(!_.key || !((m = _.key) != null && m.trim())) && (_.key = String(_.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!_.testId || !((H = _.testId) != null && H.trim())) && (_.testId = String(_.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1828
1818
|
for (const X of _.items || [])
|
|
1829
1819
|
X.parentKey = _.key, (!X.testId || !((P = X.testId) != null && P.trim())) && (X.testId = String(X.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1830
1820
|
}
|
|
1831
1821
|
return _;
|
|
1832
|
-
}),
|
|
1822
|
+
}), L = S(() => n.topItems.length ? R(n.topItems) : []), M = S(() => n.bottomItems.length ? R(n.bottomItems) : []), k = (d = "") => d.trim().replace(" ", "").replace(/[^a-z0-9]+/gi, "-").toLowerCase(), U = S(() => {
|
|
1833
1823
|
var y;
|
|
1834
1824
|
const d = /* @__PURE__ */ new Map();
|
|
1835
|
-
d.set(
|
|
1836
|
-
for (const _ of
|
|
1837
|
-
const m = _.group ||
|
|
1825
|
+
d.set(ge, []);
|
|
1826
|
+
for (const _ of L.value) {
|
|
1827
|
+
const m = _.group || ge;
|
|
1838
1828
|
d.has(m) || d.set(m, []), (y = d.get(m)) == null || y.push(_);
|
|
1839
1829
|
}
|
|
1840
1830
|
return d;
|
|
1841
1831
|
}), V = (d = "") => {
|
|
1842
|
-
if (d ===
|
|
1832
|
+
if (d === ge || !d.trim())
|
|
1843
1833
|
return null;
|
|
1844
1834
|
const y = {
|
|
1845
1835
|
label: d,
|
|
@@ -1848,40 +1838,40 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1848
1838
|
};
|
|
1849
1839
|
let _ = d.trim().replace(" ", "");
|
|
1850
1840
|
return _ = _.charAt(0).toLowerCase() + _.slice(1), d && n.groupConfig && (n.groupConfig[d] || n.groupConfig[_]) ? n.groupConfig[d] || n.groupConfig[_] : y;
|
|
1851
|
-
},
|
|
1841
|
+
}, j = (d) => {
|
|
1852
1842
|
var y;
|
|
1853
1843
|
return !!((y = V(d)) != null && y.collapsible);
|
|
1854
|
-
},
|
|
1844
|
+
}, se = (d) => {
|
|
1855
1845
|
var y;
|
|
1856
1846
|
return !!((y = V(d)) != null && y.collapsed);
|
|
1857
1847
|
}, de = (d, y, _) => {
|
|
1858
1848
|
const m = V(d);
|
|
1859
1849
|
m && (m.collapsed = !y), _(), r("toggle-collapse", d, m);
|
|
1860
|
-
}, q = ee(n.open),
|
|
1850
|
+
}, q = ee(n.open), ne = (d) => {
|
|
1861
1851
|
var y, _;
|
|
1862
|
-
q.value !== d && (q.value = d, r("toggle", d)), d ? (y = document == null ? void 0 : document.body) == null || y.classList.add("kong-ui-app-sidebar-open") : (_ = document == null ? void 0 : document.body) == null || _.classList.remove("kong-ui-app-sidebar-open"),
|
|
1863
|
-
},
|
|
1864
|
-
n.mobileOverlayCloseOnClick &&
|
|
1865
|
-
},
|
|
1866
|
-
|
|
1867
|
-
|
|
1852
|
+
q.value !== d && (q.value = d, r("toggle", d)), d ? (y = document == null ? void 0 : document.body) == null || y.classList.add("kong-ui-app-sidebar-open") : (_ = document == null ? void 0 : document.body) == null || _.classList.remove("kong-ui-app-sidebar-open"), ae.value = !1;
|
|
1853
|
+
}, te = () => {
|
|
1854
|
+
n.mobileOverlayCloseOnClick && ne(!1);
|
|
1855
|
+
}, ae = ee(!1), D = (d) => {
|
|
1856
|
+
ae.value = !0, r("click", d), setTimeout(() => {
|
|
1857
|
+
ne(!1);
|
|
1868
1858
|
}, n.mobileCloseDelay);
|
|
1869
1859
|
};
|
|
1870
|
-
|
|
1871
|
-
|
|
1860
|
+
Ae(() => n.open, (d) => {
|
|
1861
|
+
ne(d);
|
|
1872
1862
|
});
|
|
1873
|
-
const { debounce:
|
|
1874
|
-
q.value &&
|
|
1875
|
-
}, 200),
|
|
1876
|
-
A.value || (A.value = !0, clearTimeout(
|
|
1877
|
-
}, g = ee(null),
|
|
1863
|
+
const { debounce: W } = ca(), z = W(() => {
|
|
1864
|
+
q.value && Z.value !== (window == null ? void 0 : window.innerWidth) && (Z.value = window == null ? void 0 : window.innerWidth, ne(!1));
|
|
1865
|
+
}, 200), Z = ee(), A = ee(!1), c = ee(), f = () => {
|
|
1866
|
+
A.value || (A.value = !0, clearTimeout(c.value), c.value = setTimeout(() => A.value = !1, 1300));
|
|
1867
|
+
}, g = ee(null), F = S(() => q.value && n.mobileEnabled), N = async (d) => {
|
|
1878
1868
|
var y, _;
|
|
1879
1869
|
d ? (await Ht(), await new Promise((m) => setTimeout(m, 300)), (y = g.value) == null || y.activate()) : (_ = g.value) == null || _.deactivate();
|
|
1880
1870
|
};
|
|
1881
|
-
|
|
1882
|
-
d ? await
|
|
1871
|
+
Ae(F, async (d) => {
|
|
1872
|
+
d ? await N(!0) : await N(!1);
|
|
1883
1873
|
}, { immediate: !0 });
|
|
1884
|
-
const x = ee("0px"),
|
|
1874
|
+
const x = ee("0px"), $ = () => {
|
|
1885
1875
|
var X;
|
|
1886
1876
|
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((X = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : X.platform)))
|
|
1887
1877
|
return;
|
|
@@ -1891,134 +1881,126 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
1891
1881
|
y.style.overflow = "scroll";
|
|
1892
1882
|
const m = document.createElement("div");
|
|
1893
1883
|
m.style.width = "100%", y.appendChild(m);
|
|
1894
|
-
const
|
|
1895
|
-
y.parentNode && y.parentNode.removeChild(y), _ -
|
|
1884
|
+
const H = m.offsetWidth;
|
|
1885
|
+
y.parentNode && y.parentNode.removeChild(y), _ - H === 0 && (x.value = "8px");
|
|
1896
1886
|
};
|
|
1897
|
-
return
|
|
1898
|
-
if (
|
|
1887
|
+
return Me(async () => {
|
|
1888
|
+
if (Z.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", z), window.addEventListener("resize", f), n.groupConfig) {
|
|
1899
1889
|
for (const d in n.groupConfig)
|
|
1900
|
-
if (Er(`(max-width: ${
|
|
1890
|
+
if (Er(`(max-width: ${Br})`)) {
|
|
1901
1891
|
const y = n.groupConfig[d];
|
|
1902
1892
|
y.collapsed = !1;
|
|
1903
1893
|
}
|
|
1904
1894
|
}
|
|
1905
|
-
await Ht(),
|
|
1895
|
+
await Ht(), $();
|
|
1906
1896
|
}), ea(() => {
|
|
1907
|
-
window.removeEventListener("resize",
|
|
1897
|
+
window.removeEventListener("resize", z), window.removeEventListener("resize", f);
|
|
1908
1898
|
}), (d, y) => {
|
|
1909
|
-
const _ =
|
|
1910
|
-
return p(),
|
|
1911
|
-
q.value && a.mobileOverlay && a.mobileEnabled ? (p(),
|
|
1899
|
+
const _ = be("KCollapse");
|
|
1900
|
+
return p(), T(Oe, null, [
|
|
1901
|
+
q.value && a.mobileOverlay && a.mobileEnabled ? (p(), T("div", {
|
|
1912
1902
|
key: 0,
|
|
1913
1903
|
class: "kong-ui-app-sidebar-overlay",
|
|
1914
|
-
onClick:
|
|
1915
|
-
})) :
|
|
1916
|
-
|
|
1904
|
+
onClick: te
|
|
1905
|
+
})) : O("", !0),
|
|
1906
|
+
Le(ve($i), {
|
|
1917
1907
|
ref_key: "focusTrap",
|
|
1918
1908
|
ref: g,
|
|
1919
1909
|
active: !1,
|
|
1920
1910
|
"allow-outside-click": "",
|
|
1921
1911
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1922
1912
|
}, {
|
|
1923
|
-
default:
|
|
1913
|
+
default: B(() => [
|
|
1924
1914
|
E("aside", {
|
|
1925
|
-
class:
|
|
1915
|
+
class: oe(["kong-ui-app-sidebar", {
|
|
1926
1916
|
"sidebar-open": q.value,
|
|
1927
|
-
"no-sidebar-header": !
|
|
1928
|
-
"mobile-header-hidden": a.mobileEnabled && (!
|
|
1917
|
+
"no-sidebar-header": !u.value,
|
|
1918
|
+
"mobile-header-hidden": a.mobileEnabled && (!u.value || !a.mobileHeaderVisible),
|
|
1929
1919
|
"mobile-disabled": !a.mobileEnabled,
|
|
1930
1920
|
"disable-transitions": A.value
|
|
1931
1921
|
}]),
|
|
1932
1922
|
tabindex: "-1"
|
|
1933
1923
|
}, [
|
|
1934
|
-
|
|
1924
|
+
u.value ? (p(), T("div", Ni, [
|
|
1935
1925
|
C(d.$slots, "header", {}, void 0, !0)
|
|
1936
|
-
])) :
|
|
1937
|
-
E("div",
|
|
1938
|
-
o.value ? (p(),
|
|
1926
|
+
])) : O("", !0),
|
|
1927
|
+
E("div", Di, [
|
|
1928
|
+
o.value ? (p(), T("div", Ri, [
|
|
1939
1929
|
C(d.$slots, "top", {}, void 0, !0)
|
|
1940
|
-
])) :
|
|
1930
|
+
])) : O("", !0),
|
|
1941
1931
|
E("nav", xi, [
|
|
1942
|
-
|
|
1932
|
+
U.value.size > 0 ? (p(!0), T(Oe, { key: 0 }, we(U.value, ([m, H]) => (p(), K(_, {
|
|
1943
1933
|
key: m,
|
|
1944
|
-
class:
|
|
1945
|
-
"not-collapsible": !
|
|
1946
|
-
ungrouped: m ===
|
|
1934
|
+
class: oe(["level-primary-group-collapse", {
|
|
1935
|
+
"not-collapsible": !j(m),
|
|
1936
|
+
ungrouped: m === ge
|
|
1947
1937
|
}]),
|
|
1948
|
-
"data-testid": m ===
|
|
1949
|
-
"model-value":
|
|
1938
|
+
"data-testid": m === ge ? "level-primary-group-collapse-ungrouped" : `level-primary-group-collapse-${m}`,
|
|
1939
|
+
"model-value": j(m) && se(m) || !1
|
|
1950
1940
|
}, {
|
|
1951
|
-
trigger:
|
|
1952
|
-
(p(),
|
|
1953
|
-
appearance:
|
|
1941
|
+
trigger: B(({ isCollapsed: P, toggle: X }) => [
|
|
1942
|
+
(p(), K(Ee(j(m) ? ve(Ln) : "div"), {
|
|
1943
|
+
appearance: j(m) ? "none" : void 0,
|
|
1954
1944
|
class: "level-primary-group-collapse-trigger",
|
|
1955
|
-
onClick: (le) =>
|
|
1945
|
+
onClick: (le) => j(m) ? de(m, P, X) : void 0
|
|
1956
1946
|
}, {
|
|
1957
|
-
default:
|
|
1947
|
+
default: B(() => {
|
|
1958
1948
|
var le;
|
|
1959
1949
|
return [
|
|
1960
|
-
m !==
|
|
1950
|
+
m !== ge ? (p(), T("div", {
|
|
1961
1951
|
key: 0,
|
|
1962
|
-
id: `level-primary-group-${
|
|
1952
|
+
id: `level-primary-group-${k(m)}`,
|
|
1963
1953
|
class: "level-primary-group-name",
|
|
1964
1954
|
"data-testid": "level-primary-group-name",
|
|
1965
1955
|
role: "presentation"
|
|
1966
|
-
}, Y(((le = V(m)) == null ? void 0 : le.label) || m), 9,
|
|
1967
|
-
|
|
1956
|
+
}, Y(((le = V(m)) == null ? void 0 : le.label) || m), 9, Bi)) : O("", !0),
|
|
1957
|
+
j(m) ? (p(), K(Ee(P ? ve(ta) : ve(Bn)), {
|
|
1968
1958
|
key: 1,
|
|
1969
1959
|
class: "level-primary-group-collapse-icon",
|
|
1970
1960
|
color: ve(Mr),
|
|
1971
1961
|
"data-testid": "level-primary-group-collapse-icon",
|
|
1972
1962
|
size: ve(Lr)
|
|
1973
|
-
}, null, 8, ["color", "size"])) :
|
|
1963
|
+
}, null, 8, ["color", "size"])) : O("", !0)
|
|
1974
1964
|
];
|
|
1975
1965
|
}),
|
|
1976
1966
|
_: 2
|
|
1977
1967
|
}, 1032, ["appearance", "onClick"]))
|
|
1978
1968
|
]),
|
|
1979
|
-
default:
|
|
1969
|
+
default: B(() => [
|
|
1980
1970
|
E("ul", {
|
|
1981
|
-
"aria-labelledby": m !==
|
|
1971
|
+
"aria-labelledby": m !== ge ? `level-primary-group-${k(m)}` : void 0,
|
|
1982
1972
|
class: "level-primary top-items"
|
|
1983
1973
|
}, [
|
|
1984
|
-
(p(!0),
|
|
1974
|
+
(p(!0), T(Oe, null, we(H, (P) => (p(), K(zt, {
|
|
1985
1975
|
key: P.name,
|
|
1986
1976
|
item: P,
|
|
1987
|
-
onClick:
|
|
1988
|
-
},
|
|
1989
|
-
[`sidebar-icon-${P.key}`]:
|
|
1977
|
+
onClick: D
|
|
1978
|
+
}, {
|
|
1979
|
+
[`sidebar-icon-${P.key}`]: B(() => [
|
|
1990
1980
|
C(d.$slots, `sidebar-icon-${P.key}`, {}, void 0, !0)
|
|
1991
1981
|
]),
|
|
1992
1982
|
_: 2
|
|
1993
|
-
}, [
|
|
1994
|
-
|
|
1995
|
-
name: `sidebar-after-${P.key}`,
|
|
1996
|
-
fn: L(() => [
|
|
1997
|
-
C(d.$slots, `sidebar-after-${P.key}`, {}, void 0, !0)
|
|
1998
|
-
]),
|
|
1999
|
-
key: "0"
|
|
2000
|
-
} : void 0
|
|
2001
|
-
]), 1032, ["item"]))), 128))
|
|
2002
|
-
], 8, Mi)
|
|
1983
|
+
}, 1032, ["item"]))), 128))
|
|
1984
|
+
], 8, Li)
|
|
2003
1985
|
]),
|
|
2004
1986
|
_: 2
|
|
2005
|
-
}, 1032, ["class", "data-testid", "model-value"]))), 128)) :
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
(p(!0),
|
|
1987
|
+
}, 1032, ["class", "data-testid", "model-value"]))), 128)) : O("", !0),
|
|
1988
|
+
U.value.size > 0 && M.value.length ? (p(), T("div", Mi)) : O("", !0),
|
|
1989
|
+
M.value.length ? (p(), T("ul", ji, [
|
|
1990
|
+
(p(!0), T(Oe, null, we(M.value, (m) => (p(), K(zt, {
|
|
2009
1991
|
key: m.name,
|
|
2010
1992
|
item: m,
|
|
2011
|
-
onClick:
|
|
1993
|
+
onClick: D
|
|
2012
1994
|
}, {
|
|
2013
|
-
[`sidebar-icon-${m.key}`]:
|
|
1995
|
+
[`sidebar-icon-${m.key}`]: B(() => [
|
|
2014
1996
|
C(d.$slots, `sidebar-icon-${m.key}`, {}, void 0, !0)
|
|
2015
1997
|
]),
|
|
2016
1998
|
_: 2
|
|
2017
1999
|
}, 1032, ["item"]))), 128))
|
|
2018
|
-
])) :
|
|
2000
|
+
])) : O("", !0)
|
|
2019
2001
|
])
|
|
2020
2002
|
]),
|
|
2021
|
-
E("div",
|
|
2003
|
+
E("div", Pi, [
|
|
2022
2004
|
C(d.$slots, "footer", {}, void 0, !0)
|
|
2023
2005
|
])
|
|
2024
2006
|
], 2)
|
|
@@ -2028,7 +2010,7 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2028
2010
|
], 64);
|
|
2029
2011
|
};
|
|
2030
2012
|
}
|
|
2031
|
-
}),
|
|
2013
|
+
}), Zi = /* @__PURE__ */ ie(Ki, [["__scopeId", "data-v-9c3710c3"]]), Hi = ["aria-label"], Wi = /* @__PURE__ */ re({
|
|
2032
2014
|
__name: "SidebarToggle",
|
|
2033
2015
|
props: {
|
|
2034
2016
|
active: {
|
|
@@ -2038,31 +2020,31 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2038
2020
|
},
|
|
2039
2021
|
emits: ["toggle"],
|
|
2040
2022
|
setup(a, { emit: t }) {
|
|
2041
|
-
const r = t, n = a, s = ee(n.active || !1),
|
|
2023
|
+
const r = t, n = a, s = ee(n.active || !1), u = (o) => {
|
|
2042
2024
|
o.preventDefault(), s.value = !s.value, r("toggle", s.value);
|
|
2043
2025
|
};
|
|
2044
|
-
return
|
|
2026
|
+
return Ae(() => n.active, (o) => {
|
|
2045
2027
|
s.value = o;
|
|
2046
|
-
}), (o,
|
|
2028
|
+
}), (o, v) => (p(), T("a", {
|
|
2047
2029
|
"aria-haspopup": "true",
|
|
2048
2030
|
"aria-label": s.value ? "Close Main Menu" : "Open Main Menu",
|
|
2049
|
-
class:
|
|
2031
|
+
class: oe(["sidebar-menu-toggle", { active: s.value }]),
|
|
2050
2032
|
href: "#",
|
|
2051
2033
|
role: "button",
|
|
2052
|
-
onClick: Rn(
|
|
2053
|
-
},
|
|
2034
|
+
onClick: Rn(u, ["prevent"])
|
|
2035
|
+
}, v[0] || (v[0] = [
|
|
2054
2036
|
E("span", { class: "line" }, null, -1),
|
|
2055
2037
|
E("span", { class: "line" }, null, -1),
|
|
2056
2038
|
E("span", { class: "line" }, null, -1)
|
|
2057
|
-
]), 10,
|
|
2039
|
+
]), 10, Hi));
|
|
2058
2040
|
}
|
|
2059
|
-
}),
|
|
2041
|
+
}), zi = /* @__PURE__ */ ie(Wi, [["__scopeId", "data-v-cbb41bbd"]]), Gi = { id: "kong-ui-app-layout-notification" }, Ui = { class: "mobile-logo" }, Vi = {
|
|
2060
2042
|
key: 0,
|
|
2061
2043
|
class: "navbar-logo"
|
|
2062
|
-
},
|
|
2044
|
+
}, qi = {
|
|
2063
2045
|
class: "kong-ui-app-layout-main",
|
|
2064
2046
|
"data-testid": "kong-ui-app-layout-main"
|
|
2065
|
-
},
|
|
2047
|
+
}, Xi = { class: "kong-ui-app-layout-content" }, Yi = { class: "kong-ui-app-layout-content-inner" }, Qi = /* @__PURE__ */ re({
|
|
2066
2048
|
__name: "AppLayout",
|
|
2067
2049
|
props: {
|
|
2068
2050
|
hideDefaultSlot: {
|
|
@@ -2103,14 +2085,14 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2103
2085
|
},
|
|
2104
2086
|
emits: ["sidebar-click", "update:topOffset", "toggle-collapse"],
|
|
2105
2087
|
setup(a, { emit: t }) {
|
|
2106
|
-
yt((
|
|
2107
|
-
"
|
|
2108
|
-
"
|
|
2109
|
-
"
|
|
2110
|
-
"
|
|
2111
|
-
"
|
|
2088
|
+
yt((D) => ({
|
|
2089
|
+
"182e1cec": j.value,
|
|
2090
|
+
"40b2f580": se.value,
|
|
2091
|
+
"27bb1858": V.value,
|
|
2092
|
+
"7516233c": de.value,
|
|
2093
|
+
"2c991da2": q.value
|
|
2112
2094
|
}));
|
|
2113
|
-
const r = a, n = t, s =
|
|
2095
|
+
const r = a, n = t, s = tt(), u = Ue({
|
|
2114
2096
|
navbarLeft: S(() => !!s["navbar-left"]),
|
|
2115
2097
|
navbarCenter: S(() => !!s["navbar-center"]),
|
|
2116
2098
|
navbarRight: S(() => !!s["navbar-right"]),
|
|
@@ -2119,189 +2101,183 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2119
2101
|
sidebarHeader: S(() => !!s["sidebar-header"]),
|
|
2120
2102
|
sidebarTop: S(() => !!s["sidebar-top"]),
|
|
2121
2103
|
sidebarFooter: S(() => !!s["sidebar-footer"])
|
|
2122
|
-
}), o = S(() => r.hideDefaultSlot),
|
|
2104
|
+
}), o = S(() => r.hideDefaultSlot), v = Ue({
|
|
2123
2105
|
hidden: S(() => r.navbarHidden)
|
|
2124
|
-
}), b =
|
|
2106
|
+
}), b = Ue({
|
|
2125
2107
|
topItems: S(() => r.sidebarTopItems),
|
|
2126
2108
|
bottomItems: S(() => r.sidebarBottomItems),
|
|
2127
2109
|
open: S(() => r.sidebarOpen),
|
|
2128
2110
|
hidden: S(() => r.sidebarHidden)
|
|
2129
|
-
}), w = (
|
|
2130
|
-
n("sidebar-click",
|
|
2131
|
-
},
|
|
2132
|
-
|
|
2111
|
+
}), w = (D) => {
|
|
2112
|
+
n("sidebar-click", D);
|
|
2113
|
+
}, I = ee(!1), R = (D) => {
|
|
2114
|
+
I.value = D;
|
|
2133
2115
|
};
|
|
2134
2116
|
Jt(() => {
|
|
2135
|
-
|
|
2117
|
+
I.value = xn(b, "open").value || !1;
|
|
2136
2118
|
});
|
|
2137
|
-
const
|
|
2138
|
-
if (
|
|
2139
|
-
|
|
2140
|
-
const
|
|
2141
|
-
|
|
2119
|
+
const L = ee(0), M = ee(60), k = ee(0), U = S(() => v.hidden ? k.value : M.value + k.value), V = S(() => r.theme === "light" ? Nr : Dr), j = S(() => r.theme === "light" ? Ar : Fr), se = S(() => r.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), de = S(() => `${U.value}px`), q = S(() => b.hidden || v.hidden ? Rr : xr), { debounce: ne } = ca(), te = ne((D = !1) => {
|
|
2120
|
+
if (D || L.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
2121
|
+
L.value = window == null ? void 0 : window.innerWidth;
|
|
2122
|
+
const W = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2123
|
+
W && (k.value = W.offsetHeight);
|
|
2142
2124
|
}
|
|
2143
|
-
}, 200),
|
|
2144
|
-
return
|
|
2145
|
-
n("update:topOffset",
|
|
2146
|
-
}, { immediate: !0 }),
|
|
2147
|
-
var
|
|
2148
|
-
(
|
|
2149
|
-
const
|
|
2150
|
-
|
|
2125
|
+
}, 200), ae = ee();
|
|
2126
|
+
return Ae(k, (D) => {
|
|
2127
|
+
n("update:topOffset", D || 0);
|
|
2128
|
+
}, { immediate: !0 }), Me(() => {
|
|
2129
|
+
var W, z;
|
|
2130
|
+
(W = document == null ? void 0 : document.body) == null || W.classList.add("kong-ui-app-layout-body"), (z = document == null ? void 0 : document.documentElement) == null || z.classList.add("kong-ui-app-layout-html"), L.value = window == null ? void 0 : window.innerWidth, te(!0);
|
|
2131
|
+
const D = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2132
|
+
D && (ae.value = new ResizeObserver((Z) => {
|
|
2151
2133
|
window.requestAnimationFrame(() => {
|
|
2152
|
-
if (!(!Array.isArray(
|
|
2153
|
-
for (const A of
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2134
|
+
if (!(!Array.isArray(Z) || !Z.length))
|
|
2135
|
+
for (const A of Z) {
|
|
2136
|
+
const c = A.contentRect.height;
|
|
2137
|
+
k.value !== c && (k.value = c);
|
|
2156
2138
|
}
|
|
2157
2139
|
});
|
|
2158
|
-
}),
|
|
2140
|
+
}), ae.value.observe(D)), window.addEventListener("resize", te);
|
|
2159
2141
|
}), ea(() => {
|
|
2160
|
-
|
|
2161
|
-
}), (
|
|
2162
|
-
class:
|
|
2163
|
-
{ "navbar-hidden":
|
|
2142
|
+
ae.value && ae.value.disconnect(), window.removeEventListener("resize", te);
|
|
2143
|
+
}), (D, W) => (p(), T("div", {
|
|
2144
|
+
class: oe(["kong-ui-app-layout", [
|
|
2145
|
+
{ "navbar-hidden": v.hidden },
|
|
2164
2146
|
{ "sidebar-hidden": b.hidden }
|
|
2165
2147
|
]])
|
|
2166
2148
|
}, [
|
|
2167
|
-
E("div",
|
|
2168
|
-
C(
|
|
2149
|
+
E("div", Gi, [
|
|
2150
|
+
C(D.$slots, "notification", {}, void 0, !0)
|
|
2169
2151
|
]),
|
|
2170
|
-
|
|
2152
|
+
v.hidden ? O("", !0) : (p(), K(hr, {
|
|
2171
2153
|
key: String(b.hidden),
|
|
2172
2154
|
"left-offset": b.hidden ? 0 : void 0,
|
|
2173
|
-
"top-offset":
|
|
2174
|
-
},
|
|
2175
|
-
"mobile-sidebar-toggle":
|
|
2176
|
-
b.hidden ?
|
|
2155
|
+
"top-offset": k.value
|
|
2156
|
+
}, qe({
|
|
2157
|
+
"mobile-sidebar-toggle": B(() => [
|
|
2158
|
+
b.hidden ? O("", !0) : (p(), K(zi, {
|
|
2177
2159
|
key: 0,
|
|
2178
|
-
active:
|
|
2160
|
+
active: I.value,
|
|
2179
2161
|
onToggle: R
|
|
2180
2162
|
}, null, 8, ["active"]))
|
|
2181
2163
|
]),
|
|
2182
2164
|
_: 2
|
|
2183
2165
|
}, [
|
|
2184
|
-
|
|
2166
|
+
u.navbarMobileLogo ? {
|
|
2185
2167
|
name: "mobile-logo",
|
|
2186
|
-
fn:
|
|
2187
|
-
E("div",
|
|
2188
|
-
C(
|
|
2168
|
+
fn: B(() => [
|
|
2169
|
+
E("div", Ui, [
|
|
2170
|
+
C(D.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
2189
2171
|
])
|
|
2190
2172
|
]),
|
|
2191
2173
|
key: "0"
|
|
2192
2174
|
} : void 0,
|
|
2193
|
-
|
|
2175
|
+
u.navbarLogo ? {
|
|
2194
2176
|
name: "logo",
|
|
2195
|
-
fn:
|
|
2196
|
-
b.hidden ? (p(),
|
|
2197
|
-
C(
|
|
2198
|
-
])) :
|
|
2177
|
+
fn: B(() => [
|
|
2178
|
+
b.hidden ? (p(), T("div", Vi, [
|
|
2179
|
+
C(D.$slots, "navbar-logo", {}, void 0, !0)
|
|
2180
|
+
])) : O("", !0)
|
|
2199
2181
|
]),
|
|
2200
2182
|
key: "1"
|
|
2201
2183
|
} : void 0,
|
|
2202
|
-
|
|
2184
|
+
u.navbarLeft ? {
|
|
2203
2185
|
name: "left",
|
|
2204
|
-
fn:
|
|
2205
|
-
C(
|
|
2186
|
+
fn: B(() => [
|
|
2187
|
+
C(D.$slots, "navbar-left", {}, void 0, !0)
|
|
2206
2188
|
]),
|
|
2207
2189
|
key: "2"
|
|
2208
2190
|
} : void 0,
|
|
2209
|
-
|
|
2191
|
+
u.navbarCenter ? {
|
|
2210
2192
|
name: "center",
|
|
2211
|
-
fn:
|
|
2212
|
-
C(
|
|
2193
|
+
fn: B(() => [
|
|
2194
|
+
C(D.$slots, "navbar-center", {}, void 0, !0)
|
|
2213
2195
|
]),
|
|
2214
2196
|
key: "3"
|
|
2215
2197
|
} : void 0,
|
|
2216
|
-
|
|
2198
|
+
u.navbarRight ? {
|
|
2217
2199
|
name: "right",
|
|
2218
|
-
fn:
|
|
2219
|
-
C(
|
|
2200
|
+
fn: B(() => [
|
|
2201
|
+
C(D.$slots, "navbar-right", {}, void 0, !0)
|
|
2220
2202
|
]),
|
|
2221
2203
|
key: "4"
|
|
2222
2204
|
} : void 0
|
|
2223
2205
|
]), 1032, ["left-offset", "top-offset"])),
|
|
2224
|
-
b.hidden ?
|
|
2206
|
+
b.hidden ? O("", !0) : (p(), K(Zi, {
|
|
2225
2207
|
key: 1,
|
|
2226
2208
|
"bottom-items": b.bottomItems,
|
|
2227
2209
|
"group-config": a.groupConfig,
|
|
2228
|
-
"header-height":
|
|
2210
|
+
"header-height": M.value,
|
|
2229
2211
|
"mobile-enabled": "",
|
|
2230
2212
|
"mobile-header-visible": !1,
|
|
2231
|
-
"mobile-top-offset":
|
|
2232
|
-
open:
|
|
2213
|
+
"mobile-top-offset": U.value,
|
|
2214
|
+
open: I.value,
|
|
2233
2215
|
"top-items": b.topItems,
|
|
2234
|
-
"top-offset":
|
|
2216
|
+
"top-offset": k.value,
|
|
2235
2217
|
onClick: w,
|
|
2236
2218
|
onToggle: R,
|
|
2237
|
-
onToggleCollapse:
|
|
2238
|
-
},
|
|
2239
|
-
|
|
2219
|
+
onToggleCollapse: W[0] || (W[0] = (z, Z) => n("toggle-collapse", z, Z))
|
|
2220
|
+
}, qe({ _: 2 }, [
|
|
2221
|
+
u.sidebarHeader ? {
|
|
2240
2222
|
name: "header",
|
|
2241
|
-
fn:
|
|
2242
|
-
C(
|
|
2223
|
+
fn: B(() => [
|
|
2224
|
+
C(D.$slots, "sidebar-header", {}, void 0, !0)
|
|
2243
2225
|
]),
|
|
2244
2226
|
key: "0"
|
|
2245
2227
|
} : void 0,
|
|
2246
|
-
|
|
2228
|
+
u.sidebarTop ? {
|
|
2247
2229
|
name: "top",
|
|
2248
|
-
fn:
|
|
2249
|
-
C(
|
|
2230
|
+
fn: B(() => [
|
|
2231
|
+
C(D.$slots, "sidebar-top", {}, void 0, !0)
|
|
2250
2232
|
]),
|
|
2251
2233
|
key: "1"
|
|
2252
2234
|
} : void 0,
|
|
2253
|
-
|
|
2235
|
+
u.sidebarFooter ? {
|
|
2254
2236
|
name: "footer",
|
|
2255
|
-
fn:
|
|
2256
|
-
C(
|
|
2237
|
+
fn: B(() => [
|
|
2238
|
+
C(D.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2257
2239
|
]),
|
|
2258
2240
|
key: "2"
|
|
2259
2241
|
} : void 0,
|
|
2260
|
-
|
|
2261
|
-
name: `sidebar-icon-${
|
|
2262
|
-
fn:
|
|
2263
|
-
C(
|
|
2264
|
-
])
|
|
2265
|
-
})),
|
|
2266
|
-
be([...b.topItems || [], ...b.bottomItems || []], (Z) => ({
|
|
2267
|
-
name: `sidebar-after-${Z.key}`,
|
|
2268
|
-
fn: L(() => [
|
|
2269
|
-
C(F.$slots, `sidebar-after-${Z.key}`, {}, void 0, !0)
|
|
2242
|
+
we([...b.topItems || [], ...b.bottomItems || []], (z) => ({
|
|
2243
|
+
name: `sidebar-icon-${z.key}`,
|
|
2244
|
+
fn: B(() => [
|
|
2245
|
+
C(D.$slots, `sidebar-icon-${z.key}`, {}, void 0, !0)
|
|
2270
2246
|
])
|
|
2271
2247
|
}))
|
|
2272
2248
|
]), 1032, ["bottom-items", "group-config", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2273
|
-
E("main",
|
|
2274
|
-
E("div",
|
|
2275
|
-
E("div",
|
|
2276
|
-
|
|
2277
|
-
C(
|
|
2278
|
-
o.value ?
|
|
2249
|
+
E("main", qi, [
|
|
2250
|
+
E("div", Xi, [
|
|
2251
|
+
E("div", Yi, [
|
|
2252
|
+
W[1] || (W[1] = E("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2253
|
+
C(D.$slots, "app-error", {}, void 0, !0),
|
|
2254
|
+
o.value ? O("", !0) : C(D.$slots, "default", { key: 0 }, void 0, !0)
|
|
2279
2255
|
])
|
|
2280
2256
|
])
|
|
2281
2257
|
])
|
|
2282
2258
|
], 2));
|
|
2283
2259
|
}
|
|
2284
|
-
}),
|
|
2260
|
+
}), Ji = /* @__PURE__ */ ie(Qi, [["__scopeId", "data-v-81828fa2"]]), eo = { class: "kong-ui-app-page-header" }, to = {
|
|
2285
2261
|
key: 0,
|
|
2286
2262
|
class: "page-header-breadcrumbs",
|
|
2287
2263
|
"data-testid": "page-header-breadcrumbs"
|
|
2288
|
-
},
|
|
2264
|
+
}, ao = { class: "page-header-title-section" }, no = { class: "page-header-title-wrapper" }, ro = {
|
|
2289
2265
|
key: 0,
|
|
2290
2266
|
class: "page-header-title-before",
|
|
2291
2267
|
"data-testid": "page-header-title-before"
|
|
2292
|
-
},
|
|
2268
|
+
}, io = ["title"], oo = {
|
|
2293
2269
|
key: 1,
|
|
2294
2270
|
class: "page-header-title-after",
|
|
2295
2271
|
"data-testid": "page-header-title-after"
|
|
2296
|
-
},
|
|
2272
|
+
}, so = {
|
|
2297
2273
|
key: 0,
|
|
2298
2274
|
class: "page-header-actions",
|
|
2299
2275
|
"data-testid": "page-header-actions"
|
|
2300
|
-
},
|
|
2276
|
+
}, lo = {
|
|
2301
2277
|
key: 1,
|
|
2302
2278
|
class: "page-header-section-below",
|
|
2303
2279
|
"data-testid": "page-header-section-below"
|
|
2304
|
-
},
|
|
2280
|
+
}, co = /* @__PURE__ */ re({
|
|
2305
2281
|
__name: "AppPageHeader",
|
|
2306
2282
|
props: {
|
|
2307
2283
|
title: {
|
|
@@ -2315,59 +2291,59 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2315
2291
|
}
|
|
2316
2292
|
},
|
|
2317
2293
|
setup(a) {
|
|
2318
|
-
const t = a, r =
|
|
2319
|
-
var
|
|
2320
|
-
return !!((
|
|
2321
|
-
}), s = S(() => Object.keys(r).filter((
|
|
2322
|
-
return (
|
|
2323
|
-
const
|
|
2324
|
-
return p(),
|
|
2325
|
-
n.value ? (p(),
|
|
2326
|
-
|
|
2294
|
+
const t = a, r = tt(), n = S(() => {
|
|
2295
|
+
var u;
|
|
2296
|
+
return !!((u = t.breadcrumbs) != null && u.length);
|
|
2297
|
+
}), s = S(() => Object.keys(r).filter((u) => u.startsWith("icon-")));
|
|
2298
|
+
return (u, o) => {
|
|
2299
|
+
const v = be("KBreadcrumbs");
|
|
2300
|
+
return p(), T("div", eo, [
|
|
2301
|
+
n.value ? (p(), T("div", to, [
|
|
2302
|
+
Le(v, {
|
|
2327
2303
|
"item-max-width": "150",
|
|
2328
2304
|
items: a.breadcrumbs
|
|
2329
|
-
},
|
|
2330
|
-
|
|
2305
|
+
}, qe({ _: 2 }, [
|
|
2306
|
+
we(s.value, (b) => ({
|
|
2331
2307
|
name: b,
|
|
2332
|
-
fn:
|
|
2333
|
-
C(
|
|
2308
|
+
fn: B(() => [
|
|
2309
|
+
C(u.$slots, b, {}, void 0, !0)
|
|
2334
2310
|
])
|
|
2335
2311
|
}))
|
|
2336
2312
|
]), 1032, ["items"])
|
|
2337
|
-
])) :
|
|
2338
|
-
E("div",
|
|
2339
|
-
E("div",
|
|
2340
|
-
|
|
2341
|
-
C(
|
|
2342
|
-
])) :
|
|
2313
|
+
])) : O("", !0),
|
|
2314
|
+
E("div", ao, [
|
|
2315
|
+
E("div", no, [
|
|
2316
|
+
u.$slots["title-before"] ? (p(), T("div", ro, [
|
|
2317
|
+
C(u.$slots, "title-before", {}, void 0, !0)
|
|
2318
|
+
])) : O("", !0),
|
|
2343
2319
|
E("h1", {
|
|
2344
2320
|
class: "page-header-title",
|
|
2345
2321
|
"data-testid": "page-header-title",
|
|
2346
2322
|
title: a.title
|
|
2347
|
-
}, Y(a.title), 9,
|
|
2348
|
-
|
|
2349
|
-
C(
|
|
2350
|
-
])) :
|
|
2323
|
+
}, Y(a.title), 9, io),
|
|
2324
|
+
u.$slots["title-after"] ? (p(), T("div", oo, [
|
|
2325
|
+
C(u.$slots, "title-after", {}, void 0, !0)
|
|
2326
|
+
])) : O("", !0)
|
|
2351
2327
|
]),
|
|
2352
|
-
|
|
2353
|
-
C(
|
|
2354
|
-
])) :
|
|
2328
|
+
u.$slots.actions ? (p(), T("div", so, [
|
|
2329
|
+
C(u.$slots, "actions", {}, void 0, !0)
|
|
2330
|
+
])) : O("", !0)
|
|
2355
2331
|
]),
|
|
2356
|
-
|
|
2357
|
-
C(
|
|
2358
|
-
])) :
|
|
2332
|
+
u.$slots.below ? (p(), T("div", lo, [
|
|
2333
|
+
C(u.$slots, "below", {}, void 0, !0)
|
|
2334
|
+
])) : O("", !0)
|
|
2359
2335
|
]);
|
|
2360
2336
|
};
|
|
2361
2337
|
}
|
|
2362
|
-
}),
|
|
2338
|
+
}), ko = /* @__PURE__ */ ie(co, [["__scopeId", "data-v-204b7f98"]]), uo = { class: "app-page-info-section-default-header" }, fo = {
|
|
2363
2339
|
key: 1,
|
|
2364
2340
|
class: "app-page-info-section-description",
|
|
2365
2341
|
"data-testid": "app-page-info-section-description"
|
|
2366
|
-
},
|
|
2342
|
+
}, vo = {
|
|
2367
2343
|
key: 0,
|
|
2368
2344
|
class: "app-page-info-section-content",
|
|
2369
2345
|
"data-testid": "app-page-info-section-content"
|
|
2370
|
-
},
|
|
2346
|
+
}, bo = /* @__PURE__ */ re({
|
|
2371
2347
|
__name: "AppPageInfoSection",
|
|
2372
2348
|
props: {
|
|
2373
2349
|
collapsible: {
|
|
@@ -2389,62 +2365,62 @@ const Ni = /* @__PURE__ */ Ai(Fi), Di = {
|
|
|
2389
2365
|
}
|
|
2390
2366
|
},
|
|
2391
2367
|
setup(a) {
|
|
2392
|
-
return (t, r) => (p(),
|
|
2368
|
+
return (t, r) => (p(), K(Ee(a.collapsible ? "details" : "div"), {
|
|
2393
2369
|
class: "app-page-info-section",
|
|
2394
2370
|
"data-testid": "app-page-info-section"
|
|
2395
2371
|
}, {
|
|
2396
|
-
default:
|
|
2397
|
-
(p(),
|
|
2372
|
+
default: B(() => [
|
|
2373
|
+
(p(), K(Ee(a.collapsible ? "summary" : "div"), {
|
|
2398
2374
|
class: "app-page-info-section-header",
|
|
2399
2375
|
"data-testid": "app-page-info-section-header"
|
|
2400
2376
|
}, {
|
|
2401
|
-
default:
|
|
2377
|
+
default: B(() => [
|
|
2402
2378
|
C(t.$slots, "header", {}, () => [
|
|
2403
|
-
E("div",
|
|
2404
|
-
a.title ? (p(),
|
|
2379
|
+
E("div", uo, [
|
|
2380
|
+
a.title ? (p(), K(Ee(a.titleTag), {
|
|
2405
2381
|
key: 0,
|
|
2406
2382
|
class: "app-page-info-section-title",
|
|
2407
2383
|
"data-testid": "app-page-info-section-title"
|
|
2408
2384
|
}, {
|
|
2409
|
-
default:
|
|
2410
|
-
|
|
2385
|
+
default: B(() => [
|
|
2386
|
+
Be(Y(a.title), 1)
|
|
2411
2387
|
]),
|
|
2412
2388
|
_: 1
|
|
2413
|
-
})) :
|
|
2414
|
-
a.description ? (p(),
|
|
2389
|
+
})) : O("", !0),
|
|
2390
|
+
a.description ? (p(), T("div", fo, Y(a.description), 1)) : O("", !0)
|
|
2415
2391
|
])
|
|
2416
2392
|
]),
|
|
2417
|
-
a.collapsible ? (p(),
|
|
2393
|
+
a.collapsible ? (p(), K(ve(ta), {
|
|
2418
2394
|
key: 0,
|
|
2419
2395
|
class: "app-page-info-section-chevron-icon",
|
|
2420
2396
|
decorative: ""
|
|
2421
|
-
})) : t.$slots.actions ? C(t.$slots, "actions", { key: 1 }) :
|
|
2397
|
+
})) : t.$slots.actions ? C(t.$slots, "actions", { key: 1 }) : O("", !0)
|
|
2422
2398
|
]),
|
|
2423
2399
|
_: 3
|
|
2424
2400
|
})),
|
|
2425
|
-
t.$slots.default ? (p(),
|
|
2401
|
+
t.$slots.default ? (p(), T("div", vo, [
|
|
2426
2402
|
C(t.$slots, "default")
|
|
2427
|
-
])) :
|
|
2403
|
+
])) : O("", !0)
|
|
2428
2404
|
]),
|
|
2429
2405
|
_: 3
|
|
2430
2406
|
}));
|
|
2431
2407
|
}
|
|
2432
|
-
}),
|
|
2408
|
+
}), To = /* @__PURE__ */ ie(bo, [["__scopeId", "data-v-62f17e32"]]), _o = {
|
|
2433
2409
|
// Customize Vue plugin options as desired
|
|
2434
2410
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2435
2411
|
install: (a, t = {}) => {
|
|
2436
|
-
a.component(t.name || "AppLayout",
|
|
2412
|
+
a.component(t.name || "AppLayout", Ji);
|
|
2437
2413
|
}
|
|
2438
2414
|
};
|
|
2439
2415
|
export {
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2416
|
+
go as AccountDropdown,
|
|
2417
|
+
yo as AppAboutSection,
|
|
2418
|
+
wo as AppError,
|
|
2419
|
+
Ji as AppLayout,
|
|
2444
2420
|
hr as AppNavbar,
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2421
|
+
ko as AppPageHeader,
|
|
2422
|
+
To as AppPageInfoSection,
|
|
2423
|
+
Zi as AppSidebar,
|
|
2424
|
+
zi as SidebarToggle,
|
|
2425
|
+
_o as default
|
|
2450
2426
|
};
|