@prefabs.tech/vue3-layout 0.31.0 → 0.33.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/README.md +31 -32
- package/dist/PrefabsTechVue3Layout.es.js +1595 -18
- package/dist/PrefabsTechVue3Layout.umd.js +1 -1
- package/dist/src/Layout.vue.d.ts +8 -5
- package/dist/src/Layout.vue.d.ts.map +1 -1
- package/dist/src/components/AppFooter.vue.d.ts +9 -6
- package/dist/src/components/AppFooter.vue.d.ts.map +1 -1
- package/dist/src/components/AppHeader.vue.d.ts +15 -9
- package/dist/src/components/AppHeader.vue.d.ts.map +1 -1
- package/dist/src/components/Copyright.vue.d.ts +3 -2
- package/dist/src/components/Copyright.vue.d.ts.map +1 -1
- package/dist/src/components/Logo.vue.d.ts +5 -4
- package/dist/src/components/Logo.vue.d.ts.map +1 -1
- package/dist/src/components/MainMenu.vue.d.ts +5 -4
- package/dist/src/components/MainMenu.vue.d.ts.map +1 -1
- package/dist/src/components/NavMenu.vue.d.ts +7 -4
- package/dist/src/components/NavMenu.vue.d.ts.map +1 -1
- package/dist/src/components/NavMenuItem.vue.d.ts +7 -6
- package/dist/src/components/NavMenuItem.vue.d.ts.map +1 -1
- package/dist/src/components/Sidebar.vue.d.ts +34 -12
- package/dist/src/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/src/components/StickyCollapsibleFooter.vue.d.ts +5 -4
- package/dist/src/components/StickyCollapsibleFooter.vue.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/layouts/BasicLayout.vue.d.ts +25 -14
- package/dist/src/layouts/BasicLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/NullLayout.vue.d.ts +2 -1
- package/dist/src/layouts/NullLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/SidebarHeaderLayout.vue.d.ts +26 -21
- package/dist/src/layouts/SidebarHeaderLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/SidebarOnlyLayout.vue.d.ts +20 -12
- package/dist/src/layouts/SidebarOnlyLayout.vue.d.ts.map +1 -1
- package/dist/src/types/config.d.ts +1 -1
- package/dist/src/types/config.d.ts.map +1 -1
- package/dist/src/types/menu.d.ts +3 -3
- package/dist/src/types/menu.d.ts.map +1 -1
- package/dist/vue3-layout.css +2 -1
- package/package.json +36 -29
- package/dist/NavMenuItem-faWUzlfY.js +0 -4
- package/dist/index-DwdGhXMf.js +0 -1941
package/dist/index-DwdGhXMf.js
DELETED
|
@@ -1,1941 +0,0 @@
|
|
|
1
|
-
import { useI18n as Ke, LocaleSwitcher as ie, prependMessages as Ye } from "@prefabs.tech/vue3-i18n";
|
|
2
|
-
import { defineComponent as x, computed as C, openBlock as h, createElementBlock as v, createTextVNode as he, toDisplayString as T, unref as b, createElementVNode as S, renderSlot as d, createBlock as I, createCommentVNode as k, h as pe, resolveComponent as _e, createVNode as N, withCtx as $, ref as j, onMounted as Me, onUnmounted as Ae, normalizeClass as R, Transition as Je, Fragment as Ne, renderList as le, useSlots as Te, defineAsyncComponent as Xe, shallowRef as et, markRaw as tt, watch as nt, resolveDynamicComponent as ot, createSlots as G, withDirectives as st, vShow as rt, inject as it } from "vue";
|
|
3
|
-
import { useConfig as q } from "@prefabs.tech/vue3-config";
|
|
4
|
-
import { useWindowSize as je } from "@vueuse/core";
|
|
5
|
-
import { ResponsiveMenu as lt } from "@prefabs.tech/vue3-ui";
|
|
6
|
-
import { useRoute as ae, useRouter as Fe } from "vue-router";
|
|
7
|
-
const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
8
|
-
name: "Copyright"
|
|
9
|
-
}, ft = /* @__PURE__ */ x({
|
|
10
|
-
...ut,
|
|
11
|
-
props: {
|
|
12
|
-
holder: {
|
|
13
|
-
required: !0,
|
|
14
|
-
type: String
|
|
15
|
-
},
|
|
16
|
-
showDisclaimer: Boolean,
|
|
17
|
-
url: {
|
|
18
|
-
required: !0,
|
|
19
|
-
type: String
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(e) {
|
|
23
|
-
const n = e, t = io(), { t: s } = Ke({ messages: t }), o = C(() => n.showDisclaimer ? s("copyright.disclaimer") : null), r = (/* @__PURE__ */ new Date()).getFullYear();
|
|
24
|
-
return (i, l) => (h(), v("div", at, [
|
|
25
|
-
he(" © " + T(b(r)) + " ", 1),
|
|
26
|
-
S("a", {
|
|
27
|
-
href: e.url,
|
|
28
|
-
target: "_blank"
|
|
29
|
-
}, T(e.holder), 9, ct),
|
|
30
|
-
he(" " + T(o.value), 1)
|
|
31
|
-
]));
|
|
32
|
-
}
|
|
33
|
-
}), dt = { class: "version" }, ht = {
|
|
34
|
-
name: "AppFooter"
|
|
35
|
-
}, ce = /* @__PURE__ */ x({
|
|
36
|
-
...ht,
|
|
37
|
-
setup(e) {
|
|
38
|
-
const n = q();
|
|
39
|
-
return (t, s) => (h(), v("footer", null, [
|
|
40
|
-
d(t.$slots, "copyright", {}, () => [
|
|
41
|
-
b(n)?.copyright ? (h(), I(ft, {
|
|
42
|
-
key: 0,
|
|
43
|
-
holder: b(n).copyright.holder,
|
|
44
|
-
url: b(n).copyright.url
|
|
45
|
-
}, null, 8, ["holder", "url"])) : k("", !0)
|
|
46
|
-
]),
|
|
47
|
-
d(t.$slots, "social"),
|
|
48
|
-
d(t.$slots, "version", {}, () => [
|
|
49
|
-
S("div", dt, T(b(n).appVersion), 1)
|
|
50
|
-
])
|
|
51
|
-
]));
|
|
52
|
-
}
|
|
53
|
-
}), Pe = /^[a-z0-9]+(-[a-z0-9]+)*$/, K = (e, n, t, s = "") => {
|
|
54
|
-
const o = e.split(":");
|
|
55
|
-
if (e.slice(0, 1) === "@") {
|
|
56
|
-
if (o.length < 2 || o.length > 3)
|
|
57
|
-
return null;
|
|
58
|
-
s = o.shift().slice(1);
|
|
59
|
-
}
|
|
60
|
-
if (o.length > 3 || !o.length)
|
|
61
|
-
return null;
|
|
62
|
-
if (o.length > 1) {
|
|
63
|
-
const l = o.pop(), a = o.pop(), c = {
|
|
64
|
-
// Allow provider without '@': "provider:prefix:name"
|
|
65
|
-
provider: o.length > 0 ? o[0] : s,
|
|
66
|
-
prefix: a,
|
|
67
|
-
name: l
|
|
68
|
-
};
|
|
69
|
-
return n && !U(c) ? null : c;
|
|
70
|
-
}
|
|
71
|
-
const r = o[0], i = r.split("-");
|
|
72
|
-
if (i.length > 1) {
|
|
73
|
-
const l = {
|
|
74
|
-
provider: s,
|
|
75
|
-
prefix: i.shift(),
|
|
76
|
-
name: i.join("-")
|
|
77
|
-
};
|
|
78
|
-
return n && !U(l) ? null : l;
|
|
79
|
-
}
|
|
80
|
-
if (t && s === "") {
|
|
81
|
-
const l = {
|
|
82
|
-
provider: s,
|
|
83
|
-
prefix: "",
|
|
84
|
-
name: r
|
|
85
|
-
};
|
|
86
|
-
return n && !U(l, t) ? null : l;
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}, U = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
90
|
-
// Check name: cannot be empty
|
|
91
|
-
((n && e.prefix === "" || e.prefix) && e.name) : !1, Ee = Object.freeze(
|
|
92
|
-
{
|
|
93
|
-
left: 0,
|
|
94
|
-
top: 0,
|
|
95
|
-
width: 16,
|
|
96
|
-
height: 16
|
|
97
|
-
}
|
|
98
|
-
), Z = Object.freeze({
|
|
99
|
-
rotate: 0,
|
|
100
|
-
vFlip: !1,
|
|
101
|
-
hFlip: !1
|
|
102
|
-
}), Y = Object.freeze({
|
|
103
|
-
...Ee,
|
|
104
|
-
...Z
|
|
105
|
-
}), te = Object.freeze({
|
|
106
|
-
...Y,
|
|
107
|
-
body: "",
|
|
108
|
-
hidden: !1
|
|
109
|
-
});
|
|
110
|
-
function pt(e, n) {
|
|
111
|
-
const t = {};
|
|
112
|
-
!e.hFlip != !n.hFlip && (t.hFlip = !0), !e.vFlip != !n.vFlip && (t.vFlip = !0);
|
|
113
|
-
const s = ((e.rotate || 0) + (n.rotate || 0)) % 4;
|
|
114
|
-
return s && (t.rotate = s), t;
|
|
115
|
-
}
|
|
116
|
-
function me(e, n) {
|
|
117
|
-
const t = pt(e, n);
|
|
118
|
-
for (const s in te)
|
|
119
|
-
s in Z ? s in e && !(s in t) && (t[s] = Z[s]) : s in n ? t[s] = n[s] : s in e && (t[s] = e[s]);
|
|
120
|
-
return t;
|
|
121
|
-
}
|
|
122
|
-
function mt(e, n) {
|
|
123
|
-
const t = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
124
|
-
function r(i) {
|
|
125
|
-
if (t[i])
|
|
126
|
-
return o[i] = [];
|
|
127
|
-
if (!(i in o)) {
|
|
128
|
-
o[i] = null;
|
|
129
|
-
const l = s[i] && s[i].parent, a = l && r(l);
|
|
130
|
-
a && (o[i] = [l].concat(a));
|
|
131
|
-
}
|
|
132
|
-
return o[i];
|
|
133
|
-
}
|
|
134
|
-
return Object.keys(t).concat(Object.keys(s)).forEach(r), o;
|
|
135
|
-
}
|
|
136
|
-
function gt(e, n, t) {
|
|
137
|
-
const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
138
|
-
let r = {};
|
|
139
|
-
function i(l) {
|
|
140
|
-
r = me(
|
|
141
|
-
s[l] || o[l],
|
|
142
|
-
r
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
return i(n), t.forEach(i), me(e, r);
|
|
146
|
-
}
|
|
147
|
-
function Re(e, n) {
|
|
148
|
-
const t = [];
|
|
149
|
-
if (typeof e != "object" || typeof e.icons != "object")
|
|
150
|
-
return t;
|
|
151
|
-
e.not_found instanceof Array && e.not_found.forEach((o) => {
|
|
152
|
-
n(o, null), t.push(o);
|
|
153
|
-
});
|
|
154
|
-
const s = mt(e);
|
|
155
|
-
for (const o in s) {
|
|
156
|
-
const r = s[o];
|
|
157
|
-
r && (n(o, gt(e, o, r)), t.push(o));
|
|
158
|
-
}
|
|
159
|
-
return t;
|
|
160
|
-
}
|
|
161
|
-
const vt = {
|
|
162
|
-
provider: "",
|
|
163
|
-
aliases: {},
|
|
164
|
-
not_found: {},
|
|
165
|
-
...Ee
|
|
166
|
-
};
|
|
167
|
-
function X(e, n) {
|
|
168
|
-
for (const t in n)
|
|
169
|
-
if (t in e && typeof e[t] != typeof n[t])
|
|
170
|
-
return !1;
|
|
171
|
-
return !0;
|
|
172
|
-
}
|
|
173
|
-
function Be(e) {
|
|
174
|
-
if (typeof e != "object" || e === null)
|
|
175
|
-
return null;
|
|
176
|
-
const n = e;
|
|
177
|
-
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !X(e, vt))
|
|
178
|
-
return null;
|
|
179
|
-
const t = n.icons;
|
|
180
|
-
for (const o in t) {
|
|
181
|
-
const r = t[o];
|
|
182
|
-
if (
|
|
183
|
-
// Name cannot be empty
|
|
184
|
-
!o || // Must have body
|
|
185
|
-
typeof r.body != "string" || // Check other props
|
|
186
|
-
!X(
|
|
187
|
-
r,
|
|
188
|
-
te
|
|
189
|
-
)
|
|
190
|
-
)
|
|
191
|
-
return null;
|
|
192
|
-
}
|
|
193
|
-
const s = n.aliases || /* @__PURE__ */ Object.create(null);
|
|
194
|
-
for (const o in s) {
|
|
195
|
-
const r = s[o], i = r.parent;
|
|
196
|
-
if (
|
|
197
|
-
// Name cannot be empty
|
|
198
|
-
!o || // Parent must be set and point to existing icon
|
|
199
|
-
typeof i != "string" || !t[i] && !s[i] || // Check other props
|
|
200
|
-
!X(
|
|
201
|
-
r,
|
|
202
|
-
te
|
|
203
|
-
)
|
|
204
|
-
)
|
|
205
|
-
return null;
|
|
206
|
-
}
|
|
207
|
-
return n;
|
|
208
|
-
}
|
|
209
|
-
const ge = /* @__PURE__ */ Object.create(null);
|
|
210
|
-
function yt(e, n) {
|
|
211
|
-
return {
|
|
212
|
-
provider: e,
|
|
213
|
-
prefix: n,
|
|
214
|
-
icons: /* @__PURE__ */ Object.create(null),
|
|
215
|
-
missing: /* @__PURE__ */ new Set()
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
function B(e, n) {
|
|
219
|
-
const t = ge[e] || (ge[e] = /* @__PURE__ */ Object.create(null));
|
|
220
|
-
return t[n] || (t[n] = yt(e, n));
|
|
221
|
-
}
|
|
222
|
-
function Oe(e, n) {
|
|
223
|
-
return Be(n) ? Re(n, (t, s) => {
|
|
224
|
-
s ? e.icons[t] = s : e.missing.add(t);
|
|
225
|
-
}) : [];
|
|
226
|
-
}
|
|
227
|
-
function bt(e, n, t) {
|
|
228
|
-
try {
|
|
229
|
-
if (typeof t.body == "string")
|
|
230
|
-
return e.icons[n] = { ...t }, !0;
|
|
231
|
-
} catch {
|
|
232
|
-
}
|
|
233
|
-
return !1;
|
|
234
|
-
}
|
|
235
|
-
let D = !1;
|
|
236
|
-
function He(e) {
|
|
237
|
-
return typeof e == "boolean" && (D = e), D;
|
|
238
|
-
}
|
|
239
|
-
function wt(e) {
|
|
240
|
-
const n = typeof e == "string" ? K(e, !0, D) : e;
|
|
241
|
-
if (n) {
|
|
242
|
-
const t = B(n.provider, n.prefix), s = n.name;
|
|
243
|
-
return t.icons[s] || (t.missing.has(s) ? null : void 0);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
function $t(e, n) {
|
|
247
|
-
const t = K(e, !0, D);
|
|
248
|
-
if (!t)
|
|
249
|
-
return !1;
|
|
250
|
-
const s = B(t.provider, t.prefix);
|
|
251
|
-
return n ? bt(s, t.name, n) : (s.missing.add(t.name), !0);
|
|
252
|
-
}
|
|
253
|
-
function kt(e, n) {
|
|
254
|
-
if (typeof e != "object")
|
|
255
|
-
return !1;
|
|
256
|
-
if (typeof n != "string" && (n = e.provider || ""), D && !n && !e.prefix) {
|
|
257
|
-
let o = !1;
|
|
258
|
-
return Be(e) && (e.prefix = "", Re(e, (r, i) => {
|
|
259
|
-
$t(r, i) && (o = !0);
|
|
260
|
-
})), o;
|
|
261
|
-
}
|
|
262
|
-
const t = e.prefix;
|
|
263
|
-
if (!U({
|
|
264
|
-
prefix: t,
|
|
265
|
-
name: "a"
|
|
266
|
-
}))
|
|
267
|
-
return !1;
|
|
268
|
-
const s = B(n, t);
|
|
269
|
-
return !!Oe(s, e);
|
|
270
|
-
}
|
|
271
|
-
const ze = Object.freeze({
|
|
272
|
-
width: null,
|
|
273
|
-
height: null
|
|
274
|
-
}), De = Object.freeze({
|
|
275
|
-
// Dimensions
|
|
276
|
-
...ze,
|
|
277
|
-
// Transformations
|
|
278
|
-
...Z
|
|
279
|
-
}), St = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Lt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
280
|
-
function ve(e, n, t) {
|
|
281
|
-
if (n === 1)
|
|
282
|
-
return e;
|
|
283
|
-
if (t = t || 100, typeof e == "number")
|
|
284
|
-
return Math.ceil(e * n * t) / t;
|
|
285
|
-
if (typeof e != "string")
|
|
286
|
-
return e;
|
|
287
|
-
const s = e.split(St);
|
|
288
|
-
if (s === null || !s.length)
|
|
289
|
-
return e;
|
|
290
|
-
const o = [];
|
|
291
|
-
let r = s.shift(), i = Lt.test(r);
|
|
292
|
-
for (; ; ) {
|
|
293
|
-
if (i) {
|
|
294
|
-
const l = parseFloat(r);
|
|
295
|
-
isNaN(l) ? o.push(r) : o.push(Math.ceil(l * n * t) / t);
|
|
296
|
-
} else
|
|
297
|
-
o.push(r);
|
|
298
|
-
if (r = s.shift(), r === void 0)
|
|
299
|
-
return o.join("");
|
|
300
|
-
i = !i;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
function xt(e, n = "defs") {
|
|
304
|
-
let t = "";
|
|
305
|
-
const s = e.indexOf("<" + n);
|
|
306
|
-
for (; s >= 0; ) {
|
|
307
|
-
const o = e.indexOf(">", s), r = e.indexOf("</" + n);
|
|
308
|
-
if (o === -1 || r === -1)
|
|
309
|
-
break;
|
|
310
|
-
const i = e.indexOf(">", r);
|
|
311
|
-
if (i === -1)
|
|
312
|
-
break;
|
|
313
|
-
t += e.slice(o + 1, r).trim(), e = e.slice(0, s).trim() + e.slice(i + 1);
|
|
314
|
-
}
|
|
315
|
-
return {
|
|
316
|
-
defs: t,
|
|
317
|
-
content: e
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function It(e, n) {
|
|
321
|
-
return e ? "<defs>" + e + "</defs>" + n : n;
|
|
322
|
-
}
|
|
323
|
-
function Ct(e, n, t) {
|
|
324
|
-
const s = xt(e);
|
|
325
|
-
return It(s.defs, n + s.content + t);
|
|
326
|
-
}
|
|
327
|
-
const _t = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
328
|
-
function Mt(e, n) {
|
|
329
|
-
const t = {
|
|
330
|
-
...Y,
|
|
331
|
-
...e
|
|
332
|
-
}, s = {
|
|
333
|
-
...De,
|
|
334
|
-
...n
|
|
335
|
-
}, o = {
|
|
336
|
-
left: t.left,
|
|
337
|
-
top: t.top,
|
|
338
|
-
width: t.width,
|
|
339
|
-
height: t.height
|
|
340
|
-
};
|
|
341
|
-
let r = t.body;
|
|
342
|
-
[t, s].forEach((w) => {
|
|
343
|
-
const p = [], F = w.hFlip, P = w.vFlip;
|
|
344
|
-
let A = w.rotate;
|
|
345
|
-
F ? P ? A += 2 : (p.push(
|
|
346
|
-
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
347
|
-
), p.push("scale(-1 1)"), o.top = o.left = 0) : P && (p.push(
|
|
348
|
-
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
349
|
-
), p.push("scale(1 -1)"), o.top = o.left = 0);
|
|
350
|
-
let _;
|
|
351
|
-
switch (A < 0 && (A -= Math.floor(A / 4) * 4), A = A % 4, A) {
|
|
352
|
-
case 1:
|
|
353
|
-
_ = o.height / 2 + o.top, p.unshift(
|
|
354
|
-
"rotate(90 " + _.toString() + " " + _.toString() + ")"
|
|
355
|
-
);
|
|
356
|
-
break;
|
|
357
|
-
case 2:
|
|
358
|
-
p.unshift(
|
|
359
|
-
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
360
|
-
);
|
|
361
|
-
break;
|
|
362
|
-
case 3:
|
|
363
|
-
_ = o.width / 2 + o.left, p.unshift(
|
|
364
|
-
"rotate(-90 " + _.toString() + " " + _.toString() + ")"
|
|
365
|
-
);
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
A % 2 === 1 && (o.left !== o.top && (_ = o.left, o.left = o.top, o.top = _), o.width !== o.height && (_ = o.width, o.width = o.height, o.height = _)), p.length && (r = Ct(
|
|
369
|
-
r,
|
|
370
|
-
'<g transform="' + p.join(" ") + '">',
|
|
371
|
-
"</g>"
|
|
372
|
-
));
|
|
373
|
-
});
|
|
374
|
-
const i = s.width, l = s.height, a = o.width, c = o.height;
|
|
375
|
-
let f, g;
|
|
376
|
-
i === null ? (g = l === null ? "1em" : l === "auto" ? c : l, f = ve(g, a / c)) : (f = i === "auto" ? a : i, g = l === null ? ve(f, c / a) : l === "auto" ? c : l);
|
|
377
|
-
const u = {}, m = (w, p) => {
|
|
378
|
-
_t(p) || (u[w] = p.toString());
|
|
379
|
-
};
|
|
380
|
-
m("width", f), m("height", g);
|
|
381
|
-
const L = [o.left, o.top, a, c];
|
|
382
|
-
return u.viewBox = L.join(" "), {
|
|
383
|
-
attributes: u,
|
|
384
|
-
viewBox: L,
|
|
385
|
-
body: r
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
const At = /\sid="(\S+)"/g, Nt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
389
|
-
let Tt = 0;
|
|
390
|
-
function jt(e, n = Nt) {
|
|
391
|
-
const t = [];
|
|
392
|
-
let s;
|
|
393
|
-
for (; s = At.exec(e); )
|
|
394
|
-
t.push(s[1]);
|
|
395
|
-
if (!t.length)
|
|
396
|
-
return e;
|
|
397
|
-
const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
398
|
-
return t.forEach((r) => {
|
|
399
|
-
const i = typeof n == "function" ? n(r) : n + (Tt++).toString(), l = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
400
|
-
e = e.replace(
|
|
401
|
-
// Allowed characters before id: [#;"]
|
|
402
|
-
// Allowed characters after id: [)"], .[a-z]
|
|
403
|
-
new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"),
|
|
404
|
-
"$1" + i + o + "$3"
|
|
405
|
-
);
|
|
406
|
-
}), e = e.replace(new RegExp(o, "g"), ""), e;
|
|
407
|
-
}
|
|
408
|
-
const ne = /* @__PURE__ */ Object.create(null);
|
|
409
|
-
function Ft(e, n) {
|
|
410
|
-
ne[e] = n;
|
|
411
|
-
}
|
|
412
|
-
function oe(e) {
|
|
413
|
-
return ne[e] || ne[""];
|
|
414
|
-
}
|
|
415
|
-
function ue(e) {
|
|
416
|
-
let n;
|
|
417
|
-
if (typeof e.resources == "string")
|
|
418
|
-
n = [e.resources];
|
|
419
|
-
else if (n = e.resources, !(n instanceof Array) || !n.length)
|
|
420
|
-
return null;
|
|
421
|
-
return {
|
|
422
|
-
// API hosts
|
|
423
|
-
resources: n,
|
|
424
|
-
// Root path
|
|
425
|
-
path: e.path || "/",
|
|
426
|
-
// URL length limit
|
|
427
|
-
maxURL: e.maxURL || 500,
|
|
428
|
-
// Timeout before next host is used.
|
|
429
|
-
rotate: e.rotate || 750,
|
|
430
|
-
// Timeout before failing query.
|
|
431
|
-
timeout: e.timeout || 5e3,
|
|
432
|
-
// Randomise default API end point.
|
|
433
|
-
random: e.random === !0,
|
|
434
|
-
// Start index
|
|
435
|
-
index: e.index || 0,
|
|
436
|
-
// Receive data after time out (used if time out kicks in first, then API module sends data anyway).
|
|
437
|
-
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
const fe = /* @__PURE__ */ Object.create(null), H = [
|
|
441
|
-
"https://api.simplesvg.com",
|
|
442
|
-
"https://api.unisvg.com"
|
|
443
|
-
], Q = [];
|
|
444
|
-
for (; H.length > 0; )
|
|
445
|
-
H.length === 1 || Math.random() > 0.5 ? Q.push(H.shift()) : Q.push(H.pop());
|
|
446
|
-
fe[""] = ue({
|
|
447
|
-
resources: ["https://api.iconify.design"].concat(Q)
|
|
448
|
-
});
|
|
449
|
-
function Pt(e, n) {
|
|
450
|
-
const t = ue(n);
|
|
451
|
-
return t === null ? !1 : (fe[e] = t, !0);
|
|
452
|
-
}
|
|
453
|
-
function de(e) {
|
|
454
|
-
return fe[e];
|
|
455
|
-
}
|
|
456
|
-
const Et = () => {
|
|
457
|
-
let e;
|
|
458
|
-
try {
|
|
459
|
-
if (e = fetch, typeof e == "function")
|
|
460
|
-
return e;
|
|
461
|
-
} catch {
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
let ye = Et();
|
|
465
|
-
function Rt(e, n) {
|
|
466
|
-
const t = de(e);
|
|
467
|
-
if (!t)
|
|
468
|
-
return 0;
|
|
469
|
-
let s;
|
|
470
|
-
if (!t.maxURL)
|
|
471
|
-
s = 0;
|
|
472
|
-
else {
|
|
473
|
-
let o = 0;
|
|
474
|
-
t.resources.forEach((i) => {
|
|
475
|
-
o = Math.max(o, i.length);
|
|
476
|
-
});
|
|
477
|
-
const r = n + ".json?icons=";
|
|
478
|
-
s = t.maxURL - o - t.path.length - r.length;
|
|
479
|
-
}
|
|
480
|
-
return s;
|
|
481
|
-
}
|
|
482
|
-
function Bt(e) {
|
|
483
|
-
return e === 404;
|
|
484
|
-
}
|
|
485
|
-
const Ot = (e, n, t) => {
|
|
486
|
-
const s = [], o = Rt(e, n), r = "icons";
|
|
487
|
-
let i = {
|
|
488
|
-
type: r,
|
|
489
|
-
provider: e,
|
|
490
|
-
prefix: n,
|
|
491
|
-
icons: []
|
|
492
|
-
}, l = 0;
|
|
493
|
-
return t.forEach((a, c) => {
|
|
494
|
-
l += a.length + 1, l >= o && c > 0 && (s.push(i), i = {
|
|
495
|
-
type: r,
|
|
496
|
-
provider: e,
|
|
497
|
-
prefix: n,
|
|
498
|
-
icons: []
|
|
499
|
-
}, l = a.length), i.icons.push(a);
|
|
500
|
-
}), s.push(i), s;
|
|
501
|
-
};
|
|
502
|
-
function Ht(e) {
|
|
503
|
-
if (typeof e == "string") {
|
|
504
|
-
const n = de(e);
|
|
505
|
-
if (n)
|
|
506
|
-
return n.path;
|
|
507
|
-
}
|
|
508
|
-
return "/";
|
|
509
|
-
}
|
|
510
|
-
const zt = (e, n, t) => {
|
|
511
|
-
if (!ye) {
|
|
512
|
-
t("abort", 424);
|
|
513
|
-
return;
|
|
514
|
-
}
|
|
515
|
-
let s = Ht(n.provider);
|
|
516
|
-
switch (n.type) {
|
|
517
|
-
case "icons": {
|
|
518
|
-
const r = n.prefix, l = n.icons.join(","), a = new URLSearchParams({
|
|
519
|
-
icons: l
|
|
520
|
-
});
|
|
521
|
-
s += r + ".json?" + a.toString();
|
|
522
|
-
break;
|
|
523
|
-
}
|
|
524
|
-
case "custom": {
|
|
525
|
-
const r = n.uri;
|
|
526
|
-
s += r.slice(0, 1) === "/" ? r.slice(1) : r;
|
|
527
|
-
break;
|
|
528
|
-
}
|
|
529
|
-
default:
|
|
530
|
-
t("abort", 400);
|
|
531
|
-
return;
|
|
532
|
-
}
|
|
533
|
-
let o = 503;
|
|
534
|
-
ye(e + s).then((r) => {
|
|
535
|
-
const i = r.status;
|
|
536
|
-
if (i !== 200) {
|
|
537
|
-
setTimeout(() => {
|
|
538
|
-
t(Bt(i) ? "abort" : "next", i);
|
|
539
|
-
});
|
|
540
|
-
return;
|
|
541
|
-
}
|
|
542
|
-
return o = 501, r.json();
|
|
543
|
-
}).then((r) => {
|
|
544
|
-
if (typeof r != "object" || r === null) {
|
|
545
|
-
setTimeout(() => {
|
|
546
|
-
r === 404 ? t("abort", r) : t("next", o);
|
|
547
|
-
});
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
setTimeout(() => {
|
|
551
|
-
t("success", r);
|
|
552
|
-
});
|
|
553
|
-
}).catch(() => {
|
|
554
|
-
t("next", o);
|
|
555
|
-
});
|
|
556
|
-
}, Dt = {
|
|
557
|
-
prepare: Ot,
|
|
558
|
-
send: zt
|
|
559
|
-
};
|
|
560
|
-
function qt(e) {
|
|
561
|
-
const n = {
|
|
562
|
-
loaded: [],
|
|
563
|
-
missing: [],
|
|
564
|
-
pending: []
|
|
565
|
-
}, t = /* @__PURE__ */ Object.create(null);
|
|
566
|
-
e.sort((o, r) => o.provider !== r.provider ? o.provider.localeCompare(r.provider) : o.prefix !== r.prefix ? o.prefix.localeCompare(r.prefix) : o.name.localeCompare(r.name));
|
|
567
|
-
let s = {
|
|
568
|
-
provider: "",
|
|
569
|
-
prefix: "",
|
|
570
|
-
name: ""
|
|
571
|
-
};
|
|
572
|
-
return e.forEach((o) => {
|
|
573
|
-
if (s.name === o.name && s.prefix === o.prefix && s.provider === o.provider)
|
|
574
|
-
return;
|
|
575
|
-
s = o;
|
|
576
|
-
const r = o.provider, i = o.prefix, l = o.name, a = t[r] || (t[r] = /* @__PURE__ */ Object.create(null)), c = a[i] || (a[i] = B(r, i));
|
|
577
|
-
let f;
|
|
578
|
-
l in c.icons ? f = n.loaded : i === "" || c.missing.has(l) ? f = n.missing : f = n.pending;
|
|
579
|
-
const g = {
|
|
580
|
-
provider: r,
|
|
581
|
-
prefix: i,
|
|
582
|
-
name: l
|
|
583
|
-
};
|
|
584
|
-
f.push(g);
|
|
585
|
-
}), n;
|
|
586
|
-
}
|
|
587
|
-
function qe(e, n) {
|
|
588
|
-
e.forEach((t) => {
|
|
589
|
-
const s = t.loaderCallbacks;
|
|
590
|
-
s && (t.loaderCallbacks = s.filter((o) => o.id !== n));
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
function Vt(e) {
|
|
594
|
-
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
595
|
-
e.pendingCallbacksFlag = !1;
|
|
596
|
-
const n = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
597
|
-
if (!n.length)
|
|
598
|
-
return;
|
|
599
|
-
let t = !1;
|
|
600
|
-
const s = e.provider, o = e.prefix;
|
|
601
|
-
n.forEach((r) => {
|
|
602
|
-
const i = r.icons, l = i.pending.length;
|
|
603
|
-
i.pending = i.pending.filter((a) => {
|
|
604
|
-
if (a.prefix !== o)
|
|
605
|
-
return !0;
|
|
606
|
-
const c = a.name;
|
|
607
|
-
if (e.icons[c])
|
|
608
|
-
i.loaded.push({
|
|
609
|
-
provider: s,
|
|
610
|
-
prefix: o,
|
|
611
|
-
name: c
|
|
612
|
-
});
|
|
613
|
-
else if (e.missing.has(c))
|
|
614
|
-
i.missing.push({
|
|
615
|
-
provider: s,
|
|
616
|
-
prefix: o,
|
|
617
|
-
name: c
|
|
618
|
-
});
|
|
619
|
-
else
|
|
620
|
-
return t = !0, !0;
|
|
621
|
-
return !1;
|
|
622
|
-
}), i.pending.length !== l && (t || qe([e], r.id), r.callback(
|
|
623
|
-
i.loaded.slice(0),
|
|
624
|
-
i.missing.slice(0),
|
|
625
|
-
i.pending.slice(0),
|
|
626
|
-
r.abort
|
|
627
|
-
));
|
|
628
|
-
});
|
|
629
|
-
}));
|
|
630
|
-
}
|
|
631
|
-
let Ut = 0;
|
|
632
|
-
function Qt(e, n, t) {
|
|
633
|
-
const s = Ut++, o = qe.bind(null, t, s);
|
|
634
|
-
if (!n.pending.length)
|
|
635
|
-
return o;
|
|
636
|
-
const r = {
|
|
637
|
-
id: s,
|
|
638
|
-
icons: n,
|
|
639
|
-
callback: e,
|
|
640
|
-
abort: o
|
|
641
|
-
};
|
|
642
|
-
return t.forEach((i) => {
|
|
643
|
-
(i.loaderCallbacks || (i.loaderCallbacks = [])).push(r);
|
|
644
|
-
}), o;
|
|
645
|
-
}
|
|
646
|
-
function Wt(e, n = !0, t = !1) {
|
|
647
|
-
const s = [];
|
|
648
|
-
return e.forEach((o) => {
|
|
649
|
-
const r = typeof o == "string" ? K(o, n, t) : o;
|
|
650
|
-
r && s.push(r);
|
|
651
|
-
}), s;
|
|
652
|
-
}
|
|
653
|
-
var Gt = {
|
|
654
|
-
resources: [],
|
|
655
|
-
index: 0,
|
|
656
|
-
timeout: 2e3,
|
|
657
|
-
rotate: 750,
|
|
658
|
-
random: !1,
|
|
659
|
-
dataAfterTimeout: !1
|
|
660
|
-
};
|
|
661
|
-
function Zt(e, n, t, s) {
|
|
662
|
-
const o = e.resources.length, r = e.random ? Math.floor(Math.random() * o) : e.index;
|
|
663
|
-
let i;
|
|
664
|
-
if (e.random) {
|
|
665
|
-
let y = e.resources.slice(0);
|
|
666
|
-
for (i = []; y.length > 1; ) {
|
|
667
|
-
const M = Math.floor(Math.random() * y.length);
|
|
668
|
-
i.push(y[M]), y = y.slice(0, M).concat(y.slice(M + 1));
|
|
669
|
-
}
|
|
670
|
-
i = i.concat(y);
|
|
671
|
-
} else
|
|
672
|
-
i = e.resources.slice(r).concat(e.resources.slice(0, r));
|
|
673
|
-
const l = Date.now();
|
|
674
|
-
let a = "pending", c = 0, f, g = null, u = [], m = [];
|
|
675
|
-
typeof s == "function" && m.push(s);
|
|
676
|
-
function L() {
|
|
677
|
-
g && (clearTimeout(g), g = null);
|
|
678
|
-
}
|
|
679
|
-
function w() {
|
|
680
|
-
a === "pending" && (a = "aborted"), L(), u.forEach((y) => {
|
|
681
|
-
y.status === "pending" && (y.status = "aborted");
|
|
682
|
-
}), u = [];
|
|
683
|
-
}
|
|
684
|
-
function p(y, M) {
|
|
685
|
-
M && (m = []), typeof y == "function" && m.push(y);
|
|
686
|
-
}
|
|
687
|
-
function F() {
|
|
688
|
-
return {
|
|
689
|
-
startTime: l,
|
|
690
|
-
payload: n,
|
|
691
|
-
status: a,
|
|
692
|
-
queriesSent: c,
|
|
693
|
-
queriesPending: u.length,
|
|
694
|
-
subscribe: p,
|
|
695
|
-
abort: w
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
function P() {
|
|
699
|
-
a = "failed", m.forEach((y) => {
|
|
700
|
-
y(void 0, f);
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
function A() {
|
|
704
|
-
u.forEach((y) => {
|
|
705
|
-
y.status === "pending" && (y.status = "aborted");
|
|
706
|
-
}), u = [];
|
|
707
|
-
}
|
|
708
|
-
function _(y, M, O) {
|
|
709
|
-
const V = M !== "success";
|
|
710
|
-
switch (u = u.filter((E) => E !== y), a) {
|
|
711
|
-
case "pending":
|
|
712
|
-
break;
|
|
713
|
-
case "failed":
|
|
714
|
-
if (V || !e.dataAfterTimeout)
|
|
715
|
-
return;
|
|
716
|
-
break;
|
|
717
|
-
default:
|
|
718
|
-
return;
|
|
719
|
-
}
|
|
720
|
-
if (M === "abort") {
|
|
721
|
-
f = O, P();
|
|
722
|
-
return;
|
|
723
|
-
}
|
|
724
|
-
if (V) {
|
|
725
|
-
f = O, u.length || (i.length ? J() : P());
|
|
726
|
-
return;
|
|
727
|
-
}
|
|
728
|
-
if (L(), A(), !e.random) {
|
|
729
|
-
const E = e.resources.indexOf(y.resource);
|
|
730
|
-
E !== -1 && E !== e.index && (e.index = E);
|
|
731
|
-
}
|
|
732
|
-
a = "completed", m.forEach((E) => {
|
|
733
|
-
E(O);
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
function J() {
|
|
737
|
-
if (a !== "pending")
|
|
738
|
-
return;
|
|
739
|
-
L();
|
|
740
|
-
const y = i.shift();
|
|
741
|
-
if (y === void 0) {
|
|
742
|
-
if (u.length) {
|
|
743
|
-
g = setTimeout(() => {
|
|
744
|
-
L(), a === "pending" && (A(), P());
|
|
745
|
-
}, e.timeout);
|
|
746
|
-
return;
|
|
747
|
-
}
|
|
748
|
-
P();
|
|
749
|
-
return;
|
|
750
|
-
}
|
|
751
|
-
const M = {
|
|
752
|
-
status: "pending",
|
|
753
|
-
resource: y,
|
|
754
|
-
callback: (O, V) => {
|
|
755
|
-
_(M, O, V);
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
u.push(M), c++, g = setTimeout(J, e.rotate), t(y, n, M.callback);
|
|
759
|
-
}
|
|
760
|
-
return setTimeout(J), F;
|
|
761
|
-
}
|
|
762
|
-
function Ve(e) {
|
|
763
|
-
const n = {
|
|
764
|
-
...Gt,
|
|
765
|
-
...e
|
|
766
|
-
};
|
|
767
|
-
let t = [];
|
|
768
|
-
function s() {
|
|
769
|
-
t = t.filter((l) => l().status === "pending");
|
|
770
|
-
}
|
|
771
|
-
function o(l, a, c) {
|
|
772
|
-
const f = Zt(
|
|
773
|
-
n,
|
|
774
|
-
l,
|
|
775
|
-
a,
|
|
776
|
-
(g, u) => {
|
|
777
|
-
s(), c && c(g, u);
|
|
778
|
-
}
|
|
779
|
-
);
|
|
780
|
-
return t.push(f), f;
|
|
781
|
-
}
|
|
782
|
-
function r(l) {
|
|
783
|
-
return t.find((a) => l(a)) || null;
|
|
784
|
-
}
|
|
785
|
-
return {
|
|
786
|
-
query: o,
|
|
787
|
-
find: r,
|
|
788
|
-
setIndex: (l) => {
|
|
789
|
-
n.index = l;
|
|
790
|
-
},
|
|
791
|
-
getIndex: () => n.index,
|
|
792
|
-
cleanup: s
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
function be() {
|
|
796
|
-
}
|
|
797
|
-
const ee = /* @__PURE__ */ Object.create(null);
|
|
798
|
-
function Kt(e) {
|
|
799
|
-
if (!ee[e]) {
|
|
800
|
-
const n = de(e);
|
|
801
|
-
if (!n)
|
|
802
|
-
return;
|
|
803
|
-
const t = Ve(n), s = {
|
|
804
|
-
config: n,
|
|
805
|
-
redundancy: t
|
|
806
|
-
};
|
|
807
|
-
ee[e] = s;
|
|
808
|
-
}
|
|
809
|
-
return ee[e];
|
|
810
|
-
}
|
|
811
|
-
function Yt(e, n, t) {
|
|
812
|
-
let s, o;
|
|
813
|
-
if (typeof e == "string") {
|
|
814
|
-
const r = oe(e);
|
|
815
|
-
if (!r)
|
|
816
|
-
return t(void 0, 424), be;
|
|
817
|
-
o = r.send;
|
|
818
|
-
const i = Kt(e);
|
|
819
|
-
i && (s = i.redundancy);
|
|
820
|
-
} else {
|
|
821
|
-
const r = ue(e);
|
|
822
|
-
if (r) {
|
|
823
|
-
s = Ve(r);
|
|
824
|
-
const i = e.resources ? e.resources[0] : "", l = oe(i);
|
|
825
|
-
l && (o = l.send);
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
return !s || !o ? (t(void 0, 424), be) : s.query(n, o, t)().abort;
|
|
829
|
-
}
|
|
830
|
-
function we() {
|
|
831
|
-
}
|
|
832
|
-
function Jt(e) {
|
|
833
|
-
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
834
|
-
e.iconsLoaderFlag = !1, Vt(e);
|
|
835
|
-
}));
|
|
836
|
-
}
|
|
837
|
-
function Xt(e) {
|
|
838
|
-
const n = [], t = [];
|
|
839
|
-
return e.forEach((s) => {
|
|
840
|
-
(s.match(Pe) ? n : t).push(s);
|
|
841
|
-
}), {
|
|
842
|
-
valid: n,
|
|
843
|
-
invalid: t
|
|
844
|
-
};
|
|
845
|
-
}
|
|
846
|
-
function z(e, n, t) {
|
|
847
|
-
function s() {
|
|
848
|
-
const o = e.pendingIcons;
|
|
849
|
-
n.forEach((r) => {
|
|
850
|
-
o && o.delete(r), e.icons[r] || e.missing.add(r);
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
if (t && typeof t == "object")
|
|
854
|
-
try {
|
|
855
|
-
if (!Oe(e, t).length) {
|
|
856
|
-
s();
|
|
857
|
-
return;
|
|
858
|
-
}
|
|
859
|
-
} catch (o) {
|
|
860
|
-
console.error(o);
|
|
861
|
-
}
|
|
862
|
-
s(), Jt(e);
|
|
863
|
-
}
|
|
864
|
-
function $e(e, n) {
|
|
865
|
-
e instanceof Promise ? e.then((t) => {
|
|
866
|
-
n(t);
|
|
867
|
-
}).catch(() => {
|
|
868
|
-
n(null);
|
|
869
|
-
}) : n(e);
|
|
870
|
-
}
|
|
871
|
-
function en(e, n) {
|
|
872
|
-
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(n).sort() : e.iconsToLoad = n, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
873
|
-
e.iconsQueueFlag = !1;
|
|
874
|
-
const { provider: t, prefix: s } = e, o = e.iconsToLoad;
|
|
875
|
-
if (delete e.iconsToLoad, !o || !o.length)
|
|
876
|
-
return;
|
|
877
|
-
const r = e.loadIcon;
|
|
878
|
-
if (e.loadIcons && (o.length > 1 || !r)) {
|
|
879
|
-
$e(
|
|
880
|
-
e.loadIcons(o, s, t),
|
|
881
|
-
(f) => {
|
|
882
|
-
z(e, o, f);
|
|
883
|
-
}
|
|
884
|
-
);
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
if (r) {
|
|
888
|
-
o.forEach((f) => {
|
|
889
|
-
const g = r(f, s, t);
|
|
890
|
-
$e(g, (u) => {
|
|
891
|
-
const m = u ? {
|
|
892
|
-
prefix: s,
|
|
893
|
-
icons: {
|
|
894
|
-
[f]: u
|
|
895
|
-
}
|
|
896
|
-
} : null;
|
|
897
|
-
z(e, [f], m);
|
|
898
|
-
});
|
|
899
|
-
});
|
|
900
|
-
return;
|
|
901
|
-
}
|
|
902
|
-
const { valid: i, invalid: l } = Xt(o);
|
|
903
|
-
if (l.length && z(e, l, null), !i.length)
|
|
904
|
-
return;
|
|
905
|
-
const a = s.match(Pe) ? oe(t) : null;
|
|
906
|
-
if (!a) {
|
|
907
|
-
z(e, i, null);
|
|
908
|
-
return;
|
|
909
|
-
}
|
|
910
|
-
a.prepare(t, s, i).forEach((f) => {
|
|
911
|
-
Yt(t, f, (g) => {
|
|
912
|
-
z(e, f.icons, g);
|
|
913
|
-
});
|
|
914
|
-
});
|
|
915
|
-
}));
|
|
916
|
-
}
|
|
917
|
-
const tn = (e, n) => {
|
|
918
|
-
const t = Wt(e, !0, He()), s = qt(t);
|
|
919
|
-
if (!s.pending.length) {
|
|
920
|
-
let a = !0;
|
|
921
|
-
return n && setTimeout(() => {
|
|
922
|
-
a && n(
|
|
923
|
-
s.loaded,
|
|
924
|
-
s.missing,
|
|
925
|
-
s.pending,
|
|
926
|
-
we
|
|
927
|
-
);
|
|
928
|
-
}), () => {
|
|
929
|
-
a = !1;
|
|
930
|
-
};
|
|
931
|
-
}
|
|
932
|
-
const o = /* @__PURE__ */ Object.create(null), r = [];
|
|
933
|
-
let i, l;
|
|
934
|
-
return s.pending.forEach((a) => {
|
|
935
|
-
const { provider: c, prefix: f } = a;
|
|
936
|
-
if (f === l && c === i)
|
|
937
|
-
return;
|
|
938
|
-
i = c, l = f, r.push(B(c, f));
|
|
939
|
-
const g = o[c] || (o[c] = /* @__PURE__ */ Object.create(null));
|
|
940
|
-
g[f] || (g[f] = []);
|
|
941
|
-
}), s.pending.forEach((a) => {
|
|
942
|
-
const { provider: c, prefix: f, name: g } = a, u = B(c, f), m = u.pendingIcons || (u.pendingIcons = /* @__PURE__ */ new Set());
|
|
943
|
-
m.has(g) || (m.add(g), o[c][f].push(g));
|
|
944
|
-
}), r.forEach((a) => {
|
|
945
|
-
const c = o[a.provider][a.prefix];
|
|
946
|
-
c.length && en(a, c);
|
|
947
|
-
}), n ? Qt(n, s, r) : we;
|
|
948
|
-
};
|
|
949
|
-
function nn(e, n) {
|
|
950
|
-
const t = {
|
|
951
|
-
...e
|
|
952
|
-
};
|
|
953
|
-
for (const s in n) {
|
|
954
|
-
const o = n[s], r = typeof o;
|
|
955
|
-
s in ze ? (o === null || o && (r === "string" || r === "number")) && (t[s] = o) : r === typeof t[s] && (t[s] = s === "rotate" ? o % 4 : o);
|
|
956
|
-
}
|
|
957
|
-
return t;
|
|
958
|
-
}
|
|
959
|
-
const on = /[\s,]+/;
|
|
960
|
-
function sn(e, n) {
|
|
961
|
-
n.split(on).forEach((t) => {
|
|
962
|
-
switch (t.trim()) {
|
|
963
|
-
case "horizontal":
|
|
964
|
-
e.hFlip = !0;
|
|
965
|
-
break;
|
|
966
|
-
case "vertical":
|
|
967
|
-
e.vFlip = !0;
|
|
968
|
-
break;
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
function rn(e, n = 0) {
|
|
973
|
-
const t = e.replace(/^-?[0-9.]*/, "");
|
|
974
|
-
function s(o) {
|
|
975
|
-
for (; o < 0; )
|
|
976
|
-
o += 4;
|
|
977
|
-
return o % 4;
|
|
978
|
-
}
|
|
979
|
-
if (t === "") {
|
|
980
|
-
const o = parseInt(e);
|
|
981
|
-
return isNaN(o) ? 0 : s(o);
|
|
982
|
-
} else if (t !== e) {
|
|
983
|
-
let o = 0;
|
|
984
|
-
switch (t) {
|
|
985
|
-
case "%":
|
|
986
|
-
o = 25;
|
|
987
|
-
break;
|
|
988
|
-
case "deg":
|
|
989
|
-
o = 90;
|
|
990
|
-
}
|
|
991
|
-
if (o) {
|
|
992
|
-
let r = parseFloat(e.slice(0, e.length - t.length));
|
|
993
|
-
return isNaN(r) ? 0 : (r = r / o, r % 1 === 0 ? s(r) : 0);
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
return n;
|
|
997
|
-
}
|
|
998
|
-
function ln(e, n) {
|
|
999
|
-
let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1000
|
-
for (const s in n)
|
|
1001
|
-
t += " " + s + '="' + n[s] + '"';
|
|
1002
|
-
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
|
|
1003
|
-
}
|
|
1004
|
-
function an(e) {
|
|
1005
|
-
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1006
|
-
}
|
|
1007
|
-
function cn(e) {
|
|
1008
|
-
return "data:image/svg+xml," + an(e);
|
|
1009
|
-
}
|
|
1010
|
-
function un(e) {
|
|
1011
|
-
return 'url("' + cn(e) + '")';
|
|
1012
|
-
}
|
|
1013
|
-
const ke = {
|
|
1014
|
-
...De,
|
|
1015
|
-
inline: !1
|
|
1016
|
-
}, fn = {
|
|
1017
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1018
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1019
|
-
"aria-hidden": !0,
|
|
1020
|
-
role: "img"
|
|
1021
|
-
}, dn = {
|
|
1022
|
-
display: "inline-block"
|
|
1023
|
-
}, se = {
|
|
1024
|
-
backgroundColor: "currentColor"
|
|
1025
|
-
}, Ue = {
|
|
1026
|
-
backgroundColor: "transparent"
|
|
1027
|
-
}, Se = {
|
|
1028
|
-
Image: "var(--svg)",
|
|
1029
|
-
Repeat: "no-repeat",
|
|
1030
|
-
Size: "100% 100%"
|
|
1031
|
-
}, Le = {
|
|
1032
|
-
webkitMask: se,
|
|
1033
|
-
mask: se,
|
|
1034
|
-
background: Ue
|
|
1035
|
-
};
|
|
1036
|
-
for (const e in Le) {
|
|
1037
|
-
const n = Le[e];
|
|
1038
|
-
for (const t in Se)
|
|
1039
|
-
n[e + t] = Se[t];
|
|
1040
|
-
}
|
|
1041
|
-
const W = {};
|
|
1042
|
-
["horizontal", "vertical"].forEach((e) => {
|
|
1043
|
-
const n = e.slice(0, 1) + "Flip";
|
|
1044
|
-
W[e + "-flip"] = n, W[e.slice(0, 1) + "-flip"] = n, W[e + "Flip"] = n;
|
|
1045
|
-
});
|
|
1046
|
-
function xe(e) {
|
|
1047
|
-
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1048
|
-
}
|
|
1049
|
-
const Ie = (e, n) => {
|
|
1050
|
-
const t = nn(ke, n), s = { ...fn }, o = n.mode || "svg", r = {}, i = n.style, l = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
1051
|
-
for (let w in n) {
|
|
1052
|
-
const p = n[w];
|
|
1053
|
-
if (p !== void 0)
|
|
1054
|
-
switch (w) {
|
|
1055
|
-
// Properties to ignore
|
|
1056
|
-
case "icon":
|
|
1057
|
-
case "style":
|
|
1058
|
-
case "onLoad":
|
|
1059
|
-
case "mode":
|
|
1060
|
-
case "ssr":
|
|
1061
|
-
break;
|
|
1062
|
-
// Boolean attributes
|
|
1063
|
-
case "inline":
|
|
1064
|
-
case "hFlip":
|
|
1065
|
-
case "vFlip":
|
|
1066
|
-
t[w] = p === !0 || p === "true" || p === 1;
|
|
1067
|
-
break;
|
|
1068
|
-
// Flip as string: 'horizontal,vertical'
|
|
1069
|
-
case "flip":
|
|
1070
|
-
typeof p == "string" && sn(t, p);
|
|
1071
|
-
break;
|
|
1072
|
-
// Color: override style
|
|
1073
|
-
case "color":
|
|
1074
|
-
r.color = p;
|
|
1075
|
-
break;
|
|
1076
|
-
// Rotation as string
|
|
1077
|
-
case "rotate":
|
|
1078
|
-
typeof p == "string" ? t[w] = rn(p) : typeof p == "number" && (t[w] = p);
|
|
1079
|
-
break;
|
|
1080
|
-
// Remove aria-hidden
|
|
1081
|
-
case "ariaHidden":
|
|
1082
|
-
case "aria-hidden":
|
|
1083
|
-
p !== !0 && p !== "true" && delete s["aria-hidden"];
|
|
1084
|
-
break;
|
|
1085
|
-
default: {
|
|
1086
|
-
const F = W[w];
|
|
1087
|
-
F ? (p === !0 || p === "true" || p === 1) && (t[F] = !0) : ke[w] === void 0 && (s[w] = p);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
const a = Mt(e, t), c = a.attributes;
|
|
1092
|
-
if (t.inline && (r.verticalAlign = "-0.125em"), o === "svg") {
|
|
1093
|
-
s.style = {
|
|
1094
|
-
...r,
|
|
1095
|
-
...l
|
|
1096
|
-
}, Object.assign(s, c);
|
|
1097
|
-
let w = 0, p = n.id;
|
|
1098
|
-
return typeof p == "string" && (p = p.replace(/-/g, "_")), s.innerHTML = jt(a.body, p ? () => p + "ID" + w++ : "iconifyVue"), pe("svg", s);
|
|
1099
|
-
}
|
|
1100
|
-
const { body: f, width: g, height: u } = e, m = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), L = ln(f, {
|
|
1101
|
-
...c,
|
|
1102
|
-
width: g + "",
|
|
1103
|
-
height: u + ""
|
|
1104
|
-
});
|
|
1105
|
-
return s.style = {
|
|
1106
|
-
...r,
|
|
1107
|
-
"--svg": un(L),
|
|
1108
|
-
width: xe(c.width),
|
|
1109
|
-
height: xe(c.height),
|
|
1110
|
-
...dn,
|
|
1111
|
-
...m ? se : Ue,
|
|
1112
|
-
...l
|
|
1113
|
-
}, pe("span", s);
|
|
1114
|
-
};
|
|
1115
|
-
He(!0);
|
|
1116
|
-
Ft("", Dt);
|
|
1117
|
-
if (typeof document < "u" && typeof window < "u") {
|
|
1118
|
-
const e = window;
|
|
1119
|
-
if (e.IconifyPreload !== void 0) {
|
|
1120
|
-
const n = e.IconifyPreload, t = "Invalid IconifyPreload syntax.";
|
|
1121
|
-
typeof n == "object" && n !== null && (n instanceof Array ? n : [n]).forEach((s) => {
|
|
1122
|
-
try {
|
|
1123
|
-
// Check if item is an object and not null/array
|
|
1124
|
-
(typeof s != "object" || s === null || s instanceof Array || // Check for 'icons' and 'prefix'
|
|
1125
|
-
typeof s.icons != "object" || typeof s.prefix != "string" || // Add icon set
|
|
1126
|
-
!kt(s)) && console.error(t);
|
|
1127
|
-
} catch {
|
|
1128
|
-
console.error(t);
|
|
1129
|
-
}
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
if (e.IconifyProviders !== void 0) {
|
|
1133
|
-
const n = e.IconifyProviders;
|
|
1134
|
-
if (typeof n == "object" && n !== null)
|
|
1135
|
-
for (let t in n) {
|
|
1136
|
-
const s = "IconifyProviders[" + t + "] is invalid.";
|
|
1137
|
-
try {
|
|
1138
|
-
const o = n[t];
|
|
1139
|
-
if (typeof o != "object" || !o || o.resources === void 0)
|
|
1140
|
-
continue;
|
|
1141
|
-
Pt(t, o) || console.error(s);
|
|
1142
|
-
} catch {
|
|
1143
|
-
console.error(s);
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
const hn = {
|
|
1149
|
-
...Y,
|
|
1150
|
-
body: ""
|
|
1151
|
-
}, Ce = x({
|
|
1152
|
-
// Do not inherit other attributes: it is handled by render()
|
|
1153
|
-
inheritAttrs: !1,
|
|
1154
|
-
// Set initial data
|
|
1155
|
-
data() {
|
|
1156
|
-
return {
|
|
1157
|
-
// Current icon name
|
|
1158
|
-
_name: "",
|
|
1159
|
-
// Loading
|
|
1160
|
-
_loadingIcon: null,
|
|
1161
|
-
// Mounted status
|
|
1162
|
-
iconMounted: !1,
|
|
1163
|
-
// Callback counter to trigger re-render
|
|
1164
|
-
counter: 0
|
|
1165
|
-
};
|
|
1166
|
-
},
|
|
1167
|
-
mounted() {
|
|
1168
|
-
this.iconMounted = !0;
|
|
1169
|
-
},
|
|
1170
|
-
unmounted() {
|
|
1171
|
-
this.abortLoading();
|
|
1172
|
-
},
|
|
1173
|
-
methods: {
|
|
1174
|
-
abortLoading() {
|
|
1175
|
-
this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
|
|
1176
|
-
},
|
|
1177
|
-
// Get data for icon to render or null
|
|
1178
|
-
getIcon(e, n, t) {
|
|
1179
|
-
if (typeof e == "object" && e !== null && typeof e.body == "string")
|
|
1180
|
-
return this._name = "", this.abortLoading(), {
|
|
1181
|
-
data: e
|
|
1182
|
-
};
|
|
1183
|
-
let s;
|
|
1184
|
-
if (typeof e != "string" || (s = K(e, !1, !0)) === null)
|
|
1185
|
-
return this.abortLoading(), null;
|
|
1186
|
-
let o = wt(s);
|
|
1187
|
-
if (!o)
|
|
1188
|
-
return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", o !== null && (this._loadingIcon = {
|
|
1189
|
-
name: e,
|
|
1190
|
-
abort: tn([s], () => {
|
|
1191
|
-
this.counter++;
|
|
1192
|
-
})
|
|
1193
|
-
})), null;
|
|
1194
|
-
if (this.abortLoading(), this._name !== e && (this._name = e, n && n(e)), t) {
|
|
1195
|
-
o = Object.assign({}, o);
|
|
1196
|
-
const i = t(o.body, s.name, s.prefix, s.provider);
|
|
1197
|
-
typeof i == "string" && (o.body = i);
|
|
1198
|
-
}
|
|
1199
|
-
const r = ["iconify"];
|
|
1200
|
-
return s.prefix !== "" && r.push("iconify--" + s.prefix), s.provider !== "" && r.push("iconify--" + s.provider), { data: o, classes: r };
|
|
1201
|
-
}
|
|
1202
|
-
},
|
|
1203
|
-
// Render icon
|
|
1204
|
-
render() {
|
|
1205
|
-
this.counter;
|
|
1206
|
-
const e = this.$attrs, n = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad, e.customise) : null;
|
|
1207
|
-
if (!n)
|
|
1208
|
-
return Ie(hn, e);
|
|
1209
|
-
let t = e;
|
|
1210
|
-
return n.classes && (t = {
|
|
1211
|
-
...e,
|
|
1212
|
-
class: (typeof e.class == "string" ? e.class + " " : "") + n.classes.join(" ")
|
|
1213
|
-
}), Ie({
|
|
1214
|
-
...Y,
|
|
1215
|
-
...n.data
|
|
1216
|
-
}, t);
|
|
1217
|
-
}
|
|
1218
|
-
}), pn = { class: "logo" }, mn = ["alt", "src"], gn = {
|
|
1219
|
-
key: 1,
|
|
1220
|
-
class: "logo-default"
|
|
1221
|
-
}, vn = {
|
|
1222
|
-
name: "Logo"
|
|
1223
|
-
}, Qe = /* @__PURE__ */ x({
|
|
1224
|
-
...vn,
|
|
1225
|
-
props: {
|
|
1226
|
-
alt: {
|
|
1227
|
-
default: void 0,
|
|
1228
|
-
type: String
|
|
1229
|
-
},
|
|
1230
|
-
route: {
|
|
1231
|
-
default: void 0,
|
|
1232
|
-
type: String
|
|
1233
|
-
},
|
|
1234
|
-
src: {
|
|
1235
|
-
default: void 0,
|
|
1236
|
-
type: String
|
|
1237
|
-
}
|
|
1238
|
-
},
|
|
1239
|
-
setup(e) {
|
|
1240
|
-
const n = e, { appName: t, appTitle: s, layout: o } = q(), r = C(() => {
|
|
1241
|
-
if (t)
|
|
1242
|
-
return t.replace("@", "").replace("/", " ");
|
|
1243
|
-
}), i = n.alt || o?.logoAlt || r.value || s || "My App", l = n.src || o?.logo, a = n.route || o?.logoRoute || "home";
|
|
1244
|
-
return (c, f) => {
|
|
1245
|
-
const g = _e("router-link");
|
|
1246
|
-
return h(), v("div", pn, [
|
|
1247
|
-
d(c.$slots, "default", {}, () => [
|
|
1248
|
-
N(g, {
|
|
1249
|
-
to: { name: b(a) }
|
|
1250
|
-
}, {
|
|
1251
|
-
default: $(() => [
|
|
1252
|
-
b(l) ? (h(), v("img", {
|
|
1253
|
-
key: 0,
|
|
1254
|
-
alt: b(i),
|
|
1255
|
-
src: b(l)
|
|
1256
|
-
}, null, 8, mn)) : (h(), v("span", gn, [
|
|
1257
|
-
S("span", null, T(b(i)[0]), 1),
|
|
1258
|
-
S("span", null, T(b(i)), 1)
|
|
1259
|
-
]))
|
|
1260
|
-
]),
|
|
1261
|
-
_: 1
|
|
1262
|
-
}, 8, ["to"])
|
|
1263
|
-
])
|
|
1264
|
-
]);
|
|
1265
|
-
};
|
|
1266
|
-
}
|
|
1267
|
-
}), yn = {
|
|
1268
|
-
name: "MainMenu"
|
|
1269
|
-
}, bn = /* @__PURE__ */ x({
|
|
1270
|
-
...yn,
|
|
1271
|
-
props: {
|
|
1272
|
-
routes: {
|
|
1273
|
-
required: !0,
|
|
1274
|
-
type: Array
|
|
1275
|
-
}
|
|
1276
|
-
},
|
|
1277
|
-
emits: ["close"],
|
|
1278
|
-
setup(e) {
|
|
1279
|
-
const n = e, t = ae(), s = Fe(), o = C(() => {
|
|
1280
|
-
let l = n.routes?.find(
|
|
1281
|
-
(a) => a.route === t?.name
|
|
1282
|
-
)?.route;
|
|
1283
|
-
return l || (l = r.value), l;
|
|
1284
|
-
}), r = C(() => {
|
|
1285
|
-
const l = t?.matched;
|
|
1286
|
-
if (l?.length > 1) {
|
|
1287
|
-
const a = l.at(-2);
|
|
1288
|
-
return i(String(a?.path));
|
|
1289
|
-
}
|
|
1290
|
-
return "";
|
|
1291
|
-
}), i = (l) => {
|
|
1292
|
-
const a = s.getRoutes().find((c) => c.path === l);
|
|
1293
|
-
return String(a?.name);
|
|
1294
|
-
};
|
|
1295
|
-
return (l, a) => (h(), I(b(lt), {
|
|
1296
|
-
ref: "mainMenu",
|
|
1297
|
-
"active-route": o.value ?? "home",
|
|
1298
|
-
routes: e.routes,
|
|
1299
|
-
onChangeRoute: a[0] || (a[0] = (c) => l.$emit("close"))
|
|
1300
|
-
}, null, 8, ["active-route", "routes"]));
|
|
1301
|
-
}
|
|
1302
|
-
}), wn = ["data-expanded"], $n = {
|
|
1303
|
-
name: "AppHeader"
|
|
1304
|
-
}, We = /* @__PURE__ */ x({
|
|
1305
|
-
...$n,
|
|
1306
|
-
props: {
|
|
1307
|
-
noLocaleSwitcher: Boolean,
|
|
1308
|
-
noLogo: Boolean,
|
|
1309
|
-
noMainMenu: Boolean,
|
|
1310
|
-
noToggle: Boolean
|
|
1311
|
-
},
|
|
1312
|
-
setup(e, { expose: n }) {
|
|
1313
|
-
const { layout: t } = q(), { width: s } = je(), o = j(null), r = j(!0), i = t && t?.homeRoute ? t.homeRoute : void 0, l = t?.localeSwitcher?.showBadges, a = C(() => s.value > 576), c = () => {
|
|
1314
|
-
r.value = !1;
|
|
1315
|
-
}, f = () => {
|
|
1316
|
-
const u = document.querySelector(".layout > header"), m = document.querySelector(".layout > header > nav");
|
|
1317
|
-
if (window.innerWidth >= 576)
|
|
1318
|
-
r.value = !0;
|
|
1319
|
-
else {
|
|
1320
|
-
if (!u || !m || a.value)
|
|
1321
|
-
return;
|
|
1322
|
-
const L = u?.offsetHeight, w = window.innerHeight;
|
|
1323
|
-
r.value = !1, m.style.height = `${w - L}px`;
|
|
1324
|
-
}
|
|
1325
|
-
}, g = () => {
|
|
1326
|
-
r.value = !r.value;
|
|
1327
|
-
};
|
|
1328
|
-
return Me(() => {
|
|
1329
|
-
window.addEventListener("resize", f), window.addEventListener("load", f), f();
|
|
1330
|
-
}), Ae(() => {
|
|
1331
|
-
window.removeEventListener("resize", f), window.removeEventListener("load", f);
|
|
1332
|
-
}), n({
|
|
1333
|
-
expanded: r
|
|
1334
|
-
}), (u, m) => (h(), v("header", {
|
|
1335
|
-
ref_key: "dzangolabVueAppHeader",
|
|
1336
|
-
ref: o
|
|
1337
|
-
}, [
|
|
1338
|
-
!e.noToggle || !a.value ? (h(), v("div", {
|
|
1339
|
-
key: 0,
|
|
1340
|
-
class: "toggle",
|
|
1341
|
-
onClick: g
|
|
1342
|
-
}, [
|
|
1343
|
-
d(u.$slots, "toggle", {}, () => [
|
|
1344
|
-
r.value && !a.value ? (h(), I(b(Ce), {
|
|
1345
|
-
key: 0,
|
|
1346
|
-
icon: "prime:times",
|
|
1347
|
-
height: "2rem"
|
|
1348
|
-
})) : (h(), I(b(Ce), {
|
|
1349
|
-
key: 1,
|
|
1350
|
-
icon: "prime:bars",
|
|
1351
|
-
height: "2rem"
|
|
1352
|
-
}))
|
|
1353
|
-
])
|
|
1354
|
-
])) : k("", !0),
|
|
1355
|
-
d(u.$slots, "logo", { class: "logo" }, () => [
|
|
1356
|
-
e.noLogo ? k("", !0) : (h(), I(Qe, {
|
|
1357
|
-
key: 0,
|
|
1358
|
-
route: b(i)
|
|
1359
|
-
}, null, 8, ["route"]))
|
|
1360
|
-
]),
|
|
1361
|
-
S("nav", { "data-expanded": r.value }, [
|
|
1362
|
-
d(u.$slots, "menu", {}, () => [
|
|
1363
|
-
b(t)?.mainMenu && !e.noMainMenu ? (h(), I(bn, {
|
|
1364
|
-
key: 0,
|
|
1365
|
-
class: "main-menu",
|
|
1366
|
-
routes: b(t)?.mainMenu,
|
|
1367
|
-
onClose: c
|
|
1368
|
-
}, null, 8, ["routes"])) : k("", !0)
|
|
1369
|
-
]),
|
|
1370
|
-
d(u.$slots, "userMenu"),
|
|
1371
|
-
d(u.$slots, "addon"),
|
|
1372
|
-
d(u.$slots, "locales", {}, () => [
|
|
1373
|
-
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(ie), {
|
|
1374
|
-
key: 0,
|
|
1375
|
-
"show-badges": b(l),
|
|
1376
|
-
class: "locales"
|
|
1377
|
-
}, null, 8, ["show-badges"]))
|
|
1378
|
-
])
|
|
1379
|
-
], 8, wn)
|
|
1380
|
-
], 512));
|
|
1381
|
-
}
|
|
1382
|
-
}), kn = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.29289%204.29289C8.68342%203.90237%209.31658%203.90237%209.70711%204.29289L16.7071%2011.2929C17.0976%2011.6834%2017.0976%2012.3166%2016.7071%2012.7071L9.70711%2019.7071C9.31658%2020.0976%208.68342%2020.0976%208.29289%2019.7071C7.90237%2019.3166%207.90237%2018.6834%208.29289%2018.2929L14.5858%2012L8.29289%205.70711C7.90237%205.31658%207.90237%204.68342%208.29289%204.29289Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Sn = { class: "nav-menu-item" }, Ln = {
|
|
1383
|
-
key: 1,
|
|
1384
|
-
class: "item-name"
|
|
1385
|
-
}, xn = {
|
|
1386
|
-
key: 2,
|
|
1387
|
-
class: "item-name"
|
|
1388
|
-
}, In = {
|
|
1389
|
-
key: 3,
|
|
1390
|
-
class: "toggle-menu"
|
|
1391
|
-
}, Cn = {
|
|
1392
|
-
key: 0,
|
|
1393
|
-
class: "sub-menu-item"
|
|
1394
|
-
}, _n = {
|
|
1395
|
-
name: "NavMenuItem",
|
|
1396
|
-
components: {
|
|
1397
|
-
NavMenuItem: () => import("./NavMenuItem-faWUzlfY.js")
|
|
1398
|
-
}
|
|
1399
|
-
}, Mn = /* @__PURE__ */ x({
|
|
1400
|
-
..._n,
|
|
1401
|
-
props: {
|
|
1402
|
-
item: {
|
|
1403
|
-
required: !0,
|
|
1404
|
-
type: Object
|
|
1405
|
-
},
|
|
1406
|
-
sidebarActive: {
|
|
1407
|
-
default: !0,
|
|
1408
|
-
type: Boolean
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
emits: ["select:menu"],
|
|
1412
|
-
setup(e, { emit: n }) {
|
|
1413
|
-
const t = e, s = n, o = ae(), r = Fe(), i = j(!1), l = C(() => {
|
|
1414
|
-
const u = o?.matched;
|
|
1415
|
-
if (u?.length > 1) {
|
|
1416
|
-
const m = u.at(-2);
|
|
1417
|
-
return f(String(m?.path));
|
|
1418
|
-
}
|
|
1419
|
-
return "";
|
|
1420
|
-
}), a = C(() => {
|
|
1421
|
-
let u = o.name === t.item?.routeName;
|
|
1422
|
-
return u || (t.item?.routeName ? u = !!l.value && l.value === t.item?.routeName : !t.item?.routeName && !t.item?.children?.length && o.name === l.value && (u = !0)), u;
|
|
1423
|
-
}), c = C(() => !t.sidebarActive && t.item.shortName), f = (u) => {
|
|
1424
|
-
const m = r.getRoutes().find((L) => L.path === u);
|
|
1425
|
-
return String(m?.name);
|
|
1426
|
-
}, g = () => {
|
|
1427
|
-
t.item.routeName ? (r.hasRoute(t.item.routeName) && r.push({ name: t.item.routeName }), s("select:menu")) : !t.item.routeName && !t.item.children?.length ? (r.hasRoute(l.value) && r.push({ name: l.value }), s("select:menu")) : i.value = !i.value;
|
|
1428
|
-
};
|
|
1429
|
-
return t.item.children?.length && (i.value = !!t.item.children.find(
|
|
1430
|
-
(u) => o.name === u?.routeName
|
|
1431
|
-
)), (u, m) => {
|
|
1432
|
-
const L = _e("NavMenuItem", !0);
|
|
1433
|
-
return h(), v("div", Sn, [
|
|
1434
|
-
S("a", {
|
|
1435
|
-
class: R([{ active: a.value }, "link"]),
|
|
1436
|
-
"aria-label": "open menu",
|
|
1437
|
-
onClick: g
|
|
1438
|
-
}, [
|
|
1439
|
-
e.item.icon ? (h(), v("i", {
|
|
1440
|
-
key: 0,
|
|
1441
|
-
class: R([
|
|
1442
|
-
"icon",
|
|
1443
|
-
e.item.icon,
|
|
1444
|
-
{ "icon-only": !c.value && !e.sidebarActive }
|
|
1445
|
-
])
|
|
1446
|
-
}, null, 2)) : k("", !0),
|
|
1447
|
-
c.value ? (h(), v("span", Ln, T(e.item.shortName), 1)) : k("", !0),
|
|
1448
|
-
e.sidebarActive ? (h(), v("span", xn, T(e.item.name), 1)) : k("", !0),
|
|
1449
|
-
e.item.children && e.item.children.length > 0 ? (h(), v("span", In, [
|
|
1450
|
-
(h(), v("svg", {
|
|
1451
|
-
class: R({ "up-chevron": i.value }),
|
|
1452
|
-
viewBox: "0 0 24 24",
|
|
1453
|
-
fill: "none",
|
|
1454
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1455
|
-
}, [...m[1] || (m[1] = [
|
|
1456
|
-
S("path", {
|
|
1457
|
-
"fill-rule": "evenodd",
|
|
1458
|
-
"clip-rule": "evenodd",
|
|
1459
|
-
d: "M4.29289 8.29289C4.68342 7.90237 5.31658 7.90237 5.70711 8.29289L12 14.5858L18.2929 8.29289C18.6834 7.90237 19.3166 7.90237 19.7071 8.29289C20.0976 8.68342 20.0976 9.31658 19.7071 9.70711L12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L4.29289 9.70711C3.90237 9.31658 3.90237 8.68342 4.29289 8.29289Z",
|
|
1460
|
-
fill: "currentColor"
|
|
1461
|
-
}, null, -1)
|
|
1462
|
-
])], 2))
|
|
1463
|
-
])) : k("", !0)
|
|
1464
|
-
], 2),
|
|
1465
|
-
N(Je, { name: "fade" }, {
|
|
1466
|
-
default: $(() => [
|
|
1467
|
-
e.item.children && e.item.children.length > 0 && i.value ? (h(), v("div", Cn, [
|
|
1468
|
-
(h(!0), v(Ne, null, le(e.item.children, (w, p) => (h(), I(L, {
|
|
1469
|
-
key: w.name + "-" + p,
|
|
1470
|
-
item: w,
|
|
1471
|
-
"sidebar-active": e.sidebarActive,
|
|
1472
|
-
"onSelect:menu": m[0] || (m[0] = (F) => u.$emit("select:menu"))
|
|
1473
|
-
}, null, 8, ["item", "sidebar-active"]))), 128))
|
|
1474
|
-
])) : k("", !0)
|
|
1475
|
-
]),
|
|
1476
|
-
_: 1
|
|
1477
|
-
})
|
|
1478
|
-
]);
|
|
1479
|
-
};
|
|
1480
|
-
}
|
|
1481
|
-
}), An = { class: "nav-menu" }, Nn = {
|
|
1482
|
-
key: 0,
|
|
1483
|
-
class: "menu"
|
|
1484
|
-
}, Tn = {
|
|
1485
|
-
name: "NavMenu"
|
|
1486
|
-
}, jn = /* @__PURE__ */ x({
|
|
1487
|
-
...Tn,
|
|
1488
|
-
props: {
|
|
1489
|
-
menu: {
|
|
1490
|
-
required: !0,
|
|
1491
|
-
type: Array
|
|
1492
|
-
},
|
|
1493
|
-
sidebarActive: {
|
|
1494
|
-
default: !0,
|
|
1495
|
-
type: Boolean
|
|
1496
|
-
}
|
|
1497
|
-
},
|
|
1498
|
-
emits: ["select:menu"],
|
|
1499
|
-
setup(e) {
|
|
1500
|
-
const n = e, t = C(() => n.menu?.map((s) => {
|
|
1501
|
-
if (s.hide)
|
|
1502
|
-
return null;
|
|
1503
|
-
const o = s.children?.filter((r) => !r.hide) || [];
|
|
1504
|
-
return s.children?.length && o.length === 0 ? null : {
|
|
1505
|
-
...s,
|
|
1506
|
-
children: o.length > 0 ? o : void 0
|
|
1507
|
-
};
|
|
1508
|
-
}).filter(Boolean));
|
|
1509
|
-
return (s, o) => (h(), v("nav", An, [
|
|
1510
|
-
t.value?.length > 0 ? (h(), v("div", Nn, [
|
|
1511
|
-
(h(!0), v(Ne, null, le(t.value, (r, i) => (h(), I(Mn, {
|
|
1512
|
-
key: r.name + "-" + i,
|
|
1513
|
-
item: r,
|
|
1514
|
-
"sidebar-active": e.sidebarActive,
|
|
1515
|
-
"onSelect:menu": o[0] || (o[0] = (l) => s.$emit("select:menu"))
|
|
1516
|
-
}, null, 8, ["item", "sidebar-active"]))), 128))
|
|
1517
|
-
])) : k("", !0)
|
|
1518
|
-
]));
|
|
1519
|
-
}
|
|
1520
|
-
}), Fn = {
|
|
1521
|
-
key: 0,
|
|
1522
|
-
class: "header"
|
|
1523
|
-
}, Pn = { class: "title" }, En = {
|
|
1524
|
-
key: 0,
|
|
1525
|
-
viewBox: "0 0 24 24",
|
|
1526
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1527
|
-
}, Rn = {
|
|
1528
|
-
key: 1,
|
|
1529
|
-
class: "extend",
|
|
1530
|
-
viewBox: "0 0 24 24",
|
|
1531
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1532
|
-
}, Bn = { class: "sidebar-menu-wrapper" }, On = { class: "nav" }, Hn = {
|
|
1533
|
-
key: 1,
|
|
1534
|
-
class: "footer"
|
|
1535
|
-
}, zn = {
|
|
1536
|
-
key: 0,
|
|
1537
|
-
alt: "show sidebar",
|
|
1538
|
-
src: kn
|
|
1539
|
-
}, Dn = {
|
|
1540
|
-
name: "Sidebar"
|
|
1541
|
-
}, Ge = /* @__PURE__ */ x({
|
|
1542
|
-
...Dn,
|
|
1543
|
-
props: {
|
|
1544
|
-
collapsible: {
|
|
1545
|
-
default: !0,
|
|
1546
|
-
type: Boolean
|
|
1547
|
-
},
|
|
1548
|
-
menu: {
|
|
1549
|
-
required: !0,
|
|
1550
|
-
type: Array
|
|
1551
|
-
},
|
|
1552
|
-
noHeader: {
|
|
1553
|
-
default: !1,
|
|
1554
|
-
type: Boolean
|
|
1555
|
-
}
|
|
1556
|
-
},
|
|
1557
|
-
emits: ["select:menu"],
|
|
1558
|
-
setup(e, { expose: n }) {
|
|
1559
|
-
const t = e, s = C(() => !r.value && t.collapsible ? !t.menu?.filter((i) => !!i.shortName)?.length : !1), o = Te(), r = j(!0);
|
|
1560
|
-
return n({
|
|
1561
|
-
sidebarActive: r
|
|
1562
|
-
}), (i, l) => s.value ? (h(), v("div", {
|
|
1563
|
-
key: 1,
|
|
1564
|
-
class: "no-sidebar",
|
|
1565
|
-
onClick: l[2] || (l[2] = (a) => r.value = !0)
|
|
1566
|
-
}, [
|
|
1567
|
-
r.value ? k("", !0) : (h(), v("img", zn))
|
|
1568
|
-
])) : (h(), v("div", {
|
|
1569
|
-
key: 0,
|
|
1570
|
-
class: R(["sidebar", { collapsible: e.collapsible }])
|
|
1571
|
-
}, [
|
|
1572
|
-
e.noHeader ? k("", !0) : (h(), v("div", Fn, [
|
|
1573
|
-
N(Qe),
|
|
1574
|
-
S("div", Pn, [
|
|
1575
|
-
d(i.$slots, "title")
|
|
1576
|
-
]),
|
|
1577
|
-
d(i.$slots, "toggleIcons", {}, () => [
|
|
1578
|
-
S("div", {
|
|
1579
|
-
class: "toggle",
|
|
1580
|
-
onClick: l[0] || (l[0] = (a) => r.value = !r.value)
|
|
1581
|
-
}, [
|
|
1582
|
-
r.value ? (h(), v("svg", En, [...l[3] || (l[3] = [
|
|
1583
|
-
S("path", {
|
|
1584
|
-
d: "m13.06 12l4.42-4.42a.75.75 0 1 0-1.06-1.06L12 10.94L7.58 6.52a.75.75 0 0 0-1.06 1.06L10.94 12l-4.42 4.42a.75.75 0 0 0 0 1.06a.75.75 0 0 0 1.06 0L12 13.06l4.42 4.42a.75.75 0 0 0 1.06 0a.75.75 0 0 0 0-1.06Z",
|
|
1585
|
-
fill: "currentColor"
|
|
1586
|
-
}, null, -1)
|
|
1587
|
-
])])) : (h(), v("svg", Rn, [...l[4] || (l[4] = [
|
|
1588
|
-
S("path", {
|
|
1589
|
-
d: "M19 12.75H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0-4.5H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0 9H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5",
|
|
1590
|
-
fill: "currentColor"
|
|
1591
|
-
}, null, -1)
|
|
1592
|
-
])]))
|
|
1593
|
-
])
|
|
1594
|
-
])
|
|
1595
|
-
])),
|
|
1596
|
-
S("div", Bn, [
|
|
1597
|
-
d(i.$slots, "default"),
|
|
1598
|
-
S("ul", On, [
|
|
1599
|
-
d(i.$slots, "links", {}, () => [
|
|
1600
|
-
N(jn, {
|
|
1601
|
-
menu: e.menu,
|
|
1602
|
-
"sidebar-active": r.value,
|
|
1603
|
-
"onSelect:menu": l[1] || (l[1] = (a) => i.$emit("select:menu"))
|
|
1604
|
-
}, null, 8, ["menu", "sidebar-active"])
|
|
1605
|
-
]),
|
|
1606
|
-
d(i.$slots, "afterNavLinks")
|
|
1607
|
-
]),
|
|
1608
|
-
d(i.$slots, "afterSidebarMenu")
|
|
1609
|
-
]),
|
|
1610
|
-
b(o).footer ? (h(), v("div", Hn, [
|
|
1611
|
-
d(i.$slots, "footer")
|
|
1612
|
-
])) : k("", !0)
|
|
1613
|
-
], 2));
|
|
1614
|
-
}
|
|
1615
|
-
}), qn = { class: "content" }, Vn = {
|
|
1616
|
-
name: "StickyCollapsibleFooter"
|
|
1617
|
-
}, po = /* @__PURE__ */ x({
|
|
1618
|
-
...Vn,
|
|
1619
|
-
props: {
|
|
1620
|
-
fixed: {
|
|
1621
|
-
default: !0,
|
|
1622
|
-
type: Boolean
|
|
1623
|
-
}
|
|
1624
|
-
},
|
|
1625
|
-
setup(e) {
|
|
1626
|
-
return (n, t) => (h(), v("footer", {
|
|
1627
|
-
class: R(`sticky-collapsible ${e.fixed ? "fixed" : ""}`)
|
|
1628
|
-
}, [
|
|
1629
|
-
S("div", qn, [
|
|
1630
|
-
d(n.$slots, "default")
|
|
1631
|
-
])
|
|
1632
|
-
], 2));
|
|
1633
|
-
}
|
|
1634
|
-
}), Un = Xe({
|
|
1635
|
-
loader: () => Promise.resolve().then(() => eo),
|
|
1636
|
-
timeout: 3e3
|
|
1637
|
-
}), Qn = {
|
|
1638
|
-
name: "Layout"
|
|
1639
|
-
}, Wn = /* @__PURE__ */ x({
|
|
1640
|
-
...Qn,
|
|
1641
|
-
props: {
|
|
1642
|
-
defaultLayout: {
|
|
1643
|
-
default: Un,
|
|
1644
|
-
type: Object
|
|
1645
|
-
}
|
|
1646
|
-
},
|
|
1647
|
-
setup(e) {
|
|
1648
|
-
const n = e, t = ae(), s = Te(), o = Object.keys(s);
|
|
1649
|
-
let r = et(n.defaultLayout);
|
|
1650
|
-
const i = C(() => tt(r.value));
|
|
1651
|
-
return nt(
|
|
1652
|
-
() => t.meta,
|
|
1653
|
-
async (l) => {
|
|
1654
|
-
if (l?.layout)
|
|
1655
|
-
try {
|
|
1656
|
-
r.value = l.layout;
|
|
1657
|
-
} catch {
|
|
1658
|
-
r.value = n.defaultLayout;
|
|
1659
|
-
}
|
|
1660
|
-
else
|
|
1661
|
-
r.value = n.defaultLayout;
|
|
1662
|
-
}
|
|
1663
|
-
), (l, a) => (h(), I(ot(i.value), null, G({
|
|
1664
|
-
default: $(() => [
|
|
1665
|
-
d(l.$slots, "default")
|
|
1666
|
-
]),
|
|
1667
|
-
_: 2
|
|
1668
|
-
}, [
|
|
1669
|
-
le(b(o), (c) => ({
|
|
1670
|
-
name: c,
|
|
1671
|
-
fn: $(() => [
|
|
1672
|
-
d(l.$slots, c)
|
|
1673
|
-
])
|
|
1674
|
-
}))
|
|
1675
|
-
]), 1024));
|
|
1676
|
-
}
|
|
1677
|
-
}), Gn = ["aria-expanded"], Zn = {
|
|
1678
|
-
name: "BasicLayout"
|
|
1679
|
-
}, mo = /* @__PURE__ */ x({
|
|
1680
|
-
...Zn,
|
|
1681
|
-
props: {
|
|
1682
|
-
noFooter: Boolean,
|
|
1683
|
-
noLocaleSwitcher: Boolean
|
|
1684
|
-
},
|
|
1685
|
-
setup(e) {
|
|
1686
|
-
const n = j();
|
|
1687
|
-
return (t, s) => (h(), v("div", {
|
|
1688
|
-
"aria-expanded": n.value?.expanded,
|
|
1689
|
-
class: "layout basic"
|
|
1690
|
-
}, [
|
|
1691
|
-
d(t.$slots, "header", {}, () => [
|
|
1692
|
-
N(We, {
|
|
1693
|
-
ref_key: "appHeader",
|
|
1694
|
-
ref: n,
|
|
1695
|
-
"no-locale-switcher": e.noLocaleSwitcher,
|
|
1696
|
-
"no-toggle": ""
|
|
1697
|
-
}, {
|
|
1698
|
-
logo: $(() => [
|
|
1699
|
-
d(t.$slots, "logo")
|
|
1700
|
-
]),
|
|
1701
|
-
addon: $(() => [
|
|
1702
|
-
d(t.$slots, "addon")
|
|
1703
|
-
]),
|
|
1704
|
-
menu: $(() => [
|
|
1705
|
-
d(t.$slots, "menu")
|
|
1706
|
-
]),
|
|
1707
|
-
userMenu: $(() => [
|
|
1708
|
-
d(t.$slots, "userMenu")
|
|
1709
|
-
]),
|
|
1710
|
-
locales: $(() => [
|
|
1711
|
-
d(t.$slots, "locales")
|
|
1712
|
-
]),
|
|
1713
|
-
_: 3
|
|
1714
|
-
}, 8, ["no-locale-switcher"])
|
|
1715
|
-
]),
|
|
1716
|
-
S("main", null, [
|
|
1717
|
-
d(t.$slots, "default")
|
|
1718
|
-
]),
|
|
1719
|
-
e.noFooter ? k("", !0) : d(t.$slots, "footer", { key: 0 }, () => [
|
|
1720
|
-
N(ce, null, {
|
|
1721
|
-
copyright: $(() => [
|
|
1722
|
-
d(t.$slots, "copyright")
|
|
1723
|
-
]),
|
|
1724
|
-
social: $(() => [
|
|
1725
|
-
d(t.$slots, "social")
|
|
1726
|
-
]),
|
|
1727
|
-
version: $(() => [
|
|
1728
|
-
d(t.$slots, "version")
|
|
1729
|
-
]),
|
|
1730
|
-
_: 3
|
|
1731
|
-
})
|
|
1732
|
-
])
|
|
1733
|
-
], 8, Gn));
|
|
1734
|
-
}
|
|
1735
|
-
}), Kn = {
|
|
1736
|
-
name: "NullLayout"
|
|
1737
|
-
}, Yn = (e, n) => {
|
|
1738
|
-
const t = e.__vccOpts || e;
|
|
1739
|
-
for (const [s, o] of n)
|
|
1740
|
-
t[s] = o;
|
|
1741
|
-
return t;
|
|
1742
|
-
};
|
|
1743
|
-
function Jn(e, n, t, s, o, r) {
|
|
1744
|
-
return d(e.$slots, "default");
|
|
1745
|
-
}
|
|
1746
|
-
const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1747
|
-
__proto__: null,
|
|
1748
|
-
default: Xn
|
|
1749
|
-
}, Symbol.toStringTag, { value: "Module" })), to = ["aria-expanded"], go = /* @__PURE__ */ x({
|
|
1750
|
-
__name: "SidebarHeaderLayout",
|
|
1751
|
-
props: {
|
|
1752
|
-
collapsible: {
|
|
1753
|
-
default: !0,
|
|
1754
|
-
type: Boolean
|
|
1755
|
-
},
|
|
1756
|
-
menu: {
|
|
1757
|
-
required: !0,
|
|
1758
|
-
type: Array
|
|
1759
|
-
},
|
|
1760
|
-
noFooter: Boolean,
|
|
1761
|
-
noLocaleSwitcher: Boolean,
|
|
1762
|
-
noSidebar: {
|
|
1763
|
-
default: !1,
|
|
1764
|
-
type: Boolean
|
|
1765
|
-
},
|
|
1766
|
-
userMenuLocation: {
|
|
1767
|
-
default: "sidebar",
|
|
1768
|
-
type: String,
|
|
1769
|
-
validator: (e) => ["header", "sidebar"].includes(e)
|
|
1770
|
-
}
|
|
1771
|
-
},
|
|
1772
|
-
setup(e, { expose: n }) {
|
|
1773
|
-
const { layout: t } = q(), s = t?.localeSwitcher?.showBadges, { width: o } = je(), r = j(), i = j(), l = j(!1), a = e, c = C(() => o.value > 576), f = C(() => (a.userMenuLocation === "sidebar" || !c.value) && !a.noSidebar), g = () => {
|
|
1774
|
-
window.innerWidth >= 576 ? (l.value = !1, i.value && (i.value.sidebarActive = !0)) : (l.value = !0, i.value && (i.value.sidebarActive = !1));
|
|
1775
|
-
}, u = () => {
|
|
1776
|
-
c.value || (i.value.sidebarActive = !1);
|
|
1777
|
-
};
|
|
1778
|
-
return Me(() => {
|
|
1779
|
-
window.innerWidth < 576 && i.value && (i.value.sidebarActive = !1);
|
|
1780
|
-
}), Ae(() => {
|
|
1781
|
-
window.removeEventListener("resize", g);
|
|
1782
|
-
}), window.addEventListener("resize", g), g(), n({
|
|
1783
|
-
onSelectMenu: u
|
|
1784
|
-
}), (m, L) => (h(), v("div", {
|
|
1785
|
-
"aria-expanded": c.value ? r.value?.expanded : i.value?.sidebarActive,
|
|
1786
|
-
class: R(["layout sidebar-header-layout", { collapsible: e.collapsible }])
|
|
1787
|
-
}, [
|
|
1788
|
-
d(m.$slots, "header", {}, () => [
|
|
1789
|
-
st(N(We, {
|
|
1790
|
-
ref_key: "appHeader",
|
|
1791
|
-
ref: r,
|
|
1792
|
-
class: R({ "no-locale-switcher-header": e.noLocaleSwitcher }),
|
|
1793
|
-
"no-locale-switcher": e.noLocaleSwitcher,
|
|
1794
|
-
"no-toggle": !e.collapsible || e.noSidebar,
|
|
1795
|
-
"no-main-menu": ""
|
|
1796
|
-
}, G({
|
|
1797
|
-
locales: $(() => [
|
|
1798
|
-
d(m.$slots, "locales")
|
|
1799
|
-
]),
|
|
1800
|
-
_: 2
|
|
1801
|
-
}, [
|
|
1802
|
-
e.userMenuLocation === "header" && c.value ? {
|
|
1803
|
-
name: "userMenu",
|
|
1804
|
-
fn: $(() => [
|
|
1805
|
-
d(m.$slots, "userMenu")
|
|
1806
|
-
]),
|
|
1807
|
-
key: "0"
|
|
1808
|
-
} : void 0
|
|
1809
|
-
]), 1032, ["class", "no-locale-switcher", "no-toggle"]), [
|
|
1810
|
-
[rt, c.value]
|
|
1811
|
-
])
|
|
1812
|
-
]),
|
|
1813
|
-
!e.noSidebar || !c.value ? (h(), I(Ge, {
|
|
1814
|
-
key: 0,
|
|
1815
|
-
ref_key: "sidebar",
|
|
1816
|
-
ref: i,
|
|
1817
|
-
collapsible: e.collapsible && c.value,
|
|
1818
|
-
menu: e.menu,
|
|
1819
|
-
"no-header": c.value,
|
|
1820
|
-
class: "layout-sidebar",
|
|
1821
|
-
"onSelect:menu": u
|
|
1822
|
-
}, G({
|
|
1823
|
-
afterNavLinks: $(() => [
|
|
1824
|
-
d(m.$slots, "afterNavLinks")
|
|
1825
|
-
]),
|
|
1826
|
-
afterSidebarMenu: $(() => [
|
|
1827
|
-
d(m.$slots, "afterSidebarMenu"),
|
|
1828
|
-
f.value ? d(m.$slots, "userMenu", { key: 0 }) : k("", !0),
|
|
1829
|
-
l.value ? d(m.$slots, "locales", { key: 1 }, () => [
|
|
1830
|
-
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(ie), {
|
|
1831
|
-
key: 0,
|
|
1832
|
-
"show-badges": b(s),
|
|
1833
|
-
class: "locales"
|
|
1834
|
-
}, null, 8, ["show-badges"]))
|
|
1835
|
-
]) : k("", !0)
|
|
1836
|
-
]),
|
|
1837
|
-
_: 2
|
|
1838
|
-
}, [
|
|
1839
|
-
e.noFooter ? void 0 : {
|
|
1840
|
-
name: "footer",
|
|
1841
|
-
fn: $(() => [
|
|
1842
|
-
d(m.$slots, "footer", {}, () => [
|
|
1843
|
-
N(ce)
|
|
1844
|
-
])
|
|
1845
|
-
]),
|
|
1846
|
-
key: "0"
|
|
1847
|
-
}
|
|
1848
|
-
]), 1032, ["collapsible", "menu", "no-header"])) : k("", !0),
|
|
1849
|
-
S("main", null, [
|
|
1850
|
-
d(m.$slots, "default")
|
|
1851
|
-
])
|
|
1852
|
-
], 10, to));
|
|
1853
|
-
}
|
|
1854
|
-
}), no = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207C12.2652%207%2012.5196%207.10536%2012.7071%207.29289L19.7071%2014.2929C20.0976%2014.6834%2020.0976%2015.3166%2019.7071%2015.7071C19.3166%2016.0976%2018.6834%2016.0976%2018.2929%2015.7071L12%209.41421L5.70711%2015.7071C5.31658%2016.0976%204.68342%2016.0976%204.29289%2015.7071C3.90237%2015.3166%203.90237%2014.6834%204.29289%2014.2929L11.2929%207.29289C11.4804%207.10536%2011.7348%207%2012%207Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", oo = { class: "layout sidebar-only" }, vo = /* @__PURE__ */ x({
|
|
1855
|
-
__name: "SidebarOnlyLayout",
|
|
1856
|
-
props: {
|
|
1857
|
-
menu: {
|
|
1858
|
-
required: !0,
|
|
1859
|
-
type: Array
|
|
1860
|
-
},
|
|
1861
|
-
noFooter: Boolean,
|
|
1862
|
-
noLocaleSwitcher: Boolean,
|
|
1863
|
-
noHeader: {
|
|
1864
|
-
default: !1,
|
|
1865
|
-
type: Boolean
|
|
1866
|
-
}
|
|
1867
|
-
},
|
|
1868
|
-
setup(e) {
|
|
1869
|
-
const { layout: n } = q(), t = n?.localeSwitcher?.showBadges;
|
|
1870
|
-
return (s, o) => (h(), v("div", oo, [
|
|
1871
|
-
N(Ge, {
|
|
1872
|
-
menu: e.menu,
|
|
1873
|
-
"no-header": e.noHeader,
|
|
1874
|
-
class: "layout-sidebar"
|
|
1875
|
-
}, G({
|
|
1876
|
-
afterNavLinks: $(() => [
|
|
1877
|
-
d(s.$slots, "afterNavLinks")
|
|
1878
|
-
]),
|
|
1879
|
-
afterSidebarMenu: $(() => [
|
|
1880
|
-
d(s.$slots, "afterSidebarMenu"),
|
|
1881
|
-
d(s.$slots, "userMenu"),
|
|
1882
|
-
d(s.$slots, "locales", {}, () => [
|
|
1883
|
-
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(ie), {
|
|
1884
|
-
key: 0,
|
|
1885
|
-
"show-badges": b(t),
|
|
1886
|
-
class: "locales"
|
|
1887
|
-
}, {
|
|
1888
|
-
icon: $(() => [...o[0] || (o[0] = [
|
|
1889
|
-
S("img", {
|
|
1890
|
-
src: no,
|
|
1891
|
-
alt: "toggle icon"
|
|
1892
|
-
}, null, -1)
|
|
1893
|
-
])]),
|
|
1894
|
-
_: 1
|
|
1895
|
-
}, 8, ["show-badges"]))
|
|
1896
|
-
])
|
|
1897
|
-
]),
|
|
1898
|
-
_: 2
|
|
1899
|
-
}, [
|
|
1900
|
-
e.noFooter ? void 0 : {
|
|
1901
|
-
name: "footer",
|
|
1902
|
-
fn: $(() => [
|
|
1903
|
-
N(ce)
|
|
1904
|
-
]),
|
|
1905
|
-
key: "0"
|
|
1906
|
-
}
|
|
1907
|
-
]), 1032, ["menu", "no-header"]),
|
|
1908
|
-
S("main", null, [
|
|
1909
|
-
d(s.$slots, "default")
|
|
1910
|
-
])
|
|
1911
|
-
]));
|
|
1912
|
-
}
|
|
1913
|
-
}), so = { copyright: { disclaimer: "All rights reserved." } }, ro = { copyright: { disclaimer: "Tous droits réservés." } }, re = {
|
|
1914
|
-
en: so,
|
|
1915
|
-
fr: ro
|
|
1916
|
-
}, Ze = /* @__PURE__ */ Symbol.for(
|
|
1917
|
-
"dzangolab.vue-layout.translations"
|
|
1918
|
-
), io = () => it(Ze, re), yo = {
|
|
1919
|
-
install: (e, n) => {
|
|
1920
|
-
e.component("Layout", Wn);
|
|
1921
|
-
const t = n?.translations ? Ye(re, n.translations) : re;
|
|
1922
|
-
e.provide(Ze, t);
|
|
1923
|
-
}
|
|
1924
|
-
};
|
|
1925
|
-
export {
|
|
1926
|
-
Xn as N,
|
|
1927
|
-
Mn as _,
|
|
1928
|
-
ce as a,
|
|
1929
|
-
We as b,
|
|
1930
|
-
mo as c,
|
|
1931
|
-
ft as d,
|
|
1932
|
-
Wn as e,
|
|
1933
|
-
Qe as f,
|
|
1934
|
-
bn as g,
|
|
1935
|
-
Ge as h,
|
|
1936
|
-
go as i,
|
|
1937
|
-
vo as j,
|
|
1938
|
-
po as k,
|
|
1939
|
-
yo as p,
|
|
1940
|
-
io as u
|
|
1941
|
-
};
|