vue-stack-tabs 0.1.10 → 0.1.12
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/vue-stack-tabs.es.js +308 -306
- package/dist/vue-stack-tabs.umd.js +10 -10
- package/package.json +1 -1
- package/src/lib/hooks/useTabpanel.tsx +8 -7
- package/src/lib/index.ts +2 -1
- package/types/src/lib/index.d.ts +3 -1
|
@@ -189,7 +189,7 @@ const ao = /<\/?[\w\s="/.':;#-\/]+>/, oo = (e) => ao.test(e), Pe = " ", io = "\r
|
|
|
189
189
|
function uo(e) {
|
|
190
190
|
const t = e;
|
|
191
191
|
let n = 0, s = 1, a = 1, r = 0;
|
|
192
|
-
const o = (y) => t[y] === io && t[y + 1] === me, i = (y) => t[y] === me, l = (y) => t[y] === co, c = (y) => t[y] === lo, h = (y) => o(y) || i(y) || l(y) || c(y), _ = () => n, f = () => s, E = () => a,
|
|
192
|
+
const o = (y) => t[y] === io && t[y + 1] === me, i = (y) => t[y] === me, l = (y) => t[y] === co, c = (y) => t[y] === lo, h = (y) => o(y) || i(y) || l(y) || c(y), _ = () => n, f = () => s, E = () => a, O = () => r, I = (y) => o(y) || l(y) || c(y) ? me : t[y], S = () => I(n), d = () => I(n + r);
|
|
193
193
|
function p() {
|
|
194
194
|
return r = 0, h(n) && (s++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
195
195
|
}
|
|
@@ -212,7 +212,7 @@ function uo(e) {
|
|
|
212
212
|
index: _,
|
|
213
213
|
line: f,
|
|
214
214
|
column: E,
|
|
215
|
-
peekOffset:
|
|
215
|
+
peekOffset: O,
|
|
216
216
|
charAt: I,
|
|
217
217
|
currentChar: S,
|
|
218
218
|
currentPeek: d,
|
|
@@ -238,27 +238,27 @@ function _o(e, t = {}) {
|
|
|
238
238
|
inLinked: !1,
|
|
239
239
|
text: ""
|
|
240
240
|
}, c = () => l, { onError: h } = t;
|
|
241
|
-
function _(m, u, L, ...
|
|
241
|
+
function _(m, u, L, ...D) {
|
|
242
242
|
const $ = c();
|
|
243
243
|
if (u.column += L, u.offset += L, h) {
|
|
244
244
|
const j = n ? In($.startLoc, u) : null, Oe = Ot(m, j, {
|
|
245
245
|
domain: mo,
|
|
246
|
-
args:
|
|
246
|
+
args: D
|
|
247
247
|
});
|
|
248
248
|
h(Oe);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
function f(m, u, L) {
|
|
252
252
|
m.endLoc = r(), m.currentType = u;
|
|
253
|
-
const
|
|
254
|
-
return n && (
|
|
253
|
+
const D = { type: u };
|
|
254
|
+
return n && (D.loc = In(m.startLoc, m.endLoc)), L != null && (D.value = L), D;
|
|
255
255
|
}
|
|
256
256
|
const E = (m) => f(
|
|
257
257
|
m,
|
|
258
258
|
14
|
|
259
259
|
/* TokenTypes.EOF */
|
|
260
260
|
);
|
|
261
|
-
function
|
|
261
|
+
function O(m, u) {
|
|
262
262
|
return m.currentChar() === u ? (m.next(), u) : (_(U.EXPECTED_TOKEN, r(), 0, u), "");
|
|
263
263
|
}
|
|
264
264
|
function I(m) {
|
|
@@ -290,15 +290,15 @@ function _o(e, t = {}) {
|
|
|
290
290
|
if (L !== 2)
|
|
291
291
|
return !1;
|
|
292
292
|
I(m);
|
|
293
|
-
const
|
|
294
|
-
return m.resetPeek(),
|
|
293
|
+
const D = d(m.currentPeek());
|
|
294
|
+
return m.resetPeek(), D;
|
|
295
295
|
}
|
|
296
296
|
function g(m, u) {
|
|
297
297
|
const { currentType: L } = u;
|
|
298
298
|
if (L !== 2)
|
|
299
299
|
return !1;
|
|
300
300
|
I(m);
|
|
301
|
-
const
|
|
301
|
+
const D = m.currentPeek() === "-" ? m.peek() : m.currentPeek(), $ = p(D);
|
|
302
302
|
return m.resetPeek(), $;
|
|
303
303
|
}
|
|
304
304
|
function k(m, u) {
|
|
@@ -306,41 +306,41 @@ function _o(e, t = {}) {
|
|
|
306
306
|
if (L !== 2)
|
|
307
307
|
return !1;
|
|
308
308
|
I(m);
|
|
309
|
-
const
|
|
310
|
-
return m.resetPeek(),
|
|
309
|
+
const D = m.currentPeek() === Tr;
|
|
310
|
+
return m.resetPeek(), D;
|
|
311
311
|
}
|
|
312
312
|
function b(m, u) {
|
|
313
313
|
const { currentType: L } = u;
|
|
314
314
|
if (L !== 8)
|
|
315
315
|
return !1;
|
|
316
316
|
I(m);
|
|
317
|
-
const
|
|
318
|
-
return m.resetPeek(),
|
|
317
|
+
const D = m.currentPeek() === ".";
|
|
318
|
+
return m.resetPeek(), D;
|
|
319
319
|
}
|
|
320
320
|
function y(m, u) {
|
|
321
321
|
const { currentType: L } = u;
|
|
322
322
|
if (L !== 9)
|
|
323
323
|
return !1;
|
|
324
324
|
I(m);
|
|
325
|
-
const
|
|
326
|
-
return m.resetPeek(),
|
|
325
|
+
const D = d(m.currentPeek());
|
|
326
|
+
return m.resetPeek(), D;
|
|
327
327
|
}
|
|
328
328
|
function C(m, u) {
|
|
329
329
|
const { currentType: L } = u;
|
|
330
330
|
if (!(L === 8 || L === 12))
|
|
331
331
|
return !1;
|
|
332
332
|
I(m);
|
|
333
|
-
const
|
|
334
|
-
return m.resetPeek(),
|
|
333
|
+
const D = m.currentPeek() === ":";
|
|
334
|
+
return m.resetPeek(), D;
|
|
335
335
|
}
|
|
336
336
|
function T(m, u) {
|
|
337
337
|
const { currentType: L } = u;
|
|
338
338
|
if (L !== 10)
|
|
339
339
|
return !1;
|
|
340
|
-
const
|
|
340
|
+
const D = () => {
|
|
341
341
|
const j = m.currentPeek();
|
|
342
|
-
return j === "{" ? d(m.peek()) : j === "@" || j === "%" || j === "|" || j === ":" || j === "." || j === Pe || !j ? !1 : j === me ? (m.peek(),
|
|
343
|
-
}, $ =
|
|
342
|
+
return j === "{" ? d(m.peek()) : j === "@" || j === "%" || j === "|" || j === ":" || j === "." || j === Pe || !j ? !1 : j === me ? (m.peek(), D()) : d(j);
|
|
343
|
+
}, $ = D();
|
|
344
344
|
return m.resetPeek(), $;
|
|
345
345
|
}
|
|
346
346
|
function w(m) {
|
|
@@ -348,19 +348,19 @@ function _o(e, t = {}) {
|
|
|
348
348
|
const u = m.currentPeek() === "|";
|
|
349
349
|
return m.resetPeek(), u;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function F(m) {
|
|
352
352
|
const u = I(m), L = m.currentPeek() === "%" && m.peek() === "{";
|
|
353
353
|
return m.resetPeek(), {
|
|
354
354
|
isModulo: L,
|
|
355
355
|
hasSpace: u.length > 0
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function N(m, u = !0) {
|
|
359
359
|
const L = ($ = !1, j = "", Oe = !1) => {
|
|
360
360
|
const we = m.currentPeek();
|
|
361
361
|
return we === "{" ? j === "%" ? !1 : $ : we === "@" || !we ? j === "%" ? !0 : $ : we === "%" ? (m.peek(), L($, "%", !0)) : we === "|" ? j === "%" || Oe ? !0 : !(j === Pe || j === me) : we === Pe ? (m.peek(), L(!0, Pe, Oe)) : we === me ? (m.peek(), L(!0, me, Oe)) : !0;
|
|
362
|
-
},
|
|
363
|
-
return u && m.resetPeek(),
|
|
362
|
+
}, D = L();
|
|
363
|
+
return u && m.resetPeek(), D;
|
|
364
364
|
}
|
|
365
365
|
function M(m, u) {
|
|
366
366
|
const L = m.currentChar();
|
|
@@ -368,26 +368,26 @@ function _o(e, t = {}) {
|
|
|
368
368
|
}
|
|
369
369
|
function Z(m) {
|
|
370
370
|
return M(m, (L) => {
|
|
371
|
-
const
|
|
372
|
-
return
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
371
|
+
const D = L.charCodeAt(0);
|
|
372
|
+
return D >= 97 && D <= 122 || // a-z
|
|
373
|
+
D >= 65 && D <= 90 || // A-Z
|
|
374
|
+
D >= 48 && D <= 57 || // 0-9
|
|
375
|
+
D === 95 || // _
|
|
376
|
+
D === 36;
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
function K(m) {
|
|
380
380
|
return M(m, (L) => {
|
|
381
|
-
const
|
|
382
|
-
return
|
|
381
|
+
const D = L.charCodeAt(0);
|
|
382
|
+
return D >= 48 && D <= 57;
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
function te(m) {
|
|
386
386
|
return M(m, (L) => {
|
|
387
|
-
const
|
|
388
|
-
return
|
|
389
|
-
|
|
390
|
-
|
|
387
|
+
const D = L.charCodeAt(0);
|
|
388
|
+
return D >= 48 && D <= 57 || // 0-9
|
|
389
|
+
D >= 65 && D <= 70 || // A-F
|
|
390
|
+
D >= 97 && D <= 102;
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
function de(m) {
|
|
@@ -408,12 +408,12 @@ function _o(e, t = {}) {
|
|
|
408
408
|
if (L === "{" || L === "}" || L === "@" || L === "|" || !L)
|
|
409
409
|
break;
|
|
410
410
|
if (L === "%")
|
|
411
|
-
if (
|
|
411
|
+
if (N(m))
|
|
412
412
|
u += L, m.next();
|
|
413
413
|
else
|
|
414
414
|
break;
|
|
415
415
|
else if (L === Pe || L === me)
|
|
416
|
-
if (
|
|
416
|
+
if (N(m))
|
|
417
417
|
u += L, m.next();
|
|
418
418
|
else {
|
|
419
419
|
if (w(m))
|
|
@@ -438,13 +438,13 @@ function _o(e, t = {}) {
|
|
|
438
438
|
return m.currentChar() === "-" ? (m.next(), u += `-${de(m)}`) : u += de(m), m.currentChar() === He && _(U.UNTERMINATED_CLOSING_BRACE, r(), 0), u;
|
|
439
439
|
}
|
|
440
440
|
function Ee(m) {
|
|
441
|
-
S(m),
|
|
441
|
+
S(m), O(m, "'");
|
|
442
442
|
let u = "", L = "";
|
|
443
|
-
const
|
|
444
|
-
for (; u = M(m,
|
|
443
|
+
const D = (j) => j !== Tr && j !== me;
|
|
444
|
+
for (; u = M(m, D); )
|
|
445
445
|
u === "\\" ? L += ft(m) : L += u;
|
|
446
446
|
const $ = m.currentChar();
|
|
447
|
-
return $ === me || $ === He ? (_(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), $ === me && (m.next(),
|
|
447
|
+
return $ === me || $ === He ? (_(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), $ === me && (m.next(), O(m, "'")), L) : (O(m, "'"), L);
|
|
448
448
|
}
|
|
449
449
|
function ft(m) {
|
|
450
450
|
const u = m.currentChar();
|
|
@@ -461,23 +461,23 @@ function _o(e, t = {}) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function dt(m, u, L) {
|
|
464
|
-
|
|
465
|
-
let
|
|
464
|
+
O(m, u);
|
|
465
|
+
let D = "";
|
|
466
466
|
for (let $ = 0; $ < L; $++) {
|
|
467
467
|
const j = te(m);
|
|
468
468
|
if (!j) {
|
|
469
|
-
_(U.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${u}${
|
|
469
|
+
_(U.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${u}${D}${m.currentChar()}`);
|
|
470
470
|
break;
|
|
471
471
|
}
|
|
472
|
-
|
|
472
|
+
D += j;
|
|
473
473
|
}
|
|
474
|
-
return `\\${u}${
|
|
474
|
+
return `\\${u}${D}`;
|
|
475
475
|
}
|
|
476
476
|
function It(m) {
|
|
477
477
|
S(m);
|
|
478
478
|
let u = "", L = "";
|
|
479
|
-
const
|
|
480
|
-
for (; u = M(m,
|
|
479
|
+
const D = ($) => $ !== "{" && $ !== "}" && $ !== Pe && $ !== me;
|
|
480
|
+
for (; u = M(m, D); )
|
|
481
481
|
L += u;
|
|
482
482
|
return L;
|
|
483
483
|
}
|
|
@@ -488,15 +488,15 @@ function _o(e, t = {}) {
|
|
|
488
488
|
return L;
|
|
489
489
|
}
|
|
490
490
|
function St(m) {
|
|
491
|
-
const u = (L = !1,
|
|
491
|
+
const u = (L = !1, D) => {
|
|
492
492
|
const $ = m.currentChar();
|
|
493
|
-
return $ === "{" || $ === "%" || $ === "@" || $ === "|" || $ === "(" || $ === ")" || !$ || $ === Pe ?
|
|
493
|
+
return $ === "{" || $ === "%" || $ === "@" || $ === "|" || $ === "(" || $ === ")" || !$ || $ === Pe ? D : $ === me || $ === fo ? (D += $, m.next(), u(L, D)) : (D += $, m.next(), u(!0, D));
|
|
494
494
|
};
|
|
495
495
|
return u(!1, "");
|
|
496
496
|
}
|
|
497
497
|
function mt(m) {
|
|
498
498
|
S(m);
|
|
499
|
-
const u =
|
|
499
|
+
const u = O(
|
|
500
500
|
m,
|
|
501
501
|
"|"
|
|
502
502
|
/* TokenChars.Pipe */
|
|
@@ -542,16 +542,16 @@ function _o(e, t = {}) {
|
|
|
542
542
|
}
|
|
543
543
|
function We(m, u) {
|
|
544
544
|
const { currentType: L } = u;
|
|
545
|
-
let
|
|
545
|
+
let D = null;
|
|
546
546
|
const $ = m.currentChar();
|
|
547
547
|
switch ((L === 8 || L === 9 || L === 12 || L === 10) && ($ === me || $ === Pe) && _(U.INVALID_LINKED_FORMAT, r(), 0), $) {
|
|
548
548
|
case "@":
|
|
549
|
-
return m.next(),
|
|
549
|
+
return m.next(), D = f(
|
|
550
550
|
u,
|
|
551
551
|
8,
|
|
552
552
|
"@"
|
|
553
553
|
/* TokenChars.LinkedAlias */
|
|
554
|
-
), u.inLinked = !0,
|
|
554
|
+
), u.inLinked = !0, D;
|
|
555
555
|
case ".":
|
|
556
556
|
return S(m), m.next(), f(
|
|
557
557
|
u,
|
|
@@ -567,7 +567,7 @@ function _o(e, t = {}) {
|
|
|
567
567
|
/* TokenChars.LinkedDelimiter */
|
|
568
568
|
);
|
|
569
569
|
default:
|
|
570
|
-
return w(m) ? (
|
|
570
|
+
return w(m) ? (D = f(u, 1, mt(m)), u.braceNest = 0, u.inLinked = !1, D) : b(m, u) || C(m, u) ? (S(m), We(m, u)) : y(m, u) ? (S(m), f(u, 12, kt(m))) : T(m, u) ? (S(m), $ === "{" ? Je(m, u) || D : f(u, 11, St(m))) : (L === 8 && _(U.INVALID_LINKED_FORMAT, r(), 0), u.braceNest = 0, u.inLinked = !1, Qe(m, u));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function Qe(m, u) {
|
|
@@ -594,18 +594,18 @@ function _o(e, t = {}) {
|
|
|
594
594
|
default:
|
|
595
595
|
if (w(m))
|
|
596
596
|
return L = f(u, 1, mt(m)), u.braceNest = 0, u.inLinked = !1, L;
|
|
597
|
-
const { isModulo: $, hasSpace: j } =
|
|
597
|
+
const { isModulo: $, hasSpace: j } = F(m);
|
|
598
598
|
if ($)
|
|
599
599
|
return j ? f(u, 0, Ce(m)) : f(u, 4, Ve(m));
|
|
600
|
-
if (
|
|
600
|
+
if (N(m))
|
|
601
601
|
return f(u, 0, Ce(m));
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
604
|
return L;
|
|
605
605
|
}
|
|
606
606
|
function At() {
|
|
607
|
-
const { currentType: m, offset: u, startLoc: L, endLoc:
|
|
608
|
-
return l.lastType = m, l.lastOffset = u, l.lastStartLoc = L, l.lastEndLoc =
|
|
607
|
+
const { currentType: m, offset: u, startLoc: L, endLoc: D } = l;
|
|
608
|
+
return l.lastType = m, l.lastOffset = u, l.lastStartLoc = L, l.lastEndLoc = D, l.offset = a(), l.startLoc = r(), s.currentChar() === He ? f(
|
|
609
609
|
l,
|
|
610
610
|
14
|
|
611
611
|
/* TokenTypes.EOF */
|
|
@@ -739,7 +739,7 @@ function bo(e = {}) {
|
|
|
739
739
|
const y = p.currentType === 1 ? p.lastOffset : d.currentOffset(), C = p.currentType === 1 ? p.lastEndLoc : d.currentPosition();
|
|
740
740
|
return r(k, y, C), k;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function O(d, p, v, g) {
|
|
743
743
|
const k = d.context();
|
|
744
744
|
let b = g.items.length === 0;
|
|
745
745
|
const y = a(1, p, v);
|
|
@@ -752,7 +752,7 @@ function bo(e = {}) {
|
|
|
752
752
|
}
|
|
753
753
|
function I(d) {
|
|
754
754
|
const p = d.context(), { offset: v, startLoc: g } = p, k = E(d);
|
|
755
|
-
return p.currentType === 14 ? k :
|
|
755
|
+
return p.currentType === 14 ? k : O(d, v, g, k);
|
|
756
756
|
}
|
|
757
757
|
function S(d) {
|
|
758
758
|
const p = _o(d, Ps({}, e)), v = p.context(), g = a(0, v.offset, v.startLoc);
|
|
@@ -1295,9 +1295,9 @@ function xo(e) {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
1297
|
function E() {
|
|
1298
|
-
const
|
|
1299
|
-
if (s === 5 &&
|
|
1300
|
-
return n++, i = "\\" +
|
|
1298
|
+
const O = e[n + 1];
|
|
1299
|
+
if (s === 5 && O === "'" || s === 6 && O === '"')
|
|
1300
|
+
return n++, i = "\\" + O, f[
|
|
1301
1301
|
0
|
|
1302
1302
|
/* Actions.APPEND */
|
|
1303
1303
|
](), !0;
|
|
@@ -1349,7 +1349,7 @@ function Xo(e = {}) {
|
|
|
1349
1349
|
const p = X(e.messages) ? e.messages(d) : G(e.messages) ? e.messages[d] : !1;
|
|
1350
1350
|
return p || (e.parent ? e.parent.message(d) : Wo);
|
|
1351
1351
|
}
|
|
1352
|
-
const _ = (d) => e.modifiers ? e.modifiers[d] : Vo, f = V(e.processor) && X(e.processor.normalize) ? e.processor.normalize : Ho, E = V(e.processor) && X(e.processor.interpolate) ? e.processor.interpolate : Go,
|
|
1352
|
+
const _ = (d) => e.modifiers ? e.modifiers[d] : Vo, f = V(e.processor) && X(e.processor.normalize) ? e.processor.normalize : Ho, E = V(e.processor) && X(e.processor.interpolate) ? e.processor.interpolate : Go, O = V(e.processor) && R(e.processor.type) ? e.processor.type : Bo, S = {
|
|
1353
1353
|
list: i,
|
|
1354
1354
|
named: c,
|
|
1355
1355
|
plural: r,
|
|
@@ -1364,7 +1364,7 @@ function Xo(e = {}) {
|
|
|
1364
1364
|
return b ? _(b)(C, k) : C;
|
|
1365
1365
|
},
|
|
1366
1366
|
message: h,
|
|
1367
|
-
type:
|
|
1367
|
+
type: O,
|
|
1368
1368
|
interpolate: E,
|
|
1369
1369
|
normalize: f,
|
|
1370
1370
|
values: ue({}, o, l)
|
|
@@ -1537,11 +1537,11 @@ const Cr = (e) => {
|
|
|
1537
1537
|
}, ci = () => Vs;
|
|
1538
1538
|
let wr = 0;
|
|
1539
1539
|
function ui(e = {}) {
|
|
1540
|
-
const t = X(e.onWarn) ? e.onWarn : Ja, n = R(e.version) ? e.version : ri, s = R(e.locale) || X(e.locale) ? e.locale : Et, a = X(s) ? Et : s, r = q(e.fallbackLocale) || V(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : { [a]: {} }, i = V(e.datetimeFormats) ? e.datetimeFormats : { [a]: {} }, l = V(e.numberFormats) ? e.numberFormats : { [a]: {} }, c = ue({}, e.modifiers || {}, si()), h = e.pluralRules || {}, _ = X(e.missing) ? e.missing : null, f = B(e.missingWarn) || Ke(e.missingWarn) ? e.missingWarn : !0, E = B(e.fallbackWarn) || Ke(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
1540
|
+
const t = X(e.onWarn) ? e.onWarn : Ja, n = R(e.version) ? e.version : ri, s = R(e.locale) || X(e.locale) ? e.locale : Et, a = X(s) ? Et : s, r = q(e.fallbackLocale) || V(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : { [a]: {} }, i = V(e.datetimeFormats) ? e.datetimeFormats : { [a]: {} }, l = V(e.numberFormats) ? e.numberFormats : { [a]: {} }, c = ue({}, e.modifiers || {}, si()), h = e.pluralRules || {}, _ = X(e.missing) ? e.missing : null, f = B(e.missingWarn) || Ke(e.missingWarn) ? e.missingWarn : !0, E = B(e.fallbackWarn) || Ke(e.fallbackWarn) ? e.fallbackWarn : !0, O = !!e.fallbackFormat, I = !!e.unresolving, S = X(e.postTranslation) ? e.postTranslation : null, d = V(e.processor) ? e.processor : null, p = B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, g = X(e.messageCompiler) ? e.messageCompiler : Fs;
|
|
1541
1541
|
process.env.NODE_ENV !== "production" && X(e.messageCompiler) && ws(ct(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1542
|
-
const k = X(e.messageResolver) ? e.messageResolver : xs || Uo, b = X(e.localeFallbacker) ? e.localeFallbacker : Us || ei, y = G(e.fallbackContext) ? e.fallbackContext : void 0, C = e, T = G(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), w = G(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(),
|
|
1542
|
+
const k = X(e.messageResolver) ? e.messageResolver : xs || Uo, b = X(e.localeFallbacker) ? e.localeFallbacker : Us || ei, y = G(e.fallbackContext) ? e.fallbackContext : void 0, C = e, T = G(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), w = G(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), F = G(C.__meta) ? C.__meta : {};
|
|
1543
1543
|
wr++;
|
|
1544
|
-
const
|
|
1544
|
+
const N = {
|
|
1545
1545
|
version: n,
|
|
1546
1546
|
cid: wr,
|
|
1547
1547
|
locale: s,
|
|
@@ -1552,7 +1552,7 @@ function ui(e = {}) {
|
|
|
1552
1552
|
missing: _,
|
|
1553
1553
|
missingWarn: f,
|
|
1554
1554
|
fallbackWarn: E,
|
|
1555
|
-
fallbackFormat:
|
|
1555
|
+
fallbackFormat: O,
|
|
1556
1556
|
unresolving: I,
|
|
1557
1557
|
postTranslation: S,
|
|
1558
1558
|
processor: d,
|
|
@@ -1563,9 +1563,9 @@ function ui(e = {}) {
|
|
|
1563
1563
|
localeFallbacker: b,
|
|
1564
1564
|
fallbackContext: y,
|
|
1565
1565
|
onWarn: t,
|
|
1566
|
-
__meta:
|
|
1566
|
+
__meta: F
|
|
1567
1567
|
};
|
|
1568
|
-
return
|
|
1568
|
+
return N.datetimeFormats = i, N.numberFormats = l, N.__datetimeFormatters = T, N.__numberFormatters = w, process.env.NODE_ENV !== "production" && (N.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ko(N, n, F), N;
|
|
1569
1569
|
}
|
|
1570
1570
|
function mn(e, t) {
|
|
1571
1571
|
return e instanceof RegExp ? e.test(t) : e;
|
|
@@ -1698,14 +1698,14 @@ function _i(e, t) {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
const Rr = () => "", be = (e) => X(e);
|
|
1700
1700
|
function Mr(e, ...t) {
|
|
1701
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: i } = e, [l, c] = Sn(...t), h = B(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = B(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = B(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, E = !!c.resolvedMessage,
|
|
1701
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: i } = e, [l, c] = Sn(...t), h = B(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = B(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = B(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, E = !!c.resolvedMessage, O = R(c.default) || B(c.default) ? B(c.default) ? r ? l : () => l : c.default : n ? r ? l : () => l : "", I = n || O !== "", S = er(e, c);
|
|
1702
1702
|
f && hi(c);
|
|
1703
1703
|
let [d, p, v] = E ? [
|
|
1704
1704
|
l,
|
|
1705
1705
|
S,
|
|
1706
1706
|
i[S] || {}
|
|
1707
1707
|
] : js(e, l, S, o, _, h), g = d, k = l;
|
|
1708
|
-
if (!E && !(R(g) || qe(g) || be(g)) && I && (g =
|
|
1708
|
+
if (!E && !(R(g) || qe(g) || be(g)) && I && (g = O, k = g), !E && (!(R(g) || qe(g) || be(g)) || !R(p)))
|
|
1709
1709
|
return a ? dn : l;
|
|
1710
1710
|
if (process.env.NODE_ENV !== "production" && R(g) && e.messageCompiler == null)
|
|
1711
1711
|
return `${l}`, l;
|
|
@@ -1715,18 +1715,18 @@ function Mr(e, ...t) {
|
|
|
1715
1715
|
}, C = be(g) ? g : Ys(e, l, p, g, k, y);
|
|
1716
1716
|
if (b)
|
|
1717
1717
|
return g;
|
|
1718
|
-
const T = vi(e, p, v, c), w = Xo(T),
|
|
1718
|
+
const T = vi(e, p, v, c), w = Xo(T), F = pi(e, C, w), N = s ? s(F, l) : F;
|
|
1719
1719
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1720
1720
|
const M = {
|
|
1721
1721
|
timestamp: Date.now(),
|
|
1722
1722
|
key: R(l) ? l : be(g) ? g.key : "",
|
|
1723
1723
|
locale: p || (be(g) ? g.locale : ""),
|
|
1724
1724
|
format: R(g) ? g : be(g) ? g.source : "",
|
|
1725
|
-
message:
|
|
1725
|
+
message: N
|
|
1726
1726
|
};
|
|
1727
1727
|
M.meta = ue({}, e.__meta, /* @__PURE__ */ li() || {}), qo(M);
|
|
1728
1728
|
}
|
|
1729
|
-
return
|
|
1729
|
+
return N;
|
|
1730
1730
|
}
|
|
1731
1731
|
function hi(e) {
|
|
1732
1732
|
q(e.list) ? e.list = e.list.map((t) => R(t) ? gr(t) : t) : G(e.named) && Object.keys(e.named).forEach((t) => {
|
|
@@ -1735,7 +1735,7 @@ function hi(e) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
function js(e, t, n, s, a, r) {
|
|
1737
1737
|
const { messages: o, onWarn: i, messageResolver: l, localeFallbacker: c } = e, h = c(e, s, n);
|
|
1738
|
-
let _ = {}, f, E = null,
|
|
1738
|
+
let _ = {}, f, E = null, O = n, I = null;
|
|
1739
1739
|
const S = "translate";
|
|
1740
1740
|
for (let d = 0; d < h.length; d++) {
|
|
1741
1741
|
if (f = I = h[d], process.env.NODE_ENV !== "production" && n !== f && mn(a, t) && i(ct(_e.FALLBACK_TO_TRANSLATE, {
|
|
@@ -1746,7 +1746,7 @@ function js(e, t, n, s, a, r) {
|
|
|
1746
1746
|
b && b.emit("fallback", {
|
|
1747
1747
|
type: S,
|
|
1748
1748
|
key: t,
|
|
1749
|
-
from:
|
|
1749
|
+
from: O,
|
|
1750
1750
|
to: I,
|
|
1751
1751
|
groupId: `${S}:${t}`
|
|
1752
1752
|
});
|
|
@@ -1773,7 +1773,7 @@ function js(e, t, n, s, a, r) {
|
|
|
1773
1773
|
r,
|
|
1774
1774
|
S
|
|
1775
1775
|
);
|
|
1776
|
-
k !== t && (E = k),
|
|
1776
|
+
k !== t && (E = k), O = I;
|
|
1777
1777
|
}
|
|
1778
1778
|
return [E, f, _];
|
|
1779
1779
|
}
|
|
@@ -1856,19 +1856,19 @@ function vi(e, t, n, s) {
|
|
|
1856
1856
|
modifiers: a,
|
|
1857
1857
|
pluralRules: r,
|
|
1858
1858
|
messages: (E) => {
|
|
1859
|
-
let
|
|
1860
|
-
if (
|
|
1859
|
+
let O = o(n, E);
|
|
1860
|
+
if (O == null && h) {
|
|
1861
1861
|
const [, , I] = js(h, E, t, i, l, c);
|
|
1862
|
-
|
|
1862
|
+
O = o(I, E);
|
|
1863
1863
|
}
|
|
1864
|
-
if (R(
|
|
1864
|
+
if (R(O) || qe(O)) {
|
|
1865
1865
|
let I = !1;
|
|
1866
|
-
const d = Ys(e, E, t,
|
|
1866
|
+
const d = Ys(e, E, t, O, E, () => {
|
|
1867
1867
|
I = !0;
|
|
1868
1868
|
});
|
|
1869
1869
|
return I ? Rr : d;
|
|
1870
1870
|
} else
|
|
1871
|
-
return be(
|
|
1871
|
+
return be(O) ? O : Rr;
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
1874
|
return e.processor && (f.processor = e.processor), s.list && (f.list = s.list), s.named && (f.named = s.named), re(s.plural) && (f.pluralIndex = s.plural), f;
|
|
@@ -1881,7 +1881,7 @@ function Fr(e, ...t) {
|
|
|
1881
1881
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1882
1882
|
if (process.env.NODE_ENV !== "production" && !Xs.dateTimeFormat)
|
|
1883
1883
|
return r(ct(_e.CANNOT_FORMAT_DATE)), sn;
|
|
1884
|
-
const [l, c, h, _] = An(...t), f = B(h.missingWarn) ? h.missingWarn : e.missingWarn, E = B(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn,
|
|
1884
|
+
const [l, c, h, _] = An(...t), f = B(h.missingWarn) ? h.missingWarn : e.missingWarn, E = B(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, O = !!h.part, I = er(e, h), S = o(
|
|
1885
1885
|
e,
|
|
1886
1886
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1887
1887
|
a,
|
|
@@ -1914,7 +1914,7 @@ function Fr(e, ...t) {
|
|
|
1914
1914
|
let y = `${p}__${l}`;
|
|
1915
1915
|
fn(_) || (y = `${y}__${JSON.stringify(_)}`);
|
|
1916
1916
|
let C = i.get(y);
|
|
1917
|
-
return C || (C = new Intl.DateTimeFormat(p, ue({}, v, _)), i.set(y, C)),
|
|
1917
|
+
return C || (C = new Intl.DateTimeFormat(p, ue({}, v, _)), i.set(y, C)), O ? C.formatToParts(c) : C.format(c);
|
|
1918
1918
|
}
|
|
1919
1919
|
const zs = [
|
|
1920
1920
|
"localeMatcher",
|
|
@@ -1975,7 +1975,7 @@ function Ur(e, ...t) {
|
|
|
1975
1975
|
const { numberFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
1976
1976
|
if (process.env.NODE_ENV !== "production" && !Xs.numberFormat)
|
|
1977
1977
|
return r(ct(_e.CANNOT_FORMAT_NUMBER)), sn;
|
|
1978
|
-
const [l, c, h, _] = Cn(...t), f = B(h.missingWarn) ? h.missingWarn : e.missingWarn, E = B(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn,
|
|
1978
|
+
const [l, c, h, _] = Cn(...t), f = B(h.missingWarn) ? h.missingWarn : e.missingWarn, E = B(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, O = !!h.part, I = er(e, h), S = o(
|
|
1979
1979
|
e,
|
|
1980
1980
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1981
1981
|
a,
|
|
@@ -2008,7 +2008,7 @@ function Ur(e, ...t) {
|
|
|
2008
2008
|
let y = `${p}__${l}`;
|
|
2009
2009
|
fn(_) || (y = `${y}__${JSON.stringify(_)}`);
|
|
2010
2010
|
let C = i.get(y);
|
|
2011
|
-
return C || (C = new Intl.NumberFormat(p, ue({}, v, _)), i.set(y, C)),
|
|
2011
|
+
return C || (C = new Intl.NumberFormat(p, ue({}, v, _)), i.set(y, C)), O ? C.formatToParts(c) : C.format(c);
|
|
2012
2012
|
}
|
|
2013
2013
|
const Ks = [
|
|
2014
2014
|
"localeMatcher",
|
|
@@ -2335,7 +2335,7 @@ function nr(e = {}, t) {
|
|
|
2335
2335
|
// prettier-ignore
|
|
2336
2336
|
n && l ? n.fallbackLocale.value : R(e.fallbackLocale) || q(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
2337
2337
|
), _ = o(_n(c.value, e)), f = o(V(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), E = o(V(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
2338
|
-
let
|
|
2338
|
+
let O = n ? n.missingWarn : B(e.missingWarn) || Ke(e.missingWarn) ? e.missingWarn : !0, I = n ? n.fallbackWarn : B(e.fallbackWarn) || Ke(e.fallbackWarn) ? e.fallbackWarn : !0, S = n ? n.fallbackRoot : B(e.fallbackRoot) ? e.fallbackRoot : !0, d = !!e.fallbackFormat, p = X(e.missing) ? e.missing : null, v = X(e.missing) ? Gr(e.missing) : null, g = X(e.postTranslation) ? e.postTranslation : null, k = n ? n.warnHtmlMessage : B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
|
|
2339
2339
|
const y = n ? n.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2340
2340
|
let C = e.pluralRules || n && n.pluralRules, T;
|
|
2341
2341
|
T = (() => {
|
|
@@ -2348,7 +2348,7 @@ function nr(e = {}, t) {
|
|
|
2348
2348
|
modifiers: y,
|
|
2349
2349
|
pluralRules: C,
|
|
2350
2350
|
missing: v === null ? void 0 : v,
|
|
2351
|
-
missingWarn:
|
|
2351
|
+
missingWarn: O,
|
|
2352
2352
|
fallbackWarn: I,
|
|
2353
2353
|
fallbackFormat: d,
|
|
2354
2354
|
unresolving: !0,
|
|
@@ -2363,7 +2363,7 @@ function nr(e = {}, t) {
|
|
|
2363
2363
|
const P = ui(A);
|
|
2364
2364
|
return a && Cr(P), P;
|
|
2365
2365
|
})(), Ct(T, c.value, h.value);
|
|
2366
|
-
function
|
|
2366
|
+
function F() {
|
|
2367
2367
|
return [
|
|
2368
2368
|
c.value,
|
|
2369
2369
|
h.value,
|
|
@@ -2372,7 +2372,7 @@ function nr(e = {}, t) {
|
|
|
2372
2372
|
E.value
|
|
2373
2373
|
];
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const N = ce({
|
|
2376
2376
|
get: () => c.value,
|
|
2377
2377
|
set: (A) => {
|
|
2378
2378
|
c.value = A, T.locale = c.value;
|
|
@@ -2399,7 +2399,7 @@ function nr(e = {}, t) {
|
|
|
2399
2399
|
return A !== "translate" || !P.resolvedMessage;
|
|
2400
2400
|
}
|
|
2401
2401
|
const Ee = (A, P, Y, ee, Be, Yt) => {
|
|
2402
|
-
|
|
2402
|
+
F();
|
|
2403
2403
|
let _t;
|
|
2404
2404
|
try {
|
|
2405
2405
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (T.fallbackContext = n ? ci() : void 0), _t = A(T);
|
|
@@ -2409,7 +2409,7 @@ function nr(e = {}, t) {
|
|
|
2409
2409
|
if (Y !== "translate exists" && // for not `te` (e.g `t`)
|
|
2410
2410
|
re(_t) && _t === dn || Y === "translate exists" && !_t) {
|
|
2411
2411
|
const [et, wa] = P();
|
|
2412
|
-
if (process.env.NODE_ENV !== "production" && n && R(et) && Lt(Y, wa) && (S && (mn(I, et) || Ws(
|
|
2412
|
+
if (process.env.NODE_ENV !== "production" && n && R(et) && Lt(Y, wa) && (S && (mn(I, et) || Ws(O, et)) && (pe(J.FALLBACK_TO_ROOT, {
|
|
2413
2413
|
key: et,
|
|
2414
2414
|
type: Y
|
|
2415
2415
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
@@ -2516,7 +2516,7 @@ function nr(e = {}, t) {
|
|
|
2516
2516
|
}
|
|
2517
2517
|
return P;
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2519
|
+
function D(A) {
|
|
2520
2520
|
const P = L(A);
|
|
2521
2521
|
return P ?? (n ? n.tm(A) || {} : {});
|
|
2522
2522
|
}
|
|
@@ -2565,7 +2565,7 @@ function nr(e = {}, t) {
|
|
|
2565
2565
|
}));
|
|
2566
2566
|
const ne = {
|
|
2567
2567
|
id: Hr,
|
|
2568
|
-
locale:
|
|
2568
|
+
locale: N,
|
|
2569
2569
|
fallbackLocale: M,
|
|
2570
2570
|
get inheritLocale() {
|
|
2571
2571
|
return l;
|
|
@@ -2587,10 +2587,10 @@ function nr(e = {}, t) {
|
|
|
2587
2587
|
return a;
|
|
2588
2588
|
},
|
|
2589
2589
|
get missingWarn() {
|
|
2590
|
-
return
|
|
2590
|
+
return O;
|
|
2591
2591
|
},
|
|
2592
2592
|
set missingWarn(A) {
|
|
2593
|
-
|
|
2593
|
+
O = A, T.missingWarn = O;
|
|
2594
2594
|
},
|
|
2595
2595
|
get fallbackWarn() {
|
|
2596
2596
|
return I;
|
|
@@ -2632,7 +2632,7 @@ function nr(e = {}, t) {
|
|
|
2632
2632
|
setMissingHandler: yt,
|
|
2633
2633
|
[Qs]: m
|
|
2634
2634
|
};
|
|
2635
|
-
return ne.datetimeFormats = K, ne.numberFormats = te, ne.rt = dt, ne.te = u, ne.tm =
|
|
2635
|
+
return ne.datetimeFormats = K, ne.numberFormats = te, ne.rt = dt, ne.te = u, ne.tm = D, ne.d = It, ne.n = kt, ne.getDateTimeFormat = we, ne.setDateTimeFormat = Ia, ne.mergeDateTimeFormat = ka, ne.getNumberFormat = Sa, ne.setNumberFormat = Aa, ne.mergeNumberFormat = Ca, ne[ea] = s, ne[Pn] = We, ne[Rn] = At, ne[Mn] = Qe, process.env.NODE_ENV !== "production" && (ne[ut] = (A) => {
|
|
2636
2636
|
T.__v_emitter = A;
|
|
2637
2637
|
}, ne[Vt] = () => {
|
|
2638
2638
|
T.__v_emitter = void 0;
|
|
@@ -2641,19 +2641,19 @@ function nr(e = {}, t) {
|
|
|
2641
2641
|
function Mi(e) {
|
|
2642
2642
|
const t = R(e.locale) ? e.locale : Et, n = R(e.fallbackLocale) || q(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = X(e.missing) ? e.missing : void 0, a = B(e.silentTranslationWarn) || Ke(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = B(e.silentFallbackWarn) || Ke(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = B(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = V(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, h = X(e.postTranslation) ? e.postTranslation : void 0, _ = R(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, E = B(e.sync) ? e.sync : !0;
|
|
2643
2643
|
process.env.NODE_ENV !== "production" && e.formatter && (pe(J.NOT_SUPPORTED_FORMATTER), void 0), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && (pe(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE), void 0);
|
|
2644
|
-
let
|
|
2644
|
+
let O = e.messages;
|
|
2645
2645
|
if (V(e.sharedMessages)) {
|
|
2646
2646
|
const b = e.sharedMessages;
|
|
2647
|
-
|
|
2647
|
+
O = Object.keys(b).reduce((C, T) => {
|
|
2648
2648
|
const w = C[T] || (C[T] = {});
|
|
2649
2649
|
return ue(w, b[T]), C;
|
|
2650
|
-
},
|
|
2650
|
+
}, O || {});
|
|
2651
2651
|
}
|
|
2652
2652
|
const { __i18n: I, __root: S, __injectWithOption: d } = e, p = e.datetimeFormats, v = e.numberFormats, g = e.flatJson, k = e.translateExistCompatible;
|
|
2653
2653
|
return {
|
|
2654
2654
|
locale: t,
|
|
2655
2655
|
fallbackLocale: n,
|
|
2656
|
-
messages:
|
|
2656
|
+
messages: O,
|
|
2657
2657
|
flatJson: g,
|
|
2658
2658
|
datetimeFormats: p,
|
|
2659
2659
|
numberFormats: v,
|
|
@@ -2962,7 +2962,7 @@ function sa(e, t, n, s) {
|
|
|
2962
2962
|
const l = s(e.value, o, i);
|
|
2963
2963
|
let c = [o.key];
|
|
2964
2964
|
q(l) ? c = l.map((f, E) => {
|
|
2965
|
-
const
|
|
2965
|
+
const O = a[f.type], I = O ? O({ [f.type]: f.value, index: E, parts: l }) : [f.value];
|
|
2966
2966
|
return xi(I) && (I[0].key = `${f.type}-${E}`), I;
|
|
2967
2967
|
}) : R(l) && (c = [l]);
|
|
2968
2968
|
const h = ue({}, r), _ = R(e.tag) || G(e.tag) ? e.tag : ra();
|
|
@@ -3441,13 +3441,13 @@ function sl(e = {}, t) {
|
|
|
3441
3441
|
return a;
|
|
3442
3442
|
},
|
|
3443
3443
|
// install plugin
|
|
3444
|
-
async install(E, ...
|
|
3445
|
-
if (process.env.NODE_ENV !== "production" && (E.__VUE_I18N__ = f), E.__VUE_I18N_SYMBOL__ = l, E.provide(E.__VUE_I18N_SYMBOL__, f), V(
|
|
3446
|
-
const d =
|
|
3444
|
+
async install(E, ...O) {
|
|
3445
|
+
if (process.env.NODE_ENV !== "production" && (E.__VUE_I18N__ = f), E.__VUE_I18N_SYMBOL__ = l, E.provide(E.__VUE_I18N_SYMBOL__, f), V(O[0])) {
|
|
3446
|
+
const d = O[0];
|
|
3447
3447
|
f.__composerExtend = d.__composerExtend, f.__vueI18nExtend = d.__vueI18nExtend;
|
|
3448
3448
|
}
|
|
3449
3449
|
let I = null;
|
|
3450
|
-
!n && s && (I = _l(E, f.global)), __VUE_I18N_FULL_INSTALL__ && Bi(E, f, ...
|
|
3450
|
+
!n && s && (I = _l(E, f.global)), __VUE_I18N_FULL_INSTALL__ && Bi(E, f, ...O), __VUE_I18N_LEGACY_API__ && n && E.mixin(nl(i, i.__composer, f));
|
|
3451
3451
|
const S = E.unmount;
|
|
3452
3452
|
if (E.unmount = () => {
|
|
3453
3453
|
I && I(), f.dispose(), S();
|
|
@@ -3579,7 +3579,7 @@ function dl(e, t, n, s = {}) {
|
|
|
3579
3579
|
), l = Q(
|
|
3580
3580
|
// prettier-ignore
|
|
3581
3581
|
!a || o ? n.fallbackLocale.value : R(s.fallbackLocale) || q(s.fallbackLocale) || V(s.fallbackLocale) || s.fallbackLocale === !1 ? s.fallbackLocale : i.value
|
|
3582
|
-
), c = Q(_n(i.value, s)), h = Q(V(s.datetimeFormats) ? s.datetimeFormats : { [i.value]: {} }), _ = Q(V(s.numberFormats) ? s.numberFormats : { [i.value]: {} }), f = a ? n.missingWarn : B(s.missingWarn) || Ke(s.missingWarn) ? s.missingWarn : !0, E = a ? n.fallbackWarn : B(s.fallbackWarn) || Ke(s.fallbackWarn) ? s.fallbackWarn : !0,
|
|
3582
|
+
), c = Q(_n(i.value, s)), h = Q(V(s.datetimeFormats) ? s.datetimeFormats : { [i.value]: {} }), _ = Q(V(s.numberFormats) ? s.numberFormats : { [i.value]: {} }), f = a ? n.missingWarn : B(s.missingWarn) || Ke(s.missingWarn) ? s.missingWarn : !0, E = a ? n.fallbackWarn : B(s.fallbackWarn) || Ke(s.fallbackWarn) ? s.fallbackWarn : !0, O = a ? n.fallbackRoot : B(s.fallbackRoot) ? s.fallbackRoot : !0, I = !!s.fallbackFormat, S = X(s.missing) ? s.missing : null, d = X(s.postTranslation) ? s.postTranslation : null, p = a ? n.warnHtmlMessage : B(s.warnHtmlMessage) ? s.warnHtmlMessage : !0, v = !!s.escapeParameter, g = a ? n.modifiers : V(s.modifiers) ? s.modifiers : {}, k = s.pluralRules || a && n.pluralRules;
|
|
3583
3583
|
function b() {
|
|
3584
3584
|
return [
|
|
3585
3585
|
i.value,
|
|
@@ -3599,8 +3599,8 @@ function dl(e, t, n, s = {}) {
|
|
|
3599
3599
|
set: (u) => {
|
|
3600
3600
|
r.value && (r.value.fallbackLocale.value = u), l.value = u;
|
|
3601
3601
|
}
|
|
3602
|
-
}), T = ce(() => r.value ? r.value.messages.value : c.value), w = ce(() => h.value),
|
|
3603
|
-
function
|
|
3602
|
+
}), T = ce(() => r.value ? r.value.messages.value : c.value), w = ce(() => h.value), F = ce(() => _.value);
|
|
3603
|
+
function N() {
|
|
3604
3604
|
return r.value ? r.value.getPostTranslationHandler() : d;
|
|
3605
3605
|
}
|
|
3606
3606
|
function M(u) {
|
|
@@ -3668,7 +3668,7 @@ function dl(e, t, n, s = {}) {
|
|
|
3668
3668
|
fallbackLocale: C,
|
|
3669
3669
|
messages: T,
|
|
3670
3670
|
datetimeFormats: w,
|
|
3671
|
-
numberFormats:
|
|
3671
|
+
numberFormats: F,
|
|
3672
3672
|
get inheritLocale() {
|
|
3673
3673
|
return r.value ? r.value.inheritLocale : o;
|
|
3674
3674
|
},
|
|
@@ -3700,7 +3700,7 @@ function dl(e, t, n, s = {}) {
|
|
|
3700
3700
|
r.value && (r.value.missingWarn = u);
|
|
3701
3701
|
},
|
|
3702
3702
|
get fallbackRoot() {
|
|
3703
|
-
return r.value ? r.value.fallbackRoot :
|
|
3703
|
+
return r.value ? r.value.fallbackRoot : O;
|
|
3704
3704
|
},
|
|
3705
3705
|
set fallbackRoot(u) {
|
|
3706
3706
|
r.value && (r.value.fallbackRoot = u);
|
|
@@ -3724,7 +3724,7 @@ function dl(e, t, n, s = {}) {
|
|
|
3724
3724
|
r.value && (r.value.escapeParameter = u);
|
|
3725
3725
|
},
|
|
3726
3726
|
t: de,
|
|
3727
|
-
getPostTranslationHandler:
|
|
3727
|
+
getPostTranslationHandler: N,
|
|
3728
3728
|
setPostTranslationHandler: M,
|
|
3729
3729
|
getMissingHandler: Z,
|
|
3730
3730
|
setMissingHandler: K,
|
|
@@ -3750,7 +3750,7 @@ function dl(e, t, n, s = {}) {
|
|
|
3750
3750
|
u.mergeDateTimeFormat(L, h.value[L]);
|
|
3751
3751
|
}), Object.keys(_.value).forEach((L) => {
|
|
3752
3752
|
u.mergeNumberFormat(L, _.value[L]);
|
|
3753
|
-
}), u.escapeParameter = v, u.fallbackFormat = I, u.fallbackRoot =
|
|
3753
|
+
}), u.escapeParameter = v, u.fallbackFormat = I, u.fallbackRoot = O, u.fallbackWarn = E, u.missingWarn = f, u.warnHtmlMessage = p;
|
|
3754
3754
|
}
|
|
3755
3755
|
return Os(() => {
|
|
3756
3756
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
@@ -4186,12 +4186,12 @@ ir.exports;
|
|
|
4186
4186
|
_compress: function(l, c, h) {
|
|
4187
4187
|
if (l == null)
|
|
4188
4188
|
return "";
|
|
4189
|
-
var _, f, E = {},
|
|
4189
|
+
var _, f, E = {}, O = {}, I = "", S = "", d = "", p = 2, v = 3, g = 2, k = [], b = 0, y = 0, C;
|
|
4190
4190
|
for (C = 0; C < l.length; C += 1)
|
|
4191
|
-
if (I = l.charAt(C), Object.prototype.hasOwnProperty.call(E, I) || (E[I] = v++,
|
|
4191
|
+
if (I = l.charAt(C), Object.prototype.hasOwnProperty.call(E, I) || (E[I] = v++, O[I] = !0), S = d + I, Object.prototype.hasOwnProperty.call(E, S))
|
|
4192
4192
|
d = S;
|
|
4193
4193
|
else {
|
|
4194
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4194
|
+
if (Object.prototype.hasOwnProperty.call(O, d)) {
|
|
4195
4195
|
if (d.charCodeAt(0) < 256) {
|
|
4196
4196
|
for (_ = 0; _ < g; _++)
|
|
4197
4197
|
b = b << 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++;
|
|
@@ -4203,14 +4203,14 @@ ir.exports;
|
|
|
4203
4203
|
for (f = d.charCodeAt(0), _ = 0; _ < 16; _++)
|
|
4204
4204
|
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4205
4205
|
}
|
|
4206
|
-
p--, p == 0 && (p = Math.pow(2, g), g++), delete
|
|
4206
|
+
p--, p == 0 && (p = Math.pow(2, g), g++), delete O[d];
|
|
4207
4207
|
} else
|
|
4208
4208
|
for (f = E[d], _ = 0; _ < g; _++)
|
|
4209
4209
|
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4210
4210
|
p--, p == 0 && (p = Math.pow(2, g), g++), E[S] = v++, d = String(I);
|
|
4211
4211
|
}
|
|
4212
4212
|
if (d !== "") {
|
|
4213
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4213
|
+
if (Object.prototype.hasOwnProperty.call(O, d)) {
|
|
4214
4214
|
if (d.charCodeAt(0) < 256) {
|
|
4215
4215
|
for (_ = 0; _ < g; _++)
|
|
4216
4216
|
b = b << 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++;
|
|
@@ -4222,7 +4222,7 @@ ir.exports;
|
|
|
4222
4222
|
for (f = d.charCodeAt(0), _ = 0; _ < 16; _++)
|
|
4223
4223
|
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4224
4224
|
}
|
|
4225
|
-
p--, p == 0 && (p = Math.pow(2, g), g++), delete
|
|
4225
|
+
p--, p == 0 && (p = Math.pow(2, g), g++), delete O[d];
|
|
4226
4226
|
} else
|
|
4227
4227
|
for (f = E[d], _ = 0; _ < g; _++)
|
|
4228
4228
|
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
@@ -4244,7 +4244,7 @@ ir.exports;
|
|
|
4244
4244
|
});
|
|
4245
4245
|
},
|
|
4246
4246
|
_decompress: function(l, c, h) {
|
|
4247
|
-
var _ = [], f = 4, E = 4,
|
|
4247
|
+
var _ = [], f = 4, E = 4, O = 3, I = "", S = [], d, p, v, g, k, b, y, C = { val: h(0), position: c, index: 1 };
|
|
4248
4248
|
for (d = 0; d < 3; d += 1)
|
|
4249
4249
|
_[d] = d;
|
|
4250
4250
|
for (v = 0, k = Math.pow(2, 2), b = 1; b != k; )
|
|
@@ -4266,7 +4266,7 @@ ir.exports;
|
|
|
4266
4266
|
for (_[3] = y, p = y, S.push(y); ; ) {
|
|
4267
4267
|
if (C.index > l)
|
|
4268
4268
|
return "";
|
|
4269
|
-
for (v = 0, k = Math.pow(2,
|
|
4269
|
+
for (v = 0, k = Math.pow(2, O), b = 1; b != k; )
|
|
4270
4270
|
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)), v |= (g > 0 ? 1 : 0) * b, b <<= 1;
|
|
4271
4271
|
switch (y = v) {
|
|
4272
4272
|
case 0:
|
|
@@ -4282,13 +4282,13 @@ ir.exports;
|
|
|
4282
4282
|
case 2:
|
|
4283
4283
|
return S.join("");
|
|
4284
4284
|
}
|
|
4285
|
-
if (f == 0 && (f = Math.pow(2,
|
|
4285
|
+
if (f == 0 && (f = Math.pow(2, O), O++), _[y])
|
|
4286
4286
|
I = _[y];
|
|
4287
4287
|
else if (y === E)
|
|
4288
4288
|
I = p + p.charAt(0);
|
|
4289
4289
|
else
|
|
4290
4290
|
return null;
|
|
4291
|
-
S.push(I), _[E++] = p + I.charAt(0), f--, p = I, f == 0 && (f = Math.pow(2,
|
|
4291
|
+
S.push(I), _[E++] = p + I.charAt(0), f--, p = I, f == 0 && (f = Math.pow(2, O), O++);
|
|
4292
4292
|
}
|
|
4293
4293
|
}
|
|
4294
4294
|
};
|
|
@@ -4445,11 +4445,11 @@ function Ge(e, t, n, s, a) {
|
|
|
4445
4445
|
function je(e, t, n, s, a) {
|
|
4446
4446
|
return e = e + t + a | 0, s = on(s ^ e, 8), n = n + s | 0, t = on(t ^ n, 7), { a: e, b: t, c: n, d: s };
|
|
4447
4447
|
}
|
|
4448
|
-
function ns(e, t, n, s, a, r, o, i, l, c, h, _, f, E,
|
|
4448
|
+
function ns(e, t, n, s, a, r, o, i, l, c, h, _, f, E, O, I, S, d, p, v) {
|
|
4449
4449
|
let g = 0;
|
|
4450
4450
|
for (let k = 0; k < s; k++)
|
|
4451
|
-
({ a, b: l, c: f, d: S } = Ge(a, l, f, S, n[t + e[g++]])), { a, b: l, c: f, d: S } = je(a, l, f, S, n[t + e[g++]]), { a: r, b: c, c: E, d } = Ge(r, c, E, d, n[t + e[g++]]), { a: r, b: c, c: E, d } = je(r, c, E, d, n[t + e[g++]]), { a: o, b: h, c:
|
|
4452
|
-
return { v0: a, v1: r, v2: o, v3: i, v4: l, v5: c, v6: h, v7: _, v8: f, v9: E, v10:
|
|
4451
|
+
({ a, b: l, c: f, d: S } = Ge(a, l, f, S, n[t + e[g++]])), { a, b: l, c: f, d: S } = je(a, l, f, S, n[t + e[g++]]), { a: r, b: c, c: E, d } = Ge(r, c, E, d, n[t + e[g++]]), { a: r, b: c, c: E, d } = je(r, c, E, d, n[t + e[g++]]), { a: o, b: h, c: O, d: p } = Ge(o, h, O, p, n[t + e[g++]]), { a: o, b: h, c: O, d: p } = je(o, h, O, p, n[t + e[g++]]), { a: i, b: _, c: I, d: v } = Ge(i, _, I, v, n[t + e[g++]]), { a: i, b: _, c: I, d: v } = je(i, _, I, v, n[t + e[g++]]), { a, b: c, c: O, d: v } = Ge(a, c, O, v, n[t + e[g++]]), { a, b: c, c: O, d: v } = je(a, c, O, v, n[t + e[g++]]), { a: r, b: h, c: I, d: S } = Ge(r, h, I, S, n[t + e[g++]]), { a: r, b: h, c: I, d: S } = je(r, h, I, S, n[t + e[g++]]), { a: o, b: _, c: f, d } = Ge(o, _, f, d, n[t + e[g++]]), { a: o, b: _, c: f, d } = je(o, _, f, d, n[t + e[g++]]), { a: i, b: l, c: E, d: p } = Ge(i, l, E, p, n[t + e[g++]]), { a: i, b: l, c: E, d: p } = je(i, l, E, p, n[t + e[g++]]);
|
|
4452
|
+
return { v0: a, v1: r, v2: o, v3: i, v4: l, v5: c, v6: h, v7: _, v8: f, v9: E, v10: O, v11: I, v12: S, v13: d, v14: p, v15: v };
|
|
4453
4453
|
}
|
|
4454
4454
|
const rs = /* @__PURE__ */ (() => {
|
|
4455
4455
|
const e = Array.from({ length: 16 }, (s, a) => a), t = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((a) => s[a]), n = [];
|
|
@@ -4484,8 +4484,8 @@ class cr extends Wl {
|
|
|
4484
4484
|
set() {
|
|
4485
4485
|
}
|
|
4486
4486
|
b2Compress(t, n, s, a = 0) {
|
|
4487
|
-
const { state: r, pos: o } = this, { h: i, l } = ts(BigInt(t), !0), { v0: c, v1: h, v2: _, v3: f, v4: E, v5:
|
|
4488
|
-
r[0] = c ^ d, r[1] = h ^ p, r[2] = _ ^ v, r[3] = f ^ g, r[4] = E ^ k, r[5] =
|
|
4487
|
+
const { state: r, pos: o } = this, { h: i, l } = ts(BigInt(t), !0), { v0: c, v1: h, v2: _, v3: f, v4: E, v5: O, v6: I, v7: S, v8: d, v9: p, v10: v, v11: g, v12: k, v13: b, v14: y, v15: C } = ns(rs, a, s, 7, r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], Me[0], Me[1], Me[2], Me[3], i, l, o, n);
|
|
4488
|
+
r[0] = c ^ d, r[1] = h ^ p, r[2] = _ ^ v, r[3] = f ^ g, r[4] = E ^ k, r[5] = O ^ b, r[6] = I ^ y, r[7] = S ^ C;
|
|
4489
4489
|
}
|
|
4490
4490
|
compress(t, n = 0, s = !1) {
|
|
4491
4491
|
let a = this.flags;
|
|
@@ -4510,8 +4510,8 @@ class cr extends Wl {
|
|
|
4510
4510
|
}
|
|
4511
4511
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
4512
4512
|
b2CompressOut() {
|
|
4513
|
-
const { state: t, pos: n, flags: s, buffer32: a, bufferOut32: r } = this, { h: o, l: i } = ts(BigInt(this.chunkOut++)), { v0: l, v1: c, v2: h, v3: _, v4: f, v5: E, v6:
|
|
4514
|
-
r[0] = l ^ S, r[1] = c ^ d, r[2] = h ^ p, r[3] = _ ^ v, r[4] = f ^ g, r[5] = E ^ k, r[6] =
|
|
4513
|
+
const { state: t, pos: n, flags: s, buffer32: a, bufferOut32: r } = this, { h: o, l: i } = ts(BigInt(this.chunkOut++)), { v0: l, v1: c, v2: h, v3: _, v4: f, v5: E, v6: O, v7: I, v8: S, v9: d, v10: p, v11: v, v12: g, v13: k, v14: b, v15: y } = ns(rs, 0, a, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], Me[0], Me[1], Me[2], Me[3], i, o, n, s);
|
|
4514
|
+
r[0] = l ^ S, r[1] = c ^ d, r[2] = h ^ p, r[3] = _ ^ v, r[4] = f ^ g, r[5] = E ^ k, r[6] = O ^ b, r[7] = I ^ y, r[8] = t[0] ^ S, r[9] = t[1] ^ d, r[10] = t[2] ^ p, r[11] = t[3] ^ v, r[12] = t[4] ^ g, r[13] = t[5] ^ k, r[14] = t[6] ^ b, r[15] = t[7] ^ y, this.posOut = 0;
|
|
4515
4515
|
}
|
|
4516
4516
|
finish() {
|
|
4517
4517
|
if (this.finished)
|
|
@@ -4623,16 +4623,16 @@ const Se = Gl(), ur = (e) => {
|
|
|
4623
4623
|
}, W = Q([]), Kt = [], le = Q([]), nt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Set(), wt = Q(!0), as = "stacktab-active-tab", jt = () => {
|
|
4624
4624
|
const e = un(), t = () => W.value.length, n = (T) => {
|
|
4625
4625
|
Kt.splice(0);
|
|
4626
|
-
for (const
|
|
4627
|
-
const
|
|
4628
|
-
id:
|
|
4629
|
-
})), Z = ur(
|
|
4626
|
+
for (const F of T) {
|
|
4627
|
+
const N = Se(F, {
|
|
4628
|
+
id: fa()
|
|
4629
|
+
}), M = pa(N), Z = ur(N.path), K = Se(N, {
|
|
4630
4630
|
closable: !0,
|
|
4631
4631
|
refreshable: !0,
|
|
4632
4632
|
iframe: !1
|
|
4633
|
-
}), te = ss(
|
|
4633
|
+
}), te = ss(N.id, Z.path, Z.query), de = {
|
|
4634
4634
|
id: te,
|
|
4635
|
-
tabId:
|
|
4635
|
+
tabId: N.id,
|
|
4636
4636
|
path: Z.path,
|
|
4637
4637
|
query: Se(Z.query, {
|
|
4638
4638
|
__tab: M
|
|
@@ -4640,7 +4640,7 @@ const Se = Gl(), ur = (e) => {
|
|
|
4640
4640
|
}, Ve = new En();
|
|
4641
4641
|
Ve.push(de);
|
|
4642
4642
|
const Ce = {
|
|
4643
|
-
id:
|
|
4643
|
+
id: N.id,
|
|
4644
4644
|
title: K.title,
|
|
4645
4645
|
closable: K.closable,
|
|
4646
4646
|
refreshable: K.refreshable,
|
|
@@ -4652,16 +4652,16 @@ const Se = Gl(), ur = (e) => {
|
|
|
4652
4652
|
}
|
|
4653
4653
|
const w = window.sessionStorage.getItem(as);
|
|
4654
4654
|
if (w != null) {
|
|
4655
|
-
const
|
|
4655
|
+
const F = Se({
|
|
4656
4656
|
pages: new En()
|
|
4657
4657
|
}, JSON.parse(w));
|
|
4658
|
-
let
|
|
4658
|
+
let N = !1;
|
|
4659
4659
|
for (const M of W.value)
|
|
4660
|
-
if (M.id ===
|
|
4661
|
-
|
|
4660
|
+
if (M.id === F.id) {
|
|
4661
|
+
N = !0;
|
|
4662
4662
|
break;
|
|
4663
4663
|
}
|
|
4664
|
-
|
|
4664
|
+
N || W.value.push(F);
|
|
4665
4665
|
}
|
|
4666
4666
|
}, s = (T) => {
|
|
4667
4667
|
for (const w of W.value)
|
|
@@ -4676,12 +4676,12 @@ const Se = Gl(), ur = (e) => {
|
|
|
4676
4676
|
return w;
|
|
4677
4677
|
return null;
|
|
4678
4678
|
}, o = (T, w) => {
|
|
4679
|
-
let
|
|
4680
|
-
const
|
|
4679
|
+
let F;
|
|
4680
|
+
const N = Hl(T.query.__tab), M = ss(N.id, T.path, T.query.valueOf()), Z = T.query.__src;
|
|
4681
4681
|
if (nt.has(M))
|
|
4682
|
-
|
|
4682
|
+
F = nt.get(M);
|
|
4683
4683
|
else {
|
|
4684
|
-
|
|
4684
|
+
F = /* @__PURE__ */ fe({
|
|
4685
4685
|
name: M,
|
|
4686
4686
|
components: {
|
|
4687
4687
|
DynamicComponent: w
|
|
@@ -4692,30 +4692,30 @@ const Se = Gl(), ur = (e) => {
|
|
|
4692
4692
|
}), Tt(() => {
|
|
4693
4693
|
}), () => oe("div", {
|
|
4694
4694
|
class: "cache-page-wrapper",
|
|
4695
|
-
id:
|
|
4695
|
+
id: N.id
|
|
4696
4696
|
}, [oe(ys("dynamic-component"), {
|
|
4697
|
-
tId:
|
|
4697
|
+
tId: N.id,
|
|
4698
4698
|
pId: M
|
|
4699
4699
|
}, null)]);
|
|
4700
4700
|
}
|
|
4701
|
-
}), nt.set(M,
|
|
4701
|
+
}), nt.set(M, F);
|
|
4702
4702
|
let K = null;
|
|
4703
4703
|
for (const de of x(W))
|
|
4704
|
-
de.active = !1, de.id ===
|
|
4704
|
+
de.active = !1, de.id === N.id && (K = de);
|
|
4705
4705
|
const te = {
|
|
4706
4706
|
id: M,
|
|
4707
|
-
tabId:
|
|
4707
|
+
tabId: N.id,
|
|
4708
4708
|
path: T.path,
|
|
4709
4709
|
query: T.query
|
|
4710
4710
|
};
|
|
4711
4711
|
if (K === null) {
|
|
4712
4712
|
const de = new En();
|
|
4713
4713
|
de.push(te), K = {
|
|
4714
|
-
id:
|
|
4715
|
-
title:
|
|
4716
|
-
closable:
|
|
4717
|
-
refreshable:
|
|
4718
|
-
iframe:
|
|
4714
|
+
id: N.id,
|
|
4715
|
+
title: N.title,
|
|
4716
|
+
closable: N.closable,
|
|
4717
|
+
refreshable: N.refreshable,
|
|
4718
|
+
iframe: N.iframe,
|
|
4719
4719
|
url: decodeURIComponent(Z),
|
|
4720
4720
|
active: !0,
|
|
4721
4721
|
pages: de
|
|
@@ -4724,16 +4724,16 @@ const Se = Gl(), ur = (e) => {
|
|
|
4724
4724
|
K.active = !0, (K.pages.isEmpty() || K.pages.peek().id !== te.id) && K.pages.push(te);
|
|
4725
4725
|
b(K);
|
|
4726
4726
|
}
|
|
4727
|
-
return g(M),
|
|
4727
|
+
return g(M), F;
|
|
4728
4728
|
}, i = (T) => {
|
|
4729
4729
|
let w = "";
|
|
4730
|
-
for (let
|
|
4731
|
-
if (T === x(W)[
|
|
4732
|
-
if (!x(W)[
|
|
4730
|
+
for (let F = W.value.length - 1; F >= 0; F--)
|
|
4731
|
+
if (T === x(W)[F].id) {
|
|
4732
|
+
if (!x(W)[F].closable)
|
|
4733
4733
|
return T;
|
|
4734
|
-
for (const
|
|
4735
|
-
S(
|
|
4736
|
-
x(W)[
|
|
4734
|
+
for (const N of x(W)[F].pages.list())
|
|
4735
|
+
S(N.id), d(N.id);
|
|
4736
|
+
x(W)[F].pages.clear(), W.value.length > 1 && x(W)[F].active && (F === 0 ? w = x(W)[F + 1].id : w = x(W)[F - 1].id), x(W).splice(F, 1);
|
|
4737
4737
|
break;
|
|
4738
4738
|
}
|
|
4739
4739
|
return w !== "" && k(w), p(), w;
|
|
@@ -4741,8 +4741,8 @@ const Se = Gl(), ur = (e) => {
|
|
|
4741
4741
|
const T = x(W);
|
|
4742
4742
|
for (let w = T.length - 1; w >= 0; w--)
|
|
4743
4743
|
if (T[w].closable) {
|
|
4744
|
-
for (const
|
|
4745
|
-
S(
|
|
4744
|
+
for (const F of T[w].pages.list())
|
|
4745
|
+
S(F.id), d(F.id);
|
|
4746
4746
|
x(W)[w].pages.clear(), x(W).splice(w, 1);
|
|
4747
4747
|
}
|
|
4748
4748
|
for (const w of T)
|
|
@@ -4753,64 +4753,64 @@ const Se = Gl(), ur = (e) => {
|
|
|
4753
4753
|
k(T[T.length - 1].id);
|
|
4754
4754
|
}, c = (T) => {
|
|
4755
4755
|
const w = x(W);
|
|
4756
|
-
let
|
|
4757
|
-
for (let
|
|
4758
|
-
if (w[
|
|
4759
|
-
|
|
4760
|
-
else if (w[
|
|
4761
|
-
for (const M of w[
|
|
4756
|
+
let F;
|
|
4757
|
+
for (let N = w.length - 1; N >= 0; N--)
|
|
4758
|
+
if (w[N].id === T)
|
|
4759
|
+
F = w[N];
|
|
4760
|
+
else if (w[N].closable && w[N].id !== T) {
|
|
4761
|
+
for (const M of w[N].pages.list())
|
|
4762
4762
|
S(M.id), d(M.id);
|
|
4763
|
-
x(W)[
|
|
4763
|
+
x(W)[N].pages.clear(), x(W).splice(N, 1);
|
|
4764
4764
|
}
|
|
4765
|
-
|
|
4765
|
+
F.active ? p() : k(T);
|
|
4766
4766
|
}, h = (T) => {
|
|
4767
4767
|
let w = -1;
|
|
4768
|
-
const
|
|
4769
|
-
for (let
|
|
4770
|
-
if (
|
|
4771
|
-
w =
|
|
4768
|
+
const F = x(W);
|
|
4769
|
+
for (let N = 0; N < F.length; N++)
|
|
4770
|
+
if (F[N].id === T) {
|
|
4771
|
+
w = N - 1;
|
|
4772
4772
|
break;
|
|
4773
4773
|
}
|
|
4774
|
-
for (let
|
|
4775
|
-
if (
|
|
4776
|
-
for (const M of
|
|
4774
|
+
for (let N = w; N >= 0; N--)
|
|
4775
|
+
if (F[N].closable) {
|
|
4776
|
+
for (const M of F[N].pages.list())
|
|
4777
4777
|
S(M.id), d(M.id);
|
|
4778
|
-
x(W)[
|
|
4778
|
+
x(W)[N].pages.clear(), x(W).splice(N, 1);
|
|
4779
4779
|
}
|
|
4780
|
-
for (const
|
|
4781
|
-
if (
|
|
4780
|
+
for (const N of F)
|
|
4781
|
+
if (N.active) {
|
|
4782
4782
|
p();
|
|
4783
4783
|
return;
|
|
4784
4784
|
}
|
|
4785
|
-
k(
|
|
4785
|
+
k(F[0].id);
|
|
4786
4786
|
}, _ = (T) => {
|
|
4787
4787
|
const w = x(W);
|
|
4788
|
-
let
|
|
4789
|
-
for (let
|
|
4790
|
-
if (w[
|
|
4791
|
-
|
|
4788
|
+
let F = w.length;
|
|
4789
|
+
for (let N = 0; N < w.length; N++)
|
|
4790
|
+
if (w[N].id === T) {
|
|
4791
|
+
F = N + 1;
|
|
4792
4792
|
break;
|
|
4793
4793
|
}
|
|
4794
|
-
for (let
|
|
4795
|
-
if (w[
|
|
4796
|
-
for (const M of w[
|
|
4794
|
+
for (let N = w.length - 1; N >= F; N--)
|
|
4795
|
+
if (w[N].closable) {
|
|
4796
|
+
for (const M of w[N].pages.list())
|
|
4797
4797
|
S(M.id), d(M.id);
|
|
4798
|
-
x(W)[
|
|
4798
|
+
x(W)[N].pages.clear(), x(W).splice(N, 1);
|
|
4799
4799
|
}
|
|
4800
|
-
for (const
|
|
4801
|
-
if (
|
|
4800
|
+
for (const N of w)
|
|
4801
|
+
if (N.active) {
|
|
4802
4802
|
p();
|
|
4803
4803
|
return;
|
|
4804
4804
|
}
|
|
4805
4805
|
k(w[w.length - 1].id);
|
|
4806
4806
|
}, f = (T) => {
|
|
4807
4807
|
var w;
|
|
4808
|
-
for (const
|
|
4809
|
-
if (
|
|
4810
|
-
const
|
|
4808
|
+
for (const F of x(W))
|
|
4809
|
+
if (F.id === T) {
|
|
4810
|
+
const N = (w = F.pages.peek()) == null ? void 0 : w.id;
|
|
4811
4811
|
for (let M = le.value.length - 1; M >= 0; M--)
|
|
4812
|
-
if (le.value[M] ===
|
|
4813
|
-
le.value.splice(M, 1),
|
|
4812
|
+
if (le.value[M] === N) {
|
|
4813
|
+
le.value.splice(M, 1), F.active && (wt.value = !1);
|
|
4814
4814
|
break;
|
|
4815
4815
|
}
|
|
4816
4816
|
break;
|
|
@@ -4821,11 +4821,11 @@ const Se = Gl(), ur = (e) => {
|
|
|
4821
4821
|
T.add(w.pages.peek().id);
|
|
4822
4822
|
});
|
|
4823
4823
|
for (let w = le.value.length - 1; w >= 0; w--) {
|
|
4824
|
-
const
|
|
4825
|
-
T.has(
|
|
4824
|
+
const F = le.value[w];
|
|
4825
|
+
T.has(F) && le.value.splice(w, 1);
|
|
4826
4826
|
}
|
|
4827
4827
|
wt.value = !1;
|
|
4828
|
-
},
|
|
4828
|
+
}, O = (T, w) => {
|
|
4829
4829
|
nt.set(T, w);
|
|
4830
4830
|
}, I = (T) => nt.get(T), S = (T) => {
|
|
4831
4831
|
nt.delete(T);
|
|
@@ -4841,20 +4841,20 @@ const Se = Gl(), ur = (e) => {
|
|
|
4841
4841
|
}, g = (T) => {
|
|
4842
4842
|
new Set(le.value).has(T) || le.value.push(T);
|
|
4843
4843
|
}, k = (T, w = !0) => {
|
|
4844
|
-
for (let
|
|
4845
|
-
const
|
|
4846
|
-
if (
|
|
4847
|
-
if (
|
|
4844
|
+
for (let F = W.value.length - 1; F >= 0; F--) {
|
|
4845
|
+
const N = W.value[F];
|
|
4846
|
+
if (N.id === T) {
|
|
4847
|
+
if (N.active)
|
|
4848
4848
|
break;
|
|
4849
|
-
if (
|
|
4850
|
-
const M =
|
|
4849
|
+
if (N.active = !0, wt.value = !1, b(N), w) {
|
|
4850
|
+
const M = N.pages.peek();
|
|
4851
4851
|
e.push({
|
|
4852
4852
|
path: M.path,
|
|
4853
4853
|
query: M.query
|
|
4854
4854
|
});
|
|
4855
4855
|
}
|
|
4856
4856
|
} else
|
|
4857
|
-
W.value[
|
|
4857
|
+
W.value[F].active = !1;
|
|
4858
4858
|
}
|
|
4859
4859
|
}, b = (T) => {
|
|
4860
4860
|
window.sessionStorage.setItem(as, JSON.stringify(T));
|
|
@@ -4883,7 +4883,7 @@ const Se = Gl(), ur = (e) => {
|
|
|
4883
4883
|
removeOtherTabs: c,
|
|
4884
4884
|
hasTab: s,
|
|
4885
4885
|
addPage: o,
|
|
4886
|
-
addComponent:
|
|
4886
|
+
addComponent: O,
|
|
4887
4887
|
getComponent: I,
|
|
4888
4888
|
removeComponent: S,
|
|
4889
4889
|
markDeletableCache: d,
|
|
@@ -4951,7 +4951,7 @@ const Se = Gl(), ur = (e) => {
|
|
|
4951
4951
|
oe(Ye, {
|
|
4952
4952
|
icon: "stack-tab__icon-reload svg-mask",
|
|
4953
4953
|
title: x(n)("VueStackTab.reload"),
|
|
4954
|
-
onClick: E[0] || (E[0] = (
|
|
4954
|
+
onClick: E[0] || (E[0] = (O) => x(c)(f.tabItem.id))
|
|
4955
4955
|
}, null, 8, ["title"]),
|
|
4956
4956
|
oe(Ye, {
|
|
4957
4957
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
@@ -4962,24 +4962,24 @@ const Se = Gl(), ur = (e) => {
|
|
|
4962
4962
|
icon: "stack-tab__icon-close svg-mask",
|
|
4963
4963
|
title: x(n)("VueStackTab.close"),
|
|
4964
4964
|
disabled: f.tabItem.closable ? null : "disabled",
|
|
4965
|
-
onClick: E[1] || (E[1] = (
|
|
4965
|
+
onClick: E[1] || (E[1] = (O) => x(r)(f.tabItem.id))
|
|
4966
4966
|
}, null, 8, ["title", "disabled"]),
|
|
4967
4967
|
oe(Ye, {
|
|
4968
4968
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
4969
4969
|
title: x(n)("VueStackTab.closeLefts"),
|
|
4970
4970
|
disabled: f.index <= 0 ? "disabled" : null,
|
|
4971
|
-
onClick: E[2] || (E[2] = (
|
|
4971
|
+
onClick: E[2] || (E[2] = (O) => x(i)(f.tabItem.id))
|
|
4972
4972
|
}, null, 8, ["title", "disabled"]),
|
|
4973
4973
|
oe(Ye, {
|
|
4974
4974
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
4975
4975
|
title: x(n)("VueStackTab.closeRights"),
|
|
4976
4976
|
disabled: f.index >= f.max - 1 ? "disabled" : null,
|
|
4977
|
-
onClick: E[3] || (E[3] = (
|
|
4977
|
+
onClick: E[3] || (E[3] = (O) => x(l)(f.tabItem.id))
|
|
4978
4978
|
}, null, 8, ["title", "disabled"]),
|
|
4979
4979
|
oe(Ye, {
|
|
4980
4980
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
4981
4981
|
title: x(n)("VueStackTab.closeOthers"),
|
|
4982
|
-
onClick: E[4] || (E[4] = (
|
|
4982
|
+
onClick: E[4] || (E[4] = (O) => x(_)(f.tabItem.id))
|
|
4983
4983
|
}, null, 8, ["title"]),
|
|
4984
4984
|
oe(Ye, {
|
|
4985
4985
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
@@ -4987,12 +4987,12 @@ const Se = Gl(), ur = (e) => {
|
|
|
4987
4987
|
onClick: x(o)
|
|
4988
4988
|
}, null, 8, ["title", "onClick"]),
|
|
4989
4989
|
f.contextMenu !== void 0 && f.contextMenu.length > 0 ? (z(), se("div", Yl)) : ze("", !0),
|
|
4990
|
-
(z(!0), se(Nt, null, jn(f.contextMenu, (
|
|
4990
|
+
(z(!0), se(Nt, null, jn(f.contextMenu, (O, I) => (z(), $e(Ye, {
|
|
4991
4991
|
key: I,
|
|
4992
|
-
icon:
|
|
4993
|
-
title:
|
|
4994
|
-
disabled:
|
|
4995
|
-
onClick: (S) => !
|
|
4992
|
+
icon: O.icon,
|
|
4993
|
+
title: O.title,
|
|
4994
|
+
disabled: O.disabled(f.tabItem) ? "disabled" : null,
|
|
4995
|
+
onClick: (S) => !O.disabled && O.callback(f.tabItem.id)
|
|
4996
4996
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
4997
4997
|
], 4));
|
|
4998
4998
|
}
|
|
@@ -5148,13 +5148,13 @@ var at = function(e) {
|
|
|
5148
5148
|
return Zt.get(e);
|
|
5149
5149
|
if (ba(e))
|
|
5150
5150
|
return Zt.set(e, cs), cs;
|
|
5151
|
-
var n = getComputedStyle(e), s = fr(e) && e.ownerSVGElement && e.getBBox(), a = !ic && n.boxSizing === "border-box", r = oc.test(n.writingMode || ""), o = !s && ls.test(n.overflowY || ""), i = !s && ls.test(n.overflowX || ""), l = s ? 0 : Le(n.paddingTop), c = s ? 0 : Le(n.paddingRight), h = s ? 0 : Le(n.paddingBottom), _ = s ? 0 : Le(n.paddingLeft), f = s ? 0 : Le(n.borderTopWidth), E = s ? 0 : Le(n.borderRightWidth),
|
|
5151
|
+
var n = getComputedStyle(e), s = fr(e) && e.ownerSVGElement && e.getBBox(), a = !ic && n.boxSizing === "border-box", r = oc.test(n.writingMode || ""), o = !s && ls.test(n.overflowY || ""), i = !s && ls.test(n.overflowX || ""), l = s ? 0 : Le(n.paddingTop), c = s ? 0 : Le(n.paddingRight), h = s ? 0 : Le(n.paddingBottom), _ = s ? 0 : Le(n.paddingLeft), f = s ? 0 : Le(n.borderTopWidth), E = s ? 0 : Le(n.borderRightWidth), O = s ? 0 : Le(n.borderBottomWidth), I = s ? 0 : Le(n.borderLeftWidth), S = _ + c, d = l + h, p = I + E, v = f + O, g = i ? e.offsetHeight - v - e.clientHeight : 0, k = o ? e.offsetWidth - p - e.clientWidth : 0, b = a ? S + p : 0, y = a ? d + v : 0, C = s ? s.width : Le(n.width) - b - k, T = s ? s.height : Le(n.height) - y - g, w = C + S + k + p, F = T + d + g + v, N = at({
|
|
5152
5152
|
devicePixelContentBoxSize: bt(Math.round(C * devicePixelRatio), Math.round(T * devicePixelRatio), r),
|
|
5153
|
-
borderBoxSize: bt(w,
|
|
5153
|
+
borderBoxSize: bt(w, F, r),
|
|
5154
5154
|
contentBoxSize: bt(C, T, r),
|
|
5155
5155
|
contentRect: new ga(_, l, C, T)
|
|
5156
5156
|
});
|
|
5157
|
-
return Zt.set(e,
|
|
5157
|
+
return Zt.set(e, N), N;
|
|
5158
5158
|
}, Ea = function(e, t, n) {
|
|
5159
5159
|
var s = va(e, n), a = s.borderBoxSize, r = s.contentBoxSize, o = s.devicePixelContentBoxSize;
|
|
5160
5160
|
switch (t) {
|
|
@@ -5400,83 +5400,83 @@ const Tc = ["disabled", "title"], Nc = {
|
|
|
5400
5400
|
startThumbLeft: 0,
|
|
5401
5401
|
startPageX: 0
|
|
5402
5402
|
});
|
|
5403
|
-
Xe(_, (
|
|
5404
|
-
E(
|
|
5403
|
+
Xe(_, (N) => {
|
|
5404
|
+
E(N);
|
|
5405
5405
|
});
|
|
5406
|
-
const E = (
|
|
5407
|
-
o.value =
|
|
5408
|
-
},
|
|
5409
|
-
if (!
|
|
5406
|
+
const E = (N) => {
|
|
5407
|
+
o.value = N.scrollLeft <= 10, i.value = N.clientWidth + N.scrollLeft - N.scrollWidth >= -10, l.value = N.scrollWidth !== N.clientWidth;
|
|
5408
|
+
}, O = ce(() => _.scrollWidth > _.clientWidth), I = ce(() => {
|
|
5409
|
+
if (!O.value)
|
|
5410
5410
|
return 0;
|
|
5411
|
-
const { clientWidth:
|
|
5412
|
-
return
|
|
5411
|
+
const { clientWidth: N, scrollWidth: M } = _;
|
|
5412
|
+
return N / M * N;
|
|
5413
5413
|
}), S = ce(() => {
|
|
5414
|
-
if (!
|
|
5414
|
+
if (!O.value)
|
|
5415
5415
|
return 0;
|
|
5416
|
-
const { clientWidth:
|
|
5417
|
-
return (
|
|
5416
|
+
const { clientWidth: N, scrollWidth: M, scrollLeft: Z } = _;
|
|
5417
|
+
return (N - I.value) * (Z / (M - N));
|
|
5418
5418
|
}), d = () => {
|
|
5419
5419
|
if (n.value === null || n.value === void 0)
|
|
5420
5420
|
return;
|
|
5421
|
-
const { clientWidth:
|
|
5422
|
-
Object.assign(_, { clientWidth:
|
|
5421
|
+
const { clientWidth: N, scrollWidth: M, scrollLeft: Z } = n.value;
|
|
5422
|
+
Object.assign(_, { clientWidth: N, scrollWidth: M, scrollLeft: Z });
|
|
5423
5423
|
}, p = new hs(() => {
|
|
5424
5424
|
var M;
|
|
5425
5425
|
d();
|
|
5426
|
-
const
|
|
5427
|
-
|
|
5426
|
+
const N = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__item.is-active");
|
|
5427
|
+
N && (F(N) || w(N));
|
|
5428
5428
|
}), v = new hs(() => {
|
|
5429
|
-
var
|
|
5430
|
-
if (!
|
|
5431
|
-
const M = (
|
|
5432
|
-
M && (
|
|
5429
|
+
var N;
|
|
5430
|
+
if (!O.value) {
|
|
5431
|
+
const M = (N = n.value) == null ? void 0 : N.querySelector(".stack-tab__item.is-active");
|
|
5432
|
+
M && (F(M) || w(M));
|
|
5433
5433
|
}
|
|
5434
5434
|
d();
|
|
5435
|
-
}), g = (
|
|
5436
|
-
la({ wrap: n.value, left:
|
|
5437
|
-
}, k = (
|
|
5438
|
-
g(n.value.scrollLeft +
|
|
5439
|
-
}, b = (
|
|
5440
|
-
const M =
|
|
5435
|
+
}), g = (N, M = !0) => {
|
|
5436
|
+
la({ wrap: n.value, left: N, smooth: M });
|
|
5437
|
+
}, k = (N) => {
|
|
5438
|
+
g(n.value.scrollLeft + N);
|
|
5439
|
+
}, b = (N) => {
|
|
5440
|
+
const M = N.deltaY < 0;
|
|
5441
5441
|
g(n.value.scrollLeft + (M ? -h.space : h.space));
|
|
5442
|
-
}, y = (
|
|
5442
|
+
}, y = (N) => {
|
|
5443
5443
|
var M;
|
|
5444
5444
|
Object.assign(f, {
|
|
5445
|
-
startPageX:
|
|
5445
|
+
startPageX: N.pageX,
|
|
5446
5446
|
startScrollLeft: (M = n.value) == null ? void 0 : M.scrollLeft,
|
|
5447
5447
|
startThumbLeft: S.value,
|
|
5448
5448
|
thumbLeft: S.value
|
|
5449
5449
|
}), r.value = !0, document.addEventListener("mousemove", C), document.addEventListener("mouseup", T);
|
|
5450
|
-
}, C = (
|
|
5450
|
+
}, C = (N) => {
|
|
5451
5451
|
const { clientWidth: M, scrollWidth: Z } = _;
|
|
5452
|
-
let K = f.startThumbLeft +
|
|
5452
|
+
let K = f.startThumbLeft + N.pageX - f.startPageX;
|
|
5453
5453
|
const te = M - I.value;
|
|
5454
|
-
K < 0 ? K = 0 : K > te && (K = te), f.thumbLeft = K, g(K * (Z - M) / (M - I.value), !1),
|
|
5455
|
-
}, T = (
|
|
5456
|
-
r.value = !1, document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", T),
|
|
5454
|
+
K < 0 ? K = 0 : K > te && (K = te), f.thumbLeft = K, g(K * (Z - M) / (M - I.value), !1), N.preventDefault();
|
|
5455
|
+
}, T = (N) => {
|
|
5456
|
+
r.value = !1, document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", T), N.preventDefault();
|
|
5457
5457
|
};
|
|
5458
5458
|
Gt(() => {
|
|
5459
5459
|
var M;
|
|
5460
5460
|
p.observe(c.value);
|
|
5461
|
-
const
|
|
5462
|
-
v.observe(
|
|
5461
|
+
const N = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__nav");
|
|
5462
|
+
v.observe(N);
|
|
5463
5463
|
}), Tt(() => {
|
|
5464
5464
|
p.disconnect(), v.disconnect();
|
|
5465
5465
|
});
|
|
5466
|
-
const w = (
|
|
5467
|
-
hl({ el:
|
|
5468
|
-
},
|
|
5469
|
-
if (!
|
|
5466
|
+
const w = (N) => {
|
|
5467
|
+
hl({ el: N, wrap: n, block: "end", inline: "center" });
|
|
5468
|
+
}, F = (N) => {
|
|
5469
|
+
if (!O.value)
|
|
5470
5470
|
return !0;
|
|
5471
|
-
const M =
|
|
5472
|
-
return !(M < Z || M +
|
|
5471
|
+
const M = N.offsetLeft, Z = n.value.scrollLeft;
|
|
5472
|
+
return !(M < Z || M + N.clientWidth > Z + n.value.clientWidth);
|
|
5473
5473
|
};
|
|
5474
|
-
return t({ scrollIntoView: w, isInView:
|
|
5474
|
+
return t({ scrollIntoView: w, isInView: F }), (N, M) => (z(), se(Nt, null, [
|
|
5475
5475
|
l.value ? (z(), $e(Bn, {
|
|
5476
5476
|
key: 0,
|
|
5477
5477
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
5478
5478
|
disabled: o.value,
|
|
5479
|
-
onClick: M[0] || (M[0] = (Z) => !o.value && k(-1 *
|
|
5479
|
+
onClick: M[0] || (M[0] = (Z) => !o.value && k(-1 * N.space))
|
|
5480
5480
|
}, null, 8, ["disabled"])) : ze("", !0),
|
|
5481
5481
|
ve("div", {
|
|
5482
5482
|
ref_key: "headerScroll",
|
|
@@ -5494,7 +5494,7 @@ const Tc = ["disabled", "title"], Nc = {
|
|
|
5494
5494
|
}]),
|
|
5495
5495
|
onScrollPassive: d
|
|
5496
5496
|
}, [
|
|
5497
|
-
Ue(
|
|
5497
|
+
Ue(N.$slots, "default")
|
|
5498
5498
|
], 34),
|
|
5499
5499
|
Yn(ve("div", {
|
|
5500
5500
|
ref_key: "bar",
|
|
@@ -5512,14 +5512,14 @@ const Tc = ["disabled", "title"], Nc = {
|
|
|
5512
5512
|
onMousedown: it(y, ["prevent"])
|
|
5513
5513
|
}, null, 38)
|
|
5514
5514
|
], 2), [
|
|
5515
|
-
[Xn,
|
|
5515
|
+
[Xn, O.value]
|
|
5516
5516
|
])
|
|
5517
5517
|
], 544),
|
|
5518
5518
|
l.value ? (z(), $e(Bn, {
|
|
5519
5519
|
key: 1,
|
|
5520
5520
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
5521
5521
|
disabled: i.value,
|
|
5522
|
-
onClick: M[1] || (M[1] = (Z) => !i.value && k(
|
|
5522
|
+
onClick: M[1] || (M[1] = (Z) => !i.value && k(N.space))
|
|
5523
5523
|
}, null, 8, ["disabled"])) : ze("", !0)
|
|
5524
5524
|
], 64));
|
|
5525
5525
|
}
|
|
@@ -5538,7 +5538,7 @@ const Tc = ["disabled", "title"], Nc = {
|
|
|
5538
5538
|
setup(e, { emit: t }) {
|
|
5539
5539
|
const { t: n } = ar().getI18n(), s = Gn("maximum"), a = t, r = Q(), { shown: o, contextMenuData: i, showContextMenu: l } = ql(), c = e, { removeTab: h, active: _, tabs: f } = jt(), E = ce(() => typeof c.tabTransition == "string" ? {
|
|
5540
5540
|
name: c.tabTransition
|
|
5541
|
-
} : c.tabTransition),
|
|
5541
|
+
} : c.tabTransition), O = ce(() => c.tabScrollMode === rt.BOTH || c.tabScrollMode === rt.BUTTON), I = c.tabScrollMode === rt.BOTH || c.tabScrollMode === rt.WHEEL, S = (p) => {
|
|
5542
5542
|
if (p.closable) {
|
|
5543
5543
|
const v = h(p.id);
|
|
5544
5544
|
a("active", v);
|
|
@@ -5554,7 +5554,7 @@ const Tc = ["disabled", "title"], Nc = {
|
|
|
5554
5554
|
ref: r,
|
|
5555
5555
|
space: p.space,
|
|
5556
5556
|
"is-scroll-wheel": x(I),
|
|
5557
|
-
"is-scroll-button":
|
|
5557
|
+
"is-scroll-button": O.value
|
|
5558
5558
|
}, {
|
|
5559
5559
|
default: De(() => [
|
|
5560
5560
|
oe(Is, $a({
|
|
@@ -5674,7 +5674,7 @@ function Zc(e, t, n) {
|
|
|
5674
5674
|
var y = s, C = a;
|
|
5675
5675
|
return s = a = void 0, c = b, o = e.apply(C, y), o;
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5677
|
+
function O(b) {
|
|
5678
5678
|
return c = b, i = setTimeout(d, t), h ? E(b) : o;
|
|
5679
5679
|
}
|
|
5680
5680
|
function I(b) {
|
|
@@ -5704,7 +5704,7 @@ function Zc(e, t, n) {
|
|
|
5704
5704
|
var b = Ln(), y = S(b);
|
|
5705
5705
|
if (s = arguments, a = this, l = b, y) {
|
|
5706
5706
|
if (i === void 0)
|
|
5707
|
-
return
|
|
5707
|
+
return O(l);
|
|
5708
5708
|
if (_)
|
|
5709
5709
|
return clearTimeout(i), i = setTimeout(d, t), E(l);
|
|
5710
5710
|
}
|
|
@@ -5791,9 +5791,9 @@ const eu = () => {
|
|
|
5791
5791
|
Tt(() => {
|
|
5792
5792
|
o();
|
|
5793
5793
|
});
|
|
5794
|
-
const
|
|
5794
|
+
const O = un();
|
|
5795
5795
|
return Xe(
|
|
5796
|
-
() =>
|
|
5796
|
+
() => O.currentRoute.value.fullPath,
|
|
5797
5797
|
() => {
|
|
5798
5798
|
s.value = !0;
|
|
5799
5799
|
}
|
|
@@ -5942,10 +5942,10 @@ const au = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
5942
5942
|
},
|
|
5943
5943
|
backward: (f, E) => {
|
|
5944
5944
|
t.value = !1;
|
|
5945
|
-
const
|
|
5946
|
-
if (!
|
|
5945
|
+
const O = n(l);
|
|
5946
|
+
if (!O)
|
|
5947
5947
|
return;
|
|
5948
|
-
const I =
|
|
5948
|
+
const I = O.pages;
|
|
5949
5949
|
let S = 0;
|
|
5950
5950
|
if (typeof f == "number")
|
|
5951
5951
|
S = Math.abs(f);
|
|
@@ -6077,40 +6077,40 @@ const pu = ["width", "height", "stroke"], gu = /* @__PURE__ */ Kn('<g fill="none
|
|
|
6077
6077
|
!s.canCancel || !r.value || (l(), s.onCancel.apply(null, null));
|
|
6078
6078
|
}, l = () => {
|
|
6079
6079
|
o("hide"), o("update:active", !1), s.programmatic && (r.value = !1, setTimeout(() => {
|
|
6080
|
-
const
|
|
6081
|
-
Ss(null,
|
|
6080
|
+
const O = a.value.parentElement;
|
|
6081
|
+
Ss(null, O), _u(O);
|
|
6082
6082
|
}, 150));
|
|
6083
6083
|
}, c = () => {
|
|
6084
6084
|
s.isFullPage && s.lockScroll && document.body.classList.add("vl-shown");
|
|
6085
6085
|
}, h = () => {
|
|
6086
6086
|
s.isFullPage && s.lockScroll && document.body.classList.remove("vl-shown");
|
|
6087
|
-
}, _ = (
|
|
6088
|
-
|
|
6089
|
-
}, f = (
|
|
6087
|
+
}, _ = (O) => {
|
|
6088
|
+
O.code === "Escape" && i();
|
|
6089
|
+
}, f = (O) => {
|
|
6090
6090
|
if (!r.value || // Event target is the loading div element itself
|
|
6091
|
-
|
|
6091
|
+
O.target === a.value || // Event target is inside the loading div
|
|
6092
6092
|
// @ts-ignore
|
|
6093
|
-
a.value.contains(
|
|
6093
|
+
a.value.contains(O.target))
|
|
6094
6094
|
return;
|
|
6095
6095
|
const I = s.container ? s.container : s.isFullPage ? null : a.value.parentElement;
|
|
6096
6096
|
// Always prevent when loading is full screen
|
|
6097
6097
|
(s.isFullPage || // When a parent exist means loader is running inside a container
|
|
6098
6098
|
// When loading is NOT full screen and event target is inside the given container
|
|
6099
6099
|
// @ts-ignore
|
|
6100
|
-
I && I.contains(
|
|
6100
|
+
I && I.contains(O.target)) && (O.preventDefault(), a.value.focus());
|
|
6101
6101
|
}, E = ce(() => ({
|
|
6102
6102
|
background: s.backgroundColor,
|
|
6103
6103
|
opacity: s.opacity
|
|
6104
6104
|
}));
|
|
6105
6105
|
return Xe(
|
|
6106
6106
|
() => s.active,
|
|
6107
|
-
(
|
|
6108
|
-
r.value =
|
|
6107
|
+
(O) => {
|
|
6108
|
+
r.value = O;
|
|
6109
6109
|
}
|
|
6110
6110
|
), Xe(
|
|
6111
6111
|
() => r,
|
|
6112
|
-
(
|
|
6113
|
-
|
|
6112
|
+
(O) => {
|
|
6113
|
+
O ? c() : h();
|
|
6114
6114
|
}
|
|
6115
6115
|
), Gt(() => {
|
|
6116
6116
|
s.enforceFocus && document.addEventListener("focusin", f), document.addEventListener("keyup", _);
|
|
@@ -6118,14 +6118,14 @@ const pu = ["width", "height", "stroke"], gu = /* @__PURE__ */ Kn('<g fill="none
|
|
|
6118
6118
|
document.removeEventListener("keyup", _), document.removeEventListener("focusin", f);
|
|
6119
6119
|
}), t({
|
|
6120
6120
|
hide: l
|
|
6121
|
-
}), (
|
|
6121
|
+
}), (O, I) => (z(), $e(zn, { name: O.transition }, {
|
|
6122
6122
|
default: De(() => [
|
|
6123
6123
|
Yn(ve("div", {
|
|
6124
6124
|
tabindex: "0",
|
|
6125
|
-
class: xe(["vl-overlay vl-active", { "vl-full-page":
|
|
6125
|
+
class: xe(["vl-overlay vl-active", { "vl-full-page": O.isFullPage }]),
|
|
6126
6126
|
"aria-busy": r.value,
|
|
6127
6127
|
"aria-label": "Loading",
|
|
6128
|
-
style: Ut({ zIndex:
|
|
6128
|
+
style: Ut({ zIndex: O.zIndex }),
|
|
6129
6129
|
ref_key: "overlay",
|
|
6130
6130
|
ref: a
|
|
6131
6131
|
}, [
|
|
@@ -6135,15 +6135,15 @@ const pu = ["width", "height", "stroke"], gu = /* @__PURE__ */ Kn('<g fill="none
|
|
|
6135
6135
|
style: Ut(E.value)
|
|
6136
6136
|
}, null, 4),
|
|
6137
6137
|
ve("div", Cu, [
|
|
6138
|
-
Ue(
|
|
6139
|
-
Ue(
|
|
6140
|
-
(z(), $e(ks(x(Su)[
|
|
6141
|
-
color:
|
|
6142
|
-
width:
|
|
6143
|
-
height:
|
|
6138
|
+
Ue(O.$slots, "before"),
|
|
6139
|
+
Ue(O.$slots, "default", {}, () => [
|
|
6140
|
+
(z(), $e(ks(x(Su)[O.loader]), {
|
|
6141
|
+
color: O.color,
|
|
6142
|
+
width: O.width,
|
|
6143
|
+
height: O.height
|
|
6144
6144
|
}, null, 8, ["color", "width", "height"]))
|
|
6145
6145
|
]),
|
|
6146
|
-
Ue(
|
|
6146
|
+
Ue(O.$slots, "after")
|
|
6147
6147
|
])
|
|
6148
6148
|
], 14, Au), [
|
|
6149
6149
|
[Xn, r.value]
|
|
@@ -6194,12 +6194,14 @@ const pu = ["width", "height", "stroke"], gu = /* @__PURE__ */ Kn('<g fill="none
|
|
|
6194
6194
|
fallbackLocale: "en-US"
|
|
6195
6195
|
}), $u = {
|
|
6196
6196
|
install(e) {
|
|
6197
|
-
du("0.1.
|
|
6197
|
+
du("0.1.12"), e.component("VueStackTabs", ru).use(Ru);
|
|
6198
6198
|
}
|
|
6199
6199
|
};
|
|
6200
6200
|
export {
|
|
6201
6201
|
xu as IFrame,
|
|
6202
6202
|
En as Stack,
|
|
6203
|
+
ru as StackTab,
|
|
6204
|
+
Bn as TabHeaderButton,
|
|
6203
6205
|
rt as TabScrollMode,
|
|
6204
6206
|
$u as default,
|
|
6205
6207
|
eu as useStackTab,
|