@cregis/ui 1.0.14 → 1.0.16
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/index.css +1 -1
- package/dist/index.js +655 -639
- package/dist/types/index.d.ts +24 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as $n from "vue";
|
|
2
|
-
import { effectScope as Gs, computed as I, watch as ye, isRef as Ys, ref as z, shallowRef as Ks, defineComponent as
|
|
2
|
+
import { effectScope as Gs, computed as I, watch as ye, isRef as Ys, ref as z, shallowRef as Ks, defineComponent as ue, h as wt, getCurrentScope as Xs, onScopeDispose as qs, Fragment as Be, inject as In, onMounted as Dt, onUnmounted as Je, createVNode as oe, Text as Qs, useSlots as Ra, openBlock as w, createElementBlock as x, normalizeClass as Z, createElementVNode as F, mergeProps as gt, createBlock as Oe, resolveDynamicComponent as sn, normalizeStyle as ce, renderSlot as de, toDisplayString as J, createCommentVNode as X, unref as te, withDirectives as Ut, vModelDynamic as Js, withModifiers as Wt, vModelText as Zs, withCtx as Ne, createTextVNode as qe, nextTick as dt, reactive as Mt, provide as ur, toRef as En, renderList as vt, onBeforeUnmount as $a, Transition as mn, render as Bt, toHandlers as Mn, Teleport as dr, vShow as An, createSlots as $r } from "vue";
|
|
3
3
|
import { EdsLoad as Yn, EdsCloseCircleFill as eo, EdsTickFill as Ma, EdsWarningFill as to, EdsSearch as Va, EdsArrowDownMiniIos as fr, EdsArrowRightMiniIos as no, EdsAdd as Mr, EdsClose as Fa, EdsWarningLonely as ro, EdsTick as ao, EdsNoData as so } from "@cregis/icon";
|
|
4
4
|
/*!
|
|
5
5
|
* shared v11.4.8
|
|
@@ -7,13 +7,13 @@ import { EdsLoad as Yn, EdsCloseCircleFill as eo, EdsTickFill as Ma, EdsWarningF
|
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
9
9
|
const Qe = typeof window < "u";
|
|
10
|
-
let Ve,
|
|
10
|
+
let Ve, St;
|
|
11
11
|
if (process.env.NODE_ENV !== "production") {
|
|
12
12
|
const e = Qe && window.performance;
|
|
13
13
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
14
14
|
e.clearMeasures && (Ve = (t) => {
|
|
15
15
|
e.mark(t);
|
|
16
|
-
},
|
|
16
|
+
}, St = (t, n, a) => {
|
|
17
17
|
e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
@@ -21,13 +21,13 @@ const oo = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
21
21
|
function Dn(e, ...t) {
|
|
22
22
|
return t.length === 1 && ae(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(oo, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
23
23
|
}
|
|
24
|
-
const ot = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), lo = (e, t, n) => io({ l: e, k: t, s: n }), io = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Le = (e) => typeof e == "number" && isFinite(e), Ua = (e) => pr(e) === "[object Date]", Ht = (e) => pr(e) === "[object RegExp]", mr = (e) =>
|
|
24
|
+
const ot = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), lo = (e, t, n) => io({ l: e, k: t, s: n }), io = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Le = (e) => typeof e == "number" && isFinite(e), Ua = (e) => pr(e) === "[object Date]", Ht = (e) => pr(e) === "[object RegExp]", mr = (e) => ie(e) && Object.keys(e).length === 0, Ce = Object.assign, co = Object.create, fe = (e = null) => co(e);
|
|
25
25
|
let Vr;
|
|
26
26
|
const Lt = () => Vr || (Vr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : fe()), uo = Object.prototype.hasOwnProperty;
|
|
27
27
|
function ze(e, t) {
|
|
28
28
|
return uo.call(e, t);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Te = Array.isArray, ge = (e) => typeof e == "function", M = (e) => typeof e == "string", se = (e) => typeof e == "boolean", ae = (e) => e !== null && typeof e == "object", fo = (e) => ae(e) && ge(e.then) && ge(e.catch), Wa = Object.prototype.toString, pr = (e) => Wa.call(e), ie = (e) => pr(e) === "[object Object]", mo = (e) => e == null ? "" : Te(e) || ie(e) && e.toString === Wa ? JSON.stringify(e, null, 2) : String(e);
|
|
31
31
|
function vr(e, t = "") {
|
|
32
32
|
return e.reduce((n, a, r) => r === 0 ? n + a : n + t + a, "");
|
|
33
33
|
}
|
|
@@ -137,8 +137,8 @@ function xn() {
|
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const gn = (e) => !ae(e) ||
|
|
141
|
-
function
|
|
140
|
+
const gn = (e) => !ae(e) || Te(e);
|
|
141
|
+
function Tn(e, t) {
|
|
142
142
|
if (gn(e) || gn(t))
|
|
143
143
|
throw new Error("Invalid value");
|
|
144
144
|
const n = [{ src: e, des: t }];
|
|
@@ -154,7 +154,7 @@ function En(e, t) {
|
|
|
154
154
|
* (c) 2026 kazuya kawaguchi
|
|
155
155
|
* Released under the MIT License.
|
|
156
156
|
*/
|
|
157
|
-
function
|
|
157
|
+
function So(e, t, n) {
|
|
158
158
|
return { line: e, column: t, offset: n };
|
|
159
159
|
}
|
|
160
160
|
function Kn(e, t, n) {
|
|
@@ -181,7 +181,7 @@ const K = {
|
|
|
181
181
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
182
182
|
// minifier error codes
|
|
183
183
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
184
|
-
},
|
|
184
|
+
}, ko = 17, Io = {
|
|
185
185
|
// tokenizer error messages
|
|
186
186
|
[K.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
187
187
|
[K.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -225,7 +225,7 @@ function Mo(e) {
|
|
|
225
225
|
function h() {
|
|
226
226
|
n = 0, a = 1, r = 1, s = 0;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function S(y = 0) {
|
|
229
229
|
s = y;
|
|
230
230
|
}
|
|
231
231
|
function T() {
|
|
@@ -245,13 +245,13 @@ function Mo(e) {
|
|
|
245
245
|
next: _,
|
|
246
246
|
peek: O,
|
|
247
247
|
reset: h,
|
|
248
|
-
resetPeek:
|
|
248
|
+
resetPeek: S,
|
|
249
249
|
skipToPeek: T
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
const ct = void 0, Vo = ".", Hr = "'", Fo = "tokenizer";
|
|
253
253
|
function Uo(e, t = {}) {
|
|
254
|
-
const n = t.location !== !1, a = Mo(e), r = () => a.index(), s = () =>
|
|
254
|
+
const n = t.location !== !1, a = Mo(e), r = () => a.index(), s = () => So(a.line(), a.column(), a.index()), o = s(), l = r(), i = {
|
|
255
255
|
currentType: 13,
|
|
256
256
|
offset: l,
|
|
257
257
|
startLoc: o,
|
|
@@ -327,7 +327,7 @@ function Uo(e, t = {}) {
|
|
|
327
327
|
const P = c.currentPeek() === "-" ? c.peek() : c.currentPeek(), Q = _(P);
|
|
328
328
|
return c.resetPeek(), Q;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function S(c, u) {
|
|
331
331
|
const { currentType: b } = u;
|
|
332
332
|
if (b !== 2)
|
|
333
333
|
return !1;
|
|
@@ -405,7 +405,7 @@ function Uo(e, t = {}) {
|
|
|
405
405
|
u === 36 || // $
|
|
406
406
|
u === 45;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function k(c) {
|
|
409
409
|
return Y(c, he);
|
|
410
410
|
}
|
|
411
411
|
function A(c) {
|
|
@@ -424,13 +424,13 @@ function Uo(e, t = {}) {
|
|
|
424
424
|
function j(c) {
|
|
425
425
|
return Y(c, V);
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function ee(c) {
|
|
428
428
|
let u = "", b = "";
|
|
429
429
|
for (; u = R(c); )
|
|
430
430
|
b += u;
|
|
431
431
|
return b;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function le(c) {
|
|
434
434
|
let u = "";
|
|
435
435
|
for (; ; ) {
|
|
436
436
|
const b = c.currentChar();
|
|
@@ -457,7 +457,7 @@ function Uo(e, t = {}) {
|
|
|
457
457
|
function _e(c) {
|
|
458
458
|
L(c);
|
|
459
459
|
let u = "", b = "";
|
|
460
|
-
for (; u =
|
|
460
|
+
for (; u = k(c); )
|
|
461
461
|
b += u;
|
|
462
462
|
const P = c.currentChar();
|
|
463
463
|
if (P && P !== "}" && P !== ct && P !== tt && P !== Ae && P !== " ") {
|
|
@@ -469,15 +469,15 @@ function Uo(e, t = {}) {
|
|
|
469
469
|
function Re(c) {
|
|
470
470
|
L(c);
|
|
471
471
|
let u = "";
|
|
472
|
-
return c.currentChar() === "-" ? (c.next(), u += `-${
|
|
472
|
+
return c.currentChar() === "-" ? (c.next(), u += `-${ee(c)}`) : u += ee(c), c.currentChar() === ct && v(K.UNTERMINATED_CLOSING_BRACE, s(), 0), u;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function ke(c) {
|
|
475
475
|
return c !== Hr && c !== Ae;
|
|
476
476
|
}
|
|
477
477
|
function xe(c) {
|
|
478
478
|
L(c), E(c, "'");
|
|
479
479
|
let u = "", b = "";
|
|
480
|
-
for (; u = Y(c,
|
|
480
|
+
for (; u = Y(c, ke); )
|
|
481
481
|
u === "\\" ? b += $(c) : b += u;
|
|
482
482
|
const P = c.currentChar();
|
|
483
483
|
return P === Ae || P === ct ? (v(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), P === Ae && (c.next(), E(c, "'")), b) : (E(c, "'"), b);
|
|
@@ -570,7 +570,7 @@ function Uo(e, t = {}) {
|
|
|
570
570
|
return b = p(u, 4, _e(c)), L(c), b;
|
|
571
571
|
if (ve = h(c, u))
|
|
572
572
|
return b = p(u, 5, Re(c)), L(c), b;
|
|
573
|
-
if (ne =
|
|
573
|
+
if (ne = S(c, u))
|
|
574
574
|
return b = p(u, 6, xe(c)), L(c), b;
|
|
575
575
|
if (!Q && !ve && !ne)
|
|
576
576
|
return b = p(u, 12, Ie(c)), v(K.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, b.value), L(c), b;
|
|
@@ -634,7 +634,7 @@ function Uo(e, t = {}) {
|
|
|
634
634
|
if (G(c))
|
|
635
635
|
return b = p(u, 1, Ze(c)), u.braceNest = 0, u.inLinked = !1, b;
|
|
636
636
|
if (H(c))
|
|
637
|
-
return p(u, 0,
|
|
637
|
+
return p(u, 0, le(c));
|
|
638
638
|
break;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
@@ -674,12 +674,12 @@ function zo(e, t, n) {
|
|
|
674
674
|
}
|
|
675
675
|
function Go(e = {}) {
|
|
676
676
|
const t = e.location !== !1, { onError: n } = e;
|
|
677
|
-
function a(d, _, O, h, ...
|
|
677
|
+
function a(d, _, O, h, ...S) {
|
|
678
678
|
const T = d.currentPosition();
|
|
679
679
|
if (T.offset += h, T.column += h, n) {
|
|
680
680
|
const y = t ? Kn(O, T) : null, W = Qt(_, y, {
|
|
681
681
|
domain: Wo,
|
|
682
|
-
args:
|
|
682
|
+
args: S
|
|
683
683
|
});
|
|
684
684
|
n(W);
|
|
685
685
|
}
|
|
@@ -696,20 +696,20 @@ function Go(e = {}) {
|
|
|
696
696
|
return h.value = _.replace(Ho, jo), s(h, d.currentOffset(), d.currentPosition()), h;
|
|
697
697
|
}
|
|
698
698
|
function l(d, _) {
|
|
699
|
-
const O = d.context(), { lastOffset: h, lastStartLoc:
|
|
699
|
+
const O = d.context(), { lastOffset: h, lastStartLoc: S } = O, T = r(5, h, S);
|
|
700
700
|
return T.index = parseInt(_, 10), d.nextToken(), s(T, d.currentOffset(), d.currentPosition()), T;
|
|
701
701
|
}
|
|
702
702
|
function i(d, _) {
|
|
703
|
-
const O = d.context(), { lastOffset: h, lastStartLoc:
|
|
703
|
+
const O = d.context(), { lastOffset: h, lastStartLoc: S } = O, T = r(4, h, S);
|
|
704
704
|
return T.key = _, d.nextToken(), s(T, d.currentOffset(), d.currentPosition()), T;
|
|
705
705
|
}
|
|
706
706
|
function f(d, _) {
|
|
707
|
-
const O = d.context(), { lastOffset: h, lastStartLoc:
|
|
707
|
+
const O = d.context(), { lastOffset: h, lastStartLoc: S } = O, T = r(9, h, S);
|
|
708
708
|
return T.value = _.replace(Bo, zo), d.nextToken(), s(T, d.currentOffset(), d.currentPosition()), T;
|
|
709
709
|
}
|
|
710
710
|
function m(d) {
|
|
711
|
-
const _ = d.nextToken(), O = d.context(), { lastOffset: h, lastStartLoc:
|
|
712
|
-
return _.type !== 11 ? (a(d, K.UNEXPECTED_EMPTY_LINKED_MODIFIER, O.lastStartLoc, 0), T.value = "", s(T, h,
|
|
711
|
+
const _ = d.nextToken(), O = d.context(), { lastOffset: h, lastStartLoc: S } = O, T = r(8, h, S);
|
|
712
|
+
return _.type !== 11 ? (a(d, K.UNEXPECTED_EMPTY_LINKED_MODIFIER, O.lastStartLoc, 0), T.value = "", s(T, h, S), {
|
|
713
713
|
nextConsumeToken: _,
|
|
714
714
|
node: T
|
|
715
715
|
}) : (_.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, nt(_)), T.value = _.value || "", s(T, d.currentOffset(), d.currentPosition()), {
|
|
@@ -724,8 +724,8 @@ function Go(e = {}) {
|
|
|
724
724
|
const _ = d.context(), O = r(6, _.offset, _.startLoc);
|
|
725
725
|
let h = d.nextToken();
|
|
726
726
|
if (h.type === 8) {
|
|
727
|
-
const
|
|
728
|
-
O.modifier =
|
|
727
|
+
const S = m(d);
|
|
728
|
+
O.modifier = S.node, h = S.nextConsumeToken || d.nextToken();
|
|
729
729
|
}
|
|
730
730
|
switch (h.type !== 9 && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(h)), h = d.nextToken(), h.type === 2 && (h = d.nextToken()), h.type) {
|
|
731
731
|
case 10:
|
|
@@ -742,8 +742,8 @@ function Go(e = {}) {
|
|
|
742
742
|
break;
|
|
743
743
|
default: {
|
|
744
744
|
a(d, K.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0);
|
|
745
|
-
const
|
|
746
|
-
return T.value = "", s(T,
|
|
745
|
+
const S = d.context(), T = r(7, S.offset, S.startLoc);
|
|
746
|
+
return T.value = "", s(T, S.offset, S.startLoc), O.key = T, s(O, S.offset, S.startLoc), {
|
|
747
747
|
nextConsumeToken: h,
|
|
748
748
|
node: O
|
|
749
749
|
};
|
|
@@ -754,48 +754,48 @@ function Go(e = {}) {
|
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
756
|
function g(d) {
|
|
757
|
-
const _ = d.context(), O = _.currentType === 1 ? d.currentOffset() : _.offset, h = _.currentType === 1 ? _.endLoc : _.startLoc,
|
|
758
|
-
|
|
757
|
+
const _ = d.context(), O = _.currentType === 1 ? d.currentOffset() : _.offset, h = _.currentType === 1 ? _.endLoc : _.startLoc, S = r(2, O, h);
|
|
758
|
+
S.items = [];
|
|
759
759
|
let T = null;
|
|
760
760
|
do {
|
|
761
761
|
const B = T || d.nextToken();
|
|
762
762
|
switch (T = null, B.type) {
|
|
763
763
|
case 0:
|
|
764
|
-
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)),
|
|
764
|
+
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)), S.items.push(o(d, B.value || ""));
|
|
765
765
|
break;
|
|
766
766
|
case 5:
|
|
767
|
-
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)),
|
|
767
|
+
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)), S.items.push(l(d, B.value || ""));
|
|
768
768
|
break;
|
|
769
769
|
case 4:
|
|
770
|
-
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)),
|
|
770
|
+
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)), S.items.push(i(d, B.value || ""));
|
|
771
771
|
break;
|
|
772
772
|
case 6:
|
|
773
|
-
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)),
|
|
773
|
+
B.value == null && a(d, K.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, nt(B)), S.items.push(f(d, B.value || ""));
|
|
774
774
|
break;
|
|
775
775
|
case 7: {
|
|
776
776
|
const G = p(d);
|
|
777
|
-
|
|
777
|
+
S.items.push(G.node), T = G.nextConsumeToken || null;
|
|
778
778
|
break;
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
} while (_.currentType !== 13 && _.currentType !== 1);
|
|
782
782
|
const y = _.currentType === 1 ? _.lastOffset : d.currentOffset(), W = _.currentType === 1 ? _.lastEndLoc : d.currentPosition();
|
|
783
|
-
return s(
|
|
783
|
+
return s(S, y, W), S;
|
|
784
784
|
}
|
|
785
785
|
function E(d, _, O, h) {
|
|
786
|
-
const
|
|
786
|
+
const S = d.context();
|
|
787
787
|
let T = h.items.length === 0;
|
|
788
788
|
const y = r(1, _, O);
|
|
789
789
|
y.cases = [], y.cases.push(h);
|
|
790
790
|
do {
|
|
791
791
|
const W = g(d);
|
|
792
792
|
T || (T = W.items.length === 0), y.cases.push(W);
|
|
793
|
-
} while (
|
|
793
|
+
} while (S.currentType !== 13);
|
|
794
794
|
return T && a(d, K.MUST_HAVE_MESSAGES_IN_PLURAL, O, 0), s(y, d.currentOffset(), d.currentPosition()), y;
|
|
795
795
|
}
|
|
796
796
|
function N(d) {
|
|
797
|
-
const _ = d.context(), { offset: O, startLoc: h } = _,
|
|
798
|
-
return _.currentType === 13 ?
|
|
797
|
+
const _ = d.context(), { offset: O, startLoc: h } = _, S = g(d);
|
|
798
|
+
return _.currentType === 13 ? S : E(d, O, h, S);
|
|
799
799
|
}
|
|
800
800
|
function L(d) {
|
|
801
801
|
const _ = Uo(d, Ce({}, e)), O = _.context(), h = r(0, O.offset, O.startLoc);
|
|
@@ -1137,7 +1137,7 @@ function hn(e, t) {
|
|
|
1137
1137
|
const n = _t(e, Ya);
|
|
1138
1138
|
if (n != null)
|
|
1139
1139
|
return n;
|
|
1140
|
-
throw
|
|
1140
|
+
throw on(t);
|
|
1141
1141
|
}
|
|
1142
1142
|
const Ka = ["m", "modifier"];
|
|
1143
1143
|
function ul(e) {
|
|
@@ -1148,7 +1148,7 @@ function dl(e) {
|
|
|
1148
1148
|
const t = _t(e, Xa);
|
|
1149
1149
|
if (t)
|
|
1150
1150
|
return t;
|
|
1151
|
-
throw
|
|
1151
|
+
throw on(
|
|
1152
1152
|
6
|
|
1153
1153
|
/* NodeTypes.Linked */
|
|
1154
1154
|
);
|
|
@@ -1171,7 +1171,7 @@ const qa = [
|
|
|
1171
1171
|
...Ya,
|
|
1172
1172
|
...Ga
|
|
1173
1173
|
];
|
|
1174
|
-
function
|
|
1174
|
+
function on(e) {
|
|
1175
1175
|
return new Error(`unhandled node type: ${e}`);
|
|
1176
1176
|
}
|
|
1177
1177
|
function Vn(e) {
|
|
@@ -1180,7 +1180,7 @@ function Vn(e) {
|
|
|
1180
1180
|
function fl(e, t) {
|
|
1181
1181
|
const n = ol(t);
|
|
1182
1182
|
if (n == null)
|
|
1183
|
-
throw
|
|
1183
|
+
throw on(
|
|
1184
1184
|
0
|
|
1185
1185
|
/* NodeTypes.Resource */
|
|
1186
1186
|
);
|
|
@@ -1215,7 +1215,7 @@ function Xn(e, t) {
|
|
|
1215
1215
|
return e.interpolate(e.named(a.k));
|
|
1216
1216
|
if (ze(a, "key") && a.key)
|
|
1217
1217
|
return e.interpolate(e.named(a.key));
|
|
1218
|
-
throw
|
|
1218
|
+
throw on(n);
|
|
1219
1219
|
}
|
|
1220
1220
|
case 5: {
|
|
1221
1221
|
const a = t;
|
|
@@ -1223,7 +1223,7 @@ function Xn(e, t) {
|
|
|
1223
1223
|
return e.interpolate(e.list(a.i));
|
|
1224
1224
|
if (ze(a, "index") && Le(a.index))
|
|
1225
1225
|
return e.interpolate(e.list(a.index));
|
|
1226
|
-
throw
|
|
1226
|
+
throw on(n);
|
|
1227
1227
|
}
|
|
1228
1228
|
case 6: {
|
|
1229
1229
|
const a = t, r = ul(a), s = dl(a);
|
|
@@ -1275,12 +1275,12 @@ function hl(e, t) {
|
|
|
1275
1275
|
return Vn(e);
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
let
|
|
1278
|
+
let ln = null;
|
|
1279
1279
|
function _l(e) {
|
|
1280
|
-
|
|
1280
|
+
ln = e;
|
|
1281
1281
|
}
|
|
1282
1282
|
function bl(e, t, n) {
|
|
1283
|
-
|
|
1283
|
+
ln && ln.emit("i18n:init", {
|
|
1284
1284
|
timestamp: Date.now(),
|
|
1285
1285
|
i18n: e,
|
|
1286
1286
|
version: t,
|
|
@@ -1289,10 +1289,10 @@ function bl(e, t, n) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
const yl = /* @__PURE__ */ El("function:translate");
|
|
1291
1291
|
function El(e) {
|
|
1292
|
-
return (t) =>
|
|
1292
|
+
return (t) => ln && ln.emit(e, t);
|
|
1293
1293
|
}
|
|
1294
1294
|
const De = {
|
|
1295
|
-
INVALID_ARGUMENT:
|
|
1295
|
+
INVALID_ARGUMENT: ko,
|
|
1296
1296
|
// 17
|
|
1297
1297
|
INVALID_DATE_ARGUMENT: 18,
|
|
1298
1298
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1336,20 +1336,20 @@ function Yr(e) {
|
|
|
1336
1336
|
function Ol(e, t, n) {
|
|
1337
1337
|
return [.../* @__PURE__ */ new Set([
|
|
1338
1338
|
n,
|
|
1339
|
-
...
|
|
1339
|
+
...Te(t) ? t : ae(t) ? Object.keys(t) : M(t) ? [t] : [n]
|
|
1340
1340
|
])];
|
|
1341
1341
|
}
|
|
1342
1342
|
function qn(e, t, n) {
|
|
1343
|
-
const a = M(n) ? n :
|
|
1343
|
+
const a = M(n) ? n : cn, r = e;
|
|
1344
1344
|
r.__localeChainCache || (r.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1345
1345
|
let s = r.__localeChainCache.get(a);
|
|
1346
1346
|
if (!s) {
|
|
1347
1347
|
s = [];
|
|
1348
1348
|
let o = [n];
|
|
1349
|
-
for (;
|
|
1349
|
+
for (; Te(o); )
|
|
1350
1350
|
o = Kr(s, o, t);
|
|
1351
|
-
const l =
|
|
1352
|
-
o = M(l) ? [l] : l,
|
|
1351
|
+
const l = Te(t) || !ie(t) ? t : t.default ? t.default : null;
|
|
1352
|
+
o = M(l) ? [l] : l, Te(o) && Kr(s, o, !1), r.__localeChainCache.set(a, s);
|
|
1353
1353
|
}
|
|
1354
1354
|
return s;
|
|
1355
1355
|
}
|
|
@@ -1375,7 +1375,7 @@ function Cl(e, t, n) {
|
|
|
1375
1375
|
if (!e.includes(t) && (a = !0, t)) {
|
|
1376
1376
|
a = t[t.length - 1] !== "!";
|
|
1377
1377
|
const r = t.replace(/!/g, "");
|
|
1378
|
-
e.push(r), (
|
|
1378
|
+
e.push(r), (Te(n) || ie(n)) && n[r] && (a = n[r]);
|
|
1379
1379
|
}
|
|
1380
1380
|
return a;
|
|
1381
1381
|
}
|
|
@@ -1541,10 +1541,10 @@ bt[
|
|
|
1541
1541
|
]
|
|
1542
1542
|
};
|
|
1543
1543
|
const wl = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1544
|
-
function
|
|
1544
|
+
function Sl(e) {
|
|
1545
1545
|
return wl.test(e);
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function kl(e) {
|
|
1548
1548
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1549
1549
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1550
1550
|
}
|
|
@@ -1587,7 +1587,7 @@ function Il(e) {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
function Al(e) {
|
|
1589
1589
|
const t = e.trim();
|
|
1590
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1590
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Sl(t) ? kl(t) : "*" + t;
|
|
1591
1591
|
}
|
|
1592
1592
|
function Dl(e) {
|
|
1593
1593
|
const t = [];
|
|
@@ -1692,7 +1692,7 @@ const we = {
|
|
|
1692
1692
|
function ht(e, ...t) {
|
|
1693
1693
|
return Dn(Rl[e], ...t);
|
|
1694
1694
|
}
|
|
1695
|
-
const $l = "11.4.8", Pn = -1,
|
|
1695
|
+
const $l = "11.4.8", Pn = -1, cn = "en-US", zt = "", qr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1696
1696
|
function Ml() {
|
|
1697
1697
|
return {
|
|
1698
1698
|
upper: (e, t) => t === "text" && M(e) ? e.toUpperCase() : t === "vnode" && ae(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1722,9 +1722,9 @@ const Qr = (e) => {
|
|
|
1722
1722
|
}, Hl = () => ts;
|
|
1723
1723
|
let Jr = 0;
|
|
1724
1724
|
function jl(e = {}) {
|
|
1725
|
-
const t = ge(e.onWarn) ? e.onWarn : at, n = M(e.version) ? e.version : $l, a = M(e.locale) || ge(e.locale) ? e.locale :
|
|
1725
|
+
const t = ge(e.onWarn) ? e.onWarn : at, n = M(e.version) ? e.version : $l, a = M(e.locale) || ge(e.locale) ? e.locale : cn, r = ge(a) ? cn : a, s = Te(e.fallbackLocale) || ie(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = ie(e.messages) ? e.messages : Un(r), l = ie(e.datetimeFormats) ? e.datetimeFormats : Un(r), i = ie(e.numberFormats) ? e.numberFormats : Un(r), f = Ce(fe(), e.modifiers, Ml()), m = e.pluralRules || fe(), v = ge(e.missing) ? e.missing : null, p = se(e.missingWarn) || Ht(e.missingWarn) ? e.missingWarn : !0, g = se(e.fallbackWarn) || Ht(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, N = !!e.unresolving, L = ge(e.postTranslation) ? e.postTranslation : null, d = ie(e.processor) ? e.processor : null, _ = se(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, h = ge(e.messageCompiler) ? e.messageCompiler : Qa;
|
|
1726
1726
|
process.env.NODE_ENV !== "production" && ge(e.messageCompiler) && gr(ht(we.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1727
|
-
const
|
|
1727
|
+
const S = ge(e.messageResolver) ? e.messageResolver : Ja || xl, T = ge(e.localeFallbacker) ? e.localeFallbacker : Za || Ol, y = ae(e.fallbackContext) ? e.fallbackContext : void 0, W = e, B = ae(W.__datetimeFormatters) ? W.__datetimeFormatters : /* @__PURE__ */ new Map(), G = ae(W.__numberFormatters) ? W.__numberFormatters : /* @__PURE__ */ new Map(), H = ae(W.__meta) ? W.__meta : {};
|
|
1728
1728
|
Jr++;
|
|
1729
1729
|
const Y = {
|
|
1730
1730
|
version: n,
|
|
@@ -1744,7 +1744,7 @@ function jl(e = {}) {
|
|
|
1744
1744
|
warnHtmlMessage: _,
|
|
1745
1745
|
escapeParameter: O,
|
|
1746
1746
|
messageCompiler: h,
|
|
1747
|
-
messageResolver:
|
|
1747
|
+
messageResolver: S,
|
|
1748
1748
|
localeFallbacker: T,
|
|
1749
1749
|
fallbackContext: y,
|
|
1750
1750
|
onWarn: t,
|
|
@@ -1816,7 +1816,7 @@ function ss(e, t, n, a, r, s, o) {
|
|
|
1816
1816
|
});
|
|
1817
1817
|
}
|
|
1818
1818
|
const E = (a[g] || {})[t];
|
|
1819
|
-
if (
|
|
1819
|
+
if (ie(E) && M(g))
|
|
1820
1820
|
return g;
|
|
1821
1821
|
rs(e, t, g, r, o), v = g;
|
|
1822
1822
|
}
|
|
@@ -1824,7 +1824,7 @@ function ss(e, t, n, a, r, s, o) {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
function os(e, t, n) {
|
|
1826
1826
|
let a = `${e}__${t}`;
|
|
1827
|
-
return
|
|
1827
|
+
return ie(n) && !mr(n) && (a = `${a}__${JSON.stringify(n)}`), a;
|
|
1828
1828
|
}
|
|
1829
1829
|
function ls(e, t, n) {
|
|
1830
1830
|
for (const a in n) {
|
|
@@ -1836,9 +1836,9 @@ function ls(e, t, n) {
|
|
|
1836
1836
|
function is(e, t, n, a) {
|
|
1837
1837
|
const [, r, s, o] = e;
|
|
1838
1838
|
let l = n;
|
|
1839
|
-
return M(r) ? t.key = r :
|
|
1839
|
+
return M(r) ? t.key = r : ie(r) && Object.keys(r).forEach((i) => {
|
|
1840
1840
|
a.includes(i) ? l[i] = r[i] : t[i] = r[i];
|
|
1841
|
-
}), M(s) ? t.locale = s :
|
|
1841
|
+
}), M(s) ? t.locale = s : ie(s) && (l = s), ie(o) && (l = o), l;
|
|
1842
1842
|
}
|
|
1843
1843
|
const Zr = typeof Intl < "u", cs = {
|
|
1844
1844
|
dateTimeFormat: Zr && typeof Intl.DateTimeFormat < "u",
|
|
@@ -1988,13 +1988,13 @@ function Jl(e = {}) {
|
|
|
1988
1988
|
plural: s,
|
|
1989
1989
|
linked: (d, ..._) => {
|
|
1990
1990
|
const [O, h] = _;
|
|
1991
|
-
let
|
|
1992
|
-
_.length === 1 ? ae(O) ? (T = O.modifier || T,
|
|
1991
|
+
let S = "text", T = "";
|
|
1992
|
+
_.length === 1 ? ae(O) ? (T = O.modifier || T, S = O.type || S) : M(O) && (T = O || T) : _.length === 2 && (M(O) && (T = O || T), M(h) && (S = h || S));
|
|
1993
1993
|
const y = m(d, !0)(L), W = y === "" || y === void 0 ? d : y, B = (
|
|
1994
1994
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1995
|
-
|
|
1995
|
+
S === "vnode" && Te(W) && T ? W[0] : W
|
|
1996
1996
|
);
|
|
1997
|
-
return T ? v(T)(B,
|
|
1997
|
+
return T ? v(T)(B, S) : B;
|
|
1998
1998
|
},
|
|
1999
1999
|
message: m,
|
|
2000
2000
|
type: E,
|
|
@@ -2012,15 +2012,15 @@ function sa(e, ...t) {
|
|
|
2012
2012
|
i,
|
|
2013
2013
|
L,
|
|
2014
2014
|
l[L] || fe()
|
|
2015
|
-
] : fs(e, i, L, o, v, m), h = d,
|
|
2016
|
-
if (!g && !(M(h) || Ge(h) || He(h)) && N && (h = E,
|
|
2015
|
+
] : fs(e, i, L, o, v, m), h = d, S = i;
|
|
2016
|
+
if (!g && !(M(h) || Ge(h) || He(h)) && N && (h = E, S = h), !g && (!(M(h) || Ge(h) || He(h)) || !M(_)))
|
|
2017
2017
|
return r ? Pn : i;
|
|
2018
2018
|
if (process.env.NODE_ENV !== "production" && M(h) && e.messageCompiler == null)
|
|
2019
2019
|
return at(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
|
|
2020
2020
|
let T = !1;
|
|
2021
2021
|
const y = () => {
|
|
2022
2022
|
T = !0;
|
|
2023
|
-
}, W = He(h) ? h : ms(e, i, _, h,
|
|
2023
|
+
}, W = He(h) ? h : ms(e, i, _, h, S, y);
|
|
2024
2024
|
if (T)
|
|
2025
2025
|
return h;
|
|
2026
2026
|
const B = ri(e, _, O, f), G = Jl(B), H = ei(e, W, G);
|
|
@@ -2038,7 +2038,7 @@ function sa(e, ...t) {
|
|
|
2038
2038
|
return Y;
|
|
2039
2039
|
}
|
|
2040
2040
|
function Zl(e) {
|
|
2041
|
-
|
|
2041
|
+
Te(e.list) ? e.list = e.list.map((t) => M(t) ? Wr(t) : t) : ae(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2042
2042
|
M(e.named[t]) && (e.named[t] = Wr(e.named[t]));
|
|
2043
2043
|
});
|
|
2044
2044
|
}
|
|
@@ -2059,8 +2059,8 @@ function fs(e, t, n, a, r, s) {
|
|
|
2059
2059
|
to: N,
|
|
2060
2060
|
groupId: `${L}:${t}`
|
|
2061
2061
|
}), v = o[p] || fe();
|
|
2062
|
-
let O = null, h,
|
|
2063
|
-
if (process.env.NODE_ENV !== "production" && Qe && _ && (O = window.performance.now(), h = "intlify-message-resolve-start",
|
|
2062
|
+
let O = null, h, S;
|
|
2063
|
+
if (process.env.NODE_ENV !== "production" && Qe && _ && (O = window.performance.now(), h = "intlify-message-resolve-start", S = "intlify-message-resolve-end", Ve && Ve(h)), (g = i(v, t)) === null && (g = v[t]), process.env.NODE_ENV !== "production" && Qe && _) {
|
|
2064
2064
|
const T = window.performance.now();
|
|
2065
2065
|
_ && O && g && _.emit("message-resolve", {
|
|
2066
2066
|
type: "message-resolve",
|
|
@@ -2068,7 +2068,7 @@ function fs(e, t, n, a, r, s) {
|
|
|
2068
2068
|
message: g,
|
|
2069
2069
|
time: T - O,
|
|
2070
2070
|
groupId: `${L}:${t}`
|
|
2071
|
-
}), h &&
|
|
2071
|
+
}), h && S && Ve && St && (Ve(S), St("intlify message resolve", h, S));
|
|
2072
2072
|
}
|
|
2073
2073
|
if (M(g) || Ge(g) || He(g))
|
|
2074
2074
|
break;
|
|
@@ -2108,7 +2108,7 @@ function ms(e, t, n, a, r, s) {
|
|
|
2108
2108
|
message: a,
|
|
2109
2109
|
time: g - f,
|
|
2110
2110
|
groupId: `translate:${t}`
|
|
2111
|
-
}), m && v && Ve &&
|
|
2111
|
+
}), m && v && Ve && St && (Ve(v), St("intlify message compilation", m, v));
|
|
2112
2112
|
}
|
|
2113
2113
|
return p.locale = n, p.key = t, p.source = a, p;
|
|
2114
2114
|
}
|
|
@@ -2124,7 +2124,7 @@ function ei(e, t, n) {
|
|
|
2124
2124
|
value: l,
|
|
2125
2125
|
time: i - r,
|
|
2126
2126
|
groupId: `translate:${t.key}`
|
|
2127
|
-
}), s && o && Ve &&
|
|
2127
|
+
}), s && o && Ve && St && (Ve(o), St("intlify message evaluation", s, o));
|
|
2128
2128
|
}
|
|
2129
2129
|
return l;
|
|
2130
2130
|
}
|
|
@@ -2133,7 +2133,7 @@ function Zn(...e) {
|
|
|
2133
2133
|
if (!M(t) && !Le(t) && !He(t) && !Ge(t))
|
|
2134
2134
|
throw ut(De.INVALID_ARGUMENT);
|
|
2135
2135
|
const s = Le(t) ? String(t) : (He(t), t);
|
|
2136
|
-
return Le(n) ? r.plural = n : M(n) ? r.default = n :
|
|
2136
|
+
return Le(n) ? r.plural = n : M(n) ? r.default = n : ie(n) && !mr(n) ? r.named = n : Te(n) && (r.list = n), Le(a) ? r.plural = a : M(a) ? r.default = a : ie(a) && Ce(r, a), [s, r];
|
|
2137
2137
|
}
|
|
2138
2138
|
function ti(e, t, n, a, r, s) {
|
|
2139
2139
|
return {
|
|
@@ -2332,7 +2332,7 @@ const pi = {
|
|
|
2332
2332
|
[me.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2333
2333
|
[me.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2334
2334
|
[me.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2335
|
-
}, tr = /* @__PURE__ */ ot("__translateVNode"), nr = /* @__PURE__ */ ot("__datetimeParts"), rr = /* @__PURE__ */ ot("__numberParts"), ft = /* @__PURE__ */ ot("__enableEmitter"),
|
|
2335
|
+
}, tr = /* @__PURE__ */ ot("__translateVNode"), nr = /* @__PURE__ */ ot("__datetimeParts"), rr = /* @__PURE__ */ ot("__numberParts"), ft = /* @__PURE__ */ ot("__enableEmitter"), kt = /* @__PURE__ */ ot("__disableEmitter"), vs = ot("__setPluralRules"), gs = /* @__PURE__ */ ot("__injectWithOption"), $t = /* @__PURE__ */ ot("__dispose"), je = {
|
|
2336
2336
|
FALLBACK_TO_ROOT: xt,
|
|
2337
2337
|
// 10
|
|
2338
2338
|
NOT_FOUND_PARENT_SCOPE: xt + 1,
|
|
@@ -2365,13 +2365,13 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2365
2365
|
function Gt(e, ...t) {
|
|
2366
2366
|
return Dn(vi[e], ...t);
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2368
|
+
function un(e) {
|
|
2369
2369
|
if (!ae(e) || Ge(e))
|
|
2370
2370
|
return e;
|
|
2371
2371
|
for (const t in e)
|
|
2372
2372
|
if (ze(e, t))
|
|
2373
2373
|
if (!t.includes("."))
|
|
2374
|
-
ae(e[t]) &&
|
|
2374
|
+
ae(e[t]) && un(e[t]);
|
|
2375
2375
|
else {
|
|
2376
2376
|
const n = t.split("."), a = n.length - 1;
|
|
2377
2377
|
let r = e, s = !1;
|
|
@@ -2388,22 +2388,22 @@ function dn(e) {
|
|
|
2388
2388
|
}
|
|
2389
2389
|
if (s || (Ge(r) ? qa.includes(n[a]) || delete e[t] : (r[n[a]] = e[t], delete e[t])), !Ge(r)) {
|
|
2390
2390
|
const o = r[n[a]];
|
|
2391
|
-
ae(o) &&
|
|
2391
|
+
ae(o) && un(o);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
return e;
|
|
2395
2395
|
}
|
|
2396
2396
|
function Tr(e, t) {
|
|
2397
|
-
const { messages: n, __i18n: a, messageResolver: r, flatJson: s } = t, o =
|
|
2398
|
-
if (
|
|
2397
|
+
const { messages: n, __i18n: a, messageResolver: r, flatJson: s } = t, o = ie(n) ? n : Te(a) ? fe() : { [e]: fe() };
|
|
2398
|
+
if (Te(a) && a.forEach((l) => {
|
|
2399
2399
|
if ("locale" in l && "resource" in l) {
|
|
2400
2400
|
const { locale: i, resource: f } = l;
|
|
2401
|
-
i ? (o[i] = o[i] || fe(),
|
|
2401
|
+
i ? (o[i] = o[i] || fe(), Tn(f, o[i])) : Tn(f, o);
|
|
2402
2402
|
} else
|
|
2403
|
-
M(l) &&
|
|
2403
|
+
M(l) && Tn(JSON.parse(l), o);
|
|
2404
2404
|
}), r == null && s)
|
|
2405
2405
|
for (const l in o)
|
|
2406
|
-
ze(o, l) &&
|
|
2406
|
+
ze(o, l) && un(o[l]);
|
|
2407
2407
|
return o;
|
|
2408
2408
|
}
|
|
2409
2409
|
function hs(e) {
|
|
@@ -2435,7 +2435,7 @@ function _s(e, t, n) {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
function oa(e) {
|
|
2438
|
-
return
|
|
2438
|
+
return oe(Qs, null, e, 0);
|
|
2439
2439
|
}
|
|
2440
2440
|
function Vt() {
|
|
2441
2441
|
const e = "currentInstance";
|
|
@@ -2451,18 +2451,18 @@ const hi = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2451
2451
|
let t = null;
|
|
2452
2452
|
return e && (t = hs(e)[la]) ? { [la]: t } : null;
|
|
2453
2453
|
};
|
|
2454
|
-
function
|
|
2454
|
+
function Ln(e = {}) {
|
|
2455
2455
|
const { __root: t, __injectWithOption: n } = e, a = t === void 0, r = e.flatJson, s = Qe ? z : Ks;
|
|
2456
2456
|
let o = se(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2457
2457
|
const l = s(
|
|
2458
2458
|
// prettier-ignore
|
|
2459
|
-
t && o ? t.locale.value : M(e.locale) ? e.locale :
|
|
2459
|
+
t && o ? t.locale.value : M(e.locale) ? e.locale : cn
|
|
2460
2460
|
), i = s(
|
|
2461
2461
|
// prettier-ignore
|
|
2462
|
-
t && o ? t.fallbackLocale.value : M(e.fallbackLocale) ||
|
|
2463
|
-
), f = s(Tr(l.value, e)), m = s(
|
|
2462
|
+
t && o ? t.fallbackLocale.value : M(e.fallbackLocale) || Te(e.fallbackLocale) || ie(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2463
|
+
), f = s(Tr(l.value, e)), m = s(ie(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), v = s(ie(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2464
2464
|
let p = t ? t.missingWarn : se(e.missingWarn) || Ht(e.missingWarn) ? e.missingWarn : !0, g = t ? t.fallbackWarn : se(e.fallbackWarn) || Ht(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : se(e.fallbackRoot) ? e.fallbackRoot : !0, N = !!e.fallbackFormat, L = ge(e.missing) ? e.missing : null, d = ge(e.missing) ? ua(e.missing) : null, _ = ge(e.postTranslation) ? e.postTranslation : null, O = t ? t.warnHtmlMessage : se(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter;
|
|
2465
|
-
const
|
|
2465
|
+
const S = t ? t.modifiers : ie(e.modifiers) ? e.modifiers : {};
|
|
2466
2466
|
let T = e.pluralRules || t && t.pluralRules, y;
|
|
2467
2467
|
y = (() => {
|
|
2468
2468
|
a && Qr(null);
|
|
@@ -2471,7 +2471,7 @@ function On(e = {}) {
|
|
|
2471
2471
|
locale: l.value,
|
|
2472
2472
|
fallbackLocale: i.value,
|
|
2473
2473
|
messages: f.value,
|
|
2474
|
-
modifiers:
|
|
2474
|
+
modifiers: S,
|
|
2475
2475
|
pluralRules: T,
|
|
2476
2476
|
missing: d === null ? void 0 : d,
|
|
2477
2477
|
missingWarn: p,
|
|
@@ -2485,7 +2485,7 @@ function On(e = {}) {
|
|
|
2485
2485
|
messageCompiler: e.messageCompiler,
|
|
2486
2486
|
__meta: { framework: "vue" }
|
|
2487
2487
|
};
|
|
2488
|
-
C.datetimeFormats = m.value, C.numberFormats = v.value, C.__datetimeFormatters =
|
|
2488
|
+
C.datetimeFormats = m.value, C.numberFormats = v.value, C.__datetimeFormatters = ie(y) ? y.__datetimeFormatters : void 0, C.__numberFormatters = ie(y) ? y.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (C.__v_emitter = ie(y) ? y.__v_emitter : void 0);
|
|
2489
2489
|
const D = jl(C);
|
|
2490
2490
|
return a && Qr(D), D;
|
|
2491
2491
|
})(), Jt(y, l.value, i.value);
|
|
@@ -2512,7 +2512,7 @@ function On(e = {}) {
|
|
|
2512
2512
|
function he() {
|
|
2513
2513
|
return ge(_) ? _ : null;
|
|
2514
2514
|
}
|
|
2515
|
-
function
|
|
2515
|
+
function k(C) {
|
|
2516
2516
|
_ = C, y.postTranslation = C;
|
|
2517
2517
|
}
|
|
2518
2518
|
function A() {
|
|
@@ -2554,26 +2554,26 @@ function On(e = {}) {
|
|
|
2554
2554
|
throw Pe(me.UNEXPECTED_RETURN_TYPE);
|
|
2555
2555
|
}
|
|
2556
2556
|
};
|
|
2557
|
-
function
|
|
2557
|
+
function ee(...C) {
|
|
2558
2558
|
return j((D) => Reflect.apply(sa, null, [D, ...C]), () => Zn(...C), "translate", (D) => Reflect.apply(D.t, D, [...C]), (D) => D, (D) => M(D));
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function le(...C) {
|
|
2561
2561
|
const [D, re, be] = C;
|
|
2562
2562
|
if (be && !ae(be))
|
|
2563
2563
|
throw Pe(me.INVALID_ARGUMENT);
|
|
2564
|
-
return
|
|
2564
|
+
return ee(D, re, Ce({ resolvedMessage: !0 }, be || {}));
|
|
2565
2565
|
}
|
|
2566
2566
|
function _e(...C) {
|
|
2567
|
-
return j((D) => Reflect.apply(ea, null, [D, ...C]), () => Qn(...C), "datetime format", (D) => Reflect.apply(D.d, D, [...C]), () => zt, (D) => M(D) ||
|
|
2567
|
+
return j((D) => Reflect.apply(ea, null, [D, ...C]), () => Qn(...C), "datetime format", (D) => Reflect.apply(D.d, D, [...C]), () => zt, (D) => M(D) || Te(D));
|
|
2568
2568
|
}
|
|
2569
2569
|
function Re(...C) {
|
|
2570
|
-
return j((D) => Reflect.apply(na, null, [D, ...C]), () => Jn(...C), "number format", (D) => Reflect.apply(D.n, D, [...C]), () => zt, (D) => M(D) ||
|
|
2570
|
+
return j((D) => Reflect.apply(na, null, [D, ...C]), () => Jn(...C), "number format", (D) => Reflect.apply(D.n, D, [...C]), () => zt, (D) => M(D) || Te(D));
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function ke(C) {
|
|
2573
2573
|
return C.map((D) => M(D) || Le(D) || se(D) ? oa(String(D)) : D);
|
|
2574
2574
|
}
|
|
2575
2575
|
const $ = {
|
|
2576
|
-
normalize:
|
|
2576
|
+
normalize: ke,
|
|
2577
2577
|
interpolate: (C) => C,
|
|
2578
2578
|
type: "vnode"
|
|
2579
2579
|
};
|
|
@@ -2587,13 +2587,13 @@ function On(e = {}) {
|
|
|
2587
2587
|
be.processor = null;
|
|
2588
2588
|
}
|
|
2589
2589
|
return re;
|
|
2590
|
-
}, () => Zn(...C), "translate", (D) => D[tr](...C), (D) => [oa(D)], (D) =>
|
|
2590
|
+
}, () => Zn(...C), "translate", (D) => D[tr](...C), (D) => [oa(D)], (D) => Te(D));
|
|
2591
2591
|
}
|
|
2592
2592
|
function Ee(...C) {
|
|
2593
|
-
return j((D) => Reflect.apply(na, null, [D, ...C]), () => Jn(...C), "number format", (D) => D[rr](...C), ia, (D) => M(D) ||
|
|
2593
|
+
return j((D) => Reflect.apply(na, null, [D, ...C]), () => Jn(...C), "number format", (D) => D[rr](...C), ia, (D) => M(D) || Te(D));
|
|
2594
2594
|
}
|
|
2595
2595
|
function Ie(...C) {
|
|
2596
|
-
return j((D) => Reflect.apply(ea, null, [D, ...C]), () => Qn(...C), "datetime format", (D) => D[nr](...C), ia, (D) => M(D) ||
|
|
2596
|
+
return j((D) => Reflect.apply(ea, null, [D, ...C]), () => Qn(...C), "datetime format", (D) => D[nr](...C), ia, (D) => M(D) || Te(D));
|
|
2597
2597
|
}
|
|
2598
2598
|
function lt(C) {
|
|
2599
2599
|
T = C, y.pluralRules = T;
|
|
@@ -2635,7 +2635,7 @@ function On(e = {}) {
|
|
|
2635
2635
|
if (r) {
|
|
2636
2636
|
const re = { [C]: D };
|
|
2637
2637
|
for (const be in re)
|
|
2638
|
-
ze(re, be) &&
|
|
2638
|
+
ze(re, be) && un(re[be]);
|
|
2639
2639
|
D = re[C];
|
|
2640
2640
|
}
|
|
2641
2641
|
f.value[C] = D, y.messages = f.value;
|
|
@@ -2645,8 +2645,8 @@ function On(e = {}) {
|
|
|
2645
2645
|
const re = { [C]: D };
|
|
2646
2646
|
if (r)
|
|
2647
2647
|
for (const be in re)
|
|
2648
|
-
ze(re, be) &&
|
|
2649
|
-
D = re[C],
|
|
2648
|
+
ze(re, be) && un(re[be]);
|
|
2649
|
+
D = re[C], Tn(D, f.value[C]), y.messages = f.value;
|
|
2650
2650
|
}
|
|
2651
2651
|
function c(C) {
|
|
2652
2652
|
return m.value[C] || {};
|
|
@@ -2686,7 +2686,7 @@ function On(e = {}) {
|
|
|
2686
2686
|
},
|
|
2687
2687
|
messages: Y,
|
|
2688
2688
|
get modifiers() {
|
|
2689
|
-
return
|
|
2689
|
+
return S;
|
|
2690
2690
|
},
|
|
2691
2691
|
get pluralRules() {
|
|
2692
2692
|
return T || {};
|
|
@@ -2730,19 +2730,19 @@ function On(e = {}) {
|
|
|
2730
2730
|
set escapeParameter(C) {
|
|
2731
2731
|
h = C, y.escapeParameter = C;
|
|
2732
2732
|
},
|
|
2733
|
-
t:
|
|
2733
|
+
t: ee,
|
|
2734
2734
|
getLocaleMessage: Ue,
|
|
2735
2735
|
setLocaleMessage: et,
|
|
2736
2736
|
mergeLocaleMessage: pt,
|
|
2737
2737
|
getPostTranslationHandler: he,
|
|
2738
|
-
setPostTranslationHandler:
|
|
2738
|
+
setPostTranslationHandler: k,
|
|
2739
2739
|
getMissingHandler: A,
|
|
2740
2740
|
setMissingHandler: R,
|
|
2741
2741
|
[vs]: lt
|
|
2742
2742
|
};
|
|
2743
|
-
return ne.datetimeFormats = U, ne.numberFormats = q, ne.rt =
|
|
2743
|
+
return ne.datetimeFormats = U, ne.numberFormats = q, ne.rt = le, ne.te = Et, ne.tm = it, ne.d = _e, ne.n = Re, ne.getDateTimeFormat = c, ne.setDateTimeFormat = u, ne.mergeDateTimeFormat = b, ne.getNumberFormat = P, ne.setNumberFormat = Q, ne.mergeNumberFormat = ve, ne[gs] = n, ne[tr] = pe, ne[nr] = Ie, ne[rr] = Ee, process.env.NODE_ENV !== "production" && (ne[ft] = (C) => {
|
|
2744
2744
|
y.__v_emitter = C;
|
|
2745
|
-
}, ne[
|
|
2745
|
+
}, ne[kt] = () => {
|
|
2746
2746
|
y.__v_emitter = void 0;
|
|
2747
2747
|
}), ne;
|
|
2748
2748
|
}
|
|
@@ -2784,7 +2784,7 @@ async function yi(e, t) {
|
|
|
2784
2784
|
const s = /* @__PURE__ */ new Map();
|
|
2785
2785
|
r.on.getInspectorState(async (o) => {
|
|
2786
2786
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2787
|
-
if (r.unhighlightElement(),
|
|
2787
|
+
if (r.unhighlightElement(), Si(o, t), o.nodeId === "global") {
|
|
2788
2788
|
if (!s.has(o.app)) {
|
|
2789
2789
|
const [l] = await r.getComponentInstances(o.app);
|
|
2790
2790
|
s.set(o.app, l);
|
|
@@ -2920,11 +2920,11 @@ function Es(e, t) {
|
|
|
2920
2920
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function Si(e, t) {
|
|
2924
2924
|
const n = Es(e.nodeId, t);
|
|
2925
|
-
return n && (e.state =
|
|
2925
|
+
return n && (e.state = ki(n)), null;
|
|
2926
2926
|
}
|
|
2927
|
-
function
|
|
2927
|
+
function ki(e) {
|
|
2928
2928
|
const t = {}, n = "Locale related info", a = [
|
|
2929
2929
|
{
|
|
2930
2930
|
type: n,
|
|
@@ -3003,17 +3003,17 @@ function Ii(e, t) {
|
|
|
3003
3003
|
const n = Es(e.nodeId, t);
|
|
3004
3004
|
if (n) {
|
|
3005
3005
|
const [a] = e.path;
|
|
3006
|
-
a === "locale" && M(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (M(e.state.value) ||
|
|
3006
|
+
a === "locale" && M(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (M(e.state.value) || Te(e.state.value) || ae(e.state.value)) ? n.fallbackLocale.value = e.state.value : a === "inheritLocale" && se(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3007
3007
|
}
|
|
3008
3008
|
}
|
|
3009
3009
|
function Ai(e) {
|
|
3010
|
-
const t = M(e.locale) ? e.locale :
|
|
3010
|
+
const t = M(e.locale) ? e.locale : cn, n = M(e.fallbackLocale) || Te(e.fallbackLocale) || ie(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = ge(e.missing) ? e.missing : void 0, r = se(e.silentTranslationWarn) || Ht(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = se(e.silentFallbackWarn) || Ht(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = se(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = ie(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, m = ge(e.postTranslation) ? e.postTranslation : void 0, v = M(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, g = se(e.sync) ? e.sync : !0;
|
|
3011
3011
|
let E = e.messages;
|
|
3012
|
-
if (
|
|
3013
|
-
const
|
|
3014
|
-
E = Object.keys(
|
|
3012
|
+
if (ie(e.sharedMessages)) {
|
|
3013
|
+
const S = e.sharedMessages;
|
|
3014
|
+
E = Object.keys(S).reduce((y, W) => {
|
|
3015
3015
|
const B = y[W] || (y[W] = {});
|
|
3016
|
-
return Ce(B,
|
|
3016
|
+
return Ce(B, S[W]), y;
|
|
3017
3017
|
}, E || {});
|
|
3018
3018
|
}
|
|
3019
3019
|
const { __i18n: N, __root: L, __injectWithOption: d } = e, _ = e.datetimeFormats, O = e.numberFormats, h = e.flatJson;
|
|
@@ -3042,7 +3042,7 @@ function Ai(e) {
|
|
|
3042
3042
|
};
|
|
3043
3043
|
}
|
|
3044
3044
|
function sr(e = {}) {
|
|
3045
|
-
const t =
|
|
3045
|
+
const t = Ln(Ai(e)), { __extender: n } = e, a = {
|
|
3046
3046
|
// id
|
|
3047
3047
|
id: t.id,
|
|
3048
3048
|
// locale
|
|
@@ -3207,7 +3207,7 @@ function sr(e = {}) {
|
|
|
3207
3207
|
s[ft] && s[ft](r);
|
|
3208
3208
|
}, a.__disableEmitter = () => {
|
|
3209
3209
|
const r = t;
|
|
3210
|
-
r[
|
|
3210
|
+
r[kt] && r[kt]();
|
|
3211
3211
|
}), a;
|
|
3212
3212
|
}
|
|
3213
3213
|
function Di(e, t, n) {
|
|
@@ -3302,7 +3302,7 @@ function xi({ slots: e }, t) {
|
|
|
3302
3302
|
function Ts() {
|
|
3303
3303
|
return Be;
|
|
3304
3304
|
}
|
|
3305
|
-
const Pi = /* @__PURE__ */
|
|
3305
|
+
const Pi = /* @__PURE__ */ ue({
|
|
3306
3306
|
/* eslint-disable */
|
|
3307
3307
|
name: "i18n-t",
|
|
3308
3308
|
props: Ce({
|
|
@@ -3334,7 +3334,7 @@ const Pi = /* @__PURE__ */ ce({
|
|
|
3334
3334
|
}
|
|
3335
3335
|
}), ma = Pi;
|
|
3336
3336
|
function Ri(e) {
|
|
3337
|
-
return
|
|
3337
|
+
return Te(e) && !M(e[0]);
|
|
3338
3338
|
}
|
|
3339
3339
|
function Ns(e, t, n, a) {
|
|
3340
3340
|
const { slots: r, attrs: s } = t;
|
|
@@ -3345,7 +3345,7 @@ function Ns(e, t, n, a) {
|
|
|
3345
3345
|
e.locale && (f.locale = e.locale), M(e.format) ? f.key = e.format : ae(e.format) && (M(e.format.key) && (f.key = e.format.key), m = Object.keys(e.format).reduce((g, E) => n.includes(E) ? Ce(fe(), g, { [E]: e.format[E] }) : g, fe()));
|
|
3346
3346
|
const v = a(e.value, f, m);
|
|
3347
3347
|
let p = [f.key];
|
|
3348
|
-
return
|
|
3348
|
+
return Te(v) ? p = v.map((g, E) => {
|
|
3349
3349
|
const N = r[g.type], L = N ? N({ [g.type]: g.value, index: E, parts: v }) : [g.value];
|
|
3350
3350
|
return Ri(L) && (L[0].key = `${g.type}-${E}`), L;
|
|
3351
3351
|
}) : M(v) && (p = [v]), p;
|
|
@@ -3353,7 +3353,7 @@ function Ns(e, t, n, a) {
|
|
|
3353
3353
|
return ae(i) ? wt(i, l, { default: o }) : wt(i, l, o());
|
|
3354
3354
|
};
|
|
3355
3355
|
}
|
|
3356
|
-
const $i = /* @__PURE__ */
|
|
3356
|
+
const $i = /* @__PURE__ */ ue({
|
|
3357
3357
|
/* eslint-disable */
|
|
3358
3358
|
name: "i18n-n",
|
|
3359
3359
|
props: Ce({
|
|
@@ -3426,7 +3426,7 @@ function Vi(e) {
|
|
|
3426
3426
|
function va(e) {
|
|
3427
3427
|
if (M(e))
|
|
3428
3428
|
return { path: e };
|
|
3429
|
-
if (
|
|
3429
|
+
if (ie(e)) {
|
|
3430
3430
|
if (!("path" in e))
|
|
3431
3431
|
throw Pe(me.REQUIRED_VALUE, "path");
|
|
3432
3432
|
return e;
|
|
@@ -3438,7 +3438,7 @@ function ga(e) {
|
|
|
3438
3438
|
return M(n) && (o.locale = n), Le(r) && (o.plural = r), Le(s) && (o.plural = s), [t, l, o];
|
|
3439
3439
|
}
|
|
3440
3440
|
function Fi(e, t, ...n) {
|
|
3441
|
-
const a =
|
|
3441
|
+
const a = ie(n[0]) ? n[0] : {};
|
|
3442
3442
|
(se(a.globalInstall) ? a.globalInstall : !0) && ([ma.name, "I18nT"].forEach((s) => e.component(s, ma)), [pa.name, "I18nN"].forEach((s) => e.component(s, pa)), [ba.name, "I18nD"].forEach((s) => e.component(s, ba))), e.directive("t", Vi(t));
|
|
3443
3443
|
}
|
|
3444
3444
|
const Ui = /* @__PURE__ */ ot("global-vue-i18n");
|
|
@@ -3462,7 +3462,7 @@ function Wi(e = {}) {
|
|
|
3462
3462
|
},
|
|
3463
3463
|
// install plugin
|
|
3464
3464
|
async install(v, ...p) {
|
|
3465
|
-
if (process.env.NODE_ENV !== "production" && (v.__VUE_I18N__ = m), v.__VUE_I18N_SYMBOL__ = o, v.provide(v.__VUE_I18N_SYMBOL__, m),
|
|
3465
|
+
if (process.env.NODE_ENV !== "production" && (v.__VUE_I18N__ = m), v.__VUE_I18N_SYMBOL__ = o, v.provide(v.__VUE_I18N_SYMBOL__, m), ie(p[0])) {
|
|
3466
3466
|
const N = p[0];
|
|
3467
3467
|
m.__composerExtend = N.__composerExtend, m.__vueI18nExtend = N.__vueI18nExtend;
|
|
3468
3468
|
}
|
|
@@ -3521,7 +3521,7 @@ function Lr(e = {}) {
|
|
|
3521
3521
|
throw Pe(me.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
3522
3522
|
const i = n, f = Ce({}, e), m = ha(n, t);
|
|
3523
3523
|
f.__root = m || a;
|
|
3524
|
-
const v =
|
|
3524
|
+
const v = Ln(f);
|
|
3525
3525
|
i.__composerExtend && (v[$t] = i.__composerExtend(v));
|
|
3526
3526
|
let p = null;
|
|
3527
3527
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -3533,7 +3533,7 @@ function Lr(e = {}) {
|
|
|
3533
3533
|
if (process.env.NODE_ENV !== "production") {
|
|
3534
3534
|
p && p.off("*", It);
|
|
3535
3535
|
const N = v;
|
|
3536
|
-
N[
|
|
3536
|
+
N[kt] && N[kt]();
|
|
3537
3537
|
}
|
|
3538
3538
|
const E = v[$t];
|
|
3539
3539
|
E && (E(), delete v[$t]);
|
|
@@ -3543,19 +3543,19 @@ function Lr(e = {}) {
|
|
|
3543
3543
|
let l = o.__getInstance(t);
|
|
3544
3544
|
if (l == null) {
|
|
3545
3545
|
const i = Ce({}, e);
|
|
3546
|
-
"__i18n" in r && (i.__i18n = r.__i18n), a && (i.__root = a), l =
|
|
3546
|
+
"__i18n" in r && (i.__i18n = r.__i18n), a && (i.__root = a), l = Ln(i), o.__composerExtend && (l[$t] = o.__composerExtend(l)), Yi(o, t, l), o.__setInstance(t, l);
|
|
3547
3547
|
} else
|
|
3548
3548
|
process.env.NODE_ENV !== "production" && s === "local" && at(Gt(je.DUPLICATE_USE_I18N_CALLING));
|
|
3549
3549
|
return l;
|
|
3550
3550
|
}
|
|
3551
3551
|
function Bi(e, t) {
|
|
3552
|
-
const n = Gs(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => sr(e)) : n.run(() =>
|
|
3552
|
+
const n = Gs(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => sr(e)) : n.run(() => Ln(e));
|
|
3553
3553
|
if (a == null)
|
|
3554
3554
|
throw Pe(me.UNEXPECTED_ERROR);
|
|
3555
3555
|
return [n, a];
|
|
3556
3556
|
}
|
|
3557
3557
|
function Hi(e) {
|
|
3558
|
-
const t =
|
|
3558
|
+
const t = In(e.isCE ? Ui : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3559
3559
|
if (!t)
|
|
3560
3560
|
throw Pe(e.isCE ? me.NOT_INSTALLED_WITH_PROVIDE : me.UNEXPECTED_ERROR);
|
|
3561
3561
|
return t;
|
|
@@ -3597,7 +3597,7 @@ function Yi(e, t, n) {
|
|
|
3597
3597
|
}
|
|
3598
3598
|
}, t), Je(() => {
|
|
3599
3599
|
const r = n;
|
|
3600
|
-
process.env.NODE_ENV !== "production" && (a && a.off("*", It), r[
|
|
3600
|
+
process.env.NODE_ENV !== "production" && (a && a.off("*", It), r[kt] && r[kt](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3601
3601
|
const s = r[$t];
|
|
3602
3602
|
s && (s(), delete r[$t]);
|
|
3603
3603
|
}, t);
|
|
@@ -3638,7 +3638,7 @@ function Xi(e, t) {
|
|
|
3638
3638
|
});
|
|
3639
3639
|
};
|
|
3640
3640
|
}
|
|
3641
|
-
const qi = /* @__PURE__ */
|
|
3641
|
+
const qi = /* @__PURE__ */ ue({
|
|
3642
3642
|
/* eslint-disable */
|
|
3643
3643
|
name: "i18n-d",
|
|
3644
3644
|
props: Ce({
|
|
@@ -3779,9 +3779,9 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3779
3779
|
"en-US": Zi
|
|
3780
3780
|
},
|
|
3781
3781
|
legacy: !1
|
|
3782
|
-
})), Hn),
|
|
3782
|
+
})), Hn), hf = (e) => {
|
|
3783
3783
|
Os().global.locale.value = e;
|
|
3784
|
-
},
|
|
3784
|
+
}, Se = (e, t) => Os().global.t(e, t), ec = ["disabled"], tc = ["disabled"], nc = ["disabled"], Ft = /* @__PURE__ */ ue({
|
|
3785
3785
|
name: "Button",
|
|
3786
3786
|
inheritAttrs: !1,
|
|
3787
3787
|
__name: "Button",
|
|
@@ -3828,7 +3828,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3828
3828
|
});
|
|
3829
3829
|
return (m, v) => e.icon || m.$slots.icon ? (w(), x("div", {
|
|
3830
3830
|
key: 0,
|
|
3831
|
-
class:
|
|
3831
|
+
class: Z(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
|
|
3832
3832
|
}, [
|
|
3833
3833
|
F("button", gt({
|
|
3834
3834
|
ref_key: "iconButtonRef",
|
|
@@ -3843,20 +3843,20 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3843
3843
|
}],
|
|
3844
3844
|
disabled: e.disabled || e.loading
|
|
3845
3845
|
}), [
|
|
3846
|
-
e.icon ? (w(),
|
|
3846
|
+
e.icon ? (w(), Oe(sn(e.icon), {
|
|
3847
3847
|
key: 0,
|
|
3848
3848
|
size: o.value
|
|
3849
3849
|
}, null, 8, ["size"])) : (w(), x("span", {
|
|
3850
3850
|
key: 1,
|
|
3851
3851
|
class: "cregis-button__icon-slot-inner",
|
|
3852
|
-
style:
|
|
3852
|
+
style: ce({ "--cregis-btn-icon-slot-size": o.value })
|
|
3853
3853
|
}, [
|
|
3854
3854
|
de(m.$slots, "icon")
|
|
3855
3855
|
], 4))
|
|
3856
3856
|
], 16, ec),
|
|
3857
3857
|
e.iconText ? (w(), x("span", {
|
|
3858
3858
|
key: 0,
|
|
3859
|
-
class:
|
|
3859
|
+
class: Z(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
|
|
3860
3860
|
onClick: r
|
|
3861
3861
|
}, J(e.iconText), 3)) : X("", !0)
|
|
3862
3862
|
], 2)) : e.link ? (w(), x("button", gt({ key: 1 }, m.$attrs, {
|
|
@@ -3887,7 +3887,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3887
3887
|
}],
|
|
3888
3888
|
disabled: e.disabled || e.loading
|
|
3889
3889
|
}), [
|
|
3890
|
-
e.loading ? (w(),
|
|
3890
|
+
e.loading ? (w(), Oe(te(Yn), {
|
|
3891
3891
|
key: 0,
|
|
3892
3892
|
class: "loading",
|
|
3893
3893
|
size: l.value,
|
|
@@ -3904,7 +3904,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3904
3904
|
}, oc = ["disabled", "placeholder", "rows"], lc = {
|
|
3905
3905
|
key: 0,
|
|
3906
3906
|
class: "cregis-textarea__buttons"
|
|
3907
|
-
}, Ls = /* @__PURE__ */
|
|
3907
|
+
}, Ls = /* @__PURE__ */ ue({
|
|
3908
3908
|
name: "Input",
|
|
3909
3909
|
inheritAttrs: !1,
|
|
3910
3910
|
__name: "Input",
|
|
@@ -3926,9 +3926,9 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3926
3926
|
},
|
|
3927
3927
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
|
|
3928
3928
|
setup(e, { expose: t, emit: n }) {
|
|
3929
|
-
const a = e, r = n, s = (
|
|
3930
|
-
if (
|
|
3931
|
-
const A = String(
|
|
3929
|
+
const a = e, r = n, s = (k) => {
|
|
3930
|
+
if (k === "" || k === null || k === void 0) return "";
|
|
3931
|
+
const A = String(k).trim();
|
|
3932
3932
|
if (A === "") return "";
|
|
3933
3933
|
const R = Number(A.replace(/,/g, ""));
|
|
3934
3934
|
if (!Number.isNaN(R) && R < 0) return Math.abs(R);
|
|
@@ -3936,40 +3936,40 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3936
3936
|
const V = A.replace(/^-+/, "");
|
|
3937
3937
|
return V === "" ? "" : V;
|
|
3938
3938
|
}
|
|
3939
|
-
return
|
|
3939
|
+
return k;
|
|
3940
3940
|
}, o = I(() => {
|
|
3941
|
-
const
|
|
3942
|
-
return
|
|
3943
|
-
}), l = I(() => a.type === "number" && o.value !== null), i = I(() => l.value ? "text" : a.type), f = I(() => l.value ? "decimal" : void 0), m = (
|
|
3944
|
-
if (
|
|
3945
|
-
let A = m(String(
|
|
3941
|
+
const k = a.decimals;
|
|
3942
|
+
return k === void 0 || !Number.isFinite(k) ? null : Math.max(0, Math.floor(k));
|
|
3943
|
+
}), l = I(() => a.type === "number" && o.value !== null), i = I(() => l.value ? "text" : a.type), f = I(() => l.value ? "decimal" : void 0), m = (k) => k.replace(/[,,。.]/g, "."), v = (k) => {
|
|
3944
|
+
if (k === "" || k === null || k === void 0) return "";
|
|
3945
|
+
let A = m(String(k).trim());
|
|
3946
3946
|
if (A === "") return "";
|
|
3947
3947
|
let R = !1;
|
|
3948
3948
|
!a.nonNegative && A.startsWith("-") && (R = !0, A = A.slice(1)), A = A.replace(/[^\d.]/g, "");
|
|
3949
3949
|
const V = A.indexOf(".");
|
|
3950
3950
|
return V !== -1 && (A = A.slice(0, V + 1) + A.slice(V + 1).replace(/\./g, "")), (R ? "-" : "") + A;
|
|
3951
|
-
}, p = (
|
|
3951
|
+
}, p = (k) => {
|
|
3952
3952
|
const A = o.value;
|
|
3953
|
-
if (A === null) return
|
|
3954
|
-
if (
|
|
3955
|
-
const R = String(
|
|
3953
|
+
if (A === null) return k;
|
|
3954
|
+
if (k === "" || k === null || k === void 0) return "";
|
|
3955
|
+
const R = String(k).trim();
|
|
3956
3956
|
if (R === "") return "";
|
|
3957
3957
|
const V = R.startsWith("-");
|
|
3958
3958
|
let j = V ? R.slice(1) : R;
|
|
3959
|
-
const
|
|
3960
|
-
if (
|
|
3961
|
-
const
|
|
3962
|
-
return A === 0 ? (V ? "-" : "") +
|
|
3963
|
-
}, g = (
|
|
3964
|
-
let A =
|
|
3959
|
+
const ee = j.indexOf(".");
|
|
3960
|
+
if (ee === -1) return k;
|
|
3961
|
+
const le = j.slice(0, ee), _e = j.slice(ee + 1);
|
|
3962
|
+
return A === 0 ? (V ? "-" : "") + le : _e.length <= A ? k : (V ? "-" : "") + le + "." + _e.slice(0, A);
|
|
3963
|
+
}, g = (k) => {
|
|
3964
|
+
let A = k;
|
|
3965
3965
|
return l.value && (A = v(A)), a.nonNegative && (A = s(A)), o.value !== null && (A = p(A)), A;
|
|
3966
3966
|
}, E = z(
|
|
3967
3967
|
a.type === "number" ? g(a.modelValue) : a.modelValue
|
|
3968
3968
|
);
|
|
3969
3969
|
ye(
|
|
3970
3970
|
() => a.modelValue,
|
|
3971
|
-
(
|
|
3972
|
-
E.value = a.type === "number" ? g(
|
|
3971
|
+
(k) => {
|
|
3972
|
+
E.value = a.type === "number" ? g(k) : k;
|
|
3973
3973
|
}
|
|
3974
3974
|
);
|
|
3975
3975
|
const N = z(), L = z(0), d = z(!1);
|
|
@@ -3978,78 +3978,78 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
3978
3978
|
await dt(), N.value?.focus();
|
|
3979
3979
|
}, h = async () => {
|
|
3980
3980
|
if (a.type === "number") {
|
|
3981
|
-
const
|
|
3982
|
-
|
|
3981
|
+
const k = g(E.value);
|
|
3982
|
+
k !== E.value && (E.value = k);
|
|
3983
3983
|
}
|
|
3984
3984
|
r("update:modelValue", E.value), r("input", E.value), await dt(), G();
|
|
3985
|
-
},
|
|
3985
|
+
}, S = () => {
|
|
3986
3986
|
r("change", E.value);
|
|
3987
|
-
}, T = (
|
|
3988
|
-
d.value = !0, r("focus",
|
|
3989
|
-
}, y = (
|
|
3990
|
-
d.value = !1, r("blur",
|
|
3987
|
+
}, T = (k) => {
|
|
3988
|
+
d.value = !0, r("focus", k);
|
|
3989
|
+
}, y = (k) => {
|
|
3990
|
+
d.value = !1, r("blur", k);
|
|
3991
3991
|
}, W = I(() => a.clearable && !a.disabled && !!E.value && d.value), B = () => {
|
|
3992
3992
|
E.value = "", r("update:modelValue", ""), r("clear"), r("input", ""), r("change", "");
|
|
3993
3993
|
}, G = () => {
|
|
3994
3994
|
_ && cancelAnimationFrame(_), _ = requestAnimationFrame(() => {
|
|
3995
3995
|
if (!N.value || N.value.tagName !== "INPUT") return;
|
|
3996
|
-
const
|
|
3997
|
-
R.style.position = "absolute", R.style.visibility = "hidden", R.style.whiteSpace = "pre", R.style.font = window.getComputedStyle(
|
|
3996
|
+
const k = N.value, A = k.value, R = document.createElement("span");
|
|
3997
|
+
R.style.position = "absolute", R.style.visibility = "hidden", R.style.whiteSpace = "pre", R.style.font = window.getComputedStyle(k).font, R.style.letterSpacing = window.getComputedStyle(k).letterSpacing, R.textContent = A || " ", document.body.appendChild(R), L.value = R.getBoundingClientRect().width, document.body.removeChild(R);
|
|
3998
3998
|
});
|
|
3999
3999
|
}, H = I(() => {
|
|
4000
|
-
const
|
|
4001
|
-
return L.value > 0 && (
|
|
4000
|
+
const k = {};
|
|
4001
|
+
return L.value > 0 && (k.position = "absolute", k.left = `${L.value + 16}px`), k;
|
|
4002
4002
|
}), Y = async () => {
|
|
4003
4003
|
try {
|
|
4004
4004
|
E.value = await navigator.clipboard.readText(), r("update:modelValue", E.value);
|
|
4005
|
-
} catch (
|
|
4006
|
-
console.error("paste error:",
|
|
4005
|
+
} catch (k) {
|
|
4006
|
+
console.error("paste error:", k);
|
|
4007
4007
|
}
|
|
4008
|
-
}, U = I(() => a.type === "number" && a.nonNegative ? 0 : void 0), q = (
|
|
4009
|
-
if (a.type !== "number" ||
|
|
4008
|
+
}, U = I(() => a.type === "number" && a.nonNegative ? 0 : void 0), q = (k) => k === "." || k === "," || k === "," || k === "。" || k === "." || k === "Decimal", he = (k) => {
|
|
4009
|
+
if (a.type !== "number" || k.isComposing) return;
|
|
4010
4010
|
const A = o.value;
|
|
4011
|
-
if ((a.nonNegative || A !== null) && (
|
|
4012
|
-
|
|
4011
|
+
if ((a.nonNegative || A !== null) && (k.key === "e" || k.key === "E")) {
|
|
4012
|
+
k.preventDefault();
|
|
4013
4013
|
return;
|
|
4014
4014
|
}
|
|
4015
|
-
if (a.nonNegative && (
|
|
4016
|
-
|
|
4015
|
+
if (a.nonNegative && (k.key === "-" || k.key === "+")) {
|
|
4016
|
+
k.preventDefault();
|
|
4017
4017
|
return;
|
|
4018
4018
|
}
|
|
4019
|
-
if (A === 0 && q(
|
|
4020
|
-
|
|
4019
|
+
if (A === 0 && q(k.key)) {
|
|
4020
|
+
k.preventDefault();
|
|
4021
4021
|
return;
|
|
4022
4022
|
}
|
|
4023
|
-
if (A !== null && A > 0 && q(
|
|
4024
|
-
const R =
|
|
4025
|
-
m(R.value).includes(".") &&
|
|
4023
|
+
if (A !== null && A > 0 && q(k.key)) {
|
|
4024
|
+
const R = k.target;
|
|
4025
|
+
m(R.value).includes(".") && k.preventDefault();
|
|
4026
4026
|
return;
|
|
4027
4027
|
}
|
|
4028
|
-
if (A !== null && A > 0 &&
|
|
4029
|
-
const R =
|
|
4030
|
-
if (j === null ||
|
|
4031
|
-
const
|
|
4032
|
-
_e !== -1 &&
|
|
4028
|
+
if (A !== null && A > 0 && k.key !== "." && /^\d$/.test(k.key)) {
|
|
4029
|
+
const R = k.target, V = m(R.value), j = R.selectionStart, ee = R.selectionEnd;
|
|
4030
|
+
if (j === null || ee === null) return;
|
|
4031
|
+
const le = V.slice(0, j) + k.key + V.slice(ee), _e = le.indexOf(".");
|
|
4032
|
+
_e !== -1 && le.slice(_e + 1).replace(/\D/g, "").length > A && k.preventDefault();
|
|
4033
4033
|
}
|
|
4034
4034
|
};
|
|
4035
4035
|
return t({
|
|
4036
4036
|
focus: O,
|
|
4037
4037
|
updateTextWidth: G
|
|
4038
|
-
}), (
|
|
4038
|
+
}), (k, A) => e.type !== "textarea" ? (w(), x("div", {
|
|
4039
4039
|
key: 0,
|
|
4040
|
-
class:
|
|
4040
|
+
class: Z(["cregis-input", {
|
|
4041
4041
|
[`cregis-input--${e.size}`]: e.size,
|
|
4042
4042
|
"is-disabled": e.disabled,
|
|
4043
|
-
"is-prefix":
|
|
4044
|
-
"is-suffix":
|
|
4043
|
+
"is-prefix": k.$slots.prefix,
|
|
4044
|
+
"is-suffix": k.$slots.suffix
|
|
4045
4045
|
}]),
|
|
4046
|
-
style:
|
|
4046
|
+
style: ce([{ width: e.width }, e.inputStyle])
|
|
4047
4047
|
}, [
|
|
4048
4048
|
F("div", {
|
|
4049
|
-
class:
|
|
4049
|
+
class: Z(["cregis-input__wrapper", { "is-focus": d.value }])
|
|
4050
4050
|
}, [
|
|
4051
|
-
|
|
4052
|
-
de(
|
|
4051
|
+
k.$slots.prefix ? (w(), x("span", rc, [
|
|
4052
|
+
de(k.$slots, "prefix")
|
|
4053
4053
|
])) : X("", !0),
|
|
4054
4054
|
Ut(F("input", gt({
|
|
4055
4055
|
class: "cregis-input__inner",
|
|
@@ -4058,13 +4058,13 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4058
4058
|
ref: N,
|
|
4059
4059
|
type: i.value,
|
|
4060
4060
|
inputmode: f.value,
|
|
4061
|
-
placeholder: e.placeholder ||
|
|
4062
|
-
},
|
|
4061
|
+
placeholder: e.placeholder || te(Se)("input.placeholder")
|
|
4062
|
+
}, k.$attrs, {
|
|
4063
4063
|
min: U.value,
|
|
4064
4064
|
spellcheck: "false",
|
|
4065
4065
|
disabled: e.disabled,
|
|
4066
4066
|
onInput: h,
|
|
4067
|
-
onChange:
|
|
4067
|
+
onChange: S,
|
|
4068
4068
|
onFocus: T,
|
|
4069
4069
|
onBlur: y,
|
|
4070
4070
|
onKeydown: he
|
|
@@ -4073,14 +4073,14 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4073
4073
|
]),
|
|
4074
4074
|
e.unit && E.value ? (w(), x("span", {
|
|
4075
4075
|
key: 1,
|
|
4076
|
-
style:
|
|
4076
|
+
style: ce(H.value),
|
|
4077
4077
|
class: "cregis-input__unit"
|
|
4078
4078
|
}, J(e.unit), 5)) : X("", !0),
|
|
4079
|
-
|
|
4080
|
-
de(
|
|
4081
|
-
W.value ? (w(),
|
|
4079
|
+
k.$slots.suffix || W.value ? (w(), x("span", sc, [
|
|
4080
|
+
de(k.$slots, "suffix"),
|
|
4081
|
+
W.value ? (w(), Oe(Ft, {
|
|
4082
4082
|
key: 0,
|
|
4083
|
-
icon:
|
|
4083
|
+
icon: te(eo),
|
|
4084
4084
|
"icon-type": "square",
|
|
4085
4085
|
onClick: B,
|
|
4086
4086
|
onMousedown: A[1] || (A[1] = Wt(() => {
|
|
@@ -4090,44 +4090,44 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4090
4090
|
], 2)
|
|
4091
4091
|
], 6)) : (w(), x("div", {
|
|
4092
4092
|
key: 1,
|
|
4093
|
-
class:
|
|
4094
|
-
style:
|
|
4093
|
+
class: Z(["cregis-textarea", { "is-disabled": e.disabled }]),
|
|
4094
|
+
style: ce([{ width: e.width }, e.inputStyle])
|
|
4095
4095
|
}, [
|
|
4096
|
-
Ut(F("textarea", gt({ class: "cregis-textarea__wrapper" },
|
|
4096
|
+
Ut(F("textarea", gt({ class: "cregis-textarea__wrapper" }, k.$attrs, {
|
|
4097
4097
|
spellcheck: "false",
|
|
4098
4098
|
ref_key: "inputRef",
|
|
4099
4099
|
ref: N,
|
|
4100
4100
|
disabled: e.disabled,
|
|
4101
|
-
placeholder: e.placeholder ||
|
|
4101
|
+
placeholder: e.placeholder || te(Se)("input.placeholder"),
|
|
4102
4102
|
rows: e.rows,
|
|
4103
4103
|
"onUpdate:modelValue": A[2] || (A[2] = (R) => E.value = R),
|
|
4104
4104
|
onInput: h,
|
|
4105
|
-
onChange:
|
|
4105
|
+
onChange: S,
|
|
4106
4106
|
onFocus: T,
|
|
4107
4107
|
onBlur: y
|
|
4108
4108
|
}), null, 16, oc), [
|
|
4109
4109
|
[Zs, E.value]
|
|
4110
4110
|
]),
|
|
4111
4111
|
e.disabled ? X("", !0) : (w(), x("div", lc, [
|
|
4112
|
-
|
|
4112
|
+
oe(Ft, {
|
|
4113
4113
|
class: "cregis-textarea__button",
|
|
4114
4114
|
link: "",
|
|
4115
4115
|
size: "small",
|
|
4116
4116
|
onClick: Y
|
|
4117
4117
|
}, {
|
|
4118
|
-
default:
|
|
4118
|
+
default: Ne(() => [
|
|
4119
4119
|
qe(J(e.pasteText), 1)
|
|
4120
4120
|
]),
|
|
4121
4121
|
_: 1
|
|
4122
4122
|
}),
|
|
4123
|
-
|
|
4123
|
+
oe(Ft, {
|
|
4124
4124
|
class: "cregis-textarea__button",
|
|
4125
4125
|
link: "",
|
|
4126
4126
|
size: "small",
|
|
4127
4127
|
disabled: !E.value,
|
|
4128
4128
|
onClick: B
|
|
4129
4129
|
}, {
|
|
4130
|
-
default:
|
|
4130
|
+
default: Ne(() => [
|
|
4131
4131
|
qe(J(e.clearText), 1)
|
|
4132
4132
|
]),
|
|
4133
4133
|
_: 1
|
|
@@ -4140,7 +4140,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4140
4140
|
"stroke-width": "1",
|
|
4141
4141
|
fill: "none",
|
|
4142
4142
|
"fill-rule": "evenodd"
|
|
4143
|
-
}, uc = { transform: "translate(-394.000000, -457.000000)" }, dc = { transform: "translate(394.000000, 457.000000)" }, fc = ["width", "height"], mc = /* @__PURE__ */
|
|
4143
|
+
}, uc = { transform: "translate(-394.000000, -457.000000)" }, dc = { transform: "translate(394.000000, 457.000000)" }, fc = ["width", "height"], mc = /* @__PURE__ */ ue({
|
|
4144
4144
|
__name: "checked-basis",
|
|
4145
4145
|
props: {
|
|
4146
4146
|
size: { default: "16px" }
|
|
@@ -4176,7 +4176,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4176
4176
|
}), pc = {
|
|
4177
4177
|
key: 0,
|
|
4178
4178
|
class: "cregis-checkbox--indeterminate"
|
|
4179
|
-
}, Cr = /* @__PURE__ */
|
|
4179
|
+
}, Cr = /* @__PURE__ */ ue({
|
|
4180
4180
|
name: "Checkbox",
|
|
4181
4181
|
__name: "Checkbox",
|
|
4182
4182
|
props: {
|
|
@@ -4201,21 +4201,21 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4201
4201
|
onClick: s
|
|
4202
4202
|
}, [
|
|
4203
4203
|
F("div", {
|
|
4204
|
-
class:
|
|
4204
|
+
class: Z(["cregis-checkbox", {
|
|
4205
4205
|
"is-disabled": e.disabled,
|
|
4206
4206
|
"is-checked": r.value,
|
|
4207
4207
|
"is-circle": e.circle,
|
|
4208
4208
|
"is-indeterminate": e.indeterminate
|
|
4209
4209
|
}])
|
|
4210
4210
|
}, [
|
|
4211
|
-
e.indeterminate ? (w(), x("div", pc)) : (w(),
|
|
4211
|
+
e.indeterminate ? (w(), x("div", pc)) : (w(), Oe(mc, {
|
|
4212
4212
|
key: 1,
|
|
4213
4213
|
size: "10px"
|
|
4214
4214
|
}))
|
|
4215
4215
|
], 2),
|
|
4216
4216
|
o.$slots.default || e.label ? (w(), x("span", {
|
|
4217
4217
|
key: 0,
|
|
4218
|
-
class:
|
|
4218
|
+
class: Z(["cregis-checkbox__label", { "is-disabled": e.disabled }])
|
|
4219
4219
|
}, [
|
|
4220
4220
|
de(o.$slots, "default", {}, () => [
|
|
4221
4221
|
qe(J(e.label), 1)
|
|
@@ -4223,7 +4223,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4223
4223
|
], 2)) : X("", !0)
|
|
4224
4224
|
]));
|
|
4225
4225
|
}
|
|
4226
|
-
}),
|
|
4226
|
+
}), _f = /* @__PURE__ */ ue({
|
|
4227
4227
|
name: "Radio",
|
|
4228
4228
|
__name: "Radio",
|
|
4229
4229
|
props: {
|
|
@@ -4242,7 +4242,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4242
4242
|
onClick: s
|
|
4243
4243
|
}, [
|
|
4244
4244
|
F("div", {
|
|
4245
|
-
class:
|
|
4245
|
+
class: Z(["cregis-radio", {
|
|
4246
4246
|
"is-disabled": e.disabled,
|
|
4247
4247
|
"is-checked": r.value
|
|
4248
4248
|
}])
|
|
@@ -4251,7 +4251,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4251
4251
|
])], 2),
|
|
4252
4252
|
o.$slots.default || e.label ? (w(), x("span", {
|
|
4253
4253
|
key: 0,
|
|
4254
|
-
class:
|
|
4254
|
+
class: Z(["cregis-radio__label", { "is-disabled": e.disabled }])
|
|
4255
4255
|
}, [
|
|
4256
4256
|
de(o.$slots, "default", {}, () => [
|
|
4257
4257
|
qe(J(e.label), 1)
|
|
@@ -4259,7 +4259,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4259
4259
|
], 2)) : X("", !0)
|
|
4260
4260
|
]));
|
|
4261
4261
|
}
|
|
4262
|
-
}),
|
|
4262
|
+
}), bf = /* @__PURE__ */ ue({
|
|
4263
4263
|
name: "Divider",
|
|
4264
4264
|
__name: "Divider",
|
|
4265
4265
|
props: {
|
|
@@ -4291,13 +4291,13 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4291
4291
|
margin: n.value
|
|
4292
4292
|
});
|
|
4293
4293
|
return (r, s) => (w(), x("div", {
|
|
4294
|
-
class:
|
|
4294
|
+
class: Z(["cregis-divider", {
|
|
4295
4295
|
[`cregis-divider--${e.direction}`]: e.direction
|
|
4296
4296
|
}]),
|
|
4297
|
-
style:
|
|
4297
|
+
style: ce(a.value)
|
|
4298
4298
|
}, null, 6));
|
|
4299
4299
|
}
|
|
4300
|
-
}), Cs = Symbol("TABS_KEY"), vc = ["onClick"], gc = { style: { display: "none" } },
|
|
4300
|
+
}), Cs = Symbol("TABS_KEY"), vc = ["onClick"], gc = { style: { display: "none" } }, yf = /* @__PURE__ */ ue({
|
|
4301
4301
|
name: "Tabs",
|
|
4302
4302
|
__name: "Tabs",
|
|
4303
4303
|
props: {
|
|
@@ -4322,19 +4322,19 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4322
4322
|
borderRadius: 0
|
|
4323
4323
|
});
|
|
4324
4324
|
return ur(Cs, {
|
|
4325
|
-
activeName:
|
|
4325
|
+
activeName: En(t, "modelValue"),
|
|
4326
4326
|
registerTab: a,
|
|
4327
4327
|
unregisterTab: r
|
|
4328
4328
|
}), (o, l) => (w(), x("div", {
|
|
4329
|
-
class:
|
|
4329
|
+
class: Z(["cregis-tabs", {
|
|
4330
4330
|
[`cregis-tabs--${e.type}`]: e.type,
|
|
4331
4331
|
[`cregis-tabs--${e.size}`]: e.size
|
|
4332
4332
|
}])
|
|
4333
4333
|
}, [
|
|
4334
4334
|
(w(!0), x(Be, null, vt(n, (i) => (w(), x("div", {
|
|
4335
4335
|
key: i.name,
|
|
4336
|
-
class:
|
|
4337
|
-
style:
|
|
4336
|
+
class: Z(["cregis-tabs__item", { "is-active": e.modelValue === i.name }]),
|
|
4337
|
+
style: ce(s.value),
|
|
4338
4338
|
onClick: (f) => o.$emit("update:modelValue", i.name)
|
|
4339
4339
|
}, [
|
|
4340
4340
|
F("span", null, J(i.label), 1)
|
|
@@ -4344,7 +4344,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4344
4344
|
])
|
|
4345
4345
|
], 2));
|
|
4346
4346
|
}
|
|
4347
|
-
}),
|
|
4347
|
+
}), Ef = /* @__PURE__ */ ue({
|
|
4348
4348
|
name: "TabPane",
|
|
4349
4349
|
__name: "TabPane",
|
|
4350
4350
|
props: {
|
|
@@ -4352,7 +4352,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4352
4352
|
name: {}
|
|
4353
4353
|
},
|
|
4354
4354
|
setup(e) {
|
|
4355
|
-
const t = e, n =
|
|
4355
|
+
const t = e, n = In(Cs);
|
|
4356
4356
|
if (!n) throw new Error("TabPane must be used within Tabs");
|
|
4357
4357
|
return Dt(() => {
|
|
4358
4358
|
n.registerTab({ label: t.label, name: t.name });
|
|
@@ -4370,7 +4370,7 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4370
4370
|
class: "cregis-message--success",
|
|
4371
4371
|
role: "status",
|
|
4372
4372
|
"aria-live": "polite"
|
|
4373
|
-
}, _c = { class: "cregis-message__icon" }, bc = /* @__PURE__ */
|
|
4373
|
+
}, _c = { class: "cregis-message__icon" }, bc = /* @__PURE__ */ ue({
|
|
4374
4374
|
name: "Message",
|
|
4375
4375
|
__name: "Message",
|
|
4376
4376
|
props: {
|
|
@@ -4394,22 +4394,22 @@ const Os = () => (Hn || (Hn = Wi({
|
|
|
4394
4394
|
}), dt(() => {
|
|
4395
4395
|
n.value = !0;
|
|
4396
4396
|
}), (o, l) => (w(), x("div", {
|
|
4397
|
-
class:
|
|
4397
|
+
class: Z(["cregis-message__wrapper", { "cregis-message__wrapper--success": e.type === "success" }])
|
|
4398
4398
|
}, [
|
|
4399
|
-
|
|
4399
|
+
oe(mn, {
|
|
4400
4400
|
name: "cregis-message",
|
|
4401
4401
|
onAfterEnter: r,
|
|
4402
4402
|
onAfterLeave: s
|
|
4403
4403
|
}, {
|
|
4404
|
-
default:
|
|
4404
|
+
default: Ne(() => [
|
|
4405
4405
|
n.value && e.type !== "success" ? (w(), x("div", {
|
|
4406
4406
|
key: 0,
|
|
4407
|
-
class:
|
|
4407
|
+
class: Z(["cregis-message", { "cregis-message--danger": e.type === "danger" }]),
|
|
4408
4408
|
role: "status",
|
|
4409
4409
|
"aria-live": "polite"
|
|
4410
4410
|
}, J(e.message), 3)) : n.value && e.type === "success" ? (w(), x("div", hc, [
|
|
4411
4411
|
F("div", _c, [
|
|
4412
|
-
|
|
4412
|
+
oe(te(Ma), {
|
|
4413
4413
|
size: "16px",
|
|
4414
4414
|
color: "var(--material-same-white-primary)"
|
|
4415
4415
|
})
|
|
@@ -4452,7 +4452,7 @@ const Ec = { class: "cregis-notification__wrapper" }, Tc = {
|
|
|
4452
4452
|
class: "cregis-notification",
|
|
4453
4453
|
role: "status",
|
|
4454
4454
|
"aria-live": "polite"
|
|
4455
|
-
}, Nc = { class: "cregis-notification__content" }, Oc = { class: "cregis-notification__title" }, Lc = { class: "cregis-notification__message" }, Cc = /* @__PURE__ */
|
|
4455
|
+
}, Nc = { class: "cregis-notification__content" }, Oc = { class: "cregis-notification__title" }, Lc = { class: "cregis-notification__message" }, Cc = /* @__PURE__ */ ue({
|
|
4456
4456
|
name: "Notification",
|
|
4457
4457
|
__name: "Notification",
|
|
4458
4458
|
props: {
|
|
@@ -4472,13 +4472,13 @@ const Ec = { class: "cregis-notification__wrapper" }, Tc = {
|
|
|
4472
4472
|
}), dt(() => {
|
|
4473
4473
|
n.value = !0;
|
|
4474
4474
|
}), (s, o) => (w(), x("div", Ec, [
|
|
4475
|
-
|
|
4475
|
+
oe(mn, {
|
|
4476
4476
|
name: "cregis-notification",
|
|
4477
4477
|
onAfterLeave: r
|
|
4478
4478
|
}, {
|
|
4479
|
-
default:
|
|
4479
|
+
default: Ne(() => [
|
|
4480
4480
|
n.value ? (w(), x("div", Tc, [
|
|
4481
|
-
(w(),
|
|
4481
|
+
(w(), Oe(sn(te(to)), {
|
|
4482
4482
|
size: "18px",
|
|
4483
4483
|
color: "var(--material-danger-primary)"
|
|
4484
4484
|
})),
|
|
@@ -4486,11 +4486,11 @@ const Ec = { class: "cregis-notification__wrapper" }, Tc = {
|
|
|
4486
4486
|
F("div", Oc, J(e.title), 1),
|
|
4487
4487
|
F("div", Lc, J(e.message), 1)
|
|
4488
4488
|
]),
|
|
4489
|
-
|
|
4489
|
+
oe(Ft, {
|
|
4490
4490
|
type: "sameWhite",
|
|
4491
4491
|
onClick: a
|
|
4492
4492
|
}, {
|
|
4493
|
-
default:
|
|
4493
|
+
default: Ne(() => [
|
|
4494
4494
|
qe(J(e.btnText), 1)
|
|
4495
4495
|
]),
|
|
4496
4496
|
_: 1
|
|
@@ -4503,7 +4503,7 @@ const Ec = { class: "cregis-notification__wrapper" }, Tc = {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
});
|
|
4505
4505
|
let zn = !1;
|
|
4506
|
-
function
|
|
4506
|
+
function Tf(e) {
|
|
4507
4507
|
if (zn) return;
|
|
4508
4508
|
const { title: t, message: n, type: a, btnText: r } = e;
|
|
4509
4509
|
zn = !0;
|
|
@@ -4521,10 +4521,10 @@ function yf(e) {
|
|
|
4521
4521
|
s
|
|
4522
4522
|
);
|
|
4523
4523
|
}
|
|
4524
|
-
const wc = { class: "cregis-progress__wrapper" },
|
|
4524
|
+
const wc = { class: "cregis-progress__wrapper" }, Sc = { class: "cregis-progress__track-wrap" }, kc = { class: "cregis-progress cregis-progress--striped active" }, Ic = {
|
|
4525
4525
|
key: 0,
|
|
4526
4526
|
class: "cregis-progress__sliding-block"
|
|
4527
|
-
},
|
|
4527
|
+
}, Nf = /* @__PURE__ */ ue({
|
|
4528
4528
|
name: "Progress",
|
|
4529
4529
|
__name: "Progress",
|
|
4530
4530
|
props: {
|
|
@@ -4541,17 +4541,17 @@ const wc = { class: "cregis-progress__wrapper" }, kc = { class: "cregis-progress
|
|
|
4541
4541
|
"--cregis-progress-tip-left": `${n.value}%`
|
|
4542
4542
|
})), s = I(() => `${Math.round(t.percentage)}%`);
|
|
4543
4543
|
return (o, l) => (w(), x("div", wc, [
|
|
4544
|
-
F("div",
|
|
4544
|
+
F("div", Sc, [
|
|
4545
4545
|
e.showPercentage && !t.loading ? (w(), x("div", {
|
|
4546
4546
|
key: 0,
|
|
4547
4547
|
class: "cregis-progress__tip",
|
|
4548
|
-
style:
|
|
4548
|
+
style: ce(r.value),
|
|
4549
4549
|
"aria-live": "polite"
|
|
4550
4550
|
}, J(s.value), 5)) : X("", !0),
|
|
4551
|
-
F("div",
|
|
4551
|
+
F("div", kc, [
|
|
4552
4552
|
F("div", {
|
|
4553
4553
|
class: "cregis-progress__bar",
|
|
4554
|
-
style:
|
|
4554
|
+
style: ce(a.value)
|
|
4555
4555
|
}, null, 4),
|
|
4556
4556
|
t.loading ? (w(), x("div", Ic)) : X("", !0)
|
|
4557
4557
|
])
|
|
@@ -4559,10 +4559,10 @@ const wc = { class: "cregis-progress__wrapper" }, kc = { class: "cregis-progress
|
|
|
4559
4559
|
]));
|
|
4560
4560
|
}
|
|
4561
4561
|
});
|
|
4562
|
-
var $e = "top", Ke = "bottom", Xe = "right", Me = "left", wr = "auto", pn = [$e, Ke, Xe, Me], Yt = "start",
|
|
4563
|
-
return e.concat([t + "-" + Yt, t + "-" +
|
|
4564
|
-
}, []),
|
|
4565
|
-
return e.concat([t, t + "-" + Yt, t + "-" +
|
|
4562
|
+
var $e = "top", Ke = "bottom", Xe = "right", Me = "left", wr = "auto", pn = [$e, Ke, Xe, Me], Yt = "start", dn = "end", Ac = "clippingParents", ws = "viewport", Zt = "popper", Dc = "reference", Ea = /* @__PURE__ */ pn.reduce(function(e, t) {
|
|
4563
|
+
return e.concat([t + "-" + Yt, t + "-" + dn]);
|
|
4564
|
+
}, []), Ss = /* @__PURE__ */ [].concat(pn, [wr]).reduce(function(e, t) {
|
|
4565
|
+
return e.concat([t, t + "-" + Yt, t + "-" + dn]);
|
|
4566
4566
|
}, []), xc = "beforeRead", Pc = "read", Rc = "afterRead", $c = "beforeMain", Mc = "main", Vc = "afterMain", Fc = "beforeWrite", Uc = "write", Wc = "afterWrite", Bc = [xc, Pc, Rc, $c, Mc, Vc, Fc, Uc, Wc];
|
|
4567
4567
|
function st(e) {
|
|
4568
4568
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -4584,7 +4584,7 @@ function Ye(e) {
|
|
|
4584
4584
|
var t = Fe(e).HTMLElement;
|
|
4585
4585
|
return e instanceof t || e instanceof HTMLElement;
|
|
4586
4586
|
}
|
|
4587
|
-
function
|
|
4587
|
+
function Sr(e) {
|
|
4588
4588
|
if (typeof ShadowRoot > "u")
|
|
4589
4589
|
return !1;
|
|
4590
4590
|
var t = Fe(e).ShadowRoot;
|
|
@@ -4635,21 +4635,21 @@ const zc = {
|
|
|
4635
4635
|
function rt(e) {
|
|
4636
4636
|
return e.split("-")[0];
|
|
4637
4637
|
}
|
|
4638
|
-
var Ct = Math.max,
|
|
4638
|
+
var Ct = Math.max, Cn = Math.min, Kt = Math.round;
|
|
4639
4639
|
function or() {
|
|
4640
4640
|
var e = navigator.userAgentData;
|
|
4641
4641
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
4642
4642
|
return t.brand + "/" + t.version;
|
|
4643
4643
|
}).join(" ") : navigator.userAgent;
|
|
4644
4644
|
}
|
|
4645
|
-
function
|
|
4645
|
+
function ks() {
|
|
4646
4646
|
return !/^((?!chrome|android).)*safari/i.test(or());
|
|
4647
4647
|
}
|
|
4648
4648
|
function Xt(e, t, n) {
|
|
4649
4649
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4650
4650
|
var a = e.getBoundingClientRect(), r = 1, s = 1;
|
|
4651
4651
|
t && Ye(e) && (r = e.offsetWidth > 0 && Kt(a.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Kt(a.height) / e.offsetHeight || 1);
|
|
4652
|
-
var o = At(e) ? Fe(e) : window, l = o.visualViewport, i = !
|
|
4652
|
+
var o = At(e) ? Fe(e) : window, l = o.visualViewport, i = !ks() && n, f = (a.left + (i && l ? l.offsetLeft : 0)) / r, m = (a.top + (i && l ? l.offsetTop : 0)) / s, v = a.width / r, p = a.height / s;
|
|
4653
4653
|
return {
|
|
4654
4654
|
width: v,
|
|
4655
4655
|
height: p,
|
|
@@ -4661,7 +4661,7 @@ function Xt(e, t, n) {
|
|
|
4661
4661
|
y: m
|
|
4662
4662
|
};
|
|
4663
4663
|
}
|
|
4664
|
-
function
|
|
4664
|
+
function kr(e) {
|
|
4665
4665
|
var t = Xt(e), n = e.offsetWidth, a = e.offsetHeight;
|
|
4666
4666
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - a) <= 1 && (a = t.height), {
|
|
4667
4667
|
x: e.offsetLeft,
|
|
@@ -4674,7 +4674,7 @@ function Is(e, t) {
|
|
|
4674
4674
|
var n = t.getRootNode && t.getRootNode();
|
|
4675
4675
|
if (e.contains(t))
|
|
4676
4676
|
return !0;
|
|
4677
|
-
if (n &&
|
|
4677
|
+
if (n && Sr(n)) {
|
|
4678
4678
|
var a = t;
|
|
4679
4679
|
do {
|
|
4680
4680
|
if (a && e.isSameNode(a))
|
|
@@ -4703,7 +4703,7 @@ function Rn(e) {
|
|
|
4703
4703
|
// $FlowFixMe[prop-missing]
|
|
4704
4704
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
4705
4705
|
e.parentNode || // DOM Element detected
|
|
4706
|
-
(
|
|
4706
|
+
(Sr(e) ? e.host : null) || // ShadowRoot detected
|
|
4707
4707
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
4708
4708
|
yt(e)
|
|
4709
4709
|
);
|
|
@@ -4720,7 +4720,7 @@ function Yc(e) {
|
|
|
4720
4720
|
return null;
|
|
4721
4721
|
}
|
|
4722
4722
|
var r = Rn(e);
|
|
4723
|
-
for (
|
|
4723
|
+
for (Sr(r) && (r = r.host); Ye(r) && ["html", "body"].indexOf(st(r)) < 0; ) {
|
|
4724
4724
|
var s = mt(r);
|
|
4725
4725
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
|
|
4726
4726
|
return r;
|
|
@@ -4736,11 +4736,11 @@ function vn(e) {
|
|
|
4736
4736
|
function Ir(e) {
|
|
4737
4737
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
4738
4738
|
}
|
|
4739
|
-
function
|
|
4740
|
-
return Ct(e,
|
|
4739
|
+
function nn(e, t, n) {
|
|
4740
|
+
return Ct(e, Cn(t, n));
|
|
4741
4741
|
}
|
|
4742
4742
|
function Kc(e, t, n) {
|
|
4743
|
-
var a =
|
|
4743
|
+
var a = nn(e, t, n);
|
|
4744
4744
|
return a > n ? n : a;
|
|
4745
4745
|
}
|
|
4746
4746
|
function As() {
|
|
@@ -4767,7 +4767,7 @@ var Xc = function(t, n) {
|
|
|
4767
4767
|
function qc(e) {
|
|
4768
4768
|
var t, n = e.state, a = e.name, r = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l = rt(n.placement), i = Ir(l), f = [Me, Xe].indexOf(l) >= 0, m = f ? "height" : "width";
|
|
4769
4769
|
if (!(!s || !o)) {
|
|
4770
|
-
var v = Xc(r.padding, n), p =
|
|
4770
|
+
var v = Xc(r.padding, n), p = kr(s), g = i === "y" ? $e : Me, E = i === "y" ? Ke : Xe, N = n.rects.reference[m] + n.rects.reference[i] - o[i] - n.rects.popper[m], L = o[i] - n.rects.reference[i], d = vn(s), _ = d ? i === "y" ? d.clientHeight || 0 : d.clientWidth || 0 : 0, O = N / 2 - L / 2, h = v[g], S = _ - p[m] - v[E], T = _ / 2 - p[m] / 2 + O, y = nn(h, T, S), W = i;
|
|
4771
4771
|
n.modifiersData[a] = (t = {}, t[W] = y, t.centerOffset = y - T, t);
|
|
4772
4772
|
}
|
|
4773
4773
|
}
|
|
@@ -4809,20 +4809,20 @@ function Na(e) {
|
|
|
4809
4809
|
y: N
|
|
4810
4810
|
};
|
|
4811
4811
|
g = L.x, N = L.y;
|
|
4812
|
-
var d = o.hasOwnProperty("x"), _ = o.hasOwnProperty("y"), O = Me, h = $e,
|
|
4812
|
+
var d = o.hasOwnProperty("x"), _ = o.hasOwnProperty("y"), O = Me, h = $e, S = window;
|
|
4813
4813
|
if (f) {
|
|
4814
4814
|
var T = vn(n), y = "clientHeight", W = "clientWidth";
|
|
4815
|
-
if (T === Fe(n) && (T = yt(n), mt(T).position !== "static" && l === "absolute" && (y = "scrollHeight", W = "scrollWidth")), T = T, r === $e || (r === Me || r === Xe) && s ===
|
|
4815
|
+
if (T === Fe(n) && (T = yt(n), mt(T).position !== "static" && l === "absolute" && (y = "scrollHeight", W = "scrollWidth")), T = T, r === $e || (r === Me || r === Xe) && s === dn) {
|
|
4816
4816
|
h = Ke;
|
|
4817
|
-
var B = v && T ===
|
|
4817
|
+
var B = v && T === S && S.visualViewport ? S.visualViewport.height : (
|
|
4818
4818
|
// $FlowFixMe[prop-missing]
|
|
4819
4819
|
T[y]
|
|
4820
4820
|
);
|
|
4821
4821
|
N -= B - a.height, N *= i ? 1 : -1;
|
|
4822
4822
|
}
|
|
4823
|
-
if (r === Me || (r === $e || r === Ke) && s ===
|
|
4823
|
+
if (r === Me || (r === $e || r === Ke) && s === dn) {
|
|
4824
4824
|
O = Xe;
|
|
4825
|
-
var G = v && T ===
|
|
4825
|
+
var G = v && T === S && S.visualViewport ? S.visualViewport.width : (
|
|
4826
4826
|
// $FlowFixMe[prop-missing]
|
|
4827
4827
|
T[W]
|
|
4828
4828
|
);
|
|
@@ -4840,7 +4840,7 @@ function Na(e) {
|
|
|
4840
4840
|
};
|
|
4841
4841
|
if (g = Y.x, N = Y.y, i) {
|
|
4842
4842
|
var U;
|
|
4843
|
-
return Object.assign({}, H, (U = {}, U[h] = _ ? "0" : "", U[O] = d ? "0" : "", U.transform = (
|
|
4843
|
+
return Object.assign({}, H, (U = {}, U[h] = _ ? "0" : "", U[O] = d ? "0" : "", U.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + N + "px)" : "translate3d(" + g + "px, " + N + "px, 0)", U));
|
|
4844
4844
|
}
|
|
4845
4845
|
return Object.assign({}, H, (t = {}, t[h] = _ ? N + "px" : "", t[O] = d ? g + "px" : "", t.transform = "", t));
|
|
4846
4846
|
}
|
|
@@ -4902,7 +4902,7 @@ var su = {
|
|
|
4902
4902
|
bottom: "top",
|
|
4903
4903
|
top: "bottom"
|
|
4904
4904
|
};
|
|
4905
|
-
function
|
|
4905
|
+
function Nn(e) {
|
|
4906
4906
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
4907
4907
|
return su[t];
|
|
4908
4908
|
});
|
|
@@ -4930,7 +4930,7 @@ function lu(e, t) {
|
|
|
4930
4930
|
var n = Fe(e), a = yt(e), r = n.visualViewport, s = a.clientWidth, o = a.clientHeight, l = 0, i = 0;
|
|
4931
4931
|
if (r) {
|
|
4932
4932
|
s = r.width, o = r.height;
|
|
4933
|
-
var f =
|
|
4933
|
+
var f = ks();
|
|
4934
4934
|
(f || !f && t === "fixed") && (l = r.offsetLeft, i = r.offsetTop);
|
|
4935
4935
|
}
|
|
4936
4936
|
return {
|
|
@@ -4956,13 +4956,13 @@ function xr(e) {
|
|
|
4956
4956
|
function Ps(e) {
|
|
4957
4957
|
return ["html", "body", "#document"].indexOf(st(e)) >= 0 ? e.ownerDocument.body : Ye(e) && xr(e) ? e : Ps(Rn(e));
|
|
4958
4958
|
}
|
|
4959
|
-
function
|
|
4959
|
+
function rn(e, t) {
|
|
4960
4960
|
var n;
|
|
4961
4961
|
t === void 0 && (t = []);
|
|
4962
4962
|
var a = Ps(e), r = a === ((n = e.ownerDocument) == null ? void 0 : n.body), s = Fe(a), o = r ? [s].concat(s.visualViewport || [], xr(a) ? a : []) : a, l = t.concat(o);
|
|
4963
4963
|
return r ? l : (
|
|
4964
4964
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
4965
|
-
l.concat(
|
|
4965
|
+
l.concat(rn(Rn(o)))
|
|
4966
4966
|
);
|
|
4967
4967
|
}
|
|
4968
4968
|
function lr(e) {
|
|
@@ -4981,7 +4981,7 @@ function La(e, t, n) {
|
|
|
4981
4981
|
return t === ws ? lr(lu(e, n)) : At(t) ? cu(t, n) : lr(iu(yt(e)));
|
|
4982
4982
|
}
|
|
4983
4983
|
function uu(e) {
|
|
4984
|
-
var t =
|
|
4984
|
+
var t = rn(Rn(e)), n = ["absolute", "fixed"].indexOf(mt(e).position) >= 0, a = n && Ye(e) ? vn(e) : e;
|
|
4985
4985
|
return At(a) ? t.filter(function(r) {
|
|
4986
4986
|
return At(r) && Is(r, a) && st(r) !== "body";
|
|
4987
4987
|
}) : [];
|
|
@@ -4989,7 +4989,7 @@ function uu(e) {
|
|
|
4989
4989
|
function du(e, t, n, a) {
|
|
4990
4990
|
var r = t === "clippingParents" ? uu(e) : [].concat(t), s = [].concat(r, [n]), o = s[0], l = s.reduce(function(i, f) {
|
|
4991
4991
|
var m = La(e, f, a);
|
|
4992
|
-
return i.top = Ct(m.top, i.top), i.right =
|
|
4992
|
+
return i.top = Ct(m.top, i.top), i.right = Cn(m.right, i.right), i.bottom = Cn(m.bottom, i.bottom), i.left = Ct(m.left, i.left), i;
|
|
4993
4993
|
}, La(e, o, a));
|
|
4994
4994
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
4995
4995
|
}
|
|
@@ -5033,24 +5033,24 @@ function Rs(e) {
|
|
|
5033
5033
|
case Yt:
|
|
5034
5034
|
i[f] = i[f] - (t[m] / 2 - n[m] / 2);
|
|
5035
5035
|
break;
|
|
5036
|
-
case
|
|
5036
|
+
case dn:
|
|
5037
5037
|
i[f] = i[f] + (t[m] / 2 - n[m] / 2);
|
|
5038
5038
|
break;
|
|
5039
5039
|
}
|
|
5040
5040
|
}
|
|
5041
5041
|
return i;
|
|
5042
5042
|
}
|
|
5043
|
-
function
|
|
5043
|
+
function fn(e, t) {
|
|
5044
5044
|
t === void 0 && (t = {});
|
|
5045
|
-
var n = t, a = n.placement, r = a === void 0 ? e.placement : a, s = n.strategy, o = s === void 0 ? e.strategy : s, l = n.boundary, i = l === void 0 ? Ac : l, f = n.rootBoundary, m = f === void 0 ? ws : f, v = n.elementContext, p = v === void 0 ? Zt : v, g = n.altBoundary, E = g === void 0 ? !1 : g, N = n.padding, L = N === void 0 ? 0 : N, d = Ds(typeof L != "number" ? L : xs(L, pn)), _ = p === Zt ? Dc : Zt, O = e.rects.popper, h = e.elements[E ? _ : p],
|
|
5045
|
+
var n = t, a = n.placement, r = a === void 0 ? e.placement : a, s = n.strategy, o = s === void 0 ? e.strategy : s, l = n.boundary, i = l === void 0 ? Ac : l, f = n.rootBoundary, m = f === void 0 ? ws : f, v = n.elementContext, p = v === void 0 ? Zt : v, g = n.altBoundary, E = g === void 0 ? !1 : g, N = n.padding, L = N === void 0 ? 0 : N, d = Ds(typeof L != "number" ? L : xs(L, pn)), _ = p === Zt ? Dc : Zt, O = e.rects.popper, h = e.elements[E ? _ : p], S = du(At(h) ? h : h.contextElement || yt(e.elements.popper), i, m, o), T = Xt(e.elements.reference), y = Rs({
|
|
5046
5046
|
reference: T,
|
|
5047
5047
|
element: O,
|
|
5048
5048
|
placement: r
|
|
5049
5049
|
}), W = lr(Object.assign({}, O, y)), B = p === Zt ? W : T, G = {
|
|
5050
|
-
top:
|
|
5051
|
-
bottom: B.bottom -
|
|
5052
|
-
left:
|
|
5053
|
-
right: B.right -
|
|
5050
|
+
top: S.top - B.top + d.top,
|
|
5051
|
+
bottom: B.bottom - S.bottom + d.bottom,
|
|
5052
|
+
left: S.left - B.left + d.left,
|
|
5053
|
+
right: B.right - S.right + d.right
|
|
5054
5054
|
}, H = e.modifiersData.offset;
|
|
5055
5055
|
if (p === Zt && H) {
|
|
5056
5056
|
var Y = H[r];
|
|
@@ -5063,14 +5063,14 @@ function mn(e, t) {
|
|
|
5063
5063
|
}
|
|
5064
5064
|
function fu(e, t) {
|
|
5065
5065
|
t === void 0 && (t = {});
|
|
5066
|
-
var n = t, a = n.placement, r = n.boundary, s = n.rootBoundary, o = n.padding, l = n.flipVariations, i = n.allowedAutoPlacements, f = i === void 0 ?
|
|
5066
|
+
var n = t, a = n.placement, r = n.boundary, s = n.rootBoundary, o = n.padding, l = n.flipVariations, i = n.allowedAutoPlacements, f = i === void 0 ? Ss : i, m = qt(a), v = m ? l ? Ea : Ea.filter(function(E) {
|
|
5067
5067
|
return qt(E) === m;
|
|
5068
5068
|
}) : pn, p = v.filter(function(E) {
|
|
5069
5069
|
return f.indexOf(E) >= 0;
|
|
5070
5070
|
});
|
|
5071
5071
|
p.length === 0 && (p = v);
|
|
5072
5072
|
var g = p.reduce(function(E, N) {
|
|
5073
|
-
return E[N] =
|
|
5073
|
+
return E[N] = fn(e, {
|
|
5074
5074
|
placement: N,
|
|
5075
5075
|
boundary: r,
|
|
5076
5076
|
rootBoundary: s,
|
|
@@ -5084,32 +5084,32 @@ function fu(e, t) {
|
|
|
5084
5084
|
function mu(e) {
|
|
5085
5085
|
if (rt(e) === wr)
|
|
5086
5086
|
return [];
|
|
5087
|
-
var t =
|
|
5087
|
+
var t = Nn(e);
|
|
5088
5088
|
return [Oa(e), t, Oa(t)];
|
|
5089
5089
|
}
|
|
5090
5090
|
function pu(e) {
|
|
5091
5091
|
var t = e.state, n = e.options, a = e.name;
|
|
5092
5092
|
if (!t.modifiersData[a]._skip) {
|
|
5093
|
-
for (var r = n.mainAxis, s = r === void 0 ? !0 : r, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, f = n.padding, m = n.boundary, v = n.rootBoundary, p = n.altBoundary, g = n.flipVariations, E = g === void 0 ? !0 : g, N = n.allowedAutoPlacements, L = t.options.placement, d = rt(L), _ = d === L, O = i || (_ || !E ? [
|
|
5094
|
-
return Re.concat(rt(
|
|
5095
|
-
placement:
|
|
5093
|
+
for (var r = n.mainAxis, s = r === void 0 ? !0 : r, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, f = n.padding, m = n.boundary, v = n.rootBoundary, p = n.altBoundary, g = n.flipVariations, E = g === void 0 ? !0 : g, N = n.allowedAutoPlacements, L = t.options.placement, d = rt(L), _ = d === L, O = i || (_ || !E ? [Nn(L)] : mu(L)), h = [L].concat(O).reduce(function(Re, ke) {
|
|
5094
|
+
return Re.concat(rt(ke) === wr ? fu(t, {
|
|
5095
|
+
placement: ke,
|
|
5096
5096
|
boundary: m,
|
|
5097
5097
|
rootBoundary: v,
|
|
5098
5098
|
padding: f,
|
|
5099
5099
|
flipVariations: E,
|
|
5100
5100
|
allowedAutoPlacements: N
|
|
5101
|
-
}) :
|
|
5102
|
-
}, []),
|
|
5103
|
-
var H = h[G], Y = rt(H), U = qt(H) === Yt, q = [$e, Ke].indexOf(Y) >= 0, he = q ? "width" : "height",
|
|
5101
|
+
}) : ke);
|
|
5102
|
+
}, []), S = t.rects.reference, T = t.rects.popper, y = /* @__PURE__ */ new Map(), W = !0, B = h[0], G = 0; G < h.length; G++) {
|
|
5103
|
+
var H = h[G], Y = rt(H), U = qt(H) === Yt, q = [$e, Ke].indexOf(Y) >= 0, he = q ? "width" : "height", k = fn(t, {
|
|
5104
5104
|
placement: H,
|
|
5105
5105
|
boundary: m,
|
|
5106
5106
|
rootBoundary: v,
|
|
5107
5107
|
altBoundary: p,
|
|
5108
5108
|
padding: f
|
|
5109
5109
|
}), A = q ? U ? Xe : Me : U ? Ke : $e;
|
|
5110
|
-
|
|
5111
|
-
var R =
|
|
5112
|
-
if (s && V.push(
|
|
5110
|
+
S[he] > T[he] && (A = Nn(A));
|
|
5111
|
+
var R = Nn(A), V = [];
|
|
5112
|
+
if (s && V.push(k[Y] <= 0), l && V.push(k[A] <= 0, k[R] <= 0), V.every(function(Re) {
|
|
5113
5113
|
return Re;
|
|
5114
5114
|
})) {
|
|
5115
5115
|
B = H, W = !1;
|
|
@@ -5118,18 +5118,18 @@ function pu(e) {
|
|
|
5118
5118
|
y.set(H, V);
|
|
5119
5119
|
}
|
|
5120
5120
|
if (W)
|
|
5121
|
-
for (var j = E ? 3 : 1,
|
|
5121
|
+
for (var j = E ? 3 : 1, ee = function(ke) {
|
|
5122
5122
|
var xe = h.find(function($) {
|
|
5123
5123
|
var pe = y.get($);
|
|
5124
5124
|
if (pe)
|
|
5125
|
-
return pe.slice(0,
|
|
5125
|
+
return pe.slice(0, ke).every(function(Ee) {
|
|
5126
5126
|
return Ee;
|
|
5127
5127
|
});
|
|
5128
5128
|
});
|
|
5129
5129
|
if (xe)
|
|
5130
5130
|
return B = xe, "break";
|
|
5131
|
-
},
|
|
5132
|
-
var _e =
|
|
5131
|
+
}, le = j; le > 0; le--) {
|
|
5132
|
+
var _e = ee(le);
|
|
5133
5133
|
if (_e === "break") break;
|
|
5134
5134
|
}
|
|
5135
5135
|
t.placement !== B && (t.modifiersData[a]._skip = !0, t.placement = B, t.reset = !0);
|
|
@@ -5162,9 +5162,9 @@ function wa(e) {
|
|
|
5162
5162
|
});
|
|
5163
5163
|
}
|
|
5164
5164
|
function gu(e) {
|
|
5165
|
-
var t = e.state, n = e.name, a = t.rects.reference, r = t.rects.popper, s = t.modifiersData.preventOverflow, o =
|
|
5165
|
+
var t = e.state, n = e.name, a = t.rects.reference, r = t.rects.popper, s = t.modifiersData.preventOverflow, o = fn(t, {
|
|
5166
5166
|
elementContext: "reference"
|
|
5167
|
-
}), l =
|
|
5167
|
+
}), l = fn(t, {
|
|
5168
5168
|
altBoundary: !0
|
|
5169
5169
|
}), i = Ca(o, a), f = Ca(l, r, s), m = wa(i), v = wa(f);
|
|
5170
5170
|
t.modifiersData[n] = {
|
|
@@ -5197,7 +5197,7 @@ function _u(e, t, n) {
|
|
|
5197
5197
|
};
|
|
5198
5198
|
}
|
|
5199
5199
|
function bu(e) {
|
|
5200
|
-
var t = e.state, n = e.options, a = e.name, r = n.offset, s = r === void 0 ? [0, 0] : r, o =
|
|
5200
|
+
var t = e.state, n = e.options, a = e.name, r = n.offset, s = r === void 0 ? [0, 0] : r, o = Ss.reduce(function(m, v) {
|
|
5201
5201
|
return m[v] = _u(v, t.rects, s), m;
|
|
5202
5202
|
}, {}), l = o[t.placement], i = l.x, f = l.y;
|
|
5203
5203
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += f), t.modifiersData[a] = o;
|
|
@@ -5228,12 +5228,12 @@ function Nu(e) {
|
|
|
5228
5228
|
return e === "x" ? "y" : "x";
|
|
5229
5229
|
}
|
|
5230
5230
|
function Ou(e) {
|
|
5231
|
-
var t = e.state, n = e.options, a = e.name, r = n.mainAxis, s = r === void 0 ? !0 : r, o = n.altAxis, l = o === void 0 ? !1 : o, i = n.boundary, f = n.rootBoundary, m = n.altBoundary, v = n.padding, p = n.tether, g = p === void 0 ? !0 : p, E = n.tetherOffset, N = E === void 0 ? 0 : E, L =
|
|
5231
|
+
var t = e.state, n = e.options, a = e.name, r = n.mainAxis, s = r === void 0 ? !0 : r, o = n.altAxis, l = o === void 0 ? !1 : o, i = n.boundary, f = n.rootBoundary, m = n.altBoundary, v = n.padding, p = n.tether, g = p === void 0 ? !0 : p, E = n.tetherOffset, N = E === void 0 ? 0 : E, L = fn(t, {
|
|
5232
5232
|
boundary: i,
|
|
5233
5233
|
rootBoundary: f,
|
|
5234
5234
|
padding: v,
|
|
5235
5235
|
altBoundary: m
|
|
5236
|
-
}), d = rt(t.placement), _ = qt(t.placement), O = !_, h = Ir(d),
|
|
5236
|
+
}), d = rt(t.placement), _ = qt(t.placement), O = !_, h = Ir(d), S = Nu(h), T = t.modifiersData.popperOffsets, y = t.rects.reference, W = t.rects.popper, B = typeof N == "function" ? N(Object.assign({}, t.rects, {
|
|
5237
5237
|
placement: t.placement
|
|
5238
5238
|
})) : N, G = typeof B == "number" ? {
|
|
5239
5239
|
mainAxis: B,
|
|
@@ -5247,15 +5247,15 @@ function Ou(e) {
|
|
|
5247
5247
|
};
|
|
5248
5248
|
if (T) {
|
|
5249
5249
|
if (s) {
|
|
5250
|
-
var U, q = h === "y" ? $e : Me, he = h === "y" ? Ke : Xe,
|
|
5250
|
+
var U, q = h === "y" ? $e : Me, he = h === "y" ? Ke : Xe, k = h === "y" ? "height" : "width", A = T[h], R = A + L[q], V = A - L[he], j = g ? -W[k] / 2 : 0, ee = _ === Yt ? y[k] : W[k], le = _ === Yt ? -W[k] : -y[k], _e = t.elements.arrow, Re = g && _e ? kr(_e) : {
|
|
5251
5251
|
width: 0,
|
|
5252
5252
|
height: 0
|
|
5253
|
-
},
|
|
5253
|
+
}, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : As(), xe = ke[q], $ = ke[he], pe = nn(0, y[k], Re[k]), Ee = O ? y[k] / 2 - j - pe - xe - G.mainAxis : ee - pe - xe - G.mainAxis, Ie = O ? -y[k] / 2 + j + pe + $ + G.mainAxis : le + pe + $ + G.mainAxis, lt = t.elements.arrow && vn(t.elements.arrow), Et = lt ? h === "y" ? lt.clientTop || 0 : lt.clientLeft || 0 : 0, Ze = (U = H?.[h]) != null ? U : 0, it = A + Ee - Ze - Et, Ue = A + Ie - Ze, et = nn(g ? Cn(R, it) : R, A, g ? Ct(V, Ue) : V);
|
|
5254
5254
|
T[h] = et, Y[h] = et - A;
|
|
5255
5255
|
}
|
|
5256
5256
|
if (l) {
|
|
5257
|
-
var pt, c = h === "x" ? $e : Me, u = h === "x" ? Ke : Xe, b = T[
|
|
5258
|
-
T[
|
|
5257
|
+
var pt, c = h === "x" ? $e : Me, u = h === "x" ? Ke : Xe, b = T[S], P = S === "y" ? "height" : "width", Q = b + L[c], ve = b - L[u], ne = [$e, Me].indexOf(d) !== -1, C = (pt = H?.[S]) != null ? pt : 0, D = ne ? Q : b - y[P] - W[P] - C + G.altAxis, re = ne ? b + y[P] + W[P] - C - G.altAxis : ve, be = g && ne ? Kc(D, b, re) : nn(g ? D : Q, b, g ? re : ve);
|
|
5258
|
+
T[S] = be, Y[S] = be - b;
|
|
5259
5259
|
}
|
|
5260
5260
|
t.modifiersData[a] = Y;
|
|
5261
5261
|
}
|
|
@@ -5276,13 +5276,13 @@ function Cu(e) {
|
|
|
5276
5276
|
function wu(e) {
|
|
5277
5277
|
return e === Fe(e) || !Ye(e) ? Ar(e) : Cu(e);
|
|
5278
5278
|
}
|
|
5279
|
-
function
|
|
5279
|
+
function Su(e) {
|
|
5280
5280
|
var t = e.getBoundingClientRect(), n = Kt(t.width) / e.offsetWidth || 1, a = Kt(t.height) / e.offsetHeight || 1;
|
|
5281
5281
|
return n !== 1 || a !== 1;
|
|
5282
5282
|
}
|
|
5283
|
-
function
|
|
5283
|
+
function ku(e, t, n) {
|
|
5284
5284
|
n === void 0 && (n = !1);
|
|
5285
|
-
var a = Ye(t), r = Ye(t) &&
|
|
5285
|
+
var a = Ye(t), r = Ye(t) && Su(t), s = yt(t), o = Xt(e, r, n), l = {
|
|
5286
5286
|
scrollLeft: 0,
|
|
5287
5287
|
scrollTop: 0
|
|
5288
5288
|
}, i = {
|
|
@@ -5346,12 +5346,12 @@ function xu(e) {
|
|
|
5346
5346
|
return t[n];
|
|
5347
5347
|
});
|
|
5348
5348
|
}
|
|
5349
|
-
var
|
|
5349
|
+
var Sa = {
|
|
5350
5350
|
placement: "bottom",
|
|
5351
5351
|
modifiers: [],
|
|
5352
5352
|
strategy: "absolute"
|
|
5353
5353
|
};
|
|
5354
|
-
function
|
|
5354
|
+
function ka() {
|
|
5355
5355
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
5356
5356
|
t[n] = arguments[n];
|
|
5357
5357
|
return !t.some(function(a) {
|
|
@@ -5360,13 +5360,13 @@ function Sa() {
|
|
|
5360
5360
|
}
|
|
5361
5361
|
function Pu(e) {
|
|
5362
5362
|
e === void 0 && (e = {});
|
|
5363
|
-
var t = e, n = t.defaultModifiers, a = n === void 0 ? [] : n, r = t.defaultOptions, s = r === void 0 ?
|
|
5363
|
+
var t = e, n = t.defaultModifiers, a = n === void 0 ? [] : n, r = t.defaultOptions, s = r === void 0 ? Sa : r;
|
|
5364
5364
|
return function(l, i, f) {
|
|
5365
5365
|
f === void 0 && (f = s);
|
|
5366
5366
|
var m = {
|
|
5367
5367
|
placement: "bottom",
|
|
5368
5368
|
orderedModifiers: [],
|
|
5369
|
-
options: Object.assign({},
|
|
5369
|
+
options: Object.assign({}, Sa, s),
|
|
5370
5370
|
modifiersData: {},
|
|
5371
5371
|
elements: {
|
|
5372
5372
|
reference: l,
|
|
@@ -5379,8 +5379,8 @@ function Pu(e) {
|
|
|
5379
5379
|
setOptions: function(d) {
|
|
5380
5380
|
var _ = typeof d == "function" ? d(m.options) : d;
|
|
5381
5381
|
N(), m.options = Object.assign({}, s, m.options, _), m.scrollParents = {
|
|
5382
|
-
reference: At(l) ?
|
|
5383
|
-
popper:
|
|
5382
|
+
reference: At(l) ? rn(l) : l.contextElement ? rn(l.contextElement) : [],
|
|
5383
|
+
popper: rn(i)
|
|
5384
5384
|
};
|
|
5385
5385
|
var O = Au(xu([].concat(a, m.options.modifiers)));
|
|
5386
5386
|
return m.orderedModifiers = O.filter(function(h) {
|
|
@@ -5395,10 +5395,10 @@ function Pu(e) {
|
|
|
5395
5395
|
forceUpdate: function() {
|
|
5396
5396
|
if (!p) {
|
|
5397
5397
|
var d = m.elements, _ = d.reference, O = d.popper;
|
|
5398
|
-
if (
|
|
5398
|
+
if (ka(_, O)) {
|
|
5399
5399
|
m.rects = {
|
|
5400
|
-
reference:
|
|
5401
|
-
popper:
|
|
5400
|
+
reference: ku(_, vn(O), m.options.strategy === "fixed"),
|
|
5401
|
+
popper: kr(O)
|
|
5402
5402
|
}, m.reset = !1, m.placement = m.options.placement, m.orderedModifiers.forEach(function(G) {
|
|
5403
5403
|
return m.modifiersData[G.name] = Object.assign({}, G.data);
|
|
5404
5404
|
});
|
|
@@ -5407,7 +5407,7 @@ function Pu(e) {
|
|
|
5407
5407
|
m.reset = !1, h = -1;
|
|
5408
5408
|
continue;
|
|
5409
5409
|
}
|
|
5410
|
-
var
|
|
5410
|
+
var S = m.orderedModifiers[h], T = S.fn, y = S.options, W = y === void 0 ? {} : y, B = S.name;
|
|
5411
5411
|
typeof T == "function" && (m = T({
|
|
5412
5412
|
state: m,
|
|
5413
5413
|
options: W,
|
|
@@ -5429,7 +5429,7 @@ function Pu(e) {
|
|
|
5429
5429
|
N(), p = !0;
|
|
5430
5430
|
}
|
|
5431
5431
|
};
|
|
5432
|
-
if (!
|
|
5432
|
+
if (!ka(l, i))
|
|
5433
5433
|
return g;
|
|
5434
5434
|
g.setOptions(f).then(function(L) {
|
|
5435
5435
|
!p && f.onFirstUpdate && f.onFirstUpdate(L);
|
|
@@ -5438,14 +5438,14 @@ function Pu(e) {
|
|
|
5438
5438
|
m.orderedModifiers.forEach(function(L) {
|
|
5439
5439
|
var d = L.name, _ = L.options, O = _ === void 0 ? {} : _, h = L.effect;
|
|
5440
5440
|
if (typeof h == "function") {
|
|
5441
|
-
var
|
|
5441
|
+
var S = h({
|
|
5442
5442
|
state: m,
|
|
5443
5443
|
name: d,
|
|
5444
5444
|
instance: g,
|
|
5445
5445
|
options: O
|
|
5446
5446
|
}), T = function() {
|
|
5447
5447
|
};
|
|
5448
|
-
v.push(
|
|
5448
|
+
v.push(S || T);
|
|
5449
5449
|
}
|
|
5450
5450
|
});
|
|
5451
5451
|
}
|
|
@@ -5459,7 +5459,7 @@ function Pu(e) {
|
|
|
5459
5459
|
}
|
|
5460
5460
|
var Ru = [au, Tu, nu, zc, yu, vu, Lu, Jc, hu], $s = /* @__PURE__ */ Pu({
|
|
5461
5461
|
defaultModifiers: Ru
|
|
5462
|
-
}), $u = typeof global == "object" && global && global.Object === Object && global, Mu = typeof self == "object" && self && self.Object === Object && self, Ms = $u || Mu || Function("return this")(),
|
|
5462
|
+
}), $u = typeof global == "object" && global && global.Object === Object && global, Mu = typeof self == "object" && self && self.Object === Object && self, Ms = $u || Mu || Function("return this")(), wn = Ms.Symbol, Vs = Object.prototype, Vu = Vs.hasOwnProperty, Fu = Vs.toString, en = wn ? wn.toStringTag : void 0;
|
|
5463
5463
|
function Uu(e) {
|
|
5464
5464
|
var t = Vu.call(e, en), n = e[en];
|
|
5465
5465
|
try {
|
|
@@ -5474,7 +5474,7 @@ var Wu = Object.prototype, Bu = Wu.toString;
|
|
|
5474
5474
|
function Hu(e) {
|
|
5475
5475
|
return Bu.call(e);
|
|
5476
5476
|
}
|
|
5477
|
-
var ju = "[object Null]", zu = "[object Undefined]", Ia =
|
|
5477
|
+
var ju = "[object Null]", zu = "[object Undefined]", Ia = wn ? wn.toStringTag : void 0;
|
|
5478
5478
|
function Gu(e) {
|
|
5479
5479
|
return e == null ? e === void 0 ? zu : ju : Ia && Ia in Object(e) ? Uu(e) : Hu(e);
|
|
5480
5480
|
}
|
|
@@ -5495,7 +5495,7 @@ var Ju = /^\s+/;
|
|
|
5495
5495
|
function Zu(e) {
|
|
5496
5496
|
return e && e.slice(0, Qu(e) + 1).replace(Ju, "");
|
|
5497
5497
|
}
|
|
5498
|
-
function
|
|
5498
|
+
function Sn(e) {
|
|
5499
5499
|
var t = typeof e;
|
|
5500
5500
|
return e != null && (t == "object" || t == "function");
|
|
5501
5501
|
}
|
|
@@ -5505,9 +5505,9 @@ function Da(e) {
|
|
|
5505
5505
|
return e;
|
|
5506
5506
|
if (Xu(e))
|
|
5507
5507
|
return Aa;
|
|
5508
|
-
if (
|
|
5508
|
+
if (Sn(e)) {
|
|
5509
5509
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
5510
|
-
e =
|
|
5510
|
+
e = Sn(t) ? t + "" : t;
|
|
5511
5511
|
}
|
|
5512
5512
|
if (typeof e != "string")
|
|
5513
5513
|
return e === 0 ? e : +e;
|
|
@@ -5522,7 +5522,7 @@ function ir(e, t, n) {
|
|
|
5522
5522
|
var a, r, s, o, l, i, f = 0, m = !1, v = !1, p = !0;
|
|
5523
5523
|
if (typeof e != "function")
|
|
5524
5524
|
throw new TypeError(ad);
|
|
5525
|
-
t = Da(t) || 0,
|
|
5525
|
+
t = Da(t) || 0, Sn(n) && (m = !!n.leading, v = "maxWait" in n, s = v ? sd(Da(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
|
|
5526
5526
|
function g(T) {
|
|
5527
5527
|
var y = a, W = r;
|
|
5528
5528
|
return a = r = void 0, f = T, o = e.apply(W, y), o;
|
|
@@ -5553,7 +5553,7 @@ function ir(e, t, n) {
|
|
|
5553
5553
|
function h() {
|
|
5554
5554
|
return l === void 0 ? o : _(Gn());
|
|
5555
5555
|
}
|
|
5556
|
-
function
|
|
5556
|
+
function S() {
|
|
5557
5557
|
var T = Gn(), y = L(T);
|
|
5558
5558
|
if (a = arguments, r = this, i = T, y) {
|
|
5559
5559
|
if (l === void 0)
|
|
@@ -5563,14 +5563,14 @@ function ir(e, t, n) {
|
|
|
5563
5563
|
}
|
|
5564
5564
|
return l === void 0 && (l = setTimeout(d, t)), o;
|
|
5565
5565
|
}
|
|
5566
|
-
return
|
|
5566
|
+
return S.cancel = O, S.flush = h, S;
|
|
5567
5567
|
}
|
|
5568
5568
|
var ld = "Expected a function";
|
|
5569
5569
|
function id(e, t, n) {
|
|
5570
5570
|
var a = !0, r = !0;
|
|
5571
5571
|
if (typeof e != "function")
|
|
5572
5572
|
throw new TypeError(ld);
|
|
5573
|
-
return
|
|
5573
|
+
return Sn(n) && (a = "leading" in n ? !!n.leading : a, r = "trailing" in n ? !!n.trailing : r), ir(e, t, {
|
|
5574
5574
|
leading: a,
|
|
5575
5575
|
maxWait: t,
|
|
5576
5576
|
trailing: r
|
|
@@ -5583,7 +5583,7 @@ function Fs(e, t, n = {}) {
|
|
|
5583
5583
|
return v ? v === p || v.contains(p) : !1;
|
|
5584
5584
|
}
|
|
5585
5585
|
function l(v, p) {
|
|
5586
|
-
return v.some((g) => o(
|
|
5586
|
+
return v.some((g) => o(te(g), p));
|
|
5587
5587
|
}
|
|
5588
5588
|
function i() {
|
|
5589
5589
|
return Array.isArray(e) ? e : [e];
|
|
@@ -5606,10 +5606,10 @@ function Fs(e, t, n = {}) {
|
|
|
5606
5606
|
document.removeEventListener("pointerdown", f, r), document.removeEventListener("click", m, r);
|
|
5607
5607
|
});
|
|
5608
5608
|
}
|
|
5609
|
-
let
|
|
5610
|
-
const Us = () => (
|
|
5611
|
-
|
|
5612
|
-
}, cd = 80, cr = /* @__PURE__ */
|
|
5609
|
+
let On = 1e5;
|
|
5610
|
+
const Us = () => (On = On + 1, On), Of = (e) => {
|
|
5611
|
+
On = e;
|
|
5612
|
+
}, cd = 80, cr = /* @__PURE__ */ ue({
|
|
5613
5613
|
name: "Popover",
|
|
5614
5614
|
__name: "Popover",
|
|
5615
5615
|
props: {
|
|
@@ -5659,9 +5659,9 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5659
5659
|
...r.popoverOptions
|
|
5660
5660
|
})), h = () => {
|
|
5661
5661
|
r.disabled || (a.value = !0, l("visible-change", !0));
|
|
5662
|
-
},
|
|
5662
|
+
}, S = () => {
|
|
5663
5663
|
a.value = !1, l("visible-change", !1);
|
|
5664
|
-
}, T = ir(h, r.openDelay), y = ir(
|
|
5664
|
+
}, T = ir(h, r.openDelay), y = ir(S, r.closeDelay), W = () => {
|
|
5665
5665
|
r.disabled || (y.cancel(), T());
|
|
5666
5666
|
}, B = () => {
|
|
5667
5667
|
T.cancel(), y();
|
|
@@ -5721,29 +5721,29 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5721
5721
|
class: "cregis-popover",
|
|
5722
5722
|
ref_key: "popoverRef",
|
|
5723
5723
|
ref: i
|
|
5724
|
-
}, Mn(
|
|
5724
|
+
}, Mn(te(p), !0)), [
|
|
5725
5725
|
F("div", gt({
|
|
5726
5726
|
class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
|
|
5727
5727
|
ref_key: "popoverTriggerRef",
|
|
5728
5728
|
ref: f
|
|
5729
|
-
}, Mn(
|
|
5729
|
+
}, Mn(te(g), !0)), [
|
|
5730
5730
|
de(U.$slots, "reference")
|
|
5731
5731
|
], 16),
|
|
5732
|
-
(w(),
|
|
5732
|
+
(w(), Oe(dr, {
|
|
5733
5733
|
to: "body",
|
|
5734
5734
|
disabled: !e.teleported
|
|
5735
5735
|
}, [
|
|
5736
|
-
|
|
5737
|
-
default:
|
|
5736
|
+
oe(mn, { name: "fade" }, {
|
|
5737
|
+
default: Ne(() => [
|
|
5738
5738
|
s.value ? Ut((w(), x("div", gt({
|
|
5739
5739
|
key: 0,
|
|
5740
5740
|
class: ["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": L.value }],
|
|
5741
5741
|
ref_key: "popoverContentRef",
|
|
5742
5742
|
ref: m,
|
|
5743
5743
|
style: d.value
|
|
5744
|
-
}, Mn(
|
|
5744
|
+
}, Mn(te(E), !0), {
|
|
5745
5745
|
onScroll: q[0] || (q[0] = //@ts-ignore
|
|
5746
|
-
(...he) =>
|
|
5746
|
+
(...he) => te(Y) && te(Y)(...he))
|
|
5747
5747
|
}), [
|
|
5748
5748
|
de(U.$slots, "default")
|
|
5749
5749
|
], 16)), [
|
|
@@ -5767,7 +5767,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5767
5767
|
}, pd = {
|
|
5768
5768
|
key: 2,
|
|
5769
5769
|
class: "cregis-select__dropdown-filter-empty"
|
|
5770
|
-
}, vd = { class: "cregis-select__dropdown-content" },
|
|
5770
|
+
}, vd = { class: "cregis-select__dropdown-content" }, Lf = /* @__PURE__ */ ue({
|
|
5771
5771
|
name: "Select",
|
|
5772
5772
|
__name: "Select",
|
|
5773
5773
|
props: {
|
|
@@ -5817,13 +5817,13 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5817
5817
|
}
|
|
5818
5818
|
}
|
|
5819
5819
|
);
|
|
5820
|
-
const
|
|
5820
|
+
const S = I(() => {
|
|
5821
5821
|
if (n.multiple)
|
|
5822
5822
|
return Array.isArray(n.modelValue) && n.modelValue.length > 0;
|
|
5823
5823
|
const $ = n.modelValue;
|
|
5824
5824
|
return $ != null && $ !== "";
|
|
5825
5825
|
}), T = I(() => !n.multiple || !Array.isArray(n.modelValue) ? 0 : n.modelValue.length), y = I(() => {
|
|
5826
|
-
if (!
|
|
5826
|
+
if (!S.value) return "";
|
|
5827
5827
|
if (n.multiple)
|
|
5828
5828
|
return n.modelValue.map((Ee) => N[E(Ee)] ?? String(Ee)).join("、");
|
|
5829
5829
|
const $ = n.modelValue;
|
|
@@ -5855,7 +5855,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5855
5855
|
$ || (G.value = "", H.value = "", m());
|
|
5856
5856
|
}
|
|
5857
5857
|
);
|
|
5858
|
-
const
|
|
5858
|
+
const k = () => {
|
|
5859
5859
|
i?.disconnect(), i = null, !(!v(n.triggerWidth) || !s.value) && (i = new ResizeObserver(() => {
|
|
5860
5860
|
p();
|
|
5861
5861
|
}), i.observe(s.value));
|
|
@@ -5864,12 +5864,12 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5864
5864
|
() => n.triggerWidth,
|
|
5865
5865
|
() => {
|
|
5866
5866
|
v(n.triggerWidth) ? dt(() => {
|
|
5867
|
-
p(),
|
|
5867
|
+
p(), k();
|
|
5868
5868
|
}) : (l.value = void 0, i?.disconnect(), i = null);
|
|
5869
5869
|
}
|
|
5870
5870
|
), Dt(() => {
|
|
5871
5871
|
v(n.triggerWidth) && dt(() => {
|
|
5872
|
-
p(),
|
|
5872
|
+
p(), k();
|
|
5873
5873
|
});
|
|
5874
5874
|
}), Je(() => {
|
|
5875
5875
|
m(), i?.disconnect();
|
|
@@ -5892,88 +5892,88 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5892
5892
|
if (n.popperWidth) return V(n.popperWidth);
|
|
5893
5893
|
const $ = n.triggerWidth;
|
|
5894
5894
|
return v($) ? l.value : typeof $ == "number" ? $ + 8 : `calc(${$} + 8px)`;
|
|
5895
|
-
}),
|
|
5895
|
+
}), ee = I(() => {
|
|
5896
5896
|
const $ = j.value;
|
|
5897
5897
|
if (!($ == null || $ === ""))
|
|
5898
5898
|
return typeof $ == "number" ? `${$ - 12}px` : `calc(${$} - 12px)`;
|
|
5899
|
-
}),
|
|
5899
|
+
}), le = I(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), _e = I(() => ({
|
|
5900
5900
|
width: V(n.triggerWidth)
|
|
5901
|
-
})), Re = I(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"),
|
|
5902
|
-
|
|
5901
|
+
})), Re = I(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ke = z(0), xe = ($) => {
|
|
5902
|
+
ke.value = $.scrollTop;
|
|
5903
5903
|
};
|
|
5904
5904
|
return ($, pe) => (w(), x("div", {
|
|
5905
|
-
class:
|
|
5905
|
+
class: Z(["cregis-select", { "is-disabled": e.disabled, "is-percent-width": v(e.triggerWidth) }])
|
|
5906
5906
|
}, [
|
|
5907
|
-
|
|
5907
|
+
oe(cr, {
|
|
5908
5908
|
ref_key: "popoverRef",
|
|
5909
5909
|
ref: r,
|
|
5910
5910
|
"preserve-content-mount": "",
|
|
5911
5911
|
"popper-width": j.value,
|
|
5912
|
-
placement:
|
|
5912
|
+
placement: le.value,
|
|
5913
5913
|
disabled: !!e.disabled,
|
|
5914
5914
|
padding: 0,
|
|
5915
5915
|
"max-popper-height": e.maxPopperHeight,
|
|
5916
5916
|
onVisibleChange: g,
|
|
5917
5917
|
onScroll: xe
|
|
5918
5918
|
}, {
|
|
5919
|
-
reference:
|
|
5919
|
+
reference: Ne(() => [
|
|
5920
5920
|
F("div", {
|
|
5921
5921
|
ref_key: "triggerRef",
|
|
5922
5922
|
ref: s,
|
|
5923
|
-
class:
|
|
5924
|
-
style:
|
|
5923
|
+
class: Z(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
|
|
5924
|
+
style: ce(_e.value)
|
|
5925
5925
|
}, [
|
|
5926
5926
|
F("div", {
|
|
5927
|
-
class:
|
|
5927
|
+
class: Z(["cregis-select__trigger-label", { "is-multiple": e.multiple }])
|
|
5928
5928
|
}, [
|
|
5929
|
-
|
|
5929
|
+
S.value ? de($.$slots, "label", {
|
|
5930
5930
|
key: 0,
|
|
5931
5931
|
modelValue: e.modelValue,
|
|
5932
5932
|
displayText: y.value,
|
|
5933
5933
|
selectedCount: T.value,
|
|
5934
5934
|
placeholder: e.placeholder,
|
|
5935
|
-
hasSelection:
|
|
5935
|
+
hasSelection: S.value
|
|
5936
5936
|
}, () => [
|
|
5937
5937
|
F("p", ud, J(y.value), 1),
|
|
5938
5938
|
e.multiple ? (w(), x("span", dd, J(T.value), 1)) : X("", !0)
|
|
5939
5939
|
]) : (w(), x("p", fd, J(e.placeholder), 1))
|
|
5940
5940
|
], 2),
|
|
5941
5941
|
F("span", {
|
|
5942
|
-
class:
|
|
5942
|
+
class: Z(["cregis-select__icon", { "is-open": o.value }])
|
|
5943
5943
|
}, [
|
|
5944
|
-
|
|
5944
|
+
oe(te(fr), {
|
|
5945
5945
|
size: Re.value,
|
|
5946
5946
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
|
|
5947
5947
|
}, null, 8, ["size", "color"])
|
|
5948
5948
|
], 2)
|
|
5949
5949
|
], 6)
|
|
5950
5950
|
]),
|
|
5951
|
-
default:
|
|
5951
|
+
default: Ne(() => [
|
|
5952
5952
|
F("div", {
|
|
5953
|
-
class:
|
|
5953
|
+
class: Z(["cregis-select__dropdown", { "is-empty": h.value }])
|
|
5954
5954
|
}, [
|
|
5955
|
-
h.value ? (w(), x("p", md, J(e.noDataText ||
|
|
5955
|
+
h.value ? (w(), x("p", md, J(e.noDataText || te(Se)("select.noData")), 1)) : X("", !0),
|
|
5956
5956
|
e.filterable && !h.value ? (w(), x("div", {
|
|
5957
5957
|
key: 1,
|
|
5958
|
-
class:
|
|
5958
|
+
class: Z(["cregis-select__dropdown-filter", { "backdrop-fixed-header": ke.value > 10 }])
|
|
5959
5959
|
}, [
|
|
5960
|
-
|
|
5960
|
+
oe(Ls, {
|
|
5961
5961
|
modelValue: G.value,
|
|
5962
5962
|
"onUpdate:modelValue": pe[0] || (pe[0] = (Ee) => G.value = Ee),
|
|
5963
|
-
placeholder: e.searchText ||
|
|
5964
|
-
width:
|
|
5963
|
+
placeholder: e.searchText || te(Se)("select.search"),
|
|
5964
|
+
width: ee.value,
|
|
5965
5965
|
size: "small",
|
|
5966
5966
|
clearable: "",
|
|
5967
5967
|
onInput: A,
|
|
5968
5968
|
onClear: R
|
|
5969
5969
|
}, {
|
|
5970
|
-
prefix:
|
|
5971
|
-
|
|
5970
|
+
prefix: Ne(() => [
|
|
5971
|
+
oe(te(Va), { size: "14px" })
|
|
5972
5972
|
]),
|
|
5973
5973
|
_: 1
|
|
5974
5974
|
}, 8, ["modelValue", "placeholder", "width"])
|
|
5975
5975
|
], 2)) : X("", !0),
|
|
5976
|
-
q.value ? (w(), x("p", pd, J(e.noMatchText ||
|
|
5976
|
+
q.value ? (w(), x("p", pd, J(e.noMatchText || te(Se)("select.noMatch")), 1)) : X("", !0),
|
|
5977
5977
|
F("div", vd, [
|
|
5978
5978
|
de($.$slots, "default")
|
|
5979
5979
|
])
|
|
@@ -5986,7 +5986,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5986
5986
|
}), gd = ["aria-selected"], hd = {
|
|
5987
5987
|
key: 1,
|
|
5988
5988
|
class: "cregis-select__option-content"
|
|
5989
|
-
},
|
|
5989
|
+
}, Cf = /* @__PURE__ */ ue({
|
|
5990
5990
|
name: "Option",
|
|
5991
5991
|
__name: "Option",
|
|
5992
5992
|
props: {
|
|
@@ -5996,7 +5996,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
5996
5996
|
filterText: {}
|
|
5997
5997
|
},
|
|
5998
5998
|
setup(e) {
|
|
5999
|
-
const t = e, n =
|
|
5999
|
+
const t = e, n = In(Ws, null);
|
|
6000
6000
|
let a;
|
|
6001
6001
|
const r = () => t.filterText ?? t.label, s = () => {
|
|
6002
6002
|
a?.(), n && (a = n.registerOption(t.value, t.label, r()));
|
|
@@ -6011,7 +6011,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6011
6011
|
return p ? r().toLowerCase().includes(p) : !0;
|
|
6012
6012
|
});
|
|
6013
6013
|
return (p, g) => Ut((w(), x("div", {
|
|
6014
|
-
class:
|
|
6014
|
+
class: Z(["cregis-select__option", {
|
|
6015
6015
|
"is-selected": l.value && !o.value,
|
|
6016
6016
|
"is-disabled": e.disabled,
|
|
6017
6017
|
"cregis-select__option--multiple": o.value
|
|
@@ -6020,10 +6020,10 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6020
6020
|
"aria-selected": l.value,
|
|
6021
6021
|
onClick: i
|
|
6022
6022
|
}, [
|
|
6023
|
-
o.value ? (w(),
|
|
6023
|
+
o.value ? (w(), Oe(Cr, {
|
|
6024
6024
|
key: 0,
|
|
6025
6025
|
"model-value": l.value,
|
|
6026
|
-
disabled: e.disabled || !!
|
|
6026
|
+
disabled: e.disabled || !!te(n)?.disabled.value,
|
|
6027
6027
|
onClick: g[0] || (g[0] = Wt(() => {
|
|
6028
6028
|
}, ["stop"])),
|
|
6029
6029
|
"onUpdate:modelValue": f
|
|
@@ -6065,7 +6065,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6065
6065
|
}, Ld = { class: "cregis-cascader__suboption-amount-container" }, Cd = {
|
|
6066
6066
|
key: 0,
|
|
6067
6067
|
class: "cregis-cascader__suboption-amount"
|
|
6068
|
-
}, wd = { class: "cregis-cascader__suboption-panel" },
|
|
6068
|
+
}, wd = { class: "cregis-cascader__suboption-panel" }, Sd = ["onClick"], kd = ["onClick"], wf = /* @__PURE__ */ ue({
|
|
6069
6069
|
name: "Cascader",
|
|
6070
6070
|
__name: "Cascader",
|
|
6071
6071
|
props: {
|
|
@@ -6124,7 +6124,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6124
6124
|
}, O = (c) => (c.filterText ?? c.label).toLowerCase(), h = (c) => {
|
|
6125
6125
|
const u = N.value;
|
|
6126
6126
|
return !u || O(c).includes(u) ? !0 : (c.children ?? []).some((P) => O(P).includes(u));
|
|
6127
|
-
},
|
|
6127
|
+
}, S = (c, u) => {
|
|
6128
6128
|
const b = N.value;
|
|
6129
6129
|
return !b || O(c).includes(b) ? !0 : O(u).includes(b);
|
|
6130
6130
|
}, T = I(() => n.options.filter((c) => h(c))), y = I(() => n.options.length === 0), W = I(() => (N.value, n.options.some((c) => h(c)))), B = I(
|
|
@@ -6180,13 +6180,13 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6180
6180
|
H.value !== null && H.value.value !== c && (H.value = null);
|
|
6181
6181
|
}
|
|
6182
6182
|
);
|
|
6183
|
-
const q = I(() => U.value.level > 0), he = I(() => U.value.label),
|
|
6183
|
+
const q = I(() => U.value.level > 0), he = I(() => U.value.label), k = I(() => n.modelValue), A = I(() => he.value), R = I(() => U.value.level), V = I(() => U.value.primary), j = I(() => U.value.sub), ee = (c) => (c.children?.length ?? 0) > 0, le = (c) => n.modelValue === c, _e = (c) => {
|
|
6184
6184
|
const u = n.modelValue;
|
|
6185
6185
|
return u == null || u === "" ? !1 : (c.children ?? []).some((b) => b.value === u);
|
|
6186
6186
|
}, Re = (c, u) => {
|
|
6187
6187
|
n.disabled || c.disabled || u.disabled || (H.value = { value: u.value, label: u.label, level: 2, primary: c, sub: u }, a("update:modelValue", u.value), a("change", u.value), f(), r.value?.close());
|
|
6188
|
-
},
|
|
6189
|
-
n.disabled || c.disabled ||
|
|
6188
|
+
}, ke = (c) => {
|
|
6189
|
+
n.disabled || c.disabled || ee(c) || (H.value = { value: c.value, label: c.label, level: 1, primary: c }, a("update:modelValue", c.value), a("change", c.value), f(), r.value?.close());
|
|
6190
6190
|
}, xe = (c) => typeof c == "number" ? `${c}px` : c, $ = I(() => {
|
|
6191
6191
|
if (n.popperWidth !== void 0 && n.popperWidth !== null && n.popperWidth !== "")
|
|
6192
6192
|
return xe(n.popperWidth);
|
|
@@ -6202,9 +6202,9 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6202
6202
|
Ue.value = u.scrollTop;
|
|
6203
6203
|
}, pt = [-16, -8];
|
|
6204
6204
|
return (c, u) => (w(), x("div", {
|
|
6205
|
-
class:
|
|
6205
|
+
class: Z(["cregis-cascader", { "is-disabled": e.disabled }])
|
|
6206
6206
|
}, [
|
|
6207
|
-
|
|
6207
|
+
oe(cr, {
|
|
6208
6208
|
ref_key: "popoverRef",
|
|
6209
6209
|
ref: r,
|
|
6210
6210
|
"preserve-content-mount": "",
|
|
@@ -6215,10 +6215,10 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6215
6215
|
padding: 0,
|
|
6216
6216
|
onVisibleChange: G
|
|
6217
6217
|
}, {
|
|
6218
|
-
reference:
|
|
6218
|
+
reference: Ne(() => [
|
|
6219
6219
|
c.$slots.trigger ? de(c.$slots, "trigger", {
|
|
6220
6220
|
key: 0,
|
|
6221
|
-
modelValue:
|
|
6221
|
+
modelValue: k.value,
|
|
6222
6222
|
selectedLabel: A.value,
|
|
6223
6223
|
level: R.value,
|
|
6224
6224
|
primaryOption: V.value,
|
|
@@ -6229,13 +6229,13 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6229
6229
|
disabled: !!e.disabled
|
|
6230
6230
|
}) : (w(), x("div", {
|
|
6231
6231
|
key: 1,
|
|
6232
|
-
class:
|
|
6233
|
-
style:
|
|
6232
|
+
class: Z(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
|
|
6233
|
+
style: ce(Ze.value)
|
|
6234
6234
|
}, [
|
|
6235
6235
|
F("div", _d, [
|
|
6236
6236
|
q.value ? de(c.$slots, "label", {
|
|
6237
6237
|
key: 0,
|
|
6238
|
-
modelValue:
|
|
6238
|
+
modelValue: k.value,
|
|
6239
6239
|
selectedLabel: A.value,
|
|
6240
6240
|
level: R.value,
|
|
6241
6241
|
primaryOption: V.value,
|
|
@@ -6247,50 +6247,50 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6247
6247
|
]) : (w(), x("p", yd, J(e.placeholder), 1))
|
|
6248
6248
|
]),
|
|
6249
6249
|
F("span", {
|
|
6250
|
-
class:
|
|
6250
|
+
class: Z(["cregis-cascader__icon", { "is-open": s.value }])
|
|
6251
6251
|
}, [
|
|
6252
|
-
|
|
6252
|
+
oe(te(fr), {
|
|
6253
6253
|
size: it.value,
|
|
6254
6254
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
|
|
6255
6255
|
}, null, 8, ["size", "color"])
|
|
6256
6256
|
], 2)
|
|
6257
6257
|
], 6))
|
|
6258
6258
|
]),
|
|
6259
|
-
default:
|
|
6259
|
+
default: Ne(() => [
|
|
6260
6260
|
F("div", {
|
|
6261
|
-
class:
|
|
6262
|
-
style:
|
|
6261
|
+
class: Z(["cregis-cascader__dropdown", { "is-empty": y.value }]),
|
|
6262
|
+
style: ce(Ie.value),
|
|
6263
6263
|
onScroll: et
|
|
6264
6264
|
}, [
|
|
6265
|
-
y.value ? (w(), x("p", Ed, J(e.noDataText ||
|
|
6265
|
+
y.value ? (w(), x("p", Ed, J(e.noDataText || te(Se)("cascader.noData")), 1)) : X("", !0),
|
|
6266
6266
|
e.filterable && !y.value ? (w(), x("div", {
|
|
6267
6267
|
key: 1,
|
|
6268
|
-
class:
|
|
6268
|
+
class: Z(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": Ue.value > 10 }])
|
|
6269
6269
|
}, [
|
|
6270
|
-
|
|
6270
|
+
oe(Ls, {
|
|
6271
6271
|
modelValue: g.value,
|
|
6272
6272
|
"onUpdate:modelValue": u[0] || (u[0] = (b) => g.value = b),
|
|
6273
|
-
placeholder: e.searchText ||
|
|
6273
|
+
placeholder: e.searchText || te(Se)("select.search"),
|
|
6274
6274
|
width: Ee.value,
|
|
6275
6275
|
size: "small",
|
|
6276
6276
|
clearable: "",
|
|
6277
6277
|
onInput: d,
|
|
6278
6278
|
onClear: _
|
|
6279
6279
|
}, {
|
|
6280
|
-
prefix:
|
|
6281
|
-
|
|
6280
|
+
prefix: Ne(() => [
|
|
6281
|
+
oe(te(Va), { size: "14px" })
|
|
6282
6282
|
]),
|
|
6283
6283
|
_: 1
|
|
6284
6284
|
}, 8, ["modelValue", "placeholder", "width"])
|
|
6285
6285
|
], 2)) : X("", !0),
|
|
6286
|
-
B.value ? (w(), x("p", Td, J(e.noMatchText ||
|
|
6286
|
+
B.value ? (w(), x("p", Td, J(e.noMatchText || te(Se)("cascader.noMatch")), 1)) : X("", !0),
|
|
6287
6287
|
F("ul", Nd, [
|
|
6288
6288
|
(w(!0), x(Be, null, vt(T.value, (b, P) => (w(), x("li", {
|
|
6289
6289
|
key: b.value,
|
|
6290
|
-
class:
|
|
6290
|
+
class: Z(["cregis-cascader__dropdown-item", { "is-disabled": b.disabled, "is-sub-open": o.value === b.value }])
|
|
6291
6291
|
}, [
|
|
6292
|
-
|
|
6293
|
-
|
|
6292
|
+
ee(b) ? (w(), x("div", Od, [
|
|
6293
|
+
oe(cr, {
|
|
6294
6294
|
ref_for: !0,
|
|
6295
6295
|
ref: (Q) => i(b.value, Q),
|
|
6296
6296
|
trigger: "hover",
|
|
@@ -6302,15 +6302,15 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6302
6302
|
disabled: !!b.disabled || !!e.disabled,
|
|
6303
6303
|
onVisibleChange: (Q) => m(b.value, Q)
|
|
6304
6304
|
}, {
|
|
6305
|
-
reference:
|
|
6305
|
+
reference: Ne(() => [
|
|
6306
6306
|
F("div", {
|
|
6307
|
-
class:
|
|
6307
|
+
class: Z(["cregis-cascader__suboption-trigger", {
|
|
6308
6308
|
"is-disabled": b.disabled,
|
|
6309
6309
|
"is-parent-active": _e(b)
|
|
6310
6310
|
}])
|
|
6311
6311
|
}, [
|
|
6312
6312
|
de(c.$slots, "option", {
|
|
6313
|
-
modelValue:
|
|
6313
|
+
modelValue: k.value,
|
|
6314
6314
|
selectedLabel: A.value,
|
|
6315
6315
|
level: R.value,
|
|
6316
6316
|
primaryOption: V.value,
|
|
@@ -6318,33 +6318,33 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6318
6318
|
option: b,
|
|
6319
6319
|
index: P,
|
|
6320
6320
|
disabled: !!b.disabled,
|
|
6321
|
-
selected:
|
|
6321
|
+
selected: le(b.value),
|
|
6322
6322
|
isParentOfSelected: _e(b)
|
|
6323
6323
|
}, () => [
|
|
6324
6324
|
F("p", null, J(b.label), 1)
|
|
6325
6325
|
]),
|
|
6326
6326
|
F("div", Ld, [
|
|
6327
6327
|
e.showSubOptionAmount ? (w(), x("div", Cd, J(b.children.length), 1)) : X("", !0),
|
|
6328
|
-
|
|
6328
|
+
oe(te(no), {
|
|
6329
6329
|
size: "14px",
|
|
6330
6330
|
color: "currentColor"
|
|
6331
6331
|
})
|
|
6332
6332
|
])
|
|
6333
6333
|
], 2)
|
|
6334
6334
|
]),
|
|
6335
|
-
default:
|
|
6335
|
+
default: Ne(() => [
|
|
6336
6336
|
F("div", wd, [
|
|
6337
6337
|
(w(!0), x(Be, null, vt(b.children, (Q, ve) => Ut((w(), x("div", {
|
|
6338
6338
|
key: Q.value,
|
|
6339
|
-
class:
|
|
6340
|
-
"is-active":
|
|
6339
|
+
class: Z(["cregis-cascader__suboption-row", {
|
|
6340
|
+
"is-active": le(Q.value),
|
|
6341
6341
|
"is-disabled": Q.disabled
|
|
6342
6342
|
}]),
|
|
6343
6343
|
role: "menuitem",
|
|
6344
6344
|
onClick: (ne) => Re(b, Q)
|
|
6345
6345
|
}, [
|
|
6346
6346
|
de(c.$slots, "subOption", {
|
|
6347
|
-
modelValue:
|
|
6347
|
+
modelValue: k.value,
|
|
6348
6348
|
selectedLabel: A.value,
|
|
6349
6349
|
level: R.value,
|
|
6350
6350
|
primaryOption: V.value,
|
|
@@ -6353,13 +6353,13 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6353
6353
|
index: ve,
|
|
6354
6354
|
parent: b,
|
|
6355
6355
|
parentIndex: P,
|
|
6356
|
-
selected:
|
|
6356
|
+
selected: le(Q.value),
|
|
6357
6357
|
disabled: !!Q.disabled
|
|
6358
6358
|
}, () => [
|
|
6359
6359
|
qe(J(Q.label), 1)
|
|
6360
6360
|
])
|
|
6361
|
-
], 10,
|
|
6362
|
-
[An,
|
|
6361
|
+
], 10, Sd)), [
|
|
6362
|
+
[An, S(b, Q)]
|
|
6363
6363
|
])), 128))
|
|
6364
6364
|
])
|
|
6365
6365
|
]),
|
|
@@ -6368,10 +6368,10 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6368
6368
|
])) : (w(), x("div", {
|
|
6369
6369
|
key: 1,
|
|
6370
6370
|
class: "cregis-cascader__leaf-only",
|
|
6371
|
-
onClick: (Q) =>
|
|
6371
|
+
onClick: (Q) => ke(b)
|
|
6372
6372
|
}, [
|
|
6373
6373
|
de(c.$slots, "option", {
|
|
6374
|
-
modelValue:
|
|
6374
|
+
modelValue: k.value,
|
|
6375
6375
|
selectedLabel: A.value,
|
|
6376
6376
|
level: R.value,
|
|
6377
6377
|
primaryOption: V.value,
|
|
@@ -6379,12 +6379,12 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6379
6379
|
option: b,
|
|
6380
6380
|
index: P,
|
|
6381
6381
|
disabled: !!b.disabled,
|
|
6382
|
-
selected:
|
|
6382
|
+
selected: le(b.value),
|
|
6383
6383
|
isParentOfSelected: !1
|
|
6384
6384
|
}, () => [
|
|
6385
6385
|
F("p", null, J(b.label), 1)
|
|
6386
6386
|
])
|
|
6387
|
-
], 8,
|
|
6387
|
+
], 8, kd))
|
|
6388
6388
|
], 2))), 128))
|
|
6389
6389
|
])
|
|
6390
6390
|
], 38)
|
|
@@ -6393,7 +6393,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6393
6393
|
}, 8, ["popper-width", "placement", "offset", "disabled"])
|
|
6394
6394
|
], 2));
|
|
6395
6395
|
}
|
|
6396
|
-
}),
|
|
6396
|
+
}), Sf = /* @__PURE__ */ ue({
|
|
6397
6397
|
name: "Tag",
|
|
6398
6398
|
__name: "Tag",
|
|
6399
6399
|
props: {
|
|
@@ -6403,14 +6403,14 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6403
6403
|
},
|
|
6404
6404
|
setup(e) {
|
|
6405
6405
|
return (t, n) => (w(), x("div", {
|
|
6406
|
-
class:
|
|
6406
|
+
class: Z(["cregis-tag", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`]])
|
|
6407
6407
|
}, [
|
|
6408
6408
|
de(t.$slots, "default", {}, () => [
|
|
6409
6409
|
qe(J(e.text), 1)
|
|
6410
6410
|
])
|
|
6411
6411
|
], 2));
|
|
6412
6412
|
}
|
|
6413
|
-
}),
|
|
6413
|
+
}), kf = /* @__PURE__ */ ue({
|
|
6414
6414
|
name: "Switch",
|
|
6415
6415
|
__name: "Switch",
|
|
6416
6416
|
props: {
|
|
@@ -6444,7 +6444,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6444
6444
|
a("change", l);
|
|
6445
6445
|
}
|
|
6446
6446
|
), (l, i) => (w(), x("div", {
|
|
6447
|
-
class:
|
|
6447
|
+
class: Z(["cregis-switch", [
|
|
6448
6448
|
`cregis-switch--${e.size}`,
|
|
6449
6449
|
{ "is-checked": s.value, "is-disabled": e.disabled || r.value }
|
|
6450
6450
|
]]),
|
|
@@ -6453,7 +6453,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6453
6453
|
F("div", { class: "cregis-switch__circle" }, null, -1)
|
|
6454
6454
|
])], 2));
|
|
6455
6455
|
}
|
|
6456
|
-
}), Id = { class: "cregis-badge__wrapper" },
|
|
6456
|
+
}), Id = { class: "cregis-badge__wrapper" }, If = /* @__PURE__ */ ue({
|
|
6457
6457
|
name: "Badge",
|
|
6458
6458
|
__name: "Badge",
|
|
6459
6459
|
props: {
|
|
@@ -6475,8 +6475,8 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6475
6475
|
return (s, o) => (w(), x("div", Id, [
|
|
6476
6476
|
e.hidden ? X("", !0) : (w(), x("div", {
|
|
6477
6477
|
key: 0,
|
|
6478
|
-
class:
|
|
6479
|
-
style:
|
|
6478
|
+
class: Z(["cregis-badge", [`cregis-badge--${e.type}`, { "cregis-badge--dot": e.isDot }]]),
|
|
6479
|
+
style: ce(r.value)
|
|
6480
6480
|
}, J(e.isDot ? "" : Number(e.value) > e.max ? `${e.max}+` : e.value), 7)),
|
|
6481
6481
|
de(s.$slots, "default")
|
|
6482
6482
|
]));
|
|
@@ -6484,7 +6484,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6484
6484
|
}), Ad = ["accept", "disabled"], Dd = ["src"], xd = {
|
|
6485
6485
|
key: 3,
|
|
6486
6486
|
class: "cregis-upload__mask"
|
|
6487
|
-
},
|
|
6487
|
+
}, Af = /* @__PURE__ */ ue({
|
|
6488
6488
|
name: "Upload",
|
|
6489
6489
|
__name: "Upload",
|
|
6490
6490
|
props: {
|
|
@@ -6517,10 +6517,10 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6517
6517
|
}, v = (d, _) => {
|
|
6518
6518
|
const O = _.split(",").map((T) => T.trim()).filter(Boolean);
|
|
6519
6519
|
if (!O.length) return !0;
|
|
6520
|
-
const h = m(d.name),
|
|
6520
|
+
const h = m(d.name), S = d.type.toLowerCase();
|
|
6521
6521
|
return O.some((T) => {
|
|
6522
6522
|
const y = T.toLowerCase();
|
|
6523
|
-
return y.startsWith(".") ? h === y.slice(1) : y.includes("/") ? y.endsWith("/*") ?
|
|
6523
|
+
return y.startsWith(".") ? h === y.slice(1) : y.includes("/") ? y.endsWith("/*") ? S.startsWith(y.slice(0, -1)) : S === y : h === y;
|
|
6524
6524
|
});
|
|
6525
6525
|
}, p = (d) => {
|
|
6526
6526
|
d.value = "";
|
|
@@ -6530,11 +6530,11 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6530
6530
|
const _ = d.target, O = _.files?.[0];
|
|
6531
6531
|
if (!O) return;
|
|
6532
6532
|
if (n.accept && !v(O, n.accept)) {
|
|
6533
|
-
ya(n.exceedAcceptTip ??
|
|
6533
|
+
ya(n.exceedAcceptTip ?? Se("upload.formatError")), p(_);
|
|
6534
6534
|
return;
|
|
6535
6535
|
}
|
|
6536
6536
|
if (n.size !== void 0 && O.size > n.size * 1024 * 1024) {
|
|
6537
|
-
ya(n.exceedSizeTip ??
|
|
6537
|
+
ya(n.exceedSizeTip ?? Se("upload.sizeError", { size: n.size })), p(_);
|
|
6538
6538
|
return;
|
|
6539
6539
|
}
|
|
6540
6540
|
a("update:modelValue", "");
|
|
@@ -6559,10 +6559,10 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6559
6559
|
return Je(() => {
|
|
6560
6560
|
g && clearInterval(g);
|
|
6561
6561
|
}), (d, _) => (w(), x("div", {
|
|
6562
|
-
class:
|
|
6563
|
-
style:
|
|
6562
|
+
class: Z(["cregis-upload", { "cregis-upload--disabled": L.value }]),
|
|
6563
|
+
style: ce(f.value)
|
|
6564
6564
|
}, [
|
|
6565
|
-
i.value ? X("", !0) : (w(),
|
|
6565
|
+
i.value ? X("", !0) : (w(), Oe(te(Mr), {
|
|
6566
6566
|
key: 0,
|
|
6567
6567
|
size: "16px",
|
|
6568
6568
|
color: "var(--stroke-base-secondary)"
|
|
@@ -6577,7 +6577,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6577
6577
|
r.value > 0 && r.value < 100 ? (w(), x("div", {
|
|
6578
6578
|
key: 1,
|
|
6579
6579
|
class: "cregis-upload__progress",
|
|
6580
|
-
style:
|
|
6580
|
+
style: ce(N.value)
|
|
6581
6581
|
}, null, 4)) : X("", !0),
|
|
6582
6582
|
i.value ? (w(), x("img", {
|
|
6583
6583
|
key: 2,
|
|
@@ -6585,7 +6585,7 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6585
6585
|
alt: ""
|
|
6586
6586
|
}, null, 8, Dd)) : X("", !0),
|
|
6587
6587
|
i.value ? (w(), x("div", xd, [
|
|
6588
|
-
|
|
6588
|
+
oe(te(Mr), {
|
|
6589
6589
|
size: "16px",
|
|
6590
6590
|
color: "var(--text-same-white-primary)"
|
|
6591
6591
|
})
|
|
@@ -6593,12 +6593,12 @@ const Us = () => (Nn = Nn + 1, Nn), Tf = (e) => {
|
|
|
6593
6593
|
], 6));
|
|
6594
6594
|
}
|
|
6595
6595
|
});
|
|
6596
|
-
let
|
|
6596
|
+
let an = 0, Bs = "";
|
|
6597
6597
|
const Pd = () => {
|
|
6598
|
-
|
|
6598
|
+
an === 0 && (Bs = document.body.style.overflow, document.body.style.overflow = "hidden"), an++;
|
|
6599
6599
|
}, xa = () => {
|
|
6600
|
-
|
|
6601
|
-
}, kn = /* @__PURE__ */
|
|
6600
|
+
an <= 0 || (an--, an === 0 && (document.body.style.overflow = Bs));
|
|
6601
|
+
}, kn = /* @__PURE__ */ ue({
|
|
6602
6602
|
name: "Dialog",
|
|
6603
6603
|
__name: "Dialog",
|
|
6604
6604
|
props: {
|
|
@@ -6633,19 +6633,19 @@ const Pd = () => {
|
|
|
6633
6633
|
}, m = () => {
|
|
6634
6634
|
a("after-leave");
|
|
6635
6635
|
};
|
|
6636
|
-
return (v, p) => (w(),
|
|
6637
|
-
|
|
6636
|
+
return (v, p) => (w(), Oe(dr, { to: "body" }, [
|
|
6637
|
+
oe(mn, {
|
|
6638
6638
|
name: "cregis-dialog-fade",
|
|
6639
6639
|
onAfterLeave: m
|
|
6640
6640
|
}, {
|
|
6641
|
-
default:
|
|
6641
|
+
default: Ne(() => [
|
|
6642
6642
|
e.modelValue ? (w(), x("div", {
|
|
6643
6643
|
key: 0,
|
|
6644
|
-
class:
|
|
6644
|
+
class: Z(["cregis-dialog__wrapper", {
|
|
6645
6645
|
"cregis-dialog__wrapper--center": e.alignCenter,
|
|
6646
6646
|
"cregis-dialog__wrapper--no-modal": !e.modal
|
|
6647
6647
|
}]),
|
|
6648
|
-
style:
|
|
6648
|
+
style: ce(l.value)
|
|
6649
6649
|
}, [
|
|
6650
6650
|
e.modal ? (w(), x("div", {
|
|
6651
6651
|
key: 0,
|
|
@@ -6654,7 +6654,7 @@ const Pd = () => {
|
|
|
6654
6654
|
})) : X("", !0),
|
|
6655
6655
|
F("div", {
|
|
6656
6656
|
class: "cregis-dialog",
|
|
6657
|
-
style:
|
|
6657
|
+
style: ce(o.value),
|
|
6658
6658
|
onClick: p[0] || (p[0] = Wt(() => {
|
|
6659
6659
|
}, ["stop"]))
|
|
6660
6660
|
}, [
|
|
@@ -6663,7 +6663,7 @@ const Pd = () => {
|
|
|
6663
6663
|
class: "cregis-dialog__close",
|
|
6664
6664
|
onClick: i
|
|
6665
6665
|
}, [
|
|
6666
|
-
|
|
6666
|
+
oe(te(Fa), {
|
|
6667
6667
|
size: "10px",
|
|
6668
6668
|
color: "var(--material-same-white-primary)"
|
|
6669
6669
|
})
|
|
@@ -6682,7 +6682,7 @@ const Pd = () => {
|
|
|
6682
6682
|
}, Vd = {
|
|
6683
6683
|
key: 1,
|
|
6684
6684
|
class: "cregis-dialog-confirm__message"
|
|
6685
|
-
}, Fd = { class: "cregis-dialog-confirm__footer" }, Ud = /* @__PURE__ */
|
|
6685
|
+
}, Fd = { class: "cregis-dialog-confirm__footer" }, Ud = /* @__PURE__ */ ue({
|
|
6686
6686
|
name: "ConfirmDialog",
|
|
6687
6687
|
__name: "ConfirmDialog",
|
|
6688
6688
|
props: {
|
|
@@ -6721,7 +6721,7 @@ const Pd = () => {
|
|
|
6721
6721
|
};
|
|
6722
6722
|
return dt(() => {
|
|
6723
6723
|
r.value = !0;
|
|
6724
|
-
}), (p, g) => (w(),
|
|
6724
|
+
}), (p, g) => (w(), Oe(kn, {
|
|
6725
6725
|
modelValue: r.value,
|
|
6726
6726
|
"onUpdate:modelValue": g[0] || (g[0] = (E) => r.value = E),
|
|
6727
6727
|
width: e.width,
|
|
@@ -6730,13 +6730,13 @@ const Pd = () => {
|
|
|
6730
6730
|
"lock-scroll": e.lockScroll,
|
|
6731
6731
|
onAfterLeave: v
|
|
6732
6732
|
}, {
|
|
6733
|
-
default:
|
|
6733
|
+
default: Ne(() => [
|
|
6734
6734
|
F("div", Rd, [
|
|
6735
6735
|
F("div", $d, [
|
|
6736
6736
|
F("div", {
|
|
6737
|
-
class:
|
|
6737
|
+
class: Z(`cregis-dialog-confirm__icon cregis-dialog-confirm__icon--${e.type}`)
|
|
6738
6738
|
}, [
|
|
6739
|
-
(w(),
|
|
6739
|
+
(w(), Oe(sn(l.value.component), {
|
|
6740
6740
|
"stroke-width": 3.4,
|
|
6741
6741
|
size: "24px",
|
|
6742
6742
|
color: l.value.color
|
|
@@ -6746,19 +6746,19 @@ const Pd = () => {
|
|
|
6746
6746
|
e.title ? (w(), x("div", Md, J(e.title), 1)) : X("", !0),
|
|
6747
6747
|
e.message ? (w(), x("div", Vd, J(e.message), 1)) : X("", !0),
|
|
6748
6748
|
F("div", Fd, [
|
|
6749
|
-
e.showConfirmButton ? (w(),
|
|
6749
|
+
e.showConfirmButton ? (w(), Oe(Ft, {
|
|
6750
6750
|
key: 0,
|
|
6751
6751
|
type: "foreground",
|
|
6752
6752
|
block: "",
|
|
6753
6753
|
loading: s.value === "confirm",
|
|
6754
6754
|
onClick: f
|
|
6755
6755
|
}, {
|
|
6756
|
-
default:
|
|
6757
|
-
qe(J(e.confirmButtonText ||
|
|
6756
|
+
default: Ne(() => [
|
|
6757
|
+
qe(J(e.confirmButtonText || te(Se)("dialog.confirm")), 1)
|
|
6758
6758
|
]),
|
|
6759
6759
|
_: 1
|
|
6760
6760
|
}, 8, ["loading"])) : X("", !0),
|
|
6761
|
-
e.showCancelButton ? (w(),
|
|
6761
|
+
e.showCancelButton ? (w(), Oe(Ft, {
|
|
6762
6762
|
key: 1,
|
|
6763
6763
|
type: "secondary",
|
|
6764
6764
|
text: "",
|
|
@@ -6766,8 +6766,8 @@ const Pd = () => {
|
|
|
6766
6766
|
loading: s.value === "cancel",
|
|
6767
6767
|
onClick: m
|
|
6768
6768
|
}, {
|
|
6769
|
-
default:
|
|
6770
|
-
qe(J(e.cancelButtonText ||
|
|
6769
|
+
default: Ne(() => [
|
|
6770
|
+
qe(J(e.cancelButtonText || te(Se)("dialog.cancel")), 1)
|
|
6771
6771
|
]),
|
|
6772
6772
|
_: 1
|
|
6773
6773
|
}, 8, ["loading"])) : X("", !0)
|
|
@@ -6816,51 +6816,52 @@ Hs.install = (e) => {
|
|
|
6816
6816
|
e.component(kn.name, kn);
|
|
6817
6817
|
};
|
|
6818
6818
|
Hs.confirm = Bd;
|
|
6819
|
-
const js = Symbol("TIMELINE_KEY"),
|
|
6819
|
+
const Hd = "var(--material-card-deep)", jd = "var(--stroke-outline-subtle)", js = Symbol("TIMELINE_KEY"), zd = { class: "cregis-timeline" }, Df = /* @__PURE__ */ ue({
|
|
6820
6820
|
name: "Timeline",
|
|
6821
6821
|
__name: "Timeline",
|
|
6822
6822
|
props: {
|
|
6823
6823
|
dotSize: { default: 8 },
|
|
6824
|
-
|
|
6825
|
-
lineColor: { default: "var(--stroke-divider-page)" },
|
|
6824
|
+
activeColor: { default: "var(--text-brand-primary)" },
|
|
6826
6825
|
lineWidth: { default: 2 }
|
|
6827
6826
|
},
|
|
6828
6827
|
setup(e) {
|
|
6829
6828
|
const t = e;
|
|
6830
6829
|
return ur(js, {
|
|
6831
|
-
dotSize:
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
}), (n, a) => (w(), x("div", Hd, [
|
|
6830
|
+
dotSize: En(t, "dotSize"),
|
|
6831
|
+
activeColor: En(t, "activeColor"),
|
|
6832
|
+
lineWidth: En(t, "lineWidth")
|
|
6833
|
+
}), (n, a) => (w(), x("div", zd, [
|
|
6836
6834
|
de(n.$slots, "default")
|
|
6837
6835
|
]));
|
|
6838
6836
|
}
|
|
6839
|
-
}),
|
|
6837
|
+
}), Gd = {
|
|
6840
6838
|
key: 0,
|
|
6841
6839
|
class: "cregis-timeline-item__title"
|
|
6842
|
-
},
|
|
6840
|
+
}, xf = /* @__PURE__ */ ue({
|
|
6843
6841
|
name: "TimelineItem",
|
|
6844
6842
|
__name: "TimelineItem",
|
|
6845
6843
|
props: {
|
|
6844
|
+
active: { type: Boolean, default: !1 },
|
|
6846
6845
|
dotSize: {},
|
|
6847
|
-
|
|
6846
|
+
activeColor: {},
|
|
6848
6847
|
lineWidth: {},
|
|
6849
6848
|
contentHoverable: { type: Boolean, default: !0 }
|
|
6850
6849
|
},
|
|
6851
6850
|
setup(e) {
|
|
6852
|
-
const t = e, n =
|
|
6851
|
+
const t = e, n = In(js);
|
|
6853
6852
|
if (!n) throw new Error("TimelineItem must be used within Timeline");
|
|
6854
|
-
const a = (p) => typeof p == "number" ? `${p}px` : p, r = I(() => a(t.dotSize ?? n.dotSize.value)), s = I(() => t.
|
|
6853
|
+
const a = (p) => typeof p == "number" ? `${p}px` : p, r = I(() => a(t.dotSize ?? n.dotSize.value)), s = I(() => t.activeColor ?? n.activeColor.value), o = I(
|
|
6854
|
+
() => t.active ? s.value : Hd
|
|
6855
|
+
), l = I(() => a(t.lineWidth ?? n.lineWidth.value)), i = I(() => ({
|
|
6855
6856
|
"--cregis-timeline-dot-size": r.value
|
|
6856
6857
|
})), f = I(() => ({
|
|
6857
6858
|
width: r.value
|
|
6858
6859
|
})), m = I(() => ({
|
|
6859
6860
|
width: r.value,
|
|
6860
6861
|
height: r.value,
|
|
6861
|
-
backgroundColor:
|
|
6862
|
+
backgroundColor: o.value
|
|
6862
6863
|
})), v = I(() => ({
|
|
6863
|
-
backgroundColor:
|
|
6864
|
+
backgroundColor: jd,
|
|
6864
6865
|
width: l.value,
|
|
6865
6866
|
left: `calc(${r.value} / 2 - ${l.value} / 2)`,
|
|
6866
6867
|
top: "calc(var(--cregis-timeline-title-font-size) + (var(--cregis-timeline-title-line-height) - var(--cregis-timeline-title-font-size)) / 2 + var(--cregis-timeline-line-gap))",
|
|
@@ -6868,36 +6869,36 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
6868
6869
|
}));
|
|
6869
6870
|
return (p, g) => (w(), x("div", {
|
|
6870
6871
|
class: "cregis-timeline-item",
|
|
6871
|
-
style:
|
|
6872
|
+
style: ce(i.value)
|
|
6872
6873
|
}, [
|
|
6873
6874
|
F("div", {
|
|
6874
6875
|
class: "cregis-timeline-item__node",
|
|
6875
|
-
style:
|
|
6876
|
+
style: ce(f.value)
|
|
6876
6877
|
}, [
|
|
6877
6878
|
F("span", {
|
|
6878
6879
|
class: "cregis-timeline-item__dot",
|
|
6879
|
-
style:
|
|
6880
|
+
style: ce(m.value)
|
|
6880
6881
|
}, null, 4)
|
|
6881
6882
|
], 4),
|
|
6882
|
-
p.$slots.title ? (w(), x("div",
|
|
6883
|
+
p.$slots.title ? (w(), x("div", Gd, [
|
|
6883
6884
|
de(p.$slots, "title")
|
|
6884
6885
|
])) : X("", !0),
|
|
6885
6886
|
F("span", {
|
|
6886
6887
|
class: "cregis-timeline-item__tail",
|
|
6887
|
-
style:
|
|
6888
|
+
style: ce(v.value)
|
|
6888
6889
|
}, null, 4),
|
|
6889
6890
|
p.$slots.default ? (w(), x("div", {
|
|
6890
6891
|
key: 1,
|
|
6891
|
-
class:
|
|
6892
|
+
class: Z(["cregis-timeline-item__content", { "is-hoverable": e.contentHoverable }])
|
|
6892
6893
|
}, [
|
|
6893
6894
|
de(p.$slots, "default")
|
|
6894
6895
|
], 2)) : X("", !0)
|
|
6895
6896
|
], 4));
|
|
6896
6897
|
}
|
|
6897
|
-
}),
|
|
6898
|
+
}), Yd = {
|
|
6898
6899
|
key: 0,
|
|
6899
6900
|
class: "select-content"
|
|
6900
|
-
},
|
|
6901
|
+
}, Kd = /* @__PURE__ */ ue({
|
|
6901
6902
|
name: "HeaderCell",
|
|
6902
6903
|
__name: "HeaderCell",
|
|
6903
6904
|
props: {
|
|
@@ -6907,6 +6908,7 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
6907
6908
|
align: { default: "left" },
|
|
6908
6909
|
width: {},
|
|
6909
6910
|
selectMode: { type: Boolean },
|
|
6911
|
+
selectVisible: { type: Boolean },
|
|
6910
6912
|
selectAllMode: { default: "none" },
|
|
6911
6913
|
bg: {},
|
|
6912
6914
|
sortable: { type: Boolean }
|
|
@@ -6956,20 +6958,23 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
6956
6958
|
}), Je(() => {
|
|
6957
6959
|
m?.destroy();
|
|
6958
6960
|
}), (O, h) => (w(), x("th", {
|
|
6959
|
-
class: "header-cell-wrapper",
|
|
6960
|
-
|
|
6961
|
+
class: Z(["header-cell-wrapper", {
|
|
6962
|
+
"select-cell": e.type === "select",
|
|
6963
|
+
"select-cell--visible": e.type === "select" && e.selectVisible
|
|
6964
|
+
}]),
|
|
6965
|
+
style: ce(E.value)
|
|
6961
6966
|
}, [
|
|
6962
|
-
e.type === "select" ? (w(), x("div",
|
|
6963
|
-
|
|
6967
|
+
e.type === "select" ? (w(), x("div", Yd, [
|
|
6968
|
+
oe(Cr, {
|
|
6964
6969
|
"model-value": e.selectAllMode === "all",
|
|
6965
6970
|
indeterminate: e.selectAllMode === "some",
|
|
6966
|
-
onClick: h[0] || (h[0] = Wt((
|
|
6971
|
+
onClick: h[0] || (h[0] = Wt((S) => O.$emit("select-all-mode", e.selectAllMode), ["stop"]))
|
|
6967
6972
|
}, null, 8, ["model-value", "indeterminate"])
|
|
6968
6973
|
])) : X("", !0),
|
|
6969
6974
|
e.type === "default" ? (w(), x("div", {
|
|
6970
6975
|
key: 1,
|
|
6971
6976
|
class: "cell-content",
|
|
6972
|
-
style:
|
|
6977
|
+
style: ce(N.value)
|
|
6973
6978
|
}, [
|
|
6974
6979
|
de(O.$slots, "default", {}, () => [
|
|
6975
6980
|
F("div", null, J(e.label), 1)
|
|
@@ -6978,46 +6983,46 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
6978
6983
|
key: 0,
|
|
6979
6984
|
ref_key: "containerRef",
|
|
6980
6985
|
ref: f,
|
|
6981
|
-
class:
|
|
6986
|
+
class: Z(["sort-container", [g.value, p.value]]),
|
|
6982
6987
|
onClick: Wt(L, ["stop"])
|
|
6983
6988
|
}, [
|
|
6984
6989
|
F("span", {
|
|
6985
|
-
class:
|
|
6990
|
+
class: Z(["sort-icon", { "is-open": s.value }])
|
|
6986
6991
|
}, [
|
|
6987
|
-
|
|
6992
|
+
oe(te(fr), { size: "12px" })
|
|
6988
6993
|
], 2)
|
|
6989
6994
|
], 2)) : X("", !0)
|
|
6990
6995
|
], 4)) : X("", !0),
|
|
6991
|
-
(w(),
|
|
6996
|
+
(w(), Oe(dr, { to: "body" }, [
|
|
6992
6997
|
Ut(F("div", {
|
|
6993
6998
|
ref_key: "popRef",
|
|
6994
6999
|
ref: i,
|
|
6995
7000
|
class: "sort-popover no-scroll-bar popover-shadow",
|
|
6996
|
-
style:
|
|
7001
|
+
style: ce(v.value)
|
|
6997
7002
|
}, [
|
|
6998
7003
|
F("div", {
|
|
6999
|
-
class:
|
|
7000
|
-
onClick: h[1] || (h[1] = (
|
|
7001
|
-
}, J(
|
|
7004
|
+
class: Z(["sort-item font-15", { active: l.value === "asc" }]),
|
|
7005
|
+
onClick: h[1] || (h[1] = (S) => d("asc"))
|
|
7006
|
+
}, J(te(Se)("tableList.asc")), 3),
|
|
7002
7007
|
F("div", {
|
|
7003
|
-
class:
|
|
7004
|
-
onClick: h[2] || (h[2] = (
|
|
7005
|
-
}, J(
|
|
7008
|
+
class: Z(["sort-item font-15", { active: l.value === "desc" }]),
|
|
7009
|
+
onClick: h[2] || (h[2] = (S) => d("desc"))
|
|
7010
|
+
}, J(te(Se)("tableList.desc")), 3)
|
|
7006
7011
|
], 4), [
|
|
7007
7012
|
[An, s.value]
|
|
7008
7013
|
])
|
|
7009
7014
|
]))
|
|
7010
|
-
],
|
|
7015
|
+
], 6));
|
|
7011
7016
|
}
|
|
7012
7017
|
}), Pr = (e, t) => {
|
|
7013
7018
|
const n = e.__vccOpts || e;
|
|
7014
7019
|
for (const [a, r] of t)
|
|
7015
7020
|
n[a] = r;
|
|
7016
7021
|
return n;
|
|
7017
|
-
}, Pa = /* @__PURE__ */ Pr(
|
|
7022
|
+
}, Pa = /* @__PURE__ */ Pr(Kd, [["__scopeId", "data-v-3e009147"]]), Xd = {
|
|
7018
7023
|
key: 1,
|
|
7019
7024
|
class: "cell-text"
|
|
7020
|
-
},
|
|
7025
|
+
}, qd = /* @__PURE__ */ ue({
|
|
7021
7026
|
name: "TableListColumn",
|
|
7022
7027
|
__name: "TableListColumn",
|
|
7023
7028
|
props: {
|
|
@@ -7026,6 +7031,7 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7026
7031
|
columnHeight: {},
|
|
7027
7032
|
minTableWidth: {},
|
|
7028
7033
|
type: { default: "default" },
|
|
7034
|
+
selectVisible: { type: Boolean },
|
|
7029
7035
|
selected: { type: Boolean },
|
|
7030
7036
|
blank: { type: Boolean },
|
|
7031
7037
|
prop: {},
|
|
@@ -7041,8 +7047,7 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7041
7047
|
const t = e, n = I(() => Object.assign(t.data || {}, {})), a = I(() => ({
|
|
7042
7048
|
...t.widthPercent ? { width: `${t.widthPercent}%` } : {},
|
|
7043
7049
|
...t.minWidth ? { minWidth: t.minWidth } : {},
|
|
7044
|
-
...t.width ? { width: "1%" } : {}
|
|
7045
|
-
...t.type === "select" ? { width: "1%" } : {}
|
|
7050
|
+
...t.width ? { width: "1%" } : {}
|
|
7046
7051
|
})), r = I(() => ({
|
|
7047
7052
|
height: t.columnHeight + "px"
|
|
7048
7053
|
})), s = I(() => t.index % 2 === 1), o = I(() => ({
|
|
@@ -7051,19 +7056,23 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7051
7056
|
...t.width ? { width: t.width } : {}
|
|
7052
7057
|
}));
|
|
7053
7058
|
return (l, i) => (w(), x("td", {
|
|
7054
|
-
class:
|
|
7055
|
-
|
|
7059
|
+
class: Z(["column-wrapper", {
|
|
7060
|
+
"is-striped": s.value,
|
|
7061
|
+
"select-cell": e.type === "select",
|
|
7062
|
+
"select-cell--visible": e.type === "select" && e.selectVisible
|
|
7063
|
+
}]),
|
|
7064
|
+
style: ce(a.value)
|
|
7056
7065
|
}, [
|
|
7057
7066
|
e.blank ? (w(), x("div", {
|
|
7058
7067
|
key: 0,
|
|
7059
|
-
style:
|
|
7068
|
+
style: ce(o.value)
|
|
7060
7069
|
}, null, 4)) : (w(), x(Be, { key: 1 }, [
|
|
7061
7070
|
e.type === "select" ? (w(), x("div", {
|
|
7062
7071
|
key: 0,
|
|
7063
7072
|
class: "select-content",
|
|
7064
|
-
style:
|
|
7073
|
+
style: ce(r.value)
|
|
7065
7074
|
}, [
|
|
7066
|
-
|
|
7075
|
+
oe(Cr, {
|
|
7067
7076
|
"model-value": e.selected,
|
|
7068
7077
|
onClick: i[0] || (i[0] = Wt((f) => l.$emit("selectChange", e.index), ["stop"]))
|
|
7069
7078
|
}, null, 8, ["model-value"])
|
|
@@ -7071,35 +7080,35 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7071
7080
|
e.type === "default" ? (w(), x("div", {
|
|
7072
7081
|
key: 1,
|
|
7073
7082
|
class: "cell-content",
|
|
7074
|
-
style:
|
|
7083
|
+
style: ce(o.value)
|
|
7075
7084
|
}, [
|
|
7076
7085
|
l.$slots.default ? de(l.$slots, "default", {
|
|
7077
7086
|
key: 0,
|
|
7078
7087
|
data: n.value
|
|
7079
|
-
}, void 0, !0) : (w(), x("div",
|
|
7088
|
+
}, void 0, !0) : (w(), x("div", Xd, J(t.data?.[t.prop || ""]), 1))
|
|
7080
7089
|
], 4)) : X("", !0)
|
|
7081
7090
|
], 64))
|
|
7082
7091
|
], 6));
|
|
7083
7092
|
}
|
|
7084
|
-
}), yn = /* @__PURE__ */ Pr(
|
|
7093
|
+
}), yn = /* @__PURE__ */ Pr(qd, [["__scopeId", "data-v-e0bf68f3"]]), tn = (e, t, n) => {
|
|
7085
7094
|
if (!e) return n;
|
|
7086
7095
|
if (Object.prototype.hasOwnProperty.call(e, t))
|
|
7087
7096
|
return e[t];
|
|
7088
7097
|
const a = t.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
7089
7098
|
return Object.prototype.hasOwnProperty.call(e, a) ? e[a] : n;
|
|
7090
|
-
},
|
|
7091
|
-
key:
|
|
7099
|
+
}, Qd = { class: "initing-content" }, Jd = { class: "initing-text" }, Zd = {
|
|
7100
|
+
key: 0,
|
|
7092
7101
|
class: "opration-wrapper"
|
|
7093
|
-
},
|
|
7102
|
+
}, ef = { class: "selected-count-wrapper" }, tf = { class: "font-medium text-[var(--text-base-primary)]" }, nf = { class: "ml-[2px] text-[var(--text-base-secondary)]" }, rf = {
|
|
7094
7103
|
key: 0,
|
|
7095
7104
|
class: "operation-divider"
|
|
7096
|
-
},
|
|
7105
|
+
}, af = { key: 0 }, sf = ["colspan"], of = { class: "loading-inner" }, lf = { class: "loading-success-text" }, cf = ["onClick"], uf = {
|
|
7097
7106
|
key: 0,
|
|
7098
7107
|
class: "flex-1 flex items-center justify-center"
|
|
7099
|
-
},
|
|
7108
|
+
}, df = { class: "flex flex-col gap-[8px] items-center -translate-x-[30px]" }, ff = { class: "no-data-text font-13" }, mf = {
|
|
7100
7109
|
key: 1,
|
|
7101
7110
|
class: "flex-1"
|
|
7102
|
-
},
|
|
7111
|
+
}, pf = /* @__PURE__ */ ue({
|
|
7103
7112
|
__name: "index",
|
|
7104
7113
|
props: {
|
|
7105
7114
|
maxHeight: {},
|
|
@@ -7153,35 +7162,35 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7153
7162
|
width: `${f.value.width}px`,
|
|
7154
7163
|
height: L.value ? "28px" : "0px",
|
|
7155
7164
|
opacity: L.value ? 1 : 0
|
|
7156
|
-
})),
|
|
7165
|
+
})), S = () => (s.default?.()?.filter((V) => V.type?.name === "TableListColumn") || []).filter((V) => V.props?.hidden !== !0), T = () => S().filter((R) => {
|
|
7157
7166
|
const V = tn(R.props, "minTableWidth");
|
|
7158
7167
|
return !V || f.value.width >= V;
|
|
7159
7168
|
}), y = I(() => T().map((R) => {
|
|
7160
|
-
const { align: V = "left", label: j, width:
|
|
7169
|
+
const { align: V = "left", label: j, width: ee, sortable: le } = R.props || {}, _e = tn(R.props, "minTableWidth");
|
|
7161
7170
|
return {
|
|
7162
7171
|
label: j || "",
|
|
7163
7172
|
align: V,
|
|
7164
|
-
sortable:
|
|
7165
|
-
width:
|
|
7173
|
+
sortable: le,
|
|
7174
|
+
width: ee,
|
|
7166
7175
|
minTableWidth: _e,
|
|
7167
7176
|
headerSlot: R.children?.header,
|
|
7168
7177
|
originalSortChangeHandler: R.props?.onSortChange
|
|
7169
7178
|
};
|
|
7170
|
-
})), W = I(() => y.value.length +
|
|
7171
|
-
const { align: V = "left", width: j } = R.props || {},
|
|
7179
|
+
})), W = I(() => y.value.length + 1), B = I(() => T().map((R) => {
|
|
7180
|
+
const { align: V = "left", width: j } = R.props || {}, ee = tn(R.props, "widthPercent"), le = tn(R.props, "minWidth"), _e = tn(R.props, "minTableWidth");
|
|
7172
7181
|
return {
|
|
7173
7182
|
prop: R.props?.prop || "",
|
|
7174
7183
|
align: V,
|
|
7175
7184
|
width: j,
|
|
7176
|
-
widthPercent:
|
|
7177
|
-
minWidth:
|
|
7185
|
+
widthPercent: ee,
|
|
7186
|
+
minWidth: le,
|
|
7178
7187
|
minTableWidth: _e,
|
|
7179
7188
|
children: R.children || {},
|
|
7180
7189
|
slotDefault: R.children?.default
|
|
7181
7190
|
};
|
|
7182
7191
|
})), G = (A, R) => {
|
|
7183
|
-
i.value?.forEach((j,
|
|
7184
|
-
|
|
7192
|
+
i.value?.forEach((j, ee) => {
|
|
7193
|
+
ee !== A && j.resetSort();
|
|
7185
7194
|
});
|
|
7186
7195
|
const V = y.value[A];
|
|
7187
7196
|
V.originalSortChangeHandler && V.originalSortChangeHandler(R);
|
|
@@ -7201,17 +7210,18 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7201
7210
|
p.value = !1, g.value = [], a("update:selected-list", []), a("selected-change", []);
|
|
7202
7211
|
};
|
|
7203
7212
|
t({
|
|
7213
|
+
selectMode: p,
|
|
7204
7214
|
openSelect: q,
|
|
7205
7215
|
closeSelect: he
|
|
7206
7216
|
});
|
|
7207
|
-
let
|
|
7217
|
+
let k = null;
|
|
7208
7218
|
return Dt(() => {
|
|
7209
|
-
o.value && (
|
|
7219
|
+
o.value && (k = new ResizeObserver((A) => {
|
|
7210
7220
|
const R = A[0], V = R.contentRect.width, j = R.contentRect.height;
|
|
7211
7221
|
f.value = { width: V, height: j };
|
|
7212
|
-
}),
|
|
7222
|
+
}), k.observe(o.value));
|
|
7213
7223
|
}), Je(() => {
|
|
7214
|
-
|
|
7224
|
+
k && k.disconnect();
|
|
7215
7225
|
}), (A, R) => (w(), x("div", {
|
|
7216
7226
|
ref_key: "tableWrapperRef",
|
|
7217
7227
|
ref: o,
|
|
@@ -7220,33 +7230,38 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7220
7230
|
E.value ? (w(), x("div", {
|
|
7221
7231
|
key: 0,
|
|
7222
7232
|
class: "initing-wrapper",
|
|
7223
|
-
style:
|
|
7233
|
+
style: ce({ top: v.value, height: `calc(100% - ${v.value})` })
|
|
7224
7234
|
}, [
|
|
7225
|
-
F("div",
|
|
7226
|
-
|
|
7235
|
+
F("div", Qd, [
|
|
7236
|
+
oe(te(Yn), {
|
|
7227
7237
|
class: "loading-icon",
|
|
7228
7238
|
size: "20px",
|
|
7229
7239
|
color: "var(--stroke-base-secondary)"
|
|
7230
7240
|
}),
|
|
7231
|
-
F("div",
|
|
7241
|
+
F("div", Jd, J(te(Se)("tableList.loading")), 1)
|
|
7232
7242
|
])
|
|
7233
7243
|
], 4)) : X("", !0),
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7244
|
+
oe(mn, { name: "table-list-operation" }, {
|
|
7245
|
+
default: Ne(() => [
|
|
7246
|
+
p.value ? (w(), x("div", Zd, [
|
|
7247
|
+
F("div", {
|
|
7248
|
+
class: "operation-item",
|
|
7249
|
+
hover: "bg-[--event-focus-secondary]",
|
|
7250
|
+
onClick: he
|
|
7251
|
+
}, [
|
|
7252
|
+
oe(te(Fa), { size: "16px" })
|
|
7253
|
+
]),
|
|
7254
|
+
R[0] || (R[0] = F("div", { class: "operation-divider" }, null, -1)),
|
|
7255
|
+
F("div", ef, [
|
|
7256
|
+
F("div", tf, J(g.value.length), 1),
|
|
7257
|
+
F("div", nf, J(te(Se)("tableList.selected")), 1)
|
|
7258
|
+
]),
|
|
7259
|
+
s.operation ? (w(), x("div", rf)) : X("", !0),
|
|
7260
|
+
de(A.$slots, "operation", {}, void 0, !0)
|
|
7261
|
+
])) : X("", !0)
|
|
7246
7262
|
]),
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
])) : X("", !0),
|
|
7263
|
+
_: 3
|
|
7264
|
+
}),
|
|
7250
7265
|
F("div", {
|
|
7251
7266
|
ref_key: "tableContentRef",
|
|
7252
7267
|
ref: l,
|
|
@@ -7257,19 +7272,18 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7257
7272
|
class: "cg-table w-full border-separate"
|
|
7258
7273
|
}, [
|
|
7259
7274
|
F("thead", {
|
|
7260
|
-
style:
|
|
7275
|
+
style: ce({ height: v.value })
|
|
7261
7276
|
}, [
|
|
7262
7277
|
F("tr", null, [
|
|
7263
|
-
|
|
7264
|
-
key: 0,
|
|
7278
|
+
oe(Pa, {
|
|
7265
7279
|
type: "select",
|
|
7266
7280
|
height: v.value,
|
|
7267
7281
|
bg: e.headerBg,
|
|
7268
|
-
"select-
|
|
7282
|
+
"select-visible": p.value,
|
|
7269
7283
|
"select-all-mode": g.value.length === 0 ? "none" : g.value.length === e.dataList.length ? "all" : "some",
|
|
7270
7284
|
onSelectAllMode: Y
|
|
7271
|
-
}, null, 8, ["height", "bg", "select-
|
|
7272
|
-
(w(!0), x(Be, null, vt(y.value, (V, j) => (w(),
|
|
7285
|
+
}, null, 8, ["height", "bg", "select-visible", "select-all-mode"]),
|
|
7286
|
+
(w(!0), x(Be, null, vt(y.value, (V, j) => (w(), Oe(Pa, {
|
|
7273
7287
|
ref_for: !0,
|
|
7274
7288
|
ref_key: "headerCellRefs",
|
|
7275
7289
|
ref: i,
|
|
@@ -7281,86 +7295,86 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7281
7295
|
sortable: V.sortable,
|
|
7282
7296
|
"select-mode": p.value,
|
|
7283
7297
|
bg: e.headerBg,
|
|
7284
|
-
onSortChange: (
|
|
7298
|
+
onSortChange: (ee) => G(Number(j), ee)
|
|
7285
7299
|
}, $r({ _: 2 }, [
|
|
7286
7300
|
V.headerSlot ? {
|
|
7287
7301
|
name: "default",
|
|
7288
|
-
fn:
|
|
7289
|
-
(w(),
|
|
7302
|
+
fn: Ne(() => [
|
|
7303
|
+
(w(), Oe(sn(() => V.headerSlot({}))))
|
|
7290
7304
|
]),
|
|
7291
7305
|
key: "0"
|
|
7292
7306
|
} : void 0
|
|
7293
7307
|
]), 1032, ["label", "align", "height", "width", "sortable", "select-mode", "bg", "onSortChange"]))), 128))
|
|
7294
7308
|
])
|
|
7295
7309
|
], 4),
|
|
7296
|
-
e.dataList.length > 0 ? (w(), x("tbody",
|
|
7310
|
+
e.dataList.length > 0 ? (w(), x("tbody", af, [
|
|
7297
7311
|
F("tr", {
|
|
7298
7312
|
class: "loading-wrapper",
|
|
7299
|
-
style:
|
|
7313
|
+
style: ce(h.value)
|
|
7300
7314
|
}, [
|
|
7301
7315
|
F("td", { colspan: W.value }, [
|
|
7302
|
-
F("div",
|
|
7316
|
+
F("div", of, [
|
|
7303
7317
|
d.value ? (w(), x(Be, { key: 0 }, [
|
|
7304
|
-
|
|
7318
|
+
oe(te(ao), {
|
|
7305
7319
|
size: "16px",
|
|
7306
7320
|
color: "var(--stroke-color-success)"
|
|
7307
7321
|
}),
|
|
7308
|
-
F("span",
|
|
7309
|
-
], 64)) : (w(),
|
|
7322
|
+
F("span", lf, J(te(Se)("tableList.refreshed")), 1)
|
|
7323
|
+
], 64)) : (w(), Oe(te(Yn), {
|
|
7310
7324
|
key: 1,
|
|
7311
7325
|
class: "loading-icon",
|
|
7312
7326
|
size: "16px",
|
|
7313
7327
|
color: "var(--stroke-base-secondary)"
|
|
7314
7328
|
}))
|
|
7315
7329
|
])
|
|
7316
|
-
], 8,
|
|
7330
|
+
], 8, sf)
|
|
7317
7331
|
], 4),
|
|
7318
7332
|
(w(!0), x(Be, null, vt(e.dataList, (V, j) => (w(), x("tr", {
|
|
7319
7333
|
key: j,
|
|
7320
7334
|
class: "table-row",
|
|
7321
|
-
onClick: (
|
|
7335
|
+
onClick: (ee) => U(V, j)
|
|
7322
7336
|
}, [
|
|
7323
|
-
|
|
7324
|
-
key: 0,
|
|
7337
|
+
oe(yn, {
|
|
7325
7338
|
type: "select",
|
|
7339
|
+
"select-visible": p.value,
|
|
7326
7340
|
index: j,
|
|
7327
7341
|
"column-height": e.columnHeight,
|
|
7328
7342
|
data: V,
|
|
7329
|
-
selected: g.value.findIndex((
|
|
7343
|
+
selected: g.value.findIndex((ee) => ee._index === j) !== -1,
|
|
7330
7344
|
onSelectChange: H
|
|
7331
|
-
}, null, 8, ["index", "column-height", "data", "selected"])
|
|
7332
|
-
(w(!0), x(Be, null, vt(B.value, (
|
|
7333
|
-
key: `${j}-${
|
|
7345
|
+
}, null, 8, ["select-visible", "index", "column-height", "data", "selected"]),
|
|
7346
|
+
(w(!0), x(Be, null, vt(B.value, (ee, le) => (w(), Oe(yn, {
|
|
7347
|
+
key: `${j}-${le}`,
|
|
7334
7348
|
index: j,
|
|
7335
7349
|
"column-height": e.columnHeight,
|
|
7336
|
-
prop:
|
|
7337
|
-
align:
|
|
7338
|
-
width:
|
|
7339
|
-
"width-percent":
|
|
7340
|
-
"min-width":
|
|
7350
|
+
prop: ee.prop,
|
|
7351
|
+
align: ee.align,
|
|
7352
|
+
width: ee.width,
|
|
7353
|
+
"width-percent": ee.widthPercent,
|
|
7354
|
+
"min-width": ee.minWidth,
|
|
7341
7355
|
data: V
|
|
7342
7356
|
}, $r({ _: 2 }, [
|
|
7343
|
-
|
|
7357
|
+
ee.slotDefault ? {
|
|
7344
7358
|
name: "default",
|
|
7345
|
-
fn:
|
|
7346
|
-
(w(),
|
|
7359
|
+
fn: Ne((_e) => [
|
|
7360
|
+
(w(), Oe(sn(() => ee.slotDefault(_e))))
|
|
7347
7361
|
]),
|
|
7348
7362
|
key: "0"
|
|
7349
7363
|
} : void 0
|
|
7350
7364
|
]), 1032, ["index", "column-height", "prop", "align", "width", "width-percent", "min-width", "data"]))), 128))
|
|
7351
|
-
], 8,
|
|
7365
|
+
], 8, cf))), 128)),
|
|
7352
7366
|
(w(!0), x(Be, null, vt(O.value, (V, j) => (w(), x("tr", {
|
|
7353
7367
|
key: j + e.dataList.length
|
|
7354
7368
|
}, [
|
|
7355
|
-
|
|
7356
|
-
key: 0,
|
|
7369
|
+
oe(yn, {
|
|
7357
7370
|
type: "select",
|
|
7371
|
+
"select-visible": p.value,
|
|
7358
7372
|
index: j + e.dataList.length,
|
|
7359
7373
|
"column-height": e.columnHeight,
|
|
7360
7374
|
blank: ""
|
|
7361
|
-
}, null, 8, ["index", "column-height"])
|
|
7362
|
-
(w(!0), x(Be, null, vt(B.value, (
|
|
7363
|
-
key: `${j + e.dataList.length}-${
|
|
7375
|
+
}, null, 8, ["select-visible", "index", "column-height"]),
|
|
7376
|
+
(w(!0), x(Be, null, vt(B.value, (ee, le) => (w(), Oe(yn, {
|
|
7377
|
+
key: `${j + e.dataList.length}-${le}`,
|
|
7364
7378
|
index: j + e.dataList.length,
|
|
7365
7379
|
"column-height": e.columnHeight,
|
|
7366
7380
|
blank: ""
|
|
@@ -7368,49 +7382,51 @@ const js = Symbol("TIMELINE_KEY"), Hd = { class: "cregis-timeline" }, If = /* @_
|
|
|
7368
7382
|
]))), 128))
|
|
7369
7383
|
])) : X("", !0)
|
|
7370
7384
|
])),
|
|
7371
|
-
!e.loading && e.dataList.length === 0 ? (w(), x("div",
|
|
7372
|
-
F("div",
|
|
7373
|
-
|
|
7385
|
+
!e.loading && e.dataList.length === 0 ? (w(), x("div", uf, [
|
|
7386
|
+
F("div", df, [
|
|
7387
|
+
oe(te(so), {
|
|
7374
7388
|
size: "40px",
|
|
7375
7389
|
color: "var(--text-base-quaternary)"
|
|
7376
7390
|
}),
|
|
7377
|
-
F("div",
|
|
7391
|
+
F("div", ff, J(te(Se)("tableList.noData")), 1)
|
|
7378
7392
|
])
|
|
7379
|
-
])) : (w(), x("div",
|
|
7393
|
+
])) : (w(), x("div", mf))
|
|
7380
7394
|
], 512)
|
|
7381
7395
|
], 512));
|
|
7382
7396
|
}
|
|
7383
|
-
}),
|
|
7397
|
+
}), Pf = /* @__PURE__ */ Pr(pf, [["__scopeId", "data-v-7d1ecce2"]]);
|
|
7384
7398
|
export {
|
|
7385
|
-
|
|
7399
|
+
If as Badge,
|
|
7386
7400
|
Ft as Button,
|
|
7387
|
-
|
|
7401
|
+
wf as Cascader,
|
|
7388
7402
|
Cr as Checkbox,
|
|
7389
7403
|
Hs as Dialog,
|
|
7390
|
-
|
|
7404
|
+
bf as Divider,
|
|
7391
7405
|
Ls as Input,
|
|
7392
7406
|
ya as Message,
|
|
7393
|
-
|
|
7394
|
-
|
|
7407
|
+
Tf as Notification,
|
|
7408
|
+
Cf as Option,
|
|
7395
7409
|
cr as Popover,
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7410
|
+
Nf as Progress,
|
|
7411
|
+
_f as Radio,
|
|
7412
|
+
Lf as Select,
|
|
7413
|
+
kf as Switch,
|
|
7400
7414
|
Cs as TABS_KEY,
|
|
7415
|
+
Hd as TIMELINE_INACTIVE_DOT_COLOR,
|
|
7401
7416
|
js as TIMELINE_KEY,
|
|
7402
|
-
|
|
7403
|
-
|
|
7417
|
+
jd as TIMELINE_LINE_COLOR,
|
|
7418
|
+
Ef as TabPane,
|
|
7419
|
+
Pf as TableList,
|
|
7404
7420
|
yn as TableListColumn,
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7421
|
+
yf as Tabs,
|
|
7422
|
+
Sf as Tag,
|
|
7423
|
+
Df as Timeline,
|
|
7424
|
+
xf as TimelineItem,
|
|
7425
|
+
Af as Upload,
|
|
7410
7426
|
Bd as confirm,
|
|
7411
7427
|
Us as getDialogZIndex,
|
|
7412
7428
|
Ws as selectInjectKey,
|
|
7413
|
-
|
|
7414
|
-
|
|
7429
|
+
hf as setCregisUILocale,
|
|
7430
|
+
Of as setDialogZIndex,
|
|
7415
7431
|
Fs as useClickOutside
|
|
7416
7432
|
};
|