@prefabs.tech/vue3-layout 0.26.0 → 0.28.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/NavMenuItem-D1g_0h3M.js +4 -0
- package/dist/PrefabsTechVue3Layout.es.js +1 -1
- package/dist/PrefabsTechVue3Layout.umd.js +1 -1
- package/dist/{index-B9UIlN4I.js → index-BHKaumJA.js} +213 -200
- package/dist/src/layouts/BasicLayout.vue.d.ts +3 -0
- package/dist/src/layouts/BasicLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/SidebarHeaderLayout.vue.d.ts +3 -0
- package/dist/src/layouts/SidebarHeaderLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/SidebarOnlyLayout.vue.d.ts +3 -0
- package/dist/src/layouts/SidebarOnlyLayout.vue.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/NavMenuItem-BrK5aBfX.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useI18n as Ke, LocaleSwitcher as
|
|
2
|
-
import { defineComponent as x, computed as C, createElementBlock as v, openBlock as h, createTextVNode as
|
|
1
|
+
import { useI18n as Ke, LocaleSwitcher as ie, prependMessages as Ye } from "@prefabs.tech/vue3-i18n";
|
|
2
|
+
import { defineComponent as x, computed as C, createElementBlock as v, openBlock as h, createTextVNode as he, createElementVNode as S, toDisplayString as T, unref as b, 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
3
|
import { useConfig as q } from "@prefabs.tech/vue3-config";
|
|
4
4
|
import { useWindowSize as je } from "@vueuse/core";
|
|
5
5
|
import { ResponsiveMenu as lt } from "@prefabs.tech/vue3-ui";
|
|
6
|
-
import { useRoute as
|
|
6
|
+
import { useRoute as ae, useRouter as Fe } from "vue-router";
|
|
7
7
|
const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
8
8
|
name: "Copyright"
|
|
9
9
|
}, ft = /* @__PURE__ */ x({
|
|
@@ -22,17 +22,17 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
22
22
|
setup(e) {
|
|
23
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
24
|
return (i, l) => (h(), v("div", at, [
|
|
25
|
-
|
|
25
|
+
he(" © " + T(b(r)) + " ", 1),
|
|
26
26
|
S("a", {
|
|
27
27
|
href: e.url,
|
|
28
28
|
target: "_blank"
|
|
29
29
|
}, T(e.holder), 9, ct),
|
|
30
|
-
|
|
30
|
+
he(" " + T(o.value), 1)
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
33
|
}), dt = { class: "version" }, ht = {
|
|
34
34
|
name: "AppFooter"
|
|
35
|
-
},
|
|
35
|
+
}, ce = /* @__PURE__ */ x({
|
|
36
36
|
...ht,
|
|
37
37
|
setup(e) {
|
|
38
38
|
const n = q();
|
|
@@ -50,7 +50,7 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
50
50
|
])
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), Pe = /^[a-z0-9]+(-[a-z0-9]+)*$/, K = (e, n, t, s = "") => {
|
|
54
54
|
const o = e.split(":");
|
|
55
55
|
if (e.slice(0, 1) === "@") {
|
|
56
56
|
if (o.length < 2 || o.length > 3)
|
|
@@ -88,22 +88,22 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
88
88
|
return null;
|
|
89
89
|
}, U = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
90
90
|
// Check name: cannot be empty
|
|
91
|
-
((n && e.prefix === "" || e.prefix) && e.name) : !1,
|
|
91
|
+
((n && e.prefix === "" || e.prefix) && e.name) : !1, Ee = Object.freeze(
|
|
92
92
|
{
|
|
93
93
|
left: 0,
|
|
94
94
|
top: 0,
|
|
95
95
|
width: 16,
|
|
96
96
|
height: 16
|
|
97
97
|
}
|
|
98
|
-
),
|
|
98
|
+
), Z = Object.freeze({
|
|
99
99
|
rotate: 0,
|
|
100
100
|
vFlip: !1,
|
|
101
101
|
hFlip: !1
|
|
102
|
-
}),
|
|
103
|
-
...
|
|
104
|
-
...
|
|
105
|
-
}),
|
|
106
|
-
...
|
|
102
|
+
}), Y = Object.freeze({
|
|
103
|
+
...Ee,
|
|
104
|
+
...Z
|
|
105
|
+
}), te = Object.freeze({
|
|
106
|
+
...Y,
|
|
107
107
|
body: "",
|
|
108
108
|
hidden: !1
|
|
109
109
|
});
|
|
@@ -113,10 +113,10 @@ function pt(e, n) {
|
|
|
113
113
|
const s = ((e.rotate || 0) + (n.rotate || 0)) % 4;
|
|
114
114
|
return s && (t.rotate = s), t;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function me(e, n) {
|
|
117
117
|
const t = pt(e, n);
|
|
118
|
-
for (const s in
|
|
119
|
-
s in
|
|
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
120
|
return t;
|
|
121
121
|
}
|
|
122
122
|
function mt(e, n) {
|
|
@@ -137,14 +137,14 @@ function gt(e, n, t) {
|
|
|
137
137
|
const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
138
138
|
let r = {};
|
|
139
139
|
function i(l) {
|
|
140
|
-
r =
|
|
140
|
+
r = me(
|
|
141
141
|
s[l] || o[l],
|
|
142
142
|
r
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
|
-
return i(n), t.forEach(i),
|
|
145
|
+
return i(n), t.forEach(i), me(e, r);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Re(e, n) {
|
|
148
148
|
const t = [];
|
|
149
149
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
150
150
|
return t;
|
|
@@ -162,19 +162,19 @@ const vt = {
|
|
|
162
162
|
provider: "",
|
|
163
163
|
aliases: {},
|
|
164
164
|
not_found: {},
|
|
165
|
-
...
|
|
165
|
+
...Ee
|
|
166
166
|
};
|
|
167
|
-
function
|
|
167
|
+
function X(e, n) {
|
|
168
168
|
for (const t in n)
|
|
169
169
|
if (t in e && typeof e[t] != typeof n[t])
|
|
170
170
|
return !1;
|
|
171
171
|
return !0;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Be(e) {
|
|
174
174
|
if (typeof e != "object" || e === null)
|
|
175
175
|
return null;
|
|
176
176
|
const n = e;
|
|
177
|
-
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
177
|
+
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !X(e, vt))
|
|
178
178
|
return null;
|
|
179
179
|
const t = n.icons;
|
|
180
180
|
for (const o in t) {
|
|
@@ -183,9 +183,9 @@ function Oe(e) {
|
|
|
183
183
|
// Name cannot be empty
|
|
184
184
|
!o || // Must have body
|
|
185
185
|
typeof r.body != "string" || // Check other props
|
|
186
|
-
!
|
|
186
|
+
!X(
|
|
187
187
|
r,
|
|
188
|
-
|
|
188
|
+
te
|
|
189
189
|
)
|
|
190
190
|
)
|
|
191
191
|
return null;
|
|
@@ -197,16 +197,16 @@ function Oe(e) {
|
|
|
197
197
|
// Name cannot be empty
|
|
198
198
|
!o || // Parent must be set and point to existing icon
|
|
199
199
|
typeof i != "string" || !t[i] && !s[i] || // Check other props
|
|
200
|
-
!
|
|
200
|
+
!X(
|
|
201
201
|
r,
|
|
202
|
-
|
|
202
|
+
te
|
|
203
203
|
)
|
|
204
204
|
)
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
207
207
|
return n;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const ge = /* @__PURE__ */ Object.create(null);
|
|
210
210
|
function yt(e, n) {
|
|
211
211
|
return {
|
|
212
212
|
provider: e,
|
|
@@ -215,12 +215,12 @@ function yt(e, n) {
|
|
|
215
215
|
missing: /* @__PURE__ */ new Set()
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
const t =
|
|
218
|
+
function B(e, n) {
|
|
219
|
+
const t = ge[e] || (ge[e] = /* @__PURE__ */ Object.create(null));
|
|
220
220
|
return t[n] || (t[n] = yt(e, n));
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
return
|
|
222
|
+
function Oe(e, n) {
|
|
223
|
+
return Be(n) ? Re(n, (t, s) => {
|
|
224
224
|
s ? e.icons[t] = s : e.missing.add(t);
|
|
225
225
|
}) : [];
|
|
226
226
|
}
|
|
@@ -237,17 +237,17 @@ function He(e) {
|
|
|
237
237
|
return typeof e == "boolean" && (D = e), D;
|
|
238
238
|
}
|
|
239
239
|
function wt(e) {
|
|
240
|
-
const n = typeof e == "string" ?
|
|
240
|
+
const n = typeof e == "string" ? K(e, !0, D) : e;
|
|
241
241
|
if (n) {
|
|
242
|
-
const t =
|
|
242
|
+
const t = B(n.provider, n.prefix), s = n.name;
|
|
243
243
|
return t.icons[s] || (t.missing.has(s) ? null : void 0);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
function $t(e, n) {
|
|
247
|
-
const t =
|
|
247
|
+
const t = K(e, !0, D);
|
|
248
248
|
if (!t)
|
|
249
249
|
return !1;
|
|
250
|
-
const s =
|
|
250
|
+
const s = B(t.provider, t.prefix);
|
|
251
251
|
return n ? bt(s, t.name, n) : (s.missing.add(t.name), !0);
|
|
252
252
|
}
|
|
253
253
|
function kt(e, n) {
|
|
@@ -255,7 +255,7 @@ function kt(e, n) {
|
|
|
255
255
|
return !1;
|
|
256
256
|
if (typeof n != "string" && (n = e.provider || ""), D && !n && !e.prefix) {
|
|
257
257
|
let o = !1;
|
|
258
|
-
return
|
|
258
|
+
return Be(e) && (e.prefix = "", Re(e, (r, i) => {
|
|
259
259
|
$t(r, i) && (o = !0);
|
|
260
260
|
})), o;
|
|
261
261
|
}
|
|
@@ -265,8 +265,8 @@ function kt(e, n) {
|
|
|
265
265
|
name: "a"
|
|
266
266
|
}))
|
|
267
267
|
return !1;
|
|
268
|
-
const s =
|
|
269
|
-
return !!
|
|
268
|
+
const s = B(n, t);
|
|
269
|
+
return !!Oe(s, e);
|
|
270
270
|
}
|
|
271
271
|
const ze = Object.freeze({
|
|
272
272
|
width: null,
|
|
@@ -275,9 +275,9 @@ const ze = Object.freeze({
|
|
|
275
275
|
// Dimensions
|
|
276
276
|
...ze,
|
|
277
277
|
// Transformations
|
|
278
|
-
...
|
|
278
|
+
...Z
|
|
279
279
|
}), St = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Lt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
280
|
-
function
|
|
280
|
+
function ve(e, n, t) {
|
|
281
281
|
if (n === 1)
|
|
282
282
|
return e;
|
|
283
283
|
if (t = t || 100, typeof e == "number")
|
|
@@ -327,7 +327,7 @@ function Ct(e, n, t) {
|
|
|
327
327
|
const _t = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
328
328
|
function Mt(e, n) {
|
|
329
329
|
const t = {
|
|
330
|
-
...
|
|
330
|
+
...Y,
|
|
331
331
|
...e
|
|
332
332
|
}, s = {
|
|
333
333
|
...De,
|
|
@@ -340,11 +340,11 @@ function Mt(e, n) {
|
|
|
340
340
|
};
|
|
341
341
|
let r = t.body;
|
|
342
342
|
[t, s].forEach((w) => {
|
|
343
|
-
const p = [],
|
|
343
|
+
const p = [], F = w.hFlip, P = w.vFlip;
|
|
344
344
|
let A = w.rotate;
|
|
345
|
-
|
|
345
|
+
F ? P ? A += 2 : (p.push(
|
|
346
346
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
347
|
-
), p.push("scale(-1 1)"), o.top = o.left = 0) :
|
|
347
|
+
), p.push("scale(-1 1)"), o.top = o.left = 0) : P && (p.push(
|
|
348
348
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
349
349
|
), p.push("scale(1 -1)"), o.top = o.left = 0);
|
|
350
350
|
let _;
|
|
@@ -373,7 +373,7 @@ function Mt(e, n) {
|
|
|
373
373
|
});
|
|
374
374
|
const i = s.width, l = s.height, a = o.width, c = o.height;
|
|
375
375
|
let f, g;
|
|
376
|
-
i === null ? (g = l === null ? "1em" : l === "auto" ? c : l, f =
|
|
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
377
|
const u = {}, m = (w, p) => {
|
|
378
378
|
_t(p) || (u[w] = p.toString());
|
|
379
379
|
};
|
|
@@ -405,14 +405,14 @@ function jt(e, n = Nt) {
|
|
|
405
405
|
);
|
|
406
406
|
}), e = e.replace(new RegExp(o, "g"), ""), e;
|
|
407
407
|
}
|
|
408
|
-
const
|
|
409
|
-
function
|
|
410
|
-
|
|
408
|
+
const ne = /* @__PURE__ */ Object.create(null);
|
|
409
|
+
function Ft(e, n) {
|
|
410
|
+
ne[e] = n;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
return
|
|
412
|
+
function oe(e) {
|
|
413
|
+
return ne[e] || ne[""];
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function ue(e) {
|
|
416
416
|
let n;
|
|
417
417
|
if (typeof e.resources == "string")
|
|
418
418
|
n = [e.resources];
|
|
@@ -437,23 +437,23 @@ function ce(e) {
|
|
|
437
437
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
const
|
|
440
|
+
const fe = /* @__PURE__ */ Object.create(null), H = [
|
|
441
441
|
"https://api.simplesvg.com",
|
|
442
442
|
"https://api.unisvg.com"
|
|
443
443
|
], Q = [];
|
|
444
444
|
for (; H.length > 0; )
|
|
445
445
|
H.length === 1 || Math.random() > 0.5 ? Q.push(H.shift()) : Q.push(H.pop());
|
|
446
|
-
|
|
446
|
+
fe[""] = ue({
|
|
447
447
|
resources: ["https://api.iconify.design"].concat(Q)
|
|
448
448
|
});
|
|
449
|
-
function
|
|
450
|
-
const t =
|
|
451
|
-
return t === null ? !1 : (
|
|
449
|
+
function Pt(e, n) {
|
|
450
|
+
const t = ue(n);
|
|
451
|
+
return t === null ? !1 : (fe[e] = t, !0);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
return
|
|
453
|
+
function de(e) {
|
|
454
|
+
return fe[e];
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const Et = () => {
|
|
457
457
|
let e;
|
|
458
458
|
try {
|
|
459
459
|
if (e = fetch, typeof e == "function")
|
|
@@ -461,9 +461,9 @@ const Rt = () => {
|
|
|
461
461
|
} catch {
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
|
-
let
|
|
465
|
-
function
|
|
466
|
-
const t =
|
|
464
|
+
let ye = Et();
|
|
465
|
+
function Rt(e, n) {
|
|
466
|
+
const t = de(e);
|
|
467
467
|
if (!t)
|
|
468
468
|
return 0;
|
|
469
469
|
let s;
|
|
@@ -479,11 +479,11 @@ function Ft(e, n) {
|
|
|
479
479
|
}
|
|
480
480
|
return s;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Bt(e) {
|
|
483
483
|
return e === 404;
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
const s = [], o =
|
|
485
|
+
const Ot = (e, n, t) => {
|
|
486
|
+
const s = [], o = Rt(e, n), r = "icons";
|
|
487
487
|
let i = {
|
|
488
488
|
type: r,
|
|
489
489
|
provider: e,
|
|
@@ -501,14 +501,14 @@ const Bt = (e, n, t) => {
|
|
|
501
501
|
};
|
|
502
502
|
function Ht(e) {
|
|
503
503
|
if (typeof e == "string") {
|
|
504
|
-
const n =
|
|
504
|
+
const n = de(e);
|
|
505
505
|
if (n)
|
|
506
506
|
return n.path;
|
|
507
507
|
}
|
|
508
508
|
return "/";
|
|
509
509
|
}
|
|
510
510
|
const zt = (e, n, t) => {
|
|
511
|
-
if (!
|
|
511
|
+
if (!ye) {
|
|
512
512
|
t("abort", 424);
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
@@ -531,11 +531,11 @@ const zt = (e, n, t) => {
|
|
|
531
531
|
return;
|
|
532
532
|
}
|
|
533
533
|
let o = 503;
|
|
534
|
-
|
|
534
|
+
ye(e + s).then((r) => {
|
|
535
535
|
const i = r.status;
|
|
536
536
|
if (i !== 200) {
|
|
537
537
|
setTimeout(() => {
|
|
538
|
-
t(
|
|
538
|
+
t(Bt(i) ? "abort" : "next", i);
|
|
539
539
|
});
|
|
540
540
|
return;
|
|
541
541
|
}
|
|
@@ -554,7 +554,7 @@ const zt = (e, n, t) => {
|
|
|
554
554
|
t("next", o);
|
|
555
555
|
});
|
|
556
556
|
}, Dt = {
|
|
557
|
-
prepare:
|
|
557
|
+
prepare: Ot,
|
|
558
558
|
send: zt
|
|
559
559
|
};
|
|
560
560
|
function qt(e) {
|
|
@@ -573,7 +573,7 @@ function qt(e) {
|
|
|
573
573
|
if (s.name === o.name && s.prefix === o.prefix && s.provider === o.provider)
|
|
574
574
|
return;
|
|
575
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] =
|
|
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
577
|
let f;
|
|
578
578
|
l in c.icons ? f = n.loaded : i === "" || c.missing.has(l) ? f = n.missing : f = n.pending;
|
|
579
579
|
const g = {
|
|
@@ -646,7 +646,7 @@ function Qt(e, n, t) {
|
|
|
646
646
|
function Wt(e, n = !0, t = !1) {
|
|
647
647
|
const s = [];
|
|
648
648
|
return e.forEach((o) => {
|
|
649
|
-
const r = typeof o == "string" ?
|
|
649
|
+
const r = typeof o == "string" ? K(o, n, t) : o;
|
|
650
650
|
r && s.push(r);
|
|
651
651
|
}), s;
|
|
652
652
|
}
|
|
@@ -684,7 +684,7 @@ function Zt(e, n, t, s) {
|
|
|
684
684
|
function p(y, M) {
|
|
685
685
|
M && (m = []), typeof y == "function" && m.push(y);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function F() {
|
|
688
688
|
return {
|
|
689
689
|
startTime: l,
|
|
690
690
|
payload: n,
|
|
@@ -695,7 +695,7 @@ function Zt(e, n, t, s) {
|
|
|
695
695
|
abort: w
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function P() {
|
|
699
699
|
a = "failed", m.forEach((y) => {
|
|
700
700
|
y(void 0, f);
|
|
701
701
|
});
|
|
@@ -705,9 +705,9 @@ function Zt(e, n, t, s) {
|
|
|
705
705
|
y.status === "pending" && (y.status = "aborted");
|
|
706
706
|
}), u = [];
|
|
707
707
|
}
|
|
708
|
-
function _(y, M,
|
|
708
|
+
function _(y, M, O) {
|
|
709
709
|
const V = M !== "success";
|
|
710
|
-
switch (u = u.filter((
|
|
710
|
+
switch (u = u.filter((E) => E !== y), a) {
|
|
711
711
|
case "pending":
|
|
712
712
|
break;
|
|
713
713
|
case "failed":
|
|
@@ -718,22 +718,22 @@ function Zt(e, n, t, s) {
|
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
720
|
if (M === "abort") {
|
|
721
|
-
f =
|
|
721
|
+
f = O, P();
|
|
722
722
|
return;
|
|
723
723
|
}
|
|
724
724
|
if (V) {
|
|
725
|
-
f =
|
|
725
|
+
f = O, u.length || (i.length ? J() : P());
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
728
728
|
if (L(), A(), !e.random) {
|
|
729
|
-
const
|
|
730
|
-
|
|
729
|
+
const E = e.resources.indexOf(y.resource);
|
|
730
|
+
E !== -1 && E !== e.index && (e.index = E);
|
|
731
731
|
}
|
|
732
|
-
a = "completed", m.forEach((
|
|
733
|
-
|
|
732
|
+
a = "completed", m.forEach((E) => {
|
|
733
|
+
E(O);
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function J() {
|
|
737
737
|
if (a !== "pending")
|
|
738
738
|
return;
|
|
739
739
|
L();
|
|
@@ -741,23 +741,23 @@ function Zt(e, n, t, s) {
|
|
|
741
741
|
if (y === void 0) {
|
|
742
742
|
if (u.length) {
|
|
743
743
|
g = setTimeout(() => {
|
|
744
|
-
L(), a === "pending" && (A(),
|
|
744
|
+
L(), a === "pending" && (A(), P());
|
|
745
745
|
}, e.timeout);
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
|
-
|
|
748
|
+
P();
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
751
|
const M = {
|
|
752
752
|
status: "pending",
|
|
753
753
|
resource: y,
|
|
754
|
-
callback: (
|
|
755
|
-
_(M,
|
|
754
|
+
callback: (O, V) => {
|
|
755
|
+
_(M, O, V);
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
u.push(M), c++, g = setTimeout(
|
|
758
|
+
u.push(M), c++, g = setTimeout(J, e.rotate), t(y, n, M.callback);
|
|
759
759
|
}
|
|
760
|
-
return setTimeout(
|
|
760
|
+
return setTimeout(J), F;
|
|
761
761
|
}
|
|
762
762
|
function Ve(e) {
|
|
763
763
|
const n = {
|
|
@@ -792,42 +792,42 @@ function Ve(e) {
|
|
|
792
792
|
cleanup: s
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function be() {
|
|
796
796
|
}
|
|
797
|
-
const
|
|
797
|
+
const ee = /* @__PURE__ */ Object.create(null);
|
|
798
798
|
function Kt(e) {
|
|
799
|
-
if (!
|
|
800
|
-
const n =
|
|
799
|
+
if (!ee[e]) {
|
|
800
|
+
const n = de(e);
|
|
801
801
|
if (!n)
|
|
802
802
|
return;
|
|
803
803
|
const t = Ve(n), s = {
|
|
804
804
|
config: n,
|
|
805
805
|
redundancy: t
|
|
806
806
|
};
|
|
807
|
-
|
|
807
|
+
ee[e] = s;
|
|
808
808
|
}
|
|
809
|
-
return
|
|
809
|
+
return ee[e];
|
|
810
810
|
}
|
|
811
811
|
function Yt(e, n, t) {
|
|
812
812
|
let s, o;
|
|
813
813
|
if (typeof e == "string") {
|
|
814
|
-
const r =
|
|
814
|
+
const r = oe(e);
|
|
815
815
|
if (!r)
|
|
816
|
-
return t(void 0, 424),
|
|
816
|
+
return t(void 0, 424), be;
|
|
817
817
|
o = r.send;
|
|
818
818
|
const i = Kt(e);
|
|
819
819
|
i && (s = i.redundancy);
|
|
820
820
|
} else {
|
|
821
|
-
const r =
|
|
821
|
+
const r = ue(e);
|
|
822
822
|
if (r) {
|
|
823
823
|
s = Ve(r);
|
|
824
|
-
const i = e.resources ? e.resources[0] : "", l =
|
|
824
|
+
const i = e.resources ? e.resources[0] : "", l = oe(i);
|
|
825
825
|
l && (o = l.send);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
return !s || !o ? (t(void 0, 424),
|
|
828
|
+
return !s || !o ? (t(void 0, 424), be) : s.query(n, o, t)().abort;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function we() {
|
|
831
831
|
}
|
|
832
832
|
function Jt(e) {
|
|
833
833
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
@@ -837,7 +837,7 @@ function Jt(e) {
|
|
|
837
837
|
function Xt(e) {
|
|
838
838
|
const n = [], t = [];
|
|
839
839
|
return e.forEach((s) => {
|
|
840
|
-
(s.match(
|
|
840
|
+
(s.match(Pe) ? n : t).push(s);
|
|
841
841
|
}), {
|
|
842
842
|
valid: n,
|
|
843
843
|
invalid: t
|
|
@@ -852,7 +852,7 @@ function z(e, n, t) {
|
|
|
852
852
|
}
|
|
853
853
|
if (t && typeof t == "object")
|
|
854
854
|
try {
|
|
855
|
-
if (!
|
|
855
|
+
if (!Oe(e, t).length) {
|
|
856
856
|
s();
|
|
857
857
|
return;
|
|
858
858
|
}
|
|
@@ -861,7 +861,7 @@ function z(e, n, t) {
|
|
|
861
861
|
}
|
|
862
862
|
s(), Jt(e);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function $e(e, n) {
|
|
865
865
|
e instanceof Promise ? e.then((t) => {
|
|
866
866
|
n(t);
|
|
867
867
|
}).catch(() => {
|
|
@@ -876,7 +876,7 @@ function en(e, n) {
|
|
|
876
876
|
return;
|
|
877
877
|
const r = e.loadIcon;
|
|
878
878
|
if (e.loadIcons && (o.length > 1 || !r)) {
|
|
879
|
-
|
|
879
|
+
$e(
|
|
880
880
|
e.loadIcons(o, s, t),
|
|
881
881
|
(f) => {
|
|
882
882
|
z(e, o, f);
|
|
@@ -887,7 +887,7 @@ function en(e, n) {
|
|
|
887
887
|
if (r) {
|
|
888
888
|
o.forEach((f) => {
|
|
889
889
|
const g = r(f, s, t);
|
|
890
|
-
|
|
890
|
+
$e(g, (u) => {
|
|
891
891
|
const m = u ? {
|
|
892
892
|
prefix: s,
|
|
893
893
|
icons: {
|
|
@@ -902,7 +902,7 @@ function en(e, n) {
|
|
|
902
902
|
const { valid: i, invalid: l } = Xt(o);
|
|
903
903
|
if (l.length && z(e, l, null), !i.length)
|
|
904
904
|
return;
|
|
905
|
-
const a = s.match(
|
|
905
|
+
const a = s.match(Pe) ? oe(t) : null;
|
|
906
906
|
if (!a) {
|
|
907
907
|
z(e, i, null);
|
|
908
908
|
return;
|
|
@@ -923,7 +923,7 @@ const tn = (e, n) => {
|
|
|
923
923
|
s.loaded,
|
|
924
924
|
s.missing,
|
|
925
925
|
s.pending,
|
|
926
|
-
|
|
926
|
+
we
|
|
927
927
|
);
|
|
928
928
|
}), () => {
|
|
929
929
|
a = !1;
|
|
@@ -935,16 +935,16 @@ const tn = (e, n) => {
|
|
|
935
935
|
const { provider: c, prefix: f } = a;
|
|
936
936
|
if (f === l && c === i)
|
|
937
937
|
return;
|
|
938
|
-
i = c, l = f, r.push(
|
|
938
|
+
i = c, l = f, r.push(B(c, f));
|
|
939
939
|
const g = o[c] || (o[c] = /* @__PURE__ */ Object.create(null));
|
|
940
940
|
g[f] || (g[f] = []);
|
|
941
941
|
}), s.pending.forEach((a) => {
|
|
942
|
-
const { provider: c, prefix: f, name: g } = a, u =
|
|
942
|
+
const { provider: c, prefix: f, name: g } = a, u = B(c, f), m = u.pendingIcons || (u.pendingIcons = /* @__PURE__ */ new Set());
|
|
943
943
|
m.has(g) || (m.add(g), o[c][f].push(g));
|
|
944
944
|
}), r.forEach((a) => {
|
|
945
945
|
const c = o[a.provider][a.prefix];
|
|
946
946
|
c.length && en(a, c);
|
|
947
|
-
}), n ? Qt(n, s, r) :
|
|
947
|
+
}), n ? Qt(n, s, r) : we;
|
|
948
948
|
};
|
|
949
949
|
function nn(e, n) {
|
|
950
950
|
const t = {
|
|
@@ -1010,7 +1010,7 @@ function cn(e) {
|
|
|
1010
1010
|
function un(e) {
|
|
1011
1011
|
return 'url("' + cn(e) + '")';
|
|
1012
1012
|
}
|
|
1013
|
-
const
|
|
1013
|
+
const ke = {
|
|
1014
1014
|
...De,
|
|
1015
1015
|
inline: !1
|
|
1016
1016
|
}, fn = {
|
|
@@ -1020,34 +1020,34 @@ const $e = {
|
|
|
1020
1020
|
role: "img"
|
|
1021
1021
|
}, dn = {
|
|
1022
1022
|
display: "inline-block"
|
|
1023
|
-
},
|
|
1023
|
+
}, se = {
|
|
1024
1024
|
backgroundColor: "currentColor"
|
|
1025
1025
|
}, Ue = {
|
|
1026
1026
|
backgroundColor: "transparent"
|
|
1027
|
-
},
|
|
1027
|
+
}, Se = {
|
|
1028
1028
|
Image: "var(--svg)",
|
|
1029
1029
|
Repeat: "no-repeat",
|
|
1030
1030
|
Size: "100% 100%"
|
|
1031
|
-
},
|
|
1032
|
-
webkitMask:
|
|
1033
|
-
mask:
|
|
1031
|
+
}, Le = {
|
|
1032
|
+
webkitMask: se,
|
|
1033
|
+
mask: se,
|
|
1034
1034
|
background: Ue
|
|
1035
1035
|
};
|
|
1036
|
-
for (const e in
|
|
1037
|
-
const n =
|
|
1038
|
-
for (const t in
|
|
1039
|
-
n[e + t] =
|
|
1036
|
+
for (const e in Le) {
|
|
1037
|
+
const n = Le[e];
|
|
1038
|
+
for (const t in Se)
|
|
1039
|
+
n[e + t] = Se[t];
|
|
1040
1040
|
}
|
|
1041
1041
|
const W = {};
|
|
1042
1042
|
["horizontal", "vertical"].forEach((e) => {
|
|
1043
1043
|
const n = e.slice(0, 1) + "Flip";
|
|
1044
1044
|
W[e + "-flip"] = n, W[e.slice(0, 1) + "-flip"] = n, W[e + "Flip"] = n;
|
|
1045
1045
|
});
|
|
1046
|
-
function
|
|
1046
|
+
function xe(e) {
|
|
1047
1047
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1050
|
-
const t = nn(
|
|
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
1051
|
for (let w in n) {
|
|
1052
1052
|
const p = n[w];
|
|
1053
1053
|
if (p !== void 0)
|
|
@@ -1083,8 +1083,8 @@ const xe = (e, n) => {
|
|
|
1083
1083
|
p !== !0 && p !== "true" && delete s["aria-hidden"];
|
|
1084
1084
|
break;
|
|
1085
1085
|
default: {
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1086
|
+
const F = W[w];
|
|
1087
|
+
F ? (p === !0 || p === "true" || p === 1) && (t[F] = !0) : ke[w] === void 0 && (s[w] = p);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
@@ -1095,7 +1095,7 @@ const xe = (e, n) => {
|
|
|
1095
1095
|
...l
|
|
1096
1096
|
}, Object.assign(s, c);
|
|
1097
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"),
|
|
1098
|
+
return typeof p == "string" && (p = p.replace(/-/g, "_")), s.innerHTML = jt(a.body, p ? () => p + "ID" + w++ : "iconifyVue"), pe("svg", s);
|
|
1099
1099
|
}
|
|
1100
1100
|
const { body: f, width: g, height: u } = e, m = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), L = ln(f, {
|
|
1101
1101
|
...c,
|
|
@@ -1105,15 +1105,15 @@ const xe = (e, n) => {
|
|
|
1105
1105
|
return s.style = {
|
|
1106
1106
|
...r,
|
|
1107
1107
|
"--svg": un(L),
|
|
1108
|
-
width:
|
|
1109
|
-
height:
|
|
1108
|
+
width: xe(c.width),
|
|
1109
|
+
height: xe(c.height),
|
|
1110
1110
|
...dn,
|
|
1111
|
-
...m ?
|
|
1111
|
+
...m ? se : Ue,
|
|
1112
1112
|
...l
|
|
1113
|
-
},
|
|
1113
|
+
}, pe("span", s);
|
|
1114
1114
|
};
|
|
1115
1115
|
He(!0);
|
|
1116
|
-
|
|
1116
|
+
Ft("", Dt);
|
|
1117
1117
|
if (typeof document < "u" && typeof window < "u") {
|
|
1118
1118
|
const e = window;
|
|
1119
1119
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1138,7 +1138,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1138
1138
|
const o = n[t];
|
|
1139
1139
|
if (typeof o != "object" || !o || o.resources === void 0)
|
|
1140
1140
|
continue;
|
|
1141
|
-
|
|
1141
|
+
Pt(t, o) || console.error(s);
|
|
1142
1142
|
} catch {
|
|
1143
1143
|
console.error(s);
|
|
1144
1144
|
}
|
|
@@ -1146,9 +1146,9 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
const hn = {
|
|
1149
|
-
...
|
|
1149
|
+
...Y,
|
|
1150
1150
|
body: ""
|
|
1151
|
-
},
|
|
1151
|
+
}, Ce = x({
|
|
1152
1152
|
// Do not inherit other attributes: it is handled by render()
|
|
1153
1153
|
inheritAttrs: !1,
|
|
1154
1154
|
// Set initial data
|
|
@@ -1181,7 +1181,7 @@ const hn = {
|
|
|
1181
1181
|
data: e
|
|
1182
1182
|
};
|
|
1183
1183
|
let s;
|
|
1184
|
-
if (typeof e != "string" || (s =
|
|
1184
|
+
if (typeof e != "string" || (s = K(e, !1, !0)) === null)
|
|
1185
1185
|
return this.abortLoading(), null;
|
|
1186
1186
|
let o = wt(s);
|
|
1187
1187
|
if (!o)
|
|
@@ -1205,13 +1205,13 @@ const hn = {
|
|
|
1205
1205
|
this.counter;
|
|
1206
1206
|
const e = this.$attrs, n = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad, e.customise) : null;
|
|
1207
1207
|
if (!n)
|
|
1208
|
-
return
|
|
1208
|
+
return Ie(hn, e);
|
|
1209
1209
|
let t = e;
|
|
1210
1210
|
return n.classes && (t = {
|
|
1211
1211
|
...e,
|
|
1212
1212
|
class: (typeof e.class == "string" ? e.class + " " : "") + n.classes.join(" ")
|
|
1213
|
-
}),
|
|
1214
|
-
...
|
|
1213
|
+
}), Ie({
|
|
1214
|
+
...Y,
|
|
1215
1215
|
...n.data
|
|
1216
1216
|
}, t);
|
|
1217
1217
|
}
|
|
@@ -1242,7 +1242,7 @@ const hn = {
|
|
|
1242
1242
|
return t.replace("@", "").replace("/", " ");
|
|
1243
1243
|
}), i = n.alt || o?.logoAlt || r.value || s || "My App", l = n.src || o?.logo, a = n.route || o?.logoRoute || "home";
|
|
1244
1244
|
return (c, f) => {
|
|
1245
|
-
const g =
|
|
1245
|
+
const g = _e("router-link");
|
|
1246
1246
|
return h(), v("div", pn, [
|
|
1247
1247
|
d(c.$slots, "default", {}, () => [
|
|
1248
1248
|
N(g, {
|
|
@@ -1276,7 +1276,7 @@ const hn = {
|
|
|
1276
1276
|
},
|
|
1277
1277
|
emits: ["close"],
|
|
1278
1278
|
setup(e) {
|
|
1279
|
-
const n = e, t =
|
|
1279
|
+
const n = e, t = ae(), s = Fe(), o = C(() => {
|
|
1280
1280
|
let l = n.routes?.find(
|
|
1281
1281
|
(a) => a.route === t?.name
|
|
1282
1282
|
)?.route;
|
|
@@ -1325,9 +1325,9 @@ const hn = {
|
|
|
1325
1325
|
}, g = () => {
|
|
1326
1326
|
r.value = !r.value;
|
|
1327
1327
|
};
|
|
1328
|
-
return
|
|
1328
|
+
return Me(() => {
|
|
1329
1329
|
window.addEventListener("resize", f), window.addEventListener("load", f), f();
|
|
1330
|
-
}),
|
|
1330
|
+
}), Ae(() => {
|
|
1331
1331
|
window.removeEventListener("resize", f), window.removeEventListener("load", f);
|
|
1332
1332
|
}), n({
|
|
1333
1333
|
expanded: r
|
|
@@ -1341,11 +1341,11 @@ const hn = {
|
|
|
1341
1341
|
onClick: g
|
|
1342
1342
|
}, [
|
|
1343
1343
|
d(u.$slots, "toggle", {}, () => [
|
|
1344
|
-
r.value && !a.value ? (h(), I(b(
|
|
1344
|
+
r.value && !a.value ? (h(), I(b(Ce), {
|
|
1345
1345
|
key: 0,
|
|
1346
1346
|
icon: "prime:times",
|
|
1347
1347
|
height: "2rem"
|
|
1348
|
-
})) : (h(), I(b(
|
|
1348
|
+
})) : (h(), I(b(Ce), {
|
|
1349
1349
|
key: 1,
|
|
1350
1350
|
icon: "prime:bars",
|
|
1351
1351
|
height: "2rem"
|
|
@@ -1370,7 +1370,7 @@ const hn = {
|
|
|
1370
1370
|
d(u.$slots, "userMenu"),
|
|
1371
1371
|
d(u.$slots, "addon"),
|
|
1372
1372
|
d(u.$slots, "locales", {}, () => [
|
|
1373
|
-
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(
|
|
1373
|
+
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(ie), {
|
|
1374
1374
|
key: 0,
|
|
1375
1375
|
"show-badges": b(l),
|
|
1376
1376
|
class: "locales"
|
|
@@ -1394,7 +1394,7 @@ const hn = {
|
|
|
1394
1394
|
}, _n = {
|
|
1395
1395
|
name: "NavMenuItem",
|
|
1396
1396
|
components: {
|
|
1397
|
-
NavMenuItem: () => import("./NavMenuItem-
|
|
1397
|
+
NavMenuItem: () => import("./NavMenuItem-D1g_0h3M.js")
|
|
1398
1398
|
}
|
|
1399
1399
|
}, Mn = /* @__PURE__ */ x({
|
|
1400
1400
|
..._n,
|
|
@@ -1411,7 +1411,7 @@ const hn = {
|
|
|
1411
1411
|
},
|
|
1412
1412
|
emits: ["select:menu"],
|
|
1413
1413
|
setup(e, { emit: n }) {
|
|
1414
|
-
const t = e, s = n, o =
|
|
1414
|
+
const t = e, s = n, o = ae(), r = Fe(), i = j(!1), l = C(() => {
|
|
1415
1415
|
const u = o?.matched;
|
|
1416
1416
|
if (u?.length > 1) {
|
|
1417
1417
|
const m = u[u.length - 2];
|
|
@@ -1430,16 +1430,16 @@ const hn = {
|
|
|
1430
1430
|
return t.item.children?.length && (i.value = !!t.item.children.find(
|
|
1431
1431
|
(u) => o.name === u?.routeName
|
|
1432
1432
|
)), (u, m) => {
|
|
1433
|
-
const L =
|
|
1433
|
+
const L = _e("NavMenuItem", !0);
|
|
1434
1434
|
return h(), v("div", Sn, [
|
|
1435
1435
|
S("a", {
|
|
1436
|
-
class:
|
|
1436
|
+
class: R([{ active: a.value }, "link"]),
|
|
1437
1437
|
"aria-label": "open menu",
|
|
1438
1438
|
onClick: g
|
|
1439
1439
|
}, [
|
|
1440
1440
|
e.item.icon ? (h(), v("i", {
|
|
1441
1441
|
key: 0,
|
|
1442
|
-
class:
|
|
1442
|
+
class: R([
|
|
1443
1443
|
"icon",
|
|
1444
1444
|
e.item.icon,
|
|
1445
1445
|
{ "icon-only": !c.value && !e.sidebarActive }
|
|
@@ -1449,7 +1449,7 @@ const hn = {
|
|
|
1449
1449
|
e.sidebarActive ? (h(), v("span", xn, T(e.item.name), 1)) : k("", !0),
|
|
1450
1450
|
e.item.children && e.item.children.length ? (h(), v("span", In, [
|
|
1451
1451
|
(h(), v("svg", {
|
|
1452
|
-
class:
|
|
1452
|
+
class: R({ "up-chevron": i.value }),
|
|
1453
1453
|
viewBox: "0 0 24 24",
|
|
1454
1454
|
fill: "none",
|
|
1455
1455
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -1466,11 +1466,11 @@ const hn = {
|
|
|
1466
1466
|
N(Je, { name: "fade" }, {
|
|
1467
1467
|
default: $(() => [
|
|
1468
1468
|
e.item.children && e.item.children.length && i.value ? (h(), v("div", Cn, [
|
|
1469
|
-
(h(!0), v(
|
|
1469
|
+
(h(!0), v(Ne, null, le(e.item.children, (w, p) => (h(), I(L, {
|
|
1470
1470
|
key: w.name + "-" + p,
|
|
1471
1471
|
item: w,
|
|
1472
1472
|
"sidebar-active": e.sidebarActive,
|
|
1473
|
-
"onSelect:menu": m[0] || (m[0] = (
|
|
1473
|
+
"onSelect:menu": m[0] || (m[0] = (F) => u.$emit("select:menu"))
|
|
1474
1474
|
}, null, 8, ["item", "sidebar-active"]))), 128))
|
|
1475
1475
|
])) : k("", !0)
|
|
1476
1476
|
]),
|
|
@@ -1510,7 +1510,7 @@ const hn = {
|
|
|
1510
1510
|
}).filter(Boolean));
|
|
1511
1511
|
return (s, o) => (h(), v("nav", An, [
|
|
1512
1512
|
t.value?.length > 0 ? (h(), v("div", Nn, [
|
|
1513
|
-
(h(!0), v(
|
|
1513
|
+
(h(!0), v(Ne, null, le(t.value, (r, i) => (h(), I(Mn, {
|
|
1514
1514
|
key: r.name + "-" + i,
|
|
1515
1515
|
item: r,
|
|
1516
1516
|
"sidebar-active": e.sidebarActive,
|
|
@@ -1519,19 +1519,19 @@ const hn = {
|
|
|
1519
1519
|
])) : k("", !0)
|
|
1520
1520
|
]));
|
|
1521
1521
|
}
|
|
1522
|
-
}),
|
|
1522
|
+
}), Fn = {
|
|
1523
1523
|
key: 0,
|
|
1524
1524
|
class: "header"
|
|
1525
|
-
},
|
|
1525
|
+
}, Pn = { class: "title" }, En = {
|
|
1526
1526
|
key: 0,
|
|
1527
1527
|
viewBox: "0 0 24 24",
|
|
1528
1528
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1529
|
-
},
|
|
1529
|
+
}, Rn = {
|
|
1530
1530
|
key: 1,
|
|
1531
1531
|
class: "extend",
|
|
1532
1532
|
viewBox: "0 0 24 24",
|
|
1533
1533
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1534
|
-
},
|
|
1534
|
+
}, Bn = { class: "sidebar-menu-wrapper" }, On = { class: "nav" }, Hn = {
|
|
1535
1535
|
key: 1,
|
|
1536
1536
|
class: "footer"
|
|
1537
1537
|
}, zn = {
|
|
@@ -1558,7 +1558,7 @@ const hn = {
|
|
|
1558
1558
|
},
|
|
1559
1559
|
emits: ["select:menu"],
|
|
1560
1560
|
setup(e, { expose: n }) {
|
|
1561
|
-
const t = e, s = C(() => !r.value && t.collapsible ? !t.menu?.filter((i) => !!i.shortName)?.length : !1), o =
|
|
1561
|
+
const t = e, s = C(() => !r.value && t.collapsible ? !t.menu?.filter((i) => !!i.shortName)?.length : !1), o = Te(), r = j(!0);
|
|
1562
1562
|
return n({
|
|
1563
1563
|
sidebarActive: r
|
|
1564
1564
|
}), (i, l) => s.value ? (h(), v("div", {
|
|
@@ -1569,11 +1569,11 @@ const hn = {
|
|
|
1569
1569
|
r.value ? k("", !0) : (h(), v("img", zn))
|
|
1570
1570
|
])) : (h(), v("div", {
|
|
1571
1571
|
key: 0,
|
|
1572
|
-
class:
|
|
1572
|
+
class: R(["sidebar", { collapsible: e.collapsible }])
|
|
1573
1573
|
}, [
|
|
1574
|
-
e.noHeader ? k("", !0) : (h(), v("div",
|
|
1574
|
+
e.noHeader ? k("", !0) : (h(), v("div", Fn, [
|
|
1575
1575
|
N(Qe),
|
|
1576
|
-
S("div",
|
|
1576
|
+
S("div", Pn, [
|
|
1577
1577
|
d(i.$slots, "title")
|
|
1578
1578
|
]),
|
|
1579
1579
|
d(i.$slots, "toggleIcons", {}, () => [
|
|
@@ -1581,12 +1581,12 @@ const hn = {
|
|
|
1581
1581
|
class: "toggle",
|
|
1582
1582
|
onClick: l[0] || (l[0] = (a) => r.value = !r.value)
|
|
1583
1583
|
}, [
|
|
1584
|
-
r.value ? (h(), v("svg",
|
|
1584
|
+
r.value ? (h(), v("svg", En, l[3] || (l[3] = [
|
|
1585
1585
|
S("path", {
|
|
1586
1586
|
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",
|
|
1587
1587
|
fill: "currentColor"
|
|
1588
1588
|
}, null, -1)
|
|
1589
|
-
]))) : (h(), v("svg",
|
|
1589
|
+
]))) : (h(), v("svg", Rn, l[4] || (l[4] = [
|
|
1590
1590
|
S("path", {
|
|
1591
1591
|
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",
|
|
1592
1592
|
fill: "currentColor"
|
|
@@ -1595,9 +1595,9 @@ const hn = {
|
|
|
1595
1595
|
])
|
|
1596
1596
|
])
|
|
1597
1597
|
])),
|
|
1598
|
-
S("div",
|
|
1598
|
+
S("div", Bn, [
|
|
1599
1599
|
d(i.$slots, "default"),
|
|
1600
|
-
S("ul",
|
|
1600
|
+
S("ul", On, [
|
|
1601
1601
|
d(i.$slots, "links", {}, () => [
|
|
1602
1602
|
N(jn, {
|
|
1603
1603
|
menu: e.menu,
|
|
@@ -1626,7 +1626,7 @@ const hn = {
|
|
|
1626
1626
|
},
|
|
1627
1627
|
setup(e) {
|
|
1628
1628
|
return (n, t) => (h(), v("footer", {
|
|
1629
|
-
class:
|
|
1629
|
+
class: R(`sticky-collapsible ${e.fixed ? "fixed" : ""}`)
|
|
1630
1630
|
}, [
|
|
1631
1631
|
S("div", qn, [
|
|
1632
1632
|
d(n.$slots, "default")
|
|
@@ -1647,7 +1647,7 @@ const hn = {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
},
|
|
1649
1649
|
setup(e) {
|
|
1650
|
-
const n = e, t =
|
|
1650
|
+
const n = e, t = ae(), s = Te(), o = Object.keys(s);
|
|
1651
1651
|
let r = et(n.defaultLayout);
|
|
1652
1652
|
const i = C(() => tt(r.value));
|
|
1653
1653
|
return nt(
|
|
@@ -1662,13 +1662,13 @@ const hn = {
|
|
|
1662
1662
|
else
|
|
1663
1663
|
r.value = n.defaultLayout;
|
|
1664
1664
|
}
|
|
1665
|
-
), (l, a) => (h(), I(ot(i.value), null,
|
|
1665
|
+
), (l, a) => (h(), I(ot(i.value), null, G({
|
|
1666
1666
|
default: $(() => [
|
|
1667
1667
|
d(l.$slots, "default")
|
|
1668
1668
|
]),
|
|
1669
1669
|
_: 2
|
|
1670
1670
|
}, [
|
|
1671
|
-
|
|
1671
|
+
le(b(o), (c) => ({
|
|
1672
1672
|
name: c,
|
|
1673
1673
|
fn: $(() => [
|
|
1674
1674
|
d(l.$slots, c)
|
|
@@ -1681,6 +1681,7 @@ const hn = {
|
|
|
1681
1681
|
}, mo = /* @__PURE__ */ x({
|
|
1682
1682
|
...Zn,
|
|
1683
1683
|
props: {
|
|
1684
|
+
noFooter: Boolean,
|
|
1684
1685
|
noLocaleSwitcher: Boolean
|
|
1685
1686
|
},
|
|
1686
1687
|
setup(e) {
|
|
@@ -1717,8 +1718,8 @@ const hn = {
|
|
|
1717
1718
|
S("main", null, [
|
|
1718
1719
|
d(t.$slots, "default")
|
|
1719
1720
|
]),
|
|
1720
|
-
d(t.$slots, "footer", {}, () => [
|
|
1721
|
-
N(
|
|
1721
|
+
e.noFooter ? k("", !0) : d(t.$slots, "footer", { key: 0 }, () => [
|
|
1722
|
+
N(ce, null, {
|
|
1722
1723
|
copyright: $(() => [
|
|
1723
1724
|
d(t.$slots, "copyright")
|
|
1724
1725
|
]),
|
|
@@ -1758,6 +1759,7 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1758
1759
|
required: !0,
|
|
1759
1760
|
type: Array
|
|
1760
1761
|
},
|
|
1762
|
+
noFooter: Boolean,
|
|
1761
1763
|
noLocaleSwitcher: Boolean,
|
|
1762
1764
|
noSidebar: {
|
|
1763
1765
|
default: !1,
|
|
@@ -1775,25 +1777,25 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1775
1777
|
}, u = () => {
|
|
1776
1778
|
c.value || (i.value.sidebarActive = !1);
|
|
1777
1779
|
};
|
|
1778
|
-
return
|
|
1780
|
+
return Me(() => {
|
|
1779
1781
|
window.innerWidth < 576 && i.value && (i.value.sidebarActive = !1);
|
|
1780
|
-
}),
|
|
1782
|
+
}), Ae(() => {
|
|
1781
1783
|
window.removeEventListener("resize", g);
|
|
1782
1784
|
}), window.addEventListener("resize", g), g(), n({
|
|
1783
1785
|
onSelectMenu: u
|
|
1784
1786
|
}), (m, L) => (h(), v("div", {
|
|
1785
1787
|
"aria-expanded": c.value ? r.value?.expanded : i.value?.sidebarActive,
|
|
1786
|
-
class:
|
|
1788
|
+
class: R(["layout sidebar-header-layout", { collapsible: e.collapsible }])
|
|
1787
1789
|
}, [
|
|
1788
1790
|
d(m.$slots, "header", {}, () => [
|
|
1789
1791
|
st(N(We, {
|
|
1790
1792
|
ref_key: "appHeader",
|
|
1791
1793
|
ref: r,
|
|
1792
|
-
class:
|
|
1794
|
+
class: R({ "no-locale-switcher-header": e.noLocaleSwitcher }),
|
|
1793
1795
|
"no-locale-switcher": e.noLocaleSwitcher,
|
|
1794
1796
|
"no-toggle": !e.collapsible || e.noSidebar,
|
|
1795
1797
|
"no-main-menu": ""
|
|
1796
|
-
},
|
|
1798
|
+
}, G({
|
|
1797
1799
|
locales: $(() => [
|
|
1798
1800
|
d(m.$slots, "locales")
|
|
1799
1801
|
]),
|
|
@@ -1819,7 +1821,7 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1819
1821
|
"no-header": c.value,
|
|
1820
1822
|
class: "layout-sidebar",
|
|
1821
1823
|
"onSelect:menu": u
|
|
1822
|
-
}, {
|
|
1824
|
+
}, G({
|
|
1823
1825
|
afterNavLinks: $(() => [
|
|
1824
1826
|
d(m.$slots, "afterNavLinks")
|
|
1825
1827
|
]),
|
|
@@ -1827,20 +1829,25 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1827
1829
|
d(m.$slots, "afterSidebarMenu"),
|
|
1828
1830
|
f.value ? d(m.$slots, "userMenu", { key: 0 }) : k("", !0),
|
|
1829
1831
|
l.value ? d(m.$slots, "locales", { key: 1 }, () => [
|
|
1830
|
-
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(
|
|
1832
|
+
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(ie), {
|
|
1831
1833
|
key: 0,
|
|
1832
1834
|
"show-badges": b(s),
|
|
1833
1835
|
class: "locales"
|
|
1834
1836
|
}, null, 8, ["show-badges"]))
|
|
1835
1837
|
]) : k("", !0)
|
|
1836
1838
|
]),
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1839
|
+
_: 2
|
|
1840
|
+
}, [
|
|
1841
|
+
e.noFooter ? void 0 : {
|
|
1842
|
+
name: "footer",
|
|
1843
|
+
fn: $(() => [
|
|
1844
|
+
d(m.$slots, "footer", {}, () => [
|
|
1845
|
+
N(ce)
|
|
1846
|
+
])
|
|
1847
|
+
]),
|
|
1848
|
+
key: "0"
|
|
1849
|
+
}
|
|
1850
|
+
]), 1032, ["collapsible", "menu", "no-header"])) : k("", !0),
|
|
1844
1851
|
S("main", null, [
|
|
1845
1852
|
d(m.$slots, "default")
|
|
1846
1853
|
])
|
|
@@ -1853,6 +1860,7 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1853
1860
|
required: !0,
|
|
1854
1861
|
type: Array
|
|
1855
1862
|
},
|
|
1863
|
+
noFooter: Boolean,
|
|
1856
1864
|
noLocaleSwitcher: Boolean,
|
|
1857
1865
|
noHeader: {
|
|
1858
1866
|
default: !1,
|
|
@@ -1866,7 +1874,7 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1866
1874
|
menu: e.menu,
|
|
1867
1875
|
"no-header": e.noHeader,
|
|
1868
1876
|
class: "layout-sidebar"
|
|
1869
|
-
}, {
|
|
1877
|
+
}, G({
|
|
1870
1878
|
afterNavLinks: $(() => [
|
|
1871
1879
|
d(s.$slots, "afterNavLinks")
|
|
1872
1880
|
]),
|
|
@@ -1874,7 +1882,7 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1874
1882
|
d(s.$slots, "afterSidebarMenu"),
|
|
1875
1883
|
d(s.$slots, "userMenu"),
|
|
1876
1884
|
d(s.$slots, "locales", {}, () => [
|
|
1877
|
-
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(
|
|
1885
|
+
e.noLocaleSwitcher ? k("", !0) : (h(), I(b(ie), {
|
|
1878
1886
|
key: 0,
|
|
1879
1887
|
"show-badges": b(t),
|
|
1880
1888
|
class: "locales"
|
|
@@ -1889,32 +1897,37 @@ const Xn = /* @__PURE__ */ Yn(Kn, [["render", Jn]]), eo = /* @__PURE__ */ Object
|
|
|
1889
1897
|
}, 8, ["show-badges"]))
|
|
1890
1898
|
])
|
|
1891
1899
|
]),
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1900
|
+
_: 2
|
|
1901
|
+
}, [
|
|
1902
|
+
e.noFooter ? void 0 : {
|
|
1903
|
+
name: "footer",
|
|
1904
|
+
fn: $(() => [
|
|
1905
|
+
N(ce)
|
|
1906
|
+
]),
|
|
1907
|
+
key: "0"
|
|
1908
|
+
}
|
|
1909
|
+
]), 1032, ["menu", "no-header"]),
|
|
1897
1910
|
S("main", null, [
|
|
1898
1911
|
d(s.$slots, "default")
|
|
1899
1912
|
])
|
|
1900
1913
|
]));
|
|
1901
1914
|
}
|
|
1902
|
-
}), so = { copyright: { disclaimer: "All rights reserved." } }, ro = { copyright: { disclaimer: "Tous droits réservés." } },
|
|
1915
|
+
}), so = { copyright: { disclaimer: "All rights reserved." } }, ro = { copyright: { disclaimer: "Tous droits réservés." } }, re = {
|
|
1903
1916
|
en: so,
|
|
1904
1917
|
fr: ro
|
|
1905
1918
|
}, Ze = Symbol.for(
|
|
1906
1919
|
"dzangolab.vue-layout.translations"
|
|
1907
|
-
), io = () => it(Ze,
|
|
1920
|
+
), io = () => it(Ze, re), yo = {
|
|
1908
1921
|
install: (e, n) => {
|
|
1909
1922
|
e.component("Layout", Wn);
|
|
1910
|
-
const t = n?.translations ? Ye(
|
|
1923
|
+
const t = n?.translations ? Ye(re, n.translations) : re;
|
|
1911
1924
|
e.provide(Ze, t);
|
|
1912
1925
|
}
|
|
1913
1926
|
};
|
|
1914
1927
|
export {
|
|
1915
1928
|
Xn as N,
|
|
1916
1929
|
Mn as _,
|
|
1917
|
-
|
|
1930
|
+
ce as a,
|
|
1918
1931
|
We as b,
|
|
1919
1932
|
mo as c,
|
|
1920
1933
|
ft as d,
|