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