@cregis/ui 1.0.7 → 1.0.9
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 +737 -731
- package/dist/types/index.d.ts +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,121 +1,6 @@
|
|
|
1
1
|
import * as Dn from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { EdsLoad as Gn, EdsCloseCircleFill as
|
|
4
|
-
const ro = ["disabled"], ao = ["disabled"], so = ["disabled"], Vt = /* @__PURE__ */ fe({
|
|
5
|
-
name: "Button",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "Button",
|
|
8
|
-
props: {
|
|
9
|
-
type: { default: "primary" },
|
|
10
|
-
size: { default: "medium" },
|
|
11
|
-
width: {},
|
|
12
|
-
plain: { type: Boolean },
|
|
13
|
-
text: { type: Boolean },
|
|
14
|
-
disabled: { type: Boolean },
|
|
15
|
-
loading: { type: Boolean },
|
|
16
|
-
block: { type: Boolean },
|
|
17
|
-
link: { type: Boolean },
|
|
18
|
-
icon: {},
|
|
19
|
-
iconType: { default: "rectangle" },
|
|
20
|
-
iconText: {},
|
|
21
|
-
affix: { type: Boolean },
|
|
22
|
-
isActive: { type: Boolean }
|
|
23
|
-
},
|
|
24
|
-
setup(e) {
|
|
25
|
-
const t = e, n = xa(), a = j(null);
|
|
26
|
-
function r() {
|
|
27
|
-
t.disabled || t.loading || a.value?.click();
|
|
28
|
-
}
|
|
29
|
-
const s = D(() => {
|
|
30
|
-
const m = t, v = n.icon;
|
|
31
|
-
return !m.icon && typeof v == "function";
|
|
32
|
-
}), o = D(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), l = D(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), i = D(() => t.width ? { width: t.width } : void 0), f = D(() => {
|
|
33
|
-
if (t.plain || t.text)
|
|
34
|
-
switch (t.type) {
|
|
35
|
-
case "primary":
|
|
36
|
-
return "var(--material-brand-primary)";
|
|
37
|
-
case "secondary":
|
|
38
|
-
return "var(--material-base-secondary)";
|
|
39
|
-
case "danger":
|
|
40
|
-
return "var(--material-danger-primary)";
|
|
41
|
-
case "foreground":
|
|
42
|
-
return "var(--material-base-primary)";
|
|
43
|
-
case "sameWhite":
|
|
44
|
-
return "var(--material-same-black)";
|
|
45
|
-
}
|
|
46
|
-
else
|
|
47
|
-
return t.type === "secondary" ? "var(--material-base-secondary)" : t.type === "foreground" ? "var(--text-face-primary)" : t.type === "sameWhite" ? "var(--text-same-black-primary)" : "var(--material-same-white-primary)";
|
|
48
|
-
});
|
|
49
|
-
return (m, v) => e.icon || m.$slots.icon ? (S(), x("div", {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: ee(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
|
|
52
|
-
}, [
|
|
53
|
-
U("button", gt({
|
|
54
|
-
ref_key: "iconButtonRef",
|
|
55
|
-
ref: a
|
|
56
|
-
}, m.$attrs, {
|
|
57
|
-
class: ["cregis-button__icon", {
|
|
58
|
-
[`cregis-button__icon--${e.iconType}`]: e.iconType,
|
|
59
|
-
[`cregis-button__icon--${e.size}`]: e.size,
|
|
60
|
-
"cregis-button__icon--slot": s.value,
|
|
61
|
-
"is-disabled": e.disabled,
|
|
62
|
-
"is-active": e.isActive
|
|
63
|
-
}],
|
|
64
|
-
disabled: e.disabled || e.loading
|
|
65
|
-
}), [
|
|
66
|
-
e.icon ? (S(), Ee(sn(e.icon), {
|
|
67
|
-
key: 0,
|
|
68
|
-
size: o.value
|
|
69
|
-
}, null, 8, ["size"])) : (S(), x("span", {
|
|
70
|
-
key: 1,
|
|
71
|
-
class: "cregis-button__icon-slot-inner",
|
|
72
|
-
style: ge({ "--cregis-btn-icon-slot-size": o.value })
|
|
73
|
-
}, [
|
|
74
|
-
_e(m.$slots, "icon")
|
|
75
|
-
], 4))
|
|
76
|
-
], 16, ro),
|
|
77
|
-
e.iconText ? (S(), x("span", {
|
|
78
|
-
key: 0,
|
|
79
|
-
class: ee(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
|
|
80
|
-
onClick: r
|
|
81
|
-
}, J(e.iconText), 3)) : q("", !0)
|
|
82
|
-
], 2)) : e.link ? (S(), x("button", gt({ key: 1 }, m.$attrs, {
|
|
83
|
-
class: ["cregis-button__link", {
|
|
84
|
-
[`cregis-button__link--${e.type}`]: e.type,
|
|
85
|
-
[`cregis-button__link--${e.size}`]: e.size,
|
|
86
|
-
"is-disabled": e.disabled,
|
|
87
|
-
"is-active": e.isActive
|
|
88
|
-
}],
|
|
89
|
-
disabled: e.disabled || e.loading
|
|
90
|
-
}), [
|
|
91
|
-
_e(m.$slots, "default")
|
|
92
|
-
], 16, ao)) : (S(), x("button", gt({
|
|
93
|
-
key: 2,
|
|
94
|
-
ref: "buttonRef"
|
|
95
|
-
}, m.$attrs, {
|
|
96
|
-
style: i.value,
|
|
97
|
-
class: ["cregis-button", {
|
|
98
|
-
[`cregis-button--${e.type}`]: e.type,
|
|
99
|
-
[`cregis-button--${e.size}`]: e.size,
|
|
100
|
-
"is-plain": e.plain,
|
|
101
|
-
"is-text": e.text,
|
|
102
|
-
"is-disabled": e.disabled,
|
|
103
|
-
"is-loading": e.loading,
|
|
104
|
-
"is-block": e.block,
|
|
105
|
-
"is-affix": e.affix,
|
|
106
|
-
"is-active": e.isActive
|
|
107
|
-
}],
|
|
108
|
-
disabled: e.disabled || e.loading
|
|
109
|
-
}), [
|
|
110
|
-
e.loading ? (S(), Ee(Z(Gn), {
|
|
111
|
-
key: 0,
|
|
112
|
-
class: "loading",
|
|
113
|
-
size: l.value,
|
|
114
|
-
color: f.value
|
|
115
|
-
}, null, 8, ["size", "color"])) : _e(m.$slots, "default", { key: 1 })
|
|
116
|
-
], 16, so));
|
|
117
|
-
}
|
|
118
|
-
});
|
|
2
|
+
import { effectScope as Hs, computed as D, watch as _e, isRef as js, ref as j, shallowRef as Gs, defineComponent as fe, h as wt, getCurrentScope as Ys, onScopeDispose as zs, Fragment as Xe, inject as ir, onMounted as Dt, onUnmounted as Je, createVNode as de, Text as Ks, useSlots as xa, openBlock as S, createElementBlock as x, normalizeClass as ee, createElementVNode as U, mergeProps as gt, createBlock as Ee, resolveDynamicComponent as sn, normalizeStyle as ge, renderSlot as be, toDisplayString as J, createCommentVNode as q, unref as Z, withDirectives as Ut, vModelDynamic as Xs, withModifiers as Wt, vModelText as qs, withCtx as Ne, createTextVNode as qe, nextTick as dt, reactive as Mt, provide as Pa, toRef as Qs, renderList as vt, onBeforeUnmount as Ra, Transition as Cn, render as Bt, toHandlers as xn, Teleport as cr, vShow as wn, createSlots as Pr } from "vue";
|
|
3
|
+
import { EdsLoad as Gn, EdsCloseCircleFill as Js, EdsTickFill as $a, EdsWarningFill as Zs, EdsSearch as Ma, EdsArrowDownMiniIos as ur, EdsArrowRightMiniIos as eo, EdsAdd as Rr, EdsClose as Va, EdsWarningLonely as to, EdsTick as no, EdsNoData as ro } from "@cregis/icon";
|
|
119
4
|
/*!
|
|
120
5
|
* shared v11.4.8
|
|
121
6
|
* (c) 2026 kazuya kawaguchi
|
|
@@ -132,22 +17,22 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
132
17
|
e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
|
|
133
18
|
});
|
|
134
19
|
}
|
|
135
|
-
const
|
|
20
|
+
const ao = /\{([0-9a-zA-Z]+)\}/g;
|
|
136
21
|
function kn(e, ...t) {
|
|
137
|
-
return t.length === 1 && re(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
22
|
+
return t.length === 1 && re(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ao, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
138
23
|
}
|
|
139
|
-
const ot = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
24
|
+
const ot = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), so = (e, t, n) => oo({ l: e, k: t, s: n }), oo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Oe = (e) => typeof e == "number" && isFinite(e), Fa = (e) => fr(e) === "[object Date]", Ht = (e) => fr(e) === "[object RegExp]", dr = (e) => se(e) && Object.keys(e).length === 0, Le = Object.assign, lo = Object.create, ie = (e = null) => lo(e);
|
|
140
25
|
let $r;
|
|
141
|
-
const Lt = () => $r || ($r = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ie()),
|
|
26
|
+
const Lt = () => $r || ($r = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ie()), io = Object.prototype.hasOwnProperty;
|
|
142
27
|
function je(e, t) {
|
|
143
|
-
return
|
|
28
|
+
return io.call(e, t);
|
|
144
29
|
}
|
|
145
|
-
const Te = Array.isArray, ve = (e) => typeof e == "function", M = (e) => typeof e == "string", ae = (e) => typeof e == "boolean", re = (e) => e !== null && typeof e == "object",
|
|
30
|
+
const Te = Array.isArray, ve = (e) => typeof e == "function", M = (e) => typeof e == "string", ae = (e) => typeof e == "boolean", re = (e) => e !== null && typeof e == "object", co = (e) => re(e) && ve(e.then) && ve(e.catch), Ua = Object.prototype.toString, fr = (e) => Ua.call(e), se = (e) => fr(e) === "[object Object]", uo = (e) => e == null ? "" : Te(e) || se(e) && e.toString === Ua ? JSON.stringify(e, null, 2) : String(e);
|
|
146
31
|
function mr(e, t = "") {
|
|
147
32
|
return e.reduce((n, a, r) => r === 0 ? n + a : n + t + a, "");
|
|
148
33
|
}
|
|
149
34
|
const Mr = 2;
|
|
150
|
-
function
|
|
35
|
+
function fo(e, t = 0, n = e.length) {
|
|
151
36
|
const a = e.split(/\r?\n/);
|
|
152
37
|
let r = 0;
|
|
153
38
|
const s = [];
|
|
@@ -185,11 +70,11 @@ function pr(e) {
|
|
|
185
70
|
function Fr(e) {
|
|
186
71
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
187
72
|
}
|
|
188
|
-
function
|
|
73
|
+
function mo(e) {
|
|
189
74
|
return e.replace(/&(?![a-z0-9#]{2,6};)/gi, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
190
75
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
76
|
+
const po = /^javascript:/i, vo = /^(?:href|src|action|formaction)$/i, go = /&#(?:x([0-9a-f]+)|(\d+));?/gi, ho = /&(?:Tab|NewLine);/g, _o = /:?/gi, bo = /[\u0000-\u0020\u007f-\u009f]/g, yo = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, Eo = /(^|[\s"'<>/])on(\w+\s*=)/gi, To = /(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
77
|
+
function No(e, t, n) {
|
|
193
78
|
const a = t || n;
|
|
194
79
|
if (!a)
|
|
195
80
|
return e;
|
|
@@ -197,10 +82,10 @@ function Lo(e, t, n) {
|
|
|
197
82
|
return r <= 127 ? String.fromCharCode(r) : e;
|
|
198
83
|
}
|
|
199
84
|
function vr(e) {
|
|
200
|
-
const t = e.replace(
|
|
201
|
-
return
|
|
85
|
+
const t = e.replace(go, No).replace(ho, "").replace(_o, ":").replace(bo, "");
|
|
86
|
+
return po.test(t);
|
|
202
87
|
}
|
|
203
|
-
function
|
|
88
|
+
function Oo(e) {
|
|
204
89
|
const t = /url\s*\(/gi;
|
|
205
90
|
let n = "", a = 0, r;
|
|
206
91
|
for (; (r = t.exec(e)) !== null; ) {
|
|
@@ -227,13 +112,13 @@ function Co(e) {
|
|
|
227
112
|
return n + e.slice(a);
|
|
228
113
|
}
|
|
229
114
|
function Ur(e, t) {
|
|
230
|
-
if (
|
|
115
|
+
if (vo.test(e) && vr(t))
|
|
231
116
|
return "about:blank";
|
|
232
|
-
const n = e.toLowerCase() === "style" ?
|
|
233
|
-
return
|
|
117
|
+
const n = e.toLowerCase() === "style" ? Oo(t) : t;
|
|
118
|
+
return mo(n);
|
|
234
119
|
}
|
|
235
|
-
function
|
|
236
|
-
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (t, n, a) => `${n}="${Ur(n, a)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (t, n, a) => `${n}='${Ur(n, a)}'`),
|
|
120
|
+
function Lo(e) {
|
|
121
|
+
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (t, n, a) => `${n}="${Ur(n, a)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (t, n, a) => `${n}='${Ur(n, a)}'`), yo.test(e) && (process.env.NODE_ENV !== "production" && at("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(Eo, "$1on$2")), e = e.replace(To, (t, n, a, r) => vr(r) ? `${n}${a}about:blank` : t), e;
|
|
237
122
|
}
|
|
238
123
|
function Sn() {
|
|
239
124
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -269,7 +154,7 @@ function bn(e, t) {
|
|
|
269
154
|
* (c) 2026 kazuya kawaguchi
|
|
270
155
|
* Released under the MIT License.
|
|
271
156
|
*/
|
|
272
|
-
function
|
|
157
|
+
function Co(e, t, n) {
|
|
273
158
|
return { line: e, column: t, offset: n };
|
|
274
159
|
}
|
|
275
160
|
function Yn(e, t, n) {
|
|
@@ -296,7 +181,7 @@ const K = {
|
|
|
296
181
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
297
182
|
// minifier error codes
|
|
298
183
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
299
|
-
},
|
|
184
|
+
}, wo = 17, ko = {
|
|
300
185
|
// tokenizer error messages
|
|
301
186
|
[K.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
302
187
|
[K.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -319,18 +204,18 @@ const K = {
|
|
|
319
204
|
[K.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
320
205
|
};
|
|
321
206
|
function Qt(e, t, n = {}) {
|
|
322
|
-
const { domain: a, messages: r, args: s } = n, o = process.env.NODE_ENV !== "production" ? kn((r ||
|
|
207
|
+
const { domain: a, messages: r, args: s } = n, o = process.env.NODE_ENV !== "production" ? kn((r || ko)[e] || "", ...s || []) : e, l = new SyntaxError(String(o));
|
|
323
208
|
return l.code = e, t && (l.location = t), l.domain = a, l;
|
|
324
209
|
}
|
|
325
|
-
function
|
|
210
|
+
function So(e) {
|
|
326
211
|
throw e;
|
|
327
212
|
}
|
|
328
|
-
const
|
|
329
|
-
`,
|
|
330
|
-
function
|
|
213
|
+
const Io = /<\/?[\w\s="/.':;#-\/]+>/, Ao = (e) => Io.test(e), tt = " ", Do = "\r", Ae = `
|
|
214
|
+
`, xo = "\u2028", Po = "\u2029";
|
|
215
|
+
function Ro(e) {
|
|
331
216
|
const t = e;
|
|
332
217
|
let n = 0, a = 1, r = 1, s = 0;
|
|
333
|
-
const o = (
|
|
218
|
+
const o = (y) => t[y] === Do && t[y + 1] === Ae, l = (y) => t[y] === Ae, i = (y) => t[y] === Po, f = (y) => t[y] === xo, m = (y) => o(y) || l(y) || i(y) || f(y), v = () => n, p = () => a, g = () => r, E = () => s, O = (y) => o(y) || i(y) || f(y) ? Ae : t[y], L = () => O(n), d = () => O(n + s);
|
|
334
219
|
function _() {
|
|
335
220
|
return s = 0, m(n) && (a++, r = 0), o(n) && n++, n++, r++, t[n];
|
|
336
221
|
}
|
|
@@ -340,12 +225,12 @@ function Mo(e) {
|
|
|
340
225
|
function h() {
|
|
341
226
|
n = 0, a = 1, r = 1, s = 0;
|
|
342
227
|
}
|
|
343
|
-
function k(
|
|
344
|
-
s =
|
|
228
|
+
function k(y = 0) {
|
|
229
|
+
s = y;
|
|
345
230
|
}
|
|
346
231
|
function T() {
|
|
347
|
-
const
|
|
348
|
-
for (;
|
|
232
|
+
const y = n + s;
|
|
233
|
+
for (; y !== n; )
|
|
349
234
|
_();
|
|
350
235
|
s = 0;
|
|
351
236
|
}
|
|
@@ -364,9 +249,9 @@ function Mo(e) {
|
|
|
364
249
|
skipToPeek: T
|
|
365
250
|
};
|
|
366
251
|
}
|
|
367
|
-
const ct = void 0,
|
|
368
|
-
function
|
|
369
|
-
const n = t.location !== !1, a =
|
|
252
|
+
const ct = void 0, $o = ".", Wr = "'", Mo = "tokenizer";
|
|
253
|
+
function Vo(e, t = {}) {
|
|
254
|
+
const n = t.location !== !1, a = Ro(e), r = () => a.index(), s = () => Co(a.line(), a.column(), a.index()), o = s(), l = r(), i = {
|
|
370
255
|
currentType: 13,
|
|
371
256
|
offset: l,
|
|
372
257
|
startLoc: o,
|
|
@@ -379,20 +264,20 @@ function Uo(e, t = {}) {
|
|
|
379
264
|
inLinked: !1,
|
|
380
265
|
text: ""
|
|
381
266
|
}, f = () => i, { onError: m } = t;
|
|
382
|
-
function v(c, u,
|
|
267
|
+
function v(c, u, b, ...R) {
|
|
383
268
|
const Q = f();
|
|
384
|
-
if (u.column +=
|
|
269
|
+
if (u.column += b, u.offset += b, m) {
|
|
385
270
|
const pe = n ? Yn(Q.startLoc, u) : null, te = Qt(c, pe, {
|
|
386
|
-
domain:
|
|
271
|
+
domain: Mo,
|
|
387
272
|
args: R
|
|
388
273
|
});
|
|
389
274
|
m(te);
|
|
390
275
|
}
|
|
391
276
|
}
|
|
392
|
-
function p(c, u,
|
|
277
|
+
function p(c, u, b) {
|
|
393
278
|
c.endLoc = s(), c.currentType = u;
|
|
394
279
|
const R = { type: u };
|
|
395
|
-
return n && (R.loc = Yn(c.startLoc, c.endLoc)),
|
|
280
|
+
return n && (R.loc = Yn(c.startLoc, c.endLoc)), b != null && (R.value = b), R;
|
|
396
281
|
}
|
|
397
282
|
const g = (c) => p(
|
|
398
283
|
c,
|
|
@@ -427,56 +312,56 @@ function Uo(e, t = {}) {
|
|
|
427
312
|
return u >= 48 && u <= 57;
|
|
428
313
|
}
|
|
429
314
|
function w(c, u) {
|
|
430
|
-
const { currentType:
|
|
431
|
-
if (
|
|
315
|
+
const { currentType: b } = u;
|
|
316
|
+
if (b !== 2)
|
|
432
317
|
return !1;
|
|
433
318
|
O(c);
|
|
434
319
|
const R = d(c.currentPeek());
|
|
435
320
|
return c.resetPeek(), R;
|
|
436
321
|
}
|
|
437
322
|
function h(c, u) {
|
|
438
|
-
const { currentType:
|
|
439
|
-
if (
|
|
323
|
+
const { currentType: b } = u;
|
|
324
|
+
if (b !== 2)
|
|
440
325
|
return !1;
|
|
441
326
|
O(c);
|
|
442
327
|
const R = c.currentPeek() === "-" ? c.peek() : c.currentPeek(), Q = _(R);
|
|
443
328
|
return c.resetPeek(), Q;
|
|
444
329
|
}
|
|
445
330
|
function k(c, u) {
|
|
446
|
-
const { currentType:
|
|
447
|
-
if (
|
|
331
|
+
const { currentType: b } = u;
|
|
332
|
+
if (b !== 2)
|
|
448
333
|
return !1;
|
|
449
334
|
O(c);
|
|
450
335
|
const R = c.currentPeek() === Wr;
|
|
451
336
|
return c.resetPeek(), R;
|
|
452
337
|
}
|
|
453
338
|
function T(c, u) {
|
|
454
|
-
const { currentType:
|
|
455
|
-
if (
|
|
339
|
+
const { currentType: b } = u;
|
|
340
|
+
if (b !== 7)
|
|
456
341
|
return !1;
|
|
457
342
|
O(c);
|
|
458
343
|
const R = c.currentPeek() === ".";
|
|
459
344
|
return c.resetPeek(), R;
|
|
460
345
|
}
|
|
461
|
-
function
|
|
462
|
-
const { currentType:
|
|
463
|
-
if (
|
|
346
|
+
function y(c, u) {
|
|
347
|
+
const { currentType: b } = u;
|
|
348
|
+
if (b !== 8)
|
|
464
349
|
return !1;
|
|
465
350
|
O(c);
|
|
466
351
|
const R = d(c.currentPeek());
|
|
467
352
|
return c.resetPeek(), R;
|
|
468
353
|
}
|
|
469
354
|
function F(c, u) {
|
|
470
|
-
const { currentType:
|
|
471
|
-
if (!(
|
|
355
|
+
const { currentType: b } = u;
|
|
356
|
+
if (!(b === 7 || b === 11))
|
|
472
357
|
return !1;
|
|
473
358
|
O(c);
|
|
474
359
|
const R = c.currentPeek() === ":";
|
|
475
360
|
return c.resetPeek(), R;
|
|
476
361
|
}
|
|
477
362
|
function W(c, u) {
|
|
478
|
-
const { currentType:
|
|
479
|
-
if (
|
|
363
|
+
const { currentType: b } = u;
|
|
364
|
+
if (b !== 9)
|
|
480
365
|
return !1;
|
|
481
366
|
const R = () => {
|
|
482
367
|
const pe = c.currentPeek();
|
|
@@ -490,15 +375,15 @@ function Uo(e, t = {}) {
|
|
|
490
375
|
return c.resetPeek(), u;
|
|
491
376
|
}
|
|
492
377
|
function H(c, u = !0) {
|
|
493
|
-
const
|
|
378
|
+
const b = (Q = !1, pe = "") => {
|
|
494
379
|
const te = c.currentPeek();
|
|
495
|
-
return te === "{" || te === "@" || !te ? Q : te === "|" ? !(pe === tt || pe === Ae) : te === tt ? (c.peek(),
|
|
496
|
-
}, R =
|
|
380
|
+
return te === "{" || te === "@" || !te ? Q : te === "|" ? !(pe === tt || pe === Ae) : te === tt ? (c.peek(), b(!0, tt)) : te === Ae ? (c.peek(), b(!0, Ae)) : !0;
|
|
381
|
+
}, R = b();
|
|
497
382
|
return u && c.resetPeek(), R;
|
|
498
383
|
}
|
|
499
384
|
function z(c, u) {
|
|
500
|
-
const
|
|
501
|
-
return
|
|
385
|
+
const b = c.currentChar();
|
|
386
|
+
return b === ct ? ct : u(b) ? (c.next(), b) : null;
|
|
502
387
|
}
|
|
503
388
|
function V(c) {
|
|
504
389
|
const u = c.charCodeAt(0);
|
|
@@ -540,46 +425,46 @@ function Uo(e, t = {}) {
|
|
|
540
425
|
return z(c, B);
|
|
541
426
|
}
|
|
542
427
|
function oe(c) {
|
|
543
|
-
let u = "",
|
|
428
|
+
let u = "", b = "";
|
|
544
429
|
for (; u = P(c); )
|
|
545
|
-
|
|
546
|
-
return
|
|
430
|
+
b += u;
|
|
431
|
+
return b;
|
|
547
432
|
}
|
|
548
433
|
function le(c) {
|
|
549
434
|
let u = "";
|
|
550
435
|
for (; ; ) {
|
|
551
|
-
const
|
|
552
|
-
if (
|
|
436
|
+
const b = c.currentChar();
|
|
437
|
+
if (b === "\\") {
|
|
553
438
|
const R = c.peek();
|
|
554
|
-
R === "{" || R === "}" || R === "@" || R === "|" || R === "\\" ? (u +=
|
|
439
|
+
R === "{" || R === "}" || R === "@" || R === "|" || R === "\\" ? (u += b + R, c.next(), c.next()) : (c.resetPeek(), u += b, c.next());
|
|
555
440
|
} else {
|
|
556
|
-
if (
|
|
441
|
+
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
557
442
|
break;
|
|
558
|
-
if (
|
|
443
|
+
if (b === tt || b === Ae)
|
|
559
444
|
if (H(c))
|
|
560
|
-
u +=
|
|
445
|
+
u += b, c.next();
|
|
561
446
|
else {
|
|
562
447
|
if (G(c))
|
|
563
448
|
break;
|
|
564
|
-
u +=
|
|
449
|
+
u += b, c.next();
|
|
565
450
|
}
|
|
566
451
|
else
|
|
567
|
-
u +=
|
|
452
|
+
u += b, c.next();
|
|
568
453
|
}
|
|
569
454
|
}
|
|
570
455
|
return u;
|
|
571
456
|
}
|
|
572
457
|
function Ce(c) {
|
|
573
458
|
L(c);
|
|
574
|
-
let u = "",
|
|
459
|
+
let u = "", b = "";
|
|
575
460
|
for (; u = N(c); )
|
|
576
|
-
|
|
461
|
+
b += u;
|
|
577
462
|
const R = c.currentChar();
|
|
578
463
|
if (R && R !== "}" && R !== ct && R !== tt && R !== Ae && R !== " ") {
|
|
579
464
|
const Q = Ie(c);
|
|
580
|
-
return v(K.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0,
|
|
465
|
+
return v(K.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, b + Q), b + Q;
|
|
581
466
|
}
|
|
582
|
-
return c.currentChar() === ct && v(K.UNTERMINATED_CLOSING_BRACE, s(), 0),
|
|
467
|
+
return c.currentChar() === ct && v(K.UNTERMINATED_CLOSING_BRACE, s(), 0), b;
|
|
583
468
|
}
|
|
584
469
|
function Re(c) {
|
|
585
470
|
L(c);
|
|
@@ -591,11 +476,11 @@ function Uo(e, t = {}) {
|
|
|
591
476
|
}
|
|
592
477
|
function xe(c) {
|
|
593
478
|
L(c), E(c, "'");
|
|
594
|
-
let u = "",
|
|
479
|
+
let u = "", b = "";
|
|
595
480
|
for (; u = z(c, ke); )
|
|
596
|
-
u === "\\" ?
|
|
481
|
+
u === "\\" ? b += $(c) : b += u;
|
|
597
482
|
const R = c.currentChar();
|
|
598
|
-
return R === Ae || R === ct ? (v(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), R === Ae && (c.next(), E(c, "'")),
|
|
483
|
+
return R === Ae || R === ct ? (v(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), R === Ae && (c.next(), E(c, "'")), b) : (E(c, "'"), b);
|
|
599
484
|
}
|
|
600
485
|
function $(c) {
|
|
601
486
|
const u = c.currentChar();
|
|
@@ -611,10 +496,10 @@ function Uo(e, t = {}) {
|
|
|
611
496
|
return v(K.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, u), "";
|
|
612
497
|
}
|
|
613
498
|
}
|
|
614
|
-
function me(c, u,
|
|
499
|
+
function me(c, u, b) {
|
|
615
500
|
E(c, u);
|
|
616
501
|
let R = "";
|
|
617
|
-
for (let Q = 0; Q <
|
|
502
|
+
for (let Q = 0; Q < b; Q++) {
|
|
618
503
|
const pe = Y(c);
|
|
619
504
|
if (!pe) {
|
|
620
505
|
v(K.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${u}${R}${c.currentChar()}`);
|
|
@@ -629,21 +514,21 @@ function Uo(e, t = {}) {
|
|
|
629
514
|
}
|
|
630
515
|
function Ie(c) {
|
|
631
516
|
L(c);
|
|
632
|
-
let u = "",
|
|
517
|
+
let u = "", b = "";
|
|
633
518
|
for (; u = z(c, ye); )
|
|
634
|
-
|
|
635
|
-
return
|
|
519
|
+
b += u;
|
|
520
|
+
return b;
|
|
636
521
|
}
|
|
637
522
|
function lt(c) {
|
|
638
|
-
let u = "",
|
|
523
|
+
let u = "", b = "";
|
|
639
524
|
for (; u = X(c); )
|
|
640
|
-
|
|
641
|
-
return
|
|
525
|
+
b += u;
|
|
526
|
+
return b;
|
|
642
527
|
}
|
|
643
528
|
function Et(c) {
|
|
644
|
-
const u = (
|
|
529
|
+
const u = (b) => {
|
|
645
530
|
const R = c.currentChar();
|
|
646
|
-
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === tt ?
|
|
531
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === tt ? b : (b += R, c.next(), u(b));
|
|
647
532
|
};
|
|
648
533
|
return u("");
|
|
649
534
|
}
|
|
@@ -657,48 +542,48 @@ function Uo(e, t = {}) {
|
|
|
657
542
|
return L(c), u;
|
|
658
543
|
}
|
|
659
544
|
function it(c, u) {
|
|
660
|
-
let
|
|
545
|
+
let b = null;
|
|
661
546
|
switch (c.currentChar()) {
|
|
662
547
|
case "{":
|
|
663
|
-
return u.braceNest >= 1 && v(K.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), c.next(),
|
|
548
|
+
return u.braceNest >= 1 && v(K.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), c.next(), b = p(
|
|
664
549
|
u,
|
|
665
550
|
2,
|
|
666
551
|
"{"
|
|
667
552
|
/* TokenChars.BraceLeft */
|
|
668
|
-
), L(c), u.braceNest++,
|
|
553
|
+
), L(c), u.braceNest++, b;
|
|
669
554
|
case "}":
|
|
670
|
-
return u.braceNest > 0 && u.currentType === 2 && v(K.EMPTY_PLACEHOLDER, s(), 0), c.next(),
|
|
555
|
+
return u.braceNest > 0 && u.currentType === 2 && v(K.EMPTY_PLACEHOLDER, s(), 0), c.next(), b = p(
|
|
671
556
|
u,
|
|
672
557
|
3,
|
|
673
558
|
"}"
|
|
674
559
|
/* TokenChars.BraceRight */
|
|
675
|
-
), u.braceNest--, u.braceNest > 0 && L(c), u.inLinked && u.braceNest === 0 && (u.inLinked = !1),
|
|
560
|
+
), u.braceNest--, u.braceNest > 0 && L(c), u.inLinked && u.braceNest === 0 && (u.inLinked = !1), b;
|
|
676
561
|
case "@":
|
|
677
|
-
return u.braceNest > 0 && v(K.UNTERMINATED_CLOSING_BRACE, s(), 0),
|
|
562
|
+
return u.braceNest > 0 && v(K.UNTERMINATED_CLOSING_BRACE, s(), 0), b = Ue(c, u) || g(u), u.braceNest = 0, b;
|
|
678
563
|
default: {
|
|
679
564
|
let Q = !0, pe = !0, te = !0;
|
|
680
565
|
if (G(c))
|
|
681
|
-
return u.braceNest > 0 && v(K.UNTERMINATED_CLOSING_BRACE, s(), 0),
|
|
566
|
+
return u.braceNest > 0 && v(K.UNTERMINATED_CLOSING_BRACE, s(), 0), b = p(u, 1, Ze(c)), u.braceNest = 0, u.inLinked = !1, b;
|
|
682
567
|
if (u.braceNest > 0 && (u.currentType === 4 || u.currentType === 5 || u.currentType === 6))
|
|
683
568
|
return v(K.UNTERMINATED_CLOSING_BRACE, s(), 0), u.braceNest = 0, et(c, u);
|
|
684
569
|
if (Q = w(c, u))
|
|
685
|
-
return
|
|
570
|
+
return b = p(u, 4, Ce(c)), L(c), b;
|
|
686
571
|
if (pe = h(c, u))
|
|
687
|
-
return
|
|
572
|
+
return b = p(u, 5, Re(c)), L(c), b;
|
|
688
573
|
if (te = k(c, u))
|
|
689
|
-
return
|
|
574
|
+
return b = p(u, 6, xe(c)), L(c), b;
|
|
690
575
|
if (!Q && !pe && !te)
|
|
691
|
-
return
|
|
576
|
+
return b = p(u, 12, Ie(c)), v(K.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, b.value), L(c), b;
|
|
692
577
|
break;
|
|
693
578
|
}
|
|
694
579
|
}
|
|
695
|
-
return
|
|
580
|
+
return b;
|
|
696
581
|
}
|
|
697
582
|
function Ue(c, u) {
|
|
698
|
-
const { currentType:
|
|
583
|
+
const { currentType: b } = u;
|
|
699
584
|
let R = null;
|
|
700
585
|
const Q = c.currentChar();
|
|
701
|
-
switch ((
|
|
586
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (Q === Ae || Q === tt) && v(K.INVALID_LINKED_FORMAT, s(), 0), Q) {
|
|
702
587
|
case "@":
|
|
703
588
|
return c.next(), R = p(
|
|
704
589
|
u,
|
|
@@ -721,11 +606,11 @@ function Uo(e, t = {}) {
|
|
|
721
606
|
/* TokenChars.LinkedDelimiter */
|
|
722
607
|
);
|
|
723
608
|
default:
|
|
724
|
-
return G(c) ? (R = p(u, 1, Ze(c)), u.braceNest = 0, u.inLinked = !1, R) : T(c, u) || F(c, u) ? (L(c), Ue(c, u)) :
|
|
609
|
+
return G(c) ? (R = p(u, 1, Ze(c)), u.braceNest = 0, u.inLinked = !1, R) : T(c, u) || F(c, u) ? (L(c), Ue(c, u)) : y(c, u) ? (L(c), p(u, 11, lt(c))) : W(c, u) ? (L(c), Q === "{" ? it(c, u) || R : p(u, 10, Et(c))) : (b === 7 && v(K.INVALID_LINKED_FORMAT, s(), 0), u.braceNest = 0, u.inLinked = !1, et(c, u));
|
|
725
610
|
}
|
|
726
611
|
}
|
|
727
612
|
function et(c, u) {
|
|
728
|
-
let
|
|
613
|
+
let b = {
|
|
729
614
|
type: 13
|
|
730
615
|
/* TokenTypes.EOF */
|
|
731
616
|
};
|
|
@@ -747,17 +632,17 @@ function Uo(e, t = {}) {
|
|
|
747
632
|
return Ue(c, u) || g(u);
|
|
748
633
|
default: {
|
|
749
634
|
if (G(c))
|
|
750
|
-
return
|
|
635
|
+
return b = p(u, 1, Ze(c)), u.braceNest = 0, u.inLinked = !1, b;
|
|
751
636
|
if (H(c))
|
|
752
637
|
return p(u, 0, le(c));
|
|
753
638
|
break;
|
|
754
639
|
}
|
|
755
640
|
}
|
|
756
|
-
return
|
|
641
|
+
return b;
|
|
757
642
|
}
|
|
758
643
|
function pt() {
|
|
759
|
-
const { currentType: c, offset: u, startLoc:
|
|
760
|
-
return i.lastType = c, i.lastOffset = u, i.lastStartLoc =
|
|
644
|
+
const { currentType: c, offset: u, startLoc: b, endLoc: R } = i;
|
|
645
|
+
return i.lastType = c, i.lastOffset = u, i.lastStartLoc = b, i.lastEndLoc = R, i.offset = r(), i.startLoc = s(), a.currentChar() === ct ? p(
|
|
761
646
|
i,
|
|
762
647
|
13
|
|
763
648
|
/* TokenTypes.EOF */
|
|
@@ -770,11 +655,11 @@ function Uo(e, t = {}) {
|
|
|
770
655
|
context: f
|
|
771
656
|
};
|
|
772
657
|
}
|
|
773
|
-
const
|
|
774
|
-
function
|
|
658
|
+
const Fo = "parser", Uo = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, Wo = /\\([\\@{}|])/g;
|
|
659
|
+
function Bo(e, t) {
|
|
775
660
|
return t;
|
|
776
661
|
}
|
|
777
|
-
function
|
|
662
|
+
function Ho(e, t, n) {
|
|
778
663
|
switch (e) {
|
|
779
664
|
case "\\\\":
|
|
780
665
|
return "\\";
|
|
@@ -787,13 +672,13 @@ function Go(e, t, n) {
|
|
|
787
672
|
}
|
|
788
673
|
}
|
|
789
674
|
}
|
|
790
|
-
function
|
|
675
|
+
function jo(e = {}) {
|
|
791
676
|
const t = e.location !== !1, { onError: n } = e;
|
|
792
677
|
function a(d, _, w, h, ...k) {
|
|
793
678
|
const T = d.currentPosition();
|
|
794
679
|
if (T.offset += h, T.column += h, n) {
|
|
795
|
-
const
|
|
796
|
-
domain:
|
|
680
|
+
const y = t ? Yn(w, T) : null, F = Qt(_, y, {
|
|
681
|
+
domain: Fo,
|
|
797
682
|
args: k
|
|
798
683
|
});
|
|
799
684
|
n(F);
|
|
@@ -808,7 +693,7 @@ function Yo(e = {}) {
|
|
|
808
693
|
}
|
|
809
694
|
function o(d, _) {
|
|
810
695
|
const w = d.context(), h = r(3, w.offset, w.startLoc);
|
|
811
|
-
return h.value = _.replace(
|
|
696
|
+
return h.value = _.replace(Wo, Bo), s(h, d.currentOffset(), d.currentPosition()), h;
|
|
812
697
|
}
|
|
813
698
|
function l(d, _) {
|
|
814
699
|
const w = d.context(), { lastOffset: h, lastStartLoc: k } = w, T = r(5, h, k);
|
|
@@ -820,7 +705,7 @@ function Yo(e = {}) {
|
|
|
820
705
|
}
|
|
821
706
|
function f(d, _) {
|
|
822
707
|
const w = d.context(), { lastOffset: h, lastStartLoc: k } = w, T = r(9, h, k);
|
|
823
|
-
return T.value = _.replace(
|
|
708
|
+
return T.value = _.replace(Uo, Ho), d.nextToken(), s(T, d.currentOffset(), d.currentPosition()), T;
|
|
824
709
|
}
|
|
825
710
|
function m(d) {
|
|
826
711
|
const _ = d.nextToken(), w = d.context(), { lastOffset: h, lastStartLoc: k } = w, T = r(8, h, k);
|
|
@@ -894,26 +779,26 @@ function Yo(e = {}) {
|
|
|
894
779
|
}
|
|
895
780
|
}
|
|
896
781
|
} while (_.currentType !== 13 && _.currentType !== 1);
|
|
897
|
-
const
|
|
898
|
-
return s(k,
|
|
782
|
+
const y = _.currentType === 1 ? _.lastOffset : d.currentOffset(), F = _.currentType === 1 ? _.lastEndLoc : d.currentPosition();
|
|
783
|
+
return s(k, y, F), k;
|
|
899
784
|
}
|
|
900
785
|
function E(d, _, w, h) {
|
|
901
786
|
const k = d.context();
|
|
902
787
|
let T = h.items.length === 0;
|
|
903
|
-
const
|
|
904
|
-
|
|
788
|
+
const y = r(1, _, w);
|
|
789
|
+
y.cases = [], y.cases.push(h);
|
|
905
790
|
do {
|
|
906
791
|
const F = g(d);
|
|
907
|
-
T || (T = F.items.length === 0),
|
|
792
|
+
T || (T = F.items.length === 0), y.cases.push(F);
|
|
908
793
|
} while (k.currentType !== 13);
|
|
909
|
-
return T && a(d, K.MUST_HAVE_MESSAGES_IN_PLURAL, w, 0), s(
|
|
794
|
+
return T && a(d, K.MUST_HAVE_MESSAGES_IN_PLURAL, w, 0), s(y, d.currentOffset(), d.currentPosition()), y;
|
|
910
795
|
}
|
|
911
796
|
function O(d) {
|
|
912
797
|
const _ = d.context(), { offset: w, startLoc: h } = _, k = g(d);
|
|
913
798
|
return _.currentType === 13 ? k : E(d, w, h, k);
|
|
914
799
|
}
|
|
915
800
|
function L(d) {
|
|
916
|
-
const _ =
|
|
801
|
+
const _ = Vo(d, Le({}, e)), w = _.context(), h = r(0, w.offset, w.startLoc);
|
|
917
802
|
return t && h.loc && (h.loc.source = d), h.body = O(_), e.onCacheKey && (h.cacheKey = e.onCacheKey(d)), w.currentType !== 13 && a(_, K.UNEXPECTED_LEXICAL_ANALYSIS, w.lastStartLoc, 0, d[w.offset] || ""), s(h, _.currentOffset(), _.currentPosition()), h;
|
|
918
803
|
}
|
|
919
804
|
return { parse: L };
|
|
@@ -924,7 +809,7 @@ function nt(e) {
|
|
|
924
809
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
925
810
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
926
811
|
}
|
|
927
|
-
function
|
|
812
|
+
function Go(e, t = {}) {
|
|
928
813
|
const n = {
|
|
929
814
|
ast: e,
|
|
930
815
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -976,8 +861,8 @@ function gr(e, t) {
|
|
|
976
861
|
break;
|
|
977
862
|
}
|
|
978
863
|
}
|
|
979
|
-
function
|
|
980
|
-
const n =
|
|
864
|
+
function Yo(e, t = {}) {
|
|
865
|
+
const n = Go(e);
|
|
981
866
|
n.helper(
|
|
982
867
|
"normalize"
|
|
983
868
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -985,7 +870,7 @@ function Ko(e, t = {}) {
|
|
|
985
870
|
const a = n.context();
|
|
986
871
|
e.helpers = Array.from(a.helpers);
|
|
987
872
|
}
|
|
988
|
-
function
|
|
873
|
+
function zo(e) {
|
|
989
874
|
const t = e.body;
|
|
990
875
|
return t.type === 2 ? Hr(t) : t.cases.forEach((n) => Hr(n)), e;
|
|
991
876
|
}
|
|
@@ -1010,7 +895,7 @@ function Hr(e) {
|
|
|
1010
895
|
}
|
|
1011
896
|
}
|
|
1012
897
|
}
|
|
1013
|
-
const
|
|
898
|
+
const Ko = "minifier";
|
|
1014
899
|
function Rt(e) {
|
|
1015
900
|
switch (e.t = e.type, e.type) {
|
|
1016
901
|
case 0: {
|
|
@@ -1058,14 +943,14 @@ function Rt(e) {
|
|
|
1058
943
|
default:
|
|
1059
944
|
if (process.env.NODE_ENV !== "production")
|
|
1060
945
|
throw Qt(K.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1061
|
-
domain:
|
|
946
|
+
domain: Ko,
|
|
1062
947
|
args: [e.type]
|
|
1063
948
|
});
|
|
1064
949
|
}
|
|
1065
950
|
delete e.type;
|
|
1066
951
|
}
|
|
1067
|
-
const
|
|
1068
|
-
function
|
|
952
|
+
const Xo = "parser";
|
|
953
|
+
function qo(e, t) {
|
|
1069
954
|
const { filename: n, breakLineCode: a, needIndent: r } = t, s = t.location !== !1, o = {
|
|
1070
955
|
filename: n,
|
|
1071
956
|
code: "",
|
|
@@ -1107,14 +992,14 @@ function Jo(e, t) {
|
|
|
1107
992
|
needIndent: () => o.needIndent
|
|
1108
993
|
};
|
|
1109
994
|
}
|
|
1110
|
-
function
|
|
995
|
+
function Qo(e, t) {
|
|
1111
996
|
const { helper: n } = e;
|
|
1112
997
|
e.push(`${n(
|
|
1113
998
|
"linked"
|
|
1114
999
|
/* HelperNameMap.LINKED */
|
|
1115
1000
|
)}(`), jt(e, t.key), t.modifier ? (e.push(", "), jt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1116
1001
|
}
|
|
1117
|
-
function
|
|
1002
|
+
function Jo(e, t) {
|
|
1118
1003
|
const { helper: n, needIndent: a } = e;
|
|
1119
1004
|
e.push(`${n(
|
|
1120
1005
|
"normalize"
|
|
@@ -1125,7 +1010,7 @@ function el(e, t) {
|
|
|
1125
1010
|
e.push(", ");
|
|
1126
1011
|
e.deindent(a()), e.push("])");
|
|
1127
1012
|
}
|
|
1128
|
-
function
|
|
1013
|
+
function Zo(e, t) {
|
|
1129
1014
|
const { helper: n, needIndent: a } = e;
|
|
1130
1015
|
if (t.cases.length > 1) {
|
|
1131
1016
|
e.push(`${n(
|
|
@@ -1138,23 +1023,23 @@ function tl(e, t) {
|
|
|
1138
1023
|
e.deindent(a()), e.push("])");
|
|
1139
1024
|
}
|
|
1140
1025
|
}
|
|
1141
|
-
function
|
|
1026
|
+
function el(e, t) {
|
|
1142
1027
|
t.body ? jt(e, t.body) : e.push("null");
|
|
1143
1028
|
}
|
|
1144
1029
|
function jt(e, t) {
|
|
1145
1030
|
const { helper: n } = e;
|
|
1146
1031
|
switch (t.type) {
|
|
1147
1032
|
case 0:
|
|
1148
|
-
|
|
1033
|
+
el(e, t);
|
|
1149
1034
|
break;
|
|
1150
1035
|
case 1:
|
|
1151
|
-
|
|
1036
|
+
Zo(e, t);
|
|
1152
1037
|
break;
|
|
1153
1038
|
case 2:
|
|
1154
|
-
|
|
1039
|
+
Jo(e, t);
|
|
1155
1040
|
break;
|
|
1156
1041
|
case 6:
|
|
1157
|
-
|
|
1042
|
+
Qo(e, t);
|
|
1158
1043
|
break;
|
|
1159
1044
|
case 8:
|
|
1160
1045
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1189,16 +1074,16 @@ function jt(e, t) {
|
|
|
1189
1074
|
default:
|
|
1190
1075
|
if (process.env.NODE_ENV !== "production")
|
|
1191
1076
|
throw Qt(K.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1192
|
-
domain:
|
|
1077
|
+
domain: Xo,
|
|
1193
1078
|
args: [t.type]
|
|
1194
1079
|
});
|
|
1195
1080
|
}
|
|
1196
1081
|
}
|
|
1197
|
-
const
|
|
1082
|
+
const tl = (e, t = {}) => {
|
|
1198
1083
|
const n = M(t.mode) ? t.mode : "normal", a = M(t.filename) ? t.filename : "message.intl";
|
|
1199
1084
|
t.sourceMap;
|
|
1200
1085
|
const r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1201
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], l =
|
|
1086
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], l = qo(e, {
|
|
1202
1087
|
filename: a,
|
|
1203
1088
|
breakLineCode: r,
|
|
1204
1089
|
needIndent: s
|
|
@@ -1212,35 +1097,35 @@ const rl = (e, t = {}) => {
|
|
|
1212
1097
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1213
1098
|
};
|
|
1214
1099
|
};
|
|
1215
|
-
function
|
|
1216
|
-
const n = Le({}, t), a = !!n.jit, r = !!n.minify, s = n.optimize == null ? !0 : n.optimize, l =
|
|
1217
|
-
return a ? (s &&
|
|
1100
|
+
function nl(e, t = {}) {
|
|
1101
|
+
const n = Le({}, t), a = !!n.jit, r = !!n.minify, s = n.optimize == null ? !0 : n.optimize, l = jo(n).parse(e);
|
|
1102
|
+
return a ? (s && zo(l), r && Rt(l), { ast: l, code: "" }) : (Yo(l, n), tl(l, n));
|
|
1218
1103
|
}
|
|
1219
1104
|
/*!
|
|
1220
1105
|
* core-base v11.4.8
|
|
1221
1106
|
* (c) 2026 kazuya kawaguchi
|
|
1222
1107
|
* Released under the MIT License.
|
|
1223
1108
|
*/
|
|
1224
|
-
function
|
|
1109
|
+
function rl() {
|
|
1225
1110
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Lt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Lt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1226
1111
|
}
|
|
1227
1112
|
function Ge(e) {
|
|
1228
1113
|
return re(e) && hr(e) === 0 && (je(e, "b") || je(e, "body"));
|
|
1229
1114
|
}
|
|
1230
1115
|
const Wa = ["b", "body"];
|
|
1231
|
-
function
|
|
1116
|
+
function al(e) {
|
|
1232
1117
|
return _t(e, Wa);
|
|
1233
1118
|
}
|
|
1234
1119
|
const Ba = ["c", "cases"];
|
|
1235
|
-
function
|
|
1120
|
+
function sl(e) {
|
|
1236
1121
|
return _t(e, Ba, []);
|
|
1237
1122
|
}
|
|
1238
1123
|
const Ha = ["s", "static"];
|
|
1239
|
-
function
|
|
1124
|
+
function ol(e) {
|
|
1240
1125
|
return _t(e, Ha);
|
|
1241
1126
|
}
|
|
1242
1127
|
const ja = ["i", "items"];
|
|
1243
|
-
function
|
|
1128
|
+
function ll(e) {
|
|
1244
1129
|
return _t(e, ja, []);
|
|
1245
1130
|
}
|
|
1246
1131
|
const Ga = ["t", "type"];
|
|
@@ -1255,11 +1140,11 @@ function gn(e, t) {
|
|
|
1255
1140
|
throw on(t);
|
|
1256
1141
|
}
|
|
1257
1142
|
const za = ["m", "modifier"];
|
|
1258
|
-
function
|
|
1143
|
+
function il(e) {
|
|
1259
1144
|
return _t(e, za);
|
|
1260
1145
|
}
|
|
1261
1146
|
const Ka = ["k", "key"];
|
|
1262
|
-
function
|
|
1147
|
+
function cl(e) {
|
|
1263
1148
|
const t = _t(e, Ka);
|
|
1264
1149
|
if (t)
|
|
1265
1150
|
return t;
|
|
@@ -1290,17 +1175,17 @@ function on(e) {
|
|
|
1290
1175
|
return new Error(`unhandled node type: ${e}`);
|
|
1291
1176
|
}
|
|
1292
1177
|
function Pn(e) {
|
|
1293
|
-
return (n) =>
|
|
1178
|
+
return (n) => ul(n, e);
|
|
1294
1179
|
}
|
|
1295
|
-
function
|
|
1296
|
-
const n =
|
|
1180
|
+
function ul(e, t) {
|
|
1181
|
+
const n = al(t);
|
|
1297
1182
|
if (n == null)
|
|
1298
1183
|
throw on(
|
|
1299
1184
|
0
|
|
1300
1185
|
/* NodeTypes.Resource */
|
|
1301
1186
|
);
|
|
1302
1187
|
if (hr(n) === 1) {
|
|
1303
|
-
const s =
|
|
1188
|
+
const s = sl(n);
|
|
1304
1189
|
return e.plural(s.reduce((o, l) => [
|
|
1305
1190
|
...o,
|
|
1306
1191
|
jr(e, l)
|
|
@@ -1309,11 +1194,11 @@ function fl(e, t) {
|
|
|
1309
1194
|
return jr(e, n);
|
|
1310
1195
|
}
|
|
1311
1196
|
function jr(e, t) {
|
|
1312
|
-
const n =
|
|
1197
|
+
const n = ol(t);
|
|
1313
1198
|
if (n != null)
|
|
1314
1199
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1315
1200
|
{
|
|
1316
|
-
const a =
|
|
1201
|
+
const a = ll(t).reduce((r, s) => [...r, zn(e, s)], []);
|
|
1317
1202
|
return e.normalize(a);
|
|
1318
1203
|
}
|
|
1319
1204
|
}
|
|
@@ -1341,7 +1226,7 @@ function zn(e, t) {
|
|
|
1341
1226
|
throw on(n);
|
|
1342
1227
|
}
|
|
1343
1228
|
case 6: {
|
|
1344
|
-
const a = t, r =
|
|
1229
|
+
const a = t, r = il(a), s = cl(a);
|
|
1345
1230
|
return e.linked(zn(e, s), r ? zn(e, r) : void 0, e.type);
|
|
1346
1231
|
}
|
|
1347
1232
|
case 7:
|
|
@@ -1352,28 +1237,28 @@ function zn(e, t) {
|
|
|
1352
1237
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1353
1238
|
}
|
|
1354
1239
|
}
|
|
1355
|
-
const
|
|
1356
|
-
function
|
|
1357
|
-
t &&
|
|
1240
|
+
const dl = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1241
|
+
function fl(e, t) {
|
|
1242
|
+
t && Ao(e) && at(kn(dl, { source: e }));
|
|
1358
1243
|
}
|
|
1359
|
-
const
|
|
1244
|
+
const ml = (e) => e;
|
|
1360
1245
|
let hn = ie();
|
|
1361
|
-
function
|
|
1246
|
+
function pl(e, t = {}) {
|
|
1362
1247
|
let n = !1;
|
|
1363
|
-
const a = t.onError ||
|
|
1248
|
+
const a = t.onError || So;
|
|
1364
1249
|
return t.onError = (r) => {
|
|
1365
1250
|
n = !0, a(r);
|
|
1366
|
-
}, { ...
|
|
1251
|
+
}, { ...nl(e, t), detectError: n };
|
|
1367
1252
|
}
|
|
1368
1253
|
// @__NO_SIDE_EFFECTS__
|
|
1369
|
-
function
|
|
1254
|
+
function vl(e, t) {
|
|
1370
1255
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && M(e)) {
|
|
1371
1256
|
const n = ae(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1372
|
-
process.env.NODE_ENV !== "production" &&
|
|
1373
|
-
const r = (t.onCacheKey ||
|
|
1257
|
+
process.env.NODE_ENV !== "production" && fl(e, n);
|
|
1258
|
+
const r = (t.onCacheKey || ml)(e), s = hn[r];
|
|
1374
1259
|
if (s)
|
|
1375
1260
|
return s;
|
|
1376
|
-
const { ast: o, detectError: l } =
|
|
1261
|
+
const { ast: o, detectError: l } = pl(e, {
|
|
1377
1262
|
...t,
|
|
1378
1263
|
location: process.env.NODE_ENV !== "production",
|
|
1379
1264
|
jit: !0
|
|
@@ -1391,10 +1276,10 @@ function hl(e, t) {
|
|
|
1391
1276
|
}
|
|
1392
1277
|
}
|
|
1393
1278
|
let ln = null;
|
|
1394
|
-
function
|
|
1279
|
+
function gl(e) {
|
|
1395
1280
|
ln = e;
|
|
1396
1281
|
}
|
|
1397
|
-
function
|
|
1282
|
+
function hl(e, t, n) {
|
|
1398
1283
|
ln && ln.emit("i18n:init", {
|
|
1399
1284
|
timestamp: Date.now(),
|
|
1400
1285
|
i18n: e,
|
|
@@ -1402,12 +1287,12 @@ function bl(e, t, n) {
|
|
|
1402
1287
|
meta: n
|
|
1403
1288
|
});
|
|
1404
1289
|
}
|
|
1405
|
-
const
|
|
1406
|
-
function
|
|
1290
|
+
const _l = /* @__PURE__ */ bl("function:translate");
|
|
1291
|
+
function bl(e) {
|
|
1407
1292
|
return (t) => ln && ln.emit(e, t);
|
|
1408
1293
|
}
|
|
1409
1294
|
const De = {
|
|
1410
|
-
INVALID_ARGUMENT:
|
|
1295
|
+
INVALID_ARGUMENT: wo,
|
|
1411
1296
|
// 17
|
|
1412
1297
|
INVALID_DATE_ARGUMENT: 18,
|
|
1413
1298
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1415,11 +1300,11 @@ const De = {
|
|
|
1415
1300
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1416
1301
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1417
1302
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1418
|
-
},
|
|
1303
|
+
}, yl = 24;
|
|
1419
1304
|
function ut(e) {
|
|
1420
|
-
return Qt(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1305
|
+
return Qt(e, null, process.env.NODE_ENV !== "production" ? { messages: El } : void 0);
|
|
1421
1306
|
}
|
|
1422
|
-
const
|
|
1307
|
+
const El = {
|
|
1423
1308
|
[De.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1424
1309
|
[De.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1425
1310
|
[De.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1440,7 +1325,7 @@ function Gr(e) {
|
|
|
1440
1325
|
return Rn;
|
|
1441
1326
|
if (e.constructor.name === "Function") {
|
|
1442
1327
|
const t = e();
|
|
1443
|
-
if (
|
|
1328
|
+
if (co(t))
|
|
1444
1329
|
throw ut(De.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1445
1330
|
return Rn = t;
|
|
1446
1331
|
} else
|
|
@@ -1448,7 +1333,7 @@ function Gr(e) {
|
|
|
1448
1333
|
} else
|
|
1449
1334
|
throw ut(De.NOT_SUPPORT_LOCALE_TYPE);
|
|
1450
1335
|
}
|
|
1451
|
-
function
|
|
1336
|
+
function Tl(e, t, n) {
|
|
1452
1337
|
return [.../* @__PURE__ */ new Set([
|
|
1453
1338
|
n,
|
|
1454
1339
|
...Te(t) ? t : re(t) ? Object.keys(t) : M(t) ? [t] : [n]
|
|
@@ -1472,20 +1357,20 @@ function Yr(e, t, n) {
|
|
|
1472
1357
|
let a = !0;
|
|
1473
1358
|
for (let r = 0; r < t.length && ae(a); r++) {
|
|
1474
1359
|
const s = t[r];
|
|
1475
|
-
M(s) && (a =
|
|
1360
|
+
M(s) && (a = Nl(e, t[r], n));
|
|
1476
1361
|
}
|
|
1477
1362
|
return a;
|
|
1478
1363
|
}
|
|
1479
|
-
function
|
|
1364
|
+
function Nl(e, t, n) {
|
|
1480
1365
|
let a;
|
|
1481
1366
|
const r = t.split("-");
|
|
1482
1367
|
do {
|
|
1483
1368
|
const s = r.join("-");
|
|
1484
|
-
a =
|
|
1369
|
+
a = Ol(e, s, n), r.splice(-1, 1);
|
|
1485
1370
|
} while (r.length && a === !0);
|
|
1486
1371
|
return a;
|
|
1487
1372
|
}
|
|
1488
|
-
function
|
|
1373
|
+
function Ol(e, t, n) {
|
|
1489
1374
|
let a = !1;
|
|
1490
1375
|
if (!e.includes(t) && (a = !0, t)) {
|
|
1491
1376
|
a = t[t.length - 1] !== "!";
|
|
@@ -1655,15 +1540,15 @@ bt[
|
|
|
1655
1540
|
/* Actions.APPEND */
|
|
1656
1541
|
]
|
|
1657
1542
|
};
|
|
1658
|
-
const
|
|
1659
|
-
function
|
|
1660
|
-
return
|
|
1543
|
+
const Ll = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1544
|
+
function Cl(e) {
|
|
1545
|
+
return Ll.test(e);
|
|
1661
1546
|
}
|
|
1662
|
-
function
|
|
1547
|
+
function wl(e) {
|
|
1663
1548
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1664
1549
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1665
1550
|
}
|
|
1666
|
-
function
|
|
1551
|
+
function kl(e) {
|
|
1667
1552
|
if (e == null)
|
|
1668
1553
|
return "o";
|
|
1669
1554
|
switch (e.charCodeAt(0)) {
|
|
@@ -1700,11 +1585,11 @@ function Il(e) {
|
|
|
1700
1585
|
}
|
|
1701
1586
|
return "i";
|
|
1702
1587
|
}
|
|
1703
|
-
function
|
|
1588
|
+
function Sl(e) {
|
|
1704
1589
|
const t = e.trim();
|
|
1705
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1590
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Cl(t) ? wl(t) : "*" + t;
|
|
1706
1591
|
}
|
|
1707
|
-
function
|
|
1592
|
+
function Il(e) {
|
|
1708
1593
|
const t = [];
|
|
1709
1594
|
let n = -1, a = 0, r = 0, s, o, l, i, f, m, v;
|
|
1710
1595
|
const p = [];
|
|
@@ -1736,7 +1621,7 @@ function Dl(e) {
|
|
|
1736
1621
|
/* Actions.APPEND */
|
|
1737
1622
|
]();
|
|
1738
1623
|
else {
|
|
1739
|
-
if (r = 0, o === void 0 || (o =
|
|
1624
|
+
if (r = 0, o === void 0 || (o = Sl(o), o === !1))
|
|
1740
1625
|
return !1;
|
|
1741
1626
|
p[
|
|
1742
1627
|
1
|
|
@@ -1754,21 +1639,21 @@ function Dl(e) {
|
|
|
1754
1639
|
}
|
|
1755
1640
|
for (; a !== null; )
|
|
1756
1641
|
if (n++, s = e[n], !(s === "\\" && g())) {
|
|
1757
|
-
if (i =
|
|
1642
|
+
if (i = kl(s), v = bt[a], f = v[i] || v.l || 8, f === 8 || (a = f[0], f[1] !== void 0 && (m = p[f[1]], m && (l = s, m() === !1))))
|
|
1758
1643
|
return;
|
|
1759
1644
|
if (a === 7)
|
|
1760
1645
|
return t;
|
|
1761
1646
|
}
|
|
1762
1647
|
}
|
|
1763
1648
|
const zr = /* @__PURE__ */ new Map();
|
|
1764
|
-
function
|
|
1649
|
+
function Al(e, t) {
|
|
1765
1650
|
return re(e) ? e[t] : null;
|
|
1766
1651
|
}
|
|
1767
|
-
function
|
|
1652
|
+
function Dl(e, t) {
|
|
1768
1653
|
if (!re(e))
|
|
1769
1654
|
return null;
|
|
1770
1655
|
let n = zr.get(t);
|
|
1771
|
-
if (n || (n =
|
|
1656
|
+
if (n || (n = Il(t), n && zr.set(t, n)), !n)
|
|
1772
1657
|
return null;
|
|
1773
1658
|
const a = n.length;
|
|
1774
1659
|
let r = e, s = 0;
|
|
@@ -1793,7 +1678,7 @@ const we = {
|
|
|
1793
1678
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
|
|
1794
1679
|
INVALID_NUMBER_ARGUMENT: 8,
|
|
1795
1680
|
INVALID_DATE_ARGUMENT: 9
|
|
1796
|
-
}, xt = 10,
|
|
1681
|
+
}, xt = 10, xl = {
|
|
1797
1682
|
[we.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1798
1683
|
[we.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1799
1684
|
[we.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1805,10 +1690,10 @@ const we = {
|
|
|
1805
1690
|
[we.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
1806
1691
|
};
|
|
1807
1692
|
function ht(e, ...t) {
|
|
1808
|
-
return kn(
|
|
1693
|
+
return kn(xl[e], ...t);
|
|
1809
1694
|
}
|
|
1810
|
-
const
|
|
1811
|
-
function
|
|
1695
|
+
const Pl = "11.4.8", In = -1, cn = "en-US", Gt = "", Kr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1696
|
+
function Rl() {
|
|
1812
1697
|
return {
|
|
1813
1698
|
upper: (e, t) => t === "text" && M(e) ? e.toUpperCase() : t === "vnode" && re(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1814
1699
|
lower: (e, t) => t === "text" && M(e) ? e.toLowerCase() : t === "vnode" && re(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1816,30 +1701,30 @@ function Ml() {
|
|
|
1816
1701
|
};
|
|
1817
1702
|
}
|
|
1818
1703
|
let qa;
|
|
1819
|
-
function
|
|
1704
|
+
function $l(e) {
|
|
1820
1705
|
qa = e;
|
|
1821
1706
|
}
|
|
1822
1707
|
let Qa;
|
|
1823
|
-
function
|
|
1708
|
+
function Ml(e) {
|
|
1824
1709
|
Qa = e;
|
|
1825
1710
|
}
|
|
1826
1711
|
let Ja;
|
|
1827
|
-
function
|
|
1712
|
+
function Vl(e) {
|
|
1828
1713
|
Ja = e;
|
|
1829
1714
|
}
|
|
1830
1715
|
let Za = null;
|
|
1831
|
-
const
|
|
1716
|
+
const Fl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1832
1717
|
Za = e;
|
|
1833
|
-
},
|
|
1718
|
+
}, Ul = /* @__NO_SIDE_EFFECTS__ */ () => Za;
|
|
1834
1719
|
let es = null;
|
|
1835
1720
|
const Xr = (e) => {
|
|
1836
1721
|
es = e;
|
|
1837
|
-
},
|
|
1722
|
+
}, Wl = () => es;
|
|
1838
1723
|
let qr = 0;
|
|
1839
|
-
function
|
|
1840
|
-
const t = ve(e.onWarn) ? e.onWarn : at, n = M(e.version) ? e.version :
|
|
1724
|
+
function Bl(e = {}) {
|
|
1725
|
+
const t = ve(e.onWarn) ? e.onWarn : at, n = M(e.version) ? e.version : Pl, a = M(e.locale) || ve(e.locale) ? e.locale : cn, r = ve(a) ? cn : a, s = Te(e.fallbackLocale) || se(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = se(e.messages) ? e.messages : $n(r), l = se(e.datetimeFormats) ? e.datetimeFormats : $n(r), i = se(e.numberFormats) ? e.numberFormats : $n(r), f = Le(ie(), e.modifiers, Rl()), m = e.pluralRules || ie(), v = ve(e.missing) ? e.missing : null, p = ae(e.missingWarn) || Ht(e.missingWarn) ? e.missingWarn : !0, g = ae(e.fallbackWarn) || Ht(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, O = !!e.unresolving, L = ve(e.postTranslation) ? e.postTranslation : null, d = se(e.processor) ? e.processor : null, _ = ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, w = !!e.escapeParameter, h = ve(e.messageCompiler) ? e.messageCompiler : qa;
|
|
1841
1726
|
process.env.NODE_ENV !== "production" && ve(e.messageCompiler) && pr(ht(we.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1842
|
-
const k = ve(e.messageResolver) ? e.messageResolver : Qa ||
|
|
1727
|
+
const k = ve(e.messageResolver) ? e.messageResolver : Qa || Al, T = ve(e.localeFallbacker) ? e.localeFallbacker : Ja || Tl, y = re(e.fallbackContext) ? e.fallbackContext : void 0, F = e, W = re(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), G = re(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(), H = re(F.__meta) ? F.__meta : {};
|
|
1843
1728
|
qr++;
|
|
1844
1729
|
const z = {
|
|
1845
1730
|
version: n,
|
|
@@ -1861,11 +1746,11 @@ function jl(e = {}) {
|
|
|
1861
1746
|
messageCompiler: h,
|
|
1862
1747
|
messageResolver: k,
|
|
1863
1748
|
localeFallbacker: T,
|
|
1864
|
-
fallbackContext:
|
|
1749
|
+
fallbackContext: y,
|
|
1865
1750
|
onWarn: t,
|
|
1866
1751
|
__meta: H
|
|
1867
1752
|
};
|
|
1868
|
-
return z.datetimeFormats = l, z.numberFormats = i, z.__datetimeFormatters = W, z.__numberFormatters = G, process.env.NODE_ENV !== "production" && (z.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1753
|
+
return z.datetimeFormats = l, z.numberFormats = i, z.__datetimeFormatters = W, z.__numberFormatters = G, process.env.NODE_ENV !== "production" && (z.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && hl(z, n, H), z;
|
|
1869
1754
|
}
|
|
1870
1755
|
const $n = (e) => ({ [e]: ie() });
|
|
1871
1756
|
function br(e, t) {
|
|
@@ -1898,7 +1783,7 @@ function Jt(e, t, n) {
|
|
|
1898
1783
|
function rs(e, t) {
|
|
1899
1784
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1900
1785
|
}
|
|
1901
|
-
function
|
|
1786
|
+
function Hl(e, t) {
|
|
1902
1787
|
const n = t.indexOf(e);
|
|
1903
1788
|
if (n === -1)
|
|
1904
1789
|
return !1;
|
|
@@ -2081,23 +1966,23 @@ function qn(...e) {
|
|
|
2081
1966
|
function ta(e, t, n) {
|
|
2082
1967
|
os(e.__numberFormatters, t, n);
|
|
2083
1968
|
}
|
|
2084
|
-
const
|
|
1969
|
+
const jl = (e) => e, Gl = (e) => "", Yl = "text", zl = (e) => e.length === 0 ? "" : mr(e), Kl = uo;
|
|
2085
1970
|
function Mn(e, t) {
|
|
2086
1971
|
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
2087
1972
|
}
|
|
2088
|
-
function
|
|
1973
|
+
function Xl(e) {
|
|
2089
1974
|
const t = Oe(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2090
1975
|
return Oe(e.named?.count) ? e.named.count : Oe(e.named?.n) ? e.named.n : t;
|
|
2091
1976
|
}
|
|
2092
|
-
function
|
|
2093
|
-
const t = e.locale, n =
|
|
1977
|
+
function ql(e = {}) {
|
|
1978
|
+
const t = e.locale, n = Xl(e), a = M(t) && ve(e.pluralRules?.[t]) ? e.pluralRules[t] : Mn, r = a === Mn ? void 0 : Mn, s = (d) => d[a(n, d.length, r)], o = e.list || [], l = (d) => o[d], i = e.named || ie();
|
|
2094
1979
|
Oe(e.pluralIndex) && (i.count ||= e.pluralIndex, i.n ||= e.pluralIndex);
|
|
2095
1980
|
const f = (d) => i[d];
|
|
2096
1981
|
function m(d, _) {
|
|
2097
1982
|
const w = ve(e.messages) ? e.messages(d, !!_) : re(e.messages) ? e.messages[d] : !1;
|
|
2098
|
-
return w || (e.parent ? e.parent.message(d) :
|
|
1983
|
+
return w || (e.parent ? e.parent.message(d) : Gl);
|
|
2099
1984
|
}
|
|
2100
|
-
const v = (d) => e.modifiers ? e.modifiers[d] :
|
|
1985
|
+
const v = (d) => e.modifiers ? e.modifiers[d] : jl, p = ve(e.processor?.normalize) ? e.processor.normalize : zl, g = ve(e.processor?.interpolate) ? e.processor.interpolate : Kl, E = M(e.processor?.type) ? e.processor.type : Yl, L = {
|
|
2101
1986
|
list: l,
|
|
2102
1987
|
named: f,
|
|
2103
1988
|
plural: s,
|
|
@@ -2105,7 +1990,7 @@ function Jl(e = {}) {
|
|
|
2105
1990
|
const [w, h] = _;
|
|
2106
1991
|
let k = "text", T = "";
|
|
2107
1992
|
_.length === 1 ? re(w) ? (T = w.modifier || T, k = w.type || k) : M(w) && (T = w || T) : _.length === 2 && (M(w) && (T = w || T), M(h) && (k = h || k));
|
|
2108
|
-
const
|
|
1993
|
+
const y = m(d, !0)(L), F = y === "" || y === void 0 ? d : y, W = (
|
|
2109
1994
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2110
1995
|
k === "vnode" && Te(F) && T ? F[0] : F
|
|
2111
1996
|
);
|
|
@@ -2122,7 +2007,7 @@ function Jl(e = {}) {
|
|
|
2122
2007
|
const na = () => "", Be = (e) => ve(e);
|
|
2123
2008
|
function ra(e, ...t) {
|
|
2124
2009
|
const { fallbackFormat: n, postTranslation: a, unresolving: r, messageCompiler: s, fallbackLocale: o, messages: l } = e, [i, f] = Qn(...t), m = ae(f.missingWarn) ? f.missingWarn : e.missingWarn, v = ae(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, p = ae(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, g = !!f.resolvedMessage, E = M(f.default) || ae(f.default) ? ae(f.default) ? s ? i : () => i : f.default : n ? s ? i : () => i : null, O = n || E != null && (M(E) || ve(E)), L = _r(e, f);
|
|
2125
|
-
p &&
|
|
2010
|
+
p && Ql(f);
|
|
2126
2011
|
let [d, _, w] = g ? [
|
|
2127
2012
|
i,
|
|
2128
2013
|
L,
|
|
@@ -2133,14 +2018,14 @@ function ra(e, ...t) {
|
|
|
2133
2018
|
if (process.env.NODE_ENV !== "production" && M(h) && e.messageCompiler == null)
|
|
2134
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;
|
|
2135
2020
|
let T = !1;
|
|
2136
|
-
const
|
|
2021
|
+
const y = () => {
|
|
2137
2022
|
T = !0;
|
|
2138
|
-
}, F = Be(h) ? h : fs(e, i, _, h, k,
|
|
2023
|
+
}, F = Be(h) ? h : fs(e, i, _, h, k, y);
|
|
2139
2024
|
if (T)
|
|
2140
2025
|
return h;
|
|
2141
|
-
const W =
|
|
2026
|
+
const W = ti(e, _, w, f), G = ql(W), H = Jl(e, F, G);
|
|
2142
2027
|
let z = a ? a(H, i) : H;
|
|
2143
|
-
if (p && M(z) && (z =
|
|
2028
|
+
if (p && M(z) && (z = Lo(z)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2144
2029
|
const V = {
|
|
2145
2030
|
timestamp: Date.now(),
|
|
2146
2031
|
key: M(i) ? i : Be(h) ? h.key : "",
|
|
@@ -2148,11 +2033,11 @@ function ra(e, ...t) {
|
|
|
2148
2033
|
format: M(h) ? h : Be(h) ? h.source : "",
|
|
2149
2034
|
message: z
|
|
2150
2035
|
};
|
|
2151
|
-
V.meta = Le({}, e.__meta, /* @__PURE__ */
|
|
2036
|
+
V.meta = Le({}, e.__meta, /* @__PURE__ */ Ul() || {}), _l(V);
|
|
2152
2037
|
}
|
|
2153
2038
|
return z;
|
|
2154
2039
|
}
|
|
2155
|
-
function
|
|
2040
|
+
function Ql(e) {
|
|
2156
2041
|
Te(e.list) ? e.list = e.list.map((t) => M(t) ? Fr(t) : t) : re(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2157
2042
|
M(e.named[t]) && (e.named[t] = Fr(e.named[t]));
|
|
2158
2043
|
});
|
|
@@ -2187,7 +2072,7 @@ function ds(e, t, n, a, r, s) {
|
|
|
2187
2072
|
}
|
|
2188
2073
|
if (M(g) || Ge(g) || Be(g))
|
|
2189
2074
|
break;
|
|
2190
|
-
if (!
|
|
2075
|
+
if (!Hl(p, m)) {
|
|
2191
2076
|
const T = ns(
|
|
2192
2077
|
e,
|
|
2193
2078
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2215,7 +2100,7 @@ function fs(e, t, n, a, r, s) {
|
|
|
2215
2100
|
const i = process.env.NODE_ENV !== "production" ? e.__v_emitter : void 0;
|
|
2216
2101
|
let f = null, m, v;
|
|
2217
2102
|
process.env.NODE_ENV !== "production" && Qe && i && (f = window.performance.now(), m = "intlify-message-compilation-start", v = "intlify-message-compilation-end", Ve && Ve(m));
|
|
2218
|
-
const p = o(a,
|
|
2103
|
+
const p = o(a, Zl(e, n, r, a, l, s));
|
|
2219
2104
|
if (process.env.NODE_ENV !== "production" && Qe && i) {
|
|
2220
2105
|
const g = window.performance.now();
|
|
2221
2106
|
i && f && i.emit("message-compilation", {
|
|
@@ -2227,7 +2112,7 @@ function fs(e, t, n, a, r, s) {
|
|
|
2227
2112
|
}
|
|
2228
2113
|
return p.locale = n, p.key = t, p.source = a, p;
|
|
2229
2114
|
}
|
|
2230
|
-
function
|
|
2115
|
+
function Jl(e, t, n) {
|
|
2231
2116
|
const a = process.env.NODE_ENV !== "production" ? e.__v_emitter : void 0;
|
|
2232
2117
|
let r = null, s, o;
|
|
2233
2118
|
process.env.NODE_ENV !== "production" && Qe && a && (r = window.performance.now(), s = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", Ve && Ve(s));
|
|
@@ -2250,14 +2135,14 @@ function Qn(...e) {
|
|
|
2250
2135
|
const s = Oe(t) ? String(t) : (Be(t), t);
|
|
2251
2136
|
return Oe(n) ? r.plural = n : M(n) ? r.default = n : se(n) && !dr(n) ? r.named = n : Te(n) && (r.list = n), Oe(a) ? r.plural = a : M(a) ? r.default = a : se(a) && Le(r, a), [s, r];
|
|
2252
2137
|
}
|
|
2253
|
-
function
|
|
2138
|
+
function Zl(e, t, n, a, r, s) {
|
|
2254
2139
|
return {
|
|
2255
2140
|
locale: t,
|
|
2256
2141
|
key: n,
|
|
2257
2142
|
warnHtmlMessage: r,
|
|
2258
2143
|
onError: (o) => {
|
|
2259
2144
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2260
|
-
const l =
|
|
2145
|
+
const l = ei(a), i = o.location && l && fo(l, o.location.start.offset, o.location.end.offset), f = e.__v_emitter;
|
|
2261
2146
|
f && l && f.emit("compile-error", {
|
|
2262
2147
|
message: l,
|
|
2263
2148
|
error: o.message,
|
|
@@ -2271,16 +2156,16 @@ ${i}` : m);
|
|
|
2271
2156
|
}
|
|
2272
2157
|
throw o;
|
|
2273
2158
|
},
|
|
2274
|
-
onCacheKey: (o) =>
|
|
2159
|
+
onCacheKey: (o) => so(t, n, o)
|
|
2275
2160
|
};
|
|
2276
2161
|
}
|
|
2277
|
-
function
|
|
2162
|
+
function ei(e) {
|
|
2278
2163
|
if (M(e))
|
|
2279
2164
|
return e;
|
|
2280
2165
|
if (e.loc && e.loc.source)
|
|
2281
2166
|
return e.loc.source;
|
|
2282
2167
|
}
|
|
2283
|
-
function
|
|
2168
|
+
function ti(e, t, n, a) {
|
|
2284
2169
|
const { modifiers: r, pluralRules: s, messageResolver: o, fallbackLocale: l, fallbackWarn: i, missingWarn: f, fallbackContext: m } = e, p = {
|
|
2285
2170
|
locale: t,
|
|
2286
2171
|
modifiers: r,
|
|
@@ -2310,23 +2195,23 @@ function ri(e, t, n, a) {
|
|
|
2310
2195
|
};
|
|
2311
2196
|
return e.processor && (p.processor = e.processor), a.list && (p.list = a.list), a.named && (p.named = a.named), Oe(a.plural) && (p.pluralIndex = a.plural), p;
|
|
2312
2197
|
}
|
|
2313
|
-
|
|
2314
|
-
function
|
|
2198
|
+
rl();
|
|
2199
|
+
function ni() {
|
|
2315
2200
|
return ms().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2316
2201
|
}
|
|
2317
2202
|
function ms() {
|
|
2318
2203
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2319
2204
|
}
|
|
2320
|
-
const
|
|
2205
|
+
const ri = typeof Proxy == "function", ai = "devtools-plugin:setup", si = "plugin:settings:set";
|
|
2321
2206
|
let Pt, Jn;
|
|
2322
|
-
function
|
|
2207
|
+
function oi() {
|
|
2323
2208
|
var e;
|
|
2324
2209
|
return Pt !== void 0 || (typeof window < "u" && window.performance ? (Pt = !0, Jn = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Pt = !0, Jn = globalThis.perf_hooks.performance) : Pt = !1), Pt;
|
|
2325
2210
|
}
|
|
2326
|
-
function
|
|
2327
|
-
return
|
|
2211
|
+
function li() {
|
|
2212
|
+
return oi() ? Jn.now() : Date.now();
|
|
2328
2213
|
}
|
|
2329
|
-
class
|
|
2214
|
+
class ii {
|
|
2330
2215
|
constructor(t, n) {
|
|
2331
2216
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2332
2217
|
const a = {};
|
|
@@ -2354,9 +2239,9 @@ class ui {
|
|
|
2354
2239
|
s = o;
|
|
2355
2240
|
},
|
|
2356
2241
|
now() {
|
|
2357
|
-
return
|
|
2242
|
+
return li();
|
|
2358
2243
|
}
|
|
2359
|
-
}, n && n.on(
|
|
2244
|
+
}, n && n.on(si, (o, l) => {
|
|
2360
2245
|
o === this.plugin.id && this.fallbacks.setSettings(l);
|
|
2361
2246
|
}), this.proxiedOn = new Proxy({}, {
|
|
2362
2247
|
get: (o, l) => this.target ? this.target.on[l] : (...i) => {
|
|
@@ -2388,12 +2273,12 @@ class ui {
|
|
|
2388
2273
|
n.resolve(await this.target[n.method](...n.args));
|
|
2389
2274
|
}
|
|
2390
2275
|
}
|
|
2391
|
-
function
|
|
2392
|
-
const n = e, a = ms(), r =
|
|
2276
|
+
function ci(e, t) {
|
|
2277
|
+
const n = e, a = ms(), r = ni(), s = ri && n.enableEarlyProxy;
|
|
2393
2278
|
if (r && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2394
|
-
r.emit(
|
|
2279
|
+
r.emit(ai, e, t);
|
|
2395
2280
|
else {
|
|
2396
|
-
const o = s ? new
|
|
2281
|
+
const o = s ? new ii(n, r) : null;
|
|
2397
2282
|
(a.__VUE_DEVTOOLS_PLUGINS__ = a.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2398
2283
|
pluginDescriptor: n,
|
|
2399
2284
|
setupFn: t,
|
|
@@ -2406,13 +2291,13 @@ function di(e, t) {
|
|
|
2406
2291
|
* (c) 2026 kazuya kawaguchi
|
|
2407
2292
|
* Released under the MIT License.
|
|
2408
2293
|
*/
|
|
2409
|
-
const
|
|
2410
|
-
function
|
|
2294
|
+
const ui = "11.4.8";
|
|
2295
|
+
function di() {
|
|
2411
2296
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Lt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Lt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Lt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Lt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2412
2297
|
}
|
|
2413
2298
|
const ue = {
|
|
2414
2299
|
// composer module errors
|
|
2415
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2300
|
+
UNEXPECTED_RETURN_TYPE: yl,
|
|
2416
2301
|
// 24
|
|
2417
2302
|
// legacy module errors
|
|
2418
2303
|
INVALID_ARGUMENT: 25,
|
|
@@ -2433,9 +2318,9 @@ const ue = {
|
|
|
2433
2318
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2434
2319
|
};
|
|
2435
2320
|
function Pe(e, ...t) {
|
|
2436
|
-
return Qt(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2321
|
+
return Qt(e, null, process.env.NODE_ENV !== "production" ? { messages: fi, args: t } : void 0);
|
|
2437
2322
|
}
|
|
2438
|
-
const
|
|
2323
|
+
const fi = {
|
|
2439
2324
|
[ue.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2440
2325
|
[ue.INVALID_ARGUMENT]: "Invalid argument",
|
|
2441
2326
|
[ue.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2462,7 +2347,7 @@ const pi = {
|
|
|
2462
2347
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: xt + 4,
|
|
2463
2348
|
// duplicate `useI18n` calling
|
|
2464
2349
|
DUPLICATE_USE_I18N_CALLING: xt + 5
|
|
2465
|
-
},
|
|
2350
|
+
}, mi = {
|
|
2466
2351
|
[He.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2467
2352
|
[He.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2468
2353
|
[He.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2478,7 +2363,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2478
2363
|
[He.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2479
2364
|
};
|
|
2480
2365
|
function Yt(e, ...t) {
|
|
2481
|
-
return kn(
|
|
2366
|
+
return kn(mi[e], ...t);
|
|
2482
2367
|
}
|
|
2483
2368
|
function un(e) {
|
|
2484
2369
|
if (!re(e) || Ge(e))
|
|
@@ -2550,24 +2435,24 @@ function hs(e, t, n) {
|
|
|
2550
2435
|
}
|
|
2551
2436
|
}
|
|
2552
2437
|
function aa(e) {
|
|
2553
|
-
return de(
|
|
2438
|
+
return de(Ks, null, e, 0);
|
|
2554
2439
|
}
|
|
2555
|
-
function
|
|
2440
|
+
function Vt() {
|
|
2556
2441
|
const e = "currentInstance";
|
|
2557
2442
|
return e in Dn ? Dn[e] : Dn.getCurrentInstance();
|
|
2558
2443
|
}
|
|
2559
|
-
const sa = "__INTLIFY_META__", oa = () => [],
|
|
2444
|
+
const sa = "__INTLIFY_META__", oa = () => [], pi = () => !1;
|
|
2560
2445
|
let la = 0;
|
|
2561
2446
|
function ia(e) {
|
|
2562
|
-
return ((t, n, a, r) => e(n, a,
|
|
2447
|
+
return ((t, n, a, r) => e(n, a, Vt() || void 0, r));
|
|
2563
2448
|
}
|
|
2564
|
-
const
|
|
2565
|
-
const e =
|
|
2449
|
+
const vi = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2450
|
+
const e = Vt();
|
|
2566
2451
|
let t = null;
|
|
2567
2452
|
return e && (t = gs(e)[sa]) ? { [sa]: t } : null;
|
|
2568
2453
|
};
|
|
2569
2454
|
function En(e = {}) {
|
|
2570
|
-
const { __root: t, __injectWithOption: n } = e, a = t === void 0, r = e.flatJson, s = Qe ? j :
|
|
2455
|
+
const { __root: t, __injectWithOption: n } = e, a = t === void 0, r = e.flatJson, s = Qe ? j : Gs;
|
|
2571
2456
|
let o = ae(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2572
2457
|
const l = s(
|
|
2573
2458
|
// prettier-ignore
|
|
@@ -2578,11 +2463,11 @@ function En(e = {}) {
|
|
|
2578
2463
|
), f = s(yr(l.value, e)), m = s(se(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), v = s(se(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2579
2464
|
let p = t ? t.missingWarn : ae(e.missingWarn) || Ht(e.missingWarn) ? e.missingWarn : !0, g = t ? t.fallbackWarn : ae(e.fallbackWarn) || Ht(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : ae(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, L = ve(e.missing) ? e.missing : null, d = ve(e.missing) ? ia(e.missing) : null, _ = ve(e.postTranslation) ? e.postTranslation : null, w = t ? t.warnHtmlMessage : ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter;
|
|
2580
2465
|
const k = t ? t.modifiers : se(e.modifiers) ? e.modifiers : {};
|
|
2581
|
-
let T = e.pluralRules || t && t.pluralRules,
|
|
2582
|
-
|
|
2466
|
+
let T = e.pluralRules || t && t.pluralRules, y;
|
|
2467
|
+
y = (() => {
|
|
2583
2468
|
a && Xr(null);
|
|
2584
2469
|
const C = {
|
|
2585
|
-
version:
|
|
2470
|
+
version: ui,
|
|
2586
2471
|
locale: l.value,
|
|
2587
2472
|
fallbackLocale: i.value,
|
|
2588
2473
|
messages: f.value,
|
|
@@ -2600,10 +2485,10 @@ function En(e = {}) {
|
|
|
2600
2485
|
messageCompiler: e.messageCompiler,
|
|
2601
2486
|
__meta: { framework: "vue" }
|
|
2602
2487
|
};
|
|
2603
|
-
C.datetimeFormats = m.value, C.numberFormats = v.value, C.__datetimeFormatters = se(
|
|
2604
|
-
const A =
|
|
2488
|
+
C.datetimeFormats = m.value, C.numberFormats = v.value, C.__datetimeFormatters = se(y) ? y.__datetimeFormatters : void 0, C.__numberFormatters = se(y) ? y.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (C.__v_emitter = se(y) ? y.__v_emitter : void 0);
|
|
2489
|
+
const A = Bl(C);
|
|
2605
2490
|
return a && Xr(A), A;
|
|
2606
|
-
})(), Jt(
|
|
2491
|
+
})(), Jt(y, l.value, i.value);
|
|
2607
2492
|
function W() {
|
|
2608
2493
|
return [
|
|
2609
2494
|
l.value,
|
|
@@ -2616,25 +2501,25 @@ function En(e = {}) {
|
|
|
2616
2501
|
const G = D({
|
|
2617
2502
|
get: () => l.value,
|
|
2618
2503
|
set: (C) => {
|
|
2619
|
-
|
|
2504
|
+
y.locale = C, l.value = C;
|
|
2620
2505
|
}
|
|
2621
2506
|
}), H = D({
|
|
2622
2507
|
get: () => i.value,
|
|
2623
2508
|
set: (C) => {
|
|
2624
|
-
|
|
2509
|
+
y.fallbackLocale = C, i.value = C, Jt(y, l.value, C);
|
|
2625
2510
|
}
|
|
2626
2511
|
}), z = D(() => f.value), V = /* @__PURE__ */ D(() => m.value), X = /* @__PURE__ */ D(() => v.value);
|
|
2627
2512
|
function ce() {
|
|
2628
2513
|
return ve(_) ? _ : null;
|
|
2629
2514
|
}
|
|
2630
2515
|
function N(C) {
|
|
2631
|
-
_ = C,
|
|
2516
|
+
_ = C, y.postTranslation = C;
|
|
2632
2517
|
}
|
|
2633
2518
|
function I() {
|
|
2634
2519
|
return L;
|
|
2635
2520
|
}
|
|
2636
2521
|
function P(C) {
|
|
2637
|
-
C !== null && (d = ia(C)), L = C,
|
|
2522
|
+
C !== null && (d = ia(C)), L = C, y.missing = d;
|
|
2638
2523
|
}
|
|
2639
2524
|
function B(C, A) {
|
|
2640
2525
|
return C !== "translate" || !A.resolvedMessage;
|
|
@@ -2643,18 +2528,18 @@ function En(e = {}) {
|
|
|
2643
2528
|
W();
|
|
2644
2529
|
let We;
|
|
2645
2530
|
try {
|
|
2646
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (
|
|
2531
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (y.fallbackContext = t ? Wl() : void 0), We = C(y);
|
|
2647
2532
|
} finally {
|
|
2648
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (
|
|
2533
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (y.fallbackContext = void 0);
|
|
2649
2534
|
}
|
|
2650
2535
|
if (ne !== "translate exists" && // for not `te` (e.g `t`)
|
|
2651
2536
|
Oe(We) && We === In || ne === "translate exists" && !We) {
|
|
2652
|
-
const [Ot,
|
|
2653
|
-
if (process.env.NODE_ENV !== "production" && t && M(Ot) && B(ne,
|
|
2537
|
+
const [Ot, Bs] = A();
|
|
2538
|
+
if (process.env.NODE_ENV !== "production" && t && M(Ot) && B(ne, Bs) && (E && (br(g, Ot) || ts(p, Ot)) && at(Yt(He.FALLBACK_TO_ROOT, {
|
|
2654
2539
|
key: Ot,
|
|
2655
2540
|
type: ne
|
|
2656
2541
|
})), process.env.NODE_ENV !== "production")) {
|
|
2657
|
-
const { __v_emitter: xr } =
|
|
2542
|
+
const { __v_emitter: xr } = y;
|
|
2658
2543
|
xr && E && xr.emit("fallback", {
|
|
2659
2544
|
type: ne,
|
|
2660
2545
|
key: Ot,
|
|
@@ -2711,27 +2596,27 @@ function En(e = {}) {
|
|
|
2711
2596
|
return Y((A) => Reflect.apply(Jr, null, [A, ...C]), () => Xn(...C), "datetime format", (A) => A[er](...C), oa, (A) => M(A) || Te(A));
|
|
2712
2597
|
}
|
|
2713
2598
|
function lt(C) {
|
|
2714
|
-
T = C,
|
|
2599
|
+
T = C, y.pluralRules = T;
|
|
2715
2600
|
}
|
|
2716
2601
|
function Et(C, A) {
|
|
2717
2602
|
return Y(() => {
|
|
2718
2603
|
if (!C)
|
|
2719
2604
|
return !1;
|
|
2720
|
-
const ne = M(A) ? A : l.value, he = M(A) ? [ne] : Kn(
|
|
2605
|
+
const ne = M(A) ? A : l.value, he = M(A) ? [ne] : Kn(y, i.value, ne);
|
|
2721
2606
|
for (let Tt = 0; Tt < he.length; Tt++) {
|
|
2722
2607
|
const Nt = Ue(he[Tt]);
|
|
2723
|
-
let We =
|
|
2608
|
+
let We = y.messageResolver(Nt, C);
|
|
2724
2609
|
if (We === null && (We = Nt[C]), Ge(We) || Be(We) || M(We))
|
|
2725
2610
|
return !0;
|
|
2726
2611
|
}
|
|
2727
2612
|
return !1;
|
|
2728
|
-
}, () => [C], "translate exists", (ne) => Reflect.apply(ne.te, ne, [C, A]),
|
|
2613
|
+
}, () => [C], "translate exists", (ne) => Reflect.apply(ne.te, ne, [C, A]), pi, (ne) => ae(ne));
|
|
2729
2614
|
}
|
|
2730
2615
|
function Ze(C) {
|
|
2731
2616
|
let A = null;
|
|
2732
|
-
const ne = Kn(
|
|
2617
|
+
const ne = Kn(y, i.value, l.value);
|
|
2733
2618
|
for (let he = 0; he < ne.length; he++) {
|
|
2734
|
-
const Tt = f.value[ne[he]] || {}, Nt =
|
|
2619
|
+
const Tt = f.value[ne[he]] || {}, Nt = y.messageResolver(Tt, C);
|
|
2735
2620
|
if (Nt != null) {
|
|
2736
2621
|
A = Nt;
|
|
2737
2622
|
break;
|
|
@@ -2753,7 +2638,7 @@ function En(e = {}) {
|
|
|
2753
2638
|
je(ne, he) && un(ne[he]);
|
|
2754
2639
|
A = ne[C];
|
|
2755
2640
|
}
|
|
2756
|
-
f.value[C] = A,
|
|
2641
|
+
f.value[C] = A, y.messages = f.value;
|
|
2757
2642
|
}
|
|
2758
2643
|
function pt(C, A) {
|
|
2759
2644
|
f.value[C] = f.value[C] || {};
|
|
@@ -2761,30 +2646,30 @@ function En(e = {}) {
|
|
|
2761
2646
|
if (r)
|
|
2762
2647
|
for (const he in ne)
|
|
2763
2648
|
je(ne, he) && un(ne[he]);
|
|
2764
|
-
A = ne[C], bn(A, f.value[C]),
|
|
2649
|
+
A = ne[C], bn(A, f.value[C]), y.messages = f.value;
|
|
2765
2650
|
}
|
|
2766
2651
|
function c(C) {
|
|
2767
2652
|
return m.value[C] || {};
|
|
2768
2653
|
}
|
|
2769
2654
|
function u(C, A) {
|
|
2770
|
-
m.value[C] = A,
|
|
2655
|
+
m.value[C] = A, y.datetimeFormats = m.value, Zr(y, C, A);
|
|
2771
2656
|
}
|
|
2772
|
-
function
|
|
2773
|
-
m.value[C] = Le(m.value[C] || {}, A),
|
|
2657
|
+
function b(C, A) {
|
|
2658
|
+
m.value[C] = Le(m.value[C] || {}, A), y.datetimeFormats = m.value, Zr(y, C, A);
|
|
2774
2659
|
}
|
|
2775
2660
|
function R(C) {
|
|
2776
2661
|
return v.value[C] || {};
|
|
2777
2662
|
}
|
|
2778
2663
|
function Q(C, A) {
|
|
2779
|
-
v.value[C] = A,
|
|
2664
|
+
v.value[C] = A, y.numberFormats = v.value, ta(y, C, A);
|
|
2780
2665
|
}
|
|
2781
2666
|
function pe(C, A) {
|
|
2782
|
-
v.value[C] = Le(v.value[C] || {}, A),
|
|
2667
|
+
v.value[C] = Le(v.value[C] || {}, A), y.numberFormats = v.value, ta(y, C, A);
|
|
2783
2668
|
}
|
|
2784
|
-
la++, t && Qe && (
|
|
2785
|
-
o && (l.value = C,
|
|
2786
|
-
}),
|
|
2787
|
-
o && (i.value = C,
|
|
2669
|
+
la++, t && Qe && (_e(t.locale, (C) => {
|
|
2670
|
+
o && (l.value = C, y.locale = C, Jt(y, l.value, i.value));
|
|
2671
|
+
}), _e(t.fallbackLocale, (C) => {
|
|
2672
|
+
o && (i.value = C, y.fallbackLocale = C, Jt(y, l.value, i.value));
|
|
2788
2673
|
}));
|
|
2789
2674
|
const te = {
|
|
2790
2675
|
id: la,
|
|
@@ -2794,7 +2679,7 @@ function En(e = {}) {
|
|
|
2794
2679
|
return o;
|
|
2795
2680
|
},
|
|
2796
2681
|
set inheritLocale(C) {
|
|
2797
|
-
o = C, C && t && (l.value = t.locale.value, i.value = t.fallbackLocale.value, Jt(
|
|
2682
|
+
o = C, C && t && (l.value = t.locale.value, i.value = t.fallbackLocale.value, Jt(y, l.value, i.value));
|
|
2798
2683
|
},
|
|
2799
2684
|
get availableLocales() {
|
|
2800
2685
|
return Object.keys(f.value).sort();
|
|
@@ -2813,13 +2698,13 @@ function En(e = {}) {
|
|
|
2813
2698
|
return p;
|
|
2814
2699
|
},
|
|
2815
2700
|
set missingWarn(C) {
|
|
2816
|
-
p = C,
|
|
2701
|
+
p = C, y.missingWarn = p;
|
|
2817
2702
|
},
|
|
2818
2703
|
get fallbackWarn() {
|
|
2819
2704
|
return g;
|
|
2820
2705
|
},
|
|
2821
2706
|
set fallbackWarn(C) {
|
|
2822
|
-
g = C,
|
|
2707
|
+
g = C, y.fallbackWarn = g;
|
|
2823
2708
|
},
|
|
2824
2709
|
get fallbackRoot() {
|
|
2825
2710
|
return E;
|
|
@@ -2831,19 +2716,19 @@ function En(e = {}) {
|
|
|
2831
2716
|
return O;
|
|
2832
2717
|
},
|
|
2833
2718
|
set fallbackFormat(C) {
|
|
2834
|
-
O = C,
|
|
2719
|
+
O = C, y.fallbackFormat = O;
|
|
2835
2720
|
},
|
|
2836
2721
|
get warnHtmlMessage() {
|
|
2837
2722
|
return w;
|
|
2838
2723
|
},
|
|
2839
2724
|
set warnHtmlMessage(C) {
|
|
2840
|
-
w = C,
|
|
2725
|
+
w = C, y.warnHtmlMessage = C;
|
|
2841
2726
|
},
|
|
2842
2727
|
get escapeParameter() {
|
|
2843
2728
|
return h;
|
|
2844
2729
|
},
|
|
2845
2730
|
set escapeParameter(C) {
|
|
2846
|
-
h = C,
|
|
2731
|
+
h = C, y.escapeParameter = C;
|
|
2847
2732
|
},
|
|
2848
2733
|
t: oe,
|
|
2849
2734
|
getLocaleMessage: Ue,
|
|
@@ -2855,26 +2740,26 @@ function En(e = {}) {
|
|
|
2855
2740
|
setMissingHandler: P,
|
|
2856
2741
|
[ps]: lt
|
|
2857
2742
|
};
|
|
2858
|
-
return te.datetimeFormats = V, te.numberFormats = X, te.rt = le, te.te = Et, te.tm = it, te.d = Ce, te.n = Re, te.getDateTimeFormat = c, te.setDateTimeFormat = u, te.mergeDateTimeFormat =
|
|
2859
|
-
|
|
2743
|
+
return te.datetimeFormats = V, te.numberFormats = X, te.rt = le, te.te = Et, te.tm = it, te.d = Ce, te.n = Re, te.getDateTimeFormat = c, te.setDateTimeFormat = u, te.mergeDateTimeFormat = b, te.getNumberFormat = R, te.setNumberFormat = Q, te.mergeNumberFormat = pe, te[vs] = n, te[Zn] = me, te[er] = Ie, te[tr] = ye, process.env.NODE_ENV !== "production" && (te[ft] = (C) => {
|
|
2744
|
+
y.__v_emitter = C;
|
|
2860
2745
|
}, te[St] = () => {
|
|
2861
|
-
|
|
2746
|
+
y.__v_emitter = void 0;
|
|
2862
2747
|
}), te;
|
|
2863
2748
|
}
|
|
2864
2749
|
const _s = "vue-i18n: composer properties", Vn = {
|
|
2865
2750
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2866
2751
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2867
2752
|
"vue-i18n-timeline": "Vue I18n"
|
|
2868
|
-
},
|
|
2753
|
+
}, gi = {
|
|
2869
2754
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2870
|
-
},
|
|
2755
|
+
}, hi = {
|
|
2871
2756
|
"vue-i18n-timeline": 16764185
|
|
2872
2757
|
};
|
|
2873
2758
|
let nr;
|
|
2874
|
-
async function
|
|
2759
|
+
async function _i(e, t) {
|
|
2875
2760
|
return new Promise((n, a) => {
|
|
2876
2761
|
try {
|
|
2877
|
-
|
|
2762
|
+
ci({
|
|
2878
2763
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2879
2764
|
label: Vn["vue-devtools-plugin-vue-i18n"],
|
|
2880
2765
|
packageName: "vue-i18n",
|
|
@@ -2885,36 +2770,36 @@ async function yi(e, t) {
|
|
|
2885
2770
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2886
2771
|
}, (r) => {
|
|
2887
2772
|
nr = r, r.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
|
|
2888
|
-
|
|
2773
|
+
bi(o, l, t);
|
|
2889
2774
|
}), r.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
|
|
2890
2775
|
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && ca(l, o.__VUE_I18N__) : ca(l, o.__VUE_I18N__));
|
|
2891
2776
|
}), r.addInspector({
|
|
2892
2777
|
id: "vue-i18n-resource-inspector",
|
|
2893
2778
|
label: Vn["vue-i18n-resource-inspector"],
|
|
2894
2779
|
icon: "language",
|
|
2895
|
-
treeFilterPlaceholder:
|
|
2780
|
+
treeFilterPlaceholder: gi["vue-i18n-resource-inspector"]
|
|
2896
2781
|
}), r.on.getInspectorTree((o) => {
|
|
2897
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2782
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Oi(o, t);
|
|
2898
2783
|
});
|
|
2899
2784
|
const s = /* @__PURE__ */ new Map();
|
|
2900
2785
|
r.on.getInspectorState(async (o) => {
|
|
2901
2786
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2902
|
-
if (r.unhighlightElement(),
|
|
2787
|
+
if (r.unhighlightElement(), Ci(o, t), o.nodeId === "global") {
|
|
2903
2788
|
if (!s.has(o.app)) {
|
|
2904
2789
|
const [l] = await r.getComponentInstances(o.app);
|
|
2905
2790
|
s.set(o.app, l);
|
|
2906
2791
|
}
|
|
2907
2792
|
r.highlightElement(s.get(o.app));
|
|
2908
2793
|
} else {
|
|
2909
|
-
const l =
|
|
2794
|
+
const l = Li(o.nodeId, t);
|
|
2910
2795
|
l && r.highlightElement(l);
|
|
2911
2796
|
}
|
|
2912
2797
|
}), r.on.editInspectorState((o) => {
|
|
2913
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2798
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ki(o, t);
|
|
2914
2799
|
}), r.addTimelineLayer({
|
|
2915
2800
|
id: "vue-i18n-timeline",
|
|
2916
2801
|
label: Vn["vue-i18n-timeline"],
|
|
2917
|
-
color:
|
|
2802
|
+
color: hi["vue-i18n-timeline"]
|
|
2918
2803
|
}), n(!0);
|
|
2919
2804
|
});
|
|
2920
2805
|
} catch (r) {
|
|
@@ -2925,7 +2810,7 @@ async function yi(e, t) {
|
|
|
2925
2810
|
function bs(e) {
|
|
2926
2811
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2927
2812
|
}
|
|
2928
|
-
function
|
|
2813
|
+
function bi(e, t, n) {
|
|
2929
2814
|
const a = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2930
2815
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== a) {
|
|
2931
2816
|
const r = {
|
|
@@ -2979,30 +2864,30 @@ function Er(e) {
|
|
|
2979
2864
|
const t = {};
|
|
2980
2865
|
return Object.keys(e).forEach((n) => {
|
|
2981
2866
|
const a = e[n];
|
|
2982
|
-
ve(a) && "source" in a ? t[n] =
|
|
2867
|
+
ve(a) && "source" in a ? t[n] = Ni(a) : Ge(a) && a.loc && a.loc.source ? t[n] = a.loc.source : re(a) ? t[n] = Er(a) : t[n] = a;
|
|
2983
2868
|
}), t;
|
|
2984
2869
|
}
|
|
2985
|
-
const
|
|
2870
|
+
const yi = {
|
|
2986
2871
|
"<": "<",
|
|
2987
2872
|
">": ">",
|
|
2988
2873
|
'"': """,
|
|
2989
2874
|
"&": "&"
|
|
2990
2875
|
};
|
|
2991
|
-
function
|
|
2992
|
-
return e.replace(/[<>"&]/g,
|
|
2876
|
+
function Ei(e) {
|
|
2877
|
+
return e.replace(/[<>"&]/g, Ti);
|
|
2993
2878
|
}
|
|
2994
|
-
function
|
|
2995
|
-
return
|
|
2879
|
+
function Ti(e) {
|
|
2880
|
+
return yi[e] || e;
|
|
2996
2881
|
}
|
|
2997
|
-
function
|
|
2882
|
+
function Ni(e) {
|
|
2998
2883
|
return {
|
|
2999
2884
|
_custom: {
|
|
3000
2885
|
type: "function",
|
|
3001
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2886
|
+
display: `<span>ƒ</span> ${e.source ? `("${Ei(e.source)}")` : "(?)"}`
|
|
3002
2887
|
}
|
|
3003
2888
|
};
|
|
3004
2889
|
}
|
|
3005
|
-
function
|
|
2890
|
+
function Oi(e, t) {
|
|
3006
2891
|
e.rootNodes.push({
|
|
3007
2892
|
id: "global",
|
|
3008
2893
|
label: "Global Scope"
|
|
@@ -3016,7 +2901,7 @@ function Ci(e, t) {
|
|
|
3016
2901
|
});
|
|
3017
2902
|
}
|
|
3018
2903
|
}
|
|
3019
|
-
function
|
|
2904
|
+
function Li(e, t) {
|
|
3020
2905
|
let n = null;
|
|
3021
2906
|
if (e !== "global") {
|
|
3022
2907
|
for (const [a, r] of t.__instances.entries())
|
|
@@ -3035,11 +2920,11 @@ function ys(e, t) {
|
|
|
3035
2920
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3036
2921
|
}
|
|
3037
2922
|
}
|
|
3038
|
-
function
|
|
2923
|
+
function Ci(e, t) {
|
|
3039
2924
|
const n = ys(e.nodeId, t);
|
|
3040
|
-
return n && (e.state =
|
|
2925
|
+
return n && (e.state = wi(n)), null;
|
|
3041
2926
|
}
|
|
3042
|
-
function
|
|
2927
|
+
function wi(e) {
|
|
3043
2928
|
const t = {}, n = "Locale related info", a = [
|
|
3044
2929
|
{
|
|
3045
2930
|
type: n,
|
|
@@ -3114,21 +2999,21 @@ function It(e, t) {
|
|
|
3114
2999
|
});
|
|
3115
3000
|
}
|
|
3116
3001
|
}
|
|
3117
|
-
function
|
|
3002
|
+
function ki(e, t) {
|
|
3118
3003
|
const n = ys(e.nodeId, t);
|
|
3119
3004
|
if (n) {
|
|
3120
3005
|
const [a] = e.path;
|
|
3121
3006
|
a === "locale" && M(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (M(e.state.value) || Te(e.state.value) || re(e.state.value)) ? n.fallbackLocale.value = e.state.value : a === "inheritLocale" && ae(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3122
3007
|
}
|
|
3123
3008
|
}
|
|
3124
|
-
function
|
|
3009
|
+
function Si(e) {
|
|
3125
3010
|
const t = M(e.locale) ? e.locale : cn, n = M(e.fallbackLocale) || Te(e.fallbackLocale) || se(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = ve(e.missing) ? e.missing : void 0, r = ae(e.silentTranslationWarn) || Ht(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = ae(e.silentFallbackWarn) || Ht(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = ae(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = se(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, m = ve(e.postTranslation) ? e.postTranslation : void 0, v = M(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, g = ae(e.sync) ? e.sync : !0;
|
|
3126
3011
|
let E = e.messages;
|
|
3127
3012
|
if (se(e.sharedMessages)) {
|
|
3128
3013
|
const k = e.sharedMessages;
|
|
3129
|
-
E = Object.keys(k).reduce((
|
|
3130
|
-
const W =
|
|
3131
|
-
return Le(W, k[F]),
|
|
3014
|
+
E = Object.keys(k).reduce((y, F) => {
|
|
3015
|
+
const W = y[F] || (y[F] = {});
|
|
3016
|
+
return Le(W, k[F]), y;
|
|
3132
3017
|
}, E || {});
|
|
3133
3018
|
}
|
|
3134
3019
|
const { __i18n: O, __root: L, __injectWithOption: d } = e, _ = e.datetimeFormats, w = e.numberFormats, h = e.flatJson;
|
|
@@ -3157,7 +3042,7 @@ function Ai(e) {
|
|
|
3157
3042
|
};
|
|
3158
3043
|
}
|
|
3159
3044
|
function rr(e = {}) {
|
|
3160
|
-
const t = En(
|
|
3045
|
+
const t = En(Si(e)), { __extender: n } = e, a = {
|
|
3161
3046
|
// id
|
|
3162
3047
|
id: t.id,
|
|
3163
3048
|
// locale
|
|
@@ -3325,10 +3210,10 @@ function rr(e = {}) {
|
|
|
3325
3210
|
r[St] && r[St]();
|
|
3326
3211
|
}), a;
|
|
3327
3212
|
}
|
|
3328
|
-
function
|
|
3213
|
+
function Ii(e, t, n) {
|
|
3329
3214
|
return {
|
|
3330
3215
|
beforeCreate() {
|
|
3331
|
-
const a =
|
|
3216
|
+
const a = Vt();
|
|
3332
3217
|
if (!a)
|
|
3333
3218
|
throw Pe(ue.UNEXPECTED_ERROR);
|
|
3334
3219
|
const r = this.$options;
|
|
@@ -3360,7 +3245,7 @@ function Di(e, t, n) {
|
|
|
3360
3245
|
},
|
|
3361
3246
|
mounted() {
|
|
3362
3247
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
3363
|
-
const a =
|
|
3248
|
+
const a = Vt();
|
|
3364
3249
|
if (!a)
|
|
3365
3250
|
return;
|
|
3366
3251
|
const r = this.$i18n;
|
|
@@ -3370,7 +3255,7 @@ function Di(e, t, n) {
|
|
|
3370
3255
|
}
|
|
3371
3256
|
},
|
|
3372
3257
|
unmounted() {
|
|
3373
|
-
const a =
|
|
3258
|
+
const a = Vt();
|
|
3374
3259
|
if (!a)
|
|
3375
3260
|
throw Pe(ue.UNEXPECTED_ERROR);
|
|
3376
3261
|
const r = this.$i18n;
|
|
@@ -3404,7 +3289,7 @@ const Tr = {
|
|
|
3404
3289
|
type: Object
|
|
3405
3290
|
}
|
|
3406
3291
|
};
|
|
3407
|
-
function
|
|
3292
|
+
function Ai({ slots: e }, t) {
|
|
3408
3293
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((a, r) => [
|
|
3409
3294
|
...a,
|
|
3410
3295
|
// prettier-ignore
|
|
@@ -3417,7 +3302,7 @@ function xi({ slots: e }, t) {
|
|
|
3417
3302
|
function Es() {
|
|
3418
3303
|
return Xe;
|
|
3419
3304
|
}
|
|
3420
|
-
const
|
|
3305
|
+
const Di = /* @__PURE__ */ fe({
|
|
3421
3306
|
/* eslint-disable */
|
|
3422
3307
|
name: "i18n-t",
|
|
3423
3308
|
props: Le({
|
|
@@ -3441,14 +3326,14 @@ const Pi = /* @__PURE__ */ fe({
|
|
|
3441
3326
|
const s = () => {
|
|
3442
3327
|
const i = Object.keys(n).filter((v) => v[0] !== "_"), f = ie();
|
|
3443
3328
|
e.locale && (f.locale = e.locale), e.plural !== void 0 && (f.plural = M(e.plural) ? +e.plural : e.plural);
|
|
3444
|
-
const m =
|
|
3329
|
+
const m = Ai(t, i);
|
|
3445
3330
|
return r[Zn](e.keypath, m, f);
|
|
3446
3331
|
}, o = Le(ie(), a), l = M(e.tag) || re(e.tag) ? e.tag : Es();
|
|
3447
3332
|
return re(l) ? wt(l, o, { default: s }) : wt(l, o, s());
|
|
3448
3333
|
};
|
|
3449
3334
|
}
|
|
3450
|
-
}), da =
|
|
3451
|
-
function
|
|
3335
|
+
}), da = Di;
|
|
3336
|
+
function xi(e) {
|
|
3452
3337
|
return Te(e) && !M(e[0]);
|
|
3453
3338
|
}
|
|
3454
3339
|
function Ts(e, t, n, a) {
|
|
@@ -3462,13 +3347,13 @@ function Ts(e, t, n, a) {
|
|
|
3462
3347
|
let p = [f.key];
|
|
3463
3348
|
return Te(v) ? p = v.map((g, E) => {
|
|
3464
3349
|
const O = r[g.type], L = O ? O({ [g.type]: g.value, index: E, parts: v }) : [g.value];
|
|
3465
|
-
return
|
|
3350
|
+
return xi(L) && (L[0].key = `${g.type}-${E}`), L;
|
|
3466
3351
|
}) : M(v) && (p = [v]), p;
|
|
3467
3352
|
}, l = Le(ie(), s), i = M(e.tag) || re(e.tag) ? e.tag : Es();
|
|
3468
3353
|
return re(i) ? wt(i, l, { default: o }) : wt(i, l, o());
|
|
3469
3354
|
};
|
|
3470
3355
|
}
|
|
3471
|
-
const
|
|
3356
|
+
const Pi = /* @__PURE__ */ fe({
|
|
3472
3357
|
/* eslint-disable */
|
|
3473
3358
|
name: "i18n-n",
|
|
3474
3359
|
props: Le({
|
|
@@ -3492,8 +3377,8 @@ const $i = /* @__PURE__ */ fe({
|
|
|
3492
3377
|
n[tr](...a)
|
|
3493
3378
|
));
|
|
3494
3379
|
}
|
|
3495
|
-
}), fa =
|
|
3496
|
-
function
|
|
3380
|
+
}), fa = Pi;
|
|
3381
|
+
function Ri(e, t) {
|
|
3497
3382
|
const n = e;
|
|
3498
3383
|
if (e.mode === "composition")
|
|
3499
3384
|
return n.__getInstance(t) || e.global;
|
|
@@ -3502,13 +3387,13 @@ function Mi(e, t) {
|
|
|
3502
3387
|
return a != null ? a.__composer : e.global.__composer;
|
|
3503
3388
|
}
|
|
3504
3389
|
}
|
|
3505
|
-
function
|
|
3390
|
+
function $i(e) {
|
|
3506
3391
|
const t = (o) => {
|
|
3507
3392
|
process.env.NODE_ENV !== "production" && pr(Yt(He.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3508
3393
|
const { instance: l, value: i } = o;
|
|
3509
3394
|
if (!l || !l.$)
|
|
3510
3395
|
throw Pe(ue.UNEXPECTED_ERROR);
|
|
3511
|
-
const f =
|
|
3396
|
+
const f = Ri(e, l.$), m = ma(i);
|
|
3512
3397
|
return [
|
|
3513
3398
|
Reflect.apply(f.t, f, [...pa(m)]),
|
|
3514
3399
|
f
|
|
@@ -3517,7 +3402,7 @@ function Vi(e) {
|
|
|
3517
3402
|
return {
|
|
3518
3403
|
created: (o, l) => {
|
|
3519
3404
|
const [i, f] = t(l);
|
|
3520
|
-
Qe && (o.__i18nWatcher =
|
|
3405
|
+
Qe && (o.__i18nWatcher = _e(f.locale, () => {
|
|
3521
3406
|
l.instance && l.instance.$forceUpdate();
|
|
3522
3407
|
})), o.__composer = f, o.textContent = i;
|
|
3523
3408
|
},
|
|
@@ -3552,15 +3437,15 @@ function pa(e) {
|
|
|
3552
3437
|
const { path: t, locale: n, args: a, choice: r, plural: s } = e, o = {}, l = a || {};
|
|
3553
3438
|
return M(n) && (o.locale = n), Oe(r) && (o.plural = r), Oe(s) && (o.plural = s), [t, l, o];
|
|
3554
3439
|
}
|
|
3555
|
-
function
|
|
3440
|
+
function Mi(e, t, ...n) {
|
|
3556
3441
|
const a = se(n[0]) ? n[0] : {};
|
|
3557
|
-
(ae(a.globalInstall) ? a.globalInstall : !0) && ([da.name, "I18nT"].forEach((s) => e.component(s, da)), [fa.name, "I18nN"].forEach((s) => e.component(s, fa)), [ha.name, "I18nD"].forEach((s) => e.component(s, ha))), e.directive("t",
|
|
3442
|
+
(ae(a.globalInstall) ? a.globalInstall : !0) && ([da.name, "I18nT"].forEach((s) => e.component(s, da)), [fa.name, "I18nN"].forEach((s) => e.component(s, fa)), [ha.name, "I18nD"].forEach((s) => e.component(s, ha))), e.directive("t", $i(t));
|
|
3558
3443
|
}
|
|
3559
|
-
const
|
|
3560
|
-
function
|
|
3444
|
+
const Vi = /* @__PURE__ */ ot("global-vue-i18n");
|
|
3445
|
+
function Fi(e = {}) {
|
|
3561
3446
|
const t = __VUE_I18N_LEGACY_API__ && ae(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3562
3447
|
process.env.NODE_ENV !== "production" && t && pr(Yt(He.DEPRECATE_LEGACY_MODE));
|
|
3563
|
-
const n = ae(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [r, s] =
|
|
3448
|
+
const n = ae(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [r, s] = Ui(e, t), o = /* @__PURE__ */ ot(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3564
3449
|
function l(v) {
|
|
3565
3450
|
return a.get(v) || null;
|
|
3566
3451
|
}
|
|
@@ -3582,12 +3467,12 @@ function Wi(e = {}) {
|
|
|
3582
3467
|
m.__composerExtend = O.__composerExtend, m.__vueI18nExtend = O.__vueI18nExtend;
|
|
3583
3468
|
}
|
|
3584
3469
|
let g = null;
|
|
3585
|
-
!t && n && (g =
|
|
3470
|
+
!t && n && (g = zi(v, m.global)), __VUE_I18N_FULL_INSTALL__ && Mi(v, m, ...p), __VUE_I18N_LEGACY_API__ && t && v.mixin(Ii(s, s.__composer, m));
|
|
3586
3471
|
const E = v.unmount;
|
|
3587
3472
|
if (v.unmount = () => {
|
|
3588
3473
|
g && g(), m.dispose(), E();
|
|
3589
3474
|
}, process.env.NODE_ENV !== "production") {
|
|
3590
|
-
if (!await
|
|
3475
|
+
if (!await _i(v, m))
|
|
3591
3476
|
throw Pe(ue.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3592
3477
|
const L = Sn();
|
|
3593
3478
|
if (t) {
|
|
@@ -3619,12 +3504,12 @@ function Wi(e = {}) {
|
|
|
3619
3504
|
return m;
|
|
3620
3505
|
}
|
|
3621
3506
|
function Nr(e = {}) {
|
|
3622
|
-
const t =
|
|
3507
|
+
const t = Vt();
|
|
3623
3508
|
if (t == null)
|
|
3624
3509
|
throw Pe(ue.MUST_BE_CALL_SETUP_TOP);
|
|
3625
3510
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3626
3511
|
throw Pe(ue.NOT_INSTALLED);
|
|
3627
|
-
const n =
|
|
3512
|
+
const n = Wi(t), a = Hi(n), r = gs(t), s = Bi(e, r);
|
|
3628
3513
|
if (s === "global")
|
|
3629
3514
|
return hs(a, e, r), a;
|
|
3630
3515
|
if (s === "parent") {
|
|
@@ -3644,7 +3529,7 @@ function Nr(e = {}) {
|
|
|
3644
3529
|
const E = v;
|
|
3645
3530
|
E[ft] && E[ft](p), p.on("*", It);
|
|
3646
3531
|
}
|
|
3647
|
-
return
|
|
3532
|
+
return Ys() && zs(() => {
|
|
3648
3533
|
if (process.env.NODE_ENV !== "production") {
|
|
3649
3534
|
p && p.off("*", It);
|
|
3650
3535
|
const O = v;
|
|
@@ -3658,33 +3543,33 @@ function Nr(e = {}) {
|
|
|
3658
3543
|
let l = o.__getInstance(t);
|
|
3659
3544
|
if (l == null) {
|
|
3660
3545
|
const i = Le({}, e);
|
|
3661
|
-
"__i18n" in r && (i.__i18n = r.__i18n), a && (i.__root = a), l = En(i), o.__composerExtend && (l[$t] = o.__composerExtend(l)),
|
|
3546
|
+
"__i18n" in r && (i.__i18n = r.__i18n), a && (i.__root = a), l = En(i), o.__composerExtend && (l[$t] = o.__composerExtend(l)), Gi(o, t, l), o.__setInstance(t, l);
|
|
3662
3547
|
} else
|
|
3663
3548
|
process.env.NODE_ENV !== "production" && s === "local" && at(Yt(He.DUPLICATE_USE_I18N_CALLING));
|
|
3664
3549
|
return l;
|
|
3665
3550
|
}
|
|
3666
|
-
function
|
|
3667
|
-
const n =
|
|
3551
|
+
function Ui(e, t) {
|
|
3552
|
+
const n = Hs(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => rr(e)) : n.run(() => En(e));
|
|
3668
3553
|
if (a == null)
|
|
3669
3554
|
throw Pe(ue.UNEXPECTED_ERROR);
|
|
3670
3555
|
return [n, a];
|
|
3671
3556
|
}
|
|
3672
|
-
function
|
|
3673
|
-
const t = ir(e.isCE ?
|
|
3557
|
+
function Wi(e) {
|
|
3558
|
+
const t = ir(e.isCE ? Vi : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3674
3559
|
if (!t)
|
|
3675
3560
|
throw Pe(e.isCE ? ue.NOT_INSTALLED_WITH_PROVIDE : ue.UNEXPECTED_ERROR);
|
|
3676
3561
|
return t;
|
|
3677
3562
|
}
|
|
3678
|
-
function
|
|
3563
|
+
function Bi(e, t) {
|
|
3679
3564
|
return dr(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3680
3565
|
}
|
|
3681
|
-
function
|
|
3566
|
+
function Hi(e) {
|
|
3682
3567
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3683
3568
|
}
|
|
3684
3569
|
function va(e, t, n = !1) {
|
|
3685
3570
|
let a = null;
|
|
3686
3571
|
const r = t.root;
|
|
3687
|
-
let s =
|
|
3572
|
+
let s = ji(t, n);
|
|
3688
3573
|
for (; s != null; ) {
|
|
3689
3574
|
const o = e;
|
|
3690
3575
|
if (e.mode === "composition")
|
|
@@ -3699,10 +3584,10 @@ function va(e, t, n = !1) {
|
|
|
3699
3584
|
}
|
|
3700
3585
|
return a;
|
|
3701
3586
|
}
|
|
3702
|
-
function
|
|
3587
|
+
function ji(e, t = !1) {
|
|
3703
3588
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3704
3589
|
}
|
|
3705
|
-
function
|
|
3590
|
+
function Gi(e, t, n) {
|
|
3706
3591
|
let a = null;
|
|
3707
3592
|
Dt(() => {
|
|
3708
3593
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -3717,14 +3602,14 @@ function zi(e, t, n) {
|
|
|
3717
3602
|
s && (s(), delete r[$t]);
|
|
3718
3603
|
}, t);
|
|
3719
3604
|
}
|
|
3720
|
-
const
|
|
3605
|
+
const Yi = [
|
|
3721
3606
|
"locale",
|
|
3722
3607
|
"fallbackLocale",
|
|
3723
3608
|
"availableLocales"
|
|
3724
3609
|
], ga = ["t", "rt", "d", "n", "tm", "te"];
|
|
3725
|
-
function
|
|
3610
|
+
function zi(e, t) {
|
|
3726
3611
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3727
|
-
return
|
|
3612
|
+
return Yi.forEach((r) => {
|
|
3728
3613
|
const s = Object.getOwnPropertyDescriptor(t, r);
|
|
3729
3614
|
if (!s)
|
|
3730
3615
|
throw Pe(ue.UNEXPECTED_ERROR);
|
|
@@ -3753,7 +3638,7 @@ function Xi(e, t) {
|
|
|
3753
3638
|
});
|
|
3754
3639
|
};
|
|
3755
3640
|
}
|
|
3756
|
-
const
|
|
3641
|
+
const Ki = /* @__PURE__ */ fe({
|
|
3757
3642
|
/* eslint-disable */
|
|
3758
3643
|
name: "i18n-d",
|
|
3759
3644
|
props: Le({
|
|
@@ -3777,17 +3662,17 @@ const qi = /* @__PURE__ */ fe({
|
|
|
3777
3662
|
n[er](...a)
|
|
3778
3663
|
));
|
|
3779
3664
|
}
|
|
3780
|
-
}), ha =
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3665
|
+
}), ha = Ki;
|
|
3666
|
+
di();
|
|
3667
|
+
$l(vl);
|
|
3668
|
+
Ml(Dl);
|
|
3669
|
+
Vl(Kn);
|
|
3785
3670
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3786
3671
|
const e = Lt();
|
|
3787
|
-
e.__INTLIFY__ = !0,
|
|
3672
|
+
e.__INTLIFY__ = !0, gl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3788
3673
|
}
|
|
3789
3674
|
process.env.NODE_ENV;
|
|
3790
|
-
const
|
|
3675
|
+
const Xi = {
|
|
3791
3676
|
input: {
|
|
3792
3677
|
placeholder: "請輸入"
|
|
3793
3678
|
},
|
|
@@ -3818,7 +3703,7 @@ const Qi = {
|
|
|
3818
3703
|
noData: "暫無數據",
|
|
3819
3704
|
selected: "已選擇"
|
|
3820
3705
|
}
|
|
3821
|
-
},
|
|
3706
|
+
}, qi = {
|
|
3822
3707
|
input: {
|
|
3823
3708
|
placeholder: "请输入"
|
|
3824
3709
|
},
|
|
@@ -3849,7 +3734,7 @@ const Qi = {
|
|
|
3849
3734
|
noData: "暂无数据",
|
|
3850
3735
|
selected: "已选择"
|
|
3851
3736
|
}
|
|
3852
|
-
},
|
|
3737
|
+
}, Qi = {
|
|
3853
3738
|
input: {
|
|
3854
3739
|
placeholder: "Please enter"
|
|
3855
3740
|
},
|
|
@@ -3882,16 +3767,132 @@ const Qi = {
|
|
|
3882
3767
|
}
|
|
3883
3768
|
};
|
|
3884
3769
|
let Fn;
|
|
3885
|
-
const
|
|
3770
|
+
const Ns = () => (Fn || (Fn = Fi({
|
|
3886
3771
|
locale: "en-US",
|
|
3887
3772
|
fallbackLocale: "en-US",
|
|
3888
3773
|
messages: {
|
|
3889
|
-
"zh-CN":
|
|
3890
|
-
"zh-TW":
|
|
3891
|
-
"en-US":
|
|
3774
|
+
"zh-CN": qi,
|
|
3775
|
+
"zh-TW": Xi,
|
|
3776
|
+
"en-US": Qi
|
|
3892
3777
|
},
|
|
3893
3778
|
legacy: !1
|
|
3894
|
-
})), Fn),
|
|
3779
|
+
})), Fn), df = (e) => {
|
|
3780
|
+
Ns().global.locale.value = e;
|
|
3781
|
+
}, Se = (e, t) => Ns().global.t(e, t), Ji = ["disabled"], Zi = ["disabled"], ec = ["disabled"], Ft = /* @__PURE__ */ fe({
|
|
3782
|
+
name: "Button",
|
|
3783
|
+
inheritAttrs: !1,
|
|
3784
|
+
__name: "Button",
|
|
3785
|
+
props: {
|
|
3786
|
+
type: { default: "primary" },
|
|
3787
|
+
size: { default: "medium" },
|
|
3788
|
+
width: {},
|
|
3789
|
+
plain: { type: Boolean },
|
|
3790
|
+
text: { type: Boolean },
|
|
3791
|
+
disabled: { type: Boolean },
|
|
3792
|
+
loading: { type: Boolean },
|
|
3793
|
+
block: { type: Boolean },
|
|
3794
|
+
link: { type: Boolean },
|
|
3795
|
+
icon: {},
|
|
3796
|
+
iconType: { default: "rectangle" },
|
|
3797
|
+
iconText: {},
|
|
3798
|
+
affix: { type: Boolean },
|
|
3799
|
+
isActive: { type: Boolean }
|
|
3800
|
+
},
|
|
3801
|
+
setup(e) {
|
|
3802
|
+
const t = e, n = xa(), a = j(null);
|
|
3803
|
+
function r() {
|
|
3804
|
+
t.disabled || t.loading || a.value?.click();
|
|
3805
|
+
}
|
|
3806
|
+
const s = D(() => {
|
|
3807
|
+
const m = t, v = n.icon;
|
|
3808
|
+
return !m.icon && typeof v == "function";
|
|
3809
|
+
}), o = D(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), l = D(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), i = D(() => t.width ? { width: t.width } : void 0), f = D(() => {
|
|
3810
|
+
if (t.plain || t.text)
|
|
3811
|
+
switch (t.type) {
|
|
3812
|
+
case "primary":
|
|
3813
|
+
return "var(--material-brand-primary)";
|
|
3814
|
+
case "secondary":
|
|
3815
|
+
return "var(--material-base-secondary)";
|
|
3816
|
+
case "danger":
|
|
3817
|
+
return "var(--material-danger-primary)";
|
|
3818
|
+
case "foreground":
|
|
3819
|
+
return "var(--material-base-primary)";
|
|
3820
|
+
case "sameWhite":
|
|
3821
|
+
return "var(--material-same-black)";
|
|
3822
|
+
}
|
|
3823
|
+
else
|
|
3824
|
+
return t.type === "secondary" ? "var(--material-base-secondary)" : t.type === "foreground" ? "var(--text-face-primary)" : t.type === "sameWhite" ? "var(--text-same-black-primary)" : "var(--material-same-white-primary)";
|
|
3825
|
+
});
|
|
3826
|
+
return (m, v) => e.icon || m.$slots.icon ? (S(), x("div", {
|
|
3827
|
+
key: 0,
|
|
3828
|
+
class: ee(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
|
|
3829
|
+
}, [
|
|
3830
|
+
U("button", gt({
|
|
3831
|
+
ref_key: "iconButtonRef",
|
|
3832
|
+
ref: a
|
|
3833
|
+
}, m.$attrs, {
|
|
3834
|
+
class: ["cregis-button__icon", {
|
|
3835
|
+
[`cregis-button__icon--${e.iconType}`]: e.iconType,
|
|
3836
|
+
[`cregis-button__icon--${e.size}`]: e.size,
|
|
3837
|
+
"cregis-button__icon--slot": s.value,
|
|
3838
|
+
"is-disabled": e.disabled,
|
|
3839
|
+
"is-active": e.isActive
|
|
3840
|
+
}],
|
|
3841
|
+
disabled: e.disabled || e.loading
|
|
3842
|
+
}), [
|
|
3843
|
+
e.icon ? (S(), Ee(sn(e.icon), {
|
|
3844
|
+
key: 0,
|
|
3845
|
+
size: o.value
|
|
3846
|
+
}, null, 8, ["size"])) : (S(), x("span", {
|
|
3847
|
+
key: 1,
|
|
3848
|
+
class: "cregis-button__icon-slot-inner",
|
|
3849
|
+
style: ge({ "--cregis-btn-icon-slot-size": o.value })
|
|
3850
|
+
}, [
|
|
3851
|
+
be(m.$slots, "icon")
|
|
3852
|
+
], 4))
|
|
3853
|
+
], 16, Ji),
|
|
3854
|
+
e.iconText ? (S(), x("span", {
|
|
3855
|
+
key: 0,
|
|
3856
|
+
class: ee(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
|
|
3857
|
+
onClick: r
|
|
3858
|
+
}, J(e.iconText), 3)) : q("", !0)
|
|
3859
|
+
], 2)) : e.link ? (S(), x("button", gt({ key: 1 }, m.$attrs, {
|
|
3860
|
+
class: ["cregis-button__link", {
|
|
3861
|
+
[`cregis-button__link--${e.type}`]: e.type,
|
|
3862
|
+
[`cregis-button__link--${e.size}`]: e.size,
|
|
3863
|
+
"is-disabled": e.disabled,
|
|
3864
|
+
"is-active": e.isActive
|
|
3865
|
+
}],
|
|
3866
|
+
disabled: e.disabled || e.loading
|
|
3867
|
+
}), [
|
|
3868
|
+
be(m.$slots, "default")
|
|
3869
|
+
], 16, Zi)) : (S(), x("button", gt({
|
|
3870
|
+
key: 2,
|
|
3871
|
+
ref: "buttonRef"
|
|
3872
|
+
}, m.$attrs, {
|
|
3873
|
+
style: i.value,
|
|
3874
|
+
class: ["cregis-button", {
|
|
3875
|
+
[`cregis-button--${e.type}`]: e.type,
|
|
3876
|
+
[`cregis-button--${e.size}`]: e.size,
|
|
3877
|
+
"is-plain": e.plain,
|
|
3878
|
+
"is-text": e.text,
|
|
3879
|
+
"is-disabled": e.disabled,
|
|
3880
|
+
"is-loading": e.loading,
|
|
3881
|
+
"is-block": e.block,
|
|
3882
|
+
"is-affix": e.affix,
|
|
3883
|
+
"is-active": e.isActive
|
|
3884
|
+
}],
|
|
3885
|
+
disabled: e.disabled || e.loading
|
|
3886
|
+
}), [
|
|
3887
|
+
e.loading ? (S(), Ee(Z(Gn), {
|
|
3888
|
+
key: 0,
|
|
3889
|
+
class: "loading",
|
|
3890
|
+
size: l.value,
|
|
3891
|
+
color: f.value
|
|
3892
|
+
}, null, 8, ["size", "color"])) : be(m.$slots, "default", { key: 1 })
|
|
3893
|
+
], 16, ec));
|
|
3894
|
+
}
|
|
3895
|
+
}), tc = {
|
|
3895
3896
|
key: 0,
|
|
3896
3897
|
class: "cregis-input__prefix"
|
|
3897
3898
|
}, nc = ["type", "inputmode", "placeholder", "min", "disabled"], rc = {
|
|
@@ -3900,7 +3901,7 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
3900
3901
|
}, ac = ["disabled", "placeholder", "rows"], sc = {
|
|
3901
3902
|
key: 0,
|
|
3902
3903
|
class: "cregis-textarea__buttons"
|
|
3903
|
-
},
|
|
3904
|
+
}, Os = /* @__PURE__ */ fe({
|
|
3904
3905
|
name: "Input",
|
|
3905
3906
|
inheritAttrs: !1,
|
|
3906
3907
|
__name: "Input",
|
|
@@ -3962,7 +3963,7 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
3962
3963
|
}, E = j(
|
|
3963
3964
|
a.type === "number" ? g(a.modelValue) : a.modelValue
|
|
3964
3965
|
);
|
|
3965
|
-
|
|
3966
|
+
_e(
|
|
3966
3967
|
() => a.modelValue,
|
|
3967
3968
|
(N) => {
|
|
3968
3969
|
E.value = a.type === "number" ? g(N) : N;
|
|
@@ -3982,7 +3983,7 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
3982
3983
|
r("change", E.value);
|
|
3983
3984
|
}, T = (N) => {
|
|
3984
3985
|
d.value = !0, r("focus", N);
|
|
3985
|
-
},
|
|
3986
|
+
}, y = (N) => {
|
|
3986
3987
|
d.value = !1, r("blur", N);
|
|
3987
3988
|
}, F = D(() => a.clearable && !a.disabled && !!E.value && d.value), W = () => {
|
|
3988
3989
|
E.value = "", r("update:modelValue", ""), r("clear"), r("input", ""), r("change", "");
|
|
@@ -4045,7 +4046,7 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4045
4046
|
class: ee(["cregis-input__wrapper", { "is-focus": d.value }])
|
|
4046
4047
|
}, [
|
|
4047
4048
|
N.$slots.prefix ? (S(), x("span", tc, [
|
|
4048
|
-
|
|
4049
|
+
be(N.$slots, "prefix")
|
|
4049
4050
|
])) : q("", !0),
|
|
4050
4051
|
Ut(U("input", gt({
|
|
4051
4052
|
class: "cregis-input__inner",
|
|
@@ -4062,10 +4063,10 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4062
4063
|
onInput: h,
|
|
4063
4064
|
onChange: k,
|
|
4064
4065
|
onFocus: T,
|
|
4065
|
-
onBlur:
|
|
4066
|
+
onBlur: y,
|
|
4066
4067
|
onKeydown: ce
|
|
4067
4068
|
}), null, 16, nc), [
|
|
4068
|
-
[
|
|
4069
|
+
[Xs, E.value]
|
|
4069
4070
|
]),
|
|
4070
4071
|
e.unit && E.value ? (S(), x("span", {
|
|
4071
4072
|
key: 1,
|
|
@@ -4073,10 +4074,10 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4073
4074
|
class: "cregis-input__unit"
|
|
4074
4075
|
}, J(e.unit), 5)) : q("", !0),
|
|
4075
4076
|
N.$slots.suffix || F.value ? (S(), x("span", rc, [
|
|
4076
|
-
|
|
4077
|
-
F.value ? (S(), Ee(
|
|
4077
|
+
be(N.$slots, "suffix"),
|
|
4078
|
+
F.value ? (S(), Ee(Ft, {
|
|
4078
4079
|
key: 0,
|
|
4079
|
-
icon: Z(
|
|
4080
|
+
icon: Z(Js),
|
|
4080
4081
|
"icon-type": "square",
|
|
4081
4082
|
onClick: W,
|
|
4082
4083
|
onMousedown: I[1] || (I[1] = Wt(() => {
|
|
@@ -4100,12 +4101,12 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4100
4101
|
onInput: h,
|
|
4101
4102
|
onChange: k,
|
|
4102
4103
|
onFocus: T,
|
|
4103
|
-
onBlur:
|
|
4104
|
+
onBlur: y
|
|
4104
4105
|
}), null, 16, ac), [
|
|
4105
|
-
[
|
|
4106
|
+
[qs, E.value]
|
|
4106
4107
|
]),
|
|
4107
4108
|
e.disabled ? q("", !0) : (S(), x("div", sc, [
|
|
4108
|
-
de(
|
|
4109
|
+
de(Ft, {
|
|
4109
4110
|
class: "cregis-textarea__button",
|
|
4110
4111
|
link: "",
|
|
4111
4112
|
size: "small",
|
|
@@ -4116,7 +4117,7 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4116
4117
|
]),
|
|
4117
4118
|
_: 1
|
|
4118
4119
|
}),
|
|
4119
|
-
de(
|
|
4120
|
+
de(Ft, {
|
|
4120
4121
|
class: "cregis-textarea__button",
|
|
4121
4122
|
link: "",
|
|
4122
4123
|
size: "small",
|
|
@@ -4187,7 +4188,7 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4187
4188
|
const n = e, a = t, r = D(() => n.modelValue), s = () => {
|
|
4188
4189
|
n.disabled || a("update:modelValue", !r.value);
|
|
4189
4190
|
};
|
|
4190
|
-
return
|
|
4191
|
+
return _e(
|
|
4191
4192
|
() => r.value,
|
|
4192
4193
|
() => {
|
|
4193
4194
|
a("change", r.value);
|
|
@@ -4213,13 +4214,13 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4213
4214
|
key: 0,
|
|
4214
4215
|
class: ee(["cregis-checkbox__label", { "is-disabled": e.disabled }])
|
|
4215
4216
|
}, [
|
|
4216
|
-
|
|
4217
|
+
be(o.$slots, "default", {}, () => [
|
|
4217
4218
|
qe(J(e.label), 1)
|
|
4218
4219
|
])
|
|
4219
4220
|
], 2)) : q("", !0)
|
|
4220
4221
|
]));
|
|
4221
4222
|
}
|
|
4222
|
-
}),
|
|
4223
|
+
}), ff = /* @__PURE__ */ fe({
|
|
4223
4224
|
name: "Radio",
|
|
4224
4225
|
__name: "Radio",
|
|
4225
4226
|
props: {
|
|
@@ -4249,13 +4250,13 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4249
4250
|
key: 0,
|
|
4250
4251
|
class: ee(["cregis-radio__label", { "is-disabled": e.disabled }])
|
|
4251
4252
|
}, [
|
|
4252
|
-
|
|
4253
|
+
be(o.$slots, "default", {}, () => [
|
|
4253
4254
|
qe(J(e.label), 1)
|
|
4254
4255
|
])
|
|
4255
4256
|
], 2)) : q("", !0)
|
|
4256
4257
|
]));
|
|
4257
4258
|
}
|
|
4258
|
-
}),
|
|
4259
|
+
}), mf = /* @__PURE__ */ fe({
|
|
4259
4260
|
name: "Divider",
|
|
4260
4261
|
__name: "Divider",
|
|
4261
4262
|
props: {
|
|
@@ -4293,7 +4294,7 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4293
4294
|
style: ge(a.value)
|
|
4294
4295
|
}, null, 6));
|
|
4295
4296
|
}
|
|
4296
|
-
}),
|
|
4297
|
+
}), Ls = Symbol("TABS_KEY"), mc = ["onClick"], pc = { style: { display: "none" } }, pf = /* @__PURE__ */ fe({
|
|
4297
4298
|
name: "Tabs",
|
|
4298
4299
|
__name: "Tabs",
|
|
4299
4300
|
props: {
|
|
@@ -4317,8 +4318,8 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4317
4318
|
} : {
|
|
4318
4319
|
borderRadius: 0
|
|
4319
4320
|
});
|
|
4320
|
-
return Pa(
|
|
4321
|
-
activeName:
|
|
4321
|
+
return Pa(Ls, {
|
|
4322
|
+
activeName: Qs(t, "modelValue"),
|
|
4322
4323
|
registerTab: a,
|
|
4323
4324
|
unregisterTab: r
|
|
4324
4325
|
}), (o, l) => (S(), x("div", {
|
|
@@ -4336,11 +4337,11 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4336
4337
|
U("span", null, J(i.label), 1)
|
|
4337
4338
|
], 14, mc))), 128)),
|
|
4338
4339
|
U("div", pc, [
|
|
4339
|
-
|
|
4340
|
+
be(o.$slots, "default")
|
|
4340
4341
|
])
|
|
4341
4342
|
], 2));
|
|
4342
4343
|
}
|
|
4343
|
-
}),
|
|
4344
|
+
}), vf = /* @__PURE__ */ fe({
|
|
4344
4345
|
name: "TabPane",
|
|
4345
4346
|
__name: "TabPane",
|
|
4346
4347
|
props: {
|
|
@@ -4348,11 +4349,11 @@ const ec = () => (Fn || (Fn = Wi({
|
|
|
4348
4349
|
name: {}
|
|
4349
4350
|
},
|
|
4350
4351
|
setup(e) {
|
|
4351
|
-
const t = e, n = ir(
|
|
4352
|
+
const t = e, n = ir(Ls);
|
|
4352
4353
|
if (!n) throw new Error("TabPane must be used within Tabs");
|
|
4353
4354
|
return Dt(() => {
|
|
4354
4355
|
n.registerTab({ label: t.label, name: t.name });
|
|
4355
|
-
}),
|
|
4356
|
+
}), _e(
|
|
4356
4357
|
() => t.label,
|
|
4357
4358
|
(a) => {
|
|
4358
4359
|
n.unregisterTab(t.name), n.registerTab({ label: a, name: t.name });
|
|
@@ -4474,7 +4475,7 @@ const bc = { class: "cregis-notification__wrapper" }, yc = {
|
|
|
4474
4475
|
}, {
|
|
4475
4476
|
default: Ne(() => [
|
|
4476
4477
|
n.value ? (S(), x("div", yc, [
|
|
4477
|
-
(S(), Ee(sn(Z(
|
|
4478
|
+
(S(), Ee(sn(Z(Zs)), {
|
|
4478
4479
|
size: "18px",
|
|
4479
4480
|
color: "var(--material-danger-primary)"
|
|
4480
4481
|
})),
|
|
@@ -4482,7 +4483,7 @@ const bc = { class: "cregis-notification__wrapper" }, yc = {
|
|
|
4482
4483
|
U("div", Tc, J(e.title), 1),
|
|
4483
4484
|
U("div", Nc, J(e.message), 1)
|
|
4484
4485
|
]),
|
|
4485
|
-
de(
|
|
4486
|
+
de(Ft, {
|
|
4486
4487
|
type: "sameWhite",
|
|
4487
4488
|
onClick: a
|
|
4488
4489
|
}, {
|
|
@@ -4499,7 +4500,7 @@ const bc = { class: "cregis-notification__wrapper" }, yc = {
|
|
|
4499
4500
|
}
|
|
4500
4501
|
});
|
|
4501
4502
|
let Wn = !1;
|
|
4502
|
-
function
|
|
4503
|
+
function gf(e) {
|
|
4503
4504
|
if (Wn) return;
|
|
4504
4505
|
const { title: t, message: n, type: a, btnText: r } = e;
|
|
4505
4506
|
Wn = !0;
|
|
@@ -4520,7 +4521,7 @@ function vf(e) {
|
|
|
4520
4521
|
const Lc = { class: "cregis-progress__wrapper" }, Cc = { class: "cregis-progress__track-wrap" }, wc = { class: "cregis-progress cregis-progress--striped active" }, kc = {
|
|
4521
4522
|
key: 0,
|
|
4522
4523
|
class: "cregis-progress__sliding-block"
|
|
4523
|
-
},
|
|
4524
|
+
}, hf = /* @__PURE__ */ fe({
|
|
4524
4525
|
name: "Progress",
|
|
4525
4526
|
__name: "Progress",
|
|
4526
4527
|
props: {
|
|
@@ -4555,9 +4556,9 @@ const Lc = { class: "cregis-progress__wrapper" }, Cc = { class: "cregis-progress
|
|
|
4555
4556
|
]));
|
|
4556
4557
|
}
|
|
4557
4558
|
});
|
|
4558
|
-
var $e = "top", ze = "bottom", Ke = "right", Me = "left", Lr = "auto", mn = [$e, ze, Ke, Me], zt = "start", dn = "end", Sc = "clippingParents",
|
|
4559
|
+
var $e = "top", ze = "bottom", Ke = "right", Me = "left", Lr = "auto", mn = [$e, ze, Ke, Me], zt = "start", dn = "end", Sc = "clippingParents", Cs = "viewport", Zt = "popper", Ic = "reference", ba = /* @__PURE__ */ mn.reduce(function(e, t) {
|
|
4559
4560
|
return e.concat([t + "-" + zt, t + "-" + dn]);
|
|
4560
|
-
}, []),
|
|
4561
|
+
}, []), ws = /* @__PURE__ */ [].concat(mn, [Lr]).reduce(function(e, t) {
|
|
4561
4562
|
return e.concat([t, t + "-" + zt, t + "-" + dn]);
|
|
4562
4563
|
}, []), Ac = "beforeRead", Dc = "read", xc = "afterRead", Pc = "beforeMain", Rc = "main", $c = "afterMain", Mc = "beforeWrite", Vc = "write", Fc = "afterWrite", Uc = [Ac, Dc, xc, Pc, Rc, $c, Mc, Vc, Fc];
|
|
4563
4564
|
function st(e) {
|
|
@@ -4638,14 +4639,14 @@ function ar() {
|
|
|
4638
4639
|
return t.brand + "/" + t.version;
|
|
4639
4640
|
}).join(" ") : navigator.userAgent;
|
|
4640
4641
|
}
|
|
4641
|
-
function
|
|
4642
|
+
function ks() {
|
|
4642
4643
|
return !/^((?!chrome|android).)*safari/i.test(ar());
|
|
4643
4644
|
}
|
|
4644
4645
|
function Xt(e, t, n) {
|
|
4645
4646
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4646
4647
|
var a = e.getBoundingClientRect(), r = 1, s = 1;
|
|
4647
4648
|
t && Ye(e) && (r = e.offsetWidth > 0 && Kt(a.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Kt(a.height) / e.offsetHeight || 1);
|
|
4648
|
-
var o = At(e) ? Fe(e) : window, l = o.visualViewport, i = !
|
|
4649
|
+
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;
|
|
4649
4650
|
return {
|
|
4650
4651
|
width: v,
|
|
4651
4652
|
height: p,
|
|
@@ -4666,7 +4667,7 @@ function wr(e) {
|
|
|
4666
4667
|
height: a
|
|
4667
4668
|
};
|
|
4668
4669
|
}
|
|
4669
|
-
function
|
|
4670
|
+
function Ss(e, t) {
|
|
4670
4671
|
var n = t.getRootNode && t.getRootNode();
|
|
4671
4672
|
if (e.contains(t))
|
|
4672
4673
|
return !0;
|
|
@@ -4739,7 +4740,7 @@ function Yc(e, t, n) {
|
|
|
4739
4740
|
var a = nn(e, t, n);
|
|
4740
4741
|
return a > n ? n : a;
|
|
4741
4742
|
}
|
|
4742
|
-
function
|
|
4743
|
+
function Is() {
|
|
4743
4744
|
return {
|
|
4744
4745
|
top: 0,
|
|
4745
4746
|
right: 0,
|
|
@@ -4747,10 +4748,10 @@ function Ss() {
|
|
|
4747
4748
|
left: 0
|
|
4748
4749
|
};
|
|
4749
4750
|
}
|
|
4750
|
-
function
|
|
4751
|
-
return Object.assign({},
|
|
4751
|
+
function As(e) {
|
|
4752
|
+
return Object.assign({}, Is(), e);
|
|
4752
4753
|
}
|
|
4753
|
-
function
|
|
4754
|
+
function Ds(e, t) {
|
|
4754
4755
|
return t.reduce(function(n, a) {
|
|
4755
4756
|
return n[a] = e, n;
|
|
4756
4757
|
}, {});
|
|
@@ -4758,18 +4759,18 @@ function As(e, t) {
|
|
|
4758
4759
|
var zc = function(t, n) {
|
|
4759
4760
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
4760
4761
|
placement: n.placement
|
|
4761
|
-
})) : t,
|
|
4762
|
+
})) : t, As(typeof t != "number" ? t : Ds(t, mn));
|
|
4762
4763
|
};
|
|
4763
4764
|
function Kc(e) {
|
|
4764
4765
|
var t, n = e.state, a = e.name, r = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l = rt(n.placement), i = kr(l), f = [Me, Ke].indexOf(l) >= 0, m = f ? "height" : "width";
|
|
4765
4766
|
if (!(!s || !o)) {
|
|
4766
|
-
var v = zc(r.padding, n), p = wr(s), g = i === "y" ? $e : Me, E = i === "y" ? ze : Ke, O = n.rects.reference[m] + n.rects.reference[i] - o[i] - n.rects.popper[m], L = o[i] - n.rects.reference[i], d = pn(s), _ = d ? i === "y" ? d.clientHeight || 0 : d.clientWidth || 0 : 0, w = O / 2 - L / 2, h = v[g], k = _ - p[m] - v[E], T = _ / 2 - p[m] / 2 + w,
|
|
4767
|
-
n.modifiersData[a] = (t = {}, t[F] =
|
|
4767
|
+
var v = zc(r.padding, n), p = wr(s), g = i === "y" ? $e : Me, E = i === "y" ? ze : Ke, O = n.rects.reference[m] + n.rects.reference[i] - o[i] - n.rects.popper[m], L = o[i] - n.rects.reference[i], d = pn(s), _ = d ? i === "y" ? d.clientHeight || 0 : d.clientWidth || 0 : 0, w = O / 2 - L / 2, h = v[g], k = _ - p[m] - v[E], T = _ / 2 - p[m] / 2 + w, y = nn(h, T, k), F = i;
|
|
4768
|
+
n.modifiersData[a] = (t = {}, t[F] = y, t.centerOffset = y - T, t);
|
|
4768
4769
|
}
|
|
4769
4770
|
}
|
|
4770
4771
|
function Xc(e) {
|
|
4771
4772
|
var t = e.state, n = e.options, a = n.element, r = a === void 0 ? "[data-popper-arrow]" : a;
|
|
4772
|
-
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) ||
|
|
4773
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || Ss(t.elements.popper, r) && (t.elements.arrow = r));
|
|
4773
4774
|
}
|
|
4774
4775
|
const qc = {
|
|
4775
4776
|
name: "arrow",
|
|
@@ -4807,12 +4808,12 @@ function Ea(e) {
|
|
|
4807
4808
|
g = L.x, O = L.y;
|
|
4808
4809
|
var d = o.hasOwnProperty("x"), _ = o.hasOwnProperty("y"), w = Me, h = $e, k = window;
|
|
4809
4810
|
if (f) {
|
|
4810
|
-
var T = pn(n),
|
|
4811
|
-
if (T === Fe(n) && (T = yt(n), mt(T).position !== "static" && l === "absolute" && (
|
|
4811
|
+
var T = pn(n), y = "clientHeight", F = "clientWidth";
|
|
4812
|
+
if (T === Fe(n) && (T = yt(n), mt(T).position !== "static" && l === "absolute" && (y = "scrollHeight", F = "scrollWidth")), T = T, r === $e || (r === Me || r === Ke) && s === dn) {
|
|
4812
4813
|
h = ze;
|
|
4813
4814
|
var W = v && T === k && k.visualViewport ? k.visualViewport.height : (
|
|
4814
4815
|
// $FlowFixMe[prop-missing]
|
|
4815
|
-
T[
|
|
4816
|
+
T[y]
|
|
4816
4817
|
);
|
|
4817
4818
|
O -= W - a.height, O *= i ? 1 : -1;
|
|
4818
4819
|
}
|
|
@@ -4926,7 +4927,7 @@ function su(e, t) {
|
|
|
4926
4927
|
var n = Fe(e), a = yt(e), r = n.visualViewport, s = a.clientWidth, o = a.clientHeight, l = 0, i = 0;
|
|
4927
4928
|
if (r) {
|
|
4928
4929
|
s = r.width, o = r.height;
|
|
4929
|
-
var f =
|
|
4930
|
+
var f = ks();
|
|
4930
4931
|
(f || !f && t === "fixed") && (l = r.offsetLeft, i = r.offsetTop);
|
|
4931
4932
|
}
|
|
4932
4933
|
return {
|
|
@@ -4949,13 +4950,13 @@ function Ar(e) {
|
|
|
4949
4950
|
var t = mt(e), n = t.overflow, a = t.overflowX, r = t.overflowY;
|
|
4950
4951
|
return /auto|scroll|overlay|hidden/.test(n + r + a);
|
|
4951
4952
|
}
|
|
4952
|
-
function
|
|
4953
|
-
return ["html", "body", "#document"].indexOf(st(e)) >= 0 ? e.ownerDocument.body : Ye(e) && Ar(e) ? e :
|
|
4953
|
+
function xs(e) {
|
|
4954
|
+
return ["html", "body", "#document"].indexOf(st(e)) >= 0 ? e.ownerDocument.body : Ye(e) && Ar(e) ? e : xs(An(e));
|
|
4954
4955
|
}
|
|
4955
4956
|
function rn(e, t) {
|
|
4956
4957
|
var n;
|
|
4957
4958
|
t === void 0 && (t = []);
|
|
4958
|
-
var a =
|
|
4959
|
+
var a = xs(e), r = a === ((n = e.ownerDocument) == null ? void 0 : n.body), s = Fe(a), o = r ? [s].concat(s.visualViewport || [], Ar(a) ? a : []) : a, l = t.concat(o);
|
|
4959
4960
|
return r ? l : (
|
|
4960
4961
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
4961
4962
|
l.concat(rn(An(o)))
|
|
@@ -4974,12 +4975,12 @@ function lu(e, t) {
|
|
|
4974
4975
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
4975
4976
|
}
|
|
4976
4977
|
function Na(e, t, n) {
|
|
4977
|
-
return t ===
|
|
4978
|
+
return t === Cs ? sr(su(e, n)) : At(t) ? lu(t, n) : sr(ou(yt(e)));
|
|
4978
4979
|
}
|
|
4979
4980
|
function iu(e) {
|
|
4980
4981
|
var t = rn(An(e)), n = ["absolute", "fixed"].indexOf(mt(e).position) >= 0, a = n && Ye(e) ? pn(e) : e;
|
|
4981
4982
|
return At(a) ? t.filter(function(r) {
|
|
4982
|
-
return At(r) &&
|
|
4983
|
+
return At(r) && Ss(r, a) && st(r) !== "body";
|
|
4983
4984
|
}) : [];
|
|
4984
4985
|
}
|
|
4985
4986
|
function cu(e, t, n, a) {
|
|
@@ -4989,7 +4990,7 @@ function cu(e, t, n, a) {
|
|
|
4989
4990
|
}, Na(e, o, a));
|
|
4990
4991
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
4991
4992
|
}
|
|
4992
|
-
function
|
|
4993
|
+
function Ps(e) {
|
|
4993
4994
|
var t = e.reference, n = e.element, a = e.placement, r = a ? rt(a) : null, s = a ? qt(a) : null, o = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, i;
|
|
4994
4995
|
switch (r) {
|
|
4995
4996
|
case $e:
|
|
@@ -5038,11 +5039,11 @@ function xs(e) {
|
|
|
5038
5039
|
}
|
|
5039
5040
|
function fn(e, t) {
|
|
5040
5041
|
t === void 0 && (t = {});
|
|
5041
|
-
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 ? Sc : l, f = n.rootBoundary, m = f === void 0 ?
|
|
5042
|
+
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 ? Sc : l, f = n.rootBoundary, m = f === void 0 ? Cs : f, v = n.elementContext, p = v === void 0 ? Zt : v, g = n.altBoundary, E = g === void 0 ? !1 : g, O = n.padding, L = O === void 0 ? 0 : O, d = As(typeof L != "number" ? L : Ds(L, mn)), _ = p === Zt ? Ic : Zt, w = e.rects.popper, h = e.elements[E ? _ : p], k = cu(At(h) ? h : h.contextElement || yt(e.elements.popper), i, m, o), T = Xt(e.elements.reference), y = Ps({
|
|
5042
5043
|
reference: T,
|
|
5043
5044
|
element: w,
|
|
5044
5045
|
placement: r
|
|
5045
|
-
}), F = sr(Object.assign({}, w,
|
|
5046
|
+
}), F = sr(Object.assign({}, w, y)), W = p === Zt ? F : T, G = {
|
|
5046
5047
|
top: k.top - W.top + d.top,
|
|
5047
5048
|
bottom: W.bottom - k.bottom + d.bottom,
|
|
5048
5049
|
left: k.left - W.left + d.left,
|
|
@@ -5059,7 +5060,7 @@ function fn(e, t) {
|
|
|
5059
5060
|
}
|
|
5060
5061
|
function uu(e, t) {
|
|
5061
5062
|
t === void 0 && (t = {});
|
|
5062
|
-
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 ?
|
|
5063
|
+
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 ? ws : i, m = qt(a), v = m ? l ? ba : ba.filter(function(E) {
|
|
5063
5064
|
return qt(E) === m;
|
|
5064
5065
|
}) : mn, p = v.filter(function(E) {
|
|
5065
5066
|
return f.indexOf(E) >= 0;
|
|
@@ -5095,7 +5096,7 @@ function fu(e) {
|
|
|
5095
5096
|
flipVariations: E,
|
|
5096
5097
|
allowedAutoPlacements: O
|
|
5097
5098
|
}) : ke);
|
|
5098
|
-
}, []), k = t.rects.reference, T = t.rects.popper,
|
|
5099
|
+
}, []), k = t.rects.reference, T = t.rects.popper, y = /* @__PURE__ */ new Map(), F = !0, W = h[0], G = 0; G < h.length; G++) {
|
|
5099
5100
|
var H = h[G], z = rt(H), V = qt(H) === zt, X = [$e, ze].indexOf(z) >= 0, ce = X ? "width" : "height", N = fn(t, {
|
|
5100
5101
|
placement: H,
|
|
5101
5102
|
boundary: m,
|
|
@@ -5111,12 +5112,12 @@ function fu(e) {
|
|
|
5111
5112
|
W = H, F = !1;
|
|
5112
5113
|
break;
|
|
5113
5114
|
}
|
|
5114
|
-
|
|
5115
|
+
y.set(H, B);
|
|
5115
5116
|
}
|
|
5116
5117
|
if (F)
|
|
5117
5118
|
for (var Y = E ? 3 : 1, oe = function(ke) {
|
|
5118
5119
|
var xe = h.find(function($) {
|
|
5119
|
-
var me =
|
|
5120
|
+
var me = y.get($);
|
|
5120
5121
|
if (me)
|
|
5121
5122
|
return me.slice(0, ke).every(function(ye) {
|
|
5122
5123
|
return ye;
|
|
@@ -5193,7 +5194,7 @@ function gu(e, t, n) {
|
|
|
5193
5194
|
};
|
|
5194
5195
|
}
|
|
5195
5196
|
function hu(e) {
|
|
5196
|
-
var t = e.state, n = e.options, a = e.name, r = n.offset, s = r === void 0 ? [0, 0] : r, o =
|
|
5197
|
+
var t = e.state, n = e.options, a = e.name, r = n.offset, s = r === void 0 ? [0, 0] : r, o = ws.reduce(function(m, v) {
|
|
5197
5198
|
return m[v] = gu(v, t.rects, s), m;
|
|
5198
5199
|
}, {}), l = o[t.placement], i = l.x, f = l.y;
|
|
5199
5200
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += f), t.modifiersData[a] = o;
|
|
@@ -5207,7 +5208,7 @@ const _u = {
|
|
|
5207
5208
|
};
|
|
5208
5209
|
function bu(e) {
|
|
5209
5210
|
var t = e.state, n = e.name;
|
|
5210
|
-
t.modifiersData[n] =
|
|
5211
|
+
t.modifiersData[n] = Ps({
|
|
5211
5212
|
reference: t.rects.reference,
|
|
5212
5213
|
element: t.rects.popper,
|
|
5213
5214
|
placement: t.placement
|
|
@@ -5229,7 +5230,7 @@ function Tu(e) {
|
|
|
5229
5230
|
rootBoundary: f,
|
|
5230
5231
|
padding: v,
|
|
5231
5232
|
altBoundary: m
|
|
5232
|
-
}), d = rt(t.placement), _ = qt(t.placement), w = !_, h = kr(d), k = Eu(h), T = t.modifiersData.popperOffsets,
|
|
5233
|
+
}), d = rt(t.placement), _ = qt(t.placement), w = !_, h = kr(d), k = Eu(h), T = t.modifiersData.popperOffsets, y = t.rects.reference, F = t.rects.popper, W = typeof O == "function" ? O(Object.assign({}, t.rects, {
|
|
5233
5234
|
placement: t.placement
|
|
5234
5235
|
})) : O, G = typeof W == "number" ? {
|
|
5235
5236
|
mainAxis: W,
|
|
@@ -5243,15 +5244,15 @@ function Tu(e) {
|
|
|
5243
5244
|
};
|
|
5244
5245
|
if (T) {
|
|
5245
5246
|
if (s) {
|
|
5246
|
-
var V, X = h === "y" ? $e : Me, ce = h === "y" ? ze : Ke, N = h === "y" ? "height" : "width", I = T[h], P = I + L[X], B = I - L[ce], Y = g ? -F[N] / 2 : 0, oe = _ === zt ?
|
|
5247
|
+
var V, X = h === "y" ? $e : Me, ce = h === "y" ? ze : Ke, N = h === "y" ? "height" : "width", I = T[h], P = I + L[X], B = I - L[ce], Y = g ? -F[N] / 2 : 0, oe = _ === zt ? y[N] : F[N], le = _ === zt ? -F[N] : -y[N], Ce = t.elements.arrow, Re = g && Ce ? wr(Ce) : {
|
|
5247
5248
|
width: 0,
|
|
5248
5249
|
height: 0
|
|
5249
|
-
}, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
5250
|
+
}, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Is(), xe = ke[X], $ = ke[ce], me = nn(0, y[N], Re[N]), ye = w ? y[N] / 2 - Y - me - xe - G.mainAxis : oe - me - xe - G.mainAxis, Ie = w ? -y[N] / 2 + Y + me + $ + G.mainAxis : le + me + $ + G.mainAxis, lt = t.elements.arrow && pn(t.elements.arrow), Et = lt ? h === "y" ? lt.clientTop || 0 : lt.clientLeft || 0 : 0, Ze = (V = H?.[h]) != null ? V : 0, it = I + ye - Ze - Et, Ue = I + Ie - Ze, et = nn(g ? Tn(P, it) : P, I, g ? Ct(B, Ue) : B);
|
|
5250
5251
|
T[h] = et, z[h] = et - I;
|
|
5251
5252
|
}
|
|
5252
5253
|
if (l) {
|
|
5253
|
-
var pt, c = h === "x" ? $e : Me, u = h === "x" ? ze : Ke,
|
|
5254
|
-
T[k] = he, z[k] = he -
|
|
5254
|
+
var pt, c = h === "x" ? $e : Me, u = h === "x" ? ze : Ke, b = T[k], R = k === "y" ? "height" : "width", Q = b + L[c], pe = b - L[u], te = [$e, Me].indexOf(d) !== -1, C = (pt = H?.[k]) != null ? pt : 0, A = te ? Q : b - y[R] - F[R] - C + G.altAxis, ne = te ? b + y[R] + F[R] - C - G.altAxis : pe, he = g && te ? Yc(A, b, ne) : nn(g ? A : Q, b, g ? ne : pe);
|
|
5255
|
+
T[k] = he, z[k] = he - b;
|
|
5255
5256
|
}
|
|
5256
5257
|
t.modifiersData[a] = z;
|
|
5257
5258
|
}
|
|
@@ -5403,7 +5404,7 @@ function Du(e) {
|
|
|
5403
5404
|
m.reset = !1, h = -1;
|
|
5404
5405
|
continue;
|
|
5405
5406
|
}
|
|
5406
|
-
var k = m.orderedModifiers[h], T = k.fn,
|
|
5407
|
+
var k = m.orderedModifiers[h], T = k.fn, y = k.options, F = y === void 0 ? {} : y, W = k.name;
|
|
5407
5408
|
typeof T == "function" && (m = T({
|
|
5408
5409
|
state: m,
|
|
5409
5410
|
options: F,
|
|
@@ -5453,9 +5454,9 @@ function Du(e) {
|
|
|
5453
5454
|
return g;
|
|
5454
5455
|
};
|
|
5455
5456
|
}
|
|
5456
|
-
var xu = [nu, yu, eu, Hc, _u, mu, Nu, qc, vu],
|
|
5457
|
+
var xu = [nu, yu, eu, Hc, _u, mu, Nu, qc, vu], Rs = /* @__PURE__ */ Du({
|
|
5457
5458
|
defaultModifiers: xu
|
|
5458
|
-
}), Pu = typeof global == "object" && global && global.Object === Object && global, Ru = typeof self == "object" && self && self.Object === Object && self,
|
|
5459
|
+
}), Pu = typeof global == "object" && global && global.Object === Object && global, Ru = typeof self == "object" && self && self.Object === Object && self, $s = Pu || Ru || Function("return this")(), Nn = $s.Symbol, Ms = Object.prototype, $u = Ms.hasOwnProperty, Mu = Ms.toString, en = Nn ? Nn.toStringTag : void 0;
|
|
5459
5460
|
function Vu(e) {
|
|
5460
5461
|
var t = $u.call(e, en), n = e[en];
|
|
5461
5462
|
try {
|
|
@@ -5512,7 +5513,7 @@ function Ia(e) {
|
|
|
5512
5513
|
return n || ed.test(e) ? td(e.slice(2), n ? 2 : 8) : Ju.test(e) ? Sa : +e;
|
|
5513
5514
|
}
|
|
5514
5515
|
var Bn = function() {
|
|
5515
|
-
return
|
|
5516
|
+
return $s.Date.now();
|
|
5516
5517
|
}, nd = "Expected a function", rd = Math.max, ad = Math.min;
|
|
5517
5518
|
function or(e, t, n) {
|
|
5518
5519
|
var a, r, s, o, l, i, f = 0, m = !1, v = !1, p = !0;
|
|
@@ -5520,19 +5521,19 @@ function or(e, t, n) {
|
|
|
5520
5521
|
throw new TypeError(nd);
|
|
5521
5522
|
t = Ia(t) || 0, On(n) && (m = !!n.leading, v = "maxWait" in n, s = v ? rd(Ia(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
|
|
5522
5523
|
function g(T) {
|
|
5523
|
-
var
|
|
5524
|
-
return a = r = void 0, f = T, o = e.apply(F,
|
|
5524
|
+
var y = a, F = r;
|
|
5525
|
+
return a = r = void 0, f = T, o = e.apply(F, y), o;
|
|
5525
5526
|
}
|
|
5526
5527
|
function E(T) {
|
|
5527
5528
|
return f = T, l = setTimeout(d, t), m ? g(T) : o;
|
|
5528
5529
|
}
|
|
5529
5530
|
function O(T) {
|
|
5530
|
-
var
|
|
5531
|
+
var y = T - i, F = T - f, W = t - y;
|
|
5531
5532
|
return v ? ad(W, s - F) : W;
|
|
5532
5533
|
}
|
|
5533
5534
|
function L(T) {
|
|
5534
|
-
var
|
|
5535
|
-
return i === void 0 ||
|
|
5535
|
+
var y = T - i, F = T - f;
|
|
5536
|
+
return i === void 0 || y >= t || y < 0 || v && F >= s;
|
|
5536
5537
|
}
|
|
5537
5538
|
function d() {
|
|
5538
5539
|
var T = Bn();
|
|
@@ -5550,8 +5551,8 @@ function or(e, t, n) {
|
|
|
5550
5551
|
return l === void 0 ? o : _(Bn());
|
|
5551
5552
|
}
|
|
5552
5553
|
function k() {
|
|
5553
|
-
var T = Bn(),
|
|
5554
|
-
if (a = arguments, r = this, i = T,
|
|
5554
|
+
var T = Bn(), y = L(T);
|
|
5555
|
+
if (a = arguments, r = this, i = T, y) {
|
|
5555
5556
|
if (l === void 0)
|
|
5556
5557
|
return E(i);
|
|
5557
5558
|
if (v)
|
|
@@ -5572,7 +5573,7 @@ function od(e, t, n) {
|
|
|
5572
5573
|
trailing: r
|
|
5573
5574
|
});
|
|
5574
5575
|
}
|
|
5575
|
-
function
|
|
5576
|
+
function Vs(e, t, n = {}) {
|
|
5576
5577
|
const { ignore: a = [], capture: r = !0 } = n;
|
|
5577
5578
|
let s = !1;
|
|
5578
5579
|
function o(v, p) {
|
|
@@ -5657,12 +5658,12 @@ const ld = () => ({
|
|
|
5657
5658
|
r.disabled || (a.value = !0, l("visible-change", !0));
|
|
5658
5659
|
}, k = () => {
|
|
5659
5660
|
a.value = !1, l("visible-change", !1);
|
|
5660
|
-
}, T = or(h, r.openDelay),
|
|
5661
|
-
r.disabled || (
|
|
5661
|
+
}, T = or(h, r.openDelay), y = or(k, r.closeDelay), F = () => {
|
|
5662
|
+
r.disabled || (y.cancel(), T());
|
|
5662
5663
|
}, W = () => {
|
|
5663
|
-
T.cancel(),
|
|
5664
|
+
T.cancel(), y();
|
|
5664
5665
|
};
|
|
5665
|
-
|
|
5666
|
+
Vs(i, (V) => {
|
|
5666
5667
|
const X = V.target;
|
|
5667
5668
|
X instanceof Node && m.value?.contains(X) || (r.trigger === "click" && a.value && !r.manual && W(), a.value && l("click-outside", !0));
|
|
5668
5669
|
});
|
|
@@ -5671,31 +5672,31 @@ const ld = () => ({
|
|
|
5671
5672
|
}, H = () => {
|
|
5672
5673
|
E = {}, r.trigger === "hover" ? (g.mouseenter = F, p.mouseleave = W, E.mouseenter = F, E.mouseleave = W) : r.trigger === "click" && (g.click = G);
|
|
5673
5674
|
};
|
|
5674
|
-
|
|
5675
|
+
_e(
|
|
5675
5676
|
() => a.value,
|
|
5676
5677
|
(V) => {
|
|
5677
5678
|
if (V) {
|
|
5678
5679
|
const X = _();
|
|
5679
|
-
X && m.value ? v =
|
|
5680
|
+
X && m.value ? v = Rs(X, m.value, w.value) : v?.destroy();
|
|
5680
5681
|
}
|
|
5681
5682
|
},
|
|
5682
5683
|
{ flush: "post" }
|
|
5683
|
-
),
|
|
5684
|
+
), _e(
|
|
5684
5685
|
() => r.manual,
|
|
5685
5686
|
(V) => {
|
|
5686
5687
|
V ? (g = {}, p = {}, E = {}) : H();
|
|
5687
5688
|
}
|
|
5688
|
-
),
|
|
5689
|
+
), _e(
|
|
5689
5690
|
() => r.trigger,
|
|
5690
5691
|
(V, X) => {
|
|
5691
5692
|
V !== X && (g = {}, p = {}, E = {}, H());
|
|
5692
5693
|
}
|
|
5693
|
-
),
|
|
5694
|
+
), _e(
|
|
5694
5695
|
() => r.teleported,
|
|
5695
5696
|
() => {
|
|
5696
5697
|
r.manual || H();
|
|
5697
5698
|
}
|
|
5698
|
-
),
|
|
5699
|
+
), _e(
|
|
5699
5700
|
() => r.disabled,
|
|
5700
5701
|
(V) => {
|
|
5701
5702
|
V && W();
|
|
@@ -5723,7 +5724,7 @@ const ld = () => ({
|
|
|
5723
5724
|
ref_key: "popoverTriggerRef",
|
|
5724
5725
|
ref: f
|
|
5725
5726
|
}, xn(Z(g), !0)), [
|
|
5726
|
-
|
|
5727
|
+
be(V.$slots, "reference")
|
|
5727
5728
|
], 16),
|
|
5728
5729
|
(S(), Ee(cr, {
|
|
5729
5730
|
to: "body",
|
|
@@ -5741,7 +5742,7 @@ const ld = () => ({
|
|
|
5741
5742
|
onScroll: X[0] || (X[0] = //@ts-ignore
|
|
5742
5743
|
(...ce) => Z(z) && Z(z)(...ce))
|
|
5743
5744
|
}), [
|
|
5744
|
-
|
|
5745
|
+
be(V.$slots, "default")
|
|
5745
5746
|
], 16)), [
|
|
5746
5747
|
[wn, o.value]
|
|
5747
5748
|
]) : q("", !0)
|
|
@@ -5751,7 +5752,7 @@ const ld = () => ({
|
|
|
5751
5752
|
], 8, ["disabled"]))
|
|
5752
5753
|
], 16));
|
|
5753
5754
|
}
|
|
5754
|
-
}),
|
|
5755
|
+
}), Fs = Symbol("CregisSelect"), cd = { class: "cregis-select__selected" }, ud = {
|
|
5755
5756
|
key: 0,
|
|
5756
5757
|
class: "cregis-select__count"
|
|
5757
5758
|
}, dd = {
|
|
@@ -5763,7 +5764,7 @@ const ld = () => ({
|
|
|
5763
5764
|
}, md = {
|
|
5764
5765
|
key: 2,
|
|
5765
5766
|
class: "cregis-select__dropdown-filter-empty"
|
|
5766
|
-
}, pd = { class: "cregis-select__dropdown-content" },
|
|
5767
|
+
}, pd = { class: "cregis-select__dropdown-content" }, _f = /* @__PURE__ */ fe({
|
|
5767
5768
|
name: "Select",
|
|
5768
5769
|
__name: "Select",
|
|
5769
5770
|
props: {
|
|
@@ -5801,7 +5802,7 @@ const ld = () => ({
|
|
|
5801
5802
|
d.value--, delete O[Ie], delete L[Ie];
|
|
5802
5803
|
};
|
|
5803
5804
|
}, h = D(() => d.value === 0);
|
|
5804
|
-
|
|
5805
|
+
_e(
|
|
5805
5806
|
() => n.modelValue,
|
|
5806
5807
|
($) => {
|
|
5807
5808
|
if (!n.multiple) {
|
|
@@ -5818,7 +5819,7 @@ const ld = () => ({
|
|
|
5818
5819
|
return Array.isArray(n.modelValue) && n.modelValue.length > 0;
|
|
5819
5820
|
const $ = n.modelValue;
|
|
5820
5821
|
return $ != null && $ !== "";
|
|
5821
|
-
}), T = D(() => !n.multiple || !Array.isArray(n.modelValue) ? 0 : n.modelValue.length),
|
|
5822
|
+
}), T = D(() => !n.multiple || !Array.isArray(n.modelValue) ? 0 : n.modelValue.length), y = D(() => {
|
|
5822
5823
|
if (!k.value) return "";
|
|
5823
5824
|
if (n.multiple)
|
|
5824
5825
|
return n.modelValue.map((ye) => O[E(ye)] ?? String(ye)).join("、");
|
|
@@ -5843,9 +5844,9 @@ const ld = () => ({
|
|
|
5843
5844
|
H.value = G.value.trim(), f = null;
|
|
5844
5845
|
}, n.filterDebounceMs));
|
|
5845
5846
|
};
|
|
5846
|
-
|
|
5847
|
+
_e(G, () => {
|
|
5847
5848
|
n.filterable && ce();
|
|
5848
|
-
}),
|
|
5849
|
+
}), _e(
|
|
5849
5850
|
() => n.filterable,
|
|
5850
5851
|
($) => {
|
|
5851
5852
|
$ || (G.value = "", H.value = "", m());
|
|
@@ -5856,7 +5857,7 @@ const ld = () => ({
|
|
|
5856
5857
|
p();
|
|
5857
5858
|
}), i.observe(s.value));
|
|
5858
5859
|
};
|
|
5859
|
-
|
|
5860
|
+
_e(
|
|
5860
5861
|
() => n.triggerWidth,
|
|
5861
5862
|
() => {
|
|
5862
5863
|
v(n.triggerWidth) ? dt(() => {
|
|
@@ -5875,7 +5876,7 @@ const ld = () => ({
|
|
|
5875
5876
|
}, P = () => {
|
|
5876
5877
|
H.value = "", m(), a("filter-clear");
|
|
5877
5878
|
};
|
|
5878
|
-
Pa(
|
|
5879
|
+
Pa(Fs, {
|
|
5879
5880
|
modelValue: D(() => n.modelValue),
|
|
5880
5881
|
multiple: D(() => !!n.multiple),
|
|
5881
5882
|
disabled: D(() => !!n.disabled),
|
|
@@ -5922,15 +5923,15 @@ const ld = () => ({
|
|
|
5922
5923
|
U("div", {
|
|
5923
5924
|
class: ee(["cregis-select__trigger-label", { "is-multiple": e.multiple }])
|
|
5924
5925
|
}, [
|
|
5925
|
-
k.value ?
|
|
5926
|
+
k.value ? be($.$slots, "label", {
|
|
5926
5927
|
key: 0,
|
|
5927
5928
|
modelValue: e.modelValue,
|
|
5928
|
-
displayText:
|
|
5929
|
+
displayText: y.value,
|
|
5929
5930
|
selectedCount: T.value,
|
|
5930
5931
|
placeholder: e.placeholder,
|
|
5931
5932
|
hasSelection: k.value
|
|
5932
5933
|
}, () => [
|
|
5933
|
-
U("p", cd, J(
|
|
5934
|
+
U("p", cd, J(y.value), 1),
|
|
5934
5935
|
e.multiple ? (S(), x("span", ud, J(T.value), 1)) : q("", !0)
|
|
5935
5936
|
]) : (S(), x("p", dd, J(e.placeholder), 1))
|
|
5936
5937
|
], 2),
|
|
@@ -5953,7 +5954,7 @@ const ld = () => ({
|
|
|
5953
5954
|
key: 1,
|
|
5954
5955
|
class: ee(["cregis-select__dropdown-filter", { "backdrop-fixed-header": ke.value > 10 }])
|
|
5955
5956
|
}, [
|
|
5956
|
-
de(
|
|
5957
|
+
de(Os, {
|
|
5957
5958
|
modelValue: G.value,
|
|
5958
5959
|
"onUpdate:modelValue": me[0] || (me[0] = (ye) => G.value = ye),
|
|
5959
5960
|
placeholder: e.searchText || Z(Se)("select.search"),
|
|
@@ -5971,7 +5972,7 @@ const ld = () => ({
|
|
|
5971
5972
|
], 2)) : q("", !0),
|
|
5972
5973
|
X.value ? (S(), x("p", md, J(e.noMatchText || Z(Se)("select.noMatch")), 1)) : q("", !0),
|
|
5973
5974
|
U("div", pd, [
|
|
5974
|
-
|
|
5975
|
+
be($.$slots, "default")
|
|
5975
5976
|
])
|
|
5976
5977
|
], 2)
|
|
5977
5978
|
]),
|
|
@@ -5982,7 +5983,7 @@ const ld = () => ({
|
|
|
5982
5983
|
}), vd = ["aria-selected"], gd = {
|
|
5983
5984
|
key: 1,
|
|
5984
5985
|
class: "cregis-select__option-content"
|
|
5985
|
-
},
|
|
5986
|
+
}, bf = /* @__PURE__ */ fe({
|
|
5986
5987
|
name: "Option",
|
|
5987
5988
|
__name: "Option",
|
|
5988
5989
|
props: {
|
|
@@ -5992,12 +5993,12 @@ const ld = () => ({
|
|
|
5992
5993
|
filterText: {}
|
|
5993
5994
|
},
|
|
5994
5995
|
setup(e) {
|
|
5995
|
-
const t = e, n = ir(
|
|
5996
|
+
const t = e, n = ir(Fs, null);
|
|
5996
5997
|
let a;
|
|
5997
5998
|
const r = () => t.filterText ?? t.label, s = () => {
|
|
5998
5999
|
a?.(), n && (a = n.registerOption(t.value, t.label, r()));
|
|
5999
6000
|
};
|
|
6000
|
-
Dt(s), Je(() => a?.()),
|
|
6001
|
+
Dt(s), Je(() => a?.()), _e(() => [t.value, t.label, t.filterText], s);
|
|
6001
6002
|
const o = D(() => n?.multiple.value ?? !1), l = D(() => n?.isOptionSelected(t.value) ?? !1), i = () => {
|
|
6002
6003
|
t.disabled || n?.disabled.value || n?.selectOption(t.value, t.label);
|
|
6003
6004
|
}, f = () => {
|
|
@@ -6025,7 +6026,7 @@ const ld = () => ({
|
|
|
6025
6026
|
"onUpdate:modelValue": f
|
|
6026
6027
|
}, null, 8, ["model-value", "disabled"])) : q("", !0),
|
|
6027
6028
|
o.value ? (S(), x("div", gd, [
|
|
6028
|
-
|
|
6029
|
+
be(p.$slots, "default", {
|
|
6029
6030
|
label: e.label,
|
|
6030
6031
|
value: e.value,
|
|
6031
6032
|
disabled: !!e.disabled,
|
|
@@ -6033,7 +6034,7 @@ const ld = () => ({
|
|
|
6033
6034
|
}, () => [
|
|
6034
6035
|
qe(J(e.label), 1)
|
|
6035
6036
|
])
|
|
6036
|
-
])) :
|
|
6037
|
+
])) : be(p.$slots, "default", {
|
|
6037
6038
|
key: 2,
|
|
6038
6039
|
label: e.label,
|
|
6039
6040
|
value: e.value,
|
|
@@ -6061,7 +6062,7 @@ const ld = () => ({
|
|
|
6061
6062
|
}, Od = { class: "cregis-cascader__suboption-amount-container" }, Ld = {
|
|
6062
6063
|
key: 0,
|
|
6063
6064
|
class: "cregis-cascader__suboption-amount"
|
|
6064
|
-
}, Cd = { class: "cregis-cascader__suboption-panel" }, wd = ["onClick"], kd = ["onClick"],
|
|
6065
|
+
}, Cd = { class: "cregis-cascader__suboption-panel" }, wd = ["onClick"], kd = ["onClick"], yf = /* @__PURE__ */ fe({
|
|
6065
6066
|
name: "Cascader",
|
|
6066
6067
|
__name: "Cascader",
|
|
6067
6068
|
props: {
|
|
@@ -6105,9 +6106,9 @@ const ld = () => ({
|
|
|
6105
6106
|
E.value = g.value.trim(), v = null;
|
|
6106
6107
|
}, n.filterDebounceMs));
|
|
6107
6108
|
};
|
|
6108
|
-
|
|
6109
|
+
_e(g, () => {
|
|
6109
6110
|
n.filterable && L();
|
|
6110
|
-
}),
|
|
6111
|
+
}), _e(
|
|
6111
6112
|
() => n.filterable,
|
|
6112
6113
|
(c) => {
|
|
6113
6114
|
c || (g.value = "", E.value = "", p());
|
|
@@ -6121,14 +6122,14 @@ const ld = () => ({
|
|
|
6121
6122
|
const u = O.value;
|
|
6122
6123
|
return !u || w(c).includes(u) ? !0 : (c.children ?? []).some((R) => w(R).includes(u));
|
|
6123
6124
|
}, k = (c, u) => {
|
|
6124
|
-
const
|
|
6125
|
-
return !
|
|
6126
|
-
}, T = D(() => n.options.filter((c) => h(c))),
|
|
6127
|
-
() => n.filterable && !!E.value.trim() && !F.value && !
|
|
6125
|
+
const b = O.value;
|
|
6126
|
+
return !b || w(c).includes(b) ? !0 : w(u).includes(b);
|
|
6127
|
+
}, T = D(() => n.options.filter((c) => h(c))), y = D(() => n.options.length === 0), F = D(() => (O.value, n.options.some((c) => h(c)))), W = D(
|
|
6128
|
+
() => n.filterable && !!E.value.trim() && !F.value && !y.value
|
|
6128
6129
|
), G = (c) => {
|
|
6129
6130
|
s.value = c, a("visible-change", c), c || f(), !c && n.filterable && (g.value = "", E.value = "", p());
|
|
6130
6131
|
}, H = j(null), z = (c) => {
|
|
6131
|
-
const u = n.options.find((
|
|
6132
|
+
const u = n.options.find((b) => b.value === c);
|
|
6132
6133
|
if (u)
|
|
6133
6134
|
return {
|
|
6134
6135
|
level: 1,
|
|
@@ -6136,13 +6137,13 @@ const ld = () => ({
|
|
|
6136
6137
|
primary: u,
|
|
6137
6138
|
sub: void 0
|
|
6138
6139
|
};
|
|
6139
|
-
for (const
|
|
6140
|
-
const R =
|
|
6140
|
+
for (const b of n.options) {
|
|
6141
|
+
const R = b.children?.find((Q) => Q.value === c);
|
|
6141
6142
|
if (R)
|
|
6142
6143
|
return {
|
|
6143
6144
|
level: 2,
|
|
6144
6145
|
label: R.label,
|
|
6145
|
-
primary:
|
|
6146
|
+
primary: b,
|
|
6146
6147
|
sub: R
|
|
6147
6148
|
};
|
|
6148
6149
|
}
|
|
@@ -6166,7 +6167,7 @@ const ld = () => ({
|
|
|
6166
6167
|
sub: H.value.sub
|
|
6167
6168
|
} : z(c);
|
|
6168
6169
|
});
|
|
6169
|
-
|
|
6170
|
+
_e(
|
|
6170
6171
|
() => n.modelValue,
|
|
6171
6172
|
(c) => {
|
|
6172
6173
|
if (c == null || c === "") {
|
|
@@ -6178,7 +6179,7 @@ const ld = () => ({
|
|
|
6178
6179
|
);
|
|
6179
6180
|
const X = D(() => V.value.level > 0), ce = D(() => V.value.label), N = D(() => n.modelValue), I = D(() => ce.value), P = D(() => V.value.level), B = D(() => V.value.primary), Y = D(() => V.value.sub), oe = (c) => (c.children?.length ?? 0) > 0, le = (c) => n.modelValue === c, Ce = (c) => {
|
|
6180
6181
|
const u = n.modelValue;
|
|
6181
|
-
return u == null || u === "" ? !1 : (c.children ?? []).some((
|
|
6182
|
+
return u == null || u === "" ? !1 : (c.children ?? []).some((b) => b.value === u);
|
|
6182
6183
|
}, Re = (c, u) => {
|
|
6183
6184
|
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());
|
|
6184
6185
|
}, ke = (c) => {
|
|
@@ -6212,7 +6213,7 @@ const ld = () => ({
|
|
|
6212
6213
|
onVisibleChange: G
|
|
6213
6214
|
}, {
|
|
6214
6215
|
reference: Ne(() => [
|
|
6215
|
-
c.$slots.trigger ?
|
|
6216
|
+
c.$slots.trigger ? be(c.$slots, "trigger", {
|
|
6216
6217
|
key: 0,
|
|
6217
6218
|
modelValue: N.value,
|
|
6218
6219
|
selectedLabel: I.value,
|
|
@@ -6229,7 +6230,7 @@ const ld = () => ({
|
|
|
6229
6230
|
style: ge(Ze.value)
|
|
6230
6231
|
}, [
|
|
6231
6232
|
U("div", hd, [
|
|
6232
|
-
X.value ?
|
|
6233
|
+
X.value ? be(c.$slots, "label", {
|
|
6233
6234
|
key: 0,
|
|
6234
6235
|
modelValue: N.value,
|
|
6235
6236
|
selectedLabel: I.value,
|
|
@@ -6254,18 +6255,18 @@ const ld = () => ({
|
|
|
6254
6255
|
]),
|
|
6255
6256
|
default: Ne(() => [
|
|
6256
6257
|
U("div", {
|
|
6257
|
-
class: ee(["cregis-cascader__dropdown", { "is-empty":
|
|
6258
|
+
class: ee(["cregis-cascader__dropdown", { "is-empty": y.value }]),
|
|
6258
6259
|
style: ge(Ie.value),
|
|
6259
6260
|
onScroll: et
|
|
6260
6261
|
}, [
|
|
6261
|
-
|
|
6262
|
-
e.filterable && !
|
|
6262
|
+
y.value ? (S(), x("p", yd, J(e.noDataText || Z(Se)("cascader.noData")), 1)) : q("", !0),
|
|
6263
|
+
e.filterable && !y.value ? (S(), x("div", {
|
|
6263
6264
|
key: 1,
|
|
6264
6265
|
class: ee(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": Ue.value > 10 }])
|
|
6265
6266
|
}, [
|
|
6266
|
-
de(
|
|
6267
|
+
de(Os, {
|
|
6267
6268
|
modelValue: g.value,
|
|
6268
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
6269
|
+
"onUpdate:modelValue": u[0] || (u[0] = (b) => g.value = b),
|
|
6269
6270
|
placeholder: e.searchText || Z(Se)("select.search"),
|
|
6270
6271
|
width: ye.value,
|
|
6271
6272
|
size: "small",
|
|
@@ -6281,47 +6282,47 @@ const ld = () => ({
|
|
|
6281
6282
|
], 2)) : q("", !0),
|
|
6282
6283
|
W.value ? (S(), x("p", Ed, J(e.noMatchText || Z(Se)("cascader.noMatch")), 1)) : q("", !0),
|
|
6283
6284
|
U("ul", Td, [
|
|
6284
|
-
(S(!0), x(Xe, null, vt(T.value, (
|
|
6285
|
-
key:
|
|
6286
|
-
class: ee(["cregis-cascader__dropdown-item", { "is-disabled":
|
|
6285
|
+
(S(!0), x(Xe, null, vt(T.value, (b, R) => (S(), x("li", {
|
|
6286
|
+
key: b.value,
|
|
6287
|
+
class: ee(["cregis-cascader__dropdown-item", { "is-disabled": b.disabled, "is-sub-open": o.value === b.value }])
|
|
6287
6288
|
}, [
|
|
6288
|
-
oe(
|
|
6289
|
+
oe(b) ? (S(), x("div", Nd, [
|
|
6289
6290
|
de(lr, {
|
|
6290
6291
|
ref_for: !0,
|
|
6291
|
-
ref: (Q) => i(
|
|
6292
|
+
ref: (Q) => i(b.value, Q),
|
|
6292
6293
|
trigger: "hover",
|
|
6293
6294
|
placement: "right-start",
|
|
6294
6295
|
offset: pt,
|
|
6295
6296
|
"popover-options": lt,
|
|
6296
6297
|
"popper-width": me.value,
|
|
6297
6298
|
padding: 4,
|
|
6298
|
-
disabled: !!
|
|
6299
|
-
onVisibleChange: (Q) => m(
|
|
6299
|
+
disabled: !!b.disabled || !!e.disabled,
|
|
6300
|
+
onVisibleChange: (Q) => m(b.value, Q)
|
|
6300
6301
|
}, {
|
|
6301
6302
|
reference: Ne(() => [
|
|
6302
6303
|
U("div", {
|
|
6303
6304
|
class: ee(["cregis-cascader__suboption-trigger", {
|
|
6304
|
-
"is-disabled":
|
|
6305
|
-
"is-parent-active": Ce(
|
|
6305
|
+
"is-disabled": b.disabled,
|
|
6306
|
+
"is-parent-active": Ce(b)
|
|
6306
6307
|
}])
|
|
6307
6308
|
}, [
|
|
6308
|
-
|
|
6309
|
+
be(c.$slots, "option", {
|
|
6309
6310
|
modelValue: N.value,
|
|
6310
6311
|
selectedLabel: I.value,
|
|
6311
6312
|
level: P.value,
|
|
6312
6313
|
primaryOption: B.value,
|
|
6313
6314
|
subOption: Y.value,
|
|
6314
|
-
option:
|
|
6315
|
+
option: b,
|
|
6315
6316
|
index: R,
|
|
6316
|
-
disabled: !!
|
|
6317
|
-
selected: le(
|
|
6318
|
-
isParentOfSelected: Ce(
|
|
6317
|
+
disabled: !!b.disabled,
|
|
6318
|
+
selected: le(b.value),
|
|
6319
|
+
isParentOfSelected: Ce(b)
|
|
6319
6320
|
}, () => [
|
|
6320
|
-
U("p", null, J(
|
|
6321
|
+
U("p", null, J(b.label), 1)
|
|
6321
6322
|
]),
|
|
6322
6323
|
U("div", Od, [
|
|
6323
|
-
e.showSubOptionAmount ? (S(), x("div", Ld, J(
|
|
6324
|
-
de(Z(
|
|
6324
|
+
e.showSubOptionAmount ? (S(), x("div", Ld, J(b.children.length), 1)) : q("", !0),
|
|
6325
|
+
de(Z(eo), {
|
|
6325
6326
|
size: "14px",
|
|
6326
6327
|
color: "currentColor"
|
|
6327
6328
|
})
|
|
@@ -6330,16 +6331,16 @@ const ld = () => ({
|
|
|
6330
6331
|
]),
|
|
6331
6332
|
default: Ne(() => [
|
|
6332
6333
|
U("div", Cd, [
|
|
6333
|
-
(S(!0), x(Xe, null, vt(
|
|
6334
|
+
(S(!0), x(Xe, null, vt(b.children, (Q, pe) => Ut((S(), x("div", {
|
|
6334
6335
|
key: Q.value,
|
|
6335
6336
|
class: ee(["cregis-cascader__suboption-row", {
|
|
6336
6337
|
"is-active": le(Q.value),
|
|
6337
6338
|
"is-disabled": Q.disabled
|
|
6338
6339
|
}]),
|
|
6339
6340
|
role: "menuitem",
|
|
6340
|
-
onClick: (te) => Re(
|
|
6341
|
+
onClick: (te) => Re(b, Q)
|
|
6341
6342
|
}, [
|
|
6342
|
-
|
|
6343
|
+
be(c.$slots, "subOption", {
|
|
6343
6344
|
modelValue: N.value,
|
|
6344
6345
|
selectedLabel: I.value,
|
|
6345
6346
|
level: P.value,
|
|
@@ -6347,7 +6348,7 @@ const ld = () => ({
|
|
|
6347
6348
|
subOption: Y.value,
|
|
6348
6349
|
option: Q,
|
|
6349
6350
|
index: pe,
|
|
6350
|
-
parent:
|
|
6351
|
+
parent: b,
|
|
6351
6352
|
parentIndex: R,
|
|
6352
6353
|
selected: le(Q.value),
|
|
6353
6354
|
disabled: !!Q.disabled
|
|
@@ -6355,7 +6356,7 @@ const ld = () => ({
|
|
|
6355
6356
|
qe(J(Q.label), 1)
|
|
6356
6357
|
])
|
|
6357
6358
|
], 10, wd)), [
|
|
6358
|
-
[wn, k(
|
|
6359
|
+
[wn, k(b, Q)]
|
|
6359
6360
|
])), 128))
|
|
6360
6361
|
])
|
|
6361
6362
|
]),
|
|
@@ -6364,21 +6365,21 @@ const ld = () => ({
|
|
|
6364
6365
|
])) : (S(), x("div", {
|
|
6365
6366
|
key: 1,
|
|
6366
6367
|
class: "cregis-cascader__leaf-only",
|
|
6367
|
-
onClick: (Q) => ke(
|
|
6368
|
+
onClick: (Q) => ke(b)
|
|
6368
6369
|
}, [
|
|
6369
|
-
|
|
6370
|
+
be(c.$slots, "option", {
|
|
6370
6371
|
modelValue: N.value,
|
|
6371
6372
|
selectedLabel: I.value,
|
|
6372
6373
|
level: P.value,
|
|
6373
6374
|
primaryOption: B.value,
|
|
6374
6375
|
subOption: Y.value,
|
|
6375
|
-
option:
|
|
6376
|
+
option: b,
|
|
6376
6377
|
index: R,
|
|
6377
|
-
disabled: !!
|
|
6378
|
-
selected: le(
|
|
6378
|
+
disabled: !!b.disabled,
|
|
6379
|
+
selected: le(b.value),
|
|
6379
6380
|
isParentOfSelected: !1
|
|
6380
6381
|
}, () => [
|
|
6381
|
-
U("p", null, J(
|
|
6382
|
+
U("p", null, J(b.label), 1)
|
|
6382
6383
|
])
|
|
6383
6384
|
], 8, kd))
|
|
6384
6385
|
], 2))), 128))
|
|
@@ -6389,7 +6390,7 @@ const ld = () => ({
|
|
|
6389
6390
|
}, 8, ["popper-width", "placement", "offset", "disabled"])
|
|
6390
6391
|
], 2));
|
|
6391
6392
|
}
|
|
6392
|
-
}),
|
|
6393
|
+
}), Ef = /* @__PURE__ */ fe({
|
|
6393
6394
|
name: "Tag",
|
|
6394
6395
|
__name: "Tag",
|
|
6395
6396
|
props: {
|
|
@@ -6401,12 +6402,12 @@ const ld = () => ({
|
|
|
6401
6402
|
return (t, n) => (S(), x("div", {
|
|
6402
6403
|
class: ee(["cregis-tag", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`]])
|
|
6403
6404
|
}, [
|
|
6404
|
-
|
|
6405
|
+
be(t.$slots, "default", {}, () => [
|
|
6405
6406
|
qe(J(e.text), 1)
|
|
6406
6407
|
])
|
|
6407
6408
|
], 2));
|
|
6408
6409
|
}
|
|
6409
|
-
}),
|
|
6410
|
+
}), Tf = /* @__PURE__ */ fe({
|
|
6410
6411
|
name: "Switch",
|
|
6411
6412
|
__name: "Switch",
|
|
6412
6413
|
props: {
|
|
@@ -6434,7 +6435,7 @@ const ld = () => ({
|
|
|
6434
6435
|
}
|
|
6435
6436
|
a("update:modelValue", l);
|
|
6436
6437
|
};
|
|
6437
|
-
return
|
|
6438
|
+
return _e(
|
|
6438
6439
|
() => n.modelValue,
|
|
6439
6440
|
(l) => {
|
|
6440
6441
|
a("change", l);
|
|
@@ -6449,7 +6450,7 @@ const ld = () => ({
|
|
|
6449
6450
|
U("div", { class: "cregis-switch__circle" }, null, -1)
|
|
6450
6451
|
])], 2));
|
|
6451
6452
|
}
|
|
6452
|
-
}), Sd = { class: "cregis-badge__wrapper" },
|
|
6453
|
+
}), Sd = { class: "cregis-badge__wrapper" }, Nf = /* @__PURE__ */ fe({
|
|
6453
6454
|
name: "Badge",
|
|
6454
6455
|
__name: "Badge",
|
|
6455
6456
|
props: {
|
|
@@ -6474,13 +6475,13 @@ const ld = () => ({
|
|
|
6474
6475
|
class: ee(["cregis-badge", [`cregis-badge--${e.type}`, { "cregis-badge--dot": e.isDot }]]),
|
|
6475
6476
|
style: ge(r.value)
|
|
6476
6477
|
}, J(e.isDot ? "" : Number(e.value) > e.max ? `${e.max}+` : e.value), 7)),
|
|
6477
|
-
|
|
6478
|
+
be(s.$slots, "default")
|
|
6478
6479
|
]));
|
|
6479
6480
|
}
|
|
6480
6481
|
}), Id = ["accept", "disabled"], Ad = ["src"], Dd = {
|
|
6481
6482
|
key: 3,
|
|
6482
6483
|
class: "cregis-upload__mask"
|
|
6483
|
-
},
|
|
6484
|
+
}, Of = /* @__PURE__ */ fe({
|
|
6484
6485
|
name: "Upload",
|
|
6485
6486
|
__name: "Upload",
|
|
6486
6487
|
props: {
|
|
@@ -6515,8 +6516,8 @@ const ld = () => ({
|
|
|
6515
6516
|
if (!w.length) return !0;
|
|
6516
6517
|
const h = m(d.name), k = d.type.toLowerCase();
|
|
6517
6518
|
return w.some((T) => {
|
|
6518
|
-
const
|
|
6519
|
-
return
|
|
6519
|
+
const y = T.toLowerCase();
|
|
6520
|
+
return y.startsWith(".") ? h === y.slice(1) : y.includes("/") ? y.endsWith("/*") ? k.startsWith(y.slice(0, -1)) : k === y : h === y;
|
|
6520
6521
|
});
|
|
6521
6522
|
}, p = (d) => {
|
|
6522
6523
|
d.value = "";
|
|
@@ -6539,7 +6540,7 @@ const ld = () => ({
|
|
|
6539
6540
|
r.value += 30, r.value >= 90 && clearInterval(g);
|
|
6540
6541
|
}, 200);
|
|
6541
6542
|
};
|
|
6542
|
-
|
|
6543
|
+
_e(
|
|
6543
6544
|
() => n.modelValue,
|
|
6544
6545
|
(d) => {
|
|
6545
6546
|
d ? (r.value = 100, s.value = d) : (r.value = 0, s.value = "");
|
|
@@ -6589,11 +6590,11 @@ const ld = () => ({
|
|
|
6589
6590
|
], 6));
|
|
6590
6591
|
}
|
|
6591
6592
|
});
|
|
6592
|
-
let an = 0,
|
|
6593
|
+
let an = 0, Us = "";
|
|
6593
6594
|
const xd = () => {
|
|
6594
|
-
an === 0 && (
|
|
6595
|
+
an === 0 && (Us = document.body.style.overflow, document.body.style.overflow = "hidden"), an++;
|
|
6595
6596
|
}, Aa = () => {
|
|
6596
|
-
an <= 0 || (an--, an === 0 && (document.body.style.overflow =
|
|
6597
|
+
an <= 0 || (an--, an === 0 && (document.body.style.overflow = Us));
|
|
6597
6598
|
}, Ln = /* @__PURE__ */ fe({
|
|
6598
6599
|
name: "Dialog",
|
|
6599
6600
|
__name: "Dialog",
|
|
@@ -6611,7 +6612,7 @@ const xd = () => {
|
|
|
6611
6612
|
setup(e, { emit: t }) {
|
|
6612
6613
|
const n = e, a = t;
|
|
6613
6614
|
let r = !1;
|
|
6614
|
-
|
|
6615
|
+
_e(() => [n.modelValue, n.lockScroll], () => {
|
|
6615
6616
|
const v = n.modelValue && n.lockScroll;
|
|
6616
6617
|
v && !r ? (xd(), r = !0) : !v && r && (Aa(), r = !1);
|
|
6617
6618
|
}, { immediate: !0 }), Je(() => {
|
|
@@ -6666,7 +6667,7 @@ const xd = () => {
|
|
|
6666
6667
|
color: "var(--material-same-white-primary)"
|
|
6667
6668
|
})
|
|
6668
6669
|
])) : q("", !0),
|
|
6669
|
-
|
|
6670
|
+
be(v.$slots, "default")
|
|
6670
6671
|
], 4)
|
|
6671
6672
|
], 6)) : q("", !0)
|
|
6672
6673
|
]),
|
|
@@ -6703,7 +6704,7 @@ const xd = () => {
|
|
|
6703
6704
|
component: $a,
|
|
6704
6705
|
color: "var(--text-same-white-primary)"
|
|
6705
6706
|
} : {
|
|
6706
|
-
component:
|
|
6707
|
+
component: to,
|
|
6707
6708
|
color: "var(--text-base-primary)"
|
|
6708
6709
|
}), i = async (p) => {
|
|
6709
6710
|
if (!s.value) {
|
|
@@ -6744,7 +6745,7 @@ const xd = () => {
|
|
|
6744
6745
|
e.title ? (S(), x("div", $d, J(e.title), 1)) : q("", !0),
|
|
6745
6746
|
e.message ? (S(), x("div", Md, J(e.message), 1)) : q("", !0),
|
|
6746
6747
|
U("div", Vd, [
|
|
6747
|
-
e.showConfirmButton ? (S(), Ee(
|
|
6748
|
+
e.showConfirmButton ? (S(), Ee(Ft, {
|
|
6748
6749
|
key: 0,
|
|
6749
6750
|
type: "foreground",
|
|
6750
6751
|
block: "",
|
|
@@ -6756,7 +6757,7 @@ const xd = () => {
|
|
|
6756
6757
|
]),
|
|
6757
6758
|
_: 1
|
|
6758
6759
|
}, 8, ["loading"])) : q("", !0),
|
|
6759
|
-
e.showCancelButton ? (S(), Ee(
|
|
6760
|
+
e.showCancelButton ? (S(), Ee(Ft, {
|
|
6760
6761
|
key: 1,
|
|
6761
6762
|
type: "secondary",
|
|
6762
6763
|
text: "",
|
|
@@ -6809,11 +6810,11 @@ function Wd(e) {
|
|
|
6809
6810
|
);
|
|
6810
6811
|
});
|
|
6811
6812
|
}
|
|
6812
|
-
const
|
|
6813
|
-
|
|
6813
|
+
const Ws = Ln;
|
|
6814
|
+
Ws.install = (e) => {
|
|
6814
6815
|
e.component(Ln.name, Ln);
|
|
6815
6816
|
};
|
|
6816
|
-
|
|
6817
|
+
Ws.confirm = Wd;
|
|
6817
6818
|
const Bd = {
|
|
6818
6819
|
key: 0,
|
|
6819
6820
|
class: "select-content"
|
|
@@ -6838,23 +6839,23 @@ const Bd = {
|
|
|
6838
6839
|
const p = D(() => ({
|
|
6839
6840
|
maxHeight: "180px",
|
|
6840
6841
|
zIndex: s()
|
|
6841
|
-
})), g = D(() => r.selectMode ? "disabled" : ""), E = D(() => l.value ? "focus" : ""), O = D(() =>
|
|
6842
|
+
})), g = D(() => r.selectMode ? "disabled" : ""), E = D(() => l.value ? "focus" : ""), O = D(() => ({
|
|
6842
6843
|
height: r.height,
|
|
6843
6844
|
backgroundColor: r.bg || "var(--data-table-head)",
|
|
6844
6845
|
backdropFilter: r.bg ? "none" : "saturate(120%) blur(50px)",
|
|
6845
6846
|
...r.width ? { width: "1%" } : {}
|
|
6846
|
-
})),
|
|
6847
|
+
})), L = D(() => ({
|
|
6847
6848
|
justifyContent: r.align === "left" ? "flex-start" : r.align === "center" ? "center" : "flex-end",
|
|
6848
6849
|
...r.width ? { width: r.width } : {}
|
|
6849
6850
|
}));
|
|
6850
|
-
|
|
6851
|
+
Vs(f, () => {
|
|
6851
6852
|
o.value && setTimeout(() => {
|
|
6852
6853
|
o.value = !1, l.value = !1;
|
|
6853
6854
|
}, 0);
|
|
6854
6855
|
});
|
|
6855
|
-
const
|
|
6856
|
+
const d = () => {
|
|
6856
6857
|
r.selectMode || o.value || (o.value = !0, l.value = !0, dt(() => {
|
|
6857
|
-
f.value && m.value && (v?.destroy(), v =
|
|
6858
|
+
f.value && m.value && (v?.destroy(), v = Rs(m.value, f.value, {
|
|
6858
6859
|
placement: "bottom-start",
|
|
6859
6860
|
modifiers: [
|
|
6860
6861
|
{
|
|
@@ -6866,8 +6867,8 @@ const Bd = {
|
|
|
6866
6867
|
]
|
|
6867
6868
|
}));
|
|
6868
6869
|
}));
|
|
6869
|
-
},
|
|
6870
|
-
|
|
6870
|
+
}, _ = (h) => {
|
|
6871
|
+
h !== i.value && a("sort-change", h), i.value = h, o.value = !1, l.value = !1;
|
|
6871
6872
|
};
|
|
6872
6873
|
return t({
|
|
6873
6874
|
resetSort: () => {
|
|
@@ -6875,33 +6876,37 @@ const Bd = {
|
|
|
6875
6876
|
}
|
|
6876
6877
|
}), Je(() => {
|
|
6877
6878
|
v?.destroy();
|
|
6878
|
-
}), (
|
|
6879
|
+
}), (h, k) => (S(), x("th", {
|
|
6879
6880
|
class: "header-cell-wrapper",
|
|
6880
|
-
style: ge(
|
|
6881
|
+
style: ge(O.value)
|
|
6881
6882
|
}, [
|
|
6882
6883
|
e.type === "select" ? (S(), x("div", Bd, [
|
|
6883
6884
|
de(Or, {
|
|
6884
6885
|
"model-value": e.selectAllMode === "all",
|
|
6885
6886
|
indeterminate: e.selectAllMode === "some",
|
|
6886
|
-
onClick:
|
|
6887
|
+
onClick: k[0] || (k[0] = Wt((T) => h.$emit("select-all-mode", e.selectAllMode), ["stop"]))
|
|
6887
6888
|
}, null, 8, ["model-value", "indeterminate"])
|
|
6888
6889
|
])) : q("", !0),
|
|
6889
6890
|
e.type === "default" ? (S(), x("div", {
|
|
6890
6891
|
key: 1,
|
|
6891
6892
|
class: "cell-content",
|
|
6892
|
-
style: ge(
|
|
6893
|
+
style: ge(L.value)
|
|
6893
6894
|
}, [
|
|
6894
|
-
|
|
6895
|
+
be(h.$slots, "default", {}, () => [
|
|
6895
6896
|
U("div", null, J(e.label), 1)
|
|
6896
6897
|
], !0),
|
|
6897
6898
|
e.sortable ? (S(), x("div", {
|
|
6898
6899
|
key: 0,
|
|
6899
6900
|
ref_key: "containerRef",
|
|
6900
6901
|
ref: m,
|
|
6901
|
-
class: ee(["sort-container", [E.value,
|
|
6902
|
-
onClick: Wt(
|
|
6902
|
+
class: ee(["sort-container", [E.value, g.value]]),
|
|
6903
|
+
onClick: Wt(d, ["stop"])
|
|
6903
6904
|
}, [
|
|
6904
|
-
|
|
6905
|
+
U("span", {
|
|
6906
|
+
class: ee(["sort-icon", { "is-open": o.value }])
|
|
6907
|
+
}, [
|
|
6908
|
+
de(Z(ur), { size: "12px" })
|
|
6909
|
+
], 2)
|
|
6905
6910
|
], 2)) : q("", !0)
|
|
6906
6911
|
], 4)) : q("", !0),
|
|
6907
6912
|
(S(), Ee(cr, { to: "body" }, [
|
|
@@ -6913,11 +6918,11 @@ const Bd = {
|
|
|
6913
6918
|
}, [
|
|
6914
6919
|
U("div", {
|
|
6915
6920
|
class: ee(["sort-item font-15", { active: i.value === "asc" }]),
|
|
6916
|
-
onClick:
|
|
6921
|
+
onClick: k[1] || (k[1] = (T) => _("asc"))
|
|
6917
6922
|
}, J(Z(Se)("tableList.asc")), 3),
|
|
6918
6923
|
U("div", {
|
|
6919
6924
|
class: ee(["sort-item font-15", { active: i.value === "desc" }]),
|
|
6920
|
-
onClick:
|
|
6925
|
+
onClick: k[2] || (k[2] = (T) => _("desc"))
|
|
6921
6926
|
}, J(Z(Se)("tableList.desc")), 3)
|
|
6922
6927
|
], 4), [
|
|
6923
6928
|
[wn, o.value]
|
|
@@ -6930,7 +6935,7 @@ const Bd = {
|
|
|
6930
6935
|
for (const [a, r] of t)
|
|
6931
6936
|
n[a] = r;
|
|
6932
6937
|
return n;
|
|
6933
|
-
}, Da = /* @__PURE__ */ Dr(Hd, [["__scopeId", "data-v-
|
|
6938
|
+
}, Da = /* @__PURE__ */ Dr(Hd, [["__scopeId", "data-v-22bb3945"]]), jd = {
|
|
6934
6939
|
key: 1,
|
|
6935
6940
|
class: "cell-text"
|
|
6936
6941
|
}, Gd = /* @__PURE__ */ fe({
|
|
@@ -6990,7 +6995,7 @@ const Bd = {
|
|
|
6990
6995
|
class: "cell-content",
|
|
6991
6996
|
style: ge(s.value)
|
|
6992
6997
|
}, [
|
|
6993
|
-
o.$slots.default ?
|
|
6998
|
+
o.$slots.default ? be(o.$slots, "default", {
|
|
6994
6999
|
key: 0,
|
|
6995
7000
|
data: n.value
|
|
6996
7001
|
}, void 0, !0) : (S(), x("div", jd, J(t.data?.[t.prop || ""]), 1))
|
|
@@ -6998,7 +7003,7 @@ const Bd = {
|
|
|
6998
7003
|
], 64))
|
|
6999
7004
|
], 4));
|
|
7000
7005
|
}
|
|
7001
|
-
}), jn = /* @__PURE__ */ Dr(Gd, [["__scopeId", "data-v-
|
|
7006
|
+
}), jn = /* @__PURE__ */ Dr(Gd, [["__scopeId", "data-v-075748a8"]]), tn = (e, t, n) => {
|
|
7002
7007
|
if (!e) return n;
|
|
7003
7008
|
if (Object.prototype.hasOwnProperty.call(e, t))
|
|
7004
7009
|
return e[t];
|
|
@@ -7030,7 +7035,7 @@ const Bd = {
|
|
|
7030
7035
|
emits: ["row-click", "update:selected-list", "selected-change"],
|
|
7031
7036
|
setup(e, { expose: t, emit: n }) {
|
|
7032
7037
|
const a = n, r = e, s = xa(), o = j(null), l = j(null), i = j([]), f = j({ width: 0, height: 0 }), m = j(0), v = D(() => `${r.headerHeight}px`), p = j(!1), g = j([]);
|
|
7033
|
-
|
|
7038
|
+
_e(
|
|
7034
7039
|
() => r.dataList,
|
|
7035
7040
|
() => {
|
|
7036
7041
|
g.value = [];
|
|
@@ -7040,7 +7045,7 @@ const Bd = {
|
|
|
7040
7045
|
}
|
|
7041
7046
|
);
|
|
7042
7047
|
const E = j(!1), O = j();
|
|
7043
|
-
|
|
7048
|
+
_e(
|
|
7044
7049
|
() => r.initing,
|
|
7045
7050
|
(N) => {
|
|
7046
7051
|
N ? O.value = window.setTimeout(() => {
|
|
@@ -7052,7 +7057,7 @@ const Bd = {
|
|
|
7052
7057
|
}
|
|
7053
7058
|
);
|
|
7054
7059
|
const L = j(!1), d = j(!1), _ = j();
|
|
7055
|
-
|
|
7060
|
+
_e(
|
|
7056
7061
|
() => r.loading,
|
|
7057
7062
|
(N) => {
|
|
7058
7063
|
N ? (clearTimeout(_.value), l.value?.scrollTo({ top: 0, behavior: "instant" }), d.value = !1, L.value = !0) : (l.value?.scrollTo({ top: 0, behavior: "instant" }), d.value = !0, _.value = window.setTimeout(() => {
|
|
@@ -7073,7 +7078,7 @@ const Bd = {
|
|
|
7073
7078
|
})), k = () => (s.default?.()?.filter((P) => P.type?.name === "TableListColumn") || []).filter((P) => P.props?.hidden !== !0), T = () => k().filter((I) => {
|
|
7074
7079
|
const P = tn(I.props, "minTableWidth");
|
|
7075
7080
|
return !P || f.value.width >= P;
|
|
7076
|
-
}),
|
|
7081
|
+
}), y = D(() => T().map((I) => {
|
|
7077
7082
|
const { align: P = "left", label: B, width: Y, sortable: oe } = I.props || {}, le = tn(I.props, "minTableWidth");
|
|
7078
7083
|
return {
|
|
7079
7084
|
label: B || "",
|
|
@@ -7100,7 +7105,7 @@ const Bd = {
|
|
|
7100
7105
|
i.value?.forEach((B, Y) => {
|
|
7101
7106
|
Y !== N && B.resetSort();
|
|
7102
7107
|
});
|
|
7103
|
-
const P =
|
|
7108
|
+
const P = y.value[N];
|
|
7104
7109
|
P.originalSortChangeHandler && P.originalSortChangeHandler(I);
|
|
7105
7110
|
}, G = (N) => {
|
|
7106
7111
|
g.value.find((P) => P._index === N) ? (g.value = g.value.filter((P) => P._index !== N), a("update:selected-list", g.value), a("selected-change", g.value)) : (g.value.push({ ...r.dataList[N], _index: N }), a("update:selected-list", g.value), a("selected-change", g.value));
|
|
@@ -7159,8 +7164,8 @@ const Bd = {
|
|
|
7159
7164
|
U("div", qd, J(g.value.length), 1),
|
|
7160
7165
|
U("div", Qd, J(Z(Se)("tableList.selected")), 1)
|
|
7161
7166
|
]),
|
|
7162
|
-
|
|
7163
|
-
|
|
7167
|
+
s.operation ? (S(), x("div", Jd)) : q("", !0),
|
|
7168
|
+
be(N.$slots, "operation", {}, void 0, !0)
|
|
7164
7169
|
])) : q("", !0),
|
|
7165
7170
|
U("div", {
|
|
7166
7171
|
ref_key: "tableContentRef",
|
|
@@ -7184,7 +7189,7 @@ const Bd = {
|
|
|
7184
7189
|
"select-all-mode": g.value.length === 0 ? "none" : g.value.length === e.dataList.length ? "all" : "some",
|
|
7185
7190
|
onSelectAllMode: H
|
|
7186
7191
|
}, null, 8, ["height", "bg", "select-mode", "select-all-mode"])) : q("", !0),
|
|
7187
|
-
(S(!0), x(Xe, null, vt(
|
|
7192
|
+
(S(!0), x(Xe, null, vt(y.value, (P, B) => (S(), Ee(Da, {
|
|
7188
7193
|
ref_for: !0,
|
|
7189
7194
|
ref_key: "headerCellRefs",
|
|
7190
7195
|
ref: i,
|
|
@@ -7196,7 +7201,7 @@ const Bd = {
|
|
|
7196
7201
|
sortable: P.sortable,
|
|
7197
7202
|
"select-mode": p.value,
|
|
7198
7203
|
bg: e.headerBg,
|
|
7199
|
-
onSortChange: (Y) => W(B, Y)
|
|
7204
|
+
onSortChange: (Y) => W(Number(B), Y)
|
|
7200
7205
|
}, Pr({ _: 2 }, [
|
|
7201
7206
|
P.headerSlot ? {
|
|
7202
7207
|
name: "default",
|
|
@@ -7214,10 +7219,10 @@ const Bd = {
|
|
|
7214
7219
|
style: ge(h.value)
|
|
7215
7220
|
}, [
|
|
7216
7221
|
U("td", {
|
|
7217
|
-
colspan:
|
|
7222
|
+
colspan: y.value.length
|
|
7218
7223
|
}, [
|
|
7219
7224
|
U("div", tf, [
|
|
7220
|
-
d.value ? (S(), Ee(Z(
|
|
7225
|
+
d.value ? (S(), Ee(Z(no), {
|
|
7221
7226
|
key: 0,
|
|
7222
7227
|
size: "16px",
|
|
7223
7228
|
color: "var(--stroke-base-secondary)"
|
|
@@ -7276,7 +7281,7 @@ const Bd = {
|
|
|
7276
7281
|
])),
|
|
7277
7282
|
!e.loading && e.dataList.length === 0 ? (S(), x("div", rf, [
|
|
7278
7283
|
U("div", af, [
|
|
7279
|
-
de(Z(
|
|
7284
|
+
de(Z(ro), {
|
|
7280
7285
|
size: "40px",
|
|
7281
7286
|
color: "var(--text-base-quaternary)"
|
|
7282
7287
|
}),
|
|
@@ -7286,30 +7291,31 @@ const Bd = {
|
|
|
7286
7291
|
], 512)
|
|
7287
7292
|
], 512));
|
|
7288
7293
|
}
|
|
7289
|
-
}),
|
|
7294
|
+
}), Lf = /* @__PURE__ */ Dr(lf, [["__scopeId", "data-v-fb12931b"]]);
|
|
7290
7295
|
export {
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7296
|
+
Nf as Badge,
|
|
7297
|
+
Ft as Button,
|
|
7298
|
+
yf as Cascader,
|
|
7294
7299
|
Or as Checkbox,
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7300
|
+
Ws as Dialog,
|
|
7301
|
+
mf as Divider,
|
|
7302
|
+
Os as Input,
|
|
7298
7303
|
_a as Message,
|
|
7299
|
-
|
|
7300
|
-
|
|
7304
|
+
gf as Notification,
|
|
7305
|
+
bf as Option,
|
|
7301
7306
|
lr as Popover,
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7307
|
+
hf as Progress,
|
|
7308
|
+
ff as Radio,
|
|
7309
|
+
_f as Select,
|
|
7310
|
+
Tf as Switch,
|
|
7311
|
+
Ls as TABS_KEY,
|
|
7312
|
+
vf as TabPane,
|
|
7313
|
+
Lf as TableList,
|
|
7309
7314
|
jn as TableListColumn,
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7315
|
+
pf as Tabs,
|
|
7316
|
+
Ef as Tag,
|
|
7317
|
+
Of as Upload,
|
|
7313
7318
|
Wd as confirm,
|
|
7314
|
-
|
|
7319
|
+
Fs as selectInjectKey,
|
|
7320
|
+
df as setCregisUILocale
|
|
7315
7321
|
};
|