@linagora/linid-im-front-corelib 0.0.19 → 0.0.20
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/core-lib.es.js +186 -185
- package/dist/core-lib.umd.js +7 -7
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/types/uiDesign.d.ts +11 -3
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Mt from "vue";
|
|
2
2
|
import { defineAsyncComponent as Mr, hasInjectionContext as Gt, inject as at, getCurrentInstance as Fr, ref as Be, reactive as wr, markRaw as xe, effectScope as Ur, isRef as Ke, isReactive as rn, toRef as Ft, toRaw as Vr, nextTick as Nn, computed as ge, getCurrentScope as $r, onScopeDispose as Wr, watch as Yt, toRefs as gn, defineComponent as Ot, watchEffect as Gr, createElementBlock as On, openBlock as wt, Fragment as it, renderSlot as Yr, createCommentVNode as Hr, renderList as xr, createBlock as jr, resolveDynamicComponent as Br, mergeProps as Kr, createElementVNode as Xr, shallowRef as qr, onMounted as Qr, onUnmounted as Jr, h as tr, createVNode as Zr, Text as zr } from "vue";
|
|
3
3
|
let lt = null;
|
|
4
|
-
function
|
|
4
|
+
function Va(e) {
|
|
5
5
|
if (lt !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -115,7 +115,7 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
115
115
|
const R = r.state.value[e];
|
|
116
116
|
!o && !R && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = {});
|
|
117
117
|
const S = Be({});
|
|
118
|
-
let
|
|
118
|
+
let D;
|
|
119
119
|
function _(C) {
|
|
120
120
|
let A;
|
|
121
121
|
p = L = !1, process.env.NODE_ENV !== "production" && (v = []), typeof C == "function" ? (C(r.state.value[e]), A = {
|
|
@@ -128,9 +128,9 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
128
128
|
storeId: e,
|
|
129
129
|
events: v
|
|
130
130
|
});
|
|
131
|
-
const M =
|
|
131
|
+
const M = D = Symbol();
|
|
132
132
|
Nn().then(() => {
|
|
133
|
-
|
|
133
|
+
D === M && (p = !0);
|
|
134
134
|
}), L = !0, Re(T, A, r.state.value[e]);
|
|
135
135
|
}
|
|
136
136
|
const E = o ? function() {
|
|
@@ -325,7 +325,7 @@ This will fail in production.`);
|
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let ut = null;
|
|
328
|
-
function
|
|
328
|
+
function $a(e) {
|
|
329
329
|
if (ut !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -355,7 +355,7 @@ const os = () => as(on()), as = /* @__PURE__ */ sn("linidZoneStore", {
|
|
|
355
355
|
this.zones[e] || (this.zones[e] = []), this.zones[e].push(t);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
}),
|
|
358
|
+
}), Wa = /* @__PURE__ */ Ot({
|
|
359
359
|
__name: "LinidZoneRenderer",
|
|
360
360
|
props: {
|
|
361
361
|
zone: {}
|
|
@@ -381,7 +381,7 @@ const os = () => as(on()), as = /* @__PURE__ */ sn("linidZoneStore", {
|
|
|
381
381
|
], 64));
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
function
|
|
384
|
+
function Ga() {
|
|
385
385
|
function e(n) {
|
|
386
386
|
return {
|
|
387
387
|
page: (n.page || 1) - 1,
|
|
@@ -570,7 +570,7 @@ const Is = /<\/?[\w\s="/.':;#-\/]+>/, Cs = (e) => Is.test(e), ie = " ", bs = "\r
|
|
|
570
570
|
function Ss(e) {
|
|
571
571
|
const t = e;
|
|
572
572
|
let n = 0, r = 1, s = 1, o = 0;
|
|
573
|
-
const i = (f) => t[f] === bs && t[f + 1] === z, c = (f) => t[f] === z, u = (f) => t[f] === vs, p = (f) => t[f] === As, L = (f) => i(f) || c(f) || u(f) || p(f), T = () => n, g = () => r, v = () => s, R = () => o, S = (f) => i(f) || u(f) || p(f) ? z : t[f],
|
|
573
|
+
const i = (f) => t[f] === bs && t[f + 1] === z, c = (f) => t[f] === z, u = (f) => t[f] === vs, p = (f) => t[f] === As, L = (f) => i(f) || c(f) || u(f) || p(f), T = () => n, g = () => r, v = () => s, R = () => o, S = (f) => i(f) || u(f) || p(f) ? z : t[f], D = () => S(n), _ = () => S(n + o);
|
|
574
574
|
function E() {
|
|
575
575
|
return o = 0, L(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
576
576
|
}
|
|
@@ -595,7 +595,7 @@ function Ss(e) {
|
|
|
595
595
|
column: v,
|
|
596
596
|
peekOffset: R,
|
|
597
597
|
charAt: S,
|
|
598
|
-
currentChar:
|
|
598
|
+
currentChar: D,
|
|
599
599
|
currentPeek: _,
|
|
600
600
|
next: E,
|
|
601
601
|
peek: h,
|
|
@@ -604,8 +604,8 @@ function Ss(e) {
|
|
|
604
604
|
skipToPeek: b
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
|
-
const me = void 0, ys = ".", yn = "'",
|
|
608
|
-
function
|
|
607
|
+
const me = void 0, ys = ".", yn = "'", Ps = "tokenizer";
|
|
608
|
+
function Ds(e, t = {}) {
|
|
609
609
|
const n = t.location !== !1, r = Ss(e), s = () => r.index(), o = () => Os(r.line(), r.column(), r.index()), i = o(), c = s(), u = {
|
|
610
610
|
currentType: 13,
|
|
611
611
|
offset: c,
|
|
@@ -619,20 +619,20 @@ function Ps(e, t = {}) {
|
|
|
619
619
|
inLinked: !1,
|
|
620
620
|
text: ""
|
|
621
621
|
}, p = () => u, { onError: L } = t;
|
|
622
|
-
function T(a, l, N, ...
|
|
622
|
+
function T(a, l, N, ...P) {
|
|
623
623
|
const Y = p();
|
|
624
624
|
if (l.column += N, l.offset += N, L) {
|
|
625
625
|
const x = n ? Bt(Y.startLoc, l) : null, U = we(a, x, {
|
|
626
|
-
domain:
|
|
627
|
-
args:
|
|
626
|
+
domain: Ps,
|
|
627
|
+
args: P
|
|
628
628
|
});
|
|
629
629
|
L(U);
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
function g(a, l, N) {
|
|
633
633
|
a.endLoc = o(), a.currentType = l;
|
|
634
|
-
const
|
|
635
|
-
return n && (
|
|
634
|
+
const P = { type: l };
|
|
635
|
+
return n && (P.loc = Bt(a.startLoc, a.endLoc)), N != null && (P.value = N), P;
|
|
636
636
|
}
|
|
637
637
|
const v = (a) => g(
|
|
638
638
|
a,
|
|
@@ -648,7 +648,7 @@ function Ps(e, t = {}) {
|
|
|
648
648
|
l += a.currentPeek(), a.peek();
|
|
649
649
|
return l;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function D(a) {
|
|
652
652
|
const l = S(a);
|
|
653
653
|
return a.skipToPeek(), l;
|
|
654
654
|
}
|
|
@@ -671,15 +671,15 @@ function Ps(e, t = {}) {
|
|
|
671
671
|
if (N !== 2)
|
|
672
672
|
return !1;
|
|
673
673
|
S(a);
|
|
674
|
-
const
|
|
675
|
-
return a.resetPeek(),
|
|
674
|
+
const P = _(a.currentPeek());
|
|
675
|
+
return a.resetPeek(), P;
|
|
676
676
|
}
|
|
677
677
|
function m(a, l) {
|
|
678
678
|
const { currentType: N } = l;
|
|
679
679
|
if (N !== 2)
|
|
680
680
|
return !1;
|
|
681
681
|
S(a);
|
|
682
|
-
const
|
|
682
|
+
const P = a.currentPeek() === "-" ? a.peek() : a.currentPeek(), Y = E(P);
|
|
683
683
|
return a.resetPeek(), Y;
|
|
684
684
|
}
|
|
685
685
|
function I(a, l) {
|
|
@@ -687,41 +687,41 @@ function Ps(e, t = {}) {
|
|
|
687
687
|
if (N !== 2)
|
|
688
688
|
return !1;
|
|
689
689
|
S(a);
|
|
690
|
-
const
|
|
691
|
-
return a.resetPeek(),
|
|
690
|
+
const P = a.currentPeek() === yn;
|
|
691
|
+
return a.resetPeek(), P;
|
|
692
692
|
}
|
|
693
693
|
function b(a, l) {
|
|
694
694
|
const { currentType: N } = l;
|
|
695
695
|
if (N !== 7)
|
|
696
696
|
return !1;
|
|
697
697
|
S(a);
|
|
698
|
-
const
|
|
699
|
-
return a.resetPeek(),
|
|
698
|
+
const P = a.currentPeek() === ".";
|
|
699
|
+
return a.resetPeek(), P;
|
|
700
700
|
}
|
|
701
701
|
function f(a, l) {
|
|
702
702
|
const { currentType: N } = l;
|
|
703
703
|
if (N !== 8)
|
|
704
704
|
return !1;
|
|
705
705
|
S(a);
|
|
706
|
-
const
|
|
707
|
-
return a.resetPeek(),
|
|
706
|
+
const P = _(a.currentPeek());
|
|
707
|
+
return a.resetPeek(), P;
|
|
708
708
|
}
|
|
709
709
|
function w(a, l) {
|
|
710
710
|
const { currentType: N } = l;
|
|
711
711
|
if (!(N === 7 || N === 11))
|
|
712
712
|
return !1;
|
|
713
713
|
S(a);
|
|
714
|
-
const
|
|
715
|
-
return a.resetPeek(),
|
|
714
|
+
const P = a.currentPeek() === ":";
|
|
715
|
+
return a.resetPeek(), P;
|
|
716
716
|
}
|
|
717
717
|
function F(a, l) {
|
|
718
718
|
const { currentType: N } = l;
|
|
719
719
|
if (N !== 9)
|
|
720
720
|
return !1;
|
|
721
|
-
const
|
|
721
|
+
const P = () => {
|
|
722
722
|
const x = a.currentPeek();
|
|
723
|
-
return x === "{" ? _(a.peek()) : x === "@" || x === "|" || x === ":" || x === "." || x === ie || !x ? !1 : x === z ? (a.peek(),
|
|
724
|
-
}, Y =
|
|
723
|
+
return x === "{" ? _(a.peek()) : x === "@" || x === "|" || x === ":" || x === "." || x === ie || !x ? !1 : x === z ? (a.peek(), P()) : A(a, !1);
|
|
724
|
+
}, Y = P();
|
|
725
725
|
return a.resetPeek(), Y;
|
|
726
726
|
}
|
|
727
727
|
function C(a) {
|
|
@@ -733,8 +733,8 @@ function Ps(e, t = {}) {
|
|
|
733
733
|
const N = (Y = !1, x = "") => {
|
|
734
734
|
const U = a.currentPeek();
|
|
735
735
|
return U === "{" || U === "@" || !U ? Y : U === "|" ? !(x === ie || x === z) : U === ie ? (a.peek(), N(!0, ie)) : U === z ? (a.peek(), N(!0, z)) : !0;
|
|
736
|
-
},
|
|
737
|
-
return l && a.resetPeek(),
|
|
736
|
+
}, P = N();
|
|
737
|
+
return l && a.resetPeek(), P;
|
|
738
738
|
}
|
|
739
739
|
function M(a, l) {
|
|
740
740
|
const N = a.currentChar();
|
|
@@ -805,19 +805,19 @@ function Ps(e, t = {}) {
|
|
|
805
805
|
return l;
|
|
806
806
|
}
|
|
807
807
|
function At(a) {
|
|
808
|
-
|
|
808
|
+
D(a);
|
|
809
809
|
let l = "", N = "";
|
|
810
810
|
for (; l = Ue(a); )
|
|
811
811
|
N += l;
|
|
812
|
-
const
|
|
813
|
-
if (
|
|
812
|
+
const P = a.currentChar();
|
|
813
|
+
if (P && P !== "}" && P !== me && P !== ie && P !== z && P !== " ") {
|
|
814
814
|
const Y = et(a);
|
|
815
815
|
return T(k.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N + Y), N + Y;
|
|
816
816
|
}
|
|
817
817
|
return a.currentChar() === me && T(k.UNTERMINATED_CLOSING_BRACE, o(), 0), N;
|
|
818
818
|
}
|
|
819
819
|
function vt(a) {
|
|
820
|
-
|
|
820
|
+
D(a);
|
|
821
821
|
let l = "";
|
|
822
822
|
return a.currentChar() === "-" ? (a.next(), l += `-${$e(a)}`) : l += $e(a), a.currentChar() === me && T(k.UNTERMINATED_CLOSING_BRACE, o(), 0), l;
|
|
823
823
|
}
|
|
@@ -825,12 +825,12 @@ function Ps(e, t = {}) {
|
|
|
825
825
|
return a !== yn && a !== z;
|
|
826
826
|
}
|
|
827
827
|
function En(a) {
|
|
828
|
-
|
|
828
|
+
D(a), R(a, "'");
|
|
829
829
|
let l = "", N = "";
|
|
830
830
|
for (; l = M(a, St); )
|
|
831
831
|
l === "\\" ? N += yt(a) : N += l;
|
|
832
|
-
const
|
|
833
|
-
return
|
|
832
|
+
const P = a.currentChar();
|
|
833
|
+
return P === z || P === me ? (T(k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), P === z && (a.next(), R(a, "'")), N) : (R(a, "'"), N);
|
|
834
834
|
}
|
|
835
835
|
function yt(a) {
|
|
836
836
|
const l = a.currentChar();
|
|
@@ -848,28 +848,28 @@ function Ps(e, t = {}) {
|
|
|
848
848
|
}
|
|
849
849
|
function ze(a, l, N) {
|
|
850
850
|
R(a, l);
|
|
851
|
-
let
|
|
851
|
+
let P = "";
|
|
852
852
|
for (let Y = 0; Y < N; Y++) {
|
|
853
853
|
const x = de(a);
|
|
854
854
|
if (!x) {
|
|
855
|
-
T(k.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${l}${
|
|
855
|
+
T(k.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${l}${P}${a.currentChar()}`);
|
|
856
856
|
break;
|
|
857
857
|
}
|
|
858
|
-
|
|
858
|
+
P += x;
|
|
859
859
|
}
|
|
860
|
-
return `\\${l}${
|
|
860
|
+
return `\\${l}${P}`;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Pt(a) {
|
|
863
863
|
return a !== "{" && a !== "}" && a !== ie && a !== z;
|
|
864
864
|
}
|
|
865
865
|
function et(a) {
|
|
866
|
-
|
|
866
|
+
D(a);
|
|
867
867
|
let l = "", N = "";
|
|
868
|
-
for (; l = M(a,
|
|
868
|
+
for (; l = M(a, Pt); )
|
|
869
869
|
N += l;
|
|
870
870
|
return N;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Dt(a) {
|
|
873
873
|
let l = "", N = "";
|
|
874
874
|
for (; l = fe(a); )
|
|
875
875
|
N += l;
|
|
@@ -877,19 +877,19 @@ function Ps(e, t = {}) {
|
|
|
877
877
|
}
|
|
878
878
|
function Rt(a) {
|
|
879
879
|
const l = (N) => {
|
|
880
|
-
const
|
|
881
|
-
return
|
|
880
|
+
const P = a.currentChar();
|
|
881
|
+
return P === "{" || P === "@" || P === "|" || P === "(" || P === ")" || !P || P === ie ? N : (N += P, a.next(), l(N));
|
|
882
882
|
};
|
|
883
883
|
return l("");
|
|
884
884
|
}
|
|
885
885
|
function We(a) {
|
|
886
|
-
|
|
886
|
+
D(a);
|
|
887
887
|
const l = R(
|
|
888
888
|
a,
|
|
889
889
|
"|"
|
|
890
890
|
/* TokenChars.Pipe */
|
|
891
891
|
);
|
|
892
|
-
return
|
|
892
|
+
return D(a), l;
|
|
893
893
|
}
|
|
894
894
|
function Ge(a, l) {
|
|
895
895
|
let N = null;
|
|
@@ -900,14 +900,14 @@ function Ps(e, t = {}) {
|
|
|
900
900
|
2,
|
|
901
901
|
"{"
|
|
902
902
|
/* TokenChars.BraceLeft */
|
|
903
|
-
),
|
|
903
|
+
), D(a), l.braceNest++, N;
|
|
904
904
|
case "}":
|
|
905
905
|
return l.braceNest > 0 && l.currentType === 2 && T(k.EMPTY_PLACEHOLDER, o(), 0), a.next(), N = g(
|
|
906
906
|
l,
|
|
907
907
|
3,
|
|
908
908
|
"}"
|
|
909
909
|
/* TokenChars.BraceRight */
|
|
910
|
-
), l.braceNest--, l.braceNest > 0 &&
|
|
910
|
+
), l.braceNest--, l.braceNest > 0 && D(a), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), N;
|
|
911
911
|
case "@":
|
|
912
912
|
return l.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, o(), 0), N = Te(a, l) || v(l), l.braceNest = 0, N;
|
|
913
913
|
default: {
|
|
@@ -917,13 +917,13 @@ function Ps(e, t = {}) {
|
|
|
917
917
|
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
918
918
|
return T(k.UNTERMINATED_CLOSING_BRACE, o(), 0), l.braceNest = 0, Ye(a, l);
|
|
919
919
|
if (Y = h(a, l))
|
|
920
|
-
return N = g(l, 4, At(a)),
|
|
920
|
+
return N = g(l, 4, At(a)), D(a), N;
|
|
921
921
|
if (x = m(a, l))
|
|
922
|
-
return N = g(l, 5, vt(a)),
|
|
922
|
+
return N = g(l, 5, vt(a)), D(a), N;
|
|
923
923
|
if (U = I(a, l))
|
|
924
|
-
return N = g(l, 6, En(a)),
|
|
924
|
+
return N = g(l, 6, En(a)), D(a), N;
|
|
925
925
|
if (!Y && !x && !U)
|
|
926
|
-
return N = g(l, 12, et(a)), T(k.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N.value),
|
|
926
|
+
return N = g(l, 12, et(a)), T(k.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N.value), D(a), N;
|
|
927
927
|
break;
|
|
928
928
|
}
|
|
929
929
|
}
|
|
@@ -931,32 +931,32 @@ function Ps(e, t = {}) {
|
|
|
931
931
|
}
|
|
932
932
|
function Te(a, l) {
|
|
933
933
|
const { currentType: N } = l;
|
|
934
|
-
let
|
|
934
|
+
let P = null;
|
|
935
935
|
const Y = a.currentChar();
|
|
936
936
|
switch ((N === 7 || N === 8 || N === 11 || N === 9) && (Y === z || Y === ie) && T(k.INVALID_LINKED_FORMAT, o(), 0), Y) {
|
|
937
937
|
case "@":
|
|
938
|
-
return a.next(),
|
|
938
|
+
return a.next(), P = g(
|
|
939
939
|
l,
|
|
940
940
|
7,
|
|
941
941
|
"@"
|
|
942
942
|
/* TokenChars.LinkedAlias */
|
|
943
|
-
), l.inLinked = !0,
|
|
943
|
+
), l.inLinked = !0, P;
|
|
944
944
|
case ".":
|
|
945
|
-
return
|
|
945
|
+
return D(a), a.next(), g(
|
|
946
946
|
l,
|
|
947
947
|
8,
|
|
948
948
|
"."
|
|
949
949
|
/* TokenChars.LinkedDot */
|
|
950
950
|
);
|
|
951
951
|
case ":":
|
|
952
|
-
return
|
|
952
|
+
return D(a), a.next(), g(
|
|
953
953
|
l,
|
|
954
954
|
9,
|
|
955
955
|
":"
|
|
956
956
|
/* TokenChars.LinkedDelimiter */
|
|
957
957
|
);
|
|
958
958
|
default:
|
|
959
|
-
return C(a) ? (
|
|
959
|
+
return C(a) ? (P = g(l, 1, We(a)), l.braceNest = 0, l.inLinked = !1, P) : b(a, l) || w(a, l) ? (D(a), Te(a, l)) : f(a, l) ? (D(a), g(l, 11, Dt(a))) : F(a, l) ? (D(a), Y === "{" ? Ge(a, l) || P : g(l, 10, Rt(a))) : (N === 7 && T(k.INVALID_LINKED_FORMAT, o(), 0), l.braceNest = 0, l.inLinked = !1, Ye(a, l));
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
function Ye(a, l) {
|
|
@@ -991,8 +991,8 @@ function Ps(e, t = {}) {
|
|
|
991
991
|
return N;
|
|
992
992
|
}
|
|
993
993
|
function kt() {
|
|
994
|
-
const { currentType: a, offset: l, startLoc: N, endLoc:
|
|
995
|
-
return u.lastType = a, u.lastOffset = l, u.lastStartLoc = N, u.lastEndLoc =
|
|
994
|
+
const { currentType: a, offset: l, startLoc: N, endLoc: P } = u;
|
|
995
|
+
return u.lastType = a, u.lastOffset = l, u.lastStartLoc = N, u.lastEndLoc = P, u.offset = s(), u.startLoc = o(), r.currentChar() === me ? g(
|
|
996
996
|
u,
|
|
997
997
|
13
|
|
998
998
|
/* TokenTypes.EOF */
|
|
@@ -1144,11 +1144,11 @@ function Fs(e = {}) {
|
|
|
1144
1144
|
const E = _.context(), { offset: h, startLoc: m } = E, I = v(_);
|
|
1145
1145
|
return E.currentType === 13 ? I : R(_, h, m, I);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
const E =
|
|
1147
|
+
function D(_) {
|
|
1148
|
+
const E = Ds(_, Q({}, e)), h = E.context(), m = s(0, h.offset, h.startLoc);
|
|
1149
1149
|
return t && m.loc && (m.loc.source = _), m.body = S(E), e.onCacheKey && (m.cacheKey = e.onCacheKey(_)), h.currentType !== 13 && r(E, k.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, _[h.offset] || ""), o(m, E.currentOffset(), E.currentPosition()), m;
|
|
1150
1150
|
}
|
|
1151
|
-
return { parse:
|
|
1151
|
+
return { parse: D };
|
|
1152
1152
|
}
|
|
1153
1153
|
function le(e) {
|
|
1154
1154
|
if (e.type === 13)
|
|
@@ -1163,20 +1163,20 @@ function ws(e, t = {}) {
|
|
|
1163
1163
|
};
|
|
1164
1164
|
return { context: () => n, helper: (o) => (n.helpers.add(o), o) };
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function Pn(e, t) {
|
|
1167
1167
|
for (let n = 0; n < e.length; n++)
|
|
1168
1168
|
cn(e[n], t);
|
|
1169
1169
|
}
|
|
1170
1170
|
function cn(e, t) {
|
|
1171
1171
|
switch (e.type) {
|
|
1172
1172
|
case 1:
|
|
1173
|
-
|
|
1173
|
+
Pn(e.cases, t), t.helper(
|
|
1174
1174
|
"plural"
|
|
1175
1175
|
/* HelperNameMap.PLURAL */
|
|
1176
1176
|
);
|
|
1177
1177
|
break;
|
|
1178
1178
|
case 2:
|
|
1179
|
-
|
|
1179
|
+
Pn(e.items, t);
|
|
1180
1180
|
break;
|
|
1181
1181
|
case 6: {
|
|
1182
1182
|
cn(e.key, t), t.helper(
|
|
@@ -1219,9 +1219,9 @@ function Us(e, t = {}) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
function Vs(e) {
|
|
1221
1221
|
const t = e.body;
|
|
1222
|
-
return t.type === 2 ?
|
|
1222
|
+
return t.type === 2 ? Dn(t) : t.cases.forEach((n) => Dn(n)), e;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Dn(e) {
|
|
1225
1225
|
if (e.items.length === 1) {
|
|
1226
1226
|
const t = e.items[0];
|
|
1227
1227
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -1311,20 +1311,20 @@ function Gs(e, t) {
|
|
|
1311
1311
|
};
|
|
1312
1312
|
o && e.loc && (i.source = e.loc.source);
|
|
1313
1313
|
const c = () => i;
|
|
1314
|
-
function u(S,
|
|
1314
|
+
function u(S, D) {
|
|
1315
1315
|
i.code += S;
|
|
1316
1316
|
}
|
|
1317
|
-
function p(S,
|
|
1318
|
-
const _ =
|
|
1317
|
+
function p(S, D = !0) {
|
|
1318
|
+
const _ = D ? r : "";
|
|
1319
1319
|
u(s ? _ + " ".repeat(S) : _);
|
|
1320
1320
|
}
|
|
1321
1321
|
function L(S = !0) {
|
|
1322
|
-
const
|
|
1323
|
-
S && p(
|
|
1322
|
+
const D = ++i.indentLevel;
|
|
1323
|
+
S && p(D);
|
|
1324
1324
|
}
|
|
1325
1325
|
function T(S = !0) {
|
|
1326
|
-
const
|
|
1327
|
-
S && p(
|
|
1326
|
+
const D = --i.indentLevel;
|
|
1327
|
+
S && p(D);
|
|
1328
1328
|
}
|
|
1329
1329
|
function g() {
|
|
1330
1330
|
p(i.indentLevel);
|
|
@@ -2043,11 +2043,11 @@ function yo(e) {
|
|
|
2043
2043
|
Er = e;
|
|
2044
2044
|
}
|
|
2045
2045
|
let pr;
|
|
2046
|
-
function
|
|
2046
|
+
function Po(e) {
|
|
2047
2047
|
pr = e;
|
|
2048
2048
|
}
|
|
2049
2049
|
let Nr;
|
|
2050
|
-
function
|
|
2050
|
+
function Do(e) {
|
|
2051
2051
|
Nr = e;
|
|
2052
2052
|
}
|
|
2053
2053
|
let gr = null;
|
|
@@ -2060,7 +2060,7 @@ const Un = (e) => {
|
|
|
2060
2060
|
}, Mo = () => Or;
|
|
2061
2061
|
let Vn = 0;
|
|
2062
2062
|
function Fo(e = {}) {
|
|
2063
|
-
const t = H(e.onWarn) ? e.onWarn : ue, n = y(e.version) ? e.version : vo, r = y(e.locale) || H(e.locale) ? e.locale : _t, s = H(r) ? _t : r, o = K(e.fallbackLocale) || V(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = V(e.messages) ? e.messages : Wt(s), c = V(e.datetimeFormats) ? e.datetimeFormats : Wt(s), u = V(e.numberFormats) ? e.numberFormats : Wt(s), p = Q(G(), e.modifiers, So()), L = e.pluralRules || G(), T = H(e.missing) ? e.missing : null, g = B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving,
|
|
2063
|
+
const t = H(e.onWarn) ? e.onWarn : ue, n = y(e.version) ? e.version : vo, r = y(e.locale) || H(e.locale) ? e.locale : _t, s = H(r) ? _t : r, o = K(e.fallbackLocale) || V(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = V(e.messages) ? e.messages : Wt(s), c = V(e.datetimeFormats) ? e.datetimeFormats : Wt(s), u = V(e.numberFormats) ? e.numberFormats : Wt(s), p = Q(G(), e.modifiers, So()), L = e.pluralRules || G(), T = H(e.missing) ? e.missing : null, g = B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, D = H(e.postTranslation) ? e.postTranslation : null, _ = V(e.processor) ? e.processor : null, E = B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, m = H(e.messageCompiler) ? e.messageCompiler : Er;
|
|
2064
2064
|
process.env.NODE_ENV !== "production" && H(e.messageCompiler) && is(ye(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2065
2065
|
const I = H(e.messageResolver) ? e.messageResolver : pr || Io, b = H(e.localeFallbacker) ? e.localeFallbacker : Nr || mo, f = $(e.fallbackContext) ? e.fallbackContext : void 0, w = e, F = $(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), C = $(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), A = $(w.__meta) ? w.__meta : {};
|
|
2066
2066
|
Vn++;
|
|
@@ -2077,7 +2077,7 @@ function Fo(e = {}) {
|
|
|
2077
2077
|
fallbackWarn: v,
|
|
2078
2078
|
fallbackFormat: R,
|
|
2079
2079
|
unresolving: S,
|
|
2080
|
-
postTranslation:
|
|
2080
|
+
postTranslation: D,
|
|
2081
2081
|
processor: _,
|
|
2082
2082
|
warnHtmlMessage: E,
|
|
2083
2083
|
escapeParameter: h,
|
|
@@ -2138,7 +2138,7 @@ function Wn(e, ...t) {
|
|
|
2138
2138
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: c } = e;
|
|
2139
2139
|
if (process.env.NODE_ENV !== "production" && !Tr.dateTimeFormat)
|
|
2140
2140
|
return o(ye(te.CANNOT_FORMAT_DATE)), dt;
|
|
2141
|
-
const [u, p, L, T] = Xt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L),
|
|
2141
|
+
const [u, p, L, T] = Xt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L), D = i(
|
|
2142
2142
|
e,
|
|
2143
2143
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2144
2144
|
s,
|
|
@@ -2148,8 +2148,8 @@ function Wn(e, ...t) {
|
|
|
2148
2148
|
return new Intl.DateTimeFormat(S, T).format(p);
|
|
2149
2149
|
let _ = {}, E, h = null, m = S, I = null;
|
|
2150
2150
|
const b = "datetime format";
|
|
2151
|
-
for (let F = 0; F <
|
|
2152
|
-
if (E = I =
|
|
2151
|
+
for (let F = 0; F < D.length; F++) {
|
|
2152
|
+
if (E = I = D[F], process.env.NODE_ENV !== "production" && S !== E && It(v, u) && o(ye(te.FALLBACK_TO_DATE_FORMAT, {
|
|
2153
2153
|
key: u,
|
|
2154
2154
|
target: E
|
|
2155
2155
|
})), process.env.NODE_ENV !== "production" && S !== E) {
|
|
@@ -2232,7 +2232,7 @@ function Yn(e, ...t) {
|
|
|
2232
2232
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __numberFormatters: c } = e;
|
|
2233
2233
|
if (process.env.NODE_ENV !== "production" && !Tr.numberFormat)
|
|
2234
2234
|
return o(ye(te.CANNOT_FORMAT_NUMBER)), dt;
|
|
2235
|
-
const [u, p, L, T] = qt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L),
|
|
2235
|
+
const [u, p, L, T] = qt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L), D = i(
|
|
2236
2236
|
e,
|
|
2237
2237
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2238
2238
|
s,
|
|
@@ -2242,8 +2242,8 @@ function Yn(e, ...t) {
|
|
|
2242
2242
|
return new Intl.NumberFormat(S, T).format(p);
|
|
2243
2243
|
let _ = {}, E, h = null, m = S, I = null;
|
|
2244
2244
|
const b = "number format";
|
|
2245
|
-
for (let F = 0; F <
|
|
2246
|
-
if (E = I =
|
|
2245
|
+
for (let F = 0; F < D.length; F++) {
|
|
2246
|
+
if (E = I = D[F], process.env.NODE_ENV !== "production" && S !== E && It(v, u) && o(ye(te.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2247
2247
|
key: u,
|
|
2248
2248
|
target: E
|
|
2249
2249
|
})), process.env.NODE_ENV !== "production" && S !== E) {
|
|
@@ -2325,7 +2325,7 @@ function xo(e = {}) {
|
|
|
2325
2325
|
const h = H(e.messages) ? e.messages(_, !!E) : $(e.messages) ? e.messages[_] : !1;
|
|
2326
2326
|
return h || (e.parent ? e.parent.message(_) : Vo);
|
|
2327
2327
|
}
|
|
2328
|
-
const T = (_) => e.modifiers ? e.modifiers[_] : Uo, g = V(e.processor) && H(e.processor.normalize) ? e.processor.normalize : Wo, v = V(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Go, R = V(e.processor) && y(e.processor.type) ? e.processor.type : $o,
|
|
2328
|
+
const T = (_) => e.modifiers ? e.modifiers[_] : Uo, g = V(e.processor) && H(e.processor.normalize) ? e.processor.normalize : Wo, v = V(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Go, R = V(e.processor) && y(e.processor.type) ? e.processor.type : $o, D = {
|
|
2329
2329
|
list: c,
|
|
2330
2330
|
named: p,
|
|
2331
2331
|
plural: o,
|
|
@@ -2333,7 +2333,7 @@ function xo(e = {}) {
|
|
|
2333
2333
|
const [h, m] = E;
|
|
2334
2334
|
let I = "text", b = "";
|
|
2335
2335
|
E.length === 1 ? $(h) ? (b = h.modifier || b, I = h.type || I) : y(h) && (b = h || b) : E.length === 2 && (y(h) && (b = h || b), y(m) && (I = m || I));
|
|
2336
|
-
const f = L(_, !0)(
|
|
2336
|
+
const f = L(_, !0)(D), w = (
|
|
2337
2337
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2338
2338
|
I === "vnode" && K(f) && b ? f[0] : f
|
|
2339
2339
|
);
|
|
@@ -2345,17 +2345,17 @@ function xo(e = {}) {
|
|
|
2345
2345
|
normalize: g,
|
|
2346
2346
|
values: Q(G(), i, u)
|
|
2347
2347
|
};
|
|
2348
|
-
return
|
|
2348
|
+
return D;
|
|
2349
2349
|
}
|
|
2350
2350
|
const jn = () => "", se = (e) => H(e);
|
|
2351
2351
|
function Bn(e, ...t) {
|
|
2352
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: c } = e, [u, p] = Qt(...t), L = B(p.missingWarn) ? p.missingWarn : e.missingWarn, T = B(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, g = B(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, v = !!p.resolvedMessage, R = y(p.default) || B(p.default) ? B(p.default) ? o ? u : () => u : p.default : n ? o ? u : () => u : null, S = n || R != null && (y(R) || H(R)),
|
|
2352
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: c } = e, [u, p] = Qt(...t), L = B(p.missingWarn) ? p.missingWarn : e.missingWarn, T = B(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, g = B(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, v = !!p.resolvedMessage, R = y(p.default) || B(p.default) ? B(p.default) ? o ? u : () => u : p.default : n ? o ? u : () => u : null, S = n || R != null && (y(R) || H(R)), D = fn(e, p);
|
|
2353
2353
|
g && jo(p);
|
|
2354
2354
|
let [_, E, h] = v ? [
|
|
2355
2355
|
u,
|
|
2356
|
-
|
|
2357
|
-
c[
|
|
2358
|
-
] : br(e, u,
|
|
2356
|
+
D,
|
|
2357
|
+
c[D] || G()
|
|
2358
|
+
] : br(e, u, D, i, T, L), m = _, I = u;
|
|
2359
2359
|
if (!v && !(y(m) || ae(m) || se(m)) && S && (m = R, I = m), !v && (!(y(m) || ae(m) || se(m)) || !y(E)))
|
|
2360
2360
|
return s ? Tt : u;
|
|
2361
2361
|
if (process.env.NODE_ENV !== "production" && y(m) && e.messageCompiler == null)
|
|
@@ -2388,7 +2388,7 @@ function jo(e) {
|
|
|
2388
2388
|
function br(e, t, n, r, s, o) {
|
|
2389
2389
|
const { messages: i, onWarn: c, messageResolver: u, localeFallbacker: p } = e, L = p(e, r, n);
|
|
2390
2390
|
let T = G(), g, v = null, R = n, S = null;
|
|
2391
|
-
const
|
|
2391
|
+
const D = "translate";
|
|
2392
2392
|
for (let _ = 0; _ < L.length; _++) {
|
|
2393
2393
|
if (g = S = L[_], process.env.NODE_ENV !== "production" && n !== g && !hr(n, g) && It(s, t) && c(ye(te.FALLBACK_TO_TRANSLATE, {
|
|
2394
2394
|
key: t,
|
|
@@ -2396,11 +2396,11 @@ function br(e, t, n, r, s, o) {
|
|
|
2396
2396
|
})), process.env.NODE_ENV !== "production" && n !== g) {
|
|
2397
2397
|
const I = e.__v_emitter;
|
|
2398
2398
|
I && I.emit("fallback", {
|
|
2399
|
-
type:
|
|
2399
|
+
type: D,
|
|
2400
2400
|
key: t,
|
|
2401
2401
|
from: R,
|
|
2402
2402
|
to: S,
|
|
2403
|
-
groupId: `${
|
|
2403
|
+
groupId: `${D}:${t}`
|
|
2404
2404
|
});
|
|
2405
2405
|
}
|
|
2406
2406
|
T = i[g] || G();
|
|
@@ -2412,7 +2412,7 @@ function br(e, t, n, r, s, o) {
|
|
|
2412
2412
|
key: t,
|
|
2413
2413
|
message: v,
|
|
2414
2414
|
time: I - E,
|
|
2415
|
-
groupId: `${
|
|
2415
|
+
groupId: `${D}:${t}`
|
|
2416
2416
|
}), h && m && ne && Se && (ne(m), Se("intlify message resolve", h, m));
|
|
2417
2417
|
}
|
|
2418
2418
|
if (y(v) || ae(v) || se(v))
|
|
@@ -2424,7 +2424,7 @@ function br(e, t, n, r, s, o) {
|
|
|
2424
2424
|
t,
|
|
2425
2425
|
g,
|
|
2426
2426
|
o,
|
|
2427
|
-
|
|
2427
|
+
D
|
|
2428
2428
|
);
|
|
2429
2429
|
I !== t && (v = I);
|
|
2430
2430
|
}
|
|
@@ -2514,7 +2514,7 @@ function qo(e, t, n, r) {
|
|
|
2514
2514
|
messages: (v, R) => {
|
|
2515
2515
|
let S = i(n, v);
|
|
2516
2516
|
if (S == null && (L || R)) {
|
|
2517
|
-
const [, ,
|
|
2517
|
+
const [, , D] = br(
|
|
2518
2518
|
L || e,
|
|
2519
2519
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2520
2520
|
v,
|
|
@@ -2523,14 +2523,14 @@ function qo(e, t, n, r) {
|
|
|
2523
2523
|
u,
|
|
2524
2524
|
p
|
|
2525
2525
|
);
|
|
2526
|
-
S = i(
|
|
2526
|
+
S = i(D, v);
|
|
2527
2527
|
}
|
|
2528
2528
|
if (y(S) || ae(S)) {
|
|
2529
|
-
let
|
|
2529
|
+
let D = !1;
|
|
2530
2530
|
const E = Ar(e, v, t, S, v, () => {
|
|
2531
|
-
|
|
2531
|
+
D = !0;
|
|
2532
2532
|
});
|
|
2533
|
-
return
|
|
2533
|
+
return D ? jn : E;
|
|
2534
2534
|
} else return se(S) ? S : jn;
|
|
2535
2535
|
}
|
|
2536
2536
|
};
|
|
@@ -2706,7 +2706,7 @@ function sa(e = {}) {
|
|
|
2706
2706
|
// prettier-ignore
|
|
2707
2707
|
t && i ? t.fallbackLocale.value : y(e.fallbackLocale) || K(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
2708
2708
|
), p = o(Sr(c.value, e)), L = o(V(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), T = o(V(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
2709
|
-
let g = t ? t.missingWarn : B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : B(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat,
|
|
2709
|
+
let g = t ? t.missingWarn : B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : B(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, D = H(e.missing) ? e.missing : null, _ = H(e.missing) ? Jn(e.missing) : null, E = H(e.postTranslation) ? e.postTranslation : null, h = t ? t.warnHtmlMessage : B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
2710
2710
|
const I = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2711
2711
|
let b = e.pluralRules || t && t.pluralRules, f;
|
|
2712
2712
|
f = (() => {
|
|
@@ -2761,24 +2761,24 @@ function sa(e = {}) {
|
|
|
2761
2761
|
E = d, f.postTranslation = d;
|
|
2762
2762
|
}
|
|
2763
2763
|
function Ve() {
|
|
2764
|
-
return
|
|
2764
|
+
return D;
|
|
2765
2765
|
}
|
|
2766
2766
|
function _e(d) {
|
|
2767
|
-
d !== null && (_ = Jn(d)),
|
|
2767
|
+
d !== null && (_ = Jn(d)), D = d, f.missing = _;
|
|
2768
2768
|
}
|
|
2769
2769
|
function Z(d, O) {
|
|
2770
2770
|
return d !== "translate" || !O.resolvedMessage;
|
|
2771
2771
|
}
|
|
2772
2772
|
const de = (d, O, W, j, Ie, tt) => {
|
|
2773
2773
|
F();
|
|
2774
|
-
let
|
|
2774
|
+
let De;
|
|
2775
2775
|
try {
|
|
2776
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ? Mo() : void 0),
|
|
2776
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ? Mo() : void 0), De = d(f);
|
|
2777
2777
|
} finally {
|
|
2778
2778
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = void 0);
|
|
2779
2779
|
}
|
|
2780
2780
|
if (W !== "translate exists" && // for not `te` (e.g `t`)
|
|
2781
|
-
q(
|
|
2781
|
+
q(De) && De === Tt || W === "translate exists" && !De) {
|
|
2782
2782
|
const [Ce, kr] = O();
|
|
2783
2783
|
if (process.env.NODE_ENV !== "production" && t && y(Ce) && Z(W, kr) && (R && (It(v, Ce) || Lr(g, Ce)) && ue(mt(ce.FALLBACK_TO_ROOT, {
|
|
2784
2784
|
key: Ce,
|
|
@@ -2794,8 +2794,8 @@ function sa(e = {}) {
|
|
|
2794
2794
|
}
|
|
2795
2795
|
return t && R ? j(t) : Ie(Ce);
|
|
2796
2796
|
} else {
|
|
2797
|
-
if (tt(
|
|
2798
|
-
return
|
|
2797
|
+
if (tt(De))
|
|
2798
|
+
return De;
|
|
2799
2799
|
throw Qe(J.UNEXPECTED_RETURN_TYPE);
|
|
2800
2800
|
}
|
|
2801
2801
|
};
|
|
@@ -2834,13 +2834,13 @@ function sa(e = {}) {
|
|
|
2834
2834
|
return W;
|
|
2835
2835
|
}, () => Qt(...d), "translate", (O) => O[Jt](...d), (O) => [Kn(O)], (O) => K(O));
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function Pt(...d) {
|
|
2838
2838
|
return de((O) => Reflect.apply(Yn, null, [O, ...d]), () => qt(...d), "number format", (O) => O[zt](...d), qn, (O) => y(O) || K(O));
|
|
2839
2839
|
}
|
|
2840
2840
|
function et(...d) {
|
|
2841
2841
|
return de((O) => Reflect.apply(Wn, null, [O, ...d]), () => Xt(...d), "datetime format", (O) => O[Zt](...d), qn, (O) => y(O) || K(O));
|
|
2842
2842
|
}
|
|
2843
|
-
function
|
|
2843
|
+
function Dt(d) {
|
|
2844
2844
|
b = d, f.pluralRules = b;
|
|
2845
2845
|
}
|
|
2846
2846
|
function Rt(d, O) {
|
|
@@ -2896,7 +2896,7 @@ function sa(e = {}) {
|
|
|
2896
2896
|
function N(d, O) {
|
|
2897
2897
|
L.value[d] = Q(L.value[d] || {}, O), f.datetimeFormats = L.value, Gn(f, d, O);
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function P(d) {
|
|
2900
2900
|
return T.value[d] || {};
|
|
2901
2901
|
}
|
|
2902
2902
|
function Y(d, O) {
|
|
@@ -2977,9 +2977,9 @@ function sa(e = {}) {
|
|
|
2977
2977
|
setPostTranslationHandler: Ue,
|
|
2978
2978
|
getMissingHandler: Ve,
|
|
2979
2979
|
setMissingHandler: _e,
|
|
2980
|
-
[zo]:
|
|
2980
|
+
[zo]: Dt
|
|
2981
2981
|
};
|
|
2982
|
-
return U.datetimeFormats = X, U.numberFormats = fe, U.rt = bt, U.te = Rt, U.tm = Ge, U.d = At, U.n = vt, U.getDateTimeFormat = a, U.setDateTimeFormat = l, U.mergeDateTimeFormat = N, U.getNumberFormat =
|
|
2982
|
+
return U.datetimeFormats = X, U.numberFormats = fe, U.rt = bt, U.te = Rt, U.tm = Ge, U.d = At, U.n = vt, U.getDateTimeFormat = a, U.setDateTimeFormat = l, U.mergeDateTimeFormat = N, U.getNumberFormat = P, U.setNumberFormat = Y, U.mergeNumberFormat = x, U[vr] = n, U[Jt] = ze, U[Zt] = et, U[zt] = Pt, process.env.NODE_ENV !== "production" && (U[en] = (d) => {
|
|
2983
2983
|
f.__v_emitter = d;
|
|
2984
2984
|
}, U[tn] = () => {
|
|
2985
2985
|
f.__v_emitter = void 0;
|
|
@@ -3015,7 +3015,7 @@ function oa({ slots: e }, t) {
|
|
|
3015
3015
|
return s && (n[r] = s()), n;
|
|
3016
3016
|
}, G());
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3018
|
+
function Pr() {
|
|
3019
3019
|
return it;
|
|
3020
3020
|
}
|
|
3021
3021
|
Q({
|
|
@@ -3031,7 +3031,7 @@ Q({
|
|
|
3031
3031
|
function aa(e) {
|
|
3032
3032
|
return K(e) && !y(e[0]);
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function Dr(e, t, n, r) {
|
|
3035
3035
|
const { slots: s, attrs: o } = t;
|
|
3036
3036
|
return () => {
|
|
3037
3037
|
const i = { part: !0 };
|
|
@@ -3043,7 +3043,7 @@ function Pr(e, t, n, r) {
|
|
|
3043
3043
|
const R = s[g.type], S = R ? R({ [g.type]: g.value, index: v, parts: u }) : [g.value];
|
|
3044
3044
|
return aa(S) && (S[0].key = `${g.type}-${v}`), S;
|
|
3045
3045
|
}) : y(u) && (p = [u]);
|
|
3046
|
-
const L = Q(G(), o), T = y(e.tag) || $(e.tag) ? e.tag :
|
|
3046
|
+
const L = Q(G(), o), T = y(e.tag) || $(e.tag) ? e.tag : Pr();
|
|
3047
3047
|
return tr(T, L, p);
|
|
3048
3048
|
};
|
|
3049
3049
|
}
|
|
@@ -3138,15 +3138,15 @@ Q({
|
|
|
3138
3138
|
}, mn);
|
|
3139
3139
|
Jo();
|
|
3140
3140
|
yo(ao);
|
|
3141
|
-
|
|
3142
|
-
|
|
3141
|
+
Po(Co);
|
|
3142
|
+
Do(mr);
|
|
3143
3143
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3144
3144
|
const e = Ae();
|
|
3145
3145
|
e.__INTLIFY__ = !0, io(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3146
3146
|
}
|
|
3147
3147
|
process.env.NODE_ENV;
|
|
3148
3148
|
let Et = null;
|
|
3149
|
-
function
|
|
3149
|
+
function Ya(e) {
|
|
3150
3150
|
if (Et !== null) {
|
|
3151
3151
|
console.warn(
|
|
3152
3152
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
@@ -3162,7 +3162,7 @@ function ma() {
|
|
|
3162
3162
|
);
|
|
3163
3163
|
return Et;
|
|
3164
3164
|
}
|
|
3165
|
-
function
|
|
3165
|
+
function Ha(e) {
|
|
3166
3166
|
const { t } = Ct({
|
|
3167
3167
|
useScope: "global",
|
|
3168
3168
|
__i18n: ma().global
|
|
@@ -3174,7 +3174,7 @@ function Ya(e) {
|
|
|
3174
3174
|
return { t: n };
|
|
3175
3175
|
}
|
|
3176
3176
|
let pt = null;
|
|
3177
|
-
function
|
|
3177
|
+
function xa(e) {
|
|
3178
3178
|
if (pt !== null) {
|
|
3179
3179
|
console.warn(
|
|
3180
3180
|
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
@@ -3295,7 +3295,7 @@ const pa = [
|
|
|
3295
3295
|
"cardStyle",
|
|
3296
3296
|
"cardClass",
|
|
3297
3297
|
"titleClass"
|
|
3298
|
-
], ba = ["dark", "square", "flat", "bordered"], Aa = ["align", "vertical"], zn = {
|
|
3298
|
+
], ba = ["dark", "square", "flat", "bordered"], Aa = ["align", "vertical"], va = ["left", "right", "name", "size", "color"], zn = {
|
|
3299
3299
|
"q-btn": pa,
|
|
3300
3300
|
"q-tabs": Na,
|
|
3301
3301
|
"q-route-tab": ga,
|
|
@@ -3306,7 +3306,8 @@ const pa = [
|
|
|
3306
3306
|
"q-badge": Ia,
|
|
3307
3307
|
"q-table": Ca,
|
|
3308
3308
|
"q-card": ba,
|
|
3309
|
-
"q-card-actions": Aa
|
|
3309
|
+
"q-card-actions": Aa,
|
|
3310
|
+
"q-icon": va
|
|
3310
3311
|
};
|
|
3311
3312
|
function er(e, t) {
|
|
3312
3313
|
return t.split(".").reduce((n, r) => {
|
|
@@ -3314,7 +3315,7 @@ function er(e, t) {
|
|
|
3314
3315
|
return n[r];
|
|
3315
3316
|
}, e);
|
|
3316
3317
|
}
|
|
3317
|
-
function
|
|
3318
|
+
function Sa(e, t, n) {
|
|
3318
3319
|
let r = er(e, `${t}.${n}`);
|
|
3319
3320
|
if (r === void 0 && (r = er(e, `default.${n}`)), typeof r == "object")
|
|
3320
3321
|
throw new Error(
|
|
@@ -3322,19 +3323,19 @@ function va(e, t, n) {
|
|
|
3322
3323
|
);
|
|
3323
3324
|
return r;
|
|
3324
3325
|
}
|
|
3325
|
-
function
|
|
3326
|
+
function ya(e) {
|
|
3326
3327
|
if (!(e in zn))
|
|
3327
3328
|
throw new Error(
|
|
3328
3329
|
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
3329
3330
|
);
|
|
3330
3331
|
return zn[e];
|
|
3331
3332
|
}
|
|
3332
|
-
function
|
|
3333
|
+
function ja() {
|
|
3333
3334
|
const e = ge(() => Ea());
|
|
3334
3335
|
function t(n, r, s) {
|
|
3335
|
-
const o =
|
|
3336
|
+
const o = ya(r), i = {};
|
|
3336
3337
|
for (const c of o) {
|
|
3337
|
-
const u = s?.[c] ??
|
|
3338
|
+
const u = s?.[c] ?? Sa(e.value, n, `${r}.${String(c)}`);
|
|
3338
3339
|
u !== void 0 && (i[c] = u);
|
|
3339
3340
|
}
|
|
3340
3341
|
return i;
|
|
@@ -3342,7 +3343,7 @@ function xa() {
|
|
|
3342
3343
|
return { ui: t };
|
|
3343
3344
|
}
|
|
3344
3345
|
let Nt = null;
|
|
3345
|
-
function
|
|
3346
|
+
function Ba(e) {
|
|
3346
3347
|
if (Nt !== null) {
|
|
3347
3348
|
console.warn(
|
|
3348
3349
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
@@ -3351,22 +3352,22 @@ function ja(e) {
|
|
|
3351
3352
|
}
|
|
3352
3353
|
Nt = e;
|
|
3353
3354
|
}
|
|
3354
|
-
function
|
|
3355
|
+
function Pe() {
|
|
3355
3356
|
if (Nt === null)
|
|
3356
3357
|
throw new Error(
|
|
3357
3358
|
"[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first."
|
|
3358
3359
|
);
|
|
3359
3360
|
return Nt;
|
|
3360
3361
|
}
|
|
3361
|
-
async function
|
|
3362
|
-
return (await
|
|
3362
|
+
async function Pa() {
|
|
3363
|
+
return (await Pe().get("/metadata/entities")).data;
|
|
3363
3364
|
}
|
|
3364
3365
|
async function Da() {
|
|
3365
|
-
return (await
|
|
3366
|
+
return (await Pe().get(
|
|
3366
3367
|
"/metadata/routes"
|
|
3367
3368
|
)).data;
|
|
3368
3369
|
}
|
|
3369
|
-
const
|
|
3370
|
+
const Ka = () => Ra(on()), Ra = /* @__PURE__ */ sn("LinidConfigurationStore", {
|
|
3370
3371
|
state: () => ({
|
|
3371
3372
|
entities: [],
|
|
3372
3373
|
apiEndpoints: [],
|
|
@@ -3397,7 +3398,7 @@ const Ba = () => Pa(on()), Pa = /* @__PURE__ */ sn("LinidConfigurationStore", {
|
|
|
3397
3398
|
this.loading = !0, this.error = null;
|
|
3398
3399
|
try {
|
|
3399
3400
|
const [e, t] = await Promise.all([
|
|
3400
|
-
|
|
3401
|
+
Pa(),
|
|
3401
3402
|
Da()
|
|
3402
3403
|
]);
|
|
3403
3404
|
this.entities = e, this.apiEndpoints = t;
|
|
@@ -3408,7 +3409,7 @@ const Ba = () => Pa(on()), Pa = /* @__PURE__ */ sn("LinidConfigurationStore", {
|
|
|
3408
3409
|
}
|
|
3409
3410
|
}
|
|
3410
3411
|
}
|
|
3411
|
-
}),
|
|
3412
|
+
}), Xa = () => ka(on()), ka = /* @__PURE__ */ sn("LinidUiStore", {
|
|
3412
3413
|
state: () => ({
|
|
3413
3414
|
mainNavigationItems: []
|
|
3414
3415
|
}),
|
|
@@ -3422,7 +3423,7 @@ const Ba = () => Pa(on()), Pa = /* @__PURE__ */ sn("LinidConfigurationStore", {
|
|
|
3422
3423
|
}
|
|
3423
3424
|
}
|
|
3424
3425
|
}), Rr = /* @__PURE__ */ new Map();
|
|
3425
|
-
function
|
|
3426
|
+
function qa(e) {
|
|
3426
3427
|
Rr.set(e.instanceId, e);
|
|
3427
3428
|
}
|
|
3428
3429
|
function Ze(e) {
|
|
@@ -3433,37 +3434,37 @@ function Ze(e) {
|
|
|
3433
3434
|
);
|
|
3434
3435
|
return t;
|
|
3435
3436
|
}
|
|
3436
|
-
async function
|
|
3437
|
+
async function Qa(e, t) {
|
|
3437
3438
|
const n = Ze(e);
|
|
3438
|
-
return
|
|
3439
|
+
return Pe().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
3439
3440
|
}
|
|
3440
|
-
async function
|
|
3441
|
+
async function Ja(e, t, n) {
|
|
3441
3442
|
const r = Ze(e);
|
|
3442
|
-
return
|
|
3443
|
+
return Pe().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
3443
3444
|
}
|
|
3444
|
-
async function
|
|
3445
|
+
async function Za(e, t, n) {
|
|
3445
3446
|
const r = Ze(e);
|
|
3446
|
-
return
|
|
3447
|
+
return Pe().get(`/${r.apiEndpoint}`, {
|
|
3447
3448
|
params: { ...t, ...n }
|
|
3448
3449
|
}).then(({ data: s }) => s);
|
|
3449
3450
|
}
|
|
3450
|
-
async function
|
|
3451
|
+
async function za(e, t) {
|
|
3451
3452
|
const n = Ze(e);
|
|
3452
|
-
return
|
|
3453
|
+
return Pe().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
3453
3454
|
}
|
|
3454
|
-
async function
|
|
3455
|
+
async function ei(e, t) {
|
|
3455
3456
|
const n = Ze(e);
|
|
3456
|
-
return
|
|
3457
|
+
return Pe().delete(`/${n.apiEndpoint}/${t}`);
|
|
3457
3458
|
}
|
|
3458
|
-
function
|
|
3459
|
+
function Ma(e, t) {
|
|
3459
3460
|
if (!gt(e) || !gt(t))
|
|
3460
3461
|
return t;
|
|
3461
3462
|
const n = { ...e };
|
|
3462
3463
|
for (const r of Object.keys(t))
|
|
3463
|
-
n[r] =
|
|
3464
|
+
n[r] = Ma(e[r], t[r]);
|
|
3464
3465
|
return n;
|
|
3465
3466
|
}
|
|
3466
|
-
function
|
|
3467
|
+
function ti(e) {
|
|
3467
3468
|
const t = {};
|
|
3468
3469
|
for (const [n, r] of Object.entries(e)) {
|
|
3469
3470
|
const s = n.split(".");
|
|
@@ -3477,16 +3478,16 @@ function ei(e) {
|
|
|
3477
3478
|
function gt(e) {
|
|
3478
3479
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3479
3480
|
}
|
|
3480
|
-
function
|
|
3481
|
+
function Fa(e, t) {
|
|
3481
3482
|
return typeof e != "object" || e === null ? e : Object.fromEntries(
|
|
3482
3483
|
Object.entries(e).map(([n, r]) => {
|
|
3483
|
-
const s = t(n), o = gt(r) ?
|
|
3484
|
+
const s = t(n), o = gt(r) ? Fa(r, t) : r;
|
|
3484
3485
|
return [s, o];
|
|
3485
3486
|
})
|
|
3486
3487
|
);
|
|
3487
3488
|
}
|
|
3488
|
-
var
|
|
3489
|
-
class
|
|
3489
|
+
var wa = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(wa || {});
|
|
3490
|
+
class ni {
|
|
3490
3491
|
/**
|
|
3491
3492
|
* Unique identifier for the module.
|
|
3492
3493
|
*
|
|
@@ -3586,14 +3587,14 @@ class ti {
|
|
|
3586
3587
|
}
|
|
3587
3588
|
}
|
|
3588
3589
|
export {
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3590
|
+
ni as BasicRemoteModule,
|
|
3591
|
+
Wa as LinidZoneRenderer,
|
|
3592
|
+
wa as ModuleLifecyclePhase,
|
|
3593
|
+
ei as deleteEntityById,
|
|
3594
|
+
ti as fromDot,
|
|
3595
|
+
Za as getEntities,
|
|
3596
|
+
za as getEntityById,
|
|
3597
|
+
Pe as getHttpClient,
|
|
3597
3598
|
ma as getI18nInstance,
|
|
3598
3599
|
es as getModuleFederation,
|
|
3599
3600
|
Ze as getModuleHostConfiguration,
|
|
@@ -3601,20 +3602,20 @@ export {
|
|
|
3601
3602
|
Ea as getUiDesign,
|
|
3602
3603
|
gt as isObject,
|
|
3603
3604
|
ts as loadAsyncComponent,
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3605
|
+
Ma as merge,
|
|
3606
|
+
qa as registerModuleHostConfiguration,
|
|
3607
|
+
Fa as renameKeys,
|
|
3608
|
+
Qa as saveEntity,
|
|
3609
|
+
Ba as setHttpClient,
|
|
3610
|
+
Ya as setI18nInstance,
|
|
3611
|
+
Va as setModuleFederation,
|
|
3612
|
+
$a as setPiniaStore,
|
|
3613
|
+
xa as setUiDesign,
|
|
3614
|
+
Ja as updateEntity,
|
|
3615
|
+
Ka as useLinidConfigurationStore,
|
|
3616
|
+
Xa as useLinidUiStore,
|
|
3616
3617
|
os as useLinidZoneStore,
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3618
|
+
Ga as usePagination,
|
|
3619
|
+
Ha as useScopedI18n,
|
|
3620
|
+
ja as useUiDesign
|
|
3620
3621
|
};
|